Started by upstream project "bcc-pr" build number 834
originally caused by:
GitHub pull request #3265 of commit 820f4249f0ecd28613d7a1fad56a22fc73ea8201, no merge conflicts.
Running as SYSTEM
Building remotely on fedora28-slave-f49 (fc28) in workspace /home/fedora/jenkins/workspace/bcc-pr/label/fc28
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/iovisor/bcc.git
> git init /home/fedora/jenkins/workspace/bcc-pr/label/fc28 # timeout=10
Fetching upstream changes from https://github.com/iovisor/bcc.git
> git --version # timeout=10
> git fetch --tags --progress -- https://github.com/iovisor/bcc.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/iovisor/bcc.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/iovisor/bcc.git # timeout=10
Fetching upstream changes from https://github.com/iovisor/bcc.git
> git fetch --tags --progress -- https://github.com/iovisor/bcc.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10
JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://wiki.jenkins.io/display/JENKINS/Remove+Git+Plugin+BuildsByBranch+BuildData
Checking out Revision 4cf6ea24d64636f06f85904245e0f3f55a2b8579 (refs/remotes/origin/pr/3265/merge)
> git config core.sparsecheckout # timeout=10
> git checkout -f 4cf6ea24d64636f06f85904245e0f3f55a2b8579 # timeout=10
Commit message: "Merge 820f4249f0ecd28613d7a1fad56a22fc73ea8201 into 5f812d682130fe563d78345e4b1ff9849ab30f6a"
First time build. Skipping changelog.
Run condition [Execute Shell] enabling prebuild for step [Execute shell]
Run condition [Execute Shell] enabling prebuild for step [Execute shell]
[fc28] $ /bin/sh -xe /tmp/CommandInterpreterCondition3531617807279819859.sh
+ grep -q '^ID=fedora' /etc/os-release
Run condition [Execute Shell] enabling perform for step [Execute shell]
[fc28] $ /bin/sh -xe /tmp/jenkins7851793768660356190.sh
+ git clean -df
+ sudo dnf erase -y bcc-tools libbcc libbcc-examples python-bcc bcc-lua
No match for argument: bcc-tools
No match for argument: libbcc
No match for argument: libbcc-examples
No match for argument: python-bcc
No match for argument: bcc-lua
Error: No packages marked for removal.
+ :
+ rm -rf build
+ export PATH=/opt/local/llvm/bin:/usr/local/bin:/usr/bin
+ PATH=/opt/local/llvm/bin:/usr/local/bin:/usr/bin
+ ./scripts/build-rpm.sh
+ set -e
++ mktemp -d /tmp/rpmbuild.XXXXXX
+ TMP=/tmp/rpmbuild.pcdfiz
+ trap cleanup EXIT
+ '[' -f os-release ']'
+ [[ '' -lt 30 ]]
+ PKGS='python3-cachetools python-cachetools'
+ sudo dnf install -y python3-cachetools python-cachetools
Fedora 28 - x86_64 - Updates 40 MB/s | 30 MB 00:00
Fedora 28 - x86_64 33 MB/s | 60 MB 00:01
Last metadata expiration check: 0:00:08 ago on Thu 11 Feb 2021 06:42:32 AM UTC.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
python2-cachetools noarch 2.0.1-4.fc28 fedora 30 k
python3-cachetools noarch 2.0.1-4.fc28 fedora 31 k
Transaction Summary
================================================================================
Install 2 Packages
Total download size: 61 k
Installed size: 142 k
Downloading Packages:
(1/2): python2-cachetools-2.0.1-4.fc28.noarch.r 145 kB/s | 30 kB 00:00
(2/2): python3-cachetools-2.0.1-4.fc28.noarch.r 147 kB/s | 31 kB 00:00
--------------------------------------------------------------------------------
Total 92 kB/s | 61 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python2-cachetools-2.0.1-4.fc28.noarch 1/2
Installing : python3-cachetools-2.0.1-4.fc28.noarch 2/2
Running scriptlet: python3-cachetools-2.0.1-4.fc28.noarch 2/2
Verifying : python3-cachetools-2.0.1-4.fc28.noarch 1/2
Verifying : python2-cachetools-2.0.1-4.fc28.noarch 2/2
Installed:
python2-cachetools.noarch 2.0.1-4.fc28 python3-cachetools.noarch 2.0.1-4.fc28
Complete!
+ mkdir /tmp/rpmbuild.pcdfiz/BUILD /tmp/rpmbuild.pcdfiz/RPMS /tmp/rpmbuild.pcdfiz/SOURCES /tmp/rpmbuild.pcdfiz/SPECS /tmp/rpmbuild.pcdfiz/SRPMS
+ llvmver=3.7.1
+ git submodule update --init --recursive
Submodule 'src/cc/libbpf' (https://github.com/libbpf/libbpf.git) registered for path 'src/cc/libbpf'
Cloning into '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf'...
Submodule path 'src/cc/libbpf': checked out '051a4009f94d5633a8f734ca4235f0a78ee90469'
+ . scripts/git-tag.sh
+++ git describe --tags --abbrev=0
++ git_tag_latest=v0.18.0
+++ git rev-list v0.18.0.. --count
++ git_rev_count=27
++ git_rev_count=28
+++ git log --pretty=%s -n 1
++ git_subject='Merge 820f4249f0ecd28613d7a1fad56a22fc73ea8201 into 5f812d682130fe563d78345e4b1ff9849ab30f6a'
++ release=28
++ [[ 28 != \1 ]]
+++ git log --pretty=%h -n 1
++ release=28.git.4cf6ea24
++ revision=0.18.0
+ git archive HEAD --prefix=bcc/ --format=tar -o /tmp/rpmbuild.pcdfiz/SOURCES/bcc.tar
+ pushd src/cc/libbpf
~/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf ~/jenkins/workspace/bcc-pr/label/fc28
+ git archive HEAD --prefix=bcc/src/cc/libbpf/ --format=tar -o /tmp/rpmbuild.pcdfiz/SOURCES/bcc_libbpf.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc28
+ pushd /tmp/rpmbuild.pcdfiz/SOURCES
/tmp/rpmbuild.pcdfiz/SOURCES ~/jenkins/workspace/bcc-pr/label/fc28
+ tar -A -f bcc.tar bcc_libbpf.tar
+ gzip bcc.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc28
+ sed -e 's/^\(Version:\s*\)@REVISION@/\10.18.0/' -e 's/^\(Release:\s*\)@GIT_REV_COUNT@/\128.git.4cf6ea24/' SPECS/bcc.spec
+ pushd /tmp/rpmbuild.pcdfiz
/tmp/rpmbuild.pcdfiz ~/jenkins/workspace/bcc-pr/label/fc28
++ pwd
+ rpmbuild --define '_topdir /tmp/rpmbuild.pcdfiz' -ba SPECS/bcc.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.A0ubym
+ umask 022
+ cd /tmp/rpmbuild.pcdfiz/BUILD
+ cd /tmp/rpmbuild.pcdfiz/BUILD
+ rm -rf bcc
+ /usr/bin/gzip -dc /tmp/rpmbuild.pcdfiz/SOURCES/bcc.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd bcc
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6wASHv
+ umask 022
+ cd /tmp/rpmbuild.pcdfiz/BUILD
+ cd bcc
+ mkdir build
+ pushd build
/tmp/rpmbuild.pcdfiz/BUILD/bcc/build /tmp/rpmbuild.pcdfiz/BUILD/bcc
++ pkg-config --variable=includedir luajit
++ pkg-config --variable=libdir luajit
++ pkg-config --variable=libname luajit
+ cmake .. -DREVISION_LAST=0.18.0 -DREVISION=0.18.0 -DCMAKE_INSTALL_PREFIX=/usr -DLUAJIT_INCLUDE_DIR=/usr/include/luajit-2.1 -DLUAJIT_LIBRARIES=/usr/lib64/libluajit-5.1.so '-DPYTHON_CMD=python2;python3' -DENABLE_LLVM_SHARED=1
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
fatal: not a git repository (or any of the parent directories): .git
-- Revision is 0.18.0
-- Performing Test HAVE_NO_PIE_FLAG
-- Performing Test HAVE_NO_PIE_FLAG - Success
-- Performing Test HAVE_REALLOCARRAY_SUPPORT
-- Performing Test HAVE_REALLOCARRAY_SUPPORT - Success
-- Found LLVM: /usr/include 6.0.1
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Found FLEX: /usr/bin/flex (found version "2.6.1")
-- Found LibElf: /usr/lib64/libelf.so
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Found LuaJIT: /usr/lib64/libluajit-5.1.so
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/rpmbuild.pcdfiz/BUILD/bcc/build
+ make -j2
Scanning dependencies of target bpf-static
Scanning dependencies of target bpf-shared
[ 1%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o
[ 1%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o
[ 1%] Building C object src/cc/CMakeFiles/bpf-static.dir/perf_reader.c.o
[ 1%] Building C object src/cc/CMakeFiles/bpf-shared.dir/perf_reader.c.o
[ 2%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf.c.o
[ 2%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/bpf.c.o
[ 3%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/bpf_prog_linfo.c.o
[ 3%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf_prog_linfo.c.o
[ 3%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf.c.o
[ 4%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/btf.c.o
[ 4%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf_dump.c.o
[ 4%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/btf_dump.c.o
[ 5%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/hashmap.c.o
[ 5%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/hashmap.c.o
[ 5%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf.c.o
[ 6%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf.c.o
[ 6%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_errno.c.o
[ 6%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf_errno.c.o
[ 6%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf_probes.c.o
[ 7%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_probes.c.o
[ 7%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/netlink.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/netlink.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/nlattr.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/nlattr.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/ringbuf.c.o
[ 9%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/ringbuf.c.o
[ 9%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/str_error.c.o
[ 10%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/str_error.c.o
[ 10%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/xsk.c.o
[ 10%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/xsk.c.o
[ 11%] Linking C shared library libbcc_bpf.so
[ 11%] Linking C static library libbcc_bpf.a
[ 11%] Built target bpf-static
[ 11%] Built target bpf-shared
Scanning dependencies of target bcc-loader-static
Scanning dependencies of target clang_frontend
[ 11%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o
[ 12%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/loader.cc.o
[ 12%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o
[ 13%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o
[ 13%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o
[ 13%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/common.cc.o
[ 14%] Linking CXX static library libbcc-loader-static.a
[ 14%] Built target bcc-loader-static
Scanning dependencies of target api-static
[ 14%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPF.cc.o
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/api/BPF.cc:32:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_exception.h: In member function 'ebpf::StatusTuple ebpf::BPF::detach_raw_tracepoint_event(const string&, ebpf::open_probe_t&)':
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_exception.h:24:7: warning: '__stp.ebpf::StatusTuple::code_' may be used uninitialized in this function [-Wmaybe-uninitialized]
class StatusTuple {
^~~~~~~~~~~
[ 15%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPFTable.cc.o
[ 15%] Linking CXX static library libapi-static.a
[ 15%] Built target api-static
Scanning dependencies of target usdt-static
[ 15%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt_args.cc.o
[ 15%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o
[ 15%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt.cc.o
[ 16%] Linking CXX static library libusdt-static.a
[ 16%] Built target usdt-static
[ 17%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o
[ 17%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/frontends/clang/kbuild_helper.cc:80:3: warning: multi-line comment [-Wcomment]
// USERINCLUDE := \
^
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/frontends/clang/kbuild_helper.cc:89:3: warning: multi-line comment [-Wcomment]
// LINUXINCLUDE := \
^
[ 17%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/__/__/common.cc.o
[ 18%] [FLEX][Lexer] Building scanner with flex 2.6.1
lexer.ll:110: warning, -s option given but default rule can be matched
[ 18%] [BISON][Parser] Building parser with bison 3.0.4
parser.yy:19.9-17: warning: deprecated directive, use '%define api.namespace ebpf::cc' [-Wdeprecated]
%define namespace "ebpf::cc"
^^^^^^^^^
parser.yy:19.9-17: warning: %define variable 'api.namespace' requires '{...}' values [-Wdeprecated]
%define namespace "ebpf::cc"
^^^^^^^^^
parser.yy:20.9-25: warning: %define variable 'parser_class_name' requires '{...}' values [-Wdeprecated]
%define parser_class_name "BisonParser"
^^^^^^^^^^^^^^^^^
Scanning dependencies of target b_frontend
[ 18%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/loader.cc.o
[ 18%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/codegen_llvm.cc.o
[ 19%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/node.cc.o
[ 19%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.cc.o
[ 19%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/printer.cc.o
[ 20%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/type_check.cc.o
[ 20%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.yy.cc.o
[ 21%] Linking CXX static library libclang_frontend.a
[ 21%] Built target clang_frontend
Scanning dependencies of target bcc_py_python3
[ 22%] Building sdist for python3
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
warning: sdist: standard file not found: should have one of README, README.txt
writing manifest file 'MANIFEST'
creating bcc-0.18.0
creating bcc-0.18.0/bcc
making hard links in bcc-0.18.0...
hard linking setup.py -> bcc-0.18.0
hard linking bcc/__init__.py -> bcc-0.18.0/bcc
hard linking bcc/containers.py -> bcc-0.18.0/bcc
hard linking bcc/disassembler.py -> bcc-0.18.0/bcc
hard linking bcc/libbcc.py -> bcc-0.18.0/bcc
hard linking bcc/perf.py -> bcc-0.18.0/bcc
hard linking bcc/syscall.py -> bcc-0.18.0/bcc
hard linking bcc/table.py -> bcc-0.18.0/bcc
hard linking bcc/tcp.py -> bcc-0.18.0/bcc
hard linking bcc/usdt.py -> bcc-0.18.0/bcc
hard linking bcc/utils.py -> bcc-0.18.0/bcc
hard linking bcc/version.py -> bcc-0.18.0/bcc
creating dist
Creating tar archive
removing 'bcc-0.18.0' (and everything under it)
[ 22%] Built target bcc_py_python3
Scanning dependencies of target bcc_py_python2
[ 22%] Building sdist for python2
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
warning: sdist: standard file not found: should have one of README, README.txt
writing manifest file 'MANIFEST'
creating bcc-0.18.0
creating bcc-0.18.0/bcc
making hard links in bcc-0.18.0...
hard linking setup.py -> bcc-0.18.0
hard linking bcc/__init__.py -> bcc-0.18.0/bcc
hard linking bcc/containers.py -> bcc-0.18.0/bcc
hard linking bcc/disassembler.py -> bcc-0.18.0/bcc
hard linking bcc/libbcc.py -> bcc-0.18.0/bcc
hard linking bcc/perf.py -> bcc-0.18.0/bcc
hard linking bcc/syscall.py -> bcc-0.18.0/bcc
hard linking bcc/table.py -> bcc-0.18.0/bcc
hard linking bcc/tcp.py -> bcc-0.18.0/bcc
hard linking bcc/usdt.py -> bcc-0.18.0/bcc
hard linking bcc/utils.py -> bcc-0.18.0/bcc
hard linking bcc/version.py -> bcc-0.18.0/bcc
creating dist
Creating tar archive
removing 'bcc-0.18.0' (and everything under it)
[ 22%] Built target bcc_py_python2
[ 22%] Generating bcc.lua
Writing bcc.lua...
OK!
[ 22%] Generating bcc.o
Scanning dependencies of target bcc-lua
[ 23%] Building C object src/lua/CMakeFiles/bcc-lua.dir/src/main.c.o
[ 23%] Linking C executable bcc-lua
[ 23%] Built target bcc-lua
Scanning dependencies of target bps
[ 23%] Building C object introspection/CMakeFiles/bps.dir/bps.c.o
[ 23%] Linking C executable bps
[ 23%] Built target bps
Scanning dependencies of target man
[ 23%] Generating argdist.8.gz
[ 23%] Generating bashreadline.8.gz
[ 24%] Generating bindsnoop.8.gz
[ 24%] Generating biolatency.8.gz
[ 24%] Generating biolatpcts.8.gz
[ 25%] Generating biosnoop.8.gz
[ 25%] Generating biotop.8.gz
[ 25%] Generating bitesize.8.gz
[ 26%] Generating bpflist.8.gz
[ 26%] Generating bps.8.gz
[ 26%] Generating btrfsdist.8.gz
[ 27%] Generating btrfsslower.8.gz
[ 27%] Generating cachestat.8.gz
[ 27%] Generating cachetop.8.gz
[ 27%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/lexer.ll.cc.o
[ 28%] Generating capable.8.gz
[ 28%] Generating cobjnew.8.gz
[ 28%] Generating compactsnoop.8.gz
[ 29%] Generating cpudist.8.gz
[ 29%] Generating cpuunclaimed.8.gz
[ 29%] Generating criticalstat.8.gz
[ 30%] Generating cthreads.8.gz
[ 30%] Generating dbslower.8.gz
[ 30%] Generating dbstat.8.gz
[ 31%] Generating dcsnoop.8.gz
[ 31%] Generating dcstat.8.gz
[ 31%] Generating deadlock.8.gz
[ 32%] Generating dirtop.8.gz
[ 32%] Generating drsnoop.8.gz
[ 33%] Generating execsnoop.8.gz
[ 33%] Generating exitsnoop.8.gz
[ 33%] Generating ext4dist.8.gz
[ 34%] Generating ext4slower.8.gz
[ 34%] Generating filelife.8.gz
[ 34%] Generating fileslower.8.gz
[ 35%] Generating filetop.8.gz
[ 35%] Generating funccount.8.gz
[ 35%] Generating funcinterval.8.gz
[ 36%] Generating funclatency.8.gz
[ 36%] Generating funcslower.8.gz
[ 36%] Generating gethostlatency.8.gz
[ 37%] Generating hardirqs.8.gz
[ 37%] Generating inject.8.gz
[ 37%] Generating javacalls.8.gz
[ 38%] Generating javaflow.8.gz
[ 38%] Generating javagc.8.gz
[ 38%] Generating javaobjnew.8.gz
[ 39%] Generating javastat.8.gz
[ 39%] Generating javathreads.8.gz
[ 39%] Generating killsnoop.8.gz
[ 40%] Generating klockstat.8.gz
[ 40%] Generating llcstat.8.gz
[ 40%] Generating mdflush.8.gz
[ 41%] Generating memleak.8.gz
/tmp/rpmbuild.pcdfiz/BUILD/bcc/build/src/cc/frontends/b/lexer.ll.cc: In member function 'virtual int ebpf::cc::Lexer::yylex()':
/tmp/rpmbuild.pcdfiz/BUILD/bcc/build/src/cc/frontends/b/lexer.ll.cc:752:23: warning: comparison of integer expressions of different signedness: 'yy_size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
for ( yyl = 0; yyl < yyleng; ++yyl )
~~~~^~~~~~~~
[ 41%] Generating mountsnoop.8.gz
[ 41%] Generating mysqld_qslower.8.gz
[ 42%] Generating netqtop.8.gz
[ 42%] Generating nfsdist.8.gz
[ 42%] Generating nfsslower.8.gz
[ 43%] Generating nodegc.8.gz
[ 43%] Generating nodestat.8.gz
[ 44%] Generating offcputime.8.gz
[ 44%] Generating offwaketime.8.gz
[ 44%] Generating oomkill.8.gz
[ 45%] Generating opensnoop.8.gz
[ 45%] Generating perlcalls.8.gz
[ 45%] Generating perlflow.8.gz
[ 46%] Generating perlstat.8.gz
[ 46%] Generating phpcalls.8.gz
[ 46%] Generating phpflow.8.gz
[ 47%] Generating phpstat.8.gz
[ 47%] Generating pidpersec.8.gz
[ 47%] Generating profile.8.gz
[ 48%] Generating pythoncalls.8.gz
[ 48%] Generating pythonflow.8.gz
[ 48%] Generating pythongc.8.gz
[ 49%] Generating pythonstat.8.gz
[ 49%] Generating readahead.8.gz
[ 49%] Generating reset-trace.8.gz
[ 50%] Generating rubycalls.8.gz
[ 50%] Generating rubyflow.8.gz
[ 50%] Generating rubygc.8.gz
[ 51%] Generating rubyobjnew.8.gz
[ 51%] Generating rubystat.8.gz
[ 51%] Generating runqlat.8.gz
[ 52%] Generating runqlen.8.gz
[ 52%] Generating runqslower.8.gz
[ 52%] Generating shmsnoop.8.gz
[ 53%] Generating slabratetop.8.gz
[ 53%] Generating sofdsnoop.8.gz
[ 53%] Generating softirqs.8.gz
[ 54%] Generating solisten.8.gz
[ 54%] Generating spfdsnoop.8.gz
[ 55%] Generating sslsniff.8.gz
[ 55%] Generating stackcount.8.gz
[ 55%] Generating statsnoop.8.gz
[ 56%] Generating swapin.8.gz
[ 56%] Generating syncsnoop.8.gz
[ 56%] Generating syscount.8.gz
[ 57%] Generating tclcalls.8.gz
[ 57%] Generating tclflow.8.gz
[ 57%] Generating tclobjnew.8.gz
[ 58%] Generating tclstat.8.gz
[ 58%] Generating tcpaccept.8.gz
[ 58%] Generating tcpconnect.8.gz
[ 59%] Generating tcpconnlat.8.gz
[ 59%] Generating tcpdrop.8.gz
[ 59%] Generating tcplife.8.gz
[ 60%] Generating tcpretrans.8.gz
[ 60%] Generating tcprtt.8.gz
[ 60%] Generating tcpstates.8.gz
[ 61%] Generating tcpsubnet.8.gz
[ 61%] Generating tcpsynbl.8.gz
[ 61%] Generating tcptop.8.gz
[ 62%] Linking CXX static library libb_frontend.a
[ 63%] Generating tcptracer.8.gz
[ 63%] Generating threadsnoop.8.gz
[ 63%] Generating tplist.8.gz
[ 63%] Built target b_frontend
[ 64%] Generating trace.8.gz
Scanning dependencies of target usdt_test_lib
[ 64%] Generating ttysnoop.8.gz
[ 64%] Building CXX object tests/cc/CMakeFiles/usdt_test_lib.dir/usdt_test_lib.cc.o
[ 64%] Generating ucalls.8.gz
[ 65%] Generating uflow.8.gz
[ 65%] Generating ugc.8.gz
[ 66%] Linking CXX shared library libusdt_test_lib.so
[ 66%] Generating uobjnew.8.gz
[ 67%] Generating ustat.8.gz
[ 67%] Generating uthreads.8.gz
[ 68%] Generating vfscount.8.gz
[ 68%] Generating vfsstat.8.gz
[ 68%] Generating wakeuptime.8.gz
[ 68%] Built target usdt_test_lib
[ 69%] Generating xfsdist.8.gz
[ 69%] Generating xfsslower.8.gz
[ 69%] Generating zfsdist.8.gz
Scanning dependencies of target bcc-shared
[ 70%] Generating zfsslower.8.gz
[ 70%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/link_all.cc.o
[ 70%] Built target man
Scanning dependencies of target bcc-static
[ 71%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_common.cc.o
[ 71%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_common.cc.o
[ 71%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpf_module.cc.o
[ 72%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpf_module.cc.o
[ 72%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_btf.cc.o
[ 72%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_btf.cc.o
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc: In member function 'int ebpf::BTF::get_btf_info(const char*, void**, unsigned int*, unsigned int*, void**, unsigned int*, unsigned int*)':
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:316:33: warning: 'int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:316:33: warning: 'int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:323:33: warning: 'int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:323:33: warning: 'int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc: In member function 'int ebpf::BTF::get_btf_info(const char*, void**, unsigned int*, unsigned int*, void**, unsigned int*, unsigned int*)':
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:316:33: warning: 'int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:316:33: warning: 'int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:323:33: warning: 'int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:323:33: warning: 'int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)' is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_libbpf_inc.h:9,
from /tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/bcc_btf.cc:22:
/tmp/rpmbuild.pcdfiz/BUILD/bcc/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
[ 72%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/exported_files.cc.o
[ 73%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/exported_files.cc.o
[ 74%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_debug.cc.o
[ 74%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_debug.cc.o
[ 74%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpf_module_rw_engine.cc.o
[ 74%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpf_module_rw_engine.cc.o
[ 74%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/table_storage.cc.o
[ 75%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/table_storage.cc.o
[ 76%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/shared_table.cc.o
[ 76%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/shared_table.cc.o
[ 76%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpffs_table.cc.o
[ 77%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpffs_table.cc.o
[ 77%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/json_map_decl_visitor.cc.o
[ 77%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/json_map_decl_visitor.cc.o
[ 78%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/common.cc.o
[ 78%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_syms.cc.o
[ 78%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/usdt/usdt.cc.o
[ 79%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_elf.c.o
[ 79%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_perf_map.c.o
[ 79%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_proc.c.o
[ 80%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/common.cc.o
[ 80%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/usdt/usdt_args.cc.o
[ 80%] Linking CXX shared library libbcc.so
[ 80%] Built target bcc-shared
[ 81%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_syms.cc.o
[ 81%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_elf.c.o
[ 81%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_perf_map.c.o
[ 82%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_proc.c.o
Scanning dependencies of target test_libbcc
[ 82%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_libbcc.cc.o
[ 82%] Linking CXX static library libbcc.a
[ 82%] Built target bcc-static
Scanning dependencies of target KFuncExample
[ 83%] Building CXX object examples/cpp/CMakeFiles/KFuncExample.dir/KFuncExample.cc.o
[ 83%] Linking CXX executable KFuncExample
[ 83%] Built target KFuncExample
Scanning dependencies of target KModRetExample
[ 83%] Building CXX object examples/cpp/CMakeFiles/KModRetExample.dir/KModRetExample.cc.o
[ 84%] Linking CXX executable KModRetExample
[ 84%] Built target KModRetExample
Scanning dependencies of target HelloWorld
[ 84%] Building CXX object examples/cpp/CMakeFiles/HelloWorld.dir/HelloWorld.cc.o
[ 84%] Linking CXX executable HelloWorld
[ 84%] Built target HelloWorld
Scanning dependencies of target FollyRequestContextSwitch
[ 84%] Building CXX object examples/cpp/CMakeFiles/FollyRequestContextSwitch.dir/FollyRequestContextSwitch.cc.o
[ 85%] Linking CXX executable FollyRequestContextSwitch
[ 85%] Built target FollyRequestContextSwitch
Scanning dependencies of target CGroupTest
[ 85%] Building CXX object examples/cpp/CMakeFiles/CGroupTest.dir/CGroupTest.cc.o
[ 85%] Linking CXX executable CGroupTest
[ 85%] Built target CGroupTest
Scanning dependencies of target CPUDistribution
[ 86%] Building CXX object examples/cpp/CMakeFiles/CPUDistribution.dir/CPUDistribution.cc.o
[ 86%] Linking CXX executable CPUDistribution
[ 86%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_c_api.cc.o
[ 86%] Built target CPUDistribution
Scanning dependencies of target LLCStat
[ 86%] Building CXX object examples/cpp/CMakeFiles/LLCStat.dir/LLCStat.cc.o
/tmp/rpmbuild.pcdfiz/BUILD/bcc/tests/cc/test_c_api.cc: In function 'int mntns_func(void*)':
/tmp/rpmbuild.pcdfiz/BUILD/bcc/tests/cc/test_c_api.cc:159:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 1024 equals destination size [-Wstringop-truncation]
strncpy(libpath, lm->l_name, 1024);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 86%] Linking CXX executable LLCStat
[ 86%] Built target LLCStat
Scanning dependencies of target RandomRead
[ 86%] Building CXX object examples/cpp/CMakeFiles/RandomRead.dir/RandomRead.cc.o
[ 87%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_array_table.cc.o
[ 87%] Linking CXX executable RandomRead
[ 87%] Built target RandomRead
Scanning dependencies of target RecordMySQLQuery
[ 88%] Building CXX object examples/cpp/CMakeFiles/RecordMySQLQuery.dir/RecordMySQLQuery.cc.o
[ 88%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_bpf_table.cc.o
[ 88%] Linking CXX executable RecordMySQLQuery
[ 88%] Built target RecordMySQLQuery
Scanning dependencies of target SkLocalStorageIterator
[ 88%] Building CXX object examples/cpp/CMakeFiles/SkLocalStorageIterator.dir/SkLocalStorageIterator.cc.o
[ 89%] Linking CXX executable SkLocalStorageIterator
[ 89%] Built target SkLocalStorageIterator
Scanning dependencies of target TCPSendStack
[ 89%] Building CXX object examples/cpp/CMakeFiles/TCPSendStack.dir/TCPSendStack.cc.o
[ 89%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_cg_storage.cc.o
[ 89%] Linking CXX executable TCPSendStack
[ 90%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_hash_table.cc.o
[ 90%] Built target TCPSendStack
Scanning dependencies of target UseExternalMap
[ 90%] Building CXX object examples/cpp/CMakeFiles/UseExternalMap.dir/UseExternalMap.cc.o
[ 91%] Linking CXX executable UseExternalMap
[ 91%] Built target UseExternalMap
Scanning dependencies of target TaskIterator
[ 92%] Building CXX object examples/cpp/CMakeFiles/TaskIterator.dir/TaskIterator.cc.o
[ 92%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_map_in_map.cc.o
[ 92%] Linking CXX executable TaskIterator
[ 92%] Built target TaskIterator
Scanning dependencies of target PyPerf
[ 93%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/PyPerf.cc.o
[ 93%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/PyPerfUtil.cc.o
[ 93%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_perf_event.cc.o
[ 93%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/PyPerfBPFProgram.cc.o
[ 94%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/PyPerfLoggingHelper.cc.o
[ 94%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/PyPerfDefaultPrinter.cc.o
[ 95%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_pinned_table.cc.o
[ 95%] Building CXX object examples/cpp/pyperf/CMakeFiles/PyPerf.dir/Py36Offsets.cc.o
[ 96%] Linking CXX executable PyPerf
[ 96%] Built target PyPerf
Scanning dependencies of target test_static
[ 96%] Building C object tests/cc/CMakeFiles/test_static.dir/test_static.c.o
[ 97%] Linking CXX executable test_static
[ 97%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_prog_table.cc.o
[ 97%] Built target test_static
[ 97%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_queuestack_table.cc.o
[ 98%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_shared_table.cc.o
[ 98%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_sk_storage.cc.o
[ 98%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_sock_table.cc.o
[ 99%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_usdt_args.cc.o
[ 99%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_usdt_probes.cc.o
[ 99%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/utils.cc.o
[100%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_parse_tracepoint.cc.o
[100%] Linking CXX executable test_libbcc
[100%] Built target test_libbcc
+ popd
/tmp/rpmbuild.pcdfiz/BUILD/bcc
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.cs9yWV
+ umask 022
+ cd /tmp/rpmbuild.pcdfiz/BUILD
+ '[' /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64 '!=' / ']'
+ rm -rf /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
++ dirname /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
+ mkdir -p /tmp/rpmbuild.pcdfiz/BUILDROOT
+ mkdir /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
+ cd bcc
+ pushd build
/tmp/rpmbuild.pcdfiz/BUILD/bcc/build /tmp/rpmbuild.pcdfiz/BUILD/bcc
+ make install/strip DESTDIR=/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
[ 5%] Built target bpf-shared
[ 11%] Built target bpf-static
[ 13%] Built target bcc-loader-static
[ 16%] Built target clang_frontend
[ 17%] Built target api-static
[ 18%] Built target usdt-static
[ 22%] Built target b_frontend
[ 28%] Built target bcc-shared
[ 34%] Built target bcc-static
[ 35%] Built target bcc_py_python3
[ 35%] Built target bcc_py_python2
[ 36%] Built target bcc-lua
[ 36%] Built target bps
[ 37%] Built target KFuncExample
[ 38%] Built target KModRetExample
[ 38%] Built target HelloWorld
[ 39%] Built target FollyRequestContextSwitch
[ 39%] Built target CGroupTest
[ 40%] Built target CPUDistribution
[ 40%] Built target LLCStat
[ 40%] Built target RandomRead
[ 41%] Built target RecordMySQLQuery
[ 42%] Built target SkLocalStorageIterator
[ 42%] Built target TCPSendStack
[ 43%] Built target UseExternalMap
[ 44%] Built target TaskIterator
[ 47%] Built target PyPerf
[ 92%] Built target man
[ 93%] Built target usdt_test_lib
[ 94%] Built target test_static
[100%] Built target test_libbcc
Installing the project stripped...
-- Install configuration: "Release"
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc.so.0.18.0
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc.so.0
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc.so
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc.a
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc-loader-static.a
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc_bpf.a
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/file_desc.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/table_desc.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/table_storage.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_common.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bpf_module.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_exception.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_syms.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_proc.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_elf.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_usdt.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/bpf.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/netlink.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/if_xdp.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/btf.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/bpf_common.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/compat/linux/if_link.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/pkgconfig/libbcc.pc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/libbpf.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/perf_reader.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/bcc_version.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc_bpf.so.0.18.0
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc_bpf.so.0
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib64/libbcc_bpf.so
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/BPF.h
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/include/bcc/BPFTable.h
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/bcc
copying bcc/table.py -> build/lib/bcc
copying bcc/__init__.py -> build/lib/bcc
copying bcc/containers.py -> build/lib/bcc
copying bcc/syscall.py -> build/lib/bcc
copying bcc/libbcc.py -> build/lib/bcc
copying bcc/perf.py -> build/lib/bcc
copying bcc/tcp.py -> build/lib/bcc
copying bcc/version.py -> build/lib/bcc
copying bcc/disassembler.py -> build/lib/bcc
copying bcc/utils.py -> build/lib/bcc
copying bcc/usdt.py -> build/lib/bcc
running install_lib
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/table.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/__init__.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/containers.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/syscall.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/libbcc.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/perf.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/tcp.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/version.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/disassembler.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/utils.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
copying build/lib/bcc/usdt.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/table.py to table.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/__init__.py to __init__.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/containers.py to containers.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/syscall.py to syscall.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/libbcc.py to libbcc.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/perf.py to perf.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/tcp.py to tcp.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/version.py to version.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/disassembler.py to disassembler.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/utils.py to utils.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc/usdt.py to usdt.pyc
running install_egg_info
Writing /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7/site-packages/bcc-0.18.0-py2.7.egg-info
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/bcc
copying bcc/table.py -> build/lib/bcc
copying bcc/__init__.py -> build/lib/bcc
copying bcc/containers.py -> build/lib/bcc
copying bcc/syscall.py -> build/lib/bcc
copying bcc/libbcc.py -> build/lib/bcc
copying bcc/perf.py -> build/lib/bcc
copying bcc/tcp.py -> build/lib/bcc
copying bcc/version.py -> build/lib/bcc
copying bcc/disassembler.py -> build/lib/bcc
copying bcc/utils.py -> build/lib/bcc
copying bcc/usdt.py -> build/lib/bcc
running install_lib
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages
creating /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/table.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/__init__.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/containers.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/syscall.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/libbcc.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/perf.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/tcp.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/version.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/disassembler.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/utils.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
copying build/lib/bcc/usdt.py -> /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/table.py to table.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/__init__.py to __init__.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/containers.py to containers.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/syscall.py to syscall.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/libbcc.py to libbcc.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/perf.py to perf.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/tcp.py to tcp.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/version.py to version.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/disassembler.py to disassembler.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/utils.py to utils.cpython-36.pyc
byte-compiling /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc/usdt.py to usdt.cpython-36.pyc
running install_egg_info
Writing /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6/site-packages/bcc-0.18.0-py3.6.egg-info
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/bin/bcc-lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/introspection/bps
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/hello_world.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/bashreadline.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/bashreadline.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/kprobe-latency.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/kprobe-write.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/memleak.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/offcputime.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/sock-parse-dns.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/sock-parse-http.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/sock-proto.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/sock-protolen.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/strlen_count.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/task_switch.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/tracepoint-offcputime.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/uprobe-readline-perf.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/uprobe-readline.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/uprobe-tailkt.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/lua/usdt_ruby.lua
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/simulation.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/simple_tc.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tc_perf_event.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/simulation.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel_mesh.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/main.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel_mesh.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/neighbor_sharing/README.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/neighbor_sharing/simulation.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/neighbor_sharing/tc_neighbor_sharing.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/neighbor_sharing/tc_neighbor_sharing.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/vlan_learning/README.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/vlan_learning/simulation.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/vlan_learning/vlan_learning.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/vlan_learning/vlan_learning.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/README.md
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/chord.png
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/monitor.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/simulation.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/vxlan.jpg
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/main.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/monitor.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/setup.sh
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/traffic.sh
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-complete.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-simple.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/README.md
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-complete.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-simple.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_drop_count.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_macswap_count.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_redirect_cpu.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_redirect_map.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/biolatpcts.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/bitehist.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/dddos.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/disksnoop.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_fields.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_perf_output.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_perf_output_using_ns.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/kvm_hypercall.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/mallocstacks.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/mysqld_query.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/nflatency.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/nodejs_http_server.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/stack_buildid_example.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/stacksnoop.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_count.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_hist.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_hist_ifunc.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_snoop.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/sync_timing.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/task_switch.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/tcpv4connect.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/trace_fields.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/trace_perf_output.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/urandomread-explicit.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/urandomread.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/vfsreadlat.py
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/task_switch.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/vfsreadlat.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/CMakeLists.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/biolatpcts_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/bitehist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/dddos_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/disksnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/kvm_hypercall.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/mysqld_query_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/nodejs_http_server_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/stacksnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/tcpv4connect_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/urandomread_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/vfsreadlat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/argdist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/bashreadline.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/bindsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/biolatency.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/biolatpcts.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/biosnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/biotop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/bitesize.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/bpflist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/bps.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/btrfsdist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/btrfsslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cachestat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cachetop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/capable.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cobjnew.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/compactsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cpudist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cpuunclaimed.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/criticalstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/cthreads.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/dbslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/dbstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/dcsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/dcstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/deadlock.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/dirtop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/drsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/execsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/exitsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ext4dist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ext4slower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/filelife.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/fileslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/filetop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/funccount.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/funcinterval.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/funclatency.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/funcslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/gethostlatency.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/hardirqs.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/inject.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javacalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javaflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javagc.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javaobjnew.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javastat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/javathreads.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/killsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/klockstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/llcstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/mdflush.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/memleak.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/mountsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/mysqld_qslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/netqtop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/nfsdist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/nfsslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/nodegc.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/nodestat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/offcputime.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/offwaketime.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/oomkill.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/opensnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/perlcalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/perlflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/perlstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/phpcalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/phpflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/phpstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/pidpersec.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/profile.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/pythoncalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/pythonflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/pythongc.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/pythonstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/readahead.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/reset-trace.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/rubycalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/rubyflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/rubygc.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/rubyobjnew.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/rubystat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/runqlat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/runqlen.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/runqslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/shmsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/slabratetop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/sofdsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/softirqs.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/solisten.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/spfdsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/sslsniff.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/stackcount.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/statsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/swapin.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/syncsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/syscount.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tclcalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tclflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tclobjnew.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tclstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpaccept.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpconnect.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpconnlat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpdrop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcplife.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpretrans.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcprtt.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpstates.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpsubnet.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcpsynbl.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcptop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tcptracer.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/threadsnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/tplist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/trace.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ttysnoop.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ucalls.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/uflow.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ugc.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/uobjnew.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/ustat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/uthreads.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/vfscount.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/vfsstat.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/wakeuptime.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/xfsdist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/xfsslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/zfsdist.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/man/man8/zfsslower.8.gz
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/argdist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/bashreadline
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/bindsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/biolatency
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/biolatpcts
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/biosnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/biotop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/bitesize
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/bpflist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/btrfsdist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/btrfsslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/cachestat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/cachetop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/capable
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/compactsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/cpudist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/cpuunclaimed
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/criticalstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/dbslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/dbstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/dcsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/dcstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/deadlock
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/dirtop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/drsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/execsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/exitsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/ext4dist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/ext4slower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/filelife
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/fileslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/filetop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/funccount
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/funcinterval
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/funclatency
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/funcslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/gethostlatency
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/hardirqs
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/inject
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/killsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/klockstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/llcstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/mdflush
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/memleak
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/mountsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/mysqld_qslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/netqtop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/nfsdist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/nfsslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/offcputime
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/offwaketime
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/oomkill
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/opensnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/pidpersec
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/profile
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/readahead
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/runqlat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/runqlen
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/runqslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/shmsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/slabratetop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/sofdsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/softirqs
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/solisten
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/sslsniff
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/stackcount
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/statsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/swapin
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/syncsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/syscount
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpaccept
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpconnect
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpconnlat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpdrop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcplife
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpretrans
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcprtt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpstates
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpsubnet
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcpsynbl
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcptop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tcptracer
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/threadsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tplist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/trace
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/ttysnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/vfscount
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/vfsstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/wakeuptime
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/xfsdist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/xfsslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/zfsdist
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/zfsslower
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/cobjnew
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javacalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javaflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javagc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javaobjnew
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javastat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/javathreads
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/nodegc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/nodestat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/perlcalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/perlflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/perlstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/phpcalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/phpflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/phpstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/pythoncalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/pythonflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/pythongc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/pythonstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/reset-trace
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/rubycalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/rubyflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/rubygc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/rubyobjnew
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/rubystat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tclcalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tclflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tclobjnew
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/tclstat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/deadlock.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/netqtop.c
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/argdist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/bashreadline_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/bindsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/biolatency_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/biolatpcts_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/biosnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/biotop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/bitesize_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/bpflist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/btrfsdist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/btrfsslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cachestat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cachetop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/capable_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cobjnew_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/compactsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cpudist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cpuunclaimed_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/criticalstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/cthreads_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/dbslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/dbstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/dcsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/dcstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/deadlock_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/dirtop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/drsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/execsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/exitsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/ext4dist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/ext4slower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/filelife_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/fileslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/filetop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/funccount_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/funcinterval_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/funclatency_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/funcslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/gethostlatency_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/hardirqs_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/inject_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javacalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javaflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javagc_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javaobjnew_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javastat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/javathreads_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/killsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/klockstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/llcstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/mdflush_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/memleak_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/mountsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/mysqld_qslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/netqtop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/nfsdist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/nfsslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/nodegc_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/nodestat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/offcputime_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/offwaketime_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/oomkill_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/opensnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/perlcalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/perlflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/perlstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/phpcalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/phpflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/phpstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/pidpersec_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/profile_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/pythoncalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/pythonflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/pythongc_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/pythonstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/readahead_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/reset-trace_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/rubycalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/rubyflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/rubygc_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/rubyobjnew_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/rubystat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/runqlat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/runqlen_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/runqslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/shmsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/slabratetop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/sofdsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/softirqs_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/solisten_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/sslsniff_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/stackcount_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/statsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/swapin_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/syncsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/syscount_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tclcalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tclflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tclobjnew_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tclstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpaccept_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpconnect_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpconnlat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpdrop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcplife_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpretrans_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcprtt_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpstates_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpsubnet_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcpsynbl_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcptop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tcptracer_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/threadsnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/tplist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/trace_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/ttysnoop_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/vfscount_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/vfsstat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/wakeuptime_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/xfsdist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/xfsslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/zfsdist_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/zfsslower_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/ucalls
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/uflow
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/ugc
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/uobjnew
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/ustat
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/lib/uthreads
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/ucalls_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/uflow_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/ugc_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/uobjnew_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/ustat_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/doc/lib/uthreads_example.txt
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/bashreadline
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/biosnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/compactsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/filelife
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/gethostlatency
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/killsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/memleak
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/offcputime
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/offwaketime
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/oomkill
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/opensnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/profile
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/softirqs
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/stackcount
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/stacksnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/statsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/syncsnoop
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/tcpaccept
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/tcpconnect
-- Installing: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools/old/wakeuptime
+ find /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/tools /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples -type f -exec sed -i -e '1 s|^#!/usr/bin/python$|#!/usr/bin/python3|' -e '1 s|^#!/usr/bin/env python$|#!/usr/bin/python3|' '{}' ';'
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1
Bytecompiling .py files below /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
Bytecompiling .py files below /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/lib/python3.6 using /usr/bin/python3.6
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/simple_tc.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel_mesh.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/main.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/distributed_bridge/tunnel.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tc_perf_event.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_redirect_cpu.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_drop_count.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_redirect_map.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/xdp/xdp_macswap_count.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/monitor.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/tunnel_monitor/main.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/vlan_learning/vlan_learning.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-complete.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/http_filter/http-parse-simple.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/simulation.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/networking/neighbor_sharing/tc_neighbor_sharing.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/hello_world.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_hist.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/nodejs_http_server.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/biolatpcts.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/urandomread-explicit.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_perf_output_using_ns.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/mallocstacks.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_fields.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/stacksnoop.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/trace_fields.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/task_switch.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/tcpv4connect.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/hello_perf_output.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/mysqld_query.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_snoop.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/nflatency.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/bitehist.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/stack_buildid_example.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/disksnoop.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_count.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/strlen_hist_ifunc.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/sync_timing.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/urandomread.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/trace_perf_output.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/vfsreadlat.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/kvm_hypercall.py
/tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/tracing/dddos.py
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs '' ''
mangling shebang in /usr/share/bcc/examples/lua/sock-parse-dns.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/kprobe-latency.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/memleak.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/offcputime.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/kprobe-write.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/usdt_ruby.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/task_switch.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/strlen_count.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/uprobe-readline-perf.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/sock-proto.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/uprobe-tailkt.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/tracepoint-offcputime.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/bashreadline.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/uprobe-readline.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/sock-protolen.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
mangling shebang in /usr/share/bcc/examples/lua/sock-parse-http.lua from /usr/bin/env bcc-lua to #!/usr/bin/bcc-lua
Processing files: libbcc-0.18.0-28.git.4cf6ea24.x86_64
Provides: libbcc = 0.18.0-28.git.4cf6ea24 libbcc(x86-64) = 0.18.0-28.git.4cf6ea24 libbcc.so.0()(64bit) libbcc_bpf.so.0()(64bit) pkgconfig(libbcc) = 0.18.0
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: /usr/bin/pkg-config libLLVM-6.0.so()(64bit) libLLVM-6.0.so(LLVM_6.0)(64bit) libbcc.so.0()(64bit) libbcc_bpf.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.22)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libclangAST.so.6()(64bit) libclangAnalysis.so.6()(64bit) libclangBasic.so.6()(64bit) libclangCodeGen.so.6()(64bit) libclangDriver.so.6()(64bit) libclangEdit.so.6()(64bit) libclangFrontend.so.6()(64bit) libclangLex.so.6()(64bit) libclangParse.so.6()(64bit) libclangRewrite.so.6()(64bit) libclangSema.so.6()(64bit) libclangSerialization.so.6()(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.3)(64bit) libelf.so.1(ELFUTILS_1.5)(64bit) libelf.so.1(ELFUTILS_1.6)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.18)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH)
Processing files: python2-bcc-0.18.0-28.git.4cf6ea24.x86_64
Provides: python-bcc = 0.18.0-28.git.4cf6ea24 python-bcc(x86-64) = 0.18.0-28.git.4cf6ea24 python2-bcc = 0.18.0-28.git.4cf6ea24 python2-bcc(x86-64) = 0.18.0-28.git.4cf6ea24 python2.7dist(bcc) = 0.18.0 python2dist(bcc) = 0.18.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 2.7
Obsoletes: python-bcc < 0.18.0-28.git.4cf6ea24
Processing files: python3-bcc-0.18.0-28.git.4cf6ea24.x86_64
Provides: python3-bcc = 0.18.0-28.git.4cf6ea24 python3-bcc(x86-64) = 0.18.0-28.git.4cf6ea24 python3.6dist(bcc) = 0.18.0 python3dist(bcc) = 0.18.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 3.6
Processing files: bcc-lua-0.18.0-28.git.4cf6ea24.x86_64
Provides: bcc-lua = 0.18.0-28.git.4cf6ea24 bcc-lua(x86-64) = 0.18.0-28.git.4cf6ea24
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libluajit-5.1.so.2()(64bit) rtld(GNU_HASH)
Processing files: libbcc-examples-0.18.0-28.git.4cf6ea24.x86_64
warning: File not found: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/*.pyc
warning: File not found: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/*.pyo
warning: File not found: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/*/*.pyo
warning: File not found: /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64/usr/share/bcc/examples/*/*/*.pyo
Provides: libbcc-examples = 0.18.0-28.git.4cf6ea24 libbcc-examples(x86-64) = 0.18.0-28.git.4cf6ea24
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /usr/bin/bcc-lua /usr/bin/python3
Processing files: bcc-tools-0.18.0-28.git.4cf6ea24.x86_64
Provides: bcc-tools = 0.18.0-28.git.4cf6ea24 bcc-tools(x86-64) = 0.18.0-28.git.4cf6ea24
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /usr/bin/python3 libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.22)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.9)(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.5)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libz.so.1()(64bit) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
Wrote: /tmp/rpmbuild.pcdfiz/SRPMS/bcc-0.18.0-28.git.4cf6ea24.src.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/libbcc-0.18.0-28.git.4cf6ea24.x86_64.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/python2-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/python3-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/bcc-lua-0.18.0-28.git.4cf6ea24.x86_64.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/libbcc-examples-0.18.0-28.git.4cf6ea24.x86_64.rpm
Wrote: /tmp/rpmbuild.pcdfiz/RPMS/x86_64/bcc-tools-0.18.0-28.git.4cf6ea24.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CplKEn
+ umask 022
+ cd /tmp/rpmbuild.pcdfiz/BUILD
+ cd bcc
+ /usr/bin/rm -rf /tmp/rpmbuild.pcdfiz/BUILDROOT/bcc-0.18.0-28.git.4cf6ea24.x86_64
+ exit 0
+ popd
~/jenkins/workspace/bcc-pr/label/fc28
+ cp /tmp/rpmbuild.pcdfiz/RPMS/x86_64/bcc-lua-0.18.0-28.git.4cf6ea24.x86_64.rpm /tmp/rpmbuild.pcdfiz/RPMS/x86_64/bcc-tools-0.18.0-28.git.4cf6ea24.x86_64.rpm /tmp/rpmbuild.pcdfiz/RPMS/x86_64/libbcc-0.18.0-28.git.4cf6ea24.x86_64.rpm /tmp/rpmbuild.pcdfiz/RPMS/x86_64/libbcc-examples-0.18.0-28.git.4cf6ea24.x86_64.rpm /tmp/rpmbuild.pcdfiz/RPMS/x86_64/python2-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm /tmp/rpmbuild.pcdfiz/RPMS/x86_64/python3-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm .
+ cp /tmp/rpmbuild.pcdfiz/SRPMS/bcc-0.18.0-28.git.4cf6ea24.src.rpm .
+ cleanup
+ [[ -d /tmp/rpmbuild.pcdfiz ]]
+ rm -rf /tmp/rpmbuild.pcdfiz
+ sudo rpm -ivh bcc-lua-0.18.0-28.git.4cf6ea24.x86_64.rpm bcc-tools-0.18.0-28.git.4cf6ea24.x86_64.rpm libbcc-0.18.0-28.git.4cf6ea24.x86_64.rpm libbcc-examples-0.18.0-28.git.4cf6ea24.x86_64.rpm python2-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm python3-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm
Preparing... ########################################
Updating / installing...
libbcc-0.18.0-28.git.4cf6ea24 ########################################
python3-bcc-0.18.0-28.git.4cf6ea24 ########################################
bcc-lua-0.18.0-28.git.4cf6ea24 ########################################
libbcc-examples-0.18.0-28.git.4cf6ea24########################################
bcc-tools-0.18.0-28.git.4cf6ea24 ########################################
python2-bcc-0.18.0-28.git.4cf6ea24 ########################################
+ mkdir upload
+ mv bcc-0.18.0-28.git.4cf6ea24.src.rpm bcc-lua-0.18.0-28.git.4cf6ea24.x86_64.rpm bcc-tools-0.18.0-28.git.4cf6ea24.x86_64.rpm libbcc-0.18.0-28.git.4cf6ea24.x86_64.rpm libbcc-examples-0.18.0-28.git.4cf6ea24.x86_64.rpm python2-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm python3-bcc-0.18.0-28.git.4cf6ea24.x86_64.rpm upload
[fc28] $ /bin/sh -xe /tmp/CommandInterpreterCondition110551191537279960.sh
+ grep -q '^ID=ubuntu' /etc/os-release
Run condition [Execute Shell] preventing perform for step [Execute shell]
[fc28] $ /bin/sh -xe /tmp/jenkins2617787027256758298.sh
+ mkdir build
+ cd build
+ [[ fc28 fedora28-slave-f49 = *\f\c\2\8* ]]
+ EXTRA_CMAKE_FLAGS=-DENABLE_LLVM_SHARED=1
+ sudo ln -s /usr/bin/python3 /usr/local/bin/python
+ cmake .. -DENABLE_LLVM_SHARED=1
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Latest recognized Git tag is v0.18.0
-- Git HEAD is 4cf6ea24d64636f06f85904245e0f3f55a2b8579
-- Revision is 0.18.0-4cf6ea24
-- Performing Test HAVE_NO_PIE_FLAG
-- Performing Test HAVE_NO_PIE_FLAG - Success
-- Performing Test HAVE_REALLOCARRAY_SUPPORT
-- Performing Test HAVE_REALLOCARRAY_SUPPORT - Success
-- Found LLVM: /usr/include 6.0.1
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Found FLEX: /usr/bin/flex (found version "2.6.1")
-- Found LibElf: /usr/lib64/libelf.so
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Found LuaJIT: /usr/lib64/libluajit-5.1.so;/usr/lib64/libdl.so;/usr/lib64/libm.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fedora/jenkins/workspace/bcc-pr/label/fc28/build
+ make -j2 -C tests/cc
make: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/tests/cc'
make[1]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target usdt_test_lib
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target clang_frontend
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 0%] Building CXX object tests/cc/CMakeFiles/usdt_test_lib.dir/usdt_test_lib.cc.o
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 2%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/loader.cc.o
[ 5%] Linking CXX shared library libusdt_test_lib.so
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 5%] Built target usdt_test_lib
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target bpf-static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 5%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-static.dir/perf_reader.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf.c.o
[ 8%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf_prog_linfo.c.o
[ 11%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf.c.o
[ 11%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf_dump.c.o
[ 13%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/hashmap.c.o
[ 13%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf.c.o
[ 13%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_errno.c.o
[ 16%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_probes.c.o
[ 16%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/netlink.c.o
[ 16%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/nlattr.c.o
[ 19%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/ringbuf.c.o
[ 19%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/str_error.c.o
[ 19%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/xsk.c.o
[ 22%] Linking C static library libbcc_bpf.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 22%] Built target bpf-static
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target bcc-loader-static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 22%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o
[ 22%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o
[ 25%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o
[ 25%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o
[ 25%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/common.cc.o
[ 27%] Linking CXX static library libbcc-loader-static.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 27%] Built target bcc-loader-static
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target api-static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 27%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPF.cc.o
[ 27%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/api/BPF.cc:32:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_exception.h: In member function ‘ebpf::StatusTuple ebpf::BPF::detach_raw_tracepoint_event(const string&, ebpf::open_probe_t&)’:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_exception.h:24:7: warning: ‘__stp.ebpf::StatusTuple::code_’ may be used uninitialized in this function [-Wmaybe-uninitialized]
class StatusTuple {
^~~~~~~~~~~
[ 30%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPFTable.cc.o
[ 30%] Linking CXX static library libapi-static.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 30%] Built target api-static
[ 30%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o
[ 33%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/frontends/clang/kbuild_helper.cc:80:3: warning: multi-line comment [-Wcomment]
// USERINCLUDE := \
^
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/frontends/clang/kbuild_helper.cc:89:3: warning: multi-line comment [-Wcomment]
// LINUXINCLUDE := \
^
[ 33%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/__/__/common.cc.o
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target usdt-static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 33%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt_args.cc.o
[ 33%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt.cc.o
[ 36%] Linking CXX static library libusdt-static.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 36%] Built target usdt-static
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 38%] [FLEX][Lexer] Building scanner with flex 2.6.1
lexer.ll:110: warning, -s option given but default rule can be matched
[ 38%] [BISON][Parser] Building parser with bison 3.0.4
parser.yy:19.9-17: warning: deprecated directive, use ‘%define api.namespace ebpf::cc’ [-Wdeprecated]
%define namespace "ebpf::cc"
^^^^^^^^^
parser.yy:19.9-17: warning: %define variable 'api.namespace' requires '{...}' values [-Wdeprecated]
%define namespace "ebpf::cc"
^^^^^^^^^
parser.yy:20.9-25: warning: %define variable 'parser_class_name' requires '{...}' values [-Wdeprecated]
%define parser_class_name "BisonParser"
^^^^^^^^^^^^^^^^^
Scanning dependencies of target b_frontend
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 38%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/loader.cc.o
[ 38%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/codegen_llvm.cc.o
[ 41%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/node.cc.o
[ 41%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.cc.o
[ 41%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/printer.cc.o
[ 41%] Linking CXX static library libclang_frontend.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 41%] Built target clang_frontend
[ 44%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/type_check.cc.o
[ 44%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.yy.cc.o
[ 44%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/lexer.ll.cc.o
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/src/cc/frontends/b/lexer.ll.cc: In member function ‘virtual int ebpf::cc::Lexer::yylex()’:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/src/cc/frontends/b/lexer.ll.cc:752:23: warning: comparison of integer expressions of different signedness: ‘yy_size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
for ( yyl = 0; yyl < yyleng; ++yyl )
~~~~^~~~~~~~
[ 47%] Linking CXX static library libb_frontend.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 47%] Built target b_frontend
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target bcc-shared
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target bcc-static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 50%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/link_all.cc.o
[ 50%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_common.cc.o
[ 50%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_common.cc.o
[ 52%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpf_module.cc.o
[ 52%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpf_module.cc.o
[ 55%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_btf.cc.o
[ 55%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_btf.cc.o
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc: In member function ‘int ebpf::BTF::get_btf_info(const char*, void**, unsigned int*, unsigned int*, void**, unsigned int*, unsigned int*)’:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:316:33: warning: ‘int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc: In member function ‘int ebpf::BTF::get_btf_info(const char*, void**, unsigned int*, unsigned int*, void**, unsigned int*, unsigned int*)’:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:316:33: warning: ‘int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:316:33: warning: ‘int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:323:33: warning: ‘int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:323:33: warning: ‘int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:316:33: warning: ‘int btf_ext__reloc_func_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_func_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
func_info, func_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:80:5: note: declared here
int btf_ext__reloc_func_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:323:33: warning: ‘int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:323:33: warning: ‘int btf_ext__reloc_line_info(const btf*, const btf_ext*, const char*, __u32, void**, __u32*)’ is deprecated: btf_ext__reloc_line_info was never meant as a public API and has wrong assumptions embedded in it; it will be removed in the future libbpf versions [-Wdeprecated-declarations]
line_info, line_info_cnt);
^
In file included from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_libbpf_inc.h:9,
from /home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/bcc_btf.cc:22:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf/src/btf.h:85:5: note: declared here
int btf_ext__reloc_line_info(const struct btf *btf,
^~~~~~~~~~~~~~~~~~~~~~~~
[ 55%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/exported_files.cc.o
[ 55%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/exported_files.cc.o
[ 58%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_debug.cc.o
[ 58%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_debug.cc.o
[ 61%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpf_module_rw_engine.cc.o
[ 61%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpf_module_rw_engine.cc.o
[ 61%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/table_storage.cc.o
[ 61%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/table_storage.cc.o
[ 63%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/shared_table.cc.o
[ 63%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/shared_table.cc.o
[ 66%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bpffs_table.cc.o
[ 66%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bpffs_table.cc.o
[ 66%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/json_map_decl_visitor.cc.o
[ 66%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/json_map_decl_visitor.cc.o
[ 69%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/common.cc.o
[ 69%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/bcc_syms.cc.o
[ 69%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/usdt/usdt.cc.o
[ 72%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_elf.c.o
[ 72%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_perf_map.c.o
[ 72%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_proc.c.o
[ 75%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/common.cc.o
[ 77%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/usdt/usdt_args.cc.o
[ 77%] Linking CXX shared library libbcc.so
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 77%] Built target bcc-shared
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target test_libbcc
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 77%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_libbcc.cc.o
[ 77%] Building CXX object src/cc/CMakeFiles/bcc-static.dir/bcc_syms.cc.o
[ 77%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_elf.c.o
[ 80%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_perf_map.c.o
[ 80%] Building C object src/cc/CMakeFiles/bcc-static.dir/bcc_proc.c.o
[ 80%] Linking CXX static library libbcc.a
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 80%] Built target bcc-static
[ 80%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_c_api.cc.o
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/tests/cc/test_c_api.cc: In function ‘int mntns_func(void*)’:
/home/fedora/jenkins/workspace/bcc-pr/label/fc28/tests/cc/test_c_api.cc:159:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 1024 equals destination size [-Wstringop-truncation]
strncpy(libpath, lm->l_name, 1024);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 83%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_array_table.cc.o
[ 83%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_bpf_table.cc.o
[ 83%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_cg_storage.cc.o
[ 86%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_hash_table.cc.o
[ 86%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_map_in_map.cc.o
[ 86%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_perf_event.cc.o
[ 88%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_pinned_table.cc.o
[ 88%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_prog_table.cc.o
[ 88%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_queuestack_table.cc.o
[ 91%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_shared_table.cc.o
[ 91%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_sk_storage.cc.o
[ 91%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_sock_table.cc.o
[ 94%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_usdt_args.cc.o
[ 94%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_usdt_probes.cc.o
[ 94%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/utils.cc.o
[ 97%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_parse_tracepoint.cc.o
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
Scanning dependencies of target test_static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make[2]: Entering directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[ 97%] Building C object tests/cc/CMakeFiles/test_static.dir/test_static.c.o
[100%] Linking CXX executable test_static
[100%] Linking CXX executable test_libbcc
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[100%] Built target test_static
make[2]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
[100%] Built target test_libbcc
make[1]: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build'
make: Leaving directory '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/tests/cc'
+ ctest -V -D ExperimentalTest --no-compress-output
UpdateCTestConfiguration from :/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/DartConfiguration.tcl
Cannot find file: /home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/DartConfiguration.tcl
Site:
Build name: (empty)
Create new tag: 20210211-0649 - Experimental
UpdateCTestConfiguration from :/home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/DartConfiguration.tcl
Cannot find file: /home/fedora/jenkins/workspace/bcc-pr/label/fc28/build/DartConfiguration.tcl
Test project /home/fedora/jenkins/workspace/bcc-pr/label/fc28/build
Constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: style-check
1: Test command: /home/fedora/jenkins/workspace/bcc-pr/label/fc28/scripts/c-style-check.sh
1: Test timeout computed to be: 10000000
1: diff --git a/libbpf-tools/arm64/vmlinux.h b/libbpf-tools/arm64/vmlinux.h
1: deleted file mode 120000
1: index 33125432..00000000
1: --- a/libbpf-tools/arm64/vmlinux.h
1: +++ /dev/null
1: @@ -1 +0,0 @@
1: -vmlinux_510.h
1: \ No newline at end of file
1: diff --git a/libbpf-tools/arm64/vmlinux.h b/libbpf-tools/arm64/vmlinux.h
1: new file mode 100644
1: index 00000000..f84b1347
1: --- /dev/null
1: +++ b/libbpf-tools/arm64/vmlinux.h
1: @@ -0,0 +1,110543 @@
1: +#ifndef __VMLINUX_H__
1: +#define __VMLINUX_H__
1: +
1: +#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
1: +#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
1: +#endif
1: +
1: +typedef signed char __s8;
1: +
1: +typedef unsigned char __u8;
1: +
1: +typedef short unsigned int __u16;
1: +
1: +typedef int __s32;
1: +
1: +typedef unsigned int __u32;
1: +
1: +typedef long long int __s64;
1: +
1: +typedef long long unsigned int __u64;
1: +
1: +typedef __s8 s8;
1: +
1: +typedef __u8 u8;
1: +
1: +typedef __u16 u16;
1: +
1: +typedef __s32 s32;
1: +
1: +typedef __u32 u32;
1: +
1: +typedef __s64 s64;
1: +
1: +typedef __u64 u64;
1: +
1: +enum {
1: + false = 0,
1: + true = 1,
1: +};
1: +
1: +typedef long int __kernel_long_t;
1: +
1: +typedef long unsigned int __kernel_ulong_t;
1: +
1: +typedef int __kernel_pid_t;
1: +
1: +typedef unsigned int __kernel_uid32_t;
1: +
1: +typedef unsigned int __kernel_gid32_t;
1: +
1: +typedef __kernel_ulong_t __kernel_size_t;
1: +
1: +typedef __kernel_long_t __kernel_ssize_t;
1: +
1: +typedef long long int __kernel_loff_t;
1: +
1: +typedef long long int __kernel_time64_t;
1: +
1: +typedef __kernel_long_t __kernel_clock_t;
1: +
1: +typedef int __kernel_timer_t;
1: +
1: +typedef int __kernel_clockid_t;
1: +
1: +typedef __u32 __le32;
1: +
1: +typedef unsigned int __poll_t;
1: +
1: +typedef u32 __kernel_dev_t;
1: +
1: +typedef __kernel_dev_t dev_t;
1: +
1: +typedef short unsigned int umode_t;
1: +
1: +typedef __kernel_pid_t pid_t;
1: +
1: +typedef __kernel_clockid_t clockid_t;
1: +
1: +typedef _Bool bool;
1: +
1: +typedef __kernel_uid32_t uid_t;
1: +
1: +typedef __kernel_gid32_t gid_t;
1: +
1: +typedef __kernel_loff_t loff_t;
1: +
1: +typedef __kernel_size_t size_t;
1: +
1: +typedef __kernel_ssize_t ssize_t;
1: +
1: +typedef s32 int32_t;
1: +
1: +typedef u32 uint32_t;
1: +
1: +typedef u64 sector_t;
1: +
1: +typedef u64 blkcnt_t;
1: +
1: +typedef u64 dma_addr_t;
1: +
1: +typedef unsigned int gfp_t;
1: +
1: +typedef unsigned int fmode_t;
1: +
1: +typedef u64 phys_addr_t;
1: +
1: +typedef long unsigned int irq_hw_number_t;
1: +
1: +typedef struct {
1: + int counter;
1: +} atomic_t;
1: +
1: +typedef struct {
1: + s64 counter;
1: +} atomic64_t;
1: +
1: +struct list_head {
1: + struct list_head *next;
1: + struct list_head *prev;
1: +};
1: +
1: +struct hlist_node;
1: +
1: +struct hlist_head {
1: + struct hlist_node *first;
1: +};
1: +
1: +struct hlist_node {
1: + struct hlist_node *next;
1: + struct hlist_node **pprev;
1: +};
1: +
1: +struct callback_head {
1: + struct callback_head *next;
1: + void (*func)(struct callback_head *);
1: +};
1: +
1: +struct kernel_symbol {
1: + int value_offset;
1: + int name_offset;
1: + int namespace_offset;
1: +};
1: +
1: +struct jump_entry {
1: + s32 code;
1: + s32 target;
1: + long int key;
1: +};
1: +
1: +struct static_key_mod;
1: +
1: +struct static_key {
1: + atomic_t enabled;
1: + union {
1: + long unsigned int type;
1: + struct jump_entry *entries;
1: + struct static_key_mod *next;
1: + };
1: +};
1: +
1: +struct static_key_false {
1: + struct static_key key;
1: +};
1: +
1: +typedef int (*initcall_t)();
1: +
1: +typedef int initcall_entry_t;
1: +
1: +struct lock_class_key {};
1: +
1: +struct fs_context;
1: +
1: +struct fs_parameter_spec;
1: +
1: +struct dentry;
1: +
1: +struct super_block;
1: +
1: +struct module;
1: +
1: +struct file_system_type {
1: + const char *name;
1: + int fs_flags;
1: + int (*init_fs_context)(struct fs_context *);
1: + const struct fs_parameter_spec *parameters;
1: + struct dentry * (*mount)(struct file_system_type *, int, const char *, void *);
1: + void (*kill_sb)(struct super_block *);
1: + struct module *owner;
1: + struct file_system_type *next;
1: + struct hlist_head fs_supers;
1: + struct lock_class_key s_lock_key;
1: + struct lock_class_key s_umount_key;
1: + struct lock_class_key s_vfs_rename_key;
1: + struct lock_class_key s_writers_key[3];
1: + struct lock_class_key i_lock_key;
1: + struct lock_class_key i_mutex_key;
1: + struct lock_class_key i_mutex_dir_key;
1: +};
1: +
1: +struct obs_kernel_param {
1: + const char *str;
1: + int (*setup_func)(char *);
1: + int early;
1: +};
1: +
1: +typedef atomic64_t atomic_long_t;
1: +
1: +struct qspinlock {
1: + union {
1: + atomic_t val;
1: + struct {
1: + u8 locked;
1: + u8 pending;
1: + };
1: + struct {
1: + u16 locked_pending;
1: + u16 tail;
1: + };
1: + };
1: +};
1: +
1: +typedef struct qspinlock arch_spinlock_t;
1: +
1: +struct qrwlock {
1: + union {
1: + atomic_t cnts;
1: + struct {
1: + u8 wlocked;
1: + u8 __lstate[3];
1: + };
1: + };
1: + arch_spinlock_t wait_lock;
1: +};
1: +
1: +typedef struct qrwlock arch_rwlock_t;
1: +
1: +struct lockdep_map {};
1: +
1: +struct raw_spinlock {
1: + arch_spinlock_t raw_lock;
1: +};
1: +
1: +typedef struct raw_spinlock raw_spinlock_t;
1: +
1: +struct spinlock {
1: + union {
1: + struct raw_spinlock rlock;
1: + };
1: +};
1: +
1: +typedef struct spinlock spinlock_t;
1: +
1: +typedef struct {
1: + arch_rwlock_t raw_lock;
1: +} rwlock_t;
1: +
1: +struct ratelimit_state {
1: + raw_spinlock_t lock;
1: + int interval;
1: + int burst;
1: + int printed;
1: + int missed;
1: + long unsigned int begin;
1: + long unsigned int flags;
1: +};
1: +
1: +typedef void *fl_owner_t;
1: +
1: +struct file;
1: +
1: +struct kiocb;
1: +
1: +struct iov_iter;
1: +
1: +struct dir_context;
1: +
1: +struct poll_table_struct;
1: +
1: +struct vm_area_struct;
1: +
1: +struct inode;
1: +
1: +struct file_lock;
1: +
1: +struct page;
1: +
1: +struct pipe_inode_info;
1: +
1: +struct seq_file;
1: +
1: +struct file_operations {
1: + struct module *owner;
1: + loff_t (*llseek)(struct file *, loff_t, int);
1: + ssize_t (*read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*write)(struct file *, const char *, size_t, loff_t *);
1: + ssize_t (*read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*write_iter)(struct kiocb *, struct iov_iter *);
1: + int (*iopoll)(struct kiocb *, bool);
1: + int (*iterate)(struct file *, struct dir_context *);
1: + int (*iterate_shared)(struct file *, struct dir_context *);
1: + __poll_t (*poll)(struct file *, struct poll_table_struct *);
1: + long int (*unlocked_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int mmap_supported_flags;
1: + int (*open)(struct inode *, struct file *);
1: + int (*flush)(struct file *, fl_owner_t);
1: + int (*release)(struct inode *, struct file *);
1: + int (*fsync)(struct file *, loff_t, loff_t, int);
1: + int (*fasync)(int, struct file *, int);
1: + int (*lock)(struct file *, int, struct file_lock *);
1: + ssize_t (*sendpage)(struct file *, struct page *, int, size_t, loff_t *, int);
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + int (*check_flags)(int);
1: + int (*flock)(struct file *, int, struct file_lock *);
1: + ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1: + ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + int (*setlease)(struct file *, long int, struct file_lock **, void **);
1: + long int (*fallocate)(struct file *, int, loff_t, loff_t);
1: + void (*show_fdinfo)(struct seq_file *, struct file *);
1: + ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int);
1: + loff_t (*remap_file_range)(struct file *, loff_t, struct file *, loff_t, loff_t, unsigned int);
1: + int (*fadvise)(struct file *, loff_t, loff_t, int);
1: +};
1: +
1: +enum system_states {
1: + SYSTEM_BOOTING = 0,
1: + SYSTEM_SCHEDULING = 1,
1: + SYSTEM_RUNNING = 2,
1: + SYSTEM_HALT = 3,
1: + SYSTEM_POWER_OFF = 4,
1: + SYSTEM_RESTART = 5,
1: + SYSTEM_SUSPEND = 6,
1: +};
1: +
1: +typedef __s64 time64_t;
1: +
1: +struct __kernel_timespec {
1: + __kernel_time64_t tv_sec;
1: + long long int tv_nsec;
1: +};
1: +
1: +struct timespec64 {
1: + time64_t tv_sec;
1: + long int tv_nsec;
1: +};
1: +
1: +struct bug_entry {
1: + int bug_addr_disp;
1: + int file_disp;
1: + short unsigned int line;
1: + short unsigned int flags;
1: +};
1: +
1: +struct cpumask {
1: + long unsigned int bits[2];
1: +};
1: +
1: +typedef struct cpumask cpumask_t;
1: +
1: +typedef struct cpumask cpumask_var_t[1];
1: +
1: +struct llist_node {
1: + struct llist_node *next;
1: +};
1: +
1: +struct __call_single_node {
1: + struct llist_node llist;
1: + union {
1: + unsigned int u_flags;
1: + atomic_t a_flags;
1: + };
1: + u16 src;
1: + u16 dst;
1: +};
1: +
1: +typedef void (*smp_call_func_t)(void *);
1: +
1: +struct __call_single_data {
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llist;
1: + unsigned int flags;
1: + u16 src;
1: + u16 dst;
1: + };
1: + };
1: + smp_call_func_t func;
1: + void *info;
1: +};
1: +
1: +enum timespec_type {
1: + TT_NONE = 0,
1: + TT_NATIVE = 1,
1: + TT_COMPAT = 2,
1: +};
1: +
1: +typedef s32 old_time32_t;
1: +
1: +struct old_timespec32 {
1: + old_time32_t tv_sec;
1: + s32 tv_nsec;
1: +};
1: +
1: +struct pollfd {
1: + int fd;
1: + short int events;
1: + short int revents;
1: +};
1: +
1: +struct restart_block {
1: + long int (*fn)(struct restart_block *);
1: + union {
1: + struct {
1: + u32 *uaddr;
1: + u32 val;
1: + u32 flags;
1: + u32 bitset;
1: + u64 time;
1: + u32 *uaddr2;
1: + } futex;
1: + struct {
1: + clockid_t clockid;
1: + enum timespec_type type;
1: + union {
1: + struct __kernel_timespec *rmtp;
1: + struct old_timespec32 *compat_rmtp;
1: + };
1: + u64 expires;
1: + } nanosleep;
1: + struct {
1: + struct pollfd *ufds;
1: + int nfds;
1: + int has_timeout;
1: + long unsigned int tv_sec;
1: + long unsigned int tv_nsec;
1: + } poll;
1: + };
1: +};
1: +
1: +typedef long unsigned int mm_segment_t;
1: +
1: +struct thread_info {
1: + long unsigned int flags;
1: + mm_segment_t addr_limit;
1: + u64 ttbr0;
1: + union {
1: + u64 preempt_count;
1: + struct {
1: + u32 count;
1: + u32 need_resched;
1: + } preempt;
1: + };
1: +};
1: +
1: +struct refcount_struct {
1: + atomic_t refs;
1: +};
1: +
1: +typedef struct refcount_struct refcount_t;
1: +
1: +struct load_weight {
1: + long unsigned int weight;
1: + u32 inv_weight;
1: +};
1: +
1: +struct rb_node {
1: + long unsigned int __rb_parent_color;
1: + struct rb_node *rb_right;
1: + struct rb_node *rb_left;
1: +};
1: +
1: +struct sched_statistics {
1: + u64 wait_start;
1: + u64 wait_max;
1: + u64 wait_count;
1: + u64 wait_sum;
1: + u64 iowait_count;
1: + u64 iowait_sum;
1: + u64 sleep_start;
1: + u64 sleep_max;
1: + s64 sum_sleep_runtime;
1: + u64 block_start;
1: + u64 block_max;
1: + u64 exec_max;
1: + u64 slice_max;
1: + u64 nr_migrations_cold;
1: + u64 nr_failed_migrations_affine;
1: + u64 nr_failed_migrations_running;
1: + u64 nr_failed_migrations_hot;
1: + u64 nr_forced_migrations;
1: + u64 nr_wakeups;
1: + u64 nr_wakeups_sync;
1: + u64 nr_wakeups_migrate;
1: + u64 nr_wakeups_local;
1: + u64 nr_wakeups_remote;
1: + u64 nr_wakeups_affine;
1: + u64 nr_wakeups_affine_attempts;
1: + u64 nr_wakeups_passive;
1: + u64 nr_wakeups_idle;
1: +};
1: +
1: +struct util_est {
1: + unsigned int enqueued;
1: + unsigned int ewma;
1: +};
1: +
1: +struct sched_avg {
1: + u64 last_update_time;
1: + u64 load_sum;
1: + u64 runnable_sum;
1: + u32 util_sum;
1: + u32 period_contrib;
1: + long unsigned int load_avg;
1: + long unsigned int runnable_avg;
1: + long unsigned int util_avg;
1: + struct util_est util_est;
1: +};
1: +
1: +struct cfs_rq;
1: +
1: +struct sched_entity {
1: + struct load_weight load;
1: + struct rb_node run_node;
1: + struct list_head group_node;
1: + unsigned int on_rq;
1: + u64 exec_start;
1: + u64 sum_exec_runtime;
1: + u64 vruntime;
1: + u64 prev_sum_exec_runtime;
1: + u64 nr_migrations;
1: + struct sched_statistics statistics;
1: + int depth;
1: + struct sched_entity *parent;
1: + struct cfs_rq *cfs_rq;
1: + struct cfs_rq *my_q;
1: + long unsigned int runnable_weight;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg;
1: +};
1: +
1: +struct sched_rt_entity {
1: + struct list_head run_list;
1: + long unsigned int timeout;
1: + long unsigned int watchdog_stamp;
1: + unsigned int time_slice;
1: + short unsigned int on_rq;
1: + short unsigned int on_list;
1: + struct sched_rt_entity *back;
1: +};
1: +
1: +typedef s64 ktime_t;
1: +
1: +struct timerqueue_node {
1: + struct rb_node node;
1: + ktime_t expires;
1: +};
1: +
1: +enum hrtimer_restart {
1: + HRTIMER_NORESTART = 0,
1: + HRTIMER_RESTART = 1,
1: +};
1: +
1: +struct hrtimer_clock_base;
1: +
1: +struct hrtimer {
1: + struct timerqueue_node node;
1: + ktime_t _softexpires;
1: + enum hrtimer_restart (*function)(struct hrtimer *);
1: + struct hrtimer_clock_base *base;
1: + u8 state;
1: + u8 is_rel;
1: + u8 is_soft;
1: + u8 is_hard;
1: +};
1: +
1: +struct sched_dl_entity {
1: + struct rb_node rb_node;
1: + u64 dl_runtime;
1: + u64 dl_deadline;
1: + u64 dl_period;
1: + u64 dl_bw;
1: + u64 dl_density;
1: + s64 runtime;
1: + u64 deadline;
1: + unsigned int flags;
1: + unsigned int dl_throttled: 1;
1: + unsigned int dl_yielded: 1;
1: + unsigned int dl_non_contending: 1;
1: + unsigned int dl_overrun: 1;
1: + struct hrtimer dl_timer;
1: + struct hrtimer inactive_timer;
1: + struct sched_dl_entity *pi_se;
1: +};
1: +
1: +struct uclamp_se {
1: + unsigned int value: 11;
1: + unsigned int bucket_id: 3;
1: + unsigned int active: 1;
1: + unsigned int user_defined: 1;
1: +};
1: +
1: +union rcu_special {
1: + struct {
1: + u8 blocked;
1: + u8 need_qs;
1: + u8 exp_hint;
1: + u8 need_mb;
1: + } b;
1: + u32 s;
1: +};
1: +
1: +struct sched_info {
1: + long unsigned int pcount;
1: + long long unsigned int run_delay;
1: + long long unsigned int last_arrival;
1: + long long unsigned int last_queued;
1: +};
1: +
1: +struct plist_node {
1: + int prio;
1: + struct list_head prio_list;
1: + struct list_head node_list;
1: +};
1: +
1: +struct vmacache {
1: + u64 seqnum;
1: + struct vm_area_struct *vmas[4];
1: +};
1: +
1: +struct task_rss_stat {
1: + int events;
1: + int count[4];
1: +};
1: +
1: +struct prev_cputime {
1: + u64 utime;
1: + u64 stime;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct rb_root {
1: + struct rb_node *rb_node;
1: +};
1: +
1: +struct rb_root_cached {
1: + struct rb_root rb_root;
1: + struct rb_node *rb_leftmost;
1: +};
1: +
1: +struct timerqueue_head {
1: + struct rb_root_cached rb_root;
1: +};
1: +
1: +struct posix_cputimer_base {
1: + u64 nextevt;
1: + struct timerqueue_head tqhead;
1: +};
1: +
1: +struct posix_cputimers {
1: + struct posix_cputimer_base bases[3];
1: + unsigned int timers_active;
1: + unsigned int expiry_active;
1: +};
1: +
1: +struct sem_undo_list;
1: +
1: +struct sysv_sem {
1: + struct sem_undo_list *undo_list;
1: +};
1: +
1: +struct sysv_shm {
1: + struct list_head shm_clist;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int sig[1];
1: +} sigset_t;
1: +
1: +struct sigpending {
1: + struct list_head list;
1: + sigset_t signal;
1: +};
1: +
1: +typedef struct {
1: + uid_t val;
1: +} kuid_t;
1: +
1: +struct seccomp_filter;
1: +
1: +struct seccomp {
1: + int mode;
1: + atomic_t filter_count;
1: + struct seccomp_filter *filter;
1: +};
1: +
1: +struct wake_q_node {
1: + struct wake_q_node *next;
1: +};
1: +
1: +struct task_io_accounting {
1: + u64 rchar;
1: + u64 wchar;
1: + u64 syscr;
1: + u64 syscw;
1: + u64 read_bytes;
1: + u64 write_bytes;
1: + u64 cancelled_write_bytes;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int bits[2];
1: +} nodemask_t;
1: +
1: +struct seqcount {
1: + unsigned int sequence;
1: +};
1: +
1: +typedef struct seqcount seqcount_t;
1: +
1: +struct seqcount_spinlock {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_spinlock seqcount_spinlock_t;
1: +
1: +struct optimistic_spin_queue {
1: + atomic_t tail;
1: +};
1: +
1: +struct mutex {
1: + atomic_long_t owner;
1: + spinlock_t wait_lock;
1: + struct optimistic_spin_queue osq;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct tlbflush_unmap_batch {};
1: +
1: +struct page_frag {
1: + struct page *page;
1: + __u32 offset;
1: + __u32 size;
1: +};
1: +
1: +struct latency_record {
1: + long unsigned int backtrace[12];
1: + unsigned int count;
1: + long unsigned int time;
1: + long unsigned int max;
1: +};
1: +
1: +struct cpu_context {
1: + long unsigned int x19;
1: + long unsigned int x20;
1: + long unsigned int x21;
1: + long unsigned int x22;
1: + long unsigned int x23;
1: + long unsigned int x24;
1: + long unsigned int x25;
1: + long unsigned int x26;
1: + long unsigned int x27;
1: + long unsigned int x28;
1: + long unsigned int fp;
1: + long unsigned int sp;
1: + long unsigned int pc;
1: +};
1: +
1: +struct user_fpsimd_state {
1: + __int128 unsigned vregs[32];
1: + __u32 fpsr;
1: + __u32 fpcr;
1: + __u32 __reserved[2];
1: +};
1: +
1: +struct perf_event;
1: +
1: +struct debug_info {
1: + int suspended_step;
1: + int bps_disabled;
1: + int wps_disabled;
1: + struct perf_event *hbp_break[16];
1: + struct perf_event *hbp_watch[16];
1: +};
1: +
1: +struct ptrauth_key {
1: + long unsigned int lo;
1: + long unsigned int hi;
1: +};
1: +
1: +struct ptrauth_keys_user {
1: + struct ptrauth_key apia;
1: + struct ptrauth_key apib;
1: + struct ptrauth_key apda;
1: + struct ptrauth_key apdb;
1: + struct ptrauth_key apga;
1: +};
1: +
1: +struct ptrauth_keys_kernel {
1: + struct ptrauth_key apia;
1: +};
1: +
1: +struct thread_struct {
1: + struct cpu_context cpu_context;
1: + long: 64;
1: + struct {
1: + long unsigned int tp_value;
1: + long unsigned int tp2_value;
1: + struct user_fpsimd_state fpsimd_state;
1: + } uw;
1: + unsigned int fpsimd_cpu;
1: + void *sve_state;
1: + unsigned int sve_vl;
1: + unsigned int sve_vl_onexec;
1: + long unsigned int fault_address;
1: + long unsigned int fault_code;
1: + struct debug_info debug;
1: + struct ptrauth_keys_user keys_user;
1: + struct ptrauth_keys_kernel keys_kernel;
1: + u64 sctlr_tcf0;
1: + u64 gcr_user_incl;
1: + long: 64;
1: +};
1: +
1: +struct sched_class;
1: +
1: +struct task_group;
1: +
1: +struct mm_struct;
1: +
1: +struct pid;
1: +
1: +struct completion;
1: +
1: +struct cred;
1: +
1: +struct key;
1: +
1: +struct nameidata;
1: +
1: +struct fs_struct;
1: +
1: +struct files_struct;
1: +
1: +struct io_uring_task;
1: +
1: +struct nsproxy;
1: +
1: +struct signal_struct;
1: +
1: +struct sighand_struct;
1: +
1: +struct audit_context;
1: +
1: +struct rt_mutex_waiter;
1: +
1: +struct bio_list;
1: +
1: +struct blk_plug;
1: +
1: +struct reclaim_state;
1: +
1: +struct backing_dev_info;
1: +
1: +struct io_context;
1: +
1: +struct capture_control;
1: +
1: +struct kernel_siginfo;
1: +
1: +typedef struct kernel_siginfo kernel_siginfo_t;
1: +
1: +struct css_set;
1: +
1: +struct robust_list_head;
1: +
1: +struct compat_robust_list_head;
1: +
1: +struct futex_pi_state;
1: +
1: +struct perf_event_context;
1: +
1: +struct mempolicy;
1: +
1: +struct numa_group;
1: +
1: +struct rseq;
1: +
1: +struct task_delay_info;
1: +
1: +struct ftrace_ret_stack;
1: +
1: +struct mem_cgroup;
1: +
1: +struct request_queue;
1: +
1: +struct uprobe_task;
1: +
1: +struct vm_struct;
1: +
1: +struct task_struct {
1: + struct thread_info thread_info;
1: + volatile long int state;
1: + void *stack;
1: + refcount_t usage;
1: + unsigned int flags;
1: + unsigned int ptrace;
1: + int on_cpu;
1: + struct __call_single_node wake_entry;
1: + unsigned int cpu;
1: + unsigned int wakee_flips;
1: + long unsigned int wakee_flip_decay_ts;
1: + struct task_struct *last_wakee;
1: + int recent_used_cpu;
1: + int wake_cpu;
1: + int on_rq;
1: + int prio;
1: + int static_prio;
1: + int normal_prio;
1: + unsigned int rt_priority;
1: + const struct sched_class *sched_class;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_entity se;
1: + struct sched_rt_entity rt;
1: + struct task_group *sched_task_group;
1: + struct sched_dl_entity dl;
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: + struct hlist_head preempt_notifiers;
1: + unsigned int btrace_seq;
1: + unsigned int policy;
1: + int nr_cpus_allowed;
1: + const cpumask_t *cpus_ptr;
1: + cpumask_t cpus_mask;
1: + long unsigned int rcu_tasks_nvcsw;
1: + u8 rcu_tasks_holdout;
1: + u8 rcu_tasks_idx;
1: + int rcu_tasks_idle_cpu;
1: + struct list_head rcu_tasks_holdout_list;
1: + int trc_reader_nesting;
1: + int trc_ipi_to_cpu;
1: + union rcu_special trc_reader_special;
1: + bool trc_reader_checked;
1: + struct list_head trc_holdout_list;
1: + struct sched_info sched_info;
1: + struct list_head tasks;
1: + struct plist_node pushable_tasks;
1: + struct rb_node pushable_dl_tasks;
1: + struct mm_struct *mm;
1: + struct mm_struct *active_mm;
1: + struct vmacache vmacache;
1: + struct task_rss_stat rss_stat;
1: + int exit_state;
1: + int exit_code;
1: + int exit_signal;
1: + int pdeath_signal;
1: + long unsigned int jobctl;
1: + unsigned int personality;
1: + unsigned int sched_reset_on_fork: 1;
1: + unsigned int sched_contributes_to_load: 1;
1: + unsigned int sched_migrated: 1;
1: + unsigned int sched_psi_wake_requeue: 1;
1: + int: 28;
1: + unsigned int sched_remote_wakeup: 1;
1: + unsigned int in_execve: 1;
1: + unsigned int in_iowait: 1;
1: + unsigned int in_user_fault: 1;
1: + unsigned int no_cgroup_migration: 1;
1: + unsigned int frozen: 1;
1: + unsigned int use_memdelay: 1;
1: + unsigned int in_memstall: 1;
1: + long unsigned int atomic_flags;
1: + struct restart_block restart_block;
1: + pid_t pid;
1: + pid_t tgid;
1: + long unsigned int stack_canary;
1: + struct task_struct *real_parent;
1: + struct task_struct *parent;
1: + struct list_head children;
1: + struct list_head sibling;
1: + struct task_struct *group_leader;
1: + struct list_head ptraced;
1: + struct list_head ptrace_entry;
1: + struct pid *thread_pid;
1: + struct hlist_node pid_links[4];
1: + struct list_head thread_group;
1: + struct list_head thread_node;
1: + struct completion *vfork_done;
1: + int *set_child_tid;
1: + int *clear_child_tid;
1: + u64 utime;
1: + u64 stime;
1: + u64 gtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + u64 start_time;
1: + u64 start_boottime;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + struct posix_cputimers posix_cputimers;
1: + const struct cred *ptracer_cred;
1: + const struct cred *real_cred;
1: + const struct cred *cred;
1: + struct key *cached_requested_key;
1: + char comm[16];
1: + struct nameidata *nameidata;
1: + struct sysv_sem sysvsem;
1: + struct sysv_shm sysvshm;
1: + long unsigned int last_switch_count;
1: + long unsigned int last_switch_time;
1: + struct fs_struct *fs;
1: + struct files_struct *files;
1: + struct io_uring_task *io_uring;
1: + struct nsproxy *nsproxy;
1: + struct signal_struct *signal;
1: + struct sighand_struct *sighand;
1: + sigset_t blocked;
1: + sigset_t real_blocked;
1: + sigset_t saved_sigmask;
1: + struct sigpending pending;
1: + long unsigned int sas_ss_sp;
1: + size_t sas_ss_size;
1: + unsigned int sas_ss_flags;
1: + struct callback_head *task_works;
1: + struct audit_context *audit_context;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct seccomp seccomp;
1: + u64 parent_exec_id;
1: + u64 self_exec_id;
1: + spinlock_t alloc_lock;
1: + raw_spinlock_t pi_lock;
1: + struct wake_q_node wake_q;
1: + struct rb_root_cached pi_waiters;
1: + struct task_struct *pi_top_task;
1: + struct rt_mutex_waiter *pi_blocked_on;
1: + void *journal_info;
1: + struct bio_list *bio_list;
1: + struct blk_plug *plug;
1: + struct reclaim_state *reclaim_state;
1: + struct backing_dev_info *backing_dev_info;
1: + struct io_context *io_context;
1: + struct capture_control *capture_control;
1: + long unsigned int ptrace_message;
1: + kernel_siginfo_t *last_siginfo;
1: + struct task_io_accounting ioac;
1: + unsigned int psi_flags;
1: + u64 acct_rss_mem1;
1: + u64 acct_vm_mem1;
1: + u64 acct_timexpd;
1: + nodemask_t mems_allowed;
1: + seqcount_spinlock_t mems_allowed_seq;
1: + int cpuset_mem_spread_rotor;
1: + int cpuset_slab_spread_rotor;
1: + struct css_set *cgroups;
1: + struct list_head cg_list;
1: + struct robust_list_head *robust_list;
1: + struct compat_robust_list_head *compat_robust_list;
1: + struct list_head pi_state_list;
1: + struct futex_pi_state *pi_state_cache;
1: + struct mutex futex_exit_mutex;
1: + unsigned int futex_state;
1: + struct perf_event_context *perf_event_ctxp[2];
1: + struct mutex perf_event_mutex;
1: + struct list_head perf_event_list;
1: + struct mempolicy *mempolicy;
1: + short int il_prev;
1: + short int pref_node_fork;
1: + int numa_scan_seq;
1: + unsigned int numa_scan_period;
1: + unsigned int numa_scan_period_max;
1: + int numa_preferred_nid;
1: + long unsigned int numa_migrate_retry;
1: + u64 node_stamp;
1: + u64 last_task_numa_placement;
1: + u64 last_sum_exec_runtime;
1: + struct callback_head numa_work;
1: + struct numa_group *numa_group;
1: + long unsigned int *numa_faults;
1: + long unsigned int total_numa_faults;
1: + long unsigned int numa_faults_locality[3];
1: + long unsigned int numa_pages_migrated;
1: + struct rseq *rseq;
1: + u32 rseq_sig;
1: + long unsigned int rseq_event_mask;
1: + struct tlbflush_unmap_batch tlb_ubc;
1: + union {
1: + refcount_t rcu_users;
1: + struct callback_head rcu;
1: + };
1: + struct pipe_inode_info *splice_pipe;
1: + struct page_frag task_frag;
1: + struct task_delay_info *delays;
1: + int nr_dirtied;
1: + int nr_dirtied_pause;
1: + long unsigned int dirty_paused_when;
1: + int latency_record_count;
1: + struct latency_record latency_record[32];
1: + u64 timer_slack_ns;
1: + u64 default_timer_slack_ns;
1: + int curr_ret_stack;
1: + int curr_ret_depth;
1: + struct ftrace_ret_stack *ret_stack;
1: + long long unsigned int ftrace_timestamp;
1: + atomic_t trace_overrun;
1: + atomic_t tracing_graph_pause;
1: + long unsigned int trace;
1: + long unsigned int trace_recursion;
1: + struct mem_cgroup *memcg_in_oom;
1: + gfp_t memcg_oom_gfp_mask;
1: + int memcg_oom_order;
1: + unsigned int memcg_nr_pages_over_high;
1: + struct mem_cgroup *active_memcg;
1: + struct request_queue *throttle_queue;
1: + struct uprobe_task *utask;
1: + unsigned int sequential_io;
1: + unsigned int sequential_io_avg;
1: + int pagefault_disabled;
1: + struct task_struct *oom_reaper_list;
1: + struct vm_struct *stack_vm_area;
1: + refcount_t stack_refcount;
1: + void *security;
1: + struct thread_struct thread;
1: +};
1: +
1: +typedef s32 compat_long_t;
1: +
1: +typedef u32 compat_uptr_t;
1: +
1: +struct user_pt_regs {
1: + __u64 regs[31];
1: + __u64 sp;
1: + __u64 pc;
1: + __u64 pstate;
1: +};
1: +
1: +struct pt_regs {
1: + union {
1: + struct user_pt_regs user_regs;
1: + struct {
1: + u64 regs[31];
1: + u64 sp;
1: + u64 pc;
1: + u64 pstate;
1: + };
1: + };
1: + u64 orig_x0;
1: + s32 syscallno;
1: + u32 unused2;
1: + u64 orig_addr_limit;
1: + u64 pmr_save;
1: + u64 stackframe[2];
1: + u64 lockdep_hardirqs;
1: + u64 exit_rcu;
1: +};
1: +
1: +struct arch_hw_breakpoint_ctrl {
1: + u32 __reserved: 19;
1: + u32 len: 8;
1: + u32 type: 2;
1: + u32 privilege: 2;
1: + u32 enabled: 1;
1: +};
1: +
1: +struct arch_hw_breakpoint {
1: + u64 address;
1: + u64 trigger;
1: + struct arch_hw_breakpoint_ctrl ctrl;
1: +};
1: +
1: +typedef u64 pteval_t;
1: +
1: +typedef u64 pmdval_t;
1: +
1: +typedef u64 pudval_t;
1: +
1: +typedef u64 pgdval_t;
1: +
1: +typedef struct {
1: + pteval_t pte;
1: +} pte_t;
1: +
1: +typedef struct {
1: + pmdval_t pmd;
1: +} pmd_t;
1: +
1: +typedef struct {
1: + pudval_t pud;
1: +} pud_t;
1: +
1: +typedef struct {
1: + pgdval_t pgd;
1: +} pgd_t;
1: +
1: +typedef struct {
1: + pteval_t pgprot;
1: +} pgprot_t;
1: +
1: +enum module_state {
1: + MODULE_STATE_LIVE = 0,
1: + MODULE_STATE_COMING = 1,
1: + MODULE_STATE_GOING = 2,
1: + MODULE_STATE_UNFORMED = 3,
1: +};
1: +
1: +struct kref {
1: + refcount_t refcount;
1: +};
1: +
1: +struct kset;
1: +
1: +struct kobj_type;
1: +
1: +struct kernfs_node;
1: +
1: +struct kobject {
1: + const char *name;
1: + struct list_head entry;
1: + struct kobject *parent;
1: + struct kset *kset;
1: + struct kobj_type *ktype;
1: + struct kernfs_node *sd;
1: + struct kref kref;
1: + unsigned int state_initialized: 1;
1: + unsigned int state_in_sysfs: 1;
1: + unsigned int state_add_uevent_sent: 1;
1: + unsigned int state_remove_uevent_sent: 1;
1: + unsigned int uevent_suppress: 1;
1: +};
1: +
1: +struct module_param_attrs;
1: +
1: +struct module_kobject {
1: + struct kobject kobj;
1: + struct module *mod;
1: + struct kobject *drivers_dir;
1: + struct module_param_attrs *mp;
1: + struct completion *kobj_completion;
1: +};
1: +
1: +struct latch_tree_node {
1: + struct rb_node node[2];
1: +};
1: +
1: +struct mod_tree_node {
1: + struct module *mod;
1: + struct latch_tree_node node;
1: +};
1: +
1: +struct module_layout {
1: + void *base;
1: + unsigned int size;
1: + unsigned int text_size;
1: + unsigned int ro_size;
1: + unsigned int ro_after_init_size;
1: + struct mod_tree_node mtn;
1: +};
1: +
1: +struct mod_plt_sec {
1: + int plt_shndx;
1: + int plt_num_entries;
1: + int plt_max_entries;
1: +};
1: +
1: +struct plt_entry;
1: +
1: +struct mod_arch_specific {
1: + struct mod_plt_sec core;
1: + struct mod_plt_sec init;
1: + struct plt_entry *ftrace_trampolines;
1: +};
1: +
1: +struct elf64_sym;
1: +
1: +typedef struct elf64_sym Elf64_Sym;
1: +
1: +struct mod_kallsyms {
1: + Elf64_Sym *symtab;
1: + unsigned int num_symtab;
1: + char *strtab;
1: + char *typetab;
1: +};
1: +
1: +typedef const int tracepoint_ptr_t;
1: +
1: +struct module_attribute;
1: +
1: +struct kernel_param;
1: +
1: +struct exception_table_entry;
1: +
1: +struct module_sect_attrs;
1: +
1: +struct module_notes_attrs;
1: +
1: +struct srcu_struct;
1: +
1: +struct bpf_raw_event_map;
1: +
1: +struct trace_event_call;
1: +
1: +struct trace_eval_map;
1: +
1: +struct error_injection_entry;
1: +
1: +struct module {
1: + enum module_state state;
1: + struct list_head list;
1: + char name[56];
1: + struct module_kobject mkobj;
1: + struct module_attribute *modinfo_attrs;
1: + const char *version;
1: + const char *srcversion;
1: + struct kobject *holders_dir;
1: + const struct kernel_symbol *syms;
1: + const s32 *crcs;
1: + unsigned int num_syms;
1: + struct mutex param_lock;
1: + struct kernel_param *kp;
1: + unsigned int num_kp;
1: + unsigned int num_gpl_syms;
1: + const struct kernel_symbol *gpl_syms;
1: + const s32 *gpl_crcs;
1: + bool using_gplonly_symbols;
1: + const struct kernel_symbol *unused_syms;
1: + const s32 *unused_crcs;
1: + unsigned int num_unused_syms;
1: + unsigned int num_unused_gpl_syms;
1: + const struct kernel_symbol *unused_gpl_syms;
1: + const s32 *unused_gpl_crcs;
1: + bool sig_ok;
1: + bool async_probe_requested;
1: + const struct kernel_symbol *gpl_future_syms;
1: + const s32 *gpl_future_crcs;
1: + unsigned int num_gpl_future_syms;
1: + unsigned int num_exentries;
1: + struct exception_table_entry *extable;
1: + int (*init)();
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct module_layout core_layout;
1: + struct module_layout init_layout;
1: + struct mod_arch_specific arch;
1: + long unsigned int taints;
1: + unsigned int num_bugs;
1: + struct list_head bug_list;
1: + struct bug_entry *bug_table;
1: + struct mod_kallsyms *kallsyms;
1: + struct mod_kallsyms core_kallsyms;
1: + struct module_sect_attrs *sect_attrs;
1: + struct module_notes_attrs *notes_attrs;
1: + char *args;
1: + void *percpu;
1: + unsigned int percpu_size;
1: + void *noinstr_text_start;
1: + unsigned int noinstr_text_size;
1: + unsigned int num_tracepoints;
1: + tracepoint_ptr_t *tracepoints_ptrs;
1: + unsigned int num_srcu_structs;
1: + struct srcu_struct **srcu_struct_ptrs;
1: + unsigned int num_bpf_raw_events;
1: + struct bpf_raw_event_map *bpf_raw_events;
1: + struct jump_entry *jump_entries;
1: + unsigned int num_jump_entries;
1: + unsigned int num_trace_bprintk_fmt;
1: + const char **trace_bprintk_fmt_start;
1: + struct trace_event_call **trace_events;
1: + unsigned int num_trace_events;
1: + struct trace_eval_map **trace_evals;
1: + unsigned int num_trace_evals;
1: + unsigned int num_ftrace_callsites;
1: + long unsigned int *ftrace_callsites;
1: + void *kprobes_text_start;
1: + unsigned int kprobes_text_size;
1: + long unsigned int *kprobe_blacklist;
1: + unsigned int num_kprobe_blacklist;
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + void (*exit)();
1: + atomic_t refcnt;
1: + struct error_injection_entry *ei_funcs;
1: + unsigned int num_ei_funcs;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum perf_event_state {
1: + PERF_EVENT_STATE_DEAD = 4294967292,
1: + PERF_EVENT_STATE_EXIT = 4294967293,
1: + PERF_EVENT_STATE_ERROR = 4294967294,
1: + PERF_EVENT_STATE_OFF = 4294967295,
1: + PERF_EVENT_STATE_INACTIVE = 0,
1: + PERF_EVENT_STATE_ACTIVE = 1,
1: +};
1: +
1: +typedef struct {
1: + atomic_long_t a;
1: +} local_t;
1: +
1: +typedef struct {
1: + local_t a;
1: +} local64_t;
1: +
1: +struct perf_event_attr {
1: + __u32 type;
1: + __u32 size;
1: + __u64 config;
1: + union {
1: + __u64 sample_period;
1: + __u64 sample_freq;
1: + };
1: + __u64 sample_type;
1: + __u64 read_format;
1: + __u64 disabled: 1;
1: + __u64 inherit: 1;
1: + __u64 pinned: 1;
1: + __u64 exclusive: 1;
1: + __u64 exclude_user: 1;
1: + __u64 exclude_kernel: 1;
1: + __u64 exclude_hv: 1;
1: + __u64 exclude_idle: 1;
1: + __u64 mmap: 1;
1: + __u64 comm: 1;
1: + __u64 freq: 1;
1: + __u64 inherit_stat: 1;
1: + __u64 enable_on_exec: 1;
1: + __u64 task: 1;
1: + __u64 watermark: 1;
1: + __u64 precise_ip: 2;
1: + __u64 mmap_data: 1;
1: + __u64 sample_id_all: 1;
1: + __u64 exclude_host: 1;
1: + __u64 exclude_guest: 1;
1: + __u64 exclude_callchain_kernel: 1;
1: + __u64 exclude_callchain_user: 1;
1: + __u64 mmap2: 1;
1: + __u64 comm_exec: 1;
1: + __u64 use_clockid: 1;
1: + __u64 context_switch: 1;
1: + __u64 write_backward: 1;
1: + __u64 namespaces: 1;
1: + __u64 ksymbol: 1;
1: + __u64 bpf_event: 1;
1: + __u64 aux_output: 1;
1: + __u64 cgroup: 1;
1: + __u64 text_poke: 1;
1: + __u64 __reserved_1: 30;
1: + union {
1: + __u32 wakeup_events;
1: + __u32 wakeup_watermark;
1: + };
1: + __u32 bp_type;
1: + union {
1: + __u64 bp_addr;
1: + __u64 kprobe_func;
1: + __u64 uprobe_path;
1: + __u64 config1;
1: + };
1: + union {
1: + __u64 bp_len;
1: + __u64 kprobe_addr;
1: + __u64 probe_offset;
1: + __u64 config2;
1: + };
1: + __u64 branch_sample_type;
1: + __u64 sample_regs_user;
1: + __u32 sample_stack_user;
1: + __s32 clockid;
1: + __u64 sample_regs_intr;
1: + __u32 aux_watermark;
1: + __u16 sample_max_stack;
1: + __u16 __reserved_2;
1: + __u32 aux_sample_size;
1: + __u32 __reserved_3;
1: +};
1: +
1: +struct hw_perf_event_extra {
1: + u64 config;
1: + unsigned int reg;
1: + int alloc;
1: + int idx;
1: +};
1: +
1: +struct hw_perf_event {
1: + union {
1: + struct {
1: + u64 config;
1: + u64 last_tag;
1: + long unsigned int config_base;
1: + long unsigned int event_base;
1: + int event_base_rdpmc;
1: + int idx;
1: + int last_cpu;
1: + int flags;
1: + struct hw_perf_event_extra extra_reg;
1: + struct hw_perf_event_extra branch_reg;
1: + };
1: + struct {
1: + struct hrtimer hrtimer;
1: + };
1: + struct {
1: + struct list_head tp_list;
1: + };
1: + struct {
1: + u64 pwr_acc;
1: + u64 ptsc;
1: + };
1: + struct {
1: + struct arch_hw_breakpoint info;
1: + struct list_head bp_list;
1: + };
1: + struct {
1: + u8 iommu_bank;
1: + u8 iommu_cntr;
1: + u16 padding;
1: + u64 conf;
1: + u64 conf1;
1: + };
1: + };
1: + struct task_struct *target;
1: + void *addr_filters;
1: + long unsigned int addr_filters_gen;
1: + int state;
1: + local64_t prev_count;
1: + u64 sample_period;
1: + union {
1: + struct {
1: + u64 last_period;
1: + local64_t period_left;
1: + };
1: + struct {
1: + u64 saved_metric;
1: + u64 saved_slots;
1: + };
1: + };
1: + u64 interrupts_seq;
1: + u64 interrupts;
1: + u64 freq_time_stamp;
1: + u64 freq_count_stamp;
1: +};
1: +
1: +struct wait_queue_head {
1: + spinlock_t lock;
1: + struct list_head head;
1: +};
1: +
1: +typedef struct wait_queue_head wait_queue_head_t;
1: +
1: +struct irq_work {
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llnode;
1: + atomic_t flags;
1: + };
1: + };
1: + void (*func)(struct irq_work *);
1: +};
1: +
1: +struct perf_addr_filters_head {
1: + struct list_head list;
1: + raw_spinlock_t lock;
1: + unsigned int nr_file_filters;
1: +};
1: +
1: +struct perf_sample_data;
1: +
1: +typedef void (*perf_overflow_handler_t)(struct perf_event *, struct perf_sample_data *, struct pt_regs *);
1: +
1: +struct ftrace_ops;
1: +
1: +typedef void (*ftrace_func_t)(long unsigned int, long unsigned int, struct ftrace_ops *, struct pt_regs *);
1: +
1: +struct ftrace_hash;
1: +
1: +struct ftrace_ops_hash {
1: + struct ftrace_hash *notrace_hash;
1: + struct ftrace_hash *filter_hash;
1: + struct mutex regex_lock;
1: +};
1: +
1: +struct ftrace_ops {
1: + ftrace_func_t func;
1: + struct ftrace_ops *next;
1: + long unsigned int flags;
1: + void *private;
1: + ftrace_func_t saved_func;
1: + struct ftrace_ops_hash local_hash;
1: + struct ftrace_ops_hash *func_hash;
1: + struct ftrace_ops_hash old_hash;
1: + long unsigned int trampoline;
1: + long unsigned int trampoline_size;
1: + struct list_head list;
1: +};
1: +
1: +struct pmu;
1: +
1: +struct perf_buffer;
1: +
1: +struct fasync_struct;
1: +
1: +struct perf_addr_filter_range;
1: +
1: +struct pid_namespace;
1: +
1: +struct bpf_prog;
1: +
1: +struct event_filter;
1: +
1: +struct perf_cgroup;
1: +
1: +struct perf_event {
1: + struct list_head event_entry;
1: + struct list_head sibling_list;
1: + struct list_head active_list;
1: + struct rb_node group_node;
1: + u64 group_index;
1: + struct list_head migrate_entry;
1: + struct hlist_node hlist_entry;
1: + struct list_head active_entry;
1: + int nr_siblings;
1: + int event_caps;
1: + int group_caps;
1: + struct perf_event *group_leader;
1: + struct pmu *pmu;
1: + void *pmu_private;
1: + enum perf_event_state state;
1: + unsigned int attach_state;
1: + local64_t count;
1: + atomic64_t child_count;
1: + u64 total_time_enabled;
1: + u64 total_time_running;
1: + u64 tstamp;
1: + u64 shadow_ctx_time;
1: + struct perf_event_attr attr;
1: + u16 header_size;
1: + u16 id_header_size;
1: + u16 read_size;
1: + struct hw_perf_event hw;
1: + struct perf_event_context *ctx;
1: + atomic_long_t refcount;
1: + atomic64_t child_total_time_enabled;
1: + atomic64_t child_total_time_running;
1: + struct mutex child_mutex;
1: + struct list_head child_list;
1: + struct perf_event *parent;
1: + int oncpu;
1: + int cpu;
1: + struct list_head owner_entry;
1: + struct task_struct *owner;
1: + struct mutex mmap_mutex;
1: + atomic_t mmap_count;
1: + struct perf_buffer *rb;
1: + struct list_head rb_entry;
1: + long unsigned int rcu_batches;
1: + int rcu_pending;
1: + wait_queue_head_t waitq;
1: + struct fasync_struct *fasync;
1: + int pending_wakeup;
1: + int pending_kill;
1: + int pending_disable;
1: + struct irq_work pending;
1: + atomic_t event_limit;
1: + struct perf_addr_filters_head addr_filters;
1: + struct perf_addr_filter_range *addr_filter_ranges;
1: + long unsigned int addr_filters_gen;
1: + struct perf_event *aux_event;
1: + void (*destroy)(struct perf_event *);
1: + struct callback_head callback_head;
1: + struct pid_namespace *ns;
1: + u64 id;
1: + u64 (*clock)();
1: + perf_overflow_handler_t overflow_handler;
1: + void *overflow_handler_context;
1: + perf_overflow_handler_t orig_overflow_handler;
1: + struct bpf_prog *prog;
1: + struct trace_event_call *tp_event;
1: + struct event_filter *filter;
1: + struct ftrace_ops ftrace_ops;
1: + struct perf_cgroup *cgrp;
1: + void *security;
1: + struct list_head sb_list;
1: +};
1: +
1: +struct wait_queue_entry;
1: +
1: +typedef int (*wait_queue_func_t)(struct wait_queue_entry *, unsigned int, int, void *);
1: +
1: +struct wait_queue_entry {
1: + unsigned int flags;
1: + void *private;
1: + wait_queue_func_t func;
1: + struct list_head entry;
1: +};
1: +
1: +typedef struct wait_queue_entry wait_queue_entry_t;
1: +
1: +enum pid_type {
1: + PIDTYPE_PID = 0,
1: + PIDTYPE_TGID = 1,
1: + PIDTYPE_PGID = 2,
1: + PIDTYPE_SID = 3,
1: + PIDTYPE_MAX = 4,
1: +};
1: +
1: +struct upid {
1: + int nr;
1: + struct pid_namespace *ns;
1: +};
1: +
1: +struct xarray {
1: + spinlock_t xa_lock;
1: + gfp_t xa_flags;
1: + void *xa_head;
1: +};
1: +
1: +struct idr {
1: + struct xarray idr_rt;
1: + unsigned int idr_base;
1: + unsigned int idr_next;
1: +};
1: +
1: +struct proc_ns_operations;
1: +
1: +struct ns_common {
1: + atomic_long_t stashed;
1: + const struct proc_ns_operations *ops;
1: + unsigned int inum;
1: +};
1: +
1: +struct kmem_cache;
1: +
1: +struct fs_pin;
1: +
1: +struct user_namespace;
1: +
1: +struct ucounts;
1: +
1: +struct pid_namespace {
1: + struct kref kref;
1: + struct idr idr;
1: + struct callback_head rcu;
1: + unsigned int pid_allocated;
1: + struct task_struct *child_reaper;
1: + struct kmem_cache *pid_cachep;
1: + unsigned int level;
1: + struct pid_namespace *parent;
1: + struct fs_pin *bacct;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + int reboot;
1: + struct ns_common ns;
1: +};
1: +
1: +struct pid {
1: + refcount_t count;
1: + unsigned int level;
1: + spinlock_t lock;
1: + struct hlist_head tasks[4];
1: + struct hlist_head inodes;
1: + wait_queue_head_t wait_pidfd;
1: + struct callback_head rcu;
1: + struct upid numbers[1];
1: +};
1: +
1: +struct uid_gid_extent {
1: + u32 first;
1: + u32 lower_first;
1: + u32 count;
1: +};
1: +
1: +struct uid_gid_map {
1: + u32 nr_extents;
1: + union {
1: + struct uid_gid_extent extent[5];
1: + struct {
1: + struct uid_gid_extent *forward;
1: + struct uid_gid_extent *reverse;
1: + };
1: + };
1: +};
1: +
1: +typedef struct {
1: + gid_t val;
1: +} kgid_t;
1: +
1: +struct rw_semaphore {
1: + atomic_long_t count;
1: + atomic_long_t owner;
1: + struct optimistic_spin_queue osq;
1: + raw_spinlock_t wait_lock;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct work_struct;
1: +
1: +typedef void (*work_func_t)(struct work_struct *);
1: +
1: +struct work_struct {
1: + atomic_long_t data;
1: + struct list_head entry;
1: + work_func_t func;
1: +};
1: +
1: +struct ctl_table;
1: +
1: +struct ctl_table_root;
1: +
1: +struct ctl_table_set;
1: +
1: +struct ctl_dir;
1: +
1: +struct ctl_node;
1: +
1: +struct ctl_table_header {
1: + union {
1: + struct {
1: + struct ctl_table *ctl_table;
1: + int used;
1: + int count;
1: + int nreg;
1: + };
1: + struct callback_head rcu;
1: + };
1: + struct completion *unregistering;
1: + struct ctl_table *ctl_table_arg;
1: + struct ctl_table_root *root;
1: + struct ctl_table_set *set;
1: + struct ctl_dir *parent;
1: + struct ctl_node *node;
1: + struct hlist_head inodes;
1: +};
1: +
1: +struct ctl_dir {
1: + struct ctl_table_header header;
1: + struct rb_root root;
1: +};
1: +
1: +struct ctl_table_set {
1: + int (*is_seen)(struct ctl_table_set *);
1: + struct ctl_dir dir;
1: +};
1: +
1: +struct user_namespace {
1: + struct uid_gid_map uid_map;
1: + struct uid_gid_map gid_map;
1: + struct uid_gid_map projid_map;
1: + atomic_t count;
1: + struct user_namespace *parent;
1: + int level;
1: + kuid_t owner;
1: + kgid_t group;
1: + struct ns_common ns;
1: + long unsigned int flags;
1: + struct list_head keyring_name_list;
1: + struct key *user_keyring_register;
1: + struct rw_semaphore keyring_sem;
1: + struct key *persistent_keyring_register;
1: + struct work_struct work;
1: + struct ctl_table_set set;
1: + struct ctl_table_header *sysctls;
1: + struct ucounts *ucounts;
1: + int ucount_max[10];
1: +};
1: +
1: +struct timer_list {
1: + struct hlist_node entry;
1: + long unsigned int expires;
1: + void (*function)(struct timer_list *);
1: + u32 flags;
1: +};
1: +
1: +struct workqueue_struct;
1: +
1: +struct delayed_work {
1: + struct work_struct work;
1: + struct timer_list timer;
1: + struct workqueue_struct *wq;
1: + int cpu;
1: +};
1: +
1: +struct rcu_work {
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + struct workqueue_struct *wq;
1: +};
1: +
1: +typedef struct page *pgtable_t;
1: +
1: +struct address_space;
1: +
1: +struct dev_pagemap;
1: +
1: +struct obj_cgroup;
1: +
1: +struct page {
1: + long unsigned int flags;
1: + union {
1: + struct {
1: + struct list_head lru;
1: + struct address_space *mapping;
1: + long unsigned int index;
1: + long unsigned int private;
1: + };
1: + struct {
1: + dma_addr_t dma_addr;
1: + };
1: + struct {
1: + union {
1: + struct list_head slab_list;
1: + struct {
1: + struct page *next;
1: + int pages;
1: + int pobjects;
1: + };
1: + };
1: + struct kmem_cache *slab_cache;
1: + void *freelist;
1: + union {
1: + void *s_mem;
1: + long unsigned int counters;
1: + struct {
1: + unsigned int inuse: 16;
1: + unsigned int objects: 15;
1: + unsigned int frozen: 1;
1: + };
1: + };
1: + };
1: + struct {
1: + long unsigned int compound_head;
1: + unsigned char compound_dtor;
1: + unsigned char compound_order;
1: + atomic_t compound_mapcount;
1: + unsigned int compound_nr;
1: + };
1: + struct {
1: + long unsigned int _compound_pad_1;
1: + atomic_t hpage_pinned_refcount;
1: + struct list_head deferred_list;
1: + };
1: + struct {
1: + long unsigned int _pt_pad_1;
1: + pgtable_t pmd_huge_pte;
1: + long unsigned int _pt_pad_2;
1: + union {
1: + struct mm_struct *pt_mm;
1: + atomic_t pt_frag_refcount;
1: + };
1: + spinlock_t ptl;
1: + };
1: + struct {
1: + struct dev_pagemap *pgmap;
1: + void *zone_device_data;
1: + };
1: + struct callback_head callback_head;
1: + };
1: + union {
1: + atomic_t _mapcount;
1: + unsigned int page_type;
1: + unsigned int active;
1: + int units;
1: + };
1: + atomic_t _refcount;
1: + union {
1: + struct mem_cgroup *mem_cgroup;
1: + struct obj_cgroup **obj_cgroups;
1: + };
1: +};
1: +
1: +struct seqcount_raw_spinlock {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_raw_spinlock seqcount_raw_spinlock_t;
1: +
1: +typedef struct {
1: + seqcount_spinlock_t seqcount;
1: + spinlock_t lock;
1: +} seqlock_t;
1: +
1: +struct hrtimer_cpu_base;
1: +
1: +struct hrtimer_clock_base {
1: + struct hrtimer_cpu_base *cpu_base;
1: + unsigned int index;
1: + clockid_t clockid;
1: + seqcount_raw_spinlock_t seq;
1: + struct hrtimer *running;
1: + struct timerqueue_head active;
1: + ktime_t (*get_time)();
1: + ktime_t offset;
1: +};
1: +
1: +struct hrtimer_cpu_base {
1: + raw_spinlock_t lock;
1: + unsigned int cpu;
1: + unsigned int active_bases;
1: + unsigned int clock_was_set_seq;
1: + unsigned int hres_active: 1;
1: + unsigned int in_hrtirq: 1;
1: + unsigned int hang_detected: 1;
1: + unsigned int softirq_activated: 1;
1: + unsigned int nr_events;
1: + short unsigned int nr_retries;
1: + short unsigned int nr_hangs;
1: + unsigned int max_hang_time;
1: + ktime_t expires_next;
1: + struct hrtimer *next_timer;
1: + ktime_t softirq_expires_next;
1: + struct hrtimer *softirq_next_timer;
1: + struct hrtimer_clock_base clock_base[8];
1: +};
1: +
1: +enum node_states {
1: + N_POSSIBLE = 0,
1: + N_ONLINE = 1,
1: + N_NORMAL_MEMORY = 2,
1: + N_HIGH_MEMORY = 2,
1: + N_MEMORY = 3,
1: + N_CPU = 4,
1: + N_GENERIC_INITIATOR = 5,
1: + NR_NODE_STATES = 6,
1: +};
1: +
1: +struct rlimit {
1: + __kernel_ulong_t rlim_cur;
1: + __kernel_ulong_t rlim_max;
1: +};
1: +
1: +struct task_cputime {
1: + u64 stime;
1: + u64 utime;
1: + long long unsigned int sum_exec_runtime;
1: +};
1: +
1: +typedef void __signalfn_t(int);
1: +
1: +typedef __signalfn_t *__sighandler_t;
1: +
1: +typedef void __restorefn_t();
1: +
1: +typedef __restorefn_t *__sigrestore_t;
1: +
1: +union sigval {
1: + int sival_int;
1: + void *sival_ptr;
1: +};
1: +
1: +typedef union sigval sigval_t;
1: +
1: +union __sifields {
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + __kernel_timer_t _tid;
1: + int _overrun;
1: + sigval_t _sigval;
1: + int _sys_private;
1: + } _timer;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + int _status;
1: + __kernel_clock_t _utime;
1: + __kernel_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + void *_addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[8];
1: + void *_lower;
1: + void *_upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[8];
1: + __u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + long int _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + void *_call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: +};
1: +
1: +struct kernel_siginfo {
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: +};
1: +
1: +struct user_struct {
1: + refcount_t __count;
1: + atomic_t processes;
1: + atomic_t sigpending;
1: + atomic_t fanotify_listeners;
1: + atomic_long_t epoll_watches;
1: + long unsigned int mq_bytes;
1: + long unsigned int locked_shm;
1: + long unsigned int unix_inflight;
1: + atomic_long_t pipe_bufs;
1: + struct hlist_node uidhash_node;
1: + kuid_t uid;
1: + atomic_long_t locked_vm;
1: + atomic_t nr_watches;
1: + struct ratelimit_state ratelimit;
1: +};
1: +
1: +struct sigaction {
1: + __sighandler_t sa_handler;
1: + long unsigned int sa_flags;
1: + __sigrestore_t sa_restorer;
1: + sigset_t sa_mask;
1: +};
1: +
1: +struct k_sigaction {
1: + struct sigaction sa;
1: +};
1: +
1: +struct userfaultfd_ctx;
1: +
1: +struct vm_userfaultfd_ctx {
1: + struct userfaultfd_ctx *ctx;
1: +};
1: +
1: +struct anon_vma;
1: +
1: +struct vm_operations_struct;
1: +
1: +struct vm_area_struct {
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + struct vm_area_struct *vm_next;
1: + struct vm_area_struct *vm_prev;
1: + struct rb_node vm_rb;
1: + long unsigned int rb_subtree_gap;
1: + struct mm_struct *vm_mm;
1: + pgprot_t vm_page_prot;
1: + long unsigned int vm_flags;
1: + struct {
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: + } shared;
1: + struct list_head anon_vma_chain;
1: + struct anon_vma *anon_vma;
1: + const struct vm_operations_struct *vm_ops;
1: + long unsigned int vm_pgoff;
1: + struct file *vm_file;
1: + void *vm_private_data;
1: + atomic_long_t swap_readahead_info;
1: + struct mempolicy *vm_policy;
1: + struct vm_userfaultfd_ctx vm_userfaultfd_ctx;
1: +};
1: +
1: +struct mm_rss_stat {
1: + atomic_long_t count[4];
1: +};
1: +
1: +struct cpu_itimer {
1: + u64 expires;
1: + u64 incr;
1: +};
1: +
1: +struct task_cputime_atomic {
1: + atomic64_t utime;
1: + atomic64_t stime;
1: + atomic64_t sum_exec_runtime;
1: +};
1: +
1: +struct thread_group_cputimer {
1: + struct task_cputime_atomic cputime_atomic;
1: +};
1: +
1: +struct pacct_struct {
1: + int ac_flag;
1: + long int ac_exitcode;
1: + long unsigned int ac_mem;
1: + u64 ac_utime;
1: + u64 ac_stime;
1: + long unsigned int ac_minflt;
1: + long unsigned int ac_majflt;
1: +};
1: +
1: +struct tty_struct;
1: +
1: +struct autogroup;
1: +
1: +struct taskstats;
1: +
1: +struct tty_audit_buf;
1: +
1: +struct signal_struct {
1: + refcount_t sigcnt;
1: + atomic_t live;
1: + int nr_threads;
1: + struct list_head thread_head;
1: + wait_queue_head_t wait_chldexit;
1: + struct task_struct *curr_target;
1: + struct sigpending shared_pending;
1: + struct hlist_head multiprocess;
1: + int group_exit_code;
1: + int notify_count;
1: + struct task_struct *group_exit_task;
1: + int group_stop_count;
1: + unsigned int flags;
1: + unsigned int is_child_subreaper: 1;
1: + unsigned int has_child_subreaper: 1;
1: + int posix_timer_id;
1: + struct list_head posix_timers;
1: + struct hrtimer real_timer;
1: + ktime_t it_real_incr;
1: + struct cpu_itimer it[2];
1: + struct thread_group_cputimer cputimer;
1: + struct posix_cputimers posix_cputimers;
1: + struct pid *pids[4];
1: + struct pid *tty_old_pgrp;
1: + int leader;
1: + struct tty_struct *tty;
1: + struct autogroup *autogroup;
1: + seqlock_t stats_lock;
1: + u64 utime;
1: + u64 stime;
1: + u64 cutime;
1: + u64 cstime;
1: + u64 gtime;
1: + u64 cgtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + long unsigned int cnvcsw;
1: + long unsigned int cnivcsw;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + long unsigned int cmin_flt;
1: + long unsigned int cmaj_flt;
1: + long unsigned int inblock;
1: + long unsigned int oublock;
1: + long unsigned int cinblock;
1: + long unsigned int coublock;
1: + long unsigned int maxrss;
1: + long unsigned int cmaxrss;
1: + struct task_io_accounting ioac;
1: + long long unsigned int sum_sched_runtime;
1: + struct rlimit rlim[16];
1: + struct pacct_struct pacct;
1: + struct taskstats *stats;
1: + unsigned int audit_tty;
1: + struct tty_audit_buf *tty_audit_buf;
1: + bool oom_flag_origin;
1: + short int oom_score_adj;
1: + short int oom_score_adj_min;
1: + struct mm_struct *oom_mm;
1: + struct mutex cred_guard_mutex;
1: + struct rw_semaphore exec_update_lock;
1: +};
1: +
1: +struct rseq {
1: + __u32 cpu_id_start;
1: + __u32 cpu_id;
1: + union {
1: + __u64 ptr64;
1: + __u64 ptr;
1: + } rseq_cs;
1: + __u32 flags;
1: + long: 32;
1: + long: 64;
1: +};
1: +
1: +struct rq;
1: +
1: +struct rq_flags;
1: +
1: +struct sched_class {
1: + int uclamp_enabled;
1: + void (*enqueue_task)(struct rq *, struct task_struct *, int);
1: + void (*dequeue_task)(struct rq *, struct task_struct *, int);
1: + void (*yield_task)(struct rq *);
1: + bool (*yield_to_task)(struct rq *, struct task_struct *);
1: + void (*check_preempt_curr)(struct rq *, struct task_struct *, int);
1: + struct task_struct * (*pick_next_task)(struct rq *);
1: + void (*put_prev_task)(struct rq *, struct task_struct *);
1: + void (*set_next_task)(struct rq *, struct task_struct *, bool);
1: + int (*balance)(struct rq *, struct task_struct *, struct rq_flags *);
1: + int (*select_task_rq)(struct task_struct *, int, int, int);
1: + void (*migrate_task_rq)(struct task_struct *, int);
1: + void (*task_woken)(struct rq *, struct task_struct *);
1: + void (*set_cpus_allowed)(struct task_struct *, const struct cpumask *);
1: + void (*rq_online)(struct rq *);
1: + void (*rq_offline)(struct rq *);
1: + void (*task_tick)(struct rq *, struct task_struct *, int);
1: + void (*task_fork)(struct task_struct *);
1: + void (*task_dead)(struct task_struct *);
1: + void (*switched_from)(struct rq *, struct task_struct *);
1: + void (*switched_to)(struct rq *, struct task_struct *);
1: + void (*prio_changed)(struct rq *, struct task_struct *, int);
1: + unsigned int (*get_rr_interval)(struct rq *, struct task_struct *);
1: + void (*update_curr)(struct rq *);
1: + void (*task_change_group)(struct task_struct *, int);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef struct {
1: + atomic64_t id;
1: + void *sigpage;
1: + refcount_t pinned;
1: + void *vdso;
1: + long unsigned int flags;
1: +} mm_context_t;
1: +
1: +struct xol_area;
1: +
1: +struct uprobes_state {
1: + struct xol_area *xol_area;
1: +};
1: +
1: +struct linux_binfmt;
1: +
1: +struct core_state;
1: +
1: +struct kioctx_table;
1: +
1: +struct mmu_notifier_subscriptions;
1: +
1: +struct mm_struct {
1: + struct {
1: + struct vm_area_struct *mmap;
1: + struct rb_root mm_rb;
1: + u64 vmacache_seqnum;
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_legacy_base;
1: + long unsigned int task_size;
1: + long unsigned int highest_vm_end;
1: + pgd_t *pgd;
1: + atomic_t membarrier_state;
1: + atomic_t mm_users;
1: + atomic_t mm_count;
1: + atomic_t has_pinned;
1: + seqcount_t write_protect_seq;
1: + atomic_long_t pgtables_bytes;
1: + int map_count;
1: + spinlock_t page_table_lock;
1: + struct rw_semaphore mmap_lock;
1: + struct list_head mmlist;
1: + long unsigned int hiwater_rss;
1: + long unsigned int hiwater_vm;
1: + long unsigned int total_vm;
1: + long unsigned int locked_vm;
1: + atomic64_t pinned_vm;
1: + long unsigned int data_vm;
1: + long unsigned int exec_vm;
1: + long unsigned int stack_vm;
1: + long unsigned int def_flags;
1: + spinlock_t arg_lock;
1: + long unsigned int start_code;
1: + long unsigned int end_code;
1: + long unsigned int start_data;
1: + long unsigned int end_data;
1: + long unsigned int start_brk;
1: + long unsigned int brk;
1: + long unsigned int start_stack;
1: + long unsigned int arg_start;
1: + long unsigned int arg_end;
1: + long unsigned int env_start;
1: + long unsigned int env_end;
1: + long unsigned int saved_auxv[46];
1: + struct mm_rss_stat rss_stat;
1: + struct linux_binfmt *binfmt;
1: + mm_context_t context;
1: + long unsigned int flags;
1: + struct core_state *core_state;
1: + spinlock_t ioctx_lock;
1: + struct kioctx_table *ioctx_table;
1: + struct task_struct *owner;
1: + struct user_namespace *user_ns;
1: + struct file *exe_file;
1: + struct mmu_notifier_subscriptions *notifier_subscriptions;
1: + long unsigned int numa_next_scan;
1: + long unsigned int numa_scan_offset;
1: + int numa_scan_seq;
1: + atomic_t tlb_flush_pending;
1: + struct uprobes_state uprobes_state;
1: + atomic_long_t hugetlb_usage;
1: + struct work_struct async_put_work;
1: + u32 pasid;
1: + };
1: + long unsigned int cpu_bitmap[0];
1: +};
1: +
1: +struct swait_queue_head {
1: + raw_spinlock_t lock;
1: + struct list_head task_list;
1: +};
1: +
1: +struct completion {
1: + unsigned int done;
1: + struct swait_queue_head wait;
1: +};
1: +
1: +struct kernel_cap_struct {
1: + __u32 cap[2];
1: +};
1: +
1: +typedef struct kernel_cap_struct kernel_cap_t;
1: +
1: +struct group_info;
1: +
1: +struct cred {
1: + atomic_t usage;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t suid;
1: + kgid_t sgid;
1: + kuid_t euid;
1: + kgid_t egid;
1: + kuid_t fsuid;
1: + kgid_t fsgid;
1: + unsigned int securebits;
1: + kernel_cap_t cap_inheritable;
1: + kernel_cap_t cap_permitted;
1: + kernel_cap_t cap_effective;
1: + kernel_cap_t cap_bset;
1: + kernel_cap_t cap_ambient;
1: + unsigned char jit_keyring;
1: + struct key *session_keyring;
1: + struct key *process_keyring;
1: + struct key *thread_keyring;
1: + struct key *request_key_auth;
1: + void *security;
1: + struct user_struct *user;
1: + struct user_namespace *user_ns;
1: + struct group_info *group_info;
1: + union {
1: + int non_rcu;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +typedef int32_t key_serial_t;
1: +
1: +typedef uint32_t key_perm_t;
1: +
1: +struct key_type;
1: +
1: +struct key_tag;
1: +
1: +struct keyring_index_key {
1: + long unsigned int hash;
1: + union {
1: + struct {
1: + u16 desc_len;
1: + char desc[6];
1: + };
1: + long unsigned int x;
1: + };
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + const char *description;
1: +};
1: +
1: +union key_payload {
1: + void *rcu_data0;
1: + void *data[4];
1: +};
1: +
1: +struct assoc_array_ptr;
1: +
1: +struct assoc_array {
1: + struct assoc_array_ptr *root;
1: + long unsigned int nr_leaves_on_tree;
1: +};
1: +
1: +struct watch_list;
1: +
1: +struct key_user;
1: +
1: +struct key_restriction;
1: +
1: +struct key {
1: + refcount_t usage;
1: + key_serial_t serial;
1: + union {
1: + struct list_head graveyard_link;
1: + struct rb_node serial_node;
1: + };
1: + struct watch_list *watchers;
1: + struct rw_semaphore sem;
1: + struct key_user *user;
1: + void *security;
1: + union {
1: + time64_t expiry;
1: + time64_t revoked_at;
1: + };
1: + time64_t last_used_at;
1: + kuid_t uid;
1: + kgid_t gid;
1: + key_perm_t perm;
1: + short unsigned int quotalen;
1: + short unsigned int datalen;
1: + short int state;
1: + long unsigned int flags;
1: + union {
1: + struct keyring_index_key index_key;
1: + struct {
1: + long unsigned int hash;
1: + long unsigned int len_desc;
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + char *description;
1: + };
1: + };
1: + union {
1: + union key_payload payload;
1: + struct {
1: + struct list_head name_link;
1: + struct assoc_array keys;
1: + };
1: + };
1: + struct key_restriction *restrict_link;
1: +};
1: +
1: +struct uts_namespace;
1: +
1: +struct ipc_namespace;
1: +
1: +struct mnt_namespace;
1: +
1: +struct net;
1: +
1: +struct time_namespace;
1: +
1: +struct cgroup_namespace;
1: +
1: +struct nsproxy {
1: + atomic_t count;
1: + struct uts_namespace *uts_ns;
1: + struct ipc_namespace *ipc_ns;
1: + struct mnt_namespace *mnt_ns;
1: + struct pid_namespace *pid_ns_for_children;
1: + struct net *net_ns;
1: + struct time_namespace *time_ns;
1: + struct time_namespace *time_ns_for_children;
1: + struct cgroup_namespace *cgroup_ns;
1: +};
1: +
1: +struct sighand_struct {
1: + spinlock_t siglock;
1: + refcount_t count;
1: + wait_queue_head_t signalfd_wqh;
1: + struct k_sigaction action[64];
1: +};
1: +
1: +struct bio;
1: +
1: +struct bio_list {
1: + struct bio *head;
1: + struct bio *tail;
1: +};
1: +
1: +struct blk_plug {
1: + struct list_head mq_list;
1: + struct list_head cb_list;
1: + short unsigned int rq_count;
1: + bool multiple_queues;
1: + bool nowait;
1: +};
1: +
1: +struct reclaim_state {
1: + long unsigned int reclaimed_slab;
1: +};
1: +
1: +struct percpu_counter {
1: + raw_spinlock_t lock;
1: + s64 count;
1: + struct list_head list;
1: + s32 *counters;
1: +};
1: +
1: +struct fprop_local_percpu {
1: + struct percpu_counter events;
1: + unsigned int period;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +enum wb_reason {
1: + WB_REASON_BACKGROUND = 0,
1: + WB_REASON_VMSCAN = 1,
1: + WB_REASON_SYNC = 2,
1: + WB_REASON_PERIODIC = 3,
1: + WB_REASON_LAPTOP_TIMER = 4,
1: + WB_REASON_FS_FREE_SPACE = 5,
1: + WB_REASON_FORKER_THREAD = 6,
1: + WB_REASON_FOREIGN_FLUSH = 7,
1: + WB_REASON_MAX = 8,
1: +};
1: +
1: +struct percpu_ref_data;
1: +
1: +struct percpu_ref {
1: + long unsigned int percpu_count_ptr;
1: + struct percpu_ref_data *data;
1: +};
1: +
1: +struct cgroup_subsys_state;
1: +
1: +struct bdi_writeback {
1: + struct backing_dev_info *bdi;
1: + long unsigned int state;
1: + long unsigned int last_old_flush;
1: + struct list_head b_dirty;
1: + struct list_head b_io;
1: + struct list_head b_more_io;
1: + struct list_head b_dirty_time;
1: + spinlock_t list_lock;
1: + struct percpu_counter stat[4];
1: + long unsigned int congested;
1: + long unsigned int bw_time_stamp;
1: + long unsigned int dirtied_stamp;
1: + long unsigned int written_stamp;
1: + long unsigned int write_bandwidth;
1: + long unsigned int avg_write_bandwidth;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + struct fprop_local_percpu completions;
1: + int dirty_exceeded;
1: + enum wb_reason start_all_reason;
1: + spinlock_t work_lock;
1: + struct list_head work_list;
1: + struct delayed_work dwork;
1: + long unsigned int dirty_sleep;
1: + struct list_head bdi_node;
1: + struct percpu_ref refcnt;
1: + struct fprop_local_percpu memcg_completions;
1: + struct cgroup_subsys_state *memcg_css;
1: + struct cgroup_subsys_state *blkcg_css;
1: + struct list_head memcg_node;
1: + struct list_head blkcg_node;
1: + union {
1: + struct work_struct release_work;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct device;
1: +
1: +struct backing_dev_info {
1: + u64 id;
1: + struct rb_node rb_node;
1: + struct list_head bdi_list;
1: + long unsigned int ra_pages;
1: + long unsigned int io_pages;
1: + struct kref refcnt;
1: + unsigned int capabilities;
1: + unsigned int min_ratio;
1: + unsigned int max_ratio;
1: + unsigned int max_prop_frac;
1: + atomic_long_t tot_write_bandwidth;
1: + struct bdi_writeback wb;
1: + struct list_head wb_list;
1: + struct xarray cgwb_tree;
1: + struct mutex cgwb_release_mutex;
1: + struct rw_semaphore wb_switch_rwsem;
1: + wait_queue_head_t wb_waitq;
1: + struct device *dev;
1: + char dev_name[64];
1: + struct device *owner;
1: + struct timer_list laptop_mode_wb_timer;
1: + struct dentry *debug_dir;
1: +};
1: +
1: +struct io_cq;
1: +
1: +struct io_context {
1: + atomic_long_t refcount;
1: + atomic_t active_ref;
1: + atomic_t nr_tasks;
1: + spinlock_t lock;
1: + short unsigned int ioprio;
1: + struct xarray icq_tree;
1: + struct io_cq *icq_hint;
1: + struct hlist_head icq_list;
1: + struct work_struct release_work;
1: +};
1: +
1: +struct cgroup;
1: +
1: +struct css_set {
1: + struct cgroup_subsys_state *subsys[12];
1: + refcount_t refcount;
1: + struct css_set *dom_cset;
1: + struct cgroup *dfl_cgrp;
1: + int nr_tasks;
1: + struct list_head tasks;
1: + struct list_head mg_tasks;
1: + struct list_head dying_tasks;
1: + struct list_head task_iters;
1: + struct list_head e_cset_node[12];
1: + struct list_head threaded_csets;
1: + struct list_head threaded_csets_node;
1: + struct hlist_node hlist;
1: + struct list_head cgrp_links;
1: + struct list_head mg_preload_node;
1: + struct list_head mg_node;
1: + struct cgroup *mg_src_cgrp;
1: + struct cgroup *mg_dst_cgrp;
1: + struct css_set *mg_dst_cset;
1: + bool dead;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct compat_robust_list {
1: + compat_uptr_t next;
1: +};
1: +
1: +struct compat_robust_list_head {
1: + struct compat_robust_list list;
1: + compat_long_t futex_offset;
1: + compat_uptr_t list_op_pending;
1: +};
1: +
1: +struct perf_event_groups {
1: + struct rb_root tree;
1: + u64 index;
1: +};
1: +
1: +struct perf_event_context {
1: + struct pmu *pmu;
1: + raw_spinlock_t lock;
1: + struct mutex mutex;
1: + struct list_head active_ctx_list;
1: + struct perf_event_groups pinned_groups;
1: + struct perf_event_groups flexible_groups;
1: + struct list_head event_list;
1: + struct list_head pinned_active;
1: + struct list_head flexible_active;
1: + int nr_events;
1: + int nr_active;
1: + int is_active;
1: + int nr_stat;
1: + int nr_freq;
1: + int rotate_disable;
1: + int rotate_necessary;
1: + refcount_t refcount;
1: + struct task_struct *task;
1: + u64 time;
1: + u64 timestamp;
1: + struct perf_event_context *parent_ctx;
1: + u64 parent_gen;
1: + u64 generation;
1: + int pin_count;
1: + int nr_cgroups;
1: + void *task_ctx_data;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct mempolicy {
1: + atomic_t refcnt;
1: + short unsigned int mode;
1: + short unsigned int flags;
1: + union {
1: + short int preferred_node;
1: + nodemask_t nodes;
1: + } v;
1: + union {
1: + nodemask_t cpuset_mems_allowed;
1: + nodemask_t user_nodemask;
1: + } w;
1: +};
1: +
1: +struct task_delay_info {
1: + raw_spinlock_t lock;
1: + unsigned int flags;
1: + u64 blkio_start;
1: + u64 blkio_delay;
1: + u64 swapin_delay;
1: + u32 blkio_count;
1: + u32 swapin_count;
1: + u64 freepages_start;
1: + u64 freepages_delay;
1: + u64 thrashing_start;
1: + u64 thrashing_delay;
1: + u32 freepages_count;
1: + u32 thrashing_count;
1: +};
1: +
1: +struct ftrace_ret_stack {
1: + long unsigned int ret;
1: + long unsigned int func;
1: + long long unsigned int calltime;
1: + long unsigned int fp;
1: +};
1: +
1: +struct cgroup_subsys;
1: +
1: +struct cgroup_subsys_state {
1: + struct cgroup *cgroup;
1: + struct cgroup_subsys *ss;
1: + struct percpu_ref refcnt;
1: + struct list_head sibling;
1: + struct list_head children;
1: + struct list_head rstat_css_node;
1: + int id;
1: + unsigned int flags;
1: + u64 serial_nr;
1: + atomic_t online_cnt;
1: + struct work_struct destroy_work;
1: + struct rcu_work destroy_rwork;
1: + struct cgroup_subsys_state *parent;
1: +};
1: +
1: +struct mem_cgroup_id {
1: + int id;
1: + refcount_t ref;
1: +};
1: +
1: +struct page_counter {
1: + atomic_long_t usage;
1: + long unsigned int min;
1: + long unsigned int low;
1: + long unsigned int high;
1: + long unsigned int max;
1: + struct page_counter *parent;
1: + long unsigned int emin;
1: + atomic_long_t min_usage;
1: + atomic_long_t children_min_usage;
1: + long unsigned int elow;
1: + atomic_long_t low_usage;
1: + atomic_long_t children_low_usage;
1: + long unsigned int watermark;
1: + long unsigned int failcnt;
1: +};
1: +
1: +struct vmpressure {
1: + long unsigned int scanned;
1: + long unsigned int reclaimed;
1: + long unsigned int tree_scanned;
1: + long unsigned int tree_reclaimed;
1: + spinlock_t sr_lock;
1: + struct list_head events;
1: + struct mutex events_lock;
1: + struct work_struct work;
1: +};
1: +
1: +struct cgroup_file {
1: + struct kernfs_node *kn;
1: + long unsigned int notified_at;
1: + struct timer_list notify_timer;
1: +};
1: +
1: +struct mem_cgroup_threshold_ary;
1: +
1: +struct mem_cgroup_thresholds {
1: + struct mem_cgroup_threshold_ary *primary;
1: + struct mem_cgroup_threshold_ary *spare;
1: +};
1: +
1: +struct memcg_padding {
1: + char x[0];
1: +};
1: +
1: +enum memcg_kmem_state {
1: + KMEM_NONE = 0,
1: + KMEM_ALLOCATED = 1,
1: + KMEM_ONLINE = 2,
1: +};
1: +
1: +struct fprop_global {
1: + struct percpu_counter events;
1: + unsigned int period;
1: + seqcount_t sequence;
1: +};
1: +
1: +struct wb_domain {
1: + spinlock_t lock;
1: + struct fprop_global completions;
1: + struct timer_list period_timer;
1: + long unsigned int period_time;
1: + long unsigned int dirty_limit_tstamp;
1: + long unsigned int dirty_limit;
1: +};
1: +
1: +struct wb_completion {
1: + atomic_t cnt;
1: + wait_queue_head_t *waitq;
1: +};
1: +
1: +struct memcg_cgwb_frn {
1: + u64 bdi_id;
1: + int memcg_id;
1: + u64 at;
1: + struct wb_completion done;
1: +};
1: +
1: +struct deferred_split {
1: + spinlock_t split_queue_lock;
1: + struct list_head split_queue;
1: + long unsigned int split_queue_len;
1: +};
1: +
1: +struct memcg_vmstats_percpu;
1: +
1: +struct mem_cgroup_per_node;
1: +
1: +struct mem_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct mem_cgroup_id id;
1: + struct page_counter memory;
1: + union {
1: + struct page_counter swap;
1: + struct page_counter memsw;
1: + };
1: + struct page_counter kmem;
1: + struct page_counter tcpmem;
1: + struct work_struct high_work;
1: + long unsigned int soft_limit;
1: + struct vmpressure vmpressure;
1: + bool use_hierarchy;
1: + bool oom_group;
1: + bool oom_lock;
1: + int under_oom;
1: + int swappiness;
1: + int oom_kill_disable;
1: + struct cgroup_file events_file;
1: + struct cgroup_file events_local_file;
1: + struct cgroup_file swap_events_file;
1: + struct mutex thresholds_lock;
1: + struct mem_cgroup_thresholds thresholds;
1: + struct mem_cgroup_thresholds memsw_thresholds;
1: + struct list_head oom_notify;
1: + long unsigned int move_charge_at_immigrate;
1: + spinlock_t move_lock;
1: + long unsigned int move_lock_flags;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct memcg_padding _pad1_;
1: + atomic_long_t vmstats[40];
1: + atomic_long_t vmevents[95];
1: + atomic_long_t memory_events[8];
1: + atomic_long_t memory_events_local[8];
1: + long unsigned int socket_pressure;
1: + bool tcpmem_active;
1: + int tcpmem_pressure;
1: + int kmemcg_id;
1: + enum memcg_kmem_state kmem_state;
1: + struct obj_cgroup *objcg;
1: + struct list_head objcg_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct memcg_padding _pad2_;
1: + atomic_t moving_account;
1: + struct task_struct *move_lock_task;
1: + struct memcg_vmstats_percpu *vmstats_local;
1: + struct memcg_vmstats_percpu *vmstats_percpu;
1: + struct list_head cgwb_list;
1: + struct wb_domain cgwb_domain;
1: + struct memcg_cgwb_frn cgwb_frn[4];
1: + struct list_head event_list;
1: + spinlock_t event_list_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct mem_cgroup_per_node *nodeinfo[0];
1: +};
1: +
1: +struct blk_integrity_profile;
1: +
1: +struct blk_integrity {
1: + const struct blk_integrity_profile *profile;
1: + unsigned char flags;
1: + unsigned char tuple_size;
1: + unsigned char interval_exp;
1: + unsigned char tag_size;
1: +};
1: +
1: +enum rpm_status {
1: + RPM_ACTIVE = 0,
1: + RPM_RESUMING = 1,
1: + RPM_SUSPENDED = 2,
1: + RPM_SUSPENDING = 3,
1: +};
1: +
1: +struct blk_rq_stat {
1: + u64 mean;
1: + u64 min;
1: + u64 max;
1: + u32 nr_samples;
1: + u64 batch;
1: +};
1: +
1: +enum blk_zoned_model {
1: + BLK_ZONED_NONE = 0,
1: + BLK_ZONED_HA = 1,
1: + BLK_ZONED_HM = 2,
1: +};
1: +
1: +struct queue_limits {
1: + long unsigned int bounce_pfn;
1: + long unsigned int seg_boundary_mask;
1: + long unsigned int virt_boundary_mask;
1: + unsigned int max_hw_sectors;
1: + unsigned int max_dev_sectors;
1: + unsigned int chunk_sectors;
1: + unsigned int max_sectors;
1: + unsigned int max_segment_size;
1: + unsigned int physical_block_size;
1: + unsigned int logical_block_size;
1: + unsigned int alignment_offset;
1: + unsigned int io_min;
1: + unsigned int io_opt;
1: + unsigned int max_discard_sectors;
1: + unsigned int max_hw_discard_sectors;
1: + unsigned int max_write_same_sectors;
1: + unsigned int max_write_zeroes_sectors;
1: + unsigned int max_zone_append_sectors;
1: + unsigned int discard_granularity;
1: + unsigned int discard_alignment;
1: + short unsigned int max_segments;
1: + short unsigned int max_integrity_segments;
1: + short unsigned int max_discard_segments;
1: + unsigned char misaligned;
1: + unsigned char discard_misaligned;
1: + unsigned char raid_partial_stripes_expensive;
1: + enum blk_zoned_model zoned;
1: +};
1: +
1: +struct bsg_ops;
1: +
1: +struct bsg_class_device {
1: + struct device *class_dev;
1: + int minor;
1: + struct request_queue *queue;
1: + const struct bsg_ops *ops;
1: +};
1: +
1: +typedef void *mempool_alloc_t(gfp_t, void *);
1: +
1: +typedef void mempool_free_t(void *, void *);
1: +
1: +struct mempool_s {
1: + spinlock_t lock;
1: + int min_nr;
1: + int curr_nr;
1: + void **elements;
1: + void *pool_data;
1: + mempool_alloc_t *alloc;
1: + mempool_free_t *free;
1: + wait_queue_head_t wait;
1: +};
1: +
1: +typedef struct mempool_s mempool_t;
1: +
1: +struct bio_set {
1: + struct kmem_cache *bio_slab;
1: + unsigned int front_pad;
1: + mempool_t bio_pool;
1: + mempool_t bvec_pool;
1: + mempool_t bio_integrity_pool;
1: + mempool_t bvec_integrity_pool;
1: + spinlock_t rescue_lock;
1: + struct bio_list rescue_list;
1: + struct work_struct rescue_work;
1: + struct workqueue_struct *rescue_workqueue;
1: +};
1: +
1: +struct request;
1: +
1: +struct elevator_queue;
1: +
1: +struct blk_queue_stats;
1: +
1: +struct rq_qos;
1: +
1: +struct blk_mq_ops;
1: +
1: +struct blk_mq_ctx;
1: +
1: +struct blk_mq_hw_ctx;
1: +
1: +struct blk_keyslot_manager;
1: +
1: +struct blk_stat_callback;
1: +
1: +struct blkcg_gq;
1: +
1: +struct blk_trace;
1: +
1: +struct blk_flush_queue;
1: +
1: +struct throtl_data;
1: +
1: +struct blk_mq_tag_set;
1: +
1: +struct request_queue {
1: + struct request *last_merge;
1: + struct elevator_queue *elevator;
1: + struct percpu_ref q_usage_counter;
1: + struct blk_queue_stats *stats;
1: + struct rq_qos *rq_qos;
1: + const struct blk_mq_ops *mq_ops;
1: + struct blk_mq_ctx *queue_ctx;
1: + unsigned int queue_depth;
1: + struct blk_mq_hw_ctx **queue_hw_ctx;
1: + unsigned int nr_hw_queues;
1: + struct backing_dev_info *backing_dev_info;
1: + void *queuedata;
1: + long unsigned int queue_flags;
1: + atomic_t pm_only;
1: + int id;
1: + gfp_t bounce_gfp;
1: + spinlock_t queue_lock;
1: + struct kobject kobj;
1: + struct kobject *mq_kobj;
1: + struct blk_integrity integrity;
1: + struct device *dev;
1: + enum rpm_status rpm_status;
1: + unsigned int nr_pending;
1: + long unsigned int nr_requests;
1: + unsigned int dma_pad_mask;
1: + unsigned int dma_alignment;
1: + struct blk_keyslot_manager *ksm;
1: + unsigned int rq_timeout;
1: + int poll_nsec;
1: + struct blk_stat_callback *poll_cb;
1: + struct blk_rq_stat poll_stat[16];
1: + struct timer_list timeout;
1: + struct work_struct timeout_work;
1: + atomic_t nr_active_requests_shared_sbitmap;
1: + struct list_head icq_list;
1: + long unsigned int blkcg_pols[1];
1: + struct blkcg_gq *root_blkg;
1: + struct list_head blkg_list;
1: + struct queue_limits limits;
1: + unsigned int required_elevator_features;
1: + unsigned int nr_zones;
1: + long unsigned int *conv_zones_bitmap;
1: + long unsigned int *seq_zones_wlock;
1: + unsigned int max_open_zones;
1: + unsigned int max_active_zones;
1: + unsigned int sg_timeout;
1: + unsigned int sg_reserved_size;
1: + int node;
1: + struct mutex debugfs_mutex;
1: + struct blk_trace *blk_trace;
1: + struct blk_flush_queue *fq;
1: + struct list_head requeue_list;
1: + spinlock_t requeue_lock;
1: + struct delayed_work requeue_work;
1: + struct mutex sysfs_lock;
1: + struct mutex sysfs_dir_lock;
1: + struct list_head unused_hctx_list;
1: + spinlock_t unused_hctx_lock;
1: + int mq_freeze_depth;
1: + struct bsg_class_device bsg_dev;
1: + struct throtl_data *td;
1: + struct callback_head callback_head;
1: + wait_queue_head_t mq_freeze_wq;
1: + struct mutex mq_freeze_lock;
1: + struct blk_mq_tag_set *tag_set;
1: + struct list_head tag_set_list;
1: + struct bio_set bio_split;
1: + struct dentry *debugfs_dir;
1: + bool mq_sysfs_init_done;
1: + size_t cmd_size;
1: + u64 write_hints[5];
1: +};
1: +
1: +enum uprobe_task_state {
1: + UTASK_RUNNING = 0,
1: + UTASK_SSTEP = 1,
1: + UTASK_SSTEP_ACK = 2,
1: + UTASK_SSTEP_TRAPPED = 3,
1: +};
1: +
1: +struct arch_uprobe_task {};
1: +
1: +struct uprobe;
1: +
1: +struct return_instance;
1: +
1: +struct uprobe_task {
1: + enum uprobe_task_state state;
1: + union {
1: + struct {
1: + struct arch_uprobe_task autask;
1: + long unsigned int vaddr;
1: + };
1: + struct {
1: + struct callback_head dup_xol_work;
1: + long unsigned int dup_xol_addr;
1: + };
1: + };
1: + struct uprobe *active_uprobe;
1: + long unsigned int xol_vaddr;
1: + struct return_instance *return_instances;
1: + unsigned int depth;
1: +};
1: +
1: +struct vm_struct {
1: + struct vm_struct *next;
1: + void *addr;
1: + long unsigned int size;
1: + long unsigned int flags;
1: + struct page **pages;
1: + unsigned int nr_pages;
1: + phys_addr_t phys_addr;
1: + const void *caller;
1: +};
1: +
1: +struct kstat {
1: + u32 result_mask;
1: + umode_t mode;
1: + unsigned int nlink;
1: + uint32_t blksize;
1: + u64 attributes;
1: + u64 attributes_mask;
1: + u64 ino;
1: + dev_t dev;
1: + dev_t rdev;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct timespec64 atime;
1: + struct timespec64 mtime;
1: + struct timespec64 ctime;
1: + struct timespec64 btime;
1: + u64 blocks;
1: + u64 mnt_id;
1: +};
1: +
1: +struct return_instance {
1: + struct uprobe *uprobe;
1: + long unsigned int func;
1: + long unsigned int stack;
1: + long unsigned int orig_ret_vaddr;
1: + bool chained;
1: + struct return_instance *next;
1: +};
1: +
1: +typedef u32 errseq_t;
1: +
1: +struct address_space_operations;
1: +
1: +struct address_space {
1: + struct inode *host;
1: + struct xarray i_pages;
1: + gfp_t gfp_mask;
1: + atomic_t i_mmap_writable;
1: + atomic_t nr_thps;
1: + struct rb_root_cached i_mmap;
1: + struct rw_semaphore i_mmap_rwsem;
1: + long unsigned int nrpages;
1: + long unsigned int nrexceptional;
1: + long unsigned int writeback_index;
1: + const struct address_space_operations *a_ops;
1: + long unsigned int flags;
1: + errseq_t wb_err;
1: + spinlock_t private_lock;
1: + struct list_head private_list;
1: + void *private_data;
1: +};
1: +
1: +struct vmem_altmap {
1: + const long unsigned int base_pfn;
1: + const long unsigned int end_pfn;
1: + const long unsigned int reserve;
1: + long unsigned int free;
1: + long unsigned int align;
1: + long unsigned int alloc;
1: +};
1: +
1: +enum memory_type {
1: + MEMORY_DEVICE_PRIVATE = 1,
1: + MEMORY_DEVICE_FS_DAX = 2,
1: + MEMORY_DEVICE_GENERIC = 3,
1: + MEMORY_DEVICE_PCI_P2PDMA = 4,
1: +};
1: +
1: +struct range {
1: + u64 start;
1: + u64 end;
1: +};
1: +
1: +struct dev_pagemap_ops;
1: +
1: +struct dev_pagemap {
1: + struct vmem_altmap altmap;
1: + struct percpu_ref *ref;
1: + struct percpu_ref internal_ref;
1: + struct completion done;
1: + enum memory_type type;
1: + unsigned int flags;
1: + const struct dev_pagemap_ops *ops;
1: + void *owner;
1: + int nr_range;
1: + union {
1: + struct range range;
1: + struct range ranges[0];
1: + };
1: +};
1: +
1: +struct obj_cgroup {
1: + struct percpu_ref refcnt;
1: + struct mem_cgroup *memcg;
1: + atomic_t nr_charged_bytes;
1: + union {
1: + struct list_head list;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct vfsmount;
1: +
1: +struct path {
1: + struct vfsmount *mnt;
1: + struct dentry *dentry;
1: +};
1: +
1: +enum rw_hint {
1: + WRITE_LIFE_NOT_SET = 0,
1: + WRITE_LIFE_NONE = 1,
1: + WRITE_LIFE_SHORT = 2,
1: + WRITE_LIFE_MEDIUM = 3,
1: + WRITE_LIFE_LONG = 4,
1: + WRITE_LIFE_EXTREME = 5,
1: +};
1: +
1: +struct fown_struct {
1: + rwlock_t lock;
1: + struct pid *pid;
1: + enum pid_type pid_type;
1: + kuid_t uid;
1: + kuid_t euid;
1: + int signum;
1: +};
1: +
1: +struct file_ra_state {
1: + long unsigned int start;
1: + unsigned int size;
1: + unsigned int async_size;
1: + unsigned int ra_pages;
1: + unsigned int mmap_miss;
1: + loff_t prev_pos;
1: +};
1: +
1: +struct file {
1: + union {
1: + struct llist_node fu_llist;
1: + struct callback_head fu_rcuhead;
1: + } f_u;
1: + struct path f_path;
1: + struct inode *f_inode;
1: + const struct file_operations *f_op;
1: + spinlock_t f_lock;
1: + enum rw_hint f_write_hint;
1: + atomic_long_t f_count;
1: + unsigned int f_flags;
1: + fmode_t f_mode;
1: + struct mutex f_pos_lock;
1: + loff_t f_pos;
1: + struct fown_struct f_owner;
1: + const struct cred *f_cred;
1: + struct file_ra_state f_ra;
1: + u64 f_version;
1: + void *f_security;
1: + void *private_data;
1: + struct list_head f_ep_links;
1: + struct list_head f_tfile_llink;
1: + struct address_space *f_mapping;
1: + errseq_t f_wb_err;
1: + errseq_t f_sb_err;
1: +};
1: +
1: +struct anon_vma {
1: + struct anon_vma *root;
1: + struct rw_semaphore rwsem;
1: + atomic_t refcount;
1: + unsigned int degree;
1: + struct anon_vma *parent;
1: + struct rb_root_cached rb_root;
1: +};
1: +
1: +typedef unsigned int vm_fault_t;
1: +
1: +enum page_entry_size {
1: + PE_SIZE_PTE = 0,
1: + PE_SIZE_PMD = 1,
1: + PE_SIZE_PUD = 2,
1: +};
1: +
1: +struct vm_fault;
1: +
1: +struct vm_operations_struct {
1: + void (*open)(struct vm_area_struct *);
1: + void (*close)(struct vm_area_struct *);
1: + int (*split)(struct vm_area_struct *, long unsigned int);
1: + int (*mremap)(struct vm_area_struct *);
1: + vm_fault_t (*fault)(struct vm_fault *);
1: + vm_fault_t (*huge_fault)(struct vm_fault *, enum page_entry_size);
1: + void (*map_pages)(struct vm_fault *, long unsigned int, long unsigned int);
1: + long unsigned int (*pagesize)(struct vm_area_struct *);
1: + vm_fault_t (*page_mkwrite)(struct vm_fault *);
1: + vm_fault_t (*pfn_mkwrite)(struct vm_fault *);
1: + int (*access)(struct vm_area_struct *, long unsigned int, void *, int, int);
1: + const char * (*name)(struct vm_area_struct *);
1: + int (*set_policy)(struct vm_area_struct *, struct mempolicy *);
1: + struct mempolicy * (*get_policy)(struct vm_area_struct *, long unsigned int);
1: + struct page * (*find_special_page)(struct vm_area_struct *, long unsigned int);
1: +};
1: +
1: +struct core_thread {
1: + struct task_struct *task;
1: + struct core_thread *next;
1: +};
1: +
1: +struct core_state {
1: + atomic_t nr_threads;
1: + struct core_thread dumper;
1: + struct completion startup;
1: +};
1: +
1: +struct linux_binprm;
1: +
1: +struct coredump_params;
1: +
1: +struct linux_binfmt {
1: + struct list_head lh;
1: + struct module *module;
1: + int (*load_binary)(struct linux_binprm *);
1: + int (*load_shlib)(struct file *);
1: + int (*core_dump)(struct coredump_params *);
1: + long unsigned int min_coredump;
1: +};
1: +
1: +struct vm_fault {
1: + struct vm_area_struct *vma;
1: + unsigned int flags;
1: + gfp_t gfp_mask;
1: + long unsigned int pgoff;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pud_t *pud;
1: + pte_t orig_pte;
1: + struct page *cow_page;
1: + struct page *page;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + pgtable_t prealloc_pte;
1: +};
1: +
1: +struct free_area {
1: + struct list_head free_list[6];
1: + long unsigned int nr_free;
1: +};
1: +
1: +struct zone_padding {
1: + char x[0];
1: +};
1: +
1: +enum node_stat_item {
1: + NR_LRU_BASE = 0,
1: + NR_INACTIVE_ANON = 0,
1: + NR_ACTIVE_ANON = 1,
1: + NR_INACTIVE_FILE = 2,
1: + NR_ACTIVE_FILE = 3,
1: + NR_UNEVICTABLE = 4,
1: + NR_SLAB_RECLAIMABLE_B = 5,
1: + NR_SLAB_UNRECLAIMABLE_B = 6,
1: + NR_ISOLATED_ANON = 7,
1: + NR_ISOLATED_FILE = 8,
1: + WORKINGSET_NODES = 9,
1: + WORKINGSET_REFAULT_BASE = 10,
1: + WORKINGSET_REFAULT_ANON = 10,
1: + WORKINGSET_REFAULT_FILE = 11,
1: + WORKINGSET_ACTIVATE_BASE = 12,
1: + WORKINGSET_ACTIVATE_ANON = 12,
1: + WORKINGSET_ACTIVATE_FILE = 13,
1: + WORKINGSET_RESTORE_BASE = 14,
1: + WORKINGSET_RESTORE_ANON = 14,
1: + WORKINGSET_RESTORE_FILE = 15,
1: + WORKINGSET_NODERECLAIM = 16,
1: + NR_ANON_MAPPED = 17,
1: + NR_FILE_MAPPED = 18,
1: + NR_FILE_PAGES = 19,
1: + NR_FILE_DIRTY = 20,
1: + NR_WRITEBACK = 21,
1: + NR_WRITEBACK_TEMP = 22,
1: + NR_SHMEM = 23,
1: + NR_SHMEM_THPS = 24,
1: + NR_SHMEM_PMDMAPPED = 25,
1: + NR_FILE_THPS = 26,
1: + NR_FILE_PMDMAPPED = 27,
1: + NR_ANON_THPS = 28,
1: + NR_VMSCAN_WRITE = 29,
1: + NR_VMSCAN_IMMEDIATE = 30,
1: + NR_DIRTIED = 31,
1: + NR_WRITTEN = 32,
1: + NR_KERNEL_MISC_RECLAIMABLE = 33,
1: + NR_FOLL_PIN_ACQUIRED = 34,
1: + NR_FOLL_PIN_RELEASED = 35,
1: + NR_KERNEL_STACK_KB = 36,
1: + NR_VM_NODE_STAT_ITEMS = 37,
1: +};
1: +
1: +enum lru_list {
1: + LRU_INACTIVE_ANON = 0,
1: + LRU_ACTIVE_ANON = 1,
1: + LRU_INACTIVE_FILE = 2,
1: + LRU_ACTIVE_FILE = 3,
1: + LRU_UNEVICTABLE = 4,
1: + NR_LRU_LISTS = 5,
1: +};
1: +
1: +struct pglist_data;
1: +
1: +struct lruvec {
1: + struct list_head lists[5];
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + atomic_long_t nonresident_age;
1: + long unsigned int refaults[2];
1: + long unsigned int flags;
1: + struct pglist_data *pgdat;
1: +};
1: +
1: +struct per_cpu_pageset;
1: +
1: +struct zone {
1: + long unsigned int _watermark[3];
1: + long unsigned int watermark_boost;
1: + long unsigned int nr_reserved_highatomic;
1: + long int lowmem_reserve[4];
1: + int node;
1: + struct pglist_data *zone_pgdat;
1: + struct per_cpu_pageset *pageset;
1: + long unsigned int zone_start_pfn;
1: + atomic_long_t managed_pages;
1: + long unsigned int spanned_pages;
1: + long unsigned int present_pages;
1: + const char *name;
1: + long unsigned int nr_isolate_pageblock;
1: + seqlock_t span_seqlock;
1: + int initialized;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad1_;
1: + struct free_area free_area[11];
1: + long unsigned int flags;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad2_;
1: + long unsigned int percpu_drift_mark;
1: + long unsigned int compact_cached_free_pfn;
1: + long unsigned int compact_cached_migrate_pfn[2];
1: + long unsigned int compact_init_migrate_pfn;
1: + long unsigned int compact_init_free_pfn;
1: + unsigned int compact_considered;
1: + unsigned int compact_defer_shift;
1: + int compact_order_failed;
1: + bool compact_blockskip_flush;
1: + bool contiguous;
1: + short: 16;
1: + struct zone_padding _pad3_;
1: + atomic_long_t vm_stat[12];
1: + atomic_long_t vm_numa_stat[6];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct zoneref {
1: + struct zone *zone;
1: + int zone_idx;
1: +};
1: +
1: +struct zonelist {
1: + struct zoneref _zonerefs[513];
1: +};
1: +
1: +enum zone_type {
1: + ZONE_DMA = 0,
1: + ZONE_DMA32 = 1,
1: + ZONE_NORMAL = 2,
1: + ZONE_MOVABLE = 3,
1: + __MAX_NR_ZONES = 4,
1: +};
1: +
1: +struct per_cpu_nodestat;
1: +
1: +struct pglist_data {
1: + struct zone node_zones[4];
1: + struct zonelist node_zonelists[2];
1: + int nr_zones;
1: + spinlock_t node_size_lock;
1: + long unsigned int node_start_pfn;
1: + long unsigned int node_present_pages;
1: + long unsigned int node_spanned_pages;
1: + int node_id;
1: + wait_queue_head_t kswapd_wait;
1: + wait_queue_head_t pfmemalloc_wait;
1: + struct task_struct *kswapd;
1: + int kswapd_order;
1: + enum zone_type kswapd_highest_zoneidx;
1: + int kswapd_failures;
1: + int kcompactd_max_order;
1: + enum zone_type kcompactd_highest_zoneidx;
1: + wait_queue_head_t kcompactd_wait;
1: + struct task_struct *kcompactd;
1: + long unsigned int totalreserve_pages;
1: + long unsigned int min_unmapped_pages;
1: + long unsigned int min_slab_pages;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad1_;
1: + spinlock_t lru_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct lruvec __lruvec;
1: + long unsigned int flags;
1: + long: 64;
1: + struct zone_padding _pad2_;
1: + struct per_cpu_nodestat *per_cpu_nodestats;
1: + atomic_long_t vm_stat[37];
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef unsigned int isolate_mode_t;
1: +
1: +struct per_cpu_pages {
1: + int count;
1: + int high;
1: + int batch;
1: + struct list_head lists[3];
1: +};
1: +
1: +struct per_cpu_pageset {
1: + struct per_cpu_pages pcp;
1: + s8 expire;
1: + u16 vm_numa_stat_diff[6];
1: + s8 stat_threshold;
1: + s8 vm_stat_diff[12];
1: +};
1: +
1: +struct per_cpu_nodestat {
1: + s8 stat_threshold;
1: + s8 vm_node_stat_diff[37];
1: +};
1: +
1: +struct rcu_segcblist {
1: + struct callback_head *head;
1: + struct callback_head **tails[4];
1: + long unsigned int gp_seq[4];
1: + long int len;
1: + u8 enabled;
1: + u8 offloaded;
1: +};
1: +
1: +struct srcu_node;
1: +
1: +struct srcu_data {
1: + long unsigned int srcu_lock_count[2];
1: + long unsigned int srcu_unlock_count[2];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t lock;
1: + struct rcu_segcblist srcu_cblist;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + bool srcu_cblist_invoking;
1: + struct timer_list delay_work;
1: + struct work_struct work;
1: + struct callback_head srcu_barrier_head;
1: + struct srcu_node *mynode;
1: + long unsigned int grpmask;
1: + int cpu;
1: + struct srcu_struct *ssp;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct srcu_node {
1: + spinlock_t lock;
1: + long unsigned int srcu_have_cbs[4];
1: + long unsigned int srcu_data_have_cbs[4];
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + struct srcu_node *srcu_parent;
1: + int grplo;
1: + int grphi;
1: +};
1: +
1: +struct srcu_struct {
1: + struct srcu_node node[9];
1: + struct srcu_node *level[3];
1: + struct mutex srcu_cb_mutex;
1: + spinlock_t lock;
1: + struct mutex srcu_gp_mutex;
1: + unsigned int srcu_idx;
1: + long unsigned int srcu_gp_seq;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + long unsigned int srcu_last_gp_end;
1: + struct srcu_data *sda;
1: + long unsigned int srcu_barrier_seq;
1: + struct mutex srcu_barrier_mutex;
1: + struct completion srcu_barrier_completion;
1: + atomic_t srcu_barrier_cpu_cnt;
1: + struct delayed_work work;
1: +};
1: +
1: +typedef int proc_handler(struct ctl_table *, int, void *, size_t *, loff_t *);
1: +
1: +struct ctl_table_poll;
1: +
1: +struct ctl_table {
1: + const char *procname;
1: + void *data;
1: + int maxlen;
1: + umode_t mode;
1: + struct ctl_table *child;
1: + proc_handler *proc_handler;
1: + struct ctl_table_poll *poll;
1: + void *extra1;
1: + void *extra2;
1: +};
1: +
1: +struct ctl_table_poll {
1: + atomic_t event;
1: + wait_queue_head_t wait;
1: +};
1: +
1: +struct ctl_node {
1: + struct rb_node node;
1: + struct ctl_table_header *header;
1: +};
1: +
1: +struct ctl_table_root {
1: + struct ctl_table_set default_set;
1: + struct ctl_table_set * (*lookup)(struct ctl_table_root *);
1: + void (*set_ownership)(struct ctl_table_header *, struct ctl_table *, kuid_t *, kgid_t *);
1: + int (*permissions)(struct ctl_table_header *, struct ctl_table *);
1: +};
1: +
1: +enum umh_disable_depth {
1: + UMH_ENABLED = 0,
1: + UMH_FREEZING = 1,
1: + UMH_DISABLED = 2,
1: +};
1: +
1: +typedef __u64 Elf64_Addr;
1: +
1: +typedef __u16 Elf64_Half;
1: +
1: +typedef __u32 Elf64_Word;
1: +
1: +typedef __u64 Elf64_Xword;
1: +
1: +struct elf64_sym {
1: + Elf64_Word st_name;
1: + unsigned char st_info;
1: + unsigned char st_other;
1: + Elf64_Half st_shndx;
1: + Elf64_Addr st_value;
1: + Elf64_Xword st_size;
1: +};
1: +
1: +struct hlist_bl_node;
1: +
1: +struct hlist_bl_head {
1: + struct hlist_bl_node *first;
1: +};
1: +
1: +struct hlist_bl_node {
1: + struct hlist_bl_node *next;
1: + struct hlist_bl_node **pprev;
1: +};
1: +
1: +struct lockref {
1: + union {
1: + __u64 lock_count;
1: + struct {
1: + spinlock_t lock;
1: + int count;
1: + };
1: + };
1: +};
1: +
1: +struct qstr {
1: + union {
1: + struct {
1: + u32 hash;
1: + u32 len;
1: + };
1: + u64 hash_len;
1: + };
1: + const unsigned char *name;
1: +};
1: +
1: +struct dentry_operations;
1: +
1: +struct dentry {
1: + unsigned int d_flags;
1: + seqcount_spinlock_t d_seq;
1: + struct hlist_bl_node d_hash;
1: + struct dentry *d_parent;
1: + struct qstr d_name;
1: + struct inode *d_inode;
1: + unsigned char d_iname[32];
1: + struct lockref d_lockref;
1: + const struct dentry_operations *d_op;
1: + struct super_block *d_sb;
1: + long unsigned int d_time;
1: + void *d_fsdata;
1: + union {
1: + struct list_head d_lru;
1: + wait_queue_head_t *d_wait;
1: + };
1: + struct list_head d_child;
1: + struct list_head d_subdirs;
1: + union {
1: + struct hlist_node d_alias;
1: + struct hlist_bl_node d_in_lookup_hash;
1: + struct callback_head d_rcu;
1: + } d_u;
1: +};
1: +
1: +struct posix_acl;
1: +
1: +struct inode_operations;
1: +
1: +struct file_lock_context;
1: +
1: +struct block_device;
1: +
1: +struct cdev;
1: +
1: +struct fsnotify_mark_connector;
1: +
1: +struct fscrypt_info;
1: +
1: +struct fsverity_info;
1: +
1: +struct inode {
1: + umode_t i_mode;
1: + short unsigned int i_opflags;
1: + kuid_t i_uid;
1: + kgid_t i_gid;
1: + unsigned int i_flags;
1: + struct posix_acl *i_acl;
1: + struct posix_acl *i_default_acl;
1: + const struct inode_operations *i_op;
1: + struct super_block *i_sb;
1: + struct address_space *i_mapping;
1: + void *i_security;
1: + long unsigned int i_ino;
1: + union {
1: + const unsigned int i_nlink;
1: + unsigned int __i_nlink;
1: + };
1: + dev_t i_rdev;
1: + loff_t i_size;
1: + struct timespec64 i_atime;
1: + struct timespec64 i_mtime;
1: + struct timespec64 i_ctime;
1: + spinlock_t i_lock;
1: + short unsigned int i_bytes;
1: + u8 i_blkbits;
1: + u8 i_write_hint;
1: + blkcnt_t i_blocks;
1: + long unsigned int i_state;
1: + struct rw_semaphore i_rwsem;
1: + long unsigned int dirtied_when;
1: + long unsigned int dirtied_time_when;
1: + struct hlist_node i_hash;
1: + struct list_head i_io_list;
1: + struct bdi_writeback *i_wb;
1: + int i_wb_frn_winner;
1: + u16 i_wb_frn_avg_time;
1: + u16 i_wb_frn_history;
1: + struct list_head i_lru;
1: + struct list_head i_sb_list;
1: + struct list_head i_wb_list;
1: + union {
1: + struct hlist_head i_dentry;
1: + struct callback_head i_rcu;
1: + };
1: + atomic64_t i_version;
1: + atomic64_t i_sequence;
1: + atomic_t i_count;
1: + atomic_t i_dio_count;
1: + atomic_t i_writecount;
1: + atomic_t i_readcount;
1: + union {
1: + const struct file_operations *i_fop;
1: + void (*free_inode)(struct inode *);
1: + };
1: + struct file_lock_context *i_flctx;
1: + struct address_space i_data;
1: + struct list_head i_devices;
1: + union {
1: + struct pipe_inode_info *i_pipe;
1: + struct block_device *i_bdev;
1: + struct cdev *i_cdev;
1: + char *i_link;
1: + unsigned int i_dir_seq;
1: + };
1: + __u32 i_generation;
1: + __u32 i_fsnotify_mask;
1: + struct fsnotify_mark_connector *i_fsnotify_marks;
1: + struct fscrypt_info *i_crypt_info;
1: + struct fsverity_info *i_verity_info;
1: + void *i_private;
1: +};
1: +
1: +struct dentry_operations {
1: + int (*d_revalidate)(struct dentry *, unsigned int);
1: + int (*d_weak_revalidate)(struct dentry *, unsigned int);
1: + int (*d_hash)(const struct dentry *, struct qstr *);
1: + int (*d_compare)(const struct dentry *, unsigned int, const char *, const struct qstr *);
1: + int (*d_delete)(const struct dentry *);
1: + int (*d_init)(struct dentry *);
1: + void (*d_release)(struct dentry *);
1: + void (*d_prune)(struct dentry *);
1: + void (*d_iput)(struct dentry *, struct inode *);
1: + char * (*d_dname)(struct dentry *, char *, int);
1: + struct vfsmount * (*d_automount)(struct path *);
1: + int (*d_manage)(const struct path *, bool);
1: + struct dentry * (*d_real)(struct dentry *, const struct inode *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct mtd_info;
1: +
1: +typedef long long int qsize_t;
1: +
1: +struct quota_format_type;
1: +
1: +struct mem_dqinfo {
1: + struct quota_format_type *dqi_format;
1: + int dqi_fmt_id;
1: + struct list_head dqi_dirty_list;
1: + long unsigned int dqi_flags;
1: + unsigned int dqi_bgrace;
1: + unsigned int dqi_igrace;
1: + qsize_t dqi_max_spc_limit;
1: + qsize_t dqi_max_ino_limit;
1: + void *dqi_priv;
1: +};
1: +
1: +struct quota_format_ops;
1: +
1: +struct quota_info {
1: + unsigned int flags;
1: + struct rw_semaphore dqio_sem;
1: + struct inode *files[3];
1: + struct mem_dqinfo info[3];
1: + const struct quota_format_ops *ops[3];
1: +};
1: +
1: +struct rcu_sync {
1: + int gp_state;
1: + int gp_count;
1: + wait_queue_head_t gp_wait;
1: + struct callback_head cb_head;
1: +};
1: +
1: +struct rcuwait {
1: + struct task_struct *task;
1: +};
1: +
1: +struct percpu_rw_semaphore {
1: + struct rcu_sync rss;
1: + unsigned int *read_count;
1: + struct rcuwait writer;
1: + wait_queue_head_t waiters;
1: + atomic_t block;
1: +};
1: +
1: +struct sb_writers {
1: + int frozen;
1: + wait_queue_head_t wait_unfrozen;
1: + struct percpu_rw_semaphore rw_sem[3];
1: +};
1: +
1: +typedef struct {
1: + __u8 b[16];
1: +} uuid_t;
1: +
1: +struct shrink_control;
1: +
1: +struct shrinker {
1: + long unsigned int (*count_objects)(struct shrinker *, struct shrink_control *);
1: + long unsigned int (*scan_objects)(struct shrinker *, struct shrink_control *);
1: + long int batch;
1: + int seeks;
1: + unsigned int flags;
1: + struct list_head list;
1: + int id;
1: + atomic_long_t *nr_deferred;
1: +};
1: +
1: +struct list_lru_node;
1: +
1: +struct list_lru {
1: + struct list_lru_node *node;
1: + struct list_head list;
1: + int shrinker_id;
1: + bool memcg_aware;
1: +};
1: +
1: +struct super_operations;
1: +
1: +struct dquot_operations;
1: +
1: +struct quotactl_ops;
1: +
1: +struct export_operations;
1: +
1: +struct xattr_handler;
1: +
1: +struct fscrypt_operations;
1: +
1: +struct fsverity_operations;
1: +
1: +struct unicode_map;
1: +
1: +struct super_block {
1: + struct list_head s_list;
1: + dev_t s_dev;
1: + unsigned char s_blocksize_bits;
1: + long unsigned int s_blocksize;
1: + loff_t s_maxbytes;
1: + struct file_system_type *s_type;
1: + const struct super_operations *s_op;
1: + const struct dquot_operations *dq_op;
1: + const struct quotactl_ops *s_qcop;
1: + const struct export_operations *s_export_op;
1: + long unsigned int s_flags;
1: + long unsigned int s_iflags;
1: + long unsigned int s_magic;
1: + struct dentry *s_root;
1: + struct rw_semaphore s_umount;
1: + int s_count;
1: + atomic_t s_active;
1: + void *s_security;
1: + const struct xattr_handler **s_xattr;
1: + const struct fscrypt_operations *s_cop;
1: + struct key *s_master_keys;
1: + const struct fsverity_operations *s_vop;
1: + struct unicode_map *s_encoding;
1: + __u16 s_encoding_flags;
1: + struct hlist_bl_head s_roots;
1: + struct list_head s_mounts;
1: + struct block_device *s_bdev;
1: + struct backing_dev_info *s_bdi;
1: + struct mtd_info *s_mtd;
1: + struct hlist_node s_instances;
1: + unsigned int s_quota_types;
1: + struct quota_info s_dquot;
1: + struct sb_writers s_writers;
1: + void *s_fs_info;
1: + u32 s_time_gran;
1: + time64_t s_time_min;
1: + time64_t s_time_max;
1: + __u32 s_fsnotify_mask;
1: + struct fsnotify_mark_connector *s_fsnotify_marks;
1: + char s_id[32];
1: + uuid_t s_uuid;
1: + unsigned int s_max_links;
1: + fmode_t s_mode;
1: + struct mutex s_vfs_rename_mutex;
1: + const char *s_subtype;
1: + const struct dentry_operations *s_d_op;
1: + int cleancache_poolid;
1: + struct shrinker s_shrink;
1: + atomic_long_t s_remove_count;
1: + atomic_long_t s_fsnotify_inode_refs;
1: + int s_readonly_remount;
1: + errseq_t s_wb_err;
1: + struct workqueue_struct *s_dio_done_wq;
1: + struct hlist_head s_pins;
1: + struct user_namespace *s_user_ns;
1: + struct list_lru s_dentry_lru;
1: + struct list_lru s_inode_lru;
1: + struct callback_head rcu;
1: + struct work_struct destroy_work;
1: + struct mutex s_sync_lock;
1: + int s_stack_depth;
1: + int: 32;
1: + spinlock_t s_inode_list_lock;
1: + struct list_head s_inodes;
1: + spinlock_t s_inode_wblist_lock;
1: + struct list_head s_inodes_wb;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct shrink_control {
1: + gfp_t gfp_mask;
1: + int nid;
1: + long unsigned int nr_to_scan;
1: + long unsigned int nr_scanned;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct list_lru_one {
1: + struct list_head list;
1: + long int nr_items;
1: +};
1: +
1: +struct list_lru_memcg {
1: + struct callback_head rcu;
1: + struct list_lru_one *lru[0];
1: +};
1: +
1: +struct list_lru_node {
1: + spinlock_t lock;
1: + struct list_lru_one lru;
1: + struct list_lru_memcg *memcg_lrus;
1: + long int nr_items;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum migrate_mode {
1: + MIGRATE_ASYNC = 0,
1: + MIGRATE_SYNC_LIGHT = 1,
1: + MIGRATE_SYNC = 2,
1: + MIGRATE_SYNC_NO_COPY = 3,
1: +};
1: +
1: +struct exception_table_entry {
1: + int insn;
1: + int fixup;
1: +};
1: +
1: +struct cgroup_base_stat {
1: + struct task_cputime cputime;
1: +};
1: +
1: +struct psi_group_cpu;
1: +
1: +struct psi_group {
1: + struct mutex avgs_lock;
1: + struct psi_group_cpu *pcpu;
1: + u64 avg_total[5];
1: + u64 avg_last_update;
1: + u64 avg_next_update;
1: + struct delayed_work avgs_work;
1: + u64 total[10];
1: + long unsigned int avg[15];
1: + struct task_struct *poll_task;
1: + struct timer_list poll_timer;
1: + wait_queue_head_t poll_wait;
1: + atomic_t poll_wakeup;
1: + struct mutex trigger_lock;
1: + struct list_head triggers;
1: + u32 nr_triggers[5];
1: + u32 poll_states;
1: + u64 poll_min_period;
1: + u64 polling_total[5];
1: + u64 polling_next_update;
1: + u64 polling_until;
1: +};
1: +
1: +struct bpf_prog_array;
1: +
1: +struct cgroup_bpf {
1: + struct bpf_prog_array *effective[38];
1: + struct list_head progs[38];
1: + u32 flags[38];
1: + struct list_head storages;
1: + struct bpf_prog_array *inactive;
1: + struct percpu_ref refcnt;
1: + struct work_struct release_work;
1: +};
1: +
1: +struct cgroup_freezer_state {
1: + bool freeze;
1: + int e_freeze;
1: + int nr_frozen_descendants;
1: + int nr_frozen_tasks;
1: +};
1: +
1: +struct cgroup_root;
1: +
1: +struct cgroup_rstat_cpu;
1: +
1: +struct cgroup {
1: + struct cgroup_subsys_state self;
1: + long unsigned int flags;
1: + int level;
1: + int max_depth;
1: + int nr_descendants;
1: + int nr_dying_descendants;
1: + int max_descendants;
1: + int nr_populated_csets;
1: + int nr_populated_domain_children;
1: + int nr_populated_threaded_children;
1: + int nr_threaded_children;
1: + struct kernfs_node *kn;
1: + struct cgroup_file procs_file;
1: + struct cgroup_file events_file;
1: + u16 subtree_control;
1: + u16 subtree_ss_mask;
1: + u16 old_subtree_control;
1: + u16 old_subtree_ss_mask;
1: + struct cgroup_subsys_state *subsys[12];
1: + struct cgroup_root *root;
1: + struct list_head cset_links;
1: + struct list_head e_csets[12];
1: + struct cgroup *dom_cgrp;
1: + struct cgroup *old_dom_cgrp;
1: + struct cgroup_rstat_cpu *rstat_cpu;
1: + struct list_head rstat_css_list;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup_base_stat bstat;
1: + struct prev_cputime prev_cputime;
1: + struct list_head pidlists;
1: + struct mutex pidlist_mutex;
1: + wait_queue_head_t offline_waitq;
1: + struct work_struct release_agent_work;
1: + struct psi_group psi;
1: + struct cgroup_bpf bpf;
1: + atomic_t congestion_count;
1: + struct cgroup_freezer_state freezer;
1: + u64 ancestor_ids[0];
1: +};
1: +
1: +struct key_tag {
1: + struct callback_head rcu;
1: + refcount_t usage;
1: + bool removed;
1: +};
1: +
1: +typedef int (*request_key_actor_t)(struct key *, void *);
1: +
1: +struct key_preparsed_payload;
1: +
1: +struct key_match_data;
1: +
1: +struct kernel_pkey_params;
1: +
1: +struct kernel_pkey_query;
1: +
1: +struct key_type {
1: + const char *name;
1: + size_t def_datalen;
1: + unsigned int flags;
1: + int (*vet_description)(const char *);
1: + int (*preparse)(struct key_preparsed_payload *);
1: + void (*free_preparse)(struct key_preparsed_payload *);
1: + int (*instantiate)(struct key *, struct key_preparsed_payload *);
1: + int (*update)(struct key *, struct key_preparsed_payload *);
1: + int (*match_preparse)(struct key_match_data *);
1: + void (*match_free)(struct key_match_data *);
1: + void (*revoke)(struct key *);
1: + void (*destroy)(struct key *);
1: + void (*describe)(const struct key *, struct seq_file *);
1: + long int (*read)(const struct key *, char *, size_t);
1: + request_key_actor_t request_key;
1: + struct key_restriction * (*lookup_restriction)(const char *);
1: + int (*asym_query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: + int (*asym_eds_op)(struct kernel_pkey_params *, const void *, void *);
1: + int (*asym_verify_signature)(struct kernel_pkey_params *, const void *, const void *);
1: + struct list_head link;
1: + struct lock_class_key lock_class;
1: +};
1: +
1: +typedef int (*key_restrict_link_func_t)(struct key *, const struct key_type *, const union key_payload *, struct key *);
1: +
1: +struct key_restriction {
1: + key_restrict_link_func_t check;
1: + struct key *key;
1: + struct key_type *keytype;
1: +};
1: +
1: +struct group_info {
1: + atomic_t usage;
1: + int ngroups;
1: + kgid_t gid[0];
1: +};
1: +
1: +struct taskstats {
1: + __u16 version;
1: + __u32 ac_exitcode;
1: + __u8 ac_flag;
1: + __u8 ac_nice;
1: + __u64 cpu_count;
1: + __u64 cpu_delay_total;
1: + __u64 blkio_count;
1: + __u64 blkio_delay_total;
1: + __u64 swapin_count;
1: + __u64 swapin_delay_total;
1: + __u64 cpu_run_real_total;
1: + __u64 cpu_run_virtual_total;
1: + char ac_comm[32];
1: + __u8 ac_sched;
1: + __u8 ac_pad[3];
1: + int: 32;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u64 ac_etime;
1: + __u64 ac_utime;
1: + __u64 ac_stime;
1: + __u64 ac_minflt;
1: + __u64 ac_majflt;
1: + __u64 coremem;
1: + __u64 virtmem;
1: + __u64 hiwater_rss;
1: + __u64 hiwater_vm;
1: + __u64 read_char;
1: + __u64 write_char;
1: + __u64 read_syscalls;
1: + __u64 write_syscalls;
1: + __u64 read_bytes;
1: + __u64 write_bytes;
1: + __u64 cancelled_write_bytes;
1: + __u64 nvcsw;
1: + __u64 nivcsw;
1: + __u64 ac_utimescaled;
1: + __u64 ac_stimescaled;
1: + __u64 cpu_scaled_run_real_total;
1: + __u64 freepages_count;
1: + __u64 freepages_delay_total;
1: + __u64 thrashing_count;
1: + __u64 thrashing_delay_total;
1: + __u64 ac_btime64;
1: +};
1: +
1: +struct delayed_call {
1: + void (*fn)(void *);
1: + void *arg;
1: +};
1: +
1: +struct io_cq {
1: + struct request_queue *q;
1: + struct io_context *ioc;
1: + union {
1: + struct list_head q_node;
1: + struct kmem_cache *__rcu_icq_cache;
1: + };
1: + union {
1: + struct hlist_node ioc_node;
1: + struct callback_head __rcu_head;
1: + };
1: + unsigned int flags;
1: +};
1: +
1: +struct wait_page_queue;
1: +
1: +struct kiocb {
1: + struct file *ki_filp;
1: + loff_t ki_pos;
1: + void (*ki_complete)(struct kiocb *, long int, long int);
1: + void *private;
1: + int ki_flags;
1: + u16 ki_hint;
1: + u16 ki_ioprio;
1: + union {
1: + unsigned int ki_cookie;
1: + struct wait_page_queue *ki_waitq;
1: + };
1: +};
1: +
1: +struct iattr {
1: + unsigned int ia_valid;
1: + umode_t ia_mode;
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + loff_t ia_size;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct file *ia_file;
1: +};
1: +
1: +typedef __kernel_uid32_t projid_t;
1: +
1: +typedef struct {
1: + projid_t val;
1: +} kprojid_t;
1: +
1: +enum quota_type {
1: + USRQUOTA = 0,
1: + GRPQUOTA = 1,
1: + PRJQUOTA = 2,
1: +};
1: +
1: +struct kqid {
1: + union {
1: + kuid_t uid;
1: + kgid_t gid;
1: + kprojid_t projid;
1: + };
1: + enum quota_type type;
1: +};
1: +
1: +struct mem_dqblk {
1: + qsize_t dqb_bhardlimit;
1: + qsize_t dqb_bsoftlimit;
1: + qsize_t dqb_curspace;
1: + qsize_t dqb_rsvspace;
1: + qsize_t dqb_ihardlimit;
1: + qsize_t dqb_isoftlimit;
1: + qsize_t dqb_curinodes;
1: + time64_t dqb_btime;
1: + time64_t dqb_itime;
1: +};
1: +
1: +struct dquot {
1: + struct hlist_node dq_hash;
1: + struct list_head dq_inuse;
1: + struct list_head dq_free;
1: + struct list_head dq_dirty;
1: + struct mutex dq_lock;
1: + spinlock_t dq_dqb_lock;
1: + atomic_t dq_count;
1: + struct super_block *dq_sb;
1: + struct kqid dq_id;
1: + loff_t dq_off;
1: + long unsigned int dq_flags;
1: + struct mem_dqblk dq_dqb;
1: +};
1: +
1: +struct quota_format_type {
1: + int qf_fmt_id;
1: + const struct quota_format_ops *qf_ops;
1: + struct module *qf_owner;
1: + struct quota_format_type *qf_next;
1: +};
1: +
1: +struct quota_format_ops {
1: + int (*check_quota_file)(struct super_block *, int);
1: + int (*read_file_info)(struct super_block *, int);
1: + int (*write_file_info)(struct super_block *, int);
1: + int (*free_file_info)(struct super_block *, int);
1: + int (*read_dqblk)(struct dquot *);
1: + int (*commit_dqblk)(struct dquot *);
1: + int (*release_dqblk)(struct dquot *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: +};
1: +
1: +struct dquot_operations {
1: + int (*write_dquot)(struct dquot *);
1: + struct dquot * (*alloc_dquot)(struct super_block *, int);
1: + void (*destroy_dquot)(struct dquot *);
1: + int (*acquire_dquot)(struct dquot *);
1: + int (*release_dquot)(struct dquot *);
1: + int (*mark_dirty)(struct dquot *);
1: + int (*write_info)(struct super_block *, int);
1: + qsize_t * (*get_reserved_space)(struct inode *);
1: + int (*get_projid)(struct inode *, kprojid_t *);
1: + int (*get_inode_usage)(struct inode *, qsize_t *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: +};
1: +
1: +struct qc_dqblk {
1: + int d_fieldmask;
1: + u64 d_spc_hardlimit;
1: + u64 d_spc_softlimit;
1: + u64 d_ino_hardlimit;
1: + u64 d_ino_softlimit;
1: + u64 d_space;
1: + u64 d_ino_count;
1: + s64 d_ino_timer;
1: + s64 d_spc_timer;
1: + int d_ino_warns;
1: + int d_spc_warns;
1: + u64 d_rt_spc_hardlimit;
1: + u64 d_rt_spc_softlimit;
1: + u64 d_rt_space;
1: + s64 d_rt_spc_timer;
1: + int d_rt_spc_warns;
1: +};
1: +
1: +struct qc_type_state {
1: + unsigned int flags;
1: + unsigned int spc_timelimit;
1: + unsigned int ino_timelimit;
1: + unsigned int rt_spc_timelimit;
1: + unsigned int spc_warnlimit;
1: + unsigned int ino_warnlimit;
1: + unsigned int rt_spc_warnlimit;
1: + long long unsigned int ino;
1: + blkcnt_t blocks;
1: + blkcnt_t nextents;
1: +};
1: +
1: +struct qc_state {
1: + unsigned int s_incoredqs;
1: + struct qc_type_state s_state[3];
1: +};
1: +
1: +struct qc_info {
1: + int i_fieldmask;
1: + unsigned int i_flags;
1: + unsigned int i_spc_timelimit;
1: + unsigned int i_ino_timelimit;
1: + unsigned int i_rt_spc_timelimit;
1: + unsigned int i_spc_warnlimit;
1: + unsigned int i_ino_warnlimit;
1: + unsigned int i_rt_spc_warnlimit;
1: +};
1: +
1: +struct quotactl_ops {
1: + int (*quota_on)(struct super_block *, int, int, const struct path *);
1: + int (*quota_off)(struct super_block *, int);
1: + int (*quota_enable)(struct super_block *, unsigned int);
1: + int (*quota_disable)(struct super_block *, unsigned int);
1: + int (*quota_sync)(struct super_block *, int);
1: + int (*set_info)(struct super_block *, int, struct qc_info *);
1: + int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_nextdqblk)(struct super_block *, struct kqid *, struct qc_dqblk *);
1: + int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_state)(struct super_block *, struct qc_state *);
1: + int (*rm_xquota)(struct super_block *, unsigned int);
1: +};
1: +
1: +struct wait_page_queue {
1: + struct page *page;
1: + int bit_nr;
1: + wait_queue_entry_t wait;
1: +};
1: +
1: +struct writeback_control;
1: +
1: +struct readahead_control;
1: +
1: +struct swap_info_struct;
1: +
1: +struct address_space_operations {
1: + int (*writepage)(struct page *, struct writeback_control *);
1: + int (*readpage)(struct file *, struct page *);
1: + int (*writepages)(struct address_space *, struct writeback_control *);
1: + int (*set_page_dirty)(struct page *);
1: + int (*readpages)(struct file *, struct address_space *, struct list_head *, unsigned int);
1: + void (*readahead)(struct readahead_control *);
1: + int (*write_begin)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page **, void **);
1: + int (*write_end)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page *, void *);
1: + sector_t (*bmap)(struct address_space *, sector_t);
1: + void (*invalidatepage)(struct page *, unsigned int, unsigned int);
1: + int (*releasepage)(struct page *, gfp_t);
1: + void (*freepage)(struct page *);
1: + ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *);
1: + int (*migratepage)(struct address_space *, struct page *, struct page *, enum migrate_mode);
1: + bool (*isolate_page)(struct page *, isolate_mode_t);
1: + void (*putback_page)(struct page *);
1: + int (*launder_page)(struct page *);
1: + int (*is_partially_uptodate)(struct page *, long unsigned int, long unsigned int);
1: + void (*is_dirty_writeback)(struct page *, bool *, bool *);
1: + int (*error_remove_page)(struct address_space *, struct page *);
1: + int (*swap_activate)(struct swap_info_struct *, struct file *, sector_t *);
1: + void (*swap_deactivate)(struct file *);
1: +};
1: +
1: +enum writeback_sync_modes {
1: + WB_SYNC_NONE = 0,
1: + WB_SYNC_ALL = 1,
1: +};
1: +
1: +struct writeback_control {
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int for_kupdate: 1;
1: + unsigned int for_background: 1;
1: + unsigned int tagged_writepages: 1;
1: + unsigned int for_reclaim: 1;
1: + unsigned int range_cyclic: 1;
1: + unsigned int for_sync: 1;
1: + unsigned int no_cgroup_owner: 1;
1: + unsigned int punt_to_cgroup: 1;
1: + struct bdi_writeback *wb;
1: + struct inode *inode;
1: + int wb_id;
1: + int wb_lcand_id;
1: + int wb_tcand_id;
1: + size_t wb_bytes;
1: + size_t wb_lcand_bytes;
1: + size_t wb_tcand_bytes;
1: +};
1: +
1: +struct readahead_control {
1: + struct file *file;
1: + struct address_space *mapping;
1: + long unsigned int _index;
1: + unsigned int _nr_pages;
1: + unsigned int _batch_count;
1: +};
1: +
1: +struct iovec;
1: +
1: +struct kvec;
1: +
1: +struct bio_vec;
1: +
1: +struct iov_iter {
1: + unsigned int type;
1: + size_t iov_offset;
1: + size_t count;
1: + union {
1: + const struct iovec *iov;
1: + const struct kvec *kvec;
1: + const struct bio_vec *bvec;
1: + struct pipe_inode_info *pipe;
1: + };
1: + union {
1: + long unsigned int nr_segs;
1: + struct {
1: + unsigned int head;
1: + unsigned int start_head;
1: + };
1: + };
1: +};
1: +
1: +struct swap_cluster_info {
1: + spinlock_t lock;
1: + unsigned int data: 24;
1: + unsigned int flags: 8;
1: +};
1: +
1: +struct swap_cluster_list {
1: + struct swap_cluster_info head;
1: + struct swap_cluster_info tail;
1: +};
1: +
1: +struct percpu_cluster;
1: +
1: +struct swap_info_struct {
1: + long unsigned int flags;
1: + short int prio;
1: + struct plist_node list;
1: + signed char type;
1: + unsigned int max;
1: + unsigned char *swap_map;
1: + struct swap_cluster_info *cluster_info;
1: + struct swap_cluster_list free_clusters;
1: + unsigned int lowest_bit;
1: + unsigned int highest_bit;
1: + unsigned int pages;
1: + unsigned int inuse_pages;
1: + unsigned int cluster_next;
1: + unsigned int cluster_nr;
1: + unsigned int *cluster_next_cpu;
1: + struct percpu_cluster *percpu_cluster;
1: + struct rb_root swap_extent_root;
1: + struct block_device *bdev;
1: + struct file *swap_file;
1: + unsigned int old_block_size;
1: + long unsigned int *frontswap_map;
1: + atomic_t frontswap_pages;
1: + spinlock_t lock;
1: + spinlock_t cont_lock;
1: + struct work_struct discard_work;
1: + struct swap_cluster_list discard_clusters;
1: + struct plist_node avail_lists[0];
1: +};
1: +
1: +struct hd_struct;
1: +
1: +struct gendisk;
1: +
1: +struct block_device {
1: + dev_t bd_dev;
1: + int bd_openers;
1: + struct inode *bd_inode;
1: + struct super_block *bd_super;
1: + struct mutex bd_mutex;
1: + void *bd_claiming;
1: + void *bd_holder;
1: + int bd_holders;
1: + bool bd_write_holder;
1: + struct list_head bd_holder_disks;
1: + struct block_device *bd_contains;
1: + u8 bd_partno;
1: + struct hd_struct *bd_part;
1: + unsigned int bd_part_count;
1: + spinlock_t bd_size_lock;
1: + struct gendisk *bd_disk;
1: + struct backing_dev_info *bd_bdi;
1: + int bd_fsfreeze_count;
1: + struct mutex bd_fsfreeze_mutex;
1: +};
1: +
1: +struct cdev {
1: + struct kobject kobj;
1: + struct module *owner;
1: + const struct file_operations *ops;
1: + struct list_head list;
1: + dev_t dev;
1: + unsigned int count;
1: +};
1: +
1: +struct fiemap_extent_info;
1: +
1: +struct inode_operations {
1: + struct dentry * (*lookup)(struct inode *, struct dentry *, unsigned int);
1: + const char * (*get_link)(struct dentry *, struct inode *, struct delayed_call *);
1: + int (*permission)(struct inode *, int);
1: + struct posix_acl * (*get_acl)(struct inode *, int);
1: + int (*readlink)(struct dentry *, char *, int);
1: + int (*create)(struct inode *, struct dentry *, umode_t, bool);
1: + int (*link)(struct dentry *, struct inode *, struct dentry *);
1: + int (*unlink)(struct inode *, struct dentry *);
1: + int (*symlink)(struct inode *, struct dentry *, const char *);
1: + int (*mkdir)(struct inode *, struct dentry *, umode_t);
1: + int (*rmdir)(struct inode *, struct dentry *);
1: + int (*mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: + int (*rename)(struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int);
1: + int (*setattr)(struct dentry *, struct iattr *);
1: + int (*getattr)(const struct path *, struct kstat *, u32, unsigned int);
1: + ssize_t (*listxattr)(struct dentry *, char *, size_t);
1: + int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64, u64);
1: + int (*update_time)(struct inode *, struct timespec64 *, int);
1: + int (*atomic_open)(struct inode *, struct dentry *, struct file *, unsigned int, umode_t);
1: + int (*tmpfile)(struct inode *, struct dentry *, umode_t);
1: + int (*set_acl)(struct inode *, struct posix_acl *, int);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct file_lock_context {
1: + spinlock_t flc_lock;
1: + struct list_head flc_flock;
1: + struct list_head flc_posix;
1: + struct list_head flc_lease;
1: +};
1: +
1: +struct file_lock_operations {
1: + void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1: + void (*fl_release_private)(struct file_lock *);
1: +};
1: +
1: +struct nlm_lockowner;
1: +
1: +struct nfs_lock_info {
1: + u32 state;
1: + struct nlm_lockowner *owner;
1: + struct list_head list;
1: +};
1: +
1: +struct nfs4_lock_state;
1: +
1: +struct nfs4_lock_info {
1: + struct nfs4_lock_state *owner;
1: +};
1: +
1: +struct lock_manager_operations;
1: +
1: +struct file_lock {
1: + struct file_lock *fl_blocker;
1: + struct list_head fl_list;
1: + struct hlist_node fl_link;
1: + struct list_head fl_blocked_requests;
1: + struct list_head fl_blocked_member;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + unsigned int fl_pid;
1: + int fl_link_cpu;
1: + wait_queue_head_t fl_wait;
1: + struct file *fl_file;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + struct fasync_struct *fl_fasync;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + const struct file_lock_operations *fl_ops;
1: + const struct lock_manager_operations *fl_lmops;
1: + union {
1: + struct nfs_lock_info nfs_fl;
1: + struct nfs4_lock_info nfs4_fl;
1: + struct {
1: + struct list_head link;
1: + int state;
1: + unsigned int debug_id;
1: + } afs;
1: + } fl_u;
1: +};
1: +
1: +struct lock_manager_operations {
1: + fl_owner_t (*lm_get_owner)(fl_owner_t);
1: + void (*lm_put_owner)(fl_owner_t);
1: + void (*lm_notify)(struct file_lock *);
1: + int (*lm_grant)(struct file_lock *, int);
1: + bool (*lm_break)(struct file_lock *);
1: + int (*lm_change)(struct file_lock *, int, struct list_head *);
1: + void (*lm_setup)(struct file_lock *, void **);
1: + bool (*lm_breaker_owns_lease)(struct file_lock *);
1: +};
1: +
1: +struct fasync_struct {
1: + rwlock_t fa_lock;
1: + int magic;
1: + int fa_fd;
1: + struct fasync_struct *fa_next;
1: + struct file *fa_file;
1: + struct callback_head fa_rcu;
1: +};
1: +
1: +struct kstatfs;
1: +
1: +struct super_operations {
1: + struct inode * (*alloc_inode)(struct super_block *);
1: + void (*destroy_inode)(struct inode *);
1: + void (*free_inode)(struct inode *);
1: + void (*dirty_inode)(struct inode *, int);
1: + int (*write_inode)(struct inode *, struct writeback_control *);
1: + int (*drop_inode)(struct inode *);
1: + void (*evict_inode)(struct inode *);
1: + void (*put_super)(struct super_block *);
1: + int (*sync_fs)(struct super_block *, int);
1: + int (*freeze_super)(struct super_block *);
1: + int (*freeze_fs)(struct super_block *);
1: + int (*thaw_super)(struct super_block *);
1: + int (*unfreeze_fs)(struct super_block *);
1: + int (*statfs)(struct dentry *, struct kstatfs *);
1: + int (*remount_fs)(struct super_block *, int *, char *);
1: + void (*umount_begin)(struct super_block *);
1: + int (*show_options)(struct seq_file *, struct dentry *);
1: + int (*show_devname)(struct seq_file *, struct dentry *);
1: + int (*show_path)(struct seq_file *, struct dentry *);
1: + int (*show_stats)(struct seq_file *, struct dentry *);
1: + ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1: + ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
1: + struct dquot ** (*get_dquots)(struct inode *);
1: + int (*bdev_try_to_free_page)(struct super_block *, struct page *, gfp_t);
1: + long int (*nr_cached_objects)(struct super_block *, struct shrink_control *);
1: + long int (*free_cached_objects)(struct super_block *, struct shrink_control *);
1: +};
1: +
1: +struct iomap;
1: +
1: +struct fid;
1: +
1: +struct export_operations {
1: + int (*encode_fh)(struct inode *, __u32 *, int *, struct inode *);
1: + struct dentry * (*fh_to_dentry)(struct super_block *, struct fid *, int, int);
1: + struct dentry * (*fh_to_parent)(struct super_block *, struct fid *, int, int);
1: + int (*get_name)(struct dentry *, char *, struct dentry *);
1: + struct dentry * (*get_parent)(struct dentry *);
1: + int (*commit_metadata)(struct inode *);
1: + int (*get_uuid)(struct super_block *, u8 *, u32 *, u64 *);
1: + int (*map_blocks)(struct inode *, loff_t, u64, struct iomap *, bool, u32 *);
1: + int (*commit_blocks)(struct inode *, struct iomap *, int, struct iattr *);
1: +};
1: +
1: +struct xattr_handler {
1: + const char *name;
1: + const char *prefix;
1: + int flags;
1: + bool (*list)(struct dentry *);
1: + int (*get)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, void *, size_t);
1: + int (*set)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, const void *, size_t, int);
1: +};
1: +
1: +union fscrypt_policy;
1: +
1: +struct fscrypt_operations {
1: + unsigned int flags;
1: + const char *key_prefix;
1: + int (*get_context)(struct inode *, void *, size_t);
1: + int (*set_context)(struct inode *, const void *, size_t, void *);
1: + const union fscrypt_policy * (*get_dummy_policy)(struct super_block *);
1: + bool (*empty_dir)(struct inode *);
1: + unsigned int max_namelen;
1: + bool (*has_stable_inodes)(struct super_block *);
1: + void (*get_ino_and_lblk_bits)(struct super_block *, int *, int *);
1: + int (*get_num_devices)(struct super_block *);
1: + void (*get_devices)(struct super_block *, struct request_queue **);
1: +};
1: +
1: +struct fsverity_operations {
1: + int (*begin_enable_verity)(struct file *);
1: + int (*end_enable_verity)(struct file *, const void *, size_t, u64);
1: + int (*get_verity_descriptor)(struct inode *, void *, size_t);
1: + struct page * (*read_merkle_tree_page)(struct inode *, long unsigned int, long unsigned int);
1: + int (*write_merkle_tree_block)(struct inode *, const void *, u64, int);
1: +};
1: +
1: +typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64, unsigned int);
1: +
1: +struct dir_context {
1: + filldir_t actor;
1: + loff_t pos;
1: +};
1: +
1: +typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_table_struct *);
1: +
1: +struct poll_table_struct {
1: + poll_queue_proc _qproc;
1: + __poll_t _key;
1: +};
1: +
1: +struct seq_operations;
1: +
1: +struct seq_file {
1: + char *buf;
1: + size_t size;
1: + size_t from;
1: + size_t count;
1: + size_t pad_until;
1: + loff_t index;
1: + loff_t read_pos;
1: + struct mutex lock;
1: + const struct seq_operations *op;
1: + int poll_event;
1: + const struct file *file;
1: + void *private;
1: +};
1: +
1: +struct fc_log;
1: +
1: +struct p_log {
1: + const char *prefix;
1: + struct fc_log *log;
1: +};
1: +
1: +enum fs_context_purpose {
1: + FS_CONTEXT_FOR_MOUNT = 0,
1: + FS_CONTEXT_FOR_SUBMOUNT = 1,
1: + FS_CONTEXT_FOR_RECONFIGURE = 2,
1: +};
1: +
1: +enum fs_context_phase {
1: + FS_CONTEXT_CREATE_PARAMS = 0,
1: + FS_CONTEXT_CREATING = 1,
1: + FS_CONTEXT_AWAITING_MOUNT = 2,
1: + FS_CONTEXT_AWAITING_RECONF = 3,
1: + FS_CONTEXT_RECONF_PARAMS = 4,
1: + FS_CONTEXT_RECONFIGURING = 5,
1: + FS_CONTEXT_FAILED = 6,
1: +};
1: +
1: +struct fs_context_operations;
1: +
1: +struct fs_context {
1: + const struct fs_context_operations *ops;
1: + struct mutex uapi_mutex;
1: + struct file_system_type *fs_type;
1: + void *fs_private;
1: + void *sget_key;
1: + struct dentry *root;
1: + struct user_namespace *user_ns;
1: + struct net *net_ns;
1: + const struct cred *cred;
1: + struct p_log log;
1: + const char *source;
1: + void *security;
1: + void *s_fs_info;
1: + unsigned int sb_flags;
1: + unsigned int sb_flags_mask;
1: + unsigned int s_iflags;
1: + unsigned int lsm_flags;
1: + enum fs_context_purpose purpose: 8;
1: + enum fs_context_phase phase: 8;
1: + bool need_free: 1;
1: + bool global: 1;
1: + bool oldapi: 1;
1: +};
1: +
1: +struct fs_parameter;
1: +
1: +struct fs_parse_result;
1: +
1: +typedef int fs_param_type(struct p_log *, const struct fs_parameter_spec *, struct fs_parameter *, struct fs_parse_result *);
1: +
1: +struct fs_parameter_spec {
1: + const char *name;
1: + fs_param_type *type;
1: + u8 opt;
1: + short unsigned int flags;
1: + const void *data;
1: +};
1: +
1: +struct audit_names;
1: +
1: +struct filename {
1: + const char *name;
1: + const char *uptr;
1: + int refcnt;
1: + struct audit_names *aname;
1: + const char iname[0];
1: +};
1: +
1: +typedef u8 blk_status_t;
1: +
1: +struct bvec_iter {
1: + sector_t bi_sector;
1: + unsigned int bi_size;
1: + unsigned int bi_idx;
1: + unsigned int bi_bvec_done;
1: +};
1: +
1: +typedef void bio_end_io_t(struct bio *);
1: +
1: +struct bio_issue {
1: + u64 value;
1: +};
1: +
1: +struct bio_vec {
1: + struct page *bv_page;
1: + unsigned int bv_len;
1: + unsigned int bv_offset;
1: +};
1: +
1: +struct bio_crypt_ctx;
1: +
1: +struct bio_integrity_payload;
1: +
1: +struct bio {
1: + struct bio *bi_next;
1: + struct gendisk *bi_disk;
1: + unsigned int bi_opf;
1: + short unsigned int bi_flags;
1: + short unsigned int bi_ioprio;
1: + short unsigned int bi_write_hint;
1: + blk_status_t bi_status;
1: + u8 bi_partno;
1: + atomic_t __bi_remaining;
1: + struct bvec_iter bi_iter;
1: + bio_end_io_t *bi_end_io;
1: + void *bi_private;
1: + struct blkcg_gq *bi_blkg;
1: + struct bio_issue bi_issue;
1: + u64 bi_iocost_cost;
1: + struct bio_crypt_ctx *bi_crypt_context;
1: + union {
1: + struct bio_integrity_payload *bi_integrity;
1: + };
1: + short unsigned int bi_vcnt;
1: + short unsigned int bi_max_vecs;
1: + atomic_t __bi_cnt;
1: + struct bio_vec *bi_io_vec;
1: + struct bio_set *bi_pool;
1: + struct bio_vec bi_inline_vecs[0];
1: +};
1: +
1: +struct kernfs_root;
1: +
1: +struct kernfs_elem_dir {
1: + long unsigned int subdirs;
1: + struct rb_root children;
1: + struct kernfs_root *root;
1: +};
1: +
1: +struct kernfs_syscall_ops;
1: +
1: +struct kernfs_root {
1: + struct kernfs_node *kn;
1: + unsigned int flags;
1: + struct idr ino_idr;
1: + u32 last_id_lowbits;
1: + u32 id_highbits;
1: + struct kernfs_syscall_ops *syscall_ops;
1: + struct list_head supers;
1: + wait_queue_head_t deactivate_waitq;
1: +};
1: +
1: +struct kernfs_elem_symlink {
1: + struct kernfs_node *target_kn;
1: +};
1: +
1: +struct kernfs_ops;
1: +
1: +struct kernfs_open_node;
1: +
1: +struct kernfs_elem_attr {
1: + const struct kernfs_ops *ops;
1: + struct kernfs_open_node *open;
1: + loff_t size;
1: + struct kernfs_node *notify_next;
1: +};
1: +
1: +struct kernfs_iattrs;
1: +
1: +struct kernfs_node {
1: + atomic_t count;
1: + atomic_t active;
1: + struct kernfs_node *parent;
1: + const char *name;
1: + struct rb_node rb;
1: + const void *ns;
1: + unsigned int hash;
1: + union {
1: + struct kernfs_elem_dir dir;
1: + struct kernfs_elem_symlink symlink;
1: + struct kernfs_elem_attr attr;
1: + };
1: + void *priv;
1: + u64 id;
1: + short unsigned int flags;
1: + umode_t mode;
1: + struct kernfs_iattrs *iattr;
1: +};
1: +
1: +struct kernfs_open_file;
1: +
1: +struct kernfs_ops {
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void * (*seq_start)(struct seq_file *, loff_t *);
1: + void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + ssize_t (*read)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + size_t atomic_write_len;
1: + bool prealloc;
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: + int (*mmap)(struct kernfs_open_file *, struct vm_area_struct *);
1: +};
1: +
1: +struct kernfs_syscall_ops {
1: + int (*show_options)(struct seq_file *, struct kernfs_root *);
1: + int (*mkdir)(struct kernfs_node *, const char *, umode_t);
1: + int (*rmdir)(struct kernfs_node *);
1: + int (*rename)(struct kernfs_node *, struct kernfs_node *, const char *);
1: + int (*show_path)(struct seq_file *, struct kernfs_node *, struct kernfs_root *);
1: +};
1: +
1: +struct kernfs_open_file {
1: + struct kernfs_node *kn;
1: + struct file *file;
1: + struct seq_file *seq_file;
1: + void *priv;
1: + struct mutex mutex;
1: + struct mutex prealloc_mutex;
1: + int event;
1: + struct list_head list;
1: + char *prealloc_buf;
1: + size_t atomic_write_len;
1: + bool mmapped: 1;
1: + bool released: 1;
1: + const struct vm_operations_struct *vm_ops;
1: +};
1: +
1: +enum kobj_ns_type {
1: + KOBJ_NS_TYPE_NONE = 0,
1: + KOBJ_NS_TYPE_NET = 1,
1: + KOBJ_NS_TYPES = 2,
1: +};
1: +
1: +struct sock;
1: +
1: +struct kobj_ns_type_operations {
1: + enum kobj_ns_type type;
1: + bool (*current_may_mount)();
1: + void * (*grab_current_ns)();
1: + const void * (*netlink_ns)(struct sock *);
1: + const void * (*initial_ns)();
1: + void (*drop_ns)(void *);
1: +};
1: +
1: +struct attribute {
1: + const char *name;
1: + umode_t mode;
1: +};
1: +
1: +struct bin_attribute;
1: +
1: +struct attribute_group {
1: + const char *name;
1: + umode_t (*is_visible)(struct kobject *, struct attribute *, int);
1: + umode_t (*is_bin_visible)(struct kobject *, struct bin_attribute *, int);
1: + struct attribute **attrs;
1: + struct bin_attribute **bin_attrs;
1: +};
1: +
1: +struct bin_attribute {
1: + struct attribute attr;
1: + size_t size;
1: + void *private;
1: + ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: + ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: + int (*mmap)(struct file *, struct kobject *, struct bin_attribute *, struct vm_area_struct *);
1: +};
1: +
1: +struct sysfs_ops {
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: +};
1: +
1: +struct kset_uevent_ops;
1: +
1: +struct kset {
1: + struct list_head list;
1: + spinlock_t list_lock;
1: + struct kobject kobj;
1: + const struct kset_uevent_ops *uevent_ops;
1: +};
1: +
1: +struct kobj_type {
1: + void (*release)(struct kobject *);
1: + const struct sysfs_ops *sysfs_ops;
1: + struct attribute **default_attrs;
1: + const struct attribute_group **default_groups;
1: + const struct kobj_ns_type_operations * (*child_ns_type)(struct kobject *);
1: + const void * (*namespace)(struct kobject *);
1: + void (*get_ownership)(struct kobject *, kuid_t *, kgid_t *);
1: +};
1: +
1: +struct kobj_uevent_env {
1: + char *argv[3];
1: + char *envp[64];
1: + int envp_idx;
1: + char buf[2048];
1: + int buflen;
1: +};
1: +
1: +struct kset_uevent_ops {
1: + int (* const filter)(struct kset *, struct kobject *);
1: + const char * (* const name)(struct kset *, struct kobject *);
1: + int (* const uevent)(struct kset *, struct kobject *, struct kobj_uevent_env *);
1: +};
1: +
1: +struct kernel_param_ops {
1: + unsigned int flags;
1: + int (*set)(const char *, const struct kernel_param *);
1: + int (*get)(char *, const struct kernel_param *);
1: + void (*free)(void *);
1: +};
1: +
1: +struct kparam_string;
1: +
1: +struct kparam_array;
1: +
1: +struct kernel_param {
1: + const char *name;
1: + struct module *mod;
1: + const struct kernel_param_ops *ops;
1: + const u16 perm;
1: + s8 level;
1: + u8 flags;
1: + union {
1: + void *arg;
1: + const struct kparam_string *str;
1: + const struct kparam_array *arr;
1: + };
1: +};
1: +
1: +struct kparam_string {
1: + unsigned int maxlen;
1: + char *string;
1: +};
1: +
1: +struct kparam_array {
1: + unsigned int max;
1: + unsigned int elemsize;
1: + unsigned int *num;
1: + const struct kernel_param_ops *ops;
1: + void *elem;
1: +};
1: +
1: +struct error_injection_entry {
1: + long unsigned int addr;
1: + int etype;
1: +};
1: +
1: +struct tracepoint_func {
1: + void *func;
1: + void *data;
1: + int prio;
1: +};
1: +
1: +struct static_call_key;
1: +
1: +struct tracepoint {
1: + const char *name;
1: + struct static_key key;
1: + struct static_call_key *static_call_key;
1: + void *static_call_tramp;
1: + void *iterator;
1: + int (*regfunc)();
1: + void (*unregfunc)();
1: + struct tracepoint_func *funcs;
1: +};
1: +
1: +struct static_call_key {
1: + void *func;
1: +};
1: +
1: +struct bpf_raw_event_map {
1: + struct tracepoint *tp;
1: + void *bpf_func;
1: + u32 num_args;
1: + u32 writable_size;
1: + long: 64;
1: +};
1: +
1: +struct plt_entry {
1: + __le32 adrp;
1: + __le32 add;
1: + __le32 br;
1: +};
1: +
1: +struct module_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct module_attribute *, struct module_kobject *, char *);
1: + ssize_t (*store)(struct module_attribute *, struct module_kobject *, const char *, size_t);
1: + void (*setup)(struct module *, const char *);
1: + int (*test)(struct module *);
1: + void (*free)(struct module *);
1: +};
1: +
1: +struct trace_event_functions;
1: +
1: +struct trace_event {
1: + struct hlist_node node;
1: + struct list_head list;
1: + int type;
1: + struct trace_event_functions *funcs;
1: +};
1: +
1: +struct trace_event_class;
1: +
1: +struct trace_event_call {
1: + struct list_head list;
1: + struct trace_event_class *class;
1: + union {
1: + char *name;
1: + struct tracepoint *tp;
1: + };
1: + struct trace_event event;
1: + char *print_fmt;
1: + struct event_filter *filter;
1: + void *mod;
1: + void *data;
1: + int flags;
1: + int perf_refcount;
1: + struct hlist_head *perf_events;
1: + struct bpf_prog_array *prog_array;
1: + int (*perf_perm)(struct trace_event_call *, struct perf_event *);
1: +};
1: +
1: +struct trace_eval_map {
1: + const char *system;
1: + const char *eval_string;
1: + long unsigned int eval_value;
1: +};
1: +
1: +struct linux_binprm {
1: + struct vm_area_struct *vma;
1: + long unsigned int vma_pages;
1: + struct mm_struct *mm;
1: + long unsigned int p;
1: + long unsigned int argmin;
1: + unsigned int have_execfd: 1;
1: + unsigned int execfd_creds: 1;
1: + unsigned int secureexec: 1;
1: + unsigned int point_of_no_return: 1;
1: + struct file *executable;
1: + struct file *interpreter;
1: + struct file *file;
1: + struct cred *cred;
1: + int unsafe;
1: + unsigned int per_clear;
1: + int argc;
1: + int envc;
1: + const char *filename;
1: + const char *interp;
1: + const char *fdpath;
1: + unsigned int interp_flags;
1: + int execfd;
1: + long unsigned int loader;
1: + long unsigned int exec;
1: + struct rlimit rlim_stack;
1: + char buf[256];
1: +};
1: +
1: +struct coredump_params {
1: + const kernel_siginfo_t *siginfo;
1: + struct pt_regs *regs;
1: + struct file *file;
1: + long unsigned int limit;
1: + long unsigned int mm_flags;
1: + loff_t written;
1: + loff_t pos;
1: +};
1: +
1: +struct em_perf_state {
1: + long unsigned int frequency;
1: + long unsigned int power;
1: + long unsigned int cost;
1: +};
1: +
1: +struct em_perf_domain {
1: + struct em_perf_state *table;
1: + int nr_perf_states;
1: + long unsigned int cpus[0];
1: +};
1: +
1: +enum dl_dev_state {
1: + DL_DEV_NO_DRIVER = 0,
1: + DL_DEV_PROBING = 1,
1: + DL_DEV_DRIVER_BOUND = 2,
1: + DL_DEV_UNBINDING = 3,
1: +};
1: +
1: +struct dev_links_info {
1: + struct list_head suppliers;
1: + struct list_head consumers;
1: + struct list_head needs_suppliers;
1: + struct list_head defer_hook;
1: + bool need_for_probe;
1: + enum dl_dev_state status;
1: +};
1: +
1: +struct pm_message {
1: + int event;
1: +};
1: +
1: +typedef struct pm_message pm_message_t;
1: +
1: +enum rpm_request {
1: + RPM_REQ_NONE = 0,
1: + RPM_REQ_IDLE = 1,
1: + RPM_REQ_SUSPEND = 2,
1: + RPM_REQ_AUTOSUSPEND = 3,
1: + RPM_REQ_RESUME = 4,
1: +};
1: +
1: +struct wakeup_source;
1: +
1: +struct wake_irq;
1: +
1: +struct pm_subsys_data;
1: +
1: +struct dev_pm_qos;
1: +
1: +struct dev_pm_info {
1: + pm_message_t power_state;
1: + unsigned int can_wakeup: 1;
1: + unsigned int async_suspend: 1;
1: + bool in_dpm_list: 1;
1: + bool is_prepared: 1;
1: + bool is_suspended: 1;
1: + bool is_noirq_suspended: 1;
1: + bool is_late_suspended: 1;
1: + bool no_pm: 1;
1: + bool early_init: 1;
1: + bool direct_complete: 1;
1: + u32 driver_flags;
1: + spinlock_t lock;
1: + struct list_head entry;
1: + struct completion completion;
1: + struct wakeup_source *wakeup;
1: + bool wakeup_path: 1;
1: + bool syscore: 1;
1: + bool no_pm_callbacks: 1;
1: + unsigned int must_resume: 1;
1: + unsigned int may_skip_resume: 1;
1: + struct hrtimer suspend_timer;
1: + u64 timer_expires;
1: + struct work_struct work;
1: + wait_queue_head_t wait_queue;
1: + struct wake_irq *wakeirq;
1: + atomic_t usage_count;
1: + atomic_t child_count;
1: + unsigned int disable_depth: 3;
1: + unsigned int idle_notification: 1;
1: + unsigned int request_pending: 1;
1: + unsigned int deferred_resume: 1;
1: + unsigned int runtime_auto: 1;
1: + bool ignore_children: 1;
1: + unsigned int no_callbacks: 1;
1: + unsigned int irq_safe: 1;
1: + unsigned int use_autosuspend: 1;
1: + unsigned int timer_autosuspends: 1;
1: + unsigned int memalloc_noio: 1;
1: + unsigned int links_count;
1: + enum rpm_request request;
1: + enum rpm_status runtime_status;
1: + int runtime_error;
1: + int autosuspend_delay;
1: + u64 last_busy;
1: + u64 active_time;
1: + u64 suspended_time;
1: + u64 accounting_timestamp;
1: + struct pm_subsys_data *subsys_data;
1: + void (*set_latency_tolerance)(struct device *, s32);
1: + struct dev_pm_qos *qos;
1: +};
1: +
1: +struct dev_archdata {};
1: +
1: +struct device_private;
1: +
1: +struct device_type;
1: +
1: +struct bus_type;
1: +
1: +struct device_driver;
1: +
1: +struct dev_pm_domain;
1: +
1: +struct irq_domain;
1: +
1: +struct dev_pin_info;
1: +
1: +struct dma_map_ops;
1: +
1: +struct bus_dma_region;
1: +
1: +struct device_dma_parameters;
1: +
1: +struct dma_coherent_mem;
1: +
1: +struct cma;
1: +
1: +struct device_node;
1: +
1: +struct fwnode_handle;
1: +
1: +struct class;
1: +
1: +struct iommu_group;
1: +
1: +struct dev_iommu;
1: +
1: +struct device {
1: + struct kobject kobj;
1: + struct device *parent;
1: + struct device_private *p;
1: + const char *init_name;
1: + const struct device_type *type;
1: + struct bus_type *bus;
1: + struct device_driver *driver;
1: + void *platform_data;
1: + void *driver_data;
1: + struct mutex mutex;
1: + struct dev_links_info links;
1: + struct dev_pm_info power;
1: + struct dev_pm_domain *pm_domain;
1: + struct em_perf_domain *em_pd;
1: + struct irq_domain *msi_domain;
1: + struct dev_pin_info *pins;
1: + struct list_head msi_list;
1: + const struct dma_map_ops *dma_ops;
1: + u64 *dma_mask;
1: + u64 coherent_dma_mask;
1: + u64 bus_dma_limit;
1: + const struct bus_dma_region *dma_range_map;
1: + struct device_dma_parameters *dma_parms;
1: + struct list_head dma_pools;
1: + struct dma_coherent_mem *dma_mem;
1: + struct cma *cma_area;
1: + struct dev_archdata archdata;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + int numa_node;
1: + dev_t devt;
1: + u32 id;
1: + spinlock_t devres_lock;
1: + struct list_head devres_head;
1: + struct class *class;
1: + const struct attribute_group **groups;
1: + void (*release)(struct device *);
1: + struct iommu_group *iommu_group;
1: + struct dev_iommu *iommu;
1: + bool offline_disabled: 1;
1: + bool offline: 1;
1: + bool of_node_reused: 1;
1: + bool state_synced: 1;
1: + bool dma_coherent: 1;
1: +};
1: +
1: +struct dev_pm_ops {
1: + int (*prepare)(struct device *);
1: + void (*complete)(struct device *);
1: + int (*suspend)(struct device *);
1: + int (*resume)(struct device *);
1: + int (*freeze)(struct device *);
1: + int (*thaw)(struct device *);
1: + int (*poweroff)(struct device *);
1: + int (*restore)(struct device *);
1: + int (*suspend_late)(struct device *);
1: + int (*resume_early)(struct device *);
1: + int (*freeze_late)(struct device *);
1: + int (*thaw_early)(struct device *);
1: + int (*poweroff_late)(struct device *);
1: + int (*restore_early)(struct device *);
1: + int (*suspend_noirq)(struct device *);
1: + int (*resume_noirq)(struct device *);
1: + int (*freeze_noirq)(struct device *);
1: + int (*thaw_noirq)(struct device *);
1: + int (*poweroff_noirq)(struct device *);
1: + int (*restore_noirq)(struct device *);
1: + int (*runtime_suspend)(struct device *);
1: + int (*runtime_resume)(struct device *);
1: + int (*runtime_idle)(struct device *);
1: +};
1: +
1: +struct pm_domain_data;
1: +
1: +struct pm_subsys_data {
1: + spinlock_t lock;
1: + unsigned int refcount;
1: + struct list_head clock_list;
1: + struct pm_domain_data *domain_data;
1: +};
1: +
1: +struct wakeup_source {
1: + const char *name;
1: + int id;
1: + struct list_head entry;
1: + spinlock_t lock;
1: + struct wake_irq *wakeirq;
1: + struct timer_list timer;
1: + long unsigned int timer_expires;
1: + ktime_t total_time;
1: + ktime_t max_time;
1: + ktime_t last_time;
1: + ktime_t start_prevent_time;
1: + ktime_t prevent_sleep_time;
1: + long unsigned int event_count;
1: + long unsigned int active_count;
1: + long unsigned int relax_count;
1: + long unsigned int expire_count;
1: + long unsigned int wakeup_count;
1: + struct device *dev;
1: + bool active: 1;
1: + bool autosleep_enabled: 1;
1: +};
1: +
1: +struct dev_pm_domain {
1: + struct dev_pm_ops ops;
1: + int (*start)(struct device *);
1: + void (*detach)(struct device *, bool);
1: + int (*activate)(struct device *);
1: + void (*sync)(struct device *);
1: + void (*dismiss)(struct device *);
1: +};
1: +
1: +struct iommu_ops;
1: +
1: +struct subsys_private;
1: +
1: +struct bus_type {
1: + const char *name;
1: + const char *dev_name;
1: + struct device *dev_root;
1: + const struct attribute_group **bus_groups;
1: + const struct attribute_group **dev_groups;
1: + const struct attribute_group **drv_groups;
1: + int (*match)(struct device *, struct device_driver *);
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*online)(struct device *);
1: + int (*offline)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + int (*num_vf)(struct device *);
1: + int (*dma_configure)(struct device *);
1: + const struct dev_pm_ops *pm;
1: + const struct iommu_ops *iommu_ops;
1: + struct subsys_private *p;
1: + struct lock_class_key lock_key;
1: + bool need_parent_lock;
1: +};
1: +
1: +enum probe_type {
1: + PROBE_DEFAULT_STRATEGY = 0,
1: + PROBE_PREFER_ASYNCHRONOUS = 1,
1: + PROBE_FORCE_SYNCHRONOUS = 2,
1: +};
1: +
1: +struct of_device_id;
1: +
1: +struct acpi_device_id;
1: +
1: +struct driver_private;
1: +
1: +struct device_driver {
1: + const char *name;
1: + struct bus_type *bus;
1: + struct module *owner;
1: + const char *mod_name;
1: + bool suppress_bind_attrs;
1: + enum probe_type probe_type;
1: + const struct of_device_id *of_match_table;
1: + const struct acpi_device_id *acpi_match_table;
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + const struct attribute_group **groups;
1: + const struct attribute_group **dev_groups;
1: + const struct dev_pm_ops *pm;
1: + void (*coredump)(struct device *);
1: + struct driver_private *p;
1: +};
1: +
1: +enum iommu_cap {
1: + IOMMU_CAP_CACHE_COHERENCY = 0,
1: + IOMMU_CAP_INTR_REMAP = 1,
1: + IOMMU_CAP_NOEXEC = 2,
1: +};
1: +
1: +enum iommu_attr {
1: + DOMAIN_ATTR_GEOMETRY = 0,
1: + DOMAIN_ATTR_PAGING = 1,
1: + DOMAIN_ATTR_WINDOWS = 2,
1: + DOMAIN_ATTR_FSL_PAMU_STASH = 3,
1: + DOMAIN_ATTR_FSL_PAMU_ENABLE = 4,
1: + DOMAIN_ATTR_FSL_PAMUV1 = 5,
1: + DOMAIN_ATTR_NESTING = 6,
1: + DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE = 7,
1: + DOMAIN_ATTR_MAX = 8,
1: +};
1: +
1: +enum iommu_dev_features {
1: + IOMMU_DEV_FEAT_AUX = 0,
1: + IOMMU_DEV_FEAT_SVA = 1,
1: +};
1: +
1: +struct iommu_domain;
1: +
1: +struct iommu_iotlb_gather;
1: +
1: +struct iommu_device;
1: +
1: +struct iommu_resv_region;
1: +
1: +struct of_phandle_args;
1: +
1: +struct iommu_sva;
1: +
1: +struct iommu_fault_event;
1: +
1: +struct iommu_page_response;
1: +
1: +struct iommu_cache_invalidate_info;
1: +
1: +struct iommu_gpasid_bind_data;
1: +
1: +struct iommu_ops {
1: + bool (*capable)(enum iommu_cap);
1: + struct iommu_domain * (*domain_alloc)(unsigned int);
1: + void (*domain_free)(struct iommu_domain *);
1: + int (*attach_dev)(struct iommu_domain *, struct device *);
1: + void (*detach_dev)(struct iommu_domain *, struct device *);
1: + int (*map)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int, gfp_t);
1: + size_t (*unmap)(struct iommu_domain *, long unsigned int, size_t, struct iommu_iotlb_gather *);
1: + void (*flush_iotlb_all)(struct iommu_domain *);
1: + void (*iotlb_sync_map)(struct iommu_domain *);
1: + void (*iotlb_sync)(struct iommu_domain *, struct iommu_iotlb_gather *);
1: + phys_addr_t (*iova_to_phys)(struct iommu_domain *, dma_addr_t);
1: + struct iommu_device * (*probe_device)(struct device *);
1: + void (*release_device)(struct device *);
1: + void (*probe_finalize)(struct device *);
1: + struct iommu_group * (*device_group)(struct device *);
1: + int (*domain_get_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + int (*domain_set_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + void (*get_resv_regions)(struct device *, struct list_head *);
1: + void (*put_resv_regions)(struct device *, struct list_head *);
1: + void (*apply_resv_region)(struct device *, struct iommu_domain *, struct iommu_resv_region *);
1: + int (*domain_window_enable)(struct iommu_domain *, u32, phys_addr_t, u64, int);
1: + void (*domain_window_disable)(struct iommu_domain *, u32);
1: + int (*of_xlate)(struct device *, struct of_phandle_args *);
1: + bool (*is_attach_deferred)(struct iommu_domain *, struct device *);
1: + bool (*dev_has_feat)(struct device *, enum iommu_dev_features);
1: + bool (*dev_feat_enabled)(struct device *, enum iommu_dev_features);
1: + int (*dev_enable_feat)(struct device *, enum iommu_dev_features);
1: + int (*dev_disable_feat)(struct device *, enum iommu_dev_features);
1: + int (*aux_attach_dev)(struct iommu_domain *, struct device *);
1: + void (*aux_detach_dev)(struct iommu_domain *, struct device *);
1: + int (*aux_get_pasid)(struct iommu_domain *, struct device *);
1: + struct iommu_sva * (*sva_bind)(struct device *, struct mm_struct *, void *);
1: + void (*sva_unbind)(struct iommu_sva *);
1: + u32 (*sva_get_pasid)(struct iommu_sva *);
1: + int (*page_response)(struct device *, struct iommu_fault_event *, struct iommu_page_response *);
1: + int (*cache_invalidate)(struct iommu_domain *, struct device *, struct iommu_cache_invalidate_info *);
1: + int (*sva_bind_gpasid)(struct iommu_domain *, struct device *, struct iommu_gpasid_bind_data *);
1: + int (*sva_unbind_gpasid)(struct device *, u32);
1: + int (*def_domain_type)(struct device *);
1: + long unsigned int pgsize_bitmap;
1: + struct module *owner;
1: +};
1: +
1: +struct device_type {
1: + const char *name;
1: + const struct attribute_group **groups;
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + char * (*devnode)(struct device *, umode_t *, kuid_t *, kgid_t *);
1: + void (*release)(struct device *);
1: + const struct dev_pm_ops *pm;
1: +};
1: +
1: +struct class {
1: + const char *name;
1: + struct module *owner;
1: + const struct attribute_group **class_groups;
1: + const struct attribute_group **dev_groups;
1: + struct kobject *dev_kobj;
1: + int (*dev_uevent)(struct device *, struct kobj_uevent_env *);
1: + char * (*devnode)(struct device *, umode_t *);
1: + void (*class_release)(struct class *);
1: + void (*dev_release)(struct device *);
1: + int (*shutdown_pre)(struct device *);
1: + const struct kobj_ns_type_operations *ns_type;
1: + const void * (*namespace)(struct device *);
1: + void (*get_ownership)(struct device *, kuid_t *, kgid_t *);
1: + const struct dev_pm_ops *pm;
1: + struct subsys_private *p;
1: +};
1: +
1: +struct of_device_id {
1: + char name[32];
1: + char type[32];
1: + char compatible[128];
1: + const void *data;
1: +};
1: +
1: +typedef long unsigned int kernel_ulong_t;
1: +
1: +struct acpi_device_id {
1: + __u8 id[9];
1: + kernel_ulong_t driver_data;
1: + __u32 cls;
1: + __u32 cls_msk;
1: +};
1: +
1: +struct device_dma_parameters {
1: + unsigned int max_segment_size;
1: + long unsigned int segment_boundary_mask;
1: +};
1: +
1: +enum irq_domain_bus_token {
1: + DOMAIN_BUS_ANY = 0,
1: + DOMAIN_BUS_WIRED = 1,
1: + DOMAIN_BUS_GENERIC_MSI = 2,
1: + DOMAIN_BUS_PCI_MSI = 3,
1: + DOMAIN_BUS_PLATFORM_MSI = 4,
1: + DOMAIN_BUS_NEXUS = 5,
1: + DOMAIN_BUS_IPI = 6,
1: + DOMAIN_BUS_FSL_MC_MSI = 7,
1: + DOMAIN_BUS_TI_SCI_INTA_MSI = 8,
1: + DOMAIN_BUS_WAKEUP = 9,
1: + DOMAIN_BUS_VMD_MSI = 10,
1: +};
1: +
1: +struct irq_domain_ops;
1: +
1: +struct irq_domain_chip_generic;
1: +
1: +struct irq_domain {
1: + struct list_head link;
1: + const char *name;
1: + const struct irq_domain_ops *ops;
1: + void *host_data;
1: + unsigned int flags;
1: + unsigned int mapcount;
1: + struct fwnode_handle *fwnode;
1: + enum irq_domain_bus_token bus_token;
1: + struct irq_domain_chip_generic *gc;
1: + struct irq_domain *parent;
1: + irq_hw_number_t hwirq_max;
1: + unsigned int revmap_direct_max_irq;
1: + unsigned int revmap_size;
1: + struct xarray revmap_tree;
1: + struct mutex revmap_tree_mutex;
1: + unsigned int linear_revmap[0];
1: +};
1: +
1: +enum dma_data_direction {
1: + DMA_BIDIRECTIONAL = 0,
1: + DMA_TO_DEVICE = 1,
1: + DMA_FROM_DEVICE = 2,
1: + DMA_NONE = 3,
1: +};
1: +
1: +struct sg_table;
1: +
1: +struct scatterlist;
1: +
1: +struct dma_map_ops {
1: + void * (*alloc)(struct device *, size_t, dma_addr_t *, gfp_t, long unsigned int);
1: + void (*free)(struct device *, size_t, void *, dma_addr_t, long unsigned int);
1: + struct page * (*alloc_pages)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: + void (*free_pages)(struct device *, size_t, struct page *, dma_addr_t, enum dma_data_direction);
1: + void * (*alloc_noncoherent)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: + void (*free_noncoherent)(struct device *, size_t, void *, dma_addr_t, enum dma_data_direction);
1: + int (*mmap)(struct device *, struct vm_area_struct *, void *, dma_addr_t, size_t, long unsigned int);
1: + int (*get_sgtable)(struct device *, struct sg_table *, void *, dma_addr_t, size_t, long unsigned int);
1: + dma_addr_t (*map_page)(struct device *, struct page *, long unsigned int, size_t, enum dma_data_direction, long unsigned int);
1: + void (*unmap_page)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + int (*map_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: + void (*unmap_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: + dma_addr_t (*map_resource)(struct device *, phys_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + void (*unmap_resource)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + void (*sync_single_for_cpu)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: + void (*sync_single_for_device)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: + void (*sync_sg_for_cpu)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: + void (*sync_sg_for_device)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: + void (*cache_sync)(struct device *, void *, size_t, enum dma_data_direction);
1: + int (*dma_supported)(struct device *, u64);
1: + u64 (*get_required_mask)(struct device *);
1: + size_t (*max_mapping_size)(struct device *);
1: + long unsigned int (*get_merge_boundary)(struct device *);
1: +};
1: +
1: +struct bus_dma_region {
1: + phys_addr_t cpu_start;
1: + dma_addr_t dma_start;
1: + u64 size;
1: + u64 offset;
1: +};
1: +
1: +typedef u32 phandle;
1: +
1: +struct fwnode_operations;
1: +
1: +struct fwnode_handle {
1: + struct fwnode_handle *secondary;
1: + const struct fwnode_operations *ops;
1: + struct device *dev;
1: +};
1: +
1: +struct property;
1: +
1: +struct device_node {
1: + const char *name;
1: + phandle phandle;
1: + const char *full_name;
1: + struct fwnode_handle fwnode;
1: + struct property *properties;
1: + struct property *deadprops;
1: + struct device_node *parent;
1: + struct device_node *child;
1: + struct device_node *sibling;
1: + struct kobject kobj;
1: + long unsigned int _flags;
1: + void *data;
1: +};
1: +
1: +enum cpuhp_state {
1: + CPUHP_INVALID = 4294967295,
1: + CPUHP_OFFLINE = 0,
1: + CPUHP_CREATE_THREADS = 1,
1: + CPUHP_PERF_PREPARE = 2,
1: + CPUHP_PERF_X86_PREPARE = 3,
1: + CPUHP_PERF_X86_AMD_UNCORE_PREP = 4,
1: + CPUHP_PERF_POWER = 5,
1: + CPUHP_PERF_SUPERH = 6,
1: + CPUHP_X86_HPET_DEAD = 7,
1: + CPUHP_X86_APB_DEAD = 8,
1: + CPUHP_X86_MCE_DEAD = 9,
1: + CPUHP_VIRT_NET_DEAD = 10,
1: + CPUHP_SLUB_DEAD = 11,
1: + CPUHP_DEBUG_OBJ_DEAD = 12,
1: + CPUHP_MM_WRITEBACK_DEAD = 13,
1: + CPUHP_MM_VMSTAT_DEAD = 14,
1: + CPUHP_SOFTIRQ_DEAD = 15,
1: + CPUHP_NET_MVNETA_DEAD = 16,
1: + CPUHP_CPUIDLE_DEAD = 17,
1: + CPUHP_ARM64_FPSIMD_DEAD = 18,
1: + CPUHP_ARM_OMAP_WAKE_DEAD = 19,
1: + CPUHP_IRQ_POLL_DEAD = 20,
1: + CPUHP_BLOCK_SOFTIRQ_DEAD = 21,
1: + CPUHP_ACPI_CPUDRV_DEAD = 22,
1: + CPUHP_S390_PFAULT_DEAD = 23,
1: + CPUHP_BLK_MQ_DEAD = 24,
1: + CPUHP_FS_BUFF_DEAD = 25,
1: + CPUHP_PRINTK_DEAD = 26,
1: + CPUHP_MM_MEMCQ_DEAD = 27,
1: + CPUHP_PERCPU_CNT_DEAD = 28,
1: + CPUHP_RADIX_DEAD = 29,
1: + CPUHP_PAGE_ALLOC_DEAD = 30,
1: + CPUHP_NET_DEV_DEAD = 31,
1: + CPUHP_PCI_XGENE_DEAD = 32,
1: + CPUHP_IOMMU_INTEL_DEAD = 33,
1: + CPUHP_LUSTRE_CFS_DEAD = 34,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DEAD = 35,
1: + CPUHP_PADATA_DEAD = 36,
1: + CPUHP_WORKQUEUE_PREP = 37,
1: + CPUHP_POWER_NUMA_PREPARE = 38,
1: + CPUHP_HRTIMERS_PREPARE = 39,
1: + CPUHP_PROFILE_PREPARE = 40,
1: + CPUHP_X2APIC_PREPARE = 41,
1: + CPUHP_SMPCFD_PREPARE = 42,
1: + CPUHP_RELAY_PREPARE = 43,
1: + CPUHP_SLAB_PREPARE = 44,
1: + CPUHP_MD_RAID5_PREPARE = 45,
1: + CPUHP_RCUTREE_PREP = 46,
1: + CPUHP_CPUIDLE_COUPLED_PREPARE = 47,
1: + CPUHP_POWERPC_PMAC_PREPARE = 48,
1: + CPUHP_POWERPC_MMU_CTX_PREPARE = 49,
1: + CPUHP_XEN_PREPARE = 50,
1: + CPUHP_XEN_EVTCHN_PREPARE = 51,
1: + CPUHP_ARM_SHMOBILE_SCU_PREPARE = 52,
1: + CPUHP_SH_SH3X_PREPARE = 53,
1: + CPUHP_NET_FLOW_PREPARE = 54,
1: + CPUHP_TOPOLOGY_PREPARE = 55,
1: + CPUHP_NET_IUCV_PREPARE = 56,
1: + CPUHP_ARM_BL_PREPARE = 57,
1: + CPUHP_TRACE_RB_PREPARE = 58,
1: + CPUHP_MM_ZS_PREPARE = 59,
1: + CPUHP_MM_ZSWP_MEM_PREPARE = 60,
1: + CPUHP_MM_ZSWP_POOL_PREPARE = 61,
1: + CPUHP_KVM_PPC_BOOK3S_PREPARE = 62,
1: + CPUHP_ZCOMP_PREPARE = 63,
1: + CPUHP_TIMERS_PREPARE = 64,
1: + CPUHP_MIPS_SOC_PREPARE = 65,
1: + CPUHP_BP_PREPARE_DYN = 66,
1: + CPUHP_BP_PREPARE_DYN_END = 86,
1: + CPUHP_BRINGUP_CPU = 87,
1: + CPUHP_AP_IDLE_DEAD = 88,
1: + CPUHP_AP_OFFLINE = 89,
1: + CPUHP_AP_SCHED_STARTING = 90,
1: + CPUHP_AP_RCUTREE_DYING = 91,
1: + CPUHP_AP_CPU_PM_STARTING = 92,
1: + CPUHP_AP_IRQ_GIC_STARTING = 93,
1: + CPUHP_AP_IRQ_HIP04_STARTING = 94,
1: + CPUHP_AP_IRQ_ARMADA_XP_STARTING = 95,
1: + CPUHP_AP_IRQ_BCM2836_STARTING = 96,
1: + CPUHP_AP_IRQ_MIPS_GIC_STARTING = 97,
1: + CPUHP_AP_IRQ_RISCV_STARTING = 98,
1: + CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING = 99,
1: + CPUHP_AP_ARM_MVEBU_COHERENCY = 100,
1: + CPUHP_AP_MICROCODE_LOADER = 101,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING = 102,
1: + CPUHP_AP_PERF_X86_STARTING = 103,
1: + CPUHP_AP_PERF_X86_AMD_IBS_STARTING = 104,
1: + CPUHP_AP_PERF_X86_CQM_STARTING = 105,
1: + CPUHP_AP_PERF_X86_CSTATE_STARTING = 106,
1: + CPUHP_AP_PERF_XTENSA_STARTING = 107,
1: + CPUHP_AP_MIPS_OP_LOONGSON3_STARTING = 108,
1: + CPUHP_AP_ARM_SDEI_STARTING = 109,
1: + CPUHP_AP_ARM_VFP_STARTING = 110,
1: + CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING = 111,
1: + CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING = 112,
1: + CPUHP_AP_PERF_ARM_ACPI_STARTING = 113,
1: + CPUHP_AP_PERF_ARM_STARTING = 114,
1: + CPUHP_AP_ARM_L2X0_STARTING = 115,
1: + CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING = 116,
1: + CPUHP_AP_ARM_ARCH_TIMER_STARTING = 117,
1: + CPUHP_AP_ARM_GLOBAL_TIMER_STARTING = 118,
1: + CPUHP_AP_JCORE_TIMER_STARTING = 119,
1: + CPUHP_AP_ARM_TWD_STARTING = 120,
1: + CPUHP_AP_QCOM_TIMER_STARTING = 121,
1: + CPUHP_AP_TEGRA_TIMER_STARTING = 122,
1: + CPUHP_AP_ARMADA_TIMER_STARTING = 123,
1: + CPUHP_AP_MARCO_TIMER_STARTING = 124,
1: + CPUHP_AP_MIPS_GIC_TIMER_STARTING = 125,
1: + CPUHP_AP_ARC_TIMER_STARTING = 126,
1: + CPUHP_AP_RISCV_TIMER_STARTING = 127,
1: + CPUHP_AP_CLINT_TIMER_STARTING = 128,
1: + CPUHP_AP_CSKY_TIMER_STARTING = 129,
1: + CPUHP_AP_HYPERV_TIMER_STARTING = 130,
1: + CPUHP_AP_KVM_STARTING = 131,
1: + CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING = 132,
1: + CPUHP_AP_KVM_ARM_VGIC_STARTING = 133,
1: + CPUHP_AP_KVM_ARM_TIMER_STARTING = 134,
1: + CPUHP_AP_DUMMY_TIMER_STARTING = 135,
1: + CPUHP_AP_ARM_XEN_STARTING = 136,
1: + CPUHP_AP_ARM_CORESIGHT_STARTING = 137,
1: + CPUHP_AP_ARM_CORESIGHT_CTI_STARTING = 138,
1: + CPUHP_AP_ARM64_ISNDEP_STARTING = 139,
1: + CPUHP_AP_SMPCFD_DYING = 140,
1: + CPUHP_AP_X86_TBOOT_DYING = 141,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DYING = 142,
1: + CPUHP_AP_ONLINE = 143,
1: + CPUHP_TEARDOWN_CPU = 144,
1: + CPUHP_AP_ONLINE_IDLE = 145,
1: + CPUHP_AP_SMPBOOT_THREADS = 146,
1: + CPUHP_AP_X86_VDSO_VMA_ONLINE = 147,
1: + CPUHP_AP_IRQ_AFFINITY_ONLINE = 148,
1: + CPUHP_AP_BLK_MQ_ONLINE = 149,
1: + CPUHP_AP_ARM_MVEBU_SYNC_CLOCKS = 150,
1: + CPUHP_AP_X86_INTEL_EPB_ONLINE = 151,
1: + CPUHP_AP_PERF_ONLINE = 152,
1: + CPUHP_AP_PERF_X86_ONLINE = 153,
1: + CPUHP_AP_PERF_X86_UNCORE_ONLINE = 154,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE = 155,
1: + CPUHP_AP_PERF_X86_AMD_POWER_ONLINE = 156,
1: + CPUHP_AP_PERF_X86_RAPL_ONLINE = 157,
1: + CPUHP_AP_PERF_X86_CQM_ONLINE = 158,
1: + CPUHP_AP_PERF_X86_CSTATE_ONLINE = 159,
1: + CPUHP_AP_PERF_S390_CF_ONLINE = 160,
1: + CPUHP_AP_PERF_S390_SF_ONLINE = 161,
1: + CPUHP_AP_PERF_ARM_CCI_ONLINE = 162,
1: + CPUHP_AP_PERF_ARM_CCN_ONLINE = 163,
1: + CPUHP_AP_PERF_ARM_HISI_DDRC_ONLINE = 164,
1: + CPUHP_AP_PERF_ARM_HISI_HHA_ONLINE = 165,
1: + CPUHP_AP_PERF_ARM_HISI_L3_ONLINE = 166,
1: + CPUHP_AP_PERF_ARM_L2X0_ONLINE = 167,
1: + CPUHP_AP_PERF_ARM_QCOM_L2_ONLINE = 168,
1: + CPUHP_AP_PERF_ARM_QCOM_L3_ONLINE = 169,
1: + CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE = 170,
1: + CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE = 171,
1: + CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE = 172,
1: + CPUHP_AP_PERF_POWERPC_CORE_IMC_ONLINE = 173,
1: + CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE = 174,
1: + CPUHP_AP_PERF_POWERPC_TRACE_IMC_ONLINE = 175,
1: + CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE = 176,
1: + CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE = 177,
1: + CPUHP_AP_WATCHDOG_ONLINE = 178,
1: + CPUHP_AP_WORKQUEUE_ONLINE = 179,
1: + CPUHP_AP_RCUTREE_ONLINE = 180,
1: + CPUHP_AP_BASE_CACHEINFO_ONLINE = 181,
1: + CPUHP_AP_ONLINE_DYN = 182,
1: + CPUHP_AP_ONLINE_DYN_END = 212,
1: + CPUHP_AP_X86_HPET_ONLINE = 213,
1: + CPUHP_AP_X86_KVM_CLK_ONLINE = 214,
1: + CPUHP_AP_ACTIVE = 215,
1: + CPUHP_ONLINE = 216,
1: +};
1: +
1: +typedef void percpu_ref_func_t(struct percpu_ref *);
1: +
1: +struct percpu_ref_data {
1: + atomic_long_t count;
1: + percpu_ref_func_t *release;
1: + percpu_ref_func_t *confirm_switch;
1: + bool force_atomic: 1;
1: + bool allow_reinit: 1;
1: + struct callback_head rcu;
1: + struct percpu_ref *ref;
1: +};
1: +
1: +struct dev_pagemap_ops {
1: + void (*page_free)(struct page *);
1: + void (*kill)(struct dev_pagemap *);
1: + void (*cleanup)(struct dev_pagemap *);
1: + vm_fault_t (*migrate_to_ram)(struct vm_fault *);
1: +};
1: +
1: +enum vm_event_item {
1: + PGPGIN = 0,
1: + PGPGOUT = 1,
1: + PSWPIN = 2,
1: + PSWPOUT = 3,
1: + PGALLOC_DMA = 4,
1: + PGALLOC_DMA32 = 5,
1: + PGALLOC_NORMAL = 6,
1: + PGALLOC_MOVABLE = 7,
1: + ALLOCSTALL_DMA = 8,
1: + ALLOCSTALL_DMA32 = 9,
1: + ALLOCSTALL_NORMAL = 10,
1: + ALLOCSTALL_MOVABLE = 11,
1: + PGSCAN_SKIP_DMA = 12,
1: + PGSCAN_SKIP_DMA32 = 13,
1: + PGSCAN_SKIP_NORMAL = 14,
1: + PGSCAN_SKIP_MOVABLE = 15,
1: + PGFREE = 16,
1: + PGACTIVATE = 17,
1: + PGDEACTIVATE = 18,
1: + PGLAZYFREE = 19,
1: + PGFAULT = 20,
1: + PGMAJFAULT = 21,
1: + PGLAZYFREED = 22,
1: + PGREFILL = 23,
1: + PGREUSE = 24,
1: + PGSTEAL_KSWAPD = 25,
1: + PGSTEAL_DIRECT = 26,
1: + PGSCAN_KSWAPD = 27,
1: + PGSCAN_DIRECT = 28,
1: + PGSCAN_DIRECT_THROTTLE = 29,
1: + PGSCAN_ANON = 30,
1: + PGSCAN_FILE = 31,
1: + PGSTEAL_ANON = 32,
1: + PGSTEAL_FILE = 33,
1: + PGSCAN_ZONE_RECLAIM_FAILED = 34,
1: + PGINODESTEAL = 35,
1: + SLABS_SCANNED = 36,
1: + KSWAPD_INODESTEAL = 37,
1: + KSWAPD_LOW_WMARK_HIT_QUICKLY = 38,
1: + KSWAPD_HIGH_WMARK_HIT_QUICKLY = 39,
1: + PAGEOUTRUN = 40,
1: + PGROTATED = 41,
1: + DROP_PAGECACHE = 42,
1: + DROP_SLAB = 43,
1: + OOM_KILL = 44,
1: + NUMA_PTE_UPDATES = 45,
1: + NUMA_HUGE_PTE_UPDATES = 46,
1: + NUMA_HINT_FAULTS = 47,
1: + NUMA_HINT_FAULTS_LOCAL = 48,
1: + NUMA_PAGE_MIGRATE = 49,
1: + PGMIGRATE_SUCCESS = 50,
1: + PGMIGRATE_FAIL = 51,
1: + THP_MIGRATION_SUCCESS = 52,
1: + THP_MIGRATION_FAIL = 53,
1: + THP_MIGRATION_SPLIT = 54,
1: + COMPACTMIGRATE_SCANNED = 55,
1: + COMPACTFREE_SCANNED = 56,
1: + COMPACTISOLATED = 57,
1: + COMPACTSTALL = 58,
1: + COMPACTFAIL = 59,
1: + COMPACTSUCCESS = 60,
1: + KCOMPACTD_WAKE = 61,
1: + KCOMPACTD_MIGRATE_SCANNED = 62,
1: + KCOMPACTD_FREE_SCANNED = 63,
1: + HTLB_BUDDY_PGALLOC = 64,
1: + HTLB_BUDDY_PGALLOC_FAIL = 65,
1: + UNEVICTABLE_PGCULLED = 66,
1: + UNEVICTABLE_PGSCANNED = 67,
1: + UNEVICTABLE_PGRESCUED = 68,
1: + UNEVICTABLE_PGMLOCKED = 69,
1: + UNEVICTABLE_PGMUNLOCKED = 70,
1: + UNEVICTABLE_PGCLEARED = 71,
1: + UNEVICTABLE_PGSTRANDED = 72,
1: + THP_FAULT_ALLOC = 73,
1: + THP_FAULT_FALLBACK = 74,
1: + THP_FAULT_FALLBACK_CHARGE = 75,
1: + THP_COLLAPSE_ALLOC = 76,
1: + THP_COLLAPSE_ALLOC_FAILED = 77,
1: + THP_FILE_ALLOC = 78,
1: + THP_FILE_FALLBACK = 79,
1: + THP_FILE_FALLBACK_CHARGE = 80,
1: + THP_FILE_MAPPED = 81,
1: + THP_SPLIT_PAGE = 82,
1: + THP_SPLIT_PAGE_FAILED = 83,
1: + THP_DEFERRED_SPLIT_PAGE = 84,
1: + THP_SPLIT_PMD = 85,
1: + THP_ZERO_PAGE_ALLOC = 86,
1: + THP_ZERO_PAGE_ALLOC_FAILED = 87,
1: + THP_SWPOUT = 88,
1: + THP_SWPOUT_FALLBACK = 89,
1: + BALLOON_INFLATE = 90,
1: + BALLOON_DEFLATE = 91,
1: + BALLOON_MIGRATE = 92,
1: + SWAP_RA = 93,
1: + SWAP_RA_HIT = 94,
1: + NR_VM_EVENT_ITEMS = 95,
1: +};
1: +
1: +struct seq_operations {
1: + void * (*start)(struct seq_file *, loff_t *);
1: + void (*stop)(struct seq_file *, void *);
1: + void * (*next)(struct seq_file *, void *, loff_t *);
1: + int (*show)(struct seq_file *, void *);
1: +};
1: +
1: +struct ring_buffer_event {
1: + u32 type_len: 5;
1: + u32 time_delta: 27;
1: + u32 array[0];
1: +};
1: +
1: +struct seq_buf {
1: + char *buffer;
1: + size_t size;
1: + size_t len;
1: + loff_t readpos;
1: +};
1: +
1: +struct trace_seq {
1: + char buffer[4096];
1: + struct seq_buf seq;
1: + int full;
1: +};
1: +
1: +enum perf_sw_ids {
1: + PERF_COUNT_SW_CPU_CLOCK = 0,
1: + PERF_COUNT_SW_TASK_CLOCK = 1,
1: + PERF_COUNT_SW_PAGE_FAULTS = 2,
1: + PERF_COUNT_SW_CONTEXT_SWITCHES = 3,
1: + PERF_COUNT_SW_CPU_MIGRATIONS = 4,
1: + PERF_COUNT_SW_PAGE_FAULTS_MIN = 5,
1: + PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6,
1: + PERF_COUNT_SW_ALIGNMENT_FAULTS = 7,
1: + PERF_COUNT_SW_EMULATION_FAULTS = 8,
1: + PERF_COUNT_SW_DUMMY = 9,
1: + PERF_COUNT_SW_BPF_OUTPUT = 10,
1: + PERF_COUNT_SW_MAX = 11,
1: +};
1: +
1: +union perf_mem_data_src {
1: + __u64 val;
1: + struct {
1: + __u64 mem_op: 5;
1: + __u64 mem_lvl: 14;
1: + __u64 mem_snoop: 5;
1: + __u64 mem_lock: 2;
1: + __u64 mem_dtlb: 7;
1: + __u64 mem_lvl_num: 4;
1: + __u64 mem_remote: 1;
1: + __u64 mem_snoopx: 2;
1: + __u64 mem_rsvd: 24;
1: + };
1: +};
1: +
1: +struct perf_branch_entry {
1: + __u64 from;
1: + __u64 to;
1: + __u64 mispred: 1;
1: + __u64 predicted: 1;
1: + __u64 in_tx: 1;
1: + __u64 abort: 1;
1: + __u64 cycles: 16;
1: + __u64 type: 4;
1: + __u64 reserved: 40;
1: +};
1: +
1: +struct new_utsname {
1: + char sysname[65];
1: + char nodename[65];
1: + char release[65];
1: + char version[65];
1: + char machine[65];
1: + char domainname[65];
1: +};
1: +
1: +struct uts_namespace {
1: + struct kref kref;
1: + struct new_utsname name;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: +};
1: +
1: +struct cgroup_namespace {
1: + refcount_t count;
1: + struct ns_common ns;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct css_set *root_cset;
1: +};
1: +
1: +struct nsset {
1: + unsigned int flags;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + const struct cred *cred;
1: +};
1: +
1: +struct proc_ns_operations {
1: + const char *name;
1: + const char *real_ns_name;
1: + int type;
1: + struct ns_common * (*get)(struct task_struct *);
1: + void (*put)(struct ns_common *);
1: + int (*install)(struct nsset *, struct ns_common *);
1: + struct user_namespace * (*owner)(struct ns_common *);
1: + struct ns_common * (*get_parent)(struct ns_common *);
1: +};
1: +
1: +struct ucounts {
1: + struct hlist_node node;
1: + struct user_namespace *ns;
1: + kuid_t uid;
1: + int count;
1: + atomic_t ucount[10];
1: +};
1: +
1: +struct iovec {
1: + void *iov_base;
1: + __kernel_size_t iov_len;
1: +};
1: +
1: +struct kvec {
1: + void *iov_base;
1: + size_t iov_len;
1: +};
1: +
1: +struct perf_regs {
1: + __u64 abi;
1: + struct pt_regs *regs;
1: +};
1: +
1: +struct u64_stats_sync {};
1: +
1: +struct bpf_cgroup_storage_key {
1: + __u64 cgroup_inode_id;
1: + __u32 attach_type;
1: +};
1: +
1: +struct bpf_cgroup_storage;
1: +
1: +struct bpf_prog_array_item {
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_storage *cgroup_storage[2];
1: +};
1: +
1: +struct bpf_storage_buffer;
1: +
1: +struct bpf_cgroup_storage_map;
1: +
1: +struct bpf_cgroup_storage {
1: + union {
1: + struct bpf_storage_buffer *buf;
1: + void *percpu_buf;
1: + };
1: + struct bpf_cgroup_storage_map *map;
1: + struct bpf_cgroup_storage_key key;
1: + struct list_head list_map;
1: + struct list_head list_cg;
1: + struct rb_node node;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct bpf_prog_array {
1: + struct callback_head rcu;
1: + struct bpf_prog_array_item items[0];
1: +};
1: +
1: +struct bpf_storage_buffer {
1: + struct callback_head rcu;
1: + char data[0];
1: +};
1: +
1: +struct psi_group_cpu {
1: + seqcount_t seq;
1: + unsigned int tasks[4];
1: + u32 state_mask;
1: + u32 times[6];
1: + u64 state_start;
1: + long: 64;
1: + u32 times_prev[12];
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cgroup_taskset;
1: +
1: +struct cftype;
1: +
1: +struct cgroup_subsys {
1: + struct cgroup_subsys_state * (*css_alloc)(struct cgroup_subsys_state *);
1: + int (*css_online)(struct cgroup_subsys_state *);
1: + void (*css_offline)(struct cgroup_subsys_state *);
1: + void (*css_released)(struct cgroup_subsys_state *);
1: + void (*css_free)(struct cgroup_subsys_state *);
1: + void (*css_reset)(struct cgroup_subsys_state *);
1: + void (*css_rstat_flush)(struct cgroup_subsys_state *, int);
1: + int (*css_extra_stat_show)(struct seq_file *, struct cgroup_subsys_state *);
1: + int (*can_attach)(struct cgroup_taskset *);
1: + void (*cancel_attach)(struct cgroup_taskset *);
1: + void (*attach)(struct cgroup_taskset *);
1: + void (*post_attach)();
1: + int (*can_fork)(struct task_struct *, struct css_set *);
1: + void (*cancel_fork)(struct task_struct *, struct css_set *);
1: + void (*fork)(struct task_struct *);
1: + void (*exit)(struct task_struct *);
1: + void (*release)(struct task_struct *);
1: + void (*bind)(struct cgroup_subsys_state *);
1: + bool early_init: 1;
1: + bool implicit_on_dfl: 1;
1: + bool threaded: 1;
1: + bool broken_hierarchy: 1;
1: + bool warned_broken_hierarchy: 1;
1: + int id;
1: + const char *name;
1: + const char *legacy_name;
1: + struct cgroup_root *root;
1: + struct idr css_idr;
1: + struct list_head cfts;
1: + struct cftype *dfl_cftypes;
1: + struct cftype *legacy_cftypes;
1: + unsigned int depends_on;
1: +};
1: +
1: +struct cgroup_rstat_cpu {
1: + struct u64_stats_sync bsync;
1: + struct cgroup_base_stat bstat;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup *updated_children;
1: + struct cgroup *updated_next;
1: +};
1: +
1: +struct cgroup_root {
1: + struct kernfs_root *kf_root;
1: + unsigned int subsys_mask;
1: + int hierarchy_id;
1: + struct cgroup cgrp;
1: + u64 cgrp_ancestor_id_storage;
1: + atomic_t nr_cgrps;
1: + struct list_head root_list;
1: + unsigned int flags;
1: + char release_agent_path[4096];
1: + char name[64];
1: +};
1: +
1: +struct cftype {
1: + char name[64];
1: + long unsigned int private;
1: + size_t max_write_len;
1: + unsigned int flags;
1: + unsigned int file_offset;
1: + struct cgroup_subsys *ss;
1: + struct list_head node;
1: + struct kernfs_ops *kf_ops;
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + u64 (*read_u64)(struct cgroup_subsys_state *, struct cftype *);
1: + s64 (*read_s64)(struct cgroup_subsys_state *, struct cftype *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void * (*seq_start)(struct seq_file *, loff_t *);
1: + void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + int (*write_u64)(struct cgroup_subsys_state *, struct cftype *, u64);
1: + int (*write_s64)(struct cgroup_subsys_state *, struct cftype *, s64);
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: +};
1: +
1: +enum kmalloc_cache_type {
1: + KMALLOC_NORMAL = 0,
1: + KMALLOC_RECLAIM = 1,
1: + KMALLOC_DMA = 2,
1: + NR_KMALLOC_TYPES = 3,
1: +};
1: +
1: +struct perf_callchain_entry {
1: + __u64 nr;
1: + __u64 ip[0];
1: +};
1: +
1: +typedef long unsigned int (*perf_copy_f)(void *, const void *, long unsigned int, long unsigned int);
1: +
1: +struct perf_raw_frag {
1: + union {
1: + struct perf_raw_frag *next;
1: + long unsigned int pad;
1: + };
1: + perf_copy_f copy;
1: + void *data;
1: + u32 size;
1: +} __attribute__((packed));
1: +
1: +struct perf_raw_record {
1: + struct perf_raw_frag frag;
1: + u32 size;
1: +};
1: +
1: +struct perf_branch_stack {
1: + __u64 nr;
1: + __u64 hw_idx;
1: + struct perf_branch_entry entries[0];
1: +};
1: +
1: +struct perf_cpu_context;
1: +
1: +struct perf_output_handle;
1: +
1: +struct pmu {
1: + struct list_head entry;
1: + struct module *module;
1: + struct device *dev;
1: + const struct attribute_group **attr_groups;
1: + const struct attribute_group **attr_update;
1: + const char *name;
1: + int type;
1: + int capabilities;
1: + int *pmu_disable_count;
1: + struct perf_cpu_context *pmu_cpu_context;
1: + atomic_t exclusive_cnt;
1: + int task_ctx_nr;
1: + int hrtimer_interval_ms;
1: + unsigned int nr_addr_filters;
1: + void (*pmu_enable)(struct pmu *);
1: + void (*pmu_disable)(struct pmu *);
1: + int (*event_init)(struct perf_event *);
1: + void (*event_mapped)(struct perf_event *, struct mm_struct *);
1: + void (*event_unmapped)(struct perf_event *, struct mm_struct *);
1: + int (*add)(struct perf_event *, int);
1: + void (*del)(struct perf_event *, int);
1: + void (*start)(struct perf_event *, int);
1: + void (*stop)(struct perf_event *, int);
1: + void (*read)(struct perf_event *);
1: + void (*start_txn)(struct pmu *, unsigned int);
1: + int (*commit_txn)(struct pmu *);
1: + void (*cancel_txn)(struct pmu *);
1: + int (*event_idx)(struct perf_event *);
1: + void (*sched_task)(struct perf_event_context *, bool);
1: + struct kmem_cache *task_ctx_cache;
1: + void (*swap_task_ctx)(struct perf_event_context *, struct perf_event_context *);
1: + void * (*setup_aux)(struct perf_event *, void **, int, bool);
1: + void (*free_aux)(void *);
1: + long int (*snapshot_aux)(struct perf_event *, struct perf_output_handle *, long unsigned int);
1: + int (*addr_filters_validate)(struct list_head *);
1: + void (*addr_filters_sync)(struct perf_event *);
1: + int (*aux_output_match)(struct perf_event *);
1: + int (*filter_match)(struct perf_event *);
1: + int (*check_period)(struct perf_event *, u64);
1: +};
1: +
1: +struct perf_cpu_context {
1: + struct perf_event_context ctx;
1: + struct perf_event_context *task_ctx;
1: + int active_oncpu;
1: + int exclusive;
1: + raw_spinlock_t hrtimer_lock;
1: + struct hrtimer hrtimer;
1: + ktime_t hrtimer_interval;
1: + unsigned int hrtimer_active;
1: + struct perf_cgroup *cgrp;
1: + struct list_head cgrp_cpuctx_entry;
1: + int sched_cb_usage;
1: + int online;
1: + int heap_size;
1: + struct perf_event **heap;
1: + struct perf_event *heap_default[2];
1: +};
1: +
1: +struct perf_output_handle {
1: + struct perf_event *event;
1: + struct perf_buffer *rb;
1: + long unsigned int wakeup;
1: + long unsigned int size;
1: + u64 aux_flags;
1: + union {
1: + void *addr;
1: + long unsigned int head;
1: + };
1: + int page;
1: +};
1: +
1: +struct perf_addr_filter_range {
1: + long unsigned int start;
1: + long unsigned int size;
1: +};
1: +
1: +struct perf_sample_data {
1: + u64 addr;
1: + struct perf_raw_record *raw;
1: + struct perf_branch_stack *br_stack;
1: + u64 period;
1: + u64 weight;
1: + u64 txn;
1: + union perf_mem_data_src data_src;
1: + u64 type;
1: + u64 ip;
1: + struct {
1: + u32 pid;
1: + u32 tid;
1: + } tid_entry;
1: + u64 time;
1: + u64 id;
1: + u64 stream_id;
1: + struct {
1: + u32 cpu;
1: + u32 reserved;
1: + } cpu_entry;
1: + struct perf_callchain_entry *callchain;
1: + u64 aux_size;
1: + struct perf_regs regs_user;
1: + struct perf_regs regs_intr;
1: + u64 stack_user_size;
1: + u64 phys_addr;
1: + u64 cgroup;
1: + long: 64;
1: +};
1: +
1: +struct perf_cgroup_info;
1: +
1: +struct perf_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct perf_cgroup_info *info;
1: +};
1: +
1: +struct perf_cgroup_info {
1: + u64 time;
1: + u64 timestamp;
1: +};
1: +
1: +struct trace_entry {
1: + short unsigned int type;
1: + unsigned char flags;
1: + unsigned char preempt_count;
1: + int pid;
1: +};
1: +
1: +struct trace_array;
1: +
1: +struct tracer;
1: +
1: +struct array_buffer;
1: +
1: +struct ring_buffer_iter;
1: +
1: +struct trace_iterator {
1: + struct trace_array *tr;
1: + struct tracer *trace;
1: + struct array_buffer *array_buffer;
1: + void *private;
1: + int cpu_file;
1: + struct mutex mutex;
1: + struct ring_buffer_iter **buffer_iter;
1: + long unsigned int iter_flags;
1: + void *temp;
1: + unsigned int temp_size;
1: + struct trace_seq tmp_seq;
1: + cpumask_var_t started;
1: + bool snapshot;
1: + struct trace_seq seq;
1: + struct trace_entry *ent;
1: + long unsigned int lost_events;
1: + int leftover;
1: + int ent_size;
1: + int cpu;
1: + u64 ts;
1: + loff_t pos;
1: + long int idx;
1: +};
1: +
1: +enum print_line_t {
1: + TRACE_TYPE_PARTIAL_LINE = 0,
1: + TRACE_TYPE_HANDLED = 1,
1: + TRACE_TYPE_UNHANDLED = 2,
1: + TRACE_TYPE_NO_CONSUME = 3,
1: +};
1: +
1: +typedef enum print_line_t (*trace_print_func)(struct trace_iterator *, int, struct trace_event *);
1: +
1: +struct trace_event_functions {
1: + trace_print_func trace;
1: + trace_print_func raw;
1: + trace_print_func hex;
1: + trace_print_func binary;
1: +};
1: +
1: +enum trace_reg {
1: + TRACE_REG_REGISTER = 0,
1: + TRACE_REG_UNREGISTER = 1,
1: + TRACE_REG_PERF_REGISTER = 2,
1: + TRACE_REG_PERF_UNREGISTER = 3,
1: + TRACE_REG_PERF_OPEN = 4,
1: + TRACE_REG_PERF_CLOSE = 5,
1: + TRACE_REG_PERF_ADD = 6,
1: + TRACE_REG_PERF_DEL = 7,
1: +};
1: +
1: +struct trace_event_fields {
1: + const char *type;
1: + union {
1: + struct {
1: + const char *name;
1: + const int size;
1: + const int align;
1: + const int is_signed;
1: + const int filter_type;
1: + };
1: + int (*define_fields)(struct trace_event_call *);
1: + };
1: +};
1: +
1: +struct trace_event_class {
1: + const char *system;
1: + void *probe;
1: + void *perf_probe;
1: + int (*reg)(struct trace_event_call *, enum trace_reg, void *);
1: + struct trace_event_fields *fields_array;
1: + struct list_head * (*get_fields)(struct trace_event_call *);
1: + struct list_head fields;
1: + int (*raw_init)(struct trace_event_call *);
1: +};
1: +
1: +struct trace_buffer;
1: +
1: +struct trace_event_file;
1: +
1: +struct trace_event_buffer {
1: + struct trace_buffer *buffer;
1: + struct ring_buffer_event *event;
1: + struct trace_event_file *trace_file;
1: + void *entry;
1: + long unsigned int flags;
1: + int pc;
1: + struct pt_regs *regs;
1: +};
1: +
1: +struct trace_subsystem_dir;
1: +
1: +struct trace_event_file {
1: + struct list_head list;
1: + struct trace_event_call *event_call;
1: + struct event_filter *filter;
1: + struct dentry *dir;
1: + struct trace_array *tr;
1: + struct trace_subsystem_dir *system;
1: + struct list_head triggers;
1: + long unsigned int flags;
1: + atomic_t sm_ref;
1: + atomic_t tm_ref;
1: +};
1: +
1: +enum {
1: + TRACE_EVENT_FL_FILTERED_BIT = 0,
1: + TRACE_EVENT_FL_CAP_ANY_BIT = 1,
1: + TRACE_EVENT_FL_NO_SET_FILTER_BIT = 2,
1: + TRACE_EVENT_FL_IGNORE_ENABLE_BIT = 3,
1: + TRACE_EVENT_FL_TRACEPOINT_BIT = 4,
1: + TRACE_EVENT_FL_KPROBE_BIT = 5,
1: + TRACE_EVENT_FL_UPROBE_BIT = 6,
1: +};
1: +
1: +enum {
1: + TRACE_EVENT_FL_FILTERED = 1,
1: + TRACE_EVENT_FL_CAP_ANY = 2,
1: + TRACE_EVENT_FL_NO_SET_FILTER = 4,
1: + TRACE_EVENT_FL_IGNORE_ENABLE = 8,
1: + TRACE_EVENT_FL_TRACEPOINT = 16,
1: + TRACE_EVENT_FL_KPROBE = 32,
1: + TRACE_EVENT_FL_UPROBE = 64,
1: +};
1: +
1: +enum {
1: + EVENT_FILE_FL_ENABLED_BIT = 0,
1: + EVENT_FILE_FL_RECORDED_CMD_BIT = 1,
1: + EVENT_FILE_FL_RECORDED_TGID_BIT = 2,
1: + EVENT_FILE_FL_FILTERED_BIT = 3,
1: + EVENT_FILE_FL_NO_SET_FILTER_BIT = 4,
1: + EVENT_FILE_FL_SOFT_MODE_BIT = 5,
1: + EVENT_FILE_FL_SOFT_DISABLED_BIT = 6,
1: + EVENT_FILE_FL_TRIGGER_MODE_BIT = 7,
1: + EVENT_FILE_FL_TRIGGER_COND_BIT = 8,
1: + EVENT_FILE_FL_PID_FILTER_BIT = 9,
1: + EVENT_FILE_FL_WAS_ENABLED_BIT = 10,
1: +};
1: +
1: +enum {
1: + EVENT_FILE_FL_ENABLED = 1,
1: + EVENT_FILE_FL_RECORDED_CMD = 2,
1: + EVENT_FILE_FL_RECORDED_TGID = 4,
1: + EVENT_FILE_FL_FILTERED = 8,
1: + EVENT_FILE_FL_NO_SET_FILTER = 16,
1: + EVENT_FILE_FL_SOFT_MODE = 32,
1: + EVENT_FILE_FL_SOFT_DISABLED = 64,
1: + EVENT_FILE_FL_TRIGGER_MODE = 128,
1: + EVENT_FILE_FL_TRIGGER_COND = 256,
1: + EVENT_FILE_FL_PID_FILTER = 512,
1: + EVENT_FILE_FL_WAS_ENABLED = 1024,
1: +};
1: +
1: +enum {
1: + FILTER_OTHER = 0,
1: + FILTER_STATIC_STRING = 1,
1: + FILTER_DYN_STRING = 2,
1: + FILTER_PTR_STRING = 3,
1: + FILTER_TRACE_FN = 4,
1: + FILTER_COMM = 5,
1: + FILTER_CPU = 6,
1: +};
1: +
1: +struct fwnode_reference_args;
1: +
1: +struct fwnode_endpoint;
1: +
1: +struct fwnode_operations {
1: + struct fwnode_handle * (*get)(struct fwnode_handle *);
1: + void (*put)(struct fwnode_handle *);
1: + bool (*device_is_available)(const struct fwnode_handle *);
1: + const void * (*device_get_match_data)(const struct fwnode_handle *, const struct device *);
1: + bool (*property_present)(const struct fwnode_handle *, const char *);
1: + int (*property_read_int_array)(const struct fwnode_handle *, const char *, unsigned int, void *, size_t);
1: + int (*property_read_string_array)(const struct fwnode_handle *, const char *, const char **, size_t);
1: + const char * (*get_name)(const struct fwnode_handle *);
1: + const char * (*get_name_prefix)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*get_parent)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *, struct fwnode_handle *);
1: + struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *, const char *);
1: + int (*get_reference_args)(const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *);
1: + struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *, struct fwnode_handle *);
1: + struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *);
1: + int (*graph_parse_endpoint)(const struct fwnode_handle *, struct fwnode_endpoint *);
1: + int (*add_links)(const struct fwnode_handle *, struct device *);
1: +};
1: +
1: +struct fwnode_endpoint {
1: + unsigned int port;
1: + unsigned int id;
1: + const struct fwnode_handle *local_fwnode;
1: +};
1: +
1: +struct fwnode_reference_args {
1: + struct fwnode_handle *fwnode;
1: + unsigned int nargs;
1: + u64 args[8];
1: +};
1: +
1: +struct property {
1: + char *name;
1: + int length;
1: + void *value;
1: + struct property *next;
1: + long unsigned int _flags;
1: + struct bin_attribute attr;
1: +};
1: +
1: +struct irq_fwspec {
1: + struct fwnode_handle *fwnode;
1: + int param_count;
1: + u32 param[16];
1: +};
1: +
1: +struct irq_data;
1: +
1: +struct irq_domain_ops {
1: + int (*match)(struct irq_domain *, struct device_node *, enum irq_domain_bus_token);
1: + int (*select)(struct irq_domain *, struct irq_fwspec *, enum irq_domain_bus_token);
1: + int (*map)(struct irq_domain *, unsigned int, irq_hw_number_t);
1: + void (*unmap)(struct irq_domain *, unsigned int);
1: + int (*xlate)(struct irq_domain *, struct device_node *, const u32 *, unsigned int, long unsigned int *, unsigned int *);
1: + int (*alloc)(struct irq_domain *, unsigned int, unsigned int, void *);
1: + void (*free)(struct irq_domain *, unsigned int, unsigned int);
1: + int (*activate)(struct irq_domain *, struct irq_data *, bool);
1: + void (*deactivate)(struct irq_domain *, struct irq_data *);
1: + int (*translate)(struct irq_domain *, struct irq_fwspec *, long unsigned int *, unsigned int *);
1: +};
1: +
1: +struct xbc_node {
1: + u16 next;
1: + u16 child;
1: + u16 parent;
1: + u16 data;
1: +};
1: +
1: +enum wb_stat_item {
1: + WB_RECLAIMABLE = 0,
1: + WB_WRITEBACK = 1,
1: + WB_DIRTIED = 2,
1: + WB_WRITTEN = 3,
1: + NR_WB_STAT_ITEMS = 4,
1: +};
1: +
1: +struct disk_stats;
1: +
1: +struct partition_meta_info;
1: +
1: +struct hd_struct {
1: + sector_t start_sect;
1: + sector_t nr_sects;
1: + long unsigned int stamp;
1: + struct disk_stats *dkstats;
1: + struct percpu_ref ref;
1: + struct device __dev;
1: + struct kobject *holder_dir;
1: + int policy;
1: + int partno;
1: + struct partition_meta_info *info;
1: + struct rcu_work rcu_work;
1: +};
1: +
1: +struct disk_part_tbl;
1: +
1: +struct block_device_operations;
1: +
1: +struct timer_rand_state;
1: +
1: +struct disk_events;
1: +
1: +struct cdrom_device_info;
1: +
1: +struct badblocks;
1: +
1: +struct gendisk {
1: + int major;
1: + int first_minor;
1: + int minors;
1: + char disk_name[32];
1: + short unsigned int events;
1: + short unsigned int event_flags;
1: + struct disk_part_tbl *part_tbl;
1: + struct hd_struct part0;
1: + const struct block_device_operations *fops;
1: + struct request_queue *queue;
1: + void *private_data;
1: + int flags;
1: + long unsigned int state;
1: + struct rw_semaphore lookup_sem;
1: + struct kobject *slave_dir;
1: + struct timer_rand_state *random;
1: + atomic_t sync_io;
1: + struct disk_events *ev;
1: + struct kobject integrity_kobj;
1: + struct cdrom_device_info *cdi;
1: + int node_id;
1: + struct badblocks *bb;
1: + struct lockdep_map lockdep_map;
1: +};
1: +
1: +struct bio_integrity_payload {
1: + struct bio *bip_bio;
1: + struct bvec_iter bip_iter;
1: + short unsigned int bip_slab;
1: + short unsigned int bip_vcnt;
1: + short unsigned int bip_max_vcnt;
1: + short unsigned int bip_flags;
1: + struct bvec_iter bio_iter;
1: + struct work_struct bip_work;
1: + struct bio_vec *bip_vec;
1: + struct bio_vec bip_inline_vecs[0];
1: +};
1: +
1: +struct blkg_iostat {
1: + u64 bytes[3];
1: + u64 ios[3];
1: +};
1: +
1: +struct blkg_iostat_set {
1: + struct u64_stats_sync sync;
1: + struct blkg_iostat cur;
1: + struct blkg_iostat last;
1: +};
1: +
1: +struct blkcg;
1: +
1: +struct blkg_policy_data;
1: +
1: +struct blkcg_gq {
1: + struct request_queue *q;
1: + struct list_head q_node;
1: + struct hlist_node blkcg_node;
1: + struct blkcg *blkcg;
1: + struct blkcg_gq *parent;
1: + struct percpu_ref refcnt;
1: + bool online;
1: + struct blkg_iostat_set *iostat_cpu;
1: + struct blkg_iostat_set iostat;
1: + struct blkg_policy_data *pd[5];
1: + spinlock_t async_bio_lock;
1: + struct bio_list async_bios;
1: + struct work_struct async_bio_work;
1: + atomic_t use_delay;
1: + atomic64_t delay_nsec;
1: + atomic64_t delay_start;
1: + u64 last_delay;
1: + int last_use;
1: + struct callback_head callback_head;
1: +};
1: +
1: +typedef unsigned int blk_qc_t;
1: +
1: +struct partition_meta_info {
1: + char uuid[37];
1: + u8 volname[64];
1: +};
1: +
1: +struct disk_part_tbl {
1: + struct callback_head callback_head;
1: + int len;
1: + struct hd_struct *last_lookup;
1: + struct hd_struct *part[0];
1: +};
1: +
1: +struct blk_integrity_iter;
1: +
1: +typedef blk_status_t integrity_processing_fn(struct blk_integrity_iter *);
1: +
1: +typedef void integrity_prepare_fn(struct request *);
1: +
1: +typedef void integrity_complete_fn(struct request *, unsigned int);
1: +
1: +struct blk_integrity_profile {
1: + integrity_processing_fn *generate_fn;
1: + integrity_processing_fn *verify_fn;
1: + integrity_prepare_fn *prepare_fn;
1: + integrity_complete_fn *complete_fn;
1: + const char *name;
1: +};
1: +
1: +struct blk_zone;
1: +
1: +typedef int (*report_zones_cb)(struct blk_zone *, unsigned int, void *);
1: +
1: +struct hd_geometry;
1: +
1: +struct pr_ops;
1: +
1: +struct block_device_operations {
1: + blk_qc_t (*submit_bio)(struct bio *);
1: + int (*open)(struct block_device *, fmode_t);
1: + void (*release)(struct gendisk *, fmode_t);
1: + int (*rw_page)(struct block_device *, sector_t, struct page *, unsigned int);
1: + int (*ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: + unsigned int (*check_events)(struct gendisk *, unsigned int);
1: + void (*unlock_native_capacity)(struct gendisk *);
1: + int (*revalidate_disk)(struct gendisk *);
1: + int (*getgeo)(struct block_device *, struct hd_geometry *);
1: + void (*swap_slot_free_notify)(struct block_device *, long unsigned int);
1: + int (*report_zones)(struct gendisk *, sector_t, unsigned int, report_zones_cb, void *);
1: + char * (*devnode)(struct gendisk *, umode_t *);
1: + struct module *owner;
1: + const struct pr_ops *pr_ops;
1: +};
1: +
1: +struct sg_io_v4 {
1: + __s32 guard;
1: + __u32 protocol;
1: + __u32 subprotocol;
1: + __u32 request_len;
1: + __u64 request;
1: + __u64 request_tag;
1: + __u32 request_attr;
1: + __u32 request_priority;
1: + __u32 request_extra;
1: + __u32 max_response_len;
1: + __u64 response;
1: + __u32 dout_iovec_count;
1: + __u32 dout_xfer_len;
1: + __u32 din_iovec_count;
1: + __u32 din_xfer_len;
1: + __u64 dout_xferp;
1: + __u64 din_xferp;
1: + __u32 timeout;
1: + __u32 flags;
1: + __u64 usr_ptr;
1: + __u32 spare_in;
1: + __u32 driver_status;
1: + __u32 transport_status;
1: + __u32 device_status;
1: + __u32 retry_delay;
1: + __u32 info;
1: + __u32 duration;
1: + __u32 response_len;
1: + __s32 din_resid;
1: + __s32 dout_resid;
1: + __u64 generated_tag;
1: + __u32 spare_out;
1: + __u32 padding;
1: +};
1: +
1: +struct bsg_ops {
1: + int (*check_proto)(struct sg_io_v4 *);
1: + int (*fill_hdr)(struct request *, struct sg_io_v4 *, fmode_t);
1: + int (*complete_rq)(struct request *, struct sg_io_v4 *);
1: + void (*free_rq)(struct request *);
1: +};
1: +
1: +typedef __u32 req_flags_t;
1: +
1: +typedef void rq_end_io_fn(struct request *, blk_status_t);
1: +
1: +enum mq_rq_state {
1: + MQ_RQ_IDLE = 0,
1: + MQ_RQ_IN_FLIGHT = 1,
1: + MQ_RQ_COMPLETE = 2,
1: +};
1: +
1: +struct blk_ksm_keyslot;
1: +
1: +struct request {
1: + struct request_queue *q;
1: + struct blk_mq_ctx *mq_ctx;
1: + struct blk_mq_hw_ctx *mq_hctx;
1: + unsigned int cmd_flags;
1: + req_flags_t rq_flags;
1: + int tag;
1: + int internal_tag;
1: + unsigned int __data_len;
1: + sector_t __sector;
1: + struct bio *bio;
1: + struct bio *biotail;
1: + struct list_head queuelist;
1: + union {
1: + struct hlist_node hash;
1: + struct list_head ipi_list;
1: + };
1: + union {
1: + struct rb_node rb_node;
1: + struct bio_vec special_vec;
1: + void *completion_data;
1: + int error_count;
1: + };
1: + union {
1: + struct {
1: + struct io_cq *icq;
1: + void *priv[2];
1: + } elv;
1: + struct {
1: + unsigned int seq;
1: + struct list_head list;
1: + rq_end_io_fn *saved_end_io;
1: + } flush;
1: + };
1: + struct gendisk *rq_disk;
1: + struct hd_struct *part;
1: + u64 alloc_time_ns;
1: + u64 start_time_ns;
1: + u64 io_start_time_ns;
1: + short unsigned int wbt_flags;
1: + short unsigned int stats_sectors;
1: + short unsigned int nr_phys_segments;
1: + short unsigned int nr_integrity_segments;
1: + struct bio_crypt_ctx *crypt_ctx;
1: + struct blk_ksm_keyslot *crypt_keyslot;
1: + short unsigned int write_hint;
1: + short unsigned int ioprio;
1: + enum mq_rq_state state;
1: + refcount_t ref;
1: + unsigned int timeout;
1: + long unsigned int deadline;
1: + union {
1: + struct __call_single_data csd;
1: + u64 fifo_time;
1: + };
1: + rq_end_io_fn *end_io;
1: + void *end_io_data;
1: +};
1: +
1: +struct blk_zone {
1: + __u64 start;
1: + __u64 len;
1: + __u64 wp;
1: + __u8 type;
1: + __u8 cond;
1: + __u8 non_seq;
1: + __u8 reset;
1: + __u8 resv[4];
1: + __u64 capacity;
1: + __u8 reserved[24];
1: +};
1: +
1: +enum elv_merge {
1: + ELEVATOR_NO_MERGE = 0,
1: + ELEVATOR_FRONT_MERGE = 1,
1: + ELEVATOR_BACK_MERGE = 2,
1: + ELEVATOR_DISCARD_MERGE = 3,
1: +};
1: +
1: +struct elevator_type;
1: +
1: +struct blk_mq_alloc_data;
1: +
1: +struct elevator_mq_ops {
1: + int (*init_sched)(struct request_queue *, struct elevator_type *);
1: + void (*exit_sched)(struct elevator_queue *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*depth_updated)(struct blk_mq_hw_ctx *);
1: + bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
1: + bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *, unsigned int);
1: + int (*request_merge)(struct request_queue *, struct request **, struct bio *);
1: + void (*request_merged)(struct request_queue *, struct request *, enum elv_merge);
1: + void (*requests_merged)(struct request_queue *, struct request *, struct request *);
1: + void (*limit_depth)(unsigned int, struct blk_mq_alloc_data *);
1: + void (*prepare_request)(struct request *);
1: + void (*finish_request)(struct request *);
1: + void (*insert_requests)(struct blk_mq_hw_ctx *, struct list_head *, bool);
1: + struct request * (*dispatch_request)(struct blk_mq_hw_ctx *);
1: + bool (*has_work)(struct blk_mq_hw_ctx *);
1: + void (*completed_request)(struct request *, u64);
1: + void (*requeue_request)(struct request *);
1: + struct request * (*former_request)(struct request_queue *, struct request *);
1: + struct request * (*next_request)(struct request_queue *, struct request *);
1: + void (*init_icq)(struct io_cq *);
1: + void (*exit_icq)(struct io_cq *);
1: +};
1: +
1: +struct elv_fs_entry;
1: +
1: +struct elevator_type {
1: + struct kmem_cache *icq_cache;
1: + struct elevator_mq_ops ops;
1: + size_t icq_size;
1: + size_t icq_align;
1: + struct elv_fs_entry *elevator_attrs;
1: + const char *elevator_name;
1: + const char *elevator_alias;
1: + const unsigned int elevator_features;
1: + struct module *elevator_owner;
1: + char icq_cache_name[22];
1: + struct list_head list;
1: +};
1: +
1: +struct elevator_queue {
1: + struct elevator_type *type;
1: + void *elevator_data;
1: + struct kobject kobj;
1: + struct mutex sysfs_lock;
1: + unsigned int registered: 1;
1: + struct hlist_head hash[64];
1: +};
1: +
1: +struct elv_fs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct elevator_queue *, char *);
1: + ssize_t (*store)(struct elevator_queue *, const char *, size_t);
1: +};
1: +
1: +enum blk_eh_timer_return {
1: + BLK_EH_DONE = 0,
1: + BLK_EH_RESET_TIMER = 1,
1: +};
1: +
1: +struct blk_mq_queue_data;
1: +
1: +struct blk_mq_ops {
1: + blk_status_t (*queue_rq)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *);
1: + void (*commit_rqs)(struct blk_mq_hw_ctx *);
1: + bool (*get_budget)(struct request_queue *);
1: + void (*put_budget)(struct request_queue *);
1: + enum blk_eh_timer_return (*timeout)(struct request *, bool);
1: + int (*poll)(struct blk_mq_hw_ctx *);
1: + void (*complete)(struct request *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, void *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + int (*init_request)(struct blk_mq_tag_set *, struct request *, unsigned int, unsigned int);
1: + void (*exit_request)(struct blk_mq_tag_set *, struct request *, unsigned int);
1: + void (*initialize_rq_fn)(struct request *);
1: + void (*cleanup_rq)(struct request *);
1: + bool (*busy)(struct request_queue *);
1: + int (*map_queues)(struct blk_mq_tag_set *);
1: +};
1: +
1: +struct blk_integrity_iter {
1: + void *prot_buf;
1: + void *data_buf;
1: + sector_t seed;
1: + unsigned int data_size;
1: + short unsigned int interval;
1: + const char *disk_name;
1: +};
1: +
1: +enum pr_type {
1: + PR_WRITE_EXCLUSIVE = 1,
1: + PR_EXCLUSIVE_ACCESS = 2,
1: + PR_WRITE_EXCLUSIVE_REG_ONLY = 3,
1: + PR_EXCLUSIVE_ACCESS_REG_ONLY = 4,
1: + PR_WRITE_EXCLUSIVE_ALL_REGS = 5,
1: + PR_EXCLUSIVE_ACCESS_ALL_REGS = 6,
1: +};
1: +
1: +struct pr_ops {
1: + int (*pr_register)(struct block_device *, u64, u64, u32);
1: + int (*pr_reserve)(struct block_device *, u64, enum pr_type, u32);
1: + int (*pr_release)(struct block_device *, u64, enum pr_type);
1: + int (*pr_preempt)(struct block_device *, u64, u64, enum pr_type, bool);
1: + int (*pr_clear)(struct block_device *, u64);
1: +};
1: +
1: +enum blkg_iostat_type {
1: + BLKG_IOSTAT_READ = 0,
1: + BLKG_IOSTAT_WRITE = 1,
1: + BLKG_IOSTAT_DISCARD = 2,
1: + BLKG_IOSTAT_NR = 3,
1: +};
1: +
1: +struct blkcg_policy_data;
1: +
1: +struct blkcg {
1: + struct cgroup_subsys_state css;
1: + spinlock_t lock;
1: + refcount_t online_pin;
1: + struct xarray blkg_tree;
1: + struct blkcg_gq *blkg_hint;
1: + struct hlist_head blkg_list;
1: + struct blkcg_policy_data *cpd[5];
1: + struct list_head all_blkcgs_node;
1: + struct list_head cgwb_list;
1: +};
1: +
1: +struct blkcg_policy_data {
1: + struct blkcg *blkcg;
1: + int plid;
1: +};
1: +
1: +struct blkg_policy_data {
1: + struct blkcg_gq *blkg;
1: + int plid;
1: +};
1: +
1: +enum memcg_stat_item {
1: + MEMCG_SWAP = 37,
1: + MEMCG_SOCK = 38,
1: + MEMCG_PERCPU_B = 39,
1: + MEMCG_NR_STAT = 40,
1: +};
1: +
1: +enum memcg_memory_event {
1: + MEMCG_LOW = 0,
1: + MEMCG_HIGH = 1,
1: + MEMCG_MAX = 2,
1: + MEMCG_OOM = 3,
1: + MEMCG_OOM_KILL = 4,
1: + MEMCG_SWAP_HIGH = 5,
1: + MEMCG_SWAP_MAX = 6,
1: + MEMCG_SWAP_FAIL = 7,
1: + MEMCG_NR_MEMORY_EVENTS = 8,
1: +};
1: +
1: +enum mem_cgroup_events_target {
1: + MEM_CGROUP_TARGET_THRESH = 0,
1: + MEM_CGROUP_TARGET_SOFTLIMIT = 1,
1: + MEM_CGROUP_NTARGETS = 2,
1: +};
1: +
1: +struct memcg_vmstats_percpu {
1: + long int stat[40];
1: + long unsigned int events[95];
1: + long unsigned int nr_page_events;
1: + long unsigned int targets[2];
1: +};
1: +
1: +struct mem_cgroup_reclaim_iter {
1: + struct mem_cgroup *position;
1: + unsigned int generation;
1: +};
1: +
1: +struct lruvec_stat {
1: + long int count[37];
1: +};
1: +
1: +struct memcg_shrinker_map {
1: + struct callback_head rcu;
1: + long unsigned int map[0];
1: +};
1: +
1: +struct mem_cgroup_per_node {
1: + struct lruvec lruvec;
1: + struct lruvec_stat *lruvec_stat_local;
1: + struct lruvec_stat *lruvec_stat_cpu;
1: + atomic_long_t lruvec_stat[37];
1: + long unsigned int lru_zone_size[20];
1: + struct mem_cgroup_reclaim_iter iter;
1: + struct memcg_shrinker_map *shrinker_map;
1: + struct rb_node tree_node;
1: + long unsigned int usage_in_excess;
1: + bool on_tree;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct eventfd_ctx;
1: +
1: +struct mem_cgroup_threshold {
1: + struct eventfd_ctx *eventfd;
1: + long unsigned int threshold;
1: +};
1: +
1: +struct mem_cgroup_threshold_ary {
1: + int current_threshold;
1: + unsigned int size;
1: + struct mem_cgroup_threshold entries[0];
1: +};
1: +
1: +struct percpu_cluster {
1: + struct swap_cluster_info index;
1: + unsigned int next;
1: +};
1: +
1: +enum fs_value_type {
1: + fs_value_is_undefined = 0,
1: + fs_value_is_flag = 1,
1: + fs_value_is_string = 2,
1: + fs_value_is_blob = 3,
1: + fs_value_is_filename = 4,
1: + fs_value_is_file = 5,
1: +};
1: +
1: +struct fs_parameter {
1: + const char *key;
1: + enum fs_value_type type: 8;
1: + union {
1: + char *string;
1: + void *blob;
1: + struct filename *name;
1: + struct file *file;
1: + };
1: + size_t size;
1: + int dirfd;
1: +};
1: +
1: +struct fc_log {
1: + refcount_t usage;
1: + u8 head;
1: + u8 tail;
1: + u8 need_free;
1: + struct module *owner;
1: + char *buffer[8];
1: +};
1: +
1: +struct fs_context_operations {
1: + void (*free)(struct fs_context *);
1: + int (*dup)(struct fs_context *, struct fs_context *);
1: + int (*parse_param)(struct fs_context *, struct fs_parameter *);
1: + int (*parse_monolithic)(struct fs_context *, void *);
1: + int (*get_tree)(struct fs_context *);
1: + int (*reconfigure)(struct fs_context *);
1: +};
1: +
1: +struct fs_parse_result {
1: + bool negated;
1: + union {
1: + bool boolean;
1: + int int_32;
1: + unsigned int uint_32;
1: + u64 uint_64;
1: + };
1: +};
1: +
1: +struct trace_event_raw_initcall_level {
1: + struct trace_entry ent;
1: + u32 __data_loc_level;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_initcall_start {
1: + struct trace_entry ent;
1: + initcall_t func;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_initcall_finish {
1: + struct trace_entry ent;
1: + initcall_t func;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_initcall_level {
1: + u32 level;
1: +};
1: +
1: +struct trace_event_data_offsets_initcall_start {};
1: +
1: +struct trace_event_data_offsets_initcall_finish {};
1: +
1: +typedef void (*btf_trace_initcall_level)(void *, const char *);
1: +
1: +typedef void (*btf_trace_initcall_start)(void *, initcall_t);
1: +
1: +typedef void (*btf_trace_initcall_finish)(void *, initcall_t, int);
1: +
1: +struct blacklist_entry {
1: + struct list_head next;
1: + char *buf;
1: +};
1: +
1: +typedef __u32 Elf32_Word;
1: +
1: +struct elf32_note {
1: + Elf32_Word n_namesz;
1: + Elf32_Word n_descsz;
1: + Elf32_Word n_type;
1: +};
1: +
1: +enum pcpu_fc {
1: + PCPU_FC_AUTO = 0,
1: + PCPU_FC_EMBED = 1,
1: + PCPU_FC_PAGE = 2,
1: + PCPU_FC_NR = 3,
1: +};
1: +
1: +enum {
1: + UNAME26 = 131072,
1: + ADDR_NO_RANDOMIZE = 262144,
1: + FDPIC_FUNCPTRS = 524288,
1: + MMAP_PAGE_ZERO = 1048576,
1: + ADDR_COMPAT_LAYOUT = 2097152,
1: + READ_IMPLIES_EXEC = 4194304,
1: + ADDR_LIMIT_32BIT = 8388608,
1: + SHORT_INODE = 16777216,
1: + WHOLE_SECONDS = 33554432,
1: + STICKY_TIMEOUTS = 67108864,
1: + ADDR_LIMIT_3GB = 134217728,
1: +};
1: +
1: +enum hrtimer_base_type {
1: + HRTIMER_BASE_MONOTONIC = 0,
1: + HRTIMER_BASE_REALTIME = 1,
1: + HRTIMER_BASE_BOOTTIME = 2,
1: + HRTIMER_BASE_TAI = 3,
1: + HRTIMER_BASE_MONOTONIC_SOFT = 4,
1: + HRTIMER_BASE_REALTIME_SOFT = 5,
1: + HRTIMER_BASE_BOOTTIME_SOFT = 6,
1: + HRTIMER_BASE_TAI_SOFT = 7,
1: + HRTIMER_MAX_CLOCK_BASES = 8,
1: +};
1: +
1: +enum {
1: + MM_FILEPAGES = 0,
1: + MM_ANONPAGES = 1,
1: + MM_SWAPENTS = 2,
1: + MM_SHMEMPAGES = 3,
1: + NR_MM_COUNTERS = 4,
1: +};
1: +
1: +enum rseq_cs_flags_bit {
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT_BIT = 0,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL_BIT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE_BIT = 2,
1: +};
1: +
1: +enum uclamp_id {
1: + UCLAMP_MIN = 0,
1: + UCLAMP_MAX = 1,
1: + UCLAMP_CNT = 2,
1: +};
1: +
1: +enum perf_event_task_context {
1: + perf_invalid_context = 4294967295,
1: + perf_hw_context = 0,
1: + perf_sw_context = 1,
1: + perf_nr_task_contexts = 2,
1: +};
1: +
1: +enum rseq_event_mask_bits {
1: + RSEQ_EVENT_PREEMPT_BIT = 0,
1: + RSEQ_EVENT_SIGNAL_BIT = 1,
1: + RSEQ_EVENT_MIGRATE_BIT = 2,
1: +};
1: +
1: +enum {
1: + PROC_ROOT_INO = 1,
1: + PROC_IPC_INIT_INO = 4026531839,
1: + PROC_UTS_INIT_INO = 4026531838,
1: + PROC_USER_INIT_INO = 4026531837,
1: + PROC_PID_INIT_INO = 4026531836,
1: + PROC_CGROUP_INIT_INO = 4026531835,
1: + PROC_TIME_INIT_INO = 4026531834,
1: +};
1: +
1: +typedef short int __s16;
1: +
1: +typedef __s16 s16;
1: +
1: +typedef __u16 __le16;
1: +
1: +typedef __u16 __be16;
1: +
1: +typedef __u32 __be32;
1: +
1: +typedef __u64 __be64;
1: +
1: +typedef __u32 __wsum;
1: +
1: +typedef unsigned int slab_flags_t;
1: +
1: +struct llist_head {
1: + struct llist_node *first;
1: +};
1: +
1: +struct rhash_head {
1: + struct rhash_head *next;
1: +};
1: +
1: +struct rhashtable;
1: +
1: +struct rhashtable_compare_arg {
1: + struct rhashtable *ht;
1: + const void *key;
1: +};
1: +
1: +typedef u32 (*rht_hashfn_t)(const void *, u32, u32);
1: +
1: +typedef u32 (*rht_obj_hashfn_t)(const void *, u32, u32);
1: +
1: +typedef int (*rht_obj_cmpfn_t)(struct rhashtable_compare_arg *, const void *);
1: +
1: +struct rhashtable_params {
1: + u16 nelem_hint;
1: + u16 key_len;
1: + u16 key_offset;
1: + u16 head_offset;
1: + unsigned int max_size;
1: + u16 min_size;
1: + bool automatic_shrinking;
1: + rht_hashfn_t hashfn;
1: + rht_obj_hashfn_t obj_hashfn;
1: + rht_obj_cmpfn_t obj_cmpfn;
1: +};
1: +
1: +struct bucket_table;
1: +
1: +struct rhashtable {
1: + struct bucket_table *tbl;
1: + unsigned int key_len;
1: + unsigned int max_elems;
1: + struct rhashtable_params p;
1: + bool rhlist;
1: + struct work_struct run_work;
1: + struct mutex mutex;
1: + spinlock_t lock;
1: + atomic_t nelems;
1: +};
1: +
1: +struct fs_struct {
1: + int users;
1: + spinlock_t lock;
1: + seqcount_spinlock_t seq;
1: + int umask;
1: + int in_exec;
1: + struct path root;
1: + struct path pwd;
1: +};
1: +
1: +struct pipe_buffer;
1: +
1: +struct watch_queue;
1: +
1: +struct pipe_inode_info {
1: + struct mutex mutex;
1: + wait_queue_head_t rd_wait;
1: + wait_queue_head_t wr_wait;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int max_usage;
1: + unsigned int ring_size;
1: + bool note_loss;
1: + unsigned int nr_accounted;
1: + unsigned int readers;
1: + unsigned int writers;
1: + unsigned int files;
1: + unsigned int r_counter;
1: + unsigned int w_counter;
1: + struct page *tmp_page;
1: + struct fasync_struct *fasync_readers;
1: + struct fasync_struct *fasync_writers;
1: + struct pipe_buffer *bufs;
1: + struct user_struct *user;
1: + struct watch_queue *watch_queue;
1: +};
1: +
1: +struct notifier_block;
1: +
1: +typedef int (*notifier_fn_t)(struct notifier_block *, long unsigned int, void *);
1: +
1: +struct notifier_block {
1: + notifier_fn_t notifier_call;
1: + struct notifier_block *next;
1: + int priority;
1: +};
1: +
1: +struct blocking_notifier_head {
1: + struct rw_semaphore rwsem;
1: + struct notifier_block *head;
1: +};
1: +
1: +struct raw_notifier_head {
1: + struct notifier_block *head;
1: +};
1: +
1: +struct vfsmount {
1: + struct dentry *mnt_root;
1: + struct super_block *mnt_sb;
1: + int mnt_flags;
1: +};
1: +
1: +struct ld_semaphore {
1: + atomic_long_t count;
1: + raw_spinlock_t wait_lock;
1: + unsigned int wait_readers;
1: + struct list_head read_wait;
1: + struct list_head write_wait;
1: +};
1: +
1: +typedef unsigned int tcflag_t;
1: +
1: +typedef unsigned char cc_t;
1: +
1: +typedef unsigned int speed_t;
1: +
1: +struct ktermios {
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: + speed_t c_ispeed;
1: + speed_t c_ospeed;
1: +};
1: +
1: +struct winsize {
1: + short unsigned int ws_row;
1: + short unsigned int ws_col;
1: + short unsigned int ws_xpixel;
1: + short unsigned int ws_ypixel;
1: +};
1: +
1: +struct tty_driver;
1: +
1: +struct tty_operations;
1: +
1: +struct tty_ldisc;
1: +
1: +struct termiox;
1: +
1: +struct tty_port;
1: +
1: +struct tty_struct {
1: + int magic;
1: + struct kref kref;
1: + struct device *dev;
1: + struct tty_driver *driver;
1: + const struct tty_operations *ops;
1: + int index;
1: + struct ld_semaphore ldisc_sem;
1: + struct tty_ldisc *ldisc;
1: + struct mutex atomic_write_lock;
1: + struct mutex legacy_mutex;
1: + struct mutex throttle_mutex;
1: + struct rw_semaphore termios_rwsem;
1: + struct mutex winsize_mutex;
1: + spinlock_t ctrl_lock;
1: + spinlock_t flow_lock;
1: + struct ktermios termios;
1: + struct ktermios termios_locked;
1: + struct termiox *termiox;
1: + char name[64];
1: + struct pid *pgrp;
1: + struct pid *session;
1: + long unsigned int flags;
1: + int count;
1: + struct winsize winsize;
1: + long unsigned int stopped: 1;
1: + long unsigned int flow_stopped: 1;
1: + int: 30;
1: + long unsigned int unused: 62;
1: + int hw_stopped;
1: + long unsigned int ctrl_status: 8;
1: + long unsigned int packet: 1;
1: + int: 23;
1: + long unsigned int unused_ctrl: 55;
1: + unsigned int receive_room;
1: + int flow_change;
1: + struct tty_struct *link;
1: + struct fasync_struct *fasync;
1: + wait_queue_head_t write_wait;
1: + wait_queue_head_t read_wait;
1: + struct work_struct hangup_work;
1: + void *disc_data;
1: + void *driver_data;
1: + spinlock_t files_lock;
1: + struct list_head tty_files;
1: + int closing;
1: + unsigned char *write_buf;
1: + int write_cnt;
1: + struct work_struct SAK_work;
1: + struct tty_port *port;
1: +};
1: +
1: +typedef struct {
1: + size_t written;
1: + size_t count;
1: + union {
1: + char *buf;
1: + void *data;
1: + } arg;
1: + int error;
1: +} read_descriptor_t;
1: +
1: +struct posix_acl_entry {
1: + short int e_tag;
1: + short unsigned int e_perm;
1: + union {
1: + kuid_t e_uid;
1: + kgid_t e_gid;
1: + };
1: +};
1: +
1: +struct posix_acl {
1: + refcount_t a_refcount;
1: + struct callback_head a_rcu;
1: + unsigned int a_count;
1: + struct posix_acl_entry a_entries[0];
1: +};
1: +
1: +typedef __u64 __addrpair;
1: +
1: +typedef __u32 __portpair;
1: +
1: +typedef struct {
1: + struct net *net;
1: +} possible_net_t;
1: +
1: +struct in6_addr {
1: + union {
1: + __u8 u6_addr8[16];
1: + __be16 u6_addr16[8];
1: + __be32 u6_addr32[4];
1: + } in6_u;
1: +};
1: +
1: +struct hlist_nulls_node {
1: + struct hlist_nulls_node *next;
1: + struct hlist_nulls_node **pprev;
1: +};
1: +
1: +struct proto;
1: +
1: +struct inet_timewait_death_row;
1: +
1: +struct sock_common {
1: + union {
1: + __addrpair skc_addrpair;
1: + struct {
1: + __be32 skc_daddr;
1: + __be32 skc_rcv_saddr;
1: + };
1: + };
1: + union {
1: + unsigned int skc_hash;
1: + __u16 skc_u16hashes[2];
1: + };
1: + union {
1: + __portpair skc_portpair;
1: + struct {
1: + __be16 skc_dport;
1: + __u16 skc_num;
1: + };
1: + };
1: + short unsigned int skc_family;
1: + volatile unsigned char skc_state;
1: + unsigned char skc_reuse: 4;
1: + unsigned char skc_reuseport: 1;
1: + unsigned char skc_ipv6only: 1;
1: + unsigned char skc_net_refcnt: 1;
1: + int skc_bound_dev_if;
1: + union {
1: + struct hlist_node skc_bind_node;
1: + struct hlist_node skc_portaddr_node;
1: + };
1: + struct proto *skc_prot;
1: + possible_net_t skc_net;
1: + struct in6_addr skc_v6_daddr;
1: + struct in6_addr skc_v6_rcv_saddr;
1: + atomic64_t skc_cookie;
1: + union {
1: + long unsigned int skc_flags;
1: + struct sock *skc_listener;
1: + struct inet_timewait_death_row *skc_tw_dr;
1: + };
1: + int skc_dontcopy_begin[0];
1: + union {
1: + struct hlist_node skc_node;
1: + struct hlist_nulls_node skc_nulls_node;
1: + };
1: + short unsigned int skc_tx_queue_mapping;
1: + short unsigned int skc_rx_queue_mapping;
1: + union {
1: + int skc_incoming_cpu;
1: + u32 skc_rcv_wnd;
1: + u32 skc_tw_rcv_nxt;
1: + };
1: + refcount_t skc_refcnt;
1: + int skc_dontcopy_end[0];
1: + union {
1: + u32 skc_rxhash;
1: + u32 skc_window_clamp;
1: + u32 skc_tw_snd_nxt;
1: + };
1: +};
1: +
1: +typedef struct {
1: + spinlock_t slock;
1: + int owned;
1: + wait_queue_head_t wq;
1: +} socket_lock_t;
1: +
1: +struct sk_buff;
1: +
1: +struct sk_buff_head {
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + __u32 qlen;
1: + spinlock_t lock;
1: +};
1: +
1: +typedef u64 netdev_features_t;
1: +
1: +struct sock_cgroup_data {
1: + union {
1: + struct {
1: + u8 is_data: 1;
1: + u8 no_refcnt: 1;
1: + u8 unused: 6;
1: + u8 padding;
1: + u16 prioidx;
1: + u32 classid;
1: + };
1: + u64 val;
1: + };
1: +};
1: +
1: +struct sk_filter;
1: +
1: +struct socket_wq;
1: +
1: +struct xfrm_policy;
1: +
1: +struct dst_entry;
1: +
1: +struct socket;
1: +
1: +struct net_device;
1: +
1: +struct sock_reuseport;
1: +
1: +struct bpf_local_storage;
1: +
1: +struct sock {
1: + struct sock_common __sk_common;
1: + socket_lock_t sk_lock;
1: + atomic_t sk_drops;
1: + int sk_rcvlowat;
1: + struct sk_buff_head sk_error_queue;
1: + struct sk_buff *sk_rx_skb_cache;
1: + struct sk_buff_head sk_receive_queue;
1: + struct {
1: + atomic_t rmem_alloc;
1: + int len;
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + } sk_backlog;
1: + int sk_forward_alloc;
1: + unsigned int sk_ll_usec;
1: + unsigned int sk_napi_id;
1: + int sk_rcvbuf;
1: + struct sk_filter *sk_filter;
1: + union {
1: + struct socket_wq *sk_wq;
1: + struct socket_wq *sk_wq_raw;
1: + };
1: + struct xfrm_policy *sk_policy[2];
1: + struct dst_entry *sk_rx_dst;
1: + struct dst_entry *sk_dst_cache;
1: + atomic_t sk_omem_alloc;
1: + int sk_sndbuf;
1: + int sk_wmem_queued;
1: + refcount_t sk_wmem_alloc;
1: + long unsigned int sk_tsq_flags;
1: + union {
1: + struct sk_buff *sk_send_head;
1: + struct rb_root tcp_rtx_queue;
1: + };
1: + struct sk_buff *sk_tx_skb_cache;
1: + struct sk_buff_head sk_write_queue;
1: + __s32 sk_peek_off;
1: + int sk_write_pending;
1: + __u32 sk_dst_pending_confirm;
1: + u32 sk_pacing_status;
1: + long int sk_sndtimeo;
1: + struct timer_list sk_timer;
1: + __u32 sk_priority;
1: + __u32 sk_mark;
1: + long unsigned int sk_pacing_rate;
1: + long unsigned int sk_max_pacing_rate;
1: + struct page_frag sk_frag;
1: + netdev_features_t sk_route_caps;
1: + netdev_features_t sk_route_nocaps;
1: + netdev_features_t sk_route_forced_caps;
1: + int sk_gso_type;
1: + unsigned int sk_gso_max_size;
1: + gfp_t sk_allocation;
1: + __u32 sk_txhash;
1: + u8 sk_padding: 1;
1: + u8 sk_kern_sock: 1;
1: + u8 sk_no_check_tx: 1;
1: + u8 sk_no_check_rx: 1;
1: + u8 sk_userlocks: 4;
1: + u8 sk_pacing_shift;
1: + u16 sk_type;
1: + u16 sk_protocol;
1: + u16 sk_gso_max_segs;
1: + long unsigned int sk_lingertime;
1: + struct proto *sk_prot_creator;
1: + rwlock_t sk_callback_lock;
1: + int sk_err;
1: + int sk_err_soft;
1: + u32 sk_ack_backlog;
1: + u32 sk_max_ack_backlog;
1: + kuid_t sk_uid;
1: + struct pid *sk_peer_pid;
1: + const struct cred *sk_peer_cred;
1: + long int sk_rcvtimeo;
1: + ktime_t sk_stamp;
1: + u16 sk_tsflags;
1: + u8 sk_shutdown;
1: + u32 sk_tskey;
1: + atomic_t sk_zckey;
1: + u8 sk_clockid;
1: + u8 sk_txtime_deadline_mode: 1;
1: + u8 sk_txtime_report_errors: 1;
1: + u8 sk_txtime_unused: 6;
1: + struct socket *sk_socket;
1: + void *sk_user_data;
1: + void *sk_security;
1: + struct sock_cgroup_data sk_cgrp_data;
1: + struct mem_cgroup *sk_memcg;
1: + void (*sk_state_change)(struct sock *);
1: + void (*sk_data_ready)(struct sock *);
1: + void (*sk_write_space)(struct sock *);
1: + void (*sk_error_report)(struct sock *);
1: + int (*sk_backlog_rcv)(struct sock *, struct sk_buff *);
1: + struct sk_buff * (*sk_validate_xmit_skb)(struct sock *, struct net_device *, struct sk_buff *);
1: + void (*sk_destruct)(struct sock *);
1: + struct sock_reuseport *sk_reuseport_cb;
1: + struct bpf_local_storage *sk_bpf_storage;
1: + struct callback_head sk_rcu;
1: +};
1: +
1: +typedef short unsigned int __kernel_sa_family_t;
1: +
1: +typedef __kernel_sa_family_t sa_family_t;
1: +
1: +struct sockaddr {
1: + sa_family_t sa_family;
1: + char sa_data[14];
1: +};
1: +
1: +struct msghdr {
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iov_iter msg_iter;
1: + union {
1: + void *msg_control;
1: + void *msg_control_user;
1: + };
1: + bool msg_control_is_user: 1;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: + struct kiocb *msg_iocb;
1: +};
1: +
1: +typedef struct {
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: +} sync_serial_settings;
1: +
1: +typedef struct {
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: + unsigned int slot_map;
1: +} te1_settings;
1: +
1: +typedef struct {
1: + short unsigned int encoding;
1: + short unsigned int parity;
1: +} raw_hdlc_proto;
1: +
1: +typedef struct {
1: + unsigned int t391;
1: + unsigned int t392;
1: + unsigned int n391;
1: + unsigned int n392;
1: + unsigned int n393;
1: + short unsigned int lmi;
1: + short unsigned int dce;
1: +} fr_proto;
1: +
1: +typedef struct {
1: + unsigned int dlci;
1: +} fr_proto_pvc;
1: +
1: +typedef struct {
1: + unsigned int dlci;
1: + char master[16];
1: +} fr_proto_pvc_info;
1: +
1: +typedef struct {
1: + unsigned int interval;
1: + unsigned int timeout;
1: +} cisco_proto;
1: +
1: +typedef struct {
1: + short unsigned int dce;
1: + unsigned int modulo;
1: + unsigned int window;
1: + unsigned int t1;
1: + unsigned int t2;
1: + unsigned int n2;
1: +} x25_hdlc_proto;
1: +
1: +struct ifmap {
1: + long unsigned int mem_start;
1: + long unsigned int mem_end;
1: + short unsigned int base_addr;
1: + unsigned char irq;
1: + unsigned char dma;
1: + unsigned char port;
1: +};
1: +
1: +struct if_settings {
1: + unsigned int type;
1: + unsigned int size;
1: + union {
1: + raw_hdlc_proto *raw_hdlc;
1: + cisco_proto *cisco;
1: + fr_proto *fr;
1: + fr_proto_pvc *fr_pvc;
1: + fr_proto_pvc_info *fr_pvc_info;
1: + x25_hdlc_proto *x25;
1: + sync_serial_settings *sync;
1: + te1_settings *te1;
1: + } ifs_ifsu;
1: +};
1: +
1: +struct ifreq {
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union {
1: + struct sockaddr ifru_addr;
1: + struct sockaddr ifru_dstaddr;
1: + struct sockaddr ifru_broadaddr;
1: + struct sockaddr ifru_netmask;
1: + struct sockaddr ifru_hwaddr;
1: + short int ifru_flags;
1: + int ifru_ivalue;
1: + int ifru_mtu;
1: + struct ifmap ifru_map;
1: + char ifru_slave[16];
1: + char ifru_newname[16];
1: + void *ifru_data;
1: + struct if_settings ifru_settings;
1: + } ifr_ifru;
1: +};
1: +
1: +struct termiox {
1: + __u16 x_hflag;
1: + __u16 x_cflag;
1: + __u16 x_rflag[5];
1: + __u16 x_sflag;
1: +};
1: +
1: +struct serial_icounter_struct;
1: +
1: +struct serial_struct;
1: +
1: +struct tty_operations {
1: + struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
1: + int (*install)(struct tty_driver *, struct tty_struct *);
1: + void (*remove)(struct tty_driver *, struct tty_struct *);
1: + int (*open)(struct tty_struct *, struct file *);
1: + void (*close)(struct tty_struct *, struct file *);
1: + void (*shutdown)(struct tty_struct *);
1: + void (*cleanup)(struct tty_struct *);
1: + int (*write)(struct tty_struct *, const unsigned char *, int);
1: + int (*put_char)(struct tty_struct *, unsigned char);
1: + void (*flush_chars)(struct tty_struct *);
1: + int (*write_room)(struct tty_struct *);
1: + int (*chars_in_buffer)(struct tty_struct *);
1: + int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + void (*throttle)(struct tty_struct *);
1: + void (*unthrottle)(struct tty_struct *);
1: + void (*stop)(struct tty_struct *);
1: + void (*start)(struct tty_struct *);
1: + void (*hangup)(struct tty_struct *);
1: + int (*break_ctl)(struct tty_struct *, int);
1: + void (*flush_buffer)(struct tty_struct *);
1: + void (*set_ldisc)(struct tty_struct *);
1: + void (*wait_until_sent)(struct tty_struct *, int);
1: + void (*send_xchar)(struct tty_struct *, char);
1: + int (*tiocmget)(struct tty_struct *);
1: + int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
1: + int (*resize)(struct tty_struct *, struct winsize *);
1: + int (*set_termiox)(struct tty_struct *, struct termiox *);
1: + int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
1: + int (*get_serial)(struct tty_struct *, struct serial_struct *);
1: + int (*set_serial)(struct tty_struct *, struct serial_struct *);
1: + void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
1: + int (*poll_init)(struct tty_driver *, int, char *);
1: + int (*poll_get_char)(struct tty_driver *, int);
1: + void (*poll_put_char)(struct tty_driver *, int, char);
1: + int (*proc_show)(struct seq_file *, void *);
1: +};
1: +
1: +struct proc_dir_entry;
1: +
1: +struct tty_driver {
1: + int magic;
1: + struct kref kref;
1: + struct cdev **cdevs;
1: + struct module *owner;
1: + const char *driver_name;
1: + const char *name;
1: + int name_base;
1: + int major;
1: + int minor_start;
1: + unsigned int num;
1: + short int type;
1: + short int subtype;
1: + struct ktermios init_termios;
1: + long unsigned int flags;
1: + struct proc_dir_entry *proc_entry;
1: + struct tty_driver *other;
1: + struct tty_struct **ttys;
1: + struct tty_port **ports;
1: + struct ktermios **termios;
1: + void *driver_state;
1: + const struct tty_operations *ops;
1: + struct list_head tty_drivers;
1: +};
1: +
1: +struct tty_buffer {
1: + union {
1: + struct tty_buffer *next;
1: + struct llist_node free;
1: + };
1: + int used;
1: + int size;
1: + int commit;
1: + int read;
1: + int flags;
1: + long unsigned int data[0];
1: +};
1: +
1: +struct tty_bufhead {
1: + struct tty_buffer *head;
1: + struct work_struct work;
1: + struct mutex lock;
1: + atomic_t priority;
1: + struct tty_buffer sentinel;
1: + struct llist_head free;
1: + atomic_t mem_used;
1: + int mem_limit;
1: + struct tty_buffer *tail;
1: +};
1: +
1: +struct tty_port_operations;
1: +
1: +struct tty_port_client_operations;
1: +
1: +struct tty_port {
1: + struct tty_bufhead buf;
1: + struct tty_struct *tty;
1: + struct tty_struct *itty;
1: + const struct tty_port_operations *ops;
1: + const struct tty_port_client_operations *client_ops;
1: + spinlock_t lock;
1: + int blocked_open;
1: + int count;
1: + wait_queue_head_t open_wait;
1: + wait_queue_head_t delta_msr_wait;
1: + long unsigned int flags;
1: + long unsigned int iflags;
1: + unsigned char console: 1;
1: + unsigned char low_latency: 1;
1: + struct mutex mutex;
1: + struct mutex buf_mutex;
1: + unsigned char *xmit_buf;
1: + unsigned int close_delay;
1: + unsigned int closing_wait;
1: + int drain_delay;
1: + struct kref kref;
1: + void *client_data;
1: +};
1: +
1: +struct tty_ldisc_ops {
1: + int magic;
1: + char *name;
1: + int num;
1: + int flags;
1: + int (*open)(struct tty_struct *);
1: + void (*close)(struct tty_struct *);
1: + void (*flush_buffer)(struct tty_struct *);
1: + ssize_t (*read)(struct tty_struct *, struct file *, unsigned char *, size_t);
1: + ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t);
1: + int (*ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + __poll_t (*poll)(struct tty_struct *, struct file *, struct poll_table_struct *);
1: + int (*hangup)(struct tty_struct *);
1: + void (*receive_buf)(struct tty_struct *, const unsigned char *, char *, int);
1: + void (*write_wakeup)(struct tty_struct *);
1: + void (*dcd_change)(struct tty_struct *, unsigned int);
1: + int (*receive_buf2)(struct tty_struct *, const unsigned char *, char *, int);
1: + struct module *owner;
1: + int refcount;
1: +};
1: +
1: +struct tty_ldisc {
1: + struct tty_ldisc_ops *ops;
1: + struct tty_struct *tty;
1: +};
1: +
1: +struct tty_port_operations {
1: + int (*carrier_raised)(struct tty_port *);
1: + void (*dtr_rts)(struct tty_port *, int);
1: + void (*shutdown)(struct tty_port *);
1: + int (*activate)(struct tty_port *, struct tty_struct *);
1: + void (*destruct)(struct tty_port *);
1: +};
1: +
1: +struct tty_port_client_operations {
1: + int (*receive_buf)(struct tty_port *, const unsigned char *, const unsigned char *, size_t);
1: + void (*write_wakeup)(struct tty_port *);
1: +};
1: +
1: +struct prot_inuse;
1: +
1: +struct netns_core {
1: + struct ctl_table_header *sysctl_hdr;
1: + int sysctl_somaxconn;
1: + int *sock_inuse;
1: + struct prot_inuse *prot_inuse;
1: +};
1: +
1: +struct tcp_mib;
1: +
1: +struct ipstats_mib;
1: +
1: +struct linux_mib;
1: +
1: +struct udp_mib;
1: +
1: +struct icmp_mib;
1: +
1: +struct icmpmsg_mib;
1: +
1: +struct icmpv6_mib;
1: +
1: +struct icmpv6msg_mib;
1: +
1: +struct linux_tls_mib;
1: +
1: +struct mptcp_mib;
1: +
1: +struct netns_mib {
1: + struct tcp_mib *tcp_statistics;
1: + struct ipstats_mib *ip_statistics;
1: + struct linux_mib *net_statistics;
1: + struct udp_mib *udp_statistics;
1: + struct udp_mib *udplite_statistics;
1: + struct icmp_mib *icmp_statistics;
1: + struct icmpmsg_mib *icmpmsg_statistics;
1: + struct proc_dir_entry *proc_net_devsnmp6;
1: + struct udp_mib *udp_stats_in6;
1: + struct udp_mib *udplite_stats_in6;
1: + struct ipstats_mib *ipv6_statistics;
1: + struct icmpv6_mib *icmpv6_statistics;
1: + struct icmpv6msg_mib *icmpv6msg_statistics;
1: + struct linux_tls_mib *tls_statistics;
1: + struct mptcp_mib *mptcp_statistics;
1: +};
1: +
1: +struct netns_packet {
1: + struct mutex sklist_lock;
1: + struct hlist_head sklist;
1: +};
1: +
1: +struct netns_unix {
1: + int sysctl_max_dgram_qlen;
1: + struct ctl_table_header *ctl;
1: +};
1: +
1: +struct netns_nexthop {
1: + struct rb_root rb_root;
1: + struct hlist_head *devhash;
1: + unsigned int seq;
1: + u32 last_id_allocated;
1: + struct blocking_notifier_head notifier_chain;
1: +};
1: +
1: +struct local_ports {
1: + seqlock_t lock;
1: + int range[2];
1: + bool warned;
1: +};
1: +
1: +struct inet_hashinfo;
1: +
1: +struct inet_timewait_death_row {
1: + atomic_t tw_count;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct inet_hashinfo *hashinfo;
1: + int sysctl_max_tw_buckets;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ping_group_range {
1: + seqlock_t lock;
1: + kgid_t range[2];
1: +};
1: +
1: +typedef struct {
1: + u64 key[2];
1: +} siphash_key_t;
1: +
1: +struct ipv4_devconf;
1: +
1: +struct ip_ra_chain;
1: +
1: +struct fib_rules_ops;
1: +
1: +struct fib_table;
1: +
1: +struct inet_peer_base;
1: +
1: +struct fqdir;
1: +
1: +struct xt_table;
1: +
1: +struct tcp_congestion_ops;
1: +
1: +struct tcp_fastopen_context;
1: +
1: +struct fib_notifier_ops;
1: +
1: +struct netns_ipv4 {
1: + struct ctl_table_header *forw_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *ipv4_hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *xfrm4_hdr;
1: + struct ipv4_devconf *devconf_all;
1: + struct ipv4_devconf *devconf_dflt;
1: + struct ip_ra_chain *ra_chain;
1: + struct mutex ra_mutex;
1: + struct fib_rules_ops *rules_ops;
1: + bool fib_has_custom_rules;
1: + unsigned int fib_rules_require_fldissect;
1: + struct fib_table *fib_main;
1: + struct fib_table *fib_default;
1: + bool fib_has_custom_local_routes;
1: + int fib_num_tclassid_users;
1: + struct hlist_head *fib_table_hash;
1: + bool fib_offload_disabled;
1: + struct sock *fibnl;
1: + struct sock **icmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct inet_peer_base *peers;
1: + struct sock **tcp_sk;
1: + struct fqdir *fqdir;
1: + struct xt_table *iptable_filter;
1: + struct xt_table *iptable_mangle;
1: + struct xt_table *iptable_raw;
1: + struct xt_table *arptable_filter;
1: + struct xt_table *iptable_security;
1: + struct xt_table *nat_table;
1: + int sysctl_icmp_echo_ignore_all;
1: + int sysctl_icmp_echo_ignore_broadcasts;
1: + int sysctl_icmp_ignore_bogus_error_responses;
1: + int sysctl_icmp_ratelimit;
1: + int sysctl_icmp_ratemask;
1: + int sysctl_icmp_errors_use_inbound_ifaddr;
1: + struct local_ports ip_local_ports;
1: + int sysctl_tcp_ecn;
1: + int sysctl_tcp_ecn_fallback;
1: + int sysctl_ip_default_ttl;
1: + int sysctl_ip_no_pmtu_disc;
1: + int sysctl_ip_fwd_use_pmtu;
1: + int sysctl_ip_fwd_update_priority;
1: + int sysctl_ip_nonlocal_bind;
1: + int sysctl_ip_autobind_reuse;
1: + int sysctl_ip_dynaddr;
1: + int sysctl_ip_early_demux;
1: + int sysctl_raw_l3mdev_accept;
1: + int sysctl_tcp_early_demux;
1: + int sysctl_udp_early_demux;
1: + int sysctl_nexthop_compat_mode;
1: + int sysctl_fwmark_reflect;
1: + int sysctl_tcp_fwmark_accept;
1: + int sysctl_tcp_l3mdev_accept;
1: + int sysctl_tcp_mtu_probing;
1: + int sysctl_tcp_mtu_probe_floor;
1: + int sysctl_tcp_base_mss;
1: + int sysctl_tcp_min_snd_mss;
1: + int sysctl_tcp_probe_threshold;
1: + u32 sysctl_tcp_probe_interval;
1: + int sysctl_tcp_keepalive_time;
1: + int sysctl_tcp_keepalive_probes;
1: + int sysctl_tcp_keepalive_intvl;
1: + int sysctl_tcp_syn_retries;
1: + int sysctl_tcp_synack_retries;
1: + int sysctl_tcp_syncookies;
1: + int sysctl_tcp_reordering;
1: + int sysctl_tcp_retries1;
1: + int sysctl_tcp_retries2;
1: + int sysctl_tcp_orphan_retries;
1: + int sysctl_tcp_fin_timeout;
1: + unsigned int sysctl_tcp_notsent_lowat;
1: + int sysctl_tcp_tw_reuse;
1: + int sysctl_tcp_sack;
1: + int sysctl_tcp_window_scaling;
1: + int sysctl_tcp_timestamps;
1: + int sysctl_tcp_early_retrans;
1: + int sysctl_tcp_recovery;
1: + int sysctl_tcp_thin_linear_timeouts;
1: + int sysctl_tcp_slow_start_after_idle;
1: + int sysctl_tcp_retrans_collapse;
1: + int sysctl_tcp_stdurg;
1: + int sysctl_tcp_rfc1337;
1: + int sysctl_tcp_abort_on_overflow;
1: + int sysctl_tcp_fack;
1: + int sysctl_tcp_max_reordering;
1: + int sysctl_tcp_dsack;
1: + int sysctl_tcp_app_win;
1: + int sysctl_tcp_adv_win_scale;
1: + int sysctl_tcp_frto;
1: + int sysctl_tcp_nometrics_save;
1: + int sysctl_tcp_no_ssthresh_metrics_save;
1: + int sysctl_tcp_moderate_rcvbuf;
1: + int sysctl_tcp_tso_win_divisor;
1: + int sysctl_tcp_workaround_signed_windows;
1: + int sysctl_tcp_limit_output_bytes;
1: + int sysctl_tcp_challenge_ack_limit;
1: + int sysctl_tcp_min_tso_segs;
1: + int sysctl_tcp_min_rtt_wlen;
1: + int sysctl_tcp_autocorking;
1: + int sysctl_tcp_invalid_ratelimit;
1: + int sysctl_tcp_pacing_ss_ratio;
1: + int sysctl_tcp_pacing_ca_ratio;
1: + int sysctl_tcp_wmem[3];
1: + int sysctl_tcp_rmem[3];
1: + int sysctl_tcp_comp_sack_nr;
1: + long unsigned int sysctl_tcp_comp_sack_delay_ns;
1: + long unsigned int sysctl_tcp_comp_sack_slack_ns;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct inet_timewait_death_row tcp_death_row;
1: + int sysctl_max_syn_backlog;
1: + int sysctl_tcp_fastopen;
1: + const struct tcp_congestion_ops *tcp_congestion_control;
1: + struct tcp_fastopen_context *tcp_fastopen_ctx;
1: + spinlock_t tcp_fastopen_ctx_lock;
1: + unsigned int sysctl_tcp_fastopen_blackhole_timeout;
1: + atomic_t tfo_active_disable_times;
1: + long unsigned int tfo_active_disable_stamp;
1: + int sysctl_tcp_reflect_tos;
1: + int sysctl_udp_wmem_min;
1: + int sysctl_udp_rmem_min;
1: + int sysctl_udp_l3mdev_accept;
1: + int sysctl_igmp_max_memberships;
1: + int sysctl_igmp_max_msf;
1: + int sysctl_igmp_llm_reports;
1: + int sysctl_igmp_qrv;
1: + struct ping_group_range ping_group_range;
1: + atomic_t dev_addr_genid;
1: + long unsigned int *sysctl_local_reserved_ports;
1: + int sysctl_ip_prot_sock;
1: + struct list_head mr_tables;
1: + struct fib_rules_ops *mr_rules_ops;
1: + int sysctl_fib_multipath_use_neigh;
1: + int sysctl_fib_multipath_hash_policy;
1: + struct fib_notifier_ops *notifier_ops;
1: + unsigned int fib_seq;
1: + struct fib_notifier_ops *ipmr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + atomic_t rt_genid;
1: + siphash_key_t ip_id_key;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct netns_sysctl_ipv6 {
1: + struct ctl_table_header *hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *icmp_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *xfrm6_hdr;
1: + int bindv6only;
1: + int flush_delay;
1: + int ip6_rt_max_size;
1: + int ip6_rt_gc_min_interval;
1: + int ip6_rt_gc_timeout;
1: + int ip6_rt_gc_interval;
1: + int ip6_rt_gc_elasticity;
1: + int ip6_rt_mtu_expires;
1: + int ip6_rt_min_advmss;
1: + int multipath_hash_policy;
1: + int flowlabel_consistency;
1: + int auto_flowlabels;
1: + int icmpv6_time;
1: + int icmpv6_echo_ignore_all;
1: + int icmpv6_echo_ignore_multicast;
1: + int icmpv6_echo_ignore_anycast;
1: + long unsigned int icmpv6_ratemask[4];
1: + long unsigned int *icmpv6_ratemask_ptr;
1: + int anycast_src_echo_reply;
1: + int ip_nonlocal_bind;
1: + int fwmark_reflect;
1: + int idgen_retries;
1: + int idgen_delay;
1: + int flowlabel_state_ranges;
1: + int flowlabel_reflect;
1: + int max_dst_opts_cnt;
1: + int max_hbh_opts_cnt;
1: + int max_dst_opts_len;
1: + int max_hbh_opts_len;
1: + int seg6_flowlabel;
1: + bool skip_notify_on_dev_down;
1: +};
1: +
1: +struct neighbour;
1: +
1: +struct dst_ops {
1: + short unsigned int family;
1: + unsigned int gc_thresh;
1: + int (*gc)(struct dst_ops *);
1: + struct dst_entry * (*check)(struct dst_entry *, __u32);
1: + unsigned int (*default_advmss)(const struct dst_entry *);
1: + unsigned int (*mtu)(const struct dst_entry *);
1: + u32 * (*cow_metrics)(struct dst_entry *, long unsigned int);
1: + void (*destroy)(struct dst_entry *);
1: + void (*ifdown)(struct dst_entry *, struct net_device *, int);
1: + struct dst_entry * (*negative_advice)(struct dst_entry *);
1: + void (*link_failure)(struct sk_buff *);
1: + void (*update_pmtu)(struct dst_entry *, struct sock *, struct sk_buff *, u32, bool);
1: + void (*redirect)(struct dst_entry *, struct sock *, struct sk_buff *);
1: + int (*local_out)(struct net *, struct sock *, struct sk_buff *);
1: + struct neighbour * (*neigh_lookup)(const struct dst_entry *, struct sk_buff *, const void *);
1: + void (*confirm_neigh)(const struct dst_entry *, const void *);
1: + struct kmem_cache *kmem_cachep;
1: + struct percpu_counter pcpuc_entries;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ipv6_devconf;
1: +
1: +struct fib6_info;
1: +
1: +struct rt6_info;
1: +
1: +struct rt6_statistics;
1: +
1: +struct fib6_table;
1: +
1: +struct seg6_pernet_data;
1: +
1: +struct netns_ipv6 {
1: + struct netns_sysctl_ipv6 sysctl;
1: + struct ipv6_devconf *devconf_all;
1: + struct ipv6_devconf *devconf_dflt;
1: + struct inet_peer_base *peers;
1: + struct fqdir *fqdir;
1: + struct xt_table *ip6table_filter;
1: + struct xt_table *ip6table_mangle;
1: + struct xt_table *ip6table_raw;
1: + struct xt_table *ip6table_security;
1: + struct xt_table *ip6table_nat;
1: + struct fib6_info *fib6_null_entry;
1: + struct rt6_info *ip6_null_entry;
1: + struct rt6_statistics *rt6_stats;
1: + struct timer_list ip6_fib_timer;
1: + struct hlist_head *fib_table_hash;
1: + struct fib6_table *fib6_main_tbl;
1: + struct list_head fib6_walkers;
1: + long: 64;
1: + long: 64;
1: + struct dst_ops ip6_dst_ops;
1: + rwlock_t fib6_walker_lock;
1: + spinlock_t fib6_gc_lock;
1: + unsigned int ip6_rt_gc_expire;
1: + long unsigned int ip6_rt_last_gc;
1: + unsigned int fib6_rules_require_fldissect;
1: + bool fib6_has_custom_rules;
1: + unsigned int fib6_routes_require_src;
1: + struct rt6_info *ip6_prohibit_entry;
1: + struct rt6_info *ip6_blk_hole_entry;
1: + struct fib6_table *fib6_local_tbl;
1: + struct fib_rules_ops *fib6_rules_ops;
1: + struct sock **icmp_sk;
1: + struct sock *ndisc_sk;
1: + struct sock *tcp_sk;
1: + struct sock *igmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct list_head mr6_tables;
1: + struct fib_rules_ops *mr6_rules_ops;
1: + atomic_t dev_addr_genid;
1: + atomic_t fib6_sernum;
1: + struct seg6_pernet_data *seg6_data;
1: + struct fib_notifier_ops *notifier_ops;
1: + struct fib_notifier_ops *ip6mr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + struct {
1: + struct hlist_head head;
1: + spinlock_t lock;
1: + u32 seq;
1: + } ip6addrlbl_table;
1: +};
1: +
1: +struct netns_sysctl_lowpan {
1: + struct ctl_table_header *frags_hdr;
1: +};
1: +
1: +struct netns_ieee802154_lowpan {
1: + struct netns_sysctl_lowpan sysctl;
1: + struct fqdir *fqdir;
1: +};
1: +
1: +struct sctp_mib;
1: +
1: +struct netns_sctp {
1: + struct sctp_mib *sctp_statistics;
1: + struct proc_dir_entry *proc_net_sctp;
1: + struct ctl_table_header *sysctl_header;
1: + struct sock *ctl_sock;
1: + struct list_head local_addr_list;
1: + struct list_head addr_waitq;
1: + struct timer_list addr_wq_timer;
1: + struct list_head auto_asconf_splist;
1: + spinlock_t addr_wq_lock;
1: + spinlock_t local_addr_lock;
1: + unsigned int rto_initial;
1: + unsigned int rto_min;
1: + unsigned int rto_max;
1: + int rto_alpha;
1: + int rto_beta;
1: + int max_burst;
1: + int cookie_preserve_enable;
1: + char *sctp_hmac_alg;
1: + unsigned int valid_cookie_life;
1: + unsigned int sack_timeout;
1: + unsigned int hb_interval;
1: + int max_retrans_association;
1: + int max_retrans_path;
1: + int max_retrans_init;
1: + int pf_retrans;
1: + int ps_retrans;
1: + int pf_enable;
1: + int pf_expose;
1: + int sndbuf_policy;
1: + int rcvbuf_policy;
1: + int default_auto_asconf;
1: + int addip_enable;
1: + int addip_noauth;
1: + int prsctp_enable;
1: + int reconf_enable;
1: + int auth_enable;
1: + int intl_enable;
1: + int ecn_enable;
1: + int scope_policy;
1: + int rwnd_upd_shift;
1: + long unsigned int max_autoclose;
1: +};
1: +
1: +struct netns_dccp {
1: + struct sock *v4_ctl_sk;
1: + struct sock *v6_ctl_sk;
1: +};
1: +
1: +struct nf_queue_handler;
1: +
1: +struct nf_logger;
1: +
1: +struct nf_hook_entries;
1: +
1: +struct netns_nf {
1: + struct proc_dir_entry *proc_netfilter;
1: + const struct nf_queue_handler *queue_handler;
1: + const struct nf_logger *nf_loggers[13];
1: + struct ctl_table_header *nf_log_dir_header;
1: + struct nf_hook_entries *hooks_ipv4[5];
1: + struct nf_hook_entries *hooks_ipv6[5];
1: + struct nf_hook_entries *hooks_arp[3];
1: + struct nf_hook_entries *hooks_bridge[5];
1: + struct nf_hook_entries *hooks_decnet[7];
1: + bool defrag_ipv4;
1: + bool defrag_ipv6;
1: +};
1: +
1: +struct ebt_table;
1: +
1: +struct netns_xt {
1: + struct list_head tables[13];
1: + bool notrack_deprecated_warning;
1: + bool clusterip_deprecated_warning;
1: + struct ebt_table *broute_table;
1: + struct ebt_table *frame_filter;
1: + struct ebt_table *frame_nat;
1: +};
1: +
1: +struct nf_generic_net {
1: + unsigned int timeout;
1: +};
1: +
1: +struct nf_tcp_net {
1: + unsigned int timeouts[14];
1: + int tcp_loose;
1: + int tcp_be_liberal;
1: + int tcp_max_retrans;
1: +};
1: +
1: +struct nf_udp_net {
1: + unsigned int timeouts[2];
1: +};
1: +
1: +struct nf_icmp_net {
1: + unsigned int timeout;
1: +};
1: +
1: +struct nf_dccp_net {
1: + int dccp_loose;
1: + unsigned int dccp_timeout[10];
1: +};
1: +
1: +struct nf_sctp_net {
1: + unsigned int timeouts[10];
1: +};
1: +
1: +struct nf_gre_net {
1: + struct list_head keymap_list;
1: + unsigned int timeouts[2];
1: +};
1: +
1: +struct nf_ip_net {
1: + struct nf_generic_net generic;
1: + struct nf_tcp_net tcp;
1: + struct nf_udp_net udp;
1: + struct nf_icmp_net icmp;
1: + struct nf_icmp_net icmpv6;
1: + struct nf_dccp_net dccp;
1: + struct nf_sctp_net sctp;
1: + struct nf_gre_net gre;
1: +};
1: +
1: +struct ct_pcpu;
1: +
1: +struct ip_conntrack_stat;
1: +
1: +struct nf_ct_event_notifier;
1: +
1: +struct nf_exp_event_notifier;
1: +
1: +struct netns_ct {
1: + atomic_t count;
1: + unsigned int expect_count;
1: + struct delayed_work ecache_dwork;
1: + bool ecache_dwork_pending;
1: + bool auto_assign_helper_warned;
1: + struct ctl_table_header *sysctl_header;
1: + unsigned int sysctl_log_invalid;
1: + int sysctl_events;
1: + int sysctl_acct;
1: + int sysctl_auto_assign_helper;
1: + int sysctl_tstamp;
1: + int sysctl_checksum;
1: + struct ct_pcpu *pcpu_lists;
1: + struct ip_conntrack_stat *stat;
1: + struct nf_ct_event_notifier *nf_conntrack_event_cb;
1: + struct nf_exp_event_notifier *nf_expect_event_cb;
1: + struct nf_ip_net nf_ct_proto;
1: + unsigned int labels_used;
1: +};
1: +
1: +struct netns_nftables {
1: + struct list_head tables;
1: + struct list_head commit_list;
1: + struct list_head module_list;
1: + struct list_head notify_list;
1: + struct mutex commit_mutex;
1: + unsigned int base_seq;
1: + u8 gencursor;
1: + u8 validate_state;
1: +};
1: +
1: +struct netns_nf_frag {
1: + struct fqdir *fqdir;
1: +};
1: +
1: +struct netns_bpf {
1: + struct bpf_prog_array *run_array[2];
1: + struct bpf_prog *progs[2];
1: + struct list_head links[2];
1: +};
1: +
1: +struct xfrm_policy_hash {
1: + struct hlist_head *table;
1: + unsigned int hmask;
1: + u8 dbits4;
1: + u8 sbits4;
1: + u8 dbits6;
1: + u8 sbits6;
1: +};
1: +
1: +struct xfrm_policy_hthresh {
1: + struct work_struct work;
1: + seqlock_t lock;
1: + u8 lbits4;
1: + u8 rbits4;
1: + u8 lbits6;
1: + u8 rbits6;
1: +};
1: +
1: +struct netns_xfrm {
1: + struct list_head state_all;
1: + struct hlist_head *state_bydst;
1: + struct hlist_head *state_bysrc;
1: + struct hlist_head *state_byspi;
1: + unsigned int state_hmask;
1: + unsigned int state_num;
1: + struct work_struct state_hash_work;
1: + struct list_head policy_all;
1: + struct hlist_head *policy_byidx;
1: + unsigned int policy_idx_hmask;
1: + struct hlist_head policy_inexact[3];
1: + struct xfrm_policy_hash policy_bydst[3];
1: + unsigned int policy_count[6];
1: + struct work_struct policy_hash_work;
1: + struct xfrm_policy_hthresh policy_hthresh;
1: + struct list_head inexact_bins;
1: + struct sock *nlsk;
1: + struct sock *nlsk_stash;
1: + u32 sysctl_aevent_etime;
1: + u32 sysctl_aevent_rseqth;
1: + int sysctl_larval_drop;
1: + u32 sysctl_acq_expires;
1: + struct ctl_table_header *sysctl_hdr;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct dst_ops xfrm4_dst_ops;
1: + struct dst_ops xfrm6_dst_ops;
1: + spinlock_t xfrm_state_lock;
1: + spinlock_t xfrm_policy_lock;
1: + struct mutex xfrm_cfg_mutex;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct netns_ipvs;
1: +
1: +struct mpls_route;
1: +
1: +struct netns_mpls {
1: + int ip_ttl_propagate;
1: + int default_ttl;
1: + size_t platform_labels;
1: + struct mpls_route **platform_label;
1: + struct ctl_table_header *ctl;
1: +};
1: +
1: +struct can_dev_rcv_lists;
1: +
1: +struct can_pkg_stats;
1: +
1: +struct can_rcv_lists_stats;
1: +
1: +struct netns_can {
1: + struct proc_dir_entry *proc_dir;
1: + struct proc_dir_entry *pde_stats;
1: + struct proc_dir_entry *pde_reset_stats;
1: + struct proc_dir_entry *pde_rcvlist_all;
1: + struct proc_dir_entry *pde_rcvlist_fil;
1: + struct proc_dir_entry *pde_rcvlist_inv;
1: + struct proc_dir_entry *pde_rcvlist_sff;
1: + struct proc_dir_entry *pde_rcvlist_eff;
1: + struct proc_dir_entry *pde_rcvlist_err;
1: + struct proc_dir_entry *bcmproc_dir;
1: + struct can_dev_rcv_lists *rx_alldev_list;
1: + spinlock_t rcvlists_lock;
1: + struct timer_list stattimer;
1: + struct can_pkg_stats *pkg_stats;
1: + struct can_rcv_lists_stats *rcv_lists_stats;
1: + struct hlist_head cgw_list;
1: +};
1: +
1: +struct netns_xdp {
1: + struct mutex lock;
1: + struct hlist_head list;
1: +};
1: +
1: +struct uevent_sock;
1: +
1: +struct net_generic;
1: +
1: +struct net {
1: + refcount_t passive;
1: + refcount_t count;
1: + spinlock_t rules_mod_lock;
1: + unsigned int dev_unreg_count;
1: + unsigned int dev_base_seq;
1: + int ifindex;
1: + spinlock_t nsid_lock;
1: + atomic_t fnhe_genid;
1: + struct list_head list;
1: + struct list_head exit_list;
1: + struct llist_node cleanup_list;
1: + struct key_tag *key_domain;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct idr netns_ids;
1: + struct ns_common ns;
1: + struct list_head dev_base_head;
1: + struct proc_dir_entry *proc_net;
1: + struct proc_dir_entry *proc_net_stat;
1: + struct ctl_table_set sysctls;
1: + struct sock *rtnl;
1: + struct sock *genl_sock;
1: + struct uevent_sock *uevent_sock;
1: + struct hlist_head *dev_name_head;
1: + struct hlist_head *dev_index_head;
1: + struct raw_notifier_head netdev_chain;
1: + u32 hash_mix;
1: + struct net_device *loopback_dev;
1: + struct list_head rules_ops;
1: + struct netns_core core;
1: + struct netns_mib mib;
1: + struct netns_packet packet;
1: + struct netns_unix unx;
1: + struct netns_nexthop nexthop;
1: + long: 64;
1: + struct netns_ipv4 ipv4;
1: + struct netns_ipv6 ipv6;
1: + struct netns_ieee802154_lowpan ieee802154_lowpan;
1: + struct netns_sctp sctp;
1: + struct netns_dccp dccp;
1: + struct netns_nf nf;
1: + struct netns_xt xt;
1: + struct netns_ct ct;
1: + struct netns_nftables nft;
1: + struct netns_nf_frag nf_frag;
1: + struct ctl_table_header *nf_frag_frags_hdr;
1: + struct sock *nfnl;
1: + struct sock *nfnl_stash;
1: + struct list_head nfnl_acct_list;
1: + struct list_head nfct_timeout_list;
1: + struct sk_buff_head wext_nlevents;
1: + struct net_generic *gen;
1: + struct netns_bpf bpf;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct netns_xfrm xfrm;
1: + atomic64_t net_cookie;
1: + struct netns_ipvs *ipvs;
1: + struct netns_mpls mpls;
1: + struct netns_can can;
1: + struct netns_xdp xdp;
1: + struct sock *crypto_nlsk;
1: + struct sock *diag_nlsk;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef struct {
1: + local64_t v;
1: +} u64_stats_t;
1: +
1: +struct bpf_insn {
1: + __u8 code;
1: + __u8 dst_reg: 4;
1: + __u8 src_reg: 4;
1: + __s16 off;
1: + __s32 imm;
1: +};
1: +
1: +enum bpf_map_type {
1: + BPF_MAP_TYPE_UNSPEC = 0,
1: + BPF_MAP_TYPE_HASH = 1,
1: + BPF_MAP_TYPE_ARRAY = 2,
1: + BPF_MAP_TYPE_PROG_ARRAY = 3,
1: + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4,
1: + BPF_MAP_TYPE_PERCPU_HASH = 5,
1: + BPF_MAP_TYPE_PERCPU_ARRAY = 6,
1: + BPF_MAP_TYPE_STACK_TRACE = 7,
1: + BPF_MAP_TYPE_CGROUP_ARRAY = 8,
1: + BPF_MAP_TYPE_LRU_HASH = 9,
1: + BPF_MAP_TYPE_LRU_PERCPU_HASH = 10,
1: + BPF_MAP_TYPE_LPM_TRIE = 11,
1: + BPF_MAP_TYPE_ARRAY_OF_MAPS = 12,
1: + BPF_MAP_TYPE_HASH_OF_MAPS = 13,
1: + BPF_MAP_TYPE_DEVMAP = 14,
1: + BPF_MAP_TYPE_SOCKMAP = 15,
1: + BPF_MAP_TYPE_CPUMAP = 16,
1: + BPF_MAP_TYPE_XSKMAP = 17,
1: + BPF_MAP_TYPE_SOCKHASH = 18,
1: + BPF_MAP_TYPE_CGROUP_STORAGE = 19,
1: + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20,
1: + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21,
1: + BPF_MAP_TYPE_QUEUE = 22,
1: + BPF_MAP_TYPE_STACK = 23,
1: + BPF_MAP_TYPE_SK_STORAGE = 24,
1: + BPF_MAP_TYPE_DEVMAP_HASH = 25,
1: + BPF_MAP_TYPE_STRUCT_OPS = 26,
1: + BPF_MAP_TYPE_RINGBUF = 27,
1: + BPF_MAP_TYPE_INODE_STORAGE = 28,
1: +};
1: +
1: +enum bpf_prog_type {
1: + BPF_PROG_TYPE_UNSPEC = 0,
1: + BPF_PROG_TYPE_SOCKET_FILTER = 1,
1: + BPF_PROG_TYPE_KPROBE = 2,
1: + BPF_PROG_TYPE_SCHED_CLS = 3,
1: + BPF_PROG_TYPE_SCHED_ACT = 4,
1: + BPF_PROG_TYPE_TRACEPOINT = 5,
1: + BPF_PROG_TYPE_XDP = 6,
1: + BPF_PROG_TYPE_PERF_EVENT = 7,
1: + BPF_PROG_TYPE_CGROUP_SKB = 8,
1: + BPF_PROG_TYPE_CGROUP_SOCK = 9,
1: + BPF_PROG_TYPE_LWT_IN = 10,
1: + BPF_PROG_TYPE_LWT_OUT = 11,
1: + BPF_PROG_TYPE_LWT_XMIT = 12,
1: + BPF_PROG_TYPE_SOCK_OPS = 13,
1: + BPF_PROG_TYPE_SK_SKB = 14,
1: + BPF_PROG_TYPE_CGROUP_DEVICE = 15,
1: + BPF_PROG_TYPE_SK_MSG = 16,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT = 17,
1: + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18,
1: + BPF_PROG_TYPE_LWT_SEG6LOCAL = 19,
1: + BPF_PROG_TYPE_LIRC_MODE2 = 20,
1: + BPF_PROG_TYPE_SK_REUSEPORT = 21,
1: + BPF_PROG_TYPE_FLOW_DISSECTOR = 22,
1: + BPF_PROG_TYPE_CGROUP_SYSCTL = 23,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 24,
1: + BPF_PROG_TYPE_CGROUP_SOCKOPT = 25,
1: + BPF_PROG_TYPE_TRACING = 26,
1: + BPF_PROG_TYPE_STRUCT_OPS = 27,
1: + BPF_PROG_TYPE_EXT = 28,
1: + BPF_PROG_TYPE_LSM = 29,
1: + BPF_PROG_TYPE_SK_LOOKUP = 30,
1: +};
1: +
1: +enum bpf_attach_type {
1: + BPF_CGROUP_INET_INGRESS = 0,
1: + BPF_CGROUP_INET_EGRESS = 1,
1: + BPF_CGROUP_INET_SOCK_CREATE = 2,
1: + BPF_CGROUP_SOCK_OPS = 3,
1: + BPF_SK_SKB_STREAM_PARSER = 4,
1: + BPF_SK_SKB_STREAM_VERDICT = 5,
1: + BPF_CGROUP_DEVICE = 6,
1: + BPF_SK_MSG_VERDICT = 7,
1: + BPF_CGROUP_INET4_BIND = 8,
1: + BPF_CGROUP_INET6_BIND = 9,
1: + BPF_CGROUP_INET4_CONNECT = 10,
1: + BPF_CGROUP_INET6_CONNECT = 11,
1: + BPF_CGROUP_INET4_POST_BIND = 12,
1: + BPF_CGROUP_INET6_POST_BIND = 13,
1: + BPF_CGROUP_UDP4_SENDMSG = 14,
1: + BPF_CGROUP_UDP6_SENDMSG = 15,
1: + BPF_LIRC_MODE2 = 16,
1: + BPF_FLOW_DISSECTOR = 17,
1: + BPF_CGROUP_SYSCTL = 18,
1: + BPF_CGROUP_UDP4_RECVMSG = 19,
1: + BPF_CGROUP_UDP6_RECVMSG = 20,
1: + BPF_CGROUP_GETSOCKOPT = 21,
1: + BPF_CGROUP_SETSOCKOPT = 22,
1: + BPF_TRACE_RAW_TP = 23,
1: + BPF_TRACE_FENTRY = 24,
1: + BPF_TRACE_FEXIT = 25,
1: + BPF_MODIFY_RETURN = 26,
1: + BPF_LSM_MAC = 27,
1: + BPF_TRACE_ITER = 28,
1: + BPF_CGROUP_INET4_GETPEERNAME = 29,
1: + BPF_CGROUP_INET6_GETPEERNAME = 30,
1: + BPF_CGROUP_INET4_GETSOCKNAME = 31,
1: + BPF_CGROUP_INET6_GETSOCKNAME = 32,
1: + BPF_XDP_DEVMAP = 33,
1: + BPF_CGROUP_INET_SOCK_RELEASE = 34,
1: + BPF_XDP_CPUMAP = 35,
1: + BPF_SK_LOOKUP = 36,
1: + BPF_XDP = 37,
1: + __MAX_BPF_ATTACH_TYPE = 38,
1: +};
1: +
1: +union bpf_attr {
1: + struct {
1: + __u32 map_type;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + __u32 inner_map_fd;
1: + __u32 numa_node;
1: + char map_name[16];
1: + __u32 map_ifindex;
1: + __u32 btf_fd;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: + __u32 btf_vmlinux_value_type_id;
1: + };
1: + struct {
1: + __u32 map_fd;
1: + __u64 key;
1: + union {
1: + __u64 value;
1: + __u64 next_key;
1: + };
1: + __u64 flags;
1: + };
1: + struct {
1: + __u64 in_batch;
1: + __u64 out_batch;
1: + __u64 keys;
1: + __u64 values;
1: + __u32 count;
1: + __u32 map_fd;
1: + __u64 elem_flags;
1: + __u64 flags;
1: + } batch;
1: + struct {
1: + __u32 prog_type;
1: + __u32 insn_cnt;
1: + __u64 insns;
1: + __u64 license;
1: + __u32 log_level;
1: + __u32 log_size;
1: + __u64 log_buf;
1: + __u32 kern_version;
1: + __u32 prog_flags;
1: + char prog_name[16];
1: + __u32 prog_ifindex;
1: + __u32 expected_attach_type;
1: + __u32 prog_btf_fd;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 func_info_cnt;
1: + __u32 line_info_rec_size;
1: + __u64 line_info;
1: + __u32 line_info_cnt;
1: + __u32 attach_btf_id;
1: + __u32 attach_prog_fd;
1: + };
1: + struct {
1: + __u64 pathname;
1: + __u32 bpf_fd;
1: + __u32 file_flags;
1: + };
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_bpf_fd;
1: + __u32 attach_type;
1: + __u32 attach_flags;
1: + __u32 replace_bpf_fd;
1: + };
1: + struct {
1: + __u32 prog_fd;
1: + __u32 retval;
1: + __u32 data_size_in;
1: + __u32 data_size_out;
1: + __u64 data_in;
1: + __u64 data_out;
1: + __u32 repeat;
1: + __u32 duration;
1: + __u32 ctx_size_in;
1: + __u32 ctx_size_out;
1: + __u64 ctx_in;
1: + __u64 ctx_out;
1: + __u32 flags;
1: + __u32 cpu;
1: + } test;
1: + struct {
1: + union {
1: + __u32 start_id;
1: + __u32 prog_id;
1: + __u32 map_id;
1: + __u32 btf_id;
1: + __u32 link_id;
1: + };
1: + __u32 next_id;
1: + __u32 open_flags;
1: + };
1: + struct {
1: + __u32 bpf_fd;
1: + __u32 info_len;
1: + __u64 info;
1: + } info;
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_type;
1: + __u32 query_flags;
1: + __u32 attach_flags;
1: + __u64 prog_ids;
1: + __u32 prog_cnt;
1: + } query;
1: + struct {
1: + __u64 name;
1: + __u32 prog_fd;
1: + } raw_tracepoint;
1: + struct {
1: + __u64 btf;
1: + __u64 btf_log_buf;
1: + __u32 btf_size;
1: + __u32 btf_log_size;
1: + __u32 btf_log_level;
1: + };
1: + struct {
1: + __u32 pid;
1: + __u32 fd;
1: + __u32 flags;
1: + __u32 buf_len;
1: + __u64 buf;
1: + __u32 prog_id;
1: + __u32 fd_type;
1: + __u64 probe_offset;
1: + __u64 probe_addr;
1: + } task_fd_query;
1: + struct {
1: + __u32 prog_fd;
1: + union {
1: + __u32 target_fd;
1: + __u32 target_ifindex;
1: + };
1: + __u32 attach_type;
1: + __u32 flags;
1: + union {
1: + __u32 target_btf_id;
1: + struct {
1: + __u64 iter_info;
1: + __u32 iter_info_len;
1: + };
1: + };
1: + } link_create;
1: + struct {
1: + __u32 link_fd;
1: + __u32 new_prog_fd;
1: + __u32 flags;
1: + __u32 old_prog_fd;
1: + } link_update;
1: + struct {
1: + __u32 link_fd;
1: + } link_detach;
1: + struct {
1: + __u32 type;
1: + } enable_stats;
1: + struct {
1: + __u32 link_fd;
1: + __u32 flags;
1: + } iter_create;
1: + struct {
1: + __u32 prog_fd;
1: + __u32 map_fd;
1: + __u32 flags;
1: + } prog_bind_map;
1: +};
1: +
1: +struct bpf_func_info {
1: + __u32 insn_off;
1: + __u32 type_id;
1: +};
1: +
1: +struct bpf_line_info {
1: + __u32 insn_off;
1: + __u32 file_name_off;
1: + __u32 line_off;
1: + __u32 line_col;
1: +};
1: +
1: +struct bpf_iter_aux_info;
1: +
1: +typedef int (*bpf_iter_init_seq_priv_t)(void *, struct bpf_iter_aux_info *);
1: +
1: +struct bpf_map;
1: +
1: +struct bpf_iter_aux_info {
1: + struct bpf_map *map;
1: +};
1: +
1: +typedef void (*bpf_iter_fini_seq_priv_t)(void *);
1: +
1: +struct bpf_iter_seq_info {
1: + const struct seq_operations *seq_ops;
1: + bpf_iter_init_seq_priv_t init_seq_private;
1: + bpf_iter_fini_seq_priv_t fini_seq_private;
1: + u32 seq_priv_size;
1: +};
1: +
1: +struct btf;
1: +
1: +struct btf_type;
1: +
1: +struct bpf_prog_aux;
1: +
1: +struct bpf_local_storage_map;
1: +
1: +struct bpf_map_ops {
1: + int (*map_alloc_check)(union bpf_attr *);
1: + struct bpf_map * (*map_alloc)(union bpf_attr *);
1: + void (*map_release)(struct bpf_map *, struct file *);
1: + void (*map_free)(struct bpf_map *);
1: + int (*map_get_next_key)(struct bpf_map *, void *, void *);
1: + void (*map_release_uref)(struct bpf_map *);
1: + void * (*map_lookup_elem_sys_only)(struct bpf_map *, void *);
1: + int (*map_lookup_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_lookup_and_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_update_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + void * (*map_lookup_elem)(struct bpf_map *, void *);
1: + int (*map_update_elem)(struct bpf_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_map *, void *);
1: + int (*map_push_elem)(struct bpf_map *, void *, u64);
1: + int (*map_pop_elem)(struct bpf_map *, void *);
1: + int (*map_peek_elem)(struct bpf_map *, void *);
1: + void * (*map_fd_get_ptr)(struct bpf_map *, struct file *, int);
1: + void (*map_fd_put_ptr)(void *);
1: + int (*map_gen_lookup)(struct bpf_map *, struct bpf_insn *);
1: + u32 (*map_fd_sys_lookup_elem)(void *);
1: + void (*map_seq_show_elem)(struct bpf_map *, void *, struct seq_file *);
1: + int (*map_check_btf)(const struct bpf_map *, const struct btf *, const struct btf_type *, const struct btf_type *);
1: + int (*map_poke_track)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_untrack)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_run)(struct bpf_map *, u32, struct bpf_prog *, struct bpf_prog *);
1: + int (*map_direct_value_addr)(const struct bpf_map *, u64 *, u32);
1: + int (*map_direct_value_meta)(const struct bpf_map *, u64, u32 *);
1: + int (*map_mmap)(struct bpf_map *, struct vm_area_struct *);
1: + __poll_t (*map_poll)(struct bpf_map *, struct file *, struct poll_table_struct *);
1: + int (*map_local_storage_charge)(struct bpf_local_storage_map *, void *, u32);
1: + void (*map_local_storage_uncharge)(struct bpf_local_storage_map *, void *, u32);
1: + struct bpf_local_storage ** (*map_owner_storage_ptr)(void *);
1: + bool (*map_meta_equal)(const struct bpf_map *, const struct bpf_map *);
1: + const char * const map_btf_name;
1: + int *map_btf_id;
1: + const struct bpf_iter_seq_info *iter_seq_info;
1: +};
1: +
1: +struct bpf_map_memory {
1: + u32 pages;
1: + struct user_struct *user;
1: +};
1: +
1: +struct bpf_map {
1: + const struct bpf_map_ops *ops;
1: + struct bpf_map *inner_map_meta;
1: + void *security;
1: + enum bpf_map_type map_type;
1: + u32 key_size;
1: + u32 value_size;
1: + u32 max_entries;
1: + u32 map_flags;
1: + int spin_lock_off;
1: + u32 id;
1: + int numa_node;
1: + u32 btf_key_type_id;
1: + u32 btf_value_type_id;
1: + struct btf *btf;
1: + struct bpf_map_memory memory;
1: + char name[16];
1: + u32 btf_vmlinux_value_type_id;
1: + bool bypass_spec_v1;
1: + bool frozen;
1: + long: 16;
1: + long: 64;
1: + long: 64;
1: + atomic64_t refcnt;
1: + atomic64_t usercnt;
1: + struct work_struct work;
1: + struct mutex freeze_mutex;
1: + u64 writecnt;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct btf_header {
1: + __u16 magic;
1: + __u8 version;
1: + __u8 flags;
1: + __u32 hdr_len;
1: + __u32 type_off;
1: + __u32 type_len;
1: + __u32 str_off;
1: + __u32 str_len;
1: +};
1: +
1: +struct btf {
1: + void *data;
1: + struct btf_type **types;
1: + u32 *resolved_ids;
1: + u32 *resolved_sizes;
1: + const char *strings;
1: + void *nohdr_data;
1: + struct btf_header hdr;
1: + u32 nr_types;
1: + u32 types_size;
1: + u32 data_size;
1: + refcount_t refcnt;
1: + u32 id;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct btf_type {
1: + __u32 name_off;
1: + __u32 info;
1: + union {
1: + __u32 size;
1: + __u32 type;
1: + };
1: +};
1: +
1: +enum bpf_tramp_prog_type {
1: + BPF_TRAMP_FENTRY = 0,
1: + BPF_TRAMP_FEXIT = 1,
1: + BPF_TRAMP_MODIFY_RETURN = 2,
1: + BPF_TRAMP_MAX = 3,
1: + BPF_TRAMP_REPLACE = 4,
1: +};
1: +
1: +struct bpf_ksym {
1: + long unsigned int start;
1: + long unsigned int end;
1: + char name[128];
1: + struct list_head lnode;
1: + struct latch_tree_node tnode;
1: + bool prog;
1: +};
1: +
1: +struct bpf_ctx_arg_aux;
1: +
1: +struct bpf_trampoline;
1: +
1: +struct bpf_jit_poke_descriptor;
1: +
1: +struct bpf_prog_ops;
1: +
1: +struct bpf_prog_offload;
1: +
1: +struct bpf_func_info_aux;
1: +
1: +struct bpf_prog_stats;
1: +
1: +struct bpf_prog_aux {
1: + atomic64_t refcnt;
1: + u32 used_map_cnt;
1: + u32 max_ctx_offset;
1: + u32 max_pkt_offset;
1: + u32 max_tp_access;
1: + u32 stack_depth;
1: + u32 id;
1: + u32 func_cnt;
1: + u32 func_idx;
1: + u32 attach_btf_id;
1: + u32 ctx_arg_info_size;
1: + u32 max_rdonly_access;
1: + u32 max_rdwr_access;
1: + const struct bpf_ctx_arg_aux *ctx_arg_info;
1: + struct mutex dst_mutex;
1: + struct bpf_prog *dst_prog;
1: + struct bpf_trampoline *dst_trampoline;
1: + enum bpf_prog_type saved_dst_prog_type;
1: + enum bpf_attach_type saved_dst_attach_type;
1: + bool verifier_zext;
1: + bool offload_requested;
1: + bool attach_btf_trace;
1: + bool func_proto_unreliable;
1: + bool sleepable;
1: + bool tail_call_reachable;
1: + enum bpf_tramp_prog_type trampoline_prog_type;
1: + struct hlist_node tramp_hlist;
1: + const struct btf_type *attach_func_proto;
1: + const char *attach_func_name;
1: + struct bpf_prog **func;
1: + void *jit_data;
1: + struct bpf_jit_poke_descriptor *poke_tab;
1: + u32 size_poke_tab;
1: + struct bpf_ksym ksym;
1: + const struct bpf_prog_ops *ops;
1: + struct bpf_map **used_maps;
1: + struct mutex used_maps_mutex;
1: + struct bpf_prog *prog;
1: + struct user_struct *user;
1: + u64 load_time;
1: + struct bpf_map *cgroup_storage[2];
1: + char name[16];
1: + void *security;
1: + struct bpf_prog_offload *offload;
1: + struct btf *btf;
1: + struct bpf_func_info *func_info;
1: + struct bpf_func_info_aux *func_info_aux;
1: + struct bpf_line_info *linfo;
1: + void **jited_linfo;
1: + u32 func_info_cnt;
1: + u32 nr_linfo;
1: + u32 linfo_idx;
1: + u32 num_exentries;
1: + struct exception_table_entry *extable;
1: + struct bpf_prog_stats *stats;
1: + union {
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct sock_filter {
1: + __u16 code;
1: + __u8 jt;
1: + __u8 jf;
1: + __u32 k;
1: +};
1: +
1: +struct sock_fprog_kern;
1: +
1: +struct bpf_prog {
1: + u16 pages;
1: + u16 jited: 1;
1: + u16 jit_requested: 1;
1: + u16 gpl_compatible: 1;
1: + u16 cb_access: 1;
1: + u16 dst_needed: 1;
1: + u16 blinded: 1;
1: + u16 is_func: 1;
1: + u16 kprobe_override: 1;
1: + u16 has_callchain_buf: 1;
1: + u16 enforce_expected_attach_type: 1;
1: + u16 call_get_stack: 1;
1: + enum bpf_prog_type type;
1: + enum bpf_attach_type expected_attach_type;
1: + u32 len;
1: + u32 jited_len;
1: + u8 tag[8];
1: + struct bpf_prog_aux *aux;
1: + struct sock_fprog_kern *orig_prog;
1: + unsigned int (*bpf_func)(const void *, const struct bpf_insn *);
1: + struct sock_filter insns[0];
1: + struct bpf_insn insnsi[0];
1: +};
1: +
1: +struct bpf_offloaded_map;
1: +
1: +struct bpf_map_dev_ops {
1: + int (*map_get_next_key)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_lookup_elem)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_update_elem)(struct bpf_offloaded_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_offloaded_map *, void *);
1: +};
1: +
1: +struct bpf_offloaded_map {
1: + struct bpf_map map;
1: + struct net_device *netdev;
1: + const struct bpf_map_dev_ops *dev_ops;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct net_device_stats {
1: + long unsigned int rx_packets;
1: + long unsigned int tx_packets;
1: + long unsigned int rx_bytes;
1: + long unsigned int tx_bytes;
1: + long unsigned int rx_errors;
1: + long unsigned int tx_errors;
1: + long unsigned int rx_dropped;
1: + long unsigned int tx_dropped;
1: + long unsigned int multicast;
1: + long unsigned int collisions;
1: + long unsigned int rx_length_errors;
1: + long unsigned int rx_over_errors;
1: + long unsigned int rx_crc_errors;
1: + long unsigned int rx_frame_errors;
1: + long unsigned int rx_fifo_errors;
1: + long unsigned int rx_missed_errors;
1: + long unsigned int tx_aborted_errors;
1: + long unsigned int tx_carrier_errors;
1: + long unsigned int tx_fifo_errors;
1: + long unsigned int tx_heartbeat_errors;
1: + long unsigned int tx_window_errors;
1: + long unsigned int rx_compressed;
1: + long unsigned int tx_compressed;
1: +};
1: +
1: +struct netdev_hw_addr_list {
1: + struct list_head list;
1: + int count;
1: +};
1: +
1: +struct tipc_bearer;
1: +
1: +struct dn_dev;
1: +
1: +struct mpls_dev;
1: +
1: +enum rx_handler_result {
1: + RX_HANDLER_CONSUMED = 0,
1: + RX_HANDLER_ANOTHER = 1,
1: + RX_HANDLER_EXACT = 2,
1: + RX_HANDLER_PASS = 3,
1: +};
1: +
1: +typedef enum rx_handler_result rx_handler_result_t;
1: +
1: +typedef rx_handler_result_t rx_handler_func_t(struct sk_buff **);
1: +
1: +struct pcpu_dstats;
1: +
1: +struct garp_port;
1: +
1: +struct mrp_port;
1: +
1: +struct netdev_tc_txq {
1: + u16 count;
1: + u16 offset;
1: +};
1: +
1: +struct macsec_ops;
1: +
1: +struct udp_tunnel_nic;
1: +
1: +struct bpf_xdp_link;
1: +
1: +struct bpf_xdp_entity {
1: + struct bpf_prog *prog;
1: + struct bpf_xdp_link *link;
1: +};
1: +
1: +struct netdev_name_node;
1: +
1: +struct dev_ifalias;
1: +
1: +struct iw_handler_def;
1: +
1: +struct iw_public_data;
1: +
1: +struct net_device_ops;
1: +
1: +struct ethtool_ops;
1: +
1: +struct l3mdev_ops;
1: +
1: +struct ndisc_ops;
1: +
1: +struct xfrmdev_ops;
1: +
1: +struct tlsdev_ops;
1: +
1: +struct header_ops;
1: +
1: +struct vlan_info;
1: +
1: +struct dsa_port;
1: +
1: +struct in_device;
1: +
1: +struct inet6_dev;
1: +
1: +struct wireless_dev;
1: +
1: +struct wpan_dev;
1: +
1: +struct netdev_rx_queue;
1: +
1: +struct mini_Qdisc;
1: +
1: +struct netdev_queue;
1: +
1: +struct cpu_rmap;
1: +
1: +struct Qdisc;
1: +
1: +struct xdp_dev_bulk_queue;
1: +
1: +struct xps_dev_maps;
1: +
1: +struct netpoll_info;
1: +
1: +struct pcpu_lstats;
1: +
1: +struct pcpu_sw_netstats;
1: +
1: +struct rtnl_link_ops;
1: +
1: +struct dcbnl_rtnl_ops;
1: +
1: +struct netprio_map;
1: +
1: +struct phy_device;
1: +
1: +struct sfp_bus;
1: +
1: +struct udp_tunnel_nic_info;
1: +
1: +struct net_device {
1: + char name[16];
1: + struct netdev_name_node *name_node;
1: + struct dev_ifalias *ifalias;
1: + long unsigned int mem_end;
1: + long unsigned int mem_start;
1: + long unsigned int base_addr;
1: + int irq;
1: + long unsigned int state;
1: + struct list_head dev_list;
1: + struct list_head napi_list;
1: + struct list_head unreg_list;
1: + struct list_head close_list;
1: + struct list_head ptype_all;
1: + struct list_head ptype_specific;
1: + struct {
1: + struct list_head upper;
1: + struct list_head lower;
1: + } adj_list;
1: + netdev_features_t features;
1: + netdev_features_t hw_features;
1: + netdev_features_t wanted_features;
1: + netdev_features_t vlan_features;
1: + netdev_features_t hw_enc_features;
1: + netdev_features_t mpls_features;
1: + netdev_features_t gso_partial_features;
1: + int ifindex;
1: + int group;
1: + struct net_device_stats stats;
1: + atomic_long_t rx_dropped;
1: + atomic_long_t tx_dropped;
1: + atomic_long_t rx_nohandler;
1: + atomic_t carrier_up_count;
1: + atomic_t carrier_down_count;
1: + const struct iw_handler_def *wireless_handlers;
1: + struct iw_public_data *wireless_data;
1: + const struct net_device_ops *netdev_ops;
1: + const struct ethtool_ops *ethtool_ops;
1: + const struct l3mdev_ops *l3mdev_ops;
1: + const struct ndisc_ops *ndisc_ops;
1: + const struct xfrmdev_ops *xfrmdev_ops;
1: + const struct tlsdev_ops *tlsdev_ops;
1: + const struct header_ops *header_ops;
1: + unsigned int flags;
1: + unsigned int priv_flags;
1: + short unsigned int gflags;
1: + short unsigned int padded;
1: + unsigned char operstate;
1: + unsigned char link_mode;
1: + unsigned char if_port;
1: + unsigned char dma;
1: + unsigned int mtu;
1: + unsigned int min_mtu;
1: + unsigned int max_mtu;
1: + short unsigned int type;
1: + short unsigned int hard_header_len;
1: + unsigned char min_header_len;
1: + unsigned char name_assign_type;
1: + short unsigned int needed_headroom;
1: + short unsigned int needed_tailroom;
1: + unsigned char perm_addr[32];
1: + unsigned char addr_assign_type;
1: + unsigned char addr_len;
1: + unsigned char upper_level;
1: + unsigned char lower_level;
1: + short unsigned int neigh_priv_len;
1: + short unsigned int dev_id;
1: + short unsigned int dev_port;
1: + spinlock_t addr_list_lock;
1: + struct netdev_hw_addr_list uc;
1: + struct netdev_hw_addr_list mc;
1: + struct netdev_hw_addr_list dev_addrs;
1: + struct kset *queues_kset;
1: + unsigned int promiscuity;
1: + unsigned int allmulti;
1: + bool uc_promisc;
1: + struct vlan_info *vlan_info;
1: + struct dsa_port *dsa_ptr;
1: + struct tipc_bearer *tipc_ptr;
1: + void *atalk_ptr;
1: + struct in_device *ip_ptr;
1: + struct dn_dev *dn_ptr;
1: + struct inet6_dev *ip6_ptr;
1: + void *ax25_ptr;
1: + struct wireless_dev *ieee80211_ptr;
1: + struct wpan_dev *ieee802154_ptr;
1: + struct mpls_dev *mpls_ptr;
1: + unsigned char *dev_addr;
1: + struct netdev_rx_queue *_rx;
1: + unsigned int num_rx_queues;
1: + unsigned int real_num_rx_queues;
1: + struct bpf_prog *xdp_prog;
1: + long unsigned int gro_flush_timeout;
1: + int napi_defer_hard_irqs;
1: + rx_handler_func_t *rx_handler;
1: + void *rx_handler_data;
1: + struct mini_Qdisc *miniq_ingress;
1: + struct netdev_queue *ingress_queue;
1: + struct nf_hook_entries *nf_hooks_ingress;
1: + unsigned char broadcast[32];
1: + struct cpu_rmap *rx_cpu_rmap;
1: + struct hlist_node index_hlist;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct netdev_queue *_tx;
1: + unsigned int num_tx_queues;
1: + unsigned int real_num_tx_queues;
1: + struct Qdisc *qdisc;
1: + unsigned int tx_queue_len;
1: + spinlock_t tx_global_lock;
1: + struct xdp_dev_bulk_queue *xdp_bulkq;
1: + struct xps_dev_maps *xps_cpus_map;
1: + struct xps_dev_maps *xps_rxqs_map;
1: + struct mini_Qdisc *miniq_egress;
1: + struct hlist_head qdisc_hash[16];
1: + struct timer_list watchdog_timer;
1: + int watchdog_timeo;
1: + u32 proto_down_reason;
1: + struct list_head todo_list;
1: + int *pcpu_refcnt;
1: + struct list_head link_watch_list;
1: + enum {
1: + NETREG_UNINITIALIZED = 0,
1: + NETREG_REGISTERED = 1,
1: + NETREG_UNREGISTERING = 2,
1: + NETREG_UNREGISTERED = 3,
1: + NETREG_RELEASED = 4,
1: + NETREG_DUMMY = 5,
1: + } reg_state: 8;
1: + bool dismantle;
1: + enum {
1: + RTNL_LINK_INITIALIZED = 0,
1: + RTNL_LINK_INITIALIZING = 1,
1: + } rtnl_link_state: 16;
1: + bool needs_free_netdev;
1: + void (*priv_destructor)(struct net_device *);
1: + struct netpoll_info *npinfo;
1: + possible_net_t nd_net;
1: + union {
1: + void *ml_priv;
1: + struct pcpu_lstats *lstats;
1: + struct pcpu_sw_netstats *tstats;
1: + struct pcpu_dstats *dstats;
1: + };
1: + struct garp_port *garp_port;
1: + struct mrp_port *mrp_port;
1: + struct device dev;
1: + const struct attribute_group *sysfs_groups[4];
1: + const struct attribute_group *sysfs_rx_queue_group;
1: + const struct rtnl_link_ops *rtnl_link_ops;
1: + unsigned int gso_max_size;
1: + u16 gso_max_segs;
1: + const struct dcbnl_rtnl_ops *dcbnl_ops;
1: + s16 num_tc;
1: + struct netdev_tc_txq tc_to_txq[16];
1: + u8 prio_tc_map[16];
1: + unsigned int fcoe_ddp_xid;
1: + struct netprio_map *priomap;
1: + struct phy_device *phydev;
1: + struct sfp_bus *sfp_bus;
1: + struct lock_class_key *qdisc_tx_busylock;
1: + struct lock_class_key *qdisc_running_key;
1: + bool proto_down;
1: + unsigned int wol_enabled: 1;
1: + struct list_head net_notifier_list;
1: + const struct macsec_ops *macsec_ops;
1: + const struct udp_tunnel_nic_info *udp_tunnel_nic_info;
1: + struct udp_tunnel_nic *udp_tunnel_nic;
1: + struct bpf_xdp_entity xdp_state[3];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum bpf_reg_type {
1: + NOT_INIT = 0,
1: + SCALAR_VALUE = 1,
1: + PTR_TO_CTX = 2,
1: + CONST_PTR_TO_MAP = 3,
1: + PTR_TO_MAP_VALUE = 4,
1: + PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + PTR_TO_STACK = 6,
1: + PTR_TO_PACKET_META = 7,
1: + PTR_TO_PACKET = 8,
1: + PTR_TO_PACKET_END = 9,
1: + PTR_TO_FLOW_KEYS = 10,
1: + PTR_TO_SOCKET = 11,
1: + PTR_TO_SOCKET_OR_NULL = 12,
1: + PTR_TO_SOCK_COMMON = 13,
1: + PTR_TO_SOCK_COMMON_OR_NULL = 14,
1: + PTR_TO_TCP_SOCK = 15,
1: + PTR_TO_TCP_SOCK_OR_NULL = 16,
1: + PTR_TO_TP_BUFFER = 17,
1: + PTR_TO_XDP_SOCK = 18,
1: + PTR_TO_BTF_ID = 19,
1: + PTR_TO_BTF_ID_OR_NULL = 20,
1: + PTR_TO_MEM = 21,
1: + PTR_TO_MEM_OR_NULL = 22,
1: + PTR_TO_RDONLY_BUF = 23,
1: + PTR_TO_RDONLY_BUF_OR_NULL = 24,
1: + PTR_TO_RDWR_BUF = 25,
1: + PTR_TO_RDWR_BUF_OR_NULL = 26,
1: + PTR_TO_PERCPU_BTF_ID = 27,
1: +};
1: +
1: +struct bpf_prog_ops {
1: + int (*test_run)(struct bpf_prog *, const union bpf_attr *, union bpf_attr *);
1: +};
1: +
1: +struct bpf_offload_dev;
1: +
1: +struct bpf_prog_offload {
1: + struct bpf_prog *prog;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + bool dev_state;
1: + bool opt_failed;
1: + void *jited_image;
1: + u32 jited_len;
1: +};
1: +
1: +struct bpf_prog_stats {
1: + u64 cnt;
1: + u64 nsecs;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct btf_func_model {
1: + u8 ret_size;
1: + u8 nr_args;
1: + u8 arg_size[12];
1: +};
1: +
1: +struct bpf_trampoline {
1: + struct hlist_node hlist;
1: + struct mutex mutex;
1: + refcount_t refcnt;
1: + u64 key;
1: + struct {
1: + struct btf_func_model model;
1: + void *addr;
1: + bool ftrace_managed;
1: + } func;
1: + struct bpf_prog *extension_prog;
1: + struct hlist_head progs_hlist[3];
1: + int progs_cnt[3];
1: + void *image;
1: + u64 selector;
1: + struct bpf_ksym ksym;
1: +};
1: +
1: +struct bpf_func_info_aux {
1: + u16 linkage;
1: + bool unreliable;
1: +};
1: +
1: +struct bpf_jit_poke_descriptor {
1: + void *tailcall_target;
1: + void *tailcall_bypass;
1: + void *bypass_addr;
1: + union {
1: + struct {
1: + struct bpf_map *map;
1: + u32 key;
1: + } tail_call;
1: + };
1: + bool tailcall_target_stable;
1: + u8 adj_off;
1: + u16 reason;
1: + u32 insn_idx;
1: +};
1: +
1: +struct bpf_ctx_arg_aux {
1: + u32 offset;
1: + enum bpf_reg_type reg_type;
1: + u32 btf_id;
1: +};
1: +
1: +typedef unsigned int sk_buff_data_t;
1: +
1: +struct skb_ext;
1: +
1: +struct sk_buff {
1: + union {
1: + struct {
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + union {
1: + struct net_device *dev;
1: + long unsigned int dev_scratch;
1: + };
1: + };
1: + struct rb_node rbnode;
1: + struct list_head list;
1: + };
1: + union {
1: + struct sock *sk;
1: + int ip_defrag_offset;
1: + };
1: + union {
1: + ktime_t tstamp;
1: + u64 skb_mstamp_ns;
1: + };
1: + char cb[48];
1: + union {
1: + struct {
1: + long unsigned int _skb_refdst;
1: + void (*destructor)(struct sk_buff *);
1: + };
1: + struct list_head tcp_tsorted_anchor;
1: + };
1: + long unsigned int _nfct;
1: + unsigned int len;
1: + unsigned int data_len;
1: + __u16 mac_len;
1: + __u16 hdr_len;
1: + __u16 queue_mapping;
1: + __u8 __cloned_offset[0];
1: + __u8 cloned: 1;
1: + __u8 nohdr: 1;
1: + __u8 fclone: 2;
1: + __u8 peeked: 1;
1: + __u8 head_frag: 1;
1: + __u8 pfmemalloc: 1;
1: + __u8 active_extensions;
1: + __u32 headers_start[0];
1: + __u8 __pkt_type_offset[0];
1: + __u8 pkt_type: 3;
1: + __u8 ignore_df: 1;
1: + __u8 nf_trace: 1;
1: + __u8 ip_summed: 2;
1: + __u8 ooo_okay: 1;
1: + __u8 l4_hash: 1;
1: + __u8 sw_hash: 1;
1: + __u8 wifi_acked_valid: 1;
1: + __u8 wifi_acked: 1;
1: + __u8 no_fcs: 1;
1: + __u8 encapsulation: 1;
1: + __u8 encap_hdr_csum: 1;
1: + __u8 csum_valid: 1;
1: + __u8 __pkt_vlan_present_offset[0];
1: + __u8 vlan_present: 1;
1: + __u8 csum_complete_sw: 1;
1: + __u8 csum_level: 2;
1: + __u8 csum_not_inet: 1;
1: + __u8 dst_pending_confirm: 1;
1: + __u8 ndisc_nodetype: 2;
1: + __u8 ipvs_property: 1;
1: + __u8 inner_protocol_type: 1;
1: + __u8 remcsum_offload: 1;
1: + __u8 offload_fwd_mark: 1;
1: + __u8 offload_l3_fwd_mark: 1;
1: + __u8 tc_skip_classify: 1;
1: + __u8 tc_at_ingress: 1;
1: + __u8 redirected: 1;
1: + __u8 from_ingress: 1;
1: + __u8 decrypted: 1;
1: + __u16 tc_index;
1: + union {
1: + __wsum csum;
1: + struct {
1: + __u16 csum_start;
1: + __u16 csum_offset;
1: + };
1: + };
1: + __u32 priority;
1: + int skb_iif;
1: + __u32 hash;
1: + __be16 vlan_proto;
1: + __u16 vlan_tci;
1: + union {
1: + unsigned int napi_id;
1: + unsigned int sender_cpu;
1: + };
1: + __u32 secmark;
1: + union {
1: + __u32 mark;
1: + __u32 reserved_tailroom;
1: + };
1: + union {
1: + __be16 inner_protocol;
1: + __u8 inner_ipproto;
1: + };
1: + __u16 inner_transport_header;
1: + __u16 inner_network_header;
1: + __u16 inner_mac_header;
1: + __be16 protocol;
1: + __u16 transport_header;
1: + __u16 network_header;
1: + __u16 mac_header;
1: + __u32 headers_end[0];
1: + sk_buff_data_t tail;
1: + sk_buff_data_t end;
1: + unsigned char *head;
1: + unsigned char *data;
1: + unsigned int truesize;
1: + refcount_t users;
1: + struct skb_ext *extensions;
1: +};
1: +
1: +struct scatterlist {
1: + long unsigned int page_link;
1: + unsigned int offset;
1: + unsigned int length;
1: + dma_addr_t dma_address;
1: + unsigned int dma_length;
1: +};
1: +
1: +enum {
1: + Root_NFS = 255,
1: + Root_CIFS = 254,
1: + Root_RAM0 = 1048576,
1: + Root_RAM1 = 1048577,
1: + Root_FD0 = 2097152,
1: + Root_HDA1 = 3145729,
1: + Root_HDA2 = 3145730,
1: + Root_SDA1 = 8388609,
1: + Root_SDA2 = 8388610,
1: + Root_HDC1 = 23068673,
1: + Root_SR0 = 11534336,
1: +};
1: +
1: +struct ethhdr {
1: + unsigned char h_dest[6];
1: + unsigned char h_source[6];
1: + __be16 h_proto;
1: +};
1: +
1: +struct flowi_tunnel {
1: + __be64 tun_id;
1: +};
1: +
1: +struct flowi_common {
1: + int flowic_oif;
1: + int flowic_iif;
1: + __u32 flowic_mark;
1: + __u8 flowic_tos;
1: + __u8 flowic_scope;
1: + __u8 flowic_proto;
1: + __u8 flowic_flags;
1: + __u32 flowic_secid;
1: + kuid_t flowic_uid;
1: + struct flowi_tunnel flowic_tun_key;
1: + __u32 flowic_multipath_hash;
1: +};
1: +
1: +union flowi_uli {
1: + struct {
1: + __be16 dport;
1: + __be16 sport;
1: + } ports;
1: + struct {
1: + __u8 type;
1: + __u8 code;
1: + } icmpt;
1: + struct {
1: + __le16 dport;
1: + __le16 sport;
1: + } dnports;
1: + __be32 spi;
1: + __be32 gre_key;
1: + struct {
1: + __u8 type;
1: + } mht;
1: +};
1: +
1: +struct flowi4 {
1: + struct flowi_common __fl_common;
1: + __be32 saddr;
1: + __be32 daddr;
1: + union flowi_uli uli;
1: +};
1: +
1: +struct flowi6 {
1: + struct flowi_common __fl_common;
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + __be32 flowlabel;
1: + union flowi_uli uli;
1: + __u32 mp_hash;
1: +};
1: +
1: +struct flowidn {
1: + struct flowi_common __fl_common;
1: + __le16 daddr;
1: + __le16 saddr;
1: + union flowi_uli uli;
1: +};
1: +
1: +struct flowi {
1: + union {
1: + struct flowi_common __fl_common;
1: + struct flowi4 ip4;
1: + struct flowi6 ip6;
1: + struct flowidn dn;
1: + } u;
1: +};
1: +
1: +struct ipstats_mib {
1: + u64 mibs[37];
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct icmp_mib {
1: + long unsigned int mibs[28];
1: +};
1: +
1: +struct icmpmsg_mib {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct icmpv6_mib {
1: + long unsigned int mibs[6];
1: +};
1: +
1: +struct icmpv6_mib_device {
1: + atomic_long_t mibs[6];
1: +};
1: +
1: +struct icmpv6msg_mib {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct icmpv6msg_mib_device {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct tcp_mib {
1: + long unsigned int mibs[16];
1: +};
1: +
1: +struct udp_mib {
1: + long unsigned int mibs[9];
1: +};
1: +
1: +struct linux_mib {
1: + long unsigned int mibs[124];
1: +};
1: +
1: +struct linux_tls_mib {
1: + long unsigned int mibs[11];
1: +};
1: +
1: +struct inet_frags;
1: +
1: +struct fqdir {
1: + long int high_thresh;
1: + long int low_thresh;
1: + int timeout;
1: + int max_dist;
1: + struct inet_frags *f;
1: + struct net *net;
1: + bool dead;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + struct rhashtable rhashtable;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_long_t mem;
1: + struct work_struct destroy_work;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct inet_frag_queue;
1: +
1: +struct inet_frags {
1: + unsigned int qsize;
1: + void (*constructor)(struct inet_frag_queue *, const void *);
1: + void (*destructor)(struct inet_frag_queue *);
1: + void (*frag_expire)(struct timer_list *);
1: + struct kmem_cache *frags_cachep;
1: + const char *frags_cache_name;
1: + struct rhashtable_params rhash_params;
1: + refcount_t refcnt;
1: + struct completion completion;
1: +};
1: +
1: +struct frag_v4_compare_key {
1: + __be32 saddr;
1: + __be32 daddr;
1: + u32 user;
1: + u32 vif;
1: + __be16 id;
1: + u16 protocol;
1: +};
1: +
1: +struct frag_v6_compare_key {
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: + u32 user;
1: + __be32 id;
1: + u32 iif;
1: +};
1: +
1: +struct inet_frag_queue {
1: + struct rhash_head node;
1: + union {
1: + struct frag_v4_compare_key v4;
1: + struct frag_v6_compare_key v6;
1: + } key;
1: + struct timer_list timer;
1: + spinlock_t lock;
1: + refcount_t refcnt;
1: + struct rb_root rb_fragments;
1: + struct sk_buff *fragments_tail;
1: + struct sk_buff *last_run_head;
1: + ktime_t stamp;
1: + int len;
1: + int meat;
1: + __u8 flags;
1: + u16 max_size;
1: + struct fqdir *fqdir;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_rule;
1: +
1: +struct fib_lookup_arg;
1: +
1: +struct fib_rule_hdr;
1: +
1: +struct nlattr;
1: +
1: +struct netlink_ext_ack;
1: +
1: +struct nla_policy;
1: +
1: +struct fib_rules_ops {
1: + int family;
1: + struct list_head list;
1: + int rule_size;
1: + int addr_size;
1: + int unresolved_rules;
1: + int nr_goto_rules;
1: + unsigned int fib_rules_seq;
1: + int (*action)(struct fib_rule *, struct flowi *, int, struct fib_lookup_arg *);
1: + bool (*suppress)(struct fib_rule *, struct fib_lookup_arg *);
1: + int (*match)(struct fib_rule *, struct flowi *, int);
1: + int (*configure)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *, struct nlattr **, struct netlink_ext_ack *);
1: + int (*delete)(struct fib_rule *);
1: + int (*compare)(struct fib_rule *, struct fib_rule_hdr *, struct nlattr **);
1: + int (*fill)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *);
1: + size_t (*nlmsg_payload)(struct fib_rule *);
1: + void (*flush_cache)(struct fib_rules_ops *);
1: + int nlgroup;
1: + const struct nla_policy *policy;
1: + struct list_head rules_list;
1: + struct module *owner;
1: + struct net *fro_net;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum tcp_ca_event {
1: + CA_EVENT_TX_START = 0,
1: + CA_EVENT_CWND_RESTART = 1,
1: + CA_EVENT_COMPLETE_CWR = 2,
1: + CA_EVENT_LOSS = 3,
1: + CA_EVENT_ECN_NO_CE = 4,
1: + CA_EVENT_ECN_IS_CE = 5,
1: +};
1: +
1: +struct ack_sample;
1: +
1: +struct rate_sample;
1: +
1: +union tcp_cc_info;
1: +
1: +struct tcp_congestion_ops {
1: + struct list_head list;
1: + u32 key;
1: + u32 flags;
1: + void (*init)(struct sock *);
1: + void (*release)(struct sock *);
1: + u32 (*ssthresh)(struct sock *);
1: + void (*cong_avoid)(struct sock *, u32, u32);
1: + void (*set_state)(struct sock *, u8);
1: + void (*cwnd_event)(struct sock *, enum tcp_ca_event);
1: + void (*in_ack_event)(struct sock *, u32);
1: + u32 (*undo_cwnd)(struct sock *);
1: + void (*pkts_acked)(struct sock *, const struct ack_sample *);
1: + u32 (*min_tso_segs)(struct sock *);
1: + u32 (*sndbuf_expand)(struct sock *);
1: + void (*cong_control)(struct sock *, const struct rate_sample *);
1: + size_t (*get_info)(struct sock *, u32, int *, union tcp_cc_info *);
1: + char name[16];
1: + struct module *owner;
1: +};
1: +
1: +struct fib_notifier_ops {
1: + int family;
1: + struct list_head list;
1: + unsigned int (*fib_seq_read)(struct net *);
1: + int (*fib_dump)(struct net *, struct notifier_block *, struct netlink_ext_ack *);
1: + struct module *owner;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct xfrm_state;
1: +
1: +struct lwtunnel_state;
1: +
1: +struct dst_entry {
1: + struct net_device *dev;
1: + struct dst_ops *ops;
1: + long unsigned int _metrics;
1: + long unsigned int expires;
1: + struct xfrm_state *xfrm;
1: + int (*input)(struct sk_buff *);
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + short unsigned int flags;
1: + short int obsolete;
1: + short unsigned int header_len;
1: + short unsigned int trailer_len;
1: + atomic_t __refcnt;
1: + int __use;
1: + long unsigned int lastuse;
1: + struct lwtunnel_state *lwtstate;
1: + struct callback_head callback_head;
1: + short int error;
1: + short int __pad;
1: + __u32 tclassid;
1: +};
1: +
1: +struct hh_cache {
1: + unsigned int hh_len;
1: + seqlock_t hh_lock;
1: + long unsigned int hh_data[16];
1: +};
1: +
1: +struct neigh_table;
1: +
1: +struct neigh_parms;
1: +
1: +struct neigh_ops;
1: +
1: +struct neighbour {
1: + struct neighbour *next;
1: + struct neigh_table *tbl;
1: + struct neigh_parms *parms;
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + unsigned int arp_queue_len_bytes;
1: + struct sk_buff_head arp_queue;
1: + struct timer_list timer;
1: + long unsigned int used;
1: + atomic_t probes;
1: + __u8 flags;
1: + __u8 nud_state;
1: + __u8 type;
1: + __u8 dead;
1: + u8 protocol;
1: + seqlock_t ha_lock;
1: + int: 32;
1: + unsigned char ha[32];
1: + struct hh_cache hh;
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + const struct neigh_ops *ops;
1: + struct list_head gc_list;
1: + struct callback_head rcu;
1: + struct net_device *dev;
1: + u8 primary_key[0];
1: +};
1: +
1: +struct ipv6_stable_secret {
1: + bool initialized;
1: + struct in6_addr secret;
1: +};
1: +
1: +struct ipv6_devconf {
1: + __s32 forwarding;
1: + __s32 hop_limit;
1: + __s32 mtu6;
1: + __s32 accept_ra;
1: + __s32 accept_redirects;
1: + __s32 autoconf;
1: + __s32 dad_transmits;
1: + __s32 rtr_solicits;
1: + __s32 rtr_solicit_interval;
1: + __s32 rtr_solicit_max_interval;
1: + __s32 rtr_solicit_delay;
1: + __s32 force_mld_version;
1: + __s32 mldv1_unsolicited_report_interval;
1: + __s32 mldv2_unsolicited_report_interval;
1: + __s32 use_tempaddr;
1: + __s32 temp_valid_lft;
1: + __s32 temp_prefered_lft;
1: + __s32 regen_max_retry;
1: + __s32 max_desync_factor;
1: + __s32 max_addresses;
1: + __s32 accept_ra_defrtr;
1: + __s32 accept_ra_min_hop_limit;
1: + __s32 accept_ra_pinfo;
1: + __s32 ignore_routes_with_linkdown;
1: + __s32 accept_ra_rtr_pref;
1: + __s32 rtr_probe_interval;
1: + __s32 accept_ra_rt_info_min_plen;
1: + __s32 accept_ra_rt_info_max_plen;
1: + __s32 proxy_ndp;
1: + __s32 accept_source_route;
1: + __s32 accept_ra_from_local;
1: + __s32 mc_forwarding;
1: + __s32 disable_ipv6;
1: + __s32 drop_unicast_in_l2_multicast;
1: + __s32 accept_dad;
1: + __s32 force_tllao;
1: + __s32 ndisc_notify;
1: + __s32 suppress_frag_ndisc;
1: + __s32 accept_ra_mtu;
1: + __s32 drop_unsolicited_na;
1: + struct ipv6_stable_secret stable_secret;
1: + __s32 use_oif_addrs_only;
1: + __s32 keep_addr_on_down;
1: + __s32 seg6_enabled;
1: + __u32 enhanced_dad;
1: + __u32 addr_gen_mode;
1: + __s32 disable_policy;
1: + __s32 ndisc_tclass;
1: + __s32 rpl_seg_enabled;
1: + struct ctl_table_header *sysctl_header;
1: +};
1: +
1: +struct nf_queue_entry;
1: +
1: +struct nf_queue_handler {
1: + int (*outfn)(struct nf_queue_entry *, unsigned int);
1: + void (*nf_hook_drop)(struct net *);
1: +};
1: +
1: +enum nf_log_type {
1: + NF_LOG_TYPE_LOG = 0,
1: + NF_LOG_TYPE_ULOG = 1,
1: + NF_LOG_TYPE_MAX = 2,
1: +};
1: +
1: +typedef u8 u_int8_t;
1: +
1: +struct nf_loginfo;
1: +
1: +typedef void nf_logfn(struct net *, u_int8_t, unsigned int, const struct sk_buff *, const struct net_device *, const struct net_device *, const struct nf_loginfo *, const char *);
1: +
1: +struct nf_logger {
1: + char *name;
1: + enum nf_log_type type;
1: + nf_logfn *logfn;
1: + struct module *me;
1: +};
1: +
1: +struct hlist_nulls_head {
1: + struct hlist_nulls_node *first;
1: +};
1: +
1: +struct ip_conntrack_stat {
1: + unsigned int found;
1: + unsigned int invalid;
1: + unsigned int insert;
1: + unsigned int insert_failed;
1: + unsigned int clash_resolve;
1: + unsigned int drop;
1: + unsigned int early_drop;
1: + unsigned int error;
1: + unsigned int expect_new;
1: + unsigned int expect_create;
1: + unsigned int expect_delete;
1: + unsigned int search_restart;
1: +};
1: +
1: +struct ct_pcpu {
1: + spinlock_t lock;
1: + struct hlist_nulls_head unconfirmed;
1: + struct hlist_nulls_head dying;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + void *kernel;
1: + void *user;
1: + };
1: + bool is_kernel: 1;
1: +} sockptr_t;
1: +
1: +typedef enum {
1: + SS_FREE = 0,
1: + SS_UNCONNECTED = 1,
1: + SS_CONNECTING = 2,
1: + SS_CONNECTED = 3,
1: + SS_DISCONNECTING = 4,
1: +} socket_state;
1: +
1: +struct socket_wq {
1: + wait_queue_head_t wait;
1: + struct fasync_struct *fasync_list;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: + long: 64;
1: +};
1: +
1: +struct proto_ops;
1: +
1: +struct socket {
1: + socket_state state;
1: + short int type;
1: + long unsigned int flags;
1: + struct file *file;
1: + struct sock *sk;
1: + const struct proto_ops *ops;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct socket_wq wq;
1: +};
1: +
1: +typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *, unsigned int, size_t);
1: +
1: +struct proto_ops {
1: + int family;
1: + unsigned int flags;
1: + struct module *owner;
1: + int (*release)(struct socket *);
1: + int (*bind)(struct socket *, struct sockaddr *, int);
1: + int (*connect)(struct socket *, struct sockaddr *, int, int);
1: + int (*socketpair)(struct socket *, struct socket *);
1: + int (*accept)(struct socket *, struct socket *, int, bool);
1: + int (*getname)(struct socket *, struct sockaddr *, int);
1: + __poll_t (*poll)(struct file *, struct socket *, struct poll_table_struct *);
1: + int (*ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*gettstamp)(struct socket *, void *, bool, bool);
1: + int (*listen)(struct socket *, int);
1: + int (*shutdown)(struct socket *, int);
1: + int (*setsockopt)(struct socket *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct socket *, int, int, char *, int *);
1: + void (*show_fdinfo)(struct seq_file *, struct socket *);
1: + int (*sendmsg)(struct socket *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct socket *, struct msghdr *, size_t, int);
1: + int (*mmap)(struct file *, struct socket *, struct vm_area_struct *);
1: + ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int);
1: + ssize_t (*splice_read)(struct socket *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + int (*set_peek_off)(struct sock *, int);
1: + int (*peek_len)(struct socket *);
1: + int (*read_sock)(struct sock *, read_descriptor_t *, sk_read_actor_t);
1: + int (*sendpage_locked)(struct sock *, struct page *, int, size_t, int);
1: + int (*sendmsg_locked)(struct sock *, struct msghdr *, size_t);
1: + int (*set_rcvlowat)(struct sock *, int);
1: +};
1: +
1: +struct pipe_buf_operations;
1: +
1: +struct pipe_buffer {
1: + struct page *page;
1: + unsigned int offset;
1: + unsigned int len;
1: + const struct pipe_buf_operations *ops;
1: + unsigned int flags;
1: + long unsigned int private;
1: +};
1: +
1: +struct pipe_buf_operations {
1: + int (*confirm)(struct pipe_inode_info *, struct pipe_buffer *);
1: + void (*release)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*try_steal)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*get)(struct pipe_inode_info *, struct pipe_buffer *);
1: +};
1: +
1: +struct skb_ext {
1: + refcount_t refcnt;
1: + u8 offset[4];
1: + u8 chunks;
1: + long: 56;
1: + char data[0];
1: +};
1: +
1: +struct dql {
1: + unsigned int num_queued;
1: + unsigned int adj_limit;
1: + unsigned int last_obj_cnt;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + unsigned int limit;
1: + unsigned int num_completed;
1: + unsigned int prev_ovlimit;
1: + unsigned int prev_num_queued;
1: + unsigned int prev_last_obj_cnt;
1: + unsigned int lowest_slack;
1: + long unsigned int slack_start_time;
1: + unsigned int max_limit;
1: + unsigned int min_limit;
1: + unsigned int slack_hold_time;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ethtool_drvinfo {
1: + __u32 cmd;
1: + char driver[32];
1: + char version[32];
1: + char fw_version[32];
1: + char bus_info[32];
1: + char erom_version[32];
1: + char reserved2[12];
1: + __u32 n_priv_flags;
1: + __u32 n_stats;
1: + __u32 testinfo_len;
1: + __u32 eedump_len;
1: + __u32 regdump_len;
1: +};
1: +
1: +struct ethtool_wolinfo {
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 wolopts;
1: + __u8 sopass[6];
1: +};
1: +
1: +struct ethtool_tunable {
1: + __u32 cmd;
1: + __u32 id;
1: + __u32 type_id;
1: + __u32 len;
1: + void *data[0];
1: +};
1: +
1: +struct ethtool_regs {
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_eeprom {
1: + __u32 cmd;
1: + __u32 magic;
1: + __u32 offset;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_eee {
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 advertised;
1: + __u32 lp_advertised;
1: + __u32 eee_active;
1: + __u32 eee_enabled;
1: + __u32 tx_lpi_enabled;
1: + __u32 tx_lpi_timer;
1: + __u32 reserved[2];
1: +};
1: +
1: +struct ethtool_modinfo {
1: + __u32 cmd;
1: + __u32 type;
1: + __u32 eeprom_len;
1: + __u32 reserved[8];
1: +};
1: +
1: +struct ethtool_coalesce {
1: + __u32 cmd;
1: + __u32 rx_coalesce_usecs;
1: + __u32 rx_max_coalesced_frames;
1: + __u32 rx_coalesce_usecs_irq;
1: + __u32 rx_max_coalesced_frames_irq;
1: + __u32 tx_coalesce_usecs;
1: + __u32 tx_max_coalesced_frames;
1: + __u32 tx_coalesce_usecs_irq;
1: + __u32 tx_max_coalesced_frames_irq;
1: + __u32 stats_block_coalesce_usecs;
1: + __u32 use_adaptive_rx_coalesce;
1: + __u32 use_adaptive_tx_coalesce;
1: + __u32 pkt_rate_low;
1: + __u32 rx_coalesce_usecs_low;
1: + __u32 rx_max_coalesced_frames_low;
1: + __u32 tx_coalesce_usecs_low;
1: + __u32 tx_max_coalesced_frames_low;
1: + __u32 pkt_rate_high;
1: + __u32 rx_coalesce_usecs_high;
1: + __u32 rx_max_coalesced_frames_high;
1: + __u32 tx_coalesce_usecs_high;
1: + __u32 tx_max_coalesced_frames_high;
1: + __u32 rate_sample_interval;
1: +};
1: +
1: +struct ethtool_ringparam {
1: + __u32 cmd;
1: + __u32 rx_max_pending;
1: + __u32 rx_mini_max_pending;
1: + __u32 rx_jumbo_max_pending;
1: + __u32 tx_max_pending;
1: + __u32 rx_pending;
1: + __u32 rx_mini_pending;
1: + __u32 rx_jumbo_pending;
1: + __u32 tx_pending;
1: +};
1: +
1: +struct ethtool_channels {
1: + __u32 cmd;
1: + __u32 max_rx;
1: + __u32 max_tx;
1: + __u32 max_other;
1: + __u32 max_combined;
1: + __u32 rx_count;
1: + __u32 tx_count;
1: + __u32 other_count;
1: + __u32 combined_count;
1: +};
1: +
1: +struct ethtool_pauseparam {
1: + __u32 cmd;
1: + __u32 autoneg;
1: + __u32 rx_pause;
1: + __u32 tx_pause;
1: +};
1: +
1: +enum ethtool_link_ext_state {
1: + ETHTOOL_LINK_EXT_STATE_AUTONEG = 0,
1: + ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 1,
1: + ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 2,
1: + ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 3,
1: + ETHTOOL_LINK_EXT_STATE_NO_CABLE = 4,
1: + ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 5,
1: + ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 6,
1: + ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 7,
1: + ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 8,
1: + ETHTOOL_LINK_EXT_STATE_OVERHEAT = 9,
1: +};
1: +
1: +enum ethtool_link_ext_substate_autoneg {
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 5,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 6,
1: +};
1: +
1: +enum ethtool_link_ext_substate_link_training {
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 4,
1: +};
1: +
1: +enum ethtool_link_ext_substate_link_logical_mismatch {
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 5,
1: +};
1: +
1: +enum ethtool_link_ext_substate_bad_signal_integrity {
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 2,
1: +};
1: +
1: +enum ethtool_link_ext_substate_cable_issue {
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 2,
1: +};
1: +
1: +struct ethtool_test {
1: + __u32 cmd;
1: + __u32 flags;
1: + __u32 reserved;
1: + __u32 len;
1: + __u64 data[0];
1: +};
1: +
1: +struct ethtool_stats {
1: + __u32 cmd;
1: + __u32 n_stats;
1: + __u64 data[0];
1: +};
1: +
1: +struct ethtool_tcpip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tos;
1: +};
1: +
1: +struct ethtool_ah_espip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 spi;
1: + __u8 tos;
1: +};
1: +
1: +struct ethtool_usrip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 l4_4_bytes;
1: + __u8 tos;
1: + __u8 ip_ver;
1: + __u8 proto;
1: +};
1: +
1: +struct ethtool_tcpip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tclass;
1: +};
1: +
1: +struct ethtool_ah_espip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 spi;
1: + __u8 tclass;
1: +};
1: +
1: +struct ethtool_usrip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 l4_4_bytes;
1: + __u8 tclass;
1: + __u8 l4_proto;
1: +};
1: +
1: +union ethtool_flow_union {
1: + struct ethtool_tcpip4_spec tcp_ip4_spec;
1: + struct ethtool_tcpip4_spec udp_ip4_spec;
1: + struct ethtool_tcpip4_spec sctp_ip4_spec;
1: + struct ethtool_ah_espip4_spec ah_ip4_spec;
1: + struct ethtool_ah_espip4_spec esp_ip4_spec;
1: + struct ethtool_usrip4_spec usr_ip4_spec;
1: + struct ethtool_tcpip6_spec tcp_ip6_spec;
1: + struct ethtool_tcpip6_spec udp_ip6_spec;
1: + struct ethtool_tcpip6_spec sctp_ip6_spec;
1: + struct ethtool_ah_espip6_spec ah_ip6_spec;
1: + struct ethtool_ah_espip6_spec esp_ip6_spec;
1: + struct ethtool_usrip6_spec usr_ip6_spec;
1: + struct ethhdr ether_spec;
1: + __u8 hdata[52];
1: +};
1: +
1: +struct ethtool_flow_ext {
1: + __u8 padding[2];
1: + unsigned char h_dest[6];
1: + __be16 vlan_etype;
1: + __be16 vlan_tci;
1: + __be32 data[2];
1: +};
1: +
1: +struct ethtool_rx_flow_spec {
1: + __u32 flow_type;
1: + union ethtool_flow_union h_u;
1: + struct ethtool_flow_ext h_ext;
1: + union ethtool_flow_union m_u;
1: + struct ethtool_flow_ext m_ext;
1: + __u64 ring_cookie;
1: + __u32 location;
1: +};
1: +
1: +struct ethtool_rxnfc {
1: + __u32 cmd;
1: + __u32 flow_type;
1: + __u64 data;
1: + struct ethtool_rx_flow_spec fs;
1: + union {
1: + __u32 rule_cnt;
1: + __u32 rss_context;
1: + };
1: + __u32 rule_locs[0];
1: +};
1: +
1: +struct ethtool_flash {
1: + __u32 cmd;
1: + __u32 region;
1: + char data[128];
1: +};
1: +
1: +struct ethtool_dump {
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 flag;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_ts_info {
1: + __u32 cmd;
1: + __u32 so_timestamping;
1: + __s32 phc_index;
1: + __u32 tx_types;
1: + __u32 tx_reserved[3];
1: + __u32 rx_filters;
1: + __u32 rx_reserved[3];
1: +};
1: +
1: +struct ethtool_fecparam {
1: + __u32 cmd;
1: + __u32 active_fec;
1: + __u32 fec;
1: + __u32 reserved;
1: +};
1: +
1: +struct ethtool_link_settings {
1: + __u32 cmd;
1: + __u32 speed;
1: + __u8 duplex;
1: + __u8 port;
1: + __u8 phy_address;
1: + __u8 autoneg;
1: + __u8 mdio_support;
1: + __u8 eth_tp_mdix;
1: + __u8 eth_tp_mdix_ctrl;
1: + __s8 link_mode_masks_nwords;
1: + __u8 transceiver;
1: + __u8 master_slave_cfg;
1: + __u8 master_slave_state;
1: + __u8 reserved1[1];
1: + __u32 reserved[7];
1: + __u32 link_mode_masks[0];
1: +};
1: +
1: +enum ethtool_phys_id_state {
1: + ETHTOOL_ID_INACTIVE = 0,
1: + ETHTOOL_ID_ACTIVE = 1,
1: + ETHTOOL_ID_ON = 2,
1: + ETHTOOL_ID_OFF = 3,
1: +};
1: +
1: +struct ethtool_link_ext_state_info {
1: + enum ethtool_link_ext_state link_ext_state;
1: + union {
1: + enum ethtool_link_ext_substate_autoneg autoneg;
1: + enum ethtool_link_ext_substate_link_training link_training;
1: + enum ethtool_link_ext_substate_link_logical_mismatch link_logical_mismatch;
1: + enum ethtool_link_ext_substate_bad_signal_integrity bad_signal_integrity;
1: + enum ethtool_link_ext_substate_cable_issue cable_issue;
1: + u8 __link_ext_substate;
1: + };
1: +};
1: +
1: +struct ethtool_link_ksettings {
1: + struct ethtool_link_settings base;
1: + struct {
1: + long unsigned int supported[2];
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + } link_modes;
1: +};
1: +
1: +struct ethtool_pause_stats {
1: + u64 tx_pause_frames;
1: + u64 rx_pause_frames;
1: +};
1: +
1: +struct ethtool_ops {
1: + u32 supported_coalesce_params;
1: + void (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);
1: + int (*get_regs_len)(struct net_device *);
1: + void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
1: + void (*get_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + int (*set_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + u32 (*get_msglevel)(struct net_device *);
1: + void (*set_msglevel)(struct net_device *, u32);
1: + int (*nway_reset)(struct net_device *);
1: + u32 (*get_link)(struct net_device *);
1: + int (*get_link_ext_state)(struct net_device *, struct ethtool_link_ext_state_info *);
1: + int (*get_eeprom_len)(struct net_device *);
1: + int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + int (*set_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + void (*get_pause_stats)(struct net_device *, struct ethtool_pause_stats *);
1: + void (*get_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + int (*set_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
1: + void (*get_strings)(struct net_device *, u32, u8 *);
1: + int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
1: + void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: + int (*begin)(struct net_device *);
1: + void (*complete)(struct net_device *);
1: + u32 (*get_priv_flags)(struct net_device *);
1: + int (*set_priv_flags)(struct net_device *, u32);
1: + int (*get_sset_count)(struct net_device *, int);
1: + int (*get_rxnfc)(struct net_device *, struct ethtool_rxnfc *, u32 *);
1: + int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *);
1: + int (*flash_device)(struct net_device *, struct ethtool_flash *);
1: + int (*reset)(struct net_device *, u32 *);
1: + u32 (*get_rxfh_key_size)(struct net_device *);
1: + u32 (*get_rxfh_indir_size)(struct net_device *);
1: + int (*get_rxfh)(struct net_device *, u32 *, u8 *, u8 *);
1: + int (*set_rxfh)(struct net_device *, const u32 *, const u8 *, const u8);
1: + int (*get_rxfh_context)(struct net_device *, u32 *, u8 *, u8 *, u32);
1: + int (*set_rxfh_context)(struct net_device *, const u32 *, const u8 *, const u8, u32 *, bool);
1: + void (*get_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*set_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*get_dump_flag)(struct net_device *, struct ethtool_dump *);
1: + int (*get_dump_data)(struct net_device *, struct ethtool_dump *, void *);
1: + int (*set_dump)(struct net_device *, struct ethtool_dump *);
1: + int (*get_ts_info)(struct net_device *, struct ethtool_ts_info *);
1: + int (*get_module_info)(struct net_device *, struct ethtool_modinfo *);
1: + int (*get_module_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*set_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*get_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: + int (*set_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: + int (*get_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: + int (*set_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: + int (*get_link_ksettings)(struct net_device *, struct ethtool_link_ksettings *);
1: + int (*set_link_ksettings)(struct net_device *, const struct ethtool_link_ksettings *);
1: + int (*get_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + int (*set_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + void (*get_ethtool_phy_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: + int (*get_phy_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: + int (*set_phy_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: +};
1: +
1: +struct netlink_ext_ack {
1: + const char *_msg;
1: + const struct nlattr *bad_attr;
1: + const struct nla_policy *policy;
1: + u8 cookie[20];
1: + u8 cookie_len;
1: +};
1: +
1: +struct ieee_ets {
1: + __u8 willing;
1: + __u8 ets_cap;
1: + __u8 cbs;
1: + __u8 tc_tx_bw[8];
1: + __u8 tc_rx_bw[8];
1: + __u8 tc_tsa[8];
1: + __u8 prio_tc[8];
1: + __u8 tc_reco_bw[8];
1: + __u8 tc_reco_tsa[8];
1: + __u8 reco_prio_tc[8];
1: +};
1: +
1: +struct ieee_maxrate {
1: + __u64 tc_maxrate[8];
1: +};
1: +
1: +struct ieee_qcn {
1: + __u8 rpg_enable[8];
1: + __u32 rppp_max_rps[8];
1: + __u32 rpg_time_reset[8];
1: + __u32 rpg_byte_reset[8];
1: + __u32 rpg_threshold[8];
1: + __u32 rpg_max_rate[8];
1: + __u32 rpg_ai_rate[8];
1: + __u32 rpg_hai_rate[8];
1: + __u32 rpg_gd[8];
1: + __u32 rpg_min_dec_fac[8];
1: + __u32 rpg_min_rate[8];
1: + __u32 cndd_state_machine[8];
1: +};
1: +
1: +struct ieee_qcn_stats {
1: + __u64 rppp_rp_centiseconds[8];
1: + __u32 rppp_created_rps[8];
1: +};
1: +
1: +struct ieee_pfc {
1: + __u8 pfc_cap;
1: + __u8 pfc_en;
1: + __u8 mbc;
1: + __u16 delay;
1: + __u64 requests[8];
1: + __u64 indications[8];
1: +};
1: +
1: +struct dcbnl_buffer {
1: + __u8 prio2buffer[8];
1: + __u32 buffer_size[8];
1: + __u32 total_size;
1: +};
1: +
1: +struct cee_pg {
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pg_en;
1: + __u8 tcs_supported;
1: + __u8 pg_bw[8];
1: + __u8 prio_pg[8];
1: +};
1: +
1: +struct cee_pfc {
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pfc_en;
1: + __u8 tcs_supported;
1: +};
1: +
1: +struct dcb_app {
1: + __u8 selector;
1: + __u8 priority;
1: + __u16 protocol;
1: +};
1: +
1: +struct dcb_peer_app_info {
1: + __u8 willing;
1: + __u8 error;
1: +};
1: +
1: +struct dcbnl_rtnl_ops {
1: + int (*ieee_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_setets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_getmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_setmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_getqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_setqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_getqcnstats)(struct net_device *, struct ieee_qcn_stats *);
1: + int (*ieee_getpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_setpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_getapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_setapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_delapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_peer_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_peer_getpfc)(struct net_device *, struct ieee_pfc *);
1: + u8 (*getstate)(struct net_device *);
1: + u8 (*setstate)(struct net_device *, u8);
1: + void (*getpermhwaddr)(struct net_device *, u8 *);
1: + void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgtx)(struct net_device *, int, u8);
1: + void (*setpgtccfgrx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgrx)(struct net_device *, int, u8);
1: + void (*getpgtccfgtx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgtx)(struct net_device *, int, u8 *);
1: + void (*getpgtccfgrx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgrx)(struct net_device *, int, u8 *);
1: + void (*setpfccfg)(struct net_device *, int, u8);
1: + void (*getpfccfg)(struct net_device *, int, u8 *);
1: + u8 (*setall)(struct net_device *);
1: + u8 (*getcap)(struct net_device *, int, u8 *);
1: + int (*getnumtcs)(struct net_device *, int, u8 *);
1: + int (*setnumtcs)(struct net_device *, int, u8);
1: + u8 (*getpfcstate)(struct net_device *);
1: + void (*setpfcstate)(struct net_device *, u8);
1: + void (*getbcncfg)(struct net_device *, int, u32 *);
1: + void (*setbcncfg)(struct net_device *, int, u32);
1: + void (*getbcnrp)(struct net_device *, int, u8 *);
1: + void (*setbcnrp)(struct net_device *, int, u8);
1: + int (*setapp)(struct net_device *, u8, u16, u8);
1: + int (*getapp)(struct net_device *, u8, u16);
1: + u8 (*getfeatcfg)(struct net_device *, int, u8 *);
1: + u8 (*setfeatcfg)(struct net_device *, int, u8);
1: + u8 (*getdcbx)(struct net_device *);
1: + u8 (*setdcbx)(struct net_device *, u8);
1: + int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *, u16 *);
1: + int (*peer_getapptable)(struct net_device *, struct dcb_app *);
1: + int (*cee_peer_getpg)(struct net_device *, struct cee_pg *);
1: + int (*cee_peer_getpfc)(struct net_device *, struct cee_pfc *);
1: + int (*dcbnl_getbuffer)(struct net_device *, struct dcbnl_buffer *);
1: + int (*dcbnl_setbuffer)(struct net_device *, struct dcbnl_buffer *);
1: +};
1: +
1: +struct netprio_map {
1: + struct callback_head rcu;
1: + u32 priomap_len;
1: + u32 priomap[0];
1: +};
1: +
1: +struct xdp_mem_info {
1: + u32 type;
1: + u32 id;
1: +};
1: +
1: +struct xdp_rxq_info {
1: + struct net_device *dev;
1: + u32 queue_index;
1: + u32 reg_state;
1: + struct xdp_mem_info mem;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xdp_frame {
1: + void *data;
1: + u16 len;
1: + u16 headroom;
1: + u32 metasize: 8;
1: + u32 frame_sz: 24;
1: + struct xdp_mem_info mem;
1: + struct net_device *dev_rx;
1: +};
1: +
1: +struct nlmsghdr {
1: + __u32 nlmsg_len;
1: + __u16 nlmsg_type;
1: + __u16 nlmsg_flags;
1: + __u32 nlmsg_seq;
1: + __u32 nlmsg_pid;
1: +};
1: +
1: +struct nlattr {
1: + __u16 nla_len;
1: + __u16 nla_type;
1: +};
1: +
1: +struct netlink_range_validation;
1: +
1: +struct netlink_range_validation_signed;
1: +
1: +struct nla_policy {
1: + u8 type;
1: + u8 validation_type;
1: + u16 len;
1: + union {
1: + const u32 bitfield32_valid;
1: + const u32 mask;
1: + const char *reject_message;
1: + const struct nla_policy *nested_policy;
1: + struct netlink_range_validation *range;
1: + struct netlink_range_validation_signed *range_signed;
1: + struct {
1: + s16 min;
1: + s16 max;
1: + };
1: + int (*validate)(const struct nlattr *, struct netlink_ext_ack *);
1: + u16 strict_start_type;
1: + };
1: +};
1: +
1: +struct netlink_callback {
1: + struct sk_buff *skb;
1: + const struct nlmsghdr *nlh;
1: + int (*dump)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + void *data;
1: + struct module *module;
1: + struct netlink_ext_ack *extack;
1: + u16 family;
1: + u16 answer_flags;
1: + u32 min_dump_alloc;
1: + unsigned int prev_seq;
1: + unsigned int seq;
1: + bool strict_check;
1: + union {
1: + u8 ctx[48];
1: + long int args[6];
1: + };
1: +};
1: +
1: +struct ndmsg {
1: + __u8 ndm_family;
1: + __u8 ndm_pad1;
1: + __u16 ndm_pad2;
1: + __s32 ndm_ifindex;
1: + __u16 ndm_state;
1: + __u8 ndm_flags;
1: + __u8 ndm_type;
1: +};
1: +
1: +struct rtnl_link_stats64 {
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 rx_errors;
1: + __u64 tx_errors;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: + __u64 multicast;
1: + __u64 collisions;
1: + __u64 rx_length_errors;
1: + __u64 rx_over_errors;
1: + __u64 rx_crc_errors;
1: + __u64 rx_frame_errors;
1: + __u64 rx_fifo_errors;
1: + __u64 rx_missed_errors;
1: + __u64 tx_aborted_errors;
1: + __u64 tx_carrier_errors;
1: + __u64 tx_fifo_errors;
1: + __u64 tx_heartbeat_errors;
1: + __u64 tx_window_errors;
1: + __u64 rx_compressed;
1: + __u64 tx_compressed;
1: + __u64 rx_nohandler;
1: +};
1: +
1: +struct ifla_vf_guid {
1: + __u32 vf;
1: + __u64 guid;
1: +};
1: +
1: +struct ifla_vf_stats {
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 broadcast;
1: + __u64 multicast;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: +};
1: +
1: +struct ifla_vf_info {
1: + __u32 vf;
1: + __u8 mac[32];
1: + __u32 vlan;
1: + __u32 qos;
1: + __u32 spoofchk;
1: + __u32 linkstate;
1: + __u32 min_tx_rate;
1: + __u32 max_tx_rate;
1: + __u32 rss_query_en;
1: + __u32 trusted;
1: + __be16 vlan_proto;
1: +};
1: +
1: +struct tc_stats {
1: + __u64 bytes;
1: + __u32 packets;
1: + __u32 drops;
1: + __u32 overlimits;
1: + __u32 bps;
1: + __u32 pps;
1: + __u32 qlen;
1: + __u32 backlog;
1: +};
1: +
1: +struct tc_sizespec {
1: + unsigned char cell_log;
1: + unsigned char size_log;
1: + short int cell_align;
1: + int overhead;
1: + unsigned int linklayer;
1: + unsigned int mpu;
1: + unsigned int mtu;
1: + unsigned int tsize;
1: +};
1: +
1: +enum netdev_tx {
1: + __NETDEV_TX_MIN = 2147483648,
1: + NETDEV_TX_OK = 0,
1: + NETDEV_TX_BUSY = 16,
1: +};
1: +
1: +typedef enum netdev_tx netdev_tx_t;
1: +
1: +struct header_ops {
1: + int (*create)(struct sk_buff *, struct net_device *, short unsigned int, const void *, const void *, unsigned int);
1: + int (*parse)(const struct sk_buff *, unsigned char *);
1: + int (*cache)(const struct neighbour *, struct hh_cache *, __be16);
1: + void (*cache_update)(struct hh_cache *, const struct net_device *, const unsigned char *);
1: + bool (*validate)(const char *, unsigned int);
1: + __be16 (*parse_protocol)(const struct sk_buff *);
1: +};
1: +
1: +struct xsk_buff_pool;
1: +
1: +struct netdev_queue {
1: + struct net_device *dev;
1: + struct Qdisc *qdisc;
1: + struct Qdisc *qdisc_sleeping;
1: + struct kobject kobj;
1: + int numa_node;
1: + long unsigned int tx_maxrate;
1: + long unsigned int trans_timeout;
1: + struct net_device *sb_dev;
1: + struct xsk_buff_pool *pool;
1: + spinlock_t _xmit_lock;
1: + int xmit_lock_owner;
1: + long unsigned int trans_start;
1: + long unsigned int state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct dql dql;
1: +};
1: +
1: +struct qdisc_skb_head {
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + __u32 qlen;
1: + spinlock_t lock;
1: +};
1: +
1: +struct gnet_stats_basic_packed {
1: + __u64 bytes;
1: + __u64 packets;
1: +};
1: +
1: +struct gnet_stats_queue {
1: + __u32 qlen;
1: + __u32 backlog;
1: + __u32 drops;
1: + __u32 requeues;
1: + __u32 overlimits;
1: +};
1: +
1: +struct Qdisc_ops;
1: +
1: +struct qdisc_size_table;
1: +
1: +struct net_rate_estimator;
1: +
1: +struct gnet_stats_basic_cpu;
1: +
1: +struct Qdisc {
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff * (*dequeue)(struct Qdisc *);
1: + unsigned int flags;
1: + u32 limit;
1: + const struct Qdisc_ops *ops;
1: + struct qdisc_size_table *stab;
1: + struct hlist_node hash;
1: + u32 handle;
1: + u32 parent;
1: + struct netdev_queue *dev_queue;
1: + struct net_rate_estimator *rate_est;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + int pad;
1: + refcount_t refcnt;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sk_buff_head gso_skb;
1: + struct qdisc_skb_head q;
1: + struct gnet_stats_basic_packed bstats;
1: + seqcount_t running;
1: + struct gnet_stats_queue qstats;
1: + long unsigned int state;
1: + struct Qdisc *next_sched;
1: + struct sk_buff_head skb_bad_txq;
1: + spinlock_t busylock;
1: + spinlock_t seqlock;
1: + bool empty;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long int privdata[0];
1: +};
1: +
1: +struct rps_map {
1: + unsigned int len;
1: + struct callback_head rcu;
1: + u16 cpus[0];
1: +};
1: +
1: +struct rps_dev_flow {
1: + u16 cpu;
1: + u16 filter;
1: + unsigned int last_qtail;
1: +};
1: +
1: +struct rps_dev_flow_table {
1: + unsigned int mask;
1: + struct callback_head rcu;
1: + struct rps_dev_flow flows[0];
1: +};
1: +
1: +struct netdev_rx_queue {
1: + struct rps_map *rps_map;
1: + struct rps_dev_flow_table *rps_flow_table;
1: + struct kobject kobj;
1: + struct net_device *dev;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct xdp_rxq_info xdp_rxq;
1: + struct xsk_buff_pool *pool;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xps_map {
1: + unsigned int len;
1: + unsigned int alloc_len;
1: + struct callback_head rcu;
1: + u16 queues[0];
1: +};
1: +
1: +struct xps_dev_maps {
1: + struct callback_head rcu;
1: + struct xps_map *attr_map[0];
1: +};
1: +
1: +struct netdev_fcoe_hbainfo {
1: + char manufacturer[64];
1: + char serial_number[64];
1: + char hardware_version[64];
1: + char driver_version[64];
1: + char optionrom_version[64];
1: + char firmware_version[64];
1: + char model[256];
1: + char model_description[256];
1: +};
1: +
1: +struct netdev_phys_item_id {
1: + unsigned char id[32];
1: + unsigned char id_len;
1: +};
1: +
1: +enum tc_setup_type {
1: + TC_SETUP_QDISC_MQPRIO = 0,
1: + TC_SETUP_CLSU32 = 1,
1: + TC_SETUP_CLSFLOWER = 2,
1: + TC_SETUP_CLSMATCHALL = 3,
1: + TC_SETUP_CLSBPF = 4,
1: + TC_SETUP_BLOCK = 5,
1: + TC_SETUP_QDISC_CBS = 6,
1: + TC_SETUP_QDISC_RED = 7,
1: + TC_SETUP_QDISC_PRIO = 8,
1: + TC_SETUP_QDISC_MQ = 9,
1: + TC_SETUP_QDISC_ETF = 10,
1: + TC_SETUP_ROOT_QDISC = 11,
1: + TC_SETUP_QDISC_GRED = 12,
1: + TC_SETUP_QDISC_TAPRIO = 13,
1: + TC_SETUP_FT = 14,
1: + TC_SETUP_QDISC_ETS = 15,
1: + TC_SETUP_QDISC_TBF = 16,
1: + TC_SETUP_QDISC_FIFO = 17,
1: +};
1: +
1: +enum bpf_netdev_command {
1: + XDP_SETUP_PROG = 0,
1: + XDP_SETUP_PROG_HW = 1,
1: + BPF_OFFLOAD_MAP_ALLOC = 2,
1: + BPF_OFFLOAD_MAP_FREE = 3,
1: + XDP_SETUP_XSK_POOL = 4,
1: +};
1: +
1: +struct netdev_bpf {
1: + enum bpf_netdev_command command;
1: + union {
1: + struct {
1: + u32 flags;
1: + struct bpf_prog *prog;
1: + struct netlink_ext_ack *extack;
1: + };
1: + struct {
1: + struct bpf_offloaded_map *offmap;
1: + };
1: + struct {
1: + struct xsk_buff_pool *pool;
1: + u16 queue_id;
1: + } xsk;
1: + };
1: +};
1: +
1: +struct xfrmdev_ops {
1: + int (*xdo_dev_state_add)(struct xfrm_state *);
1: + void (*xdo_dev_state_delete)(struct xfrm_state *);
1: + void (*xdo_dev_state_free)(struct xfrm_state *);
1: + bool (*xdo_dev_offload_ok)(struct sk_buff *, struct xfrm_state *);
1: + void (*xdo_dev_state_advance_esn)(struct xfrm_state *);
1: +};
1: +
1: +struct dev_ifalias {
1: + struct callback_head rcuhead;
1: + char ifalias[0];
1: +};
1: +
1: +struct netdev_name_node {
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + struct net_device *dev;
1: + const char *name;
1: +};
1: +
1: +struct udp_tunnel_info;
1: +
1: +struct devlink_port;
1: +
1: +struct ip_tunnel_parm;
1: +
1: +struct net_device_ops {
1: + int (*ndo_init)(struct net_device *);
1: + void (*ndo_uninit)(struct net_device *);
1: + int (*ndo_open)(struct net_device *);
1: + int (*ndo_stop)(struct net_device *);
1: + netdev_tx_t (*ndo_start_xmit)(struct sk_buff *, struct net_device *);
1: + netdev_features_t (*ndo_features_check)(struct sk_buff *, struct net_device *, netdev_features_t);
1: + u16 (*ndo_select_queue)(struct net_device *, struct sk_buff *, struct net_device *);
1: + void (*ndo_change_rx_flags)(struct net_device *, int);
1: + void (*ndo_set_rx_mode)(struct net_device *);
1: + int (*ndo_set_mac_address)(struct net_device *, void *);
1: + int (*ndo_validate_addr)(struct net_device *);
1: + int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: + int (*ndo_set_config)(struct net_device *, struct ifmap *);
1: + int (*ndo_change_mtu)(struct net_device *, int);
1: + int (*ndo_neigh_setup)(struct net_device *, struct neigh_parms *);
1: + void (*ndo_tx_timeout)(struct net_device *, unsigned int);
1: + void (*ndo_get_stats64)(struct net_device *, struct rtnl_link_stats64 *);
1: + bool (*ndo_has_offload_stats)(const struct net_device *, int);
1: + int (*ndo_get_offload_stats)(int, const struct net_device *, void *);
1: + struct net_device_stats * (*ndo_get_stats)(struct net_device *);
1: + int (*ndo_vlan_rx_add_vid)(struct net_device *, __be16, u16);
1: + int (*ndo_vlan_rx_kill_vid)(struct net_device *, __be16, u16);
1: + void (*ndo_poll_controller)(struct net_device *);
1: + int (*ndo_netpoll_setup)(struct net_device *, struct netpoll_info *);
1: + void (*ndo_netpoll_cleanup)(struct net_device *);
1: + int (*ndo_set_vf_mac)(struct net_device *, int, u8 *);
1: + int (*ndo_set_vf_vlan)(struct net_device *, int, u16, u8, __be16);
1: + int (*ndo_set_vf_rate)(struct net_device *, int, int, int);
1: + int (*ndo_set_vf_spoofchk)(struct net_device *, int, bool);
1: + int (*ndo_set_vf_trust)(struct net_device *, int, bool);
1: + int (*ndo_get_vf_config)(struct net_device *, int, struct ifla_vf_info *);
1: + int (*ndo_set_vf_link_state)(struct net_device *, int, int);
1: + int (*ndo_get_vf_stats)(struct net_device *, int, struct ifla_vf_stats *);
1: + int (*ndo_set_vf_port)(struct net_device *, int, struct nlattr **);
1: + int (*ndo_get_vf_port)(struct net_device *, int, struct sk_buff *);
1: + int (*ndo_get_vf_guid)(struct net_device *, int, struct ifla_vf_guid *, struct ifla_vf_guid *);
1: + int (*ndo_set_vf_guid)(struct net_device *, int, u64, int);
1: + int (*ndo_set_vf_rss_query_en)(struct net_device *, int, bool);
1: + int (*ndo_setup_tc)(struct net_device *, enum tc_setup_type, void *);
1: + int (*ndo_fcoe_enable)(struct net_device *);
1: + int (*ndo_fcoe_disable)(struct net_device *);
1: + int (*ndo_fcoe_ddp_setup)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: + int (*ndo_fcoe_ddp_done)(struct net_device *, u16);
1: + int (*ndo_fcoe_ddp_target)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: + int (*ndo_fcoe_get_hbainfo)(struct net_device *, struct netdev_fcoe_hbainfo *);
1: + int (*ndo_fcoe_get_wwn)(struct net_device *, u64 *, int);
1: + int (*ndo_rx_flow_steer)(struct net_device *, const struct sk_buff *, u16, u32);
1: + int (*ndo_add_slave)(struct net_device *, struct net_device *, struct netlink_ext_ack *);
1: + int (*ndo_del_slave)(struct net_device *, struct net_device *);
1: + struct net_device * (*ndo_get_xmit_slave)(struct net_device *, struct sk_buff *, bool);
1: + netdev_features_t (*ndo_fix_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_set_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_neigh_construct)(struct net_device *, struct neighbour *);
1: + void (*ndo_neigh_destroy)(struct net_device *, struct neighbour *);
1: + int (*ndo_fdb_add)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, u16, struct netlink_ext_ack *);
1: + int (*ndo_fdb_del)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16);
1: + int (*ndo_fdb_dump)(struct sk_buff *, struct netlink_callback *, struct net_device *, struct net_device *, int *);
1: + int (*ndo_fdb_get)(struct sk_buff *, struct nlattr **, struct net_device *, const unsigned char *, u16, u32, u32, struct netlink_ext_ack *);
1: + int (*ndo_bridge_setlink)(struct net_device *, struct nlmsghdr *, u16, struct netlink_ext_ack *);
1: + int (*ndo_bridge_getlink)(struct sk_buff *, u32, u32, struct net_device *, u32, int);
1: + int (*ndo_bridge_dellink)(struct net_device *, struct nlmsghdr *, u16);
1: + int (*ndo_change_carrier)(struct net_device *, bool);
1: + int (*ndo_get_phys_port_id)(struct net_device *, struct netdev_phys_item_id *);
1: + int (*ndo_get_port_parent_id)(struct net_device *, struct netdev_phys_item_id *);
1: + int (*ndo_get_phys_port_name)(struct net_device *, char *, size_t);
1: + void (*ndo_udp_tunnel_add)(struct net_device *, struct udp_tunnel_info *);
1: + void (*ndo_udp_tunnel_del)(struct net_device *, struct udp_tunnel_info *);
1: + void * (*ndo_dfwd_add_station)(struct net_device *, struct net_device *);
1: + void (*ndo_dfwd_del_station)(struct net_device *, void *);
1: + int (*ndo_set_tx_maxrate)(struct net_device *, int, u32);
1: + int (*ndo_get_iflink)(const struct net_device *);
1: + int (*ndo_change_proto_down)(struct net_device *, bool);
1: + int (*ndo_fill_metadata_dst)(struct net_device *, struct sk_buff *);
1: + void (*ndo_set_rx_headroom)(struct net_device *, int);
1: + int (*ndo_bpf)(struct net_device *, struct netdev_bpf *);
1: + int (*ndo_xdp_xmit)(struct net_device *, int, struct xdp_frame **, u32);
1: + int (*ndo_xsk_wakeup)(struct net_device *, u32, u32);
1: + struct devlink_port * (*ndo_get_devlink_port)(struct net_device *);
1: + int (*ndo_tunnel_ctl)(struct net_device *, struct ip_tunnel_parm *, int);
1: + struct net_device * (*ndo_get_peer_dev)(struct net_device *);
1: +};
1: +
1: +struct neigh_parms {
1: + possible_net_t net;
1: + struct net_device *dev;
1: + struct list_head list;
1: + int (*neigh_setup)(struct neighbour *);
1: + struct neigh_table *tbl;
1: + void *sysctl_table;
1: + int dead;
1: + refcount_t refcnt;
1: + struct callback_head callback_head;
1: + int reachable_time;
1: + int data[13];
1: + long unsigned int data_state[1];
1: +};
1: +
1: +struct pcpu_lstats {
1: + u64_stats_t packets;
1: + u64_stats_t bytes;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct pcpu_sw_netstats {
1: + u64 rx_packets;
1: + u64 rx_bytes;
1: + u64 tx_packets;
1: + u64 tx_bytes;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct iw_request_info;
1: +
1: +union iwreq_data;
1: +
1: +typedef int (*iw_handler)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *);
1: +
1: +struct iw_priv_args;
1: +
1: +struct iw_statistics;
1: +
1: +struct iw_handler_def {
1: + const iw_handler *standard;
1: + __u16 num_standard;
1: + __u16 num_private;
1: + __u16 num_private_args;
1: + const iw_handler *private;
1: + const struct iw_priv_args *private_args;
1: + struct iw_statistics * (*get_wireless_stats)(struct net_device *);
1: +};
1: +
1: +struct l3mdev_ops {
1: + u32 (*l3mdev_fib_table)(const struct net_device *);
1: + struct sk_buff * (*l3mdev_l3_rcv)(struct net_device *, struct sk_buff *, u16);
1: + struct sk_buff * (*l3mdev_l3_out)(struct net_device *, struct sock *, struct sk_buff *, u16);
1: + struct dst_entry * (*l3mdev_link_scope_lookup)(const struct net_device *, struct flowi6 *);
1: +};
1: +
1: +struct nd_opt_hdr;
1: +
1: +struct ndisc_options;
1: +
1: +struct prefix_info;
1: +
1: +struct ndisc_ops {
1: + int (*is_useropt)(u8);
1: + int (*parse_options)(const struct net_device *, struct nd_opt_hdr *, struct ndisc_options *);
1: + void (*update)(const struct net_device *, struct neighbour *, u32, u8, const struct ndisc_options *);
1: + int (*opt_addr_space)(const struct net_device *, u8, struct neighbour *, u8 *, u8 **);
1: + void (*fill_addr_option)(const struct net_device *, struct sk_buff *, u8, const u8 *);
1: + void (*prefix_rcv_add_addr)(struct net *, struct net_device *, const struct prefix_info *, struct inet6_dev *, struct in6_addr *, int, u32, bool, bool, __u32, u32, bool);
1: +};
1: +
1: +enum tls_offload_ctx_dir {
1: + TLS_OFFLOAD_CTX_DIR_RX = 0,
1: + TLS_OFFLOAD_CTX_DIR_TX = 1,
1: +};
1: +
1: +struct tls_crypto_info;
1: +
1: +struct tls_context;
1: +
1: +struct tlsdev_ops {
1: + int (*tls_dev_add)(struct net_device *, struct sock *, enum tls_offload_ctx_dir, struct tls_crypto_info *, u32);
1: + void (*tls_dev_del)(struct net_device *, struct tls_context *, enum tls_offload_ctx_dir);
1: + int (*tls_dev_resync)(struct net_device *, struct sock *, u32, u8 *, enum tls_offload_ctx_dir);
1: +};
1: +
1: +struct ipv6_devstat {
1: + struct proc_dir_entry *proc_dir_entry;
1: + struct ipstats_mib *ipv6;
1: + struct icmpv6_mib_device *icmpv6dev;
1: + struct icmpv6msg_mib_device *icmpv6msgdev;
1: +};
1: +
1: +struct ifmcaddr6;
1: +
1: +struct ifacaddr6;
1: +
1: +struct inet6_dev {
1: + struct net_device *dev;
1: + struct list_head addr_list;
1: + struct ifmcaddr6 *mc_list;
1: + struct ifmcaddr6 *mc_tomb;
1: + spinlock_t mc_lock;
1: + unsigned char mc_qrv;
1: + unsigned char mc_gq_running;
1: + unsigned char mc_ifc_count;
1: + unsigned char mc_dad_count;
1: + long unsigned int mc_v1_seen;
1: + long unsigned int mc_qi;
1: + long unsigned int mc_qri;
1: + long unsigned int mc_maxdelay;
1: + struct timer_list mc_gq_timer;
1: + struct timer_list mc_ifc_timer;
1: + struct timer_list mc_dad_timer;
1: + struct ifacaddr6 *ac_list;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + __u32 if_flags;
1: + int dead;
1: + u32 desync_factor;
1: + struct list_head tempaddr_list;
1: + struct in6_addr token;
1: + struct neigh_parms *nd_parms;
1: + struct ipv6_devconf cnf;
1: + struct ipv6_devstat stats;
1: + struct timer_list rs_timer;
1: + __s32 rs_interval;
1: + __u8 rs_probes;
1: + long unsigned int tstamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_proto;
1: +
1: +struct tcf_block;
1: +
1: +struct mini_Qdisc {
1: + struct tcf_proto *filter_list;
1: + struct tcf_block *block;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rtnl_link_ops {
1: + struct list_head list;
1: + const char *kind;
1: + size_t priv_size;
1: + void (*setup)(struct net_device *);
1: + unsigned int maxtype;
1: + const struct nla_policy *policy;
1: + int (*validate)(struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + int (*newlink)(struct net *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + int (*changelink)(struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + void (*dellink)(struct net_device *, struct list_head *);
1: + size_t (*get_size)(const struct net_device *);
1: + int (*fill_info)(struct sk_buff *, const struct net_device *);
1: + size_t (*get_xstats_size)(const struct net_device *);
1: + int (*fill_xstats)(struct sk_buff *, const struct net_device *);
1: + unsigned int (*get_num_tx_queues)();
1: + unsigned int (*get_num_rx_queues)();
1: + unsigned int slave_maxtype;
1: + const struct nla_policy *slave_policy;
1: + int (*slave_changelink)(struct net_device *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + size_t (*get_slave_size)(const struct net_device *, const struct net_device *);
1: + int (*fill_slave_info)(struct sk_buff *, const struct net_device *, const struct net_device *);
1: + struct net * (*get_link_net)(const struct net_device *);
1: + size_t (*get_linkxstats_size)(const struct net_device *, int);
1: + int (*fill_linkxstats)(struct sk_buff *, const struct net_device *, int *, int);
1: +};
1: +
1: +struct udp_tunnel_nic_table_info {
1: + unsigned int n_entries;
1: + unsigned int tunnel_types;
1: +};
1: +
1: +struct udp_tunnel_nic_shared;
1: +
1: +struct udp_tunnel_nic_info {
1: + int (*set_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: + int (*unset_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: + int (*sync_table)(struct net_device *, unsigned int);
1: + struct udp_tunnel_nic_shared *shared;
1: + unsigned int flags;
1: + struct udp_tunnel_nic_table_info tables[4];
1: +};
1: +
1: +enum {
1: + RTAX_UNSPEC = 0,
1: + RTAX_LOCK = 1,
1: + RTAX_MTU = 2,
1: + RTAX_WINDOW = 3,
1: + RTAX_RTT = 4,
1: + RTAX_RTTVAR = 5,
1: + RTAX_SSTHRESH = 6,
1: + RTAX_CWND = 7,
1: + RTAX_ADVMSS = 8,
1: + RTAX_REORDERING = 9,
1: + RTAX_HOPLIMIT = 10,
1: + RTAX_INITCWND = 11,
1: + RTAX_FEATURES = 12,
1: + RTAX_RTO_MIN = 13,
1: + RTAX_INITRWND = 14,
1: + RTAX_QUICKACK = 15,
1: + RTAX_CC_ALGO = 16,
1: + RTAX_FASTOPEN_NO_COOKIE = 17,
1: + __RTAX_MAX = 18,
1: +};
1: +
1: +struct tcmsg {
1: + unsigned char tcm_family;
1: + unsigned char tcm__pad1;
1: + short unsigned int tcm__pad2;
1: + int tcm_ifindex;
1: + __u32 tcm_handle;
1: + __u32 tcm_parent;
1: + __u32 tcm_info;
1: +};
1: +
1: +struct gnet_stats_basic_cpu {
1: + struct gnet_stats_basic_packed bstats;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct gnet_dump {
1: + spinlock_t *lock;
1: + struct sk_buff *skb;
1: + struct nlattr *tail;
1: + int compat_tc_stats;
1: + int compat_xstats;
1: + int padattr;
1: + void *xstats;
1: + int xstats_len;
1: + struct tc_stats tc_stats;
1: +};
1: +
1: +struct netlink_range_validation {
1: + u64 min;
1: + u64 max;
1: +};
1: +
1: +struct netlink_range_validation_signed {
1: + s64 min;
1: + s64 max;
1: +};
1: +
1: +enum flow_action_hw_stats_bit {
1: + FLOW_ACTION_HW_STATS_IMMEDIATE_BIT = 0,
1: + FLOW_ACTION_HW_STATS_DELAYED_BIT = 1,
1: + FLOW_ACTION_HW_STATS_DISABLED_BIT = 2,
1: + FLOW_ACTION_HW_STATS_NUM_BITS = 3,
1: +};
1: +
1: +struct flow_block {
1: + struct list_head cb_list;
1: +};
1: +
1: +typedef int flow_setup_cb_t(enum tc_setup_type, void *, void *);
1: +
1: +struct qdisc_size_table {
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct tc_sizespec szopts;
1: + int refcnt;
1: + u16 data[0];
1: +};
1: +
1: +struct Qdisc_class_ops;
1: +
1: +struct Qdisc_ops {
1: + struct Qdisc_ops *next;
1: + const struct Qdisc_class_ops *cl_ops;
1: + char id[16];
1: + int priv_size;
1: + unsigned int static_flags;
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff * (*dequeue)(struct Qdisc *);
1: + struct sk_buff * (*peek)(struct Qdisc *);
1: + int (*init)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*reset)(struct Qdisc *);
1: + void (*destroy)(struct Qdisc *);
1: + int (*change)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*attach)(struct Qdisc *);
1: + int (*change_tx_queue_len)(struct Qdisc *, unsigned int);
1: + int (*dump)(struct Qdisc *, struct sk_buff *);
1: + int (*dump_stats)(struct Qdisc *, struct gnet_dump *);
1: + void (*ingress_block_set)(struct Qdisc *, u32);
1: + void (*egress_block_set)(struct Qdisc *, u32);
1: + u32 (*ingress_block_get)(struct Qdisc *);
1: + u32 (*egress_block_get)(struct Qdisc *);
1: + struct module *owner;
1: +};
1: +
1: +struct qdisc_walker;
1: +
1: +struct Qdisc_class_ops {
1: + unsigned int flags;
1: + struct netdev_queue * (*select_queue)(struct Qdisc *, struct tcmsg *);
1: + int (*graft)(struct Qdisc *, long unsigned int, struct Qdisc *, struct Qdisc **, struct netlink_ext_ack *);
1: + struct Qdisc * (*leaf)(struct Qdisc *, long unsigned int);
1: + void (*qlen_notify)(struct Qdisc *, long unsigned int);
1: + long unsigned int (*find)(struct Qdisc *, u32);
1: + int (*change)(struct Qdisc *, u32, u32, struct nlattr **, long unsigned int *, struct netlink_ext_ack *);
1: + int (*delete)(struct Qdisc *, long unsigned int);
1: + void (*walk)(struct Qdisc *, struct qdisc_walker *);
1: + struct tcf_block * (*tcf_block)(struct Qdisc *, long unsigned int, struct netlink_ext_ack *);
1: + long unsigned int (*bind_tcf)(struct Qdisc *, long unsigned int, u32);
1: + void (*unbind_tcf)(struct Qdisc *, long unsigned int);
1: + int (*dump)(struct Qdisc *, long unsigned int, struct sk_buff *, struct tcmsg *);
1: + int (*dump_stats)(struct Qdisc *, long unsigned int, struct gnet_dump *);
1: +};
1: +
1: +struct tcf_chain;
1: +
1: +struct tcf_block {
1: + struct mutex lock;
1: + struct list_head chain_list;
1: + u32 index;
1: + u32 classid;
1: + refcount_t refcnt;
1: + struct net *net;
1: + struct Qdisc *q;
1: + struct rw_semaphore cb_lock;
1: + struct flow_block flow_block;
1: + struct list_head owner_list;
1: + bool keep_dst;
1: + atomic_t offloadcnt;
1: + unsigned int nooffloaddevcnt;
1: + unsigned int lockeddevcnt;
1: + struct {
1: + struct tcf_chain *chain;
1: + struct list_head filter_chain_list;
1: + } chain0;
1: + struct callback_head rcu;
1: + struct hlist_head proto_destroy_ht[128];
1: + struct mutex proto_destroy_lock;
1: +};
1: +
1: +struct tcf_result;
1: +
1: +struct tcf_proto_ops;
1: +
1: +struct tcf_proto {
1: + struct tcf_proto *next;
1: + void *root;
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: + __be16 protocol;
1: + u32 prio;
1: + void *data;
1: + const struct tcf_proto_ops *ops;
1: + struct tcf_chain *chain;
1: + spinlock_t lock;
1: + bool deleting;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct hlist_node destroy_ht_node;
1: +};
1: +
1: +struct tcf_result {
1: + union {
1: + struct {
1: + long unsigned int class;
1: + u32 classid;
1: + };
1: + const struct tcf_proto *goto_tp;
1: + struct {
1: + bool ingress;
1: + struct gnet_stats_queue *qstats;
1: + };
1: + };
1: +};
1: +
1: +struct tcf_walker;
1: +
1: +struct tcf_proto_ops {
1: + struct list_head head;
1: + char kind[16];
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: + int (*init)(struct tcf_proto *);
1: + void (*destroy)(struct tcf_proto *, bool, struct netlink_ext_ack *);
1: + void * (*get)(struct tcf_proto *, u32);
1: + void (*put)(struct tcf_proto *, void *);
1: + int (*change)(struct net *, struct sk_buff *, struct tcf_proto *, long unsigned int, u32, struct nlattr **, void **, bool, bool, struct netlink_ext_ack *);
1: + int (*delete)(struct tcf_proto *, void *, bool *, bool, struct netlink_ext_ack *);
1: + bool (*delete_empty)(struct tcf_proto *);
1: + void (*walk)(struct tcf_proto *, struct tcf_walker *, bool);
1: + int (*reoffload)(struct tcf_proto *, bool, flow_setup_cb_t *, void *, struct netlink_ext_ack *);
1: + void (*hw_add)(struct tcf_proto *, void *);
1: + void (*hw_del)(struct tcf_proto *, void *);
1: + void (*bind_class)(void *, u32, long unsigned int, void *, long unsigned int);
1: + void * (*tmplt_create)(struct net *, struct tcf_chain *, struct nlattr **, struct netlink_ext_ack *);
1: + void (*tmplt_destroy)(void *);
1: + int (*dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: + int (*terse_dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: + int (*tmplt_dump)(struct sk_buff *, struct net *, void *);
1: + struct module *owner;
1: + int flags;
1: +};
1: +
1: +struct tcf_chain {
1: + struct mutex filter_chain_lock;
1: + struct tcf_proto *filter_chain;
1: + struct list_head list;
1: + struct tcf_block *block;
1: + u32 index;
1: + unsigned int refcnt;
1: + unsigned int action_refcnt;
1: + bool explicitly_created;
1: + bool flushing;
1: + const struct tcf_proto_ops *tmplt_ops;
1: + void *tmplt_priv;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct sock_fprog_kern {
1: + u16 len;
1: + struct sock_filter *filter;
1: +};
1: +
1: +struct sk_filter {
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct bpf_prog *prog;
1: +};
1: +
1: +enum {
1: + NEIGH_VAR_MCAST_PROBES = 0,
1: + NEIGH_VAR_UCAST_PROBES = 1,
1: + NEIGH_VAR_APP_PROBES = 2,
1: + NEIGH_VAR_MCAST_REPROBES = 3,
1: + NEIGH_VAR_RETRANS_TIME = 4,
1: + NEIGH_VAR_BASE_REACHABLE_TIME = 5,
1: + NEIGH_VAR_DELAY_PROBE_TIME = 6,
1: + NEIGH_VAR_GC_STALETIME = 7,
1: + NEIGH_VAR_QUEUE_LEN_BYTES = 8,
1: + NEIGH_VAR_PROXY_QLEN = 9,
1: + NEIGH_VAR_ANYCAST_DELAY = 10,
1: + NEIGH_VAR_PROXY_DELAY = 11,
1: + NEIGH_VAR_LOCKTIME = 12,
1: + NEIGH_VAR_QUEUE_LEN = 13,
1: + NEIGH_VAR_RETRANS_TIME_MS = 14,
1: + NEIGH_VAR_BASE_REACHABLE_TIME_MS = 15,
1: + NEIGH_VAR_GC_INTERVAL = 16,
1: + NEIGH_VAR_GC_THRESH1 = 17,
1: + NEIGH_VAR_GC_THRESH2 = 18,
1: + NEIGH_VAR_GC_THRESH3 = 19,
1: + NEIGH_VAR_MAX = 20,
1: +};
1: +
1: +struct pneigh_entry;
1: +
1: +struct neigh_statistics;
1: +
1: +struct neigh_hash_table;
1: +
1: +struct neigh_table {
1: + int family;
1: + unsigned int entry_size;
1: + unsigned int key_len;
1: + __be16 protocol;
1: + __u32 (*hash)(const void *, const struct net_device *, __u32 *);
1: + bool (*key_eq)(const struct neighbour *, const void *);
1: + int (*constructor)(struct neighbour *);
1: + int (*pconstructor)(struct pneigh_entry *);
1: + void (*pdestructor)(struct pneigh_entry *);
1: + void (*proxy_redo)(struct sk_buff *);
1: + int (*is_multicast)(const void *);
1: + bool (*allow_add)(const struct net_device *, struct netlink_ext_ack *);
1: + char *id;
1: + struct neigh_parms parms;
1: + struct list_head parms_list;
1: + int gc_interval;
1: + int gc_thresh1;
1: + int gc_thresh2;
1: + int gc_thresh3;
1: + long unsigned int last_flush;
1: + struct delayed_work gc_work;
1: + struct timer_list proxy_timer;
1: + struct sk_buff_head proxy_queue;
1: + atomic_t entries;
1: + atomic_t gc_entries;
1: + struct list_head gc_list;
1: + rwlock_t lock;
1: + long unsigned int last_rand;
1: + struct neigh_statistics *stats;
1: + struct neigh_hash_table *nht;
1: + struct pneigh_entry **phash_buckets;
1: +};
1: +
1: +struct neigh_statistics {
1: + long unsigned int allocs;
1: + long unsigned int destroys;
1: + long unsigned int hash_grows;
1: + long unsigned int res_failed;
1: + long unsigned int lookups;
1: + long unsigned int hits;
1: + long unsigned int rcv_probes_mcast;
1: + long unsigned int rcv_probes_ucast;
1: + long unsigned int periodic_gc_runs;
1: + long unsigned int forced_gc_runs;
1: + long unsigned int unres_discards;
1: + long unsigned int table_fulls;
1: +};
1: +
1: +struct neigh_ops {
1: + int family;
1: + void (*solicit)(struct neighbour *, struct sk_buff *);
1: + void (*error_report)(struct neighbour *, struct sk_buff *);
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + int (*connected_output)(struct neighbour *, struct sk_buff *);
1: +};
1: +
1: +struct pneigh_entry {
1: + struct pneigh_entry *next;
1: + possible_net_t net;
1: + struct net_device *dev;
1: + u8 flags;
1: + u8 protocol;
1: + u8 key[0];
1: +};
1: +
1: +struct neigh_hash_table {
1: + struct neighbour **hash_buckets;
1: + unsigned int hash_shift;
1: + __u32 hash_rnd[4];
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + TCP_ESTABLISHED = 1,
1: + TCP_SYN_SENT = 2,
1: + TCP_SYN_RECV = 3,
1: + TCP_FIN_WAIT1 = 4,
1: + TCP_FIN_WAIT2 = 5,
1: + TCP_TIME_WAIT = 6,
1: + TCP_CLOSE = 7,
1: + TCP_CLOSE_WAIT = 8,
1: + TCP_LAST_ACK = 9,
1: + TCP_LISTEN = 10,
1: + TCP_CLOSING = 11,
1: + TCP_NEW_SYN_RECV = 12,
1: + TCP_MAX_STATES = 13,
1: +};
1: +
1: +struct fib_rule_hdr {
1: + __u8 family;
1: + __u8 dst_len;
1: + __u8 src_len;
1: + __u8 tos;
1: + __u8 table;
1: + __u8 res1;
1: + __u8 res2;
1: + __u8 action;
1: + __u32 flags;
1: +};
1: +
1: +struct fib_rule_port_range {
1: + __u16 start;
1: + __u16 end;
1: +};
1: +
1: +struct fib_kuid_range {
1: + kuid_t start;
1: + kuid_t end;
1: +};
1: +
1: +struct fib_rule {
1: + struct list_head list;
1: + int iifindex;
1: + int oifindex;
1: + u32 mark;
1: + u32 mark_mask;
1: + u32 flags;
1: + u32 table;
1: + u8 action;
1: + u8 l3mdev;
1: + u8 proto;
1: + u8 ip_proto;
1: + u32 target;
1: + __be64 tun_id;
1: + struct fib_rule *ctarget;
1: + struct net *fr_net;
1: + refcount_t refcnt;
1: + u32 pref;
1: + int suppress_ifgroup;
1: + int suppress_prefixlen;
1: + char iifname[16];
1: + char oifname[16];
1: + struct fib_kuid_range uid_range;
1: + struct fib_rule_port_range sport_range;
1: + struct fib_rule_port_range dport_range;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_lookup_arg {
1: + void *lookup_ptr;
1: + const void *lookup_data;
1: + void *result;
1: + struct fib_rule *rule;
1: + u32 table;
1: + int flags;
1: +};
1: +
1: +struct smc_hashinfo;
1: +
1: +struct request_sock_ops;
1: +
1: +struct timewait_sock_ops;
1: +
1: +struct udp_table;
1: +
1: +struct raw_hashinfo;
1: +
1: +struct proto {
1: + void (*close)(struct sock *, long int);
1: + int (*pre_connect)(struct sock *, struct sockaddr *, int);
1: + int (*connect)(struct sock *, struct sockaddr *, int);
1: + int (*disconnect)(struct sock *, int);
1: + struct sock * (*accept)(struct sock *, int, int *, bool);
1: + int (*ioctl)(struct sock *, int, long unsigned int);
1: + int (*init)(struct sock *);
1: + void (*destroy)(struct sock *);
1: + void (*shutdown)(struct sock *, int);
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*keepalive)(struct sock *, int);
1: + int (*compat_ioctl)(struct sock *, unsigned int, long unsigned int);
1: + int (*sendmsg)(struct sock *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct sock *, struct msghdr *, size_t, int, int, int *);
1: + int (*sendpage)(struct sock *, struct page *, int, size_t, int);
1: + int (*bind)(struct sock *, struct sockaddr *, int);
1: + int (*bind_add)(struct sock *, struct sockaddr *, int);
1: + int (*backlog_rcv)(struct sock *, struct sk_buff *);
1: + void (*release_cb)(struct sock *);
1: + int (*hash)(struct sock *);
1: + void (*unhash)(struct sock *);
1: + void (*rehash)(struct sock *);
1: + int (*get_port)(struct sock *, short unsigned int);
1: + unsigned int inuse_idx;
1: + bool (*stream_memory_free)(const struct sock *, int);
1: + bool (*stream_memory_read)(const struct sock *);
1: + void (*enter_memory_pressure)(struct sock *);
1: + void (*leave_memory_pressure)(struct sock *);
1: + atomic_long_t *memory_allocated;
1: + struct percpu_counter *sockets_allocated;
1: + long unsigned int *memory_pressure;
1: + long int *sysctl_mem;
1: + int *sysctl_wmem;
1: + int *sysctl_rmem;
1: + u32 sysctl_wmem_offset;
1: + u32 sysctl_rmem_offset;
1: + int max_header;
1: + bool no_autobind;
1: + struct kmem_cache *slab;
1: + unsigned int obj_size;
1: + slab_flags_t slab_flags;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct percpu_counter *orphan_count;
1: + struct request_sock_ops *rsk_prot;
1: + struct timewait_sock_ops *twsk_prot;
1: + union {
1: + struct inet_hashinfo *hashinfo;
1: + struct udp_table *udp_table;
1: + struct raw_hashinfo *raw_hash;
1: + struct smc_hashinfo *smc_hash;
1: + } h;
1: + struct module *owner;
1: + char name[32];
1: + struct list_head node;
1: + int (*diag_destroy)(struct sock *, int);
1: +};
1: +
1: +struct request_sock;
1: +
1: +struct request_sock_ops {
1: + int family;
1: + unsigned int obj_size;
1: + struct kmem_cache *slab;
1: + char *slab_name;
1: + int (*rtx_syn_ack)(const struct sock *, struct request_sock *);
1: + void (*send_ack)(const struct sock *, struct sk_buff *, struct request_sock *);
1: + void (*send_reset)(const struct sock *, struct sk_buff *);
1: + void (*destructor)(struct request_sock *);
1: + void (*syn_ack_timeout)(const struct request_sock *);
1: +};
1: +
1: +struct timewait_sock_ops {
1: + struct kmem_cache *twsk_slab;
1: + char *twsk_slab_name;
1: + unsigned int twsk_obj_size;
1: + int (*twsk_unique)(struct sock *, struct sock *, void *);
1: + void (*twsk_destructor)(struct sock *);
1: +};
1: +
1: +struct saved_syn;
1: +
1: +struct request_sock {
1: + struct sock_common __req_common;
1: + struct request_sock *dl_next;
1: + u16 mss;
1: + u8 num_retrans;
1: + u8 syncookie: 1;
1: + u8 num_timeout: 7;
1: + u32 ts_recent;
1: + struct timer_list rsk_timer;
1: + const struct request_sock_ops *rsk_ops;
1: + struct sock *sk;
1: + struct saved_syn *saved_syn;
1: + u32 secid;
1: + u32 peer_secid;
1: +};
1: +
1: +struct saved_syn {
1: + u32 mac_hdrlen;
1: + u32 network_hdrlen;
1: + u32 tcp_hdrlen;
1: + u8 data[0];
1: +};
1: +
1: +enum tsq_enum {
1: + TSQ_THROTTLED = 0,
1: + TSQ_QUEUED = 1,
1: + TCP_TSQ_DEFERRED = 2,
1: + TCP_WRITE_TIMER_DEFERRED = 3,
1: + TCP_DELACK_TIMER_DEFERRED = 4,
1: + TCP_MTU_REDUCED_DEFERRED = 5,
1: +};
1: +
1: +struct ip6_sf_list {
1: + struct ip6_sf_list *sf_next;
1: + struct in6_addr sf_addr;
1: + long unsigned int sf_count[2];
1: + unsigned char sf_gsresp;
1: + unsigned char sf_oldin;
1: + unsigned char sf_crcount;
1: +};
1: +
1: +struct ifmcaddr6 {
1: + struct in6_addr mca_addr;
1: + struct inet6_dev *idev;
1: + struct ifmcaddr6 *next;
1: + struct ip6_sf_list *mca_sources;
1: + struct ip6_sf_list *mca_tomb;
1: + unsigned int mca_sfmode;
1: + unsigned char mca_crcount;
1: + long unsigned int mca_sfcount[2];
1: + struct timer_list mca_timer;
1: + unsigned int mca_flags;
1: + int mca_users;
1: + refcount_t mca_refcnt;
1: + spinlock_t mca_lock;
1: + long unsigned int mca_cstamp;
1: + long unsigned int mca_tstamp;
1: +};
1: +
1: +struct ifacaddr6 {
1: + struct in6_addr aca_addr;
1: + struct fib6_info *aca_rt;
1: + struct ifacaddr6 *aca_next;
1: + struct hlist_node aca_addr_lst;
1: + int aca_users;
1: + refcount_t aca_refcnt;
1: + long unsigned int aca_cstamp;
1: + long unsigned int aca_tstamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + __ND_OPT_PREFIX_INFO_END = 0,
1: + ND_OPT_SOURCE_LL_ADDR = 1,
1: + ND_OPT_TARGET_LL_ADDR = 2,
1: + ND_OPT_PREFIX_INFO = 3,
1: + ND_OPT_REDIRECT_HDR = 4,
1: + ND_OPT_MTU = 5,
1: + ND_OPT_NONCE = 14,
1: + __ND_OPT_ARRAY_MAX = 15,
1: + ND_OPT_ROUTE_INFO = 24,
1: + ND_OPT_RDNSS = 25,
1: + ND_OPT_DNSSL = 31,
1: + ND_OPT_6CO = 34,
1: + ND_OPT_CAPTIVE_PORTAL = 37,
1: + ND_OPT_PREF64 = 38,
1: + __ND_OPT_MAX = 39,
1: +};
1: +
1: +struct nd_opt_hdr {
1: + __u8 nd_opt_type;
1: + __u8 nd_opt_len;
1: +};
1: +
1: +struct ndisc_options {
1: + struct nd_opt_hdr *nd_opt_array[15];
1: + struct nd_opt_hdr *nd_opts_ri;
1: + struct nd_opt_hdr *nd_opts_ri_end;
1: + struct nd_opt_hdr *nd_useropts;
1: + struct nd_opt_hdr *nd_useropts_end;
1: + struct nd_opt_hdr *nd_802154_opt_array[3];
1: +};
1: +
1: +struct prefix_info {
1: + __u8 type;
1: + __u8 length;
1: + __u8 prefix_len;
1: + __u8 reserved: 6;
1: + __u8 autoconf: 1;
1: + __u8 onlink: 1;
1: + __be32 valid;
1: + __be32 prefered;
1: + __be32 reserved2;
1: + struct in6_addr prefix;
1: +};
1: +
1: +enum nfs_opnum4 {
1: + OP_ACCESS = 3,
1: + OP_CLOSE = 4,
1: + OP_COMMIT = 5,
1: + OP_CREATE = 6,
1: + OP_DELEGPURGE = 7,
1: + OP_DELEGRETURN = 8,
1: + OP_GETATTR = 9,
1: + OP_GETFH = 10,
1: + OP_LINK = 11,
1: + OP_LOCK = 12,
1: + OP_LOCKT = 13,
1: + OP_LOCKU = 14,
1: + OP_LOOKUP = 15,
1: + OP_LOOKUPP = 16,
1: + OP_NVERIFY = 17,
1: + OP_OPEN = 18,
1: + OP_OPENATTR = 19,
1: + OP_OPEN_CONFIRM = 20,
1: + OP_OPEN_DOWNGRADE = 21,
1: + OP_PUTFH = 22,
1: + OP_PUTPUBFH = 23,
1: + OP_PUTROOTFH = 24,
1: + OP_READ = 25,
1: + OP_READDIR = 26,
1: + OP_READLINK = 27,
1: + OP_REMOVE = 28,
1: + OP_RENAME = 29,
1: + OP_RENEW = 30,
1: + OP_RESTOREFH = 31,
1: + OP_SAVEFH = 32,
1: + OP_SECINFO = 33,
1: + OP_SETATTR = 34,
1: + OP_SETCLIENTID = 35,
1: + OP_SETCLIENTID_CONFIRM = 36,
1: + OP_VERIFY = 37,
1: + OP_WRITE = 38,
1: + OP_RELEASE_LOCKOWNER = 39,
1: + OP_BACKCHANNEL_CTL = 40,
1: + OP_BIND_CONN_TO_SESSION = 41,
1: + OP_EXCHANGE_ID = 42,
1: + OP_CREATE_SESSION = 43,
1: + OP_DESTROY_SESSION = 44,
1: + OP_FREE_STATEID = 45,
1: + OP_GET_DIR_DELEGATION = 46,
1: + OP_GETDEVICEINFO = 47,
1: + OP_GETDEVICELIST = 48,
1: + OP_LAYOUTCOMMIT = 49,
1: + OP_LAYOUTGET = 50,
1: + OP_LAYOUTRETURN = 51,
1: + OP_SECINFO_NO_NAME = 52,
1: + OP_SEQUENCE = 53,
1: + OP_SET_SSV = 54,
1: + OP_TEST_STATEID = 55,
1: + OP_WANT_DELEGATION = 56,
1: + OP_DESTROY_CLIENTID = 57,
1: + OP_RECLAIM_COMPLETE = 58,
1: + OP_ALLOCATE = 59,
1: + OP_COPY = 60,
1: + OP_COPY_NOTIFY = 61,
1: + OP_DEALLOCATE = 62,
1: + OP_IO_ADVISE = 63,
1: + OP_LAYOUTERROR = 64,
1: + OP_LAYOUTSTATS = 65,
1: + OP_OFFLOAD_CANCEL = 66,
1: + OP_OFFLOAD_STATUS = 67,
1: + OP_READ_PLUS = 68,
1: + OP_SEEK = 69,
1: + OP_WRITE_SAME = 70,
1: + OP_CLONE = 71,
1: + OP_GETXATTR = 72,
1: + OP_SETXATTR = 73,
1: + OP_LISTXATTRS = 74,
1: + OP_REMOVEXATTR = 75,
1: + OP_ILLEGAL = 10044,
1: +};
1: +
1: +enum perf_branch_sample_type_shift {
1: + PERF_SAMPLE_BRANCH_USER_SHIFT = 0,
1: + PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 1,
1: + PERF_SAMPLE_BRANCH_HV_SHIFT = 2,
1: + PERF_SAMPLE_BRANCH_ANY_SHIFT = 3,
1: + PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 4,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 5,
1: + PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 6,
1: + PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 7,
1: + PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 8,
1: + PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 9,
1: + PERF_SAMPLE_BRANCH_COND_SHIFT = 10,
1: + PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11,
1: + PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 12,
1: + PERF_SAMPLE_BRANCH_CALL_SHIFT = 13,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 14,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 15,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 16,
1: + PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 17,
1: + PERF_SAMPLE_BRANCH_MAX_SHIFT = 18,
1: +};
1: +
1: +struct uuidcmp {
1: + const char *uuid;
1: + int len;
1: +};
1: +
1: +typedef __u64 __le64;
1: +
1: +struct minix_super_block {
1: + __u16 s_ninodes;
1: + __u16 s_nzones;
1: + __u16 s_imap_blocks;
1: + __u16 s_zmap_blocks;
1: + __u16 s_firstdatazone;
1: + __u16 s_log_zone_size;
1: + __u32 s_max_size;
1: + __u16 s_magic;
1: + __u16 s_state;
1: + __u32 s_zones;
1: +};
1: +
1: +struct romfs_super_block {
1: + __be32 word0;
1: + __be32 word1;
1: + __be32 size;
1: + __be32 checksum;
1: + char name[0];
1: +};
1: +
1: +struct cramfs_inode {
1: + __u32 mode: 16;
1: + __u32 uid: 16;
1: + __u32 size: 24;
1: + __u32 gid: 8;
1: + __u32 namelen: 6;
1: + __u32 offset: 26;
1: +};
1: +
1: +struct cramfs_info {
1: + __u32 crc;
1: + __u32 edition;
1: + __u32 blocks;
1: + __u32 files;
1: +};
1: +
1: +struct cramfs_super {
1: + __u32 magic;
1: + __u32 size;
1: + __u32 flags;
1: + __u32 future;
1: + __u8 signature[16];
1: + struct cramfs_info fsid;
1: + __u8 name[16];
1: + struct cramfs_inode root;
1: +};
1: +
1: +struct squashfs_super_block {
1: + __le32 s_magic;
1: + __le32 inodes;
1: + __le32 mkfs_time;
1: + __le32 block_size;
1: + __le32 fragments;
1: + __le16 compression;
1: + __le16 block_log;
1: + __le16 flags;
1: + __le16 no_ids;
1: + __le16 s_major;
1: + __le16 s_minor;
1: + __le64 root_inode;
1: + __le64 bytes_used;
1: + __le64 id_table_start;
1: + __le64 xattr_id_table_start;
1: + __le64 inode_table_start;
1: + __le64 directory_table_start;
1: + __le64 fragment_table_start;
1: + __le64 lookup_table_start;
1: +};
1: +
1: +typedef int (*decompress_fn)(unsigned char *, long int, long int (*)(void *, long unsigned int), long int (*)(void *, long unsigned int), unsigned char *, long int *, void (*)(char *));
1: +
1: +struct subprocess_info {
1: + struct work_struct work;
1: + struct completion *complete;
1: + const char *path;
1: + char **argv;
1: + char **envp;
1: + int wait;
1: + int retval;
1: + int (*init)(struct subprocess_info *, struct cred *);
1: + void (*cleanup)(struct subprocess_info *);
1: + void *data;
1: +};
1: +
1: +typedef phys_addr_t resource_size_t;
1: +
1: +struct resource {
1: + resource_size_t start;
1: + resource_size_t end;
1: + const char *name;
1: + long unsigned int flags;
1: + long unsigned int desc;
1: + struct resource *parent;
1: + struct resource *sibling;
1: + struct resource *child;
1: +};
1: +
1: +struct hash {
1: + int ino;
1: + int minor;
1: + int major;
1: + umode_t mode;
1: + struct hash *next;
1: + char name[4098];
1: +};
1: +
1: +struct dir_entry {
1: + struct list_head list;
1: + char *name;
1: + time64_t mtime;
1: +};
1: +
1: +enum state {
1: + Start = 0,
1: + Collect = 1,
1: + GotHeader = 2,
1: + SkipIt = 3,
1: + GotName = 4,
1: + CopyFile = 5,
1: + GotSymlink = 6,
1: + Reset = 7,
1: +};
1: +
1: +enum migratetype {
1: + MIGRATE_UNMOVABLE = 0,
1: + MIGRATE_MOVABLE = 1,
1: + MIGRATE_RECLAIMABLE = 2,
1: + MIGRATE_PCPTYPES = 3,
1: + MIGRATE_HIGHATOMIC = 3,
1: + MIGRATE_CMA = 4,
1: + MIGRATE_ISOLATE = 5,
1: + MIGRATE_TYPES = 6,
1: +};
1: +
1: +enum numa_stat_item {
1: + NUMA_HIT = 0,
1: + NUMA_MISS = 1,
1: + NUMA_FOREIGN = 2,
1: + NUMA_INTERLEAVE_HIT = 3,
1: + NUMA_LOCAL = 4,
1: + NUMA_OTHER = 5,
1: + NR_VM_NUMA_STAT_ITEMS = 6,
1: +};
1: +
1: +enum zone_stat_item {
1: + NR_FREE_PAGES = 0,
1: + NR_ZONE_LRU_BASE = 1,
1: + NR_ZONE_INACTIVE_ANON = 1,
1: + NR_ZONE_ACTIVE_ANON = 2,
1: + NR_ZONE_INACTIVE_FILE = 3,
1: + NR_ZONE_ACTIVE_FILE = 4,
1: + NR_ZONE_UNEVICTABLE = 5,
1: + NR_ZONE_WRITE_PENDING = 6,
1: + NR_MLOCK = 7,
1: + NR_PAGETABLE = 8,
1: + NR_BOUNCE = 9,
1: + NR_ZSPAGES = 10,
1: + NR_FREE_CMA_PAGES = 11,
1: + NR_VM_ZONE_STAT_ITEMS = 12,
1: +};
1: +
1: +enum zone_watermarks {
1: + WMARK_MIN = 0,
1: + WMARK_LOW = 1,
1: + WMARK_HIGH = 2,
1: + NR_WMARK = 3,
1: +};
1: +
1: +enum {
1: + ZONELIST_FALLBACK = 0,
1: + ZONELIST_NOFALLBACK = 1,
1: + MAX_ZONELISTS = 2,
1: +};
1: +
1: +enum {
1: + DQF_ROOT_SQUASH_B = 0,
1: + DQF_SYS_FILE_B = 16,
1: + DQF_PRIVATE = 17,
1: +};
1: +
1: +enum {
1: + DQST_LOOKUPS = 0,
1: + DQST_DROPS = 1,
1: + DQST_READS = 2,
1: + DQST_WRITES = 3,
1: + DQST_CACHE_HITS = 4,
1: + DQST_ALLOC_DQUOTS = 5,
1: + DQST_FREE_DQUOTS = 6,
1: + DQST_SYNCS = 7,
1: + _DQST_DQSTAT_LAST = 8,
1: +};
1: +
1: +enum {
1: + SB_UNFROZEN = 0,
1: + SB_FREEZE_WRITE = 1,
1: + SB_FREEZE_PAGEFAULT = 2,
1: + SB_FREEZE_FS = 3,
1: + SB_FREEZE_COMPLETE = 4,
1: +};
1: +
1: +enum compound_dtor_id {
1: + NULL_COMPOUND_DTOR = 0,
1: + COMPOUND_PAGE_DTOR = 1,
1: + HUGETLB_PAGE_DTOR = 2,
1: + TRANSHUGE_PAGE_DTOR = 3,
1: + NR_COMPOUND_DTORS = 4,
1: +};
1: +
1: +enum {
1: + TSK_TRACE_FL_TRACE_BIT = 0,
1: + TSK_TRACE_FL_GRAPH_BIT = 1,
1: +};
1: +
1: +enum ucount_type {
1: + UCOUNT_USER_NAMESPACES = 0,
1: + UCOUNT_PID_NAMESPACES = 1,
1: + UCOUNT_UTS_NAMESPACES = 2,
1: + UCOUNT_IPC_NAMESPACES = 3,
1: + UCOUNT_NET_NAMESPACES = 4,
1: + UCOUNT_MNT_NAMESPACES = 5,
1: + UCOUNT_CGROUP_NAMESPACES = 6,
1: + UCOUNT_TIME_NAMESPACES = 7,
1: + UCOUNT_INOTIFY_INSTANCES = 8,
1: + UCOUNT_INOTIFY_WATCHES = 9,
1: + UCOUNT_COUNTS = 10,
1: +};
1: +
1: +enum flow_dissector_key_id {
1: + FLOW_DISSECTOR_KEY_CONTROL = 0,
1: + FLOW_DISSECTOR_KEY_BASIC = 1,
1: + FLOW_DISSECTOR_KEY_IPV4_ADDRS = 2,
1: + FLOW_DISSECTOR_KEY_IPV6_ADDRS = 3,
1: + FLOW_DISSECTOR_KEY_PORTS = 4,
1: + FLOW_DISSECTOR_KEY_PORTS_RANGE = 5,
1: + FLOW_DISSECTOR_KEY_ICMP = 6,
1: + FLOW_DISSECTOR_KEY_ETH_ADDRS = 7,
1: + FLOW_DISSECTOR_KEY_TIPC = 8,
1: + FLOW_DISSECTOR_KEY_ARP = 9,
1: + FLOW_DISSECTOR_KEY_VLAN = 10,
1: + FLOW_DISSECTOR_KEY_FLOW_LABEL = 11,
1: + FLOW_DISSECTOR_KEY_GRE_KEYID = 12,
1: + FLOW_DISSECTOR_KEY_MPLS_ENTROPY = 13,
1: + FLOW_DISSECTOR_KEY_ENC_KEYID = 14,
1: + FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS = 15,
1: + FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS = 16,
1: + FLOW_DISSECTOR_KEY_ENC_CONTROL = 17,
1: + FLOW_DISSECTOR_KEY_ENC_PORTS = 18,
1: + FLOW_DISSECTOR_KEY_MPLS = 19,
1: + FLOW_DISSECTOR_KEY_TCP = 20,
1: + FLOW_DISSECTOR_KEY_IP = 21,
1: + FLOW_DISSECTOR_KEY_CVLAN = 22,
1: + FLOW_DISSECTOR_KEY_ENC_IP = 23,
1: + FLOW_DISSECTOR_KEY_ENC_OPTS = 24,
1: + FLOW_DISSECTOR_KEY_META = 25,
1: + FLOW_DISSECTOR_KEY_CT = 26,
1: + FLOW_DISSECTOR_KEY_HASH = 27,
1: + FLOW_DISSECTOR_KEY_MAX = 28,
1: +};
1: +
1: +enum {
1: + IPSTATS_MIB_NUM = 0,
1: + IPSTATS_MIB_INPKTS = 1,
1: + IPSTATS_MIB_INOCTETS = 2,
1: + IPSTATS_MIB_INDELIVERS = 3,
1: + IPSTATS_MIB_OUTFORWDATAGRAMS = 4,
1: + IPSTATS_MIB_OUTPKTS = 5,
1: + IPSTATS_MIB_OUTOCTETS = 6,
1: + IPSTATS_MIB_INHDRERRORS = 7,
1: + IPSTATS_MIB_INTOOBIGERRORS = 8,
1: + IPSTATS_MIB_INNOROUTES = 9,
1: + IPSTATS_MIB_INADDRERRORS = 10,
1: + IPSTATS_MIB_INUNKNOWNPROTOS = 11,
1: + IPSTATS_MIB_INTRUNCATEDPKTS = 12,
1: + IPSTATS_MIB_INDISCARDS = 13,
1: + IPSTATS_MIB_OUTDISCARDS = 14,
1: + IPSTATS_MIB_OUTNOROUTES = 15,
1: + IPSTATS_MIB_REASMTIMEOUT = 16,
1: + IPSTATS_MIB_REASMREQDS = 17,
1: + IPSTATS_MIB_REASMOKS = 18,
1: + IPSTATS_MIB_REASMFAILS = 19,
1: + IPSTATS_MIB_FRAGOKS = 20,
1: + IPSTATS_MIB_FRAGFAILS = 21,
1: + IPSTATS_MIB_FRAGCREATES = 22,
1: + IPSTATS_MIB_INMCASTPKTS = 23,
1: + IPSTATS_MIB_OUTMCASTPKTS = 24,
1: + IPSTATS_MIB_INBCASTPKTS = 25,
1: + IPSTATS_MIB_OUTBCASTPKTS = 26,
1: + IPSTATS_MIB_INMCASTOCTETS = 27,
1: + IPSTATS_MIB_OUTMCASTOCTETS = 28,
1: + IPSTATS_MIB_INBCASTOCTETS = 29,
1: + IPSTATS_MIB_OUTBCASTOCTETS = 30,
1: + IPSTATS_MIB_CSUMERRORS = 31,
1: + IPSTATS_MIB_NOECTPKTS = 32,
1: + IPSTATS_MIB_ECT1PKTS = 33,
1: + IPSTATS_MIB_ECT0PKTS = 34,
1: + IPSTATS_MIB_CEPKTS = 35,
1: + IPSTATS_MIB_REASM_OVERLAPS = 36,
1: + __IPSTATS_MIB_MAX = 37,
1: +};
1: +
1: +enum {
1: + ICMP_MIB_NUM = 0,
1: + ICMP_MIB_INMSGS = 1,
1: + ICMP_MIB_INERRORS = 2,
1: + ICMP_MIB_INDESTUNREACHS = 3,
1: + ICMP_MIB_INTIMEEXCDS = 4,
1: + ICMP_MIB_INPARMPROBS = 5,
1: + ICMP_MIB_INSRCQUENCHS = 6,
1: + ICMP_MIB_INREDIRECTS = 7,
1: + ICMP_MIB_INECHOS = 8,
1: + ICMP_MIB_INECHOREPS = 9,
1: + ICMP_MIB_INTIMESTAMPS = 10,
1: + ICMP_MIB_INTIMESTAMPREPS = 11,
1: + ICMP_MIB_INADDRMASKS = 12,
1: + ICMP_MIB_INADDRMASKREPS = 13,
1: + ICMP_MIB_OUTMSGS = 14,
1: + ICMP_MIB_OUTERRORS = 15,
1: + ICMP_MIB_OUTDESTUNREACHS = 16,
1: + ICMP_MIB_OUTTIMEEXCDS = 17,
1: + ICMP_MIB_OUTPARMPROBS = 18,
1: + ICMP_MIB_OUTSRCQUENCHS = 19,
1: + ICMP_MIB_OUTREDIRECTS = 20,
1: + ICMP_MIB_OUTECHOS = 21,
1: + ICMP_MIB_OUTECHOREPS = 22,
1: + ICMP_MIB_OUTTIMESTAMPS = 23,
1: + ICMP_MIB_OUTTIMESTAMPREPS = 24,
1: + ICMP_MIB_OUTADDRMASKS = 25,
1: + ICMP_MIB_OUTADDRMASKREPS = 26,
1: + ICMP_MIB_CSUMERRORS = 27,
1: + __ICMP_MIB_MAX = 28,
1: +};
1: +
1: +enum {
1: + ICMP6_MIB_NUM = 0,
1: + ICMP6_MIB_INMSGS = 1,
1: + ICMP6_MIB_INERRORS = 2,
1: + ICMP6_MIB_OUTMSGS = 3,
1: + ICMP6_MIB_OUTERRORS = 4,
1: + ICMP6_MIB_CSUMERRORS = 5,
1: + __ICMP6_MIB_MAX = 6,
1: +};
1: +
1: +enum {
1: + TCP_MIB_NUM = 0,
1: + TCP_MIB_RTOALGORITHM = 1,
1: + TCP_MIB_RTOMIN = 2,
1: + TCP_MIB_RTOMAX = 3,
1: + TCP_MIB_MAXCONN = 4,
1: + TCP_MIB_ACTIVEOPENS = 5,
1: + TCP_MIB_PASSIVEOPENS = 6,
1: + TCP_MIB_ATTEMPTFAILS = 7,
1: + TCP_MIB_ESTABRESETS = 8,
1: + TCP_MIB_CURRESTAB = 9,
1: + TCP_MIB_INSEGS = 10,
1: + TCP_MIB_OUTSEGS = 11,
1: + TCP_MIB_RETRANSSEGS = 12,
1: + TCP_MIB_INERRS = 13,
1: + TCP_MIB_OUTRSTS = 14,
1: + TCP_MIB_CSUMERRORS = 15,
1: + __TCP_MIB_MAX = 16,
1: +};
1: +
1: +enum {
1: + UDP_MIB_NUM = 0,
1: + UDP_MIB_INDATAGRAMS = 1,
1: + UDP_MIB_NOPORTS = 2,
1: + UDP_MIB_INERRORS = 3,
1: + UDP_MIB_OUTDATAGRAMS = 4,
1: + UDP_MIB_RCVBUFERRORS = 5,
1: + UDP_MIB_SNDBUFERRORS = 6,
1: + UDP_MIB_CSUMERRORS = 7,
1: + UDP_MIB_IGNOREDMULTI = 8,
1: + __UDP_MIB_MAX = 9,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_NUM = 0,
1: + LINUX_MIB_SYNCOOKIESSENT = 1,
1: + LINUX_MIB_SYNCOOKIESRECV = 2,
1: + LINUX_MIB_SYNCOOKIESFAILED = 3,
1: + LINUX_MIB_EMBRYONICRSTS = 4,
1: + LINUX_MIB_PRUNECALLED = 5,
1: + LINUX_MIB_RCVPRUNED = 6,
1: + LINUX_MIB_OFOPRUNED = 7,
1: + LINUX_MIB_OUTOFWINDOWICMPS = 8,
1: + LINUX_MIB_LOCKDROPPEDICMPS = 9,
1: + LINUX_MIB_ARPFILTER = 10,
1: + LINUX_MIB_TIMEWAITED = 11,
1: + LINUX_MIB_TIMEWAITRECYCLED = 12,
1: + LINUX_MIB_TIMEWAITKILLED = 13,
1: + LINUX_MIB_PAWSACTIVEREJECTED = 14,
1: + LINUX_MIB_PAWSESTABREJECTED = 15,
1: + LINUX_MIB_DELAYEDACKS = 16,
1: + LINUX_MIB_DELAYEDACKLOCKED = 17,
1: + LINUX_MIB_DELAYEDACKLOST = 18,
1: + LINUX_MIB_LISTENOVERFLOWS = 19,
1: + LINUX_MIB_LISTENDROPS = 20,
1: + LINUX_MIB_TCPHPHITS = 21,
1: + LINUX_MIB_TCPPUREACKS = 22,
1: + LINUX_MIB_TCPHPACKS = 23,
1: + LINUX_MIB_TCPRENORECOVERY = 24,
1: + LINUX_MIB_TCPSACKRECOVERY = 25,
1: + LINUX_MIB_TCPSACKRENEGING = 26,
1: + LINUX_MIB_TCPSACKREORDER = 27,
1: + LINUX_MIB_TCPRENOREORDER = 28,
1: + LINUX_MIB_TCPTSREORDER = 29,
1: + LINUX_MIB_TCPFULLUNDO = 30,
1: + LINUX_MIB_TCPPARTIALUNDO = 31,
1: + LINUX_MIB_TCPDSACKUNDO = 32,
1: + LINUX_MIB_TCPLOSSUNDO = 33,
1: + LINUX_MIB_TCPLOSTRETRANSMIT = 34,
1: + LINUX_MIB_TCPRENOFAILURES = 35,
1: + LINUX_MIB_TCPSACKFAILURES = 36,
1: + LINUX_MIB_TCPLOSSFAILURES = 37,
1: + LINUX_MIB_TCPFASTRETRANS = 38,
1: + LINUX_MIB_TCPSLOWSTARTRETRANS = 39,
1: + LINUX_MIB_TCPTIMEOUTS = 40,
1: + LINUX_MIB_TCPLOSSPROBES = 41,
1: + LINUX_MIB_TCPLOSSPROBERECOVERY = 42,
1: + LINUX_MIB_TCPRENORECOVERYFAIL = 43,
1: + LINUX_MIB_TCPSACKRECOVERYFAIL = 44,
1: + LINUX_MIB_TCPRCVCOLLAPSED = 45,
1: + LINUX_MIB_TCPDSACKOLDSENT = 46,
1: + LINUX_MIB_TCPDSACKOFOSENT = 47,
1: + LINUX_MIB_TCPDSACKRECV = 48,
1: + LINUX_MIB_TCPDSACKOFORECV = 49,
1: + LINUX_MIB_TCPABORTONDATA = 50,
1: + LINUX_MIB_TCPABORTONCLOSE = 51,
1: + LINUX_MIB_TCPABORTONMEMORY = 52,
1: + LINUX_MIB_TCPABORTONTIMEOUT = 53,
1: + LINUX_MIB_TCPABORTONLINGER = 54,
1: + LINUX_MIB_TCPABORTFAILED = 55,
1: + LINUX_MIB_TCPMEMORYPRESSURES = 56,
1: + LINUX_MIB_TCPMEMORYPRESSURESCHRONO = 57,
1: + LINUX_MIB_TCPSACKDISCARD = 58,
1: + LINUX_MIB_TCPDSACKIGNOREDOLD = 59,
1: + LINUX_MIB_TCPDSACKIGNOREDNOUNDO = 60,
1: + LINUX_MIB_TCPSPURIOUSRTOS = 61,
1: + LINUX_MIB_TCPMD5NOTFOUND = 62,
1: + LINUX_MIB_TCPMD5UNEXPECTED = 63,
1: + LINUX_MIB_TCPMD5FAILURE = 64,
1: + LINUX_MIB_SACKSHIFTED = 65,
1: + LINUX_MIB_SACKMERGED = 66,
1: + LINUX_MIB_SACKSHIFTFALLBACK = 67,
1: + LINUX_MIB_TCPBACKLOGDROP = 68,
1: + LINUX_MIB_PFMEMALLOCDROP = 69,
1: + LINUX_MIB_TCPMINTTLDROP = 70,
1: + LINUX_MIB_TCPDEFERACCEPTDROP = 71,
1: + LINUX_MIB_IPRPFILTER = 72,
1: + LINUX_MIB_TCPTIMEWAITOVERFLOW = 73,
1: + LINUX_MIB_TCPREQQFULLDOCOOKIES = 74,
1: + LINUX_MIB_TCPREQQFULLDROP = 75,
1: + LINUX_MIB_TCPRETRANSFAIL = 76,
1: + LINUX_MIB_TCPRCVCOALESCE = 77,
1: + LINUX_MIB_TCPBACKLOGCOALESCE = 78,
1: + LINUX_MIB_TCPOFOQUEUE = 79,
1: + LINUX_MIB_TCPOFODROP = 80,
1: + LINUX_MIB_TCPOFOMERGE = 81,
1: + LINUX_MIB_TCPCHALLENGEACK = 82,
1: + LINUX_MIB_TCPSYNCHALLENGE = 83,
1: + LINUX_MIB_TCPFASTOPENACTIVE = 84,
1: + LINUX_MIB_TCPFASTOPENACTIVEFAIL = 85,
1: + LINUX_MIB_TCPFASTOPENPASSIVE = 86,
1: + LINUX_MIB_TCPFASTOPENPASSIVEFAIL = 87,
1: + LINUX_MIB_TCPFASTOPENLISTENOVERFLOW = 88,
1: + LINUX_MIB_TCPFASTOPENCOOKIEREQD = 89,
1: + LINUX_MIB_TCPFASTOPENBLACKHOLE = 90,
1: + LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES = 91,
1: + LINUX_MIB_BUSYPOLLRXPACKETS = 92,
1: + LINUX_MIB_TCPAUTOCORKING = 93,
1: + LINUX_MIB_TCPFROMZEROWINDOWADV = 94,
1: + LINUX_MIB_TCPTOZEROWINDOWADV = 95,
1: + LINUX_MIB_TCPWANTZEROWINDOWADV = 96,
1: + LINUX_MIB_TCPSYNRETRANS = 97,
1: + LINUX_MIB_TCPORIGDATASENT = 98,
1: + LINUX_MIB_TCPHYSTARTTRAINDETECT = 99,
1: + LINUX_MIB_TCPHYSTARTTRAINCWND = 100,
1: + LINUX_MIB_TCPHYSTARTDELAYDETECT = 101,
1: + LINUX_MIB_TCPHYSTARTDELAYCWND = 102,
1: + LINUX_MIB_TCPACKSKIPPEDSYNRECV = 103,
1: + LINUX_MIB_TCPACKSKIPPEDPAWS = 104,
1: + LINUX_MIB_TCPACKSKIPPEDSEQ = 105,
1: + LINUX_MIB_TCPACKSKIPPEDFINWAIT2 = 106,
1: + LINUX_MIB_TCPACKSKIPPEDTIMEWAIT = 107,
1: + LINUX_MIB_TCPACKSKIPPEDCHALLENGE = 108,
1: + LINUX_MIB_TCPWINPROBE = 109,
1: + LINUX_MIB_TCPKEEPALIVE = 110,
1: + LINUX_MIB_TCPMTUPFAIL = 111,
1: + LINUX_MIB_TCPMTUPSUCCESS = 112,
1: + LINUX_MIB_TCPDELIVERED = 113,
1: + LINUX_MIB_TCPDELIVEREDCE = 114,
1: + LINUX_MIB_TCPACKCOMPRESSED = 115,
1: + LINUX_MIB_TCPZEROWINDOWDROP = 116,
1: + LINUX_MIB_TCPRCVQDROP = 117,
1: + LINUX_MIB_TCPWQUEUETOOBIG = 118,
1: + LINUX_MIB_TCPFASTOPENPASSIVEALTKEY = 119,
1: + LINUX_MIB_TCPTIMEOUTREHASH = 120,
1: + LINUX_MIB_TCPDUPLICATEDATAREHASH = 121,
1: + LINUX_MIB_TCPDSACKRECVSEGS = 122,
1: + LINUX_MIB_TCPDSACKIGNOREDDUBIOUS = 123,
1: + __LINUX_MIB_MAX = 124,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_XFRMNUM = 0,
1: + LINUX_MIB_XFRMINERROR = 1,
1: + LINUX_MIB_XFRMINBUFFERERROR = 2,
1: + LINUX_MIB_XFRMINHDRERROR = 3,
1: + LINUX_MIB_XFRMINNOSTATES = 4,
1: + LINUX_MIB_XFRMINSTATEPROTOERROR = 5,
1: + LINUX_MIB_XFRMINSTATEMODEERROR = 6,
1: + LINUX_MIB_XFRMINSTATESEQERROR = 7,
1: + LINUX_MIB_XFRMINSTATEEXPIRED = 8,
1: + LINUX_MIB_XFRMINSTATEMISMATCH = 9,
1: + LINUX_MIB_XFRMINSTATEINVALID = 10,
1: + LINUX_MIB_XFRMINTMPLMISMATCH = 11,
1: + LINUX_MIB_XFRMINNOPOLS = 12,
1: + LINUX_MIB_XFRMINPOLBLOCK = 13,
1: + LINUX_MIB_XFRMINPOLERROR = 14,
1: + LINUX_MIB_XFRMOUTERROR = 15,
1: + LINUX_MIB_XFRMOUTBUNDLEGENERROR = 16,
1: + LINUX_MIB_XFRMOUTBUNDLECHECKERROR = 17,
1: + LINUX_MIB_XFRMOUTNOSTATES = 18,
1: + LINUX_MIB_XFRMOUTSTATEPROTOERROR = 19,
1: + LINUX_MIB_XFRMOUTSTATEMODEERROR = 20,
1: + LINUX_MIB_XFRMOUTSTATESEQERROR = 21,
1: + LINUX_MIB_XFRMOUTSTATEEXPIRED = 22,
1: + LINUX_MIB_XFRMOUTPOLBLOCK = 23,
1: + LINUX_MIB_XFRMOUTPOLDEAD = 24,
1: + LINUX_MIB_XFRMOUTPOLERROR = 25,
1: + LINUX_MIB_XFRMFWDHDRERROR = 26,
1: + LINUX_MIB_XFRMOUTSTATEINVALID = 27,
1: + LINUX_MIB_XFRMACQUIREERROR = 28,
1: + __LINUX_MIB_XFRMMAX = 29,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_TLSNUM = 0,
1: + LINUX_MIB_TLSCURRTXSW = 1,
1: + LINUX_MIB_TLSCURRRXSW = 2,
1: + LINUX_MIB_TLSCURRTXDEVICE = 3,
1: + LINUX_MIB_TLSCURRRXDEVICE = 4,
1: + LINUX_MIB_TLSTXSW = 5,
1: + LINUX_MIB_TLSRXSW = 6,
1: + LINUX_MIB_TLSTXDEVICE = 7,
1: + LINUX_MIB_TLSRXDEVICE = 8,
1: + LINUX_MIB_TLSDECRYPTERROR = 9,
1: + LINUX_MIB_TLSRXDEVICERESYNC = 10,
1: + __LINUX_MIB_TLSMAX = 11,
1: +};
1: +
1: +enum nf_inet_hooks {
1: + NF_INET_PRE_ROUTING = 0,
1: + NF_INET_LOCAL_IN = 1,
1: + NF_INET_FORWARD = 2,
1: + NF_INET_LOCAL_OUT = 3,
1: + NF_INET_POST_ROUTING = 4,
1: + NF_INET_NUMHOOKS = 5,
1: + NF_INET_INGRESS = 5,
1: +};
1: +
1: +enum {
1: + NFPROTO_UNSPEC = 0,
1: + NFPROTO_INET = 1,
1: + NFPROTO_IPV4 = 2,
1: + NFPROTO_ARP = 3,
1: + NFPROTO_NETDEV = 5,
1: + NFPROTO_BRIDGE = 7,
1: + NFPROTO_IPV6 = 10,
1: + NFPROTO_DECNET = 12,
1: + NFPROTO_NUMPROTO = 13,
1: +};
1: +
1: +enum tcp_conntrack {
1: + TCP_CONNTRACK_NONE = 0,
1: + TCP_CONNTRACK_SYN_SENT = 1,
1: + TCP_CONNTRACK_SYN_RECV = 2,
1: + TCP_CONNTRACK_ESTABLISHED = 3,
1: + TCP_CONNTRACK_FIN_WAIT = 4,
1: + TCP_CONNTRACK_CLOSE_WAIT = 5,
1: + TCP_CONNTRACK_LAST_ACK = 6,
1: + TCP_CONNTRACK_TIME_WAIT = 7,
1: + TCP_CONNTRACK_CLOSE = 8,
1: + TCP_CONNTRACK_LISTEN = 9,
1: + TCP_CONNTRACK_MAX = 10,
1: + TCP_CONNTRACK_IGNORE = 11,
1: + TCP_CONNTRACK_RETRANS = 12,
1: + TCP_CONNTRACK_UNACK = 13,
1: + TCP_CONNTRACK_TIMEOUT_MAX = 14,
1: +};
1: +
1: +enum ct_dccp_states {
1: + CT_DCCP_NONE = 0,
1: + CT_DCCP_REQUEST = 1,
1: + CT_DCCP_RESPOND = 2,
1: + CT_DCCP_PARTOPEN = 3,
1: + CT_DCCP_OPEN = 4,
1: + CT_DCCP_CLOSEREQ = 5,
1: + CT_DCCP_CLOSING = 6,
1: + CT_DCCP_TIMEWAIT = 7,
1: + CT_DCCP_IGNORE = 8,
1: + CT_DCCP_INVALID = 9,
1: + __CT_DCCP_MAX = 10,
1: +};
1: +
1: +enum ip_conntrack_dir {
1: + IP_CT_DIR_ORIGINAL = 0,
1: + IP_CT_DIR_REPLY = 1,
1: + IP_CT_DIR_MAX = 2,
1: +};
1: +
1: +enum sctp_conntrack {
1: + SCTP_CONNTRACK_NONE = 0,
1: + SCTP_CONNTRACK_CLOSED = 1,
1: + SCTP_CONNTRACK_COOKIE_WAIT = 2,
1: + SCTP_CONNTRACK_COOKIE_ECHOED = 3,
1: + SCTP_CONNTRACK_ESTABLISHED = 4,
1: + SCTP_CONNTRACK_SHUTDOWN_SENT = 5,
1: + SCTP_CONNTRACK_SHUTDOWN_RECD = 6,
1: + SCTP_CONNTRACK_SHUTDOWN_ACK_SENT = 7,
1: + SCTP_CONNTRACK_HEARTBEAT_SENT = 8,
1: + SCTP_CONNTRACK_HEARTBEAT_ACKED = 9,
1: + SCTP_CONNTRACK_MAX = 10,
1: +};
1: +
1: +enum udp_conntrack {
1: + UDP_CT_UNREPLIED = 0,
1: + UDP_CT_REPLIED = 1,
1: + UDP_CT_MAX = 2,
1: +};
1: +
1: +enum gre_conntrack {
1: + GRE_CT_UNREPLIED = 0,
1: + GRE_CT_REPLIED = 1,
1: + GRE_CT_MAX = 2,
1: +};
1: +
1: +enum {
1: + XFRM_POLICY_IN = 0,
1: + XFRM_POLICY_OUT = 1,
1: + XFRM_POLICY_FWD = 2,
1: + XFRM_POLICY_MASK = 3,
1: + XFRM_POLICY_MAX = 3,
1: +};
1: +
1: +enum netns_bpf_attach_type {
1: + NETNS_BPF_INVALID = 4294967295,
1: + NETNS_BPF_FLOW_DISSECTOR = 0,
1: + NETNS_BPF_SK_LOOKUP = 1,
1: + MAX_NETNS_BPF_ATTACH_TYPE = 2,
1: +};
1: +
1: +enum cpu_idle_type {
1: + CPU_IDLE = 0,
1: + CPU_NOT_IDLE = 1,
1: + CPU_NEWLY_IDLE = 2,
1: + CPU_MAX_IDLE_TYPES = 3,
1: +};
1: +
1: +enum {
1: + __SD_BALANCE_NEWIDLE = 0,
1: + __SD_BALANCE_EXEC = 1,
1: + __SD_BALANCE_FORK = 2,
1: + __SD_BALANCE_WAKE = 3,
1: + __SD_WAKE_AFFINE = 4,
1: + __SD_ASYM_CPUCAPACITY = 5,
1: + __SD_SHARE_CPUCAPACITY = 6,
1: + __SD_SHARE_PKG_RESOURCES = 7,
1: + __SD_SERIALIZE = 8,
1: + __SD_ASYM_PACKING = 9,
1: + __SD_PREFER_SIBLING = 10,
1: + __SD_OVERLAP = 11,
1: + __SD_NUMA = 12,
1: + __SD_FLAG_CNT = 13,
1: +};
1: +
1: +enum skb_ext_id {
1: + SKB_EXT_BRIDGE_NF = 0,
1: + SKB_EXT_SEC_PATH = 1,
1: + TC_SKB_EXT = 2,
1: + SKB_EXT_MPTCP = 3,
1: + SKB_EXT_NUM = 4,
1: +};
1: +
1: +enum audit_ntp_type {
1: + AUDIT_NTP_OFFSET = 0,
1: + AUDIT_NTP_FREQ = 1,
1: + AUDIT_NTP_STATUS = 2,
1: + AUDIT_NTP_TAI = 3,
1: + AUDIT_NTP_TICK = 4,
1: + AUDIT_NTP_ADJUST = 5,
1: + AUDIT_NTP_NVALS = 6,
1: +};
1: +
1: +typedef long unsigned int uintptr_t;
1: +
1: +struct step_hook {
1: + struct list_head node;
1: + int (*fn)(struct pt_regs *, unsigned int);
1: +};
1: +
1: +struct break_hook {
1: + struct list_head node;
1: + int (*fn)(struct pt_regs *, unsigned int);
1: + u16 imm;
1: + u16 mask;
1: +};
1: +
1: +enum dbg_active_el {
1: + DBG_ACTIVE_EL0 = 0,
1: + DBG_ACTIVE_EL1 = 1,
1: +};
1: +
1: +struct nmi_ctx {
1: + u64 hcr;
1: + unsigned int cnt;
1: +};
1: +
1: +enum {
1: + HI_SOFTIRQ = 0,
1: + TIMER_SOFTIRQ = 1,
1: + NET_TX_SOFTIRQ = 2,
1: + NET_RX_SOFTIRQ = 3,
1: + BLOCK_SOFTIRQ = 4,
1: + IRQ_POLL_SOFTIRQ = 5,
1: + TASKLET_SOFTIRQ = 6,
1: + SCHED_SOFTIRQ = 7,
1: + HRTIMER_SOFTIRQ = 8,
1: + RCU_SOFTIRQ = 9,
1: + NR_SOFTIRQS = 10,
1: +};
1: +
1: +struct midr_range {
1: + u32 model;
1: + u32 rv_min;
1: + u32 rv_max;
1: +};
1: +
1: +struct arm64_midr_revidr {
1: + u32 midr_rv;
1: + u32 revidr_mask;
1: +};
1: +
1: +struct arm64_cpu_capabilities {
1: + const char *desc;
1: + u16 capability;
1: + u16 type;
1: + bool (*matches)(const struct arm64_cpu_capabilities *, int);
1: + void (*cpu_enable)(const struct arm64_cpu_capabilities *);
1: + union {
1: + struct {
1: + struct midr_range midr_range;
1: + const struct arm64_midr_revidr * const fixed_revs;
1: + };
1: + const struct midr_range *midr_range_list;
1: + struct {
1: + u32 sys_reg;
1: + u8 field_pos;
1: + u8 min_field_value;
1: + u8 hwcap_type;
1: + bool sign;
1: + long unsigned int hwcap;
1: + };
1: + };
1: + const struct arm64_cpu_capabilities *match_list;
1: +};
1: +
1: +enum cpu_pm_event {
1: + CPU_PM_ENTER = 0,
1: + CPU_PM_ENTER_FAILED = 1,
1: + CPU_PM_EXIT = 2,
1: + CPU_CLUSTER_PM_ENTER = 3,
1: + CPU_CLUSTER_PM_ENTER_FAILED = 4,
1: + CPU_CLUSTER_PM_EXIT = 5,
1: +};
1: +
1: +struct fpsimd_last_state_struct {
1: + struct user_fpsimd_state *st;
1: + void *sve_state;
1: + unsigned int sve_vl;
1: +};
1: +
1: +enum ctx_state {
1: + CONTEXT_DISABLED = 4294967295,
1: + CONTEXT_KERNEL = 0,
1: + CONTEXT_USER = 1,
1: + CONTEXT_GUEST = 2,
1: +};
1: +
1: +typedef void (*bp_hardening_cb_t)();
1: +
1: +struct bp_hardening_data {
1: + int hyp_vectors_slot;
1: + bp_hardening_cb_t fn;
1: +};
1: +
1: +enum refcount_saturation_type {
1: + REFCOUNT_ADD_NOT_ZERO_OVF = 0,
1: + REFCOUNT_ADD_OVF = 1,
1: + REFCOUNT_ADD_UAF = 2,
1: + REFCOUNT_SUB_UAF = 3,
1: + REFCOUNT_DEC_LEAK = 4,
1: +};
1: +
1: +struct plist_head {
1: + struct list_head node_list;
1: +};
1: +
1: +typedef struct {
1: + __u8 b[16];
1: +} guid_t;
1: +
1: +enum pm_qos_type {
1: + PM_QOS_UNITIALIZED = 0,
1: + PM_QOS_MAX = 1,
1: + PM_QOS_MIN = 2,
1: +};
1: +
1: +struct pm_qos_constraints {
1: + struct plist_head list;
1: + s32 target_value;
1: + s32 default_value;
1: + s32 no_constraint_value;
1: + enum pm_qos_type type;
1: + struct blocking_notifier_head *notifiers;
1: +};
1: +
1: +struct freq_constraints {
1: + struct pm_qos_constraints min_freq;
1: + struct blocking_notifier_head min_freq_notifiers;
1: + struct pm_qos_constraints max_freq;
1: + struct blocking_notifier_head max_freq_notifiers;
1: +};
1: +
1: +struct pm_qos_flags {
1: + struct list_head list;
1: + s32 effective_flags;
1: +};
1: +
1: +struct dev_pm_qos_request;
1: +
1: +struct dev_pm_qos {
1: + struct pm_qos_constraints resume_latency;
1: + struct pm_qos_constraints latency_tolerance;
1: + struct freq_constraints freq;
1: + struct pm_qos_flags flags;
1: + struct dev_pm_qos_request *resume_latency_req;
1: + struct dev_pm_qos_request *latency_tolerance_req;
1: + struct dev_pm_qos_request *flags_req;
1: +};
1: +
1: +enum reboot_mode {
1: + REBOOT_UNDEFINED = 4294967295,
1: + REBOOT_COLD = 0,
1: + REBOOT_WARM = 1,
1: + REBOOT_HARD = 2,
1: + REBOOT_SOFT = 3,
1: + REBOOT_GPIO = 4,
1: +};
1: +
1: +typedef long unsigned int efi_status_t;
1: +
1: +typedef u8 efi_bool_t;
1: +
1: +typedef u16 efi_char16_t;
1: +
1: +typedef guid_t efi_guid_t;
1: +
1: +typedef struct {
1: + u64 signature;
1: + u32 revision;
1: + u32 headersize;
1: + u32 crc32;
1: + u32 reserved;
1: +} efi_table_hdr_t;
1: +
1: +typedef struct {
1: + u32 type;
1: + u32 pad;
1: + u64 phys_addr;
1: + u64 virt_addr;
1: + u64 num_pages;
1: + u64 attribute;
1: +} efi_memory_desc_t;
1: +
1: +typedef struct {
1: + efi_guid_t guid;
1: + u32 headersize;
1: + u32 flags;
1: + u32 imagesize;
1: +} efi_capsule_header_t;
1: +
1: +typedef struct {
1: + u16 year;
1: + u8 month;
1: + u8 day;
1: + u8 hour;
1: + u8 minute;
1: + u8 second;
1: + u8 pad1;
1: + u32 nanosecond;
1: + s16 timezone;
1: + u8 daylight;
1: + u8 pad2;
1: +} efi_time_t;
1: +
1: +typedef struct {
1: + u32 resolution;
1: + u32 accuracy;
1: + u8 sets_to_zero;
1: +} efi_time_cap_t;
1: +
1: +typedef struct {
1: + efi_table_hdr_t hdr;
1: + u32 get_time;
1: + u32 set_time;
1: + u32 get_wakeup_time;
1: + u32 set_wakeup_time;
1: + u32 set_virtual_address_map;
1: + u32 convert_pointer;
1: + u32 get_variable;
1: + u32 get_next_variable;
1: + u32 set_variable;
1: + u32 get_next_high_mono_count;
1: + u32 reset_system;
1: + u32 update_capsule;
1: + u32 query_capsule_caps;
1: + u32 query_variable_info;
1: +} efi_runtime_services_32_t;
1: +
1: +typedef efi_status_t efi_get_time_t(efi_time_t *, efi_time_cap_t *);
1: +
1: +typedef efi_status_t efi_set_time_t(efi_time_t *);
1: +
1: +typedef efi_status_t efi_get_wakeup_time_t(efi_bool_t *, efi_bool_t *, efi_time_t *);
1: +
1: +typedef efi_status_t efi_set_wakeup_time_t(efi_bool_t, efi_time_t *);
1: +
1: +typedef efi_status_t efi_get_variable_t(efi_char16_t *, efi_guid_t *, u32 *, long unsigned int *, void *);
1: +
1: +typedef efi_status_t efi_get_next_variable_t(long unsigned int *, efi_char16_t *, efi_guid_t *);
1: +
1: +typedef efi_status_t efi_set_variable_t(efi_char16_t *, efi_guid_t *, u32, long unsigned int, void *);
1: +
1: +typedef efi_status_t efi_get_next_high_mono_count_t(u32 *);
1: +
1: +typedef void efi_reset_system_t(int, efi_status_t, long unsigned int, efi_char16_t *);
1: +
1: +typedef efi_status_t efi_set_virtual_address_map_t(long unsigned int, long unsigned int, u32, efi_memory_desc_t *);
1: +
1: +typedef efi_status_t efi_query_variable_info_t(u32, u64 *, u64 *, u64 *);
1: +
1: +typedef efi_status_t efi_update_capsule_t(efi_capsule_header_t **, long unsigned int, long unsigned int);
1: +
1: +typedef efi_status_t efi_query_capsule_caps_t(efi_capsule_header_t **, long unsigned int, u64 *, int *);
1: +
1: +typedef union {
1: + struct {
1: + efi_table_hdr_t hdr;
1: + efi_get_time_t *get_time;
1: + efi_set_time_t *set_time;
1: + efi_get_wakeup_time_t *get_wakeup_time;
1: + efi_set_wakeup_time_t *set_wakeup_time;
1: + efi_set_virtual_address_map_t *set_virtual_address_map;
1: + void *convert_pointer;
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: + efi_reset_system_t *reset_system;
1: + efi_update_capsule_t *update_capsule;
1: + efi_query_capsule_caps_t *query_capsule_caps;
1: + efi_query_variable_info_t *query_variable_info;
1: + };
1: + efi_runtime_services_32_t mixed_mode;
1: +} efi_runtime_services_t;
1: +
1: +struct efi_memory_map {
1: + phys_addr_t phys_map;
1: + void *map;
1: + void *map_end;
1: + int nr_map;
1: + long unsigned int desc_version;
1: + long unsigned int desc_size;
1: + long unsigned int flags;
1: +};
1: +
1: +struct efi {
1: + const efi_runtime_services_t *runtime;
1: + unsigned int runtime_version;
1: + unsigned int runtime_supported_mask;
1: + long unsigned int acpi;
1: + long unsigned int acpi20;
1: + long unsigned int smbios;
1: + long unsigned int smbios3;
1: + long unsigned int esrt;
1: + long unsigned int tpm_log;
1: + long unsigned int tpm_final_log;
1: + long unsigned int mokvar_table;
1: + efi_get_time_t *get_time;
1: + efi_set_time_t *set_time;
1: + efi_get_wakeup_time_t *get_wakeup_time;
1: + efi_set_wakeup_time_t *set_wakeup_time;
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_set_variable_t *set_variable_nonblocking;
1: + efi_query_variable_info_t *query_variable_info;
1: + efi_query_variable_info_t *query_variable_info_nonblocking;
1: + efi_update_capsule_t *update_capsule;
1: + efi_query_capsule_caps_t *query_capsule_caps;
1: + efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: + efi_reset_system_t *reset_system;
1: + struct efi_memory_map memmap;
1: + long unsigned int flags;
1: +};
1: +
1: +struct arch_elf_state {
1: + int flags;
1: +};
1: +
1: +struct pm_qos_flags_request {
1: + struct list_head node;
1: + s32 flags;
1: +};
1: +
1: +enum freq_qos_req_type {
1: + FREQ_QOS_MIN = 1,
1: + FREQ_QOS_MAX = 2,
1: +};
1: +
1: +struct freq_qos_request {
1: + enum freq_qos_req_type type;
1: + struct plist_node pnode;
1: + struct freq_constraints *qos;
1: +};
1: +
1: +enum dev_pm_qos_req_type {
1: + DEV_PM_QOS_RESUME_LATENCY = 1,
1: + DEV_PM_QOS_LATENCY_TOLERANCE = 2,
1: + DEV_PM_QOS_MIN_FREQUENCY = 3,
1: + DEV_PM_QOS_MAX_FREQUENCY = 4,
1: + DEV_PM_QOS_FLAGS = 5,
1: +};
1: +
1: +struct dev_pm_qos_request {
1: + enum dev_pm_qos_req_type type;
1: + union {
1: + struct plist_node pnode;
1: + struct pm_qos_flags_request flr;
1: + struct freq_qos_request freq;
1: + } data;
1: + struct device *dev;
1: +};
1: +
1: +enum stack_type {
1: + STACK_TYPE_UNKNOWN = 0,
1: + STACK_TYPE_TASK = 1,
1: + STACK_TYPE_IRQ = 2,
1: + STACK_TYPE_OVERFLOW = 3,
1: + STACK_TYPE_SDEI_NORMAL = 4,
1: + STACK_TYPE_SDEI_CRITICAL = 5,
1: + __NR_STACK_TYPES = 6,
1: +};
1: +
1: +struct stackframe {
1: + long unsigned int fp;
1: + long unsigned int pc;
1: + long unsigned int stacks_done[1];
1: + long unsigned int prev_fp;
1: + enum stack_type prev_type;
1: + int graph;
1: +};
1: +
1: +struct user_sve_header {
1: + __u32 size;
1: + __u32 max_size;
1: + __u16 vl;
1: + __u16 max_vl;
1: + __u16 flags;
1: + __u16 __reserved;
1: +};
1: +
1: +struct user_pac_mask {
1: + __u64 data_mask;
1: + __u64 insn_mask;
1: +};
1: +
1: +struct user_pac_address_keys {
1: + __int128 unsigned apiakey;
1: + __int128 unsigned apibkey;
1: + __int128 unsigned apdakey;
1: + __int128 unsigned apdbkey;
1: +};
1: +
1: +struct user_pac_generic_keys {
1: + __int128 unsigned apgakey;
1: +};
1: +
1: +typedef u32 compat_ulong_t;
1: +
1: +enum perf_type_id {
1: + PERF_TYPE_HARDWARE = 0,
1: + PERF_TYPE_SOFTWARE = 1,
1: + PERF_TYPE_TRACEPOINT = 2,
1: + PERF_TYPE_HW_CACHE = 3,
1: + PERF_TYPE_RAW = 4,
1: + PERF_TYPE_BREAKPOINT = 5,
1: + PERF_TYPE_MAX = 6,
1: +};
1: +
1: +enum {
1: + TASKSTATS_CMD_UNSPEC = 0,
1: + TASKSTATS_CMD_GET = 1,
1: + TASKSTATS_CMD_NEW = 2,
1: + __TASKSTATS_CMD_MAX = 3,
1: +};
1: +
1: +enum cpu_usage_stat {
1: + CPUTIME_USER = 0,
1: + CPUTIME_NICE = 1,
1: + CPUTIME_SYSTEM = 2,
1: + CPUTIME_SOFTIRQ = 3,
1: + CPUTIME_IRQ = 4,
1: + CPUTIME_IDLE = 5,
1: + CPUTIME_IOWAIT = 6,
1: + CPUTIME_STEAL = 7,
1: + CPUTIME_GUEST = 8,
1: + CPUTIME_GUEST_NICE = 9,
1: + NR_STATS = 10,
1: +};
1: +
1: +enum bpf_cgroup_storage_type {
1: + BPF_CGROUP_STORAGE_SHARED = 0,
1: + BPF_CGROUP_STORAGE_PERCPU = 1,
1: + __BPF_CGROUP_STORAGE_MAX = 2,
1: +};
1: +
1: +enum psi_task_count {
1: + NR_IOWAIT = 0,
1: + NR_MEMSTALL = 1,
1: + NR_RUNNING = 2,
1: + NR_ONCPU = 3,
1: + NR_PSI_TASK_COUNTS = 4,
1: +};
1: +
1: +enum psi_states {
1: + PSI_IO_SOME = 0,
1: + PSI_IO_FULL = 1,
1: + PSI_MEM_SOME = 2,
1: + PSI_MEM_FULL = 3,
1: + PSI_CPU_SOME = 4,
1: + PSI_NONIDLE = 5,
1: + NR_PSI_STATES = 6,
1: +};
1: +
1: +enum psi_aggregators {
1: + PSI_AVGS = 0,
1: + PSI_POLL = 1,
1: + NR_PSI_AGGREGATORS = 2,
1: +};
1: +
1: +enum cgroup_subsys_id {
1: + cpuset_cgrp_id = 0,
1: + cpu_cgrp_id = 1,
1: + cpuacct_cgrp_id = 2,
1: + io_cgrp_id = 3,
1: + memory_cgrp_id = 4,
1: + devices_cgrp_id = 5,
1: + freezer_cgrp_id = 6,
1: + net_cls_cgrp_id = 7,
1: + perf_event_cgrp_id = 8,
1: + net_prio_cgrp_id = 9,
1: + hugetlb_cgrp_id = 10,
1: + pids_cgrp_id = 11,
1: + CGROUP_SUBSYS_COUNT = 12,
1: +};
1: +
1: +enum {
1: + HW_BREAKPOINT_LEN_1 = 1,
1: + HW_BREAKPOINT_LEN_2 = 2,
1: + HW_BREAKPOINT_LEN_3 = 3,
1: + HW_BREAKPOINT_LEN_4 = 4,
1: + HW_BREAKPOINT_LEN_5 = 5,
1: + HW_BREAKPOINT_LEN_6 = 6,
1: + HW_BREAKPOINT_LEN_7 = 7,
1: + HW_BREAKPOINT_LEN_8 = 8,
1: +};
1: +
1: +enum {
1: + HW_BREAKPOINT_EMPTY = 0,
1: + HW_BREAKPOINT_R = 1,
1: + HW_BREAKPOINT_W = 2,
1: + HW_BREAKPOINT_RW = 3,
1: + HW_BREAKPOINT_X = 4,
1: + HW_BREAKPOINT_INVALID = 7,
1: +};
1: +
1: +enum bp_type_idx {
1: + TYPE_INST = 0,
1: + TYPE_DATA = 1,
1: + TYPE_MAX = 2,
1: +};
1: +
1: +struct membuf {
1: + void *p;
1: + size_t left;
1: +};
1: +
1: +struct user_regset;
1: +
1: +typedef int user_regset_active_fn(struct task_struct *, const struct user_regset *);
1: +
1: +typedef int user_regset_get2_fn(struct task_struct *, const struct user_regset *, struct membuf);
1: +
1: +typedef int user_regset_set_fn(struct task_struct *, const struct user_regset *, unsigned int, unsigned int, const void *, const void *);
1: +
1: +typedef int user_regset_writeback_fn(struct task_struct *, const struct user_regset *, int);
1: +
1: +struct user_regset {
1: + user_regset_get2_fn *regset_get;
1: + user_regset_set_fn *set;
1: + user_regset_active_fn *active;
1: + user_regset_writeback_fn *writeback;
1: + unsigned int n;
1: + unsigned int size;
1: + unsigned int align;
1: + unsigned int bias;
1: + unsigned int core_note_type;
1: +};
1: +
1: +struct user_regset_view {
1: + const char *name;
1: + const struct user_regset *regsets;
1: + unsigned int n;
1: + u32 e_flags;
1: + u16 e_machine;
1: + u8 ei_osabi;
1: +};
1: +
1: +struct stack_info {
1: + long unsigned int low;
1: + long unsigned int high;
1: + enum stack_type type;
1: +};
1: +
1: +struct trace_event_raw_sys_enter {
1: + struct trace_entry ent;
1: + long int id;
1: + long unsigned int args[6];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sys_exit {
1: + struct trace_entry ent;
1: + long int id;
1: + long int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_sys_enter {};
1: +
1: +struct trace_event_data_offsets_sys_exit {};
1: +
1: +typedef void (*btf_trace_sys_enter)(void *, struct pt_regs *, long int);
1: +
1: +typedef void (*btf_trace_sys_exit)(void *, struct pt_regs *, long int);
1: +
1: +struct pt_regs_offset {
1: + const char *name;
1: + int offset;
1: +};
1: +
1: +enum aarch64_regset {
1: + REGSET_GPR = 0,
1: + REGSET_FPR = 1,
1: + REGSET_TLS = 2,
1: + REGSET_HW_BREAK = 3,
1: + REGSET_HW_WATCH = 4,
1: + REGSET_SYSTEM_CALL = 5,
1: + REGSET_SVE = 6,
1: + REGSET_PAC_MASK = 7,
1: + REGSET_PACA_KEYS = 8,
1: + REGSET_PACG_KEYS = 9,
1: + REGSET_TAGGED_ADDR_CTRL = 10,
1: +};
1: +
1: +enum compat_regset {
1: + REGSET_COMPAT_GPR = 0,
1: + REGSET_COMPAT_VFP = 1,
1: +};
1: +
1: +enum ptrace_syscall_dir {
1: + PTRACE_SYSCALL_ENTER = 0,
1: + PTRACE_SYSCALL_EXIT = 1,
1: +};
1: +
1: +struct atomic_notifier_head {
1: + spinlock_t lock;
1: + struct notifier_block *head;
1: +};
1: +
1: +typedef struct pglist_data pg_data_t;
1: +
1: +enum meminit_context {
1: + MEMINIT_EARLY = 0,
1: + MEMINIT_HOTPLUG = 1,
1: +};
1: +
1: +enum memblock_flags {
1: + MEMBLOCK_NONE = 0,
1: + MEMBLOCK_HOTPLUG = 1,
1: + MEMBLOCK_MIRROR = 2,
1: + MEMBLOCK_NOMAP = 4,
1: +};
1: +
1: +struct memblock_region {
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + enum memblock_flags flags;
1: + int nid;
1: +};
1: +
1: +struct memblock_type {
1: + long unsigned int cnt;
1: + long unsigned int max;
1: + phys_addr_t total_size;
1: + struct memblock_region *regions;
1: + char *name;
1: +};
1: +
1: +struct memblock {
1: + bool bottom_up;
1: + phys_addr_t current_limit;
1: + struct memblock_type memory;
1: + struct memblock_type reserved;
1: +};
1: +
1: +struct mpidr_hash {
1: + u64 mask;
1: + u32 shift_aff[4];
1: + u32 bits;
1: +};
1: +
1: +struct cpu {
1: + int node_id;
1: + int hotpluggable;
1: + struct device dev;
1: +};
1: +
1: +struct cpuinfo_arm64 {
1: + struct cpu cpu;
1: + struct kobject kobj;
1: + u32 reg_ctr;
1: + u32 reg_cntfrq;
1: + u32 reg_dczid;
1: + u32 reg_midr;
1: + u32 reg_revidr;
1: + u64 reg_id_aa64dfr0;
1: + u64 reg_id_aa64dfr1;
1: + u64 reg_id_aa64isar0;
1: + u64 reg_id_aa64isar1;
1: + u64 reg_id_aa64mmfr0;
1: + u64 reg_id_aa64mmfr1;
1: + u64 reg_id_aa64mmfr2;
1: + u64 reg_id_aa64pfr0;
1: + u64 reg_id_aa64pfr1;
1: + u64 reg_id_aa64zfr0;
1: + u32 reg_id_dfr0;
1: + u32 reg_id_dfr1;
1: + u32 reg_id_isar0;
1: + u32 reg_id_isar1;
1: + u32 reg_id_isar2;
1: + u32 reg_id_isar3;
1: + u32 reg_id_isar4;
1: + u32 reg_id_isar5;
1: + u32 reg_id_isar6;
1: + u32 reg_id_mmfr0;
1: + u32 reg_id_mmfr1;
1: + u32 reg_id_mmfr2;
1: + u32 reg_id_mmfr3;
1: + u32 reg_id_mmfr4;
1: + u32 reg_id_mmfr5;
1: + u32 reg_id_pfr0;
1: + u32 reg_id_pfr1;
1: + u32 reg_id_pfr2;
1: + u32 reg_mvfr0;
1: + u32 reg_mvfr1;
1: + u32 reg_mvfr2;
1: + u64 reg_zcr;
1: +};
1: +
1: +struct cpu_operations {
1: + const char *name;
1: + int (*cpu_init)(unsigned int);
1: + int (*cpu_prepare)(unsigned int);
1: + int (*cpu_boot)(unsigned int);
1: + void (*cpu_postboot)();
1: + bool (*cpu_can_disable)(unsigned int);
1: + int (*cpu_disable)(unsigned int);
1: + void (*cpu_die)(unsigned int);
1: + int (*cpu_kill)(unsigned int);
1: + int (*cpu_init_idle)(unsigned int);
1: + int (*cpu_suspend)(long unsigned int);
1: +};
1: +
1: +struct sigcontext {
1: + __u64 fault_address;
1: + __u64 regs[31];
1: + __u64 sp;
1: + __u64 pc;
1: + __u64 pstate;
1: + long: 64;
1: + __u8 __reserved[4096];
1: +};
1: +
1: +struct _aarch64_ctx {
1: + __u32 magic;
1: + __u32 size;
1: +};
1: +
1: +struct fpsimd_context {
1: + struct _aarch64_ctx head;
1: + __u32 fpsr;
1: + __u32 fpcr;
1: + __int128 unsigned vregs[32];
1: +};
1: +
1: +struct esr_context {
1: + struct _aarch64_ctx head;
1: + __u64 esr;
1: +};
1: +
1: +struct extra_context {
1: + struct _aarch64_ctx head;
1: + __u64 datap;
1: + __u32 size;
1: + __u32 __reserved[3];
1: +};
1: +
1: +struct sve_context {
1: + struct _aarch64_ctx head;
1: + __u16 vl;
1: + __u16 __reserved[3];
1: +};
1: +
1: +struct sigaltstack {
1: + void *ss_sp;
1: + int ss_flags;
1: + size_t ss_size;
1: +};
1: +
1: +typedef struct sigaltstack stack_t;
1: +
1: +struct siginfo {
1: + union {
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: + int _si_pad[32];
1: + };
1: +};
1: +
1: +struct ksignal {
1: + struct k_sigaction ka;
1: + kernel_siginfo_t info;
1: + int sig;
1: +};
1: +
1: +enum {
1: + EI_ETYPE_NONE = 0,
1: + EI_ETYPE_NULL = 1,
1: + EI_ETYPE_ERRNO = 2,
1: + EI_ETYPE_ERRNO_NULL = 3,
1: + EI_ETYPE_TRUE = 4,
1: +};
1: +
1: +struct syscall_metadata {
1: + const char *name;
1: + int syscall_nr;
1: + int nb_args;
1: + const char **types;
1: + const char **args;
1: + struct list_head enter_fields;
1: + struct trace_event_call *enter_event;
1: + struct trace_event_call *exit_event;
1: +};
1: +
1: +struct ucontext {
1: + long unsigned int uc_flags;
1: + struct ucontext *uc_link;
1: + stack_t uc_stack;
1: + sigset_t uc_sigmask;
1: + __u8 __unused[120];
1: + long: 64;
1: + struct sigcontext uc_mcontext;
1: +};
1: +
1: +struct rt_sigframe {
1: + struct siginfo info;
1: + struct ucontext uc;
1: +};
1: +
1: +struct frame_record {
1: + u64 fp;
1: + u64 lr;
1: +};
1: +
1: +struct rt_sigframe_user_layout {
1: + struct rt_sigframe *sigframe;
1: + struct frame_record *next_frame;
1: + long unsigned int size;
1: + long unsigned int limit;
1: + long unsigned int fpsimd_offset;
1: + long unsigned int esr_offset;
1: + long unsigned int sve_offset;
1: + long unsigned int extra_offset;
1: + long unsigned int end_offset;
1: +};
1: +
1: +struct user_ctxs {
1: + struct fpsimd_context *fpsimd;
1: + struct sve_context *sve;
1: +};
1: +
1: +enum {
1: + PER_LINUX = 0,
1: + PER_LINUX_32BIT = 8388608,
1: + PER_LINUX_FDPIC = 524288,
1: + PER_SVR4 = 68157441,
1: + PER_SVR3 = 83886082,
1: + PER_SCOSVR3 = 117440515,
1: + PER_OSR5 = 100663299,
1: + PER_WYSEV386 = 83886084,
1: + PER_ISCR4 = 67108869,
1: + PER_BSD = 6,
1: + PER_SUNOS = 67108870,
1: + PER_XENIX = 83886087,
1: + PER_LINUX32 = 8,
1: + PER_LINUX32_3GB = 134217736,
1: + PER_IRIX32 = 67108873,
1: + PER_IRIXN32 = 67108874,
1: + PER_IRIX64 = 67108875,
1: + PER_RISCOS = 12,
1: + PER_SOLARIS = 67108877,
1: + PER_UW7 = 68157454,
1: + PER_OSF4 = 15,
1: + PER_HPUX = 16,
1: + PER_MASK = 255,
1: +};
1: +
1: +typedef long int (*syscall_fn_t)(const struct pt_regs *);
1: +
1: +typedef bool (*stack_trace_consume_fn)(void *, long unsigned int);
1: +
1: +typedef bool pstate_check_t(long unsigned int);
1: +
1: +enum lockdep_ok {
1: + LOCKDEP_STILL_OK = 0,
1: + LOCKDEP_NOW_UNRELIABLE = 1,
1: +};
1: +
1: +enum bug_trap_type {
1: + BUG_TRAP_TYPE_NONE = 0,
1: + BUG_TRAP_TYPE_WARN = 1,
1: + BUG_TRAP_TYPE_BUG = 2,
1: +};
1: +
1: +enum ftr_type {
1: + FTR_EXACT = 0,
1: + FTR_LOWER_SAFE = 1,
1: + FTR_HIGHER_SAFE = 2,
1: + FTR_HIGHER_OR_ZERO_SAFE = 3,
1: +};
1: +
1: +struct arm64_ftr_bits {
1: + bool sign;
1: + bool visible;
1: + bool strict;
1: + enum ftr_type type;
1: + u8 shift;
1: + u8 width;
1: + s64 safe_val;
1: +};
1: +
1: +struct arm64_ftr_reg {
1: + const char *name;
1: + u64 strict_mask;
1: + u64 user_mask;
1: + u64 sys_val;
1: + u64 user_val;
1: + const struct arm64_ftr_bits *ftr_bits;
1: +};
1: +
1: +enum siginfo_layout {
1: + SIL_KILL = 0,
1: + SIL_TIMER = 1,
1: + SIL_POLL = 2,
1: + SIL_FAULT = 3,
1: + SIL_FAULT_MCEERR = 4,
1: + SIL_FAULT_BNDERR = 5,
1: + SIL_FAULT_PKUERR = 6,
1: + SIL_CHLD = 7,
1: + SIL_RT = 8,
1: + SIL_SYS = 9,
1: +};
1: +
1: +enum die_val {
1: + DIE_UNUSED = 0,
1: + DIE_OOPS = 1,
1: +};
1: +
1: +struct undef_hook {
1: + struct list_head node;
1: + u32 instr_mask;
1: + u32 instr_val;
1: + u64 pstate_mask;
1: + u64 pstate_val;
1: + int (*fn)(struct pt_regs *, u32);
1: +};
1: +
1: +struct sys64_hook {
1: + unsigned int esr_mask;
1: + unsigned int esr_val;
1: + void (*handler)(unsigned int, struct pt_regs *);
1: +};
1: +
1: +struct timens_offset {
1: + s64 sec;
1: + u64 nsec;
1: +};
1: +
1: +enum vm_fault_reason {
1: + VM_FAULT_OOM = 1,
1: + VM_FAULT_SIGBUS = 2,
1: + VM_FAULT_MAJOR = 4,
1: + VM_FAULT_WRITE = 8,
1: + VM_FAULT_HWPOISON = 16,
1: + VM_FAULT_HWPOISON_LARGE = 32,
1: + VM_FAULT_SIGSEGV = 64,
1: + VM_FAULT_NOPAGE = 256,
1: + VM_FAULT_LOCKED = 512,
1: + VM_FAULT_RETRY = 1024,
1: + VM_FAULT_FALLBACK = 2048,
1: + VM_FAULT_DONE_COW = 4096,
1: + VM_FAULT_NEEDDSYNC = 8192,
1: + VM_FAULT_HINDEX_MASK = 983040,
1: +};
1: +
1: +struct vm_special_mapping {
1: + const char *name;
1: + struct page **pages;
1: + vm_fault_t (*fault)(const struct vm_special_mapping *, struct vm_area_struct *, struct vm_fault *);
1: + int (*mremap)(const struct vm_special_mapping *, struct vm_area_struct *);
1: +};
1: +
1: +struct timens_offsets {
1: + struct timespec64 monotonic;
1: + struct timespec64 boottime;
1: +};
1: +
1: +struct time_namespace {
1: + struct kref kref;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: + struct timens_offsets offsets;
1: + struct page *vvar_page;
1: + bool frozen_offsets;
1: +};
1: +
1: +struct arch_vdso_data {};
1: +
1: +struct vdso_timestamp {
1: + u64 sec;
1: + u64 nsec;
1: +};
1: +
1: +struct vdso_data {
1: + u32 seq;
1: + s32 clock_mode;
1: + u64 cycle_last;
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: + union {
1: + struct vdso_timestamp basetime[12];
1: + struct timens_offset offset[12];
1: + };
1: + s32 tz_minuteswest;
1: + s32 tz_dsttime;
1: + u32 hrtimer_res;
1: + u32 __unused;
1: + struct arch_vdso_data arch_data;
1: +};
1: +
1: +enum vdso_abi {
1: + VDSO_ABI_AA64 = 0,
1: + VDSO_ABI_AA32 = 1,
1: +};
1: +
1: +enum vvar_pages {
1: + VVAR_DATA_PAGE_OFFSET = 0,
1: + VVAR_TIMENS_PAGE_OFFSET = 1,
1: + VVAR_NR_PAGES = 2,
1: +};
1: +
1: +struct vdso_abi_info {
1: + const char *name;
1: + const char *vdso_code_start;
1: + const char *vdso_code_end;
1: + long unsigned int vdso_pages;
1: + struct vm_special_mapping *dm;
1: + struct vm_special_mapping *cm;
1: +};
1: +
1: +enum aarch32_map {
1: + AA32_MAP_VECTORS = 0,
1: + AA32_MAP_SIGPAGE = 1,
1: + AA32_MAP_VVAR = 2,
1: + AA32_MAP_VDSO = 3,
1: +};
1: +
1: +enum aarch64_map {
1: + AA64_MAP_VVAR = 0,
1: + AA64_MAP_VDSO = 1,
1: +};
1: +
1: +struct psci_operations {
1: + u32 (*get_version)();
1: + int (*cpu_suspend)(u32, long unsigned int);
1: + int (*cpu_off)(u32);
1: + int (*cpu_on)(long unsigned int, long unsigned int);
1: + int (*migrate)(long unsigned int);
1: + int (*affinity_info)(long unsigned int, long unsigned int);
1: + int (*migrate_info_type)();
1: +};
1: +
1: +enum aarch64_insn_encoding_class {
1: + AARCH64_INSN_CLS_UNKNOWN = 0,
1: + AARCH64_INSN_CLS_DP_IMM = 1,
1: + AARCH64_INSN_CLS_DP_REG = 2,
1: + AARCH64_INSN_CLS_DP_FPSIMD = 3,
1: + AARCH64_INSN_CLS_LDST = 4,
1: + AARCH64_INSN_CLS_BR_SYS = 5,
1: +};
1: +
1: +enum aarch64_insn_hint_cr_op {
1: + AARCH64_INSN_HINT_NOP = 0,
1: + AARCH64_INSN_HINT_YIELD = 32,
1: + AARCH64_INSN_HINT_WFE = 64,
1: + AARCH64_INSN_HINT_WFI = 96,
1: + AARCH64_INSN_HINT_SEV = 128,
1: + AARCH64_INSN_HINT_SEVL = 160,
1: + AARCH64_INSN_HINT_XPACLRI = 224,
1: + AARCH64_INSN_HINT_PACIA_1716 = 256,
1: + AARCH64_INSN_HINT_PACIB_1716 = 320,
1: + AARCH64_INSN_HINT_AUTIA_1716 = 384,
1: + AARCH64_INSN_HINT_AUTIB_1716 = 448,
1: + AARCH64_INSN_HINT_PACIAZ = 768,
1: + AARCH64_INSN_HINT_PACIASP = 800,
1: + AARCH64_INSN_HINT_PACIBZ = 832,
1: + AARCH64_INSN_HINT_PACIBSP = 864,
1: + AARCH64_INSN_HINT_AUTIAZ = 896,
1: + AARCH64_INSN_HINT_AUTIASP = 928,
1: + AARCH64_INSN_HINT_AUTIBZ = 960,
1: + AARCH64_INSN_HINT_AUTIBSP = 992,
1: + AARCH64_INSN_HINT_ESB = 512,
1: + AARCH64_INSN_HINT_PSB = 544,
1: + AARCH64_INSN_HINT_TSB = 576,
1: + AARCH64_INSN_HINT_CSDB = 640,
1: + AARCH64_INSN_HINT_BTI = 1024,
1: + AARCH64_INSN_HINT_BTIC = 1088,
1: + AARCH64_INSN_HINT_BTIJ = 1152,
1: + AARCH64_INSN_HINT_BTIJC = 1216,
1: +};
1: +
1: +enum aarch64_insn_imm_type {
1: + AARCH64_INSN_IMM_ADR = 0,
1: + AARCH64_INSN_IMM_26 = 1,
1: + AARCH64_INSN_IMM_19 = 2,
1: + AARCH64_INSN_IMM_16 = 3,
1: + AARCH64_INSN_IMM_14 = 4,
1: + AARCH64_INSN_IMM_12 = 5,
1: + AARCH64_INSN_IMM_9 = 6,
1: + AARCH64_INSN_IMM_7 = 7,
1: + AARCH64_INSN_IMM_6 = 8,
1: + AARCH64_INSN_IMM_S = 9,
1: + AARCH64_INSN_IMM_R = 10,
1: + AARCH64_INSN_IMM_N = 11,
1: + AARCH64_INSN_IMM_MAX = 12,
1: +};
1: +
1: +enum aarch64_insn_register_type {
1: + AARCH64_INSN_REGTYPE_RT = 0,
1: + AARCH64_INSN_REGTYPE_RN = 1,
1: + AARCH64_INSN_REGTYPE_RT2 = 2,
1: + AARCH64_INSN_REGTYPE_RM = 3,
1: + AARCH64_INSN_REGTYPE_RD = 4,
1: + AARCH64_INSN_REGTYPE_RA = 5,
1: + AARCH64_INSN_REGTYPE_RS = 6,
1: +};
1: +
1: +enum aarch64_insn_register {
1: + AARCH64_INSN_REG_0 = 0,
1: + AARCH64_INSN_REG_1 = 1,
1: + AARCH64_INSN_REG_2 = 2,
1: + AARCH64_INSN_REG_3 = 3,
1: + AARCH64_INSN_REG_4 = 4,
1: + AARCH64_INSN_REG_5 = 5,
1: + AARCH64_INSN_REG_6 = 6,
1: + AARCH64_INSN_REG_7 = 7,
1: + AARCH64_INSN_REG_8 = 8,
1: + AARCH64_INSN_REG_9 = 9,
1: + AARCH64_INSN_REG_10 = 10,
1: + AARCH64_INSN_REG_11 = 11,
1: + AARCH64_INSN_REG_12 = 12,
1: + AARCH64_INSN_REG_13 = 13,
1: + AARCH64_INSN_REG_14 = 14,
1: + AARCH64_INSN_REG_15 = 15,
1: + AARCH64_INSN_REG_16 = 16,
1: + AARCH64_INSN_REG_17 = 17,
1: + AARCH64_INSN_REG_18 = 18,
1: + AARCH64_INSN_REG_19 = 19,
1: + AARCH64_INSN_REG_20 = 20,
1: + AARCH64_INSN_REG_21 = 21,
1: + AARCH64_INSN_REG_22 = 22,
1: + AARCH64_INSN_REG_23 = 23,
1: + AARCH64_INSN_REG_24 = 24,
1: + AARCH64_INSN_REG_25 = 25,
1: + AARCH64_INSN_REG_26 = 26,
1: + AARCH64_INSN_REG_27 = 27,
1: + AARCH64_INSN_REG_28 = 28,
1: + AARCH64_INSN_REG_29 = 29,
1: + AARCH64_INSN_REG_FP = 29,
1: + AARCH64_INSN_REG_30 = 30,
1: + AARCH64_INSN_REG_LR = 30,
1: + AARCH64_INSN_REG_ZR = 31,
1: + AARCH64_INSN_REG_SP = 31,
1: +};
1: +
1: +enum aarch64_insn_variant {
1: + AARCH64_INSN_VARIANT_32BIT = 0,
1: + AARCH64_INSN_VARIANT_64BIT = 1,
1: +};
1: +
1: +enum aarch64_insn_condition {
1: + AARCH64_INSN_COND_EQ = 0,
1: + AARCH64_INSN_COND_NE = 1,
1: + AARCH64_INSN_COND_CS = 2,
1: + AARCH64_INSN_COND_CC = 3,
1: + AARCH64_INSN_COND_MI = 4,
1: + AARCH64_INSN_COND_PL = 5,
1: + AARCH64_INSN_COND_VS = 6,
1: + AARCH64_INSN_COND_VC = 7,
1: + AARCH64_INSN_COND_HI = 8,
1: + AARCH64_INSN_COND_LS = 9,
1: + AARCH64_INSN_COND_GE = 10,
1: + AARCH64_INSN_COND_LT = 11,
1: + AARCH64_INSN_COND_GT = 12,
1: + AARCH64_INSN_COND_LE = 13,
1: + AARCH64_INSN_COND_AL = 14,
1: +};
1: +
1: +enum aarch64_insn_branch_type {
1: + AARCH64_INSN_BRANCH_NOLINK = 0,
1: + AARCH64_INSN_BRANCH_LINK = 1,
1: + AARCH64_INSN_BRANCH_RETURN = 2,
1: + AARCH64_INSN_BRANCH_COMP_ZERO = 3,
1: + AARCH64_INSN_BRANCH_COMP_NONZERO = 4,
1: +};
1: +
1: +enum aarch64_insn_size_type {
1: + AARCH64_INSN_SIZE_8 = 0,
1: + AARCH64_INSN_SIZE_16 = 1,
1: + AARCH64_INSN_SIZE_32 = 2,
1: + AARCH64_INSN_SIZE_64 = 3,
1: +};
1: +
1: +enum aarch64_insn_ldst_type {
1: + AARCH64_INSN_LDST_LOAD_REG_OFFSET = 0,
1: + AARCH64_INSN_LDST_STORE_REG_OFFSET = 1,
1: + AARCH64_INSN_LDST_LOAD_PAIR_PRE_INDEX = 2,
1: + AARCH64_INSN_LDST_STORE_PAIR_PRE_INDEX = 3,
1: + AARCH64_INSN_LDST_LOAD_PAIR_POST_INDEX = 4,
1: + AARCH64_INSN_LDST_STORE_PAIR_POST_INDEX = 5,
1: + AARCH64_INSN_LDST_LOAD_EX = 6,
1: + AARCH64_INSN_LDST_STORE_EX = 7,
1: +};
1: +
1: +enum aarch64_insn_adsb_type {
1: + AARCH64_INSN_ADSB_ADD = 0,
1: + AARCH64_INSN_ADSB_SUB = 1,
1: + AARCH64_INSN_ADSB_ADD_SETFLAGS = 2,
1: + AARCH64_INSN_ADSB_SUB_SETFLAGS = 3,
1: +};
1: +
1: +enum aarch64_insn_movewide_type {
1: + AARCH64_INSN_MOVEWIDE_ZERO = 0,
1: + AARCH64_INSN_MOVEWIDE_KEEP = 1,
1: + AARCH64_INSN_MOVEWIDE_INVERSE = 2,
1: +};
1: +
1: +enum aarch64_insn_bitfield_type {
1: + AARCH64_INSN_BITFIELD_MOVE = 0,
1: + AARCH64_INSN_BITFIELD_MOVE_UNSIGNED = 1,
1: + AARCH64_INSN_BITFIELD_MOVE_SIGNED = 2,
1: +};
1: +
1: +enum aarch64_insn_data1_type {
1: + AARCH64_INSN_DATA1_REVERSE_16 = 0,
1: + AARCH64_INSN_DATA1_REVERSE_32 = 1,
1: + AARCH64_INSN_DATA1_REVERSE_64 = 2,
1: +};
1: +
1: +enum aarch64_insn_data2_type {
1: + AARCH64_INSN_DATA2_UDIV = 0,
1: + AARCH64_INSN_DATA2_SDIV = 1,
1: + AARCH64_INSN_DATA2_LSLV = 2,
1: + AARCH64_INSN_DATA2_LSRV = 3,
1: + AARCH64_INSN_DATA2_ASRV = 4,
1: + AARCH64_INSN_DATA2_RORV = 5,
1: +};
1: +
1: +enum aarch64_insn_data3_type {
1: + AARCH64_INSN_DATA3_MADD = 0,
1: + AARCH64_INSN_DATA3_MSUB = 1,
1: +};
1: +
1: +enum aarch64_insn_logic_type {
1: + AARCH64_INSN_LOGIC_AND = 0,
1: + AARCH64_INSN_LOGIC_BIC = 1,
1: + AARCH64_INSN_LOGIC_ORR = 2,
1: + AARCH64_INSN_LOGIC_ORN = 3,
1: + AARCH64_INSN_LOGIC_EOR = 4,
1: + AARCH64_INSN_LOGIC_EON = 5,
1: + AARCH64_INSN_LOGIC_AND_SETFLAGS = 6,
1: + AARCH64_INSN_LOGIC_BIC_SETFLAGS = 7,
1: +};
1: +
1: +enum aarch64_insn_prfm_type {
1: + AARCH64_INSN_PRFM_TYPE_PLD = 0,
1: + AARCH64_INSN_PRFM_TYPE_PLI = 1,
1: + AARCH64_INSN_PRFM_TYPE_PST = 2,
1: +};
1: +
1: +enum aarch64_insn_prfm_target {
1: + AARCH64_INSN_PRFM_TARGET_L1 = 0,
1: + AARCH64_INSN_PRFM_TARGET_L2 = 1,
1: + AARCH64_INSN_PRFM_TARGET_L3 = 2,
1: +};
1: +
1: +enum aarch64_insn_prfm_policy {
1: + AARCH64_INSN_PRFM_POLICY_KEEP = 0,
1: + AARCH64_INSN_PRFM_POLICY_STRM = 1,
1: +};
1: +
1: +enum aarch64_insn_adr_type {
1: + AARCH64_INSN_ADR_TYPE_ADRP = 0,
1: + AARCH64_INSN_ADR_TYPE_ADR = 1,
1: +};
1: +
1: +enum fixed_addresses {
1: + FIX_HOLE = 0,
1: + FIX_FDT_END = 1,
1: + FIX_FDT = 1024,
1: + FIX_EARLYCON_MEM_BASE = 1025,
1: + FIX_TEXT_POKE0 = 1026,
1: + FIX_ENTRY_TRAMP_DATA = 1027,
1: + FIX_ENTRY_TRAMP_TEXT = 1028,
1: + __end_of_permanent_fixed_addresses = 1029,
1: + FIX_BTMAP_END = 1029,
1: + FIX_BTMAP_BEGIN = 1476,
1: + FIX_PTE = 1477,
1: + FIX_PMD = 1478,
1: + FIX_PUD = 1479,
1: + FIX_PGD = 1480,
1: + __end_of_fixed_addresses = 1481,
1: +};
1: +
1: +struct aarch64_insn_patch {
1: + void **text_addrs;
1: + u32 *new_insns;
1: + int insn_cnt;
1: + atomic_t cpu_count;
1: +};
1: +
1: +struct return_address_data {
1: + unsigned int level;
1: + void *addr;
1: +};
1: +
1: +struct kobj_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct kobj_attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct kobj_attribute *, const char *, size_t);
1: +};
1: +
1: +enum {
1: + CAP_HWCAP = 1,
1: + CAP_COMPAT_HWCAP = 2,
1: + CAP_COMPAT_HWCAP2 = 3,
1: +};
1: +
1: +struct secondary_data {
1: + void *stack;
1: + struct task_struct *task;
1: + long int status;
1: +};
1: +
1: +struct device_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct device *, struct device_attribute *, char *);
1: + ssize_t (*store)(struct device *, struct device_attribute *, const char *, size_t);
1: +};
1: +
1: +struct __ftr_reg_entry {
1: + u32 sys_id;
1: + struct arm64_ftr_reg *reg;
1: +};
1: +
1: +typedef void kpti_remap_fn(int, int, phys_addr_t);
1: +
1: +typedef void ttbr_replace_func(phys_addr_t);
1: +
1: +struct alt_instr {
1: + s32 orig_offset;
1: + s32 alt_offset;
1: + u16 cpufeature;
1: + u8 orig_len;
1: + u8 alt_len;
1: +};
1: +
1: +typedef void (*alternative_cb_t)(struct alt_instr *, __le32 *, __le32 *, int);
1: +
1: +struct alt_region {
1: + struct alt_instr *begin;
1: + struct alt_instr *end;
1: +};
1: +
1: +enum cache_type {
1: + CACHE_TYPE_NOCACHE = 0,
1: + CACHE_TYPE_INST = 1,
1: + CACHE_TYPE_DATA = 2,
1: + CACHE_TYPE_SEPARATE = 3,
1: + CACHE_TYPE_UNIFIED = 4,
1: +};
1: +
1: +struct cacheinfo {
1: + unsigned int id;
1: + enum cache_type type;
1: + unsigned int level;
1: + unsigned int coherency_line_size;
1: + unsigned int number_of_sets;
1: + unsigned int ways_of_associativity;
1: + unsigned int physical_line_partition;
1: + unsigned int size;
1: + cpumask_t shared_cpu_map;
1: + unsigned int attributes;
1: + void *fw_token;
1: + bool disable_sysfs;
1: + void *priv;
1: +};
1: +
1: +struct cpu_cacheinfo {
1: + struct cacheinfo *info_list;
1: + unsigned int num_levels;
1: + unsigned int num_leaves;
1: + bool cpu_map_populated;
1: +};
1: +
1: +struct irq_desc;
1: +
1: +typedef void (*irq_flow_handler_t)(struct irq_desc *);
1: +
1: +struct msi_desc;
1: +
1: +struct irq_common_data {
1: + unsigned int state_use_accessors;
1: + unsigned int node;
1: + void *handler_data;
1: + struct msi_desc *msi_desc;
1: + cpumask_var_t affinity;
1: + cpumask_var_t effective_affinity;
1: + unsigned int ipi_offset;
1: +};
1: +
1: +struct irq_chip;
1: +
1: +struct irq_data {
1: + u32 mask;
1: + unsigned int irq;
1: + long unsigned int hwirq;
1: + struct irq_common_data *common;
1: + struct irq_chip *chip;
1: + struct irq_domain *domain;
1: + struct irq_data *parent_data;
1: + void *chip_data;
1: +};
1: +
1: +struct irqaction;
1: +
1: +struct irq_affinity_notify;
1: +
1: +struct irq_desc {
1: + struct irq_common_data irq_common_data;
1: + struct irq_data irq_data;
1: + unsigned int *kstat_irqs;
1: + irq_flow_handler_t handle_irq;
1: + struct irqaction *action;
1: + unsigned int status_use_accessors;
1: + unsigned int core_internal_state__do_not_mess_with_it;
1: + unsigned int depth;
1: + unsigned int wake_depth;
1: + unsigned int tot_count;
1: + unsigned int irq_count;
1: + long unsigned int last_unhandled;
1: + unsigned int irqs_unhandled;
1: + atomic_t threads_handled;
1: + int threads_handled_last;
1: + raw_spinlock_t lock;
1: + struct cpumask *percpu_enabled;
1: + const struct cpumask *percpu_affinity;
1: + const struct cpumask *affinity_hint;
1: + struct irq_affinity_notify *affinity_notify;
1: + long unsigned int threads_oneshot;
1: + atomic_t threads_active;
1: + wait_queue_head_t wait_for_threads;
1: + unsigned int nr_actions;
1: + unsigned int no_suspend_depth;
1: + unsigned int cond_suspend_depth;
1: + unsigned int force_resume_depth;
1: + struct proc_dir_entry *dir;
1: + struct callback_head rcu;
1: + struct kobject kobj;
1: + struct mutex request_mutex;
1: + int parent_irq;
1: + struct module *owner;
1: + const char *name;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum irq_gc_flags {
1: + IRQ_GC_INIT_MASK_CACHE = 1,
1: + IRQ_GC_INIT_NESTED_LOCK = 2,
1: + IRQ_GC_MASK_CACHE_PER_TYPE = 4,
1: + IRQ_GC_NO_MASK = 8,
1: + IRQ_GC_BE_IO = 16,
1: +};
1: +
1: +struct irq_chip_generic;
1: +
1: +struct irq_domain_chip_generic {
1: + unsigned int irqs_per_chip;
1: + unsigned int num_chips;
1: + unsigned int irq_flags_to_clear;
1: + unsigned int irq_flags_to_set;
1: + enum irq_gc_flags gc_flags;
1: + struct irq_chip_generic *gc[0];
1: +};
1: +
1: +struct acpi_subtable_header {
1: + u8 type;
1: + u8 length;
1: +};
1: +
1: +struct acpi_hmat_structure {
1: + u16 type;
1: + u16 reserved;
1: + u32 length;
1: +};
1: +
1: +enum acpi_madt_type {
1: + ACPI_MADT_TYPE_LOCAL_APIC = 0,
1: + ACPI_MADT_TYPE_IO_APIC = 1,
1: + ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
1: + ACPI_MADT_TYPE_NMI_SOURCE = 3,
1: + ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
1: + ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
1: + ACPI_MADT_TYPE_IO_SAPIC = 6,
1: + ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
1: + ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
1: + ACPI_MADT_TYPE_LOCAL_X2APIC = 9,
1: + ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10,
1: + ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11,
1: + ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12,
1: + ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13,
1: + ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14,
1: + ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15,
1: + ACPI_MADT_TYPE_RESERVED = 16,
1: +};
1: +
1: +struct acpi_madt_generic_interrupt {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 cpu_interface_number;
1: + u32 uid;
1: + u32 flags;
1: + u32 parking_version;
1: + u32 performance_interrupt;
1: + u64 parked_address;
1: + u64 base_address;
1: + u64 gicv_base_address;
1: + u64 gich_base_address;
1: + u32 vgic_interrupt;
1: + u64 gicr_base_address;
1: + u64 arm_mpidr;
1: + u8 efficiency_class;
1: + u8 reserved2[1];
1: + u16 spe_interrupt;
1: +} __attribute__((packed));
1: +
1: +enum irqreturn {
1: + IRQ_NONE = 0,
1: + IRQ_HANDLED = 1,
1: + IRQ_WAKE_THREAD = 2,
1: +};
1: +
1: +typedef enum irqreturn irqreturn_t;
1: +
1: +typedef irqreturn_t (*irq_handler_t)(int, void *);
1: +
1: +struct irqaction {
1: + irq_handler_t handler;
1: + void *dev_id;
1: + void *percpu_dev_id;
1: + struct irqaction *next;
1: + irq_handler_t thread_fn;
1: + struct task_struct *thread;
1: + struct irqaction *secondary;
1: + unsigned int irq;
1: + unsigned int flags;
1: + long unsigned int thread_flags;
1: + long unsigned int thread_mask;
1: + const char *name;
1: + struct proc_dir_entry *dir;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct irq_affinity_notify {
1: + unsigned int irq;
1: + struct kref kref;
1: + struct work_struct work;
1: + void (*notify)(struct irq_affinity_notify *, const cpumask_t *);
1: + void (*release)(struct kref *);
1: +};
1: +
1: +struct irq_affinity_desc {
1: + struct cpumask mask;
1: + unsigned int is_managed: 1;
1: +};
1: +
1: +enum irqchip_irq_state {
1: + IRQCHIP_STATE_PENDING = 0,
1: + IRQCHIP_STATE_ACTIVE = 1,
1: + IRQCHIP_STATE_MASKED = 2,
1: + IRQCHIP_STATE_LINE_LEVEL = 3,
1: +};
1: +
1: +union acpi_subtable_headers {
1: + struct acpi_subtable_header common;
1: + struct acpi_hmat_structure hmat;
1: +};
1: +
1: +enum {
1: + IRQ_TYPE_NONE = 0,
1: + IRQ_TYPE_EDGE_RISING = 1,
1: + IRQ_TYPE_EDGE_FALLING = 2,
1: + IRQ_TYPE_EDGE_BOTH = 3,
1: + IRQ_TYPE_LEVEL_HIGH = 4,
1: + IRQ_TYPE_LEVEL_LOW = 8,
1: + IRQ_TYPE_LEVEL_MASK = 12,
1: + IRQ_TYPE_SENSE_MASK = 15,
1: + IRQ_TYPE_DEFAULT = 15,
1: + IRQ_TYPE_PROBE = 16,
1: + IRQ_LEVEL = 256,
1: + IRQ_PER_CPU = 512,
1: + IRQ_NOPROBE = 1024,
1: + IRQ_NOREQUEST = 2048,
1: + IRQ_NOAUTOEN = 4096,
1: + IRQ_NO_BALANCING = 8192,
1: + IRQ_MOVE_PCNTXT = 16384,
1: + IRQ_NESTED_THREAD = 32768,
1: + IRQ_NOTHREAD = 65536,
1: + IRQ_PER_CPU_DEVID = 131072,
1: + IRQ_IS_POLLED = 262144,
1: + IRQ_DISABLE_UNLAZY = 524288,
1: + IRQ_HIDDEN = 1048576,
1: +};
1: +
1: +struct msi_msg {
1: + u32 address_lo;
1: + u32 address_hi;
1: + u32 data;
1: +};
1: +
1: +struct platform_msi_priv_data;
1: +
1: +struct platform_msi_desc {
1: + struct platform_msi_priv_data *msi_priv_data;
1: + u16 msi_index;
1: +};
1: +
1: +struct fsl_mc_msi_desc {
1: + u16 msi_index;
1: +};
1: +
1: +struct ti_sci_inta_msi_desc {
1: + u16 dev_index;
1: +};
1: +
1: +struct msi_desc {
1: + struct list_head list;
1: + unsigned int irq;
1: + unsigned int nvec_used;
1: + struct device *dev;
1: + struct msi_msg msg;
1: + struct irq_affinity_desc *affinity;
1: + const void *iommu_cookie;
1: + void (*write_msi_msg)(struct msi_desc *, void *);
1: + void *write_msi_msg_data;
1: + union {
1: + struct {
1: + u32 masked;
1: + struct {
1: + u8 is_msix: 1;
1: + u8 multiple: 3;
1: + u8 multi_cap: 3;
1: + u8 maskbit: 1;
1: + u8 is_64: 1;
1: + u8 is_virtual: 1;
1: + u16 entry_nr;
1: + unsigned int default_irq;
1: + } msi_attrib;
1: + union {
1: + u8 mask_pos;
1: + void *mask_base;
1: + };
1: + };
1: + struct platform_msi_desc platform;
1: + struct fsl_mc_msi_desc fsl_mc;
1: + struct ti_sci_inta_msi_desc inta;
1: + };
1: +};
1: +
1: +struct irq_chip {
1: + struct device *parent_device;
1: + const char *name;
1: + unsigned int (*irq_startup)(struct irq_data *);
1: + void (*irq_shutdown)(struct irq_data *);
1: + void (*irq_enable)(struct irq_data *);
1: + void (*irq_disable)(struct irq_data *);
1: + void (*irq_ack)(struct irq_data *);
1: + void (*irq_mask)(struct irq_data *);
1: + void (*irq_mask_ack)(struct irq_data *);
1: + void (*irq_unmask)(struct irq_data *);
1: + void (*irq_eoi)(struct irq_data *);
1: + int (*irq_set_affinity)(struct irq_data *, const struct cpumask *, bool);
1: + int (*irq_retrigger)(struct irq_data *);
1: + int (*irq_set_type)(struct irq_data *, unsigned int);
1: + int (*irq_set_wake)(struct irq_data *, unsigned int);
1: + void (*irq_bus_lock)(struct irq_data *);
1: + void (*irq_bus_sync_unlock)(struct irq_data *);
1: + void (*irq_cpu_online)(struct irq_data *);
1: + void (*irq_cpu_offline)(struct irq_data *);
1: + void (*irq_suspend)(struct irq_data *);
1: + void (*irq_resume)(struct irq_data *);
1: + void (*irq_pm_shutdown)(struct irq_data *);
1: + void (*irq_calc_mask)(struct irq_data *);
1: + void (*irq_print_chip)(struct irq_data *, struct seq_file *);
1: + int (*irq_request_resources)(struct irq_data *);
1: + void (*irq_release_resources)(struct irq_data *);
1: + void (*irq_compose_msi_msg)(struct irq_data *, struct msi_msg *);
1: + void (*irq_write_msi_msg)(struct irq_data *, struct msi_msg *);
1: + int (*irq_get_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool *);
1: + int (*irq_set_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool);
1: + int (*irq_set_vcpu_affinity)(struct irq_data *, void *);
1: + void (*ipi_send_single)(struct irq_data *, unsigned int);
1: + void (*ipi_send_mask)(struct irq_data *, const struct cpumask *);
1: + int (*irq_nmi_setup)(struct irq_data *);
1: + void (*irq_nmi_teardown)(struct irq_data *);
1: + long unsigned int flags;
1: +};
1: +
1: +struct irq_chip_regs {
1: + long unsigned int enable;
1: + long unsigned int disable;
1: + long unsigned int mask;
1: + long unsigned int ack;
1: + long unsigned int eoi;
1: + long unsigned int type;
1: + long unsigned int polarity;
1: +};
1: +
1: +struct irq_chip_type {
1: + struct irq_chip chip;
1: + struct irq_chip_regs regs;
1: + irq_flow_handler_t handler;
1: + u32 type;
1: + u32 mask_cache_priv;
1: + u32 *mask_cache;
1: +};
1: +
1: +struct irq_chip_generic {
1: + raw_spinlock_t lock;
1: + void *reg_base;
1: + u32 (*reg_readl)(void *);
1: + void (*reg_writel)(u32, void *);
1: + void (*suspend)(struct irq_chip_generic *);
1: + void (*resume)(struct irq_chip_generic *);
1: + unsigned int irq_base;
1: + unsigned int irq_cnt;
1: + u32 mask_cache;
1: + u32 type_cache;
1: + u32 polarity_cache;
1: + u32 wake_enabled;
1: + u32 wake_active;
1: + unsigned int num_ct;
1: + void *private;
1: + long unsigned int installed;
1: + long unsigned int unused;
1: + struct irq_domain *domain;
1: + struct list_head list;
1: + struct irq_chip_type chip_types[0];
1: +};
1: +
1: +enum vcpu_sysreg {
1: + __INVALID_SYSREG__ = 0,
1: + MPIDR_EL1 = 1,
1: + CSSELR_EL1 = 2,
1: + SCTLR_EL1 = 3,
1: + ACTLR_EL1 = 4,
1: + CPACR_EL1 = 5,
1: + ZCR_EL1 = 6,
1: + TTBR0_EL1 = 7,
1: + TTBR1_EL1 = 8,
1: + TCR_EL1 = 9,
1: + ESR_EL1 = 10,
1: + AFSR0_EL1 = 11,
1: + AFSR1_EL1 = 12,
1: + FAR_EL1 = 13,
1: + MAIR_EL1 = 14,
1: + VBAR_EL1 = 15,
1: + CONTEXTIDR_EL1 = 16,
1: + TPIDR_EL0 = 17,
1: + TPIDRRO_EL0 = 18,
1: + TPIDR_EL1 = 19,
1: + AMAIR_EL1 = 20,
1: + CNTKCTL_EL1 = 21,
1: + PAR_EL1 = 22,
1: + MDSCR_EL1 = 23,
1: + MDCCINT_EL1 = 24,
1: + DISR_EL1 = 25,
1: + PMCR_EL0 = 26,
1: + PMSELR_EL0 = 27,
1: + PMEVCNTR0_EL0 = 28,
1: + PMEVCNTR30_EL0 = 58,
1: + PMCCNTR_EL0 = 59,
1: + PMEVTYPER0_EL0 = 60,
1: + PMEVTYPER30_EL0 = 90,
1: + PMCCFILTR_EL0 = 91,
1: + PMCNTENSET_EL0 = 92,
1: + PMINTENSET_EL1 = 93,
1: + PMOVSSET_EL0 = 94,
1: + PMSWINC_EL0 = 95,
1: + PMUSERENR_EL0 = 96,
1: + APIAKEYLO_EL1 = 97,
1: + APIAKEYHI_EL1 = 98,
1: + APIBKEYLO_EL1 = 99,
1: + APIBKEYHI_EL1 = 100,
1: + APDAKEYLO_EL1 = 101,
1: + APDAKEYHI_EL1 = 102,
1: + APDBKEYLO_EL1 = 103,
1: + APDBKEYHI_EL1 = 104,
1: + APGAKEYLO_EL1 = 105,
1: + APGAKEYHI_EL1 = 106,
1: + ELR_EL1 = 107,
1: + SP_EL1 = 108,
1: + SPSR_EL1 = 109,
1: + CNTVOFF_EL2 = 110,
1: + CNTV_CVAL_EL0 = 111,
1: + CNTV_CTL_EL0 = 112,
1: + CNTP_CVAL_EL0 = 113,
1: + CNTP_CTL_EL0 = 114,
1: + DACR32_EL2 = 115,
1: + IFSR32_EL2 = 116,
1: + FPEXC32_EL2 = 117,
1: + DBGVCR32_EL2 = 118,
1: + NR_SYS_REGS = 119,
1: +};
1: +
1: +enum kvm_bus {
1: + KVM_MMIO_BUS = 0,
1: + KVM_PIO_BUS = 1,
1: + KVM_VIRTIO_CCW_NOTIFY_BUS = 2,
1: + KVM_FAST_MMIO_BUS = 3,
1: + KVM_NR_BUSES = 4,
1: +};
1: +
1: +struct trace_event_raw_ipi_raise {
1: + struct trace_entry ent;
1: + u32 __data_loc_target_cpus;
1: + const char *reason;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ipi_handler {
1: + struct trace_entry ent;
1: + const char *reason;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_ipi_raise {
1: + u32 target_cpus;
1: +};
1: +
1: +struct trace_event_data_offsets_ipi_handler {};
1: +
1: +typedef void (*btf_trace_ipi_raise)(void *, const struct cpumask *, const char *);
1: +
1: +typedef void (*btf_trace_ipi_entry)(void *, const char *);
1: +
1: +typedef void (*btf_trace_ipi_exit)(void *, const char *);
1: +
1: +enum ipi_msg_type {
1: + IPI_RESCHEDULE = 0,
1: + IPI_CALL_FUNC = 1,
1: + IPI_CPU_STOP = 2,
1: + IPI_CPU_CRASH_STOP = 3,
1: + IPI_TIMER = 4,
1: + IPI_IRQ_WORK = 5,
1: + IPI_WAKEUP = 6,
1: + NR_IPI = 7,
1: +};
1: +
1: +struct cpu_topology {
1: + int thread_id;
1: + int core_id;
1: + int package_id;
1: + int llc_id;
1: + cpumask_t thread_sibling;
1: + cpumask_t core_sibling;
1: + cpumask_t llc_sibling;
1: +};
1: +
1: +enum cpufreq_table_sorting {
1: + CPUFREQ_TABLE_UNSORTED = 0,
1: + CPUFREQ_TABLE_SORTED_ASCENDING = 1,
1: + CPUFREQ_TABLE_SORTED_DESCENDING = 2,
1: +};
1: +
1: +struct cpufreq_cpuinfo {
1: + unsigned int max_freq;
1: + unsigned int min_freq;
1: + unsigned int transition_latency;
1: +};
1: +
1: +struct clk;
1: +
1: +struct cpufreq_governor;
1: +
1: +struct cpufreq_frequency_table;
1: +
1: +struct cpufreq_stats;
1: +
1: +struct thermal_cooling_device;
1: +
1: +struct cpufreq_policy {
1: + cpumask_var_t cpus;
1: + cpumask_var_t related_cpus;
1: + cpumask_var_t real_cpus;
1: + unsigned int shared_type;
1: + unsigned int cpu;
1: + struct clk *clk;
1: + struct cpufreq_cpuinfo cpuinfo;
1: + unsigned int min;
1: + unsigned int max;
1: + unsigned int cur;
1: + unsigned int restore_freq;
1: + unsigned int suspend_freq;
1: + unsigned int policy;
1: + unsigned int last_policy;
1: + struct cpufreq_governor *governor;
1: + void *governor_data;
1: + char last_governor[16];
1: + struct work_struct update;
1: + struct freq_constraints constraints;
1: + struct freq_qos_request *min_freq_req;
1: + struct freq_qos_request *max_freq_req;
1: + struct cpufreq_frequency_table *freq_table;
1: + enum cpufreq_table_sorting freq_table_sorted;
1: + struct list_head policy_list;
1: + struct kobject kobj;
1: + struct completion kobj_unregister;
1: + struct rw_semaphore rwsem;
1: + bool fast_switch_possible;
1: + bool fast_switch_enabled;
1: + bool strict_target;
1: + unsigned int transition_delay_us;
1: + bool dvfs_possible_from_any_cpu;
1: + unsigned int cached_target_freq;
1: + unsigned int cached_resolved_idx;
1: + bool transition_ongoing;
1: + spinlock_t transition_lock;
1: + wait_queue_head_t transition_wait;
1: + struct task_struct *transition_task;
1: + struct cpufreq_stats *stats;
1: + void *driver_data;
1: + struct thermal_cooling_device *cdev;
1: + struct notifier_block nb_min;
1: + struct notifier_block nb_max;
1: +};
1: +
1: +struct cpufreq_governor {
1: + char name[16];
1: + int (*init)(struct cpufreq_policy *);
1: + void (*exit)(struct cpufreq_policy *);
1: + int (*start)(struct cpufreq_policy *);
1: + void (*stop)(struct cpufreq_policy *);
1: + void (*limits)(struct cpufreq_policy *);
1: + ssize_t (*show_setspeed)(struct cpufreq_policy *, char *);
1: + int (*store_setspeed)(struct cpufreq_policy *, unsigned int);
1: + struct list_head governor_list;
1: + struct module *owner;
1: + u8 flags;
1: +};
1: +
1: +struct cpufreq_frequency_table {
1: + unsigned int flags;
1: + unsigned int driver_data;
1: + unsigned int frequency;
1: +};
1: +
1: +enum arm_smccc_conduit {
1: + SMCCC_CONDUIT_NONE = 0,
1: + SMCCC_CONDUIT_SMC = 1,
1: + SMCCC_CONDUIT_HVC = 2,
1: +};
1: +
1: +struct arm_smccc_res {
1: + long unsigned int a0;
1: + long unsigned int a1;
1: + long unsigned int a2;
1: + long unsigned int a3;
1: +};
1: +
1: +enum mitigation_state {
1: + SPECTRE_UNAFFECTED = 0,
1: + SPECTRE_MITIGATED = 1,
1: + SPECTRE_VULNERABLE = 2,
1: +};
1: +
1: +enum spectre_v4_policy {
1: + SPECTRE_V4_POLICY_MITIGATION_DYNAMIC = 0,
1: + SPECTRE_V4_POLICY_MITIGATION_ENABLED = 1,
1: + SPECTRE_V4_POLICY_MITIGATION_DISABLED = 2,
1: +};
1: +
1: +struct spectre_v4_param {
1: + const char *str;
1: + enum spectre_v4_policy policy;
1: +};
1: +
1: +typedef u32 compat_size_t;
1: +
1: +struct compat_statfs64;
1: +
1: +typedef s32 compat_clock_t;
1: +
1: +typedef s32 compat_pid_t;
1: +
1: +typedef s32 compat_timer_t;
1: +
1: +typedef s32 compat_int_t;
1: +
1: +typedef u64 compat_u64;
1: +
1: +typedef u32 __compat_uid32_t;
1: +
1: +typedef u32 compat_sigset_word;
1: +
1: +struct compat_sigaltstack {
1: + compat_uptr_t ss_sp;
1: + int ss_flags;
1: + compat_size_t ss_size;
1: +};
1: +
1: +typedef struct compat_sigaltstack compat_stack_t;
1: +
1: +typedef struct {
1: + compat_sigset_word sig[2];
1: +} compat_sigset_t;
1: +
1: +union compat_sigval {
1: + compat_int_t sival_int;
1: + compat_uptr_t sival_ptr;
1: +};
1: +
1: +typedef union compat_sigval compat_sigval_t;
1: +
1: +struct compat_siginfo {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union {
1: + int _pad[29];
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + compat_timer_t _tid;
1: + int _overrun;
1: + compat_sigval_t _sigval;
1: + } _timer;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + compat_sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + int _status;
1: + compat_clock_t _utime;
1: + compat_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + compat_uptr_t _addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[4];
1: + compat_uptr_t _lower;
1: + compat_uptr_t _upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[4];
1: + u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + compat_long_t _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + compat_uptr_t _call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: + } _sifields;
1: +};
1: +
1: +struct compat_sigcontext {
1: + compat_ulong_t trap_no;
1: + compat_ulong_t error_code;
1: + compat_ulong_t oldmask;
1: + compat_ulong_t arm_r0;
1: + compat_ulong_t arm_r1;
1: + compat_ulong_t arm_r2;
1: + compat_ulong_t arm_r3;
1: + compat_ulong_t arm_r4;
1: + compat_ulong_t arm_r5;
1: + compat_ulong_t arm_r6;
1: + compat_ulong_t arm_r7;
1: + compat_ulong_t arm_r8;
1: + compat_ulong_t arm_r9;
1: + compat_ulong_t arm_r10;
1: + compat_ulong_t arm_fp;
1: + compat_ulong_t arm_ip;
1: + compat_ulong_t arm_sp;
1: + compat_ulong_t arm_lr;
1: + compat_ulong_t arm_pc;
1: + compat_ulong_t arm_cpsr;
1: + compat_ulong_t fault_address;
1: +};
1: +
1: +struct compat_ucontext {
1: + compat_ulong_t uc_flags;
1: + compat_uptr_t uc_link;
1: + compat_stack_t uc_stack;
1: + struct compat_sigcontext uc_mcontext;
1: + compat_sigset_t uc_sigmask;
1: + int __unused[30];
1: + compat_ulong_t uc_regspace[128];
1: +};
1: +
1: +struct compat_sigframe {
1: + struct compat_ucontext uc;
1: + compat_ulong_t retcode[2];
1: +};
1: +
1: +struct compat_rt_sigframe {
1: + struct compat_siginfo info;
1: + struct compat_sigframe sig;
1: +};
1: +
1: +struct compat_user_vfp {
1: + compat_u64 fpregs[32];
1: + compat_ulong_t fpscr;
1: +};
1: +
1: +struct compat_user_vfp_exc {
1: + compat_ulong_t fpexc;
1: + compat_ulong_t fpinst;
1: + compat_ulong_t fpinst2;
1: +};
1: +
1: +struct compat_vfp_sigframe {
1: + compat_ulong_t magic;
1: + compat_ulong_t size;
1: + struct compat_user_vfp ufp;
1: + struct compat_user_vfp_exc ufp_exc;
1: +};
1: +
1: +struct compat_aux_sigframe {
1: + struct compat_vfp_sigframe vfp;
1: + long unsigned int end_magic;
1: +};
1: +
1: +union __fpsimd_vreg {
1: + __int128 unsigned raw;
1: + struct {
1: + u64 lo;
1: + u64 hi;
1: + };
1: +};
1: +
1: +struct dyn_arch_ftrace {};
1: +
1: +struct dyn_ftrace {
1: + long unsigned int ip;
1: + long unsigned int flags;
1: + struct dyn_arch_ftrace arch;
1: +};
1: +
1: +enum {
1: + FTRACE_UPDATE_CALLS = 1,
1: + FTRACE_DISABLE_CALLS = 2,
1: + FTRACE_UPDATE_TRACE_FUNC = 4,
1: + FTRACE_START_FUNC_RET = 8,
1: + FTRACE_STOP_FUNC_RET = 16,
1: + FTRACE_MAY_SLEEP = 32,
1: +};
1: +
1: +typedef __u64 Elf64_Off;
1: +
1: +typedef __s64 Elf64_Sxword;
1: +
1: +struct elf64_rela {
1: + Elf64_Addr r_offset;
1: + Elf64_Xword r_info;
1: + Elf64_Sxword r_addend;
1: +};
1: +
1: +typedef struct elf64_rela Elf64_Rela;
1: +
1: +struct elf64_hdr {
1: + unsigned char e_ident[16];
1: + Elf64_Half e_type;
1: + Elf64_Half e_machine;
1: + Elf64_Word e_version;
1: + Elf64_Addr e_entry;
1: + Elf64_Off e_phoff;
1: + Elf64_Off e_shoff;
1: + Elf64_Word e_flags;
1: + Elf64_Half e_ehsize;
1: + Elf64_Half e_phentsize;
1: + Elf64_Half e_phnum;
1: + Elf64_Half e_shentsize;
1: + Elf64_Half e_shnum;
1: + Elf64_Half e_shstrndx;
1: +};
1: +
1: +typedef struct elf64_hdr Elf64_Ehdr;
1: +
1: +struct elf64_shdr {
1: + Elf64_Word sh_name;
1: + Elf64_Word sh_type;
1: + Elf64_Xword sh_flags;
1: + Elf64_Addr sh_addr;
1: + Elf64_Off sh_offset;
1: + Elf64_Xword sh_size;
1: + Elf64_Word sh_link;
1: + Elf64_Word sh_info;
1: + Elf64_Xword sh_addralign;
1: + Elf64_Xword sh_entsize;
1: +};
1: +
1: +typedef struct elf64_shdr Elf64_Shdr;
1: +
1: +enum aarch64_reloc_op {
1: + RELOC_OP_NONE = 0,
1: + RELOC_OP_ABS = 1,
1: + RELOC_OP_PREL = 2,
1: + RELOC_OP_PAGE = 3,
1: +};
1: +
1: +enum aarch64_insn_movw_imm_type {
1: + AARCH64_INSN_IMM_MOVNZ = 0,
1: + AARCH64_INSN_IMM_MOVKZ = 1,
1: +};
1: +
1: +enum perf_sample_regs_abi {
1: + PERF_SAMPLE_REGS_ABI_NONE = 0,
1: + PERF_SAMPLE_REGS_ABI_32 = 1,
1: + PERF_SAMPLE_REGS_ABI_64 = 2,
1: +};
1: +
1: +enum perf_event_arm_regs {
1: + PERF_REG_ARM64_X0 = 0,
1: + PERF_REG_ARM64_X1 = 1,
1: + PERF_REG_ARM64_X2 = 2,
1: + PERF_REG_ARM64_X3 = 3,
1: + PERF_REG_ARM64_X4 = 4,
1: + PERF_REG_ARM64_X5 = 5,
1: + PERF_REG_ARM64_X6 = 6,
1: + PERF_REG_ARM64_X7 = 7,
1: + PERF_REG_ARM64_X8 = 8,
1: + PERF_REG_ARM64_X9 = 9,
1: + PERF_REG_ARM64_X10 = 10,
1: + PERF_REG_ARM64_X11 = 11,
1: + PERF_REG_ARM64_X12 = 12,
1: + PERF_REG_ARM64_X13 = 13,
1: + PERF_REG_ARM64_X14 = 14,
1: + PERF_REG_ARM64_X15 = 15,
1: + PERF_REG_ARM64_X16 = 16,
1: + PERF_REG_ARM64_X17 = 17,
1: + PERF_REG_ARM64_X18 = 18,
1: + PERF_REG_ARM64_X19 = 19,
1: + PERF_REG_ARM64_X20 = 20,
1: + PERF_REG_ARM64_X21 = 21,
1: + PERF_REG_ARM64_X22 = 22,
1: + PERF_REG_ARM64_X23 = 23,
1: + PERF_REG_ARM64_X24 = 24,
1: + PERF_REG_ARM64_X25 = 25,
1: + PERF_REG_ARM64_X26 = 26,
1: + PERF_REG_ARM64_X27 = 27,
1: + PERF_REG_ARM64_X28 = 28,
1: + PERF_REG_ARM64_X29 = 29,
1: + PERF_REG_ARM64_LR = 30,
1: + PERF_REG_ARM64_SP = 31,
1: + PERF_REG_ARM64_PC = 32,
1: + PERF_REG_ARM64_MAX = 33,
1: +};
1: +
1: +struct perf_guest_info_callbacks {
1: + int (*is_in_guest)();
1: + int (*is_user_mode)();
1: + long unsigned int (*get_guest_ip)();
1: + void (*handle_intel_pt_intr)();
1: +};
1: +
1: +struct perf_callchain_entry_ctx {
1: + struct perf_callchain_entry *entry;
1: + u32 max_stack;
1: + u32 nr;
1: + short int contexts;
1: + bool contexts_maxed;
1: +};
1: +
1: +struct frame_tail {
1: + struct frame_tail *fp;
1: + long unsigned int lr;
1: +};
1: +
1: +struct compat_frame_tail {
1: + compat_uptr_t fp;
1: + u32 sp;
1: + u32 lr;
1: +};
1: +
1: +struct platform_device_id {
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct pdev_archdata {};
1: +
1: +enum perf_hw_id {
1: + PERF_COUNT_HW_CPU_CYCLES = 0,
1: + PERF_COUNT_HW_INSTRUCTIONS = 1,
1: + PERF_COUNT_HW_CACHE_REFERENCES = 2,
1: + PERF_COUNT_HW_CACHE_MISSES = 3,
1: + PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4,
1: + PERF_COUNT_HW_BRANCH_MISSES = 5,
1: + PERF_COUNT_HW_BUS_CYCLES = 6,
1: + PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 7,
1: + PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 8,
1: + PERF_COUNT_HW_REF_CPU_CYCLES = 9,
1: + PERF_COUNT_HW_MAX = 10,
1: +};
1: +
1: +enum perf_hw_cache_id {
1: + PERF_COUNT_HW_CACHE_L1D = 0,
1: + PERF_COUNT_HW_CACHE_L1I = 1,
1: + PERF_COUNT_HW_CACHE_LL = 2,
1: + PERF_COUNT_HW_CACHE_DTLB = 3,
1: + PERF_COUNT_HW_CACHE_ITLB = 4,
1: + PERF_COUNT_HW_CACHE_BPU = 5,
1: + PERF_COUNT_HW_CACHE_NODE = 6,
1: + PERF_COUNT_HW_CACHE_MAX = 7,
1: +};
1: +
1: +enum perf_hw_cache_op_id {
1: + PERF_COUNT_HW_CACHE_OP_READ = 0,
1: + PERF_COUNT_HW_CACHE_OP_WRITE = 1,
1: + PERF_COUNT_HW_CACHE_OP_PREFETCH = 2,
1: + PERF_COUNT_HW_CACHE_OP_MAX = 3,
1: +};
1: +
1: +enum perf_hw_cache_op_result_id {
1: + PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0,
1: + PERF_COUNT_HW_CACHE_RESULT_MISS = 1,
1: + PERF_COUNT_HW_CACHE_RESULT_MAX = 2,
1: +};
1: +
1: +struct perf_event_mmap_page {
1: + __u32 version;
1: + __u32 compat_version;
1: + __u32 lock;
1: + __u32 index;
1: + __s64 offset;
1: + __u64 time_enabled;
1: + __u64 time_running;
1: + union {
1: + __u64 capabilities;
1: + struct {
1: + __u64 cap_bit0: 1;
1: + __u64 cap_bit0_is_deprecated: 1;
1: + __u64 cap_user_rdpmc: 1;
1: + __u64 cap_user_time: 1;
1: + __u64 cap_user_time_zero: 1;
1: + __u64 cap_user_time_short: 1;
1: + __u64 cap_____res: 58;
1: + };
1: + };
1: + __u16 pmc_width;
1: + __u16 time_shift;
1: + __u32 time_mult;
1: + __u64 time_offset;
1: + __u64 time_zero;
1: + __u32 size;
1: + __u32 __reserved_1;
1: + __u64 time_cycles;
1: + __u64 time_mask;
1: + __u8 __reserved[928];
1: + __u64 data_head;
1: + __u64 data_tail;
1: + __u64 data_offset;
1: + __u64 data_size;
1: + __u64 aux_head;
1: + __u64 aux_tail;
1: + __u64 aux_offset;
1: + __u64 aux_size;
1: +};
1: +
1: +struct perf_pmu_events_attr {
1: + struct device_attribute attr;
1: + u64 id;
1: + const char *event_str;
1: +};
1: +
1: +struct mfd_cell;
1: +
1: +struct platform_device {
1: + const char *name;
1: + int id;
1: + bool id_auto;
1: + struct device dev;
1: + u64 platform_dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + u32 num_resources;
1: + struct resource *resource;
1: + const struct platform_device_id *id_entry;
1: + char *driver_override;
1: + struct mfd_cell *mfd_cell;
1: + struct pdev_archdata archdata;
1: +};
1: +
1: +struct platform_driver {
1: + int (*probe)(struct platform_device *);
1: + int (*remove)(struct platform_device *);
1: + void (*shutdown)(struct platform_device *);
1: + int (*suspend)(struct platform_device *, pm_message_t);
1: + int (*resume)(struct platform_device *);
1: + struct device_driver driver;
1: + const struct platform_device_id *id_table;
1: + bool prevent_deferred_probe;
1: +};
1: +
1: +struct arm_pmu;
1: +
1: +struct pmu_hw_events {
1: + struct perf_event *events[32];
1: + long unsigned int used_mask[1];
1: + raw_spinlock_t pmu_lock;
1: + struct arm_pmu *percpu_pmu;
1: + int irq;
1: +};
1: +
1: +struct arm_pmu {
1: + struct pmu pmu;
1: + cpumask_t supported_cpus;
1: + char *name;
1: + int pmuver;
1: + irqreturn_t (*handle_irq)(struct arm_pmu *);
1: + void (*enable)(struct perf_event *);
1: + void (*disable)(struct perf_event *);
1: + int (*get_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: + void (*clear_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: + int (*set_event_filter)(struct hw_perf_event *, struct perf_event_attr *);
1: + u64 (*read_counter)(struct perf_event *);
1: + void (*write_counter)(struct perf_event *, u64);
1: + void (*start)(struct arm_pmu *);
1: + void (*stop)(struct arm_pmu *);
1: + void (*reset)(void *);
1: + int (*map_event)(struct perf_event *);
1: + int (*filter_match)(struct perf_event *);
1: + int num_events;
1: + bool secure_access;
1: + long unsigned int pmceid_bitmap[1];
1: + long unsigned int pmceid_ext_bitmap[1];
1: + struct platform_device *plat_device;
1: + struct pmu_hw_events *hw_events;
1: + struct hlist_node node;
1: + struct notifier_block cpu_pm_nb;
1: + const struct attribute_group *attr_groups[5];
1: + u64 reg_pmmir;
1: + long unsigned int acpi_cpuid;
1: +};
1: +
1: +enum armpmu_attr_groups {
1: + ARMPMU_ATTR_GROUP_COMMON = 0,
1: + ARMPMU_ATTR_GROUP_EVENTS = 1,
1: + ARMPMU_ATTR_GROUP_FORMATS = 2,
1: + ARMPMU_ATTR_GROUP_CAPS = 3,
1: + ARMPMU_NR_ATTR_GROUPS = 4,
1: +};
1: +
1: +struct clock_read_data {
1: + u64 epoch_ns;
1: + u64 epoch_cyc;
1: + u64 sched_clock_mask;
1: + u64 (*read_sched_clock)();
1: + u32 mult;
1: + u32 shift;
1: +};
1: +
1: +struct armv8pmu_probe_info {
1: + struct arm_pmu *pmu;
1: + bool present;
1: +};
1: +
1: +enum hw_breakpoint_ops {
1: + HW_BREAKPOINT_INSTALL = 0,
1: + HW_BREAKPOINT_UNINSTALL = 1,
1: + HW_BREAKPOINT_RESTORE = 2,
1: +};
1: +
1: +struct cpu_suspend_ctx {
1: + u64 ctx_regs[13];
1: + u64 sp;
1: +};
1: +
1: +struct sleep_stack_data {
1: + struct cpu_suspend_ctx system_regs;
1: + long unsigned int callee_saved_regs[12];
1: +};
1: +
1: +typedef void *acpi_handle;
1: +
1: +typedef u64 phys_cpuid_t;
1: +
1: +struct thermal_cooling_device_ops;
1: +
1: +struct thermal_cooling_device {
1: + int id;
1: + char type[20];
1: + struct device device;
1: + struct device_node *np;
1: + void *devdata;
1: + void *stats;
1: + const struct thermal_cooling_device_ops *ops;
1: + bool updated;
1: + struct mutex lock;
1: + struct list_head thermal_instances;
1: + struct list_head node;
1: +};
1: +
1: +struct thermal_cooling_device_ops {
1: + int (*get_max_state)(struct thermal_cooling_device *, long unsigned int *);
1: + int (*get_cur_state)(struct thermal_cooling_device *, long unsigned int *);
1: + int (*set_cur_state)(struct thermal_cooling_device *, long unsigned int);
1: + int (*get_requested_power)(struct thermal_cooling_device *, u32 *);
1: + int (*state2power)(struct thermal_cooling_device *, long unsigned int, u32 *);
1: + int (*power2state)(struct thermal_cooling_device *, u32, long unsigned int *);
1: +};
1: +
1: +struct acpi_processor_cx {
1: + u8 valid;
1: + u8 type;
1: + u32 address;
1: + u8 entry_method;
1: + u8 index;
1: + u32 latency;
1: + u8 bm_sts_skip;
1: + char desc[32];
1: +};
1: +
1: +struct acpi_lpi_state {
1: + u32 min_residency;
1: + u32 wake_latency;
1: + u32 flags;
1: + u32 arch_flags;
1: + u32 res_cnt_freq;
1: + u32 enable_parent_state;
1: + u64 address;
1: + u8 index;
1: + u8 entry_method;
1: + char desc[32];
1: +};
1: +
1: +struct acpi_processor_power {
1: + int count;
1: + union {
1: + struct acpi_processor_cx states[8];
1: + struct acpi_lpi_state lpi_states[8];
1: + };
1: + int timer_broadcast_on_state;
1: +};
1: +
1: +struct acpi_psd_package {
1: + u64 num_entries;
1: + u64 revision;
1: + u64 domain;
1: + u64 coord_type;
1: + u64 num_processors;
1: +};
1: +
1: +struct acpi_pct_register {
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 reserved;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct acpi_processor_px {
1: + u64 core_frequency;
1: + u64 power;
1: + u64 transition_latency;
1: + u64 bus_master_latency;
1: + u64 control;
1: + u64 status;
1: +};
1: +
1: +struct acpi_processor_performance {
1: + unsigned int state;
1: + unsigned int platform_limit;
1: + struct acpi_pct_register control_register;
1: + struct acpi_pct_register status_register;
1: + short: 16;
1: + unsigned int state_count;
1: + int: 32;
1: + struct acpi_processor_px *states;
1: + struct acpi_psd_package domain_info;
1: + cpumask_var_t shared_cpu_map;
1: + unsigned int shared_type;
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +struct acpi_tsd_package {
1: + u64 num_entries;
1: + u64 revision;
1: + u64 domain;
1: + u64 coord_type;
1: + u64 num_processors;
1: +};
1: +
1: +struct acpi_processor_tx_tss {
1: + u64 freqpercentage;
1: + u64 power;
1: + u64 transition_latency;
1: + u64 control;
1: + u64 status;
1: +};
1: +
1: +struct acpi_processor_tx {
1: + u16 power;
1: + u16 performance;
1: +};
1: +
1: +struct acpi_processor;
1: +
1: +struct acpi_processor_throttling {
1: + unsigned int state;
1: + unsigned int platform_limit;
1: + struct acpi_pct_register control_register;
1: + struct acpi_pct_register status_register;
1: + short: 16;
1: + unsigned int state_count;
1: + int: 32;
1: + struct acpi_processor_tx_tss *states_tss;
1: + struct acpi_tsd_package domain_info;
1: + cpumask_var_t shared_cpu_map;
1: + int (*acpi_processor_get_throttling)(struct acpi_processor *);
1: + int (*acpi_processor_set_throttling)(struct acpi_processor *, int, bool);
1: + u32 address;
1: + u8 duty_offset;
1: + u8 duty_width;
1: + u8 tsd_valid_flag;
1: + char: 8;
1: + unsigned int shared_type;
1: + struct acpi_processor_tx states[16];
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +struct acpi_processor_flags {
1: + u8 power: 1;
1: + u8 performance: 1;
1: + u8 throttling: 1;
1: + u8 limit: 1;
1: + u8 bm_control: 1;
1: + u8 bm_check: 1;
1: + u8 has_cst: 1;
1: + u8 has_lpi: 1;
1: + u8 power_setup_done: 1;
1: + u8 bm_rld_set: 1;
1: + u8 need_hotplug_init: 1;
1: +};
1: +
1: +struct acpi_processor_lx {
1: + int px;
1: + int tx;
1: +};
1: +
1: +struct acpi_processor_limit {
1: + struct acpi_processor_lx state;
1: + struct acpi_processor_lx thermal;
1: + struct acpi_processor_lx user;
1: +};
1: +
1: +struct acpi_processor {
1: + acpi_handle handle;
1: + u32 acpi_id;
1: + phys_cpuid_t phys_id;
1: + u32 id;
1: + u32 pblk;
1: + int performance_platform_limit;
1: + int throttling_platform_limit;
1: + struct acpi_processor_flags flags;
1: + struct acpi_processor_power power;
1: + struct acpi_processor_performance *performance;
1: + struct acpi_processor_throttling throttling;
1: + struct acpi_processor_limit limit;
1: + struct thermal_cooling_device *cdev;
1: + struct device *dev;
1: + struct freq_qos_request perflib_req;
1: + struct freq_qos_request thermal_req;
1: +};
1: +
1: +enum jump_label_type {
1: + JUMP_LABEL_NOP = 0,
1: + JUMP_LABEL_JMP = 1,
1: +};
1: +
1: +struct die_args {
1: + struct pt_regs *regs;
1: + const char *str;
1: + long int err;
1: + int trapnr;
1: + int signr;
1: +};
1: +
1: +enum kgdb_bptype {
1: + BP_BREAKPOINT = 0,
1: + BP_HARDWARE_BREAKPOINT = 1,
1: + BP_WRITE_WATCHPOINT = 2,
1: + BP_READ_WATCHPOINT = 3,
1: + BP_ACCESS_WATCHPOINT = 4,
1: + BP_POKE_BREAKPOINT = 5,
1: +};
1: +
1: +enum kgdb_bpstate {
1: + BP_UNDEFINED = 0,
1: + BP_REMOVED = 1,
1: + BP_SET = 2,
1: + BP_ACTIVE = 3,
1: +};
1: +
1: +struct kgdb_bkpt {
1: + long unsigned int bpt_addr;
1: + unsigned char saved_instr[4];
1: + enum kgdb_bptype type;
1: + enum kgdb_bpstate state;
1: +};
1: +
1: +struct dbg_reg_def_t {
1: + char *name;
1: + int size;
1: + int offset;
1: +};
1: +
1: +struct kgdb_arch {
1: + unsigned char gdb_bpt_instr[4];
1: + long unsigned int flags;
1: + int (*set_breakpoint)(long unsigned int, char *);
1: + int (*remove_breakpoint)(long unsigned int, char *);
1: + int (*set_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + int (*remove_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + void (*disable_hw_break)(struct pt_regs *);
1: + void (*remove_all_hw_break)();
1: + void (*correct_hw_break)();
1: + void (*enable_nmi)(bool);
1: +};
1: +
1: +struct screen_info {
1: + __u8 orig_x;
1: + __u8 orig_y;
1: + __u16 ext_mem_k;
1: + __u16 orig_video_page;
1: + __u8 orig_video_mode;
1: + __u8 orig_video_cols;
1: + __u8 flags;
1: + __u8 unused2;
1: + __u16 orig_video_ega_bx;
1: + __u16 unused3;
1: + __u8 orig_video_lines;
1: + __u8 orig_video_isVGA;
1: + __u16 orig_video_points;
1: + __u16 lfb_width;
1: + __u16 lfb_height;
1: + __u16 lfb_depth;
1: + __u32 lfb_base;
1: + __u32 lfb_size;
1: + __u16 cl_magic;
1: + __u16 cl_offset;
1: + __u16 lfb_linelength;
1: + __u8 red_size;
1: + __u8 red_pos;
1: + __u8 green_size;
1: + __u8 green_pos;
1: + __u8 blue_size;
1: + __u8 blue_pos;
1: + __u8 rsvd_size;
1: + __u8 rsvd_pos;
1: + __u16 vesapm_seg;
1: + __u16 vesapm_off;
1: + __u16 pages;
1: + __u16 vesa_attributes;
1: + __u32 capabilities;
1: + __u32 ext_lfb_base;
1: + __u8 _reserved[2];
1: +} __attribute__((packed));
1: +
1: +struct pci_device_id {
1: + __u32 vendor;
1: + __u32 device;
1: + __u32 subvendor;
1: + __u32 subdevice;
1: + __u32 class;
1: + __u32 class_mask;
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct resource_entry {
1: + struct list_head node;
1: + struct resource *res;
1: + resource_size_t offset;
1: + struct resource __res;
1: +};
1: +
1: +typedef u64 acpi_io_address;
1: +
1: +typedef u32 acpi_object_type;
1: +
1: +union acpi_object {
1: + acpi_object_type type;
1: + struct {
1: + acpi_object_type type;
1: + u64 value;
1: + } integer;
1: + struct {
1: + acpi_object_type type;
1: + u32 length;
1: + char *pointer;
1: + } string;
1: + struct {
1: + acpi_object_type type;
1: + u32 length;
1: + u8 *pointer;
1: + } buffer;
1: + struct {
1: + acpi_object_type type;
1: + u32 count;
1: + union acpi_object *elements;
1: + } package;
1: + struct {
1: + acpi_object_type type;
1: + acpi_object_type actual_type;
1: + acpi_handle handle;
1: + } reference;
1: + struct {
1: + acpi_object_type type;
1: + u32 proc_id;
1: + acpi_io_address pblk_address;
1: + u32 pblk_length;
1: + } processor;
1: + struct {
1: + acpi_object_type type;
1: + u32 system_level;
1: + u32 resource_order;
1: + } power_resource;
1: +};
1: +
1: +struct acpi_device;
1: +
1: +struct acpi_hotplug_profile {
1: + struct kobject kobj;
1: + int (*scan_dependent)(struct acpi_device *);
1: + void (*notify_online)(struct acpi_device *);
1: + bool enabled: 1;
1: + bool demand_offline: 1;
1: +};
1: +
1: +struct acpi_device_status {
1: + u32 present: 1;
1: + u32 enabled: 1;
1: + u32 show_in_ui: 1;
1: + u32 functional: 1;
1: + u32 battery_present: 1;
1: + u32 reserved: 27;
1: +};
1: +
1: +struct acpi_device_flags {
1: + u32 dynamic_status: 1;
1: + u32 removable: 1;
1: + u32 ejectable: 1;
1: + u32 power_manageable: 1;
1: + u32 match_driver: 1;
1: + u32 initialized: 1;
1: + u32 visited: 1;
1: + u32 hotplug_notify: 1;
1: + u32 is_dock_station: 1;
1: + u32 of_compatible_ok: 1;
1: + u32 coherent_dma: 1;
1: + u32 cca_seen: 1;
1: + u32 enumeration_by_parent: 1;
1: + u32 reserved: 19;
1: +};
1: +
1: +typedef char acpi_bus_id[8];
1: +
1: +struct acpi_pnp_type {
1: + u32 hardware_id: 1;
1: + u32 bus_address: 1;
1: + u32 platform_id: 1;
1: + u32 reserved: 29;
1: +};
1: +
1: +typedef u64 acpi_bus_address;
1: +
1: +typedef char acpi_device_name[40];
1: +
1: +typedef char acpi_device_class[20];
1: +
1: +struct acpi_device_pnp {
1: + acpi_bus_id bus_id;
1: + struct acpi_pnp_type type;
1: + acpi_bus_address bus_address;
1: + char *unique_id;
1: + struct list_head ids;
1: + acpi_device_name device_name;
1: + acpi_device_class device_class;
1: + union acpi_object *str_obj;
1: +};
1: +
1: +struct acpi_device_power_flags {
1: + u32 explicit_get: 1;
1: + u32 power_resources: 1;
1: + u32 inrush_current: 1;
1: + u32 power_removed: 1;
1: + u32 ignore_parent: 1;
1: + u32 dsw_present: 1;
1: + u32 reserved: 26;
1: +};
1: +
1: +struct acpi_device_power_state {
1: + struct {
1: + u8 valid: 1;
1: + u8 explicit_set: 1;
1: + u8 reserved: 6;
1: + } flags;
1: + int power;
1: + int latency;
1: + struct list_head resources;
1: +};
1: +
1: +struct acpi_device_power {
1: + int state;
1: + struct acpi_device_power_flags flags;
1: + struct acpi_device_power_state states[5];
1: +};
1: +
1: +struct acpi_device_wakeup_flags {
1: + u8 valid: 1;
1: + u8 notifier_present: 1;
1: +};
1: +
1: +struct acpi_device_wakeup_context {
1: + void (*func)(struct acpi_device_wakeup_context *);
1: + struct device *dev;
1: +};
1: +
1: +struct acpi_device_wakeup {
1: + acpi_handle gpe_device;
1: + u64 gpe_number;
1: + u64 sleep_state;
1: + struct list_head resources;
1: + struct acpi_device_wakeup_flags flags;
1: + struct acpi_device_wakeup_context context;
1: + struct wakeup_source *ws;
1: + int prepare_count;
1: + int enable_count;
1: +};
1: +
1: +struct acpi_device_perf_flags {
1: + u8 reserved: 8;
1: +};
1: +
1: +struct acpi_device_perf_state;
1: +
1: +struct acpi_device_perf {
1: + int state;
1: + struct acpi_device_perf_flags flags;
1: + int state_count;
1: + struct acpi_device_perf_state *states;
1: +};
1: +
1: +struct acpi_device_dir {
1: + struct proc_dir_entry *entry;
1: +};
1: +
1: +struct acpi_device_data {
1: + const union acpi_object *pointer;
1: + struct list_head properties;
1: + const union acpi_object *of_compatible;
1: + struct list_head subnodes;
1: +};
1: +
1: +struct acpi_scan_handler;
1: +
1: +struct acpi_hotplug_context;
1: +
1: +struct acpi_driver;
1: +
1: +struct acpi_gpio_mapping;
1: +
1: +struct acpi_device {
1: + int device_type;
1: + acpi_handle handle;
1: + struct fwnode_handle fwnode;
1: + struct acpi_device *parent;
1: + struct list_head children;
1: + struct list_head node;
1: + struct list_head wakeup_list;
1: + struct list_head del_list;
1: + struct acpi_device_status status;
1: + struct acpi_device_flags flags;
1: + struct acpi_device_pnp pnp;
1: + struct acpi_device_power power;
1: + struct acpi_device_wakeup wakeup;
1: + struct acpi_device_perf performance;
1: + struct acpi_device_dir dir;
1: + struct acpi_device_data data;
1: + struct acpi_scan_handler *handler;
1: + struct acpi_hotplug_context *hp;
1: + struct acpi_driver *driver;
1: + const struct acpi_gpio_mapping *driver_gpios;
1: + void *driver_data;
1: + struct device dev;
1: + unsigned int physical_node_count;
1: + unsigned int dep_unmet;
1: + struct list_head physical_node_list;
1: + struct mutex physical_node_lock;
1: + void (*remove)(struct acpi_device *);
1: +};
1: +
1: +struct acpi_scan_handler {
1: + const struct acpi_device_id *ids;
1: + struct list_head list_node;
1: + bool (*match)(const char *, const struct acpi_device_id **);
1: + int (*attach)(struct acpi_device *, const struct acpi_device_id *);
1: + void (*detach)(struct acpi_device *);
1: + void (*bind)(struct device *);
1: + void (*unbind)(struct device *);
1: + struct acpi_hotplug_profile hotplug;
1: +};
1: +
1: +struct acpi_hotplug_context {
1: + struct acpi_device *self;
1: + int (*notify)(struct acpi_device *, u32);
1: + void (*uevent)(struct acpi_device *, u32);
1: + void (*fixup)(struct acpi_device *);
1: +};
1: +
1: +typedef int (*acpi_op_add)(struct acpi_device *);
1: +
1: +typedef int (*acpi_op_remove)(struct acpi_device *);
1: +
1: +typedef void (*acpi_op_notify)(struct acpi_device *, u32);
1: +
1: +struct acpi_device_ops {
1: + acpi_op_add add;
1: + acpi_op_remove remove;
1: + acpi_op_notify notify;
1: +};
1: +
1: +struct acpi_driver {
1: + char name[80];
1: + char class[80];
1: + const struct acpi_device_id *ids;
1: + unsigned int flags;
1: + struct acpi_device_ops ops;
1: + struct device_driver drv;
1: + struct module *owner;
1: +};
1: +
1: +struct acpi_device_perf_state {
1: + struct {
1: + u8 valid: 1;
1: + u8 reserved: 7;
1: + } flags;
1: + u8 power;
1: + u8 performance;
1: + int latency;
1: +};
1: +
1: +struct acpi_gpio_params;
1: +
1: +struct acpi_gpio_mapping {
1: + const char *name;
1: + const struct acpi_gpio_params *data;
1: + unsigned int size;
1: + unsigned int quirks;
1: +};
1: +
1: +struct pci_bus;
1: +
1: +struct acpi_pci_root {
1: + struct acpi_device *device;
1: + struct pci_bus *bus;
1: + u16 segment;
1: + struct resource secondary;
1: + u32 osc_support_set;
1: + u32 osc_control_set;
1: + phys_addr_t mcfg_addr;
1: +};
1: +
1: +typedef short unsigned int pci_bus_flags_t;
1: +
1: +struct pci_dev;
1: +
1: +struct pci_ops;
1: +
1: +struct msi_controller;
1: +
1: +struct pci_bus {
1: + struct list_head node;
1: + struct pci_bus *parent;
1: + struct list_head children;
1: + struct list_head devices;
1: + struct pci_dev *self;
1: + struct list_head slots;
1: + struct resource *resource[4];
1: + struct list_head resources;
1: + struct resource busn_res;
1: + struct pci_ops *ops;
1: + struct msi_controller *msi;
1: + void *sysdata;
1: + struct proc_dir_entry *procdir;
1: + unsigned char number;
1: + unsigned char primary;
1: + unsigned char max_bus_speed;
1: + unsigned char cur_bus_speed;
1: + int domain_nr;
1: + char name[48];
1: + short unsigned int bridge_ctl;
1: + pci_bus_flags_t bus_flags;
1: + struct device *bridge;
1: + struct device dev;
1: + struct bin_attribute *legacy_io;
1: + struct bin_attribute *legacy_mem;
1: + unsigned int is_added: 1;
1: +};
1: +
1: +struct acpi_gpio_params {
1: + unsigned int crs_entry_index;
1: + unsigned int line_index;
1: + bool active_low;
1: +};
1: +
1: +struct hotplug_slot;
1: +
1: +struct pci_slot {
1: + struct pci_bus *bus;
1: + struct list_head list;
1: + struct hotplug_slot *hotplug;
1: + unsigned char number;
1: + struct kobject kobj;
1: +};
1: +
1: +enum {
1: + PCI_STD_RESOURCES = 0,
1: + PCI_STD_RESOURCE_END = 5,
1: + PCI_ROM_RESOURCE = 6,
1: + PCI_IOV_RESOURCES = 7,
1: + PCI_IOV_RESOURCE_END = 12,
1: + PCI_BRIDGE_RESOURCES = 13,
1: + PCI_BRIDGE_RESOURCE_END = 16,
1: + PCI_NUM_RESOURCES = 17,
1: + DEVICE_COUNT_RESOURCE = 17,
1: +};
1: +
1: +typedef int pci_power_t;
1: +
1: +typedef unsigned int pci_channel_state_t;
1: +
1: +typedef unsigned int pcie_reset_state_t;
1: +
1: +typedef short unsigned int pci_dev_flags_t;
1: +
1: +struct aer_stats;
1: +
1: +struct pci_driver;
1: +
1: +struct pcie_link_state;
1: +
1: +struct pci_vpd;
1: +
1: +struct pci_sriov;
1: +
1: +struct pci_dev {
1: + struct list_head bus_list;
1: + struct pci_bus *bus;
1: + struct pci_bus *subordinate;
1: + void *sysdata;
1: + struct proc_dir_entry *procent;
1: + struct pci_slot *slot;
1: + unsigned int devfn;
1: + short unsigned int vendor;
1: + short unsigned int device;
1: + short unsigned int subsystem_vendor;
1: + short unsigned int subsystem_device;
1: + unsigned int class;
1: + u8 revision;
1: + u8 hdr_type;
1: + u16 aer_cap;
1: + struct aer_stats *aer_stats;
1: + u8 pcie_cap;
1: + u8 msi_cap;
1: + u8 msix_cap;
1: + u8 pcie_mpss: 3;
1: + u8 rom_base_reg;
1: + u8 pin;
1: + u16 pcie_flags_reg;
1: + long unsigned int *dma_alias_mask;
1: + struct pci_driver *driver;
1: + u64 dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + pci_power_t current_state;
1: + unsigned int imm_ready: 1;
1: + u8 pm_cap;
1: + unsigned int pme_support: 5;
1: + unsigned int pme_poll: 1;
1: + unsigned int d1_support: 1;
1: + unsigned int d2_support: 1;
1: + unsigned int no_d1d2: 1;
1: + unsigned int no_d3cold: 1;
1: + unsigned int bridge_d3: 1;
1: + unsigned int d3cold_allowed: 1;
1: + unsigned int mmio_always_on: 1;
1: + unsigned int wakeup_prepared: 1;
1: + unsigned int runtime_d3cold: 1;
1: + unsigned int skip_bus_pm: 1;
1: + unsigned int ignore_hotplug: 1;
1: + unsigned int hotplug_user_indicators: 1;
1: + unsigned int clear_retrain_link: 1;
1: + unsigned int d3hot_delay;
1: + unsigned int d3cold_delay;
1: + struct pcie_link_state *link_state;
1: + unsigned int ltr_path: 1;
1: + int l1ss;
1: + unsigned int eetlp_prefix_path: 1;
1: + pci_channel_state_t error_state;
1: + struct device dev;
1: + int cfg_size;
1: + unsigned int irq;
1: + struct resource resource[17];
1: + bool match_driver;
1: + unsigned int transparent: 1;
1: + unsigned int io_window: 1;
1: + unsigned int pref_window: 1;
1: + unsigned int pref_64_window: 1;
1: + unsigned int multifunction: 1;
1: + unsigned int is_busmaster: 1;
1: + unsigned int no_msi: 1;
1: + unsigned int no_64bit_msi: 1;
1: + unsigned int block_cfg_access: 1;
1: + unsigned int broken_parity_status: 1;
1: + unsigned int irq_reroute_variant: 2;
1: + unsigned int msi_enabled: 1;
1: + unsigned int msix_enabled: 1;
1: + unsigned int ari_enabled: 1;
1: + unsigned int ats_enabled: 1;
1: + unsigned int pasid_enabled: 1;
1: + unsigned int pri_enabled: 1;
1: + unsigned int is_managed: 1;
1: + unsigned int needs_freset: 1;
1: + unsigned int state_saved: 1;
1: + unsigned int is_physfn: 1;
1: + unsigned int is_virtfn: 1;
1: + unsigned int reset_fn: 1;
1: + unsigned int is_hotplug_bridge: 1;
1: + unsigned int shpc_managed: 1;
1: + unsigned int is_thunderbolt: 1;
1: + unsigned int untrusted: 1;
1: + unsigned int external_facing: 1;
1: + unsigned int broken_intx_masking: 1;
1: + unsigned int io_window_1k: 1;
1: + unsigned int irq_managed: 1;
1: + unsigned int non_compliant_bars: 1;
1: + unsigned int is_probed: 1;
1: + unsigned int link_active_reporting: 1;
1: + unsigned int no_vf_scan: 1;
1: + unsigned int no_command_memory: 1;
1: + pci_dev_flags_t dev_flags;
1: + atomic_t enable_cnt;
1: + u32 saved_config_space[16];
1: + struct hlist_head saved_cap_space;
1: + struct bin_attribute *rom_attr;
1: + int rom_attr_enabled;
1: + struct bin_attribute *res_attr[17];
1: + struct bin_attribute *res_attr_wc[17];
1: + unsigned int broken_cmd_compl: 1;
1: + unsigned int ptm_root: 1;
1: + unsigned int ptm_enabled: 1;
1: + u8 ptm_granularity;
1: + const struct attribute_group **msi_irq_groups;
1: + struct pci_vpd *vpd;
1: + u16 dpc_cap;
1: + unsigned int dpc_rp_extensions: 1;
1: + u8 dpc_rp_log_size;
1: + union {
1: + struct pci_sriov *sriov;
1: + struct pci_dev *physfn;
1: + };
1: + u16 ats_cap;
1: + u8 ats_stu;
1: + u16 pri_cap;
1: + u32 pri_reqs_alloc;
1: + unsigned int pasid_required: 1;
1: + u16 pasid_cap;
1: + u16 pasid_features;
1: + u16 acs_cap;
1: + phys_addr_t rom;
1: + size_t romlen;
1: + char *driver_override;
1: + long unsigned int priv_flags;
1: +};
1: +
1: +struct pci_dynids {
1: + spinlock_t lock;
1: + struct list_head list;
1: +};
1: +
1: +struct pci_error_handlers;
1: +
1: +struct pci_driver {
1: + struct list_head node;
1: + const char *name;
1: + const struct pci_device_id *id_table;
1: + int (*probe)(struct pci_dev *, const struct pci_device_id *);
1: + void (*remove)(struct pci_dev *);
1: + int (*suspend)(struct pci_dev *, pm_message_t);
1: + int (*resume)(struct pci_dev *);
1: + void (*shutdown)(struct pci_dev *);
1: + int (*sriov_configure)(struct pci_dev *, int);
1: + const struct pci_error_handlers *err_handler;
1: + const struct attribute_group **groups;
1: + struct device_driver driver;
1: + struct pci_dynids dynids;
1: +};
1: +
1: +struct pci_host_bridge {
1: + struct device dev;
1: + struct pci_bus *bus;
1: + struct pci_ops *ops;
1: + struct pci_ops *child_ops;
1: + void *sysdata;
1: + int busnr;
1: + struct list_head windows;
1: + struct list_head dma_ranges;
1: + u8 (*swizzle_irq)(struct pci_dev *, u8 *);
1: + int (*map_irq)(const struct pci_dev *, u8, u8);
1: + void (*release_fn)(struct pci_host_bridge *);
1: + void *release_data;
1: + struct msi_controller *msi;
1: + unsigned int ignore_reset_delay: 1;
1: + unsigned int no_ext_tags: 1;
1: + unsigned int native_aer: 1;
1: + unsigned int native_pcie_hotplug: 1;
1: + unsigned int native_shpc_hotplug: 1;
1: + unsigned int native_pme: 1;
1: + unsigned int native_ltr: 1;
1: + unsigned int native_dpc: 1;
1: + unsigned int preserve_config: 1;
1: + unsigned int size_windows: 1;
1: + resource_size_t (*align_resource)(struct pci_dev *, const struct resource *, resource_size_t, resource_size_t, resource_size_t);
1: + long: 64;
1: + long unsigned int private[0];
1: +};
1: +
1: +struct pci_ops {
1: + int (*add_bus)(struct pci_bus *);
1: + void (*remove_bus)(struct pci_bus *);
1: + void * (*map_bus)(struct pci_bus *, unsigned int, int);
1: + int (*read)(struct pci_bus *, unsigned int, int, int, u32 *);
1: + int (*write)(struct pci_bus *, unsigned int, int, int, u32);
1: +};
1: +
1: +typedef unsigned int pci_ers_result_t;
1: +
1: +struct pci_error_handlers {
1: + pci_ers_result_t (*error_detected)(struct pci_dev *, pci_channel_state_t);
1: + pci_ers_result_t (*mmio_enabled)(struct pci_dev *);
1: + pci_ers_result_t (*slot_reset)(struct pci_dev *);
1: + void (*reset_prepare)(struct pci_dev *);
1: + void (*reset_done)(struct pci_dev *);
1: + void (*resume)(struct pci_dev *);
1: +};
1: +
1: +struct acpi_pci_root_ops;
1: +
1: +struct acpi_pci_root_info {
1: + struct acpi_pci_root *root;
1: + struct acpi_device *bridge;
1: + struct acpi_pci_root_ops *ops;
1: + struct list_head resources;
1: + char name[16];
1: +};
1: +
1: +struct acpi_pci_root_ops {
1: + struct pci_ops *pci_ops;
1: + int (*init_info)(struct acpi_pci_root_info *);
1: + void (*release_info)(struct acpi_pci_root_info *);
1: + int (*prepare_resources)(struct acpi_pci_root_info *);
1: +};
1: +
1: +struct pci_config_window;
1: +
1: +struct pci_ecam_ops {
1: + unsigned int bus_shift;
1: + struct pci_ops pci_ops;
1: + int (*init)(struct pci_config_window *);
1: +};
1: +
1: +struct pci_config_window {
1: + struct resource res;
1: + struct resource busr;
1: + void *priv;
1: + const struct pci_ecam_ops *ops;
1: + union {
1: + void *win;
1: + void **winp;
1: + };
1: + struct device *parent;
1: +};
1: +
1: +struct acpi_pci_generic_root_info {
1: + struct acpi_pci_root_info common;
1: + struct pci_config_window *cfg;
1: +};
1: +
1: +struct trace_event_raw_instruction_emulation {
1: + struct trace_entry ent;
1: + u32 __data_loc_instr;
1: + u64 addr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_instruction_emulation {
1: + u32 instr;
1: +};
1: +
1: +typedef void (*btf_trace_instruction_emulation)(void *, const char *, u64);
1: +
1: +enum insn_emulation_mode {
1: + INSN_UNDEF = 0,
1: + INSN_EMULATE = 1,
1: + INSN_HW = 2,
1: +};
1: +
1: +enum legacy_insn_status {
1: + INSN_DEPRECATED = 0,
1: + INSN_OBSOLETE = 1,
1: +};
1: +
1: +struct insn_emulation_ops {
1: + const char *name;
1: + enum legacy_insn_status status;
1: + struct undef_hook *hooks;
1: + int (*set_hw_mode)(bool);
1: +};
1: +
1: +struct insn_emulation {
1: + struct list_head node;
1: + struct insn_emulation_ops *ops;
1: + int current_mode;
1: + int min;
1: + int max;
1: +};
1: +
1: +typedef u64 acpi_size;
1: +
1: +typedef u64 acpi_physical_address;
1: +
1: +typedef u32 acpi_status;
1: +
1: +struct acpi_table_header {
1: + char signature[4];
1: + u32 length;
1: + u8 revision;
1: + u8 checksum;
1: + char oem_id[6];
1: + char oem_table_id[8];
1: + u32 oem_revision;
1: + char asl_compiler_id[4];
1: + u32 asl_compiler_revision;
1: +};
1: +
1: +struct acpi_generic_address {
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_width;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct acpi_table_fadt {
1: + struct acpi_table_header header;
1: + u32 facs;
1: + u32 dsdt;
1: + u8 model;
1: + u8 preferred_profile;
1: + u16 sci_interrupt;
1: + u32 smi_command;
1: + u8 acpi_enable;
1: + u8 acpi_disable;
1: + u8 s4_bios_request;
1: + u8 pstate_control;
1: + u32 pm1a_event_block;
1: + u32 pm1b_event_block;
1: + u32 pm1a_control_block;
1: + u32 pm1b_control_block;
1: + u32 pm2_control_block;
1: + u32 pm_timer_block;
1: + u32 gpe0_block;
1: + u32 gpe1_block;
1: + u8 pm1_event_length;
1: + u8 pm1_control_length;
1: + u8 pm2_control_length;
1: + u8 pm_timer_length;
1: + u8 gpe0_block_length;
1: + u8 gpe1_block_length;
1: + u8 gpe1_base;
1: + u8 cst_control;
1: + u16 c2_latency;
1: + u16 c3_latency;
1: + u16 flush_size;
1: + u16 flush_stride;
1: + u8 duty_offset;
1: + u8 duty_width;
1: + u8 day_alarm;
1: + u8 month_alarm;
1: + u8 century;
1: + u16 boot_flags;
1: + u8 reserved;
1: + u32 flags;
1: + struct acpi_generic_address reset_register;
1: + u8 reset_value;
1: + u16 arm_boot_flags;
1: + u8 minor_revision;
1: + u64 Xfacs;
1: + u64 Xdsdt;
1: + struct acpi_generic_address xpm1a_event_block;
1: + struct acpi_generic_address xpm1b_event_block;
1: + struct acpi_generic_address xpm1a_control_block;
1: + struct acpi_generic_address xpm1b_control_block;
1: + struct acpi_generic_address xpm2_control_block;
1: + struct acpi_generic_address xpm_timer_block;
1: + struct acpi_generic_address xgpe0_block;
1: + struct acpi_generic_address xgpe1_block;
1: + struct acpi_generic_address sleep_control;
1: + struct acpi_generic_address sleep_status;
1: + u64 hypervisor_id;
1: +} __attribute__((packed));
1: +
1: +enum acpi_srat_type {
1: + ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
1: + ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
1: + ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
1: + ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
1: + ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4,
1: + ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5,
1: + ACPI_SRAT_TYPE_RESERVED = 6,
1: +};
1: +
1: +struct acpi_srat_gicc_affinity {
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u32 acpi_processor_uid;
1: + u32 flags;
1: + u32 clock_domain;
1: +} __attribute__((packed));
1: +
1: +struct parking_protocol_mailbox {
1: + __le32 cpu_id;
1: + __le32 reserved;
1: + __le64 entry_point;
1: +};
1: +
1: +struct cpu_mailbox_entry {
1: + struct parking_protocol_mailbox *mailbox;
1: + phys_addr_t mailbox_addr;
1: + u8 version;
1: + u8 gic_cpu_id;
1: +};
1: +
1: +enum {
1: + MEMREMAP_WB = 1,
1: + MEMREMAP_WT = 2,
1: + MEMREMAP_WC = 4,
1: + MEMREMAP_ENC = 8,
1: + MEMREMAP_DEC = 16,
1: +};
1: +
1: +struct pv_time_ops {
1: + long long unsigned int (*steal_clock)(int);
1: +};
1: +
1: +struct paravirt_patch_template {
1: + struct pv_time_ops time;
1: +};
1: +
1: +struct pvclock_vcpu_stolen_time {
1: + __le32 revision;
1: + __le32 attributes;
1: + __le64 stolen_time;
1: + u8 padding[48];
1: +};
1: +
1: +struct pv_time_stolen_time_region {
1: + struct pvclock_vcpu_stolen_time *kaddr;
1: +};
1: +
1: +typedef u64 p4dval_t;
1: +
1: +typedef struct {
1: + pgd_t pgd;
1: +} p4d_t;
1: +
1: +enum pageflags {
1: + PG_locked = 0,
1: + PG_referenced = 1,
1: + PG_uptodate = 2,
1: + PG_dirty = 3,
1: + PG_lru = 4,
1: + PG_active = 5,
1: + PG_workingset = 6,
1: + PG_waiters = 7,
1: + PG_error = 8,
1: + PG_slab = 9,
1: + PG_owner_priv_1 = 10,
1: + PG_arch_1 = 11,
1: + PG_reserved = 12,
1: + PG_private = 13,
1: + PG_private_2 = 14,
1: + PG_writeback = 15,
1: + PG_head = 16,
1: + PG_mappedtodisk = 17,
1: + PG_reclaim = 18,
1: + PG_swapbacked = 19,
1: + PG_unevictable = 20,
1: + PG_mlocked = 21,
1: + PG_hwpoison = 22,
1: + PG_young = 23,
1: + PG_idle = 24,
1: + PG_arch_2 = 25,
1: + __NR_PAGEFLAGS = 26,
1: + PG_checked = 10,
1: + PG_swapcache = 10,
1: + PG_fscache = 14,
1: + PG_pinned = 10,
1: + PG_savepinned = 3,
1: + PG_foreign = 10,
1: + PG_xen_remapped = 10,
1: + PG_slob_free = 13,
1: + PG_double_map = 6,
1: + PG_isolated = 18,
1: + PG_reported = 2,
1: +};
1: +
1: +struct mem_section_usage {
1: + long unsigned int subsection_map[8];
1: + long unsigned int pageblock_flags[0];
1: +};
1: +
1: +struct page_ext;
1: +
1: +struct mem_section {
1: + long unsigned int section_mem_map;
1: + struct mem_section_usage *usage;
1: + struct page_ext *page_ext;
1: + long unsigned int pad;
1: +};
1: +
1: +struct page_ext {
1: + long unsigned int flags;
1: +};
1: +
1: +struct xa_node {
1: + unsigned char shift;
1: + unsigned char offset;
1: + unsigned char count;
1: + unsigned char nr_values;
1: + struct xa_node *parent;
1: + struct xarray *array;
1: + union {
1: + struct list_head private_list;
1: + struct callback_head callback_head;
1: + };
1: + void *slots[64];
1: + union {
1: + long unsigned int tags[3];
1: + long unsigned int marks[3];
1: + };
1: +};
1: +
1: +typedef void (*xa_update_node_t)(struct xa_node *);
1: +
1: +struct xa_state {
1: + struct xarray *xa;
1: + long unsigned int xa_index;
1: + unsigned char xa_shift;
1: + unsigned char xa_sibs;
1: + unsigned char xa_offset;
1: + unsigned char xa_pad;
1: + struct xa_node *xa_node;
1: + struct xa_node *xa_alloc;
1: + xa_update_node_t xa_update;
1: +};
1: +
1: +struct pbe {
1: + void *address;
1: + void *orig_address;
1: + struct pbe *next;
1: +};
1: +
1: +struct arch_hibernate_hdr_invariants {
1: + char uts_version[65];
1: +};
1: +
1: +struct arch_hibernate_hdr {
1: + struct arch_hibernate_hdr_invariants invariants;
1: + phys_addr_t ttbr1_el1;
1: + void (*reenter_kernel)();
1: + phys_addr_t __hyp_stub_vectors;
1: + u64 sleep_cpu_mpidr;
1: +};
1: +
1: +enum {
1: + IRQD_TRIGGER_MASK = 15,
1: + IRQD_SETAFFINITY_PENDING = 256,
1: + IRQD_ACTIVATED = 512,
1: + IRQD_NO_BALANCING = 1024,
1: + IRQD_PER_CPU = 2048,
1: + IRQD_AFFINITY_SET = 4096,
1: + IRQD_LEVEL = 8192,
1: + IRQD_WAKEUP_STATE = 16384,
1: + IRQD_MOVE_PCNTXT = 32768,
1: + IRQD_IRQ_DISABLED = 65536,
1: + IRQD_IRQ_MASKED = 131072,
1: + IRQD_IRQ_INPROGRESS = 262144,
1: + IRQD_WAKEUP_ARMED = 524288,
1: + IRQD_FORWARDED_TO_VCPU = 1048576,
1: + IRQD_AFFINITY_MANAGED = 2097152,
1: + IRQD_IRQ_STARTED = 4194304,
1: + IRQD_MANAGED_SHUTDOWN = 8388608,
1: + IRQD_SINGLE_TARGET = 16777216,
1: + IRQD_DEFAULT_TRIGGER_SET = 33554432,
1: + IRQD_CAN_RESERVE = 67108864,
1: + IRQD_MSI_NOMASK_QUIRK = 134217728,
1: + IRQD_HANDLE_ENFORCE_IRQCTX = 268435456,
1: + IRQD_AFFINITY_ON_ACTIVATE = 536870912,
1: + IRQD_IRQ_ENABLED_ON_SUSPEND = 1073741824,
1: +};
1: +
1: +struct kimage_arch {
1: + void *dtb;
1: + long unsigned int dtb_mem;
1: + void *elf_headers;
1: + long unsigned int elf_headers_mem;
1: + long unsigned int elf_headers_sz;
1: +};
1: +
1: +typedef int kexec_probe_t(const char *, long unsigned int);
1: +
1: +struct kimage;
1: +
1: +typedef void *kexec_load_t(struct kimage *, char *, long unsigned int, char *, long unsigned int, char *, long unsigned int);
1: +
1: +typedef int kexec_cleanup_t(void *);
1: +
1: +struct kexec_file_ops {
1: + kexec_probe_t *probe;
1: + kexec_load_t *load;
1: + kexec_cleanup_t *cleanup;
1: +};
1: +
1: +typedef long unsigned int kimage_entry_t;
1: +
1: +struct kexec_segment {
1: + union {
1: + void *buf;
1: + void *kbuf;
1: + };
1: + size_t bufsz;
1: + long unsigned int mem;
1: + size_t memsz;
1: +};
1: +
1: +struct purgatory_info {
1: + const Elf64_Ehdr *ehdr;
1: + Elf64_Shdr *sechdrs;
1: + void *purgatory_buf;
1: +};
1: +
1: +struct kimage {
1: + kimage_entry_t head;
1: + kimage_entry_t *entry;
1: + kimage_entry_t *last_entry;
1: + long unsigned int start;
1: + struct page *control_code_page;
1: + struct page *swap_page;
1: + void *vmcoreinfo_data_copy;
1: + long unsigned int nr_segments;
1: + struct kexec_segment segment[16];
1: + struct list_head control_pages;
1: + struct list_head dest_pages;
1: + struct list_head unusable_pages;
1: + long unsigned int control_page;
1: + unsigned int type: 1;
1: + unsigned int preserve_context: 1;
1: + unsigned int file_mode: 1;
1: + struct kimage_arch arch;
1: + void *kernel_buf;
1: + long unsigned int kernel_buf_len;
1: + void *initrd_buf;
1: + long unsigned int initrd_buf_len;
1: + char *cmdline_buf;
1: + long unsigned int cmdline_buf_len;
1: + const struct kexec_file_ops *fops;
1: + void *image_loader_data;
1: + struct purgatory_info purgatory_info;
1: +};
1: +
1: +typedef u8 uint8_t;
1: +
1: +typedef u64 uint64_t;
1: +
1: +struct kexec_buf {
1: + struct kimage *image;
1: + void *buffer;
1: + long unsigned int bufsz;
1: + long unsigned int mem;
1: + long unsigned int memsz;
1: + long unsigned int buf_align;
1: + long unsigned int buf_min;
1: + long unsigned int buf_max;
1: + bool top_down;
1: +};
1: +
1: +struct crash_mem_range {
1: + u64 start;
1: + u64 end;
1: +};
1: +
1: +struct crash_mem {
1: + unsigned int max_nr_ranges;
1: + unsigned int nr_ranges;
1: + struct crash_mem_range ranges[0];
1: +};
1: +
1: +typedef __be32 fdt32_t;
1: +
1: +typedef __be64 fdt64_t;
1: +
1: +struct fdt_header {
1: + fdt32_t magic;
1: + fdt32_t totalsize;
1: + fdt32_t off_dt_struct;
1: + fdt32_t off_dt_strings;
1: + fdt32_t off_mem_rsvmap;
1: + fdt32_t version;
1: + fdt32_t last_comp_version;
1: + fdt32_t boot_cpuid_phys;
1: + fdt32_t size_dt_strings;
1: + fdt32_t size_dt_struct;
1: +};
1: +
1: +enum key_being_used_for {
1: + VERIFYING_MODULE_SIGNATURE = 0,
1: + VERIFYING_FIRMWARE_SIGNATURE = 1,
1: + VERIFYING_KEXEC_PE_SIGNATURE = 2,
1: + VERIFYING_KEY_SIGNATURE = 3,
1: + VERIFYING_KEY_SELF_SIGNATURE = 4,
1: + VERIFYING_UNSPECIFIED_SIGNATURE = 5,
1: + NR__KEY_BEING_USED_FOR = 6,
1: +};
1: +
1: +struct arm64_image_header {
1: + __le32 code0;
1: + __le32 code1;
1: + __le64 text_offset;
1: + __le64 image_size;
1: + __le64 flags;
1: + __le64 res2;
1: + __le64 res3;
1: + __le64 res4;
1: + __le32 magic;
1: + __le32 res5;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int val;
1: +} swp_entry_t;
1: +
1: +typedef u32 probe_opcode_t;
1: +
1: +typedef void probes_handler_t(u32, long int, struct pt_regs *);
1: +
1: +struct arch_probe_insn {
1: + probe_opcode_t *insn;
1: + pstate_check_t *pstate_cc;
1: + probes_handler_t *handler;
1: + long unsigned int restore;
1: +};
1: +
1: +typedef u32 kprobe_opcode_t;
1: +
1: +struct arch_specific_insn {
1: + struct arch_probe_insn api;
1: +};
1: +
1: +struct kprobe;
1: +
1: +struct prev_kprobe {
1: + struct kprobe *kp;
1: + unsigned int status;
1: +};
1: +
1: +typedef int (*kprobe_pre_handler_t)(struct kprobe *, struct pt_regs *);
1: +
1: +typedef void (*kprobe_post_handler_t)(struct kprobe *, struct pt_regs *, long unsigned int);
1: +
1: +typedef int (*kprobe_fault_handler_t)(struct kprobe *, struct pt_regs *, int);
1: +
1: +struct kprobe {
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + long unsigned int nmissed;
1: + kprobe_opcode_t *addr;
1: + const char *symbol_name;
1: + unsigned int offset;
1: + kprobe_pre_handler_t pre_handler;
1: + kprobe_post_handler_t post_handler;
1: + kprobe_fault_handler_t fault_handler;
1: + kprobe_opcode_t opcode;
1: + struct arch_specific_insn ainsn;
1: + u32 flags;
1: +};
1: +
1: +struct kprobe_step_ctx {
1: + long unsigned int ss_pending;
1: + long unsigned int match_addr;
1: +};
1: +
1: +struct kprobe_ctlblk {
1: + unsigned int kprobe_status;
1: + long unsigned int saved_irqflag;
1: + struct prev_kprobe prev_kprobe;
1: + struct kprobe_step_ctx ss_ctx;
1: +};
1: +
1: +struct kretprobe_instance;
1: +
1: +typedef int (*kretprobe_handler_t)(struct kretprobe_instance *, struct pt_regs *);
1: +
1: +struct kretprobe;
1: +
1: +struct kretprobe_instance {
1: + union {
1: + struct hlist_node hlist;
1: + struct callback_head rcu;
1: + };
1: + struct kretprobe *rp;
1: + kprobe_opcode_t *ret_addr;
1: + struct task_struct *task;
1: + void *fp;
1: + char data[0];
1: +};
1: +
1: +struct kretprobe {
1: + struct kprobe kp;
1: + kretprobe_handler_t handler;
1: + kretprobe_handler_t entry_handler;
1: + int maxactive;
1: + int nmissed;
1: + size_t data_size;
1: + struct hlist_head free_instances;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct kprobe_insn_cache {
1: + struct mutex mutex;
1: + void * (*alloc)();
1: + void (*free)(void *);
1: + const char *sym;
1: + struct list_head pages;
1: + size_t insn_size;
1: + int nr_garbage;
1: +};
1: +
1: +enum probe_insn {
1: + INSN_REJECTED = 0,
1: + INSN_GOOD_NO_SLOT = 1,
1: + INSN_GOOD = 2,
1: +};
1: +
1: +enum aarch64_insn_special_register {
1: + AARCH64_INSN_SPCLREG_SPSR_EL1 = 49664,
1: + AARCH64_INSN_SPCLREG_ELR_EL1 = 49665,
1: + AARCH64_INSN_SPCLREG_SP_EL0 = 49672,
1: + AARCH64_INSN_SPCLREG_SPSEL = 49680,
1: + AARCH64_INSN_SPCLREG_CURRENTEL = 49682,
1: + AARCH64_INSN_SPCLREG_DAIF = 55825,
1: + AARCH64_INSN_SPCLREG_NZCV = 55824,
1: + AARCH64_INSN_SPCLREG_FPCR = 55840,
1: + AARCH64_INSN_SPCLREG_DSPSR_EL0 = 55848,
1: + AARCH64_INSN_SPCLREG_DLR_EL0 = 55849,
1: + AARCH64_INSN_SPCLREG_SPSR_EL2 = 57856,
1: + AARCH64_INSN_SPCLREG_ELR_EL2 = 57857,
1: + AARCH64_INSN_SPCLREG_SP_EL1 = 57864,
1: + AARCH64_INSN_SPCLREG_SPSR_INQ = 57880,
1: + AARCH64_INSN_SPCLREG_SPSR_ABT = 57881,
1: + AARCH64_INSN_SPCLREG_SPSR_UND = 57882,
1: + AARCH64_INSN_SPCLREG_SPSR_FIQ = 57883,
1: + AARCH64_INSN_SPCLREG_SPSR_EL3 = 61952,
1: + AARCH64_INSN_SPCLREG_ELR_EL3 = 61953,
1: + AARCH64_INSN_SPCLREG_SP_EL2 = 61968,
1: +};
1: +
1: +struct arch_uprobe {
1: + union {
1: + u8 insn[4];
1: + u8 ixol[4];
1: + };
1: + struct arch_probe_insn api;
1: + bool simulate;
1: +};
1: +
1: +enum rp_check {
1: + RP_CHECK_CALL = 0,
1: + RP_CHECK_CHAIN_CALL = 1,
1: + RP_CHECK_RET = 2,
1: +};
1: +
1: +struct iommu_fault_param;
1: +
1: +struct iommu_fwspec;
1: +
1: +struct dev_iommu {
1: + struct mutex lock;
1: + struct iommu_fault_param *fault_param;
1: + struct iommu_fwspec *fwspec;
1: + struct iommu_device *iommu_dev;
1: + void *priv;
1: +};
1: +
1: +struct sg_table {
1: + struct scatterlist *sgl;
1: + unsigned int nents;
1: + unsigned int orig_nents;
1: +};
1: +
1: +struct of_phandle_args {
1: + struct device_node *np;
1: + int args_count;
1: + uint32_t args[16];
1: +};
1: +
1: +struct iommu_fault_unrecoverable {
1: + __u32 reason;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 fetch_addr;
1: +};
1: +
1: +struct iommu_fault_page_request {
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 private_data[2];
1: +};
1: +
1: +struct iommu_fault {
1: + __u32 type;
1: + __u32 padding;
1: + union {
1: + struct iommu_fault_unrecoverable event;
1: + struct iommu_fault_page_request prm;
1: + __u8 padding2[56];
1: + };
1: +};
1: +
1: +struct iommu_page_response {
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 code;
1: +};
1: +
1: +struct iommu_inv_addr_info {
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: + __u64 addr;
1: + __u64 granule_size;
1: + __u64 nb_granules;
1: +};
1: +
1: +struct iommu_inv_pasid_info {
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: +};
1: +
1: +struct iommu_cache_invalidate_info {
1: + __u32 argsz;
1: + __u32 version;
1: + __u8 cache;
1: + __u8 granularity;
1: + __u8 padding[6];
1: + union {
1: + struct iommu_inv_pasid_info pasid_info;
1: + struct iommu_inv_addr_info addr_info;
1: + } granu;
1: +};
1: +
1: +struct iommu_gpasid_bind_data_vtd {
1: + __u64 flags;
1: + __u32 pat;
1: + __u32 emt;
1: +};
1: +
1: +struct iommu_gpasid_bind_data {
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 format;
1: + __u32 addr_width;
1: + __u64 flags;
1: + __u64 gpgd;
1: + __u64 hpasid;
1: + __u64 gpasid;
1: + __u8 padding[8];
1: + union {
1: + struct iommu_gpasid_bind_data_vtd vtd;
1: + } vendor;
1: +};
1: +
1: +typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, long unsigned int, int, void *);
1: +
1: +struct iommu_domain_geometry {
1: + dma_addr_t aperture_start;
1: + dma_addr_t aperture_end;
1: + bool force_aperture;
1: +};
1: +
1: +struct iommu_domain {
1: + unsigned int type;
1: + const struct iommu_ops *ops;
1: + long unsigned int pgsize_bitmap;
1: + iommu_fault_handler_t handler;
1: + void *handler_token;
1: + struct iommu_domain_geometry geometry;
1: + void *iova_cookie;
1: +};
1: +
1: +typedef int (*iommu_dev_fault_handler_t)(struct iommu_fault *, void *);
1: +
1: +enum iommu_resv_type {
1: + IOMMU_RESV_DIRECT = 0,
1: + IOMMU_RESV_DIRECT_RELAXABLE = 1,
1: + IOMMU_RESV_RESERVED = 2,
1: + IOMMU_RESV_MSI = 3,
1: + IOMMU_RESV_SW_MSI = 4,
1: +};
1: +
1: +struct iommu_resv_region {
1: + struct list_head list;
1: + phys_addr_t start;
1: + size_t length;
1: + int prot;
1: + enum iommu_resv_type type;
1: +};
1: +
1: +struct iommu_iotlb_gather {
1: + long unsigned int start;
1: + long unsigned int end;
1: + size_t pgsize;
1: +};
1: +
1: +struct iommu_device {
1: + struct list_head list;
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *fwnode;
1: + struct device *dev;
1: +};
1: +
1: +struct iommu_sva {
1: + struct device *dev;
1: +};
1: +
1: +struct iommu_fault_event {
1: + struct iommu_fault fault;
1: + struct list_head list;
1: +};
1: +
1: +struct iommu_fault_param {
1: + iommu_dev_fault_handler_t handler;
1: + void *data;
1: + struct list_head faults;
1: + struct mutex lock;
1: +};
1: +
1: +struct iommu_fwspec {
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *iommu_fwnode;
1: + u32 flags;
1: + u32 num_pasid_bits;
1: + unsigned int num_ids;
1: + u32 ids[0];
1: +};
1: +
1: +enum xen_domain_type {
1: + XEN_NATIVE = 0,
1: + XEN_PV_DOMAIN = 1,
1: + XEN_HVM_DOMAIN = 2,
1: +};
1: +
1: +struct hstate {
1: + int next_nid_to_alloc;
1: + int next_nid_to_free;
1: + unsigned int order;
1: + long unsigned int mask;
1: + long unsigned int max_huge_pages;
1: + long unsigned int nr_huge_pages;
1: + long unsigned int free_huge_pages;
1: + long unsigned int resv_huge_pages;
1: + long unsigned int surplus_huge_pages;
1: + long unsigned int nr_overcommit_huge_pages;
1: + struct list_head hugepage_activelist;
1: + struct list_head hugepage_freelists[128];
1: + unsigned int nr_huge_pages_node[128];
1: + unsigned int free_huge_pages_node[128];
1: + unsigned int surplus_huge_pages_node[128];
1: + struct cftype cgroup_files_dfl[7];
1: + struct cftype cgroup_files_legacy[9];
1: + char name[32];
1: +};
1: +
1: +struct fault_info {
1: + int (*fn)(long unsigned int, unsigned int, struct pt_regs *);
1: + int sig;
1: + int code;
1: + const char *name;
1: +};
1: +
1: +enum swiotlb_force {
1: + SWIOTLB_NORMAL = 0,
1: + SWIOTLB_FORCE = 1,
1: + SWIOTLB_NO_FORCE = 2,
1: +};
1: +
1: +struct mhp_params {
1: + struct vmem_altmap *altmap;
1: + pgprot_t pgprot;
1: +};
1: +
1: +struct memory_notify {
1: + long unsigned int start_pfn;
1: + long unsigned int nr_pages;
1: + int status_change_nid_normal;
1: + int status_change_nid_high;
1: + int status_change_nid;
1: +};
1: +
1: +struct page_change_data {
1: + pgprot_t set_mask;
1: + pgprot_t clear_mask;
1: +};
1: +
1: +struct hugepage_subpool {
1: + spinlock_t lock;
1: + long int count;
1: + long int max_hpages;
1: + long int used_hpages;
1: + struct hstate *hstate;
1: + long int min_hpages;
1: + long int rsv_hpages;
1: +};
1: +
1: +struct hugetlbfs_sb_info {
1: + long int max_inodes;
1: + long int free_inodes;
1: + spinlock_t stat_lock;
1: + struct hstate *hstate;
1: + struct hugepage_subpool *spool;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +typedef __kernel_long_t __kernel_off_t;
1: +
1: +typedef __kernel_off_t off_t;
1: +
1: +enum {
1: + BPF_REG_0 = 0,
1: + BPF_REG_1 = 1,
1: + BPF_REG_2 = 2,
1: + BPF_REG_3 = 3,
1: + BPF_REG_4 = 4,
1: + BPF_REG_5 = 5,
1: + BPF_REG_6 = 6,
1: + BPF_REG_7 = 7,
1: + BPF_REG_8 = 8,
1: + BPF_REG_9 = 9,
1: + BPF_REG_10 = 10,
1: + __MAX_BPF_REG = 11,
1: +};
1: +
1: +enum {
1: + DUMP_PREFIX_NONE = 0,
1: + DUMP_PREFIX_ADDRESS = 1,
1: + DUMP_PREFIX_OFFSET = 2,
1: +};
1: +
1: +struct bpf_binary_header {
1: + u32 pages;
1: + int: 32;
1: + u8 image[0];
1: +};
1: +
1: +struct jit_ctx {
1: + const struct bpf_prog *prog;
1: + int idx;
1: + int epilogue_offset;
1: + int *offset;
1: + int exentry_idx;
1: + __le32 *image;
1: + u32 stack_size;
1: +};
1: +
1: +struct arm64_jit_data {
1: + struct bpf_binary_header *header;
1: + u8 *image;
1: + struct jit_ctx ctx;
1: +};
1: +
1: +typedef long unsigned int ulong;
1: +
1: +typedef u64 gpa_t;
1: +
1: +typedef u64 gfn_t;
1: +
1: +typedef u64 hpa_t;
1: +
1: +typedef u64 hfn_t;
1: +
1: +typedef hfn_t kvm_pfn_t;
1: +
1: +struct kvm_memory_slot;
1: +
1: +struct gfn_to_hva_cache {
1: + u64 generation;
1: + gpa_t gpa;
1: + long unsigned int hva;
1: + long unsigned int len;
1: + struct kvm_memory_slot *memslot;
1: +};
1: +
1: +struct kvm_arch_memory_slot {};
1: +
1: +struct kvm_memory_slot {
1: + gfn_t base_gfn;
1: + long unsigned int npages;
1: + long unsigned int *dirty_bitmap;
1: + struct kvm_arch_memory_slot arch;
1: + long unsigned int userspace_addr;
1: + u32 flags;
1: + short int id;
1: + u16 as_id;
1: +};
1: +
1: +struct gfn_to_pfn_cache {
1: + u64 generation;
1: + gfn_t gfn;
1: + kvm_pfn_t pfn;
1: + bool dirty;
1: +};
1: +
1: +struct kvm_mmu_memory_cache {
1: + int nobjs;
1: + gfp_t gfp_zero;
1: + struct kmem_cache *kmem_cache;
1: + void *objects[40];
1: +};
1: +
1: +struct kvm_vcpu;
1: +
1: +struct kvm_io_device;
1: +
1: +struct kvm_io_device_ops {
1: + int (*read)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int, void *);
1: + int (*write)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int, const void *);
1: + void (*destructor)(struct kvm_io_device *);
1: +};
1: +
1: +struct preempt_ops;
1: +
1: +struct preempt_notifier {
1: + struct hlist_node link;
1: + struct preempt_ops *ops;
1: +};
1: +
1: +struct kvm_vcpu_stat {
1: + u64 halt_successful_poll;
1: + u64 halt_attempted_poll;
1: + u64 halt_poll_success_ns;
1: + u64 halt_poll_fail_ns;
1: + u64 halt_poll_invalid;
1: + u64 halt_wakeup;
1: + u64 hvc_exit_stat;
1: + u64 wfe_exit_stat;
1: + u64 wfi_exit_stat;
1: + u64 mmio_exit_user;
1: + u64 mmio_exit_kernel;
1: + u64 exits;
1: +};
1: +
1: +struct kvm_mmio_fragment {
1: + gpa_t gpa;
1: + void *data;
1: + unsigned int len;
1: +};
1: +
1: +struct kvm_cpu_context {
1: + struct user_pt_regs regs;
1: + u64 spsr_abt;
1: + u64 spsr_und;
1: + u64 spsr_irq;
1: + u64 spsr_fiq;
1: + struct user_fpsimd_state fp_regs;
1: + union {
1: + u64 sys_regs[119];
1: + u32 copro[238];
1: + };
1: + struct kvm_vcpu *__hyp_running_vcpu;
1: +};
1: +
1: +struct kvm_vcpu_fault_info {
1: + u32 esr_el2;
1: + u64 far_el2;
1: + u64 hpfar_el2;
1: + u64 disr_el1;
1: +};
1: +
1: +struct kvm_guest_debug_arch {
1: + __u64 dbg_bcr[16];
1: + __u64 dbg_bvr[16];
1: + __u64 dbg_wcr[16];
1: + __u64 dbg_wvr[16];
1: +};
1: +
1: +struct vgic_v2_cpu_if {
1: + u32 vgic_hcr;
1: + u32 vgic_vmcr;
1: + u32 vgic_apr;
1: + u32 vgic_lr[64];
1: + unsigned int used_lrs;
1: +};
1: +
1: +struct its_vm;
1: +
1: +struct its_vpe {
1: + struct page *vpt_page;
1: + struct its_vm *its_vm;
1: + atomic_t vlpi_count;
1: + int irq;
1: + irq_hw_number_t vpe_db_lpi;
1: + bool resident;
1: + union {
1: + struct {
1: + int vpe_proxy_event;
1: + bool idai;
1: + };
1: + struct {
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *sgi_domain;
1: + struct {
1: + u8 priority;
1: + bool enabled;
1: + bool group;
1: + } sgi_config[16];
1: + atomic_t vmapp_count;
1: + };
1: + };
1: + raw_spinlock_t vpe_lock;
1: + u16 col_idx;
1: + u16 vpe_id;
1: + bool pending_last;
1: +};
1: +
1: +struct vgic_v3_cpu_if {
1: + u32 vgic_hcr;
1: + u32 vgic_vmcr;
1: + u32 vgic_sre;
1: + u32 vgic_ap0r[4];
1: + u32 vgic_ap1r[4];
1: + u64 vgic_lr[16];
1: + struct its_vpe its_vpe;
1: + unsigned int used_lrs;
1: +};
1: +
1: +enum vgic_irq_config {
1: + VGIC_CONFIG_EDGE = 0,
1: + VGIC_CONFIG_LEVEL = 1,
1: +};
1: +
1: +struct vgic_irq {
1: + raw_spinlock_t irq_lock;
1: + struct list_head lpi_list;
1: + struct list_head ap_list;
1: + struct kvm_vcpu *vcpu;
1: + struct kvm_vcpu *target_vcpu;
1: + u32 intid;
1: + bool line_level;
1: + bool pending_latch;
1: + bool active;
1: + bool enabled;
1: + bool hw;
1: + struct kref refcount;
1: + u32 hwintid;
1: + unsigned int host_irq;
1: + union {
1: + u8 targets;
1: + u32 mpidr;
1: + };
1: + u8 source;
1: + u8 active_source;
1: + u8 priority;
1: + u8 group;
1: + enum vgic_irq_config config;
1: + bool (*get_input_level)(int);
1: + void *owner;
1: +};
1: +
1: +enum iodev_type {
1: + IODEV_CPUIF = 0,
1: + IODEV_DIST = 1,
1: + IODEV_REDIST = 2,
1: + IODEV_ITS = 3,
1: +};
1: +
1: +struct kvm_io_device {
1: + const struct kvm_io_device_ops *ops;
1: +};
1: +
1: +struct vgic_its;
1: +
1: +struct vgic_register_region;
1: +
1: +struct vgic_io_device {
1: + gpa_t base_addr;
1: + union {
1: + struct kvm_vcpu *redist_vcpu;
1: + struct vgic_its *its;
1: + };
1: + const struct vgic_register_region *regions;
1: + enum iodev_type iodev_type;
1: + int nr_regions;
1: + struct kvm_io_device dev;
1: +};
1: +
1: +struct vgic_redist_region;
1: +
1: +struct vgic_cpu {
1: + union {
1: + struct vgic_v2_cpu_if vgic_v2;
1: + struct vgic_v3_cpu_if vgic_v3;
1: + };
1: + struct vgic_irq private_irqs[32];
1: + raw_spinlock_t ap_list_lock;
1: + struct list_head ap_list_head;
1: + struct vgic_io_device rd_iodev;
1: + struct vgic_redist_region *rdreg;
1: + u64 pendbaser;
1: + bool lpis_enabled;
1: + u32 num_pri_bits;
1: + u32 num_id_bits;
1: +};
1: +
1: +struct kvm_irq_level {
1: + union {
1: + __u32 irq;
1: + __s32 status;
1: + };
1: + __u32 level;
1: +};
1: +
1: +struct arch_timer_context {
1: + struct kvm_vcpu *vcpu;
1: + struct kvm_irq_level irq;
1: + struct hrtimer hrtimer;
1: + bool loaded;
1: + u32 host_timer_irq;
1: + u32 host_timer_irq_flags;
1: +};
1: +
1: +struct arch_timer_cpu {
1: + struct arch_timer_context timers[2];
1: + struct hrtimer bg_timer;
1: + bool enabled;
1: +};
1: +
1: +struct kvm_pmc {
1: + u8 idx;
1: + struct perf_event *perf_event;
1: +};
1: +
1: +struct kvm_pmu {
1: + int irq_num;
1: + struct kvm_pmc pmc[32];
1: + long unsigned int chained[1];
1: + bool ready;
1: + bool created;
1: + bool irq_level;
1: + struct irq_work overflow_work;
1: +};
1: +
1: +struct vcpu_reset_state {
1: + long unsigned int pc;
1: + long unsigned int r0;
1: + bool be;
1: + bool reset;
1: +};
1: +
1: +struct kvm_s2_mmu;
1: +
1: +struct kvm_vcpu_arch {
1: + struct kvm_cpu_context ctxt;
1: + void *sve_state;
1: + unsigned int sve_max_vl;
1: + struct kvm_s2_mmu *hw_mmu;
1: + u64 hcr_el2;
1: + u32 mdcr_el2;
1: + struct kvm_vcpu_fault_info fault;
1: + u64 workaround_flags;
1: + u64 flags;
1: + struct kvm_guest_debug_arch *debug_ptr;
1: + struct kvm_guest_debug_arch vcpu_debug_state;
1: + struct kvm_guest_debug_arch external_debug_state;
1: + struct thread_info *host_thread_info;
1: + struct user_fpsimd_state *host_fpsimd_state;
1: + struct {
1: + struct kvm_guest_debug_arch regs;
1: + u64 pmscr_el1;
1: + } host_debug_state;
1: + struct vgic_cpu vgic_cpu;
1: + struct arch_timer_cpu timer_cpu;
1: + struct kvm_pmu pmu;
1: + struct {
1: + u32 mdscr_el1;
1: + } guest_debug_preserved;
1: + bool power_off;
1: + bool pause;
1: + struct kvm_mmu_memory_cache mmu_page_cache;
1: + int target;
1: + long unsigned int features[1];
1: + bool has_run_once;
1: + u64 vsesr_el2;
1: + struct vcpu_reset_state reset_state;
1: + bool sysregs_loaded_on_cpu;
1: + struct {
1: + u64 last_steal;
1: + gpa_t base;
1: + } steal;
1: +};
1: +
1: +struct kvm;
1: +
1: +struct kvm_run;
1: +
1: +struct kvm_vcpu {
1: + struct kvm *kvm;
1: + struct preempt_notifier preempt_notifier;
1: + int cpu;
1: + int vcpu_id;
1: + int vcpu_idx;
1: + int srcu_idx;
1: + int mode;
1: + u64 requests;
1: + long unsigned int guest_debug;
1: + int pre_pcpu;
1: + struct list_head blocked_vcpu_list;
1: + struct mutex mutex;
1: + struct kvm_run *run;
1: + struct rcuwait wait;
1: + struct pid *pid;
1: + int sigset_active;
1: + sigset_t sigset;
1: + struct kvm_vcpu_stat stat;
1: + unsigned int halt_poll_ns;
1: + bool valid_wakeup;
1: + int mmio_needed;
1: + int mmio_read_completed;
1: + int mmio_is_write;
1: + int mmio_cur_fragment;
1: + int mmio_nr_fragments;
1: + struct kvm_mmio_fragment mmio_fragments[2];
1: + struct {
1: + bool in_spin_loop;
1: + bool dy_eligible;
1: + } spin_loop;
1: + bool preempted;
1: + bool ready;
1: + struct kvm_vcpu_arch arch;
1: +};
1: +
1: +struct preempt_ops {
1: + void (*sched_in)(struct preempt_notifier *, int);
1: + void (*sched_out)(struct preempt_notifier *, struct task_struct *);
1: +};
1: +
1: +struct trace_print_flags {
1: + long unsigned int mask;
1: + const char *name;
1: +};
1: +
1: +enum mmu_notifier_event {
1: + MMU_NOTIFY_UNMAP = 0,
1: + MMU_NOTIFY_CLEAR = 1,
1: + MMU_NOTIFY_PROTECTION_VMA = 2,
1: + MMU_NOTIFY_PROTECTION_PAGE = 3,
1: + MMU_NOTIFY_SOFT_DIRTY = 4,
1: + MMU_NOTIFY_RELEASE = 5,
1: + MMU_NOTIFY_MIGRATE = 6,
1: +};
1: +
1: +struct mmu_notifier;
1: +
1: +struct mmu_notifier_range;
1: +
1: +struct mmu_notifier_ops {
1: + void (*release)(struct mmu_notifier *, struct mm_struct *);
1: + int (*clear_flush_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + int (*clear_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + int (*test_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int);
1: + void (*change_pte)(struct mmu_notifier *, struct mm_struct *, long unsigned int, pte_t);
1: + int (*invalidate_range_start)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: + void (*invalidate_range_end)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: + void (*invalidate_range)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + struct mmu_notifier * (*alloc_notifier)(struct mm_struct *);
1: + void (*free_notifier)(struct mmu_notifier *);
1: +};
1: +
1: +struct mmu_notifier {
1: + struct hlist_node hlist;
1: + const struct mmu_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct callback_head rcu;
1: + unsigned int users;
1: +};
1: +
1: +struct mmu_notifier_range {
1: + struct vm_area_struct *vma;
1: + struct mm_struct *mm;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int flags;
1: + enum mmu_notifier_event event;
1: + void *migrate_pgmap_owner;
1: +};
1: +
1: +enum kobject_action {
1: + KOBJ_ADD = 0,
1: + KOBJ_REMOVE = 1,
1: + KOBJ_CHANGE = 2,
1: + KOBJ_MOVE = 3,
1: + KOBJ_ONLINE = 4,
1: + KOBJ_OFFLINE = 5,
1: + KOBJ_BIND = 6,
1: + KOBJ_UNBIND = 7,
1: +};
1: +
1: +struct kvm_regs {
1: + struct user_pt_regs regs;
1: + __u64 sp_el1;
1: + __u64 elr_el1;
1: + __u64 spsr[5];
1: + long: 64;
1: + struct user_fpsimd_state fp_regs;
1: +};
1: +
1: +struct kvm_sregs {};
1: +
1: +struct kvm_fpu {};
1: +
1: +struct kvm_debug_exit_arch {
1: + __u32 hsr;
1: + __u64 far;
1: +};
1: +
1: +struct kvm_sync_regs {
1: + __u64 device_irq_level;
1: +};
1: +
1: +struct kvm_userspace_memory_region {
1: + __u32 slot;
1: + __u32 flags;
1: + __u64 guest_phys_addr;
1: + __u64 memory_size;
1: + __u64 userspace_addr;
1: +};
1: +
1: +struct kvm_hyperv_exit {
1: + __u32 type;
1: + __u32 pad1;
1: + union {
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 evt_page;
1: + __u64 msg_page;
1: + } synic;
1: + struct {
1: + __u64 input;
1: + __u64 result;
1: + __u64 params[2];
1: + } hcall;
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 status;
1: + __u64 send_page;
1: + __u64 recv_page;
1: + __u64 pending_page;
1: + } syndbg;
1: + } u;
1: +};
1: +
1: +struct kvm_run {
1: + __u8 request_interrupt_window;
1: + __u8 immediate_exit;
1: + __u8 padding1[6];
1: + __u32 exit_reason;
1: + __u8 ready_for_interrupt_injection;
1: + __u8 if_flag;
1: + __u16 flags;
1: + __u64 cr8;
1: + __u64 apic_base;
1: + union {
1: + struct {
1: + __u64 hardware_exit_reason;
1: + } hw;
1: + struct {
1: + __u64 hardware_entry_failure_reason;
1: + __u32 cpu;
1: + } fail_entry;
1: + struct {
1: + __u32 exception;
1: + __u32 error_code;
1: + } ex;
1: + struct {
1: + __u8 direction;
1: + __u8 size;
1: + __u16 port;
1: + __u32 count;
1: + __u64 data_offset;
1: + } io;
1: + struct {
1: + struct kvm_debug_exit_arch arch;
1: + } debug;
1: + struct {
1: + __u64 phys_addr;
1: + __u8 data[8];
1: + __u32 len;
1: + __u8 is_write;
1: + } mmio;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u64 ret;
1: + __u32 longmode;
1: + __u32 pad;
1: + } hypercall;
1: + struct {
1: + __u64 rip;
1: + __u32 is_write;
1: + __u32 pad;
1: + } tpr_access;
1: + struct {
1: + __u8 icptcode;
1: + __u16 ipa;
1: + __u32 ipb;
1: + } s390_sieic;
1: + __u64 s390_reset_flags;
1: + struct {
1: + __u64 trans_exc_code;
1: + __u32 pgm_code;
1: + } s390_ucontrol;
1: + struct {
1: + __u32 dcrn;
1: + __u32 data;
1: + __u8 is_write;
1: + } dcr;
1: + struct {
1: + __u32 suberror;
1: + __u32 ndata;
1: + __u64 data[16];
1: + } internal;
1: + struct {
1: + __u64 gprs[32];
1: + } osi;
1: + struct {
1: + __u64 nr;
1: + __u64 ret;
1: + __u64 args[9];
1: + } papr_hcall;
1: + struct {
1: + __u16 subchannel_id;
1: + __u16 subchannel_nr;
1: + __u32 io_int_parm;
1: + __u32 io_int_word;
1: + __u32 ipb;
1: + __u8 dequeued;
1: + } s390_tsch;
1: + struct {
1: + __u32 epr;
1: + } epr;
1: + struct {
1: + __u32 type;
1: + __u64 flags;
1: + } system_event;
1: + struct {
1: + __u64 addr;
1: + __u8 ar;
1: + __u8 reserved;
1: + __u8 fc;
1: + __u8 sel1;
1: + __u16 sel2;
1: + } s390_stsi;
1: + struct {
1: + __u8 vector;
1: + } eoi;
1: + struct kvm_hyperv_exit hyperv;
1: + struct {
1: + __u64 esr_iss;
1: + __u64 fault_ipa;
1: + } arm_nisv;
1: + struct {
1: + __u8 error;
1: + __u8 pad[7];
1: + __u32 reason;
1: + __u32 index;
1: + __u64 data;
1: + } msr;
1: + char padding[256];
1: + };
1: + __u64 kvm_valid_regs;
1: + __u64 kvm_dirty_regs;
1: + union {
1: + struct kvm_sync_regs regs;
1: + char padding[2048];
1: + } s;
1: +};
1: +
1: +struct kvm_coalesced_mmio_zone {
1: + __u64 addr;
1: + __u32 size;
1: + union {
1: + __u32 pad;
1: + __u32 pio;
1: + };
1: +};
1: +
1: +struct kvm_coalesced_mmio {
1: + __u64 phys_addr;
1: + __u32 len;
1: + union {
1: + __u32 pad;
1: + __u32 pio;
1: + };
1: + __u8 data[8];
1: +};
1: +
1: +struct kvm_coalesced_mmio_ring {
1: + __u32 first;
1: + __u32 last;
1: + struct kvm_coalesced_mmio coalesced_mmio[0];
1: +};
1: +
1: +struct kvm_translation {
1: + __u64 linear_address;
1: + __u64 physical_address;
1: + __u8 valid;
1: + __u8 writeable;
1: + __u8 usermode;
1: + __u8 pad[5];
1: +};
1: +
1: +struct kvm_dirty_log {
1: + __u32 slot;
1: + __u32 padding1;
1: + union {
1: + void *dirty_bitmap;
1: + __u64 padding2;
1: + };
1: +};
1: +
1: +struct kvm_clear_dirty_log {
1: + __u32 slot;
1: + __u32 num_pages;
1: + __u64 first_page;
1: + union {
1: + void *dirty_bitmap;
1: + __u64 padding2;
1: + };
1: +};
1: +
1: +struct kvm_signal_mask {
1: + __u32 len;
1: + __u8 sigset[0];
1: +};
1: +
1: +struct kvm_mp_state {
1: + __u32 mp_state;
1: +};
1: +
1: +struct kvm_guest_debug {
1: + __u32 control;
1: + __u32 pad;
1: + struct kvm_guest_debug_arch arch;
1: +};
1: +
1: +struct kvm_ioeventfd {
1: + __u64 datamatch;
1: + __u64 addr;
1: + __u32 len;
1: + __s32 fd;
1: + __u32 flags;
1: + __u8 pad[36];
1: +};
1: +
1: +struct kvm_enable_cap {
1: + __u32 cap;
1: + __u32 flags;
1: + __u64 args[4];
1: + __u8 pad[64];
1: +};
1: +
1: +struct kvm_irq_routing_irqchip {
1: + __u32 irqchip;
1: + __u32 pin;
1: +};
1: +
1: +struct kvm_irq_routing_msi {
1: + __u32 address_lo;
1: + __u32 address_hi;
1: + __u32 data;
1: + union {
1: + __u32 pad;
1: + __u32 devid;
1: + };
1: +};
1: +
1: +struct kvm_irq_routing_s390_adapter {
1: + __u64 ind_addr;
1: + __u64 summary_addr;
1: + __u64 ind_offset;
1: + __u32 summary_offset;
1: + __u32 adapter_id;
1: +};
1: +
1: +struct kvm_irq_routing_hv_sint {
1: + __u32 vcpu;
1: + __u32 sint;
1: +};
1: +
1: +struct kvm_irq_routing_entry {
1: + __u32 gsi;
1: + __u32 type;
1: + __u32 flags;
1: + __u32 pad;
1: + union {
1: + struct kvm_irq_routing_irqchip irqchip;
1: + struct kvm_irq_routing_msi msi;
1: + struct kvm_irq_routing_s390_adapter adapter;
1: + struct kvm_irq_routing_hv_sint hv_sint;
1: + __u32 pad[8];
1: + } u;
1: +};
1: +
1: +struct kvm_irq_routing {
1: + __u32 nr;
1: + __u32 flags;
1: + struct kvm_irq_routing_entry entries[0];
1: +};
1: +
1: +struct kvm_irqfd {
1: + __u32 fd;
1: + __u32 gsi;
1: + __u32 flags;
1: + __u32 resamplefd;
1: + __u8 pad[16];
1: +};
1: +
1: +struct kvm_msi {
1: + __u32 address_lo;
1: + __u32 address_hi;
1: + __u32 data;
1: + __u32 flags;
1: + __u32 devid;
1: + __u8 pad[12];
1: +};
1: +
1: +struct kvm_create_device {
1: + __u32 type;
1: + __u32 fd;
1: + __u32 flags;
1: +};
1: +
1: +struct kvm_device_attr {
1: + __u32 flags;
1: + __u32 group;
1: + __u64 attr;
1: + __u64 addr;
1: +};
1: +
1: +enum kvm_device_type {
1: + KVM_DEV_TYPE_FSL_MPIC_20 = 1,
1: + KVM_DEV_TYPE_FSL_MPIC_42 = 2,
1: + KVM_DEV_TYPE_XICS = 3,
1: + KVM_DEV_TYPE_VFIO = 4,
1: + KVM_DEV_TYPE_ARM_VGIC_V2 = 5,
1: + KVM_DEV_TYPE_FLIC = 6,
1: + KVM_DEV_TYPE_ARM_VGIC_V3 = 7,
1: + KVM_DEV_TYPE_ARM_VGIC_ITS = 8,
1: + KVM_DEV_TYPE_XIVE = 9,
1: + KVM_DEV_TYPE_ARM_PV_TIME = 10,
1: + KVM_DEV_TYPE_MAX = 11,
1: +};
1: +
1: +struct its_vm {
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *domain;
1: + struct page *vprop_page;
1: + struct its_vpe **vpes;
1: + int nr_vpes;
1: + irq_hw_number_t db_lpi_base;
1: + long unsigned int *db_bitmap;
1: + int nr_db_lpis;
1: + u32 vlpi_count[16];
1: +};
1: +
1: +struct kvm_device;
1: +
1: +struct vgic_its {
1: + gpa_t vgic_its_base;
1: + bool enabled;
1: + struct vgic_io_device iodev;
1: + struct kvm_device *dev;
1: + u64 baser_device_table;
1: + u64 baser_coll_table;
1: + struct mutex cmd_lock;
1: + u64 cbaser;
1: + u32 creadr;
1: + u32 cwriter;
1: + u32 abi_rev;
1: + struct mutex its_lock;
1: + struct list_head device_list;
1: + struct list_head collection_list;
1: +};
1: +
1: +struct vgic_register_region {
1: + unsigned int reg_offset;
1: + unsigned int len;
1: + unsigned int bits_per_irq;
1: + unsigned int access_flags;
1: + union {
1: + long unsigned int (*read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: + long unsigned int (*its_read)(struct kvm *, struct vgic_its *, gpa_t, unsigned int);
1: + };
1: + union {
1: + void (*write)(struct kvm_vcpu *, gpa_t, unsigned int, long unsigned int);
1: + void (*its_write)(struct kvm *, struct vgic_its *, gpa_t, unsigned int, long unsigned int);
1: + };
1: + long unsigned int (*uaccess_read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: + union {
1: + int (*uaccess_write)(struct kvm_vcpu *, gpa_t, unsigned int, long unsigned int);
1: + int (*uaccess_its_write)(struct kvm *, struct vgic_its *, gpa_t, unsigned int, long unsigned int);
1: + };
1: +};
1: +
1: +struct kvm_device_ops;
1: +
1: +struct kvm_device {
1: + const struct kvm_device_ops *ops;
1: + struct kvm *kvm;
1: + void *private;
1: + struct list_head vm_node;
1: +};
1: +
1: +struct vgic_redist_region {
1: + u32 index;
1: + gpa_t base;
1: + u32 count;
1: + u32 free_index;
1: + struct list_head list;
1: +};
1: +
1: +struct vgic_state_iter;
1: +
1: +struct vgic_dist {
1: + bool in_kernel;
1: + bool ready;
1: + bool initialized;
1: + u32 vgic_model;
1: + u32 implementation_rev;
1: + bool v2_groups_user_writable;
1: + bool msis_require_devid;
1: + int nr_spis;
1: + gpa_t vgic_dist_base;
1: + union {
1: + gpa_t vgic_cpu_base;
1: + struct list_head rd_regions;
1: + };
1: + bool enabled;
1: + bool nassgireq;
1: + struct vgic_irq *spis;
1: + struct vgic_io_device dist_iodev;
1: + bool has_its;
1: + u64 propbaser;
1: + raw_spinlock_t lpi_list_lock;
1: + struct list_head lpi_list_head;
1: + int lpi_list_count;
1: + struct list_head lpi_translation_cache;
1: + struct vgic_state_iter *iter;
1: + struct its_vm its_vm;
1: +};
1: +
1: +struct kvm_vmid {
1: + u64 vmid_gen;
1: + u32 vmid;
1: +};
1: +
1: +struct kvm_pgtable;
1: +
1: +struct kvm_s2_mmu {
1: + struct kvm_vmid vmid;
1: + phys_addr_t pgd_phys;
1: + struct kvm_pgtable *pgt;
1: + int *last_vcpu_ran;
1: + struct kvm *kvm;
1: +};
1: +
1: +struct kvm_vm_stat {
1: + ulong remote_tlb_flush;
1: +};
1: +
1: +struct kvm_arch {
1: + struct kvm_s2_mmu mmu;
1: + u64 vtcr;
1: + int max_vcpus;
1: + struct vgic_dist vgic;
1: + u32 psci_version;
1: + bool return_nisv_io_abort_to_user;
1: + long unsigned int *pmu_filter;
1: + unsigned int pmuver;
1: + u8 pfr0_csv2;
1: +};
1: +
1: +struct kvm_memslots;
1: +
1: +struct kvm_io_bus;
1: +
1: +struct kvm_irq_routing_table;
1: +
1: +struct kvm_stat_data;
1: +
1: +struct kvm {
1: + spinlock_t mmu_lock;
1: + struct mutex slots_lock;
1: + struct mm_struct *mm;
1: + struct kvm_memslots *memslots[1];
1: + struct kvm_vcpu *vcpus[512];
1: + atomic_t online_vcpus;
1: + int created_vcpus;
1: + int last_boosted_vcpu;
1: + struct list_head vm_list;
1: + struct mutex lock;
1: + struct kvm_io_bus *buses[4];
1: + struct {
1: + spinlock_t lock;
1: + struct list_head items;
1: + struct list_head resampler_list;
1: + struct mutex resampler_lock;
1: + } irqfds;
1: + struct list_head ioeventfds;
1: + struct kvm_vm_stat stat;
1: + struct kvm_arch arch;
1: + refcount_t users_count;
1: + struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;
1: + spinlock_t ring_lock;
1: + struct list_head coalesced_zones;
1: + struct mutex irq_lock;
1: + struct kvm_irq_routing_table *irq_routing;
1: + struct hlist_head irq_ack_notifier_list;
1: + struct mmu_notifier mmu_notifier;
1: + long unsigned int mmu_notifier_seq;
1: + long int mmu_notifier_count;
1: + long int tlbs_dirty;
1: + struct list_head devices;
1: + u64 manual_dirty_log_protect;
1: + struct dentry *debugfs_dentry;
1: + struct kvm_stat_data **debugfs_stat_data;
1: + struct srcu_struct srcu;
1: + struct srcu_struct irq_srcu;
1: + pid_t userspace_pid;
1: + unsigned int max_halt_poll_ns;
1: +};
1: +
1: +struct kvm_io_range {
1: + gpa_t addr;
1: + int len;
1: + struct kvm_io_device *dev;
1: +};
1: +
1: +struct kvm_io_bus {
1: + int dev_count;
1: + int ioeventfd_count;
1: + struct kvm_io_range range[0];
1: +};
1: +
1: +enum {
1: + OUTSIDE_GUEST_MODE = 0,
1: + IN_GUEST_MODE = 1,
1: + EXITING_GUEST_MODE = 2,
1: + READING_SHADOW_PAGE_TABLES = 3,
1: +};
1: +
1: +struct kvm_host_map {
1: + struct page *page;
1: + void *hva;
1: + kvm_pfn_t pfn;
1: + kvm_pfn_t gfn;
1: +};
1: +
1: +struct kvm_irq_routing_table {
1: + int chip[988];
1: + u32 nr_rt_entries;
1: + struct hlist_head map[0];
1: +};
1: +
1: +struct kvm_memslots {
1: + u64 generation;
1: + short int id_to_index[512];
1: + atomic_t lru_slot;
1: + int used_slots;
1: + struct kvm_memory_slot memslots[0];
1: +};
1: +
1: +struct kvm_stats_debugfs_item;
1: +
1: +struct kvm_stat_data {
1: + struct kvm *kvm;
1: + struct kvm_stats_debugfs_item *dbgfs_item;
1: +};
1: +
1: +enum kvm_mr_change {
1: + KVM_MR_CREATE = 0,
1: + KVM_MR_DELETE = 1,
1: + KVM_MR_MOVE = 2,
1: + KVM_MR_FLAGS_ONLY = 3,
1: +};
1: +
1: +enum kvm_stat_kind {
1: + KVM_STAT_VM = 0,
1: + KVM_STAT_VCPU = 1,
1: +};
1: +
1: +struct kvm_stats_debugfs_item {
1: + const char *name;
1: + int offset;
1: + enum kvm_stat_kind kind;
1: + int mode;
1: +};
1: +
1: +struct kvm_device_ops {
1: + const char *name;
1: + int (*create)(struct kvm_device *, u32);
1: + void (*init)(struct kvm_device *);
1: + void (*destroy)(struct kvm_device *);
1: + void (*release)(struct kvm_device *);
1: + int (*set_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*get_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*has_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + long int (*ioctl)(struct kvm_device *, unsigned int, long unsigned int);
1: + int (*mmap)(struct kvm_device *, struct vm_area_struct *);
1: +};
1: +
1: +typedef int (*kvm_vm_thread_fn_t)(struct kvm *, uintptr_t);
1: +
1: +struct miscdevice {
1: + int minor;
1: + const char *name;
1: + const struct file_operations *fops;
1: + struct list_head list;
1: + struct device *parent;
1: + struct device *this_device;
1: + const struct attribute_group **groups;
1: + const char *nodename;
1: + umode_t mode;
1: +};
1: +
1: +struct syscore_ops {
1: + struct list_head node;
1: + int (*suspend)();
1: + void (*resume)();
1: + void (*shutdown)();
1: +};
1: +
1: +struct trace_event_raw_kvm_userspace_exit {
1: + struct trace_entry ent;
1: + __u32 reason;
1: + int errno;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_vcpu_wakeup {
1: + struct trace_entry ent;
1: + __u64 ns;
1: + bool waited;
1: + bool valid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_set_irq {
1: + struct trace_entry ent;
1: + unsigned int gsi;
1: + int level;
1: + int irq_source_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_ack_irq {
1: + struct trace_entry ent;
1: + unsigned int irqchip;
1: + unsigned int pin;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_mmio {
1: + struct trace_entry ent;
1: + u32 type;
1: + u32 len;
1: + u64 gpa;
1: + u64 val;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_fpu {
1: + struct trace_entry ent;
1: + u32 load;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_age_page {
1: + struct trace_entry ent;
1: + u64 hva;
1: + u64 gfn;
1: + u8 level;
1: + u8 referenced;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_halt_poll_ns {
1: + struct trace_entry ent;
1: + bool grow;
1: + unsigned int vcpu_id;
1: + unsigned int new;
1: + unsigned int old;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kvm_userspace_exit {};
1: +
1: +struct trace_event_data_offsets_kvm_vcpu_wakeup {};
1: +
1: +struct trace_event_data_offsets_kvm_set_irq {};
1: +
1: +struct trace_event_data_offsets_kvm_ack_irq {};
1: +
1: +struct trace_event_data_offsets_kvm_mmio {};
1: +
1: +struct trace_event_data_offsets_kvm_fpu {};
1: +
1: +struct trace_event_data_offsets_kvm_age_page {};
1: +
1: +struct trace_event_data_offsets_kvm_halt_poll_ns {};
1: +
1: +typedef void (*btf_trace_kvm_userspace_exit)(void *, __u32, int);
1: +
1: +typedef void (*btf_trace_kvm_vcpu_wakeup)(void *, __u64, bool, bool);
1: +
1: +typedef void (*btf_trace_kvm_set_irq)(void *, unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_kvm_ack_irq)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_mmio)(void *, int, int, u64, void *);
1: +
1: +typedef void (*btf_trace_kvm_fpu)(void *, int);
1: +
1: +typedef void (*btf_trace_kvm_age_page)(void *, ulong, int, struct kvm_memory_slot *, int);
1: +
1: +typedef void (*btf_trace_kvm_halt_poll_ns)(void *, bool, unsigned int, unsigned int, unsigned int);
1: +
1: +struct kvm_cpu_compat_check {
1: + void *opaque;
1: + int *ret;
1: +};
1: +
1: +struct kvm_vm_worker_thread_context {
1: + struct kvm *kvm;
1: + struct task_struct *parent;
1: + struct completion init_done;
1: + kvm_vm_thread_fn_t thread_fn;
1: + uintptr_t data;
1: + int err;
1: +};
1: +
1: +struct kvm_coalesced_mmio_dev {
1: + struct list_head list;
1: + struct kvm_io_device dev;
1: + struct kvm *kvm;
1: + struct kvm_coalesced_mmio_zone zone;
1: +};
1: +
1: +enum {
1: + WORK_STRUCT_PENDING_BIT = 0,
1: + WORK_STRUCT_DELAYED_BIT = 1,
1: + WORK_STRUCT_PWQ_BIT = 2,
1: + WORK_STRUCT_LINKED_BIT = 3,
1: + WORK_STRUCT_COLOR_SHIFT = 4,
1: + WORK_STRUCT_COLOR_BITS = 4,
1: + WORK_STRUCT_PENDING = 1,
1: + WORK_STRUCT_DELAYED = 2,
1: + WORK_STRUCT_PWQ = 4,
1: + WORK_STRUCT_LINKED = 8,
1: + WORK_STRUCT_STATIC = 0,
1: + WORK_NR_COLORS = 15,
1: + WORK_NO_COLOR = 15,
1: + WORK_CPU_UNBOUND = 128,
1: + WORK_STRUCT_FLAG_BITS = 8,
1: + WORK_OFFQ_FLAG_BASE = 4,
1: + __WORK_OFFQ_CANCELING = 4,
1: + WORK_OFFQ_CANCELING = 16,
1: + WORK_OFFQ_FLAG_BITS = 1,
1: + WORK_OFFQ_POOL_SHIFT = 5,
1: + WORK_OFFQ_LEFT = 59,
1: + WORK_OFFQ_POOL_BITS = 31,
1: + WORK_OFFQ_POOL_NONE = 2147483647,
1: + WORK_STRUCT_FLAG_MASK = 255,
1: + WORK_STRUCT_WQ_DATA_MASK = 4294967040,
1: + WORK_STRUCT_NO_POOL = 4294967264,
1: + WORK_BUSY_PENDING = 1,
1: + WORK_BUSY_RUNNING = 2,
1: + WORKER_DESC_LEN = 24,
1: +};
1: +
1: +struct irq_bypass_consumer;
1: +
1: +struct irq_bypass_producer {
1: + struct list_head node;
1: + void *token;
1: + int irq;
1: + int (*add_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: + void (*del_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: + void (*stop)(struct irq_bypass_producer *);
1: + void (*start)(struct irq_bypass_producer *);
1: +};
1: +
1: +struct irq_bypass_consumer {
1: + struct list_head node;
1: + void *token;
1: + int (*add_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + void (*del_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + void (*stop)(struct irq_bypass_consumer *);
1: + void (*start)(struct irq_bypass_consumer *);
1: +};
1: +
1: +enum {
1: + kvm_ioeventfd_flag_nr_datamatch = 0,
1: + kvm_ioeventfd_flag_nr_pio = 1,
1: + kvm_ioeventfd_flag_nr_deassign = 2,
1: + kvm_ioeventfd_flag_nr_virtio_ccw_notify = 3,
1: + kvm_ioeventfd_flag_nr_fast_mmio = 4,
1: + kvm_ioeventfd_flag_nr_max = 5,
1: +};
1: +
1: +struct fd {
1: + struct file *file;
1: + unsigned int flags;
1: +};
1: +
1: +struct kvm_s390_adapter_int {
1: + u64 ind_addr;
1: + u64 summary_addr;
1: + u64 ind_offset;
1: + u32 summary_offset;
1: + u32 adapter_id;
1: +};
1: +
1: +struct kvm_hv_sint {
1: + u32 vcpu;
1: + u32 sint;
1: +};
1: +
1: +struct kvm_kernel_irq_routing_entry {
1: + u32 gsi;
1: + u32 type;
1: + int (*set)(struct kvm_kernel_irq_routing_entry *, struct kvm *, int, int, bool);
1: + union {
1: + struct {
1: + unsigned int irqchip;
1: + unsigned int pin;
1: + } irqchip;
1: + struct {
1: + u32 address_lo;
1: + u32 address_hi;
1: + u32 data;
1: + u32 flags;
1: + u32 devid;
1: + } msi;
1: + struct kvm_s390_adapter_int adapter;
1: + struct kvm_hv_sint hv_sint;
1: + };
1: + struct hlist_node link;
1: +};
1: +
1: +struct kvm_irq_ack_notifier {
1: + struct hlist_node link;
1: + unsigned int gsi;
1: + void (*irq_acked)(struct kvm_irq_ack_notifier *);
1: +};
1: +
1: +typedef struct poll_table_struct poll_table;
1: +
1: +struct kvm_kernel_irqfd_resampler {
1: + struct kvm *kvm;
1: + struct list_head list;
1: + struct kvm_irq_ack_notifier notifier;
1: + struct list_head link;
1: +};
1: +
1: +struct kvm_kernel_irqfd {
1: + struct kvm *kvm;
1: + wait_queue_entry_t wait;
1: + struct kvm_kernel_irq_routing_entry irq_entry;
1: + seqcount_spinlock_t irq_entry_sc;
1: + int gsi;
1: + struct work_struct inject;
1: + struct kvm_kernel_irqfd_resampler *resampler;
1: + struct eventfd_ctx *resamplefd;
1: + struct list_head resampler_link;
1: + struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + poll_table pt;
1: + struct work_struct shutdown;
1: + struct irq_bypass_consumer consumer;
1: + struct irq_bypass_producer *producer;
1: +};
1: +
1: +struct _ioeventfd {
1: + struct list_head list;
1: + u64 addr;
1: + int length;
1: + struct eventfd_ctx *eventfd;
1: + u64 datamatch;
1: + struct kvm_io_device dev;
1: + u8 bus_idx;
1: + bool wildcard;
1: +};
1: +
1: +struct vfio_group;
1: +
1: +struct kvm_vfio_group {
1: + struct list_head node;
1: + struct vfio_group *vfio_group;
1: +};
1: +
1: +struct kvm_vfio {
1: + struct list_head group_list;
1: + struct mutex lock;
1: + bool noncoherent;
1: +};
1: +
1: +struct kvm_vcpu_init {
1: + __u32 target;
1: + __u32 features[7];
1: +};
1: +
1: +struct kvm_vcpu_events {
1: + struct {
1: + __u8 serror_pending;
1: + __u8 serror_has_esr;
1: + __u8 ext_dabt_pending;
1: + __u8 pad[5];
1: + __u64 serror_esr;
1: + } exception;
1: + __u32 reserved[12];
1: +};
1: +
1: +struct kvm_reg_list {
1: + __u64 n;
1: + __u64 reg[0];
1: +};
1: +
1: +struct kvm_one_reg {
1: + __u64 id;
1: + __u64 addr;
1: +};
1: +
1: +struct kvm_arm_device_addr {
1: + __u64 id;
1: + __u64 addr;
1: +};
1: +
1: +enum vgic_type {
1: + VGIC_V2 = 0,
1: + VGIC_V3 = 1,
1: +};
1: +
1: +struct vgic_global {
1: + enum vgic_type type;
1: + phys_addr_t vcpu_base;
1: + void *vcpu_base_va;
1: + void *vcpu_hyp_va;
1: + void *vctrl_base;
1: + void *vctrl_hyp;
1: + int nr_lr;
1: + unsigned int maint_irq;
1: + int max_gic_vcpus;
1: + bool can_emulate_gicv2;
1: + bool has_gicv4;
1: + bool has_gicv4_1;
1: + struct static_key_false gicv3_cpuif;
1: + u32 ich_vtr_el2;
1: +};
1: +
1: +struct timer_map {
1: + struct arch_timer_context *direct_vtimer;
1: + struct arch_timer_context *direct_ptimer;
1: + struct arch_timer_context *emul_ptimer;
1: +};
1: +
1: +typedef u64 kvm_pte_t;
1: +
1: +struct kvm_pgtable {
1: + u32 ia_bits;
1: + u32 start_level;
1: + kvm_pte_t *pgd;
1: + struct kvm_s2_mmu *mmu;
1: +};
1: +
1: +struct kvm_pmu_events {
1: + u32 events_host;
1: + u32 events_guest;
1: +};
1: +
1: +struct kvm_host_data {
1: + struct kvm_cpu_context host_ctxt;
1: + struct kvm_pmu_events pmu_events;
1: + long: 64;
1: +};
1: +
1: +struct trace_event_raw_kvm_entry {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_exit {
1: + struct trace_entry ent;
1: + int ret;
1: + unsigned int esr_ec;
1: + long unsigned int vcpu_pc;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_guest_fault {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int hsr;
1: + long unsigned int hxfar;
1: + long long unsigned int ipa;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_access_fault {
1: + struct trace_entry ent;
1: + long unsigned int ipa;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_irq_line {
1: + struct trace_entry ent;
1: + unsigned int type;
1: + int vcpu_idx;
1: + int irq_num;
1: + int level;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_mmio_emulate {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int instr;
1: + long unsigned int cpsr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_unmap_hva_range {
1: + struct trace_entry ent;
1: + long unsigned int start;
1: + long unsigned int end;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_set_spte_hva {
1: + struct trace_entry ent;
1: + long unsigned int hva;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_age_hva {
1: + struct trace_entry ent;
1: + long unsigned int start;
1: + long unsigned int end;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_test_age_hva {
1: + struct trace_entry ent;
1: + long unsigned int hva;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_set_way_flush {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool cache;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_toggle_cache {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool was;
1: + bool now;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_timer_update_irq {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + __u32 irq;
1: + int level;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_get_timer_map {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + int direct_vtimer;
1: + int direct_ptimer;
1: + int emul_ptimer;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_timer_save_state {
1: + struct trace_entry ent;
1: + long unsigned int ctl;
1: + long long unsigned int cval;
1: + int timer_idx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_timer_restore_state {
1: + struct trace_entry ent;
1: + long unsigned int ctl;
1: + long long unsigned int cval;
1: + int timer_idx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_timer_hrtimer_expire {
1: + struct trace_entry ent;
1: + int timer_idx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_timer_emulate {
1: + struct trace_entry ent;
1: + int timer_idx;
1: + bool should_fire;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kvm_entry {};
1: +
1: +struct trace_event_data_offsets_kvm_exit {};
1: +
1: +struct trace_event_data_offsets_kvm_guest_fault {};
1: +
1: +struct trace_event_data_offsets_kvm_access_fault {};
1: +
1: +struct trace_event_data_offsets_kvm_irq_line {};
1: +
1: +struct trace_event_data_offsets_kvm_mmio_emulate {};
1: +
1: +struct trace_event_data_offsets_kvm_unmap_hva_range {};
1: +
1: +struct trace_event_data_offsets_kvm_set_spte_hva {};
1: +
1: +struct trace_event_data_offsets_kvm_age_hva {};
1: +
1: +struct trace_event_data_offsets_kvm_test_age_hva {};
1: +
1: +struct trace_event_data_offsets_kvm_set_way_flush {};
1: +
1: +struct trace_event_data_offsets_kvm_toggle_cache {};
1: +
1: +struct trace_event_data_offsets_kvm_timer_update_irq {};
1: +
1: +struct trace_event_data_offsets_kvm_get_timer_map {};
1: +
1: +struct trace_event_data_offsets_kvm_timer_save_state {};
1: +
1: +struct trace_event_data_offsets_kvm_timer_restore_state {};
1: +
1: +struct trace_event_data_offsets_kvm_timer_hrtimer_expire {};
1: +
1: +struct trace_event_data_offsets_kvm_timer_emulate {};
1: +
1: +typedef void (*btf_trace_kvm_entry)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_exit)(void *, int, unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_guest_fault)(void *, long unsigned int, long unsigned int, long unsigned int, long long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_access_fault)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_irq_line)(void *, unsigned int, int, int, int);
1: +
1: +typedef void (*btf_trace_kvm_mmio_emulate)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_unmap_hva_range)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_set_spte_hva)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_age_hva)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_test_age_hva)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_set_way_flush)(void *, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_kvm_toggle_cache)(void *, long unsigned int, bool, bool);
1: +
1: +typedef void (*btf_trace_kvm_timer_update_irq)(void *, long unsigned int, __u32, int);
1: +
1: +typedef void (*btf_trace_kvm_get_timer_map)(void *, long unsigned int, struct timer_map *);
1: +
1: +typedef void (*btf_trace_kvm_timer_save_state)(void *, struct arch_timer_context *);
1: +
1: +typedef void (*btf_trace_kvm_timer_restore_state)(void *, struct arch_timer_context *);
1: +
1: +typedef void (*btf_trace_kvm_timer_hrtimer_expire)(void *, struct arch_timer_context *);
1: +
1: +typedef void (*btf_trace_kvm_timer_emulate)(void *, struct arch_timer_context *, bool);
1: +
1: +enum kvm_pgtable_prot {
1: + KVM_PGTABLE_PROT_X = 1,
1: + KVM_PGTABLE_PROT_W = 2,
1: + KVM_PGTABLE_PROT_R = 4,
1: + KVM_PGTABLE_PROT_DEVICE = 8,
1: +};
1: +
1: +typedef long unsigned int hva_t;
1: +
1: +enum kvm_arch_timers {
1: + TIMER_PTIMER = 0,
1: + TIMER_VTIMER = 1,
1: + NR_KVM_TIMERS = 2,
1: +};
1: +
1: +enum exception_type {
1: + except_type_sync = 0,
1: + except_type_irq = 128,
1: + except_type_fiq = 256,
1: + except_type_serror = 384,
1: +};
1: +
1: +struct sys_reg_params;
1: +
1: +struct sys_reg_desc {
1: + const char *name;
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + bool (*access)(struct kvm_vcpu *, struct sys_reg_params *, const struct sys_reg_desc *);
1: + void (*reset)(struct kvm_vcpu *, const struct sys_reg_desc *);
1: + int reg;
1: + u64 val;
1: + int (*__get_user)(struct kvm_vcpu *, const struct sys_reg_desc *, const struct kvm_one_reg *, void *);
1: + int (*set_user)(struct kvm_vcpu *, const struct sys_reg_desc *, const struct kvm_one_reg *, void *);
1: + unsigned int (*visibility)(const struct kvm_vcpu *, const struct sys_reg_desc *);
1: +};
1: +
1: +struct sys_reg_params {
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + u64 regval;
1: + bool is_write;
1: + bool is_aarch32;
1: + bool is_32bit;
1: +};
1: +
1: +struct trace_event_raw_kvm_wfx_arm64 {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool is_wfe;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_hvc_arm64 {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int r0;
1: + long unsigned int imm;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_arm_setup_debug {
1: + struct trace_entry ent;
1: + struct kvm_vcpu *vcpu;
1: + __u32 guest_debug;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_arm_clear_debug {
1: + struct trace_entry ent;
1: + __u32 guest_debug;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_arm_set_dreg32 {
1: + struct trace_entry ent;
1: + const char *name;
1: + __u32 value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_arm_set_regset {
1: + struct trace_entry ent;
1: + const char *name;
1: + int len;
1: + u64 ctrls[16];
1: + u64 values[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_trap_reg {
1: + struct trace_entry ent;
1: + const char *fn;
1: + int reg;
1: + bool is_write;
1: + u64 write_value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_handle_sys_reg {
1: + struct trace_entry ent;
1: + long unsigned int hsr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_sys_access {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool is_write;
1: + const char *name;
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kvm_set_guest_debug {
1: + struct trace_entry ent;
1: + struct kvm_vcpu *vcpu;
1: + __u32 guest_debug;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kvm_wfx_arm64 {};
1: +
1: +struct trace_event_data_offsets_kvm_hvc_arm64 {};
1: +
1: +struct trace_event_data_offsets_kvm_arm_setup_debug {};
1: +
1: +struct trace_event_data_offsets_kvm_arm_clear_debug {};
1: +
1: +struct trace_event_data_offsets_kvm_arm_set_dreg32 {};
1: +
1: +struct trace_event_data_offsets_kvm_arm_set_regset {};
1: +
1: +struct trace_event_data_offsets_trap_reg {};
1: +
1: +struct trace_event_data_offsets_kvm_handle_sys_reg {};
1: +
1: +struct trace_event_data_offsets_kvm_sys_access {};
1: +
1: +struct trace_event_data_offsets_kvm_set_guest_debug {};
1: +
1: +typedef void (*btf_trace_kvm_wfx_arm64)(void *, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_kvm_hvc_arm64)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_arm_setup_debug)(void *, struct kvm_vcpu *, __u32);
1: +
1: +typedef void (*btf_trace_kvm_arm_clear_debug)(void *, __u32);
1: +
1: +typedef void (*btf_trace_kvm_arm_set_dreg32)(void *, const char *, __u32);
1: +
1: +typedef void (*btf_trace_kvm_arm_set_regset)(void *, const char *, int, __u64 *, __u64 *);
1: +
1: +typedef void (*btf_trace_trap_reg)(void *, const char *, int, bool, u64);
1: +
1: +typedef void (*btf_trace_kvm_handle_sys_reg)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_kvm_sys_access)(void *, long unsigned int, struct sys_reg_params *, const struct sys_reg_desc *);
1: +
1: +typedef void (*btf_trace_kvm_set_guest_debug)(void *, struct kvm_vcpu *, __u32);
1: +
1: +typedef int (*exit_handle_fn)(struct kvm_vcpu *);
1: +
1: +struct sve_state_reg_region {
1: + unsigned int koffset;
1: + unsigned int klen;
1: + unsigned int upad;
1: +};
1: +
1: +struct __va_list {
1: + void *__stack;
1: + void *__gr_top;
1: + void *__vr_top;
1: + int __gr_offs;
1: + int __vr_offs;
1: +};
1: +
1: +typedef struct __va_list __gnuc_va_list;
1: +
1: +typedef __gnuc_va_list va_list;
1: +
1: +struct va_format {
1: + const char *fmt;
1: + va_list *va;
1: +};
1: +
1: +enum kvm_arch_timer_regs {
1: + TIMER_REG_CNT = 0,
1: + TIMER_REG_CVAL = 1,
1: + TIMER_REG_TVAL = 2,
1: + TIMER_REG_CTL = 3,
1: +};
1: +
1: +struct vgic_vmcr {
1: + u32 grpen0;
1: + u32 grpen1;
1: + u32 ackctl;
1: + u32 fiqen;
1: + u32 cbpr;
1: + u32 eoim;
1: + u32 abpr;
1: + u32 bpr;
1: + u32 pmr;
1: +};
1: +
1: +struct cyclecounter {
1: + u64 (*read)(const struct cyclecounter *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: +};
1: +
1: +struct timecounter {
1: + const struct cyclecounter *cc;
1: + u64 cycle_last;
1: + u64 nsec;
1: + u64 mask;
1: + u64 frac;
1: +};
1: +
1: +struct arch_timer_kvm_info {
1: + struct timecounter timecounter;
1: + int virtual_irq;
1: + int physical_irq;
1: +};
1: +
1: +enum hrtimer_mode {
1: + HRTIMER_MODE_ABS = 0,
1: + HRTIMER_MODE_REL = 1,
1: + HRTIMER_MODE_PINNED = 2,
1: + HRTIMER_MODE_SOFT = 4,
1: + HRTIMER_MODE_HARD = 8,
1: + HRTIMER_MODE_ABS_PINNED = 2,
1: + HRTIMER_MODE_REL_PINNED = 3,
1: + HRTIMER_MODE_ABS_SOFT = 4,
1: + HRTIMER_MODE_REL_SOFT = 5,
1: + HRTIMER_MODE_ABS_PINNED_SOFT = 6,
1: + HRTIMER_MODE_REL_PINNED_SOFT = 7,
1: + HRTIMER_MODE_ABS_HARD = 8,
1: + HRTIMER_MODE_REL_HARD = 9,
1: + HRTIMER_MODE_ABS_PINNED_HARD = 10,
1: + HRTIMER_MODE_REL_PINNED_HARD = 11,
1: +};
1: +
1: +struct trace_event_raw_vgic_update_irq_pending {
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + __u32 irq;
1: + bool level;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_vgic_update_irq_pending {};
1: +
1: +typedef void (*btf_trace_vgic_update_irq_pending)(void *, long unsigned int, __u32, bool);
1: +
1: +enum gic_type {
1: + GIC_V2 = 0,
1: + GIC_V3 = 1,
1: +};
1: +
1: +struct gic_kvm_info {
1: + enum gic_type type;
1: + struct resource vcpu;
1: + unsigned int maint_irq;
1: + struct resource vctrl;
1: + bool has_v4;
1: + bool has_v4_1;
1: +};
1: +
1: +struct its_vlpi_map {
1: + struct its_vm *vm;
1: + struct its_vpe *vpe;
1: + u32 vintid;
1: + u8 properties;
1: + bool db_enabled;
1: +};
1: +
1: +struct vgic_reg_attr {
1: + struct kvm_vcpu *vcpu;
1: + gpa_t addr;
1: +};
1: +
1: +struct its_device {
1: + struct list_head dev_list;
1: + struct list_head itt_head;
1: + u32 num_eventid_bits;
1: + gpa_t itt_addr;
1: + u32 device_id;
1: +};
1: +
1: +struct its_collection {
1: + struct list_head coll_list;
1: + u32 collection_id;
1: + u32 target_addr;
1: +};
1: +
1: +struct its_ite {
1: + struct list_head ite_list;
1: + struct vgic_irq *irq;
1: + struct its_collection *collection;
1: + u32 event_id;
1: +};
1: +
1: +struct vgic_translation_cache_entry {
1: + struct list_head entry;
1: + phys_addr_t db;
1: + u32 devid;
1: + u32 eventid;
1: + struct vgic_irq *irq;
1: +};
1: +
1: +struct vgic_its_abi {
1: + int cte_esz;
1: + int dte_esz;
1: + int ite_esz;
1: + int (*save_tables)(struct vgic_its *);
1: + int (*restore_tables)(struct vgic_its *);
1: + int (*commit)(struct vgic_its *);
1: +};
1: +
1: +typedef int (*entry_fn_t)(struct vgic_its *, u32, void *, void *);
1: +
1: +struct vgic_state_iter {
1: + int nr_cpus;
1: + int nr_spis;
1: + int nr_lpis;
1: + int dist_id;
1: + int vcpu_id;
1: + int intid;
1: + int lpi_idx;
1: + u32 *lpi_array;
1: +};
1: +
1: +struct kvm_pmu_event_filter {
1: + __u16 base_event;
1: + __u16 nevents;
1: + __u8 action;
1: + __u8 pad[3];
1: +};
1: +
1: +struct tlb_inv_context {
1: + long unsigned int flags;
1: + u64 tcr;
1: + u64 sctlr;
1: +};
1: +
1: +struct tlb_inv_context___2 {
1: + u64 tcr;
1: +};
1: +
1: +enum kvm_pgtable_walk_flags {
1: + KVM_PGTABLE_WALK_LEAF = 1,
1: + KVM_PGTABLE_WALK_TABLE_PRE = 2,
1: + KVM_PGTABLE_WALK_TABLE_POST = 4,
1: +};
1: +
1: +typedef int (*kvm_pgtable_visitor_fn_t)(u64, u64, u32, kvm_pte_t *, enum kvm_pgtable_walk_flags, void * const);
1: +
1: +struct kvm_pgtable_walker {
1: + const kvm_pgtable_visitor_fn_t cb;
1: + void * const arg;
1: + const enum kvm_pgtable_walk_flags flags;
1: +};
1: +
1: +struct kvm_pgtable_walk_data {
1: + struct kvm_pgtable *pgt;
1: + struct kvm_pgtable_walker *walker;
1: + u64 addr;
1: + u64 end;
1: +};
1: +
1: +struct hyp_map_data {
1: + u64 phys;
1: + kvm_pte_t attr;
1: +};
1: +
1: +struct stage2_map_data {
1: + u64 phys;
1: + kvm_pte_t attr;
1: + kvm_pte_t *anchor;
1: + struct kvm_s2_mmu *mmu;
1: + struct kvm_mmu_memory_cache *memcache;
1: +};
1: +
1: +struct stage2_attr_data {
1: + kvm_pte_t attr_set;
1: + kvm_pte_t attr_clr;
1: + kvm_pte_t pte;
1: + u32 level;
1: +};
1: +
1: +typedef s8 int8_t;
1: +
1: +typedef s16 int16_t;
1: +
1: +typedef u16 uint16_t;
1: +
1: +typedef uint64_t xen_pfn_t;
1: +
1: +typedef uint64_t xen_ulong_t;
1: +
1: +typedef struct {
1: + union {
1: + unsigned char *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_uchar;
1: +
1: +typedef struct {
1: + union {
1: + char *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_char;
1: +
1: +typedef struct {
1: + union {
1: + void *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_void;
1: +
1: +typedef struct {
1: + union {
1: + uint64_t *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_uint64_t;
1: +
1: +typedef struct {
1: + union {
1: + uint32_t *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_uint32_t;
1: +
1: +struct arch_vcpu_info {};
1: +
1: +struct arch_shared_info {};
1: +
1: +struct pvclock_vcpu_time_info {
1: + u32 version;
1: + u32 pad0;
1: + u64 tsc_timestamp;
1: + u64 system_time;
1: + u32 tsc_to_system_mul;
1: + s8 tsc_shift;
1: + u8 flags;
1: + u8 pad[2];
1: +};
1: +
1: +struct pvclock_wall_clock {
1: + u32 version;
1: + u32 sec;
1: + u32 nsec;
1: + u32 sec_hi;
1: +};
1: +
1: +typedef uint16_t domid_t;
1: +
1: +struct vcpu_info {
1: + uint8_t evtchn_upcall_pending;
1: + uint8_t evtchn_upcall_mask;
1: + xen_ulong_t evtchn_pending_sel;
1: + struct arch_vcpu_info arch;
1: + struct pvclock_vcpu_time_info time;
1: +};
1: +
1: +struct shared_info {
1: + struct vcpu_info vcpu_info[1];
1: + xen_ulong_t evtchn_pending[64];
1: + xen_ulong_t evtchn_mask[64];
1: + struct pvclock_wall_clock wc;
1: + struct arch_shared_info arch;
1: +};
1: +
1: +struct start_info {
1: + char magic[32];
1: + long unsigned int nr_pages;
1: + long unsigned int shared_info;
1: + uint32_t flags;
1: + xen_pfn_t store_mfn;
1: + uint32_t store_evtchn;
1: + union {
1: + struct {
1: + xen_pfn_t mfn;
1: + uint32_t evtchn;
1: + } domU;
1: + struct {
1: + uint32_t info_off;
1: + uint32_t info_size;
1: + } dom0;
1: + } console;
1: + long unsigned int pt_base;
1: + long unsigned int nr_pt_frames;
1: + long unsigned int mfn_list;
1: + long unsigned int mod_start;
1: + long unsigned int mod_len;
1: + int8_t cmd_line[1024];
1: + long unsigned int first_p2m_pfn;
1: + long unsigned int nr_p2m_frames;
1: +};
1: +
1: +enum vdso_clock_mode {
1: + VDSO_CLOCKMODE_NONE = 0,
1: + VDSO_CLOCKMODE_ARCHTIMER = 1,
1: + VDSO_CLOCKMODE_ARCHTIMER_NOCOMPAT = 2,
1: + VDSO_CLOCKMODE_MAX = 3,
1: + VDSO_CLOCKMODE_TIMENS = 2147483647,
1: +};
1: +
1: +struct clocksource {
1: + u64 (*read)(struct clocksource *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: + u64 max_idle_ns;
1: + u32 maxadj;
1: + u64 max_cycles;
1: + const char *name;
1: + struct list_head list;
1: + int rating;
1: + enum vdso_clock_mode vdso_clock_mode;
1: + long unsigned int flags;
1: + int (*enable)(struct clocksource *);
1: + void (*disable)(struct clocksource *);
1: + void (*suspend)(struct clocksource *);
1: + void (*resume)(struct clocksource *);
1: + void (*mark_unstable)(struct clocksource *);
1: + void (*tick_stable)(struct clocksource *);
1: + struct module *owner;
1: +};
1: +
1: +struct sched_shutdown {
1: + unsigned int reason;
1: +};
1: +
1: +struct xenpf_settime32 {
1: + uint32_t secs;
1: + uint32_t nsecs;
1: + uint64_t system_time;
1: +};
1: +
1: +struct xenpf_settime64 {
1: + uint64_t secs;
1: + uint32_t nsecs;
1: + uint32_t mbz;
1: + uint64_t system_time;
1: +};
1: +
1: +struct xenpf_add_memtype {
1: + xen_pfn_t mfn;
1: + uint64_t nr_mfns;
1: + uint32_t type;
1: + uint32_t handle;
1: + uint32_t reg;
1: +};
1: +
1: +struct xenpf_del_memtype {
1: + uint32_t handle;
1: + uint32_t reg;
1: +};
1: +
1: +struct xenpf_read_memtype {
1: + uint32_t reg;
1: + xen_pfn_t mfn;
1: + uint64_t nr_mfns;
1: + uint32_t type;
1: +};
1: +
1: +struct xenpf_microcode_update {
1: + __guest_handle_void data;
1: + uint32_t length;
1: +};
1: +
1: +struct xenpf_platform_quirk {
1: + uint32_t quirk_id;
1: +};
1: +
1: +struct xenpf_efi_time {
1: + uint16_t year;
1: + uint8_t month;
1: + uint8_t day;
1: + uint8_t hour;
1: + uint8_t min;
1: + uint8_t sec;
1: + uint32_t ns;
1: + int16_t tz;
1: + uint8_t daylight;
1: +};
1: +
1: +struct xenpf_efi_guid {
1: + uint32_t data1;
1: + uint16_t data2;
1: + uint16_t data3;
1: + uint8_t data4[8];
1: +};
1: +
1: +struct xenpf_efi_runtime_call {
1: + uint32_t function;
1: + uint32_t misc;
1: + xen_ulong_t status;
1: + union {
1: + struct {
1: + struct xenpf_efi_time time;
1: + uint32_t resolution;
1: + uint32_t accuracy;
1: + } get_time;
1: + struct xenpf_efi_time set_time;
1: + struct xenpf_efi_time get_wakeup_time;
1: + struct xenpf_efi_time set_wakeup_time;
1: + struct {
1: + __guest_handle_void name;
1: + xen_ulong_t size;
1: + __guest_handle_void data;
1: + struct xenpf_efi_guid vendor_guid;
1: + } get_variable;
1: + struct {
1: + __guest_handle_void name;
1: + xen_ulong_t size;
1: + __guest_handle_void data;
1: + struct xenpf_efi_guid vendor_guid;
1: + } set_variable;
1: + struct {
1: + xen_ulong_t size;
1: + __guest_handle_void name;
1: + struct xenpf_efi_guid vendor_guid;
1: + } get_next_variable_name;
1: + struct {
1: + uint32_t attr;
1: + uint64_t max_store_size;
1: + uint64_t remain_store_size;
1: + uint64_t max_size;
1: + } query_variable_info;
1: + struct {
1: + __guest_handle_void capsule_header_array;
1: + xen_ulong_t capsule_count;
1: + uint64_t max_capsule_size;
1: + uint32_t reset_type;
1: + } query_capsule_capabilities;
1: + struct {
1: + __guest_handle_void capsule_header_array;
1: + xen_ulong_t capsule_count;
1: + uint64_t sg_list;
1: + } update_capsule;
1: + } u;
1: +};
1: +
1: +union xenpf_efi_info {
1: + uint32_t version;
1: + struct {
1: + uint64_t addr;
1: + uint32_t nent;
1: + } cfg;
1: + struct {
1: + uint32_t revision;
1: + uint32_t bufsz;
1: + __guest_handle_void name;
1: + } vendor;
1: + struct {
1: + uint64_t addr;
1: + uint64_t size;
1: + uint64_t attr;
1: + uint32_t type;
1: + } mem;
1: +};
1: +
1: +struct xenpf_firmware_info {
1: + uint32_t type;
1: + uint32_t index;
1: + union {
1: + struct {
1: + uint8_t device;
1: + uint8_t version;
1: + uint16_t interface_support;
1: + uint16_t legacy_max_cylinder;
1: + uint8_t legacy_max_head;
1: + uint8_t legacy_sectors_per_track;
1: + __guest_handle_void edd_params;
1: + } disk_info;
1: + struct {
1: + uint8_t device;
1: + uint32_t mbr_signature;
1: + } disk_mbr_signature;
1: + struct {
1: + uint8_t capabilities;
1: + uint8_t edid_transfer_time;
1: + __guest_handle_uchar edid;
1: + } vbeddc_info;
1: + union xenpf_efi_info efi_info;
1: + uint8_t kbd_shift_flags;
1: + } u;
1: +};
1: +
1: +struct xenpf_enter_acpi_sleep {
1: + uint16_t val_a;
1: + uint16_t val_b;
1: + uint32_t sleep_state;
1: + uint32_t flags;
1: +};
1: +
1: +struct xenpf_change_freq {
1: + uint32_t flags;
1: + uint32_t cpu;
1: + uint64_t freq;
1: +};
1: +
1: +struct xenpf_getidletime {
1: + __guest_handle_uchar cpumap_bitmap;
1: + uint32_t cpumap_nr_cpus;
1: + __guest_handle_uint64_t idletime;
1: + uint64_t now;
1: +};
1: +
1: +struct xen_power_register {
1: + uint32_t space_id;
1: + uint32_t bit_width;
1: + uint32_t bit_offset;
1: + uint32_t access_size;
1: + uint64_t address;
1: +};
1: +
1: +struct xen_processor_csd {
1: + uint32_t domain;
1: + uint32_t coord_type;
1: + uint32_t num;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + struct xen_processor_csd *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_xen_processor_csd;
1: +
1: +struct xen_processor_cx {
1: + struct xen_power_register reg;
1: + uint8_t type;
1: + uint32_t latency;
1: + uint32_t power;
1: + uint32_t dpcnt;
1: + __guest_handle_xen_processor_csd dp;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + struct xen_processor_cx *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_xen_processor_cx;
1: +
1: +struct xen_processor_flags {
1: + uint32_t bm_control: 1;
1: + uint32_t bm_check: 1;
1: + uint32_t has_cst: 1;
1: + uint32_t power_setup_done: 1;
1: + uint32_t bm_rld_set: 1;
1: +};
1: +
1: +struct xen_processor_power {
1: + uint32_t count;
1: + struct xen_processor_flags flags;
1: + __guest_handle_xen_processor_cx states;
1: +};
1: +
1: +struct xen_pct_register {
1: + uint8_t descriptor;
1: + uint16_t length;
1: + uint8_t space_id;
1: + uint8_t bit_width;
1: + uint8_t bit_offset;
1: + uint8_t reserved;
1: + uint64_t address;
1: +};
1: +
1: +struct xen_processor_px {
1: + uint64_t core_frequency;
1: + uint64_t power;
1: + uint64_t transition_latency;
1: + uint64_t bus_master_latency;
1: + uint64_t control;
1: + uint64_t status;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + struct xen_processor_px *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_xen_processor_px;
1: +
1: +struct xen_psd_package {
1: + uint64_t num_entries;
1: + uint64_t revision;
1: + uint64_t domain;
1: + uint64_t coord_type;
1: + uint64_t num_processors;
1: +};
1: +
1: +struct xen_processor_performance {
1: + uint32_t flags;
1: + uint32_t platform_limit;
1: + struct xen_pct_register control_register;
1: + struct xen_pct_register status_register;
1: + uint32_t state_count;
1: + __guest_handle_xen_processor_px states;
1: + struct xen_psd_package domain_info;
1: + uint32_t shared_type;
1: +};
1: +
1: +struct xenpf_set_processor_pminfo {
1: + uint32_t id;
1: + uint32_t type;
1: + union {
1: + struct xen_processor_power power;
1: + struct xen_processor_performance perf;
1: + __guest_handle_uint32_t pdc;
1: + };
1: +};
1: +
1: +struct xenpf_pcpuinfo {
1: + uint32_t xen_cpuid;
1: + uint32_t max_present;
1: + uint32_t flags;
1: + uint32_t apic_id;
1: + uint32_t acpi_id;
1: +};
1: +
1: +struct xenpf_cpu_ol {
1: + uint32_t cpuid;
1: +};
1: +
1: +struct xenpf_cpu_hotadd {
1: + uint32_t apic_id;
1: + uint32_t acpi_id;
1: + uint32_t pxm;
1: +};
1: +
1: +struct xenpf_mem_hotadd {
1: + uint64_t spfn;
1: + uint64_t epfn;
1: + uint32_t pxm;
1: + uint32_t flags;
1: +};
1: +
1: +struct xenpf_core_parking {
1: + uint32_t type;
1: + uint32_t idle_nums;
1: +};
1: +
1: +struct xenpf_symdata {
1: + uint32_t namelen;
1: + uint32_t symnum;
1: + __guest_handle_char name;
1: + uint64_t address;
1: + char type;
1: +};
1: +
1: +struct xen_platform_op {
1: + uint32_t cmd;
1: + uint32_t interface_version;
1: + union {
1: + struct xenpf_settime32 settime32;
1: + struct xenpf_settime64 settime64;
1: + struct xenpf_add_memtype add_memtype;
1: + struct xenpf_del_memtype del_memtype;
1: + struct xenpf_read_memtype read_memtype;
1: + struct xenpf_microcode_update microcode;
1: + struct xenpf_platform_quirk platform_quirk;
1: + struct xenpf_efi_runtime_call efi_runtime_call;
1: + struct xenpf_firmware_info firmware_info;
1: + struct xenpf_enter_acpi_sleep enter_acpi_sleep;
1: + struct xenpf_change_freq change_freq;
1: + struct xenpf_getidletime getidletime;
1: + struct xenpf_set_processor_pminfo set_pminfo;
1: + struct xenpf_pcpuinfo pcpu_info;
1: + struct xenpf_cpu_ol cpu_ol;
1: + struct xenpf_cpu_hotadd cpu_add;
1: + struct xenpf_mem_hotadd mem_add;
1: + struct xenpf_core_parking core_parking;
1: + struct xenpf_symdata symdata;
1: + uint8_t pad[128];
1: + } u;
1: +};
1: +
1: +struct xen_memory_region {
1: + long unsigned int start_pfn;
1: + long unsigned int n_pfns;
1: +};
1: +
1: +struct grant_frames {
1: + xen_pfn_t *pfn;
1: + unsigned int count;
1: + void *vaddr;
1: +};
1: +
1: +struct xen_hvm_param {
1: + domid_t domid;
1: + uint32_t index;
1: + uint64_t value;
1: +};
1: +
1: +struct vcpu_register_vcpu_info {
1: + uint64_t mfn;
1: + uint32_t offset;
1: + uint32_t rsvd;
1: +};
1: +
1: +struct xen_add_to_physmap {
1: + domid_t domid;
1: + uint16_t size;
1: + unsigned int space;
1: + xen_ulong_t idx;
1: + xen_pfn_t gpfn;
1: +};
1: +
1: +struct xsd_errors {
1: + int errnum;
1: + const char *errstring;
1: +};
1: +
1: +struct tk_read_base {
1: + struct clocksource *clock;
1: + u64 mask;
1: + u64 cycle_last;
1: + u32 mult;
1: + u32 shift;
1: + u64 xtime_nsec;
1: + ktime_t base;
1: + u64 base_real;
1: +};
1: +
1: +struct timekeeper {
1: + struct tk_read_base tkr_mono;
1: + struct tk_read_base tkr_raw;
1: + u64 xtime_sec;
1: + long unsigned int ktime_sec;
1: + struct timespec64 wall_to_monotonic;
1: + ktime_t offs_real;
1: + ktime_t offs_boot;
1: + ktime_t offs_tai;
1: + s32 tai_offset;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: + ktime_t next_leap_ktime;
1: + u64 raw_sec;
1: + struct timespec64 monotonic_to_boot;
1: + u64 cycle_interval;
1: + u64 xtime_interval;
1: + s64 xtime_remainder;
1: + u64 raw_interval;
1: + u64 ntp_tick;
1: + s64 ntp_error;
1: + u32 ntp_error_shift;
1: + u32 ntp_err_mult;
1: + u32 skip_second_overflow;
1: +};
1: +
1: +typedef uint16_t grant_status_t;
1: +
1: +typedef uint32_t grant_ref_t;
1: +
1: +typedef uint32_t grant_handle_t;
1: +
1: +struct gnttab_map_grant_ref {
1: + uint64_t host_addr;
1: + uint32_t flags;
1: + grant_ref_t ref;
1: + domid_t dom;
1: + int16_t status;
1: + grant_handle_t handle;
1: + uint64_t dev_bus_addr;
1: +};
1: +
1: +struct gnttab_unmap_grant_ref {
1: + uint64_t host_addr;
1: + uint64_t dev_bus_addr;
1: + grant_handle_t handle;
1: + int16_t status;
1: +};
1: +
1: +struct xen_p2m_entry {
1: + long unsigned int pfn;
1: + long unsigned int mfn;
1: + long unsigned int nr_pages;
1: + struct rb_node rbnode_phys;
1: +};
1: +
1: +struct gnttab_cache_flush {
1: + union {
1: + uint64_t dev_bus_addr;
1: + grant_ref_t ref;
1: + } a;
1: + uint16_t offset;
1: + uint16_t length;
1: + uint32_t op;
1: +};
1: +
1: +struct static_key_true {
1: + struct static_key key;
1: +};
1: +
1: +enum tk_offsets {
1: + TK_OFFS_REAL = 0,
1: + TK_OFFS_BOOT = 1,
1: + TK_OFFS_TAI = 2,
1: + TK_OFFS_MAX = 3,
1: +};
1: +
1: +struct clone_args {
1: + __u64 flags;
1: + __u64 pidfd;
1: + __u64 child_tid;
1: + __u64 parent_tid;
1: + __u64 exit_signal;
1: + __u64 stack;
1: + __u64 stack_size;
1: + __u64 tls;
1: + __u64 set_tid;
1: + __u64 set_tid_size;
1: + __u64 cgroup;
1: +};
1: +
1: +struct fdtable {
1: + unsigned int max_fds;
1: + struct file **fd;
1: + long unsigned int *close_on_exec;
1: + long unsigned int *open_fds;
1: + long unsigned int *full_fds_bits;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct files_struct {
1: + atomic_t count;
1: + bool resize_in_progress;
1: + wait_queue_head_t resize_wait;
1: + struct fdtable *fdt;
1: + struct fdtable fdtab;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t file_lock;
1: + unsigned int next_fd;
1: + long unsigned int close_on_exec_init[1];
1: + long unsigned int open_fds_init[1];
1: + long unsigned int full_fds_bits_init[1];
1: + struct file *fd_array[64];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_identity {
1: + struct files_struct *files;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *creds;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + long unsigned int fsize;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + refcount_t count;
1: +};
1: +
1: +struct io_uring_task {
1: + struct xarray xa;
1: + struct wait_queue_head wait;
1: + struct file *last;
1: + struct percpu_counter inflight;
1: + struct io_identity __identity;
1: + struct io_identity *identity;
1: + atomic_t in_idle;
1: + bool sqpoll;
1: +};
1: +
1: +struct robust_list {
1: + struct robust_list *next;
1: +};
1: +
1: +struct robust_list_head {
1: + struct robust_list list;
1: + long int futex_offset;
1: + struct robust_list *list_op_pending;
1: +};
1: +
1: +struct kernel_clone_args {
1: + u64 flags;
1: + int *pidfd;
1: + int *child_tid;
1: + int *parent_tid;
1: + int exit_signal;
1: + long unsigned int stack;
1: + long unsigned int stack_size;
1: + long unsigned int tls;
1: + pid_t *set_tid;
1: + size_t set_tid_size;
1: + int cgroup;
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: +};
1: +
1: +struct multiprocess_signals {
1: + sigset_t signal;
1: + struct hlist_node node;
1: +};
1: +
1: +typedef int (*proc_visitor)(struct task_struct *, void *);
1: +
1: +enum {
1: + IOPRIO_CLASS_NONE = 0,
1: + IOPRIO_CLASS_RT = 1,
1: + IOPRIO_CLASS_BE = 2,
1: + IOPRIO_CLASS_IDLE = 3,
1: +};
1: +
1: +enum {
1: + FUTEX_STATE_OK = 0,
1: + FUTEX_STATE_EXITING = 1,
1: + FUTEX_STATE_DEAD = 2,
1: +};
1: +
1: +enum proc_hidepid {
1: + HIDEPID_OFF = 0,
1: + HIDEPID_NO_ACCESS = 1,
1: + HIDEPID_INVISIBLE = 2,
1: + HIDEPID_NOT_PTRACEABLE = 4,
1: +};
1: +
1: +enum proc_pidonly {
1: + PROC_PIDONLY_OFF = 0,
1: + PROC_PIDONLY_ON = 1,
1: +};
1: +
1: +struct proc_fs_info {
1: + struct pid_namespace *pid_ns;
1: + struct dentry *proc_self;
1: + struct dentry *proc_thread_self;
1: + kgid_t pid_gid;
1: + enum proc_hidepid hide_pid;
1: + enum proc_pidonly pidonly;
1: +};
1: +
1: +struct trace_event_raw_task_newtask {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + long unsigned int clone_flags;
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_task_rename {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char oldcomm[16];
1: + char newcomm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_task_newtask {};
1: +
1: +struct trace_event_data_offsets_task_rename {};
1: +
1: +typedef void (*btf_trace_task_newtask)(void *, struct task_struct *, long unsigned int);
1: +
1: +typedef void (*btf_trace_task_rename)(void *, struct task_struct *, const char *);
1: +
1: +struct taint_flag {
1: + char c_true;
1: + char c_false;
1: + bool module;
1: +};
1: +
1: +enum ftrace_dump_mode {
1: + DUMP_NONE = 0,
1: + DUMP_ALL = 1,
1: + DUMP_ORIG = 2,
1: +};
1: +
1: +enum kmsg_dump_reason {
1: + KMSG_DUMP_UNDEF = 0,
1: + KMSG_DUMP_PANIC = 1,
1: + KMSG_DUMP_OOPS = 2,
1: + KMSG_DUMP_EMERG = 3,
1: + KMSG_DUMP_SHUTDOWN = 4,
1: + KMSG_DUMP_MAX = 5,
1: +};
1: +
1: +enum con_flush_mode {
1: + CONSOLE_FLUSH_PENDING = 0,
1: + CONSOLE_REPLAY_ALL = 1,
1: +};
1: +
1: +struct warn_args {
1: + const char *fmt;
1: + va_list args;
1: +};
1: +
1: +enum hk_flags {
1: + HK_FLAG_TIMER = 1,
1: + HK_FLAG_RCU = 2,
1: + HK_FLAG_MISC = 4,
1: + HK_FLAG_SCHED = 8,
1: + HK_FLAG_TICK = 16,
1: + HK_FLAG_DOMAIN = 32,
1: + HK_FLAG_WQ = 64,
1: + HK_FLAG_MANAGED_IRQ = 128,
1: + HK_FLAG_KTHREAD = 256,
1: +};
1: +
1: +enum cpuhp_smt_control {
1: + CPU_SMT_ENABLED = 0,
1: + CPU_SMT_DISABLED = 1,
1: + CPU_SMT_FORCE_DISABLED = 2,
1: + CPU_SMT_NOT_SUPPORTED = 3,
1: + CPU_SMT_NOT_IMPLEMENTED = 4,
1: +};
1: +
1: +struct smp_hotplug_thread {
1: + struct task_struct **store;
1: + struct list_head list;
1: + int (*thread_should_run)(unsigned int);
1: + void (*thread_fn)(unsigned int);
1: + void (*create)(unsigned int);
1: + void (*setup)(unsigned int);
1: + void (*cleanup)(unsigned int, bool);
1: + void (*park)(unsigned int);
1: + void (*unpark)(unsigned int);
1: + bool selfparking;
1: + const char *thread_comm;
1: +};
1: +
1: +struct trace_event_raw_cpuhp_enter {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpuhp_multi_enter {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpuhp_exit {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int state;
1: + int idx;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cpuhp_enter {};
1: +
1: +struct trace_event_data_offsets_cpuhp_multi_enter {};
1: +
1: +struct trace_event_data_offsets_cpuhp_exit {};
1: +
1: +typedef void (*btf_trace_cpuhp_enter)(void *, unsigned int, int, int, int (*)(unsigned int));
1: +
1: +typedef void (*btf_trace_cpuhp_multi_enter)(void *, unsigned int, int, int, int (*)(unsigned int, struct hlist_node *), struct hlist_node *);
1: +
1: +typedef void (*btf_trace_cpuhp_exit)(void *, unsigned int, int, int, int);
1: +
1: +struct cpuhp_cpu_state {
1: + enum cpuhp_state state;
1: + enum cpuhp_state target;
1: + enum cpuhp_state fail;
1: + struct task_struct *thread;
1: + bool should_run;
1: + bool rollback;
1: + bool single;
1: + bool bringup;
1: + struct hlist_node *node;
1: + struct hlist_node *last;
1: + enum cpuhp_state cb_state;
1: + int result;
1: + struct completion done_up;
1: + struct completion done_down;
1: +};
1: +
1: +struct cpuhp_step {
1: + const char *name;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } startup;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } teardown;
1: + struct hlist_head list;
1: + bool cant_stop;
1: + bool multi_instance;
1: +};
1: +
1: +enum cpu_mitigations {
1: + CPU_MITIGATIONS_OFF = 0,
1: + CPU_MITIGATIONS_AUTO = 1,
1: + CPU_MITIGATIONS_AUTO_NOSMT = 2,
1: +};
1: +
1: +struct __kernel_old_timeval {
1: + __kernel_long_t tv_sec;
1: + __kernel_long_t tv_usec;
1: +};
1: +
1: +struct old_timeval32 {
1: + old_time32_t tv_sec;
1: + s32 tv_usec;
1: +};
1: +
1: +struct rusage {
1: + struct __kernel_old_timeval ru_utime;
1: + struct __kernel_old_timeval ru_stime;
1: + __kernel_long_t ru_maxrss;
1: + __kernel_long_t ru_ixrss;
1: + __kernel_long_t ru_idrss;
1: + __kernel_long_t ru_isrss;
1: + __kernel_long_t ru_minflt;
1: + __kernel_long_t ru_majflt;
1: + __kernel_long_t ru_nswap;
1: + __kernel_long_t ru_inblock;
1: + __kernel_long_t ru_oublock;
1: + __kernel_long_t ru_msgsnd;
1: + __kernel_long_t ru_msgrcv;
1: + __kernel_long_t ru_nsignals;
1: + __kernel_long_t ru_nvcsw;
1: + __kernel_long_t ru_nivcsw;
1: +};
1: +
1: +typedef u32 compat_uint_t;
1: +
1: +struct compat_rusage {
1: + struct old_timeval32 ru_utime;
1: + struct old_timeval32 ru_stime;
1: + compat_long_t ru_maxrss;
1: + compat_long_t ru_ixrss;
1: + compat_long_t ru_idrss;
1: + compat_long_t ru_isrss;
1: + compat_long_t ru_minflt;
1: + compat_long_t ru_majflt;
1: + compat_long_t ru_nswap;
1: + compat_long_t ru_inblock;
1: + compat_long_t ru_oublock;
1: + compat_long_t ru_msgsnd;
1: + compat_long_t ru_msgrcv;
1: + compat_long_t ru_nsignals;
1: + compat_long_t ru_nvcsw;
1: + compat_long_t ru_nivcsw;
1: +};
1: +
1: +struct waitid_info {
1: + pid_t pid;
1: + uid_t uid;
1: + int status;
1: + int cause;
1: +};
1: +
1: +struct wait_opts {
1: + enum pid_type wo_type;
1: + int wo_flags;
1: + struct pid *wo_pid;
1: + struct waitid_info *wo_info;
1: + int wo_stat;
1: + struct rusage *wo_rusage;
1: + wait_queue_entry_t child_wait;
1: + int notask_error;
1: +};
1: +
1: +typedef struct {
1: + unsigned int __softirq_pending;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +} irq_cpustat_t;
1: +
1: +struct softirq_action {
1: + void (*action)(struct softirq_action *);
1: +};
1: +
1: +struct tasklet_struct {
1: + struct tasklet_struct *next;
1: + long unsigned int state;
1: + atomic_t count;
1: + bool use_callback;
1: + union {
1: + void (*func)(long unsigned int);
1: + void (*callback)(struct tasklet_struct *);
1: + };
1: + long unsigned int data;
1: +};
1: +
1: +enum {
1: + TASKLET_STATE_SCHED = 0,
1: + TASKLET_STATE_RUN = 1,
1: +};
1: +
1: +struct kernel_stat {
1: + long unsigned int irqs_sum;
1: + unsigned int softirqs[10];
1: +};
1: +
1: +struct trace_event_raw_irq_handler_entry {
1: + struct trace_entry ent;
1: + int irq;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_irq_handler_exit {
1: + struct trace_entry ent;
1: + int irq;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_softirq {
1: + struct trace_entry ent;
1: + unsigned int vec;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_irq_handler_entry {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_irq_handler_exit {};
1: +
1: +struct trace_event_data_offsets_softirq {};
1: +
1: +typedef void (*btf_trace_irq_handler_entry)(void *, int, struct irqaction *);
1: +
1: +typedef void (*btf_trace_irq_handler_exit)(void *, int, struct irqaction *, int);
1: +
1: +typedef void (*btf_trace_softirq_entry)(void *, unsigned int);
1: +
1: +typedef void (*btf_trace_softirq_exit)(void *, unsigned int);
1: +
1: +typedef void (*btf_trace_softirq_raise)(void *, unsigned int);
1: +
1: +struct tasklet_head {
1: + struct tasklet_struct *head;
1: + struct tasklet_struct **tail;
1: +};
1: +
1: +enum {
1: + IORES_DESC_NONE = 0,
1: + IORES_DESC_CRASH_KERNEL = 1,
1: + IORES_DESC_ACPI_TABLES = 2,
1: + IORES_DESC_ACPI_NV_STORAGE = 3,
1: + IORES_DESC_PERSISTENT_MEMORY = 4,
1: + IORES_DESC_PERSISTENT_MEMORY_LEGACY = 5,
1: + IORES_DESC_DEVICE_PRIVATE_MEMORY = 6,
1: + IORES_DESC_RESERVED = 7,
1: + IORES_DESC_SOFT_RESERVED = 8,
1: +};
1: +
1: +typedef void (*dr_release_t)(struct device *, void *);
1: +
1: +enum {
1: + REGION_INTERSECTS = 0,
1: + REGION_DISJOINT = 1,
1: + REGION_MIXED = 2,
1: +};
1: +
1: +struct resource_constraint {
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t (*alignf)(void *, const struct resource *, resource_size_t, resource_size_t);
1: + void *alignf_data;
1: +};
1: +
1: +enum {
1: + MAX_IORES_LEVEL = 5,
1: +};
1: +
1: +struct region_devres {
1: + struct resource *parent;
1: + resource_size_t start;
1: + resource_size_t n;
1: +};
1: +
1: +struct dentry_stat_t {
1: + long int nr_dentry;
1: + long int nr_unused;
1: + long int age_limit;
1: + long int want_pages;
1: + long int nr_negative;
1: + long int dummy;
1: +};
1: +
1: +struct files_stat_struct {
1: + long unsigned int nr_files;
1: + long unsigned int nr_free_files;
1: + long unsigned int max_files;
1: +};
1: +
1: +struct inodes_stat_t {
1: + long int nr_inodes;
1: + long int nr_unused;
1: + long int dummy[5];
1: +};
1: +
1: +enum sched_tunable_scaling {
1: + SCHED_TUNABLESCALING_NONE = 0,
1: + SCHED_TUNABLESCALING_LOG = 1,
1: + SCHED_TUNABLESCALING_LINEAR = 2,
1: + SCHED_TUNABLESCALING_END = 3,
1: +};
1: +
1: +enum sysctl_writes_mode {
1: + SYSCTL_WRITES_LEGACY = 4294967295,
1: + SYSCTL_WRITES_WARN = 0,
1: + SYSCTL_WRITES_STRICT = 1,
1: +};
1: +
1: +struct do_proc_dointvec_minmax_conv_param {
1: + int *min;
1: + int *max;
1: +};
1: +
1: +struct do_proc_douintvec_minmax_conv_param {
1: + unsigned int *min;
1: + unsigned int *max;
1: +};
1: +
1: +struct __user_cap_header_struct {
1: + __u32 version;
1: + int pid;
1: +};
1: +
1: +typedef struct __user_cap_header_struct *cap_user_header_t;
1: +
1: +struct __user_cap_data_struct {
1: + __u32 effective;
1: + __u32 permitted;
1: + __u32 inheritable;
1: +};
1: +
1: +typedef struct __user_cap_data_struct *cap_user_data_t;
1: +
1: +typedef struct siginfo siginfo_t;
1: +
1: +struct sigqueue {
1: + struct list_head list;
1: + int flags;
1: + kernel_siginfo_t info;
1: + struct user_struct *user;
1: +};
1: +
1: +struct ptrace_peeksiginfo_args {
1: + __u64 off;
1: + __u32 flags;
1: + __s32 nr;
1: +};
1: +
1: +struct ptrace_syscall_info {
1: + __u8 op;
1: + __u8 pad[3];
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 stack_pointer;
1: + union {
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + } entry;
1: + struct {
1: + __s64 rval;
1: + __u8 is_error;
1: + } exit;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u32 ret_data;
1: + } seccomp;
1: + };
1: +};
1: +
1: +struct compat_iovec {
1: + compat_uptr_t iov_base;
1: + compat_size_t iov_len;
1: +};
1: +
1: +typedef struct compat_siginfo compat_siginfo_t;
1: +
1: +typedef long unsigned int old_sigset_t;
1: +
1: +typedef u32 compat_old_sigset_t;
1: +
1: +struct compat_sigaction {
1: + compat_uptr_t sa_handler;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: + compat_sigset_t sa_mask;
1: +};
1: +
1: +struct compat_old_sigaction {
1: + compat_uptr_t sa_handler;
1: + compat_old_sigset_t sa_mask;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: +};
1: +
1: +enum {
1: + TRACE_SIGNAL_DELIVERED = 0,
1: + TRACE_SIGNAL_IGNORED = 1,
1: + TRACE_SIGNAL_ALREADY_PENDING = 2,
1: + TRACE_SIGNAL_OVERFLOW_FAIL = 3,
1: + TRACE_SIGNAL_LOSE_INFO = 4,
1: +};
1: +
1: +struct trace_event_raw_signal_generate {
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + char comm[16];
1: + pid_t pid;
1: + int group;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_signal_deliver {
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + long unsigned int sa_handler;
1: + long unsigned int sa_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_signal_generate {};
1: +
1: +struct trace_event_data_offsets_signal_deliver {};
1: +
1: +typedef void (*btf_trace_signal_generate)(void *, int, struct kernel_siginfo *, struct task_struct *, int, int);
1: +
1: +typedef void (*btf_trace_signal_deliver)(void *, int, struct kernel_siginfo *, struct k_sigaction *);
1: +
1: +typedef __kernel_clock_t clock_t;
1: +
1: +struct sysinfo {
1: + __kernel_long_t uptime;
1: + __kernel_ulong_t loads[3];
1: + __kernel_ulong_t totalram;
1: + __kernel_ulong_t freeram;
1: + __kernel_ulong_t sharedram;
1: + __kernel_ulong_t bufferram;
1: + __kernel_ulong_t totalswap;
1: + __kernel_ulong_t freeswap;
1: + __u16 procs;
1: + __u16 pad;
1: + __kernel_ulong_t totalhigh;
1: + __kernel_ulong_t freehigh;
1: + __u32 mem_unit;
1: + char _f[0];
1: +};
1: +
1: +struct rlimit64 {
1: + __u64 rlim_cur;
1: + __u64 rlim_max;
1: +};
1: +
1: +enum uts_proc {
1: + UTS_PROC_OSTYPE = 0,
1: + UTS_PROC_OSRELEASE = 1,
1: + UTS_PROC_VERSION = 2,
1: + UTS_PROC_HOSTNAME = 3,
1: + UTS_PROC_DOMAINNAME = 4,
1: +};
1: +
1: +struct prctl_mm_map {
1: + __u64 start_code;
1: + __u64 end_code;
1: + __u64 start_data;
1: + __u64 end_data;
1: + __u64 start_brk;
1: + __u64 brk;
1: + __u64 start_stack;
1: + __u64 arg_start;
1: + __u64 arg_end;
1: + __u64 env_start;
1: + __u64 env_end;
1: + __u64 *auxv;
1: + __u32 auxv_size;
1: + __u32 exe_fd;
1: +};
1: +
1: +struct compat_tms {
1: + compat_clock_t tms_utime;
1: + compat_clock_t tms_stime;
1: + compat_clock_t tms_cutime;
1: + compat_clock_t tms_cstime;
1: +};
1: +
1: +struct compat_rlimit {
1: + compat_ulong_t rlim_cur;
1: + compat_ulong_t rlim_max;
1: +};
1: +
1: +struct tms {
1: + __kernel_clock_t tms_utime;
1: + __kernel_clock_t tms_stime;
1: + __kernel_clock_t tms_cutime;
1: + __kernel_clock_t tms_cstime;
1: +};
1: +
1: +struct getcpu_cache {
1: + long unsigned int blob[16];
1: +};
1: +
1: +struct compat_sysinfo {
1: + s32 uptime;
1: + u32 loads[3];
1: + u32 totalram;
1: + u32 freeram;
1: + u32 sharedram;
1: + u32 bufferram;
1: + u32 totalswap;
1: + u32 freeswap;
1: + u16 procs;
1: + u16 pad;
1: + u32 totalhigh;
1: + u32 freehigh;
1: + u32 mem_unit;
1: + char _f[8];
1: +};
1: +
1: +struct wq_flusher;
1: +
1: +struct worker;
1: +
1: +struct workqueue_attrs;
1: +
1: +struct pool_workqueue;
1: +
1: +struct wq_device;
1: +
1: +struct workqueue_struct {
1: + struct list_head pwqs;
1: + struct list_head list;
1: + struct mutex mutex;
1: + int work_color;
1: + int flush_color;
1: + atomic_t nr_pwqs_to_flush;
1: + struct wq_flusher *first_flusher;
1: + struct list_head flusher_queue;
1: + struct list_head flusher_overflow;
1: + struct list_head maydays;
1: + struct worker *rescuer;
1: + int nr_drainers;
1: + int saved_max_active;
1: + struct workqueue_attrs *unbound_attrs;
1: + struct pool_workqueue *dfl_pwq;
1: + struct wq_device *wq_dev;
1: + char name[24];
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + unsigned int flags;
1: + struct pool_workqueue *cpu_pwqs;
1: + struct pool_workqueue *numa_pwq_tbl[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct workqueue_attrs {
1: + int nice;
1: + cpumask_var_t cpumask;
1: + bool no_numa;
1: +};
1: +
1: +struct execute_work {
1: + struct work_struct work;
1: +};
1: +
1: +enum {
1: + WQ_UNBOUND = 2,
1: + WQ_FREEZABLE = 4,
1: + WQ_MEM_RECLAIM = 8,
1: + WQ_HIGHPRI = 16,
1: + WQ_CPU_INTENSIVE = 32,
1: + WQ_SYSFS = 64,
1: + WQ_POWER_EFFICIENT = 128,
1: + __WQ_DRAINING = 65536,
1: + __WQ_ORDERED = 131072,
1: + __WQ_LEGACY = 262144,
1: + __WQ_ORDERED_EXPLICIT = 524288,
1: + WQ_MAX_ACTIVE = 512,
1: + WQ_MAX_UNBOUND_PER_CPU = 4,
1: + WQ_DFL_ACTIVE = 256,
1: +};
1: +
1: +typedef unsigned int xa_mark_t;
1: +
1: +enum xa_lock_type {
1: + XA_LOCK_IRQ = 1,
1: + XA_LOCK_BH = 2,
1: +};
1: +
1: +struct ida {
1: + struct xarray xa;
1: +};
1: +
1: +struct __una_u32 {
1: + u32 x;
1: +};
1: +
1: +struct worker_pool;
1: +
1: +struct worker {
1: + union {
1: + struct list_head entry;
1: + struct hlist_node hentry;
1: + };
1: + struct work_struct *current_work;
1: + work_func_t current_func;
1: + struct pool_workqueue *current_pwq;
1: + struct list_head scheduled;
1: + struct task_struct *task;
1: + struct worker_pool *pool;
1: + struct list_head node;
1: + long unsigned int last_active;
1: + unsigned int flags;
1: + int id;
1: + int sleeping;
1: + char desc[24];
1: + struct workqueue_struct *rescue_wq;
1: + work_func_t last_func;
1: +};
1: +
1: +struct pool_workqueue {
1: + struct worker_pool *pool;
1: + struct workqueue_struct *wq;
1: + int work_color;
1: + int flush_color;
1: + int refcnt;
1: + int nr_in_flight[15];
1: + int nr_active;
1: + int max_active;
1: + struct list_head delayed_works;
1: + struct list_head pwqs_node;
1: + struct list_head mayday_node;
1: + struct work_struct unbound_release_work;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct worker_pool {
1: + raw_spinlock_t lock;
1: + int cpu;
1: + int node;
1: + int id;
1: + unsigned int flags;
1: + long unsigned int watchdog_ts;
1: + struct list_head worklist;
1: + int nr_workers;
1: + int nr_idle;
1: + struct list_head idle_list;
1: + struct timer_list idle_timer;
1: + struct timer_list mayday_timer;
1: + struct hlist_head busy_hash[64];
1: + struct worker *manager;
1: + struct list_head workers;
1: + struct completion *detach_completion;
1: + struct ida worker_ida;
1: + struct workqueue_attrs *attrs;
1: + struct hlist_node hash_node;
1: + int refcnt;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_t nr_running;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum {
1: + POOL_MANAGER_ACTIVE = 1,
1: + POOL_DISASSOCIATED = 4,
1: + WORKER_DIE = 2,
1: + WORKER_IDLE = 4,
1: + WORKER_PREP = 8,
1: + WORKER_CPU_INTENSIVE = 64,
1: + WORKER_UNBOUND = 128,
1: + WORKER_REBOUND = 256,
1: + WORKER_NOT_RUNNING = 456,
1: + NR_STD_WORKER_POOLS = 2,
1: + UNBOUND_POOL_HASH_ORDER = 6,
1: + BUSY_WORKER_HASH_ORDER = 6,
1: + MAX_IDLE_WORKERS_RATIO = 4,
1: + IDLE_WORKER_TIMEOUT = 300000,
1: + MAYDAY_INITIAL_TIMEOUT = 10,
1: + MAYDAY_INTERVAL = 100,
1: + CREATE_COOLDOWN = 1000,
1: + RESCUER_NICE_LEVEL = 4294967276,
1: + HIGHPRI_NICE_LEVEL = 4294967276,
1: + WQ_NAME_LEN = 24,
1: +};
1: +
1: +struct wq_flusher {
1: + struct list_head list;
1: + int flush_color;
1: + struct completion done;
1: +};
1: +
1: +struct wq_device {
1: + struct workqueue_struct *wq;
1: + struct device dev;
1: +};
1: +
1: +struct trace_event_raw_workqueue_queue_work {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + void *workqueue;
1: + unsigned int req_cpu;
1: + unsigned int cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_activate_work {
1: + struct trace_entry ent;
1: + void *work;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_execute_start {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_execute_end {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_workqueue_queue_work {};
1: +
1: +struct trace_event_data_offsets_workqueue_activate_work {};
1: +
1: +struct trace_event_data_offsets_workqueue_execute_start {};
1: +
1: +struct trace_event_data_offsets_workqueue_execute_end {};
1: +
1: +typedef void (*btf_trace_workqueue_queue_work)(void *, unsigned int, struct pool_workqueue *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_activate_work)(void *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_execute_start)(void *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_execute_end)(void *, struct work_struct *, work_func_t);
1: +
1: +struct wq_barrier {
1: + struct work_struct work;
1: + struct completion done;
1: + struct task_struct *task;
1: +};
1: +
1: +struct cwt_wait {
1: + wait_queue_entry_t wait;
1: + struct work_struct *work;
1: +};
1: +
1: +struct apply_wqattrs_ctx {
1: + struct workqueue_struct *wq;
1: + struct workqueue_attrs *attrs;
1: + struct list_head list;
1: + struct pool_workqueue *dfl_pwq;
1: + struct pool_workqueue *pwq_tbl[0];
1: +};
1: +
1: +struct work_for_cpu {
1: + struct work_struct work;
1: + long int (*fn)(void *);
1: + void *arg;
1: + long int ret;
1: +};
1: +
1: +typedef void (*task_work_func_t)(struct callback_head *);
1: +
1: +enum task_work_notify_mode {
1: + TWA_NONE = 0,
1: + TWA_RESUME = 1,
1: + TWA_SIGNAL = 2,
1: +};
1: +
1: +enum {
1: + KERNEL_PARAM_OPS_FL_NOARG = 1,
1: +};
1: +
1: +enum {
1: + KERNEL_PARAM_FL_UNSAFE = 1,
1: + KERNEL_PARAM_FL_HWPARAM = 2,
1: +};
1: +
1: +struct param_attribute {
1: + struct module_attribute mattr;
1: + const struct kernel_param *param;
1: +};
1: +
1: +struct module_param_attrs {
1: + unsigned int num;
1: + struct attribute_group grp;
1: + struct param_attribute attrs[0];
1: +};
1: +
1: +struct module_version_attribute {
1: + struct module_attribute mattr;
1: + const char *module_name;
1: + const char *version;
1: +};
1: +
1: +enum lockdown_reason {
1: + LOCKDOWN_NONE = 0,
1: + LOCKDOWN_MODULE_SIGNATURE = 1,
1: + LOCKDOWN_DEV_MEM = 2,
1: + LOCKDOWN_EFI_TEST = 3,
1: + LOCKDOWN_KEXEC = 4,
1: + LOCKDOWN_HIBERNATION = 5,
1: + LOCKDOWN_PCI_ACCESS = 6,
1: + LOCKDOWN_IOPORT = 7,
1: + LOCKDOWN_MSR = 8,
1: + LOCKDOWN_ACPI_TABLES = 9,
1: + LOCKDOWN_PCMCIA_CIS = 10,
1: + LOCKDOWN_TIOCSSERIAL = 11,
1: + LOCKDOWN_MODULE_PARAMETERS = 12,
1: + LOCKDOWN_MMIOTRACE = 13,
1: + LOCKDOWN_DEBUGFS = 14,
1: + LOCKDOWN_XMON_WR = 15,
1: + LOCKDOWN_INTEGRITY_MAX = 16,
1: + LOCKDOWN_KCORE = 17,
1: + LOCKDOWN_KPROBES = 18,
1: + LOCKDOWN_BPF_READ = 19,
1: + LOCKDOWN_PERF = 20,
1: + LOCKDOWN_TRACEFS = 21,
1: + LOCKDOWN_XMON_RW = 22,
1: + LOCKDOWN_CONFIDENTIALITY_MAX = 23,
1: +};
1: +
1: +struct kmalloced_param {
1: + struct list_head list;
1: + char val[0];
1: +};
1: +
1: +struct sched_param {
1: + int sched_priority;
1: +};
1: +
1: +enum {
1: + __PERCPU_REF_ATOMIC = 1,
1: + __PERCPU_REF_DEAD = 2,
1: + __PERCPU_REF_ATOMIC_DEAD = 3,
1: + __PERCPU_REF_FLAG_BITS = 2,
1: +};
1: +
1: +struct kthread_work;
1: +
1: +typedef void (*kthread_work_func_t)(struct kthread_work *);
1: +
1: +struct kthread_worker;
1: +
1: +struct kthread_work {
1: + struct list_head node;
1: + kthread_work_func_t func;
1: + struct kthread_worker *worker;
1: + int canceling;
1: +};
1: +
1: +enum {
1: + KTW_FREEZABLE = 1,
1: +};
1: +
1: +struct kthread_worker {
1: + unsigned int flags;
1: + raw_spinlock_t lock;
1: + struct list_head work_list;
1: + struct list_head delayed_work_list;
1: + struct task_struct *task;
1: + struct kthread_work *current_work;
1: +};
1: +
1: +struct kthread_delayed_work {
1: + struct kthread_work work;
1: + struct timer_list timer;
1: +};
1: +
1: +enum {
1: + CSS_NO_REF = 1,
1: + CSS_ONLINE = 2,
1: + CSS_RELEASED = 4,
1: + CSS_VISIBLE = 8,
1: + CSS_DYING = 16,
1: +};
1: +
1: +struct kthread_create_info {
1: + int (*threadfn)(void *);
1: + void *data;
1: + int node;
1: + struct task_struct *result;
1: + struct completion *done;
1: + struct list_head list;
1: +};
1: +
1: +struct kthread {
1: + long unsigned int flags;
1: + unsigned int cpu;
1: + int (*threadfn)(void *);
1: + void *data;
1: + mm_segment_t oldfs;
1: + struct completion parked;
1: + struct completion exited;
1: + struct cgroup_subsys_state *blkcg_css;
1: +};
1: +
1: +enum KTHREAD_BITS {
1: + KTHREAD_IS_PER_CPU = 0,
1: + KTHREAD_SHOULD_STOP = 1,
1: + KTHREAD_SHOULD_PARK = 2,
1: +};
1: +
1: +struct kthread_flush_work {
1: + struct kthread_work work;
1: + struct completion done;
1: +};
1: +
1: +struct pt_regs___2;
1: +
1: +struct ipc_ids {
1: + int in_use;
1: + short unsigned int seq;
1: + struct rw_semaphore rwsem;
1: + struct idr ipcs_idr;
1: + int max_idx;
1: + int last_idx;
1: + int next_id;
1: + struct rhashtable key_ht;
1: +};
1: +
1: +struct ipc_namespace {
1: + refcount_t count;
1: + struct ipc_ids ids[3];
1: + int sem_ctls[4];
1: + int used_sems;
1: + unsigned int msg_ctlmax;
1: + unsigned int msg_ctlmnb;
1: + unsigned int msg_ctlmni;
1: + atomic_t msg_bytes;
1: + atomic_t msg_hdrs;
1: + size_t shm_ctlmax;
1: + size_t shm_ctlall;
1: + long unsigned int shm_tot;
1: + int shm_ctlmni;
1: + int shm_rmid_forced;
1: + struct notifier_block ipcns_nb;
1: + struct vfsmount *mq_mnt;
1: + unsigned int mq_queues_count;
1: + unsigned int mq_queues_max;
1: + unsigned int mq_msg_max;
1: + unsigned int mq_msgsize_max;
1: + unsigned int mq_msg_default;
1: + unsigned int mq_msgsize_default;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct llist_node mnt_llist;
1: + struct ns_common ns;
1: +};
1: +
1: +struct srcu_notifier_head {
1: + struct mutex mutex;
1: + struct srcu_struct srcu;
1: + struct notifier_block *head;
1: +};
1: +
1: +enum what {
1: + PROC_EVENT_NONE = 0,
1: + PROC_EVENT_FORK = 1,
1: + PROC_EVENT_EXEC = 2,
1: + PROC_EVENT_UID = 4,
1: + PROC_EVENT_GID = 64,
1: + PROC_EVENT_SID = 128,
1: + PROC_EVENT_PTRACE = 256,
1: + PROC_EVENT_COMM = 512,
1: + PROC_EVENT_COREDUMP = 1073741824,
1: + PROC_EVENT_EXIT = 2147483648,
1: +};
1: +
1: +enum reboot_type {
1: + BOOT_TRIPLE = 116,
1: + BOOT_KBD = 107,
1: + BOOT_BIOS = 98,
1: + BOOT_ACPI = 97,
1: + BOOT_EFI = 101,
1: + BOOT_CF9_FORCE = 112,
1: + BOOT_CF9_SAFE = 113,
1: +};
1: +
1: +typedef u64 async_cookie_t;
1: +
1: +typedef void (*async_func_t)(void *, async_cookie_t);
1: +
1: +struct async_domain {
1: + struct list_head pending;
1: + unsigned int registered: 1;
1: +};
1: +
1: +struct async_entry {
1: + struct list_head domain_list;
1: + struct list_head global_list;
1: + struct work_struct work;
1: + async_cookie_t cookie;
1: + async_func_t func;
1: + void *data;
1: + struct async_domain *domain;
1: +};
1: +
1: +struct smpboot_thread_data {
1: + unsigned int cpu;
1: + unsigned int status;
1: + struct smp_hotplug_thread *ht;
1: +};
1: +
1: +enum {
1: + HP_THREAD_NONE = 0,
1: + HP_THREAD_ACTIVE = 1,
1: + HP_THREAD_PARKED = 2,
1: +};
1: +
1: +struct umd_info {
1: + const char *driver_name;
1: + struct file *pipe_to_umh;
1: + struct file *pipe_from_umh;
1: + struct path wd;
1: + struct pid *tgid;
1: +};
1: +
1: +struct pin_cookie {};
1: +
1: +enum {
1: + CSD_FLAG_LOCK = 1,
1: + IRQ_WORK_PENDING = 1,
1: + IRQ_WORK_BUSY = 2,
1: + IRQ_WORK_LAZY = 4,
1: + IRQ_WORK_HARD_IRQ = 8,
1: + IRQ_WORK_CLAIMED = 3,
1: + CSD_TYPE_ASYNC = 0,
1: + CSD_TYPE_SYNC = 16,
1: + CSD_TYPE_IRQ_WORK = 32,
1: + CSD_TYPE_TTWU = 48,
1: + CSD_FLAG_TYPE_MASK = 240,
1: +};
1: +
1: +typedef struct __call_single_data call_single_data_t;
1: +
1: +struct dl_bw {
1: + raw_spinlock_t lock;
1: + u64 bw;
1: + u64 total_bw;
1: +};
1: +
1: +struct cpudl_item;
1: +
1: +struct cpudl {
1: + raw_spinlock_t lock;
1: + int size;
1: + cpumask_var_t free_cpus;
1: + struct cpudl_item *elements;
1: +};
1: +
1: +struct cpupri_vec {
1: + atomic_t count;
1: + cpumask_var_t mask;
1: +};
1: +
1: +struct cpupri {
1: + struct cpupri_vec pri_to_cpu[102];
1: + int *cpu_to_pri;
1: +};
1: +
1: +struct perf_domain;
1: +
1: +struct root_domain {
1: + atomic_t refcount;
1: + atomic_t rto_count;
1: + struct callback_head rcu;
1: + cpumask_var_t span;
1: + cpumask_var_t online;
1: + int overload;
1: + int overutilized;
1: + cpumask_var_t dlo_mask;
1: + atomic_t dlo_count;
1: + struct dl_bw dl_bw;
1: + struct cpudl cpudl;
1: + struct irq_work rto_push_work;
1: + raw_spinlock_t rto_lock;
1: + int rto_loop;
1: + int rto_cpu;
1: + atomic_t rto_loop_next;
1: + atomic_t rto_loop_start;
1: + cpumask_var_t rto_mask;
1: + struct cpupri cpupri;
1: + long unsigned int max_cpu_capacity;
1: + struct perf_domain *pd;
1: +};
1: +
1: +struct cfs_rq {
1: + struct load_weight load;
1: + unsigned int nr_running;
1: + unsigned int h_nr_running;
1: + unsigned int idle_h_nr_running;
1: + u64 exec_clock;
1: + u64 min_vruntime;
1: + struct rb_root_cached tasks_timeline;
1: + struct sched_entity *curr;
1: + struct sched_entity *next;
1: + struct sched_entity *last;
1: + struct sched_entity *skip;
1: + unsigned int nr_spread_over;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg;
1: + struct {
1: + raw_spinlock_t lock;
1: + int nr;
1: + long unsigned int load_avg;
1: + long unsigned int util_avg;
1: + long unsigned int runnable_avg;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + } removed;
1: + long unsigned int tg_load_avg_contrib;
1: + long int propagate;
1: + long int prop_runnable_sum;
1: + long unsigned int h_load;
1: + u64 last_h_load_update;
1: + struct sched_entity *h_load_next;
1: + struct rq *rq;
1: + int on_list;
1: + struct list_head leaf_cfs_rq_list;
1: + struct task_group *tg;
1: + int runtime_enabled;
1: + s64 runtime_remaining;
1: + u64 throttled_clock;
1: + u64 throttled_clock_task;
1: + u64 throttled_clock_task_time;
1: + int throttled;
1: + int throttle_count;
1: + struct list_head throttled_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cfs_bandwidth {
1: + raw_spinlock_t lock;
1: + ktime_t period;
1: + u64 quota;
1: + u64 runtime;
1: + s64 hierarchical_quota;
1: + u8 idle;
1: + u8 period_active;
1: + u8 slack_started;
1: + struct hrtimer period_timer;
1: + struct hrtimer slack_timer;
1: + struct list_head throttled_cfs_rq;
1: + int nr_periods;
1: + int nr_throttled;
1: + u64 throttled_time;
1: +};
1: +
1: +struct task_group {
1: + struct cgroup_subsys_state css;
1: + struct sched_entity **se;
1: + struct cfs_rq **cfs_rq;
1: + long unsigned int shares;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_long_t load_avg;
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct task_group *parent;
1: + struct list_head siblings;
1: + struct list_head children;
1: + struct autogroup *autogroup;
1: + struct cfs_bandwidth cfs_bandwidth;
1: + unsigned int uclamp_pct[2];
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: +};
1: +
1: +enum {
1: + SD_BALANCE_NEWIDLE = 1,
1: + SD_BALANCE_EXEC = 2,
1: + SD_BALANCE_FORK = 4,
1: + SD_BALANCE_WAKE = 8,
1: + SD_WAKE_AFFINE = 16,
1: + SD_ASYM_CPUCAPACITY = 32,
1: + SD_SHARE_CPUCAPACITY = 64,
1: + SD_SHARE_PKG_RESOURCES = 128,
1: + SD_SERIALIZE = 256,
1: + SD_ASYM_PACKING = 512,
1: + SD_PREFER_SIBLING = 1024,
1: + SD_OVERLAP = 2048,
1: + SD_NUMA = 4096,
1: +};
1: +
1: +struct sched_domain_shared {
1: + atomic_t ref;
1: + atomic_t nr_busy_cpus;
1: + int has_idle_cores;
1: +};
1: +
1: +struct sched_group;
1: +
1: +struct sched_domain {
1: + struct sched_domain *parent;
1: + struct sched_domain *child;
1: + struct sched_group *groups;
1: + long unsigned int min_interval;
1: + long unsigned int max_interval;
1: + unsigned int busy_factor;
1: + unsigned int imbalance_pct;
1: + unsigned int cache_nice_tries;
1: + int nohz_idle;
1: + int flags;
1: + int level;
1: + long unsigned int last_balance;
1: + unsigned int balance_interval;
1: + unsigned int nr_balance_failed;
1: + u64 max_newidle_lb_cost;
1: + long unsigned int next_decay_max_lb_cost;
1: + u64 avg_scan_cost;
1: + unsigned int lb_count[3];
1: + unsigned int lb_failed[3];
1: + unsigned int lb_balanced[3];
1: + unsigned int lb_imbalance[3];
1: + unsigned int lb_gained[3];
1: + unsigned int lb_hot_gained[3];
1: + unsigned int lb_nobusyg[3];
1: + unsigned int lb_nobusyq[3];
1: + unsigned int alb_count;
1: + unsigned int alb_failed;
1: + unsigned int alb_pushed;
1: + unsigned int sbe_count;
1: + unsigned int sbe_balanced;
1: + unsigned int sbe_pushed;
1: + unsigned int sbf_count;
1: + unsigned int sbf_balanced;
1: + unsigned int sbf_pushed;
1: + unsigned int ttwu_wake_remote;
1: + unsigned int ttwu_move_affine;
1: + unsigned int ttwu_move_balance;
1: + char *name;
1: + union {
1: + void *private;
1: + struct callback_head rcu;
1: + };
1: + struct sched_domain_shared *shared;
1: + unsigned int span_weight;
1: + long unsigned int span[0];
1: +};
1: +
1: +struct sched_group_capacity;
1: +
1: +struct sched_group {
1: + struct sched_group *next;
1: + atomic_t ref;
1: + unsigned int group_weight;
1: + struct sched_group_capacity *sgc;
1: + int asym_prefer_cpu;
1: + long unsigned int cpumask[0];
1: +};
1: +
1: +struct sched_group_capacity {
1: + atomic_t ref;
1: + long unsigned int capacity;
1: + long unsigned int min_capacity;
1: + long unsigned int max_capacity;
1: + long unsigned int next_update;
1: + int imbalance;
1: + int id;
1: + long unsigned int cpumask[0];
1: +};
1: +
1: +struct autogroup {
1: + struct kref kref;
1: + struct task_group *tg;
1: + struct rw_semaphore lock;
1: + long unsigned int id;
1: + int nice;
1: +};
1: +
1: +struct kernel_cpustat {
1: + u64 cpustat[10];
1: +};
1: +
1: +enum {
1: + CFTYPE_ONLY_ON_ROOT = 1,
1: + CFTYPE_NOT_ON_ROOT = 2,
1: + CFTYPE_NS_DELEGATABLE = 4,
1: + CFTYPE_NO_PREFIX = 8,
1: + CFTYPE_WORLD_WRITABLE = 16,
1: + CFTYPE_DEBUG = 32,
1: + __CFTYPE_ONLY_ON_DFL = 65536,
1: + __CFTYPE_NOT_ON_DFL = 131072,
1: +};
1: +
1: +struct css_task_iter {
1: + struct cgroup_subsys *ss;
1: + unsigned int flags;
1: + struct list_head *cset_pos;
1: + struct list_head *cset_head;
1: + struct list_head *tcset_pos;
1: + struct list_head *tcset_head;
1: + struct list_head *task_pos;
1: + struct list_head *cur_tasks_head;
1: + struct css_set *cur_cset;
1: + struct css_set *cur_dcset;
1: + struct task_struct *cur_task;
1: + struct list_head iters_node;
1: +};
1: +
1: +struct trace_event_raw_sched_kthread_stop {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_kthread_stop_ret {
1: + struct trace_entry ent;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_wakeup_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int success;
1: + int target_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_switch {
1: + struct trace_entry ent;
1: + char prev_comm[16];
1: + pid_t prev_pid;
1: + int prev_prio;
1: + long int prev_state;
1: + char next_comm[16];
1: + pid_t next_pid;
1: + int next_prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_migrate_task {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int orig_cpu;
1: + int dest_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_wait {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_fork {
1: + struct trace_entry ent;
1: + char parent_comm[16];
1: + pid_t parent_pid;
1: + char child_comm[16];
1: + pid_t child_pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_exec {
1: + struct trace_entry ent;
1: + u32 __data_loc_filename;
1: + pid_t pid;
1: + pid_t old_pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_stat_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 delay;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_stat_runtime {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 runtime;
1: + u64 vruntime;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_pi_setprio {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int oldprio;
1: + int newprio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_hang {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_move_numa {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + pid_t tgid;
1: + pid_t ngid;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_numa_pair_template {
1: + struct trace_entry ent;
1: + pid_t src_pid;
1: + pid_t src_tgid;
1: + pid_t src_ngid;
1: + int src_cpu;
1: + int src_nid;
1: + pid_t dst_pid;
1: + pid_t dst_tgid;
1: + pid_t dst_ngid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_wake_idle_without_ipi {
1: + struct trace_entry ent;
1: + int cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_sched_kthread_stop {};
1: +
1: +struct trace_event_data_offsets_sched_kthread_stop_ret {};
1: +
1: +struct trace_event_data_offsets_sched_wakeup_template {};
1: +
1: +struct trace_event_data_offsets_sched_switch {};
1: +
1: +struct trace_event_data_offsets_sched_migrate_task {};
1: +
1: +struct trace_event_data_offsets_sched_process_template {};
1: +
1: +struct trace_event_data_offsets_sched_process_wait {};
1: +
1: +struct trace_event_data_offsets_sched_process_fork {};
1: +
1: +struct trace_event_data_offsets_sched_process_exec {
1: + u32 filename;
1: +};
1: +
1: +struct trace_event_data_offsets_sched_stat_template {};
1: +
1: +struct trace_event_data_offsets_sched_stat_runtime {};
1: +
1: +struct trace_event_data_offsets_sched_pi_setprio {};
1: +
1: +struct trace_event_data_offsets_sched_process_hang {};
1: +
1: +struct trace_event_data_offsets_sched_move_numa {};
1: +
1: +struct trace_event_data_offsets_sched_numa_pair_template {};
1: +
1: +struct trace_event_data_offsets_sched_wake_idle_without_ipi {};
1: +
1: +typedef void (*btf_trace_sched_kthread_stop)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_kthread_stop_ret)(void *, int);
1: +
1: +typedef void (*btf_trace_sched_waking)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wakeup)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wakeup_new)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_switch)(void *, bool, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_migrate_task)(void *, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_process_free)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_exit)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wait_task)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_wait)(void *, struct pid *);
1: +
1: +typedef void (*btf_trace_sched_process_fork)(void *, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_exec)(void *, struct task_struct *, pid_t, struct linux_binprm *);
1: +
1: +typedef void (*btf_trace_sched_stat_wait)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_sleep)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_iowait)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_blocked)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_runtime)(void *, struct task_struct *, u64, u64);
1: +
1: +typedef void (*btf_trace_sched_pi_setprio)(void *, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_hang)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_move_numa)(void *, struct task_struct *, int, int);
1: +
1: +typedef void (*btf_trace_sched_stick_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_swap_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_wake_idle_without_ipi)(void *, int);
1: +
1: +enum {
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_READY = 1,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED = 2,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED_READY = 4,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED = 8,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE_READY = 16,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ_READY = 64,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ = 128,
1: +};
1: +
1: +struct wake_q_head {
1: + struct wake_q_node *first;
1: + struct wake_q_node **lastp;
1: +};
1: +
1: +struct sched_attr {
1: + __u32 size;
1: + __u32 sched_policy;
1: + __u64 sched_flags;
1: + __s32 sched_nice;
1: + __u32 sched_priority;
1: + __u64 sched_runtime;
1: + __u64 sched_deadline;
1: + __u64 sched_period;
1: + __u32 sched_util_min;
1: + __u32 sched_util_max;
1: +};
1: +
1: +struct cpuidle_state_usage {
1: + long long unsigned int disable;
1: + long long unsigned int usage;
1: + u64 time_ns;
1: + long long unsigned int above;
1: + long long unsigned int below;
1: + long long unsigned int rejected;
1: + long long unsigned int s2idle_usage;
1: + long long unsigned int s2idle_time;
1: +};
1: +
1: +struct cpuidle_device;
1: +
1: +struct cpuidle_driver;
1: +
1: +struct cpuidle_state {
1: + char name[16];
1: + char desc[32];
1: + u64 exit_latency_ns;
1: + u64 target_residency_ns;
1: + unsigned int flags;
1: + unsigned int exit_latency;
1: + int power_usage;
1: + unsigned int target_residency;
1: + int (*enter)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: + int (*enter_dead)(struct cpuidle_device *, int);
1: + int (*enter_s2idle)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: +};
1: +
1: +struct cpuidle_state_kobj;
1: +
1: +struct cpuidle_driver_kobj;
1: +
1: +struct cpuidle_device_kobj;
1: +
1: +struct cpuidle_device {
1: + unsigned int registered: 1;
1: + unsigned int enabled: 1;
1: + unsigned int poll_time_limit: 1;
1: + unsigned int cpu;
1: + ktime_t next_hrtimer;
1: + int last_state_idx;
1: + u64 last_residency_ns;
1: + u64 poll_limit_ns;
1: + u64 forced_idle_latency_limit_ns;
1: + struct cpuidle_state_usage states_usage[10];
1: + struct cpuidle_state_kobj *kobjs[10];
1: + struct cpuidle_driver_kobj *kobj_driver;
1: + struct cpuidle_device_kobj *kobj_dev;
1: + struct list_head device_list;
1: +};
1: +
1: +struct cpuidle_driver {
1: + const char *name;
1: + struct module *owner;
1: + unsigned int bctimer: 1;
1: + struct cpuidle_state states[10];
1: + int state_count;
1: + int safe_state_index;
1: + struct cpumask *cpumask;
1: + const char *governor;
1: +};
1: +
1: +typedef int (*cpu_stop_fn_t)(void *);
1: +
1: +struct cpu_stop_done;
1: +
1: +struct cpu_stop_work {
1: + struct list_head list;
1: + cpu_stop_fn_t fn;
1: + void *arg;
1: + struct cpu_stop_done *done;
1: +};
1: +
1: +struct cpudl_item {
1: + u64 dl;
1: + int cpu;
1: + int idx;
1: +};
1: +
1: +struct rt_prio_array {
1: + long unsigned int bitmap[2];
1: + struct list_head queue[100];
1: +};
1: +
1: +struct rt_bandwidth {
1: + raw_spinlock_t rt_runtime_lock;
1: + ktime_t rt_period;
1: + u64 rt_runtime;
1: + struct hrtimer rt_period_timer;
1: + unsigned int rt_period_active;
1: +};
1: +
1: +struct dl_bandwidth {
1: + raw_spinlock_t dl_runtime_lock;
1: + u64 dl_runtime;
1: + u64 dl_period;
1: +};
1: +
1: +typedef int (*tg_visitor)(struct task_group *, void *);
1: +
1: +struct uclamp_bucket {
1: + long unsigned int value: 11;
1: + long unsigned int tasks: 53;
1: +};
1: +
1: +struct uclamp_rq {
1: + unsigned int value;
1: + struct uclamp_bucket bucket[5];
1: +};
1: +
1: +struct rt_rq {
1: + struct rt_prio_array active;
1: + unsigned int rt_nr_running;
1: + unsigned int rr_nr_running;
1: + struct {
1: + int curr;
1: + int next;
1: + } highest_prio;
1: + long unsigned int rt_nr_migratory;
1: + long unsigned int rt_nr_total;
1: + int overloaded;
1: + struct plist_head pushable_tasks;
1: + int rt_queued;
1: + int rt_throttled;
1: + u64 rt_time;
1: + u64 rt_runtime;
1: + raw_spinlock_t rt_runtime_lock;
1: +};
1: +
1: +struct dl_rq {
1: + struct rb_root_cached root;
1: + long unsigned int dl_nr_running;
1: + struct {
1: + u64 curr;
1: + u64 next;
1: + } earliest_dl;
1: + long unsigned int dl_nr_migratory;
1: + int overloaded;
1: + struct rb_root_cached pushable_dl_tasks_root;
1: + u64 running_bw;
1: + u64 this_bw;
1: + u64 extra_bw;
1: + u64 bw_ratio;
1: +};
1: +
1: +struct rq {
1: + raw_spinlock_t lock;
1: + unsigned int nr_running;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: + unsigned int numa_migrate_on;
1: + long unsigned int last_blocked_load_update_tick;
1: + unsigned int has_blocked_load;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + call_single_data_t nohz_csd;
1: + unsigned int nohz_tick_stopped;
1: + atomic_t nohz_flags;
1: + unsigned int ttwu_pending;
1: + u64 nr_switches;
1: + long: 64;
1: + struct uclamp_rq uclamp[2];
1: + unsigned int uclamp_flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct cfs_rq cfs;
1: + struct rt_rq rt;
1: + struct dl_rq dl;
1: + struct list_head leaf_cfs_rq_list;
1: + struct list_head *tmp_alone_branch;
1: + long unsigned int nr_uninterruptible;
1: + struct task_struct *curr;
1: + struct task_struct *idle;
1: + struct task_struct *stop;
1: + long unsigned int next_balance;
1: + struct mm_struct *prev_mm;
1: + unsigned int clock_update_flags;
1: + u64 clock;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u64 clock_task;
1: + u64 clock_pelt;
1: + long unsigned int lost_idle_time;
1: + atomic_t nr_iowait;
1: + int membarrier_state;
1: + struct root_domain *rd;
1: + struct sched_domain *sd;
1: + long unsigned int cpu_capacity;
1: + long unsigned int cpu_capacity_orig;
1: + struct callback_head *balance_callback;
1: + unsigned char nohz_idle_balance;
1: + unsigned char idle_balance;
1: + long unsigned int misfit_task_load;
1: + int active_balance;
1: + int push_cpu;
1: + struct cpu_stop_work active_balance_work;
1: + int cpu;
1: + int online;
1: + struct list_head cfs_tasks;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg_rt;
1: + struct sched_avg avg_dl;
1: + struct sched_avg avg_irq;
1: + struct sched_avg avg_thermal;
1: + u64 idle_stamp;
1: + u64 avg_idle;
1: + u64 max_idle_balance_cost;
1: + u64 prev_steal_time;
1: + u64 prev_steal_time_rq;
1: + long unsigned int calc_load_update;
1: + long int calc_load_active;
1: + long: 64;
1: + call_single_data_t hrtick_csd;
1: + struct hrtimer hrtick_timer;
1: + struct sched_info rq_sched_info;
1: + long long unsigned int rq_cpu_time;
1: + unsigned int yld_count;
1: + unsigned int sched_count;
1: + unsigned int sched_goidle;
1: + unsigned int ttwu_count;
1: + unsigned int ttwu_local;
1: + struct cpuidle_state *idle_state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct perf_domain {
1: + struct em_perf_domain *em_pd;
1: + struct perf_domain *next;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rq_flags {
1: + long unsigned int flags;
1: + struct pin_cookie cookie;
1: + unsigned int clock_update_flags;
1: +};
1: +
1: +enum {
1: + __SCHED_FEAT_GENTLE_FAIR_SLEEPERS = 0,
1: + __SCHED_FEAT_START_DEBIT = 1,
1: + __SCHED_FEAT_NEXT_BUDDY = 2,
1: + __SCHED_FEAT_LAST_BUDDY = 3,
1: + __SCHED_FEAT_CACHE_HOT_BUDDY = 4,
1: + __SCHED_FEAT_WAKEUP_PREEMPTION = 5,
1: + __SCHED_FEAT_HRTICK = 6,
1: + __SCHED_FEAT_DOUBLE_TICK = 7,
1: + __SCHED_FEAT_NONTASK_CAPACITY = 8,
1: + __SCHED_FEAT_TTWU_QUEUE = 9,
1: + __SCHED_FEAT_SIS_AVG_CPU = 10,
1: + __SCHED_FEAT_SIS_PROP = 11,
1: + __SCHED_FEAT_WARN_DOUBLE_CLOCK = 12,
1: + __SCHED_FEAT_RT_PUSH_IPI = 13,
1: + __SCHED_FEAT_RT_RUNTIME_SHARE = 14,
1: + __SCHED_FEAT_LB_MIN = 15,
1: + __SCHED_FEAT_ATTACH_AGE_LOAD = 16,
1: + __SCHED_FEAT_WA_IDLE = 17,
1: + __SCHED_FEAT_WA_WEIGHT = 18,
1: + __SCHED_FEAT_WA_BIAS = 19,
1: + __SCHED_FEAT_UTIL_EST = 20,
1: + __SCHED_FEAT_UTIL_EST_FASTUP = 21,
1: + __SCHED_FEAT_NR = 22,
1: +};
1: +
1: +struct migration_arg {
1: + struct task_struct *task;
1: + int dest_cpu;
1: +};
1: +
1: +struct migration_swap_arg {
1: + struct task_struct *src_task;
1: + struct task_struct *dst_task;
1: + int src_cpu;
1: + int dst_cpu;
1: +};
1: +
1: +struct uclamp_request {
1: + s64 percent;
1: + u64 util;
1: + int ret;
1: +};
1: +
1: +struct cfs_schedulable_data {
1: + struct task_group *tg;
1: + u64 period;
1: + u64 quota;
1: +};
1: +
1: +enum {
1: + cpuset = 0,
1: + possible = 1,
1: + fail = 2,
1: +};
1: +
1: +enum s2idle_states {
1: + S2IDLE_STATE_NONE = 0,
1: + S2IDLE_STATE_ENTER = 1,
1: + S2IDLE_STATE_WAKE = 2,
1: +};
1: +
1: +struct idle_timer {
1: + struct hrtimer timer;
1: + int done;
1: +};
1: +
1: +typedef void (*rcu_callback_t)(struct callback_head *);
1: +
1: +struct numa_group {
1: + refcount_t refcount;
1: + spinlock_t lock;
1: + int nr_tasks;
1: + pid_t gid;
1: + int active_nodes;
1: + struct callback_head rcu;
1: + long unsigned int total_faults;
1: + long unsigned int max_faults_cpu;
1: + long unsigned int *faults_cpu;
1: + long unsigned int faults[0];
1: +};
1: +
1: +struct update_util_data {
1: + void (*func)(struct update_util_data *, u64, unsigned int);
1: +};
1: +
1: +enum numa_topology_type {
1: + NUMA_DIRECT = 0,
1: + NUMA_GLUELESS_MESH = 1,
1: + NUMA_BACKPLANE = 2,
1: +};
1: +
1: +enum numa_faults_stats {
1: + NUMA_MEM = 0,
1: + NUMA_CPU = 1,
1: + NUMA_MEMBUF = 2,
1: + NUMA_CPUBUF = 3,
1: +};
1: +
1: +enum schedutil_type {
1: + FREQUENCY_UTIL = 0,
1: + ENERGY_UTIL = 1,
1: +};
1: +
1: +enum numa_type {
1: + node_has_spare = 0,
1: + node_fully_busy = 1,
1: + node_overloaded = 2,
1: +};
1: +
1: +struct numa_stats {
1: + long unsigned int load;
1: + long unsigned int runnable;
1: + long unsigned int util;
1: + long unsigned int compute_capacity;
1: + unsigned int nr_running;
1: + unsigned int weight;
1: + enum numa_type node_type;
1: + int idle_cpu;
1: +};
1: +
1: +struct task_numa_env {
1: + struct task_struct *p;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + struct numa_stats src_stats;
1: + struct numa_stats dst_stats;
1: + int imbalance_pct;
1: + int dist;
1: + struct task_struct *best_task;
1: + long int best_imp;
1: + int best_cpu;
1: +};
1: +
1: +enum fbq_type {
1: + regular = 0,
1: + remote = 1,
1: + all = 2,
1: +};
1: +
1: +enum group_type {
1: + group_has_spare = 0,
1: + group_fully_busy = 1,
1: + group_misfit_task = 2,
1: + group_asym_packing = 3,
1: + group_imbalanced = 4,
1: + group_overloaded = 5,
1: +};
1: +
1: +enum migration_type {
1: + migrate_load = 0,
1: + migrate_util = 1,
1: + migrate_task = 2,
1: + migrate_misfit = 3,
1: +};
1: +
1: +struct lb_env {
1: + struct sched_domain *sd;
1: + struct rq *src_rq;
1: + int src_cpu;
1: + int dst_cpu;
1: + struct rq *dst_rq;
1: + struct cpumask *dst_grpmask;
1: + int new_dst_cpu;
1: + enum cpu_idle_type idle;
1: + long int imbalance;
1: + struct cpumask *cpus;
1: + unsigned int flags;
1: + unsigned int loop;
1: + unsigned int loop_break;
1: + unsigned int loop_max;
1: + enum fbq_type fbq_type;
1: + enum migration_type migration_type;
1: + struct list_head tasks;
1: +};
1: +
1: +struct sg_lb_stats {
1: + long unsigned int avg_load;
1: + long unsigned int group_load;
1: + long unsigned int group_capacity;
1: + long unsigned int group_util;
1: + long unsigned int group_runnable;
1: + unsigned int sum_nr_running;
1: + unsigned int sum_h_nr_running;
1: + unsigned int idle_cpus;
1: + unsigned int group_weight;
1: + enum group_type group_type;
1: + unsigned int group_asym_packing;
1: + long unsigned int group_misfit_task_load;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: +};
1: +
1: +struct sd_lb_stats {
1: + struct sched_group *busiest;
1: + struct sched_group *local;
1: + long unsigned int total_load;
1: + long unsigned int total_capacity;
1: + long unsigned int avg_load;
1: + unsigned int prefer_sibling;
1: + struct sg_lb_stats busiest_stat;
1: + struct sg_lb_stats local_stat;
1: +};
1: +
1: +typedef struct rt_rq *rt_rq_iter_t;
1: +
1: +struct wait_bit_key {
1: + void *flags;
1: + int bit_nr;
1: + long unsigned int timeout;
1: +};
1: +
1: +struct wait_bit_queue_entry {
1: + struct wait_bit_key key;
1: + struct wait_queue_entry wq_entry;
1: +};
1: +
1: +typedef int wait_bit_action_f(struct wait_bit_key *, int);
1: +
1: +struct swait_queue {
1: + struct task_struct *task;
1: + struct list_head task_list;
1: +};
1: +
1: +struct sd_flag_debug {
1: + unsigned int meta_flags;
1: + char *name;
1: +};
1: +
1: +struct sched_domain_attr {
1: + int relax_domain_level;
1: +};
1: +
1: +typedef const struct cpumask * (*sched_domain_mask_f)(int);
1: +
1: +typedef int (*sched_domain_flags_f)();
1: +
1: +struct sd_data {
1: + struct sched_domain **sd;
1: + struct sched_domain_shared **sds;
1: + struct sched_group **sg;
1: + struct sched_group_capacity **sgc;
1: +};
1: +
1: +struct sched_domain_topology_level {
1: + sched_domain_mask_f mask;
1: + sched_domain_flags_f sd_flags;
1: + int flags;
1: + int numa_level;
1: + struct sd_data data;
1: + char *name;
1: +};
1: +
1: +struct s_data {
1: + struct sched_domain **sd;
1: + struct root_domain *rd;
1: +};
1: +
1: +enum s_alloc {
1: + sa_rootdomain = 0,
1: + sa_sd = 1,
1: + sa_sd_storage = 2,
1: + sa_none = 3,
1: +};
1: +
1: +enum cpuacct_stat_index {
1: + CPUACCT_STAT_USER = 0,
1: + CPUACCT_STAT_SYSTEM = 1,
1: + CPUACCT_STAT_NSTATS = 2,
1: +};
1: +
1: +struct cpuacct_usage {
1: + u64 usages[2];
1: +};
1: +
1: +struct cpuacct {
1: + struct cgroup_subsys_state css;
1: + struct cpuacct_usage *cpuusage;
1: + struct kernel_cpustat *cpustat;
1: +};
1: +
1: +struct gov_attr_set {
1: + struct kobject kobj;
1: + struct list_head policy_list;
1: + struct mutex update_lock;
1: + int usage_count;
1: +};
1: +
1: +struct governor_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct gov_attr_set *, char *);
1: + ssize_t (*store)(struct gov_attr_set *, const char *, size_t);
1: +};
1: +
1: +struct sugov_tunables {
1: + struct gov_attr_set attr_set;
1: + unsigned int rate_limit_us;
1: +};
1: +
1: +struct sugov_policy {
1: + struct cpufreq_policy *policy;
1: + struct sugov_tunables *tunables;
1: + struct list_head tunables_hook;
1: + raw_spinlock_t update_lock;
1: + u64 last_freq_update_time;
1: + s64 freq_update_delay_ns;
1: + unsigned int next_freq;
1: + unsigned int cached_raw_freq;
1: + struct irq_work irq_work;
1: + struct kthread_work work;
1: + struct mutex work_lock;
1: + struct kthread_worker worker;
1: + struct task_struct *thread;
1: + bool work_in_progress;
1: + bool limits_changed;
1: + bool need_freq_update;
1: +};
1: +
1: +struct sugov_cpu {
1: + struct update_util_data update_util;
1: + struct sugov_policy *sg_policy;
1: + unsigned int cpu;
1: + bool iowait_boost_pending;
1: + unsigned int iowait_boost;
1: + u64 last_update;
1: + long unsigned int bw_dl;
1: + long unsigned int max;
1: + long unsigned int saved_idle_calls;
1: +};
1: +
1: +enum {
1: + MEMBARRIER_FLAG_SYNC_CORE = 1,
1: + MEMBARRIER_FLAG_RSEQ = 2,
1: +};
1: +
1: +enum membarrier_cmd {
1: + MEMBARRIER_CMD_QUERY = 0,
1: + MEMBARRIER_CMD_GLOBAL = 1,
1: + MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2,
1: + MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256,
1: + MEMBARRIER_CMD_SHARED = 1,
1: +};
1: +
1: +enum membarrier_cmd_flag {
1: + MEMBARRIER_CMD_FLAG_CPU = 1,
1: +};
1: +
1: +struct proc_ops {
1: + unsigned int proc_flags;
1: + int (*proc_open)(struct inode *, struct file *);
1: + ssize_t (*proc_read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*proc_write)(struct file *, const char *, size_t, loff_t *);
1: + loff_t (*proc_lseek)(struct file *, loff_t, int);
1: + int (*proc_release)(struct inode *, struct file *);
1: + __poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
1: + long int (*proc_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*proc_compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*proc_mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int (*proc_get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +};
1: +
1: +enum psi_res {
1: + PSI_IO = 0,
1: + PSI_MEM = 1,
1: + PSI_CPU = 2,
1: + NR_PSI_RESOURCES = 3,
1: +};
1: +
1: +struct psi_window {
1: + u64 size;
1: + u64 start_time;
1: + u64 start_value;
1: + u64 prev_growth;
1: +};
1: +
1: +struct psi_trigger {
1: + enum psi_states state;
1: + u64 threshold;
1: + struct list_head node;
1: + struct psi_group *group;
1: + wait_queue_head_t event_wait;
1: + int event;
1: + struct psi_window win;
1: + u64 last_event_time;
1: + struct kref refcount;
1: +};
1: +
1: +struct ww_acquire_ctx;
1: +
1: +struct ww_mutex {
1: + struct mutex base;
1: + struct ww_acquire_ctx *ctx;
1: +};
1: +
1: +struct ww_acquire_ctx {
1: + struct task_struct *task;
1: + long unsigned int stamp;
1: + unsigned int acquired;
1: + short unsigned int wounded;
1: + short unsigned int is_wait_die;
1: +};
1: +
1: +struct mutex_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + struct ww_acquire_ctx *ww_ctx;
1: +};
1: +
1: +enum mutex_trylock_recursive_enum {
1: + MUTEX_TRYLOCK_FAILED = 0,
1: + MUTEX_TRYLOCK_SUCCESS = 1,
1: + MUTEX_TRYLOCK_RECURSIVE = 2,
1: +};
1: +
1: +struct semaphore {
1: + raw_spinlock_t lock;
1: + unsigned int count;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct semaphore_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + bool up;
1: +};
1: +
1: +enum rwsem_waiter_type {
1: + RWSEM_WAITING_FOR_WRITE = 0,
1: + RWSEM_WAITING_FOR_READ = 1,
1: +};
1: +
1: +struct rwsem_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + enum rwsem_waiter_type type;
1: + long unsigned int timeout;
1: + long unsigned int last_rowner;
1: +};
1: +
1: +enum rwsem_wake_type {
1: + RWSEM_WAKE_ANY = 0,
1: + RWSEM_WAKE_READERS = 1,
1: + RWSEM_WAKE_READ_OWNED = 2,
1: +};
1: +
1: +enum writer_wait_state {
1: + WRITER_NOT_FIRST = 0,
1: + WRITER_FIRST = 1,
1: + WRITER_HANDOFF = 2,
1: +};
1: +
1: +enum owner_state {
1: + OWNER_NULL = 1,
1: + OWNER_WRITER = 2,
1: + OWNER_READER = 4,
1: + OWNER_NONSPINNABLE = 8,
1: +};
1: +
1: +struct optimistic_spin_node {
1: + struct optimistic_spin_node *next;
1: + struct optimistic_spin_node *prev;
1: + int locked;
1: + int cpu;
1: +};
1: +
1: +struct mcs_spinlock {
1: + struct mcs_spinlock *next;
1: + int locked;
1: + int count;
1: +};
1: +
1: +struct qnode {
1: + struct mcs_spinlock mcs;
1: +};
1: +
1: +struct hrtimer_sleeper {
1: + struct hrtimer timer;
1: + struct task_struct *task;
1: +};
1: +
1: +struct rt_mutex;
1: +
1: +struct rt_mutex_waiter {
1: + struct rb_node tree_entry;
1: + struct rb_node pi_tree_entry;
1: + struct task_struct *task;
1: + struct rt_mutex *lock;
1: + int prio;
1: + u64 deadline;
1: +};
1: +
1: +struct rt_mutex {
1: + raw_spinlock_t wait_lock;
1: + struct rb_root_cached waiters;
1: + struct task_struct *owner;
1: +};
1: +
1: +enum rtmutex_chainwalk {
1: + RT_MUTEX_MIN_CHAINWALK = 0,
1: + RT_MUTEX_FULL_CHAINWALK = 1,
1: +};
1: +
1: +struct task_struct___2;
1: +
1: +struct pm_qos_request {
1: + struct plist_node node;
1: + struct pm_qos_constraints *qos;
1: +};
1: +
1: +enum pm_qos_req_action {
1: + PM_QOS_ADD_REQ = 0,
1: + PM_QOS_UPDATE_REQ = 1,
1: + PM_QOS_REMOVE_REQ = 2,
1: +};
1: +
1: +typedef int suspend_state_t;
1: +
1: +enum suspend_stat_step {
1: + SUSPEND_FREEZE = 1,
1: + SUSPEND_PREPARE = 2,
1: + SUSPEND_SUSPEND = 3,
1: + SUSPEND_SUSPEND_LATE = 4,
1: + SUSPEND_SUSPEND_NOIRQ = 5,
1: + SUSPEND_RESUME_NOIRQ = 6,
1: + SUSPEND_RESUME_EARLY = 7,
1: + SUSPEND_RESUME = 8,
1: +};
1: +
1: +struct suspend_stats {
1: + int success;
1: + int fail;
1: + int failed_freeze;
1: + int failed_prepare;
1: + int failed_suspend;
1: + int failed_suspend_late;
1: + int failed_suspend_noirq;
1: + int failed_resume;
1: + int failed_resume_early;
1: + int failed_resume_noirq;
1: + int last_failed_dev;
1: + char failed_devs[80];
1: + int last_failed_errno;
1: + int errno[2];
1: + int last_failed_step;
1: + enum suspend_stat_step failed_steps[2];
1: +};
1: +
1: +enum {
1: + TEST_NONE = 0,
1: + TEST_CORE = 1,
1: + TEST_CPUS = 2,
1: + TEST_PLATFORM = 3,
1: + TEST_DEVICES = 4,
1: + TEST_FREEZER = 5,
1: + __TEST_AFTER_LAST = 6,
1: +};
1: +
1: +struct pm_vt_switch {
1: + struct list_head head;
1: + struct device *dev;
1: + bool required;
1: +};
1: +
1: +struct platform_suspend_ops {
1: + int (*valid)(suspend_state_t);
1: + int (*begin)(suspend_state_t);
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + int (*enter)(suspend_state_t);
1: + void (*wake)();
1: + void (*finish)();
1: + bool (*suspend_again)();
1: + void (*end)();
1: + void (*recover)();
1: +};
1: +
1: +struct platform_s2idle_ops {
1: + int (*begin)();
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + bool (*wake)();
1: + void (*restore_early)();
1: + void (*restore)();
1: + void (*end)();
1: +};
1: +
1: +struct platform_hibernation_ops {
1: + int (*begin)(pm_message_t);
1: + void (*end)();
1: + int (*pre_snapshot)();
1: + void (*finish)();
1: + int (*prepare)();
1: + int (*enter)();
1: + void (*leave)();
1: + int (*pre_restore)();
1: + void (*restore_cleanup)();
1: + void (*recover)();
1: +};
1: +
1: +enum {
1: + HIBERNATION_INVALID = 0,
1: + HIBERNATION_PLATFORM = 1,
1: + HIBERNATION_SHUTDOWN = 2,
1: + HIBERNATION_REBOOT = 3,
1: + HIBERNATION_SUSPEND = 4,
1: + HIBERNATION_TEST_RESUME = 5,
1: + __HIBERNATION_AFTER_LAST = 6,
1: +};
1: +
1: +struct swsusp_info {
1: + struct new_utsname uts;
1: + u32 version_code;
1: + long unsigned int num_physpages;
1: + int cpus;
1: + long unsigned int image_pages;
1: + long unsigned int pages;
1: + long unsigned int size;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct snapshot_handle {
1: + unsigned int cur;
1: + void *buffer;
1: + int sync_read;
1: +};
1: +
1: +struct linked_page {
1: + struct linked_page *next;
1: + char data[4088];
1: +};
1: +
1: +struct chain_allocator {
1: + struct linked_page *chain;
1: + unsigned int used_space;
1: + gfp_t gfp_mask;
1: + int safe_needed;
1: +};
1: +
1: +struct rtree_node {
1: + struct list_head list;
1: + long unsigned int *data;
1: +};
1: +
1: +struct mem_zone_bm_rtree {
1: + struct list_head list;
1: + struct list_head nodes;
1: + struct list_head leaves;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + struct rtree_node *rtree;
1: + int levels;
1: + unsigned int blocks;
1: +};
1: +
1: +struct bm_position {
1: + struct mem_zone_bm_rtree *zone;
1: + struct rtree_node *node;
1: + long unsigned int node_pfn;
1: + int node_bit;
1: +};
1: +
1: +struct memory_bitmap {
1: + struct list_head zones;
1: + struct linked_page *p_list;
1: + struct bm_position cur;
1: +};
1: +
1: +struct mem_extent {
1: + struct list_head hook;
1: + long unsigned int start;
1: + long unsigned int end;
1: +};
1: +
1: +struct nosave_region {
1: + struct list_head list;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: +};
1: +
1: +enum {
1: + BIO_NO_PAGE_REF = 0,
1: + BIO_CLONED = 1,
1: + BIO_BOUNCED = 2,
1: + BIO_WORKINGSET = 3,
1: + BIO_QUIET = 4,
1: + BIO_CHAIN = 5,
1: + BIO_REFFED = 6,
1: + BIO_THROTTLED = 7,
1: + BIO_TRACE_COMPLETION = 8,
1: + BIO_CGROUP_ACCT = 9,
1: + BIO_TRACKED = 10,
1: + BIO_FLAG_LAST = 11,
1: +};
1: +
1: +enum req_opf {
1: + REQ_OP_READ = 0,
1: + REQ_OP_WRITE = 1,
1: + REQ_OP_FLUSH = 2,
1: + REQ_OP_DISCARD = 3,
1: + REQ_OP_SECURE_ERASE = 5,
1: + REQ_OP_WRITE_SAME = 7,
1: + REQ_OP_WRITE_ZEROES = 9,
1: + REQ_OP_ZONE_OPEN = 10,
1: + REQ_OP_ZONE_CLOSE = 11,
1: + REQ_OP_ZONE_FINISH = 12,
1: + REQ_OP_ZONE_APPEND = 13,
1: + REQ_OP_ZONE_RESET = 15,
1: + REQ_OP_ZONE_RESET_ALL = 17,
1: + REQ_OP_SCSI_IN = 32,
1: + REQ_OP_SCSI_OUT = 33,
1: + REQ_OP_DRV_IN = 34,
1: + REQ_OP_DRV_OUT = 35,
1: + REQ_OP_LAST = 36,
1: +};
1: +
1: +enum req_flag_bits {
1: + __REQ_FAILFAST_DEV = 8,
1: + __REQ_FAILFAST_TRANSPORT = 9,
1: + __REQ_FAILFAST_DRIVER = 10,
1: + __REQ_SYNC = 11,
1: + __REQ_META = 12,
1: + __REQ_PRIO = 13,
1: + __REQ_NOMERGE = 14,
1: + __REQ_IDLE = 15,
1: + __REQ_INTEGRITY = 16,
1: + __REQ_FUA = 17,
1: + __REQ_PREFLUSH = 18,
1: + __REQ_RAHEAD = 19,
1: + __REQ_BACKGROUND = 20,
1: + __REQ_NOWAIT = 21,
1: + __REQ_CGROUP_PUNT = 22,
1: + __REQ_NOUNMAP = 23,
1: + __REQ_HIPRI = 24,
1: + __REQ_DRV = 25,
1: + __REQ_SWAP = 26,
1: + __REQ_NR_BITS = 27,
1: +};
1: +
1: +struct swap_map_page {
1: + sector_t entries[511];
1: + sector_t next_swap;
1: +};
1: +
1: +struct swap_map_page_list {
1: + struct swap_map_page *map;
1: + struct swap_map_page_list *next;
1: +};
1: +
1: +struct swap_map_handle {
1: + struct swap_map_page *cur;
1: + struct swap_map_page_list *maps;
1: + sector_t cur_swap;
1: + sector_t first_sector;
1: + unsigned int k;
1: + long unsigned int reqd_free_pages;
1: + u32 crc32;
1: +};
1: +
1: +struct swsusp_header {
1: + char reserved[4060];
1: + u32 crc32;
1: + sector_t image;
1: + unsigned int flags;
1: + char orig_sig[10];
1: + char sig[10];
1: +};
1: +
1: +struct swsusp_extent {
1: + struct rb_node node;
1: + long unsigned int start;
1: + long unsigned int end;
1: +};
1: +
1: +struct hib_bio_batch {
1: + atomic_t count;
1: + wait_queue_head_t wait;
1: + blk_status_t error;
1: + struct blk_plug plug;
1: +};
1: +
1: +struct crc_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + unsigned int run_threads;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + u32 *crc32;
1: + size_t *unc_len[3];
1: + unsigned char *unc[3];
1: +};
1: +
1: +struct cmp_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[131072];
1: + unsigned char cmp[143360];
1: + unsigned char wrk[16384];
1: +};
1: +
1: +struct dec_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[131072];
1: + unsigned char cmp[143360];
1: +};
1: +
1: +typedef s64 compat_loff_t;
1: +
1: +struct resume_swap_area {
1: + __kernel_loff_t offset;
1: + __u32 dev;
1: +} __attribute__((packed));
1: +
1: +struct snapshot_data {
1: + struct snapshot_handle handle;
1: + int swap;
1: + int mode;
1: + bool frozen;
1: + bool ready;
1: + bool platform_support;
1: + bool free_bitmaps;
1: + dev_t dev;
1: +};
1: +
1: +struct compat_resume_swap_area {
1: + compat_loff_t offset;
1: + u32 dev;
1: +} __attribute__((packed));
1: +
1: +struct sysrq_key_op {
1: + void (* const handler)(int);
1: + const char * const help_msg;
1: + const char * const action_msg;
1: + const int enable_mask;
1: +};
1: +
1: +struct em_data_callback {
1: + int (*active_power)(long unsigned int *, long unsigned int *, struct device *);
1: +};
1: +
1: +struct dev_printk_info {
1: + char subsystem[16];
1: + char device[48];
1: +};
1: +
1: +struct console {
1: + char name[16];
1: + void (*write)(struct console *, const char *, unsigned int);
1: + int (*read)(struct console *, char *, unsigned int);
1: + struct tty_driver * (*device)(struct console *, int *);
1: + void (*unblank)();
1: + int (*setup)(struct console *, char *);
1: + int (*exit)(struct console *);
1: + int (*match)(struct console *, char *, int, char *);
1: + short int flags;
1: + short int index;
1: + int cflag;
1: + void *data;
1: + struct console *next;
1: +};
1: +
1: +struct kmsg_dumper {
1: + struct list_head list;
1: + void (*dump)(struct kmsg_dumper *, enum kmsg_dump_reason);
1: + enum kmsg_dump_reason max_reason;
1: + bool active;
1: + bool registered;
1: + u32 cur_idx;
1: + u32 next_idx;
1: + u64 cur_seq;
1: + u64 next_seq;
1: +};
1: +
1: +struct trace_event_raw_console {
1: + struct trace_entry ent;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_console {
1: + u32 msg;
1: +};
1: +
1: +typedef void (*btf_trace_console)(void *, const char *, size_t);
1: +
1: +struct printk_info {
1: + u64 seq;
1: + u64 ts_nsec;
1: + u16 text_len;
1: + u8 facility;
1: + u8 flags: 5;
1: + u8 level: 3;
1: + u32 caller_id;
1: + struct dev_printk_info dev_info;
1: +};
1: +
1: +struct printk_record {
1: + struct printk_info *info;
1: + char *text_buf;
1: + unsigned int text_buf_size;
1: +};
1: +
1: +struct prb_data_blk_lpos {
1: + long unsigned int begin;
1: + long unsigned int next;
1: +};
1: +
1: +struct prb_desc {
1: + atomic_long_t state_var;
1: + struct prb_data_blk_lpos text_blk_lpos;
1: +};
1: +
1: +struct prb_data_ring {
1: + unsigned int size_bits;
1: + char *data;
1: + atomic_long_t head_lpos;
1: + atomic_long_t tail_lpos;
1: +};
1: +
1: +struct prb_desc_ring {
1: + unsigned int count_bits;
1: + struct prb_desc *descs;
1: + struct printk_info *infos;
1: + atomic_long_t head_id;
1: + atomic_long_t tail_id;
1: +};
1: +
1: +struct printk_ringbuffer {
1: + struct prb_desc_ring desc_ring;
1: + struct prb_data_ring text_data_ring;
1: + atomic_long_t fail;
1: +};
1: +
1: +struct prb_reserved_entry {
1: + struct printk_ringbuffer *rb;
1: + long unsigned int irqflags;
1: + long unsigned int id;
1: + unsigned int text_space;
1: +};
1: +
1: +enum desc_state {
1: + desc_miss = 4294967295,
1: + desc_reserved = 0,
1: + desc_committed = 1,
1: + desc_finalized = 2,
1: + desc_reusable = 3,
1: +};
1: +
1: +struct console_cmdline {
1: + char name[16];
1: + int index;
1: + bool user_specified;
1: + char *options;
1: + char *brl_options;
1: +};
1: +
1: +enum devkmsg_log_bits {
1: + __DEVKMSG_LOG_BIT_ON = 0,
1: + __DEVKMSG_LOG_BIT_OFF = 1,
1: + __DEVKMSG_LOG_BIT_LOCK = 2,
1: +};
1: +
1: +enum devkmsg_log_masks {
1: + DEVKMSG_LOG_MASK_ON = 1,
1: + DEVKMSG_LOG_MASK_OFF = 2,
1: + DEVKMSG_LOG_MASK_LOCK = 4,
1: +};
1: +
1: +enum con_msg_format_flags {
1: + MSG_FORMAT_DEFAULT = 0,
1: + MSG_FORMAT_SYSLOG = 1,
1: +};
1: +
1: +enum log_flags {
1: + LOG_NEWLINE = 2,
1: + LOG_CONT = 8,
1: +};
1: +
1: +struct devkmsg_user {
1: + u64 seq;
1: + struct ratelimit_state rs;
1: + struct mutex lock;
1: + char buf[8192];
1: + struct printk_info info;
1: + char text_buf[8192];
1: + struct printk_record record;
1: +};
1: +
1: +struct printk_safe_seq_buf {
1: + atomic_t len;
1: + atomic_t message_lost;
1: + struct irq_work work;
1: + unsigned char buffer[8160];
1: +};
1: +
1: +struct prb_data_block {
1: + long unsigned int id;
1: + char data[0];
1: +};
1: +
1: +enum {
1: + IRQS_AUTODETECT = 1,
1: + IRQS_SPURIOUS_DISABLED = 2,
1: + IRQS_POLL_INPROGRESS = 8,
1: + IRQS_ONESHOT = 32,
1: + IRQS_REPLAY = 64,
1: + IRQS_WAITING = 128,
1: + IRQS_PENDING = 512,
1: + IRQS_SUSPENDED = 2048,
1: + IRQS_TIMINGS = 4096,
1: + IRQS_NMI = 8192,
1: +};
1: +
1: +enum {
1: + _IRQ_DEFAULT_INIT_FLAGS = 0,
1: + _IRQ_PER_CPU = 512,
1: + _IRQ_LEVEL = 256,
1: + _IRQ_NOPROBE = 1024,
1: + _IRQ_NOREQUEST = 2048,
1: + _IRQ_NOTHREAD = 65536,
1: + _IRQ_NOAUTOEN = 4096,
1: + _IRQ_MOVE_PCNTXT = 16384,
1: + _IRQ_NO_BALANCING = 8192,
1: + _IRQ_NESTED_THREAD = 32768,
1: + _IRQ_PER_CPU_DEVID = 131072,
1: + _IRQ_IS_POLLED = 262144,
1: + _IRQ_DISABLE_UNLAZY = 524288,
1: + _IRQ_HIDDEN = 1048576,
1: + _IRQF_MODIFY_MASK = 2096911,
1: +};
1: +
1: +enum {
1: + IRQTF_RUNTHREAD = 0,
1: + IRQTF_WARNED = 1,
1: + IRQTF_AFFINITY = 2,
1: + IRQTF_FORCED_THREAD = 3,
1: +};
1: +
1: +enum {
1: + IRQ_SET_MASK_OK = 0,
1: + IRQ_SET_MASK_OK_NOCOPY = 1,
1: + IRQ_SET_MASK_OK_DONE = 2,
1: +};
1: +
1: +enum {
1: + IRQCHIP_SET_TYPE_MASKED = 1,
1: + IRQCHIP_EOI_IF_HANDLED = 2,
1: + IRQCHIP_MASK_ON_SUSPEND = 4,
1: + IRQCHIP_ONOFFLINE_ENABLED = 8,
1: + IRQCHIP_SKIP_SET_WAKE = 16,
1: + IRQCHIP_ONESHOT_SAFE = 32,
1: + IRQCHIP_EOI_THREADED = 64,
1: + IRQCHIP_SUPPORTS_LEVEL_MSI = 128,
1: + IRQCHIP_SUPPORTS_NMI = 256,
1: + IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND = 512,
1: +};
1: +
1: +enum {
1: + IRQC_IS_HARDIRQ = 0,
1: + IRQC_IS_NESTED = 1,
1: +};
1: +
1: +enum {
1: + IRQ_STARTUP_NORMAL = 0,
1: + IRQ_STARTUP_MANAGED = 1,
1: + IRQ_STARTUP_ABORT = 2,
1: +};
1: +
1: +struct irq_devres {
1: + unsigned int irq;
1: + void *dev_id;
1: +};
1: +
1: +struct irq_desc_devres {
1: + unsigned int from;
1: + unsigned int cnt;
1: +};
1: +
1: +struct irq_generic_chip_devres {
1: + struct irq_chip_generic *gc;
1: + u32 msk;
1: + unsigned int clr;
1: + unsigned int set;
1: +};
1: +
1: +enum {
1: + IRQ_DOMAIN_FLAG_HIERARCHY = 1,
1: + IRQ_DOMAIN_NAME_ALLOCATED = 2,
1: + IRQ_DOMAIN_FLAG_IPI_PER_CPU = 4,
1: + IRQ_DOMAIN_FLAG_IPI_SINGLE = 8,
1: + IRQ_DOMAIN_FLAG_MSI = 16,
1: + IRQ_DOMAIN_FLAG_MSI_REMAP = 32,
1: + IRQ_DOMAIN_MSI_NOMASK_QUIRK = 64,
1: + IRQ_DOMAIN_FLAG_NONCORE = 65536,
1: +};
1: +
1: +enum {
1: + IRQCHIP_FWNODE_REAL = 0,
1: + IRQCHIP_FWNODE_NAMED = 1,
1: + IRQCHIP_FWNODE_NAMED_ID = 2,
1: +};
1: +
1: +struct irqchip_fwid {
1: + struct fwnode_handle fwnode;
1: + unsigned int type;
1: + char *name;
1: + phys_addr_t *pa;
1: +};
1: +
1: +enum {
1: + AFFINITY = 0,
1: + AFFINITY_LIST = 1,
1: + EFFECTIVE = 2,
1: + EFFECTIVE_LIST = 3,
1: +};
1: +
1: +struct msi_alloc_info {
1: + struct msi_desc *desc;
1: + irq_hw_number_t hwirq;
1: + union {
1: + long unsigned int ul;
1: + void *ptr;
1: + } scratchpad[2];
1: +};
1: +
1: +typedef struct msi_alloc_info msi_alloc_info_t;
1: +
1: +struct msi_domain_info;
1: +
1: +struct msi_domain_ops {
1: + irq_hw_number_t (*get_hwirq)(struct msi_domain_info *, msi_alloc_info_t *);
1: + int (*msi_init)(struct irq_domain *, struct msi_domain_info *, unsigned int, irq_hw_number_t, msi_alloc_info_t *);
1: + void (*msi_free)(struct irq_domain *, struct msi_domain_info *, unsigned int);
1: + int (*msi_check)(struct irq_domain *, struct msi_domain_info *, struct device *);
1: + int (*msi_prepare)(struct irq_domain *, struct device *, int, msi_alloc_info_t *);
1: + void (*msi_finish)(msi_alloc_info_t *, int);
1: + void (*set_desc)(msi_alloc_info_t *, struct msi_desc *);
1: + int (*handle_error)(struct irq_domain *, struct msi_desc *, int);
1: + int (*domain_alloc_irqs)(struct irq_domain *, struct device *, int);
1: + void (*domain_free_irqs)(struct irq_domain *, struct device *);
1: +};
1: +
1: +struct msi_domain_info {
1: + u32 flags;
1: + struct msi_domain_ops *ops;
1: + struct irq_chip *chip;
1: + void *chip_data;
1: + irq_flow_handler_t handler;
1: + void *handler_data;
1: + const char *handler_name;
1: + void *data;
1: +};
1: +
1: +enum {
1: + MSI_FLAG_USE_DEF_DOM_OPS = 1,
1: + MSI_FLAG_USE_DEF_CHIP_OPS = 2,
1: + MSI_FLAG_MULTI_PCI_MSI = 4,
1: + MSI_FLAG_PCI_MSIX = 8,
1: + MSI_FLAG_ACTIVATE_EARLY = 16,
1: + MSI_FLAG_MUST_REACTIVATE = 32,
1: + MSI_FLAG_LEVEL_CAPABLE = 64,
1: +};
1: +
1: +struct irq_affinity {
1: + unsigned int pre_vectors;
1: + unsigned int post_vectors;
1: + unsigned int nr_sets;
1: + unsigned int set_size[4];
1: + void (*calc_sets)(struct irq_affinity *, unsigned int);
1: + void *priv;
1: +};
1: +
1: +struct node_vectors {
1: + unsigned int id;
1: + union {
1: + unsigned int nvectors;
1: + unsigned int ncpus;
1: + };
1: +};
1: +
1: +typedef void (*call_rcu_func_t)(struct callback_head *, rcu_callback_t);
1: +
1: +struct rcu_synchronize {
1: + struct callback_head head;
1: + struct completion completion;
1: +};
1: +
1: +struct trace_event_raw_rcu_utilization {
1: + struct trace_entry ent;
1: + const char *s;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rcu_utilization {};
1: +
1: +typedef void (*btf_trace_rcu_utilization)(void *, const char *);
1: +
1: +struct rcu_tasks;
1: +
1: +typedef void (*rcu_tasks_gp_func_t)(struct rcu_tasks *);
1: +
1: +typedef void (*pregp_func_t)();
1: +
1: +typedef void (*pertask_func_t)(struct task_struct *, struct list_head *);
1: +
1: +typedef void (*postscan_func_t)(struct list_head *);
1: +
1: +typedef void (*holdouts_func_t)(struct list_head *, bool, bool *);
1: +
1: +typedef void (*postgp_func_t)(struct rcu_tasks *);
1: +
1: +struct rcu_tasks {
1: + struct callback_head *cbs_head;
1: + struct callback_head **cbs_tail;
1: + struct wait_queue_head cbs_wq;
1: + raw_spinlock_t cbs_lock;
1: + int gp_state;
1: + int gp_sleep;
1: + int init_fract;
1: + long unsigned int gp_jiffies;
1: + long unsigned int gp_start;
1: + long unsigned int n_gps;
1: + long unsigned int n_ipis;
1: + long unsigned int n_ipis_fails;
1: + struct task_struct *kthread_ptr;
1: + rcu_tasks_gp_func_t gp_func;
1: + pregp_func_t pregp_func;
1: + pertask_func_t pertask_func;
1: + postscan_func_t postscan_func;
1: + holdouts_func_t holdouts_func;
1: + postgp_func_t postgp_func;
1: + call_rcu_func_t call_func;
1: + char *name;
1: + char *kname;
1: +};
1: +
1: +enum {
1: + GP_IDLE = 0,
1: + GP_ENTER = 1,
1: + GP_PASSED = 2,
1: + GP_EXIT = 3,
1: + GP_REPLAY = 4,
1: +};
1: +
1: +struct rcu_cblist {
1: + struct callback_head *head;
1: + struct callback_head **tail;
1: + long int len;
1: +};
1: +
1: +enum rcutorture_type {
1: + RCU_FLAVOR = 0,
1: + RCU_TASKS_FLAVOR = 1,
1: + RCU_TASKS_RUDE_FLAVOR = 2,
1: + RCU_TASKS_TRACING_FLAVOR = 3,
1: + RCU_TRIVIAL_FLAVOR = 4,
1: + SRCU_FLAVOR = 5,
1: + INVALID_RCU_FLAVOR = 6,
1: +};
1: +
1: +enum tick_dep_bits {
1: + TICK_DEP_BIT_POSIX_TIMER = 0,
1: + TICK_DEP_BIT_PERF_EVENTS = 1,
1: + TICK_DEP_BIT_SCHED = 2,
1: + TICK_DEP_BIT_CLOCK_UNSTABLE = 3,
1: + TICK_DEP_BIT_RCU = 4,
1: + TICK_DEP_BIT_RCU_EXP = 5,
1: +};
1: +
1: +struct rcu_exp_work {
1: + long unsigned int rew_s;
1: + struct work_struct rew_work;
1: +};
1: +
1: +struct rcu_node {
1: + raw_spinlock_t lock;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + long unsigned int completedqs;
1: + long unsigned int qsmask;
1: + long unsigned int rcu_gp_init_mask;
1: + long unsigned int qsmaskinit;
1: + long unsigned int qsmaskinitnext;
1: + long unsigned int expmask;
1: + long unsigned int expmaskinit;
1: + long unsigned int expmaskinitnext;
1: + long unsigned int cbovldmask;
1: + long unsigned int ffmask;
1: + long unsigned int grpmask;
1: + int grplo;
1: + int grphi;
1: + u8 grpnum;
1: + u8 level;
1: + bool wait_blkd_tasks;
1: + struct rcu_node *parent;
1: + struct list_head blkd_tasks;
1: + struct list_head *gp_tasks;
1: + struct list_head *exp_tasks;
1: + struct list_head *boost_tasks;
1: + struct rt_mutex boost_mtx;
1: + long unsigned int boost_time;
1: + struct task_struct *boost_kthread_task;
1: + unsigned int boost_kthread_status;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + raw_spinlock_t fqslock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t exp_lock;
1: + long unsigned int exp_seq_rq;
1: + wait_queue_head_t exp_wq[4];
1: + struct rcu_exp_work rew;
1: + bool exp_need_flush;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +union rcu_noqs {
1: + struct {
1: + u8 norm;
1: + u8 exp;
1: + } b;
1: + u16 s;
1: +};
1: +
1: +struct rcu_data {
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + union rcu_noqs cpu_no_qs;
1: + bool core_needs_qs;
1: + bool beenonline;
1: + bool gpwrap;
1: + bool exp_deferred_qs;
1: + bool cpu_started;
1: + struct rcu_node *mynode;
1: + long unsigned int grpmask;
1: + long unsigned int ticks_this_gp;
1: + struct irq_work defer_qs_iw;
1: + bool defer_qs_iw_pending;
1: + struct work_struct strict_work;
1: + struct rcu_segcblist cblist;
1: + long int qlen_last_fqs_check;
1: + long unsigned int n_cbs_invoked;
1: + long unsigned int n_force_qs_snap;
1: + long int blimit;
1: + int dynticks_snap;
1: + long int dynticks_nesting;
1: + long int dynticks_nmi_nesting;
1: + atomic_t dynticks;
1: + bool rcu_need_heavy_qs;
1: + bool rcu_urgent_qs;
1: + bool rcu_forced_tick;
1: + bool rcu_forced_tick_exp;
1: + struct callback_head barrier_head;
1: + int exp_dynticks_snap;
1: + struct task_struct *rcu_cpu_kthread_task;
1: + unsigned int rcu_cpu_kthread_status;
1: + char rcu_cpu_has_work;
1: + unsigned int softirq_snap;
1: + struct irq_work rcu_iw;
1: + bool rcu_iw_pending;
1: + long unsigned int rcu_iw_gp_seq;
1: + long unsigned int rcu_ofl_gp_seq;
1: + short int rcu_ofl_gp_flags;
1: + long unsigned int rcu_onl_gp_seq;
1: + short int rcu_onl_gp_flags;
1: + long unsigned int last_fqs_resched;
1: + int cpu;
1: +};
1: +
1: +struct rcu_state {
1: + struct rcu_node node[9];
1: + struct rcu_node *level[3];
1: + int ncpus;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u8 boost;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_max;
1: + struct task_struct *gp_kthread;
1: + struct swait_queue_head gp_wq;
1: + short int gp_flags;
1: + short int gp_state;
1: + long unsigned int gp_wake_time;
1: + long unsigned int gp_wake_seq;
1: + struct mutex barrier_mutex;
1: + atomic_t barrier_cpu_count;
1: + struct completion barrier_completion;
1: + long unsigned int barrier_sequence;
1: + struct mutex exp_mutex;
1: + struct mutex exp_wake_mutex;
1: + long unsigned int expedited_sequence;
1: + atomic_t expedited_need_qs;
1: + struct swait_queue_head expedited_wq;
1: + int ncpus_snap;
1: + u8 cbovld;
1: + u8 cbovldnext;
1: + long unsigned int jiffies_force_qs;
1: + long unsigned int jiffies_kick_kthreads;
1: + long unsigned int n_force_qs;
1: + long unsigned int gp_start;
1: + long unsigned int gp_end;
1: + long unsigned int gp_activity;
1: + long unsigned int gp_req_activity;
1: + long unsigned int jiffies_stall;
1: + long unsigned int jiffies_resched;
1: + long unsigned int n_force_qs_gpstart;
1: + const char *name;
1: + char abbr;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + raw_spinlock_t ofl_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kvfree_rcu_bulk_data {
1: + long unsigned int nr_records;
1: + struct kvfree_rcu_bulk_data *next;
1: + void *records[0];
1: +};
1: +
1: +struct kfree_rcu_cpu;
1: +
1: +struct kfree_rcu_cpu_work {
1: + struct rcu_work rcu_work;
1: + struct callback_head *head_free;
1: + struct kvfree_rcu_bulk_data *bkvhead_free[2];
1: + struct kfree_rcu_cpu *krcp;
1: +};
1: +
1: +struct kfree_rcu_cpu {
1: + struct callback_head *head;
1: + struct kvfree_rcu_bulk_data *bkvhead[2];
1: + struct kfree_rcu_cpu_work krw_arr[2];
1: + raw_spinlock_t lock;
1: + struct delayed_work monitor_work;
1: + bool monitor_todo;
1: + bool initialized;
1: + int count;
1: + struct work_struct page_cache_work;
1: + atomic_t work_in_progress;
1: + struct hrtimer hrtimer;
1: + struct llist_head bkvcache;
1: + int nr_bkv_objs;
1: +};
1: +
1: +enum dma_sync_target {
1: + SYNC_FOR_CPU = 0,
1: + SYNC_FOR_DEVICE = 1,
1: +};
1: +
1: +struct dma_devres {
1: + size_t size;
1: + void *vaddr;
1: + dma_addr_t dma_handle;
1: + long unsigned int attrs;
1: +};
1: +
1: +struct reserved_mem_ops;
1: +
1: +struct reserved_mem {
1: + const char *name;
1: + long unsigned int fdt_node;
1: + long unsigned int phandle;
1: + const struct reserved_mem_ops *ops;
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + void *priv;
1: +};
1: +
1: +struct reserved_mem_ops {
1: + int (*device_init)(struct reserved_mem *, struct device *);
1: + void (*device_release)(struct reserved_mem *, struct device *);
1: +};
1: +
1: +typedef int (*reservedmem_of_init_fn)(struct reserved_mem *);
1: +
1: +struct dma_coherent_mem {
1: + void *virt_base;
1: + dma_addr_t device_base;
1: + long unsigned int pfn_base;
1: + int size;
1: + long unsigned int *bitmap;
1: + spinlock_t spinlock;
1: + bool use_dev_dma_pfn_offset;
1: +};
1: +
1: +struct trace_event_raw_swiotlb_bounced {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev_name;
1: + u64 dma_mask;
1: + dma_addr_t dev_addr;
1: + size_t size;
1: + enum swiotlb_force swiotlb_force;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_swiotlb_bounced {
1: + u32 dev_name;
1: +};
1: +
1: +typedef void (*btf_trace_swiotlb_bounced)(void *, struct device *, dma_addr_t, size_t, enum swiotlb_force);
1: +
1: +struct gen_pool;
1: +
1: +typedef long unsigned int (*genpool_algo_t)(long unsigned int *, long unsigned int, long unsigned int, unsigned int, void *, struct gen_pool *, long unsigned int);
1: +
1: +struct gen_pool {
1: + spinlock_t lock;
1: + struct list_head chunks;
1: + int min_alloc_order;
1: + genpool_algo_t algo;
1: + void *data;
1: + const char *name;
1: +};
1: +
1: +enum kcmp_type {
1: + KCMP_FILE = 0,
1: + KCMP_VM = 1,
1: + KCMP_FILES = 2,
1: + KCMP_FS = 3,
1: + KCMP_SIGHAND = 4,
1: + KCMP_IO = 5,
1: + KCMP_SYSVSEM = 6,
1: + KCMP_EPOLL_TFD = 7,
1: + KCMP_TYPES = 8,
1: +};
1: +
1: +struct kcmp_epoll_slot {
1: + __u32 efd;
1: + __u32 tfd;
1: + __u32 toff;
1: +};
1: +
1: +enum profile_type {
1: + PROFILE_TASK_EXIT = 0,
1: + PROFILE_MUNMAP = 1,
1: +};
1: +
1: +struct profile_hit {
1: + u32 pc;
1: + u32 hits;
1: +};
1: +
1: +struct stacktrace_cookie {
1: + long unsigned int *store;
1: + unsigned int size;
1: + unsigned int skip;
1: + unsigned int len;
1: +};
1: +
1: +typedef __kernel_long_t __kernel_suseconds_t;
1: +
1: +typedef __kernel_suseconds_t suseconds_t;
1: +
1: +typedef __u64 timeu64_t;
1: +
1: +struct __kernel_itimerspec {
1: + struct __kernel_timespec it_interval;
1: + struct __kernel_timespec it_value;
1: +};
1: +
1: +struct timezone {
1: + int tz_minuteswest;
1: + int tz_dsttime;
1: +};
1: +
1: +struct itimerspec64 {
1: + struct timespec64 it_interval;
1: + struct timespec64 it_value;
1: +};
1: +
1: +struct old_itimerspec32 {
1: + struct old_timespec32 it_interval;
1: + struct old_timespec32 it_value;
1: +};
1: +
1: +struct old_timex32 {
1: + u32 modes;
1: + s32 offset;
1: + s32 freq;
1: + s32 maxerror;
1: + s32 esterror;
1: + s32 status;
1: + s32 constant;
1: + s32 precision;
1: + s32 tolerance;
1: + struct old_timeval32 time;
1: + s32 tick;
1: + s32 ppsfreq;
1: + s32 jitter;
1: + s32 shift;
1: + s32 stabil;
1: + s32 jitcnt;
1: + s32 calcnt;
1: + s32 errcnt;
1: + s32 stbcnt;
1: + s32 tai;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct __kernel_timex_timeval {
1: + __kernel_time64_t tv_sec;
1: + long long int tv_usec;
1: +};
1: +
1: +struct __kernel_timex {
1: + unsigned int modes;
1: + long long int offset;
1: + long long int freq;
1: + long long int maxerror;
1: + long long int esterror;
1: + int status;
1: + long long int constant;
1: + long long int precision;
1: + long long int tolerance;
1: + struct __kernel_timex_timeval time;
1: + long long int tick;
1: + long long int ppsfreq;
1: + long long int jitter;
1: + int shift;
1: + long long int stabil;
1: + long long int jitcnt;
1: + long long int calcnt;
1: + long long int errcnt;
1: + long long int stbcnt;
1: + int tai;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct trace_event_raw_timer_class {
1: + struct trace_entry ent;
1: + void *timer;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_timer_start {
1: + struct trace_entry ent;
1: + void *timer;
1: + void *function;
1: + long unsigned int expires;
1: + long unsigned int now;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_timer_expire_entry {
1: + struct trace_entry ent;
1: + void *timer;
1: + long unsigned int now;
1: + void *function;
1: + long unsigned int baseclk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_init {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + clockid_t clockid;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_start {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + void *function;
1: + s64 expires;
1: + s64 softexpires;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_expire_entry {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + s64 now;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_class {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_itimer_state {
1: + struct trace_entry ent;
1: + int which;
1: + long long unsigned int expires;
1: + long int value_sec;
1: + long int value_nsec;
1: + long int interval_sec;
1: + long int interval_nsec;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_itimer_expire {
1: + struct trace_entry ent;
1: + int which;
1: + pid_t pid;
1: + long long unsigned int now;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tick_stop {
1: + struct trace_entry ent;
1: + int success;
1: + int dependency;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_timer_class {};
1: +
1: +struct trace_event_data_offsets_timer_start {};
1: +
1: +struct trace_event_data_offsets_timer_expire_entry {};
1: +
1: +struct trace_event_data_offsets_hrtimer_init {};
1: +
1: +struct trace_event_data_offsets_hrtimer_start {};
1: +
1: +struct trace_event_data_offsets_hrtimer_expire_entry {};
1: +
1: +struct trace_event_data_offsets_hrtimer_class {};
1: +
1: +struct trace_event_data_offsets_itimer_state {};
1: +
1: +struct trace_event_data_offsets_itimer_expire {};
1: +
1: +struct trace_event_data_offsets_tick_stop {};
1: +
1: +typedef void (*btf_trace_timer_init)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_timer_start)(void *, struct timer_list *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_timer_expire_entry)(void *, struct timer_list *, long unsigned int);
1: +
1: +typedef void (*btf_trace_timer_expire_exit)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_timer_cancel)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_hrtimer_init)(void *, struct hrtimer *, clockid_t, enum hrtimer_mode);
1: +
1: +typedef void (*btf_trace_hrtimer_start)(void *, struct hrtimer *, enum hrtimer_mode);
1: +
1: +typedef void (*btf_trace_hrtimer_expire_entry)(void *, struct hrtimer *, ktime_t *);
1: +
1: +typedef void (*btf_trace_hrtimer_expire_exit)(void *, struct hrtimer *);
1: +
1: +typedef void (*btf_trace_hrtimer_cancel)(void *, struct hrtimer *);
1: +
1: +typedef void (*btf_trace_itimer_state)(void *, int, const struct itimerspec64 * const, long long unsigned int);
1: +
1: +typedef void (*btf_trace_itimer_expire)(void *, int, struct pid *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_tick_stop)(void *, int, int);
1: +
1: +struct timer_base {
1: + raw_spinlock_t lock;
1: + struct timer_list *running_timer;
1: + long unsigned int clk;
1: + long unsigned int next_expiry;
1: + unsigned int cpu;
1: + bool next_expiry_recalc;
1: + bool is_idle;
1: + long unsigned int pending_map[9];
1: + struct hlist_head vectors[576];
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct process_timer {
1: + struct timer_list timer;
1: + struct task_struct *task;
1: +};
1: +
1: +enum clock_event_state {
1: + CLOCK_EVT_STATE_DETACHED = 0,
1: + CLOCK_EVT_STATE_SHUTDOWN = 1,
1: + CLOCK_EVT_STATE_PERIODIC = 2,
1: + CLOCK_EVT_STATE_ONESHOT = 3,
1: + CLOCK_EVT_STATE_ONESHOT_STOPPED = 4,
1: +};
1: +
1: +struct clock_event_device {
1: + void (*event_handler)(struct clock_event_device *);
1: + int (*set_next_event)(long unsigned int, struct clock_event_device *);
1: + int (*set_next_ktime)(ktime_t, struct clock_event_device *);
1: + ktime_t next_event;
1: + u64 max_delta_ns;
1: + u64 min_delta_ns;
1: + u32 mult;
1: + u32 shift;
1: + enum clock_event_state state_use_accessors;
1: + unsigned int features;
1: + long unsigned int retries;
1: + int (*set_state_periodic)(struct clock_event_device *);
1: + int (*set_state_oneshot)(struct clock_event_device *);
1: + int (*set_state_oneshot_stopped)(struct clock_event_device *);
1: + int (*set_state_shutdown)(struct clock_event_device *);
1: + int (*tick_resume)(struct clock_event_device *);
1: + void (*broadcast)(const struct cpumask *);
1: + void (*suspend)(struct clock_event_device *);
1: + void (*resume)(struct clock_event_device *);
1: + long unsigned int min_delta_ticks;
1: + long unsigned int max_delta_ticks;
1: + const char *name;
1: + int rating;
1: + int irq;
1: + int bound_on;
1: + const struct cpumask *cpumask;
1: + struct list_head list;
1: + struct module *owner;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum tick_device_mode {
1: + TICKDEV_MODE_PERIODIC = 0,
1: + TICKDEV_MODE_ONESHOT = 1,
1: +};
1: +
1: +struct tick_device {
1: + struct clock_event_device *evtdev;
1: + enum tick_device_mode mode;
1: +};
1: +
1: +struct ktime_timestamps {
1: + u64 mono;
1: + u64 boot;
1: + u64 real;
1: +};
1: +
1: +struct system_time_snapshot {
1: + u64 cycles;
1: + ktime_t real;
1: + ktime_t raw;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: +};
1: +
1: +struct system_device_crosststamp {
1: + ktime_t device;
1: + ktime_t sys_realtime;
1: + ktime_t sys_monoraw;
1: +};
1: +
1: +struct system_counterval_t {
1: + u64 cycles;
1: + struct clocksource *cs;
1: +};
1: +
1: +typedef struct {
1: + seqcount_t seqcount;
1: +} seqcount_latch_t;
1: +
1: +struct audit_ntp_val {
1: + long long int oldval;
1: + long long int newval;
1: +};
1: +
1: +struct audit_ntp_data {
1: + struct audit_ntp_val vals[6];
1: +};
1: +
1: +enum timekeeping_adv_mode {
1: + TK_ADV_TICK = 0,
1: + TK_ADV_FREQ = 1,
1: +};
1: +
1: +struct tk_fast {
1: + seqcount_latch_t seq;
1: + struct tk_read_base base[2];
1: +};
1: +
1: +enum tick_nohz_mode {
1: + NOHZ_MODE_INACTIVE = 0,
1: + NOHZ_MODE_LOWRES = 1,
1: + NOHZ_MODE_HIGHRES = 2,
1: +};
1: +
1: +struct tick_sched {
1: + struct hrtimer sched_timer;
1: + long unsigned int check_clocks;
1: + enum tick_nohz_mode nohz_mode;
1: + unsigned int inidle: 1;
1: + unsigned int tick_stopped: 1;
1: + unsigned int idle_active: 1;
1: + unsigned int do_timer_last: 1;
1: + unsigned int got_idle_tick: 1;
1: + ktime_t last_tick;
1: + ktime_t next_tick;
1: + long unsigned int idle_jiffies;
1: + long unsigned int idle_calls;
1: + long unsigned int idle_sleeps;
1: + ktime_t idle_entrytime;
1: + ktime_t idle_waketime;
1: + ktime_t idle_exittime;
1: + ktime_t idle_sleeptime;
1: + ktime_t iowait_sleeptime;
1: + long unsigned int last_jiffies;
1: + u64 timer_expires;
1: + u64 timer_expires_base;
1: + u64 next_timer;
1: + ktime_t idle_expires;
1: + atomic_t tick_dep_mask;
1: +};
1: +
1: +struct timer_list_iter {
1: + int cpu;
1: + bool second_pass;
1: + u64 now;
1: +};
1: +
1: +struct tm {
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + long int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: +};
1: +
1: +typedef __kernel_timer_t timer_t;
1: +
1: +struct rtc_time {
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: + int tm_isdst;
1: +};
1: +
1: +struct rtc_wkalrm {
1: + unsigned char enabled;
1: + unsigned char pending;
1: + struct rtc_time time;
1: +};
1: +
1: +enum alarmtimer_type {
1: + ALARM_REALTIME = 0,
1: + ALARM_BOOTTIME = 1,
1: + ALARM_NUMTYPE = 2,
1: + ALARM_REALTIME_FREEZER = 3,
1: + ALARM_BOOTTIME_FREEZER = 4,
1: +};
1: +
1: +enum alarmtimer_restart {
1: + ALARMTIMER_NORESTART = 0,
1: + ALARMTIMER_RESTART = 1,
1: +};
1: +
1: +struct alarm {
1: + struct timerqueue_node node;
1: + struct hrtimer timer;
1: + enum alarmtimer_restart (*function)(struct alarm *, ktime_t);
1: + enum alarmtimer_type type;
1: + int state;
1: + void *data;
1: +};
1: +
1: +struct cpu_timer {
1: + struct timerqueue_node node;
1: + struct timerqueue_head *head;
1: + struct pid *pid;
1: + struct list_head elist;
1: + int firing;
1: +};
1: +
1: +struct k_clock;
1: +
1: +struct k_itimer {
1: + struct list_head list;
1: + struct hlist_node t_hash;
1: + spinlock_t it_lock;
1: + const struct k_clock *kclock;
1: + clockid_t it_clock;
1: + timer_t it_id;
1: + int it_active;
1: + s64 it_overrun;
1: + s64 it_overrun_last;
1: + int it_requeue_pending;
1: + int it_sigev_notify;
1: + ktime_t it_interval;
1: + struct signal_struct *it_signal;
1: + union {
1: + struct pid *it_pid;
1: + struct task_struct *it_process;
1: + };
1: + struct sigqueue *sigq;
1: + union {
1: + struct {
1: + struct hrtimer timer;
1: + } real;
1: + struct cpu_timer cpu;
1: + struct {
1: + struct alarm alarmtimer;
1: + } alarm;
1: + } it;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct k_clock {
1: + int (*clock_getres)(const clockid_t, struct timespec64 *);
1: + int (*clock_set)(const clockid_t, const struct timespec64 *);
1: + int (*clock_get_timespec)(const clockid_t, struct timespec64 *);
1: + ktime_t (*clock_get_ktime)(const clockid_t);
1: + int (*clock_adj)(const clockid_t, struct __kernel_timex *);
1: + int (*timer_create)(struct k_itimer *);
1: + int (*nsleep)(const clockid_t, int, const struct timespec64 *);
1: + int (*timer_set)(struct k_itimer *, int, struct itimerspec64 *, struct itimerspec64 *);
1: + int (*timer_del)(struct k_itimer *);
1: + void (*timer_get)(struct k_itimer *, struct itimerspec64 *);
1: + void (*timer_rearm)(struct k_itimer *);
1: + s64 (*timer_forward)(struct k_itimer *, ktime_t);
1: + ktime_t (*timer_remaining)(struct k_itimer *, ktime_t);
1: + int (*timer_try_to_cancel)(struct k_itimer *);
1: + void (*timer_arm)(struct k_itimer *, ktime_t, bool, bool);
1: + void (*timer_wait_running)(struct k_itimer *);
1: +};
1: +
1: +struct class_interface {
1: + struct list_head node;
1: + struct class *class;
1: + int (*add_dev)(struct device *, struct class_interface *);
1: + void (*remove_dev)(struct device *, struct class_interface *);
1: +};
1: +
1: +struct rtc_class_ops {
1: + int (*ioctl)(struct device *, unsigned int, long unsigned int);
1: + int (*read_time)(struct device *, struct rtc_time *);
1: + int (*set_time)(struct device *, struct rtc_time *);
1: + int (*read_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*set_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*proc)(struct device *, struct seq_file *);
1: + int (*alarm_irq_enable)(struct device *, unsigned int);
1: + int (*read_offset)(struct device *, long int *);
1: + int (*set_offset)(struct device *, long int);
1: +};
1: +
1: +struct rtc_device;
1: +
1: +struct rtc_timer {
1: + struct timerqueue_node node;
1: + ktime_t period;
1: + void (*func)(struct rtc_device *);
1: + struct rtc_device *rtc;
1: + int enabled;
1: +};
1: +
1: +struct rtc_device {
1: + struct device dev;
1: + struct module *owner;
1: + int id;
1: + const struct rtc_class_ops *ops;
1: + struct mutex ops_lock;
1: + struct cdev char_dev;
1: + long unsigned int flags;
1: + long unsigned int irq_data;
1: + spinlock_t irq_lock;
1: + wait_queue_head_t irq_queue;
1: + struct fasync_struct *async_queue;
1: + int irq_freq;
1: + int max_user_freq;
1: + struct timerqueue_head timerqueue;
1: + struct rtc_timer aie_timer;
1: + struct rtc_timer uie_rtctimer;
1: + struct hrtimer pie_timer;
1: + int pie_enabled;
1: + struct work_struct irqwork;
1: + int uie_unsupported;
1: + long int set_offset_nsec;
1: + bool registered;
1: + bool nvram_old_abi;
1: + struct bin_attribute *nvram;
1: + time64_t range_min;
1: + timeu64_t range_max;
1: + time64_t start_secs;
1: + time64_t offset_secs;
1: + bool set_start_time;
1: + struct work_struct uie_task;
1: + struct timer_list uie_timer;
1: + unsigned int oldsecs;
1: + unsigned int uie_irq_active: 1;
1: + unsigned int stop_uie_polling: 1;
1: + unsigned int uie_task_active: 1;
1: + unsigned int uie_timer_active: 1;
1: +};
1: +
1: +struct property_entry;
1: +
1: +struct platform_device_info {
1: + struct device *parent;
1: + struct fwnode_handle *fwnode;
1: + bool of_node_reused;
1: + const char *name;
1: + int id;
1: + const struct resource *res;
1: + unsigned int num_res;
1: + const void *data;
1: + size_t size_data;
1: + u64 dma_mask;
1: + const struct property_entry *properties;
1: +};
1: +
1: +enum dev_prop_type {
1: + DEV_PROP_U8 = 0,
1: + DEV_PROP_U16 = 1,
1: + DEV_PROP_U32 = 2,
1: + DEV_PROP_U64 = 3,
1: + DEV_PROP_STRING = 4,
1: + DEV_PROP_REF = 5,
1: +};
1: +
1: +struct property_entry {
1: + const char *name;
1: + size_t length;
1: + bool is_inline;
1: + enum dev_prop_type type;
1: + union {
1: + const void *pointer;
1: + union {
1: + u8 u8_data[8];
1: + u16 u16_data[4];
1: + u32 u32_data[2];
1: + u64 u64_data[1];
1: + const char *str[1];
1: + } value;
1: + };
1: +};
1: +
1: +struct trace_event_raw_alarmtimer_suspend {
1: + struct trace_entry ent;
1: + s64 expires;
1: + unsigned char alarm_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_alarm_class {
1: + struct trace_entry ent;
1: + void *alarm;
1: + unsigned char alarm_type;
1: + s64 expires;
1: + s64 now;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_alarmtimer_suspend {};
1: +
1: +struct trace_event_data_offsets_alarm_class {};
1: +
1: +typedef void (*btf_trace_alarmtimer_suspend)(void *, ktime_t, int);
1: +
1: +typedef void (*btf_trace_alarmtimer_fired)(void *, struct alarm *, ktime_t);
1: +
1: +typedef void (*btf_trace_alarmtimer_start)(void *, struct alarm *, ktime_t);
1: +
1: +typedef void (*btf_trace_alarmtimer_cancel)(void *, struct alarm *, ktime_t);
1: +
1: +struct alarm_base {
1: + spinlock_t lock;
1: + struct timerqueue_head timerqueue;
1: + ktime_t (*get_ktime)();
1: + void (*get_timespec)(struct timespec64 *);
1: + clockid_t base_clockid;
1: +};
1: +
1: +struct sigevent {
1: + sigval_t sigev_value;
1: + int sigev_signo;
1: + int sigev_notify;
1: + union {
1: + int _pad[12];
1: + int _tid;
1: + struct {
1: + void (*_function)(sigval_t);
1: + void *_attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: +};
1: +
1: +typedef struct sigevent sigevent_t;
1: +
1: +struct compat_sigevent {
1: + compat_sigval_t sigev_value;
1: + compat_int_t sigev_signo;
1: + compat_int_t sigev_notify;
1: + union {
1: + compat_int_t _pad[13];
1: + compat_int_t _tid;
1: + struct {
1: + compat_uptr_t _function;
1: + compat_uptr_t _attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: +};
1: +
1: +typedef unsigned int uint;
1: +
1: +struct posix_clock;
1: +
1: +struct posix_clock_operations {
1: + struct module *owner;
1: + int (*clock_adjtime)(struct posix_clock *, struct __kernel_timex *);
1: + int (*clock_gettime)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_getres)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_settime)(struct posix_clock *, const struct timespec64 *);
1: + long int (*ioctl)(struct posix_clock *, unsigned int, long unsigned int);
1: + int (*open)(struct posix_clock *, fmode_t);
1: + __poll_t (*poll)(struct posix_clock *, struct file *, poll_table *);
1: + int (*release)(struct posix_clock *);
1: + ssize_t (*read)(struct posix_clock *, uint, char *, size_t);
1: +};
1: +
1: +struct posix_clock {
1: + struct posix_clock_operations ops;
1: + struct cdev cdev;
1: + struct device *dev;
1: + struct rw_semaphore rwsem;
1: + bool zombie;
1: +};
1: +
1: +struct posix_clock_desc {
1: + struct file *fp;
1: + struct posix_clock *clk;
1: +};
1: +
1: +struct __kernel_old_itimerval {
1: + struct __kernel_old_timeval it_interval;
1: + struct __kernel_old_timeval it_value;
1: +};
1: +
1: +struct old_itimerval32 {
1: + struct old_timeval32 it_interval;
1: + struct old_timeval32 it_value;
1: +};
1: +
1: +typedef s64 int64_t;
1: +
1: +struct ce_unbind {
1: + struct clock_event_device *ce;
1: + int res;
1: +};
1: +
1: +enum tick_broadcast_state {
1: + TICK_BROADCAST_EXIT = 0,
1: + TICK_BROADCAST_ENTER = 1,
1: +};
1: +
1: +enum tick_broadcast_mode {
1: + TICK_BROADCAST_OFF = 0,
1: + TICK_BROADCAST_ON = 1,
1: + TICK_BROADCAST_FORCE = 2,
1: +};
1: +
1: +struct clock_data {
1: + seqcount_latch_t seq;
1: + struct clock_read_data read_data[2];
1: + ktime_t wrap_kt;
1: + long unsigned int rate;
1: + u64 (*actual_read_sched_clock)();
1: +};
1: +
1: +struct proc_timens_offset {
1: + int clockid;
1: + struct timespec64 val;
1: +};
1: +
1: +union futex_key {
1: + struct {
1: + u64 i_seq;
1: + long unsigned int pgoff;
1: + unsigned int offset;
1: + } shared;
1: + struct {
1: + union {
1: + struct mm_struct *mm;
1: + u64 __tmp;
1: + };
1: + long unsigned int address;
1: + unsigned int offset;
1: + } private;
1: + struct {
1: + u64 ptr;
1: + long unsigned int word;
1: + unsigned int offset;
1: + } both;
1: +};
1: +
1: +struct futex_pi_state {
1: + struct list_head list;
1: + struct rt_mutex pi_mutex;
1: + struct task_struct *owner;
1: + refcount_t refcount;
1: + union futex_key key;
1: +};
1: +
1: +struct futex_q {
1: + struct plist_node list;
1: + struct task_struct *task;
1: + spinlock_t *lock_ptr;
1: + union futex_key key;
1: + struct futex_pi_state *pi_state;
1: + struct rt_mutex_waiter *rt_waiter;
1: + union futex_key *requeue_pi_key;
1: + u32 bitset;
1: +};
1: +
1: +struct futex_hash_bucket {
1: + atomic_t waiters;
1: + spinlock_t lock;
1: + struct plist_head chain;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum futex_access {
1: + FUTEX_READ = 0,
1: + FUTEX_WRITE = 1,
1: +};
1: +
1: +typedef bool (*smp_cond_func_t)(int, void *);
1: +
1: +struct call_function_data {
1: + call_single_data_t *csd;
1: + cpumask_var_t cpumask;
1: + cpumask_var_t cpumask_ipi;
1: +};
1: +
1: +struct smp_call_on_cpu_struct {
1: + struct work_struct work;
1: + struct completion done;
1: + int (*func)(void *);
1: + void *data;
1: + int ret;
1: + int cpu;
1: +};
1: +
1: +typedef short unsigned int __kernel_old_uid_t;
1: +
1: +typedef short unsigned int __kernel_old_gid_t;
1: +
1: +typedef __kernel_old_uid_t old_uid_t;
1: +
1: +typedef __kernel_old_gid_t old_gid_t;
1: +
1: +struct latch_tree_root {
1: + seqcount_latch_t seq;
1: + struct rb_root tree[2];
1: +};
1: +
1: +struct latch_tree_ops {
1: + bool (*less)(struct latch_tree_node *, struct latch_tree_node *);
1: + int (*comp)(void *, struct latch_tree_node *);
1: +};
1: +
1: +struct modversion_info {
1: + long unsigned int crc;
1: + char name[56];
1: +};
1: +
1: +struct module_use {
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + struct module *source;
1: + struct module *target;
1: +};
1: +
1: +struct module_sect_attr {
1: + struct bin_attribute battr;
1: + long unsigned int address;
1: +};
1: +
1: +struct module_sect_attrs {
1: + struct attribute_group grp;
1: + unsigned int nsections;
1: + struct module_sect_attr attrs[0];
1: +};
1: +
1: +struct module_notes_attrs {
1: + struct kobject *dir;
1: + unsigned int notes;
1: + struct bin_attribute attrs[0];
1: +};
1: +
1: +enum mod_license {
1: + NOT_GPL_ONLY = 0,
1: + GPL_ONLY = 1,
1: + WILL_BE_GPL_ONLY = 2,
1: +};
1: +
1: +struct symsearch {
1: + const struct kernel_symbol *start;
1: + const struct kernel_symbol *stop;
1: + const s32 *crcs;
1: + enum mod_license license;
1: + bool unused;
1: +};
1: +
1: +enum kernel_read_file_id {
1: + READING_UNKNOWN = 0,
1: + READING_FIRMWARE = 1,
1: + READING_MODULE = 2,
1: + READING_KEXEC_IMAGE = 3,
1: + READING_KEXEC_INITRAMFS = 4,
1: + READING_POLICY = 5,
1: + READING_X509_CERTIFICATE = 6,
1: + READING_MAX_ID = 7,
1: +};
1: +
1: +enum kernel_load_data_id {
1: + LOADING_UNKNOWN = 0,
1: + LOADING_FIRMWARE = 1,
1: + LOADING_MODULE = 2,
1: + LOADING_KEXEC_IMAGE = 3,
1: + LOADING_KEXEC_INITRAMFS = 4,
1: + LOADING_POLICY = 5,
1: + LOADING_X509_CERTIFICATE = 6,
1: + LOADING_MAX_ID = 7,
1: +};
1: +
1: +enum {
1: + PROC_ENTRY_PERMANENT = 1,
1: +};
1: +
1: +struct _ddebug {
1: + const char *modname;
1: + const char *function;
1: + const char *filename;
1: + const char *format;
1: + unsigned int lineno: 18;
1: + unsigned int flags: 8;
1: + union {
1: + struct static_key_true dd_key_true;
1: + struct static_key_false dd_key_false;
1: + } key;
1: +};
1: +
1: +struct load_info {
1: + const char *name;
1: + struct module *mod;
1: + Elf64_Ehdr *hdr;
1: + long unsigned int len;
1: + Elf64_Shdr *sechdrs;
1: + char *secstrings;
1: + char *strtab;
1: + long unsigned int symoffs;
1: + long unsigned int stroffs;
1: + long unsigned int init_typeoffs;
1: + long unsigned int core_typeoffs;
1: + struct _ddebug *debug;
1: + unsigned int num_debug;
1: + bool sig_ok;
1: + long unsigned int mod_kallsyms_init_off;
1: + struct {
1: + unsigned int sym;
1: + unsigned int str;
1: + unsigned int mod;
1: + unsigned int vers;
1: + unsigned int info;
1: + unsigned int pcpu;
1: + } index;
1: +};
1: +
1: +struct trace_event_raw_module_load {
1: + struct trace_entry ent;
1: + unsigned int taints;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_free {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_refcnt {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + int refcnt;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_request {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + bool wait;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_module_load {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_free {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_refcnt {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_request {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_module_load)(void *, struct module *);
1: +
1: +typedef void (*btf_trace_module_free)(void *, struct module *);
1: +
1: +typedef void (*btf_trace_module_get)(void *, struct module *, long unsigned int);
1: +
1: +typedef void (*btf_trace_module_put)(void *, struct module *, long unsigned int);
1: +
1: +typedef void (*btf_trace_module_request)(void *, char *, bool, long unsigned int);
1: +
1: +struct mod_tree_root {
1: + struct latch_tree_root root;
1: + long unsigned int addr_min;
1: + long unsigned int addr_max;
1: +};
1: +
1: +struct find_symbol_arg {
1: + const char *name;
1: + bool gplok;
1: + bool warn;
1: + struct module *owner;
1: + const s32 *crc;
1: + const struct kernel_symbol *sym;
1: + enum mod_license license;
1: +};
1: +
1: +struct mod_initfree {
1: + struct llist_node node;
1: + void *module_init;
1: +};
1: +
1: +struct module_signature {
1: + u8 algo;
1: + u8 hash;
1: + u8 id_type;
1: + u8 signer_len;
1: + u8 key_id_len;
1: + u8 __pad[3];
1: + __be32 sig_len;
1: +};
1: +
1: +enum pkey_id_type {
1: + PKEY_ID_PGP = 0,
1: + PKEY_ID_X509 = 1,
1: + PKEY_ID_PKCS7 = 2,
1: +};
1: +
1: +struct kallsym_iter {
1: + loff_t pos;
1: + loff_t pos_arch_end;
1: + loff_t pos_mod_end;
1: + loff_t pos_ftrace_mod_end;
1: + loff_t pos_bpf_end;
1: + long unsigned int value;
1: + unsigned int nameoff;
1: + char type;
1: + char name[128];
1: + char module_name[56];
1: + int exported;
1: + int show_value;
1: +};
1: +
1: +typedef struct {
1: + int val[2];
1: +} __kernel_fsid_t;
1: +
1: +struct kstatfs {
1: + long int f_type;
1: + long int f_bsize;
1: + u64 f_blocks;
1: + u64 f_bfree;
1: + u64 f_bavail;
1: + u64 f_files;
1: + u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + long int f_namelen;
1: + long int f_frsize;
1: + long int f_flags;
1: + long int f_spare[4];
1: +};
1: +
1: +typedef __u16 comp_t;
1: +
1: +struct acct_v3 {
1: + char ac_flag;
1: + char ac_version;
1: + __u16 ac_tty;
1: + __u32 ac_exitcode;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u32 ac_etime;
1: + comp_t ac_utime;
1: + comp_t ac_stime;
1: + comp_t ac_mem;
1: + comp_t ac_io;
1: + comp_t ac_rw;
1: + comp_t ac_minflt;
1: + comp_t ac_majflt;
1: + comp_t ac_swaps;
1: + char ac_comm[16];
1: +};
1: +
1: +typedef struct acct_v3 acct_t;
1: +
1: +struct fs_pin {
1: + wait_queue_head_t wait;
1: + int done;
1: + struct hlist_node s_list;
1: + struct hlist_node m_list;
1: + void (*kill)(struct fs_pin *);
1: +};
1: +
1: +struct bsd_acct_struct {
1: + struct fs_pin pin;
1: + atomic_long_t count;
1: + struct callback_head rcu;
1: + struct mutex lock;
1: + int active;
1: + long unsigned int needcheck;
1: + struct file *file;
1: + struct pid_namespace *ns;
1: + struct work_struct work;
1: + struct completion done;
1: +};
1: +
1: +struct elf64_note {
1: + Elf64_Word n_namesz;
1: + Elf64_Word n_descsz;
1: + Elf64_Word n_type;
1: +};
1: +
1: +struct elf_note_section {
1: + struct elf64_note n_hdr;
1: + u8 n_data[0];
1: +};
1: +
1: +typedef long unsigned int elf_greg_t;
1: +
1: +typedef elf_greg_t elf_gregset_t[34];
1: +
1: +struct elf_siginfo {
1: + int si_signo;
1: + int si_code;
1: + int si_errno;
1: +};
1: +
1: +struct elf_prstatus {
1: + struct elf_siginfo pr_info;
1: + short int pr_cursig;
1: + long unsigned int pr_sigpend;
1: + long unsigned int pr_sighold;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + struct __kernel_old_timeval pr_utime;
1: + struct __kernel_old_timeval pr_stime;
1: + struct __kernel_old_timeval pr_cutime;
1: + struct __kernel_old_timeval pr_cstime;
1: + elf_gregset_t pr_reg;
1: + int pr_fpvalid;
1: +};
1: +
1: +typedef u32 note_buf_t[106];
1: +
1: +struct compat_kexec_segment {
1: + compat_uptr_t buf;
1: + compat_size_t bufsz;
1: + compat_ulong_t mem;
1: + compat_size_t memsz;
1: +};
1: +
1: +struct elf64_phdr {
1: + Elf64_Word p_type;
1: + Elf64_Word p_flags;
1: + Elf64_Off p_offset;
1: + Elf64_Addr p_vaddr;
1: + Elf64_Addr p_paddr;
1: + Elf64_Xword p_filesz;
1: + Elf64_Xword p_memsz;
1: + Elf64_Xword p_align;
1: +};
1: +
1: +typedef struct elf64_phdr Elf64_Phdr;
1: +
1: +struct crypto_alg;
1: +
1: +struct crypto_tfm {
1: + u32 crt_flags;
1: + int node;
1: + void (*exit)(struct crypto_tfm *);
1: + struct crypto_alg *__crt_alg;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__crt_ctx[0];
1: +};
1: +
1: +struct cipher_alg {
1: + unsigned int cia_min_keysize;
1: + unsigned int cia_max_keysize;
1: + int (*cia_setkey)(struct crypto_tfm *, const u8 *, unsigned int);
1: + void (*cia_encrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: + void (*cia_decrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: +};
1: +
1: +struct compress_alg {
1: + int (*coa_compress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: + int (*coa_decompress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: +};
1: +
1: +struct crypto_type;
1: +
1: +struct crypto_alg {
1: + struct list_head cra_list;
1: + struct list_head cra_users;
1: + u32 cra_flags;
1: + unsigned int cra_blocksize;
1: + unsigned int cra_ctxsize;
1: + unsigned int cra_alignmask;
1: + int cra_priority;
1: + refcount_t cra_refcnt;
1: + char cra_name[128];
1: + char cra_driver_name[128];
1: + const struct crypto_type *cra_type;
1: + union {
1: + struct cipher_alg cipher;
1: + struct compress_alg compress;
1: + } cra_u;
1: + int (*cra_init)(struct crypto_tfm *);
1: + void (*cra_exit)(struct crypto_tfm *);
1: + void (*cra_destroy)(struct crypto_alg *);
1: + struct module *cra_module;
1: +};
1: +
1: +struct crypto_instance;
1: +
1: +struct crypto_type {
1: + unsigned int (*ctxsize)(struct crypto_alg *, u32, u32);
1: + unsigned int (*extsize)(struct crypto_alg *);
1: + int (*init)(struct crypto_tfm *, u32, u32);
1: + int (*init_tfm)(struct crypto_tfm *);
1: + void (*show)(struct seq_file *, struct crypto_alg *);
1: + int (*report)(struct sk_buff *, struct crypto_alg *);
1: + void (*free)(struct crypto_instance *);
1: + unsigned int type;
1: + unsigned int maskclear;
1: + unsigned int maskset;
1: + unsigned int tfmsize;
1: +};
1: +
1: +struct crypto_shash;
1: +
1: +struct shash_desc {
1: + struct crypto_shash *tfm;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_shash {
1: + unsigned int descsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct kexec_sha_region {
1: + long unsigned int start;
1: + long unsigned int len;
1: +};
1: +
1: +enum migrate_reason {
1: + MR_COMPACTION = 0,
1: + MR_MEMORY_FAILURE = 1,
1: + MR_MEMORY_HOTPLUG = 2,
1: + MR_SYSCALL = 3,
1: + MR_MEMPOLICY_MBIND = 4,
1: + MR_NUMA_MISPLACED = 5,
1: + MR_CONTIG_RANGE = 6,
1: + MR_TYPES = 7,
1: +};
1: +
1: +typedef __kernel_ulong_t __kernel_ino_t;
1: +
1: +typedef __kernel_ino_t ino_t;
1: +
1: +enum kernfs_node_type {
1: + KERNFS_DIR = 1,
1: + KERNFS_FILE = 2,
1: + KERNFS_LINK = 4,
1: +};
1: +
1: +enum kernfs_root_flag {
1: + KERNFS_ROOT_CREATE_DEACTIVATED = 1,
1: + KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK = 2,
1: + KERNFS_ROOT_SUPPORT_EXPORTOP = 4,
1: + KERNFS_ROOT_SUPPORT_USER_XATTR = 8,
1: +};
1: +
1: +struct kernfs_fs_context {
1: + struct kernfs_root *root;
1: + void *ns_tag;
1: + long unsigned int magic;
1: + bool new_sb_created;
1: +};
1: +
1: +enum bpf_link_type {
1: + BPF_LINK_TYPE_UNSPEC = 0,
1: + BPF_LINK_TYPE_RAW_TRACEPOINT = 1,
1: + BPF_LINK_TYPE_TRACING = 2,
1: + BPF_LINK_TYPE_CGROUP = 3,
1: + BPF_LINK_TYPE_ITER = 4,
1: + BPF_LINK_TYPE_NETNS = 5,
1: + BPF_LINK_TYPE_XDP = 6,
1: + MAX_BPF_LINK_TYPE = 7,
1: +};
1: +
1: +struct bpf_link_info {
1: + __u32 type;
1: + __u32 id;
1: + __u32 prog_id;
1: + union {
1: + struct {
1: + __u64 tp_name;
1: + __u32 tp_name_len;
1: + } raw_tracepoint;
1: + struct {
1: + __u32 attach_type;
1: + } tracing;
1: + struct {
1: + __u64 cgroup_id;
1: + __u32 attach_type;
1: + } cgroup;
1: + struct {
1: + __u64 target_name;
1: + __u32 target_name_len;
1: + union {
1: + struct {
1: + __u32 map_id;
1: + } map;
1: + };
1: + } iter;
1: + struct {
1: + __u32 netns_ino;
1: + __u32 attach_type;
1: + } netns;
1: + struct {
1: + __u32 ifindex;
1: + } xdp;
1: + };
1: +};
1: +
1: +struct bpf_link_ops;
1: +
1: +struct bpf_link {
1: + atomic64_t refcnt;
1: + u32 id;
1: + enum bpf_link_type type;
1: + const struct bpf_link_ops *ops;
1: + struct bpf_prog *prog;
1: + struct work_struct work;
1: +};
1: +
1: +struct bpf_link_ops {
1: + void (*release)(struct bpf_link *);
1: + void (*dealloc)(struct bpf_link *);
1: + int (*detach)(struct bpf_link *);
1: + int (*update_prog)(struct bpf_link *, struct bpf_prog *, struct bpf_prog *);
1: + void (*show_fdinfo)(const struct bpf_link *, struct seq_file *);
1: + int (*fill_link_info)(const struct bpf_link *, struct bpf_link_info *);
1: +};
1: +
1: +struct bpf_cgroup_link {
1: + struct bpf_link link;
1: + struct cgroup *cgroup;
1: + enum bpf_attach_type type;
1: +};
1: +
1: +enum {
1: + CGRP_NOTIFY_ON_RELEASE = 0,
1: + CGRP_CPUSET_CLONE_CHILDREN = 1,
1: + CGRP_FREEZE = 2,
1: + CGRP_FROZEN = 3,
1: +};
1: +
1: +enum {
1: + CGRP_ROOT_NOPREFIX = 2,
1: + CGRP_ROOT_XATTR = 4,
1: + CGRP_ROOT_NS_DELEGATE = 8,
1: + CGRP_ROOT_CPUSET_V2_MODE = 16,
1: + CGRP_ROOT_MEMORY_LOCAL_EVENTS = 32,
1: + CGRP_ROOT_MEMORY_RECURSIVE_PROT = 64,
1: +};
1: +
1: +struct cgroup_taskset {
1: + struct list_head src_csets;
1: + struct list_head dst_csets;
1: + int nr_tasks;
1: + int ssid;
1: + struct list_head *csets;
1: + struct css_set *cur_cset;
1: + struct task_struct *cur_task;
1: +};
1: +
1: +struct cgroup_fs_context {
1: + struct kernfs_fs_context kfc;
1: + struct cgroup_root *root;
1: + struct cgroup_namespace *ns;
1: + unsigned int flags;
1: + bool cpuset_clone_children;
1: + bool none;
1: + bool all_ss;
1: + u16 subsys_mask;
1: + char *name;
1: + char *release_agent;
1: +};
1: +
1: +struct cgrp_cset_link {
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: + struct list_head cset_link;
1: + struct list_head cgrp_link;
1: +};
1: +
1: +struct cgroup_mgctx {
1: + struct list_head preloaded_src_csets;
1: + struct list_head preloaded_dst_csets;
1: + struct cgroup_taskset tset;
1: + u16 ss_mask;
1: +};
1: +
1: +struct trace_event_raw_cgroup_root {
1: + struct trace_entry ent;
1: + int root;
1: + u16 ss_mask;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup {
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup_migrate {
1: + struct trace_entry ent;
1: + int dst_root;
1: + int dst_id;
1: + int dst_level;
1: + int pid;
1: + u32 __data_loc_dst_path;
1: + u32 __data_loc_comm;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup_event {
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + int val;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_root {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup {
1: + u32 path;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_migrate {
1: + u32 dst_path;
1: + u32 comm;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_event {
1: + u32 path;
1: +};
1: +
1: +typedef void (*btf_trace_cgroup_setup_root)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_destroy_root)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_remount)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_mkdir)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_rmdir)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_release)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_rename)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_freeze)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_unfreeze)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_attach_task)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +
1: +typedef void (*btf_trace_cgroup_transfer_tasks)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +
1: +typedef void (*btf_trace_cgroup_notify_populated)(void *, struct cgroup *, const char *, int);
1: +
1: +typedef void (*btf_trace_cgroup_notify_frozen)(void *, struct cgroup *, const char *, int);
1: +
1: +enum cgroup2_param {
1: + Opt_nsdelegate = 0,
1: + Opt_memory_localevents = 1,
1: + Opt_memory_recursiveprot = 2,
1: + nr__cgroup2_params = 3,
1: +};
1: +
1: +struct cgroupstats {
1: + __u64 nr_sleeping;
1: + __u64 nr_running;
1: + __u64 nr_stopped;
1: + __u64 nr_uninterruptible;
1: + __u64 nr_io_wait;
1: +};
1: +
1: +enum cgroup_filetype {
1: + CGROUP_FILE_PROCS = 0,
1: + CGROUP_FILE_TASKS = 1,
1: +};
1: +
1: +struct cgroup_pidlist {
1: + struct {
1: + enum cgroup_filetype type;
1: + struct pid_namespace *ns;
1: + } key;
1: + pid_t *list;
1: + int length;
1: + struct list_head links;
1: + struct cgroup *owner;
1: + struct delayed_work destroy_dwork;
1: +};
1: +
1: +enum cgroup1_param {
1: + Opt_all = 0,
1: + Opt_clone_children = 1,
1: + Opt_cpuset_v2_mode = 2,
1: + Opt_name = 3,
1: + Opt_none = 4,
1: + Opt_noprefix = 5,
1: + Opt_release_agent = 6,
1: + Opt_xattr = 7,
1: +};
1: +
1: +enum freezer_state_flags {
1: + CGROUP_FREEZER_ONLINE = 1,
1: + CGROUP_FREEZING_SELF = 2,
1: + CGROUP_FREEZING_PARENT = 4,
1: + CGROUP_FROZEN = 8,
1: + CGROUP_FREEZING = 6,
1: +};
1: +
1: +struct freezer {
1: + struct cgroup_subsys_state css;
1: + unsigned int state;
1: +};
1: +
1: +struct pids_cgroup {
1: + struct cgroup_subsys_state css;
1: + atomic64_t counter;
1: + atomic64_t limit;
1: + struct cgroup_file events_file;
1: + atomic64_t events_limit;
1: +};
1: +
1: +struct root_domain___2;
1: +
1: +struct fmeter {
1: + int cnt;
1: + int val;
1: + time64_t time;
1: + spinlock_t lock;
1: +};
1: +
1: +struct cpuset {
1: + struct cgroup_subsys_state css;
1: + long unsigned int flags;
1: + cpumask_var_t cpus_allowed;
1: + nodemask_t mems_allowed;
1: + cpumask_var_t effective_cpus;
1: + nodemask_t effective_mems;
1: + cpumask_var_t subparts_cpus;
1: + nodemask_t old_mems_allowed;
1: + struct fmeter fmeter;
1: + int attach_in_progress;
1: + int pn;
1: + int relax_domain_level;
1: + int nr_subparts_cpus;
1: + int partition_root_state;
1: + int use_parent_ecpus;
1: + int child_ecpus_count;
1: +};
1: +
1: +struct tmpmasks {
1: + cpumask_var_t addmask;
1: + cpumask_var_t delmask;
1: + cpumask_var_t new_cpus;
1: +};
1: +
1: +typedef enum {
1: + CS_ONLINE = 0,
1: + CS_CPU_EXCLUSIVE = 1,
1: + CS_MEM_EXCLUSIVE = 2,
1: + CS_MEM_HARDWALL = 3,
1: + CS_MEMORY_MIGRATE = 4,
1: + CS_SCHED_LOAD_BALANCE = 5,
1: + CS_SPREAD_PAGE = 6,
1: + CS_SPREAD_SLAB = 7,
1: +} cpuset_flagbits_t;
1: +
1: +enum subparts_cmd {
1: + partcmd_enable = 0,
1: + partcmd_disable = 1,
1: + partcmd_update = 2,
1: +};
1: +
1: +struct cpuset_migrate_mm_work {
1: + struct work_struct work;
1: + struct mm_struct *mm;
1: + nodemask_t from;
1: + nodemask_t to;
1: +};
1: +
1: +typedef enum {
1: + FILE_MEMORY_MIGRATE = 0,
1: + FILE_CPULIST = 1,
1: + FILE_MEMLIST = 2,
1: + FILE_EFFECTIVE_CPULIST = 3,
1: + FILE_EFFECTIVE_MEMLIST = 4,
1: + FILE_SUBPARTS_CPULIST = 5,
1: + FILE_CPU_EXCLUSIVE = 6,
1: + FILE_MEM_EXCLUSIVE = 7,
1: + FILE_MEM_HARDWALL = 8,
1: + FILE_SCHED_LOAD_BALANCE = 9,
1: + FILE_PARTITION_ROOT = 10,
1: + FILE_SCHED_RELAX_DOMAIN_LEVEL = 11,
1: + FILE_MEMORY_PRESSURE_ENABLED = 12,
1: + FILE_MEMORY_PRESSURE = 13,
1: + FILE_SPREAD_PAGE = 14,
1: + FILE_SPREAD_SLAB = 15,
1: +} cpuset_filetype_t;
1: +
1: +struct kernel_pkey_query {
1: + __u32 supported_ops;
1: + __u32 key_size;
1: + __u16 max_data_size;
1: + __u16 max_sig_size;
1: + __u16 max_enc_size;
1: + __u16 max_dec_size;
1: +};
1: +
1: +enum kernel_pkey_operation {
1: + kernel_pkey_encrypt = 0,
1: + kernel_pkey_decrypt = 1,
1: + kernel_pkey_sign = 2,
1: + kernel_pkey_verify = 3,
1: +};
1: +
1: +struct kernel_pkey_params {
1: + struct key *key;
1: + const char *encoding;
1: + const char *hash_algo;
1: + char *info;
1: + __u32 in_len;
1: + union {
1: + __u32 out_len;
1: + __u32 in2_len;
1: + };
1: + enum kernel_pkey_operation op: 8;
1: +};
1: +
1: +struct key_preparsed_payload {
1: + char *description;
1: + union key_payload payload;
1: + const void *data;
1: + size_t datalen;
1: + size_t quotalen;
1: + time64_t expiry;
1: +};
1: +
1: +struct key_match_data {
1: + bool (*cmp)(const struct key *, const struct key_match_data *);
1: + const void *raw_data;
1: + void *preparsed;
1: + unsigned int lookup_type;
1: +};
1: +
1: +struct idmap_key {
1: + bool map_up;
1: + u32 id;
1: + u32 count;
1: +};
1: +
1: +struct ctl_path {
1: + const char *procname;
1: +};
1: +
1: +typedef void (*exitcall_t)();
1: +
1: +struct cpu_stop_done {
1: + atomic_t nr_todo;
1: + int ret;
1: + struct completion completion;
1: +};
1: +
1: +struct cpu_stopper {
1: + struct task_struct *thread;
1: + raw_spinlock_t lock;
1: + bool enabled;
1: + struct list_head works;
1: + struct cpu_stop_work stop_work;
1: +};
1: +
1: +enum multi_stop_state {
1: + MULTI_STOP_NONE = 0,
1: + MULTI_STOP_PREPARE = 1,
1: + MULTI_STOP_DISABLE_IRQ = 2,
1: + MULTI_STOP_RUN = 3,
1: + MULTI_STOP_EXIT = 4,
1: +};
1: +
1: +struct multi_stop_data {
1: + cpu_stop_fn_t fn;
1: + void *data;
1: + unsigned int num_threads;
1: + const struct cpumask *active_cpus;
1: + enum multi_stop_state state;
1: + atomic_t thread_ack;
1: +};
1: +
1: +typedef int __kernel_mqd_t;
1: +
1: +typedef __kernel_mqd_t mqd_t;
1: +
1: +enum audit_state {
1: + AUDIT_DISABLED = 0,
1: + AUDIT_BUILD_CONTEXT = 1,
1: + AUDIT_RECORD_CONTEXT = 2,
1: +};
1: +
1: +struct audit_cap_data {
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + union {
1: + unsigned int fE;
1: + kernel_cap_t effective;
1: + };
1: + kernel_cap_t ambient;
1: + kuid_t rootid;
1: +};
1: +
1: +struct audit_names {
1: + struct list_head list;
1: + struct filename *name;
1: + int name_len;
1: + bool hidden;
1: + long unsigned int ino;
1: + dev_t dev;
1: + umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + dev_t rdev;
1: + u32 osid;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + unsigned char type;
1: + bool should_free;
1: +};
1: +
1: +struct mq_attr {
1: + __kernel_long_t mq_flags;
1: + __kernel_long_t mq_maxmsg;
1: + __kernel_long_t mq_msgsize;
1: + __kernel_long_t mq_curmsgs;
1: + __kernel_long_t __reserved[4];
1: +};
1: +
1: +struct audit_proctitle {
1: + int len;
1: + char *value;
1: +};
1: +
1: +struct audit_aux_data;
1: +
1: +struct __kernel_sockaddr_storage;
1: +
1: +struct audit_tree_refs;
1: +
1: +struct audit_context {
1: + int dummy;
1: + int in_syscall;
1: + enum audit_state state;
1: + enum audit_state current_state;
1: + unsigned int serial;
1: + int major;
1: + struct timespec64 ctime;
1: + long unsigned int argv[4];
1: + long int return_code;
1: + u64 prio;
1: + int return_valid;
1: + struct audit_names preallocated_names[5];
1: + int name_count;
1: + struct list_head names_list;
1: + char *filterkey;
1: + struct path pwd;
1: + struct audit_aux_data *aux;
1: + struct audit_aux_data *aux_pids;
1: + struct __kernel_sockaddr_storage *sockaddr;
1: + size_t sockaddr_len;
1: + pid_t pid;
1: + pid_t ppid;
1: + kuid_t uid;
1: + kuid_t euid;
1: + kuid_t suid;
1: + kuid_t fsuid;
1: + kgid_t gid;
1: + kgid_t egid;
1: + kgid_t sgid;
1: + kgid_t fsgid;
1: + long unsigned int personality;
1: + int arch;
1: + pid_t target_pid;
1: + kuid_t target_auid;
1: + kuid_t target_uid;
1: + unsigned int target_sessionid;
1: + u32 target_sid;
1: + char target_comm[16];
1: + struct audit_tree_refs *trees;
1: + struct audit_tree_refs *first_trees;
1: + struct list_head killed_trees;
1: + int tree_count;
1: + int type;
1: + union {
1: + struct {
1: + int nargs;
1: + long int args[6];
1: + } socketcall;
1: + struct {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + u32 osid;
1: + int has_perm;
1: + uid_t perm_uid;
1: + gid_t perm_gid;
1: + umode_t perm_mode;
1: + long unsigned int qbytes;
1: + } ipc;
1: + struct {
1: + mqd_t mqdes;
1: + struct mq_attr mqstat;
1: + } mq_getsetattr;
1: + struct {
1: + mqd_t mqdes;
1: + int sigev_signo;
1: + } mq_notify;
1: + struct {
1: + mqd_t mqdes;
1: + size_t msg_len;
1: + unsigned int msg_prio;
1: + struct timespec64 abs_timeout;
1: + } mq_sendrecv;
1: + struct {
1: + int oflag;
1: + umode_t mode;
1: + struct mq_attr attr;
1: + } mq_open;
1: + struct {
1: + pid_t pid;
1: + struct audit_cap_data cap;
1: + } capset;
1: + struct {
1: + int fd;
1: + int flags;
1: + } mmap;
1: + struct {
1: + int argc;
1: + } execve;
1: + struct {
1: + char *name;
1: + } module;
1: + };
1: + int fds[2];
1: + struct audit_proctitle proctitle;
1: +};
1: +
1: +struct __kernel_sockaddr_storage {
1: + union {
1: + struct {
1: + __kernel_sa_family_t ss_family;
1: + char __data[126];
1: + };
1: + void *__align;
1: + };
1: +};
1: +
1: +enum audit_nlgrps {
1: + AUDIT_NLGRP_NONE = 0,
1: + AUDIT_NLGRP_READLOG = 1,
1: + __AUDIT_NLGRP_MAX = 2,
1: +};
1: +
1: +struct audit_status {
1: + __u32 mask;
1: + __u32 enabled;
1: + __u32 failure;
1: + __u32 pid;
1: + __u32 rate_limit;
1: + __u32 backlog_limit;
1: + __u32 lost;
1: + __u32 backlog;
1: + union {
1: + __u32 version;
1: + __u32 feature_bitmap;
1: + };
1: + __u32 backlog_wait_time;
1: + __u32 backlog_wait_time_actual;
1: +};
1: +
1: +struct audit_features {
1: + __u32 vers;
1: + __u32 mask;
1: + __u32 features;
1: + __u32 lock;
1: +};
1: +
1: +struct audit_tty_status {
1: + __u32 enabled;
1: + __u32 log_passwd;
1: +};
1: +
1: +struct audit_sig_info {
1: + uid_t uid;
1: + pid_t pid;
1: + char ctx[0];
1: +};
1: +
1: +struct net_generic {
1: + union {
1: + struct {
1: + unsigned int len;
1: + struct callback_head rcu;
1: + } s;
1: + void *ptr[0];
1: + };
1: +};
1: +
1: +struct pernet_operations {
1: + struct list_head list;
1: + int (*init)(struct net *);
1: + void (*pre_exit)(struct net *);
1: + void (*exit)(struct net *);
1: + void (*exit_batch)(struct list_head *);
1: + unsigned int *id;
1: + size_t size;
1: +};
1: +
1: +struct scm_creds {
1: + u32 pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: +};
1: +
1: +struct netlink_skb_parms {
1: + struct scm_creds creds;
1: + __u32 portid;
1: + __u32 dst_group;
1: + __u32 flags;
1: + struct sock *sk;
1: + bool nsid_is_set;
1: + int nsid;
1: +};
1: +
1: +struct netlink_kernel_cfg {
1: + unsigned int groups;
1: + unsigned int flags;
1: + void (*input)(struct sk_buff *);
1: + struct mutex *cb_mutex;
1: + int (*bind)(struct net *, int);
1: + void (*unbind)(struct net *, int);
1: + bool (*compare)(struct net *, struct sock *);
1: +};
1: +
1: +struct audit_netlink_list {
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff_head q;
1: +};
1: +
1: +struct audit_net {
1: + struct sock *sk;
1: +};
1: +
1: +struct auditd_connection {
1: + struct pid *pid;
1: + u32 portid;
1: + struct net *net;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct audit_ctl_mutex {
1: + struct mutex lock;
1: + void *owner;
1: +};
1: +
1: +struct audit_buffer {
1: + struct sk_buff *skb;
1: + struct audit_context *ctx;
1: + gfp_t gfp_mask;
1: +};
1: +
1: +struct audit_reply {
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff *skb;
1: +};
1: +
1: +enum {
1: + Audit_equal = 0,
1: + Audit_not_equal = 1,
1: + Audit_bitmask = 2,
1: + Audit_bittest = 3,
1: + Audit_lt = 4,
1: + Audit_gt = 5,
1: + Audit_le = 6,
1: + Audit_ge = 7,
1: + Audit_bad = 8,
1: +};
1: +
1: +struct audit_rule_data {
1: + __u32 flags;
1: + __u32 action;
1: + __u32 field_count;
1: + __u32 mask[64];
1: + __u32 fields[64];
1: + __u32 values[64];
1: + __u32 fieldflags[64];
1: + __u32 buflen;
1: + char buf[0];
1: +};
1: +
1: +struct audit_field;
1: +
1: +struct audit_watch;
1: +
1: +struct audit_tree;
1: +
1: +struct audit_fsnotify_mark;
1: +
1: +struct audit_krule {
1: + u32 pflags;
1: + u32 flags;
1: + u32 listnr;
1: + u32 action;
1: + u32 mask[64];
1: + u32 buflen;
1: + u32 field_count;
1: + char *filterkey;
1: + struct audit_field *fields;
1: + struct audit_field *arch_f;
1: + struct audit_field *inode_f;
1: + struct audit_watch *watch;
1: + struct audit_tree *tree;
1: + struct audit_fsnotify_mark *exe;
1: + struct list_head rlist;
1: + struct list_head list;
1: + u64 prio;
1: +};
1: +
1: +struct audit_field {
1: + u32 type;
1: + union {
1: + u32 val;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct {
1: + char *lsm_str;
1: + void *lsm_rule;
1: + };
1: + };
1: + u32 op;
1: +};
1: +
1: +struct audit_entry {
1: + struct list_head list;
1: + struct callback_head rcu;
1: + struct audit_krule rule;
1: +};
1: +
1: +struct audit_buffer___2;
1: +
1: +typedef int __kernel_key_t;
1: +
1: +typedef __kernel_key_t key_t;
1: +
1: +struct kern_ipc_perm {
1: + spinlock_t lock;
1: + bool deleted;
1: + int id;
1: + key_t key;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t cuid;
1: + kgid_t cgid;
1: + umode_t mode;
1: + long unsigned int seq;
1: + void *security;
1: + struct rhash_head khtnode;
1: + struct callback_head rcu;
1: + refcount_t refcount;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cpu_vfs_cap_data {
1: + __u32 magic_etc;
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + kuid_t rootid;
1: +};
1: +
1: +typedef struct fsnotify_mark_connector *fsnotify_connp_t;
1: +
1: +struct fsnotify_mark_connector {
1: + spinlock_t lock;
1: + short unsigned int type;
1: + short unsigned int flags;
1: + __kernel_fsid_t fsid;
1: + union {
1: + fsnotify_connp_t *obj;
1: + struct fsnotify_mark_connector *destroy_next;
1: + };
1: + struct hlist_head list;
1: +};
1: +
1: +enum audit_nfcfgop {
1: + AUDIT_XT_OP_REGISTER = 0,
1: + AUDIT_XT_OP_REPLACE = 1,
1: + AUDIT_XT_OP_UNREGISTER = 2,
1: + AUDIT_NFT_OP_TABLE_REGISTER = 3,
1: + AUDIT_NFT_OP_TABLE_UNREGISTER = 4,
1: + AUDIT_NFT_OP_CHAIN_REGISTER = 5,
1: + AUDIT_NFT_OP_CHAIN_UNREGISTER = 6,
1: + AUDIT_NFT_OP_RULE_REGISTER = 7,
1: + AUDIT_NFT_OP_RULE_UNREGISTER = 8,
1: + AUDIT_NFT_OP_SET_REGISTER = 9,
1: + AUDIT_NFT_OP_SET_UNREGISTER = 10,
1: + AUDIT_NFT_OP_SETELEM_REGISTER = 11,
1: + AUDIT_NFT_OP_SETELEM_UNREGISTER = 12,
1: + AUDIT_NFT_OP_GEN_REGISTER = 13,
1: + AUDIT_NFT_OP_OBJ_REGISTER = 14,
1: + AUDIT_NFT_OP_OBJ_UNREGISTER = 15,
1: + AUDIT_NFT_OP_OBJ_RESET = 16,
1: + AUDIT_NFT_OP_FLOWTABLE_REGISTER = 17,
1: + AUDIT_NFT_OP_FLOWTABLE_UNREGISTER = 18,
1: + AUDIT_NFT_OP_INVALID = 19,
1: +};
1: +
1: +enum fsnotify_obj_type {
1: + FSNOTIFY_OBJ_TYPE_INODE = 0,
1: + FSNOTIFY_OBJ_TYPE_PARENT = 1,
1: + FSNOTIFY_OBJ_TYPE_VFSMOUNT = 2,
1: + FSNOTIFY_OBJ_TYPE_SB = 3,
1: + FSNOTIFY_OBJ_TYPE_COUNT = 4,
1: + FSNOTIFY_OBJ_TYPE_DETACHED = 4,
1: +};
1: +
1: +struct audit_aux_data {
1: + struct audit_aux_data *next;
1: + int type;
1: +};
1: +
1: +struct audit_chunk;
1: +
1: +struct audit_tree_refs {
1: + struct audit_tree_refs *next;
1: + struct audit_chunk *c[31];
1: +};
1: +
1: +struct audit_aux_data_pids {
1: + struct audit_aux_data d;
1: + pid_t target_pid[16];
1: + kuid_t target_auid[16];
1: + kuid_t target_uid[16];
1: + unsigned int target_sessionid[16];
1: + u32 target_sid[16];
1: + char target_comm[256];
1: + int pid_count;
1: +};
1: +
1: +struct audit_aux_data_bprm_fcaps {
1: + struct audit_aux_data d;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + struct audit_cap_data old_pcap;
1: + struct audit_cap_data new_pcap;
1: +};
1: +
1: +struct audit_nfcfgop_tab {
1: + enum audit_nfcfgop op;
1: + const char *s;
1: +};
1: +
1: +struct audit_parent;
1: +
1: +struct audit_watch {
1: + refcount_t count;
1: + dev_t dev;
1: + char *path;
1: + long unsigned int ino;
1: + struct audit_parent *parent;
1: + struct list_head wlist;
1: + struct list_head rules;
1: +};
1: +
1: +struct fsnotify_group;
1: +
1: +struct fsnotify_iter_info;
1: +
1: +struct fsnotify_mark;
1: +
1: +struct fsnotify_event;
1: +
1: +struct fsnotify_ops {
1: + int (*handle_event)(struct fsnotify_group *, u32, const void *, int, struct inode *, const struct qstr *, u32, struct fsnotify_iter_info *);
1: + int (*handle_inode_event)(struct fsnotify_mark *, u32, struct inode *, struct inode *, const struct qstr *, u32);
1: + void (*free_group_priv)(struct fsnotify_group *);
1: + void (*freeing_mark)(struct fsnotify_mark *, struct fsnotify_group *);
1: + void (*free_event)(struct fsnotify_event *);
1: + void (*free_mark)(struct fsnotify_mark *);
1: +};
1: +
1: +struct inotify_group_private_data {
1: + spinlock_t idr_lock;
1: + struct idr idr;
1: + struct ucounts *ucounts;
1: +};
1: +
1: +struct fanotify_group_private_data {
1: + struct list_head access_list;
1: + wait_queue_head_t access_waitq;
1: + int flags;
1: + int f_flags;
1: + unsigned int max_marks;
1: + struct user_struct *user;
1: +};
1: +
1: +struct fsnotify_group {
1: + const struct fsnotify_ops *ops;
1: + refcount_t refcnt;
1: + spinlock_t notification_lock;
1: + struct list_head notification_list;
1: + wait_queue_head_t notification_waitq;
1: + unsigned int q_len;
1: + unsigned int max_events;
1: + unsigned int priority;
1: + bool shutdown;
1: + struct mutex mark_mutex;
1: + atomic_t num_marks;
1: + atomic_t user_waits;
1: + struct list_head marks_list;
1: + struct fasync_struct *fsn_fa;
1: + struct fsnotify_event *overflow_event;
1: + struct mem_cgroup *memcg;
1: + union {
1: + void *private;
1: + struct inotify_group_private_data inotify_data;
1: + struct fanotify_group_private_data fanotify_data;
1: + };
1: +};
1: +
1: +struct fsnotify_iter_info {
1: + struct fsnotify_mark *marks[4];
1: + unsigned int report_mask;
1: + int srcu_idx;
1: +};
1: +
1: +struct fsnotify_mark {
1: + __u32 mask;
1: + refcount_t refcnt;
1: + struct fsnotify_group *group;
1: + struct list_head g_list;
1: + spinlock_t lock;
1: + struct hlist_node obj_list;
1: + struct fsnotify_mark_connector *connector;
1: + __u32 ignored_mask;
1: + unsigned int flags;
1: +};
1: +
1: +struct fsnotify_event {
1: + struct list_head list;
1: + long unsigned int objectid;
1: +};
1: +
1: +struct audit_parent {
1: + struct list_head watches;
1: + struct fsnotify_mark mark;
1: +};
1: +
1: +struct audit_fsnotify_mark {
1: + dev_t dev;
1: + long unsigned int ino;
1: + char *path;
1: + struct fsnotify_mark mark;
1: + struct audit_krule *rule;
1: +};
1: +
1: +struct audit_chunk___2;
1: +
1: +struct audit_tree {
1: + refcount_t count;
1: + int goner;
1: + struct audit_chunk___2 *root;
1: + struct list_head chunks;
1: + struct list_head rules;
1: + struct list_head list;
1: + struct list_head same_root;
1: + struct callback_head head;
1: + char pathname[0];
1: +};
1: +
1: +struct node {
1: + struct list_head list;
1: + struct audit_tree *owner;
1: + unsigned int index;
1: +};
1: +
1: +struct audit_chunk___2 {
1: + struct list_head hash;
1: + long unsigned int key;
1: + struct fsnotify_mark *mark;
1: + struct list_head trees;
1: + int count;
1: + atomic_long_t refs;
1: + struct callback_head head;
1: + struct node owners[0];
1: +};
1: +
1: +struct audit_tree_mark {
1: + struct fsnotify_mark mark;
1: + struct audit_chunk___2 *chunk;
1: +};
1: +
1: +enum {
1: + HASH_SIZE = 128,
1: +};
1: +
1: +struct kprobe_blacklist_entry {
1: + struct list_head list;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: +};
1: +
1: +enum perf_record_ksymbol_type {
1: + PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,
1: + PERF_RECORD_KSYMBOL_TYPE_BPF = 1,
1: + PERF_RECORD_KSYMBOL_TYPE_OOL = 2,
1: + PERF_RECORD_KSYMBOL_TYPE_MAX = 3,
1: +};
1: +
1: +struct kprobe_insn_page {
1: + struct list_head list;
1: + kprobe_opcode_t *insns;
1: + struct kprobe_insn_cache *cache;
1: + int nused;
1: + int ngarbage;
1: + char slot_used[0];
1: +};
1: +
1: +enum kprobe_slot_state {
1: + SLOT_CLEAN = 0,
1: + SLOT_DIRTY = 1,
1: + SLOT_USED = 2,
1: +};
1: +
1: +struct serial_icounter_struct {
1: + int cts;
1: + int dsr;
1: + int rng;
1: + int dcd;
1: + int rx;
1: + int tx;
1: + int frame;
1: + int overrun;
1: + int parity;
1: + int brk;
1: + int buf_overrun;
1: + int reserved[9];
1: +};
1: +
1: +struct serial_struct {
1: + int type;
1: + int line;
1: + unsigned int port;
1: + int irq;
1: + int flags;
1: + int xmit_fifo_size;
1: + int custom_divisor;
1: + int baud_base;
1: + short unsigned int close_delay;
1: + char io_type;
1: + char reserved_char[1];
1: + int hub6;
1: + short unsigned int closing_wait;
1: + short unsigned int closing_wait2;
1: + unsigned char *iomem_base;
1: + short unsigned int iomem_reg_shift;
1: + unsigned int port_high;
1: + long unsigned int iomap_base;
1: +};
1: +
1: +struct kgdb_io {
1: + const char *name;
1: + int (*read_char)();
1: + void (*write_char)(u8);
1: + void (*flush)();
1: + int (*init)();
1: + void (*deinit)();
1: + void (*pre_exception)();
1: + void (*post_exception)();
1: + struct console *cons;
1: +};
1: +
1: +enum {
1: + KDB_NOT_INITIALIZED = 0,
1: + KDB_INIT_EARLY = 1,
1: + KDB_INIT_FULL = 2,
1: +};
1: +
1: +struct kgdb_state {
1: + int ex_vector;
1: + int signo;
1: + int err_code;
1: + int cpu;
1: + int pass_exception;
1: + long unsigned int thr_query;
1: + long unsigned int threadid;
1: + long int kgdb_usethreadid;
1: + struct pt_regs *linux_regs;
1: + atomic_t *send_ready;
1: +};
1: +
1: +struct debuggerinfo_struct {
1: + void *debuggerinfo;
1: + struct task_struct *task;
1: + int exception_state;
1: + int ret_state;
1: + int irq_depth;
1: + int enter_kgdb;
1: + bool rounding_up;
1: +};
1: +
1: +struct seccomp_data {
1: + int nr;
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 args[6];
1: +};
1: +
1: +struct seccomp_notif_sizes {
1: + __u16 seccomp_notif;
1: + __u16 seccomp_notif_resp;
1: + __u16 seccomp_data;
1: +};
1: +
1: +struct seccomp_notif {
1: + __u64 id;
1: + __u32 pid;
1: + __u32 flags;
1: + struct seccomp_data data;
1: +};
1: +
1: +struct seccomp_notif_resp {
1: + __u64 id;
1: + __s64 val;
1: + __s32 error;
1: + __u32 flags;
1: +};
1: +
1: +struct seccomp_notif_addfd {
1: + __u64 id;
1: + __u32 flags;
1: + __u32 srcfd;
1: + __u32 newfd;
1: + __u32 newfd_flags;
1: +};
1: +
1: +struct notification;
1: +
1: +struct seccomp_filter {
1: + refcount_t refs;
1: + refcount_t users;
1: + bool log;
1: + struct seccomp_filter *prev;
1: + struct bpf_prog *prog;
1: + struct notification *notif;
1: + struct mutex notify_lock;
1: + wait_queue_head_t wqh;
1: +};
1: +
1: +struct seccomp_metadata {
1: + __u64 filter_off;
1: + __u64 flags;
1: +};
1: +
1: +struct sock_fprog {
1: + short unsigned int len;
1: + struct sock_filter *filter;
1: +};
1: +
1: +struct compat_sock_fprog {
1: + u16 len;
1: + compat_uptr_t filter;
1: +};
1: +
1: +enum notify_state {
1: + SECCOMP_NOTIFY_INIT = 0,
1: + SECCOMP_NOTIFY_SENT = 1,
1: + SECCOMP_NOTIFY_REPLIED = 2,
1: +};
1: +
1: +struct seccomp_knotif {
1: + struct task_struct *task;
1: + u64 id;
1: + const struct seccomp_data *data;
1: + enum notify_state state;
1: + int error;
1: + long int val;
1: + u32 flags;
1: + struct completion ready;
1: + struct list_head list;
1: + struct list_head addfd;
1: +};
1: +
1: +struct seccomp_kaddfd {
1: + struct file *file;
1: + int fd;
1: + unsigned int flags;
1: + int ret;
1: + struct completion completion;
1: + struct list_head list;
1: +};
1: +
1: +struct notification {
1: + struct semaphore request;
1: + u64 next_id;
1: + struct list_head notifications;
1: +};
1: +
1: +struct seccomp_log_name {
1: + u32 log;
1: + const char *name;
1: +};
1: +
1: +struct rchan;
1: +
1: +struct rchan_buf {
1: + void *start;
1: + void *data;
1: + size_t offset;
1: + size_t subbufs_produced;
1: + size_t subbufs_consumed;
1: + struct rchan *chan;
1: + wait_queue_head_t read_wait;
1: + struct irq_work wakeup_work;
1: + struct dentry *dentry;
1: + struct kref kref;
1: + struct page **page_array;
1: + unsigned int page_count;
1: + unsigned int finalized;
1: + size_t *padding;
1: + size_t prev_padding;
1: + size_t bytes_consumed;
1: + size_t early_bytes;
1: + unsigned int cpu;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct rchan_callbacks;
1: +
1: +struct rchan {
1: + u32 version;
1: + size_t subbuf_size;
1: + size_t n_subbufs;
1: + size_t alloc_size;
1: + struct rchan_callbacks *cb;
1: + struct kref kref;
1: + void *private_data;
1: + size_t last_toobig;
1: + struct rchan_buf **buf;
1: + int is_global;
1: + struct list_head list;
1: + struct dentry *parent;
1: + int has_base_filename;
1: + char base_filename[255];
1: +};
1: +
1: +struct rchan_callbacks {
1: + int (*subbuf_start)(struct rchan_buf *, void *, void *, size_t);
1: + void (*buf_mapped)(struct rchan_buf *, struct file *);
1: + void (*buf_unmapped)(struct rchan_buf *, struct file *);
1: + struct dentry * (*create_buf_file)(const char *, struct dentry *, umode_t, struct rchan_buf *, int *);
1: + int (*remove_buf_file)(struct dentry *);
1: +};
1: +
1: +struct partial_page {
1: + unsigned int offset;
1: + unsigned int len;
1: + long unsigned int private;
1: +};
1: +
1: +struct splice_pipe_desc {
1: + struct page **pages;
1: + struct partial_page *partial;
1: + int nr_pages;
1: + unsigned int nr_pages_max;
1: + const struct pipe_buf_operations *ops;
1: + void (*spd_release)(struct splice_pipe_desc *, unsigned int);
1: +};
1: +
1: +struct rchan_percpu_buf_dispatcher {
1: + struct rchan_buf *buf;
1: + struct dentry *dentry;
1: +};
1: +
1: +enum {
1: + TASKSTATS_TYPE_UNSPEC = 0,
1: + TASKSTATS_TYPE_PID = 1,
1: + TASKSTATS_TYPE_TGID = 2,
1: + TASKSTATS_TYPE_STATS = 3,
1: + TASKSTATS_TYPE_AGGR_PID = 4,
1: + TASKSTATS_TYPE_AGGR_TGID = 5,
1: + TASKSTATS_TYPE_NULL = 6,
1: + __TASKSTATS_TYPE_MAX = 7,
1: +};
1: +
1: +enum {
1: + TASKSTATS_CMD_ATTR_UNSPEC = 0,
1: + TASKSTATS_CMD_ATTR_PID = 1,
1: + TASKSTATS_CMD_ATTR_TGID = 2,
1: + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 3,
1: + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 4,
1: + __TASKSTATS_CMD_ATTR_MAX = 5,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_CMD_UNSPEC = 3,
1: + CGROUPSTATS_CMD_GET = 4,
1: + CGROUPSTATS_CMD_NEW = 5,
1: + __CGROUPSTATS_CMD_MAX = 6,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_TYPE_UNSPEC = 0,
1: + CGROUPSTATS_TYPE_CGROUP_STATS = 1,
1: + __CGROUPSTATS_TYPE_MAX = 2,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
1: + CGROUPSTATS_CMD_ATTR_FD = 1,
1: + __CGROUPSTATS_CMD_ATTR_MAX = 2,
1: +};
1: +
1: +struct genlmsghdr {
1: + __u8 cmd;
1: + __u8 version;
1: + __u16 reserved;
1: +};
1: +
1: +enum {
1: + NLA_UNSPEC = 0,
1: + NLA_U8 = 1,
1: + NLA_U16 = 2,
1: + NLA_U32 = 3,
1: + NLA_U64 = 4,
1: + NLA_STRING = 5,
1: + NLA_FLAG = 6,
1: + NLA_MSECS = 7,
1: + NLA_NESTED = 8,
1: + NLA_NESTED_ARRAY = 9,
1: + NLA_NUL_STRING = 10,
1: + NLA_BINARY = 11,
1: + NLA_S8 = 12,
1: + NLA_S16 = 13,
1: + NLA_S32 = 14,
1: + NLA_S64 = 15,
1: + NLA_BITFIELD32 = 16,
1: + NLA_REJECT = 17,
1: + __NLA_TYPE_MAX = 18,
1: +};
1: +
1: +struct genl_multicast_group {
1: + char name[16];
1: +};
1: +
1: +struct genl_ops;
1: +
1: +struct genl_info;
1: +
1: +struct genl_small_ops;
1: +
1: +struct genl_family {
1: + int id;
1: + unsigned int hdrsize;
1: + char name[16];
1: + unsigned int version;
1: + unsigned int maxattr;
1: + unsigned int mcgrp_offset;
1: + u8 netnsok: 1;
1: + u8 parallel_ops: 1;
1: + u8 n_ops;
1: + u8 n_small_ops;
1: + u8 n_mcgrps;
1: + const struct nla_policy *policy;
1: + int (*pre_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: + void (*post_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: + const struct genl_ops *ops;
1: + const struct genl_small_ops *small_ops;
1: + const struct genl_multicast_group *mcgrps;
1: + struct module *module;
1: +};
1: +
1: +struct genl_ops {
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*start)(struct netlink_callback *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + const struct nla_policy *policy;
1: + unsigned int maxattr;
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: +};
1: +
1: +struct genl_info {
1: + u32 snd_seq;
1: + u32 snd_portid;
1: + struct nlmsghdr *nlhdr;
1: + struct genlmsghdr *genlhdr;
1: + void *userhdr;
1: + struct nlattr **attrs;
1: + possible_net_t _net;
1: + void *user_ptr[2];
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct genl_small_ops {
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: +};
1: +
1: +enum genl_validate_flags {
1: + GENL_DONT_VALIDATE_STRICT = 1,
1: + GENL_DONT_VALIDATE_DUMP = 2,
1: + GENL_DONT_VALIDATE_DUMP_STRICT = 4,
1: +};
1: +
1: +struct listener {
1: + struct list_head list;
1: + pid_t pid;
1: + char valid;
1: +};
1: +
1: +struct listener_list {
1: + struct rw_semaphore sem;
1: + struct list_head list;
1: +};
1: +
1: +enum actions {
1: + REGISTER = 0,
1: + DEREGISTER = 1,
1: + CPU_DONT_CARE = 2,
1: +};
1: +
1: +struct tp_module {
1: + struct list_head list;
1: + struct module *mod;
1: +};
1: +
1: +struct tp_probes {
1: + struct callback_head rcu;
1: + struct tracepoint_func probes[0];
1: +};
1: +
1: +enum {
1: + FTRACE_OPS_FL_ENABLED = 1,
1: + FTRACE_OPS_FL_DYNAMIC = 2,
1: + FTRACE_OPS_FL_SAVE_REGS = 4,
1: + FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 8,
1: + FTRACE_OPS_FL_RECURSION_SAFE = 16,
1: + FTRACE_OPS_FL_STUB = 32,
1: + FTRACE_OPS_FL_INITIALIZED = 64,
1: + FTRACE_OPS_FL_DELETED = 128,
1: + FTRACE_OPS_FL_ADDING = 256,
1: + FTRACE_OPS_FL_REMOVING = 512,
1: + FTRACE_OPS_FL_MODIFYING = 1024,
1: + FTRACE_OPS_FL_ALLOC_TRAMP = 2048,
1: + FTRACE_OPS_FL_IPMODIFY = 4096,
1: + FTRACE_OPS_FL_PID = 8192,
1: + FTRACE_OPS_FL_RCU = 16384,
1: + FTRACE_OPS_FL_TRACE_ARRAY = 32768,
1: + FTRACE_OPS_FL_PERMANENT = 65536,
1: + FTRACE_OPS_FL_DIRECT = 131072,
1: +};
1: +
1: +struct ftrace_hash {
1: + long unsigned int size_bits;
1: + struct hlist_head *buckets;
1: + long unsigned int count;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ftrace_func_entry {
1: + struct hlist_node hlist;
1: + long unsigned int ip;
1: + long unsigned int direct;
1: +};
1: +
1: +enum ftrace_bug_type {
1: + FTRACE_BUG_UNKNOWN = 0,
1: + FTRACE_BUG_INIT = 1,
1: + FTRACE_BUG_NOP = 2,
1: + FTRACE_BUG_CALL = 3,
1: + FTRACE_BUG_UPDATE = 4,
1: +};
1: +
1: +enum {
1: + FTRACE_FL_ENABLED = 2147483648,
1: + FTRACE_FL_REGS = 1073741824,
1: + FTRACE_FL_REGS_EN = 536870912,
1: + FTRACE_FL_TRAMP = 268435456,
1: + FTRACE_FL_TRAMP_EN = 134217728,
1: + FTRACE_FL_IPMODIFY = 67108864,
1: + FTRACE_FL_DISABLED = 33554432,
1: + FTRACE_FL_DIRECT = 16777216,
1: + FTRACE_FL_DIRECT_EN = 8388608,
1: +};
1: +
1: +enum {
1: + FTRACE_UPDATE_IGNORE = 0,
1: + FTRACE_UPDATE_MAKE_CALL = 1,
1: + FTRACE_UPDATE_MODIFY_CALL = 2,
1: + FTRACE_UPDATE_MAKE_NOP = 3,
1: +};
1: +
1: +enum {
1: + FTRACE_ITER_FILTER = 1,
1: + FTRACE_ITER_NOTRACE = 2,
1: + FTRACE_ITER_PRINTALL = 4,
1: + FTRACE_ITER_DO_PROBES = 8,
1: + FTRACE_ITER_PROBE = 16,
1: + FTRACE_ITER_MOD = 32,
1: + FTRACE_ITER_ENABLED = 64,
1: +};
1: +
1: +struct prog_entry;
1: +
1: +struct event_filter {
1: + struct prog_entry *prog;
1: + char *filter_string;
1: +};
1: +
1: +struct trace_array_cpu;
1: +
1: +struct array_buffer {
1: + struct trace_array *tr;
1: + struct trace_buffer *buffer;
1: + struct trace_array_cpu *data;
1: + u64 time_start;
1: + int cpu;
1: +};
1: +
1: +struct trace_pid_list;
1: +
1: +struct trace_options;
1: +
1: +struct trace_array {
1: + struct list_head list;
1: + char *name;
1: + struct array_buffer array_buffer;
1: + struct trace_pid_list *filtered_pids;
1: + struct trace_pid_list *filtered_no_pids;
1: + arch_spinlock_t max_lock;
1: + int buffer_disabled;
1: + int sys_refcount_enter;
1: + int sys_refcount_exit;
1: + struct trace_event_file *enter_syscall_files[441];
1: + struct trace_event_file *exit_syscall_files[441];
1: + int stop_count;
1: + int clock_id;
1: + int nr_topts;
1: + bool clear_trace;
1: + int buffer_percent;
1: + unsigned int n_err_log_entries;
1: + struct tracer *current_trace;
1: + unsigned int trace_flags;
1: + unsigned char trace_flags_index[32];
1: + unsigned int flags;
1: + raw_spinlock_t start_lock;
1: + struct list_head err_log;
1: + struct dentry *dir;
1: + struct dentry *options;
1: + struct dentry *percpu_dir;
1: + struct dentry *event_dir;
1: + struct trace_options *topts;
1: + struct list_head systems;
1: + struct list_head events;
1: + struct trace_event_file *trace_marker_file;
1: + cpumask_var_t tracing_cpumask;
1: + int ref;
1: + int trace_ref;
1: + struct ftrace_ops *ops;
1: + struct trace_pid_list *function_pids;
1: + struct trace_pid_list *function_no_pids;
1: + struct list_head func_probes;
1: + struct list_head mod_trace;
1: + struct list_head mod_notrace;
1: + int function_enabled;
1: + int time_stamp_abs_ref;
1: + struct list_head hist_vars;
1: +};
1: +
1: +struct tracer_flags;
1: +
1: +struct tracer {
1: + const char *name;
1: + int (*init)(struct trace_array *);
1: + void (*reset)(struct trace_array *);
1: + void (*start)(struct trace_array *);
1: + void (*stop)(struct trace_array *);
1: + int (*update_thresh)(struct trace_array *);
1: + void (*open)(struct trace_iterator *);
1: + void (*pipe_open)(struct trace_iterator *);
1: + void (*close)(struct trace_iterator *);
1: + void (*pipe_close)(struct trace_iterator *);
1: + ssize_t (*read)(struct trace_iterator *, struct file *, char *, size_t, loff_t *);
1: + ssize_t (*splice_read)(struct trace_iterator *, struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + void (*print_header)(struct seq_file *);
1: + enum print_line_t (*print_line)(struct trace_iterator *);
1: + int (*set_flag)(struct trace_array *, u32, u32, int);
1: + int (*flag_changed)(struct trace_array *, u32, int);
1: + struct tracer *next;
1: + struct tracer_flags *flags;
1: + int enabled;
1: + bool print_max;
1: + bool allow_instances;
1: + bool noboot;
1: +};
1: +
1: +struct event_subsystem;
1: +
1: +struct trace_subsystem_dir {
1: + struct list_head list;
1: + struct event_subsystem *subsystem;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: + int ref_count;
1: + int nr_events;
1: +};
1: +
1: +struct trace_array_cpu {
1: + atomic_t disabled;
1: + void *buffer_page;
1: + long unsigned int entries;
1: + long unsigned int saved_latency;
1: + long unsigned int critical_start;
1: + long unsigned int critical_end;
1: + long unsigned int critical_sequence;
1: + long unsigned int nice;
1: + long unsigned int policy;
1: + long unsigned int rt_priority;
1: + long unsigned int skipped_entries;
1: + u64 preempt_timestamp;
1: + pid_t pid;
1: + kuid_t uid;
1: + char comm[16];
1: + int ftrace_ignore_pid;
1: + bool ignore_pid;
1: +};
1: +
1: +struct trace_option_dentry;
1: +
1: +struct trace_options {
1: + struct tracer *tracer;
1: + struct trace_option_dentry *topts;
1: +};
1: +
1: +struct tracer_opt;
1: +
1: +struct trace_option_dentry {
1: + struct tracer_opt *opt;
1: + struct tracer_flags *flags;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: +};
1: +
1: +struct trace_pid_list {
1: + int pid_max;
1: + long unsigned int *pids;
1: +};
1: +
1: +enum {
1: + TRACE_PIDS = 1,
1: + TRACE_NO_PIDS = 2,
1: +};
1: +
1: +enum {
1: + TRACE_ARRAY_FL_GLOBAL = 1,
1: +};
1: +
1: +struct tracer_opt {
1: + const char *name;
1: + u32 bit;
1: +};
1: +
1: +struct tracer_flags {
1: + u32 val;
1: + struct tracer_opt *opts;
1: + struct tracer *trace;
1: +};
1: +
1: +enum {
1: + TRACE_FTRACE_BIT = 0,
1: + TRACE_FTRACE_NMI_BIT = 1,
1: + TRACE_FTRACE_IRQ_BIT = 2,
1: + TRACE_FTRACE_SIRQ_BIT = 3,
1: + TRACE_INTERNAL_BIT = 4,
1: + TRACE_INTERNAL_NMI_BIT = 5,
1: + TRACE_INTERNAL_IRQ_BIT = 6,
1: + TRACE_INTERNAL_SIRQ_BIT = 7,
1: + TRACE_BRANCH_BIT = 8,
1: + TRACE_IRQ_BIT = 9,
1: + TRACE_GRAPH_BIT = 10,
1: + TRACE_GRAPH_DEPTH_START_BIT = 11,
1: + TRACE_GRAPH_DEPTH_END_BIT = 12,
1: + TRACE_GRAPH_NOTRACE_BIT = 13,
1: + TRACE_TRANSITION_BIT = 14,
1: +};
1: +
1: +struct ftrace_mod_load {
1: + struct list_head list;
1: + char *func;
1: + char *module;
1: + int enable;
1: +};
1: +
1: +enum {
1: + FTRACE_HASH_FL_MOD = 1,
1: +};
1: +
1: +struct ftrace_func_command {
1: + struct list_head list;
1: + char *name;
1: + int (*func)(struct trace_array *, struct ftrace_hash *, char *, char *, char *, int);
1: +};
1: +
1: +struct ftrace_probe_ops {
1: + void (*func)(long unsigned int, long unsigned int, struct trace_array *, struct ftrace_probe_ops *, void *);
1: + int (*init)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *, void **);
1: + void (*free)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *);
1: + int (*print)(struct seq_file *, long unsigned int, struct ftrace_probe_ops *, void *);
1: +};
1: +
1: +typedef int (*ftrace_mapper_func)(void *);
1: +
1: +struct trace_parser {
1: + bool cont;
1: + char *buffer;
1: + unsigned int idx;
1: + unsigned int size;
1: +};
1: +
1: +enum trace_iterator_bits {
1: + TRACE_ITER_PRINT_PARENT_BIT = 0,
1: + TRACE_ITER_SYM_OFFSET_BIT = 1,
1: + TRACE_ITER_SYM_ADDR_BIT = 2,
1: + TRACE_ITER_VERBOSE_BIT = 3,
1: + TRACE_ITER_RAW_BIT = 4,
1: + TRACE_ITER_HEX_BIT = 5,
1: + TRACE_ITER_BIN_BIT = 6,
1: + TRACE_ITER_BLOCK_BIT = 7,
1: + TRACE_ITER_PRINTK_BIT = 8,
1: + TRACE_ITER_ANNOTATE_BIT = 9,
1: + TRACE_ITER_USERSTACKTRACE_BIT = 10,
1: + TRACE_ITER_SYM_USEROBJ_BIT = 11,
1: + TRACE_ITER_PRINTK_MSGONLY_BIT = 12,
1: + TRACE_ITER_CONTEXT_INFO_BIT = 13,
1: + TRACE_ITER_LATENCY_FMT_BIT = 14,
1: + TRACE_ITER_RECORD_CMD_BIT = 15,
1: + TRACE_ITER_RECORD_TGID_BIT = 16,
1: + TRACE_ITER_OVERWRITE_BIT = 17,
1: + TRACE_ITER_STOP_ON_FREE_BIT = 18,
1: + TRACE_ITER_IRQ_INFO_BIT = 19,
1: + TRACE_ITER_MARKERS_BIT = 20,
1: + TRACE_ITER_EVENT_FORK_BIT = 21,
1: + TRACE_ITER_PAUSE_ON_TRACE_BIT = 22,
1: + TRACE_ITER_FUNCTION_BIT = 23,
1: + TRACE_ITER_FUNC_FORK_BIT = 24,
1: + TRACE_ITER_DISPLAY_GRAPH_BIT = 25,
1: + TRACE_ITER_STACKTRACE_BIT = 26,
1: + TRACE_ITER_LAST_BIT = 27,
1: +};
1: +
1: +struct event_subsystem {
1: + struct list_head list;
1: + const char *name;
1: + struct event_filter *filter;
1: + int ref_count;
1: +};
1: +
1: +enum regex_type {
1: + MATCH_FULL = 0,
1: + MATCH_FRONT_ONLY = 1,
1: + MATCH_MIDDLE_ONLY = 2,
1: + MATCH_END_ONLY = 3,
1: + MATCH_GLOB = 4,
1: + MATCH_INDEX = 5,
1: +};
1: +
1: +enum {
1: + FTRACE_MODIFY_ENABLE_FL = 1,
1: + FTRACE_MODIFY_MAY_SLEEP_FL = 2,
1: +};
1: +
1: +struct ftrace_func_probe {
1: + struct ftrace_probe_ops *probe_ops;
1: + struct ftrace_ops ops;
1: + struct trace_array *tr;
1: + struct list_head list;
1: + void *data;
1: + int ref;
1: +};
1: +
1: +struct ftrace_page {
1: + struct ftrace_page *next;
1: + struct dyn_ftrace *records;
1: + int index;
1: + int size;
1: +};
1: +
1: +struct ftrace_rec_iter {
1: + struct ftrace_page *pg;
1: + int index;
1: +};
1: +
1: +struct ftrace_iterator {
1: + loff_t pos;
1: + loff_t func_pos;
1: + loff_t mod_pos;
1: + struct ftrace_page *pg;
1: + struct dyn_ftrace *func;
1: + struct ftrace_func_probe *probe;
1: + struct ftrace_func_entry *probe_entry;
1: + struct trace_parser parser;
1: + struct ftrace_hash *hash;
1: + struct ftrace_ops *ops;
1: + struct trace_array *tr;
1: + struct list_head *mod_list;
1: + int pidx;
1: + int idx;
1: + unsigned int flags;
1: +};
1: +
1: +struct ftrace_glob {
1: + char *search;
1: + unsigned int len;
1: + int type;
1: +};
1: +
1: +struct ftrace_func_map {
1: + struct ftrace_func_entry entry;
1: + void *data;
1: +};
1: +
1: +struct ftrace_func_mapper {
1: + struct ftrace_hash hash;
1: +};
1: +
1: +enum graph_filter_type {
1: + GRAPH_FILTER_NOTRACE = 0,
1: + GRAPH_FILTER_FUNCTION = 1,
1: +};
1: +
1: +struct ftrace_graph_data {
1: + struct ftrace_hash *hash;
1: + struct ftrace_func_entry *entry;
1: + int idx;
1: + enum graph_filter_type type;
1: + struct ftrace_hash *new_hash;
1: + const struct seq_operations *seq_ops;
1: + struct trace_parser parser;
1: +};
1: +
1: +struct ftrace_mod_func {
1: + struct list_head list;
1: + char *name;
1: + long unsigned int ip;
1: + unsigned int size;
1: +};
1: +
1: +struct ftrace_mod_map {
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct module *mod;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + struct list_head funcs;
1: + unsigned int num_funcs;
1: +};
1: +
1: +struct ftrace_init_func {
1: + struct list_head list;
1: + long unsigned int ip;
1: +};
1: +
1: +enum ring_buffer_type {
1: + RINGBUF_TYPE_DATA_TYPE_LEN_MAX = 28,
1: + RINGBUF_TYPE_PADDING = 29,
1: + RINGBUF_TYPE_TIME_EXTEND = 30,
1: + RINGBUF_TYPE_TIME_STAMP = 31,
1: +};
1: +
1: +enum ring_buffer_flags {
1: + RB_FL_OVERWRITE = 1,
1: +};
1: +
1: +struct ring_buffer_per_cpu;
1: +
1: +struct buffer_page;
1: +
1: +struct ring_buffer_iter {
1: + struct ring_buffer_per_cpu *cpu_buffer;
1: + long unsigned int head;
1: + long unsigned int next_event;
1: + struct buffer_page *head_page;
1: + struct buffer_page *cache_reader_page;
1: + long unsigned int cache_read;
1: + u64 read_stamp;
1: + u64 page_stamp;
1: + struct ring_buffer_event *event;
1: + int missed_events;
1: +};
1: +
1: +struct rb_irq_work {
1: + struct irq_work work;
1: + wait_queue_head_t waiters;
1: + wait_queue_head_t full_waiters;
1: + bool waiters_pending;
1: + bool full_waiters_pending;
1: + bool wakeup_full;
1: +};
1: +
1: +struct trace_buffer___2 {
1: + unsigned int flags;
1: + int cpus;
1: + atomic_t record_disabled;
1: + cpumask_var_t cpumask;
1: + struct lock_class_key *reader_lock_key;
1: + struct mutex mutex;
1: + struct ring_buffer_per_cpu **buffers;
1: + struct hlist_node node;
1: + u64 (*clock)();
1: + struct rb_irq_work irq_work;
1: + bool time_stamp_abs;
1: +};
1: +
1: +enum {
1: + RB_LEN_TIME_EXTEND = 8,
1: + RB_LEN_TIME_STAMP = 8,
1: +};
1: +
1: +struct buffer_data_page {
1: + u64 time_stamp;
1: + local_t commit;
1: + unsigned char data[0];
1: +};
1: +
1: +struct buffer_page {
1: + struct list_head list;
1: + local_t write;
1: + unsigned int read;
1: + local_t entries;
1: + long unsigned int real_end;
1: + struct buffer_data_page *page;
1: +};
1: +
1: +struct rb_event_info {
1: + u64 ts;
1: + u64 delta;
1: + u64 before;
1: + u64 after;
1: + long unsigned int length;
1: + struct buffer_page *tail_page;
1: + int add_timestamp;
1: +};
1: +
1: +enum {
1: + RB_ADD_STAMP_NONE = 0,
1: + RB_ADD_STAMP_EXTEND = 2,
1: + RB_ADD_STAMP_ABSOLUTE = 4,
1: + RB_ADD_STAMP_FORCE = 8,
1: +};
1: +
1: +enum {
1: + RB_CTX_TRANSITION = 0,
1: + RB_CTX_NMI = 1,
1: + RB_CTX_IRQ = 2,
1: + RB_CTX_SOFTIRQ = 3,
1: + RB_CTX_NORMAL = 4,
1: + RB_CTX_MAX = 5,
1: +};
1: +
1: +struct rb_time_struct {
1: + local64_t time;
1: +};
1: +
1: +typedef struct rb_time_struct rb_time_t;
1: +
1: +struct ring_buffer_per_cpu {
1: + int cpu;
1: + atomic_t record_disabled;
1: + atomic_t resize_disabled;
1: + struct trace_buffer___2 *buffer;
1: + raw_spinlock_t reader_lock;
1: + arch_spinlock_t lock;
1: + struct lock_class_key lock_key;
1: + struct buffer_data_page *free_page;
1: + long unsigned int nr_pages;
1: + unsigned int current_context;
1: + struct list_head *pages;
1: + struct buffer_page *head_page;
1: + struct buffer_page *tail_page;
1: + struct buffer_page *commit_page;
1: + struct buffer_page *reader_page;
1: + long unsigned int lost_events;
1: + long unsigned int last_overrun;
1: + long unsigned int nest;
1: + local_t entries_bytes;
1: + local_t entries;
1: + local_t overrun;
1: + local_t commit_overrun;
1: + local_t dropped_events;
1: + local_t committing;
1: + local_t commits;
1: + local_t pages_touched;
1: + local_t pages_read;
1: + long int last_pages_touch;
1: + size_t shortest_full;
1: + long unsigned int read;
1: + long unsigned int read_bytes;
1: + rb_time_t write_stamp;
1: + rb_time_t before_stamp;
1: + u64 read_stamp;
1: + long int nr_pages_to_update;
1: + struct list_head new_pages;
1: + struct work_struct update_pages_work;
1: + struct completion update_done;
1: + struct rb_irq_work irq_work;
1: +};
1: +
1: +struct trace_export {
1: + struct trace_export *next;
1: + void (*write)(struct trace_export *, const void *, unsigned int);
1: + int flags;
1: +};
1: +
1: +enum trace_iter_flags {
1: + TRACE_FILE_LAT_FMT = 1,
1: + TRACE_FILE_ANNOTATE = 2,
1: + TRACE_FILE_TIME_IN_NS = 4,
1: +};
1: +
1: +enum event_trigger_type {
1: + ETT_NONE = 0,
1: + ETT_TRACE_ONOFF = 1,
1: + ETT_SNAPSHOT = 2,
1: + ETT_STACKTRACE = 4,
1: + ETT_EVENT_ENABLE = 8,
1: + ETT_EVENT_HIST = 16,
1: + ETT_HIST_ENABLE = 32,
1: +};
1: +
1: +enum trace_type {
1: + __TRACE_FIRST_TYPE = 0,
1: + TRACE_FN = 1,
1: + TRACE_CTX = 2,
1: + TRACE_WAKE = 3,
1: + TRACE_STACK = 4,
1: + TRACE_PRINT = 5,
1: + TRACE_BPRINT = 6,
1: + TRACE_MMIO_RW = 7,
1: + TRACE_MMIO_MAP = 8,
1: + TRACE_BRANCH = 9,
1: + TRACE_GRAPH_RET = 10,
1: + TRACE_GRAPH_ENT = 11,
1: + TRACE_USER_STACK = 12,
1: + TRACE_BLK = 13,
1: + TRACE_BPUTS = 14,
1: + TRACE_HWLAT = 15,
1: + TRACE_RAW_DATA = 16,
1: + __TRACE_LAST_TYPE = 17,
1: +};
1: +
1: +struct ftrace_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: +};
1: +
1: +struct stack_entry {
1: + struct trace_entry ent;
1: + int size;
1: + long unsigned int caller[8];
1: +};
1: +
1: +struct bprint_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *fmt;
1: + u32 buf[0];
1: +};
1: +
1: +struct print_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + char buf[0];
1: +};
1: +
1: +struct raw_data_entry {
1: + struct trace_entry ent;
1: + unsigned int id;
1: + char buf[0];
1: +};
1: +
1: +struct bputs_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *str;
1: +};
1: +
1: +enum trace_flag_type {
1: + TRACE_FLAG_IRQS_OFF = 1,
1: + TRACE_FLAG_IRQS_NOSUPPORT = 2,
1: + TRACE_FLAG_NEED_RESCHED = 4,
1: + TRACE_FLAG_HARDIRQ = 8,
1: + TRACE_FLAG_SOFTIRQ = 16,
1: + TRACE_FLAG_PREEMPT_RESCHED = 32,
1: + TRACE_FLAG_NMI = 64,
1: +};
1: +
1: +typedef bool (*cond_update_fn_t)(struct trace_array *, void *);
1: +
1: +enum trace_iterator_flags {
1: + TRACE_ITER_PRINT_PARENT = 1,
1: + TRACE_ITER_SYM_OFFSET = 2,
1: + TRACE_ITER_SYM_ADDR = 4,
1: + TRACE_ITER_VERBOSE = 8,
1: + TRACE_ITER_RAW = 16,
1: + TRACE_ITER_HEX = 32,
1: + TRACE_ITER_BIN = 64,
1: + TRACE_ITER_BLOCK = 128,
1: + TRACE_ITER_PRINTK = 256,
1: + TRACE_ITER_ANNOTATE = 512,
1: + TRACE_ITER_USERSTACKTRACE = 1024,
1: + TRACE_ITER_SYM_USEROBJ = 2048,
1: + TRACE_ITER_PRINTK_MSGONLY = 4096,
1: + TRACE_ITER_CONTEXT_INFO = 8192,
1: + TRACE_ITER_LATENCY_FMT = 16384,
1: + TRACE_ITER_RECORD_CMD = 32768,
1: + TRACE_ITER_RECORD_TGID = 65536,
1: + TRACE_ITER_OVERWRITE = 131072,
1: + TRACE_ITER_STOP_ON_FREE = 262144,
1: + TRACE_ITER_IRQ_INFO = 524288,
1: + TRACE_ITER_MARKERS = 1048576,
1: + TRACE_ITER_EVENT_FORK = 2097152,
1: + TRACE_ITER_PAUSE_ON_TRACE = 4194304,
1: + TRACE_ITER_FUNCTION = 8388608,
1: + TRACE_ITER_FUNC_FORK = 16777216,
1: + TRACE_ITER_DISPLAY_GRAPH = 33554432,
1: + TRACE_ITER_STACKTRACE = 67108864,
1: +};
1: +
1: +struct saved_cmdlines_buffer {
1: + unsigned int map_pid_to_cmdline[32769];
1: + unsigned int *map_cmdline_to_pid;
1: + unsigned int cmdline_num;
1: + int cmdline_idx;
1: + char *saved_cmdlines;
1: +};
1: +
1: +struct ftrace_stack {
1: + long unsigned int calls[1024];
1: +};
1: +
1: +struct ftrace_stacks {
1: + struct ftrace_stack stacks[4];
1: +};
1: +
1: +struct trace_buffer_struct {
1: + int nesting;
1: + char buffer[4096];
1: +};
1: +
1: +struct ftrace_buffer_info {
1: + struct trace_iterator iter;
1: + void *spare;
1: + unsigned int spare_cpu;
1: + unsigned int read;
1: +};
1: +
1: +struct err_info {
1: + const char **errs;
1: + u8 type;
1: + u8 pos;
1: + u64 ts;
1: +};
1: +
1: +struct tracing_log_err {
1: + struct list_head list;
1: + struct err_info info;
1: + char loc[128];
1: + char cmd[256];
1: +};
1: +
1: +struct buffer_ref {
1: + struct trace_buffer *buffer;
1: + void *page;
1: + int cpu;
1: + refcount_t refcount;
1: +};
1: +
1: +struct ctx_switch_entry {
1: + struct trace_entry ent;
1: + unsigned int prev_pid;
1: + unsigned int next_pid;
1: + unsigned int next_cpu;
1: + unsigned char prev_prio;
1: + unsigned char prev_state;
1: + unsigned char next_prio;
1: + unsigned char next_state;
1: +};
1: +
1: +struct userstack_entry {
1: + struct trace_entry ent;
1: + unsigned int tgid;
1: + long unsigned int caller[8];
1: +};
1: +
1: +struct hwlat_entry {
1: + struct trace_entry ent;
1: + u64 duration;
1: + u64 outer_duration;
1: + u64 nmi_total_ts;
1: + struct timespec64 timestamp;
1: + unsigned int nmi_count;
1: + unsigned int seqnum;
1: + unsigned int count;
1: +};
1: +
1: +struct trace_mark {
1: + long long unsigned int val;
1: + char sym;
1: +};
1: +
1: +typedef int (*cmp_func_t)(const void *, const void *);
1: +
1: +struct tracer_stat {
1: + const char *name;
1: + void * (*stat_start)(struct tracer_stat *);
1: + void * (*stat_next)(void *, int);
1: + cmp_func_t stat_cmp;
1: + int (*stat_show)(struct seq_file *, void *);
1: + void (*stat_release)(void *);
1: + int (*stat_headers)(struct seq_file *);
1: +};
1: +
1: +struct stat_node {
1: + struct rb_node node;
1: + void *stat;
1: +};
1: +
1: +struct stat_session {
1: + struct list_head session_list;
1: + struct tracer_stat *ts;
1: + struct rb_root stat_root;
1: + struct mutex stat_mutex;
1: + struct dentry *file;
1: +};
1: +
1: +struct trace_bprintk_fmt {
1: + struct list_head list;
1: + const char *fmt;
1: +};
1: +
1: +enum {
1: + TRACE_FUNC_OPT_STACK = 1,
1: +};
1: +
1: +struct ftrace_func_mapper___2;
1: +
1: +enum {
1: + TRACE_NOP_OPT_ACCEPT = 1,
1: + TRACE_NOP_OPT_REFUSE = 2,
1: +};
1: +
1: +struct ftrace_graph_ent {
1: + long unsigned int func;
1: + int depth;
1: +} __attribute__((packed));
1: +
1: +struct ftrace_graph_ret {
1: + long unsigned int func;
1: + long unsigned int overrun;
1: + long long unsigned int calltime;
1: + long long unsigned int rettime;
1: + int depth;
1: +} __attribute__((packed));
1: +
1: +typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *);
1: +
1: +typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *);
1: +
1: +struct fgraph_ops {
1: + trace_func_graph_ent_t entryfunc;
1: + trace_func_graph_ret_t retfunc;
1: +};
1: +
1: +struct ftrace_graph_ent_entry {
1: + struct trace_entry ent;
1: + struct ftrace_graph_ent graph_ent;
1: +} __attribute__((packed));
1: +
1: +struct ftrace_graph_ret_entry {
1: + struct trace_entry ent;
1: + struct ftrace_graph_ret ret;
1: +} __attribute__((packed));
1: +
1: +struct fgraph_cpu_data {
1: + pid_t last_pid;
1: + int depth;
1: + int depth_irq;
1: + int ignore;
1: + long unsigned int enter_funcs[50];
1: +};
1: +
1: +struct fgraph_data {
1: + struct fgraph_cpu_data *cpu_data;
1: + struct ftrace_graph_ent_entry ent;
1: + struct ftrace_graph_ret_entry ret;
1: + int failed;
1: + int cpu;
1: +} __attribute__((packed));
1: +
1: +enum {
1: + FLAGS_FILL_FULL = 268435456,
1: + FLAGS_FILL_START = 536870912,
1: + FLAGS_FILL_END = 805306368,
1: +};
1: +
1: +struct blk_crypto_key;
1: +
1: +struct bio_crypt_ctx {
1: + const struct blk_crypto_key *bc_key;
1: + u64 bc_dun[4];
1: +};
1: +
1: +typedef __u32 blk_mq_req_flags_t;
1: +
1: +struct disk_stats {
1: + u64 nsecs[4];
1: + long unsigned int sectors[4];
1: + long unsigned int ios[4];
1: + long unsigned int merges[4];
1: + long unsigned int io_ticks;
1: + local_t in_flight[2];
1: +};
1: +
1: +struct blk_mq_ctxs;
1: +
1: +struct blk_mq_ctx {
1: + struct {
1: + spinlock_t lock;
1: + struct list_head rq_lists[3];
1: + long: 64;
1: + };
1: + unsigned int cpu;
1: + short unsigned int index_hw[3];
1: + struct blk_mq_hw_ctx *hctxs[3];
1: + long unsigned int rq_dispatched[2];
1: + long unsigned int rq_merged;
1: + long unsigned int rq_completed[2];
1: + struct request_queue *queue;
1: + struct blk_mq_ctxs *ctxs;
1: + struct kobject kobj;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sbitmap_word;
1: +
1: +struct sbitmap {
1: + unsigned int depth;
1: + unsigned int shift;
1: + unsigned int map_nr;
1: + struct sbitmap_word *map;
1: +};
1: +
1: +struct blk_mq_tags;
1: +
1: +struct blk_mq_hw_ctx {
1: + struct {
1: + spinlock_t lock;
1: + struct list_head dispatch;
1: + long unsigned int state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct delayed_work run_work;
1: + cpumask_var_t cpumask;
1: + int next_cpu;
1: + int next_cpu_batch;
1: + long unsigned int flags;
1: + void *sched_data;
1: + struct request_queue *queue;
1: + struct blk_flush_queue *fq;
1: + void *driver_data;
1: + struct sbitmap ctx_map;
1: + struct blk_mq_ctx *dispatch_from;
1: + unsigned int dispatch_busy;
1: + short unsigned int type;
1: + short unsigned int nr_ctx;
1: + struct blk_mq_ctx **ctxs;
1: + spinlock_t dispatch_wait_lock;
1: + wait_queue_entry_t dispatch_wait;
1: + atomic_t wait_index;
1: + struct blk_mq_tags *tags;
1: + struct blk_mq_tags *sched_tags;
1: + long unsigned int queued;
1: + long unsigned int run;
1: + long unsigned int dispatched[7];
1: + unsigned int numa_node;
1: + unsigned int queue_num;
1: + atomic_t nr_active;
1: + atomic_t elevator_queued;
1: + struct hlist_node cpuhp_online;
1: + struct hlist_node cpuhp_dead;
1: + struct kobject kobj;
1: + long unsigned int poll_considered;
1: + long unsigned int poll_invoked;
1: + long unsigned int poll_success;
1: + struct list_head hctx_list;
1: + struct srcu_struct srcu[0];
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blk_mq_alloc_data {
1: + struct request_queue *q;
1: + blk_mq_req_flags_t flags;
1: + unsigned int shallow_depth;
1: + unsigned int cmd_flags;
1: + struct blk_mq_ctx *ctx;
1: + struct blk_mq_hw_ctx *hctx;
1: +};
1: +
1: +struct blk_stat_callback {
1: + struct list_head list;
1: + struct timer_list timer;
1: + struct blk_rq_stat *cpu_stat;
1: + int (*bucket_fn)(const struct request *);
1: + unsigned int buckets;
1: + struct blk_rq_stat *stat;
1: + void (*timer_fn)(struct blk_stat_callback *);
1: + void *data;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct blk_trace {
1: + int trace_state;
1: + struct rchan *rchan;
1: + long unsigned int *sequence;
1: + unsigned char *msg_data;
1: + u16 act_mask;
1: + u64 start_lba;
1: + u64 end_lba;
1: + u32 pid;
1: + u32 dev;
1: + struct dentry *dir;
1: + struct dentry *dropped_file;
1: + struct dentry *msg_file;
1: + struct list_head running_list;
1: + atomic_t dropped;
1: +};
1: +
1: +struct blk_flush_queue {
1: + unsigned int flush_pending_idx: 1;
1: + unsigned int flush_running_idx: 1;
1: + blk_status_t rq_status;
1: + long unsigned int flush_pending_since;
1: + struct list_head flush_queue[2];
1: + struct list_head flush_data_in_flight;
1: + struct request *flush_rq;
1: + struct lock_class_key key;
1: + spinlock_t mq_flush_lock;
1: +};
1: +
1: +struct blk_mq_queue_map {
1: + unsigned int *mq_map;
1: + unsigned int nr_queues;
1: + unsigned int queue_offset;
1: +};
1: +
1: +struct sbq_wait_state;
1: +
1: +struct sbitmap_queue {
1: + struct sbitmap sb;
1: + unsigned int *alloc_hint;
1: + unsigned int wake_batch;
1: + atomic_t wake_index;
1: + struct sbq_wait_state *ws;
1: + atomic_t ws_active;
1: + bool round_robin;
1: + unsigned int min_shallow_depth;
1: +};
1: +
1: +struct blk_mq_tag_set {
1: + struct blk_mq_queue_map map[3];
1: + unsigned int nr_maps;
1: + const struct blk_mq_ops *ops;
1: + unsigned int nr_hw_queues;
1: + unsigned int queue_depth;
1: + unsigned int reserved_tags;
1: + unsigned int cmd_size;
1: + int numa_node;
1: + unsigned int timeout;
1: + unsigned int flags;
1: + void *driver_data;
1: + atomic_t active_queues_shared_sbitmap;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct blk_mq_tags **tags;
1: + struct mutex tag_list_lock;
1: + struct list_head tag_list;
1: +};
1: +
1: +enum blktrace_cat {
1: + BLK_TC_READ = 1,
1: + BLK_TC_WRITE = 2,
1: + BLK_TC_FLUSH = 4,
1: + BLK_TC_SYNC = 8,
1: + BLK_TC_SYNCIO = 8,
1: + BLK_TC_QUEUE = 16,
1: + BLK_TC_REQUEUE = 32,
1: + BLK_TC_ISSUE = 64,
1: + BLK_TC_COMPLETE = 128,
1: + BLK_TC_FS = 256,
1: + BLK_TC_PC = 512,
1: + BLK_TC_NOTIFY = 1024,
1: + BLK_TC_AHEAD = 2048,
1: + BLK_TC_META = 4096,
1: + BLK_TC_DISCARD = 8192,
1: + BLK_TC_DRV_DATA = 16384,
1: + BLK_TC_FUA = 32768,
1: + BLK_TC_END = 32768,
1: +};
1: +
1: +enum blktrace_act {
1: + __BLK_TA_QUEUE = 1,
1: + __BLK_TA_BACKMERGE = 2,
1: + __BLK_TA_FRONTMERGE = 3,
1: + __BLK_TA_GETRQ = 4,
1: + __BLK_TA_SLEEPRQ = 5,
1: + __BLK_TA_REQUEUE = 6,
1: + __BLK_TA_ISSUE = 7,
1: + __BLK_TA_COMPLETE = 8,
1: + __BLK_TA_PLUG = 9,
1: + __BLK_TA_UNPLUG_IO = 10,
1: + __BLK_TA_UNPLUG_TIMER = 11,
1: + __BLK_TA_INSERT = 12,
1: + __BLK_TA_SPLIT = 13,
1: + __BLK_TA_BOUNCE = 14,
1: + __BLK_TA_REMAP = 15,
1: + __BLK_TA_ABORT = 16,
1: + __BLK_TA_DRV_DATA = 17,
1: + __BLK_TA_CGROUP = 256,
1: +};
1: +
1: +enum blktrace_notify {
1: + __BLK_TN_PROCESS = 0,
1: + __BLK_TN_TIMESTAMP = 1,
1: + __BLK_TN_MESSAGE = 2,
1: + __BLK_TN_CGROUP = 256,
1: +};
1: +
1: +struct blk_io_trace {
1: + __u32 magic;
1: + __u32 sequence;
1: + __u64 time;
1: + __u64 sector;
1: + __u32 bytes;
1: + __u32 action;
1: + __u32 pid;
1: + __u32 device;
1: + __u32 cpu;
1: + __u16 error;
1: + __u16 pdu_len;
1: +};
1: +
1: +struct blk_io_trace_remap {
1: + __be32 device_from;
1: + __be32 device_to;
1: + __be64 sector_from;
1: +};
1: +
1: +enum {
1: + Blktrace_setup = 1,
1: + Blktrace_running = 2,
1: + Blktrace_stopped = 3,
1: +};
1: +
1: +struct blk_user_trace_setup {
1: + char name[32];
1: + __u16 act_mask;
1: + __u32 buf_size;
1: + __u32 buf_nr;
1: + __u64 start_lba;
1: + __u64 end_lba;
1: + __u32 pid;
1: +};
1: +
1: +struct sbitmap_word {
1: + long unsigned int depth;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int word;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int cleared;
1: + spinlock_t swap_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sbq_wait_state {
1: + atomic_t wait_cnt;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blk_mq_tags {
1: + unsigned int nr_tags;
1: + unsigned int nr_reserved_tags;
1: + atomic_t active_queues;
1: + struct sbitmap_queue *bitmap_tags;
1: + struct sbitmap_queue *breserved_tags;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct request **rqs;
1: + struct request **static_rqs;
1: + struct list_head page_list;
1: +};
1: +
1: +struct blk_mq_queue_data {
1: + struct request *rq;
1: + bool last;
1: +};
1: +
1: +enum blk_crypto_mode_num {
1: + BLK_ENCRYPTION_MODE_INVALID = 0,
1: + BLK_ENCRYPTION_MODE_AES_256_XTS = 1,
1: + BLK_ENCRYPTION_MODE_AES_128_CBC_ESSIV = 2,
1: + BLK_ENCRYPTION_MODE_ADIANTUM = 3,
1: + BLK_ENCRYPTION_MODE_MAX = 4,
1: +};
1: +
1: +struct blk_crypto_config {
1: + enum blk_crypto_mode_num crypto_mode;
1: + unsigned int data_unit_size;
1: + unsigned int dun_bytes;
1: +};
1: +
1: +struct blk_crypto_key {
1: + struct blk_crypto_config crypto_cfg;
1: + unsigned int data_unit_size_bits;
1: + unsigned int size;
1: + u8 raw[64];
1: +};
1: +
1: +struct blk_mq_ctxs {
1: + struct kobject kobj;
1: + struct blk_mq_ctx *queue_ctx;
1: +};
1: +
1: +typedef void blk_log_action_t(struct trace_iterator *, const char *, bool);
1: +
1: +struct ftrace_event_field {
1: + struct list_head link;
1: + const char *name;
1: + const char *type;
1: + int filter_type;
1: + int offset;
1: + int size;
1: + int is_signed;
1: +};
1: +
1: +enum {
1: + FORMAT_HEADER = 1,
1: + FORMAT_FIELD_SEPERATOR = 2,
1: + FORMAT_PRINTFMT = 3,
1: +};
1: +
1: +struct event_probe_data {
1: + struct trace_event_file *file;
1: + long unsigned int count;
1: + int ref;
1: + bool enable;
1: +};
1: +
1: +struct syscall_trace_enter {
1: + struct trace_entry ent;
1: + int nr;
1: + long unsigned int args[0];
1: +};
1: +
1: +struct syscall_trace_exit {
1: + struct trace_entry ent;
1: + int nr;
1: + long int ret;
1: +};
1: +
1: +struct syscall_tp_t {
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int ret;
1: +};
1: +
1: +struct syscall_tp_t___2 {
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int args[6];
1: +};
1: +
1: +enum perf_event_sample_format {
1: + PERF_SAMPLE_IP = 1,
1: + PERF_SAMPLE_TID = 2,
1: + PERF_SAMPLE_TIME = 4,
1: + PERF_SAMPLE_ADDR = 8,
1: + PERF_SAMPLE_READ = 16,
1: + PERF_SAMPLE_CALLCHAIN = 32,
1: + PERF_SAMPLE_ID = 64,
1: + PERF_SAMPLE_CPU = 128,
1: + PERF_SAMPLE_PERIOD = 256,
1: + PERF_SAMPLE_STREAM_ID = 512,
1: + PERF_SAMPLE_RAW = 1024,
1: + PERF_SAMPLE_BRANCH_STACK = 2048,
1: + PERF_SAMPLE_REGS_USER = 4096,
1: + PERF_SAMPLE_STACK_USER = 8192,
1: + PERF_SAMPLE_WEIGHT = 16384,
1: + PERF_SAMPLE_DATA_SRC = 32768,
1: + PERF_SAMPLE_IDENTIFIER = 65536,
1: + PERF_SAMPLE_TRANSACTION = 131072,
1: + PERF_SAMPLE_REGS_INTR = 262144,
1: + PERF_SAMPLE_PHYS_ADDR = 524288,
1: + PERF_SAMPLE_AUX = 1048576,
1: + PERF_SAMPLE_CGROUP = 2097152,
1: + PERF_SAMPLE_MAX = 4194304,
1: + __PERF_SAMPLE_CALLCHAIN_EARLY = 0,
1: +};
1: +
1: +typedef long unsigned int perf_trace_t[256];
1: +
1: +struct filter_pred;
1: +
1: +struct prog_entry {
1: + int target;
1: + int when_to_branch;
1: + struct filter_pred *pred;
1: +};
1: +
1: +typedef int (*filter_pred_fn_t)(struct filter_pred *, void *);
1: +
1: +struct regex;
1: +
1: +typedef int (*regex_match_func)(char *, struct regex *, int);
1: +
1: +struct regex {
1: + char pattern[256];
1: + int len;
1: + int field_len;
1: + regex_match_func match;
1: +};
1: +
1: +struct filter_pred {
1: + filter_pred_fn_t fn;
1: + u64 val;
1: + struct regex regex;
1: + short unsigned int *ops;
1: + struct ftrace_event_field *field;
1: + int offset;
1: + int not;
1: + int op;
1: +};
1: +
1: +enum filter_op_ids {
1: + OP_GLOB = 0,
1: + OP_NE = 1,
1: + OP_EQ = 2,
1: + OP_LE = 3,
1: + OP_LT = 4,
1: + OP_GE = 5,
1: + OP_GT = 6,
1: + OP_BAND = 7,
1: + OP_MAX = 8,
1: +};
1: +
1: +enum {
1: + FILT_ERR_NONE = 0,
1: + FILT_ERR_INVALID_OP = 1,
1: + FILT_ERR_TOO_MANY_OPEN = 2,
1: + FILT_ERR_TOO_MANY_CLOSE = 3,
1: + FILT_ERR_MISSING_QUOTE = 4,
1: + FILT_ERR_OPERAND_TOO_LONG = 5,
1: + FILT_ERR_EXPECT_STRING = 6,
1: + FILT_ERR_EXPECT_DIGIT = 7,
1: + FILT_ERR_ILLEGAL_FIELD_OP = 8,
1: + FILT_ERR_FIELD_NOT_FOUND = 9,
1: + FILT_ERR_ILLEGAL_INTVAL = 10,
1: + FILT_ERR_BAD_SUBSYS_FILTER = 11,
1: + FILT_ERR_TOO_MANY_PREDS = 12,
1: + FILT_ERR_INVALID_FILTER = 13,
1: + FILT_ERR_IP_FIELD_ONLY = 14,
1: + FILT_ERR_INVALID_VALUE = 15,
1: + FILT_ERR_ERRNO = 16,
1: + FILT_ERR_NO_FILTER = 17,
1: +};
1: +
1: +struct filter_parse_error {
1: + int lasterr;
1: + int lasterr_pos;
1: +};
1: +
1: +typedef int (*parse_pred_fn)(const char *, void *, int, struct filter_parse_error *, struct filter_pred **);
1: +
1: +enum {
1: + INVERT = 1,
1: + PROCESS_AND = 2,
1: + PROCESS_OR = 4,
1: +};
1: +
1: +enum {
1: + TOO_MANY_CLOSE = 4294967295,
1: + TOO_MANY_OPEN = 4294967294,
1: + MISSING_QUOTE = 4294967293,
1: +};
1: +
1: +struct filter_list {
1: + struct list_head list;
1: + struct event_filter *filter;
1: +};
1: +
1: +struct function_filter_data {
1: + struct ftrace_ops *ops;
1: + int first_filter;
1: + int first_notrace;
1: +};
1: +
1: +struct event_trigger_ops;
1: +
1: +struct event_command;
1: +
1: +struct event_trigger_data {
1: + long unsigned int count;
1: + int ref;
1: + struct event_trigger_ops *ops;
1: + struct event_command *cmd_ops;
1: + struct event_filter *filter;
1: + char *filter_str;
1: + void *private_data;
1: + bool paused;
1: + bool paused_tmp;
1: + struct list_head list;
1: + char *name;
1: + struct list_head named_list;
1: + struct event_trigger_data *named_data;
1: +};
1: +
1: +struct event_trigger_ops {
1: + void (*func)(struct event_trigger_data *, void *, struct ring_buffer_event *);
1: + int (*init)(struct event_trigger_ops *, struct event_trigger_data *);
1: + void (*free)(struct event_trigger_ops *, struct event_trigger_data *);
1: + int (*print)(struct seq_file *, struct event_trigger_ops *, struct event_trigger_data *);
1: +};
1: +
1: +struct event_command {
1: + struct list_head list;
1: + char *name;
1: + enum event_trigger_type trigger_type;
1: + int flags;
1: + int (*func)(struct event_command *, struct trace_event_file *, char *, char *, char *);
1: + int (*reg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: + void (*unreg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: + void (*unreg_all)(struct trace_event_file *);
1: + int (*set_filter)(char *, struct event_trigger_data *, struct trace_event_file *);
1: + struct event_trigger_ops * (*get_trigger_ops)(char *, char *);
1: +};
1: +
1: +struct enable_trigger_data {
1: + struct trace_event_file *file;
1: + bool enable;
1: + bool hist;
1: +};
1: +
1: +enum event_command_flags {
1: + EVENT_CMD_FL_POST_TRIGGER = 1,
1: + EVENT_CMD_FL_NEEDS_REC = 2,
1: +};
1: +
1: +enum bpf_func_id {
1: + BPF_FUNC_unspec = 0,
1: + BPF_FUNC_map_lookup_elem = 1,
1: + BPF_FUNC_map_update_elem = 2,
1: + BPF_FUNC_map_delete_elem = 3,
1: + BPF_FUNC_probe_read = 4,
1: + BPF_FUNC_ktime_get_ns = 5,
1: + BPF_FUNC_trace_printk = 6,
1: + BPF_FUNC_get_prandom_u32 = 7,
1: + BPF_FUNC_get_smp_processor_id = 8,
1: + BPF_FUNC_skb_store_bytes = 9,
1: + BPF_FUNC_l3_csum_replace = 10,
1: + BPF_FUNC_l4_csum_replace = 11,
1: + BPF_FUNC_tail_call = 12,
1: + BPF_FUNC_clone_redirect = 13,
1: + BPF_FUNC_get_current_pid_tgid = 14,
1: + BPF_FUNC_get_current_uid_gid = 15,
1: + BPF_FUNC_get_current_comm = 16,
1: + BPF_FUNC_get_cgroup_classid = 17,
1: + BPF_FUNC_skb_vlan_push = 18,
1: + BPF_FUNC_skb_vlan_pop = 19,
1: + BPF_FUNC_skb_get_tunnel_key = 20,
1: + BPF_FUNC_skb_set_tunnel_key = 21,
1: + BPF_FUNC_perf_event_read = 22,
1: + BPF_FUNC_redirect = 23,
1: + BPF_FUNC_get_route_realm = 24,
1: + BPF_FUNC_perf_event_output = 25,
1: + BPF_FUNC_skb_load_bytes = 26,
1: + BPF_FUNC_get_stackid = 27,
1: + BPF_FUNC_csum_diff = 28,
1: + BPF_FUNC_skb_get_tunnel_opt = 29,
1: + BPF_FUNC_skb_set_tunnel_opt = 30,
1: + BPF_FUNC_skb_change_proto = 31,
1: + BPF_FUNC_skb_change_type = 32,
1: + BPF_FUNC_skb_under_cgroup = 33,
1: + BPF_FUNC_get_hash_recalc = 34,
1: + BPF_FUNC_get_current_task = 35,
1: + BPF_FUNC_probe_write_user = 36,
1: + BPF_FUNC_current_task_under_cgroup = 37,
1: + BPF_FUNC_skb_change_tail = 38,
1: + BPF_FUNC_skb_pull_data = 39,
1: + BPF_FUNC_csum_update = 40,
1: + BPF_FUNC_set_hash_invalid = 41,
1: + BPF_FUNC_get_numa_node_id = 42,
1: + BPF_FUNC_skb_change_head = 43,
1: + BPF_FUNC_xdp_adjust_head = 44,
1: + BPF_FUNC_probe_read_str = 45,
1: + BPF_FUNC_get_socket_cookie = 46,
1: + BPF_FUNC_get_socket_uid = 47,
1: + BPF_FUNC_set_hash = 48,
1: + BPF_FUNC_setsockopt = 49,
1: + BPF_FUNC_skb_adjust_room = 50,
1: + BPF_FUNC_redirect_map = 51,
1: + BPF_FUNC_sk_redirect_map = 52,
1: + BPF_FUNC_sock_map_update = 53,
1: + BPF_FUNC_xdp_adjust_meta = 54,
1: + BPF_FUNC_perf_event_read_value = 55,
1: + BPF_FUNC_perf_prog_read_value = 56,
1: + BPF_FUNC_getsockopt = 57,
1: + BPF_FUNC_override_return = 58,
1: + BPF_FUNC_sock_ops_cb_flags_set = 59,
1: + BPF_FUNC_msg_redirect_map = 60,
1: + BPF_FUNC_msg_apply_bytes = 61,
1: + BPF_FUNC_msg_cork_bytes = 62,
1: + BPF_FUNC_msg_pull_data = 63,
1: + BPF_FUNC_bind = 64,
1: + BPF_FUNC_xdp_adjust_tail = 65,
1: + BPF_FUNC_skb_get_xfrm_state = 66,
1: + BPF_FUNC_get_stack = 67,
1: + BPF_FUNC_skb_load_bytes_relative = 68,
1: + BPF_FUNC_fib_lookup = 69,
1: + BPF_FUNC_sock_hash_update = 70,
1: + BPF_FUNC_msg_redirect_hash = 71,
1: + BPF_FUNC_sk_redirect_hash = 72,
1: + BPF_FUNC_lwt_push_encap = 73,
1: + BPF_FUNC_lwt_seg6_store_bytes = 74,
1: + BPF_FUNC_lwt_seg6_adjust_srh = 75,
1: + BPF_FUNC_lwt_seg6_action = 76,
1: + BPF_FUNC_rc_repeat = 77,
1: + BPF_FUNC_rc_keydown = 78,
1: + BPF_FUNC_skb_cgroup_id = 79,
1: + BPF_FUNC_get_current_cgroup_id = 80,
1: + BPF_FUNC_get_local_storage = 81,
1: + BPF_FUNC_sk_select_reuseport = 82,
1: + BPF_FUNC_skb_ancestor_cgroup_id = 83,
1: + BPF_FUNC_sk_lookup_tcp = 84,
1: + BPF_FUNC_sk_lookup_udp = 85,
1: + BPF_FUNC_sk_release = 86,
1: + BPF_FUNC_map_push_elem = 87,
1: + BPF_FUNC_map_pop_elem = 88,
1: + BPF_FUNC_map_peek_elem = 89,
1: + BPF_FUNC_msg_push_data = 90,
1: + BPF_FUNC_msg_pop_data = 91,
1: + BPF_FUNC_rc_pointer_rel = 92,
1: + BPF_FUNC_spin_lock = 93,
1: + BPF_FUNC_spin_unlock = 94,
1: + BPF_FUNC_sk_fullsock = 95,
1: + BPF_FUNC_tcp_sock = 96,
1: + BPF_FUNC_skb_ecn_set_ce = 97,
1: + BPF_FUNC_get_listener_sock = 98,
1: + BPF_FUNC_skc_lookup_tcp = 99,
1: + BPF_FUNC_tcp_check_syncookie = 100,
1: + BPF_FUNC_sysctl_get_name = 101,
1: + BPF_FUNC_sysctl_get_current_value = 102,
1: + BPF_FUNC_sysctl_get_new_value = 103,
1: + BPF_FUNC_sysctl_set_new_value = 104,
1: + BPF_FUNC_strtol = 105,
1: + BPF_FUNC_strtoul = 106,
1: + BPF_FUNC_sk_storage_get = 107,
1: + BPF_FUNC_sk_storage_delete = 108,
1: + BPF_FUNC_send_signal = 109,
1: + BPF_FUNC_tcp_gen_syncookie = 110,
1: + BPF_FUNC_skb_output = 111,
1: + BPF_FUNC_probe_read_user = 112,
1: + BPF_FUNC_probe_read_kernel = 113,
1: + BPF_FUNC_probe_read_user_str = 114,
1: + BPF_FUNC_probe_read_kernel_str = 115,
1: + BPF_FUNC_tcp_send_ack = 116,
1: + BPF_FUNC_send_signal_thread = 117,
1: + BPF_FUNC_jiffies64 = 118,
1: + BPF_FUNC_read_branch_records = 119,
1: + BPF_FUNC_get_ns_current_pid_tgid = 120,
1: + BPF_FUNC_xdp_output = 121,
1: + BPF_FUNC_get_netns_cookie = 122,
1: + BPF_FUNC_get_current_ancestor_cgroup_id = 123,
1: + BPF_FUNC_sk_assign = 124,
1: + BPF_FUNC_ktime_get_boot_ns = 125,
1: + BPF_FUNC_seq_printf = 126,
1: + BPF_FUNC_seq_write = 127,
1: + BPF_FUNC_sk_cgroup_id = 128,
1: + BPF_FUNC_sk_ancestor_cgroup_id = 129,
1: + BPF_FUNC_ringbuf_output = 130,
1: + BPF_FUNC_ringbuf_reserve = 131,
1: + BPF_FUNC_ringbuf_submit = 132,
1: + BPF_FUNC_ringbuf_discard = 133,
1: + BPF_FUNC_ringbuf_query = 134,
1: + BPF_FUNC_csum_level = 135,
1: + BPF_FUNC_skc_to_tcp6_sock = 136,
1: + BPF_FUNC_skc_to_tcp_sock = 137,
1: + BPF_FUNC_skc_to_tcp_timewait_sock = 138,
1: + BPF_FUNC_skc_to_tcp_request_sock = 139,
1: + BPF_FUNC_skc_to_udp6_sock = 140,
1: + BPF_FUNC_get_task_stack = 141,
1: + BPF_FUNC_load_hdr_opt = 142,
1: + BPF_FUNC_store_hdr_opt = 143,
1: + BPF_FUNC_reserve_hdr_opt = 144,
1: + BPF_FUNC_inode_storage_get = 145,
1: + BPF_FUNC_inode_storage_delete = 146,
1: + BPF_FUNC_d_path = 147,
1: + BPF_FUNC_copy_from_user = 148,
1: + BPF_FUNC_snprintf_btf = 149,
1: + BPF_FUNC_seq_printf_btf = 150,
1: + BPF_FUNC_skb_cgroup_classid = 151,
1: + BPF_FUNC_redirect_neigh = 152,
1: + BPF_FUNC_per_cpu_ptr = 153,
1: + BPF_FUNC_this_cpu_ptr = 154,
1: + BPF_FUNC_redirect_peer = 155,
1: + __BPF_FUNC_MAX_ID = 156,
1: +};
1: +
1: +enum {
1: + BPF_F_INDEX_MASK = 4294967295,
1: + BPF_F_CURRENT_CPU = 4294967295,
1: + BPF_F_CTXLEN_MASK = 0,
1: +};
1: +
1: +struct bpf_perf_event_value {
1: + __u64 counter;
1: + __u64 enabled;
1: + __u64 running;
1: +};
1: +
1: +struct bpf_raw_tracepoint_args {
1: + __u64 args[0];
1: +};
1: +
1: +enum bpf_task_fd_type {
1: + BPF_FD_TYPE_RAW_TRACEPOINT = 0,
1: + BPF_FD_TYPE_TRACEPOINT = 1,
1: + BPF_FD_TYPE_KPROBE = 2,
1: + BPF_FD_TYPE_KRETPROBE = 3,
1: + BPF_FD_TYPE_UPROBE = 4,
1: + BPF_FD_TYPE_URETPROBE = 5,
1: +};
1: +
1: +struct btf_ptr {
1: + void *ptr;
1: + __u32 type_id;
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + BTF_F_COMPACT = 1,
1: + BTF_F_NONAME = 2,
1: + BTF_F_PTR_RAW = 4,
1: + BTF_F_ZERO = 8,
1: +};
1: +
1: +enum bpf_arg_type {
1: + ARG_DONTCARE = 0,
1: + ARG_CONST_MAP_PTR = 1,
1: + ARG_PTR_TO_MAP_KEY = 2,
1: + ARG_PTR_TO_MAP_VALUE = 3,
1: + ARG_PTR_TO_UNINIT_MAP_VALUE = 4,
1: + ARG_PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + ARG_PTR_TO_MEM = 6,
1: + ARG_PTR_TO_MEM_OR_NULL = 7,
1: + ARG_PTR_TO_UNINIT_MEM = 8,
1: + ARG_CONST_SIZE = 9,
1: + ARG_CONST_SIZE_OR_ZERO = 10,
1: + ARG_PTR_TO_CTX = 11,
1: + ARG_PTR_TO_CTX_OR_NULL = 12,
1: + ARG_ANYTHING = 13,
1: + ARG_PTR_TO_SPIN_LOCK = 14,
1: + ARG_PTR_TO_SOCK_COMMON = 15,
1: + ARG_PTR_TO_INT = 16,
1: + ARG_PTR_TO_LONG = 17,
1: + ARG_PTR_TO_SOCKET = 18,
1: + ARG_PTR_TO_SOCKET_OR_NULL = 19,
1: + ARG_PTR_TO_BTF_ID = 20,
1: + ARG_PTR_TO_ALLOC_MEM = 21,
1: + ARG_PTR_TO_ALLOC_MEM_OR_NULL = 22,
1: + ARG_CONST_ALLOC_SIZE_OR_ZERO = 23,
1: + ARG_PTR_TO_BTF_ID_SOCK_COMMON = 24,
1: + ARG_PTR_TO_PERCPU_BTF_ID = 25,
1: + __BPF_ARG_TYPE_MAX = 26,
1: +};
1: +
1: +enum bpf_return_type {
1: + RET_INTEGER = 0,
1: + RET_VOID = 1,
1: + RET_PTR_TO_MAP_VALUE = 2,
1: + RET_PTR_TO_MAP_VALUE_OR_NULL = 3,
1: + RET_PTR_TO_SOCKET_OR_NULL = 4,
1: + RET_PTR_TO_TCP_SOCK_OR_NULL = 5,
1: + RET_PTR_TO_SOCK_COMMON_OR_NULL = 6,
1: + RET_PTR_TO_ALLOC_MEM_OR_NULL = 7,
1: + RET_PTR_TO_BTF_ID_OR_NULL = 8,
1: + RET_PTR_TO_MEM_OR_BTF_ID_OR_NULL = 9,
1: + RET_PTR_TO_MEM_OR_BTF_ID = 10,
1: +};
1: +
1: +struct bpf_func_proto {
1: + u64 (*func)(u64, u64, u64, u64, u64);
1: + bool gpl_only;
1: + bool pkt_access;
1: + enum bpf_return_type ret_type;
1: + union {
1: + struct {
1: + enum bpf_arg_type arg1_type;
1: + enum bpf_arg_type arg2_type;
1: + enum bpf_arg_type arg3_type;
1: + enum bpf_arg_type arg4_type;
1: + enum bpf_arg_type arg5_type;
1: + };
1: + enum bpf_arg_type arg_type[5];
1: + };
1: + union {
1: + struct {
1: + u32 *arg1_btf_id;
1: + u32 *arg2_btf_id;
1: + u32 *arg3_btf_id;
1: + u32 *arg4_btf_id;
1: + u32 *arg5_btf_id;
1: + };
1: + u32 *arg_btf_id[5];
1: + };
1: + int *ret_btf_id;
1: + bool (*allowed)(const struct bpf_prog *);
1: +};
1: +
1: +enum bpf_access_type {
1: + BPF_READ = 1,
1: + BPF_WRITE = 2,
1: +};
1: +
1: +struct bpf_verifier_log;
1: +
1: +struct bpf_insn_access_aux {
1: + enum bpf_reg_type reg_type;
1: + union {
1: + int ctx_field_size;
1: + u32 btf_id;
1: + };
1: + struct bpf_verifier_log *log;
1: +};
1: +
1: +struct bpf_verifier_ops {
1: + const struct bpf_func_proto * (*get_func_proto)(enum bpf_func_id, const struct bpf_prog *);
1: + bool (*is_valid_access)(int, int, enum bpf_access_type, const struct bpf_prog *, struct bpf_insn_access_aux *);
1: + int (*gen_prologue)(struct bpf_insn *, bool, const struct bpf_prog *);
1: + int (*gen_ld_abs)(const struct bpf_insn *, struct bpf_insn *);
1: + u32 (*convert_ctx_access)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: + int (*btf_struct_access)(struct bpf_verifier_log *, const struct btf_type *, int, int, enum bpf_access_type, u32 *);
1: +};
1: +
1: +struct bpf_array_aux {
1: + enum bpf_prog_type type;
1: + bool jited;
1: + struct list_head poke_progs;
1: + struct bpf_map *map;
1: + struct mutex poke_mutex;
1: + struct work_struct work;
1: +};
1: +
1: +struct bpf_array {
1: + struct bpf_map map;
1: + u32 elem_size;
1: + u32 index_mask;
1: + struct bpf_array_aux *aux;
1: + union {
1: + char value[0];
1: + void *ptrs[0];
1: + void *pptrs[0];
1: + };
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_event_entry {
1: + struct perf_event *event;
1: + struct file *perf_file;
1: + struct file *map_file;
1: + struct callback_head rcu;
1: +};
1: +
1: +typedef long unsigned int (*bpf_ctx_copy_t)(void *, const void *, long unsigned int, long unsigned int);
1: +
1: +typedef struct user_pt_regs bpf_user_pt_regs_t;
1: +
1: +struct bpf_perf_event_data {
1: + bpf_user_pt_regs_t regs;
1: + __u64 sample_period;
1: + __u64 addr;
1: +};
1: +
1: +struct perf_event_query_bpf {
1: + __u32 ids_len;
1: + __u32 prog_cnt;
1: + __u32 ids[0];
1: +};
1: +
1: +struct bpf_perf_event_data_kern {
1: + bpf_user_pt_regs_t *regs;
1: + struct perf_sample_data *data;
1: + struct perf_event *event;
1: +};
1: +
1: +struct btf_id_set {
1: + u32 cnt;
1: + u32 ids[0];
1: +};
1: +
1: +struct trace_event_raw_bpf_trace_printk {
1: + struct trace_entry ent;
1: + u32 __data_loc_bpf_string;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_bpf_trace_printk {
1: + u32 bpf_string;
1: +};
1: +
1: +typedef void (*btf_trace_bpf_trace_printk)(void *, const char *);
1: +
1: +struct bpf_trace_module {
1: + struct module *module;
1: + struct list_head list;
1: +};
1: +
1: +typedef u64 (*btf_bpf_override_return)(struct pt_regs *, long unsigned int);
1: +
1: +typedef u64 (*btf_bpf_probe_read_user)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_user_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_kernel)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_kernel_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_compat)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_compat_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_write_user)(void *, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_trace_printk)(char *, u32, u64, u64, u64);
1: +
1: +struct bpf_seq_printf_buf {
1: + char buf[768];
1: +};
1: +
1: +typedef u64 (*btf_bpf_seq_printf)(struct seq_file *, char *, u32, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_seq_write)(struct seq_file *, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_seq_printf_btf)(struct seq_file *, struct btf_ptr *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_read)(struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_read_value)(struct bpf_map *, u64, struct bpf_perf_event_value *, u32);
1: +
1: +struct bpf_trace_sample_data {
1: + struct perf_sample_data sds[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_perf_event_output)(struct pt_regs *, struct bpf_map *, u64, void *, u64);
1: +
1: +struct bpf_nested_pt_regs {
1: + struct pt_regs regs[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_get_current_task)();
1: +
1: +typedef u64 (*btf_bpf_current_task_under_cgroup)(struct bpf_map *, u32);
1: +
1: +struct send_signal_irq_work {
1: + struct irq_work irq_work;
1: + struct task_struct *task;
1: + u32 sig;
1: + enum pid_type type;
1: +};
1: +
1: +typedef u64 (*btf_bpf_send_signal)(u32);
1: +
1: +typedef u64 (*btf_bpf_send_signal_thread)(u32);
1: +
1: +typedef u64 (*btf_bpf_d_path)(struct path *, char *, u32);
1: +
1: +typedef u64 (*btf_bpf_snprintf_btf)(char *, u32, struct btf_ptr *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_output_tp)(void *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_tp)(void *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_tp)(void *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_prog_read_value)(struct bpf_perf_event_data_kern *, struct bpf_perf_event_value *, u32);
1: +
1: +typedef u64 (*btf_bpf_read_branch_records)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +
1: +struct bpf_raw_tp_regs {
1: + struct pt_regs regs[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_perf_event_output_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_raw_tp)(struct bpf_raw_tracepoint_args *, void *, u32, u64);
1: +
1: +enum dynevent_type {
1: + DYNEVENT_TYPE_SYNTH = 1,
1: + DYNEVENT_TYPE_KPROBE = 2,
1: + DYNEVENT_TYPE_NONE = 3,
1: +};
1: +
1: +struct dynevent_cmd;
1: +
1: +typedef int (*dynevent_create_fn_t)(struct dynevent_cmd *);
1: +
1: +struct dynevent_cmd {
1: + struct seq_buf seq;
1: + const char *event_name;
1: + unsigned int n_fields;
1: + enum dynevent_type type;
1: + dynevent_create_fn_t run_command;
1: + void *private_data;
1: +};
1: +
1: +struct kprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: +};
1: +
1: +struct kretprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int func;
1: + long unsigned int ret_ip;
1: +};
1: +
1: +struct dyn_event;
1: +
1: +struct dyn_event_operations {
1: + struct list_head list;
1: + int (*create)(int, const char **);
1: + int (*show)(struct seq_file *, struct dyn_event *);
1: + bool (*is_busy)(struct dyn_event *);
1: + int (*free)(struct dyn_event *);
1: + bool (*match)(const char *, const char *, int, const char **, struct dyn_event *);
1: +};
1: +
1: +struct dyn_event {
1: + struct list_head list;
1: + struct dyn_event_operations *ops;
1: +};
1: +
1: +struct dynevent_arg {
1: + const char *str;
1: + char separator;
1: +};
1: +
1: +typedef int (*print_type_func_t)(struct trace_seq *, void *, void *);
1: +
1: +enum fetch_op {
1: + FETCH_OP_NOP = 0,
1: + FETCH_OP_REG = 1,
1: + FETCH_OP_STACK = 2,
1: + FETCH_OP_STACKP = 3,
1: + FETCH_OP_RETVAL = 4,
1: + FETCH_OP_IMM = 5,
1: + FETCH_OP_COMM = 6,
1: + FETCH_OP_ARG = 7,
1: + FETCH_OP_FOFFS = 8,
1: + FETCH_OP_DATA = 9,
1: + FETCH_OP_DEREF = 10,
1: + FETCH_OP_UDEREF = 11,
1: + FETCH_OP_ST_RAW = 12,
1: + FETCH_OP_ST_MEM = 13,
1: + FETCH_OP_ST_UMEM = 14,
1: + FETCH_OP_ST_STRING = 15,
1: + FETCH_OP_ST_USTRING = 16,
1: + FETCH_OP_MOD_BF = 17,
1: + FETCH_OP_LP_ARRAY = 18,
1: + FETCH_OP_END = 19,
1: + FETCH_NOP_SYMBOL = 20,
1: +};
1: +
1: +struct fetch_insn {
1: + enum fetch_op op;
1: + union {
1: + unsigned int param;
1: + struct {
1: + unsigned int size;
1: + int offset;
1: + };
1: + struct {
1: + unsigned char basesize;
1: + unsigned char lshift;
1: + unsigned char rshift;
1: + };
1: + long unsigned int immediate;
1: + void *data;
1: + };
1: +};
1: +
1: +struct fetch_type {
1: + const char *name;
1: + size_t size;
1: + int is_signed;
1: + print_type_func_t print;
1: + const char *fmt;
1: + const char *fmttype;
1: +};
1: +
1: +struct probe_arg {
1: + struct fetch_insn *code;
1: + bool dynamic;
1: + unsigned int offset;
1: + unsigned int count;
1: + const char *name;
1: + const char *comm;
1: + char *fmt;
1: + const struct fetch_type *type;
1: +};
1: +
1: +struct trace_uprobe_filter {
1: + rwlock_t rwlock;
1: + int nr_systemwide;
1: + struct list_head perf_events;
1: +};
1: +
1: +struct trace_probe_event {
1: + unsigned int flags;
1: + struct trace_event_class class;
1: + struct trace_event_call call;
1: + struct list_head files;
1: + struct list_head probes;
1: + struct trace_uprobe_filter filter[0];
1: +};
1: +
1: +struct trace_probe {
1: + struct list_head list;
1: + struct trace_probe_event *event;
1: + ssize_t size;
1: + unsigned int nr_args;
1: + struct probe_arg args[0];
1: +};
1: +
1: +struct event_file_link {
1: + struct trace_event_file *file;
1: + struct list_head list;
1: +};
1: +
1: +enum {
1: + TP_ERR_FILE_NOT_FOUND = 0,
1: + TP_ERR_NO_REGULAR_FILE = 1,
1: + TP_ERR_BAD_REFCNT = 2,
1: + TP_ERR_REFCNT_OPEN_BRACE = 3,
1: + TP_ERR_BAD_REFCNT_SUFFIX = 4,
1: + TP_ERR_BAD_UPROBE_OFFS = 5,
1: + TP_ERR_MAXACT_NO_KPROBE = 6,
1: + TP_ERR_BAD_MAXACT = 7,
1: + TP_ERR_MAXACT_TOO_BIG = 8,
1: + TP_ERR_BAD_PROBE_ADDR = 9,
1: + TP_ERR_BAD_RETPROBE = 10,
1: + TP_ERR_BAD_ADDR_SUFFIX = 11,
1: + TP_ERR_NO_GROUP_NAME = 12,
1: + TP_ERR_GROUP_TOO_LONG = 13,
1: + TP_ERR_BAD_GROUP_NAME = 14,
1: + TP_ERR_NO_EVENT_NAME = 15,
1: + TP_ERR_EVENT_TOO_LONG = 16,
1: + TP_ERR_BAD_EVENT_NAME = 17,
1: + TP_ERR_RETVAL_ON_PROBE = 18,
1: + TP_ERR_BAD_STACK_NUM = 19,
1: + TP_ERR_BAD_ARG_NUM = 20,
1: + TP_ERR_BAD_VAR = 21,
1: + TP_ERR_BAD_REG_NAME = 22,
1: + TP_ERR_BAD_MEM_ADDR = 23,
1: + TP_ERR_BAD_IMM = 24,
1: + TP_ERR_IMMSTR_NO_CLOSE = 25,
1: + TP_ERR_FILE_ON_KPROBE = 26,
1: + TP_ERR_BAD_FILE_OFFS = 27,
1: + TP_ERR_SYM_ON_UPROBE = 28,
1: + TP_ERR_TOO_MANY_OPS = 29,
1: + TP_ERR_DEREF_NEED_BRACE = 30,
1: + TP_ERR_BAD_DEREF_OFFS = 31,
1: + TP_ERR_DEREF_OPEN_BRACE = 32,
1: + TP_ERR_COMM_CANT_DEREF = 33,
1: + TP_ERR_BAD_FETCH_ARG = 34,
1: + TP_ERR_ARRAY_NO_CLOSE = 35,
1: + TP_ERR_BAD_ARRAY_SUFFIX = 36,
1: + TP_ERR_BAD_ARRAY_NUM = 37,
1: + TP_ERR_ARRAY_TOO_BIG = 38,
1: + TP_ERR_BAD_TYPE = 39,
1: + TP_ERR_BAD_STRING = 40,
1: + TP_ERR_BAD_BITFIELD = 41,
1: + TP_ERR_ARG_NAME_TOO_LONG = 42,
1: + TP_ERR_NO_ARG_NAME = 43,
1: + TP_ERR_BAD_ARG_NAME = 44,
1: + TP_ERR_USED_ARG_NAME = 45,
1: + TP_ERR_ARG_TOO_LONG = 46,
1: + TP_ERR_NO_ARG_BODY = 47,
1: + TP_ERR_BAD_INSN_BNDRY = 48,
1: + TP_ERR_FAIL_REG_PROBE = 49,
1: + TP_ERR_DIFF_PROBE_TYPE = 50,
1: + TP_ERR_DIFF_ARG_TYPE = 51,
1: + TP_ERR_SAME_PROBE = 52,
1: +};
1: +
1: +struct trace_kprobe {
1: + struct dyn_event devent;
1: + struct kretprobe rp;
1: + long unsigned int *nhit;
1: + const char *symbol;
1: + struct trace_probe tp;
1: +};
1: +
1: +struct trace_event_raw_cpu {
1: + struct trace_entry ent;
1: + u32 state;
1: + u32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_powernv_throttle {
1: + struct trace_entry ent;
1: + int chip_id;
1: + u32 __data_loc_reason;
1: + int pmax;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_pstate_sample {
1: + struct trace_entry ent;
1: + u32 core_busy;
1: + u32 scaled_busy;
1: + u32 from;
1: + u32 to;
1: + u64 mperf;
1: + u64 aperf;
1: + u64 tsc;
1: + u32 freq;
1: + u32 io_boost;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpu_frequency_limits {
1: + struct trace_entry ent;
1: + u32 min_freq;
1: + u32 max_freq;
1: + u32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_device_pm_callback_start {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + u32 __data_loc_parent;
1: + u32 __data_loc_pm_ops;
1: + int event;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_device_pm_callback_end {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_suspend_resume {
1: + struct trace_entry ent;
1: + const char *action;
1: + int val;
1: + bool start;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wakeup_source {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clock {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_power_domain {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpu_latency_qos_request {
1: + struct trace_entry ent;
1: + s32 value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_pm_qos_update {
1: + struct trace_entry ent;
1: + enum pm_qos_req_action action;
1: + int prev_value;
1: + int curr_value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dev_pm_qos_request {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + enum dev_pm_qos_req_type type;
1: + s32 new_value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cpu {};
1: +
1: +struct trace_event_data_offsets_powernv_throttle {
1: + u32 reason;
1: +};
1: +
1: +struct trace_event_data_offsets_pstate_sample {};
1: +
1: +struct trace_event_data_offsets_cpu_frequency_limits {};
1: +
1: +struct trace_event_data_offsets_device_pm_callback_start {
1: + u32 device;
1: + u32 driver;
1: + u32 parent;
1: + u32 pm_ops;
1: +};
1: +
1: +struct trace_event_data_offsets_device_pm_callback_end {
1: + u32 device;
1: + u32 driver;
1: +};
1: +
1: +struct trace_event_data_offsets_suspend_resume {};
1: +
1: +struct trace_event_data_offsets_wakeup_source {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_clock {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_power_domain {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_cpu_latency_qos_request {};
1: +
1: +struct trace_event_data_offsets_pm_qos_update {};
1: +
1: +struct trace_event_data_offsets_dev_pm_qos_request {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_cpu_idle)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_powernv_throttle)(void *, int, const char *, int);
1: +
1: +typedef void (*btf_trace_pstate_sample)(void *, u32, u32, u32, u32, u64, u64, u64, u32, u32);
1: +
1: +typedef void (*btf_trace_cpu_frequency)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_cpu_frequency_limits)(void *, struct cpufreq_policy *);
1: +
1: +typedef void (*btf_trace_device_pm_callback_start)(void *, struct device *, const char *, int);
1: +
1: +typedef void (*btf_trace_device_pm_callback_end)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_suspend_resume)(void *, const char *, int, bool);
1: +
1: +typedef void (*btf_trace_wakeup_source_activate)(void *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_wakeup_source_deactivate)(void *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_enable)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_disable)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_set_rate)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_power_domain_target)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_pm_qos_add_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_update_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_remove_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_update_target)(void *, enum pm_qos_req_action, int, int);
1: +
1: +typedef void (*btf_trace_pm_qos_update_flags)(void *, enum pm_qos_req_action, int, int);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_add_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_update_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_remove_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +struct trace_event_raw_rpm_internal {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int flags;
1: + int usage_count;
1: + int disable_depth;
1: + int runtime_auto;
1: + int request_pending;
1: + int irq_safe;
1: + int child_count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rpm_return_int {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + long unsigned int ip;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rpm_internal {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_rpm_return_int {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_rpm_suspend)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_resume)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_idle)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_usage)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_return_int)(void *, struct device *, long unsigned int, int);
1: +
1: +typedef int (*dynevent_check_arg_fn_t)(void *);
1: +
1: +struct dynevent_arg_pair {
1: + const char *lhs;
1: + const char *rhs;
1: + char operator;
1: + char separator;
1: +};
1: +
1: +struct trace_probe_log {
1: + const char *subsystem;
1: + const char **argv;
1: + int argc;
1: + int index;
1: +};
1: +
1: +enum uprobe_filter_ctx {
1: + UPROBE_FILTER_REGISTER = 0,
1: + UPROBE_FILTER_UNREGISTER = 1,
1: + UPROBE_FILTER_MMAP = 2,
1: +};
1: +
1: +struct uprobe_consumer {
1: + int (*handler)(struct uprobe_consumer *, struct pt_regs *);
1: + int (*ret_handler)(struct uprobe_consumer *, long unsigned int, struct pt_regs *);
1: + bool (*filter)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: + struct uprobe_consumer *next;
1: +};
1: +
1: +struct uprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int vaddr[0];
1: +};
1: +
1: +struct trace_uprobe {
1: + struct dyn_event devent;
1: + struct uprobe_consumer consumer;
1: + struct path path;
1: + struct inode *inode;
1: + char *filename;
1: + long unsigned int offset;
1: + long unsigned int ref_ctr_offset;
1: + long unsigned int nhit;
1: + struct trace_probe tp;
1: +};
1: +
1: +struct uprobe_dispatch_data {
1: + struct trace_uprobe *tu;
1: + long unsigned int bp_addr;
1: +};
1: +
1: +struct uprobe_cpu_buffer {
1: + struct mutex mutex;
1: + void *buf;
1: +};
1: +
1: +typedef bool (*filter_func_t)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: +
1: +struct rnd_state {
1: + __u32 s1;
1: + __u32 s2;
1: + __u32 s3;
1: + __u32 s4;
1: +};
1: +
1: +struct rhash_lock_head;
1: +
1: +struct bucket_table {
1: + unsigned int size;
1: + unsigned int nest;
1: + u32 hash_rnd;
1: + struct list_head walkers;
1: + struct callback_head rcu;
1: + struct bucket_table *future_tbl;
1: + struct lockdep_map dep_map;
1: + long: 64;
1: + struct rhash_lock_head *buckets[0];
1: +};
1: +
1: +enum xdp_action {
1: + XDP_ABORTED = 0,
1: + XDP_DROP = 1,
1: + XDP_PASS = 2,
1: + XDP_TX = 3,
1: + XDP_REDIRECT = 4,
1: +};
1: +
1: +enum bpf_jit_poke_reason {
1: + BPF_POKE_REASON_TAIL_CALL = 0,
1: +};
1: +
1: +enum bpf_text_poke_type {
1: + BPF_MOD_CALL = 0,
1: + BPF_MOD_JUMP = 1,
1: +};
1: +
1: +enum xdp_mem_type {
1: + MEM_TYPE_PAGE_SHARED = 0,
1: + MEM_TYPE_PAGE_ORDER0 = 1,
1: + MEM_TYPE_PAGE_POOL = 2,
1: + MEM_TYPE_XSK_BUFF_POOL = 3,
1: + MEM_TYPE_MAX = 4,
1: +};
1: +
1: +struct xdp_cpumap_stats {
1: + unsigned int redirect;
1: + unsigned int pass;
1: + unsigned int drop;
1: +};
1: +
1: +typedef void (*bpf_jit_fill_hole_t)(void *, unsigned int);
1: +
1: +struct bpf_prog_dummy {
1: + struct bpf_prog prog;
1: +};
1: +
1: +typedef u64 (*btf_bpf_user_rnd_u32)();
1: +
1: +typedef u64 (*btf_bpf_get_raw_cpu_id)();
1: +
1: +struct _bpf_dtab_netdev {
1: + struct net_device *dev;
1: +};
1: +
1: +struct rhash_lock_head {};
1: +
1: +struct zero_copy_allocator;
1: +
1: +struct page_pool;
1: +
1: +struct xdp_mem_allocator {
1: + struct xdp_mem_info mem;
1: + union {
1: + void *allocator;
1: + struct page_pool *page_pool;
1: + struct zero_copy_allocator *zc_alloc;
1: + };
1: + struct rhash_head node;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct trace_event_raw_xdp_exception {
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_bulk_tx {
1: + struct trace_entry ent;
1: + int ifindex;
1: + u32 act;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_redirect_template {
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + int err;
1: + int to_ifindex;
1: + u32 map_id;
1: + int map_index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_cpumap_kthread {
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int sched;
1: + unsigned int xdp_pass;
1: + unsigned int xdp_drop;
1: + unsigned int xdp_redirect;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_cpumap_enqueue {
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int to_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_devmap_xmit {
1: + struct trace_entry ent;
1: + int from_ifindex;
1: + u32 act;
1: + int to_ifindex;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_disconnect {
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_connect {
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + const struct xdp_rxq_info *rxq;
1: + int ifindex;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_return_failed {
1: + struct trace_entry ent;
1: + const struct page *page;
1: + u32 mem_id;
1: + u32 mem_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_xdp_exception {};
1: +
1: +struct trace_event_data_offsets_xdp_bulk_tx {};
1: +
1: +struct trace_event_data_offsets_xdp_redirect_template {};
1: +
1: +struct trace_event_data_offsets_xdp_cpumap_kthread {};
1: +
1: +struct trace_event_data_offsets_xdp_cpumap_enqueue {};
1: +
1: +struct trace_event_data_offsets_xdp_devmap_xmit {};
1: +
1: +struct trace_event_data_offsets_mem_disconnect {};
1: +
1: +struct trace_event_data_offsets_mem_connect {};
1: +
1: +struct trace_event_data_offsets_mem_return_failed {};
1: +
1: +typedef void (*btf_trace_xdp_exception)(void *, const struct net_device *, const struct bpf_prog *, u32);
1: +
1: +typedef void (*btf_trace_xdp_bulk_tx)(void *, const struct net_device *, int, int, int);
1: +
1: +typedef void (*btf_trace_xdp_redirect)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_map)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_map_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_cpumap_kthread)(void *, int, unsigned int, unsigned int, int, struct xdp_cpumap_stats *);
1: +
1: +typedef void (*btf_trace_xdp_cpumap_enqueue)(void *, int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_xdp_devmap_xmit)(void *, const struct net_device *, const struct net_device *, int, int, int);
1: +
1: +typedef void (*btf_trace_mem_disconnect)(void *, const struct xdp_mem_allocator *);
1: +
1: +typedef void (*btf_trace_mem_connect)(void *, const struct xdp_mem_allocator *, const struct xdp_rxq_info *);
1: +
1: +typedef void (*btf_trace_mem_return_failed)(void *, const struct xdp_mem_info *, const struct page *);
1: +
1: +enum bpf_cmd {
1: + BPF_MAP_CREATE = 0,
1: + BPF_MAP_LOOKUP_ELEM = 1,
1: + BPF_MAP_UPDATE_ELEM = 2,
1: + BPF_MAP_DELETE_ELEM = 3,
1: + BPF_MAP_GET_NEXT_KEY = 4,
1: + BPF_PROG_LOAD = 5,
1: + BPF_OBJ_PIN = 6,
1: + BPF_OBJ_GET = 7,
1: + BPF_PROG_ATTACH = 8,
1: + BPF_PROG_DETACH = 9,
1: + BPF_PROG_TEST_RUN = 10,
1: + BPF_PROG_GET_NEXT_ID = 11,
1: + BPF_MAP_GET_NEXT_ID = 12,
1: + BPF_PROG_GET_FD_BY_ID = 13,
1: + BPF_MAP_GET_FD_BY_ID = 14,
1: + BPF_OBJ_GET_INFO_BY_FD = 15,
1: + BPF_PROG_QUERY = 16,
1: + BPF_RAW_TRACEPOINT_OPEN = 17,
1: + BPF_BTF_LOAD = 18,
1: + BPF_BTF_GET_FD_BY_ID = 19,
1: + BPF_TASK_FD_QUERY = 20,
1: + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21,
1: + BPF_MAP_FREEZE = 22,
1: + BPF_BTF_GET_NEXT_ID = 23,
1: + BPF_MAP_LOOKUP_BATCH = 24,
1: + BPF_MAP_LOOKUP_AND_DELETE_BATCH = 25,
1: + BPF_MAP_UPDATE_BATCH = 26,
1: + BPF_MAP_DELETE_BATCH = 27,
1: + BPF_LINK_CREATE = 28,
1: + BPF_LINK_UPDATE = 29,
1: + BPF_LINK_GET_FD_BY_ID = 30,
1: + BPF_LINK_GET_NEXT_ID = 31,
1: + BPF_ENABLE_STATS = 32,
1: + BPF_ITER_CREATE = 33,
1: + BPF_LINK_DETACH = 34,
1: + BPF_PROG_BIND_MAP = 35,
1: +};
1: +
1: +enum {
1: + BPF_ANY = 0,
1: + BPF_NOEXIST = 1,
1: + BPF_EXIST = 2,
1: + BPF_F_LOCK = 4,
1: +};
1: +
1: +enum {
1: + BPF_F_NO_PREALLOC = 1,
1: + BPF_F_NO_COMMON_LRU = 2,
1: + BPF_F_NUMA_NODE = 4,
1: + BPF_F_RDONLY = 8,
1: + BPF_F_WRONLY = 16,
1: + BPF_F_STACK_BUILD_ID = 32,
1: + BPF_F_ZERO_SEED = 64,
1: + BPF_F_RDONLY_PROG = 128,
1: + BPF_F_WRONLY_PROG = 256,
1: + BPF_F_CLONE = 512,
1: + BPF_F_MMAPABLE = 1024,
1: + BPF_F_PRESERVE_ELEMS = 2048,
1: + BPF_F_INNER_MAP = 4096,
1: +};
1: +
1: +enum bpf_stats_type {
1: + BPF_STATS_RUN_TIME = 0,
1: +};
1: +
1: +struct bpf_prog_info {
1: + __u32 type;
1: + __u32 id;
1: + __u8 tag[8];
1: + __u32 jited_prog_len;
1: + __u32 xlated_prog_len;
1: + __u64 jited_prog_insns;
1: + __u64 xlated_prog_insns;
1: + __u64 load_time;
1: + __u32 created_by_uid;
1: + __u32 nr_map_ids;
1: + __u64 map_ids;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 gpl_compatible: 1;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 nr_jited_ksyms;
1: + __u32 nr_jited_func_lens;
1: + __u64 jited_ksyms;
1: + __u64 jited_func_lens;
1: + __u32 btf_id;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 nr_func_info;
1: + __u32 nr_line_info;
1: + __u64 line_info;
1: + __u64 jited_line_info;
1: + __u32 nr_jited_line_info;
1: + __u32 line_info_rec_size;
1: + __u32 jited_line_info_rec_size;
1: + __u32 nr_prog_tags;
1: + __u64 prog_tags;
1: + __u64 run_time_ns;
1: + __u64 run_cnt;
1: +};
1: +
1: +struct bpf_map_info {
1: + __u32 type;
1: + __u32 id;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 btf_vmlinux_value_type_id;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 btf_id;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: +};
1: +
1: +struct bpf_btf_info {
1: + __u64 btf;
1: + __u32 btf_size;
1: + __u32 id;
1: +};
1: +
1: +struct bpf_spin_lock {
1: + __u32 val;
1: +};
1: +
1: +struct bpf_attach_target_info {
1: + struct btf_func_model fmodel;
1: + long int tgt_addr;
1: + const char *tgt_name;
1: + const struct btf_type *tgt_type;
1: +};
1: +
1: +struct bpf_link_primer {
1: + struct bpf_link *link;
1: + struct file *file;
1: + int fd;
1: + u32 id;
1: +};
1: +
1: +enum perf_bpf_event_type {
1: + PERF_BPF_EVENT_UNKNOWN = 0,
1: + PERF_BPF_EVENT_PROG_LOAD = 1,
1: + PERF_BPF_EVENT_PROG_UNLOAD = 2,
1: + PERF_BPF_EVENT_MAX = 3,
1: +};
1: +
1: +enum bpf_audit {
1: + BPF_AUDIT_LOAD = 0,
1: + BPF_AUDIT_UNLOAD = 1,
1: + BPF_AUDIT_MAX = 2,
1: +};
1: +
1: +struct bpf_tracing_link {
1: + struct bpf_link link;
1: + enum bpf_attach_type attach_type;
1: + struct bpf_trampoline *trampoline;
1: + struct bpf_prog *tgt_prog;
1: +};
1: +
1: +struct bpf_raw_tp_link {
1: + struct bpf_link link;
1: + struct bpf_raw_event_map *btp;
1: +};
1: +
1: +struct btf_member {
1: + __u32 name_off;
1: + __u32 type;
1: + __u32 offset;
1: +};
1: +
1: +enum btf_func_linkage {
1: + BTF_FUNC_STATIC = 0,
1: + BTF_FUNC_GLOBAL = 1,
1: + BTF_FUNC_EXTERN = 2,
1: +};
1: +
1: +struct btf_var_secinfo {
1: + __u32 type;
1: + __u32 offset;
1: + __u32 size;
1: +};
1: +
1: +enum sk_action {
1: + SK_DROP = 0,
1: + SK_PASS = 1,
1: +};
1: +
1: +struct bpf_verifier_log {
1: + u32 level;
1: + char kbuf[1024];
1: + char *ubuf;
1: + u32 len_used;
1: + u32 len_total;
1: +};
1: +
1: +struct bpf_subprog_info {
1: + u32 start;
1: + u32 linfo_idx;
1: + u16 stack_depth;
1: + bool has_tail_call;
1: + bool tail_call_reachable;
1: + bool has_ld_abs;
1: +};
1: +
1: +struct bpf_verifier_stack_elem;
1: +
1: +struct bpf_verifier_state;
1: +
1: +struct bpf_verifier_state_list;
1: +
1: +struct bpf_insn_aux_data;
1: +
1: +struct bpf_verifier_env {
1: + u32 insn_idx;
1: + u32 prev_insn_idx;
1: + struct bpf_prog *prog;
1: + const struct bpf_verifier_ops *ops;
1: + struct bpf_verifier_stack_elem *head;
1: + int stack_size;
1: + bool strict_alignment;
1: + bool test_state_freq;
1: + struct bpf_verifier_state *cur_state;
1: + struct bpf_verifier_state_list **explored_states;
1: + struct bpf_verifier_state_list *free_list;
1: + struct bpf_map *used_maps[64];
1: + u32 used_map_cnt;
1: + u32 id_gen;
1: + bool allow_ptr_leaks;
1: + bool allow_ptr_to_map_access;
1: + bool bpf_capable;
1: + bool bypass_spec_v1;
1: + bool bypass_spec_v4;
1: + bool seen_direct_write;
1: + struct bpf_insn_aux_data *insn_aux_data;
1: + const struct bpf_line_info *prev_linfo;
1: + struct bpf_verifier_log log;
1: + struct bpf_subprog_info subprog_info[257];
1: + struct {
1: + int *insn_state;
1: + int *insn_stack;
1: + int cur_stack;
1: + } cfg;
1: + u32 pass_cnt;
1: + u32 subprog_cnt;
1: + u32 prev_insn_processed;
1: + u32 insn_processed;
1: + u32 prev_jmps_processed;
1: + u32 jmps_processed;
1: + u64 verification_time;
1: + u32 max_states_per_insn;
1: + u32 total_states;
1: + u32 peak_states;
1: + u32 longest_mark_read_walk;
1: +};
1: +
1: +struct bpf_struct_ops {
1: + const struct bpf_verifier_ops *verifier_ops;
1: + int (*init)(struct btf *);
1: + int (*check_member)(const struct btf_type *, const struct btf_member *);
1: + int (*init_member)(const struct btf_type *, const struct btf_member *, void *, const void *);
1: + int (*reg)(void *);
1: + void (*unreg)(void *);
1: + const struct btf_type *type;
1: + const struct btf_type *value_type;
1: + const char *name;
1: + struct btf_func_model func_models[64];
1: + u32 type_id;
1: + u32 value_id;
1: +};
1: +
1: +typedef u32 (*bpf_convert_ctx_access_t)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: +
1: +struct tnum {
1: + u64 value;
1: + u64 mask;
1: +};
1: +
1: +enum bpf_reg_liveness {
1: + REG_LIVE_NONE = 0,
1: + REG_LIVE_READ32 = 1,
1: + REG_LIVE_READ64 = 2,
1: + REG_LIVE_READ = 3,
1: + REG_LIVE_WRITTEN = 4,
1: + REG_LIVE_DONE = 8,
1: +};
1: +
1: +struct bpf_reg_state {
1: + enum bpf_reg_type type;
1: + union {
1: + u16 range;
1: + struct bpf_map *map_ptr;
1: + u32 btf_id;
1: + u32 mem_size;
1: + long unsigned int raw;
1: + };
1: + s32 off;
1: + u32 id;
1: + u32 ref_obj_id;
1: + struct tnum var_off;
1: + s64 smin_value;
1: + s64 smax_value;
1: + u64 umin_value;
1: + u64 umax_value;
1: + s32 s32_min_value;
1: + s32 s32_max_value;
1: + u32 u32_min_value;
1: + u32 u32_max_value;
1: + struct bpf_reg_state *parent;
1: + u32 frameno;
1: + s32 subreg_def;
1: + enum bpf_reg_liveness live;
1: + bool precise;
1: +};
1: +
1: +enum bpf_stack_slot_type {
1: + STACK_INVALID = 0,
1: + STACK_SPILL = 1,
1: + STACK_MISC = 2,
1: + STACK_ZERO = 3,
1: +};
1: +
1: +struct bpf_stack_state {
1: + struct bpf_reg_state spilled_ptr;
1: + u8 slot_type[8];
1: +};
1: +
1: +struct bpf_reference_state {
1: + int id;
1: + int insn_idx;
1: +};
1: +
1: +struct bpf_func_state {
1: + struct bpf_reg_state regs[11];
1: + int callsite;
1: + u32 frameno;
1: + u32 subprogno;
1: + int acquired_refs;
1: + struct bpf_reference_state *refs;
1: + int allocated_stack;
1: + struct bpf_stack_state *stack;
1: +};
1: +
1: +struct bpf_idx_pair {
1: + u32 prev_idx;
1: + u32 idx;
1: +};
1: +
1: +struct bpf_verifier_state {
1: + struct bpf_func_state *frame[8];
1: + struct bpf_verifier_state *parent;
1: + u32 branches;
1: + u32 insn_idx;
1: + u32 curframe;
1: + u32 active_spin_lock;
1: + bool speculative;
1: + u32 first_insn_idx;
1: + u32 last_insn_idx;
1: + struct bpf_idx_pair *jmp_history;
1: + u32 jmp_history_cnt;
1: +};
1: +
1: +struct bpf_verifier_state_list {
1: + struct bpf_verifier_state state;
1: + struct bpf_verifier_state_list *next;
1: + int miss_cnt;
1: + int hit_cnt;
1: +};
1: +
1: +struct bpf_insn_aux_data {
1: + union {
1: + enum bpf_reg_type ptr_type;
1: + long unsigned int map_ptr_state;
1: + s32 call_imm;
1: + u32 alu_limit;
1: + struct {
1: + u32 map_index;
1: + u32 map_off;
1: + };
1: + struct {
1: + enum bpf_reg_type reg_type;
1: + union {
1: + u32 btf_id;
1: + u32 mem_size;
1: + };
1: + } btf_var;
1: + };
1: + u64 map_key_state;
1: + int ctx_field_size;
1: + int sanitize_stack_off;
1: + u32 seen;
1: + bool zext_dst;
1: + u8 alu_state;
1: + unsigned int orig_idx;
1: + bool prune_point;
1: +};
1: +
1: +struct bpf_verifier_stack_elem {
1: + struct bpf_verifier_state st;
1: + int insn_idx;
1: + int prev_insn_idx;
1: + struct bpf_verifier_stack_elem *next;
1: + u32 log_pos;
1: +};
1: +
1: +enum {
1: + BTF_SOCK_TYPE_INET = 0,
1: + BTF_SOCK_TYPE_INET_CONN = 1,
1: + BTF_SOCK_TYPE_INET_REQ = 2,
1: + BTF_SOCK_TYPE_INET_TW = 3,
1: + BTF_SOCK_TYPE_REQ = 4,
1: + BTF_SOCK_TYPE_SOCK = 5,
1: + BTF_SOCK_TYPE_SOCK_COMMON = 6,
1: + BTF_SOCK_TYPE_TCP = 7,
1: + BTF_SOCK_TYPE_TCP_REQ = 8,
1: + BTF_SOCK_TYPE_TCP_TW = 9,
1: + BTF_SOCK_TYPE_TCP6 = 10,
1: + BTF_SOCK_TYPE_UDP = 11,
1: + BTF_SOCK_TYPE_UDP6 = 12,
1: + MAX_BTF_SOCK_TYPE = 13,
1: +};
1: +
1: +typedef void (*bpf_insn_print_t)(void *, const char *, ...);
1: +
1: +typedef const char * (*bpf_insn_revmap_call_t)(void *, const struct bpf_insn *);
1: +
1: +typedef const char * (*bpf_insn_print_imm_t)(void *, const struct bpf_insn *, __u64);
1: +
1: +struct bpf_insn_cbs {
1: + bpf_insn_print_t cb_print;
1: + bpf_insn_revmap_call_t cb_call;
1: + bpf_insn_print_imm_t cb_imm;
1: + void *private_data;
1: +};
1: +
1: +struct bpf_call_arg_meta {
1: + struct bpf_map *map_ptr;
1: + bool raw_mode;
1: + bool pkt_access;
1: + int regno;
1: + int access_size;
1: + int mem_size;
1: + u64 msize_max_value;
1: + int ref_obj_id;
1: + int func_id;
1: + u32 btf_id;
1: + u32 ret_btf_id;
1: +};
1: +
1: +enum reg_arg_type {
1: + SRC_OP = 0,
1: + DST_OP = 1,
1: + DST_OP_NO_MARK = 2,
1: +};
1: +
1: +struct bpf_reg_types {
1: + const enum bpf_reg_type types[10];
1: + u32 *btf_id;
1: +};
1: +
1: +enum {
1: + DISCOVERED = 16,
1: + EXPLORED = 32,
1: + FALLTHROUGH = 1,
1: + BRANCH = 2,
1: +};
1: +
1: +struct idpair {
1: + u32 old;
1: + u32 cur;
1: +};
1: +
1: +struct tree_descr {
1: + const char *name;
1: + const struct file_operations *ops;
1: + int mode;
1: +};
1: +
1: +struct bpf_preload_info {
1: + char link_name[16];
1: + int link_id;
1: +};
1: +
1: +struct bpf_preload_ops {
1: + struct umd_info info;
1: + int (*preload)(struct bpf_preload_info *);
1: + int (*finish)();
1: + struct module *owner;
1: +};
1: +
1: +enum bpf_type {
1: + BPF_TYPE_UNSPEC = 0,
1: + BPF_TYPE_PROG = 1,
1: + BPF_TYPE_MAP = 2,
1: + BPF_TYPE_LINK = 3,
1: +};
1: +
1: +struct map_iter {
1: + void *key;
1: + bool done;
1: +};
1: +
1: +enum {
1: + OPT_MODE = 0,
1: +};
1: +
1: +struct bpf_mount_opts {
1: + umode_t mode;
1: +};
1: +
1: +struct bpf_pidns_info {
1: + __u32 pid;
1: + __u32 tgid;
1: +};
1: +
1: +typedef u64 (*btf_bpf_map_lookup_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_update_elem)(struct bpf_map *, void *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_map_delete_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_push_elem)(struct bpf_map *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_map_pop_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_peek_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_get_smp_processor_id)();
1: +
1: +typedef u64 (*btf_bpf_get_numa_node_id)();
1: +
1: +typedef u64 (*btf_bpf_ktime_get_ns)();
1: +
1: +typedef u64 (*btf_bpf_ktime_get_boot_ns)();
1: +
1: +typedef u64 (*btf_bpf_get_current_pid_tgid)();
1: +
1: +typedef u64 (*btf_bpf_get_current_uid_gid)();
1: +
1: +typedef u64 (*btf_bpf_get_current_comm)(char *, u32);
1: +
1: +typedef u64 (*btf_bpf_spin_lock)(struct bpf_spin_lock *);
1: +
1: +typedef u64 (*btf_bpf_spin_unlock)(struct bpf_spin_lock *);
1: +
1: +typedef u64 (*btf_bpf_jiffies64)();
1: +
1: +typedef u64 (*btf_bpf_get_current_cgroup_id)();
1: +
1: +typedef u64 (*btf_bpf_get_current_ancestor_cgroup_id)(int);
1: +
1: +typedef u64 (*btf_bpf_get_local_storage)(struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_strtol)(const char *, size_t, u64, long int *);
1: +
1: +typedef u64 (*btf_bpf_strtoul)(const char *, size_t, u64, long unsigned int *);
1: +
1: +typedef u64 (*btf_bpf_get_ns_current_pid_tgid)(u64, u64, struct bpf_pidns_info *, u32);
1: +
1: +typedef u64 (*btf_bpf_event_output_data)(void *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_copy_from_user)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_per_cpu_ptr)(const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_this_cpu_ptr)(const void *);
1: +
1: +union bpf_iter_link_info {
1: + struct {
1: + __u32 map_fd;
1: + } map;
1: +};
1: +
1: +typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *, union bpf_iter_link_info *, struct bpf_iter_aux_info *);
1: +
1: +typedef void (*bpf_iter_detach_target_t)(struct bpf_iter_aux_info *);
1: +
1: +typedef void (*bpf_iter_show_fdinfo_t)(const struct bpf_iter_aux_info *, struct seq_file *);
1: +
1: +typedef int (*bpf_iter_fill_link_info_t)(const struct bpf_iter_aux_info *, struct bpf_link_info *);
1: +
1: +struct bpf_iter_reg {
1: + const char *target;
1: + bpf_iter_attach_target_t attach_target;
1: + bpf_iter_detach_target_t detach_target;
1: + bpf_iter_show_fdinfo_t show_fdinfo;
1: + bpf_iter_fill_link_info_t fill_link_info;
1: + u32 ctx_arg_info_size;
1: + struct bpf_ctx_arg_aux ctx_arg_info[2];
1: + const struct bpf_iter_seq_info *seq_info;
1: +};
1: +
1: +struct bpf_iter_meta {
1: + union {
1: + struct seq_file *seq;
1: + };
1: + u64 session_id;
1: + u64 seq_num;
1: +};
1: +
1: +struct bpf_iter_target_info {
1: + struct list_head list;
1: + const struct bpf_iter_reg *reg_info;
1: + u32 btf_id;
1: +};
1: +
1: +struct bpf_iter_link {
1: + struct bpf_link link;
1: + struct bpf_iter_aux_info aux;
1: + struct bpf_iter_target_info *tinfo;
1: +};
1: +
1: +struct bpf_iter_priv_data {
1: + struct bpf_iter_target_info *tinfo;
1: + const struct bpf_iter_seq_info *seq_info;
1: + struct bpf_prog *prog;
1: + u64 session_id;
1: + u64 seq_num;
1: + bool done_stop;
1: + long: 56;
1: + u8 target_private[0];
1: +};
1: +
1: +struct bpf_iter_seq_map_info {
1: + u32 map_id;
1: +};
1: +
1: +struct bpf_iter__bpf_map {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_task_common {
1: + struct pid_namespace *ns;
1: +};
1: +
1: +struct bpf_iter_seq_task_info {
1: + struct bpf_iter_seq_task_common common;
1: + u32 tid;
1: +};
1: +
1: +struct bpf_iter__task {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_task_file_info {
1: + struct bpf_iter_seq_task_common common;
1: + struct task_struct *task;
1: + struct files_struct *files;
1: + u32 tid;
1: + u32 fd;
1: +};
1: +
1: +struct bpf_iter__task_file {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: + u32 fd;
1: + union {
1: + struct file *file;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_prog_info {
1: + u32 prog_id;
1: +};
1: +
1: +struct bpf_iter__bpf_prog {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_prog *prog;
1: + };
1: +};
1: +
1: +struct bpf_iter__bpf_map_elem {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + void *key;
1: + };
1: + union {
1: + void *value;
1: + };
1: +};
1: +
1: +struct pcpu_freelist_node;
1: +
1: +struct pcpu_freelist_head {
1: + struct pcpu_freelist_node *first;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct pcpu_freelist_node {
1: + struct pcpu_freelist_node *next;
1: +};
1: +
1: +struct pcpu_freelist {
1: + struct pcpu_freelist_head *freelist;
1: + struct pcpu_freelist_head extralist;
1: +};
1: +
1: +struct bpf_lru_node {
1: + struct list_head list;
1: + u16 cpu;
1: + u8 type;
1: + u8 ref;
1: +};
1: +
1: +struct bpf_lru_list {
1: + struct list_head lists[3];
1: + unsigned int counts[2];
1: + struct list_head *next_inactive_rotation;
1: + raw_spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_lru_locallist {
1: + struct list_head lists[2];
1: + u16 next_steal;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_common_lru {
1: + struct bpf_lru_list lru_list;
1: + struct bpf_lru_locallist *local_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef bool (*del_from_htab_func)(void *, struct bpf_lru_node *);
1: +
1: +struct bpf_lru {
1: + union {
1: + struct bpf_common_lru common_lru;
1: + struct bpf_lru_list *percpu_lru;
1: + };
1: + del_from_htab_func del_from_htab;
1: + void *del_arg;
1: + unsigned int hash_offset;
1: + unsigned int nr_scans;
1: + bool percpu;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bucket {
1: + struct hlist_nulls_head head;
1: + union {
1: + raw_spinlock_t raw_lock;
1: + spinlock_t lock;
1: + };
1: +};
1: +
1: +struct htab_elem;
1: +
1: +struct bpf_htab {
1: + struct bpf_map map;
1: + struct bucket *buckets;
1: + void *elems;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct pcpu_freelist freelist;
1: + struct bpf_lru lru;
1: + };
1: + struct htab_elem **extra_elems;
1: + atomic_t count;
1: + u32 n_buckets;
1: + u32 elem_size;
1: + u32 hashrnd;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct htab_elem {
1: + union {
1: + struct hlist_nulls_node hash_node;
1: + struct {
1: + void *padding;
1: + union {
1: + struct bpf_htab *htab;
1: + struct pcpu_freelist_node fnode;
1: + struct htab_elem *batch_flink;
1: + };
1: + };
1: + };
1: + union {
1: + struct callback_head rcu;
1: + struct bpf_lru_node lru_node;
1: + };
1: + u32 hash;
1: + int: 32;
1: + char key[0];
1: +};
1: +
1: +struct bpf_iter_seq_hash_map_info {
1: + struct bpf_map *map;
1: + struct bpf_htab *htab;
1: + void *percpu_value_buf;
1: + u32 bucket_id;
1: + u32 skip_elems;
1: +};
1: +
1: +struct bpf_iter_seq_array_map_info {
1: + struct bpf_map *map;
1: + void *percpu_value_buf;
1: + u32 index;
1: +};
1: +
1: +struct prog_poke_elem {
1: + struct list_head list;
1: + struct bpf_prog_aux *aux;
1: +};
1: +
1: +enum bpf_lru_list_type {
1: + BPF_LRU_LIST_T_ACTIVE = 0,
1: + BPF_LRU_LIST_T_INACTIVE = 1,
1: + BPF_LRU_LIST_T_FREE = 2,
1: + BPF_LRU_LOCAL_LIST_T_FREE = 3,
1: + BPF_LRU_LOCAL_LIST_T_PENDING = 4,
1: +};
1: +
1: +struct bpf_lpm_trie_key {
1: + __u32 prefixlen;
1: + __u8 data[0];
1: +};
1: +
1: +struct lpm_trie_node {
1: + struct callback_head rcu;
1: + struct lpm_trie_node *child[2];
1: + u32 prefixlen;
1: + u32 flags;
1: + u8 data[0];
1: +};
1: +
1: +struct lpm_trie {
1: + struct bpf_map map;
1: + struct lpm_trie_node *root;
1: + size_t n_entries;
1: + size_t max_prefixlen;
1: + size_t data_size;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cgroup_storage_map {
1: + struct bpf_map map;
1: + spinlock_t lock;
1: + struct rb_root root;
1: + struct list_head list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_queue_stack {
1: + struct bpf_map map;
1: + raw_spinlock_t lock;
1: + u32 head;
1: + u32 tail;
1: + u32 size;
1: + char elements[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum {
1: + BPF_RB_NO_WAKEUP = 1,
1: + BPF_RB_FORCE_WAKEUP = 2,
1: +};
1: +
1: +enum {
1: + BPF_RB_AVAIL_DATA = 0,
1: + BPF_RB_RING_SIZE = 1,
1: + BPF_RB_CONS_POS = 2,
1: + BPF_RB_PROD_POS = 3,
1: +};
1: +
1: +enum {
1: + BPF_RINGBUF_BUSY_BIT = 2147483648,
1: + BPF_RINGBUF_DISCARD_BIT = 1073741824,
1: + BPF_RINGBUF_HDR_SZ = 8,
1: +};
1: +
1: +struct bpf_ringbuf {
1: + wait_queue_head_t waitq;
1: + struct irq_work work;
1: + u64 mask;
1: + struct page **pages;
1: + int nr_pages;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t spinlock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int consumer_pos;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int producer_pos;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + char data[0];
1: +};
1: +
1: +struct bpf_ringbuf_map {
1: + struct bpf_map map;
1: + struct bpf_map_memory memory;
1: + struct bpf_ringbuf *rb;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_ringbuf_hdr {
1: + u32 len;
1: + u32 pg_off;
1: +};
1: +
1: +typedef u64 (*btf_bpf_ringbuf_reserve)(struct bpf_map *, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_submit)(void *, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_discard)(void *, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_output)(struct bpf_map *, void *, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_query)(struct bpf_map *, u64);
1: +
1: +enum {
1: + BPF_LOCAL_STORAGE_GET_F_CREATE = 1,
1: + BPF_SK_STORAGE_GET_F_CREATE = 1,
1: +};
1: +
1: +struct bpf_local_storage_map_bucket;
1: +
1: +struct bpf_local_storage_map {
1: + struct bpf_map map;
1: + struct bpf_local_storage_map_bucket *buckets;
1: + u32 bucket_log;
1: + u16 elem_size;
1: + u16 cache_idx;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_local_storage_data;
1: +
1: +struct bpf_local_storage {
1: + struct bpf_local_storage_data *cache[16];
1: + struct hlist_head list;
1: + void *owner;
1: + struct callback_head rcu;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_local_storage_map_bucket {
1: + struct hlist_head list;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_local_storage_data {
1: + struct bpf_local_storage_map *smap;
1: + u8 data[0];
1: +};
1: +
1: +struct bpf_local_storage_elem {
1: + struct hlist_node map_node;
1: + struct hlist_node snode;
1: + struct bpf_local_storage *local_storage;
1: + struct callback_head rcu;
1: + long: 64;
1: + struct bpf_local_storage_data sdata;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_local_storage_cache {
1: + spinlock_t idx_lock;
1: + u64 idx_usage_counts[16];
1: +};
1: +
1: +struct lsm_blob_sizes {
1: + int lbs_cred;
1: + int lbs_file;
1: + int lbs_inode;
1: + int lbs_ipc;
1: + int lbs_msg_msg;
1: + int lbs_task;
1: +};
1: +
1: +struct bpf_storage_blob {
1: + struct bpf_local_storage *storage;
1: +};
1: +
1: +typedef u64 (*btf_bpf_inode_storage_get)(struct bpf_map *, struct inode *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_inode_storage_delete)(struct bpf_map *, struct inode *);
1: +
1: +struct bpf_tramp_progs {
1: + struct bpf_prog *progs[40];
1: + int nr_progs;
1: +};
1: +
1: +struct btf_enum {
1: + __u32 name_off;
1: + __s32 val;
1: +};
1: +
1: +struct btf_array {
1: + __u32 type;
1: + __u32 index_type;
1: + __u32 nelems;
1: +};
1: +
1: +struct btf_param {
1: + __u32 name_off;
1: + __u32 type;
1: +};
1: +
1: +enum {
1: + BTF_VAR_STATIC = 0,
1: + BTF_VAR_GLOBAL_ALLOCATED = 1,
1: + BTF_VAR_GLOBAL_EXTERN = 2,
1: +};
1: +
1: +struct btf_var {
1: + __u32 linkage;
1: +};
1: +
1: +struct bpf_flow_keys {
1: + __u16 nhoff;
1: + __u16 thoff;
1: + __u16 addr_proto;
1: + __u8 is_frag;
1: + __u8 is_first_frag;
1: + __u8 is_encap;
1: + __u8 ip_proto;
1: + __be16 n_proto;
1: + __be16 sport;
1: + __be16 dport;
1: + union {
1: + struct {
1: + __be32 ipv4_src;
1: + __be32 ipv4_dst;
1: + };
1: + struct {
1: + __u32 ipv6_src[4];
1: + __u32 ipv6_dst[4];
1: + };
1: + };
1: + __u32 flags;
1: + __be32 flow_label;
1: +};
1: +
1: +struct bpf_sock {
1: + __u32 bound_dev_if;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 mark;
1: + __u32 priority;
1: + __u32 src_ip4;
1: + __u32 src_ip6[4];
1: + __u32 src_port;
1: + __u32 dst_port;
1: + __u32 dst_ip4;
1: + __u32 dst_ip6[4];
1: + __u32 state;
1: + __s32 rx_queue_mapping;
1: +};
1: +
1: +struct __sk_buff {
1: + __u32 len;
1: + __u32 pkt_type;
1: + __u32 mark;
1: + __u32 queue_mapping;
1: + __u32 protocol;
1: + __u32 vlan_present;
1: + __u32 vlan_tci;
1: + __u32 vlan_proto;
1: + __u32 priority;
1: + __u32 ingress_ifindex;
1: + __u32 ifindex;
1: + __u32 tc_index;
1: + __u32 cb[5];
1: + __u32 hash;
1: + __u32 tc_classid;
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 napi_id;
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 data_meta;
1: + union {
1: + struct bpf_flow_keys *flow_keys;
1: + };
1: + __u64 tstamp;
1: + __u32 wire_len;
1: + __u32 gso_segs;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 gso_size;
1: +};
1: +
1: +struct xdp_md {
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 data_meta;
1: + __u32 ingress_ifindex;
1: + __u32 rx_queue_index;
1: + __u32 egress_ifindex;
1: +};
1: +
1: +struct sk_msg_md {
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 size;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: +};
1: +
1: +struct sk_reuseport_md {
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 len;
1: + __u32 eth_protocol;
1: + __u32 ip_protocol;
1: + __u32 bind_inany;
1: + __u32 hash;
1: +};
1: +
1: +struct bpf_sock_addr {
1: + __u32 user_family;
1: + __u32 user_ip4;
1: + __u32 user_ip6[4];
1: + __u32 user_port;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 msg_src_ip4;
1: + __u32 msg_src_ip6[4];
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: +};
1: +
1: +struct bpf_sock_ops {
1: + __u32 op;
1: + union {
1: + __u32 args[4];
1: + __u32 reply;
1: + __u32 replylong[4];
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 is_fullsock;
1: + __u32 snd_cwnd;
1: + __u32 srtt_us;
1: + __u32 bpf_sock_ops_cb_flags;
1: + __u32 state;
1: + __u32 rtt_min;
1: + __u32 snd_ssthresh;
1: + __u32 rcv_nxt;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 mss_cache;
1: + __u32 ecn_flags;
1: + __u32 rate_delivered;
1: + __u32 rate_interval_us;
1: + __u32 packets_out;
1: + __u32 retrans_out;
1: + __u32 total_retrans;
1: + __u32 segs_in;
1: + __u32 data_segs_in;
1: + __u32 segs_out;
1: + __u32 data_segs_out;
1: + __u32 lost_out;
1: + __u32 sacked_out;
1: + __u32 sk_txhash;
1: + __u64 bytes_received;
1: + __u64 bytes_acked;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *skb_data;
1: + };
1: + union {
1: + void *skb_data_end;
1: + };
1: + __u32 skb_len;
1: + __u32 skb_tcp_flags;
1: +};
1: +
1: +struct bpf_cgroup_dev_ctx {
1: + __u32 access_type;
1: + __u32 major;
1: + __u32 minor;
1: +};
1: +
1: +struct bpf_sysctl {
1: + __u32 write;
1: + __u32 file_pos;
1: +};
1: +
1: +struct bpf_sockopt {
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *optval;
1: + };
1: + union {
1: + void *optval_end;
1: + };
1: + __s32 level;
1: + __s32 optname;
1: + __s32 optlen;
1: + __s32 retval;
1: +};
1: +
1: +struct bpf_sk_lookup {
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 family;
1: + __u32 protocol;
1: + __u32 remote_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_ip4;
1: + __u32 local_ip6[4];
1: + __u32 local_port;
1: +};
1: +
1: +struct sk_reuseport_kern {
1: + struct sk_buff *skb;
1: + struct sock *sk;
1: + struct sock *selected_sk;
1: + void *data_end;
1: + u32 hash;
1: + u32 reuseport_id;
1: + bool bind_inany;
1: +};
1: +
1: +struct bpf_flow_dissector {
1: + struct bpf_flow_keys *flow_keys;
1: + const struct sk_buff *skb;
1: + void *data;
1: + void *data_end;
1: +};
1: +
1: +struct inet_listen_hashbucket {
1: + spinlock_t lock;
1: + unsigned int count;
1: + union {
1: + struct hlist_head head;
1: + struct hlist_nulls_head nulls_head;
1: + };
1: +};
1: +
1: +struct inet_ehash_bucket;
1: +
1: +struct inet_bind_hashbucket;
1: +
1: +struct inet_hashinfo {
1: + struct inet_ehash_bucket *ehash;
1: + spinlock_t *ehash_locks;
1: + unsigned int ehash_mask;
1: + unsigned int ehash_locks_mask;
1: + struct kmem_cache *bind_bucket_cachep;
1: + struct inet_bind_hashbucket *bhash;
1: + unsigned int bhash_size;
1: + unsigned int lhash2_mask;
1: + struct inet_listen_hashbucket *lhash2;
1: + long: 64;
1: + struct inet_listen_hashbucket listening_hash[32];
1: +};
1: +
1: +struct ip_ra_chain {
1: + struct ip_ra_chain *next;
1: + struct sock *sk;
1: + union {
1: + void (*destructor)(struct sock *);
1: + struct sock *saved_sk;
1: + };
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_table {
1: + struct hlist_node tb_hlist;
1: + u32 tb_id;
1: + int tb_num_default;
1: + struct callback_head rcu;
1: + long unsigned int *tb_data;
1: + long unsigned int __data[0];
1: +};
1: +
1: +struct inet_peer_base {
1: + struct rb_root rb_root;
1: + seqlock_t lock;
1: + int total;
1: +};
1: +
1: +struct tcp_fastopen_context {
1: + siphash_key_t key[2];
1: + int num;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct xdp_txq_info {
1: + struct net_device *dev;
1: +};
1: +
1: +struct xdp_buff {
1: + void *data;
1: + void *data_end;
1: + void *data_meta;
1: + void *data_hard_start;
1: + struct xdp_rxq_info *rxq;
1: + struct xdp_txq_info *txq;
1: + u32 frame_sz;
1: +};
1: +
1: +struct bpf_sock_addr_kern {
1: + struct sock *sk;
1: + struct sockaddr *uaddr;
1: + u64 tmp_reg;
1: + void *t_ctx;
1: +};
1: +
1: +struct bpf_sock_ops_kern {
1: + struct sock *sk;
1: + union {
1: + u32 args[4];
1: + u32 reply;
1: + u32 replylong[4];
1: + };
1: + struct sk_buff *syn_skb;
1: + struct sk_buff *skb;
1: + void *skb_data_end;
1: + u8 op;
1: + u8 is_fullsock;
1: + u8 remaining_opt_len;
1: + u64 temp;
1: +};
1: +
1: +struct bpf_sysctl_kern {
1: + struct ctl_table_header *head;
1: + struct ctl_table *table;
1: + void *cur_val;
1: + size_t cur_len;
1: + void *new_val;
1: + size_t new_len;
1: + int new_updated;
1: + int write;
1: + loff_t *ppos;
1: + u64 tmp_reg;
1: +};
1: +
1: +struct bpf_sockopt_kern {
1: + struct sock *sk;
1: + u8 *optval;
1: + u8 *optval_end;
1: + s32 level;
1: + s32 optname;
1: + s32 optlen;
1: + s32 retval;
1: +};
1: +
1: +struct bpf_sk_lookup_kern {
1: + u16 family;
1: + u16 protocol;
1: + __be16 sport;
1: + u16 dport;
1: + struct {
1: + __be32 saddr;
1: + __be32 daddr;
1: + } v4;
1: + struct {
1: + const struct in6_addr *saddr;
1: + const struct in6_addr *daddr;
1: + } v6;
1: + struct sock *selected_sk;
1: + bool no_reuseport;
1: +};
1: +
1: +struct sock_reuseport {
1: + struct callback_head rcu;
1: + u16 max_socks;
1: + u16 num_socks;
1: + unsigned int synq_overflow_ts;
1: + unsigned int reuseport_id;
1: + unsigned int bind_inany: 1;
1: + unsigned int has_conns: 1;
1: + struct bpf_prog *prog;
1: + struct sock *socks[0];
1: +};
1: +
1: +struct inet_ehash_bucket {
1: + struct hlist_nulls_head chain;
1: +};
1: +
1: +struct inet_bind_hashbucket {
1: + spinlock_t lock;
1: + struct hlist_head chain;
1: +};
1: +
1: +struct ack_sample {
1: + u32 pkts_acked;
1: + s32 rtt_us;
1: + u32 in_flight;
1: +};
1: +
1: +struct rate_sample {
1: + u64 prior_mstamp;
1: + u32 prior_delivered;
1: + s32 delivered;
1: + long int interval_us;
1: + u32 snd_interval_us;
1: + u32 rcv_interval_us;
1: + long int rtt_us;
1: + int losses;
1: + u32 acked_sacked;
1: + u32 prior_in_flight;
1: + bool is_app_limited;
1: + bool is_retrans;
1: + bool is_ack_delayed;
1: +};
1: +
1: +struct sk_msg_sg {
1: + u32 start;
1: + u32 curr;
1: + u32 end;
1: + u32 size;
1: + u32 copybreak;
1: + long unsigned int copy;
1: + struct scatterlist data[19];
1: +};
1: +
1: +struct sk_msg {
1: + struct sk_msg_sg sg;
1: + void *data;
1: + void *data_end;
1: + u32 apply_bytes;
1: + u32 cork_bytes;
1: + u32 flags;
1: + struct sk_buff *skb;
1: + struct sock *sk_redir;
1: + struct sock *sk;
1: + struct list_head list;
1: +};
1: +
1: +enum verifier_phase {
1: + CHECK_META = 0,
1: + CHECK_TYPE = 1,
1: +};
1: +
1: +struct resolve_vertex {
1: + const struct btf_type *t;
1: + u32 type_id;
1: + u16 next_member;
1: +};
1: +
1: +enum visit_state {
1: + NOT_VISITED = 0,
1: + VISITED = 1,
1: + RESOLVED = 2,
1: +};
1: +
1: +enum resolve_mode {
1: + RESOLVE_TBD = 0,
1: + RESOLVE_PTR = 1,
1: + RESOLVE_STRUCT_OR_ARRAY = 2,
1: +};
1: +
1: +struct btf_sec_info {
1: + u32 off;
1: + u32 len;
1: +};
1: +
1: +struct btf_verifier_env {
1: + struct btf *btf;
1: + u8 *visit_states;
1: + struct resolve_vertex stack[32];
1: + struct bpf_verifier_log log;
1: + u32 log_type_id;
1: + u32 top_stack;
1: + enum verifier_phase phase;
1: + enum resolve_mode resolve_mode;
1: +};
1: +
1: +struct btf_show {
1: + u64 flags;
1: + void *target;
1: + void (*showfn)(struct btf_show *, const char *, va_list);
1: + const struct btf *btf;
1: + struct {
1: + u8 depth;
1: + u8 depth_to_show;
1: + u8 depth_check;
1: + u8 array_member: 1;
1: + u8 array_terminated: 1;
1: + u16 array_encoding;
1: + u32 type_id;
1: + int status;
1: + const struct btf_type *type;
1: + const struct btf_member *member;
1: + char name[80];
1: + } state;
1: + struct {
1: + u32 size;
1: + void *head;
1: + void *data;
1: + u8 safe[32];
1: + } obj;
1: +};
1: +
1: +struct btf_kind_operations {
1: + s32 (*check_meta)(struct btf_verifier_env *, const struct btf_type *, u32);
1: + int (*resolve)(struct btf_verifier_env *, const struct resolve_vertex *);
1: + int (*check_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: + int (*check_kflag_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: + void (*log_details)(struct btf_verifier_env *, const struct btf_type *);
1: + void (*show)(const struct btf *, const struct btf_type *, u32, void *, u8, struct btf_show *);
1: +};
1: +
1: +struct bpf_ctx_convert {
1: + struct __sk_buff BPF_PROG_TYPE_SOCKET_FILTER_prog;
1: + struct sk_buff BPF_PROG_TYPE_SOCKET_FILTER_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_CLS_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_CLS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_ACT_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_ACT_kern;
1: + struct xdp_md BPF_PROG_TYPE_XDP_prog;
1: + struct xdp_buff BPF_PROG_TYPE_XDP_kern;
1: + struct __sk_buff BPF_PROG_TYPE_CGROUP_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_CGROUP_SKB_kern;
1: + struct bpf_sock BPF_PROG_TYPE_CGROUP_SOCK_prog;
1: + struct sock BPF_PROG_TYPE_CGROUP_SOCK_kern;
1: + struct bpf_sock_addr BPF_PROG_TYPE_CGROUP_SOCK_ADDR_prog;
1: + struct bpf_sock_addr_kern BPF_PROG_TYPE_CGROUP_SOCK_ADDR_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_IN_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_IN_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_OUT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_OUT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_XMIT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_XMIT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_kern;
1: + struct bpf_sock_ops BPF_PROG_TYPE_SOCK_OPS_prog;
1: + struct bpf_sock_ops_kern BPF_PROG_TYPE_SOCK_OPS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SK_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_SK_SKB_kern;
1: + struct sk_msg_md BPF_PROG_TYPE_SK_MSG_prog;
1: + struct sk_msg BPF_PROG_TYPE_SK_MSG_kern;
1: + struct __sk_buff BPF_PROG_TYPE_FLOW_DISSECTOR_prog;
1: + struct bpf_flow_dissector BPF_PROG_TYPE_FLOW_DISSECTOR_kern;
1: + bpf_user_pt_regs_t BPF_PROG_TYPE_KPROBE_prog;
1: + struct pt_regs BPF_PROG_TYPE_KPROBE_kern;
1: + __u64 BPF_PROG_TYPE_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_TRACEPOINT_kern;
1: + struct bpf_perf_event_data BPF_PROG_TYPE_PERF_EVENT_prog;
1: + struct bpf_perf_event_data_kern BPF_PROG_TYPE_PERF_EVENT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_kern;
1: + void *BPF_PROG_TYPE_TRACING_prog;
1: + void *BPF_PROG_TYPE_TRACING_kern;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_prog;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_kern;
1: + struct bpf_sysctl BPF_PROG_TYPE_CGROUP_SYSCTL_prog;
1: + struct bpf_sysctl_kern BPF_PROG_TYPE_CGROUP_SYSCTL_kern;
1: + struct bpf_sockopt BPF_PROG_TYPE_CGROUP_SOCKOPT_prog;
1: + struct bpf_sockopt_kern BPF_PROG_TYPE_CGROUP_SOCKOPT_kern;
1: + struct sk_reuseport_md BPF_PROG_TYPE_SK_REUSEPORT_prog;
1: + struct sk_reuseport_kern BPF_PROG_TYPE_SK_REUSEPORT_kern;
1: + struct bpf_sk_lookup BPF_PROG_TYPE_SK_LOOKUP_prog;
1: + struct bpf_sk_lookup_kern BPF_PROG_TYPE_SK_LOOKUP_kern;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_prog;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_kern;
1: + void *BPF_PROG_TYPE_EXT_prog;
1: + void *BPF_PROG_TYPE_EXT_kern;
1: + void *BPF_PROG_TYPE_LSM_prog;
1: + void *BPF_PROG_TYPE_LSM_kern;
1: +};
1: +
1: +enum {
1: + __ctx_convertBPF_PROG_TYPE_SOCKET_FILTER = 0,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_CLS = 1,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_ACT = 2,
1: + __ctx_convertBPF_PROG_TYPE_XDP = 3,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SKB = 4,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK = 5,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK_ADDR = 6,
1: + __ctx_convertBPF_PROG_TYPE_LWT_IN = 7,
1: + __ctx_convertBPF_PROG_TYPE_LWT_OUT = 8,
1: + __ctx_convertBPF_PROG_TYPE_LWT_XMIT = 9,
1: + __ctx_convertBPF_PROG_TYPE_LWT_SEG6LOCAL = 10,
1: + __ctx_convertBPF_PROG_TYPE_SOCK_OPS = 11,
1: + __ctx_convertBPF_PROG_TYPE_SK_SKB = 12,
1: + __ctx_convertBPF_PROG_TYPE_SK_MSG = 13,
1: + __ctx_convertBPF_PROG_TYPE_FLOW_DISSECTOR = 14,
1: + __ctx_convertBPF_PROG_TYPE_KPROBE = 15,
1: + __ctx_convertBPF_PROG_TYPE_TRACEPOINT = 16,
1: + __ctx_convertBPF_PROG_TYPE_PERF_EVENT = 17,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT = 18,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 19,
1: + __ctx_convertBPF_PROG_TYPE_TRACING = 20,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_DEVICE = 21,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SYSCTL = 22,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCKOPT = 23,
1: + __ctx_convertBPF_PROG_TYPE_SK_REUSEPORT = 24,
1: + __ctx_convertBPF_PROG_TYPE_SK_LOOKUP = 25,
1: + __ctx_convertBPF_PROG_TYPE_STRUCT_OPS = 26,
1: + __ctx_convertBPF_PROG_TYPE_EXT = 27,
1: + __ctx_convertBPF_PROG_TYPE_LSM = 28,
1: + __ctx_convert_unused = 29,
1: +};
1: +
1: +enum bpf_struct_walk_result {
1: + WALK_SCALAR = 0,
1: + WALK_PTR = 1,
1: + WALK_STRUCT = 2,
1: +};
1: +
1: +struct btf_show_snprintf {
1: + struct btf_show show;
1: + int len_left;
1: + int len;
1: +};
1: +
1: +struct bpf_dispatcher_prog {
1: + struct bpf_prog *prog;
1: + refcount_t users;
1: +};
1: +
1: +struct bpf_dispatcher {
1: + struct mutex mutex;
1: + void *func;
1: + struct bpf_dispatcher_prog progs[48];
1: + int num_progs;
1: + void *image;
1: + u32 image_off;
1: + struct bpf_ksym ksym;
1: +};
1: +
1: +struct bpf_devmap_val {
1: + __u32 ifindex;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: +};
1: +
1: +enum net_device_flags {
1: + IFF_UP = 1,
1: + IFF_BROADCAST = 2,
1: + IFF_DEBUG = 4,
1: + IFF_LOOPBACK = 8,
1: + IFF_POINTOPOINT = 16,
1: + IFF_NOTRAILERS = 32,
1: + IFF_RUNNING = 64,
1: + IFF_NOARP = 128,
1: + IFF_PROMISC = 256,
1: + IFF_ALLMULTI = 512,
1: + IFF_MASTER = 1024,
1: + IFF_SLAVE = 2048,
1: + IFF_MULTICAST = 4096,
1: + IFF_PORTSEL = 8192,
1: + IFF_AUTOMEDIA = 16384,
1: + IFF_DYNAMIC = 32768,
1: + IFF_LOWER_UP = 65536,
1: + IFF_DORMANT = 131072,
1: + IFF_ECHO = 262144,
1: +};
1: +
1: +struct xdp_dev_bulk_queue {
1: + struct xdp_frame *q[16];
1: + struct list_head flush_node;
1: + struct net_device *dev;
1: + struct net_device *dev_rx;
1: + unsigned int count;
1: +};
1: +
1: +enum netdev_cmd {
1: + NETDEV_UP = 1,
1: + NETDEV_DOWN = 2,
1: + NETDEV_REBOOT = 3,
1: + NETDEV_CHANGE = 4,
1: + NETDEV_REGISTER = 5,
1: + NETDEV_UNREGISTER = 6,
1: + NETDEV_CHANGEMTU = 7,
1: + NETDEV_CHANGEADDR = 8,
1: + NETDEV_PRE_CHANGEADDR = 9,
1: + NETDEV_GOING_DOWN = 10,
1: + NETDEV_CHANGENAME = 11,
1: + NETDEV_FEAT_CHANGE = 12,
1: + NETDEV_BONDING_FAILOVER = 13,
1: + NETDEV_PRE_UP = 14,
1: + NETDEV_PRE_TYPE_CHANGE = 15,
1: + NETDEV_POST_TYPE_CHANGE = 16,
1: + NETDEV_POST_INIT = 17,
1: + NETDEV_RELEASE = 18,
1: + NETDEV_NOTIFY_PEERS = 19,
1: + NETDEV_JOIN = 20,
1: + NETDEV_CHANGEUPPER = 21,
1: + NETDEV_RESEND_IGMP = 22,
1: + NETDEV_PRECHANGEMTU = 23,
1: + NETDEV_CHANGEINFODATA = 24,
1: + NETDEV_BONDING_INFO = 25,
1: + NETDEV_PRECHANGEUPPER = 26,
1: + NETDEV_CHANGELOWERSTATE = 27,
1: + NETDEV_UDP_TUNNEL_PUSH_INFO = 28,
1: + NETDEV_UDP_TUNNEL_DROP_INFO = 29,
1: + NETDEV_CHANGE_TX_QUEUE_LEN = 30,
1: + NETDEV_CVLAN_FILTER_PUSH_INFO = 31,
1: + NETDEV_CVLAN_FILTER_DROP_INFO = 32,
1: + NETDEV_SVLAN_FILTER_PUSH_INFO = 33,
1: + NETDEV_SVLAN_FILTER_DROP_INFO = 34,
1: +};
1: +
1: +struct netdev_notifier_info {
1: + struct net_device *dev;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct bpf_dtab;
1: +
1: +struct bpf_dtab_netdev {
1: + struct net_device *dev;
1: + struct hlist_node index_hlist;
1: + struct bpf_dtab *dtab;
1: + struct bpf_prog *xdp_prog;
1: + struct callback_head rcu;
1: + unsigned int idx;
1: + struct bpf_devmap_val val;
1: +};
1: +
1: +struct bpf_dtab {
1: + struct bpf_map map;
1: + struct bpf_dtab_netdev **netdev_map;
1: + struct list_head list;
1: + struct hlist_head *dev_index_head;
1: + spinlock_t index_lock;
1: + unsigned int items;
1: + u32 n_buckets;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cpumap_val {
1: + __u32 qsize;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: +};
1: +
1: +typedef struct bio_vec skb_frag_t;
1: +
1: +struct skb_shared_hwtstamps {
1: + ktime_t hwtstamp;
1: +};
1: +
1: +struct skb_shared_info {
1: + __u8 __unused;
1: + __u8 meta_len;
1: + __u8 nr_frags;
1: + __u8 tx_flags;
1: + short unsigned int gso_size;
1: + short unsigned int gso_segs;
1: + struct sk_buff *frag_list;
1: + struct skb_shared_hwtstamps hwtstamps;
1: + unsigned int gso_type;
1: + u32 tskey;
1: + atomic_t dataref;
1: + void *destructor_arg;
1: + skb_frag_t frags[17];
1: +};
1: +
1: +struct bpf_nh_params {
1: + u32 nh_family;
1: + union {
1: + u32 ipv4_nh;
1: + struct in6_addr ipv6_nh;
1: + };
1: +};
1: +
1: +struct bpf_redirect_info {
1: + u32 flags;
1: + u32 tgt_index;
1: + void *tgt_value;
1: + struct bpf_map *map;
1: + u32 kern_flags;
1: + struct bpf_nh_params nh;
1: +};
1: +
1: +struct ptr_ring {
1: + int producer;
1: + spinlock_t producer_lock;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + int consumer_head;
1: + int consumer_tail;
1: + spinlock_t consumer_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + int size;
1: + int batch;
1: + void **queue;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cpu_map_entry;
1: +
1: +struct xdp_bulk_queue {
1: + void *q[8];
1: + struct list_head flush_node;
1: + struct bpf_cpu_map_entry *obj;
1: + unsigned int count;
1: +};
1: +
1: +struct bpf_cpu_map;
1: +
1: +struct bpf_cpu_map_entry {
1: + u32 cpu;
1: + int map_id;
1: + struct xdp_bulk_queue *bulkq;
1: + struct bpf_cpu_map *cmap;
1: + struct ptr_ring *queue;
1: + struct task_struct *kthread;
1: + struct bpf_cpumap_val value;
1: + struct bpf_prog *prog;
1: + atomic_t refcnt;
1: + struct callback_head rcu;
1: + struct work_struct kthread_stop_wq;
1: +};
1: +
1: +struct bpf_cpu_map {
1: + struct bpf_map map;
1: + struct bpf_cpu_map_entry **cpu_map;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct rhlist_head {
1: + struct rhash_head rhead;
1: + struct rhlist_head *next;
1: +};
1: +
1: +struct bpf_prog_offload_ops {
1: + int (*insn_hook)(struct bpf_verifier_env *, int, int);
1: + int (*finalize)(struct bpf_verifier_env *);
1: + int (*replace_insn)(struct bpf_verifier_env *, u32, struct bpf_insn *);
1: + int (*remove_insns)(struct bpf_verifier_env *, u32, u32);
1: + int (*prepare)(struct bpf_prog *);
1: + int (*translate)(struct bpf_prog *);
1: + void (*destroy)(struct bpf_prog *);
1: +};
1: +
1: +struct bpf_offload_dev {
1: + const struct bpf_prog_offload_ops *ops;
1: + struct list_head netdevs;
1: + void *priv;
1: +};
1: +
1: +struct bpf_offload_netdev {
1: + struct rhash_head l;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + struct list_head progs;
1: + struct list_head maps;
1: + struct list_head offdev_netdevs;
1: +};
1: +
1: +struct ns_get_path_bpf_prog_args {
1: + struct bpf_prog *prog;
1: + struct bpf_prog_info *info;
1: +};
1: +
1: +struct ns_get_path_bpf_map_args {
1: + struct bpf_offloaded_map *offmap;
1: + struct bpf_map_info *info;
1: +};
1: +
1: +struct bpf_netns_link {
1: + struct bpf_link link;
1: + enum bpf_attach_type type;
1: + enum netns_bpf_attach_type netns_type;
1: + struct net *net;
1: + struct list_head node;
1: +};
1: +
1: +enum bpf_stack_build_id_status {
1: + BPF_STACK_BUILD_ID_EMPTY = 0,
1: + BPF_STACK_BUILD_ID_VALID = 1,
1: + BPF_STACK_BUILD_ID_IP = 2,
1: +};
1: +
1: +struct bpf_stack_build_id {
1: + __s32 status;
1: + unsigned char build_id[20];
1: + union {
1: + __u64 offset;
1: + __u64 ip;
1: + };
1: +};
1: +
1: +enum {
1: + BPF_F_SKIP_FIELD_MASK = 255,
1: + BPF_F_USER_STACK = 256,
1: + BPF_F_FAST_STACK_CMP = 512,
1: + BPF_F_REUSE_STACKID = 1024,
1: + BPF_F_USER_BUILD_ID = 2048,
1: +};
1: +
1: +typedef __u32 Elf32_Addr;
1: +
1: +typedef __u16 Elf32_Half;
1: +
1: +typedef __u32 Elf32_Off;
1: +
1: +struct elf32_hdr {
1: + unsigned char e_ident[16];
1: + Elf32_Half e_type;
1: + Elf32_Half e_machine;
1: + Elf32_Word e_version;
1: + Elf32_Addr e_entry;
1: + Elf32_Off e_phoff;
1: + Elf32_Off e_shoff;
1: + Elf32_Word e_flags;
1: + Elf32_Half e_ehsize;
1: + Elf32_Half e_phentsize;
1: + Elf32_Half e_phnum;
1: + Elf32_Half e_shentsize;
1: + Elf32_Half e_shnum;
1: + Elf32_Half e_shstrndx;
1: +};
1: +
1: +typedef struct elf32_hdr Elf32_Ehdr;
1: +
1: +struct elf32_phdr {
1: + Elf32_Word p_type;
1: + Elf32_Off p_offset;
1: + Elf32_Addr p_vaddr;
1: + Elf32_Addr p_paddr;
1: + Elf32_Word p_filesz;
1: + Elf32_Word p_memsz;
1: + Elf32_Word p_flags;
1: + Elf32_Word p_align;
1: +};
1: +
1: +typedef struct elf32_phdr Elf32_Phdr;
1: +
1: +typedef struct elf32_note Elf32_Nhdr;
1: +
1: +enum perf_callchain_context {
1: + PERF_CONTEXT_HV = 4294967264,
1: + PERF_CONTEXT_KERNEL = 4294967168,
1: + PERF_CONTEXT_USER = 4294966784,
1: + PERF_CONTEXT_GUEST = 4294965248,
1: + PERF_CONTEXT_GUEST_KERNEL = 4294965120,
1: + PERF_CONTEXT_GUEST_USER = 4294964736,
1: + PERF_CONTEXT_MAX = 4294963201,
1: +};
1: +
1: +struct stack_map_bucket {
1: + struct pcpu_freelist_node fnode;
1: + u32 hash;
1: + u32 nr;
1: + u64 data[0];
1: +};
1: +
1: +struct bpf_stack_map {
1: + struct bpf_map map;
1: + void *elems;
1: + struct pcpu_freelist freelist;
1: + u32 n_buckets;
1: + struct stack_map_bucket *buckets[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct stack_map_irq_work {
1: + struct irq_work irq_work;
1: + struct mm_struct *mm;
1: +};
1: +
1: +typedef u64 (*btf_bpf_get_stackid)(struct pt_regs *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_pe)(struct bpf_perf_event_data_kern *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack)(struct pt_regs *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_get_task_stack)(struct task_struct *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_pe)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +
1: +enum {
1: + BPF_F_SYSCTL_BASE_NAME = 1,
1: +};
1: +
1: +struct bpf_prog_list {
1: + struct list_head node;
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_link *link;
1: + struct bpf_cgroup_storage *storage[2];
1: +};
1: +
1: +struct qdisc_skb_cb {
1: + struct {
1: + unsigned int pkt_len;
1: + u16 slave_dev_queue_mapping;
1: + u16 tc_classid;
1: + };
1: + unsigned char data[20];
1: + u16 mru;
1: +};
1: +
1: +struct bpf_skb_data_end {
1: + struct qdisc_skb_cb qdisc_cb;
1: + void *data_meta;
1: + void *data_end;
1: +};
1: +
1: +enum {
1: + TCPF_ESTABLISHED = 2,
1: + TCPF_SYN_SENT = 4,
1: + TCPF_SYN_RECV = 8,
1: + TCPF_FIN_WAIT1 = 16,
1: + TCPF_FIN_WAIT2 = 32,
1: + TCPF_TIME_WAIT = 64,
1: + TCPF_CLOSE = 128,
1: + TCPF_CLOSE_WAIT = 256,
1: + TCPF_LAST_ACK = 512,
1: + TCPF_LISTEN = 1024,
1: + TCPF_CLOSING = 2048,
1: + TCPF_NEW_SYN_RECV = 4096,
1: +};
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_name)(struct bpf_sysctl_kern *, char *, size_t, u64);
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_current_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_new_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +
1: +typedef u64 (*btf_bpf_sysctl_set_new_value)(struct bpf_sysctl_kern *, const char *, size_t);
1: +
1: +enum sock_type {
1: + SOCK_STREAM = 1,
1: + SOCK_DGRAM = 2,
1: + SOCK_RAW = 3,
1: + SOCK_RDM = 4,
1: + SOCK_SEQPACKET = 5,
1: + SOCK_DCCP = 6,
1: + SOCK_PACKET = 10,
1: +};
1: +
1: +enum {
1: + IPPROTO_IP = 0,
1: + IPPROTO_ICMP = 1,
1: + IPPROTO_IGMP = 2,
1: + IPPROTO_IPIP = 4,
1: + IPPROTO_TCP = 6,
1: + IPPROTO_EGP = 8,
1: + IPPROTO_PUP = 12,
1: + IPPROTO_UDP = 17,
1: + IPPROTO_IDP = 22,
1: + IPPROTO_TP = 29,
1: + IPPROTO_DCCP = 33,
1: + IPPROTO_IPV6 = 41,
1: + IPPROTO_RSVP = 46,
1: + IPPROTO_GRE = 47,
1: + IPPROTO_ESP = 50,
1: + IPPROTO_AH = 51,
1: + IPPROTO_MTP = 92,
1: + IPPROTO_BEETPH = 94,
1: + IPPROTO_ENCAP = 98,
1: + IPPROTO_PIM = 103,
1: + IPPROTO_COMP = 108,
1: + IPPROTO_SCTP = 132,
1: + IPPROTO_UDPLITE = 136,
1: + IPPROTO_MPLS = 137,
1: + IPPROTO_ETHERNET = 143,
1: + IPPROTO_RAW = 255,
1: + IPPROTO_MPTCP = 262,
1: + IPPROTO_MAX = 263,
1: +};
1: +
1: +enum sock_flags {
1: + SOCK_DEAD = 0,
1: + SOCK_DONE = 1,
1: + SOCK_URGINLINE = 2,
1: + SOCK_KEEPOPEN = 3,
1: + SOCK_LINGER = 4,
1: + SOCK_DESTROY = 5,
1: + SOCK_BROADCAST = 6,
1: + SOCK_TIMESTAMP = 7,
1: + SOCK_ZAPPED = 8,
1: + SOCK_USE_WRITE_QUEUE = 9,
1: + SOCK_DBG = 10,
1: + SOCK_RCVTSTAMP = 11,
1: + SOCK_RCVTSTAMPNS = 12,
1: + SOCK_LOCALROUTE = 13,
1: + SOCK_MEMALLOC = 14,
1: + SOCK_TIMESTAMPING_RX_SOFTWARE = 15,
1: + SOCK_FASYNC = 16,
1: + SOCK_RXQ_OVFL = 17,
1: + SOCK_ZEROCOPY = 18,
1: + SOCK_WIFI_STATUS = 19,
1: + SOCK_NOFCS = 20,
1: + SOCK_FILTER_LOCKED = 21,
1: + SOCK_SELECT_ERR_QUEUE = 22,
1: + SOCK_RCU_FREE = 23,
1: + SOCK_TXTIME = 24,
1: + SOCK_XDP = 25,
1: + SOCK_TSTAMP_NEW = 26,
1: +};
1: +
1: +struct reuseport_array {
1: + struct bpf_map map;
1: + struct sock *ptrs[0];
1: +};
1: +
1: +enum bpf_struct_ops_state {
1: + BPF_STRUCT_OPS_STATE_INIT = 0,
1: + BPF_STRUCT_OPS_STATE_INUSE = 1,
1: + BPF_STRUCT_OPS_STATE_TOBEFREE = 2,
1: +};
1: +
1: +struct bpf_struct_ops_value {
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + char data[0];
1: +};
1: +
1: +struct bpf_struct_ops_map {
1: + struct bpf_map map;
1: + const struct bpf_struct_ops *st_ops;
1: + struct mutex lock;
1: + struct bpf_prog **progs;
1: + void *image;
1: + struct bpf_struct_ops_value *uvalue;
1: + struct bpf_struct_ops_value kvalue;
1: +};
1: +
1: +struct bpf_struct_ops_tcp_congestion_ops {
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct tcp_congestion_ops data;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sembuf {
1: + short unsigned int sem_num;
1: + short int sem_op;
1: + short int sem_flg;
1: +};
1: +
1: +enum key_need_perm {
1: + KEY_NEED_UNSPECIFIED = 0,
1: + KEY_NEED_VIEW = 1,
1: + KEY_NEED_READ = 2,
1: + KEY_NEED_WRITE = 3,
1: + KEY_NEED_SEARCH = 4,
1: + KEY_NEED_LINK = 5,
1: + KEY_NEED_SETATTR = 6,
1: + KEY_NEED_UNLINK = 7,
1: + KEY_SYSADMIN_OVERRIDE = 8,
1: + KEY_AUTHTOKEN_OVERRIDE = 9,
1: + KEY_DEFER_PERM_CHECK = 10,
1: +};
1: +
1: +struct __key_reference_with_attributes;
1: +
1: +typedef struct __key_reference_with_attributes *key_ref_t;
1: +
1: +struct xfrm_sec_ctx {
1: + __u8 ctx_doi;
1: + __u8 ctx_alg;
1: + __u16 ctx_len;
1: + __u32 ctx_sid;
1: + char ctx_str[0];
1: +};
1: +
1: +struct xfrm_user_sec_ctx {
1: + __u16 len;
1: + __u16 exttype;
1: + __u8 ctx_alg;
1: + __u8 ctx_doi;
1: + __u16 ctx_len;
1: +};
1: +
1: +enum perf_branch_sample_type {
1: + PERF_SAMPLE_BRANCH_USER = 1,
1: + PERF_SAMPLE_BRANCH_KERNEL = 2,
1: + PERF_SAMPLE_BRANCH_HV = 4,
1: + PERF_SAMPLE_BRANCH_ANY = 8,
1: + PERF_SAMPLE_BRANCH_ANY_CALL = 16,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN = 32,
1: + PERF_SAMPLE_BRANCH_IND_CALL = 64,
1: + PERF_SAMPLE_BRANCH_ABORT_TX = 128,
1: + PERF_SAMPLE_BRANCH_IN_TX = 256,
1: + PERF_SAMPLE_BRANCH_NO_TX = 512,
1: + PERF_SAMPLE_BRANCH_COND = 1024,
1: + PERF_SAMPLE_BRANCH_CALL_STACK = 2048,
1: + PERF_SAMPLE_BRANCH_IND_JUMP = 4096,
1: + PERF_SAMPLE_BRANCH_CALL = 8192,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS = 16384,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES = 32768,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE = 65536,
1: + PERF_SAMPLE_BRANCH_HW_INDEX = 131072,
1: + PERF_SAMPLE_BRANCH_MAX = 262144,
1: +};
1: +
1: +enum perf_event_read_format {
1: + PERF_FORMAT_TOTAL_TIME_ENABLED = 1,
1: + PERF_FORMAT_TOTAL_TIME_RUNNING = 2,
1: + PERF_FORMAT_ID = 4,
1: + PERF_FORMAT_GROUP = 8,
1: + PERF_FORMAT_MAX = 16,
1: +};
1: +
1: +enum perf_event_ioc_flags {
1: + PERF_IOC_FLAG_GROUP = 1,
1: +};
1: +
1: +struct perf_event_header {
1: + __u32 type;
1: + __u16 misc;
1: + __u16 size;
1: +};
1: +
1: +struct perf_ns_link_info {
1: + __u64 dev;
1: + __u64 ino;
1: +};
1: +
1: +enum {
1: + NET_NS_INDEX = 0,
1: + UTS_NS_INDEX = 1,
1: + IPC_NS_INDEX = 2,
1: + PID_NS_INDEX = 3,
1: + USER_NS_INDEX = 4,
1: + MNT_NS_INDEX = 5,
1: + CGROUP_NS_INDEX = 6,
1: + NR_NAMESPACES = 7,
1: +};
1: +
1: +enum perf_event_type {
1: + PERF_RECORD_MMAP = 1,
1: + PERF_RECORD_LOST = 2,
1: + PERF_RECORD_COMM = 3,
1: + PERF_RECORD_EXIT = 4,
1: + PERF_RECORD_THROTTLE = 5,
1: + PERF_RECORD_UNTHROTTLE = 6,
1: + PERF_RECORD_FORK = 7,
1: + PERF_RECORD_READ = 8,
1: + PERF_RECORD_SAMPLE = 9,
1: + PERF_RECORD_MMAP2 = 10,
1: + PERF_RECORD_AUX = 11,
1: + PERF_RECORD_ITRACE_START = 12,
1: + PERF_RECORD_LOST_SAMPLES = 13,
1: + PERF_RECORD_SWITCH = 14,
1: + PERF_RECORD_SWITCH_CPU_WIDE = 15,
1: + PERF_RECORD_NAMESPACES = 16,
1: + PERF_RECORD_KSYMBOL = 17,
1: + PERF_RECORD_BPF_EVENT = 18,
1: + PERF_RECORD_CGROUP = 19,
1: + PERF_RECORD_TEXT_POKE = 20,
1: + PERF_RECORD_MAX = 21,
1: +};
1: +
1: +enum perf_addr_filter_action_t {
1: + PERF_ADDR_FILTER_ACTION_STOP = 0,
1: + PERF_ADDR_FILTER_ACTION_START = 1,
1: + PERF_ADDR_FILTER_ACTION_FILTER = 2,
1: +};
1: +
1: +struct perf_addr_filter {
1: + struct list_head entry;
1: + struct path path;
1: + long unsigned int offset;
1: + long unsigned int size;
1: + enum perf_addr_filter_action_t action;
1: +};
1: +
1: +struct swevent_hlist {
1: + struct hlist_head heads[256];
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct pmu_event_list {
1: + raw_spinlock_t lock;
1: + struct list_head list;
1: +};
1: +
1: +struct perf_buffer {
1: + refcount_t refcount;
1: + struct callback_head callback_head;
1: + int nr_pages;
1: + int overwrite;
1: + int paused;
1: + atomic_t poll;
1: + local_t head;
1: + unsigned int nest;
1: + local_t events;
1: + local_t wakeup;
1: + local_t lost;
1: + long int watermark;
1: + long int aux_watermark;
1: + spinlock_t event_lock;
1: + struct list_head event_list;
1: + atomic_t mmap_count;
1: + long unsigned int mmap_locked;
1: + struct user_struct *mmap_user;
1: + long int aux_head;
1: + unsigned int aux_nest;
1: + long int aux_wakeup;
1: + long unsigned int aux_pgoff;
1: + int aux_nr_pages;
1: + int aux_overwrite;
1: + atomic_t aux_mmap_count;
1: + long unsigned int aux_mmap_locked;
1: + void (*free_aux)(void *);
1: + refcount_t aux_refcount;
1: + int aux_in_sampling;
1: + void **aux_pages;
1: + void *aux_priv;
1: + struct perf_event_mmap_page *user_page;
1: + void *data_pages[0];
1: +};
1: +
1: +struct match_token {
1: + int token;
1: + const char *pattern;
1: +};
1: +
1: +enum {
1: + MAX_OPT_ARGS = 3,
1: +};
1: +
1: +typedef struct {
1: + char *from;
1: + char *to;
1: +} substring_t;
1: +
1: +struct min_heap {
1: + void *data;
1: + int nr;
1: + int size;
1: +};
1: +
1: +struct min_heap_callbacks {
1: + int elem_size;
1: + bool (*less)(const void *, const void *);
1: + void (*swp)(void *, void *);
1: +};
1: +
1: +typedef int (*remote_function_f)(void *);
1: +
1: +struct remote_function_call {
1: + struct task_struct *p;
1: + remote_function_f func;
1: + void *info;
1: + int ret;
1: +};
1: +
1: +typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *, struct perf_event_context *, void *);
1: +
1: +struct event_function_struct {
1: + struct perf_event *event;
1: + event_f func;
1: + void *data;
1: +};
1: +
1: +enum event_type_t {
1: + EVENT_FLEXIBLE = 1,
1: + EVENT_PINNED = 2,
1: + EVENT_TIME = 4,
1: + EVENT_CPU = 8,
1: + EVENT_ALL = 3,
1: +};
1: +
1: +struct stop_event_data {
1: + struct perf_event *event;
1: + unsigned int restart;
1: +};
1: +
1: +struct perf_read_data {
1: + struct perf_event *event;
1: + bool group;
1: + int ret;
1: +};
1: +
1: +struct perf_read_event {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: +};
1: +
1: +typedef void perf_iterate_f(struct perf_event *, void *);
1: +
1: +struct remote_output {
1: + struct perf_buffer *rb;
1: + int err;
1: +};
1: +
1: +struct perf_task_event {
1: + struct task_struct *task;
1: + struct perf_event_context *task_ctx;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 ppid;
1: + u32 tid;
1: + u32 ptid;
1: + u64 time;
1: + } event_id;
1: +};
1: +
1: +struct perf_comm_event {
1: + struct task_struct *task;
1: + char *comm;
1: + int comm_size;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + } event_id;
1: +};
1: +
1: +struct perf_namespaces_event {
1: + struct task_struct *task;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 nr_namespaces;
1: + struct perf_ns_link_info link_info[7];
1: + } event_id;
1: +};
1: +
1: +struct perf_cgroup_event {
1: + char *path;
1: + int path_size;
1: + struct {
1: + struct perf_event_header header;
1: + u64 id;
1: + char path[0];
1: + } event_id;
1: +};
1: +
1: +struct perf_mmap_event {
1: + struct vm_area_struct *vma;
1: + const char *file_name;
1: + int file_size;
1: + int maj;
1: + int min;
1: + u64 ino;
1: + u64 ino_generation;
1: + u32 prot;
1: + u32 flags;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 start;
1: + u64 len;
1: + u64 pgoff;
1: + } event_id;
1: +};
1: +
1: +struct perf_switch_event {
1: + struct task_struct *task;
1: + struct task_struct *next_prev;
1: + struct {
1: + struct perf_event_header header;
1: + u32 next_prev_pid;
1: + u32 next_prev_tid;
1: + } event_id;
1: +};
1: +
1: +struct perf_ksymbol_event {
1: + const char *name;
1: + int name_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + u32 len;
1: + u16 ksym_type;
1: + u16 flags;
1: + } event_id;
1: +};
1: +
1: +struct perf_bpf_event {
1: + struct bpf_prog *prog;
1: + struct {
1: + struct perf_event_header header;
1: + u16 type;
1: + u16 flags;
1: + u32 id;
1: + u8 tag[8];
1: + } event_id;
1: +};
1: +
1: +struct perf_text_poke_event {
1: + const void *old_bytes;
1: + const void *new_bytes;
1: + size_t pad;
1: + u16 old_len;
1: + u16 new_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + } event_id;
1: +};
1: +
1: +struct swevent_htable {
1: + struct swevent_hlist *swevent_hlist;
1: + struct mutex hlist_mutex;
1: + int hlist_refcount;
1: + int recursion[4];
1: +};
1: +
1: +enum perf_probe_config {
1: + PERF_PROBE_CONFIG_IS_RETPROBE = 1,
1: + PERF_UPROBE_REF_CTR_OFFSET_BITS = 32,
1: + PERF_UPROBE_REF_CTR_OFFSET_SHIFT = 32,
1: +};
1: +
1: +enum {
1: + IF_ACT_NONE = 4294967295,
1: + IF_ACT_FILTER = 0,
1: + IF_ACT_START = 1,
1: + IF_ACT_STOP = 2,
1: + IF_SRC_FILE = 3,
1: + IF_SRC_KERNEL = 4,
1: + IF_SRC_FILEADDR = 5,
1: + IF_SRC_KERNELADDR = 6,
1: +};
1: +
1: +enum {
1: + IF_STATE_ACTION = 0,
1: + IF_STATE_SOURCE = 1,
1: + IF_STATE_END = 2,
1: +};
1: +
1: +struct perf_aux_event {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: +};
1: +
1: +struct perf_aux_event___2 {
1: + struct perf_event_header header;
1: + u64 offset;
1: + u64 size;
1: + u64 flags;
1: +};
1: +
1: +struct callchain_cpus_entries {
1: + struct callback_head callback_head;
1: + struct perf_callchain_entry *cpu_entries[0];
1: +};
1: +
1: +struct bp_cpuinfo {
1: + unsigned int cpu_pinned;
1: + unsigned int *tsk_pinned;
1: + unsigned int flexible;
1: +};
1: +
1: +struct bp_busy_slots {
1: + unsigned int pinned;
1: + unsigned int flexible;
1: +};
1: +
1: +struct compact_control;
1: +
1: +struct capture_control {
1: + struct compact_control *cc;
1: + struct page *page;
1: +};
1: +
1: +typedef u32 uprobe_opcode_t;
1: +
1: +struct uprobe {
1: + struct rb_node rb_node;
1: + refcount_t ref;
1: + struct rw_semaphore register_rwsem;
1: + struct rw_semaphore consumer_rwsem;
1: + struct list_head pending_list;
1: + struct uprobe_consumer *consumers;
1: + struct inode *inode;
1: + loff_t offset;
1: + loff_t ref_ctr_offset;
1: + long unsigned int flags;
1: + struct arch_uprobe arch;
1: +};
1: +
1: +struct xol_area {
1: + wait_queue_head_t wq;
1: + atomic_t slot_count;
1: + long unsigned int *bitmap;
1: + struct vm_special_mapping xol_mapping;
1: + struct page *pages[2];
1: + long unsigned int vaddr;
1: +};
1: +
1: +typedef long unsigned int vm_flags_t;
1: +
1: +struct page_vma_mapped_walk {
1: + struct page *page;
1: + struct vm_area_struct *vma;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + unsigned int flags;
1: +};
1: +
1: +struct compact_control {
1: + struct list_head freepages;
1: + struct list_head migratepages;
1: + unsigned int nr_freepages;
1: + unsigned int nr_migratepages;
1: + long unsigned int free_pfn;
1: + long unsigned int migrate_pfn;
1: + long unsigned int fast_start_pfn;
1: + struct zone *zone;
1: + long unsigned int total_migrate_scanned;
1: + long unsigned int total_free_scanned;
1: + short unsigned int fast_search_fail;
1: + short int search_order;
1: + const gfp_t gfp_mask;
1: + int order;
1: + int migratetype;
1: + const unsigned int alloc_flags;
1: + const int highest_zoneidx;
1: + enum migrate_mode mode;
1: + bool ignore_skip_hint;
1: + bool no_set_skip_hint;
1: + bool ignore_block_suitable;
1: + bool direct_compaction;
1: + bool proactive_compaction;
1: + bool whole_zone;
1: + bool contended;
1: + bool rescan;
1: + bool alloc_contig;
1: +};
1: +
1: +struct delayed_uprobe {
1: + struct list_head list;
1: + struct uprobe *uprobe;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct map_info {
1: + struct map_info *next;
1: + struct mm_struct *mm;
1: + long unsigned int vaddr;
1: +};
1: +
1: +struct parallel_data;
1: +
1: +struct padata_priv {
1: + struct list_head list;
1: + struct parallel_data *pd;
1: + int cb_cpu;
1: + unsigned int seq_nr;
1: + int info;
1: + void (*parallel)(struct padata_priv *);
1: + void (*serial)(struct padata_priv *);
1: +};
1: +
1: +struct padata_cpumask {
1: + cpumask_var_t pcpu;
1: + cpumask_var_t cbcpu;
1: +};
1: +
1: +struct padata_shell;
1: +
1: +struct padata_list;
1: +
1: +struct padata_serial_queue;
1: +
1: +struct parallel_data {
1: + struct padata_shell *ps;
1: + struct padata_list *reorder_list;
1: + struct padata_serial_queue *squeue;
1: + atomic_t refcnt;
1: + unsigned int seq_nr;
1: + unsigned int processed;
1: + int cpu;
1: + struct padata_cpumask cpumask;
1: + struct work_struct reorder_work;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct padata_list {
1: + struct list_head list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct padata_serial_queue {
1: + struct padata_list serial;
1: + struct work_struct work;
1: + struct parallel_data *pd;
1: +};
1: +
1: +struct padata_instance;
1: +
1: +struct padata_shell {
1: + struct padata_instance *pinst;
1: + struct parallel_data *pd;
1: + struct parallel_data *opd;
1: + struct list_head list;
1: +};
1: +
1: +struct padata_instance {
1: + struct hlist_node cpu_online_node;
1: + struct hlist_node cpu_dead_node;
1: + struct workqueue_struct *parallel_wq;
1: + struct workqueue_struct *serial_wq;
1: + struct list_head pslist;
1: + struct padata_cpumask cpumask;
1: + struct kobject kobj;
1: + struct mutex lock;
1: + u8 flags;
1: +};
1: +
1: +struct padata_mt_job {
1: + void (*thread_fn)(long unsigned int, long unsigned int, void *);
1: + void *fn_arg;
1: + long unsigned int start;
1: + long unsigned int size;
1: + long unsigned int align;
1: + long unsigned int min_chunk;
1: + int max_threads;
1: +};
1: +
1: +struct padata_work {
1: + struct work_struct pw_work;
1: + struct list_head pw_list;
1: + void *pw_data;
1: +};
1: +
1: +struct padata_mt_job_state {
1: + spinlock_t lock;
1: + struct completion completion;
1: + struct padata_mt_job *job;
1: + int nworks;
1: + int nworks_fini;
1: + long unsigned int chunk_size;
1: +};
1: +
1: +struct padata_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct padata_instance *, struct attribute *, char *);
1: + ssize_t (*store)(struct padata_instance *, struct attribute *, const char *, size_t);
1: +};
1: +
1: +struct static_key_mod {
1: + struct static_key_mod *next;
1: + struct jump_entry *entries;
1: + struct module *mod;
1: +};
1: +
1: +struct static_key_deferred {
1: + struct static_key key;
1: + long unsigned int timeout;
1: + struct delayed_work work;
1: +};
1: +
1: +enum rseq_cpu_id_state {
1: + RSEQ_CPU_ID_UNINITIALIZED = 4294967295,
1: + RSEQ_CPU_ID_REGISTRATION_FAILED = 4294967294,
1: +};
1: +
1: +enum rseq_flags {
1: + RSEQ_FLAG_UNREGISTER = 1,
1: +};
1: +
1: +enum rseq_cs_flags {
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE = 4,
1: +};
1: +
1: +struct rseq_cs {
1: + __u32 version;
1: + __u32 flags;
1: + __u64 start_ip;
1: + __u64 post_commit_offset;
1: + __u64 abort_ip;
1: +};
1: +
1: +struct trace_event_raw_rseq_update {
1: + struct trace_entry ent;
1: + s32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rseq_ip_fixup {
1: + struct trace_entry ent;
1: + long unsigned int regs_ip;
1: + long unsigned int start_ip;
1: + long unsigned int post_commit_offset;
1: + long unsigned int abort_ip;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rseq_update {};
1: +
1: +struct trace_event_data_offsets_rseq_ip_fixup {};
1: +
1: +typedef void (*btf_trace_rseq_update)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_rseq_ip_fixup)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +struct watch;
1: +
1: +struct watch_list {
1: + struct callback_head rcu;
1: + struct hlist_head watchers;
1: + void (*release_watch)(struct watch *);
1: + spinlock_t lock;
1: +};
1: +
1: +enum watch_notification_type {
1: + WATCH_TYPE_META = 0,
1: + WATCH_TYPE_KEY_NOTIFY = 1,
1: + WATCH_TYPE__NR = 2,
1: +};
1: +
1: +enum watch_meta_notification_subtype {
1: + WATCH_META_REMOVAL_NOTIFICATION = 0,
1: + WATCH_META_LOSS_NOTIFICATION = 1,
1: +};
1: +
1: +struct watch_notification {
1: + __u32 type: 24;
1: + __u32 subtype: 8;
1: + __u32 info;
1: +};
1: +
1: +struct watch_notification_type_filter {
1: + __u32 type;
1: + __u32 info_filter;
1: + __u32 info_mask;
1: + __u32 subtype_filter[8];
1: +};
1: +
1: +struct watch_notification_filter {
1: + __u32 nr_filters;
1: + __u32 __reserved;
1: + struct watch_notification_type_filter filters[0];
1: +};
1: +
1: +struct watch_notification_removal {
1: + struct watch_notification watch;
1: + __u64 id;
1: +};
1: +
1: +struct watch_type_filter {
1: + enum watch_notification_type type;
1: + __u32 subtype_filter[1];
1: + __u32 info_filter;
1: + __u32 info_mask;
1: +};
1: +
1: +struct watch_filter {
1: + union {
1: + struct callback_head rcu;
1: + long unsigned int type_filter[2];
1: + };
1: + u32 nr_filters;
1: + struct watch_type_filter filters[0];
1: +};
1: +
1: +struct watch_queue {
1: + struct callback_head rcu;
1: + struct watch_filter *filter;
1: + struct pipe_inode_info *pipe;
1: + struct hlist_head watches;
1: + struct page **notes;
1: + long unsigned int *notes_bitmap;
1: + struct kref usage;
1: + spinlock_t lock;
1: + unsigned int nr_notes;
1: + unsigned int nr_pages;
1: + bool defunct;
1: +};
1: +
1: +struct watch {
1: + union {
1: + struct callback_head rcu;
1: + u32 info_id;
1: + };
1: + struct watch_queue *queue;
1: + struct hlist_node queue_node;
1: + struct watch_list *watch_list;
1: + struct hlist_node list_node;
1: + const struct cred *cred;
1: + void *private;
1: + u64 id;
1: + struct kref usage;
1: +};
1: +
1: +struct pkcs7_message;
1: +
1: +typedef int __kernel_rwf_t;
1: +
1: +enum positive_aop_returns {
1: + AOP_WRITEPAGE_ACTIVATE = 524288,
1: + AOP_TRUNCATED_PAGE = 524289,
1: +};
1: +
1: +struct vm_event_state {
1: + long unsigned int event[95];
1: +};
1: +
1: +enum iter_type {
1: + ITER_IOVEC = 4,
1: + ITER_KVEC = 8,
1: + ITER_BVEC = 16,
1: + ITER_PIPE = 32,
1: + ITER_DISCARD = 64,
1: +};
1: +
1: +enum mapping_flags {
1: + AS_EIO = 0,
1: + AS_ENOSPC = 1,
1: + AS_MM_ALL_LOCKS = 2,
1: + AS_UNEVICTABLE = 3,
1: + AS_EXITING = 4,
1: + AS_NO_WRITEBACK_TAGS = 5,
1: + AS_THP_SUPPORT = 6,
1: +};
1: +
1: +struct wait_page_key {
1: + struct page *page;
1: + int bit_nr;
1: + int page_match;
1: +};
1: +
1: +struct pagevec {
1: + unsigned char nr;
1: + bool percpu_pvec_drained;
1: + struct page *pages[15];
1: +};
1: +
1: +struct fid {
1: + union {
1: + struct {
1: + u32 ino;
1: + u32 gen;
1: + u32 parent_ino;
1: + u32 parent_gen;
1: + } i32;
1: + struct {
1: + u32 block;
1: + u16 partref;
1: + u16 parent_partref;
1: + u32 generation;
1: + u32 parent_block;
1: + u32 parent_generation;
1: + } udf;
1: + __u32 raw[0];
1: + };
1: +};
1: +
1: +struct trace_event_raw_mm_filemap_op_page_cache {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + long unsigned int i_ino;
1: + long unsigned int index;
1: + dev_t s_dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filemap_set_wb_err {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t errseq;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_file_check_and_advance_wb_err {
1: + struct trace_entry ent;
1: + struct file *file;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t old;
1: + errseq_t new;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_filemap_op_page_cache {};
1: +
1: +struct trace_event_data_offsets_filemap_set_wb_err {};
1: +
1: +struct trace_event_data_offsets_file_check_and_advance_wb_err {};
1: +
1: +typedef void (*btf_trace_mm_filemap_delete_from_page_cache)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_filemap_add_to_page_cache)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_filemap_set_wb_err)(void *, struct address_space *, errseq_t);
1: +
1: +typedef void (*btf_trace_file_check_and_advance_wb_err)(void *, struct file *, errseq_t);
1: +
1: +enum behavior {
1: + EXCLUSIVE = 0,
1: + SHARED = 1,
1: + DROP = 2,
1: +};
1: +
1: +struct reciprocal_value {
1: + u32 m;
1: + u8 sh1;
1: + u8 sh2;
1: +};
1: +
1: +struct array_cache;
1: +
1: +struct kmem_cache_node;
1: +
1: +struct kmem_cache {
1: + struct array_cache *cpu_cache;
1: + unsigned int batchcount;
1: + unsigned int limit;
1: + unsigned int shared;
1: + unsigned int size;
1: + struct reciprocal_value reciprocal_buffer_size;
1: + slab_flags_t flags;
1: + unsigned int num;
1: + unsigned int gfporder;
1: + gfp_t allocflags;
1: + size_t colour;
1: + unsigned int colour_off;
1: + struct kmem_cache *freelist_cache;
1: + unsigned int freelist_size;
1: + void (*ctor)(void *);
1: + const char *name;
1: + struct list_head list;
1: + int refcount;
1: + int object_size;
1: + int align;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct kmem_cache_node *node[128];
1: +};
1: +
1: +struct alien_cache;
1: +
1: +struct kmem_cache_node {
1: + spinlock_t list_lock;
1: + struct list_head slabs_partial;
1: + struct list_head slabs_full;
1: + struct list_head slabs_free;
1: + long unsigned int total_slabs;
1: + long unsigned int free_slabs;
1: + long unsigned int free_objects;
1: + unsigned int free_limit;
1: + unsigned int colour_next;
1: + struct array_cache *shared;
1: + struct alien_cache **alien;
1: + long unsigned int next_reap;
1: + int free_touched;
1: +};
1: +
1: +enum oom_constraint {
1: + CONSTRAINT_NONE = 0,
1: + CONSTRAINT_CPUSET = 1,
1: + CONSTRAINT_MEMORY_POLICY = 2,
1: + CONSTRAINT_MEMCG = 3,
1: +};
1: +
1: +struct oom_control {
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *memcg;
1: + const gfp_t gfp_mask;
1: + const int order;
1: + long unsigned int totalpages;
1: + struct task_struct *chosen;
1: + long int chosen_points;
1: + enum oom_constraint constraint;
1: +};
1: +
1: +struct mmu_table_batch {
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + void *tables[0];
1: +};
1: +
1: +struct mmu_gather_batch {
1: + struct mmu_gather_batch *next;
1: + unsigned int nr;
1: + unsigned int max;
1: + struct page *pages[0];
1: +};
1: +
1: +struct mmu_gather {
1: + struct mm_struct *mm;
1: + struct mmu_table_batch *batch;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int fullmm: 1;
1: + unsigned int need_flush_all: 1;
1: + unsigned int freed_tables: 1;
1: + unsigned int cleared_ptes: 1;
1: + unsigned int cleared_pmds: 1;
1: + unsigned int cleared_puds: 1;
1: + unsigned int cleared_p4ds: 1;
1: + unsigned int vma_exec: 1;
1: + unsigned int vma_huge: 1;
1: + unsigned int batch_count;
1: + struct mmu_gather_batch *active;
1: + struct mmu_gather_batch local;
1: + struct page *__pages[8];
1: +};
1: +
1: +enum compact_priority {
1: + COMPACT_PRIO_SYNC_FULL = 0,
1: + MIN_COMPACT_PRIORITY = 0,
1: + COMPACT_PRIO_SYNC_LIGHT = 1,
1: + MIN_COMPACT_COSTLY_PRIORITY = 1,
1: + DEF_COMPACT_PRIORITY = 1,
1: + COMPACT_PRIO_ASYNC = 2,
1: + INIT_COMPACT_PRIORITY = 2,
1: +};
1: +
1: +enum compact_result {
1: + COMPACT_NOT_SUITABLE_ZONE = 0,
1: + COMPACT_SKIPPED = 1,
1: + COMPACT_DEFERRED = 2,
1: + COMPACT_NO_SUITABLE_PAGE = 3,
1: + COMPACT_CONTINUE = 4,
1: + COMPACT_COMPLETE = 5,
1: + COMPACT_PARTIAL_SKIPPED = 6,
1: + COMPACT_CONTENDED = 7,
1: + COMPACT_SUCCESS = 8,
1: +};
1: +
1: +struct trace_event_raw_oom_score_adj_update {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_reclaim_retry_zone {
1: + struct trace_entry ent;
1: + int node;
1: + int zone_idx;
1: + int order;
1: + long unsigned int reclaimable;
1: + long unsigned int available;
1: + long unsigned int min_wmark;
1: + int no_progress_loops;
1: + bool wmark_check;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mark_victim {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wake_reaper {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_start_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_finish_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_skip_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_compact_retry {
1: + struct trace_entry ent;
1: + int order;
1: + int priority;
1: + int result;
1: + int retries;
1: + int max_retries;
1: + bool ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_oom_score_adj_update {};
1: +
1: +struct trace_event_data_offsets_reclaim_retry_zone {};
1: +
1: +struct trace_event_data_offsets_mark_victim {};
1: +
1: +struct trace_event_data_offsets_wake_reaper {};
1: +
1: +struct trace_event_data_offsets_start_task_reaping {};
1: +
1: +struct trace_event_data_offsets_finish_task_reaping {};
1: +
1: +struct trace_event_data_offsets_skip_task_reaping {};
1: +
1: +struct trace_event_data_offsets_compact_retry {};
1: +
1: +typedef void (*btf_trace_oom_score_adj_update)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_reclaim_retry_zone)(void *, struct zoneref *, int, long unsigned int, long unsigned int, long unsigned int, int, bool);
1: +
1: +typedef void (*btf_trace_mark_victim)(void *, int);
1: +
1: +typedef void (*btf_trace_wake_reaper)(void *, int);
1: +
1: +typedef void (*btf_trace_start_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_finish_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_skip_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_compact_retry)(void *, int, enum compact_priority, enum compact_result, int, int, bool);
1: +
1: +enum wb_congested_state {
1: + WB_async_congested = 0,
1: + WB_sync_congested = 1,
1: +};
1: +
1: +enum {
1: + XA_CHECK_SCHED = 4096,
1: +};
1: +
1: +enum wb_state {
1: + WB_registered = 0,
1: + WB_writeback_running = 1,
1: + WB_has_dirty_io = 2,
1: + WB_start_all = 3,
1: +};
1: +
1: +enum {
1: + BLK_RW_ASYNC = 0,
1: + BLK_RW_SYNC = 1,
1: +};
1: +
1: +struct wb_lock_cookie {
1: + bool locked;
1: + long unsigned int flags;
1: +};
1: +
1: +typedef int (*writepage_t)(struct page *, struct writeback_control *, void *);
1: +
1: +struct dirty_throttle_control {
1: + struct wb_domain *dom;
1: + struct dirty_throttle_control *gdtc;
1: + struct bdi_writeback *wb;
1: + struct fprop_local_percpu *wb_completions;
1: + long unsigned int avail;
1: + long unsigned int dirty;
1: + long unsigned int thresh;
1: + long unsigned int bg_thresh;
1: + long unsigned int wb_dirty;
1: + long unsigned int wb_thresh;
1: + long unsigned int wb_bg_thresh;
1: + long unsigned int pos_ratio;
1: +};
1: +
1: +typedef void compound_page_dtor(struct page *);
1: +
1: +typedef struct {} local_lock_t;
1: +
1: +struct trace_event_raw_mm_lru_insertion {
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + int lru;
1: + long unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_lru_activate {
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_lru_insertion {};
1: +
1: +struct trace_event_data_offsets_mm_lru_activate {};
1: +
1: +typedef void (*btf_trace_mm_lru_insertion)(void *, struct page *, int);
1: +
1: +typedef void (*btf_trace_mm_lru_activate)(void *, struct page *);
1: +
1: +struct lru_rotate {
1: + local_lock_t lock;
1: + struct pagevec pvec;
1: +};
1: +
1: +struct lru_pvecs {
1: + local_lock_t lock;
1: + struct pagevec lru_add;
1: + struct pagevec lru_deactivate_file;
1: + struct pagevec lru_deactivate;
1: + struct pagevec lru_lazyfree;
1: + struct pagevec activate_page;
1: +};
1: +
1: +enum lruvec_flags {
1: + LRUVEC_CONGESTED = 0,
1: +};
1: +
1: +enum pgdat_flags {
1: + PGDAT_DIRTY = 0,
1: + PGDAT_WRITEBACK = 1,
1: + PGDAT_RECLAIM_LOCKED = 2,
1: +};
1: +
1: +struct reclaim_stat {
1: + unsigned int nr_dirty;
1: + unsigned int nr_unqueued_dirty;
1: + unsigned int nr_congested;
1: + unsigned int nr_writeback;
1: + unsigned int nr_immediate;
1: + unsigned int nr_pageout;
1: + unsigned int nr_activate[2];
1: + unsigned int nr_ref_keep;
1: + unsigned int nr_unmap_fail;
1: + unsigned int nr_lazyfree_fail;
1: +};
1: +
1: +enum ttu_flags {
1: + TTU_MIGRATION = 1,
1: + TTU_MUNLOCK = 2,
1: + TTU_SPLIT_HUGE_PMD = 4,
1: + TTU_IGNORE_MLOCK = 8,
1: + TTU_IGNORE_HWPOISON = 32,
1: + TTU_BATCH_FLUSH = 64,
1: + TTU_RMAP_LOCKED = 128,
1: + TTU_SPLIT_FREEZE = 256,
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_kswapd_sleep {
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_kswapd_wake {
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_wakeup_kswapd {
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_direct_reclaim_begin_template {
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_direct_reclaim_end_template {
1: + struct trace_entry ent;
1: + long unsigned int nr_reclaimed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_shrink_slab_start {
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + void *shrink;
1: + int nid;
1: + long int nr_objects_to_shrink;
1: + gfp_t gfp_flags;
1: + long unsigned int cache_items;
1: + long long unsigned int delta;
1: + long unsigned int total_scan;
1: + int priority;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_shrink_slab_end {
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + int nid;
1: + void *shrink;
1: + long int unused_scan;
1: + long int new_scan;
1: + int retval;
1: + long int total_scan;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_isolate {
1: + struct trace_entry ent;
1: + int highest_zoneidx;
1: + int order;
1: + long unsigned int nr_requested;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_skipped;
1: + long unsigned int nr_taken;
1: + isolate_mode_t isolate_mode;
1: + int lru;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_writepage {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_shrink_inactive {
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int nr_congested;
1: + long unsigned int nr_immediate;
1: + unsigned int nr_activate0;
1: + unsigned int nr_activate1;
1: + long unsigned int nr_ref_keep;
1: + long unsigned int nr_unmap_fail;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_shrink_active {
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_taken;
1: + long unsigned int nr_active;
1: + long unsigned int nr_deactivated;
1: + long unsigned int nr_referenced;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_inactive_list_is_low {
1: + struct trace_entry ent;
1: + int nid;
1: + int reclaim_idx;
1: + long unsigned int total_inactive;
1: + long unsigned int inactive;
1: + long unsigned int total_active;
1: + long unsigned int active;
1: + long unsigned int ratio;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_node_reclaim_begin {
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_kswapd_sleep {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_kswapd_wake {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_wakeup_kswapd {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_direct_reclaim_begin_template {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_direct_reclaim_end_template {};
1: +
1: +struct trace_event_data_offsets_mm_shrink_slab_start {};
1: +
1: +struct trace_event_data_offsets_mm_shrink_slab_end {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_isolate {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_writepage {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_shrink_inactive {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_shrink_active {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_inactive_list_is_low {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_node_reclaim_begin {};
1: +
1: +typedef void (*btf_trace_mm_vmscan_kswapd_sleep)(void *, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_kswapd_wake)(void *, int, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_wakeup_kswapd)(void *, int, int, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_direct_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_direct_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_shrink_slab_start)(void *, struct shrinker *, struct shrink_control *, long int, long unsigned int, long long unsigned int, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_shrink_slab_end)(void *, struct shrinker *, int, int, long int, long int, long int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_isolate)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, isolate_mode_t, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_writepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_inactive)(void *, int, long unsigned int, long unsigned int, struct reclaim_stat *, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_active)(void *, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_inactive_list_is_low)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_node_reclaim_begin)(void *, int, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_node_reclaim_end)(void *, long unsigned int);
1: +
1: +struct scan_control {
1: + long unsigned int nr_to_reclaim;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *target_mem_cgroup;
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + unsigned int may_deactivate: 2;
1: + unsigned int force_deactivate: 1;
1: + unsigned int skipped_deactivate: 1;
1: + unsigned int may_writepage: 1;
1: + unsigned int may_unmap: 1;
1: + unsigned int may_swap: 1;
1: + unsigned int memcg_low_reclaim: 1;
1: + unsigned int memcg_low_skipped: 1;
1: + unsigned int hibernation_mode: 1;
1: + unsigned int compaction_ready: 1;
1: + unsigned int cache_trim_mode: 1;
1: + unsigned int file_is_tiny: 1;
1: + s8 order;
1: + s8 priority;
1: + s8 reclaim_idx;
1: + gfp_t gfp_mask;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + struct {
1: + unsigned int dirty;
1: + unsigned int unqueued_dirty;
1: + unsigned int congested;
1: + unsigned int writeback;
1: + unsigned int immediate;
1: + unsigned int file_taken;
1: + unsigned int taken;
1: + } nr;
1: + struct reclaim_state reclaim_state;
1: +};
1: +
1: +typedef enum {
1: + PAGE_KEEP = 0,
1: + PAGE_ACTIVATE = 1,
1: + PAGE_SUCCESS = 2,
1: + PAGE_CLEAN = 3,
1: +} pageout_t;
1: +
1: +enum page_references {
1: + PAGEREF_RECLAIM = 0,
1: + PAGEREF_RECLAIM_CLEAN = 1,
1: + PAGEREF_KEEP = 2,
1: + PAGEREF_ACTIVATE = 3,
1: +};
1: +
1: +enum scan_balance {
1: + SCAN_EQUAL = 0,
1: + SCAN_FRACT = 1,
1: + SCAN_ANON = 2,
1: + SCAN_FILE = 3,
1: +};
1: +
1: +enum transparent_hugepage_flag {
1: + TRANSPARENT_HUGEPAGE_FLAG = 0,
1: + TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG = 1,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG = 2,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG = 3,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG = 4,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG = 5,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KHUGEPAGED_FLAG = 6,
1: + TRANSPARENT_HUGEPAGE_USE_ZERO_PAGE_FLAG = 7,
1: +};
1: +
1: +struct xattr {
1: + const char *name;
1: + void *value;
1: + size_t value_len;
1: +};
1: +
1: +struct constant_table {
1: + const char *name;
1: + int value;
1: +};
1: +
1: +enum {
1: + MPOL_DEFAULT = 0,
1: + MPOL_PREFERRED = 1,
1: + MPOL_BIND = 2,
1: + MPOL_INTERLEAVE = 3,
1: + MPOL_LOCAL = 4,
1: + MPOL_MAX = 5,
1: +};
1: +
1: +struct shared_policy {
1: + struct rb_root root;
1: + rwlock_t lock;
1: +};
1: +
1: +struct simple_xattrs {
1: + struct list_head head;
1: + spinlock_t lock;
1: +};
1: +
1: +struct simple_xattr {
1: + struct list_head list;
1: + char *name;
1: + size_t size;
1: + char value[0];
1: +};
1: +
1: +enum fid_type {
1: + FILEID_ROOT = 0,
1: + FILEID_INO32_GEN = 1,
1: + FILEID_INO32_GEN_PARENT = 2,
1: + FILEID_BTRFS_WITHOUT_PARENT = 77,
1: + FILEID_BTRFS_WITH_PARENT = 78,
1: + FILEID_BTRFS_WITH_PARENT_ROOT = 79,
1: + FILEID_UDF_WITHOUT_PARENT = 81,
1: + FILEID_UDF_WITH_PARENT = 82,
1: + FILEID_NILFS_WITHOUT_PARENT = 97,
1: + FILEID_NILFS_WITH_PARENT = 98,
1: + FILEID_FAT_WITHOUT_PARENT = 113,
1: + FILEID_FAT_WITH_PARENT = 114,
1: + FILEID_LUSTRE = 151,
1: + FILEID_KERNFS = 254,
1: + FILEID_INVALID = 255,
1: +};
1: +
1: +struct shmem_inode_info {
1: + spinlock_t lock;
1: + unsigned int seals;
1: + long unsigned int flags;
1: + long unsigned int alloced;
1: + long unsigned int swapped;
1: + struct list_head shrinklist;
1: + struct list_head swaplist;
1: + struct shared_policy policy;
1: + struct simple_xattrs xattrs;
1: + atomic_t stop_eviction;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct shmem_sb_info {
1: + long unsigned int max_blocks;
1: + struct percpu_counter used_blocks;
1: + long unsigned int max_inodes;
1: + long unsigned int free_inodes;
1: + spinlock_t stat_lock;
1: + umode_t mode;
1: + unsigned char huge;
1: + kuid_t uid;
1: + kgid_t gid;
1: + bool full_inums;
1: + ino_t next_ino;
1: + ino_t *ino_batch;
1: + struct mempolicy *mpol;
1: + spinlock_t shrinklist_lock;
1: + struct list_head shrinklist;
1: + long unsigned int shrinklist_len;
1: +};
1: +
1: +enum sgp_type {
1: + SGP_READ = 0,
1: + SGP_CACHE = 1,
1: + SGP_NOHUGE = 2,
1: + SGP_HUGE = 3,
1: + SGP_WRITE = 4,
1: + SGP_FALLOC = 5,
1: +};
1: +
1: +struct shmem_falloc {
1: + wait_queue_head_t *waitq;
1: + long unsigned int start;
1: + long unsigned int next;
1: + long unsigned int nr_falloced;
1: + long unsigned int nr_unswapped;
1: +};
1: +
1: +struct shmem_options {
1: + long long unsigned int blocks;
1: + long long unsigned int inodes;
1: + struct mempolicy *mpol;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + bool full_inums;
1: + int huge;
1: + int seen;
1: +};
1: +
1: +enum shmem_param {
1: + Opt_gid = 0,
1: + Opt_huge = 1,
1: + Opt_mode = 2,
1: + Opt_mpol = 3,
1: + Opt_nr_blocks = 4,
1: + Opt_nr_inodes = 5,
1: + Opt_size = 6,
1: + Opt_uid = 7,
1: + Opt_inode32 = 8,
1: + Opt_inode64 = 9,
1: +};
1: +
1: +enum writeback_stat_item {
1: + NR_DIRTY_THRESHOLD = 0,
1: + NR_DIRTY_BG_THRESHOLD = 1,
1: + NR_VM_WRITEBACK_STAT_ITEMS = 2,
1: +};
1: +
1: +struct contig_page_info {
1: + long unsigned int free_pages;
1: + long unsigned int free_blocks_total;
1: + long unsigned int free_blocks_suitable;
1: +};
1: +
1: +struct radix_tree_iter {
1: + long unsigned int index;
1: + long unsigned int next_index;
1: + long unsigned int tags;
1: + struct xa_node *node;
1: +};
1: +
1: +enum {
1: + RADIX_TREE_ITER_TAG_MASK = 15,
1: + RADIX_TREE_ITER_TAGGED = 16,
1: + RADIX_TREE_ITER_CONTIG = 32,
1: +};
1: +
1: +enum mminit_level {
1: + MMINIT_WARNING = 0,
1: + MMINIT_VERIFY = 1,
1: + MMINIT_TRACE = 2,
1: +};
1: +
1: +struct pcpu_group_info {
1: + int nr_units;
1: + long unsigned int base_offset;
1: + unsigned int *cpu_map;
1: +};
1: +
1: +struct pcpu_alloc_info {
1: + size_t static_size;
1: + size_t reserved_size;
1: + size_t dyn_size;
1: + size_t unit_size;
1: + size_t atom_size;
1: + size_t alloc_size;
1: + size_t __ai_size;
1: + int nr_groups;
1: + struct pcpu_group_info groups[0];
1: +};
1: +
1: +typedef void * (*pcpu_fc_alloc_fn_t)(unsigned int, size_t, size_t);
1: +
1: +typedef void (*pcpu_fc_free_fn_t)(void *, size_t);
1: +
1: +typedef int pcpu_fc_cpu_distance_fn_t(unsigned int, unsigned int);
1: +
1: +struct trace_event_raw_percpu_alloc_percpu {
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_free_percpu {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_alloc_percpu_fail {
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_create_chunk {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_destroy_chunk {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_percpu_alloc_percpu {};
1: +
1: +struct trace_event_data_offsets_percpu_free_percpu {};
1: +
1: +struct trace_event_data_offsets_percpu_alloc_percpu_fail {};
1: +
1: +struct trace_event_data_offsets_percpu_create_chunk {};
1: +
1: +struct trace_event_data_offsets_percpu_destroy_chunk {};
1: +
1: +typedef void (*btf_trace_percpu_alloc_percpu)(void *, bool, bool, size_t, size_t, void *, int, void *);
1: +
1: +typedef void (*btf_trace_percpu_free_percpu)(void *, void *, int, void *);
1: +
1: +typedef void (*btf_trace_percpu_alloc_percpu_fail)(void *, bool, bool, size_t, size_t);
1: +
1: +typedef void (*btf_trace_percpu_create_chunk)(void *, void *);
1: +
1: +typedef void (*btf_trace_percpu_destroy_chunk)(void *, void *);
1: +
1: +enum pcpu_chunk_type {
1: + PCPU_CHUNK_ROOT = 0,
1: + PCPU_CHUNK_MEMCG = 1,
1: + PCPU_NR_CHUNK_TYPES = 2,
1: + PCPU_FAIL_ALLOC = 2,
1: +};
1: +
1: +struct pcpu_block_md {
1: + int scan_hint;
1: + int scan_hint_start;
1: + int contig_hint;
1: + int contig_hint_start;
1: + int left_free;
1: + int right_free;
1: + int first_free;
1: + int nr_bits;
1: +};
1: +
1: +struct pcpu_chunk {
1: + struct list_head list;
1: + int free_bytes;
1: + struct pcpu_block_md chunk_md;
1: + void *base_addr;
1: + long unsigned int *alloc_map;
1: + long unsigned int *bound_map;
1: + struct pcpu_block_md *md_blocks;
1: + void *data;
1: + bool immutable;
1: + int start_offset;
1: + int end_offset;
1: + struct obj_cgroup **obj_cgroups;
1: + int nr_pages;
1: + int nr_populated;
1: + int nr_empty_pop_pages;
1: + long unsigned int populated[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_alloc {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_alloc_node {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + int node;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_free {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_free {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_free_batched {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_alloc {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + gfp_t gfp_flags;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_pcpu_drain {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_alloc_extfrag {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int alloc_order;
1: + int fallback_order;
1: + int alloc_migratetype;
1: + int fallback_migratetype;
1: + int change_ownership;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rss_stat {
1: + struct trace_entry ent;
1: + unsigned int mm_id;
1: + unsigned int curr;
1: + int member;
1: + long int size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kmem_alloc {};
1: +
1: +struct trace_event_data_offsets_kmem_alloc_node {};
1: +
1: +struct trace_event_data_offsets_kmem_free {};
1: +
1: +struct trace_event_data_offsets_mm_page_free {};
1: +
1: +struct trace_event_data_offsets_mm_page_free_batched {};
1: +
1: +struct trace_event_data_offsets_mm_page_alloc {};
1: +
1: +struct trace_event_data_offsets_mm_page {};
1: +
1: +struct trace_event_data_offsets_mm_page_pcpu_drain {};
1: +
1: +struct trace_event_data_offsets_mm_page_alloc_extfrag {};
1: +
1: +struct trace_event_data_offsets_rss_stat {};
1: +
1: +typedef void (*btf_trace_kmalloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +
1: +typedef void (*btf_trace_kmem_cache_alloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +
1: +typedef void (*btf_trace_kmalloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +
1: +typedef void (*btf_trace_kmem_cache_alloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +
1: +typedef void (*btf_trace_kfree)(void *, long unsigned int, const void *);
1: +
1: +typedef void (*btf_trace_kmem_cache_free)(void *, long unsigned int, const void *);
1: +
1: +typedef void (*btf_trace_mm_page_free)(void *, struct page *, unsigned int);
1: +
1: +typedef void (*btf_trace_mm_page_free_batched)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_page_alloc)(void *, struct page *, unsigned int, gfp_t, int);
1: +
1: +typedef void (*btf_trace_mm_page_alloc_zone_locked)(void *, struct page *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_page_pcpu_drain)(void *, struct page *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_page_alloc_extfrag)(void *, struct page *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_rss_stat)(void *, struct mm_struct *, int, long int);
1: +
1: +enum slab_state {
1: + DOWN = 0,
1: + PARTIAL = 1,
1: + PARTIAL_NODE = 2,
1: + UP = 3,
1: + FULL = 4,
1: +};
1: +
1: +struct kmalloc_info_struct {
1: + const char *name[3];
1: + unsigned int size;
1: +};
1: +
1: +struct slabinfo {
1: + long unsigned int active_objs;
1: + long unsigned int num_objs;
1: + long unsigned int active_slabs;
1: + long unsigned int num_slabs;
1: + long unsigned int shared_avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int shared;
1: + unsigned int objects_per_slab;
1: + unsigned int cache_order;
1: +};
1: +
1: +enum pageblock_bits {
1: + PB_migrate = 0,
1: + PB_migrate_end = 2,
1: + PB_migrate_skip = 3,
1: + NR_PAGEBLOCK_BITS = 4,
1: +};
1: +
1: +struct node___2 {
1: + struct device dev;
1: + struct list_head access_list;
1: + struct work_struct node_work;
1: + struct list_head cache_attrs;
1: + struct device *cache_dev;
1: +};
1: +
1: +struct alloc_context {
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct zoneref *preferred_zoneref;
1: + int migratetype;
1: + enum zone_type highest_zoneidx;
1: + bool spread_dirty_pages;
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_isolate_template {
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_taken;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_migratepages {
1: + struct trace_entry ent;
1: + long unsigned int nr_migrated;
1: + long unsigned int nr_failed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_begin {
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_end {
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_try_to_compact_pages {
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_mask;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_suitable_template {
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_defer_template {
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + unsigned int considered;
1: + unsigned int defer_shift;
1: + int order_failed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_kcompactd_sleep {
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kcompactd_wake_template {
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + enum zone_type highest_zoneidx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_compaction_isolate_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_migratepages {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_begin {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_end {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_try_to_compact_pages {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_suitable_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_defer_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_kcompactd_sleep {};
1: +
1: +struct trace_event_data_offsets_kcompactd_wake_template {};
1: +
1: +typedef void (*btf_trace_mm_compaction_isolate_migratepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_compaction_isolate_freepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_compaction_migratepages)(void *, long unsigned int, int, struct list_head *);
1: +
1: +typedef void (*btf_trace_mm_compaction_begin)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_mm_compaction_end)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_try_to_compact_pages)(void *, int, gfp_t, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_finished)(void *, struct zone *, int, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_suitable)(void *, struct zone *, int, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_deferred)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_defer_compaction)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_defer_reset)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_kcompactd_sleep)(void *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_wakeup_kcompactd)(void *, int, int, enum zone_type);
1: +
1: +typedef void (*btf_trace_mm_compaction_kcompactd_wake)(void *, int, int, enum zone_type);
1: +
1: +typedef enum {
1: + ISOLATE_ABORT = 0,
1: + ISOLATE_NONE = 1,
1: + ISOLATE_SUCCESS = 2,
1: +} isolate_migrate_t;
1: +
1: +struct anon_vma_chain {
1: + struct vm_area_struct *vma;
1: + struct anon_vma *anon_vma;
1: + struct list_head same_vma;
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: +};
1: +
1: +struct rb_augment_callbacks {
1: + void (*propagate)(struct rb_node *, struct rb_node *);
1: + void (*copy)(struct rb_node *, struct rb_node *);
1: + void (*rotate)(struct rb_node *, struct rb_node *);
1: +};
1: +
1: +enum lru_status {
1: + LRU_REMOVED = 0,
1: + LRU_REMOVED_RETRY = 1,
1: + LRU_ROTATE = 2,
1: + LRU_SKIP = 3,
1: + LRU_RETRY = 4,
1: +};
1: +
1: +typedef enum lru_status (*list_lru_walk_cb)(struct list_head *, struct list_lru_one *, spinlock_t *, void *);
1: +
1: +typedef struct {
1: + long unsigned int pd;
1: +} hugepd_t;
1: +
1: +struct migration_target_control {
1: + int nid;
1: + nodemask_t *nmask;
1: + gfp_t gfp_mask;
1: +};
1: +
1: +struct follow_page_context {
1: + struct dev_pagemap *pgmap;
1: + unsigned int page_mask;
1: +};
1: +
1: +typedef struct {
1: + u64 val;
1: +} pfn_t;
1: +
1: +typedef unsigned int pgtbl_mod_mask;
1: +
1: +struct zap_details {
1: + struct address_space *check_mapping;
1: + long unsigned int first_index;
1: + long unsigned int last_index;
1: +};
1: +
1: +typedef int (*pte_fn_t)(pte_t *, long unsigned int, void *);
1: +
1: +enum {
1: + SWP_USED = 1,
1: + SWP_WRITEOK = 2,
1: + SWP_DISCARDABLE = 4,
1: + SWP_DISCARDING = 8,
1: + SWP_SOLIDSTATE = 16,
1: + SWP_CONTINUED = 32,
1: + SWP_BLKDEV = 64,
1: + SWP_ACTIVATED = 128,
1: + SWP_FS_OPS = 256,
1: + SWP_AREA_DISCARD = 512,
1: + SWP_PAGE_DISCARD = 1024,
1: + SWP_STABLE_WRITES = 2048,
1: + SWP_SYNCHRONOUS_IO = 4096,
1: + SWP_VALID = 8192,
1: + SWP_SCANNING = 16384,
1: +};
1: +
1: +struct copy_subpage_arg {
1: + struct page *dst;
1: + struct page *src;
1: + struct vm_area_struct *vma;
1: +};
1: +
1: +struct mm_walk;
1: +
1: +struct mm_walk_ops {
1: + int (*pgd_entry)(pgd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*p4d_entry)(p4d_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pud_entry)(pud_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pmd_entry)(pmd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pte_entry)(pte_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pte_hole)(long unsigned int, long unsigned int, int, struct mm_walk *);
1: + int (*hugetlb_entry)(pte_t *, long unsigned int, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*test_walk)(long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pre_vma)(long unsigned int, long unsigned int, struct mm_walk *);
1: + void (*post_vma)(struct mm_walk *);
1: +};
1: +
1: +enum page_walk_action {
1: + ACTION_SUBTREE = 0,
1: + ACTION_CONTINUE = 1,
1: + ACTION_AGAIN = 2,
1: +};
1: +
1: +struct mm_walk {
1: + const struct mm_walk_ops *ops;
1: + struct mm_struct *mm;
1: + pgd_t *pgd;
1: + struct vm_area_struct *vma;
1: + enum page_walk_action action;
1: + bool no_vma;
1: + void *private;
1: +};
1: +
1: +struct vm_unmapped_area_info {
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: +};
1: +
1: +enum {
1: + HUGETLB_SHMFS_INODE = 1,
1: + HUGETLB_ANONHUGE_INODE = 2,
1: +};
1: +
1: +struct trace_event_raw_vm_unmapped_area {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int total_vm;
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_vm_unmapped_area {};
1: +
1: +typedef void (*btf_trace_vm_unmapped_area)(void *, long unsigned int, struct vm_unmapped_area_info *);
1: +
1: +struct rmap_walk_control {
1: + void *arg;
1: + bool (*rmap_one)(struct page *, struct vm_area_struct *, long unsigned int, void *);
1: + int (*done)(struct page *);
1: + struct anon_vma * (*anon_lock)(struct page *);
1: + bool (*invalid_vma)(struct vm_area_struct *, void *);
1: +};
1: +
1: +struct page_referenced_arg {
1: + int mapcount;
1: + int referenced;
1: + long unsigned int vm_flags;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct vmap_area {
1: + long unsigned int va_start;
1: + long unsigned int va_end;
1: + struct rb_node rb_node;
1: + struct list_head list;
1: + union {
1: + long unsigned int subtree_max_size;
1: + struct vm_struct *vm;
1: + struct llist_node purge_list;
1: + };
1: +};
1: +
1: +struct vfree_deferred {
1: + struct llist_head list;
1: + struct work_struct wq;
1: +};
1: +
1: +enum fit_type {
1: + NOTHING_FIT = 0,
1: + FL_FIT_TYPE = 1,
1: + LE_FIT_TYPE = 2,
1: + RE_FIT_TYPE = 3,
1: + NE_FIT_TYPE = 4,
1: +};
1: +
1: +struct vmap_block_queue {
1: + spinlock_t lock;
1: + struct list_head free;
1: +};
1: +
1: +struct vmap_block {
1: + spinlock_t lock;
1: + struct vmap_area *va;
1: + long unsigned int free;
1: + long unsigned int dirty;
1: + long unsigned int dirty_min;
1: + long unsigned int dirty_max;
1: + struct list_head free_list;
1: + struct callback_head callback_head;
1: + struct list_head purge;
1: +};
1: +
1: +struct page_frag_cache {
1: + void *va;
1: + __u16 offset;
1: + __u16 size;
1: + unsigned int pagecnt_bias;
1: + bool pfmemalloc;
1: +};
1: +
1: +enum zone_flags {
1: + ZONE_BOOSTED_WATERMARK = 0,
1: +};
1: +
1: +struct mminit_pfnnid_cache {
1: + long unsigned int last_start;
1: + long unsigned int last_end;
1: + int last_nid;
1: +};
1: +
1: +typedef int fpi_t;
1: +
1: +struct pcpu_drain {
1: + struct zone *zone;
1: + struct work_struct work;
1: +};
1: +
1: +enum mf_flags {
1: + MF_COUNT_INCREASED = 1,
1: + MF_ACTION_REQUIRED = 2,
1: + MF_MUST_KILL = 4,
1: + MF_SOFT_OFFLINE = 8,
1: +};
1: +
1: +struct madvise_walk_private {
1: + struct mmu_gather *tlb;
1: + bool pageout;
1: +};
1: +
1: +struct vma_swap_readahead {
1: + short unsigned int win;
1: + short unsigned int offset;
1: + short unsigned int nr_pte;
1: + pte_t *ptes;
1: +};
1: +
1: +union swap_header {
1: + struct {
1: + char reserved[4086];
1: + char magic[10];
1: + } magic;
1: + struct {
1: + char bootbits[1024];
1: + __u32 version;
1: + __u32 last_page;
1: + __u32 nr_badpages;
1: + unsigned char sws_uuid[16];
1: + unsigned char sws_volume[16];
1: + __u32 padding[117];
1: + __u32 badpages[1];
1: + } info;
1: +};
1: +
1: +struct swap_extent {
1: + struct rb_node rb_node;
1: + long unsigned int start_page;
1: + long unsigned int nr_pages;
1: + sector_t start_block;
1: +};
1: +
1: +struct swap_slots_cache {
1: + bool lock_initialized;
1: + struct mutex alloc_lock;
1: + swp_entry_t *slots;
1: + int nr;
1: + int cur;
1: + spinlock_t free_lock;
1: + swp_entry_t *slots_ret;
1: + int n_ret;
1: +};
1: +
1: +struct frontswap_ops {
1: + void (*init)(unsigned int);
1: + int (*store)(unsigned int, long unsigned int, struct page *);
1: + int (*load)(unsigned int, long unsigned int, struct page *);
1: + void (*invalidate_page)(unsigned int, long unsigned int);
1: + void (*invalidate_area)(unsigned int);
1: + struct frontswap_ops *next;
1: +};
1: +
1: +struct crypto_comp {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct zpool;
1: +
1: +struct zpool_ops {
1: + int (*evict)(struct zpool *, long unsigned int);
1: +};
1: +
1: +enum zpool_mapmode {
1: + ZPOOL_MM_RW = 0,
1: + ZPOOL_MM_RO = 1,
1: + ZPOOL_MM_WO = 2,
1: + ZPOOL_MM_DEFAULT = 0,
1: +};
1: +
1: +struct zswap_pool {
1: + struct zpool *zpool;
1: + struct crypto_comp **tfm;
1: + struct kref kref;
1: + struct list_head list;
1: + struct work_struct release_work;
1: + struct work_struct shrink_work;
1: + struct hlist_node node;
1: + char tfm_name[128];
1: +};
1: +
1: +struct zswap_entry {
1: + struct rb_node rbnode;
1: + long unsigned int offset;
1: + int refcount;
1: + unsigned int length;
1: + struct zswap_pool *pool;
1: + union {
1: + long unsigned int handle;
1: + long unsigned int value;
1: + };
1: +};
1: +
1: +struct zswap_header {
1: + swp_entry_t swpentry;
1: +};
1: +
1: +struct zswap_tree {
1: + struct rb_root rbroot;
1: + spinlock_t lock;
1: +};
1: +
1: +enum zswap_get_swap_ret {
1: + ZSWAP_SWAPCACHE_NEW = 0,
1: + ZSWAP_SWAPCACHE_EXIST = 1,
1: + ZSWAP_SWAPCACHE_FAIL = 2,
1: +};
1: +
1: +struct dma_pool {
1: + struct list_head page_list;
1: + spinlock_t lock;
1: + size_t size;
1: + struct device *dev;
1: + size_t allocation;
1: + size_t boundary;
1: + char name[32];
1: + struct list_head pools;
1: +};
1: +
1: +struct dma_page {
1: + struct list_head page_list;
1: + void *vaddr;
1: + dma_addr_t dma;
1: + unsigned int in_use;
1: + unsigned int offset;
1: +};
1: +
1: +enum string_size_units {
1: + STRING_UNITS_10 = 0,
1: + STRING_UNITS_2 = 1,
1: +};
1: +
1: +struct resv_map {
1: + struct kref refs;
1: + spinlock_t lock;
1: + struct list_head regions;
1: + long int adds_in_progress;
1: + struct list_head region_cache;
1: + long int region_cache_count;
1: + struct page_counter *reservation_counter;
1: + long unsigned int pages_per_hpage;
1: + struct cgroup_subsys_state *css;
1: +};
1: +
1: +struct file_region {
1: + struct list_head link;
1: + long int from;
1: + long int to;
1: + struct page_counter *reservation_counter;
1: + struct cgroup_subsys_state *css;
1: +};
1: +
1: +struct huge_bootmem_page {
1: + struct list_head list;
1: + struct hstate *hstate;
1: +};
1: +
1: +enum hugetlb_memory_event {
1: + HUGETLB_MAX = 0,
1: + HUGETLB_NR_MEMORY_EVENTS = 1,
1: +};
1: +
1: +struct hugetlb_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct page_counter hugepage[4];
1: + struct page_counter rsvd_hugepage[4];
1: + atomic_long_t events[4];
1: + atomic_long_t events_local[4];
1: + struct cgroup_file events_file[4];
1: + struct cgroup_file events_local_file[4];
1: +};
1: +
1: +enum vma_resv_mode {
1: + VMA_NEEDS_RESV = 0,
1: + VMA_COMMIT_RESV = 1,
1: + VMA_END_RESV = 2,
1: + VMA_ADD_RESV = 3,
1: +};
1: +
1: +struct node_hstate {
1: + struct kobject *hugepages_kobj;
1: + struct kobject *hstate_kobjs[4];
1: +};
1: +
1: +struct nodemask_scratch {
1: + nodemask_t mask1;
1: + nodemask_t mask2;
1: +};
1: +
1: +struct sp_node {
1: + struct rb_node nd;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct mempolicy *policy;
1: +};
1: +
1: +struct mempolicy_operations {
1: + int (*create)(struct mempolicy *, const nodemask_t *);
1: + void (*rebind)(struct mempolicy *, const nodemask_t *);
1: +};
1: +
1: +struct queue_pages {
1: + struct list_head *pagelist;
1: + long unsigned int flags;
1: + nodemask_t *nmask;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct vm_area_struct *first;
1: +};
1: +
1: +struct mmu_notifier_subscriptions {
1: + struct hlist_head list;
1: + bool has_itree;
1: + spinlock_t lock;
1: + long unsigned int invalidate_seq;
1: + long unsigned int active_invalidate_ranges;
1: + struct rb_root_cached itree;
1: + wait_queue_head_t wq;
1: + struct hlist_head deferred_list;
1: +};
1: +
1: +struct interval_tree_node {
1: + struct rb_node rb;
1: + long unsigned int start;
1: + long unsigned int last;
1: + long unsigned int __subtree_last;
1: +};
1: +
1: +struct mmu_interval_notifier;
1: +
1: +struct mmu_interval_notifier_ops {
1: + bool (*invalidate)(struct mmu_interval_notifier *, const struct mmu_notifier_range *, long unsigned int);
1: +};
1: +
1: +struct mmu_interval_notifier {
1: + struct interval_tree_node interval_tree;
1: + const struct mmu_interval_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct hlist_node deferred_item;
1: + long unsigned int invalidate_seq;
1: +};
1: +
1: +struct rmap_item;
1: +
1: +struct mm_slot {
1: + struct hlist_node link;
1: + struct list_head mm_list;
1: + struct rmap_item *rmap_list;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct stable_node;
1: +
1: +struct rmap_item {
1: + struct rmap_item *rmap_list;
1: + union {
1: + struct anon_vma *anon_vma;
1: + int nid;
1: + };
1: + struct mm_struct *mm;
1: + long unsigned int address;
1: + unsigned int oldchecksum;
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct stable_node *head;
1: + struct hlist_node hlist;
1: + };
1: + };
1: +};
1: +
1: +struct ksm_scan {
1: + struct mm_slot *mm_slot;
1: + long unsigned int address;
1: + struct rmap_item **rmap_list;
1: + long unsigned int seqnr;
1: +};
1: +
1: +struct stable_node {
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct list_head *head;
1: + struct {
1: + struct hlist_node hlist_dup;
1: + struct list_head list;
1: + };
1: + };
1: + };
1: + struct hlist_head hlist;
1: + union {
1: + long unsigned int kpfn;
1: + long unsigned int chain_prune_time;
1: + };
1: + int rmap_hlist_len;
1: + int nid;
1: +};
1: +
1: +enum get_ksm_page_flags {
1: + GET_KSM_PAGE_NOLOCK = 0,
1: + GET_KSM_PAGE_LOCK = 1,
1: + GET_KSM_PAGE_TRYLOCK = 2,
1: +};
1: +
1: +struct array_cache {
1: + unsigned int avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int touched;
1: + void *entry[0];
1: +};
1: +
1: +struct alien_cache {
1: + spinlock_t lock;
1: + struct array_cache ac;
1: +};
1: +
1: +typedef unsigned char freelist_idx_t;
1: +
1: +enum {
1: + MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE = 12,
1: + SECTION_INFO = 12,
1: + MIX_SECTION_INFO = 13,
1: + NODE_INFO = 14,
1: + MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE = 14,
1: +};
1: +
1: +enum {
1: + MMOP_OFFLINE = 0,
1: + MMOP_ONLINE = 1,
1: + MMOP_ONLINE_KERNEL = 2,
1: + MMOP_ONLINE_MOVABLE = 3,
1: +};
1: +
1: +typedef int mhp_t;
1: +
1: +typedef void (*online_page_callback_t)(struct page *, unsigned int);
1: +
1: +struct memory_block {
1: + long unsigned int start_section_nr;
1: + long unsigned int state;
1: + int online_type;
1: + int phys_device;
1: + struct device dev;
1: + int nid;
1: +};
1: +
1: +struct buffer_head;
1: +
1: +typedef void bh_end_io_t(struct buffer_head *, int);
1: +
1: +struct buffer_head {
1: + long unsigned int b_state;
1: + struct buffer_head *b_this_page;
1: + struct page *b_page;
1: + sector_t b_blocknr;
1: + size_t b_size;
1: + char *b_data;
1: + struct block_device *b_bdev;
1: + bh_end_io_t *b_end_io;
1: + void *b_private;
1: + struct list_head b_assoc_buffers;
1: + struct address_space *b_assoc_map;
1: + atomic_t b_count;
1: + spinlock_t b_uptodate_lock;
1: +};
1: +
1: +typedef struct page *new_page_t(struct page *, long unsigned int);
1: +
1: +typedef void free_page_t(struct page *, long unsigned int);
1: +
1: +enum bh_state_bits {
1: + BH_Uptodate = 0,
1: + BH_Dirty = 1,
1: + BH_Lock = 2,
1: + BH_Req = 3,
1: + BH_Mapped = 4,
1: + BH_New = 5,
1: + BH_Async_Read = 6,
1: + BH_Async_Write = 7,
1: + BH_Delay = 8,
1: + BH_Boundary = 9,
1: + BH_Write_EIO = 10,
1: + BH_Unwritten = 11,
1: + BH_Quiet = 12,
1: + BH_Meta = 13,
1: + BH_Prio = 14,
1: + BH_Defer_Completion = 15,
1: + BH_PrivateStart = 16,
1: +};
1: +
1: +struct trace_event_raw_mm_migrate_pages {
1: + struct trace_entry ent;
1: + long unsigned int succeeded;
1: + long unsigned int failed;
1: + long unsigned int thp_succeeded;
1: + long unsigned int thp_failed;
1: + long unsigned int thp_split;
1: + enum migrate_mode mode;
1: + int reason;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_migrate_pages {};
1: +
1: +typedef void (*btf_trace_mm_migrate_pages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, enum migrate_mode, int);
1: +
1: +enum scan_result {
1: + SCAN_FAIL = 0,
1: + SCAN_SUCCEED = 1,
1: + SCAN_PMD_NULL = 2,
1: + SCAN_EXCEED_NONE_PTE = 3,
1: + SCAN_EXCEED_SWAP_PTE = 4,
1: + SCAN_EXCEED_SHARED_PTE = 5,
1: + SCAN_PTE_NON_PRESENT = 6,
1: + SCAN_PTE_UFFD_WP = 7,
1: + SCAN_PAGE_RO = 8,
1: + SCAN_LACK_REFERENCED_PAGE = 9,
1: + SCAN_PAGE_NULL = 10,
1: + SCAN_SCAN_ABORT = 11,
1: + SCAN_PAGE_COUNT = 12,
1: + SCAN_PAGE_LRU = 13,
1: + SCAN_PAGE_LOCK = 14,
1: + SCAN_PAGE_ANON = 15,
1: + SCAN_PAGE_COMPOUND = 16,
1: + SCAN_ANY_PROCESS = 17,
1: + SCAN_VMA_NULL = 18,
1: + SCAN_VMA_CHECK = 19,
1: + SCAN_ADDRESS_RANGE = 20,
1: + SCAN_SWAP_CACHE_PAGE = 21,
1: + SCAN_DEL_PAGE_LRU = 22,
1: + SCAN_ALLOC_HUGE_PAGE_FAIL = 23,
1: + SCAN_CGROUP_CHARGE_FAIL = 24,
1: + SCAN_TRUNCATED = 25,
1: + SCAN_PAGE_HAS_PRIVATE = 26,
1: +};
1: +
1: +struct trace_event_raw_mm_khugepaged_scan_pmd {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + long unsigned int pfn;
1: + bool writable;
1: + int referenced;
1: + int none_or_zero;
1: + int status;
1: + int unmapped;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int isolated;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page_isolate {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int none_or_zero;
1: + int referenced;
1: + bool writable;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page_swapin {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int swapped_in;
1: + int referenced;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_khugepaged_scan_pmd {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page_isolate {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page_swapin {};
1: +
1: +typedef void (*btf_trace_mm_khugepaged_scan_pmd)(void *, struct mm_struct *, struct page *, bool, int, int, int, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page)(void *, struct mm_struct *, int, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page_isolate)(void *, struct page *, int, int, bool, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page_swapin)(void *, struct mm_struct *, int, int, int);
1: +
1: +struct mm_slot___2 {
1: + struct hlist_node hash;
1: + struct list_head mm_node;
1: + struct mm_struct *mm;
1: + int nr_pte_mapped_thp;
1: + long unsigned int pte_mapped_thp[8];
1: +};
1: +
1: +struct khugepaged_scan {
1: + struct list_head mm_head;
1: + struct mm_slot___2 *mm_slot;
1: + long unsigned int address;
1: +};
1: +
1: +struct mem_cgroup_reclaim_cookie {
1: + pg_data_t *pgdat;
1: + unsigned int generation;
1: +};
1: +
1: +struct mem_cgroup_tree_per_node {
1: + struct rb_root rb_root;
1: + struct rb_node *rb_rightmost;
1: + spinlock_t lock;
1: +};
1: +
1: +struct mem_cgroup_tree {
1: + struct mem_cgroup_tree_per_node *rb_tree_per_node[128];
1: +};
1: +
1: +struct mem_cgroup_eventfd_list {
1: + struct list_head list;
1: + struct eventfd_ctx *eventfd;
1: +};
1: +
1: +struct mem_cgroup_event {
1: + struct mem_cgroup *memcg;
1: + struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + int (*register_event)(struct mem_cgroup *, struct eventfd_ctx *, const char *);
1: + void (*unregister_event)(struct mem_cgroup *, struct eventfd_ctx *);
1: + poll_table pt;
1: + wait_queue_head_t *wqh;
1: + wait_queue_entry_t wait;
1: + struct work_struct remove;
1: +};
1: +
1: +struct move_charge_struct {
1: + spinlock_t lock;
1: + struct mm_struct *mm;
1: + struct mem_cgroup *from;
1: + struct mem_cgroup *to;
1: + long unsigned int flags;
1: + long unsigned int precharge;
1: + long unsigned int moved_charge;
1: + long unsigned int moved_swap;
1: + struct task_struct *moving_task;
1: + wait_queue_head_t waitq;
1: +};
1: +
1: +enum res_type {
1: + _MEM = 0,
1: + _MEMSWAP = 1,
1: + _OOM_TYPE = 2,
1: + _KMEM = 3,
1: + _TCP = 4,
1: +};
1: +
1: +struct memory_stat {
1: + const char *name;
1: + unsigned int ratio;
1: + unsigned int idx;
1: +};
1: +
1: +struct oom_wait_info {
1: + struct mem_cgroup *memcg;
1: + wait_queue_entry_t wait;
1: +};
1: +
1: +enum oom_status {
1: + OOM_SUCCESS = 0,
1: + OOM_FAILED = 1,
1: + OOM_ASYNC = 2,
1: + OOM_SKIPPED = 3,
1: +};
1: +
1: +struct memcg_stock_pcp {
1: + struct mem_cgroup *cached;
1: + unsigned int nr_pages;
1: + struct obj_cgroup *cached_objcg;
1: + unsigned int nr_bytes;
1: + struct work_struct work;
1: + long unsigned int flags;
1: +};
1: +
1: +enum {
1: + RES_USAGE = 0,
1: + RES_LIMIT = 1,
1: + RES_MAX_USAGE = 2,
1: + RES_FAILCNT = 3,
1: + RES_SOFT_LIMIT = 4,
1: +};
1: +
1: +union mc_target {
1: + struct page *page;
1: + swp_entry_t ent;
1: +};
1: +
1: +enum mc_target_type {
1: + MC_TARGET_NONE = 0,
1: + MC_TARGET_PAGE = 1,
1: + MC_TARGET_SWAP = 2,
1: + MC_TARGET_DEVICE = 3,
1: +};
1: +
1: +struct uncharge_gather {
1: + struct mem_cgroup *memcg;
1: + long unsigned int nr_pages;
1: + long unsigned int pgpgout;
1: + long unsigned int nr_kmem;
1: + struct page *dummy_page;
1: +};
1: +
1: +struct numa_stat {
1: + const char *name;
1: + unsigned int lru_mask;
1: +};
1: +
1: +enum vmpressure_levels {
1: + VMPRESSURE_LOW = 0,
1: + VMPRESSURE_MEDIUM = 1,
1: + VMPRESSURE_CRITICAL = 2,
1: + VMPRESSURE_NUM_LEVELS = 3,
1: +};
1: +
1: +enum vmpressure_modes {
1: + VMPRESSURE_NO_PASSTHROUGH = 0,
1: + VMPRESSURE_HIERARCHY = 1,
1: + VMPRESSURE_LOCAL = 2,
1: + VMPRESSURE_NUM_MODES = 3,
1: +};
1: +
1: +struct vmpressure_event {
1: + struct eventfd_ctx *efd;
1: + enum vmpressure_levels level;
1: + enum vmpressure_modes mode;
1: + struct list_head node;
1: +};
1: +
1: +struct swap_cgroup_ctrl {
1: + struct page **map;
1: + long unsigned int length;
1: + spinlock_t lock;
1: +};
1: +
1: +struct swap_cgroup {
1: + short unsigned int id;
1: +};
1: +
1: +enum {
1: + RES_USAGE___2 = 0,
1: + RES_RSVD_USAGE = 1,
1: + RES_LIMIT___2 = 2,
1: + RES_RSVD_LIMIT = 3,
1: + RES_MAX_USAGE___2 = 4,
1: + RES_RSVD_MAX_USAGE = 5,
1: + RES_FAILCNT___2 = 6,
1: + RES_RSVD_FAILCNT = 7,
1: +};
1: +
1: +enum mf_result {
1: + MF_IGNORED = 0,
1: + MF_FAILED = 1,
1: + MF_DELAYED = 2,
1: + MF_RECOVERED = 3,
1: +};
1: +
1: +enum mf_action_page_type {
1: + MF_MSG_KERNEL = 0,
1: + MF_MSG_KERNEL_HIGH_ORDER = 1,
1: + MF_MSG_SLAB = 2,
1: + MF_MSG_DIFFERENT_COMPOUND = 3,
1: + MF_MSG_POISONED_HUGE = 4,
1: + MF_MSG_HUGE = 5,
1: + MF_MSG_FREE_HUGE = 6,
1: + MF_MSG_NON_PMD_HUGE = 7,
1: + MF_MSG_UNMAP_FAILED = 8,
1: + MF_MSG_DIRTY_SWAPCACHE = 9,
1: + MF_MSG_CLEAN_SWAPCACHE = 10,
1: + MF_MSG_DIRTY_MLOCKED_LRU = 11,
1: + MF_MSG_CLEAN_MLOCKED_LRU = 12,
1: + MF_MSG_DIRTY_UNEVICTABLE_LRU = 13,
1: + MF_MSG_CLEAN_UNEVICTABLE_LRU = 14,
1: + MF_MSG_DIRTY_LRU = 15,
1: + MF_MSG_CLEAN_LRU = 16,
1: + MF_MSG_TRUNCATED_LRU = 17,
1: + MF_MSG_BUDDY = 18,
1: + MF_MSG_BUDDY_2ND = 19,
1: + MF_MSG_DAX = 20,
1: + MF_MSG_UNSPLIT_THP = 21,
1: + MF_MSG_UNKNOWN = 22,
1: +};
1: +
1: +typedef long unsigned int dax_entry_t;
1: +
1: +struct __kfifo {
1: + unsigned int in;
1: + unsigned int out;
1: + unsigned int mask;
1: + unsigned int esize;
1: + void *data;
1: +};
1: +
1: +struct to_kill {
1: + struct list_head nd;
1: + struct task_struct *tsk;
1: + long unsigned int addr;
1: + short int size_shift;
1: +};
1: +
1: +struct page_state {
1: + long unsigned int mask;
1: + long unsigned int res;
1: + enum mf_action_page_type type;
1: + int (*action)(struct page *, long unsigned int);
1: +};
1: +
1: +struct memory_failure_entry {
1: + long unsigned int pfn;
1: + int flags;
1: +};
1: +
1: +struct memory_failure_cpu {
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct memory_failure_entry *type;
1: + const struct memory_failure_entry *const_type;
1: + char (*rectype)[0];
1: + struct memory_failure_entry *ptr;
1: + const struct memory_failure_entry *ptr_const;
1: + };
1: + struct memory_failure_entry buf[16];
1: + } fifo;
1: + spinlock_t lock;
1: + struct work_struct work;
1: +};
1: +
1: +struct cleancache_filekey {
1: + union {
1: + ino_t ino;
1: + __u32 fh[6];
1: + u32 key[6];
1: + } u;
1: +};
1: +
1: +struct cleancache_ops {
1: + int (*init_fs)(size_t);
1: + int (*init_shared_fs)(uuid_t *, size_t);
1: + int (*get_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: + void (*put_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: + void (*invalidate_page)(int, struct cleancache_filekey, long unsigned int);
1: + void (*invalidate_inode)(int, struct cleancache_filekey);
1: + void (*invalidate_fs)(int);
1: +};
1: +
1: +struct trace_event_raw_test_pages_isolated {
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int fin_pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_test_pages_isolated {};
1: +
1: +typedef void (*btf_trace_test_pages_isolated)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +struct zpool_driver;
1: +
1: +struct zpool {
1: + struct zpool_driver *driver;
1: + void *pool;
1: + const struct zpool_ops *ops;
1: + bool evictable;
1: + struct list_head list;
1: +};
1: +
1: +struct zpool_driver {
1: + char *type;
1: + struct module *owner;
1: + atomic_t refcount;
1: + struct list_head list;
1: + void * (*create)(const char *, gfp_t, const struct zpool_ops *, struct zpool *);
1: + void (*destroy)(void *);
1: + bool malloc_support_movable;
1: + int (*malloc)(void *, size_t, gfp_t, long unsigned int *);
1: + void (*free)(void *, long unsigned int);
1: + int (*shrink)(void *, unsigned int, unsigned int *);
1: + void * (*map)(void *, long unsigned int, enum zpool_mapmode);
1: + void (*unmap)(void *, long unsigned int);
1: + u64 (*total_size)(void *);
1: +};
1: +
1: +struct zbud_pool;
1: +
1: +struct zbud_ops {
1: + int (*evict)(struct zbud_pool *, long unsigned int);
1: +};
1: +
1: +struct zbud_pool {
1: + spinlock_t lock;
1: + struct list_head unbuddied[63];
1: + struct list_head buddied;
1: + struct list_head lru;
1: + u64 pages_nr;
1: + const struct zbud_ops *ops;
1: + struct zpool *zpool;
1: + const struct zpool_ops *zpool_ops;
1: +};
1: +
1: +struct zbud_header {
1: + struct list_head buddy;
1: + struct list_head lru;
1: + unsigned int first_chunks;
1: + unsigned int last_chunks;
1: + bool under_reclaim;
1: +};
1: +
1: +enum buddy {
1: + FIRST = 0,
1: + LAST = 1,
1: +};
1: +
1: +enum zs_mapmode {
1: + ZS_MM_RW = 0,
1: + ZS_MM_RO = 1,
1: + ZS_MM_WO = 2,
1: +};
1: +
1: +struct zs_pool_stats {
1: + long unsigned int pages_compacted;
1: +};
1: +
1: +enum fullness_group {
1: + ZS_EMPTY = 0,
1: + ZS_ALMOST_EMPTY = 1,
1: + ZS_ALMOST_FULL = 2,
1: + ZS_FULL = 3,
1: + NR_ZS_FULLNESS = 4,
1: +};
1: +
1: +enum zs_stat_type {
1: + CLASS_EMPTY = 0,
1: + CLASS_ALMOST_EMPTY = 1,
1: + CLASS_ALMOST_FULL = 2,
1: + CLASS_FULL = 3,
1: + OBJ_ALLOCATED = 4,
1: + OBJ_USED = 5,
1: + NR_ZS_STAT_TYPE = 6,
1: +};
1: +
1: +struct zs_size_stat {
1: + long unsigned int objs[6];
1: +};
1: +
1: +struct size_class {
1: + spinlock_t lock;
1: + struct list_head fullness_list[4];
1: + int size;
1: + int objs_per_zspage;
1: + int pages_per_zspage;
1: + unsigned int index;
1: + struct zs_size_stat stats;
1: +};
1: +
1: +struct link_free {
1: + union {
1: + long unsigned int next;
1: + long unsigned int handle;
1: + };
1: +};
1: +
1: +struct zs_pool {
1: + const char *name;
1: + struct size_class *size_class[255];
1: + struct kmem_cache *handle_cachep;
1: + struct kmem_cache *zspage_cachep;
1: + atomic_long_t pages_allocated;
1: + struct zs_pool_stats stats;
1: + struct shrinker shrinker;
1: + struct inode *inode;
1: + struct work_struct free_work;
1: + struct wait_queue_head migration_wait;
1: + atomic_long_t isolated_pages;
1: + bool destroying;
1: +};
1: +
1: +struct zspage {
1: + struct {
1: + unsigned int fullness: 2;
1: + unsigned int class: 9;
1: + unsigned int isolated: 3;
1: + unsigned int magic: 8;
1: + };
1: + unsigned int inuse;
1: + unsigned int freeobj;
1: + struct page *first_page;
1: + struct list_head list;
1: + rwlock_t lock;
1: +};
1: +
1: +struct mapping_area {
1: + char *vm_buf;
1: + char *vm_addr;
1: + enum zs_mapmode vm_mm;
1: +};
1: +
1: +struct zs_compact_control {
1: + struct page *s_page;
1: + struct page *d_page;
1: + int obj_idx;
1: +};
1: +
1: +struct cma {
1: + long unsigned int base_pfn;
1: + long unsigned int count;
1: + long unsigned int *bitmap;
1: + unsigned int order_per_bit;
1: + struct mutex lock;
1: + char name[64];
1: +};
1: +
1: +struct trace_event_raw_cma_alloc {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + unsigned int align;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cma_release {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cma_alloc {};
1: +
1: +struct trace_event_data_offsets_cma_release {};
1: +
1: +typedef void (*btf_trace_cma_alloc)(void *, long unsigned int, const struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_cma_release)(void *, long unsigned int, const struct page *, unsigned int);
1: +
1: +struct balloon_dev_info {
1: + long unsigned int isolated_pages;
1: + spinlock_t pages_lock;
1: + struct list_head pages;
1: + int (*migratepage)(struct balloon_dev_info *, struct page *, struct page *, enum migrate_mode);
1: + struct inode *inode;
1: +};
1: +
1: +struct page_ext_operations {
1: + size_t offset;
1: + size_t size;
1: + bool (*need)();
1: + void (*init)();
1: +};
1: +
1: +struct frame_vector {
1: + unsigned int nr_allocated;
1: + unsigned int nr_frames;
1: + bool got_ref;
1: + bool is_pfns;
1: + void *ptrs[0];
1: +};
1: +
1: +enum {
1: + BAD_STACK = 4294967295,
1: + NOT_STACK = 0,
1: + GOOD_FRAME = 1,
1: + GOOD_STACK = 2,
1: +};
1: +
1: +enum hmm_pfn_flags {
1: + HMM_PFN_VALID = 0,
1: + HMM_PFN_WRITE = 0,
1: + HMM_PFN_ERROR = 0,
1: + HMM_PFN_ORDER_SHIFT = 56,
1: + HMM_PFN_REQ_FAULT = 0,
1: + HMM_PFN_REQ_WRITE = 0,
1: + HMM_PFN_FLAGS = 0,
1: +};
1: +
1: +struct hmm_range {
1: + struct mmu_interval_notifier *notifier;
1: + long unsigned int notifier_seq;
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int *hmm_pfns;
1: + long unsigned int default_flags;
1: + long unsigned int pfn_flags_mask;
1: + void *dev_private_owner;
1: +};
1: +
1: +struct hmm_vma_walk {
1: + struct hmm_range *range;
1: + long unsigned int last;
1: +};
1: +
1: +enum {
1: + HMM_NEED_FAULT = 1,
1: + HMM_NEED_WRITE_FAULT = 2,
1: + HMM_NEED_ALL_BITS = 3,
1: +};
1: +
1: +struct hugetlbfs_inode_info {
1: + struct shared_policy policy;
1: + struct inode vfs_inode;
1: + unsigned int seals;
1: +};
1: +
1: +struct page_reporting_dev_info {
1: + int (*report)(struct page_reporting_dev_info *, struct scatterlist *, unsigned int);
1: + struct delayed_work work;
1: + atomic_t state;
1: +};
1: +
1: +enum {
1: + PAGE_REPORTING_IDLE = 0,
1: + PAGE_REPORTING_REQUESTED = 1,
1: + PAGE_REPORTING_ACTIVE = 2,
1: +};
1: +
1: +typedef s32 compat_off_t;
1: +
1: +struct open_how {
1: + __u64 flags;
1: + __u64 mode;
1: + __u64 resolve;
1: +};
1: +
1: +enum fsnotify_data_type {
1: + FSNOTIFY_EVENT_NONE = 0,
1: + FSNOTIFY_EVENT_PATH = 1,
1: + FSNOTIFY_EVENT_INODE = 2,
1: +};
1: +
1: +struct open_flags {
1: + int open_flag;
1: + umode_t mode;
1: + int acc_mode;
1: + int intent;
1: + int lookup_flags;
1: +};
1: +
1: +typedef __kernel_rwf_t rwf_t;
1: +
1: +struct fscrypt_policy_v1 {
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 master_key_descriptor[8];
1: +};
1: +
1: +struct fscrypt_policy_v2 {
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 __reserved[4];
1: + __u8 master_key_identifier[16];
1: +};
1: +
1: +union fscrypt_policy {
1: + u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: +};
1: +
1: +enum vfs_get_super_keying {
1: + vfs_get_single_super = 0,
1: + vfs_get_single_reconf_super = 1,
1: + vfs_get_keyed_super = 2,
1: + vfs_get_independent_super = 3,
1: +};
1: +
1: +struct kobj_map;
1: +
1: +struct char_device_struct {
1: + struct char_device_struct *next;
1: + unsigned int major;
1: + unsigned int baseminor;
1: + int minorct;
1: + char name[64];
1: + struct cdev *cdev;
1: +};
1: +
1: +struct stat {
1: + long unsigned int st_dev;
1: + long unsigned int st_ino;
1: + unsigned int st_mode;
1: + unsigned int st_nlink;
1: + unsigned int st_uid;
1: + unsigned int st_gid;
1: + long unsigned int st_rdev;
1: + long unsigned int __pad1;
1: + long int st_size;
1: + int st_blksize;
1: + int __pad2;
1: + long int st_blocks;
1: + long int st_atime;
1: + long unsigned int st_atime_nsec;
1: + long int st_mtime;
1: + long unsigned int st_mtime_nsec;
1: + long int st_ctime;
1: + long unsigned int st_ctime_nsec;
1: + unsigned int __unused4;
1: + unsigned int __unused5;
1: +};
1: +
1: +typedef u32 compat_ino_t;
1: +
1: +typedef u16 compat_ushort_t;
1: +
1: +typedef s64 compat_s64;
1: +
1: +typedef u16 __compat_uid16_t;
1: +
1: +typedef u16 __compat_gid16_t;
1: +
1: +typedef u16 compat_mode_t;
1: +
1: +typedef u32 compat_dev_t;
1: +
1: +struct compat_stat {
1: + compat_dev_t st_dev;
1: + compat_ino_t st_ino;
1: + compat_mode_t st_mode;
1: + compat_ushort_t st_nlink;
1: + __compat_uid16_t st_uid;
1: + __compat_gid16_t st_gid;
1: + compat_dev_t st_rdev;
1: + compat_off_t st_size;
1: + compat_off_t st_blksize;
1: + compat_off_t st_blocks;
1: + old_time32_t st_atime;
1: + compat_ulong_t st_atime_nsec;
1: + old_time32_t st_mtime;
1: + compat_ulong_t st_mtime_nsec;
1: + old_time32_t st_ctime;
1: + compat_ulong_t st_ctime_nsec;
1: + compat_ulong_t __unused4[2];
1: +};
1: +
1: +struct stat64 {
1: + compat_u64 st_dev;
1: + unsigned char __pad0[4];
1: + compat_ulong_t __st_ino;
1: + compat_uint_t st_mode;
1: + compat_uint_t st_nlink;
1: + compat_ulong_t st_uid;
1: + compat_ulong_t st_gid;
1: + compat_u64 st_rdev;
1: + unsigned char __pad3[4];
1: + compat_s64 st_size;
1: + compat_ulong_t st_blksize;
1: + compat_u64 st_blocks;
1: + compat_ulong_t st_atime;
1: + compat_ulong_t st_atime_nsec;
1: + compat_ulong_t st_mtime;
1: + compat_ulong_t st_mtime_nsec;
1: + compat_ulong_t st_ctime;
1: + compat_ulong_t st_ctime_nsec;
1: + compat_u64 st_ino;
1: +};
1: +
1: +struct statx_timestamp {
1: + __s64 tv_sec;
1: + __u32 tv_nsec;
1: + __s32 __reserved;
1: +};
1: +
1: +struct statx {
1: + __u32 stx_mask;
1: + __u32 stx_blksize;
1: + __u64 stx_attributes;
1: + __u32 stx_nlink;
1: + __u32 stx_uid;
1: + __u32 stx_gid;
1: + __u16 stx_mode;
1: + __u16 __spare0[1];
1: + __u64 stx_ino;
1: + __u64 stx_size;
1: + __u64 stx_blocks;
1: + __u64 stx_attributes_mask;
1: + struct statx_timestamp stx_atime;
1: + struct statx_timestamp stx_btime;
1: + struct statx_timestamp stx_ctime;
1: + struct statx_timestamp stx_mtime;
1: + __u32 stx_rdev_major;
1: + __u32 stx_rdev_minor;
1: + __u32 stx_dev_major;
1: + __u32 stx_dev_minor;
1: + __u64 stx_mnt_id;
1: + __u64 __spare2;
1: + __u64 __spare3[12];
1: +};
1: +
1: +struct mount;
1: +
1: +struct mnt_namespace {
1: + atomic_t count;
1: + struct ns_common ns;
1: + struct mount *root;
1: + struct list_head list;
1: + spinlock_t ns_lock;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + u64 seq;
1: + wait_queue_head_t poll;
1: + u64 event;
1: + unsigned int mounts;
1: + unsigned int pending_mounts;
1: +};
1: +
1: +struct mnt_pcp;
1: +
1: +struct mountpoint;
1: +
1: +struct mount {
1: + struct hlist_node mnt_hash;
1: + struct mount *mnt_parent;
1: + struct dentry *mnt_mountpoint;
1: + struct vfsmount mnt;
1: + union {
1: + struct callback_head mnt_rcu;
1: + struct llist_node mnt_llist;
1: + };
1: + struct mnt_pcp *mnt_pcp;
1: + struct list_head mnt_mounts;
1: + struct list_head mnt_child;
1: + struct list_head mnt_instance;
1: + const char *mnt_devname;
1: + struct list_head mnt_list;
1: + struct list_head mnt_expire;
1: + struct list_head mnt_share;
1: + struct list_head mnt_slave_list;
1: + struct list_head mnt_slave;
1: + struct mount *mnt_master;
1: + struct mnt_namespace *mnt_ns;
1: + struct mountpoint *mnt_mp;
1: + union {
1: + struct hlist_node mnt_mp_list;
1: + struct hlist_node mnt_umount;
1: + };
1: + struct list_head mnt_umounting;
1: + struct fsnotify_mark_connector *mnt_fsnotify_marks;
1: + __u32 mnt_fsnotify_mask;
1: + int mnt_id;
1: + int mnt_group_id;
1: + int mnt_expiry_mark;
1: + struct hlist_head mnt_pins;
1: + struct hlist_head mnt_stuck_children;
1: +};
1: +
1: +struct mnt_pcp {
1: + int mnt_count;
1: + int mnt_writers;
1: +};
1: +
1: +struct mountpoint {
1: + struct hlist_node m_hash;
1: + struct dentry *m_dentry;
1: + struct hlist_head m_list;
1: + int m_count;
1: +};
1: +
1: +typedef short unsigned int ushort;
1: +
1: +struct user_arg_ptr {
1: + bool is_compat;
1: + union {
1: + const char * const *native;
1: + const compat_uptr_t *compat;
1: + } ptr;
1: +};
1: +
1: +enum inode_i_mutex_lock_class {
1: + I_MUTEX_NORMAL = 0,
1: + I_MUTEX_PARENT = 1,
1: + I_MUTEX_CHILD = 2,
1: + I_MUTEX_XATTR = 3,
1: + I_MUTEX_NONDIR2 = 4,
1: + I_MUTEX_PARENT2 = 5,
1: +};
1: +
1: +struct pseudo_fs_context {
1: + const struct super_operations *ops;
1: + const struct xattr_handler **xattr;
1: + const struct dentry_operations *dops;
1: + long unsigned int magic;
1: +};
1: +
1: +struct name_snapshot {
1: + struct qstr name;
1: + unsigned char inline_name[32];
1: +};
1: +
1: +struct saved {
1: + struct path link;
1: + struct delayed_call done;
1: + const char *name;
1: + unsigned int seq;
1: +};
1: +
1: +struct nameidata {
1: + struct path path;
1: + struct qstr last;
1: + struct path root;
1: + struct inode *inode;
1: + unsigned int flags;
1: + unsigned int seq;
1: + unsigned int m_seq;
1: + unsigned int r_seq;
1: + int last_type;
1: + unsigned int depth;
1: + int total_link_count;
1: + struct saved *stack;
1: + struct saved internal[2];
1: + struct filename *name;
1: + struct nameidata *saved;
1: + unsigned int root_seq;
1: + int dfd;
1: + kuid_t dir_uid;
1: + umode_t dir_mode;
1: +};
1: +
1: +enum {
1: + LAST_NORM = 0,
1: + LAST_ROOT = 1,
1: + LAST_DOT = 2,
1: + LAST_DOTDOT = 3,
1: +};
1: +
1: +enum {
1: + WALK_TRAILING = 1,
1: + WALK_MORE = 2,
1: + WALK_NOFOLLOW = 4,
1: +};
1: +
1: +struct word_at_a_time {
1: + const long unsigned int one_bits;
1: + const long unsigned int high_bits;
1: +};
1: +
1: +struct compat_flock {
1: + short int l_type;
1: + short int l_whence;
1: + compat_off_t l_start;
1: + compat_off_t l_len;
1: + compat_pid_t l_pid;
1: +};
1: +
1: +struct compat_flock64 {
1: + short int l_type;
1: + short int l_whence;
1: + compat_loff_t l_start;
1: + compat_loff_t l_len;
1: + compat_pid_t l_pid;
1: +};
1: +
1: +struct f_owner_ex {
1: + int type;
1: + __kernel_pid_t pid;
1: +};
1: +
1: +struct flock {
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_off_t l_start;
1: + __kernel_off_t l_len;
1: + __kernel_pid_t l_pid;
1: +};
1: +
1: +struct file_clone_range {
1: + __s64 src_fd;
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u64 dest_offset;
1: +};
1: +
1: +struct file_dedupe_range_info {
1: + __s64 dest_fd;
1: + __u64 dest_offset;
1: + __u64 bytes_deduped;
1: + __s32 status;
1: + __u32 reserved;
1: +};
1: +
1: +struct file_dedupe_range {
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u16 dest_count;
1: + __u16 reserved1;
1: + __u32 reserved2;
1: + struct file_dedupe_range_info info[0];
1: +};
1: +
1: +typedef int get_block_t(struct inode *, sector_t, struct buffer_head *, int);
1: +
1: +struct fiemap_extent;
1: +
1: +struct fiemap_extent_info {
1: + unsigned int fi_flags;
1: + unsigned int fi_extents_mapped;
1: + unsigned int fi_extents_max;
1: + struct fiemap_extent *fi_extents_start;
1: +};
1: +
1: +struct space_resv {
1: + __s16 l_type;
1: + __s16 l_whence;
1: + __s64 l_start;
1: + __s64 l_len;
1: + __s32 l_sysid;
1: + __u32 l_pid;
1: + __s32 l_pad[4];
1: +};
1: +
1: +struct fiemap_extent {
1: + __u64 fe_logical;
1: + __u64 fe_physical;
1: + __u64 fe_length;
1: + __u64 fe_reserved64[2];
1: + __u32 fe_flags;
1: + __u32 fe_reserved[3];
1: +};
1: +
1: +struct fiemap {
1: + __u64 fm_start;
1: + __u64 fm_length;
1: + __u32 fm_flags;
1: + __u32 fm_mapped_extents;
1: + __u32 fm_extent_count;
1: + __u32 fm_reserved;
1: + struct fiemap_extent fm_extents[0];
1: +};
1: +
1: +struct linux_dirent64 {
1: + u64 d_ino;
1: + s64 d_off;
1: + short unsigned int d_reclen;
1: + unsigned char d_type;
1: + char d_name[0];
1: +};
1: +
1: +struct linux_dirent {
1: + long unsigned int d_ino;
1: + long unsigned int d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: +};
1: +
1: +struct getdents_callback {
1: + struct dir_context ctx;
1: + struct linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +struct getdents_callback64 {
1: + struct dir_context ctx;
1: + struct linux_dirent64 *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +struct compat_old_linux_dirent {
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_offset;
1: + short unsigned int d_namlen;
1: + char d_name[1];
1: +};
1: +
1: +struct compat_readdir_callback {
1: + struct dir_context ctx;
1: + struct compat_old_linux_dirent *dirent;
1: + int result;
1: +};
1: +
1: +struct compat_linux_dirent {
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: +};
1: +
1: +struct compat_getdents_callback {
1: + struct dir_context ctx;
1: + struct compat_linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int fds_bits[16];
1: +} __kernel_fd_set;
1: +
1: +typedef __kernel_fd_set fd_set;
1: +
1: +struct poll_table_entry {
1: + struct file *filp;
1: + __poll_t key;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *wait_address;
1: +};
1: +
1: +struct poll_table_page;
1: +
1: +struct poll_wqueues {
1: + poll_table pt;
1: + struct poll_table_page *table;
1: + struct task_struct *polling_task;
1: + int triggered;
1: + int error;
1: + int inline_index;
1: + struct poll_table_entry inline_entries[9];
1: +};
1: +
1: +struct poll_table_page {
1: + struct poll_table_page *next;
1: + struct poll_table_entry *entry;
1: + struct poll_table_entry entries[0];
1: +};
1: +
1: +enum poll_time_type {
1: + PT_TIMEVAL = 0,
1: + PT_OLD_TIMEVAL = 1,
1: + PT_TIMESPEC = 2,
1: + PT_OLD_TIMESPEC = 3,
1: +};
1: +
1: +typedef struct {
1: + long unsigned int *in;
1: + long unsigned int *out;
1: + long unsigned int *ex;
1: + long unsigned int *res_in;
1: + long unsigned int *res_out;
1: + long unsigned int *res_ex;
1: +} fd_set_bits;
1: +
1: +struct sigset_argpack {
1: + sigset_t *p;
1: + size_t size;
1: +};
1: +
1: +struct poll_list {
1: + struct poll_list *next;
1: + int len;
1: + struct pollfd entries[0];
1: +};
1: +
1: +struct compat_sel_arg_struct {
1: + compat_ulong_t n;
1: + compat_uptr_t inp;
1: + compat_uptr_t outp;
1: + compat_uptr_t exp;
1: + compat_uptr_t tvp;
1: +};
1: +
1: +struct compat_sigset_argpack {
1: + compat_uptr_t p;
1: + compat_size_t size;
1: +};
1: +
1: +enum dentry_d_lock_class {
1: + DENTRY_D_LOCK_NORMAL = 0,
1: + DENTRY_D_LOCK_NESTED = 1,
1: +};
1: +
1: +struct external_name {
1: + union {
1: + atomic_t count;
1: + struct callback_head head;
1: + } u;
1: + unsigned char name[0];
1: +};
1: +
1: +enum d_walk_ret {
1: + D_WALK_CONTINUE = 0,
1: + D_WALK_QUIT = 1,
1: + D_WALK_NORETRY = 2,
1: + D_WALK_SKIP = 3,
1: +};
1: +
1: +struct check_mount {
1: + struct vfsmount *mnt;
1: + unsigned int mounted;
1: +};
1: +
1: +struct select_data {
1: + struct dentry *start;
1: + union {
1: + long int found;
1: + struct dentry *victim;
1: + };
1: + struct list_head dispose;
1: +};
1: +
1: +struct fsxattr {
1: + __u32 fsx_xflags;
1: + __u32 fsx_extsize;
1: + __u32 fsx_nextents;
1: + __u32 fsx_projid;
1: + __u32 fsx_cowextsize;
1: + unsigned char fsx_pad[8];
1: +};
1: +
1: +enum file_time_flags {
1: + S_ATIME = 1,
1: + S_MTIME = 2,
1: + S_CTIME = 4,
1: + S_VERSION = 8,
1: +};
1: +
1: +struct proc_mounts {
1: + struct mnt_namespace *ns;
1: + struct path root;
1: + int (*show)(struct seq_file *, struct vfsmount *);
1: + struct mount cursor;
1: +};
1: +
1: +enum umount_tree_flags {
1: + UMOUNT_SYNC = 1,
1: + UMOUNT_PROPAGATE = 2,
1: + UMOUNT_CONNECTED = 4,
1: +};
1: +
1: +struct unicode_map {
1: + const char *charset;
1: + int version;
1: +};
1: +
1: +struct simple_transaction_argresp {
1: + ssize_t size;
1: + char data[0];
1: +};
1: +
1: +struct simple_attr {
1: + int (*get)(void *, u64 *);
1: + int (*set)(void *, u64);
1: + char get_buf[24];
1: + char set_buf[24];
1: + void *data;
1: + const char *fmt;
1: + struct mutex mutex;
1: +};
1: +
1: +struct wb_writeback_work {
1: + long int nr_pages;
1: + struct super_block *sb;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int tagged_writepages: 1;
1: + unsigned int for_kupdate: 1;
1: + unsigned int range_cyclic: 1;
1: + unsigned int for_background: 1;
1: + unsigned int for_sync: 1;
1: + unsigned int auto_free: 1;
1: + enum wb_reason reason;
1: + struct list_head list;
1: + struct wb_completion *done;
1: +};
1: +
1: +struct trace_event_raw_writeback_page_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_dirty_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_inode_foreign_history {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t cgroup_ino;
1: + unsigned int history;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_inode_switch_wbs {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t old_cgroup_ino;
1: + ino_t new_cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_track_foreign_dirty {
1: + struct trace_entry ent;
1: + char name[32];
1: + u64 bdi_id;
1: + ino_t ino;
1: + unsigned int memcg_id;
1: + ino_t cgroup_ino;
1: + ino_t page_cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_flush_foreign {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + unsigned int frn_bdi_id;
1: + unsigned int frn_memcg_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_write_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + int sync_mode;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_work_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_pages;
1: + dev_t sb_dev;
1: + int sync_mode;
1: + int for_kupdate;
1: + int range_cyclic;
1: + int for_background;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_pages_written {
1: + struct trace_entry ent;
1: + long int pages;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_bdi_register {
1: + struct trace_entry ent;
1: + char name[32];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wbc_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + int sync_mode;
1: + int for_kupdate;
1: + int for_background;
1: + int for_reclaim;
1: + int range_cyclic;
1: + long int range_start;
1: + long int range_end;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_queue_io {
1: + struct trace_entry ent;
1: + char name[32];
1: + long unsigned int older;
1: + long int age;
1: + int moved;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_global_dirty_state {
1: + struct trace_entry ent;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int background_thresh;
1: + long unsigned int dirty_thresh;
1: + long unsigned int dirty_limit;
1: + long unsigned int nr_dirtied;
1: + long unsigned int nr_written;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_bdi_dirty_ratelimit {
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int write_bw;
1: + long unsigned int avg_write_bw;
1: + long unsigned int dirty_rate;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_balance_dirty_pages {
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int limit;
1: + long unsigned int setpoint;
1: + long unsigned int dirty;
1: + long unsigned int bdi_setpoint;
1: + long unsigned int bdi_dirty;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + unsigned int dirtied;
1: + unsigned int dirtied_pause;
1: + long unsigned int paused;
1: + long int pause;
1: + long unsigned int period;
1: + long int think;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_sb_inodes_requeue {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_congest_waited_template {
1: + struct trace_entry ent;
1: + unsigned int usec_timeout;
1: + unsigned int usec_delayed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_single_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + long unsigned int writeback_index;
1: + long int nr_to_write;
1: + long unsigned int wrote;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_inode_template {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int state;
1: + __u16 mode;
1: + long unsigned int dirtied_when;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_writeback_page_template {};
1: +
1: +struct trace_event_data_offsets_writeback_dirty_inode_template {};
1: +
1: +struct trace_event_data_offsets_inode_foreign_history {};
1: +
1: +struct trace_event_data_offsets_inode_switch_wbs {};
1: +
1: +struct trace_event_data_offsets_track_foreign_dirty {};
1: +
1: +struct trace_event_data_offsets_flush_foreign {};
1: +
1: +struct trace_event_data_offsets_writeback_write_inode_template {};
1: +
1: +struct trace_event_data_offsets_writeback_work_class {};
1: +
1: +struct trace_event_data_offsets_writeback_pages_written {};
1: +
1: +struct trace_event_data_offsets_writeback_class {};
1: +
1: +struct trace_event_data_offsets_writeback_bdi_register {};
1: +
1: +struct trace_event_data_offsets_wbc_class {};
1: +
1: +struct trace_event_data_offsets_writeback_queue_io {};
1: +
1: +struct trace_event_data_offsets_global_dirty_state {};
1: +
1: +struct trace_event_data_offsets_bdi_dirty_ratelimit {};
1: +
1: +struct trace_event_data_offsets_balance_dirty_pages {};
1: +
1: +struct trace_event_data_offsets_writeback_sb_inodes_requeue {};
1: +
1: +struct trace_event_data_offsets_writeback_congest_waited_template {};
1: +
1: +struct trace_event_data_offsets_writeback_single_inode_template {};
1: +
1: +struct trace_event_data_offsets_writeback_inode_template {};
1: +
1: +typedef void (*btf_trace_writeback_dirty_page)(void *, struct page *, struct address_space *);
1: +
1: +typedef void (*btf_trace_wait_on_page_writeback)(void *, struct page *, struct address_space *);
1: +
1: +typedef void (*btf_trace_writeback_mark_inode_dirty)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode_start)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_inode_foreign_history)(void *, struct inode *, struct writeback_control *, unsigned int);
1: +
1: +typedef void (*btf_trace_inode_switch_wbs)(void *, struct inode *, struct bdi_writeback *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_track_foreign_dirty)(void *, struct page *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_flush_foreign)(void *, struct bdi_writeback *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_write_inode_start)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_writeback_write_inode)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_writeback_queue)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_exec)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_start)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_written)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_wait)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_pages_written)(void *, long int);
1: +
1: +typedef void (*btf_trace_writeback_wake_background)(void *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_writeback_bdi_register)(void *, struct backing_dev_info *);
1: +
1: +typedef void (*btf_trace_wbc_writepage)(void *, struct writeback_control *, struct backing_dev_info *);
1: +
1: +typedef void (*btf_trace_writeback_queue_io)(void *, struct bdi_writeback *, struct wb_writeback_work *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_global_dirty_state)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_bdi_dirty_ratelimit)(void *, struct bdi_writeback *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_balance_dirty_pages)(void *, struct bdi_writeback *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long int, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_sb_inodes_requeue)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_congestion_wait)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_wait_iff_congested)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_single_inode_start)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_single_inode)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_lazytime)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_lazytime_iput)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode_enqueue)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_sb_mark_inode_writeback)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_sb_clear_inode_writeback)(void *, struct inode *);
1: +
1: +struct inode_switch_wbs_context {
1: + struct inode *inode;
1: + struct bdi_writeback *new_wb;
1: + struct callback_head callback_head;
1: + struct work_struct work;
1: +};
1: +
1: +struct splice_desc {
1: + size_t total_len;
1: + unsigned int len;
1: + unsigned int flags;
1: + union {
1: + void *userptr;
1: + struct file *file;
1: + void *data;
1: + } u;
1: + loff_t pos;
1: + loff_t *opos;
1: + size_t num_spliced;
1: + bool need_wakeup;
1: +};
1: +
1: +typedef int splice_actor(struct pipe_inode_info *, struct pipe_buffer *, struct splice_desc *);
1: +
1: +typedef int splice_direct_actor(struct pipe_inode_info *, struct splice_desc *);
1: +
1: +struct old_utimbuf32 {
1: + old_time32_t actime;
1: + old_time32_t modtime;
1: +};
1: +
1: +typedef int __kernel_daddr_t;
1: +
1: +struct ustat {
1: + __kernel_daddr_t f_tfree;
1: + __kernel_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: +};
1: +
1: +typedef s32 compat_daddr_t;
1: +
1: +typedef __kernel_fsid_t compat_fsid_t;
1: +
1: +struct compat_statfs {
1: + int f_type;
1: + int f_bsize;
1: + int f_blocks;
1: + int f_bfree;
1: + int f_bavail;
1: + int f_files;
1: + int f_ffree;
1: + compat_fsid_t f_fsid;
1: + int f_namelen;
1: + int f_frsize;
1: + int f_flags;
1: + int f_spare[4];
1: +};
1: +
1: +struct compat_ustat {
1: + compat_daddr_t f_tfree;
1: + compat_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: +};
1: +
1: +struct statfs {
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __kernel_long_t f_blocks;
1: + __kernel_long_t f_bfree;
1: + __kernel_long_t f_bavail;
1: + __kernel_long_t f_files;
1: + __kernel_long_t f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: +};
1: +
1: +struct statfs64 {
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: +};
1: +
1: +struct compat_statfs64___2 {
1: + __u32 f_type;
1: + __u32 f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __u32 f_namelen;
1: + __u32 f_frsize;
1: + __u32 f_flags;
1: + __u32 f_spare[4];
1: +} __attribute__((packed));
1: +
1: +typedef struct ns_common *ns_get_path_helper_t(void *);
1: +
1: +struct ns_get_path_task_args {
1: + const struct proc_ns_operations *ns_ops;
1: + struct task_struct *task;
1: +};
1: +
1: +enum legacy_fs_param {
1: + LEGACY_FS_UNSET_PARAMS = 0,
1: + LEGACY_FS_MONOLITHIC_PARAMS = 1,
1: + LEGACY_FS_INDIVIDUAL_PARAMS = 2,
1: +};
1: +
1: +struct legacy_fs_context {
1: + char *legacy_data;
1: + size_t data_size;
1: + enum legacy_fs_param param_type;
1: +};
1: +
1: +enum fsconfig_command {
1: + FSCONFIG_SET_FLAG = 0,
1: + FSCONFIG_SET_STRING = 1,
1: + FSCONFIG_SET_BINARY = 2,
1: + FSCONFIG_SET_PATH = 3,
1: + FSCONFIG_SET_PATH_EMPTY = 4,
1: + FSCONFIG_SET_FD = 5,
1: + FSCONFIG_CMD_CREATE = 6,
1: + FSCONFIG_CMD_RECONFIGURE = 7,
1: +};
1: +
1: +struct dax_device;
1: +
1: +struct iomap_page_ops;
1: +
1: +struct iomap___2 {
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + struct block_device *bdev;
1: + struct dax_device *dax_dev;
1: + void *inline_data;
1: + void *private;
1: + const struct iomap_page_ops *page_ops;
1: +};
1: +
1: +struct iomap_page_ops {
1: + int (*page_prepare)(struct inode *, loff_t, unsigned int, struct iomap___2 *);
1: + void (*page_done)(struct inode *, loff_t, unsigned int, struct page *, struct iomap___2 *);
1: +};
1: +
1: +struct decrypt_bh_ctx {
1: + struct work_struct work;
1: + struct buffer_head *bh;
1: +};
1: +
1: +struct bh_lru {
1: + struct buffer_head *bhs[16];
1: +};
1: +
1: +struct bh_accounting {
1: + int nr;
1: + int ratelimit;
1: +};
1: +
1: +enum {
1: + DISK_EVENT_MEDIA_CHANGE = 1,
1: + DISK_EVENT_EJECT_REQUEST = 2,
1: +};
1: +
1: +enum {
1: + BIOSET_NEED_BVECS = 1,
1: + BIOSET_NEED_RESCUER = 2,
1: +};
1: +
1: +struct bdev_inode {
1: + struct block_device bdev;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct blkdev_dio {
1: + union {
1: + struct kiocb *iocb;
1: + struct task_struct *waiter;
1: + };
1: + size_t size;
1: + atomic_t ref;
1: + bool multi_bio: 1;
1: + bool should_dirty: 1;
1: + bool is_sync: 1;
1: + struct bio bio;
1: +};
1: +
1: +struct bd_holder_disk {
1: + struct list_head list;
1: + struct gendisk *disk;
1: + int refcnt;
1: +};
1: +
1: +typedef int dio_iodone_t(struct kiocb *, loff_t, ssize_t, void *);
1: +
1: +typedef void dio_submit_t(struct bio *, struct inode *, loff_t);
1: +
1: +enum {
1: + DIO_LOCKING = 1,
1: + DIO_SKIP_HOLES = 2,
1: +};
1: +
1: +struct dio_submit {
1: + struct bio *bio;
1: + unsigned int blkbits;
1: + unsigned int blkfactor;
1: + unsigned int start_zero_done;
1: + int pages_in_io;
1: + sector_t block_in_file;
1: + unsigned int blocks_available;
1: + int reap_counter;
1: + sector_t final_block_in_request;
1: + int boundary;
1: + get_block_t *get_block;
1: + dio_submit_t *submit_io;
1: + loff_t logical_offset_in_bio;
1: + sector_t final_block_in_bio;
1: + sector_t next_block_for_io;
1: + struct page *cur_page;
1: + unsigned int cur_page_offset;
1: + unsigned int cur_page_len;
1: + sector_t cur_page_block;
1: + loff_t cur_page_fs_offset;
1: + struct iov_iter *iter;
1: + unsigned int head;
1: + unsigned int tail;
1: + size_t from;
1: + size_t to;
1: +};
1: +
1: +struct dio {
1: + int flags;
1: + int op;
1: + int op_flags;
1: + blk_qc_t bio_cookie;
1: + struct gendisk *bio_disk;
1: + struct inode *inode;
1: + loff_t i_size;
1: + dio_iodone_t *end_io;
1: + void *private;
1: + spinlock_t bio_lock;
1: + int page_errors;
1: + int is_async;
1: + bool defer_completion;
1: + bool should_dirty;
1: + int io_error;
1: + long unsigned int refcount;
1: + struct bio *bio_list;
1: + struct task_struct *waiter;
1: + struct kiocb *iocb;
1: + ssize_t result;
1: + union {
1: + struct page *pages[64];
1: + struct work_struct complete_work;
1: + };
1: + long: 64;
1: +};
1: +
1: +struct bvec_iter_all {
1: + struct bio_vec bv;
1: + int idx;
1: + unsigned int done;
1: +};
1: +
1: +struct mpage_readpage_args {
1: + struct bio *bio;
1: + struct page *page;
1: + unsigned int nr_pages;
1: + bool is_readahead;
1: + sector_t last_block_in_bio;
1: + struct buffer_head map_bh;
1: + long unsigned int first_logical_block;
1: + get_block_t *get_block;
1: +};
1: +
1: +struct mpage_data {
1: + struct bio *bio;
1: + sector_t last_block_in_bio;
1: + get_block_t *get_block;
1: + unsigned int use_writepage;
1: +};
1: +
1: +typedef u32 nlink_t;
1: +
1: +typedef int (*proc_write_t)(struct file *, char *, size_t);
1: +
1: +struct proc_dir_entry {
1: + atomic_t in_use;
1: + refcount_t refcnt;
1: + struct list_head pde_openers;
1: + spinlock_t pde_unload_lock;
1: + struct completion *pde_unload_completion;
1: + const struct inode_operations *proc_iops;
1: + union {
1: + const struct proc_ops *proc_ops;
1: + const struct file_operations *proc_dir_ops;
1: + };
1: + const struct dentry_operations *proc_dops;
1: + union {
1: + const struct seq_operations *seq_ops;
1: + int (*single_show)(struct seq_file *, void *);
1: + };
1: + proc_write_t write;
1: + void *data;
1: + unsigned int state_size;
1: + unsigned int low_ino;
1: + nlink_t nlink;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct proc_dir_entry *parent;
1: + struct rb_root subdir;
1: + struct rb_node subdir_node;
1: + char *name;
1: + umode_t mode;
1: + u8 flags;
1: + u8 namelen;
1: + char inline_name[0];
1: +};
1: +
1: +union proc_op {
1: + int (*proc_get_link)(struct dentry *, struct path *);
1: + int (*proc_show)(struct seq_file *, struct pid_namespace *, struct pid *, struct task_struct *);
1: + const char *lsm;
1: +};
1: +
1: +struct proc_inode {
1: + struct pid *pid;
1: + unsigned int fd;
1: + union proc_op op;
1: + struct proc_dir_entry *pde;
1: + struct ctl_table_header *sysctl;
1: + struct ctl_table *sysctl_entry;
1: + struct hlist_node sibling_inodes;
1: + const struct proc_ns_operations *ns_ops;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct proc_fs_opts {
1: + int flag;
1: + const char *str;
1: +};
1: +
1: +struct file_handle {
1: + __u32 handle_bytes;
1: + int handle_type;
1: + unsigned char f_handle[0];
1: +};
1: +
1: +struct inotify_inode_mark {
1: + struct fsnotify_mark fsn_mark;
1: + int wd;
1: +};
1: +
1: +struct dnotify_struct {
1: + struct dnotify_struct *dn_next;
1: + __u32 dn_mask;
1: + int dn_fd;
1: + struct file *dn_filp;
1: + fl_owner_t dn_owner;
1: +};
1: +
1: +struct dnotify_mark {
1: + struct fsnotify_mark fsn_mark;
1: + struct dnotify_struct *dn;
1: +};
1: +
1: +struct inotify_event_info {
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + int wd;
1: + u32 sync_cookie;
1: + int name_len;
1: + char name[0];
1: +};
1: +
1: +struct inotify_event {
1: + __s32 wd;
1: + __u32 mask;
1: + __u32 cookie;
1: + __u32 len;
1: + char name[0];
1: +};
1: +
1: +enum {
1: + FAN_EVENT_INIT = 0,
1: + FAN_EVENT_REPORTED = 1,
1: + FAN_EVENT_ANSWERED = 2,
1: + FAN_EVENT_CANCELED = 3,
1: +};
1: +
1: +struct fanotify_fh {
1: + u8 type;
1: + u8 len;
1: + u8 flags;
1: + u8 pad;
1: + unsigned char buf[0];
1: +};
1: +
1: +struct fanotify_info {
1: + u8 dir_fh_totlen;
1: + u8 file_fh_totlen;
1: + u8 name_len;
1: + u8 pad;
1: + unsigned char buf[0];
1: +};
1: +
1: +enum fanotify_event_type {
1: + FANOTIFY_EVENT_TYPE_FID = 0,
1: + FANOTIFY_EVENT_TYPE_FID_NAME = 1,
1: + FANOTIFY_EVENT_TYPE_PATH = 2,
1: + FANOTIFY_EVENT_TYPE_PATH_PERM = 3,
1: + FANOTIFY_EVENT_TYPE_OVERFLOW = 4,
1: +};
1: +
1: +struct fanotify_event {
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + enum fanotify_event_type type;
1: + struct pid *pid;
1: +};
1: +
1: +struct fanotify_fid_event {
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_fh object_fh;
1: + unsigned char _inline_fh_buf[12];
1: +};
1: +
1: +struct fanotify_name_event {
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_info info;
1: +};
1: +
1: +struct fanotify_path_event {
1: + struct fanotify_event fae;
1: + struct path path;
1: +};
1: +
1: +struct fanotify_perm_event {
1: + struct fanotify_event fae;
1: + struct path path;
1: + short unsigned int response;
1: + short unsigned int state;
1: + int fd;
1: +};
1: +
1: +struct fanotify_event_metadata {
1: + __u32 event_len;
1: + __u8 vers;
1: + __u8 reserved;
1: + __u16 metadata_len;
1: + __u64 mask;
1: + __s32 fd;
1: + __s32 pid;
1: +};
1: +
1: +struct fanotify_event_info_header {
1: + __u8 info_type;
1: + __u8 pad;
1: + __u16 len;
1: +};
1: +
1: +struct fanotify_event_info_fid {
1: + struct fanotify_event_info_header hdr;
1: + __kernel_fsid_t fsid;
1: + unsigned char handle[0];
1: +};
1: +
1: +struct fanotify_response {
1: + __s32 fd;
1: + __u32 response;
1: +};
1: +
1: +struct epoll_event {
1: + __poll_t events;
1: + __u64 data;
1: +};
1: +
1: +struct epoll_filefd {
1: + struct file *file;
1: + int fd;
1: +} __attribute__((packed));
1: +
1: +struct nested_call_node {
1: + struct list_head llink;
1: + void *cookie;
1: + void *ctx;
1: +};
1: +
1: +struct nested_calls {
1: + struct list_head tasks_call_list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct eventpoll;
1: +
1: +struct epitem {
1: + union {
1: + struct rb_node rbn;
1: + struct callback_head rcu;
1: + };
1: + struct list_head rdllink;
1: + struct epitem *next;
1: + struct epoll_filefd ffd;
1: + int nwait;
1: + struct list_head pwqlist;
1: + struct eventpoll *ep;
1: + struct list_head fllink;
1: + struct wakeup_source *ws;
1: + struct epoll_event event;
1: +};
1: +
1: +struct eventpoll {
1: + struct mutex mtx;
1: + wait_queue_head_t wq;
1: + wait_queue_head_t poll_wait;
1: + struct list_head rdllist;
1: + rwlock_t lock;
1: + struct rb_root_cached rbr;
1: + struct epitem *ovflist;
1: + struct wakeup_source *ws;
1: + struct user_struct *user;
1: + struct file *file;
1: + u64 gen;
1: + unsigned int napi_id;
1: +};
1: +
1: +struct eppoll_entry {
1: + struct list_head llink;
1: + struct epitem *base;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *whead;
1: +};
1: +
1: +struct ep_pqueue {
1: + poll_table pt;
1: + struct epitem *epi;
1: +};
1: +
1: +struct ep_send_events_data {
1: + int maxevents;
1: + struct epoll_event *events;
1: + int res;
1: +};
1: +
1: +struct signalfd_siginfo {
1: + __u32 ssi_signo;
1: + __s32 ssi_errno;
1: + __s32 ssi_code;
1: + __u32 ssi_pid;
1: + __u32 ssi_uid;
1: + __s32 ssi_fd;
1: + __u32 ssi_tid;
1: + __u32 ssi_band;
1: + __u32 ssi_overrun;
1: + __u32 ssi_trapno;
1: + __s32 ssi_status;
1: + __s32 ssi_int;
1: + __u64 ssi_ptr;
1: + __u64 ssi_utime;
1: + __u64 ssi_stime;
1: + __u64 ssi_addr;
1: + __u16 ssi_addr_lsb;
1: + __u16 __pad2;
1: + __s32 ssi_syscall;
1: + __u64 ssi_call_addr;
1: + __u32 ssi_arch;
1: + __u8 __pad[28];
1: +};
1: +
1: +struct signalfd_ctx {
1: + sigset_t sigmask;
1: +};
1: +
1: +struct timerfd_ctx {
1: + union {
1: + struct hrtimer tmr;
1: + struct alarm alarm;
1: + } t;
1: + ktime_t tintv;
1: + ktime_t moffs;
1: + wait_queue_head_t wqh;
1: + u64 ticks;
1: + int clockid;
1: + short unsigned int expired;
1: + short unsigned int settime_flags;
1: + struct callback_head rcu;
1: + struct list_head clist;
1: + spinlock_t cancel_lock;
1: + bool might_cancel;
1: +};
1: +
1: +struct eventfd_ctx___2 {
1: + struct kref kref;
1: + wait_queue_head_t wqh;
1: + __u64 count;
1: + unsigned int flags;
1: + int id;
1: +};
1: +
1: +enum userfaultfd_state {
1: + UFFD_STATE_WAIT_API = 0,
1: + UFFD_STATE_RUNNING = 1,
1: +};
1: +
1: +struct userfaultfd_ctx {
1: + wait_queue_head_t fault_pending_wqh;
1: + wait_queue_head_t fault_wqh;
1: + wait_queue_head_t fd_wqh;
1: + wait_queue_head_t event_wqh;
1: + seqcount_spinlock_t refile_seq;
1: + refcount_t refcount;
1: + unsigned int flags;
1: + unsigned int features;
1: + enum userfaultfd_state state;
1: + bool released;
1: + bool mmap_changing;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct uffd_msg {
1: + __u8 event;
1: + __u8 reserved1;
1: + __u16 reserved2;
1: + __u32 reserved3;
1: + union {
1: + struct {
1: + __u64 flags;
1: + __u64 address;
1: + union {
1: + __u32 ptid;
1: + } feat;
1: + } pagefault;
1: + struct {
1: + __u32 ufd;
1: + } fork;
1: + struct {
1: + __u64 from;
1: + __u64 to;
1: + __u64 len;
1: + } remap;
1: + struct {
1: + __u64 start;
1: + __u64 end;
1: + } remove;
1: + struct {
1: + __u64 reserved1;
1: + __u64 reserved2;
1: + __u64 reserved3;
1: + } reserved;
1: + } arg;
1: +};
1: +
1: +struct uffdio_api {
1: + __u64 api;
1: + __u64 features;
1: + __u64 ioctls;
1: +};
1: +
1: +struct uffdio_range {
1: + __u64 start;
1: + __u64 len;
1: +};
1: +
1: +struct uffdio_register {
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __u64 ioctls;
1: +};
1: +
1: +struct uffdio_copy {
1: + __u64 dst;
1: + __u64 src;
1: + __u64 len;
1: + __u64 mode;
1: + __s64 copy;
1: +};
1: +
1: +struct uffdio_zeropage {
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __s64 zeropage;
1: +};
1: +
1: +struct uffdio_writeprotect {
1: + struct uffdio_range range;
1: + __u64 mode;
1: +};
1: +
1: +struct userfaultfd_fork_ctx {
1: + struct userfaultfd_ctx *orig;
1: + struct userfaultfd_ctx *new;
1: + struct list_head list;
1: +};
1: +
1: +struct userfaultfd_unmap_ctx {
1: + struct userfaultfd_ctx *ctx;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct list_head list;
1: +};
1: +
1: +struct userfaultfd_wait_queue {
1: + struct uffd_msg msg;
1: + wait_queue_entry_t wq;
1: + struct userfaultfd_ctx *ctx;
1: + bool waken;
1: +};
1: +
1: +struct userfaultfd_wake_range {
1: + long unsigned int start;
1: + long unsigned int len;
1: +};
1: +
1: +typedef u32 compat_aio_context_t;
1: +
1: +struct kioctx;
1: +
1: +struct kioctx_table {
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + struct kioctx *table[0];
1: +};
1: +
1: +typedef __kernel_ulong_t aio_context_t;
1: +
1: +enum {
1: + IOCB_CMD_PREAD = 0,
1: + IOCB_CMD_PWRITE = 1,
1: + IOCB_CMD_FSYNC = 2,
1: + IOCB_CMD_FDSYNC = 3,
1: + IOCB_CMD_POLL = 5,
1: + IOCB_CMD_NOOP = 6,
1: + IOCB_CMD_PREADV = 7,
1: + IOCB_CMD_PWRITEV = 8,
1: +};
1: +
1: +struct io_event {
1: + __u64 data;
1: + __u64 obj;
1: + __s64 res;
1: + __s64 res2;
1: +};
1: +
1: +struct iocb {
1: + __u64 aio_data;
1: + __u32 aio_key;
1: + __kernel_rwf_t aio_rw_flags;
1: + __u16 aio_lio_opcode;
1: + __s16 aio_reqprio;
1: + __u32 aio_fildes;
1: + __u64 aio_buf;
1: + __u64 aio_nbytes;
1: + __s64 aio_offset;
1: + __u64 aio_reserved2;
1: + __u32 aio_flags;
1: + __u32 aio_resfd;
1: +};
1: +
1: +typedef int kiocb_cancel_fn(struct kiocb *);
1: +
1: +struct aio_ring {
1: + unsigned int id;
1: + unsigned int nr;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int magic;
1: + unsigned int compat_features;
1: + unsigned int incompat_features;
1: + unsigned int header_length;
1: + struct io_event io_events[0];
1: +};
1: +
1: +struct kioctx_cpu;
1: +
1: +struct ctx_rq_wait;
1: +
1: +struct kioctx {
1: + struct percpu_ref users;
1: + atomic_t dead;
1: + struct percpu_ref reqs;
1: + long unsigned int user_id;
1: + struct kioctx_cpu *cpu;
1: + unsigned int req_batch;
1: + unsigned int max_reqs;
1: + unsigned int nr_events;
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_size;
1: + struct page **ring_pages;
1: + long int nr_pages;
1: + struct rcu_work free_rwork;
1: + struct ctx_rq_wait *rq_wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct {
1: + atomic_t reqs_available;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + spinlock_t ctx_lock;
1: + struct list_head active_reqs;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + struct mutex ring_lock;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + };
1: + struct {
1: + unsigned int tail;
1: + unsigned int completed_events;
1: + spinlock_t completion_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct page *internal_pages[8];
1: + struct file *aio_ring_file;
1: + unsigned int id;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kioctx_cpu {
1: + unsigned int reqs_available;
1: +};
1: +
1: +struct ctx_rq_wait {
1: + struct completion comp;
1: + atomic_t count;
1: +};
1: +
1: +struct fsync_iocb {
1: + struct file *file;
1: + struct work_struct work;
1: + bool datasync;
1: + struct cred *creds;
1: +};
1: +
1: +struct poll_iocb {
1: + struct file *file;
1: + struct wait_queue_head *head;
1: + __poll_t events;
1: + bool done;
1: + bool cancelled;
1: + struct wait_queue_entry wait;
1: + struct work_struct work;
1: +};
1: +
1: +struct aio_kiocb {
1: + union {
1: + struct file *ki_filp;
1: + struct kiocb rw;
1: + struct fsync_iocb fsync;
1: + struct poll_iocb poll;
1: + };
1: + struct kioctx *ki_ctx;
1: + kiocb_cancel_fn *ki_cancel;
1: + struct io_event ki_res;
1: + struct list_head ki_list;
1: + refcount_t ki_refcnt;
1: + struct eventfd_ctx *ki_eventfd;
1: +};
1: +
1: +struct aio_poll_table {
1: + struct poll_table_struct pt;
1: + struct aio_kiocb *iocb;
1: + int error;
1: +};
1: +
1: +struct __aio_sigset {
1: + const sigset_t *sigmask;
1: + size_t sigsetsize;
1: +};
1: +
1: +struct __compat_aio_sigset {
1: + compat_uptr_t sigmask;
1: + compat_size_t sigsetsize;
1: +};
1: +
1: +typedef s32 compat_ssize_t;
1: +
1: +enum {
1: + PERCPU_REF_INIT_ATOMIC = 1,
1: + PERCPU_REF_INIT_DEAD = 2,
1: + PERCPU_REF_ALLOW_REINIT = 4,
1: +};
1: +
1: +struct user_msghdr {
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iovec *msg_iov;
1: + __kernel_size_t msg_iovlen;
1: + void *msg_control;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: +};
1: +
1: +struct compat_msghdr {
1: + compat_uptr_t msg_name;
1: + compat_int_t msg_namelen;
1: + compat_uptr_t msg_iov;
1: + compat_size_t msg_iovlen;
1: + compat_uptr_t msg_control;
1: + compat_size_t msg_controllen;
1: + compat_uint_t msg_flags;
1: +};
1: +
1: +struct scm_fp_list {
1: + short int count;
1: + short int max;
1: + struct user_struct *user;
1: + struct file *fp[253];
1: +};
1: +
1: +struct unix_skb_parms {
1: + struct pid *pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct scm_fp_list *fp;
1: + u32 secid;
1: + u32 consumed;
1: +};
1: +
1: +struct trace_event_raw_io_uring_create {
1: + struct trace_entry ent;
1: + int fd;
1: + void *ctx;
1: + u32 sq_entries;
1: + u32 cq_entries;
1: + u32 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_register {
1: + struct trace_entry ent;
1: + void *ctx;
1: + unsigned int opcode;
1: + unsigned int nr_files;
1: + unsigned int nr_bufs;
1: + bool eventfd;
1: + long int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_file_get {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int fd;
1: + char __data[0];
1: +};
1: +
1: +struct io_wq_work;
1: +
1: +struct trace_event_raw_io_uring_queue_async_work {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int rw;
1: + void *req;
1: + struct io_wq_work *work;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct io_wq_work_node {
1: + struct io_wq_work_node *next;
1: +};
1: +
1: +struct io_wq_work {
1: + struct io_wq_work_node list;
1: + struct io_identity *identity;
1: + unsigned int flags;
1: +};
1: +
1: +struct trace_event_raw_io_uring_defer {
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + long long unsigned int data;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_link {
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + void *target_req;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_cqring_wait {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int min_events;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_fail_link {
1: + struct trace_entry ent;
1: + void *req;
1: + void *link;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_complete {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u64 user_data;
1: + long int res;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_submit_sqe {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + bool force_nonblock;
1: + bool sq_thread;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_poll_arm {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + int events;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_poll_wake {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_task_add {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_task_run {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_io_uring_create {};
1: +
1: +struct trace_event_data_offsets_io_uring_register {};
1: +
1: +struct trace_event_data_offsets_io_uring_file_get {};
1: +
1: +struct trace_event_data_offsets_io_uring_queue_async_work {};
1: +
1: +struct trace_event_data_offsets_io_uring_defer {};
1: +
1: +struct trace_event_data_offsets_io_uring_link {};
1: +
1: +struct trace_event_data_offsets_io_uring_cqring_wait {};
1: +
1: +struct trace_event_data_offsets_io_uring_fail_link {};
1: +
1: +struct trace_event_data_offsets_io_uring_complete {};
1: +
1: +struct trace_event_data_offsets_io_uring_submit_sqe {};
1: +
1: +struct trace_event_data_offsets_io_uring_poll_arm {};
1: +
1: +struct trace_event_data_offsets_io_uring_poll_wake {};
1: +
1: +struct trace_event_data_offsets_io_uring_task_add {};
1: +
1: +struct trace_event_data_offsets_io_uring_task_run {};
1: +
1: +typedef void (*btf_trace_io_uring_create)(void *, int, void *, u32, u32, u32);
1: +
1: +typedef void (*btf_trace_io_uring_register)(void *, void *, unsigned int, unsigned int, unsigned int, bool, long int);
1: +
1: +typedef void (*btf_trace_io_uring_file_get)(void *, void *, int);
1: +
1: +typedef void (*btf_trace_io_uring_queue_async_work)(void *, void *, int, void *, struct io_wq_work *, unsigned int);
1: +
1: +typedef void (*btf_trace_io_uring_defer)(void *, void *, void *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_io_uring_link)(void *, void *, void *, void *);
1: +
1: +typedef void (*btf_trace_io_uring_cqring_wait)(void *, void *, int);
1: +
1: +typedef void (*btf_trace_io_uring_fail_link)(void *, void *, void *);
1: +
1: +typedef void (*btf_trace_io_uring_complete)(void *, void *, u64, long int);
1: +
1: +typedef void (*btf_trace_io_uring_submit_sqe)(void *, void *, u8, u64, bool, bool);
1: +
1: +typedef void (*btf_trace_io_uring_poll_arm)(void *, void *, u8, u64, int, int);
1: +
1: +typedef void (*btf_trace_io_uring_poll_wake)(void *, void *, u8, u64, int);
1: +
1: +typedef void (*btf_trace_io_uring_task_add)(void *, void *, u8, u64, int);
1: +
1: +typedef void (*btf_trace_io_uring_task_run)(void *, void *, u8, u64);
1: +
1: +struct io_uring_sqe {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 ioprio;
1: + __s32 fd;
1: + union {
1: + __u64 off;
1: + __u64 addr2;
1: + };
1: + union {
1: + __u64 addr;
1: + __u64 splice_off_in;
1: + };
1: + __u32 len;
1: + union {
1: + __kernel_rwf_t rw_flags;
1: + __u32 fsync_flags;
1: + __u16 poll_events;
1: + __u32 poll32_events;
1: + __u32 sync_range_flags;
1: + __u32 msg_flags;
1: + __u32 timeout_flags;
1: + __u32 accept_flags;
1: + __u32 cancel_flags;
1: + __u32 open_flags;
1: + __u32 statx_flags;
1: + __u32 fadvise_advice;
1: + __u32 splice_flags;
1: + };
1: + __u64 user_data;
1: + union {
1: + struct {
1: + union {
1: + __u16 buf_index;
1: + __u16 buf_group;
1: + };
1: + __u16 personality;
1: + __s32 splice_fd_in;
1: + };
1: + __u64 __pad2[3];
1: + };
1: +};
1: +
1: +enum {
1: + IOSQE_FIXED_FILE_BIT = 0,
1: + IOSQE_IO_DRAIN_BIT = 1,
1: + IOSQE_IO_LINK_BIT = 2,
1: + IOSQE_IO_HARDLINK_BIT = 3,
1: + IOSQE_ASYNC_BIT = 4,
1: + IOSQE_BUFFER_SELECT_BIT = 5,
1: +};
1: +
1: +enum {
1: + IORING_OP_NOP = 0,
1: + IORING_OP_READV = 1,
1: + IORING_OP_WRITEV = 2,
1: + IORING_OP_FSYNC = 3,
1: + IORING_OP_READ_FIXED = 4,
1: + IORING_OP_WRITE_FIXED = 5,
1: + IORING_OP_POLL_ADD = 6,
1: + IORING_OP_POLL_REMOVE = 7,
1: + IORING_OP_SYNC_FILE_RANGE = 8,
1: + IORING_OP_SENDMSG = 9,
1: + IORING_OP_RECVMSG = 10,
1: + IORING_OP_TIMEOUT = 11,
1: + IORING_OP_TIMEOUT_REMOVE = 12,
1: + IORING_OP_ACCEPT = 13,
1: + IORING_OP_ASYNC_CANCEL = 14,
1: + IORING_OP_LINK_TIMEOUT = 15,
1: + IORING_OP_CONNECT = 16,
1: + IORING_OP_FALLOCATE = 17,
1: + IORING_OP_OPENAT = 18,
1: + IORING_OP_CLOSE = 19,
1: + IORING_OP_FILES_UPDATE = 20,
1: + IORING_OP_STATX = 21,
1: + IORING_OP_READ = 22,
1: + IORING_OP_WRITE = 23,
1: + IORING_OP_FADVISE = 24,
1: + IORING_OP_MADVISE = 25,
1: + IORING_OP_SEND = 26,
1: + IORING_OP_RECV = 27,
1: + IORING_OP_OPENAT2 = 28,
1: + IORING_OP_EPOLL_CTL = 29,
1: + IORING_OP_SPLICE = 30,
1: + IORING_OP_PROVIDE_BUFFERS = 31,
1: + IORING_OP_REMOVE_BUFFERS = 32,
1: + IORING_OP_TEE = 33,
1: + IORING_OP_LAST = 34,
1: +};
1: +
1: +struct io_uring_cqe {
1: + __u64 user_data;
1: + __s32 res;
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + IORING_CQE_BUFFER_SHIFT = 16,
1: +};
1: +
1: +struct io_sqring_offsets {
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 flags;
1: + __u32 dropped;
1: + __u32 array;
1: + __u32 resv1;
1: + __u64 resv2;
1: +};
1: +
1: +struct io_cqring_offsets {
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 overflow;
1: + __u32 cqes;
1: + __u32 flags;
1: + __u32 resv1;
1: + __u64 resv2;
1: +};
1: +
1: +struct io_uring_params {
1: + __u32 sq_entries;
1: + __u32 cq_entries;
1: + __u32 flags;
1: + __u32 sq_thread_cpu;
1: + __u32 sq_thread_idle;
1: + __u32 features;
1: + __u32 wq_fd;
1: + __u32 resv[3];
1: + struct io_sqring_offsets sq_off;
1: + struct io_cqring_offsets cq_off;
1: +};
1: +
1: +enum {
1: + IORING_REGISTER_BUFFERS = 0,
1: + IORING_UNREGISTER_BUFFERS = 1,
1: + IORING_REGISTER_FILES = 2,
1: + IORING_UNREGISTER_FILES = 3,
1: + IORING_REGISTER_EVENTFD = 4,
1: + IORING_UNREGISTER_EVENTFD = 5,
1: + IORING_REGISTER_FILES_UPDATE = 6,
1: + IORING_REGISTER_EVENTFD_ASYNC = 7,
1: + IORING_REGISTER_PROBE = 8,
1: + IORING_REGISTER_PERSONALITY = 9,
1: + IORING_UNREGISTER_PERSONALITY = 10,
1: + IORING_REGISTER_RESTRICTIONS = 11,
1: + IORING_REGISTER_ENABLE_RINGS = 12,
1: + IORING_REGISTER_LAST = 13,
1: +};
1: +
1: +struct io_uring_files_update {
1: + __u32 offset;
1: + __u32 resv;
1: + __u64 fds;
1: +};
1: +
1: +struct io_uring_probe_op {
1: + __u8 op;
1: + __u8 resv;
1: + __u16 flags;
1: + __u32 resv2;
1: +};
1: +
1: +struct io_uring_probe {
1: + __u8 last_op;
1: + __u8 ops_len;
1: + __u16 resv;
1: + __u32 resv2[3];
1: + struct io_uring_probe_op ops[0];
1: +};
1: +
1: +struct io_uring_restriction {
1: + __u16 opcode;
1: + union {
1: + __u8 register_op;
1: + __u8 sqe_op;
1: + __u8 sqe_flags;
1: + };
1: + __u8 resv;
1: + __u32 resv2[3];
1: +};
1: +
1: +enum {
1: + IORING_RESTRICTION_REGISTER_OP = 0,
1: + IORING_RESTRICTION_SQE_OP = 1,
1: + IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2,
1: + IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3,
1: + IORING_RESTRICTION_LAST = 4,
1: +};
1: +
1: +enum {
1: + IO_WQ_WORK_CANCEL = 1,
1: + IO_WQ_WORK_HASHED = 2,
1: + IO_WQ_WORK_UNBOUND = 4,
1: + IO_WQ_WORK_NO_CANCEL = 8,
1: + IO_WQ_WORK_CONCURRENT = 16,
1: + IO_WQ_WORK_FILES = 32,
1: + IO_WQ_WORK_FS = 64,
1: + IO_WQ_WORK_MM = 128,
1: + IO_WQ_WORK_CREDS = 256,
1: + IO_WQ_WORK_BLKCG = 512,
1: + IO_WQ_WORK_FSIZE = 1024,
1: + IO_WQ_HASH_SHIFT = 24,
1: +};
1: +
1: +enum io_wq_cancel {
1: + IO_WQ_CANCEL_OK = 0,
1: + IO_WQ_CANCEL_RUNNING = 1,
1: + IO_WQ_CANCEL_NOTFOUND = 2,
1: +};
1: +
1: +typedef void free_work_fn(struct io_wq_work *);
1: +
1: +typedef struct io_wq_work *io_wq_work_fn(struct io_wq_work *);
1: +
1: +struct io_wq_data {
1: + struct user_struct *user;
1: + io_wq_work_fn *do_work;
1: + free_work_fn *free_work;
1: +};
1: +
1: +struct io_uring {
1: + u32 head;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 tail;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_rings {
1: + struct io_uring sq;
1: + struct io_uring cq;
1: + u32 sq_ring_mask;
1: + u32 cq_ring_mask;
1: + u32 sq_ring_entries;
1: + u32 cq_ring_entries;
1: + u32 sq_dropped;
1: + u32 sq_flags;
1: + u32 cq_flags;
1: + u32 cq_overflow;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct io_uring_cqe cqes[0];
1: +};
1: +
1: +struct io_mapped_ubuf {
1: + u64 ubuf;
1: + size_t len;
1: + struct bio_vec *bvec;
1: + unsigned int nr_bvecs;
1: + long unsigned int acct_pages;
1: +};
1: +
1: +struct fixed_file_table {
1: + struct file **files;
1: +};
1: +
1: +struct fixed_file_data;
1: +
1: +struct fixed_file_ref_node {
1: + struct percpu_ref refs;
1: + struct list_head node;
1: + struct list_head file_list;
1: + struct fixed_file_data *file_data;
1: + struct llist_node llist;
1: + bool done;
1: +};
1: +
1: +struct io_ring_ctx;
1: +
1: +struct fixed_file_data {
1: + struct fixed_file_table *table;
1: + struct io_ring_ctx *ctx;
1: + struct fixed_file_ref_node *node;
1: + struct percpu_ref refs;
1: + struct completion done;
1: + struct list_head ref_list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct io_wq;
1: +
1: +struct io_restriction {
1: + long unsigned int register_op[1];
1: + long unsigned int sqe_op[1];
1: + u8 sqe_flags_allowed;
1: + u8 sqe_flags_required;
1: + bool registered;
1: +};
1: +
1: +struct io_sq_data;
1: +
1: +struct io_kiocb;
1: +
1: +struct io_ring_ctx {
1: + struct {
1: + struct percpu_ref refs;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + unsigned int flags;
1: + unsigned int compat: 1;
1: + unsigned int limit_mem: 1;
1: + unsigned int cq_overflow_flushed: 1;
1: + unsigned int drain_next: 1;
1: + unsigned int eventfd_async: 1;
1: + unsigned int restricted: 1;
1: + unsigned int sqo_dead: 1;
1: + u32 *sq_array;
1: + unsigned int cached_sq_head;
1: + unsigned int sq_entries;
1: + unsigned int sq_mask;
1: + unsigned int sq_thread_idle;
1: + unsigned int cached_sq_dropped;
1: + unsigned int cached_cq_overflow;
1: + long unsigned int sq_check_overflow;
1: + struct list_head defer_list;
1: + struct list_head timeout_list;
1: + struct list_head cq_overflow_list;
1: + wait_queue_head_t inflight_wait;
1: + struct io_uring_sqe *sq_sqes;
1: + };
1: + struct io_rings *rings;
1: + struct io_wq *io_wq;
1: + struct task_struct *sqo_task;
1: + struct mm_struct *mm_account;
1: + struct cgroup_subsys_state *sqo_blkcg_css;
1: + struct io_sq_data *sq_data;
1: + struct wait_queue_head sqo_sq_wait;
1: + struct wait_queue_entry sqo_wait_entry;
1: + struct list_head sqd_list;
1: + struct fixed_file_data *file_data;
1: + unsigned int nr_user_files;
1: + unsigned int nr_user_bufs;
1: + struct io_mapped_ubuf *user_bufs;
1: + struct user_struct *user;
1: + const struct cred *creds;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct completion ref_comp;
1: + struct completion sq_thread_comp;
1: + struct io_kiocb *fallback_req;
1: + struct socket *ring_sock;
1: + struct idr io_buffer_idr;
1: + struct idr personality_idr;
1: + long: 64;
1: + long: 64;
1: + struct {
1: + unsigned int cached_cq_tail;
1: + unsigned int cq_entries;
1: + unsigned int cq_mask;
1: + atomic_t cq_timeouts;
1: + unsigned int cq_last_tm_flush;
1: + long unsigned int cq_check_overflow;
1: + struct wait_queue_head cq_wait;
1: + struct fasync_struct *cq_fasync;
1: + struct eventfd_ctx *cq_ev_fd;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + struct mutex uring_lock;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + };
1: + struct {
1: + spinlock_t completion_lock;
1: + struct list_head iopoll_list;
1: + struct hlist_head *cancel_hash;
1: + unsigned int cancel_hash_bits;
1: + bool poll_multi_file;
1: + spinlock_t inflight_lock;
1: + struct list_head inflight_list;
1: + };
1: + struct delayed_work file_put_work;
1: + struct llist_head file_put_llist;
1: + struct work_struct exit_work;
1: + struct io_restriction restrictions;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_buffer {
1: + struct list_head list;
1: + __u64 addr;
1: + __s32 len;
1: + __u16 bid;
1: +};
1: +
1: +struct io_sq_data {
1: + refcount_t refs;
1: + struct mutex lock;
1: + struct list_head ctx_list;
1: + struct list_head ctx_new_list;
1: + struct mutex ctx_lock;
1: + struct task_struct *thread;
1: + struct wait_queue_head wait;
1: +};
1: +
1: +struct io_rw {
1: + struct kiocb kiocb;
1: + u64 addr;
1: + u64 len;
1: +};
1: +
1: +struct io_poll_iocb {
1: + struct file *file;
1: + union {
1: + struct wait_queue_head *head;
1: + u64 addr;
1: + };
1: + __poll_t events;
1: + bool done;
1: + bool canceled;
1: + struct wait_queue_entry wait;
1: +};
1: +
1: +struct io_accept {
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int *addr_len;
1: + int flags;
1: + long unsigned int nofile;
1: +};
1: +
1: +struct io_sync {
1: + struct file *file;
1: + loff_t len;
1: + loff_t off;
1: + int flags;
1: + int mode;
1: +};
1: +
1: +struct io_cancel {
1: + struct file *file;
1: + u64 addr;
1: +};
1: +
1: +struct io_timeout {
1: + struct file *file;
1: + u32 off;
1: + u32 target_seq;
1: + struct list_head list;
1: +};
1: +
1: +struct io_timeout_rem {
1: + struct file *file;
1: + u64 addr;
1: +};
1: +
1: +struct io_connect {
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int addr_len;
1: +};
1: +
1: +struct io_sr_msg {
1: + struct file *file;
1: + union {
1: + struct user_msghdr *umsg;
1: + void *buf;
1: + };
1: + int msg_flags;
1: + int bgid;
1: + size_t len;
1: + struct io_buffer *kbuf;
1: +};
1: +
1: +struct io_open {
1: + struct file *file;
1: + int dfd;
1: + bool ignore_nonblock;
1: + struct filename *filename;
1: + struct open_how how;
1: + long unsigned int nofile;
1: +};
1: +
1: +struct io_close {
1: + struct file *file;
1: + struct file *put_file;
1: + int fd;
1: +};
1: +
1: +struct io_files_update {
1: + struct file *file;
1: + u64 arg;
1: + u32 nr_args;
1: + u32 offset;
1: +};
1: +
1: +struct io_fadvise {
1: + struct file *file;
1: + u64 offset;
1: + u32 len;
1: + u32 advice;
1: +};
1: +
1: +struct io_madvise {
1: + struct file *file;
1: + u64 addr;
1: + u32 len;
1: + u32 advice;
1: +};
1: +
1: +struct io_epoll {
1: + struct file *file;
1: + int epfd;
1: + int op;
1: + int fd;
1: + struct epoll_event event;
1: +};
1: +
1: +struct io_splice {
1: + struct file *file_out;
1: + struct file *file_in;
1: + loff_t off_out;
1: + loff_t off_in;
1: + u64 len;
1: + unsigned int flags;
1: +};
1: +
1: +struct io_provide_buf {
1: + struct file *file;
1: + __u64 addr;
1: + __s32 len;
1: + __u32 bgid;
1: + __u16 nbufs;
1: + __u16 bid;
1: +};
1: +
1: +struct io_statx {
1: + struct file *file;
1: + int dfd;
1: + unsigned int mask;
1: + unsigned int flags;
1: + const char *filename;
1: + struct statx *buffer;
1: +};
1: +
1: +struct io_completion {
1: + struct file *file;
1: + struct list_head list;
1: + int cflags;
1: +};
1: +
1: +struct async_poll;
1: +
1: +struct io_kiocb {
1: + union {
1: + struct file *file;
1: + struct io_rw rw;
1: + struct io_poll_iocb poll;
1: + struct io_accept accept;
1: + struct io_sync sync;
1: + struct io_cancel cancel;
1: + struct io_timeout timeout;
1: + struct io_timeout_rem timeout_rem;
1: + struct io_connect connect;
1: + struct io_sr_msg sr_msg;
1: + struct io_open open;
1: + struct io_close close;
1: + struct io_files_update files_update;
1: + struct io_fadvise fadvise;
1: + struct io_madvise madvise;
1: + struct io_epoll epoll;
1: + struct io_splice splice;
1: + struct io_provide_buf pbuf;
1: + struct io_statx statx;
1: + struct io_completion compl;
1: + };
1: + void *async_data;
1: + u8 opcode;
1: + u8 iopoll_completed;
1: + u16 buf_index;
1: + u32 result;
1: + struct io_ring_ctx *ctx;
1: + unsigned int flags;
1: + refcount_t refs;
1: + struct task_struct *task;
1: + u64 user_data;
1: + struct list_head link_list;
1: + struct list_head inflight_entry;
1: + struct percpu_ref *fixed_file_refs;
1: + struct callback_head task_work;
1: + struct hlist_node hash_node;
1: + struct async_poll *apoll;
1: + struct io_wq_work work;
1: +};
1: +
1: +struct io_timeout_data {
1: + struct io_kiocb *req;
1: + struct hrtimer timer;
1: + struct timespec64 ts;
1: + enum hrtimer_mode mode;
1: +};
1: +
1: +struct io_async_connect {
1: + struct __kernel_sockaddr_storage address;
1: +};
1: +
1: +struct io_async_msghdr {
1: + struct iovec fast_iov[8];
1: + struct iovec *iov;
1: + struct sockaddr *uaddr;
1: + struct msghdr msg;
1: + struct __kernel_sockaddr_storage addr;
1: +};
1: +
1: +struct io_async_rw {
1: + struct iovec fast_iov[8];
1: + const struct iovec *free_iovec;
1: + struct iov_iter iter;
1: + size_t bytes_done;
1: + struct wait_page_queue wpq;
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE_BIT = 0,
1: + REQ_F_IO_DRAIN_BIT = 1,
1: + REQ_F_LINK_BIT = 2,
1: + REQ_F_HARDLINK_BIT = 3,
1: + REQ_F_FORCE_ASYNC_BIT = 4,
1: + REQ_F_BUFFER_SELECT_BIT = 5,
1: + REQ_F_LINK_HEAD_BIT = 6,
1: + REQ_F_FAIL_LINK_BIT = 7,
1: + REQ_F_INFLIGHT_BIT = 8,
1: + REQ_F_CUR_POS_BIT = 9,
1: + REQ_F_NOWAIT_BIT = 10,
1: + REQ_F_LINK_TIMEOUT_BIT = 11,
1: + REQ_F_ISREG_BIT = 12,
1: + REQ_F_NEED_CLEANUP_BIT = 13,
1: + REQ_F_POLLED_BIT = 14,
1: + REQ_F_BUFFER_SELECTED_BIT = 15,
1: + REQ_F_NO_FILE_TABLE_BIT = 16,
1: + REQ_F_WORK_INITIALIZED_BIT = 17,
1: + REQ_F_LTIMEOUT_ACTIVE_BIT = 18,
1: + __REQ_F_LAST_BIT = 19,
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE = 1,
1: + REQ_F_IO_DRAIN = 2,
1: + REQ_F_LINK = 4,
1: + REQ_F_HARDLINK = 8,
1: + REQ_F_FORCE_ASYNC = 16,
1: + REQ_F_BUFFER_SELECT = 32,
1: + REQ_F_LINK_HEAD = 64,
1: + REQ_F_FAIL_LINK = 128,
1: + REQ_F_INFLIGHT = 256,
1: + REQ_F_CUR_POS = 512,
1: + REQ_F_NOWAIT = 1024,
1: + REQ_F_LINK_TIMEOUT = 2048,
1: + REQ_F_ISREG = 4096,
1: + REQ_F_NEED_CLEANUP = 8192,
1: + REQ_F_POLLED = 16384,
1: + REQ_F_BUFFER_SELECTED = 32768,
1: + REQ_F_NO_FILE_TABLE = 65536,
1: + REQ_F_WORK_INITIALIZED = 131072,
1: + REQ_F_LTIMEOUT_ACTIVE = 262144,
1: +};
1: +
1: +struct async_poll {
1: + struct io_poll_iocb poll;
1: + struct io_poll_iocb *double_poll;
1: +};
1: +
1: +struct io_defer_entry {
1: + struct list_head list;
1: + struct io_kiocb *req;
1: + u32 seq;
1: +};
1: +
1: +struct io_comp_state {
1: + unsigned int nr;
1: + struct list_head list;
1: + struct io_ring_ctx *ctx;
1: +};
1: +
1: +struct io_submit_state {
1: + struct blk_plug plug;
1: + void *reqs[8];
1: + unsigned int free_reqs;
1: + struct io_comp_state comp;
1: + struct file *file;
1: + unsigned int fd;
1: + unsigned int has_refs;
1: + unsigned int ios_left;
1: +};
1: +
1: +struct io_op_def {
1: + unsigned int needs_file: 1;
1: + unsigned int needs_file_no_error: 1;
1: + unsigned int hash_reg_file: 1;
1: + unsigned int unbound_nonreg_file: 1;
1: + unsigned int not_supported: 1;
1: + unsigned int pollin: 1;
1: + unsigned int pollout: 1;
1: + unsigned int buffer_select: 1;
1: + unsigned int needs_async_data: 1;
1: + short unsigned int async_size;
1: + unsigned int work_flags;
1: +};
1: +
1: +enum io_mem_account {
1: + ACCT_LOCKED = 0,
1: + ACCT_PINNED = 1,
1: +};
1: +
1: +struct req_batch {
1: + void *reqs[8];
1: + int to_free;
1: + struct task_struct *task;
1: + int task_refs;
1: +};
1: +
1: +struct io_poll_table {
1: + struct poll_table_struct pt;
1: + struct io_kiocb *req;
1: + int error;
1: +};
1: +
1: +enum sq_ret {
1: + SQT_IDLE = 1,
1: + SQT_SPIN = 2,
1: + SQT_DID_WORK = 4,
1: +};
1: +
1: +struct io_wait_queue {
1: + struct wait_queue_entry wq;
1: + struct io_ring_ctx *ctx;
1: + unsigned int to_wait;
1: + unsigned int nr_timeouts;
1: +};
1: +
1: +struct io_file_put {
1: + struct list_head list;
1: + struct file *file;
1: +};
1: +
1: +struct io_wq_work_list {
1: + struct io_wq_work_node *first;
1: + struct io_wq_work_node *last;
1: +};
1: +
1: +typedef bool work_cancel_fn(struct io_wq_work *, void *);
1: +
1: +enum {
1: + IO_WORKER_F_UP = 1,
1: + IO_WORKER_F_RUNNING = 2,
1: + IO_WORKER_F_FREE = 4,
1: + IO_WORKER_F_FIXED = 8,
1: + IO_WORKER_F_BOUND = 16,
1: +};
1: +
1: +enum {
1: + IO_WQ_BIT_EXIT = 0,
1: + IO_WQ_BIT_CANCEL = 1,
1: + IO_WQ_BIT_ERROR = 2,
1: +};
1: +
1: +enum {
1: + IO_WQE_FLAG_STALLED = 1,
1: +};
1: +
1: +struct io_wqe;
1: +
1: +struct io_worker {
1: + refcount_t ref;
1: + unsigned int flags;
1: + struct hlist_nulls_node nulls_node;
1: + struct list_head all_list;
1: + struct task_struct *task;
1: + struct io_wqe *wqe;
1: + struct io_wq_work *cur_work;
1: + spinlock_t lock;
1: + struct callback_head rcu;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *cur_creds;
1: + const struct cred *saved_creds;
1: + struct files_struct *restore_files;
1: + struct nsproxy *restore_nsproxy;
1: + struct fs_struct *restore_fs;
1: +};
1: +
1: +struct io_wqe_acct {
1: + unsigned int nr_workers;
1: + unsigned int max_workers;
1: + atomic_t nr_running;
1: +};
1: +
1: +struct io_wq___2;
1: +
1: +struct io_wqe {
1: + struct {
1: + raw_spinlock_t lock;
1: + struct io_wq_work_list work_list;
1: + long unsigned int hash_map;
1: + unsigned int flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + int node;
1: + struct io_wqe_acct acct[2];
1: + struct hlist_nulls_head free_list;
1: + struct list_head all_list;
1: + struct io_wq___2 *wq;
1: + struct io_wq_work *hash_tail[64];
1: +};
1: +
1: +enum {
1: + IO_WQ_ACCT_BOUND = 0,
1: + IO_WQ_ACCT_UNBOUND = 1,
1: +};
1: +
1: +struct io_wq___2 {
1: + struct io_wqe **wqes;
1: + long unsigned int state;
1: + free_work_fn *free_work;
1: + io_wq_work_fn *do_work;
1: + struct task_struct *manager;
1: + struct user_struct *user;
1: + refcount_t refs;
1: + struct completion done;
1: + struct hlist_node cpuhp_node;
1: + refcount_t use_refs;
1: +};
1: +
1: +struct io_cb_cancel_data {
1: + work_cancel_fn *fn;
1: + void *data;
1: + int nr_running;
1: + int nr_pending;
1: + bool cancel_all;
1: +};
1: +
1: +struct iomap_ops {
1: + int (*iomap_begin)(struct inode *, loff_t, loff_t, unsigned int, struct iomap___2 *, struct iomap___2 *);
1: + int (*iomap_end)(struct inode *, loff_t, loff_t, ssize_t, unsigned int, struct iomap___2 *);
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_fault_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + long unsigned int max_pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_load_hole_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + struct page *zero_page;
1: + void *radix_entry;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_insert_mapping_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long int length;
1: + u64 pfn_val;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pte_fault_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_insert_mapping {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_writeback_range_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int start_index;
1: + long unsigned int end_index;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_writeback_one {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int pgoff;
1: + long unsigned int pglen;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_dax_pmd_fault_class {};
1: +
1: +struct trace_event_data_offsets_dax_pmd_load_hole_class {};
1: +
1: +struct trace_event_data_offsets_dax_pmd_insert_mapping_class {};
1: +
1: +struct trace_event_data_offsets_dax_pte_fault_class {};
1: +
1: +struct trace_event_data_offsets_dax_insert_mapping {};
1: +
1: +struct trace_event_data_offsets_dax_writeback_range_class {};
1: +
1: +struct trace_event_data_offsets_dax_writeback_one {};
1: +
1: +typedef void (*btf_trace_dax_pmd_fault)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_dax_pmd_fault_done)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_dax_pmd_load_hole)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +
1: +typedef void (*btf_trace_dax_pmd_load_hole_fallback)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +
1: +typedef void (*btf_trace_dax_pmd_insert_mapping)(void *, struct inode *, struct vm_fault *, long int, pfn_t, void *);
1: +
1: +typedef void (*btf_trace_dax_pte_fault)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_pte_fault_done)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_load_hole)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite_no_entry)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_mapping)(void *, struct inode *, struct vm_fault *, void *);
1: +
1: +typedef void (*btf_trace_dax_writeback_range)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_dax_writeback_range_done)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_dax_writeback_one)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +struct exceptional_entry_key {
1: + struct xarray *xa;
1: + long unsigned int entry_start;
1: +};
1: +
1: +struct wait_exceptional_entry_queue {
1: + wait_queue_entry_t wait;
1: + struct exceptional_entry_key key;
1: +};
1: +
1: +struct crypto_skcipher;
1: +
1: +struct fscrypt_blk_crypto_key;
1: +
1: +struct fscrypt_prepared_key {
1: + struct crypto_skcipher *tfm;
1: + struct fscrypt_blk_crypto_key *blk_key;
1: +};
1: +
1: +struct fscrypt_mode;
1: +
1: +struct fscrypt_direct_key;
1: +
1: +struct fscrypt_info {
1: + struct fscrypt_prepared_key ci_enc_key;
1: + bool ci_owns_key;
1: + bool ci_inlinecrypt;
1: + struct fscrypt_mode *ci_mode;
1: + struct inode *ci_inode;
1: + struct key *ci_master_key;
1: + struct list_head ci_master_key_link;
1: + struct fscrypt_direct_key *ci_direct_key;
1: + siphash_key_t ci_dirhash_key;
1: + bool ci_dirhash_key_initialized;
1: + union fscrypt_policy ci_policy;
1: + u8 ci_nonce[16];
1: + u32 ci_hashed_ino;
1: +};
1: +
1: +struct crypto_async_request;
1: +
1: +typedef void (*crypto_completion_t)(struct crypto_async_request *, int);
1: +
1: +struct crypto_async_request {
1: + struct list_head list;
1: + crypto_completion_t complete;
1: + void *data;
1: + struct crypto_tfm *tfm;
1: + u32 flags;
1: +};
1: +
1: +struct crypto_wait {
1: + struct completion completion;
1: + int err;
1: +};
1: +
1: +struct skcipher_request {
1: + unsigned int cryptlen;
1: + u8 *iv;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + struct crypto_async_request base;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_skcipher {
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct fscrypt_mode {
1: + const char *friendly_name;
1: + const char *cipher_str;
1: + int keysize;
1: + int ivsize;
1: + int logged_impl_name;
1: + enum blk_crypto_mode_num blk_crypto_mode;
1: +};
1: +
1: +typedef enum {
1: + FS_DECRYPT = 0,
1: + FS_ENCRYPT = 1,
1: +} fscrypt_direction_t;
1: +
1: +union fscrypt_iv {
1: + struct {
1: + __le64 lblk_num;
1: + u8 nonce[16];
1: + };
1: + u8 raw[32];
1: + __le64 dun[4];
1: +};
1: +
1: +struct fscrypt_str {
1: + unsigned char *name;
1: + u32 len;
1: +};
1: +
1: +struct fscrypt_name {
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + u32 hash;
1: + u32 minor_hash;
1: + struct fscrypt_str crypto_buf;
1: + bool is_nokey_name;
1: +};
1: +
1: +struct fscrypt_nokey_name {
1: + u32 dirhash[2];
1: + u8 bytes[149];
1: + u8 sha256[32];
1: +};
1: +
1: +struct shash_alg {
1: + int (*init)(struct shash_desc *);
1: + int (*update)(struct shash_desc *, const u8 *, unsigned int);
1: + int (*final)(struct shash_desc *, u8 *);
1: + int (*finup)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*digest)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*export)(struct shash_desc *, void *);
1: + int (*import)(struct shash_desc *, const void *);
1: + int (*setkey)(struct crypto_shash *, const u8 *, unsigned int);
1: + int (*init_tfm)(struct crypto_shash *);
1: + void (*exit_tfm)(struct crypto_shash *);
1: + unsigned int descsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct fscrypt_hkdf {
1: + struct crypto_shash *hmac_tfm;
1: +};
1: +
1: +struct fscrypt_key_specifier {
1: + __u32 type;
1: + __u32 __reserved;
1: + union {
1: + __u8 __reserved[32];
1: + __u8 descriptor[8];
1: + __u8 identifier[16];
1: + } u;
1: +};
1: +
1: +struct fscrypt_symlink_data {
1: + __le16 len;
1: + char encrypted_path[1];
1: +} __attribute__((packed));
1: +
1: +struct fscrypt_master_key_secret {
1: + struct fscrypt_hkdf hkdf;
1: + u32 size;
1: + u8 raw[64];
1: +};
1: +
1: +struct fscrypt_master_key {
1: + struct fscrypt_master_key_secret mk_secret;
1: + struct rw_semaphore mk_secret_sem;
1: + struct fscrypt_key_specifier mk_spec;
1: + struct key *mk_users;
1: + refcount_t mk_refcount;
1: + struct list_head mk_decrypted_inodes;
1: + spinlock_t mk_decrypted_inodes_lock;
1: + struct fscrypt_prepared_key mk_direct_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_64_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_32_keys[10];
1: + siphash_key_t mk_ino_hash_key;
1: + bool mk_ino_hash_key_initialized;
1: +};
1: +
1: +enum key_state {
1: + KEY_IS_UNINSTANTIATED = 0,
1: + KEY_IS_POSITIVE = 1,
1: +};
1: +
1: +struct fscrypt_provisioning_key_payload {
1: + __u32 type;
1: + __u32 __reserved;
1: + __u8 raw[0];
1: +};
1: +
1: +struct fscrypt_add_key_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 raw_size;
1: + __u32 key_id;
1: + __u32 __reserved[8];
1: + __u8 raw[0];
1: +};
1: +
1: +struct fscrypt_remove_key_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 removal_status_flags;
1: + __u32 __reserved[5];
1: +};
1: +
1: +struct fscrypt_get_key_status_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 __reserved[6];
1: + __u32 status;
1: + __u32 status_flags;
1: + __u32 user_count;
1: + __u32 __out_reserved[13];
1: +};
1: +
1: +struct skcipher_alg {
1: + int (*setkey)(struct crypto_skcipher *, const u8 *, unsigned int);
1: + int (*encrypt)(struct skcipher_request *);
1: + int (*decrypt)(struct skcipher_request *);
1: + int (*init)(struct crypto_skcipher *);
1: + void (*exit)(struct crypto_skcipher *);
1: + unsigned int min_keysize;
1: + unsigned int max_keysize;
1: + unsigned int ivsize;
1: + unsigned int chunksize;
1: + unsigned int walksize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct fscrypt_context_v1 {
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 master_key_descriptor[8];
1: + u8 nonce[16];
1: +};
1: +
1: +struct fscrypt_context_v2 {
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 __reserved[4];
1: + u8 master_key_identifier[16];
1: + u8 nonce[16];
1: +};
1: +
1: +union fscrypt_context {
1: + u8 version;
1: + struct fscrypt_context_v1 v1;
1: + struct fscrypt_context_v2 v2;
1: +};
1: +
1: +struct crypto_template;
1: +
1: +struct crypto_spawn;
1: +
1: +struct crypto_instance {
1: + struct crypto_alg alg;
1: + struct crypto_template *tmpl;
1: + union {
1: + struct hlist_node list;
1: + struct crypto_spawn *spawns;
1: + };
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_spawn {
1: + struct list_head list;
1: + struct crypto_alg *alg;
1: + union {
1: + struct crypto_instance *inst;
1: + struct crypto_spawn *next;
1: + };
1: + const struct crypto_type *frontend;
1: + u32 mask;
1: + bool dead;
1: + bool registered;
1: +};
1: +
1: +struct rtattr;
1: +
1: +struct crypto_template {
1: + struct list_head list;
1: + struct hlist_head instances;
1: + struct module *module;
1: + int (*create)(struct crypto_template *, struct rtattr **);
1: + char name[128];
1: +};
1: +
1: +struct user_key_payload {
1: + struct callback_head rcu;
1: + short unsigned int datalen;
1: + long: 48;
1: + char data[0];
1: +};
1: +
1: +struct fscrypt_key {
1: + __u32 mode;
1: + __u8 raw[64];
1: + __u32 size;
1: +};
1: +
1: +struct fscrypt_direct_key {
1: + struct hlist_node dk_node;
1: + refcount_t dk_refcount;
1: + const struct fscrypt_mode *dk_mode;
1: + struct fscrypt_prepared_key dk_key;
1: + u8 dk_descriptor[8];
1: + u8 dk_raw[64];
1: +};
1: +
1: +struct fscrypt_get_policy_ex_arg {
1: + __u64 policy_size;
1: + union {
1: + __u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: + } policy;
1: +};
1: +
1: +struct fscrypt_dummy_policy {
1: + const union fscrypt_policy *policy;
1: +};
1: +
1: +struct fscrypt_blk_crypto_key {
1: + struct blk_crypto_key base;
1: + int num_devs;
1: + struct request_queue *devs[0];
1: +};
1: +
1: +struct fsverity_hash_alg;
1: +
1: +struct merkle_tree_params {
1: + struct fsverity_hash_alg *hash_alg;
1: + const u8 *hashstate;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + unsigned int hashes_per_block;
1: + unsigned int log_blocksize;
1: + unsigned int log_arity;
1: + unsigned int num_levels;
1: + u64 tree_size;
1: + long unsigned int level0_blocks;
1: + u64 level_start[8];
1: +};
1: +
1: +struct fsverity_info {
1: + struct merkle_tree_params tree_params;
1: + u8 root_hash[64];
1: + u8 measurement[64];
1: + const struct inode *inode;
1: +};
1: +
1: +struct fsverity_enable_arg {
1: + __u32 version;
1: + __u32 hash_algorithm;
1: + __u32 block_size;
1: + __u32 salt_size;
1: + __u64 salt_ptr;
1: + __u32 sig_size;
1: + __u32 __reserved1;
1: + __u64 sig_ptr;
1: + __u64 __reserved2[11];
1: +};
1: +
1: +struct crypto_ahash;
1: +
1: +struct fsverity_hash_alg {
1: + struct crypto_ahash *tfm;
1: + const char *name;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + mempool_t req_pool;
1: +};
1: +
1: +struct ahash_request;
1: +
1: +struct crypto_ahash {
1: + int (*init)(struct ahash_request *);
1: + int (*update)(struct ahash_request *);
1: + int (*final)(struct ahash_request *);
1: + int (*finup)(struct ahash_request *);
1: + int (*digest)(struct ahash_request *);
1: + int (*export)(struct ahash_request *, void *);
1: + int (*import)(struct ahash_request *, const void *);
1: + int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct fsverity_descriptor {
1: + __u8 version;
1: + __u8 hash_algorithm;
1: + __u8 log_blocksize;
1: + __u8 salt_size;
1: + __le32 sig_size;
1: + __le64 data_size;
1: + __u8 root_hash[64];
1: + __u8 salt[32];
1: + __u8 __reserved[144];
1: + __u8 signature[0];
1: +};
1: +
1: +struct ahash_request {
1: + struct crypto_async_request base;
1: + unsigned int nbytes;
1: + struct scatterlist *src;
1: + u8 *result;
1: + void *priv;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct hash_alg_common {
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct fsverity_digest {
1: + __u16 digest_algorithm;
1: + __u16 digest_size;
1: + __u8 digest[0];
1: +};
1: +
1: +struct flock64 {
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_loff_t l_start;
1: + __kernel_loff_t l_len;
1: + __kernel_pid_t l_pid;
1: +};
1: +
1: +struct trace_event_raw_locks_get_lock_context {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + unsigned char type;
1: + struct file_lock_context *ctx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filelock_lock {
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_pid;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filelock_lease {
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_generic_add_lease {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + int wcount;
1: + int rcount;
1: + int icount;
1: + dev_t s_dev;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_leases_conflict {
1: + struct trace_entry ent;
1: + void *lease;
1: + void *breaker;
1: + unsigned int l_fl_flags;
1: + unsigned int b_fl_flags;
1: + unsigned char l_fl_type;
1: + unsigned char b_fl_type;
1: + bool conflict;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_locks_get_lock_context {};
1: +
1: +struct trace_event_data_offsets_filelock_lock {};
1: +
1: +struct trace_event_data_offsets_filelock_lease {};
1: +
1: +struct trace_event_data_offsets_generic_add_lease {};
1: +
1: +struct trace_event_data_offsets_leases_conflict {};
1: +
1: +typedef void (*btf_trace_locks_get_lock_context)(void *, struct inode *, int, struct file_lock_context *);
1: +
1: +typedef void (*btf_trace_posix_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_fcntl_setlk)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_locks_remove_posix)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_flock_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_break_lease_noblock)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_break_lease_block)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_break_lease_unblock)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_generic_delete_lease)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_time_out_leases)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_generic_add_lease)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_leases_conflict)(void *, bool, struct file_lock *, struct file_lock *);
1: +
1: +struct file_lock_list_struct {
1: + spinlock_t lock;
1: + struct hlist_head hlist;
1: +};
1: +
1: +struct locks_iterator {
1: + int li_cpu;
1: + loff_t li_pos;
1: +};
1: +
1: +typedef unsigned int __kernel_uid_t;
1: +
1: +typedef unsigned int __kernel_gid_t;
1: +
1: +struct gnu_property {
1: + u32 pr_type;
1: + u32 pr_datasz;
1: +};
1: +
1: +struct elf_prpsinfo {
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + long unsigned int pr_flag;
1: + __kernel_uid_t pr_uid;
1: + __kernel_gid_t pr_gid;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: +};
1: +
1: +struct core_vma_metadata {
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int flags;
1: + long unsigned int dump_size;
1: +};
1: +
1: +struct memelfnote {
1: + const char *name;
1: + int type;
1: + unsigned int datasz;
1: + void *data;
1: +};
1: +
1: +struct elf_thread_core_info {
1: + struct elf_thread_core_info *next;
1: + struct task_struct *task;
1: + struct elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: +};
1: +
1: +struct elf_note_info {
1: + struct elf_thread_core_info *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: +};
1: +
1: +struct elf32_shdr {
1: + Elf32_Word sh_name;
1: + Elf32_Word sh_type;
1: + Elf32_Word sh_flags;
1: + Elf32_Addr sh_addr;
1: + Elf32_Off sh_offset;
1: + Elf32_Word sh_size;
1: + Elf32_Word sh_link;
1: + Elf32_Word sh_info;
1: + Elf32_Word sh_addralign;
1: + Elf32_Word sh_entsize;
1: +};
1: +
1: +typedef u16 __compat_uid_t;
1: +
1: +typedef u16 __compat_gid_t;
1: +
1: +typedef unsigned int compat_elf_greg_t;
1: +
1: +typedef compat_elf_greg_t compat_elf_gregset_t[18];
1: +
1: +struct compat_elf_siginfo {
1: + compat_int_t si_signo;
1: + compat_int_t si_code;
1: + compat_int_t si_errno;
1: +};
1: +
1: +struct compat_elf_prstatus {
1: + struct compat_elf_siginfo pr_info;
1: + short int pr_cursig;
1: + compat_ulong_t pr_sigpend;
1: + compat_ulong_t pr_sighold;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + struct old_timeval32 pr_utime;
1: + struct old_timeval32 pr_stime;
1: + struct old_timeval32 pr_cutime;
1: + struct old_timeval32 pr_cstime;
1: + compat_elf_gregset_t pr_reg;
1: + compat_int_t pr_fpvalid;
1: +};
1: +
1: +struct compat_elf_prpsinfo {
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + compat_ulong_t pr_flag;
1: + __compat_uid_t pr_uid;
1: + __compat_gid_t pr_gid;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: +};
1: +
1: +struct elf_thread_core_info___2 {
1: + struct elf_thread_core_info___2 *next;
1: + struct task_struct *task;
1: + struct compat_elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: +};
1: +
1: +struct elf_note_info___2 {
1: + struct elf_thread_core_info___2 *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + compat_siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: +};
1: +
1: +struct mb_cache_entry {
1: + struct list_head e_list;
1: + struct hlist_bl_node e_hash_list;
1: + atomic_t e_refcnt;
1: + u32 e_key;
1: + u32 e_referenced: 1;
1: + u32 e_reusable: 1;
1: + u64 e_value;
1: +};
1: +
1: +struct mb_cache {
1: + struct hlist_bl_head *c_hash;
1: + int c_bucket_bits;
1: + long unsigned int c_max_entries;
1: + spinlock_t c_list_lock;
1: + struct list_head c_list;
1: + long unsigned int c_entry_count;
1: + struct shrinker c_shrink;
1: + struct work_struct c_shrink_work;
1: +};
1: +
1: +struct posix_acl_xattr_entry {
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: +};
1: +
1: +struct posix_acl_xattr_header {
1: + __le32 a_version;
1: +};
1: +
1: +struct core_name {
1: + char *corename;
1: + int used;
1: + int size;
1: +};
1: +
1: +struct trace_event_raw_iomap_readpage_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + int nr_pages;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_range_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t size;
1: + long unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + dev_t bdev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_apply {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t pos;
1: + loff_t length;
1: + unsigned int flags;
1: + const void *ops;
1: + void *actor;
1: + long unsigned int caller;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_iomap_readpage_class {};
1: +
1: +struct trace_event_data_offsets_iomap_range_class {};
1: +
1: +struct trace_event_data_offsets_iomap_class {};
1: +
1: +struct trace_event_data_offsets_iomap_apply {};
1: +
1: +typedef void (*btf_trace_iomap_readpage)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_iomap_readahead)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_iomap_writepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_releasepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_invalidatepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_dio_invalidate_fail)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_apply_dstmap)(void *, struct inode *, struct iomap___2 *);
1: +
1: +typedef void (*btf_trace_iomap_apply_srcmap)(void *, struct inode *, struct iomap___2 *);
1: +
1: +typedef void (*btf_trace_iomap_apply)(void *, struct inode *, loff_t, loff_t, unsigned int, const void *, void *, long unsigned int);
1: +
1: +typedef loff_t (*iomap_actor_t)(struct inode *, loff_t, loff_t, void *, struct iomap___2 *, struct iomap___2 *);
1: +
1: +struct iomap_ioend {
1: + struct list_head io_list;
1: + u16 io_type;
1: + u16 io_flags;
1: + struct inode *io_inode;
1: + size_t io_size;
1: + loff_t io_offset;
1: + void *io_private;
1: + struct bio *io_bio;
1: + struct bio io_inline_bio;
1: +};
1: +
1: +struct iomap_writepage_ctx;
1: +
1: +struct iomap_writeback_ops {
1: + int (*map_blocks)(struct iomap_writepage_ctx *, struct inode *, loff_t);
1: + int (*prepare_ioend)(struct iomap_ioend *, int);
1: + void (*discard_page)(struct page *, loff_t);
1: +};
1: +
1: +struct iomap_writepage_ctx {
1: + struct iomap___2 iomap;
1: + struct iomap_ioend *ioend;
1: + const struct iomap_writeback_ops *ops;
1: +};
1: +
1: +struct iomap_page {
1: + atomic_t read_bytes_pending;
1: + atomic_t write_bytes_pending;
1: + spinlock_t uptodate_lock;
1: + long unsigned int uptodate[0];
1: +};
1: +
1: +struct iomap_readpage_ctx {
1: + struct page *cur_page;
1: + bool cur_page_in_bio;
1: + struct bio *bio;
1: + struct readahead_control *rac;
1: +};
1: +
1: +enum {
1: + IOMAP_WRITE_F_UNSHARE = 1,
1: +};
1: +
1: +struct iomap_dio_ops {
1: + int (*end_io)(struct kiocb *, ssize_t, int, unsigned int);
1: + blk_qc_t (*submit_io)(struct inode *, struct iomap___2 *, struct bio *, loff_t);
1: +};
1: +
1: +struct iomap_dio {
1: + struct kiocb *iocb;
1: + const struct iomap_dio_ops *dops;
1: + loff_t i_size;
1: + loff_t size;
1: + atomic_t ref;
1: + unsigned int flags;
1: + int error;
1: + bool wait_for_completion;
1: + union {
1: + struct {
1: + struct iov_iter *iter;
1: + struct task_struct *waiter;
1: + struct request_queue *last_queue;
1: + blk_qc_t cookie;
1: + } submit;
1: + struct {
1: + struct work_struct work;
1: + } aio;
1: + };
1: +};
1: +
1: +struct fiemap_ctx {
1: + struct fiemap_extent_info *fi;
1: + struct iomap___2 prev;
1: +};
1: +
1: +struct iomap_swapfile_info {
1: + struct iomap___2 iomap;
1: + struct swap_info_struct *sis;
1: + uint64_t lowest_ppage;
1: + uint64_t highest_ppage;
1: + long unsigned int nr_pages;
1: + int nr_extents;
1: +};
1: +
1: +enum {
1: + QIF_BLIMITS_B = 0,
1: + QIF_SPACE_B = 1,
1: + QIF_ILIMITS_B = 2,
1: + QIF_INODES_B = 3,
1: + QIF_BTIME_B = 4,
1: + QIF_ITIME_B = 5,
1: +};
1: +
1: +typedef __kernel_uid32_t qid_t;
1: +
1: +enum {
1: + DQF_INFO_DIRTY_B = 17,
1: +};
1: +
1: +struct dqstats {
1: + long unsigned int stat[8];
1: + struct percpu_counter counter[8];
1: +};
1: +
1: +enum {
1: + _DQUOT_USAGE_ENABLED = 0,
1: + _DQUOT_LIMITS_ENABLED = 1,
1: + _DQUOT_SUSPENDED = 2,
1: + _DQUOT_STATE_FLAGS = 3,
1: +};
1: +
1: +struct quota_module_name {
1: + int qm_fmt_id;
1: + char *qm_mod_name;
1: +};
1: +
1: +struct dquot_warn {
1: + struct super_block *w_sb;
1: + struct kqid w_dq_id;
1: + short int w_type;
1: +};
1: +
1: +struct fs_disk_quota {
1: + __s8 d_version;
1: + __s8 d_flags;
1: + __u16 d_fieldmask;
1: + __u32 d_id;
1: + __u64 d_blk_hardlimit;
1: + __u64 d_blk_softlimit;
1: + __u64 d_ino_hardlimit;
1: + __u64 d_ino_softlimit;
1: + __u64 d_bcount;
1: + __u64 d_icount;
1: + __s32 d_itimer;
1: + __s32 d_btimer;
1: + __u16 d_iwarns;
1: + __u16 d_bwarns;
1: + __s8 d_itimer_hi;
1: + __s8 d_btimer_hi;
1: + __s8 d_rtbtimer_hi;
1: + __s8 d_padding2;
1: + __u64 d_rtb_hardlimit;
1: + __u64 d_rtb_softlimit;
1: + __u64 d_rtbcount;
1: + __s32 d_rtbtimer;
1: + __u16 d_rtbwarns;
1: + __s16 d_padding3;
1: + char d_padding4[8];
1: +};
1: +
1: +struct fs_qfilestat {
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: +};
1: +
1: +typedef struct fs_qfilestat fs_qfilestat_t;
1: +
1: +struct fs_quota_stat {
1: + __s8 qs_version;
1: + __u16 qs_flags;
1: + __s8 qs_pad;
1: + fs_qfilestat_t qs_uquota;
1: + fs_qfilestat_t qs_gquota;
1: + __u32 qs_incoredqs;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: +};
1: +
1: +struct fs_qfilestatv {
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: + __u32 qfs_pad;
1: +};
1: +
1: +struct fs_quota_statv {
1: + __s8 qs_version;
1: + __u8 qs_pad1;
1: + __u16 qs_flags;
1: + __u32 qs_incoredqs;
1: + struct fs_qfilestatv qs_uquota;
1: + struct fs_qfilestatv qs_gquota;
1: + struct fs_qfilestatv qs_pquota;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: + __u64 qs_pad2[8];
1: +};
1: +
1: +struct if_dqblk {
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: +};
1: +
1: +struct if_nextdqblk {
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: + __u32 dqb_id;
1: +};
1: +
1: +struct if_dqinfo {
1: + __u64 dqi_bgrace;
1: + __u64 dqi_igrace;
1: + __u32 dqi_flags;
1: + __u32 dqi_valid;
1: +};
1: +
1: +struct compat_if_dqblk {
1: + compat_u64 dqb_bhardlimit;
1: + compat_u64 dqb_bsoftlimit;
1: + compat_u64 dqb_curspace;
1: + compat_u64 dqb_ihardlimit;
1: + compat_u64 dqb_isoftlimit;
1: + compat_u64 dqb_curinodes;
1: + compat_u64 dqb_btime;
1: + compat_u64 dqb_itime;
1: + compat_uint_t dqb_valid;
1: +};
1: +
1: +enum {
1: + QUOTA_NL_C_UNSPEC = 0,
1: + QUOTA_NL_C_WARNING = 1,
1: + __QUOTA_NL_C_MAX = 2,
1: +};
1: +
1: +enum {
1: + QUOTA_NL_A_UNSPEC = 0,
1: + QUOTA_NL_A_QTYPE = 1,
1: + QUOTA_NL_A_EXCESS_ID = 2,
1: + QUOTA_NL_A_WARNING = 3,
1: + QUOTA_NL_A_DEV_MAJOR = 4,
1: + QUOTA_NL_A_DEV_MINOR = 5,
1: + QUOTA_NL_A_CAUSED_ID = 6,
1: + QUOTA_NL_A_PAD = 7,
1: + __QUOTA_NL_A_MAX = 8,
1: +};
1: +
1: +struct proc_maps_private {
1: + struct inode *inode;
1: + struct task_struct *task;
1: + struct mm_struct *mm;
1: + struct vm_area_struct *tail_vma;
1: + struct mempolicy *task_mempolicy;
1: +};
1: +
1: +struct mem_size_stats {
1: + long unsigned int resident;
1: + long unsigned int shared_clean;
1: + long unsigned int shared_dirty;
1: + long unsigned int private_clean;
1: + long unsigned int private_dirty;
1: + long unsigned int referenced;
1: + long unsigned int anonymous;
1: + long unsigned int lazyfree;
1: + long unsigned int anonymous_thp;
1: + long unsigned int shmem_thp;
1: + long unsigned int file_thp;
1: + long unsigned int swap;
1: + long unsigned int shared_hugetlb;
1: + long unsigned int private_hugetlb;
1: + u64 pss;
1: + u64 pss_anon;
1: + u64 pss_file;
1: + u64 pss_shmem;
1: + u64 pss_locked;
1: + u64 swap_pss;
1: + bool check_shmem_swap;
1: +};
1: +
1: +enum clear_refs_types {
1: + CLEAR_REFS_ALL = 1,
1: + CLEAR_REFS_ANON = 2,
1: + CLEAR_REFS_MAPPED = 3,
1: + CLEAR_REFS_SOFT_DIRTY = 4,
1: + CLEAR_REFS_MM_HIWATER_RSS = 5,
1: + CLEAR_REFS_LAST = 6,
1: +};
1: +
1: +struct clear_refs_private {
1: + enum clear_refs_types type;
1: +};
1: +
1: +typedef struct {
1: + u64 pme;
1: +} pagemap_entry_t;
1: +
1: +struct pagemapread {
1: + int pos;
1: + int len;
1: + pagemap_entry_t *buffer;
1: + bool show_pfn;
1: +};
1: +
1: +struct numa_maps {
1: + long unsigned int pages;
1: + long unsigned int anon;
1: + long unsigned int active;
1: + long unsigned int writeback;
1: + long unsigned int mapcount_max;
1: + long unsigned int dirty;
1: + long unsigned int swapcache;
1: + long unsigned int node[128];
1: +};
1: +
1: +struct numa_maps_private {
1: + struct proc_maps_private proc_maps;
1: + struct numa_maps md;
1: +};
1: +
1: +struct pde_opener {
1: + struct list_head lh;
1: + struct file *file;
1: + bool closing;
1: + struct completion *c;
1: +};
1: +
1: +enum {
1: + BIAS = 2147483648,
1: +};
1: +
1: +struct proc_fs_context {
1: + struct pid_namespace *pid_ns;
1: + unsigned int mask;
1: + enum proc_hidepid hidepid;
1: + int gid;
1: + enum proc_pidonly pidonly;
1: +};
1: +
1: +enum proc_param {
1: + Opt_gid___2 = 0,
1: + Opt_hidepid = 1,
1: + Opt_subset = 2,
1: +};
1: +
1: +struct genradix_root;
1: +
1: +struct __genradix {
1: + struct genradix_root *root;
1: +};
1: +
1: +struct syscall_info {
1: + __u64 sp;
1: + struct seccomp_data data;
1: +};
1: +
1: +typedef struct dentry *instantiate_t(struct dentry *, struct task_struct *, const void *);
1: +
1: +struct pid_entry {
1: + const char *name;
1: + unsigned int len;
1: + umode_t mode;
1: + const struct inode_operations *iop;
1: + const struct file_operations *fop;
1: + union proc_op op;
1: +};
1: +
1: +struct limit_names {
1: + const char *name;
1: + const char *unit;
1: +};
1: +
1: +struct map_files_info {
1: + long unsigned int start;
1: + long unsigned int end;
1: + fmode_t mode;
1: +};
1: +
1: +struct timers_private {
1: + struct pid *pid;
1: + struct task_struct *task;
1: + struct sighand_struct *sighand;
1: + struct pid_namespace *ns;
1: + long unsigned int flags;
1: +};
1: +
1: +struct tgid_iter {
1: + unsigned int tgid;
1: + struct task_struct *task;
1: +};
1: +
1: +struct fd_data {
1: + fmode_t mode;
1: + unsigned int fd;
1: +};
1: +
1: +struct sysctl_alias {
1: + const char *kernel_param;
1: + const char *sysctl_param;
1: +};
1: +
1: +struct seq_net_private {
1: + struct net *net;
1: +};
1: +
1: +struct bpf_iter_aux_info___2;
1: +
1: +enum kcore_type {
1: + KCORE_TEXT = 0,
1: + KCORE_VMALLOC = 1,
1: + KCORE_RAM = 2,
1: + KCORE_VMEMMAP = 3,
1: + KCORE_USER = 4,
1: + KCORE_OTHER = 5,
1: + KCORE_REMAP = 6,
1: +};
1: +
1: +struct kcore_list {
1: + struct list_head list;
1: + long unsigned int addr;
1: + long unsigned int vaddr;
1: + size_t size;
1: + int type;
1: +};
1: +
1: +struct kernfs_iattrs {
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct simple_xattrs xattrs;
1: + atomic_t nr_user_xattrs;
1: + atomic_t user_xattr_size;
1: +};
1: +
1: +struct kernfs_super_info {
1: + struct super_block *sb;
1: + struct kernfs_root *root;
1: + const void *ns;
1: + struct list_head node;
1: +};
1: +
1: +enum kernfs_node_flag {
1: + KERNFS_ACTIVATED = 16,
1: + KERNFS_NS = 32,
1: + KERNFS_HAS_SEQ_SHOW = 64,
1: + KERNFS_HAS_MMAP = 128,
1: + KERNFS_LOCKDEP = 256,
1: + KERNFS_SUICIDAL = 1024,
1: + KERNFS_SUICIDED = 2048,
1: + KERNFS_EMPTY_DIR = 4096,
1: + KERNFS_HAS_RELEASE = 8192,
1: +};
1: +
1: +struct kernfs_open_node {
1: + atomic_t refcnt;
1: + atomic_t event;
1: + wait_queue_head_t poll;
1: + struct list_head files;
1: +};
1: +
1: +struct config_group;
1: +
1: +struct config_item_type;
1: +
1: +struct config_item {
1: + char *ci_name;
1: + char ci_namebuf[20];
1: + struct kref ci_kref;
1: + struct list_head ci_entry;
1: + struct config_item *ci_parent;
1: + struct config_group *ci_group;
1: + const struct config_item_type *ci_type;
1: + struct dentry *ci_dentry;
1: +};
1: +
1: +struct configfs_subsystem;
1: +
1: +struct config_group {
1: + struct config_item cg_item;
1: + struct list_head cg_children;
1: + struct configfs_subsystem *cg_subsys;
1: + struct list_head default_groups;
1: + struct list_head group_entry;
1: +};
1: +
1: +struct configfs_item_operations;
1: +
1: +struct configfs_group_operations;
1: +
1: +struct configfs_attribute;
1: +
1: +struct configfs_bin_attribute;
1: +
1: +struct config_item_type {
1: + struct module *ct_owner;
1: + struct configfs_item_operations *ct_item_ops;
1: + struct configfs_group_operations *ct_group_ops;
1: + struct configfs_attribute **ct_attrs;
1: + struct configfs_bin_attribute **ct_bin_attrs;
1: +};
1: +
1: +struct configfs_item_operations {
1: + void (*release)(struct config_item *);
1: + int (*allow_link)(struct config_item *, struct config_item *);
1: + void (*drop_link)(struct config_item *, struct config_item *);
1: +};
1: +
1: +struct configfs_group_operations {
1: + struct config_item * (*make_item)(struct config_group *, const char *);
1: + struct config_group * (*make_group)(struct config_group *, const char *);
1: + int (*commit_item)(struct config_item *);
1: + void (*disconnect_notify)(struct config_group *, struct config_item *);
1: + void (*drop_item)(struct config_group *, struct config_item *);
1: +};
1: +
1: +struct configfs_attribute {
1: + const char *ca_name;
1: + struct module *ca_owner;
1: + umode_t ca_mode;
1: + ssize_t (*show)(struct config_item *, char *);
1: + ssize_t (*store)(struct config_item *, const char *, size_t);
1: +};
1: +
1: +struct configfs_bin_attribute {
1: + struct configfs_attribute cb_attr;
1: + void *cb_private;
1: + size_t cb_max_size;
1: + ssize_t (*read)(struct config_item *, void *, size_t);
1: + ssize_t (*write)(struct config_item *, const void *, size_t);
1: +};
1: +
1: +struct configfs_subsystem {
1: + struct config_group su_group;
1: + struct mutex su_mutex;
1: +};
1: +
1: +struct configfs_fragment {
1: + atomic_t frag_count;
1: + struct rw_semaphore frag_sem;
1: + bool frag_dead;
1: +};
1: +
1: +struct configfs_dirent {
1: + atomic_t s_count;
1: + int s_dependent_count;
1: + struct list_head s_sibling;
1: + struct list_head s_children;
1: + int s_links;
1: + void *s_element;
1: + int s_type;
1: + umode_t s_mode;
1: + struct dentry *s_dentry;
1: + struct iattr *s_iattr;
1: + struct configfs_fragment *s_frag;
1: +};
1: +
1: +struct configfs_buffer {
1: + size_t count;
1: + loff_t pos;
1: + char *page;
1: + struct configfs_item_operations *ops;
1: + struct mutex mutex;
1: + int needs_read_fill;
1: + bool read_in_progress;
1: + bool write_in_progress;
1: + char *bin_buffer;
1: + int bin_buffer_size;
1: + int cb_max_size;
1: + struct config_item *item;
1: + struct module *owner;
1: + union {
1: + struct configfs_attribute *attr;
1: + struct configfs_bin_attribute *bin_attr;
1: + };
1: +};
1: +
1: +struct pts_mount_opts {
1: + int setuid;
1: + int setgid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + umode_t ptmxmode;
1: + int reserve;
1: + int max;
1: +};
1: +
1: +enum {
1: + Opt_uid___2 = 0,
1: + Opt_gid___3 = 1,
1: + Opt_mode___2 = 2,
1: + Opt_ptmxmode = 3,
1: + Opt_newinstance = 4,
1: + Opt_max = 5,
1: + Opt_err = 6,
1: +};
1: +
1: +struct pts_fs_info {
1: + struct ida allocated_ptys;
1: + struct pts_mount_opts mount_opts;
1: + struct super_block *sb;
1: + struct dentry *ptmx_dentry;
1: +};
1: +
1: +struct dcookie_struct {
1: + struct path path;
1: + struct list_head hash_list;
1: +};
1: +
1: +struct dcookie_user {
1: + struct list_head next;
1: +};
1: +
1: +typedef unsigned int tid_t;
1: +
1: +struct transaction_chp_stats_s {
1: + long unsigned int cs_chp_time;
1: + __u32 cs_forced_to_close;
1: + __u32 cs_written;
1: + __u32 cs_dropped;
1: +};
1: +
1: +struct journal_s;
1: +
1: +typedef struct journal_s journal_t;
1: +
1: +struct journal_head;
1: +
1: +struct transaction_s;
1: +
1: +typedef struct transaction_s transaction_t;
1: +
1: +struct transaction_s {
1: + journal_t *t_journal;
1: + tid_t t_tid;
1: + enum {
1: + T_RUNNING = 0,
1: + T_LOCKED = 1,
1: + T_SWITCH = 2,
1: + T_FLUSH = 3,
1: + T_COMMIT = 4,
1: + T_COMMIT_DFLUSH = 5,
1: + T_COMMIT_JFLUSH = 6,
1: + T_COMMIT_CALLBACK = 7,
1: + T_FINISHED = 8,
1: + } t_state;
1: + long unsigned int t_log_start;
1: + int t_nr_buffers;
1: + struct journal_head *t_reserved_list;
1: + struct journal_head *t_buffers;
1: + struct journal_head *t_forget;
1: + struct journal_head *t_checkpoint_list;
1: + struct journal_head *t_checkpoint_io_list;
1: + struct journal_head *t_shadow_list;
1: + struct list_head t_inode_list;
1: + spinlock_t t_handle_lock;
1: + long unsigned int t_max_wait;
1: + long unsigned int t_start;
1: + long unsigned int t_requested;
1: + struct transaction_chp_stats_s t_chp_stats;
1: + atomic_t t_updates;
1: + atomic_t t_outstanding_credits;
1: + atomic_t t_outstanding_revokes;
1: + atomic_t t_handle_count;
1: + transaction_t *t_cpnext;
1: + transaction_t *t_cpprev;
1: + long unsigned int t_expires;
1: + ktime_t t_start_time;
1: + unsigned int t_synchronous_commit: 1;
1: + int t_need_data_flush;
1: + struct list_head t_private_list;
1: +};
1: +
1: +struct jbd2_buffer_trigger_type;
1: +
1: +struct journal_head {
1: + struct buffer_head *b_bh;
1: + spinlock_t b_state_lock;
1: + int b_jcount;
1: + unsigned int b_jlist;
1: + unsigned int b_modified;
1: + char *b_frozen_data;
1: + char *b_committed_data;
1: + transaction_t *b_transaction;
1: + transaction_t *b_next_transaction;
1: + struct journal_head *b_tnext;
1: + struct journal_head *b_tprev;
1: + transaction_t *b_cp_transaction;
1: + struct journal_head *b_cpnext;
1: + struct journal_head *b_cpprev;
1: + struct jbd2_buffer_trigger_type *b_triggers;
1: + struct jbd2_buffer_trigger_type *b_frozen_triggers;
1: +};
1: +
1: +struct jbd2_buffer_trigger_type {
1: + void (*t_frozen)(struct jbd2_buffer_trigger_type *, struct buffer_head *, void *, size_t);
1: + void (*t_abort)(struct jbd2_buffer_trigger_type *, struct buffer_head *);
1: +};
1: +
1: +struct jbd2_journal_handle;
1: +
1: +typedef struct jbd2_journal_handle handle_t;
1: +
1: +struct jbd2_journal_handle {
1: + union {
1: + transaction_t *h_transaction;
1: + journal_t *h_journal;
1: + };
1: + handle_t *h_rsv_handle;
1: + int h_total_credits;
1: + int h_revoke_credits;
1: + int h_revoke_credits_requested;
1: + int h_ref;
1: + int h_err;
1: + unsigned int h_sync: 1;
1: + unsigned int h_jdata: 1;
1: + unsigned int h_reserved: 1;
1: + unsigned int h_aborted: 1;
1: + unsigned int h_type: 8;
1: + unsigned int h_line_no: 16;
1: + long unsigned int h_start_jiffies;
1: + unsigned int h_requested_credits;
1: + unsigned int saved_alloc_context;
1: +};
1: +
1: +struct transaction_run_stats_s {
1: + long unsigned int rs_wait;
1: + long unsigned int rs_request_delay;
1: + long unsigned int rs_running;
1: + long unsigned int rs_locked;
1: + long unsigned int rs_flushing;
1: + long unsigned int rs_logging;
1: + __u32 rs_handle_count;
1: + __u32 rs_blocks;
1: + __u32 rs_blocks_logged;
1: +};
1: +
1: +struct transaction_stats_s {
1: + long unsigned int ts_tid;
1: + long unsigned int ts_requested;
1: + struct transaction_run_stats_s run;
1: +};
1: +
1: +enum passtype {
1: + PASS_SCAN = 0,
1: + PASS_REVOKE = 1,
1: + PASS_REPLAY = 2,
1: +};
1: +
1: +struct journal_superblock_s;
1: +
1: +typedef struct journal_superblock_s journal_superblock_t;
1: +
1: +struct jbd2_revoke_table_s;
1: +
1: +struct jbd2_inode;
1: +
1: +struct journal_s {
1: + long unsigned int j_flags;
1: + int j_errno;
1: + struct mutex j_abort_mutex;
1: + struct buffer_head *j_sb_buffer;
1: + journal_superblock_t *j_superblock;
1: + int j_format_version;
1: + rwlock_t j_state_lock;
1: + int j_barrier_count;
1: + struct mutex j_barrier;
1: + transaction_t *j_running_transaction;
1: + transaction_t *j_committing_transaction;
1: + transaction_t *j_checkpoint_transactions;
1: + wait_queue_head_t j_wait_transaction_locked;
1: + wait_queue_head_t j_wait_done_commit;
1: + wait_queue_head_t j_wait_commit;
1: + wait_queue_head_t j_wait_updates;
1: + wait_queue_head_t j_wait_reserved;
1: + wait_queue_head_t j_fc_wait;
1: + struct mutex j_checkpoint_mutex;
1: + struct buffer_head *j_chkpt_bhs[64];
1: + long unsigned int j_head;
1: + long unsigned int j_tail;
1: + long unsigned int j_free;
1: + long unsigned int j_first;
1: + long unsigned int j_last;
1: + long unsigned int j_fc_first;
1: + long unsigned int j_fc_off;
1: + long unsigned int j_fc_last;
1: + struct block_device *j_dev;
1: + int j_blocksize;
1: + long long unsigned int j_blk_offset;
1: + char j_devname[56];
1: + struct block_device *j_fs_dev;
1: + unsigned int j_total_len;
1: + atomic_t j_reserved_credits;
1: + spinlock_t j_list_lock;
1: + struct inode *j_inode;
1: + tid_t j_tail_sequence;
1: + tid_t j_transaction_sequence;
1: + tid_t j_commit_sequence;
1: + tid_t j_commit_request;
1: + __u8 j_uuid[16];
1: + struct task_struct *j_task;
1: + int j_max_transaction_buffers;
1: + int j_revoke_records_per_block;
1: + long unsigned int j_commit_interval;
1: + struct timer_list j_commit_timer;
1: + spinlock_t j_revoke_lock;
1: + struct jbd2_revoke_table_s *j_revoke;
1: + struct jbd2_revoke_table_s *j_revoke_table[2];
1: + struct buffer_head **j_wbuf;
1: + struct buffer_head **j_fc_wbuf;
1: + int j_wbufsize;
1: + int j_fc_wbufsize;
1: + pid_t j_last_sync_writer;
1: + u64 j_average_commit_time;
1: + u32 j_min_batch_time;
1: + u32 j_max_batch_time;
1: + void (*j_commit_callback)(journal_t *, transaction_t *);
1: + int (*j_submit_inode_data_buffers)(struct jbd2_inode *);
1: + int (*j_finish_inode_data_buffers)(struct jbd2_inode *);
1: + spinlock_t j_history_lock;
1: + struct proc_dir_entry *j_proc_entry;
1: + struct transaction_stats_s j_stats;
1: + unsigned int j_failed_commit;
1: + void *j_private;
1: + struct crypto_shash *j_chksum_driver;
1: + __u32 j_csum_seed;
1: + void (*j_fc_cleanup_callback)(struct journal_s *, int);
1: + int (*j_fc_replay_callback)(struct journal_s *, struct buffer_head *, enum passtype, int, tid_t);
1: +};
1: +
1: +struct journal_header_s {
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: +};
1: +
1: +typedef struct journal_header_s journal_header_t;
1: +
1: +struct journal_superblock_s {
1: + journal_header_t s_header;
1: + __be32 s_blocksize;
1: + __be32 s_maxlen;
1: + __be32 s_first;
1: + __be32 s_sequence;
1: + __be32 s_start;
1: + __be32 s_errno;
1: + __be32 s_feature_compat;
1: + __be32 s_feature_incompat;
1: + __be32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + __be32 s_nr_users;
1: + __be32 s_dynsuper;
1: + __be32 s_max_transaction;
1: + __be32 s_max_trans_data;
1: + __u8 s_checksum_type;
1: + __u8 s_padding2[3];
1: + __be32 s_num_fc_blks;
1: + __u32 s_padding[41];
1: + __be32 s_checksum;
1: + __u8 s_users[768];
1: +};
1: +
1: +enum jbd_state_bits {
1: + BH_JBD = 16,
1: + BH_JWrite = 17,
1: + BH_Freed = 18,
1: + BH_Revoked = 19,
1: + BH_RevokeValid = 20,
1: + BH_JBDDirty = 21,
1: + BH_JournalHead = 22,
1: + BH_Shadow = 23,
1: + BH_Verified = 24,
1: + BH_JBDPrivateStart = 25,
1: +};
1: +
1: +struct jbd2_inode {
1: + transaction_t *i_transaction;
1: + transaction_t *i_next_transaction;
1: + struct list_head i_list;
1: + struct inode *i_vfs_inode;
1: + long unsigned int i_flags;
1: + loff_t i_dirty_start;
1: + loff_t i_dirty_end;
1: +};
1: +
1: +struct bgl_lock {
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blockgroup_lock {
1: + struct bgl_lock locks[128];
1: +};
1: +
1: +typedef int ext4_grpblk_t;
1: +
1: +typedef long long unsigned int ext4_fsblk_t;
1: +
1: +typedef __u32 ext4_lblk_t;
1: +
1: +typedef unsigned int ext4_group_t;
1: +
1: +struct ext4_allocation_request {
1: + struct inode *inode;
1: + unsigned int len;
1: + ext4_lblk_t logical;
1: + ext4_lblk_t lleft;
1: + ext4_lblk_t lright;
1: + ext4_fsblk_t goal;
1: + ext4_fsblk_t pleft;
1: + ext4_fsblk_t pright;
1: + unsigned int flags;
1: +};
1: +
1: +struct ext4_system_blocks {
1: + struct rb_root root;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ext4_group_desc {
1: + __le32 bg_block_bitmap_lo;
1: + __le32 bg_inode_bitmap_lo;
1: + __le32 bg_inode_table_lo;
1: + __le16 bg_free_blocks_count_lo;
1: + __le16 bg_free_inodes_count_lo;
1: + __le16 bg_used_dirs_count_lo;
1: + __le16 bg_flags;
1: + __le32 bg_exclude_bitmap_lo;
1: + __le16 bg_block_bitmap_csum_lo;
1: + __le16 bg_inode_bitmap_csum_lo;
1: + __le16 bg_itable_unused_lo;
1: + __le16 bg_checksum;
1: + __le32 bg_block_bitmap_hi;
1: + __le32 bg_inode_bitmap_hi;
1: + __le32 bg_inode_table_hi;
1: + __le16 bg_free_blocks_count_hi;
1: + __le16 bg_free_inodes_count_hi;
1: + __le16 bg_used_dirs_count_hi;
1: + __le16 bg_itable_unused_hi;
1: + __le32 bg_exclude_bitmap_hi;
1: + __le16 bg_block_bitmap_csum_hi;
1: + __le16 bg_inode_bitmap_csum_hi;
1: + __u32 bg_reserved;
1: +};
1: +
1: +struct flex_groups {
1: + atomic64_t free_clusters;
1: + atomic_t free_inodes;
1: + atomic_t used_dirs;
1: +};
1: +
1: +struct extent_status {
1: + struct rb_node rb_node;
1: + ext4_lblk_t es_lblk;
1: + ext4_lblk_t es_len;
1: + ext4_fsblk_t es_pblk;
1: +};
1: +
1: +struct ext4_es_tree {
1: + struct rb_root root;
1: + struct extent_status *cache_es;
1: +};
1: +
1: +struct ext4_es_stats {
1: + long unsigned int es_stats_shrunk;
1: + struct percpu_counter es_stats_cache_hits;
1: + struct percpu_counter es_stats_cache_misses;
1: + u64 es_stats_scan_time;
1: + u64 es_stats_max_scan_time;
1: + struct percpu_counter es_stats_all_cnt;
1: + struct percpu_counter es_stats_shk_cnt;
1: +};
1: +
1: +struct ext4_pending_tree {
1: + struct rb_root root;
1: +};
1: +
1: +struct ext4_fc_stats {
1: + unsigned int fc_ineligible_reason_count[10];
1: + long unsigned int fc_num_commits;
1: + long unsigned int fc_ineligible_commits;
1: + long unsigned int fc_numblks;
1: +};
1: +
1: +struct ext4_fc_alloc_region {
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + int ino;
1: + int len;
1: +};
1: +
1: +struct ext4_fc_replay_state {
1: + int fc_replay_num_tags;
1: + int fc_replay_expected_off;
1: + int fc_current_pass;
1: + int fc_cur_tag;
1: + int fc_crc;
1: + struct ext4_fc_alloc_region *fc_regions;
1: + int fc_regions_size;
1: + int fc_regions_used;
1: + int fc_regions_valid;
1: + int *fc_modified_inodes;
1: + int fc_modified_inodes_used;
1: + int fc_modified_inodes_size;
1: +};
1: +
1: +struct ext4_inode_info {
1: + __le32 i_data[15];
1: + __u32 i_dtime;
1: + ext4_fsblk_t i_file_acl;
1: + ext4_group_t i_block_group;
1: + ext4_lblk_t i_dir_start_lookup;
1: + long unsigned int i_flags;
1: + struct rw_semaphore xattr_sem;
1: + struct list_head i_orphan;
1: + struct list_head i_fc_list;
1: + ext4_lblk_t i_fc_lblk_start;
1: + ext4_lblk_t i_fc_lblk_len;
1: + atomic_t i_fc_updates;
1: + wait_queue_head_t i_fc_wait;
1: + struct mutex i_fc_lock;
1: + loff_t i_disksize;
1: + struct rw_semaphore i_data_sem;
1: + struct rw_semaphore i_mmap_sem;
1: + struct inode vfs_inode;
1: + struct jbd2_inode *jinode;
1: + spinlock_t i_raw_lock;
1: + struct timespec64 i_crtime;
1: + atomic_t i_prealloc_active;
1: + struct list_head i_prealloc_list;
1: + spinlock_t i_prealloc_lock;
1: + struct ext4_es_tree i_es_tree;
1: + rwlock_t i_es_lock;
1: + struct list_head i_es_list;
1: + unsigned int i_es_all_nr;
1: + unsigned int i_es_shk_nr;
1: + ext4_lblk_t i_es_shrink_lblk;
1: + ext4_group_t i_last_alloc_group;
1: + unsigned int i_reserved_data_blocks;
1: + struct ext4_pending_tree i_pending_tree;
1: + __u16 i_extra_isize;
1: + u16 i_inline_off;
1: + u16 i_inline_size;
1: + qsize_t i_reserved_quota;
1: + spinlock_t i_completed_io_lock;
1: + struct list_head i_rsv_conversion_list;
1: + struct work_struct i_rsv_conversion_work;
1: + atomic_t i_unwritten;
1: + spinlock_t i_block_reservation_lock;
1: + tid_t i_sync_tid;
1: + tid_t i_datasync_tid;
1: + struct dquot *i_dquot[3];
1: + __u32 i_csum_seed;
1: + kprojid_t i_projid;
1: +};
1: +
1: +struct ext4_super_block {
1: + __le32 s_inodes_count;
1: + __le32 s_blocks_count_lo;
1: + __le32 s_r_blocks_count_lo;
1: + __le32 s_free_blocks_count_lo;
1: + __le32 s_free_inodes_count;
1: + __le32 s_first_data_block;
1: + __le32 s_log_block_size;
1: + __le32 s_log_cluster_size;
1: + __le32 s_blocks_per_group;
1: + __le32 s_clusters_per_group;
1: + __le32 s_inodes_per_group;
1: + __le32 s_mtime;
1: + __le32 s_wtime;
1: + __le16 s_mnt_count;
1: + __le16 s_max_mnt_count;
1: + __le16 s_magic;
1: + __le16 s_state;
1: + __le16 s_errors;
1: + __le16 s_minor_rev_level;
1: + __le32 s_lastcheck;
1: + __le32 s_checkinterval;
1: + __le32 s_creator_os;
1: + __le32 s_rev_level;
1: + __le16 s_def_resuid;
1: + __le16 s_def_resgid;
1: + __le32 s_first_ino;
1: + __le16 s_inode_size;
1: + __le16 s_block_group_nr;
1: + __le32 s_feature_compat;
1: + __le32 s_feature_incompat;
1: + __le32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + char s_volume_name[16];
1: + char s_last_mounted[64];
1: + __le32 s_algorithm_usage_bitmap;
1: + __u8 s_prealloc_blocks;
1: + __u8 s_prealloc_dir_blocks;
1: + __le16 s_reserved_gdt_blocks;
1: + __u8 s_journal_uuid[16];
1: + __le32 s_journal_inum;
1: + __le32 s_journal_dev;
1: + __le32 s_last_orphan;
1: + __le32 s_hash_seed[4];
1: + __u8 s_def_hash_version;
1: + __u8 s_jnl_backup_type;
1: + __le16 s_desc_size;
1: + __le32 s_default_mount_opts;
1: + __le32 s_first_meta_bg;
1: + __le32 s_mkfs_time;
1: + __le32 s_jnl_blocks[17];
1: + __le32 s_blocks_count_hi;
1: + __le32 s_r_blocks_count_hi;
1: + __le32 s_free_blocks_count_hi;
1: + __le16 s_min_extra_isize;
1: + __le16 s_want_extra_isize;
1: + __le32 s_flags;
1: + __le16 s_raid_stride;
1: + __le16 s_mmp_update_interval;
1: + __le64 s_mmp_block;
1: + __le32 s_raid_stripe_width;
1: + __u8 s_log_groups_per_flex;
1: + __u8 s_checksum_type;
1: + __u8 s_encryption_level;
1: + __u8 s_reserved_pad;
1: + __le64 s_kbytes_written;
1: + __le32 s_snapshot_inum;
1: + __le32 s_snapshot_id;
1: + __le64 s_snapshot_r_blocks_count;
1: + __le32 s_snapshot_list;
1: + __le32 s_error_count;
1: + __le32 s_first_error_time;
1: + __le32 s_first_error_ino;
1: + __le64 s_first_error_block;
1: + __u8 s_first_error_func[32];
1: + __le32 s_first_error_line;
1: + __le32 s_last_error_time;
1: + __le32 s_last_error_ino;
1: + __le32 s_last_error_line;
1: + __le64 s_last_error_block;
1: + __u8 s_last_error_func[32];
1: + __u8 s_mount_opts[64];
1: + __le32 s_usr_quota_inum;
1: + __le32 s_grp_quota_inum;
1: + __le32 s_overhead_clusters;
1: + __le32 s_backup_bgs[2];
1: + __u8 s_encrypt_algos[4];
1: + __u8 s_encrypt_pw_salt[16];
1: + __le32 s_lpf_ino;
1: + __le32 s_prj_quota_inum;
1: + __le32 s_checksum_seed;
1: + __u8 s_wtime_hi;
1: + __u8 s_mtime_hi;
1: + __u8 s_mkfs_time_hi;
1: + __u8 s_lastcheck_hi;
1: + __u8 s_first_error_time_hi;
1: + __u8 s_last_error_time_hi;
1: + __u8 s_first_error_errcode;
1: + __u8 s_last_error_errcode;
1: + __le16 s_encoding;
1: + __le16 s_encoding_flags;
1: + __le32 s_reserved[95];
1: + __le32 s_checksum;
1: +};
1: +
1: +struct mb_cache___2;
1: +
1: +struct ext4_group_info;
1: +
1: +struct ext4_locality_group;
1: +
1: +struct ext4_li_request;
1: +
1: +struct ext4_sb_info {
1: + long unsigned int s_desc_size;
1: + long unsigned int s_inodes_per_block;
1: + long unsigned int s_blocks_per_group;
1: + long unsigned int s_clusters_per_group;
1: + long unsigned int s_inodes_per_group;
1: + long unsigned int s_itb_per_group;
1: + long unsigned int s_gdb_count;
1: + long unsigned int s_desc_per_block;
1: + ext4_group_t s_groups_count;
1: + ext4_group_t s_blockfile_groups;
1: + long unsigned int s_overhead;
1: + unsigned int s_cluster_ratio;
1: + unsigned int s_cluster_bits;
1: + loff_t s_bitmap_maxbytes;
1: + struct buffer_head *s_sbh;
1: + struct ext4_super_block *s_es;
1: + struct buffer_head **s_group_desc;
1: + unsigned int s_mount_opt;
1: + unsigned int s_mount_opt2;
1: + long unsigned int s_mount_flags;
1: + unsigned int s_def_mount_opt;
1: + ext4_fsblk_t s_sb_block;
1: + atomic64_t s_resv_clusters;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + short unsigned int s_mount_state;
1: + short unsigned int s_pad;
1: + int s_addr_per_block_bits;
1: + int s_desc_per_block_bits;
1: + int s_inode_size;
1: + int s_first_ino;
1: + unsigned int s_inode_readahead_blks;
1: + unsigned int s_inode_goal;
1: + u32 s_hash_seed[4];
1: + int s_def_hash_version;
1: + int s_hash_unsigned;
1: + struct percpu_counter s_freeclusters_counter;
1: + struct percpu_counter s_freeinodes_counter;
1: + struct percpu_counter s_dirs_counter;
1: + struct percpu_counter s_dirtyclusters_counter;
1: + struct blockgroup_lock *s_blockgroup_lock;
1: + struct proc_dir_entry *s_proc;
1: + struct kobject s_kobj;
1: + struct completion s_kobj_unregister;
1: + struct super_block *s_sb;
1: + struct journal_s *s_journal;
1: + struct list_head s_orphan;
1: + struct mutex s_orphan_lock;
1: + long unsigned int s_ext4_flags;
1: + long unsigned int s_commit_interval;
1: + u32 s_max_batch_time;
1: + u32 s_min_batch_time;
1: + struct block_device *s_journal_bdev;
1: + char *s_qf_names[3];
1: + int s_jquota_fmt;
1: + unsigned int s_want_extra_isize;
1: + struct ext4_system_blocks *s_system_blks;
1: + struct ext4_group_info ***s_group_info;
1: + struct inode *s_buddy_cache;
1: + spinlock_t s_md_lock;
1: + short unsigned int *s_mb_offsets;
1: + unsigned int *s_mb_maxs;
1: + unsigned int s_group_info_size;
1: + unsigned int s_mb_free_pending;
1: + struct list_head s_freed_data_list;
1: + long unsigned int s_stripe;
1: + unsigned int s_mb_stream_request;
1: + unsigned int s_mb_max_to_scan;
1: + unsigned int s_mb_min_to_scan;
1: + unsigned int s_mb_stats;
1: + unsigned int s_mb_order2_reqs;
1: + unsigned int s_mb_group_prealloc;
1: + unsigned int s_mb_max_inode_prealloc;
1: + unsigned int s_max_dir_size_kb;
1: + long unsigned int s_mb_last_group;
1: + long unsigned int s_mb_last_start;
1: + unsigned int s_mb_prefetch;
1: + unsigned int s_mb_prefetch_limit;
1: + atomic_t s_bal_reqs;
1: + atomic_t s_bal_success;
1: + atomic_t s_bal_allocated;
1: + atomic_t s_bal_ex_scanned;
1: + atomic_t s_bal_goals;
1: + atomic_t s_bal_breaks;
1: + atomic_t s_bal_2orders;
1: + spinlock_t s_bal_lock;
1: + long unsigned int s_mb_buddies_generated;
1: + long long unsigned int s_mb_generation_time;
1: + atomic_t s_mb_lost_chunks;
1: + atomic_t s_mb_preallocated;
1: + atomic_t s_mb_discarded;
1: + atomic_t s_lock_busy;
1: + struct ext4_locality_group *s_locality_groups;
1: + long unsigned int s_sectors_written_start;
1: + u64 s_kbytes_written;
1: + unsigned int s_extent_max_zeroout_kb;
1: + unsigned int s_log_groups_per_flex;
1: + struct flex_groups **s_flex_groups;
1: + ext4_group_t s_flex_groups_allocated;
1: + struct workqueue_struct *rsv_conversion_wq;
1: + struct timer_list s_err_report;
1: + struct ext4_li_request *s_li_request;
1: + unsigned int s_li_wait_mult;
1: + struct task_struct *s_mmp_tsk;
1: + atomic_t s_last_trim_minblks;
1: + struct crypto_shash *s_chksum_driver;
1: + __u32 s_csum_seed;
1: + struct shrinker s_es_shrinker;
1: + struct list_head s_es_list;
1: + long int s_es_nr_inode;
1: + struct ext4_es_stats s_es_stats;
1: + struct mb_cache___2 *s_ea_block_cache;
1: + struct mb_cache___2 *s_ea_inode_cache;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t s_es_lock;
1: + struct ratelimit_state s_err_ratelimit_state;
1: + struct ratelimit_state s_warning_ratelimit_state;
1: + struct ratelimit_state s_msg_ratelimit_state;
1: + atomic_t s_warning_count;
1: + atomic_t s_msg_count;
1: + struct fscrypt_dummy_policy s_dummy_enc_policy;
1: + struct percpu_rw_semaphore s_writepages_rwsem;
1: + struct dax_device *s_daxdev;
1: + errseq_t s_bdev_wb_err;
1: + spinlock_t s_bdev_wb_lock;
1: + atomic_t s_fc_subtid;
1: + atomic_t s_fc_ineligible_updates;
1: + struct list_head s_fc_q[2];
1: + struct list_head s_fc_dentry_q[2];
1: + unsigned int s_fc_bytes;
1: + spinlock_t s_fc_lock;
1: + struct buffer_head *s_fc_bh;
1: + struct ext4_fc_stats s_fc_stats;
1: + u64 s_fc_avg_commit_time;
1: + struct ext4_fc_replay_state s_fc_replay_state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ext4_group_info {
1: + long unsigned int bb_state;
1: + struct rb_root bb_free_root;
1: + ext4_grpblk_t bb_first_free;
1: + ext4_grpblk_t bb_free;
1: + ext4_grpblk_t bb_fragments;
1: + ext4_grpblk_t bb_largest_free_order;
1: + struct list_head bb_prealloc_list;
1: + struct rw_semaphore alloc_sem;
1: + ext4_grpblk_t bb_counters[0];
1: +};
1: +
1: +struct ext4_locality_group {
1: + struct mutex lg_mutex;
1: + struct list_head lg_prealloc_list[10];
1: + spinlock_t lg_prealloc_lock;
1: +};
1: +
1: +enum ext4_li_mode {
1: + EXT4_LI_MODE_PREFETCH_BBITMAP = 0,
1: + EXT4_LI_MODE_ITABLE = 1,
1: +};
1: +
1: +struct ext4_li_request {
1: + struct super_block *lr_super;
1: + enum ext4_li_mode lr_mode;
1: + ext4_group_t lr_first_not_zeroed;
1: + ext4_group_t lr_next_group;
1: + struct list_head lr_request;
1: + long unsigned int lr_next_sched;
1: + long unsigned int lr_timeout;
1: +};
1: +
1: +struct ext4_map_blocks {
1: + ext4_fsblk_t m_pblk;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + unsigned int m_flags;
1: +};
1: +
1: +struct ext4_system_zone {
1: + struct rb_node node;
1: + ext4_fsblk_t start_blk;
1: + unsigned int count;
1: + u32 ino;
1: +};
1: +
1: +enum {
1: + EXT4_INODE_SECRM = 0,
1: + EXT4_INODE_UNRM = 1,
1: + EXT4_INODE_COMPR = 2,
1: + EXT4_INODE_SYNC = 3,
1: + EXT4_INODE_IMMUTABLE = 4,
1: + EXT4_INODE_APPEND = 5,
1: + EXT4_INODE_NODUMP = 6,
1: + EXT4_INODE_NOATIME = 7,
1: + EXT4_INODE_DIRTY = 8,
1: + EXT4_INODE_COMPRBLK = 9,
1: + EXT4_INODE_NOCOMPR = 10,
1: + EXT4_INODE_ENCRYPT = 11,
1: + EXT4_INODE_INDEX = 12,
1: + EXT4_INODE_IMAGIC = 13,
1: + EXT4_INODE_JOURNAL_DATA = 14,
1: + EXT4_INODE_NOTAIL = 15,
1: + EXT4_INODE_DIRSYNC = 16,
1: + EXT4_INODE_TOPDIR = 17,
1: + EXT4_INODE_HUGE_FILE = 18,
1: + EXT4_INODE_EXTENTS = 19,
1: + EXT4_INODE_VERITY = 20,
1: + EXT4_INODE_EA_INODE = 21,
1: + EXT4_INODE_DAX = 25,
1: + EXT4_INODE_INLINE_DATA = 28,
1: + EXT4_INODE_PROJINHERIT = 29,
1: + EXT4_INODE_CASEFOLD = 30,
1: + EXT4_INODE_RESERVED = 31,
1: +};
1: +
1: +enum {
1: + EXT4_FC_REASON_OK = 0,
1: + EXT4_FC_REASON_INELIGIBLE = 1,
1: + EXT4_FC_REASON_ALREADY_COMMITTED = 2,
1: + EXT4_FC_REASON_FC_START_FAILED = 3,
1: + EXT4_FC_REASON_FC_FAILED = 4,
1: + EXT4_FC_REASON_XATTR = 0,
1: + EXT4_FC_REASON_CROSS_RENAME = 1,
1: + EXT4_FC_REASON_JOURNAL_FLAG_CHANGE = 2,
1: + EXT4_FC_REASON_NOMEM = 3,
1: + EXT4_FC_REASON_SWAP_BOOT = 4,
1: + EXT4_FC_REASON_RESIZE = 5,
1: + EXT4_FC_REASON_RENAME_DIR = 6,
1: + EXT4_FC_REASON_FALLOC_RANGE = 7,
1: + EXT4_FC_REASON_INODE_JOURNAL_DATA = 8,
1: + EXT4_FC_COMMIT_FAILED = 9,
1: + EXT4_FC_REASON_MAX = 10,
1: +};
1: +
1: +struct ext4_dir_entry_2 {
1: + __le32 inode;
1: + __le16 rec_len;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[255];
1: +};
1: +
1: +struct fname;
1: +
1: +struct dir_private_info {
1: + struct rb_root root;
1: + struct rb_node *curr_node;
1: + struct fname *extra_fname;
1: + loff_t last_pos;
1: + __u32 curr_hash;
1: + __u32 curr_minor_hash;
1: + __u32 next_hash;
1: +};
1: +
1: +struct fname {
1: + __u32 hash;
1: + __u32 minor_hash;
1: + struct rb_node rb_hash;
1: + struct fname *next;
1: + __u32 inode;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[0];
1: +};
1: +
1: +enum SHIFT_DIRECTION {
1: + SHIFT_LEFT = 0,
1: + SHIFT_RIGHT = 1,
1: +};
1: +
1: +struct ext4_io_end_vec {
1: + struct list_head list;
1: + loff_t offset;
1: + ssize_t size;
1: +};
1: +
1: +struct ext4_io_end {
1: + struct list_head list;
1: + handle_t *handle;
1: + struct inode *inode;
1: + struct bio *bio;
1: + unsigned int flag;
1: + atomic_t count;
1: + struct list_head list_vec;
1: +};
1: +
1: +typedef struct ext4_io_end ext4_io_end_t;
1: +
1: +enum {
1: + ES_WRITTEN_B = 0,
1: + ES_UNWRITTEN_B = 1,
1: + ES_DELAYED_B = 2,
1: + ES_HOLE_B = 3,
1: + ES_REFERENCED_B = 4,
1: + ES_FLAGS = 5,
1: +};
1: +
1: +enum {
1: + EXT4_STATE_JDATA = 0,
1: + EXT4_STATE_NEW = 1,
1: + EXT4_STATE_XATTR = 2,
1: + EXT4_STATE_NO_EXPAND = 3,
1: + EXT4_STATE_DA_ALLOC_CLOSE = 4,
1: + EXT4_STATE_EXT_MIGRATE = 5,
1: + EXT4_STATE_NEWENTRY = 6,
1: + EXT4_STATE_MAY_INLINE_DATA = 7,
1: + EXT4_STATE_EXT_PRECACHED = 8,
1: + EXT4_STATE_LUSTRE_EA_INODE = 9,
1: + EXT4_STATE_VERITY_IN_PROGRESS = 10,
1: + EXT4_STATE_FC_COMMITTING = 11,
1: +};
1: +
1: +struct ext4_iloc {
1: + struct buffer_head *bh;
1: + long unsigned int offset;
1: + ext4_group_t block_group;
1: +};
1: +
1: +struct ext4_extent_tail {
1: + __le32 et_checksum;
1: +};
1: +
1: +struct ext4_extent {
1: + __le32 ee_block;
1: + __le16 ee_len;
1: + __le16 ee_start_hi;
1: + __le32 ee_start_lo;
1: +};
1: +
1: +struct ext4_extent_idx {
1: + __le32 ei_block;
1: + __le32 ei_leaf_lo;
1: + __le16 ei_leaf_hi;
1: + __u16 ei_unused;
1: +};
1: +
1: +struct ext4_extent_header {
1: + __le16 eh_magic;
1: + __le16 eh_entries;
1: + __le16 eh_max;
1: + __le16 eh_depth;
1: + __le32 eh_generation;
1: +};
1: +
1: +struct ext4_ext_path {
1: + ext4_fsblk_t p_block;
1: + __u16 p_depth;
1: + __u16 p_maxdepth;
1: + struct ext4_extent *p_ext;
1: + struct ext4_extent_idx *p_idx;
1: + struct ext4_extent_header *p_hdr;
1: + struct buffer_head *p_bh;
1: +};
1: +
1: +struct partial_cluster {
1: + ext4_fsblk_t pclu;
1: + ext4_lblk_t lblk;
1: + enum {
1: + initial = 0,
1: + tofree = 1,
1: + nofree = 2,
1: + } state;
1: +};
1: +
1: +struct pending_reservation {
1: + struct rb_node rb_node;
1: + ext4_lblk_t lclu;
1: +};
1: +
1: +struct rsvd_count {
1: + int ndelonly;
1: + bool first_do_lblk_found;
1: + ext4_lblk_t first_do_lblk;
1: + ext4_lblk_t last_do_lblk;
1: + struct extent_status *left_es;
1: + bool partial;
1: + ext4_lblk_t lclu;
1: +};
1: +
1: +enum {
1: + EXT4_MF_MNTDIR_SAMPLED = 0,
1: + EXT4_MF_FS_ABORTED = 1,
1: + EXT4_MF_FC_INELIGIBLE = 2,
1: + EXT4_MF_FC_COMMITTING = 3,
1: +};
1: +
1: +struct fsmap {
1: + __u32 fmr_device;
1: + __u32 fmr_flags;
1: + __u64 fmr_physical;
1: + __u64 fmr_owner;
1: + __u64 fmr_offset;
1: + __u64 fmr_length;
1: + __u64 fmr_reserved[3];
1: +};
1: +
1: +struct ext4_fsmap {
1: + struct list_head fmr_list;
1: + dev_t fmr_device;
1: + uint32_t fmr_flags;
1: + uint64_t fmr_physical;
1: + uint64_t fmr_owner;
1: + uint64_t fmr_length;
1: +};
1: +
1: +struct ext4_fsmap_head {
1: + uint32_t fmh_iflags;
1: + uint32_t fmh_oflags;
1: + unsigned int fmh_count;
1: + unsigned int fmh_entries;
1: + struct ext4_fsmap fmh_keys[2];
1: +};
1: +
1: +typedef int (*ext4_fsmap_format_t)(struct ext4_fsmap *, void *);
1: +
1: +struct ext4_getfsmap_info {
1: + struct ext4_fsmap_head *gfi_head;
1: + ext4_fsmap_format_t gfi_formatter;
1: + void *gfi_format_arg;
1: + ext4_fsblk_t gfi_next_fsblk;
1: + u32 gfi_dev;
1: + ext4_group_t gfi_agno;
1: + struct ext4_fsmap gfi_low;
1: + struct ext4_fsmap gfi_high;
1: + struct ext4_fsmap gfi_lastfree;
1: + struct list_head gfi_meta_list;
1: + bool gfi_last;
1: +};
1: +
1: +struct ext4_getfsmap_dev {
1: + int (*gfd_fn)(struct super_block *, struct ext4_fsmap *, struct ext4_getfsmap_info *);
1: + u32 gfd_dev;
1: +};
1: +
1: +struct dx_hash_info {
1: + u32 hash;
1: + u32 minor_hash;
1: + int hash_version;
1: + u32 *seed;
1: +};
1: +
1: +typedef unsigned int __kernel_mode_t;
1: +
1: +typedef __kernel_mode_t mode_t;
1: +
1: +struct ext4_inode {
1: + __le16 i_mode;
1: + __le16 i_uid;
1: + __le32 i_size_lo;
1: + __le32 i_atime;
1: + __le32 i_ctime;
1: + __le32 i_mtime;
1: + __le32 i_dtime;
1: + __le16 i_gid;
1: + __le16 i_links_count;
1: + __le32 i_blocks_lo;
1: + __le32 i_flags;
1: + union {
1: + struct {
1: + __le32 l_i_version;
1: + } linux1;
1: + struct {
1: + __u32 h_i_translator;
1: + } hurd1;
1: + struct {
1: + __u32 m_i_reserved1;
1: + } masix1;
1: + } osd1;
1: + __le32 i_block[15];
1: + __le32 i_generation;
1: + __le32 i_file_acl_lo;
1: + __le32 i_size_high;
1: + __le32 i_obso_faddr;
1: + union {
1: + struct {
1: + __le16 l_i_blocks_high;
1: + __le16 l_i_file_acl_high;
1: + __le16 l_i_uid_high;
1: + __le16 l_i_gid_high;
1: + __le16 l_i_checksum_lo;
1: + __le16 l_i_reserved;
1: + } linux2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __u16 h_i_mode_high;
1: + __u16 h_i_uid_high;
1: + __u16 h_i_gid_high;
1: + __u32 h_i_author;
1: + } hurd2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __le16 m_i_file_acl_high;
1: + __u32 m_i_reserved2[2];
1: + } masix2;
1: + } osd2;
1: + __le16 i_extra_isize;
1: + __le16 i_checksum_hi;
1: + __le32 i_ctime_extra;
1: + __le32 i_mtime_extra;
1: + __le32 i_atime_extra;
1: + __le32 i_crtime;
1: + __le32 i_crtime_extra;
1: + __le32 i_version_hi;
1: + __le32 i_projid;
1: +};
1: +
1: +struct orlov_stats {
1: + __u64 free_clusters;
1: + __u32 free_inodes;
1: + __u32 used_dirs;
1: +};
1: +
1: +typedef struct {
1: + __le32 *p;
1: + __le32 key;
1: + struct buffer_head *bh;
1: +} Indirect;
1: +
1: +struct ext4_filename {
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + struct dx_hash_info hinfo;
1: + struct fscrypt_str crypto_buf;
1: + struct fscrypt_str cf_name;
1: +};
1: +
1: +struct ext4_xattr_ibody_header {
1: + __le32 h_magic;
1: +};
1: +
1: +struct ext4_xattr_entry {
1: + __u8 e_name_len;
1: + __u8 e_name_index;
1: + __le16 e_value_offs;
1: + __le32 e_value_inum;
1: + __le32 e_value_size;
1: + __le32 e_hash;
1: + char e_name[0];
1: +};
1: +
1: +struct ext4_xattr_info {
1: + const char *name;
1: + const void *value;
1: + size_t value_len;
1: + int name_index;
1: + int in_inode;
1: +};
1: +
1: +struct ext4_xattr_search {
1: + struct ext4_xattr_entry *first;
1: + void *base;
1: + void *end;
1: + struct ext4_xattr_entry *here;
1: + int not_found;
1: +};
1: +
1: +struct ext4_xattr_ibody_find {
1: + struct ext4_xattr_search s;
1: + struct ext4_iloc iloc;
1: +};
1: +
1: +typedef short unsigned int __kernel_uid16_t;
1: +
1: +typedef short unsigned int __kernel_gid16_t;
1: +
1: +typedef __kernel_uid16_t uid16_t;
1: +
1: +typedef __kernel_gid16_t gid16_t;
1: +
1: +struct ext4_io_submit {
1: + struct writeback_control *io_wbc;
1: + struct bio *io_bio;
1: + ext4_io_end_t *io_end;
1: + sector_t io_next_block;
1: +};
1: +
1: +typedef enum {
1: + EXT4_IGET_NORMAL = 0,
1: + EXT4_IGET_SPECIAL = 1,
1: + EXT4_IGET_HANDLE = 2,
1: +} ext4_iget_flags;
1: +
1: +struct ext4_xattr_inode_array {
1: + unsigned int count;
1: + struct inode *inodes[0];
1: +};
1: +
1: +struct mpage_da_data {
1: + struct inode *inode;
1: + struct writeback_control *wbc;
1: + long unsigned int first_page;
1: + long unsigned int next_page;
1: + long unsigned int last_page;
1: + struct ext4_map_blocks map;
1: + struct ext4_io_submit io_submit;
1: + unsigned int do_map: 1;
1: + unsigned int scanned_until_end: 1;
1: +};
1: +
1: +struct fstrim_range {
1: + __u64 start;
1: + __u64 len;
1: + __u64 minlen;
1: +};
1: +
1: +struct ext4_new_group_input {
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 unused;
1: +};
1: +
1: +struct compat_ext4_new_group_input {
1: + u32 group;
1: + compat_u64 block_bitmap;
1: + compat_u64 inode_bitmap;
1: + compat_u64 inode_table;
1: + u32 blocks_count;
1: + u16 reserved_blocks;
1: + u16 unused;
1: +};
1: +
1: +struct ext4_new_group_data {
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 mdata_blocks;
1: + __u32 free_clusters_count;
1: +};
1: +
1: +struct move_extent {
1: + __u32 reserved;
1: + __u32 donor_fd;
1: + __u64 orig_start;
1: + __u64 donor_start;
1: + __u64 len;
1: + __u64 moved_len;
1: +};
1: +
1: +struct fsmap_head {
1: + __u32 fmh_iflags;
1: + __u32 fmh_oflags;
1: + __u32 fmh_count;
1: + __u32 fmh_entries;
1: + __u64 fmh_reserved[6];
1: + struct fsmap fmh_keys[2];
1: + struct fsmap fmh_recs[0];
1: +};
1: +
1: +struct getfsmap_info {
1: + struct super_block *gi_sb;
1: + struct fsmap_head *gi_data;
1: + unsigned int gi_idx;
1: + __u32 gi_last_flags;
1: +};
1: +
1: +enum blk_default_limits {
1: + BLK_MAX_SEGMENTS = 128,
1: + BLK_SAFE_MAX_SECTORS = 255,
1: + BLK_DEF_MAX_SECTORS = 2560,
1: + BLK_MAX_SEGMENT_SIZE = 65536,
1: + BLK_SEG_BOUNDARY_MASK = 4294967295,
1: +};
1: +
1: +struct ext4_free_data {
1: + struct list_head efd_list;
1: + struct rb_node efd_node;
1: + ext4_group_t efd_group;
1: + ext4_grpblk_t efd_start_cluster;
1: + ext4_grpblk_t efd_count;
1: + tid_t efd_tid;
1: +};
1: +
1: +struct ext4_prealloc_space {
1: + struct list_head pa_inode_list;
1: + struct list_head pa_group_list;
1: + union {
1: + struct list_head pa_tmp_list;
1: + struct callback_head pa_rcu;
1: + } u;
1: + spinlock_t pa_lock;
1: + atomic_t pa_count;
1: + unsigned int pa_deleted;
1: + ext4_fsblk_t pa_pstart;
1: + ext4_lblk_t pa_lstart;
1: + ext4_grpblk_t pa_len;
1: + ext4_grpblk_t pa_free;
1: + short unsigned int pa_type;
1: + spinlock_t *pa_obj_lock;
1: + struct inode *pa_inode;
1: +};
1: +
1: +enum {
1: + MB_INODE_PA = 0,
1: + MB_GROUP_PA = 1,
1: +};
1: +
1: +struct ext4_free_extent {
1: + ext4_lblk_t fe_logical;
1: + ext4_grpblk_t fe_start;
1: + ext4_group_t fe_group;
1: + ext4_grpblk_t fe_len;
1: +};
1: +
1: +struct ext4_allocation_context {
1: + struct inode *ac_inode;
1: + struct super_block *ac_sb;
1: + struct ext4_free_extent ac_o_ex;
1: + struct ext4_free_extent ac_g_ex;
1: + struct ext4_free_extent ac_b_ex;
1: + struct ext4_free_extent ac_f_ex;
1: + __u16 ac_groups_scanned;
1: + __u16 ac_found;
1: + __u16 ac_tail;
1: + __u16 ac_buddy;
1: + __u16 ac_flags;
1: + __u8 ac_status;
1: + __u8 ac_criteria;
1: + __u8 ac_2order;
1: + __u8 ac_op;
1: + struct page *ac_bitmap_page;
1: + struct page *ac_buddy_page;
1: + struct ext4_prealloc_space *ac_pa;
1: + struct ext4_locality_group *ac_lg;
1: +};
1: +
1: +struct ext4_buddy {
1: + struct page *bd_buddy_page;
1: + void *bd_buddy;
1: + struct page *bd_bitmap_page;
1: + void *bd_bitmap;
1: + struct ext4_group_info *bd_info;
1: + struct super_block *bd_sb;
1: + __u16 bd_blkbits;
1: + ext4_group_t bd_group;
1: +};
1: +
1: +typedef int (*ext4_mballoc_query_range_fn)(struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t, void *);
1: +
1: +struct sg {
1: + struct ext4_group_info info;
1: + ext4_grpblk_t counters[18];
1: +};
1: +
1: +struct migrate_struct {
1: + ext4_lblk_t first_block;
1: + ext4_lblk_t last_block;
1: + ext4_lblk_t curr_block;
1: + ext4_fsblk_t first_pblock;
1: + ext4_fsblk_t last_pblock;
1: +};
1: +
1: +struct mmp_struct {
1: + __le32 mmp_magic;
1: + __le32 mmp_seq;
1: + __le64 mmp_time;
1: + char mmp_nodename[64];
1: + char mmp_bdevname[32];
1: + __le16 mmp_check_interval;
1: + __le16 mmp_pad1;
1: + __le32 mmp_pad2[226];
1: + __le32 mmp_checksum;
1: +};
1: +
1: +struct mmpd_data {
1: + struct buffer_head *bh;
1: + struct super_block *sb;
1: +};
1: +
1: +struct ext4_dir_entry {
1: + __le32 inode;
1: + __le16 rec_len;
1: + __le16 name_len;
1: + char name[255];
1: +};
1: +
1: +struct ext4_dir_entry_tail {
1: + __le32 det_reserved_zero1;
1: + __le16 det_rec_len;
1: + __u8 det_reserved_zero2;
1: + __u8 det_reserved_ft;
1: + __le32 det_checksum;
1: +};
1: +
1: +typedef enum {
1: + EITHER = 0,
1: + INDEX = 1,
1: + DIRENT = 2,
1: + DIRENT_HTREE = 3,
1: +} dirblock_type_t;
1: +
1: +struct fake_dirent {
1: + __le32 inode;
1: + __le16 rec_len;
1: + u8 name_len;
1: + u8 file_type;
1: +};
1: +
1: +struct dx_countlimit {
1: + __le16 limit;
1: + __le16 count;
1: +};
1: +
1: +struct dx_entry {
1: + __le32 hash;
1: + __le32 block;
1: +};
1: +
1: +struct dx_root_info {
1: + __le32 reserved_zero;
1: + u8 hash_version;
1: + u8 info_length;
1: + u8 indirect_levels;
1: + u8 unused_flags;
1: +};
1: +
1: +struct dx_root {
1: + struct fake_dirent dot;
1: + char dot_name[4];
1: + struct fake_dirent dotdot;
1: + char dotdot_name[4];
1: + struct dx_root_info info;
1: + struct dx_entry entries[0];
1: +};
1: +
1: +struct dx_node {
1: + struct fake_dirent fake;
1: + struct dx_entry entries[0];
1: +};
1: +
1: +struct dx_frame {
1: + struct buffer_head *bh;
1: + struct dx_entry *entries;
1: + struct dx_entry *at;
1: +};
1: +
1: +struct dx_map_entry {
1: + u32 hash;
1: + u16 offs;
1: + u16 size;
1: +};
1: +
1: +struct dx_tail {
1: + u32 dt_reserved;
1: + __le32 dt_checksum;
1: +};
1: +
1: +struct ext4_renament {
1: + struct inode *dir;
1: + struct dentry *dentry;
1: + struct inode *inode;
1: + bool is_dir;
1: + int dir_nlink_delta;
1: + struct buffer_head *bh;
1: + struct ext4_dir_entry_2 *de;
1: + int inlined;
1: + struct buffer_head *dir_bh;
1: + struct ext4_dir_entry_2 *parent_de;
1: + int dir_inlined;
1: +};
1: +
1: +enum bio_post_read_step {
1: + STEP_INITIAL = 0,
1: + STEP_DECRYPT = 1,
1: + STEP_VERITY = 2,
1: + STEP_MAX = 3,
1: +};
1: +
1: +struct bio_post_read_ctx {
1: + struct bio *bio;
1: + struct work_struct work;
1: + unsigned int cur_step;
1: + unsigned int enabled_steps;
1: +};
1: +
1: +enum {
1: + BLOCK_BITMAP = 0,
1: + INODE_BITMAP = 1,
1: + INODE_TABLE = 2,
1: + GROUP_TABLE_COUNT = 3,
1: +};
1: +
1: +struct ext4_rcu_ptr {
1: + struct callback_head rcu;
1: + void *ptr;
1: +};
1: +
1: +struct ext4_new_flex_group_data {
1: + struct ext4_new_group_data *groups;
1: + __u16 *bg_flags;
1: + ext4_group_t count;
1: +};
1: +
1: +enum stat_group {
1: + STAT_READ = 0,
1: + STAT_WRITE = 1,
1: + STAT_DISCARD = 2,
1: + STAT_FLUSH = 3,
1: + NR_STAT_GROUPS = 4,
1: +};
1: +
1: +enum {
1: + I_DATA_SEM_NORMAL = 0,
1: + I_DATA_SEM_OTHER = 1,
1: + I_DATA_SEM_QUOTA = 2,
1: +};
1: +
1: +struct ext4_lazy_init {
1: + long unsigned int li_state;
1: + struct list_head li_request_list;
1: + struct mutex li_list_mtx;
1: +};
1: +
1: +struct ext4_journal_cb_entry {
1: + struct list_head jce_list;
1: + void (*jce_func)(struct super_block *, struct ext4_journal_cb_entry *, int);
1: +};
1: +
1: +struct trace_event_raw_ext4_other_inode_update_time {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t orig_ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_free_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u64 blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_request_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_allocate_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_evict_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int nlink;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_drop_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int drop;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_nfs_commit_metadata {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mark_inode_dirty {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int ip;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_begin_ordered_truncate {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t new_size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__write_begin {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__write_end {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int copied;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_writepages {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char for_kupdate;
1: + char range_cyclic;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_write_pages {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int first_page;
1: + long int nr_to_write;
1: + int sync_mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_write_pages_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 lblk;
1: + __u32 len;
1: + __u32 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_writepages_result {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + int pages_written;
1: + long int pages_skipped;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__page_op {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_invalidatepage_op {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_discard_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 blk;
1: + __u64 count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__mb_new_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 pa_pstart;
1: + __u64 pa_lstart;
1: + __u32 pa_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_release_inode_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + __u32 count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_release_group_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 pa_pstart;
1: + __u32 pa_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_discard_preallocations {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + unsigned int needed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_discard_preallocations {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int needed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_request_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_allocate_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_free_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + long unsigned int count;
1: + int flags;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_file_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + int datasync;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_file_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_fs {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int wait;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_alloc_da_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int data_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mballoc_alloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 goal_logical;
1: + int goal_start;
1: + __u32 goal_group;
1: + int goal_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + __u16 found;
1: + __u16 groups;
1: + __u16 buddy;
1: + __u16 flags;
1: + __u16 tail;
1: + __u8 cr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mballoc_prealloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__mballoc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_forget {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + int is_metadata;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_update_reserve_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int used_blocks;
1: + int reserved_data_blocks;
1: + int quota_claim;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_reserve_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_release_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int freed_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__bitmap_load {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_read_block_bitmap_load {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + bool prefetch;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_direct_IO_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_direct_IO_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__fallocate_mode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + int mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fallocate_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int blocks;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_unlink_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + loff_t size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_unlink_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__truncate {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_convert_to_initialized_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_convert_to_initialized_fastpath {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + ext4_lblk_t i_lblk;
1: + unsigned int i_len;
1: + ext4_fsblk_t i_pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__map_blocks_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__map_blocks_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int flags;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int mflags;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_load_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_load_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_journal_start {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + int rsv_blocks;
1: + int revoke_creds;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_journal_start_reserved {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__trim {
1: + struct trace_entry ent;
1: + int dev_major;
1: + int dev_minor;
1: + __u32 group;
1: + int start;
1: + int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_handle_unwritten_extents {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + unsigned int allocated;
1: + ext4_fsblk_t newblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_get_implied_cluster_alloc_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_put_in_cache {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + ext4_fsblk_t start;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_in_cache {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_find_delalloc_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + int reverse;
1: + int found;
1: + ext4_lblk_t found_blk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_get_reserved_cluster_alloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_show_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + short unsigned int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_remove_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + ext4_fsblk_t ee_pblk;
1: + ext4_lblk_t ee_lblk;
1: + short unsigned int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_rm_leaf {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t ee_lblk;
1: + ext4_fsblk_t ee_pblk;
1: + short int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_rm_idx {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_remove_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_remove_space_done {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + short unsigned int eh_entries;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__es_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_remove_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t lblk;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_find_extent_range_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_find_extent_range_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_lookup_extent_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_lookup_extent_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + int found;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__es_shrink_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_to_scan;
1: + int cache_cnt;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_shrink_scan_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + int cache_cnt;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_collapse_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_insert_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_shrink {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + long long unsigned int scan_time;
1: + int nr_skipped;
1: + int retried;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_insert_delayed_block {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + bool allocated;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fsmap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u32 agno;
1: + u64 bno;
1: + u64 len;
1: + u64 owner;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_getfsmap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u64 block;
1: + u64 len;
1: + u64 owner;
1: + u64 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_shutdown {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_error {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + const char *function;
1: + unsigned int line;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_prefetch_bitmaps {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + __u32 next;
1: + __u32 ios;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_lazy_itable_init {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_replay_scan {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int error;
1: + int off;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_replay {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int tag;
1: + int ino;
1: + int priv1;
1: + int priv2;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_commit_start {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_commit_stop {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nblks;
1: + int reason;
1: + int num_fc;
1: + int num_fc_ineligible;
1: + int nblks_agg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + struct ext4_sb_info *sbi;
1: + int count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_create {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_link {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_unlink {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + long int start;
1: + long int end;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_ext4_other_inode_update_time {};
1: +
1: +struct trace_event_data_offsets_ext4_free_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_request_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_allocate_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_evict_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_drop_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_nfs_commit_metadata {};
1: +
1: +struct trace_event_data_offsets_ext4_mark_inode_dirty {};
1: +
1: +struct trace_event_data_offsets_ext4_begin_ordered_truncate {};
1: +
1: +struct trace_event_data_offsets_ext4__write_begin {};
1: +
1: +struct trace_event_data_offsets_ext4__write_end {};
1: +
1: +struct trace_event_data_offsets_ext4_writepages {};
1: +
1: +struct trace_event_data_offsets_ext4_da_write_pages {};
1: +
1: +struct trace_event_data_offsets_ext4_da_write_pages_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_writepages_result {};
1: +
1: +struct trace_event_data_offsets_ext4__page_op {};
1: +
1: +struct trace_event_data_offsets_ext4_invalidatepage_op {};
1: +
1: +struct trace_event_data_offsets_ext4_discard_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4__mb_new_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_release_inode_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_release_group_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_discard_preallocations {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_discard_preallocations {};
1: +
1: +struct trace_event_data_offsets_ext4_request_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_allocate_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_free_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_file_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_file_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_fs {};
1: +
1: +struct trace_event_data_offsets_ext4_alloc_da_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_mballoc_alloc {};
1: +
1: +struct trace_event_data_offsets_ext4_mballoc_prealloc {};
1: +
1: +struct trace_event_data_offsets_ext4__mballoc {};
1: +
1: +struct trace_event_data_offsets_ext4_forget {};
1: +
1: +struct trace_event_data_offsets_ext4_da_update_reserve_space {};
1: +
1: +struct trace_event_data_offsets_ext4_da_reserve_space {};
1: +
1: +struct trace_event_data_offsets_ext4_da_release_space {};
1: +
1: +struct trace_event_data_offsets_ext4__bitmap_load {};
1: +
1: +struct trace_event_data_offsets_ext4_read_block_bitmap_load {};
1: +
1: +struct trace_event_data_offsets_ext4_direct_IO_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_direct_IO_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__fallocate_mode {};
1: +
1: +struct trace_event_data_offsets_ext4_fallocate_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_unlink_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_unlink_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__truncate {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_convert_to_initialized_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_convert_to_initialized_fastpath {};
1: +
1: +struct trace_event_data_offsets_ext4__map_blocks_enter {};
1: +
1: +struct trace_event_data_offsets_ext4__map_blocks_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_load_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_load_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_journal_start {};
1: +
1: +struct trace_event_data_offsets_ext4_journal_start_reserved {};
1: +
1: +struct trace_event_data_offsets_ext4__trim {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_handle_unwritten_extents {};
1: +
1: +struct trace_event_data_offsets_ext4_get_implied_cluster_alloc_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_put_in_cache {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_in_cache {};
1: +
1: +struct trace_event_data_offsets_ext4_find_delalloc_range {};
1: +
1: +struct trace_event_data_offsets_ext4_get_reserved_cluster_alloc {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_show_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_remove_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_rm_leaf {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_rm_idx {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_remove_space {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_remove_space_done {};
1: +
1: +struct trace_event_data_offsets_ext4__es_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_es_remove_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_es_find_extent_range_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_find_extent_range_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_es_lookup_extent_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_lookup_extent_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__es_shrink_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_shrink_scan_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_collapse_range {};
1: +
1: +struct trace_event_data_offsets_ext4_insert_range {};
1: +
1: +struct trace_event_data_offsets_ext4_es_shrink {};
1: +
1: +struct trace_event_data_offsets_ext4_es_insert_delayed_block {};
1: +
1: +struct trace_event_data_offsets_ext4_fsmap_class {};
1: +
1: +struct trace_event_data_offsets_ext4_getfsmap_class {};
1: +
1: +struct trace_event_data_offsets_ext4_shutdown {};
1: +
1: +struct trace_event_data_offsets_ext4_error {};
1: +
1: +struct trace_event_data_offsets_ext4_prefetch_bitmaps {};
1: +
1: +struct trace_event_data_offsets_ext4_lazy_itable_init {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_replay_scan {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_replay {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_commit_start {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_commit_stop {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_stats {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_create {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_link {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_unlink {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_range {};
1: +
1: +typedef void (*btf_trace_ext4_other_inode_update_time)(void *, struct inode *, ino_t);
1: +
1: +typedef void (*btf_trace_ext4_free_inode)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_request_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_allocate_inode)(void *, struct inode *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_evict_inode)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_drop_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_nfs_commit_metadata)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_mark_inode_dirty)(void *, struct inode *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_begin_ordered_truncate)(void *, struct inode *, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_da_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journalled_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_da_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_writepages)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_ext4_da_write_pages)(void *, struct inode *, long unsigned int, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_ext4_da_write_pages_extent)(void *, struct inode *, struct ext4_map_blocks *);
1: +
1: +typedef void (*btf_trace_ext4_writepages_result)(void *, struct inode *, struct writeback_control *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_writepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_readpage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_releasepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journalled_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_discard_blocks)(void *, struct super_block *, long long unsigned int, long long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_new_inode_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_mb_new_group_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_mb_release_inode_pa)(void *, struct ext4_prealloc_space *, long long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_release_group_pa)(void *, struct super_block *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_discard_preallocations)(void *, struct inode *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_discard_preallocations)(void *, struct super_block *, int);
1: +
1: +typedef void (*btf_trace_ext4_request_blocks)(void *, struct ext4_allocation_request *);
1: +
1: +typedef void (*btf_trace_ext4_allocate_blocks)(void *, struct ext4_allocation_request *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_free_blocks)(void *, struct inode *, __u64, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_file_enter)(void *, struct file *, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_file_exit)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_fs)(void *, struct super_block *, int);
1: +
1: +typedef void (*btf_trace_ext4_alloc_da_blocks)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_alloc)(void *, struct ext4_allocation_context *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_prealloc)(void *, struct ext4_allocation_context *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_discard)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_free)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_forget)(void *, struct inode *, int, __u64);
1: +
1: +typedef void (*btf_trace_ext4_da_update_reserve_space)(void *, struct inode *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_da_reserve_space)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_da_release_space)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_mb_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_buddy_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_load_inode_bitmap)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_read_block_bitmap_load)(void *, struct super_block *, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_ext4_direct_IO_enter)(void *, struct inode *, loff_t, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_direct_IO_exit)(void *, struct inode *, loff_t, long unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fallocate_enter)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_punch_hole)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_zero_range)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_fallocate_exit)(void *, struct inode *, loff_t, unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_unlink_enter)(void *, struct inode *, struct dentry *);
1: +
1: +typedef void (*btf_trace_ext4_unlink_exit)(void *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_truncate_enter)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_truncate_exit)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_enter)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *);
1: +
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_fastpath)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *, struct ext4_extent *);
1: +
1: +typedef void (*btf_trace_ext4_ext_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ind_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ext_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ind_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_load_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_load_inode)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journal_start)(void *, struct super_block *, int, int, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journal_start_reserved)(void *, struct super_block *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_trim_extent)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_trim_all_free)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_handle_unwritten_extents)(void *, struct inode *, struct ext4_map_blocks *, int, unsigned int, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_get_implied_cluster_alloc_exit)(void *, struct super_block *, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_put_in_cache)(void *, struct inode *, ext4_lblk_t, unsigned int, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_in_cache)(void *, struct inode *, ext4_lblk_t, int);
1: +
1: +typedef void (*btf_trace_ext4_find_delalloc_range)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, int, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_get_reserved_cluster_alloc)(void *, struct inode *, ext4_lblk_t, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ext_show_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t, short unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_remove_blocks)(void *, struct inode *, struct ext4_extent *, ext4_lblk_t, ext4_fsblk_t, struct partial_cluster *);
1: +
1: +typedef void (*btf_trace_ext4_ext_rm_leaf)(void *, struct inode *, ext4_lblk_t, struct ext4_extent *, struct partial_cluster *);
1: +
1: +typedef void (*btf_trace_ext4_ext_rm_idx)(void *, struct inode *, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_remove_space)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_remove_space_done)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, struct partial_cluster *, __le16);
1: +
1: +typedef void (*btf_trace_ext4_es_insert_extent)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_cache_extent)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_remove_extent)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_find_extent_range_enter)(void *, struct inode *, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_find_extent_range_exit)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_lookup_extent_enter)(void *, struct inode *, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_lookup_extent_exit)(void *, struct inode *, struct extent_status *, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_count)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_scan_enter)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_scan_exit)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_collapse_range)(void *, struct inode *, loff_t, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_insert_range)(void *, struct inode *, loff_t, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink)(void *, struct super_block *, int, u64, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_insert_delayed_block)(void *, struct inode *, struct extent_status *, bool);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_low_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_high_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_mapping)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_low_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_high_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_mapping)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_shutdown)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_error)(void *, struct super_block *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_prefetch_bitmaps)(void *, struct super_block *, ext4_group_t, ext4_group_t, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_lazy_itable_init)(void *, struct super_block *, ext4_group_t);
1: +
1: +typedef void (*btf_trace_ext4_fc_replay_scan)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_replay)(void *, struct super_block *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_commit_start)(void *, struct super_block *);
1: +
1: +typedef void (*btf_trace_ext4_fc_commit_stop)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_stats)(void *, struct super_block *);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_create)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_link)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_unlink)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_range)(void *, struct inode *, long int, long int, int);
1: +
1: +enum {
1: + Opt_bsd_df = 0,
1: + Opt_minix_df = 1,
1: + Opt_grpid = 2,
1: + Opt_nogrpid = 3,
1: + Opt_resgid = 4,
1: + Opt_resuid = 5,
1: + Opt_sb = 6,
1: + Opt_err_cont = 7,
1: + Opt_err_panic = 8,
1: + Opt_err_ro = 9,
1: + Opt_nouid32 = 10,
1: + Opt_debug = 11,
1: + Opt_removed = 12,
1: + Opt_user_xattr = 13,
1: + Opt_nouser_xattr = 14,
1: + Opt_acl = 15,
1: + Opt_noacl = 16,
1: + Opt_auto_da_alloc = 17,
1: + Opt_noauto_da_alloc = 18,
1: + Opt_noload = 19,
1: + Opt_commit = 20,
1: + Opt_min_batch_time = 21,
1: + Opt_max_batch_time = 22,
1: + Opt_journal_dev = 23,
1: + Opt_journal_path = 24,
1: + Opt_journal_checksum = 25,
1: + Opt_journal_async_commit = 26,
1: + Opt_abort = 27,
1: + Opt_data_journal = 28,
1: + Opt_data_ordered = 29,
1: + Opt_data_writeback = 30,
1: + Opt_data_err_abort = 31,
1: + Opt_data_err_ignore = 32,
1: + Opt_test_dummy_encryption = 33,
1: + Opt_inlinecrypt = 34,
1: + Opt_usrjquota = 35,
1: + Opt_grpjquota = 36,
1: + Opt_offusrjquota = 37,
1: + Opt_offgrpjquota = 38,
1: + Opt_jqfmt_vfsold = 39,
1: + Opt_jqfmt_vfsv0 = 40,
1: + Opt_jqfmt_vfsv1 = 41,
1: + Opt_quota = 42,
1: + Opt_noquota = 43,
1: + Opt_barrier = 44,
1: + Opt_nobarrier = 45,
1: + Opt_err___2 = 46,
1: + Opt_usrquota = 47,
1: + Opt_grpquota = 48,
1: + Opt_prjquota = 49,
1: + Opt_i_version = 50,
1: + Opt_dax = 51,
1: + Opt_dax_always = 52,
1: + Opt_dax_inode = 53,
1: + Opt_dax_never = 54,
1: + Opt_stripe = 55,
1: + Opt_delalloc = 56,
1: + Opt_nodelalloc = 57,
1: + Opt_warn_on_error = 58,
1: + Opt_nowarn_on_error = 59,
1: + Opt_mblk_io_submit = 60,
1: + Opt_lazytime = 61,
1: + Opt_nolazytime = 62,
1: + Opt_debug_want_extra_isize = 63,
1: + Opt_nomblk_io_submit = 64,
1: + Opt_block_validity = 65,
1: + Opt_noblock_validity = 66,
1: + Opt_inode_readahead_blks = 67,
1: + Opt_journal_ioprio = 68,
1: + Opt_dioread_nolock = 69,
1: + Opt_dioread_lock = 70,
1: + Opt_discard = 71,
1: + Opt_nodiscard = 72,
1: + Opt_init_itable = 73,
1: + Opt_noinit_itable = 74,
1: + Opt_max_dir_size_kb = 75,
1: + Opt_nojournal_checksum = 76,
1: + Opt_nombcache = 77,
1: + Opt_prefetch_block_bitmaps = 78,
1: +};
1: +
1: +struct mount_opts {
1: + int token;
1: + int mount_opt;
1: + int flags;
1: +};
1: +
1: +struct ext4_sb_encodings {
1: + __u16 magic;
1: + char *name;
1: + char *version;
1: +};
1: +
1: +struct ext4_mount_options {
1: + long unsigned int s_mount_opt;
1: + long unsigned int s_mount_opt2;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + long unsigned int s_commit_interval;
1: + u32 s_min_batch_time;
1: + u32 s_max_batch_time;
1: + int s_jquota_fmt;
1: + char *s_qf_names[3];
1: +};
1: +
1: +enum {
1: + attr_noop = 0,
1: + attr_delayed_allocation_blocks = 1,
1: + attr_session_write_kbytes = 2,
1: + attr_lifetime_write_kbytes = 3,
1: + attr_reserved_clusters = 4,
1: + attr_inode_readahead = 5,
1: + attr_trigger_test_error = 6,
1: + attr_first_error_time = 7,
1: + attr_last_error_time = 8,
1: + attr_feature = 9,
1: + attr_pointer_ui = 10,
1: + attr_pointer_ul = 11,
1: + attr_pointer_u64 = 12,
1: + attr_pointer_u8 = 13,
1: + attr_pointer_string = 14,
1: + attr_pointer_atomic = 15,
1: + attr_journal_task = 16,
1: +};
1: +
1: +enum {
1: + ptr_explicit = 0,
1: + ptr_ext4_sb_info_offset = 1,
1: + ptr_ext4_super_block_offset = 2,
1: +};
1: +
1: +struct ext4_attr {
1: + struct attribute attr;
1: + short int attr_id;
1: + short int attr_ptr;
1: + short unsigned int attr_size;
1: + union {
1: + int offset;
1: + void *explicit_ptr;
1: + } u;
1: +};
1: +
1: +struct ext4_xattr_header {
1: + __le32 h_magic;
1: + __le32 h_refcount;
1: + __le32 h_blocks;
1: + __le32 h_hash;
1: + __le32 h_checksum;
1: + __u32 h_reserved[3];
1: +};
1: +
1: +struct ext4_xattr_block_find {
1: + struct ext4_xattr_search s;
1: + struct buffer_head *bh;
1: +};
1: +
1: +struct ext4_fc_tl {
1: + __le16 fc_tag;
1: + __le16 fc_len;
1: +};
1: +
1: +struct ext4_fc_head {
1: + __le32 fc_features;
1: + __le32 fc_tid;
1: +};
1: +
1: +struct ext4_fc_add_range {
1: + __le32 fc_ino;
1: + __u8 fc_ex[12];
1: +};
1: +
1: +struct ext4_fc_del_range {
1: + __le32 fc_ino;
1: + __le32 fc_lblk;
1: + __le32 fc_len;
1: +};
1: +
1: +struct ext4_fc_dentry_info {
1: + __le32 fc_parent_ino;
1: + __le32 fc_ino;
1: + u8 fc_dname[0];
1: +};
1: +
1: +struct ext4_fc_inode {
1: + __le32 fc_ino;
1: + __u8 fc_raw_inode[0];
1: +};
1: +
1: +struct ext4_fc_tail {
1: + __le32 fc_tid;
1: + __le32 fc_crc;
1: +};
1: +
1: +struct ext4_fc_dentry_update {
1: + int fcd_op;
1: + int fcd_parent;
1: + int fcd_ino;
1: + struct qstr fcd_name;
1: + unsigned char fcd_iname[32];
1: + struct list_head fcd_list;
1: +};
1: +
1: +struct __track_dentry_update_args {
1: + struct dentry *dentry;
1: + int op;
1: +};
1: +
1: +struct __track_range_args {
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: +};
1: +
1: +struct dentry_info_args {
1: + int parent_ino;
1: + int dname_len;
1: + int ino;
1: + int inode_len;
1: + char *dname;
1: +};
1: +
1: +typedef struct {
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: +} ext4_acl_entry;
1: +
1: +typedef struct {
1: + __le32 a_version;
1: +} ext4_acl_header;
1: +
1: +struct commit_header {
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: + unsigned char h_chksum_type;
1: + unsigned char h_chksum_size;
1: + unsigned char h_padding[2];
1: + __be32 h_chksum[8];
1: + __be64 h_commit_sec;
1: + __be32 h_commit_nsec;
1: +};
1: +
1: +struct journal_block_tag3_s {
1: + __be32 t_blocknr;
1: + __be32 t_flags;
1: + __be32 t_blocknr_high;
1: + __be32 t_checksum;
1: +};
1: +
1: +typedef struct journal_block_tag3_s journal_block_tag3_t;
1: +
1: +struct journal_block_tag_s {
1: + __be32 t_blocknr;
1: + __be16 t_checksum;
1: + __be16 t_flags;
1: + __be32 t_blocknr_high;
1: +};
1: +
1: +typedef struct journal_block_tag_s journal_block_tag_t;
1: +
1: +struct jbd2_journal_block_tail {
1: + __be32 t_checksum;
1: +};
1: +
1: +struct jbd2_journal_revoke_header_s {
1: + journal_header_t r_header;
1: + __be32 r_count;
1: +};
1: +
1: +typedef struct jbd2_journal_revoke_header_s jbd2_journal_revoke_header_t;
1: +
1: +struct recovery_info {
1: + tid_t start_transaction;
1: + tid_t end_transaction;
1: + int nr_replays;
1: + int nr_revokes;
1: + int nr_revoke_hits;
1: +};
1: +
1: +struct jbd2_revoke_table_s {
1: + int hash_size;
1: + int hash_shift;
1: + struct list_head *hash_table;
1: +};
1: +
1: +struct jbd2_revoke_record_s {
1: + struct list_head hash;
1: + tid_t sequence;
1: + long long unsigned int blocknr;
1: +};
1: +
1: +struct trace_event_raw_jbd2_checkpoint {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_commit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_end_commit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + int head;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_submit_inode_data {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_start_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int requested_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_extend {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int buffer_credits;
1: + int requested_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int interval;
1: + int sync;
1: + int requested_blocks;
1: + int dirtied_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_run_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int wait;
1: + long unsigned int request_delay;
1: + long unsigned int running;
1: + long unsigned int locked;
1: + long unsigned int flushing;
1: + long unsigned int logging;
1: + __u32 handle_count;
1: + __u32 blocks;
1: + __u32 blocks_logged;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_checkpoint_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int chp_time;
1: + __u32 forced_to_close;
1: + __u32 written;
1: + __u32 dropped;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_update_log_tail {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + tid_t tail_sequence;
1: + tid_t first_tid;
1: + long unsigned int block_nr;
1: + long unsigned int freed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_write_superblock {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int write_op;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_lock_buffer_stall {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int stall_ms;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_jbd2_checkpoint {};
1: +
1: +struct trace_event_data_offsets_jbd2_commit {};
1: +
1: +struct trace_event_data_offsets_jbd2_end_commit {};
1: +
1: +struct trace_event_data_offsets_jbd2_submit_inode_data {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_start_class {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_extend {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_run_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_checkpoint_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_update_log_tail {};
1: +
1: +struct trace_event_data_offsets_jbd2_write_superblock {};
1: +
1: +struct trace_event_data_offsets_jbd2_lock_buffer_stall {};
1: +
1: +typedef void (*btf_trace_jbd2_checkpoint)(void *, journal_t *, int);
1: +
1: +typedef void (*btf_trace_jbd2_start_commit)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_locking)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_flushing)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_logging)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_drop_transaction)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_end_commit)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_submit_inode_data)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_jbd2_handle_start)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_restart)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_extend)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_stats)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int, int, int);
1: +
1: +typedef void (*btf_trace_jbd2_run_stats)(void *, dev_t, long unsigned int, struct transaction_run_stats_s *);
1: +
1: +typedef void (*btf_trace_jbd2_checkpoint_stats)(void *, dev_t, long unsigned int, struct transaction_chp_stats_s *);
1: +
1: +typedef void (*btf_trace_jbd2_update_log_tail)(void *, journal_t *, tid_t, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_jbd2_write_superblock)(void *, journal_t *, int);
1: +
1: +typedef void (*btf_trace_jbd2_lock_buffer_stall)(void *, dev_t, long unsigned int);
1: +
1: +struct jbd2_stats_proc_session {
1: + journal_t *journal;
1: + struct transaction_stats_s *stats;
1: + int start;
1: + int max;
1: +};
1: +
1: +struct ramfs_mount_opts {
1: + umode_t mode;
1: +};
1: +
1: +struct ramfs_fs_info {
1: + struct ramfs_mount_opts mount_opts;
1: +};
1: +
1: +enum ramfs_param {
1: + Opt_mode___3 = 0,
1: +};
1: +
1: +enum hugetlbfs_size_type {
1: + NO_SIZE = 0,
1: + SIZE_STD = 1,
1: + SIZE_PERCENT = 2,
1: +};
1: +
1: +struct hugetlbfs_fs_context {
1: + struct hstate *hstate;
1: + long long unsigned int max_size_opt;
1: + long long unsigned int min_size_opt;
1: + long int max_hpages;
1: + long int nr_inodes;
1: + long int min_hpages;
1: + enum hugetlbfs_size_type max_val_type;
1: + enum hugetlbfs_size_type min_val_type;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +enum hugetlb_param {
1: + Opt_gid___4 = 0,
1: + Opt_min_size = 1,
1: + Opt_mode___4 = 2,
1: + Opt_nr_inodes___2 = 3,
1: + Opt_pagesize = 4,
1: + Opt_size___2 = 5,
1: + Opt_uid___3 = 6,
1: +};
1: +
1: +struct getdents_callback___2 {
1: + struct dir_context ctx;
1: + char *name;
1: + u64 ino;
1: + int found;
1: + int sequence;
1: +};
1: +
1: +typedef u16 wchar_t;
1: +
1: +typedef u32 unicode_t;
1: +
1: +struct nls_table {
1: + const char *charset;
1: + const char *alias;
1: + int (*uni2char)(wchar_t, unsigned char *, int);
1: + int (*char2uni)(const unsigned char *, int, wchar_t *);
1: + const unsigned char *charset2lower;
1: + const unsigned char *charset2upper;
1: + struct module *owner;
1: + struct nls_table *next;
1: +};
1: +
1: +enum utf16_endian {
1: + UTF16_HOST_ENDIAN = 0,
1: + UTF16_LITTLE_ENDIAN = 1,
1: + UTF16_BIG_ENDIAN = 2,
1: +};
1: +
1: +struct utf8_table {
1: + int cmask;
1: + int cval;
1: + int shift;
1: + long int lmask;
1: + long int lval;
1: +};
1: +
1: +struct utf8data;
1: +
1: +struct utf8cursor {
1: + const struct utf8data *data;
1: + const char *s;
1: + const char *p;
1: + const char *ss;
1: + const char *sp;
1: + unsigned int len;
1: + unsigned int slen;
1: + short int ccc;
1: + short int nccc;
1: + unsigned char hangul[12];
1: +};
1: +
1: +struct utf8data {
1: + unsigned int maxage;
1: + unsigned int offset;
1: +};
1: +
1: +typedef const unsigned char utf8trie_t;
1: +
1: +typedef const unsigned char utf8leaf_t;
1: +
1: +typedef struct vfsmount * (*debugfs_automount_t)(struct dentry *, void *);
1: +
1: +struct debugfs_fsdata {
1: + const struct file_operations *real_fops;
1: + refcount_t active_users;
1: + struct completion active_users_drained;
1: +};
1: +
1: +struct debugfs_mount_opts {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +enum {
1: + Opt_uid___4 = 0,
1: + Opt_gid___5 = 1,
1: + Opt_mode___5 = 2,
1: + Opt_err___3 = 3,
1: +};
1: +
1: +struct debugfs_fs_info {
1: + struct debugfs_mount_opts mount_opts;
1: +};
1: +
1: +struct debugfs_blob_wrapper {
1: + void *data;
1: + long unsigned int size;
1: +};
1: +
1: +struct debugfs_reg32 {
1: + char *name;
1: + long unsigned int offset;
1: +};
1: +
1: +struct debugfs_regset32 {
1: + const struct debugfs_reg32 *regs;
1: + int nregs;
1: + void *base;
1: + struct device *dev;
1: +};
1: +
1: +struct debugfs_u32_array {
1: + u32 *array;
1: + u32 n_elements;
1: +};
1: +
1: +struct debugfs_devm_entry {
1: + int (*read)(struct seq_file *, void *);
1: + struct device *dev;
1: +};
1: +
1: +struct tracefs_dir_ops {
1: + int (*mkdir)(const char *);
1: + int (*rmdir)(const char *);
1: +};
1: +
1: +struct tracefs_mount_opts {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +struct tracefs_fs_info {
1: + struct tracefs_mount_opts mount_opts;
1: +};
1: +
1: +enum pstore_type_id {
1: + PSTORE_TYPE_DMESG = 0,
1: + PSTORE_TYPE_MCE = 1,
1: + PSTORE_TYPE_CONSOLE = 2,
1: + PSTORE_TYPE_FTRACE = 3,
1: + PSTORE_TYPE_PPC_RTAS = 4,
1: + PSTORE_TYPE_PPC_OF = 5,
1: + PSTORE_TYPE_PPC_COMMON = 6,
1: + PSTORE_TYPE_PMSG = 7,
1: + PSTORE_TYPE_PPC_OPAL = 8,
1: + PSTORE_TYPE_MAX = 9,
1: +};
1: +
1: +struct pstore_info;
1: +
1: +struct pstore_record {
1: + struct pstore_info *psi;
1: + enum pstore_type_id type;
1: + u64 id;
1: + struct timespec64 time;
1: + char *buf;
1: + ssize_t size;
1: + ssize_t ecc_notice_size;
1: + int count;
1: + enum kmsg_dump_reason reason;
1: + unsigned int part;
1: + bool compressed;
1: +};
1: +
1: +struct pstore_info {
1: + struct module *owner;
1: + const char *name;
1: + struct semaphore buf_lock;
1: + char *buf;
1: + size_t bufsize;
1: + struct mutex read_mutex;
1: + int flags;
1: + int max_reason;
1: + void *data;
1: + int (*open)(struct pstore_info *);
1: + int (*close)(struct pstore_info *);
1: + ssize_t (*read)(struct pstore_record *);
1: + int (*write)(struct pstore_record *);
1: + int (*write_user)(struct pstore_record *, const char *);
1: + int (*erase)(struct pstore_record *);
1: +};
1: +
1: +struct pstore_ftrace_record {
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: + u64 ts;
1: +};
1: +
1: +struct pstore_private {
1: + struct list_head list;
1: + struct dentry *dentry;
1: + struct pstore_record *record;
1: + size_t total_size;
1: +};
1: +
1: +struct pstore_ftrace_seq_data {
1: + const void *ptr;
1: + size_t off;
1: + size_t size;
1: +};
1: +
1: +enum {
1: + Opt_kmsg_bytes = 0,
1: + Opt_err___4 = 1,
1: +};
1: +
1: +struct pstore_zbackend {
1: + int (*zbufsize)(size_t);
1: + const char *name;
1: +};
1: +
1: +typedef s32 compat_key_t;
1: +
1: +struct ipc64_perm {
1: + __kernel_key_t key;
1: + __kernel_uid32_t uid;
1: + __kernel_gid32_t gid;
1: + __kernel_uid32_t cuid;
1: + __kernel_gid32_t cgid;
1: + __kernel_mode_t mode;
1: + unsigned char __pad1[0];
1: + short unsigned int seq;
1: + short unsigned int __pad2;
1: + __kernel_ulong_t __unused1;
1: + __kernel_ulong_t __unused2;
1: +};
1: +
1: +typedef u32 __compat_gid32_t;
1: +
1: +struct compat_ipc64_perm {
1: + compat_key_t key;
1: + __compat_uid32_t uid;
1: + __compat_gid32_t gid;
1: + __compat_uid32_t cuid;
1: + __compat_gid32_t cgid;
1: + short unsigned int mode;
1: + short unsigned int __pad1;
1: + short unsigned int seq;
1: + short unsigned int __pad2;
1: + compat_ulong_t unused1;
1: + compat_ulong_t unused2;
1: +};
1: +
1: +struct compat_ipc_perm {
1: + key_t key;
1: + __compat_uid_t uid;
1: + __compat_gid_t gid;
1: + __compat_uid_t cuid;
1: + __compat_gid_t cgid;
1: + compat_mode_t mode;
1: + short unsigned int seq;
1: +};
1: +
1: +struct ipc_perm {
1: + __kernel_key_t key;
1: + __kernel_uid_t uid;
1: + __kernel_gid_t gid;
1: + __kernel_uid_t cuid;
1: + __kernel_gid_t cgid;
1: + __kernel_mode_t mode;
1: + short unsigned int seq;
1: +};
1: +
1: +struct ipc_params {
1: + key_t key;
1: + int flg;
1: + union {
1: + size_t size;
1: + int nsems;
1: + } u;
1: +};
1: +
1: +struct ipc_ops {
1: + int (*getnew)(struct ipc_namespace *, struct ipc_params *);
1: + int (*associate)(struct kern_ipc_perm *, int);
1: + int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *);
1: +};
1: +
1: +struct ipc_proc_iface {
1: + const char *path;
1: + const char *header;
1: + int ids;
1: + int (*show)(struct seq_file *, void *);
1: +};
1: +
1: +struct ipc_proc_iter {
1: + struct ipc_namespace *ns;
1: + struct pid_namespace *pid_ns;
1: + struct ipc_proc_iface *iface;
1: +};
1: +
1: +struct msg_msgseg;
1: +
1: +struct msg_msg {
1: + struct list_head m_list;
1: + long int m_type;
1: + size_t m_ts;
1: + struct msg_msgseg *next;
1: + void *security;
1: +};
1: +
1: +struct msg_msgseg {
1: + struct msg_msgseg *next;
1: +};
1: +
1: +typedef int __kernel_ipc_pid_t;
1: +
1: +typedef __kernel_long_t __kernel_old_time_t;
1: +
1: +struct msgbuf {
1: + __kernel_long_t mtype;
1: + char mtext[1];
1: +};
1: +
1: +struct msg;
1: +
1: +struct msqid_ds {
1: + struct ipc_perm msg_perm;
1: + struct msg *msg_first;
1: + struct msg *msg_last;
1: + __kernel_old_time_t msg_stime;
1: + __kernel_old_time_t msg_rtime;
1: + __kernel_old_time_t msg_ctime;
1: + long unsigned int msg_lcbytes;
1: + long unsigned int msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + __kernel_ipc_pid_t msg_lspid;
1: + __kernel_ipc_pid_t msg_lrpid;
1: +};
1: +
1: +struct msqid64_ds {
1: + struct ipc64_perm msg_perm;
1: + long int msg_stime;
1: + long int msg_rtime;
1: + long int msg_ctime;
1: + long unsigned int msg_cbytes;
1: + long unsigned int msg_qnum;
1: + long unsigned int msg_qbytes;
1: + __kernel_pid_t msg_lspid;
1: + __kernel_pid_t msg_lrpid;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: +};
1: +
1: +struct msginfo {
1: + int msgpool;
1: + int msgmap;
1: + int msgmax;
1: + int msgmnb;
1: + int msgmni;
1: + int msgssz;
1: + int msgtql;
1: + short unsigned int msgseg;
1: +};
1: +
1: +typedef u16 compat_ipc_pid_t;
1: +
1: +struct compat_msqid64_ds {
1: + struct compat_ipc64_perm msg_perm;
1: + compat_ulong_t msg_stime;
1: + compat_ulong_t msg_stime_high;
1: + compat_ulong_t msg_rtime;
1: + compat_ulong_t msg_rtime_high;
1: + compat_ulong_t msg_ctime;
1: + compat_ulong_t msg_ctime_high;
1: + compat_ulong_t msg_cbytes;
1: + compat_ulong_t msg_qnum;
1: + compat_ulong_t msg_qbytes;
1: + compat_pid_t msg_lspid;
1: + compat_pid_t msg_lrpid;
1: + compat_ulong_t __unused4;
1: + compat_ulong_t __unused5;
1: +};
1: +
1: +struct msg_queue {
1: + struct kern_ipc_perm q_perm;
1: + time64_t q_stime;
1: + time64_t q_rtime;
1: + time64_t q_ctime;
1: + long unsigned int q_cbytes;
1: + long unsigned int q_qnum;
1: + long unsigned int q_qbytes;
1: + struct pid *q_lspid;
1: + struct pid *q_lrpid;
1: + struct list_head q_messages;
1: + struct list_head q_receivers;
1: + struct list_head q_senders;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct msg_receiver {
1: + struct list_head r_list;
1: + struct task_struct *r_tsk;
1: + int r_mode;
1: + long int r_msgtype;
1: + long int r_maxsize;
1: + struct msg_msg *r_msg;
1: +};
1: +
1: +struct msg_sender {
1: + struct list_head list;
1: + struct task_struct *tsk;
1: + size_t msgsz;
1: +};
1: +
1: +struct compat_msqid_ds {
1: + struct compat_ipc_perm msg_perm;
1: + compat_uptr_t msg_first;
1: + compat_uptr_t msg_last;
1: + old_time32_t msg_stime;
1: + old_time32_t msg_rtime;
1: + old_time32_t msg_ctime;
1: + compat_ulong_t msg_lcbytes;
1: + compat_ulong_t msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + compat_ipc_pid_t msg_lspid;
1: + compat_ipc_pid_t msg_lrpid;
1: +};
1: +
1: +struct compat_msgbuf {
1: + compat_long_t mtype;
1: + char mtext[1];
1: +};
1: +
1: +struct sem;
1: +
1: +struct sem_queue;
1: +
1: +struct sem_undo;
1: +
1: +struct semid_ds {
1: + struct ipc_perm sem_perm;
1: + __kernel_old_time_t sem_otime;
1: + __kernel_old_time_t sem_ctime;
1: + struct sem *sem_base;
1: + struct sem_queue *sem_pending;
1: + struct sem_queue **sem_pending_last;
1: + struct sem_undo *undo;
1: + short unsigned int sem_nsems;
1: +};
1: +
1: +struct sem {
1: + int semval;
1: + struct pid *sempid;
1: + spinlock_t lock;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + time64_t sem_otime;
1: +};
1: +
1: +struct sem_queue {
1: + struct list_head list;
1: + struct task_struct *sleeper;
1: + struct sem_undo *undo;
1: + struct pid *pid;
1: + int status;
1: + struct sembuf *sops;
1: + struct sembuf *blocking;
1: + int nsops;
1: + bool alter;
1: + bool dupsop;
1: +};
1: +
1: +struct sem_undo {
1: + struct list_head list_proc;
1: + struct callback_head rcu;
1: + struct sem_undo_list *ulp;
1: + struct list_head list_id;
1: + int semid;
1: + short int *semadj;
1: +};
1: +
1: +struct semid64_ds {
1: + struct ipc64_perm sem_perm;
1: + long int sem_otime;
1: + long int sem_ctime;
1: + long unsigned int sem_nsems;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: +};
1: +
1: +struct seminfo {
1: + int semmap;
1: + int semmni;
1: + int semmns;
1: + int semmnu;
1: + int semmsl;
1: + int semopm;
1: + int semume;
1: + int semusz;
1: + int semvmx;
1: + int semaem;
1: +};
1: +
1: +struct sem_undo_list {
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + struct list_head list_proc;
1: +};
1: +
1: +struct compat_semid64_ds {
1: + struct compat_ipc64_perm sem_perm;
1: + compat_ulong_t sem_otime;
1: + compat_ulong_t sem_otime_high;
1: + compat_ulong_t sem_ctime;
1: + compat_ulong_t sem_ctime_high;
1: + compat_ulong_t sem_nsems;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: +};
1: +
1: +struct sem_array {
1: + struct kern_ipc_perm sem_perm;
1: + time64_t sem_ctime;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + struct list_head list_id;
1: + int sem_nsems;
1: + int complex_count;
1: + unsigned int use_global_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sem sems[0];
1: +};
1: +
1: +struct compat_semid_ds {
1: + struct compat_ipc_perm sem_perm;
1: + old_time32_t sem_otime;
1: + old_time32_t sem_ctime;
1: + compat_uptr_t sem_base;
1: + compat_uptr_t sem_pending;
1: + compat_uptr_t sem_pending_last;
1: + compat_uptr_t undo;
1: + short unsigned int sem_nsems;
1: +};
1: +
1: +struct shmid_ds {
1: + struct ipc_perm shm_perm;
1: + int shm_segsz;
1: + __kernel_old_time_t shm_atime;
1: + __kernel_old_time_t shm_dtime;
1: + __kernel_old_time_t shm_ctime;
1: + __kernel_ipc_pid_t shm_cpid;
1: + __kernel_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + void *shm_unused2;
1: + void *shm_unused3;
1: +};
1: +
1: +struct shmid64_ds {
1: + struct ipc64_perm shm_perm;
1: + size_t shm_segsz;
1: + long int shm_atime;
1: + long int shm_dtime;
1: + long int shm_ctime;
1: + __kernel_pid_t shm_cpid;
1: + __kernel_pid_t shm_lpid;
1: + long unsigned int shm_nattch;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: +};
1: +
1: +struct shminfo64 {
1: + long unsigned int shmmax;
1: + long unsigned int shmmin;
1: + long unsigned int shmmni;
1: + long unsigned int shmseg;
1: + long unsigned int shmall;
1: + long unsigned int __unused1;
1: + long unsigned int __unused2;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: +};
1: +
1: +struct shminfo {
1: + int shmmax;
1: + int shmmin;
1: + int shmmni;
1: + int shmseg;
1: + int shmall;
1: +};
1: +
1: +struct shm_info {
1: + int used_ids;
1: + __kernel_ulong_t shm_tot;
1: + __kernel_ulong_t shm_rss;
1: + __kernel_ulong_t shm_swp;
1: + __kernel_ulong_t swap_attempts;
1: + __kernel_ulong_t swap_successes;
1: +};
1: +
1: +struct compat_shmid64_ds {
1: + struct compat_ipc64_perm shm_perm;
1: + compat_size_t shm_segsz;
1: + compat_ulong_t shm_atime;
1: + compat_ulong_t shm_atime_high;
1: + compat_ulong_t shm_dtime;
1: + compat_ulong_t shm_dtime_high;
1: + compat_ulong_t shm_ctime;
1: + compat_ulong_t shm_ctime_high;
1: + compat_pid_t shm_cpid;
1: + compat_pid_t shm_lpid;
1: + compat_ulong_t shm_nattch;
1: + compat_ulong_t __unused4;
1: + compat_ulong_t __unused5;
1: +};
1: +
1: +struct shmid_kernel {
1: + struct kern_ipc_perm shm_perm;
1: + struct file *shm_file;
1: + long unsigned int shm_nattch;
1: + long unsigned int shm_segsz;
1: + time64_t shm_atim;
1: + time64_t shm_dtim;
1: + time64_t shm_ctim;
1: + struct pid *shm_cprid;
1: + struct pid *shm_lprid;
1: + struct user_struct *mlock_user;
1: + struct task_struct *shm_creator;
1: + struct list_head shm_clist;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct shm_file_data {
1: + int id;
1: + struct ipc_namespace *ns;
1: + struct file *file;
1: + const struct vm_operations_struct *vm_ops;
1: +};
1: +
1: +struct compat_shmid_ds {
1: + struct compat_ipc_perm shm_perm;
1: + int shm_segsz;
1: + old_time32_t shm_atime;
1: + old_time32_t shm_dtime;
1: + old_time32_t shm_ctime;
1: + compat_ipc_pid_t shm_cpid;
1: + compat_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + compat_uptr_t shm_unused2;
1: + compat_uptr_t shm_unused3;
1: +};
1: +
1: +struct compat_shminfo64 {
1: + compat_ulong_t shmmax;
1: + compat_ulong_t shmmin;
1: + compat_ulong_t shmmni;
1: + compat_ulong_t shmseg;
1: + compat_ulong_t shmall;
1: + compat_ulong_t __unused1;
1: + compat_ulong_t __unused2;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: +};
1: +
1: +struct compat_shm_info {
1: + compat_int_t used_ids;
1: + compat_ulong_t shm_tot;
1: + compat_ulong_t shm_rss;
1: + compat_ulong_t shm_swp;
1: + compat_ulong_t swap_attempts;
1: + compat_ulong_t swap_successes;
1: +};
1: +
1: +struct mqueue_fs_context {
1: + struct ipc_namespace *ipc_ns;
1: +};
1: +
1: +struct posix_msg_tree_node {
1: + struct rb_node rb_node;
1: + struct list_head msg_list;
1: + int priority;
1: +};
1: +
1: +struct ext_wait_queue {
1: + struct task_struct *task;
1: + struct list_head list;
1: + struct msg_msg *msg;
1: + int state;
1: +};
1: +
1: +struct mqueue_inode_info {
1: + spinlock_t lock;
1: + struct inode vfs_inode;
1: + wait_queue_head_t wait_q;
1: + struct rb_root msg_tree;
1: + struct rb_node *msg_tree_rightmost;
1: + struct posix_msg_tree_node *node_cache;
1: + struct mq_attr attr;
1: + struct sigevent notify;
1: + struct pid *notify_owner;
1: + u32 notify_self_exec_id;
1: + struct user_namespace *notify_user_ns;
1: + struct user_struct *user;
1: + struct sock *notify_sock;
1: + struct sk_buff *notify_cookie;
1: + struct ext_wait_queue e_wait_q[2];
1: + long unsigned int qsize;
1: +};
1: +
1: +struct compat_mq_attr {
1: + compat_long_t mq_flags;
1: + compat_long_t mq_maxmsg;
1: + compat_long_t mq_msgsize;
1: + compat_long_t mq_curmsgs;
1: + compat_long_t __reserved[4];
1: +};
1: +
1: +struct key_user {
1: + struct rb_node node;
1: + struct mutex cons_lock;
1: + spinlock_t lock;
1: + refcount_t usage;
1: + atomic_t nkeys;
1: + atomic_t nikeys;
1: + kuid_t uid;
1: + int qnkeys;
1: + int qnbytes;
1: +};
1: +
1: +enum key_notification_subtype {
1: + NOTIFY_KEY_INSTANTIATED = 0,
1: + NOTIFY_KEY_UPDATED = 1,
1: + NOTIFY_KEY_LINKED = 2,
1: + NOTIFY_KEY_UNLINKED = 3,
1: + NOTIFY_KEY_CLEARED = 4,
1: + NOTIFY_KEY_REVOKED = 5,
1: + NOTIFY_KEY_INVALIDATED = 6,
1: + NOTIFY_KEY_SETATTR = 7,
1: +};
1: +
1: +struct key_notification {
1: + struct watch_notification watch;
1: + __u32 key_id;
1: + __u32 aux;
1: +};
1: +
1: +struct assoc_array_edit;
1: +
1: +struct assoc_array_ops {
1: + long unsigned int (*get_key_chunk)(const void *, int);
1: + long unsigned int (*get_object_key_chunk)(const void *, int);
1: + bool (*compare_object)(const void *, const void *);
1: + int (*diff_objects)(const void *, const void *);
1: + void (*free_object)(void *);
1: +};
1: +
1: +struct assoc_array_node {
1: + struct assoc_array_ptr *back_pointer;
1: + u8 parent_slot;
1: + struct assoc_array_ptr *slots[16];
1: + long unsigned int nr_leaves_on_branch;
1: +};
1: +
1: +struct assoc_array_shortcut {
1: + struct assoc_array_ptr *back_pointer;
1: + int parent_slot;
1: + int skip_to_level;
1: + struct assoc_array_ptr *next_node;
1: + long unsigned int index_key[0];
1: +};
1: +
1: +struct assoc_array_edit___2 {
1: + struct callback_head rcu;
1: + struct assoc_array *array;
1: + const struct assoc_array_ops *ops;
1: + const struct assoc_array_ops *ops_for_excised_subtree;
1: + struct assoc_array_ptr *leaf;
1: + struct assoc_array_ptr **leaf_p;
1: + struct assoc_array_ptr *dead_leaf;
1: + struct assoc_array_ptr *new_meta[3];
1: + struct assoc_array_ptr *excised_meta[1];
1: + struct assoc_array_ptr *excised_subtree;
1: + struct assoc_array_ptr **set_backpointers[16];
1: + struct assoc_array_ptr *set_backpointers_to;
1: + struct assoc_array_node *adjust_count_on;
1: + long int adjust_count_by;
1: + struct {
1: + struct assoc_array_ptr **ptr;
1: + struct assoc_array_ptr *to;
1: + } set[2];
1: + struct {
1: + u8 *p;
1: + u8 to;
1: + } set_parent_slot[1];
1: + u8 segment_cache[17];
1: +};
1: +
1: +struct keyring_search_context {
1: + struct keyring_index_key index_key;
1: + const struct cred *cred;
1: + struct key_match_data match_data;
1: + unsigned int flags;
1: + int (*iterator)(const void *, void *);
1: + int skipped_ret;
1: + bool possessed;
1: + key_ref_t result;
1: + time64_t now;
1: +};
1: +
1: +struct keyring_read_iterator_context {
1: + size_t buflen;
1: + size_t count;
1: + key_serial_t *buffer;
1: +};
1: +
1: +struct keyctl_dh_params {
1: + union {
1: + __s32 private;
1: + __s32 priv;
1: + };
1: + __s32 prime;
1: + __s32 base;
1: +};
1: +
1: +struct keyctl_kdf_params {
1: + char *hashname;
1: + char *otherinfo;
1: + __u32 otherinfolen;
1: + __u32 __spare[8];
1: +};
1: +
1: +struct keyctl_pkey_query {
1: + __u32 supported_ops;
1: + __u32 key_size;
1: + __u16 max_data_size;
1: + __u16 max_sig_size;
1: + __u16 max_enc_size;
1: + __u16 max_dec_size;
1: + __u32 __spare[10];
1: +};
1: +
1: +struct keyctl_pkey_params {
1: + __s32 key_id;
1: + __u32 in_len;
1: + union {
1: + __u32 out_len;
1: + __u32 in2_len;
1: + };
1: + __u32 __spare[7];
1: +};
1: +
1: +struct request_key_auth {
1: + struct callback_head rcu;
1: + struct key *target_key;
1: + struct key *dest_keyring;
1: + const struct cred *cred;
1: + void *callout_info;
1: + size_t callout_len;
1: + pid_t pid;
1: + char op[8];
1: +};
1: +
1: +enum {
1: + Opt_err___5 = 0,
1: + Opt_enc = 1,
1: + Opt_hash = 2,
1: +};
1: +
1: +enum hash_algo {
1: + HASH_ALGO_MD4 = 0,
1: + HASH_ALGO_MD5 = 1,
1: + HASH_ALGO_SHA1 = 2,
1: + HASH_ALGO_RIPE_MD_160 = 3,
1: + HASH_ALGO_SHA256 = 4,
1: + HASH_ALGO_SHA384 = 5,
1: + HASH_ALGO_SHA512 = 6,
1: + HASH_ALGO_SHA224 = 7,
1: + HASH_ALGO_RIPE_MD_128 = 8,
1: + HASH_ALGO_RIPE_MD_256 = 9,
1: + HASH_ALGO_RIPE_MD_320 = 10,
1: + HASH_ALGO_WP_256 = 11,
1: + HASH_ALGO_WP_384 = 12,
1: + HASH_ALGO_WP_512 = 13,
1: + HASH_ALGO_TGR_128 = 14,
1: + HASH_ALGO_TGR_160 = 15,
1: + HASH_ALGO_TGR_192 = 16,
1: + HASH_ALGO_SM3_256 = 17,
1: + HASH_ALGO_STREEBOG_256 = 18,
1: + HASH_ALGO_STREEBOG_512 = 19,
1: + HASH_ALGO__LAST = 20,
1: +};
1: +
1: +enum tpm_duration {
1: + TPM_SHORT = 0,
1: + TPM_MEDIUM = 1,
1: + TPM_LONG = 2,
1: + TPM_LONG_LONG = 3,
1: + TPM_UNDEFINED = 4,
1: + TPM_NUM_DURATIONS = 4,
1: +};
1: +
1: +struct encrypted_key_payload {
1: + struct callback_head rcu;
1: + char *format;
1: + char *master_desc;
1: + char *datalen;
1: + u8 *iv;
1: + u8 *encrypted_data;
1: + short unsigned int datablob_len;
1: + short unsigned int decrypted_datalen;
1: + short unsigned int payload_datalen;
1: + short unsigned int encrypted_key_format;
1: + u8 *decrypted_data;
1: + u8 payload_data[0];
1: +};
1: +
1: +struct ecryptfs_session_key {
1: + u32 flags;
1: + u32 encrypted_key_size;
1: + u32 decrypted_key_size;
1: + u8 encrypted_key[512];
1: + u8 decrypted_key[64];
1: +};
1: +
1: +struct ecryptfs_password {
1: + u32 password_bytes;
1: + s32 hash_algo;
1: + u32 hash_iterations;
1: + u32 session_key_encryption_key_bytes;
1: + u32 flags;
1: + u8 session_key_encryption_key[64];
1: + u8 signature[17];
1: + u8 salt[8];
1: +};
1: +
1: +struct ecryptfs_private_key {
1: + u32 key_size;
1: + u32 data_len;
1: + u8 signature[17];
1: + char pki_type[17];
1: + u8 data[0];
1: +};
1: +
1: +struct ecryptfs_auth_tok {
1: + u16 version;
1: + u16 token_type;
1: + u32 flags;
1: + struct ecryptfs_session_key session_key;
1: + u8 reserved[32];
1: + union {
1: + struct ecryptfs_password password;
1: + struct ecryptfs_private_key private_key;
1: + } token;
1: +};
1: +
1: +enum {
1: + Opt_new = 0,
1: + Opt_load = 1,
1: + Opt_update = 2,
1: + Opt_err___6 = 3,
1: +};
1: +
1: +enum {
1: + Opt_default = 0,
1: + Opt_ecryptfs = 1,
1: + Opt_enc32 = 2,
1: + Opt_error = 3,
1: +};
1: +
1: +enum derived_key_type {
1: + ENC_KEY = 0,
1: + AUTH_KEY = 1,
1: +};
1: +
1: +enum ecryptfs_token_types {
1: + ECRYPTFS_PASSWORD = 0,
1: + ECRYPTFS_PRIVATE_KEY = 1,
1: +};
1: +
1: +struct vfs_cap_data {
1: + __le32 magic_etc;
1: + struct {
1: + __le32 permitted;
1: + __le32 inheritable;
1: + } data[2];
1: +};
1: +
1: +struct vfs_ns_cap_data {
1: + __le32 magic_etc;
1: + struct {
1: + __le32 permitted;
1: + __le32 inheritable;
1: + } data[2];
1: + __le32 rootid;
1: +};
1: +
1: +struct sctp_endpoint;
1: +
1: +union security_list_options {
1: + int (*binder_set_context_mgr)(struct task_struct *);
1: + int (*binder_transaction)(struct task_struct *, struct task_struct *);
1: + int (*binder_transfer_binder)(struct task_struct *, struct task_struct *);
1: + int (*binder_transfer_file)(struct task_struct *, struct task_struct *, struct file *);
1: + int (*ptrace_access_check)(struct task_struct *, unsigned int);
1: + int (*ptrace_traceme)(struct task_struct *);
1: + int (*capget)(struct task_struct *, kernel_cap_t *, kernel_cap_t *, kernel_cap_t *);
1: + int (*capset)(struct cred *, const struct cred *, const kernel_cap_t *, const kernel_cap_t *, const kernel_cap_t *);
1: + int (*capable)(const struct cred *, struct user_namespace *, int, unsigned int);
1: + int (*quotactl)(int, int, int, struct super_block *);
1: + int (*quota_on)(struct dentry *);
1: + int (*syslog)(int);
1: + int (*settime)(const struct timespec64 *, const struct timezone *);
1: + int (*vm_enough_memory)(struct mm_struct *, long int);
1: + int (*bprm_creds_for_exec)(struct linux_binprm *);
1: + int (*bprm_creds_from_file)(struct linux_binprm *, struct file *);
1: + int (*bprm_check_security)(struct linux_binprm *);
1: + void (*bprm_committing_creds)(struct linux_binprm *);
1: + void (*bprm_committed_creds)(struct linux_binprm *);
1: + int (*fs_context_dup)(struct fs_context *, struct fs_context *);
1: + int (*fs_context_parse_param)(struct fs_context *, struct fs_parameter *);
1: + int (*sb_alloc_security)(struct super_block *);
1: + void (*sb_free_security)(struct super_block *);
1: + void (*sb_free_mnt_opts)(void *);
1: + int (*sb_eat_lsm_opts)(char *, void **);
1: + int (*sb_remount)(struct super_block *, void *);
1: + int (*sb_kern_mount)(struct super_block *);
1: + int (*sb_show_options)(struct seq_file *, struct super_block *);
1: + int (*sb_statfs)(struct dentry *);
1: + int (*sb_mount)(const char *, const struct path *, const char *, long unsigned int, void *);
1: + int (*sb_umount)(struct vfsmount *, int);
1: + int (*sb_pivotroot)(const struct path *, const struct path *);
1: + int (*sb_set_mnt_opts)(struct super_block *, void *, long unsigned int, long unsigned int *);
1: + int (*sb_clone_mnt_opts)(const struct super_block *, struct super_block *, long unsigned int, long unsigned int *);
1: + int (*sb_add_mnt_opt)(const char *, const char *, int, void **);
1: + int (*move_mount)(const struct path *, const struct path *);
1: + int (*dentry_init_security)(struct dentry *, int, const struct qstr *, void **, u32 *);
1: + int (*dentry_create_files_as)(struct dentry *, int, struct qstr *, const struct cred *, struct cred *);
1: + int (*path_unlink)(const struct path *, struct dentry *);
1: + int (*path_mkdir)(const struct path *, struct dentry *, umode_t);
1: + int (*path_rmdir)(const struct path *, struct dentry *);
1: + int (*path_mknod)(const struct path *, struct dentry *, umode_t, unsigned int);
1: + int (*path_truncate)(const struct path *);
1: + int (*path_symlink)(const struct path *, struct dentry *, const char *);
1: + int (*path_link)(struct dentry *, const struct path *, struct dentry *);
1: + int (*path_rename)(const struct path *, struct dentry *, const struct path *, struct dentry *);
1: + int (*path_chmod)(const struct path *, umode_t);
1: + int (*path_chown)(const struct path *, kuid_t, kgid_t);
1: + int (*path_chroot)(const struct path *);
1: + int (*path_notify)(const struct path *, u64, unsigned int);
1: + int (*inode_alloc_security)(struct inode *);
1: + void (*inode_free_security)(struct inode *);
1: + int (*inode_init_security)(struct inode *, struct inode *, const struct qstr *, const char **, void **, size_t *);
1: + int (*inode_create)(struct inode *, struct dentry *, umode_t);
1: + int (*inode_link)(struct dentry *, struct inode *, struct dentry *);
1: + int (*inode_unlink)(struct inode *, struct dentry *);
1: + int (*inode_symlink)(struct inode *, struct dentry *, const char *);
1: + int (*inode_mkdir)(struct inode *, struct dentry *, umode_t);
1: + int (*inode_rmdir)(struct inode *, struct dentry *);
1: + int (*inode_mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: + int (*inode_rename)(struct inode *, struct dentry *, struct inode *, struct dentry *);
1: + int (*inode_readlink)(struct dentry *);
1: + int (*inode_follow_link)(struct dentry *, struct inode *, bool);
1: + int (*inode_permission)(struct inode *, int);
1: + int (*inode_setattr)(struct dentry *, struct iattr *);
1: + int (*inode_getattr)(const struct path *);
1: + int (*inode_setxattr)(struct dentry *, const char *, const void *, size_t, int);
1: + void (*inode_post_setxattr)(struct dentry *, const char *, const void *, size_t, int);
1: + int (*inode_getxattr)(struct dentry *, const char *);
1: + int (*inode_listxattr)(struct dentry *);
1: + int (*inode_removexattr)(struct dentry *, const char *);
1: + int (*inode_need_killpriv)(struct dentry *);
1: + int (*inode_killpriv)(struct dentry *);
1: + int (*inode_getsecurity)(struct inode *, const char *, void **, bool);
1: + int (*inode_setsecurity)(struct inode *, const char *, const void *, size_t, int);
1: + int (*inode_listsecurity)(struct inode *, char *, size_t);
1: + void (*inode_getsecid)(struct inode *, u32 *);
1: + int (*inode_copy_up)(struct dentry *, struct cred **);
1: + int (*inode_copy_up_xattr)(const char *);
1: + int (*kernfs_init_security)(struct kernfs_node *, struct kernfs_node *);
1: + int (*file_permission)(struct file *, int);
1: + int (*file_alloc_security)(struct file *);
1: + void (*file_free_security)(struct file *);
1: + int (*file_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*mmap_addr)(long unsigned int);
1: + int (*mmap_file)(struct file *, long unsigned int, long unsigned int, long unsigned int);
1: + int (*file_mprotect)(struct vm_area_struct *, long unsigned int, long unsigned int);
1: + int (*file_lock)(struct file *, unsigned int);
1: + int (*file_fcntl)(struct file *, unsigned int, long unsigned int);
1: + void (*file_set_fowner)(struct file *);
1: + int (*file_send_sigiotask)(struct task_struct *, struct fown_struct *, int);
1: + int (*file_receive)(struct file *);
1: + int (*file_open)(struct file *);
1: + int (*task_alloc)(struct task_struct *, long unsigned int);
1: + void (*task_free)(struct task_struct *);
1: + int (*cred_alloc_blank)(struct cred *, gfp_t);
1: + void (*cred_free)(struct cred *);
1: + int (*cred_prepare)(struct cred *, const struct cred *, gfp_t);
1: + void (*cred_transfer)(struct cred *, const struct cred *);
1: + void (*cred_getsecid)(const struct cred *, u32 *);
1: + int (*kernel_act_as)(struct cred *, u32);
1: + int (*kernel_create_files_as)(struct cred *, struct inode *);
1: + int (*kernel_module_request)(char *);
1: + int (*kernel_load_data)(enum kernel_load_data_id, bool);
1: + int (*kernel_post_load_data)(char *, loff_t, enum kernel_load_data_id, char *);
1: + int (*kernel_read_file)(struct file *, enum kernel_read_file_id, bool);
1: + int (*kernel_post_read_file)(struct file *, char *, loff_t, enum kernel_read_file_id);
1: + int (*task_fix_setuid)(struct cred *, const struct cred *, int);
1: + int (*task_fix_setgid)(struct cred *, const struct cred *, int);
1: + int (*task_setpgid)(struct task_struct *, pid_t);
1: + int (*task_getpgid)(struct task_struct *);
1: + int (*task_getsid)(struct task_struct *);
1: + void (*task_getsecid)(struct task_struct *, u32 *);
1: + int (*task_setnice)(struct task_struct *, int);
1: + int (*task_setioprio)(struct task_struct *, int);
1: + int (*task_getioprio)(struct task_struct *);
1: + int (*task_prlimit)(const struct cred *, const struct cred *, unsigned int);
1: + int (*task_setrlimit)(struct task_struct *, unsigned int, struct rlimit *);
1: + int (*task_setscheduler)(struct task_struct *);
1: + int (*task_getscheduler)(struct task_struct *);
1: + int (*task_movememory)(struct task_struct *);
1: + int (*task_kill)(struct task_struct *, struct kernel_siginfo *, int, const struct cred *);
1: + int (*task_prctl)(int, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + void (*task_to_inode)(struct task_struct *, struct inode *);
1: + int (*ipc_permission)(struct kern_ipc_perm *, short int);
1: + void (*ipc_getsecid)(struct kern_ipc_perm *, u32 *);
1: + int (*msg_msg_alloc_security)(struct msg_msg *);
1: + void (*msg_msg_free_security)(struct msg_msg *);
1: + int (*msg_queue_alloc_security)(struct kern_ipc_perm *);
1: + void (*msg_queue_free_security)(struct kern_ipc_perm *);
1: + int (*msg_queue_associate)(struct kern_ipc_perm *, int);
1: + int (*msg_queue_msgctl)(struct kern_ipc_perm *, int);
1: + int (*msg_queue_msgsnd)(struct kern_ipc_perm *, struct msg_msg *, int);
1: + int (*msg_queue_msgrcv)(struct kern_ipc_perm *, struct msg_msg *, struct task_struct *, long int, int);
1: + int (*shm_alloc_security)(struct kern_ipc_perm *);
1: + void (*shm_free_security)(struct kern_ipc_perm *);
1: + int (*shm_associate)(struct kern_ipc_perm *, int);
1: + int (*shm_shmctl)(struct kern_ipc_perm *, int);
1: + int (*shm_shmat)(struct kern_ipc_perm *, char *, int);
1: + int (*sem_alloc_security)(struct kern_ipc_perm *);
1: + void (*sem_free_security)(struct kern_ipc_perm *);
1: + int (*sem_associate)(struct kern_ipc_perm *, int);
1: + int (*sem_semctl)(struct kern_ipc_perm *, int);
1: + int (*sem_semop)(struct kern_ipc_perm *, struct sembuf *, unsigned int, int);
1: + int (*netlink_send)(struct sock *, struct sk_buff *);
1: + void (*d_instantiate)(struct dentry *, struct inode *);
1: + int (*getprocattr)(struct task_struct *, char *, char **);
1: + int (*setprocattr)(const char *, void *, size_t);
1: + int (*ismaclabel)(const char *);
1: + int (*secid_to_secctx)(u32, char **, u32 *);
1: + int (*secctx_to_secid)(const char *, u32, u32 *);
1: + void (*release_secctx)(char *, u32);
1: + void (*inode_invalidate_secctx)(struct inode *);
1: + int (*inode_notifysecctx)(struct inode *, void *, u32);
1: + int (*inode_setsecctx)(struct dentry *, void *, u32);
1: + int (*inode_getsecctx)(struct inode *, void **, u32 *);
1: + int (*post_notification)(const struct cred *, const struct cred *, struct watch_notification *);
1: + int (*watch_key)(struct key *);
1: + int (*unix_stream_connect)(struct sock *, struct sock *, struct sock *);
1: + int (*unix_may_send)(struct socket *, struct socket *);
1: + int (*socket_create)(int, int, int, int);
1: + int (*socket_post_create)(struct socket *, int, int, int, int);
1: + int (*socket_socketpair)(struct socket *, struct socket *);
1: + int (*socket_bind)(struct socket *, struct sockaddr *, int);
1: + int (*socket_connect)(struct socket *, struct sockaddr *, int);
1: + int (*socket_listen)(struct socket *, int);
1: + int (*socket_accept)(struct socket *, struct socket *);
1: + int (*socket_sendmsg)(struct socket *, struct msghdr *, int);
1: + int (*socket_recvmsg)(struct socket *, struct msghdr *, int, int);
1: + int (*socket_getsockname)(struct socket *);
1: + int (*socket_getpeername)(struct socket *);
1: + int (*socket_getsockopt)(struct socket *, int, int);
1: + int (*socket_setsockopt)(struct socket *, int, int);
1: + int (*socket_shutdown)(struct socket *, int);
1: + int (*socket_sock_rcv_skb)(struct sock *, struct sk_buff *);
1: + int (*socket_getpeersec_stream)(struct socket *, char *, int *, unsigned int);
1: + int (*socket_getpeersec_dgram)(struct socket *, struct sk_buff *, u32 *);
1: + int (*sk_alloc_security)(struct sock *, int, gfp_t);
1: + void (*sk_free_security)(struct sock *);
1: + void (*sk_clone_security)(const struct sock *, struct sock *);
1: + void (*sk_getsecid)(struct sock *, u32 *);
1: + void (*sock_graft)(struct sock *, struct socket *);
1: + int (*inet_conn_request)(struct sock *, struct sk_buff *, struct request_sock *);
1: + void (*inet_csk_clone)(struct sock *, const struct request_sock *);
1: + void (*inet_conn_established)(struct sock *, struct sk_buff *);
1: + int (*secmark_relabel_packet)(u32);
1: + void (*secmark_refcount_inc)();
1: + void (*secmark_refcount_dec)();
1: + void (*req_classify_flow)(const struct request_sock *, struct flowi *);
1: + int (*tun_dev_alloc_security)(void **);
1: + void (*tun_dev_free_security)(void *);
1: + int (*tun_dev_create)();
1: + int (*tun_dev_attach_queue)(void *);
1: + int (*tun_dev_attach)(struct sock *, void *);
1: + int (*tun_dev_open)(void *);
1: + int (*sctp_assoc_request)(struct sctp_endpoint *, struct sk_buff *);
1: + int (*sctp_bind_connect)(struct sock *, int, struct sockaddr *, int);
1: + void (*sctp_sk_clone)(struct sctp_endpoint *, struct sock *, struct sock *);
1: + int (*xfrm_policy_alloc_security)(struct xfrm_sec_ctx **, struct xfrm_user_sec_ctx *, gfp_t);
1: + int (*xfrm_policy_clone_security)(struct xfrm_sec_ctx *, struct xfrm_sec_ctx **);
1: + void (*xfrm_policy_free_security)(struct xfrm_sec_ctx *);
1: + int (*xfrm_policy_delete_security)(struct xfrm_sec_ctx *);
1: + int (*xfrm_state_alloc)(struct xfrm_state *, struct xfrm_user_sec_ctx *);
1: + int (*xfrm_state_alloc_acquire)(struct xfrm_state *, struct xfrm_sec_ctx *, u32);
1: + void (*xfrm_state_free_security)(struct xfrm_state *);
1: + int (*xfrm_state_delete_security)(struct xfrm_state *);
1: + int (*xfrm_policy_lookup)(struct xfrm_sec_ctx *, u32, u8);
1: + int (*xfrm_state_pol_flow_match)(struct xfrm_state *, struct xfrm_policy *, const struct flowi *);
1: + int (*xfrm_decode_session)(struct sk_buff *, u32 *, int);
1: + int (*key_alloc)(struct key *, const struct cred *, long unsigned int);
1: + void (*key_free)(struct key *);
1: + int (*key_permission)(key_ref_t, const struct cred *, enum key_need_perm);
1: + int (*key_getsecurity)(struct key *, char **);
1: + int (*audit_rule_init)(u32, u32, char *, void **);
1: + int (*audit_rule_known)(struct audit_krule *);
1: + int (*audit_rule_match)(u32, u32, u32, void *);
1: + void (*audit_rule_free)(void *);
1: + int (*bpf)(int, union bpf_attr *, unsigned int);
1: + int (*bpf_map)(struct bpf_map *, fmode_t);
1: + int (*bpf_prog)(struct bpf_prog *);
1: + int (*bpf_map_alloc_security)(struct bpf_map *);
1: + void (*bpf_map_free_security)(struct bpf_map *);
1: + int (*bpf_prog_alloc_security)(struct bpf_prog_aux *);
1: + void (*bpf_prog_free_security)(struct bpf_prog_aux *);
1: + int (*locked_down)(enum lockdown_reason);
1: + int (*perf_event_open)(struct perf_event_attr *, int);
1: + int (*perf_event_alloc)(struct perf_event *);
1: + void (*perf_event_free)(struct perf_event *);
1: + int (*perf_event_read)(struct perf_event *);
1: + int (*perf_event_write)(struct perf_event *);
1: +};
1: +
1: +struct security_hook_heads {
1: + struct hlist_head binder_set_context_mgr;
1: + struct hlist_head binder_transaction;
1: + struct hlist_head binder_transfer_binder;
1: + struct hlist_head binder_transfer_file;
1: + struct hlist_head ptrace_access_check;
1: + struct hlist_head ptrace_traceme;
1: + struct hlist_head capget;
1: + struct hlist_head capset;
1: + struct hlist_head capable;
1: + struct hlist_head quotactl;
1: + struct hlist_head quota_on;
1: + struct hlist_head syslog;
1: + struct hlist_head settime;
1: + struct hlist_head vm_enough_memory;
1: + struct hlist_head bprm_creds_for_exec;
1: + struct hlist_head bprm_creds_from_file;
1: + struct hlist_head bprm_check_security;
1: + struct hlist_head bprm_committing_creds;
1: + struct hlist_head bprm_committed_creds;
1: + struct hlist_head fs_context_dup;
1: + struct hlist_head fs_context_parse_param;
1: + struct hlist_head sb_alloc_security;
1: + struct hlist_head sb_free_security;
1: + struct hlist_head sb_free_mnt_opts;
1: + struct hlist_head sb_eat_lsm_opts;
1: + struct hlist_head sb_remount;
1: + struct hlist_head sb_kern_mount;
1: + struct hlist_head sb_show_options;
1: + struct hlist_head sb_statfs;
1: + struct hlist_head sb_mount;
1: + struct hlist_head sb_umount;
1: + struct hlist_head sb_pivotroot;
1: + struct hlist_head sb_set_mnt_opts;
1: + struct hlist_head sb_clone_mnt_opts;
1: + struct hlist_head sb_add_mnt_opt;
1: + struct hlist_head move_mount;
1: + struct hlist_head dentry_init_security;
1: + struct hlist_head dentry_create_files_as;
1: + struct hlist_head path_unlink;
1: + struct hlist_head path_mkdir;
1: + struct hlist_head path_rmdir;
1: + struct hlist_head path_mknod;
1: + struct hlist_head path_truncate;
1: + struct hlist_head path_symlink;
1: + struct hlist_head path_link;
1: + struct hlist_head path_rename;
1: + struct hlist_head path_chmod;
1: + struct hlist_head path_chown;
1: + struct hlist_head path_chroot;
1: + struct hlist_head path_notify;
1: + struct hlist_head inode_alloc_security;
1: + struct hlist_head inode_free_security;
1: + struct hlist_head inode_init_security;
1: + struct hlist_head inode_create;
1: + struct hlist_head inode_link;
1: + struct hlist_head inode_unlink;
1: + struct hlist_head inode_symlink;
1: + struct hlist_head inode_mkdir;
1: + struct hlist_head inode_rmdir;
1: + struct hlist_head inode_mknod;
1: + struct hlist_head inode_rename;
1: + struct hlist_head inode_readlink;
1: + struct hlist_head inode_follow_link;
1: + struct hlist_head inode_permission;
1: + struct hlist_head inode_setattr;
1: + struct hlist_head inode_getattr;
1: + struct hlist_head inode_setxattr;
1: + struct hlist_head inode_post_setxattr;
1: + struct hlist_head inode_getxattr;
1: + struct hlist_head inode_listxattr;
1: + struct hlist_head inode_removexattr;
1: + struct hlist_head inode_need_killpriv;
1: + struct hlist_head inode_killpriv;
1: + struct hlist_head inode_getsecurity;
1: + struct hlist_head inode_setsecurity;
1: + struct hlist_head inode_listsecurity;
1: + struct hlist_head inode_getsecid;
1: + struct hlist_head inode_copy_up;
1: + struct hlist_head inode_copy_up_xattr;
1: + struct hlist_head kernfs_init_security;
1: + struct hlist_head file_permission;
1: + struct hlist_head file_alloc_security;
1: + struct hlist_head file_free_security;
1: + struct hlist_head file_ioctl;
1: + struct hlist_head mmap_addr;
1: + struct hlist_head mmap_file;
1: + struct hlist_head file_mprotect;
1: + struct hlist_head file_lock;
1: + struct hlist_head file_fcntl;
1: + struct hlist_head file_set_fowner;
1: + struct hlist_head file_send_sigiotask;
1: + struct hlist_head file_receive;
1: + struct hlist_head file_open;
1: + struct hlist_head task_alloc;
1: + struct hlist_head task_free;
1: + struct hlist_head cred_alloc_blank;
1: + struct hlist_head cred_free;
1: + struct hlist_head cred_prepare;
1: + struct hlist_head cred_transfer;
1: + struct hlist_head cred_getsecid;
1: + struct hlist_head kernel_act_as;
1: + struct hlist_head kernel_create_files_as;
1: + struct hlist_head kernel_module_request;
1: + struct hlist_head kernel_load_data;
1: + struct hlist_head kernel_post_load_data;
1: + struct hlist_head kernel_read_file;
1: + struct hlist_head kernel_post_read_file;
1: + struct hlist_head task_fix_setuid;
1: + struct hlist_head task_fix_setgid;
1: + struct hlist_head task_setpgid;
1: + struct hlist_head task_getpgid;
1: + struct hlist_head task_getsid;
1: + struct hlist_head task_getsecid;
1: + struct hlist_head task_setnice;
1: + struct hlist_head task_setioprio;
1: + struct hlist_head task_getioprio;
1: + struct hlist_head task_prlimit;
1: + struct hlist_head task_setrlimit;
1: + struct hlist_head task_setscheduler;
1: + struct hlist_head task_getscheduler;
1: + struct hlist_head task_movememory;
1: + struct hlist_head task_kill;
1: + struct hlist_head task_prctl;
1: + struct hlist_head task_to_inode;
1: + struct hlist_head ipc_permission;
1: + struct hlist_head ipc_getsecid;
1: + struct hlist_head msg_msg_alloc_security;
1: + struct hlist_head msg_msg_free_security;
1: + struct hlist_head msg_queue_alloc_security;
1: + struct hlist_head msg_queue_free_security;
1: + struct hlist_head msg_queue_associate;
1: + struct hlist_head msg_queue_msgctl;
1: + struct hlist_head msg_queue_msgsnd;
1: + struct hlist_head msg_queue_msgrcv;
1: + struct hlist_head shm_alloc_security;
1: + struct hlist_head shm_free_security;
1: + struct hlist_head shm_associate;
1: + struct hlist_head shm_shmctl;
1: + struct hlist_head shm_shmat;
1: + struct hlist_head sem_alloc_security;
1: + struct hlist_head sem_free_security;
1: + struct hlist_head sem_associate;
1: + struct hlist_head sem_semctl;
1: + struct hlist_head sem_semop;
1: + struct hlist_head netlink_send;
1: + struct hlist_head d_instantiate;
1: + struct hlist_head getprocattr;
1: + struct hlist_head setprocattr;
1: + struct hlist_head ismaclabel;
1: + struct hlist_head secid_to_secctx;
1: + struct hlist_head secctx_to_secid;
1: + struct hlist_head release_secctx;
1: + struct hlist_head inode_invalidate_secctx;
1: + struct hlist_head inode_notifysecctx;
1: + struct hlist_head inode_setsecctx;
1: + struct hlist_head inode_getsecctx;
1: + struct hlist_head post_notification;
1: + struct hlist_head watch_key;
1: + struct hlist_head unix_stream_connect;
1: + struct hlist_head unix_may_send;
1: + struct hlist_head socket_create;
1: + struct hlist_head socket_post_create;
1: + struct hlist_head socket_socketpair;
1: + struct hlist_head socket_bind;
1: + struct hlist_head socket_connect;
1: + struct hlist_head socket_listen;
1: + struct hlist_head socket_accept;
1: + struct hlist_head socket_sendmsg;
1: + struct hlist_head socket_recvmsg;
1: + struct hlist_head socket_getsockname;
1: + struct hlist_head socket_getpeername;
1: + struct hlist_head socket_getsockopt;
1: + struct hlist_head socket_setsockopt;
1: + struct hlist_head socket_shutdown;
1: + struct hlist_head socket_sock_rcv_skb;
1: + struct hlist_head socket_getpeersec_stream;
1: + struct hlist_head socket_getpeersec_dgram;
1: + struct hlist_head sk_alloc_security;
1: + struct hlist_head sk_free_security;
1: + struct hlist_head sk_clone_security;
1: + struct hlist_head sk_getsecid;
1: + struct hlist_head sock_graft;
1: + struct hlist_head inet_conn_request;
1: + struct hlist_head inet_csk_clone;
1: + struct hlist_head inet_conn_established;
1: + struct hlist_head secmark_relabel_packet;
1: + struct hlist_head secmark_refcount_inc;
1: + struct hlist_head secmark_refcount_dec;
1: + struct hlist_head req_classify_flow;
1: + struct hlist_head tun_dev_alloc_security;
1: + struct hlist_head tun_dev_free_security;
1: + struct hlist_head tun_dev_create;
1: + struct hlist_head tun_dev_attach_queue;
1: + struct hlist_head tun_dev_attach;
1: + struct hlist_head tun_dev_open;
1: + struct hlist_head sctp_assoc_request;
1: + struct hlist_head sctp_bind_connect;
1: + struct hlist_head sctp_sk_clone;
1: + struct hlist_head xfrm_policy_alloc_security;
1: + struct hlist_head xfrm_policy_clone_security;
1: + struct hlist_head xfrm_policy_free_security;
1: + struct hlist_head xfrm_policy_delete_security;
1: + struct hlist_head xfrm_state_alloc;
1: + struct hlist_head xfrm_state_alloc_acquire;
1: + struct hlist_head xfrm_state_free_security;
1: + struct hlist_head xfrm_state_delete_security;
1: + struct hlist_head xfrm_policy_lookup;
1: + struct hlist_head xfrm_state_pol_flow_match;
1: + struct hlist_head xfrm_decode_session;
1: + struct hlist_head key_alloc;
1: + struct hlist_head key_free;
1: + struct hlist_head key_permission;
1: + struct hlist_head key_getsecurity;
1: + struct hlist_head audit_rule_init;
1: + struct hlist_head audit_rule_known;
1: + struct hlist_head audit_rule_match;
1: + struct hlist_head audit_rule_free;
1: + struct hlist_head bpf;
1: + struct hlist_head bpf_map;
1: + struct hlist_head bpf_prog;
1: + struct hlist_head bpf_map_alloc_security;
1: + struct hlist_head bpf_map_free_security;
1: + struct hlist_head bpf_prog_alloc_security;
1: + struct hlist_head bpf_prog_free_security;
1: + struct hlist_head locked_down;
1: + struct hlist_head perf_event_open;
1: + struct hlist_head perf_event_alloc;
1: + struct hlist_head perf_event_free;
1: + struct hlist_head perf_event_read;
1: + struct hlist_head perf_event_write;
1: +};
1: +
1: +struct security_hook_list {
1: + struct hlist_node list;
1: + struct hlist_head *head;
1: + union security_list_options hook;
1: + char *lsm;
1: +};
1: +
1: +enum lsm_order {
1: + LSM_ORDER_FIRST = 4294967295,
1: + LSM_ORDER_MUTABLE = 0,
1: +};
1: +
1: +struct lsm_info {
1: + const char *name;
1: + enum lsm_order order;
1: + long unsigned int flags;
1: + int *enabled;
1: + int (*init)();
1: + struct lsm_blob_sizes *blobs;
1: +};
1: +
1: +enum lsm_event {
1: + LSM_POLICY_CHANGE = 0,
1: +};
1: +
1: +typedef int (*initxattrs)(struct inode *, const struct xattr *, void *);
1: +
1: +enum ib_uverbs_write_cmds {
1: + IB_USER_VERBS_CMD_GET_CONTEXT = 0,
1: + IB_USER_VERBS_CMD_QUERY_DEVICE = 1,
1: + IB_USER_VERBS_CMD_QUERY_PORT = 2,
1: + IB_USER_VERBS_CMD_ALLOC_PD = 3,
1: + IB_USER_VERBS_CMD_DEALLOC_PD = 4,
1: + IB_USER_VERBS_CMD_CREATE_AH = 5,
1: + IB_USER_VERBS_CMD_MODIFY_AH = 6,
1: + IB_USER_VERBS_CMD_QUERY_AH = 7,
1: + IB_USER_VERBS_CMD_DESTROY_AH = 8,
1: + IB_USER_VERBS_CMD_REG_MR = 9,
1: + IB_USER_VERBS_CMD_REG_SMR = 10,
1: + IB_USER_VERBS_CMD_REREG_MR = 11,
1: + IB_USER_VERBS_CMD_QUERY_MR = 12,
1: + IB_USER_VERBS_CMD_DEREG_MR = 13,
1: + IB_USER_VERBS_CMD_ALLOC_MW = 14,
1: + IB_USER_VERBS_CMD_BIND_MW = 15,
1: + IB_USER_VERBS_CMD_DEALLOC_MW = 16,
1: + IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL = 17,
1: + IB_USER_VERBS_CMD_CREATE_CQ = 18,
1: + IB_USER_VERBS_CMD_RESIZE_CQ = 19,
1: + IB_USER_VERBS_CMD_DESTROY_CQ = 20,
1: + IB_USER_VERBS_CMD_POLL_CQ = 21,
1: + IB_USER_VERBS_CMD_PEEK_CQ = 22,
1: + IB_USER_VERBS_CMD_REQ_NOTIFY_CQ = 23,
1: + IB_USER_VERBS_CMD_CREATE_QP = 24,
1: + IB_USER_VERBS_CMD_QUERY_QP = 25,
1: + IB_USER_VERBS_CMD_MODIFY_QP = 26,
1: + IB_USER_VERBS_CMD_DESTROY_QP = 27,
1: + IB_USER_VERBS_CMD_POST_SEND = 28,
1: + IB_USER_VERBS_CMD_POST_RECV = 29,
1: + IB_USER_VERBS_CMD_ATTACH_MCAST = 30,
1: + IB_USER_VERBS_CMD_DETACH_MCAST = 31,
1: + IB_USER_VERBS_CMD_CREATE_SRQ = 32,
1: + IB_USER_VERBS_CMD_MODIFY_SRQ = 33,
1: + IB_USER_VERBS_CMD_QUERY_SRQ = 34,
1: + IB_USER_VERBS_CMD_DESTROY_SRQ = 35,
1: + IB_USER_VERBS_CMD_POST_SRQ_RECV = 36,
1: + IB_USER_VERBS_CMD_OPEN_XRCD = 37,
1: + IB_USER_VERBS_CMD_CLOSE_XRCD = 38,
1: + IB_USER_VERBS_CMD_CREATE_XSRQ = 39,
1: + IB_USER_VERBS_CMD_OPEN_QP = 40,
1: +};
1: +
1: +enum ib_uverbs_wc_opcode {
1: + IB_UVERBS_WC_SEND = 0,
1: + IB_UVERBS_WC_RDMA_WRITE = 1,
1: + IB_UVERBS_WC_RDMA_READ = 2,
1: + IB_UVERBS_WC_COMP_SWAP = 3,
1: + IB_UVERBS_WC_FETCH_ADD = 4,
1: + IB_UVERBS_WC_BIND_MW = 5,
1: + IB_UVERBS_WC_LOCAL_INV = 6,
1: + IB_UVERBS_WC_TSO = 7,
1: +};
1: +
1: +enum ib_uverbs_create_qp_mask {
1: + IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1,
1: +};
1: +
1: +enum ib_uverbs_wr_opcode {
1: + IB_UVERBS_WR_RDMA_WRITE = 0,
1: + IB_UVERBS_WR_RDMA_WRITE_WITH_IMM = 1,
1: + IB_UVERBS_WR_SEND = 2,
1: + IB_UVERBS_WR_SEND_WITH_IMM = 3,
1: + IB_UVERBS_WR_RDMA_READ = 4,
1: + IB_UVERBS_WR_ATOMIC_CMP_AND_SWP = 5,
1: + IB_UVERBS_WR_ATOMIC_FETCH_AND_ADD = 6,
1: + IB_UVERBS_WR_LOCAL_INV = 7,
1: + IB_UVERBS_WR_BIND_MW = 8,
1: + IB_UVERBS_WR_SEND_WITH_INV = 9,
1: + IB_UVERBS_WR_TSO = 10,
1: + IB_UVERBS_WR_RDMA_READ_WITH_INV = 11,
1: + IB_UVERBS_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: + IB_UVERBS_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: +};
1: +
1: +enum ib_uverbs_access_flags {
1: + IB_UVERBS_ACCESS_LOCAL_WRITE = 1,
1: + IB_UVERBS_ACCESS_REMOTE_WRITE = 2,
1: + IB_UVERBS_ACCESS_REMOTE_READ = 4,
1: + IB_UVERBS_ACCESS_REMOTE_ATOMIC = 8,
1: + IB_UVERBS_ACCESS_MW_BIND = 16,
1: + IB_UVERBS_ACCESS_ZERO_BASED = 32,
1: + IB_UVERBS_ACCESS_ON_DEMAND = 64,
1: + IB_UVERBS_ACCESS_HUGETLB = 128,
1: + IB_UVERBS_ACCESS_RELAXED_ORDERING = 1048576,
1: + IB_UVERBS_ACCESS_OPTIONAL_RANGE = 1072693248,
1: +};
1: +
1: +enum ib_uverbs_srq_type {
1: + IB_UVERBS_SRQT_BASIC = 0,
1: + IB_UVERBS_SRQT_XRC = 1,
1: + IB_UVERBS_SRQT_TM = 2,
1: +};
1: +
1: +enum ib_uverbs_wq_type {
1: + IB_UVERBS_WQT_RQ = 0,
1: +};
1: +
1: +enum ib_uverbs_wq_flags {
1: + IB_UVERBS_WQ_FLAGS_CVLAN_STRIPPING = 1,
1: + IB_UVERBS_WQ_FLAGS_SCATTER_FCS = 2,
1: + IB_UVERBS_WQ_FLAGS_DELAY_DROP = 4,
1: + IB_UVERBS_WQ_FLAGS_PCI_WRITE_END_PADDING = 8,
1: +};
1: +
1: +enum ib_uverbs_qp_type {
1: + IB_UVERBS_QPT_RC = 2,
1: + IB_UVERBS_QPT_UC = 3,
1: + IB_UVERBS_QPT_UD = 4,
1: + IB_UVERBS_QPT_RAW_PACKET = 8,
1: + IB_UVERBS_QPT_XRC_INI = 9,
1: + IB_UVERBS_QPT_XRC_TGT = 10,
1: + IB_UVERBS_QPT_DRIVER = 255,
1: +};
1: +
1: +enum ib_uverbs_qp_create_flags {
1: + IB_UVERBS_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 2,
1: + IB_UVERBS_QP_CREATE_SCATTER_FCS = 256,
1: + IB_UVERBS_QP_CREATE_CVLAN_STRIPPING = 512,
1: + IB_UVERBS_QP_CREATE_PCI_WRITE_END_PADDING = 2048,
1: + IB_UVERBS_QP_CREATE_SQ_SIG_ALL = 4096,
1: +};
1: +
1: +enum ib_uverbs_gid_type {
1: + IB_UVERBS_GID_TYPE_IB = 0,
1: + IB_UVERBS_GID_TYPE_ROCE_V1 = 1,
1: + IB_UVERBS_GID_TYPE_ROCE_V2 = 2,
1: +};
1: +
1: +enum ib_poll_context {
1: + IB_POLL_SOFTIRQ = 0,
1: + IB_POLL_WORKQUEUE = 1,
1: + IB_POLL_UNBOUND_WORKQUEUE = 2,
1: + IB_POLL_LAST_POOL_TYPE = 2,
1: + IB_POLL_DIRECT = 3,
1: +};
1: +
1: +struct lsm_network_audit {
1: + int netif;
1: + struct sock *sk;
1: + u16 family;
1: + __be16 dport;
1: + __be16 sport;
1: + union {
1: + struct {
1: + __be32 daddr;
1: + __be32 saddr;
1: + } v4;
1: + struct {
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + } v6;
1: + } fam;
1: +};
1: +
1: +struct lsm_ioctlop_audit {
1: + struct path path;
1: + u16 cmd;
1: +};
1: +
1: +struct lsm_ibpkey_audit {
1: + u64 subnet_prefix;
1: + u16 pkey;
1: +};
1: +
1: +struct lsm_ibendport_audit {
1: + char dev_name[64];
1: + u8 port;
1: +};
1: +
1: +struct selinux_state;
1: +
1: +struct selinux_audit_data {
1: + u32 ssid;
1: + u32 tsid;
1: + u16 tclass;
1: + u32 requested;
1: + u32 audited;
1: + u32 denied;
1: + int result;
1: + struct selinux_state *state;
1: +};
1: +
1: +struct smack_audit_data;
1: +
1: +struct apparmor_audit_data;
1: +
1: +struct common_audit_data {
1: + char type;
1: + union {
1: + struct path path;
1: + struct dentry *dentry;
1: + struct inode *inode;
1: + struct lsm_network_audit *net;
1: + int cap;
1: + int ipc_id;
1: + struct task_struct *tsk;
1: + struct {
1: + key_serial_t key;
1: + char *key_desc;
1: + } key_struct;
1: + char *kmod_name;
1: + struct lsm_ioctlop_audit *op;
1: + struct file *file;
1: + struct lsm_ibpkey_audit *ibpkey;
1: + struct lsm_ibendport_audit *ibendport;
1: + int reason;
1: + } u;
1: + union {
1: + struct smack_audit_data *smack_audit_data;
1: + struct selinux_audit_data *selinux_audit_data;
1: + struct apparmor_audit_data *apparmor_audit_data;
1: + };
1: +};
1: +
1: +enum {
1: + POLICYDB_CAPABILITY_NETPEER = 0,
1: + POLICYDB_CAPABILITY_OPENPERM = 1,
1: + POLICYDB_CAPABILITY_EXTSOCKCLASS = 2,
1: + POLICYDB_CAPABILITY_ALWAYSNETWORK = 3,
1: + POLICYDB_CAPABILITY_CGROUPSECLABEL = 4,
1: + POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION = 5,
1: + POLICYDB_CAPABILITY_GENFS_SECLABEL_SYMLINKS = 6,
1: + __POLICYDB_CAPABILITY_MAX = 7,
1: +};
1: +
1: +struct selinux_avc;
1: +
1: +struct selinux_policy;
1: +
1: +struct selinux_state {
1: + bool disabled;
1: + bool enforcing;
1: + bool checkreqprot;
1: + bool initialized;
1: + bool policycap[7];
1: + struct page *status_page;
1: + struct mutex status_lock;
1: + struct selinux_avc *avc;
1: + struct selinux_policy *policy;
1: + struct mutex policy_mutex;
1: +};
1: +
1: +struct avc_cache {
1: + struct hlist_head slots[512];
1: + spinlock_t slots_lock[512];
1: + atomic_t lru_hint;
1: + atomic_t active_nodes;
1: + u32 latest_notif;
1: +};
1: +
1: +struct selinux_avc {
1: + unsigned int avc_cache_threshold;
1: + struct avc_cache avc_cache;
1: +};
1: +
1: +struct av_decision {
1: + u32 allowed;
1: + u32 auditallow;
1: + u32 auditdeny;
1: + u32 seqno;
1: + u32 flags;
1: +};
1: +
1: +struct extended_perms_data {
1: + u32 p[8];
1: +};
1: +
1: +struct extended_perms_decision {
1: + u8 used;
1: + u8 driver;
1: + struct extended_perms_data *allowed;
1: + struct extended_perms_data *auditallow;
1: + struct extended_perms_data *dontaudit;
1: +};
1: +
1: +struct extended_perms {
1: + u16 len;
1: + struct extended_perms_data drivers;
1: +};
1: +
1: +struct avc_cache_stats {
1: + unsigned int lookups;
1: + unsigned int misses;
1: + unsigned int allocations;
1: + unsigned int reclaims;
1: + unsigned int frees;
1: +};
1: +
1: +struct security_class_mapping {
1: + const char *name;
1: + const char *perms[33];
1: +};
1: +
1: +struct trace_event_raw_selinux_audited {
1: + struct trace_entry ent;
1: + u32 requested;
1: + u32 denied;
1: + u32 audited;
1: + int result;
1: + u32 __data_loc_scontext;
1: + u32 __data_loc_tcontext;
1: + u32 __data_loc_tclass;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_selinux_audited {
1: + u32 scontext;
1: + u32 tcontext;
1: + u32 tclass;
1: +};
1: +
1: +typedef void (*btf_trace_selinux_audited)(void *, struct selinux_audit_data *, char *, char *, const char *);
1: +
1: +struct avc_xperms_node;
1: +
1: +struct avc_entry {
1: + u32 ssid;
1: + u32 tsid;
1: + u16 tclass;
1: + struct av_decision avd;
1: + struct avc_xperms_node *xp_node;
1: +};
1: +
1: +struct avc_xperms_node {
1: + struct extended_perms xp;
1: + struct list_head xpd_head;
1: +};
1: +
1: +struct avc_node {
1: + struct avc_entry ae;
1: + struct hlist_node list;
1: + struct callback_head rhead;
1: +};
1: +
1: +struct avc_xperms_decision_node {
1: + struct extended_perms_decision xpd;
1: + struct list_head xpd_list;
1: +};
1: +
1: +struct avc_callback_node {
1: + int (*callback)(u32);
1: + u32 events;
1: + struct avc_callback_node *next;
1: +};
1: +
1: +typedef __u16 __sum16;
1: +
1: +enum sctp_endpoint_type {
1: + SCTP_EP_TYPE_SOCKET = 0,
1: + SCTP_EP_TYPE_ASSOCIATION = 1,
1: +};
1: +
1: +struct sctp_chunk;
1: +
1: +struct sctp_inq {
1: + struct list_head in_chunk_list;
1: + struct sctp_chunk *in_progress;
1: + struct work_struct immediate;
1: +};
1: +
1: +struct sctp_bind_addr {
1: + __u16 port;
1: + struct list_head address_list;
1: +};
1: +
1: +struct sctp_ep_common {
1: + struct hlist_node node;
1: + int hashent;
1: + enum sctp_endpoint_type type;
1: + refcount_t refcnt;
1: + bool dead;
1: + struct sock *sk;
1: + struct net *net;
1: + struct sctp_inq inqueue;
1: + struct sctp_bind_addr bind_addr;
1: +};
1: +
1: +struct crypto_shash___2;
1: +
1: +struct sctp_hmac_algo_param;
1: +
1: +struct sctp_chunks_param;
1: +
1: +struct sctp_endpoint {
1: + struct sctp_ep_common base;
1: + struct list_head asocs;
1: + __u8 secret_key[32];
1: + __u8 *digest;
1: + __u32 sndbuf_policy;
1: + __u32 rcvbuf_policy;
1: + struct crypto_shash___2 **auth_hmacs;
1: + struct sctp_hmac_algo_param *auth_hmacs_list;
1: + struct sctp_chunks_param *auth_chunk_list;
1: + struct list_head endpoint_shared_keys;
1: + __u16 active_key_id;
1: + __u8 ecn_enable: 1;
1: + __u8 auth_enable: 1;
1: + __u8 intl_enable: 1;
1: + __u8 prsctp_enable: 1;
1: + __u8 asconf_enable: 1;
1: + __u8 reconf_enable: 1;
1: + __u8 strreset_enable;
1: + u32 secid;
1: + u32 peer_secid;
1: +};
1: +
1: +struct sockaddr_in6 {
1: + short unsigned int sin6_family;
1: + __be16 sin6_port;
1: + __be32 sin6_flowinfo;
1: + struct in6_addr sin6_addr;
1: + __u32 sin6_scope_id;
1: +};
1: +
1: +struct in_addr {
1: + __be32 s_addr;
1: +};
1: +
1: +struct sockaddr_in {
1: + __kernel_sa_family_t sin_family;
1: + __be16 sin_port;
1: + struct in_addr sin_addr;
1: + unsigned char __pad[8];
1: +};
1: +
1: +struct nf_hook_state;
1: +
1: +typedef unsigned int nf_hookfn(void *, struct sk_buff *, const struct nf_hook_state *);
1: +
1: +struct nf_hook_entry {
1: + nf_hookfn *hook;
1: + void *priv;
1: +};
1: +
1: +struct nf_hook_entries {
1: + u16 num_hook_entries;
1: + struct nf_hook_entry hooks[0];
1: +};
1: +
1: +struct nf_hook_state {
1: + unsigned int hook;
1: + u_int8_t pf;
1: + struct net_device *in;
1: + struct net_device *out;
1: + struct sock *sk;
1: + struct net *net;
1: + int (*okfn)(struct net *, struct sock *, struct sk_buff *);
1: +};
1: +
1: +struct nf_hook_ops {
1: + nf_hookfn *hook;
1: + struct net_device *dev;
1: + void *priv;
1: + u_int8_t pf;
1: + unsigned int hooknum;
1: + int priority;
1: +};
1: +
1: +enum nf_ip_hook_priorities {
1: + NF_IP_PRI_FIRST = 2147483648,
1: + NF_IP_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: + NF_IP_PRI_CONNTRACK_DEFRAG = 4294966896,
1: + NF_IP_PRI_RAW = 4294966996,
1: + NF_IP_PRI_SELINUX_FIRST = 4294967071,
1: + NF_IP_PRI_CONNTRACK = 4294967096,
1: + NF_IP_PRI_MANGLE = 4294967146,
1: + NF_IP_PRI_NAT_DST = 4294967196,
1: + NF_IP_PRI_FILTER = 0,
1: + NF_IP_PRI_SECURITY = 50,
1: + NF_IP_PRI_NAT_SRC = 100,
1: + NF_IP_PRI_SELINUX_LAST = 225,
1: + NF_IP_PRI_CONNTRACK_HELPER = 300,
1: + NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
1: + NF_IP_PRI_LAST = 2147483647,
1: +};
1: +
1: +enum nf_ip6_hook_priorities {
1: + NF_IP6_PRI_FIRST = 2147483648,
1: + NF_IP6_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: + NF_IP6_PRI_CONNTRACK_DEFRAG = 4294966896,
1: + NF_IP6_PRI_RAW = 4294966996,
1: + NF_IP6_PRI_SELINUX_FIRST = 4294967071,
1: + NF_IP6_PRI_CONNTRACK = 4294967096,
1: + NF_IP6_PRI_MANGLE = 4294967146,
1: + NF_IP6_PRI_NAT_DST = 4294967196,
1: + NF_IP6_PRI_FILTER = 0,
1: + NF_IP6_PRI_SECURITY = 50,
1: + NF_IP6_PRI_NAT_SRC = 100,
1: + NF_IP6_PRI_SELINUX_LAST = 225,
1: + NF_IP6_PRI_CONNTRACK_HELPER = 300,
1: + NF_IP6_PRI_LAST = 2147483647,
1: +};
1: +
1: +struct socket_alloc {
1: + struct socket socket;
1: + struct inode vfs_inode;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ip_options {
1: + __be32 faddr;
1: + __be32 nexthop;
1: + unsigned char optlen;
1: + unsigned char srr;
1: + unsigned char rr;
1: + unsigned char ts;
1: + unsigned char is_strictroute: 1;
1: + unsigned char srr_is_hit: 1;
1: + unsigned char is_changed: 1;
1: + unsigned char rr_needaddr: 1;
1: + unsigned char ts_needtime: 1;
1: + unsigned char ts_needaddr: 1;
1: + unsigned char router_alert;
1: + unsigned char cipso;
1: + unsigned char __pad2;
1: + unsigned char __data[0];
1: +};
1: +
1: +struct ip_options_rcu {
1: + struct callback_head rcu;
1: + struct ip_options opt;
1: +};
1: +
1: +struct ipv6_opt_hdr;
1: +
1: +struct ipv6_rt_hdr;
1: +
1: +struct ipv6_txoptions {
1: + refcount_t refcnt;
1: + int tot_len;
1: + __u16 opt_flen;
1: + __u16 opt_nflen;
1: + struct ipv6_opt_hdr *hopopt;
1: + struct ipv6_opt_hdr *dst0opt;
1: + struct ipv6_rt_hdr *srcrt;
1: + struct ipv6_opt_hdr *dst1opt;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct inet_cork {
1: + unsigned int flags;
1: + __be32 addr;
1: + struct ip_options *opt;
1: + unsigned int fragsize;
1: + int length;
1: + struct dst_entry *dst;
1: + u8 tx_flags;
1: + __u8 ttl;
1: + __s16 tos;
1: + char priority;
1: + __u16 gso_size;
1: + u64 transmit_time;
1: + u32 mark;
1: +};
1: +
1: +struct inet_cork_full {
1: + struct inet_cork base;
1: + struct flowi fl;
1: +};
1: +
1: +struct ipv6_pinfo;
1: +
1: +struct ip_mc_socklist;
1: +
1: +struct inet_sock {
1: + struct sock sk;
1: + struct ipv6_pinfo *pinet6;
1: + __be32 inet_saddr;
1: + __s16 uc_ttl;
1: + __u16 cmsg_flags;
1: + __be16 inet_sport;
1: + __u16 inet_id;
1: + struct ip_options_rcu *inet_opt;
1: + int rx_dst_ifindex;
1: + __u8 tos;
1: + __u8 min_ttl;
1: + __u8 mc_ttl;
1: + __u8 pmtudisc;
1: + __u8 recverr: 1;
1: + __u8 is_icsk: 1;
1: + __u8 freebind: 1;
1: + __u8 hdrincl: 1;
1: + __u8 mc_loop: 1;
1: + __u8 transparent: 1;
1: + __u8 mc_all: 1;
1: + __u8 nodefrag: 1;
1: + __u8 bind_address_no_port: 1;
1: + __u8 recverr_rfc4884: 1;
1: + __u8 defer_connect: 1;
1: + __u8 rcv_tos;
1: + __u8 convert_csum;
1: + int uc_index;
1: + int mc_index;
1: + __be32 mc_addr;
1: + struct ip_mc_socklist *mc_list;
1: + struct inet_cork_full cork;
1: +};
1: +
1: +struct in6_pktinfo {
1: + struct in6_addr ipi6_addr;
1: + int ipi6_ifindex;
1: +};
1: +
1: +struct inet6_cork {
1: + struct ipv6_txoptions *opt;
1: + u8 hop_limit;
1: + u8 tclass;
1: +};
1: +
1: +struct ipv6_mc_socklist;
1: +
1: +struct ipv6_ac_socklist;
1: +
1: +struct ipv6_fl_socklist;
1: +
1: +struct ipv6_pinfo {
1: + struct in6_addr saddr;
1: + struct in6_pktinfo sticky_pktinfo;
1: + const struct in6_addr *daddr_cache;
1: + const struct in6_addr *saddr_cache;
1: + __be32 flow_label;
1: + __u32 frag_size;
1: + __u16 __unused_1: 7;
1: + __s16 hop_limit: 9;
1: + __u16 mc_loop: 1;
1: + __u16 __unused_2: 6;
1: + __s16 mcast_hops: 9;
1: + int ucast_oif;
1: + int mcast_oif;
1: + union {
1: + struct {
1: + __u16 srcrt: 1;
1: + __u16 osrcrt: 1;
1: + __u16 rxinfo: 1;
1: + __u16 rxoinfo: 1;
1: + __u16 rxhlim: 1;
1: + __u16 rxohlim: 1;
1: + __u16 hopopts: 1;
1: + __u16 ohopopts: 1;
1: + __u16 dstopts: 1;
1: + __u16 odstopts: 1;
1: + __u16 rxflow: 1;
1: + __u16 rxtclass: 1;
1: + __u16 rxpmtu: 1;
1: + __u16 rxorigdstaddr: 1;
1: + __u16 recvfragsize: 1;
1: + } bits;
1: + __u16 all;
1: + } rxopt;
1: + __u16 recverr: 1;
1: + __u16 sndflow: 1;
1: + __u16 repflow: 1;
1: + __u16 pmtudisc: 3;
1: + __u16 padding: 1;
1: + __u16 srcprefs: 3;
1: + __u16 dontfrag: 1;
1: + __u16 autoflowlabel: 1;
1: + __u16 autoflowlabel_set: 1;
1: + __u16 mc_all: 1;
1: + __u16 recverr_rfc4884: 1;
1: + __u16 rtalert_isolate: 1;
1: + __u8 min_hopcount;
1: + __u8 tclass;
1: + __be32 rcv_flowinfo;
1: + __u32 dst_cookie;
1: + __u32 rx_dst_cookie;
1: + struct ipv6_mc_socklist *ipv6_mc_list;
1: + struct ipv6_ac_socklist *ipv6_ac_list;
1: + struct ipv6_fl_socklist *ipv6_fl_list;
1: + struct ipv6_txoptions *opt;
1: + struct sk_buff *pktoptions;
1: + struct sk_buff *rxpmtu;
1: + struct inet6_cork cork;
1: +};
1: +
1: +struct tcphdr {
1: + __be16 source;
1: + __be16 dest;
1: + __be32 seq;
1: + __be32 ack_seq;
1: + __u16 res1: 4;
1: + __u16 doff: 4;
1: + __u16 fin: 1;
1: + __u16 syn: 1;
1: + __u16 rst: 1;
1: + __u16 psh: 1;
1: + __u16 ack: 1;
1: + __u16 urg: 1;
1: + __u16 ece: 1;
1: + __u16 cwr: 1;
1: + __be16 window;
1: + __sum16 check;
1: + __be16 urg_ptr;
1: +};
1: +
1: +struct iphdr {
1: + __u8 ihl: 4;
1: + __u8 version: 4;
1: + __u8 tos;
1: + __be16 tot_len;
1: + __be16 id;
1: + __be16 frag_off;
1: + __u8 ttl;
1: + __u8 protocol;
1: + __sum16 check;
1: + __be32 saddr;
1: + __be32 daddr;
1: +};
1: +
1: +struct ipv6_rt_hdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: +};
1: +
1: +struct ipv6_opt_hdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: +};
1: +
1: +struct ipv6hdr {
1: + __u8 priority: 4;
1: + __u8 version: 4;
1: + __u8 flow_lbl[3];
1: + __be16 payload_len;
1: + __u8 nexthdr;
1: + __u8 hop_limit;
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: +};
1: +
1: +struct udphdr {
1: + __be16 source;
1: + __be16 dest;
1: + __be16 len;
1: + __sum16 check;
1: +};
1: +
1: +struct inet6_skb_parm {
1: + int iif;
1: + __be16 ra;
1: + __u16 dst0;
1: + __u16 srcrt;
1: + __u16 dst1;
1: + __u16 lastopt;
1: + __u16 nhoff;
1: + __u16 flags;
1: + __u16 dsthao;
1: + __u16 frag_max_size;
1: +};
1: +
1: +struct ip6_sf_socklist;
1: +
1: +struct ipv6_mc_socklist {
1: + struct in6_addr addr;
1: + int ifindex;
1: + unsigned int sfmode;
1: + struct ipv6_mc_socklist *next;
1: + rwlock_t sflock;
1: + struct ip6_sf_socklist *sflist;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ipv6_ac_socklist {
1: + struct in6_addr acl_addr;
1: + int acl_ifindex;
1: + struct ipv6_ac_socklist *acl_next;
1: +};
1: +
1: +struct ip6_flowlabel;
1: +
1: +struct ipv6_fl_socklist {
1: + struct ipv6_fl_socklist *next;
1: + struct ip6_flowlabel *fl;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ip6_sf_socklist {
1: + unsigned int sl_max;
1: + unsigned int sl_count;
1: + struct in6_addr sl_addr[0];
1: +};
1: +
1: +struct ip6_flowlabel {
1: + struct ip6_flowlabel *next;
1: + __be32 label;
1: + atomic_t users;
1: + struct in6_addr dst;
1: + struct ipv6_txoptions *opt;
1: + long unsigned int linger;
1: + struct callback_head rcu;
1: + u8 share;
1: + union {
1: + struct pid *pid;
1: + kuid_t uid;
1: + } owner;
1: + long unsigned int lastuse;
1: + long unsigned int expires;
1: + struct net *fl_net;
1: +};
1: +
1: +struct inet_skb_parm {
1: + int iif;
1: + struct ip_options opt;
1: + u16 flags;
1: + u16 frag_max_size;
1: +};
1: +
1: +struct tty_file_private {
1: + struct tty_struct *tty;
1: + struct file *file;
1: + struct list_head list;
1: +};
1: +
1: +struct netlbl_lsm_cache {
1: + refcount_t refcount;
1: + void (*free)(const void *);
1: + void *data;
1: +};
1: +
1: +struct netlbl_lsm_catmap {
1: + u32 startbit;
1: + u64 bitmap[4];
1: + struct netlbl_lsm_catmap *next;
1: +};
1: +
1: +struct netlbl_lsm_secattr {
1: + u32 flags;
1: + u32 type;
1: + char *domain;
1: + struct netlbl_lsm_cache *cache;
1: + struct {
1: + struct {
1: + struct netlbl_lsm_catmap *cat;
1: + u32 lvl;
1: + } mls;
1: + u32 secid;
1: + } attr;
1: +};
1: +
1: +struct dccp_hdr {
1: + __be16 dccph_sport;
1: + __be16 dccph_dport;
1: + __u8 dccph_doff;
1: + __u8 dccph_cscov: 4;
1: + __u8 dccph_ccval: 4;
1: + __sum16 dccph_checksum;
1: + __u8 dccph_x: 1;
1: + __u8 dccph_type: 4;
1: + __u8 dccph_reserved: 3;
1: + __u8 dccph_seq2;
1: + __be16 dccph_seq;
1: +};
1: +
1: +enum dccp_state {
1: + DCCP_OPEN = 1,
1: + DCCP_REQUESTING = 2,
1: + DCCP_LISTEN = 10,
1: + DCCP_RESPOND = 3,
1: + DCCP_ACTIVE_CLOSEREQ = 4,
1: + DCCP_PASSIVE_CLOSE = 8,
1: + DCCP_CLOSING = 11,
1: + DCCP_TIME_WAIT = 6,
1: + DCCP_CLOSED = 7,
1: + DCCP_NEW_SYN_RECV = 12,
1: + DCCP_PARTOPEN = 13,
1: + DCCP_PASSIVE_CLOSEREQ = 14,
1: + DCCP_MAX_STATES = 15,
1: +};
1: +
1: +typedef __s32 sctp_assoc_t;
1: +
1: +enum sctp_msg_flags {
1: + MSG_NOTIFICATION = 32768,
1: +};
1: +
1: +struct sctp_initmsg {
1: + __u16 sinit_num_ostreams;
1: + __u16 sinit_max_instreams;
1: + __u16 sinit_max_attempts;
1: + __u16 sinit_max_init_timeo;
1: +};
1: +
1: +struct sctp_sndrcvinfo {
1: + __u16 sinfo_stream;
1: + __u16 sinfo_ssn;
1: + __u16 sinfo_flags;
1: + __u32 sinfo_ppid;
1: + __u32 sinfo_context;
1: + __u32 sinfo_timetolive;
1: + __u32 sinfo_tsn;
1: + __u32 sinfo_cumtsn;
1: + sctp_assoc_t sinfo_assoc_id;
1: +};
1: +
1: +struct sctp_rtoinfo {
1: + sctp_assoc_t srto_assoc_id;
1: + __u32 srto_initial;
1: + __u32 srto_max;
1: + __u32 srto_min;
1: +};
1: +
1: +struct sctp_assocparams {
1: + sctp_assoc_t sasoc_assoc_id;
1: + __u16 sasoc_asocmaxrxt;
1: + __u16 sasoc_number_peer_destinations;
1: + __u32 sasoc_peer_rwnd;
1: + __u32 sasoc_local_rwnd;
1: + __u32 sasoc_cookie_life;
1: +};
1: +
1: +struct sctp_paddrparams {
1: + sctp_assoc_t spp_assoc_id;
1: + struct __kernel_sockaddr_storage spp_address;
1: + __u32 spp_hbinterval;
1: + __u16 spp_pathmaxrxt;
1: + __u32 spp_pathmtu;
1: + __u32 spp_sackdelay;
1: + __u32 spp_flags;
1: + __u32 spp_ipv6_flowlabel;
1: + __u8 spp_dscp;
1: + char: 8;
1: +} __attribute__((packed));
1: +
1: +struct sctphdr {
1: + __be16 source;
1: + __be16 dest;
1: + __be32 vtag;
1: + __le32 checksum;
1: +};
1: +
1: +struct sctp_chunkhdr {
1: + __u8 type;
1: + __u8 flags;
1: + __be16 length;
1: +};
1: +
1: +enum sctp_cid {
1: + SCTP_CID_DATA = 0,
1: + SCTP_CID_INIT = 1,
1: + SCTP_CID_INIT_ACK = 2,
1: + SCTP_CID_SACK = 3,
1: + SCTP_CID_HEARTBEAT = 4,
1: + SCTP_CID_HEARTBEAT_ACK = 5,
1: + SCTP_CID_ABORT = 6,
1: + SCTP_CID_SHUTDOWN = 7,
1: + SCTP_CID_SHUTDOWN_ACK = 8,
1: + SCTP_CID_ERROR = 9,
1: + SCTP_CID_COOKIE_ECHO = 10,
1: + SCTP_CID_COOKIE_ACK = 11,
1: + SCTP_CID_ECN_ECNE = 12,
1: + SCTP_CID_ECN_CWR = 13,
1: + SCTP_CID_SHUTDOWN_COMPLETE = 14,
1: + SCTP_CID_AUTH = 15,
1: + SCTP_CID_I_DATA = 64,
1: + SCTP_CID_FWD_TSN = 192,
1: + SCTP_CID_ASCONF = 193,
1: + SCTP_CID_I_FWD_TSN = 194,
1: + SCTP_CID_ASCONF_ACK = 128,
1: + SCTP_CID_RECONF = 130,
1: +};
1: +
1: +struct sctp_paramhdr {
1: + __be16 type;
1: + __be16 length;
1: +};
1: +
1: +enum sctp_param {
1: + SCTP_PARAM_HEARTBEAT_INFO = 256,
1: + SCTP_PARAM_IPV4_ADDRESS = 1280,
1: + SCTP_PARAM_IPV6_ADDRESS = 1536,
1: + SCTP_PARAM_STATE_COOKIE = 1792,
1: + SCTP_PARAM_UNRECOGNIZED_PARAMETERS = 2048,
1: + SCTP_PARAM_COOKIE_PRESERVATIVE = 2304,
1: + SCTP_PARAM_HOST_NAME_ADDRESS = 2816,
1: + SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = 3072,
1: + SCTP_PARAM_ECN_CAPABLE = 128,
1: + SCTP_PARAM_RANDOM = 640,
1: + SCTP_PARAM_CHUNKS = 896,
1: + SCTP_PARAM_HMAC_ALGO = 1152,
1: + SCTP_PARAM_SUPPORTED_EXT = 2176,
1: + SCTP_PARAM_FWD_TSN_SUPPORT = 192,
1: + SCTP_PARAM_ADD_IP = 448,
1: + SCTP_PARAM_DEL_IP = 704,
1: + SCTP_PARAM_ERR_CAUSE = 960,
1: + SCTP_PARAM_SET_PRIMARY = 1216,
1: + SCTP_PARAM_SUCCESS_REPORT = 1472,
1: + SCTP_PARAM_ADAPTATION_LAYER_IND = 1728,
1: + SCTP_PARAM_RESET_OUT_REQUEST = 3328,
1: + SCTP_PARAM_RESET_IN_REQUEST = 3584,
1: + SCTP_PARAM_RESET_TSN_REQUEST = 3840,
1: + SCTP_PARAM_RESET_RESPONSE = 4096,
1: + SCTP_PARAM_RESET_ADD_OUT_STREAMS = 4352,
1: + SCTP_PARAM_RESET_ADD_IN_STREAMS = 4608,
1: +};
1: +
1: +struct sctp_datahdr {
1: + __be32 tsn;
1: + __be16 stream;
1: + __be16 ssn;
1: + __u32 ppid;
1: + __u8 payload[0];
1: +};
1: +
1: +struct sctp_idatahdr {
1: + __be32 tsn;
1: + __be16 stream;
1: + __be16 reserved;
1: + __be32 mid;
1: + union {
1: + __u32 ppid;
1: + __be32 fsn;
1: + };
1: + __u8 payload[0];
1: +};
1: +
1: +struct sctp_inithdr {
1: + __be32 init_tag;
1: + __be32 a_rwnd;
1: + __be16 num_outbound_streams;
1: + __be16 num_inbound_streams;
1: + __be32 initial_tsn;
1: + __u8 params[0];
1: +};
1: +
1: +struct sctp_init_chunk {
1: + struct sctp_chunkhdr chunk_hdr;
1: + struct sctp_inithdr init_hdr;
1: +};
1: +
1: +struct sctp_ipv4addr_param {
1: + struct sctp_paramhdr param_hdr;
1: + struct in_addr addr;
1: +};
1: +
1: +struct sctp_ipv6addr_param {
1: + struct sctp_paramhdr param_hdr;
1: + struct in6_addr addr;
1: +};
1: +
1: +struct sctp_cookie_preserve_param {
1: + struct sctp_paramhdr param_hdr;
1: + __be32 lifespan_increment;
1: +};
1: +
1: +struct sctp_hostname_param {
1: + struct sctp_paramhdr param_hdr;
1: + uint8_t hostname[0];
1: +};
1: +
1: +struct sctp_supported_addrs_param {
1: + struct sctp_paramhdr param_hdr;
1: + __be16 types[0];
1: +};
1: +
1: +struct sctp_adaptation_ind_param {
1: + struct sctp_paramhdr param_hdr;
1: + __be32 adaptation_ind;
1: +};
1: +
1: +struct sctp_supported_ext_param {
1: + struct sctp_paramhdr param_hdr;
1: + __u8 chunks[0];
1: +};
1: +
1: +struct sctp_random_param {
1: + struct sctp_paramhdr param_hdr;
1: + __u8 random_val[0];
1: +};
1: +
1: +struct sctp_chunks_param {
1: + struct sctp_paramhdr param_hdr;
1: + __u8 chunks[0];
1: +};
1: +
1: +struct sctp_hmac_algo_param {
1: + struct sctp_paramhdr param_hdr;
1: + __be16 hmac_ids[0];
1: +};
1: +
1: +struct sctp_cookie_param {
1: + struct sctp_paramhdr p;
1: + __u8 body[0];
1: +};
1: +
1: +struct sctp_gap_ack_block {
1: + __be16 start;
1: + __be16 end;
1: +};
1: +
1: +union sctp_sack_variable {
1: + struct sctp_gap_ack_block gab;
1: + __be32 dup;
1: +};
1: +
1: +struct sctp_sackhdr {
1: + __be32 cum_tsn_ack;
1: + __be32 a_rwnd;
1: + __be16 num_gap_ack_blocks;
1: + __be16 num_dup_tsns;
1: + union sctp_sack_variable variable[0];
1: +};
1: +
1: +struct sctp_heartbeathdr {
1: + struct sctp_paramhdr info;
1: +};
1: +
1: +struct sctp_shutdownhdr {
1: + __be32 cum_tsn_ack;
1: +};
1: +
1: +struct sctp_errhdr {
1: + __be16 cause;
1: + __be16 length;
1: + __u8 variable[0];
1: +};
1: +
1: +struct sctp_ecnehdr {
1: + __be32 lowest_tsn;
1: +};
1: +
1: +struct sctp_cwrhdr {
1: + __be32 lowest_tsn;
1: +};
1: +
1: +struct sctp_fwdtsn_skip {
1: + __be16 stream;
1: + __be16 ssn;
1: +};
1: +
1: +struct sctp_fwdtsn_hdr {
1: + __be32 new_cum_tsn;
1: + struct sctp_fwdtsn_skip skip[0];
1: +};
1: +
1: +struct sctp_ifwdtsn_skip {
1: + __be16 stream;
1: + __u8 reserved;
1: + __u8 flags;
1: + __be32 mid;
1: +};
1: +
1: +struct sctp_ifwdtsn_hdr {
1: + __be32 new_cum_tsn;
1: + struct sctp_ifwdtsn_skip skip[0];
1: +};
1: +
1: +struct sctp_addip_param {
1: + struct sctp_paramhdr param_hdr;
1: + __be32 crr_id;
1: +};
1: +
1: +struct sctp_addiphdr {
1: + __be32 serial;
1: + __u8 params[0];
1: +};
1: +
1: +struct sctp_authhdr {
1: + __be16 shkey_id;
1: + __be16 hmac_id;
1: + __u8 hmac[0];
1: +};
1: +
1: +union sctp_addr {
1: + struct sockaddr_in v4;
1: + struct sockaddr_in6 v6;
1: + struct sockaddr sa;
1: +};
1: +
1: +struct sctp_cookie {
1: + __u32 my_vtag;
1: + __u32 peer_vtag;
1: + __u32 my_ttag;
1: + __u32 peer_ttag;
1: + ktime_t expiration;
1: + __u16 sinit_num_ostreams;
1: + __u16 sinit_max_instreams;
1: + __u32 initial_tsn;
1: + union sctp_addr peer_addr;
1: + __u16 my_port;
1: + __u8 prsctp_capable;
1: + __u8 padding;
1: + __u32 adaptation_ind;
1: + __u8 auth_random[36];
1: + __u8 auth_hmacs[10];
1: + __u8 auth_chunks[20];
1: + __u32 raw_addr_list_len;
1: + struct sctp_init_chunk peer_init[0];
1: +};
1: +
1: +struct sctp_tsnmap {
1: + long unsigned int *tsn_map;
1: + __u32 base_tsn;
1: + __u32 cumulative_tsn_ack_point;
1: + __u32 max_tsn_seen;
1: + __u16 len;
1: + __u16 pending_data;
1: + __u16 num_dup_tsns;
1: + __be32 dup_tsns[16];
1: +};
1: +
1: +struct sctp_inithdr_host {
1: + __u32 init_tag;
1: + __u32 a_rwnd;
1: + __u16 num_outbound_streams;
1: + __u16 num_inbound_streams;
1: + __u32 initial_tsn;
1: +};
1: +
1: +enum sctp_state {
1: + SCTP_STATE_CLOSED = 0,
1: + SCTP_STATE_COOKIE_WAIT = 1,
1: + SCTP_STATE_COOKIE_ECHOED = 2,
1: + SCTP_STATE_ESTABLISHED = 3,
1: + SCTP_STATE_SHUTDOWN_PENDING = 4,
1: + SCTP_STATE_SHUTDOWN_SENT = 5,
1: + SCTP_STATE_SHUTDOWN_RECEIVED = 6,
1: + SCTP_STATE_SHUTDOWN_ACK_SENT = 7,
1: +};
1: +
1: +struct sctp_stream_out_ext;
1: +
1: +struct sctp_stream_out {
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + __u32 mid_uo;
1: + struct sctp_stream_out_ext *ext;
1: + __u8 state;
1: +};
1: +
1: +struct sctp_stream_in {
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + __u32 mid_uo;
1: + __u32 fsn;
1: + __u32 fsn_uo;
1: + char pd_mode;
1: + char pd_mode_uo;
1: +};
1: +
1: +struct sctp_stream_interleave;
1: +
1: +struct sctp_stream {
1: + struct {
1: + struct __genradix tree;
1: + struct sctp_stream_out type[0];
1: + } out;
1: + struct {
1: + struct __genradix tree;
1: + struct sctp_stream_in type[0];
1: + } in;
1: + __u16 outcnt;
1: + __u16 incnt;
1: + struct sctp_stream_out *out_curr;
1: + union {
1: + struct {
1: + struct list_head prio_list;
1: + };
1: + struct {
1: + struct list_head rr_list;
1: + struct sctp_stream_out_ext *rr_next;
1: + };
1: + };
1: + struct sctp_stream_interleave *si;
1: +};
1: +
1: +struct sctp_sched_ops;
1: +
1: +struct sctp_association;
1: +
1: +struct sctp_outq {
1: + struct sctp_association *asoc;
1: + struct list_head out_chunk_list;
1: + struct sctp_sched_ops *sched;
1: + unsigned int out_qlen;
1: + unsigned int error;
1: + struct list_head control_chunk_list;
1: + struct list_head sacked;
1: + struct list_head retransmit;
1: + struct list_head abandoned;
1: + __u32 outstanding_bytes;
1: + char fast_rtx;
1: + char cork;
1: +};
1: +
1: +struct sctp_ulpq {
1: + char pd_mode;
1: + struct sctp_association *asoc;
1: + struct sk_buff_head reasm;
1: + struct sk_buff_head reasm_uo;
1: + struct sk_buff_head lobby;
1: +};
1: +
1: +struct sctp_priv_assoc_stats {
1: + struct __kernel_sockaddr_storage obs_rto_ipaddr;
1: + __u64 max_obs_rto;
1: + __u64 isacks;
1: + __u64 osacks;
1: + __u64 opackets;
1: + __u64 ipackets;
1: + __u64 rtxchunks;
1: + __u64 outofseqtsns;
1: + __u64 idupchunks;
1: + __u64 gapcnt;
1: + __u64 ouodchunks;
1: + __u64 iuodchunks;
1: + __u64 oodchunks;
1: + __u64 iodchunks;
1: + __u64 octrlchunks;
1: + __u64 ictrlchunks;
1: +};
1: +
1: +struct sctp_transport;
1: +
1: +struct sctp_auth_bytes;
1: +
1: +struct sctp_shared_key;
1: +
1: +struct sctp_association {
1: + struct sctp_ep_common base;
1: + struct list_head asocs;
1: + sctp_assoc_t assoc_id;
1: + struct sctp_endpoint *ep;
1: + struct sctp_cookie c;
1: + struct {
1: + struct list_head transport_addr_list;
1: + __u32 rwnd;
1: + __u16 transport_count;
1: + __u16 port;
1: + struct sctp_transport *primary_path;
1: + union sctp_addr primary_addr;
1: + struct sctp_transport *active_path;
1: + struct sctp_transport *retran_path;
1: + struct sctp_transport *last_sent_to;
1: + struct sctp_transport *last_data_from;
1: + struct sctp_tsnmap tsn_map;
1: + __be16 addip_disabled_mask;
1: + __u16 ecn_capable: 1;
1: + __u16 ipv4_address: 1;
1: + __u16 ipv6_address: 1;
1: + __u16 hostname_address: 1;
1: + __u16 asconf_capable: 1;
1: + __u16 prsctp_capable: 1;
1: + __u16 reconf_capable: 1;
1: + __u16 intl_capable: 1;
1: + __u16 auth_capable: 1;
1: + __u16 sack_needed: 1;
1: + __u16 sack_generation: 1;
1: + __u16 zero_window_announced: 1;
1: + __u32 sack_cnt;
1: + __u32 adaptation_ind;
1: + struct sctp_inithdr_host i;
1: + void *cookie;
1: + int cookie_len;
1: + __u32 addip_serial;
1: + struct sctp_random_param *peer_random;
1: + struct sctp_chunks_param *peer_chunks;
1: + struct sctp_hmac_algo_param *peer_hmacs;
1: + } peer;
1: + enum sctp_state state;
1: + int overall_error_count;
1: + ktime_t cookie_life;
1: + long unsigned int rto_initial;
1: + long unsigned int rto_max;
1: + long unsigned int rto_min;
1: + int max_burst;
1: + int max_retrans;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + __u16 max_init_attempts;
1: + __u16 init_retries;
1: + long unsigned int max_init_timeo;
1: + long unsigned int hbinterval;
1: + __u16 pathmaxrxt;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + __u8 pmtu_pending;
1: + __u32 pathmtu;
1: + __u32 param_flags;
1: + __u32 sackfreq;
1: + long unsigned int sackdelay;
1: + long unsigned int timeouts[11];
1: + struct timer_list timers[11];
1: + struct sctp_transport *shutdown_last_sent_to;
1: + struct sctp_transport *init_last_sent_to;
1: + int shutdown_retries;
1: + __u32 next_tsn;
1: + __u32 ctsn_ack_point;
1: + __u32 adv_peer_ack_point;
1: + __u32 highest_sacked;
1: + __u32 fast_recovery_exit;
1: + __u8 fast_recovery;
1: + __u16 unack_data;
1: + __u32 rtx_data_chunks;
1: + __u32 rwnd;
1: + __u32 a_rwnd;
1: + __u32 rwnd_over;
1: + __u32 rwnd_press;
1: + int sndbuf_used;
1: + atomic_t rmem_alloc;
1: + wait_queue_head_t wait;
1: + __u32 frag_point;
1: + __u32 user_frag;
1: + int init_err_counter;
1: + int init_cycle;
1: + __u16 default_stream;
1: + __u16 default_flags;
1: + __u32 default_ppid;
1: + __u32 default_context;
1: + __u32 default_timetolive;
1: + __u32 default_rcv_context;
1: + struct sctp_stream stream;
1: + struct sctp_outq outqueue;
1: + struct sctp_ulpq ulpq;
1: + __u32 last_ecne_tsn;
1: + __u32 last_cwr_tsn;
1: + int numduptsns;
1: + struct sctp_chunk *addip_last_asconf;
1: + struct list_head asconf_ack_list;
1: + struct list_head addip_chunk_list;
1: + __u32 addip_serial;
1: + int src_out_of_asoc_ok;
1: + union sctp_addr *asconf_addr_del_pending;
1: + struct sctp_transport *new_transport;
1: + struct list_head endpoint_shared_keys;
1: + struct sctp_auth_bytes *asoc_shared_key;
1: + struct sctp_shared_key *shkey;
1: + __u16 default_hmac_id;
1: + __u16 active_key_id;
1: + __u8 need_ecne: 1;
1: + __u8 temp: 1;
1: + __u8 pf_expose: 2;
1: + __u8 force_delay: 1;
1: + __u8 strreset_enable;
1: + __u8 strreset_outstanding;
1: + __u32 strreset_outseq;
1: + __u32 strreset_inseq;
1: + __u32 strreset_result[2];
1: + struct sctp_chunk *strreset_chunk;
1: + struct sctp_priv_assoc_stats stats;
1: + int sent_cnt_removable;
1: + __u16 subscribe;
1: + __u64 abandoned_unsent[3];
1: + __u64 abandoned_sent[3];
1: + struct callback_head rcu;
1: +};
1: +
1: +struct sctp_auth_bytes {
1: + refcount_t refcnt;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct sctp_shared_key {
1: + struct list_head key_list;
1: + struct sctp_auth_bytes *key;
1: + refcount_t refcnt;
1: + __u16 key_id;
1: + __u8 deactivated;
1: +};
1: +
1: +enum {
1: + SCTP_MAX_STREAM = 65535,
1: +};
1: +
1: +enum sctp_event_timeout {
1: + SCTP_EVENT_TIMEOUT_NONE = 0,
1: + SCTP_EVENT_TIMEOUT_T1_COOKIE = 1,
1: + SCTP_EVENT_TIMEOUT_T1_INIT = 2,
1: + SCTP_EVENT_TIMEOUT_T2_SHUTDOWN = 3,
1: + SCTP_EVENT_TIMEOUT_T3_RTX = 4,
1: + SCTP_EVENT_TIMEOUT_T4_RTO = 5,
1: + SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD = 6,
1: + SCTP_EVENT_TIMEOUT_HEARTBEAT = 7,
1: + SCTP_EVENT_TIMEOUT_RECONF = 8,
1: + SCTP_EVENT_TIMEOUT_SACK = 9,
1: + SCTP_EVENT_TIMEOUT_AUTOCLOSE = 10,
1: +};
1: +
1: +enum {
1: + SCTP_MAX_DUP_TSNS = 16,
1: +};
1: +
1: +enum sctp_scope {
1: + SCTP_SCOPE_GLOBAL = 0,
1: + SCTP_SCOPE_PRIVATE = 1,
1: + SCTP_SCOPE_LINK = 2,
1: + SCTP_SCOPE_LOOPBACK = 3,
1: + SCTP_SCOPE_UNUSABLE = 4,
1: +};
1: +
1: +enum {
1: + SCTP_AUTH_HMAC_ID_RESERVED_0 = 0,
1: + SCTP_AUTH_HMAC_ID_SHA1 = 1,
1: + SCTP_AUTH_HMAC_ID_RESERVED_2 = 2,
1: + SCTP_AUTH_HMAC_ID_SHA256 = 3,
1: + __SCTP_AUTH_HMAC_MAX = 4,
1: +};
1: +
1: +struct sctp_ulpevent {
1: + struct sctp_association *asoc;
1: + struct sctp_chunk *chunk;
1: + unsigned int rmem_len;
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + union {
1: + __u32 ppid;
1: + __u32 fsn;
1: + };
1: + __u32 tsn;
1: + __u32 cumtsn;
1: + __u16 stream;
1: + __u16 flags;
1: + __u16 msg_flags;
1: +} __attribute__((packed));
1: +
1: +union sctp_addr_param;
1: +
1: +union sctp_params {
1: + void *v;
1: + struct sctp_paramhdr *p;
1: + struct sctp_cookie_preserve_param *life;
1: + struct sctp_hostname_param *dns;
1: + struct sctp_cookie_param *cookie;
1: + struct sctp_supported_addrs_param *sat;
1: + struct sctp_ipv4addr_param *v4;
1: + struct sctp_ipv6addr_param *v6;
1: + union sctp_addr_param *addr;
1: + struct sctp_adaptation_ind_param *aind;
1: + struct sctp_supported_ext_param *ext;
1: + struct sctp_random_param *random;
1: + struct sctp_chunks_param *chunks;
1: + struct sctp_hmac_algo_param *hmac_algo;
1: + struct sctp_addip_param *addip;
1: +};
1: +
1: +struct sctp_sender_hb_info;
1: +
1: +struct sctp_signed_cookie;
1: +
1: +struct sctp_datamsg;
1: +
1: +struct sctp_chunk {
1: + struct list_head list;
1: + refcount_t refcnt;
1: + int sent_count;
1: + union {
1: + struct list_head transmitted_list;
1: + struct list_head stream_list;
1: + };
1: + struct list_head frag_list;
1: + struct sk_buff *skb;
1: + union {
1: + struct sk_buff *head_skb;
1: + struct sctp_shared_key *shkey;
1: + };
1: + union sctp_params param_hdr;
1: + union {
1: + __u8 *v;
1: + struct sctp_datahdr *data_hdr;
1: + struct sctp_inithdr *init_hdr;
1: + struct sctp_sackhdr *sack_hdr;
1: + struct sctp_heartbeathdr *hb_hdr;
1: + struct sctp_sender_hb_info *hbs_hdr;
1: + struct sctp_shutdownhdr *shutdown_hdr;
1: + struct sctp_signed_cookie *cookie_hdr;
1: + struct sctp_ecnehdr *ecne_hdr;
1: + struct sctp_cwrhdr *ecn_cwr_hdr;
1: + struct sctp_errhdr *err_hdr;
1: + struct sctp_addiphdr *addip_hdr;
1: + struct sctp_fwdtsn_hdr *fwdtsn_hdr;
1: + struct sctp_authhdr *auth_hdr;
1: + struct sctp_idatahdr *idata_hdr;
1: + struct sctp_ifwdtsn_hdr *ifwdtsn_hdr;
1: + } subh;
1: + __u8 *chunk_end;
1: + struct sctp_chunkhdr *chunk_hdr;
1: + struct sctphdr *sctp_hdr;
1: + struct sctp_sndrcvinfo sinfo;
1: + struct sctp_association *asoc;
1: + struct sctp_ep_common *rcvr;
1: + long unsigned int sent_at;
1: + union sctp_addr source;
1: + union sctp_addr dest;
1: + struct sctp_datamsg *msg;
1: + struct sctp_transport *transport;
1: + struct sk_buff *auth_chunk;
1: + __u16 rtt_in_progress: 1;
1: + __u16 has_tsn: 1;
1: + __u16 has_ssn: 1;
1: + __u16 singleton: 1;
1: + __u16 end_of_packet: 1;
1: + __u16 ecn_ce_done: 1;
1: + __u16 pdiscard: 1;
1: + __u16 tsn_gap_acked: 1;
1: + __u16 data_accepted: 1;
1: + __u16 auth: 1;
1: + __u16 has_asconf: 1;
1: + __u16 tsn_missing_report: 2;
1: + __u16 fast_retransmit: 2;
1: +};
1: +
1: +struct sctp_stream_interleave {
1: + __u16 data_chunk_len;
1: + __u16 ftsn_chunk_len;
1: + struct sctp_chunk * (*make_datafrag)(const struct sctp_association *, const struct sctp_sndrcvinfo *, int, __u8, gfp_t);
1: + void (*assign_number)(struct sctp_chunk *);
1: + bool (*validate_data)(struct sctp_chunk *);
1: + int (*ulpevent_data)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: + int (*enqueue_event)(struct sctp_ulpq *, struct sctp_ulpevent *);
1: + void (*renege_events)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: + void (*start_pd)(struct sctp_ulpq *, gfp_t);
1: + void (*abort_pd)(struct sctp_ulpq *, gfp_t);
1: + void (*generate_ftsn)(struct sctp_outq *, __u32);
1: + bool (*validate_ftsn)(struct sctp_chunk *);
1: + void (*report_ftsn)(struct sctp_ulpq *, __u32);
1: + void (*handle_ftsn)(struct sctp_ulpq *, struct sctp_chunk *);
1: +};
1: +
1: +struct sctp_bind_bucket {
1: + short unsigned int port;
1: + signed char fastreuse;
1: + signed char fastreuseport;
1: + kuid_t fastuid;
1: + struct hlist_node node;
1: + struct hlist_head owner;
1: + struct net *net;
1: +};
1: +
1: +enum sctp_socket_type {
1: + SCTP_SOCKET_UDP = 0,
1: + SCTP_SOCKET_UDP_HIGH_BANDWIDTH = 1,
1: + SCTP_SOCKET_TCP = 2,
1: +};
1: +
1: +struct sctp_pf;
1: +
1: +struct sctp_sock {
1: + struct inet_sock inet;
1: + enum sctp_socket_type type;
1: + int: 32;
1: + struct sctp_pf *pf;
1: + struct crypto_shash___2 *hmac;
1: + char *sctp_hmac_alg;
1: + struct sctp_endpoint *ep;
1: + struct sctp_bind_bucket *bind_hash;
1: + __u16 default_stream;
1: + short: 16;
1: + __u32 default_ppid;
1: + __u16 default_flags;
1: + short: 16;
1: + __u32 default_context;
1: + __u32 default_timetolive;
1: + __u32 default_rcv_context;
1: + int max_burst;
1: + __u32 hbinterval;
1: + __u16 pathmaxrxt;
1: + short: 16;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + char: 8;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + short: 16;
1: + __u32 pathmtu;
1: + __u32 sackdelay;
1: + __u32 sackfreq;
1: + __u32 param_flags;
1: + __u32 default_ss;
1: + struct sctp_rtoinfo rtoinfo;
1: + struct sctp_paddrparams paddrparam;
1: + struct sctp_assocparams assocparams;
1: + __u16 subscribe;
1: + struct sctp_initmsg initmsg;
1: + short: 16;
1: + int user_frag;
1: + __u32 autoclose;
1: + __u32 adaptation_ind;
1: + __u32 pd_point;
1: + __u16 nodelay: 1;
1: + __u16 pf_expose: 2;
1: + __u16 reuse: 1;
1: + __u16 disable_fragments: 1;
1: + __u16 v4mapped: 1;
1: + __u16 frag_interleave: 1;
1: + __u16 recvrcvinfo: 1;
1: + __u16 recvnxtinfo: 1;
1: + __u16 data_ready_signalled: 1;
1: + int: 22;
1: + atomic_t pd_mode;
1: + struct sk_buff_head pd_lobby;
1: + struct list_head auto_asconf_list;
1: + int do_auto_asconf;
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +struct sctp_af;
1: +
1: +struct sctp_pf {
1: + void (*event_msgname)(struct sctp_ulpevent *, char *, int *);
1: + void (*skb_msgname)(struct sk_buff *, char *, int *);
1: + int (*af_supported)(sa_family_t, struct sctp_sock *);
1: + int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *, struct sctp_sock *);
1: + int (*bind_verify)(struct sctp_sock *, union sctp_addr *);
1: + int (*send_verify)(struct sctp_sock *, union sctp_addr *);
1: + int (*supported_addrs)(const struct sctp_sock *, __be16 *);
1: + struct sock * (*create_accept_sk)(struct sock *, struct sctp_association *, bool);
1: + int (*addr_to_user)(struct sctp_sock *, union sctp_addr *);
1: + void (*to_sk_saddr)(union sctp_addr *, struct sock *);
1: + void (*to_sk_daddr)(union sctp_addr *, struct sock *);
1: + void (*copy_ip_options)(struct sock *, struct sock *);
1: + struct sctp_af *af;
1: +};
1: +
1: +struct sctp_signed_cookie {
1: + __u8 signature[32];
1: + __u32 __pad;
1: + struct sctp_cookie c;
1: +} __attribute__((packed));
1: +
1: +union sctp_addr_param {
1: + struct sctp_paramhdr p;
1: + struct sctp_ipv4addr_param v4;
1: + struct sctp_ipv6addr_param v6;
1: +};
1: +
1: +struct sctp_sender_hb_info {
1: + struct sctp_paramhdr param_hdr;
1: + union sctp_addr daddr;
1: + long unsigned int sent_at;
1: + __u64 hb_nonce;
1: +};
1: +
1: +struct sctp_af {
1: + int (*sctp_xmit)(struct sk_buff *, struct sctp_transport *);
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*get_dst)(struct sctp_transport *, union sctp_addr *, struct flowi *, struct sock *);
1: + void (*get_saddr)(struct sctp_sock *, struct sctp_transport *, struct flowi *);
1: + void (*copy_addrlist)(struct list_head *, struct net_device *);
1: + int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *);
1: + void (*addr_copy)(union sctp_addr *, union sctp_addr *);
1: + void (*from_skb)(union sctp_addr *, struct sk_buff *, int);
1: + void (*from_sk)(union sctp_addr *, struct sock *);
1: + void (*from_addr_param)(union sctp_addr *, union sctp_addr_param *, __be16, int);
1: + int (*to_addr_param)(const union sctp_addr *, union sctp_addr_param *);
1: + int (*addr_valid)(union sctp_addr *, struct sctp_sock *, const struct sk_buff *);
1: + enum sctp_scope (*scope)(union sctp_addr *);
1: + void (*inaddr_any)(union sctp_addr *, __be16);
1: + int (*is_any)(const union sctp_addr *);
1: + int (*available)(union sctp_addr *, struct sctp_sock *);
1: + int (*skb_iif)(const struct sk_buff *);
1: + int (*is_ce)(const struct sk_buff *);
1: + void (*seq_dump_addr)(struct seq_file *, union sctp_addr *);
1: + void (*ecn_capable)(struct sock *);
1: + __u16 net_header_len;
1: + int sockaddr_len;
1: + int (*ip_options_len)(struct sock *);
1: + sa_family_t sa_family;
1: + struct list_head list;
1: +};
1: +
1: +struct sctp_packet {
1: + __u16 source_port;
1: + __u16 destination_port;
1: + __u32 vtag;
1: + struct list_head chunk_list;
1: + size_t overhead;
1: + size_t size;
1: + size_t max_size;
1: + struct sctp_transport *transport;
1: + struct sctp_chunk *auth;
1: + u8 has_cookie_echo: 1;
1: + u8 has_sack: 1;
1: + u8 has_auth: 1;
1: + u8 has_data: 1;
1: + u8 ipfragok: 1;
1: +};
1: +
1: +struct sctp_transport {
1: + struct list_head transports;
1: + struct rhlist_head node;
1: + refcount_t refcnt;
1: + __u32 rto_pending: 1;
1: + __u32 hb_sent: 1;
1: + __u32 pmtu_pending: 1;
1: + __u32 dst_pending_confirm: 1;
1: + __u32 sack_generation: 1;
1: + u32 dst_cookie;
1: + struct flowi fl;
1: + union sctp_addr ipaddr;
1: + struct sctp_af *af_specific;
1: + struct sctp_association *asoc;
1: + long unsigned int rto;
1: + __u32 rtt;
1: + __u32 rttvar;
1: + __u32 srtt;
1: + __u32 cwnd;
1: + __u32 ssthresh;
1: + __u32 partial_bytes_acked;
1: + __u32 flight_size;
1: + __u32 burst_limited;
1: + struct dst_entry *dst;
1: + union sctp_addr saddr;
1: + long unsigned int hbinterval;
1: + long unsigned int sackdelay;
1: + __u32 sackfreq;
1: + atomic_t mtu_info;
1: + ktime_t last_time_heard;
1: + long unsigned int last_time_sent;
1: + long unsigned int last_time_ecne_reduced;
1: + __u16 pathmaxrxt;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + __u32 pathmtu;
1: + __u32 param_flags;
1: + int init_sent_count;
1: + int state;
1: + short unsigned int error_count;
1: + struct timer_list T3_rtx_timer;
1: + struct timer_list hb_timer;
1: + struct timer_list proto_unreach_timer;
1: + struct timer_list reconf_timer;
1: + struct list_head transmitted;
1: + struct sctp_packet packet;
1: + struct list_head send_ready;
1: + struct {
1: + __u32 next_tsn_at_change;
1: + char changeover_active;
1: + char cycling_changeover;
1: + char cacc_saw_newack;
1: + } cacc;
1: + __u64 hb_nonce;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct sctp_datamsg {
1: + struct list_head chunks;
1: + refcount_t refcnt;
1: + long unsigned int expires_at;
1: + int send_error;
1: + u8 send_failed: 1;
1: + u8 can_delay: 1;
1: + u8 abandoned: 1;
1: +};
1: +
1: +struct sctp_stream_priorities {
1: + struct list_head prio_sched;
1: + struct list_head active;
1: + struct sctp_stream_out_ext *next;
1: + __u16 prio;
1: +};
1: +
1: +struct sctp_stream_out_ext {
1: + __u64 abandoned_unsent[3];
1: + __u64 abandoned_sent[3];
1: + struct list_head outq;
1: + union {
1: + struct {
1: + struct list_head prio_list;
1: + struct sctp_stream_priorities *prio_head;
1: + };
1: + struct {
1: + struct list_head rr_list;
1: + };
1: + };
1: +};
1: +
1: +struct task_security_struct {
1: + u32 osid;
1: + u32 sid;
1: + u32 exec_sid;
1: + u32 create_sid;
1: + u32 keycreate_sid;
1: + u32 sockcreate_sid;
1: +};
1: +
1: +enum label_initialized {
1: + LABEL_INVALID = 0,
1: + LABEL_INITIALIZED = 1,
1: + LABEL_PENDING = 2,
1: +};
1: +
1: +struct inode_security_struct {
1: + struct inode *inode;
1: + struct list_head list;
1: + u32 task_sid;
1: + u32 sid;
1: + u16 sclass;
1: + unsigned char initialized;
1: + spinlock_t lock;
1: +};
1: +
1: +struct file_security_struct {
1: + u32 sid;
1: + u32 fown_sid;
1: + u32 isid;
1: + u32 pseqno;
1: +};
1: +
1: +struct superblock_security_struct {
1: + struct super_block *sb;
1: + u32 sid;
1: + u32 def_sid;
1: + u32 mntpoint_sid;
1: + short unsigned int behavior;
1: + short unsigned int flags;
1: + struct mutex lock;
1: + struct list_head isec_head;
1: + spinlock_t isec_lock;
1: +};
1: +
1: +struct msg_security_struct {
1: + u32 sid;
1: +};
1: +
1: +struct ipc_security_struct {
1: + u16 sclass;
1: + u32 sid;
1: +};
1: +
1: +struct sk_security_struct {
1: + enum {
1: + NLBL_UNSET = 0,
1: + NLBL_REQUIRE = 1,
1: + NLBL_LABELED = 2,
1: + NLBL_REQSKB = 3,
1: + NLBL_CONNLABELED = 4,
1: + } nlbl_state;
1: + struct netlbl_lsm_secattr *nlbl_secattr;
1: + u32 sid;
1: + u32 peer_sid;
1: + u16 sclass;
1: + enum {
1: + SCTP_ASSOC_UNSET = 0,
1: + SCTP_ASSOC_SET = 1,
1: + } sctp_assoc_state;
1: +};
1: +
1: +struct tun_security_struct {
1: + u32 sid;
1: +};
1: +
1: +struct key_security_struct {
1: + u32 sid;
1: +};
1: +
1: +struct bpf_security_struct {
1: + u32 sid;
1: +};
1: +
1: +struct perf_event_security_struct {
1: + u32 sid;
1: +};
1: +
1: +struct selinux_mnt_opts {
1: + const char *fscontext;
1: + const char *context;
1: + const char *rootcontext;
1: + const char *defcontext;
1: +};
1: +
1: +enum {
1: + Opt_error___2 = 4294967295,
1: + Opt_context = 0,
1: + Opt_defcontext = 1,
1: + Opt_fscontext = 2,
1: + Opt_rootcontext = 3,
1: + Opt_seclabel = 4,
1: +};
1: +
1: +enum sel_inos {
1: + SEL_ROOT_INO = 2,
1: + SEL_LOAD = 3,
1: + SEL_ENFORCE = 4,
1: + SEL_CONTEXT = 5,
1: + SEL_ACCESS = 6,
1: + SEL_CREATE = 7,
1: + SEL_RELABEL = 8,
1: + SEL_USER = 9,
1: + SEL_POLICYVERS = 10,
1: + SEL_COMMIT_BOOLS = 11,
1: + SEL_MLS = 12,
1: + SEL_DISABLE = 13,
1: + SEL_MEMBER = 14,
1: + SEL_CHECKREQPROT = 15,
1: + SEL_COMPAT_NET = 16,
1: + SEL_REJECT_UNKNOWN = 17,
1: + SEL_DENY_UNKNOWN = 18,
1: + SEL_STATUS = 19,
1: + SEL_POLICY = 20,
1: + SEL_VALIDATE_TRANS = 21,
1: + SEL_INO_NEXT = 22,
1: +};
1: +
1: +struct selinux_fs_info {
1: + struct dentry *bool_dir;
1: + unsigned int bool_num;
1: + char **bool_pending_names;
1: + unsigned int *bool_pending_values;
1: + struct dentry *class_dir;
1: + long unsigned int last_class_ino;
1: + bool policy_opened;
1: + struct dentry *policycap_dir;
1: + long unsigned int last_ino;
1: + struct selinux_state *state;
1: + struct super_block *sb;
1: +};
1: +
1: +struct policy_load_memory {
1: + size_t len;
1: + void *data;
1: +};
1: +
1: +enum {
1: + SELNL_MSG_SETENFORCE = 16,
1: + SELNL_MSG_POLICYLOAD = 17,
1: + SELNL_MSG_MAX = 18,
1: +};
1: +
1: +enum selinux_nlgroups {
1: + SELNLGRP_NONE = 0,
1: + SELNLGRP_AVC = 1,
1: + __SELNLGRP_MAX = 2,
1: +};
1: +
1: +struct selnl_msg_setenforce {
1: + __s32 val;
1: +};
1: +
1: +struct selnl_msg_policyload {
1: + __u32 seqno;
1: +};
1: +
1: +enum {
1: + XFRM_MSG_BASE = 16,
1: + XFRM_MSG_NEWSA = 16,
1: + XFRM_MSG_DELSA = 17,
1: + XFRM_MSG_GETSA = 18,
1: + XFRM_MSG_NEWPOLICY = 19,
1: + XFRM_MSG_DELPOLICY = 20,
1: + XFRM_MSG_GETPOLICY = 21,
1: + XFRM_MSG_ALLOCSPI = 22,
1: + XFRM_MSG_ACQUIRE = 23,
1: + XFRM_MSG_EXPIRE = 24,
1: + XFRM_MSG_UPDPOLICY = 25,
1: + XFRM_MSG_UPDSA = 26,
1: + XFRM_MSG_POLEXPIRE = 27,
1: + XFRM_MSG_FLUSHSA = 28,
1: + XFRM_MSG_FLUSHPOLICY = 29,
1: + XFRM_MSG_NEWAE = 30,
1: + XFRM_MSG_GETAE = 31,
1: + XFRM_MSG_REPORT = 32,
1: + XFRM_MSG_MIGRATE = 33,
1: + XFRM_MSG_NEWSADINFO = 34,
1: + XFRM_MSG_GETSADINFO = 35,
1: + XFRM_MSG_NEWSPDINFO = 36,
1: + XFRM_MSG_GETSPDINFO = 37,
1: + XFRM_MSG_MAPPING = 38,
1: + __XFRM_MSG_MAX = 39,
1: +};
1: +
1: +enum {
1: + RTM_BASE = 16,
1: + RTM_NEWLINK = 16,
1: + RTM_DELLINK = 17,
1: + RTM_GETLINK = 18,
1: + RTM_SETLINK = 19,
1: + RTM_NEWADDR = 20,
1: + RTM_DELADDR = 21,
1: + RTM_GETADDR = 22,
1: + RTM_NEWROUTE = 24,
1: + RTM_DELROUTE = 25,
1: + RTM_GETROUTE = 26,
1: + RTM_NEWNEIGH = 28,
1: + RTM_DELNEIGH = 29,
1: + RTM_GETNEIGH = 30,
1: + RTM_NEWRULE = 32,
1: + RTM_DELRULE = 33,
1: + RTM_GETRULE = 34,
1: + RTM_NEWQDISC = 36,
1: + RTM_DELQDISC = 37,
1: + RTM_GETQDISC = 38,
1: + RTM_NEWTCLASS = 40,
1: + RTM_DELTCLASS = 41,
1: + RTM_GETTCLASS = 42,
1: + RTM_NEWTFILTER = 44,
1: + RTM_DELTFILTER = 45,
1: + RTM_GETTFILTER = 46,
1: + RTM_NEWACTION = 48,
1: + RTM_DELACTION = 49,
1: + RTM_GETACTION = 50,
1: + RTM_NEWPREFIX = 52,
1: + RTM_GETMULTICAST = 58,
1: + RTM_GETANYCAST = 62,
1: + RTM_NEWNEIGHTBL = 64,
1: + RTM_GETNEIGHTBL = 66,
1: + RTM_SETNEIGHTBL = 67,
1: + RTM_NEWNDUSEROPT = 68,
1: + RTM_NEWADDRLABEL = 72,
1: + RTM_DELADDRLABEL = 73,
1: + RTM_GETADDRLABEL = 74,
1: + RTM_GETDCB = 78,
1: + RTM_SETDCB = 79,
1: + RTM_NEWNETCONF = 80,
1: + RTM_DELNETCONF = 81,
1: + RTM_GETNETCONF = 82,
1: + RTM_NEWMDB = 84,
1: + RTM_DELMDB = 85,
1: + RTM_GETMDB = 86,
1: + RTM_NEWNSID = 88,
1: + RTM_DELNSID = 89,
1: + RTM_GETNSID = 90,
1: + RTM_NEWSTATS = 92,
1: + RTM_GETSTATS = 94,
1: + RTM_NEWCACHEREPORT = 96,
1: + RTM_NEWCHAIN = 100,
1: + RTM_DELCHAIN = 101,
1: + RTM_GETCHAIN = 102,
1: + RTM_NEWNEXTHOP = 104,
1: + RTM_DELNEXTHOP = 105,
1: + RTM_GETNEXTHOP = 106,
1: + RTM_NEWLINKPROP = 108,
1: + RTM_DELLINKPROP = 109,
1: + RTM_GETLINKPROP = 110,
1: + RTM_NEWVLAN = 112,
1: + RTM_DELVLAN = 113,
1: + RTM_GETVLAN = 114,
1: + __RTM_MAX = 115,
1: +};
1: +
1: +struct nlmsg_perm {
1: + u16 nlmsg_type;
1: + u32 perm;
1: +};
1: +
1: +struct netif_security_struct {
1: + struct net *ns;
1: + int ifindex;
1: + u32 sid;
1: +};
1: +
1: +struct sel_netif {
1: + struct list_head list;
1: + struct netif_security_struct nsec;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct netnode_security_struct {
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } addr;
1: + u32 sid;
1: + u16 family;
1: +};
1: +
1: +struct sel_netnode_bkt {
1: + unsigned int size;
1: + struct list_head list;
1: +};
1: +
1: +struct sel_netnode {
1: + struct netnode_security_struct nsec;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netport_security_struct {
1: + u32 sid;
1: + u16 port;
1: + u8 protocol;
1: +};
1: +
1: +struct sel_netport_bkt {
1: + int size;
1: + struct list_head list;
1: +};
1: +
1: +struct sel_netport {
1: + struct netport_security_struct psec;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct selinux_kernel_status {
1: + u32 version;
1: + u32 sequence;
1: + u32 enforcing;
1: + u32 policyload;
1: + u32 deny_unknown;
1: +};
1: +
1: +struct ebitmap_node {
1: + struct ebitmap_node *next;
1: + long unsigned int maps[6];
1: + u32 startbit;
1: +};
1: +
1: +struct ebitmap {
1: + struct ebitmap_node *node;
1: + u32 highbit;
1: +};
1: +
1: +struct policy_file {
1: + char *data;
1: + size_t len;
1: +};
1: +
1: +struct hashtab_node {
1: + void *key;
1: + void *datum;
1: + struct hashtab_node *next;
1: +};
1: +
1: +struct hashtab {
1: + struct hashtab_node **htable;
1: + u32 size;
1: + u32 nel;
1: +};
1: +
1: +struct hashtab_info {
1: + u32 slots_used;
1: + u32 max_chain_len;
1: +};
1: +
1: +struct hashtab_key_params {
1: + u32 (*hash)(const void *);
1: + int (*cmp)(const void *, const void *);
1: +};
1: +
1: +struct symtab {
1: + struct hashtab table;
1: + u32 nprim;
1: +};
1: +
1: +struct mls_level {
1: + u32 sens;
1: + struct ebitmap cat;
1: +};
1: +
1: +struct mls_range {
1: + struct mls_level level[2];
1: +};
1: +
1: +struct context {
1: + u32 user;
1: + u32 role;
1: + u32 type;
1: + u32 len;
1: + struct mls_range range;
1: + char *str;
1: +};
1: +
1: +struct sidtab_str_cache;
1: +
1: +struct sidtab_entry {
1: + u32 sid;
1: + u32 hash;
1: + struct context context;
1: + struct sidtab_str_cache *cache;
1: + struct hlist_node list;
1: +};
1: +
1: +struct sidtab_str_cache {
1: + struct callback_head rcu_member;
1: + struct list_head lru_member;
1: + struct sidtab_entry *parent;
1: + u32 len;
1: + char str[0];
1: +};
1: +
1: +struct sidtab_node_inner;
1: +
1: +struct sidtab_node_leaf;
1: +
1: +union sidtab_entry_inner {
1: + struct sidtab_node_inner *ptr_inner;
1: + struct sidtab_node_leaf *ptr_leaf;
1: +};
1: +
1: +struct sidtab_node_inner {
1: + union sidtab_entry_inner entries[512];
1: +};
1: +
1: +struct sidtab_node_leaf {
1: + struct sidtab_entry entries[39];
1: +};
1: +
1: +struct sidtab_isid_entry {
1: + int set;
1: + struct sidtab_entry entry;
1: +};
1: +
1: +struct sidtab;
1: +
1: +struct sidtab_convert_params {
1: + int (*func)(struct context *, struct context *, void *);
1: + void *args;
1: + struct sidtab *target;
1: +};
1: +
1: +struct sidtab {
1: + union sidtab_entry_inner roots[4];
1: + u32 count;
1: + struct sidtab_convert_params *convert;
1: + spinlock_t lock;
1: + u32 cache_free_slots;
1: + struct list_head cache_lru_list;
1: + spinlock_t cache_lock;
1: + struct sidtab_isid_entry isids[27];
1: + struct hlist_head context_to_sid[512];
1: +};
1: +
1: +struct avtab_key {
1: + u16 source_type;
1: + u16 target_type;
1: + u16 target_class;
1: + u16 specified;
1: +};
1: +
1: +struct avtab_extended_perms {
1: + u8 specified;
1: + u8 driver;
1: + struct extended_perms_data perms;
1: +};
1: +
1: +struct avtab_datum {
1: + union {
1: + u32 data;
1: + struct avtab_extended_perms *xperms;
1: + } u;
1: +};
1: +
1: +struct avtab_node {
1: + struct avtab_key key;
1: + struct avtab_datum datum;
1: + struct avtab_node *next;
1: +};
1: +
1: +struct avtab {
1: + struct avtab_node **htable;
1: + u32 nel;
1: + u32 nslot;
1: + u32 mask;
1: +};
1: +
1: +struct type_set;
1: +
1: +struct constraint_expr {
1: + u32 expr_type;
1: + u32 attr;
1: + u32 op;
1: + struct ebitmap names;
1: + struct type_set *type_names;
1: + struct constraint_expr *next;
1: +};
1: +
1: +struct type_set {
1: + struct ebitmap types;
1: + struct ebitmap negset;
1: + u32 flags;
1: +};
1: +
1: +struct constraint_node {
1: + u32 permissions;
1: + struct constraint_expr *expr;
1: + struct constraint_node *next;
1: +};
1: +
1: +struct common_datum {
1: + u32 value;
1: + struct symtab permissions;
1: +};
1: +
1: +struct class_datum {
1: + u32 value;
1: + char *comkey;
1: + struct common_datum *comdatum;
1: + struct symtab permissions;
1: + struct constraint_node *constraints;
1: + struct constraint_node *validatetrans;
1: + char default_user;
1: + char default_role;
1: + char default_type;
1: + char default_range;
1: +};
1: +
1: +struct role_datum {
1: + u32 value;
1: + u32 bounds;
1: + struct ebitmap dominates;
1: + struct ebitmap types;
1: +};
1: +
1: +struct role_allow {
1: + u32 role;
1: + u32 new_role;
1: + struct role_allow *next;
1: +};
1: +
1: +struct type_datum {
1: + u32 value;
1: + u32 bounds;
1: + unsigned char primary;
1: + unsigned char attribute;
1: +};
1: +
1: +struct user_datum {
1: + u32 value;
1: + u32 bounds;
1: + struct ebitmap roles;
1: + struct mls_range range;
1: + struct mls_level dfltlevel;
1: +};
1: +
1: +struct cond_bool_datum {
1: + __u32 value;
1: + int state;
1: +};
1: +
1: +struct ocontext {
1: + union {
1: + char *name;
1: + struct {
1: + u8 protocol;
1: + u16 low_port;
1: + u16 high_port;
1: + } port;
1: + struct {
1: + u32 addr;
1: + u32 mask;
1: + } node;
1: + struct {
1: + u32 addr[4];
1: + u32 mask[4];
1: + } node6;
1: + struct {
1: + u64 subnet_prefix;
1: + u16 low_pkey;
1: + u16 high_pkey;
1: + } ibpkey;
1: + struct {
1: + char *dev_name;
1: + u8 port;
1: + } ibendport;
1: + } u;
1: + union {
1: + u32 sclass;
1: + u32 behavior;
1: + } v;
1: + struct context context[2];
1: + u32 sid[2];
1: + struct ocontext *next;
1: +};
1: +
1: +struct genfs {
1: + char *fstype;
1: + struct ocontext *head;
1: + struct genfs *next;
1: +};
1: +
1: +struct cond_node;
1: +
1: +struct policydb {
1: + int mls_enabled;
1: + struct symtab symtab[8];
1: + char **sym_val_to_name[8];
1: + struct class_datum **class_val_to_struct;
1: + struct role_datum **role_val_to_struct;
1: + struct user_datum **user_val_to_struct;
1: + struct type_datum **type_val_to_struct;
1: + struct avtab te_avtab;
1: + struct hashtab role_tr;
1: + struct ebitmap filename_trans_ttypes;
1: + struct hashtab filename_trans;
1: + u32 compat_filename_trans_count;
1: + struct cond_bool_datum **bool_val_to_struct;
1: + struct avtab te_cond_avtab;
1: + struct cond_node *cond_list;
1: + u32 cond_list_len;
1: + struct role_allow *role_allow;
1: + struct ocontext *ocontexts[9];
1: + struct genfs *genfs;
1: + struct hashtab range_tr;
1: + struct ebitmap *type_attr_map_array;
1: + struct ebitmap policycaps;
1: + struct ebitmap permissive_map;
1: + size_t len;
1: + unsigned int policyvers;
1: + unsigned int reject_unknown: 1;
1: + unsigned int allow_unknown: 1;
1: + u16 process_class;
1: + u32 process_trans_perms;
1: +};
1: +
1: +struct perm_datum {
1: + u32 value;
1: +};
1: +
1: +struct role_trans_key {
1: + u32 role;
1: + u32 type;
1: + u32 tclass;
1: +};
1: +
1: +struct role_trans_datum {
1: + u32 new_role;
1: +};
1: +
1: +struct filename_trans_key {
1: + u32 ttype;
1: + u16 tclass;
1: + const char *name;
1: +};
1: +
1: +struct filename_trans_datum {
1: + struct ebitmap stypes;
1: + u32 otype;
1: + struct filename_trans_datum *next;
1: +};
1: +
1: +struct level_datum {
1: + struct mls_level *level;
1: + unsigned char isalias;
1: +};
1: +
1: +struct cat_datum {
1: + u32 value;
1: + unsigned char isalias;
1: +};
1: +
1: +struct range_trans {
1: + u32 source_type;
1: + u32 target_type;
1: + u32 target_class;
1: +};
1: +
1: +struct cond_expr_node;
1: +
1: +struct cond_expr {
1: + struct cond_expr_node *nodes;
1: + u32 len;
1: +};
1: +
1: +struct cond_av_list {
1: + struct avtab_node **nodes;
1: + u32 len;
1: +};
1: +
1: +struct cond_node {
1: + int cur_state;
1: + struct cond_expr expr;
1: + struct cond_av_list true_list;
1: + struct cond_av_list false_list;
1: +};
1: +
1: +struct policy_data {
1: + struct policydb *p;
1: + void *fp;
1: +};
1: +
1: +struct cond_expr_node {
1: + u32 expr_type;
1: + u32 bool;
1: +};
1: +
1: +struct policydb_compat_info {
1: + int version;
1: + int sym_num;
1: + int ocon_num;
1: +};
1: +
1: +struct selinux_mapping;
1: +
1: +struct selinux_map {
1: + struct selinux_mapping *mapping;
1: + u16 size;
1: +};
1: +
1: +struct selinux_policy {
1: + struct sidtab *sidtab;
1: + struct policydb policydb;
1: + struct selinux_map map;
1: + u32 latest_granting;
1: +};
1: +
1: +struct selinux_mapping {
1: + u16 value;
1: + unsigned int num_perms;
1: + u32 perms[32];
1: +};
1: +
1: +struct convert_context_args {
1: + struct selinux_state *state;
1: + struct policydb *oldp;
1: + struct policydb *newp;
1: +};
1: +
1: +struct selinux_audit_rule {
1: + u32 au_seqno;
1: + struct context au_ctxt;
1: +};
1: +
1: +struct cond_insertf_data {
1: + struct policydb *p;
1: + struct avtab_node **dst;
1: + struct cond_av_list *other;
1: +};
1: +
1: +struct rt6key {
1: + struct in6_addr addr;
1: + int plen;
1: +};
1: +
1: +struct rtable;
1: +
1: +struct fnhe_hash_bucket;
1: +
1: +struct fib_nh_common {
1: + struct net_device *nhc_dev;
1: + int nhc_oif;
1: + unsigned char nhc_scope;
1: + u8 nhc_family;
1: + u8 nhc_gw_family;
1: + unsigned char nhc_flags;
1: + struct lwtunnel_state *nhc_lwtstate;
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } nhc_gw;
1: + int nhc_weight;
1: + atomic_t nhc_upper_bound;
1: + struct rtable **nhc_pcpu_rth_output;
1: + struct rtable *nhc_rth_input;
1: + struct fnhe_hash_bucket *nhc_exceptions;
1: +};
1: +
1: +struct rt6_exception_bucket;
1: +
1: +struct fib6_nh {
1: + struct fib_nh_common nh_common;
1: + long unsigned int last_probe;
1: + struct rt6_info **rt6i_pcpu;
1: + struct rt6_exception_bucket *rt6i_exception_bucket;
1: +};
1: +
1: +struct fib6_node;
1: +
1: +struct dst_metrics;
1: +
1: +struct nexthop;
1: +
1: +struct fib6_info {
1: + struct fib6_table *fib6_table;
1: + struct fib6_info *fib6_next;
1: + struct fib6_node *fib6_node;
1: + union {
1: + struct list_head fib6_siblings;
1: + struct list_head nh_list;
1: + };
1: + unsigned int fib6_nsiblings;
1: + refcount_t fib6_ref;
1: + long unsigned int expires;
1: + struct dst_metrics *fib6_metrics;
1: + struct rt6key fib6_dst;
1: + u32 fib6_flags;
1: + struct rt6key fib6_src;
1: + struct rt6key fib6_prefsrc;
1: + u32 fib6_metric;
1: + u8 fib6_protocol;
1: + u8 fib6_type;
1: + u8 should_flush: 1;
1: + u8 dst_nocount: 1;
1: + u8 dst_nopolicy: 1;
1: + u8 fib6_destroying: 1;
1: + u8 offload: 1;
1: + u8 trap: 1;
1: + u8 unused: 2;
1: + struct callback_head rcu;
1: + struct nexthop *nh;
1: + struct fib6_nh fib6_nh[0];
1: +};
1: +
1: +struct uncached_list;
1: +
1: +struct rt6_info {
1: + struct dst_entry dst;
1: + struct fib6_info *from;
1: + int sernum;
1: + struct rt6key rt6i_dst;
1: + struct rt6key rt6i_src;
1: + struct in6_addr rt6i_gateway;
1: + struct inet6_dev *rt6i_idev;
1: + u32 rt6i_flags;
1: + struct list_head rt6i_uncached;
1: + struct uncached_list *rt6i_uncached_list;
1: + short unsigned int rt6i_nfheader_len;
1: +};
1: +
1: +struct rt6_statistics {
1: + __u32 fib_nodes;
1: + __u32 fib_route_nodes;
1: + __u32 fib_rt_entries;
1: + __u32 fib_rt_cache;
1: + __u32 fib_discarded_routes;
1: + atomic_t fib_rt_alloc;
1: + atomic_t fib_rt_uncache;
1: +};
1: +
1: +struct fib6_node {
1: + struct fib6_node *parent;
1: + struct fib6_node *left;
1: + struct fib6_node *right;
1: + struct fib6_node *subtree;
1: + struct fib6_info *leaf;
1: + __u16 fn_bit;
1: + __u16 fn_flags;
1: + int fn_sernum;
1: + struct fib6_info *rr_ptr;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib6_table {
1: + struct hlist_node tb6_hlist;
1: + u32 tb6_id;
1: + spinlock_t tb6_lock;
1: + struct fib6_node tb6_root;
1: + struct inet_peer_base tb6_peers;
1: + unsigned int flags;
1: + unsigned int fib_seq;
1: +};
1: +
1: +typedef union {
1: + __be32 a4;
1: + __be32 a6[4];
1: + struct in6_addr in6;
1: +} xfrm_address_t;
1: +
1: +struct xfrm_id {
1: + xfrm_address_t daddr;
1: + __be32 spi;
1: + __u8 proto;
1: +};
1: +
1: +struct xfrm_selector {
1: + xfrm_address_t daddr;
1: + xfrm_address_t saddr;
1: + __be16 dport;
1: + __be16 dport_mask;
1: + __be16 sport;
1: + __be16 sport_mask;
1: + __u16 family;
1: + __u8 prefixlen_d;
1: + __u8 prefixlen_s;
1: + __u8 proto;
1: + int ifindex;
1: + __kernel_uid32_t user;
1: +};
1: +
1: +struct xfrm_lifetime_cfg {
1: + __u64 soft_byte_limit;
1: + __u64 hard_byte_limit;
1: + __u64 soft_packet_limit;
1: + __u64 hard_packet_limit;
1: + __u64 soft_add_expires_seconds;
1: + __u64 hard_add_expires_seconds;
1: + __u64 soft_use_expires_seconds;
1: + __u64 hard_use_expires_seconds;
1: +};
1: +
1: +struct xfrm_lifetime_cur {
1: + __u64 bytes;
1: + __u64 packets;
1: + __u64 add_time;
1: + __u64 use_time;
1: +};
1: +
1: +struct xfrm_replay_state {
1: + __u32 oseq;
1: + __u32 seq;
1: + __u32 bitmap;
1: +};
1: +
1: +struct xfrm_replay_state_esn {
1: + unsigned int bmp_len;
1: + __u32 oseq;
1: + __u32 seq;
1: + __u32 oseq_hi;
1: + __u32 seq_hi;
1: + __u32 replay_window;
1: + __u32 bmp[0];
1: +};
1: +
1: +struct xfrm_algo {
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + char alg_key[0];
1: +};
1: +
1: +struct xfrm_algo_auth {
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + unsigned int alg_trunc_len;
1: + char alg_key[0];
1: +};
1: +
1: +struct xfrm_algo_aead {
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + unsigned int alg_icv_len;
1: + char alg_key[0];
1: +};
1: +
1: +struct xfrm_stats {
1: + __u32 replay_window;
1: + __u32 replay;
1: + __u32 integrity_failed;
1: +};
1: +
1: +enum {
1: + XFRM_POLICY_TYPE_MAIN = 0,
1: + XFRM_POLICY_TYPE_SUB = 1,
1: + XFRM_POLICY_TYPE_MAX = 2,
1: + XFRM_POLICY_TYPE_ANY = 255,
1: +};
1: +
1: +struct xfrm_encap_tmpl {
1: + __u16 encap_type;
1: + __be16 encap_sport;
1: + __be16 encap_dport;
1: + xfrm_address_t encap_oa;
1: +};
1: +
1: +enum xfrm_attr_type_t {
1: + XFRMA_UNSPEC = 0,
1: + XFRMA_ALG_AUTH = 1,
1: + XFRMA_ALG_CRYPT = 2,
1: + XFRMA_ALG_COMP = 3,
1: + XFRMA_ENCAP = 4,
1: + XFRMA_TMPL = 5,
1: + XFRMA_SA = 6,
1: + XFRMA_POLICY = 7,
1: + XFRMA_SEC_CTX = 8,
1: + XFRMA_LTIME_VAL = 9,
1: + XFRMA_REPLAY_VAL = 10,
1: + XFRMA_REPLAY_THRESH = 11,
1: + XFRMA_ETIMER_THRESH = 12,
1: + XFRMA_SRCADDR = 13,
1: + XFRMA_COADDR = 14,
1: + XFRMA_LASTUSED = 15,
1: + XFRMA_POLICY_TYPE = 16,
1: + XFRMA_MIGRATE = 17,
1: + XFRMA_ALG_AEAD = 18,
1: + XFRMA_KMADDRESS = 19,
1: + XFRMA_ALG_AUTH_TRUNC = 20,
1: + XFRMA_MARK = 21,
1: + XFRMA_TFCPAD = 22,
1: + XFRMA_REPLAY_ESN_VAL = 23,
1: + XFRMA_SA_EXTRA_FLAGS = 24,
1: + XFRMA_PROTO = 25,
1: + XFRMA_ADDRESS_FILTER = 26,
1: + XFRMA_PAD = 27,
1: + XFRMA_OFFLOAD_DEV = 28,
1: + XFRMA_SET_MARK = 29,
1: + XFRMA_SET_MARK_MASK = 30,
1: + XFRMA_IF_ID = 31,
1: + __XFRMA_MAX = 32,
1: +};
1: +
1: +struct xfrm_mark {
1: + __u32 v;
1: + __u32 m;
1: +};
1: +
1: +struct xfrm_address_filter {
1: + xfrm_address_t saddr;
1: + xfrm_address_t daddr;
1: + __u16 family;
1: + __u8 splen;
1: + __u8 dplen;
1: +};
1: +
1: +struct xfrm_state_walk {
1: + struct list_head all;
1: + u8 state;
1: + u8 dying;
1: + u8 proto;
1: + u32 seq;
1: + struct xfrm_address_filter *filter;
1: +};
1: +
1: +struct xfrm_state_offload {
1: + struct net_device *dev;
1: + struct net_device *real_dev;
1: + long unsigned int offload_handle;
1: + unsigned int num_exthdrs;
1: + u8 flags;
1: +};
1: +
1: +struct xfrm_mode {
1: + u8 encap;
1: + u8 family;
1: + u8 flags;
1: +};
1: +
1: +struct xfrm_replay;
1: +
1: +struct xfrm_type;
1: +
1: +struct xfrm_type_offload;
1: +
1: +struct xfrm_state {
1: + possible_net_t xs_net;
1: + union {
1: + struct hlist_node gclist;
1: + struct hlist_node bydst;
1: + };
1: + struct hlist_node bysrc;
1: + struct hlist_node byspi;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + struct xfrm_id id;
1: + struct xfrm_selector sel;
1: + struct xfrm_mark mark;
1: + u32 if_id;
1: + u32 tfcpad;
1: + u32 genid;
1: + struct xfrm_state_walk km;
1: + struct {
1: + u32 reqid;
1: + u8 mode;
1: + u8 replay_window;
1: + u8 aalgo;
1: + u8 ealgo;
1: + u8 calgo;
1: + u8 flags;
1: + u16 family;
1: + xfrm_address_t saddr;
1: + int header_len;
1: + int trailer_len;
1: + u32 extra_flags;
1: + struct xfrm_mark smark;
1: + } props;
1: + struct xfrm_lifetime_cfg lft;
1: + struct xfrm_algo_auth *aalg;
1: + struct xfrm_algo *ealg;
1: + struct xfrm_algo *calg;
1: + struct xfrm_algo_aead *aead;
1: + const char *geniv;
1: + struct xfrm_encap_tmpl *encap;
1: + struct sock *encap_sk;
1: + xfrm_address_t *coaddr;
1: + struct xfrm_state *tunnel;
1: + atomic_t tunnel_users;
1: + struct xfrm_replay_state replay;
1: + struct xfrm_replay_state_esn *replay_esn;
1: + struct xfrm_replay_state preplay;
1: + struct xfrm_replay_state_esn *preplay_esn;
1: + const struct xfrm_replay *repl;
1: + u32 xflags;
1: + u32 replay_maxage;
1: + u32 replay_maxdiff;
1: + struct timer_list rtimer;
1: + struct xfrm_stats stats;
1: + struct xfrm_lifetime_cur curlft;
1: + struct hrtimer mtimer;
1: + struct xfrm_state_offload xso;
1: + long int saved_tmo;
1: + time64_t lastused;
1: + struct page_frag xfrag;
1: + const struct xfrm_type *type;
1: + struct xfrm_mode inner_mode;
1: + struct xfrm_mode inner_mode_iaf;
1: + struct xfrm_mode outer_mode;
1: + const struct xfrm_type_offload *type_offload;
1: + struct xfrm_sec_ctx *security;
1: + void *data;
1: +};
1: +
1: +struct dst_metrics {
1: + u32 metrics[17];
1: + refcount_t refcnt;
1: +};
1: +
1: +struct xfrm_policy_walk_entry {
1: + struct list_head all;
1: + u8 dead;
1: +};
1: +
1: +struct xfrm_policy_queue {
1: + struct sk_buff_head hold_queue;
1: + struct timer_list hold_timer;
1: + long unsigned int timeout;
1: +};
1: +
1: +struct xfrm_tmpl {
1: + struct xfrm_id id;
1: + xfrm_address_t saddr;
1: + short unsigned int encap_family;
1: + u32 reqid;
1: + u8 mode;
1: + u8 share;
1: + u8 optional;
1: + u8 allalgs;
1: + u32 aalgos;
1: + u32 ealgos;
1: + u32 calgos;
1: +};
1: +
1: +struct xfrm_policy {
1: + possible_net_t xp_net;
1: + struct hlist_node bydst;
1: + struct hlist_node byidx;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + u32 pos;
1: + struct timer_list timer;
1: + atomic_t genid;
1: + u32 priority;
1: + u32 index;
1: + u32 if_id;
1: + struct xfrm_mark mark;
1: + struct xfrm_selector selector;
1: + struct xfrm_lifetime_cfg lft;
1: + struct xfrm_lifetime_cur curlft;
1: + struct xfrm_policy_walk_entry walk;
1: + struct xfrm_policy_queue polq;
1: + bool bydst_reinsert;
1: + u8 type;
1: + u8 action;
1: + u8 flags;
1: + u8 xfrm_nr;
1: + u16 family;
1: + struct xfrm_sec_ctx *security;
1: + struct xfrm_tmpl xfrm_vec[6];
1: + struct hlist_node bydst_inexact_list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct udp_hslot;
1: +
1: +struct udp_table {
1: + struct udp_hslot *hash;
1: + struct udp_hslot *hash2;
1: + unsigned int mask;
1: + unsigned int log;
1: +};
1: +
1: +struct fib_nh_exception {
1: + struct fib_nh_exception *fnhe_next;
1: + int fnhe_genid;
1: + __be32 fnhe_daddr;
1: + u32 fnhe_pmtu;
1: + bool fnhe_mtu_locked;
1: + __be32 fnhe_gw;
1: + long unsigned int fnhe_expires;
1: + struct rtable *fnhe_rth_input;
1: + struct rtable *fnhe_rth_output;
1: + long unsigned int fnhe_stamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rtable {
1: + struct dst_entry dst;
1: + int rt_genid;
1: + unsigned int rt_flags;
1: + __u16 rt_type;
1: + __u8 rt_is_input;
1: + __u8 rt_uses_gateway;
1: + int rt_iif;
1: + u8 rt_gw_family;
1: + union {
1: + __be32 rt_gw4;
1: + struct in6_addr rt_gw6;
1: + };
1: + u32 rt_mtu_locked: 1;
1: + u32 rt_pmtu: 31;
1: + struct list_head rt_uncached;
1: + struct uncached_list *rt_uncached_list;
1: +};
1: +
1: +struct fnhe_hash_bucket {
1: + struct fib_nh_exception *chain;
1: +};
1: +
1: +struct rt6_exception_bucket {
1: + struct hlist_head chain;
1: + int depth;
1: +};
1: +
1: +struct xfrm_replay {
1: + void (*advance)(struct xfrm_state *, __be32);
1: + int (*check)(struct xfrm_state *, struct sk_buff *, __be32);
1: + int (*recheck)(struct xfrm_state *, struct sk_buff *, __be32);
1: + void (*notify)(struct xfrm_state *, int);
1: + int (*overflow)(struct xfrm_state *, struct sk_buff *);
1: +};
1: +
1: +struct xfrm_type {
1: + char *description;
1: + struct module *owner;
1: + u8 proto;
1: + u8 flags;
1: + int (*init_state)(struct xfrm_state *);
1: + void (*destructor)(struct xfrm_state *);
1: + int (*input)(struct xfrm_state *, struct sk_buff *);
1: + int (*output)(struct xfrm_state *, struct sk_buff *);
1: + int (*reject)(struct xfrm_state *, struct sk_buff *, const struct flowi *);
1: + int (*hdr_offset)(struct xfrm_state *, struct sk_buff *, u8 **);
1: +};
1: +
1: +struct xfrm_type_offload {
1: + char *description;
1: + struct module *owner;
1: + u8 proto;
1: + void (*encap)(struct xfrm_state *, struct sk_buff *);
1: + int (*input_tail)(struct xfrm_state *, struct sk_buff *);
1: + int (*xmit)(struct xfrm_state *, struct sk_buff *, netdev_features_t);
1: +};
1: +
1: +struct xfrm_dst {
1: + union {
1: + struct dst_entry dst;
1: + struct rtable rt;
1: + struct rt6_info rt6;
1: + } u;
1: + struct dst_entry *route;
1: + struct dst_entry *child;
1: + struct dst_entry *path;
1: + struct xfrm_policy *pols[2];
1: + int num_pols;
1: + int num_xfrms;
1: + u32 xfrm_genid;
1: + u32 policy_genid;
1: + u32 route_mtu_cached;
1: + u32 child_mtu_cached;
1: + u32 route_cookie;
1: + u32 path_cookie;
1: +};
1: +
1: +struct xfrm_offload {
1: + struct {
1: + __u32 low;
1: + __u32 hi;
1: + } seq;
1: + __u32 flags;
1: + __u32 status;
1: + __u8 proto;
1: +};
1: +
1: +struct sec_path {
1: + int len;
1: + int olen;
1: + struct xfrm_state *xvec[6];
1: + struct xfrm_offload ovec[1];
1: +};
1: +
1: +struct udp_hslot {
1: + struct hlist_head head;
1: + int count;
1: + spinlock_t lock;
1: +};
1: +
1: +struct smack_audit_data {
1: + const char *function;
1: + char *subject;
1: + char *object;
1: + char *request;
1: + int result;
1: +};
1: +
1: +struct smack_known {
1: + struct list_head list;
1: + struct hlist_node smk_hashed;
1: + char *smk_known;
1: + u32 smk_secid;
1: + struct netlbl_lsm_secattr smk_netlabel;
1: + struct list_head smk_rules;
1: + struct mutex smk_rules_lock;
1: +};
1: +
1: +struct superblock_smack {
1: + struct smack_known *smk_root;
1: + struct smack_known *smk_floor;
1: + struct smack_known *smk_hat;
1: + struct smack_known *smk_default;
1: + int smk_flags;
1: +};
1: +
1: +struct socket_smack {
1: + struct smack_known *smk_out;
1: + struct smack_known *smk_in;
1: + struct smack_known *smk_packet;
1: + int smk_state;
1: +};
1: +
1: +struct inode_smack {
1: + struct smack_known *smk_inode;
1: + struct smack_known *smk_task;
1: + struct smack_known *smk_mmap;
1: + int smk_flags;
1: +};
1: +
1: +struct task_smack {
1: + struct smack_known *smk_task;
1: + struct smack_known *smk_forked;
1: + struct list_head smk_rules;
1: + struct mutex smk_rules_lock;
1: + struct list_head smk_relabel;
1: +};
1: +
1: +struct smack_rule {
1: + struct list_head list;
1: + struct smack_known *smk_subject;
1: + struct smack_known *smk_object;
1: + int smk_access;
1: +};
1: +
1: +struct smk_net4addr {
1: + struct list_head list;
1: + struct in_addr smk_host;
1: + struct in_addr smk_mask;
1: + int smk_masks;
1: + struct smack_known *smk_label;
1: +};
1: +
1: +struct smk_net6addr {
1: + struct list_head list;
1: + struct in6_addr smk_host;
1: + struct in6_addr smk_mask;
1: + int smk_masks;
1: + struct smack_known *smk_label;
1: +};
1: +
1: +struct smack_known_list_elem {
1: + struct list_head list;
1: + struct smack_known *smk_label;
1: +};
1: +
1: +enum {
1: + Opt_error___3 = 4294967295,
1: + Opt_fsdefault = 0,
1: + Opt_fsfloor = 1,
1: + Opt_fshat = 2,
1: + Opt_fsroot = 3,
1: + Opt_fstransmute = 4,
1: +};
1: +
1: +struct smk_audit_info {
1: + struct common_audit_data a;
1: + struct smack_audit_data sad;
1: +};
1: +
1: +struct smack_mnt_opts {
1: + const char *fsdefault;
1: + const char *fsfloor;
1: + const char *fshat;
1: + const char *fsroot;
1: + const char *fstransmute;
1: +};
1: +
1: +struct netlbl_audit {
1: + u32 secid;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: +};
1: +
1: +struct cipso_v4_std_map_tbl {
1: + struct {
1: + u32 *cipso;
1: + u32 *local;
1: + u32 cipso_size;
1: + u32 local_size;
1: + } lvl;
1: + struct {
1: + u32 *cipso;
1: + u32 *local;
1: + u32 cipso_size;
1: + u32 local_size;
1: + } cat;
1: +};
1: +
1: +struct cipso_v4_doi {
1: + u32 doi;
1: + u32 type;
1: + union {
1: + struct cipso_v4_std_map_tbl *std;
1: + } map;
1: + u8 tags[5];
1: + refcount_t refcount;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum smk_inos {
1: + SMK_ROOT_INO = 2,
1: + SMK_LOAD = 3,
1: + SMK_CIPSO = 4,
1: + SMK_DOI = 5,
1: + SMK_DIRECT = 6,
1: + SMK_AMBIENT = 7,
1: + SMK_NET4ADDR = 8,
1: + SMK_ONLYCAP = 9,
1: + SMK_LOGGING = 10,
1: + SMK_LOAD_SELF = 11,
1: + SMK_ACCESSES = 12,
1: + SMK_MAPPED = 13,
1: + SMK_LOAD2 = 14,
1: + SMK_LOAD_SELF2 = 15,
1: + SMK_ACCESS2 = 16,
1: + SMK_CIPSO2 = 17,
1: + SMK_REVOKE_SUBJ = 18,
1: + SMK_CHANGE_RULE = 19,
1: + SMK_SYSLOG = 20,
1: + SMK_PTRACE = 21,
1: + SMK_NET6ADDR = 23,
1: + SMK_RELABEL_SELF = 24,
1: +};
1: +
1: +struct smack_parsed_rule {
1: + struct smack_known *smk_subject;
1: + struct smack_known *smk_object;
1: + int smk_access1;
1: + int smk_access2;
1: +};
1: +
1: +struct sockaddr_un {
1: + __kernel_sa_family_t sun_family;
1: + char sun_path[108];
1: +};
1: +
1: +struct unix_address {
1: + refcount_t refcnt;
1: + int len;
1: + unsigned int hash;
1: + struct sockaddr_un name[0];
1: +};
1: +
1: +struct scm_stat {
1: + atomic_t nr_fds;
1: +};
1: +
1: +struct unix_sock {
1: + struct sock sk;
1: + struct unix_address *addr;
1: + struct path path;
1: + struct mutex iolock;
1: + struct mutex bindlock;
1: + struct sock *peer;
1: + struct list_head link;
1: + atomic_long_t inflight;
1: + spinlock_t lock;
1: + long unsigned int gc_flags;
1: + struct socket_wq peer_wq;
1: + wait_queue_entry_t peer_wake;
1: + struct scm_stat scm_stat;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef unsigned char Byte;
1: +
1: +typedef long unsigned int uLong;
1: +
1: +struct internal_state;
1: +
1: +struct z_stream_s {
1: + const Byte *next_in;
1: + uLong avail_in;
1: + uLong total_in;
1: + Byte *next_out;
1: + uLong avail_out;
1: + uLong total_out;
1: + char *msg;
1: + struct internal_state *state;
1: + void *workspace;
1: + int data_type;
1: + uLong adler;
1: + uLong reserved;
1: +};
1: +
1: +struct internal_state {
1: + int dummy;
1: +};
1: +
1: +enum audit_mode {
1: + AUDIT_NORMAL = 0,
1: + AUDIT_QUIET_DENIED = 1,
1: + AUDIT_QUIET = 2,
1: + AUDIT_NOQUIET = 3,
1: + AUDIT_ALL = 4,
1: +};
1: +
1: +enum aa_sfs_type {
1: + AA_SFS_TYPE_BOOLEAN = 0,
1: + AA_SFS_TYPE_STRING = 1,
1: + AA_SFS_TYPE_U64 = 2,
1: + AA_SFS_TYPE_FOPS = 3,
1: + AA_SFS_TYPE_DIR = 4,
1: +};
1: +
1: +struct aa_sfs_entry {
1: + const char *name;
1: + struct dentry *dentry;
1: + umode_t mode;
1: + enum aa_sfs_type v_type;
1: + union {
1: + bool boolean;
1: + char *string;
1: + long unsigned int u64;
1: + struct aa_sfs_entry *files;
1: + } v;
1: + const struct file_operations *file_ops;
1: +};
1: +
1: +enum aafs_ns_type {
1: + AAFS_NS_DIR = 0,
1: + AAFS_NS_PROFS = 1,
1: + AAFS_NS_NS = 2,
1: + AAFS_NS_RAW_DATA = 3,
1: + AAFS_NS_LOAD = 4,
1: + AAFS_NS_REPLACE = 5,
1: + AAFS_NS_REMOVE = 6,
1: + AAFS_NS_REVISION = 7,
1: + AAFS_NS_COUNT = 8,
1: + AAFS_NS_MAX_COUNT = 9,
1: + AAFS_NS_SIZE = 10,
1: + AAFS_NS_MAX_SIZE = 11,
1: + AAFS_NS_OWNER = 12,
1: + AAFS_NS_SIZEOF = 13,
1: +};
1: +
1: +enum aafs_prof_type {
1: + AAFS_PROF_DIR = 0,
1: + AAFS_PROF_PROFS = 1,
1: + AAFS_PROF_NAME = 2,
1: + AAFS_PROF_MODE = 3,
1: + AAFS_PROF_ATTACH = 4,
1: + AAFS_PROF_HASH = 5,
1: + AAFS_PROF_RAW_DATA = 6,
1: + AAFS_PROF_RAW_HASH = 7,
1: + AAFS_PROF_RAW_ABI = 8,
1: + AAFS_PROF_SIZEOF = 9,
1: +};
1: +
1: +struct table_header {
1: + u16 td_id;
1: + u16 td_flags;
1: + u32 td_hilen;
1: + u32 td_lolen;
1: + char td_data[0];
1: +};
1: +
1: +struct aa_dfa {
1: + struct kref count;
1: + u16 flags;
1: + u32 max_oob;
1: + struct table_header *tables[8];
1: +};
1: +
1: +struct aa_policy {
1: + const char *name;
1: + char *hname;
1: + struct list_head list;
1: + struct list_head profiles;
1: +};
1: +
1: +struct aa_labelset {
1: + rwlock_t lock;
1: + struct rb_root root;
1: +};
1: +
1: +enum label_flags {
1: + FLAG_HAT = 1,
1: + FLAG_UNCONFINED = 2,
1: + FLAG_NULL = 4,
1: + FLAG_IX_ON_NAME_ERROR = 8,
1: + FLAG_IMMUTIBLE = 16,
1: + FLAG_USER_DEFINED = 32,
1: + FLAG_NO_LIST_REF = 64,
1: + FLAG_NS_COUNT = 128,
1: + FLAG_IN_TREE = 256,
1: + FLAG_PROFILE = 512,
1: + FLAG_EXPLICIT = 1024,
1: + FLAG_STALE = 2048,
1: + FLAG_RENAMED = 4096,
1: + FLAG_REVOKED = 8192,
1: +};
1: +
1: +struct aa_label;
1: +
1: +struct aa_proxy {
1: + struct kref count;
1: + struct aa_label *label;
1: +};
1: +
1: +struct aa_profile;
1: +
1: +struct aa_label {
1: + struct kref count;
1: + struct rb_node node;
1: + struct callback_head rcu;
1: + struct aa_proxy *proxy;
1: + char *hname;
1: + long int flags;
1: + u32 secid;
1: + int size;
1: + struct aa_profile *vec[0];
1: +};
1: +
1: +struct label_it {
1: + int i;
1: + int j;
1: +};
1: +
1: +struct aa_policydb {
1: + struct aa_dfa *dfa;
1: + unsigned int start[17];
1: +};
1: +
1: +struct aa_domain {
1: + int size;
1: + char **table;
1: +};
1: +
1: +struct aa_file_rules {
1: + unsigned int start;
1: + struct aa_dfa *dfa;
1: + struct aa_domain trans;
1: +};
1: +
1: +struct aa_caps {
1: + kernel_cap_t allow;
1: + kernel_cap_t audit;
1: + kernel_cap_t denied;
1: + kernel_cap_t quiet;
1: + kernel_cap_t kill;
1: + kernel_cap_t extended;
1: +};
1: +
1: +struct aa_rlimit {
1: + unsigned int mask;
1: + struct rlimit limits[16];
1: +};
1: +
1: +struct aa_ns;
1: +
1: +struct aa_secmark;
1: +
1: +struct aa_loaddata;
1: +
1: +struct aa_profile {
1: + struct aa_policy base;
1: + struct aa_profile *parent;
1: + struct aa_ns *ns;
1: + const char *rename;
1: + const char *attach;
1: + struct aa_dfa *xmatch;
1: + int xmatch_len;
1: + enum audit_mode audit;
1: + long int mode;
1: + u32 path_flags;
1: + const char *disconnected;
1: + int size;
1: + struct aa_policydb policy;
1: + struct aa_file_rules file;
1: + struct aa_caps caps;
1: + int xattr_count;
1: + char **xattrs;
1: + struct aa_rlimit rlimits;
1: + int secmark_count;
1: + struct aa_secmark *secmark;
1: + struct aa_loaddata *rawdata;
1: + unsigned char *hash;
1: + char *dirname;
1: + struct dentry *dents[9];
1: + struct rhashtable *data;
1: + struct aa_label label;
1: +};
1: +
1: +struct aa_perms {
1: + u32 allow;
1: + u32 audit;
1: + u32 deny;
1: + u32 quiet;
1: + u32 kill;
1: + u32 stop;
1: + u32 complain;
1: + u32 cond;
1: + u32 hide;
1: + u32 prompt;
1: + u16 xindex;
1: +};
1: +
1: +struct path_cond {
1: + kuid_t uid;
1: + umode_t mode;
1: +};
1: +
1: +struct aa_secmark {
1: + u8 audit;
1: + u8 deny;
1: + u32 secid;
1: + char *label;
1: +};
1: +
1: +enum profile_mode {
1: + APPARMOR_ENFORCE = 0,
1: + APPARMOR_COMPLAIN = 1,
1: + APPARMOR_KILL = 2,
1: + APPARMOR_UNCONFINED = 3,
1: +};
1: +
1: +struct aa_data {
1: + char *key;
1: + u32 size;
1: + char *data;
1: + struct rhash_head head;
1: +};
1: +
1: +struct aa_ns_acct {
1: + int max_size;
1: + int max_count;
1: + int size;
1: + int count;
1: +};
1: +
1: +struct aa_ns {
1: + struct aa_policy base;
1: + struct aa_ns *parent;
1: + struct mutex lock;
1: + struct aa_ns_acct acct;
1: + struct aa_profile *unconfined;
1: + struct list_head sub_ns;
1: + atomic_t uniq_null;
1: + long int uniq_id;
1: + int level;
1: + long int revision;
1: + wait_queue_head_t wait;
1: + struct aa_labelset labels;
1: + struct list_head rawdata_list;
1: + struct dentry *dents[13];
1: +};
1: +
1: +struct aa_loaddata {
1: + struct kref count;
1: + struct list_head list;
1: + struct work_struct work;
1: + struct dentry *dents[6];
1: + struct aa_ns *ns;
1: + char *name;
1: + size_t size;
1: + size_t compressed_size;
1: + long int revision;
1: + int abi;
1: + unsigned char *hash;
1: + char *data;
1: +};
1: +
1: +enum {
1: + AAFS_LOADDATA_ABI = 0,
1: + AAFS_LOADDATA_REVISION = 1,
1: + AAFS_LOADDATA_HASH = 2,
1: + AAFS_LOADDATA_DATA = 3,
1: + AAFS_LOADDATA_COMPRESSED_SIZE = 4,
1: + AAFS_LOADDATA_DIR = 5,
1: + AAFS_LOADDATA_NDENTS = 6,
1: +};
1: +
1: +struct rawdata_f_data {
1: + struct aa_loaddata *loaddata;
1: +};
1: +
1: +struct aa_revision {
1: + struct aa_ns *ns;
1: + long int last_read;
1: +};
1: +
1: +struct multi_transaction {
1: + struct kref count;
1: + ssize_t size;
1: + char data[0];
1: +};
1: +
1: +struct apparmor_audit_data {
1: + int error;
1: + int type;
1: + const char *op;
1: + struct aa_label *label;
1: + const char *name;
1: + const char *info;
1: + u32 request;
1: + u32 denied;
1: + union {
1: + struct {
1: + struct aa_label *peer;
1: + union {
1: + struct {
1: + const char *target;
1: + kuid_t ouid;
1: + } fs;
1: + struct {
1: + int rlim;
1: + long unsigned int max;
1: + } rlim;
1: + struct {
1: + int signal;
1: + int unmappedsig;
1: + };
1: + struct {
1: + int type;
1: + int protocol;
1: + struct sock *peer_sk;
1: + void *addr;
1: + int addrlen;
1: + } net;
1: + };
1: + };
1: + struct {
1: + struct aa_profile *profile;
1: + const char *ns;
1: + long int pos;
1: + } iface;
1: + struct {
1: + const char *src_name;
1: + const char *type;
1: + const char *trans;
1: + const char *data;
1: + long unsigned int flags;
1: + } mnt;
1: + };
1: +};
1: +
1: +enum audit_type {
1: + AUDIT_APPARMOR_AUDIT = 0,
1: + AUDIT_APPARMOR_ALLOWED = 1,
1: + AUDIT_APPARMOR_DENIED = 2,
1: + AUDIT_APPARMOR_HINT = 3,
1: + AUDIT_APPARMOR_STATUS = 4,
1: + AUDIT_APPARMOR_ERROR = 5,
1: + AUDIT_APPARMOR_KILL = 6,
1: + AUDIT_APPARMOR_AUTO = 7,
1: +};
1: +
1: +struct aa_audit_rule {
1: + struct aa_label *label;
1: +};
1: +
1: +struct audit_cache {
1: + struct aa_profile *profile;
1: + kernel_cap_t caps;
1: +};
1: +
1: +struct aa_task_ctx {
1: + struct aa_label *nnp;
1: + struct aa_label *onexec;
1: + struct aa_label *previous;
1: + u64 token;
1: +};
1: +
1: +struct counted_str {
1: + struct kref count;
1: + char name[0];
1: +};
1: +
1: +struct match_workbuf {
1: + unsigned int count;
1: + unsigned int pos;
1: + unsigned int len;
1: + unsigned int size;
1: + unsigned int history[24];
1: +};
1: +
1: +enum path_flags {
1: + PATH_IS_DIR = 1,
1: + PATH_CONNECT_PATH = 4,
1: + PATH_CHROOT_REL = 8,
1: + PATH_CHROOT_NSCONNECT = 16,
1: + PATH_DELEGATE_DELETED = 32768,
1: + PATH_MEDIATE_DELETED = 65536,
1: +};
1: +
1: +struct aa_load_ent {
1: + struct list_head list;
1: + struct aa_profile *new;
1: + struct aa_profile *old;
1: + struct aa_profile *rename;
1: + const char *ns_name;
1: +};
1: +
1: +enum aa_code {
1: + AA_U8 = 0,
1: + AA_U16 = 1,
1: + AA_U32 = 2,
1: + AA_U64 = 3,
1: + AA_NAME = 4,
1: + AA_STRING = 5,
1: + AA_BLOB = 6,
1: + AA_STRUCT = 7,
1: + AA_STRUCTEND = 8,
1: + AA_LIST = 9,
1: + AA_LISTEND = 10,
1: + AA_ARRAY = 11,
1: + AA_ARRAYEND = 12,
1: +};
1: +
1: +struct aa_ext {
1: + void *start;
1: + void *end;
1: + void *pos;
1: + u32 version;
1: +};
1: +
1: +struct aa_file_ctx {
1: + spinlock_t lock;
1: + struct aa_label *label;
1: + u32 allow;
1: +};
1: +
1: +struct aa_sk_ctx {
1: + struct aa_label *label;
1: + struct aa_label *peer;
1: +};
1: +
1: +union aa_buffer {
1: + struct list_head list;
1: + char buffer[1];
1: +};
1: +
1: +struct ptrace_relation {
1: + struct task_struct *tracer;
1: + struct task_struct *tracee;
1: + bool invalid;
1: + struct list_head node;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct access_report_info {
1: + struct callback_head work;
1: + const char *access;
1: + struct task_struct *target;
1: + struct task_struct *agent;
1: +};
1: +
1: +enum sid_policy_type {
1: + SIDPOL_DEFAULT = 0,
1: + SIDPOL_CONSTRAINED = 1,
1: + SIDPOL_ALLOWED = 2,
1: +};
1: +
1: +typedef union {
1: + kuid_t uid;
1: + kgid_t gid;
1: +} kid_t;
1: +
1: +enum setid_type {
1: + UID = 0,
1: + GID = 1,
1: +};
1: +
1: +struct setid_rule {
1: + struct hlist_node next;
1: + kid_t src_id;
1: + kid_t dst_id;
1: + enum setid_type type;
1: +};
1: +
1: +struct setid_ruleset {
1: + struct hlist_head rules[256];
1: + char *policy_str;
1: + struct callback_head rcu;
1: + enum setid_type type;
1: +};
1: +
1: +enum devcg_behavior {
1: + DEVCG_DEFAULT_NONE = 0,
1: + DEVCG_DEFAULT_ALLOW = 1,
1: + DEVCG_DEFAULT_DENY = 2,
1: +};
1: +
1: +struct dev_exception_item {
1: + u32 major;
1: + u32 minor;
1: + short int type;
1: + short int access;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct dev_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct list_head exceptions;
1: + enum devcg_behavior behavior;
1: +};
1: +
1: +struct altha_list_struct {
1: + struct path path;
1: + char *spath;
1: + char *spath_p;
1: + struct list_head list;
1: +};
1: +
1: +struct kiosk_list_struct {
1: + struct path path;
1: + struct list_head list;
1: +};
1: +
1: +enum kiosk_cmd {
1: + KIOSK_UNSPEC = 0,
1: + KIOSK_REQUEST = 1,
1: + KIOSK_REPLY = 2,
1: + KIOSK_CMD_LAST = 3,
1: +};
1: +
1: +enum kiosk_mode {
1: + KIOSK_PERMISSIVE = 0,
1: + KIOSK_NONSYSTEM = 1,
1: + KIOSK_MODE_LAST = 2,
1: +};
1: +
1: +enum kiosk_action {
1: + KIOSK_SET_MODE = 0,
1: + KIOSK_USERLIST_ADD = 1,
1: + KIOSK_USERLIST_DEL = 2,
1: + KIOSK_USER_LIST = 3,
1: +};
1: +
1: +enum kiosk_attrs {
1: + KIOSK_NOATTR = 0,
1: + KIOSK_ACTION = 1,
1: + KIOSK_DATA = 2,
1: + KIOSK_MAX_ATTR = 3,
1: +};
1: +
1: +enum integrity_status {
1: + INTEGRITY_PASS = 0,
1: + INTEGRITY_PASS_IMMUTABLE = 1,
1: + INTEGRITY_FAIL = 2,
1: + INTEGRITY_NOLABEL = 3,
1: + INTEGRITY_NOXATTRS = 4,
1: + INTEGRITY_UNKNOWN = 5,
1: +};
1: +
1: +struct ima_digest_data {
1: + u8 algo;
1: + u8 length;
1: + union {
1: + struct {
1: + u8 unused;
1: + u8 type;
1: + } sha1;
1: + struct {
1: + u8 type;
1: + u8 algo;
1: + } ng;
1: + u8 data[2];
1: + } xattr;
1: + u8 digest[0];
1: +};
1: +
1: +struct integrity_iint_cache {
1: + struct rb_node rb_node;
1: + struct mutex mutex;
1: + struct inode *inode;
1: + u64 version;
1: + long unsigned int flags;
1: + long unsigned int measured_pcrs;
1: + long unsigned int atomic_flags;
1: + enum integrity_status ima_file_status: 4;
1: + enum integrity_status ima_mmap_status: 4;
1: + enum integrity_status ima_bprm_status: 4;
1: + enum integrity_status ima_read_status: 4;
1: + enum integrity_status ima_creds_status: 4;
1: + enum integrity_status evm_status: 4;
1: + struct ima_digest_data *ima_hash;
1: +};
1: +
1: +struct modsig;
1: +
1: +struct asymmetric_key_id;
1: +
1: +struct public_key_signature {
1: + struct asymmetric_key_id *auth_ids[2];
1: + u8 *s;
1: + u32 s_size;
1: + u8 *digest;
1: + u8 digest_size;
1: + const char *pkey_algo;
1: + const char *hash_algo;
1: + const char *encoding;
1: + const void *data;
1: + unsigned int data_size;
1: +};
1: +
1: +struct asymmetric_key_id {
1: + short unsigned int len;
1: + unsigned char data[0];
1: +};
1: +
1: +struct signature_v2_hdr {
1: + uint8_t type;
1: + uint8_t version;
1: + uint8_t hash_algo;
1: + __be32 keyid;
1: + __be16 sig_size;
1: + uint8_t sig[0];
1: +} __attribute__((packed));
1: +
1: +struct tpm_digest {
1: + u16 alg_id;
1: + u8 digest[64];
1: +};
1: +
1: +struct evm_ima_xattr_data {
1: + u8 type;
1: + u8 data[0];
1: +};
1: +
1: +enum ima_show_type {
1: + IMA_SHOW_BINARY = 0,
1: + IMA_SHOW_BINARY_NO_FIELD_LEN = 1,
1: + IMA_SHOW_BINARY_OLD_STRING_FMT = 2,
1: + IMA_SHOW_ASCII = 3,
1: +};
1: +
1: +struct ima_event_data {
1: + struct integrity_iint_cache *iint;
1: + struct file *file;
1: + const unsigned char *filename;
1: + struct evm_ima_xattr_data *xattr_value;
1: + int xattr_len;
1: + const struct modsig *modsig;
1: + const char *violation;
1: + const void *buf;
1: + int buf_len;
1: +};
1: +
1: +struct ima_field_data {
1: + u8 *data;
1: + u32 len;
1: +};
1: +
1: +struct ima_template_field {
1: + const char field_id[16];
1: + int (*field_init)(struct ima_event_data *, struct ima_field_data *);
1: + void (*field_show)(struct seq_file *, enum ima_show_type, struct ima_field_data *);
1: +};
1: +
1: +struct ima_template_desc {
1: + struct list_head list;
1: + char *name;
1: + char *fmt;
1: + int num_fields;
1: + const struct ima_template_field **fields;
1: +};
1: +
1: +struct ima_template_entry {
1: + int pcr;
1: + struct tpm_digest *digests;
1: + struct ima_template_desc *template_desc;
1: + u32 template_data_len;
1: + struct ima_field_data template_data[0];
1: +};
1: +
1: +struct ima_queue_entry {
1: + struct hlist_node hnext;
1: + struct list_head later;
1: + struct ima_template_entry *entry;
1: +};
1: +
1: +struct ima_h_table {
1: + atomic_long_t len;
1: + atomic_long_t violations;
1: + struct hlist_head queue[1024];
1: +};
1: +
1: +enum ima_fs_flags {
1: + IMA_FS_BUSY = 0,
1: +};
1: +
1: +struct hwrng {
1: + const char *name;
1: + int (*init)(struct hwrng *);
1: + void (*cleanup)(struct hwrng *);
1: + int (*data_present)(struct hwrng *, int);
1: + int (*data_read)(struct hwrng *, u32 *);
1: + int (*read)(struct hwrng *, void *, size_t, bool);
1: + long unsigned int priv;
1: + short unsigned int quality;
1: + struct list_head list;
1: + struct kref ref;
1: + struct completion cleanup_done;
1: +};
1: +
1: +struct tpm_bank_info {
1: + u16 alg_id;
1: + u16 digest_size;
1: + u16 crypto_id;
1: +};
1: +
1: +struct tpm_chip;
1: +
1: +struct tpm_class_ops {
1: + unsigned int flags;
1: + const u8 req_complete_mask;
1: + const u8 req_complete_val;
1: + bool (*req_canceled)(struct tpm_chip *, u8);
1: + int (*recv)(struct tpm_chip *, u8 *, size_t);
1: + int (*send)(struct tpm_chip *, u8 *, size_t);
1: + void (*cancel)(struct tpm_chip *);
1: + u8 (*status)(struct tpm_chip *);
1: + void (*update_timeouts)(struct tpm_chip *, long unsigned int *);
1: + void (*update_durations)(struct tpm_chip *, long unsigned int *);
1: + int (*go_idle)(struct tpm_chip *);
1: + int (*cmd_ready)(struct tpm_chip *);
1: + int (*request_locality)(struct tpm_chip *, int);
1: + int (*relinquish_locality)(struct tpm_chip *, int);
1: + void (*clk_enable)(struct tpm_chip *, bool);
1: +};
1: +
1: +struct tpm_bios_log {
1: + void *bios_event_log;
1: + void *bios_event_log_end;
1: +};
1: +
1: +struct tpm_chip_seqops {
1: + struct tpm_chip *chip;
1: + const struct seq_operations *seqops;
1: +};
1: +
1: +struct tpm_space {
1: + u32 context_tbl[3];
1: + u8 *context_buf;
1: + u32 session_tbl[3];
1: + u8 *session_buf;
1: + u32 buf_size;
1: +};
1: +
1: +struct tpm_chip {
1: + struct device dev;
1: + struct device devs;
1: + struct cdev cdev;
1: + struct cdev cdevs;
1: + struct rw_semaphore ops_sem;
1: + const struct tpm_class_ops *ops;
1: + struct tpm_bios_log log;
1: + struct tpm_chip_seqops bin_log_seqops;
1: + struct tpm_chip_seqops ascii_log_seqops;
1: + unsigned int flags;
1: + int dev_num;
1: + long unsigned int is_open;
1: + char hwrng_name[64];
1: + struct hwrng hwrng;
1: + struct mutex tpm_mutex;
1: + long unsigned int timeout_a;
1: + long unsigned int timeout_b;
1: + long unsigned int timeout_c;
1: + long unsigned int timeout_d;
1: + bool timeout_adjusted;
1: + long unsigned int duration[4];
1: + bool duration_adjusted;
1: + struct dentry *bios_dir[3];
1: + const struct attribute_group *groups[3];
1: + unsigned int groups_cnt;
1: + u32 nr_allocated_banks;
1: + struct tpm_bank_info *allocated_banks;
1: + acpi_handle acpi_dev_handle;
1: + char ppi_version[4];
1: + struct tpm_space work_space;
1: + u32 last_cc;
1: + u32 nr_commands;
1: + u32 *cc_attrs_tbl;
1: + int locality;
1: +};
1: +
1: +enum evm_ima_xattr_type {
1: + IMA_XATTR_DIGEST = 1,
1: + EVM_XATTR_HMAC = 2,
1: + EVM_IMA_XATTR_DIGSIG = 3,
1: + IMA_XATTR_DIGEST_NG = 4,
1: + EVM_XATTR_PORTABLE_DIGSIG = 5,
1: + IMA_XATTR_LAST = 6,
1: +};
1: +
1: +enum ima_hooks {
1: + NONE = 0,
1: + FILE_CHECK = 1,
1: + MMAP_CHECK = 2,
1: + BPRM_CHECK = 3,
1: + CREDS_CHECK = 4,
1: + POST_SETATTR = 5,
1: + MODULE_CHECK = 6,
1: + FIRMWARE_CHECK = 7,
1: + KEXEC_KERNEL_CHECK = 8,
1: + KEXEC_INITRAMFS_CHECK = 9,
1: + POLICY_CHECK = 10,
1: + KEXEC_CMDLINE = 11,
1: + KEY_CHECK = 12,
1: + MAX_CHECK = 13,
1: +};
1: +
1: +enum tpm_algorithms {
1: + TPM_ALG_ERROR = 0,
1: + TPM_ALG_SHA1 = 4,
1: + TPM_ALG_KEYEDHASH = 8,
1: + TPM_ALG_SHA256 = 11,
1: + TPM_ALG_SHA384 = 12,
1: + TPM_ALG_SHA512 = 13,
1: + TPM_ALG_NULL = 16,
1: + TPM_ALG_SM3_256 = 18,
1: +};
1: +
1: +enum tpm_pcrs {
1: + TPM_PCR0 = 0,
1: + TPM_PCR8 = 8,
1: + TPM_PCR10 = 10,
1: +};
1: +
1: +struct ima_algo_desc {
1: + struct crypto_shash *tfm;
1: + enum hash_algo algo;
1: +};
1: +
1: +enum lsm_rule_types {
1: + LSM_OBJ_USER = 0,
1: + LSM_OBJ_ROLE = 1,
1: + LSM_OBJ_TYPE = 2,
1: + LSM_SUBJ_USER = 3,
1: + LSM_SUBJ_ROLE = 4,
1: + LSM_SUBJ_TYPE = 5,
1: +};
1: +
1: +enum policy_types {
1: + ORIGINAL_TCB = 1,
1: + DEFAULT_TCB = 2,
1: +};
1: +
1: +enum policy_rule_list {
1: + IMA_DEFAULT_POLICY = 1,
1: + IMA_CUSTOM_POLICY = 2,
1: +};
1: +
1: +struct ima_rule_opt_list {
1: + size_t count;
1: + char *items[0];
1: +};
1: +
1: +struct ima_rule_entry {
1: + struct list_head list;
1: + int action;
1: + unsigned int flags;
1: + enum ima_hooks func;
1: + int mask;
1: + long unsigned int fsmagic;
1: + uuid_t fsuuid;
1: + kuid_t uid;
1: + kuid_t fowner;
1: + bool (*uid_op)(kuid_t, kuid_t);
1: + bool (*fowner_op)(kuid_t, kuid_t);
1: + int pcr;
1: + struct {
1: + void *rule;
1: + char *args_p;
1: + int type;
1: + } lsm[6];
1: + char *fsname;
1: + struct ima_rule_opt_list *keyrings;
1: + struct ima_template_desc *template;
1: +};
1: +
1: +enum {
1: + Opt_measure = 0,
1: + Opt_dont_measure = 1,
1: + Opt_appraise = 2,
1: + Opt_dont_appraise = 3,
1: + Opt_audit = 4,
1: + Opt_hash___2 = 5,
1: + Opt_dont_hash = 6,
1: + Opt_obj_user = 7,
1: + Opt_obj_role = 8,
1: + Opt_obj_type = 9,
1: + Opt_subj_user = 10,
1: + Opt_subj_role = 11,
1: + Opt_subj_type = 12,
1: + Opt_func = 13,
1: + Opt_mask = 14,
1: + Opt_fsmagic = 15,
1: + Opt_fsname = 16,
1: + Opt_fsuuid = 17,
1: + Opt_uid_eq = 18,
1: + Opt_euid_eq = 19,
1: + Opt_fowner_eq = 20,
1: + Opt_uid_gt = 21,
1: + Opt_euid_gt = 22,
1: + Opt_fowner_gt = 23,
1: + Opt_uid_lt = 24,
1: + Opt_euid_lt = 25,
1: + Opt_fowner_lt = 26,
1: + Opt_appraise_type = 27,
1: + Opt_appraise_flag = 28,
1: + Opt_permit_directio = 29,
1: + Opt_pcr = 30,
1: + Opt_template = 31,
1: + Opt_keyrings = 32,
1: + Opt_err___7 = 33,
1: +};
1: +
1: +enum {
1: + mask_exec = 0,
1: + mask_write = 1,
1: + mask_read = 2,
1: + mask_append = 3,
1: +};
1: +
1: +struct ima_kexec_hdr {
1: + u16 version;
1: + u16 _reserved0;
1: + u32 _reserved1;
1: + u64 buffer_size;
1: + u64 count;
1: +};
1: +
1: +enum header_fields {
1: + HDR_PCR = 0,
1: + HDR_DIGEST = 1,
1: + HDR_TEMPLATE_NAME = 2,
1: + HDR_TEMPLATE_DATA = 3,
1: + HDR__LAST = 4,
1: +};
1: +
1: +enum data_formats {
1: + DATA_FMT_DIGEST = 0,
1: + DATA_FMT_DIGEST_WITH_ALGO = 1,
1: + DATA_FMT_STRING = 2,
1: + DATA_FMT_HEX = 3,
1: +};
1: +
1: +struct ima_key_entry {
1: + struct list_head list;
1: + void *payload;
1: + size_t payload_len;
1: + char *keyring_name;
1: +};
1: +
1: +struct evm_xattr {
1: + struct evm_ima_xattr_data data;
1: + u8 digest[20];
1: +};
1: +
1: +struct xattr_list {
1: + struct list_head list;
1: + char *name;
1: +};
1: +
1: +struct evm_digest {
1: + struct ima_digest_data hdr;
1: + char digest[64];
1: +};
1: +
1: +struct h_misc {
1: + long unsigned int ino;
1: + __u32 generation;
1: + uid_t uid;
1: + gid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +enum {
1: + CRYPTO_MSG_ALG_REQUEST = 0,
1: + CRYPTO_MSG_ALG_REGISTER = 1,
1: + CRYPTO_MSG_ALG_LOADED = 2,
1: +};
1: +
1: +struct crypto_larval {
1: + struct crypto_alg alg;
1: + struct crypto_alg *adult;
1: + struct completion completion;
1: + u32 mask;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct crypto_cipher {
1: + struct crypto_tfm base;
1: +};
1: +
1: +enum {
1: + CRYPTOA_UNSPEC = 0,
1: + CRYPTOA_ALG = 1,
1: + CRYPTOA_TYPE = 2,
1: + CRYPTOA_U32 = 3,
1: + __CRYPTOA_MAX = 4,
1: +};
1: +
1: +struct crypto_attr_alg {
1: + char name[128];
1: +};
1: +
1: +struct crypto_attr_type {
1: + u32 type;
1: + u32 mask;
1: +};
1: +
1: +struct crypto_attr_u32 {
1: + u32 num;
1: +};
1: +
1: +struct rtattr {
1: + short unsigned int rta_len;
1: + short unsigned int rta_type;
1: +};
1: +
1: +struct crypto_queue {
1: + struct list_head list;
1: + struct list_head *backlog;
1: + unsigned int qlen;
1: + unsigned int max_qlen;
1: +};
1: +
1: +enum {
1: + NAPI_STATE_SCHED = 0,
1: + NAPI_STATE_MISSED = 1,
1: + NAPI_STATE_DISABLE = 2,
1: + NAPI_STATE_NPSVC = 3,
1: + NAPI_STATE_LISTED = 4,
1: + NAPI_STATE_NO_BUSY_POLL = 5,
1: + NAPI_STATE_IN_BUSY_POLL = 6,
1: +};
1: +
1: +enum bpf_xdp_mode {
1: + XDP_MODE_SKB = 0,
1: + XDP_MODE_DRV = 1,
1: + XDP_MODE_HW = 2,
1: + __MAX_XDP_MODE = 3,
1: +};
1: +
1: +enum {
1: + NETIF_MSG_DRV_BIT = 0,
1: + NETIF_MSG_PROBE_BIT = 1,
1: + NETIF_MSG_LINK_BIT = 2,
1: + NETIF_MSG_TIMER_BIT = 3,
1: + NETIF_MSG_IFDOWN_BIT = 4,
1: + NETIF_MSG_IFUP_BIT = 5,
1: + NETIF_MSG_RX_ERR_BIT = 6,
1: + NETIF_MSG_TX_ERR_BIT = 7,
1: + NETIF_MSG_TX_QUEUED_BIT = 8,
1: + NETIF_MSG_INTR_BIT = 9,
1: + NETIF_MSG_TX_DONE_BIT = 10,
1: + NETIF_MSG_RX_STATUS_BIT = 11,
1: + NETIF_MSG_PKTDATA_BIT = 12,
1: + NETIF_MSG_HW_BIT = 13,
1: + NETIF_MSG_WOL_BIT = 14,
1: + NETIF_MSG_CLASS_COUNT = 15,
1: +};
1: +
1: +struct scatter_walk {
1: + struct scatterlist *sg;
1: + unsigned int offset;
1: +};
1: +
1: +struct aead_request {
1: + struct crypto_async_request base;
1: + unsigned int assoclen;
1: + unsigned int cryptlen;
1: + u8 *iv;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_aead;
1: +
1: +struct aead_alg {
1: + int (*setkey)(struct crypto_aead *, const u8 *, unsigned int);
1: + int (*setauthsize)(struct crypto_aead *, unsigned int);
1: + int (*encrypt)(struct aead_request *);
1: + int (*decrypt)(struct aead_request *);
1: + int (*init)(struct crypto_aead *);
1: + void (*exit)(struct crypto_aead *);
1: + unsigned int ivsize;
1: + unsigned int maxauthsize;
1: + unsigned int chunksize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct crypto_aead {
1: + unsigned int authsize;
1: + unsigned int reqsize;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct aead_instance {
1: + void (*free)(struct aead_instance *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct aead_alg alg;
1: + };
1: +};
1: +
1: +struct crypto_aead_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +enum crypto_attr_type_t {
1: + CRYPTOCFGA_UNSPEC = 0,
1: + CRYPTOCFGA_PRIORITY_VAL = 1,
1: + CRYPTOCFGA_REPORT_LARVAL = 2,
1: + CRYPTOCFGA_REPORT_HASH = 3,
1: + CRYPTOCFGA_REPORT_BLKCIPHER = 4,
1: + CRYPTOCFGA_REPORT_AEAD = 5,
1: + CRYPTOCFGA_REPORT_COMPRESS = 6,
1: + CRYPTOCFGA_REPORT_RNG = 7,
1: + CRYPTOCFGA_REPORT_CIPHER = 8,
1: + CRYPTOCFGA_REPORT_AKCIPHER = 9,
1: + CRYPTOCFGA_REPORT_KPP = 10,
1: + CRYPTOCFGA_REPORT_ACOMP = 11,
1: + CRYPTOCFGA_STAT_LARVAL = 12,
1: + CRYPTOCFGA_STAT_HASH = 13,
1: + CRYPTOCFGA_STAT_BLKCIPHER = 14,
1: + CRYPTOCFGA_STAT_AEAD = 15,
1: + CRYPTOCFGA_STAT_COMPRESS = 16,
1: + CRYPTOCFGA_STAT_RNG = 17,
1: + CRYPTOCFGA_STAT_CIPHER = 18,
1: + CRYPTOCFGA_STAT_AKCIPHER = 19,
1: + CRYPTOCFGA_STAT_KPP = 20,
1: + CRYPTOCFGA_STAT_ACOMP = 21,
1: + __CRYPTOCFGA_MAX = 22,
1: +};
1: +
1: +struct crypto_report_aead {
1: + char type[64];
1: + char geniv[64];
1: + unsigned int blocksize;
1: + unsigned int maxauthsize;
1: + unsigned int ivsize;
1: +};
1: +
1: +struct crypto_sync_skcipher;
1: +
1: +struct aead_geniv_ctx {
1: + spinlock_t lock;
1: + struct crypto_aead *child;
1: + struct crypto_sync_skcipher *sknull;
1: + u8 salt[0];
1: +};
1: +
1: +struct crypto_rng;
1: +
1: +struct rng_alg {
1: + int (*generate)(struct crypto_rng *, const u8 *, unsigned int, u8 *, unsigned int);
1: + int (*seed)(struct crypto_rng *, const u8 *, unsigned int);
1: + void (*set_ent)(struct crypto_rng *, const u8 *, unsigned int);
1: + unsigned int seedsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct crypto_rng {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct crypto_cipher_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +struct crypto_sync_skcipher {
1: + struct crypto_skcipher base;
1: +};
1: +
1: +struct skcipher_instance {
1: + void (*free)(struct skcipher_instance *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct skcipher_alg alg;
1: + };
1: +};
1: +
1: +struct crypto_skcipher_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +struct skcipher_walk {
1: + union {
1: + struct {
1: + struct page *page;
1: + long unsigned int offset;
1: + } phys;
1: + struct {
1: + u8 *page;
1: + void *addr;
1: + } virt;
1: + } src;
1: + union {
1: + struct {
1: + struct page *page;
1: + long unsigned int offset;
1: + } phys;
1: + struct {
1: + u8 *page;
1: + void *addr;
1: + } virt;
1: + } dst;
1: + struct scatter_walk in;
1: + unsigned int nbytes;
1: + struct scatter_walk out;
1: + unsigned int total;
1: + struct list_head buffers;
1: + u8 *page;
1: + u8 *buffer;
1: + u8 *oiv;
1: + void *iv;
1: + unsigned int ivsize;
1: + int flags;
1: + unsigned int blocksize;
1: + unsigned int stride;
1: + unsigned int alignmask;
1: +};
1: +
1: +struct skcipher_ctx_simple {
1: + struct crypto_cipher *cipher;
1: +};
1: +
1: +struct crypto_report_blkcipher {
1: + char type[64];
1: + char geniv[64];
1: + unsigned int blocksize;
1: + unsigned int min_keysize;
1: + unsigned int max_keysize;
1: + unsigned int ivsize;
1: +};
1: +
1: +enum {
1: + SKCIPHER_WALK_PHYS = 1,
1: + SKCIPHER_WALK_SLOW = 2,
1: + SKCIPHER_WALK_COPY = 4,
1: + SKCIPHER_WALK_DIFF = 8,
1: + SKCIPHER_WALK_SLEEP = 16,
1: +};
1: +
1: +struct skcipher_walk_buffer {
1: + struct list_head entry;
1: + struct scatter_walk dst;
1: + unsigned int len;
1: + u8 *data;
1: + u8 buffer[0];
1: +};
1: +
1: +struct ahash_alg {
1: + int (*init)(struct ahash_request *);
1: + int (*update)(struct ahash_request *);
1: + int (*final)(struct ahash_request *);
1: + int (*finup)(struct ahash_request *);
1: + int (*digest)(struct ahash_request *);
1: + int (*export)(struct ahash_request *, void *);
1: + int (*import)(struct ahash_request *, const void *);
1: + int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: + int (*init_tfm)(struct crypto_ahash *);
1: + void (*exit_tfm)(struct crypto_ahash *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct hash_alg_common halg;
1: +};
1: +
1: +struct crypto_hash_walk {
1: + char *data;
1: + unsigned int offset;
1: + unsigned int alignmask;
1: + struct page *pg;
1: + unsigned int entrylen;
1: + unsigned int total;
1: + struct scatterlist *sg;
1: + unsigned int flags;
1: +};
1: +
1: +struct ahash_instance {
1: + void (*free)(struct ahash_instance *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct {
1: + char head[256];
1: + struct crypto_instance base;
1: + } s;
1: + struct ahash_alg alg;
1: + };
1: +};
1: +
1: +struct crypto_ahash_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +struct crypto_report_hash {
1: + char type[64];
1: + unsigned int blocksize;
1: + unsigned int digestsize;
1: +};
1: +
1: +struct ahash_request_priv {
1: + crypto_completion_t complete;
1: + void *data;
1: + u8 *result;
1: + u32 flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *ubuf[0];
1: +};
1: +
1: +struct shash_instance {
1: + void (*free)(struct shash_instance *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct {
1: + char head[256];
1: + struct crypto_instance base;
1: + } s;
1: + struct shash_alg alg;
1: + };
1: +};
1: +
1: +struct crypto_shash_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +struct crypto_report_akcipher {
1: + char type[64];
1: +};
1: +
1: +struct akcipher_request {
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int src_len;
1: + unsigned int dst_len;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_akcipher {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct akcipher_alg {
1: + int (*sign)(struct akcipher_request *);
1: + int (*verify)(struct akcipher_request *);
1: + int (*encrypt)(struct akcipher_request *);
1: + int (*decrypt)(struct akcipher_request *);
1: + int (*set_pub_key)(struct crypto_akcipher *, const void *, unsigned int);
1: + int (*set_priv_key)(struct crypto_akcipher *, const void *, unsigned int);
1: + unsigned int (*max_size)(struct crypto_akcipher *);
1: + int (*init)(struct crypto_akcipher *);
1: + void (*exit)(struct crypto_akcipher *);
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct akcipher_instance {
1: + void (*free)(struct akcipher_instance *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct akcipher_alg alg;
1: + };
1: +};
1: +
1: +struct crypto_akcipher_spawn {
1: + struct crypto_spawn base;
1: +};
1: +
1: +struct crypto_report_kpp {
1: + char type[64];
1: +};
1: +
1: +struct kpp_request {
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int src_len;
1: + unsigned int dst_len;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_kpp {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct kpp_alg {
1: + int (*set_secret)(struct crypto_kpp *, const void *, unsigned int);
1: + int (*generate_public_key)(struct kpp_request *);
1: + int (*compute_shared_secret)(struct kpp_request *);
1: + unsigned int (*max_size)(struct crypto_kpp *);
1: + int (*init)(struct crypto_kpp *);
1: + void (*exit)(struct crypto_kpp *);
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +enum asn1_class {
1: + ASN1_UNIV = 0,
1: + ASN1_APPL = 1,
1: + ASN1_CONT = 2,
1: + ASN1_PRIV = 3,
1: +};
1: +
1: +enum asn1_method {
1: + ASN1_PRIM = 0,
1: + ASN1_CONS = 1,
1: +};
1: +
1: +enum asn1_tag {
1: + ASN1_EOC = 0,
1: + ASN1_BOOL = 1,
1: + ASN1_INT = 2,
1: + ASN1_BTS = 3,
1: + ASN1_OTS = 4,
1: + ASN1_NULL = 5,
1: + ASN1_OID = 6,
1: + ASN1_ODE = 7,
1: + ASN1_EXT = 8,
1: + ASN1_REAL = 9,
1: + ASN1_ENUM = 10,
1: + ASN1_EPDV = 11,
1: + ASN1_UTF8STR = 12,
1: + ASN1_RELOID = 13,
1: + ASN1_SEQ = 16,
1: + ASN1_SET = 17,
1: + ASN1_NUMSTR = 18,
1: + ASN1_PRNSTR = 19,
1: + ASN1_TEXSTR = 20,
1: + ASN1_VIDSTR = 21,
1: + ASN1_IA5STR = 22,
1: + ASN1_UNITIM = 23,
1: + ASN1_GENTIM = 24,
1: + ASN1_GRASTR = 25,
1: + ASN1_VISSTR = 26,
1: + ASN1_GENSTR = 27,
1: + ASN1_UNISTR = 28,
1: + ASN1_CHRSTR = 29,
1: + ASN1_BMPSTR = 30,
1: + ASN1_LONG_TAG = 31,
1: +};
1: +
1: +typedef int (*asn1_action_t)(void *, size_t, unsigned char, const void *, size_t);
1: +
1: +struct asn1_decoder {
1: + const unsigned char *machine;
1: + size_t machlen;
1: + const asn1_action_t *actions;
1: +};
1: +
1: +enum asn1_opcode {
1: + ASN1_OP_MATCH = 0,
1: + ASN1_OP_MATCH_OR_SKIP = 1,
1: + ASN1_OP_MATCH_ACT = 2,
1: + ASN1_OP_MATCH_ACT_OR_SKIP = 3,
1: + ASN1_OP_MATCH_JUMP = 4,
1: + ASN1_OP_MATCH_JUMP_OR_SKIP = 5,
1: + ASN1_OP_MATCH_ANY = 8,
1: + ASN1_OP_MATCH_ANY_OR_SKIP = 9,
1: + ASN1_OP_MATCH_ANY_ACT = 10,
1: + ASN1_OP_MATCH_ANY_ACT_OR_SKIP = 11,
1: + ASN1_OP_COND_MATCH_OR_SKIP = 17,
1: + ASN1_OP_COND_MATCH_ACT_OR_SKIP = 19,
1: + ASN1_OP_COND_MATCH_JUMP_OR_SKIP = 21,
1: + ASN1_OP_COND_MATCH_ANY = 24,
1: + ASN1_OP_COND_MATCH_ANY_OR_SKIP = 25,
1: + ASN1_OP_COND_MATCH_ANY_ACT = 26,
1: + ASN1_OP_COND_MATCH_ANY_ACT_OR_SKIP = 27,
1: + ASN1_OP_COND_FAIL = 28,
1: + ASN1_OP_COMPLETE = 29,
1: + ASN1_OP_ACT = 30,
1: + ASN1_OP_MAYBE_ACT = 31,
1: + ASN1_OP_END_SEQ = 32,
1: + ASN1_OP_END_SET = 33,
1: + ASN1_OP_END_SEQ_OF = 34,
1: + ASN1_OP_END_SET_OF = 35,
1: + ASN1_OP_END_SEQ_ACT = 36,
1: + ASN1_OP_END_SET_ACT = 37,
1: + ASN1_OP_END_SEQ_OF_ACT = 38,
1: + ASN1_OP_END_SET_OF_ACT = 39,
1: + ASN1_OP_RETURN = 40,
1: + ASN1_OP__NR = 41,
1: +};
1: +
1: +enum rsapubkey_actions {
1: + ACT_rsa_get_e = 0,
1: + ACT_rsa_get_n = 1,
1: + NR__rsapubkey_actions = 2,
1: +};
1: +
1: +enum rsaprivkey_actions {
1: + ACT_rsa_get_d = 0,
1: + ACT_rsa_get_dp = 1,
1: + ACT_rsa_get_dq = 2,
1: + ACT_rsa_get_e___2 = 3,
1: + ACT_rsa_get_n___2 = 4,
1: + ACT_rsa_get_p = 5,
1: + ACT_rsa_get_q = 6,
1: + ACT_rsa_get_qinv = 7,
1: + NR__rsaprivkey_actions = 8,
1: +};
1: +
1: +typedef long unsigned int mpi_limb_t;
1: +
1: +struct gcry_mpi {
1: + int alloced;
1: + int nlimbs;
1: + int nbits;
1: + int sign;
1: + unsigned int flags;
1: + mpi_limb_t *d;
1: +};
1: +
1: +typedef struct gcry_mpi *MPI;
1: +
1: +struct rsa_key {
1: + const u8 *n;
1: + const u8 *e;
1: + const u8 *d;
1: + const u8 *p;
1: + const u8 *q;
1: + const u8 *dp;
1: + const u8 *dq;
1: + const u8 *qinv;
1: + size_t n_sz;
1: + size_t e_sz;
1: + size_t d_sz;
1: + size_t p_sz;
1: + size_t q_sz;
1: + size_t dp_sz;
1: + size_t dq_sz;
1: + size_t qinv_sz;
1: +};
1: +
1: +struct rsa_mpi_key {
1: + MPI n;
1: + MPI e;
1: + MPI d;
1: +};
1: +
1: +struct asn1_decoder___2;
1: +
1: +struct rsa_asn1_template {
1: + const char *name;
1: + const u8 *data;
1: + size_t size;
1: +};
1: +
1: +struct pkcs1pad_ctx {
1: + struct crypto_akcipher *child;
1: + unsigned int key_size;
1: +};
1: +
1: +struct pkcs1pad_inst_ctx {
1: + struct crypto_akcipher_spawn spawn;
1: + const struct rsa_asn1_template *digest_info;
1: +};
1: +
1: +struct pkcs1pad_request {
1: + struct scatterlist in_sg[2];
1: + struct scatterlist out_sg[1];
1: + uint8_t *in_buf;
1: + uint8_t *out_buf;
1: + long: 64;
1: + long: 64;
1: + struct akcipher_request child_req;
1: +};
1: +
1: +struct crypto_report_acomp {
1: + char type[64];
1: +};
1: +
1: +struct acomp_req {
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int slen;
1: + unsigned int dlen;
1: + u32 flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_acomp {
1: + int (*compress)(struct acomp_req *);
1: + int (*decompress)(struct acomp_req *);
1: + void (*dst_free)(struct scatterlist *);
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct acomp_alg {
1: + int (*compress)(struct acomp_req *);
1: + int (*decompress)(struct acomp_req *);
1: + void (*dst_free)(struct scatterlist *);
1: + int (*init)(struct crypto_acomp *);
1: + void (*exit)(struct crypto_acomp *);
1: + unsigned int reqsize;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct crypto_report_comp {
1: + char type[64];
1: +};
1: +
1: +struct crypto_scomp {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct scomp_alg {
1: + void * (*alloc_ctx)(struct crypto_scomp *);
1: + void (*free_ctx)(struct crypto_scomp *, void *);
1: + int (*compress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *, unsigned int *, void *);
1: + int (*decompress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *, unsigned int *, void *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct scomp_scratch {
1: + spinlock_t lock;
1: + void *src;
1: + void *dst;
1: +};
1: +
1: +struct cryptomgr_param {
1: + struct rtattr *tb[34];
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_type data;
1: + } type;
1: + union {
1: + struct rtattr attr;
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_alg data;
1: + } alg;
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_u32 data;
1: + } nu32;
1: + } attrs[32];
1: + char template[128];
1: + struct crypto_larval *larval;
1: + u32 otype;
1: + u32 omask;
1: +};
1: +
1: +struct crypto_test_param {
1: + char driver[128];
1: + char alg[128];
1: + u32 type;
1: +};
1: +
1: +struct hmac_ctx {
1: + struct crypto_shash *hash;
1: +};
1: +
1: +struct md5_state {
1: + u32 hash[4];
1: + u32 block[16];
1: + u64 byte_count;
1: +};
1: +
1: +struct sha1_state {
1: + u32 state[5];
1: + u64 count;
1: + u8 buffer[64];
1: +};
1: +
1: +typedef void sha1_block_fn(struct sha1_state *, const u8 *, int);
1: +
1: +struct sha256_state {
1: + u32 state[8];
1: + u64 count;
1: + u8 buf[64];
1: +};
1: +
1: +struct sha512_state {
1: + u64 state[8];
1: + u64 count[2];
1: + u8 buf[128];
1: +};
1: +
1: +typedef void sha512_block_fn(struct sha512_state *, const u8 *, int);
1: +
1: +typedef struct {
1: + u64 a;
1: + u64 b;
1: +} u128;
1: +
1: +typedef struct {
1: + __be64 a;
1: + __be64 b;
1: +} be128;
1: +
1: +typedef struct {
1: + __le64 b;
1: + __le64 a;
1: +} le128;
1: +
1: +struct gf128mul_4k {
1: + be128 t[256];
1: +};
1: +
1: +struct gf128mul_64k {
1: + struct gf128mul_4k *t[16];
1: +};
1: +
1: +struct crypto_cts_ctx {
1: + struct crypto_skcipher *child;
1: +};
1: +
1: +struct crypto_cts_reqctx {
1: + struct scatterlist sg[2];
1: + unsigned int offset;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct skcipher_request subreq;
1: +};
1: +
1: +struct xts_tfm_ctx {
1: + struct crypto_skcipher *child;
1: + struct crypto_cipher *tweak;
1: +};
1: +
1: +struct xts_instance_ctx {
1: + struct crypto_skcipher_spawn spawn;
1: + char name[128];
1: +};
1: +
1: +struct xts_request_ctx {
1: + le128 t;
1: + struct scatterlist *tail;
1: + struct scatterlist sg[2];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct skcipher_request subreq;
1: +};
1: +
1: +struct crypto_rfc3686_ctx {
1: + struct crypto_skcipher *child;
1: + u8 nonce[4];
1: +};
1: +
1: +struct crypto_rfc3686_req_ctx {
1: + u8 iv[16];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct skcipher_request subreq;
1: +};
1: +
1: +struct gcm_instance_ctx {
1: + struct crypto_skcipher_spawn ctr;
1: + struct crypto_ahash_spawn ghash;
1: +};
1: +
1: +struct crypto_gcm_ctx {
1: + struct crypto_skcipher *ctr;
1: + struct crypto_ahash *ghash;
1: +};
1: +
1: +struct crypto_rfc4106_ctx {
1: + struct crypto_aead *child;
1: + u8 nonce[4];
1: +};
1: +
1: +struct crypto_rfc4106_req_ctx {
1: + struct scatterlist src[3];
1: + struct scatterlist dst[3];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct aead_request subreq;
1: +};
1: +
1: +struct crypto_rfc4543_instance_ctx {
1: + struct crypto_aead_spawn aead;
1: +};
1: +
1: +struct crypto_rfc4543_ctx {
1: + struct crypto_aead *child;
1: + struct crypto_sync_skcipher *null;
1: + u8 nonce[4];
1: +};
1: +
1: +struct crypto_rfc4543_req_ctx {
1: + struct aead_request subreq;
1: +};
1: +
1: +struct crypto_gcm_ghash_ctx {
1: + unsigned int cryptlen;
1: + struct scatterlist *src;
1: + int (*complete)(struct aead_request *, u32);
1: +};
1: +
1: +struct crypto_gcm_req_priv_ctx {
1: + u8 iv[16];
1: + u8 auth_tag[16];
1: + u8 iauth_tag[16];
1: + struct scatterlist src[3];
1: + struct scatterlist dst[3];
1: + struct scatterlist sg;
1: + struct crypto_gcm_ghash_ctx ghash_ctx;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct ahash_request ahreq;
1: + struct skcipher_request skreq;
1: + } u;
1: +};
1: +
1: +struct crypto_aes_ctx {
1: + u32 key_enc[60];
1: + u32 key_dec[60];
1: + u32 key_length;
1: +};
1: +
1: +struct chksum_ctx {
1: + u32 key;
1: +};
1: +
1: +struct chksum_desc_ctx {
1: + u32 crc;
1: +};
1: +
1: +struct chksum_desc_ctx___2 {
1: + __u16 crc;
1: +};
1: +
1: +struct lzo_ctx {
1: + void *lzo_comp_mem;
1: +};
1: +
1: +struct lzorle_ctx {
1: + void *lzorle_comp_mem;
1: +};
1: +
1: +struct crypto_report_rng {
1: + char type[64];
1: + unsigned int seedsize;
1: +};
1: +
1: +struct random_ready_callback {
1: + struct list_head list;
1: + void (*func)(struct random_ready_callback *);
1: + struct module *owner;
1: +};
1: +
1: +struct drbg_string {
1: + const unsigned char *buf;
1: + size_t len;
1: + struct list_head list;
1: +};
1: +
1: +typedef uint32_t drbg_flag_t;
1: +
1: +struct drbg_core {
1: + drbg_flag_t flags;
1: + __u8 statelen;
1: + __u8 blocklen_bytes;
1: + char cra_name[128];
1: + char backend_cra_name[128];
1: +};
1: +
1: +struct drbg_state;
1: +
1: +struct drbg_state_ops {
1: + int (*update)(struct drbg_state *, struct list_head *, int);
1: + int (*generate)(struct drbg_state *, unsigned char *, unsigned int, struct list_head *);
1: + int (*crypto_init)(struct drbg_state *);
1: + int (*crypto_fini)(struct drbg_state *);
1: +};
1: +
1: +struct drbg_state {
1: + struct mutex drbg_mutex;
1: + unsigned char *V;
1: + unsigned char *Vbuf;
1: + unsigned char *C;
1: + unsigned char *Cbuf;
1: + size_t reseed_ctr;
1: + size_t reseed_threshold;
1: + unsigned char *scratchpad;
1: + unsigned char *scratchpadbuf;
1: + void *priv_data;
1: + struct crypto_skcipher *ctr_handle;
1: + struct skcipher_request *ctr_req;
1: + __u8 *outscratchpadbuf;
1: + __u8 *outscratchpad;
1: + struct crypto_wait ctr_wait;
1: + struct scatterlist sg_in;
1: + struct scatterlist sg_out;
1: + bool seeded;
1: + bool pr;
1: + bool fips_primed;
1: + unsigned char *prev;
1: + struct work_struct seed_work;
1: + struct crypto_rng *jent;
1: + const struct drbg_state_ops *d_ops;
1: + const struct drbg_core *core;
1: + struct drbg_string test_data;
1: + struct random_ready_callback random_ready;
1: +};
1: +
1: +enum drbg_prefixes {
1: + DRBG_PREFIX0 = 0,
1: + DRBG_PREFIX1 = 1,
1: + DRBG_PREFIX2 = 2,
1: + DRBG_PREFIX3 = 3,
1: +};
1: +
1: +struct sdesc {
1: + struct shash_desc shash;
1: + char ctx[0];
1: +};
1: +
1: +struct s {
1: + __be32 conv;
1: +};
1: +
1: +struct rand_data {
1: + __u64 data;
1: + __u64 old_data;
1: + __u64 prev_time;
1: + __u64 last_delta;
1: + __s64 last_delta2;
1: + unsigned int osr;
1: + unsigned char *mem;
1: + unsigned int memlocation;
1: + unsigned int memblocks;
1: + unsigned int memblocksize;
1: + unsigned int memaccessloops;
1: + int rct_count;
1: + unsigned int apt_observations;
1: + unsigned int apt_count;
1: + unsigned int apt_base;
1: + unsigned int apt_base_set: 1;
1: + unsigned int health_failure: 1;
1: +};
1: +
1: +struct rand_data___2;
1: +
1: +struct jitterentropy {
1: + spinlock_t jent_lock;
1: + struct rand_data___2 *entropy_collector;
1: + unsigned int reset_cnt;
1: +};
1: +
1: +struct ghash_ctx {
1: + struct gf128mul_4k *gf128;
1: +};
1: +
1: +struct ghash_desc_ctx {
1: + u8 buffer[16];
1: + u32 bytes;
1: +};
1: +
1: +typedef enum {
1: + ZSTD_fast = 0,
1: + ZSTD_dfast = 1,
1: + ZSTD_greedy = 2,
1: + ZSTD_lazy = 3,
1: + ZSTD_lazy2 = 4,
1: + ZSTD_btlazy2 = 5,
1: + ZSTD_btopt = 6,
1: + ZSTD_btopt2 = 7,
1: +} ZSTD_strategy;
1: +
1: +typedef struct {
1: + unsigned int windowLog;
1: + unsigned int chainLog;
1: + unsigned int hashLog;
1: + unsigned int searchLog;
1: + unsigned int searchLength;
1: + unsigned int targetLength;
1: + ZSTD_strategy strategy;
1: +} ZSTD_compressionParameters;
1: +
1: +typedef struct {
1: + unsigned int contentSizeFlag;
1: + unsigned int checksumFlag;
1: + unsigned int noDictIDFlag;
1: +} ZSTD_frameParameters;
1: +
1: +typedef struct {
1: + ZSTD_compressionParameters cParams;
1: + ZSTD_frameParameters fParams;
1: +} ZSTD_parameters;
1: +
1: +struct ZSTD_CCtx_s;
1: +
1: +typedef struct ZSTD_CCtx_s ZSTD_CCtx;
1: +
1: +struct ZSTD_DCtx_s;
1: +
1: +typedef struct ZSTD_DCtx_s ZSTD_DCtx;
1: +
1: +struct zstd_ctx {
1: + ZSTD_CCtx *cctx;
1: + ZSTD_DCtx *dctx;
1: + void *cwksp;
1: + void *dwksp;
1: +};
1: +
1: +enum asymmetric_payload_bits {
1: + asym_crypto = 0,
1: + asym_subtype = 1,
1: + asym_key_ids = 2,
1: + asym_auth = 3,
1: +};
1: +
1: +struct asymmetric_key_ids {
1: + void *id[2];
1: +};
1: +
1: +struct asymmetric_key_subtype {
1: + struct module *owner;
1: + const char *name;
1: + short unsigned int name_len;
1: + void (*describe)(const struct key *, struct seq_file *);
1: + void (*destroy)(void *, void *);
1: + int (*query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: + int (*eds_op)(struct kernel_pkey_params *, const void *, void *);
1: + int (*verify_signature)(const struct key *, const struct public_key_signature *);
1: +};
1: +
1: +struct asymmetric_key_parser {
1: + struct list_head link;
1: + struct module *owner;
1: + const char *name;
1: + int (*parse)(struct key_preparsed_payload *);
1: +};
1: +
1: +enum OID {
1: + OID_id_dsa_with_sha1 = 0,
1: + OID_id_dsa = 1,
1: + OID_id_ecdsa_with_sha1 = 2,
1: + OID_id_ecPublicKey = 3,
1: + OID_rsaEncryption = 4,
1: + OID_md2WithRSAEncryption = 5,
1: + OID_md3WithRSAEncryption = 6,
1: + OID_md4WithRSAEncryption = 7,
1: + OID_sha1WithRSAEncryption = 8,
1: + OID_sha256WithRSAEncryption = 9,
1: + OID_sha384WithRSAEncryption = 10,
1: + OID_sha512WithRSAEncryption = 11,
1: + OID_sha224WithRSAEncryption = 12,
1: + OID_data = 13,
1: + OID_signed_data = 14,
1: + OID_email_address = 15,
1: + OID_contentType = 16,
1: + OID_messageDigest = 17,
1: + OID_signingTime = 18,
1: + OID_smimeCapabilites = 19,
1: + OID_smimeAuthenticatedAttrs = 20,
1: + OID_md2 = 21,
1: + OID_md4 = 22,
1: + OID_md5 = 23,
1: + OID_msIndirectData = 24,
1: + OID_msStatementType = 25,
1: + OID_msSpOpusInfo = 26,
1: + OID_msPeImageDataObjId = 27,
1: + OID_msIndividualSPKeyPurpose = 28,
1: + OID_msOutlookExpress = 29,
1: + OID_certAuthInfoAccess = 30,
1: + OID_sha1 = 31,
1: + OID_sha256 = 32,
1: + OID_sha384 = 33,
1: + OID_sha512 = 34,
1: + OID_sha224 = 35,
1: + OID_commonName = 36,
1: + OID_surname = 37,
1: + OID_countryName = 38,
1: + OID_locality = 39,
1: + OID_stateOrProvinceName = 40,
1: + OID_organizationName = 41,
1: + OID_organizationUnitName = 42,
1: + OID_title = 43,
1: + OID_description = 44,
1: + OID_name = 45,
1: + OID_givenName = 46,
1: + OID_initials = 47,
1: + OID_generationalQualifier = 48,
1: + OID_subjectKeyIdentifier = 49,
1: + OID_keyUsage = 50,
1: + OID_subjectAltName = 51,
1: + OID_issuerAltName = 52,
1: + OID_basicConstraints = 53,
1: + OID_crlDistributionPoints = 54,
1: + OID_certPolicies = 55,
1: + OID_authorityKeyIdentifier = 56,
1: + OID_extKeyUsage = 57,
1: + OID_gostCPSignA = 58,
1: + OID_gostCPSignB = 59,
1: + OID_gostCPSignC = 60,
1: + OID_gost2012PKey256 = 61,
1: + OID_gost2012PKey512 = 62,
1: + OID_gost2012Digest256 = 63,
1: + OID_gost2012Digest512 = 64,
1: + OID_gost2012Signature256 = 65,
1: + OID_gost2012Signature512 = 66,
1: + OID_gostTC26Sign256A = 67,
1: + OID_gostTC26Sign256B = 68,
1: + OID_gostTC26Sign256C = 69,
1: + OID_gostTC26Sign256D = 70,
1: + OID_gostTC26Sign512A = 71,
1: + OID_gostTC26Sign512B = 72,
1: + OID_gostTC26Sign512C = 73,
1: + OID_sm2 = 74,
1: + OID_sm3 = 75,
1: + OID_SM2_with_SM3 = 76,
1: + OID_sm3WithRSAEncryption = 77,
1: + OID__NR = 78,
1: +};
1: +
1: +struct public_key {
1: + void *key;
1: + u32 keylen;
1: + enum OID algo;
1: + void *params;
1: + u32 paramlen;
1: + bool key_is_private;
1: + const char *id_type;
1: + const char *pkey_algo;
1: +};
1: +
1: +enum x509_actions {
1: + ACT_x509_extract_key_data = 0,
1: + ACT_x509_extract_name_segment = 1,
1: + ACT_x509_note_OID = 2,
1: + ACT_x509_note_issuer = 3,
1: + ACT_x509_note_not_after = 4,
1: + ACT_x509_note_not_before = 5,
1: + ACT_x509_note_params = 6,
1: + ACT_x509_note_pkey_algo = 7,
1: + ACT_x509_note_serial = 8,
1: + ACT_x509_note_signature = 9,
1: + ACT_x509_note_subject = 10,
1: + ACT_x509_note_tbs_certificate = 11,
1: + ACT_x509_process_extension = 12,
1: + NR__x509_actions = 13,
1: +};
1: +
1: +enum x509_akid_actions {
1: + ACT_x509_akid_note_kid = 0,
1: + ACT_x509_akid_note_name = 1,
1: + ACT_x509_akid_note_serial = 2,
1: + ACT_x509_extract_name_segment___2 = 3,
1: + ACT_x509_note_OID___2 = 4,
1: + NR__x509_akid_actions = 5,
1: +};
1: +
1: +struct x509_certificate {
1: + struct x509_certificate *next;
1: + struct x509_certificate *signer;
1: + struct public_key *pub;
1: + struct public_key_signature *sig;
1: + char *issuer;
1: + char *subject;
1: + struct asymmetric_key_id *id;
1: + struct asymmetric_key_id *skid;
1: + time64_t valid_from;
1: + time64_t valid_to;
1: + const void *tbs;
1: + unsigned int tbs_size;
1: + unsigned int raw_sig_size;
1: + const void *raw_sig;
1: + const void *raw_serial;
1: + unsigned int raw_serial_size;
1: + unsigned int raw_issuer_size;
1: + const void *raw_issuer;
1: + const void *raw_subject;
1: + unsigned int raw_subject_size;
1: + unsigned int raw_skid_size;
1: + const void *raw_skid;
1: + unsigned int index;
1: + bool seen;
1: + bool verified;
1: + bool self_signed;
1: + bool unsupported_key;
1: + bool unsupported_sig;
1: + bool blacklisted;
1: +};
1: +
1: +struct x509_parse_context {
1: + struct x509_certificate *cert;
1: + long unsigned int data;
1: + const void *cert_start;
1: + const void *key;
1: + size_t key_size;
1: + const void *params;
1: + size_t params_size;
1: + enum OID key_algo;
1: + enum OID last_oid;
1: + enum OID algo_oid;
1: + unsigned char nr_mpi;
1: + u8 o_size;
1: + u8 cn_size;
1: + u8 email_size;
1: + u16 o_offset;
1: + u16 cn_offset;
1: + u16 email_offset;
1: + unsigned int raw_akid_size;
1: + const void *raw_akid;
1: + const void *akid_raw_issuer;
1: + unsigned int akid_raw_issuer_size;
1: +};
1: +
1: +enum pkcs7_actions {
1: + ACT_pkcs7_check_content_type = 0,
1: + ACT_pkcs7_extract_cert = 1,
1: + ACT_pkcs7_note_OID = 2,
1: + ACT_pkcs7_note_certificate_list = 3,
1: + ACT_pkcs7_note_content = 4,
1: + ACT_pkcs7_note_data = 5,
1: + ACT_pkcs7_note_signed_info = 6,
1: + ACT_pkcs7_note_signeddata_version = 7,
1: + ACT_pkcs7_note_signerinfo_version = 8,
1: + ACT_pkcs7_sig_note_authenticated_attr = 9,
1: + ACT_pkcs7_sig_note_digest_algo = 10,
1: + ACT_pkcs7_sig_note_issuer = 11,
1: + ACT_pkcs7_sig_note_pkey_algo = 12,
1: + ACT_pkcs7_sig_note_serial = 13,
1: + ACT_pkcs7_sig_note_set_of_authattrs = 14,
1: + ACT_pkcs7_sig_note_signature = 15,
1: + ACT_pkcs7_sig_note_skid = 16,
1: + NR__pkcs7_actions = 17,
1: +};
1: +
1: +struct pkcs7_signed_info {
1: + struct pkcs7_signed_info *next;
1: + struct x509_certificate *signer;
1: + unsigned int index;
1: + bool unsupported_crypto;
1: + bool blacklisted;
1: + const void *msgdigest;
1: + unsigned int msgdigest_len;
1: + unsigned int authattrs_len;
1: + const void *authattrs;
1: + long unsigned int aa_set;
1: + time64_t signing_time;
1: + struct public_key_signature *sig;
1: +};
1: +
1: +struct pkcs7_message___2 {
1: + struct x509_certificate *certs;
1: + struct x509_certificate *crl;
1: + struct pkcs7_signed_info *signed_infos;
1: + u8 version;
1: + bool have_authattrs;
1: + enum OID data_type;
1: + size_t data_len;
1: + size_t data_hdrlen;
1: + const void *data;
1: +};
1: +
1: +struct pkcs7_parse_context {
1: + struct pkcs7_message___2 *msg;
1: + struct pkcs7_signed_info *sinfo;
1: + struct pkcs7_signed_info **ppsinfo;
1: + struct x509_certificate *certs;
1: + struct x509_certificate **ppcerts;
1: + long unsigned int data;
1: + enum OID last_oid;
1: + unsigned int x509_index;
1: + unsigned int sinfo_index;
1: + const void *raw_serial;
1: + unsigned int raw_serial_size;
1: + unsigned int raw_issuer_size;
1: + const void *raw_issuer;
1: + const void *raw_skid;
1: + unsigned int raw_skid_size;
1: + bool expect_skid;
1: +};
1: +
1: +struct biovec_slab {
1: + int nr_vecs;
1: + char *name;
1: + struct kmem_cache *slab;
1: +};
1: +
1: +enum rq_qos_id {
1: + RQ_QOS_WBT = 0,
1: + RQ_QOS_LATENCY = 1,
1: + RQ_QOS_COST = 2,
1: +};
1: +
1: +struct rq_qos_ops;
1: +
1: +struct rq_qos {
1: + struct rq_qos_ops *ops;
1: + struct request_queue *q;
1: + enum rq_qos_id id;
1: + struct rq_qos *next;
1: +};
1: +
1: +enum hctx_type {
1: + HCTX_TYPE_DEFAULT = 0,
1: + HCTX_TYPE_READ = 1,
1: + HCTX_TYPE_POLL = 2,
1: + HCTX_MAX_TYPES = 3,
1: +};
1: +
1: +struct blk_mq_debugfs_attr;
1: +
1: +struct rq_qos_ops {
1: + void (*throttle)(struct rq_qos *, struct bio *);
1: + void (*track)(struct rq_qos *, struct request *, struct bio *);
1: + void (*merge)(struct rq_qos *, struct request *, struct bio *);
1: + void (*issue)(struct rq_qos *, struct request *);
1: + void (*requeue)(struct rq_qos *, struct request *);
1: + void (*done)(struct rq_qos *, struct request *);
1: + void (*done_bio)(struct rq_qos *, struct bio *);
1: + void (*cleanup)(struct rq_qos *, struct bio *);
1: + void (*queue_depth_changed)(struct rq_qos *);
1: + void (*exit)(struct rq_qos *);
1: + const struct blk_mq_debugfs_attr *debugfs_attrs;
1: +};
1: +
1: +struct bio_slab {
1: + struct kmem_cache *slab;
1: + unsigned int slab_ref;
1: + unsigned int slab_size;
1: + char name[8];
1: +};
1: +
1: +enum {
1: + BLK_MQ_F_SHOULD_MERGE = 1,
1: + BLK_MQ_F_TAG_QUEUE_SHARED = 2,
1: + BLK_MQ_F_STACKING = 4,
1: + BLK_MQ_F_TAG_HCTX_SHARED = 8,
1: + BLK_MQ_F_BLOCKING = 32,
1: + BLK_MQ_F_NO_SCHED = 64,
1: + BLK_MQ_F_ALLOC_POLICY_START_BIT = 8,
1: + BLK_MQ_F_ALLOC_POLICY_BITS = 1,
1: + BLK_MQ_S_STOPPED = 0,
1: + BLK_MQ_S_TAG_ACTIVE = 1,
1: + BLK_MQ_S_SCHED_RESTART = 2,
1: + BLK_MQ_S_INACTIVE = 3,
1: + BLK_MQ_MAX_DEPTH = 10240,
1: + BLK_MQ_CPU_WORK_BATCH = 8,
1: +};
1: +
1: +enum {
1: + WBT_RWQ_BG = 0,
1: + WBT_RWQ_KSWAPD = 1,
1: + WBT_RWQ_DISCARD = 2,
1: + WBT_NUM_RWQ = 3,
1: +};
1: +
1: +struct req_iterator {
1: + struct bvec_iter iter;
1: + struct bio *bio;
1: +};
1: +
1: +struct blk_plug_cb;
1: +
1: +typedef void (*blk_plug_cb_fn)(struct blk_plug_cb *, bool);
1: +
1: +struct blk_plug_cb {
1: + struct list_head list;
1: + blk_plug_cb_fn callback;
1: + void *data;
1: +};
1: +
1: +enum {
1: + BLK_MQ_REQ_NOWAIT = 1,
1: + BLK_MQ_REQ_RESERVED = 2,
1: + BLK_MQ_REQ_PM = 4,
1: +};
1: +
1: +struct trace_event_raw_block_buffer {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + size_t size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_rq_requeue {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_rq_complete {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + int error;
1: + char rwbs[8];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_rq {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + unsigned int bytes;
1: + char rwbs[8];
1: + char comm[16];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_bio_bounce {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_bio_complete {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + int error;
1: + char rwbs[8];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_bio_merge {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_bio_queue {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_get_rq {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_plug {
1: + struct trace_entry ent;
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_unplug {
1: + struct trace_entry ent;
1: + int nr_rq;
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_split {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + sector_t new_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_bio_remap {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + dev_t old_dev;
1: + sector_t old_sector;
1: + char rwbs[8];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_block_rq_remap {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + dev_t old_dev;
1: + sector_t old_sector;
1: + unsigned int nr_bios;
1: + char rwbs[8];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_block_buffer {};
1: +
1: +struct trace_event_data_offsets_block_rq_requeue {
1: + u32 cmd;
1: +};
1: +
1: +struct trace_event_data_offsets_block_rq_complete {
1: + u32 cmd;
1: +};
1: +
1: +struct trace_event_data_offsets_block_rq {
1: + u32 cmd;
1: +};
1: +
1: +struct trace_event_data_offsets_block_bio_bounce {};
1: +
1: +struct trace_event_data_offsets_block_bio_complete {};
1: +
1: +struct trace_event_data_offsets_block_bio_merge {};
1: +
1: +struct trace_event_data_offsets_block_bio_queue {};
1: +
1: +struct trace_event_data_offsets_block_get_rq {};
1: +
1: +struct trace_event_data_offsets_block_plug {};
1: +
1: +struct trace_event_data_offsets_block_unplug {};
1: +
1: +struct trace_event_data_offsets_block_split {};
1: +
1: +struct trace_event_data_offsets_block_bio_remap {};
1: +
1: +struct trace_event_data_offsets_block_rq_remap {};
1: +
1: +typedef void (*btf_trace_block_touch_buffer)(void *, struct buffer_head *);
1: +
1: +typedef void (*btf_trace_block_dirty_buffer)(void *, struct buffer_head *);
1: +
1: +typedef void (*btf_trace_block_rq_requeue)(void *, struct request_queue *, struct request *);
1: +
1: +typedef void (*btf_trace_block_rq_complete)(void *, struct request *, int, unsigned int);
1: +
1: +typedef void (*btf_trace_block_rq_insert)(void *, struct request_queue *, struct request *);
1: +
1: +typedef void (*btf_trace_block_rq_issue)(void *, struct request_queue *, struct request *);
1: +
1: +typedef void (*btf_trace_block_rq_merge)(void *, struct request_queue *, struct request *);
1: +
1: +typedef void (*btf_trace_block_bio_bounce)(void *, struct request_queue *, struct bio *);
1: +
1: +typedef void (*btf_trace_block_bio_complete)(void *, struct request_queue *, struct bio *);
1: +
1: +typedef void (*btf_trace_block_bio_backmerge)(void *, struct request_queue *, struct request *, struct bio *);
1: +
1: +typedef void (*btf_trace_block_bio_frontmerge)(void *, struct request_queue *, struct request *, struct bio *);
1: +
1: +typedef void (*btf_trace_block_bio_queue)(void *, struct request_queue *, struct bio *);
1: +
1: +typedef void (*btf_trace_block_getrq)(void *, struct request_queue *, struct bio *, int);
1: +
1: +typedef void (*btf_trace_block_sleeprq)(void *, struct request_queue *, struct bio *, int);
1: +
1: +typedef void (*btf_trace_block_plug)(void *, struct request_queue *);
1: +
1: +typedef void (*btf_trace_block_unplug)(void *, struct request_queue *, unsigned int, bool);
1: +
1: +typedef void (*btf_trace_block_split)(void *, struct request_queue *, struct bio *, unsigned int);
1: +
1: +typedef void (*btf_trace_block_bio_remap)(void *, struct request_queue *, struct bio *, dev_t, sector_t);
1: +
1: +typedef void (*btf_trace_block_rq_remap)(void *, struct request_queue *, struct request *, dev_t, sector_t);
1: +
1: +enum {
1: + BLK_MQ_NO_TAG = 4294967295,
1: + BLK_MQ_TAG_MIN = 1,
1: + BLK_MQ_TAG_MAX = 4294967294,
1: +};
1: +
1: +struct queue_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct request_queue *, char *);
1: + ssize_t (*store)(struct request_queue *, const char *, size_t);
1: +};
1: +
1: +enum {
1: + REQ_FSEQ_PREFLUSH = 1,
1: + REQ_FSEQ_DATA = 2,
1: + REQ_FSEQ_POSTFLUSH = 4,
1: + REQ_FSEQ_DONE = 8,
1: + REQ_FSEQ_ACTIONS = 7,
1: + FLUSH_PENDING_TIMEOUT = 5000,
1: +};
1: +
1: +enum {
1: + ICQ_EXITED = 4,
1: + ICQ_DESTROYED = 8,
1: +};
1: +
1: +struct rq_map_data {
1: + struct page **pages;
1: + int page_order;
1: + int nr_entries;
1: + long unsigned int offset;
1: + int null_mapped;
1: + int from_user;
1: +};
1: +
1: +struct bio_map_data {
1: + bool is_our_pages: 1;
1: + bool is_null_mapped: 1;
1: + struct iov_iter iter;
1: + struct iovec iov[0];
1: +};
1: +
1: +enum bio_merge_status {
1: + BIO_MERGE_OK = 0,
1: + BIO_MERGE_NONE = 1,
1: + BIO_MERGE_FAILED = 2,
1: +};
1: +
1: +typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
1: +
1: +enum {
1: + BLK_MQ_UNIQUE_TAG_BITS = 16,
1: + BLK_MQ_UNIQUE_TAG_MASK = 65535,
1: +};
1: +
1: +struct mq_inflight {
1: + struct hd_struct *part;
1: + unsigned int inflight[2];
1: +};
1: +
1: +struct flush_busy_ctx_data {
1: + struct blk_mq_hw_ctx *hctx;
1: + struct list_head *list;
1: +};
1: +
1: +struct dispatch_rq_data {
1: + struct blk_mq_hw_ctx *hctx;
1: + struct request *rq;
1: +};
1: +
1: +enum prep_dispatch {
1: + PREP_DISPATCH_OK = 0,
1: + PREP_DISPATCH_NO_TAG = 1,
1: + PREP_DISPATCH_NO_BUDGET = 2,
1: +};
1: +
1: +struct rq_iter_data {
1: + struct blk_mq_hw_ctx *hctx;
1: + bool has_rq;
1: +};
1: +
1: +struct blk_mq_qe_pair {
1: + struct list_head node;
1: + struct request_queue *q;
1: + struct elevator_type *type;
1: +};
1: +
1: +struct sbq_wait {
1: + struct sbitmap_queue *sbq;
1: + struct wait_queue_entry wait;
1: +};
1: +
1: +typedef bool busy_iter_fn(struct blk_mq_hw_ctx *, struct request *, void *, bool);
1: +
1: +typedef bool busy_tag_iter_fn(struct request *, void *, bool);
1: +
1: +struct bt_iter_data {
1: + struct blk_mq_hw_ctx *hctx;
1: + busy_iter_fn *fn;
1: + void *data;
1: + bool reserved;
1: +};
1: +
1: +struct bt_tags_iter_data {
1: + struct blk_mq_tags *tags;
1: + busy_tag_iter_fn *fn;
1: + void *data;
1: + unsigned int flags;
1: +};
1: +
1: +struct blk_queue_stats {
1: + struct list_head callbacks;
1: + spinlock_t lock;
1: + bool enable_accounting;
1: +};
1: +
1: +struct blk_mq_ctx_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_mq_ctx *, char *);
1: + ssize_t (*store)(struct blk_mq_ctx *, const char *, size_t);
1: +};
1: +
1: +struct blk_mq_hw_ctx_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_mq_hw_ctx *, char *);
1: + ssize_t (*store)(struct blk_mq_hw_ctx *, const char *, size_t);
1: +};
1: +
1: +typedef u32 compat_caddr_t;
1: +
1: +struct hd_geometry {
1: + unsigned char heads;
1: + unsigned char sectors;
1: + short unsigned int cylinders;
1: + long unsigned int start;
1: +};
1: +
1: +struct blkpg_ioctl_arg {
1: + int op;
1: + int flags;
1: + int datalen;
1: + void *data;
1: +};
1: +
1: +struct blkpg_partition {
1: + long long int start;
1: + long long int length;
1: + int pno;
1: + char devname[64];
1: + char volname[64];
1: +};
1: +
1: +struct pr_reservation {
1: + __u64 key;
1: + __u32 type;
1: + __u32 flags;
1: +};
1: +
1: +struct pr_registration {
1: + __u64 old_key;
1: + __u64 new_key;
1: + __u32 flags;
1: + __u32 __pad;
1: +};
1: +
1: +struct pr_preempt {
1: + __u64 old_key;
1: + __u64 new_key;
1: + __u32 type;
1: + __u32 flags;
1: +};
1: +
1: +struct pr_clear {
1: + __u64 key;
1: + __u32 flags;
1: + __u32 __pad;
1: +};
1: +
1: +struct compat_blkpg_ioctl_arg {
1: + compat_int_t op;
1: + compat_int_t flags;
1: + compat_int_t datalen;
1: + compat_caddr_t data;
1: +};
1: +
1: +struct compat_hd_geometry {
1: + unsigned char heads;
1: + unsigned char sectors;
1: + short unsigned int cylinders;
1: + u32 start;
1: +};
1: +
1: +struct klist_node;
1: +
1: +struct klist {
1: + spinlock_t k_lock;
1: + struct list_head k_list;
1: + void (*get)(struct klist_node *);
1: + void (*put)(struct klist_node *);
1: +};
1: +
1: +struct klist_node {
1: + void *n_klist;
1: + struct list_head n_node;
1: + struct kref n_ref;
1: +};
1: +
1: +struct klist_iter {
1: + struct klist *i_klist;
1: + struct klist_node *i_cur;
1: +};
1: +
1: +struct class_dev_iter {
1: + struct klist_iter ki;
1: + const struct device_type *type;
1: +};
1: +
1: +enum {
1: + DISK_EVENT_FLAG_POLL = 1,
1: + DISK_EVENT_FLAG_UEVENT = 2,
1: +};
1: +
1: +struct disk_events {
1: + struct list_head node;
1: + struct gendisk *disk;
1: + spinlock_t lock;
1: + struct mutex block_mutex;
1: + int block;
1: + unsigned int pending;
1: + unsigned int clearing;
1: + long int poll_msecs;
1: + struct delayed_work dwork;
1: +};
1: +
1: +struct badblocks {
1: + struct device *dev;
1: + int count;
1: + int unacked_exist;
1: + int shift;
1: + u64 *page;
1: + int changed;
1: + seqlock_t lock;
1: + sector_t sector;
1: + sector_t size;
1: +};
1: +
1: +struct disk_part_iter {
1: + struct gendisk *disk;
1: + struct hd_struct *part;
1: + int idx;
1: + unsigned int flags;
1: +};
1: +
1: +struct blk_major_name {
1: + struct blk_major_name *next;
1: + int major;
1: + char name[16];
1: +};
1: +
1: +enum {
1: + IOPRIO_WHO_PROCESS = 1,
1: + IOPRIO_WHO_PGRP = 2,
1: + IOPRIO_WHO_USER = 3,
1: +};
1: +
1: +struct parsed_partitions {
1: + struct block_device *bdev;
1: + char name[32];
1: + struct {
1: + sector_t from;
1: + sector_t size;
1: + int flags;
1: + bool has_info;
1: + struct partition_meta_info info;
1: + } *parts;
1: + int next;
1: + int limit;
1: + bool access_beyond_eod;
1: + char *pp_buf;
1: +};
1: +
1: +typedef struct {
1: + struct page *v;
1: +} Sector;
1: +
1: +struct RigidDiskBlock {
1: + __u32 rdb_ID;
1: + __be32 rdb_SummedLongs;
1: + __s32 rdb_ChkSum;
1: + __u32 rdb_HostID;
1: + __be32 rdb_BlockBytes;
1: + __u32 rdb_Flags;
1: + __u32 rdb_BadBlockList;
1: + __be32 rdb_PartitionList;
1: + __u32 rdb_FileSysHeaderList;
1: + __u32 rdb_DriveInit;
1: + __u32 rdb_Reserved1[6];
1: + __u32 rdb_Cylinders;
1: + __u32 rdb_Sectors;
1: + __u32 rdb_Heads;
1: + __u32 rdb_Interleave;
1: + __u32 rdb_Park;
1: + __u32 rdb_Reserved2[3];
1: + __u32 rdb_WritePreComp;
1: + __u32 rdb_ReducedWrite;
1: + __u32 rdb_StepRate;
1: + __u32 rdb_Reserved3[5];
1: + __u32 rdb_RDBBlocksLo;
1: + __u32 rdb_RDBBlocksHi;
1: + __u32 rdb_LoCylinder;
1: + __u32 rdb_HiCylinder;
1: + __u32 rdb_CylBlocks;
1: + __u32 rdb_AutoParkSeconds;
1: + __u32 rdb_HighRDSKBlock;
1: + __u32 rdb_Reserved4;
1: + char rdb_DiskVendor[8];
1: + char rdb_DiskProduct[16];
1: + char rdb_DiskRevision[4];
1: + char rdb_ControllerVendor[8];
1: + char rdb_ControllerProduct[16];
1: + char rdb_ControllerRevision[4];
1: + __u32 rdb_Reserved5[10];
1: +};
1: +
1: +struct PartitionBlock {
1: + __be32 pb_ID;
1: + __be32 pb_SummedLongs;
1: + __s32 pb_ChkSum;
1: + __u32 pb_HostID;
1: + __be32 pb_Next;
1: + __u32 pb_Flags;
1: + __u32 pb_Reserved1[2];
1: + __u32 pb_DevFlags;
1: + __u8 pb_DriveName[32];
1: + __u32 pb_Reserved2[15];
1: + __be32 pb_Environment[17];
1: + __u32 pb_EReserved[15];
1: +};
1: +
1: +struct partition_info {
1: + u8 flg;
1: + char id[3];
1: + __be32 st;
1: + __be32 siz;
1: +};
1: +
1: +struct rootsector {
1: + char unused[342];
1: + struct partition_info icdpart[8];
1: + char unused2[12];
1: + u32 hd_siz;
1: + struct partition_info part[4];
1: + u32 bsl_st;
1: + u32 bsl_cnt;
1: + u16 checksum;
1: +} __attribute__((packed));
1: +
1: +struct mac_partition {
1: + __be16 signature;
1: + __be16 res1;
1: + __be32 map_count;
1: + __be32 start_block;
1: + __be32 block_count;
1: + char name[32];
1: + char type[32];
1: + __be32 data_start;
1: + __be32 data_count;
1: + __be32 status;
1: + __be32 boot_start;
1: + __be32 boot_size;
1: + __be32 boot_load;
1: + __be32 boot_load2;
1: + __be32 boot_entry;
1: + __be32 boot_entry2;
1: + __be32 boot_cksum;
1: + char processor[16];
1: +};
1: +
1: +struct mac_driver_desc {
1: + __be16 signature;
1: + __be16 block_size;
1: + __be32 block_count;
1: +};
1: +
1: +struct msdos_partition {
1: + u8 boot_ind;
1: + u8 head;
1: + u8 sector;
1: + u8 cyl;
1: + u8 sys_ind;
1: + u8 end_head;
1: + u8 end_sector;
1: + u8 end_cyl;
1: + __le32 start_sect;
1: + __le32 nr_sects;
1: +};
1: +
1: +struct frag {
1: + struct list_head list;
1: + u32 group;
1: + u8 num;
1: + u8 rec;
1: + u8 map;
1: + u8 data[0];
1: +};
1: +
1: +struct privhead {
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u64 logical_disk_start;
1: + u64 logical_disk_size;
1: + u64 config_start;
1: + u64 config_size;
1: + uuid_t disk_id;
1: +};
1: +
1: +struct tocblock {
1: + u8 bitmap1_name[16];
1: + u64 bitmap1_start;
1: + u64 bitmap1_size;
1: + u8 bitmap2_name[16];
1: + u64 bitmap2_start;
1: + u64 bitmap2_size;
1: +};
1: +
1: +struct vmdb {
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u32 vblk_size;
1: + u32 vblk_offset;
1: + u32 last_vblk_seq;
1: +};
1: +
1: +struct vblk_comp {
1: + u8 state[16];
1: + u64 parent_id;
1: + u8 type;
1: + u8 children;
1: + u16 chunksize;
1: +};
1: +
1: +struct vblk_dgrp {
1: + u8 disk_id[64];
1: +};
1: +
1: +struct vblk_disk {
1: + uuid_t disk_id;
1: + u8 alt_name[128];
1: +};
1: +
1: +struct vblk_part {
1: + u64 start;
1: + u64 size;
1: + u64 volume_offset;
1: + u64 parent_id;
1: + u64 disk_id;
1: + u8 partnum;
1: +};
1: +
1: +struct vblk_volu {
1: + u8 volume_type[16];
1: + u8 volume_state[16];
1: + u8 guid[16];
1: + u8 drive_hint[4];
1: + u64 size;
1: + u8 partition_type;
1: +};
1: +
1: +struct vblk {
1: + u8 name[64];
1: + u64 obj_id;
1: + u32 sequence;
1: + u8 flags;
1: + u8 type;
1: + union {
1: + struct vblk_comp comp;
1: + struct vblk_dgrp dgrp;
1: + struct vblk_disk disk;
1: + struct vblk_part part;
1: + struct vblk_volu volu;
1: + } vblk;
1: + struct list_head list;
1: +};
1: +
1: +struct ldmdb {
1: + struct privhead ph;
1: + struct tocblock toc;
1: + struct vmdb vm;
1: + struct list_head v_dgrp;
1: + struct list_head v_disk;
1: + struct list_head v_volu;
1: + struct list_head v_comp;
1: + struct list_head v_part;
1: +};
1: +
1: +struct fat_boot_sector {
1: + __u8 ignored[3];
1: + __u8 system_id[8];
1: + __u8 sector_size[2];
1: + __u8 sec_per_clus;
1: + __le16 reserved;
1: + __u8 fats;
1: + __u8 dir_entries[2];
1: + __u8 sectors[2];
1: + __u8 media;
1: + __le16 fat_length;
1: + __le16 secs_track;
1: + __le16 heads;
1: + __le32 hidden;
1: + __le32 total_sect;
1: + union {
1: + struct {
1: + __u8 drive_number;
1: + __u8 state;
1: + __u8 signature;
1: + __u8 vol_id[4];
1: + __u8 vol_label[11];
1: + __u8 fs_type[8];
1: + } fat16;
1: + struct {
1: + __le32 length;
1: + __le16 flags;
1: + __u8 version[2];
1: + __le32 root_cluster;
1: + __le16 info_sector;
1: + __le16 backup_boot;
1: + __le16 reserved2[6];
1: + __u8 drive_number;
1: + __u8 state;
1: + __u8 signature;
1: + __u8 vol_id[4];
1: + __u8 vol_label[11];
1: + __u8 fs_type[8];
1: + } fat32;
1: + };
1: +};
1: +
1: +enum msdos_sys_ind {
1: + DOS_EXTENDED_PARTITION = 5,
1: + LINUX_EXTENDED_PARTITION = 133,
1: + WIN98_EXTENDED_PARTITION = 15,
1: + LINUX_DATA_PARTITION = 131,
1: + LINUX_LVM_PARTITION = 142,
1: + LINUX_RAID_PARTITION = 253,
1: + SOLARIS_X86_PARTITION = 130,
1: + NEW_SOLARIS_X86_PARTITION = 191,
1: + DM6_AUX1PARTITION = 81,
1: + DM6_AUX3PARTITION = 83,
1: + DM6_PARTITION = 84,
1: + EZD_PARTITION = 85,
1: + FREEBSD_PARTITION = 165,
1: + OPENBSD_PARTITION = 166,
1: + NETBSD_PARTITION = 169,
1: + BSDI_PARTITION = 183,
1: + MINIX_PARTITION = 129,
1: + UNIXWARE_PARTITION = 99,
1: +};
1: +
1: +struct solaris_x86_slice {
1: + __le16 s_tag;
1: + __le16 s_flag;
1: + __le32 s_start;
1: + __le32 s_size;
1: +};
1: +
1: +struct solaris_x86_vtoc {
1: + unsigned int v_bootinfo[3];
1: + __le32 v_sanity;
1: + __le32 v_version;
1: + char v_volume[8];
1: + __le16 v_sectorsz;
1: + __le16 v_nparts;
1: + unsigned int v_reserved[10];
1: + struct solaris_x86_slice v_slice[16];
1: + unsigned int timestamp[16];
1: + char v_asciilabel[128];
1: +};
1: +
1: +struct bsd_partition {
1: + __le32 p_size;
1: + __le32 p_offset;
1: + __le32 p_fsize;
1: + __u8 p_fstype;
1: + __u8 p_frag;
1: + __le16 p_cpg;
1: +};
1: +
1: +struct bsd_disklabel {
1: + __le32 d_magic;
1: + __s16 d_type;
1: + __s16 d_subtype;
1: + char d_typename[16];
1: + char d_packname[16];
1: + __u32 d_secsize;
1: + __u32 d_nsectors;
1: + __u32 d_ntracks;
1: + __u32 d_ncylinders;
1: + __u32 d_secpercyl;
1: + __u32 d_secperunit;
1: + __u16 d_sparespertrack;
1: + __u16 d_sparespercyl;
1: + __u32 d_acylinders;
1: + __u16 d_rpm;
1: + __u16 d_interleave;
1: + __u16 d_trackskew;
1: + __u16 d_cylskew;
1: + __u32 d_headswitch;
1: + __u32 d_trkseek;
1: + __u32 d_flags;
1: + __u32 d_drivedata[5];
1: + __u32 d_spare[5];
1: + __le32 d_magic2;
1: + __le16 d_checksum;
1: + __le16 d_npartitions;
1: + __le32 d_bbsize;
1: + __le32 d_sbsize;
1: + struct bsd_partition d_partitions[16];
1: +};
1: +
1: +struct unixware_slice {
1: + __le16 s_label;
1: + __le16 s_flags;
1: + __le32 start_sect;
1: + __le32 nr_sects;
1: +};
1: +
1: +struct unixware_vtoc {
1: + __le32 v_magic;
1: + __le32 v_version;
1: + char v_name[8];
1: + __le16 v_nslices;
1: + __le16 v_unknown1;
1: + __le32 v_reserved[10];
1: + struct unixware_slice v_slice[16];
1: +};
1: +
1: +struct unixware_disklabel {
1: + __le32 d_type;
1: + __le32 d_magic;
1: + __le32 d_version;
1: + char d_serial[12];
1: + __le32 d_ncylinders;
1: + __le32 d_ntracks;
1: + __le32 d_nsectors;
1: + __le32 d_secsize;
1: + __le32 d_part_start;
1: + __le32 d_unknown1[12];
1: + __le32 d_alt_tbl;
1: + __le32 d_alt_len;
1: + __le32 d_phys_cyl;
1: + __le32 d_phys_trk;
1: + __le32 d_phys_sec;
1: + __le32 d_phys_bytes;
1: + __le32 d_unknown2;
1: + __le32 d_unknown3;
1: + __le32 d_pad[8];
1: + struct unixware_vtoc vtoc;
1: +};
1: +
1: +struct d_partition {
1: + __le32 p_size;
1: + __le32 p_offset;
1: + __le32 p_fsize;
1: + u8 p_fstype;
1: + u8 p_frag;
1: + __le16 p_cpg;
1: +};
1: +
1: +struct disklabel {
1: + __le32 d_magic;
1: + __le16 d_type;
1: + __le16 d_subtype;
1: + u8 d_typename[16];
1: + u8 d_packname[16];
1: + __le32 d_secsize;
1: + __le32 d_nsectors;
1: + __le32 d_ntracks;
1: + __le32 d_ncylinders;
1: + __le32 d_secpercyl;
1: + __le32 d_secprtunit;
1: + __le16 d_sparespertrack;
1: + __le16 d_sparespercyl;
1: + __le32 d_acylinders;
1: + __le16 d_rpm;
1: + __le16 d_interleave;
1: + __le16 d_trackskew;
1: + __le16 d_cylskew;
1: + __le32 d_headswitch;
1: + __le32 d_trkseek;
1: + __le32 d_flags;
1: + __le32 d_drivedata[5];
1: + __le32 d_spare[5];
1: + __le32 d_magic2;
1: + __le16 d_checksum;
1: + __le16 d_npartitions;
1: + __le32 d_bbsize;
1: + __le32 d_sbsize;
1: + struct d_partition d_partitions[18];
1: +};
1: +
1: +enum {
1: + LINUX_RAID_PARTITION___2 = 253,
1: +};
1: +
1: +struct sgi_volume {
1: + s8 name[8];
1: + __be32 block_num;
1: + __be32 num_bytes;
1: +};
1: +
1: +struct sgi_partition {
1: + __be32 num_blocks;
1: + __be32 first_block;
1: + __be32 type;
1: +};
1: +
1: +struct sgi_disklabel {
1: + __be32 magic_mushroom;
1: + __be16 root_part_num;
1: + __be16 swap_part_num;
1: + s8 boot_file[16];
1: + u8 _unused0[48];
1: + struct sgi_volume volume[15];
1: + struct sgi_partition partitions[16];
1: + __be32 csum;
1: + __be32 _unused1;
1: +};
1: +
1: +enum {
1: + SUN_WHOLE_DISK = 5,
1: + LINUX_RAID_PARTITION___3 = 253,
1: +};
1: +
1: +struct sun_info {
1: + __be16 id;
1: + __be16 flags;
1: +};
1: +
1: +struct sun_vtoc {
1: + __be32 version;
1: + char volume[8];
1: + __be16 nparts;
1: + struct sun_info infos[8];
1: + __be16 padding;
1: + __be32 bootinfo[3];
1: + __be32 sanity;
1: + __be32 reserved[10];
1: + __be32 timestamp[8];
1: +};
1: +
1: +struct sun_partition {
1: + __be32 start_cylinder;
1: + __be32 num_sectors;
1: +};
1: +
1: +struct sun_disklabel {
1: + unsigned char info[128];
1: + struct sun_vtoc vtoc;
1: + __be32 write_reinstruct;
1: + __be32 read_reinstruct;
1: + unsigned char spare[148];
1: + __be16 rspeed;
1: + __be16 pcylcount;
1: + __be16 sparecyl;
1: + __be16 obs1;
1: + __be16 obs2;
1: + __be16 ilfact;
1: + __be16 ncyl;
1: + __be16 nacyl;
1: + __be16 ntrks;
1: + __be16 nsect;
1: + __be16 obs3;
1: + __be16 obs4;
1: + struct sun_partition partitions[8];
1: + __be16 magic;
1: + __be16 csum;
1: +};
1: +
1: +struct pt_info {
1: + s32 pi_nblocks;
1: + u32 pi_blkoff;
1: +};
1: +
1: +struct ultrix_disklabel {
1: + s32 pt_magic;
1: + s32 pt_valid;
1: + struct pt_info pt_part[8];
1: +};
1: +
1: +struct _gpt_header {
1: + __le64 signature;
1: + __le32 revision;
1: + __le32 header_size;
1: + __le32 header_crc32;
1: + __le32 reserved1;
1: + __le64 my_lba;
1: + __le64 alternate_lba;
1: + __le64 first_usable_lba;
1: + __le64 last_usable_lba;
1: + efi_guid_t disk_guid;
1: + __le64 partition_entry_lba;
1: + __le32 num_partition_entries;
1: + __le32 sizeof_partition_entry;
1: + __le32 partition_entry_array_crc32;
1: +} __attribute__((packed));
1: +
1: +typedef struct _gpt_header gpt_header;
1: +
1: +struct _gpt_entry_attributes {
1: + u64 required_to_function: 1;
1: + u64 reserved: 47;
1: + u64 type_guid_specific: 16;
1: +};
1: +
1: +typedef struct _gpt_entry_attributes gpt_entry_attributes;
1: +
1: +struct _gpt_entry {
1: + efi_guid_t partition_type_guid;
1: + efi_guid_t unique_partition_guid;
1: + __le64 starting_lba;
1: + __le64 ending_lba;
1: + gpt_entry_attributes attributes;
1: + __le16 partition_name[36];
1: +};
1: +
1: +typedef struct _gpt_entry gpt_entry;
1: +
1: +struct _gpt_mbr_record {
1: + u8 boot_indicator;
1: + u8 start_head;
1: + u8 start_sector;
1: + u8 start_track;
1: + u8 os_type;
1: + u8 end_head;
1: + u8 end_sector;
1: + u8 end_track;
1: + __le32 starting_lba;
1: + __le32 size_in_lba;
1: +};
1: +
1: +typedef struct _gpt_mbr_record gpt_mbr_record;
1: +
1: +struct _legacy_mbr {
1: + u8 boot_code[440];
1: + __le32 unique_mbr_signature;
1: + __le16 unknown;
1: + gpt_mbr_record partition_record[4];
1: + __le16 signature;
1: +} __attribute__((packed));
1: +
1: +typedef struct _legacy_mbr legacy_mbr;
1: +
1: +struct d_partition___2 {
1: + __le32 p_res;
1: + u8 p_fstype;
1: + u8 p_res2[3];
1: + __le32 p_offset;
1: + __le32 p_size;
1: +};
1: +
1: +struct disklabel___2 {
1: + u8 d_reserved[270];
1: + struct d_partition___2 d_partitions[2];
1: + u8 d_blank[208];
1: + __le16 d_magic;
1: +} __attribute__((packed));
1: +
1: +struct volumeid {
1: + u8 vid_unused[248];
1: + u8 vid_mac[8];
1: +};
1: +
1: +struct dkconfig {
1: + u8 ios_unused0[128];
1: + __be32 ios_slcblk;
1: + __be16 ios_slccnt;
1: + u8 ios_unused1[122];
1: +};
1: +
1: +struct dkblk0 {
1: + struct volumeid dk_vid;
1: + struct dkconfig dk_ios;
1: +};
1: +
1: +struct slice {
1: + __be32 nblocks;
1: + __be32 blkoff;
1: +};
1: +
1: +struct rq_wait {
1: + wait_queue_head_t wait;
1: + atomic_t inflight;
1: +};
1: +
1: +struct rq_depth {
1: + unsigned int max_depth;
1: + int scale_step;
1: + bool scaled_max;
1: + unsigned int queue_depth;
1: + unsigned int default_depth;
1: +};
1: +
1: +typedef bool acquire_inflight_cb_t(struct rq_wait *, void *);
1: +
1: +typedef void cleanup_cb_t(struct rq_wait *, void *);
1: +
1: +struct rq_qos_wait_data {
1: + struct wait_queue_entry wq;
1: + struct task_struct *task;
1: + struct rq_wait *rqw;
1: + acquire_inflight_cb_t *cb;
1: + void *private_data;
1: + bool got_token;
1: +};
1: +
1: +struct cdrom_device_ops;
1: +
1: +struct cdrom_device_info {
1: + const struct cdrom_device_ops *ops;
1: + struct list_head list;
1: + struct gendisk *disk;
1: + void *handle;
1: + int mask;
1: + int speed;
1: + int capacity;
1: + unsigned int options: 30;
1: + unsigned int mc_flags: 2;
1: + unsigned int vfs_events;
1: + unsigned int ioctl_events;
1: + int use_count;
1: + char name[20];
1: + __u8 sanyo_slot: 2;
1: + __u8 keeplocked: 1;
1: + __u8 reserved: 5;
1: + int cdda_method;
1: + __u8 last_sense;
1: + __u8 media_written;
1: + short unsigned int mmc3_profile;
1: + int for_data;
1: + int (*exit)(struct cdrom_device_info *);
1: + int mrw_mode_page;
1: +};
1: +
1: +struct scsi_sense_hdr {
1: + u8 response_code;
1: + u8 sense_key;
1: + u8 asc;
1: + u8 ascq;
1: + u8 byte4;
1: + u8 byte5;
1: + u8 byte6;
1: + u8 additional_length;
1: +};
1: +
1: +struct cdrom_msf0 {
1: + __u8 minute;
1: + __u8 second;
1: + __u8 frame;
1: +};
1: +
1: +union cdrom_addr {
1: + struct cdrom_msf0 msf;
1: + int lba;
1: +};
1: +
1: +struct cdrom_multisession {
1: + union cdrom_addr addr;
1: + __u8 xa_flag;
1: + __u8 addr_format;
1: +};
1: +
1: +struct cdrom_mcn {
1: + __u8 medium_catalog_number[14];
1: +};
1: +
1: +struct request_sense;
1: +
1: +struct cdrom_generic_command {
1: + unsigned char cmd[12];
1: + unsigned char *buffer;
1: + unsigned int buflen;
1: + int stat;
1: + struct request_sense *sense;
1: + unsigned char data_direction;
1: + int quiet;
1: + int timeout;
1: + union {
1: + void *reserved[1];
1: + void *unused;
1: + };
1: +};
1: +
1: +struct request_sense {
1: + __u8 error_code: 7;
1: + __u8 valid: 1;
1: + __u8 segment_number;
1: + __u8 sense_key: 4;
1: + __u8 reserved2: 1;
1: + __u8 ili: 1;
1: + __u8 reserved1: 2;
1: + __u8 information[4];
1: + __u8 add_sense_len;
1: + __u8 command_info[4];
1: + __u8 asc;
1: + __u8 ascq;
1: + __u8 fruc;
1: + __u8 sks[3];
1: + __u8 asb[46];
1: +};
1: +
1: +struct packet_command {
1: + unsigned char cmd[12];
1: + unsigned char *buffer;
1: + unsigned int buflen;
1: + int stat;
1: + struct scsi_sense_hdr *sshdr;
1: + unsigned char data_direction;
1: + int quiet;
1: + int timeout;
1: + void *reserved[1];
1: +};
1: +
1: +struct cdrom_device_ops {
1: + int (*open)(struct cdrom_device_info *, int);
1: + void (*release)(struct cdrom_device_info *);
1: + int (*drive_status)(struct cdrom_device_info *, int);
1: + unsigned int (*check_events)(struct cdrom_device_info *, unsigned int, int);
1: + int (*tray_move)(struct cdrom_device_info *, int);
1: + int (*lock_door)(struct cdrom_device_info *, int);
1: + int (*select_speed)(struct cdrom_device_info *, int);
1: + int (*select_disc)(struct cdrom_device_info *, int);
1: + int (*get_last_session)(struct cdrom_device_info *, struct cdrom_multisession *);
1: + int (*get_mcn)(struct cdrom_device_info *, struct cdrom_mcn *);
1: + int (*reset)(struct cdrom_device_info *);
1: + int (*audio_ioctl)(struct cdrom_device_info *, unsigned int, void *);
1: + const int capability;
1: + int (*generic_packet)(struct cdrom_device_info *, struct packet_command *);
1: +};
1: +
1: +struct scsi_ioctl_command {
1: + unsigned int inlen;
1: + unsigned int outlen;
1: + unsigned char data[0];
1: +};
1: +
1: +enum scsi_device_event {
1: + SDEV_EVT_MEDIA_CHANGE = 1,
1: + SDEV_EVT_INQUIRY_CHANGE_REPORTED = 2,
1: + SDEV_EVT_CAPACITY_CHANGE_REPORTED = 3,
1: + SDEV_EVT_SOFT_THRESHOLD_REACHED_REPORTED = 4,
1: + SDEV_EVT_MODE_PARAMETER_CHANGE_REPORTED = 5,
1: + SDEV_EVT_LUN_CHANGE_REPORTED = 6,
1: + SDEV_EVT_ALUA_STATE_CHANGE_REPORTED = 7,
1: + SDEV_EVT_POWER_ON_RESET_OCCURRED = 8,
1: + SDEV_EVT_FIRST = 1,
1: + SDEV_EVT_LAST = 8,
1: + SDEV_EVT_MAXBITS = 9,
1: +};
1: +
1: +struct scsi_request {
1: + unsigned char __cmd[16];
1: + unsigned char *cmd;
1: + short unsigned int cmd_len;
1: + int result;
1: + unsigned int sense_len;
1: + unsigned int resid_len;
1: + int retries;
1: + void *sense;
1: +};
1: +
1: +struct sg_io_hdr {
1: + int interface_id;
1: + int dxfer_direction;
1: + unsigned char cmd_len;
1: + unsigned char mx_sb_len;
1: + short unsigned int iovec_count;
1: + unsigned int dxfer_len;
1: + void *dxferp;
1: + unsigned char *cmdp;
1: + void *sbp;
1: + unsigned int timeout;
1: + unsigned int flags;
1: + int pack_id;
1: + void *usr_ptr;
1: + unsigned char status;
1: + unsigned char masked_status;
1: + unsigned char msg_status;
1: + unsigned char sb_len_wr;
1: + short unsigned int host_status;
1: + short unsigned int driver_status;
1: + int resid;
1: + unsigned int duration;
1: + unsigned int info;
1: +};
1: +
1: +struct compat_sg_io_hdr {
1: + compat_int_t interface_id;
1: + compat_int_t dxfer_direction;
1: + unsigned char cmd_len;
1: + unsigned char mx_sb_len;
1: + short unsigned int iovec_count;
1: + compat_uint_t dxfer_len;
1: + compat_uint_t dxferp;
1: + compat_uptr_t cmdp;
1: + compat_uptr_t sbp;
1: + compat_uint_t timeout;
1: + compat_uint_t flags;
1: + compat_int_t pack_id;
1: + compat_uptr_t usr_ptr;
1: + unsigned char status;
1: + unsigned char masked_status;
1: + unsigned char msg_status;
1: + unsigned char sb_len_wr;
1: + short unsigned int host_status;
1: + short unsigned int driver_status;
1: + compat_int_t resid;
1: + compat_uint_t duration;
1: + compat_uint_t info;
1: +};
1: +
1: +struct blk_cmd_filter {
1: + long unsigned int read_ok[4];
1: + long unsigned int write_ok[4];
1: +};
1: +
1: +struct compat_cdrom_generic_command {
1: + unsigned char cmd[12];
1: + compat_caddr_t buffer;
1: + compat_uint_t buflen;
1: + compat_int_t stat;
1: + compat_caddr_t sense;
1: + unsigned char data_direction;
1: + unsigned char pad[3];
1: + compat_int_t quiet;
1: + compat_int_t timeout;
1: + compat_caddr_t unused;
1: +};
1: +
1: +enum {
1: + OMAX_SB_LEN = 16,
1: +};
1: +
1: +struct bsg_device {
1: + struct request_queue *queue;
1: + spinlock_t lock;
1: + struct hlist_node dev_list;
1: + refcount_t ref_count;
1: + char name[20];
1: + int max_queue;
1: +};
1: +
1: +struct bsg_job;
1: +
1: +typedef int bsg_job_fn(struct bsg_job *);
1: +
1: +struct bsg_buffer {
1: + unsigned int payload_len;
1: + int sg_cnt;
1: + struct scatterlist *sg_list;
1: +};
1: +
1: +struct bsg_job {
1: + struct device *dev;
1: + struct kref kref;
1: + unsigned int timeout;
1: + void *request;
1: + void *reply;
1: + unsigned int request_len;
1: + unsigned int reply_len;
1: + struct bsg_buffer request_payload;
1: + struct bsg_buffer reply_payload;
1: + int result;
1: + unsigned int reply_payload_rcv_len;
1: + struct request *bidi_rq;
1: + struct bio *bidi_bio;
1: + void *dd_data;
1: +};
1: +
1: +typedef enum blk_eh_timer_return bsg_timeout_fn(struct request *);
1: +
1: +struct bsg_set {
1: + struct blk_mq_tag_set tag_set;
1: + bsg_job_fn *job_fn;
1: + bsg_timeout_fn *timeout_fn;
1: +};
1: +
1: +typedef struct blkcg_policy_data *blkcg_pol_alloc_cpd_fn(gfp_t);
1: +
1: +typedef void blkcg_pol_init_cpd_fn(struct blkcg_policy_data *);
1: +
1: +typedef void blkcg_pol_free_cpd_fn(struct blkcg_policy_data *);
1: +
1: +typedef void blkcg_pol_bind_cpd_fn(struct blkcg_policy_data *);
1: +
1: +typedef struct blkg_policy_data *blkcg_pol_alloc_pd_fn(gfp_t, struct request_queue *, struct blkcg *);
1: +
1: +typedef void blkcg_pol_init_pd_fn(struct blkg_policy_data *);
1: +
1: +typedef void blkcg_pol_online_pd_fn(struct blkg_policy_data *);
1: +
1: +typedef void blkcg_pol_offline_pd_fn(struct blkg_policy_data *);
1: +
1: +typedef void blkcg_pol_free_pd_fn(struct blkg_policy_data *);
1: +
1: +typedef void blkcg_pol_reset_pd_stats_fn(struct blkg_policy_data *);
1: +
1: +typedef size_t blkcg_pol_stat_pd_fn(struct blkg_policy_data *, char *, size_t);
1: +
1: +struct blkcg_policy {
1: + int plid;
1: + struct cftype *dfl_cftypes;
1: + struct cftype *legacy_cftypes;
1: + blkcg_pol_alloc_cpd_fn *cpd_alloc_fn;
1: + blkcg_pol_init_cpd_fn *cpd_init_fn;
1: + blkcg_pol_free_cpd_fn *cpd_free_fn;
1: + blkcg_pol_bind_cpd_fn *cpd_bind_fn;
1: + blkcg_pol_alloc_pd_fn *pd_alloc_fn;
1: + blkcg_pol_init_pd_fn *pd_init_fn;
1: + blkcg_pol_online_pd_fn *pd_online_fn;
1: + blkcg_pol_offline_pd_fn *pd_offline_fn;
1: + blkcg_pol_free_pd_fn *pd_free_fn;
1: + blkcg_pol_reset_pd_stats_fn *pd_reset_stats_fn;
1: + blkcg_pol_stat_pd_fn *pd_stat_fn;
1: +};
1: +
1: +struct blkg_conf_ctx {
1: + struct gendisk *disk;
1: + struct blkcg_gq *blkg;
1: + char *body;
1: +};
1: +
1: +enum blkg_rwstat_type {
1: + BLKG_RWSTAT_READ = 0,
1: + BLKG_RWSTAT_WRITE = 1,
1: + BLKG_RWSTAT_SYNC = 2,
1: + BLKG_RWSTAT_ASYNC = 3,
1: + BLKG_RWSTAT_DISCARD = 4,
1: + BLKG_RWSTAT_NR = 5,
1: + BLKG_RWSTAT_TOTAL = 5,
1: +};
1: +
1: +struct blkg_rwstat {
1: + struct percpu_counter cpu_cnt[5];
1: + atomic64_t aux_cnt[5];
1: +};
1: +
1: +struct blkg_rwstat_sample {
1: + u64 cnt[5];
1: +};
1: +
1: +struct throtl_service_queue {
1: + struct throtl_service_queue *parent_sq;
1: + struct list_head queued[2];
1: + unsigned int nr_queued[2];
1: + struct rb_root_cached pending_tree;
1: + unsigned int nr_pending;
1: + long unsigned int first_pending_disptime;
1: + struct timer_list pending_timer;
1: +};
1: +
1: +struct latency_bucket {
1: + long unsigned int total_latency;
1: + int samples;
1: +};
1: +
1: +struct avg_latency_bucket {
1: + long unsigned int latency;
1: + bool valid;
1: +};
1: +
1: +struct throtl_data {
1: + struct throtl_service_queue service_queue;
1: + struct request_queue *queue;
1: + unsigned int nr_queued[2];
1: + unsigned int throtl_slice;
1: + struct work_struct dispatch_work;
1: + unsigned int limit_index;
1: + bool limit_valid[2];
1: + long unsigned int low_upgrade_time;
1: + long unsigned int low_downgrade_time;
1: + unsigned int scale;
1: + struct latency_bucket tmp_buckets[18];
1: + struct avg_latency_bucket avg_buckets[18];
1: + struct latency_bucket *latency_buckets[2];
1: + long unsigned int last_calculate_time;
1: + long unsigned int filtered_latency;
1: + bool track_bio_latency;
1: +};
1: +
1: +struct throtl_grp;
1: +
1: +struct throtl_qnode {
1: + struct list_head node;
1: + struct bio_list bios;
1: + struct throtl_grp *tg;
1: +};
1: +
1: +struct throtl_grp {
1: + struct blkg_policy_data pd;
1: + struct rb_node rb_node;
1: + struct throtl_data *td;
1: + struct throtl_service_queue service_queue;
1: + struct throtl_qnode qnode_on_self[2];
1: + struct throtl_qnode qnode_on_parent[2];
1: + long unsigned int disptime;
1: + unsigned int flags;
1: + bool has_rules[2];
1: + uint64_t bps[4];
1: + uint64_t bps_conf[4];
1: + unsigned int iops[4];
1: + unsigned int iops_conf[4];
1: + uint64_t bytes_disp[2];
1: + unsigned int io_disp[2];
1: + long unsigned int last_low_overflow_time[2];
1: + uint64_t last_bytes_disp[2];
1: + unsigned int last_io_disp[2];
1: + long unsigned int last_check_time;
1: + long unsigned int latency_target;
1: + long unsigned int latency_target_conf;
1: + long unsigned int slice_start[2];
1: + long unsigned int slice_end[2];
1: + long unsigned int last_finish_time;
1: + long unsigned int checked_last_finish_time;
1: + long unsigned int avg_idletime;
1: + long unsigned int idletime_threshold;
1: + long unsigned int idletime_threshold_conf;
1: + unsigned int bio_cnt;
1: + unsigned int bad_bio_cnt;
1: + long unsigned int bio_cnt_reset_time;
1: + struct blkg_rwstat stat_bytes;
1: + struct blkg_rwstat stat_ios;
1: +};
1: +
1: +enum tg_state_flags {
1: + THROTL_TG_PENDING = 1,
1: + THROTL_TG_WAS_EMPTY = 2,
1: +};
1: +
1: +enum {
1: + LIMIT_LOW = 0,
1: + LIMIT_MAX = 1,
1: + LIMIT_CNT = 2,
1: +};
1: +
1: +struct blk_iolatency {
1: + struct rq_qos rqos;
1: + struct timer_list timer;
1: + atomic_t enabled;
1: +};
1: +
1: +struct iolatency_grp;
1: +
1: +struct child_latency_info {
1: + spinlock_t lock;
1: + u64 last_scale_event;
1: + u64 scale_lat;
1: + u64 nr_samples;
1: + struct iolatency_grp *scale_grp;
1: + atomic_t scale_cookie;
1: +};
1: +
1: +struct percentile_stats {
1: + u64 total;
1: + u64 missed;
1: +};
1: +
1: +struct latency_stat {
1: + union {
1: + struct percentile_stats ps;
1: + struct blk_rq_stat rqs;
1: + };
1: +};
1: +
1: +struct iolatency_grp {
1: + struct blkg_policy_data pd;
1: + struct latency_stat *stats;
1: + struct latency_stat cur_stat;
1: + struct blk_iolatency *blkiolat;
1: + struct rq_depth rq_depth;
1: + struct rq_wait rq_wait;
1: + atomic64_t window_start;
1: + atomic_t scale_cookie;
1: + u64 min_lat_nsec;
1: + u64 cur_win_nsec;
1: + u64 lat_avg;
1: + u64 nr_samples;
1: + bool ssd;
1: + struct child_latency_info child_lat;
1: +};
1: +
1: +enum {
1: + MILLION = 1000000,
1: + MIN_PERIOD = 1000,
1: + MAX_PERIOD = 1000000,
1: + MARGIN_MIN_PCT = 10,
1: + MARGIN_LOW_PCT = 20,
1: + MARGIN_TARGET_PCT = 50,
1: + INUSE_ADJ_STEP_PCT = 25,
1: + TIMER_SLACK_PCT = 1,
1: + WEIGHT_ONE = 65536,
1: + VTIME_PER_SEC_SHIFT = 37,
1: + VTIME_PER_SEC = 0,
1: + VTIME_PER_USEC = 137438,
1: + VTIME_PER_NSEC = 137,
1: + VRATE_MIN_PPM = 10000,
1: + VRATE_MAX_PPM = 100000000,
1: + VRATE_MIN = 1374,
1: + VRATE_CLAMP_ADJ_PCT = 4,
1: + RQ_WAIT_BUSY_PCT = 5,
1: + UNBUSY_THR_PCT = 75,
1: + MIN_DELAY_THR_PCT = 500,
1: + MAX_DELAY_THR_PCT = 25000,
1: + MIN_DELAY = 250,
1: + MAX_DELAY = 250000,
1: + DFGV_USAGE_PCT = 50,
1: + DFGV_PERIOD = 100000,
1: + MAX_LAGGING_PERIODS = 10,
1: + AUTOP_CYCLE_NSEC = 1410065408,
1: + IOC_PAGE_SHIFT = 12,
1: + IOC_PAGE_SIZE = 4096,
1: + IOC_SECT_TO_PAGE_SHIFT = 3,
1: + LCOEF_RANDIO_PAGES = 4096,
1: +};
1: +
1: +enum ioc_running {
1: + IOC_IDLE = 0,
1: + IOC_RUNNING = 1,
1: + IOC_STOP = 2,
1: +};
1: +
1: +enum {
1: + QOS_ENABLE = 0,
1: + QOS_CTRL = 1,
1: + NR_QOS_CTRL_PARAMS = 2,
1: +};
1: +
1: +enum {
1: + QOS_RPPM = 0,
1: + QOS_RLAT = 1,
1: + QOS_WPPM = 2,
1: + QOS_WLAT = 3,
1: + QOS_MIN = 4,
1: + QOS_MAX = 5,
1: + NR_QOS_PARAMS = 6,
1: +};
1: +
1: +enum {
1: + COST_CTRL = 0,
1: + COST_MODEL = 1,
1: + NR_COST_CTRL_PARAMS = 2,
1: +};
1: +
1: +enum {
1: + I_LCOEF_RBPS = 0,
1: + I_LCOEF_RSEQIOPS = 1,
1: + I_LCOEF_RRANDIOPS = 2,
1: + I_LCOEF_WBPS = 3,
1: + I_LCOEF_WSEQIOPS = 4,
1: + I_LCOEF_WRANDIOPS = 5,
1: + NR_I_LCOEFS = 6,
1: +};
1: +
1: +enum {
1: + LCOEF_RPAGE = 0,
1: + LCOEF_RSEQIO = 1,
1: + LCOEF_RRANDIO = 2,
1: + LCOEF_WPAGE = 3,
1: + LCOEF_WSEQIO = 4,
1: + LCOEF_WRANDIO = 5,
1: + NR_LCOEFS = 6,
1: +};
1: +
1: +enum {
1: + AUTOP_INVALID = 0,
1: + AUTOP_HDD = 1,
1: + AUTOP_SSD_QD1 = 2,
1: + AUTOP_SSD_DFL = 3,
1: + AUTOP_SSD_FAST = 4,
1: +};
1: +
1: +struct ioc_params {
1: + u32 qos[6];
1: + u64 i_lcoefs[6];
1: + u64 lcoefs[6];
1: + u32 too_fast_vrate_pct;
1: + u32 too_slow_vrate_pct;
1: +};
1: +
1: +struct ioc_margins {
1: + s64 min;
1: + s64 low;
1: + s64 target;
1: +};
1: +
1: +struct ioc_missed {
1: + local_t nr_met;
1: + local_t nr_missed;
1: + u32 last_met;
1: + u32 last_missed;
1: +};
1: +
1: +struct ioc_pcpu_stat {
1: + struct ioc_missed missed[2];
1: + local64_t rq_wait_ns;
1: + u64 last_rq_wait_ns;
1: +};
1: +
1: +struct ioc {
1: + struct rq_qos rqos;
1: + bool enabled;
1: + struct ioc_params params;
1: + struct ioc_margins margins;
1: + u32 period_us;
1: + u32 timer_slack_ns;
1: + u64 vrate_min;
1: + u64 vrate_max;
1: + spinlock_t lock;
1: + struct timer_list timer;
1: + struct list_head active_iocgs;
1: + struct ioc_pcpu_stat *pcpu_stat;
1: + enum ioc_running running;
1: + atomic64_t vtime_rate;
1: + u64 vtime_base_rate;
1: + s64 vtime_err;
1: + seqcount_spinlock_t period_seqcount;
1: + u64 period_at;
1: + u64 period_at_vtime;
1: + atomic64_t cur_period;
1: + int busy_level;
1: + bool weights_updated;
1: + atomic_t hweight_gen;
1: + u64 dfgv_period_at;
1: + u64 dfgv_period_rem;
1: + u64 dfgv_usage_us_sum;
1: + u64 autop_too_fast_at;
1: + u64 autop_too_slow_at;
1: + int autop_idx;
1: + bool user_qos_params: 1;
1: + bool user_cost_model: 1;
1: +};
1: +
1: +struct iocg_pcpu_stat {
1: + local64_t abs_vusage;
1: +};
1: +
1: +struct iocg_stat {
1: + u64 usage_us;
1: + u64 wait_us;
1: + u64 indebt_us;
1: + u64 indelay_us;
1: +};
1: +
1: +struct ioc_gq {
1: + struct blkg_policy_data pd;
1: + struct ioc *ioc;
1: + u32 cfg_weight;
1: + u32 weight;
1: + u32 active;
1: + u32 inuse;
1: + u32 last_inuse;
1: + s64 saved_margin;
1: + sector_t cursor;
1: + atomic64_t vtime;
1: + atomic64_t done_vtime;
1: + u64 abs_vdebt;
1: + u64 delay;
1: + u64 delay_at;
1: + atomic64_t active_period;
1: + struct list_head active_list;
1: + u64 child_active_sum;
1: + u64 child_inuse_sum;
1: + u64 child_adjusted_sum;
1: + int hweight_gen;
1: + u32 hweight_active;
1: + u32 hweight_inuse;
1: + u32 hweight_donating;
1: + u32 hweight_after_donation;
1: + struct list_head walk_list;
1: + struct list_head surplus_list;
1: + struct wait_queue_head waitq;
1: + struct hrtimer waitq_timer;
1: + u64 activated_at;
1: + struct iocg_pcpu_stat *pcpu_stat;
1: + struct iocg_stat local_stat;
1: + struct iocg_stat desc_stat;
1: + struct iocg_stat last_stat;
1: + u64 last_stat_abs_vusage;
1: + u64 usage_delta_us;
1: + u64 wait_since;
1: + u64 indebt_since;
1: + u64 indelay_since;
1: + int level;
1: + struct ioc_gq *ancestors[0];
1: +};
1: +
1: +struct ioc_cgrp {
1: + struct blkcg_policy_data cpd;
1: + unsigned int dfl_weight;
1: +};
1: +
1: +struct ioc_now {
1: + u64 now_ns;
1: + u64 now;
1: + u64 vnow;
1: + u64 vrate;
1: +};
1: +
1: +struct iocg_wait {
1: + struct wait_queue_entry wait;
1: + struct bio *bio;
1: + u64 abs_cost;
1: + bool committed;
1: +};
1: +
1: +struct iocg_wake_ctx {
1: + struct ioc_gq *iocg;
1: + u32 hw_inuse;
1: + s64 vbudget;
1: +};
1: +
1: +struct trace_event_raw_iocost_iocg_activate {
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u64 vnow;
1: + u64 vrate;
1: + u64 last_period;
1: + u64 cur_period;
1: + u64 vtime;
1: + u32 weight;
1: + u32 inuse;
1: + u64 hweight_active;
1: + u64 hweight_inuse;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iocg_inuse_update {
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u32 old_inuse;
1: + u32 new_inuse;
1: + u64 old_hweight_inuse;
1: + u64 new_hweight_inuse;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iocost_ioc_vrate_adj {
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u64 old_vrate;
1: + u64 new_vrate;
1: + int busy_level;
1: + u32 read_missed_ppm;
1: + u32 write_missed_ppm;
1: + u32 rq_wait_pct;
1: + int nr_lagging;
1: + int nr_shortages;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iocost_iocg_forgive_debt {
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u64 vnow;
1: + u32 usage_pct;
1: + u64 old_debt;
1: + u64 new_debt;
1: + u64 old_delay;
1: + u64 new_delay;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_iocost_iocg_activate {
1: + u32 devname;
1: + u32 cgroup;
1: +};
1: +
1: +struct trace_event_data_offsets_iocg_inuse_update {
1: + u32 devname;
1: + u32 cgroup;
1: +};
1: +
1: +struct trace_event_data_offsets_iocost_ioc_vrate_adj {
1: + u32 devname;
1: +};
1: +
1: +struct trace_event_data_offsets_iocost_iocg_forgive_debt {
1: + u32 devname;
1: + u32 cgroup;
1: +};
1: +
1: +typedef void (*btf_trace_iocost_iocg_activate)(void *, struct ioc_gq *, const char *, struct ioc_now *, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_iocost_inuse_shortage)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +
1: +typedef void (*btf_trace_iocost_inuse_transfer)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +
1: +typedef void (*btf_trace_iocost_inuse_adjust)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +
1: +typedef void (*btf_trace_iocost_ioc_vrate_adj)(void *, struct ioc *, u64, u32 *, u32, int, int);
1: +
1: +typedef void (*btf_trace_iocost_iocg_forgive_debt)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u64, u64, u64, u64);
1: +
1: +struct deadline_data {
1: + struct rb_root sort_list[2];
1: + struct list_head fifo_list[2];
1: + struct request *next_rq[2];
1: + unsigned int batching;
1: + unsigned int starved;
1: + int fifo_expire[2];
1: + int fifo_batch;
1: + int writes_starved;
1: + int front_merges;
1: + spinlock_t lock;
1: + spinlock_t zone_lock;
1: + struct list_head dispatch;
1: +};
1: +
1: +struct bfq_entity;
1: +
1: +struct bfq_service_tree {
1: + struct rb_root active;
1: + struct rb_root idle;
1: + struct bfq_entity *first_idle;
1: + struct bfq_entity *last_idle;
1: + u64 vtime;
1: + long unsigned int wsum;
1: +};
1: +
1: +struct bfq_sched_data;
1: +
1: +struct bfq_entity {
1: + struct rb_node rb_node;
1: + bool on_st_or_in_serv;
1: + u64 start;
1: + u64 finish;
1: + struct rb_root *tree;
1: + u64 min_start;
1: + int service;
1: + int budget;
1: + int dev_weight;
1: + int weight;
1: + int new_weight;
1: + int orig_weight;
1: + struct bfq_entity *parent;
1: + struct bfq_sched_data *my_sched_data;
1: + struct bfq_sched_data *sched_data;
1: + int prio_changed;
1: + bool in_groups_with_pending_reqs;
1: +};
1: +
1: +struct bfq_sched_data {
1: + struct bfq_entity *in_service_entity;
1: + struct bfq_entity *next_in_service;
1: + struct bfq_service_tree service_tree[3];
1: + long unsigned int bfq_class_idle_last_service;
1: +};
1: +
1: +struct bfq_weight_counter {
1: + unsigned int weight;
1: + unsigned int num_active;
1: + struct rb_node weights_node;
1: +};
1: +
1: +struct bfq_ttime {
1: + u64 last_end_request;
1: + u64 ttime_total;
1: + long unsigned int ttime_samples;
1: + u64 ttime_mean;
1: +};
1: +
1: +struct bfq_data;
1: +
1: +struct bfq_io_cq;
1: +
1: +struct bfq_queue {
1: + int ref;
1: + struct bfq_data *bfqd;
1: + short unsigned int ioprio;
1: + short unsigned int ioprio_class;
1: + short unsigned int new_ioprio;
1: + short unsigned int new_ioprio_class;
1: + u64 last_serv_time_ns;
1: + unsigned int inject_limit;
1: + long unsigned int decrease_time_jif;
1: + struct bfq_queue *new_bfqq;
1: + struct rb_node pos_node;
1: + struct rb_root *pos_root;
1: + struct rb_root sort_list;
1: + struct request *next_rq;
1: + int queued[2];
1: + int allocated;
1: + int meta_pending;
1: + struct list_head fifo;
1: + struct bfq_entity entity;
1: + struct bfq_weight_counter *weight_counter;
1: + int max_budget;
1: + long unsigned int budget_timeout;
1: + int dispatched;
1: + long unsigned int flags;
1: + struct list_head bfqq_list;
1: + struct bfq_ttime ttime;
1: + u32 seek_history;
1: + struct hlist_node burst_list_node;
1: + sector_t last_request_pos;
1: + unsigned int requests_within_timer;
1: + pid_t pid;
1: + struct bfq_io_cq *bic;
1: + long unsigned int wr_cur_max_time;
1: + long unsigned int soft_rt_next_start;
1: + long unsigned int last_wr_start_finish;
1: + unsigned int wr_coeff;
1: + long unsigned int last_idle_bklogged;
1: + long unsigned int service_from_backlogged;
1: + long unsigned int service_from_wr;
1: + long unsigned int wr_start_at_switch_to_srt;
1: + long unsigned int split_time;
1: + long unsigned int first_IO_time;
1: + u32 max_service_rate;
1: + struct bfq_queue *waker_bfqq;
1: + struct hlist_node woken_list_node;
1: + struct hlist_head woken_list;
1: +};
1: +
1: +struct bfq_group;
1: +
1: +struct bfq_data {
1: + struct request_queue *queue;
1: + struct list_head dispatch;
1: + struct bfq_group *root_group;
1: + struct rb_root_cached queue_weights_tree;
1: + unsigned int num_groups_with_pending_reqs;
1: + unsigned int busy_queues[3];
1: + int wr_busy_queues;
1: + int queued;
1: + int rq_in_driver;
1: + bool nonrot_with_queueing;
1: + int max_rq_in_driver;
1: + int hw_tag_samples;
1: + int hw_tag;
1: + int budgets_assigned;
1: + struct hrtimer idle_slice_timer;
1: + struct bfq_queue *in_service_queue;
1: + sector_t last_position;
1: + sector_t in_serv_last_pos;
1: + u64 last_completion;
1: + struct bfq_queue *last_completed_rq_bfqq;
1: + u64 last_empty_occupied_ns;
1: + bool wait_dispatch;
1: + struct request *waited_rq;
1: + bool rqs_injected;
1: + u64 first_dispatch;
1: + u64 last_dispatch;
1: + ktime_t last_budget_start;
1: + ktime_t last_idling_start;
1: + long unsigned int last_idling_start_jiffies;
1: + int peak_rate_samples;
1: + u32 sequential_samples;
1: + u64 tot_sectors_dispatched;
1: + u32 last_rq_max_size;
1: + u64 delta_from_first;
1: + u32 peak_rate;
1: + int bfq_max_budget;
1: + struct list_head active_list;
1: + struct list_head idle_list;
1: + u64 bfq_fifo_expire[2];
1: + unsigned int bfq_back_penalty;
1: + unsigned int bfq_back_max;
1: + u32 bfq_slice_idle;
1: + int bfq_user_max_budget;
1: + unsigned int bfq_timeout;
1: + unsigned int bfq_requests_within_timer;
1: + bool strict_guarantees;
1: + long unsigned int last_ins_in_burst;
1: + long unsigned int bfq_burst_interval;
1: + int burst_size;
1: + struct bfq_entity *burst_parent_entity;
1: + long unsigned int bfq_large_burst_thresh;
1: + bool large_burst;
1: + struct hlist_head burst_list;
1: + bool low_latency;
1: + unsigned int bfq_wr_coeff;
1: + unsigned int bfq_wr_max_time;
1: + unsigned int bfq_wr_rt_max_time;
1: + unsigned int bfq_wr_min_idle_time;
1: + long unsigned int bfq_wr_min_inter_arr_async;
1: + unsigned int bfq_wr_max_softrt_rate;
1: + u64 rate_dur_prod;
1: + struct bfq_queue oom_bfqq;
1: + spinlock_t lock;
1: + struct bfq_io_cq *bio_bic;
1: + struct bfq_queue *bio_bfqq;
1: + unsigned int word_depths[4];
1: +};
1: +
1: +struct bfq_io_cq {
1: + struct io_cq icq;
1: + struct bfq_queue *bfqq[2];
1: + int ioprio;
1: + uint64_t blkcg_serial_nr;
1: + bool saved_has_short_ttime;
1: + bool saved_IO_bound;
1: + bool saved_in_large_burst;
1: + bool was_in_burst_list;
1: + unsigned int saved_weight;
1: + long unsigned int saved_wr_coeff;
1: + long unsigned int saved_last_wr_start_finish;
1: + long unsigned int saved_wr_start_at_switch_to_srt;
1: + unsigned int saved_wr_cur_max_time;
1: + struct bfq_ttime saved_ttime;
1: +};
1: +
1: +struct bfqg_stats {
1: + struct blkg_rwstat bytes;
1: + struct blkg_rwstat ios;
1: +};
1: +
1: +struct bfq_group {
1: + struct blkg_policy_data pd;
1: + char blkg_path[128];
1: + int ref;
1: + struct bfq_entity entity;
1: + struct bfq_sched_data sched_data;
1: + void *bfqd;
1: + struct bfq_queue *async_bfqq[16];
1: + struct bfq_queue *async_idle_bfqq;
1: + struct bfq_entity *my_entity;
1: + int active_entities;
1: + struct rb_root rq_pos_tree;
1: + struct bfqg_stats stats;
1: +};
1: +
1: +enum bfqq_state_flags {
1: + BFQQF_just_created = 0,
1: + BFQQF_busy = 1,
1: + BFQQF_wait_request = 2,
1: + BFQQF_non_blocking_wait_rq = 3,
1: + BFQQF_fifo_expire = 4,
1: + BFQQF_has_short_ttime = 5,
1: + BFQQF_sync = 6,
1: + BFQQF_IO_bound = 7,
1: + BFQQF_in_large_burst = 8,
1: + BFQQF_softrt_update = 9,
1: + BFQQF_coop = 10,
1: + BFQQF_split_coop = 11,
1: + BFQQF_has_waker = 12,
1: +};
1: +
1: +enum bfqq_expiration {
1: + BFQQE_TOO_IDLE = 0,
1: + BFQQE_BUDGET_TIMEOUT = 1,
1: + BFQQE_BUDGET_EXHAUSTED = 2,
1: + BFQQE_NO_MORE_REQUESTS = 3,
1: + BFQQE_PREEMPTED = 4,
1: +};
1: +
1: +struct bfq_group_data {
1: + struct blkcg_policy_data pd;
1: + unsigned int weight;
1: +};
1: +
1: +enum bip_flags {
1: + BIP_BLOCK_INTEGRITY = 1,
1: + BIP_MAPPED_INTEGRITY = 2,
1: + BIP_CTRL_NOCHECK = 4,
1: + BIP_DISK_NOCHECK = 8,
1: + BIP_IP_CHECKSUM = 16,
1: +};
1: +
1: +enum blk_integrity_flags {
1: + BLK_INTEGRITY_VERIFY = 1,
1: + BLK_INTEGRITY_GENERATE = 2,
1: + BLK_INTEGRITY_DEVICE_CAPABLE = 4,
1: + BLK_INTEGRITY_IP_CHECKSUM = 8,
1: +};
1: +
1: +struct integrity_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_integrity *, char *);
1: + ssize_t (*store)(struct blk_integrity *, const char *, size_t);
1: +};
1: +
1: +enum t10_dif_type {
1: + T10_PI_TYPE0_PROTECTION = 0,
1: + T10_PI_TYPE1_PROTECTION = 1,
1: + T10_PI_TYPE2_PROTECTION = 2,
1: + T10_PI_TYPE3_PROTECTION = 3,
1: +};
1: +
1: +struct t10_pi_tuple {
1: + __be16 guard_tag;
1: + __be16 app_tag;
1: + __be32 ref_tag;
1: +};
1: +
1: +typedef __be16 csum_fn(void *, unsigned int);
1: +
1: +struct virtio_device_id {
1: + __u32 device;
1: + __u32 vendor;
1: +};
1: +
1: +struct virtio_device;
1: +
1: +struct virtqueue {
1: + struct list_head list;
1: + void (*callback)(struct virtqueue *);
1: + const char *name;
1: + struct virtio_device *vdev;
1: + unsigned int index;
1: + unsigned int num_free;
1: + void *priv;
1: +};
1: +
1: +struct vringh_config_ops;
1: +
1: +struct virtio_config_ops;
1: +
1: +struct virtio_device {
1: + int index;
1: + bool failed;
1: + bool config_enabled;
1: + bool config_change_pending;
1: + spinlock_t config_lock;
1: + struct device dev;
1: + struct virtio_device_id id;
1: + const struct virtio_config_ops *config;
1: + const struct vringh_config_ops *vringh_config;
1: + struct list_head vqs;
1: + u64 features;
1: + void *priv;
1: +};
1: +
1: +typedef void vq_callback_t(struct virtqueue *);
1: +
1: +struct irq_affinity___2;
1: +
1: +struct virtio_shm_region;
1: +
1: +struct virtio_config_ops {
1: + void (*get)(struct virtio_device *, unsigned int, void *, unsigned int);
1: + void (*set)(struct virtio_device *, unsigned int, const void *, unsigned int);
1: + u32 (*generation)(struct virtio_device *);
1: + u8 (*get_status)(struct virtio_device *);
1: + void (*set_status)(struct virtio_device *, u8);
1: + void (*reset)(struct virtio_device *);
1: + int (*find_vqs)(struct virtio_device *, unsigned int, struct virtqueue **, vq_callback_t **, const char * const *, const bool *, struct irq_affinity___2 *);
1: + void (*del_vqs)(struct virtio_device *);
1: + u64 (*get_features)(struct virtio_device *);
1: + int (*finalize_features)(struct virtio_device *);
1: + const char * (*bus_name)(struct virtio_device *);
1: + int (*set_vq_affinity)(struct virtqueue *, const struct cpumask *);
1: + const struct cpumask * (*get_vq_affinity)(struct virtio_device *, int);
1: + bool (*get_shm_region)(struct virtio_device *, struct virtio_shm_region *, u8);
1: +};
1: +
1: +struct virtio_shm_region {
1: + u64 addr;
1: + u64 len;
1: +};
1: +
1: +struct irq_poll;
1: +
1: +typedef int irq_poll_fn(struct irq_poll *, int);
1: +
1: +struct irq_poll {
1: + struct list_head list;
1: + long unsigned int state;
1: + int weight;
1: + irq_poll_fn *poll;
1: +};
1: +
1: +struct dim_sample {
1: + ktime_t time;
1: + u32 pkt_ctr;
1: + u32 byte_ctr;
1: + u16 event_ctr;
1: + u32 comp_ctr;
1: +};
1: +
1: +struct dim_stats {
1: + int ppms;
1: + int bpms;
1: + int epms;
1: + int cpms;
1: + int cpe_ratio;
1: +};
1: +
1: +struct dim {
1: + u8 state;
1: + struct dim_stats prev_stats;
1: + struct dim_sample start_sample;
1: + struct dim_sample measuring_sample;
1: + struct work_struct work;
1: + void *priv;
1: + u8 profile_ix;
1: + u8 mode;
1: + u8 tune_state;
1: + u8 steps_right;
1: + u8 steps_left;
1: + u8 tired;
1: +};
1: +
1: +enum rdma_nl_counter_mode {
1: + RDMA_COUNTER_MODE_NONE = 0,
1: + RDMA_COUNTER_MODE_AUTO = 1,
1: + RDMA_COUNTER_MODE_MANUAL = 2,
1: + RDMA_COUNTER_MODE_MAX = 3,
1: +};
1: +
1: +enum rdma_nl_counter_mask {
1: + RDMA_COUNTER_MASK_QP_TYPE = 1,
1: + RDMA_COUNTER_MASK_PID = 2,
1: +};
1: +
1: +enum rdma_restrack_type {
1: + RDMA_RESTRACK_PD = 0,
1: + RDMA_RESTRACK_CQ = 1,
1: + RDMA_RESTRACK_QP = 2,
1: + RDMA_RESTRACK_CM_ID = 3,
1: + RDMA_RESTRACK_MR = 4,
1: + RDMA_RESTRACK_CTX = 5,
1: + RDMA_RESTRACK_COUNTER = 6,
1: + RDMA_RESTRACK_MAX = 7,
1: +};
1: +
1: +struct rdma_restrack_entry {
1: + bool valid;
1: + struct kref kref;
1: + struct completion comp;
1: + struct task_struct *task;
1: + const char *kern_name;
1: + enum rdma_restrack_type type;
1: + bool user;
1: + u32 id;
1: +};
1: +
1: +struct rdma_link_ops {
1: + struct list_head list;
1: + const char *type;
1: + int (*newlink)(const char *, struct net_device *);
1: +};
1: +
1: +struct auto_mode_param {
1: + int qp_type;
1: +};
1: +
1: +struct rdma_counter_mode {
1: + enum rdma_nl_counter_mode mode;
1: + enum rdma_nl_counter_mask mask;
1: + struct auto_mode_param param;
1: +};
1: +
1: +struct rdma_hw_stats;
1: +
1: +struct rdma_port_counter {
1: + struct rdma_counter_mode mode;
1: + struct rdma_hw_stats *hstats;
1: + unsigned int num_counters;
1: + struct mutex lock;
1: +};
1: +
1: +struct rdma_hw_stats {
1: + struct mutex lock;
1: + long unsigned int timestamp;
1: + long unsigned int lifespan;
1: + const char * const *names;
1: + int num_counters;
1: + u64 value[0];
1: +};
1: +
1: +struct ib_device;
1: +
1: +struct rdma_counter {
1: + struct rdma_restrack_entry res;
1: + struct ib_device *device;
1: + uint32_t id;
1: + struct kref kref;
1: + struct rdma_counter_mode mode;
1: + struct mutex lock;
1: + struct rdma_hw_stats *stats;
1: + u8 port;
1: +};
1: +
1: +enum rdma_driver_id {
1: + RDMA_DRIVER_UNKNOWN = 0,
1: + RDMA_DRIVER_MLX5 = 1,
1: + RDMA_DRIVER_MLX4 = 2,
1: + RDMA_DRIVER_CXGB3 = 3,
1: + RDMA_DRIVER_CXGB4 = 4,
1: + RDMA_DRIVER_MTHCA = 5,
1: + RDMA_DRIVER_BNXT_RE = 6,
1: + RDMA_DRIVER_OCRDMA = 7,
1: + RDMA_DRIVER_NES = 8,
1: + RDMA_DRIVER_I40IW = 9,
1: + RDMA_DRIVER_VMW_PVRDMA = 10,
1: + RDMA_DRIVER_QEDR = 11,
1: + RDMA_DRIVER_HNS = 12,
1: + RDMA_DRIVER_USNIC = 13,
1: + RDMA_DRIVER_RXE = 14,
1: + RDMA_DRIVER_HFI1 = 15,
1: + RDMA_DRIVER_QIB = 16,
1: + RDMA_DRIVER_EFA = 17,
1: + RDMA_DRIVER_SIW = 18,
1: +};
1: +
1: +enum ib_cq_notify_flags {
1: + IB_CQ_SOLICITED = 1,
1: + IB_CQ_NEXT_COMP = 2,
1: + IB_CQ_SOLICITED_MASK = 3,
1: + IB_CQ_REPORT_MISSED_EVENTS = 4,
1: +};
1: +
1: +struct ib_mad;
1: +
1: +enum rdma_link_layer {
1: + IB_LINK_LAYER_UNSPECIFIED = 0,
1: + IB_LINK_LAYER_INFINIBAND = 1,
1: + IB_LINK_LAYER_ETHERNET = 2,
1: +};
1: +
1: +enum rdma_netdev_t {
1: + RDMA_NETDEV_OPA_VNIC = 0,
1: + RDMA_NETDEV_IPOIB = 1,
1: +};
1: +
1: +enum ib_srq_attr_mask {
1: + IB_SRQ_MAX_WR = 1,
1: + IB_SRQ_LIMIT = 2,
1: +};
1: +
1: +enum ib_mr_type {
1: + IB_MR_TYPE_MEM_REG = 0,
1: + IB_MR_TYPE_SG_GAPS = 1,
1: + IB_MR_TYPE_DM = 2,
1: + IB_MR_TYPE_USER = 3,
1: + IB_MR_TYPE_DMA = 4,
1: + IB_MR_TYPE_INTEGRITY = 5,
1: +};
1: +
1: +enum ib_uverbs_advise_mr_advice {
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH = 0,
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE = 1,
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT = 2,
1: +};
1: +
1: +struct uverbs_attr_bundle;
1: +
1: +struct rdma_cm_id;
1: +
1: +struct iw_cm_id;
1: +
1: +struct iw_cm_conn_param;
1: +
1: +struct ib_qp;
1: +
1: +struct ib_send_wr;
1: +
1: +struct ib_recv_wr;
1: +
1: +struct ib_cq;
1: +
1: +struct ib_wc;
1: +
1: +struct ib_srq;
1: +
1: +struct ib_grh;
1: +
1: +struct ib_device_attr;
1: +
1: +struct ib_udata;
1: +
1: +struct ib_device_modify;
1: +
1: +struct ib_port_attr;
1: +
1: +struct ib_port_modify;
1: +
1: +struct ib_port_immutable;
1: +
1: +struct rdma_netdev_alloc_params;
1: +
1: +union ib_gid;
1: +
1: +struct ib_gid_attr;
1: +
1: +struct ib_ucontext;
1: +
1: +struct rdma_user_mmap_entry;
1: +
1: +struct ib_pd;
1: +
1: +struct ib_ah;
1: +
1: +struct rdma_ah_init_attr;
1: +
1: +struct rdma_ah_attr;
1: +
1: +struct ib_srq_init_attr;
1: +
1: +struct ib_srq_attr;
1: +
1: +struct ib_qp_init_attr;
1: +
1: +struct ib_qp_attr;
1: +
1: +struct ib_cq_init_attr;
1: +
1: +struct ib_mr;
1: +
1: +struct ib_sge;
1: +
1: +struct ib_mr_status;
1: +
1: +struct ib_mw;
1: +
1: +struct ib_xrcd;
1: +
1: +struct ib_flow;
1: +
1: +struct ib_flow_attr;
1: +
1: +struct ib_flow_action;
1: +
1: +struct ib_flow_action_attrs_esp;
1: +
1: +struct ib_wq;
1: +
1: +struct ib_wq_init_attr;
1: +
1: +struct ib_wq_attr;
1: +
1: +struct ib_rwq_ind_table;
1: +
1: +struct ib_rwq_ind_table_init_attr;
1: +
1: +struct ib_dm;
1: +
1: +struct ib_dm_alloc_attr;
1: +
1: +struct ib_dm_mr_attr;
1: +
1: +struct ib_counters;
1: +
1: +struct ib_counters_read_attr;
1: +
1: +struct ib_device_ops {
1: + struct module *owner;
1: + enum rdma_driver_id driver_id;
1: + u32 uverbs_abi_ver;
1: + unsigned int uverbs_no_driver_id_binding: 1;
1: + int (*post_send)(struct ib_qp *, const struct ib_send_wr *, const struct ib_send_wr **);
1: + int (*post_recv)(struct ib_qp *, const struct ib_recv_wr *, const struct ib_recv_wr **);
1: + void (*drain_rq)(struct ib_qp *);
1: + void (*drain_sq)(struct ib_qp *);
1: + int (*poll_cq)(struct ib_cq *, int, struct ib_wc *);
1: + int (*peek_cq)(struct ib_cq *, int);
1: + int (*req_notify_cq)(struct ib_cq *, enum ib_cq_notify_flags);
1: + int (*req_ncomp_notif)(struct ib_cq *, int);
1: + int (*post_srq_recv)(struct ib_srq *, const struct ib_recv_wr *, const struct ib_recv_wr **);
1: + int (*process_mad)(struct ib_device *, int, u8, const struct ib_wc *, const struct ib_grh *, const struct ib_mad *, struct ib_mad *, size_t *, u16 *);
1: + int (*query_device)(struct ib_device *, struct ib_device_attr *, struct ib_udata *);
1: + int (*modify_device)(struct ib_device *, int, struct ib_device_modify *);
1: + void (*get_dev_fw_str)(struct ib_device *, char *);
1: + const struct cpumask * (*get_vector_affinity)(struct ib_device *, int);
1: + int (*query_port)(struct ib_device *, u8, struct ib_port_attr *);
1: + int (*modify_port)(struct ib_device *, u8, int, struct ib_port_modify *);
1: + int (*get_port_immutable)(struct ib_device *, u8, struct ib_port_immutable *);
1: + enum rdma_link_layer (*get_link_layer)(struct ib_device *, u8);
1: + struct net_device * (*get_netdev)(struct ib_device *, u8);
1: + struct net_device * (*alloc_rdma_netdev)(struct ib_device *, u8, enum rdma_netdev_t, const char *, unsigned char, void (*)(struct net_device *));
1: + int (*rdma_netdev_get_params)(struct ib_device *, u8, enum rdma_netdev_t, struct rdma_netdev_alloc_params *);
1: + int (*query_gid)(struct ib_device *, u8, int, union ib_gid *);
1: + int (*add_gid)(const struct ib_gid_attr *, void **);
1: + int (*del_gid)(const struct ib_gid_attr *, void **);
1: + int (*query_pkey)(struct ib_device *, u8, u16, u16 *);
1: + int (*alloc_ucontext)(struct ib_ucontext *, struct ib_udata *);
1: + void (*dealloc_ucontext)(struct ib_ucontext *);
1: + int (*mmap)(struct ib_ucontext *, struct vm_area_struct *);
1: + void (*mmap_free)(struct rdma_user_mmap_entry *);
1: + void (*disassociate_ucontext)(struct ib_ucontext *);
1: + int (*alloc_pd)(struct ib_pd *, struct ib_udata *);
1: + int (*dealloc_pd)(struct ib_pd *, struct ib_udata *);
1: + int (*create_ah)(struct ib_ah *, struct rdma_ah_init_attr *, struct ib_udata *);
1: + int (*modify_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: + int (*query_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: + int (*destroy_ah)(struct ib_ah *, u32);
1: + int (*create_srq)(struct ib_srq *, struct ib_srq_init_attr *, struct ib_udata *);
1: + int (*modify_srq)(struct ib_srq *, struct ib_srq_attr *, enum ib_srq_attr_mask, struct ib_udata *);
1: + int (*query_srq)(struct ib_srq *, struct ib_srq_attr *);
1: + int (*destroy_srq)(struct ib_srq *, struct ib_udata *);
1: + struct ib_qp * (*create_qp)(struct ib_pd *, struct ib_qp_init_attr *, struct ib_udata *);
1: + int (*modify_qp)(struct ib_qp *, struct ib_qp_attr *, int, struct ib_udata *);
1: + int (*query_qp)(struct ib_qp *, struct ib_qp_attr *, int, struct ib_qp_init_attr *);
1: + int (*destroy_qp)(struct ib_qp *, struct ib_udata *);
1: + int (*create_cq)(struct ib_cq *, const struct ib_cq_init_attr *, struct ib_udata *);
1: + int (*modify_cq)(struct ib_cq *, u16, u16);
1: + int (*destroy_cq)(struct ib_cq *, struct ib_udata *);
1: + int (*resize_cq)(struct ib_cq *, int, struct ib_udata *);
1: + struct ib_mr * (*get_dma_mr)(struct ib_pd *, int);
1: + struct ib_mr * (*reg_user_mr)(struct ib_pd *, u64, u64, u64, int, struct ib_udata *);
1: + int (*rereg_user_mr)(struct ib_mr *, int, u64, u64, u64, int, struct ib_pd *, struct ib_udata *);
1: + int (*dereg_mr)(struct ib_mr *, struct ib_udata *);
1: + struct ib_mr * (*alloc_mr)(struct ib_pd *, enum ib_mr_type, u32);
1: + struct ib_mr * (*alloc_mr_integrity)(struct ib_pd *, u32, u32);
1: + int (*advise_mr)(struct ib_pd *, enum ib_uverbs_advise_mr_advice, u32, struct ib_sge *, u32, struct uverbs_attr_bundle *);
1: + int (*map_mr_sg)(struct ib_mr *, struct scatterlist *, int, unsigned int *);
1: + int (*check_mr_status)(struct ib_mr *, u32, struct ib_mr_status *);
1: + int (*alloc_mw)(struct ib_mw *, struct ib_udata *);
1: + int (*dealloc_mw)(struct ib_mw *);
1: + int (*attach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: + int (*detach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: + int (*alloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: + int (*dealloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: + struct ib_flow * (*create_flow)(struct ib_qp *, struct ib_flow_attr *, struct ib_udata *);
1: + int (*destroy_flow)(struct ib_flow *);
1: + struct ib_flow_action * (*create_flow_action_esp)(struct ib_device *, const struct ib_flow_action_attrs_esp *, struct uverbs_attr_bundle *);
1: + int (*destroy_flow_action)(struct ib_flow_action *);
1: + int (*modify_flow_action_esp)(struct ib_flow_action *, const struct ib_flow_action_attrs_esp *, struct uverbs_attr_bundle *);
1: + int (*set_vf_link_state)(struct ib_device *, int, u8, int);
1: + int (*get_vf_config)(struct ib_device *, int, u8, struct ifla_vf_info *);
1: + int (*get_vf_stats)(struct ib_device *, int, u8, struct ifla_vf_stats *);
1: + int (*get_vf_guid)(struct ib_device *, int, u8, struct ifla_vf_guid *, struct ifla_vf_guid *);
1: + int (*set_vf_guid)(struct ib_device *, int, u8, u64, int);
1: + struct ib_wq * (*create_wq)(struct ib_pd *, struct ib_wq_init_attr *, struct ib_udata *);
1: + int (*destroy_wq)(struct ib_wq *, struct ib_udata *);
1: + int (*modify_wq)(struct ib_wq *, struct ib_wq_attr *, u32, struct ib_udata *);
1: + int (*create_rwq_ind_table)(struct ib_rwq_ind_table *, struct ib_rwq_ind_table_init_attr *, struct ib_udata *);
1: + int (*destroy_rwq_ind_table)(struct ib_rwq_ind_table *);
1: + struct ib_dm * (*alloc_dm)(struct ib_device *, struct ib_ucontext *, struct ib_dm_alloc_attr *, struct uverbs_attr_bundle *);
1: + int (*dealloc_dm)(struct ib_dm *, struct uverbs_attr_bundle *);
1: + struct ib_mr * (*reg_dm_mr)(struct ib_pd *, struct ib_dm *, struct ib_dm_mr_attr *, struct uverbs_attr_bundle *);
1: + int (*create_counters)(struct ib_counters *, struct uverbs_attr_bundle *);
1: + int (*destroy_counters)(struct ib_counters *);
1: + int (*read_counters)(struct ib_counters *, struct ib_counters_read_attr *, struct uverbs_attr_bundle *);
1: + int (*map_mr_sg_pi)(struct ib_mr *, struct scatterlist *, int, unsigned int *, struct scatterlist *, int, unsigned int *);
1: + struct rdma_hw_stats * (*alloc_hw_stats)(struct ib_device *, u8);
1: + int (*get_hw_stats)(struct ib_device *, struct rdma_hw_stats *, u8, int);
1: + int (*init_port)(struct ib_device *, u8, struct kobject *);
1: + int (*fill_res_mr_entry)(struct sk_buff *, struct ib_mr *);
1: + int (*fill_res_mr_entry_raw)(struct sk_buff *, struct ib_mr *);
1: + int (*fill_res_cq_entry)(struct sk_buff *, struct ib_cq *);
1: + int (*fill_res_cq_entry_raw)(struct sk_buff *, struct ib_cq *);
1: + int (*fill_res_qp_entry)(struct sk_buff *, struct ib_qp *);
1: + int (*fill_res_qp_entry_raw)(struct sk_buff *, struct ib_qp *);
1: + int (*fill_res_cm_id_entry)(struct sk_buff *, struct rdma_cm_id *);
1: + int (*enable_driver)(struct ib_device *);
1: + void (*dealloc_driver)(struct ib_device *);
1: + void (*iw_add_ref)(struct ib_qp *);
1: + void (*iw_rem_ref)(struct ib_qp *);
1: + struct ib_qp * (*iw_get_qp)(struct ib_device *, int);
1: + int (*iw_connect)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: + int (*iw_accept)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: + int (*iw_reject)(struct iw_cm_id *, const void *, u8);
1: + int (*iw_create_listen)(struct iw_cm_id *, int);
1: + int (*iw_destroy_listen)(struct iw_cm_id *);
1: + int (*counter_bind_qp)(struct rdma_counter *, struct ib_qp *);
1: + int (*counter_unbind_qp)(struct ib_qp *);
1: + int (*counter_dealloc)(struct rdma_counter *);
1: + struct rdma_hw_stats * (*counter_alloc_stats)(struct rdma_counter *);
1: + int (*counter_update_stats)(struct rdma_counter *);
1: + int (*fill_stat_mr_entry)(struct sk_buff *, struct ib_mr *);
1: + int (*query_ucontext)(struct ib_ucontext *, struct uverbs_attr_bundle *);
1: + size_t size_ib_ah;
1: + size_t size_ib_counters;
1: + size_t size_ib_cq;
1: + size_t size_ib_mw;
1: + size_t size_ib_pd;
1: + size_t size_ib_rwq_ind_table;
1: + size_t size_ib_srq;
1: + size_t size_ib_ucontext;
1: + size_t size_ib_xrcd;
1: +};
1: +
1: +struct ib_core_device {
1: + struct device dev;
1: + possible_net_t rdma_net;
1: + struct kobject *ports_kobj;
1: + struct list_head port_list;
1: + struct ib_device *owner;
1: +};
1: +
1: +enum ib_atomic_cap {
1: + IB_ATOMIC_NONE = 0,
1: + IB_ATOMIC_HCA = 1,
1: + IB_ATOMIC_GLOB = 2,
1: +};
1: +
1: +struct ib_odp_caps {
1: + uint64_t general_caps;
1: + struct {
1: + uint32_t rc_odp_caps;
1: + uint32_t uc_odp_caps;
1: + uint32_t ud_odp_caps;
1: + uint32_t xrc_odp_caps;
1: + } per_transport_caps;
1: +};
1: +
1: +struct ib_rss_caps {
1: + u32 supported_qpts;
1: + u32 max_rwq_indirection_tables;
1: + u32 max_rwq_indirection_table_size;
1: +};
1: +
1: +struct ib_tm_caps {
1: + u32 max_rndv_hdr_size;
1: + u32 max_num_tags;
1: + u32 flags;
1: + u32 max_ops;
1: + u32 max_sge;
1: +};
1: +
1: +struct ib_cq_caps {
1: + u16 max_cq_moderation_count;
1: + u16 max_cq_moderation_period;
1: +};
1: +
1: +struct ib_device_attr {
1: + u64 fw_ver;
1: + __be64 sys_image_guid;
1: + u64 max_mr_size;
1: + u64 page_size_cap;
1: + u32 vendor_id;
1: + u32 vendor_part_id;
1: + u32 hw_ver;
1: + int max_qp;
1: + int max_qp_wr;
1: + u64 device_cap_flags;
1: + int max_send_sge;
1: + int max_recv_sge;
1: + int max_sge_rd;
1: + int max_cq;
1: + int max_cqe;
1: + int max_mr;
1: + int max_pd;
1: + int max_qp_rd_atom;
1: + int max_ee_rd_atom;
1: + int max_res_rd_atom;
1: + int max_qp_init_rd_atom;
1: + int max_ee_init_rd_atom;
1: + enum ib_atomic_cap atomic_cap;
1: + enum ib_atomic_cap masked_atomic_cap;
1: + int max_ee;
1: + int max_rdd;
1: + int max_mw;
1: + int max_raw_ipv6_qp;
1: + int max_raw_ethy_qp;
1: + int max_mcast_grp;
1: + int max_mcast_qp_attach;
1: + int max_total_mcast_qp_attach;
1: + int max_ah;
1: + int max_srq;
1: + int max_srq_wr;
1: + int max_srq_sge;
1: + unsigned int max_fast_reg_page_list_len;
1: + unsigned int max_pi_fast_reg_page_list_len;
1: + u16 max_pkeys;
1: + u8 local_ca_ack_delay;
1: + int sig_prot_cap;
1: + int sig_guard_cap;
1: + struct ib_odp_caps odp_caps;
1: + uint64_t timestamp_mask;
1: + uint64_t hca_core_clock;
1: + struct ib_rss_caps rss_caps;
1: + u32 max_wq_type_rq;
1: + u32 raw_packet_caps;
1: + struct ib_tm_caps tm_caps;
1: + struct ib_cq_caps cq_caps;
1: + u64 max_dm_size;
1: + u32 max_sgl_rd;
1: +};
1: +
1: +struct rdma_restrack_root;
1: +
1: +struct uapi_definition;
1: +
1: +struct ib_port_data;
1: +
1: +struct ib_device {
1: + struct device *dma_device;
1: + struct ib_device_ops ops;
1: + char name[64];
1: + struct callback_head callback_head;
1: + struct list_head event_handler_list;
1: + struct rw_semaphore event_handler_rwsem;
1: + spinlock_t qp_open_list_lock;
1: + struct rw_semaphore client_data_rwsem;
1: + struct xarray client_data;
1: + struct mutex unregistration_lock;
1: + rwlock_t cache_lock;
1: + struct ib_port_data *port_data;
1: + int num_comp_vectors;
1: + union {
1: + struct device dev;
1: + struct ib_core_device coredev;
1: + };
1: + const struct attribute_group *groups[3];
1: + u64 uverbs_cmd_mask;
1: + u64 uverbs_ex_cmd_mask;
1: + char node_desc[64];
1: + __be64 node_guid;
1: + u32 local_dma_lkey;
1: + u16 is_switch: 1;
1: + u16 kverbs_provider: 1;
1: + u16 use_cq_dim: 1;
1: + u8 node_type;
1: + u8 phys_port_cnt;
1: + struct ib_device_attr attrs;
1: + struct attribute_group *hw_stats_ag;
1: + struct rdma_hw_stats *hw_stats;
1: + u32 index;
1: + spinlock_t cq_pools_lock;
1: + struct list_head cq_pools[3];
1: + struct rdma_restrack_root *res;
1: + const struct uapi_definition *driver_def;
1: + refcount_t refcount;
1: + struct completion unreg_completion;
1: + struct work_struct unregistration_work;
1: + const struct rdma_link_ops *link_ops;
1: + struct mutex compat_devs_mutex;
1: + struct xarray compat_devs;
1: + char iw_ifname[16];
1: + u32 iw_driver_flags;
1: + u32 lag_flags;
1: +};
1: +
1: +enum ib_signature_type {
1: + IB_SIG_TYPE_NONE = 0,
1: + IB_SIG_TYPE_T10_DIF = 1,
1: +};
1: +
1: +enum ib_t10_dif_bg_type {
1: + IB_T10DIF_CRC = 0,
1: + IB_T10DIF_CSUM = 1,
1: +};
1: +
1: +struct ib_t10_dif_domain {
1: + enum ib_t10_dif_bg_type bg_type;
1: + u16 pi_interval;
1: + u16 bg;
1: + u16 app_tag;
1: + u32 ref_tag;
1: + bool ref_remap;
1: + bool app_escape;
1: + bool ref_escape;
1: + u16 apptag_check_mask;
1: +};
1: +
1: +struct ib_sig_domain {
1: + enum ib_signature_type sig_type;
1: + union {
1: + struct ib_t10_dif_domain dif;
1: + } sig;
1: +};
1: +
1: +struct ib_sig_attrs {
1: + u8 check_mask;
1: + struct ib_sig_domain mem;
1: + struct ib_sig_domain wire;
1: + int meta_length;
1: +};
1: +
1: +enum ib_sig_err_type {
1: + IB_SIG_BAD_GUARD = 0,
1: + IB_SIG_BAD_REFTAG = 1,
1: + IB_SIG_BAD_APPTAG = 2,
1: +};
1: +
1: +struct ib_sig_err {
1: + enum ib_sig_err_type err_type;
1: + u32 expected;
1: + u32 actual;
1: + u64 sig_err_offset;
1: + u32 key;
1: +};
1: +
1: +enum ib_uverbs_flow_action_esp_keymat {
1: + IB_UVERBS_FLOW_ACTION_ESP_KEYMAT_AES_GCM = 0,
1: +};
1: +
1: +struct ib_uverbs_flow_action_esp_keymat_aes_gcm {
1: + __u64 iv;
1: + __u32 iv_algo;
1: + __u32 salt;
1: + __u32 icv_len;
1: + __u32 key_len;
1: + __u32 aes_key[8];
1: +};
1: +
1: +enum ib_uverbs_flow_action_esp_replay {
1: + IB_UVERBS_FLOW_ACTION_ESP_REPLAY_NONE = 0,
1: + IB_UVERBS_FLOW_ACTION_ESP_REPLAY_BMP = 1,
1: +};
1: +
1: +struct ib_uverbs_flow_action_esp_replay_bmp {
1: + __u32 size;
1: +};
1: +
1: +union ib_gid {
1: + u8 raw[16];
1: + struct {
1: + __be64 subnet_prefix;
1: + __be64 interface_id;
1: + } global;
1: +};
1: +
1: +enum ib_gid_type {
1: + IB_GID_TYPE_IB = 0,
1: + IB_GID_TYPE_ROCE = 1,
1: + IB_GID_TYPE_ROCE_UDP_ENCAP = 2,
1: + IB_GID_TYPE_SIZE = 3,
1: +};
1: +
1: +struct ib_gid_attr {
1: + struct net_device *ndev;
1: + struct ib_device *device;
1: + union ib_gid gid;
1: + enum ib_gid_type gid_type;
1: + u16 index;
1: + u8 port_num;
1: +};
1: +
1: +struct ib_cq_init_attr {
1: + unsigned int cqe;
1: + u32 comp_vector;
1: + u32 flags;
1: +};
1: +
1: +struct ib_dm_mr_attr {
1: + u64 length;
1: + u64 offset;
1: + u32 access_flags;
1: +};
1: +
1: +struct ib_dm_alloc_attr {
1: + u64 length;
1: + u32 alignment;
1: + u32 flags;
1: +};
1: +
1: +enum ib_mtu {
1: + IB_MTU_256 = 1,
1: + IB_MTU_512 = 2,
1: + IB_MTU_1024 = 3,
1: + IB_MTU_2048 = 4,
1: + IB_MTU_4096 = 5,
1: +};
1: +
1: +enum ib_port_state {
1: + IB_PORT_NOP = 0,
1: + IB_PORT_DOWN = 1,
1: + IB_PORT_INIT = 2,
1: + IB_PORT_ARMED = 3,
1: + IB_PORT_ACTIVE = 4,
1: + IB_PORT_ACTIVE_DEFER = 5,
1: +};
1: +
1: +struct ib_port_attr {
1: + u64 subnet_prefix;
1: + enum ib_port_state state;
1: + enum ib_mtu max_mtu;
1: + enum ib_mtu active_mtu;
1: + u32 phys_mtu;
1: + int gid_tbl_len;
1: + unsigned int ip_gids: 1;
1: + u32 port_cap_flags;
1: + u32 max_msg_sz;
1: + u32 bad_pkey_cntr;
1: + u32 qkey_viol_cntr;
1: + u16 pkey_tbl_len;
1: + u32 sm_lid;
1: + u32 lid;
1: + u8 lmc;
1: + u8 max_vl_num;
1: + u8 sm_sl;
1: + u8 subnet_timeout;
1: + u8 init_type_reply;
1: + u8 active_width;
1: + u16 active_speed;
1: + u8 phys_state;
1: + u16 port_cap_flags2;
1: +};
1: +
1: +struct ib_device_modify {
1: + u64 sys_image_guid;
1: + char node_desc[64];
1: +};
1: +
1: +struct ib_port_modify {
1: + u32 set_port_cap_mask;
1: + u32 clr_port_cap_mask;
1: + u8 init_type;
1: +};
1: +
1: +enum ib_event_type {
1: + IB_EVENT_CQ_ERR = 0,
1: + IB_EVENT_QP_FATAL = 1,
1: + IB_EVENT_QP_REQ_ERR = 2,
1: + IB_EVENT_QP_ACCESS_ERR = 3,
1: + IB_EVENT_COMM_EST = 4,
1: + IB_EVENT_SQ_DRAINED = 5,
1: + IB_EVENT_PATH_MIG = 6,
1: + IB_EVENT_PATH_MIG_ERR = 7,
1: + IB_EVENT_DEVICE_FATAL = 8,
1: + IB_EVENT_PORT_ACTIVE = 9,
1: + IB_EVENT_PORT_ERR = 10,
1: + IB_EVENT_LID_CHANGE = 11,
1: + IB_EVENT_PKEY_CHANGE = 12,
1: + IB_EVENT_SM_CHANGE = 13,
1: + IB_EVENT_SRQ_ERR = 14,
1: + IB_EVENT_SRQ_LIMIT_REACHED = 15,
1: + IB_EVENT_QP_LAST_WQE_REACHED = 16,
1: + IB_EVENT_CLIENT_REREGISTER = 17,
1: + IB_EVENT_GID_CHANGE = 18,
1: + IB_EVENT_WQ_FATAL = 19,
1: +};
1: +
1: +struct ib_ucq_object;
1: +
1: +typedef void (*ib_comp_handler)(struct ib_cq *, void *);
1: +
1: +struct ib_event;
1: +
1: +struct ib_cq {
1: + struct ib_device *device;
1: + struct ib_ucq_object *uobject;
1: + ib_comp_handler comp_handler;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *cq_context;
1: + int cqe;
1: + unsigned int cqe_used;
1: + atomic_t usecnt;
1: + enum ib_poll_context poll_ctx;
1: + struct ib_wc *wc;
1: + struct list_head pool_entry;
1: + union {
1: + struct irq_poll iop;
1: + struct work_struct work;
1: + };
1: + struct workqueue_struct *comp_wq;
1: + struct dim *dim;
1: + ktime_t timestamp;
1: + u8 interrupt: 1;
1: + u8 shared: 1;
1: + unsigned int comp_vector;
1: + struct rdma_restrack_entry res;
1: +};
1: +
1: +struct ib_uqp_object;
1: +
1: +enum ib_qp_type {
1: + IB_QPT_SMI = 0,
1: + IB_QPT_GSI = 1,
1: + IB_QPT_RC = 2,
1: + IB_QPT_UC = 3,
1: + IB_QPT_UD = 4,
1: + IB_QPT_RAW_IPV6 = 5,
1: + IB_QPT_RAW_ETHERTYPE = 6,
1: + IB_QPT_RAW_PACKET = 8,
1: + IB_QPT_XRC_INI = 9,
1: + IB_QPT_XRC_TGT = 10,
1: + IB_QPT_MAX = 11,
1: + IB_QPT_DRIVER = 255,
1: + IB_QPT_RESERVED1 = 4096,
1: + IB_QPT_RESERVED2 = 4097,
1: + IB_QPT_RESERVED3 = 4098,
1: + IB_QPT_RESERVED4 = 4099,
1: + IB_QPT_RESERVED5 = 4100,
1: + IB_QPT_RESERVED6 = 4101,
1: + IB_QPT_RESERVED7 = 4102,
1: + IB_QPT_RESERVED8 = 4103,
1: + IB_QPT_RESERVED9 = 4104,
1: + IB_QPT_RESERVED10 = 4105,
1: +};
1: +
1: +struct ib_qp_security;
1: +
1: +struct ib_qp {
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_cq *send_cq;
1: + struct ib_cq *recv_cq;
1: + spinlock_t mr_lock;
1: + int mrs_used;
1: + struct list_head rdma_mrs;
1: + struct list_head sig_mrs;
1: + struct ib_srq *srq;
1: + struct ib_xrcd *xrcd;
1: + struct list_head xrcd_list;
1: + atomic_t usecnt;
1: + struct list_head open_list;
1: + struct ib_qp *real_qp;
1: + struct ib_uqp_object *uobject;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *qp_context;
1: + const struct ib_gid_attr *av_sgid_attr;
1: + const struct ib_gid_attr *alt_path_sgid_attr;
1: + u32 qp_num;
1: + u32 max_write_sge;
1: + u32 max_read_sge;
1: + enum ib_qp_type qp_type;
1: + struct ib_rwq_ind_table *rwq_ind_tbl;
1: + struct ib_qp_security *qp_sec;
1: + u8 port;
1: + bool integrity_en;
1: + struct rdma_restrack_entry res;
1: + struct rdma_counter *counter;
1: +};
1: +
1: +struct ib_usrq_object;
1: +
1: +enum ib_srq_type {
1: + IB_SRQT_BASIC = 0,
1: + IB_SRQT_XRC = 1,
1: + IB_SRQT_TM = 2,
1: +};
1: +
1: +struct ib_srq {
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_usrq_object *uobject;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *srq_context;
1: + enum ib_srq_type srq_type;
1: + atomic_t usecnt;
1: + struct {
1: + struct ib_cq *cq;
1: + union {
1: + struct {
1: + struct ib_xrcd *xrcd;
1: + u32 srq_num;
1: + } xrc;
1: + };
1: + } ext;
1: +};
1: +
1: +struct ib_uwq_object;
1: +
1: +enum ib_wq_state {
1: + IB_WQS_RESET = 0,
1: + IB_WQS_RDY = 1,
1: + IB_WQS_ERR = 2,
1: +};
1: +
1: +enum ib_wq_type {
1: + IB_WQT_RQ = 0,
1: +};
1: +
1: +struct ib_wq {
1: + struct ib_device *device;
1: + struct ib_uwq_object *uobject;
1: + void *wq_context;
1: + void (*event_handler)(struct ib_event *, void *);
1: + struct ib_pd *pd;
1: + struct ib_cq *cq;
1: + u32 wq_num;
1: + enum ib_wq_state state;
1: + enum ib_wq_type wq_type;
1: + atomic_t usecnt;
1: +};
1: +
1: +struct ib_event {
1: + struct ib_device *device;
1: + union {
1: + struct ib_cq *cq;
1: + struct ib_qp *qp;
1: + struct ib_srq *srq;
1: + struct ib_wq *wq;
1: + u8 port_num;
1: + } element;
1: + enum ib_event_type event;
1: +};
1: +
1: +struct ib_global_route {
1: + const struct ib_gid_attr *sgid_attr;
1: + union ib_gid dgid;
1: + u32 flow_label;
1: + u8 sgid_index;
1: + u8 hop_limit;
1: + u8 traffic_class;
1: +};
1: +
1: +struct ib_grh {
1: + __be32 version_tclass_flow;
1: + __be16 paylen;
1: + u8 next_hdr;
1: + u8 hop_limit;
1: + union ib_gid sgid;
1: + union ib_gid dgid;
1: +};
1: +
1: +struct ib_mr_status {
1: + u32 fail_status;
1: + struct ib_sig_err sig_err;
1: +};
1: +
1: +struct rdma_ah_init_attr {
1: + struct rdma_ah_attr *ah_attr;
1: + u32 flags;
1: + struct net_device *xmit_slave;
1: +};
1: +
1: +enum rdma_ah_attr_type {
1: + RDMA_AH_ATTR_TYPE_UNDEFINED = 0,
1: + RDMA_AH_ATTR_TYPE_IB = 1,
1: + RDMA_AH_ATTR_TYPE_ROCE = 2,
1: + RDMA_AH_ATTR_TYPE_OPA = 3,
1: +};
1: +
1: +struct ib_ah_attr {
1: + u16 dlid;
1: + u8 src_path_bits;
1: +};
1: +
1: +struct roce_ah_attr {
1: + u8 dmac[6];
1: +};
1: +
1: +struct opa_ah_attr {
1: + u32 dlid;
1: + u8 src_path_bits;
1: + bool make_grd;
1: +};
1: +
1: +struct rdma_ah_attr {
1: + struct ib_global_route grh;
1: + u8 sl;
1: + u8 static_rate;
1: + u8 port_num;
1: + u8 ah_flags;
1: + enum rdma_ah_attr_type type;
1: + union {
1: + struct ib_ah_attr ib;
1: + struct roce_ah_attr roce;
1: + struct opa_ah_attr opa;
1: + };
1: +};
1: +
1: +enum ib_wc_status {
1: + IB_WC_SUCCESS = 0,
1: + IB_WC_LOC_LEN_ERR = 1,
1: + IB_WC_LOC_QP_OP_ERR = 2,
1: + IB_WC_LOC_EEC_OP_ERR = 3,
1: + IB_WC_LOC_PROT_ERR = 4,
1: + IB_WC_WR_FLUSH_ERR = 5,
1: + IB_WC_MW_BIND_ERR = 6,
1: + IB_WC_BAD_RESP_ERR = 7,
1: + IB_WC_LOC_ACCESS_ERR = 8,
1: + IB_WC_REM_INV_REQ_ERR = 9,
1: + IB_WC_REM_ACCESS_ERR = 10,
1: + IB_WC_REM_OP_ERR = 11,
1: + IB_WC_RETRY_EXC_ERR = 12,
1: + IB_WC_RNR_RETRY_EXC_ERR = 13,
1: + IB_WC_LOC_RDD_VIOL_ERR = 14,
1: + IB_WC_REM_INV_RD_REQ_ERR = 15,
1: + IB_WC_REM_ABORT_ERR = 16,
1: + IB_WC_INV_EECN_ERR = 17,
1: + IB_WC_INV_EEC_STATE_ERR = 18,
1: + IB_WC_FATAL_ERR = 19,
1: + IB_WC_RESP_TIMEOUT_ERR = 20,
1: + IB_WC_GENERAL_ERR = 21,
1: +};
1: +
1: +enum ib_wc_opcode {
1: + IB_WC_SEND = 0,
1: + IB_WC_RDMA_WRITE = 1,
1: + IB_WC_RDMA_READ = 2,
1: + IB_WC_COMP_SWAP = 3,
1: + IB_WC_FETCH_ADD = 4,
1: + IB_WC_BIND_MW = 5,
1: + IB_WC_LOCAL_INV = 6,
1: + IB_WC_LSO = 7,
1: + IB_WC_REG_MR = 8,
1: + IB_WC_MASKED_COMP_SWAP = 9,
1: + IB_WC_MASKED_FETCH_ADD = 10,
1: + IB_WC_RECV = 128,
1: + IB_WC_RECV_RDMA_WITH_IMM = 129,
1: +};
1: +
1: +struct ib_cqe {
1: + void (*done)(struct ib_cq *, struct ib_wc *);
1: +};
1: +
1: +struct ib_wc {
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + enum ib_wc_status status;
1: + enum ib_wc_opcode opcode;
1: + u32 vendor_err;
1: + u32 byte_len;
1: + struct ib_qp *qp;
1: + union {
1: + __be32 imm_data;
1: + u32 invalidate_rkey;
1: + } ex;
1: + u32 src_qp;
1: + u32 slid;
1: + int wc_flags;
1: + u16 pkey_index;
1: + u8 sl;
1: + u8 dlid_path_bits;
1: + u8 port_num;
1: + u8 smac[6];
1: + u16 vlan_id;
1: + u8 network_hdr_type;
1: +};
1: +
1: +struct ib_srq_attr {
1: + u32 max_wr;
1: + u32 max_sge;
1: + u32 srq_limit;
1: +};
1: +
1: +struct ib_xrcd {
1: + struct ib_device *device;
1: + atomic_t usecnt;
1: + struct inode *inode;
1: + struct rw_semaphore tgt_qps_rwsem;
1: + struct xarray tgt_qps;
1: +};
1: +
1: +struct ib_srq_init_attr {
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *srq_context;
1: + struct ib_srq_attr attr;
1: + enum ib_srq_type srq_type;
1: + struct {
1: + struct ib_cq *cq;
1: + union {
1: + struct {
1: + struct ib_xrcd *xrcd;
1: + } xrc;
1: + struct {
1: + u32 max_num_tags;
1: + } tag_matching;
1: + };
1: + } ext;
1: +};
1: +
1: +struct ib_qp_cap {
1: + u32 max_send_wr;
1: + u32 max_recv_wr;
1: + u32 max_send_sge;
1: + u32 max_recv_sge;
1: + u32 max_inline_data;
1: + u32 max_rdma_ctxs;
1: +};
1: +
1: +enum ib_sig_type {
1: + IB_SIGNAL_ALL_WR = 0,
1: + IB_SIGNAL_REQ_WR = 1,
1: +};
1: +
1: +struct ib_qp_init_attr {
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *qp_context;
1: + struct ib_cq *send_cq;
1: + struct ib_cq *recv_cq;
1: + struct ib_srq *srq;
1: + struct ib_xrcd *xrcd;
1: + struct ib_qp_cap cap;
1: + enum ib_sig_type sq_sig_type;
1: + enum ib_qp_type qp_type;
1: + u32 create_flags;
1: + u8 port_num;
1: + struct ib_rwq_ind_table *rwq_ind_tbl;
1: + u32 source_qpn;
1: +};
1: +
1: +struct ib_uobject;
1: +
1: +struct ib_rwq_ind_table {
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: + u32 ind_tbl_num;
1: + u32 log_ind_tbl_size;
1: + struct ib_wq **ind_tbl;
1: +};
1: +
1: +enum ib_qp_state {
1: + IB_QPS_RESET = 0,
1: + IB_QPS_INIT = 1,
1: + IB_QPS_RTR = 2,
1: + IB_QPS_RTS = 3,
1: + IB_QPS_SQD = 4,
1: + IB_QPS_SQE = 5,
1: + IB_QPS_ERR = 6,
1: +};
1: +
1: +enum ib_mig_state {
1: + IB_MIG_MIGRATED = 0,
1: + IB_MIG_REARM = 1,
1: + IB_MIG_ARMED = 2,
1: +};
1: +
1: +enum ib_mw_type {
1: + IB_MW_TYPE_1 = 1,
1: + IB_MW_TYPE_2 = 2,
1: +};
1: +
1: +struct ib_qp_attr {
1: + enum ib_qp_state qp_state;
1: + enum ib_qp_state cur_qp_state;
1: + enum ib_mtu path_mtu;
1: + enum ib_mig_state path_mig_state;
1: + u32 qkey;
1: + u32 rq_psn;
1: + u32 sq_psn;
1: + u32 dest_qp_num;
1: + int qp_access_flags;
1: + struct ib_qp_cap cap;
1: + struct rdma_ah_attr ah_attr;
1: + struct rdma_ah_attr alt_ah_attr;
1: + u16 pkey_index;
1: + u16 alt_pkey_index;
1: + u8 en_sqd_async_notify;
1: + u8 sq_draining;
1: + u8 max_rd_atomic;
1: + u8 max_dest_rd_atomic;
1: + u8 min_rnr_timer;
1: + u8 port_num;
1: + u8 timeout;
1: + u8 retry_cnt;
1: + u8 rnr_retry;
1: + u8 alt_port_num;
1: + u8 alt_timeout;
1: + u32 rate_limit;
1: + struct net_device *xmit_slave;
1: +};
1: +
1: +enum ib_wr_opcode {
1: + IB_WR_RDMA_WRITE = 0,
1: + IB_WR_RDMA_WRITE_WITH_IMM = 1,
1: + IB_WR_SEND = 2,
1: + IB_WR_SEND_WITH_IMM = 3,
1: + IB_WR_RDMA_READ = 4,
1: + IB_WR_ATOMIC_CMP_AND_SWP = 5,
1: + IB_WR_ATOMIC_FETCH_AND_ADD = 6,
1: + IB_WR_BIND_MW = 8,
1: + IB_WR_LSO = 10,
1: + IB_WR_SEND_WITH_INV = 9,
1: + IB_WR_RDMA_READ_WITH_INV = 11,
1: + IB_WR_LOCAL_INV = 7,
1: + IB_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: + IB_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: + IB_WR_REG_MR = 32,
1: + IB_WR_REG_MR_INTEGRITY = 33,
1: + IB_WR_RESERVED1 = 240,
1: + IB_WR_RESERVED2 = 241,
1: + IB_WR_RESERVED3 = 242,
1: + IB_WR_RESERVED4 = 243,
1: + IB_WR_RESERVED5 = 244,
1: + IB_WR_RESERVED6 = 245,
1: + IB_WR_RESERVED7 = 246,
1: + IB_WR_RESERVED8 = 247,
1: + IB_WR_RESERVED9 = 248,
1: + IB_WR_RESERVED10 = 249,
1: +};
1: +
1: +struct ib_sge {
1: + u64 addr;
1: + u32 length;
1: + u32 lkey;
1: +};
1: +
1: +struct ib_send_wr {
1: + struct ib_send_wr *next;
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + struct ib_sge *sg_list;
1: + int num_sge;
1: + enum ib_wr_opcode opcode;
1: + int send_flags;
1: + union {
1: + __be32 imm_data;
1: + u32 invalidate_rkey;
1: + } ex;
1: +};
1: +
1: +struct ib_ah {
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_uobject *uobject;
1: + const struct ib_gid_attr *sgid_attr;
1: + enum rdma_ah_attr_type type;
1: +};
1: +
1: +struct ib_mr {
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + u32 lkey;
1: + u32 rkey;
1: + u64 iova;
1: + u64 length;
1: + unsigned int page_size;
1: + enum ib_mr_type type;
1: + bool need_inval;
1: + union {
1: + struct ib_uobject *uobject;
1: + struct list_head qp_entry;
1: + };
1: + struct ib_dm *dm;
1: + struct ib_sig_attrs *sig_attrs;
1: + struct rdma_restrack_entry res;
1: +};
1: +
1: +struct ib_recv_wr {
1: + struct ib_recv_wr *next;
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + struct ib_sge *sg_list;
1: + int num_sge;
1: +};
1: +
1: +struct ib_rdmacg_object {};
1: +
1: +struct ib_uverbs_file;
1: +
1: +struct ib_ucontext {
1: + struct ib_device *device;
1: + struct ib_uverbs_file *ufile;
1: + bool cleanup_retryable;
1: + struct ib_rdmacg_object cg_obj;
1: + struct rdma_restrack_entry res;
1: + struct xarray mmap_xa;
1: +};
1: +
1: +struct uverbs_api_object;
1: +
1: +struct ib_uobject {
1: + u64 user_handle;
1: + struct ib_uverbs_file *ufile;
1: + struct ib_ucontext *context;
1: + void *object;
1: + struct list_head list;
1: + struct ib_rdmacg_object cg_obj;
1: + int id;
1: + struct kref ref;
1: + atomic_t usecnt;
1: + struct callback_head rcu;
1: + const struct uverbs_api_object *uapi_object;
1: +};
1: +
1: +struct ib_udata {
1: + const void *inbuf;
1: + void *outbuf;
1: + size_t inlen;
1: + size_t outlen;
1: +};
1: +
1: +struct ib_pd {
1: + u32 local_dma_lkey;
1: + u32 flags;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: + u32 unsafe_global_rkey;
1: + struct ib_mr *__internal_mr;
1: + struct rdma_restrack_entry res;
1: +};
1: +
1: +struct ib_wq_init_attr {
1: + void *wq_context;
1: + enum ib_wq_type wq_type;
1: + u32 max_wr;
1: + u32 max_sge;
1: + struct ib_cq *cq;
1: + void (*event_handler)(struct ib_event *, void *);
1: + u32 create_flags;
1: +};
1: +
1: +struct ib_wq_attr {
1: + enum ib_wq_state wq_state;
1: + enum ib_wq_state curr_wq_state;
1: + u32 flags;
1: + u32 flags_mask;
1: +};
1: +
1: +struct ib_rwq_ind_table_init_attr {
1: + u32 log_ind_tbl_size;
1: + struct ib_wq **ind_tbl;
1: +};
1: +
1: +enum port_pkey_state {
1: + IB_PORT_PKEY_NOT_VALID = 0,
1: + IB_PORT_PKEY_VALID = 1,
1: + IB_PORT_PKEY_LISTED = 2,
1: +};
1: +
1: +struct ib_port_pkey {
1: + enum port_pkey_state state;
1: + u16 pkey_index;
1: + u8 port_num;
1: + struct list_head qp_list;
1: + struct list_head to_error_list;
1: + struct ib_qp_security *sec;
1: +};
1: +
1: +struct ib_ports_pkeys;
1: +
1: +struct ib_qp_security {
1: + struct ib_qp *qp;
1: + struct ib_device *dev;
1: + struct mutex mutex;
1: + struct ib_ports_pkeys *ports_pkeys;
1: + struct list_head shared_qp_list;
1: + void *security;
1: + bool destroying;
1: + atomic_t error_list_count;
1: + struct completion error_complete;
1: + int error_comps_pending;
1: +};
1: +
1: +struct ib_ports_pkeys {
1: + struct ib_port_pkey main;
1: + struct ib_port_pkey alt;
1: +};
1: +
1: +struct ib_dm {
1: + struct ib_device *device;
1: + u32 length;
1: + u32 flags;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: +};
1: +
1: +struct ib_mw {
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_uobject *uobject;
1: + u32 rkey;
1: + enum ib_mw_type type;
1: +};
1: +
1: +enum ib_flow_attr_type {
1: + IB_FLOW_ATTR_NORMAL = 0,
1: + IB_FLOW_ATTR_ALL_DEFAULT = 1,
1: + IB_FLOW_ATTR_MC_DEFAULT = 2,
1: + IB_FLOW_ATTR_SNIFFER = 3,
1: +};
1: +
1: +enum ib_flow_spec_type {
1: + IB_FLOW_SPEC_ETH = 32,
1: + IB_FLOW_SPEC_IB = 34,
1: + IB_FLOW_SPEC_IPV4 = 48,
1: + IB_FLOW_SPEC_IPV6 = 49,
1: + IB_FLOW_SPEC_ESP = 52,
1: + IB_FLOW_SPEC_TCP = 64,
1: + IB_FLOW_SPEC_UDP = 65,
1: + IB_FLOW_SPEC_VXLAN_TUNNEL = 80,
1: + IB_FLOW_SPEC_GRE = 81,
1: + IB_FLOW_SPEC_MPLS = 96,
1: + IB_FLOW_SPEC_INNER = 256,
1: + IB_FLOW_SPEC_ACTION_TAG = 4096,
1: + IB_FLOW_SPEC_ACTION_DROP = 4097,
1: + IB_FLOW_SPEC_ACTION_HANDLE = 4098,
1: + IB_FLOW_SPEC_ACTION_COUNT = 4099,
1: +};
1: +
1: +struct ib_flow_eth_filter {
1: + u8 dst_mac[6];
1: + u8 src_mac[6];
1: + __be16 ether_type;
1: + __be16 vlan_tag;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_eth {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_eth_filter val;
1: + struct ib_flow_eth_filter mask;
1: +};
1: +
1: +struct ib_flow_ib_filter {
1: + __be16 dlid;
1: + __u8 sl;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_ib {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ib_filter val;
1: + struct ib_flow_ib_filter mask;
1: +};
1: +
1: +struct ib_flow_ipv4_filter {
1: + __be32 src_ip;
1: + __be32 dst_ip;
1: + u8 proto;
1: + u8 tos;
1: + u8 ttl;
1: + u8 flags;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_ipv4 {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ipv4_filter val;
1: + struct ib_flow_ipv4_filter mask;
1: +};
1: +
1: +struct ib_flow_ipv6_filter {
1: + u8 src_ip[16];
1: + u8 dst_ip[16];
1: + __be32 flow_label;
1: + u8 next_hdr;
1: + u8 traffic_class;
1: + u8 hop_limit;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_ipv6 {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ipv6_filter val;
1: + struct ib_flow_ipv6_filter mask;
1: +};
1: +
1: +struct ib_flow_tcp_udp_filter {
1: + __be16 dst_port;
1: + __be16 src_port;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_tcp_udp {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_tcp_udp_filter val;
1: + struct ib_flow_tcp_udp_filter mask;
1: +};
1: +
1: +struct ib_flow_tunnel_filter {
1: + __be32 tunnel_id;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_tunnel {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_tunnel_filter val;
1: + struct ib_flow_tunnel_filter mask;
1: +};
1: +
1: +struct ib_flow_esp_filter {
1: + __be32 spi;
1: + __be32 seq;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_esp {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_esp_filter val;
1: + struct ib_flow_esp_filter mask;
1: +};
1: +
1: +struct ib_flow_gre_filter {
1: + __be16 c_ks_res0_ver;
1: + __be16 protocol;
1: + __be32 key;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_gre {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_gre_filter val;
1: + struct ib_flow_gre_filter mask;
1: +};
1: +
1: +struct ib_flow_mpls_filter {
1: + __be32 tag;
1: + u8 real_sz[0];
1: +};
1: +
1: +struct ib_flow_spec_mpls {
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_mpls_filter val;
1: + struct ib_flow_mpls_filter mask;
1: +};
1: +
1: +struct ib_flow_spec_action_tag {
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + u32 tag_id;
1: +};
1: +
1: +struct ib_flow_spec_action_drop {
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: +};
1: +
1: +struct ib_flow_spec_action_handle {
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + struct ib_flow_action *act;
1: +};
1: +
1: +enum ib_flow_action_type {
1: + IB_FLOW_ACTION_UNSPECIFIED = 0,
1: + IB_FLOW_ACTION_ESP = 1,
1: +};
1: +
1: +struct ib_flow_action {
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + enum ib_flow_action_type type;
1: + atomic_t usecnt;
1: +};
1: +
1: +struct ib_flow_spec_action_count {
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + struct ib_counters *counters;
1: +};
1: +
1: +struct ib_counters {
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: +};
1: +
1: +union ib_flow_spec {
1: + struct {
1: + u32 type;
1: + u16 size;
1: + };
1: + struct ib_flow_spec_eth eth;
1: + struct ib_flow_spec_ib ib;
1: + struct ib_flow_spec_ipv4 ipv4;
1: + struct ib_flow_spec_tcp_udp tcp_udp;
1: + struct ib_flow_spec_ipv6 ipv6;
1: + struct ib_flow_spec_tunnel tunnel;
1: + struct ib_flow_spec_esp esp;
1: + struct ib_flow_spec_gre gre;
1: + struct ib_flow_spec_mpls mpls;
1: + struct ib_flow_spec_action_tag flow_tag;
1: + struct ib_flow_spec_action_drop drop;
1: + struct ib_flow_spec_action_handle action;
1: + struct ib_flow_spec_action_count flow_count;
1: +};
1: +
1: +struct ib_flow_attr {
1: + enum ib_flow_attr_type type;
1: + u16 size;
1: + u16 priority;
1: + u32 flags;
1: + u8 num_of_specs;
1: + u8 port;
1: + union ib_flow_spec flows[0];
1: +};
1: +
1: +struct ib_flow {
1: + struct ib_qp *qp;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: +};
1: +
1: +struct ib_flow_action_attrs_esp_keymats {
1: + enum ib_uverbs_flow_action_esp_keymat protocol;
1: + union {
1: + struct ib_uverbs_flow_action_esp_keymat_aes_gcm aes_gcm;
1: + } keymat;
1: +};
1: +
1: +struct ib_flow_action_attrs_esp_replays {
1: + enum ib_uverbs_flow_action_esp_replay protocol;
1: + union {
1: + struct ib_uverbs_flow_action_esp_replay_bmp bmp;
1: + } replay;
1: +};
1: +
1: +struct ib_flow_spec_list {
1: + struct ib_flow_spec_list *next;
1: + union ib_flow_spec spec;
1: +};
1: +
1: +struct ib_flow_action_attrs_esp {
1: + struct ib_flow_action_attrs_esp_keymats *keymat;
1: + struct ib_flow_action_attrs_esp_replays *replay;
1: + struct ib_flow_spec_list *encap;
1: + u32 esn;
1: + u32 spi;
1: + u32 seq;
1: + u32 tfc_pad;
1: + u64 flags;
1: + u64 hard_limit_pkts;
1: +};
1: +
1: +struct ib_pkey_cache;
1: +
1: +struct ib_gid_table;
1: +
1: +struct ib_port_cache {
1: + u64 subnet_prefix;
1: + struct ib_pkey_cache *pkey;
1: + struct ib_gid_table *gid;
1: + u8 lmc;
1: + enum ib_port_state port_state;
1: +};
1: +
1: +struct ib_port_immutable {
1: + int pkey_tbl_len;
1: + int gid_tbl_len;
1: + u32 core_cap_flags;
1: + u32 max_mad_size;
1: +};
1: +
1: +struct ib_port_data {
1: + struct ib_device *ib_dev;
1: + struct ib_port_immutable immutable;
1: + spinlock_t pkey_list_lock;
1: + struct list_head pkey_list;
1: + struct ib_port_cache cache;
1: + spinlock_t netdev_lock;
1: + struct net_device *netdev;
1: + struct hlist_node ndev_hash_link;
1: + struct rdma_port_counter port_counter;
1: + struct rdma_hw_stats *hw_stats;
1: +};
1: +
1: +struct rdma_netdev_alloc_params {
1: + size_t sizeof_priv;
1: + unsigned int txqs;
1: + unsigned int rxqs;
1: + void *param;
1: + int (*initialize_rdma_netdev)(struct ib_device *, u8, struct net_device *, void *);
1: +};
1: +
1: +struct ib_counters_read_attr {
1: + u64 *counters_buff;
1: + u32 ncounters;
1: + u32 flags;
1: +};
1: +
1: +struct rdma_user_mmap_entry {
1: + struct kref ref;
1: + struct ib_ucontext *ucontext;
1: + long unsigned int start_pgoff;
1: + size_t npages;
1: + bool driver_removed;
1: +};
1: +
1: +enum blk_zone_type {
1: + BLK_ZONE_TYPE_CONVENTIONAL = 1,
1: + BLK_ZONE_TYPE_SEQWRITE_REQ = 2,
1: + BLK_ZONE_TYPE_SEQWRITE_PREF = 3,
1: +};
1: +
1: +enum blk_zone_cond {
1: + BLK_ZONE_COND_NOT_WP = 0,
1: + BLK_ZONE_COND_EMPTY = 1,
1: + BLK_ZONE_COND_IMP_OPEN = 2,
1: + BLK_ZONE_COND_EXP_OPEN = 3,
1: + BLK_ZONE_COND_CLOSED = 4,
1: + BLK_ZONE_COND_READONLY = 13,
1: + BLK_ZONE_COND_FULL = 14,
1: + BLK_ZONE_COND_OFFLINE = 15,
1: +};
1: +
1: +enum blk_zone_report_flags {
1: + BLK_ZONE_REP_CAPACITY = 1,
1: +};
1: +
1: +struct blk_zone_report {
1: + __u64 sector;
1: + __u32 nr_zones;
1: + __u32 flags;
1: + struct blk_zone zones[0];
1: +};
1: +
1: +struct blk_zone_range {
1: + __u64 sector;
1: + __u64 nr_sectors;
1: +};
1: +
1: +struct zone_report_args {
1: + struct blk_zone *zones;
1: +};
1: +
1: +struct blk_revalidate_zone_args {
1: + struct gendisk *disk;
1: + long unsigned int *conv_zones_bitmap;
1: + long unsigned int *seq_zones_wlock;
1: + unsigned int nr_zones;
1: + sector_t zone_sectors;
1: + sector_t sector;
1: +};
1: +
1: +enum wbt_flags {
1: + WBT_TRACKED = 1,
1: + WBT_READ = 2,
1: + WBT_KSWAPD = 4,
1: + WBT_DISCARD = 8,
1: + WBT_NR_BITS = 4,
1: +};
1: +
1: +enum {
1: + WBT_STATE_ON_DEFAULT = 1,
1: + WBT_STATE_ON_MANUAL = 2,
1: +};
1: +
1: +struct rq_wb {
1: + unsigned int wb_background;
1: + unsigned int wb_normal;
1: + short int enable_state;
1: + unsigned int unknown_cnt;
1: + u64 win_nsec;
1: + u64 cur_win_nsec;
1: + struct blk_stat_callback *cb;
1: + u64 sync_issue;
1: + void *sync_cookie;
1: + unsigned int wc;
1: + long unsigned int last_issue;
1: + long unsigned int last_comp;
1: + long unsigned int min_lat_nsec;
1: + struct rq_qos rqos;
1: + struct rq_wait rq_wait[3];
1: + struct rq_depth rq_depth;
1: +};
1: +
1: +struct trace_event_raw_wbt_stat {
1: + struct trace_entry ent;
1: + char name[32];
1: + s64 rmean;
1: + u64 rmin;
1: + u64 rmax;
1: + s64 rnr_samples;
1: + s64 rtime;
1: + s64 wmean;
1: + u64 wmin;
1: + u64 wmax;
1: + s64 wnr_samples;
1: + s64 wtime;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wbt_lat {
1: + struct trace_entry ent;
1: + char name[32];
1: + long unsigned int lat;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wbt_step {
1: + struct trace_entry ent;
1: + char name[32];
1: + const char *msg;
1: + int step;
1: + long unsigned int window;
1: + unsigned int bg;
1: + unsigned int normal;
1: + unsigned int max;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wbt_timer {
1: + struct trace_entry ent;
1: + char name[32];
1: + unsigned int status;
1: + int step;
1: + unsigned int inflight;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_wbt_stat {};
1: +
1: +struct trace_event_data_offsets_wbt_lat {};
1: +
1: +struct trace_event_data_offsets_wbt_step {};
1: +
1: +struct trace_event_data_offsets_wbt_timer {};
1: +
1: +typedef void (*btf_trace_wbt_stat)(void *, struct backing_dev_info *, struct blk_rq_stat *);
1: +
1: +typedef void (*btf_trace_wbt_lat)(void *, struct backing_dev_info *, long unsigned int);
1: +
1: +typedef void (*btf_trace_wbt_step)(void *, struct backing_dev_info *, const char *, int, long unsigned int, unsigned int, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_wbt_timer)(void *, struct backing_dev_info *, unsigned int, int, unsigned int);
1: +
1: +enum {
1: + RWB_DEF_DEPTH = 16,
1: + RWB_WINDOW_NSEC = 100000000,
1: + RWB_MIN_WRITE_SAMPLES = 3,
1: + RWB_UNKNOWN_BUMP = 5,
1: +};
1: +
1: +enum {
1: + LAT_OK = 1,
1: + LAT_UNKNOWN = 2,
1: + LAT_UNKNOWN_WRITES = 3,
1: + LAT_EXCEEDED = 4,
1: +};
1: +
1: +struct wbt_wait_data {
1: + struct rq_wb *rwb;
1: + enum wbt_flags wb_acct;
1: + long unsigned int rw;
1: +};
1: +
1: +struct blk_ksm_keyslot {
1: + atomic_t slot_refs;
1: + struct list_head idle_slot_node;
1: + struct hlist_node hash_node;
1: + const struct blk_crypto_key *key;
1: + struct blk_keyslot_manager *ksm;
1: +};
1: +
1: +struct blk_ksm_ll_ops {
1: + int (*keyslot_program)(struct blk_keyslot_manager *, const struct blk_crypto_key *, unsigned int);
1: + int (*keyslot_evict)(struct blk_keyslot_manager *, const struct blk_crypto_key *, unsigned int);
1: +};
1: +
1: +struct blk_keyslot_manager {
1: + struct blk_ksm_ll_ops ksm_ll_ops;
1: + unsigned int max_dun_bytes_supported;
1: + unsigned int crypto_modes_supported[4];
1: + struct device *dev;
1: + unsigned int num_slots;
1: + struct rw_semaphore lock;
1: + wait_queue_head_t idle_slots_wait_queue;
1: + struct list_head idle_slots;
1: + spinlock_t idle_slots_lock;
1: + struct hlist_head *slot_hashtable;
1: + unsigned int log_slot_ht_size;
1: + struct blk_ksm_keyslot *slots;
1: +};
1: +
1: +struct blk_crypto_mode {
1: + const char *cipher_str;
1: + unsigned int keysize;
1: + unsigned int ivsize;
1: +};
1: +
1: +struct bio_fallback_crypt_ctx {
1: + struct bio_crypt_ctx crypt_ctx;
1: + struct bvec_iter crypt_iter;
1: + union {
1: + struct {
1: + struct work_struct work;
1: + struct bio *bio;
1: + };
1: + struct {
1: + void *bi_private_orig;
1: + bio_end_io_t *bi_end_io_orig;
1: + };
1: + };
1: +};
1: +
1: +struct blk_crypto_keyslot {
1: + enum blk_crypto_mode_num crypto_mode;
1: + struct crypto_skcipher *tfms[4];
1: +};
1: +
1: +union blk_crypto_iv {
1: + __le64 dun[4];
1: + u8 bytes[32];
1: +};
1: +
1: +typedef void (*swap_func_t)(void *, void *, int);
1: +
1: +typedef int (*cmp_r_func_t)(const void *, const void *, const void *);
1: +
1: +struct siprand_state {
1: + long unsigned int v0;
1: + long unsigned int v1;
1: + long unsigned int v2;
1: + long unsigned int v3;
1: +};
1: +
1: +typedef __kernel_long_t __kernel_ptrdiff_t;
1: +
1: +typedef __kernel_ptrdiff_t ptrdiff_t;
1: +
1: +struct region {
1: + unsigned int start;
1: + unsigned int off;
1: + unsigned int group_len;
1: + unsigned int end;
1: +};
1: +
1: +enum {
1: + REG_OP_ISFREE = 0,
1: + REG_OP_ALLOC = 1,
1: + REG_OP_RELEASE = 2,
1: +};
1: +
1: +typedef struct scatterlist *sg_alloc_fn(unsigned int, gfp_t);
1: +
1: +typedef void sg_free_fn(struct scatterlist *, unsigned int);
1: +
1: +struct sg_page_iter {
1: + struct scatterlist *sg;
1: + unsigned int sg_pgoffset;
1: + unsigned int __nents;
1: + int __pg_advance;
1: +};
1: +
1: +struct sg_dma_page_iter {
1: + struct sg_page_iter base;
1: +};
1: +
1: +struct sg_mapping_iter {
1: + struct page *page;
1: + void *addr;
1: + size_t length;
1: + size_t consumed;
1: + struct sg_page_iter piter;
1: + unsigned int __offset;
1: + unsigned int __remaining;
1: + unsigned int __flags;
1: +};
1: +
1: +typedef int (*cmp_func)(void *, const struct list_head *, const struct list_head *);
1: +
1: +struct rhltable {
1: + struct rhashtable ht;
1: +};
1: +
1: +struct rhashtable_walker {
1: + struct list_head list;
1: + struct bucket_table *tbl;
1: +};
1: +
1: +struct rhashtable_iter {
1: + struct rhashtable *ht;
1: + struct rhash_head *p;
1: + struct rhlist_head *list;
1: + struct rhashtable_walker walker;
1: + unsigned int slot;
1: + unsigned int skip;
1: + bool end_of_table;
1: +};
1: +
1: +union nested_table {
1: + union nested_table *table;
1: + struct rhash_lock_head *bucket;
1: +};
1: +
1: +struct once_work {
1: + struct work_struct work;
1: + struct static_key_true *key;
1: +};
1: +
1: +struct genradix_iter {
1: + size_t offset;
1: + size_t pos;
1: +};
1: +
1: +struct genradix_node {
1: + union {
1: + struct genradix_node *children[512];
1: + u8 data[4096];
1: + };
1: +};
1: +
1: +struct reciprocal_value_adv {
1: + u32 m;
1: + u8 sh;
1: + u8 exp;
1: + bool is_wide_m;
1: +};
1: +
1: +enum devm_ioremap_type {
1: + DEVM_IOREMAP = 0,
1: + DEVM_IOREMAP_UC = 1,
1: + DEVM_IOREMAP_WC = 2,
1: +};
1: +
1: +struct pcim_iomap_devres {
1: + void *table[6];
1: +};
1: +
1: +struct btree_head {
1: + long unsigned int *node;
1: + mempool_t *mempool;
1: + int height;
1: +};
1: +
1: +struct btree_geo {
1: + int keylen;
1: + int no_pairs;
1: + int no_longs;
1: +};
1: +
1: +typedef void (*visitor128_t)(void *, long unsigned int, u64, u64, size_t);
1: +
1: +typedef void (*visitorl_t)(void *, long unsigned int, long unsigned int, size_t);
1: +
1: +typedef void (*visitor32_t)(void *, long unsigned int, u32, size_t);
1: +
1: +typedef void (*visitor64_t)(void *, long unsigned int, u64, size_t);
1: +
1: +enum assoc_array_walk_status {
1: + assoc_array_walk_tree_empty = 0,
1: + assoc_array_walk_found_terminal_node = 1,
1: + assoc_array_walk_found_wrong_shortcut = 2,
1: +};
1: +
1: +struct assoc_array_walk_result {
1: + struct {
1: + struct assoc_array_node *node;
1: + int level;
1: + int slot;
1: + } terminal_node;
1: + struct {
1: + struct assoc_array_shortcut *shortcut;
1: + int level;
1: + int sc_level;
1: + long unsigned int sc_segments;
1: + long unsigned int dissimilarity;
1: + } wrong_shortcut;
1: +};
1: +
1: +struct assoc_array_delete_collapse_context {
1: + struct assoc_array_node *node;
1: + const void *skip_leaf;
1: + int slot;
1: +};
1: +
1: +struct linear_range {
1: + unsigned int min;
1: + unsigned int min_sel;
1: + unsigned int max_sel;
1: + unsigned int step;
1: +};
1: +
1: +enum packing_op {
1: + PACK = 0,
1: + UNPACK = 1,
1: +};
1: +
1: +struct crc_test {
1: + u32 crc;
1: + u32 start;
1: + u32 length;
1: + u32 crc_le;
1: + u32 crc_be;
1: + u32 crc32c_le;
1: +};
1: +
1: +struct xxh32_state {
1: + uint32_t total_len_32;
1: + uint32_t large_len;
1: + uint32_t v1;
1: + uint32_t v2;
1: + uint32_t v3;
1: + uint32_t v4;
1: + uint32_t mem32[4];
1: + uint32_t memsize;
1: +};
1: +
1: +struct xxh64_state {
1: + uint64_t total_len;
1: + uint64_t v1;
1: + uint64_t v2;
1: + uint64_t v3;
1: + uint64_t v4;
1: + uint64_t mem64[4];
1: + uint32_t memsize;
1: +};
1: +
1: +struct gen_pool_chunk {
1: + struct list_head next_chunk;
1: + atomic_long_t avail;
1: + phys_addr_t phys_addr;
1: + void *owner;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + long unsigned int bits[0];
1: +};
1: +
1: +struct genpool_data_align {
1: + int align;
1: +};
1: +
1: +struct genpool_data_fixed {
1: + long unsigned int offset;
1: +};
1: +
1: +typedef struct z_stream_s z_stream;
1: +
1: +typedef z_stream *z_streamp;
1: +
1: +typedef struct {
1: + unsigned char op;
1: + unsigned char bits;
1: + short unsigned int val;
1: +} code;
1: +
1: +typedef enum {
1: + HEAD = 0,
1: + FLAGS = 1,
1: + TIME = 2,
1: + OS = 3,
1: + EXLEN = 4,
1: + EXTRA = 5,
1: + NAME = 6,
1: + COMMENT = 7,
1: + HCRC = 8,
1: + DICTID = 9,
1: + DICT = 10,
1: + TYPE = 11,
1: + TYPEDO = 12,
1: + STORED = 13,
1: + COPY = 14,
1: + TABLE = 15,
1: + LENLENS = 16,
1: + CODELENS = 17,
1: + LEN = 18,
1: + LENEXT = 19,
1: + DIST = 20,
1: + DISTEXT = 21,
1: + MATCH = 22,
1: + LIT = 23,
1: + CHECK = 24,
1: + LENGTH = 25,
1: + DONE = 26,
1: + BAD = 27,
1: + MEM = 28,
1: + SYNC = 29,
1: +} inflate_mode;
1: +
1: +struct inflate_state {
1: + inflate_mode mode;
1: + int last;
1: + int wrap;
1: + int havedict;
1: + int flags;
1: + unsigned int dmax;
1: + long unsigned int check;
1: + long unsigned int total;
1: + unsigned int wbits;
1: + unsigned int wsize;
1: + unsigned int whave;
1: + unsigned int write;
1: + unsigned char *window;
1: + long unsigned int hold;
1: + unsigned int bits;
1: + unsigned int length;
1: + unsigned int offset;
1: + unsigned int extra;
1: + const code *lencode;
1: + const code *distcode;
1: + unsigned int lenbits;
1: + unsigned int distbits;
1: + unsigned int ncode;
1: + unsigned int nlen;
1: + unsigned int ndist;
1: + unsigned int have;
1: + code *next;
1: + short unsigned int lens[320];
1: + short unsigned int work[288];
1: + code codes[2048];
1: +};
1: +
1: +union uu {
1: + short unsigned int us;
1: + unsigned char b[2];
1: +};
1: +
1: +typedef unsigned int uInt;
1: +
1: +struct inflate_workspace {
1: + struct inflate_state inflate_state;
1: + unsigned char working_window[32768];
1: +};
1: +
1: +typedef enum {
1: + CODES = 0,
1: + LENS = 1,
1: + DISTS = 2,
1: +} codetype;
1: +
1: +typedef unsigned char uch;
1: +
1: +typedef short unsigned int ush;
1: +
1: +typedef long unsigned int ulg;
1: +
1: +struct ct_data_s {
1: + union {
1: + ush freq;
1: + ush code;
1: + } fc;
1: + union {
1: + ush dad;
1: + ush len;
1: + } dl;
1: +};
1: +
1: +typedef struct ct_data_s ct_data;
1: +
1: +struct static_tree_desc_s {
1: + const ct_data *static_tree;
1: + const int *extra_bits;
1: + int extra_base;
1: + int elems;
1: + int max_length;
1: +};
1: +
1: +typedef struct static_tree_desc_s static_tree_desc;
1: +
1: +struct tree_desc_s {
1: + ct_data *dyn_tree;
1: + int max_code;
1: + static_tree_desc *stat_desc;
1: +};
1: +
1: +typedef ush Pos;
1: +
1: +typedef unsigned int IPos;
1: +
1: +struct deflate_state {
1: + z_streamp strm;
1: + int status;
1: + Byte *pending_buf;
1: + ulg pending_buf_size;
1: + Byte *pending_out;
1: + int pending;
1: + int noheader;
1: + Byte data_type;
1: + Byte method;
1: + int last_flush;
1: + uInt w_size;
1: + uInt w_bits;
1: + uInt w_mask;
1: + Byte *window;
1: + ulg window_size;
1: + Pos *prev;
1: + Pos *head;
1: + uInt ins_h;
1: + uInt hash_size;
1: + uInt hash_bits;
1: + uInt hash_mask;
1: + uInt hash_shift;
1: + long int block_start;
1: + uInt match_length;
1: + IPos prev_match;
1: + int match_available;
1: + uInt strstart;
1: + uInt match_start;
1: + uInt lookahead;
1: + uInt prev_length;
1: + uInt max_chain_length;
1: + uInt max_lazy_match;
1: + int level;
1: + int strategy;
1: + uInt good_match;
1: + int nice_match;
1: + struct ct_data_s dyn_ltree[573];
1: + struct ct_data_s dyn_dtree[61];
1: + struct ct_data_s bl_tree[39];
1: + struct tree_desc_s l_desc;
1: + struct tree_desc_s d_desc;
1: + struct tree_desc_s bl_desc;
1: + ush bl_count[16];
1: + int heap[573];
1: + int heap_len;
1: + int heap_max;
1: + uch depth[573];
1: + uch *l_buf;
1: + uInt lit_bufsize;
1: + uInt last_lit;
1: + ush *d_buf;
1: + ulg opt_len;
1: + ulg static_len;
1: + ulg compressed_len;
1: + uInt matches;
1: + int last_eob_len;
1: + ush bi_buf;
1: + int bi_valid;
1: +};
1: +
1: +typedef struct deflate_state deflate_state;
1: +
1: +typedef enum {
1: + need_more = 0,
1: + block_done = 1,
1: + finish_started = 2,
1: + finish_done = 3,
1: +} block_state;
1: +
1: +typedef block_state (*compress_func)(deflate_state *, int);
1: +
1: +struct deflate_workspace {
1: + deflate_state deflate_memory;
1: + Byte *window_memory;
1: + Pos *prev_memory;
1: + Pos *head_memory;
1: + char *overlay_memory;
1: +};
1: +
1: +typedef struct deflate_workspace deflate_workspace;
1: +
1: +struct config_s {
1: + ush good_length;
1: + ush max_lazy;
1: + ush nice_length;
1: + ush max_chain;
1: + compress_func func;
1: +};
1: +
1: +typedef struct config_s config;
1: +
1: +typedef struct tree_desc_s tree_desc;
1: +
1: +typedef struct {
1: + uint32_t hashTable[4096];
1: + uint32_t currentOffset;
1: + uint32_t initCheck;
1: + const uint8_t *dictionary;
1: + uint8_t *bufferStart;
1: + uint32_t dictSize;
1: +} LZ4_stream_t_internal;
1: +
1: +typedef union {
1: + long long unsigned int table[2052];
1: + LZ4_stream_t_internal internal_donotuse;
1: +} LZ4_stream_t;
1: +
1: +typedef uint8_t BYTE;
1: +
1: +typedef uint16_t U16;
1: +
1: +typedef uint32_t U32;
1: +
1: +typedef uint64_t U64;
1: +
1: +typedef uintptr_t uptrval;
1: +
1: +typedef enum {
1: + noLimit = 0,
1: + limitedOutput = 1,
1: +} limitedOutput_directive;
1: +
1: +typedef enum {
1: + byPtr = 0,
1: + byU32 = 1,
1: + byU16 = 2,
1: +} tableType_t;
1: +
1: +typedef enum {
1: + noDict = 0,
1: + withPrefix64k = 1,
1: + usingExtDict = 2,
1: +} dict_directive;
1: +
1: +typedef enum {
1: + noDictIssue = 0,
1: + dictSmall = 1,
1: +} dictIssue_directive;
1: +
1: +typedef struct {
1: + const uint8_t *externalDict;
1: + size_t extDictSize;
1: + const uint8_t *prefixEnd;
1: + size_t prefixSize;
1: +} LZ4_streamDecode_t_internal;
1: +
1: +typedef union {
1: + long long unsigned int table[4];
1: + LZ4_streamDecode_t_internal internal_donotuse;
1: +} LZ4_streamDecode_t;
1: +
1: +typedef enum {
1: + endOnOutputSize = 0,
1: + endOnInputSize = 1,
1: +} endCondition_directive;
1: +
1: +typedef enum {
1: + decode_full_block = 0,
1: + partial_decode = 1,
1: +} earlyEnd_directive;
1: +
1: +typedef struct {
1: + size_t bitContainer;
1: + int bitPos;
1: + char *startPtr;
1: + char *ptr;
1: + char *endPtr;
1: +} BIT_CStream_t;
1: +
1: +typedef unsigned int FSE_CTable;
1: +
1: +typedef struct {
1: + ptrdiff_t value;
1: + const void *stateTable;
1: + const void *symbolTT;
1: + unsigned int stateLog;
1: +} FSE_CState_t;
1: +
1: +typedef struct {
1: + int deltaFindState;
1: + U32 deltaNbBits;
1: +} FSE_symbolCompressionTransform;
1: +
1: +typedef int16_t S16;
1: +
1: +struct HUF_CElt_s {
1: + U16 val;
1: + BYTE nbBits;
1: +};
1: +
1: +typedef struct HUF_CElt_s HUF_CElt;
1: +
1: +typedef enum {
1: + HUF_repeat_none = 0,
1: + HUF_repeat_check = 1,
1: + HUF_repeat_valid = 2,
1: +} HUF_repeat;
1: +
1: +struct nodeElt_s {
1: + U32 count;
1: + U16 parent;
1: + BYTE byte;
1: + BYTE nbBits;
1: +};
1: +
1: +typedef struct nodeElt_s nodeElt;
1: +
1: +typedef struct {
1: + U32 base;
1: + U32 curr;
1: +} rankPos;
1: +
1: +typedef enum {
1: + ZSTDcs_created = 0,
1: + ZSTDcs_init = 1,
1: + ZSTDcs_ongoing = 2,
1: + ZSTDcs_ending = 3,
1: +} ZSTD_compressionStage_e;
1: +
1: +typedef void * (*ZSTD_allocFunction)(void *, size_t);
1: +
1: +typedef void (*ZSTD_freeFunction)(void *, void *);
1: +
1: +typedef struct {
1: + ZSTD_allocFunction customAlloc;
1: + ZSTD_freeFunction customFree;
1: + void *opaque;
1: +} ZSTD_customMem;
1: +
1: +typedef struct {
1: + U32 price;
1: + U32 off;
1: + U32 mlen;
1: + U32 litlen;
1: + U32 rep[3];
1: +} ZSTD_optimal_t;
1: +
1: +typedef struct {
1: + U32 off;
1: + U32 len;
1: +} ZSTD_match_t;
1: +
1: +struct seqDef_s;
1: +
1: +typedef struct seqDef_s seqDef;
1: +
1: +typedef struct {
1: + seqDef *sequencesStart;
1: + seqDef *sequences;
1: + BYTE *litStart;
1: + BYTE *lit;
1: + BYTE *llCode;
1: + BYTE *mlCode;
1: + BYTE *ofCode;
1: + U32 longLengthID;
1: + U32 longLengthPos;
1: + ZSTD_optimal_t *priceTable;
1: + ZSTD_match_t *matchTable;
1: + U32 *matchLengthFreq;
1: + U32 *litLengthFreq;
1: + U32 *litFreq;
1: + U32 *offCodeFreq;
1: + U32 matchLengthSum;
1: + U32 matchSum;
1: + U32 litLengthSum;
1: + U32 litSum;
1: + U32 offCodeSum;
1: + U32 log2matchLengthSum;
1: + U32 log2matchSum;
1: + U32 log2litLengthSum;
1: + U32 log2litSum;
1: + U32 log2offCodeSum;
1: + U32 factor;
1: + U32 staticPrices;
1: + U32 cachedPrice;
1: + U32 cachedLitLength;
1: + const BYTE *cachedLiterals;
1: +} seqStore_t;
1: +
1: +struct HUF_CElt_s___2;
1: +
1: +typedef struct HUF_CElt_s___2 HUF_CElt___2;
1: +
1: +struct ZSTD_CCtx_s___2 {
1: + const BYTE *nextSrc;
1: + const BYTE *base;
1: + const BYTE *dictBase;
1: + U32 dictLimit;
1: + U32 lowLimit;
1: + U32 nextToUpdate;
1: + U32 nextToUpdate3;
1: + U32 hashLog3;
1: + U32 loadedDictEnd;
1: + U32 forceWindow;
1: + U32 forceRawDict;
1: + ZSTD_compressionStage_e stage;
1: + U32 rep[3];
1: + U32 repToConfirm[3];
1: + U32 dictID;
1: + ZSTD_parameters params;
1: + void *workSpace;
1: + size_t workSpaceSize;
1: + size_t blockSize;
1: + U64 frameContentSize;
1: + struct xxh64_state xxhState;
1: + ZSTD_customMem customMem;
1: + seqStore_t seqStore;
1: + U32 *hashTable;
1: + U32 *hashTable3;
1: + U32 *chainTable;
1: + HUF_CElt___2 *hufTable;
1: + U32 flagStaticTables;
1: + HUF_repeat flagStaticHufTable;
1: + FSE_CTable offcodeCTable[187];
1: + FSE_CTable matchlengthCTable[363];
1: + FSE_CTable litlengthCTable[329];
1: + unsigned int tmpCounters[1536];
1: +};
1: +
1: +typedef struct ZSTD_CCtx_s___2 ZSTD_CCtx___2;
1: +
1: +struct ZSTD_CDict_s {
1: + void *dictBuffer;
1: + const void *dictContent;
1: + size_t dictContentSize;
1: + ZSTD_CCtx___2 *refContext;
1: +};
1: +
1: +typedef struct ZSTD_CDict_s ZSTD_CDict;
1: +
1: +struct ZSTD_inBuffer_s {
1: + const void *src;
1: + size_t size;
1: + size_t pos;
1: +};
1: +
1: +typedef struct ZSTD_inBuffer_s ZSTD_inBuffer;
1: +
1: +struct ZSTD_outBuffer_s {
1: + void *dst;
1: + size_t size;
1: + size_t pos;
1: +};
1: +
1: +typedef struct ZSTD_outBuffer_s ZSTD_outBuffer;
1: +
1: +typedef enum {
1: + zcss_init = 0,
1: + zcss_load = 1,
1: + zcss_flush = 2,
1: + zcss_final = 3,
1: +} ZSTD_cStreamStage;
1: +
1: +struct ZSTD_CStream_s {
1: + ZSTD_CCtx___2 *cctx;
1: + ZSTD_CDict *cdictLocal;
1: + const ZSTD_CDict *cdict;
1: + char *inBuff;
1: + size_t inBuffSize;
1: + size_t inToCompress;
1: + size_t inBuffPos;
1: + size_t inBuffTarget;
1: + size_t blockSize;
1: + char *outBuff;
1: + size_t outBuffSize;
1: + size_t outBuffContentSize;
1: + size_t outBuffFlushedSize;
1: + ZSTD_cStreamStage stage;
1: + U32 checksum;
1: + U32 frameEnded;
1: + U64 pledgedSrcSize;
1: + U64 inputProcessed;
1: + ZSTD_parameters params;
1: + ZSTD_customMem customMem;
1: +};
1: +
1: +typedef struct ZSTD_CStream_s ZSTD_CStream;
1: +
1: +typedef int32_t S32;
1: +
1: +typedef enum {
1: + set_basic = 0,
1: + set_rle = 1,
1: + set_compressed = 2,
1: + set_repeat = 3,
1: +} symbolEncodingType_e;
1: +
1: +struct seqDef_s {
1: + U32 offset;
1: + U16 litLength;
1: + U16 matchLength;
1: +};
1: +
1: +typedef enum {
1: + ZSTDcrp_continue = 0,
1: + ZSTDcrp_noMemset = 1,
1: + ZSTDcrp_fullReset = 2,
1: +} ZSTD_compResetPolicy_e;
1: +
1: +typedef void (*ZSTD_blockCompressor)(ZSTD_CCtx___2 *, const void *, size_t);
1: +
1: +typedef enum {
1: + zsf_gather = 0,
1: + zsf_flush = 1,
1: + zsf_end = 2,
1: +} ZSTD_flush_e;
1: +
1: +typedef size_t (*searchMax_f)(ZSTD_CCtx___2 *, const BYTE *, const BYTE *, size_t *, U32, U32);
1: +
1: +typedef struct {
1: + size_t bitContainer;
1: + unsigned int bitsConsumed;
1: + const char *ptr;
1: + const char *start;
1: +} BIT_DStream_t;
1: +
1: +typedef enum {
1: + BIT_DStream_unfinished = 0,
1: + BIT_DStream_endOfBuffer = 1,
1: + BIT_DStream_completed = 2,
1: + BIT_DStream_overflow = 3,
1: +} BIT_DStream_status;
1: +
1: +typedef unsigned int FSE_DTable;
1: +
1: +typedef struct {
1: + size_t state;
1: + const void *table;
1: +} FSE_DState_t;
1: +
1: +typedef struct {
1: + U16 tableLog;
1: + U16 fastMode;
1: +} FSE_DTableHeader;
1: +
1: +typedef struct {
1: + short unsigned int newState;
1: + unsigned char symbol;
1: + unsigned char nbBits;
1: +} FSE_decode_t;
1: +
1: +typedef struct {
1: + void *ptr;
1: + const void *end;
1: +} ZSTD_stack;
1: +
1: +typedef U32 HUF_DTable;
1: +
1: +typedef struct {
1: + BYTE maxTableLog;
1: + BYTE tableType;
1: + BYTE tableLog;
1: + BYTE reserved;
1: +} DTableDesc;
1: +
1: +typedef struct {
1: + BYTE byte;
1: + BYTE nbBits;
1: +} HUF_DEltX2;
1: +
1: +typedef struct {
1: + U16 sequence;
1: + BYTE nbBits;
1: + BYTE length;
1: +} HUF_DEltX4;
1: +
1: +typedef struct {
1: + BYTE symbol;
1: + BYTE weight;
1: +} sortedSymbol_t;
1: +
1: +typedef U32 rankValCol_t[13];
1: +
1: +typedef struct {
1: + U32 tableTime;
1: + U32 decode256Time;
1: +} algo_time_t;
1: +
1: +typedef struct {
1: + FSE_DTable LLTable[513];
1: + FSE_DTable OFTable[257];
1: + FSE_DTable MLTable[513];
1: + HUF_DTable hufTable[4097];
1: + U64 workspace[384];
1: + U32 rep[3];
1: +} ZSTD_entropyTables_t;
1: +
1: +typedef struct {
1: + long long unsigned int frameContentSize;
1: + unsigned int windowSize;
1: + unsigned int dictID;
1: + unsigned int checksumFlag;
1: +} ZSTD_frameParams;
1: +
1: +typedef enum {
1: + bt_raw = 0,
1: + bt_rle = 1,
1: + bt_compressed = 2,
1: + bt_reserved = 3,
1: +} blockType_e;
1: +
1: +typedef enum {
1: + ZSTDds_getFrameHeaderSize = 0,
1: + ZSTDds_decodeFrameHeader = 1,
1: + ZSTDds_decodeBlockHeader = 2,
1: + ZSTDds_decompressBlock = 3,
1: + ZSTDds_decompressLastBlock = 4,
1: + ZSTDds_checkChecksum = 5,
1: + ZSTDds_decodeSkippableHeader = 6,
1: + ZSTDds_skipFrame = 7,
1: +} ZSTD_dStage;
1: +
1: +struct ZSTD_DCtx_s___2 {
1: + const FSE_DTable *LLTptr;
1: + const FSE_DTable *MLTptr;
1: + const FSE_DTable *OFTptr;
1: + const HUF_DTable *HUFptr;
1: + ZSTD_entropyTables_t entropy;
1: + const void *previousDstEnd;
1: + const void *base;
1: + const void *vBase;
1: + const void *dictEnd;
1: + size_t expected;
1: + ZSTD_frameParams fParams;
1: + blockType_e bType;
1: + ZSTD_dStage stage;
1: + U32 litEntropy;
1: + U32 fseEntropy;
1: + struct xxh64_state xxhState;
1: + size_t headerSize;
1: + U32 dictID;
1: + const BYTE *litPtr;
1: + ZSTD_customMem customMem;
1: + size_t litSize;
1: + size_t rleSize;
1: + BYTE litBuffer[131080];
1: + BYTE headerBuffer[18];
1: +};
1: +
1: +typedef struct ZSTD_DCtx_s___2 ZSTD_DCtx___2;
1: +
1: +struct ZSTD_DDict_s {
1: + void *dictBuffer;
1: + const void *dictContent;
1: + size_t dictSize;
1: + ZSTD_entropyTables_t entropy;
1: + U32 dictID;
1: + U32 entropyPresent;
1: + ZSTD_customMem cMem;
1: +};
1: +
1: +typedef struct ZSTD_DDict_s ZSTD_DDict;
1: +
1: +typedef enum {
1: + zdss_init = 0,
1: + zdss_loadHeader = 1,
1: + zdss_read = 2,
1: + zdss_load = 3,
1: + zdss_flush = 4,
1: +} ZSTD_dStreamStage;
1: +
1: +struct ZSTD_DStream_s {
1: + ZSTD_DCtx___2 *dctx;
1: + ZSTD_DDict *ddictLocal;
1: + const ZSTD_DDict *ddict;
1: + ZSTD_frameParams fParams;
1: + ZSTD_dStreamStage stage;
1: + char *inBuff;
1: + size_t inBuffSize;
1: + size_t inPos;
1: + size_t maxWindowSize;
1: + char *outBuff;
1: + size_t outBuffSize;
1: + size_t outStart;
1: + size_t outEnd;
1: + size_t blockSize;
1: + BYTE headerBuffer[18];
1: + size_t lhSize;
1: + ZSTD_customMem customMem;
1: + void *legacyContext;
1: + U32 previousLegacyVersion;
1: + U32 legacyVersion;
1: + U32 hostageByte;
1: +};
1: +
1: +typedef struct ZSTD_DStream_s ZSTD_DStream;
1: +
1: +typedef enum {
1: + ZSTDnit_frameHeader = 0,
1: + ZSTDnit_blockHeader = 1,
1: + ZSTDnit_block = 2,
1: + ZSTDnit_lastBlock = 3,
1: + ZSTDnit_checksum = 4,
1: + ZSTDnit_skippableFrame = 5,
1: +} ZSTD_nextInputType_e;
1: +
1: +typedef uintptr_t uPtrDiff;
1: +
1: +typedef struct {
1: + blockType_e blockType;
1: + U32 lastBlock;
1: + U32 origSize;
1: +} blockProperties_t;
1: +
1: +typedef union {
1: + FSE_decode_t realData;
1: + U32 alignedBy4;
1: +} FSE_decode_t4;
1: +
1: +typedef struct {
1: + size_t litLength;
1: + size_t matchLength;
1: + size_t offset;
1: + const BYTE *match;
1: +} seq_t;
1: +
1: +typedef struct {
1: + BIT_DStream_t DStream;
1: + FSE_DState_t stateLL;
1: + FSE_DState_t stateOffb;
1: + FSE_DState_t stateML;
1: + size_t prevOffset[3];
1: + const BYTE *base;
1: + size_t pos;
1: + uPtrDiff gotoDict;
1: +} seqState_t;
1: +
1: +enum xz_mode {
1: + XZ_SINGLE = 0,
1: + XZ_PREALLOC = 1,
1: + XZ_DYNALLOC = 2,
1: +};
1: +
1: +enum xz_ret {
1: + XZ_OK = 0,
1: + XZ_STREAM_END = 1,
1: + XZ_UNSUPPORTED_CHECK = 2,
1: + XZ_MEM_ERROR = 3,
1: + XZ_MEMLIMIT_ERROR = 4,
1: + XZ_FORMAT_ERROR = 5,
1: + XZ_OPTIONS_ERROR = 6,
1: + XZ_DATA_ERROR = 7,
1: + XZ_BUF_ERROR = 8,
1: +};
1: +
1: +struct xz_buf {
1: + const uint8_t *in;
1: + size_t in_pos;
1: + size_t in_size;
1: + uint8_t *out;
1: + size_t out_pos;
1: + size_t out_size;
1: +};
1: +
1: +typedef uint64_t vli_type;
1: +
1: +enum xz_check {
1: + XZ_CHECK_NONE = 0,
1: + XZ_CHECK_CRC32 = 1,
1: + XZ_CHECK_CRC64 = 4,
1: + XZ_CHECK_SHA256 = 10,
1: +};
1: +
1: +struct xz_dec_hash {
1: + vli_type unpadded;
1: + vli_type uncompressed;
1: + uint32_t crc32;
1: +};
1: +
1: +struct xz_dec_lzma2;
1: +
1: +struct xz_dec_bcj;
1: +
1: +struct xz_dec {
1: + enum {
1: + SEQ_STREAM_HEADER = 0,
1: + SEQ_BLOCK_START = 1,
1: + SEQ_BLOCK_HEADER = 2,
1: + SEQ_BLOCK_UNCOMPRESS = 3,
1: + SEQ_BLOCK_PADDING = 4,
1: + SEQ_BLOCK_CHECK = 5,
1: + SEQ_INDEX = 6,
1: + SEQ_INDEX_PADDING = 7,
1: + SEQ_INDEX_CRC32 = 8,
1: + SEQ_STREAM_FOOTER = 9,
1: + } sequence;
1: + uint32_t pos;
1: + vli_type vli;
1: + size_t in_start;
1: + size_t out_start;
1: + uint32_t crc32;
1: + enum xz_check check_type;
1: + enum xz_mode mode;
1: + bool allow_buf_error;
1: + struct {
1: + vli_type compressed;
1: + vli_type uncompressed;
1: + uint32_t size;
1: + } block_header;
1: + struct {
1: + vli_type compressed;
1: + vli_type uncompressed;
1: + vli_type count;
1: + struct xz_dec_hash hash;
1: + } block;
1: + struct {
1: + enum {
1: + SEQ_INDEX_COUNT = 0,
1: + SEQ_INDEX_UNPADDED = 1,
1: + SEQ_INDEX_UNCOMPRESSED = 2,
1: + } sequence;
1: + vli_type size;
1: + vli_type count;
1: + struct xz_dec_hash hash;
1: + } index;
1: + struct {
1: + size_t pos;
1: + size_t size;
1: + uint8_t buf[1024];
1: + } temp;
1: + struct xz_dec_lzma2 *lzma2;
1: + struct xz_dec_bcj *bcj;
1: + bool bcj_active;
1: +};
1: +
1: +enum lzma_state {
1: + STATE_LIT_LIT = 0,
1: + STATE_MATCH_LIT_LIT = 1,
1: + STATE_REP_LIT_LIT = 2,
1: + STATE_SHORTREP_LIT_LIT = 3,
1: + STATE_MATCH_LIT = 4,
1: + STATE_REP_LIT = 5,
1: + STATE_SHORTREP_LIT = 6,
1: + STATE_LIT_MATCH = 7,
1: + STATE_LIT_LONGREP = 8,
1: + STATE_LIT_SHORTREP = 9,
1: + STATE_NONLIT_MATCH = 10,
1: + STATE_NONLIT_REP = 11,
1: +};
1: +
1: +struct dictionary {
1: + uint8_t *buf;
1: + size_t start;
1: + size_t pos;
1: + size_t full;
1: + size_t limit;
1: + size_t end;
1: + uint32_t size;
1: + uint32_t size_max;
1: + uint32_t allocated;
1: + enum xz_mode mode;
1: +};
1: +
1: +struct rc_dec {
1: + uint32_t range;
1: + uint32_t code;
1: + uint32_t init_bytes_left;
1: + const uint8_t *in;
1: + size_t in_pos;
1: + size_t in_limit;
1: +};
1: +
1: +struct lzma_len_dec {
1: + uint16_t choice;
1: + uint16_t choice2;
1: + uint16_t low[128];
1: + uint16_t mid[128];
1: + uint16_t high[256];
1: +};
1: +
1: +struct lzma_dec {
1: + uint32_t rep0;
1: + uint32_t rep1;
1: + uint32_t rep2;
1: + uint32_t rep3;
1: + enum lzma_state state;
1: + uint32_t len;
1: + uint32_t lc;
1: + uint32_t literal_pos_mask;
1: + uint32_t pos_mask;
1: + uint16_t is_match[192];
1: + uint16_t is_rep[12];
1: + uint16_t is_rep0[12];
1: + uint16_t is_rep1[12];
1: + uint16_t is_rep2[12];
1: + uint16_t is_rep0_long[192];
1: + uint16_t dist_slot[256];
1: + uint16_t dist_special[114];
1: + uint16_t dist_align[16];
1: + struct lzma_len_dec match_len_dec;
1: + struct lzma_len_dec rep_len_dec;
1: + uint16_t literal[12288];
1: +};
1: +
1: +enum lzma2_seq {
1: + SEQ_CONTROL = 0,
1: + SEQ_UNCOMPRESSED_1 = 1,
1: + SEQ_UNCOMPRESSED_2 = 2,
1: + SEQ_COMPRESSED_0 = 3,
1: + SEQ_COMPRESSED_1 = 4,
1: + SEQ_PROPERTIES = 5,
1: + SEQ_LZMA_PREPARE = 6,
1: + SEQ_LZMA_RUN = 7,
1: + SEQ_COPY = 8,
1: +};
1: +
1: +struct lzma2_dec {
1: + enum lzma2_seq sequence;
1: + enum lzma2_seq next_sequence;
1: + uint32_t uncompressed;
1: + uint32_t compressed;
1: + bool need_dict_reset;
1: + bool need_props;
1: +};
1: +
1: +struct xz_dec_lzma2___2 {
1: + struct rc_dec rc;
1: + struct dictionary dict;
1: + struct lzma2_dec lzma2;
1: + struct lzma_dec lzma;
1: + struct {
1: + uint32_t size;
1: + uint8_t buf[63];
1: + } temp;
1: +};
1: +
1: +struct xz_dec_bcj___2 {
1: + enum {
1: + BCJ_X86 = 4,
1: + BCJ_POWERPC = 5,
1: + BCJ_IA64 = 6,
1: + BCJ_ARM = 7,
1: + BCJ_ARMTHUMB = 8,
1: + BCJ_SPARC = 9,
1: + } type;
1: + enum xz_ret ret;
1: + bool single_call;
1: + uint32_t pos;
1: + uint32_t x86_prev_mask;
1: + uint8_t *out;
1: + size_t out_pos;
1: + size_t out_size;
1: + struct {
1: + size_t filtered;
1: + size_t size;
1: + uint8_t buf[16];
1: + } temp;
1: +};
1: +
1: +struct ts_state {
1: + unsigned int offset;
1: + char cb[40];
1: +};
1: +
1: +struct ts_config;
1: +
1: +struct ts_ops {
1: + const char *name;
1: + struct ts_config * (*init)(const void *, unsigned int, gfp_t, int);
1: + unsigned int (*find)(struct ts_config *, struct ts_state *);
1: + void (*destroy)(struct ts_config *);
1: + void * (*get_pattern)(struct ts_config *);
1: + unsigned int (*get_pattern_len)(struct ts_config *);
1: + struct module *owner;
1: + struct list_head list;
1: +};
1: +
1: +struct ts_config {
1: + struct ts_ops *ops;
1: + int flags;
1: + unsigned int (*get_next_block)(unsigned int, const u8 **, struct ts_config *, struct ts_state *);
1: + void (*finish)(struct ts_config *, struct ts_state *);
1: +};
1: +
1: +struct ts_linear_state {
1: + unsigned int len;
1: + const void *data;
1: +};
1: +
1: +struct ei_entry {
1: + struct list_head list;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + int etype;
1: + void *priv;
1: +};
1: +
1: +struct nla_bitfield32 {
1: + __u32 value;
1: + __u32 selector;
1: +};
1: +
1: +enum nla_policy_validation {
1: + NLA_VALIDATE_NONE = 0,
1: + NLA_VALIDATE_RANGE = 1,
1: + NLA_VALIDATE_RANGE_WARN_TOO_LONG = 2,
1: + NLA_VALIDATE_MIN = 3,
1: + NLA_VALIDATE_MAX = 4,
1: + NLA_VALIDATE_MASK = 5,
1: + NLA_VALIDATE_RANGE_PTR = 6,
1: + NLA_VALIDATE_FUNCTION = 7,
1: +};
1: +
1: +enum netlink_validation {
1: + NL_VALIDATE_LIBERAL = 0,
1: + NL_VALIDATE_TRAILING = 1,
1: + NL_VALIDATE_MAXTYPE = 2,
1: + NL_VALIDATE_UNSPEC = 4,
1: + NL_VALIDATE_STRICT_ATTRS = 8,
1: + NL_VALIDATE_NESTED = 16,
1: +};
1: +
1: +struct cpu_rmap {
1: + struct kref refcount;
1: + u16 size;
1: + u16 used;
1: + void **obj;
1: + struct {
1: + u16 index;
1: + u16 dist;
1: + } near[0];
1: +};
1: +
1: +struct irq_glue {
1: + struct irq_affinity_notify notify;
1: + struct cpu_rmap *rmap;
1: + u16 index;
1: +};
1: +
1: +typedef mpi_limb_t *mpi_ptr_t;
1: +
1: +typedef int mpi_size_t;
1: +
1: +typedef mpi_limb_t UWtype;
1: +
1: +typedef unsigned int UHWtype;
1: +
1: +enum gcry_mpi_constants {
1: + MPI_C_ZERO = 0,
1: + MPI_C_ONE = 1,
1: + MPI_C_TWO = 2,
1: + MPI_C_THREE = 3,
1: + MPI_C_FOUR = 4,
1: + MPI_C_EIGHT = 5,
1: +};
1: +
1: +struct barrett_ctx_s;
1: +
1: +typedef struct barrett_ctx_s *mpi_barrett_t;
1: +
1: +struct gcry_mpi_point {
1: + MPI x;
1: + MPI y;
1: + MPI z;
1: +};
1: +
1: +typedef struct gcry_mpi_point *MPI_POINT;
1: +
1: +enum gcry_mpi_ec_models {
1: + MPI_EC_WEIERSTRASS = 0,
1: + MPI_EC_MONTGOMERY = 1,
1: + MPI_EC_EDWARDS = 2,
1: +};
1: +
1: +enum ecc_dialects {
1: + ECC_DIALECT_STANDARD = 0,
1: + ECC_DIALECT_ED25519 = 1,
1: + ECC_DIALECT_SAFECURVE = 2,
1: +};
1: +
1: +struct mpi_ec_ctx {
1: + enum gcry_mpi_ec_models model;
1: + enum ecc_dialects dialect;
1: + int flags;
1: + unsigned int nbits;
1: + MPI p;
1: + MPI a;
1: + MPI b;
1: + MPI_POINT G;
1: + MPI n;
1: + unsigned int h;
1: + MPI_POINT Q;
1: + MPI d;
1: + const char *name;
1: + struct {
1: + struct {
1: + unsigned int a_is_pminus3: 1;
1: + unsigned int two_inv_p: 1;
1: + } valid;
1: + int a_is_pminus3;
1: + MPI two_inv_p;
1: + mpi_barrett_t p_barrett;
1: + MPI scratch[11];
1: + } t;
1: + void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: + void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: +};
1: +
1: +struct field_table {
1: + const char *p;
1: + void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: + void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: +};
1: +
1: +enum gcry_mpi_format {
1: + GCRYMPI_FMT_NONE = 0,
1: + GCRYMPI_FMT_STD = 1,
1: + GCRYMPI_FMT_PGP = 2,
1: + GCRYMPI_FMT_SSH = 3,
1: + GCRYMPI_FMT_HEX = 4,
1: + GCRYMPI_FMT_USG = 5,
1: + GCRYMPI_FMT_OPAQUE = 8,
1: +};
1: +
1: +struct barrett_ctx_s___2;
1: +
1: +typedef struct barrett_ctx_s___2 *mpi_barrett_t___2;
1: +
1: +struct barrett_ctx_s___2 {
1: + MPI m;
1: + int m_copied;
1: + int k;
1: + MPI y;
1: + MPI r1;
1: + MPI r2;
1: + MPI r3;
1: +};
1: +
1: +struct karatsuba_ctx {
1: + struct karatsuba_ctx *next;
1: + mpi_ptr_t tspace;
1: + mpi_size_t tspace_size;
1: + mpi_ptr_t tp;
1: + mpi_size_t tp_size;
1: +};
1: +
1: +typedef long int mpi_limb_signed_t;
1: +
1: +enum dim_tune_state {
1: + DIM_PARKING_ON_TOP = 0,
1: + DIM_PARKING_TIRED = 1,
1: + DIM_GOING_RIGHT = 2,
1: + DIM_GOING_LEFT = 3,
1: +};
1: +
1: +struct dim_cq_moder {
1: + u16 usec;
1: + u16 pkts;
1: + u16 comps;
1: + u8 cq_period_mode;
1: +};
1: +
1: +enum dim_cq_period_mode {
1: + DIM_CQ_PERIOD_MODE_START_FROM_EQE = 0,
1: + DIM_CQ_PERIOD_MODE_START_FROM_CQE = 1,
1: + DIM_CQ_PERIOD_NUM_MODES = 2,
1: +};
1: +
1: +enum dim_state {
1: + DIM_START_MEASURE = 0,
1: + DIM_MEASURE_IN_PROGRESS = 1,
1: + DIM_APPLY_NEW_PROFILE = 2,
1: +};
1: +
1: +enum dim_stats_state {
1: + DIM_STATS_WORSE = 0,
1: + DIM_STATS_SAME = 1,
1: + DIM_STATS_BETTER = 2,
1: +};
1: +
1: +enum dim_step_result {
1: + DIM_STEPPED = 0,
1: + DIM_TOO_TIRED = 1,
1: + DIM_ON_EDGE = 2,
1: +};
1: +
1: +enum pubkey_algo {
1: + PUBKEY_ALGO_RSA = 0,
1: + PUBKEY_ALGO_MAX = 1,
1: +};
1: +
1: +struct pubkey_hdr {
1: + uint8_t version;
1: + uint32_t timestamp;
1: + uint8_t algo;
1: + uint8_t nmpi;
1: + char mpi[0];
1: +} __attribute__((packed));
1: +
1: +struct signature_hdr {
1: + uint8_t version;
1: + uint32_t timestamp;
1: + uint8_t algo;
1: + uint8_t hash;
1: + uint8_t keyid[8];
1: + uint8_t nmpi;
1: + char mpi[0];
1: +} __attribute__((packed));
1: +
1: +struct sg_splitter {
1: + struct scatterlist *in_sg0;
1: + int nents;
1: + off_t skip_sg0;
1: + unsigned int length_last_sg;
1: + struct scatterlist *out_sg;
1: +};
1: +
1: +struct sg_pool {
1: + size_t size;
1: + char *name;
1: + struct kmem_cache *slab;
1: + mempool_t *pool;
1: +};
1: +
1: +enum {
1: + IRQ_POLL_F_SCHED = 0,
1: + IRQ_POLL_F_DISABLE = 1,
1: +};
1: +
1: +struct font_desc {
1: + int idx;
1: + const char *name;
1: + int width;
1: + int height;
1: + const void *data;
1: + int pref;
1: +};
1: +
1: +struct font_data {
1: + unsigned int extra[4];
1: + const unsigned char data[0];
1: +};
1: +
1: +typedef u16 ucs2_char_t;
1: +
1: +struct firmware {
1: + size_t size;
1: + const u8 *data;
1: + void *priv;
1: +};
1: +
1: +struct pldmfw_record {
1: + struct list_head entry;
1: + struct list_head descs;
1: + const u8 *version_string;
1: + u8 version_type;
1: + u8 version_len;
1: + u16 package_data_len;
1: + u32 device_update_flags;
1: + const u8 *package_data;
1: + long unsigned int *component_bitmap;
1: + u16 component_bitmap_len;
1: +};
1: +
1: +struct pldmfw_desc_tlv {
1: + struct list_head entry;
1: + const u8 *data;
1: + u16 type;
1: + u16 size;
1: +};
1: +
1: +struct pldmfw_component {
1: + struct list_head entry;
1: + u16 classification;
1: + u16 identifier;
1: + u16 options;
1: + u16 activation_method;
1: + u32 comparison_stamp;
1: + u32 component_size;
1: + const u8 *component_data;
1: + const u8 *version_string;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 index;
1: +};
1: +
1: +struct pldmfw_ops;
1: +
1: +struct pldmfw {
1: + const struct pldmfw_ops *ops;
1: + struct device *dev;
1: +};
1: +
1: +struct pldmfw_ops {
1: + bool (*match_record)(struct pldmfw *, struct pldmfw_record *);
1: + int (*send_package_data)(struct pldmfw *, const u8 *, u16);
1: + int (*send_component_table)(struct pldmfw *, struct pldmfw_component *, u8);
1: + int (*flash_component)(struct pldmfw *, struct pldmfw_component *);
1: + int (*finalize_update)(struct pldmfw *);
1: +};
1: +
1: +struct __pldm_timestamp {
1: + u8 b[13];
1: +};
1: +
1: +struct __pldm_header {
1: + uuid_t id;
1: + u8 revision;
1: + __le16 size;
1: + struct __pldm_timestamp release_date;
1: + __le16 component_bitmap_len;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 version_string[0];
1: +} __attribute__((packed));
1: +
1: +struct __pldmfw_record_info {
1: + __le16 record_len;
1: + u8 descriptor_count;
1: + __le32 device_update_flags;
1: + u8 version_type;
1: + u8 version_len;
1: + __le16 package_data_len;
1: + u8 variable_record_data[0];
1: +} __attribute__((packed));
1: +
1: +struct __pldmfw_desc_tlv {
1: + __le16 type;
1: + __le16 size;
1: + u8 data[0];
1: +};
1: +
1: +struct __pldmfw_record_area {
1: + u8 record_count;
1: + u8 records[0];
1: +};
1: +
1: +struct __pldmfw_component_info {
1: + __le16 classification;
1: + __le16 identifier;
1: + __le32 comparison_stamp;
1: + __le16 options;
1: + __le16 activation_method;
1: + __le32 location_offset;
1: + __le32 size;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 version_string[0];
1: +} __attribute__((packed));
1: +
1: +struct __pldmfw_component_area {
1: + __le16 component_image_count;
1: + u8 components[0];
1: +};
1: +
1: +struct pldmfw_priv {
1: + struct pldmfw *context;
1: + const struct firmware *fw;
1: + size_t offset;
1: + struct list_head records;
1: + struct list_head components;
1: + const struct __pldm_header *header;
1: + u16 total_header_size;
1: + u16 component_bitmap_len;
1: + u16 bitmap_size;
1: + u16 component_count;
1: + const u8 *component_start;
1: + const u8 *record_start;
1: + u8 record_count;
1: + u32 header_crc;
1: + struct pldmfw_record *matching_record;
1: +};
1: +
1: +struct pldm_pci_record_id {
1: + int vendor;
1: + int device;
1: + int subsystem_vendor;
1: + int subsystem_device;
1: +};
1: +
1: +typedef long unsigned int cycles_t;
1: +
1: +struct compress_format {
1: + unsigned char magic[2];
1: + const char *name;
1: + decompress_fn decompressor;
1: +};
1: +
1: +struct group_data {
1: + int limit[21];
1: + int base[20];
1: + int permute[258];
1: + int minLen;
1: + int maxLen;
1: +};
1: +
1: +struct bunzip_data {
1: + int writeCopies;
1: + int writePos;
1: + int writeRunCountdown;
1: + int writeCount;
1: + int writeCurrent;
1: + long int (*fill)(void *, long unsigned int);
1: + long int inbufCount;
1: + long int inbufPos;
1: + unsigned char *inbuf;
1: + unsigned int inbufBitCount;
1: + unsigned int inbufBits;
1: + unsigned int crc32Table[256];
1: + unsigned int headerCRC;
1: + unsigned int totalCRC;
1: + unsigned int writeCRC;
1: + unsigned int *dbuf;
1: + unsigned int dbufSize;
1: + unsigned char selectors[32768];
1: + struct group_data groups[6];
1: + int io_error;
1: + int byteCount[256];
1: + unsigned char symToByte[256];
1: + unsigned char mtfSymbol[256];
1: +};
1: +
1: +struct rc {
1: + long int (*fill)(void *, long unsigned int);
1: + uint8_t *ptr;
1: + uint8_t *buffer;
1: + uint8_t *buffer_end;
1: + long int buffer_size;
1: + uint32_t code;
1: + uint32_t range;
1: + uint32_t bound;
1: + void (*error)(char *);
1: +};
1: +
1: +struct lzma_header {
1: + uint8_t pos;
1: + uint32_t dict_size;
1: + uint64_t dst_size;
1: +} __attribute__((packed));
1: +
1: +struct writer {
1: + uint8_t *buffer;
1: + uint8_t previous_byte;
1: + size_t buffer_pos;
1: + int bufsize;
1: + size_t global_pos;
1: + long int (*flush)(void *, long unsigned int);
1: + struct lzma_header *header;
1: +};
1: +
1: +struct cstate {
1: + int state;
1: + uint32_t rep0;
1: + uint32_t rep1;
1: + uint32_t rep2;
1: + uint32_t rep3;
1: +};
1: +
1: +struct xz_dec___2;
1: +
1: +typedef enum {
1: + ZSTD_error_no_error = 0,
1: + ZSTD_error_GENERIC = 1,
1: + ZSTD_error_prefix_unknown = 2,
1: + ZSTD_error_version_unsupported = 3,
1: + ZSTD_error_parameter_unknown = 4,
1: + ZSTD_error_frameParameter_unsupported = 5,
1: + ZSTD_error_frameParameter_unsupportedBy32bits = 6,
1: + ZSTD_error_frameParameter_windowTooLarge = 7,
1: + ZSTD_error_compressionParameter_unsupported = 8,
1: + ZSTD_error_init_missing = 9,
1: + ZSTD_error_memory_allocation = 10,
1: + ZSTD_error_stage_wrong = 11,
1: + ZSTD_error_dstSize_tooSmall = 12,
1: + ZSTD_error_srcSize_wrong = 13,
1: + ZSTD_error_corruption_detected = 14,
1: + ZSTD_error_checksum_wrong = 15,
1: + ZSTD_error_tableLog_tooLarge = 16,
1: + ZSTD_error_maxSymbolValue_tooLarge = 17,
1: + ZSTD_error_maxSymbolValue_tooSmall = 18,
1: + ZSTD_error_dictionary_corrupted = 19,
1: + ZSTD_error_dictionary_wrong = 20,
1: + ZSTD_error_dictionaryCreation_failed = 21,
1: + ZSTD_error_maxCode = 22,
1: +} ZSTD_ErrorCode;
1: +
1: +struct ZSTD_DStream_s___2;
1: +
1: +typedef struct ZSTD_DStream_s___2 ZSTD_DStream___2;
1: +
1: +struct cpio_data {
1: + void *data;
1: + size_t size;
1: + char name[18];
1: +};
1: +
1: +enum cpio_fields {
1: + C_MAGIC = 0,
1: + C_INO = 1,
1: + C_MODE = 2,
1: + C_UID = 3,
1: + C_GID = 4,
1: + C_NLINK = 5,
1: + C_MTIME = 6,
1: + C_FILESIZE = 7,
1: + C_MAJ = 8,
1: + C_MIN = 9,
1: + C_RMAJ = 10,
1: + C_RMIN = 11,
1: + C_NAMESIZE = 12,
1: + C_CHKSUM = 13,
1: + C_NFIELDS = 14,
1: +};
1: +
1: +enum {
1: + ASSUME_PERFECT = 255,
1: + ASSUME_VALID_DTB = 1,
1: + ASSUME_VALID_INPUT = 2,
1: + ASSUME_LATEST = 4,
1: + ASSUME_NO_ROLLBACK = 8,
1: + ASSUME_LIBFDT_ORDER = 16,
1: + ASSUME_LIBFDT_FLAWLESS = 32,
1: +};
1: +
1: +struct fdt_reserve_entry {
1: + fdt64_t address;
1: + fdt64_t size;
1: +};
1: +
1: +struct fdt_node_header {
1: + fdt32_t tag;
1: + char name[0];
1: +};
1: +
1: +struct fdt_property {
1: + fdt32_t tag;
1: + fdt32_t len;
1: + fdt32_t nameoff;
1: + char data[0];
1: +};
1: +
1: +struct fdt_errtabent {
1: + const char *str;
1: +};
1: +
1: +struct fprop_local_single {
1: + long unsigned int events;
1: + unsigned int period;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct ida_bitmap {
1: + long unsigned int bitmap[16];
1: +};
1: +
1: +struct klist_waiter {
1: + struct list_head list;
1: + struct klist_node *node;
1: + struct task_struct *process;
1: + int woken;
1: +};
1: +
1: +struct uevent_sock {
1: + struct list_head list;
1: + struct sock *sk;
1: +};
1: +
1: +enum {
1: + LOGIC_PIO_INDIRECT = 0,
1: + LOGIC_PIO_CPU_MMIO = 1,
1: +};
1: +
1: +struct logic_pio_host_ops;
1: +
1: +struct logic_pio_hwaddr {
1: + struct list_head list;
1: + struct fwnode_handle *fwnode;
1: + resource_size_t hw_start;
1: + resource_size_t io_start;
1: + resource_size_t size;
1: + long unsigned int flags;
1: + void *hostdata;
1: + const struct logic_pio_host_ops *ops;
1: +};
1: +
1: +struct logic_pio_host_ops {
1: + u32 (*in)(void *, long unsigned int, size_t);
1: + void (*out)(void *, long unsigned int, u32, size_t);
1: + u32 (*ins)(void *, long unsigned int, void *, size_t, unsigned int);
1: + void (*outs)(void *, long unsigned int, const void *, size_t, unsigned int);
1: +};
1: +
1: +struct radix_tree_preload {
1: + unsigned int nr;
1: + struct xa_node *nodes;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int key[2];
1: +} hsiphash_key_t;
1: +
1: +enum format_type {
1: + FORMAT_TYPE_NONE = 0,
1: + FORMAT_TYPE_WIDTH = 1,
1: + FORMAT_TYPE_PRECISION = 2,
1: + FORMAT_TYPE_CHAR = 3,
1: + FORMAT_TYPE_STR = 4,
1: + FORMAT_TYPE_PTR = 5,
1: + FORMAT_TYPE_PERCENT_CHAR = 6,
1: + FORMAT_TYPE_INVALID = 7,
1: + FORMAT_TYPE_LONG_LONG = 8,
1: + FORMAT_TYPE_ULONG = 9,
1: + FORMAT_TYPE_LONG = 10,
1: + FORMAT_TYPE_UBYTE = 11,
1: + FORMAT_TYPE_BYTE = 12,
1: + FORMAT_TYPE_USHORT = 13,
1: + FORMAT_TYPE_SHORT = 14,
1: + FORMAT_TYPE_UINT = 15,
1: + FORMAT_TYPE_INT = 16,
1: + FORMAT_TYPE_SIZE_T = 17,
1: + FORMAT_TYPE_PTRDIFF = 18,
1: +};
1: +
1: +struct printf_spec {
1: + unsigned int type: 8;
1: + int field_width: 24;
1: + unsigned int flags: 8;
1: + unsigned int base: 8;
1: + int precision: 16;
1: +};
1: +
1: +struct minmax_sample {
1: + u32 t;
1: + u32 v;
1: +};
1: +
1: +struct minmax {
1: + struct minmax_sample s[3];
1: +};
1: +
1: +struct xa_limit {
1: + u32 max;
1: + u32 min;
1: +};
1: +
1: +typedef int (*acpi_tbl_table_handler)(struct acpi_table_header *);
1: +
1: +typedef int (*acpi_tbl_entry_handler)(union acpi_subtable_headers *, const long unsigned int);
1: +
1: +struct acpi_probe_entry;
1: +
1: +typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, struct acpi_probe_entry *);
1: +
1: +struct acpi_probe_entry {
1: + __u8 id[5];
1: + __u8 type;
1: + acpi_probe_entry_validate_subtbl subtable_valid;
1: + union {
1: + acpi_tbl_table_handler probe_table;
1: + acpi_tbl_entry_handler probe_subtbl;
1: + };
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
1: +
1: +typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1: +
1: +struct armctrl_ic {
1: + void *base;
1: + void *pending[3];
1: + void *enable[3];
1: + void *disable[3];
1: + struct irq_domain *domain;
1: +};
1: +
1: +struct bcm2836_arm_irqchip_intc {
1: + struct irq_domain *domain;
1: + void *base;
1: +};
1: +
1: +struct tegra_ictlr_soc {
1: + unsigned int num_ictlrs;
1: +};
1: +
1: +struct tegra_ictlr_info {
1: + void *base[6];
1: + u32 cop_ier[6];
1: + u32 cop_iep[6];
1: + u32 cpu_ier[6];
1: + u32 cpu_iep[6];
1: + u32 ictlr_wake_mask[6];
1: +};
1: +
1: +struct sun4i_irq_chip_data {
1: + void *irq_base;
1: + struct irq_domain *irq_domain;
1: + u32 enable_reg_offset;
1: + u32 mask_reg_offset;
1: +};
1: +
1: +enum {
1: + SUNXI_SRC_TYPE_LEVEL_LOW = 0,
1: + SUNXI_SRC_TYPE_EDGE_FALLING = 1,
1: + SUNXI_SRC_TYPE_LEVEL_HIGH = 2,
1: + SUNXI_SRC_TYPE_EDGE_RISING = 3,
1: +};
1: +
1: +struct sunxi_sc_nmi_reg_offs {
1: + u32 ctrl;
1: + u32 pend;
1: + u32 enable;
1: +};
1: +
1: +struct acpi_madt_generic_distributor {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 gic_id;
1: + u64 base_address;
1: + u32 global_irq_base;
1: + u8 version;
1: + u8 reserved2[3];
1: +};
1: +
1: +enum acpi_madt_gic_version {
1: + ACPI_MADT_GIC_VERSION_NONE = 0,
1: + ACPI_MADT_GIC_VERSION_V1 = 1,
1: + ACPI_MADT_GIC_VERSION_V2 = 2,
1: + ACPI_MADT_GIC_VERSION_V3 = 3,
1: + ACPI_MADT_GIC_VERSION_V4 = 4,
1: + ACPI_MADT_GIC_VERSION_RESERVED = 5,
1: +};
1: +
1: +enum acpi_irq_model_id {
1: + ACPI_IRQ_MODEL_PIC = 0,
1: + ACPI_IRQ_MODEL_IOAPIC = 1,
1: + ACPI_IRQ_MODEL_IOSAPIC = 2,
1: + ACPI_IRQ_MODEL_PLATFORM = 3,
1: + ACPI_IRQ_MODEL_GIC = 4,
1: + ACPI_IRQ_MODEL_COUNT = 5,
1: +};
1: +
1: +union gic_base {
1: + void *common_base;
1: + void **percpu_base;
1: +};
1: +
1: +struct gic_chip_data {
1: + struct irq_chip chip;
1: + union gic_base dist_base;
1: + union gic_base cpu_base;
1: + void *raw_dist_base;
1: + void *raw_cpu_base;
1: + u32 percpu_offset;
1: + u32 saved_spi_enable[32];
1: + u32 saved_spi_active[32];
1: + u32 saved_spi_conf[64];
1: + u32 saved_spi_target[255];
1: + u32 *saved_ppi_enable;
1: + u32 *saved_ppi_active;
1: + u32 *saved_ppi_conf;
1: + struct irq_domain *domain;
1: + unsigned int gic_irqs;
1: +};
1: +
1: +struct gic_quirk {
1: + const char *desc;
1: + const char *compatible;
1: + bool (*init)(void *);
1: + u32 iidr;
1: + u32 mask;
1: +};
1: +
1: +struct clk_bulk_data {
1: + const char *id;
1: + struct clk *clk;
1: +};
1: +
1: +struct gic_clk_data {
1: + unsigned int num_clocks;
1: + const char * const *clocks;
1: +};
1: +
1: +struct gic_chip_data___2;
1: +
1: +struct gic_chip_pm {
1: + struct gic_chip_data___2 *chip_data;
1: + const struct gic_clk_data *clk_data;
1: + struct clk_bulk_data *clks;
1: +};
1: +
1: +struct acpi_table_madt {
1: + struct acpi_table_header header;
1: + u32 address;
1: + u32 flags;
1: +};
1: +
1: +struct acpi_madt_generic_msi_frame {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 msi_frame_id;
1: + u64 base_address;
1: + u32 flags;
1: + u16 spi_count;
1: + u16 spi_base;
1: +};
1: +
1: +struct v2m_data {
1: + struct list_head entry;
1: + struct fwnode_handle *fwnode;
1: + struct resource res;
1: + void *base;
1: + u32 spi_start;
1: + u32 nr_spis;
1: + u32 spi_offset;
1: + long unsigned int *bm;
1: + u32 flags;
1: +};
1: +
1: +struct acpi_madt_generic_redistributor {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u64 base_address;
1: + u32 length;
1: +} __attribute__((packed));
1: +
1: +struct rdists {
1: + struct {
1: + raw_spinlock_t rd_lock;
1: + void *rd_base;
1: + struct page *pend_page;
1: + phys_addr_t phys_base;
1: + bool lpi_enabled;
1: + cpumask_t *vpe_table_mask;
1: + void *vpe_l1_base;
1: + } *rdist;
1: + phys_addr_t prop_table_pa;
1: + void *prop_table_va;
1: + u64 flags;
1: + u32 gicd_typer;
1: + u32 gicd_typer2;
1: + bool has_vlpis;
1: + bool has_rvpeid;
1: + bool has_direct_lpi;
1: + bool has_vpend_valid_dirty;
1: +};
1: +
1: +struct partition_affinity {
1: + cpumask_t mask;
1: + void *partition_id;
1: +};
1: +
1: +struct redist_region {
1: + void *redist_base;
1: + phys_addr_t phys_base;
1: + bool single_redist;
1: +};
1: +
1: +struct partition_desc;
1: +
1: +struct gic_chip_data___3 {
1: + struct fwnode_handle *fwnode;
1: + void *dist_base;
1: + struct redist_region *redist_regions;
1: + struct rdists rdists;
1: + struct irq_domain *domain;
1: + u64 redist_stride;
1: + u32 nr_redist_regions;
1: + u64 flags;
1: + bool has_rss;
1: + unsigned int ppi_nr;
1: + struct partition_desc **ppi_descs;
1: +};
1: +
1: +enum gic_intid_range {
1: + SGI_RANGE = 0,
1: + PPI_RANGE = 1,
1: + SPI_RANGE = 2,
1: + EPPI_RANGE = 3,
1: + ESPI_RANGE = 4,
1: + LPI_RANGE = 5,
1: + __INVALID_RANGE__ = 6,
1: +};
1: +
1: +struct mbi_range {
1: + u32 spi_start;
1: + u32 nr_spis;
1: + long unsigned int *bm;
1: +};
1: +
1: +struct acpi_madt_generic_translator {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 translation_id;
1: + u64 base_address;
1: + u32 reserved2;
1: +} __attribute__((packed));
1: +
1: +struct acpi_srat_gic_its_affinity {
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u16 reserved;
1: + u32 its_id;
1: +} __attribute__((packed));
1: +
1: +enum its_vcpu_info_cmd_type {
1: + MAP_VLPI = 0,
1: + GET_VLPI = 1,
1: + PROP_UPDATE_VLPI = 2,
1: + PROP_UPDATE_AND_INV_VLPI = 3,
1: + SCHEDULE_VPE = 4,
1: + DESCHEDULE_VPE = 5,
1: + INVALL_VPE = 6,
1: + PROP_UPDATE_VSGI = 7,
1: +};
1: +
1: +struct its_cmd_info {
1: + enum its_vcpu_info_cmd_type cmd_type;
1: + union {
1: + struct its_vlpi_map *map;
1: + u8 config;
1: + bool req_db;
1: + struct {
1: + bool g0en;
1: + bool g1en;
1: + };
1: + struct {
1: + u8 priority;
1: + bool group;
1: + };
1: + };
1: +};
1: +
1: +struct its_collection___2 {
1: + u64 target_address;
1: + u16 col_id;
1: +};
1: +
1: +struct its_baser {
1: + void *base;
1: + u64 val;
1: + u32 order;
1: + u32 psz;
1: +};
1: +
1: +struct its_cmd_block;
1: +
1: +struct its_device___2;
1: +
1: +struct its_node {
1: + raw_spinlock_t lock;
1: + struct mutex dev_alloc_lock;
1: + struct list_head entry;
1: + void *base;
1: + void *sgir_base;
1: + phys_addr_t phys_base;
1: + struct its_cmd_block *cmd_base;
1: + struct its_cmd_block *cmd_write;
1: + struct its_baser tables[8];
1: + struct its_collection___2 *collections;
1: + struct fwnode_handle *fwnode_handle;
1: + u64 (*get_msi_base)(struct its_device___2 *);
1: + u64 typer;
1: + u64 cbaser_save;
1: + u32 ctlr_save;
1: + u32 mpidr;
1: + struct list_head its_device_list;
1: + u64 flags;
1: + long unsigned int list_nr;
1: + int numa_node;
1: + unsigned int msi_domain_flags;
1: + u32 pre_its_base;
1: + int vlpi_redist_offset;
1: +};
1: +
1: +struct its_cmd_block {
1: + union {
1: + u64 raw_cmd[4];
1: + __le64 raw_cmd_le[4];
1: + };
1: +};
1: +
1: +struct event_lpi_map {
1: + long unsigned int *lpi_map;
1: + u16 *col_map;
1: + irq_hw_number_t lpi_base;
1: + int nr_lpis;
1: + raw_spinlock_t vlpi_lock;
1: + struct its_vm *vm;
1: + struct its_vlpi_map *vlpi_maps;
1: + int nr_vlpis;
1: +};
1: +
1: +struct its_device___2 {
1: + struct list_head entry;
1: + struct its_node *its;
1: + struct event_lpi_map event_map;
1: + void *itt;
1: + u32 nr_ites;
1: + u32 device_id;
1: + bool shared;
1: +};
1: +
1: +struct cpu_lpi_count {
1: + atomic_t managed;
1: + atomic_t unmanaged;
1: +};
1: +
1: +struct its_cmd_desc {
1: + union {
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_inv_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_clear_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_int_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + int valid;
1: + } its_mapd_cmd;
1: + struct {
1: + struct its_collection___2 *col;
1: + int valid;
1: + } its_mapc_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 phys_id;
1: + u32 event_id;
1: + } its_mapti_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + struct its_collection___2 *col;
1: + u32 event_id;
1: + } its_movi_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_discard_cmd;
1: + struct {
1: + struct its_collection___2 *col;
1: + } its_invall_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + } its_vinvall_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_collection___2 *col;
1: + bool valid;
1: + } its_vmapp_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_device___2 *dev;
1: + u32 virt_id;
1: + u32 event_id;
1: + bool db_enabled;
1: + } its_vmapti_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + bool db_enabled;
1: + } its_vmovi_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_collection___2 *col;
1: + u16 seq_num;
1: + u16 its_list;
1: + } its_vmovp_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + } its_invdb_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + u8 sgi;
1: + u8 priority;
1: + bool enable;
1: + bool group;
1: + bool clear;
1: + } its_vsgi_cmd;
1: + };
1: +};
1: +
1: +typedef struct its_collection___2 * (*its_cmd_builder_t)(struct its_node *, struct its_cmd_block *, struct its_cmd_desc *);
1: +
1: +typedef struct its_vpe * (*its_cmd_vbuilder_t)(struct its_node *, struct its_cmd_block *, struct its_cmd_desc *);
1: +
1: +struct lpi_range {
1: + struct list_head entry;
1: + u32 base_id;
1: + u32 span;
1: +};
1: +
1: +struct its_srat_map {
1: + u32 numa_node;
1: + u32 its_id;
1: +};
1: +
1: +struct msi_controller {
1: + struct module *owner;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + struct list_head list;
1: + int (*setup_irq)(struct msi_controller *, struct pci_dev *, struct msi_desc *);
1: + int (*setup_irqs)(struct msi_controller *, struct pci_dev *, int, int);
1: + void (*teardown_irq)(struct msi_controller *, unsigned int);
1: +};
1: +
1: +struct partition_desc___2 {
1: + int nr_parts;
1: + struct partition_affinity *parts;
1: + struct irq_domain *domain;
1: + struct irq_desc *chained_desc;
1: + long unsigned int *bitmap;
1: + struct irq_domain_ops ops;
1: +};
1: +
1: +struct mbigen_device {
1: + struct platform_device *pdev;
1: + void *base;
1: +};
1: +
1: +struct mtk_sysirq_chip_data {
1: + raw_spinlock_t lock;
1: + u32 nr_intpol_bases;
1: + void **intpol_bases;
1: + u32 *intpol_words;
1: + u8 *intpol_idx;
1: + u16 *which_word;
1: +};
1: +
1: +struct mtk_cirq_chip_data {
1: + void *base;
1: + unsigned int ext_irq_start;
1: + unsigned int ext_irq_end;
1: + struct irq_domain *domain;
1: +};
1: +
1: +struct mvebu_gicp_spi_range {
1: + unsigned int start;
1: + unsigned int count;
1: +};
1: +
1: +struct mvebu_gicp {
1: + struct mvebu_gicp_spi_range *spi_ranges;
1: + unsigned int spi_ranges_cnt;
1: + unsigned int spi_cnt;
1: + long unsigned int *spi_bitmap;
1: + spinlock_t spi_lock;
1: + struct resource *res;
1: + struct device *dev;
1: +};
1: +
1: +struct mvebu_icu_subset_data {
1: + unsigned int icu_group;
1: + unsigned int offset_set_ah;
1: + unsigned int offset_set_al;
1: + unsigned int offset_clr_ah;
1: + unsigned int offset_clr_al;
1: +};
1: +
1: +struct mvebu_icu {
1: + void *base;
1: + struct device *dev;
1: +};
1: +
1: +struct mvebu_icu_msi_data {
1: + struct mvebu_icu *icu;
1: + atomic_t initialized;
1: + const struct mvebu_icu_subset_data *subset_data;
1: +};
1: +
1: +struct mvebu_icu_irq_data {
1: + struct mvebu_icu *icu;
1: + unsigned int icu_group;
1: + unsigned int type;
1: +};
1: +
1: +struct odmi_data {
1: + struct resource res;
1: + void *base;
1: + unsigned int spi_base;
1: +};
1: +
1: +struct mvebu_pic {
1: + void *base;
1: + u32 parent_irq;
1: + struct irq_domain *domain;
1: + struct irq_chip irq_chip;
1: +};
1: +
1: +struct mvebu_sei_interrupt_range {
1: + u32 first;
1: + u32 size;
1: +};
1: +
1: +struct mvebu_sei_caps {
1: + struct mvebu_sei_interrupt_range ap_range;
1: + struct mvebu_sei_interrupt_range cp_range;
1: +};
1: +
1: +struct mvebu_sei {
1: + struct device *dev;
1: + void *base;
1: + struct resource *res;
1: + struct irq_domain *sei_domain;
1: + struct irq_domain *ap_domain;
1: + struct irq_domain *cp_domain;
1: + const struct mvebu_sei_caps *caps;
1: + struct mutex cp_msi_lock;
1: + long unsigned int cp_msi_bitmap[1];
1: + raw_spinlock_t mask_lock;
1: +};
1: +
1: +struct meson_gpio_irq_controller;
1: +
1: +struct irq_ctl_ops {
1: + void (*gpio_irq_sel_pin)(struct meson_gpio_irq_controller *, unsigned int, long unsigned int);
1: + void (*gpio_irq_init)(struct meson_gpio_irq_controller *);
1: +};
1: +
1: +struct meson_gpio_irq_params;
1: +
1: +struct meson_gpio_irq_controller {
1: + const struct meson_gpio_irq_params *params;
1: + void *base;
1: + u32 channel_irqs[8];
1: + long unsigned int channel_map[1];
1: + spinlock_t lock;
1: +};
1: +
1: +struct meson_gpio_irq_params {
1: + unsigned int nr_hwirq;
1: + bool support_edge_both;
1: + unsigned int edge_both_offset;
1: + unsigned int edge_single_offset;
1: + unsigned int pol_low_offset;
1: + unsigned int pin_sel_mask;
1: + struct irq_ctl_ops ops;
1: +};
1: +
1: +struct regmap_irq_type {
1: + unsigned int type_reg_offset;
1: + unsigned int type_reg_mask;
1: + unsigned int type_rising_val;
1: + unsigned int type_falling_val;
1: + unsigned int type_level_low_val;
1: + unsigned int type_level_high_val;
1: + unsigned int types_supported;
1: +};
1: +
1: +struct regmap_irq {
1: + unsigned int reg_offset;
1: + unsigned int mask;
1: + struct regmap_irq_type type;
1: +};
1: +
1: +struct regmap_irq_sub_irq_map {
1: + unsigned int num_regs;
1: + unsigned int *offset;
1: +};
1: +
1: +struct regmap_irq_chip {
1: + const char *name;
1: + unsigned int main_status;
1: + unsigned int num_main_status_bits;
1: + struct regmap_irq_sub_irq_map *sub_reg_offsets;
1: + int num_main_regs;
1: + unsigned int status_base;
1: + unsigned int mask_base;
1: + unsigned int unmask_base;
1: + unsigned int ack_base;
1: + unsigned int wake_base;
1: + unsigned int type_base;
1: + unsigned int irq_reg_stride;
1: + bool mask_writeonly: 1;
1: + bool init_ack_masked: 1;
1: + bool mask_invert: 1;
1: + bool use_ack: 1;
1: + bool ack_invert: 1;
1: + bool clear_ack: 1;
1: + bool wake_invert: 1;
1: + bool runtime_pm: 1;
1: + bool type_invert: 1;
1: + bool type_in_mask: 1;
1: + bool clear_on_unmask: 1;
1: + int num_regs;
1: + const struct regmap_irq *irqs;
1: + int num_irqs;
1: + int num_type_reg;
1: + unsigned int type_reg_stride;
1: + int (*handle_pre_irq)(void *);
1: + int (*handle_post_irq)(void *);
1: + void *irq_drv_data;
1: +};
1: +
1: +struct gpio_desc;
1: +
1: +struct regulator_init_data;
1: +
1: +struct arizona_ldo1_pdata {
1: + const struct regulator_init_data *init_data;
1: +};
1: +
1: +struct regulator_state {
1: + int uV;
1: + int min_uV;
1: + int max_uV;
1: + unsigned int mode;
1: + int enabled;
1: + bool changeable;
1: +};
1: +
1: +struct regulation_constraints {
1: + const char *name;
1: + int min_uV;
1: + int max_uV;
1: + int uV_offset;
1: + int min_uA;
1: + int max_uA;
1: + int ilim_uA;
1: + int system_load;
1: + u32 *max_spread;
1: + int max_uV_step;
1: + unsigned int valid_modes_mask;
1: + unsigned int valid_ops_mask;
1: + int input_uV;
1: + struct regulator_state state_disk;
1: + struct regulator_state state_mem;
1: + struct regulator_state state_standby;
1: + suspend_state_t initial_state;
1: + unsigned int initial_mode;
1: + unsigned int ramp_delay;
1: + unsigned int settling_time;
1: + unsigned int settling_time_up;
1: + unsigned int settling_time_down;
1: + unsigned int enable_time;
1: + unsigned int active_discharge;
1: + unsigned int always_on: 1;
1: + unsigned int boot_on: 1;
1: + unsigned int apply_uV: 1;
1: + unsigned int ramp_disable: 1;
1: + unsigned int soft_start: 1;
1: + unsigned int pull_down: 1;
1: + unsigned int over_current_protection: 1;
1: +};
1: +
1: +struct regulator_consumer_supply;
1: +
1: +struct regulator_init_data {
1: + const char *supply_regulator;
1: + struct regulation_constraints constraints;
1: + int num_consumer_supplies;
1: + struct regulator_consumer_supply *consumer_supplies;
1: + int (*regulator_init)(void *);
1: + void *driver_data;
1: +};
1: +
1: +struct arizona_micsupp_pdata {
1: + const struct regulator_init_data *init_data;
1: +};
1: +
1: +struct regulator;
1: +
1: +struct regulator_bulk_data {
1: + const char *supply;
1: + struct regulator *consumer;
1: + int ret;
1: +};
1: +
1: +struct regulator_consumer_supply {
1: + const char *dev_name;
1: + const char *supply;
1: +};
1: +
1: +struct madera_codec_pdata {
1: + u32 max_channels_clocked[4];
1: + u32 dmic_ref[6];
1: + u32 inmode[24];
1: + bool out_mono[6];
1: + u32 pdm_fmt[2];
1: + u32 pdm_mute[2];
1: +};
1: +
1: +struct pinctrl_map;
1: +
1: +struct madera_pdata {
1: + struct gpio_desc *reset;
1: + struct arizona_ldo1_pdata ldo1;
1: + struct arizona_micsupp_pdata micvdd;
1: + unsigned int irq_flags;
1: + int gpio_base;
1: + const struct pinctrl_map *gpio_configs;
1: + int n_gpio_configs;
1: + u32 gpsw[2];
1: + struct madera_codec_pdata codec;
1: +};
1: +
1: +enum pinctrl_map_type {
1: + PIN_MAP_TYPE_INVALID = 0,
1: + PIN_MAP_TYPE_DUMMY_STATE = 1,
1: + PIN_MAP_TYPE_MUX_GROUP = 2,
1: + PIN_MAP_TYPE_CONFIGS_PIN = 3,
1: + PIN_MAP_TYPE_CONFIGS_GROUP = 4,
1: +};
1: +
1: +struct pinctrl_map_mux {
1: + const char *group;
1: + const char *function;
1: +};
1: +
1: +struct pinctrl_map_configs {
1: + const char *group_or_pin;
1: + long unsigned int *configs;
1: + unsigned int num_configs;
1: +};
1: +
1: +struct pinctrl_map {
1: + const char *dev_name;
1: + const char *name;
1: + enum pinctrl_map_type type;
1: + const char *ctrl_dev_name;
1: + union {
1: + struct pinctrl_map_mux mux;
1: + struct pinctrl_map_configs configs;
1: + } data;
1: +};
1: +
1: +enum madera_type {
1: + CS47L35 = 1,
1: + CS47L85 = 2,
1: + CS47L90 = 3,
1: + CS47L91 = 4,
1: + CS47L92 = 5,
1: + CS47L93 = 6,
1: + WM1840 = 7,
1: + CS47L15 = 8,
1: + CS42L92 = 9,
1: +};
1: +
1: +enum {
1: + MADERA_MCLK1 = 0,
1: + MADERA_MCLK2 = 1,
1: + MADERA_MCLK3 = 2,
1: + MADERA_NUM_MCLK = 3,
1: +};
1: +
1: +struct regmap;
1: +
1: +struct regmap_irq_chip_data;
1: +
1: +struct snd_soc_dapm_context;
1: +
1: +struct madera {
1: + struct regmap *regmap;
1: + struct regmap *regmap_32bit;
1: + struct device *dev;
1: + enum madera_type type;
1: + unsigned int rev;
1: + const char *type_name;
1: + int num_core_supplies;
1: + struct regulator_bulk_data core_supplies[2];
1: + struct regulator *dcvdd;
1: + bool internal_dcvdd;
1: + struct madera_pdata pdata;
1: + struct device *irq_dev;
1: + struct regmap_irq_chip_data *irq_data;
1: + int irq;
1: + struct clk_bulk_data mclk[3];
1: + unsigned int num_micbias;
1: + unsigned int num_childbias[4];
1: + struct snd_soc_dapm_context *dapm;
1: + struct mutex dapm_ptr_lock;
1: + unsigned int hp_ena;
1: + bool out_clamp[3];
1: + bool out_shorted[3];
1: + struct blocking_notifier_head notifier;
1: +};
1: +
1: +struct mst_intc_chip_data {
1: + raw_spinlock_t lock;
1: + unsigned int irq_start;
1: + unsigned int nr_irqs;
1: + void *base;
1: + bool no_eoi;
1: +};
1: +
1: +struct of_dev_auxdata {
1: + char *compatible;
1: + resource_size_t phys_addr;
1: + char *name;
1: + void *platform_data;
1: +};
1: +
1: +struct circ_buf {
1: + char *buf;
1: + int head;
1: + int tail;
1: +};
1: +
1: +struct serial_rs485 {
1: + __u32 flags;
1: + __u32 delay_rts_before_send;
1: + __u32 delay_rts_after_send;
1: + __u32 padding[5];
1: +};
1: +
1: +struct serial_iso7816 {
1: + __u32 flags;
1: + __u32 tg;
1: + __u32 sc_fi;
1: + __u32 sc_di;
1: + __u32 clk;
1: + __u32 reserved[5];
1: +};
1: +
1: +struct uart_port;
1: +
1: +struct uart_ops {
1: + unsigned int (*tx_empty)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*stop_tx)(struct uart_port *);
1: + void (*start_tx)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + void (*send_xchar)(struct uart_port *, char);
1: + void (*stop_rx)(struct uart_port *);
1: + void (*enable_ms)(struct uart_port *);
1: + void (*break_ctl)(struct uart_port *, int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*flush_buffer)(struct uart_port *);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + const char * (*type)(struct uart_port *);
1: + void (*release_port)(struct uart_port *);
1: + int (*request_port)(struct uart_port *);
1: + void (*config_port)(struct uart_port *, int);
1: + int (*verify_port)(struct uart_port *, struct serial_struct *);
1: + int (*ioctl)(struct uart_port *, unsigned int, long unsigned int);
1: + int (*poll_init)(struct uart_port *);
1: + void (*poll_put_char)(struct uart_port *, unsigned char);
1: + int (*poll_get_char)(struct uart_port *);
1: +};
1: +
1: +struct uart_icount {
1: + __u32 cts;
1: + __u32 dsr;
1: + __u32 rng;
1: + __u32 dcd;
1: + __u32 rx;
1: + __u32 tx;
1: + __u32 frame;
1: + __u32 overrun;
1: + __u32 parity;
1: + __u32 brk;
1: + __u32 buf_overrun;
1: +};
1: +
1: +typedef unsigned int upf_t;
1: +
1: +typedef unsigned int upstat_t;
1: +
1: +struct uart_state;
1: +
1: +struct uart_port {
1: + spinlock_t lock;
1: + long unsigned int iobase;
1: + unsigned char *membase;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_divisor)(struct uart_port *, unsigned int, unsigned int *);
1: + void (*set_divisor)(struct uart_port *, unsigned int, unsigned int, unsigned int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: + int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: + int (*iso7816_config)(struct uart_port *, struct serial_iso7816 *);
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + unsigned int fifosize;
1: + unsigned char x_char;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char quirks;
1: + unsigned int read_status_mask;
1: + unsigned int ignore_status_mask;
1: + struct uart_state *state;
1: + struct uart_icount icount;
1: + struct console *cons;
1: + upf_t flags;
1: + upstat_t status;
1: + int hw_stopped;
1: + unsigned int mctrl;
1: + unsigned int timeout;
1: + unsigned int type;
1: + const struct uart_ops *ops;
1: + unsigned int custom_divisor;
1: + unsigned int line;
1: + unsigned int minor;
1: + resource_size_t mapbase;
1: + resource_size_t mapsize;
1: + struct device *dev;
1: + long unsigned int sysrq;
1: + unsigned int sysrq_ch;
1: + unsigned char has_sysrq;
1: + unsigned char sysrq_seq;
1: + unsigned char hub6;
1: + unsigned char suspended;
1: + unsigned char console_reinit;
1: + const char *name;
1: + struct attribute_group *attr_group;
1: + const struct attribute_group **tty_groups;
1: + struct serial_rs485 rs485;
1: + struct gpio_desc *rs485_term_gpio;
1: + struct serial_iso7816 iso7816;
1: + void *private_data;
1: +};
1: +
1: +enum uart_pm_state {
1: + UART_PM_STATE_ON = 0,
1: + UART_PM_STATE_OFF = 3,
1: + UART_PM_STATE_UNDEFINED = 4,
1: +};
1: +
1: +struct uart_state {
1: + struct tty_port port;
1: + enum uart_pm_state pm_state;
1: + struct circ_buf xmit;
1: + atomic_t refcount;
1: + wait_queue_head_t remove_wait;
1: + struct uart_port *uart_port;
1: +};
1: +
1: +struct plat_serial8250_port {
1: + long unsigned int iobase;
1: + void *membase;
1: + resource_size_t mapbase;
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + void *private_data;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char hub6;
1: + unsigned char has_sysrq;
1: + upf_t flags;
1: + unsigned int type;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: +};
1: +
1: +struct lpc_cycle_para {
1: + unsigned int opflags;
1: + unsigned int csize;
1: +};
1: +
1: +struct hisi_lpc_dev {
1: + spinlock_t cycle_lock;
1: + void *membase;
1: + struct logic_pio_hwaddr *io_host;
1: +};
1: +
1: +struct hisi_lpc_acpi_cell {
1: + const char *hid;
1: + const char *name;
1: + void *pdata;
1: + size_t pdata_size;
1: +};
1: +
1: +enum regcache_type {
1: + REGCACHE_NONE = 0,
1: + REGCACHE_RBTREE = 1,
1: + REGCACHE_COMPRESSED = 2,
1: + REGCACHE_FLAT = 3,
1: +};
1: +
1: +struct reg_default {
1: + unsigned int reg;
1: + unsigned int def;
1: +};
1: +
1: +enum regmap_endian {
1: + REGMAP_ENDIAN_DEFAULT = 0,
1: + REGMAP_ENDIAN_BIG = 1,
1: + REGMAP_ENDIAN_LITTLE = 2,
1: + REGMAP_ENDIAN_NATIVE = 3,
1: +};
1: +
1: +struct regmap_range {
1: + unsigned int range_min;
1: + unsigned int range_max;
1: +};
1: +
1: +struct regmap_access_table {
1: + const struct regmap_range *yes_ranges;
1: + unsigned int n_yes_ranges;
1: + const struct regmap_range *no_ranges;
1: + unsigned int n_no_ranges;
1: +};
1: +
1: +typedef void (*regmap_lock)(void *);
1: +
1: +typedef void (*regmap_unlock)(void *);
1: +
1: +struct regmap_range_cfg;
1: +
1: +struct regmap_config {
1: + const char *name;
1: + int reg_bits;
1: + int reg_stride;
1: + int pad_bits;
1: + int val_bits;
1: + bool (*writeable_reg)(struct device *, unsigned int);
1: + bool (*readable_reg)(struct device *, unsigned int);
1: + bool (*volatile_reg)(struct device *, unsigned int);
1: + bool (*precious_reg)(struct device *, unsigned int);
1: + bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: + bool (*readable_noinc_reg)(struct device *, unsigned int);
1: + bool disable_locking;
1: + regmap_lock lock;
1: + regmap_unlock unlock;
1: + void *lock_arg;
1: + int (*reg_read)(void *, unsigned int, unsigned int *);
1: + int (*reg_write)(void *, unsigned int, unsigned int);
1: + bool fast_io;
1: + unsigned int max_register;
1: + const struct regmap_access_table *wr_table;
1: + const struct regmap_access_table *rd_table;
1: + const struct regmap_access_table *volatile_table;
1: + const struct regmap_access_table *precious_table;
1: + const struct regmap_access_table *wr_noinc_table;
1: + const struct regmap_access_table *rd_noinc_table;
1: + const struct reg_default *reg_defaults;
1: + unsigned int num_reg_defaults;
1: + enum regcache_type cache_type;
1: + const void *reg_defaults_raw;
1: + unsigned int num_reg_defaults_raw;
1: + long unsigned int read_flag_mask;
1: + long unsigned int write_flag_mask;
1: + bool zero_flag_mask;
1: + bool use_single_read;
1: + bool use_single_write;
1: + bool can_multi_write;
1: + enum regmap_endian reg_format_endian;
1: + enum regmap_endian val_format_endian;
1: + const struct regmap_range_cfg *ranges;
1: + unsigned int num_ranges;
1: + bool use_hwlock;
1: + unsigned int hwlock_id;
1: + unsigned int hwlock_mode;
1: + bool can_sleep;
1: +};
1: +
1: +struct regmap_range_cfg {
1: + const char *name;
1: + unsigned int range_min;
1: + unsigned int range_max;
1: + unsigned int selector_reg;
1: + unsigned int selector_mask;
1: + int selector_shift;
1: + unsigned int window_start;
1: + unsigned int window_len;
1: +};
1: +
1: +struct vexpress_syscfg {
1: + struct device *dev;
1: + void *base;
1: + struct list_head funcs;
1: +};
1: +
1: +struct vexpress_syscfg_func {
1: + struct list_head list;
1: + struct vexpress_syscfg *syscfg;
1: + struct regmap *regmap;
1: + int num_templates;
1: + u32 template[0];
1: +};
1: +
1: +struct vexpress_config_bridge_ops {
1: + struct regmap * (*regmap_init)(struct device *, void *);
1: + void (*regmap_exit)(struct regmap *, void *);
1: +};
1: +
1: +struct vexpress_config_bridge {
1: + struct vexpress_config_bridge_ops *ops;
1: + void *context;
1: +};
1: +
1: +enum device_link_state {
1: + DL_STATE_NONE = 4294967295,
1: + DL_STATE_DORMANT = 0,
1: + DL_STATE_AVAILABLE = 1,
1: + DL_STATE_CONSUMER_PROBE = 2,
1: + DL_STATE_ACTIVE = 3,
1: + DL_STATE_SUPPLIER_UNBIND = 4,
1: +};
1: +
1: +struct device_link {
1: + struct device *supplier;
1: + struct list_head s_node;
1: + struct device *consumer;
1: + struct list_head c_node;
1: + struct device link_dev;
1: + enum device_link_state status;
1: + u32 flags;
1: + refcount_t rpm_active;
1: + struct kref kref;
1: + struct callback_head callback_head;
1: + bool supplier_preactivated;
1: +};
1: +
1: +struct phy_configure_opts_dp {
1: + unsigned int link_rate;
1: + unsigned int lanes;
1: + unsigned int voltage[4];
1: + unsigned int pre[4];
1: + u8 ssc: 1;
1: + u8 set_rate: 1;
1: + u8 set_lanes: 1;
1: + u8 set_voltages: 1;
1: +};
1: +
1: +struct phy_configure_opts_mipi_dphy {
1: + unsigned int clk_miss;
1: + unsigned int clk_post;
1: + unsigned int clk_pre;
1: + unsigned int clk_prepare;
1: + unsigned int clk_settle;
1: + unsigned int clk_term_en;
1: + unsigned int clk_trail;
1: + unsigned int clk_zero;
1: + unsigned int d_term_en;
1: + unsigned int eot;
1: + unsigned int hs_exit;
1: + unsigned int hs_prepare;
1: + unsigned int hs_settle;
1: + unsigned int hs_skip;
1: + unsigned int hs_trail;
1: + unsigned int hs_zero;
1: + unsigned int init;
1: + unsigned int lpx;
1: + unsigned int ta_get;
1: + unsigned int ta_go;
1: + unsigned int ta_sure;
1: + unsigned int wakeup;
1: + long unsigned int hs_clk_rate;
1: + long unsigned int lp_clk_rate;
1: + unsigned char lanes;
1: +};
1: +
1: +enum phy_mode {
1: + PHY_MODE_INVALID = 0,
1: + PHY_MODE_USB_HOST = 1,
1: + PHY_MODE_USB_HOST_LS = 2,
1: + PHY_MODE_USB_HOST_FS = 3,
1: + PHY_MODE_USB_HOST_HS = 4,
1: + PHY_MODE_USB_HOST_SS = 5,
1: + PHY_MODE_USB_DEVICE = 6,
1: + PHY_MODE_USB_DEVICE_LS = 7,
1: + PHY_MODE_USB_DEVICE_FS = 8,
1: + PHY_MODE_USB_DEVICE_HS = 9,
1: + PHY_MODE_USB_DEVICE_SS = 10,
1: + PHY_MODE_USB_OTG = 11,
1: + PHY_MODE_UFS_HS_A = 12,
1: + PHY_MODE_UFS_HS_B = 13,
1: + PHY_MODE_PCIE = 14,
1: + PHY_MODE_ETHERNET = 15,
1: + PHY_MODE_MIPI_DPHY = 16,
1: + PHY_MODE_SATA = 17,
1: + PHY_MODE_LVDS = 18,
1: + PHY_MODE_DP = 19,
1: +};
1: +
1: +union phy_configure_opts {
1: + struct phy_configure_opts_mipi_dphy mipi_dphy;
1: + struct phy_configure_opts_dp dp;
1: +};
1: +
1: +struct phy;
1: +
1: +struct phy_ops {
1: + int (*init)(struct phy *);
1: + int (*exit)(struct phy *);
1: + int (*power_on)(struct phy *);
1: + int (*power_off)(struct phy *);
1: + int (*set_mode)(struct phy *, enum phy_mode, int);
1: + int (*configure)(struct phy *, union phy_configure_opts *);
1: + int (*validate)(struct phy *, enum phy_mode, int, union phy_configure_opts *);
1: + int (*reset)(struct phy *);
1: + int (*calibrate)(struct phy *);
1: + void (*release)(struct phy *);
1: + struct module *owner;
1: +};
1: +
1: +struct phy_attrs {
1: + u32 bus_width;
1: + u32 max_link_rate;
1: + enum phy_mode mode;
1: +};
1: +
1: +struct phy {
1: + struct device dev;
1: + int id;
1: + const struct phy_ops *ops;
1: + struct mutex mutex;
1: + int init_count;
1: + int power_count;
1: + struct phy_attrs attrs;
1: + struct regulator *pwr;
1: +};
1: +
1: +struct phy_provider {
1: + struct device *dev;
1: + struct device_node *children;
1: + struct module *owner;
1: + struct list_head list;
1: + struct phy * (*of_xlate)(struct device *, struct of_phandle_args *);
1: +};
1: +
1: +struct phy_lookup {
1: + struct list_head node;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct phy *phy;
1: +};
1: +
1: +enum usb_dr_mode {
1: + USB_DR_MODE_UNKNOWN = 0,
1: + USB_DR_MODE_HOST = 1,
1: + USB_DR_MODE_PERIPHERAL = 2,
1: + USB_DR_MODE_OTG = 3,
1: +};
1: +
1: +struct phy_meson8b_usb2_match_data {
1: + bool host_enable_aca;
1: +};
1: +
1: +struct reset_control;
1: +
1: +struct phy_meson8b_usb2_priv {
1: + struct regmap *regmap;
1: + enum usb_dr_mode dr_mode;
1: + struct clk *clk_usb_general;
1: + struct clk *clk_usb;
1: + struct reset_control *reset;
1: + const struct phy_meson8b_usb2_match_data *match;
1: +};
1: +
1: +struct phy_meson_gxl_usb2_priv {
1: + struct regmap *regmap;
1: + enum phy_mode mode;
1: + int is_enabled;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: +};
1: +
1: +enum meson_soc_id {
1: + MESON_SOC_G12A = 0,
1: + MESON_SOC_A1 = 1,
1: +};
1: +
1: +struct phy_meson_g12a_usb2_priv {
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: + int soc_id;
1: +};
1: +
1: +struct phy_g12a_usb3_pcie_priv {
1: + struct regmap *regmap;
1: + struct regmap *regmap_cr;
1: + struct clk *clk_ref;
1: + struct reset_control *reset;
1: + struct phy *phy;
1: + unsigned int mode;
1: +};
1: +
1: +struct phy_axg_pcie_priv {
1: + struct phy *phy;
1: + struct phy *analog;
1: + struct regmap *regmap;
1: + struct reset_control *reset;
1: +};
1: +
1: +struct phy_axg_mipi_pcie_analog_priv {
1: + struct phy *phy;
1: + unsigned int mode;
1: + struct regmap *regmap;
1: +};
1: +
1: +enum ethtool_link_mode_bit_indices {
1: + ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0,
1: + ETHTOOL_LINK_MODE_10baseT_Full_BIT = 1,
1: + ETHTOOL_LINK_MODE_100baseT_Half_BIT = 2,
1: + ETHTOOL_LINK_MODE_100baseT_Full_BIT = 3,
1: + ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 4,
1: + ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 5,
1: + ETHTOOL_LINK_MODE_Autoneg_BIT = 6,
1: + ETHTOOL_LINK_MODE_TP_BIT = 7,
1: + ETHTOOL_LINK_MODE_AUI_BIT = 8,
1: + ETHTOOL_LINK_MODE_MII_BIT = 9,
1: + ETHTOOL_LINK_MODE_FIBRE_BIT = 10,
1: + ETHTOOL_LINK_MODE_BNC_BIT = 11,
1: + ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 12,
1: + ETHTOOL_LINK_MODE_Pause_BIT = 13,
1: + ETHTOOL_LINK_MODE_Asym_Pause_BIT = 14,
1: + ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 15,
1: + ETHTOOL_LINK_MODE_Backplane_BIT = 16,
1: + ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 17,
1: + ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 18,
1: + ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 19,
1: + ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 20,
1: + ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 21,
1: + ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 22,
1: + ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 23,
1: + ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 24,
1: + ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 25,
1: + ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 26,
1: + ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 27,
1: + ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 28,
1: + ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 29,
1: + ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 30,
1: + ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 31,
1: + ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 32,
1: + ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 33,
1: + ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 34,
1: + ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 35,
1: + ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 36,
1: + ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 37,
1: + ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 38,
1: + ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 39,
1: + ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 40,
1: + ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 41,
1: + ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 42,
1: + ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 43,
1: + ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 44,
1: + ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 45,
1: + ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 46,
1: + ETHTOOL_LINK_MODE_2500baseT_Full_BIT = 47,
1: + ETHTOOL_LINK_MODE_5000baseT_Full_BIT = 48,
1: + ETHTOOL_LINK_MODE_FEC_NONE_BIT = 49,
1: + ETHTOOL_LINK_MODE_FEC_RS_BIT = 50,
1: + ETHTOOL_LINK_MODE_FEC_BASER_BIT = 51,
1: + ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 52,
1: + ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 53,
1: + ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 54,
1: + ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 55,
1: + ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 56,
1: + ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 57,
1: + ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 58,
1: + ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 59,
1: + ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 60,
1: + ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 61,
1: + ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 62,
1: + ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 63,
1: + ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64,
1: + ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 65,
1: + ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 66,
1: + ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 67,
1: + ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 68,
1: + ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT = 69,
1: + ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT = 70,
1: + ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT = 71,
1: + ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT = 72,
1: + ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT = 73,
1: + ETHTOOL_LINK_MODE_FEC_LLRS_BIT = 74,
1: + ETHTOOL_LINK_MODE_100000baseKR_Full_BIT = 75,
1: + ETHTOOL_LINK_MODE_100000baseSR_Full_BIT = 76,
1: + ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT = 77,
1: + ETHTOOL_LINK_MODE_100000baseCR_Full_BIT = 78,
1: + ETHTOOL_LINK_MODE_100000baseDR_Full_BIT = 79,
1: + ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT = 80,
1: + ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT = 81,
1: + ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 82,
1: + ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT = 83,
1: + ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT = 84,
1: + ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT = 85,
1: + ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT = 86,
1: + ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 87,
1: + ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT = 88,
1: + ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 89,
1: + ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 90,
1: + ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 91,
1: + __ETHTOOL_LINK_MODE_MASK_NBITS = 92,
1: +};
1: +
1: +struct mvebu_a3700_comphy_conf {
1: + unsigned int lane;
1: + enum phy_mode mode;
1: + int submode;
1: + unsigned int port;
1: + u32 fw_mode;
1: +};
1: +
1: +struct mvebu_a3700_comphy_lane {
1: + struct device *dev;
1: + unsigned int id;
1: + enum phy_mode mode;
1: + int submode;
1: + int port;
1: +};
1: +
1: +struct mvebu_a3700_utmi_caps {
1: + int usb32;
1: + const struct phy_ops *ops;
1: +};
1: +
1: +struct mvebu_a3700_utmi {
1: + void *regs;
1: + struct regmap *usb_misc;
1: + const struct mvebu_a3700_utmi_caps *caps;
1: + struct phy *phy;
1: +};
1: +
1: +struct exynos_dp_video_phy_drvdata {
1: + u32 phy_ctrl_offset;
1: +};
1: +
1: +struct exynos_dp_video_phy {
1: + struct regmap *regs;
1: + const struct exynos_dp_video_phy_drvdata *drvdata;
1: +};
1: +
1: +enum exynos_mipi_phy_id {
1: + EXYNOS_MIPI_PHY_ID_NONE = 4294967295,
1: + EXYNOS_MIPI_PHY_ID_CSIS0 = 0,
1: + EXYNOS_MIPI_PHY_ID_DSIM0 = 1,
1: + EXYNOS_MIPI_PHY_ID_CSIS1 = 2,
1: + EXYNOS_MIPI_PHY_ID_DSIM1 = 3,
1: + EXYNOS_MIPI_PHY_ID_CSIS2 = 4,
1: + EXYNOS_MIPI_PHYS_NUM = 5,
1: +};
1: +
1: +enum exynos_mipi_phy_regmap_id {
1: + EXYNOS_MIPI_REGMAP_PMU = 0,
1: + EXYNOS_MIPI_REGMAP_DISP = 1,
1: + EXYNOS_MIPI_REGMAP_CAM0 = 2,
1: + EXYNOS_MIPI_REGMAP_CAM1 = 3,
1: + EXYNOS_MIPI_REGMAPS_NUM = 4,
1: +};
1: +
1: +struct exynos_mipi_phy_desc {
1: + enum exynos_mipi_phy_id coupled_phy_id;
1: + u32 enable_val;
1: + unsigned int enable_reg;
1: + enum exynos_mipi_phy_regmap_id enable_map;
1: + u32 resetn_val;
1: + unsigned int resetn_reg;
1: + enum exynos_mipi_phy_regmap_id resetn_map;
1: +};
1: +
1: +struct mipi_phy_device_desc {
1: + int num_phys;
1: + int num_regmaps;
1: + const char *regmap_names[4];
1: + struct exynos_mipi_phy_desc phys[5];
1: +};
1: +
1: +struct video_phy_desc {
1: + struct phy *phy;
1: + unsigned int index;
1: + const struct exynos_mipi_phy_desc *data;
1: +};
1: +
1: +struct exynos_mipi_video_phy {
1: + struct regmap *regmaps[4];
1: + int num_phys;
1: + struct video_phy_desc phys[5];
1: + spinlock_t slock;
1: +};
1: +
1: +struct pinctrl;
1: +
1: +struct pinctrl_state;
1: +
1: +struct dev_pin_info {
1: + struct pinctrl *p;
1: + struct pinctrl_state *default_state;
1: + struct pinctrl_state *init_state;
1: + struct pinctrl_state *sleep_state;
1: + struct pinctrl_state *idle_state;
1: +};
1: +
1: +struct pinctrl {
1: + struct list_head node;
1: + struct device *dev;
1: + struct list_head states;
1: + struct pinctrl_state *state;
1: + struct list_head dt_maps;
1: + struct kref users;
1: +};
1: +
1: +struct pinctrl_state {
1: + struct list_head node;
1: + const char *name;
1: + struct list_head settings;
1: +};
1: +
1: +struct pinctrl_pin_desc {
1: + unsigned int number;
1: + const char *name;
1: + void *drv_data;
1: +};
1: +
1: +struct gpio_chip;
1: +
1: +struct pinctrl_gpio_range {
1: + struct list_head node;
1: + const char *name;
1: + unsigned int id;
1: + unsigned int base;
1: + unsigned int pin_base;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: + struct gpio_chip *gc;
1: +};
1: +
1: +struct gpio_irq_chip {
1: + struct irq_chip *chip;
1: + struct irq_domain *domain;
1: + const struct irq_domain_ops *domain_ops;
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *parent_domain;
1: + int (*child_to_parent_hwirq)(struct gpio_chip *, unsigned int, unsigned int, unsigned int *, unsigned int *);
1: + void * (*populate_parent_alloc_arg)(struct gpio_chip *, unsigned int, unsigned int);
1: + unsigned int (*child_offset_to_irq)(struct gpio_chip *, unsigned int);
1: + struct irq_domain_ops child_irq_domain_ops;
1: + irq_flow_handler_t handler;
1: + unsigned int default_type;
1: + struct lock_class_key *lock_key;
1: + struct lock_class_key *request_key;
1: + irq_flow_handler_t parent_handler;
1: + void *parent_handler_data;
1: + unsigned int num_parents;
1: + unsigned int *parents;
1: + unsigned int *map;
1: + bool threaded;
1: + int (*init_hw)(struct gpio_chip *);
1: + void (*init_valid_mask)(struct gpio_chip *, long unsigned int *, unsigned int);
1: + long unsigned int *valid_mask;
1: + unsigned int first;
1: + void (*irq_enable)(struct irq_data *);
1: + void (*irq_disable)(struct irq_data *);
1: + void (*irq_unmask)(struct irq_data *);
1: + void (*irq_mask)(struct irq_data *);
1: +};
1: +
1: +struct gpio_device;
1: +
1: +struct gpio_chip {
1: + const char *label;
1: + struct gpio_device *gpiodev;
1: + struct device *parent;
1: + struct module *owner;
1: + int (*request)(struct gpio_chip *, unsigned int);
1: + void (*free)(struct gpio_chip *, unsigned int);
1: + int (*get_direction)(struct gpio_chip *, unsigned int);
1: + int (*direction_input)(struct gpio_chip *, unsigned int);
1: + int (*direction_output)(struct gpio_chip *, unsigned int, int);
1: + int (*get)(struct gpio_chip *, unsigned int);
1: + int (*get_multiple)(struct gpio_chip *, long unsigned int *, long unsigned int *);
1: + void (*set)(struct gpio_chip *, unsigned int, int);
1: + void (*set_multiple)(struct gpio_chip *, long unsigned int *, long unsigned int *);
1: + int (*set_config)(struct gpio_chip *, unsigned int, long unsigned int);
1: + int (*to_irq)(struct gpio_chip *, unsigned int);
1: + void (*dbg_show)(struct seq_file *, struct gpio_chip *);
1: + int (*init_valid_mask)(struct gpio_chip *, long unsigned int *, unsigned int);
1: + int (*add_pin_ranges)(struct gpio_chip *);
1: + int base;
1: + u16 ngpio;
1: + const char * const *names;
1: + bool can_sleep;
1: + long unsigned int (*read_reg)(void *);
1: + void (*write_reg)(void *, long unsigned int);
1: + bool be_bits;
1: + void *reg_dat;
1: + void *reg_set;
1: + void *reg_clr;
1: + void *reg_dir_out;
1: + void *reg_dir_in;
1: + bool bgpio_dir_unreadable;
1: + int bgpio_bits;
1: + spinlock_t bgpio_lock;
1: + long unsigned int bgpio_data;
1: + long unsigned int bgpio_dir;
1: + struct gpio_irq_chip irq;
1: + long unsigned int *valid_mask;
1: + struct device_node *of_node;
1: + unsigned int of_gpio_n_cells;
1: + int (*of_xlate)(struct gpio_chip *, const struct of_phandle_args *, u32 *);
1: +};
1: +
1: +struct pinctrl_dev;
1: +
1: +struct pinctrl_ops {
1: + int (*get_groups_count)(struct pinctrl_dev *);
1: + const char * (*get_group_name)(struct pinctrl_dev *, unsigned int);
1: + int (*get_group_pins)(struct pinctrl_dev *, unsigned int, const unsigned int **, unsigned int *);
1: + void (*pin_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: + int (*dt_node_to_map)(struct pinctrl_dev *, struct device_node *, struct pinctrl_map **, unsigned int *);
1: + void (*dt_free_map)(struct pinctrl_dev *, struct pinctrl_map *, unsigned int);
1: +};
1: +
1: +struct pinctrl_desc;
1: +
1: +struct pinctrl_dev {
1: + struct list_head node;
1: + struct pinctrl_desc *desc;
1: + struct xarray pin_desc_tree;
1: + struct xarray pin_group_tree;
1: + unsigned int num_groups;
1: + struct xarray pin_function_tree;
1: + unsigned int num_functions;
1: + struct list_head gpio_ranges;
1: + struct device *dev;
1: + struct module *owner;
1: + void *driver_data;
1: + struct pinctrl *p;
1: + struct pinctrl_state *hog_default;
1: + struct pinctrl_state *hog_sleep;
1: + struct mutex mutex;
1: + struct dentry *device_root;
1: +};
1: +
1: +struct pinmux_ops;
1: +
1: +struct pinconf_ops;
1: +
1: +struct pinconf_generic_params;
1: +
1: +struct pin_config_item;
1: +
1: +struct pinctrl_desc {
1: + const char *name;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + const struct pinctrl_ops *pctlops;
1: + const struct pinmux_ops *pmxops;
1: + const struct pinconf_ops *confops;
1: + struct module *owner;
1: + unsigned int num_custom_params;
1: + const struct pinconf_generic_params *custom_params;
1: + const struct pin_config_item *custom_conf_items;
1: + bool link_consumers;
1: +};
1: +
1: +struct pinmux_ops {
1: + int (*request)(struct pinctrl_dev *, unsigned int);
1: + int (*free)(struct pinctrl_dev *, unsigned int);
1: + int (*get_functions_count)(struct pinctrl_dev *);
1: + const char * (*get_function_name)(struct pinctrl_dev *, unsigned int);
1: + int (*get_function_groups)(struct pinctrl_dev *, unsigned int, const char * const **, unsigned int *);
1: + int (*set_mux)(struct pinctrl_dev *, unsigned int, unsigned int);
1: + int (*gpio_request_enable)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int);
1: + void (*gpio_disable_free)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int);
1: + int (*gpio_set_direction)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int, bool);
1: + bool strict;
1: +};
1: +
1: +struct pinconf_ops {
1: + bool is_generic;
1: + int (*pin_config_get)(struct pinctrl_dev *, unsigned int, long unsigned int *);
1: + int (*pin_config_set)(struct pinctrl_dev *, unsigned int, long unsigned int *, unsigned int);
1: + int (*pin_config_group_get)(struct pinctrl_dev *, unsigned int, long unsigned int *);
1: + int (*pin_config_group_set)(struct pinctrl_dev *, unsigned int, long unsigned int *, unsigned int);
1: + void (*pin_config_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: + void (*pin_config_group_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: + void (*pin_config_config_dbg_show)(struct pinctrl_dev *, struct seq_file *, long unsigned int);
1: +};
1: +
1: +enum pin_config_param {
1: + PIN_CONFIG_BIAS_BUS_HOLD = 0,
1: + PIN_CONFIG_BIAS_DISABLE = 1,
1: + PIN_CONFIG_BIAS_HIGH_IMPEDANCE = 2,
1: + PIN_CONFIG_BIAS_PULL_DOWN = 3,
1: + PIN_CONFIG_BIAS_PULL_PIN_DEFAULT = 4,
1: + PIN_CONFIG_BIAS_PULL_UP = 5,
1: + PIN_CONFIG_DRIVE_OPEN_DRAIN = 6,
1: + PIN_CONFIG_DRIVE_OPEN_SOURCE = 7,
1: + PIN_CONFIG_DRIVE_PUSH_PULL = 8,
1: + PIN_CONFIG_DRIVE_STRENGTH = 9,
1: + PIN_CONFIG_DRIVE_STRENGTH_UA = 10,
1: + PIN_CONFIG_INPUT_DEBOUNCE = 11,
1: + PIN_CONFIG_INPUT_ENABLE = 12,
1: + PIN_CONFIG_INPUT_SCHMITT = 13,
1: + PIN_CONFIG_INPUT_SCHMITT_ENABLE = 14,
1: + PIN_CONFIG_LOW_POWER_MODE = 15,
1: + PIN_CONFIG_OUTPUT_ENABLE = 16,
1: + PIN_CONFIG_OUTPUT = 17,
1: + PIN_CONFIG_POWER_SOURCE = 18,
1: + PIN_CONFIG_SLEEP_HARDWARE_STATE = 19,
1: + PIN_CONFIG_SLEW_RATE = 20,
1: + PIN_CONFIG_SKEW_DELAY = 21,
1: + PIN_CONFIG_PERSIST_STATE = 22,
1: + PIN_CONFIG_END = 127,
1: + PIN_CONFIG_MAX = 255,
1: +};
1: +
1: +struct pinconf_generic_params {
1: + const char * const property;
1: + enum pin_config_param param;
1: + u32 default_value;
1: +};
1: +
1: +struct pin_config_item {
1: + const enum pin_config_param param;
1: + const char * const display;
1: + const char * const format;
1: + bool has_arg;
1: +};
1: +
1: +struct gpio_desc___2;
1: +
1: +struct gpio_device {
1: + int id;
1: + struct device dev;
1: + struct cdev chrdev;
1: + struct device *mockdev;
1: + struct module *owner;
1: + struct gpio_chip *chip;
1: + struct gpio_desc___2 *descs;
1: + int base;
1: + u16 ngpio;
1: + const char *label;
1: + void *data;
1: + struct list_head list;
1: + struct blocking_notifier_head notifier;
1: + struct list_head pin_ranges;
1: +};
1: +
1: +struct gpio_desc___2 {
1: + struct gpio_device *gdev;
1: + long unsigned int flags;
1: + const char *label;
1: + const char *name;
1: + struct device_node *hog;
1: + unsigned int debounce_period_us;
1: +};
1: +
1: +struct pinctrl_setting_mux {
1: + unsigned int group;
1: + unsigned int func;
1: +};
1: +
1: +struct pinctrl_setting_configs {
1: + unsigned int group_or_pin;
1: + long unsigned int *configs;
1: + unsigned int num_configs;
1: +};
1: +
1: +struct pinctrl_setting {
1: + struct list_head node;
1: + enum pinctrl_map_type type;
1: + struct pinctrl_dev *pctldev;
1: + const char *dev_name;
1: + union {
1: + struct pinctrl_setting_mux mux;
1: + struct pinctrl_setting_configs configs;
1: + } data;
1: +};
1: +
1: +struct pin_desc {
1: + struct pinctrl_dev *pctldev;
1: + const char *name;
1: + bool dynamic_name;
1: + void *drv_data;
1: + unsigned int mux_usecount;
1: + const char *mux_owner;
1: + const struct pinctrl_setting_mux *mux_setting;
1: + const char *gpio_owner;
1: +};
1: +
1: +struct pinctrl_maps {
1: + struct list_head node;
1: + const struct pinctrl_map *maps;
1: + unsigned int num_maps;
1: +};
1: +
1: +struct group_desc {
1: + const char *name;
1: + int *pins;
1: + int num_pins;
1: + void *data;
1: +};
1: +
1: +struct pctldev;
1: +
1: +struct function_desc {
1: + const char *name;
1: + const char **group_names;
1: + int num_group_names;
1: + void *data;
1: +};
1: +
1: +struct pinctrl_dt_map {
1: + struct list_head node;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_map *map;
1: + unsigned int num_maps;
1: +};
1: +
1: +struct amd_pingroup {
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: +};
1: +
1: +struct amd_gpio {
1: + raw_spinlock_t lock;
1: + void *base;
1: + const struct amd_pingroup *groups;
1: + u32 ngroups;
1: + struct pinctrl_dev *pctrl;
1: + struct gpio_chip gc;
1: + unsigned int hwbank_num;
1: + struct resource *res;
1: + struct platform_device *pdev;
1: + u32 *saved_regs;
1: +};
1: +
1: +struct meson_pmx_group {
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int num_pins;
1: + const void *data;
1: +};
1: +
1: +struct meson_pmx_func {
1: + const char *name;
1: + const char * const *groups;
1: + unsigned int num_groups;
1: +};
1: +
1: +struct meson_reg_desc {
1: + unsigned int reg;
1: + unsigned int bit;
1: +};
1: +
1: +enum meson_reg_type {
1: + REG_PULLEN = 0,
1: + REG_PULL = 1,
1: + REG_DIR = 2,
1: + REG_OUT = 3,
1: + REG_IN = 4,
1: + REG_DS = 5,
1: + NUM_REG = 6,
1: +};
1: +
1: +enum meson_pinconf_drv {
1: + MESON_PINCONF_DRV_500UA = 0,
1: + MESON_PINCONF_DRV_2500UA = 1,
1: + MESON_PINCONF_DRV_3000UA = 2,
1: + MESON_PINCONF_DRV_4000UA = 3,
1: +};
1: +
1: +struct meson_bank {
1: + const char *name;
1: + unsigned int first;
1: + unsigned int last;
1: + int irq_first;
1: + int irq_last;
1: + struct meson_reg_desc regs[6];
1: +};
1: +
1: +struct meson_pinctrl;
1: +
1: +struct meson_pinctrl_data {
1: + const char *name;
1: + const struct pinctrl_pin_desc *pins;
1: + struct meson_pmx_group *groups;
1: + struct meson_pmx_func *funcs;
1: + unsigned int num_pins;
1: + unsigned int num_groups;
1: + unsigned int num_funcs;
1: + struct meson_bank *banks;
1: + unsigned int num_banks;
1: + const struct pinmux_ops *pmx_ops;
1: + void *pmx_data;
1: + int (*parse_dt)(struct meson_pinctrl *);
1: +};
1: +
1: +struct meson_pinctrl {
1: + struct device *dev;
1: + struct pinctrl_dev *pcdev;
1: + struct pinctrl_desc desc;
1: + struct meson_pinctrl_data *data;
1: + struct regmap *reg_mux;
1: + struct regmap *reg_pullen;
1: + struct regmap *reg_pull;
1: + struct regmap *reg_gpio;
1: + struct regmap *reg_ds;
1: + struct gpio_chip chip;
1: + struct device_node *of_node;
1: +};
1: +
1: +struct meson8_pmx_data {
1: + bool is_gpio;
1: + unsigned int reg;
1: + unsigned int bit;
1: +};
1: +
1: +struct meson_pmx_bank {
1: + const char *name;
1: + unsigned int first;
1: + unsigned int last;
1: + unsigned int reg;
1: + unsigned int offset;
1: +};
1: +
1: +struct meson_axg_pmx_data {
1: + struct meson_pmx_bank *pmx_banks;
1: + unsigned int num_pmx_banks;
1: +};
1: +
1: +struct meson_pmx_axg_data {
1: + unsigned int func;
1: +};
1: +
1: +enum rockchip_pinctrl_type {
1: + PX30 = 0,
1: + RV1108 = 1,
1: + RK2928 = 2,
1: + RK3066B = 3,
1: + RK3128 = 4,
1: + RK3188 = 5,
1: + RK3288 = 6,
1: + RK3308 = 7,
1: + RK3368 = 8,
1: + RK3399 = 9,
1: +};
1: +
1: +struct rockchip_iomux {
1: + int type;
1: + int offset;
1: +};
1: +
1: +enum rockchip_pin_drv_type {
1: + DRV_TYPE_IO_DEFAULT = 0,
1: + DRV_TYPE_IO_1V8_OR_3V0 = 1,
1: + DRV_TYPE_IO_1V8_ONLY = 2,
1: + DRV_TYPE_IO_1V8_3V0_AUTO = 3,
1: + DRV_TYPE_IO_3V3_ONLY = 4,
1: + DRV_TYPE_MAX = 5,
1: +};
1: +
1: +enum rockchip_pin_pull_type {
1: + PULL_TYPE_IO_DEFAULT = 0,
1: + PULL_TYPE_IO_1V8_ONLY = 1,
1: + PULL_TYPE_MAX = 2,
1: +};
1: +
1: +struct rockchip_drv {
1: + enum rockchip_pin_drv_type drv_type;
1: + int offset;
1: +};
1: +
1: +struct rockchip_pinctrl;
1: +
1: +struct rockchip_pin_bank {
1: + void *reg_base;
1: + struct regmap *regmap_pull;
1: + struct clk *clk;
1: + int irq;
1: + u32 saved_masks;
1: + u32 pin_base;
1: + u8 nr_pins;
1: + char *name;
1: + u8 bank_num;
1: + struct rockchip_iomux iomux[4];
1: + struct rockchip_drv drv[4];
1: + enum rockchip_pin_pull_type pull_type[4];
1: + bool valid;
1: + struct device_node *of_node;
1: + struct rockchip_pinctrl *drvdata;
1: + struct irq_domain *domain;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_gpio_range grange;
1: + raw_spinlock_t slock;
1: + u32 toggle_edge_mode;
1: + u32 recalced_mask;
1: + u32 route_mask;
1: +};
1: +
1: +struct rockchip_pin_ctrl;
1: +
1: +struct rockchip_pin_group;
1: +
1: +struct rockchip_pmx_func;
1: +
1: +struct rockchip_pinctrl {
1: + struct regmap *regmap_base;
1: + int reg_size;
1: + struct regmap *regmap_pull;
1: + struct regmap *regmap_pmu;
1: + struct device *dev;
1: + struct rockchip_pin_ctrl *ctrl;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + struct rockchip_pin_group *groups;
1: + unsigned int ngroups;
1: + struct rockchip_pmx_func *functions;
1: + unsigned int nfunctions;
1: +};
1: +
1: +struct rockchip_mux_recalced_data {
1: + u8 num;
1: + u8 pin;
1: + u32 reg;
1: + u8 bit;
1: + u8 mask;
1: +};
1: +
1: +enum rockchip_mux_route_location {
1: + ROCKCHIP_ROUTE_SAME = 0,
1: + ROCKCHIP_ROUTE_PMU = 1,
1: + ROCKCHIP_ROUTE_GRF = 2,
1: +};
1: +
1: +struct rockchip_mux_route_data {
1: + u8 bank_num;
1: + u8 pin;
1: + u8 func;
1: + enum rockchip_mux_route_location route_location;
1: + u32 route_offset;
1: + u32 route_val;
1: +};
1: +
1: +struct rockchip_pin_ctrl {
1: + struct rockchip_pin_bank *pin_banks;
1: + u32 nr_banks;
1: + u32 nr_pins;
1: + char *label;
1: + enum rockchip_pinctrl_type type;
1: + int grf_mux_offset;
1: + int pmu_mux_offset;
1: + int grf_drv_offset;
1: + int pmu_drv_offset;
1: + struct rockchip_mux_recalced_data *iomux_recalced;
1: + u32 niomux_recalced;
1: + struct rockchip_mux_route_data *iomux_routes;
1: + u32 niomux_routes;
1: + void (*pull_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: + void (*drv_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: + int (*schmitt_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: +};
1: +
1: +struct rockchip_pin_config {
1: + unsigned int func;
1: + long unsigned int *configs;
1: + unsigned int nconfigs;
1: +};
1: +
1: +struct rockchip_pin_group {
1: + const char *name;
1: + unsigned int npins;
1: + unsigned int *pins;
1: + struct rockchip_pin_config *data;
1: +};
1: +
1: +struct rockchip_pmx_func {
1: + const char *name;
1: + const char **groups;
1: + u8 ngroups;
1: +};
1: +
1: +struct pcs_pdata {
1: + int irq;
1: + void (*rearm)();
1: +};
1: +
1: +struct pcs_func_vals {
1: + void *reg;
1: + unsigned int val;
1: + unsigned int mask;
1: +};
1: +
1: +struct pcs_conf_vals {
1: + enum pin_config_param param;
1: + unsigned int val;
1: + unsigned int enable;
1: + unsigned int disable;
1: + unsigned int mask;
1: +};
1: +
1: +struct pcs_conf_type {
1: + const char *name;
1: + enum pin_config_param param;
1: +};
1: +
1: +struct pcs_function {
1: + const char *name;
1: + struct pcs_func_vals *vals;
1: + unsigned int nvals;
1: + const char **pgnames;
1: + int npgnames;
1: + struct pcs_conf_vals *conf;
1: + int nconfs;
1: + struct list_head node;
1: +};
1: +
1: +struct pcs_gpiofunc_range {
1: + unsigned int offset;
1: + unsigned int npins;
1: + unsigned int gpiofunc;
1: + struct list_head node;
1: +};
1: +
1: +struct pcs_data {
1: + struct pinctrl_pin_desc *pa;
1: + int cur;
1: +};
1: +
1: +struct pcs_soc_data {
1: + unsigned int flags;
1: + int irq;
1: + unsigned int irq_enable_mask;
1: + unsigned int irq_status_mask;
1: + void (*rearm)();
1: +};
1: +
1: +struct pcs_device {
1: + struct resource *res;
1: + void *base;
1: + void *saved_vals;
1: + unsigned int size;
1: + struct device *dev;
1: + struct device_node *np;
1: + struct pinctrl_dev *pctl;
1: + unsigned int flags;
1: + struct property *missing_nr_pinctrl_cells;
1: + struct pcs_soc_data socdata;
1: + raw_spinlock_t lock;
1: + struct mutex mutex;
1: + unsigned int width;
1: + unsigned int fmask;
1: + unsigned int fshift;
1: + unsigned int foff;
1: + unsigned int fmax;
1: + bool bits_per_mux;
1: + unsigned int bits_per_pin;
1: + struct pcs_data pins;
1: + struct list_head gpiofuncs;
1: + struct list_head irqs;
1: + struct irq_chip chip;
1: + struct irq_domain *domain;
1: + struct pinctrl_desc desc;
1: + unsigned int (*read)(void *);
1: + void (*write)(unsigned int, void *);
1: +};
1: +
1: +struct pcs_interrupt {
1: + void *reg;
1: + irq_hw_number_t hwirq;
1: + unsigned int irq;
1: + struct list_head node;
1: +};
1: +
1: +struct tegra_pinctrl_soc_data;
1: +
1: +struct tegra_pmx {
1: + struct device *dev;
1: + struct pinctrl_dev *pctl;
1: + const struct tegra_pinctrl_soc_data *soc;
1: + const char **group_pins;
1: + int nbanks;
1: + void **regs;
1: + u32 *backup_regs;
1: +};
1: +
1: +struct tegra_function;
1: +
1: +struct tegra_pingroup;
1: +
1: +struct tegra_pinctrl_soc_data {
1: + unsigned int ngpios;
1: + const char *gpio_compatible;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + struct tegra_function *functions;
1: + unsigned int nfunctions;
1: + const struct tegra_pingroup *groups;
1: + unsigned int ngroups;
1: + bool hsm_in_mux;
1: + bool schmitt_in_mux;
1: + bool drvtype_in_mux;
1: + bool sfsel_in_mux;
1: +};
1: +
1: +enum tegra_pinconf_param {
1: + TEGRA_PINCONF_PARAM_PULL = 0,
1: + TEGRA_PINCONF_PARAM_TRISTATE = 1,
1: + TEGRA_PINCONF_PARAM_ENABLE_INPUT = 2,
1: + TEGRA_PINCONF_PARAM_OPEN_DRAIN = 3,
1: + TEGRA_PINCONF_PARAM_LOCK = 4,
1: + TEGRA_PINCONF_PARAM_IORESET = 5,
1: + TEGRA_PINCONF_PARAM_RCV_SEL = 6,
1: + TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE = 7,
1: + TEGRA_PINCONF_PARAM_SCHMITT = 8,
1: + TEGRA_PINCONF_PARAM_LOW_POWER_MODE = 9,
1: + TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH = 10,
1: + TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH = 11,
1: + TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING = 12,
1: + TEGRA_PINCONF_PARAM_SLEW_RATE_RISING = 13,
1: + TEGRA_PINCONF_PARAM_DRIVE_TYPE = 14,
1: +};
1: +
1: +struct tegra_function {
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: +};
1: +
1: +struct tegra_pingroup {
1: + const char *name;
1: + const unsigned int *pins;
1: + u8 npins;
1: + u8 funcs[4];
1: + s32 mux_reg;
1: + s32 pupd_reg;
1: + s32 tri_reg;
1: + s32 drv_reg;
1: + u32 mux_bank: 2;
1: + u32 pupd_bank: 2;
1: + u32 tri_bank: 2;
1: + u32 drv_bank: 2;
1: + s32 mux_bit: 6;
1: + s32 pupd_bit: 6;
1: + s32 tri_bit: 6;
1: + s32 einput_bit: 6;
1: + s32 odrain_bit: 6;
1: + s32 lock_bit: 6;
1: + s32 ioreset_bit: 6;
1: + s32 rcv_sel_bit: 6;
1: + s32 hsm_bit: 6;
1: + char: 2;
1: + s32 sfsel_bit: 6;
1: + s32 schmitt_bit: 6;
1: + s32 lpmd_bit: 6;
1: + s32 drvdn_bit: 6;
1: + s32 drvup_bit: 6;
1: + char: 2;
1: + s32 slwr_bit: 6;
1: + s32 slwf_bit: 6;
1: + s32 drvtype_bit: 6;
1: + s32 drvdn_width: 6;
1: + s32 drvup_width: 6;
1: + char: 2;
1: + s32 slwr_width: 6;
1: + s32 slwf_width: 6;
1: + u32 parked_bitmask;
1: +};
1: +
1: +struct cfg_param {
1: + const char *property;
1: + enum tegra_pinconf_param param;
1: +};
1: +
1: +enum tegra_mux {
1: + TEGRA_MUX_BLINK = 0,
1: + TEGRA_MUX_CCLA = 1,
1: + TEGRA_MUX_CEC = 2,
1: + TEGRA_MUX_CLDVFS = 3,
1: + TEGRA_MUX_CLK = 4,
1: + TEGRA_MUX_CLK12 = 5,
1: + TEGRA_MUX_CPU = 6,
1: + TEGRA_MUX_CSI = 7,
1: + TEGRA_MUX_DAP = 8,
1: + TEGRA_MUX_DAP1 = 9,
1: + TEGRA_MUX_DAP2 = 10,
1: + TEGRA_MUX_DEV3 = 11,
1: + TEGRA_MUX_DISPLAYA = 12,
1: + TEGRA_MUX_DISPLAYA_ALT = 13,
1: + TEGRA_MUX_DISPLAYB = 14,
1: + TEGRA_MUX_DP = 15,
1: + TEGRA_MUX_DSI_B = 16,
1: + TEGRA_MUX_DTV = 17,
1: + TEGRA_MUX_EXTPERIPH1 = 18,
1: + TEGRA_MUX_EXTPERIPH2 = 19,
1: + TEGRA_MUX_EXTPERIPH3 = 20,
1: + TEGRA_MUX_GMI = 21,
1: + TEGRA_MUX_GMI_ALT = 22,
1: + TEGRA_MUX_HDA = 23,
1: + TEGRA_MUX_HSI = 24,
1: + TEGRA_MUX_I2C1 = 25,
1: + TEGRA_MUX_I2C2 = 26,
1: + TEGRA_MUX_I2C3 = 27,
1: + TEGRA_MUX_I2C4 = 28,
1: + TEGRA_MUX_I2CPWR = 29,
1: + TEGRA_MUX_I2S0 = 30,
1: + TEGRA_MUX_I2S1 = 31,
1: + TEGRA_MUX_I2S2 = 32,
1: + TEGRA_MUX_I2S3 = 33,
1: + TEGRA_MUX_I2S4 = 34,
1: + TEGRA_MUX_IRDA = 35,
1: + TEGRA_MUX_KBC = 36,
1: + TEGRA_MUX_OWR = 37,
1: + TEGRA_MUX_PE = 38,
1: + TEGRA_MUX_PE0 = 39,
1: + TEGRA_MUX_PE1 = 40,
1: + TEGRA_MUX_PMI = 41,
1: + TEGRA_MUX_PWM0 = 42,
1: + TEGRA_MUX_PWM1 = 43,
1: + TEGRA_MUX_PWM2 = 44,
1: + TEGRA_MUX_PWM3 = 45,
1: + TEGRA_MUX_PWRON = 46,
1: + TEGRA_MUX_RESET_OUT_N = 47,
1: + TEGRA_MUX_RSVD1 = 48,
1: + TEGRA_MUX_RSVD2 = 49,
1: + TEGRA_MUX_RSVD3 = 50,
1: + TEGRA_MUX_RSVD4 = 51,
1: + TEGRA_MUX_RTCK = 52,
1: + TEGRA_MUX_SATA = 53,
1: + TEGRA_MUX_SDMMC1 = 54,
1: + TEGRA_MUX_SDMMC2 = 55,
1: + TEGRA_MUX_SDMMC3 = 56,
1: + TEGRA_MUX_SDMMC4 = 57,
1: + TEGRA_MUX_SOC = 58,
1: + TEGRA_MUX_SPDIF = 59,
1: + TEGRA_MUX_SPI1 = 60,
1: + TEGRA_MUX_SPI2 = 61,
1: + TEGRA_MUX_SPI3 = 62,
1: + TEGRA_MUX_SPI4 = 63,
1: + TEGRA_MUX_SPI5 = 64,
1: + TEGRA_MUX_SPI6 = 65,
1: + TEGRA_MUX_SYS = 66,
1: + TEGRA_MUX_TMDS = 67,
1: + TEGRA_MUX_TRACE = 68,
1: + TEGRA_MUX_UARTA = 69,
1: + TEGRA_MUX_UARTB = 70,
1: + TEGRA_MUX_UARTC = 71,
1: + TEGRA_MUX_UARTD = 72,
1: + TEGRA_MUX_ULPI = 73,
1: + TEGRA_MUX_USB = 74,
1: + TEGRA_MUX_VGP1 = 75,
1: + TEGRA_MUX_VGP2 = 76,
1: + TEGRA_MUX_VGP3 = 77,
1: + TEGRA_MUX_VGP4 = 78,
1: + TEGRA_MUX_VGP5 = 79,
1: + TEGRA_MUX_VGP6 = 80,
1: + TEGRA_MUX_VI = 81,
1: + TEGRA_MUX_VI_ALT1 = 82,
1: + TEGRA_MUX_VI_ALT3 = 83,
1: + TEGRA_MUX_VIMCLK2 = 84,
1: + TEGRA_MUX_VIMCLK2_ALT = 85,
1: +};
1: +
1: +enum tegra_mux___2 {
1: + TEGRA_MUX_AUD = 0,
1: + TEGRA_MUX_BCL = 1,
1: + TEGRA_MUX_BLINK___2 = 2,
1: + TEGRA_MUX_CCLA___2 = 3,
1: + TEGRA_MUX_CEC___2 = 4,
1: + TEGRA_MUX_CLDVFS___2 = 5,
1: + TEGRA_MUX_CLK___2 = 6,
1: + TEGRA_MUX_CORE = 7,
1: + TEGRA_MUX_CPU___2 = 8,
1: + TEGRA_MUX_DISPLAYA___2 = 9,
1: + TEGRA_MUX_DISPLAYB___2 = 10,
1: + TEGRA_MUX_DMIC1 = 11,
1: + TEGRA_MUX_DMIC2 = 12,
1: + TEGRA_MUX_DMIC3 = 13,
1: + TEGRA_MUX_DP___2 = 14,
1: + TEGRA_MUX_DTV___2 = 15,
1: + TEGRA_MUX_EXTPERIPH3___2 = 16,
1: + TEGRA_MUX_I2C1___2 = 17,
1: + TEGRA_MUX_I2C2___2 = 18,
1: + TEGRA_MUX_I2C3___2 = 19,
1: + TEGRA_MUX_I2CPMU = 20,
1: + TEGRA_MUX_I2CVI = 21,
1: + TEGRA_MUX_I2S1___2 = 22,
1: + TEGRA_MUX_I2S2___2 = 23,
1: + TEGRA_MUX_I2S3___2 = 24,
1: + TEGRA_MUX_I2S4A = 25,
1: + TEGRA_MUX_I2S4B = 26,
1: + TEGRA_MUX_I2S5A = 27,
1: + TEGRA_MUX_I2S5B = 28,
1: + TEGRA_MUX_IQC0 = 29,
1: + TEGRA_MUX_IQC1 = 30,
1: + TEGRA_MUX_JTAG = 31,
1: + TEGRA_MUX_PE___2 = 32,
1: + TEGRA_MUX_PE0___2 = 33,
1: + TEGRA_MUX_PE1___2 = 34,
1: + TEGRA_MUX_PMI___2 = 35,
1: + TEGRA_MUX_PWM0___2 = 36,
1: + TEGRA_MUX_PWM1___2 = 37,
1: + TEGRA_MUX_PWM2___2 = 38,
1: + TEGRA_MUX_PWM3___2 = 39,
1: + TEGRA_MUX_QSPI = 40,
1: + TEGRA_MUX_RSVD0 = 41,
1: + TEGRA_MUX_RSVD1___2 = 42,
1: + TEGRA_MUX_RSVD2___2 = 43,
1: + TEGRA_MUX_RSVD3___2 = 44,
1: + TEGRA_MUX_SATA___2 = 45,
1: + TEGRA_MUX_SDMMC1___2 = 46,
1: + TEGRA_MUX_SDMMC3___2 = 47,
1: + TEGRA_MUX_SHUTDOWN = 48,
1: + TEGRA_MUX_SOC___2 = 49,
1: + TEGRA_MUX_SOR0 = 50,
1: + TEGRA_MUX_SOR1 = 51,
1: + TEGRA_MUX_SPDIF___2 = 52,
1: + TEGRA_MUX_SPI1___2 = 53,
1: + TEGRA_MUX_SPI2___2 = 54,
1: + TEGRA_MUX_SPI3___2 = 55,
1: + TEGRA_MUX_SPI4___2 = 56,
1: + TEGRA_MUX_SYS___2 = 57,
1: + TEGRA_MUX_TOUCH = 58,
1: + TEGRA_MUX_UART = 59,
1: + TEGRA_MUX_UARTA___2 = 60,
1: + TEGRA_MUX_UARTB___2 = 61,
1: + TEGRA_MUX_UARTC___2 = 62,
1: + TEGRA_MUX_UARTD___2 = 63,
1: + TEGRA_MUX_USB___2 = 64,
1: + TEGRA_MUX_VGP1___2 = 65,
1: + TEGRA_MUX_VGP2___2 = 66,
1: + TEGRA_MUX_VGP3___2 = 67,
1: + TEGRA_MUX_VGP4___2 = 68,
1: + TEGRA_MUX_VGP5___2 = 69,
1: + TEGRA_MUX_VGP6___2 = 70,
1: + TEGRA_MUX_VIMCLK = 71,
1: + TEGRA_MUX_VIMCLK2___2 = 72,
1: +};
1: +
1: +struct tegra_xusb_padctl_function {
1: + const char *name;
1: + const char * const *groups;
1: + unsigned int num_groups;
1: +};
1: +
1: +struct tegra_xusb_padctl_lane;
1: +
1: +struct tegra_xusb_padctl_soc {
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int num_pins;
1: + const struct tegra_xusb_padctl_function *functions;
1: + unsigned int num_functions;
1: + const struct tegra_xusb_padctl_lane *lanes;
1: + unsigned int num_lanes;
1: +};
1: +
1: +struct tegra_xusb_padctl_lane {
1: + const char *name;
1: + unsigned int offset;
1: + unsigned int shift;
1: + unsigned int mask;
1: + unsigned int iddq;
1: + const unsigned int *funcs;
1: + unsigned int num_funcs;
1: +};
1: +
1: +struct tegra_xusb_padctl {
1: + struct device *dev;
1: + void *regs;
1: + struct mutex lock;
1: + struct reset_control *rst;
1: + const struct tegra_xusb_padctl_soc *soc;
1: + struct pinctrl_dev *pinctrl;
1: + struct pinctrl_desc desc;
1: + struct phy_provider *provider;
1: + struct phy *phys[2];
1: + unsigned int enable;
1: +};
1: +
1: +enum tegra_xusb_padctl_param {
1: + TEGRA_XUSB_PADCTL_IDDQ = 0,
1: +};
1: +
1: +struct tegra_xusb_padctl_property {
1: + const char *name;
1: + enum tegra_xusb_padctl_param param;
1: +};
1: +
1: +enum tegra124_function {
1: + TEGRA124_FUNC_SNPS = 0,
1: + TEGRA124_FUNC_XUSB = 1,
1: + TEGRA124_FUNC_UART = 2,
1: + TEGRA124_FUNC_PCIE = 3,
1: + TEGRA124_FUNC_USB3 = 4,
1: + TEGRA124_FUNC_SATA = 5,
1: + TEGRA124_FUNC_RSVD = 6,
1: +};
1: +
1: +struct bcm2835_pinctrl {
1: + struct device *dev;
1: + void *base;
1: + int *wake_irq;
1: + long unsigned int enabled_irq_map[2];
1: + unsigned int irq_type[58];
1: + struct pinctrl_dev *pctl_dev;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_desc pctl_desc;
1: + struct pinctrl_gpio_range gpio_range;
1: + raw_spinlock_t irq_lock[2];
1: +};
1: +
1: +enum bcm2835_fsel {
1: + BCM2835_FSEL_COUNT = 8,
1: + BCM2835_FSEL_MASK = 7,
1: +};
1: +
1: +struct bcm_plat_data {
1: + const struct gpio_chip *gpio_chip;
1: + const struct pinctrl_desc *pctl_desc;
1: + const struct pinctrl_gpio_range *gpio_range;
1: +};
1: +
1: +struct mvebu_mpp_ctrl_data {
1: + union {
1: + void *base;
1: + struct {
1: + struct regmap *map;
1: + u32 offset;
1: + } regmap;
1: + };
1: +};
1: +
1: +struct mvebu_mpp_ctrl {
1: + const char *name;
1: + u8 pid;
1: + u8 npins;
1: + unsigned int *pins;
1: + int (*mpp_get)(struct mvebu_mpp_ctrl_data *, unsigned int, long unsigned int *);
1: + int (*mpp_set)(struct mvebu_mpp_ctrl_data *, unsigned int, long unsigned int);
1: + int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *, unsigned int);
1: + int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *, unsigned int, bool);
1: +};
1: +
1: +struct mvebu_mpp_ctrl_setting {
1: + u8 val;
1: + const char *name;
1: + const char *subname;
1: + u8 variant;
1: + u8 flags;
1: +};
1: +
1: +struct mvebu_mpp_mode {
1: + u8 pid;
1: + struct mvebu_mpp_ctrl_setting *settings;
1: +};
1: +
1: +struct mvebu_pinctrl_soc_info {
1: + u8 variant;
1: + const struct mvebu_mpp_ctrl *controls;
1: + struct mvebu_mpp_ctrl_data *control_data;
1: + int ncontrols;
1: + struct mvebu_mpp_mode *modes;
1: + int nmodes;
1: + struct pinctrl_gpio_range *gpioranges;
1: + int ngpioranges;
1: +};
1: +
1: +struct mvebu_pinctrl_function {
1: + const char *name;
1: + const char **groups;
1: + unsigned int num_groups;
1: +};
1: +
1: +struct mvebu_pinctrl_group {
1: + const char *name;
1: + const struct mvebu_mpp_ctrl *ctrl;
1: + struct mvebu_mpp_ctrl_data *data;
1: + struct mvebu_mpp_ctrl_setting *settings;
1: + unsigned int num_settings;
1: + unsigned int gid;
1: + unsigned int *pins;
1: + unsigned int npins;
1: +};
1: +
1: +struct mvebu_pinctrl {
1: + struct device *dev;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_desc desc;
1: + struct mvebu_pinctrl_group *groups;
1: + unsigned int num_groups;
1: + struct mvebu_pinctrl_function *functions;
1: + unsigned int num_functions;
1: + u8 variant;
1: +};
1: +
1: +enum {
1: + V_ARMADA_7K = 1,
1: + V_ARMADA_8K_CPM = 2,
1: + V_ARMADA_8K_CPS = 4,
1: + V_CP115_STANDALONE = 8,
1: + V_ARMADA_7K_8K_CPM = 3,
1: + V_ARMADA_7K_8K_CPS = 5,
1: +};
1: +
1: +struct armada_37xx_pin_group {
1: + const char *name;
1: + unsigned int start_pin;
1: + unsigned int npins;
1: + u32 reg_mask;
1: + u32 val[3];
1: + unsigned int extra_pin;
1: + unsigned int extra_npins;
1: + const char *funcs[3];
1: + unsigned int *pins;
1: +};
1: +
1: +struct armada_37xx_pin_data {
1: + u8 nr_pins;
1: + char *name;
1: + struct armada_37xx_pin_group *groups;
1: + int ngroups;
1: +};
1: +
1: +struct armada_37xx_pmx_func {
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: +};
1: +
1: +struct armada_37xx_pm_state {
1: + u32 out_en_l;
1: + u32 out_en_h;
1: + u32 out_val_l;
1: + u32 out_val_h;
1: + u32 irq_en_l;
1: + u32 irq_en_h;
1: + u32 irq_pol_l;
1: + u32 irq_pol_h;
1: + u32 selection;
1: +};
1: +
1: +struct armada_37xx_pinctrl {
1: + struct regmap *regmap;
1: + void *base;
1: + const struct armada_37xx_pin_data *data;
1: + struct device *dev;
1: + struct gpio_chip gpio_chip;
1: + struct irq_chip irq_chip;
1: + spinlock_t irq_lock;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + struct armada_37xx_pin_group *groups;
1: + unsigned int ngroups;
1: + struct armada_37xx_pmx_func *funcs;
1: + unsigned int nfuncs;
1: + struct armada_37xx_pm_state pm;
1: +};
1: +
1: +struct msm_function {
1: + const char *name;
1: + const char * const *groups;
1: + unsigned int ngroups;
1: +};
1: +
1: +struct msm_pingroup {
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: + unsigned int *funcs;
1: + unsigned int nfuncs;
1: + u32 ctl_reg;
1: + u32 io_reg;
1: + u32 intr_cfg_reg;
1: + u32 intr_status_reg;
1: + u32 intr_target_reg;
1: + unsigned int tile: 2;
1: + unsigned int mux_bit: 5;
1: + unsigned int pull_bit: 5;
1: + unsigned int drv_bit: 5;
1: + unsigned int od_bit: 5;
1: + unsigned int oe_bit: 5;
1: + unsigned int in_bit: 5;
1: + unsigned int out_bit: 5;
1: + unsigned int intr_enable_bit: 5;
1: + unsigned int intr_status_bit: 5;
1: + unsigned int intr_ack_high: 1;
1: + unsigned int intr_target_bit: 5;
1: + unsigned int intr_target_kpss_val: 5;
1: + unsigned int intr_raw_status_bit: 5;
1: + char: 1;
1: + unsigned int intr_polarity_bit: 5;
1: + unsigned int intr_detection_bit: 5;
1: + unsigned int intr_detection_width: 5;
1: +};
1: +
1: +struct msm_gpio_wakeirq_map {
1: + unsigned int gpio;
1: + unsigned int wakeirq;
1: +};
1: +
1: +struct msm_pinctrl_soc_data {
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + const struct msm_function *functions;
1: + unsigned int nfunctions;
1: + const struct msm_pingroup *groups;
1: + unsigned int ngroups;
1: + unsigned int ngpios;
1: + bool pull_no_keeper;
1: + const char * const *tiles;
1: + unsigned int ntiles;
1: + const int *reserved_gpios;
1: + const struct msm_gpio_wakeirq_map *wakeirq_map;
1: + unsigned int nwakeirq_map;
1: + bool wakeirq_dual_edge_errata;
1: + unsigned int gpio_func;
1: +};
1: +
1: +struct msm_pinctrl {
1: + struct device *dev;
1: + struct pinctrl_dev *pctrl;
1: + struct gpio_chip chip;
1: + struct pinctrl_desc desc;
1: + struct notifier_block restart_nb;
1: + struct irq_chip irq_chip;
1: + int irq;
1: + bool intr_target_use_scm;
1: + raw_spinlock_t lock;
1: + long unsigned int dual_edge_irqs[5];
1: + long unsigned int enabled_irqs[5];
1: + long unsigned int skip_wake_irqs[5];
1: + long unsigned int disabled_for_mux[5];
1: + const struct msm_pinctrl_soc_data *soc;
1: + void *regs[4];
1: + u32 phys_base[4];
1: +};
1: +
1: +enum msm8916_functions {
1: + MSM_MUX_adsp_ext = 0,
1: + MSM_MUX_alsp_int = 1,
1: + MSM_MUX_atest_bbrx0 = 2,
1: + MSM_MUX_atest_bbrx1 = 3,
1: + MSM_MUX_atest_char = 4,
1: + MSM_MUX_atest_char0 = 5,
1: + MSM_MUX_atest_char1 = 6,
1: + MSM_MUX_atest_char2 = 7,
1: + MSM_MUX_atest_char3 = 8,
1: + MSM_MUX_atest_combodac = 9,
1: + MSM_MUX_atest_gpsadc0 = 10,
1: + MSM_MUX_atest_gpsadc1 = 11,
1: + MSM_MUX_atest_tsens = 12,
1: + MSM_MUX_atest_wlan0 = 13,
1: + MSM_MUX_atest_wlan1 = 14,
1: + MSM_MUX_backlight_en = 15,
1: + MSM_MUX_bimc_dte0 = 16,
1: + MSM_MUX_bimc_dte1 = 17,
1: + MSM_MUX_blsp_i2c1 = 18,
1: + MSM_MUX_blsp_i2c2 = 19,
1: + MSM_MUX_blsp_i2c3 = 20,
1: + MSM_MUX_blsp_i2c4 = 21,
1: + MSM_MUX_blsp_i2c5 = 22,
1: + MSM_MUX_blsp_i2c6 = 23,
1: + MSM_MUX_blsp_spi1 = 24,
1: + MSM_MUX_blsp_spi1_cs1 = 25,
1: + MSM_MUX_blsp_spi1_cs2 = 26,
1: + MSM_MUX_blsp_spi1_cs3 = 27,
1: + MSM_MUX_blsp_spi2 = 28,
1: + MSM_MUX_blsp_spi2_cs1 = 29,
1: + MSM_MUX_blsp_spi2_cs2 = 30,
1: + MSM_MUX_blsp_spi2_cs3 = 31,
1: + MSM_MUX_blsp_spi3 = 32,
1: + MSM_MUX_blsp_spi3_cs1 = 33,
1: + MSM_MUX_blsp_spi3_cs2 = 34,
1: + MSM_MUX_blsp_spi3_cs3 = 35,
1: + MSM_MUX_blsp_spi4 = 36,
1: + MSM_MUX_blsp_spi5 = 37,
1: + MSM_MUX_blsp_spi6 = 38,
1: + MSM_MUX_blsp_uart1 = 39,
1: + MSM_MUX_blsp_uart2 = 40,
1: + MSM_MUX_blsp_uim1 = 41,
1: + MSM_MUX_blsp_uim2 = 42,
1: + MSM_MUX_cam1_rst = 43,
1: + MSM_MUX_cam1_standby = 44,
1: + MSM_MUX_cam_mclk0 = 45,
1: + MSM_MUX_cam_mclk1 = 46,
1: + MSM_MUX_cci_async = 47,
1: + MSM_MUX_cci_i2c = 48,
1: + MSM_MUX_cci_timer0 = 49,
1: + MSM_MUX_cci_timer1 = 50,
1: + MSM_MUX_cci_timer2 = 51,
1: + MSM_MUX_cdc_pdm0 = 52,
1: + MSM_MUX_codec_mad = 53,
1: + MSM_MUX_dbg_out = 54,
1: + MSM_MUX_display_5v = 55,
1: + MSM_MUX_dmic0_clk = 56,
1: + MSM_MUX_dmic0_data = 57,
1: + MSM_MUX_dsi_rst = 58,
1: + MSM_MUX_ebi0_wrcdc = 59,
1: + MSM_MUX_euro_us = 60,
1: + MSM_MUX_ext_lpass = 61,
1: + MSM_MUX_flash_strobe = 62,
1: + MSM_MUX_gcc_gp1_clk_a = 63,
1: + MSM_MUX_gcc_gp1_clk_b = 64,
1: + MSM_MUX_gcc_gp2_clk_a = 65,
1: + MSM_MUX_gcc_gp2_clk_b = 66,
1: + MSM_MUX_gcc_gp3_clk_a = 67,
1: + MSM_MUX_gcc_gp3_clk_b = 68,
1: + MSM_MUX_gpio = 69,
1: + MSM_MUX_gsm0_tx0 = 70,
1: + MSM_MUX_gsm0_tx1 = 71,
1: + MSM_MUX_gsm1_tx0 = 72,
1: + MSM_MUX_gsm1_tx1 = 73,
1: + MSM_MUX_gyro_accl = 74,
1: + MSM_MUX_kpsns0 = 75,
1: + MSM_MUX_kpsns1 = 76,
1: + MSM_MUX_kpsns2 = 77,
1: + MSM_MUX_ldo_en = 78,
1: + MSM_MUX_ldo_update = 79,
1: + MSM_MUX_mag_int = 80,
1: + MSM_MUX_mdp_vsync = 81,
1: + MSM_MUX_modem_tsync = 82,
1: + MSM_MUX_m_voc = 83,
1: + MSM_MUX_nav_pps = 84,
1: + MSM_MUX_nav_tsync = 85,
1: + MSM_MUX_pa_indicator = 86,
1: + MSM_MUX_pbs0 = 87,
1: + MSM_MUX_pbs1 = 88,
1: + MSM_MUX_pbs2 = 89,
1: + MSM_MUX_pri_mi2s = 90,
1: + MSM_MUX_pri_mi2s_ws = 91,
1: + MSM_MUX_prng_rosc = 92,
1: + MSM_MUX_pwr_crypto_enabled_a = 93,
1: + MSM_MUX_pwr_crypto_enabled_b = 94,
1: + MSM_MUX_pwr_modem_enabled_a = 95,
1: + MSM_MUX_pwr_modem_enabled_b = 96,
1: + MSM_MUX_pwr_nav_enabled_a = 97,
1: + MSM_MUX_pwr_nav_enabled_b = 98,
1: + MSM_MUX_qdss_ctitrig_in_a0 = 99,
1: + MSM_MUX_qdss_ctitrig_in_a1 = 100,
1: + MSM_MUX_qdss_ctitrig_in_b0 = 101,
1: + MSM_MUX_qdss_ctitrig_in_b1 = 102,
1: + MSM_MUX_qdss_ctitrig_out_a0 = 103,
1: + MSM_MUX_qdss_ctitrig_out_a1 = 104,
1: + MSM_MUX_qdss_ctitrig_out_b0 = 105,
1: + MSM_MUX_qdss_ctitrig_out_b1 = 106,
1: + MSM_MUX_qdss_traceclk_a = 107,
1: + MSM_MUX_qdss_traceclk_b = 108,
1: + MSM_MUX_qdss_tracectl_a = 109,
1: + MSM_MUX_qdss_tracectl_b = 110,
1: + MSM_MUX_qdss_tracedata_a = 111,
1: + MSM_MUX_qdss_tracedata_b = 112,
1: + MSM_MUX_reset_n = 113,
1: + MSM_MUX_sd_card = 114,
1: + MSM_MUX_sd_write = 115,
1: + MSM_MUX_sec_mi2s = 116,
1: + MSM_MUX_smb_int = 117,
1: + MSM_MUX_ssbi_wtr0 = 118,
1: + MSM_MUX_ssbi_wtr1 = 119,
1: + MSM_MUX_uim1 = 120,
1: + MSM_MUX_uim2 = 121,
1: + MSM_MUX_uim3 = 122,
1: + MSM_MUX_uim_batt = 123,
1: + MSM_MUX_wcss_bt = 124,
1: + MSM_MUX_wcss_fm = 125,
1: + MSM_MUX_wcss_wlan = 126,
1: + MSM_MUX_webcam1_rst = 127,
1: + MSM_MUX_NA = 128,
1: +};
1: +
1: +enum msm8994_functions {
1: + MSM_MUX_audio_ref_clk = 0,
1: + MSM_MUX_blsp_i2c1___2 = 1,
1: + MSM_MUX_blsp_i2c2___2 = 2,
1: + MSM_MUX_blsp_i2c3___2 = 3,
1: + MSM_MUX_blsp_i2c4___2 = 4,
1: + MSM_MUX_blsp_i2c5___2 = 5,
1: + MSM_MUX_blsp_i2c6___2 = 6,
1: + MSM_MUX_blsp_i2c7 = 7,
1: + MSM_MUX_blsp_i2c8 = 8,
1: + MSM_MUX_blsp_i2c9 = 9,
1: + MSM_MUX_blsp_i2c10 = 10,
1: + MSM_MUX_blsp_i2c11 = 11,
1: + MSM_MUX_blsp_i2c12 = 12,
1: + MSM_MUX_blsp_spi1___2 = 13,
1: + MSM_MUX_blsp_spi1_cs1___2 = 14,
1: + MSM_MUX_blsp_spi1_cs2___2 = 15,
1: + MSM_MUX_blsp_spi1_cs3___2 = 16,
1: + MSM_MUX_blsp_spi2___2 = 17,
1: + MSM_MUX_blsp_spi2_cs1___2 = 18,
1: + MSM_MUX_blsp_spi2_cs2___2 = 19,
1: + MSM_MUX_blsp_spi2_cs3___2 = 20,
1: + MSM_MUX_blsp_spi3___2 = 21,
1: + MSM_MUX_blsp_spi4___2 = 22,
1: + MSM_MUX_blsp_spi5___2 = 23,
1: + MSM_MUX_blsp_spi6___2 = 24,
1: + MSM_MUX_blsp_spi7 = 25,
1: + MSM_MUX_blsp_spi8 = 26,
1: + MSM_MUX_blsp_spi9 = 27,
1: + MSM_MUX_blsp_spi10 = 28,
1: + MSM_MUX_blsp_spi10_cs1 = 29,
1: + MSM_MUX_blsp_spi10_cs2 = 30,
1: + MSM_MUX_blsp_spi10_cs3 = 31,
1: + MSM_MUX_blsp_spi11 = 32,
1: + MSM_MUX_blsp_spi12 = 33,
1: + MSM_MUX_blsp_uart1___2 = 34,
1: + MSM_MUX_blsp_uart2___2 = 35,
1: + MSM_MUX_blsp_uart3 = 36,
1: + MSM_MUX_blsp_uart4 = 37,
1: + MSM_MUX_blsp_uart5 = 38,
1: + MSM_MUX_blsp_uart6 = 39,
1: + MSM_MUX_blsp_uart7 = 40,
1: + MSM_MUX_blsp_uart8 = 41,
1: + MSM_MUX_blsp_uart9 = 42,
1: + MSM_MUX_blsp_uart10 = 43,
1: + MSM_MUX_blsp_uart11 = 44,
1: + MSM_MUX_blsp_uart12 = 45,
1: + MSM_MUX_blsp_uim1___2 = 46,
1: + MSM_MUX_blsp_uim2___2 = 47,
1: + MSM_MUX_blsp_uim3 = 48,
1: + MSM_MUX_blsp_uim4 = 49,
1: + MSM_MUX_blsp_uim5 = 50,
1: + MSM_MUX_blsp_uim6 = 51,
1: + MSM_MUX_blsp_uim7 = 52,
1: + MSM_MUX_blsp_uim8 = 53,
1: + MSM_MUX_blsp_uim9 = 54,
1: + MSM_MUX_blsp_uim10 = 55,
1: + MSM_MUX_blsp_uim11 = 56,
1: + MSM_MUX_blsp_uim12 = 57,
1: + MSM_MUX_blsp11_i2c_scl_b = 58,
1: + MSM_MUX_blsp11_i2c_sda_b = 59,
1: + MSM_MUX_blsp11_uart_rx_b = 60,
1: + MSM_MUX_blsp11_uart_tx_b = 61,
1: + MSM_MUX_cam_mclk0___2 = 62,
1: + MSM_MUX_cam_mclk1___2 = 63,
1: + MSM_MUX_cam_mclk2 = 64,
1: + MSM_MUX_cam_mclk3 = 65,
1: + MSM_MUX_cci_async_in0 = 66,
1: + MSM_MUX_cci_async_in1 = 67,
1: + MSM_MUX_cci_async_in2 = 68,
1: + MSM_MUX_cci_i2c0 = 69,
1: + MSM_MUX_cci_i2c1 = 70,
1: + MSM_MUX_cci_timer0___2 = 71,
1: + MSM_MUX_cci_timer1___2 = 72,
1: + MSM_MUX_cci_timer2___2 = 73,
1: + MSM_MUX_cci_timer3 = 74,
1: + MSM_MUX_cci_timer4 = 75,
1: + MSM_MUX_gcc_gp1_clk_a___2 = 76,
1: + MSM_MUX_gcc_gp1_clk_b___2 = 77,
1: + MSM_MUX_gcc_gp2_clk_a___2 = 78,
1: + MSM_MUX_gcc_gp2_clk_b___2 = 79,
1: + MSM_MUX_gcc_gp3_clk_a___2 = 80,
1: + MSM_MUX_gcc_gp3_clk_b___2 = 81,
1: + MSM_MUX_gp_mn = 82,
1: + MSM_MUX_gp_pdm0 = 83,
1: + MSM_MUX_gp_pdm1 = 84,
1: + MSM_MUX_gp_pdm2 = 85,
1: + MSM_MUX_gp0_clk = 86,
1: + MSM_MUX_gp1_clk = 87,
1: + MSM_MUX_gps_tx = 88,
1: + MSM_MUX_gsm_tx = 89,
1: + MSM_MUX_hdmi_cec = 90,
1: + MSM_MUX_hdmi_ddc = 91,
1: + MSM_MUX_hdmi_hpd = 92,
1: + MSM_MUX_hdmi_rcv = 93,
1: + MSM_MUX_mdp_vsync___2 = 94,
1: + MSM_MUX_mss_lte = 95,
1: + MSM_MUX_nav_pps___2 = 96,
1: + MSM_MUX_nav_tsync___2 = 97,
1: + MSM_MUX_qdss_cti_trig_in_a = 98,
1: + MSM_MUX_qdss_cti_trig_in_b = 99,
1: + MSM_MUX_qdss_cti_trig_in_c = 100,
1: + MSM_MUX_qdss_cti_trig_in_d = 101,
1: + MSM_MUX_qdss_cti_trig_out_a = 102,
1: + MSM_MUX_qdss_cti_trig_out_b = 103,
1: + MSM_MUX_qdss_cti_trig_out_c = 104,
1: + MSM_MUX_qdss_cti_trig_out_d = 105,
1: + MSM_MUX_qdss_traceclk_a___2 = 106,
1: + MSM_MUX_qdss_traceclk_b___2 = 107,
1: + MSM_MUX_qdss_tracectl_a___2 = 108,
1: + MSM_MUX_qdss_tracectl_b___2 = 109,
1: + MSM_MUX_qdss_tracedata_a___2 = 110,
1: + MSM_MUX_qdss_tracedata_b___2 = 111,
1: + MSM_MUX_qua_mi2s = 112,
1: + MSM_MUX_pci_e0 = 113,
1: + MSM_MUX_pci_e1 = 114,
1: + MSM_MUX_pri_mi2s___2 = 115,
1: + MSM_MUX_sdc4 = 116,
1: + MSM_MUX_sec_mi2s___2 = 117,
1: + MSM_MUX_slimbus = 118,
1: + MSM_MUX_spkr_i2s = 119,
1: + MSM_MUX_ter_mi2s = 120,
1: + MSM_MUX_tsif1 = 121,
1: + MSM_MUX_tsif2 = 122,
1: + MSM_MUX_uim1___2 = 123,
1: + MSM_MUX_uim2___2 = 124,
1: + MSM_MUX_uim3___2 = 125,
1: + MSM_MUX_uim4 = 126,
1: + MSM_MUX_uim_batt_alarm = 127,
1: + MSM_MUX_gpio___2 = 128,
1: + MSM_MUX_NA___2 = 129,
1: +};
1: +
1: +enum msm8996_functions {
1: + msm_mux_adsp_ext = 0,
1: + msm_mux_atest_bbrx0 = 1,
1: + msm_mux_atest_bbrx1 = 2,
1: + msm_mux_atest_char = 3,
1: + msm_mux_atest_char0 = 4,
1: + msm_mux_atest_char1 = 5,
1: + msm_mux_atest_char2 = 6,
1: + msm_mux_atest_char3 = 7,
1: + msm_mux_atest_gpsadc0 = 8,
1: + msm_mux_atest_gpsadc1 = 9,
1: + msm_mux_atest_tsens = 10,
1: + msm_mux_atest_tsens2 = 11,
1: + msm_mux_atest_usb1 = 12,
1: + msm_mux_atest_usb10 = 13,
1: + msm_mux_atest_usb11 = 14,
1: + msm_mux_atest_usb12 = 15,
1: + msm_mux_atest_usb13 = 16,
1: + msm_mux_atest_usb2 = 17,
1: + msm_mux_atest_usb20 = 18,
1: + msm_mux_atest_usb21 = 19,
1: + msm_mux_atest_usb22 = 20,
1: + msm_mux_atest_usb23 = 21,
1: + msm_mux_audio_ref = 22,
1: + msm_mux_bimc_dte0 = 23,
1: + msm_mux_bimc_dte1 = 24,
1: + msm_mux_blsp10_spi = 25,
1: + msm_mux_blsp11_i2c_scl_b = 26,
1: + msm_mux_blsp11_i2c_sda_b = 27,
1: + msm_mux_blsp11_uart_rx_b = 28,
1: + msm_mux_blsp11_uart_tx_b = 29,
1: + msm_mux_blsp1_spi = 30,
1: + msm_mux_blsp2_spi = 31,
1: + msm_mux_blsp_i2c1 = 32,
1: + msm_mux_blsp_i2c10 = 33,
1: + msm_mux_blsp_i2c11 = 34,
1: + msm_mux_blsp_i2c12 = 35,
1: + msm_mux_blsp_i2c2 = 36,
1: + msm_mux_blsp_i2c3 = 37,
1: + msm_mux_blsp_i2c4 = 38,
1: + msm_mux_blsp_i2c5 = 39,
1: + msm_mux_blsp_i2c6 = 40,
1: + msm_mux_blsp_i2c7 = 41,
1: + msm_mux_blsp_i2c8 = 42,
1: + msm_mux_blsp_i2c9 = 43,
1: + msm_mux_blsp_spi1 = 44,
1: + msm_mux_blsp_spi10 = 45,
1: + msm_mux_blsp_spi11 = 46,
1: + msm_mux_blsp_spi12 = 47,
1: + msm_mux_blsp_spi2 = 48,
1: + msm_mux_blsp_spi3 = 49,
1: + msm_mux_blsp_spi4 = 50,
1: + msm_mux_blsp_spi5 = 51,
1: + msm_mux_blsp_spi6 = 52,
1: + msm_mux_blsp_spi7 = 53,
1: + msm_mux_blsp_spi8 = 54,
1: + msm_mux_blsp_spi9 = 55,
1: + msm_mux_blsp_uart1 = 56,
1: + msm_mux_blsp_uart10 = 57,
1: + msm_mux_blsp_uart11 = 58,
1: + msm_mux_blsp_uart12 = 59,
1: + msm_mux_blsp_uart2 = 60,
1: + msm_mux_blsp_uart3 = 61,
1: + msm_mux_blsp_uart4 = 62,
1: + msm_mux_blsp_uart5 = 63,
1: + msm_mux_blsp_uart6 = 64,
1: + msm_mux_blsp_uart7 = 65,
1: + msm_mux_blsp_uart8 = 66,
1: + msm_mux_blsp_uart9 = 67,
1: + msm_mux_blsp_uim1 = 68,
1: + msm_mux_blsp_uim10 = 69,
1: + msm_mux_blsp_uim11 = 70,
1: + msm_mux_blsp_uim12 = 71,
1: + msm_mux_blsp_uim2 = 72,
1: + msm_mux_blsp_uim3 = 73,
1: + msm_mux_blsp_uim4 = 74,
1: + msm_mux_blsp_uim5 = 75,
1: + msm_mux_blsp_uim6 = 76,
1: + msm_mux_blsp_uim7 = 77,
1: + msm_mux_blsp_uim8 = 78,
1: + msm_mux_blsp_uim9 = 79,
1: + msm_mux_btfm_slimbus = 80,
1: + msm_mux_cam_mclk = 81,
1: + msm_mux_cci_async = 82,
1: + msm_mux_cci_i2c = 83,
1: + msm_mux_cci_timer0 = 84,
1: + msm_mux_cci_timer1 = 85,
1: + msm_mux_cci_timer2 = 86,
1: + msm_mux_cci_timer3 = 87,
1: + msm_mux_cci_timer4 = 88,
1: + msm_mux_cri_trng = 89,
1: + msm_mux_cri_trng0 = 90,
1: + msm_mux_cri_trng1 = 91,
1: + msm_mux_dac_calib0 = 92,
1: + msm_mux_dac_calib1 = 93,
1: + msm_mux_dac_calib10 = 94,
1: + msm_mux_dac_calib11 = 95,
1: + msm_mux_dac_calib12 = 96,
1: + msm_mux_dac_calib13 = 97,
1: + msm_mux_dac_calib14 = 98,
1: + msm_mux_dac_calib15 = 99,
1: + msm_mux_dac_calib16 = 100,
1: + msm_mux_dac_calib17 = 101,
1: + msm_mux_dac_calib18 = 102,
1: + msm_mux_dac_calib19 = 103,
1: + msm_mux_dac_calib2 = 104,
1: + msm_mux_dac_calib20 = 105,
1: + msm_mux_dac_calib21 = 106,
1: + msm_mux_dac_calib22 = 107,
1: + msm_mux_dac_calib23 = 108,
1: + msm_mux_dac_calib24 = 109,
1: + msm_mux_dac_calib25 = 110,
1: + msm_mux_dac_calib26 = 111,
1: + msm_mux_dac_calib3 = 112,
1: + msm_mux_dac_calib4 = 113,
1: + msm_mux_dac_calib5 = 114,
1: + msm_mux_dac_calib6 = 115,
1: + msm_mux_dac_calib7 = 116,
1: + msm_mux_dac_calib8 = 117,
1: + msm_mux_dac_calib9 = 118,
1: + msm_mux_dac_gpio = 119,
1: + msm_mux_dbg_out = 120,
1: + msm_mux_ddr_bist = 121,
1: + msm_mux_edp_hot = 122,
1: + msm_mux_edp_lcd = 123,
1: + msm_mux_gcc_gp1_clk_a = 124,
1: + msm_mux_gcc_gp1_clk_b = 125,
1: + msm_mux_gcc_gp2_clk_a = 126,
1: + msm_mux_gcc_gp2_clk_b = 127,
1: + msm_mux_gcc_gp3_clk_a = 128,
1: + msm_mux_gcc_gp3_clk_b = 129,
1: + msm_mux_gsm_tx = 130,
1: + msm_mux_hdmi_cec = 131,
1: + msm_mux_hdmi_ddc = 132,
1: + msm_mux_hdmi_hot = 133,
1: + msm_mux_hdmi_rcv = 134,
1: + msm_mux_isense_dbg = 135,
1: + msm_mux_ldo_en = 136,
1: + msm_mux_ldo_update = 137,
1: + msm_mux_lpass_slimbus = 138,
1: + msm_mux_m_voc = 139,
1: + msm_mux_mdp_vsync = 140,
1: + msm_mux_mdp_vsync_p_b = 141,
1: + msm_mux_mdp_vsync_s_b = 142,
1: + msm_mux_modem_tsync = 143,
1: + msm_mux_mss_lte = 144,
1: + msm_mux_nav_dr = 145,
1: + msm_mux_nav_pps = 146,
1: + msm_mux_pa_indicator = 147,
1: + msm_mux_pci_e0 = 148,
1: + msm_mux_pci_e1 = 149,
1: + msm_mux_pci_e2 = 150,
1: + msm_mux_pll_bypassnl = 151,
1: + msm_mux_pll_reset = 152,
1: + msm_mux_pri_mi2s = 153,
1: + msm_mux_prng_rosc = 154,
1: + msm_mux_pwr_crypto = 155,
1: + msm_mux_pwr_modem = 156,
1: + msm_mux_pwr_nav = 157,
1: + msm_mux_qdss_cti = 158,
1: + msm_mux_qdss_cti_trig_in_a = 159,
1: + msm_mux_qdss_cti_trig_in_b = 160,
1: + msm_mux_qdss_cti_trig_out_a = 161,
1: + msm_mux_qdss_cti_trig_out_b = 162,
1: + msm_mux_qdss_stm0 = 163,
1: + msm_mux_qdss_stm1 = 164,
1: + msm_mux_qdss_stm10 = 165,
1: + msm_mux_qdss_stm11 = 166,
1: + msm_mux_qdss_stm12 = 167,
1: + msm_mux_qdss_stm13 = 168,
1: + msm_mux_qdss_stm14 = 169,
1: + msm_mux_qdss_stm15 = 170,
1: + msm_mux_qdss_stm16 = 171,
1: + msm_mux_qdss_stm17 = 172,
1: + msm_mux_qdss_stm18 = 173,
1: + msm_mux_qdss_stm19 = 174,
1: + msm_mux_qdss_stm2 = 175,
1: + msm_mux_qdss_stm20 = 176,
1: + msm_mux_qdss_stm21 = 177,
1: + msm_mux_qdss_stm22 = 178,
1: + msm_mux_qdss_stm23 = 179,
1: + msm_mux_qdss_stm24 = 180,
1: + msm_mux_qdss_stm25 = 181,
1: + msm_mux_qdss_stm26 = 182,
1: + msm_mux_qdss_stm27 = 183,
1: + msm_mux_qdss_stm28 = 184,
1: + msm_mux_qdss_stm29 = 185,
1: + msm_mux_qdss_stm3 = 186,
1: + msm_mux_qdss_stm30 = 187,
1: + msm_mux_qdss_stm31 = 188,
1: + msm_mux_qdss_stm4 = 189,
1: + msm_mux_qdss_stm5 = 190,
1: + msm_mux_qdss_stm6 = 191,
1: + msm_mux_qdss_stm7 = 192,
1: + msm_mux_qdss_stm8 = 193,
1: + msm_mux_qdss_stm9 = 194,
1: + msm_mux_qdss_traceclk_a = 195,
1: + msm_mux_qdss_traceclk_b = 196,
1: + msm_mux_qdss_tracectl_a = 197,
1: + msm_mux_qdss_tracectl_b = 198,
1: + msm_mux_qdss_tracedata_11 = 199,
1: + msm_mux_qdss_tracedata_12 = 200,
1: + msm_mux_qdss_tracedata_a = 201,
1: + msm_mux_qdss_tracedata_b = 202,
1: + msm_mux_qspi0 = 203,
1: + msm_mux_qspi1 = 204,
1: + msm_mux_qspi2 = 205,
1: + msm_mux_qspi3 = 206,
1: + msm_mux_qspi_clk = 207,
1: + msm_mux_qspi_cs = 208,
1: + msm_mux_qua_mi2s = 209,
1: + msm_mux_sd_card = 210,
1: + msm_mux_sd_write = 211,
1: + msm_mux_sdc40 = 212,
1: + msm_mux_sdc41 = 213,
1: + msm_mux_sdc42 = 214,
1: + msm_mux_sdc43 = 215,
1: + msm_mux_sdc4_clk = 216,
1: + msm_mux_sdc4_cmd = 217,
1: + msm_mux_sec_mi2s = 218,
1: + msm_mux_spkr_i2s = 219,
1: + msm_mux_ssbi1 = 220,
1: + msm_mux_ssbi2 = 221,
1: + msm_mux_ssc_irq = 222,
1: + msm_mux_ter_mi2s = 223,
1: + msm_mux_tsense_pwm1 = 224,
1: + msm_mux_tsense_pwm2 = 225,
1: + msm_mux_tsif1_clk = 226,
1: + msm_mux_tsif1_data = 227,
1: + msm_mux_tsif1_en = 228,
1: + msm_mux_tsif1_error = 229,
1: + msm_mux_tsif1_sync = 230,
1: + msm_mux_tsif2_clk = 231,
1: + msm_mux_tsif2_data = 232,
1: + msm_mux_tsif2_en = 233,
1: + msm_mux_tsif2_error = 234,
1: + msm_mux_tsif2_sync = 235,
1: + msm_mux_uim1 = 236,
1: + msm_mux_uim2 = 237,
1: + msm_mux_uim3 = 238,
1: + msm_mux_uim4 = 239,
1: + msm_mux_uim_batt = 240,
1: + msm_mux_vfr_1 = 241,
1: + msm_mux_gpio = 242,
1: + msm_mux_NA = 243,
1: +};
1: +
1: +enum pincfg_type {
1: + PINCFG_TYPE_FUNC = 0,
1: + PINCFG_TYPE_DAT = 1,
1: + PINCFG_TYPE_PUD = 2,
1: + PINCFG_TYPE_DRV = 3,
1: + PINCFG_TYPE_CON_PDN = 4,
1: + PINCFG_TYPE_PUD_PDN = 5,
1: + PINCFG_TYPE_NUM = 6,
1: +};
1: +
1: +enum eint_type {
1: + EINT_TYPE_NONE = 0,
1: + EINT_TYPE_GPIO = 1,
1: + EINT_TYPE_WKUP = 2,
1: + EINT_TYPE_WKUP_MUX = 3,
1: +};
1: +
1: +struct samsung_pin_bank_type {
1: + u8 fld_width[6];
1: + u8 reg_offset[6];
1: +};
1: +
1: +struct samsung_pin_bank_data {
1: + const struct samsung_pin_bank_type *type;
1: + u32 pctl_offset;
1: + u8 pctl_res_idx;
1: + u8 nr_pins;
1: + u8 eint_func;
1: + enum eint_type eint_type;
1: + u32 eint_mask;
1: + u32 eint_offset;
1: + const char *name;
1: +};
1: +
1: +struct samsung_pinctrl_drv_data;
1: +
1: +struct exynos_irq_chip;
1: +
1: +struct samsung_pin_bank {
1: + const struct samsung_pin_bank_type *type;
1: + void *pctl_base;
1: + u32 pctl_offset;
1: + u8 nr_pins;
1: + void *eint_base;
1: + u8 eint_func;
1: + enum eint_type eint_type;
1: + u32 eint_mask;
1: + u32 eint_offset;
1: + const char *name;
1: + u32 pin_base;
1: + void *soc_priv;
1: + struct device_node *of_node;
1: + struct samsung_pinctrl_drv_data *drvdata;
1: + struct irq_domain *irq_domain;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_gpio_range grange;
1: + struct exynos_irq_chip *irq_chip;
1: + spinlock_t slock;
1: + u32 pm_save[7];
1: +};
1: +
1: +struct samsung_pin_group;
1: +
1: +struct samsung_pmx_func;
1: +
1: +struct samsung_retention_ctrl;
1: +
1: +struct samsung_pinctrl_drv_data {
1: + struct list_head node;
1: + void *virt_base;
1: + struct device *dev;
1: + int irq;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + const struct samsung_pin_group *pin_groups;
1: + unsigned int nr_groups;
1: + const struct samsung_pmx_func *pmx_functions;
1: + unsigned int nr_functions;
1: + struct samsung_pin_bank *pin_banks;
1: + unsigned int nr_banks;
1: + unsigned int pin_base;
1: + unsigned int nr_pins;
1: + struct samsung_retention_ctrl *retention_ctrl;
1: + void (*suspend)(struct samsung_pinctrl_drv_data *);
1: + void (*resume)(struct samsung_pinctrl_drv_data *);
1: +};
1: +
1: +struct samsung_retention_ctrl {
1: + const u32 *regs;
1: + int nr_regs;
1: + u32 value;
1: + atomic_t *refcnt;
1: + void *priv;
1: + void (*enable)(struct samsung_pinctrl_drv_data *);
1: + void (*disable)(struct samsung_pinctrl_drv_data *);
1: +};
1: +
1: +struct samsung_retention_data {
1: + const u32 *regs;
1: + int nr_regs;
1: + u32 value;
1: + atomic_t *refcnt;
1: + struct samsung_retention_ctrl * (*init)(struct samsung_pinctrl_drv_data *, const struct samsung_retention_data *);
1: +};
1: +
1: +struct samsung_pin_ctrl {
1: + const struct samsung_pin_bank_data *pin_banks;
1: + unsigned int nr_banks;
1: + unsigned int nr_ext_resources;
1: + const struct samsung_retention_data *retention_data;
1: + int (*eint_gpio_init)(struct samsung_pinctrl_drv_data *);
1: + int (*eint_wkup_init)(struct samsung_pinctrl_drv_data *);
1: + void (*suspend)(struct samsung_pinctrl_drv_data *);
1: + void (*resume)(struct samsung_pinctrl_drv_data *);
1: +};
1: +
1: +struct samsung_pin_group {
1: + const char *name;
1: + const unsigned int *pins;
1: + u8 num_pins;
1: + u8 func;
1: +};
1: +
1: +struct samsung_pmx_func {
1: + const char *name;
1: + const char **groups;
1: + u8 num_groups;
1: + u32 val;
1: +};
1: +
1: +struct samsung_pinctrl_of_match_data {
1: + const struct samsung_pin_ctrl *ctrl;
1: + unsigned int num_ctrl;
1: +};
1: +
1: +struct pin_config {
1: + const char *property;
1: + enum pincfg_type param;
1: +};
1: +
1: +struct exynos_irq_chip {
1: + struct irq_chip chip;
1: + u32 eint_con;
1: + u32 eint_mask;
1: + u32 eint_pend;
1: + u32 *eint_wake_mask_value;
1: + u32 eint_wake_mask_reg;
1: + void (*set_eint_wakeup_mask)(struct samsung_pinctrl_drv_data *, struct exynos_irq_chip *);
1: +};
1: +
1: +struct exynos_weint_data {
1: + unsigned int irq;
1: + struct samsung_pin_bank *bank;
1: +};
1: +
1: +struct exynos_muxed_weint_data {
1: + unsigned int nr_banks;
1: + struct samsung_pin_bank *banks[0];
1: +};
1: +
1: +struct exynos_eint_gpio_save {
1: + u32 eint_con;
1: + u32 eint_fltcon0;
1: + u32 eint_fltcon1;
1: + u32 eint_mask;
1: +};
1: +
1: +enum sunxi_desc_bias_voltage {
1: + BIAS_VOLTAGE_NONE = 0,
1: + BIAS_VOLTAGE_GRP_CONFIG = 1,
1: + BIAS_VOLTAGE_PIO_POW_MODE_SEL = 2,
1: +};
1: +
1: +struct sunxi_desc_function {
1: + long unsigned int variant;
1: + const char *name;
1: + u8 muxval;
1: + u8 irqbank;
1: + u8 irqnum;
1: +};
1: +
1: +struct sunxi_desc_pin {
1: + struct pinctrl_pin_desc pin;
1: + long unsigned int variant;
1: + struct sunxi_desc_function *functions;
1: +};
1: +
1: +struct sunxi_pinctrl_desc {
1: + const struct sunxi_desc_pin *pins;
1: + int npins;
1: + unsigned int pin_base;
1: + unsigned int irq_banks;
1: + const unsigned int *irq_bank_map;
1: + bool irq_read_needs_mux;
1: + bool disable_strict_mode;
1: + enum sunxi_desc_bias_voltage io_bias_cfg_variant;
1: +};
1: +
1: +struct sunxi_pinctrl_function {
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: +};
1: +
1: +struct sunxi_pinctrl_group {
1: + const char *name;
1: + unsigned int pin;
1: +};
1: +
1: +struct sunxi_pinctrl_regulator {
1: + struct regulator *regulator;
1: + refcount_t refcount;
1: +};
1: +
1: +struct sunxi_pinctrl {
1: + void *membase;
1: + struct gpio_chip *chip;
1: + const struct sunxi_pinctrl_desc *desc;
1: + struct device *dev;
1: + struct sunxi_pinctrl_regulator regulators[9];
1: + struct irq_domain *domain;
1: + struct sunxi_pinctrl_function *functions;
1: + unsigned int nfunctions;
1: + struct sunxi_pinctrl_group *groups;
1: + unsigned int ngroups;
1: + int *irq;
1: + unsigned int *irq_array;
1: + raw_spinlock_t lock;
1: + struct pinctrl_dev *pctl_dev;
1: + long unsigned int variant;
1: +};
1: +
1: +struct mtk_eint_regs {
1: + unsigned int stat;
1: + unsigned int ack;
1: + unsigned int mask;
1: + unsigned int mask_set;
1: + unsigned int mask_clr;
1: + unsigned int sens;
1: + unsigned int sens_set;
1: + unsigned int sens_clr;
1: + unsigned int soft;
1: + unsigned int soft_set;
1: + unsigned int soft_clr;
1: + unsigned int pol;
1: + unsigned int pol_set;
1: + unsigned int pol_clr;
1: + unsigned int dom_en;
1: + unsigned int dbnc_ctrl;
1: + unsigned int dbnc_set;
1: + unsigned int dbnc_clr;
1: +};
1: +
1: +struct mtk_eint_hw {
1: + u8 port_mask;
1: + u8 ports;
1: + unsigned int ap_num;
1: + unsigned int db_cnt;
1: +};
1: +
1: +struct mtk_eint_xt {
1: + int (*get_gpio_n)(void *, long unsigned int, unsigned int *, struct gpio_chip **);
1: + int (*get_gpio_state)(void *, long unsigned int);
1: + int (*set_gpio_as_eint)(void *, long unsigned int);
1: +};
1: +
1: +struct mtk_eint {
1: + struct device *dev;
1: + void *base;
1: + struct irq_domain *domain;
1: + int irq;
1: + int *dual_edge;
1: + u32 *wake_mask;
1: + u32 *cur_mask;
1: + const struct mtk_eint_hw *hw;
1: + const struct mtk_eint_regs *regs;
1: + void *pctl;
1: + const struct mtk_eint_xt *gpio_xlate;
1: +};
1: +
1: +struct mtk_desc_function {
1: + const char *name;
1: + unsigned char muxval;
1: +};
1: +
1: +struct mtk_desc_eint {
1: + unsigned char eintmux;
1: + unsigned char eintnum;
1: +};
1: +
1: +struct mtk_desc_pin {
1: + struct pinctrl_pin_desc pin;
1: + const struct mtk_desc_eint eint;
1: + const struct mtk_desc_function *functions;
1: +};
1: +
1: +struct mtk_pinctrl_group {
1: + const char *name;
1: + long unsigned int config;
1: + unsigned int pin;
1: +};
1: +
1: +struct mtk_drv_group_desc {
1: + unsigned char min_drv;
1: + unsigned char max_drv;
1: + unsigned char low_bit;
1: + unsigned char high_bit;
1: + unsigned char step;
1: +};
1: +
1: +struct mtk_pin_drv_grp {
1: + short unsigned int pin;
1: + short unsigned int offset;
1: + unsigned char bit;
1: + unsigned char grp;
1: +};
1: +
1: +struct mtk_pin_spec_pupd_set_samereg {
1: + short unsigned int pin;
1: + short unsigned int offset;
1: + unsigned char pupd_bit;
1: + unsigned char r1_bit;
1: + unsigned char r0_bit;
1: +};
1: +
1: +struct mtk_pin_ies_smt_set {
1: + short unsigned int start;
1: + short unsigned int end;
1: + short unsigned int offset;
1: + unsigned char bit;
1: +};
1: +
1: +struct mtk_pinctrl_devdata {
1: + const struct mtk_desc_pin *pins;
1: + unsigned int npins;
1: + const struct mtk_drv_group_desc *grp_desc;
1: + unsigned int n_grp_cls;
1: + const struct mtk_pin_drv_grp *pin_drv_grp;
1: + unsigned int n_pin_drv_grps;
1: + int (*spec_pull_set)(struct regmap *, unsigned int, unsigned char, bool, unsigned int);
1: + int (*spec_ies_smt_set)(struct regmap *, unsigned int, unsigned char, int, enum pin_config_param);
1: + void (*spec_pinmux_set)(struct regmap *, unsigned int, unsigned int);
1: + void (*spec_dir_set)(unsigned int *, unsigned int);
1: + unsigned int dir_offset;
1: + unsigned int ies_offset;
1: + unsigned int smt_offset;
1: + unsigned int pullen_offset;
1: + unsigned int pullsel_offset;
1: + unsigned int drv_offset;
1: + unsigned int dout_offset;
1: + unsigned int din_offset;
1: + unsigned int pinmux_offset;
1: + short unsigned int type1_start;
1: + short unsigned int type1_end;
1: + unsigned char port_shf;
1: + unsigned char port_mask;
1: + unsigned char port_align;
1: + struct mtk_eint_hw eint_hw;
1: + struct mtk_eint_regs *eint_regs;
1: +};
1: +
1: +struct mtk_pinctrl {
1: + struct regmap *regmap1;
1: + struct regmap *regmap2;
1: + struct pinctrl_desc pctl_desc;
1: + struct device *dev;
1: + struct gpio_chip *chip;
1: + struct mtk_pinctrl_group *groups;
1: + unsigned int ngroups;
1: + const char **grp_names;
1: + struct pinctrl_dev *pctl_dev;
1: + const struct mtk_pinctrl_devdata *devdata;
1: + struct mtk_eint *eint;
1: +};
1: +
1: +enum {
1: + PINCTRL_PIN_REG_MODE = 0,
1: + PINCTRL_PIN_REG_DIR = 1,
1: + PINCTRL_PIN_REG_DI = 2,
1: + PINCTRL_PIN_REG_DO = 3,
1: + PINCTRL_PIN_REG_SR = 4,
1: + PINCTRL_PIN_REG_SMT = 5,
1: + PINCTRL_PIN_REG_PD = 6,
1: + PINCTRL_PIN_REG_PU = 7,
1: + PINCTRL_PIN_REG_E4 = 8,
1: + PINCTRL_PIN_REG_E8 = 9,
1: + PINCTRL_PIN_REG_TDSEL = 10,
1: + PINCTRL_PIN_REG_RDSEL = 11,
1: + PINCTRL_PIN_REG_DRV = 12,
1: + PINCTRL_PIN_REG_PUPD = 13,
1: + PINCTRL_PIN_REG_R0 = 14,
1: + PINCTRL_PIN_REG_R1 = 15,
1: + PINCTRL_PIN_REG_IES = 16,
1: + PINCTRL_PIN_REG_PULLEN = 17,
1: + PINCTRL_PIN_REG_PULLSEL = 18,
1: + PINCTRL_PIN_REG_DRV_EN = 19,
1: + PINCTRL_PIN_REG_DRV_E0 = 20,
1: + PINCTRL_PIN_REG_DRV_E1 = 21,
1: + PINCTRL_PIN_REG_MAX = 22,
1: +};
1: +
1: +enum {
1: + DRV_FIXED = 0,
1: + DRV_GRP0 = 1,
1: + DRV_GRP1 = 2,
1: + DRV_GRP2 = 3,
1: + DRV_GRP3 = 4,
1: + DRV_GRP4 = 5,
1: + DRV_GRP_MAX = 6,
1: +};
1: +
1: +struct mtk_pin_field {
1: + u8 index;
1: + u32 offset;
1: + u32 mask;
1: + u8 bitpos;
1: + u8 next;
1: +};
1: +
1: +struct mtk_pin_field_calc {
1: + u16 s_pin;
1: + u16 e_pin;
1: + u8 i_base;
1: + u32 s_addr;
1: + u8 x_addrs;
1: + u8 s_bit;
1: + u8 x_bits;
1: + u8 sz_reg;
1: + u8 fixed;
1: +};
1: +
1: +struct mtk_pin_reg_calc {
1: + const struct mtk_pin_field_calc *range;
1: + unsigned int nranges;
1: +};
1: +
1: +struct mtk_func_desc {
1: + const char *name;
1: + u8 muxval;
1: +};
1: +
1: +struct mtk_eint_desc {
1: + u16 eint_m;
1: + u16 eint_n;
1: +};
1: +
1: +struct mtk_pin_desc {
1: + unsigned int number;
1: + const char *name;
1: + struct mtk_eint_desc eint;
1: + u8 drv_n;
1: + struct mtk_func_desc *funcs;
1: +};
1: +
1: +struct mtk_pinctrl___2;
1: +
1: +struct mtk_pin_soc {
1: + const struct mtk_pin_reg_calc *reg_cal;
1: + const struct mtk_pin_desc *pins;
1: + unsigned int npins;
1: + const struct group_desc *grps;
1: + unsigned int ngrps;
1: + const struct function_desc *funcs;
1: + unsigned int nfuncs;
1: + const struct mtk_eint_regs *eint_regs;
1: + const struct mtk_eint_hw *eint_hw;
1: + u8 gpio_m;
1: + bool ies_present;
1: + const char * const *base_names;
1: + unsigned int nbase_names;
1: + int (*bias_disable_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *);
1: + int (*bias_disable_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, int *);
1: + int (*bias_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool);
1: + int (*bias_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, int *);
1: + int (*bias_set_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32, u32);
1: + int (*bias_get_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32 *, u32 *);
1: + int (*drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32);
1: + int (*drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, int *);
1: + int (*adv_pull_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, u32);
1: + int (*adv_pull_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, u32 *);
1: + int (*adv_drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32);
1: + int (*adv_drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32 *);
1: + void *driver_data;
1: +};
1: +
1: +struct mtk_pinctrl___2 {
1: + struct pinctrl_dev *pctrl;
1: + void **base;
1: + u8 nbase;
1: + struct device *dev;
1: + struct gpio_chip chip;
1: + const struct mtk_pin_soc *soc;
1: + struct mtk_eint *eint;
1: + struct mtk_pinctrl_group *groups;
1: + const char **grp_names;
1: +};
1: +
1: +struct mtk_drive_desc {
1: + u8 min;
1: + u8 max;
1: + u8 step;
1: + u8 scal;
1: +};
1: +
1: +struct mt6397_chip {
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct notifier_block pm_nb;
1: + int irq;
1: + struct irq_domain *irq_domain;
1: + struct mutex irqlock;
1: + u16 wake_mask[2];
1: + u16 irq_masks_cur[2];
1: + u16 irq_masks_cache[2];
1: + u16 int_con[2];
1: + u16 int_status[2];
1: + u16 chip_id;
1: + void *irq_data;
1: +};
1: +
1: +struct madera_pin_groups {
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int n_pins;
1: +};
1: +
1: +struct madera_pin_chip {
1: + unsigned int n_pins;
1: + const struct madera_pin_groups *pin_groups;
1: + unsigned int n_pin_groups;
1: +};
1: +
1: +struct madera_pin_private {
1: + struct madera *madera;
1: + const struct madera_pin_chip *chip;
1: + struct device *dev;
1: + struct pinctrl_dev *pctl;
1: +};
1: +
1: +struct gpio_pin_range {
1: + struct list_head node;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_gpio_range range;
1: +};
1: +
1: +struct gpio_array;
1: +
1: +struct gpio_descs {
1: + struct gpio_array *info;
1: + unsigned int ndescs;
1: + struct gpio_desc___2 *desc[0];
1: +};
1: +
1: +struct gpio_array {
1: + struct gpio_desc___2 **desc;
1: + unsigned int size;
1: + struct gpio_chip *chip;
1: + long unsigned int *get_mask;
1: + long unsigned int *set_mask;
1: + long unsigned int invert_mask[0];
1: +};
1: +
1: +enum gpiod_flags {
1: + GPIOD_ASIS = 0,
1: + GPIOD_IN = 1,
1: + GPIOD_OUT_LOW = 3,
1: + GPIOD_OUT_HIGH = 7,
1: + GPIOD_OUT_LOW_OPEN_DRAIN = 11,
1: + GPIOD_OUT_HIGH_OPEN_DRAIN = 15,
1: +};
1: +
1: +enum gpio_lookup_flags {
1: + GPIO_ACTIVE_HIGH = 0,
1: + GPIO_ACTIVE_LOW = 1,
1: + GPIO_OPEN_DRAIN = 2,
1: + GPIO_OPEN_SOURCE = 4,
1: + GPIO_PERSISTENT = 0,
1: + GPIO_TRANSITORY = 8,
1: + GPIO_PULL_UP = 16,
1: + GPIO_PULL_DOWN = 32,
1: + GPIO_LOOKUP_FLAGS_DEFAULT = 0,
1: +};
1: +
1: +struct gpiod_lookup {
1: + const char *key;
1: + u16 chip_hwnum;
1: + const char *con_id;
1: + unsigned int idx;
1: + long unsigned int flags;
1: +};
1: +
1: +struct gpiod_lookup_table {
1: + struct list_head list;
1: + const char *dev_id;
1: + struct gpiod_lookup table[0];
1: +};
1: +
1: +struct gpiod_hog {
1: + struct list_head list;
1: + const char *chip_label;
1: + u16 chip_hwnum;
1: + const char *line_name;
1: + long unsigned int lflags;
1: + int dflags;
1: +};
1: +
1: +enum {
1: + GPIOLINE_CHANGED_REQUESTED = 1,
1: + GPIOLINE_CHANGED_RELEASED = 2,
1: + GPIOLINE_CHANGED_CONFIG = 3,
1: +};
1: +
1: +struct acpi_gpio_info {
1: + struct acpi_device *adev;
1: + enum gpiod_flags flags;
1: + bool gpioint;
1: + int pin_config;
1: + int polarity;
1: + int triggering;
1: + unsigned int quirks;
1: +};
1: +
1: +struct trace_event_raw_gpio_direction {
1: + struct trace_entry ent;
1: + unsigned int gpio;
1: + int in;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_gpio_value {
1: + struct trace_entry ent;
1: + unsigned int gpio;
1: + int get;
1: + int value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_gpio_direction {};
1: +
1: +struct trace_event_data_offsets_gpio_value {};
1: +
1: +typedef void (*btf_trace_gpio_direction)(void *, unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_gpio_value)(void *, unsigned int, int, int);
1: +
1: +struct devres;
1: +
1: +struct gpio {
1: + unsigned int gpio;
1: + long unsigned int flags;
1: + const char *label;
1: +};
1: +
1: +struct of_reconfig_data {
1: + struct device_node *dn;
1: + struct property *prop;
1: + struct property *old_prop;
1: +};
1: +
1: +enum of_reconfig_change {
1: + OF_RECONFIG_NO_CHANGE = 0,
1: + OF_RECONFIG_CHANGE_ADD = 1,
1: + OF_RECONFIG_CHANGE_REMOVE = 2,
1: +};
1: +
1: +enum of_gpio_flags {
1: + OF_GPIO_ACTIVE_LOW = 1,
1: + OF_GPIO_SINGLE_ENDED = 2,
1: + OF_GPIO_OPEN_DRAIN = 4,
1: + OF_GPIO_TRANSITORY = 8,
1: + OF_GPIO_PULL_UP = 16,
1: + OF_GPIO_PULL_DOWN = 32,
1: +};
1: +
1: +struct of_mm_gpio_chip {
1: + struct gpio_chip gc;
1: + void (*save_regs)(struct of_mm_gpio_chip *);
1: + void *regs;
1: +};
1: +
1: +struct gpiochip_info {
1: + char name[32];
1: + char label[32];
1: + __u32 lines;
1: +};
1: +
1: +enum gpio_v2_line_flag {
1: + GPIO_V2_LINE_FLAG_USED = 1,
1: + GPIO_V2_LINE_FLAG_ACTIVE_LOW = 2,
1: + GPIO_V2_LINE_FLAG_INPUT = 4,
1: + GPIO_V2_LINE_FLAG_OUTPUT = 8,
1: + GPIO_V2_LINE_FLAG_EDGE_RISING = 16,
1: + GPIO_V2_LINE_FLAG_EDGE_FALLING = 32,
1: + GPIO_V2_LINE_FLAG_OPEN_DRAIN = 64,
1: + GPIO_V2_LINE_FLAG_OPEN_SOURCE = 128,
1: + GPIO_V2_LINE_FLAG_BIAS_PULL_UP = 256,
1: + GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN = 512,
1: + GPIO_V2_LINE_FLAG_BIAS_DISABLED = 1024,
1: +};
1: +
1: +struct gpio_v2_line_values {
1: + __u64 bits;
1: + __u64 mask;
1: +};
1: +
1: +enum gpio_v2_line_attr_id {
1: + GPIO_V2_LINE_ATTR_ID_FLAGS = 1,
1: + GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES = 2,
1: + GPIO_V2_LINE_ATTR_ID_DEBOUNCE = 3,
1: +};
1: +
1: +struct gpio_v2_line_attribute {
1: + __u32 id;
1: + __u32 padding;
1: + union {
1: + __u64 flags;
1: + __u64 values;
1: + __u32 debounce_period_us;
1: + };
1: +};
1: +
1: +struct gpio_v2_line_config_attribute {
1: + struct gpio_v2_line_attribute attr;
1: + __u64 mask;
1: +};
1: +
1: +struct gpio_v2_line_config {
1: + __u64 flags;
1: + __u32 num_attrs;
1: + __u32 padding[5];
1: + struct gpio_v2_line_config_attribute attrs[10];
1: +};
1: +
1: +struct gpio_v2_line_request {
1: + __u32 offsets[64];
1: + char consumer[32];
1: + struct gpio_v2_line_config config;
1: + __u32 num_lines;
1: + __u32 event_buffer_size;
1: + __u32 padding[5];
1: + __s32 fd;
1: +};
1: +
1: +struct gpio_v2_line_info {
1: + char name[32];
1: + char consumer[32];
1: + __u32 offset;
1: + __u32 num_attrs;
1: + __u64 flags;
1: + struct gpio_v2_line_attribute attrs[10];
1: + __u32 padding[4];
1: +};
1: +
1: +enum gpio_v2_line_changed_type {
1: + GPIO_V2_LINE_CHANGED_REQUESTED = 1,
1: + GPIO_V2_LINE_CHANGED_RELEASED = 2,
1: + GPIO_V2_LINE_CHANGED_CONFIG = 3,
1: +};
1: +
1: +struct gpio_v2_line_info_changed {
1: + struct gpio_v2_line_info info;
1: + __u64 timestamp_ns;
1: + __u32 event_type;
1: + __u32 padding[5];
1: +};
1: +
1: +enum gpio_v2_line_event_id {
1: + GPIO_V2_LINE_EVENT_RISING_EDGE = 1,
1: + GPIO_V2_LINE_EVENT_FALLING_EDGE = 2,
1: +};
1: +
1: +struct gpio_v2_line_event {
1: + __u64 timestamp_ns;
1: + __u32 id;
1: + __u32 offset;
1: + __u32 seqno;
1: + __u32 line_seqno;
1: + __u32 padding[6];
1: +};
1: +
1: +struct gpioline_info {
1: + __u32 line_offset;
1: + __u32 flags;
1: + char name[32];
1: + char consumer[32];
1: +};
1: +
1: +struct gpioline_info_changed {
1: + struct gpioline_info info;
1: + __u64 timestamp;
1: + __u32 event_type;
1: + __u32 padding[5];
1: +};
1: +
1: +struct gpiohandle_request {
1: + __u32 lineoffsets[64];
1: + __u32 flags;
1: + __u8 default_values[64];
1: + char consumer_label[32];
1: + __u32 lines;
1: + int fd;
1: +};
1: +
1: +struct gpiohandle_config {
1: + __u32 flags;
1: + __u8 default_values[64];
1: + __u32 padding[4];
1: +};
1: +
1: +struct gpiohandle_data {
1: + __u8 values[64];
1: +};
1: +
1: +struct gpioevent_request {
1: + __u32 lineoffset;
1: + __u32 handleflags;
1: + __u32 eventflags;
1: + char consumer_label[32];
1: + int fd;
1: +};
1: +
1: +struct gpioevent_data {
1: + __u64 timestamp;
1: + __u32 id;
1: +};
1: +
1: +struct linehandle_state {
1: + struct gpio_device *gdev;
1: + const char *label;
1: + struct gpio_desc___2 *descs[64];
1: + u32 num_descs;
1: +};
1: +
1: +struct linereq;
1: +
1: +struct line {
1: + struct gpio_desc___2 *desc;
1: + struct linereq *req;
1: + unsigned int irq;
1: + u64 eflags;
1: + u64 timestamp_ns;
1: + u32 req_seqno;
1: + u32 line_seqno;
1: + struct delayed_work work;
1: + unsigned int sw_debounced;
1: + unsigned int level;
1: +};
1: +
1: +struct linereq {
1: + struct gpio_device *gdev;
1: + const char *label;
1: + u32 num_lines;
1: + wait_queue_head_t wait;
1: + u32 event_buffer_size;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpio_v2_line_event *type;
1: + const struct gpio_v2_line_event *const_type;
1: + char (*rectype)[0];
1: + struct gpio_v2_line_event *ptr;
1: + const struct gpio_v2_line_event *ptr_const;
1: + };
1: + struct gpio_v2_line_event buf[0];
1: + } events;
1: + atomic_t seqno;
1: + struct mutex config_mutex;
1: + struct line lines[0];
1: +};
1: +
1: +struct lineevent_state {
1: + struct gpio_device *gdev;
1: + const char *label;
1: + struct gpio_desc___2 *desc;
1: + u32 eflags;
1: + int irq;
1: + wait_queue_head_t wait;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpioevent_data *type;
1: + const struct gpioevent_data *const_type;
1: + char (*rectype)[0];
1: + struct gpioevent_data *ptr;
1: + const struct gpioevent_data *ptr_const;
1: + };
1: + struct gpioevent_data buf[16];
1: + } events;
1: + u64 timestamp;
1: +};
1: +
1: +struct gpio_chardev_data {
1: + struct gpio_device *gdev;
1: + wait_queue_head_t wait;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpio_v2_line_info_changed *type;
1: + const struct gpio_v2_line_info_changed *const_type;
1: + char (*rectype)[0];
1: + struct gpio_v2_line_info_changed *ptr;
1: + const struct gpio_v2_line_info_changed *ptr_const;
1: + };
1: + struct gpio_v2_line_info_changed buf[32];
1: + } events;
1: + struct notifier_block lineinfo_changed_nb;
1: + long unsigned int *watched_lines;
1: + atomic_t watch_abi_version;
1: +};
1: +
1: +struct class_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct class *, struct class_attribute *, char *);
1: + ssize_t (*store)(struct class *, struct class_attribute *, const char *, size_t);
1: +};
1: +
1: +struct gpiod_data {
1: + struct gpio_desc___2 *desc;
1: + struct mutex mutex;
1: + struct kernfs_node *value_kn;
1: + int irq;
1: + unsigned char irq_flags;
1: + bool direction_can_change;
1: +};
1: +
1: +enum dmi_field {
1: + DMI_NONE = 0,
1: + DMI_BIOS_VENDOR = 1,
1: + DMI_BIOS_VERSION = 2,
1: + DMI_BIOS_DATE = 3,
1: + DMI_BIOS_RELEASE = 4,
1: + DMI_EC_FIRMWARE_RELEASE = 5,
1: + DMI_SYS_VENDOR = 6,
1: + DMI_PRODUCT_NAME = 7,
1: + DMI_PRODUCT_VERSION = 8,
1: + DMI_PRODUCT_SERIAL = 9,
1: + DMI_PRODUCT_UUID = 10,
1: + DMI_PRODUCT_SKU = 11,
1: + DMI_PRODUCT_FAMILY = 12,
1: + DMI_BOARD_VENDOR = 13,
1: + DMI_BOARD_NAME = 14,
1: + DMI_BOARD_VERSION = 15,
1: + DMI_BOARD_SERIAL = 16,
1: + DMI_BOARD_ASSET_TAG = 17,
1: + DMI_CHASSIS_VENDOR = 18,
1: + DMI_CHASSIS_TYPE = 19,
1: + DMI_CHASSIS_VERSION = 20,
1: + DMI_CHASSIS_SERIAL = 21,
1: + DMI_CHASSIS_ASSET_TAG = 22,
1: + DMI_STRING_MAX = 23,
1: + DMI_OEM_STRING = 24,
1: +};
1: +
1: +struct dmi_strmatch {
1: + unsigned char slot: 7;
1: + unsigned char exact_match: 1;
1: + char substr[79];
1: +};
1: +
1: +struct dmi_system_id {
1: + int (*callback)(const struct dmi_system_id *);
1: + const char *ident;
1: + struct dmi_strmatch matches[4];
1: + void *driver_data;
1: +};
1: +
1: +typedef u8 acpi_adr_space_type;
1: +
1: +struct acpi_connection_info {
1: + u8 *connection;
1: + u16 length;
1: + u8 access_length;
1: +};
1: +
1: +struct acpi_resource_irq {
1: + u8 descriptor_length;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 interrupt_count;
1: + u8 interrupts[1];
1: +};
1: +
1: +struct acpi_resource_dma {
1: + u8 type;
1: + u8 bus_master;
1: + u8 transfer;
1: + u8 channel_count;
1: + u8 channels[1];
1: +};
1: +
1: +struct acpi_resource_start_dependent {
1: + u8 descriptor_length;
1: + u8 compatibility_priority;
1: + u8 performance_robustness;
1: +};
1: +
1: +struct acpi_resource_io {
1: + u8 io_decode;
1: + u8 alignment;
1: + u8 address_length;
1: + u16 minimum;
1: + u16 maximum;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_fixed_io {
1: + u16 address;
1: + u8 address_length;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_fixed_dma {
1: + u16 request_lines;
1: + u16 channels;
1: + u8 width;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_vendor {
1: + u16 byte_length;
1: + u8 byte_data[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_vendor_typed {
1: + u16 byte_length;
1: + u8 uuid_subtype;
1: + u8 uuid[16];
1: + u8 byte_data[1];
1: +};
1: +
1: +struct acpi_resource_end_tag {
1: + u8 checksum;
1: +};
1: +
1: +struct acpi_resource_memory24 {
1: + u8 write_protect;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 alignment;
1: + u16 address_length;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_memory32 {
1: + u8 write_protect;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 alignment;
1: + u32 address_length;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_fixed_memory32 {
1: + u8 write_protect;
1: + u32 address;
1: + u32 address_length;
1: +} __attribute__((packed));
1: +
1: +struct acpi_memory_attribute {
1: + u8 write_protect;
1: + u8 caching;
1: + u8 range_type;
1: + u8 translation;
1: +};
1: +
1: +struct acpi_io_attribute {
1: + u8 range_type;
1: + u8 translation;
1: + u8 translation_type;
1: + u8 reserved1;
1: +};
1: +
1: +union acpi_resource_attribute {
1: + struct acpi_memory_attribute mem;
1: + struct acpi_io_attribute io;
1: + u8 type_specific;
1: +};
1: +
1: +struct acpi_resource_label {
1: + u16 string_length;
1: + char *string_ptr;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_source {
1: + u8 index;
1: + u16 string_length;
1: + char *string_ptr;
1: +} __attribute__((packed));
1: +
1: +struct acpi_address16_attribute {
1: + u16 granularity;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 translation_offset;
1: + u16 address_length;
1: +};
1: +
1: +struct acpi_address32_attribute {
1: + u32 granularity;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 translation_offset;
1: + u32 address_length;
1: +};
1: +
1: +struct acpi_address64_attribute {
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: +};
1: +
1: +struct acpi_resource_address {
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: +};
1: +
1: +struct acpi_resource_address16 {
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address16_attribute address;
1: + struct acpi_resource_source resource_source;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_address32 {
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address32_attribute address;
1: + struct acpi_resource_source resource_source;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_address64 {
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address64_attribute address;
1: + struct acpi_resource_source resource_source;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_extended_address64 {
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + u8 revision_ID;
1: + struct acpi_address64_attribute address;
1: + u64 type_specific;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_extended_irq {
1: + u8 producer_consumer;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 interrupt_count;
1: + struct acpi_resource_source resource_source;
1: + u32 interrupts[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_generic_register {
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_gpio {
1: + u8 revision_id;
1: + u8 connection_type;
1: + u8 producer_consumer;
1: + u8 pin_config;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 io_restriction;
1: + u8 triggering;
1: + u8 polarity;
1: + u16 drive_strength;
1: + u16 debounce_timeout;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_common_serialbus {
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_i2c_serialbus {
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 access_mode;
1: + u16 slave_address;
1: + u32 connection_speed;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_spi_serialbus {
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 wire_mode;
1: + u8 device_polarity;
1: + u8 data_bit_length;
1: + u8 clock_phase;
1: + u8 clock_polarity;
1: + u16 device_selection;
1: + u32 connection_speed;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_uart_serialbus {
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 endian;
1: + u8 data_bits;
1: + u8 stop_bits;
1: + u8 flow_control;
1: + u8 parity;
1: + u8 lines_enabled;
1: + u16 rx_fifo_size;
1: + u16 tx_fifo_size;
1: + u32 default_baud_rate;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_pin_function {
1: + u8 revision_id;
1: + u8 pin_config;
1: + u8 shareable;
1: + u16 function_number;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_pin_config {
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_pin_group {
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + u16 *pin_table;
1: + struct acpi_resource_label resource_label;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_pin_group_function {
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u16 function_number;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + struct acpi_resource_label resource_source_label;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_resource_pin_group_config {
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + struct acpi_resource_label resource_source_label;
1: + u8 *vendor_data;
1: +} __attribute__((packed));
1: +
1: +union acpi_resource_data {
1: + struct acpi_resource_irq irq;
1: + struct acpi_resource_dma dma;
1: + struct acpi_resource_start_dependent start_dpf;
1: + struct acpi_resource_io io;
1: + struct acpi_resource_fixed_io fixed_io;
1: + struct acpi_resource_fixed_dma fixed_dma;
1: + struct acpi_resource_vendor vendor;
1: + struct acpi_resource_vendor_typed vendor_typed;
1: + struct acpi_resource_end_tag end_tag;
1: + struct acpi_resource_memory24 memory24;
1: + struct acpi_resource_memory32 memory32;
1: + struct acpi_resource_fixed_memory32 fixed_memory32;
1: + struct acpi_resource_address16 address16;
1: + struct acpi_resource_address32 address32;
1: + struct acpi_resource_address64 address64;
1: + struct acpi_resource_extended_address64 ext_address64;
1: + struct acpi_resource_extended_irq extended_irq;
1: + struct acpi_resource_generic_register generic_reg;
1: + struct acpi_resource_gpio gpio;
1: + struct acpi_resource_i2c_serialbus i2c_serial_bus;
1: + struct acpi_resource_spi_serialbus spi_serial_bus;
1: + struct acpi_resource_uart_serialbus uart_serial_bus;
1: + struct acpi_resource_common_serialbus common_serial_bus;
1: + struct acpi_resource_pin_function pin_function;
1: + struct acpi_resource_pin_config pin_config;
1: + struct acpi_resource_pin_group pin_group;
1: + struct acpi_resource_pin_group_function pin_group_function;
1: + struct acpi_resource_pin_group_config pin_group_config;
1: + struct acpi_resource_address address;
1: +};
1: +
1: +struct acpi_resource {
1: + u32 type;
1: + u32 length;
1: + union acpi_resource_data data;
1: +} __attribute__((packed));
1: +
1: +struct acpi_gpiolib_dmi_quirk {
1: + bool no_edge_events_on_boot;
1: + char *ignore_wake;
1: +};
1: +
1: +struct acpi_gpio_event {
1: + struct list_head node;
1: + acpi_handle handle;
1: + irq_handler_t handler;
1: + unsigned int pin;
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + bool irq_is_wake;
1: + bool irq_requested;
1: + struct gpio_desc___2 *desc;
1: +};
1: +
1: +struct acpi_gpio_connection {
1: + struct list_head node;
1: + unsigned int pin;
1: + struct gpio_desc___2 *desc;
1: +};
1: +
1: +struct acpi_gpio_chip {
1: + struct acpi_connection_info conn_info;
1: + struct list_head conns;
1: + struct mutex conn_lock;
1: + struct gpio_chip *chip;
1: + struct list_head events;
1: + struct list_head deferred_req_irqs_list_entry;
1: +};
1: +
1: +struct acpi_gpio_lookup {
1: + struct acpi_gpio_info info;
1: + int index;
1: + int pin_index;
1: + bool active_low;
1: + struct gpio_desc___2 *desc;
1: + int n;
1: +};
1: +
1: +struct bgpio_pdata {
1: + const char *label;
1: + int base;
1: + int ngpio;
1: +};
1: +
1: +enum pwm_polarity {
1: + PWM_POLARITY_NORMAL = 0,
1: + PWM_POLARITY_INVERSED = 1,
1: +};
1: +
1: +struct pwm_args {
1: + u64 period;
1: + enum pwm_polarity polarity;
1: +};
1: +
1: +struct pwm_state {
1: + u64 period;
1: + u64 duty_cycle;
1: + enum pwm_polarity polarity;
1: + bool enabled;
1: +};
1: +
1: +struct pwm_chip;
1: +
1: +struct pwm_device {
1: + const char *label;
1: + long unsigned int flags;
1: + unsigned int hwpwm;
1: + unsigned int pwm;
1: + struct pwm_chip *chip;
1: + void *chip_data;
1: + struct pwm_args args;
1: + struct pwm_state state;
1: + struct pwm_state last;
1: +};
1: +
1: +struct pwm_ops;
1: +
1: +struct pwm_chip {
1: + struct device *dev;
1: + const struct pwm_ops *ops;
1: + int base;
1: + unsigned int npwm;
1: + struct pwm_device * (*of_xlate)(struct pwm_chip *, const struct of_phandle_args *);
1: + unsigned int of_pwm_n_cells;
1: + struct list_head list;
1: + struct pwm_device *pwms;
1: +};
1: +
1: +struct pwm_capture;
1: +
1: +struct pwm_ops {
1: + int (*request)(struct pwm_chip *, struct pwm_device *);
1: + void (*free)(struct pwm_chip *, struct pwm_device *);
1: + int (*capture)(struct pwm_chip *, struct pwm_device *, struct pwm_capture *, long unsigned int);
1: + int (*apply)(struct pwm_chip *, struct pwm_device *, const struct pwm_state *);
1: + void (*get_state)(struct pwm_chip *, struct pwm_device *, struct pwm_state *);
1: + struct module *owner;
1: + int (*config)(struct pwm_chip *, struct pwm_device *, int, int);
1: + int (*set_polarity)(struct pwm_chip *, struct pwm_device *, enum pwm_polarity);
1: + int (*enable)(struct pwm_chip *, struct pwm_device *);
1: + void (*disable)(struct pwm_chip *, struct pwm_device *);
1: +};
1: +
1: +struct pwm_capture {
1: + unsigned int period;
1: + unsigned int duty_cycle;
1: +};
1: +
1: +struct mvebu_gpio_chip;
1: +
1: +struct mvebu_pwm {
1: + void *membase;
1: + long unsigned int clk_rate;
1: + struct gpio_desc *gpiod;
1: + struct pwm_chip chip;
1: + spinlock_t lock;
1: + struct mvebu_gpio_chip *mvchip;
1: + u32 blink_select;
1: + u32 blink_on_duration;
1: + u32 blink_off_duration;
1: +};
1: +
1: +struct mvebu_gpio_chip {
1: + struct gpio_chip chip;
1: + struct regmap *regs;
1: + u32 offset;
1: + struct regmap *percpu_regs;
1: + int irqbase;
1: + struct irq_domain *domain;
1: + int soc_variant;
1: + struct clk *clk;
1: + struct mvebu_pwm *mvpwm;
1: + u32 out_reg;
1: + u32 io_conf_reg;
1: + u32 blink_en_reg;
1: + u32 in_pol_reg;
1: + u32 edge_mask_regs[4];
1: + u32 level_mask_regs[4];
1: +};
1: +
1: +struct amba_id {
1: + unsigned int id;
1: + unsigned int mask;
1: + void *data;
1: +};
1: +
1: +struct amba_cs_uci_id {
1: + unsigned int devarch;
1: + unsigned int devarch_mask;
1: + unsigned int devtype;
1: + void *data;
1: +};
1: +
1: +struct amba_device {
1: + struct device dev;
1: + struct resource res;
1: + struct clk *pclk;
1: + struct device_dma_parameters dma_parms;
1: + unsigned int periphid;
1: + unsigned int cid;
1: + struct amba_cs_uci_id uci;
1: + unsigned int irq[9];
1: + char *driver_override;
1: +};
1: +
1: +struct amba_driver {
1: + struct device_driver drv;
1: + int (*probe)(struct amba_device *, const struct amba_id *);
1: + int (*remove)(struct amba_device *);
1: + void (*shutdown)(struct amba_device *);
1: + const struct amba_id *id_table;
1: +};
1: +
1: +struct pl061_context_save_regs {
1: + u8 gpio_data;
1: + u8 gpio_dir;
1: + u8 gpio_is;
1: + u8 gpio_ibe;
1: + u8 gpio_iev;
1: + u8 gpio_ie;
1: +};
1: +
1: +struct pl061 {
1: + raw_spinlock_t lock;
1: + void *base;
1: + struct gpio_chip gc;
1: + struct irq_chip irq_chip;
1: + int parent_irq;
1: + struct pl061_context_save_regs csave_regs;
1: +};
1: +
1: +enum rpi_firmware_property_tag {
1: + RPI_FIRMWARE_PROPERTY_END = 0,
1: + RPI_FIRMWARE_GET_FIRMWARE_REVISION = 1,
1: + RPI_FIRMWARE_SET_CURSOR_INFO = 32784,
1: + RPI_FIRMWARE_SET_CURSOR_STATE = 32785,
1: + RPI_FIRMWARE_GET_BOARD_MODEL = 65537,
1: + RPI_FIRMWARE_GET_BOARD_REVISION = 65538,
1: + RPI_FIRMWARE_GET_BOARD_MAC_ADDRESS = 65539,
1: + RPI_FIRMWARE_GET_BOARD_SERIAL = 65540,
1: + RPI_FIRMWARE_GET_ARM_MEMORY = 65541,
1: + RPI_FIRMWARE_GET_VC_MEMORY = 65542,
1: + RPI_FIRMWARE_GET_CLOCKS = 65543,
1: + RPI_FIRMWARE_GET_POWER_STATE = 131073,
1: + RPI_FIRMWARE_GET_TIMING = 131074,
1: + RPI_FIRMWARE_SET_POWER_STATE = 163841,
1: + RPI_FIRMWARE_GET_CLOCK_STATE = 196609,
1: + RPI_FIRMWARE_GET_CLOCK_RATE = 196610,
1: + RPI_FIRMWARE_GET_VOLTAGE = 196611,
1: + RPI_FIRMWARE_GET_MAX_CLOCK_RATE = 196612,
1: + RPI_FIRMWARE_GET_MAX_VOLTAGE = 196613,
1: + RPI_FIRMWARE_GET_TEMPERATURE = 196614,
1: + RPI_FIRMWARE_GET_MIN_CLOCK_RATE = 196615,
1: + RPI_FIRMWARE_GET_MIN_VOLTAGE = 196616,
1: + RPI_FIRMWARE_GET_TURBO = 196617,
1: + RPI_FIRMWARE_GET_MAX_TEMPERATURE = 196618,
1: + RPI_FIRMWARE_GET_STC = 196619,
1: + RPI_FIRMWARE_ALLOCATE_MEMORY = 196620,
1: + RPI_FIRMWARE_LOCK_MEMORY = 196621,
1: + RPI_FIRMWARE_UNLOCK_MEMORY = 196622,
1: + RPI_FIRMWARE_RELEASE_MEMORY = 196623,
1: + RPI_FIRMWARE_EXECUTE_CODE = 196624,
1: + RPI_FIRMWARE_EXECUTE_QPU = 196625,
1: + RPI_FIRMWARE_SET_ENABLE_QPU = 196626,
1: + RPI_FIRMWARE_GET_DISPMANX_RESOURCE_MEM_HANDLE = 196628,
1: + RPI_FIRMWARE_GET_EDID_BLOCK = 196640,
1: + RPI_FIRMWARE_GET_CUSTOMER_OTP = 196641,
1: + RPI_FIRMWARE_GET_DOMAIN_STATE = 196656,
1: + RPI_FIRMWARE_GET_THROTTLED = 196678,
1: + RPI_FIRMWARE_GET_CLOCK_MEASURED = 196679,
1: + RPI_FIRMWARE_NOTIFY_REBOOT = 196680,
1: + RPI_FIRMWARE_SET_CLOCK_STATE = 229377,
1: + RPI_FIRMWARE_SET_CLOCK_RATE = 229378,
1: + RPI_FIRMWARE_SET_VOLTAGE = 229379,
1: + RPI_FIRMWARE_SET_TURBO = 229385,
1: + RPI_FIRMWARE_SET_CUSTOMER_OTP = 229409,
1: + RPI_FIRMWARE_SET_DOMAIN_STATE = 229424,
1: + RPI_FIRMWARE_GET_GPIO_STATE = 196673,
1: + RPI_FIRMWARE_SET_GPIO_STATE = 229441,
1: + RPI_FIRMWARE_SET_SDHOST_CLOCK = 229442,
1: + RPI_FIRMWARE_GET_GPIO_CONFIG = 196675,
1: + RPI_FIRMWARE_SET_GPIO_CONFIG = 229443,
1: + RPI_FIRMWARE_GET_PERIPH_REG = 196677,
1: + RPI_FIRMWARE_SET_PERIPH_REG = 229445,
1: + RPI_FIRMWARE_GET_POE_HAT_VAL = 196681,
1: + RPI_FIRMWARE_SET_POE_HAT_VAL = 196688,
1: + RPI_FIRMWARE_NOTIFY_XHCI_RESET = 196696,
1: + RPI_FIRMWARE_FRAMEBUFFER_ALLOCATE = 262145,
1: + RPI_FIRMWARE_FRAMEBUFFER_BLANK = 262146,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PHYSICAL_WIDTH_HEIGHT = 262147,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_WIDTH_HEIGHT = 262148,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_DEPTH = 262149,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PIXEL_ORDER = 262150,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_ALPHA_MODE = 262151,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PITCH = 262152,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_OFFSET = 262153,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_OVERSCAN = 262154,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PALETTE = 262155,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_TOUCHBUF = 262159,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_GPIOVIRTBUF = 262160,
1: + RPI_FIRMWARE_FRAMEBUFFER_RELEASE = 294913,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PHYSICAL_WIDTH_HEIGHT = 278531,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_WIDTH_HEIGHT = 278532,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_DEPTH = 278533,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PIXEL_ORDER = 278534,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_ALPHA_MODE = 278535,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_OFFSET = 278537,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_OVERSCAN = 278538,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PALETTE = 278539,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VSYNC = 278542,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PHYSICAL_WIDTH_HEIGHT = 294915,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_WIDTH_HEIGHT = 294916,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_DEPTH = 294917,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PIXEL_ORDER = 294918,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_ALPHA_MODE = 294919,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_OFFSET = 294921,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_OVERSCAN = 294922,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PALETTE = 294923,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF = 294943,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF = 294944,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VSYNC = 294926,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_BACKLIGHT = 294927,
1: + RPI_FIRMWARE_VCHIQ_INIT = 294928,
1: + RPI_FIRMWARE_GET_COMMAND_LINE = 327681,
1: + RPI_FIRMWARE_GET_DMA_CHANNELS = 393217,
1: +};
1: +
1: +struct rpi_firmware;
1: +
1: +struct rpi_exp_gpio {
1: + struct gpio_chip gc;
1: + struct rpi_firmware *fw;
1: +};
1: +
1: +struct gpio_set_config {
1: + u32 gpio;
1: + u32 direction;
1: + u32 polarity;
1: + u32 term_en;
1: + u32 term_pull_up;
1: + u32 state;
1: +};
1: +
1: +struct gpio_get_config {
1: + u32 gpio;
1: + u32 direction;
1: + u32 polarity;
1: + u32 term_en;
1: + u32 term_pull_up;
1: +};
1: +
1: +struct gpio_get_set_state {
1: + u32 gpio;
1: + u32 state;
1: +};
1: +
1: +struct tegra_gpio_port {
1: + const char *name;
1: + unsigned int bank;
1: + unsigned int port;
1: + unsigned int pins;
1: +};
1: +
1: +struct tegra186_pin_range {
1: + unsigned int offset;
1: + const char *group;
1: +};
1: +
1: +struct tegra_gpio_soc {
1: + const struct tegra_gpio_port *ports;
1: + unsigned int num_ports;
1: + const char *name;
1: + unsigned int instance;
1: + const struct tegra186_pin_range *pin_ranges;
1: + unsigned int num_pin_ranges;
1: + const char *pinmux;
1: +};
1: +
1: +struct tegra_gpio {
1: + struct gpio_chip gpio;
1: + struct irq_chip intc;
1: + unsigned int num_irq;
1: + unsigned int *irq;
1: + const struct tegra_gpio_soc *soc;
1: + void *secure;
1: + void *base;
1: +};
1: +
1: +struct tegra_gpio_info;
1: +
1: +struct tegra_gpio_bank {
1: + unsigned int bank;
1: + unsigned int irq;
1: + spinlock_t lvl_lock[4];
1: + spinlock_t dbc_lock[4];
1: + u32 cnf[4];
1: + u32 out[4];
1: + u32 oe[4];
1: + u32 int_enb[4];
1: + u32 int_lvl[4];
1: + u32 wake_enb[4];
1: + u32 dbc_enb[4];
1: + u32 dbc_cnt[4];
1: + struct tegra_gpio_info *tgi;
1: +};
1: +
1: +struct tegra_gpio_soc_config;
1: +
1: +struct tegra_gpio_info {
1: + struct device *dev;
1: + void *regs;
1: + struct irq_domain *irq_domain;
1: + struct tegra_gpio_bank *bank_info;
1: + const struct tegra_gpio_soc_config *soc;
1: + struct gpio_chip gc;
1: + struct irq_chip ic;
1: + u32 bank_count;
1: +};
1: +
1: +struct tegra_gpio_soc_config {
1: + bool debounce_supported;
1: + u32 bank_stride;
1: + u32 upper_offset;
1: +};
1: +
1: +struct msix_entry {
1: + u32 vector;
1: + u16 entry;
1: +};
1: +
1: +struct thunderx_gpio;
1: +
1: +struct thunderx_line {
1: + struct thunderx_gpio *txgpio;
1: + unsigned int line;
1: + unsigned int fil_bits;
1: +};
1: +
1: +struct thunderx_gpio {
1: + struct gpio_chip chip;
1: + u8 *register_base;
1: + struct msix_entry *msix_entries;
1: + struct thunderx_line *line_entries;
1: + raw_spinlock_t lock;
1: + long unsigned int invert_mask[2];
1: + long unsigned int od_mask[2];
1: + int base_msi;
1: +};
1: +
1: +struct xgene_gpio {
1: + struct gpio_chip chip;
1: + void *base;
1: + spinlock_t lock;
1: + u32 set_dr_val[3];
1: +};
1: +
1: +enum {
1: + PWMF_REQUESTED = 1,
1: + PWMF_EXPORTED = 2,
1: +};
1: +
1: +struct pwm_lookup {
1: + struct list_head list;
1: + const char *provider;
1: + unsigned int index;
1: + const char *dev_id;
1: + const char *con_id;
1: + unsigned int period;
1: + enum pwm_polarity polarity;
1: + const char *module;
1: +};
1: +
1: +struct trace_event_raw_pwm {
1: + struct trace_entry ent;
1: + struct pwm_device *pwm;
1: + u64 period;
1: + u64 duty_cycle;
1: + enum pwm_polarity polarity;
1: + bool enabled;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_pwm {};
1: +
1: +typedef void (*btf_trace_pwm_apply)(void *, struct pwm_device *, const struct pwm_state *);
1: +
1: +typedef void (*btf_trace_pwm_get)(void *, struct pwm_device *, const struct pwm_state *);
1: +
1: +struct pwm_export {
1: + struct device child;
1: + struct pwm_device *pwm;
1: + struct mutex lock;
1: + struct pwm_state suspend;
1: +};
1: +
1: +enum {
1: + pci_channel_io_normal = 1,
1: + pci_channel_io_frozen = 2,
1: + pci_channel_io_perm_failure = 3,
1: +};
1: +
1: +struct pci_sriov {
1: + int pos;
1: + int nres;
1: + u32 cap;
1: + u16 ctrl;
1: + u16 total_VFs;
1: + u16 initial_VFs;
1: + u16 num_VFs;
1: + u16 offset;
1: + u16 stride;
1: + u16 vf_device;
1: + u32 pgsz;
1: + u8 link;
1: + u8 max_VF_buses;
1: + u16 driver_max_VFs;
1: + struct pci_dev *dev;
1: + struct pci_dev *self;
1: + u32 class;
1: + u8 hdr_type;
1: + u16 subsystem_vendor;
1: + u16 subsystem_device;
1: + resource_size_t barsz[6];
1: + bool drivers_autoprobe;
1: +};
1: +
1: +struct pci_bus_resource {
1: + struct list_head list;
1: + struct resource *res;
1: + unsigned int flags;
1: +};
1: +
1: +typedef u64 pci_bus_addr_t;
1: +
1: +struct pci_bus_region {
1: + pci_bus_addr_t start;
1: + pci_bus_addr_t end;
1: +};
1: +
1: +enum pci_fixup_pass {
1: + pci_fixup_early = 0,
1: + pci_fixup_header = 1,
1: + pci_fixup_final = 2,
1: + pci_fixup_enable = 3,
1: + pci_fixup_resume = 4,
1: + pci_fixup_suspend = 5,
1: + pci_fixup_resume_early = 6,
1: + pci_fixup_suspend_late = 7,
1: +};
1: +
1: +struct hotplug_slot_ops;
1: +
1: +struct hotplug_slot {
1: + const struct hotplug_slot_ops *ops;
1: + struct list_head slot_list;
1: + struct pci_slot *pci_slot;
1: + struct module *owner;
1: + const char *mod_name;
1: +};
1: +
1: +enum pci_dev_flags {
1: + PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG = 1,
1: + PCI_DEV_FLAGS_NO_D3 = 2,
1: + PCI_DEV_FLAGS_ASSIGNED = 4,
1: + PCI_DEV_FLAGS_ACS_ENABLED_QUIRK = 8,
1: + PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS = 32,
1: + PCI_DEV_FLAGS_NO_BUS_RESET = 64,
1: + PCI_DEV_FLAGS_NO_PM_RESET = 128,
1: + PCI_DEV_FLAGS_VPD_REF_F0 = 256,
1: + PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT = 512,
1: + PCI_DEV_FLAGS_NO_FLR_RESET = 1024,
1: + PCI_DEV_FLAGS_NO_RELAXED_ORDERING = 2048,
1: +};
1: +
1: +enum pci_bus_flags {
1: + PCI_BUS_FLAGS_NO_MSI = 1,
1: + PCI_BUS_FLAGS_NO_MMRBC = 2,
1: + PCI_BUS_FLAGS_NO_AERSID = 4,
1: + PCI_BUS_FLAGS_NO_EXTCFG = 8,
1: +};
1: +
1: +enum pci_bus_speed {
1: + PCI_SPEED_33MHz = 0,
1: + PCI_SPEED_66MHz = 1,
1: + PCI_SPEED_66MHz_PCIX = 2,
1: + PCI_SPEED_100MHz_PCIX = 3,
1: + PCI_SPEED_133MHz_PCIX = 4,
1: + PCI_SPEED_66MHz_PCIX_ECC = 5,
1: + PCI_SPEED_100MHz_PCIX_ECC = 6,
1: + PCI_SPEED_133MHz_PCIX_ECC = 7,
1: + PCI_SPEED_66MHz_PCIX_266 = 9,
1: + PCI_SPEED_100MHz_PCIX_266 = 10,
1: + PCI_SPEED_133MHz_PCIX_266 = 11,
1: + AGP_UNKNOWN = 12,
1: + AGP_1X = 13,
1: + AGP_2X = 14,
1: + AGP_4X = 15,
1: + AGP_8X = 16,
1: + PCI_SPEED_66MHz_PCIX_533 = 17,
1: + PCI_SPEED_100MHz_PCIX_533 = 18,
1: + PCI_SPEED_133MHz_PCIX_533 = 19,
1: + PCIE_SPEED_2_5GT = 20,
1: + PCIE_SPEED_5_0GT = 21,
1: + PCIE_SPEED_8_0GT = 22,
1: + PCIE_SPEED_16_0GT = 23,
1: + PCIE_SPEED_32_0GT = 24,
1: + PCI_SPEED_UNKNOWN = 255,
1: +};
1: +
1: +enum {
1: + PCI_REASSIGN_ALL_RSRC = 1,
1: + PCI_REASSIGN_ALL_BUS = 2,
1: + PCI_PROBE_ONLY = 4,
1: + PCI_CAN_SKIP_ISA_ALIGN = 8,
1: + PCI_ENABLE_PROC_DOMAINS = 16,
1: + PCI_COMPAT_DOMAIN_0 = 32,
1: + PCI_SCAN_ALL_PCIE_DEVS = 64,
1: +};
1: +
1: +enum pcie_bus_config_types {
1: + PCIE_BUS_TUNE_OFF = 0,
1: + PCIE_BUS_DEFAULT = 1,
1: + PCIE_BUS_SAFE = 2,
1: + PCIE_BUS_PERFORMANCE = 3,
1: + PCIE_BUS_PEER2PEER = 4,
1: +};
1: +
1: +struct hotplug_slot_ops {
1: + int (*enable_slot)(struct hotplug_slot *);
1: + int (*disable_slot)(struct hotplug_slot *);
1: + int (*set_attention_status)(struct hotplug_slot *, u8);
1: + int (*hardware_test)(struct hotplug_slot *, u32);
1: + int (*get_power_status)(struct hotplug_slot *, u8 *);
1: + int (*get_attention_status)(struct hotplug_slot *, u8 *);
1: + int (*get_latch_status)(struct hotplug_slot *, u8 *);
1: + int (*get_adapter_status)(struct hotplug_slot *, u8 *);
1: + int (*reset_slot)(struct hotplug_slot *, int);
1: +};
1: +
1: +enum pci_bar_type {
1: + pci_bar_unknown = 0,
1: + pci_bar_io = 1,
1: + pci_bar_mem32 = 2,
1: + pci_bar_mem64 = 3,
1: +};
1: +
1: +struct pci_domain_busn_res {
1: + struct list_head list;
1: + struct resource res;
1: + int domain_nr;
1: +};
1: +
1: +struct bus_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct bus_type *, char *);
1: + ssize_t (*store)(struct bus_type *, const char *, size_t);
1: +};
1: +
1: +enum pcie_reset_state {
1: + pcie_deassert_reset = 1,
1: + pcie_warm_reset = 2,
1: + pcie_hot_reset = 3,
1: +};
1: +
1: +enum pcie_link_width {
1: + PCIE_LNK_WIDTH_RESRV = 0,
1: + PCIE_LNK_X1 = 1,
1: + PCIE_LNK_X2 = 2,
1: + PCIE_LNK_X4 = 4,
1: + PCIE_LNK_X8 = 8,
1: + PCIE_LNK_X12 = 12,
1: + PCIE_LNK_X16 = 16,
1: + PCIE_LNK_X32 = 32,
1: + PCIE_LNK_WIDTH_UNKNOWN = 255,
1: +};
1: +
1: +struct pci_cap_saved_data {
1: + u16 cap_nr;
1: + bool cap_extended;
1: + unsigned int size;
1: + u32 data[0];
1: +};
1: +
1: +struct pci_cap_saved_state {
1: + struct hlist_node next;
1: + struct pci_cap_saved_data cap;
1: +};
1: +
1: +typedef int (*arch_set_vga_state_t)(struct pci_dev *, bool, unsigned int, u32);
1: +
1: +struct pci_platform_pm_ops {
1: + bool (*bridge_d3)(struct pci_dev *);
1: + bool (*is_manageable)(struct pci_dev *);
1: + int (*set_state)(struct pci_dev *, pci_power_t);
1: + pci_power_t (*get_state)(struct pci_dev *);
1: + void (*refresh_state)(struct pci_dev *);
1: + pci_power_t (*choose_state)(struct pci_dev *);
1: + int (*set_wakeup)(struct pci_dev *, bool);
1: + bool (*need_resume)(struct pci_dev *);
1: +};
1: +
1: +struct pci_pme_device {
1: + struct list_head list;
1: + struct pci_dev *dev;
1: +};
1: +
1: +struct pci_saved_state {
1: + u32 config_space[16];
1: + struct pci_cap_saved_data cap[0];
1: +};
1: +
1: +struct pci_devres {
1: + unsigned int enabled: 1;
1: + unsigned int pinned: 1;
1: + unsigned int orig_intx: 1;
1: + unsigned int restore_intx: 1;
1: + unsigned int mwi: 1;
1: + u32 region_mask;
1: +};
1: +
1: +struct driver_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct device_driver *, char *);
1: + ssize_t (*store)(struct device_driver *, const char *, size_t);
1: +};
1: +
1: +enum pci_ers_result {
1: + PCI_ERS_RESULT_NONE = 1,
1: + PCI_ERS_RESULT_CAN_RECOVER = 2,
1: + PCI_ERS_RESULT_NEED_RESET = 3,
1: + PCI_ERS_RESULT_DISCONNECT = 4,
1: + PCI_ERS_RESULT_RECOVERED = 5,
1: + PCI_ERS_RESULT_NO_AER_DRIVER = 6,
1: +};
1: +
1: +enum dev_dma_attr {
1: + DEV_DMA_NOT_SUPPORTED = 0,
1: + DEV_DMA_NON_COHERENT = 1,
1: + DEV_DMA_COHERENT = 2,
1: +};
1: +
1: +struct pcie_device {
1: + int irq;
1: + struct pci_dev *port;
1: + u32 service;
1: + void *priv_data;
1: + struct device device;
1: +};
1: +
1: +struct pcie_port_service_driver {
1: + const char *name;
1: + int (*probe)(struct pcie_device *);
1: + void (*remove)(struct pcie_device *);
1: + int (*suspend)(struct pcie_device *);
1: + int (*resume_noirq)(struct pcie_device *);
1: + int (*resume)(struct pcie_device *);
1: + int (*runtime_suspend)(struct pcie_device *);
1: + int (*runtime_resume)(struct pcie_device *);
1: + void (*error_resume)(struct pci_dev *);
1: + int port_type;
1: + u32 service;
1: + struct device_driver driver;
1: +};
1: +
1: +struct pci_dynid {
1: + struct list_head node;
1: + struct pci_device_id id;
1: +};
1: +
1: +struct drv_dev_and_id {
1: + struct pci_driver *drv;
1: + struct pci_dev *dev;
1: + const struct pci_device_id *id;
1: +};
1: +
1: +enum pci_mmap_state {
1: + pci_mmap_io = 0,
1: + pci_mmap_mem = 1,
1: +};
1: +
1: +enum pci_mmap_api {
1: + PCI_MMAP_SYSFS = 0,
1: + PCI_MMAP_PROCFS = 1,
1: +};
1: +
1: +struct pci_vpd_ops;
1: +
1: +struct pci_vpd {
1: + const struct pci_vpd_ops *ops;
1: + struct bin_attribute *attr;
1: + struct mutex lock;
1: + unsigned int len;
1: + u16 flag;
1: + u8 cap;
1: + unsigned int busy: 1;
1: + unsigned int valid: 1;
1: +};
1: +
1: +struct pci_vpd_ops {
1: + ssize_t (*read)(struct pci_dev *, loff_t, size_t, void *);
1: + ssize_t (*write)(struct pci_dev *, loff_t, size_t, const void *);
1: + int (*set_size)(struct pci_dev *, size_t);
1: +};
1: +
1: +struct pci_dev_resource {
1: + struct list_head list;
1: + struct resource *res;
1: + struct pci_dev *dev;
1: + resource_size_t start;
1: + resource_size_t end;
1: + resource_size_t add_size;
1: + resource_size_t min_align;
1: + long unsigned int flags;
1: +};
1: +
1: +enum release_type {
1: + leaf_only = 0,
1: + whole_subtree = 1,
1: +};
1: +
1: +enum enable_type {
1: + undefined = 4294967295,
1: + user_disabled = 0,
1: + auto_disabled = 1,
1: + user_enabled = 2,
1: + auto_enabled = 3,
1: +};
1: +
1: +struct portdrv_service_data {
1: + struct pcie_port_service_driver *drv;
1: + struct device *dev;
1: + u32 service;
1: +};
1: +
1: +typedef int (*pcie_pm_callback_t)(struct pcie_device *);
1: +
1: +struct aspm_latency {
1: + u32 l0s;
1: + u32 l1;
1: +};
1: +
1: +struct pcie_link_state {
1: + struct pci_dev *pdev;
1: + struct pci_dev *downstream;
1: + struct pcie_link_state *root;
1: + struct pcie_link_state *parent;
1: + struct list_head sibling;
1: + u32 aspm_support: 7;
1: + u32 aspm_enabled: 7;
1: + u32 aspm_capable: 7;
1: + u32 aspm_default: 7;
1: + char: 4;
1: + u32 aspm_disable: 7;
1: + u32 clkpm_capable: 1;
1: + u32 clkpm_enabled: 1;
1: + u32 clkpm_default: 1;
1: + u32 clkpm_disable: 1;
1: + struct aspm_latency latency_up;
1: + struct aspm_latency latency_dw;
1: + struct aspm_latency acceptable[8];
1: +};
1: +
1: +enum {
1: + CPER_SEV_RECOVERABLE = 0,
1: + CPER_SEV_FATAL = 1,
1: + CPER_SEV_CORRECTED = 2,
1: + CPER_SEV_INFORMATIONAL = 3,
1: +};
1: +
1: +struct aer_stats {
1: + u64 dev_cor_errs[16];
1: + u64 dev_fatal_errs[27];
1: + u64 dev_nonfatal_errs[27];
1: + u64 dev_total_cor_errs;
1: + u64 dev_total_fatal_errs;
1: + u64 dev_total_nonfatal_errs;
1: + u64 rootport_total_cor_errs;
1: + u64 rootport_total_fatal_errs;
1: + u64 rootport_total_nonfatal_errs;
1: +};
1: +
1: +struct aer_header_log_regs {
1: + unsigned int dw0;
1: + unsigned int dw1;
1: + unsigned int dw2;
1: + unsigned int dw3;
1: +};
1: +
1: +struct aer_capability_regs {
1: + u32 header;
1: + u32 uncor_status;
1: + u32 uncor_mask;
1: + u32 uncor_severity;
1: + u32 cor_status;
1: + u32 cor_mask;
1: + u32 cap_control;
1: + struct aer_header_log_regs header_log;
1: + u32 root_command;
1: + u32 root_status;
1: + u16 cor_err_source;
1: + u16 uncor_err_source;
1: +};
1: +
1: +struct aer_err_info {
1: + struct pci_dev *dev[5];
1: + int error_dev_num;
1: + unsigned int id: 16;
1: + unsigned int severity: 2;
1: + unsigned int __pad1: 5;
1: + unsigned int multi_error_valid: 1;
1: + unsigned int first_error: 5;
1: + unsigned int __pad2: 2;
1: + unsigned int tlp_header_valid: 1;
1: + unsigned int status;
1: + unsigned int mask;
1: + struct aer_header_log_regs tlp;
1: +};
1: +
1: +struct aer_err_source {
1: + unsigned int status;
1: + unsigned int id;
1: +};
1: +
1: +struct aer_rpc {
1: + struct pci_dev *rpd;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct aer_err_source *type;
1: + const struct aer_err_source *const_type;
1: + char (*rectype)[0];
1: + struct aer_err_source *ptr;
1: + const struct aer_err_source *ptr_const;
1: + };
1: + struct aer_err_source buf[128];
1: + } aer_fifo;
1: +};
1: +
1: +struct aer_recover_entry {
1: + u8 bus;
1: + u8 devfn;
1: + u16 domain;
1: + int severity;
1: + struct aer_capability_regs *regs;
1: +};
1: +
1: +struct pcie_pme_service_data {
1: + spinlock_t lock;
1: + struct pcie_device *srv;
1: + struct work_struct work;
1: + bool noirq;
1: +};
1: +
1: +struct pci_slot_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct pci_slot *, char *);
1: + ssize_t (*store)(struct pci_slot *, const char *, size_t);
1: +};
1: +
1: +struct acpi_buffer {
1: + acpi_size length;
1: + void *pointer;
1: +};
1: +
1: +struct acpi_bus_type {
1: + struct list_head list;
1: + const char *name;
1: + bool (*match)(struct device *);
1: + struct acpi_device * (*find_companion)(struct device *);
1: + void (*setup)(struct device *);
1: + void (*cleanup)(struct device *);
1: +};
1: +
1: +enum pm_qos_flags_status {
1: + PM_QOS_FLAGS_UNDEFINED = 4294967295,
1: + PM_QOS_FLAGS_NONE = 0,
1: + PM_QOS_FLAGS_SOME = 1,
1: + PM_QOS_FLAGS_ALL = 2,
1: +};
1: +
1: +struct hpx_type0 {
1: + u32 revision;
1: + u8 cache_line_size;
1: + u8 latency_timer;
1: + u8 enable_serr;
1: + u8 enable_perr;
1: +};
1: +
1: +struct hpx_type1 {
1: + u32 revision;
1: + u8 max_mem_read;
1: + u8 avg_max_split;
1: + u16 tot_max_split;
1: +};
1: +
1: +struct hpx_type2 {
1: + u32 revision;
1: + u32 unc_err_mask_and;
1: + u32 unc_err_mask_or;
1: + u32 unc_err_sever_and;
1: + u32 unc_err_sever_or;
1: + u32 cor_err_mask_and;
1: + u32 cor_err_mask_or;
1: + u32 adv_err_cap_and;
1: + u32 adv_err_cap_or;
1: + u16 pci_exp_devctl_and;
1: + u16 pci_exp_devctl_or;
1: + u16 pci_exp_lnkctl_and;
1: + u16 pci_exp_lnkctl_or;
1: + u32 sec_unc_err_sever_and;
1: + u32 sec_unc_err_sever_or;
1: + u32 sec_unc_err_mask_and;
1: + u32 sec_unc_err_mask_or;
1: +};
1: +
1: +struct hpx_type3 {
1: + u16 device_type;
1: + u16 function_type;
1: + u16 config_space_location;
1: + u16 pci_exp_cap_id;
1: + u16 pci_exp_cap_ver;
1: + u16 pci_exp_vendor_id;
1: + u16 dvsec_id;
1: + u16 dvsec_rev;
1: + u16 match_offset;
1: + u32 match_mask_and;
1: + u32 match_value;
1: + u16 reg_offset;
1: + u32 reg_mask_and;
1: + u32 reg_mask_or;
1: +};
1: +
1: +enum hpx_type3_dev_type {
1: + HPX_TYPE_ENDPOINT = 1,
1: + HPX_TYPE_LEG_END = 2,
1: + HPX_TYPE_RC_END = 4,
1: + HPX_TYPE_RC_EC = 8,
1: + HPX_TYPE_ROOT_PORT = 16,
1: + HPX_TYPE_UPSTREAM = 32,
1: + HPX_TYPE_DOWNSTREAM = 64,
1: + HPX_TYPE_PCI_BRIDGE = 128,
1: + HPX_TYPE_PCIE_BRIDGE = 256,
1: +};
1: +
1: +enum hpx_type3_fn_type {
1: + HPX_FN_NORMAL = 1,
1: + HPX_FN_SRIOV_PHYS = 2,
1: + HPX_FN_SRIOV_VIRT = 4,
1: +};
1: +
1: +enum hpx_type3_cfg_loc {
1: + HPX_CFG_PCICFG = 0,
1: + HPX_CFG_PCIE_CAP = 1,
1: + HPX_CFG_PCIE_CAP_EXT = 2,
1: + HPX_CFG_VEND_CAP = 3,
1: + HPX_CFG_DVSEC = 4,
1: + HPX_CFG_MAX = 5,
1: +};
1: +
1: +struct of_bus;
1: +
1: +struct of_pci_range_parser {
1: + struct device_node *node;
1: + struct of_bus *bus;
1: + const __be32 *range;
1: + const __be32 *end;
1: + int na;
1: + int ns;
1: + int pna;
1: + bool dma;
1: +};
1: +
1: +struct of_pci_range {
1: + union {
1: + u64 pci_addr;
1: + u64 bus_addr;
1: + };
1: + u64 cpu_addr;
1: + u64 size;
1: + u32 flags;
1: +};
1: +
1: +struct pci_fixup {
1: + u16 vendor;
1: + u16 device;
1: + u32 class;
1: + unsigned int class_shift;
1: + int hook_offset;
1: +};
1: +
1: +enum {
1: + NVME_REG_CAP = 0,
1: + NVME_REG_VS = 8,
1: + NVME_REG_INTMS = 12,
1: + NVME_REG_INTMC = 16,
1: + NVME_REG_CC = 20,
1: + NVME_REG_CSTS = 28,
1: + NVME_REG_NSSR = 32,
1: + NVME_REG_AQA = 36,
1: + NVME_REG_ASQ = 40,
1: + NVME_REG_ACQ = 48,
1: + NVME_REG_CMBLOC = 56,
1: + NVME_REG_CMBSZ = 60,
1: + NVME_REG_BPINFO = 64,
1: + NVME_REG_BPRSEL = 68,
1: + NVME_REG_BPMBL = 72,
1: + NVME_REG_PMRCAP = 3584,
1: + NVME_REG_PMRCTL = 3588,
1: + NVME_REG_PMRSTS = 3592,
1: + NVME_REG_PMREBS = 3596,
1: + NVME_REG_PMRSWTP = 3600,
1: + NVME_REG_DBS = 4096,
1: +};
1: +
1: +enum {
1: + NVME_CC_ENABLE = 1,
1: + NVME_CC_EN_SHIFT = 0,
1: + NVME_CC_CSS_SHIFT = 4,
1: + NVME_CC_MPS_SHIFT = 7,
1: + NVME_CC_AMS_SHIFT = 11,
1: + NVME_CC_SHN_SHIFT = 14,
1: + NVME_CC_IOSQES_SHIFT = 16,
1: + NVME_CC_IOCQES_SHIFT = 20,
1: + NVME_CC_CSS_NVM = 0,
1: + NVME_CC_CSS_CSI = 96,
1: + NVME_CC_CSS_MASK = 112,
1: + NVME_CC_AMS_RR = 0,
1: + NVME_CC_AMS_WRRU = 2048,
1: + NVME_CC_AMS_VS = 14336,
1: + NVME_CC_SHN_NONE = 0,
1: + NVME_CC_SHN_NORMAL = 16384,
1: + NVME_CC_SHN_ABRUPT = 32768,
1: + NVME_CC_SHN_MASK = 49152,
1: + NVME_CC_IOSQES = 393216,
1: + NVME_CC_IOCQES = 4194304,
1: + NVME_CAP_CSS_NVM = 1,
1: + NVME_CAP_CSS_CSI = 64,
1: + NVME_CSTS_RDY = 1,
1: + NVME_CSTS_CFS = 2,
1: + NVME_CSTS_NSSRO = 16,
1: + NVME_CSTS_PP = 32,
1: + NVME_CSTS_SHST_NORMAL = 0,
1: + NVME_CSTS_SHST_OCCUR = 4,
1: + NVME_CSTS_SHST_CMPLT = 8,
1: + NVME_CSTS_SHST_MASK = 12,
1: +};
1: +
1: +enum {
1: + NVME_AEN_BIT_NS_ATTR = 8,
1: + NVME_AEN_BIT_FW_ACT = 9,
1: + NVME_AEN_BIT_ANA_CHANGE = 11,
1: + NVME_AEN_BIT_DISC_CHANGE = 31,
1: +};
1: +
1: +enum {
1: + SWITCHTEC_GAS_MRPC_OFFSET = 0,
1: + SWITCHTEC_GAS_TOP_CFG_OFFSET = 4096,
1: + SWITCHTEC_GAS_SW_EVENT_OFFSET = 6144,
1: + SWITCHTEC_GAS_SYS_INFO_OFFSET = 8192,
1: + SWITCHTEC_GAS_FLASH_INFO_OFFSET = 8704,
1: + SWITCHTEC_GAS_PART_CFG_OFFSET = 16384,
1: + SWITCHTEC_GAS_NTB_OFFSET = 65536,
1: + SWITCHTEC_GAS_PFF_CSR_OFFSET = 1261568,
1: +};
1: +
1: +enum {
1: + SWITCHTEC_NTB_REG_INFO_OFFSET = 0,
1: + SWITCHTEC_NTB_REG_CTRL_OFFSET = 16384,
1: + SWITCHTEC_NTB_REG_DBMSG_OFFSET = 409600,
1: +};
1: +
1: +struct nt_partition_info {
1: + u32 xlink_enabled;
1: + u32 target_part_low;
1: + u32 target_part_high;
1: + u32 reserved;
1: +};
1: +
1: +struct ntb_info_regs {
1: + u8 partition_count;
1: + u8 partition_id;
1: + u16 reserved1;
1: + u64 ep_map;
1: + u16 requester_id;
1: + u16 reserved2;
1: + u32 reserved3[4];
1: + struct nt_partition_info ntp_info[48];
1: +} __attribute__((packed));
1: +
1: +struct ntb_ctrl_regs {
1: + u32 partition_status;
1: + u32 partition_op;
1: + u32 partition_ctrl;
1: + u32 bar_setup;
1: + u32 bar_error;
1: + u16 lut_table_entries;
1: + u16 lut_table_offset;
1: + u32 lut_error;
1: + u16 req_id_table_size;
1: + u16 req_id_table_offset;
1: + u32 req_id_error;
1: + u32 reserved1[7];
1: + struct {
1: + u32 ctl;
1: + u32 win_size;
1: + u64 xlate_addr;
1: + } bar_entry[6];
1: + struct {
1: + u32 win_size;
1: + u32 reserved[3];
1: + } bar_ext_entry[6];
1: + u32 reserved2[192];
1: + u32 req_id_table[512];
1: + u32 reserved3[256];
1: + u64 lut_entry[512];
1: +};
1: +
1: +struct pci_dev_reset_methods {
1: + u16 vendor;
1: + u16 device;
1: + int (*reset)(struct pci_dev *, int);
1: +};
1: +
1: +struct acs_on_id {
1: + short unsigned int vendor;
1: + short unsigned int device;
1: +};
1: +
1: +struct pci_dev_acs_enabled {
1: + u16 vendor;
1: + u16 device;
1: + int (*acs_enabled)(struct pci_dev *, u16);
1: +};
1: +
1: +struct pci_dev_acs_ops {
1: + u16 vendor;
1: + u16 device;
1: + int (*enable_acs)(struct pci_dev *);
1: + int (*disable_acs_redir)(struct pci_dev *);
1: +};
1: +
1: +struct slot {
1: + u8 number;
1: + unsigned int devfn;
1: + struct pci_bus *bus;
1: + struct pci_dev *dev;
1: + unsigned int latch_status: 1;
1: + unsigned int adapter_status: 1;
1: + unsigned int extracting;
1: + struct hotplug_slot hotplug_slot;
1: + struct list_head slot_list;
1: +};
1: +
1: +struct cpci_hp_controller_ops {
1: + int (*query_enum)();
1: + int (*enable_irq)();
1: + int (*disable_irq)();
1: + int (*check_irq)(void *);
1: + int (*hardware_test)(struct slot *, u32);
1: + u8 (*get_power)(struct slot *);
1: + int (*set_power)(struct slot *, int);
1: +};
1: +
1: +struct cpci_hp_controller {
1: + unsigned int irq;
1: + long unsigned int irq_flags;
1: + char *devname;
1: + void *dev_id;
1: + char *name;
1: + struct cpci_hp_controller_ops *ops;
1: +};
1: +
1: +struct controller {
1: + struct pcie_device *pcie;
1: + u32 slot_cap;
1: + unsigned int inband_presence_disabled: 1;
1: + u16 slot_ctrl;
1: + struct mutex ctrl_lock;
1: + long unsigned int cmd_started;
1: + unsigned int cmd_busy: 1;
1: + wait_queue_head_t queue;
1: + atomic_t pending_events;
1: + unsigned int notification_enabled: 1;
1: + unsigned int power_fault_detected;
1: + struct task_struct *poll_thread;
1: + u8 state;
1: + struct mutex state_lock;
1: + struct delayed_work button_work;
1: + struct hotplug_slot hotplug_slot;
1: + struct rw_semaphore reset_lock;
1: + unsigned int ist_running;
1: + int request_result;
1: + wait_queue_head_t requester;
1: +};
1: +
1: +struct acpiphp_slot;
1: +
1: +struct slot___2 {
1: + struct hotplug_slot hotplug_slot;
1: + struct acpiphp_slot *acpi_slot;
1: + unsigned int sun;
1: +};
1: +
1: +struct acpiphp_slot {
1: + struct list_head node;
1: + struct pci_bus *bus;
1: + struct list_head funcs;
1: + struct slot___2 *slot;
1: + u8 device;
1: + u32 flags;
1: +};
1: +
1: +struct acpiphp_attention_info {
1: + int (*set_attn)(struct hotplug_slot *, u8);
1: + int (*get_attn)(struct hotplug_slot *, u8 *);
1: + struct module *owner;
1: +};
1: +
1: +struct acpiphp_context;
1: +
1: +struct acpiphp_bridge {
1: + struct list_head list;
1: + struct list_head slots;
1: + struct kref ref;
1: + struct acpiphp_context *context;
1: + int nr_slots;
1: + struct pci_bus *pci_bus;
1: + struct pci_dev *pci_dev;
1: + bool is_going_away;
1: +};
1: +
1: +struct acpiphp_func {
1: + struct acpiphp_bridge *parent;
1: + struct acpiphp_slot *slot;
1: + struct list_head sibling;
1: + u8 function;
1: + u32 flags;
1: +};
1: +
1: +struct acpiphp_context {
1: + struct acpi_hotplug_context hp;
1: + struct acpiphp_func func;
1: + struct acpiphp_bridge *bridge;
1: + unsigned int refcount;
1: +};
1: +
1: +struct acpiphp_root_context {
1: + struct acpi_hotplug_context hp;
1: + struct acpiphp_bridge *root_bridge;
1: +};
1: +
1: +struct pci_bridge_emul_conf {
1: + __le16 vendor;
1: + __le16 device;
1: + __le16 command;
1: + __le16 status;
1: + __le32 class_revision;
1: + u8 cache_line_size;
1: + u8 latency_timer;
1: + u8 header_type;
1: + u8 bist;
1: + __le32 bar[2];
1: + u8 primary_bus;
1: + u8 secondary_bus;
1: + u8 subordinate_bus;
1: + u8 secondary_latency_timer;
1: + u8 iobase;
1: + u8 iolimit;
1: + __le16 secondary_status;
1: + __le16 membase;
1: + __le16 memlimit;
1: + __le16 pref_mem_base;
1: + __le16 pref_mem_limit;
1: + __le32 prefbaseupper;
1: + __le32 preflimitupper;
1: + __le16 iobaseupper;
1: + __le16 iolimitupper;
1: + u8 capabilities_pointer;
1: + u8 reserve[3];
1: + __le32 romaddr;
1: + u8 intline;
1: + u8 intpin;
1: + __le16 bridgectrl;
1: +};
1: +
1: +struct pci_bridge_emul_pcie_conf {
1: + u8 cap_id;
1: + u8 next;
1: + __le16 cap;
1: + __le32 devcap;
1: + __le16 devctl;
1: + __le16 devsta;
1: + __le32 lnkcap;
1: + __le16 lnkctl;
1: + __le16 lnksta;
1: + __le32 slotcap;
1: + __le16 slotctl;
1: + __le16 slotsta;
1: + __le16 rootctl;
1: + __le16 rsvd;
1: + __le32 rootsta;
1: + __le32 devcap2;
1: + __le16 devctl2;
1: + __le16 devsta2;
1: + __le32 lnkcap2;
1: + __le16 lnkctl2;
1: + __le16 lnksta2;
1: + __le32 slotcap2;
1: + __le16 slotctl2;
1: + __le16 slotsta2;
1: +};
1: +
1: +typedef enum {
1: + PCI_BRIDGE_EMUL_HANDLED = 0,
1: + PCI_BRIDGE_EMUL_NOT_HANDLED = 1,
1: +} pci_bridge_emul_read_status_t;
1: +
1: +struct pci_bridge_emul;
1: +
1: +struct pci_bridge_emul_ops {
1: + pci_bridge_emul_read_status_t (*read_base)(struct pci_bridge_emul *, int, u32 *);
1: + pci_bridge_emul_read_status_t (*read_pcie)(struct pci_bridge_emul *, int, u32 *);
1: + void (*write_base)(struct pci_bridge_emul *, int, u32, u32, u32);
1: + void (*write_pcie)(struct pci_bridge_emul *, int, u32, u32, u32);
1: +};
1: +
1: +struct pci_bridge_reg_behavior;
1: +
1: +struct pci_bridge_emul {
1: + struct pci_bridge_emul_conf conf;
1: + struct pci_bridge_emul_pcie_conf pcie_conf;
1: + struct pci_bridge_emul_ops *ops;
1: + struct pci_bridge_reg_behavior *pci_regs_behavior;
1: + struct pci_bridge_reg_behavior *pcie_cap_regs_behavior;
1: + void *data;
1: + bool has_pcie;
1: +};
1: +
1: +struct pci_bridge_reg_behavior {
1: + u32 ro;
1: + u32 rw;
1: + u32 w1c;
1: +};
1: +
1: +enum {
1: + PCI_BRIDGE_EMUL_NO_PREFETCHABLE_BAR = 1,
1: +};
1: +
1: +enum dmi_device_type {
1: + DMI_DEV_TYPE_ANY = 0,
1: + DMI_DEV_TYPE_OTHER = 1,
1: + DMI_DEV_TYPE_UNKNOWN = 2,
1: + DMI_DEV_TYPE_VIDEO = 3,
1: + DMI_DEV_TYPE_SCSI = 4,
1: + DMI_DEV_TYPE_ETHERNET = 5,
1: + DMI_DEV_TYPE_TOKENRING = 6,
1: + DMI_DEV_TYPE_SOUND = 7,
1: + DMI_DEV_TYPE_PATA = 8,
1: + DMI_DEV_TYPE_SATA = 9,
1: + DMI_DEV_TYPE_SAS = 10,
1: + DMI_DEV_TYPE_IPMI = 4294967295,
1: + DMI_DEV_TYPE_OEM_STRING = 4294967294,
1: + DMI_DEV_TYPE_DEV_ONBOARD = 4294967293,
1: + DMI_DEV_TYPE_DEV_SLOT = 4294967292,
1: +};
1: +
1: +struct dmi_device {
1: + struct list_head list;
1: + int type;
1: + const char *name;
1: + void *device_data;
1: +};
1: +
1: +struct dmi_dev_onboard {
1: + struct dmi_device dev;
1: + int instance;
1: + int segment;
1: + int bus;
1: + int devfn;
1: +};
1: +
1: +enum smbios_attr_enum {
1: + SMBIOS_ATTR_NONE = 0,
1: + SMBIOS_ATTR_LABEL_SHOW = 1,
1: + SMBIOS_ATTR_INSTANCE_SHOW = 2,
1: +};
1: +
1: +enum acpi_attr_enum {
1: + ACPI_ATTR_LABEL_SHOW = 0,
1: + ACPI_ATTR_INDEX_SHOW = 1,
1: +};
1: +
1: +struct pci_epf_device_id {
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +enum pci_interrupt_pin {
1: + PCI_INTERRUPT_UNKNOWN = 0,
1: + PCI_INTERRUPT_INTA = 1,
1: + PCI_INTERRUPT_INTB = 2,
1: + PCI_INTERRUPT_INTC = 3,
1: + PCI_INTERRUPT_INTD = 4,
1: +};
1: +
1: +enum pci_barno {
1: + BAR_0 = 0,
1: + BAR_1 = 1,
1: + BAR_2 = 2,
1: + BAR_3 = 3,
1: + BAR_4 = 4,
1: + BAR_5 = 5,
1: +};
1: +
1: +struct pci_epf_header {
1: + u16 vendorid;
1: + u16 deviceid;
1: + u8 revid;
1: + u8 progif_code;
1: + u8 subclass_code;
1: + u8 baseclass_code;
1: + u8 cache_line_size;
1: + u16 subsys_vendor_id;
1: + u16 subsys_id;
1: + enum pci_interrupt_pin interrupt_pin;
1: +};
1: +
1: +struct pci_epf;
1: +
1: +struct pci_epf_ops {
1: + int (*bind)(struct pci_epf *);
1: + void (*unbind)(struct pci_epf *);
1: +};
1: +
1: +struct pci_epf_bar {
1: + dma_addr_t phys_addr;
1: + void *addr;
1: + size_t size;
1: + enum pci_barno barno;
1: + int flags;
1: +};
1: +
1: +struct pci_epc;
1: +
1: +struct pci_epf_driver;
1: +
1: +struct pci_epf {
1: + struct device dev;
1: + const char *name;
1: + struct pci_epf_header *header;
1: + struct pci_epf_bar bar[6];
1: + u8 msi_interrupts;
1: + u16 msix_interrupts;
1: + u8 func_no;
1: + struct pci_epc *epc;
1: + struct pci_epf_driver *driver;
1: + struct list_head list;
1: + struct notifier_block nb;
1: + struct mutex lock;
1: +};
1: +
1: +struct pci_epf_driver {
1: + int (*probe)(struct pci_epf *);
1: + int (*remove)(struct pci_epf *);
1: + struct device_driver driver;
1: + struct pci_epf_ops *ops;
1: + struct module *owner;
1: + struct list_head epf_group;
1: + const struct pci_epf_device_id *id_table;
1: +};
1: +
1: +struct pci_epc_ops;
1: +
1: +struct pci_epc_mem;
1: +
1: +struct pci_epc {
1: + struct device dev;
1: + struct list_head pci_epf;
1: + const struct pci_epc_ops *ops;
1: + struct pci_epc_mem **windows;
1: + struct pci_epc_mem *mem;
1: + unsigned int num_windows;
1: + u8 max_functions;
1: + struct config_group *group;
1: + struct mutex lock;
1: + long unsigned int function_num_map;
1: + struct atomic_notifier_head notifier;
1: +};
1: +
1: +enum pci_epc_irq_type {
1: + PCI_EPC_IRQ_UNKNOWN = 0,
1: + PCI_EPC_IRQ_LEGACY = 1,
1: + PCI_EPC_IRQ_MSI = 2,
1: + PCI_EPC_IRQ_MSIX = 3,
1: +};
1: +
1: +struct pci_epc_features;
1: +
1: +struct pci_epc_ops {
1: + int (*write_header)(struct pci_epc *, u8, struct pci_epf_header *);
1: + int (*set_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: + void (*clear_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: + int (*map_addr)(struct pci_epc *, u8, phys_addr_t, u64, size_t);
1: + void (*unmap_addr)(struct pci_epc *, u8, phys_addr_t);
1: + int (*set_msi)(struct pci_epc *, u8, u8);
1: + int (*get_msi)(struct pci_epc *, u8);
1: + int (*set_msix)(struct pci_epc *, u8, u16, enum pci_barno, u32);
1: + int (*get_msix)(struct pci_epc *, u8);
1: + int (*raise_irq)(struct pci_epc *, u8, enum pci_epc_irq_type, u16);
1: + int (*start)(struct pci_epc *);
1: + void (*stop)(struct pci_epc *);
1: + const struct pci_epc_features * (*get_features)(struct pci_epc *, u8);
1: + struct module *owner;
1: +};
1: +
1: +struct pci_epc_features {
1: + unsigned int linkup_notifier: 1;
1: + unsigned int core_init_notifier: 1;
1: + unsigned int msi_capable: 1;
1: + unsigned int msix_capable: 1;
1: + u8 reserved_bar;
1: + u8 bar_fixed_64bit;
1: + u64 bar_fixed_size[6];
1: + size_t align;
1: +};
1: +
1: +struct pci_epc_mem_window {
1: + phys_addr_t phys_base;
1: + size_t size;
1: + size_t page_size;
1: +};
1: +
1: +struct pci_epc_mem {
1: + struct pci_epc_mem_window window;
1: + long unsigned int *bitmap;
1: + int pages;
1: + struct mutex lock;
1: +};
1: +
1: +struct pci_epf_group {
1: + struct config_group group;
1: + struct pci_epf *epf;
1: + int index;
1: +};
1: +
1: +struct pci_epc_group {
1: + struct config_group group;
1: + struct pci_epc *epc;
1: + bool start;
1: +};
1: +
1: +enum pci_notify_event {
1: + CORE_INIT = 0,
1: + LINK_UP = 1,
1: +};
1: +
1: +struct advk_pcie {
1: + struct platform_device *pdev;
1: + void *base;
1: + struct irq_domain *irq_domain;
1: + struct irq_chip irq_chip;
1: + struct irq_domain *msi_domain;
1: + struct irq_domain *msi_inner_domain;
1: + struct irq_chip msi_bottom_irq_chip;
1: + struct irq_chip msi_irq_chip;
1: + struct msi_domain_info msi_domain_info;
1: + long unsigned int msi_used[1];
1: + struct mutex msi_used_lock;
1: + u16 msi_msg;
1: + int link_gen;
1: + struct pci_bridge_emul bridge;
1: + struct gpio_desc *reset_gpio;
1: + struct phy *phy;
1: +};
1: +
1: +struct tegra_msi {
1: + struct msi_controller chip;
1: + long unsigned int used[4];
1: + struct irq_domain *domain;
1: + struct mutex lock;
1: + void *virt;
1: + dma_addr_t phys;
1: + int irq;
1: +};
1: +
1: +struct tegra_pcie_port_soc {
1: + struct {
1: + u8 turnoff_bit;
1: + u8 ack_bit;
1: + } pme;
1: +};
1: +
1: +struct tegra_pcie_soc {
1: + unsigned int num_ports;
1: + const struct tegra_pcie_port_soc *ports;
1: + unsigned int msi_base_shift;
1: + long unsigned int afi_pex2_ctrl;
1: + u32 pads_pll_ctl;
1: + u32 tx_ref_sel;
1: + u32 pads_refclk_cfg0;
1: + u32 pads_refclk_cfg1;
1: + u32 update_fc_threshold;
1: + bool has_pex_clkreq_en;
1: + bool has_pex_bias_ctrl;
1: + bool has_intr_prsnt_sense;
1: + bool has_cml_clk;
1: + bool has_gen2;
1: + bool force_pca_enable;
1: + bool program_uphy;
1: + bool update_clamp_threshold;
1: + bool program_deskew_time;
1: + bool update_fc_timer;
1: + bool has_cache_bars;
1: + struct {
1: + struct {
1: + u32 rp_ectl_2_r1;
1: + u32 rp_ectl_4_r1;
1: + u32 rp_ectl_5_r1;
1: + u32 rp_ectl_6_r1;
1: + u32 rp_ectl_2_r2;
1: + u32 rp_ectl_4_r2;
1: + u32 rp_ectl_5_r2;
1: + u32 rp_ectl_6_r2;
1: + } regs;
1: + bool enable;
1: + } ectl;
1: +};
1: +
1: +struct tegra_pcie {
1: + struct device *dev;
1: + void *pads;
1: + void *afi;
1: + void *cfg;
1: + int irq;
1: + struct resource cs;
1: + struct clk *pex_clk;
1: + struct clk *afi_clk;
1: + struct clk *pll_e;
1: + struct clk *cml_clk;
1: + struct reset_control *pex_rst;
1: + struct reset_control *afi_rst;
1: + struct reset_control *pcie_xrst;
1: + bool legacy_phy;
1: + struct phy *phy;
1: + struct tegra_msi msi;
1: + struct list_head ports;
1: + u32 xbar_config;
1: + struct regulator_bulk_data *supplies;
1: + unsigned int num_supplies;
1: + const struct tegra_pcie_soc *soc;
1: + struct dentry *debugfs;
1: +};
1: +
1: +struct tegra_pcie_port {
1: + struct tegra_pcie *pcie;
1: + struct device_node *np;
1: + struct list_head list;
1: + struct resource regs;
1: + void *base;
1: + unsigned int index;
1: + unsigned int lanes;
1: + struct phy **phys;
1: + struct gpio_desc *reset_gpio;
1: +};
1: +
1: +struct xgene_msi;
1: +
1: +struct xgene_msi_group {
1: + struct xgene_msi *msi;
1: + int gic_irq;
1: + u32 msi_grp;
1: +};
1: +
1: +struct xgene_msi {
1: + struct device_node *node;
1: + struct irq_domain *inner_domain;
1: + struct irq_domain *msi_domain;
1: + u64 msi_addr;
1: + void *msi_regs;
1: + long unsigned int *bitmap;
1: + struct mutex bitmap_lock;
1: + struct xgene_msi_group *msi_groups;
1: + int num_cpus;
1: +};
1: +
1: +struct rockchip_pcie {
1: + void *reg_base;
1: + void *apb_base;
1: + bool legacy_phy;
1: + struct phy *phys[4];
1: + struct reset_control *core_rst;
1: + struct reset_control *mgmt_rst;
1: + struct reset_control *mgmt_sticky_rst;
1: + struct reset_control *pipe_rst;
1: + struct reset_control *pm_rst;
1: + struct reset_control *aclk_rst;
1: + struct reset_control *pclk_rst;
1: + struct clk *aclk_pcie;
1: + struct clk *aclk_perf_pcie;
1: + struct clk *hclk_pcie;
1: + struct clk *clk_pcie_pm;
1: + struct regulator *vpcie12v;
1: + struct regulator *vpcie3v3;
1: + struct regulator *vpcie1v8;
1: + struct regulator *vpcie0v9;
1: + struct gpio_desc *ep_gpio;
1: + u32 lanes;
1: + u8 lanes_map;
1: + int link_gen;
1: + struct device *dev;
1: + struct irq_domain *irq_domain;
1: + int offset;
1: + void *msg_region;
1: + phys_addr_t msg_bus_addr;
1: + bool is_rc;
1: + struct resource *mem_res;
1: +};
1: +
1: +struct rockchip_pcie_ep {
1: + struct rockchip_pcie rockchip;
1: + struct pci_epc *epc;
1: + u32 max_regions;
1: + long unsigned int ob_region_map;
1: + phys_addr_t *ob_addr;
1: + phys_addr_t irq_phys_addr;
1: + void *irq_cpu_addr;
1: + u64 irq_pci_addr;
1: + u8 irq_pci_fn;
1: + u8 irq_pending;
1: +};
1: +
1: +struct mtk_pcie_port;
1: +
1: +struct mtk_pcie_soc {
1: + bool need_fix_class_id;
1: + bool need_fix_device_id;
1: + unsigned int device_id;
1: + struct pci_ops *ops;
1: + int (*startup)(struct mtk_pcie_port *);
1: + int (*setup_irq)(struct mtk_pcie_port *, struct device_node *);
1: +};
1: +
1: +struct mtk_pcie;
1: +
1: +struct mtk_pcie_port {
1: + void *base;
1: + struct list_head list;
1: + struct mtk_pcie *pcie;
1: + struct reset_control *reset;
1: + struct clk *sys_ck;
1: + struct clk *ahb_ck;
1: + struct clk *axi_ck;
1: + struct clk *aux_ck;
1: + struct clk *obff_ck;
1: + struct clk *pipe_ck;
1: + struct phy *phy;
1: + u32 slot;
1: + int irq;
1: + struct irq_domain *irq_domain;
1: + struct irq_domain *inner_domain;
1: + struct irq_domain *msi_domain;
1: + struct mutex lock;
1: + long unsigned int msi_irq_in_use[1];
1: +};
1: +
1: +struct mtk_pcie {
1: + struct device *dev;
1: + void *base;
1: + struct clk *free_ck;
1: + struct list_head ports;
1: + const struct mtk_pcie_soc *soc;
1: +};
1: +
1: +enum {
1: + RGR1_SW_INIT_1 = 0,
1: + EXT_CFG_INDEX = 1,
1: + EXT_CFG_DATA = 2,
1: +};
1: +
1: +enum pcie_type {
1: + GENERIC = 0,
1: + BCM7278 = 1,
1: + BCM2711 = 2,
1: +};
1: +
1: +struct brcm_pcie;
1: +
1: +struct pcie_cfg_data {
1: + const int *offsets;
1: + const enum pcie_type type;
1: + void (*perst_set)(struct brcm_pcie *, u32);
1: + void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: +};
1: +
1: +struct brcm_msi;
1: +
1: +struct brcm_pcie {
1: + struct device *dev;
1: + void *base;
1: + struct clk *clk;
1: + struct device_node *np;
1: + bool ssc;
1: + int gen;
1: + u64 msi_target_addr;
1: + struct brcm_msi *msi;
1: + const int *reg_offsets;
1: + enum pcie_type type;
1: + struct reset_control *rescal;
1: + int num_memc;
1: + u64 memc_size[3];
1: + u32 hw_rev;
1: + void (*perst_set)(struct brcm_pcie *, u32);
1: + void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: +};
1: +
1: +struct brcm_msi {
1: + struct device *dev;
1: + void *base;
1: + struct device_node *np;
1: + struct irq_domain *msi_domain;
1: + struct irq_domain *inner_domain;
1: + struct mutex lock;
1: + u64 target_addr;
1: + int irq;
1: + long unsigned int used;
1: + bool legacy;
1: + int legacy_shift;
1: + int nr;
1: + void *intr_base;
1: +};
1: +
1: +enum dw_pcie_region_type {
1: + DW_PCIE_REGION_UNKNOWN = 0,
1: + DW_PCIE_REGION_INBOUND = 1,
1: + DW_PCIE_REGION_OUTBOUND = 2,
1: +};
1: +
1: +struct pcie_port;
1: +
1: +struct dw_pcie_host_ops {
1: + int (*host_init)(struct pcie_port *);
1: + void (*set_num_vectors)(struct pcie_port *);
1: + int (*msi_host_init)(struct pcie_port *);
1: +};
1: +
1: +struct pcie_port {
1: + u64 cfg0_base;
1: + void *va_cfg0_base;
1: + u32 cfg0_size;
1: + resource_size_t io_base;
1: + phys_addr_t io_bus_addr;
1: + u32 io_size;
1: + int irq;
1: + const struct dw_pcie_host_ops *ops;
1: + int msi_irq;
1: + struct irq_domain *irq_domain;
1: + struct irq_domain *msi_domain;
1: + u16 msi_msg;
1: + dma_addr_t msi_data;
1: + struct irq_chip *msi_irq_chip;
1: + u32 num_vectors;
1: + u32 irq_mask[8];
1: + struct pci_host_bridge *bridge;
1: + raw_spinlock_t lock;
1: + long unsigned int msi_irq_in_use[4];
1: +};
1: +
1: +enum dw_pcie_as_type {
1: + DW_PCIE_AS_UNKNOWN = 0,
1: + DW_PCIE_AS_MEM = 1,
1: + DW_PCIE_AS_IO = 2,
1: +};
1: +
1: +struct dw_pcie_ep;
1: +
1: +struct dw_pcie_ep_ops {
1: + void (*ep_init)(struct dw_pcie_ep *);
1: + int (*raise_irq)(struct dw_pcie_ep *, u8, enum pci_epc_irq_type, u16);
1: + const struct pci_epc_features * (*get_features)(struct dw_pcie_ep *);
1: + unsigned int (*func_conf_select)(struct dw_pcie_ep *, u8);
1: +};
1: +
1: +struct dw_pcie_ep {
1: + struct pci_epc *epc;
1: + struct list_head func_list;
1: + const struct dw_pcie_ep_ops *ops;
1: + phys_addr_t phys_base;
1: + size_t addr_size;
1: + size_t page_size;
1: + u8 bar_to_atu[6];
1: + phys_addr_t *outbound_addr;
1: + long unsigned int *ib_window_map;
1: + long unsigned int *ob_window_map;
1: + u32 num_ib_windows;
1: + u32 num_ob_windows;
1: + void *msi_mem;
1: + phys_addr_t msi_mem_phys;
1: + struct pci_epf_bar *epf_bar[6];
1: +};
1: +
1: +struct dw_pcie;
1: +
1: +struct dw_pcie_ops {
1: + u64 (*cpu_addr_fixup)(struct dw_pcie *, u64);
1: + u32 (*read_dbi)(struct dw_pcie *, void *, u32, size_t);
1: + void (*write_dbi)(struct dw_pcie *, void *, u32, size_t, u32);
1: + void (*write_dbi2)(struct dw_pcie *, void *, u32, size_t, u32);
1: + int (*link_up)(struct dw_pcie *);
1: + int (*start_link)(struct dw_pcie *);
1: + void (*stop_link)(struct dw_pcie *);
1: +};
1: +
1: +struct dw_pcie {
1: + struct device *dev;
1: + void *dbi_base;
1: + void *dbi_base2;
1: + void *atu_base;
1: + u32 num_viewport;
1: + u8 iatu_unroll_enabled;
1: + struct pcie_port pp;
1: + struct dw_pcie_ep ep;
1: + const struct dw_pcie_ops *ops;
1: + unsigned int version;
1: + int num_lanes;
1: + int link_gen;
1: + u8 n_fts[2];
1: +};
1: +
1: +struct pci_epf_msix_tbl {
1: + u64 msg_addr;
1: + u32 msg_data;
1: + u32 vector_ctrl;
1: +};
1: +
1: +struct dw_pcie_ep_func {
1: + struct list_head list;
1: + u8 func_no;
1: + u8 msi_cap;
1: + u8 msix_cap;
1: +};
1: +
1: +enum dw_pcie_device_mode {
1: + DW_PCIE_UNKNOWN_TYPE = 0,
1: + DW_PCIE_EP_TYPE = 1,
1: + DW_PCIE_LEG_EP_TYPE = 2,
1: + DW_PCIE_RC_TYPE = 3,
1: +};
1: +
1: +struct dw_plat_pcie {
1: + struct dw_pcie *pci;
1: + struct regmap *regmap;
1: + enum dw_pcie_device_mode mode;
1: +};
1: +
1: +struct dw_plat_pcie_of_data {
1: + enum dw_pcie_device_mode mode;
1: +};
1: +
1: +struct qcom_pcie_resources_2_1_0 {
1: + struct clk_bulk_data clks[5];
1: + struct reset_control *pci_reset;
1: + struct reset_control *axi_reset;
1: + struct reset_control *ahb_reset;
1: + struct reset_control *por_reset;
1: + struct reset_control *phy_reset;
1: + struct reset_control *ext_reset;
1: + struct regulator_bulk_data supplies[3];
1: +};
1: +
1: +struct qcom_pcie_resources_1_0_0 {
1: + struct clk *iface;
1: + struct clk *aux;
1: + struct clk *master_bus;
1: + struct clk *slave_bus;
1: + struct reset_control *core;
1: + struct regulator *vdda;
1: +};
1: +
1: +struct qcom_pcie_resources_2_3_2 {
1: + struct clk *aux_clk;
1: + struct clk *master_clk;
1: + struct clk *slave_clk;
1: + struct clk *cfg_clk;
1: + struct clk *pipe_clk;
1: + struct regulator_bulk_data supplies[2];
1: +};
1: +
1: +struct qcom_pcie_resources_2_4_0 {
1: + struct clk_bulk_data clks[4];
1: + int num_clks;
1: + struct reset_control *axi_m_reset;
1: + struct reset_control *axi_s_reset;
1: + struct reset_control *pipe_reset;
1: + struct reset_control *axi_m_vmid_reset;
1: + struct reset_control *axi_s_xpu_reset;
1: + struct reset_control *parf_reset;
1: + struct reset_control *phy_reset;
1: + struct reset_control *axi_m_sticky_reset;
1: + struct reset_control *pipe_sticky_reset;
1: + struct reset_control *pwr_reset;
1: + struct reset_control *ahb_reset;
1: + struct reset_control *phy_ahb_reset;
1: +};
1: +
1: +struct qcom_pcie_resources_2_3_3 {
1: + struct clk *iface;
1: + struct clk *axi_m_clk;
1: + struct clk *axi_s_clk;
1: + struct clk *ahb_clk;
1: + struct clk *aux_clk;
1: + struct reset_control *rst[7];
1: +};
1: +
1: +struct qcom_pcie_resources_2_7_0 {
1: + struct clk_bulk_data clks[6];
1: + struct regulator_bulk_data supplies[2];
1: + struct reset_control *pci_reset;
1: + struct clk *pipe_clk;
1: +};
1: +
1: +union qcom_pcie_resources {
1: + struct qcom_pcie_resources_1_0_0 v1_0_0;
1: + struct qcom_pcie_resources_2_1_0 v2_1_0;
1: + struct qcom_pcie_resources_2_3_2 v2_3_2;
1: + struct qcom_pcie_resources_2_3_3 v2_3_3;
1: + struct qcom_pcie_resources_2_4_0 v2_4_0;
1: + struct qcom_pcie_resources_2_7_0 v2_7_0;
1: +};
1: +
1: +struct qcom_pcie;
1: +
1: +struct qcom_pcie_ops {
1: + int (*get_resources)(struct qcom_pcie *);
1: + int (*init)(struct qcom_pcie *);
1: + int (*post_init)(struct qcom_pcie *);
1: + void (*deinit)(struct qcom_pcie *);
1: + void (*post_deinit)(struct qcom_pcie *);
1: + void (*ltssm_enable)(struct qcom_pcie *);
1: +};
1: +
1: +struct qcom_pcie {
1: + struct dw_pcie *pci;
1: + void *parf;
1: + void *elbi;
1: + union qcom_pcie_resources res;
1: + struct phy *phy;
1: + struct gpio_desc *reset;
1: + const struct qcom_pcie_ops *ops;
1: +};
1: +
1: +struct armada8k_pcie {
1: + struct dw_pcie *pci;
1: + struct clk *clk;
1: + struct clk *clk_reg;
1: + struct phy *phy[4];
1: + unsigned int phy_count;
1: +};
1: +
1: +struct kirin_pcie {
1: + struct dw_pcie *pci;
1: + void *apb_base;
1: + void *phy_base;
1: + struct regmap *crgctrl;
1: + struct regmap *sysctrl;
1: + struct clk *apb_sys_clk;
1: + struct clk *apb_phy_clk;
1: + struct clk *phy_ref_clk;
1: + struct clk *pcie_aclk;
1: + struct clk *pcie_aux_clk;
1: + int gpio_id_reset;
1: +};
1: +
1: +struct histb_pcie {
1: + struct dw_pcie *pci;
1: + struct clk *aux_clk;
1: + struct clk *pipe_clk;
1: + struct clk *sys_clk;
1: + struct clk *bus_clk;
1: + struct phy *phy;
1: + struct reset_control *soft_reset;
1: + struct reset_control *sys_reset;
1: + struct reset_control *bus_reset;
1: + void *ctrl;
1: + int reset_gpio;
1: + struct regulator *vpcie;
1: +};
1: +
1: +enum pcie_data_rate {
1: + PCIE_GEN1 = 0,
1: + PCIE_GEN2 = 1,
1: + PCIE_GEN3 = 2,
1: + PCIE_GEN4 = 3,
1: +};
1: +
1: +struct meson_pcie_clk_res {
1: + struct clk *clk;
1: + struct clk *port_clk;
1: + struct clk *general_clk;
1: +};
1: +
1: +struct meson_pcie_rc_reset {
1: + struct reset_control *port;
1: + struct reset_control *apb;
1: +};
1: +
1: +struct meson_pcie {
1: + struct dw_pcie pci;
1: + void *cfg_base;
1: + struct meson_pcie_clk_res clk_res;
1: + struct meson_pcie_rc_reset mrst;
1: + struct gpio_desc *reset_gpio;
1: + struct phy *phy;
1: +};
1: +
1: +struct al_pcie_acpi {
1: + void *dbi_base;
1: +};
1: +
1: +struct thunder_pem_pci {
1: + u32 ea_entry[3];
1: + void *pem_reg_base;
1: +};
1: +
1: +struct xgene_pcie_port {
1: + struct device_node *node;
1: + struct device *dev;
1: + struct clk *clk;
1: + void *csr_base;
1: + void *cfg_base;
1: + long unsigned int cfg_addr;
1: + bool link_up;
1: + u32 version;
1: +};
1: +
1: +struct rio_device_id {
1: + __u16 did;
1: + __u16 vid;
1: + __u16 asm_did;
1: + __u16 asm_vid;
1: +};
1: +
1: +typedef s32 dma_cookie_t;
1: +
1: +enum dma_status {
1: + DMA_COMPLETE = 0,
1: + DMA_IN_PROGRESS = 1,
1: + DMA_PAUSED = 2,
1: + DMA_ERROR = 3,
1: + DMA_OUT_OF_ORDER = 4,
1: +};
1: +
1: +enum dma_transaction_type {
1: + DMA_MEMCPY = 0,
1: + DMA_XOR = 1,
1: + DMA_PQ = 2,
1: + DMA_XOR_VAL = 3,
1: + DMA_PQ_VAL = 4,
1: + DMA_MEMSET = 5,
1: + DMA_MEMSET_SG = 6,
1: + DMA_INTERRUPT = 7,
1: + DMA_PRIVATE = 8,
1: + DMA_ASYNC_TX = 9,
1: + DMA_SLAVE = 10,
1: + DMA_CYCLIC = 11,
1: + DMA_INTERLEAVE = 12,
1: + DMA_COMPLETION_NO_ORDER = 13,
1: + DMA_REPEAT = 14,
1: + DMA_LOAD_EOT = 15,
1: + DMA_TX_TYPE_END = 16,
1: +};
1: +
1: +enum dma_transfer_direction {
1: + DMA_MEM_TO_MEM = 0,
1: + DMA_MEM_TO_DEV = 1,
1: + DMA_DEV_TO_MEM = 2,
1: + DMA_DEV_TO_DEV = 3,
1: + DMA_TRANS_NONE = 4,
1: +};
1: +
1: +struct data_chunk {
1: + size_t size;
1: + size_t icg;
1: + size_t dst_icg;
1: + size_t src_icg;
1: +};
1: +
1: +struct dma_interleaved_template {
1: + dma_addr_t src_start;
1: + dma_addr_t dst_start;
1: + enum dma_transfer_direction dir;
1: + bool src_inc;
1: + bool dst_inc;
1: + bool src_sgl;
1: + bool dst_sgl;
1: + size_t numf;
1: + size_t frame_size;
1: + struct data_chunk sgl[0];
1: +};
1: +
1: +enum dma_ctrl_flags {
1: + DMA_PREP_INTERRUPT = 1,
1: + DMA_CTRL_ACK = 2,
1: + DMA_PREP_PQ_DISABLE_P = 4,
1: + DMA_PREP_PQ_DISABLE_Q = 8,
1: + DMA_PREP_CONTINUE = 16,
1: + DMA_PREP_FENCE = 32,
1: + DMA_CTRL_REUSE = 64,
1: + DMA_PREP_CMD = 128,
1: + DMA_PREP_REPEAT = 256,
1: + DMA_PREP_LOAD_EOT = 512,
1: +};
1: +
1: +enum sum_check_bits {
1: + SUM_CHECK_P = 0,
1: + SUM_CHECK_Q = 1,
1: +};
1: +
1: +enum sum_check_flags {
1: + SUM_CHECK_P_RESULT = 1,
1: + SUM_CHECK_Q_RESULT = 2,
1: +};
1: +
1: +typedef struct {
1: + long unsigned int bits[1];
1: +} dma_cap_mask_t;
1: +
1: +enum dma_desc_metadata_mode {
1: + DESC_METADATA_NONE = 0,
1: + DESC_METADATA_CLIENT = 1,
1: + DESC_METADATA_ENGINE = 2,
1: +};
1: +
1: +struct dma_chan_percpu {
1: + long unsigned int memcpy_count;
1: + long unsigned int bytes_transferred;
1: +};
1: +
1: +struct dma_router {
1: + struct device *dev;
1: + void (*route_free)(struct device *, void *);
1: +};
1: +
1: +struct dma_device;
1: +
1: +struct dma_chan_dev;
1: +
1: +struct dma_chan {
1: + struct dma_device *device;
1: + struct device *slave;
1: + dma_cookie_t cookie;
1: + dma_cookie_t completed_cookie;
1: + int chan_id;
1: + struct dma_chan_dev *dev;
1: + const char *name;
1: + char *dbg_client_name;
1: + struct list_head device_node;
1: + struct dma_chan_percpu *local;
1: + int client_count;
1: + int table_count;
1: + struct dma_router *router;
1: + void *route_data;
1: + void *private;
1: +};
1: +
1: +typedef bool (*dma_filter_fn)(struct dma_chan *, void *);
1: +
1: +struct dma_slave_map;
1: +
1: +struct dma_filter {
1: + dma_filter_fn fn;
1: + int mapcnt;
1: + const struct dma_slave_map *map;
1: +};
1: +
1: +enum dmaengine_alignment {
1: + DMAENGINE_ALIGN_1_BYTE = 0,
1: + DMAENGINE_ALIGN_2_BYTES = 1,
1: + DMAENGINE_ALIGN_4_BYTES = 2,
1: + DMAENGINE_ALIGN_8_BYTES = 3,
1: + DMAENGINE_ALIGN_16_BYTES = 4,
1: + DMAENGINE_ALIGN_32_BYTES = 5,
1: + DMAENGINE_ALIGN_64_BYTES = 6,
1: +};
1: +
1: +enum dma_residue_granularity {
1: + DMA_RESIDUE_GRANULARITY_DESCRIPTOR = 0,
1: + DMA_RESIDUE_GRANULARITY_SEGMENT = 1,
1: + DMA_RESIDUE_GRANULARITY_BURST = 2,
1: +};
1: +
1: +struct dma_async_tx_descriptor;
1: +
1: +struct dma_slave_caps;
1: +
1: +struct dma_slave_config;
1: +
1: +struct dma_tx_state;
1: +
1: +struct dma_device {
1: + struct kref ref;
1: + unsigned int chancnt;
1: + unsigned int privatecnt;
1: + struct list_head channels;
1: + struct list_head global_node;
1: + struct dma_filter filter;
1: + dma_cap_mask_t cap_mask;
1: + enum dma_desc_metadata_mode desc_metadata_modes;
1: + short unsigned int max_xor;
1: + short unsigned int max_pq;
1: + enum dmaengine_alignment copy_align;
1: + enum dmaengine_alignment xor_align;
1: + enum dmaengine_alignment pq_align;
1: + enum dmaengine_alignment fill_align;
1: + int dev_id;
1: + struct device *dev;
1: + struct module *owner;
1: + struct ida chan_ida;
1: + struct mutex chan_mutex;
1: + u32 src_addr_widths;
1: + u32 dst_addr_widths;
1: + u32 directions;
1: + u32 min_burst;
1: + u32 max_burst;
1: + u32 max_sg_burst;
1: + bool descriptor_reuse;
1: + enum dma_residue_granularity residue_granularity;
1: + int (*device_alloc_chan_resources)(struct dma_chan *);
1: + void (*device_free_chan_resources)(struct dma_chan *);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_memcpy)(struct dma_chan *, dma_addr_t, dma_addr_t, size_t, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_xor)(struct dma_chan *, dma_addr_t, dma_addr_t *, unsigned int, size_t, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_xor_val)(struct dma_chan *, dma_addr_t *, unsigned int, size_t, enum sum_check_flags *, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_pq)(struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int, const unsigned char *, size_t, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_pq_val)(struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int, const unsigned char *, size_t, enum sum_check_flags *, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_memset)(struct dma_chan *, dma_addr_t, int, size_t, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_memset_sg)(struct dma_chan *, struct scatterlist *, unsigned int, int, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_interrupt)(struct dma_chan *, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_slave_sg)(struct dma_chan *, struct scatterlist *, unsigned int, enum dma_transfer_direction, long unsigned int, void *);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_cyclic)(struct dma_chan *, dma_addr_t, size_t, size_t, enum dma_transfer_direction, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_interleaved_dma)(struct dma_chan *, struct dma_interleaved_template *, long unsigned int);
1: + struct dma_async_tx_descriptor * (*device_prep_dma_imm_data)(struct dma_chan *, dma_addr_t, u64, long unsigned int);
1: + void (*device_caps)(struct dma_chan *, struct dma_slave_caps *);
1: + int (*device_config)(struct dma_chan *, struct dma_slave_config *);
1: + int (*device_pause)(struct dma_chan *);
1: + int (*device_resume)(struct dma_chan *);
1: + int (*device_terminate_all)(struct dma_chan *);
1: + void (*device_synchronize)(struct dma_chan *);
1: + enum dma_status (*device_tx_status)(struct dma_chan *, dma_cookie_t, struct dma_tx_state *);
1: + void (*device_issue_pending)(struct dma_chan *);
1: + void (*device_release)(struct dma_device *);
1: + void (*dbg_summary_show)(struct seq_file *, struct dma_device *);
1: + struct dentry *dbg_dev_root;
1: +};
1: +
1: +struct dma_chan_dev {
1: + struct dma_chan *chan;
1: + struct device device;
1: + int dev_id;
1: +};
1: +
1: +enum dma_slave_buswidth {
1: + DMA_SLAVE_BUSWIDTH_UNDEFINED = 0,
1: + DMA_SLAVE_BUSWIDTH_1_BYTE = 1,
1: + DMA_SLAVE_BUSWIDTH_2_BYTES = 2,
1: + DMA_SLAVE_BUSWIDTH_3_BYTES = 3,
1: + DMA_SLAVE_BUSWIDTH_4_BYTES = 4,
1: + DMA_SLAVE_BUSWIDTH_8_BYTES = 8,
1: + DMA_SLAVE_BUSWIDTH_16_BYTES = 16,
1: + DMA_SLAVE_BUSWIDTH_32_BYTES = 32,
1: + DMA_SLAVE_BUSWIDTH_64_BYTES = 64,
1: +};
1: +
1: +struct dma_slave_config {
1: + enum dma_transfer_direction direction;
1: + phys_addr_t src_addr;
1: + phys_addr_t dst_addr;
1: + enum dma_slave_buswidth src_addr_width;
1: + enum dma_slave_buswidth dst_addr_width;
1: + u32 src_maxburst;
1: + u32 dst_maxburst;
1: + u32 src_port_window_size;
1: + u32 dst_port_window_size;
1: + bool device_fc;
1: + unsigned int slave_id;
1: +};
1: +
1: +struct dma_slave_caps {
1: + u32 src_addr_widths;
1: + u32 dst_addr_widths;
1: + u32 directions;
1: + u32 min_burst;
1: + u32 max_burst;
1: + u32 max_sg_burst;
1: + bool cmd_pause;
1: + bool cmd_resume;
1: + bool cmd_terminate;
1: + enum dma_residue_granularity residue_granularity;
1: + bool descriptor_reuse;
1: +};
1: +
1: +typedef void (*dma_async_tx_callback)(void *);
1: +
1: +enum dmaengine_tx_result {
1: + DMA_TRANS_NOERROR = 0,
1: + DMA_TRANS_READ_FAILED = 1,
1: + DMA_TRANS_WRITE_FAILED = 2,
1: + DMA_TRANS_ABORTED = 3,
1: +};
1: +
1: +struct dmaengine_result {
1: + enum dmaengine_tx_result result;
1: + u32 residue;
1: +};
1: +
1: +typedef void (*dma_async_tx_callback_result)(void *, const struct dmaengine_result *);
1: +
1: +struct dmaengine_unmap_data {
1: + u16 map_cnt;
1: + u8 to_cnt;
1: + u8 from_cnt;
1: + u8 bidi_cnt;
1: + struct device *dev;
1: + struct kref kref;
1: + size_t len;
1: + dma_addr_t addr[0];
1: +};
1: +
1: +struct dma_descriptor_metadata_ops {
1: + int (*attach)(struct dma_async_tx_descriptor *, void *, size_t);
1: + void * (*get_ptr)(struct dma_async_tx_descriptor *, size_t *, size_t *);
1: + int (*set_len)(struct dma_async_tx_descriptor *, size_t);
1: +};
1: +
1: +struct dma_async_tx_descriptor {
1: + dma_cookie_t cookie;
1: + enum dma_ctrl_flags flags;
1: + dma_addr_t phys;
1: + struct dma_chan *chan;
1: + dma_cookie_t (*tx_submit)(struct dma_async_tx_descriptor *);
1: + int (*desc_free)(struct dma_async_tx_descriptor *);
1: + dma_async_tx_callback callback;
1: + dma_async_tx_callback_result callback_result;
1: + void *callback_param;
1: + struct dmaengine_unmap_data *unmap;
1: + enum dma_desc_metadata_mode desc_metadata_mode;
1: + struct dma_descriptor_metadata_ops *metadata_ops;
1: + struct dma_async_tx_descriptor *next;
1: + struct dma_async_tx_descriptor *parent;
1: + spinlock_t lock;
1: +};
1: +
1: +struct dma_tx_state {
1: + dma_cookie_t last;
1: + dma_cookie_t used;
1: + u32 residue;
1: + u32 in_flight_bytes;
1: +};
1: +
1: +struct dma_slave_map {
1: + const char *devname;
1: + const char *slave;
1: + void *param;
1: +};
1: +
1: +struct rio_switch_ops;
1: +
1: +struct rio_dev;
1: +
1: +struct rio_switch {
1: + struct list_head node;
1: + u8 *route_table;
1: + u32 port_ok;
1: + struct rio_switch_ops *ops;
1: + spinlock_t lock;
1: + struct rio_dev *nextdev[0];
1: +};
1: +
1: +struct rio_mport;
1: +
1: +struct rio_switch_ops {
1: + struct module *owner;
1: + int (*add_entry)(struct rio_mport *, u16, u8, u16, u16, u8);
1: + int (*get_entry)(struct rio_mport *, u16, u8, u16, u16, u8 *);
1: + int (*clr_table)(struct rio_mport *, u16, u8, u16);
1: + int (*set_domain)(struct rio_mport *, u16, u8, u8);
1: + int (*get_domain)(struct rio_mport *, u16, u8, u8 *);
1: + int (*em_init)(struct rio_dev *);
1: + int (*em_handle)(struct rio_dev *, u8);
1: +};
1: +
1: +struct rio_net;
1: +
1: +struct rio_driver;
1: +
1: +union rio_pw_msg;
1: +
1: +struct rio_dev {
1: + struct list_head global_list;
1: + struct list_head net_list;
1: + struct rio_net *net;
1: + bool do_enum;
1: + u16 did;
1: + u16 vid;
1: + u32 device_rev;
1: + u16 asm_did;
1: + u16 asm_vid;
1: + u16 asm_rev;
1: + u16 efptr;
1: + u32 pef;
1: + u32 swpinfo;
1: + u32 src_ops;
1: + u32 dst_ops;
1: + u32 comp_tag;
1: + u32 phys_efptr;
1: + u32 phys_rmap;
1: + u32 em_efptr;
1: + u64 dma_mask;
1: + struct rio_driver *driver;
1: + struct device dev;
1: + struct resource riores[16];
1: + int (*pwcback)(struct rio_dev *, union rio_pw_msg *, int);
1: + u16 destid;
1: + u8 hopcount;
1: + struct rio_dev *prev;
1: + atomic_t state;
1: + struct rio_switch rswitch[0];
1: +};
1: +
1: +struct rio_msg {
1: + struct resource *res;
1: + void (*mcback)(struct rio_mport *, void *, int, int);
1: +};
1: +
1: +struct rio_ops;
1: +
1: +struct rio_scan;
1: +
1: +struct rio_mport {
1: + struct list_head dbells;
1: + struct list_head pwrites;
1: + struct list_head node;
1: + struct list_head nnode;
1: + struct rio_net *net;
1: + struct mutex lock;
1: + struct resource iores;
1: + struct resource riores[16];
1: + struct rio_msg inb_msg[4];
1: + struct rio_msg outb_msg[4];
1: + int host_deviceid;
1: + struct rio_ops *ops;
1: + unsigned char id;
1: + unsigned char index;
1: + unsigned int sys_size;
1: + u32 phys_efptr;
1: + u32 phys_rmap;
1: + unsigned char name[40];
1: + struct device dev;
1: + void *priv;
1: + struct dma_device dma;
1: + struct rio_scan *nscan;
1: + atomic_t state;
1: + unsigned int pwe_refcnt;
1: +};
1: +
1: +enum rio_device_state {
1: + RIO_DEVICE_INITIALIZING = 0,
1: + RIO_DEVICE_RUNNING = 1,
1: + RIO_DEVICE_GONE = 2,
1: + RIO_DEVICE_SHUTDOWN = 3,
1: +};
1: +
1: +struct rio_net {
1: + struct list_head node;
1: + struct list_head devices;
1: + struct list_head switches;
1: + struct list_head mports;
1: + struct rio_mport *hport;
1: + unsigned char id;
1: + struct device dev;
1: + void *enum_data;
1: + void (*release)(struct rio_net *);
1: +};
1: +
1: +struct rio_driver {
1: + struct list_head node;
1: + char *name;
1: + const struct rio_device_id *id_table;
1: + int (*probe)(struct rio_dev *, const struct rio_device_id *);
1: + void (*remove)(struct rio_dev *);
1: + void (*shutdown)(struct rio_dev *);
1: + int (*suspend)(struct rio_dev *, u32);
1: + int (*resume)(struct rio_dev *);
1: + int (*enable_wake)(struct rio_dev *, u32, int);
1: + struct device_driver driver;
1: +};
1: +
1: +union rio_pw_msg {
1: + struct {
1: + u32 comptag;
1: + u32 errdetect;
1: + u32 is_port;
1: + u32 ltlerrdet;
1: + u32 padding[12];
1: + } em;
1: + u32 raw[16];
1: +};
1: +
1: +struct rio_dbell {
1: + struct list_head node;
1: + struct resource *res;
1: + void (*dinb)(struct rio_mport *, void *, u16, u16, u16);
1: + void *dev_id;
1: +};
1: +
1: +struct rio_mport_attr;
1: +
1: +struct rio_ops {
1: + int (*lcread)(struct rio_mport *, int, u32, int, u32 *);
1: + int (*lcwrite)(struct rio_mport *, int, u32, int, u32);
1: + int (*cread)(struct rio_mport *, int, u16, u8, u32, int, u32 *);
1: + int (*cwrite)(struct rio_mport *, int, u16, u8, u32, int, u32);
1: + int (*dsend)(struct rio_mport *, int, u16, u16);
1: + int (*pwenable)(struct rio_mport *, int);
1: + int (*open_outb_mbox)(struct rio_mport *, void *, int, int);
1: + void (*close_outb_mbox)(struct rio_mport *, int);
1: + int (*open_inb_mbox)(struct rio_mport *, void *, int, int);
1: + void (*close_inb_mbox)(struct rio_mport *, int);
1: + int (*add_outb_message)(struct rio_mport *, struct rio_dev *, int, void *, size_t);
1: + int (*add_inb_buffer)(struct rio_mport *, int, void *);
1: + void * (*get_inb_message)(struct rio_mport *, int);
1: + int (*map_inb)(struct rio_mport *, dma_addr_t, u64, u64, u32);
1: + void (*unmap_inb)(struct rio_mport *, dma_addr_t);
1: + int (*query_mport)(struct rio_mport *, struct rio_mport_attr *);
1: + int (*map_outb)(struct rio_mport *, u16, u64, u32, u32, dma_addr_t *);
1: + void (*unmap_outb)(struct rio_mport *, u16, u64);
1: +};
1: +
1: +struct rio_scan {
1: + struct module *owner;
1: + int (*enumerate)(struct rio_mport *, u32);
1: + int (*discover)(struct rio_mport *, u32);
1: +};
1: +
1: +struct rio_mport_attr {
1: + int flags;
1: + int link_speed;
1: + int link_width;
1: + int dma_max_sge;
1: + int dma_max_size;
1: + int dma_align;
1: +};
1: +
1: +enum rio_write_type {
1: + RDW_DEFAULT = 0,
1: + RDW_ALL_NWRITE = 1,
1: + RDW_ALL_NWRITE_R = 2,
1: + RDW_LAST_NWRITE_R = 3,
1: +};
1: +
1: +struct rio_dma_ext {
1: + u16 destid;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum rio_write_type wr_type;
1: +};
1: +
1: +struct rio_dma_data {
1: + struct scatterlist *sg;
1: + unsigned int sg_len;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum rio_write_type wr_type;
1: +};
1: +
1: +struct rio_scan_node {
1: + int mport_id;
1: + struct list_head node;
1: + struct rio_scan *ops;
1: +};
1: +
1: +struct rio_pwrite {
1: + struct list_head node;
1: + int (*pwcback)(struct rio_mport *, void *, union rio_pw_msg *, int);
1: + void *context;
1: +};
1: +
1: +struct rio_disc_work {
1: + struct work_struct work;
1: + struct rio_mport *mport;
1: +};
1: +
1: +enum rio_link_speed {
1: + RIO_LINK_DOWN = 0,
1: + RIO_LINK_125 = 1,
1: + RIO_LINK_250 = 2,
1: + RIO_LINK_312 = 3,
1: + RIO_LINK_500 = 4,
1: + RIO_LINK_625 = 5,
1: +};
1: +
1: +enum rio_mport_flags {
1: + RIO_MPORT_DMA = 1,
1: + RIO_MPORT_DMA_SG = 2,
1: + RIO_MPORT_IBSG = 4,
1: +};
1: +
1: +struct kfifo {
1: + union {
1: + struct __kfifo kfifo;
1: + unsigned char *type;
1: + const unsigned char *const_type;
1: + char (*rectype)[0];
1: + void *ptr;
1: + const void *ptr_const;
1: + };
1: + unsigned char buf[0];
1: +};
1: +
1: +enum {
1: + DBG_NONE = 0,
1: + DBG_INIT = 1,
1: + DBG_EXIT = 2,
1: + DBG_MPORT = 4,
1: + DBG_MAINT = 8,
1: + DBG_DMA = 16,
1: + DBG_DMAV = 32,
1: + DBG_IBW = 64,
1: + DBG_EVENT = 128,
1: + DBG_OBW = 256,
1: + DBG_DBELL = 512,
1: + DBG_OMSG = 1024,
1: + DBG_IMSG = 2048,
1: + DBG_ALL = 4294967295,
1: +};
1: +
1: +struct tsi721_dma_desc {
1: + __le32 type_id;
1: + __le32 bcount;
1: + union {
1: + __le32 raddr_lo;
1: + __le32 next_lo;
1: + };
1: + union {
1: + __le32 raddr_hi;
1: + __le32 next_hi;
1: + };
1: + union {
1: + struct {
1: + __le32 bufptr_lo;
1: + __le32 bufptr_hi;
1: + __le32 s_dist;
1: + __le32 s_size;
1: + } t1;
1: + __le32 data[4];
1: + u32 reserved[4];
1: + };
1: +};
1: +
1: +struct tsi721_imsg_desc {
1: + __le32 type_id;
1: + __le32 msg_info;
1: + __le32 bufptr_lo;
1: + __le32 bufptr_hi;
1: + u32 reserved[12];
1: +};
1: +
1: +struct tsi721_omsg_desc {
1: + __le32 type_id;
1: + __le32 msg_info;
1: + union {
1: + __le32 bufptr_lo;
1: + __le32 next_lo;
1: + };
1: + union {
1: + __le32 bufptr_hi;
1: + __le32 next_hi;
1: + };
1: +};
1: +
1: +enum dma_dtype {
1: + DTYPE1 = 1,
1: + DTYPE2 = 2,
1: + DTYPE3 = 3,
1: + DTYPE4 = 4,
1: + DTYPE5 = 5,
1: + DTYPE6 = 6,
1: +};
1: +
1: +enum dma_rtype {
1: + NREAD = 0,
1: + LAST_NWRITE_R = 1,
1: + ALL_NWRITE = 2,
1: + ALL_NWRITE_R = 3,
1: + MAINT_RD = 4,
1: + MAINT_WR = 5,
1: +};
1: +
1: +struct tsi721_tx_desc {
1: + struct dma_async_tx_descriptor txd;
1: + u16 destid;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum dma_rtype rtype;
1: + struct list_head desc_node;
1: + struct scatterlist *sg;
1: + unsigned int sg_len;
1: + enum dma_status status;
1: +};
1: +
1: +struct tsi721_bdma_chan {
1: + int id;
1: + void *regs;
1: + int bd_num;
1: + void *bd_base;
1: + dma_addr_t bd_phys;
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + int sts_size;
1: + u32 sts_rdptr;
1: + u32 wr_count;
1: + u32 wr_count_next;
1: + struct dma_chan dchan;
1: + struct tsi721_tx_desc *tx_desc;
1: + spinlock_t lock;
1: + struct tsi721_tx_desc *active_tx;
1: + struct list_head queue;
1: + struct list_head free_list;
1: + struct tasklet_struct tasklet;
1: + bool active;
1: +};
1: +
1: +struct tsi721_bdma_maint {
1: + int ch_id;
1: + int bd_num;
1: + void *bd_base;
1: + dma_addr_t bd_phys;
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + int sts_size;
1: +};
1: +
1: +struct tsi721_imsg_ring {
1: + u32 size;
1: + void *buf_base;
1: + dma_addr_t buf_phys;
1: + void *imfq_base;
1: + dma_addr_t imfq_phys;
1: + void *imd_base;
1: + dma_addr_t imd_phys;
1: + void *imq_base[512];
1: + u32 rx_slot;
1: + void *dev_id;
1: + u32 fq_wrptr;
1: + u32 desc_rdptr;
1: + spinlock_t lock;
1: +};
1: +
1: +struct tsi721_omsg_ring {
1: + u32 size;
1: + void *omd_base;
1: + dma_addr_t omd_phys;
1: + void *omq_base[512];
1: + dma_addr_t omq_phys[512];
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + u32 sts_size;
1: + u32 sts_rdptr;
1: + u32 tx_slot;
1: + void *dev_id;
1: + u32 wr_count;
1: + spinlock_t lock;
1: +};
1: +
1: +enum tsi721_flags {
1: + TSI721_USING_MSI = 1,
1: + TSI721_USING_MSIX = 2,
1: + TSI721_IMSGID_SET = 4,
1: +};
1: +
1: +enum tsi721_msix_vect {
1: + TSI721_VECT_IDB = 0,
1: + TSI721_VECT_PWRX = 1,
1: + TSI721_VECT_OMB0_DONE = 2,
1: + TSI721_VECT_OMB1_DONE = 3,
1: + TSI721_VECT_OMB2_DONE = 4,
1: + TSI721_VECT_OMB3_DONE = 5,
1: + TSI721_VECT_OMB0_INT = 6,
1: + TSI721_VECT_OMB1_INT = 7,
1: + TSI721_VECT_OMB2_INT = 8,
1: + TSI721_VECT_OMB3_INT = 9,
1: + TSI721_VECT_IMB0_RCV = 10,
1: + TSI721_VECT_IMB1_RCV = 11,
1: + TSI721_VECT_IMB2_RCV = 12,
1: + TSI721_VECT_IMB3_RCV = 13,
1: + TSI721_VECT_IMB0_INT = 14,
1: + TSI721_VECT_IMB1_INT = 15,
1: + TSI721_VECT_IMB2_INT = 16,
1: + TSI721_VECT_IMB3_INT = 17,
1: + TSI721_VECT_DMA0_DONE = 18,
1: + TSI721_VECT_DMA1_DONE = 19,
1: + TSI721_VECT_DMA2_DONE = 20,
1: + TSI721_VECT_DMA3_DONE = 21,
1: + TSI721_VECT_DMA4_DONE = 22,
1: + TSI721_VECT_DMA5_DONE = 23,
1: + TSI721_VECT_DMA6_DONE = 24,
1: + TSI721_VECT_DMA7_DONE = 25,
1: + TSI721_VECT_DMA0_INT = 26,
1: + TSI721_VECT_DMA1_INT = 27,
1: + TSI721_VECT_DMA2_INT = 28,
1: + TSI721_VECT_DMA3_INT = 29,
1: + TSI721_VECT_DMA4_INT = 30,
1: + TSI721_VECT_DMA5_INT = 31,
1: + TSI721_VECT_DMA6_INT = 32,
1: + TSI721_VECT_DMA7_INT = 33,
1: + TSI721_VECT_MAX = 34,
1: +};
1: +
1: +struct msix_irq {
1: + u16 vector;
1: + char irq_name[64];
1: +};
1: +
1: +struct tsi721_ib_win_mapping {
1: + struct list_head node;
1: + dma_addr_t lstart;
1: +};
1: +
1: +struct tsi721_ib_win {
1: + u64 rstart;
1: + u32 size;
1: + dma_addr_t lstart;
1: + bool active;
1: + bool xlat;
1: + struct list_head mappings;
1: +};
1: +
1: +struct tsi721_obw_bar {
1: + u64 base;
1: + u64 size;
1: + u64 free;
1: +};
1: +
1: +struct tsi721_ob_win {
1: + u64 base;
1: + u32 size;
1: + u16 destid;
1: + u64 rstart;
1: + bool active;
1: + struct tsi721_obw_bar *pbar;
1: +};
1: +
1: +struct tsi721_device {
1: + struct pci_dev *pdev;
1: + struct rio_mport mport;
1: + u32 flags;
1: + void *regs;
1: + struct msix_irq msix[34];
1: + void *odb_base;
1: + void *idb_base;
1: + dma_addr_t idb_dma;
1: + struct work_struct idb_work;
1: + u32 db_discard_count;
1: + struct work_struct pw_work;
1: + struct kfifo pw_fifo;
1: + spinlock_t pw_fifo_lock;
1: + u32 pw_discard_count;
1: + struct tsi721_bdma_maint mdma;
1: + struct tsi721_bdma_chan bdma[8];
1: + int imsg_init[8];
1: + struct tsi721_imsg_ring imsg_ring[8];
1: + int omsg_init[4];
1: + struct tsi721_omsg_ring omsg_ring[4];
1: + struct tsi721_ib_win ib_win[8];
1: + int ibwin_cnt;
1: + struct tsi721_obw_bar p2r_bar[2];
1: + struct tsi721_ob_win ob_win[8];
1: + int obwin_cnt;
1: +};
1: +
1: +enum hdmi_infoframe_type {
1: + HDMI_INFOFRAME_TYPE_VENDOR = 129,
1: + HDMI_INFOFRAME_TYPE_AVI = 130,
1: + HDMI_INFOFRAME_TYPE_SPD = 131,
1: + HDMI_INFOFRAME_TYPE_AUDIO = 132,
1: + HDMI_INFOFRAME_TYPE_DRM = 135,
1: +};
1: +
1: +struct hdmi_any_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: +};
1: +
1: +enum hdmi_colorspace {
1: + HDMI_COLORSPACE_RGB = 0,
1: + HDMI_COLORSPACE_YUV422 = 1,
1: + HDMI_COLORSPACE_YUV444 = 2,
1: + HDMI_COLORSPACE_YUV420 = 3,
1: + HDMI_COLORSPACE_RESERVED4 = 4,
1: + HDMI_COLORSPACE_RESERVED5 = 5,
1: + HDMI_COLORSPACE_RESERVED6 = 6,
1: + HDMI_COLORSPACE_IDO_DEFINED = 7,
1: +};
1: +
1: +enum hdmi_scan_mode {
1: + HDMI_SCAN_MODE_NONE = 0,
1: + HDMI_SCAN_MODE_OVERSCAN = 1,
1: + HDMI_SCAN_MODE_UNDERSCAN = 2,
1: + HDMI_SCAN_MODE_RESERVED = 3,
1: +};
1: +
1: +enum hdmi_colorimetry {
1: + HDMI_COLORIMETRY_NONE = 0,
1: + HDMI_COLORIMETRY_ITU_601 = 1,
1: + HDMI_COLORIMETRY_ITU_709 = 2,
1: + HDMI_COLORIMETRY_EXTENDED = 3,
1: +};
1: +
1: +enum hdmi_picture_aspect {
1: + HDMI_PICTURE_ASPECT_NONE = 0,
1: + HDMI_PICTURE_ASPECT_4_3 = 1,
1: + HDMI_PICTURE_ASPECT_16_9 = 2,
1: + HDMI_PICTURE_ASPECT_64_27 = 3,
1: + HDMI_PICTURE_ASPECT_256_135 = 4,
1: + HDMI_PICTURE_ASPECT_RESERVED = 5,
1: +};
1: +
1: +enum hdmi_active_aspect {
1: + HDMI_ACTIVE_ASPECT_16_9_TOP = 2,
1: + HDMI_ACTIVE_ASPECT_14_9_TOP = 3,
1: + HDMI_ACTIVE_ASPECT_16_9_CENTER = 4,
1: + HDMI_ACTIVE_ASPECT_PICTURE = 8,
1: + HDMI_ACTIVE_ASPECT_4_3 = 9,
1: + HDMI_ACTIVE_ASPECT_16_9 = 10,
1: + HDMI_ACTIVE_ASPECT_14_9 = 11,
1: + HDMI_ACTIVE_ASPECT_4_3_SP_14_9 = 13,
1: + HDMI_ACTIVE_ASPECT_16_9_SP_14_9 = 14,
1: + HDMI_ACTIVE_ASPECT_16_9_SP_4_3 = 15,
1: +};
1: +
1: +enum hdmi_extended_colorimetry {
1: + HDMI_EXTENDED_COLORIMETRY_XV_YCC_601 = 0,
1: + HDMI_EXTENDED_COLORIMETRY_XV_YCC_709 = 1,
1: + HDMI_EXTENDED_COLORIMETRY_S_YCC_601 = 2,
1: + HDMI_EXTENDED_COLORIMETRY_OPYCC_601 = 3,
1: + HDMI_EXTENDED_COLORIMETRY_OPRGB = 4,
1: + HDMI_EXTENDED_COLORIMETRY_BT2020_CONST_LUM = 5,
1: + HDMI_EXTENDED_COLORIMETRY_BT2020 = 6,
1: + HDMI_EXTENDED_COLORIMETRY_RESERVED = 7,
1: +};
1: +
1: +enum hdmi_quantization_range {
1: + HDMI_QUANTIZATION_RANGE_DEFAULT = 0,
1: + HDMI_QUANTIZATION_RANGE_LIMITED = 1,
1: + HDMI_QUANTIZATION_RANGE_FULL = 2,
1: + HDMI_QUANTIZATION_RANGE_RESERVED = 3,
1: +};
1: +
1: +enum hdmi_nups {
1: + HDMI_NUPS_UNKNOWN = 0,
1: + HDMI_NUPS_HORIZONTAL = 1,
1: + HDMI_NUPS_VERTICAL = 2,
1: + HDMI_NUPS_BOTH = 3,
1: +};
1: +
1: +enum hdmi_ycc_quantization_range {
1: + HDMI_YCC_QUANTIZATION_RANGE_LIMITED = 0,
1: + HDMI_YCC_QUANTIZATION_RANGE_FULL = 1,
1: +};
1: +
1: +enum hdmi_content_type {
1: + HDMI_CONTENT_TYPE_GRAPHICS = 0,
1: + HDMI_CONTENT_TYPE_PHOTO = 1,
1: + HDMI_CONTENT_TYPE_CINEMA = 2,
1: + HDMI_CONTENT_TYPE_GAME = 3,
1: +};
1: +
1: +enum hdmi_metadata_type {
1: + HDMI_STATIC_METADATA_TYPE1 = 1,
1: +};
1: +
1: +enum hdmi_eotf {
1: + HDMI_EOTF_TRADITIONAL_GAMMA_SDR = 0,
1: + HDMI_EOTF_TRADITIONAL_GAMMA_HDR = 1,
1: + HDMI_EOTF_SMPTE_ST2084 = 2,
1: + HDMI_EOTF_BT_2100_HLG = 3,
1: +};
1: +
1: +struct hdmi_avi_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + enum hdmi_colorspace colorspace;
1: + enum hdmi_scan_mode scan_mode;
1: + enum hdmi_colorimetry colorimetry;
1: + enum hdmi_picture_aspect picture_aspect;
1: + enum hdmi_active_aspect active_aspect;
1: + bool itc;
1: + enum hdmi_extended_colorimetry extended_colorimetry;
1: + enum hdmi_quantization_range quantization_range;
1: + enum hdmi_nups nups;
1: + unsigned char video_code;
1: + enum hdmi_ycc_quantization_range ycc_quantization_range;
1: + enum hdmi_content_type content_type;
1: + unsigned char pixel_repeat;
1: + short unsigned int top_bar;
1: + short unsigned int bottom_bar;
1: + short unsigned int left_bar;
1: + short unsigned int right_bar;
1: +};
1: +
1: +struct hdmi_drm_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + enum hdmi_eotf eotf;
1: + enum hdmi_metadata_type metadata_type;
1: + struct {
1: + u16 x;
1: + u16 y;
1: + } display_primaries[3];
1: + struct {
1: + u16 x;
1: + u16 y;
1: + } white_point;
1: + u16 max_display_mastering_luminance;
1: + u16 min_display_mastering_luminance;
1: + u16 max_cll;
1: + u16 max_fall;
1: +};
1: +
1: +enum hdmi_spd_sdi {
1: + HDMI_SPD_SDI_UNKNOWN = 0,
1: + HDMI_SPD_SDI_DSTB = 1,
1: + HDMI_SPD_SDI_DVDP = 2,
1: + HDMI_SPD_SDI_DVHS = 3,
1: + HDMI_SPD_SDI_HDDVR = 4,
1: + HDMI_SPD_SDI_DVC = 5,
1: + HDMI_SPD_SDI_DSC = 6,
1: + HDMI_SPD_SDI_VCD = 7,
1: + HDMI_SPD_SDI_GAME = 8,
1: + HDMI_SPD_SDI_PC = 9,
1: + HDMI_SPD_SDI_BD = 10,
1: + HDMI_SPD_SDI_SACD = 11,
1: + HDMI_SPD_SDI_HDDVD = 12,
1: + HDMI_SPD_SDI_PMP = 13,
1: +};
1: +
1: +struct hdmi_spd_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + char vendor[8];
1: + char product[16];
1: + enum hdmi_spd_sdi sdi;
1: +};
1: +
1: +enum hdmi_audio_coding_type {
1: + HDMI_AUDIO_CODING_TYPE_STREAM = 0,
1: + HDMI_AUDIO_CODING_TYPE_PCM = 1,
1: + HDMI_AUDIO_CODING_TYPE_AC3 = 2,
1: + HDMI_AUDIO_CODING_TYPE_MPEG1 = 3,
1: + HDMI_AUDIO_CODING_TYPE_MP3 = 4,
1: + HDMI_AUDIO_CODING_TYPE_MPEG2 = 5,
1: + HDMI_AUDIO_CODING_TYPE_AAC_LC = 6,
1: + HDMI_AUDIO_CODING_TYPE_DTS = 7,
1: + HDMI_AUDIO_CODING_TYPE_ATRAC = 8,
1: + HDMI_AUDIO_CODING_TYPE_DSD = 9,
1: + HDMI_AUDIO_CODING_TYPE_EAC3 = 10,
1: + HDMI_AUDIO_CODING_TYPE_DTS_HD = 11,
1: + HDMI_AUDIO_CODING_TYPE_MLP = 12,
1: + HDMI_AUDIO_CODING_TYPE_DST = 13,
1: + HDMI_AUDIO_CODING_TYPE_WMA_PRO = 14,
1: + HDMI_AUDIO_CODING_TYPE_CXT = 15,
1: +};
1: +
1: +enum hdmi_audio_sample_size {
1: + HDMI_AUDIO_SAMPLE_SIZE_STREAM = 0,
1: + HDMI_AUDIO_SAMPLE_SIZE_16 = 1,
1: + HDMI_AUDIO_SAMPLE_SIZE_20 = 2,
1: + HDMI_AUDIO_SAMPLE_SIZE_24 = 3,
1: +};
1: +
1: +enum hdmi_audio_sample_frequency {
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_STREAM = 0,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_32000 = 1,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_44100 = 2,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_48000 = 3,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_88200 = 4,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_96000 = 5,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_176400 = 6,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_192000 = 7,
1: +};
1: +
1: +enum hdmi_audio_coding_type_ext {
1: + HDMI_AUDIO_CODING_TYPE_EXT_CT = 0,
1: + HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC = 1,
1: + HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC_V2 = 2,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG_SURROUND = 3,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC = 4,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_V2 = 5,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC = 6,
1: + HDMI_AUDIO_CODING_TYPE_EXT_DRA = 7,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_SURROUND = 8,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC_SURROUND = 10,
1: +};
1: +
1: +struct hdmi_audio_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned char channels;
1: + enum hdmi_audio_coding_type coding_type;
1: + enum hdmi_audio_sample_size sample_size;
1: + enum hdmi_audio_sample_frequency sample_frequency;
1: + enum hdmi_audio_coding_type_ext coding_type_ext;
1: + unsigned char channel_allocation;
1: + unsigned char level_shift_value;
1: + bool downmix_inhibit;
1: +};
1: +
1: +enum hdmi_3d_structure {
1: + HDMI_3D_STRUCTURE_INVALID = 4294967295,
1: + HDMI_3D_STRUCTURE_FRAME_PACKING = 0,
1: + HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE = 1,
1: + HDMI_3D_STRUCTURE_LINE_ALTERNATIVE = 2,
1: + HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL = 3,
1: + HDMI_3D_STRUCTURE_L_DEPTH = 4,
1: + HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH = 5,
1: + HDMI_3D_STRUCTURE_TOP_AND_BOTTOM = 6,
1: + HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF = 8,
1: +};
1: +
1: +struct hdmi_vendor_infoframe {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned int oui;
1: + u8 vic;
1: + enum hdmi_3d_structure s3d_struct;
1: + unsigned int s3d_ext_data;
1: +};
1: +
1: +union hdmi_vendor_any_infoframe {
1: + struct {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned int oui;
1: + } any;
1: + struct hdmi_vendor_infoframe hdmi;
1: +};
1: +
1: +union hdmi_infoframe {
1: + struct hdmi_any_infoframe any;
1: + struct hdmi_avi_infoframe avi;
1: + struct hdmi_spd_infoframe spd;
1: + union hdmi_vendor_any_infoframe vendor;
1: + struct hdmi_audio_infoframe audio;
1: + struct hdmi_drm_infoframe drm;
1: +};
1: +
1: +enum con_scroll {
1: + SM_UP = 0,
1: + SM_DOWN = 1,
1: +};
1: +
1: +enum vc_intensity {
1: + VCI_HALF_BRIGHT = 0,
1: + VCI_NORMAL = 1,
1: + VCI_BOLD = 2,
1: + VCI_MASK = 3,
1: +};
1: +
1: +struct vc_data;
1: +
1: +struct console_font;
1: +
1: +struct consw {
1: + struct module *owner;
1: + const char * (*con_startup)();
1: + void (*con_init)(struct vc_data *, int);
1: + void (*con_deinit)(struct vc_data *);
1: + void (*con_clear)(struct vc_data *, int, int, int, int);
1: + void (*con_putc)(struct vc_data *, int, int, int);
1: + void (*con_putcs)(struct vc_data *, const short unsigned int *, int, int, int);
1: + void (*con_cursor)(struct vc_data *, int);
1: + bool (*con_scroll)(struct vc_data *, unsigned int, unsigned int, enum con_scroll, unsigned int);
1: + int (*con_switch)(struct vc_data *);
1: + int (*con_blank)(struct vc_data *, int, int);
1: + int (*con_font_set)(struct vc_data *, struct console_font *, unsigned int);
1: + int (*con_font_get)(struct vc_data *, struct console_font *);
1: + int (*con_font_default)(struct vc_data *, struct console_font *, char *);
1: + int (*con_font_copy)(struct vc_data *, int);
1: + int (*con_resize)(struct vc_data *, unsigned int, unsigned int, unsigned int);
1: + void (*con_set_palette)(struct vc_data *, const unsigned char *);
1: + void (*con_scrolldelta)(struct vc_data *, int);
1: + int (*con_set_origin)(struct vc_data *);
1: + void (*con_save_screen)(struct vc_data *);
1: + u8 (*con_build_attr)(struct vc_data *, u8, enum vc_intensity, bool, bool, bool, bool);
1: + void (*con_invert_region)(struct vc_data *, u16 *, int);
1: + u16 * (*con_screen_pos)(const struct vc_data *, int);
1: + long unsigned int (*con_getxy)(struct vc_data *, long unsigned int, int *, int *);
1: + void (*con_flush_scrollback)(struct vc_data *);
1: + int (*con_debug_enter)(struct vc_data *);
1: + int (*con_debug_leave)(struct vc_data *);
1: +};
1: +
1: +struct vc_state {
1: + unsigned int x;
1: + unsigned int y;
1: + unsigned char color;
1: + unsigned char Gx_charset[2];
1: + unsigned int charset: 1;
1: + enum vc_intensity intensity;
1: + bool italic;
1: + bool underline;
1: + bool blink;
1: + bool reverse;
1: +};
1: +
1: +struct console_font {
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int charcount;
1: + unsigned char *data;
1: +};
1: +
1: +struct vt_mode {
1: + char mode;
1: + char waitv;
1: + short int relsig;
1: + short int acqsig;
1: + short int frsig;
1: +};
1: +
1: +struct uni_pagedir;
1: +
1: +struct uni_screen;
1: +
1: +struct vc_data {
1: + struct tty_port port;
1: + struct vc_state state;
1: + struct vc_state saved_state;
1: + short unsigned int vc_num;
1: + unsigned int vc_cols;
1: + unsigned int vc_rows;
1: + unsigned int vc_size_row;
1: + unsigned int vc_scan_lines;
1: + long unsigned int vc_origin;
1: + long unsigned int vc_scr_end;
1: + long unsigned int vc_visible_origin;
1: + unsigned int vc_top;
1: + unsigned int vc_bottom;
1: + const struct consw *vc_sw;
1: + short unsigned int *vc_screenbuf;
1: + unsigned int vc_screenbuf_size;
1: + unsigned char vc_mode;
1: + unsigned char vc_attr;
1: + unsigned char vc_def_color;
1: + unsigned char vc_ulcolor;
1: + unsigned char vc_itcolor;
1: + unsigned char vc_halfcolor;
1: + unsigned int vc_cursor_type;
1: + short unsigned int vc_complement_mask;
1: + short unsigned int vc_s_complement_mask;
1: + long unsigned int vc_pos;
1: + short unsigned int vc_hi_font_mask;
1: + struct console_font vc_font;
1: + short unsigned int vc_video_erase_char;
1: + unsigned int vc_state;
1: + unsigned int vc_npar;
1: + unsigned int vc_par[16];
1: + struct vt_mode vt_mode;
1: + struct pid *vt_pid;
1: + int vt_newvt;
1: + wait_queue_head_t paste_wait;
1: + unsigned int vc_disp_ctrl: 1;
1: + unsigned int vc_toggle_meta: 1;
1: + unsigned int vc_decscnm: 1;
1: + unsigned int vc_decom: 1;
1: + unsigned int vc_decawm: 1;
1: + unsigned int vc_deccm: 1;
1: + unsigned int vc_decim: 1;
1: + unsigned int vc_priv: 3;
1: + unsigned int vc_need_wrap: 1;
1: + unsigned int vc_can_do_color: 1;
1: + unsigned int vc_report_mouse: 2;
1: + unsigned char vc_utf: 1;
1: + unsigned char vc_utf_count;
1: + int vc_utf_char;
1: + long unsigned int vc_tab_stop[4];
1: + unsigned char vc_palette[48];
1: + short unsigned int *vc_translate;
1: + unsigned int vc_resize_user;
1: + unsigned int vc_bell_pitch;
1: + unsigned int vc_bell_duration;
1: + short unsigned int vc_cur_blink_ms;
1: + struct vc_data **vc_display_fg;
1: + struct uni_pagedir *vc_uni_pagedir;
1: + struct uni_pagedir **vc_uni_pagedir_loc;
1: + struct uni_screen *vc_uni_screen;
1: +};
1: +
1: +struct linux_logo {
1: + int type;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int clutsize;
1: + const unsigned char *clut;
1: + const unsigned char *data;
1: +};
1: +
1: +struct fb_fix_screeninfo {
1: + char id[16];
1: + long unsigned int smem_start;
1: + __u32 smem_len;
1: + __u32 type;
1: + __u32 type_aux;
1: + __u32 visual;
1: + __u16 xpanstep;
1: + __u16 ypanstep;
1: + __u16 ywrapstep;
1: + __u32 line_length;
1: + long unsigned int mmio_start;
1: + __u32 mmio_len;
1: + __u32 accel;
1: + __u16 capabilities;
1: + __u16 reserved[2];
1: +};
1: +
1: +struct fb_bitfield {
1: + __u32 offset;
1: + __u32 length;
1: + __u32 msb_right;
1: +};
1: +
1: +struct fb_var_screeninfo {
1: + __u32 xres;
1: + __u32 yres;
1: + __u32 xres_virtual;
1: + __u32 yres_virtual;
1: + __u32 xoffset;
1: + __u32 yoffset;
1: + __u32 bits_per_pixel;
1: + __u32 grayscale;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + __u32 nonstd;
1: + __u32 activate;
1: + __u32 height;
1: + __u32 width;
1: + __u32 accel_flags;
1: + __u32 pixclock;
1: + __u32 left_margin;
1: + __u32 right_margin;
1: + __u32 upper_margin;
1: + __u32 lower_margin;
1: + __u32 hsync_len;
1: + __u32 vsync_len;
1: + __u32 sync;
1: + __u32 vmode;
1: + __u32 rotate;
1: + __u32 colorspace;
1: + __u32 reserved[4];
1: +};
1: +
1: +struct fb_cmap {
1: + __u32 start;
1: + __u32 len;
1: + __u16 *red;
1: + __u16 *green;
1: + __u16 *blue;
1: + __u16 *transp;
1: +};
1: +
1: +enum {
1: + FB_BLANK_UNBLANK = 0,
1: + FB_BLANK_NORMAL = 1,
1: + FB_BLANK_VSYNC_SUSPEND = 2,
1: + FB_BLANK_HSYNC_SUSPEND = 3,
1: + FB_BLANK_POWERDOWN = 4,
1: +};
1: +
1: +struct fb_copyarea {
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 sx;
1: + __u32 sy;
1: +};
1: +
1: +struct fb_fillrect {
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 color;
1: + __u32 rop;
1: +};
1: +
1: +struct fb_image {
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 fg_color;
1: + __u32 bg_color;
1: + __u8 depth;
1: + const char *data;
1: + struct fb_cmap cmap;
1: +};
1: +
1: +struct fbcurpos {
1: + __u16 x;
1: + __u16 y;
1: +};
1: +
1: +struct fb_cursor {
1: + __u16 set;
1: + __u16 enable;
1: + __u16 rop;
1: + const char *mask;
1: + struct fbcurpos hot;
1: + struct fb_image image;
1: +};
1: +
1: +struct fb_chroma {
1: + __u32 redx;
1: + __u32 greenx;
1: + __u32 bluex;
1: + __u32 whitex;
1: + __u32 redy;
1: + __u32 greeny;
1: + __u32 bluey;
1: + __u32 whitey;
1: +};
1: +
1: +struct fb_videomode;
1: +
1: +struct fb_monspecs {
1: + struct fb_chroma chroma;
1: + struct fb_videomode *modedb;
1: + __u8 manufacturer[4];
1: + __u8 monitor[14];
1: + __u8 serial_no[14];
1: + __u8 ascii[14];
1: + __u32 modedb_len;
1: + __u32 model;
1: + __u32 serial;
1: + __u32 year;
1: + __u32 week;
1: + __u32 hfmin;
1: + __u32 hfmax;
1: + __u32 dclkmin;
1: + __u32 dclkmax;
1: + __u16 input;
1: + __u16 dpms;
1: + __u16 signal;
1: + __u16 vfmin;
1: + __u16 vfmax;
1: + __u16 gamma;
1: + __u16 gtf: 1;
1: + __u16 misc;
1: + __u8 version;
1: + __u8 revision;
1: + __u8 max_x;
1: + __u8 max_y;
1: +};
1: +
1: +struct fb_videomode {
1: + const char *name;
1: + u32 refresh;
1: + u32 xres;
1: + u32 yres;
1: + u32 pixclock;
1: + u32 left_margin;
1: + u32 right_margin;
1: + u32 upper_margin;
1: + u32 lower_margin;
1: + u32 hsync_len;
1: + u32 vsync_len;
1: + u32 sync;
1: + u32 vmode;
1: + u32 flag;
1: +};
1: +
1: +struct fb_info;
1: +
1: +struct fb_event {
1: + struct fb_info *info;
1: + void *data;
1: +};
1: +
1: +struct fb_pixmap {
1: + u8 *addr;
1: + u32 size;
1: + u32 offset;
1: + u32 buf_align;
1: + u32 scan_align;
1: + u32 access_align;
1: + u32 flags;
1: + u32 blit_x;
1: + u32 blit_y;
1: + void (*writeio)(struct fb_info *, void *, void *, unsigned int);
1: + void (*readio)(struct fb_info *, void *, void *, unsigned int);
1: +};
1: +
1: +struct backlight_device;
1: +
1: +struct fb_deferred_io;
1: +
1: +struct fb_ops;
1: +
1: +struct fb_tile_ops;
1: +
1: +struct apertures_struct;
1: +
1: +struct fb_info {
1: + atomic_t count;
1: + int node;
1: + int flags;
1: + int fbcon_rotate_hint;
1: + struct mutex lock;
1: + struct mutex mm_lock;
1: + struct fb_var_screeninfo var;
1: + struct fb_fix_screeninfo fix;
1: + struct fb_monspecs monspecs;
1: + struct work_struct queue;
1: + struct fb_pixmap pixmap;
1: + struct fb_pixmap sprite;
1: + struct fb_cmap cmap;
1: + struct list_head modelist;
1: + struct fb_videomode *mode;
1: + struct backlight_device *bl_dev;
1: + struct mutex bl_curve_mutex;
1: + u8 bl_curve[128];
1: + struct delayed_work deferred_work;
1: + struct fb_deferred_io *fbdefio;
1: + const struct fb_ops *fbops;
1: + struct device *device;
1: + struct device *dev;
1: + int class_flag;
1: + struct fb_tile_ops *tileops;
1: + union {
1: + char *screen_base;
1: + char *screen_buffer;
1: + };
1: + long unsigned int screen_size;
1: + void *pseudo_palette;
1: + u32 state;
1: + void *fbcon_par;
1: + void *par;
1: + struct apertures_struct *apertures;
1: + bool skip_vt_switch;
1: +};
1: +
1: +struct fb_blit_caps {
1: + u32 x;
1: + u32 y;
1: + u32 len;
1: + u32 flags;
1: +};
1: +
1: +struct fb_deferred_io {
1: + long unsigned int delay;
1: + struct mutex lock;
1: + struct list_head pagelist;
1: + void (*first_io)(struct fb_info *);
1: + void (*deferred_io)(struct fb_info *, struct list_head *);
1: +};
1: +
1: +struct fb_ops {
1: + struct module *owner;
1: + int (*fb_open)(struct fb_info *, int);
1: + int (*fb_release)(struct fb_info *, int);
1: + ssize_t (*fb_read)(struct fb_info *, char *, size_t, loff_t *);
1: + ssize_t (*fb_write)(struct fb_info *, const char *, size_t, loff_t *);
1: + int (*fb_check_var)(struct fb_var_screeninfo *, struct fb_info *);
1: + int (*fb_set_par)(struct fb_info *);
1: + int (*fb_setcolreg)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, struct fb_info *);
1: + int (*fb_setcmap)(struct fb_cmap *, struct fb_info *);
1: + int (*fb_blank)(int, struct fb_info *);
1: + int (*fb_pan_display)(struct fb_var_screeninfo *, struct fb_info *);
1: + void (*fb_fillrect)(struct fb_info *, const struct fb_fillrect *);
1: + void (*fb_copyarea)(struct fb_info *, const struct fb_copyarea *);
1: + void (*fb_imageblit)(struct fb_info *, const struct fb_image *);
1: + int (*fb_cursor)(struct fb_info *, struct fb_cursor *);
1: + int (*fb_sync)(struct fb_info *);
1: + int (*fb_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: + int (*fb_compat_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: + int (*fb_mmap)(struct fb_info *, struct vm_area_struct *);
1: + void (*fb_get_caps)(struct fb_info *, struct fb_blit_caps *, struct fb_var_screeninfo *);
1: + void (*fb_destroy)(struct fb_info *);
1: + int (*fb_debug_enter)(struct fb_info *);
1: + int (*fb_debug_leave)(struct fb_info *);
1: +};
1: +
1: +struct fb_tilemap {
1: + __u32 width;
1: + __u32 height;
1: + __u32 depth;
1: + __u32 length;
1: + const __u8 *data;
1: +};
1: +
1: +struct fb_tilerect {
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 index;
1: + __u32 fg;
1: + __u32 bg;
1: + __u32 rop;
1: +};
1: +
1: +struct fb_tilearea {
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: +};
1: +
1: +struct fb_tileblit {
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 fg;
1: + __u32 bg;
1: + __u32 length;
1: + __u32 *indices;
1: +};
1: +
1: +struct fb_tilecursor {
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 mode;
1: + __u32 shape;
1: + __u32 fg;
1: + __u32 bg;
1: +};
1: +
1: +struct fb_tile_ops {
1: + void (*fb_settile)(struct fb_info *, struct fb_tilemap *);
1: + void (*fb_tilecopy)(struct fb_info *, struct fb_tilearea *);
1: + void (*fb_tilefill)(struct fb_info *, struct fb_tilerect *);
1: + void (*fb_tileblit)(struct fb_info *, struct fb_tileblit *);
1: + void (*fb_tilecursor)(struct fb_info *, struct fb_tilecursor *);
1: + int (*fb_get_tilemax)(struct fb_info *);
1: +};
1: +
1: +struct aperture {
1: + resource_size_t base;
1: + resource_size_t size;
1: +};
1: +
1: +struct apertures_struct {
1: + unsigned int count;
1: + struct aperture ranges[0];
1: +};
1: +
1: +enum backlight_type {
1: + BACKLIGHT_RAW = 1,
1: + BACKLIGHT_PLATFORM = 2,
1: + BACKLIGHT_FIRMWARE = 3,
1: + BACKLIGHT_TYPE_MAX = 4,
1: +};
1: +
1: +enum backlight_scale {
1: + BACKLIGHT_SCALE_UNKNOWN = 0,
1: + BACKLIGHT_SCALE_LINEAR = 1,
1: + BACKLIGHT_SCALE_NON_LINEAR = 2,
1: +};
1: +
1: +struct backlight_properties {
1: + int brightness;
1: + int max_brightness;
1: + int power;
1: + int fb_blank;
1: + enum backlight_type type;
1: + unsigned int state;
1: + enum backlight_scale scale;
1: +};
1: +
1: +struct backlight_ops;
1: +
1: +struct backlight_device {
1: + struct backlight_properties props;
1: + struct mutex update_lock;
1: + struct mutex ops_lock;
1: + const struct backlight_ops *ops;
1: + struct notifier_block fb_notif;
1: + struct list_head entry;
1: + struct device dev;
1: + bool fb_bl_on[32];
1: + int use_count;
1: +};
1: +
1: +enum backlight_update_reason {
1: + BACKLIGHT_UPDATE_HOTKEY = 0,
1: + BACKLIGHT_UPDATE_SYSFS = 1,
1: +};
1: +
1: +enum backlight_notification {
1: + BACKLIGHT_REGISTERED = 0,
1: + BACKLIGHT_UNREGISTERED = 1,
1: +};
1: +
1: +struct backlight_ops {
1: + unsigned int options;
1: + int (*update_status)(struct backlight_device *);
1: + int (*get_brightness)(struct backlight_device *);
1: + int (*check_fb)(struct backlight_device *, struct fb_info *);
1: +};
1: +
1: +struct fb_cmap_user {
1: + __u32 start;
1: + __u32 len;
1: + __u16 *red;
1: + __u16 *green;
1: + __u16 *blue;
1: + __u16 *transp;
1: +};
1: +
1: +struct fb_modelist {
1: + struct list_head list;
1: + struct fb_videomode mode;
1: +};
1: +
1: +struct logo_data {
1: + int depth;
1: + int needs_directpalette;
1: + int needs_truepalette;
1: + int needs_cmapreset;
1: + const struct linux_logo *logo;
1: +};
1: +
1: +struct fb_fix_screeninfo32 {
1: + char id[16];
1: + compat_caddr_t smem_start;
1: + u32 smem_len;
1: + u32 type;
1: + u32 type_aux;
1: + u32 visual;
1: + u16 xpanstep;
1: + u16 ypanstep;
1: + u16 ywrapstep;
1: + u32 line_length;
1: + compat_caddr_t mmio_start;
1: + u32 mmio_len;
1: + u32 accel;
1: + u16 reserved[3];
1: +};
1: +
1: +struct fb_cmap32 {
1: + u32 start;
1: + u32 len;
1: + compat_caddr_t red;
1: + compat_caddr_t green;
1: + compat_caddr_t blue;
1: + compat_caddr_t transp;
1: +};
1: +
1: +struct dmt_videomode {
1: + u32 dmt_id;
1: + u32 std_2byte_code;
1: + u32 cvt_3byte_code;
1: + const struct fb_videomode *mode;
1: +};
1: +
1: +enum display_flags {
1: + DISPLAY_FLAGS_HSYNC_LOW = 1,
1: + DISPLAY_FLAGS_HSYNC_HIGH = 2,
1: + DISPLAY_FLAGS_VSYNC_LOW = 4,
1: + DISPLAY_FLAGS_VSYNC_HIGH = 8,
1: + DISPLAY_FLAGS_DE_LOW = 16,
1: + DISPLAY_FLAGS_DE_HIGH = 32,
1: + DISPLAY_FLAGS_PIXDATA_POSEDGE = 64,
1: + DISPLAY_FLAGS_PIXDATA_NEGEDGE = 128,
1: + DISPLAY_FLAGS_INTERLACED = 256,
1: + DISPLAY_FLAGS_DOUBLESCAN = 512,
1: + DISPLAY_FLAGS_DOUBLECLK = 1024,
1: + DISPLAY_FLAGS_SYNC_POSEDGE = 2048,
1: + DISPLAY_FLAGS_SYNC_NEGEDGE = 4096,
1: +};
1: +
1: +struct videomode {
1: + long unsigned int pixelclock;
1: + u32 hactive;
1: + u32 hfront_porch;
1: + u32 hback_porch;
1: + u32 hsync_len;
1: + u32 vactive;
1: + u32 vfront_porch;
1: + u32 vback_porch;
1: + u32 vsync_len;
1: + enum display_flags flags;
1: +};
1: +
1: +struct broken_edid {
1: + u8 manufacturer[4];
1: + u32 model;
1: + u32 fix;
1: +};
1: +
1: +struct __fb_timings {
1: + u32 dclk;
1: + u32 hfreq;
1: + u32 vfreq;
1: + u32 hactive;
1: + u32 vactive;
1: + u32 hblank;
1: + u32 vblank;
1: + u32 htotal;
1: + u32 vtotal;
1: +};
1: +
1: +typedef unsigned int u_int;
1: +
1: +struct fb_cvt_data {
1: + u32 xres;
1: + u32 yres;
1: + u32 refresh;
1: + u32 f_refresh;
1: + u32 pixclock;
1: + u32 hperiod;
1: + u32 hblank;
1: + u32 hfreq;
1: + u32 htotal;
1: + u32 vtotal;
1: + u32 vsync;
1: + u32 hsync;
1: + u32 h_front_porch;
1: + u32 h_back_porch;
1: + u32 v_front_porch;
1: + u32 v_back_porch;
1: + u32 h_margin;
1: + u32 v_margin;
1: + u32 interlace;
1: + u32 aspect_ratio;
1: + u32 active_pixels;
1: + u32 flags;
1: + u32 status;
1: +};
1: +
1: +typedef unsigned char u_char;
1: +
1: +typedef short unsigned int u_short;
1: +
1: +struct fb_con2fbmap {
1: + __u32 console;
1: + __u32 framebuffer;
1: +};
1: +
1: +struct vc {
1: + struct vc_data *d;
1: + struct work_struct SAK_work;
1: +};
1: +
1: +struct fbcon_display {
1: + const u_char *fontdata;
1: + int userfont;
1: + u_short scrollmode;
1: + u_short inverse;
1: + short int yscroll;
1: + int vrows;
1: + int cursor_shape;
1: + int con_rotate;
1: + u32 xres_virtual;
1: + u32 yres_virtual;
1: + u32 height;
1: + u32 width;
1: + u32 bits_per_pixel;
1: + u32 grayscale;
1: + u32 nonstd;
1: + u32 accel_flags;
1: + u32 rotate;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + const struct fb_videomode *mode;
1: +};
1: +
1: +struct fbcon_ops {
1: + void (*bmove)(struct vc_data *, struct fb_info *, int, int, int, int, int, int);
1: + void (*clear)(struct vc_data *, struct fb_info *, int, int, int, int);
1: + void (*putcs)(struct vc_data *, struct fb_info *, const short unsigned int *, int, int, int, int, int);
1: + void (*clear_margins)(struct vc_data *, struct fb_info *, int, int);
1: + void (*cursor)(struct vc_data *, struct fb_info *, int, int, int);
1: + int (*update_start)(struct fb_info *);
1: + int (*rotate_font)(struct fb_info *, struct vc_data *);
1: + struct fb_var_screeninfo var;
1: + struct timer_list cursor_timer;
1: + struct fb_cursor cursor_state;
1: + struct fbcon_display *p;
1: + struct fb_info *info;
1: + int currcon;
1: + int cur_blink_jiffies;
1: + int cursor_flash;
1: + int cursor_reset;
1: + int blank_state;
1: + int graphics;
1: + int save_graphics;
1: + int flags;
1: + int rotate;
1: + int cur_rotate;
1: + char *cursor_data;
1: + u8 *fontbuffer;
1: + u8 *fontdata;
1: + u8 *cursor_src;
1: + u32 cursor_size;
1: + u32 fd_size;
1: +};
1: +
1: +enum {
1: + FBCON_LOGO_CANSHOW = 4294967295,
1: + FBCON_LOGO_DRAW = 4294967294,
1: + FBCON_LOGO_DONTSHOW = 4294967293,
1: +};
1: +
1: +enum {
1: + CLCD_CAP_RGB444 = 1,
1: + CLCD_CAP_RGB5551 = 2,
1: + CLCD_CAP_RGB565 = 4,
1: + CLCD_CAP_RGB888 = 8,
1: + CLCD_CAP_BGR444 = 16,
1: + CLCD_CAP_BGR5551 = 32,
1: + CLCD_CAP_BGR565 = 64,
1: + CLCD_CAP_BGR888 = 128,
1: + CLCD_CAP_444 = 17,
1: + CLCD_CAP_5551 = 34,
1: + CLCD_CAP_565 = 68,
1: + CLCD_CAP_888 = 136,
1: + CLCD_CAP_RGB = 15,
1: + CLCD_CAP_BGR = 240,
1: + CLCD_CAP_ALL = 255,
1: +};
1: +
1: +struct clcd_panel {
1: + struct fb_videomode mode;
1: + short int width;
1: + short int height;
1: + u32 tim2;
1: + u32 tim3;
1: + u32 cntl;
1: + u32 caps;
1: + unsigned int bpp: 8;
1: + unsigned int fixedtimings: 1;
1: + unsigned int grayscale: 1;
1: + unsigned int connector;
1: + struct backlight_device *backlight;
1: + bool bgr_connection;
1: +};
1: +
1: +struct clcd_regs {
1: + u32 tim0;
1: + u32 tim1;
1: + u32 tim2;
1: + u32 tim3;
1: + u32 cntl;
1: + long unsigned int pixclock;
1: +};
1: +
1: +struct clcd_fb;
1: +
1: +struct clcd_board {
1: + const char *name;
1: + u32 caps;
1: + int (*check)(struct clcd_fb *, struct fb_var_screeninfo *);
1: + void (*decode)(struct clcd_fb *, struct clcd_regs *);
1: + void (*disable)(struct clcd_fb *);
1: + void (*enable)(struct clcd_fb *);
1: + int (*setup)(struct clcd_fb *);
1: + int (*mmap)(struct clcd_fb *, struct vm_area_struct *);
1: + void (*remove)(struct clcd_fb *);
1: +};
1: +
1: +struct clcd_fb {
1: + struct fb_info fb;
1: + struct amba_device *dev;
1: + struct clk *clk;
1: + struct clcd_panel *panel;
1: + struct clcd_board *board;
1: + void *board_data;
1: + void *regs;
1: + u16 off_ienb;
1: + u16 off_cntl;
1: + u32 clcd_cntl;
1: + u32 cmap[16];
1: + bool clk_enabled;
1: +};
1: +
1: +struct timing_entry {
1: + u32 min;
1: + u32 typ;
1: + u32 max;
1: +};
1: +
1: +struct display_timing {
1: + struct timing_entry pixelclock;
1: + struct timing_entry hactive;
1: + struct timing_entry hfront_porch;
1: + struct timing_entry hback_porch;
1: + struct timing_entry hsync_len;
1: + struct timing_entry vactive;
1: + struct timing_entry vfront_porch;
1: + struct timing_entry vback_porch;
1: + struct timing_entry vsync_len;
1: + enum display_flags flags;
1: +};
1: +
1: +struct xenfb_update {
1: + uint8_t type;
1: + int32_t x;
1: + int32_t y;
1: + int32_t width;
1: + int32_t height;
1: +};
1: +
1: +struct xenfb_resize {
1: + uint8_t type;
1: + int32_t width;
1: + int32_t height;
1: + int32_t stride;
1: + int32_t depth;
1: + int32_t offset;
1: +};
1: +
1: +union xenfb_out_event {
1: + uint8_t type;
1: + struct xenfb_update update;
1: + struct xenfb_resize resize;
1: + char pad[40];
1: +};
1: +
1: +struct xenfb_page {
1: + uint32_t in_cons;
1: + uint32_t in_prod;
1: + uint32_t out_cons;
1: + uint32_t out_prod;
1: + int32_t width;
1: + int32_t height;
1: + uint32_t line_length;
1: + uint32_t mem_length;
1: + uint8_t depth;
1: + long unsigned int pd[256];
1: +};
1: +
1: +enum xenbus_state {
1: + XenbusStateUnknown = 0,
1: + XenbusStateInitialising = 1,
1: + XenbusStateInitWait = 2,
1: + XenbusStateInitialised = 3,
1: + XenbusStateConnected = 4,
1: + XenbusStateClosing = 5,
1: + XenbusStateClosed = 6,
1: + XenbusStateReconfiguring = 7,
1: + XenbusStateReconfigured = 8,
1: +};
1: +
1: +struct xenbus_watch {
1: + struct list_head list;
1: + const char *node;
1: + unsigned int nr_pending;
1: + bool (*will_handle)(struct xenbus_watch *, const char *, const char *);
1: + void (*callback)(struct xenbus_watch *, const char *, const char *);
1: +};
1: +
1: +struct xenbus_device {
1: + const char *devicetype;
1: + const char *nodename;
1: + const char *otherend;
1: + int otherend_id;
1: + struct xenbus_watch otherend_watch;
1: + struct device dev;
1: + enum xenbus_state state;
1: + struct completion down;
1: + struct work_struct work;
1: + struct semaphore reclaim_sem;
1: +};
1: +
1: +struct xenbus_device_id {
1: + char devicetype[32];
1: +};
1: +
1: +struct xenbus_driver {
1: + const char *name;
1: + const struct xenbus_device_id *ids;
1: + bool allow_rebind;
1: + int (*probe)(struct xenbus_device *, const struct xenbus_device_id *);
1: + void (*otherend_changed)(struct xenbus_device *, enum xenbus_state);
1: + int (*remove)(struct xenbus_device *);
1: + int (*suspend)(struct xenbus_device *);
1: + int (*resume)(struct xenbus_device *);
1: + int (*uevent)(struct xenbus_device *, struct kobj_uevent_env *);
1: + struct device_driver driver;
1: + int (*read_otherend_details)(struct xenbus_device *);
1: + int (*is_ready)(struct xenbus_device *);
1: + void (*reclaim_memory)(struct xenbus_device *);
1: +};
1: +
1: +struct xenbus_transaction {
1: + u32 id;
1: +};
1: +
1: +struct xenfb_info {
1: + unsigned char *fb;
1: + struct fb_info *fb_info;
1: + int x1;
1: + int y1;
1: + int x2;
1: + int y2;
1: + spinlock_t dirty_lock;
1: + int nr_pages;
1: + int irq;
1: + struct xenfb_page *page;
1: + long unsigned int *gfns;
1: + int update_wanted;
1: + int feature_resize;
1: + struct xenfb_resize resize;
1: + int resize_dpy;
1: + spinlock_t resize_lock;
1: + struct xenbus_device *xbdev;
1: +};
1: +
1: +enum {
1: + KPARAM_MEM = 0,
1: + KPARAM_WIDTH = 1,
1: + KPARAM_HEIGHT = 2,
1: + KPARAM_CNT = 3,
1: +};
1: +
1: +struct acpi_table_bgrt {
1: + struct acpi_table_header header;
1: + u16 version;
1: + u8 status;
1: + u8 image_type;
1: + u64 image_address;
1: + u32 image_offset_x;
1: + u32 image_offset_y;
1: +};
1: +
1: +enum drm_panel_orientation {
1: + DRM_MODE_PANEL_ORIENTATION_UNKNOWN = 4294967295,
1: + DRM_MODE_PANEL_ORIENTATION_NORMAL = 0,
1: + DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP = 1,
1: + DRM_MODE_PANEL_ORIENTATION_LEFT_UP = 2,
1: + DRM_MODE_PANEL_ORIENTATION_RIGHT_UP = 3,
1: +};
1: +
1: +struct bmp_file_header {
1: + u16 id;
1: + u32 file_size;
1: + u32 reserved;
1: + u32 bitmap_offset;
1: +} __attribute__((packed));
1: +
1: +struct bmp_dib_header {
1: + u32 dib_header_size;
1: + s32 width;
1: + s32 height;
1: + u16 planes;
1: + u16 bpp;
1: + u32 compression;
1: + u32 bitmap_size;
1: + u32 horz_resolution;
1: + u32 vert_resolution;
1: + u32 colors_used;
1: + u32 colors_important;
1: +};
1: +
1: +struct simplefb_format {
1: + const char *name;
1: + u32 bits_per_pixel;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + u32 fourcc;
1: +};
1: +
1: +struct simplefb_platform_data {
1: + u32 width;
1: + u32 height;
1: + u32 stride;
1: + const char *format;
1: +};
1: +
1: +struct simplefb_params {
1: + u32 width;
1: + u32 height;
1: + u32 stride;
1: + struct simplefb_format *format;
1: +};
1: +
1: +struct simplefb_par {
1: + u32 palette[16];
1: + bool clks_enabled;
1: + unsigned int clk_count;
1: + struct clk **clks;
1: + bool regulators_enabled;
1: + u32 regulator_count;
1: + struct regulator **regulators;
1: +};
1: +
1: +struct display_timings {
1: + unsigned int num_timings;
1: + unsigned int native_mode;
1: + struct display_timing **timings;
1: +};
1: +
1: +enum ipmi_addr_src {
1: + SI_INVALID = 0,
1: + SI_HOTMOD = 1,
1: + SI_HARDCODED = 2,
1: + SI_SPMI = 3,
1: + SI_ACPI = 4,
1: + SI_SMBIOS = 5,
1: + SI_PCI = 6,
1: + SI_DEVICETREE = 7,
1: + SI_PLATFORM = 8,
1: + SI_LAST = 9,
1: +};
1: +
1: +struct dmi_header {
1: + u8 type;
1: + u8 length;
1: + u16 handle;
1: +};
1: +
1: +enum si_type {
1: + SI_TYPE_INVALID = 0,
1: + SI_KCS = 1,
1: + SI_SMIC = 2,
1: + SI_BT = 3,
1: +};
1: +
1: +enum ipmi_addr_space {
1: + IPMI_IO_ADDR_SPACE = 0,
1: + IPMI_MEM_ADDR_SPACE = 1,
1: +};
1: +
1: +enum ipmi_plat_interface_type {
1: + IPMI_PLAT_IF_SI = 0,
1: + IPMI_PLAT_IF_SSIF = 1,
1: +};
1: +
1: +struct ipmi_plat_data {
1: + enum ipmi_plat_interface_type iftype;
1: + unsigned int type;
1: + unsigned int space;
1: + long unsigned int addr;
1: + unsigned int regspacing;
1: + unsigned int regsize;
1: + unsigned int regshift;
1: + unsigned int irq;
1: + unsigned int slave_addr;
1: + enum ipmi_addr_src addr_source;
1: +};
1: +
1: +struct ipmi_dmi_info {
1: + enum si_type si_type;
1: + unsigned int space;
1: + long unsigned int addr;
1: + u8 slave_addr;
1: + struct ipmi_dmi_info *next;
1: +};
1: +
1: +typedef u16 acpi_owner_id;
1: +
1: +union acpi_name_union {
1: + u32 integer;
1: + char ascii[4];
1: +};
1: +
1: +struct acpi_table_desc {
1: + acpi_physical_address address;
1: + struct acpi_table_header *pointer;
1: + u32 length;
1: + union acpi_name_union signature;
1: + acpi_owner_id owner_id;
1: + u8 flags;
1: + u16 validation_count;
1: +};
1: +
1: +struct acpi_madt_local_apic {
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u8 id;
1: + u32 lapic_flags;
1: +};
1: +
1: +struct acpi_madt_io_apic {
1: + struct acpi_subtable_header header;
1: + u8 id;
1: + u8 reserved;
1: + u32 address;
1: + u32 global_irq_base;
1: +};
1: +
1: +struct acpi_madt_interrupt_override {
1: + struct acpi_subtable_header header;
1: + u8 bus;
1: + u8 source_irq;
1: + u32 global_irq;
1: + u16 inti_flags;
1: +} __attribute__((packed));
1: +
1: +struct acpi_madt_nmi_source {
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u32 global_irq;
1: +};
1: +
1: +struct acpi_madt_local_apic_nmi {
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u16 inti_flags;
1: + u8 lint;
1: +} __attribute__((packed));
1: +
1: +struct acpi_madt_local_apic_override {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct acpi_madt_io_sapic {
1: + struct acpi_subtable_header header;
1: + u8 id;
1: + u8 reserved;
1: + u32 global_irq_base;
1: + u64 address;
1: +};
1: +
1: +struct acpi_madt_local_sapic {
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u8 id;
1: + u8 eid;
1: + u8 reserved[3];
1: + u32 lapic_flags;
1: + u32 uid;
1: + char uid_string[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_madt_interrupt_source {
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u8 type;
1: + u8 id;
1: + u8 eid;
1: + u8 io_sapic_vector;
1: + u32 global_irq;
1: + u32 flags;
1: +};
1: +
1: +struct acpi_madt_local_x2apic {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 local_apic_id;
1: + u32 lapic_flags;
1: + u32 uid;
1: +};
1: +
1: +struct acpi_madt_local_x2apic_nmi {
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u32 uid;
1: + u8 lint;
1: + u8 reserved[3];
1: +};
1: +
1: +struct acpi_subtable_proc {
1: + int id;
1: + acpi_tbl_entry_handler handler;
1: + int count;
1: +};
1: +
1: +enum acpi_subtable_type {
1: + ACPI_SUBTABLE_COMMON = 0,
1: + ACPI_SUBTABLE_HMAT = 1,
1: +};
1: +
1: +struct acpi_subtable_entry {
1: + union acpi_subtable_headers *hdr;
1: + enum acpi_subtable_type type;
1: +};
1: +
1: +typedef char *acpi_string;
1: +
1: +struct acpi_osi_entry {
1: + char string[64];
1: + bool enable;
1: +};
1: +
1: +struct acpi_osi_config {
1: + u8 default_disabling;
1: + unsigned int linux_enable: 1;
1: + unsigned int linux_dmi: 1;
1: + unsigned int linux_cmdline: 1;
1: + unsigned int darwin_enable: 1;
1: + unsigned int darwin_dmi: 1;
1: + unsigned int darwin_cmdline: 1;
1: +};
1: +
1: +struct acpi_predefined_names {
1: + const char *name;
1: + u8 type;
1: + char *val;
1: +};
1: +
1: +typedef u32 (*acpi_osd_handler)(void *);
1: +
1: +typedef void (*acpi_osd_exec_callback)(void *);
1: +
1: +typedef u32 (*acpi_gpe_handler)(acpi_handle, u32, void *);
1: +
1: +typedef void (*acpi_notify_handler)(acpi_handle, u32, void *);
1: +
1: +typedef void (*acpi_object_handler)(acpi_handle, void *);
1: +
1: +typedef acpi_status (*acpi_adr_space_handler)(u32, acpi_physical_address, u32, u64 *, void *, void *);
1: +
1: +typedef acpi_status (*acpi_adr_space_setup)(acpi_handle, u32, void *, void **);
1: +
1: +struct acpi_pci_id {
1: + u16 segment;
1: + u16 bus;
1: + u16 device;
1: + u16 function;
1: +};
1: +
1: +struct acpi_mem_mapping {
1: + acpi_physical_address physical_address;
1: + u8 *logical_address;
1: + acpi_size length;
1: + struct acpi_mem_mapping *next_mm;
1: +};
1: +
1: +struct acpi_mem_space_context {
1: + u32 length;
1: + acpi_physical_address address;
1: + struct acpi_mem_mapping *cur_mm;
1: + struct acpi_mem_mapping *first_mm;
1: +};
1: +
1: +typedef enum {
1: + OSL_GLOBAL_LOCK_HANDLER = 0,
1: + OSL_NOTIFY_HANDLER = 1,
1: + OSL_GPE_HANDLER = 2,
1: + OSL_DEBUGGER_MAIN_THREAD = 3,
1: + OSL_DEBUGGER_EXEC_THREAD = 4,
1: + OSL_EC_POLL_HANDLER = 5,
1: + OSL_EC_BURST_HANDLER = 6,
1: +} acpi_execute_type;
1: +
1: +union acpi_operand_object;
1: +
1: +struct acpi_namespace_node {
1: + union acpi_operand_object *object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 flags;
1: + union acpi_name_union name;
1: + struct acpi_namespace_node *parent;
1: + struct acpi_namespace_node *child;
1: + struct acpi_namespace_node *peer;
1: + acpi_owner_id owner_id;
1: +};
1: +
1: +struct acpi_object_common {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: +};
1: +
1: +struct acpi_object_integer {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 fill[3];
1: + u64 value;
1: +};
1: +
1: +struct acpi_object_string {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + char *pointer;
1: + u32 length;
1: +};
1: +
1: +struct acpi_object_buffer {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 *pointer;
1: + u32 length;
1: + u32 aml_length;
1: + u8 *aml_start;
1: + struct acpi_namespace_node *node;
1: +};
1: +
1: +struct acpi_object_package {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object **elements;
1: + u8 *aml_start;
1: + u32 aml_length;
1: + u32 count;
1: +};
1: +
1: +struct acpi_object_event {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + void *os_semaphore;
1: +};
1: +
1: +struct acpi_walk_state;
1: +
1: +typedef acpi_status (*acpi_internal_method)(struct acpi_walk_state *);
1: +
1: +struct acpi_object_method {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 info_flags;
1: + u8 param_count;
1: + u8 sync_level;
1: + union acpi_operand_object *mutex;
1: + union acpi_operand_object *node;
1: + u8 *aml_start;
1: + union {
1: + acpi_internal_method implementation;
1: + union acpi_operand_object *handler;
1: + } dispatch;
1: + u32 aml_length;
1: + acpi_owner_id owner_id;
1: + u8 thread_count;
1: +};
1: +
1: +struct acpi_thread_state;
1: +
1: +struct acpi_object_mutex {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 sync_level;
1: + u16 acquisition_depth;
1: + void *os_mutex;
1: + u64 thread_id;
1: + struct acpi_thread_state *owner_thread;
1: + union acpi_operand_object *prev;
1: + union acpi_operand_object *next;
1: + struct acpi_namespace_node *node;
1: + u8 original_sync_level;
1: +};
1: +
1: +struct acpi_object_region {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 space_id;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *handler;
1: + union acpi_operand_object *next;
1: + acpi_physical_address address;
1: + u32 length;
1: +};
1: +
1: +struct acpi_object_notify_common {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: +};
1: +
1: +struct acpi_gpe_block_info;
1: +
1: +struct acpi_object_device {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + struct acpi_gpe_block_info *gpe_block;
1: +};
1: +
1: +struct acpi_object_power_resource {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + u32 system_level;
1: + u32 resource_order;
1: +};
1: +
1: +struct acpi_object_processor {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 proc_id;
1: + u8 length;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + acpi_io_address address;
1: +};
1: +
1: +struct acpi_object_thermal_zone {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: +};
1: +
1: +struct acpi_object_field_common {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *region_obj;
1: +};
1: +
1: +struct acpi_object_region_field {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + u16 resource_length;
1: + union acpi_operand_object *region_obj;
1: + u8 *resource_buffer;
1: + u16 pin_number_index;
1: + u8 *internal_pcc_buffer;
1: +};
1: +
1: +struct acpi_object_buffer_field {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + u8 is_create_field;
1: + union acpi_operand_object *buffer_obj;
1: +};
1: +
1: +struct acpi_object_bank_field {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *region_obj;
1: + union acpi_operand_object *bank_obj;
1: +};
1: +
1: +struct acpi_object_index_field {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *index_obj;
1: + union acpi_operand_object *data_obj;
1: +};
1: +
1: +struct acpi_object_notify_handler {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *node;
1: + u32 handler_type;
1: + acpi_notify_handler handler;
1: + void *context;
1: + union acpi_operand_object *next[2];
1: +};
1: +
1: +struct acpi_object_addr_handler {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 space_id;
1: + u8 handler_flags;
1: + acpi_adr_space_handler handler;
1: + struct acpi_namespace_node *node;
1: + void *context;
1: + acpi_adr_space_setup setup;
1: + union acpi_operand_object *region_list;
1: + union acpi_operand_object *next;
1: +};
1: +
1: +struct acpi_object_reference {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 class;
1: + u8 target_type;
1: + u8 resolved;
1: + void *object;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object **where;
1: + u8 *index_pointer;
1: + u8 *aml;
1: + u32 value;
1: +};
1: +
1: +struct acpi_object_extra {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *method_REG;
1: + struct acpi_namespace_node *scope_node;
1: + void *region_context;
1: + u8 *aml_start;
1: + u32 aml_length;
1: +};
1: +
1: +struct acpi_object_data {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + acpi_object_handler handler;
1: + void *pointer;
1: +};
1: +
1: +struct acpi_object_cache_list {
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *next;
1: +};
1: +
1: +union acpi_operand_object {
1: + struct acpi_object_common common;
1: + struct acpi_object_integer integer;
1: + struct acpi_object_string string;
1: + struct acpi_object_buffer buffer;
1: + struct acpi_object_package package;
1: + struct acpi_object_event event;
1: + struct acpi_object_method method;
1: + struct acpi_object_mutex mutex;
1: + struct acpi_object_region region;
1: + struct acpi_object_notify_common common_notify;
1: + struct acpi_object_device device;
1: + struct acpi_object_power_resource power_resource;
1: + struct acpi_object_processor processor;
1: + struct acpi_object_thermal_zone thermal_zone;
1: + struct acpi_object_field_common common_field;
1: + struct acpi_object_region_field field;
1: + struct acpi_object_buffer_field buffer_field;
1: + struct acpi_object_bank_field bank_field;
1: + struct acpi_object_index_field index_field;
1: + struct acpi_object_notify_handler notify;
1: + struct acpi_object_addr_handler address_space;
1: + struct acpi_object_reference reference;
1: + struct acpi_object_extra extra;
1: + struct acpi_object_data data;
1: + struct acpi_object_cache_list cache;
1: + struct acpi_namespace_node node;
1: +};
1: +
1: +union acpi_parse_object;
1: +
1: +union acpi_generic_state;
1: +
1: +struct acpi_parse_state {
1: + u8 *aml_start;
1: + u8 *aml;
1: + u8 *aml_end;
1: + u8 *pkg_start;
1: + u8 *pkg_end;
1: + union acpi_parse_object *start_op;
1: + struct acpi_namespace_node *start_node;
1: + union acpi_generic_state *scope;
1: + union acpi_parse_object *start_scope;
1: + u32 aml_size;
1: +};
1: +
1: +typedef acpi_status (*acpi_parse_downwards)(struct acpi_walk_state *, union acpi_parse_object **);
1: +
1: +typedef acpi_status (*acpi_parse_upwards)(struct acpi_walk_state *);
1: +
1: +struct acpi_opcode_info;
1: +
1: +struct acpi_walk_state {
1: + struct acpi_walk_state *next;
1: + u8 descriptor_type;
1: + u8 walk_type;
1: + u16 opcode;
1: + u8 next_op_info;
1: + u8 num_operands;
1: + u8 operand_index;
1: + acpi_owner_id owner_id;
1: + u8 last_predicate;
1: + u8 current_result;
1: + u8 return_used;
1: + u8 scope_depth;
1: + u8 pass_number;
1: + u8 namespace_override;
1: + u8 result_size;
1: + u8 result_count;
1: + u8 *aml;
1: + u32 arg_types;
1: + u32 method_breakpoint;
1: + u32 user_breakpoint;
1: + u32 parse_flags;
1: + struct acpi_parse_state parser_state;
1: + u32 prev_arg_types;
1: + u32 arg_count;
1: + u16 method_nesting_depth;
1: + u8 method_is_nested;
1: + struct acpi_namespace_node arguments[7];
1: + struct acpi_namespace_node local_variables[8];
1: + union acpi_operand_object *operands[9];
1: + union acpi_operand_object **params;
1: + u8 *aml_last_while;
1: + union acpi_operand_object **caller_return_desc;
1: + union acpi_generic_state *control_state;
1: + struct acpi_namespace_node *deferred_node;
1: + union acpi_operand_object *implicit_return_obj;
1: + struct acpi_namespace_node *method_call_node;
1: + union acpi_parse_object *method_call_op;
1: + union acpi_operand_object *method_desc;
1: + struct acpi_namespace_node *method_node;
1: + char *method_pathname;
1: + union acpi_parse_object *op;
1: + const struct acpi_opcode_info *op_info;
1: + union acpi_parse_object *origin;
1: + union acpi_operand_object *result_obj;
1: + union acpi_generic_state *results;
1: + union acpi_operand_object *return_desc;
1: + union acpi_generic_state *scope_info;
1: + union acpi_parse_object *prev_op;
1: + union acpi_parse_object *next_op;
1: + struct acpi_thread_state *thread;
1: + acpi_parse_downwards descending_callback;
1: + acpi_parse_upwards ascending_callback;
1: +};
1: +
1: +struct acpi_gpe_handler_info {
1: + acpi_gpe_handler address;
1: + void *context;
1: + struct acpi_namespace_node *method_node;
1: + u8 original_flags;
1: + u8 originally_enabled;
1: +};
1: +
1: +struct acpi_gpe_notify_info {
1: + struct acpi_namespace_node *device_node;
1: + struct acpi_gpe_notify_info *next;
1: +};
1: +
1: +union acpi_gpe_dispatch_info {
1: + struct acpi_namespace_node *method_node;
1: + struct acpi_gpe_handler_info *handler;
1: + struct acpi_gpe_notify_info *notify_list;
1: +};
1: +
1: +struct acpi_gpe_register_info;
1: +
1: +struct acpi_gpe_event_info {
1: + union acpi_gpe_dispatch_info dispatch;
1: + struct acpi_gpe_register_info *register_info;
1: + u8 flags;
1: + u8 gpe_number;
1: + u8 runtime_count;
1: + u8 disable_for_dispatch;
1: +};
1: +
1: +struct acpi_gpe_address {
1: + u8 space_id;
1: + u64 address;
1: +};
1: +
1: +struct acpi_gpe_register_info {
1: + struct acpi_gpe_address status_address;
1: + struct acpi_gpe_address enable_address;
1: + u16 base_gpe_number;
1: + u8 enable_for_wake;
1: + u8 enable_for_run;
1: + u8 mask_for_run;
1: + u8 enable_mask;
1: +};
1: +
1: +struct acpi_gpe_xrupt_info;
1: +
1: +struct acpi_gpe_block_info {
1: + struct acpi_namespace_node *node;
1: + struct acpi_gpe_block_info *previous;
1: + struct acpi_gpe_block_info *next;
1: + struct acpi_gpe_xrupt_info *xrupt_block;
1: + struct acpi_gpe_register_info *register_info;
1: + struct acpi_gpe_event_info *event_info;
1: + u64 address;
1: + u32 register_count;
1: + u16 gpe_count;
1: + u16 block_base_number;
1: + u8 space_id;
1: + u8 initialized;
1: +};
1: +
1: +struct acpi_gpe_xrupt_info {
1: + struct acpi_gpe_xrupt_info *previous;
1: + struct acpi_gpe_xrupt_info *next;
1: + struct acpi_gpe_block_info *gpe_block_list_head;
1: + u32 interrupt_number;
1: +};
1: +
1: +struct acpi_common_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: +};
1: +
1: +struct acpi_update_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + union acpi_operand_object *object;
1: +};
1: +
1: +struct acpi_pkg_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u32 index;
1: + union acpi_operand_object *source_object;
1: + union acpi_operand_object *dest_object;
1: + struct acpi_walk_state *walk_state;
1: + void *this_target_obj;
1: + u32 num_packages;
1: +};
1: +
1: +struct acpi_control_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u16 opcode;
1: + union acpi_parse_object *predicate_op;
1: + u8 *aml_predicate_start;
1: + u8 *package_end;
1: + u64 loop_timeout;
1: +};
1: +
1: +union acpi_parse_value {
1: + u64 integer;
1: + u32 size;
1: + char *string;
1: + u8 *buffer;
1: + char *name;
1: + union acpi_parse_object *arg;
1: +};
1: +
1: +struct acpi_parse_obj_common {
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: +};
1: +
1: +struct acpi_parse_obj_named {
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: + char *path;
1: + u8 *data;
1: + u32 length;
1: + u32 name;
1: +};
1: +
1: +struct acpi_parse_obj_asl {
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: + union acpi_parse_object *child;
1: + union acpi_parse_object *parent_method;
1: + char *filename;
1: + u8 file_changed;
1: + char *parent_filename;
1: + char *external_name;
1: + char *namepath;
1: + char name_seg[4];
1: + u32 extra_value;
1: + u32 column;
1: + u32 line_number;
1: + u32 logical_line_number;
1: + u32 logical_byte_offset;
1: + u32 end_line;
1: + u32 end_logical_line;
1: + u32 acpi_btype;
1: + u32 aml_length;
1: + u32 aml_subtree_length;
1: + u32 final_aml_length;
1: + u32 final_aml_offset;
1: + u32 compile_flags;
1: + u16 parse_opcode;
1: + u8 aml_opcode_length;
1: + u8 aml_pkg_len_bytes;
1: + u8 extra;
1: + char parse_op_name[20];
1: +};
1: +
1: +union acpi_parse_object {
1: + struct acpi_parse_obj_common common;
1: + struct acpi_parse_obj_named named;
1: + struct acpi_parse_obj_asl asl;
1: +};
1: +
1: +struct acpi_scope_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + struct acpi_namespace_node *node;
1: +};
1: +
1: +struct acpi_pscope_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u32 arg_count;
1: + union acpi_parse_object *op;
1: + u8 *arg_end;
1: + u8 *pkg_end;
1: + u32 arg_list;
1: +};
1: +
1: +struct acpi_thread_state {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u8 current_sync_level;
1: + struct acpi_walk_state *walk_state_list;
1: + union acpi_operand_object *acquired_mutex_list;
1: + u64 thread_id;
1: +};
1: +
1: +struct acpi_result_values {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + union acpi_operand_object *obj_desc[8];
1: +};
1: +
1: +struct acpi_global_notify_handler {
1: + acpi_notify_handler handler;
1: + void *context;
1: +};
1: +
1: +struct acpi_notify_info {
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u8 handler_list_id;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *handler_list_head;
1: + struct acpi_global_notify_handler *global;
1: +};
1: +
1: +union acpi_generic_state {
1: + struct acpi_common_state common;
1: + struct acpi_control_state control;
1: + struct acpi_update_state update;
1: + struct acpi_scope_state scope;
1: + struct acpi_pscope_state parse_scope;
1: + struct acpi_pkg_state pkg;
1: + struct acpi_thread_state thread;
1: + struct acpi_result_values results;
1: + struct acpi_notify_info notify;
1: +};
1: +
1: +struct acpi_opcode_info {
1: + u32 parse_args;
1: + u32 runtime_args;
1: + u16 flags;
1: + u8 object_type;
1: + u8 class;
1: + u8 type;
1: +};
1: +
1: +struct acpi_os_dpc {
1: + acpi_osd_exec_callback function;
1: + void *context;
1: + struct work_struct work;
1: +};
1: +
1: +struct acpi_ioremap {
1: + struct list_head list;
1: + void *virt;
1: + acpi_physical_address phys;
1: + acpi_size size;
1: + union {
1: + long unsigned int refcount;
1: + struct rcu_work rwork;
1: + } track;
1: +};
1: +
1: +struct acpi_hp_work {
1: + struct work_struct work;
1: + struct acpi_device *adev;
1: + u32 src;
1: +};
1: +
1: +struct acpi_object_list {
1: + u32 count;
1: + union acpi_object *pointer;
1: +};
1: +
1: +struct acpi_pld_info {
1: + u8 revision;
1: + u8 ignore_color;
1: + u8 red;
1: + u8 green;
1: + u8 blue;
1: + u16 width;
1: + u16 height;
1: + u8 user_visible;
1: + u8 dock;
1: + u8 lid;
1: + u8 panel;
1: + u8 vertical_position;
1: + u8 horizontal_position;
1: + u8 shape;
1: + u8 group_orientation;
1: + u8 group_token;
1: + u8 group_position;
1: + u8 bay;
1: + u8 ejectable;
1: + u8 ospm_eject_required;
1: + u8 cabinet_number;
1: + u8 card_cage_number;
1: + u8 reference;
1: + u8 rotation;
1: + u8 order;
1: + u8 reserved;
1: + u16 vertical_offset;
1: + u16 horizontal_offset;
1: +};
1: +
1: +struct acpi_handle_list {
1: + u32 count;
1: + acpi_handle handles[10];
1: +};
1: +
1: +enum acpi_predicate {
1: + all_versions = 0,
1: + less_than_or_equal = 1,
1: + equal = 2,
1: + greater_than_or_equal = 3,
1: +};
1: +
1: +struct acpi_platform_list {
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: + char *table;
1: + enum acpi_predicate pred;
1: + char *reason;
1: + u32 data;
1: +};
1: +
1: +struct acpi_device_bus_id {
1: + const char *bus_id;
1: + unsigned int instance_no;
1: + struct list_head node;
1: +};
1: +
1: +struct acpi_dev_match_info {
1: + struct acpi_device_id hid[2];
1: + const char *uid;
1: + s64 hrv;
1: +};
1: +
1: +struct nvs_region {
1: + __u64 phys_start;
1: + __u64 size;
1: + struct list_head node;
1: +};
1: +
1: +struct acpi_wakeup_handler {
1: + struct list_head list_node;
1: + bool (*wakeup)(void *);
1: + void *context;
1: +};
1: +
1: +struct acpi_hardware_id {
1: + struct list_head list;
1: + const char *id;
1: +};
1: +
1: +struct acpi_data_node {
1: + const char *name;
1: + acpi_handle handle;
1: + struct fwnode_handle fwnode;
1: + struct fwnode_handle *parent;
1: + struct acpi_device_data data;
1: + struct list_head sibling;
1: + struct kobject kobj;
1: + struct completion kobj_done;
1: +};
1: +
1: +struct acpi_data_node_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct acpi_data_node *, char *);
1: + ssize_t (*store)(struct acpi_data_node *, const char *, size_t);
1: +};
1: +
1: +struct pm_domain_data {
1: + struct list_head list_node;
1: + struct device *dev;
1: +};
1: +
1: +typedef u32 (*acpi_event_handler)(void *);
1: +
1: +enum acpi_bus_device_type {
1: + ACPI_BUS_TYPE_DEVICE = 0,
1: + ACPI_BUS_TYPE_POWER = 1,
1: + ACPI_BUS_TYPE_PROCESSOR = 2,
1: + ACPI_BUS_TYPE_THERMAL = 3,
1: + ACPI_BUS_TYPE_POWER_BUTTON = 4,
1: + ACPI_BUS_TYPE_SLEEP_BUTTON = 5,
1: + ACPI_BUS_TYPE_ECDT_EC = 6,
1: + ACPI_BUS_DEVICE_TYPE_COUNT = 7,
1: +};
1: +
1: +struct acpi_device_physical_node {
1: + unsigned int node_id;
1: + struct list_head node;
1: + struct device *dev;
1: + bool put_online: 1;
1: +};
1: +
1: +struct acpi_osc_context {
1: + char *uuid_str;
1: + int rev;
1: + struct acpi_buffer cap;
1: + struct acpi_buffer ret;
1: +};
1: +
1: +struct acpi_pnp_device_id {
1: + u32 length;
1: + char *string;
1: +};
1: +
1: +struct acpi_pnp_device_id_list {
1: + u32 count;
1: + u32 list_size;
1: + struct acpi_pnp_device_id ids[0];
1: +};
1: +
1: +struct acpi_device_info {
1: + u32 info_size;
1: + u32 name;
1: + acpi_object_type type;
1: + u8 param_count;
1: + u16 valid;
1: + u8 flags;
1: + u8 highest_dstates[4];
1: + u8 lowest_dstates[5];
1: + u64 address;
1: + struct acpi_pnp_device_id hardware_id;
1: + struct acpi_pnp_device_id unique_id;
1: + struct acpi_pnp_device_id class_code;
1: + struct acpi_pnp_device_id_list compatible_id_list;
1: +};
1: +
1: +struct acpi_table_spcr {
1: + struct acpi_table_header header;
1: + u8 interface_type;
1: + u8 reserved[3];
1: + struct acpi_generic_address serial_port;
1: + u8 interrupt_type;
1: + u8 pc_interrupt;
1: + u32 interrupt;
1: + u8 baud_rate;
1: + u8 parity;
1: + u8 stop_bits;
1: + u8 flow_control;
1: + u8 terminal_type;
1: + u8 reserved1;
1: + u16 pci_device_id;
1: + u16 pci_vendor_id;
1: + u8 pci_bus;
1: + u8 pci_device;
1: + u8 pci_function;
1: + u32 pci_flags;
1: + u8 pci_segment;
1: + u32 reserved2;
1: +} __attribute__((packed));
1: +
1: +struct acpi_table_stao {
1: + struct acpi_table_header header;
1: + u8 ignore_uart;
1: +} __attribute__((packed));
1: +
1: +enum acpi_reconfig_event {
1: + ACPI_RECONFIG_DEVICE_ADD = 0,
1: + ACPI_RECONFIG_DEVICE_REMOVE = 1,
1: +};
1: +
1: +struct acpi_dep_data {
1: + struct list_head node;
1: + acpi_handle master;
1: + acpi_handle slave;
1: +};
1: +
1: +struct acpi_table_events_work {
1: + struct work_struct work;
1: + void *table;
1: + u32 event;
1: +};
1: +
1: +struct resource_win {
1: + struct resource res;
1: + resource_size_t offset;
1: +};
1: +
1: +struct res_proc_context {
1: + struct list_head *list;
1: + int (*preproc)(struct acpi_resource *, void *);
1: + void *preproc_data;
1: + int count;
1: + int error;
1: +};
1: +
1: +struct acpi_processor_errata {
1: + u8 smp;
1: + struct {
1: + u8 throttle: 1;
1: + u8 fdma: 1;
1: + u8 reserved: 6;
1: + u32 bmisx;
1: + } piix4;
1: +};
1: +
1: +typedef u32 acpi_event_status;
1: +
1: +struct acpi_table_ecdt {
1: + struct acpi_table_header header;
1: + struct acpi_generic_address control;
1: + struct acpi_generic_address data;
1: + u32 uid;
1: + u8 gpe;
1: + u8 id[1];
1: +} __attribute__((packed));
1: +
1: +struct transaction;
1: +
1: +struct acpi_ec {
1: + acpi_handle handle;
1: + int gpe;
1: + int irq;
1: + long unsigned int command_addr;
1: + long unsigned int data_addr;
1: + bool global_lock;
1: + long unsigned int flags;
1: + long unsigned int reference_count;
1: + struct mutex mutex;
1: + wait_queue_head_t wait;
1: + struct list_head list;
1: + struct transaction *curr;
1: + spinlock_t lock;
1: + struct work_struct work;
1: + long unsigned int timestamp;
1: + long unsigned int nr_pending_queries;
1: + bool busy_polling;
1: + unsigned int polling_guard;
1: +};
1: +
1: +struct transaction {
1: + const u8 *wdata;
1: + u8 *rdata;
1: + short unsigned int irq_count;
1: + u8 command;
1: + u8 wi;
1: + u8 ri;
1: + u8 wlen;
1: + u8 rlen;
1: + u8 flags;
1: +};
1: +
1: +typedef int (*acpi_ec_query_func)(void *);
1: +
1: +enum ec_command {
1: + ACPI_EC_COMMAND_READ = 128,
1: + ACPI_EC_COMMAND_WRITE = 129,
1: + ACPI_EC_BURST_ENABLE = 130,
1: + ACPI_EC_BURST_DISABLE = 131,
1: + ACPI_EC_COMMAND_QUERY = 132,
1: +};
1: +
1: +enum {
1: + EC_FLAGS_QUERY_ENABLED = 0,
1: + EC_FLAGS_QUERY_PENDING = 1,
1: + EC_FLAGS_QUERY_GUARDING = 2,
1: + EC_FLAGS_EVENT_HANDLER_INSTALLED = 3,
1: + EC_FLAGS_EC_HANDLER_INSTALLED = 4,
1: + EC_FLAGS_QUERY_METHODS_INSTALLED = 5,
1: + EC_FLAGS_STARTED = 6,
1: + EC_FLAGS_STOPPED = 7,
1: + EC_FLAGS_EVENTS_MASKED = 8,
1: +};
1: +
1: +struct acpi_ec_query_handler {
1: + struct list_head node;
1: + acpi_ec_query_func func;
1: + acpi_handle handle;
1: + void *data;
1: + u8 query_bit;
1: + struct kref kref;
1: +};
1: +
1: +struct acpi_ec_query {
1: + struct transaction transaction;
1: + struct work_struct work;
1: + struct acpi_ec_query_handler *handler;
1: +};
1: +
1: +struct dock_station {
1: + acpi_handle handle;
1: + long unsigned int last_dock_time;
1: + u32 flags;
1: + struct list_head dependent_devices;
1: + struct list_head sibling;
1: + struct platform_device *dock_device;
1: +};
1: +
1: +struct dock_dependent_device {
1: + struct list_head list;
1: + struct acpi_device *adev;
1: +};
1: +
1: +enum dock_callback_type {
1: + DOCK_CALL_HANDLER = 0,
1: + DOCK_CALL_FIXUP = 1,
1: + DOCK_CALL_UEVENT = 2,
1: +};
1: +
1: +struct pci_osc_bit_struct {
1: + u32 bit;
1: + char *desc;
1: +};
1: +
1: +struct acpi_handle_node {
1: + struct list_head node;
1: + acpi_handle handle;
1: +};
1: +
1: +struct acpi_pci_link_irq {
1: + u32 active;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 resource_type;
1: + u8 possible_count;
1: + u32 possible[16];
1: + u8 initialized: 1;
1: + u8 reserved: 7;
1: +};
1: +
1: +struct acpi_pci_link {
1: + struct list_head list;
1: + struct acpi_device *device;
1: + struct acpi_pci_link_irq irq;
1: + int refcnt;
1: +};
1: +
1: +struct acpi_pci_routing_table {
1: + u32 length;
1: + u32 pin;
1: + u64 address;
1: + u32 source_index;
1: + char source[4];
1: +};
1: +
1: +struct acpi_prt_entry {
1: + struct acpi_pci_id id;
1: + u8 pin;
1: + acpi_handle link;
1: + u32 index;
1: +};
1: +
1: +struct prt_quirk {
1: + const struct dmi_system_id *system;
1: + unsigned int segment;
1: + unsigned int bus;
1: + unsigned int device;
1: + unsigned char pin;
1: + const char *source;
1: + const char *actual_source;
1: +};
1: +
1: +struct apd_private_data;
1: +
1: +struct apd_device_desc {
1: + unsigned int fixed_clk_rate;
1: + struct property_entry *properties;
1: + int (*setup)(struct apd_private_data *);
1: +};
1: +
1: +struct apd_private_data {
1: + struct clk *clk;
1: + struct acpi_device *adev;
1: + const struct apd_device_desc *dev_desc;
1: +};
1: +
1: +struct acpi_power_dependent_device {
1: + struct device *dev;
1: + struct list_head node;
1: +};
1: +
1: +struct acpi_power_resource {
1: + struct acpi_device device;
1: + struct list_head list_node;
1: + char *name;
1: + u32 system_level;
1: + u32 order;
1: + unsigned int ref_count;
1: + bool wakeup_enabled;
1: + struct mutex resource_lock;
1: + struct list_head dependents;
1: +};
1: +
1: +struct acpi_power_resource_entry {
1: + struct list_head node;
1: + struct acpi_power_resource *resource;
1: +};
1: +
1: +struct acpi_bus_event {
1: + struct list_head node;
1: + acpi_device_class device_class;
1: + acpi_bus_id bus_id;
1: + u32 type;
1: + u32 data;
1: +};
1: +
1: +struct acpi_genl_event {
1: + acpi_device_class device_class;
1: + char bus_id[15];
1: + u32 type;
1: + u32 data;
1: +};
1: +
1: +enum {
1: + ACPI_GENL_ATTR_UNSPEC = 0,
1: + ACPI_GENL_ATTR_EVENT = 1,
1: + __ACPI_GENL_ATTR_MAX = 2,
1: +};
1: +
1: +enum {
1: + ACPI_GENL_CMD_UNSPEC = 0,
1: + ACPI_GENL_CMD_EVENT = 1,
1: + __ACPI_GENL_CMD_MAX = 2,
1: +};
1: +
1: +struct acpi_ged_device {
1: + struct device *dev;
1: + struct list_head event_list;
1: +};
1: +
1: +struct acpi_ged_event {
1: + struct list_head node;
1: + struct device *dev;
1: + unsigned int gsi;
1: + unsigned int irq;
1: + acpi_handle handle;
1: +};
1: +
1: +typedef void (*acpi_gbl_event_handler)(u32, acpi_handle, u32, void *);
1: +
1: +struct acpi_table_bert {
1: + struct acpi_table_header header;
1: + u32 region_length;
1: + u64 address;
1: +};
1: +
1: +struct acpi_table_attr {
1: + struct bin_attribute attr;
1: + char name[4];
1: + int instance;
1: + char filename[8];
1: + struct list_head node;
1: +};
1: +
1: +struct acpi_data_attr {
1: + struct bin_attribute attr;
1: + u64 addr;
1: +};
1: +
1: +struct acpi_data_obj {
1: + char *name;
1: + int (*fn)(void *, struct acpi_data_attr *);
1: +};
1: +
1: +struct event_counter {
1: + u32 count;
1: + u32 flags;
1: +};
1: +
1: +struct acpi_device_properties {
1: + const guid_t *guid;
1: + const union acpi_object *properties;
1: + struct list_head list;
1: +};
1: +
1: +struct acpi_lpat {
1: + int temp;
1: + int raw;
1: +};
1: +
1: +struct acpi_lpat_conversion_table {
1: + struct acpi_lpat *lpat;
1: + int lpat_count;
1: +};
1: +
1: +struct acpi_irq_parse_one_ctx {
1: + int rc;
1: + unsigned int index;
1: + long unsigned int *res_flags;
1: + struct irq_fwspec *fwspec;
1: +};
1: +
1: +enum {
1: + ACPI_REFCLASS_LOCAL = 0,
1: + ACPI_REFCLASS_ARG = 1,
1: + ACPI_REFCLASS_REFOF = 2,
1: + ACPI_REFCLASS_INDEX = 3,
1: + ACPI_REFCLASS_TABLE = 4,
1: + ACPI_REFCLASS_NAME = 5,
1: + ACPI_REFCLASS_DEBUG = 6,
1: + ACPI_REFCLASS_MAX = 6,
1: +};
1: +
1: +struct acpi_common_descriptor {
1: + void *common_pointer;
1: + u8 descriptor_type;
1: +};
1: +
1: +union acpi_descriptor {
1: + struct acpi_common_descriptor common;
1: + union acpi_operand_object object;
1: + struct acpi_namespace_node node;
1: + union acpi_parse_object op;
1: +};
1: +
1: +struct acpi_create_field_info {
1: + struct acpi_namespace_node *region_node;
1: + struct acpi_namespace_node *field_node;
1: + struct acpi_namespace_node *register_node;
1: + struct acpi_namespace_node *data_register_node;
1: + struct acpi_namespace_node *connection_node;
1: + u8 *resource_buffer;
1: + u32 bank_value;
1: + u32 field_bit_position;
1: + u32 field_bit_length;
1: + u16 resource_length;
1: + u16 pin_number_index;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 field_type;
1: + u8 access_length;
1: +};
1: +
1: +struct acpi_init_walk_info {
1: + u32 table_index;
1: + u32 object_count;
1: + u32 method_count;
1: + u32 serial_method_count;
1: + u32 non_serial_method_count;
1: + u32 serialized_method_count;
1: + u32 device_count;
1: + u32 op_region_count;
1: + u32 field_count;
1: + u32 buffer_count;
1: + u32 package_count;
1: + u32 op_region_init;
1: + u32 field_init;
1: + u32 buffer_init;
1: + u32 package_init;
1: + acpi_owner_id owner_id;
1: +};
1: +
1: +typedef u32 acpi_name;
1: +
1: +typedef acpi_status (*acpi_exception_handler)(acpi_status, acpi_name, u16, u32, void *);
1: +
1: +struct acpi_name_info {
1: + char name[4];
1: + u16 argument_list;
1: + u8 expected_btypes;
1: +} __attribute__((packed));
1: +
1: +struct acpi_package_info {
1: + u8 type;
1: + u8 object_type1;
1: + u8 count1;
1: + u8 object_type2;
1: + u8 count2;
1: + u16 reserved;
1: +} __attribute__((packed));
1: +
1: +struct acpi_package_info2 {
1: + u8 type;
1: + u8 count;
1: + u8 object_type[4];
1: + u8 reserved;
1: +};
1: +
1: +struct acpi_package_info3 {
1: + u8 type;
1: + u8 count;
1: + u8 object_type[2];
1: + u8 tail_object_type;
1: + u16 reserved;
1: +} __attribute__((packed));
1: +
1: +struct acpi_package_info4 {
1: + u8 type;
1: + u8 object_type1;
1: + u8 count1;
1: + u8 sub_object_types;
1: + u8 pkg_count;
1: + u16 reserved;
1: +} __attribute__((packed));
1: +
1: +union acpi_predefined_info {
1: + struct acpi_name_info info;
1: + struct acpi_package_info ret_info;
1: + struct acpi_package_info2 ret_info2;
1: + struct acpi_package_info3 ret_info3;
1: + struct acpi_package_info4 ret_info4;
1: +};
1: +
1: +struct acpi_evaluate_info {
1: + struct acpi_namespace_node *prefix_node;
1: + const char *relative_pathname;
1: + union acpi_operand_object **parameters;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *obj_desc;
1: + char *full_pathname;
1: + const union acpi_predefined_info *predefined;
1: + union acpi_operand_object *return_object;
1: + union acpi_operand_object *parent_package;
1: + u32 return_flags;
1: + u32 return_btype;
1: + u16 param_count;
1: + u16 node_flags;
1: + u8 pass_number;
1: + u8 return_object_type;
1: + u8 flags;
1: +};
1: +
1: +enum {
1: + AML_FIELD_ACCESS_ANY = 0,
1: + AML_FIELD_ACCESS_BYTE = 1,
1: + AML_FIELD_ACCESS_WORD = 2,
1: + AML_FIELD_ACCESS_DWORD = 3,
1: + AML_FIELD_ACCESS_QWORD = 4,
1: + AML_FIELD_ACCESS_BUFFER = 5,
1: +};
1: +
1: +typedef enum {
1: + ACPI_IMODE_LOAD_PASS1 = 1,
1: + ACPI_IMODE_LOAD_PASS2 = 2,
1: + ACPI_IMODE_EXECUTE = 3,
1: +} acpi_interpreter_mode;
1: +
1: +typedef acpi_status (*acpi_execute_op)(struct acpi_walk_state *);
1: +
1: +struct acpi_reg_walk_info {
1: + u32 function;
1: + u32 reg_run_count;
1: + acpi_adr_space_type space_id;
1: +};
1: +
1: +enum {
1: + AML_FIELD_UPDATE_PRESERVE = 0,
1: + AML_FIELD_UPDATE_WRITE_AS_ONES = 32,
1: + AML_FIELD_UPDATE_WRITE_AS_ZEROS = 64,
1: +};
1: +
1: +struct acpi_signal_fatal_info {
1: + u32 type;
1: + u32 code;
1: + u32 argument;
1: +};
1: +
1: +enum {
1: + MATCH_MTR = 0,
1: + MATCH_MEQ = 1,
1: + MATCH_MLE = 2,
1: + MATCH_MLT = 3,
1: + MATCH_MGE = 4,
1: + MATCH_MGT = 5,
1: +};
1: +
1: +enum {
1: + AML_FIELD_ATTRIB_QUICK = 2,
1: + AML_FIELD_ATTRIB_SEND_RECEIVE = 4,
1: + AML_FIELD_ATTRIB_BYTE = 6,
1: + AML_FIELD_ATTRIB_WORD = 8,
1: + AML_FIELD_ATTRIB_BLOCK = 10,
1: + AML_FIELD_ATTRIB_BYTES = 11,
1: + AML_FIELD_ATTRIB_PROCESS_CALL = 12,
1: + AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL = 13,
1: + AML_FIELD_ATTRIB_RAW_BYTES = 14,
1: + AML_FIELD_ATTRIB_RAW_PROCESS_BYTES = 15,
1: +};
1: +
1: +typedef enum {
1: + ACPI_TRACE_AML_METHOD = 0,
1: + ACPI_TRACE_AML_OPCODE = 1,
1: + ACPI_TRACE_AML_REGION = 2,
1: +} acpi_trace_event_type;
1: +
1: +struct acpi_port_info {
1: + char *name;
1: + u16 start;
1: + u16 end;
1: + u8 osi_dependency;
1: +};
1: +
1: +struct acpi_pci_device {
1: + acpi_handle device;
1: + struct acpi_pci_device *next;
1: +};
1: +
1: +typedef acpi_status (*acpi_init_handler)(acpi_handle, u32);
1: +
1: +struct acpi_device_walk_info {
1: + struct acpi_table_desc *table_desc;
1: + struct acpi_evaluate_info *evaluate_info;
1: + u32 device_count;
1: + u32 num_STA;
1: + u32 num_INI;
1: +};
1: +
1: +struct acpi_table_list {
1: + struct acpi_table_desc *tables;
1: + u32 current_table_count;
1: + u32 max_table_count;
1: + u8 flags;
1: +};
1: +
1: +enum acpi_return_package_types {
1: + ACPI_PTYPE1_FIXED = 1,
1: + ACPI_PTYPE1_VAR = 2,
1: + ACPI_PTYPE1_OPTION = 3,
1: + ACPI_PTYPE2 = 4,
1: + ACPI_PTYPE2_COUNT = 5,
1: + ACPI_PTYPE2_PKG_COUNT = 6,
1: + ACPI_PTYPE2_FIXED = 7,
1: + ACPI_PTYPE2_MIN = 8,
1: + ACPI_PTYPE2_REV_FIXED = 9,
1: + ACPI_PTYPE2_FIX_VAR = 10,
1: + ACPI_PTYPE2_VAR_VAR = 11,
1: + ACPI_PTYPE2_UUID_PAIR = 12,
1: + ACPI_PTYPE_CUSTOM = 13,
1: +};
1: +
1: +typedef acpi_status (*acpi_object_converter)(struct acpi_namespace_node *, union acpi_operand_object *, union acpi_operand_object **);
1: +
1: +struct acpi_simple_repair_info {
1: + char name[4];
1: + u32 unexpected_btypes;
1: + u32 package_index;
1: + acpi_object_converter object_converter;
1: +};
1: +
1: +typedef acpi_status (*acpi_repair_function)(struct acpi_evaluate_info *, union acpi_operand_object **);
1: +
1: +struct acpi_repair_info {
1: + char name[4];
1: + acpi_repair_function repair_function;
1: +};
1: +
1: +struct acpi_namestring_info {
1: + const char *external_name;
1: + const char *next_external_char;
1: + char *internal_name;
1: + u32 length;
1: + u32 num_segments;
1: + u32 num_carats;
1: + u8 fully_qualified;
1: +};
1: +
1: +typedef acpi_status (*acpi_walk_callback)(acpi_handle, u32, void *, void **);
1: +
1: +struct acpi_rw_lock {
1: + void *writer_mutex;
1: + void *reader_mutex;
1: + u32 num_readers;
1: +};
1: +
1: +struct acpi_get_devices_info {
1: + acpi_walk_callback user_function;
1: + void *context;
1: + const char *hid;
1: +};
1: +
1: +struct aml_resource_small_header {
1: + u8 descriptor_type;
1: +};
1: +
1: +struct aml_resource_irq {
1: + u8 descriptor_type;
1: + u16 irq_mask;
1: + u8 flags;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_dma {
1: + u8 descriptor_type;
1: + u8 dma_channel_mask;
1: + u8 flags;
1: +};
1: +
1: +struct aml_resource_start_dependent {
1: + u8 descriptor_type;
1: + u8 flags;
1: +};
1: +
1: +struct aml_resource_end_dependent {
1: + u8 descriptor_type;
1: +};
1: +
1: +struct aml_resource_io {
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 minimum;
1: + u16 maximum;
1: + u8 alignment;
1: + u8 address_length;
1: +};
1: +
1: +struct aml_resource_fixed_io {
1: + u8 descriptor_type;
1: + u16 address;
1: + u8 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_vendor_small {
1: + u8 descriptor_type;
1: +};
1: +
1: +struct aml_resource_end_tag {
1: + u8 descriptor_type;
1: + u8 checksum;
1: +};
1: +
1: +struct aml_resource_fixed_dma {
1: + u8 descriptor_type;
1: + u16 request_lines;
1: + u16 channels;
1: + u8 width;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_large_header {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_memory24 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 alignment;
1: + u16 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_vendor_large {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_memory32 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 alignment;
1: + u32 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_fixed_memory32 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u32 address;
1: + u32 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_address {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_extended_address64 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u8 revision_ID;
1: + u8 reserved;
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: + u64 type_specific;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_address64 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_address32 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u32 granularity;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 translation_offset;
1: + u32 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_address16 {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u16 granularity;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 translation_offset;
1: + u16 address_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_extended_irq {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u8 interrupt_count;
1: + u32 interrupts[1];
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_generic_register {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 address_space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_gpio {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 connection_type;
1: + u16 flags;
1: + u16 int_flags;
1: + u8 pin_config;
1: + u16 drive_strength;
1: + u16 debounce_timeout;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_common_serialbus {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_i2c_serialbus {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 connection_speed;
1: + u16 slave_address;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_spi_serialbus {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 connection_speed;
1: + u8 data_bit_length;
1: + u8 clock_phase;
1: + u8 clock_polarity;
1: + u16 device_selection;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_uart_serialbus {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 default_baud_rate;
1: + u16 rx_fifo_size;
1: + u16 tx_fifo_size;
1: + u8 parity;
1: + u8 lines_enabled;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_pin_function {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config;
1: + u16 function_number;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_pin_config {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_pin_group {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u16 pin_table_offset;
1: + u16 label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_pin_group_function {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u16 function_number;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 res_source_label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +struct aml_resource_pin_group_config {
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 res_source_label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: +} __attribute__((packed));
1: +
1: +union aml_resource {
1: + u8 descriptor_type;
1: + struct aml_resource_small_header small_header;
1: + struct aml_resource_large_header large_header;
1: + struct aml_resource_irq irq;
1: + struct aml_resource_dma dma;
1: + struct aml_resource_start_dependent start_dpf;
1: + struct aml_resource_end_dependent end_dpf;
1: + struct aml_resource_io io;
1: + struct aml_resource_fixed_io fixed_io;
1: + struct aml_resource_fixed_dma fixed_dma;
1: + struct aml_resource_vendor_small vendor_small;
1: + struct aml_resource_end_tag end_tag;
1: + struct aml_resource_memory24 memory24;
1: + struct aml_resource_generic_register generic_reg;
1: + struct aml_resource_vendor_large vendor_large;
1: + struct aml_resource_memory32 memory32;
1: + struct aml_resource_fixed_memory32 fixed_memory32;
1: + struct aml_resource_address16 address16;
1: + struct aml_resource_address32 address32;
1: + struct aml_resource_address64 address64;
1: + struct aml_resource_extended_address64 ext_address64;
1: + struct aml_resource_extended_irq extended_irq;
1: + struct aml_resource_gpio gpio;
1: + struct aml_resource_i2c_serialbus i2c_serial_bus;
1: + struct aml_resource_spi_serialbus spi_serial_bus;
1: + struct aml_resource_uart_serialbus uart_serial_bus;
1: + struct aml_resource_common_serialbus common_serial_bus;
1: + struct aml_resource_pin_function pin_function;
1: + struct aml_resource_pin_config pin_config;
1: + struct aml_resource_pin_group pin_group;
1: + struct aml_resource_pin_group_function pin_group_function;
1: + struct aml_resource_pin_group_config pin_group_config;
1: + struct aml_resource_address address;
1: + u32 dword_item;
1: + u16 word_item;
1: + u8 byte_item;
1: +};
1: +
1: +struct acpi_rsconvert_info {
1: + u8 opcode;
1: + u8 resource_offset;
1: + u8 aml_offset;
1: + u8 value;
1: +};
1: +
1: +enum {
1: + ACPI_RSC_INITGET = 0,
1: + ACPI_RSC_INITSET = 1,
1: + ACPI_RSC_FLAGINIT = 2,
1: + ACPI_RSC_1BITFLAG = 3,
1: + ACPI_RSC_2BITFLAG = 4,
1: + ACPI_RSC_3BITFLAG = 5,
1: + ACPI_RSC_ADDRESS = 6,
1: + ACPI_RSC_BITMASK = 7,
1: + ACPI_RSC_BITMASK16 = 8,
1: + ACPI_RSC_COUNT = 9,
1: + ACPI_RSC_COUNT16 = 10,
1: + ACPI_RSC_COUNT_GPIO_PIN = 11,
1: + ACPI_RSC_COUNT_GPIO_RES = 12,
1: + ACPI_RSC_COUNT_GPIO_VEN = 13,
1: + ACPI_RSC_COUNT_SERIAL_RES = 14,
1: + ACPI_RSC_COUNT_SERIAL_VEN = 15,
1: + ACPI_RSC_DATA8 = 16,
1: + ACPI_RSC_EXIT_EQ = 17,
1: + ACPI_RSC_EXIT_LE = 18,
1: + ACPI_RSC_EXIT_NE = 19,
1: + ACPI_RSC_LENGTH = 20,
1: + ACPI_RSC_MOVE_GPIO_PIN = 21,
1: + ACPI_RSC_MOVE_GPIO_RES = 22,
1: + ACPI_RSC_MOVE_SERIAL_RES = 23,
1: + ACPI_RSC_MOVE_SERIAL_VEN = 24,
1: + ACPI_RSC_MOVE8 = 25,
1: + ACPI_RSC_MOVE16 = 26,
1: + ACPI_RSC_MOVE32 = 27,
1: + ACPI_RSC_MOVE64 = 28,
1: + ACPI_RSC_SET8 = 29,
1: + ACPI_RSC_SOURCE = 30,
1: + ACPI_RSC_SOURCEX = 31,
1: +};
1: +
1: +typedef u16 acpi_rs_length;
1: +
1: +typedef u32 acpi_rsdesc_size;
1: +
1: +struct acpi_vendor_uuid {
1: + u8 subtype;
1: + u8 data[16];
1: +};
1: +
1: +typedef acpi_status (*acpi_walk_resource_callback)(struct acpi_resource *, void *);
1: +
1: +struct acpi_vendor_walk_info {
1: + struct acpi_vendor_uuid *uuid;
1: + struct acpi_buffer *buffer;
1: + acpi_status status;
1: +};
1: +
1: +typedef acpi_status (*acpi_table_handler)(u32, void *, void *);
1: +
1: +struct acpi_fadt_info {
1: + const char *name;
1: + u16 address64;
1: + u16 address32;
1: + u16 length;
1: + u8 default_length;
1: + u8 flags;
1: +};
1: +
1: +struct acpi_fadt_pm_info {
1: + struct acpi_generic_address *target;
1: + u16 source;
1: + u8 register_num;
1: +};
1: +
1: +struct acpi_table_rsdp {
1: + char signature[8];
1: + u8 checksum;
1: + char oem_id[6];
1: + u8 revision;
1: + u32 rsdt_physical_address;
1: + u32 length;
1: + u64 xsdt_physical_address;
1: + u8 extended_checksum;
1: + u8 reserved[3];
1: +} __attribute__((packed));
1: +
1: +struct acpi_address_range {
1: + struct acpi_address_range *next;
1: + struct acpi_namespace_node *region_node;
1: + acpi_physical_address start_address;
1: + acpi_physical_address end_address;
1: +};
1: +
1: +struct acpi_pkg_info {
1: + u8 *free_space;
1: + acpi_size length;
1: + u32 object_space;
1: + u32 num_packages;
1: +};
1: +
1: +struct acpi_exception_info {
1: + char *name;
1: +};
1: +
1: +typedef u32 (*acpi_sci_handler)(void *);
1: +
1: +typedef u32 (*acpi_interface_handler)(acpi_string, u32);
1: +
1: +struct acpi_mutex_info {
1: + void *mutex;
1: + u32 use_count;
1: + u64 thread_id;
1: +};
1: +
1: +struct acpi_sci_handler_info {
1: + struct acpi_sci_handler_info *next;
1: + acpi_sci_handler address;
1: + void *context;
1: +};
1: +
1: +struct acpi_comment_node {
1: + char *comment;
1: + struct acpi_comment_node *next;
1: +};
1: +
1: +struct acpi_interface_info {
1: + char *name;
1: + struct acpi_interface_info *next;
1: + u8 flags;
1: + u8 value;
1: +};
1: +
1: +typedef acpi_status (*acpi_pkg_callback)(u8, union acpi_operand_object *, union acpi_generic_state *, void *);
1: +
1: +typedef u32 acpi_mutex_handle;
1: +
1: +typedef acpi_status (*acpi_walk_aml_callback)(u8 *, u32, u32, u8, void **);
1: +
1: +struct acpi_table_mcfg {
1: + struct acpi_table_header header;
1: + u8 reserved[8];
1: +};
1: +
1: +struct acpi_mcfg_allocation {
1: + u64 address;
1: + u16 pci_segment;
1: + u8 start_bus_number;
1: + u8 end_bus_number;
1: + u32 reserved;
1: +};
1: +
1: +struct mcfg_entry {
1: + struct list_head list;
1: + phys_addr_t addr;
1: + u16 segment;
1: + u8 bus_start;
1: + u8 bus_end;
1: +};
1: +
1: +struct mcfg_fixup {
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: + u16 segment;
1: + struct resource bus_range;
1: + const struct pci_ecam_ops *ops;
1: + struct resource cfgres;
1: +};
1: +
1: +struct acpi_pci_slot {
1: + struct pci_slot *pci_slot;
1: + struct list_head list;
1: +};
1: +
1: +struct acpi_power_register {
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct acpi_lpi_states_array {
1: + unsigned int size;
1: + unsigned int composite_states_size;
1: + struct acpi_lpi_state *entries;
1: + struct acpi_lpi_state *composite_states[8];
1: +};
1: +
1: +struct container_dev {
1: + struct device dev;
1: + int (*offline)(struct container_dev *);
1: +};
1: +
1: +struct acpi_table_slit {
1: + struct acpi_table_header header;
1: + u64 locality_count;
1: + u8 entry[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_table_srat {
1: + struct acpi_table_header header;
1: + u32 table_revision;
1: + u64 reserved;
1: +};
1: +
1: +struct acpi_srat_cpu_affinity {
1: + struct acpi_subtable_header header;
1: + u8 proximity_domain_lo;
1: + u8 apic_id;
1: + u32 flags;
1: + u8 local_sapic_eid;
1: + u8 proximity_domain_hi[3];
1: + u32 clock_domain;
1: +};
1: +
1: +struct acpi_srat_mem_affinity {
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u16 reserved;
1: + u64 base_address;
1: + u64 length;
1: + u32 reserved1;
1: + u32 flags;
1: + u64 reserved2;
1: +} __attribute__((packed));
1: +
1: +struct acpi_srat_x2apic_cpu_affinity {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 proximity_domain;
1: + u32 apic_id;
1: + u32 flags;
1: + u32 clock_domain;
1: + u32 reserved2;
1: +};
1: +
1: +struct acpi_srat_generic_affinity {
1: + struct acpi_subtable_header header;
1: + u8 reserved;
1: + u8 device_handle_type;
1: + u32 proximity_domain;
1: + u8 device_handle[16];
1: + u32 flags;
1: + u32 reserved1;
1: +};
1: +
1: +enum acpi_hmat_type {
1: + ACPI_HMAT_TYPE_PROXIMITY = 0,
1: + ACPI_HMAT_TYPE_LOCALITY = 1,
1: + ACPI_HMAT_TYPE_CACHE = 2,
1: + ACPI_HMAT_TYPE_RESERVED = 3,
1: +};
1: +
1: +struct acpi_hmat_proximity_domain {
1: + struct acpi_hmat_structure header;
1: + u16 flags;
1: + u16 reserved1;
1: + u32 processor_PD;
1: + u32 memory_PD;
1: + u32 reserved2;
1: + u64 reserved3;
1: + u64 reserved4;
1: +};
1: +
1: +struct acpi_hmat_locality {
1: + struct acpi_hmat_structure header;
1: + u8 flags;
1: + u8 data_type;
1: + u16 reserved1;
1: + u32 number_of_initiator_Pds;
1: + u32 number_of_target_Pds;
1: + u32 reserved2;
1: + u64 entry_base_unit;
1: +};
1: +
1: +struct acpi_hmat_cache {
1: + struct acpi_hmat_structure header;
1: + u32 memory_PD;
1: + u32 reserved1;
1: + u64 cache_size;
1: + u32 cache_attributes;
1: + u16 reserved2;
1: + u16 number_of_SMBIOShandles;
1: +};
1: +
1: +struct node_hmem_attrs {
1: + unsigned int read_bandwidth;
1: + unsigned int write_bandwidth;
1: + unsigned int read_latency;
1: + unsigned int write_latency;
1: +};
1: +
1: +enum cache_indexing {
1: + NODE_CACHE_DIRECT_MAP = 0,
1: + NODE_CACHE_INDEXED = 1,
1: + NODE_CACHE_OTHER = 2,
1: +};
1: +
1: +enum cache_write_policy {
1: + NODE_CACHE_WRITE_BACK = 0,
1: + NODE_CACHE_WRITE_THROUGH = 1,
1: + NODE_CACHE_WRITE_OTHER = 2,
1: +};
1: +
1: +struct node_cache_attrs {
1: + enum cache_indexing indexing;
1: + enum cache_write_policy write_policy;
1: + u64 size;
1: + u16 line_size;
1: + u8 level;
1: +};
1: +
1: +enum locality_types {
1: + WRITE_LATENCY = 0,
1: + READ_LATENCY = 1,
1: + WRITE_BANDWIDTH = 2,
1: + READ_BANDWIDTH = 3,
1: +};
1: +
1: +struct memory_locality {
1: + struct list_head node;
1: + struct acpi_hmat_locality *hmat_loc;
1: +};
1: +
1: +struct target_cache {
1: + struct list_head node;
1: + struct node_cache_attrs cache_attrs;
1: +};
1: +
1: +struct memory_target {
1: + struct list_head node;
1: + unsigned int memory_pxm;
1: + unsigned int processor_pxm;
1: + struct resource memregions;
1: + struct node_hmem_attrs hmem_attrs[2];
1: + struct list_head caches;
1: + struct node_cache_attrs cache_attrs;
1: + bool registered;
1: +};
1: +
1: +struct memory_initiator {
1: + struct list_head node;
1: + unsigned int processor_pxm;
1: + bool has_cpu;
1: +};
1: +
1: +struct acpi_memory_info {
1: + struct list_head list;
1: + u64 start_addr;
1: + u64 length;
1: + short unsigned int caching;
1: + short unsigned int write_protect;
1: + unsigned int enabled: 1;
1: +};
1: +
1: +struct acpi_memory_device {
1: + struct acpi_device *device;
1: + struct list_head res_list;
1: +};
1: +
1: +struct acpi_pcct_hw_reduced {
1: + struct acpi_subtable_header header;
1: + u32 platform_interrupt;
1: + u8 flags;
1: + u8 reserved;
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: +} __attribute__((packed));
1: +
1: +struct acpi_pcct_shared_memory {
1: + u32 signature;
1: + u16 command;
1: + u16 status;
1: +};
1: +
1: +struct mbox_chan;
1: +
1: +struct mbox_chan_ops {
1: + int (*send_data)(struct mbox_chan *, void *);
1: + int (*flush)(struct mbox_chan *, long unsigned int);
1: + int (*startup)(struct mbox_chan *);
1: + void (*shutdown)(struct mbox_chan *);
1: + bool (*last_tx_done)(struct mbox_chan *);
1: + bool (*peek_data)(struct mbox_chan *);
1: +};
1: +
1: +struct mbox_controller;
1: +
1: +struct mbox_client;
1: +
1: +struct mbox_chan {
1: + struct mbox_controller *mbox;
1: + unsigned int txdone_method;
1: + struct mbox_client *cl;
1: + struct completion tx_complete;
1: + void *active_req;
1: + unsigned int msg_count;
1: + unsigned int msg_free;
1: + void *msg_data[20];
1: + spinlock_t lock;
1: + void *con_priv;
1: +};
1: +
1: +struct mbox_controller {
1: + struct device *dev;
1: + const struct mbox_chan_ops *ops;
1: + struct mbox_chan *chans;
1: + int num_chans;
1: + bool txdone_irq;
1: + bool txdone_poll;
1: + unsigned int txpoll_period;
1: + struct mbox_chan * (*of_xlate)(struct mbox_controller *, const struct of_phandle_args *);
1: + struct hrtimer poll_hrt;
1: + struct list_head node;
1: +};
1: +
1: +struct mbox_client {
1: + struct device *dev;
1: + bool tx_block;
1: + long unsigned int tx_tout;
1: + bool knows_txdone;
1: + void (*rx_callback)(struct mbox_client *, void *);
1: + void (*tx_prepare)(struct mbox_client *, void *);
1: + void (*tx_done)(struct mbox_client *, void *, int);
1: +};
1: +
1: +struct cpc_reg {
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_width;
1: + u64 address;
1: +} __attribute__((packed));
1: +
1: +struct cpc_register_resource {
1: + acpi_object_type type;
1: + u64 *sys_mem_vaddr;
1: + union {
1: + struct cpc_reg reg;
1: + u64 int_value;
1: + } cpc_entry;
1: +};
1: +
1: +struct cpc_desc {
1: + int num_entries;
1: + int version;
1: + int cpu_id;
1: + int write_cmd_status;
1: + int write_cmd_id;
1: + struct cpc_register_resource cpc_regs[21];
1: + struct acpi_psd_package domain_info;
1: + struct kobject kobj;
1: +};
1: +
1: +enum cppc_regs {
1: + HIGHEST_PERF = 0,
1: + NOMINAL_PERF = 1,
1: + LOW_NON_LINEAR_PERF = 2,
1: + LOWEST_PERF = 3,
1: + GUARANTEED_PERF = 4,
1: + DESIRED_PERF = 5,
1: + MIN_PERF = 6,
1: + MAX_PERF = 7,
1: + PERF_REDUC_TOLERANCE = 8,
1: + TIME_WINDOW = 9,
1: + CTR_WRAP_TIME = 10,
1: + REFERENCE_CTR = 11,
1: + DELIVERED_CTR = 12,
1: + PERF_LIMITED = 13,
1: + ENABLE = 14,
1: + AUTO_SEL_ENABLE = 15,
1: + AUTO_ACT_WINDOW = 16,
1: + ENERGY_PERF = 17,
1: + REFERENCE_PERF = 18,
1: + LOWEST_FREQ = 19,
1: + NOMINAL_FREQ = 20,
1: +};
1: +
1: +struct cppc_perf_caps {
1: + u32 guaranteed_perf;
1: + u32 highest_perf;
1: + u32 nominal_perf;
1: + u32 lowest_perf;
1: + u32 lowest_nonlinear_perf;
1: + u32 lowest_freq;
1: + u32 nominal_freq;
1: +};
1: +
1: +struct cppc_perf_ctrls {
1: + u32 max_perf;
1: + u32 min_perf;
1: + u32 desired_perf;
1: +};
1: +
1: +struct cppc_perf_fb_ctrs {
1: + u64 reference;
1: + u64 delivered;
1: + u64 reference_perf;
1: + u64 wraparound_time;
1: +};
1: +
1: +struct cppc_cpudata {
1: + int cpu;
1: + struct cppc_perf_caps perf_caps;
1: + struct cppc_perf_ctrls perf_ctrls;
1: + struct cppc_perf_fb_ctrs perf_fb_ctrs;
1: + struct cpufreq_policy *cur_policy;
1: + unsigned int shared_type;
1: + cpumask_var_t shared_cpu_map;
1: +};
1: +
1: +struct cppc_pcc_data {
1: + struct mbox_chan *pcc_channel;
1: + void *pcc_comm_addr;
1: + bool pcc_channel_acquired;
1: + unsigned int deadline_us;
1: + unsigned int pcc_mpar;
1: + unsigned int pcc_mrtt;
1: + unsigned int pcc_nominal;
1: + bool pending_pcc_write_cmd;
1: + bool platform_owns_pcc;
1: + unsigned int pcc_write_cnt;
1: + struct rw_semaphore pcc_lock;
1: + wait_queue_head_t pcc_write_wait_q;
1: + ktime_t last_cmd_cmpl_time;
1: + ktime_t last_mpar_reset;
1: + int mpar_count;
1: + int refcount;
1: +};
1: +
1: +struct cppc_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, ssize_t);
1: +};
1: +
1: +enum acpi_pptt_type {
1: + ACPI_PPTT_TYPE_PROCESSOR = 0,
1: + ACPI_PPTT_TYPE_CACHE = 1,
1: + ACPI_PPTT_TYPE_ID = 2,
1: + ACPI_PPTT_TYPE_RESERVED = 3,
1: +};
1: +
1: +struct acpi_pptt_processor {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 flags;
1: + u32 parent;
1: + u32 acpi_processor_id;
1: + u32 number_of_priv_resources;
1: +};
1: +
1: +struct acpi_pptt_cache {
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 flags;
1: + u32 next_level_of_cache;
1: + u32 size;
1: + u32 number_of_sets;
1: + u8 associativity;
1: + u8 attributes;
1: + u16 line_size;
1: +};
1: +
1: +struct acpi_whea_header {
1: + u8 action;
1: + u8 instruction;
1: + u8 flags;
1: + u8 reserved;
1: + struct acpi_generic_address register_region;
1: + u64 value;
1: + u64 mask;
1: +} __attribute__((packed));
1: +
1: +struct acpi_hest_header {
1: + u16 type;
1: + u16 source_id;
1: +};
1: +
1: +struct cper_sec_mem_err {
1: + u64 validation_bits;
1: + u64 error_status;
1: + u64 physical_addr;
1: + u64 physical_addr_mask;
1: + u16 node;
1: + u16 card;
1: + u16 module;
1: + u16 bank;
1: + u16 device;
1: + u16 row;
1: + u16 column;
1: + u16 bit_pos;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 target_id;
1: + u8 error_type;
1: + u8 extended;
1: + u16 rank;
1: + u16 mem_array_handle;
1: + u16 mem_dev_handle;
1: +};
1: +
1: +struct apei_exec_context;
1: +
1: +typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *, struct acpi_whea_header *);
1: +
1: +struct apei_exec_ins_type;
1: +
1: +struct apei_exec_context {
1: + u32 ip;
1: + u64 value;
1: + u64 var1;
1: + u64 var2;
1: + u64 src_base;
1: + u64 dst_base;
1: + struct apei_exec_ins_type *ins_table;
1: + u32 instructions;
1: + struct acpi_whea_header *action_table;
1: + u32 entries;
1: +};
1: +
1: +struct apei_exec_ins_type {
1: + u32 flags;
1: + apei_exec_ins_func_t run;
1: +};
1: +
1: +struct apei_resources {
1: + struct list_head iomem;
1: + struct list_head ioport;
1: +};
1: +
1: +typedef int (*apei_exec_entry_func_t)(struct apei_exec_context *, struct acpi_whea_header *, void *);
1: +
1: +struct apei_res {
1: + struct list_head list;
1: + long unsigned int start;
1: + long unsigned int end;
1: +};
1: +
1: +struct acpi_table_hest {
1: + struct acpi_table_header header;
1: + u32 error_source_count;
1: +};
1: +
1: +enum acpi_hest_types {
1: + ACPI_HEST_TYPE_IA32_CHECK = 0,
1: + ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
1: + ACPI_HEST_TYPE_IA32_NMI = 2,
1: + ACPI_HEST_TYPE_NOT_USED3 = 3,
1: + ACPI_HEST_TYPE_NOT_USED4 = 4,
1: + ACPI_HEST_TYPE_NOT_USED5 = 5,
1: + ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
1: + ACPI_HEST_TYPE_AER_ENDPOINT = 7,
1: + ACPI_HEST_TYPE_AER_BRIDGE = 8,
1: + ACPI_HEST_TYPE_GENERIC_ERROR = 9,
1: + ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,
1: + ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11,
1: + ACPI_HEST_TYPE_RESERVED = 12,
1: +};
1: +
1: +struct acpi_hest_notify {
1: + u8 type;
1: + u8 length;
1: + u16 config_write_enable;
1: + u32 poll_interval;
1: + u32 vector;
1: + u32 polling_threshold_value;
1: + u32 polling_threshold_window;
1: + u32 error_threshold_value;
1: + u32 error_threshold_window;
1: +};
1: +
1: +struct acpi_hest_ia_machine_check {
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + u64 global_capability_data;
1: + u64 global_control_data;
1: + u8 num_hardware_banks;
1: + u8 reserved3[7];
1: +};
1: +
1: +struct acpi_hest_ia_corrected {
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + struct acpi_hest_notify notify;
1: + u8 num_hardware_banks;
1: + u8 reserved2[3];
1: +};
1: +
1: +struct acpi_hest_ia_deferred_check {
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + struct acpi_hest_notify notify;
1: + u8 num_hardware_banks;
1: + u8 reserved2[3];
1: +};
1: +
1: +enum hest_status {
1: + HEST_ENABLED = 0,
1: + HEST_DISABLED = 1,
1: + HEST_NOT_FOUND = 2,
1: +};
1: +
1: +typedef int (*apei_hest_func_t)(struct acpi_hest_header *, void *);
1: +
1: +struct acpi_table_erst {
1: + struct acpi_table_header header;
1: + u32 header_length;
1: + u32 reserved;
1: + u32 entries;
1: +};
1: +
1: +enum acpi_erst_actions {
1: + ACPI_ERST_BEGIN_WRITE = 0,
1: + ACPI_ERST_BEGIN_READ = 1,
1: + ACPI_ERST_BEGIN_CLEAR = 2,
1: + ACPI_ERST_END = 3,
1: + ACPI_ERST_SET_RECORD_OFFSET = 4,
1: + ACPI_ERST_EXECUTE_OPERATION = 5,
1: + ACPI_ERST_CHECK_BUSY_STATUS = 6,
1: + ACPI_ERST_GET_COMMAND_STATUS = 7,
1: + ACPI_ERST_GET_RECORD_ID = 8,
1: + ACPI_ERST_SET_RECORD_ID = 9,
1: + ACPI_ERST_GET_RECORD_COUNT = 10,
1: + ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
1: + ACPI_ERST_NOT_USED = 12,
1: + ACPI_ERST_GET_ERROR_RANGE = 13,
1: + ACPI_ERST_GET_ERROR_LENGTH = 14,
1: + ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
1: + ACPI_ERST_EXECUTE_TIMINGS = 16,
1: + ACPI_ERST_ACTION_RESERVED = 17,
1: +};
1: +
1: +enum acpi_erst_instructions {
1: + ACPI_ERST_READ_REGISTER = 0,
1: + ACPI_ERST_READ_REGISTER_VALUE = 1,
1: + ACPI_ERST_WRITE_REGISTER = 2,
1: + ACPI_ERST_WRITE_REGISTER_VALUE = 3,
1: + ACPI_ERST_NOOP = 4,
1: + ACPI_ERST_LOAD_VAR1 = 5,
1: + ACPI_ERST_LOAD_VAR2 = 6,
1: + ACPI_ERST_STORE_VAR1 = 7,
1: + ACPI_ERST_ADD = 8,
1: + ACPI_ERST_SUBTRACT = 9,
1: + ACPI_ERST_ADD_VALUE = 10,
1: + ACPI_ERST_SUBTRACT_VALUE = 11,
1: + ACPI_ERST_STALL = 12,
1: + ACPI_ERST_STALL_WHILE_TRUE = 13,
1: + ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
1: + ACPI_ERST_GOTO = 15,
1: + ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
1: + ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
1: + ACPI_ERST_MOVE_DATA = 18,
1: + ACPI_ERST_INSTRUCTION_RESERVED = 19,
1: +};
1: +
1: +struct cper_record_header {
1: + char signature[4];
1: + u16 revision;
1: + u32 signature_end;
1: + u16 section_count;
1: + u32 error_severity;
1: + u32 validation_bits;
1: + u32 record_length;
1: + u64 timestamp;
1: + guid_t platform_id;
1: + guid_t partition_id;
1: + guid_t creator_id;
1: + guid_t notification_type;
1: + u64 record_id;
1: + u32 flags;
1: + u64 persistence_information;
1: + u8 reserved[12];
1: +} __attribute__((packed));
1: +
1: +struct cper_section_descriptor {
1: + u32 section_offset;
1: + u32 section_length;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 reserved;
1: + u32 flags;
1: + guid_t section_type;
1: + guid_t fru_id;
1: + u32 section_severity;
1: + u8 fru_text[20];
1: +};
1: +
1: +struct erst_erange {
1: + u64 base;
1: + u64 size;
1: + void *vaddr;
1: + u32 attr;
1: +};
1: +
1: +struct erst_record_id_cache {
1: + struct mutex lock;
1: + u64 *entries;
1: + int len;
1: + int size;
1: + int refcount;
1: +};
1: +
1: +struct cper_pstore_record {
1: + struct cper_record_header hdr;
1: + struct cper_section_descriptor sec_hdr;
1: + char data[0];
1: +};
1: +
1: +struct acpi_bert_region {
1: + u32 block_status;
1: + u32 raw_data_offset;
1: + u32 raw_data_length;
1: + u32 data_length;
1: + u32 error_severity;
1: +};
1: +
1: +struct acpi_hest_generic_status {
1: + u32 block_status;
1: + u32 raw_data_offset;
1: + u32 raw_data_length;
1: + u32 data_length;
1: + u32 error_severity;
1: +};
1: +
1: +struct pmic_table {
1: + int address;
1: + int reg;
1: + int bit;
1: +};
1: +
1: +struct intel_pmic_opregion_data {
1: + int (*get_power)(struct regmap *, int, int, u64 *);
1: + int (*update_power)(struct regmap *, int, int, bool);
1: + int (*get_raw_temp)(struct regmap *, int);
1: + int (*update_aux)(struct regmap *, int, int);
1: + int (*get_policy)(struct regmap *, int, int, u64 *);
1: + int (*update_policy)(struct regmap *, int, int, int);
1: + int (*exec_mipi_pmic_seq_element)(struct regmap *, u16, u32, u32, u32);
1: + struct pmic_table *power_table;
1: + int power_table_count;
1: + struct pmic_table *thermal_table;
1: + int thermal_table_count;
1: + int pmic_i2c_address;
1: +};
1: +
1: +struct intel_pmic_regs_handler_ctx {
1: + unsigned int val;
1: + u16 addr;
1: +};
1: +
1: +struct intel_pmic_opregion {
1: + struct mutex lock;
1: + struct acpi_lpat_conversion_table *lpat_table;
1: + struct regmap *regmap;
1: + struct intel_pmic_opregion_data *data;
1: + struct intel_pmic_regs_handler_ctx ctx;
1: +};
1: +
1: +struct acpi_table_iort {
1: + struct acpi_table_header header;
1: + u32 node_count;
1: + u32 node_offset;
1: + u32 reserved;
1: +};
1: +
1: +struct acpi_iort_node {
1: + u8 type;
1: + u16 length;
1: + u8 revision;
1: + u32 reserved;
1: + u32 mapping_count;
1: + u32 mapping_offset;
1: + char node_data[1];
1: +} __attribute__((packed));
1: +
1: +enum acpi_iort_node_type {
1: + ACPI_IORT_NODE_ITS_GROUP = 0,
1: + ACPI_IORT_NODE_NAMED_COMPONENT = 1,
1: + ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 2,
1: + ACPI_IORT_NODE_SMMU = 3,
1: + ACPI_IORT_NODE_SMMU_V3 = 4,
1: + ACPI_IORT_NODE_PMCG = 5,
1: +};
1: +
1: +struct acpi_iort_id_mapping {
1: + u32 input_base;
1: + u32 id_count;
1: + u32 output_base;
1: + u32 output_reference;
1: + u32 flags;
1: +};
1: +
1: +struct acpi_iort_its_group {
1: + u32 its_count;
1: + u32 identifiers[1];
1: +};
1: +
1: +struct acpi_iort_named_component {
1: + u32 node_flags;
1: + u64 memory_properties;
1: + u8 memory_address_limit;
1: + char device_name[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_iort_root_complex {
1: + u64 memory_properties;
1: + u32 ats_attribute;
1: + u32 pci_segment_number;
1: + u8 memory_address_limit;
1: + u8 reserved[3];
1: +} __attribute__((packed));
1: +
1: +struct acpi_iort_smmu {
1: + u64 base_address;
1: + u64 span;
1: + u32 model;
1: + u32 flags;
1: + u32 global_interrupt_offset;
1: + u32 context_interrupt_count;
1: + u32 context_interrupt_offset;
1: + u32 pmu_interrupt_count;
1: + u32 pmu_interrupt_offset;
1: + u64 interrupts[1];
1: +} __attribute__((packed));
1: +
1: +struct acpi_iort_smmu_v3 {
1: + u64 base_address;
1: + u32 flags;
1: + u32 reserved;
1: + u64 vatos_address;
1: + u32 model;
1: + u32 event_gsiv;
1: + u32 pri_gsiv;
1: + u32 gerr_gsiv;
1: + u32 sync_gsiv;
1: + u32 pxm;
1: + u32 id_mapping_index;
1: +} __attribute__((packed));
1: +
1: +struct acpi_iort_pmcg {
1: + u64 page0_base_address;
1: + u32 overflow_gsiv;
1: + u32 node_reference;
1: + u64 page1_base_address;
1: +};
1: +
1: +struct iort_its_msi_chip {
1: + struct list_head list;
1: + struct fwnode_handle *fw_node;
1: + phys_addr_t base_addr;
1: + u32 translation_id;
1: +};
1: +
1: +struct iort_fwnode {
1: + struct list_head list;
1: + struct acpi_iort_node *iort_node;
1: + struct fwnode_handle *fwnode;
1: +};
1: +
1: +typedef acpi_status (*iort_find_node_callback)(struct acpi_iort_node *, void *);
1: +
1: +struct iort_pci_alias_info {
1: + struct device *dev;
1: + struct acpi_iort_node *node;
1: +};
1: +
1: +struct iort_dev_config {
1: + const char *name;
1: + int (*dev_init)(struct acpi_iort_node *);
1: + void (*dev_dma_configure)(struct device *, struct acpi_iort_node *);
1: + int (*dev_count_resources)(struct acpi_iort_node *);
1: + void (*dev_init_resources)(struct resource *, struct acpi_iort_node *);
1: + int (*dev_set_proximity)(struct device *, struct acpi_iort_node *);
1: + int (*dev_add_platdata)(struct platform_device *);
1: +};
1: +
1: +enum arch_timer_ppi_nr {
1: + ARCH_TIMER_PHYS_SECURE_PPI = 0,
1: + ARCH_TIMER_PHYS_NONSECURE_PPI = 1,
1: + ARCH_TIMER_VIRT_PPI = 2,
1: + ARCH_TIMER_HYP_PPI = 3,
1: + ARCH_TIMER_MAX_TIMER_PPI = 4,
1: +};
1: +
1: +struct arch_timer_mem_frame {
1: + bool valid;
1: + phys_addr_t cntbase;
1: + size_t size;
1: + int phys_irq;
1: + int virt_irq;
1: +};
1: +
1: +struct arch_timer_mem {
1: + phys_addr_t cntctlbase;
1: + size_t size;
1: + struct arch_timer_mem_frame frame[8];
1: +};
1: +
1: +struct acpi_table_gtdt {
1: + struct acpi_table_header header;
1: + u64 counter_block_addresss;
1: + u32 reserved;
1: + u32 secure_el1_interrupt;
1: + u32 secure_el1_flags;
1: + u32 non_secure_el1_interrupt;
1: + u32 non_secure_el1_flags;
1: + u32 virtual_timer_interrupt;
1: + u32 virtual_timer_flags;
1: + u32 non_secure_el2_interrupt;
1: + u32 non_secure_el2_flags;
1: + u64 counter_read_block_address;
1: + u32 platform_timer_count;
1: + u32 platform_timer_offset;
1: +} __attribute__((packed));
1: +
1: +struct acpi_gtdt_header {
1: + u8 type;
1: + u16 length;
1: +} __attribute__((packed));
1: +
1: +enum acpi_gtdt_type {
1: + ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
1: + ACPI_GTDT_TYPE_WATCHDOG = 1,
1: + ACPI_GTDT_TYPE_RESERVED = 2,
1: +};
1: +
1: +struct acpi_gtdt_timer_block {
1: + struct acpi_gtdt_header header;
1: + u8 reserved;
1: + u64 block_address;
1: + u32 timer_count;
1: + u32 timer_offset;
1: +} __attribute__((packed));
1: +
1: +struct acpi_gtdt_timer_entry {
1: + u8 frame_number;
1: + u8 reserved[3];
1: + u64 base_address;
1: + u64 el0_base_address;
1: + u32 timer_interrupt;
1: + u32 timer_flags;
1: + u32 virtual_timer_interrupt;
1: + u32 virtual_timer_flags;
1: + u32 common_flags;
1: +} __attribute__((packed));
1: +
1: +struct acpi_gtdt_watchdog {
1: + struct acpi_gtdt_header header;
1: + u8 reserved;
1: + u64 refresh_frame_address;
1: + u64 control_frame_address;
1: + u32 timer_interrupt;
1: + u32 timer_flags;
1: +} __attribute__((packed));
1: +
1: +struct acpi_gtdt_descriptor {
1: + struct acpi_table_gtdt *gtdt;
1: + void *gtdt_end;
1: + void *platform_timer;
1: +};
1: +
1: +struct pnp_device_id {
1: + __u8 id[8];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct pnp_card_device_id {
1: + __u8 id[8];
1: + kernel_ulong_t driver_data;
1: + struct {
1: + __u8 id[8];
1: + } devs[8];
1: +};
1: +
1: +struct pnp_protocol;
1: +
1: +struct pnp_id;
1: +
1: +struct pnp_card {
1: + struct device dev;
1: + unsigned char number;
1: + struct list_head global_list;
1: + struct list_head protocol_list;
1: + struct list_head devices;
1: + struct pnp_protocol *protocol;
1: + struct pnp_id *id;
1: + char name[50];
1: + unsigned char pnpver;
1: + unsigned char productver;
1: + unsigned int serial;
1: + unsigned char checksum;
1: + struct proc_dir_entry *procdir;
1: +};
1: +
1: +struct pnp_dev;
1: +
1: +struct pnp_protocol {
1: + struct list_head protocol_list;
1: + char *name;
1: + int (*get)(struct pnp_dev *);
1: + int (*set)(struct pnp_dev *);
1: + int (*disable)(struct pnp_dev *);
1: + bool (*can_wakeup)(struct pnp_dev *);
1: + int (*suspend)(struct pnp_dev *, pm_message_t);
1: + int (*resume)(struct pnp_dev *);
1: + unsigned char number;
1: + struct device dev;
1: + struct list_head cards;
1: + struct list_head devices;
1: +};
1: +
1: +struct pnp_id {
1: + char id[8];
1: + struct pnp_id *next;
1: +};
1: +
1: +struct pnp_card_driver;
1: +
1: +struct pnp_card_link {
1: + struct pnp_card *card;
1: + struct pnp_card_driver *driver;
1: + void *driver_data;
1: + pm_message_t pm_state;
1: +};
1: +
1: +struct pnp_driver {
1: + const char *name;
1: + const struct pnp_device_id *id_table;
1: + unsigned int flags;
1: + int (*probe)(struct pnp_dev *, const struct pnp_device_id *);
1: + void (*remove)(struct pnp_dev *);
1: + void (*shutdown)(struct pnp_dev *);
1: + int (*suspend)(struct pnp_dev *, pm_message_t);
1: + int (*resume)(struct pnp_dev *);
1: + struct device_driver driver;
1: +};
1: +
1: +struct pnp_card_driver {
1: + struct list_head global_list;
1: + char *name;
1: + const struct pnp_card_device_id *id_table;
1: + unsigned int flags;
1: + int (*probe)(struct pnp_card_link *, const struct pnp_card_device_id *);
1: + void (*remove)(struct pnp_card_link *);
1: + int (*suspend)(struct pnp_card_link *, pm_message_t);
1: + int (*resume)(struct pnp_card_link *);
1: + struct pnp_driver link;
1: +};
1: +
1: +struct pnp_dev {
1: + struct device dev;
1: + u64 dma_mask;
1: + unsigned int number;
1: + int status;
1: + struct list_head global_list;
1: + struct list_head protocol_list;
1: + struct list_head card_list;
1: + struct list_head rdev_list;
1: + struct pnp_protocol *protocol;
1: + struct pnp_card *card;
1: + struct pnp_driver *driver;
1: + struct pnp_card_link *card_link;
1: + struct pnp_id *id;
1: + int active;
1: + int capabilities;
1: + unsigned int num_dependent_sets;
1: + struct list_head resources;
1: + struct list_head options;
1: + char name[50];
1: + int flags;
1: + struct proc_dir_entry *procent;
1: + void *data;
1: +};
1: +
1: +struct pnp_resource {
1: + struct list_head list;
1: + struct resource res;
1: +};
1: +
1: +struct pnp_port {
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t size;
1: + unsigned char flags;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int bits[4];
1: +} pnp_irq_mask_t;
1: +
1: +struct pnp_irq {
1: + pnp_irq_mask_t map;
1: + unsigned char flags;
1: +};
1: +
1: +struct pnp_dma {
1: + unsigned char map;
1: + unsigned char flags;
1: +};
1: +
1: +struct pnp_mem {
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t size;
1: + unsigned char flags;
1: +};
1: +
1: +struct pnp_option {
1: + struct list_head list;
1: + unsigned int flags;
1: + long unsigned int type;
1: + union {
1: + struct pnp_port port;
1: + struct pnp_irq irq;
1: + struct pnp_dma dma;
1: + struct pnp_mem mem;
1: + } u;
1: +};
1: +
1: +struct pnp_info_buffer {
1: + char *buffer;
1: + char *curr;
1: + long unsigned int size;
1: + long unsigned int len;
1: + int stop;
1: + int error;
1: +};
1: +
1: +typedef struct pnp_info_buffer pnp_info_buffer_t;
1: +
1: +struct pnp_fixup {
1: + char id[7];
1: + void (*quirk_function)(struct pnp_dev *);
1: +};
1: +
1: +struct acpipnp_parse_option_s {
1: + struct pnp_dev *dev;
1: + unsigned int option_flags;
1: +};
1: +
1: +struct deferred_device {
1: + struct amba_device *dev;
1: + struct resource *parent;
1: + struct list_head node;
1: +};
1: +
1: +struct find_data {
1: + struct amba_device *dev;
1: + struct device *parent;
1: + const char *busid;
1: + unsigned int id;
1: + unsigned int mask;
1: +};
1: +
1: +struct tegra_ahb {
1: + void *regs;
1: + struct device *dev;
1: + u32 ctx[0];
1: +};
1: +
1: +struct clk_bulk_devres {
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: +};
1: +
1: +struct clk_hw;
1: +
1: +struct clk_lookup {
1: + struct list_head node;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct clk *clk;
1: + struct clk_hw *clk_hw;
1: +};
1: +
1: +struct clk_core;
1: +
1: +struct clk_init_data;
1: +
1: +struct clk_hw {
1: + struct clk_core *core;
1: + struct clk *clk;
1: + const struct clk_init_data *init;
1: +};
1: +
1: +struct clk_rate_request {
1: + long unsigned int rate;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int best_parent_rate;
1: + struct clk_hw *best_parent_hw;
1: +};
1: +
1: +struct clk_duty {
1: + unsigned int num;
1: + unsigned int den;
1: +};
1: +
1: +struct clk_ops {
1: + int (*prepare)(struct clk_hw *);
1: + void (*unprepare)(struct clk_hw *);
1: + int (*is_prepared)(struct clk_hw *);
1: + void (*unprepare_unused)(struct clk_hw *);
1: + int (*enable)(struct clk_hw *);
1: + void (*disable)(struct clk_hw *);
1: + int (*is_enabled)(struct clk_hw *);
1: + void (*disable_unused)(struct clk_hw *);
1: + int (*save_context)(struct clk_hw *);
1: + void (*restore_context)(struct clk_hw *);
1: + long unsigned int (*recalc_rate)(struct clk_hw *, long unsigned int);
1: + long int (*round_rate)(struct clk_hw *, long unsigned int, long unsigned int *);
1: + int (*determine_rate)(struct clk_hw *, struct clk_rate_request *);
1: + int (*set_parent)(struct clk_hw *, u8);
1: + u8 (*get_parent)(struct clk_hw *);
1: + int (*set_rate)(struct clk_hw *, long unsigned int, long unsigned int);
1: + int (*set_rate_and_parent)(struct clk_hw *, long unsigned int, long unsigned int, u8);
1: + long unsigned int (*recalc_accuracy)(struct clk_hw *, long unsigned int);
1: + int (*get_phase)(struct clk_hw *);
1: + int (*set_phase)(struct clk_hw *, int);
1: + int (*get_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: + int (*set_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: + int (*init)(struct clk_hw *);
1: + void (*terminate)(struct clk_hw *);
1: + void (*debug_init)(struct clk_hw *, struct dentry *);
1: +};
1: +
1: +struct clk_parent_data {
1: + const struct clk_hw *hw;
1: + const char *fw_name;
1: + const char *name;
1: + int index;
1: +};
1: +
1: +struct clk_init_data {
1: + const char *name;
1: + const struct clk_ops *ops;
1: + const char * const *parent_names;
1: + const struct clk_parent_data *parent_data;
1: + const struct clk_hw **parent_hws;
1: + u8 num_parents;
1: + long unsigned int flags;
1: +};
1: +
1: +struct clk_lookup_alloc {
1: + struct clk_lookup cl;
1: + char dev_id[20];
1: + char con_id[16];
1: +};
1: +
1: +struct clk_notifier {
1: + struct clk *clk;
1: + struct srcu_notifier_head notifier_head;
1: + struct list_head node;
1: +};
1: +
1: +struct clk {
1: + struct clk_core *core;
1: + struct device *dev;
1: + const char *dev_id;
1: + const char *con_id;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + unsigned int exclusive_count;
1: + struct hlist_node clks_node;
1: +};
1: +
1: +struct clk_notifier_data {
1: + struct clk *clk;
1: + long unsigned int old_rate;
1: + long unsigned int new_rate;
1: +};
1: +
1: +struct clk_parent_map;
1: +
1: +struct clk_core {
1: + const char *name;
1: + const struct clk_ops *ops;
1: + struct clk_hw *hw;
1: + struct module *owner;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + struct clk_core *parent;
1: + struct clk_parent_map *parents;
1: + u8 num_parents;
1: + u8 new_parent_index;
1: + long unsigned int rate;
1: + long unsigned int req_rate;
1: + long unsigned int new_rate;
1: + struct clk_core *new_parent;
1: + struct clk_core *new_child;
1: + long unsigned int flags;
1: + bool orphan;
1: + bool rpm_enabled;
1: + unsigned int enable_count;
1: + unsigned int prepare_count;
1: + unsigned int protect_count;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int accuracy;
1: + int phase;
1: + struct clk_duty duty;
1: + struct hlist_head children;
1: + struct hlist_node child_node;
1: + struct hlist_head clks;
1: + unsigned int notifier_count;
1: + struct dentry *dentry;
1: + struct hlist_node debug_node;
1: + struct kref ref;
1: +};
1: +
1: +struct clk_onecell_data {
1: + struct clk **clks;
1: + unsigned int clk_num;
1: +};
1: +
1: +struct clk_hw_onecell_data {
1: + unsigned int num;
1: + struct clk_hw *hws[0];
1: +};
1: +
1: +struct clk_parent_map {
1: + const struct clk_hw *hw;
1: + struct clk_core *core;
1: + const char *fw_name;
1: + const char *name;
1: + int index;
1: +};
1: +
1: +struct trace_event_raw_clk {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clk_rate {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + long unsigned int rate;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clk_parent {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_pname;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clk_phase {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int phase;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clk_duty_cycle {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int num;
1: + unsigned int den;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_clk {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_clk_rate {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_clk_parent {
1: + u32 name;
1: + u32 pname;
1: +};
1: +
1: +struct trace_event_data_offsets_clk_phase {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_clk_duty_cycle {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_clk_enable)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_enable_complete)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_disable)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_disable_complete)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_prepare)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_prepare_complete)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_unprepare)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_unprepare_complete)(void *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_set_rate)(void *, struct clk_core *, long unsigned int);
1: +
1: +typedef void (*btf_trace_clk_set_rate_complete)(void *, struct clk_core *, long unsigned int);
1: +
1: +typedef void (*btf_trace_clk_set_parent)(void *, struct clk_core *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_set_parent_complete)(void *, struct clk_core *, struct clk_core *);
1: +
1: +typedef void (*btf_trace_clk_set_phase)(void *, struct clk_core *, int);
1: +
1: +typedef void (*btf_trace_clk_set_phase_complete)(void *, struct clk_core *, int);
1: +
1: +typedef void (*btf_trace_clk_set_duty_cycle)(void *, struct clk_core *, struct clk_duty *);
1: +
1: +typedef void (*btf_trace_clk_set_duty_cycle_complete)(void *, struct clk_core *, struct clk_duty *);
1: +
1: +struct of_clk_provider {
1: + struct list_head link;
1: + struct device_node *node;
1: + struct clk * (*get)(struct of_phandle_args *, void *);
1: + struct clk_hw * (*get_hw)(struct of_phandle_args *, void *);
1: + void *data;
1: +};
1: +
1: +struct clock_provider {
1: + void (*clk_init_cb)(struct device_node *);
1: + struct device_node *np;
1: + struct list_head node;
1: +};
1: +
1: +struct clk_div_table {
1: + unsigned int val;
1: + unsigned int div;
1: +};
1: +
1: +struct clk_divider {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + const struct clk_div_table *table;
1: + spinlock_t *lock;
1: +};
1: +
1: +typedef void (*of_init_fn_1)(struct device_node *);
1: +
1: +struct clk_fixed_factor {
1: + struct clk_hw hw;
1: + unsigned int mult;
1: + unsigned int div;
1: +};
1: +
1: +struct clk_fixed_rate {
1: + struct clk_hw hw;
1: + long unsigned int fixed_rate;
1: + long unsigned int fixed_accuracy;
1: + long unsigned int flags;
1: +};
1: +
1: +struct clk_gate {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 bit_idx;
1: + u8 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct clk_multiplier {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct clk_mux {
1: + struct clk_hw hw;
1: + void *reg;
1: + u32 *table;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct clk_composite {
1: + struct clk_hw hw;
1: + struct clk_ops ops;
1: + struct clk_hw *mux_hw;
1: + struct clk_hw *rate_hw;
1: + struct clk_hw *gate_hw;
1: + const struct clk_ops *mux_ops;
1: + const struct clk_ops *rate_ops;
1: + const struct clk_ops *gate_ops;
1: +};
1: +
1: +struct clk_fractional_divider {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 mshift;
1: + u8 mwidth;
1: + u32 mmask;
1: + u8 nshift;
1: + u8 nwidth;
1: + u32 nmask;
1: + u8 flags;
1: + void (*approximation)(struct clk_hw *, long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *);
1: + spinlock_t *lock;
1: +};
1: +
1: +struct clk_gpio {
1: + struct clk_hw hw;
1: + struct gpio_desc *gpiod;
1: +};
1: +
1: +struct ccsr_guts {
1: + u32 porpllsr;
1: + u32 porbmsr;
1: + u32 porimpscr;
1: + u32 pordevsr;
1: + u32 pordbgmsr;
1: + u32 pordevsr2;
1: + u8 res018[8];
1: + u32 porcir;
1: + u8 res024[12];
1: + u32 gpiocr;
1: + u8 res034[12];
1: + u32 gpoutdr;
1: + u8 res044[12];
1: + u32 gpindr;
1: + u8 res054[12];
1: + u32 pmuxcr;
1: + u32 pmuxcr2;
1: + u32 dmuxcr;
1: + u8 res06c[4];
1: + u32 devdisr;
1: + u32 devdisr2;
1: + u8 res078[4];
1: + u32 pmjcr;
1: + u32 powmgtcsr;
1: + u32 pmrccr;
1: + u32 pmpdccr;
1: + u32 pmcdr;
1: + u32 mcpsumr;
1: + u32 rstrscr;
1: + u32 ectrstcr;
1: + u32 autorstsr;
1: + u32 pvr;
1: + u32 svr;
1: + u8 res0a8[8];
1: + u32 rstcr;
1: + u8 res0b4[12];
1: + u32 iovselsr;
1: + u8 res0c4[60];
1: + u32 rcwsr[16];
1: + u8 res140[228];
1: + u32 iodelay1;
1: + u32 iodelay2;
1: + u8 res22c[984];
1: + u32 pamubypenr;
1: + u8 res608[504];
1: + u32 clkdvdr;
1: + u8 res804[252];
1: + u32 ircr;
1: + u8 res904[4];
1: + u32 dmacr;
1: + u8 res90c[8];
1: + u32 elbccr;
1: + u8 res918[520];
1: + u32 ddr1clkdr;
1: + u32 ddr2clkdr;
1: + u32 ddrclkdr;
1: + u8 resb2c[724];
1: + u32 clkocr;
1: + u8 rese04[12];
1: + u32 ddrdllcr;
1: + u8 rese14[12];
1: + u32 lbcdllcr;
1: + u32 cpfor;
1: + u8 rese28[220];
1: + u32 srds1cr0;
1: + u32 srds1cr1;
1: + u8 resf0c[32];
1: + u32 itcr;
1: + u8 resf30[16];
1: + u32 srds2cr0;
1: + u32 srds2cr1;
1: +};
1: +
1: +struct clockgen_pll_div {
1: + struct clk *clk;
1: + char name[32];
1: +};
1: +
1: +struct clockgen_pll {
1: + struct clockgen_pll_div div[32];
1: +};
1: +
1: +struct clockgen_sourceinfo {
1: + u32 flags;
1: + int pll;
1: + int div;
1: +};
1: +
1: +struct clockgen_muxinfo {
1: + struct clockgen_sourceinfo clksel[16];
1: +};
1: +
1: +struct clockgen;
1: +
1: +struct clockgen_chipinfo {
1: + const char *compat;
1: + const char *guts_compat;
1: + const struct clockgen_muxinfo *cmux_groups[2];
1: + const struct clockgen_muxinfo *hwaccel[5];
1: + void (*init_periph)(struct clockgen *);
1: + int cmux_to_group[9];
1: + u32 pll_mask;
1: + u32 flags;
1: +};
1: +
1: +struct clockgen {
1: + struct device_node *node;
1: + void *regs;
1: + struct clockgen_chipinfo info;
1: + struct clk *sysclk;
1: + struct clk *coreclk;
1: + struct clockgen_pll pll[6];
1: + struct clk *cmux[8];
1: + struct clk *hwaccel[5];
1: + struct clk *fman[2];
1: + struct ccsr_guts *guts;
1: +};
1: +
1: +struct mux_hwclock {
1: + struct clk_hw hw;
1: + struct clockgen *cg;
1: + const struct clockgen_muxinfo *info;
1: + u32 *reg;
1: + u8 parent_to_clksel[16];
1: + s8 clksel_to_parent[16];
1: + int num_parents;
1: +};
1: +
1: +struct scpi_opp {
1: + u32 freq;
1: + u32 m_volt;
1: +};
1: +
1: +struct scpi_dvfs_info {
1: + unsigned int count;
1: + unsigned int latency;
1: + struct scpi_opp *opps;
1: +};
1: +
1: +struct scpi_sensor_info {
1: + u16 sensor_id;
1: + u8 class;
1: + u8 trigger_type;
1: + char name[20];
1: +};
1: +
1: +struct scpi_ops {
1: + u32 (*get_version)();
1: + int (*clk_get_range)(u16, long unsigned int *, long unsigned int *);
1: + long unsigned int (*clk_get_val)(u16);
1: + int (*clk_set_val)(u16, long unsigned int);
1: + int (*dvfs_get_idx)(u8);
1: + int (*dvfs_set_idx)(u8, u8);
1: + struct scpi_dvfs_info * (*dvfs_get_info)(u8);
1: + int (*device_domain_id)(struct device *);
1: + int (*get_transition_latency)(struct device *);
1: + int (*add_opps_to_device)(struct device *);
1: + int (*sensor_get_capability)(u16 *);
1: + int (*sensor_get_info)(u16, struct scpi_sensor_info *);
1: + int (*sensor_get_value)(u16, u64 *);
1: + int (*device_get_power_state)(u16);
1: + int (*device_set_power_state)(u16, u8);
1: +};
1: +
1: +struct scpi_clk {
1: + u32 id;
1: + struct clk_hw hw;
1: + struct scpi_dvfs_info *info;
1: + struct scpi_ops *scpi_ops;
1: +};
1: +
1: +struct scpi_clk_data {
1: + struct scpi_clk **clk;
1: + unsigned int clk_num;
1: +};
1: +
1: +enum xgene_pll_type {
1: + PLL_TYPE_PCP = 0,
1: + PLL_TYPE_SOC = 1,
1: +};
1: +
1: +struct xgene_clk_pll {
1: + struct clk_hw hw;
1: + void *reg;
1: + spinlock_t *lock;
1: + u32 pll_offset;
1: + enum xgene_pll_type type;
1: + int version;
1: +};
1: +
1: +struct xgene_clk_pmd {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u32 mask;
1: + u64 denom;
1: + u32 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct xgene_dev_parameters {
1: + void *csr_reg;
1: + u32 reg_clk_offset;
1: + u32 reg_clk_mask;
1: + u32 reg_csr_offset;
1: + u32 reg_csr_mask;
1: + void *divider_reg;
1: + u32 reg_divider_offset;
1: + u32 reg_divider_shift;
1: + u32 reg_divider_width;
1: +};
1: +
1: +struct xgene_clk {
1: + struct clk_hw hw;
1: + spinlock_t *lock;
1: + struct xgene_dev_parameters param;
1: +};
1: +
1: +struct reset_controller_dev;
1: +
1: +struct reset_control_ops {
1: + int (*reset)(struct reset_controller_dev *, long unsigned int);
1: + int (*assert)(struct reset_controller_dev *, long unsigned int);
1: + int (*deassert)(struct reset_controller_dev *, long unsigned int);
1: + int (*status)(struct reset_controller_dev *, long unsigned int);
1: +};
1: +
1: +struct reset_controller_dev {
1: + const struct reset_control_ops *ops;
1: + struct module *owner;
1: + struct list_head list;
1: + struct list_head reset_control_head;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + int of_reset_n_cells;
1: + int (*of_xlate)(struct reset_controller_dev *, const struct of_phandle_args *);
1: + unsigned int nr_resets;
1: +};
1: +
1: +struct reset_simple_data {
1: + spinlock_t lock;
1: + void *membase;
1: + struct reset_controller_dev rcdev;
1: + bool active_low;
1: + bool status_active_low;
1: + unsigned int reset_us;
1: +};
1: +
1: +struct clk_dvp {
1: + struct clk_hw_onecell_data *data;
1: + struct reset_simple_data reset;
1: +};
1: +
1: +struct bcm2835_cprman {
1: + struct device *dev;
1: + void *regs;
1: + spinlock_t regs_lock;
1: + unsigned int soc;
1: + const char *real_parent_names[7];
1: + struct clk_hw_onecell_data onecell;
1: +};
1: +
1: +struct cprman_plat_data {
1: + unsigned int soc;
1: +};
1: +
1: +struct bcm2835_pll_ana_bits;
1: +
1: +struct bcm2835_pll_data {
1: + const char *name;
1: + u32 cm_ctrl_reg;
1: + u32 a2w_ctrl_reg;
1: + u32 frac_reg;
1: + u32 ana_reg_base;
1: + u32 reference_enable_mask;
1: + u32 lock_mask;
1: + u32 flags;
1: + const struct bcm2835_pll_ana_bits *ana;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int max_fb_rate;
1: +};
1: +
1: +struct bcm2835_pll_ana_bits {
1: + u32 mask0;
1: + u32 set0;
1: + u32 mask1;
1: + u32 set1;
1: + u32 mask3;
1: + u32 set3;
1: + u32 fb_prediv_mask;
1: +};
1: +
1: +struct bcm2835_pll_divider_data {
1: + const char *name;
1: + const char *source_pll;
1: + u32 cm_reg;
1: + u32 a2w_reg;
1: + u32 load_mask;
1: + u32 hold_mask;
1: + u32 fixed_divider;
1: + u32 flags;
1: +};
1: +
1: +struct bcm2835_clock_data {
1: + const char *name;
1: + const char * const *parents;
1: + int num_mux_parents;
1: + unsigned int set_rate_parent;
1: + u32 ctl_reg;
1: + u32 div_reg;
1: + u32 int_bits;
1: + u32 frac_bits;
1: + u32 flags;
1: + bool is_vpu_clock;
1: + bool is_mash_clock;
1: + bool low_jitter;
1: + u32 tcnt_mux;
1: +};
1: +
1: +struct bcm2835_gate_data {
1: + const char *name;
1: + const char *parent;
1: + u32 ctl_reg;
1: +};
1: +
1: +struct bcm2835_pll {
1: + struct clk_hw hw;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_pll_data *data;
1: +};
1: +
1: +struct bcm2835_pll_divider {
1: + struct clk_divider div;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_pll_divider_data *data;
1: +};
1: +
1: +struct bcm2835_clock {
1: + struct clk_hw hw;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_clock_data *data;
1: +};
1: +
1: +struct bcm2835_clk_desc {
1: + struct clk_hw * (*clk_register)(struct bcm2835_cprman *, const void *);
1: + unsigned int supported;
1: + const void *data;
1: +};
1: +
1: +struct hisi_clock_data {
1: + struct clk_onecell_data clk_data;
1: + void *base;
1: +};
1: +
1: +struct hisi_fixed_rate_clock {
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int fixed_rate;
1: +};
1: +
1: +struct hisi_fixed_factor_clock {
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int mult;
1: + long unsigned int div;
1: + long unsigned int flags;
1: +};
1: +
1: +struct hisi_mux_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char * const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 mux_flags;
1: + u32 *table;
1: + const char *alias;
1: +};
1: +
1: +struct hisi_phase_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_names;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u32 *phase_degrees;
1: + u32 *phase_regvals;
1: + u8 phase_num;
1: +};
1: +
1: +struct hisi_divider_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 div_flags;
1: + struct clk_div_table *table;
1: + const char *alias;
1: +};
1: +
1: +struct hi6220_divider_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u32 mask_bit;
1: + const char *alias;
1: +};
1: +
1: +struct hisi_gate_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 bit_idx;
1: + u8 gate_flags;
1: + const char *alias;
1: +};
1: +
1: +struct clkgate_separated {
1: + struct clk_hw hw;
1: + void *enable;
1: + u8 bit_idx;
1: + u8 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct hi6220_clk_divider {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u32 mask;
1: + const struct clk_div_table *table;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct clk_hisi_phase {
1: + struct clk_hw hw;
1: + void *reg;
1: + u32 *phase_degrees;
1: + u32 *phase_regvals;
1: + u8 phase_num;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct hisi_crg_funcs {
1: + struct hisi_clock_data * (*register_clks)(struct platform_device *);
1: + void (*unregister_clks)(struct platform_device *);
1: +};
1: +
1: +struct hisi_reset_controller;
1: +
1: +struct hisi_crg_dev {
1: + struct hisi_clock_data *clk_data;
1: + struct hisi_reset_controller *rstc;
1: + const struct hisi_crg_funcs *funcs;
1: +};
1: +
1: +struct hi3519_crg_data {
1: + struct hisi_clock_data *clk_data;
1: + struct hisi_reset_controller *rstc;
1: +};
1: +
1: +struct hisi_reset_controller___2 {
1: + spinlock_t lock;
1: + void *membase;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct mbox_chan___2;
1: +
1: +struct hi6220_stub_clk {
1: + u32 id;
1: + struct device *dev;
1: + struct clk_hw hw;
1: + struct regmap *dfs_map;
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *mbox;
1: +};
1: +
1: +struct hi6220_mbox_msg {
1: + unsigned char type;
1: + unsigned char cmd;
1: + unsigned char obj;
1: + unsigned char src;
1: + unsigned char para[4];
1: +};
1: +
1: +union hi6220_mbox_data {
1: + unsigned int data[8];
1: + struct hi6220_mbox_msg msg;
1: +};
1: +
1: +struct hi3660_stub_clk_chan {
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *mbox;
1: +};
1: +
1: +struct hi3660_stub_clk {
1: + unsigned int id;
1: + struct clk_hw hw;
1: + unsigned int cmd;
1: + unsigned int msg[8];
1: + unsigned int rate;
1: +};
1: +
1: +struct mtk_fixed_clk {
1: + int id;
1: + const char *name;
1: + const char *parent;
1: + long unsigned int rate;
1: +};
1: +
1: +struct mtk_fixed_factor {
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + int mult;
1: + int div;
1: +};
1: +
1: +struct mtk_composite {
1: + int id;
1: + const char *name;
1: + const char * const *parent_names;
1: + const char *parent;
1: + unsigned int flags;
1: + uint32_t mux_reg;
1: + uint32_t divider_reg;
1: + uint32_t gate_reg;
1: + signed char mux_shift;
1: + signed char mux_width;
1: + signed char gate_shift;
1: + signed char divider_shift;
1: + signed char divider_width;
1: + u8 mux_flags;
1: + signed char num_parents;
1: +};
1: +
1: +struct mtk_gate_regs {
1: + u32 sta_ofs;
1: + u32 clr_ofs;
1: + u32 set_ofs;
1: +};
1: +
1: +struct mtk_gate {
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + const struct mtk_gate_regs *regs;
1: + int shift;
1: + const struct clk_ops *ops;
1: + long unsigned int flags;
1: +};
1: +
1: +struct mtk_clk_divider {
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + u32 div_reg;
1: + unsigned char div_shift;
1: + unsigned char div_width;
1: + unsigned char clk_divider_flags;
1: + const struct clk_div_table *clk_div_table;
1: +};
1: +
1: +struct mtk_pll_div_table {
1: + u32 div;
1: + long unsigned int freq;
1: +};
1: +
1: +struct mtk_pll_data {
1: + int id;
1: + const char *name;
1: + uint32_t reg;
1: + uint32_t pwr_reg;
1: + uint32_t en_mask;
1: + uint32_t pd_reg;
1: + uint32_t tuner_reg;
1: + uint32_t tuner_en_reg;
1: + uint8_t tuner_en_bit;
1: + int pd_shift;
1: + unsigned int flags;
1: + const struct clk_ops *ops;
1: + u32 rst_bar_mask;
1: + long unsigned int fmin;
1: + long unsigned int fmax;
1: + int pcwbits;
1: + int pcwibits;
1: + uint32_t pcw_reg;
1: + int pcw_shift;
1: + uint32_t pcw_chg_reg;
1: + const struct mtk_pll_div_table *div_table;
1: + const char *parent_name;
1: +};
1: +
1: +struct mtk_clk_pll {
1: + struct clk_hw hw;
1: + void *base_addr;
1: + void *pd_addr;
1: + void *pwr_addr;
1: + void *tuner_addr;
1: + void *tuner_en_addr;
1: + void *pcw_addr;
1: + void *pcw_chg_addr;
1: + const struct mtk_pll_data *data;
1: +};
1: +
1: +struct mtk_clk_gate {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + int set_ofs;
1: + int clr_ofs;
1: + int sta_ofs;
1: + u8 bit;
1: +};
1: +
1: +struct mtk_ref2usb_tx {
1: + struct clk_hw hw;
1: + void *base_addr;
1: +};
1: +
1: +struct mtk_clk_cpumux {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u32 reg;
1: + u32 mask;
1: + u8 shift;
1: +};
1: +
1: +struct mtk_reset {
1: + struct regmap *regmap;
1: + int regofs;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct mtk_mux;
1: +
1: +struct mtk_clk_mux {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + const struct mtk_mux *data;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct mtk_mux {
1: + int id;
1: + const char *name;
1: + const char * const *parent_names;
1: + unsigned int flags;
1: + u32 mux_ofs;
1: + u32 set_ofs;
1: + u32 clr_ofs;
1: + u32 upd_ofs;
1: + u8 mux_shift;
1: + u8 mux_width;
1: + u8 gate_shift;
1: + s8 upd_shift;
1: + const struct clk_ops *ops;
1: + signed char num_parents;
1: +};
1: +
1: +struct clk_mt8167_mm_driver_data {
1: + const struct mtk_gate *gates_clk;
1: + int gates_num;
1: +};
1: +
1: +struct mtk_clk_usb {
1: + int id;
1: + const char *name;
1: + const char *parent;
1: + u32 reg_ofs;
1: +};
1: +
1: +struct clk_mt8173_mm_driver_data {
1: + const struct mtk_gate *gates_clk;
1: + int gates_num;
1: +};
1: +
1: +struct clk_regmap {
1: + struct clk_hw hw;
1: + struct regmap *map;
1: + void *data;
1: +};
1: +
1: +struct meson_aoclk_data {
1: + const unsigned int reset_reg;
1: + const int num_reset;
1: + const unsigned int *reset;
1: + const int num_clks;
1: + struct clk_regmap **clks;
1: + const struct clk_hw_onecell_data *hw_data;
1: +};
1: +
1: +struct meson_aoclk_reset_controller {
1: + struct reset_controller_dev reset;
1: + const struct meson_aoclk_data *data;
1: + struct regmap *regmap;
1: +};
1: +
1: +struct parm {
1: + u16 reg_off;
1: + u8 shift;
1: + u8 width;
1: +};
1: +
1: +struct meson_clk_cpu_dyndiv_data {
1: + struct parm div;
1: + struct parm dyn;
1: +};
1: +
1: +struct meson_clk_dualdiv_param {
1: + unsigned int n1;
1: + unsigned int n2;
1: + unsigned int m1;
1: + unsigned int m2;
1: + unsigned int dual;
1: +};
1: +
1: +struct meson_clk_dualdiv_data {
1: + struct parm n1;
1: + struct parm n2;
1: + struct parm m1;
1: + struct parm m2;
1: + struct parm dual;
1: + const struct meson_clk_dualdiv_param *table;
1: +};
1: +
1: +struct reg_sequence {
1: + unsigned int reg;
1: + unsigned int def;
1: + unsigned int delay_us;
1: +};
1: +
1: +struct meson_eeclkc_data {
1: + struct clk_regmap * const *regmap_clks;
1: + unsigned int regmap_clk_num;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + struct clk_hw_onecell_data *hw_onecell_data;
1: +};
1: +
1: +struct meson_clk_mpll_data {
1: + struct parm sdm;
1: + struct parm sdm_en;
1: + struct parm n2;
1: + struct parm ssen;
1: + struct parm misc;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + spinlock_t *lock;
1: + u8 flags;
1: +};
1: +
1: +struct pll_params_table {
1: + unsigned int m;
1: + unsigned int n;
1: +};
1: +
1: +struct pll_mult_range {
1: + unsigned int min;
1: + unsigned int max;
1: +};
1: +
1: +struct meson_clk_pll_data {
1: + struct parm en;
1: + struct parm m;
1: + struct parm n;
1: + struct parm frac;
1: + struct parm l;
1: + struct parm rst;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + const struct pll_params_table *table;
1: + const struct pll_mult_range *range;
1: + u8 flags;
1: +};
1: +
1: +struct clk_regmap_gate_data {
1: + unsigned int offset;
1: + u8 bit_idx;
1: + u8 flags;
1: +};
1: +
1: +struct clk_regmap_div_data {
1: + unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + const struct clk_div_table *table;
1: +};
1: +
1: +struct clk_regmap_mux_data {
1: + unsigned int offset;
1: + u32 *table;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: +};
1: +
1: +struct meson_vid_pll_div_data {
1: + struct parm val;
1: + struct parm sel;
1: +};
1: +
1: +struct vid_pll_div {
1: + unsigned int shift_val;
1: + unsigned int shift_sel;
1: + unsigned int divider;
1: + unsigned int multiplier;
1: +};
1: +
1: +struct g12a_cpu_clk_postmux_nb_data {
1: + struct notifier_block nb;
1: + struct clk_hw *xtal;
1: + struct clk_hw *cpu_clk_dyn;
1: + struct clk_hw *cpu_clk_postmux0;
1: + struct clk_hw *cpu_clk_postmux1;
1: + struct clk_hw *cpu_clk_premux1;
1: +};
1: +
1: +struct g12a_sys_pll_nb_data {
1: + struct notifier_block nb;
1: + struct clk_hw *sys_pll;
1: + struct clk_hw *cpu_clk;
1: + struct clk_hw *cpu_clk_dyn;
1: +};
1: +
1: +struct meson_g12a_data {
1: + const struct meson_eeclkc_data eeclkc_data;
1: + int (*dvfs_setup)(struct platform_device *);
1: +};
1: +
1: +struct tbg_def {
1: + char *name;
1: + u32 refdiv_offset;
1: + u32 fbdiv_offset;
1: + u32 vcodiv_reg;
1: + u32 vcodiv_offset;
1: +};
1: +
1: +struct clk_periph_driver_data {
1: + struct clk_hw_onecell_data *hw_data;
1: + spinlock_t lock;
1: + void *reg;
1: + u32 tbg_sel;
1: + u32 div_sel0;
1: + u32 div_sel1;
1: + u32 div_sel2;
1: + u32 clk_sel;
1: + u32 clk_dis;
1: +};
1: +
1: +struct clk_double_div {
1: + struct clk_hw hw;
1: + void *reg1;
1: + u8 shift1;
1: + void *reg2;
1: + u8 shift2;
1: +};
1: +
1: +struct clk_pm_cpu {
1: + struct clk_hw hw;
1: + void *reg_mux;
1: + u8 shift_mux;
1: + u32 mask_mux;
1: + void *reg_div;
1: + u8 shift_div;
1: + struct regmap *nb_pm_base;
1: +};
1: +
1: +struct clk_periph_data {
1: + const char *name;
1: + const char * const *parent_names;
1: + int num_parents;
1: + struct clk_hw *mux_hw;
1: + struct clk_hw *rate_hw;
1: + struct clk_hw *gate_hw;
1: + struct clk_hw *muxrate_hw;
1: + bool is_double_div;
1: +};
1: +
1: +struct cpu_dfs_regs {
1: + unsigned int divider_reg;
1: + unsigned int force_reg;
1: + unsigned int ratio_reg;
1: + unsigned int ratio_state_reg;
1: + unsigned int divider_mask;
1: + unsigned int cluster_offset;
1: + unsigned int force_mask;
1: + int divider_offset;
1: + int divider_ratio;
1: + int ratio_offset;
1: + int ratio_state_offset;
1: + int ratio_state_cluster_offset;
1: +};
1: +
1: +struct ap_cpu_clk {
1: + unsigned int cluster;
1: + const char *clk_name;
1: + struct device *dev;
1: + struct clk_hw hw;
1: + struct regmap *pll_cr_base;
1: + const struct cpu_dfs_regs *pll_regs;
1: +};
1: +
1: +enum {
1: + CP110_CLK_TYPE_CORE = 0,
1: + CP110_CLK_TYPE_GATABLE = 1,
1: +};
1: +
1: +struct cp110_gate_clk {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u8 bit_idx;
1: +};
1: +
1: +struct clk_regmap___2;
1: +
1: +struct qcom_reset_map;
1: +
1: +struct gdsc;
1: +
1: +struct qcom_cc_desc {
1: + const struct regmap_config *config;
1: + struct clk_regmap___2 **clks;
1: + size_t num_clks;
1: + const struct qcom_reset_map *resets;
1: + size_t num_resets;
1: + struct gdsc **gdscs;
1: + size_t num_gdscs;
1: + struct clk_hw **clk_hws;
1: + size_t num_clk_hws;
1: +};
1: +
1: +struct clk_regmap___2 {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + unsigned int enable_reg;
1: + unsigned int enable_mask;
1: + bool enable_is_inverted;
1: +};
1: +
1: +struct qcom_reset_map {
1: + unsigned int reg;
1: + u8 bit;
1: +};
1: +
1: +enum gpd_status {
1: + GENPD_STATE_ON = 0,
1: + GENPD_STATE_OFF = 1,
1: +};
1: +
1: +struct opp_table;
1: +
1: +struct dev_pm_opp;
1: +
1: +struct gpd_dev_ops {
1: + int (*start)(struct device *);
1: + int (*stop)(struct device *);
1: +};
1: +
1: +struct dev_power_governor;
1: +
1: +struct genpd_power_state;
1: +
1: +struct genpd_lock_ops;
1: +
1: +struct generic_pm_domain {
1: + struct device dev;
1: + struct dev_pm_domain domain;
1: + struct list_head gpd_list_node;
1: + struct list_head parent_links;
1: + struct list_head child_links;
1: + struct list_head dev_list;
1: + struct dev_power_governor *gov;
1: + struct work_struct power_off_work;
1: + struct fwnode_handle *provider;
1: + bool has_provider;
1: + const char *name;
1: + atomic_t sd_count;
1: + enum gpd_status status;
1: + unsigned int device_count;
1: + unsigned int suspended_count;
1: + unsigned int prepared_count;
1: + unsigned int performance_state;
1: + cpumask_var_t cpus;
1: + int (*power_off)(struct generic_pm_domain *);
1: + int (*power_on)(struct generic_pm_domain *);
1: + struct raw_notifier_head power_notifiers;
1: + struct opp_table *opp_table;
1: + unsigned int (*opp_to_performance_state)(struct generic_pm_domain *, struct dev_pm_opp *);
1: + int (*set_performance_state)(struct generic_pm_domain *, unsigned int);
1: + struct gpd_dev_ops dev_ops;
1: + s64 max_off_time_ns;
1: + bool max_off_time_changed;
1: + bool cached_power_down_ok;
1: + bool cached_power_down_state_idx;
1: + int (*attach_dev)(struct generic_pm_domain *, struct device *);
1: + void (*detach_dev)(struct generic_pm_domain *, struct device *);
1: + unsigned int flags;
1: + struct genpd_power_state *states;
1: + void (*free_states)(struct genpd_power_state *, unsigned int);
1: + unsigned int state_count;
1: + unsigned int state_idx;
1: + ktime_t on_time;
1: + ktime_t accounting_time;
1: + const struct genpd_lock_ops *lock_ops;
1: + union {
1: + struct mutex mlock;
1: + struct {
1: + spinlock_t slock;
1: + long unsigned int lock_flags;
1: + };
1: + };
1: +};
1: +
1: +struct gdsc {
1: + struct generic_pm_domain pd;
1: + struct generic_pm_domain *parent;
1: + struct regmap *regmap;
1: + unsigned int gdscr;
1: + unsigned int gds_hw_ctrl;
1: + unsigned int clamp_io_ctrl;
1: + unsigned int *cxcs;
1: + unsigned int cxc_count;
1: + const u8 pwrsts;
1: + const u8 flags;
1: + struct reset_controller_dev *rcdev;
1: + unsigned int *resets;
1: + unsigned int reset_count;
1: + const char *supply;
1: + struct regulator *rsupply;
1: +};
1: +
1: +struct parent_map {
1: + u8 src;
1: + u8 cfg;
1: +};
1: +
1: +struct freq_tbl {
1: + long unsigned int freq;
1: + u8 src;
1: + u8 pre_div;
1: + u16 m;
1: + u16 n;
1: +};
1: +
1: +struct qcom_reset_controller {
1: + const struct qcom_reset_map *reset_map;
1: + struct regmap *regmap;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct dev_power_governor {
1: + bool (*power_down_ok)(struct dev_pm_domain *);
1: + bool (*suspend_ok)(struct device *);
1: +};
1: +
1: +struct genpd_power_state {
1: + s64 power_off_latency_ns;
1: + s64 power_on_latency_ns;
1: + s64 residency_ns;
1: + u64 usage;
1: + u64 rejected;
1: + struct fwnode_handle *fwnode;
1: + ktime_t idle_time;
1: + void *data;
1: +};
1: +
1: +struct genpd_lock_ops {
1: + void (*lock)(struct generic_pm_domain *);
1: + void (*lock_nested)(struct generic_pm_domain *, int);
1: + int (*lock_interruptible)(struct generic_pm_domain *);
1: + void (*unlock)(struct generic_pm_domain *);
1: +};
1: +
1: +struct gdsc_desc {
1: + struct device *dev;
1: + struct gdsc **scs;
1: + size_t num;
1: +};
1: +
1: +struct qcom_cc {
1: + struct qcom_reset_controller reset;
1: + struct clk_regmap___2 **rclks;
1: + size_t num_rclks;
1: +};
1: +
1: +enum {
1: + CLK_ALPHA_PLL_TYPE_DEFAULT = 0,
1: + CLK_ALPHA_PLL_TYPE_HUAYRA = 1,
1: + CLK_ALPHA_PLL_TYPE_BRAMMO = 2,
1: + CLK_ALPHA_PLL_TYPE_FABIA = 3,
1: + CLK_ALPHA_PLL_TYPE_TRION = 4,
1: + CLK_ALPHA_PLL_TYPE_LUCID = 4,
1: + CLK_ALPHA_PLL_TYPE_MAX = 5,
1: +};
1: +
1: +enum {
1: + PLL_OFF_L_VAL = 0,
1: + PLL_OFF_CAL_L_VAL = 1,
1: + PLL_OFF_ALPHA_VAL = 2,
1: + PLL_OFF_ALPHA_VAL_U = 3,
1: + PLL_OFF_USER_CTL = 4,
1: + PLL_OFF_USER_CTL_U = 5,
1: + PLL_OFF_USER_CTL_U1 = 6,
1: + PLL_OFF_CONFIG_CTL = 7,
1: + PLL_OFF_CONFIG_CTL_U = 8,
1: + PLL_OFF_CONFIG_CTL_U1 = 9,
1: + PLL_OFF_TEST_CTL = 10,
1: + PLL_OFF_TEST_CTL_U = 11,
1: + PLL_OFF_TEST_CTL_U1 = 12,
1: + PLL_OFF_STATUS = 13,
1: + PLL_OFF_OPMODE = 14,
1: + PLL_OFF_FRAC = 15,
1: + PLL_OFF_CAL_VAL = 16,
1: + PLL_OFF_MAX_REGS = 17,
1: +};
1: +
1: +struct pll_vco {
1: + long unsigned int min_freq;
1: + long unsigned int max_freq;
1: + u32 val;
1: +};
1: +
1: +struct clk_alpha_pll {
1: + u32 offset;
1: + const u8 *regs;
1: + const struct pll_vco *vco_table;
1: + size_t num_vco;
1: + u8 flags;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct clk_alpha_pll_postdiv {
1: + u32 offset;
1: + u8 width;
1: + const u8 *regs;
1: + struct clk_regmap___2 clkr;
1: + int post_div_shift;
1: + const struct clk_div_table *post_div_table;
1: + size_t num_post_div;
1: +};
1: +
1: +struct alpha_pll_config {
1: + u32 l;
1: + u32 alpha;
1: + u32 alpha_hi;
1: + u32 config_ctl_val;
1: + u32 config_ctl_hi_val;
1: + u32 config_ctl_hi1_val;
1: + u32 user_ctl_val;
1: + u32 user_ctl_hi_val;
1: + u32 user_ctl_hi1_val;
1: + u32 test_ctl_val;
1: + u32 test_ctl_hi_val;
1: + u32 test_ctl_hi1_val;
1: + u32 main_output_mask;
1: + u32 aux_output_mask;
1: + u32 aux2_output_mask;
1: + u32 early_output_mask;
1: + u32 alpha_en_mask;
1: + u32 alpha_mode_mask;
1: + u32 pre_div_val;
1: + u32 pre_div_mask;
1: + u32 post_div_val;
1: + u32 post_div_mask;
1: + u32 vco_val;
1: + u32 vco_mask;
1: +};
1: +
1: +struct pll_freq_tbl {
1: + long unsigned int freq;
1: + u16 l;
1: + u16 m;
1: + u16 n;
1: + u32 ibits;
1: +};
1: +
1: +struct clk_pll {
1: + u32 l_reg;
1: + u32 m_reg;
1: + u32 n_reg;
1: + u32 config_reg;
1: + u32 mode_reg;
1: + u32 status_reg;
1: + u8 status_bit;
1: + u8 post_div_width;
1: + u8 post_div_shift;
1: + const struct pll_freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct pll_config {
1: + u16 l;
1: + u32 m;
1: + u32 n;
1: + u32 vco_val;
1: + u32 vco_mask;
1: + u32 pre_div_val;
1: + u32 pre_div_mask;
1: + u32 post_div_val;
1: + u32 post_div_mask;
1: + u32 mn_ena_mask;
1: + u32 main_output_mask;
1: + u32 aux_output_mask;
1: +};
1: +
1: +struct mn {
1: + u8 mnctr_en_bit;
1: + u8 mnctr_reset_bit;
1: + u8 mnctr_mode_shift;
1: + u8 n_val_shift;
1: + u8 m_val_shift;
1: + u8 width;
1: + bool reset_in_cc;
1: +};
1: +
1: +struct pre_div {
1: + u8 pre_div_shift;
1: + u8 pre_div_width;
1: +};
1: +
1: +struct src_sel {
1: + u8 src_sel_shift;
1: + const struct parent_map *parent_map;
1: +};
1: +
1: +struct clk_rcg {
1: + u32 ns_reg;
1: + u32 md_reg;
1: + struct mn mn;
1: + struct pre_div p;
1: + struct src_sel s;
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct clk_dyn_rcg {
1: + u32 ns_reg[2];
1: + u32 md_reg[2];
1: + u32 bank_reg;
1: + u8 mux_sel_bit;
1: + struct mn mn[2];
1: + struct pre_div p[2];
1: + struct src_sel s[2];
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct frac_entry {
1: + int num;
1: + int den;
1: +};
1: +
1: +struct clk_rcg2 {
1: + u32 cmd_rcgr;
1: + u8 mnd_width;
1: + u8 hid_width;
1: + u8 safe_src_index;
1: + const struct parent_map *parent_map;
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: + u8 cfg_off;
1: +};
1: +
1: +struct clk_rcg_dfs_data {
1: + struct clk_rcg2 *rcg;
1: + struct clk_init_data *init;
1: +};
1: +
1: +enum freq_policy {
1: + FLOOR = 0,
1: + CEIL = 1,
1: +};
1: +
1: +struct clk_branch {
1: + u32 hwcg_reg;
1: + u32 halt_reg;
1: + u8 hwcg_bit;
1: + u8 halt_bit;
1: + u8 halt_check;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct clk_regmap_div {
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct clk_regmap_mux {
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + const struct parent_map *parent_map;
1: + struct clk_regmap___2 clkr;
1: +};
1: +
1: +struct clk_regmap_mux_div {
1: + u32 reg_offset;
1: + u32 hid_width;
1: + u32 hid_shift;
1: + u32 src_width;
1: + u32 src_shift;
1: + u32 div;
1: + u32 src;
1: + const u32 *parent_map;
1: + struct clk_regmap___2 clkr;
1: + struct clk *pclk;
1: + struct notifier_block clk_nb;
1: +};
1: +
1: +struct hfpll_data {
1: + u32 mode_reg;
1: + u32 l_reg;
1: + u32 m_reg;
1: + u32 n_reg;
1: + u32 user_reg;
1: + u32 droop_reg;
1: + u32 config_reg;
1: + u32 status_reg;
1: + u8 lock_bit;
1: + u32 droop_val;
1: + u32 config_val;
1: + u32 user_val;
1: + u32 user_vco_mask;
1: + long unsigned int low_vco_max_rate;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: +};
1: +
1: +struct clk_hfpll {
1: + const struct hfpll_data *d;
1: + int init_done;
1: + struct clk_regmap___2 clkr;
1: + spinlock_t lock;
1: +};
1: +
1: +typedef struct generic_pm_domain * (*genpd_xlate_t)(struct of_phandle_args *, void *);
1: +
1: +struct genpd_onecell_data {
1: + struct generic_pm_domain **domains;
1: + unsigned int num_domains;
1: + genpd_xlate_t xlate;
1: +};
1: +
1: +enum gdsc_status {
1: + GDSC_OFF = 0,
1: + GDSC_ON = 1,
1: +};
1: +
1: +enum {
1: + P_XO = 0,
1: + P_GPLL0 = 1,
1: + P_GPLL0_AUX = 2,
1: + P_BIMC = 3,
1: + P_GPLL1 = 4,
1: + P_GPLL1_AUX = 5,
1: + P_GPLL2 = 6,
1: + P_GPLL2_AUX = 7,
1: + P_SLEEP_CLK = 8,
1: + P_DSI0_PHYPLL_BYTE = 9,
1: + P_DSI0_PHYPLL_DSI = 10,
1: + P_EXT_PRI_I2S = 11,
1: + P_EXT_SEC_I2S = 12,
1: + P_EXT_MCLK = 13,
1: +};
1: +
1: +enum {
1: + P_XO___2 = 0,
1: + P_GPLL0___2 = 1,
1: + P_GPLL4 = 2,
1: +};
1: +
1: +enum {
1: + P_XO___3 = 0,
1: + P_GPLL0___3 = 1,
1: + P_GPLL2___2 = 2,
1: + P_GPLL3 = 3,
1: + P_GPLL1___2 = 4,
1: + P_GPLL2_EARLY = 5,
1: + P_GPLL0_EARLY_DIV = 6,
1: + P_SLEEP_CLK___2 = 7,
1: + P_GPLL4___2 = 8,
1: + P_AUD_REF_CLK = 9,
1: + P_GPLL1_EARLY_DIV = 10,
1: +};
1: +
1: +enum {
1: + P_XO___4 = 0,
1: + P_MMPLL0 = 1,
1: + P_GPLL0___4 = 2,
1: + P_GPLL0_DIV = 3,
1: + P_MMPLL1 = 4,
1: + P_MMPLL9 = 5,
1: + P_MMPLL2 = 6,
1: + P_MMPLL8 = 7,
1: + P_MMPLL3 = 8,
1: + P_DSI0PLL = 9,
1: + P_DSI1PLL = 10,
1: + P_MMPLL5 = 11,
1: + P_HDMIPLL = 12,
1: + P_DSI0PLL_BYTE = 13,
1: + P_DSI1PLL_BYTE = 14,
1: + P_MMPLL4 = 15,
1: +};
1: +
1: +enum rockchip_pll_type {
1: + pll_rk3036 = 0,
1: + pll_rk3066 = 1,
1: + pll_rk3328 = 2,
1: + pll_rk3399 = 3,
1: +};
1: +
1: +struct rockchip_clk_provider {
1: + void *reg_base;
1: + struct clk_onecell_data clk_data;
1: + struct device_node *cru_node;
1: + struct regmap *grf;
1: + spinlock_t lock;
1: +};
1: +
1: +struct rockchip_pll_rate_table {
1: + long unsigned int rate;
1: + unsigned int nr;
1: + unsigned int nf;
1: + unsigned int no;
1: + unsigned int nb;
1: + unsigned int fbdiv;
1: + unsigned int postdiv1;
1: + unsigned int refdiv;
1: + unsigned int postdiv2;
1: + unsigned int dsmpd;
1: + unsigned int frac;
1: +};
1: +
1: +struct rockchip_pll_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char * const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + int con_offset;
1: + int mode_offset;
1: + int mode_shift;
1: + int lock_shift;
1: + enum rockchip_pll_type type;
1: + u8 pll_flags;
1: + struct rockchip_pll_rate_table *rate_table;
1: +};
1: +
1: +struct rockchip_cpuclk_clksel {
1: + int reg;
1: + u32 val;
1: +};
1: +
1: +struct rockchip_cpuclk_rate_table {
1: + long unsigned int prate;
1: + struct rockchip_cpuclk_clksel divs[2];
1: +};
1: +
1: +struct rockchip_cpuclk_reg_data {
1: + int core_reg;
1: + u8 div_core_shift;
1: + u32 div_core_mask;
1: + u8 mux_core_alt;
1: + u8 mux_core_main;
1: + u8 mux_core_shift;
1: + u32 mux_core_mask;
1: +};
1: +
1: +enum rockchip_clk_branch_type {
1: + branch_composite = 0,
1: + branch_mux = 1,
1: + branch_muxgrf = 2,
1: + branch_divider = 3,
1: + branch_fraction_divider = 4,
1: + branch_gate = 5,
1: + branch_mmc = 6,
1: + branch_inverter = 7,
1: + branch_factor = 8,
1: + branch_ddrclk = 9,
1: + branch_half_divider = 10,
1: +};
1: +
1: +struct rockchip_clk_branch {
1: + unsigned int id;
1: + enum rockchip_clk_branch_type branch_type;
1: + const char *name;
1: + const char * const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + int muxdiv_offset;
1: + u8 mux_shift;
1: + u8 mux_width;
1: + u8 mux_flags;
1: + int div_offset;
1: + u8 div_shift;
1: + u8 div_width;
1: + u8 div_flags;
1: + struct clk_div_table *div_table;
1: + int gate_offset;
1: + u8 gate_shift;
1: + u8 gate_flags;
1: + struct rockchip_clk_branch *child;
1: +};
1: +
1: +struct rockchip_clk_frac {
1: + struct notifier_block clk_nb;
1: + struct clk_fractional_divider div;
1: + struct clk_gate gate;
1: + struct clk_mux mux;
1: + const struct clk_ops *mux_ops;
1: + int mux_frac_idx;
1: + bool rate_change_remuxed;
1: + int rate_change_idx;
1: +};
1: +
1: +struct rockchip_clk_pll {
1: + struct clk_hw hw;
1: + struct clk_mux pll_mux;
1: + const struct clk_ops *pll_mux_ops;
1: + struct notifier_block clk_nb;
1: + void *reg_base;
1: + int lock_offset;
1: + unsigned int lock_shift;
1: + enum rockchip_pll_type type;
1: + u8 flags;
1: + const struct rockchip_pll_rate_table *rate_table;
1: + unsigned int rate_count;
1: + spinlock_t *lock;
1: + struct rockchip_clk_provider *ctx;
1: +};
1: +
1: +struct rockchip_cpuclk {
1: + struct clk_hw hw;
1: + struct clk_mux cpu_mux;
1: + const struct clk_ops *cpu_mux_ops;
1: + struct clk *alt_parent;
1: + void *reg_base;
1: + struct notifier_block clk_nb;
1: + unsigned int rate_count;
1: + struct rockchip_cpuclk_rate_table *rate_table;
1: + const struct rockchip_cpuclk_reg_data *reg_data;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct rockchip_inv_clock {
1: + struct clk_hw hw;
1: + void *reg;
1: + int shift;
1: + int flags;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct rockchip_mmc_clock {
1: + struct clk_hw hw;
1: + void *reg;
1: + int id;
1: + int shift;
1: + int cached_phase;
1: + struct notifier_block clk_rate_change_nb;
1: +};
1: +
1: +struct rockchip_muxgrf_clock {
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + int flags;
1: +};
1: +
1: +struct rockchip_ddrclk {
1: + struct clk_hw hw;
1: + void *reg_base;
1: + int mux_offset;
1: + int mux_shift;
1: + int mux_width;
1: + int div_shift;
1: + int div_width;
1: + int ddr_flag;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct rockchip_softrst {
1: + struct reset_controller_dev rcdev;
1: + void *reg_base;
1: + int num_regs;
1: + int num_per_reg;
1: + u8 flags;
1: + spinlock_t lock;
1: +};
1: +
1: +enum px30_plls {
1: + apll = 0,
1: + dpll = 1,
1: + cpll = 2,
1: + npll = 3,
1: + apll_b_h = 4,
1: + apll_b_l = 5,
1: +};
1: +
1: +enum px30_pmu_plls {
1: + gpll = 0,
1: +};
1: +
1: +enum rv1108_plls {
1: + apll___2 = 0,
1: + dpll___2 = 1,
1: + gpll___2 = 2,
1: +};
1: +
1: +enum rk3036_plls {
1: + apll___3 = 0,
1: + dpll___3 = 1,
1: + gpll___3 = 2,
1: +};
1: +
1: +enum rk3128_plls {
1: + apll___4 = 0,
1: + dpll___4 = 1,
1: + cpll___2 = 2,
1: + gpll___4 = 3,
1: +};
1: +
1: +enum rk3188_plls {
1: + apll___5 = 0,
1: + cpll___3 = 1,
1: + dpll___5 = 2,
1: + gpll___5 = 3,
1: +};
1: +
1: +enum rk3228_plls {
1: + apll___6 = 0,
1: + dpll___6 = 1,
1: + cpll___4 = 2,
1: + gpll___6 = 3,
1: +};
1: +
1: +enum rk3308_plls {
1: + apll___7 = 0,
1: + dpll___7 = 1,
1: + vpll0 = 2,
1: + vpll1 = 3,
1: +};
1: +
1: +enum rk3328_plls {
1: + apll___8 = 0,
1: + dpll___8 = 1,
1: + cpll___5 = 2,
1: + gpll___7 = 3,
1: + npll___2 = 4,
1: +};
1: +
1: +enum rk3368_plls {
1: + apllb = 0,
1: + aplll = 1,
1: + dpll___9 = 2,
1: + cpll___6 = 3,
1: + gpll___8 = 4,
1: + npll___3 = 5,
1: +};
1: +
1: +enum rk3399_plls {
1: + lpll = 0,
1: + bpll = 1,
1: + dpll___10 = 2,
1: + cpll___7 = 3,
1: + gpll___9 = 4,
1: + npll___4 = 5,
1: + vpll = 6,
1: +};
1: +
1: +enum rk3399_pmu_plls {
1: + ppll = 0,
1: +};
1: +
1: +struct clk_rk3399_inits {
1: + void (*inits)(struct device_node *);
1: +};
1: +
1: +enum samsung_pll_type {
1: + pll_2126 = 0,
1: + pll_3000 = 1,
1: + pll_35xx = 2,
1: + pll_36xx = 3,
1: + pll_2550 = 4,
1: + pll_2650 = 5,
1: + pll_4500 = 6,
1: + pll_4502 = 7,
1: + pll_4508 = 8,
1: + pll_4600 = 9,
1: + pll_4650 = 10,
1: + pll_4650c = 11,
1: + pll_6552 = 12,
1: + pll_6552_s3c2416 = 13,
1: + pll_6553 = 14,
1: + pll_s3c2410_mpll = 15,
1: + pll_s3c2410_upll = 16,
1: + pll_s3c2440_mpll = 17,
1: + pll_2550x = 18,
1: + pll_2550xx = 19,
1: + pll_2650x = 20,
1: + pll_2650xx = 21,
1: + pll_1450x = 22,
1: + pll_1451x = 23,
1: + pll_1452x = 24,
1: + pll_1460x = 25,
1: +};
1: +
1: +struct samsung_pll_rate_table {
1: + unsigned int rate;
1: + unsigned int pdiv;
1: + unsigned int mdiv;
1: + unsigned int sdiv;
1: + unsigned int kdiv;
1: + unsigned int afc;
1: + unsigned int mfr;
1: + unsigned int mrr;
1: + unsigned int vsel;
1: +};
1: +
1: +struct samsung_clk_provider {
1: + void *reg_base;
1: + struct device *dev;
1: + spinlock_t lock;
1: + struct clk_hw_onecell_data clk_data;
1: +};
1: +
1: +struct samsung_clock_alias {
1: + unsigned int id;
1: + const char *dev_name;
1: + const char *alias;
1: +};
1: +
1: +struct samsung_fixed_rate_clock {
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int fixed_rate;
1: +};
1: +
1: +struct samsung_fixed_factor_clock {
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int mult;
1: + long unsigned int div;
1: + long unsigned int flags;
1: +};
1: +
1: +struct samsung_mux_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char * const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 mux_flags;
1: +};
1: +
1: +struct samsung_div_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 div_flags;
1: + struct clk_div_table *table;
1: +};
1: +
1: +struct samsung_gate_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 bit_idx;
1: + u8 gate_flags;
1: +};
1: +
1: +struct samsung_clk_reg_dump {
1: + u32 offset;
1: + u32 value;
1: +};
1: +
1: +struct samsung_pll_clock {
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + int con_offset;
1: + int lock_offset;
1: + enum samsung_pll_type type;
1: + const struct samsung_pll_rate_table *rate_table;
1: +};
1: +
1: +struct samsung_clock_reg_cache {
1: + struct list_head node;
1: + void *reg_base;
1: + struct samsung_clk_reg_dump *rdump;
1: + unsigned int rd_num;
1: + const struct samsung_clk_reg_dump *rsuspend;
1: + unsigned int rsuspend_num;
1: +};
1: +
1: +struct samsung_cmu_info {
1: + const struct samsung_pll_clock *pll_clks;
1: + unsigned int nr_pll_clks;
1: + const struct samsung_mux_clock *mux_clks;
1: + unsigned int nr_mux_clks;
1: + const struct samsung_div_clock *div_clks;
1: + unsigned int nr_div_clks;
1: + const struct samsung_gate_clock *gate_clks;
1: + unsigned int nr_gate_clks;
1: + const struct samsung_fixed_rate_clock *fixed_clks;
1: + unsigned int nr_fixed_clks;
1: + const struct samsung_fixed_factor_clock *fixed_factor_clks;
1: + unsigned int nr_fixed_factor_clks;
1: + unsigned int nr_clk_ids;
1: + const long unsigned int *clk_regs;
1: + unsigned int nr_clk_regs;
1: + const struct samsung_clk_reg_dump *suspend_regs;
1: + unsigned int nr_suspend_regs;
1: + const char *clk_name;
1: +};
1: +
1: +struct samsung_clk_pll {
1: + struct clk_hw hw;
1: + void *lock_reg;
1: + void *con_reg;
1: + short unsigned int enable_offs;
1: + short unsigned int lock_offs;
1: + enum samsung_pll_type type;
1: + unsigned int rate_count;
1: + const struct samsung_pll_rate_table *rate_table;
1: +};
1: +
1: +struct exynos_cpuclk_cfg_data {
1: + long unsigned int prate;
1: + long unsigned int div0;
1: + long unsigned int div1;
1: +};
1: +
1: +struct exynos_cpuclk {
1: + struct clk_hw hw;
1: + const struct clk_hw *alt_parent;
1: + void *ctrl_base;
1: + spinlock_t *lock;
1: + const struct exynos_cpuclk_cfg_data *cfg;
1: + const long unsigned int num_cfgs;
1: + struct notifier_block clk_nb;
1: + long unsigned int flags;
1: +};
1: +
1: +struct exynos5433_cmu_data {
1: + struct samsung_clk_reg_dump *clk_save;
1: + unsigned int nr_clk_save;
1: + const struct samsung_clk_reg_dump *clk_suspend;
1: + unsigned int nr_clk_suspend;
1: + struct clk *clk;
1: + struct clk **pclks;
1: + int nr_pclks;
1: + struct samsung_clk_provider ctx;
1: +};
1: +
1: +struct exynos_audss_clk_drvdata {
1: + unsigned int has_adma_clk: 1;
1: + unsigned int has_mst_clk: 1;
1: + unsigned int enable_epll: 1;
1: + unsigned int num_clks;
1: +};
1: +
1: +struct exynos_clkout {
1: + struct clk_gate gate;
1: + struct clk_mux mux;
1: + spinlock_t slock;
1: + void *reg;
1: + u32 pmu_debug_save;
1: + struct clk_hw_onecell_data data;
1: +};
1: +
1: +struct clk_factors_config {
1: + u8 nshift;
1: + u8 nwidth;
1: + u8 kshift;
1: + u8 kwidth;
1: + u8 mshift;
1: + u8 mwidth;
1: + u8 pshift;
1: + u8 pwidth;
1: + u8 n_start;
1: +};
1: +
1: +struct factors_request {
1: + long unsigned int rate;
1: + long unsigned int parent_rate;
1: + u8 parent_index;
1: + u8 n;
1: + u8 k;
1: + u8 m;
1: + u8 p;
1: +};
1: +
1: +struct factors_data {
1: + int enable;
1: + int mux;
1: + int muxmask;
1: + const struct clk_factors_config *table;
1: + void (*getter)(struct factors_request *);
1: + void (*recalc)(struct factors_request *);
1: + const char *name;
1: +};
1: +
1: +struct clk_factors {
1: + struct clk_hw hw;
1: + void *reg;
1: + const struct clk_factors_config *config;
1: + void (*get_factors)(struct factors_request *);
1: + void (*recalc)(struct factors_request *);
1: + spinlock_t *lock;
1: + struct clk_mux *mux;
1: + struct clk_gate *gate;
1: +};
1: +
1: +struct mux_data {
1: + u8 shift;
1: +};
1: +
1: +struct div_data {
1: + u8 shift;
1: + u8 pow;
1: + u8 width;
1: + const struct clk_div_table *table;
1: +};
1: +
1: +struct divs_data {
1: + const struct factors_data *factors;
1: + int ndivs;
1: + struct {
1: + u8 self;
1: + u8 fixed;
1: + struct clk_div_table *table;
1: + u8 shift;
1: + u8 pow;
1: + u8 gate;
1: + bool critical;
1: + } div[4];
1: +};
1: +
1: +struct ve_reset_data {
1: + void *reg;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct mmc_phase {
1: + struct clk_hw hw;
1: + u8 offset;
1: + void *reg;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct sun4i_a10_display_clk_data {
1: + bool has_div;
1: + u8 num_rst;
1: + u8 parents;
1: + u8 offset_en;
1: + u8 offset_div;
1: + u8 offset_mux;
1: + u8 offset_rst;
1: + u8 width_div;
1: + u8 width_mux;
1: + u32 flags;
1: +};
1: +
1: +struct reset_data {
1: + void *reg;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: + u8 offset;
1: +};
1: +
1: +struct tcon_ch1_clk {
1: + struct clk_hw hw;
1: + spinlock_t lock;
1: + void *reg;
1: +};
1: +
1: +enum {
1: + AHB1 = 0,
1: + AHB2 = 1,
1: + APB1 = 2,
1: + APB2 = 3,
1: + PARENT_MAX = 4,
1: +};
1: +
1: +struct sun9i_mmc_clk_data {
1: + spinlock_t lock;
1: + void *membase;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: + struct clk_onecell_data clk_data;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct usb_reset_data {
1: + void *reg;
1: + spinlock_t *lock;
1: + struct clk *clk;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct usb_clk_data {
1: + u32 clk_mask;
1: + u32 reset_mask;
1: + bool reset_needs_clk;
1: +};
1: +
1: +struct sun9i_a80_cpus_clk {
1: + struct clk_hw hw;
1: + void *reg;
1: +};
1: +
1: +struct gates_data {
1: + long unsigned int mask[1];
1: +};
1: +
1: +struct ccu_common {
1: + void *base;
1: + u16 reg;
1: + u16 lock_reg;
1: + u32 prediv;
1: + long unsigned int features;
1: + spinlock_t *lock;
1: + struct clk_hw hw;
1: +};
1: +
1: +struct ccu_reset_map;
1: +
1: +struct sunxi_ccu_desc {
1: + struct ccu_common **ccu_clks;
1: + long unsigned int num_ccu_clks;
1: + struct clk_hw_onecell_data *hw_clks;
1: + struct ccu_reset_map *resets;
1: + long unsigned int num_resets;
1: +};
1: +
1: +struct ccu_reset_map {
1: + u16 reg;
1: + u32 bit;
1: +};
1: +
1: +struct ccu_pll_nb {
1: + struct notifier_block clk_nb;
1: + struct ccu_common *common;
1: + u32 enable;
1: + u32 lock;
1: +};
1: +
1: +struct ccu_reset {
1: + void *base;
1: + struct ccu_reset_map *reset_map;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: +};
1: +
1: +struct ccu_mux_fixed_prediv {
1: + u8 index;
1: + u16 div;
1: +};
1: +
1: +struct ccu_mux_var_prediv {
1: + u8 index;
1: + u8 shift;
1: + u8 width;
1: +};
1: +
1: +struct ccu_mux_internal {
1: + u8 shift;
1: + u8 width;
1: + const u8 *table;
1: + const struct ccu_mux_fixed_prediv *fixed_predivs;
1: + u8 n_predivs;
1: + const struct ccu_mux_var_prediv *var_predivs;
1: + u8 n_var_predivs;
1: +};
1: +
1: +struct ccu_div_internal {
1: + u8 shift;
1: + u8 width;
1: + u32 max;
1: + u32 offset;
1: + u32 flags;
1: + struct clk_div_table *table;
1: +};
1: +
1: +struct ccu_div {
1: + u32 enable;
1: + struct ccu_div_internal div;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: + unsigned int fixed_post_div;
1: +};
1: +
1: +struct ccu_frac_internal {
1: + u32 enable;
1: + u32 select;
1: + long unsigned int rates[2];
1: +};
1: +
1: +struct ccu_gate {
1: + u32 enable;
1: + struct ccu_common common;
1: +};
1: +
1: +struct ccu_mux {
1: + u16 reg;
1: + u32 enable;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: +};
1: +
1: +struct ccu_mux_nb {
1: + struct notifier_block clk_nb;
1: + struct ccu_common *common;
1: + struct ccu_mux_internal *cm;
1: + u32 delay_us;
1: + u8 bypass_index;
1: + u8 original_index;
1: +};
1: +
1: +struct ccu_mult_internal {
1: + u8 offset;
1: + u8 shift;
1: + u8 width;
1: + u8 min;
1: + u8 max;
1: +};
1: +
1: +struct ccu_mult {
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_frac_internal frac;
1: + struct ccu_mult_internal mult;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: +};
1: +
1: +struct _ccu_mult {
1: + long unsigned int mult;
1: + long unsigned int min;
1: + long unsigned int max;
1: +};
1: +
1: +struct ccu_phase {
1: + u8 shift;
1: + u8 width;
1: + struct ccu_common common;
1: +};
1: +
1: +struct ccu_sdm_setting {
1: + long unsigned int rate;
1: + u32 pattern;
1: + u32 m;
1: + u32 n;
1: +};
1: +
1: +struct ccu_sdm_internal {
1: + struct ccu_sdm_setting *table;
1: + u32 table_size;
1: + u32 enable;
1: + u32 tuning_enable;
1: + u16 tuning_reg;
1: +};
1: +
1: +struct ccu_nk {
1: + u16 reg;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: +};
1: +
1: +struct _ccu_nk {
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: +};
1: +
1: +struct ccu_nkm {
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + struct ccu_div_internal m;
1: + struct ccu_mux_internal mux;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: +};
1: +
1: +struct _ccu_nkm {
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: +};
1: +
1: +struct ccu_nkmp {
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + struct ccu_div_internal m;
1: + struct ccu_div_internal p;
1: + unsigned int fixed_post_div;
1: + unsigned int max_rate;
1: + struct ccu_common common;
1: +};
1: +
1: +struct _ccu_nkmp {
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: + long unsigned int p;
1: + long unsigned int min_p;
1: + long unsigned int max_p;
1: +};
1: +
1: +struct ccu_nm {
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_div_internal m;
1: + struct ccu_frac_internal frac;
1: + struct ccu_sdm_internal sdm;
1: + unsigned int fixed_post_div;
1: + unsigned int min_rate;
1: + unsigned int max_rate;
1: + struct ccu_common common;
1: +};
1: +
1: +struct _ccu_nm {
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: +};
1: +
1: +struct ccu_mp {
1: + u32 enable;
1: + struct ccu_div_internal m;
1: + struct ccu_div_internal p;
1: + struct ccu_mux_internal mux;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: +};
1: +
1: +struct tegra_cpu_car_ops {
1: + void (*wait_for_reset)(u32);
1: + void (*put_in_reset)(u32);
1: + void (*out_of_reset)(u32);
1: + void (*enable_clock)(u32);
1: + void (*disable_clock)(u32);
1: + bool (*rail_off_ready)();
1: + void (*suspend)();
1: + void (*resume)();
1: +};
1: +
1: +struct tegra_clk_periph_regs {
1: + u32 enb_reg;
1: + u32 enb_set_reg;
1: + u32 enb_clr_reg;
1: + u32 rst_reg;
1: + u32 rst_set_reg;
1: + u32 rst_clr_reg;
1: +};
1: +
1: +struct tegra_clk_init_table {
1: + unsigned int clk_id;
1: + unsigned int parent_id;
1: + long unsigned int rate;
1: + int state;
1: +};
1: +
1: +struct tegra_clk_duplicate {
1: + int clk_id;
1: + struct clk_lookup lookup;
1: +};
1: +
1: +struct tegra_clk {
1: + int dt_id;
1: + bool present;
1: +};
1: +
1: +struct tegra_devclk {
1: + int dt_id;
1: + char *dev_id;
1: + char *con_id;
1: +};
1: +
1: +typedef void (*tegra_clk_apply_init_table_func)();
1: +
1: +struct tegra_clk_sync_source {
1: + struct clk_hw hw;
1: + long unsigned int rate;
1: + long unsigned int max_rate;
1: +};
1: +
1: +struct i2c_msg {
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + __u8 *buf;
1: +};
1: +
1: +union i2c_smbus_data {
1: + __u8 byte;
1: + __u16 word;
1: + __u8 block[34];
1: +};
1: +
1: +enum i2c_slave_event {
1: + I2C_SLAVE_READ_REQUESTED = 0,
1: + I2C_SLAVE_WRITE_REQUESTED = 1,
1: + I2C_SLAVE_READ_PROCESSED = 2,
1: + I2C_SLAVE_WRITE_RECEIVED = 3,
1: + I2C_SLAVE_STOP = 4,
1: +};
1: +
1: +struct i2c_client;
1: +
1: +typedef int (*i2c_slave_cb_t)(struct i2c_client *, enum i2c_slave_event, u8 *);
1: +
1: +struct i2c_adapter;
1: +
1: +struct i2c_client {
1: + short unsigned int flags;
1: + short unsigned int addr;
1: + char name[20];
1: + struct i2c_adapter *adapter;
1: + struct device dev;
1: + int init_irq;
1: + int irq;
1: + struct list_head detected;
1: + i2c_slave_cb_t slave_cb;
1: +};
1: +
1: +struct i2c_algorithm;
1: +
1: +struct i2c_lock_operations;
1: +
1: +struct i2c_bus_recovery_info;
1: +
1: +struct i2c_adapter_quirks;
1: +
1: +struct i2c_adapter {
1: + struct module *owner;
1: + unsigned int class;
1: + const struct i2c_algorithm *algo;
1: + void *algo_data;
1: + const struct i2c_lock_operations *lock_ops;
1: + struct rt_mutex bus_lock;
1: + struct rt_mutex mux_lock;
1: + int timeout;
1: + int retries;
1: + struct device dev;
1: + long unsigned int locked_flags;
1: + int nr;
1: + char name[48];
1: + struct completion dev_released;
1: + struct mutex userspace_clients_lock;
1: + struct list_head userspace_clients;
1: + struct i2c_bus_recovery_info *bus_recovery_info;
1: + const struct i2c_adapter_quirks *quirks;
1: + struct irq_domain *host_notify_domain;
1: +};
1: +
1: +struct i2c_algorithm {
1: + int (*master_xfer)(struct i2c_adapter *, struct i2c_msg *, int);
1: + int (*master_xfer_atomic)(struct i2c_adapter *, struct i2c_msg *, int);
1: + int (*smbus_xfer)(struct i2c_adapter *, u16, short unsigned int, char, u8, int, union i2c_smbus_data *);
1: + int (*smbus_xfer_atomic)(struct i2c_adapter *, u16, short unsigned int, char, u8, int, union i2c_smbus_data *);
1: + u32 (*functionality)(struct i2c_adapter *);
1: + int (*reg_slave)(struct i2c_client *);
1: + int (*unreg_slave)(struct i2c_client *);
1: +};
1: +
1: +struct i2c_lock_operations {
1: + void (*lock_bus)(struct i2c_adapter *, unsigned int);
1: + int (*trylock_bus)(struct i2c_adapter *, unsigned int);
1: + void (*unlock_bus)(struct i2c_adapter *, unsigned int);
1: +};
1: +
1: +struct i2c_bus_recovery_info {
1: + int (*recover_bus)(struct i2c_adapter *);
1: + int (*get_scl)(struct i2c_adapter *);
1: + void (*set_scl)(struct i2c_adapter *, int);
1: + int (*get_sda)(struct i2c_adapter *);
1: + void (*set_sda)(struct i2c_adapter *, int);
1: + int (*get_bus_free)(struct i2c_adapter *);
1: + void (*prepare_recovery)(struct i2c_adapter *);
1: + void (*unprepare_recovery)(struct i2c_adapter *);
1: + struct gpio_desc *scl_gpiod;
1: + struct gpio_desc *sda_gpiod;
1: + struct pinctrl *pinctrl;
1: + struct pinctrl_state *pins_default;
1: + struct pinctrl_state *pins_gpio;
1: +};
1: +
1: +struct i2c_adapter_quirks {
1: + u64 flags;
1: + int max_num_msgs;
1: + u16 max_write_len;
1: + u16 max_read_len;
1: + u16 max_comb_1st_msg_len;
1: + u16 max_comb_2nd_msg_len;
1: +};
1: +
1: +struct rail_alignment {
1: + int offset_uv;
1: + int step_uv;
1: +};
1: +
1: +struct cvb_coefficients {
1: + int c0;
1: + int c1;
1: + int c2;
1: +};
1: +
1: +struct cvb_table_freq_entry {
1: + long unsigned int freq;
1: + struct cvb_coefficients coefficients;
1: +};
1: +
1: +struct cvb_cpu_dfll_data {
1: + u32 tune0_low;
1: + u32 tune0_high;
1: + u32 tune1;
1: + unsigned int tune_high_min_millivolts;
1: +};
1: +
1: +struct cvb_table {
1: + int speedo_id;
1: + int process_id;
1: + int min_millivolts;
1: + int max_millivolts;
1: + int speedo_scale;
1: + int voltage_scale;
1: + struct cvb_table_freq_entry entries[40];
1: + struct cvb_cpu_dfll_data cpu_dfll_data;
1: +};
1: +
1: +struct tegra_dfll_soc_data {
1: + struct device *dev;
1: + long unsigned int max_freq;
1: + const struct cvb_table *cvb;
1: + struct rail_alignment alignment;
1: + void (*init_clock_trimmers)();
1: + void (*set_clock_trimmers_high)();
1: + void (*set_clock_trimmers_low)();
1: +};
1: +
1: +enum dfll_ctrl_mode {
1: + DFLL_UNINITIALIZED = 0,
1: + DFLL_DISABLED = 1,
1: + DFLL_OPEN_LOOP = 2,
1: + DFLL_CLOSED_LOOP = 3,
1: +};
1: +
1: +enum dfll_tune_range {
1: + DFLL_TUNE_UNINITIALIZED = 0,
1: + DFLL_TUNE_LOW = 1,
1: +};
1: +
1: +enum tegra_dfll_pmu_if {
1: + TEGRA_DFLL_PMU_I2C = 0,
1: + TEGRA_DFLL_PMU_PWM = 1,
1: +};
1: +
1: +struct dfll_rate_req {
1: + long unsigned int rate;
1: + long unsigned int dvco_target_rate;
1: + int lut_index;
1: + u8 mult_bits;
1: + u8 scale_bits;
1: +};
1: +
1: +struct tegra_dfll {
1: + struct device *dev;
1: + struct tegra_dfll_soc_data *soc;
1: + void *base;
1: + void *i2c_base;
1: + void *i2c_controller_base;
1: + void *lut_base;
1: + struct regulator *vdd_reg;
1: + struct clk *soc_clk;
1: + struct clk *ref_clk;
1: + struct clk *i2c_clk;
1: + struct clk *dfll_clk;
1: + struct reset_control *dvco_rst;
1: + long unsigned int ref_rate;
1: + long unsigned int i2c_clk_rate;
1: + long unsigned int dvco_rate_min;
1: + enum dfll_ctrl_mode mode;
1: + enum dfll_tune_range tune_range;
1: + struct dentry *debugfs_dir;
1: + struct clk_hw dfll_clk_hw;
1: + const char *output_clock_name;
1: + struct dfll_rate_req last_req;
1: + long unsigned int last_unrounded_rate;
1: + u32 droop_ctrl;
1: + u32 sample_rate;
1: + u32 force_mode;
1: + u32 cf;
1: + u32 ci;
1: + u32 cg;
1: + bool cg_scale;
1: + u32 i2c_fs_rate;
1: + u32 i2c_reg;
1: + u32 i2c_slave_addr;
1: + unsigned int lut[33];
1: + long unsigned int lut_uv[33];
1: + int lut_size;
1: + u8 lut_bottom;
1: + u8 lut_min;
1: + u8 lut_max;
1: + u8 lut_safe;
1: + enum tegra_dfll_pmu_if pmu_if;
1: + long unsigned int pwm_rate;
1: + struct pinctrl *pwm_pin;
1: + struct pinctrl_state *pwm_enable_state;
1: + struct pinctrl_state *pwm_disable_state;
1: + u32 reg_init_uV;
1: +};
1: +
1: +struct tegra_clk_frac_div {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 flags;
1: + u8 shift;
1: + u8 width;
1: + u8 frac_width;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct tegra_clk_periph_gate {
1: + u32 magic;
1: + struct clk_hw hw;
1: + void *clk_base;
1: + u8 flags;
1: + int clk_num;
1: + int *enable_refcnt;
1: + const struct tegra_clk_periph_regs *regs;
1: +};
1: +
1: +struct tegra_clk_periph {
1: + u32 magic;
1: + struct clk_hw hw;
1: + struct clk_mux mux;
1: + struct tegra_clk_frac_div divider;
1: + struct tegra_clk_periph_gate gate;
1: + const struct clk_ops *mux_ops;
1: + const struct clk_ops *div_ops;
1: + const struct clk_ops *gate_ops;
1: +};
1: +
1: +struct tegra_periph_init_data {
1: + const char *name;
1: + int clk_id;
1: + union {
1: + const char * const *parent_names;
1: + const char *parent_name;
1: + } p;
1: + int num_parents;
1: + struct tegra_clk_periph periph;
1: + u32 offset;
1: + const char *con_id;
1: + const char *dev_id;
1: + long unsigned int flags;
1: +};
1: +
1: +struct tegra_clk_periph_fixed {
1: + struct clk_hw hw;
1: + void *base;
1: + const struct tegra_clk_periph_regs *regs;
1: + unsigned int mul;
1: + unsigned int div;
1: + unsigned int num;
1: +};
1: +
1: +struct tegra_clk_pll_freq_table {
1: + long unsigned int input_rate;
1: + long unsigned int output_rate;
1: + u32 n;
1: + u32 m;
1: + u8 p;
1: + u8 cpcon;
1: + u16 sdm_data;
1: +};
1: +
1: +struct pdiv_map {
1: + u8 pdiv;
1: + u8 hw_val;
1: +};
1: +
1: +struct div_nmp {
1: + u8 divn_shift;
1: + u8 divn_width;
1: + u8 divm_shift;
1: + u8 divm_width;
1: + u8 divp_shift;
1: + u8 divp_width;
1: + u8 override_divn_shift;
1: + u8 override_divm_shift;
1: + u8 override_divp_shift;
1: +};
1: +
1: +struct tegra_clk_pll;
1: +
1: +struct tegra_clk_pll_params {
1: + long unsigned int input_min;
1: + long unsigned int input_max;
1: + long unsigned int cf_min;
1: + long unsigned int cf_max;
1: + long unsigned int vco_min;
1: + long unsigned int vco_max;
1: + u32 base_reg;
1: + u32 misc_reg;
1: + u32 lock_reg;
1: + u32 lock_mask;
1: + u32 lock_enable_bit_idx;
1: + u32 iddq_reg;
1: + u32 iddq_bit_idx;
1: + u32 reset_reg;
1: + u32 reset_bit_idx;
1: + u32 sdm_din_reg;
1: + u32 sdm_din_mask;
1: + u32 sdm_ctrl_reg;
1: + u32 sdm_ctrl_en_mask;
1: + u32 ssc_ctrl_reg;
1: + u32 ssc_ctrl_en_mask;
1: + u32 aux_reg;
1: + u32 dyn_ramp_reg;
1: + u32 ext_misc_reg[6];
1: + u32 pmc_divnm_reg;
1: + u32 pmc_divp_reg;
1: + u32 flags;
1: + int stepa_shift;
1: + int stepb_shift;
1: + int lock_delay;
1: + int max_p;
1: + bool defaults_set;
1: + const struct pdiv_map *pdiv_tohw;
1: + struct div_nmp *div_nmp;
1: + struct tegra_clk_pll_freq_table *freq_table;
1: + long unsigned int fixed_rate;
1: + u16 mdiv_default;
1: + u32 (*round_p_to_pdiv)(u32, u32 *);
1: + void (*set_gain)(struct tegra_clk_pll_freq_table *);
1: + int (*calc_rate)(struct clk_hw *, struct tegra_clk_pll_freq_table *, long unsigned int, long unsigned int);
1: + long unsigned int (*adjust_vco)(struct tegra_clk_pll_params *, long unsigned int);
1: + void (*set_defaults)(struct tegra_clk_pll *);
1: + int (*dyn_ramp)(struct tegra_clk_pll *, struct tegra_clk_pll_freq_table *);
1: + int (*pre_rate_change)();
1: + void (*post_rate_change)();
1: +};
1: +
1: +struct tegra_clk_pll {
1: + struct clk_hw hw;
1: + void *clk_base;
1: + void *pmc;
1: + spinlock_t *lock;
1: + struct tegra_clk_pll_params *params;
1: +};
1: +
1: +struct utmi_clk_param {
1: + u32 osc_frequency;
1: + u8 enable_delay_count;
1: + u8 stable_count;
1: + u8 active_delay_count;
1: + u8 xtal_freq_count;
1: +};
1: +
1: +struct tegra_clk_pll_out {
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 enb_bit_idx;
1: + u8 rst_bit_idx;
1: + spinlock_t *lock;
1: + u8 flags;
1: +};
1: +
1: +struct tegra_sdmmc_mux {
1: + struct clk_hw hw;
1: + void *reg;
1: + spinlock_t *lock;
1: + const struct clk_ops *gate_ops;
1: + struct tegra_clk_periph_gate gate;
1: + u8 div_flags;
1: +};
1: +
1: +struct tegra_clk_super_mux {
1: + struct clk_hw hw;
1: + void *reg;
1: + struct tegra_clk_frac_div frac_div;
1: + const struct clk_ops *div_ops;
1: + u8 width;
1: + u8 flags;
1: + u8 div2_index;
1: + u8 pllx_index;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct tegra_audio_clk_info {
1: + char *name;
1: + struct tegra_clk_pll_params *pll_params;
1: + int clk_id;
1: + char *parent;
1: +};
1: +
1: +enum clk_id {
1: + tegra_clk_actmon = 0,
1: + tegra_clk_adx = 1,
1: + tegra_clk_adx1 = 2,
1: + tegra_clk_afi = 3,
1: + tegra_clk_amx = 4,
1: + tegra_clk_amx1 = 5,
1: + tegra_clk_apb2ape = 6,
1: + tegra_clk_ahbdma = 7,
1: + tegra_clk_apbdma = 8,
1: + tegra_clk_apbif = 9,
1: + tegra_clk_ape = 10,
1: + tegra_clk_audio0 = 11,
1: + tegra_clk_audio0_2x = 12,
1: + tegra_clk_audio0_mux = 13,
1: + tegra_clk_audio1 = 14,
1: + tegra_clk_audio1_2x = 15,
1: + tegra_clk_audio1_mux = 16,
1: + tegra_clk_audio2 = 17,
1: + tegra_clk_audio2_2x = 18,
1: + tegra_clk_audio2_mux = 19,
1: + tegra_clk_audio3 = 20,
1: + tegra_clk_audio3_2x = 21,
1: + tegra_clk_audio3_mux = 22,
1: + tegra_clk_audio4 = 23,
1: + tegra_clk_audio4_2x = 24,
1: + tegra_clk_audio4_mux = 25,
1: + tegra_clk_bsea = 26,
1: + tegra_clk_bsev = 27,
1: + tegra_clk_cclk_g = 28,
1: + tegra_clk_cclk_lp = 29,
1: + tegra_clk_cilab = 30,
1: + tegra_clk_cilcd = 31,
1: + tegra_clk_cile = 32,
1: + tegra_clk_clk_32k = 33,
1: + tegra_clk_clk72Mhz = 34,
1: + tegra_clk_clk72Mhz_8 = 35,
1: + tegra_clk_clk_m = 36,
1: + tegra_clk_osc = 37,
1: + tegra_clk_osc_div2 = 38,
1: + tegra_clk_osc_div4 = 39,
1: + tegra_clk_cml0 = 40,
1: + tegra_clk_cml1 = 41,
1: + tegra_clk_csi = 42,
1: + tegra_clk_csite = 43,
1: + tegra_clk_csite_8 = 44,
1: + tegra_clk_csus = 45,
1: + tegra_clk_cve = 46,
1: + tegra_clk_dam0 = 47,
1: + tegra_clk_dam1 = 48,
1: + tegra_clk_dam2 = 49,
1: + tegra_clk_d_audio = 50,
1: + tegra_clk_dbgapb = 51,
1: + tegra_clk_dds = 52,
1: + tegra_clk_dfll_ref = 53,
1: + tegra_clk_dfll_soc = 54,
1: + tegra_clk_disp1 = 55,
1: + tegra_clk_disp1_8 = 56,
1: + tegra_clk_disp2 = 57,
1: + tegra_clk_disp2_8 = 58,
1: + tegra_clk_dp2 = 59,
1: + tegra_clk_dpaux = 60,
1: + tegra_clk_dpaux1 = 61,
1: + tegra_clk_dsialp = 62,
1: + tegra_clk_dsia_mux = 63,
1: + tegra_clk_dsiblp = 64,
1: + tegra_clk_dsib_mux = 65,
1: + tegra_clk_dtv = 66,
1: + tegra_clk_emc = 67,
1: + tegra_clk_entropy = 68,
1: + tegra_clk_entropy_8 = 69,
1: + tegra_clk_epp = 70,
1: + tegra_clk_epp_8 = 71,
1: + tegra_clk_extern1 = 72,
1: + tegra_clk_extern2 = 73,
1: + tegra_clk_extern3 = 74,
1: + tegra_clk_fuse = 75,
1: + tegra_clk_fuse_burn = 76,
1: + tegra_clk_gpu = 77,
1: + tegra_clk_gr2d = 78,
1: + tegra_clk_gr2d_8 = 79,
1: + tegra_clk_gr3d = 80,
1: + tegra_clk_gr3d_8 = 81,
1: + tegra_clk_hclk = 82,
1: + tegra_clk_hda = 83,
1: + tegra_clk_hda_8 = 84,
1: + tegra_clk_hda2codec_2x = 85,
1: + tegra_clk_hda2codec_2x_8 = 86,
1: + tegra_clk_hda2hdmi = 87,
1: + tegra_clk_hdmi = 88,
1: + tegra_clk_hdmi_audio = 89,
1: + tegra_clk_host1x = 90,
1: + tegra_clk_host1x_8 = 91,
1: + tegra_clk_host1x_9 = 92,
1: + tegra_clk_hsic_trk = 93,
1: + tegra_clk_i2c1 = 94,
1: + tegra_clk_i2c2 = 95,
1: + tegra_clk_i2c3 = 96,
1: + tegra_clk_i2c4 = 97,
1: + tegra_clk_i2c5 = 98,
1: + tegra_clk_i2c6 = 99,
1: + tegra_clk_i2cslow = 100,
1: + tegra_clk_i2s0 = 101,
1: + tegra_clk_i2s0_sync = 102,
1: + tegra_clk_i2s1 = 103,
1: + tegra_clk_i2s1_sync = 104,
1: + tegra_clk_i2s2 = 105,
1: + tegra_clk_i2s2_sync = 106,
1: + tegra_clk_i2s3 = 107,
1: + tegra_clk_i2s3_sync = 108,
1: + tegra_clk_i2s4 = 109,
1: + tegra_clk_i2s4_sync = 110,
1: + tegra_clk_isp = 111,
1: + tegra_clk_isp_8 = 112,
1: + tegra_clk_isp_9 = 113,
1: + tegra_clk_ispb = 114,
1: + tegra_clk_kbc = 115,
1: + tegra_clk_kfuse = 116,
1: + tegra_clk_la = 117,
1: + tegra_clk_maud = 118,
1: + tegra_clk_mipi = 119,
1: + tegra_clk_mipibif = 120,
1: + tegra_clk_mipi_cal = 121,
1: + tegra_clk_mpe = 122,
1: + tegra_clk_mselect = 123,
1: + tegra_clk_msenc = 124,
1: + tegra_clk_ndflash = 125,
1: + tegra_clk_ndflash_8 = 126,
1: + tegra_clk_ndspeed = 127,
1: + tegra_clk_ndspeed_8 = 128,
1: + tegra_clk_nor = 129,
1: + tegra_clk_nvdec = 130,
1: + tegra_clk_nvenc = 131,
1: + tegra_clk_nvjpg = 132,
1: + tegra_clk_owr = 133,
1: + tegra_clk_owr_8 = 134,
1: + tegra_clk_pcie = 135,
1: + tegra_clk_pclk = 136,
1: + tegra_clk_pll_a = 137,
1: + tegra_clk_pll_a_out0 = 138,
1: + tegra_clk_pll_a1 = 139,
1: + tegra_clk_pll_c = 140,
1: + tegra_clk_pll_c2 = 141,
1: + tegra_clk_pll_c3 = 142,
1: + tegra_clk_pll_c4 = 143,
1: + tegra_clk_pll_c4_out0 = 144,
1: + tegra_clk_pll_c4_out1 = 145,
1: + tegra_clk_pll_c4_out2 = 146,
1: + tegra_clk_pll_c4_out3 = 147,
1: + tegra_clk_pll_c_out1 = 148,
1: + tegra_clk_pll_d = 149,
1: + tegra_clk_pll_d2 = 150,
1: + tegra_clk_pll_d2_out0 = 151,
1: + tegra_clk_pll_d_out0 = 152,
1: + tegra_clk_pll_dp = 153,
1: + tegra_clk_pll_e_out0 = 154,
1: + tegra_clk_pll_g_ref = 155,
1: + tegra_clk_pll_m = 156,
1: + tegra_clk_pll_m_out1 = 157,
1: + tegra_clk_pll_mb = 158,
1: + tegra_clk_pll_p = 159,
1: + tegra_clk_pll_p_out1 = 160,
1: + tegra_clk_pll_p_out2 = 161,
1: + tegra_clk_pll_p_out2_int = 162,
1: + tegra_clk_pll_p_out3 = 163,
1: + tegra_clk_pll_p_out4 = 164,
1: + tegra_clk_pll_p_out4_cpu = 165,
1: + tegra_clk_pll_p_out5 = 166,
1: + tegra_clk_pll_p_out_hsio = 167,
1: + tegra_clk_pll_p_out_xusb = 168,
1: + tegra_clk_pll_p_out_cpu = 169,
1: + tegra_clk_pll_p_out_adsp = 170,
1: + tegra_clk_pll_ref = 171,
1: + tegra_clk_pll_re_out = 172,
1: + tegra_clk_pll_re_vco = 173,
1: + tegra_clk_pll_u = 174,
1: + tegra_clk_pll_u_out = 175,
1: + tegra_clk_pll_u_out1 = 176,
1: + tegra_clk_pll_u_out2 = 177,
1: + tegra_clk_pll_u_12m = 178,
1: + tegra_clk_pll_u_480m = 179,
1: + tegra_clk_pll_u_48m = 180,
1: + tegra_clk_pll_u_60m = 181,
1: + tegra_clk_pll_x = 182,
1: + tegra_clk_pll_x_out0 = 183,
1: + tegra_clk_pwm = 184,
1: + tegra_clk_qspi = 185,
1: + tegra_clk_rtc = 186,
1: + tegra_clk_sata = 187,
1: + tegra_clk_sata_8 = 188,
1: + tegra_clk_sata_cold = 189,
1: + tegra_clk_sata_oob = 190,
1: + tegra_clk_sata_oob_8 = 191,
1: + tegra_clk_sbc1 = 192,
1: + tegra_clk_sbc1_8 = 193,
1: + tegra_clk_sbc1_9 = 194,
1: + tegra_clk_sbc2 = 195,
1: + tegra_clk_sbc2_8 = 196,
1: + tegra_clk_sbc2_9 = 197,
1: + tegra_clk_sbc3 = 198,
1: + tegra_clk_sbc3_8 = 199,
1: + tegra_clk_sbc3_9 = 200,
1: + tegra_clk_sbc4 = 201,
1: + tegra_clk_sbc4_8 = 202,
1: + tegra_clk_sbc4_9 = 203,
1: + tegra_clk_sbc5 = 204,
1: + tegra_clk_sbc5_8 = 205,
1: + tegra_clk_sbc6 = 206,
1: + tegra_clk_sbc6_8 = 207,
1: + tegra_clk_sclk = 208,
1: + tegra_clk_sdmmc_legacy = 209,
1: + tegra_clk_sdmmc1 = 210,
1: + tegra_clk_sdmmc1_8 = 211,
1: + tegra_clk_sdmmc1_9 = 212,
1: + tegra_clk_sdmmc2 = 213,
1: + tegra_clk_sdmmc2_8 = 214,
1: + tegra_clk_sdmmc3 = 215,
1: + tegra_clk_sdmmc3_8 = 216,
1: + tegra_clk_sdmmc3_9 = 217,
1: + tegra_clk_sdmmc4 = 218,
1: + tegra_clk_sdmmc4_8 = 219,
1: + tegra_clk_se = 220,
1: + tegra_clk_se_10 = 221,
1: + tegra_clk_soc_therm = 222,
1: + tegra_clk_soc_therm_8 = 223,
1: + tegra_clk_sor0 = 224,
1: + tegra_clk_sor0_out = 225,
1: + tegra_clk_sor1 = 226,
1: + tegra_clk_sor1_out = 227,
1: + tegra_clk_spdif = 228,
1: + tegra_clk_spdif_2x = 229,
1: + tegra_clk_spdif_in = 230,
1: + tegra_clk_spdif_in_8 = 231,
1: + tegra_clk_spdif_in_sync = 232,
1: + tegra_clk_spdif_mux = 233,
1: + tegra_clk_spdif_out = 234,
1: + tegra_clk_timer = 235,
1: + tegra_clk_trace = 236,
1: + tegra_clk_tsec = 237,
1: + tegra_clk_tsec_8 = 238,
1: + tegra_clk_tsecb = 239,
1: + tegra_clk_tsensor = 240,
1: + tegra_clk_tvdac = 241,
1: + tegra_clk_tvo = 242,
1: + tegra_clk_uarta = 243,
1: + tegra_clk_uarta_8 = 244,
1: + tegra_clk_uartb = 245,
1: + tegra_clk_uartb_8 = 246,
1: + tegra_clk_uartc = 247,
1: + tegra_clk_uartc_8 = 248,
1: + tegra_clk_uartd = 249,
1: + tegra_clk_uartd_8 = 250,
1: + tegra_clk_uarte = 251,
1: + tegra_clk_uarte_8 = 252,
1: + tegra_clk_uartape = 253,
1: + tegra_clk_usb2 = 254,
1: + tegra_clk_usb2_hsic_trk = 255,
1: + tegra_clk_usb2_trk = 256,
1: + tegra_clk_usb3 = 257,
1: + tegra_clk_usbd = 258,
1: + tegra_clk_vcp = 259,
1: + tegra_clk_vde = 260,
1: + tegra_clk_vde_8 = 261,
1: + tegra_clk_vfir = 262,
1: + tegra_clk_vi = 263,
1: + tegra_clk_vi_8 = 264,
1: + tegra_clk_vi_9 = 265,
1: + tegra_clk_vi_10 = 266,
1: + tegra_clk_vi_i2c = 267,
1: + tegra_clk_vic03 = 268,
1: + tegra_clk_vic03_8 = 269,
1: + tegra_clk_vim2_clk = 270,
1: + tegra_clk_vimclk_sync = 271,
1: + tegra_clk_vi_sensor = 272,
1: + tegra_clk_vi_sensor_8 = 273,
1: + tegra_clk_vi_sensor_9 = 274,
1: + tegra_clk_vi_sensor2 = 275,
1: + tegra_clk_vi_sensor2_8 = 276,
1: + tegra_clk_xusb_dev = 277,
1: + tegra_clk_xusb_dev_src = 278,
1: + tegra_clk_xusb_dev_src_8 = 279,
1: + tegra_clk_xusb_falcon_src = 280,
1: + tegra_clk_xusb_falcon_src_8 = 281,
1: + tegra_clk_xusb_fs_src = 282,
1: + tegra_clk_xusb_gate = 283,
1: + tegra_clk_xusb_host = 284,
1: + tegra_clk_xusb_host_src = 285,
1: + tegra_clk_xusb_host_src_8 = 286,
1: + tegra_clk_xusb_hs_src = 287,
1: + tegra_clk_xusb_hs_src_4 = 288,
1: + tegra_clk_xusb_ss = 289,
1: + tegra_clk_xusb_ss_src = 290,
1: + tegra_clk_xusb_ss_src_8 = 291,
1: + tegra_clk_xusb_ss_div2 = 292,
1: + tegra_clk_xusb_ssp_src = 293,
1: + tegra_clk_sclk_mux = 294,
1: + tegra_clk_sor_safe = 295,
1: + tegra_clk_cec = 296,
1: + tegra_clk_ispa = 297,
1: + tegra_clk_dmic1 = 298,
1: + tegra_clk_dmic2 = 299,
1: + tegra_clk_dmic3 = 300,
1: + tegra_clk_dmic1_sync_clk = 301,
1: + tegra_clk_dmic2_sync_clk = 302,
1: + tegra_clk_dmic3_sync_clk = 303,
1: + tegra_clk_dmic1_sync_clk_mux = 304,
1: + tegra_clk_dmic2_sync_clk_mux = 305,
1: + tegra_clk_dmic3_sync_clk_mux = 306,
1: + tegra_clk_iqc1 = 307,
1: + tegra_clk_iqc2 = 308,
1: + tegra_clk_pll_a_out_adsp = 309,
1: + tegra_clk_pll_a_out0_out_adsp = 310,
1: + tegra_clk_adsp = 311,
1: + tegra_clk_adsp_neon = 312,
1: + tegra_clk_max = 313,
1: +};
1: +
1: +struct tegra_sync_source_initdata {
1: + char *name;
1: + long unsigned int rate;
1: + long unsigned int max_rate;
1: + int clk_id;
1: +};
1: +
1: +struct tegra_audio_clk_initdata {
1: + char *gate_name;
1: + char *mux_name;
1: + u32 offset;
1: + int gate_clk_id;
1: + int mux_clk_id;
1: +};
1: +
1: +struct tegra_audio2x_clk_initdata {
1: + char *parent;
1: + char *gate_name;
1: + char *name_2x;
1: + char *div_name;
1: + int clk_id;
1: + int clk_num;
1: + u8 div_offset;
1: +};
1: +
1: +struct pll_out_data {
1: + char *div_name;
1: + char *pll_out_name;
1: + u32 offset;
1: + int clk_id;
1: + u8 div_shift;
1: + u8 div_flags;
1: + u8 rst_shift;
1: + spinlock_t *lock;
1: +};
1: +
1: +enum tegra_super_gen {
1: + gen4 = 4,
1: + gen5 = 5,
1: +};
1: +
1: +struct tegra_super_gen_info {
1: + enum tegra_super_gen gen;
1: + const char **sclk_parents;
1: + const char **cclk_g_parents;
1: + const char **cclk_lp_parents;
1: + int num_sclk_parents;
1: + int num_cclk_g_parents;
1: + int num_cclk_lp_parents;
1: +};
1: +
1: +enum tegra_revision {
1: + TEGRA_REVISION_UNKNOWN = 0,
1: + TEGRA_REVISION_A01 = 1,
1: + TEGRA_REVISION_A02 = 2,
1: + TEGRA_REVISION_A03 = 3,
1: + TEGRA_REVISION_A03p = 4,
1: + TEGRA_REVISION_A04 = 5,
1: + TEGRA_REVISION_MAX = 6,
1: +};
1: +
1: +struct tegra_sku_info {
1: + int sku_id;
1: + int cpu_process_id;
1: + int cpu_speedo_id;
1: + int cpu_speedo_value;
1: + int cpu_iddq_value;
1: + int soc_process_id;
1: + int soc_speedo_id;
1: + int soc_speedo_value;
1: + int gpu_process_id;
1: + int gpu_speedo_id;
1: + int gpu_speedo_value;
1: + enum tegra_revision revision;
1: +};
1: +
1: +struct dfll_fcpu_data {
1: + const long unsigned int *cpu_max_freq_table;
1: + unsigned int cpu_max_freq_table_size;
1: + const struct cvb_table *cpu_cvb_tables;
1: + unsigned int cpu_cvb_tables_size;
1: +};
1: +
1: +struct cpu_clk_suspend_context {
1: + u32 clk_csite_src;
1: + u32 cclkg_burst;
1: + u32 cclkg_divider;
1: +};
1: +
1: +enum {
1: + DOWN___2 = 0,
1: + UP___2 = 1,
1: +};
1: +
1: +struct cpu_clk_suspend_context___2 {
1: + u32 clk_csite_src;
1: +};
1: +
1: +struct tegra210_domain_mbist_war {
1: + void (*handle_lvl2_ovr)(struct tegra210_domain_mbist_war *);
1: + const u32 lvl2_offset;
1: + const u32 lvl2_mask;
1: + const unsigned int num_clks;
1: + const unsigned int *clk_init_data;
1: + struct clk_bulk_data *clks;
1: +};
1: +
1: +struct utmi_clk_param___2 {
1: + u32 osc_frequency;
1: + u8 enable_delay_count;
1: + u16 stable_count;
1: + u8 active_delay_count;
1: + u16 xtal_freq_count;
1: +};
1: +
1: +struct tegra210_clk_emc_config {
1: + long unsigned int rate;
1: + bool same_freq;
1: + u32 value;
1: + long unsigned int parent_rate;
1: + u8 parent;
1: +};
1: +
1: +struct tegra210_clk_emc_provider {
1: + struct module *owner;
1: + struct device *dev;
1: + struct tegra210_clk_emc_config *configs;
1: + unsigned int num_configs;
1: + int (*set_rate)(struct device *, const struct tegra210_clk_emc_config *);
1: +};
1: +
1: +struct tegra210_clk_emc {
1: + struct clk_hw hw;
1: + void *regs;
1: + struct tegra210_clk_emc_provider *provider;
1: + struct clk *parents[8];
1: +};
1: +
1: +enum {
1: + CMD_CLK_GET_RATE = 1,
1: + CMD_CLK_SET_RATE = 2,
1: + CMD_CLK_ROUND_RATE = 3,
1: + CMD_CLK_GET_PARENT = 4,
1: + CMD_CLK_SET_PARENT = 5,
1: + CMD_CLK_IS_ENABLED = 6,
1: + CMD_CLK_ENABLE = 7,
1: + CMD_CLK_DISABLE = 8,
1: + CMD_CLK_GET_ALL_INFO = 14,
1: + CMD_CLK_GET_MAX_CLK_ID = 15,
1: + CMD_CLK_GET_FMAX_AT_VMIN = 16,
1: + CMD_CLK_MAX = 17,
1: +};
1: +
1: +struct cmd_clk_get_rate_request {};
1: +
1: +struct cmd_clk_get_rate_response {
1: + int64_t rate;
1: +};
1: +
1: +struct cmd_clk_set_rate_request {
1: + int32_t unused;
1: + int64_t rate;
1: +} __attribute__((packed));
1: +
1: +struct cmd_clk_set_rate_response {
1: + int64_t rate;
1: +};
1: +
1: +struct cmd_clk_round_rate_request {
1: + int32_t unused;
1: + int64_t rate;
1: +} __attribute__((packed));
1: +
1: +struct cmd_clk_round_rate_response {
1: + int64_t rate;
1: +};
1: +
1: +struct cmd_clk_get_parent_request {};
1: +
1: +struct cmd_clk_get_parent_response {
1: + uint32_t parent_id;
1: +};
1: +
1: +struct cmd_clk_set_parent_request {
1: + uint32_t parent_id;
1: +};
1: +
1: +struct cmd_clk_set_parent_response {
1: + uint32_t parent_id;
1: +};
1: +
1: +struct cmd_clk_is_enabled_request {};
1: +
1: +struct cmd_clk_is_enabled_response {
1: + int32_t state;
1: +};
1: +
1: +struct cmd_clk_enable_request {};
1: +
1: +struct cmd_clk_disable_request {};
1: +
1: +struct cmd_clk_get_all_info_request {};
1: +
1: +struct cmd_clk_get_all_info_response {
1: + uint32_t flags;
1: + uint32_t parent;
1: + uint32_t parents[16];
1: + uint8_t num_parents;
1: + uint8_t name[40];
1: +} __attribute__((packed));
1: +
1: +struct cmd_clk_get_max_clk_id_request {};
1: +
1: +struct cmd_clk_get_max_clk_id_response {
1: + uint32_t max_id;
1: +};
1: +
1: +struct cmd_clk_get_fmax_at_vmin_request {};
1: +
1: +struct mrq_clk_request {
1: + uint32_t cmd_and_id;
1: + union {
1: + struct cmd_clk_get_rate_request clk_get_rate;
1: + struct cmd_clk_set_rate_request clk_set_rate;
1: + struct cmd_clk_round_rate_request clk_round_rate;
1: + struct cmd_clk_get_parent_request clk_get_parent;
1: + struct cmd_clk_set_parent_request clk_set_parent;
1: + struct cmd_clk_enable_request clk_enable;
1: + struct cmd_clk_disable_request clk_disable;
1: + struct cmd_clk_is_enabled_request clk_is_enabled;
1: + struct cmd_clk_get_all_info_request clk_get_all_info;
1: + struct cmd_clk_get_max_clk_id_request clk_get_max_clk_id;
1: + struct cmd_clk_get_fmax_at_vmin_request clk_get_fmax_at_vmin;
1: + };
1: +} __attribute__((packed));
1: +
1: +struct tegra_bpmp_ops;
1: +
1: +struct tegra_bpmp_soc {
1: + struct {
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } cpu_tx;
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } thread;
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } cpu_rx;
1: + } channels;
1: + const struct tegra_bpmp_ops *ops;
1: + unsigned int num_resets;
1: +};
1: +
1: +struct tegra_bpmp;
1: +
1: +struct tegra_bpmp_channel;
1: +
1: +struct tegra_bpmp_ops {
1: + int (*init)(struct tegra_bpmp *);
1: + void (*deinit)(struct tegra_bpmp *);
1: + bool (*is_response_ready)(struct tegra_bpmp_channel *);
1: + bool (*is_request_ready)(struct tegra_bpmp_channel *);
1: + int (*ack_response)(struct tegra_bpmp_channel *);
1: + int (*ack_request)(struct tegra_bpmp_channel *);
1: + bool (*is_response_channel_free)(struct tegra_bpmp_channel *);
1: + bool (*is_request_channel_free)(struct tegra_bpmp_channel *);
1: + int (*post_response)(struct tegra_bpmp_channel *);
1: + int (*post_request)(struct tegra_bpmp_channel *);
1: + int (*ring_doorbell)(struct tegra_bpmp *);
1: + int (*resume)(struct tegra_bpmp *);
1: +};
1: +
1: +struct tegra_bpmp_mb_data {
1: + u32 code;
1: + u32 flags;
1: + u8 data[120];
1: +};
1: +
1: +struct tegra_ivc;
1: +
1: +struct tegra_bpmp_channel {
1: + struct tegra_bpmp *bpmp;
1: + struct tegra_bpmp_mb_data *ib;
1: + struct tegra_bpmp_mb_data *ob;
1: + struct completion completion;
1: + struct tegra_ivc *ivc;
1: + unsigned int index;
1: +};
1: +
1: +struct tegra_bpmp_clk;
1: +
1: +struct tegra_bpmp {
1: + const struct tegra_bpmp_soc *soc;
1: + struct device *dev;
1: + void *priv;
1: + struct {
1: + struct mbox_client client;
1: + struct mbox_chan___2 *channel;
1: + } mbox;
1: + spinlock_t atomic_tx_lock;
1: + struct tegra_bpmp_channel *tx_channel;
1: + struct tegra_bpmp_channel *rx_channel;
1: + struct tegra_bpmp_channel *threaded_channels;
1: + struct {
1: + long unsigned int *allocated;
1: + long unsigned int *busy;
1: + unsigned int count;
1: + struct semaphore lock;
1: + } threaded;
1: + struct list_head mrqs;
1: + spinlock_t lock;
1: + struct tegra_bpmp_clk **clocks;
1: + unsigned int num_clocks;
1: + struct reset_controller_dev rstc;
1: + struct genpd_onecell_data genpd;
1: + struct dentry *debugfs_mirror;
1: +};
1: +
1: +struct tegra_bpmp_clk {
1: + struct clk_hw hw;
1: + struct tegra_bpmp *bpmp;
1: + unsigned int id;
1: + unsigned int num_parents;
1: + unsigned int *parents;
1: +};
1: +
1: +struct tegra_bpmp_message {
1: + unsigned int mrq;
1: + struct {
1: + const void *data;
1: + size_t size;
1: + } tx;
1: + struct {
1: + void *data;
1: + size_t size;
1: + int ret;
1: + } rx;
1: +};
1: +
1: +struct tegra_bpmp_clk_info {
1: + unsigned int id;
1: + char name[40];
1: + unsigned int parents[16];
1: + unsigned int num_parents;
1: + long unsigned int flags;
1: +};
1: +
1: +struct tegra_bpmp_clk_message {
1: + unsigned int cmd;
1: + unsigned int id;
1: + struct {
1: + const void *data;
1: + size_t size;
1: + } tx;
1: + struct {
1: + void *data;
1: + size_t size;
1: + int ret;
1: + } rx;
1: +};
1: +
1: +struct clk_sp810;
1: +
1: +struct clk_sp810_timerclken {
1: + struct clk_hw hw;
1: + struct clk *clk;
1: + struct clk_sp810 *sp810;
1: + int channel;
1: +};
1: +
1: +struct clk_sp810 {
1: + struct device_node *node;
1: + void *base;
1: + spinlock_t lock;
1: + struct clk_sp810_timerclken timerclken[4];
1: +};
1: +
1: +struct vexpress_osc {
1: + struct regmap *reg;
1: + struct clk_hw hw;
1: + long unsigned int rate_min;
1: + long unsigned int rate_max;
1: +};
1: +
1: +struct dma_chan_tbl_ent {
1: + struct dma_chan *chan;
1: +};
1: +
1: +struct dmaengine_unmap_pool {
1: + struct kmem_cache *cache;
1: + const char *name;
1: + mempool_t *pool;
1: + size_t size;
1: +};
1: +
1: +struct dmaengine_desc_callback {
1: + dma_async_tx_callback callback;
1: + dma_async_tx_callback_result callback_result;
1: + void *callback_param;
1: +};
1: +
1: +struct virt_dma_desc {
1: + struct dma_async_tx_descriptor tx;
1: + struct dmaengine_result tx_result;
1: + struct list_head node;
1: +};
1: +
1: +struct virt_dma_chan {
1: + struct dma_chan chan;
1: + struct tasklet_struct task;
1: + void (*desc_free)(struct virt_dma_desc *);
1: + spinlock_t lock;
1: + struct list_head desc_allocated;
1: + struct list_head desc_submitted;
1: + struct list_head desc_issued;
1: + struct list_head desc_completed;
1: + struct list_head desc_terminated;
1: + struct virt_dma_desc *cyclic;
1: +};
1: +
1: +struct acpi_table_csrt {
1: + struct acpi_table_header header;
1: +};
1: +
1: +struct acpi_csrt_group {
1: + u32 length;
1: + u32 vendor_id;
1: + u32 subvendor_id;
1: + u16 device_id;
1: + u16 subdevice_id;
1: + u16 revision;
1: + u16 reserved;
1: + u32 shared_info_length;
1: +};
1: +
1: +struct acpi_csrt_shared_info {
1: + u16 major_version;
1: + u16 minor_version;
1: + u32 mmio_base_low;
1: + u32 mmio_base_high;
1: + u32 gsi_interrupt;
1: + u8 interrupt_polarity;
1: + u8 interrupt_mode;
1: + u8 num_channels;
1: + u8 dma_address_width;
1: + u16 base_request_line;
1: + u16 num_handshake_signals;
1: + u32 max_block_size;
1: +};
1: +
1: +struct acpi_dma_spec {
1: + int chan_id;
1: + int slave_id;
1: + struct device *dev;
1: +};
1: +
1: +struct acpi_dma {
1: + struct list_head dma_controllers;
1: + struct device *dev;
1: + struct dma_chan * (*acpi_dma_xlate)(struct acpi_dma_spec *, struct acpi_dma *);
1: + void *data;
1: + short unsigned int base_request_line;
1: + short unsigned int end_request_line;
1: +};
1: +
1: +struct acpi_dma_filter_info {
1: + dma_cap_mask_t dma_cap;
1: + dma_filter_fn filter_fn;
1: +};
1: +
1: +struct acpi_dma_parser_data {
1: + struct acpi_dma_spec dma_spec;
1: + size_t index;
1: + size_t n;
1: +};
1: +
1: +struct of_dma {
1: + struct list_head of_dma_controllers;
1: + struct device_node *of_node;
1: + struct dma_chan * (*of_dma_xlate)(struct of_phandle_args *, struct of_dma *);
1: + void * (*of_dma_route_allocate)(struct of_phandle_args *, struct of_dma *);
1: + struct dma_router *dma_router;
1: + void *of_dma_data;
1: +};
1: +
1: +struct of_dma_filter_info {
1: + dma_cap_mask_t dma_cap;
1: + dma_filter_fn filter_fn;
1: +};
1: +
1: +struct mv_xor_v2_descriptor {
1: + u16 desc_id;
1: + u16 flags;
1: + u32 crc32_result;
1: + u32 desc_ctrl;
1: + u32 buff_size;
1: + u32 fill_pattern_src_addr[4];
1: + u32 data_buff_addr[12];
1: + u32 reserved[12];
1: +};
1: +
1: +struct mv_xor_v2_sw_desc;
1: +
1: +struct mv_xor_v2_device {
1: + spinlock_t lock;
1: + void *dma_base;
1: + void *glob_base;
1: + struct clk *clk;
1: + struct clk *reg_clk;
1: + struct tasklet_struct irq_tasklet;
1: + struct list_head free_sw_desc;
1: + struct dma_device dmadev;
1: + struct dma_chan dmachan;
1: + dma_addr_t hw_desq;
1: + struct mv_xor_v2_descriptor *hw_desq_virt;
1: + struct mv_xor_v2_sw_desc *sw_desq;
1: + int desc_size;
1: + unsigned int npendings;
1: + unsigned int hw_queue_idx;
1: + struct msi_desc *msi_desc;
1: +};
1: +
1: +struct mv_xor_v2_sw_desc {
1: + int idx;
1: + struct dma_async_tx_descriptor async_tx;
1: + struct mv_xor_v2_descriptor hw_desc;
1: + struct list_head free_list;
1: +};
1: +
1: +struct bam_desc_hw {
1: + __le32 addr;
1: + __le16 size;
1: + __le16 flags;
1: +};
1: +
1: +struct bam_async_desc {
1: + struct virt_dma_desc vd;
1: + u32 num_desc;
1: + u32 xfer_len;
1: + u16 flags;
1: + struct bam_desc_hw *curr_desc;
1: + struct list_head desc_node;
1: + enum dma_transfer_direction dir;
1: + size_t length;
1: + struct bam_desc_hw desc[0];
1: +};
1: +
1: +enum bam_reg {
1: + BAM_CTRL = 0,
1: + BAM_REVISION = 1,
1: + BAM_NUM_PIPES = 2,
1: + BAM_DESC_CNT_TRSHLD = 3,
1: + BAM_IRQ_SRCS = 4,
1: + BAM_IRQ_SRCS_MSK = 5,
1: + BAM_IRQ_SRCS_UNMASKED = 6,
1: + BAM_IRQ_STTS = 7,
1: + BAM_IRQ_CLR = 8,
1: + BAM_IRQ_EN = 9,
1: + BAM_CNFG_BITS = 10,
1: + BAM_IRQ_SRCS_EE = 11,
1: + BAM_IRQ_SRCS_MSK_EE = 12,
1: + BAM_P_CTRL = 13,
1: + BAM_P_RST = 14,
1: + BAM_P_HALT = 15,
1: + BAM_P_IRQ_STTS = 16,
1: + BAM_P_IRQ_CLR = 17,
1: + BAM_P_IRQ_EN = 18,
1: + BAM_P_EVNT_DEST_ADDR = 19,
1: + BAM_P_EVNT_REG = 20,
1: + BAM_P_SW_OFSTS = 21,
1: + BAM_P_DATA_FIFO_ADDR = 22,
1: + BAM_P_DESC_FIFO_ADDR = 23,
1: + BAM_P_EVNT_GEN_TRSHLD = 24,
1: + BAM_P_FIFO_SIZES = 25,
1: +};
1: +
1: +struct reg_offset_data {
1: + u32 base_offset;
1: + unsigned int pipe_mult;
1: + unsigned int evnt_mult;
1: + unsigned int ee_mult;
1: +};
1: +
1: +struct bam_device;
1: +
1: +struct bam_chan {
1: + struct virt_dma_chan vc;
1: + struct bam_device *bdev;
1: + u32 id;
1: + struct dma_slave_config slave;
1: + struct bam_desc_hw *fifo_virt;
1: + dma_addr_t fifo_phys;
1: + short unsigned int head;
1: + short unsigned int tail;
1: + unsigned int initialized;
1: + unsigned int paused;
1: + unsigned int reconfigure;
1: + struct list_head desc_list;
1: + struct list_head node;
1: +};
1: +
1: +struct bam_device {
1: + void *regs;
1: + struct device *dev;
1: + struct dma_device common;
1: + struct bam_chan *channels;
1: + u32 num_channels;
1: + u32 num_ees;
1: + u32 ee;
1: + bool controlled_remotely;
1: + const struct reg_offset_data *layout;
1: + struct clk *bamclk;
1: + int irq;
1: + struct tasklet_struct task;
1: +};
1: +
1: +struct bcm2835_pm {
1: + struct device *dev;
1: + void *base;
1: + void *asb;
1: +};
1: +
1: +struct bcm2835_power;
1: +
1: +struct bcm2835_power_domain {
1: + struct generic_pm_domain base;
1: + struct bcm2835_power *power;
1: + u32 domain;
1: + struct clk *clk;
1: +};
1: +
1: +struct bcm2835_power {
1: + struct device *dev;
1: + void *base;
1: + void *asb;
1: + struct genpd_onecell_data pd_xlate;
1: + struct bcm2835_power_domain domains[13];
1: + struct reset_controller_dev reset;
1: +};
1: +
1: +struct rpi_power_domain {
1: + u32 domain;
1: + bool enabled;
1: + bool old_interface;
1: + struct generic_pm_domain base;
1: + struct rpi_firmware *fw;
1: +};
1: +
1: +struct rpi_power_domains {
1: + bool has_new_interface;
1: + struct genpd_onecell_data xlate;
1: + struct rpi_firmware *fw;
1: + struct rpi_power_domain domains[23];
1: +};
1: +
1: +struct rpi_power_domain_packet {
1: + u32 domain;
1: + u32 on;
1: +};
1: +
1: +struct soc_device_attribute {
1: + const char *machine;
1: + const char *family;
1: + const char *revision;
1: + const char *serial_number;
1: + const char *soc_id;
1: + const void *data;
1: + const struct attribute_group *custom_attr_group;
1: +};
1: +
1: +struct soc_device;
1: +
1: +enum cpubiuctrl_regs {
1: + CPU_CREDIT_REG = 0,
1: + CPU_MCP_FLOW_REG = 1,
1: + CPU_WRITEBACK_CTRL_REG = 2,
1: + RAC_CONFIG0_REG = 3,
1: + RAC_CONFIG1_REG = 4,
1: + NUM_CPU_BIUCTRL_REGS = 5,
1: +};
1: +
1: +enum mtk_ddp_comp_id {
1: + DDP_COMPONENT_AAL0 = 0,
1: + DDP_COMPONENT_AAL1 = 1,
1: + DDP_COMPONENT_BLS = 2,
1: + DDP_COMPONENT_CCORR = 3,
1: + DDP_COMPONENT_COLOR0 = 4,
1: + DDP_COMPONENT_COLOR1 = 5,
1: + DDP_COMPONENT_DITHER = 6,
1: + DDP_COMPONENT_DPI0 = 7,
1: + DDP_COMPONENT_DPI1 = 8,
1: + DDP_COMPONENT_DSI0 = 9,
1: + DDP_COMPONENT_DSI1 = 10,
1: + DDP_COMPONENT_DSI2 = 11,
1: + DDP_COMPONENT_DSI3 = 12,
1: + DDP_COMPONENT_GAMMA = 13,
1: + DDP_COMPONENT_OD0 = 14,
1: + DDP_COMPONENT_OD1 = 15,
1: + DDP_COMPONENT_OVL0 = 16,
1: + DDP_COMPONENT_OVL_2L0 = 17,
1: + DDP_COMPONENT_OVL_2L1 = 18,
1: + DDP_COMPONENT_OVL1 = 19,
1: + DDP_COMPONENT_PWM0 = 20,
1: + DDP_COMPONENT_PWM1 = 21,
1: + DDP_COMPONENT_PWM2 = 22,
1: + DDP_COMPONENT_RDMA0 = 23,
1: + DDP_COMPONENT_RDMA1 = 24,
1: + DDP_COMPONENT_RDMA2 = 25,
1: + DDP_COMPONENT_UFOE = 26,
1: + DDP_COMPONENT_WDMA0 = 27,
1: + DDP_COMPONENT_WDMA1 = 28,
1: + DDP_COMPONENT_ID_MAX = 29,
1: +};
1: +
1: +struct mtk_mmsys_driver_data {
1: + const char *clk_driver;
1: +};
1: +
1: +struct meson_msr;
1: +
1: +struct meson_msr_id {
1: + struct meson_msr *priv;
1: + unsigned int id;
1: + const char *name;
1: +};
1: +
1: +struct meson_msr {
1: + struct regmap *regmap;
1: + struct meson_msr_id msr_table[128];
1: +};
1: +
1: +struct meson_gx_soc_id {
1: + const char *name;
1: + unsigned int id;
1: +};
1: +
1: +struct meson_gx_package_id {
1: + const char *name;
1: + unsigned int major_id;
1: + unsigned int pack_id;
1: + unsigned int pack_mask;
1: +};
1: +
1: +struct meson_gx_pwrc_vpu {
1: + struct generic_pm_domain genpd;
1: + struct regmap *regmap_ao;
1: + struct regmap *regmap_hhi;
1: + struct reset_control *rstc;
1: + struct clk *vpu_clk;
1: + struct clk *vapb_clk;
1: +};
1: +
1: +struct meson_ee_pwrc_mem_domain {
1: + unsigned int reg;
1: + unsigned int mask;
1: +};
1: +
1: +struct meson_ee_pwrc_top_domain {
1: + unsigned int sleep_reg;
1: + unsigned int sleep_mask;
1: + unsigned int iso_reg;
1: + unsigned int iso_mask;
1: +};
1: +
1: +struct meson_ee_pwrc_domain;
1: +
1: +struct meson_ee_pwrc_domain_desc {
1: + char *name;
1: + unsigned int reset_names_count;
1: + unsigned int clk_names_count;
1: + struct meson_ee_pwrc_top_domain *top_pd;
1: + unsigned int mem_pd_count;
1: + struct meson_ee_pwrc_mem_domain *mem_pd;
1: + bool (*get_power)(struct meson_ee_pwrc_domain *);
1: +};
1: +
1: +struct meson_ee_pwrc;
1: +
1: +struct meson_ee_pwrc_domain {
1: + struct generic_pm_domain base;
1: + bool enabled;
1: + struct meson_ee_pwrc *pwrc;
1: + struct meson_ee_pwrc_domain_desc desc;
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: + struct reset_control *rstc;
1: + int num_rstc;
1: +};
1: +
1: +struct meson_ee_pwrc_domain_data {
1: + unsigned int count;
1: + struct meson_ee_pwrc_domain_desc *domains;
1: +};
1: +
1: +struct meson_ee_pwrc {
1: + struct regmap *regmap_ao;
1: + struct regmap *regmap_hhi;
1: + struct meson_ee_pwrc_domain *domains;
1: + struct genpd_onecell_data xlate;
1: +};
1: +
1: +enum {
1: + SM_EFUSE_READ = 0,
1: + SM_EFUSE_WRITE = 1,
1: + SM_EFUSE_USER_MAX = 2,
1: + SM_GET_CHIP_ID = 3,
1: + SM_A1_PWRC_SET = 4,
1: + SM_A1_PWRC_GET = 5,
1: +};
1: +
1: +struct meson_secure_pwrc;
1: +
1: +struct meson_secure_pwrc_domain {
1: + struct generic_pm_domain base;
1: + unsigned int index;
1: + struct meson_secure_pwrc *pwrc;
1: +};
1: +
1: +struct meson_sm_firmware;
1: +
1: +struct meson_secure_pwrc {
1: + struct meson_secure_pwrc_domain *domains;
1: + struct genpd_onecell_data xlate;
1: + struct meson_sm_firmware *fw;
1: +};
1: +
1: +struct meson_secure_pwrc_domain_desc {
1: + unsigned int index;
1: + unsigned int flags;
1: + char *name;
1: + bool (*is_off)(struct meson_secure_pwrc_domain *);
1: +};
1: +
1: +struct meson_secure_pwrc_domain_data {
1: + unsigned int count;
1: + struct meson_secure_pwrc_domain_desc *domains;
1: +};
1: +
1: +enum cmd_db_hw_type {
1: + CMD_DB_HW_INVALID = 0,
1: + CMD_DB_HW_MIN = 3,
1: + CMD_DB_HW_ARC = 3,
1: + CMD_DB_HW_VRM = 4,
1: + CMD_DB_HW_BCM = 5,
1: + CMD_DB_HW_MAX = 5,
1: + CMD_DB_HW_ALL = 255,
1: +};
1: +
1: +struct entry_header {
1: + u8 id[8];
1: + __le32 priority[2];
1: + __le32 addr;
1: + __le16 len;
1: + __le16 offset;
1: +};
1: +
1: +struct rsc_hdr {
1: + __le16 slv_id;
1: + __le16 header_offset;
1: + __le16 data_offset;
1: + __le16 cnt;
1: + __le16 version;
1: + __le16 reserved[3];
1: +};
1: +
1: +struct cmd_db_header {
1: + __le32 version;
1: + u8 magic[4];
1: + struct rsc_hdr header[8];
1: + __le32 checksum;
1: + __le32 reserved;
1: + u8 data[0];
1: +};
1: +
1: +struct smem_proc_comm {
1: + __le32 command;
1: + __le32 status;
1: + __le32 params[2];
1: +};
1: +
1: +struct smem_global_entry {
1: + __le32 allocated;
1: + __le32 offset;
1: + __le32 size;
1: + __le32 aux_base;
1: +};
1: +
1: +struct smem_header {
1: + struct smem_proc_comm proc_comm[4];
1: + __le32 version[32];
1: + __le32 initialized;
1: + __le32 free_offset;
1: + __le32 available;
1: + __le32 reserved;
1: + struct smem_global_entry toc[512];
1: +};
1: +
1: +struct smem_ptable_entry {
1: + __le32 offset;
1: + __le32 size;
1: + __le32 flags;
1: + __le16 host0;
1: + __le16 host1;
1: + __le32 cacheline;
1: + __le32 reserved[7];
1: +};
1: +
1: +struct smem_ptable {
1: + u8 magic[4];
1: + __le32 version;
1: + __le32 num_entries;
1: + __le32 reserved[5];
1: + struct smem_ptable_entry entry[0];
1: +};
1: +
1: +struct smem_partition_header {
1: + u8 magic[4];
1: + __le16 host0;
1: + __le16 host1;
1: + __le32 size;
1: + __le32 offset_free_uncached;
1: + __le32 offset_free_cached;
1: + __le32 reserved[3];
1: +};
1: +
1: +struct smem_private_entry {
1: + u16 canary;
1: + __le16 item;
1: + __le32 size;
1: + __le16 padding_data;
1: + __le16 padding_hdr;
1: + __le32 reserved;
1: +};
1: +
1: +struct smem_info {
1: + u8 magic[4];
1: + __le32 size;
1: + __le32 base_addr;
1: + __le32 reserved;
1: + __le16 num_items;
1: +};
1: +
1: +struct smem_region {
1: + u32 aux_base;
1: + void *virt_base;
1: + size_t size;
1: +};
1: +
1: +struct hwspinlock;
1: +
1: +struct qcom_smem {
1: + struct device *dev;
1: + struct hwspinlock *hwlock;
1: + struct smem_partition_header *global_partition;
1: + size_t global_cacheline;
1: + struct smem_partition_header *partitions[11];
1: + size_t cacheline[11];
1: + u32 item_count;
1: + struct platform_device *socinfo;
1: + unsigned int num_regions;
1: + struct smem_region regions[0];
1: +};
1: +
1: +struct rockchip_grf_value {
1: + const char *desc;
1: + u32 reg;
1: + u32 val;
1: +};
1: +
1: +struct rockchip_grf_info {
1: + const struct rockchip_grf_value *values;
1: + int num_values;
1: +};
1: +
1: +struct rockchip_domain_info {
1: + int pwr_mask;
1: + int status_mask;
1: + int req_mask;
1: + int idle_mask;
1: + int ack_mask;
1: + bool active_wakeup;
1: + int pwr_w_mask;
1: + int req_w_mask;
1: +};
1: +
1: +struct rockchip_pmu_info {
1: + u32 pwr_offset;
1: + u32 status_offset;
1: + u32 req_offset;
1: + u32 idle_offset;
1: + u32 ack_offset;
1: + u32 core_pwrcnt_offset;
1: + u32 gpu_pwrcnt_offset;
1: + unsigned int core_power_transition_time;
1: + unsigned int gpu_power_transition_time;
1: + int num_domains;
1: + const struct rockchip_domain_info *domain_info;
1: +};
1: +
1: +struct rockchip_pmu;
1: +
1: +struct rockchip_pm_domain {
1: + struct generic_pm_domain genpd;
1: + const struct rockchip_domain_info *info;
1: + struct rockchip_pmu *pmu;
1: + int num_qos;
1: + struct regmap **qos_regmap;
1: + u32 *qos_save_regs[5];
1: + int num_clks;
1: + struct clk_bulk_data *clks;
1: +};
1: +
1: +struct rockchip_pmu {
1: + struct device *dev;
1: + struct regmap *regmap;
1: + const struct rockchip_pmu_info *info;
1: + struct mutex mutex;
1: + struct genpd_onecell_data genpd_data;
1: + struct generic_pm_domain *domains[0];
1: +};
1: +
1: +struct exynos_soc_id {
1: + const char *name;
1: + unsigned int id;
1: +};
1: +
1: +enum sys_powerdown {
1: + SYS_AFTR = 0,
1: + SYS_LPA = 1,
1: + SYS_SLEEP = 2,
1: + NUM_SYS_POWERDOWN = 3,
1: +};
1: +
1: +struct exynos_pmu_conf {
1: + unsigned int offset;
1: + u8 val[3];
1: +};
1: +
1: +struct exynos_pmu_data {
1: + const struct exynos_pmu_conf *pmu_config;
1: + void (*pmu_init)();
1: + void (*powerdown_conf)(enum sys_powerdown);
1: + void (*powerdown_conf_extra)(enum sys_powerdown);
1: +};
1: +
1: +struct exynos_pmu_context {
1: + struct device *dev;
1: + const struct exynos_pmu_data *pmu_data;
1: +};
1: +
1: +struct exynos_pm_domain_config {
1: + u32 local_pwr_cfg;
1: +};
1: +
1: +struct exynos_pm_domain {
1: + void *base;
1: + bool is_off;
1: + struct generic_pm_domain pd;
1: + u32 local_pwr_cfg;
1: +};
1: +
1: +struct sunxi_sram_func {
1: + char *func;
1: + u8 val;
1: + u32 reg_val;
1: +};
1: +
1: +struct sunxi_sram_data {
1: + char *name;
1: + u8 reg;
1: + u8 offset;
1: + u8 width;
1: + struct sunxi_sram_func *func;
1: + struct list_head list;
1: +};
1: +
1: +struct sunxi_sram_desc {
1: + struct sunxi_sram_data data;
1: + bool claimed;
1: +};
1: +
1: +struct sunxi_sramc_variant {
1: + bool has_emac_clock;
1: +};
1: +
1: +struct nvmem_cell_info {
1: + const char *name;
1: + unsigned int offset;
1: + unsigned int bytes;
1: + unsigned int bit_offset;
1: + unsigned int nbits;
1: +};
1: +
1: +struct nvmem_cell_lookup {
1: + const char *nvmem_name;
1: + const char *cell_name;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct list_head node;
1: +};
1: +
1: +typedef int (*nvmem_reg_read_t)(void *, unsigned int, void *, size_t);
1: +
1: +typedef int (*nvmem_reg_write_t)(void *, unsigned int, void *, size_t);
1: +
1: +enum nvmem_type {
1: + NVMEM_TYPE_UNKNOWN = 0,
1: + NVMEM_TYPE_EEPROM = 1,
1: + NVMEM_TYPE_OTP = 2,
1: + NVMEM_TYPE_BATTERY_BACKED = 3,
1: +};
1: +
1: +struct nvmem_config {
1: + struct device *dev;
1: + const char *name;
1: + int id;
1: + struct module *owner;
1: + struct gpio_desc *wp_gpio;
1: + const struct nvmem_cell_info *cells;
1: + int ncells;
1: + enum nvmem_type type;
1: + bool read_only;
1: + bool root_only;
1: + bool no_of_node;
1: + nvmem_reg_read_t reg_read;
1: + nvmem_reg_write_t reg_write;
1: + int size;
1: + int word_size;
1: + int stride;
1: + void *priv;
1: + bool compat;
1: + struct device *base_dev;
1: +};
1: +
1: +struct tegra_fuse;
1: +
1: +struct tegra_fuse_info {
1: + u32 (*read)(struct tegra_fuse *, unsigned int);
1: + unsigned int size;
1: + unsigned int spare;
1: +};
1: +
1: +struct nvmem_device;
1: +
1: +struct tegra_fuse_soc;
1: +
1: +struct tegra_fuse {
1: + struct device *dev;
1: + void *base;
1: + phys_addr_t phys;
1: + struct clk *clk;
1: + u32 (*read_early)(struct tegra_fuse *, unsigned int);
1: + u32 (*read)(struct tegra_fuse *, unsigned int);
1: + const struct tegra_fuse_soc *soc;
1: + struct {
1: + struct mutex lock;
1: + struct completion wait;
1: + struct dma_chan *chan;
1: + struct dma_slave_config config;
1: + dma_addr_t phys;
1: + u32 *virt;
1: + } apbdma;
1: + struct nvmem_device *nvmem;
1: + struct nvmem_cell_lookup *lookups;
1: +};
1: +
1: +struct tegra_fuse_soc {
1: + void (*init)(struct tegra_fuse *);
1: + void (*speedo_init)(struct tegra_sku_info *);
1: + int (*probe)(struct tegra_fuse *);
1: + const struct tegra_fuse_info *info;
1: + const struct nvmem_cell_lookup *lookups;
1: + unsigned int num_lookups;
1: + const struct attribute_group *soc_attr_group;
1: +};
1: +
1: +enum {
1: + THRESHOLD_INDEX_0 = 0,
1: + THRESHOLD_INDEX_1 = 1,
1: + THRESHOLD_INDEX_COUNT = 2,
1: +};
1: +
1: +enum tegra_suspend_mode {
1: + TEGRA_SUSPEND_NONE = 0,
1: + TEGRA_SUSPEND_LP2 = 1,
1: + TEGRA_SUSPEND_LP1 = 2,
1: + TEGRA_SUSPEND_LP0 = 3,
1: + TEGRA_MAX_SUSPEND_MODE = 4,
1: +};
1: +
1: +enum tegra_io_pad {
1: + TEGRA_IO_PAD_AUDIO = 0,
1: + TEGRA_IO_PAD_AUDIO_HV = 1,
1: + TEGRA_IO_PAD_BB = 2,
1: + TEGRA_IO_PAD_CAM = 3,
1: + TEGRA_IO_PAD_COMP = 4,
1: + TEGRA_IO_PAD_CONN = 5,
1: + TEGRA_IO_PAD_CSIA = 6,
1: + TEGRA_IO_PAD_CSIB = 7,
1: + TEGRA_IO_PAD_CSIC = 8,
1: + TEGRA_IO_PAD_CSID = 9,
1: + TEGRA_IO_PAD_CSIE = 10,
1: + TEGRA_IO_PAD_CSIF = 11,
1: + TEGRA_IO_PAD_CSIG = 12,
1: + TEGRA_IO_PAD_CSIH = 13,
1: + TEGRA_IO_PAD_DAP3 = 14,
1: + TEGRA_IO_PAD_DAP5 = 15,
1: + TEGRA_IO_PAD_DBG = 16,
1: + TEGRA_IO_PAD_DEBUG_NONAO = 17,
1: + TEGRA_IO_PAD_DMIC = 18,
1: + TEGRA_IO_PAD_DMIC_HV = 19,
1: + TEGRA_IO_PAD_DP = 20,
1: + TEGRA_IO_PAD_DSI = 21,
1: + TEGRA_IO_PAD_DSIB = 22,
1: + TEGRA_IO_PAD_DSIC = 23,
1: + TEGRA_IO_PAD_DSID = 24,
1: + TEGRA_IO_PAD_EDP = 25,
1: + TEGRA_IO_PAD_EMMC = 26,
1: + TEGRA_IO_PAD_EMMC2 = 27,
1: + TEGRA_IO_PAD_EQOS = 28,
1: + TEGRA_IO_PAD_GPIO = 29,
1: + TEGRA_IO_PAD_GP_PWM2 = 30,
1: + TEGRA_IO_PAD_GP_PWM3 = 31,
1: + TEGRA_IO_PAD_HDMI = 32,
1: + TEGRA_IO_PAD_HDMI_DP0 = 33,
1: + TEGRA_IO_PAD_HDMI_DP1 = 34,
1: + TEGRA_IO_PAD_HDMI_DP2 = 35,
1: + TEGRA_IO_PAD_HDMI_DP3 = 36,
1: + TEGRA_IO_PAD_HSIC = 37,
1: + TEGRA_IO_PAD_HV = 38,
1: + TEGRA_IO_PAD_LVDS = 39,
1: + TEGRA_IO_PAD_MIPI_BIAS = 40,
1: + TEGRA_IO_PAD_NAND = 41,
1: + TEGRA_IO_PAD_PEX_BIAS = 42,
1: + TEGRA_IO_PAD_PEX_CLK_BIAS = 43,
1: + TEGRA_IO_PAD_PEX_CLK1 = 44,
1: + TEGRA_IO_PAD_PEX_CLK2 = 45,
1: + TEGRA_IO_PAD_PEX_CLK3 = 46,
1: + TEGRA_IO_PAD_PEX_CLK_2_BIAS = 47,
1: + TEGRA_IO_PAD_PEX_CLK_2 = 48,
1: + TEGRA_IO_PAD_PEX_CNTRL = 49,
1: + TEGRA_IO_PAD_PEX_CTL2 = 50,
1: + TEGRA_IO_PAD_PEX_L0_RST_N = 51,
1: + TEGRA_IO_PAD_PEX_L1_RST_N = 52,
1: + TEGRA_IO_PAD_PEX_L5_RST_N = 53,
1: + TEGRA_IO_PAD_PWR_CTL = 54,
1: + TEGRA_IO_PAD_SDMMC1 = 55,
1: + TEGRA_IO_PAD_SDMMC1_HV = 56,
1: + TEGRA_IO_PAD_SDMMC2 = 57,
1: + TEGRA_IO_PAD_SDMMC2_HV = 58,
1: + TEGRA_IO_PAD_SDMMC3 = 59,
1: + TEGRA_IO_PAD_SDMMC3_HV = 60,
1: + TEGRA_IO_PAD_SDMMC4 = 61,
1: + TEGRA_IO_PAD_SOC_GPIO10 = 62,
1: + TEGRA_IO_PAD_SOC_GPIO12 = 63,
1: + TEGRA_IO_PAD_SOC_GPIO13 = 64,
1: + TEGRA_IO_PAD_SOC_GPIO53 = 65,
1: + TEGRA_IO_PAD_SPI = 66,
1: + TEGRA_IO_PAD_SPI_HV = 67,
1: + TEGRA_IO_PAD_SYS_DDC = 68,
1: + TEGRA_IO_PAD_UART = 69,
1: + TEGRA_IO_PAD_UART4 = 70,
1: + TEGRA_IO_PAD_UART5 = 71,
1: + TEGRA_IO_PAD_UFS = 72,
1: + TEGRA_IO_PAD_USB0 = 73,
1: + TEGRA_IO_PAD_USB1 = 74,
1: + TEGRA_IO_PAD_USB2 = 75,
1: + TEGRA_IO_PAD_USB3 = 76,
1: + TEGRA_IO_PAD_USB_BIAS = 77,
1: + TEGRA_IO_PAD_AO_HV = 78,
1: +};
1: +
1: +struct pmc_clk {
1: + struct clk_hw hw;
1: + long unsigned int offs;
1: + u32 mux_shift;
1: + u32 force_en_shift;
1: +};
1: +
1: +struct pmc_clk_gate {
1: + struct clk_hw hw;
1: + long unsigned int offs;
1: + u32 shift;
1: +};
1: +
1: +struct pmc_clk_init_data {
1: + char *name;
1: + const char * const *parents;
1: + int num_parents;
1: + int clk_id;
1: + u8 mux_shift;
1: + u8 force_en_shift;
1: +};
1: +
1: +struct tegra_pmc;
1: +
1: +struct tegra_powergate {
1: + struct generic_pm_domain genpd;
1: + struct tegra_pmc *pmc;
1: + unsigned int id;
1: + struct clk **clks;
1: + unsigned int num_clks;
1: + struct reset_control *reset;
1: +};
1: +
1: +struct tegra_pmc_soc;
1: +
1: +struct tegra_pmc {
1: + struct device *dev;
1: + void *base;
1: + void *wake;
1: + void *aotag;
1: + void *scratch;
1: + struct clk *clk;
1: + struct dentry *debugfs;
1: + const struct tegra_pmc_soc *soc;
1: + bool tz_only;
1: + long unsigned int rate;
1: + enum tegra_suspend_mode suspend_mode;
1: + u32 cpu_good_time;
1: + u32 cpu_off_time;
1: + u32 core_osc_time;
1: + u32 core_pmu_time;
1: + u32 core_off_time;
1: + bool corereq_high;
1: + bool sysclkreq_high;
1: + bool combined_req;
1: + bool cpu_pwr_good_en;
1: + u32 lp0_vec_phys;
1: + u32 lp0_vec_size;
1: + long unsigned int powergates_available[1];
1: + struct mutex powergates_lock;
1: + struct pinctrl_dev *pctl_dev;
1: + struct irq_domain *domain;
1: + struct irq_chip irq;
1: + struct notifier_block clk_nb;
1: +};
1: +
1: +struct tegra_io_pad_soc {
1: + enum tegra_io_pad id;
1: + unsigned int dpd;
1: + unsigned int voltage;
1: + const char *name;
1: +};
1: +
1: +struct tegra_pmc_regs {
1: + unsigned int scratch0;
1: + unsigned int dpd_req;
1: + unsigned int dpd_status;
1: + unsigned int dpd2_req;
1: + unsigned int dpd2_status;
1: + unsigned int rst_status;
1: + unsigned int rst_source_shift;
1: + unsigned int rst_source_mask;
1: + unsigned int rst_level_shift;
1: + unsigned int rst_level_mask;
1: +};
1: +
1: +struct tegra_wake_event {
1: + const char *name;
1: + unsigned int id;
1: + unsigned int irq;
1: + struct {
1: + unsigned int instance;
1: + unsigned int pin;
1: + } gpio;
1: +};
1: +
1: +struct tegra_pmc_soc {
1: + unsigned int num_powergates;
1: + const char * const *powergates;
1: + unsigned int num_cpu_powergates;
1: + const u8 *cpu_powergates;
1: + bool has_tsense_reset;
1: + bool has_gpu_clamps;
1: + bool needs_mbist_war;
1: + bool has_impl_33v_pwr;
1: + bool maybe_tz_only;
1: + const struct tegra_io_pad_soc *io_pads;
1: + unsigned int num_io_pads;
1: + const struct pinctrl_pin_desc *pin_descs;
1: + unsigned int num_pin_descs;
1: + const struct tegra_pmc_regs *regs;
1: + void (*init)(struct tegra_pmc *);
1: + void (*setup_irq_polarity)(struct tegra_pmc *, struct device_node *, bool);
1: + int (*irq_set_wake)(struct irq_data *, unsigned int);
1: + int (*irq_set_type)(struct irq_data *, unsigned int);
1: + const char * const *reset_sources;
1: + unsigned int num_reset_sources;
1: + const char * const *reset_levels;
1: + unsigned int num_reset_levels;
1: + const struct tegra_wake_event *wake_events;
1: + unsigned int num_wake_events;
1: + const struct pmc_clk_init_data *pmc_clks_data;
1: + unsigned int num_pmc_clks;
1: + bool has_blink_output;
1: +};
1: +
1: +enum mrq_pg_cmd {
1: + CMD_PG_QUERY_ABI = 0,
1: + CMD_PG_SET_STATE = 1,
1: + CMD_PG_GET_STATE = 2,
1: + CMD_PG_GET_NAME = 3,
1: + CMD_PG_GET_MAX_ID = 4,
1: +};
1: +
1: +enum pg_states {
1: + PG_STATE_OFF = 0,
1: + PG_STATE_ON = 1,
1: + PG_STATE_RUNNING = 2,
1: +};
1: +
1: +struct cmd_pg_query_abi_request {
1: + uint32_t type;
1: +};
1: +
1: +struct cmd_pg_set_state_request {
1: + uint32_t state;
1: +};
1: +
1: +struct cmd_pg_get_state_response {
1: + uint32_t state;
1: +};
1: +
1: +struct cmd_pg_get_name_response {
1: + uint8_t name[40];
1: +};
1: +
1: +struct cmd_pg_get_max_id_response {
1: + uint32_t max_id;
1: +};
1: +
1: +struct mrq_pg_request {
1: + uint32_t cmd;
1: + uint32_t id;
1: + union {
1: + struct cmd_pg_query_abi_request query_abi;
1: + struct cmd_pg_set_state_request set_state;
1: + };
1: +};
1: +
1: +struct mrq_pg_response {
1: + union {
1: + struct cmd_pg_get_state_response get_state;
1: + struct cmd_pg_get_name_response get_name;
1: + struct cmd_pg_get_max_id_response get_max_id;
1: + };
1: +};
1: +
1: +struct tegra_powergate_info {
1: + unsigned int id;
1: + char *name;
1: +};
1: +
1: +struct tegra_powergate___2 {
1: + struct generic_pm_domain genpd;
1: + struct tegra_bpmp *bpmp;
1: + unsigned int id;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + xen_pfn_t *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_xen_pfn_t;
1: +
1: +struct grant_entry_v1 {
1: + uint16_t flags;
1: + domid_t domid;
1: + uint32_t frame;
1: +};
1: +
1: +struct grant_entry_header {
1: + uint16_t flags;
1: + domid_t domid;
1: +};
1: +
1: +union grant_entry_v2 {
1: + struct grant_entry_header hdr;
1: + struct {
1: + struct grant_entry_header hdr;
1: + uint32_t pad0;
1: + uint64_t frame;
1: + } full_page;
1: + struct {
1: + struct grant_entry_header hdr;
1: + uint16_t page_off;
1: + uint16_t length;
1: + uint64_t frame;
1: + } sub_page;
1: + struct {
1: + struct grant_entry_header hdr;
1: + domid_t trans_domid;
1: + uint16_t pad0;
1: + grant_ref_t gref;
1: + } transitive;
1: + uint32_t __spacer[4];
1: +};
1: +
1: +struct gnttab_setup_table {
1: + domid_t dom;
1: + uint32_t nr_frames;
1: + int16_t status;
1: + __guest_handle_xen_pfn_t frame_list;
1: +};
1: +
1: +struct gnttab_copy {
1: + struct {
1: + union {
1: + grant_ref_t ref;
1: + xen_pfn_t gmfn;
1: + } u;
1: + domid_t domid;
1: + uint16_t offset;
1: + } source;
1: + struct {
1: + union {
1: + grant_ref_t ref;
1: + xen_pfn_t gmfn;
1: + } u;
1: + domid_t domid;
1: + uint16_t offset;
1: + } dest;
1: + uint16_t len;
1: + uint16_t flags;
1: + int16_t status;
1: +};
1: +
1: +struct gnttab_query_size {
1: + domid_t dom;
1: + uint32_t nr_frames;
1: + uint32_t max_nr_frames;
1: + int16_t status;
1: +};
1: +
1: +struct gnttab_set_version {
1: + uint32_t version;
1: +};
1: +
1: +struct gnttab_get_status_frames {
1: + uint32_t nr_frames;
1: + domid_t dom;
1: + int16_t status;
1: + __guest_handle_uint64_t frame_list;
1: +};
1: +
1: +struct gnttab_free_callback {
1: + struct gnttab_free_callback *next;
1: + void (*fn)(void *);
1: + void *arg;
1: + u16 count;
1: +};
1: +
1: +struct gntab_unmap_queue_data;
1: +
1: +typedef void (*gnttab_unmap_refs_done)(int, struct gntab_unmap_queue_data *);
1: +
1: +struct gntab_unmap_queue_data {
1: + struct delayed_work gnttab_work;
1: + void *data;
1: + gnttab_unmap_refs_done done;
1: + struct gnttab_unmap_grant_ref *unmap_ops;
1: + struct gnttab_unmap_grant_ref *kunmap_ops;
1: + struct page **pages;
1: + unsigned int count;
1: + unsigned int age;
1: +};
1: +
1: +struct gnttab_page_cache {
1: + spinlock_t lock;
1: + struct list_head pages;
1: + unsigned int num_pages;
1: +};
1: +
1: +struct xen_page_foreign {
1: + domid_t domid;
1: + grant_ref_t gref;
1: +};
1: +
1: +typedef void (*xen_grant_fn_t)(long unsigned int, unsigned int, unsigned int, void *);
1: +
1: +struct gnttab_ops {
1: + unsigned int version;
1: + unsigned int grefs_per_grant_frame;
1: + int (*map_frames)(xen_pfn_t *, unsigned int);
1: + void (*unmap_frames)();
1: + void (*update_entry)(grant_ref_t, domid_t, long unsigned int, unsigned int);
1: + int (*end_foreign_access_ref)(grant_ref_t, int);
1: + long unsigned int (*end_foreign_transfer_ref)(grant_ref_t);
1: + int (*query_foreign_access)(grant_ref_t);
1: +};
1: +
1: +struct unmap_refs_callback_data {
1: + struct completion completion;
1: + int result;
1: +};
1: +
1: +struct deferred_entry {
1: + struct list_head list;
1: + grant_ref_t ref;
1: + bool ro;
1: + uint16_t warn_delay;
1: + struct page *page;
1: +};
1: +
1: +struct xen_feature_info {
1: + unsigned int submap_idx;
1: + uint32_t submap;
1: +};
1: +
1: +struct balloon_stats {
1: + long unsigned int current_pages;
1: + long unsigned int target_pages;
1: + long unsigned int target_unpopulated;
1: + long unsigned int balloon_low;
1: + long unsigned int balloon_high;
1: + long unsigned int total_pages;
1: + long unsigned int schedule_delay;
1: + long unsigned int max_schedule_delay;
1: + long unsigned int retry_count;
1: + long unsigned int max_retry_count;
1: +};
1: +
1: +enum bp_state {
1: + BP_DONE = 0,
1: + BP_WAIT = 1,
1: + BP_EAGAIN = 2,
1: + BP_ECANCELED = 3,
1: +};
1: +
1: +enum shutdown_state {
1: + SHUTDOWN_INVALID = 4294967295,
1: + SHUTDOWN_POWEROFF = 0,
1: + SHUTDOWN_SUSPEND = 2,
1: + SHUTDOWN_HALT = 4,
1: +};
1: +
1: +struct suspend_info {
1: + int cancelled;
1: +};
1: +
1: +struct shutdown_handler {
1: + const char command[11];
1: + bool flag;
1: + void (*cb)();
1: +};
1: +
1: +struct vcpu_runstate_info {
1: + int state;
1: + uint64_t state_entry_time;
1: + uint64_t time[4];
1: +};
1: +
1: +typedef struct {
1: + union {
1: + struct vcpu_runstate_info *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_vcpu_runstate_info;
1: +
1: +struct vcpu_register_runstate_memory_area {
1: + union {
1: + __guest_handle_vcpu_runstate_info h;
1: + struct vcpu_runstate_info *v;
1: + uint64_t p;
1: + } addr;
1: +};
1: +
1: +struct xen_memory_reservation {
1: + __guest_handle_xen_pfn_t extent_start;
1: + xen_ulong_t nr_extents;
1: + unsigned int extent_order;
1: + unsigned int address_bits;
1: + domid_t domid;
1: +};
1: +
1: +typedef uint32_t evtchn_port_t;
1: +
1: +typedef struct {
1: + union {
1: + evtchn_port_t *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_evtchn_port_t;
1: +
1: +struct evtchn_bind_interdomain {
1: + domid_t remote_dom;
1: + evtchn_port_t remote_port;
1: + evtchn_port_t local_port;
1: +};
1: +
1: +struct evtchn_bind_virq {
1: + uint32_t virq;
1: + uint32_t vcpu;
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_bind_pirq {
1: + uint32_t pirq;
1: + uint32_t flags;
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_bind_ipi {
1: + uint32_t vcpu;
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_close {
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_send {
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_status {
1: + domid_t dom;
1: + evtchn_port_t port;
1: + uint32_t status;
1: + uint32_t vcpu;
1: + union {
1: + struct {
1: + domid_t dom;
1: + } unbound;
1: + struct {
1: + domid_t dom;
1: + evtchn_port_t port;
1: + } interdomain;
1: + uint32_t pirq;
1: + uint32_t virq;
1: + } u;
1: +};
1: +
1: +struct evtchn_bind_vcpu {
1: + evtchn_port_t port;
1: + uint32_t vcpu;
1: +};
1: +
1: +struct evtchn_set_priority {
1: + evtchn_port_t port;
1: + uint32_t priority;
1: +};
1: +
1: +struct sched_poll {
1: + __guest_handle_evtchn_port_t ports;
1: + unsigned int nr_ports;
1: + uint64_t timeout;
1: +};
1: +
1: +enum ipi_vector {
1: + XEN_PLACEHOLDER_VECTOR = 0,
1: + XEN_NR_IPIS = 1,
1: +};
1: +
1: +struct physdev_eoi {
1: + uint32_t irq;
1: +};
1: +
1: +struct physdev_irq_status_query {
1: + uint32_t irq;
1: + uint32_t flags;
1: +};
1: +
1: +struct physdev_irq {
1: + uint32_t irq;
1: + uint32_t vector;
1: +};
1: +
1: +struct physdev_map_pirq {
1: + domid_t domid;
1: + int type;
1: + int index;
1: + int pirq;
1: + int bus;
1: + int devfn;
1: + int entry_nr;
1: + uint64_t table_base;
1: +};
1: +
1: +struct physdev_unmap_pirq {
1: + domid_t domid;
1: + int pirq;
1: +};
1: +
1: +struct physdev_get_free_pirq {
1: + int type;
1: + uint32_t pirq;
1: +};
1: +
1: +struct evtchn_loop_ctrl;
1: +
1: +struct evtchn_ops {
1: + unsigned int (*max_channels)();
1: + unsigned int (*nr_channels)();
1: + int (*setup)(evtchn_port_t);
1: + void (*bind_to_cpu)(evtchn_port_t, unsigned int, unsigned int);
1: + void (*clear_pending)(evtchn_port_t);
1: + void (*set_pending)(evtchn_port_t);
1: + bool (*is_pending)(evtchn_port_t);
1: + bool (*test_and_set_mask)(evtchn_port_t);
1: + void (*mask)(evtchn_port_t);
1: + void (*unmask)(evtchn_port_t);
1: + void (*handle_events)(unsigned int, struct evtchn_loop_ctrl *);
1: + void (*resume)();
1: + int (*percpu_init)(unsigned int);
1: + int (*percpu_deinit)(unsigned int);
1: +};
1: +
1: +struct evtchn_loop_ctrl {
1: + ktime_t timeout;
1: + unsigned int count;
1: + bool defer_eoi;
1: +};
1: +
1: +enum xen_irq_type {
1: + IRQT_UNBOUND = 0,
1: + IRQT_PIRQ = 1,
1: + IRQT_VIRQ = 2,
1: + IRQT_IPI = 3,
1: + IRQT_EVTCHN = 4,
1: +};
1: +
1: +struct irq_info {
1: + struct list_head list;
1: + struct list_head eoi_list;
1: + short int refcnt;
1: + short int spurious_cnt;
1: + enum xen_irq_type type;
1: + unsigned int irq;
1: + evtchn_port_t evtchn;
1: + short unsigned int cpu;
1: + short unsigned int eoi_cpu;
1: + unsigned int irq_epoch;
1: + u64 eoi_time;
1: + union {
1: + short unsigned int virq;
1: + enum ipi_vector ipi;
1: + struct {
1: + short unsigned int pirq;
1: + short unsigned int gsi;
1: + unsigned char vector;
1: + unsigned char flags;
1: + uint16_t domid;
1: + } pirq;
1: + } u;
1: +};
1: +
1: +struct lateeoi_work {
1: + struct delayed_work delayed;
1: + spinlock_t eoi_list_lock;
1: + struct list_head eoi_list;
1: +};
1: +
1: +struct evtchn_unmask {
1: + evtchn_port_t port;
1: +};
1: +
1: +struct evtchn_init_control {
1: + uint64_t control_gfn;
1: + uint32_t offset;
1: + uint32_t vcpu;
1: + uint8_t link_bits;
1: + uint8_t _pad[7];
1: +};
1: +
1: +struct evtchn_expand_array {
1: + uint64_t array_gfn;
1: +};
1: +
1: +typedef uint32_t event_word_t;
1: +
1: +struct evtchn_fifo_control_block {
1: + uint32_t ready;
1: + uint32_t _rsvd;
1: + event_word_t head[16];
1: +};
1: +
1: +struct evtchn_fifo_queue {
1: + uint32_t head[16];
1: +};
1: +
1: +struct evtchn_alloc_unbound {
1: + domid_t dom;
1: + domid_t remote_dom;
1: + evtchn_port_t port;
1: +};
1: +
1: +struct xenbus_map_node {
1: + struct list_head next;
1: + union {
1: + struct {
1: + struct vm_struct *area;
1: + } pv;
1: + struct {
1: + struct page *pages[16];
1: + long unsigned int addrs[16];
1: + void *addr;
1: + } hvm;
1: + };
1: + grant_handle_t handles[16];
1: + unsigned int nr_handles;
1: +};
1: +
1: +struct map_ring_valloc {
1: + struct xenbus_map_node *node;
1: + long unsigned int addrs[16];
1: + phys_addr_t phys_addrs[16];
1: + struct gnttab_map_grant_ref map[16];
1: + struct gnttab_unmap_grant_ref unmap[16];
1: + unsigned int idx;
1: +};
1: +
1: +struct xenbus_ring_ops {
1: + int (*map)(struct xenbus_device *, struct map_ring_valloc *, grant_ref_t *, unsigned int, void **);
1: + int (*unmap)(struct xenbus_device *, void *);
1: +};
1: +
1: +struct unmap_ring_hvm {
1: + unsigned int idx;
1: + long unsigned int addrs[16];
1: +};
1: +
1: +enum xsd_sockmsg_type {
1: + XS_DEBUG = 0,
1: + XS_DIRECTORY = 1,
1: + XS_READ = 2,
1: + XS_GET_PERMS = 3,
1: + XS_WATCH = 4,
1: + XS_UNWATCH = 5,
1: + XS_TRANSACTION_START = 6,
1: + XS_TRANSACTION_END = 7,
1: + XS_INTRODUCE = 8,
1: + XS_RELEASE = 9,
1: + XS_GET_DOMAIN_PATH = 10,
1: + XS_WRITE = 11,
1: + XS_MKDIR = 12,
1: + XS_RM = 13,
1: + XS_SET_PERMS = 14,
1: + XS_WATCH_EVENT = 15,
1: + XS_ERROR = 16,
1: + XS_IS_DOMAIN_INTRODUCED = 17,
1: + XS_RESUME = 18,
1: + XS_SET_TARGET = 19,
1: + XS_RESTRICT = 20,
1: + XS_RESET_WATCHES = 21,
1: +};
1: +
1: +struct xsd_sockmsg {
1: + uint32_t type;
1: + uint32_t req_id;
1: + uint32_t tx_id;
1: + uint32_t len;
1: +};
1: +
1: +typedef uint32_t XENSTORE_RING_IDX;
1: +
1: +struct xenstore_domain_interface {
1: + char req[1024];
1: + char rsp[1024];
1: + XENSTORE_RING_IDX req_cons;
1: + XENSTORE_RING_IDX req_prod;
1: + XENSTORE_RING_IDX rsp_cons;
1: + XENSTORE_RING_IDX rsp_prod;
1: +};
1: +
1: +struct xs_watch_event {
1: + struct list_head list;
1: + unsigned int len;
1: + struct xenbus_watch *handle;
1: + const char *path;
1: + const char *token;
1: + char body[0];
1: +};
1: +
1: +enum xb_req_state {
1: + xb_req_state_queued = 0,
1: + xb_req_state_wait_reply = 1,
1: + xb_req_state_got_reply = 2,
1: + xb_req_state_aborted = 3,
1: +};
1: +
1: +struct xb_req_data {
1: + struct list_head list;
1: + wait_queue_head_t wq;
1: + struct xsd_sockmsg msg;
1: + uint32_t caller_req_id;
1: + enum xsd_sockmsg_type type;
1: + char *body;
1: + const struct kvec *vec;
1: + int num_vecs;
1: + int err;
1: + enum xb_req_state state;
1: + bool user_req;
1: + void (*cb)(struct xb_req_data *);
1: + void *par;
1: +};
1: +
1: +enum xenstore_init {
1: + XS_UNKNOWN = 0,
1: + XS_PV = 1,
1: + XS_HVM = 2,
1: + XS_LOCAL = 3,
1: +};
1: +
1: +struct xen_bus_type {
1: + char *root;
1: + unsigned int levels;
1: + int (*get_bus_id)(char *, const char *);
1: + int (*probe)(struct xen_bus_type *, const char *, const char *);
1: + bool (*otherend_will_handle)(struct xenbus_watch *, const char *, const char *);
1: + void (*otherend_changed)(struct xenbus_watch *, const char *, const char *);
1: + struct bus_type bus;
1: +};
1: +
1: +struct xb_find_info {
1: + struct xenbus_device *dev;
1: + const char *nodename;
1: +};
1: +
1: +struct xenbus_transaction_holder {
1: + struct list_head list;
1: + struct xenbus_transaction handle;
1: + unsigned int generation_id;
1: +};
1: +
1: +struct read_buffer {
1: + struct list_head list;
1: + unsigned int cons;
1: + unsigned int len;
1: + char msg[0];
1: +};
1: +
1: +struct xenbus_file_priv {
1: + struct mutex msgbuffer_mutex;
1: + struct list_head transactions;
1: + struct list_head watches;
1: + unsigned int len;
1: + union {
1: + struct xsd_sockmsg msg;
1: + char buffer[4096];
1: + } u;
1: + struct mutex reply_mutex;
1: + struct list_head read_buffers;
1: + wait_queue_head_t read_waitq;
1: + struct kref kref;
1: + struct work_struct wq;
1: +};
1: +
1: +struct watch_adapter {
1: + struct list_head list;
1: + struct xenbus_watch watch;
1: + struct xenbus_file_priv *dev_data;
1: + char *token;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + int *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_int;
1: +
1: +typedef struct {
1: + union {
1: + xen_ulong_t *p;
1: + uint64_t q;
1: + };
1: +} __guest_handle_xen_ulong_t;
1: +
1: +struct xen_add_to_physmap_range {
1: + domid_t domid;
1: + uint16_t space;
1: + uint16_t size;
1: + domid_t foreign_domid;
1: + __guest_handle_xen_ulong_t idxs;
1: + __guest_handle_xen_pfn_t gpfns;
1: + __guest_handle_int errs;
1: +};
1: +
1: +struct xen_remove_from_physmap {
1: + domid_t domid;
1: + xen_pfn_t gpfn;
1: +};
1: +
1: +struct physdev_manage_pci {
1: + uint8_t bus;
1: + uint8_t devfn;
1: +};
1: +
1: +struct physdev_manage_pci_ext {
1: + uint8_t bus;
1: + uint8_t devfn;
1: + unsigned int is_extfn;
1: + unsigned int is_virtfn;
1: + struct {
1: + uint8_t bus;
1: + uint8_t devfn;
1: + } physfn;
1: +};
1: +
1: +struct physdev_pci_device_add {
1: + uint16_t seg;
1: + uint8_t bus;
1: + uint8_t devfn;
1: + uint32_t flags;
1: + struct {
1: + uint8_t bus;
1: + uint8_t devfn;
1: + } physfn;
1: + uint32_t optarr[0];
1: +};
1: +
1: +struct physdev_pci_device {
1: + uint16_t seg;
1: + uint8_t bus;
1: + uint8_t devfn;
1: +};
1: +
1: +struct usb_device_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 bcdUSB;
1: + __u8 bDeviceClass;
1: + __u8 bDeviceSubClass;
1: + __u8 bDeviceProtocol;
1: + __u8 bMaxPacketSize0;
1: + __le16 idVendor;
1: + __le16 idProduct;
1: + __le16 bcdDevice;
1: + __u8 iManufacturer;
1: + __u8 iProduct;
1: + __u8 iSerialNumber;
1: + __u8 bNumConfigurations;
1: +};
1: +
1: +struct usb_config_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wTotalLength;
1: + __u8 bNumInterfaces;
1: + __u8 bConfigurationValue;
1: + __u8 iConfiguration;
1: + __u8 bmAttributes;
1: + __u8 bMaxPower;
1: +} __attribute__((packed));
1: +
1: +struct usb_interface_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bInterfaceNumber;
1: + __u8 bAlternateSetting;
1: + __u8 bNumEndpoints;
1: + __u8 bInterfaceClass;
1: + __u8 bInterfaceSubClass;
1: + __u8 bInterfaceProtocol;
1: + __u8 iInterface;
1: +};
1: +
1: +struct usb_endpoint_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bEndpointAddress;
1: + __u8 bmAttributes;
1: + __le16 wMaxPacketSize;
1: + __u8 bInterval;
1: + __u8 bRefresh;
1: + __u8 bSynchAddress;
1: +} __attribute__((packed));
1: +
1: +struct usb_ssp_isoc_ep_comp_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wReseved;
1: + __le32 dwBytesPerInterval;
1: +};
1: +
1: +struct usb_ss_ep_comp_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bMaxBurst;
1: + __u8 bmAttributes;
1: + __le16 wBytesPerInterval;
1: +};
1: +
1: +struct usb_interface_assoc_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bFirstInterface;
1: + __u8 bInterfaceCount;
1: + __u8 bFunctionClass;
1: + __u8 bFunctionSubClass;
1: + __u8 bFunctionProtocol;
1: + __u8 iFunction;
1: +};
1: +
1: +struct usb_bos_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wTotalLength;
1: + __u8 bNumDeviceCaps;
1: +} __attribute__((packed));
1: +
1: +struct usb_ext_cap_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __le32 bmAttributes;
1: +} __attribute__((packed));
1: +
1: +struct usb_ss_cap_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bmAttributes;
1: + __le16 wSpeedSupported;
1: + __u8 bFunctionalitySupport;
1: + __u8 bU1devExitLat;
1: + __le16 bU2DevExitLat;
1: +};
1: +
1: +struct usb_ss_container_id_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bReserved;
1: + __u8 ContainerID[16];
1: +};
1: +
1: +struct usb_ssp_cap_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bReserved;
1: + __le32 bmAttributes;
1: + __le16 wFunctionalitySupport;
1: + __le16 wReserved;
1: + __le32 bmSublinkSpeedAttr[1];
1: +};
1: +
1: +struct usb_ptm_cap_descriptor {
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: +};
1: +
1: +enum usb_device_speed {
1: + USB_SPEED_UNKNOWN = 0,
1: + USB_SPEED_LOW = 1,
1: + USB_SPEED_FULL = 2,
1: + USB_SPEED_HIGH = 3,
1: + USB_SPEED_WIRELESS = 4,
1: + USB_SPEED_SUPER = 5,
1: + USB_SPEED_SUPER_PLUS = 6,
1: +};
1: +
1: +enum usb_device_state {
1: + USB_STATE_NOTATTACHED = 0,
1: + USB_STATE_ATTACHED = 1,
1: + USB_STATE_POWERED = 2,
1: + USB_STATE_RECONNECTING = 3,
1: + USB_STATE_UNAUTHENTICATED = 4,
1: + USB_STATE_DEFAULT = 5,
1: + USB_STATE_ADDRESS = 6,
1: + USB_STATE_CONFIGURED = 7,
1: + USB_STATE_SUSPENDED = 8,
1: +};
1: +
1: +enum usb3_link_state {
1: + USB3_LPM_U0 = 0,
1: + USB3_LPM_U1 = 1,
1: + USB3_LPM_U2 = 2,
1: + USB3_LPM_U3 = 3,
1: +};
1: +
1: +struct ep_device;
1: +
1: +struct usb_host_endpoint {
1: + struct usb_endpoint_descriptor desc;
1: + struct usb_ss_ep_comp_descriptor ss_ep_comp;
1: + struct usb_ssp_isoc_ep_comp_descriptor ssp_isoc_ep_comp;
1: + char: 8;
1: + struct list_head urb_list;
1: + void *hcpriv;
1: + struct ep_device *ep_dev;
1: + unsigned char *extra;
1: + int extralen;
1: + int enabled;
1: + int streams;
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +struct usb_host_interface {
1: + struct usb_interface_descriptor desc;
1: + int extralen;
1: + unsigned char *extra;
1: + struct usb_host_endpoint *endpoint;
1: + char *string;
1: +};
1: +
1: +enum usb_interface_condition {
1: + USB_INTERFACE_UNBOUND = 0,
1: + USB_INTERFACE_BINDING = 1,
1: + USB_INTERFACE_BOUND = 2,
1: + USB_INTERFACE_UNBINDING = 3,
1: +};
1: +
1: +struct usb_interface {
1: + struct usb_host_interface *altsetting;
1: + struct usb_host_interface *cur_altsetting;
1: + unsigned int num_altsetting;
1: + struct usb_interface_assoc_descriptor *intf_assoc;
1: + int minor;
1: + enum usb_interface_condition condition;
1: + unsigned int sysfs_files_created: 1;
1: + unsigned int ep_devs_created: 1;
1: + unsigned int unregistering: 1;
1: + unsigned int needs_remote_wakeup: 1;
1: + unsigned int needs_altsetting0: 1;
1: + unsigned int needs_binding: 1;
1: + unsigned int resetting_device: 1;
1: + unsigned int authorized: 1;
1: + struct device dev;
1: + struct device *usb_dev;
1: + struct work_struct reset_ws;
1: +};
1: +
1: +struct usb_interface_cache {
1: + unsigned int num_altsetting;
1: + struct kref ref;
1: + struct usb_host_interface altsetting[0];
1: +};
1: +
1: +struct usb_host_config {
1: + struct usb_config_descriptor desc;
1: + char *string;
1: + struct usb_interface_assoc_descriptor *intf_assoc[16];
1: + struct usb_interface *interface[32];
1: + struct usb_interface_cache *intf_cache[32];
1: + unsigned char *extra;
1: + int extralen;
1: +};
1: +
1: +struct usb_host_bos {
1: + struct usb_bos_descriptor *desc;
1: + struct usb_ext_cap_descriptor *ext_cap;
1: + struct usb_ss_cap_descriptor *ss_cap;
1: + struct usb_ssp_cap_descriptor *ssp_cap;
1: + struct usb_ss_container_id_descriptor *ss_id;
1: + struct usb_ptm_cap_descriptor *ptm_cap;
1: +};
1: +
1: +struct usb_devmap {
1: + long unsigned int devicemap[2];
1: +};
1: +
1: +struct mon_bus;
1: +
1: +struct usb_device;
1: +
1: +struct usb_bus {
1: + struct device *controller;
1: + struct device *sysdev;
1: + int busnum;
1: + const char *bus_name;
1: + u8 uses_pio_for_control;
1: + u8 otg_port;
1: + unsigned int is_b_host: 1;
1: + unsigned int b_hnp_enable: 1;
1: + unsigned int no_stop_on_short: 1;
1: + unsigned int no_sg_constraint: 1;
1: + unsigned int sg_tablesize;
1: + int devnum_next;
1: + struct mutex devnum_next_mutex;
1: + struct usb_devmap devmap;
1: + struct usb_device *root_hub;
1: + struct usb_bus *hs_companion;
1: + int bandwidth_allocated;
1: + int bandwidth_int_reqs;
1: + int bandwidth_isoc_reqs;
1: + unsigned int resuming_ports;
1: + struct mon_bus *mon_bus;
1: + int monitored;
1: +};
1: +
1: +struct wusb_dev;
1: +
1: +enum usb_device_removable {
1: + USB_DEVICE_REMOVABLE_UNKNOWN = 0,
1: + USB_DEVICE_REMOVABLE = 1,
1: + USB_DEVICE_FIXED = 2,
1: +};
1: +
1: +struct usb2_lpm_parameters {
1: + unsigned int besl;
1: + int timeout;
1: +};
1: +
1: +struct usb3_lpm_parameters {
1: + unsigned int mel;
1: + unsigned int pel;
1: + unsigned int sel;
1: + int timeout;
1: +};
1: +
1: +struct usb_tt;
1: +
1: +struct usb_device {
1: + int devnum;
1: + char devpath[16];
1: + u32 route;
1: + enum usb_device_state state;
1: + enum usb_device_speed speed;
1: + unsigned int rx_lanes;
1: + unsigned int tx_lanes;
1: + struct usb_tt *tt;
1: + int ttport;
1: + unsigned int toggle[2];
1: + struct usb_device *parent;
1: + struct usb_bus *bus;
1: + struct usb_host_endpoint ep0;
1: + struct device dev;
1: + struct usb_device_descriptor descriptor;
1: + struct usb_host_bos *bos;
1: + struct usb_host_config *config;
1: + struct usb_host_config *actconfig;
1: + struct usb_host_endpoint *ep_in[16];
1: + struct usb_host_endpoint *ep_out[16];
1: + char **rawdescriptors;
1: + short unsigned int bus_mA;
1: + u8 portnum;
1: + u8 level;
1: + u8 devaddr;
1: + unsigned int can_submit: 1;
1: + unsigned int persist_enabled: 1;
1: + unsigned int have_langid: 1;
1: + unsigned int authorized: 1;
1: + unsigned int authenticated: 1;
1: + unsigned int wusb: 1;
1: + unsigned int lpm_capable: 1;
1: + unsigned int usb2_hw_lpm_capable: 1;
1: + unsigned int usb2_hw_lpm_besl_capable: 1;
1: + unsigned int usb2_hw_lpm_enabled: 1;
1: + unsigned int usb2_hw_lpm_allowed: 1;
1: + unsigned int usb3_lpm_u1_enabled: 1;
1: + unsigned int usb3_lpm_u2_enabled: 1;
1: + int string_langid;
1: + char *product;
1: + char *manufacturer;
1: + char *serial;
1: + struct list_head filelist;
1: + int maxchild;
1: + u32 quirks;
1: + atomic_t urbnum;
1: + long unsigned int active_duration;
1: + long unsigned int connect_time;
1: + unsigned int do_remote_wakeup: 1;
1: + unsigned int reset_resume: 1;
1: + unsigned int port_is_suspended: 1;
1: + struct wusb_dev *wusb_dev;
1: + int slot_id;
1: + enum usb_device_removable removable;
1: + struct usb2_lpm_parameters l1_params;
1: + struct usb3_lpm_parameters u1_params;
1: + struct usb3_lpm_parameters u2_params;
1: + unsigned int lpm_disable_count;
1: + u16 hub_delay;
1: + unsigned int use_generic_driver: 1;
1: +};
1: +
1: +struct usb_tt {
1: + struct usb_device *hub;
1: + int multi;
1: + unsigned int think_time;
1: + void *hcpriv;
1: + spinlock_t lock;
1: + struct list_head clear_list;
1: + struct work_struct clear_work;
1: +};
1: +
1: +struct usb_iso_packet_descriptor {
1: + unsigned int offset;
1: + unsigned int length;
1: + unsigned int actual_length;
1: + int status;
1: +};
1: +
1: +struct usb_anchor {
1: + struct list_head urb_list;
1: + wait_queue_head_t wait;
1: + spinlock_t lock;
1: + atomic_t suspend_wakeups;
1: + unsigned int poisoned: 1;
1: +};
1: +
1: +struct urb;
1: +
1: +typedef void (*usb_complete_t)(struct urb *);
1: +
1: +struct urb {
1: + struct kref kref;
1: + int unlinked;
1: + void *hcpriv;
1: + atomic_t use_count;
1: + atomic_t reject;
1: + struct list_head urb_list;
1: + struct list_head anchor_list;
1: + struct usb_anchor *anchor;
1: + struct usb_device *dev;
1: + struct usb_host_endpoint *ep;
1: + unsigned int pipe;
1: + unsigned int stream_id;
1: + int status;
1: + unsigned int transfer_flags;
1: + void *transfer_buffer;
1: + dma_addr_t transfer_dma;
1: + struct scatterlist *sg;
1: + int num_mapped_sgs;
1: + int num_sgs;
1: + u32 transfer_buffer_length;
1: + u32 actual_length;
1: + unsigned char *setup_packet;
1: + dma_addr_t setup_dma;
1: + int start_frame;
1: + int number_of_packets;
1: + int interval;
1: + int error_count;
1: + void *context;
1: + usb_complete_t complete;
1: + struct usb_iso_packet_descriptor iso_frame_desc[0];
1: +};
1: +
1: +struct giveback_urb_bh {
1: + bool running;
1: + spinlock_t lock;
1: + struct list_head head;
1: + struct tasklet_struct bh;
1: + struct usb_host_endpoint *completing_ep;
1: +};
1: +
1: +enum usb_dev_authorize_policy {
1: + USB_DEVICE_AUTHORIZE_NONE = 0,
1: + USB_DEVICE_AUTHORIZE_ALL = 1,
1: + USB_DEVICE_AUTHORIZE_INTERNAL = 2,
1: +};
1: +
1: +struct usb_phy;
1: +
1: +struct usb_phy_roothub;
1: +
1: +struct dma_pool___2;
1: +
1: +struct gen_pool___2;
1: +
1: +struct hc_driver;
1: +
1: +struct usb_hcd {
1: + struct usb_bus self;
1: + struct kref kref;
1: + const char *product_desc;
1: + int speed;
1: + char irq_descr[24];
1: + struct timer_list rh_timer;
1: + struct urb *status_urb;
1: + struct work_struct wakeup_work;
1: + struct work_struct died_work;
1: + const struct hc_driver *driver;
1: + struct usb_phy *usb_phy;
1: + struct usb_phy_roothub *phy_roothub;
1: + long unsigned int flags;
1: + enum usb_dev_authorize_policy dev_policy;
1: + unsigned int rh_registered: 1;
1: + unsigned int rh_pollable: 1;
1: + unsigned int msix_enabled: 1;
1: + unsigned int msi_enabled: 1;
1: + unsigned int skip_phy_initialization: 1;
1: + unsigned int uses_new_polling: 1;
1: + unsigned int wireless: 1;
1: + unsigned int has_tt: 1;
1: + unsigned int amd_resume_bug: 1;
1: + unsigned int can_do_streams: 1;
1: + unsigned int tpl_support: 1;
1: + unsigned int cant_recv_wakeups: 1;
1: + unsigned int irq;
1: + void *regs;
1: + resource_size_t rsrc_start;
1: + resource_size_t rsrc_len;
1: + unsigned int power_budget;
1: + struct giveback_urb_bh high_prio_bh;
1: + struct giveback_urb_bh low_prio_bh;
1: + struct mutex *address0_mutex;
1: + struct mutex *bandwidth_mutex;
1: + struct usb_hcd *shared_hcd;
1: + struct usb_hcd *primary_hcd;
1: + struct dma_pool___2 *pool[4];
1: + int state;
1: + struct gen_pool___2 *localmem_pool;
1: + long unsigned int hcd_priv[0];
1: +};
1: +
1: +struct hc_driver {
1: + const char *description;
1: + const char *product_desc;
1: + size_t hcd_priv_size;
1: + irqreturn_t (*irq)(struct usb_hcd *);
1: + int flags;
1: + int (*reset)(struct usb_hcd *);
1: + int (*start)(struct usb_hcd *);
1: + int (*pci_suspend)(struct usb_hcd *, bool);
1: + int (*pci_resume)(struct usb_hcd *, bool);
1: + void (*stop)(struct usb_hcd *);
1: + void (*shutdown)(struct usb_hcd *);
1: + int (*get_frame_number)(struct usb_hcd *);
1: + int (*urb_enqueue)(struct usb_hcd *, struct urb *, gfp_t);
1: + int (*urb_dequeue)(struct usb_hcd *, struct urb *, int);
1: + int (*map_urb_for_dma)(struct usb_hcd *, struct urb *, gfp_t);
1: + void (*unmap_urb_for_dma)(struct usb_hcd *, struct urb *);
1: + void (*endpoint_disable)(struct usb_hcd *, struct usb_host_endpoint *);
1: + void (*endpoint_reset)(struct usb_hcd *, struct usb_host_endpoint *);
1: + int (*hub_status_data)(struct usb_hcd *, char *);
1: + int (*hub_control)(struct usb_hcd *, u16, u16, u16, char *, u16);
1: + int (*bus_suspend)(struct usb_hcd *);
1: + int (*bus_resume)(struct usb_hcd *);
1: + int (*start_port_reset)(struct usb_hcd *, unsigned int);
1: + long unsigned int (*get_resuming_ports)(struct usb_hcd *);
1: + void (*relinquish_port)(struct usb_hcd *, int);
1: + int (*port_handed_over)(struct usb_hcd *, int);
1: + void (*clear_tt_buffer_complete)(struct usb_hcd *, struct usb_host_endpoint *);
1: + int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
1: + void (*free_dev)(struct usb_hcd *, struct usb_device *);
1: + int (*alloc_streams)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint **, unsigned int, unsigned int, gfp_t);
1: + int (*free_streams)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint **, unsigned int, gfp_t);
1: + int (*add_endpoint)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint *);
1: + int (*drop_endpoint)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint *);
1: + int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
1: + void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
1: + int (*address_device)(struct usb_hcd *, struct usb_device *);
1: + int (*enable_device)(struct usb_hcd *, struct usb_device *);
1: + int (*update_hub_device)(struct usb_hcd *, struct usb_device *, struct usb_tt *, gfp_t);
1: + int (*reset_device)(struct usb_hcd *, struct usb_device *);
1: + int (*update_device)(struct usb_hcd *, struct usb_device *);
1: + int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
1: + int (*enable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *, enum usb3_link_state);
1: + int (*disable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *, enum usb3_link_state);
1: + int (*find_raw_port_number)(struct usb_hcd *, int);
1: + int (*port_power)(struct usb_hcd *, int, bool);
1: +};
1: +
1: +struct physdev_dbgp_op {
1: + uint8_t op;
1: + uint8_t bus;
1: + union {
1: + struct physdev_pci_device pci;
1: + } u;
1: +};
1: +
1: +struct dev_ext_attribute {
1: + struct device_attribute attr;
1: + void *var;
1: +};
1: +
1: +struct ioctl_evtchn_bind_virq {
1: + unsigned int virq;
1: +};
1: +
1: +struct ioctl_evtchn_bind_interdomain {
1: + unsigned int remote_domain;
1: + unsigned int remote_port;
1: +};
1: +
1: +struct ioctl_evtchn_bind_unbound_port {
1: + unsigned int remote_domain;
1: +};
1: +
1: +struct ioctl_evtchn_unbind {
1: + unsigned int port;
1: +};
1: +
1: +struct ioctl_evtchn_notify {
1: + unsigned int port;
1: +};
1: +
1: +struct ioctl_evtchn_restrict_domid {
1: + domid_t domid;
1: +};
1: +
1: +struct per_user_data {
1: + struct mutex bind_mutex;
1: + struct rb_root evtchns;
1: + unsigned int nr_evtchns;
1: + unsigned int ring_size;
1: + evtchn_port_t *ring;
1: + unsigned int ring_cons;
1: + unsigned int ring_prod;
1: + unsigned int ring_overflow;
1: + struct mutex ring_cons_mutex;
1: + spinlock_t ring_prod_lock;
1: + wait_queue_head_t evtchn_wait;
1: + struct fasync_struct *evtchn_async_queue;
1: + const char *name;
1: + domid_t restrict_domid;
1: +};
1: +
1: +struct user_evtchn {
1: + struct rb_node node;
1: + struct per_user_data *user;
1: + evtchn_port_t port;
1: + bool enabled;
1: +};
1: +
1: +typedef uint8_t xen_domain_handle_t[16];
1: +
1: +struct xen_compile_info {
1: + char compiler[64];
1: + char compile_by[16];
1: + char compile_domain[32];
1: + char compile_date[32];
1: +};
1: +
1: +struct xen_platform_parameters {
1: + xen_ulong_t virt_start;
1: +};
1: +
1: +struct xen_build_id {
1: + uint32_t len;
1: + unsigned char buf[0];
1: +};
1: +
1: +struct hyp_sysfs_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct hyp_sysfs_attr *, char *);
1: + ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
1: + void *hyp_attr_data;
1: +};
1: +
1: +enum xen_swiotlb_err {
1: + XEN_SWIOTLB_UNKNOWN = 0,
1: + XEN_SWIOTLB_ENOMEM = 1,
1: + XEN_SWIOTLB_EFIXUP = 2,
1: +};
1: +
1: +typedef void (*xen_gfn_fn_t)(long unsigned int, void *);
1: +
1: +struct xen_remap_gfn_info;
1: +
1: +struct remap_data {
1: + xen_pfn_t *fgfn;
1: + int nr_fgfn;
1: + pgprot_t prot;
1: + domid_t domid;
1: + struct vm_area_struct *vma;
1: + int index;
1: + struct page **pages;
1: + struct xen_remap_gfn_info *info;
1: + int *err_ptr;
1: + int mapped;
1: + int h_errs[1];
1: + xen_ulong_t h_idxs[1];
1: + xen_pfn_t h_gpfns[1];
1: + int h_iter;
1: +};
1: +
1: +struct map_balloon_pages {
1: + xen_pfn_t *pfns;
1: + unsigned int idx;
1: +};
1: +
1: +struct remap_pfn {
1: + struct mm_struct *mm;
1: + struct page **pages;
1: + pgprot_t prot;
1: + long unsigned int i;
1: +};
1: +
1: +struct fastopen_queue {
1: + struct request_sock *rskq_rst_head;
1: + struct request_sock *rskq_rst_tail;
1: + spinlock_t lock;
1: + int qlen;
1: + int max_qlen;
1: + struct tcp_fastopen_context *ctx;
1: +};
1: +
1: +struct request_sock_queue {
1: + spinlock_t rskq_lock;
1: + u8 rskq_defer_accept;
1: + u32 synflood_warned;
1: + atomic_t qlen;
1: + atomic_t young;
1: + struct request_sock *rskq_accept_head;
1: + struct request_sock *rskq_accept_tail;
1: + struct fastopen_queue fastopenq;
1: +};
1: +
1: +struct inet_connection_sock_af_ops {
1: + int (*queue_xmit)(struct sock *, struct sk_buff *, struct flowi *);
1: + void (*send_check)(struct sock *, struct sk_buff *);
1: + int (*rebuild_header)(struct sock *);
1: + void (*sk_rx_dst_set)(struct sock *, const struct sk_buff *);
1: + int (*conn_request)(struct sock *, struct sk_buff *);
1: + struct sock * (*syn_recv_sock)(const struct sock *, struct sk_buff *, struct request_sock *, struct dst_entry *, struct request_sock *, bool *);
1: + u16 net_header_len;
1: + u16 net_frag_header_len;
1: + u16 sockaddr_len;
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*addr2sockaddr)(struct sock *, struct sockaddr *);
1: + void (*mtu_reduced)(struct sock *);
1: +};
1: +
1: +struct inet_bind_bucket;
1: +
1: +struct tcp_ulp_ops;
1: +
1: +struct inet_connection_sock {
1: + struct inet_sock icsk_inet;
1: + struct request_sock_queue icsk_accept_queue;
1: + struct inet_bind_bucket *icsk_bind_hash;
1: + long unsigned int icsk_timeout;
1: + struct timer_list icsk_retransmit_timer;
1: + struct timer_list icsk_delack_timer;
1: + __u32 icsk_rto;
1: + __u32 icsk_rto_min;
1: + __u32 icsk_delack_max;
1: + __u32 icsk_pmtu_cookie;
1: + const struct tcp_congestion_ops *icsk_ca_ops;
1: + const struct inet_connection_sock_af_ops *icsk_af_ops;
1: + const struct tcp_ulp_ops *icsk_ulp_ops;
1: + void *icsk_ulp_data;
1: + void (*icsk_clean_acked)(struct sock *, u32);
1: + struct hlist_node icsk_listen_portaddr_node;
1: + unsigned int (*icsk_sync_mss)(struct sock *, u32);
1: + __u8 icsk_ca_state: 5;
1: + __u8 icsk_ca_initialized: 1;
1: + __u8 icsk_ca_setsockopt: 1;
1: + __u8 icsk_ca_dst_locked: 1;
1: + __u8 icsk_retransmits;
1: + __u8 icsk_pending;
1: + __u8 icsk_backoff;
1: + __u8 icsk_syn_retries;
1: + __u8 icsk_probes_out;
1: + __u16 icsk_ext_hdr_len;
1: + struct {
1: + __u8 pending;
1: + __u8 quick;
1: + __u8 pingpong;
1: + __u8 retry;
1: + __u32 ato;
1: + long unsigned int timeout;
1: + __u32 lrcvtime;
1: + __u16 last_seg_size;
1: + __u16 rcv_mss;
1: + } icsk_ack;
1: + struct {
1: + int enabled;
1: + int search_high;
1: + int search_low;
1: + int probe_size;
1: + u32 probe_timestamp;
1: + } icsk_mtup;
1: + u32 icsk_probes_tstamp;
1: + u32 icsk_user_timeout;
1: + u64 icsk_ca_priv[13];
1: +};
1: +
1: +struct tcp_ulp_ops {
1: + struct list_head list;
1: + int (*init)(struct sock *);
1: + void (*update)(struct sock *, struct proto *, void (*)(struct sock *));
1: + void (*release)(struct sock *);
1: + int (*get_info)(const struct sock *, struct sk_buff *);
1: + size_t (*get_info_size)(const struct sock *);
1: + void (*clone)(const struct request_sock *, struct sock *, const gfp_t);
1: + char name[16];
1: + struct module *owner;
1: +};
1: +
1: +typedef unsigned int RING_IDX;
1: +
1: +struct pvcalls_data_intf {
1: + RING_IDX in_cons;
1: + RING_IDX in_prod;
1: + RING_IDX in_error;
1: + uint8_t pad1[52];
1: + RING_IDX out_cons;
1: + RING_IDX out_prod;
1: + RING_IDX out_error;
1: + uint8_t pad2[52];
1: + RING_IDX ring_order;
1: + grant_ref_t ref[0];
1: +};
1: +
1: +struct pvcalls_data {
1: + unsigned char *in;
1: + unsigned char *out;
1: +};
1: +
1: +struct xen_pvcalls_socket {
1: + uint64_t id;
1: + uint32_t domain;
1: + uint32_t type;
1: + uint32_t protocol;
1: +};
1: +
1: +struct xen_pvcalls_connect {
1: + uint64_t id;
1: + uint8_t addr[28];
1: + uint32_t len;
1: + uint32_t flags;
1: + grant_ref_t ref;
1: + uint32_t evtchn;
1: +};
1: +
1: +struct xen_pvcalls_release {
1: + uint64_t id;
1: + uint8_t reuse;
1: +};
1: +
1: +struct xen_pvcalls_bind {
1: + uint64_t id;
1: + uint8_t addr[28];
1: + uint32_t len;
1: +};
1: +
1: +struct xen_pvcalls_listen {
1: + uint64_t id;
1: + uint32_t backlog;
1: +};
1: +
1: +struct xen_pvcalls_accept {
1: + uint64_t id;
1: + uint64_t id_new;
1: + grant_ref_t ref;
1: + uint32_t evtchn;
1: +};
1: +
1: +struct xen_pvcalls_poll {
1: + uint64_t id;
1: +};
1: +
1: +struct xen_pvcalls_dummy {
1: + uint8_t dummy[56];
1: +};
1: +
1: +struct xen_pvcalls_request {
1: + uint32_t req_id;
1: + uint32_t cmd;
1: + union {
1: + struct xen_pvcalls_socket socket;
1: + struct xen_pvcalls_connect connect;
1: + struct xen_pvcalls_release release;
1: + struct xen_pvcalls_bind bind;
1: + struct xen_pvcalls_listen listen;
1: + struct xen_pvcalls_accept accept;
1: + struct xen_pvcalls_poll poll;
1: + struct xen_pvcalls_dummy dummy;
1: + } u;
1: +};
1: +
1: +struct _xen_pvcalls_socket {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_connect {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_release {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_bind {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_listen {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_accept {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_poll {
1: + uint64_t id;
1: +};
1: +
1: +struct _xen_pvcalls_dummy {
1: + uint8_t dummy[8];
1: +};
1: +
1: +struct xen_pvcalls_response {
1: + uint32_t req_id;
1: + uint32_t cmd;
1: + int32_t ret;
1: + uint32_t pad;
1: + union {
1: + struct _xen_pvcalls_socket socket;
1: + struct _xen_pvcalls_connect connect;
1: + struct _xen_pvcalls_release release;
1: + struct _xen_pvcalls_bind bind;
1: + struct _xen_pvcalls_listen listen;
1: + struct _xen_pvcalls_accept accept;
1: + struct _xen_pvcalls_poll poll;
1: + struct _xen_pvcalls_dummy dummy;
1: + } u;
1: +};
1: +
1: +union xen_pvcalls_sring_entry {
1: + struct xen_pvcalls_request req;
1: + struct xen_pvcalls_response rsp;
1: +};
1: +
1: +struct xen_pvcalls_sring {
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_pvcalls_sring_entry ring[1];
1: +};
1: +
1: +struct xen_pvcalls_back_ring {
1: + RING_IDX rsp_prod_pvt;
1: + RING_IDX req_cons;
1: + unsigned int nr_ents;
1: + struct xen_pvcalls_sring *sring;
1: +};
1: +
1: +struct pvcalls_back_global {
1: + struct list_head frontends;
1: + struct semaphore frontends_lock;
1: +};
1: +
1: +struct pvcalls_fedata {
1: + struct list_head list;
1: + struct xenbus_device *dev;
1: + struct xen_pvcalls_sring *sring;
1: + struct xen_pvcalls_back_ring ring;
1: + int irq;
1: + struct list_head socket_mappings;
1: + struct xarray socketpass_mappings;
1: + struct semaphore socket_lock;
1: +};
1: +
1: +struct pvcalls_ioworker {
1: + struct work_struct register_work;
1: + struct workqueue_struct *wq;
1: +};
1: +
1: +struct sockpass_mapping;
1: +
1: +struct sock_mapping {
1: + struct list_head list;
1: + struct pvcalls_fedata *fedata;
1: + struct sockpass_mapping *sockpass;
1: + struct socket *sock;
1: + uint64_t id;
1: + grant_ref_t ref;
1: + struct pvcalls_data_intf *ring;
1: + void *bytes;
1: + struct pvcalls_data data;
1: + uint32_t ring_order;
1: + int irq;
1: + atomic_t read;
1: + atomic_t write;
1: + atomic_t io;
1: + atomic_t release;
1: + atomic_t eoi;
1: + void (*saved_data_ready)(struct sock *);
1: + struct pvcalls_ioworker ioworker;
1: +};
1: +
1: +struct sockpass_mapping {
1: + struct list_head list;
1: + struct pvcalls_fedata *fedata;
1: + struct socket *sock;
1: + uint64_t id;
1: + struct xen_pvcalls_request reqcopy;
1: + spinlock_t copy_lock;
1: + struct workqueue_struct *wq;
1: + struct work_struct register_work;
1: + void (*saved_data_ready)(struct sock *);
1: +};
1: +
1: +struct ww_class {
1: + atomic_long_t stamp;
1: + struct lock_class_key acquire_key;
1: + struct lock_class_key mutex_key;
1: + const char *acquire_name;
1: + const char *mutex_name;
1: + unsigned int is_wait_die;
1: +};
1: +
1: +enum regulator_type {
1: + REGULATOR_VOLTAGE = 0,
1: + REGULATOR_CURRENT = 1,
1: +};
1: +
1: +struct regulator_config;
1: +
1: +struct regulator_ops;
1: +
1: +struct regulator_desc {
1: + const char *name;
1: + const char *supply_name;
1: + const char *of_match;
1: + const char *regulators_node;
1: + int (*of_parse_cb)(struct device_node *, const struct regulator_desc *, struct regulator_config *);
1: + int id;
1: + unsigned int continuous_voltage_range: 1;
1: + unsigned int n_voltages;
1: + unsigned int n_current_limits;
1: + const struct regulator_ops *ops;
1: + int irq;
1: + enum regulator_type type;
1: + struct module *owner;
1: + unsigned int min_uV;
1: + unsigned int uV_step;
1: + unsigned int linear_min_sel;
1: + int fixed_uV;
1: + unsigned int ramp_delay;
1: + int min_dropout_uV;
1: + const struct linear_range *linear_ranges;
1: + const unsigned int *linear_range_selectors;
1: + int n_linear_ranges;
1: + const unsigned int *volt_table;
1: + const unsigned int *curr_table;
1: + unsigned int vsel_range_reg;
1: + unsigned int vsel_range_mask;
1: + unsigned int vsel_reg;
1: + unsigned int vsel_mask;
1: + unsigned int vsel_step;
1: + unsigned int csel_reg;
1: + unsigned int csel_mask;
1: + unsigned int apply_reg;
1: + unsigned int apply_bit;
1: + unsigned int enable_reg;
1: + unsigned int enable_mask;
1: + unsigned int enable_val;
1: + unsigned int disable_val;
1: + bool enable_is_inverted;
1: + unsigned int bypass_reg;
1: + unsigned int bypass_mask;
1: + unsigned int bypass_val_on;
1: + unsigned int bypass_val_off;
1: + unsigned int active_discharge_on;
1: + unsigned int active_discharge_off;
1: + unsigned int active_discharge_mask;
1: + unsigned int active_discharge_reg;
1: + unsigned int soft_start_reg;
1: + unsigned int soft_start_mask;
1: + unsigned int soft_start_val_on;
1: + unsigned int pull_down_reg;
1: + unsigned int pull_down_mask;
1: + unsigned int pull_down_val_on;
1: + unsigned int enable_time;
1: + unsigned int off_on_delay;
1: + unsigned int poll_enabled_time;
1: + unsigned int (*of_map_mode)(unsigned int);
1: +};
1: +
1: +struct pre_voltage_change_data {
1: + long unsigned int old_uV;
1: + long unsigned int min_uV;
1: + long unsigned int max_uV;
1: +};
1: +
1: +struct regulator_voltage {
1: + int min_uV;
1: + int max_uV;
1: +};
1: +
1: +struct regulator_dev;
1: +
1: +struct regulator {
1: + struct device *dev;
1: + struct list_head list;
1: + unsigned int always_on: 1;
1: + unsigned int bypass: 1;
1: + unsigned int device_link: 1;
1: + int uA_load;
1: + unsigned int enable_count;
1: + unsigned int deferred_disables;
1: + struct regulator_voltage voltage[5];
1: + const char *supply_name;
1: + struct device_attribute dev_attr;
1: + struct regulator_dev *rdev;
1: + struct dentry *debugfs;
1: +};
1: +
1: +struct regulator_coupler {
1: + struct list_head list;
1: + int (*attach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: + int (*detach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: + int (*balance_voltage)(struct regulator_coupler *, struct regulator_dev *, suspend_state_t);
1: +};
1: +
1: +struct coupling_desc {
1: + struct regulator_dev **coupled_rdevs;
1: + struct regulator_coupler *coupler;
1: + int n_resolved;
1: + int n_coupled;
1: +};
1: +
1: +struct regulator_enable_gpio;
1: +
1: +struct regulator_dev {
1: + const struct regulator_desc *desc;
1: + int exclusive;
1: + u32 use_count;
1: + u32 open_count;
1: + u32 bypass_count;
1: + struct list_head list;
1: + struct list_head consumer_list;
1: + struct coupling_desc coupling_desc;
1: + struct blocking_notifier_head notifier;
1: + struct ww_mutex mutex;
1: + struct task_struct *mutex_owner;
1: + int ref_cnt;
1: + struct module *owner;
1: + struct device dev;
1: + struct regulation_constraints *constraints;
1: + struct regulator *supply;
1: + const char *supply_name;
1: + struct regmap *regmap;
1: + struct delayed_work disable_work;
1: + void *reg_data;
1: + struct dentry *debugfs;
1: + struct regulator_enable_gpio *ena_pin;
1: + unsigned int ena_gpio_state: 1;
1: + unsigned int is_switch: 1;
1: + long unsigned int last_off_jiffy;
1: +};
1: +
1: +enum regulator_status {
1: + REGULATOR_STATUS_OFF = 0,
1: + REGULATOR_STATUS_ON = 1,
1: + REGULATOR_STATUS_ERROR = 2,
1: + REGULATOR_STATUS_FAST = 3,
1: + REGULATOR_STATUS_NORMAL = 4,
1: + REGULATOR_STATUS_IDLE = 5,
1: + REGULATOR_STATUS_STANDBY = 6,
1: + REGULATOR_STATUS_BYPASS = 7,
1: + REGULATOR_STATUS_UNDEFINED = 8,
1: +};
1: +
1: +struct regulator_ops {
1: + int (*list_voltage)(struct regulator_dev *, unsigned int);
1: + int (*set_voltage)(struct regulator_dev *, int, int, unsigned int *);
1: + int (*map_voltage)(struct regulator_dev *, int, int);
1: + int (*set_voltage_sel)(struct regulator_dev *, unsigned int);
1: + int (*get_voltage)(struct regulator_dev *);
1: + int (*get_voltage_sel)(struct regulator_dev *);
1: + int (*set_current_limit)(struct regulator_dev *, int, int);
1: + int (*get_current_limit)(struct regulator_dev *);
1: + int (*set_input_current_limit)(struct regulator_dev *, int);
1: + int (*set_over_current_protection)(struct regulator_dev *);
1: + int (*set_active_discharge)(struct regulator_dev *, bool);
1: + int (*enable)(struct regulator_dev *);
1: + int (*disable)(struct regulator_dev *);
1: + int (*is_enabled)(struct regulator_dev *);
1: + int (*set_mode)(struct regulator_dev *, unsigned int);
1: + unsigned int (*get_mode)(struct regulator_dev *);
1: + int (*get_error_flags)(struct regulator_dev *, unsigned int *);
1: + int (*enable_time)(struct regulator_dev *);
1: + int (*set_ramp_delay)(struct regulator_dev *, int);
1: + int (*set_voltage_time)(struct regulator_dev *, int, int);
1: + int (*set_voltage_time_sel)(struct regulator_dev *, unsigned int, unsigned int);
1: + int (*set_soft_start)(struct regulator_dev *);
1: + int (*get_status)(struct regulator_dev *);
1: + unsigned int (*get_optimum_mode)(struct regulator_dev *, int, int, int);
1: + int (*set_load)(struct regulator_dev *, int);
1: + int (*set_bypass)(struct regulator_dev *, bool);
1: + int (*get_bypass)(struct regulator_dev *, bool *);
1: + int (*set_suspend_voltage)(struct regulator_dev *, int);
1: + int (*set_suspend_enable)(struct regulator_dev *);
1: + int (*set_suspend_disable)(struct regulator_dev *);
1: + int (*set_suspend_mode)(struct regulator_dev *, unsigned int);
1: + int (*resume)(struct regulator_dev *);
1: + int (*set_pull_down)(struct regulator_dev *);
1: +};
1: +
1: +struct regulator_config {
1: + struct device *dev;
1: + const struct regulator_init_data *init_data;
1: + void *driver_data;
1: + struct device_node *of_node;
1: + struct regmap *regmap;
1: + struct gpio_desc *ena_gpiod;
1: +};
1: +
1: +struct regulator_enable_gpio {
1: + struct list_head list;
1: + struct gpio_desc *gpiod;
1: + u32 enable_count;
1: + u32 request_count;
1: +};
1: +
1: +enum regulator_active_discharge {
1: + REGULATOR_ACTIVE_DISCHARGE_DEFAULT = 0,
1: + REGULATOR_ACTIVE_DISCHARGE_DISABLE = 1,
1: + REGULATOR_ACTIVE_DISCHARGE_ENABLE = 2,
1: +};
1: +
1: +struct trace_event_raw_regulator_basic {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regulator_range {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int min;
1: + int max;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regulator_value {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int val;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_regulator_basic {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regulator_range {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regulator_value {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_regulator_enable)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_enable_delay)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_enable_complete)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_disable)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_disable_complete)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_bypass_enable)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_bypass_enable_complete)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_bypass_disable)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_bypass_disable_complete)(void *, const char *);
1: +
1: +typedef void (*btf_trace_regulator_set_voltage)(void *, const char *, int, int);
1: +
1: +typedef void (*btf_trace_regulator_set_voltage_complete)(void *, const char *, unsigned int);
1: +
1: +enum regulator_get_type {
1: + NORMAL_GET = 0,
1: + EXCLUSIVE_GET = 1,
1: + OPTIONAL_GET = 2,
1: + MAX_GET_TYPE = 3,
1: +};
1: +
1: +struct regulator_map {
1: + struct list_head list;
1: + const char *dev_name;
1: + const char *supply;
1: + struct regulator_dev *regulator;
1: +};
1: +
1: +struct regulator_supply_alias {
1: + struct list_head list;
1: + struct device *src_dev;
1: + const char *src_supply;
1: + struct device *alias_dev;
1: + const char *alias_supply;
1: +};
1: +
1: +struct summary_data {
1: + struct seq_file *s;
1: + struct regulator_dev *parent;
1: + int level;
1: +};
1: +
1: +struct summary_lock_data {
1: + struct ww_acquire_ctx *ww_ctx;
1: + struct regulator_dev **new_contended_rdev;
1: + struct regulator_dev **old_contended_rdev;
1: +};
1: +
1: +struct fixed_voltage_config {
1: + const char *supply_name;
1: + const char *input_supply;
1: + int microvolts;
1: + unsigned int startup_delay;
1: + unsigned int off_on_delay;
1: + unsigned int enabled_at_boot: 1;
1: + struct regulator_init_data *init_data;
1: +};
1: +
1: +struct fixed_regulator_data {
1: + struct fixed_voltage_config cfg;
1: + struct regulator_init_data init_data;
1: + struct platform_device pdev;
1: +};
1: +
1: +struct regulator_bulk_devres {
1: + struct regulator_bulk_data *consumers;
1: + int num_consumers;
1: +};
1: +
1: +struct regulator_supply_alias_match {
1: + struct device *dev;
1: + const char *id;
1: +};
1: +
1: +struct regulator_notifier_match {
1: + struct regulator *regulator;
1: + struct notifier_block *nb;
1: +};
1: +
1: +struct of_regulator_match {
1: + const char *name;
1: + void *driver_data;
1: + struct regulator_init_data *init_data;
1: + struct device_node *of_node;
1: + const struct regulator_desc *desc;
1: +};
1: +
1: +struct devm_of_regulator_matches {
1: + struct of_regulator_match *matches;
1: + unsigned int num_matches;
1: +};
1: +
1: +struct fixed_voltage_data {
1: + struct regulator_desc desc;
1: + struct regulator_dev *dev;
1: + struct clk *enable_clock;
1: + unsigned int clk_enable_counter;
1: +};
1: +
1: +struct fixed_dev_type {
1: + bool has_enable_clock;
1: +};
1: +
1: +struct gpio_regulator_state {
1: + int value;
1: + int gpios;
1: +};
1: +
1: +struct gpio_regulator_config {
1: + const char *supply_name;
1: + unsigned int enabled_at_boot: 1;
1: + unsigned int startup_delay;
1: + enum gpiod_flags *gflags;
1: + int ngpios;
1: + struct gpio_regulator_state *states;
1: + int nr_states;
1: + enum regulator_type type;
1: + struct regulator_init_data *init_data;
1: +};
1: +
1: +struct gpio_regulator_data {
1: + struct regulator_desc desc;
1: + struct gpio_desc **gpiods;
1: + int nr_gpios;
1: + struct gpio_regulator_state *states;
1: + int nr_states;
1: + int state;
1: +};
1: +
1: +struct reset_control_lookup {
1: + struct list_head list;
1: + const char *provider;
1: + unsigned int index;
1: + const char *dev_id;
1: + const char *con_id;
1: +};
1: +
1: +struct reset_control___2 {
1: + struct reset_controller_dev *rcdev;
1: + struct list_head list;
1: + unsigned int id;
1: + struct kref refcnt;
1: + bool acquired;
1: + bool shared;
1: + bool array;
1: + atomic_t deassert_count;
1: + atomic_t triggered_count;
1: +};
1: +
1: +struct reset_control_array {
1: + struct reset_control___2 base;
1: + unsigned int num_rstcs;
1: + struct reset_control___2 *rstc[0];
1: +};
1: +
1: +enum hi6220_reset_ctrl_type {
1: + PERIPHERAL = 0,
1: + MEDIA = 1,
1: + AO = 2,
1: +};
1: +
1: +struct hi6220_reset_data {
1: + struct reset_controller_dev rc_dev;
1: + struct regmap *regmap;
1: +};
1: +
1: +struct hi3660_reset_controller {
1: + struct reset_controller_dev rst;
1: + struct regmap *map;
1: +};
1: +
1: +enum mrq_reset_commands {
1: + CMD_RESET_ASSERT = 1,
1: + CMD_RESET_DEASSERT = 2,
1: + CMD_RESET_MODULE = 3,
1: + CMD_RESET_GET_MAX_ID = 4,
1: + CMD_RESET_MAX = 5,
1: +};
1: +
1: +struct mrq_reset_request {
1: + uint32_t cmd;
1: + uint32_t reset_id;
1: +};
1: +
1: +struct meson_reset_param {
1: + int reg_count;
1: + int level_offset;
1: +};
1: +
1: +struct meson_reset {
1: + void *reg_base;
1: + const struct meson_reset_param *param;
1: + struct reset_controller_dev rcdev;
1: + spinlock_t lock;
1: +};
1: +
1: +struct reset_simple_devdata {
1: + u32 reg_offset;
1: + u32 nr_resets;
1: + bool active_low;
1: + bool status_active_low;
1: +};
1: +
1: +struct serial_struct32 {
1: + compat_int_t type;
1: + compat_int_t line;
1: + compat_uint_t port;
1: + compat_int_t irq;
1: + compat_int_t flags;
1: + compat_int_t xmit_fifo_size;
1: + compat_int_t custom_divisor;
1: + compat_int_t baud_base;
1: + short unsigned int close_delay;
1: + char io_type;
1: + char reserved_char;
1: + compat_int_t hub6;
1: + short unsigned int closing_wait;
1: + short unsigned int closing_wait2;
1: + compat_uint_t iomem_base;
1: + short unsigned int iomem_reg_shift;
1: + unsigned int port_high;
1: + compat_int_t reserved;
1: +};
1: +
1: +struct n_tty_data {
1: + size_t read_head;
1: + size_t commit_head;
1: + size_t canon_head;
1: + size_t echo_head;
1: + size_t echo_commit;
1: + size_t echo_mark;
1: + long unsigned int char_map[4];
1: + long unsigned int overrun_time;
1: + int num_overrun;
1: + bool no_room;
1: + unsigned char lnext: 1;
1: + unsigned char erasing: 1;
1: + unsigned char raw: 1;
1: + unsigned char real_raw: 1;
1: + unsigned char icanon: 1;
1: + unsigned char push: 1;
1: + char read_buf[4096];
1: + long unsigned int read_flags[64];
1: + unsigned char echo_buf[4096];
1: + size_t read_tail;
1: + size_t line_start;
1: + unsigned int column;
1: + unsigned int canon_column;
1: + size_t echo_tail;
1: + struct mutex atomic_read_lock;
1: + struct mutex output_lock;
1: +};
1: +
1: +enum {
1: + ERASE = 0,
1: + WERASE = 1,
1: + KILL = 2,
1: +};
1: +
1: +struct termios {
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: +};
1: +
1: +struct termios2 {
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: + speed_t c_ispeed;
1: + speed_t c_ospeed;
1: +};
1: +
1: +struct termio {
1: + short unsigned int c_iflag;
1: + short unsigned int c_oflag;
1: + short unsigned int c_cflag;
1: + short unsigned int c_lflag;
1: + unsigned char c_line;
1: + unsigned char c_cc[8];
1: +};
1: +
1: +struct ldsem_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: +};
1: +
1: +struct pts_fs_info___2;
1: +
1: +struct tty_audit_buf {
1: + struct mutex mutex;
1: + dev_t dev;
1: + unsigned int icanon: 1;
1: + size_t valid;
1: + unsigned char *data;
1: +};
1: +
1: +struct input_id {
1: + __u16 bustype;
1: + __u16 vendor;
1: + __u16 product;
1: + __u16 version;
1: +};
1: +
1: +struct input_absinfo {
1: + __s32 value;
1: + __s32 minimum;
1: + __s32 maximum;
1: + __s32 fuzz;
1: + __s32 flat;
1: + __s32 resolution;
1: +};
1: +
1: +struct input_keymap_entry {
1: + __u8 flags;
1: + __u8 len;
1: + __u16 index;
1: + __u32 keycode;
1: + __u8 scancode[32];
1: +};
1: +
1: +struct ff_replay {
1: + __u16 length;
1: + __u16 delay;
1: +};
1: +
1: +struct ff_trigger {
1: + __u16 button;
1: + __u16 interval;
1: +};
1: +
1: +struct ff_envelope {
1: + __u16 attack_length;
1: + __u16 attack_level;
1: + __u16 fade_length;
1: + __u16 fade_level;
1: +};
1: +
1: +struct ff_constant_effect {
1: + __s16 level;
1: + struct ff_envelope envelope;
1: +};
1: +
1: +struct ff_ramp_effect {
1: + __s16 start_level;
1: + __s16 end_level;
1: + struct ff_envelope envelope;
1: +};
1: +
1: +struct ff_condition_effect {
1: + __u16 right_saturation;
1: + __u16 left_saturation;
1: + __s16 right_coeff;
1: + __s16 left_coeff;
1: + __u16 deadband;
1: + __s16 center;
1: +};
1: +
1: +struct ff_periodic_effect {
1: + __u16 waveform;
1: + __u16 period;
1: + __s16 magnitude;
1: + __s16 offset;
1: + __u16 phase;
1: + struct ff_envelope envelope;
1: + __u32 custom_len;
1: + __s16 *custom_data;
1: +};
1: +
1: +struct ff_rumble_effect {
1: + __u16 strong_magnitude;
1: + __u16 weak_magnitude;
1: +};
1: +
1: +struct ff_effect {
1: + __u16 type;
1: + __s16 id;
1: + __u16 direction;
1: + struct ff_trigger trigger;
1: + struct ff_replay replay;
1: + union {
1: + struct ff_constant_effect constant;
1: + struct ff_ramp_effect ramp;
1: + struct ff_periodic_effect periodic;
1: + struct ff_condition_effect condition[2];
1: + struct ff_rumble_effect rumble;
1: + } u;
1: +};
1: +
1: +struct input_device_id {
1: + kernel_ulong_t flags;
1: + __u16 bustype;
1: + __u16 vendor;
1: + __u16 product;
1: + __u16 version;
1: + kernel_ulong_t evbit[1];
1: + kernel_ulong_t keybit[12];
1: + kernel_ulong_t relbit[1];
1: + kernel_ulong_t absbit[1];
1: + kernel_ulong_t mscbit[1];
1: + kernel_ulong_t ledbit[1];
1: + kernel_ulong_t sndbit[1];
1: + kernel_ulong_t ffbit[2];
1: + kernel_ulong_t swbit[1];
1: + kernel_ulong_t propbit[1];
1: + kernel_ulong_t driver_info;
1: +};
1: +
1: +struct input_value {
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: +};
1: +
1: +enum input_clock_type {
1: + INPUT_CLK_REAL = 0,
1: + INPUT_CLK_MONO = 1,
1: + INPUT_CLK_BOOT = 2,
1: + INPUT_CLK_MAX = 3,
1: +};
1: +
1: +struct ff_device;
1: +
1: +struct input_dev_poller;
1: +
1: +struct input_mt;
1: +
1: +struct input_handle;
1: +
1: +struct input_dev {
1: + const char *name;
1: + const char *phys;
1: + const char *uniq;
1: + struct input_id id;
1: + long unsigned int propbit[1];
1: + long unsigned int evbit[1];
1: + long unsigned int keybit[12];
1: + long unsigned int relbit[1];
1: + long unsigned int absbit[1];
1: + long unsigned int mscbit[1];
1: + long unsigned int ledbit[1];
1: + long unsigned int sndbit[1];
1: + long unsigned int ffbit[2];
1: + long unsigned int swbit[1];
1: + unsigned int hint_events_per_packet;
1: + unsigned int keycodemax;
1: + unsigned int keycodesize;
1: + void *keycode;
1: + int (*setkeycode)(struct input_dev *, const struct input_keymap_entry *, unsigned int *);
1: + int (*getkeycode)(struct input_dev *, struct input_keymap_entry *);
1: + struct ff_device *ff;
1: + struct input_dev_poller *poller;
1: + unsigned int repeat_key;
1: + struct timer_list timer;
1: + int rep[2];
1: + struct input_mt *mt;
1: + struct input_absinfo *absinfo;
1: + long unsigned int key[12];
1: + long unsigned int led[1];
1: + long unsigned int snd[1];
1: + long unsigned int sw[1];
1: + int (*open)(struct input_dev *);
1: + void (*close)(struct input_dev *);
1: + int (*flush)(struct input_dev *, struct file *);
1: + int (*event)(struct input_dev *, unsigned int, unsigned int, int);
1: + struct input_handle *grab;
1: + spinlock_t event_lock;
1: + struct mutex mutex;
1: + unsigned int users;
1: + bool going_away;
1: + struct device dev;
1: + struct list_head h_list;
1: + struct list_head node;
1: + unsigned int num_vals;
1: + unsigned int max_vals;
1: + struct input_value *vals;
1: + bool devres_managed;
1: + ktime_t timestamp[3];
1: +};
1: +
1: +struct ff_device {
1: + int (*upload)(struct input_dev *, struct ff_effect *, struct ff_effect *);
1: + int (*erase)(struct input_dev *, int);
1: + int (*playback)(struct input_dev *, int, int);
1: + void (*set_gain)(struct input_dev *, u16);
1: + void (*set_autocenter)(struct input_dev *, u16);
1: + void (*destroy)(struct ff_device *);
1: + void *private;
1: + long unsigned int ffbit[2];
1: + struct mutex mutex;
1: + int max_effects;
1: + struct ff_effect *effects;
1: + struct file *effect_owners[0];
1: +};
1: +
1: +struct input_handler;
1: +
1: +struct input_handle {
1: + void *private;
1: + int open;
1: + const char *name;
1: + struct input_dev *dev;
1: + struct input_handler *handler;
1: + struct list_head d_node;
1: + struct list_head h_node;
1: +};
1: +
1: +struct input_handler {
1: + void *private;
1: + void (*event)(struct input_handle *, unsigned int, unsigned int, int);
1: + void (*events)(struct input_handle *, const struct input_value *, unsigned int);
1: + bool (*filter)(struct input_handle *, unsigned int, unsigned int, int);
1: + bool (*match)(struct input_handler *, struct input_dev *);
1: + int (*connect)(struct input_handler *, struct input_dev *, const struct input_device_id *);
1: + void (*disconnect)(struct input_handle *);
1: + void (*start)(struct input_handle *);
1: + bool legacy_minors;
1: + int minor;
1: + const char *name;
1: + const struct input_device_id *id_table;
1: + struct list_head h_list;
1: + struct list_head node;
1: +};
1: +
1: +struct sysrq_state {
1: + struct input_handle handle;
1: + struct work_struct reinject_work;
1: + long unsigned int key_down[12];
1: + unsigned int alt;
1: + unsigned int alt_use;
1: + unsigned int shift;
1: + unsigned int shift_use;
1: + bool active;
1: + bool need_reinject;
1: + bool reinjecting;
1: + bool reset_canceled;
1: + bool reset_requested;
1: + long unsigned int reset_keybit[12];
1: + int reset_seq_len;
1: + int reset_seq_cnt;
1: + int reset_seq_version;
1: + struct timer_list keyreset_timer;
1: +};
1: +
1: +struct consolefontdesc {
1: + short unsigned int charcount;
1: + short unsigned int charheight;
1: + char *chardata;
1: +};
1: +
1: +struct unipair {
1: + short unsigned int unicode;
1: + short unsigned int fontpos;
1: +};
1: +
1: +struct unimapdesc {
1: + short unsigned int entry_ct;
1: + struct unipair *entries;
1: +};
1: +
1: +struct kbd_repeat {
1: + int delay;
1: + int period;
1: +};
1: +
1: +struct console_font_op {
1: + unsigned int op;
1: + unsigned int flags;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int charcount;
1: + unsigned char *data;
1: +};
1: +
1: +struct vt_stat {
1: + short unsigned int v_active;
1: + short unsigned int v_signal;
1: + short unsigned int v_state;
1: +};
1: +
1: +struct vt_sizes {
1: + short unsigned int v_rows;
1: + short unsigned int v_cols;
1: + short unsigned int v_scrollsize;
1: +};
1: +
1: +struct vt_consize {
1: + short unsigned int v_rows;
1: + short unsigned int v_cols;
1: + short unsigned int v_vlin;
1: + short unsigned int v_clin;
1: + short unsigned int v_vcol;
1: + short unsigned int v_ccol;
1: +};
1: +
1: +struct vt_event {
1: + unsigned int event;
1: + unsigned int oldev;
1: + unsigned int newev;
1: + unsigned int pad[4];
1: +};
1: +
1: +struct vt_setactivate {
1: + unsigned int console;
1: + struct vt_mode mode;
1: +};
1: +
1: +struct vt_spawn_console {
1: + spinlock_t lock;
1: + struct pid *pid;
1: + int sig;
1: +};
1: +
1: +struct vt_event_wait {
1: + struct list_head list;
1: + struct vt_event event;
1: + int done;
1: +};
1: +
1: +struct compat_consolefontdesc {
1: + short unsigned int charcount;
1: + short unsigned int charheight;
1: + compat_caddr_t chardata;
1: +};
1: +
1: +struct compat_console_font_op {
1: + compat_uint_t op;
1: + compat_uint_t flags;
1: + compat_uint_t width;
1: + compat_uint_t height;
1: + compat_uint_t charcount;
1: + compat_caddr_t data;
1: +};
1: +
1: +struct compat_unimapdesc {
1: + short unsigned int entry_ct;
1: + compat_caddr_t entries;
1: +};
1: +
1: +struct vt_notifier_param {
1: + struct vc_data *vc;
1: + unsigned int c;
1: +};
1: +
1: +struct vcs_poll_data {
1: + struct notifier_block notifier;
1: + unsigned int cons_num;
1: + int event;
1: + wait_queue_head_t waitq;
1: + struct fasync_struct *fasync;
1: +};
1: +
1: +struct tiocl_selection {
1: + short unsigned int xs;
1: + short unsigned int ys;
1: + short unsigned int xe;
1: + short unsigned int ye;
1: + short unsigned int sel_mode;
1: +};
1: +
1: +struct vc_selection {
1: + struct mutex lock;
1: + struct vc_data *cons;
1: + char *buffer;
1: + unsigned int buf_len;
1: + volatile int start;
1: + int end;
1: +};
1: +
1: +enum led_brightness {
1: + LED_OFF = 0,
1: + LED_ON = 1,
1: + LED_HALF = 127,
1: + LED_FULL = 255,
1: +};
1: +
1: +struct led_hw_trigger_type {
1: + int dummy;
1: +};
1: +
1: +struct led_pattern;
1: +
1: +struct led_trigger;
1: +
1: +struct led_classdev {
1: + const char *name;
1: + enum led_brightness brightness;
1: + enum led_brightness max_brightness;
1: + int flags;
1: + long unsigned int work_flags;
1: + void (*brightness_set)(struct led_classdev *, enum led_brightness);
1: + int (*brightness_set_blocking)(struct led_classdev *, enum led_brightness);
1: + enum led_brightness (*brightness_get)(struct led_classdev *);
1: + int (*blink_set)(struct led_classdev *, long unsigned int *, long unsigned int *);
1: + int (*pattern_set)(struct led_classdev *, struct led_pattern *, u32, int);
1: + int (*pattern_clear)(struct led_classdev *);
1: + struct device *dev;
1: + const struct attribute_group **groups;
1: + struct list_head node;
1: + const char *default_trigger;
1: + long unsigned int blink_delay_on;
1: + long unsigned int blink_delay_off;
1: + struct timer_list blink_timer;
1: + int blink_brightness;
1: + int new_blink_brightness;
1: + void (*flash_resume)(struct led_classdev *);
1: + struct work_struct set_brightness_work;
1: + int delayed_set_value;
1: + struct rw_semaphore trigger_lock;
1: + struct led_trigger *trigger;
1: + struct list_head trig_list;
1: + void *trigger_data;
1: + bool activated;
1: + struct led_hw_trigger_type *trigger_type;
1: + struct mutex led_access;
1: +};
1: +
1: +struct led_pattern {
1: + u32 delta_t;
1: + int brightness;
1: +};
1: +
1: +struct led_trigger {
1: + const char *name;
1: + int (*activate)(struct led_classdev *);
1: + void (*deactivate)(struct led_classdev *);
1: + struct led_hw_trigger_type *trigger_type;
1: + rwlock_t leddev_list_lock;
1: + struct list_head led_cdevs;
1: + struct list_head next_trig;
1: + const struct attribute_group **groups;
1: +};
1: +
1: +struct keyboard_notifier_param {
1: + struct vc_data *vc;
1: + int down;
1: + int shift;
1: + int ledstate;
1: + unsigned int value;
1: +};
1: +
1: +struct kbd_struct {
1: + unsigned char lockstate;
1: + unsigned char slockstate;
1: + unsigned char ledmode: 1;
1: + unsigned char ledflagstate: 4;
1: + char: 3;
1: + unsigned char default_ledflagstate: 4;
1: + unsigned char kbdmode: 3;
1: + char: 1;
1: + unsigned char modeflags: 5;
1: +};
1: +
1: +struct kbentry {
1: + unsigned char kb_table;
1: + unsigned char kb_index;
1: + short unsigned int kb_value;
1: +};
1: +
1: +struct kbsentry {
1: + unsigned char kb_func;
1: + unsigned char kb_string[512];
1: +};
1: +
1: +struct kbdiacr {
1: + unsigned char diacr;
1: + unsigned char base;
1: + unsigned char result;
1: +};
1: +
1: +struct kbdiacrs {
1: + unsigned int kb_cnt;
1: + struct kbdiacr kbdiacr[256];
1: +};
1: +
1: +struct kbdiacruc {
1: + unsigned int diacr;
1: + unsigned int base;
1: + unsigned int result;
1: +};
1: +
1: +struct kbdiacrsuc {
1: + unsigned int kb_cnt;
1: + struct kbdiacruc kbdiacruc[256];
1: +};
1: +
1: +struct kbkeycode {
1: + unsigned int scancode;
1: + unsigned int keycode;
1: +};
1: +
1: +typedef void k_handler_fn(struct vc_data *, unsigned char, char);
1: +
1: +typedef void fn_handler_fn(struct vc_data *);
1: +
1: +struct getset_keycode_data {
1: + struct input_keymap_entry ke;
1: + int error;
1: +};
1: +
1: +struct kbd_led_trigger {
1: + struct led_trigger trigger;
1: + unsigned int mask;
1: +};
1: +
1: +struct uni_pagedir {
1: + u16 **uni_pgdir[32];
1: + long unsigned int refcount;
1: + long unsigned int sum;
1: + unsigned char *inverse_translations[4];
1: + u16 *inverse_trans_unicode;
1: +};
1: +
1: +typedef uint32_t char32_t;
1: +
1: +struct uni_screen {
1: + char32_t *lines[0];
1: +};
1: +
1: +struct con_driver {
1: + const struct consw *con;
1: + const char *desc;
1: + struct device *dev;
1: + int node;
1: + int first;
1: + int last;
1: + int flag;
1: +};
1: +
1: +enum {
1: + blank_off = 0,
1: + blank_normal_wait = 1,
1: + blank_vesa_wait = 2,
1: +};
1: +
1: +enum {
1: + EPecma = 0,
1: + EPdec = 1,
1: + EPeq = 2,
1: + EPgt = 3,
1: + EPlt = 4,
1: +};
1: +
1: +struct rgb {
1: + u8 r;
1: + u8 g;
1: + u8 b;
1: +};
1: +
1: +enum {
1: + ESnormal = 0,
1: + ESesc = 1,
1: + ESsquare = 2,
1: + ESgetpars = 3,
1: + ESfunckey = 4,
1: + EShash = 5,
1: + ESsetG0 = 6,
1: + ESsetG1 = 7,
1: + ESpercent = 8,
1: + EScsiignore = 9,
1: + ESnonstd = 10,
1: + ESpalette = 11,
1: + ESosc = 12,
1: +};
1: +
1: +struct interval {
1: + uint32_t first;
1: + uint32_t last;
1: +};
1: +
1: +struct vc_draw_region {
1: + long unsigned int from;
1: + long unsigned int to;
1: + int x;
1: +};
1: +
1: +struct hv_ops;
1: +
1: +struct hvc_struct {
1: + struct tty_port port;
1: + spinlock_t lock;
1: + int index;
1: + int do_wakeup;
1: + char *outbuf;
1: + int outbuf_size;
1: + int n_outbuf;
1: + uint32_t vtermno;
1: + const struct hv_ops *ops;
1: + int irq_requested;
1: + int data;
1: + struct winsize ws;
1: + struct work_struct tty_resize;
1: + struct list_head next;
1: + long unsigned int flags;
1: +};
1: +
1: +struct hv_ops {
1: + int (*get_chars)(uint32_t, char *, int);
1: + int (*put_chars)(uint32_t, const char *, int);
1: + int (*flush)(uint32_t, bool);
1: + int (*notifier_add)(struct hvc_struct *, int);
1: + void (*notifier_del)(struct hvc_struct *, int);
1: + void (*notifier_hangup)(struct hvc_struct *, int);
1: + int (*tiocmget)(struct hvc_struct *);
1: + int (*tiocmset)(struct hvc_struct *, unsigned int, unsigned int);
1: + void (*dtr_rts)(struct hvc_struct *, int);
1: +};
1: +
1: +struct earlycon_device {
1: + struct console *con;
1: + struct uart_port port;
1: + char options[16];
1: + unsigned int baud;
1: +};
1: +
1: +struct earlycon_id {
1: + char name[15];
1: + char name_term;
1: + char compatible[128];
1: + int (*setup)(struct earlycon_device *, const char *);
1: +};
1: +
1: +typedef uint32_t XENCONS_RING_IDX;
1: +
1: +struct xencons_interface {
1: + char in[1024];
1: + char out[2048];
1: + XENCONS_RING_IDX in_cons;
1: + XENCONS_RING_IDX in_prod;
1: + XENCONS_RING_IDX out_cons;
1: + XENCONS_RING_IDX out_prod;
1: +};
1: +
1: +struct xencons_info {
1: + struct list_head list;
1: + struct xenbus_device *xbdev;
1: + struct xencons_interface *intf;
1: + unsigned int evtchn;
1: + struct hvc_struct *hvc;
1: + int irq;
1: + int vtermno;
1: + grant_ref_t gntref;
1: +};
1: +
1: +struct uart_driver {
1: + struct module *owner;
1: + const char *driver_name;
1: + const char *dev_name;
1: + int major;
1: + int minor;
1: + int nr;
1: + struct console *cons;
1: + struct uart_state *state;
1: + struct tty_driver *tty_driver;
1: +};
1: +
1: +struct uart_match {
1: + struct uart_port *port;
1: + struct uart_driver *driver;
1: +};
1: +
1: +enum hwparam_type {
1: + hwparam_ioport = 0,
1: + hwparam_iomem = 1,
1: + hwparam_ioport_or_iomem = 2,
1: + hwparam_irq = 3,
1: + hwparam_dma = 4,
1: + hwparam_dma_addr = 5,
1: + hwparam_other = 6,
1: +};
1: +
1: +enum {
1: + PLAT8250_DEV_LEGACY = 4294967295,
1: + PLAT8250_DEV_PLATFORM = 0,
1: + PLAT8250_DEV_PLATFORM1 = 1,
1: + PLAT8250_DEV_PLATFORM2 = 2,
1: + PLAT8250_DEV_FOURPORT = 3,
1: + PLAT8250_DEV_ACCENT = 4,
1: + PLAT8250_DEV_BOCA = 5,
1: + PLAT8250_DEV_EXAR_ST16C554 = 6,
1: + PLAT8250_DEV_HUB6 = 7,
1: + PLAT8250_DEV_AU1X00 = 8,
1: + PLAT8250_DEV_SM501 = 9,
1: +};
1: +
1: +struct uart_8250_port;
1: +
1: +struct uart_8250_ops {
1: + int (*setup_irq)(struct uart_8250_port *);
1: + void (*release_irq)(struct uart_8250_port *);
1: +};
1: +
1: +struct mctrl_gpios;
1: +
1: +struct uart_8250_dma;
1: +
1: +struct uart_8250_em485;
1: +
1: +struct uart_8250_port {
1: + struct uart_port port;
1: + struct timer_list timer;
1: + struct list_head list;
1: + u32 capabilities;
1: + short unsigned int bugs;
1: + bool fifo_bug;
1: + unsigned int tx_loadsz;
1: + unsigned char acr;
1: + unsigned char fcr;
1: + unsigned char ier;
1: + unsigned char lcr;
1: + unsigned char mcr;
1: + unsigned char mcr_mask;
1: + unsigned char mcr_force;
1: + unsigned char cur_iotype;
1: + unsigned int rpm_tx_active;
1: + unsigned char canary;
1: + unsigned char probe;
1: + struct mctrl_gpios *gpios;
1: + unsigned char lsr_saved_flags;
1: + unsigned char msr_saved_flags;
1: + struct uart_8250_dma *dma;
1: + const struct uart_8250_ops *ops;
1: + int (*dl_read)(struct uart_8250_port *);
1: + void (*dl_write)(struct uart_8250_port *, int);
1: + struct uart_8250_em485 *em485;
1: + void (*rs485_start_tx)(struct uart_8250_port *);
1: + void (*rs485_stop_tx)(struct uart_8250_port *);
1: + struct delayed_work overrun_backoff;
1: + u32 overrun_backoff_time_ms;
1: +};
1: +
1: +struct uart_8250_em485 {
1: + struct hrtimer start_tx_timer;
1: + struct hrtimer stop_tx_timer;
1: + struct hrtimer *active_timer;
1: + struct uart_8250_port *port;
1: + unsigned int tx_stopped: 1;
1: +};
1: +
1: +struct uart_8250_dma {
1: + int (*tx_dma)(struct uart_8250_port *);
1: + int (*rx_dma)(struct uart_8250_port *);
1: + dma_filter_fn fn;
1: + void *rx_param;
1: + void *tx_param;
1: + struct dma_slave_config rxconf;
1: + struct dma_slave_config txconf;
1: + struct dma_chan *rxchan;
1: + struct dma_chan *txchan;
1: + phys_addr_t rx_dma_addr;
1: + phys_addr_t tx_dma_addr;
1: + dma_addr_t rx_addr;
1: + dma_addr_t tx_addr;
1: + dma_cookie_t rx_cookie;
1: + dma_cookie_t tx_cookie;
1: + void *rx_buf;
1: + size_t rx_size;
1: + size_t tx_size;
1: + unsigned char tx_running;
1: + unsigned char tx_err;
1: + unsigned char rx_running;
1: +};
1: +
1: +struct old_serial_port {
1: + unsigned int uart;
1: + unsigned int baud_base;
1: + unsigned int port;
1: + unsigned int irq;
1: + upf_t flags;
1: + unsigned char io_type;
1: + unsigned char *iomem_base;
1: + short unsigned int iomem_reg_shift;
1: +};
1: +
1: +struct irq_info___2 {
1: + struct hlist_node node;
1: + int irq;
1: + spinlock_t lock;
1: + struct list_head *head;
1: +};
1: +
1: +struct serial8250_config {
1: + const char *name;
1: + short unsigned int fifo_size;
1: + short unsigned int tx_loadsz;
1: + unsigned char fcr;
1: + unsigned char rxtrig_bytes[4];
1: + unsigned int flags;
1: +};
1: +
1: +struct dw8250_port_data {
1: + int line;
1: + struct uart_8250_dma dma;
1: + u8 dlf_size;
1: +};
1: +
1: +struct pciserial_board {
1: + unsigned int flags;
1: + unsigned int num_ports;
1: + unsigned int base_baud;
1: + unsigned int uart_offset;
1: + unsigned int reg_shift;
1: + unsigned int first_offset;
1: +};
1: +
1: +struct serial_private;
1: +
1: +struct pci_serial_quirk {
1: + u32 vendor;
1: + u32 device;
1: + u32 subvendor;
1: + u32 subdevice;
1: + int (*probe)(struct pci_dev *);
1: + int (*init)(struct pci_dev *);
1: + int (*setup)(struct serial_private *, const struct pciserial_board *, struct uart_8250_port *, int);
1: + void (*exit)(struct pci_dev *);
1: +};
1: +
1: +struct serial_private {
1: + struct pci_dev *dev;
1: + unsigned int nr;
1: + struct pci_serial_quirk *quirk;
1: + const struct pciserial_board *board;
1: + int line[0];
1: +};
1: +
1: +struct f815xxa_data {
1: + spinlock_t lock;
1: + int idx;
1: +};
1: +
1: +struct timedia_struct {
1: + int num;
1: + const short unsigned int *ids;
1: +};
1: +
1: +struct quatech_feature {
1: + u16 devid;
1: + bool amcc;
1: +};
1: +
1: +enum pci_board_num_t {
1: + pbn_default = 0,
1: + pbn_b0_1_115200 = 1,
1: + pbn_b0_2_115200 = 2,
1: + pbn_b0_4_115200 = 3,
1: + pbn_b0_5_115200 = 4,
1: + pbn_b0_8_115200 = 5,
1: + pbn_b0_1_921600 = 6,
1: + pbn_b0_2_921600 = 7,
1: + pbn_b0_4_921600 = 8,
1: + pbn_b0_2_1130000 = 9,
1: + pbn_b0_4_1152000 = 10,
1: + pbn_b0_4_1250000 = 11,
1: + pbn_b0_2_1843200 = 12,
1: + pbn_b0_4_1843200 = 13,
1: + pbn_b0_1_4000000 = 14,
1: + pbn_b0_bt_1_115200 = 15,
1: + pbn_b0_bt_2_115200 = 16,
1: + pbn_b0_bt_4_115200 = 17,
1: + pbn_b0_bt_8_115200 = 18,
1: + pbn_b0_bt_1_460800 = 19,
1: + pbn_b0_bt_2_460800 = 20,
1: + pbn_b0_bt_4_460800 = 21,
1: + pbn_b0_bt_1_921600 = 22,
1: + pbn_b0_bt_2_921600 = 23,
1: + pbn_b0_bt_4_921600 = 24,
1: + pbn_b0_bt_8_921600 = 25,
1: + pbn_b1_1_115200 = 26,
1: + pbn_b1_2_115200 = 27,
1: + pbn_b1_4_115200 = 28,
1: + pbn_b1_8_115200 = 29,
1: + pbn_b1_16_115200 = 30,
1: + pbn_b1_1_921600 = 31,
1: + pbn_b1_2_921600 = 32,
1: + pbn_b1_4_921600 = 33,
1: + pbn_b1_8_921600 = 34,
1: + pbn_b1_2_1250000 = 35,
1: + pbn_b1_bt_1_115200 = 36,
1: + pbn_b1_bt_2_115200 = 37,
1: + pbn_b1_bt_4_115200 = 38,
1: + pbn_b1_bt_2_921600 = 39,
1: + pbn_b1_1_1382400 = 40,
1: + pbn_b1_2_1382400 = 41,
1: + pbn_b1_4_1382400 = 42,
1: + pbn_b1_8_1382400 = 43,
1: + pbn_b2_1_115200 = 44,
1: + pbn_b2_2_115200 = 45,
1: + pbn_b2_4_115200 = 46,
1: + pbn_b2_8_115200 = 47,
1: + pbn_b2_1_460800 = 48,
1: + pbn_b2_4_460800 = 49,
1: + pbn_b2_8_460800 = 50,
1: + pbn_b2_16_460800 = 51,
1: + pbn_b2_1_921600 = 52,
1: + pbn_b2_4_921600 = 53,
1: + pbn_b2_8_921600 = 54,
1: + pbn_b2_8_1152000 = 55,
1: + pbn_b2_bt_1_115200 = 56,
1: + pbn_b2_bt_2_115200 = 57,
1: + pbn_b2_bt_4_115200 = 58,
1: + pbn_b2_bt_2_921600 = 59,
1: + pbn_b2_bt_4_921600 = 60,
1: + pbn_b3_2_115200 = 61,
1: + pbn_b3_4_115200 = 62,
1: + pbn_b3_8_115200 = 63,
1: + pbn_b4_bt_2_921600 = 64,
1: + pbn_b4_bt_4_921600 = 65,
1: + pbn_b4_bt_8_921600 = 66,
1: + pbn_panacom = 67,
1: + pbn_panacom2 = 68,
1: + pbn_panacom4 = 69,
1: + pbn_plx_romulus = 70,
1: + pbn_endrun_2_4000000 = 71,
1: + pbn_oxsemi = 72,
1: + pbn_oxsemi_1_4000000 = 73,
1: + pbn_oxsemi_2_4000000 = 74,
1: + pbn_oxsemi_4_4000000 = 75,
1: + pbn_oxsemi_8_4000000 = 76,
1: + pbn_intel_i960 = 77,
1: + pbn_sgi_ioc3 = 78,
1: + pbn_computone_4 = 79,
1: + pbn_computone_6 = 80,
1: + pbn_computone_8 = 81,
1: + pbn_sbsxrsio = 82,
1: + pbn_pasemi_1682M = 83,
1: + pbn_ni8430_2 = 84,
1: + pbn_ni8430_4 = 85,
1: + pbn_ni8430_8 = 86,
1: + pbn_ni8430_16 = 87,
1: + pbn_ADDIDATA_PCIe_1_3906250 = 88,
1: + pbn_ADDIDATA_PCIe_2_3906250 = 89,
1: + pbn_ADDIDATA_PCIe_4_3906250 = 90,
1: + pbn_ADDIDATA_PCIe_8_3906250 = 91,
1: + pbn_ce4100_1_115200 = 92,
1: + pbn_omegapci = 93,
1: + pbn_NETMOS9900_2s_115200 = 94,
1: + pbn_brcm_trumanage = 95,
1: + pbn_fintek_4 = 96,
1: + pbn_fintek_8 = 97,
1: + pbn_fintek_12 = 98,
1: + pbn_fintek_F81504A = 99,
1: + pbn_fintek_F81508A = 100,
1: + pbn_fintek_F81512A = 101,
1: + pbn_wch382_2 = 102,
1: + pbn_wch384_4 = 103,
1: + pbn_wch384_8 = 104,
1: + pbn_pericom_PI7C9X7951 = 105,
1: + pbn_pericom_PI7C9X7952 = 106,
1: + pbn_pericom_PI7C9X7954 = 107,
1: + pbn_pericom_PI7C9X7958 = 108,
1: + pbn_sunix_pci_1s = 109,
1: + pbn_sunix_pci_2s = 110,
1: + pbn_sunix_pci_4s = 111,
1: + pbn_sunix_pci_8s = 112,
1: + pbn_sunix_pci_16s = 113,
1: + pbn_moxa8250_2p = 114,
1: + pbn_moxa8250_4p = 115,
1: + pbn_moxa8250_8p = 116,
1: +};
1: +
1: +struct exar8250_platform {
1: + int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: + int (*register_gpio)(struct pci_dev *, struct uart_8250_port *);
1: +};
1: +
1: +struct exar8250;
1: +
1: +struct exar8250_board {
1: + unsigned int num_ports;
1: + unsigned int reg_shift;
1: + int (*setup)(struct exar8250 *, struct pci_dev *, struct uart_8250_port *, int);
1: + void (*exit)(struct pci_dev *);
1: +};
1: +
1: +struct exar8250 {
1: + unsigned int nr;
1: + struct exar8250_board *board;
1: + void *virt;
1: + int line[0];
1: +};
1: +
1: +struct bcm2835aux_data {
1: + struct clk *clk;
1: + int line;
1: + u32 cntl;
1: +};
1: +
1: +struct fsl8250_data {
1: + int line;
1: +};
1: +
1: +enum dma_rx_status {
1: + DMA_RX_START = 0,
1: + DMA_RX_RUNNING = 1,
1: + DMA_RX_SHUTDOWN = 2,
1: +};
1: +
1: +struct mtk8250_data {
1: + int line;
1: + unsigned int rx_pos;
1: + unsigned int clk_count;
1: + struct clk *uart_clk;
1: + struct clk *bus_clk;
1: + struct uart_8250_dma *dma;
1: + enum dma_rx_status rx_status;
1: + int rx_wakeup_irq;
1: +};
1: +
1: +enum {
1: + MTK_UART_FC_NONE = 0,
1: + MTK_UART_FC_SW = 1,
1: + MTK_UART_FC_HW = 2,
1: +};
1: +
1: +struct tegra_uart {
1: + struct clk *clk;
1: + struct reset_control *rst;
1: + int line;
1: +};
1: +
1: +struct of_serial_info {
1: + struct clk *clk;
1: + struct reset_control *rst;
1: + int type;
1: + int line;
1: +};
1: +
1: +enum amba_vendor {
1: + AMBA_VENDOR_ARM = 65,
1: + AMBA_VENDOR_ST = 128,
1: + AMBA_VENDOR_QCOM = 81,
1: + AMBA_VENDOR_LSI = 182,
1: + AMBA_VENDOR_LINUX = 254,
1: +};
1: +
1: +struct amba_pl011_data {
1: + bool (*dma_filter)(struct dma_chan *, void *);
1: + void *dma_rx_param;
1: + void *dma_tx_param;
1: + bool dma_rx_poll_enable;
1: + unsigned int dma_rx_poll_rate;
1: + unsigned int dma_rx_poll_timeout;
1: + void (*init)();
1: + void (*exit)();
1: +};
1: +
1: +enum {
1: + REG_DR = 0,
1: + REG_ST_DMAWM = 1,
1: + REG_ST_TIMEOUT = 2,
1: + REG_FR = 3,
1: + REG_LCRH_RX = 4,
1: + REG_LCRH_TX = 5,
1: + REG_IBRD = 6,
1: + REG_FBRD = 7,
1: + REG_CR = 8,
1: + REG_IFLS = 9,
1: + REG_IMSC = 10,
1: + REG_RIS = 11,
1: + REG_MIS = 12,
1: + REG_ICR = 13,
1: + REG_DMACR = 14,
1: + REG_ST_XFCR = 15,
1: + REG_ST_XON1 = 16,
1: + REG_ST_XON2 = 17,
1: + REG_ST_XOFF1 = 18,
1: + REG_ST_XOFF2 = 19,
1: + REG_ST_ITCR = 20,
1: + REG_ST_ITIP = 21,
1: + REG_ST_ABCR = 22,
1: + REG_ST_ABIMSC = 23,
1: + REG_ARRAY_SIZE = 24,
1: +};
1: +
1: +struct vendor_data {
1: + const u16 *reg_offset;
1: + unsigned int ifls;
1: + unsigned int fr_busy;
1: + unsigned int fr_dsr;
1: + unsigned int fr_cts;
1: + unsigned int fr_ri;
1: + unsigned int inv_fr;
1: + bool access_32b;
1: + bool oversampling;
1: + bool dma_threshold;
1: + bool cts_event_workaround;
1: + bool always_enabled;
1: + bool fixed_options;
1: + unsigned int (*get_fifosize)(struct amba_device *);
1: +};
1: +
1: +struct pl011_sgbuf {
1: + struct scatterlist sg;
1: + char *buf;
1: +};
1: +
1: +struct pl011_dmarx_data {
1: + struct dma_chan *chan;
1: + struct completion complete;
1: + bool use_buf_b;
1: + struct pl011_sgbuf sgbuf_a;
1: + struct pl011_sgbuf sgbuf_b;
1: + dma_cookie_t cookie;
1: + bool running;
1: + struct timer_list timer;
1: + unsigned int last_residue;
1: + long unsigned int last_jiffies;
1: + bool auto_poll_rate;
1: + unsigned int poll_rate;
1: + unsigned int poll_timeout;
1: +};
1: +
1: +struct pl011_dmatx_data {
1: + struct dma_chan *chan;
1: + struct scatterlist sg;
1: + char *buf;
1: + bool queued;
1: +};
1: +
1: +struct uart_amba_port {
1: + struct uart_port port;
1: + const u16 *reg_offset;
1: + struct clk *clk;
1: + const struct vendor_data *vendor;
1: + unsigned int dmacr;
1: + unsigned int im;
1: + unsigned int old_status;
1: + unsigned int fifosize;
1: + unsigned int old_cr;
1: + unsigned int fixed_baud;
1: + char type[12];
1: + bool using_tx_dma;
1: + bool using_rx_dma;
1: + struct pl011_dmarx_data dmarx;
1: + struct pl011_dmatx_data dmatx;
1: + bool dma_probed;
1: +};
1: +
1: +struct s3c2410_uartcfg {
1: + unsigned char hwport;
1: + unsigned char unused;
1: + short unsigned int flags;
1: + upf_t uart_flags;
1: + unsigned int clk_sel;
1: + unsigned int has_fracval;
1: + long unsigned int ucon;
1: + long unsigned int ulcon;
1: + long unsigned int ufcon;
1: +};
1: +
1: +struct s3c24xx_uart_info {
1: + char *name;
1: + unsigned int type;
1: + unsigned int fifosize;
1: + long unsigned int rx_fifomask;
1: + long unsigned int rx_fifoshift;
1: + long unsigned int rx_fifofull;
1: + long unsigned int tx_fifomask;
1: + long unsigned int tx_fifoshift;
1: + long unsigned int tx_fifofull;
1: + unsigned int def_clk_sel;
1: + long unsigned int num_clks;
1: + long unsigned int clksel_mask;
1: + long unsigned int clksel_shift;
1: + unsigned int has_divslot: 1;
1: +};
1: +
1: +struct s3c24xx_serial_drv_data {
1: + struct s3c24xx_uart_info *info;
1: + struct s3c2410_uartcfg *def_cfg;
1: + unsigned int fifosize[4];
1: +};
1: +
1: +struct s3c24xx_uart_dma {
1: + unsigned int rx_chan_id;
1: + unsigned int tx_chan_id;
1: + struct dma_slave_config rx_conf;
1: + struct dma_slave_config tx_conf;
1: + struct dma_chan *rx_chan;
1: + struct dma_chan *tx_chan;
1: + dma_addr_t rx_addr;
1: + dma_addr_t tx_addr;
1: + dma_cookie_t rx_cookie;
1: + dma_cookie_t tx_cookie;
1: + char *rx_buf;
1: + dma_addr_t tx_transfer_addr;
1: + size_t rx_size;
1: + size_t tx_size;
1: + struct dma_async_tx_descriptor *tx_desc;
1: + struct dma_async_tx_descriptor *rx_desc;
1: + int tx_bytes_requested;
1: + int rx_bytes_requested;
1: +};
1: +
1: +struct s3c24xx_uart_port {
1: + unsigned char rx_claimed;
1: + unsigned char tx_claimed;
1: + unsigned char rx_enabled;
1: + unsigned char tx_enabled;
1: + unsigned int pm_level;
1: + long unsigned int baudclk_rate;
1: + unsigned int min_dma_size;
1: + unsigned int rx_irq;
1: + unsigned int tx_irq;
1: + unsigned int tx_in_progress;
1: + unsigned int tx_mode;
1: + unsigned int rx_mode;
1: + struct s3c24xx_uart_info *info;
1: + struct clk *clk;
1: + struct clk *baudclk;
1: + struct uart_port port;
1: + struct s3c24xx_serial_drv_data *drv_data;
1: + struct s3c2410_uartcfg *cfg;
1: + struct s3c24xx_uart_dma *dma;
1: +};
1: +
1: +struct samsung_early_console_data {
1: + u32 txfull_mask;
1: +};
1: +
1: +enum {
1: + UARTDM_1P1 = 1,
1: + UARTDM_1P2 = 2,
1: + UARTDM_1P3 = 3,
1: + UARTDM_1P4 = 4,
1: +};
1: +
1: +struct msm_dma {
1: + struct dma_chan *chan;
1: + enum dma_data_direction dir;
1: + dma_addr_t phys;
1: + unsigned char *virt;
1: + dma_cookie_t cookie;
1: + u32 enable_bit;
1: + unsigned int count;
1: + struct dma_async_tx_descriptor *desc;
1: +};
1: +
1: +struct msm_port {
1: + struct uart_port uart;
1: + char name[16];
1: + struct clk *clk;
1: + struct clk *pclk;
1: + unsigned int imr;
1: + int is_uartdm;
1: + unsigned int old_snap_state;
1: + bool break_detected;
1: + struct msm_dma tx_dma;
1: + struct msm_dma rx_dma;
1: +};
1: +
1: +struct msm_baud_map {
1: + u16 divisor;
1: + u8 code;
1: + u8 rxstale;
1: +};
1: +
1: +struct cdns_uart {
1: + struct uart_port *port;
1: + struct clk *uartclk;
1: + struct clk *pclk;
1: + struct uart_driver *cdns_uart_driver;
1: + unsigned int baud;
1: + struct notifier_block clk_rate_change_nb;
1: + u32 quirks;
1: + bool cts_override;
1: +};
1: +
1: +struct cdns_platform_data {
1: + u32 quirks;
1: +};
1: +
1: +enum {
1: + UART_IRQ_SUM = 0,
1: + UART_RX_IRQ = 0,
1: + UART_TX_IRQ = 1,
1: + UART_IRQ_COUNT = 2,
1: +};
1: +
1: +struct uart_regs_layout {
1: + unsigned int rbr;
1: + unsigned int tsh;
1: + unsigned int ctrl;
1: + unsigned int intr;
1: +};
1: +
1: +struct uart_flags {
1: + unsigned int ctrl_tx_rdy_int;
1: + unsigned int ctrl_rx_rdy_int;
1: + unsigned int stat_tx_rdy;
1: + unsigned int stat_rx_rdy;
1: +};
1: +
1: +struct mvebu_uart_driver_data {
1: + bool is_ext;
1: + struct uart_regs_layout regs;
1: + struct uart_flags flags;
1: +};
1: +
1: +struct mvebu_uart_pm_regs {
1: + unsigned int rbr;
1: + unsigned int tsh;
1: + unsigned int ctrl;
1: + unsigned int intr;
1: + unsigned int stat;
1: + unsigned int brdv;
1: + unsigned int osamp;
1: +};
1: +
1: +struct mvebu_uart {
1: + struct uart_port *port;
1: + struct clk *clk;
1: + int irq[2];
1: + unsigned char *nb;
1: + struct mvebu_uart_driver_data *data;
1: + struct mvebu_uart_pm_regs pm_regs;
1: +};
1: +
1: +enum mctrl_gpio_idx {
1: + UART_GPIO_CTS = 0,
1: + UART_GPIO_DSR = 1,
1: + UART_GPIO_DCD = 2,
1: + UART_GPIO_RNG = 3,
1: + UART_GPIO_RI = 3,
1: + UART_GPIO_RTS = 4,
1: + UART_GPIO_DTR = 5,
1: + UART_GPIO_MAX = 6,
1: +};
1: +
1: +struct mctrl_gpios___2 {
1: + struct uart_port *port;
1: + struct gpio_desc *gpio[6];
1: + int irq[6];
1: + unsigned int mctrl_prev;
1: + bool mctrl_on;
1: +};
1: +
1: +struct serdev_device;
1: +
1: +struct serdev_device_ops {
1: + int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
1: + void (*write_wakeup)(struct serdev_device *);
1: +};
1: +
1: +struct serdev_controller;
1: +
1: +struct serdev_device {
1: + struct device dev;
1: + int nr;
1: + struct serdev_controller *ctrl;
1: + const struct serdev_device_ops *ops;
1: + struct completion write_comp;
1: + struct mutex write_lock;
1: +};
1: +
1: +struct serdev_controller_ops;
1: +
1: +struct serdev_controller {
1: + struct device dev;
1: + unsigned int nr;
1: + struct serdev_device *serdev;
1: + const struct serdev_controller_ops *ops;
1: +};
1: +
1: +struct serdev_device_driver {
1: + struct device_driver driver;
1: + int (*probe)(struct serdev_device *);
1: + void (*remove)(struct serdev_device *);
1: +};
1: +
1: +enum serdev_parity {
1: + SERDEV_PARITY_NONE = 0,
1: + SERDEV_PARITY_EVEN = 1,
1: + SERDEV_PARITY_ODD = 2,
1: +};
1: +
1: +struct serdev_controller_ops {
1: + int (*write_buf)(struct serdev_controller *, const unsigned char *, size_t);
1: + void (*write_flush)(struct serdev_controller *);
1: + int (*write_room)(struct serdev_controller *);
1: + int (*open)(struct serdev_controller *);
1: + void (*close)(struct serdev_controller *);
1: + void (*set_flow_control)(struct serdev_controller *, bool);
1: + int (*set_parity)(struct serdev_controller *, enum serdev_parity);
1: + unsigned int (*set_baudrate)(struct serdev_controller *, unsigned int);
1: + void (*wait_until_sent)(struct serdev_controller *, long int);
1: + int (*get_tiocm)(struct serdev_controller *);
1: + int (*set_tiocm)(struct serdev_controller *, unsigned int, unsigned int);
1: +};
1: +
1: +struct acpi_serdev_lookup {
1: + acpi_handle device_handle;
1: + acpi_handle controller_handle;
1: + int n;
1: + int index;
1: +};
1: +
1: +struct serport {
1: + struct tty_port *port;
1: + struct tty_struct *tty;
1: + struct tty_driver *tty_drv;
1: + int tty_idx;
1: + long unsigned int flags;
1: +};
1: +
1: +struct memdev {
1: + const char *name;
1: + umode_t mode;
1: + const struct file_operations *fops;
1: + fmode_t fmode;
1: +};
1: +
1: +struct timer_rand_state {
1: + cycles_t last_time;
1: + long int last_delta;
1: + long int last_delta2;
1: +};
1: +
1: +struct trace_event_raw_add_device_randomness {
1: + struct trace_entry ent;
1: + int bytes;
1: + long unsigned int IP;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_random__mix_pool_bytes {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int bytes;
1: + long unsigned int IP;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_credit_entropy_bits {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int bits;
1: + int entropy_count;
1: + long unsigned int IP;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_push_to_pool {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int pool_bits;
1: + int input_bits;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_debit_entropy {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int debit_bits;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_add_input_randomness {
1: + struct trace_entry ent;
1: + int input_bits;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_add_disk_randomness {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int input_bits;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xfer_secondary_pool {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int xfer_bits;
1: + int request_bits;
1: + int pool_entropy;
1: + int input_entropy;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_random__get_random_bytes {
1: + struct trace_entry ent;
1: + int nbytes;
1: + long unsigned int IP;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_random__extract_entropy {
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int nbytes;
1: + int entropy_count;
1: + long unsigned int IP;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_random_read {
1: + struct trace_entry ent;
1: + int got_bits;
1: + int need_bits;
1: + int pool_left;
1: + int input_left;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_urandom_read {
1: + struct trace_entry ent;
1: + int got_bits;
1: + int pool_left;
1: + int input_left;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_prandom_u32 {
1: + struct trace_entry ent;
1: + unsigned int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_add_device_randomness {};
1: +
1: +struct trace_event_data_offsets_random__mix_pool_bytes {};
1: +
1: +struct trace_event_data_offsets_credit_entropy_bits {};
1: +
1: +struct trace_event_data_offsets_push_to_pool {};
1: +
1: +struct trace_event_data_offsets_debit_entropy {};
1: +
1: +struct trace_event_data_offsets_add_input_randomness {};
1: +
1: +struct trace_event_data_offsets_add_disk_randomness {};
1: +
1: +struct trace_event_data_offsets_xfer_secondary_pool {};
1: +
1: +struct trace_event_data_offsets_random__get_random_bytes {};
1: +
1: +struct trace_event_data_offsets_random__extract_entropy {};
1: +
1: +struct trace_event_data_offsets_random_read {};
1: +
1: +struct trace_event_data_offsets_urandom_read {};
1: +
1: +struct trace_event_data_offsets_prandom_u32 {};
1: +
1: +typedef void (*btf_trace_add_device_randomness)(void *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mix_pool_bytes)(void *, const char *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mix_pool_bytes_nolock)(void *, const char *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_credit_entropy_bits)(void *, const char *, int, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_push_to_pool)(void *, const char *, int, int);
1: +
1: +typedef void (*btf_trace_debit_entropy)(void *, const char *, int);
1: +
1: +typedef void (*btf_trace_add_input_randomness)(void *, int);
1: +
1: +typedef void (*btf_trace_add_disk_randomness)(void *, dev_t, int);
1: +
1: +typedef void (*btf_trace_xfer_secondary_pool)(void *, const char *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_get_random_bytes)(void *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_get_random_bytes_arch)(void *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_extract_entropy)(void *, const char *, int, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_extract_entropy_user)(void *, const char *, int, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_random_read)(void *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_urandom_read)(void *, int, int, int);
1: +
1: +typedef void (*btf_trace_prandom_u32)(void *, unsigned int);
1: +
1: +struct poolinfo {
1: + int poolbitshift;
1: + int poolwords;
1: + int poolbytes;
1: + int poolfracbits;
1: + int tap1;
1: + int tap2;
1: + int tap3;
1: + int tap4;
1: + int tap5;
1: +};
1: +
1: +struct crng_state {
1: + __u32 state[16];
1: + long unsigned int init_time;
1: + spinlock_t lock;
1: +};
1: +
1: +struct entropy_store {
1: + const struct poolinfo *poolinfo;
1: + __u32 *pool;
1: + const char *name;
1: + spinlock_t lock;
1: + short unsigned int add_ptr;
1: + short unsigned int input_rotate;
1: + int entropy_count;
1: + unsigned int initialized: 1;
1: + unsigned int last_data_init: 1;
1: + __u8 last_data[10];
1: +};
1: +
1: +struct fast_pool {
1: + __u32 pool[4];
1: + long unsigned int last;
1: + short unsigned int reg_idx;
1: + unsigned char count;
1: +};
1: +
1: +struct batched_entropy {
1: + union {
1: + u64 entropy_u64[8];
1: + u32 entropy_u32[16];
1: + };
1: + unsigned int position;
1: + spinlock_t batch_lock;
1: +};
1: +
1: +struct ttyprintk_port {
1: + struct tty_port port;
1: + spinlock_t spinlock;
1: +};
1: +
1: +enum tpm2_startup_types {
1: + TPM2_SU_CLEAR = 0,
1: + TPM2_SU_STATE = 1,
1: +};
1: +
1: +enum tpm_chip_flags {
1: + TPM_CHIP_FLAG_TPM2 = 2,
1: + TPM_CHIP_FLAG_IRQ = 4,
1: + TPM_CHIP_FLAG_VIRTUAL = 8,
1: + TPM_CHIP_FLAG_HAVE_TIMEOUTS = 16,
1: + TPM_CHIP_FLAG_ALWAYS_POWERED = 32,
1: + TPM_CHIP_FLAG_FIRMWARE_POWER_MANAGED = 64,
1: +};
1: +
1: +enum tpm2_structures {
1: + TPM2_ST_NO_SESSIONS = 32769,
1: + TPM2_ST_SESSIONS = 32770,
1: +};
1: +
1: +enum tpm2_return_codes {
1: + TPM2_RC_SUCCESS = 0,
1: + TPM2_RC_HASH = 131,
1: + TPM2_RC_HANDLE = 139,
1: + TPM2_RC_INITIALIZE = 256,
1: + TPM2_RC_FAILURE = 257,
1: + TPM2_RC_DISABLED = 288,
1: + TPM2_RC_COMMAND_CODE = 323,
1: + TPM2_RC_TESTING = 2314,
1: + TPM2_RC_REFERENCE_H0 = 2320,
1: + TPM2_RC_RETRY = 2338,
1: +};
1: +
1: +struct tpm_header {
1: + __be16 tag;
1: + __be32 length;
1: + union {
1: + __be32 ordinal;
1: + __be32 return_code;
1: + };
1: +} __attribute__((packed));
1: +
1: +struct file_priv {
1: + struct tpm_chip *chip;
1: + struct tpm_space *space;
1: + struct mutex buffer_mutex;
1: + struct timer_list user_read_timer;
1: + struct work_struct timeout_work;
1: + struct work_struct async_work;
1: + wait_queue_head_t async_wait;
1: + ssize_t response_length;
1: + bool response_read;
1: + bool command_enqueued;
1: + u8 data_buffer[4096];
1: +};
1: +
1: +enum TPM_OPS_FLAGS {
1: + TPM_OPS_AUTO_STARTUP = 1,
1: +};
1: +
1: +enum tpm2_timeouts {
1: + TPM2_TIMEOUT_A = 750,
1: + TPM2_TIMEOUT_B = 2000,
1: + TPM2_TIMEOUT_C = 200,
1: + TPM2_TIMEOUT_D = 30,
1: + TPM2_DURATION_SHORT = 20,
1: + TPM2_DURATION_MEDIUM = 750,
1: + TPM2_DURATION_LONG = 2000,
1: + TPM2_DURATION_LONG_LONG = 300000,
1: + TPM2_DURATION_DEFAULT = 120000,
1: +};
1: +
1: +enum tpm2_command_codes {
1: + TPM2_CC_FIRST = 287,
1: + TPM2_CC_HIERARCHY_CONTROL = 289,
1: + TPM2_CC_HIERARCHY_CHANGE_AUTH = 297,
1: + TPM2_CC_CREATE_PRIMARY = 305,
1: + TPM2_CC_SEQUENCE_COMPLETE = 318,
1: + TPM2_CC_SELF_TEST = 323,
1: + TPM2_CC_STARTUP = 324,
1: + TPM2_CC_SHUTDOWN = 325,
1: + TPM2_CC_NV_READ = 334,
1: + TPM2_CC_CREATE = 339,
1: + TPM2_CC_LOAD = 343,
1: + TPM2_CC_SEQUENCE_UPDATE = 348,
1: + TPM2_CC_UNSEAL = 350,
1: + TPM2_CC_CONTEXT_LOAD = 353,
1: + TPM2_CC_CONTEXT_SAVE = 354,
1: + TPM2_CC_FLUSH_CONTEXT = 357,
1: + TPM2_CC_VERIFY_SIGNATURE = 375,
1: + TPM2_CC_GET_CAPABILITY = 378,
1: + TPM2_CC_GET_RANDOM = 379,
1: + TPM2_CC_PCR_READ = 382,
1: + TPM2_CC_PCR_EXTEND = 386,
1: + TPM2_CC_EVENT_SEQUENCE_COMPLETE = 389,
1: + TPM2_CC_HASH_SEQUENCE_START = 390,
1: + TPM2_CC_CREATE_LOADED = 401,
1: + TPM2_CC_LAST = 403,
1: +};
1: +
1: +struct tpm_buf {
1: + unsigned int flags;
1: + u8 *data;
1: +};
1: +
1: +enum tpm_timeout {
1: + TPM_TIMEOUT = 5,
1: + TPM_TIMEOUT_RETRY = 100,
1: + TPM_TIMEOUT_RANGE_US = 300,
1: + TPM_TIMEOUT_POLL = 1,
1: + TPM_TIMEOUT_USECS_MIN = 100,
1: + TPM_TIMEOUT_USECS_MAX = 500,
1: +};
1: +
1: +enum tpm_buf_flags {
1: + TPM_BUF_OVERFLOW = 1,
1: +};
1: +
1: +struct stclear_flags_t {
1: + __be16 tag;
1: + u8 deactivated;
1: + u8 disableForceClear;
1: + u8 physicalPresence;
1: + u8 physicalPresenceLock;
1: + u8 bGlobalLock;
1: +} __attribute__((packed));
1: +
1: +struct tpm1_version {
1: + u8 major;
1: + u8 minor;
1: + u8 rev_major;
1: + u8 rev_minor;
1: +};
1: +
1: +struct tpm1_version2 {
1: + __be16 tag;
1: + struct tpm1_version version;
1: +};
1: +
1: +struct timeout_t {
1: + __be32 a;
1: + __be32 b;
1: + __be32 c;
1: + __be32 d;
1: +};
1: +
1: +struct duration_t {
1: + __be32 tpm_short;
1: + __be32 tpm_medium;
1: + __be32 tpm_long;
1: +};
1: +
1: +struct permanent_flags_t {
1: + __be16 tag;
1: + u8 disable;
1: + u8 ownership;
1: + u8 deactivated;
1: + u8 readPubek;
1: + u8 disableOwnerClear;
1: + u8 allowMaintenance;
1: + u8 physicalPresenceLifetimeLock;
1: + u8 physicalPresenceHWEnable;
1: + u8 physicalPresenceCMDEnable;
1: + u8 CEKPUsed;
1: + u8 TPMpost;
1: + u8 TPMpostLock;
1: + u8 FIPS;
1: + u8 operator;
1: + u8 enableRevokeEK;
1: + u8 nvLocked;
1: + u8 readSRKPub;
1: + u8 tpmEstablished;
1: + u8 maintenanceDone;
1: + u8 disableFullDALogicInfo;
1: +};
1: +
1: +typedef union {
1: + struct permanent_flags_t perm_flags;
1: + struct stclear_flags_t stclear_flags;
1: + __u8 owned;
1: + __be32 num_pcrs;
1: + struct tpm1_version version1;
1: + struct tpm1_version2 version2;
1: + __be32 manufacturer_id;
1: + struct timeout_t timeout;
1: + struct duration_t duration;
1: +} cap_t;
1: +
1: +enum tpm_capabilities {
1: + TPM_CAP_FLAG = 4,
1: + TPM_CAP_PROP = 5,
1: + TPM_CAP_VERSION_1_1 = 6,
1: + TPM_CAP_VERSION_1_2 = 26,
1: +};
1: +
1: +enum tpm_sub_capabilities {
1: + TPM_CAP_PROP_PCR = 257,
1: + TPM_CAP_PROP_MANUFACTURER = 259,
1: + TPM_CAP_FLAG_PERM = 264,
1: + TPM_CAP_FLAG_VOL = 265,
1: + TPM_CAP_PROP_OWNER = 273,
1: + TPM_CAP_PROP_TIS_TIMEOUT = 277,
1: + TPM_CAP_PROP_TIS_DURATION = 288,
1: +};
1: +
1: +struct tpm1_get_random_out {
1: + __be32 rng_data_len;
1: + u8 rng_data[128];
1: +};
1: +
1: +enum tpm2_const {
1: + TPM2_PLATFORM_PCR = 24,
1: + TPM2_PCR_SELECT_MIN = 3,
1: +};
1: +
1: +enum tpm2_permanent_handles {
1: + TPM2_RS_PW = 1073741833,
1: +};
1: +
1: +enum tpm2_capabilities {
1: + TPM2_CAP_HANDLES = 1,
1: + TPM2_CAP_COMMANDS = 2,
1: + TPM2_CAP_PCRS = 5,
1: + TPM2_CAP_TPM_PROPERTIES = 6,
1: +};
1: +
1: +enum tpm2_properties {
1: + TPM_PT_TOTAL_COMMANDS = 297,
1: +};
1: +
1: +enum tpm2_cc_attrs {
1: + TPM2_CC_ATTR_CHANDLES = 25,
1: + TPM2_CC_ATTR_RHANDLE = 28,
1: +};
1: +
1: +struct tpm2_hash {
1: + unsigned int crypto_id;
1: + unsigned int tpm_id;
1: +};
1: +
1: +struct tpm2_pcr_read_out {
1: + __be32 update_cnt;
1: + __be32 pcr_selects_cnt;
1: + __be16 hash_alg;
1: + u8 pcr_select_size;
1: + u8 pcr_select[3];
1: + __be32 digests_cnt;
1: + __be16 digest_size;
1: + u8 digest[0];
1: +} __attribute__((packed));
1: +
1: +struct tpm2_null_auth_area {
1: + __be32 handle;
1: + __be16 nonce_size;
1: + u8 attributes;
1: + __be16 auth_size;
1: +} __attribute__((packed));
1: +
1: +struct tpm2_get_random_out {
1: + __be16 size;
1: + u8 buffer[128];
1: +};
1: +
1: +struct tpm2_get_cap_out {
1: + u8 more_data;
1: + __be32 subcap_id;
1: + __be32 property_cnt;
1: + __be32 property_id;
1: + __be32 value;
1: +} __attribute__((packed));
1: +
1: +struct tpm2_pcr_selection {
1: + __be16 hash_alg;
1: + u8 size_of_select;
1: + u8 pcr_select[3];
1: +};
1: +
1: +struct tpmrm_priv {
1: + struct file_priv priv;
1: + struct tpm_space space;
1: +};
1: +
1: +enum tpm2_handle_types {
1: + TPM2_HT_HMAC_SESSION = 33554432,
1: + TPM2_HT_POLICY_SESSION = 50331648,
1: + TPM2_HT_TRANSIENT = 2147483648,
1: +};
1: +
1: +struct tpm2_context {
1: + __be64 sequence;
1: + __be32 saved_handle;
1: + __be32 hierarchy;
1: + __be16 blob_size;
1: +} __attribute__((packed));
1: +
1: +struct tpm2_cap_handles {
1: + u8 more_data;
1: + __be32 capability;
1: + __be32 count;
1: + __be32 handles[0];
1: +} __attribute__((packed));
1: +
1: +struct tpm_readpubek_out {
1: + u8 algorithm[4];
1: + u8 encscheme[2];
1: + u8 sigscheme[2];
1: + __be32 paramsize;
1: + u8 parameters[12];
1: + __be32 keysize;
1: + u8 modulus[256];
1: + u8 checksum[20];
1: +};
1: +
1: +struct tcpa_event {
1: + u32 pcr_index;
1: + u32 event_type;
1: + u8 pcr_value[20];
1: + u32 event_size;
1: + u8 event_data[0];
1: +};
1: +
1: +enum tcpa_event_types {
1: + PREBOOT = 0,
1: + POST_CODE = 1,
1: + UNUSED = 2,
1: + NO_ACTION = 3,
1: + SEPARATOR = 4,
1: + ACTION = 5,
1: + EVENT_TAG = 6,
1: + SCRTM_CONTENTS = 7,
1: + SCRTM_VERSION = 8,
1: + CPU_MICROCODE = 9,
1: + PLATFORM_CONFIG_FLAGS = 10,
1: + TABLE_OF_DEVICES = 11,
1: + COMPACT_HASH = 12,
1: + IPL = 13,
1: + IPL_PARTITION_DATA = 14,
1: + NONHOST_CODE = 15,
1: + NONHOST_CONFIG = 16,
1: + NONHOST_INFO = 17,
1: +};
1: +
1: +struct tcpa_pc_event {
1: + u32 event_id;
1: + u32 event_size;
1: + u8 event_data[0];
1: +};
1: +
1: +enum tcpa_pc_event_ids {
1: + SMBIOS = 1,
1: + BIS_CERT = 2,
1: + POST_BIOS_ROM = 3,
1: + ESCD = 4,
1: + CMOS = 5,
1: + NVRAM = 6,
1: + OPTION_ROM_EXEC = 7,
1: + OPTION_ROM_CONFIG = 8,
1: + OPTION_ROM_MICROCODE = 10,
1: + S_CRTM_VERSION = 11,
1: + S_CRTM_CONTENTS = 12,
1: + POST_CONTENTS = 13,
1: + HOST_TABLE_OF_DEVICES = 14,
1: +};
1: +
1: +struct tcg_efi_specid_event_algs {
1: + u16 alg_id;
1: + u16 digest_size;
1: +};
1: +
1: +struct tcg_efi_specid_event_head {
1: + u8 signature[16];
1: + u32 platform_class;
1: + u8 spec_version_minor;
1: + u8 spec_version_major;
1: + u8 spec_errata;
1: + u8 uintnsize;
1: + u32 num_algs;
1: + struct tcg_efi_specid_event_algs digest_sizes[0];
1: +};
1: +
1: +struct tcg_pcr_event {
1: + u32 pcr_idx;
1: + u32 event_type;
1: + u8 digest[20];
1: + u32 event_size;
1: + u8 event[0];
1: +};
1: +
1: +struct tcg_event_field {
1: + u32 event_size;
1: + u8 event[0];
1: +};
1: +
1: +struct tcg_pcr_event2_head {
1: + u32 pcr_idx;
1: + u32 event_type;
1: + u32 count;
1: + struct tpm_digest digests[0];
1: +};
1: +
1: +struct acpi_table_tpm2 {
1: + struct acpi_table_header header;
1: + u16 platform_class;
1: + u16 reserved;
1: + u64 control_address;
1: + u32 start_method;
1: +} __attribute__((packed));
1: +
1: +struct acpi_tpm2_phy {
1: + u8 start_method_specific[12];
1: + u32 log_area_minimum_length;
1: + u64 log_area_start_address;
1: +};
1: +
1: +enum bios_platform_class {
1: + BIOS_CLIENT = 0,
1: + BIOS_SERVER = 1,
1: +};
1: +
1: +struct client_hdr {
1: + u32 log_max_len;
1: + u64 log_start_addr;
1: +} __attribute__((packed));
1: +
1: +struct server_hdr {
1: + u16 reserved;
1: + u64 log_max_len;
1: + u64 log_start_addr;
1: +} __attribute__((packed));
1: +
1: +struct acpi_tcpa {
1: + struct acpi_table_header hdr;
1: + u16 platform_class;
1: + union {
1: + struct client_hdr client;
1: + struct server_hdr server;
1: + };
1: +} __attribute__((packed));
1: +
1: +struct linux_efi_tpm_eventlog {
1: + u32 size;
1: + u32 final_events_preboot_size;
1: + u8 version;
1: + u8 log[0];
1: +};
1: +
1: +struct efi_tcg2_final_events_table {
1: + u64 version;
1: + u64 nr_events;
1: + u8 events[0];
1: +};
1: +
1: +enum tis_access {
1: + TPM_ACCESS_VALID = 128,
1: + TPM_ACCESS_ACTIVE_LOCALITY = 32,
1: + TPM_ACCESS_REQUEST_PENDING = 4,
1: + TPM_ACCESS_REQUEST_USE = 2,
1: +};
1: +
1: +enum tis_status {
1: + TPM_STS_VALID = 128,
1: + TPM_STS_COMMAND_READY = 64,
1: + TPM_STS_GO = 32,
1: + TPM_STS_DATA_AVAIL = 16,
1: + TPM_STS_DATA_EXPECT = 8,
1: + TPM_STS_READ_ZERO = 35,
1: +};
1: +
1: +enum tis_int_flags {
1: + TPM_GLOBAL_INT_ENABLE = 2147483648,
1: + TPM_INTF_BURST_COUNT_STATIC = 256,
1: + TPM_INTF_CMD_READY_INT = 128,
1: + TPM_INTF_INT_EDGE_FALLING = 64,
1: + TPM_INTF_INT_EDGE_RISING = 32,
1: + TPM_INTF_INT_LEVEL_LOW = 16,
1: + TPM_INTF_INT_LEVEL_HIGH = 8,
1: + TPM_INTF_LOCALITY_CHANGE_INT = 4,
1: + TPM_INTF_STS_VALID_INT = 2,
1: + TPM_INTF_DATA_AVAIL_INT = 1,
1: +};
1: +
1: +enum tis_defaults {
1: + TIS_MEM_LEN = 20480,
1: + TIS_SHORT_TIMEOUT = 750,
1: + TIS_LONG_TIMEOUT = 2000,
1: +};
1: +
1: +enum tpm_tis_flags {
1: + TPM_TIS_ITPM_WORKAROUND = 1,
1: +};
1: +
1: +struct tpm_tis_phy_ops;
1: +
1: +struct tpm_tis_data {
1: + u16 manufacturer_id;
1: + int locality;
1: + int irq;
1: + bool irq_tested;
1: + unsigned int flags;
1: + void *ilb_base_addr;
1: + u16 clkrun_enabled;
1: + wait_queue_head_t int_queue;
1: + wait_queue_head_t read_queue;
1: + const struct tpm_tis_phy_ops *phy_ops;
1: + short unsigned int rng_quality;
1: +};
1: +
1: +struct tpm_tis_phy_ops {
1: + int (*read_bytes)(struct tpm_tis_data *, u32, u16, u8 *);
1: + int (*write_bytes)(struct tpm_tis_data *, u32, u16, const u8 *);
1: + int (*read16)(struct tpm_tis_data *, u32, u16 *);
1: + int (*read32)(struct tpm_tis_data *, u32, u32 *);
1: + int (*write32)(struct tpm_tis_data *, u32, u32);
1: +};
1: +
1: +struct tis_vendor_durations_override {
1: + u32 did_vid;
1: + struct tpm1_version version;
1: + long unsigned int durations[3];
1: +};
1: +
1: +struct tis_vendor_timeout_override {
1: + u32 did_vid;
1: + long unsigned int timeout_us[4];
1: +};
1: +
1: +struct tpm_info {
1: + struct resource res;
1: + int irq;
1: +};
1: +
1: +struct tpm_tis_tcg_phy {
1: + struct tpm_tis_data priv;
1: + void *iobase;
1: +};
1: +
1: +enum crb_defaults {
1: + CRB_ACPI_START_REVISION_ID = 1,
1: + CRB_ACPI_START_INDEX = 1,
1: +};
1: +
1: +enum crb_loc_ctrl {
1: + CRB_LOC_CTRL_REQUEST_ACCESS = 1,
1: + CRB_LOC_CTRL_RELINQUISH = 2,
1: +};
1: +
1: +enum crb_loc_state {
1: + CRB_LOC_STATE_LOC_ASSIGNED = 2,
1: + CRB_LOC_STATE_TPM_REG_VALID_STS = 128,
1: +};
1: +
1: +enum crb_ctrl_req {
1: + CRB_CTRL_REQ_CMD_READY = 1,
1: + CRB_CTRL_REQ_GO_IDLE = 2,
1: +};
1: +
1: +enum crb_ctrl_sts {
1: + CRB_CTRL_STS_ERROR = 1,
1: + CRB_CTRL_STS_TPM_IDLE = 2,
1: +};
1: +
1: +enum crb_start {
1: + CRB_START_INVOKE = 1,
1: +};
1: +
1: +enum crb_cancel {
1: + CRB_CANCEL_INVOKE = 1,
1: +};
1: +
1: +struct crb_regs_head {
1: + u32 loc_state;
1: + u32 reserved1;
1: + u32 loc_ctrl;
1: + u32 loc_sts;
1: + u8 reserved2[32];
1: + u64 intf_id;
1: + u64 ctrl_ext;
1: +};
1: +
1: +struct crb_regs_tail {
1: + u32 ctrl_req;
1: + u32 ctrl_sts;
1: + u32 ctrl_cancel;
1: + u32 ctrl_start;
1: + u32 ctrl_int_enable;
1: + u32 ctrl_int_sts;
1: + u32 ctrl_cmd_size;
1: + u32 ctrl_cmd_pa_low;
1: + u32 ctrl_cmd_pa_high;
1: + u32 ctrl_rsp_size;
1: + u64 ctrl_rsp_pa;
1: +};
1: +
1: +enum crb_status {
1: + CRB_DRV_STS_COMPLETE = 1,
1: +};
1: +
1: +struct crb_priv {
1: + u32 sm;
1: + const char *hid;
1: + struct crb_regs_head *regs_h;
1: + struct crb_regs_tail *regs_t;
1: + u8 *cmd;
1: + u8 *rsp;
1: + u32 cmd_size;
1: + u32 smc_func_id;
1: +};
1: +
1: +struct tpm2_crb_smc {
1: + u32 interrupt;
1: + u8 interrupt_flags;
1: + u8 op_flags;
1: + u16 reserved2;
1: + u32 smc_func_id;
1: +};
1: +
1: +enum io_pgtable_fmt {
1: + ARM_32_LPAE_S1 = 0,
1: + ARM_32_LPAE_S2 = 1,
1: + ARM_64_LPAE_S1 = 2,
1: + ARM_64_LPAE_S2 = 3,
1: + ARM_V7S = 4,
1: + ARM_MALI_LPAE = 5,
1: + IO_PGTABLE_NUM_FMTS = 6,
1: +};
1: +
1: +struct iommu_flush_ops {
1: + void (*tlb_flush_all)(void *);
1: + void (*tlb_flush_walk)(long unsigned int, size_t, size_t, void *);
1: + void (*tlb_flush_leaf)(long unsigned int, size_t, size_t, void *);
1: + void (*tlb_add_page)(struct iommu_iotlb_gather *, long unsigned int, size_t, void *);
1: +};
1: +
1: +struct io_pgtable_cfg {
1: + long unsigned int quirks;
1: + long unsigned int pgsize_bitmap;
1: + unsigned int ias;
1: + unsigned int oas;
1: + bool coherent_walk;
1: + const struct iommu_flush_ops *tlb;
1: + struct device *iommu_dev;
1: + union {
1: + struct {
1: + u64 ttbr;
1: + struct {
1: + u32 ips: 3;
1: + u32 tg: 2;
1: + u32 sh: 2;
1: + u32 orgn: 2;
1: + u32 irgn: 2;
1: + u32 tsz: 6;
1: + } tcr;
1: + u64 mair;
1: + } arm_lpae_s1_cfg;
1: + struct {
1: + u64 vttbr;
1: + struct {
1: + u32 ps: 3;
1: + u32 tg: 2;
1: + u32 sh: 2;
1: + u32 orgn: 2;
1: + u32 irgn: 2;
1: + u32 sl: 2;
1: + u32 tsz: 6;
1: + } vtcr;
1: + } arm_lpae_s2_cfg;
1: + struct {
1: + u32 ttbr;
1: + u32 tcr;
1: + u32 nmrr;
1: + u32 prrr;
1: + } arm_v7s_cfg;
1: + struct {
1: + u64 transtab;
1: + u64 memattr;
1: + } arm_mali_lpae_cfg;
1: + };
1: +};
1: +
1: +struct io_pgtable_ops {
1: + int (*map)(struct io_pgtable_ops *, long unsigned int, phys_addr_t, size_t, int, gfp_t);
1: + size_t (*unmap)(struct io_pgtable_ops *, long unsigned int, size_t, struct iommu_iotlb_gather *);
1: + phys_addr_t (*iova_to_phys)(struct io_pgtable_ops *, long unsigned int);
1: +};
1: +
1: +enum arm_smmu_s2cr_privcfg {
1: + S2CR_PRIVCFG_DEFAULT = 0,
1: + S2CR_PRIVCFG_DIPAN = 1,
1: + S2CR_PRIVCFG_UNPRIV = 2,
1: + S2CR_PRIVCFG_PRIV = 3,
1: +};
1: +
1: +enum arm_smmu_s2cr_type {
1: + S2CR_TYPE_TRANS = 0,
1: + S2CR_TYPE_BYPASS = 1,
1: + S2CR_TYPE_FAULT = 2,
1: +};
1: +
1: +enum arm_smmu_cbar_type {
1: + CBAR_TYPE_S2_TRANS = 0,
1: + CBAR_TYPE_S1_TRANS_S2_BYPASS = 1,
1: + CBAR_TYPE_S1_TRANS_S2_FAULT = 2,
1: + CBAR_TYPE_S1_TRANS_S2_TRANS = 3,
1: +};
1: +
1: +enum arm_smmu_arch_version {
1: + ARM_SMMU_V1 = 0,
1: + ARM_SMMU_V1_64K = 1,
1: + ARM_SMMU_V2 = 2,
1: +};
1: +
1: +enum arm_smmu_implementation {
1: + GENERIC_SMMU = 0,
1: + ARM_MMU500 = 1,
1: + CAVIUM_SMMUV2 = 2,
1: + QCOM_SMMUV2 = 3,
1: +};
1: +
1: +struct arm_smmu_s2cr {
1: + struct iommu_group *group;
1: + int count;
1: + enum arm_smmu_s2cr_type type;
1: + enum arm_smmu_s2cr_privcfg privcfg;
1: + u8 cbndx;
1: +};
1: +
1: +struct arm_smmu_smr {
1: + u16 mask;
1: + u16 id;
1: + bool valid;
1: + bool pinned;
1: +};
1: +
1: +struct arm_smmu_impl;
1: +
1: +struct arm_smmu_cb;
1: +
1: +struct arm_smmu_device {
1: + struct device *dev;
1: + void *base;
1: + unsigned int numpage;
1: + unsigned int pgshift;
1: + u32 features;
1: + enum arm_smmu_arch_version version;
1: + enum arm_smmu_implementation model;
1: + const struct arm_smmu_impl *impl;
1: + u32 num_context_banks;
1: + u32 num_s2_context_banks;
1: + long unsigned int context_map[2];
1: + struct arm_smmu_cb *cbs;
1: + atomic_t irptndx;
1: + u32 num_mapping_groups;
1: + u16 streamid_mask;
1: + u16 smr_mask_mask;
1: + struct arm_smmu_smr *smrs;
1: + struct arm_smmu_s2cr *s2crs;
1: + struct mutex stream_map_mutex;
1: + long unsigned int va_size;
1: + long unsigned int ipa_size;
1: + long unsigned int pa_size;
1: + long unsigned int pgsize_bitmap;
1: + u32 num_global_irqs;
1: + u32 num_context_irqs;
1: + unsigned int *irqs;
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: + spinlock_t global_sync_lock;
1: + struct iommu_device iommu;
1: +};
1: +
1: +struct arm_smmu_domain;
1: +
1: +struct arm_smmu_impl {
1: + u32 (*read_reg)(struct arm_smmu_device *, int, int);
1: + void (*write_reg)(struct arm_smmu_device *, int, int, u32);
1: + u64 (*read_reg64)(struct arm_smmu_device *, int, int);
1: + void (*write_reg64)(struct arm_smmu_device *, int, int, u64);
1: + int (*cfg_probe)(struct arm_smmu_device *);
1: + int (*reset)(struct arm_smmu_device *);
1: + int (*init_context)(struct arm_smmu_domain *, struct io_pgtable_cfg *, struct device *);
1: + void (*tlb_sync)(struct arm_smmu_device *, int, int, int);
1: + int (*def_domain_type)(struct device *);
1: + irqreturn_t (*global_fault)(int, void *);
1: + irqreturn_t (*context_fault)(int, void *);
1: + int (*alloc_context_bank)(struct arm_smmu_domain *, struct arm_smmu_device *, struct device *, int);
1: + void (*write_s2cr)(struct arm_smmu_device *, int);
1: +};
1: +
1: +struct arm_smmu_cfg;
1: +
1: +struct arm_smmu_cb {
1: + u64 ttbr[2];
1: + u32 tcr[2];
1: + u32 mair[2];
1: + struct arm_smmu_cfg *cfg;
1: +};
1: +
1: +enum arm_smmu_context_fmt {
1: + ARM_SMMU_CTX_FMT_NONE = 0,
1: + ARM_SMMU_CTX_FMT_AARCH64 = 1,
1: + ARM_SMMU_CTX_FMT_AARCH32_L = 2,
1: + ARM_SMMU_CTX_FMT_AARCH32_S = 3,
1: +};
1: +
1: +struct arm_smmu_cfg {
1: + u8 cbndx;
1: + u8 irptndx;
1: + union {
1: + u16 asid;
1: + u16 vmid;
1: + };
1: + enum arm_smmu_cbar_type cbar;
1: + enum arm_smmu_context_fmt fmt;
1: +};
1: +
1: +enum arm_smmu_domain_stage {
1: + ARM_SMMU_DOMAIN_S1 = 0,
1: + ARM_SMMU_DOMAIN_S2 = 1,
1: + ARM_SMMU_DOMAIN_NESTED = 2,
1: + ARM_SMMU_DOMAIN_BYPASS = 3,
1: +};
1: +
1: +struct arm_smmu_domain {
1: + struct arm_smmu_device *smmu;
1: + struct io_pgtable_ops *pgtbl_ops;
1: + const struct iommu_flush_ops *flush_ops;
1: + struct arm_smmu_cfg cfg;
1: + enum arm_smmu_domain_stage stage;
1: + bool non_strict;
1: + struct mutex init_mutex;
1: + spinlock_t cb_lock;
1: + struct iommu_domain domain;
1: +};
1: +
1: +struct arm_smmu_master_cfg {
1: + struct arm_smmu_device *smmu;
1: + s16 smendx[0];
1: +};
1: +
1: +struct arm_smmu_match_data {
1: + enum arm_smmu_arch_version version;
1: + enum arm_smmu_implementation model;
1: +};
1: +
1: +struct cavium_smmu {
1: + struct arm_smmu_device smmu;
1: + u32 id_base;
1: +};
1: +
1: +struct nvidia_smmu {
1: + struct arm_smmu_device smmu;
1: + void *bases[2];
1: +};
1: +
1: +struct qcom_smmu {
1: + struct arm_smmu_device smmu;
1: + bool bypass_quirk;
1: + u8 bypass_cbndx;
1: +};
1: +
1: +enum pri_resp {
1: + PRI_RESP_DENY = 0,
1: + PRI_RESP_FAIL = 1,
1: + PRI_RESP_SUCC = 2,
1: +};
1: +
1: +struct arm_smmu_cmdq_ent {
1: + u8 opcode;
1: + bool substream_valid;
1: + union {
1: + struct {
1: + u32 sid;
1: + u8 size;
1: + u64 addr;
1: + } prefetch;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + union {
1: + bool leaf;
1: + u8 span;
1: + };
1: + } cfgi;
1: + struct {
1: + u8 num;
1: + u8 scale;
1: + u16 asid;
1: + u16 vmid;
1: + bool leaf;
1: + u8 ttl;
1: + u8 tg;
1: + u64 addr;
1: + } tlbi;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + u64 addr;
1: + u8 size;
1: + bool global;
1: + } atc;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + u16 grpid;
1: + enum pri_resp resp;
1: + } pri;
1: + struct {
1: + u64 msiaddr;
1: + } sync;
1: + };
1: +};
1: +
1: +struct arm_smmu_ll_queue {
1: + union {
1: + u64 val;
1: + struct {
1: + u32 prod;
1: + u32 cons;
1: + };
1: + struct {
1: + atomic_t prod;
1: + atomic_t cons;
1: + } atomic;
1: + u8 __pad[64];
1: + };
1: + u32 max_n_shift;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct arm_smmu_queue {
1: + struct arm_smmu_ll_queue llq;
1: + int irq;
1: + __le64 *base;
1: + dma_addr_t base_dma;
1: + u64 q_base;
1: + size_t ent_dwords;
1: + u32 *prod_reg;
1: + u32 *cons_reg;
1: + long: 64;
1: +};
1: +
1: +struct arm_smmu_queue_poll {
1: + ktime_t timeout;
1: + unsigned int delay;
1: + unsigned int spin_cnt;
1: + bool wfe;
1: +};
1: +
1: +struct arm_smmu_cmdq {
1: + struct arm_smmu_queue q;
1: + atomic_long_t *valid_map;
1: + atomic_t owner_prod;
1: + atomic_t lock;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct arm_smmu_cmdq_batch {
1: + u64 cmds[128];
1: + int num;
1: +};
1: +
1: +struct arm_smmu_evtq {
1: + struct arm_smmu_queue q;
1: + u32 max_stalls;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct arm_smmu_priq {
1: + struct arm_smmu_queue q;
1: +};
1: +
1: +struct arm_smmu_strtab_l1_desc {
1: + u8 span;
1: + __le64 *l2ptr;
1: + dma_addr_t l2ptr_dma;
1: +};
1: +
1: +struct arm_smmu_ctx_desc {
1: + u16 asid;
1: + u64 ttbr;
1: + u64 tcr;
1: + u64 mair;
1: + refcount_t refs;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct arm_smmu_l1_ctx_desc {
1: + __le64 *l2ptr;
1: + dma_addr_t l2ptr_dma;
1: +};
1: +
1: +struct arm_smmu_ctx_desc_cfg {
1: + __le64 *cdtab;
1: + dma_addr_t cdtab_dma;
1: + struct arm_smmu_l1_ctx_desc *l1_desc;
1: + unsigned int num_l1_ents;
1: +};
1: +
1: +struct arm_smmu_s1_cfg {
1: + struct arm_smmu_ctx_desc_cfg cdcfg;
1: + struct arm_smmu_ctx_desc cd;
1: + u8 s1fmt;
1: + u8 s1cdmax;
1: +};
1: +
1: +struct arm_smmu_s2_cfg {
1: + u16 vmid;
1: + u64 vttbr;
1: + u64 vtcr;
1: +};
1: +
1: +struct arm_smmu_strtab_cfg {
1: + __le64 *strtab;
1: + dma_addr_t strtab_dma;
1: + struct arm_smmu_strtab_l1_desc *l1_desc;
1: + unsigned int num_l1_ents;
1: + u64 strtab_base;
1: + u32 strtab_base_cfg;
1: +};
1: +
1: +struct arm_smmu_device___2 {
1: + struct device *dev;
1: + void *base;
1: + void *page1;
1: + u32 features;
1: + u32 options;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct arm_smmu_cmdq cmdq;
1: + struct arm_smmu_evtq evtq;
1: + struct arm_smmu_priq priq;
1: + int gerr_irq;
1: + int combined_irq;
1: + long unsigned int ias;
1: + long unsigned int oas;
1: + long unsigned int pgsize_bitmap;
1: + unsigned int asid_bits;
1: + unsigned int vmid_bits;
1: + long unsigned int vmid_map[1024];
1: + unsigned int ssid_bits;
1: + unsigned int sid_bits;
1: + struct arm_smmu_strtab_cfg strtab_cfg;
1: + struct iommu_device iommu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct arm_smmu_domain___2;
1: +
1: +struct arm_smmu_master {
1: + struct arm_smmu_device___2 *smmu;
1: + struct device *dev;
1: + struct arm_smmu_domain___2 *domain;
1: + struct list_head domain_head;
1: + u32 *sids;
1: + unsigned int num_sids;
1: + bool ats_enabled;
1: + bool sva_enabled;
1: + struct list_head bonds;
1: + unsigned int ssid_bits;
1: +};
1: +
1: +struct arm_smmu_domain___2 {
1: + struct arm_smmu_device___2 *smmu;
1: + struct mutex init_mutex;
1: + struct io_pgtable_ops *pgtbl_ops;
1: + bool non_strict;
1: + atomic_t nr_ats_masters;
1: + enum arm_smmu_domain_stage stage;
1: + union {
1: + struct arm_smmu_s1_cfg s1_cfg;
1: + struct arm_smmu_s2_cfg s2_cfg;
1: + };
1: + struct iommu_domain domain;
1: + struct list_head devices;
1: + spinlock_t devices_lock;
1: +};
1: +
1: +enum arm_smmu_msi_index {
1: + EVTQ_MSI_INDEX = 0,
1: + GERROR_MSI_INDEX = 1,
1: + PRIQ_MSI_INDEX = 2,
1: + ARM_SMMU_MAX_MSIS = 3,
1: +};
1: +
1: +struct arm_smmu_option_prop {
1: + u32 opt;
1: + const char *prop;
1: +};
1: +
1: +struct iommu_group {
1: + struct kobject kobj;
1: + struct kobject *devices_kobj;
1: + struct list_head devices;
1: + struct mutex mutex;
1: + struct blocking_notifier_head notifier;
1: + void *iommu_data;
1: + void (*iommu_data_release)(void *);
1: + char *name;
1: + int id;
1: + struct iommu_domain *default_domain;
1: + struct iommu_domain *domain;
1: + struct list_head entry;
1: +};
1: +
1: +typedef unsigned int ioasid_t;
1: +
1: +enum iommu_fault_type {
1: + IOMMU_FAULT_DMA_UNRECOV = 1,
1: + IOMMU_FAULT_PAGE_REQ = 2,
1: +};
1: +
1: +enum iommu_inv_granularity {
1: + IOMMU_INV_GRANU_DOMAIN = 0,
1: + IOMMU_INV_GRANU_PASID = 1,
1: + IOMMU_INV_GRANU_ADDR = 2,
1: + IOMMU_INV_GRANU_NR = 3,
1: +};
1: +
1: +struct fsl_mc_obj_desc {
1: + char type[16];
1: + int id;
1: + u16 vendor;
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u8 irq_count;
1: + u8 region_count;
1: + u32 state;
1: + char label[16];
1: + u16 flags;
1: +};
1: +
1: +struct fsl_mc_io;
1: +
1: +struct fsl_mc_device_irq;
1: +
1: +struct fsl_mc_resource;
1: +
1: +struct fsl_mc_device {
1: + struct device dev;
1: + u64 dma_mask;
1: + u16 flags;
1: + u32 icid;
1: + u16 mc_handle;
1: + struct fsl_mc_io *mc_io;
1: + struct fsl_mc_obj_desc obj_desc;
1: + struct resource *regions;
1: + struct fsl_mc_device_irq **irqs;
1: + struct fsl_mc_resource *resource;
1: + struct device_link *consumer_link;
1: + char *driver_override;
1: +};
1: +
1: +enum fsl_mc_pool_type {
1: + FSL_MC_POOL_DPMCP = 0,
1: + FSL_MC_POOL_DPBP = 1,
1: + FSL_MC_POOL_DPCON = 2,
1: + FSL_MC_POOL_IRQ = 3,
1: + FSL_MC_NUM_POOL_TYPES = 4,
1: +};
1: +
1: +struct fsl_mc_resource_pool;
1: +
1: +struct fsl_mc_resource {
1: + enum fsl_mc_pool_type type;
1: + s32 id;
1: + void *data;
1: + struct fsl_mc_resource_pool *parent_pool;
1: + struct list_head node;
1: +};
1: +
1: +struct fsl_mc_device_irq {
1: + struct msi_desc *msi_desc;
1: + struct fsl_mc_device *mc_dev;
1: + u8 dev_irq_index;
1: + struct fsl_mc_resource resource;
1: +};
1: +
1: +struct fsl_mc_io {
1: + struct device *dev;
1: + u16 flags;
1: + u32 portal_size;
1: + phys_addr_t portal_phys_addr;
1: + void *portal_virt_addr;
1: + struct fsl_mc_device *dpmcp_dev;
1: + union {
1: + struct mutex mutex;
1: + raw_spinlock_t spinlock;
1: + };
1: +};
1: +
1: +struct group_device {
1: + struct list_head list;
1: + struct device *dev;
1: + char *name;
1: +};
1: +
1: +struct iommu_group_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct iommu_group *, char *);
1: + ssize_t (*store)(struct iommu_group *, const char *, size_t);
1: +};
1: +
1: +struct group_for_pci_data {
1: + struct pci_dev *pdev;
1: + struct iommu_group *group;
1: +};
1: +
1: +struct __group_domain_type {
1: + struct device *dev;
1: + unsigned int type;
1: +};
1: +
1: +struct trace_event_raw_iommu_group_event {
1: + struct trace_entry ent;
1: + int gid;
1: + u32 __data_loc_device;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iommu_device_event {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_map {
1: + struct trace_entry ent;
1: + u64 iova;
1: + u64 paddr;
1: + size_t size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_unmap {
1: + struct trace_entry ent;
1: + u64 iova;
1: + size_t size;
1: + size_t unmapped_size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iommu_error {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + u64 iova;
1: + int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_iommu_group_event {
1: + u32 device;
1: +};
1: +
1: +struct trace_event_data_offsets_iommu_device_event {
1: + u32 device;
1: +};
1: +
1: +struct trace_event_data_offsets_map {};
1: +
1: +struct trace_event_data_offsets_unmap {};
1: +
1: +struct trace_event_data_offsets_iommu_error {
1: + u32 device;
1: + u32 driver;
1: +};
1: +
1: +typedef void (*btf_trace_add_device_to_group)(void *, int, struct device *);
1: +
1: +typedef void (*btf_trace_remove_device_from_group)(void *, int, struct device *);
1: +
1: +typedef void (*btf_trace_attach_device_to_domain)(void *, struct device *);
1: +
1: +typedef void (*btf_trace_detach_device_from_domain)(void *, struct device *);
1: +
1: +typedef void (*btf_trace_map)(void *, long unsigned int, phys_addr_t, size_t);
1: +
1: +typedef void (*btf_trace_unmap)(void *, long unsigned int, size_t, size_t);
1: +
1: +typedef void (*btf_trace_io_page_fault)(void *, struct device *, long unsigned int, int);
1: +
1: +struct iova {
1: + struct rb_node node;
1: + long unsigned int pfn_hi;
1: + long unsigned int pfn_lo;
1: +};
1: +
1: +struct iova_magazine;
1: +
1: +struct iova_cpu_rcache;
1: +
1: +struct iova_rcache {
1: + spinlock_t lock;
1: + long unsigned int depot_size;
1: + struct iova_magazine *depot[32];
1: + struct iova_cpu_rcache *cpu_rcaches;
1: +};
1: +
1: +struct iova_domain;
1: +
1: +typedef void (*iova_flush_cb)(struct iova_domain *);
1: +
1: +typedef void (*iova_entry_dtor)(long unsigned int);
1: +
1: +struct iova_fq;
1: +
1: +struct iova_domain {
1: + spinlock_t iova_rbtree_lock;
1: + struct rb_root rbroot;
1: + struct rb_node *cached_node;
1: + struct rb_node *cached32_node;
1: + long unsigned int granule;
1: + long unsigned int start_pfn;
1: + long unsigned int dma_32bit_pfn;
1: + long unsigned int max32_alloc_size;
1: + struct iova_fq *fq;
1: + atomic64_t fq_flush_start_cnt;
1: + atomic64_t fq_flush_finish_cnt;
1: + struct iova anchor;
1: + struct iova_rcache rcaches[6];
1: + iova_flush_cb flush_cb;
1: + iova_entry_dtor entry_dtor;
1: + struct timer_list fq_timer;
1: + atomic_t fq_timer_on;
1: +};
1: +
1: +struct iova_fq_entry {
1: + long unsigned int iova_pfn;
1: + long unsigned int pages;
1: + long unsigned int data;
1: + u64 counter;
1: +};
1: +
1: +struct iova_fq {
1: + struct iova_fq_entry entries[256];
1: + unsigned int head;
1: + unsigned int tail;
1: + spinlock_t lock;
1: +};
1: +
1: +struct iommu_dma_msi_page {
1: + struct list_head list;
1: + dma_addr_t iova;
1: + phys_addr_t phys;
1: +};
1: +
1: +enum iommu_dma_cookie_type {
1: + IOMMU_DMA_IOVA_COOKIE = 0,
1: + IOMMU_DMA_MSI_COOKIE = 1,
1: +};
1: +
1: +struct iommu_dma_cookie {
1: + enum iommu_dma_cookie_type type;
1: + union {
1: + struct iova_domain iovad;
1: + dma_addr_t msi_iova;
1: + };
1: + struct list_head msi_page_list;
1: + struct iommu_domain *fq_domain;
1: +};
1: +
1: +struct io_pgtable {
1: + enum io_pgtable_fmt fmt;
1: + void *cookie;
1: + struct io_pgtable_cfg cfg;
1: + struct io_pgtable_ops ops;
1: +};
1: +
1: +struct io_pgtable_init_fns {
1: + struct io_pgtable * (*alloc)(struct io_pgtable_cfg *, void *);
1: + void (*free)(struct io_pgtable *);
1: +};
1: +
1: +struct arm_lpae_io_pgtable {
1: + struct io_pgtable iop;
1: + int pgd_bits;
1: + int start_level;
1: + int bits_per_level;
1: + void *pgd;
1: +};
1: +
1: +typedef u64 arm_lpae_iopte;
1: +
1: +struct iova_magazine {
1: + long unsigned int size;
1: + long unsigned int pfns[128];
1: +};
1: +
1: +struct iova_cpu_rcache {
1: + spinlock_t lock;
1: + struct iova_magazine *loaded;
1: + struct iova_magazine *prev;
1: +};
1: +
1: +struct of_pci_iommu_alias_info {
1: + struct device *dev;
1: + struct device_node *np;
1: +};
1: +
1: +struct rk_iommu_domain {
1: + struct list_head iommus;
1: + u32 *dt;
1: + dma_addr_t dt_dma;
1: + spinlock_t iommus_lock;
1: + spinlock_t dt_lock;
1: + struct iommu_domain domain;
1: +};
1: +
1: +struct rk_iommu {
1: + struct device *dev;
1: + void **bases;
1: + int num_mmu;
1: + int num_irq;
1: + struct clk_bulk_data *clocks;
1: + int num_clocks;
1: + bool reset_disabled;
1: + struct iommu_device iommu;
1: + struct list_head node;
1: + struct iommu_domain *domain;
1: + struct iommu_group *group;
1: +};
1: +
1: +struct rk_iommudata {
1: + struct device_link *link;
1: + struct rk_iommu *iommu;
1: +};
1: +
1: +struct tegra_smmu_enable {
1: + unsigned int reg;
1: + unsigned int bit;
1: +};
1: +
1: +struct tegra_mc_timing {
1: + long unsigned int rate;
1: + u32 *emem_data;
1: +};
1: +
1: +struct tegra_mc_la {
1: + unsigned int reg;
1: + unsigned int shift;
1: + unsigned int mask;
1: + unsigned int def;
1: +};
1: +
1: +struct tegra_mc_client {
1: + unsigned int id;
1: + const char *name;
1: + unsigned int swgroup;
1: + unsigned int fifo_size;
1: + struct tegra_smmu_enable smmu;
1: + struct tegra_mc_la la;
1: +};
1: +
1: +struct tegra_smmu_swgroup {
1: + const char *name;
1: + unsigned int swgroup;
1: + unsigned int reg;
1: +};
1: +
1: +struct tegra_smmu_group_soc {
1: + const char *name;
1: + const unsigned int *swgroups;
1: + unsigned int num_swgroups;
1: +};
1: +
1: +struct tegra_smmu_soc {
1: + const struct tegra_mc_client *clients;
1: + unsigned int num_clients;
1: + const struct tegra_smmu_swgroup *swgroups;
1: + unsigned int num_swgroups;
1: + const struct tegra_smmu_group_soc *groups;
1: + unsigned int num_groups;
1: + bool supports_round_robin_arbitration;
1: + bool supports_request_limit;
1: + unsigned int num_tlb_lines;
1: + unsigned int num_asids;
1: +};
1: +
1: +struct tegra_mc_reset {
1: + const char *name;
1: + long unsigned int id;
1: + unsigned int control;
1: + unsigned int status;
1: + unsigned int reset;
1: + unsigned int bit;
1: +};
1: +
1: +struct tegra_mc;
1: +
1: +struct tegra_mc_reset_ops {
1: + int (*hotreset_assert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*hotreset_deassert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*block_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + bool (*dma_idling)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*unblock_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*reset_status)(struct tegra_mc *, const struct tegra_mc_reset *);
1: +};
1: +
1: +struct gart_device;
1: +
1: +struct tegra_smmu;
1: +
1: +struct tegra_mc_soc;
1: +
1: +struct tegra_mc {
1: + struct device *dev;
1: + struct tegra_smmu *smmu;
1: + struct gart_device *gart;
1: + void *regs;
1: + struct clk *clk;
1: + int irq;
1: + const struct tegra_mc_soc *soc;
1: + long unsigned int tick;
1: + struct tegra_mc_timing *timings;
1: + unsigned int num_timings;
1: + struct reset_controller_dev reset;
1: + spinlock_t lock;
1: +};
1: +
1: +struct tegra_mc_soc {
1: + const struct tegra_mc_client *clients;
1: + unsigned int num_clients;
1: + const long unsigned int *emem_regs;
1: + unsigned int num_emem_regs;
1: + unsigned int num_address_bits;
1: + unsigned int atom_size;
1: + u8 client_id_mask;
1: + const struct tegra_smmu_soc *smmu;
1: + u32 intmask;
1: + const struct tegra_mc_reset_ops *reset_ops;
1: + const struct tegra_mc_reset *resets;
1: + unsigned int num_resets;
1: +};
1: +
1: +struct tegra_smmu {
1: + void *regs;
1: + struct device *dev;
1: + struct tegra_mc *mc;
1: + const struct tegra_smmu_soc *soc;
1: + struct list_head groups;
1: + long unsigned int pfn_mask;
1: + long unsigned int tlb_mask;
1: + long unsigned int *asids;
1: + struct mutex lock;
1: + struct list_head list;
1: + struct dentry *debugfs;
1: + struct iommu_device iommu;
1: +};
1: +
1: +struct tegra_smmu_group {
1: + struct list_head list;
1: + struct tegra_smmu *smmu;
1: + const struct tegra_smmu_group_soc *soc;
1: + struct iommu_group *group;
1: + unsigned int swgroup;
1: +};
1: +
1: +struct tegra_smmu_as {
1: + struct iommu_domain domain;
1: + struct tegra_smmu *smmu;
1: + unsigned int use_count;
1: + spinlock_t lock;
1: + u32 *count;
1: + struct page **pts;
1: + struct page *pd;
1: + dma_addr_t pd_dma;
1: + unsigned int id;
1: + u32 attr;
1: +};
1: +
1: +struct mipi_dsi_msg {
1: + u8 channel;
1: + u8 type;
1: + u16 flags;
1: + size_t tx_len;
1: + const void *tx_buf;
1: + size_t rx_len;
1: + void *rx_buf;
1: +};
1: +
1: +struct mipi_dsi_packet {
1: + size_t size;
1: + u8 header[4];
1: + size_t payload_length;
1: + const u8 *payload;
1: +};
1: +
1: +struct mipi_dsi_host;
1: +
1: +struct mipi_dsi_device;
1: +
1: +struct mipi_dsi_host_ops {
1: + int (*attach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: + int (*detach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: + ssize_t (*transfer)(struct mipi_dsi_host *, const struct mipi_dsi_msg *);
1: +};
1: +
1: +struct mipi_dsi_host {
1: + struct device *dev;
1: + const struct mipi_dsi_host_ops *ops;
1: + struct list_head list;
1: +};
1: +
1: +enum mipi_dsi_pixel_format {
1: + MIPI_DSI_FMT_RGB888 = 0,
1: + MIPI_DSI_FMT_RGB666 = 1,
1: + MIPI_DSI_FMT_RGB666_PACKED = 2,
1: + MIPI_DSI_FMT_RGB565 = 3,
1: +};
1: +
1: +struct mipi_dsi_device {
1: + struct mipi_dsi_host *host;
1: + struct device dev;
1: + char name[20];
1: + unsigned int channel;
1: + unsigned int lanes;
1: + enum mipi_dsi_pixel_format format;
1: + long unsigned int mode_flags;
1: + long unsigned int hs_rate;
1: + long unsigned int lp_rate;
1: +};
1: +
1: +struct mipi_dsi_device_info {
1: + char type[20];
1: + u32 channel;
1: + struct device_node *node;
1: +};
1: +
1: +enum mipi_dsi_dcs_tear_mode {
1: + MIPI_DSI_DCS_TEAR_MODE_VBLANK = 0,
1: + MIPI_DSI_DCS_TEAR_MODE_VHBLANK = 1,
1: +};
1: +
1: +struct mipi_dsi_driver {
1: + struct device_driver driver;
1: + int (*probe)(struct mipi_dsi_device *);
1: + int (*remove)(struct mipi_dsi_device *);
1: + void (*shutdown)(struct mipi_dsi_device *);
1: +};
1: +
1: +struct drm_dsc_picture_parameter_set {
1: + u8 dsc_version;
1: + u8 pps_identifier;
1: + u8 pps_reserved;
1: + u8 pps_3;
1: + u8 pps_4;
1: + u8 bits_per_pixel_low;
1: + __be16 pic_height;
1: + __be16 pic_width;
1: + __be16 slice_height;
1: + __be16 slice_width;
1: + __be16 chunk_size;
1: + u8 initial_xmit_delay_high;
1: + u8 initial_xmit_delay_low;
1: + __be16 initial_dec_delay;
1: + u8 pps20_reserved;
1: + u8 initial_scale_value;
1: + __be16 scale_increment_interval;
1: + u8 scale_decrement_interval_high;
1: + u8 scale_decrement_interval_low;
1: + u8 pps26_reserved;
1: + u8 first_line_bpg_offset;
1: + __be16 nfl_bpg_offset;
1: + __be16 slice_bpg_offset;
1: + __be16 initial_offset;
1: + __be16 final_offset;
1: + u8 flatness_min_qp;
1: + u8 flatness_max_qp;
1: + __be16 rc_model_size;
1: + u8 rc_edge_factor;
1: + u8 rc_quant_incr_limit0;
1: + u8 rc_quant_incr_limit1;
1: + u8 rc_tgt_offset;
1: + u8 rc_buf_thresh[14];
1: + __be16 rc_range_parameters[15];
1: + u8 native_422_420;
1: + u8 second_line_bpg_offset;
1: + __be16 nsl_bpg_offset;
1: + __be16 second_line_offset_adj;
1: + u32 pps_long_94_reserved;
1: + u32 pps_long_98_reserved;
1: + u32 pps_long_102_reserved;
1: + u32 pps_long_106_reserved;
1: + u32 pps_long_110_reserved;
1: + u32 pps_long_114_reserved;
1: + u32 pps_long_118_reserved;
1: + u32 pps_long_122_reserved;
1: + __be16 pps_short_126_reserved;
1: +} __attribute__((packed));
1: +
1: +enum {
1: + MIPI_DSI_V_SYNC_START = 1,
1: + MIPI_DSI_V_SYNC_END = 17,
1: + MIPI_DSI_H_SYNC_START = 33,
1: + MIPI_DSI_H_SYNC_END = 49,
1: + MIPI_DSI_COMPRESSION_MODE = 7,
1: + MIPI_DSI_END_OF_TRANSMISSION = 8,
1: + MIPI_DSI_COLOR_MODE_OFF = 2,
1: + MIPI_DSI_COLOR_MODE_ON = 18,
1: + MIPI_DSI_SHUTDOWN_PERIPHERAL = 34,
1: + MIPI_DSI_TURN_ON_PERIPHERAL = 50,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM = 3,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM = 19,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM = 35,
1: + MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM = 4,
1: + MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM = 20,
1: + MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM = 36,
1: + MIPI_DSI_DCS_SHORT_WRITE = 5,
1: + MIPI_DSI_DCS_SHORT_WRITE_PARAM = 21,
1: + MIPI_DSI_DCS_READ = 6,
1: + MIPI_DSI_EXECUTE_QUEUE = 22,
1: + MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 55,
1: + MIPI_DSI_NULL_PACKET = 9,
1: + MIPI_DSI_BLANKING_PACKET = 25,
1: + MIPI_DSI_GENERIC_LONG_WRITE = 41,
1: + MIPI_DSI_DCS_LONG_WRITE = 57,
1: + MIPI_DSI_PICTURE_PARAMETER_SET = 10,
1: + MIPI_DSI_COMPRESSED_PIXEL_STREAM = 11,
1: + MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 = 12,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 = 28,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 = 44,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_30 = 13,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_36 = 29,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12 = 61,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_16 = 14,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_18 = 30,
1: + MIPI_DSI_PIXEL_STREAM_3BYTE_18 = 46,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_24 = 62,
1: +};
1: +
1: +enum {
1: + MIPI_DCS_NOP = 0,
1: + MIPI_DCS_SOFT_RESET = 1,
1: + MIPI_DCS_GET_COMPRESSION_MODE = 3,
1: + MIPI_DCS_GET_DISPLAY_ID = 4,
1: + MIPI_DCS_GET_ERROR_COUNT_ON_DSI = 5,
1: + MIPI_DCS_GET_RED_CHANNEL = 6,
1: + MIPI_DCS_GET_GREEN_CHANNEL = 7,
1: + MIPI_DCS_GET_BLUE_CHANNEL = 8,
1: + MIPI_DCS_GET_DISPLAY_STATUS = 9,
1: + MIPI_DCS_GET_POWER_MODE = 10,
1: + MIPI_DCS_GET_ADDRESS_MODE = 11,
1: + MIPI_DCS_GET_PIXEL_FORMAT = 12,
1: + MIPI_DCS_GET_DISPLAY_MODE = 13,
1: + MIPI_DCS_GET_SIGNAL_MODE = 14,
1: + MIPI_DCS_GET_DIAGNOSTIC_RESULT = 15,
1: + MIPI_DCS_ENTER_SLEEP_MODE = 16,
1: + MIPI_DCS_EXIT_SLEEP_MODE = 17,
1: + MIPI_DCS_ENTER_PARTIAL_MODE = 18,
1: + MIPI_DCS_ENTER_NORMAL_MODE = 19,
1: + MIPI_DCS_GET_IMAGE_CHECKSUM_RGB = 20,
1: + MIPI_DCS_GET_IMAGE_CHECKSUM_CT = 21,
1: + MIPI_DCS_EXIT_INVERT_MODE = 32,
1: + MIPI_DCS_ENTER_INVERT_MODE = 33,
1: + MIPI_DCS_SET_GAMMA_CURVE = 38,
1: + MIPI_DCS_SET_DISPLAY_OFF = 40,
1: + MIPI_DCS_SET_DISPLAY_ON = 41,
1: + MIPI_DCS_SET_COLUMN_ADDRESS = 42,
1: + MIPI_DCS_SET_PAGE_ADDRESS = 43,
1: + MIPI_DCS_WRITE_MEMORY_START = 44,
1: + MIPI_DCS_WRITE_LUT = 45,
1: + MIPI_DCS_READ_MEMORY_START = 46,
1: + MIPI_DCS_SET_PARTIAL_ROWS = 48,
1: + MIPI_DCS_SET_PARTIAL_COLUMNS = 49,
1: + MIPI_DCS_SET_SCROLL_AREA = 51,
1: + MIPI_DCS_SET_TEAR_OFF = 52,
1: + MIPI_DCS_SET_TEAR_ON = 53,
1: + MIPI_DCS_SET_ADDRESS_MODE = 54,
1: + MIPI_DCS_SET_SCROLL_START = 55,
1: + MIPI_DCS_EXIT_IDLE_MODE = 56,
1: + MIPI_DCS_ENTER_IDLE_MODE = 57,
1: + MIPI_DCS_SET_PIXEL_FORMAT = 58,
1: + MIPI_DCS_WRITE_MEMORY_CONTINUE = 60,
1: + MIPI_DCS_SET_3D_CONTROL = 61,
1: + MIPI_DCS_READ_MEMORY_CONTINUE = 62,
1: + MIPI_DCS_GET_3D_CONTROL = 63,
1: + MIPI_DCS_SET_VSYNC_TIMING = 64,
1: + MIPI_DCS_SET_TEAR_SCANLINE = 68,
1: + MIPI_DCS_GET_SCANLINE = 69,
1: + MIPI_DCS_SET_DISPLAY_BRIGHTNESS = 81,
1: + MIPI_DCS_GET_DISPLAY_BRIGHTNESS = 82,
1: + MIPI_DCS_WRITE_CONTROL_DISPLAY = 83,
1: + MIPI_DCS_GET_CONTROL_DISPLAY = 84,
1: + MIPI_DCS_WRITE_POWER_SAVE = 85,
1: + MIPI_DCS_GET_POWER_SAVE = 86,
1: + MIPI_DCS_SET_CABC_MIN_BRIGHTNESS = 94,
1: + MIPI_DCS_GET_CABC_MIN_BRIGHTNESS = 95,
1: + MIPI_DCS_READ_DDB_START = 161,
1: + MIPI_DCS_READ_PPS_START = 162,
1: + MIPI_DCS_READ_DDB_CONTINUE = 168,
1: + MIPI_DCS_READ_PPS_CONTINUE = 169,
1: +};
1: +
1: +struct drm_dmi_panel_orientation_data {
1: + int width;
1: + int height;
1: + const char * const *bios_dates;
1: + int orientation;
1: +};
1: +
1: +struct vga_device {
1: + struct list_head list;
1: + struct pci_dev *pdev;
1: + unsigned int decodes;
1: + unsigned int owns;
1: + unsigned int locks;
1: + unsigned int io_lock_cnt;
1: + unsigned int mem_lock_cnt;
1: + unsigned int io_norm_cnt;
1: + unsigned int mem_norm_cnt;
1: + bool bridge_has_one_vga;
1: + void *cookie;
1: + void (*irq_set_state)(void *, bool);
1: + unsigned int (*set_vga_decode)(void *, bool);
1: +};
1: +
1: +struct vga_arb_user_card {
1: + struct pci_dev *pdev;
1: + unsigned int mem_cnt;
1: + unsigned int io_cnt;
1: +};
1: +
1: +struct vga_arb_private {
1: + struct list_head list;
1: + struct pci_dev *target;
1: + struct vga_arb_user_card cards[16];
1: + spinlock_t lock;
1: +};
1: +
1: +struct cb_id {
1: + __u32 idx;
1: + __u32 val;
1: +};
1: +
1: +struct cn_msg {
1: + struct cb_id id;
1: + __u32 seq;
1: + __u32 ack;
1: + __u16 len;
1: + __u16 flags;
1: + __u8 data[0];
1: +};
1: +
1: +struct cn_queue_dev {
1: + atomic_t refcnt;
1: + unsigned char name[32];
1: + struct list_head queue_list;
1: + spinlock_t queue_lock;
1: + struct sock *nls;
1: +};
1: +
1: +struct cn_callback_id {
1: + unsigned char name[32];
1: + struct cb_id id;
1: +};
1: +
1: +struct cn_callback_entry {
1: + struct list_head callback_entry;
1: + refcount_t refcnt;
1: + struct cn_queue_dev *pdev;
1: + struct cn_callback_id id;
1: + void (*callback)(struct cn_msg *, struct netlink_skb_parms *);
1: + u32 seq;
1: + u32 group;
1: +};
1: +
1: +struct cn_dev {
1: + struct cb_id id;
1: + u32 seq;
1: + u32 groups;
1: + struct sock *nls;
1: + struct cn_queue_dev *cbdev;
1: +};
1: +
1: +enum proc_cn_mcast_op {
1: + PROC_CN_MCAST_LISTEN = 1,
1: + PROC_CN_MCAST_IGNORE = 2,
1: +};
1: +
1: +struct fork_proc_event {
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: + __kernel_pid_t child_pid;
1: + __kernel_pid_t child_tgid;
1: +};
1: +
1: +struct exec_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: +};
1: +
1: +struct id_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + union {
1: + __u32 ruid;
1: + __u32 rgid;
1: + } r;
1: + union {
1: + __u32 euid;
1: + __u32 egid;
1: + } e;
1: +};
1: +
1: +struct sid_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: +};
1: +
1: +struct ptrace_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __kernel_pid_t tracer_pid;
1: + __kernel_pid_t tracer_tgid;
1: +};
1: +
1: +struct comm_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + char comm[16];
1: +};
1: +
1: +struct coredump_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: +};
1: +
1: +struct exit_proc_event {
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __u32 exit_code;
1: + __u32 exit_signal;
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: +};
1: +
1: +struct proc_event {
1: + enum what what;
1: + __u32 cpu;
1: + __u64 timestamp_ns;
1: + union {
1: + struct {
1: + __u32 err;
1: + } ack;
1: + struct fork_proc_event fork;
1: + struct exec_proc_event exec;
1: + struct id_proc_event id;
1: + struct sid_proc_event sid;
1: + struct ptrace_proc_event ptrace;
1: + struct comm_proc_event comm;
1: + struct coredump_proc_event coredump;
1: + struct exit_proc_event exit;
1: + } event_data;
1: +};
1: +
1: +struct local_event {
1: + local_lock_t lock;
1: + __u32 count;
1: +};
1: +
1: +struct nvm_ioctl_info_tgt {
1: + __u32 version[3];
1: + __u32 reserved;
1: + char tgtname[48];
1: +};
1: +
1: +struct nvm_ioctl_info {
1: + __u32 version[3];
1: + __u16 tgtsize;
1: + __u16 reserved16;
1: + __u32 reserved[12];
1: + struct nvm_ioctl_info_tgt tgts[63];
1: +};
1: +
1: +struct nvm_ioctl_device_info {
1: + char devname[32];
1: + char bmname[48];
1: + __u32 bmversion[3];
1: + __u32 flags;
1: + __u32 reserved[8];
1: +};
1: +
1: +struct nvm_ioctl_get_devices {
1: + __u32 nr_devices;
1: + __u32 reserved[31];
1: + struct nvm_ioctl_device_info info[31];
1: +};
1: +
1: +struct nvm_ioctl_create_simple {
1: + __u32 lun_begin;
1: + __u32 lun_end;
1: +};
1: +
1: +struct nvm_ioctl_create_extended {
1: + __u16 lun_begin;
1: + __u16 lun_end;
1: + __u16 op;
1: + __u16 rsv;
1: +};
1: +
1: +enum {
1: + NVM_CONFIG_TYPE_SIMPLE = 0,
1: + NVM_CONFIG_TYPE_EXTENDED = 1,
1: +};
1: +
1: +struct nvm_ioctl_create_conf {
1: + __u32 type;
1: + union {
1: + struct nvm_ioctl_create_simple s;
1: + struct nvm_ioctl_create_extended e;
1: + };
1: +};
1: +
1: +enum {
1: + NVM_TARGET_FACTORY = 1,
1: +};
1: +
1: +struct nvm_ioctl_create {
1: + char dev[32];
1: + char tgttype[48];
1: + char tgtname[32];
1: + __u32 flags;
1: + struct nvm_ioctl_create_conf conf;
1: +};
1: +
1: +struct nvm_ioctl_remove {
1: + char tgtname[32];
1: + __u32 flags;
1: +};
1: +
1: +struct nvm_ioctl_dev_init {
1: + char dev[32];
1: + char mmtype[8];
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + NVM_FACTORY_ERASE_ONLY_USER = 1,
1: + NVM_FACTORY_RESET_HOST_BLKS = 2,
1: + NVM_FACTORY_RESET_GRWN_BBLKS = 4,
1: + NVM_FACTORY_NR_BITS = 8,
1: +};
1: +
1: +struct nvm_ioctl_dev_factory {
1: + char dev[32];
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + NVM_INFO_CMD = 32,
1: + NVM_GET_DEVICES_CMD = 33,
1: + NVM_DEV_CREATE_CMD = 34,
1: + NVM_DEV_REMOVE_CMD = 35,
1: + NVM_DEV_INIT_CMD = 36,
1: + NVM_DEV_FACTORY_CMD = 37,
1: + NVM_DEV_VIO_ADMIN_CMD = 65,
1: + NVM_DEV_VIO_CMD = 66,
1: + NVM_DEV_VIO_USER_CMD = 67,
1: +};
1: +
1: +enum {
1: + NVM_OCSSD_SPEC_12 = 12,
1: + NVM_OCSSD_SPEC_20 = 20,
1: +};
1: +
1: +struct ppa_addr {
1: + union {
1: + struct {
1: + u64 ch: 8;
1: + u64 lun: 8;
1: + u64 blk: 16;
1: + u64 reserved: 32;
1: + } a;
1: + struct {
1: + u64 ch: 8;
1: + u64 lun: 8;
1: + u64 blk: 16;
1: + u64 pg: 16;
1: + u64 pl: 4;
1: + u64 sec: 4;
1: + u64 reserved: 8;
1: + } g;
1: + struct {
1: + u64 grp: 8;
1: + u64 pu: 8;
1: + u64 chk: 16;
1: + u64 sec: 24;
1: + u64 reserved: 8;
1: + } m;
1: + struct {
1: + u64 line: 63;
1: + u64 is_cached: 1;
1: + } c;
1: + u64 ppa;
1: + };
1: +};
1: +
1: +struct nvm_dev;
1: +
1: +typedef int nvm_id_fn(struct nvm_dev *);
1: +
1: +struct nvm_addrf {
1: + u8 ch_len;
1: + u8 lun_len;
1: + u8 chk_len;
1: + u8 sec_len;
1: + u8 rsv_len[2];
1: + u8 ch_offset;
1: + u8 lun_offset;
1: + u8 chk_offset;
1: + u8 sec_offset;
1: + u8 rsv_off[2];
1: + u64 ch_mask;
1: + u64 lun_mask;
1: + u64 chk_mask;
1: + u64 sec_mask;
1: + u64 rsv_mask[2];
1: +};
1: +
1: +struct nvm_geo {
1: + u8 major_ver_id;
1: + u8 minor_ver_id;
1: + u8 version;
1: + int num_ch;
1: + int num_lun;
1: + int all_luns;
1: + int all_chunks;
1: + int op;
1: + sector_t total_secs;
1: + u32 num_chk;
1: + u32 clba;
1: + u16 csecs;
1: + u16 sos;
1: + bool ext;
1: + u32 mdts;
1: + u32 ws_min;
1: + u32 ws_opt;
1: + u32 mw_cunits;
1: + u32 maxoc;
1: + u32 maxocpu;
1: + u32 mccap;
1: + u32 trdt;
1: + u32 trdm;
1: + u32 tprt;
1: + u32 tprm;
1: + u32 tbet;
1: + u32 tbem;
1: + struct nvm_addrf addrf;
1: + u8 vmnt;
1: + u32 cap;
1: + u32 dom;
1: + u8 mtype;
1: + u8 fmtype;
1: + u16 cpar;
1: + u32 mpos;
1: + u8 num_pln;
1: + u8 pln_mode;
1: + u16 num_pg;
1: + u16 fpg_sz;
1: +};
1: +
1: +struct nvm_dev_ops;
1: +
1: +struct nvm_dev {
1: + struct nvm_dev_ops *ops;
1: + struct list_head devices;
1: + struct nvm_geo geo;
1: + long unsigned int *lun_map;
1: + void *dma_pool;
1: + struct request_queue *q;
1: + char name[32];
1: + void *private_data;
1: + struct kref ref;
1: + void *rmap;
1: + struct mutex mlock;
1: + spinlock_t lock;
1: + struct list_head area_list;
1: + struct list_head targets;
1: +};
1: +
1: +typedef int nvm_op_bb_tbl_fn(struct nvm_dev *, struct ppa_addr, u8 *);
1: +
1: +typedef int nvm_op_set_bb_fn(struct nvm_dev *, struct ppa_addr *, int, int);
1: +
1: +struct nvm_chk_meta;
1: +
1: +typedef int nvm_get_chk_meta_fn(struct nvm_dev *, sector_t, int, struct nvm_chk_meta *);
1: +
1: +struct nvm_chk_meta {
1: + u8 state;
1: + u8 type;
1: + u8 wi;
1: + u8 rsvd[5];
1: + u64 slba;
1: + u64 cnlb;
1: + u64 wp;
1: +};
1: +
1: +struct nvm_rq;
1: +
1: +typedef int nvm_submit_io_fn(struct nvm_dev *, struct nvm_rq *, void *);
1: +
1: +typedef void nvm_end_io_fn(struct nvm_rq *);
1: +
1: +struct nvm_tgt_dev;
1: +
1: +struct nvm_rq {
1: + struct nvm_tgt_dev *dev;
1: + struct bio *bio;
1: + union {
1: + struct ppa_addr ppa_addr;
1: + dma_addr_t dma_ppa_list;
1: + };
1: + struct ppa_addr *ppa_list;
1: + void *meta_list;
1: + dma_addr_t dma_meta_list;
1: + nvm_end_io_fn *end_io;
1: + uint8_t opcode;
1: + uint16_t nr_ppas;
1: + uint16_t flags;
1: + u64 ppa_status;
1: + int error;
1: + int is_seq;
1: + void *private;
1: +};
1: +
1: +typedef void *nvm_create_dma_pool_fn(struct nvm_dev *, char *, int);
1: +
1: +typedef void nvm_destroy_dma_pool_fn(void *);
1: +
1: +typedef void *nvm_dev_dma_alloc_fn(struct nvm_dev *, void *, gfp_t, dma_addr_t *);
1: +
1: +typedef void nvm_dev_dma_free_fn(void *, void *, dma_addr_t);
1: +
1: +struct nvm_dev_ops {
1: + nvm_id_fn *identity;
1: + nvm_op_bb_tbl_fn *get_bb_tbl;
1: + nvm_op_set_bb_fn *set_bb_tbl;
1: + nvm_get_chk_meta_fn *get_chk_meta;
1: + nvm_submit_io_fn *submit_io;
1: + nvm_create_dma_pool_fn *create_dma_pool;
1: + nvm_destroy_dma_pool_fn *destroy_dma_pool;
1: + nvm_dev_dma_alloc_fn *dev_dma_alloc;
1: + nvm_dev_dma_free_fn *dev_dma_free;
1: +};
1: +
1: +enum {
1: + NVM_RSP_L2P = 1,
1: + NVM_RSP_ECC = 2,
1: + NVM_ADDRMODE_LINEAR = 0,
1: + NVM_ADDRMODE_CHANNEL = 1,
1: + NVM_PLANE_SINGLE = 1,
1: + NVM_PLANE_DOUBLE = 2,
1: + NVM_PLANE_QUAD = 4,
1: + NVM_RSP_SUCCESS = 0,
1: + NVM_RSP_NOT_CHANGEABLE = 1,
1: + NVM_RSP_ERR_FAILWRITE = 16639,
1: + NVM_RSP_ERR_EMPTYPAGE = 17151,
1: + NVM_RSP_ERR_FAILECC = 17025,
1: + NVM_RSP_ERR_FAILCRC = 16388,
1: + NVM_RSP_WARN_HIGHECC = 18176,
1: + NVM_OP_PWRITE = 145,
1: + NVM_OP_PREAD = 146,
1: + NVM_OP_ERASE = 144,
1: + NVM_IO_SNGL_ACCESS = 0,
1: + NVM_IO_DUAL_ACCESS = 1,
1: + NVM_IO_QUAD_ACCESS = 2,
1: + NVM_IO_SUSPEND = 128,
1: + NVM_IO_SLC_MODE = 256,
1: + NVM_IO_SCRAMBLE_ENABLE = 512,
1: + NVM_BLK_T_FREE = 0,
1: + NVM_BLK_T_BAD = 1,
1: + NVM_BLK_T_GRWN_BAD = 2,
1: + NVM_BLK_T_DEV = 4,
1: + NVM_BLK_T_HOST = 8,
1: + NVM_ID_CAP_SLC = 1,
1: + NVM_ID_CAP_CMD_SUSPEND = 2,
1: + NVM_ID_CAP_SCRAMBLE = 4,
1: + NVM_ID_CAP_ENCRYPT = 8,
1: + NVM_ID_FMTYPE_SLC = 0,
1: + NVM_ID_FMTYPE_MLC = 1,
1: + NVM_ID_DCAP_BBLKMGMT = 1,
1: + NVM_UD_DCAP_ECC = 2,
1: +};
1: +
1: +struct nvm_addrf_12 {
1: + u8 ch_len;
1: + u8 lun_len;
1: + u8 blk_len;
1: + u8 pg_len;
1: + u8 pln_len;
1: + u8 sec_len;
1: + u8 ch_offset;
1: + u8 lun_offset;
1: + u8 blk_offset;
1: + u8 pg_offset;
1: + u8 pln_offset;
1: + u8 sec_offset;
1: + u64 ch_mask;
1: + u64 lun_mask;
1: + u64 blk_mask;
1: + u64 pg_mask;
1: + u64 pln_mask;
1: + u64 sec_mask;
1: +};
1: +
1: +enum {
1: + NVM_CHK_ST_FREE = 1,
1: + NVM_CHK_ST_CLOSED = 2,
1: + NVM_CHK_ST_OPEN = 4,
1: + NVM_CHK_ST_OFFLINE = 8,
1: + NVM_CHK_TP_W_SEQ = 1,
1: + NVM_CHK_TP_W_RAN = 2,
1: + NVM_CHK_TP_SZ_SPEC = 16,
1: +};
1: +
1: +struct nvm_tgt_type;
1: +
1: +struct nvm_target {
1: + struct list_head list;
1: + struct nvm_tgt_dev *dev;
1: + struct nvm_tgt_type *type;
1: + struct gendisk *disk;
1: +};
1: +
1: +struct nvm_tgt_dev {
1: + struct nvm_geo geo;
1: + struct ppa_addr *luns;
1: + struct request_queue *q;
1: + struct nvm_dev *parent;
1: + void *map;
1: +};
1: +
1: +typedef sector_t nvm_tgt_capacity_fn(void *);
1: +
1: +typedef void *nvm_tgt_init_fn(struct nvm_tgt_dev *, struct gendisk *, int);
1: +
1: +typedef void nvm_tgt_exit_fn(void *, bool);
1: +
1: +typedef int nvm_tgt_sysfs_init_fn(struct gendisk *);
1: +
1: +typedef void nvm_tgt_sysfs_exit_fn(struct gendisk *);
1: +
1: +struct nvm_tgt_type {
1: + const char *name;
1: + unsigned int version[3];
1: + int flags;
1: + const struct block_device_operations *bops;
1: + nvm_tgt_capacity_fn *capacity;
1: + nvm_tgt_init_fn *init;
1: + nvm_tgt_exit_fn *exit;
1: + nvm_tgt_sysfs_init_fn *sysfs_init;
1: + nvm_tgt_sysfs_exit_fn *sysfs_exit;
1: + struct list_head list;
1: + struct module *owner;
1: +};
1: +
1: +enum {
1: + NVM_TGT_F_DEV_L2P = 0,
1: + NVM_TGT_F_HOST_L2P = 1,
1: +};
1: +
1: +struct nvm_ch_map {
1: + int ch_off;
1: + int num_lun;
1: + int *lun_offs;
1: +};
1: +
1: +struct nvm_dev_map {
1: + struct nvm_ch_map *chnls;
1: + int num_ch;
1: +};
1: +
1: +struct component_ops {
1: + int (*bind)(struct device *, struct device *, void *);
1: + void (*unbind)(struct device *, struct device *, void *);
1: +};
1: +
1: +struct component_master_ops {
1: + int (*bind)(struct device *);
1: + void (*unbind)(struct device *);
1: +};
1: +
1: +struct component;
1: +
1: +struct component_match_array {
1: + void *data;
1: + int (*compare)(struct device *, void *);
1: + int (*compare_typed)(struct device *, int, void *);
1: + void (*release)(struct device *, void *);
1: + struct component *component;
1: + bool duplicate;
1: +};
1: +
1: +struct master;
1: +
1: +struct component {
1: + struct list_head node;
1: + struct master *master;
1: + bool bound;
1: + const struct component_ops *ops;
1: + int subcomponent;
1: + struct device *dev;
1: +};
1: +
1: +struct component_match {
1: + size_t alloc;
1: + size_t num;
1: + struct component_match_array *compare;
1: +};
1: +
1: +struct master {
1: + struct list_head node;
1: + bool bound;
1: + const struct component_master_ops *ops;
1: + struct device *dev;
1: + struct component_match *match;
1: + struct dentry *dentry;
1: +};
1: +
1: +struct wake_irq {
1: + struct device *dev;
1: + unsigned int status;
1: + int irq;
1: + const char *name;
1: +};
1: +
1: +enum dpm_order {
1: + DPM_ORDER_NONE = 0,
1: + DPM_ORDER_DEV_AFTER_PARENT = 1,
1: + DPM_ORDER_PARENT_BEFORE_DEV = 2,
1: + DPM_ORDER_DEV_LAST = 3,
1: +};
1: +
1: +struct subsys_private {
1: + struct kset subsys;
1: + struct kset *devices_kset;
1: + struct list_head interfaces;
1: + struct mutex mutex;
1: + struct kset *drivers_kset;
1: + struct klist klist_devices;
1: + struct klist klist_drivers;
1: + struct blocking_notifier_head bus_notifier;
1: + unsigned int drivers_autoprobe: 1;
1: + struct bus_type *bus;
1: + struct kset glue_dirs;
1: + struct class *class;
1: +};
1: +
1: +struct driver_private {
1: + struct kobject kobj;
1: + struct klist klist_devices;
1: + struct klist_node knode_bus;
1: + struct module_kobject *mkobj;
1: + struct device_driver *driver;
1: +};
1: +
1: +struct device_private {
1: + struct klist klist_children;
1: + struct klist_node knode_parent;
1: + struct klist_node knode_driver;
1: + struct klist_node knode_bus;
1: + struct klist_node knode_class;
1: + struct list_head deferred_probe;
1: + struct device_driver *async_driver;
1: + char *deferred_probe_reason;
1: + struct device *device;
1: + u8 dead: 1;
1: +};
1: +
1: +union device_attr_group_devres {
1: + const struct attribute_group *group;
1: + const struct attribute_group **groups;
1: +};
1: +
1: +struct class_dir {
1: + struct kobject kobj;
1: + struct class *class;
1: +};
1: +
1: +struct root_device {
1: + struct device dev;
1: + struct module *owner;
1: +};
1: +
1: +struct subsys_dev_iter {
1: + struct klist_iter ki;
1: + const struct device_type *type;
1: +};
1: +
1: +struct subsys_interface {
1: + const char *name;
1: + struct bus_type *subsys;
1: + struct list_head node;
1: + int (*add_dev)(struct device *, struct subsys_interface *);
1: + void (*remove_dev)(struct device *, struct subsys_interface *);
1: +};
1: +
1: +struct device_attach_data {
1: + struct device *dev;
1: + bool check_async;
1: + bool want_async;
1: + bool have_async;
1: +};
1: +
1: +struct class_attribute_string {
1: + struct class_attribute attr;
1: + char *str;
1: +};
1: +
1: +struct class_compat {
1: + struct kobject *kobj;
1: +};
1: +
1: +struct platform_object {
1: + struct platform_device pdev;
1: + char name[0];
1: +};
1: +
1: +struct cpu_attr {
1: + struct device_attribute attr;
1: + const struct cpumask * const map;
1: +};
1: +
1: +typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
1: +
1: +struct probe {
1: + struct probe *next;
1: + dev_t dev;
1: + long unsigned int range;
1: + struct module *owner;
1: + kobj_probe_t *get;
1: + int (*lock)(dev_t, void *);
1: + void *data;
1: +};
1: +
1: +struct kobj_map___2 {
1: + struct probe *probes[255];
1: + struct mutex *lock;
1: +};
1: +
1: +typedef int (*dr_match_t)(struct device *, void *, void *);
1: +
1: +struct devres_node {
1: + struct list_head entry;
1: + dr_release_t release;
1: +};
1: +
1: +struct devres___2 {
1: + struct devres_node node;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u8 data[0];
1: +};
1: +
1: +struct devres_group {
1: + struct devres_node node[2];
1: + void *id;
1: + int color;
1: +};
1: +
1: +struct action_devres {
1: + void *data;
1: + void (*action)(void *);
1: +};
1: +
1: +struct pages_devres {
1: + long unsigned int addr;
1: + unsigned int order;
1: +};
1: +
1: +struct attribute_container {
1: + struct list_head node;
1: + struct klist containers;
1: + struct class *class;
1: + const struct attribute_group *grp;
1: + struct device_attribute **attrs;
1: + int (*match)(struct attribute_container *, struct device *);
1: + long unsigned int flags;
1: +};
1: +
1: +struct internal_container {
1: + struct klist_node node;
1: + struct attribute_container *cont;
1: + struct device classdev;
1: +};
1: +
1: +struct transport_container;
1: +
1: +struct transport_class {
1: + struct class class;
1: + int (*setup)(struct transport_container *, struct device *, struct device *);
1: + int (*configure)(struct transport_container *, struct device *, struct device *);
1: + int (*remove)(struct transport_container *, struct device *, struct device *);
1: +};
1: +
1: +struct transport_container {
1: + struct attribute_container ac;
1: + const struct attribute_group *statistics;
1: +};
1: +
1: +struct anon_transport_class {
1: + struct transport_class tclass;
1: + struct attribute_container container;
1: +};
1: +
1: +typedef void * (*devcon_match_fn_t)(struct fwnode_handle *, const char *, void *);
1: +
1: +struct mii_bus;
1: +
1: +struct mdio_device {
1: + struct device dev;
1: + struct mii_bus *bus;
1: + char modalias[32];
1: + int (*bus_match)(struct device *, struct device_driver *);
1: + void (*device_free)(struct mdio_device *);
1: + void (*device_remove)(struct mdio_device *);
1: + int addr;
1: + int flags;
1: + struct gpio_desc *reset_gpio;
1: + struct reset_control *reset_ctrl;
1: + unsigned int reset_assert_delay;
1: + unsigned int reset_deassert_delay;
1: +};
1: +
1: +struct phy_c45_device_ids {
1: + u32 devices_in_package;
1: + u32 mmds_present;
1: + u32 device_ids[32];
1: +};
1: +
1: +enum phy_state {
1: + PHY_DOWN = 0,
1: + PHY_READY = 1,
1: + PHY_HALTED = 2,
1: + PHY_UP = 3,
1: + PHY_RUNNING = 4,
1: + PHY_NOLINK = 5,
1: + PHY_CABLETEST = 6,
1: +};
1: +
1: +typedef enum {
1: + PHY_INTERFACE_MODE_NA = 0,
1: + PHY_INTERFACE_MODE_INTERNAL = 1,
1: + PHY_INTERFACE_MODE_MII = 2,
1: + PHY_INTERFACE_MODE_GMII = 3,
1: + PHY_INTERFACE_MODE_SGMII = 4,
1: + PHY_INTERFACE_MODE_TBI = 5,
1: + PHY_INTERFACE_MODE_REVMII = 6,
1: + PHY_INTERFACE_MODE_RMII = 7,
1: + PHY_INTERFACE_MODE_RGMII = 8,
1: + PHY_INTERFACE_MODE_RGMII_ID = 9,
1: + PHY_INTERFACE_MODE_RGMII_RXID = 10,
1: + PHY_INTERFACE_MODE_RGMII_TXID = 11,
1: + PHY_INTERFACE_MODE_RTBI = 12,
1: + PHY_INTERFACE_MODE_SMII = 13,
1: + PHY_INTERFACE_MODE_XGMII = 14,
1: + PHY_INTERFACE_MODE_XLGMII = 15,
1: + PHY_INTERFACE_MODE_MOCA = 16,
1: + PHY_INTERFACE_MODE_QSGMII = 17,
1: + PHY_INTERFACE_MODE_TRGMII = 18,
1: + PHY_INTERFACE_MODE_1000BASEX = 19,
1: + PHY_INTERFACE_MODE_2500BASEX = 20,
1: + PHY_INTERFACE_MODE_RXAUI = 21,
1: + PHY_INTERFACE_MODE_XAUI = 22,
1: + PHY_INTERFACE_MODE_10GBASER = 23,
1: + PHY_INTERFACE_MODE_USXGMII = 24,
1: + PHY_INTERFACE_MODE_10GKR = 25,
1: + PHY_INTERFACE_MODE_MAX = 26,
1: +} phy_interface_t;
1: +
1: +struct phylink;
1: +
1: +struct phy_driver;
1: +
1: +struct phy_package_shared;
1: +
1: +struct mii_timestamper;
1: +
1: +struct phy_device {
1: + struct mdio_device mdio;
1: + struct phy_driver *drv;
1: + u32 phy_id;
1: + struct phy_c45_device_ids c45_ids;
1: + unsigned int is_c45: 1;
1: + unsigned int is_internal: 1;
1: + unsigned int is_pseudo_fixed_link: 1;
1: + unsigned int is_gigabit_capable: 1;
1: + unsigned int has_fixups: 1;
1: + unsigned int suspended: 1;
1: + unsigned int suspended_by_mdio_bus: 1;
1: + unsigned int sysfs_links: 1;
1: + unsigned int loopback_enabled: 1;
1: + unsigned int downshifted_rate: 1;
1: + unsigned int autoneg: 1;
1: + unsigned int link: 1;
1: + unsigned int autoneg_complete: 1;
1: + unsigned int interrupts: 1;
1: + enum phy_state state;
1: + u32 dev_flags;
1: + phy_interface_t interface;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + int asym_pause;
1: + u8 master_slave_get;
1: + u8 master_slave_set;
1: + u8 master_slave_state;
1: + long unsigned int supported[2];
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + long unsigned int adv_old[2];
1: + u32 eee_broken_modes;
1: + int irq;
1: + void *priv;
1: + struct phy_package_shared *shared;
1: + struct sk_buff *skb;
1: + void *ehdr;
1: + struct nlattr *nest;
1: + struct delayed_work state_queue;
1: + struct mutex lock;
1: + bool sfp_bus_attached;
1: + struct sfp_bus *sfp_bus;
1: + struct phylink *phylink;
1: + struct net_device *attached_dev;
1: + struct mii_timestamper *mii_ts;
1: + u8 mdix;
1: + u8 mdix_ctrl;
1: + void (*phy_link_change)(struct phy_device *, bool);
1: + void (*adjust_link)(struct net_device *);
1: + const struct macsec_ops *macsec_ops;
1: +};
1: +
1: +struct phy_tdr_config {
1: + u32 first;
1: + u32 last;
1: + u32 step;
1: + s8 pair;
1: +};
1: +
1: +struct mdio_bus_stats {
1: + u64_stats_t transfers;
1: + u64_stats_t errors;
1: + u64_stats_t writes;
1: + u64_stats_t reads;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct mii_bus {
1: + struct module *owner;
1: + const char *name;
1: + char id[61];
1: + void *priv;
1: + int (*read)(struct mii_bus *, int, int);
1: + int (*write)(struct mii_bus *, int, int, u16);
1: + int (*reset)(struct mii_bus *);
1: + struct mdio_bus_stats stats[32];
1: + struct mutex mdio_lock;
1: + struct device *parent;
1: + enum {
1: + MDIOBUS_ALLOCATED = 1,
1: + MDIOBUS_REGISTERED = 2,
1: + MDIOBUS_UNREGISTERED = 3,
1: + MDIOBUS_RELEASED = 4,
1: + } state;
1: + struct device dev;
1: + struct mdio_device *mdio_map[32];
1: + u32 phy_mask;
1: + u32 phy_ignore_ta_mask;
1: + int irq[32];
1: + int reset_delay_us;
1: + int reset_post_delay_us;
1: + struct gpio_desc *reset_gpiod;
1: + enum {
1: + MDIOBUS_NO_CAP = 0,
1: + MDIOBUS_C22 = 1,
1: + MDIOBUS_C45 = 2,
1: + MDIOBUS_C22_C45 = 3,
1: + } probe_capabilities;
1: + struct mutex shared_lock;
1: + struct phy_package_shared *shared[32];
1: +};
1: +
1: +struct mdio_driver_common {
1: + struct device_driver driver;
1: + int flags;
1: +};
1: +
1: +struct mii_timestamper {
1: + bool (*rxtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: + void (*txtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: + int (*hwtstamp)(struct mii_timestamper *, struct ifreq *);
1: + void (*link_state)(struct mii_timestamper *, struct phy_device *);
1: + int (*ts_info)(struct mii_timestamper *, struct ethtool_ts_info *);
1: + struct device *device;
1: +};
1: +
1: +struct phy_package_shared {
1: + int addr;
1: + refcount_t refcnt;
1: + long unsigned int flags;
1: + size_t priv_size;
1: + void *priv;
1: +};
1: +
1: +struct phy_driver {
1: + struct mdio_driver_common mdiodrv;
1: + u32 phy_id;
1: + char *name;
1: + u32 phy_id_mask;
1: + const long unsigned int * const features;
1: + u32 flags;
1: + const void *driver_data;
1: + int (*soft_reset)(struct phy_device *);
1: + int (*config_init)(struct phy_device *);
1: + int (*probe)(struct phy_device *);
1: + int (*get_features)(struct phy_device *);
1: + int (*suspend)(struct phy_device *);
1: + int (*resume)(struct phy_device *);
1: + int (*config_aneg)(struct phy_device *);
1: + int (*aneg_done)(struct phy_device *);
1: + int (*read_status)(struct phy_device *);
1: + int (*ack_interrupt)(struct phy_device *);
1: + int (*config_intr)(struct phy_device *);
1: + int (*did_interrupt)(struct phy_device *);
1: + irqreturn_t (*handle_interrupt)(struct phy_device *);
1: + void (*remove)(struct phy_device *);
1: + int (*match_phy_device)(struct phy_device *);
1: + int (*set_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: + void (*get_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: + void (*link_change_notify)(struct phy_device *);
1: + int (*read_mmd)(struct phy_device *, int, u16);
1: + int (*write_mmd)(struct phy_device *, int, u16, u16);
1: + int (*read_page)(struct phy_device *);
1: + int (*write_page)(struct phy_device *, int);
1: + int (*module_info)(struct phy_device *, struct ethtool_modinfo *);
1: + int (*module_eeprom)(struct phy_device *, struct ethtool_eeprom *, u8 *);
1: + int (*cable_test_start)(struct phy_device *);
1: + int (*cable_test_tdr_start)(struct phy_device *, const struct phy_tdr_config *);
1: + int (*cable_test_get_status)(struct phy_device *, bool *);
1: + int (*get_sset_count)(struct phy_device *);
1: + void (*get_strings)(struct phy_device *, u8 *);
1: + void (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: + int (*get_tunable)(struct phy_device *, struct ethtool_tunable *, void *);
1: + int (*set_tunable)(struct phy_device *, struct ethtool_tunable *, const void *);
1: + int (*set_loopback)(struct phy_device *, bool);
1: + int (*get_sqi)(struct phy_device *);
1: + int (*get_sqi_max)(struct phy_device *);
1: +};
1: +
1: +struct cache_type_info {
1: + const char *size_prop;
1: + const char *line_size_props[2];
1: + const char *nr_sets_prop;
1: +};
1: +
1: +struct software_node;
1: +
1: +struct software_node_ref_args {
1: + const struct software_node *node;
1: + unsigned int nargs;
1: + u64 args[8];
1: +};
1: +
1: +struct software_node {
1: + const char *name;
1: + const struct software_node *parent;
1: + const struct property_entry *properties;
1: +};
1: +
1: +struct swnode {
1: + int id;
1: + struct kobject kobj;
1: + struct fwnode_handle fwnode;
1: + const struct software_node *node;
1: + struct ida child_ids;
1: + struct list_head entry;
1: + struct list_head children;
1: + struct swnode *parent;
1: + unsigned int allocated: 1;
1: +};
1: +
1: +struct req {
1: + struct req *next;
1: + struct completion done;
1: + int err;
1: + const char *name;
1: + umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct device *dev;
1: +};
1: +
1: +typedef int (*pm_callback_t)(struct device *);
1: +
1: +struct of_phandle_iterator {
1: + const char *cells_name;
1: + int cell_count;
1: + const struct device_node *parent;
1: + const __be32 *list_end;
1: + const __be32 *phandle_end;
1: + const __be32 *cur;
1: + uint32_t cur_count;
1: + phandle phandle;
1: + struct device_node *node;
1: +};
1: +
1: +enum genpd_notication {
1: + GENPD_NOTIFY_PRE_OFF = 0,
1: + GENPD_NOTIFY_OFF = 1,
1: + GENPD_NOTIFY_PRE_ON = 2,
1: + GENPD_NOTIFY_ON = 3,
1: +};
1: +
1: +struct gpd_link {
1: + struct generic_pm_domain *parent;
1: + struct list_head parent_node;
1: + struct generic_pm_domain *child;
1: + struct list_head child_node;
1: + unsigned int performance_state;
1: + unsigned int prev_performance_state;
1: +};
1: +
1: +struct gpd_timing_data {
1: + s64 suspend_latency_ns;
1: + s64 resume_latency_ns;
1: + s64 effective_constraint_ns;
1: + bool constraint_changed;
1: + bool cached_suspend_ok;
1: +};
1: +
1: +struct generic_pm_domain_data {
1: + struct pm_domain_data base;
1: + struct gpd_timing_data td;
1: + struct notifier_block nb;
1: + struct notifier_block *power_nb;
1: + int cpu;
1: + unsigned int performance_state;
1: + void *data;
1: +};
1: +
1: +struct of_genpd_provider {
1: + struct list_head link;
1: + struct device_node *node;
1: + genpd_xlate_t xlate;
1: + void *data;
1: +};
1: +
1: +struct pm_clk_notifier_block {
1: + struct notifier_block nb;
1: + struct dev_pm_domain *pm_domain;
1: + char *con_ids[0];
1: +};
1: +
1: +enum pce_status {
1: + PCE_STATUS_NONE = 0,
1: + PCE_STATUS_ACQUIRED = 1,
1: + PCE_STATUS_ENABLED = 2,
1: + PCE_STATUS_ERROR = 3,
1: +};
1: +
1: +struct pm_clock_entry {
1: + struct list_head node;
1: + char *con_id;
1: + struct clk *clk;
1: + enum pce_status status;
1: +};
1: +
1: +struct firmware_fallback_config {
1: + unsigned int force_sysfs_fallback;
1: + unsigned int ignore_sysfs_fallback;
1: + int old_timeout;
1: + int loading_timeout;
1: +};
1: +
1: +struct builtin_fw {
1: + char *name;
1: + void *data;
1: + long unsigned int size;
1: +};
1: +
1: +enum fw_opt {
1: + FW_OPT_UEVENT = 1,
1: + FW_OPT_NOWAIT = 2,
1: + FW_OPT_USERHELPER = 4,
1: + FW_OPT_NO_WARN = 8,
1: + FW_OPT_NOCACHE = 16,
1: + FW_OPT_NOFALLBACK_SYSFS = 32,
1: + FW_OPT_FALLBACK_PLATFORM = 64,
1: + FW_OPT_PARTIAL = 128,
1: +};
1: +
1: +enum fw_status {
1: + FW_STATUS_UNKNOWN = 0,
1: + FW_STATUS_LOADING = 1,
1: + FW_STATUS_DONE = 2,
1: + FW_STATUS_ABORTED = 3,
1: +};
1: +
1: +struct fw_state {
1: + struct completion completion;
1: + enum fw_status status;
1: +};
1: +
1: +struct firmware_cache;
1: +
1: +struct fw_priv {
1: + struct kref ref;
1: + struct list_head list;
1: + struct firmware_cache *fwc;
1: + struct fw_state fw_st;
1: + void *data;
1: + size_t size;
1: + size_t allocated_size;
1: + size_t offset;
1: + u32 opt_flags;
1: + bool is_paged_buf;
1: + struct page **pages;
1: + int nr_pages;
1: + int page_array_size;
1: + bool need_uevent;
1: + struct list_head pending_list;
1: + const char *fw_name;
1: +};
1: +
1: +struct firmware_cache {
1: + spinlock_t lock;
1: + struct list_head head;
1: + int state;
1: +};
1: +
1: +struct firmware_work {
1: + struct work_struct work;
1: + struct module *module;
1: + const char *name;
1: + struct device *device;
1: + void *context;
1: + void (*cont)(const struct firmware *, void *);
1: + u32 opt_flags;
1: +};
1: +
1: +struct fw_sysfs {
1: + bool nowait;
1: + struct device dev;
1: + struct fw_priv *fw_priv;
1: + struct firmware *fw;
1: +};
1: +
1: +typedef void (*node_registration_func_t)(struct node___2 *);
1: +
1: +typedef int (*walk_memory_blocks_func_t)(struct memory_block *, void *);
1: +
1: +struct node_access_nodes {
1: + struct device dev;
1: + struct list_head list_node;
1: + unsigned int access;
1: + struct node_hmem_attrs hmem_attrs;
1: +};
1: +
1: +struct node_cache_info {
1: + struct device dev;
1: + struct list_head node;
1: + struct node_cache_attrs cache_attrs;
1: +};
1: +
1: +struct node_attr {
1: + struct device_attribute attr;
1: + enum node_states state;
1: +};
1: +
1: +struct for_each_memory_block_cb_data {
1: + walk_memory_blocks_func_t func;
1: + void *arg;
1: +};
1: +
1: +typedef int (*regmap_hw_write)(void *, const void *, size_t);
1: +
1: +typedef int (*regmap_hw_gather_write)(void *, const void *, size_t, const void *, size_t);
1: +
1: +struct regmap_async;
1: +
1: +typedef int (*regmap_hw_async_write)(void *, const void *, size_t, const void *, size_t, struct regmap_async *);
1: +
1: +struct regmap___2;
1: +
1: +struct regmap_async {
1: + struct list_head list;
1: + struct regmap___2 *map;
1: + void *work_buf;
1: +};
1: +
1: +typedef int (*regmap_hw_read)(void *, const void *, size_t, void *, size_t);
1: +
1: +typedef int (*regmap_hw_reg_read)(void *, unsigned int, unsigned int *);
1: +
1: +typedef int (*regmap_hw_reg_write)(void *, unsigned int, unsigned int);
1: +
1: +typedef int (*regmap_hw_reg_update_bits)(void *, unsigned int, unsigned int, unsigned int);
1: +
1: +typedef struct regmap_async * (*regmap_hw_async_alloc)();
1: +
1: +typedef void (*regmap_hw_free_context)(void *);
1: +
1: +struct regmap_bus {
1: + bool fast_io;
1: + regmap_hw_write write;
1: + regmap_hw_gather_write gather_write;
1: + regmap_hw_async_write async_write;
1: + regmap_hw_reg_write reg_write;
1: + regmap_hw_reg_update_bits reg_update_bits;
1: + regmap_hw_read read;
1: + regmap_hw_reg_read reg_read;
1: + regmap_hw_free_context free_context;
1: + regmap_hw_async_alloc async_alloc;
1: + u8 read_flag_mask;
1: + enum regmap_endian reg_format_endian_default;
1: + enum regmap_endian val_format_endian_default;
1: + size_t max_raw_read;
1: + size_t max_raw_write;
1: +};
1: +
1: +struct reg_field {
1: + unsigned int reg;
1: + unsigned int lsb;
1: + unsigned int msb;
1: + unsigned int id_size;
1: + unsigned int id_offset;
1: +};
1: +
1: +struct regmap_format {
1: + size_t buf_size;
1: + size_t reg_bytes;
1: + size_t pad_bytes;
1: + size_t val_bytes;
1: + void (*format_write)(struct regmap___2 *, unsigned int, unsigned int);
1: + void (*format_reg)(void *, unsigned int, unsigned int);
1: + void (*format_val)(void *, unsigned int, unsigned int);
1: + unsigned int (*parse_val)(const void *);
1: + void (*parse_inplace)(void *);
1: +};
1: +
1: +struct regcache_ops;
1: +
1: +struct regmap___2 {
1: + union {
1: + struct mutex mutex;
1: + struct {
1: + spinlock_t spinlock;
1: + long unsigned int spinlock_flags;
1: + };
1: + };
1: + regmap_lock lock;
1: + regmap_unlock unlock;
1: + void *lock_arg;
1: + gfp_t alloc_flags;
1: + struct device *dev;
1: + void *work_buf;
1: + struct regmap_format format;
1: + const struct regmap_bus *bus;
1: + void *bus_context;
1: + const char *name;
1: + bool async;
1: + spinlock_t async_lock;
1: + wait_queue_head_t async_waitq;
1: + struct list_head async_list;
1: + struct list_head async_free;
1: + int async_ret;
1: + bool debugfs_disable;
1: + struct dentry *debugfs;
1: + const char *debugfs_name;
1: + unsigned int debugfs_reg_len;
1: + unsigned int debugfs_val_len;
1: + unsigned int debugfs_tot_len;
1: + struct list_head debugfs_off_cache;
1: + struct mutex cache_lock;
1: + unsigned int max_register;
1: + bool (*writeable_reg)(struct device *, unsigned int);
1: + bool (*readable_reg)(struct device *, unsigned int);
1: + bool (*volatile_reg)(struct device *, unsigned int);
1: + bool (*precious_reg)(struct device *, unsigned int);
1: + bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: + bool (*readable_noinc_reg)(struct device *, unsigned int);
1: + const struct regmap_access_table *wr_table;
1: + const struct regmap_access_table *rd_table;
1: + const struct regmap_access_table *volatile_table;
1: + const struct regmap_access_table *precious_table;
1: + const struct regmap_access_table *wr_noinc_table;
1: + const struct regmap_access_table *rd_noinc_table;
1: + int (*reg_read)(void *, unsigned int, unsigned int *);
1: + int (*reg_write)(void *, unsigned int, unsigned int);
1: + int (*reg_update_bits)(void *, unsigned int, unsigned int, unsigned int);
1: + bool defer_caching;
1: + long unsigned int read_flag_mask;
1: + long unsigned int write_flag_mask;
1: + int reg_shift;
1: + int reg_stride;
1: + int reg_stride_order;
1: + const struct regcache_ops *cache_ops;
1: + enum regcache_type cache_type;
1: + unsigned int cache_size_raw;
1: + unsigned int cache_word_size;
1: + unsigned int num_reg_defaults;
1: + unsigned int num_reg_defaults_raw;
1: + bool cache_only;
1: + bool cache_bypass;
1: + bool cache_free;
1: + struct reg_default *reg_defaults;
1: + const void *reg_defaults_raw;
1: + void *cache;
1: + bool cache_dirty;
1: + bool no_sync_defaults;
1: + struct reg_sequence *patch;
1: + int patch_regs;
1: + bool use_single_read;
1: + bool use_single_write;
1: + bool can_multi_write;
1: + size_t max_raw_read;
1: + size_t max_raw_write;
1: + struct rb_root range_tree;
1: + void *selector_work_buf;
1: + struct hwspinlock *hwlock;
1: + bool can_sleep;
1: +};
1: +
1: +struct regcache_ops {
1: + const char *name;
1: + enum regcache_type type;
1: + int (*init)(struct regmap___2 *);
1: + int (*exit)(struct regmap___2 *);
1: + void (*debugfs_init)(struct regmap___2 *);
1: + int (*read)(struct regmap___2 *, unsigned int, unsigned int *);
1: + int (*write)(struct regmap___2 *, unsigned int, unsigned int);
1: + int (*sync)(struct regmap___2 *, unsigned int, unsigned int);
1: + int (*drop)(struct regmap___2 *, unsigned int, unsigned int);
1: +};
1: +
1: +struct regmap_range_node {
1: + struct rb_node node;
1: + const char *name;
1: + struct regmap___2 *map;
1: + unsigned int range_min;
1: + unsigned int range_max;
1: + unsigned int selector_reg;
1: + unsigned int selector_mask;
1: + int selector_shift;
1: + unsigned int window_start;
1: + unsigned int window_len;
1: +};
1: +
1: +struct regmap_field {
1: + struct regmap___2 *regmap;
1: + unsigned int mask;
1: + unsigned int shift;
1: + unsigned int reg;
1: + unsigned int id_size;
1: + unsigned int id_offset;
1: +};
1: +
1: +struct trace_event_raw_regmap_reg {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int reg;
1: + unsigned int val;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regmap_block {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int reg;
1: + int count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regcache_sync {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_status;
1: + u32 __data_loc_type;
1: + int type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regmap_bool {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int flag;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regmap_async {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_regcache_drop_region {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int from;
1: + unsigned int to;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_regmap_reg {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regmap_block {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regcache_sync {
1: + u32 name;
1: + u32 status;
1: + u32 type;
1: +};
1: +
1: +struct trace_event_data_offsets_regmap_bool {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regmap_async {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_regcache_drop_region {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_regmap_reg_write)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_regmap_reg_read)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_regmap_reg_read_cache)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_regmap_hw_read_start)(void *, struct regmap___2 *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_regmap_hw_read_done)(void *, struct regmap___2 *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_regmap_hw_write_start)(void *, struct regmap___2 *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_regmap_hw_write_done)(void *, struct regmap___2 *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_regcache_sync)(void *, struct regmap___2 *, const char *, const char *);
1: +
1: +typedef void (*btf_trace_regmap_cache_only)(void *, struct regmap___2 *, bool);
1: +
1: +typedef void (*btf_trace_regmap_cache_bypass)(void *, struct regmap___2 *, bool);
1: +
1: +typedef void (*btf_trace_regmap_async_write_start)(void *, struct regmap___2 *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_regmap_async_io_complete)(void *, struct regmap___2 *);
1: +
1: +typedef void (*btf_trace_regmap_async_complete_start)(void *, struct regmap___2 *);
1: +
1: +typedef void (*btf_trace_regmap_async_complete_done)(void *, struct regmap___2 *);
1: +
1: +typedef void (*btf_trace_regcache_drop_region)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +
1: +struct regcache_rbtree_node {
1: + void *block;
1: + long int *cache_present;
1: + unsigned int base_reg;
1: + unsigned int blklen;
1: + struct rb_node node;
1: +};
1: +
1: +struct regcache_rbtree_ctx {
1: + struct rb_root root;
1: + struct regcache_rbtree_node *cached_rbnode;
1: +};
1: +
1: +struct regmap_debugfs_off_cache {
1: + struct list_head list;
1: + off_t min;
1: + off_t max;
1: + unsigned int base_reg;
1: + unsigned int max_reg;
1: +};
1: +
1: +struct regmap_debugfs_node {
1: + struct regmap___2 *map;
1: + struct list_head link;
1: +};
1: +
1: +struct ptp_system_timestamp {
1: + struct timespec64 pre_ts;
1: + struct timespec64 post_ts;
1: +};
1: +
1: +struct spi_statistics {
1: + spinlock_t lock;
1: + long unsigned int messages;
1: + long unsigned int transfers;
1: + long unsigned int errors;
1: + long unsigned int timedout;
1: + long unsigned int spi_sync;
1: + long unsigned int spi_sync_immediate;
1: + long unsigned int spi_async;
1: + long long unsigned int bytes;
1: + long long unsigned int bytes_rx;
1: + long long unsigned int bytes_tx;
1: + long unsigned int transfer_bytes_histo[17];
1: + long unsigned int transfers_split_maxsize;
1: +};
1: +
1: +struct spi_delay {
1: + u16 value;
1: + u8 unit;
1: +};
1: +
1: +struct spi_controller;
1: +
1: +struct spi_device {
1: + struct device dev;
1: + struct spi_controller *controller;
1: + struct spi_controller *master;
1: + u32 max_speed_hz;
1: + u8 chip_select;
1: + u8 bits_per_word;
1: + bool rt;
1: + u32 mode;
1: + int irq;
1: + void *controller_state;
1: + void *controller_data;
1: + char modalias[32];
1: + const char *driver_override;
1: + int cs_gpio;
1: + struct gpio_desc *cs_gpiod;
1: + struct spi_delay word_delay;
1: + struct spi_statistics statistics;
1: +};
1: +
1: +struct spi_message;
1: +
1: +struct spi_transfer;
1: +
1: +struct spi_controller_mem_ops;
1: +
1: +struct spi_controller {
1: + struct device dev;
1: + struct list_head list;
1: + s16 bus_num;
1: + u16 num_chipselect;
1: + u16 dma_alignment;
1: + u32 mode_bits;
1: + u32 buswidth_override_bits;
1: + u32 bits_per_word_mask;
1: + u32 min_speed_hz;
1: + u32 max_speed_hz;
1: + u16 flags;
1: + bool slave;
1: + size_t (*max_transfer_size)(struct spi_device *);
1: + size_t (*max_message_size)(struct spi_device *);
1: + struct mutex io_mutex;
1: + spinlock_t bus_lock_spinlock;
1: + struct mutex bus_lock_mutex;
1: + bool bus_lock_flag;
1: + int (*setup)(struct spi_device *);
1: + int (*set_cs_timing)(struct spi_device *, struct spi_delay *, struct spi_delay *, struct spi_delay *);
1: + int (*transfer)(struct spi_device *, struct spi_message *);
1: + void (*cleanup)(struct spi_device *);
1: + bool (*can_dma)(struct spi_controller *, struct spi_device *, struct spi_transfer *);
1: + bool queued;
1: + struct kthread_worker *kworker;
1: + struct kthread_work pump_messages;
1: + spinlock_t queue_lock;
1: + struct list_head queue;
1: + struct spi_message *cur_msg;
1: + bool idling;
1: + bool busy;
1: + bool running;
1: + bool rt;
1: + bool auto_runtime_pm;
1: + bool cur_msg_prepared;
1: + bool cur_msg_mapped;
1: + bool last_cs_enable;
1: + bool last_cs_mode_high;
1: + bool fallback;
1: + struct completion xfer_completion;
1: + size_t max_dma_len;
1: + int (*prepare_transfer_hardware)(struct spi_controller *);
1: + int (*transfer_one_message)(struct spi_controller *, struct spi_message *);
1: + int (*unprepare_transfer_hardware)(struct spi_controller *);
1: + int (*prepare_message)(struct spi_controller *, struct spi_message *);
1: + int (*unprepare_message)(struct spi_controller *, struct spi_message *);
1: + int (*slave_abort)(struct spi_controller *);
1: + void (*set_cs)(struct spi_device *, bool);
1: + int (*transfer_one)(struct spi_controller *, struct spi_device *, struct spi_transfer *);
1: + void (*handle_err)(struct spi_controller *, struct spi_message *);
1: + const struct spi_controller_mem_ops *mem_ops;
1: + struct spi_delay cs_setup;
1: + struct spi_delay cs_hold;
1: + struct spi_delay cs_inactive;
1: + int *cs_gpios;
1: + struct gpio_desc **cs_gpiods;
1: + bool use_gpio_descriptors;
1: + u8 unused_native_cs;
1: + u8 max_native_cs;
1: + struct spi_statistics statistics;
1: + struct dma_chan *dma_tx;
1: + struct dma_chan *dma_rx;
1: + void *dummy_rx;
1: + void *dummy_tx;
1: + int (*fw_translate_cs)(struct spi_controller *, unsigned int);
1: + bool ptp_sts_supported;
1: + long unsigned int irq_flags;
1: +};
1: +
1: +struct spi_message {
1: + struct list_head transfers;
1: + struct spi_device *spi;
1: + unsigned int is_dma_mapped: 1;
1: + void (*complete)(void *);
1: + void *context;
1: + unsigned int frame_length;
1: + unsigned int actual_length;
1: + int status;
1: + struct list_head queue;
1: + void *state;
1: + struct list_head resources;
1: +};
1: +
1: +struct spi_transfer {
1: + const void *tx_buf;
1: + void *rx_buf;
1: + unsigned int len;
1: + dma_addr_t tx_dma;
1: + dma_addr_t rx_dma;
1: + struct sg_table tx_sg;
1: + struct sg_table rx_sg;
1: + unsigned int cs_change: 1;
1: + unsigned int tx_nbits: 3;
1: + unsigned int rx_nbits: 3;
1: + u8 bits_per_word;
1: + u16 delay_usecs;
1: + struct spi_delay delay;
1: + struct spi_delay cs_change_delay;
1: + struct spi_delay word_delay;
1: + u32 speed_hz;
1: + u32 effective_speed_hz;
1: + unsigned int ptp_sts_word_pre;
1: + unsigned int ptp_sts_word_post;
1: + struct ptp_system_timestamp *ptp_sts;
1: + bool timestamped;
1: + struct list_head transfer_list;
1: + u16 error;
1: +};
1: +
1: +struct spi_mem;
1: +
1: +struct spi_mem_op;
1: +
1: +struct spi_mem_dirmap_desc;
1: +
1: +struct spi_controller_mem_ops {
1: + int (*adjust_op_size)(struct spi_mem *, struct spi_mem_op *);
1: + bool (*supports_op)(struct spi_mem *, const struct spi_mem_op *);
1: + int (*exec_op)(struct spi_mem *, const struct spi_mem_op *);
1: + const char * (*get_name)(struct spi_mem *);
1: + int (*dirmap_create)(struct spi_mem_dirmap_desc *);
1: + void (*dirmap_destroy)(struct spi_mem_dirmap_desc *);
1: + ssize_t (*dirmap_read)(struct spi_mem_dirmap_desc *, u64, size_t, void *);
1: + ssize_t (*dirmap_write)(struct spi_mem_dirmap_desc *, u64, size_t, const void *);
1: +};
1: +
1: +struct regmap_async_spi {
1: + struct regmap_async core;
1: + struct spi_message m;
1: + struct spi_transfer t[2];
1: +};
1: +
1: +struct regmap_mmio_context {
1: + void *regs;
1: + unsigned int val_bytes;
1: + bool attached_clk;
1: + struct clk *clk;
1: + void (*reg_write)(struct regmap_mmio_context *, unsigned int, unsigned int);
1: + unsigned int (*reg_read)(struct regmap_mmio_context *, unsigned int);
1: +};
1: +
1: +struct regmap_irq_chip_data___2 {
1: + struct mutex lock;
1: + struct irq_chip irq_chip;
1: + struct regmap___2 *map;
1: + const struct regmap_irq_chip *chip;
1: + int irq_base;
1: + struct irq_domain *domain;
1: + int irq;
1: + int wake_count;
1: + void *status_reg_buf;
1: + unsigned int *main_status_buf;
1: + unsigned int *status_buf;
1: + unsigned int *mask_buf;
1: + unsigned int *mask_buf_def;
1: + unsigned int *wake_buf;
1: + unsigned int *type_buf;
1: + unsigned int *type_buf_def;
1: + unsigned int irq_reg_stride;
1: + unsigned int type_reg_stride;
1: + bool clear_status: 1;
1: +};
1: +
1: +struct soc_device___2 {
1: + struct device dev;
1: + struct soc_device_attribute *attr;
1: + int soc_dev_num;
1: +};
1: +
1: +struct devcd_entry {
1: + struct device devcd_dev;
1: + void *data;
1: + size_t datalen;
1: + struct module *owner;
1: + ssize_t (*read)(char *, loff_t, size_t, void *, size_t);
1: + void (*free)(void *);
1: + struct delayed_work del_wk;
1: + struct device *failing_dev;
1: +};
1: +
1: +typedef void (*irq_write_msi_msg_t)(struct msi_desc *, struct msi_msg *);
1: +
1: +struct platform_msi_priv_data {
1: + struct device *dev;
1: + void *host_data;
1: + msi_alloc_info_t arg;
1: + irq_write_msi_msg_t write_msg;
1: + int devid;
1: +};
1: +
1: +struct brd_device {
1: + int brd_number;
1: + struct request_queue *brd_queue;
1: + struct gendisk *brd_disk;
1: + struct list_head brd_list;
1: + spinlock_t brd_lock;
1: + struct xarray brd_pages;
1: +};
1: +
1: +typedef unsigned int __kernel_old_dev_t;
1: +
1: +enum {
1: + LO_FLAGS_READ_ONLY = 1,
1: + LO_FLAGS_AUTOCLEAR = 4,
1: + LO_FLAGS_PARTSCAN = 8,
1: + LO_FLAGS_DIRECT_IO = 16,
1: +};
1: +
1: +struct loop_info {
1: + int lo_number;
1: + __kernel_old_dev_t lo_device;
1: + long unsigned int lo_inode;
1: + __kernel_old_dev_t lo_rdevice;
1: + int lo_offset;
1: + int lo_encrypt_type;
1: + int lo_encrypt_key_size;
1: + int lo_flags;
1: + char lo_name[64];
1: + unsigned char lo_encrypt_key[32];
1: + long unsigned int lo_init[2];
1: + char reserved[4];
1: +};
1: +
1: +struct loop_info64 {
1: + __u64 lo_device;
1: + __u64 lo_inode;
1: + __u64 lo_rdevice;
1: + __u64 lo_offset;
1: + __u64 lo_sizelimit;
1: + __u32 lo_number;
1: + __u32 lo_encrypt_type;
1: + __u32 lo_encrypt_key_size;
1: + __u32 lo_flags;
1: + __u8 lo_file_name[64];
1: + __u8 lo_crypt_name[64];
1: + __u8 lo_encrypt_key[32];
1: + __u64 lo_init[2];
1: +};
1: +
1: +struct loop_config {
1: + __u32 fd;
1: + __u32 block_size;
1: + struct loop_info64 info;
1: + __u64 __reserved[8];
1: +};
1: +
1: +enum {
1: + Lo_unbound = 0,
1: + Lo_bound = 1,
1: + Lo_rundown = 2,
1: +};
1: +
1: +struct loop_func_table;
1: +
1: +struct loop_device {
1: + int lo_number;
1: + atomic_t lo_refcnt;
1: + loff_t lo_offset;
1: + loff_t lo_sizelimit;
1: + int lo_flags;
1: + int (*transfer)(struct loop_device *, int, struct page *, unsigned int, struct page *, unsigned int, int, sector_t);
1: + char lo_file_name[64];
1: + char lo_crypt_name[64];
1: + char lo_encrypt_key[32];
1: + int lo_encrypt_key_size;
1: + struct loop_func_table *lo_encryption;
1: + __u32 lo_init[2];
1: + kuid_t lo_key_owner;
1: + int (*ioctl)(struct loop_device *, int, long unsigned int);
1: + struct file *lo_backing_file;
1: + struct block_device *lo_device;
1: + void *key_data;
1: + gfp_t old_gfp_mask;
1: + spinlock_t lo_lock;
1: + int lo_state;
1: + struct kthread_worker worker;
1: + struct task_struct *worker_task;
1: + bool use_dio;
1: + bool sysfs_inited;
1: + struct request_queue *lo_queue;
1: + struct blk_mq_tag_set tag_set;
1: + struct gendisk *lo_disk;
1: +};
1: +
1: +struct loop_func_table {
1: + int number;
1: + int (*transfer)(struct loop_device *, int, struct page *, unsigned int, struct page *, unsigned int, int, sector_t);
1: + int (*init)(struct loop_device *, const struct loop_info64 *);
1: + int (*release)(struct loop_device *);
1: + int (*ioctl)(struct loop_device *, int, long unsigned int);
1: + struct module *owner;
1: +};
1: +
1: +struct loop_cmd {
1: + struct kthread_work work;
1: + bool use_aio;
1: + atomic_t ref;
1: + long int ret;
1: + struct kiocb iocb;
1: + struct bio_vec *bvec;
1: + struct cgroup_subsys_state *css;
1: +};
1: +
1: +struct compat_loop_info {
1: + compat_int_t lo_number;
1: + compat_dev_t lo_device;
1: + compat_ulong_t lo_inode;
1: + compat_dev_t lo_rdevice;
1: + compat_int_t lo_offset;
1: + compat_int_t lo_encrypt_type;
1: + compat_int_t lo_encrypt_key_size;
1: + compat_int_t lo_flags;
1: + char lo_name[64];
1: + unsigned char lo_encrypt_key[32];
1: + compat_ulong_t lo_init[2];
1: + char reserved[4];
1: +};
1: +
1: +typedef uint16_t blkif_vdev_t;
1: +
1: +typedef uint64_t blkif_sector_t;
1: +
1: +struct blkif_request_segment {
1: + grant_ref_t gref;
1: + uint8_t first_sect;
1: + uint8_t last_sect;
1: +};
1: +
1: +struct blkif_request_rw {
1: + uint8_t nr_segments;
1: + blkif_vdev_t handle;
1: + uint32_t _pad1;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + struct blkif_request_segment seg[11];
1: +} __attribute__((packed));
1: +
1: +struct blkif_request_discard {
1: + uint8_t flag;
1: + blkif_vdev_t _pad1;
1: + uint32_t _pad2;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + uint64_t nr_sectors;
1: + uint8_t _pad3;
1: +} __attribute__((packed));
1: +
1: +struct blkif_request_other {
1: + uint8_t _pad1;
1: + blkif_vdev_t _pad2;
1: + uint32_t _pad3;
1: + uint64_t id;
1: +} __attribute__((packed));
1: +
1: +struct blkif_request_indirect {
1: + uint8_t indirect_op;
1: + uint16_t nr_segments;
1: + uint32_t _pad1;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + blkif_vdev_t handle;
1: + uint16_t _pad2;
1: + grant_ref_t indirect_grefs[8];
1: + uint32_t _pad3;
1: +} __attribute__((packed));
1: +
1: +struct blkif_request {
1: + uint8_t operation;
1: + union {
1: + struct blkif_request_rw rw;
1: + struct blkif_request_discard discard;
1: + struct blkif_request_other other;
1: + struct blkif_request_indirect indirect;
1: + } u;
1: +} __attribute__((packed));
1: +
1: +struct blkif_response {
1: + uint64_t id;
1: + uint8_t operation;
1: + int16_t status;
1: +};
1: +
1: +union blkif_sring_entry {
1: + struct blkif_request req;
1: + struct blkif_response rsp;
1: +};
1: +
1: +struct blkif_sring {
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union blkif_sring_entry ring[1];
1: +};
1: +
1: +struct blkif_front_ring {
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct blkif_sring *sring;
1: +};
1: +
1: +enum blkif_state {
1: + BLKIF_STATE_DISCONNECTED = 0,
1: + BLKIF_STATE_CONNECTED = 1,
1: + BLKIF_STATE_SUSPENDED = 2,
1: +};
1: +
1: +struct grant {
1: + grant_ref_t gref;
1: + struct page *page;
1: + struct list_head node;
1: +};
1: +
1: +enum blk_req_status {
1: + REQ_WAITING = 0,
1: + REQ_DONE = 1,
1: + REQ_ERROR = 2,
1: + REQ_EOPNOTSUPP = 3,
1: +};
1: +
1: +struct blk_shadow {
1: + struct blkif_request req;
1: + struct request *request;
1: + struct grant **grants_used;
1: + struct grant **indirect_grants;
1: + struct scatterlist *sg;
1: + unsigned int num_sg;
1: + enum blk_req_status status;
1: + long unsigned int associated_id;
1: +};
1: +
1: +struct blkif_req {
1: + blk_status_t error;
1: +};
1: +
1: +struct blkfront_info;
1: +
1: +struct blkfront_ring_info {
1: + spinlock_t ring_lock;
1: + struct blkif_front_ring ring;
1: + unsigned int ring_ref[16];
1: + unsigned int evtchn;
1: + unsigned int irq;
1: + struct work_struct work;
1: + struct gnttab_free_callback callback;
1: + struct list_head indirect_pages;
1: + struct list_head grants;
1: + unsigned int persistent_gnts_c;
1: + long unsigned int shadow_free;
1: + struct blkfront_info *dev_info;
1: + struct blk_shadow shadow[0];
1: +};
1: +
1: +struct blkfront_info {
1: + struct mutex mutex;
1: + struct xenbus_device *xbdev;
1: + struct gendisk *gd;
1: + u16 sector_size;
1: + unsigned int physical_sector_size;
1: + int vdevice;
1: + blkif_vdev_t handle;
1: + enum blkif_state connected;
1: + unsigned int nr_ring_pages;
1: + struct request_queue *rq;
1: + unsigned int feature_flush: 1;
1: + unsigned int feature_fua: 1;
1: + unsigned int feature_discard: 1;
1: + unsigned int feature_secdiscard: 1;
1: + unsigned int feature_persistent: 1;
1: + unsigned int discard_granularity;
1: + unsigned int discard_alignment;
1: + unsigned int max_indirect_segments;
1: + int is_ready;
1: + struct blk_mq_tag_set tag_set;
1: + struct blkfront_ring_info *rinfo;
1: + unsigned int nr_rings;
1: + unsigned int rinfo_size;
1: + struct list_head requests;
1: + struct bio_list bio_list;
1: + struct list_head info_list;
1: +};
1: +
1: +struct setup_rw_req {
1: + unsigned int grant_idx;
1: + struct blkif_request_segment *segments;
1: + struct blkfront_ring_info *rinfo;
1: + struct blkif_request *ring_req;
1: + grant_ref_t gref_head;
1: + unsigned int id;
1: + bool need_copy;
1: + unsigned int bvec_off;
1: + char *bvec_data;
1: + bool require_extra_req;
1: + struct blkif_request *extra_ring_req;
1: +};
1: +
1: +struct copy_from_grant {
1: + const struct blk_shadow *s;
1: + unsigned int grant_idx;
1: + unsigned int bvec_offset;
1: + char *bvec_data;
1: +};
1: +
1: +struct test_struct {
1: + char *get;
1: + char *put;
1: + void (*get_handler)(char *);
1: + int (*put_handler)(char *, char *);
1: +};
1: +
1: +struct test_state {
1: + char *name;
1: + struct test_struct *tst;
1: + int idx;
1: + int (*run_test)(int, int);
1: + int (*validate_put)(char *);
1: +};
1: +
1: +struct sram_partition {
1: + void *base;
1: + struct gen_pool *pool;
1: + struct bin_attribute battr;
1: + struct mutex lock;
1: + struct list_head list;
1: +};
1: +
1: +struct sram_dev {
1: + struct device *dev;
1: + void *virt_base;
1: + struct gen_pool *pool;
1: + struct clk *clk;
1: + struct sram_partition *partition;
1: + u32 partitions;
1: +};
1: +
1: +struct sram_reserve {
1: + struct list_head list;
1: + u32 start;
1: + u32 size;
1: + bool export;
1: + bool pool;
1: + bool protect_exec;
1: + const char *label;
1: +};
1: +
1: +struct mfd_cell_acpi_match;
1: +
1: +struct mfd_cell {
1: + const char *name;
1: + int id;
1: + int level;
1: + int (*enable)(struct platform_device *);
1: + int (*disable)(struct platform_device *);
1: + int (*suspend)(struct platform_device *);
1: + int (*resume)(struct platform_device *);
1: + void *platform_data;
1: + size_t pdata_size;
1: + const struct property_entry *properties;
1: + const char *of_compatible;
1: + const u64 of_reg;
1: + bool use_of_reg;
1: + const struct mfd_cell_acpi_match *acpi_match;
1: + int num_resources;
1: + const struct resource *resources;
1: + bool ignore_resource_conflicts;
1: + bool pm_runtime_no_callbacks;
1: + const char * const *parent_supplies;
1: + int num_parent_supplies;
1: +};
1: +
1: +struct mfd_cell_acpi_match {
1: + const char *pnpid;
1: + const long long unsigned int adr;
1: +};
1: +
1: +struct prcm_data {
1: + int nsubdevs;
1: + const struct mfd_cell *subdevs;
1: +};
1: +
1: +struct arizona_micbias {
1: + int mV;
1: + unsigned int ext_cap: 1;
1: + unsigned int discharge: 1;
1: + unsigned int soft_start: 1;
1: + unsigned int bypass: 1;
1: +};
1: +
1: +struct arizona_micd_config {
1: + unsigned int src;
1: + unsigned int bias;
1: + bool gpio;
1: +};
1: +
1: +struct arizona_micd_range {
1: + int max;
1: + int key;
1: +};
1: +
1: +struct arizona_pdata {
1: + struct gpio_desc *reset;
1: + struct arizona_micsupp_pdata micvdd;
1: + struct arizona_ldo1_pdata ldo1;
1: + int clk32k_src;
1: + unsigned int irq_flags;
1: + int gpio_base;
1: + unsigned int gpio_defaults[5];
1: + unsigned int max_channels_clocked[3];
1: + bool jd_gpio5;
1: + bool jd_gpio5_nopull;
1: + bool jd_invert;
1: + bool hpdet_acc_id;
1: + bool hpdet_acc_id_line;
1: + int hpdet_id_gpio;
1: + unsigned int hpdet_channel;
1: + bool micd_software_compare;
1: + unsigned int micd_detect_debounce;
1: + int micd_pol_gpio;
1: + unsigned int micd_bias_start_time;
1: + unsigned int micd_rate;
1: + unsigned int micd_dbtime;
1: + unsigned int micd_timeout;
1: + bool micd_force_micbias;
1: + const struct arizona_micd_range *micd_ranges;
1: + int num_micd_ranges;
1: + struct arizona_micd_config *micd_configs;
1: + int num_micd_configs;
1: + int dmic_ref[4];
1: + struct arizona_micbias micbias[3];
1: + int inmode[4];
1: + int out_mono[6];
1: + unsigned int out_vol_limit[12];
1: + unsigned int spk_mute[2];
1: + unsigned int spk_fmt[2];
1: + unsigned int hap_act;
1: + int irq_gpio;
1: + unsigned int gpsw;
1: +};
1: +
1: +enum {
1: + ARIZONA_MCLK1 = 0,
1: + ARIZONA_MCLK2 = 1,
1: + ARIZONA_NUM_MCLK = 2,
1: +};
1: +
1: +enum arizona_type {
1: + WM5102 = 1,
1: + WM5110 = 2,
1: + WM8997 = 3,
1: + WM8280 = 4,
1: + WM8998 = 5,
1: + WM1814 = 6,
1: + WM1831 = 7,
1: + CS47L24 = 8,
1: +};
1: +
1: +struct arizona {
1: + struct regmap *regmap;
1: + struct device *dev;
1: + enum arizona_type type;
1: + unsigned int rev;
1: + int num_core_supplies;
1: + struct regulator_bulk_data core_supplies[2];
1: + struct regulator *dcvdd;
1: + bool has_fully_powered_off;
1: + struct arizona_pdata pdata;
1: + unsigned int external_dcvdd: 1;
1: + int irq;
1: + struct irq_domain *virq;
1: + struct regmap_irq_chip_data *aod_irq_chip;
1: + struct regmap_irq_chip_data *irq_chip;
1: + bool hpdet_clamp;
1: + unsigned int hp_ena;
1: + struct mutex clk_lock;
1: + int clk32k_ref;
1: + struct clk *mclk[2];
1: + bool ctrlif_error;
1: + struct snd_soc_dapm_context *dapm;
1: + int tdm_width[3];
1: + int tdm_slots[3];
1: + uint16_t dac_comp_coeff;
1: + uint8_t dac_comp_enabled;
1: + struct mutex dac_comp_lock;
1: + struct blocking_notifier_head notifier;
1: +};
1: +
1: +struct arizona_sysclk_state {
1: + unsigned int fll;
1: + unsigned int sysclk;
1: +};
1: +
1: +enum tps65912_irqs {
1: + TPS65912_IRQ_PWRHOLD_F = 0,
1: + TPS65912_IRQ_VMON = 1,
1: + TPS65912_IRQ_PWRON = 2,
1: + TPS65912_IRQ_PWRON_LP = 3,
1: + TPS65912_IRQ_PWRHOLD_R = 4,
1: + TPS65912_IRQ_HOTDIE = 5,
1: + TPS65912_IRQ_GPIO1_R = 6,
1: + TPS65912_IRQ_GPIO1_F = 7,
1: + TPS65912_IRQ_GPIO2_R = 8,
1: + TPS65912_IRQ_GPIO2_F = 9,
1: + TPS65912_IRQ_GPIO3_R = 10,
1: + TPS65912_IRQ_GPIO3_F = 11,
1: + TPS65912_IRQ_GPIO4_R = 12,
1: + TPS65912_IRQ_GPIO4_F = 13,
1: + TPS65912_IRQ_GPIO5_R = 14,
1: + TPS65912_IRQ_GPIO5_F = 15,
1: + TPS65912_IRQ_PGOOD_DCDC1 = 16,
1: + TPS65912_IRQ_PGOOD_DCDC2 = 17,
1: + TPS65912_IRQ_PGOOD_DCDC3 = 18,
1: + TPS65912_IRQ_PGOOD_DCDC4 = 19,
1: + TPS65912_IRQ_PGOOD_LDO1 = 20,
1: + TPS65912_IRQ_PGOOD_LDO2 = 21,
1: + TPS65912_IRQ_PGOOD_LDO3 = 22,
1: + TPS65912_IRQ_PGOOD_LDO4 = 23,
1: + TPS65912_IRQ_PGOOD_LDO5 = 24,
1: + TPS65912_IRQ_PGOOD_LDO6 = 25,
1: + TPS65912_IRQ_PGOOD_LDO7 = 26,
1: + TPS65912_IRQ_PGOOD_LDO8 = 27,
1: + TPS65912_IRQ_PGOOD_LDO9 = 28,
1: + TPS65912_IRQ_PGOOD_LDO10 = 29,
1: +};
1: +
1: +struct tps65912 {
1: + struct device *dev;
1: + struct regmap *regmap;
1: + int irq;
1: + struct regmap_irq_chip_data *irq_data;
1: +};
1: +
1: +struct spi_device_id {
1: + char name[32];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct spi_driver {
1: + const struct spi_device_id *id_table;
1: + int (*probe)(struct spi_device *);
1: + int (*remove)(struct spi_device *);
1: + void (*shutdown)(struct spi_device *);
1: + struct device_driver driver;
1: +};
1: +
1: +struct mfd_of_node_entry {
1: + struct list_head list;
1: + struct device *dev;
1: + struct device_node *np;
1: +};
1: +
1: +struct da9052 {
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct mutex auxadc_lock;
1: + struct completion done;
1: + int irq_base;
1: + struct regmap_irq_chip_data *irq_data;
1: + u8 chip_id;
1: + int chip_irq;
1: + int (*fix_io)(struct da9052 *, unsigned char);
1: +};
1: +
1: +struct led_platform_data;
1: +
1: +struct da9052_pdata {
1: + struct led_platform_data *pled;
1: + int (*init)(struct da9052 *);
1: + int irq_base;
1: + int gpio_base;
1: + int use_for_apm;
1: + struct regulator_init_data *regulators[14];
1: +};
1: +
1: +enum da9052_chip_id {
1: + DA9052 = 0,
1: + DA9053_AA = 1,
1: + DA9053_BA = 2,
1: + DA9053_BB = 3,
1: + DA9053_BC = 4,
1: +};
1: +
1: +struct syscon_platform_data {
1: + const char *label;
1: +};
1: +
1: +struct syscon {
1: + struct device_node *np;
1: + struct regmap *regmap;
1: + struct list_head list;
1: +};
1: +
1: +struct dax_device___2;
1: +
1: +struct dax_operations {
1: + long int (*direct_access)(struct dax_device___2 *, long unsigned int, long int, void **, pfn_t *);
1: + bool (*dax_supported)(struct dax_device___2 *, struct block_device *, int, sector_t, sector_t);
1: + size_t (*copy_from_iter)(struct dax_device___2 *, long unsigned int, void *, size_t, struct iov_iter *);
1: + size_t (*copy_to_iter)(struct dax_device___2 *, long unsigned int, void *, size_t, struct iov_iter *);
1: + int (*zero_page_range)(struct dax_device___2 *, long unsigned int, size_t);
1: +};
1: +
1: +struct dax_device___2 {
1: + struct hlist_node list;
1: + struct inode inode;
1: + struct cdev cdev;
1: + const char *host;
1: + void *private;
1: + long unsigned int flags;
1: + const struct dax_operations *ops;
1: +};
1: +
1: +enum dax_device_flags {
1: + DAXDEV_ALIVE = 0,
1: + DAXDEV_WRITE_CACHE = 1,
1: + DAXDEV_SYNC = 2,
1: +};
1: +
1: +struct dax_region {
1: + int id;
1: + int target_node;
1: + struct kref kref;
1: + struct device *dev;
1: + unsigned int align;
1: + struct ida ida;
1: + struct resource res;
1: + struct device *seed;
1: + struct device *youngest;
1: +};
1: +
1: +struct dax_mapping {
1: + struct device dev;
1: + int range_id;
1: + int id;
1: +};
1: +
1: +struct dev_dax_range {
1: + long unsigned int pgoff;
1: + struct range range;
1: + struct dax_mapping *mapping;
1: +};
1: +
1: +struct dev_dax {
1: + struct dax_region *region;
1: + struct dax_device *dax_dev;
1: + unsigned int align;
1: + int target_node;
1: + int id;
1: + struct ida ida;
1: + struct device dev;
1: + struct dev_pagemap *pgmap;
1: + int nr_range;
1: + struct dev_dax_range *ranges;
1: +};
1: +
1: +enum dev_dax_subsys {
1: + DEV_DAX_BUS = 0,
1: + DEV_DAX_CLASS = 1,
1: +};
1: +
1: +struct dev_dax_data {
1: + struct dax_region *dax_region;
1: + struct dev_pagemap *pgmap;
1: + enum dev_dax_subsys subsys;
1: + resource_size_t size;
1: + int id;
1: +};
1: +
1: +struct dax_device_driver {
1: + struct device_driver drv;
1: + struct list_head ids;
1: + int match_always;
1: + int (*probe)(struct dev_dax *);
1: + int (*remove)(struct dev_dax *);
1: +};
1: +
1: +struct dax_id {
1: + struct list_head list;
1: + char dev_name[30];
1: +};
1: +
1: +enum id_action {
1: + ID_REMOVE = 0,
1: + ID_ADD = 1,
1: +};
1: +
1: +struct memregion_info {
1: + int target_node;
1: +};
1: +
1: +struct seqcount_ww_mutex {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_ww_mutex seqcount_ww_mutex_t;
1: +
1: +struct dma_fence_ops;
1: +
1: +struct dma_fence {
1: + spinlock_t *lock;
1: + const struct dma_fence_ops *ops;
1: + union {
1: + struct list_head cb_list;
1: + ktime_t timestamp;
1: + struct callback_head rcu;
1: + };
1: + u64 context;
1: + u64 seqno;
1: + long unsigned int flags;
1: + struct kref refcount;
1: + int error;
1: +};
1: +
1: +struct dma_fence_ops {
1: + bool use_64bit_seqno;
1: + const char * (*get_driver_name)(struct dma_fence *);
1: + const char * (*get_timeline_name)(struct dma_fence *);
1: + bool (*enable_signaling)(struct dma_fence *);
1: + bool (*signaled)(struct dma_fence *);
1: + long int (*wait)(struct dma_fence *, bool, long int);
1: + void (*release)(struct dma_fence *);
1: + void (*fence_value_str)(struct dma_fence *, char *, int);
1: + void (*timeline_value_str)(struct dma_fence *, char *, int);
1: +};
1: +
1: +enum dma_fence_flag_bits {
1: + DMA_FENCE_FLAG_SIGNALED_BIT = 0,
1: + DMA_FENCE_FLAG_TIMESTAMP_BIT = 1,
1: + DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT = 2,
1: + DMA_FENCE_FLAG_USER_BITS = 3,
1: +};
1: +
1: +struct dma_fence_cb;
1: +
1: +typedef void (*dma_fence_func_t)(struct dma_fence *, struct dma_fence_cb *);
1: +
1: +struct dma_fence_cb {
1: + struct list_head node;
1: + dma_fence_func_t func;
1: +};
1: +
1: +struct dma_buf;
1: +
1: +struct dma_buf_attachment;
1: +
1: +struct dma_buf_ops {
1: + bool cache_sgt_mapping;
1: + int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
1: + void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
1: + int (*pin)(struct dma_buf_attachment *);
1: + void (*unpin)(struct dma_buf_attachment *);
1: + struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, enum dma_data_direction);
1: + void (*unmap_dma_buf)(struct dma_buf_attachment *, struct sg_table *, enum dma_data_direction);
1: + void (*release)(struct dma_buf *);
1: + int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: + int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: + int (*mmap)(struct dma_buf *, struct vm_area_struct *);
1: + void * (*vmap)(struct dma_buf *);
1: + void (*vunmap)(struct dma_buf *, void *);
1: +};
1: +
1: +struct dma_buf_poll_cb_t {
1: + struct dma_fence_cb cb;
1: + wait_queue_head_t *poll;
1: + __poll_t active;
1: +};
1: +
1: +struct dma_resv;
1: +
1: +struct dma_buf {
1: + size_t size;
1: + struct file *file;
1: + struct list_head attachments;
1: + const struct dma_buf_ops *ops;
1: + struct mutex lock;
1: + unsigned int vmapping_counter;
1: + void *vmap_ptr;
1: + const char *exp_name;
1: + const char *name;
1: + spinlock_t name_lock;
1: + struct module *owner;
1: + struct list_head list_node;
1: + void *priv;
1: + struct dma_resv *resv;
1: + wait_queue_head_t poll;
1: + struct dma_buf_poll_cb_t cb_excl;
1: + struct dma_buf_poll_cb_t cb_shared;
1: +};
1: +
1: +struct dma_buf_attach_ops;
1: +
1: +struct dma_buf_attachment {
1: + struct dma_buf *dmabuf;
1: + struct device *dev;
1: + struct list_head node;
1: + struct sg_table *sgt;
1: + enum dma_data_direction dir;
1: + bool peer2peer;
1: + const struct dma_buf_attach_ops *importer_ops;
1: + void *importer_priv;
1: + void *priv;
1: +};
1: +
1: +struct dma_resv_list;
1: +
1: +struct dma_resv {
1: + struct ww_mutex lock;
1: + seqcount_ww_mutex_t seq;
1: + struct dma_fence *fence_excl;
1: + struct dma_resv_list *fence;
1: +};
1: +
1: +struct dma_buf_attach_ops {
1: + bool allow_peer2peer;
1: + void (*move_notify)(struct dma_buf_attachment *);
1: +};
1: +
1: +struct dma_buf_export_info {
1: + const char *exp_name;
1: + struct module *owner;
1: + const struct dma_buf_ops *ops;
1: + size_t size;
1: + int flags;
1: + struct dma_resv *resv;
1: + void *priv;
1: +};
1: +
1: +struct dma_resv_list {
1: + struct callback_head rcu;
1: + u32 shared_count;
1: + u32 shared_max;
1: + struct dma_fence *shared[0];
1: +};
1: +
1: +struct dma_buf_sync {
1: + __u64 flags;
1: +};
1: +
1: +struct dma_buf_list {
1: + struct list_head head;
1: + struct mutex lock;
1: +};
1: +
1: +struct trace_event_raw_dma_fence {
1: + struct trace_entry ent;
1: + u32 __data_loc_driver;
1: + u32 __data_loc_timeline;
1: + unsigned int context;
1: + unsigned int seqno;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_dma_fence {
1: + u32 driver;
1: + u32 timeline;
1: +};
1: +
1: +typedef void (*btf_trace_dma_fence_emit)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_init)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_destroy)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_enable_signal)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_signaled)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_wait_start)(void *, struct dma_fence *);
1: +
1: +typedef void (*btf_trace_dma_fence_wait_end)(void *, struct dma_fence *);
1: +
1: +struct default_wait_cb {
1: + struct dma_fence_cb base;
1: + struct task_struct *task;
1: +};
1: +
1: +struct dma_fence_array;
1: +
1: +struct dma_fence_array_cb {
1: + struct dma_fence_cb cb;
1: + struct dma_fence_array *array;
1: +};
1: +
1: +struct dma_fence_array {
1: + struct dma_fence base;
1: + spinlock_t lock;
1: + unsigned int num_fences;
1: + atomic_t num_pending;
1: + struct dma_fence **fences;
1: + struct irq_work work;
1: +};
1: +
1: +struct dma_fence_chain {
1: + struct dma_fence base;
1: + spinlock_t lock;
1: + struct dma_fence *prev;
1: + u64 prev_seqno;
1: + struct dma_fence *fence;
1: + struct dma_fence_cb cb;
1: + struct irq_work work;
1: +};
1: +
1: +enum seqno_fence_condition {
1: + SEQNO_FENCE_WAIT_GEQUAL = 0,
1: + SEQNO_FENCE_WAIT_NONZERO = 1,
1: +};
1: +
1: +struct seqno_fence {
1: + struct dma_fence base;
1: + const struct dma_fence_ops *ops;
1: + struct dma_buf *sync_buf;
1: + uint32_t seqno_ofs;
1: + enum seqno_fence_condition condition;
1: +};
1: +
1: +struct sync_file {
1: + struct file *file;
1: + char user_name[32];
1: + struct list_head sync_file_list;
1: + wait_queue_head_t wq;
1: + long unsigned int flags;
1: + struct dma_fence *fence;
1: + struct dma_fence_cb cb;
1: +};
1: +
1: +struct sync_merge_data {
1: + char name[32];
1: + __s32 fd2;
1: + __s32 fence;
1: + __u32 flags;
1: + __u32 pad;
1: +};
1: +
1: +struct sync_fence_info {
1: + char obj_name[32];
1: + char driver_name[32];
1: + __s32 status;
1: + __u32 flags;
1: + __u64 timestamp_ns;
1: +};
1: +
1: +struct sync_file_info {
1: + char name[32];
1: + __s32 status;
1: + __u32 flags;
1: + __u32 num_fences;
1: + __u32 pad;
1: + __u64 sync_fence_info;
1: +};
1: +
1: +struct scsi_lun {
1: + __u8 scsi_lun[8];
1: +};
1: +
1: +struct nvme_user_io {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 control;
1: + __u16 nblocks;
1: + __u16 rsvd;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u64 slba;
1: + __u32 dsmgmt;
1: + __u32 reftag;
1: + __u16 apptag;
1: + __u16 appmask;
1: +};
1: +
1: +struct nvme_passthru_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 rsvd1;
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u32 cdw10;
1: + __u32 cdw11;
1: + __u32 cdw12;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u32 timeout_ms;
1: + __u32 result;
1: +};
1: +
1: +struct nvme_passthru_cmd64 {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 rsvd1;
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u32 cdw10;
1: + __u32 cdw11;
1: + __u32 cdw12;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u32 timeout_ms;
1: + __u32 rsvd2;
1: + __u64 result;
1: +};
1: +
1: +struct nvme_id_power_state {
1: + __le16 max_power;
1: + __u8 rsvd2;
1: + __u8 flags;
1: + __le32 entry_lat;
1: + __le32 exit_lat;
1: + __u8 read_tput;
1: + __u8 read_lat;
1: + __u8 write_tput;
1: + __u8 write_lat;
1: + __le16 idle_power;
1: + __u8 idle_scale;
1: + __u8 rsvd19;
1: + __le16 active_power;
1: + __u8 active_work_scale;
1: + __u8 rsvd23[9];
1: +};
1: +
1: +enum {
1: + NVME_PS_FLAGS_MAX_POWER_SCALE = 1,
1: + NVME_PS_FLAGS_NON_OP_STATE = 2,
1: +};
1: +
1: +enum nvme_ctrl_attr {
1: + NVME_CTRL_ATTR_HID_128_BIT = 1,
1: + NVME_CTRL_ATTR_TBKAS = 64,
1: +};
1: +
1: +struct nvme_id_ctrl {
1: + __le16 vid;
1: + __le16 ssvid;
1: + char sn[20];
1: + char mn[40];
1: + char fr[8];
1: + __u8 rab;
1: + __u8 ieee[3];
1: + __u8 cmic;
1: + __u8 mdts;
1: + __le16 cntlid;
1: + __le32 ver;
1: + __le32 rtd3r;
1: + __le32 rtd3e;
1: + __le32 oaes;
1: + __le32 ctratt;
1: + __u8 rsvd100[28];
1: + __le16 crdt1;
1: + __le16 crdt2;
1: + __le16 crdt3;
1: + __u8 rsvd134[122];
1: + __le16 oacs;
1: + __u8 acl;
1: + __u8 aerl;
1: + __u8 frmw;
1: + __u8 lpa;
1: + __u8 elpe;
1: + __u8 npss;
1: + __u8 avscc;
1: + __u8 apsta;
1: + __le16 wctemp;
1: + __le16 cctemp;
1: + __le16 mtfa;
1: + __le32 hmpre;
1: + __le32 hmmin;
1: + __u8 tnvmcap[16];
1: + __u8 unvmcap[16];
1: + __le32 rpmbs;
1: + __le16 edstt;
1: + __u8 dsto;
1: + __u8 fwug;
1: + __le16 kas;
1: + __le16 hctma;
1: + __le16 mntmt;
1: + __le16 mxtmt;
1: + __le32 sanicap;
1: + __le32 hmminds;
1: + __le16 hmmaxd;
1: + __u8 rsvd338[4];
1: + __u8 anatt;
1: + __u8 anacap;
1: + __le32 anagrpmax;
1: + __le32 nanagrpid;
1: + __u8 rsvd352[160];
1: + __u8 sqes;
1: + __u8 cqes;
1: + __le16 maxcmd;
1: + __le32 nn;
1: + __le16 oncs;
1: + __le16 fuses;
1: + __u8 fna;
1: + __u8 vwc;
1: + __le16 awun;
1: + __le16 awupf;
1: + __u8 nvscc;
1: + __u8 nwpc;
1: + __le16 acwu;
1: + __u8 rsvd534[2];
1: + __le32 sgls;
1: + __le32 mnan;
1: + __u8 rsvd544[224];
1: + char subnqn[256];
1: + __u8 rsvd1024[768];
1: + __le32 ioccsz;
1: + __le32 iorcsz;
1: + __le16 icdoff;
1: + __u8 ctrattr;
1: + __u8 msdbd;
1: + __u8 rsvd1804[244];
1: + struct nvme_id_power_state psd[32];
1: + __u8 vs[1024];
1: +};
1: +
1: +enum {
1: + NVME_CTRL_CMIC_MULTI_CTRL = 2,
1: + NVME_CTRL_CMIC_ANA = 8,
1: + NVME_CTRL_ONCS_COMPARE = 1,
1: + NVME_CTRL_ONCS_WRITE_UNCORRECTABLE = 2,
1: + NVME_CTRL_ONCS_DSM = 4,
1: + NVME_CTRL_ONCS_WRITE_ZEROES = 8,
1: + NVME_CTRL_ONCS_RESERVATIONS = 32,
1: + NVME_CTRL_ONCS_TIMESTAMP = 64,
1: + NVME_CTRL_VWC_PRESENT = 1,
1: + NVME_CTRL_OACS_SEC_SUPP = 1,
1: + NVME_CTRL_OACS_DIRECTIVES = 32,
1: + NVME_CTRL_OACS_DBBUF_SUPP = 256,
1: + NVME_CTRL_LPA_CMD_EFFECTS_LOG = 2,
1: + NVME_CTRL_CTRATT_128_ID = 1,
1: + NVME_CTRL_CTRATT_NON_OP_PSP = 2,
1: + NVME_CTRL_CTRATT_NVM_SETS = 4,
1: + NVME_CTRL_CTRATT_READ_RECV_LVLS = 8,
1: + NVME_CTRL_CTRATT_ENDURANCE_GROUPS = 16,
1: + NVME_CTRL_CTRATT_PREDICTABLE_LAT = 32,
1: + NVME_CTRL_CTRATT_NAMESPACE_GRANULARITY = 128,
1: + NVME_CTRL_CTRATT_UUID_LIST = 512,
1: +};
1: +
1: +struct nvme_lbaf {
1: + __le16 ms;
1: + __u8 ds;
1: + __u8 rp;
1: +};
1: +
1: +struct nvme_id_ns {
1: + __le64 nsze;
1: + __le64 ncap;
1: + __le64 nuse;
1: + __u8 nsfeat;
1: + __u8 nlbaf;
1: + __u8 flbas;
1: + __u8 mc;
1: + __u8 dpc;
1: + __u8 dps;
1: + __u8 nmic;
1: + __u8 rescap;
1: + __u8 fpi;
1: + __u8 dlfeat;
1: + __le16 nawun;
1: + __le16 nawupf;
1: + __le16 nacwu;
1: + __le16 nabsn;
1: + __le16 nabo;
1: + __le16 nabspf;
1: + __le16 noiob;
1: + __u8 nvmcap[16];
1: + __le16 npwg;
1: + __le16 npwa;
1: + __le16 npdg;
1: + __le16 npda;
1: + __le16 nows;
1: + __u8 rsvd74[18];
1: + __le32 anagrpid;
1: + __u8 rsvd96[3];
1: + __u8 nsattr;
1: + __le16 nvmsetid;
1: + __le16 endgid;
1: + __u8 nguid[16];
1: + __u8 eui64[8];
1: + struct nvme_lbaf lbaf[16];
1: + __u8 rsvd192[192];
1: + __u8 vs[3712];
1: +};
1: +
1: +enum {
1: + NVME_ID_CNS_NS = 0,
1: + NVME_ID_CNS_CTRL = 1,
1: + NVME_ID_CNS_NS_ACTIVE_LIST = 2,
1: + NVME_ID_CNS_NS_DESC_LIST = 3,
1: + NVME_ID_CNS_CS_NS = 5,
1: + NVME_ID_CNS_CS_CTRL = 6,
1: + NVME_ID_CNS_NS_PRESENT_LIST = 16,
1: + NVME_ID_CNS_NS_PRESENT = 17,
1: + NVME_ID_CNS_CTRL_NS_LIST = 18,
1: + NVME_ID_CNS_CTRL_LIST = 19,
1: + NVME_ID_CNS_SCNDRY_CTRL_LIST = 21,
1: + NVME_ID_CNS_NS_GRANULARITY = 22,
1: + NVME_ID_CNS_UUID_LIST = 23,
1: +};
1: +
1: +enum {
1: + NVME_CSI_NVM = 0,
1: + NVME_CSI_ZNS = 2,
1: +};
1: +
1: +enum {
1: + NVME_DIR_IDENTIFY = 0,
1: + NVME_DIR_STREAMS = 1,
1: + NVME_DIR_SND_ID_OP_ENABLE = 1,
1: + NVME_DIR_SND_ST_OP_REL_ID = 1,
1: + NVME_DIR_SND_ST_OP_REL_RSC = 2,
1: + NVME_DIR_RCV_ID_OP_PARAM = 1,
1: + NVME_DIR_RCV_ST_OP_PARAM = 1,
1: + NVME_DIR_RCV_ST_OP_STATUS = 2,
1: + NVME_DIR_RCV_ST_OP_RESOURCE = 3,
1: + NVME_DIR_ENDIR = 1,
1: +};
1: +
1: +enum {
1: + NVME_NS_FEAT_THIN = 1,
1: + NVME_NS_FEAT_ATOMICS = 2,
1: + NVME_NS_FEAT_IO_OPT = 16,
1: + NVME_NS_ATTR_RO = 1,
1: + NVME_NS_FLBAS_LBA_MASK = 15,
1: + NVME_NS_FLBAS_META_EXT = 16,
1: + NVME_NS_NMIC_SHARED = 1,
1: + NVME_LBAF_RP_BEST = 0,
1: + NVME_LBAF_RP_BETTER = 1,
1: + NVME_LBAF_RP_GOOD = 2,
1: + NVME_LBAF_RP_DEGRADED = 3,
1: + NVME_NS_DPC_PI_LAST = 16,
1: + NVME_NS_DPC_PI_FIRST = 8,
1: + NVME_NS_DPC_PI_TYPE3 = 4,
1: + NVME_NS_DPC_PI_TYPE2 = 2,
1: + NVME_NS_DPC_PI_TYPE1 = 1,
1: + NVME_NS_DPS_PI_FIRST = 8,
1: + NVME_NS_DPS_PI_MASK = 7,
1: + NVME_NS_DPS_PI_TYPE1 = 1,
1: + NVME_NS_DPS_PI_TYPE2 = 2,
1: + NVME_NS_DPS_PI_TYPE3 = 3,
1: +};
1: +
1: +struct nvme_ns_id_desc {
1: + __u8 nidt;
1: + __u8 nidl;
1: + __le16 reserved;
1: +};
1: +
1: +enum {
1: + NVME_NIDT_EUI64 = 1,
1: + NVME_NIDT_NGUID = 2,
1: + NVME_NIDT_UUID = 3,
1: + NVME_NIDT_CSI = 4,
1: +};
1: +
1: +struct nvme_fw_slot_info_log {
1: + __u8 afi;
1: + __u8 rsvd1[7];
1: + __le64 frs[7];
1: + __u8 rsvd64[448];
1: +};
1: +
1: +enum {
1: + NVME_CMD_EFFECTS_CSUPP = 1,
1: + NVME_CMD_EFFECTS_LBCC = 2,
1: + NVME_CMD_EFFECTS_NCC = 4,
1: + NVME_CMD_EFFECTS_NIC = 8,
1: + NVME_CMD_EFFECTS_CCC = 16,
1: + NVME_CMD_EFFECTS_CSE_MASK = 196608,
1: + NVME_CMD_EFFECTS_UUID_SEL = 524288,
1: +};
1: +
1: +struct nvme_effects_log {
1: + __le32 acs[256];
1: + __le32 iocs[256];
1: + __u8 resv[2048];
1: +};
1: +
1: +enum {
1: + NVME_AER_ERROR = 0,
1: + NVME_AER_SMART = 1,
1: + NVME_AER_NOTICE = 2,
1: + NVME_AER_CSS = 6,
1: + NVME_AER_VS = 7,
1: +};
1: +
1: +enum {
1: + NVME_AER_NOTICE_NS_CHANGED = 0,
1: + NVME_AER_NOTICE_FW_ACT_STARTING = 1,
1: + NVME_AER_NOTICE_ANA = 3,
1: + NVME_AER_NOTICE_DISC_CHANGED = 240,
1: +};
1: +
1: +enum {
1: + NVME_AEN_CFG_NS_ATTR = 256,
1: + NVME_AEN_CFG_FW_ACT = 512,
1: + NVME_AEN_CFG_ANA_CHANGE = 2048,
1: + NVME_AEN_CFG_DISC_CHANGE = 2147483648,
1: +};
1: +
1: +enum nvme_opcode {
1: + nvme_cmd_flush = 0,
1: + nvme_cmd_write = 1,
1: + nvme_cmd_read = 2,
1: + nvme_cmd_write_uncor = 4,
1: + nvme_cmd_compare = 5,
1: + nvme_cmd_write_zeroes = 8,
1: + nvme_cmd_dsm = 9,
1: + nvme_cmd_verify = 12,
1: + nvme_cmd_resv_register = 13,
1: + nvme_cmd_resv_report = 14,
1: + nvme_cmd_resv_acquire = 17,
1: + nvme_cmd_resv_release = 21,
1: + nvme_cmd_zone_mgmt_send = 121,
1: + nvme_cmd_zone_mgmt_recv = 122,
1: + nvme_cmd_zone_append = 125,
1: +};
1: +
1: +struct nvme_sgl_desc {
1: + __le64 addr;
1: + __le32 length;
1: + __u8 rsvd[3];
1: + __u8 type;
1: +};
1: +
1: +struct nvme_keyed_sgl_desc {
1: + __le64 addr;
1: + __u8 length[3];
1: + __u8 key[4];
1: + __u8 type;
1: +};
1: +
1: +union nvme_data_ptr {
1: + struct {
1: + __le64 prp1;
1: + __le64 prp2;
1: + };
1: + struct nvme_sgl_desc sgl;
1: + struct nvme_keyed_sgl_desc ksgl;
1: +};
1: +
1: +enum {
1: + NVME_CMD_FUSE_FIRST = 1,
1: + NVME_CMD_FUSE_SECOND = 2,
1: + NVME_CMD_SGL_METABUF = 64,
1: + NVME_CMD_SGL_METASEG = 128,
1: + NVME_CMD_SGL_ALL = 192,
1: +};
1: +
1: +struct nvme_common_command {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le32 cdw2[2];
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le32 cdw10;
1: + __le32 cdw11;
1: + __le32 cdw12;
1: + __le32 cdw13;
1: + __le32 cdw14;
1: + __le32 cdw15;
1: +};
1: +
1: +struct nvme_rw_command {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le32 reftag;
1: + __le16 apptag;
1: + __le16 appmask;
1: +};
1: +
1: +enum {
1: + NVME_RW_LR = 32768,
1: + NVME_RW_FUA = 16384,
1: + NVME_RW_APPEND_PIREMAP = 512,
1: + NVME_RW_DSM_FREQ_UNSPEC = 0,
1: + NVME_RW_DSM_FREQ_TYPICAL = 1,
1: + NVME_RW_DSM_FREQ_RARE = 2,
1: + NVME_RW_DSM_FREQ_READS = 3,
1: + NVME_RW_DSM_FREQ_WRITES = 4,
1: + NVME_RW_DSM_FREQ_RW = 5,
1: + NVME_RW_DSM_FREQ_ONCE = 6,
1: + NVME_RW_DSM_FREQ_PREFETCH = 7,
1: + NVME_RW_DSM_FREQ_TEMP = 8,
1: + NVME_RW_DSM_LATENCY_NONE = 0,
1: + NVME_RW_DSM_LATENCY_IDLE = 16,
1: + NVME_RW_DSM_LATENCY_NORM = 32,
1: + NVME_RW_DSM_LATENCY_LOW = 48,
1: + NVME_RW_DSM_SEQ_REQ = 64,
1: + NVME_RW_DSM_COMPRESSED = 128,
1: + NVME_RW_PRINFO_PRCHK_REF = 1024,
1: + NVME_RW_PRINFO_PRCHK_APP = 2048,
1: + NVME_RW_PRINFO_PRCHK_GUARD = 4096,
1: + NVME_RW_PRINFO_PRACT = 8192,
1: + NVME_RW_DTYPE_STREAMS = 16,
1: +};
1: +
1: +struct nvme_dsm_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 nr;
1: + __le32 attributes;
1: + __u32 rsvd12[4];
1: +};
1: +
1: +enum {
1: + NVME_DSMGMT_IDR = 1,
1: + NVME_DSMGMT_IDW = 2,
1: + NVME_DSMGMT_AD = 4,
1: +};
1: +
1: +struct nvme_dsm_range {
1: + __le32 cattr;
1: + __le32 nlb;
1: + __le64 slba;
1: +};
1: +
1: +struct nvme_write_zeroes_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le32 reftag;
1: + __le16 apptag;
1: + __le16 appmask;
1: +};
1: +
1: +enum nvme_zone_mgmt_action {
1: + NVME_ZONE_CLOSE = 1,
1: + NVME_ZONE_FINISH = 2,
1: + NVME_ZONE_OPEN = 3,
1: + NVME_ZONE_RESET = 4,
1: + NVME_ZONE_OFFLINE = 5,
1: + NVME_ZONE_SET_DESC_EXT = 16,
1: +};
1: +
1: +struct nvme_zone_mgmt_send_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le32 cdw2[2];
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le32 cdw12;
1: + __u8 zsa;
1: + __u8 select_all;
1: + __u8 rsvd13[2];
1: + __le32 cdw14[2];
1: +};
1: +
1: +struct nvme_zone_mgmt_recv_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le32 numd;
1: + __u8 zra;
1: + __u8 zrasf;
1: + __u8 pr;
1: + __u8 rsvd13;
1: + __le32 cdw14[2];
1: +};
1: +
1: +struct nvme_feat_auto_pst {
1: + __le64 entries[32];
1: +};
1: +
1: +struct nvme_feat_host_behavior {
1: + __u8 acre;
1: + __u8 resv1[511];
1: +};
1: +
1: +enum {
1: + NVME_ENABLE_ACRE = 1,
1: +};
1: +
1: +enum nvme_admin_opcode {
1: + nvme_admin_delete_sq = 0,
1: + nvme_admin_create_sq = 1,
1: + nvme_admin_get_log_page = 2,
1: + nvme_admin_delete_cq = 4,
1: + nvme_admin_create_cq = 5,
1: + nvme_admin_identify = 6,
1: + nvme_admin_abort_cmd = 8,
1: + nvme_admin_set_features = 9,
1: + nvme_admin_get_features = 10,
1: + nvme_admin_async_event = 12,
1: + nvme_admin_ns_mgmt = 13,
1: + nvme_admin_activate_fw = 16,
1: + nvme_admin_download_fw = 17,
1: + nvme_admin_dev_self_test = 20,
1: + nvme_admin_ns_attach = 21,
1: + nvme_admin_keep_alive = 24,
1: + nvme_admin_directive_send = 25,
1: + nvme_admin_directive_recv = 26,
1: + nvme_admin_virtual_mgmt = 28,
1: + nvme_admin_nvme_mi_send = 29,
1: + nvme_admin_nvme_mi_recv = 30,
1: + nvme_admin_dbbuf = 124,
1: + nvme_admin_format_nvm = 128,
1: + nvme_admin_security_send = 129,
1: + nvme_admin_security_recv = 130,
1: + nvme_admin_sanitize_nvm = 132,
1: + nvme_admin_get_lba_status = 134,
1: + nvme_admin_vendor_start = 192,
1: +};
1: +
1: +enum {
1: + NVME_QUEUE_PHYS_CONTIG = 1,
1: + NVME_CQ_IRQ_ENABLED = 2,
1: + NVME_SQ_PRIO_URGENT = 0,
1: + NVME_SQ_PRIO_HIGH = 2,
1: + NVME_SQ_PRIO_MEDIUM = 4,
1: + NVME_SQ_PRIO_LOW = 6,
1: + NVME_FEAT_ARBITRATION = 1,
1: + NVME_FEAT_POWER_MGMT = 2,
1: + NVME_FEAT_LBA_RANGE = 3,
1: + NVME_FEAT_TEMP_THRESH = 4,
1: + NVME_FEAT_ERR_RECOVERY = 5,
1: + NVME_FEAT_VOLATILE_WC = 6,
1: + NVME_FEAT_NUM_QUEUES = 7,
1: + NVME_FEAT_IRQ_COALESCE = 8,
1: + NVME_FEAT_IRQ_CONFIG = 9,
1: + NVME_FEAT_WRITE_ATOMIC = 10,
1: + NVME_FEAT_ASYNC_EVENT = 11,
1: + NVME_FEAT_AUTO_PST = 12,
1: + NVME_FEAT_HOST_MEM_BUF = 13,
1: + NVME_FEAT_TIMESTAMP = 14,
1: + NVME_FEAT_KATO = 15,
1: + NVME_FEAT_HCTM = 16,
1: + NVME_FEAT_NOPSC = 17,
1: + NVME_FEAT_RRL = 18,
1: + NVME_FEAT_PLM_CONFIG = 19,
1: + NVME_FEAT_PLM_WINDOW = 20,
1: + NVME_FEAT_HOST_BEHAVIOR = 22,
1: + NVME_FEAT_SANITIZE = 23,
1: + NVME_FEAT_SW_PROGRESS = 128,
1: + NVME_FEAT_HOST_ID = 129,
1: + NVME_FEAT_RESV_MASK = 130,
1: + NVME_FEAT_RESV_PERSIST = 131,
1: + NVME_FEAT_WRITE_PROTECT = 132,
1: + NVME_FEAT_VENDOR_START = 192,
1: + NVME_FEAT_VENDOR_END = 255,
1: + NVME_LOG_ERROR = 1,
1: + NVME_LOG_SMART = 2,
1: + NVME_LOG_FW_SLOT = 3,
1: + NVME_LOG_CHANGED_NS = 4,
1: + NVME_LOG_CMD_EFFECTS = 5,
1: + NVME_LOG_DEVICE_SELF_TEST = 6,
1: + NVME_LOG_TELEMETRY_HOST = 7,
1: + NVME_LOG_TELEMETRY_CTRL = 8,
1: + NVME_LOG_ENDURANCE_GROUP = 9,
1: + NVME_LOG_ANA = 12,
1: + NVME_LOG_DISC = 112,
1: + NVME_LOG_RESERVATION = 128,
1: + NVME_FWACT_REPL = 0,
1: + NVME_FWACT_REPL_ACTV = 8,
1: + NVME_FWACT_ACTV = 16,
1: +};
1: +
1: +struct nvme_identify {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __u8 cns;
1: + __u8 rsvd3;
1: + __le16 ctrlid;
1: + __u8 rsvd11[3];
1: + __u8 csi;
1: + __u32 rsvd12[4];
1: +};
1: +
1: +struct nvme_features {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 fid;
1: + __le32 dword11;
1: + __le32 dword12;
1: + __le32 dword13;
1: + __le32 dword14;
1: + __le32 dword15;
1: +};
1: +
1: +struct nvme_create_cq {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __u64 rsvd8;
1: + __le16 cqid;
1: + __le16 qsize;
1: + __le16 cq_flags;
1: + __le16 irq_vector;
1: + __u32 rsvd12[4];
1: +};
1: +
1: +struct nvme_create_sq {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __u64 rsvd8;
1: + __le16 sqid;
1: + __le16 qsize;
1: + __le16 sq_flags;
1: + __le16 cqid;
1: + __u32 rsvd12[4];
1: +};
1: +
1: +struct nvme_delete_queue {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[9];
1: + __le16 qid;
1: + __u16 rsvd10;
1: + __u32 rsvd11[5];
1: +};
1: +
1: +struct nvme_abort_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[9];
1: + __le16 sqid;
1: + __u16 cid;
1: + __u32 rsvd11[5];
1: +};
1: +
1: +struct nvme_download_firmware {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + union nvme_data_ptr dptr;
1: + __le32 numd;
1: + __le32 offset;
1: + __u32 rsvd12[4];
1: +};
1: +
1: +struct nvme_format_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[4];
1: + __le32 cdw10;
1: + __u32 rsvd11[5];
1: +};
1: +
1: +struct nvme_get_log_page_command {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __u8 lid;
1: + __u8 lsp;
1: + __le16 numdl;
1: + __le16 numdu;
1: + __u16 rsvd11;
1: + union {
1: + struct {
1: + __le32 lpol;
1: + __le32 lpou;
1: + };
1: + __le64 lpo;
1: + };
1: + __u8 rsvd14[3];
1: + __u8 csi;
1: + __u32 rsvd15;
1: +};
1: +
1: +struct nvme_directive_cmd {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 numd;
1: + __u8 doper;
1: + __u8 dtype;
1: + __le16 dspec;
1: + __u8 endir;
1: + __u8 tdtype;
1: + __u16 rsvd15;
1: + __u32 rsvd16[3];
1: +};
1: +
1: +enum nvmf_fabrics_opcode {
1: + nvme_fabrics_command = 127,
1: +};
1: +
1: +enum nvmf_capsule_command {
1: + nvme_fabrics_type_property_set = 0,
1: + nvme_fabrics_type_connect = 1,
1: + nvme_fabrics_type_property_get = 4,
1: +};
1: +
1: +struct nvmf_common_command {
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 ts[24];
1: +};
1: +
1: +struct nvmf_connect_command {
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[19];
1: + union nvme_data_ptr dptr;
1: + __le16 recfmt;
1: + __le16 qid;
1: + __le16 sqsize;
1: + __u8 cattr;
1: + __u8 resv3;
1: + __le32 kato;
1: + __u8 resv4[12];
1: +};
1: +
1: +struct nvmf_property_set_command {
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 attrib;
1: + __u8 resv3[3];
1: + __le32 offset;
1: + __le64 value;
1: + __u8 resv4[8];
1: +};
1: +
1: +struct nvmf_property_get_command {
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 attrib;
1: + __u8 resv3[3];
1: + __le32 offset;
1: + __u8 resv4[16];
1: +};
1: +
1: +struct nvme_dbbuf {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __u32 rsvd12[6];
1: +};
1: +
1: +struct streams_directive_params {
1: + __le16 msl;
1: + __le16 nssa;
1: + __le16 nsso;
1: + __u8 rsvd[10];
1: + __le32 sws;
1: + __le16 sgs;
1: + __le16 nsa;
1: + __le16 nso;
1: + __u8 rsvd2[6];
1: +};
1: +
1: +struct nvme_command {
1: + union {
1: + struct nvme_common_command common;
1: + struct nvme_rw_command rw;
1: + struct nvme_identify identify;
1: + struct nvme_features features;
1: + struct nvme_create_cq create_cq;
1: + struct nvme_create_sq create_sq;
1: + struct nvme_delete_queue delete_queue;
1: + struct nvme_download_firmware dlfw;
1: + struct nvme_format_cmd format;
1: + struct nvme_dsm_cmd dsm;
1: + struct nvme_write_zeroes_cmd write_zeroes;
1: + struct nvme_zone_mgmt_send_cmd zms;
1: + struct nvme_zone_mgmt_recv_cmd zmr;
1: + struct nvme_abort_cmd abort;
1: + struct nvme_get_log_page_command get_log_page;
1: + struct nvmf_common_command fabrics;
1: + struct nvmf_connect_command connect;
1: + struct nvmf_property_set_command prop_set;
1: + struct nvmf_property_get_command prop_get;
1: + struct nvme_dbbuf dbbuf;
1: + struct nvme_directive_cmd directive;
1: + };
1: +};
1: +
1: +enum {
1: + NVME_SC_SUCCESS = 0,
1: + NVME_SC_INVALID_OPCODE = 1,
1: + NVME_SC_INVALID_FIELD = 2,
1: + NVME_SC_CMDID_CONFLICT = 3,
1: + NVME_SC_DATA_XFER_ERROR = 4,
1: + NVME_SC_POWER_LOSS = 5,
1: + NVME_SC_INTERNAL = 6,
1: + NVME_SC_ABORT_REQ = 7,
1: + NVME_SC_ABORT_QUEUE = 8,
1: + NVME_SC_FUSED_FAIL = 9,
1: + NVME_SC_FUSED_MISSING = 10,
1: + NVME_SC_INVALID_NS = 11,
1: + NVME_SC_CMD_SEQ_ERROR = 12,
1: + NVME_SC_SGL_INVALID_LAST = 13,
1: + NVME_SC_SGL_INVALID_COUNT = 14,
1: + NVME_SC_SGL_INVALID_DATA = 15,
1: + NVME_SC_SGL_INVALID_METADATA = 16,
1: + NVME_SC_SGL_INVALID_TYPE = 17,
1: + NVME_SC_SGL_INVALID_OFFSET = 22,
1: + NVME_SC_SGL_INVALID_SUBTYPE = 23,
1: + NVME_SC_SANITIZE_FAILED = 28,
1: + NVME_SC_SANITIZE_IN_PROGRESS = 29,
1: + NVME_SC_NS_WRITE_PROTECTED = 32,
1: + NVME_SC_CMD_INTERRUPTED = 33,
1: + NVME_SC_LBA_RANGE = 128,
1: + NVME_SC_CAP_EXCEEDED = 129,
1: + NVME_SC_NS_NOT_READY = 130,
1: + NVME_SC_RESERVATION_CONFLICT = 131,
1: + NVME_SC_CQ_INVALID = 256,
1: + NVME_SC_QID_INVALID = 257,
1: + NVME_SC_QUEUE_SIZE = 258,
1: + NVME_SC_ABORT_LIMIT = 259,
1: + NVME_SC_ABORT_MISSING = 260,
1: + NVME_SC_ASYNC_LIMIT = 261,
1: + NVME_SC_FIRMWARE_SLOT = 262,
1: + NVME_SC_FIRMWARE_IMAGE = 263,
1: + NVME_SC_INVALID_VECTOR = 264,
1: + NVME_SC_INVALID_LOG_PAGE = 265,
1: + NVME_SC_INVALID_FORMAT = 266,
1: + NVME_SC_FW_NEEDS_CONV_RESET = 267,
1: + NVME_SC_INVALID_QUEUE = 268,
1: + NVME_SC_FEATURE_NOT_SAVEABLE = 269,
1: + NVME_SC_FEATURE_NOT_CHANGEABLE = 270,
1: + NVME_SC_FEATURE_NOT_PER_NS = 271,
1: + NVME_SC_FW_NEEDS_SUBSYS_RESET = 272,
1: + NVME_SC_FW_NEEDS_RESET = 273,
1: + NVME_SC_FW_NEEDS_MAX_TIME = 274,
1: + NVME_SC_FW_ACTIVATE_PROHIBITED = 275,
1: + NVME_SC_OVERLAPPING_RANGE = 276,
1: + NVME_SC_NS_INSUFFICIENT_CAP = 277,
1: + NVME_SC_NS_ID_UNAVAILABLE = 278,
1: + NVME_SC_NS_ALREADY_ATTACHED = 280,
1: + NVME_SC_NS_IS_PRIVATE = 281,
1: + NVME_SC_NS_NOT_ATTACHED = 282,
1: + NVME_SC_THIN_PROV_NOT_SUPP = 283,
1: + NVME_SC_CTRL_LIST_INVALID = 284,
1: + NVME_SC_BP_WRITE_PROHIBITED = 286,
1: + NVME_SC_PMR_SAN_PROHIBITED = 291,
1: + NVME_SC_BAD_ATTRIBUTES = 384,
1: + NVME_SC_INVALID_PI = 385,
1: + NVME_SC_READ_ONLY = 386,
1: + NVME_SC_ONCS_NOT_SUPPORTED = 387,
1: + NVME_SC_CONNECT_FORMAT = 384,
1: + NVME_SC_CONNECT_CTRL_BUSY = 385,
1: + NVME_SC_CONNECT_INVALID_PARAM = 386,
1: + NVME_SC_CONNECT_RESTART_DISC = 387,
1: + NVME_SC_CONNECT_INVALID_HOST = 388,
1: + NVME_SC_DISCOVERY_RESTART = 400,
1: + NVME_SC_AUTH_REQUIRED = 401,
1: + NVME_SC_ZONE_BOUNDARY_ERROR = 440,
1: + NVME_SC_ZONE_FULL = 441,
1: + NVME_SC_ZONE_READ_ONLY = 442,
1: + NVME_SC_ZONE_OFFLINE = 443,
1: + NVME_SC_ZONE_INVALID_WRITE = 444,
1: + NVME_SC_ZONE_TOO_MANY_ACTIVE = 445,
1: + NVME_SC_ZONE_TOO_MANY_OPEN = 446,
1: + NVME_SC_ZONE_INVALID_TRANSITION = 447,
1: + NVME_SC_WRITE_FAULT = 640,
1: + NVME_SC_READ_ERROR = 641,
1: + NVME_SC_GUARD_CHECK = 642,
1: + NVME_SC_APPTAG_CHECK = 643,
1: + NVME_SC_REFTAG_CHECK = 644,
1: + NVME_SC_COMPARE_FAILED = 645,
1: + NVME_SC_ACCESS_DENIED = 646,
1: + NVME_SC_UNWRITTEN_BLOCK = 647,
1: + NVME_SC_ANA_PERSISTENT_LOSS = 769,
1: + NVME_SC_ANA_INACCESSIBLE = 770,
1: + NVME_SC_ANA_TRANSITION = 771,
1: + NVME_SC_HOST_PATH_ERROR = 880,
1: + NVME_SC_HOST_ABORTED_CMD = 881,
1: + NVME_SC_CRD = 6144,
1: + NVME_SC_DNR = 16384,
1: +};
1: +
1: +union nvme_result {
1: + __le16 u16;
1: + __le32 u32;
1: + __le64 u64;
1: +};
1: +
1: +enum nvme_quirks {
1: + NVME_QUIRK_STRIPE_SIZE = 1,
1: + NVME_QUIRK_IDENTIFY_CNS = 2,
1: + NVME_QUIRK_DEALLOCATE_ZEROES = 4,
1: + NVME_QUIRK_DELAY_BEFORE_CHK_RDY = 8,
1: + NVME_QUIRK_NO_APST = 16,
1: + NVME_QUIRK_NO_DEEPEST_PS = 32,
1: + NVME_QUIRK_LIGHTNVM = 64,
1: + NVME_QUIRK_MEDIUM_PRIO_SQ = 128,
1: + NVME_QUIRK_IGNORE_DEV_SUBNQN = 256,
1: + NVME_QUIRK_DISABLE_WRITE_ZEROES = 512,
1: + NVME_QUIRK_SIMPLE_SUSPEND = 1024,
1: + NVME_QUIRK_SINGLE_VECTOR = 2048,
1: + NVME_QUIRK_128_BYTES_SQES = 4096,
1: + NVME_QUIRK_SHARED_TAGS = 8192,
1: + NVME_QUIRK_NO_TEMP_THRESH_CHANGE = 16384,
1: + NVME_QUIRK_NO_NS_DESC_LIST = 32768,
1: +};
1: +
1: +struct nvme_ctrl;
1: +
1: +struct nvme_request {
1: + struct nvme_command *cmd;
1: + union nvme_result result;
1: + u8 retries;
1: + u8 flags;
1: + u16 status;
1: + struct nvme_ctrl *ctrl;
1: +};
1: +
1: +enum nvme_ctrl_state {
1: + NVME_CTRL_NEW = 0,
1: + NVME_CTRL_LIVE = 1,
1: + NVME_CTRL_RESETTING = 2,
1: + NVME_CTRL_CONNECTING = 3,
1: + NVME_CTRL_DELETING = 4,
1: + NVME_CTRL_DELETING_NOIO = 5,
1: + NVME_CTRL_DEAD = 6,
1: +};
1: +
1: +struct opal_dev;
1: +
1: +struct nvme_fault_inject {};
1: +
1: +struct nvme_ctrl_ops;
1: +
1: +struct nvme_subsystem;
1: +
1: +struct nvmf_ctrl_options;
1: +
1: +struct nvme_ctrl {
1: + bool comp_seen;
1: + enum nvme_ctrl_state state;
1: + bool identified;
1: + spinlock_t lock;
1: + struct mutex scan_lock;
1: + const struct nvme_ctrl_ops *ops;
1: + struct request_queue *admin_q;
1: + struct request_queue *connect_q;
1: + struct request_queue *fabrics_q;
1: + struct device *dev;
1: + int instance;
1: + int numa_node;
1: + struct blk_mq_tag_set *tagset;
1: + struct blk_mq_tag_set *admin_tagset;
1: + struct list_head namespaces;
1: + struct rw_semaphore namespaces_rwsem;
1: + struct device ctrl_device;
1: + struct device *device;
1: + struct cdev cdev;
1: + struct work_struct reset_work;
1: + struct work_struct delete_work;
1: + wait_queue_head_t state_wq;
1: + struct nvme_subsystem *subsys;
1: + struct list_head subsys_entry;
1: + struct opal_dev *opal_dev;
1: + char name[12];
1: + u16 cntlid;
1: + u32 ctrl_config;
1: + u16 mtfa;
1: + u32 queue_count;
1: + u64 cap;
1: + u32 max_hw_sectors;
1: + u32 max_segments;
1: + u32 max_integrity_segments;
1: + u32 max_zone_append;
1: + u16 crdt[3];
1: + u16 oncs;
1: + u16 oacs;
1: + u16 nssa;
1: + u16 nr_streams;
1: + u16 sqsize;
1: + u32 max_namespaces;
1: + atomic_t abort_limit;
1: + u8 vwc;
1: + u32 vs;
1: + u32 sgls;
1: + u16 kas;
1: + u8 npss;
1: + u8 apsta;
1: + u16 wctemp;
1: + u16 cctemp;
1: + u32 oaes;
1: + u32 aen_result;
1: + u32 ctratt;
1: + unsigned int shutdown_timeout;
1: + unsigned int kato;
1: + bool subsystem;
1: + long unsigned int quirks;
1: + struct nvme_id_power_state psd[32];
1: + struct nvme_effects_log *effects;
1: + struct xarray cels;
1: + struct work_struct scan_work;
1: + struct work_struct async_event_work;
1: + struct delayed_work ka_work;
1: + struct nvme_command ka_cmd;
1: + struct work_struct fw_act_work;
1: + long unsigned int events;
1: + u64 ps_max_latency_us;
1: + bool apst_enabled;
1: + u32 hmpre;
1: + u32 hmmin;
1: + u32 hmminds;
1: + u16 hmmaxd;
1: + u32 ioccsz;
1: + u32 iorcsz;
1: + u16 icdoff;
1: + u16 maxcmd;
1: + int nr_reconnects;
1: + struct nvmf_ctrl_options *opts;
1: + struct page *discard_page;
1: + long unsigned int discard_page_busy;
1: + struct nvme_fault_inject fault_inject;
1: +};
1: +
1: +enum {
1: + NVME_REQ_CANCELLED = 1,
1: + NVME_REQ_USERCMD = 2,
1: +};
1: +
1: +struct nvme_ctrl_ops {
1: + const char *name;
1: + struct module *module;
1: + unsigned int flags;
1: + int (*reg_read32)(struct nvme_ctrl *, u32, u32 *);
1: + int (*reg_write32)(struct nvme_ctrl *, u32, u32);
1: + int (*reg_read64)(struct nvme_ctrl *, u32, u64 *);
1: + void (*free_ctrl)(struct nvme_ctrl *);
1: + void (*submit_async_event)(struct nvme_ctrl *);
1: + void (*delete_ctrl)(struct nvme_ctrl *);
1: + int (*get_address)(struct nvme_ctrl *, char *, int);
1: +};
1: +
1: +struct nvme_subsystem {
1: + int instance;
1: + struct device dev;
1: + struct kref ref;
1: + struct list_head entry;
1: + struct mutex lock;
1: + struct list_head ctrls;
1: + struct list_head nsheads;
1: + char subnqn[223];
1: + char serial[20];
1: + char model[40];
1: + char firmware_rev[8];
1: + u8 cmic;
1: + u16 vendor_id;
1: + u16 awupf;
1: + struct ida ns_ida;
1: +};
1: +
1: +struct nvmf_host;
1: +
1: +struct nvmf_ctrl_options {
1: + unsigned int mask;
1: + char *transport;
1: + char *subsysnqn;
1: + char *traddr;
1: + char *trsvcid;
1: + char *host_traddr;
1: + size_t queue_size;
1: + unsigned int nr_io_queues;
1: + unsigned int reconnect_delay;
1: + bool discovery_nqn;
1: + bool duplicate_connect;
1: + unsigned int kato;
1: + struct nvmf_host *host;
1: + int max_reconnects;
1: + bool disable_sqflow;
1: + bool hdr_digest;
1: + bool data_digest;
1: + unsigned int nr_write_queues;
1: + unsigned int nr_poll_queues;
1: + int tos;
1: +};
1: +
1: +struct nvme_ns_ids {
1: + u8 eui64[8];
1: + u8 nguid[16];
1: + uuid_t uuid;
1: + u8 csi;
1: +};
1: +
1: +struct nvme_ns_head {
1: + struct list_head list;
1: + struct srcu_struct srcu;
1: + struct nvme_subsystem *subsys;
1: + unsigned int ns_id;
1: + struct nvme_ns_ids ids;
1: + struct list_head entry;
1: + struct kref ref;
1: + bool shared;
1: + int instance;
1: + struct nvme_effects_log *effects;
1: +};
1: +
1: +enum nvme_ns_features {
1: + NVME_NS_EXT_LBAS = 1,
1: + NVME_NS_METADATA_SUPPORTED = 2,
1: +};
1: +
1: +struct nvme_ns {
1: + struct list_head list;
1: + struct nvme_ctrl *ctrl;
1: + struct request_queue *queue;
1: + struct gendisk *disk;
1: + struct list_head siblings;
1: + struct nvm_dev *ndev;
1: + struct kref kref;
1: + struct nvme_ns_head *head;
1: + int lba_shift;
1: + u16 ms;
1: + u16 sgs;
1: + u32 sws;
1: + u8 pi_type;
1: + u64 zsze;
1: + long unsigned int features;
1: + long unsigned int flags;
1: + struct nvme_fault_inject fault_inject;
1: +};
1: +
1: +struct nvmf_host {
1: + struct kref ref;
1: + struct list_head list;
1: + char nqn[223];
1: + uuid_t id;
1: +};
1: +
1: +struct trace_event_raw_nvme_setup_cmd {
1: + struct trace_entry ent;
1: + char disk[32];
1: + int ctrl_id;
1: + int qid;
1: + u8 opcode;
1: + u8 flags;
1: + u8 fctype;
1: + u16 cid;
1: + u32 nsid;
1: + u64 metadata;
1: + u8 cdw10[24];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_nvme_complete_rq {
1: + struct trace_entry ent;
1: + char disk[32];
1: + int ctrl_id;
1: + int qid;
1: + int cid;
1: + u64 result;
1: + u8 retries;
1: + u8 flags;
1: + u16 status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_nvme_async_event {
1: + struct trace_entry ent;
1: + int ctrl_id;
1: + u32 result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_nvme_sq {
1: + struct trace_entry ent;
1: + int ctrl_id;
1: + char disk[32];
1: + int qid;
1: + u16 sq_head;
1: + u16 sq_tail;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_nvme_setup_cmd {};
1: +
1: +struct trace_event_data_offsets_nvme_complete_rq {};
1: +
1: +struct trace_event_data_offsets_nvme_async_event {};
1: +
1: +struct trace_event_data_offsets_nvme_sq {};
1: +
1: +typedef void (*btf_trace_nvme_setup_cmd)(void *, struct request *, struct nvme_command *);
1: +
1: +typedef void (*btf_trace_nvme_complete_rq)(void *, struct request *);
1: +
1: +typedef void (*btf_trace_nvme_async_event)(void *, struct nvme_ctrl *, u32);
1: +
1: +typedef void (*btf_trace_nvme_sq)(void *, struct request *, __le16, int);
1: +
1: +enum nvme_disposition {
1: + COMPLETE = 0,
1: + RETRY = 1,
1: + FAILOVER = 2,
1: +};
1: +
1: +struct nvme_core_quirk_entry {
1: + u16 vid;
1: + const char *mn;
1: + const char *fr;
1: + long unsigned int quirks;
1: +};
1: +
1: +struct nvm_user_vio {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 control;
1: + __u16 nppas;
1: + __u16 rsvd;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u64 ppa_list;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u64 status;
1: + __u32 result;
1: + __u32 rsvd3[3];
1: +};
1: +
1: +struct nvm_passthru_vio {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u8 rsvd[2];
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u64 ppa_list;
1: + __u16 nppas;
1: + __u16 control;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u64 status;
1: + __u32 result;
1: + __u32 timeout_ms;
1: +};
1: +
1: +enum nvme_nvm_admin_opcode {
1: + nvme_nvm_admin_identity = 226,
1: + nvme_nvm_admin_get_bb_tbl = 242,
1: + nvme_nvm_admin_set_bb_tbl = 241,
1: +};
1: +
1: +enum nvme_nvm_log_page {
1: + NVME_NVM_LOG_REPORT_CHUNK = 202,
1: +};
1: +
1: +struct nvme_nvm_ph_rw {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le64 resv;
1: +};
1: +
1: +struct nvme_nvm_erase_blk {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le64 resv;
1: +};
1: +
1: +struct nvme_nvm_identity {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __u32 rsvd11[6];
1: +};
1: +
1: +struct nvme_nvm_getbbtbl {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __u32 rsvd4[4];
1: +};
1: +
1: +struct nvme_nvm_setbbtbl {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 nlb;
1: + __u8 value;
1: + __u8 rsvd3;
1: + __u32 rsvd4[3];
1: +};
1: +
1: +struct nvme_nvm_command {
1: + union {
1: + struct nvme_common_command common;
1: + struct nvme_nvm_ph_rw ph_rw;
1: + struct nvme_nvm_erase_blk erase;
1: + struct nvme_nvm_identity identity;
1: + struct nvme_nvm_getbbtbl get_bb;
1: + struct nvme_nvm_setbbtbl set_bb;
1: + };
1: +};
1: +
1: +struct nvme_nvm_id12_grp {
1: + __u8 mtype;
1: + __u8 fmtype;
1: + __le16 res16;
1: + __u8 num_ch;
1: + __u8 num_lun;
1: + __u8 num_pln;
1: + __u8 rsvd1;
1: + __le16 num_chk;
1: + __le16 num_pg;
1: + __le16 fpg_sz;
1: + __le16 csecs;
1: + __le16 sos;
1: + __le16 rsvd2;
1: + __le32 trdt;
1: + __le32 trdm;
1: + __le32 tprt;
1: + __le32 tprm;
1: + __le32 tbet;
1: + __le32 tbem;
1: + __le32 mpos;
1: + __le32 mccap;
1: + __le16 cpar;
1: + __u8 reserved[906];
1: +};
1: +
1: +struct nvme_nvm_id12_addrf {
1: + __u8 ch_offset;
1: + __u8 ch_len;
1: + __u8 lun_offset;
1: + __u8 lun_len;
1: + __u8 pln_offset;
1: + __u8 pln_len;
1: + __u8 blk_offset;
1: + __u8 blk_len;
1: + __u8 pg_offset;
1: + __u8 pg_len;
1: + __u8 sec_offset;
1: + __u8 sec_len;
1: + __u8 res[4];
1: +};
1: +
1: +struct nvme_nvm_id12 {
1: + __u8 ver_id;
1: + __u8 vmnt;
1: + __u8 cgrps;
1: + __u8 res;
1: + __le32 cap;
1: + __le32 dom;
1: + struct nvme_nvm_id12_addrf ppaf;
1: + __u8 resv[228];
1: + struct nvme_nvm_id12_grp grp;
1: + __u8 resv2[2880];
1: +};
1: +
1: +struct nvme_nvm_bb_tbl {
1: + __u8 tblid[4];
1: + __le16 verid;
1: + __le16 revid;
1: + __le32 rvsd1;
1: + __le32 tblks;
1: + __le32 tfact;
1: + __le32 tgrown;
1: + __le32 tdresv;
1: + __le32 thresv;
1: + __le32 rsvd2[8];
1: + __u8 blk[0];
1: +};
1: +
1: +struct nvme_nvm_id20_addrf {
1: + __u8 grp_len;
1: + __u8 pu_len;
1: + __u8 chk_len;
1: + __u8 lba_len;
1: + __u8 resv[4];
1: +};
1: +
1: +struct nvme_nvm_id20 {
1: + __u8 mjr;
1: + __u8 mnr;
1: + __u8 resv[6];
1: + struct nvme_nvm_id20_addrf lbaf;
1: + __le32 mccap;
1: + __u8 resv2[12];
1: + __u8 wit;
1: + __u8 resv3[31];
1: + __le16 num_grp;
1: + __le16 num_pu;
1: + __le32 num_chk;
1: + __le32 clba;
1: + __u8 resv4[52];
1: + __le32 ws_min;
1: + __le32 ws_opt;
1: + __le32 mw_cunits;
1: + __le32 maxoc;
1: + __le32 maxocpu;
1: + __u8 resv5[44];
1: + __le32 trdt;
1: + __le32 trdm;
1: + __le32 twrt;
1: + __le32 twrm;
1: + __le32 tcrst;
1: + __le32 tcrsm;
1: + __u8 resv6[40];
1: + __u8 resv7[2816];
1: + __u8 vs[1024];
1: +};
1: +
1: +struct nvme_nvm_chk_meta {
1: + __u8 state;
1: + __u8 type;
1: + __u8 wi;
1: + __u8 rsvd[5];
1: + __le64 slba;
1: + __le64 cnlb;
1: + __le64 wp;
1: +};
1: +
1: +struct nvme_zns_lbafe {
1: + __le64 zsze;
1: + __u8 zdes;
1: + __u8 rsvd9[7];
1: +};
1: +
1: +struct nvme_id_ns_zns {
1: + __le16 zoc;
1: + __le16 ozcs;
1: + __le32 mar;
1: + __le32 mor;
1: + __le32 rrl;
1: + __le32 frl;
1: + __u8 rsvd20[2796];
1: + struct nvme_zns_lbafe lbafe[16];
1: + __u8 rsvd3072[768];
1: + __u8 vs[256];
1: +};
1: +
1: +struct nvme_id_ctrl_zns {
1: + __u8 zasl;
1: + __u8 rsvd1[4095];
1: +};
1: +
1: +struct nvme_zone_descriptor {
1: + __u8 zt;
1: + __u8 zs;
1: + __u8 za;
1: + __u8 rsvd3[5];
1: + __le64 zcap;
1: + __le64 zslba;
1: + __le64 wp;
1: + __u8 rsvd32[32];
1: +};
1: +
1: +enum {
1: + NVME_ZONE_TYPE_SEQWRITE_REQ = 2,
1: +};
1: +
1: +struct nvme_zone_report {
1: + __le64 nr_zones;
1: + __u8 resv8[56];
1: + struct nvme_zone_descriptor entries[0];
1: +};
1: +
1: +enum {
1: + NVME_ZRA_ZONE_REPORT = 0,
1: + NVME_ZRASF_ZONE_REPORT_ALL = 0,
1: + NVME_REPORT_ZONE_PARTIAL = 1,
1: +};
1: +
1: +enum {
1: + NVME_CMBSZ_SQS = 1,
1: + NVME_CMBSZ_CQS = 2,
1: + NVME_CMBSZ_LISTS = 4,
1: + NVME_CMBSZ_RDS = 8,
1: + NVME_CMBSZ_WDS = 16,
1: + NVME_CMBSZ_SZ_SHIFT = 12,
1: + NVME_CMBSZ_SZ_MASK = 1048575,
1: + NVME_CMBSZ_SZU_SHIFT = 8,
1: + NVME_CMBSZ_SZU_MASK = 15,
1: +};
1: +
1: +enum {
1: + NVME_SGL_FMT_DATA_DESC = 0,
1: + NVME_SGL_FMT_SEG_DESC = 2,
1: + NVME_SGL_FMT_LAST_SEG_DESC = 3,
1: + NVME_KEY_SGL_FMT_DATA_DESC = 4,
1: + NVME_TRANSPORT_SGL_DATA_DESC = 5,
1: +};
1: +
1: +enum {
1: + NVME_HOST_MEM_ENABLE = 1,
1: + NVME_HOST_MEM_RETURN = 2,
1: +};
1: +
1: +struct nvme_host_mem_buf_desc {
1: + __le64 addr;
1: + __le32 size;
1: + __u32 rsvd;
1: +};
1: +
1: +struct nvme_completion {
1: + union nvme_result result;
1: + __le16 sq_head;
1: + __le16 sq_id;
1: + __u16 command_id;
1: + __le16 status;
1: +};
1: +
1: +struct nvme_queue;
1: +
1: +struct nvme_dev {
1: + struct nvme_queue *queues;
1: + struct blk_mq_tag_set tagset;
1: + struct blk_mq_tag_set admin_tagset;
1: + u32 *dbs;
1: + struct device *dev;
1: + struct dma_pool___2 *prp_page_pool;
1: + struct dma_pool___2 *prp_small_pool;
1: + unsigned int online_queues;
1: + unsigned int max_qid;
1: + unsigned int io_queues[3];
1: + unsigned int num_vecs;
1: + u32 q_depth;
1: + int io_sqes;
1: + u32 db_stride;
1: + void *bar;
1: + long unsigned int bar_mapped_size;
1: + struct work_struct remove_work;
1: + struct mutex shutdown_lock;
1: + bool subsystem;
1: + u64 cmb_size;
1: + bool cmb_use_sqes;
1: + u32 cmbsz;
1: + u32 cmbloc;
1: + struct nvme_ctrl ctrl;
1: + u32 last_ps;
1: + mempool_t *iod_mempool;
1: + u32 *dbbuf_dbs;
1: + dma_addr_t dbbuf_dbs_dma_addr;
1: + u32 *dbbuf_eis;
1: + dma_addr_t dbbuf_eis_dma_addr;
1: + u64 host_mem_size;
1: + u32 nr_host_mem_descs;
1: + dma_addr_t host_mem_descs_dma;
1: + struct nvme_host_mem_buf_desc *host_mem_descs;
1: + void **host_mem_desc_bufs;
1: + unsigned int nr_allocated_queues;
1: + unsigned int nr_write_queues;
1: + unsigned int nr_poll_queues;
1: +};
1: +
1: +struct nvme_queue {
1: + struct nvme_dev *dev;
1: + spinlock_t sq_lock;
1: + void *sq_cmds;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t cq_poll_lock;
1: + struct nvme_completion *cqes;
1: + dma_addr_t sq_dma_addr;
1: + dma_addr_t cq_dma_addr;
1: + u32 *q_db;
1: + u32 q_depth;
1: + u16 cq_vector;
1: + u16 sq_tail;
1: + u16 last_sq_tail;
1: + u16 cq_head;
1: + u16 qid;
1: + u8 cq_phase;
1: + u8 sqes;
1: + long unsigned int flags;
1: + u32 *dbbuf_sq_db;
1: + u32 *dbbuf_cq_db;
1: + u32 *dbbuf_sq_ei;
1: + u32 *dbbuf_cq_ei;
1: + struct completion delete_done;
1: +};
1: +
1: +struct nvme_iod {
1: + struct nvme_request req;
1: + struct nvme_queue *nvmeq;
1: + bool use_sgl;
1: + int aborted;
1: + int npages;
1: + int nents;
1: + dma_addr_t first_dma;
1: + unsigned int dma_len;
1: + dma_addr_t meta_dma;
1: + struct scatterlist *sg;
1: +};
1: +
1: +typedef void (*spi_res_release_t)(struct spi_controller *, struct spi_message *, void *);
1: +
1: +struct spi_res {
1: + struct list_head entry;
1: + spi_res_release_t release;
1: + long long unsigned int data[0];
1: +};
1: +
1: +struct spi_replaced_transfers;
1: +
1: +typedef void (*spi_replaced_release_t)(struct spi_controller *, struct spi_message *, struct spi_replaced_transfers *);
1: +
1: +struct spi_replaced_transfers {
1: + spi_replaced_release_t release;
1: + void *extradata;
1: + struct list_head replaced_transfers;
1: + struct list_head *replaced_after;
1: + size_t inserted;
1: + struct spi_transfer inserted_transfers[0];
1: +};
1: +
1: +struct spi_board_info {
1: + char modalias[32];
1: + const void *platform_data;
1: + const struct property_entry *properties;
1: + void *controller_data;
1: + int irq;
1: + u32 max_speed_hz;
1: + u16 bus_num;
1: + u16 chip_select;
1: + u32 mode;
1: +};
1: +
1: +enum spi_mem_data_dir {
1: + SPI_MEM_NO_DATA = 0,
1: + SPI_MEM_DATA_IN = 1,
1: + SPI_MEM_DATA_OUT = 2,
1: +};
1: +
1: +struct spi_mem_op {
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr: 1;
1: + u16 opcode;
1: + } cmd;
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr: 1;
1: + u64 val;
1: + } addr;
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr: 1;
1: + } dummy;
1: + struct {
1: + u8 buswidth;
1: + u8 dtr: 1;
1: + enum spi_mem_data_dir dir;
1: + unsigned int nbytes;
1: + union {
1: + void *in;
1: + const void *out;
1: + } buf;
1: + } data;
1: +};
1: +
1: +struct spi_mem_dirmap_info {
1: + struct spi_mem_op op_tmpl;
1: + u64 offset;
1: + u64 length;
1: +};
1: +
1: +struct spi_mem_dirmap_desc {
1: + struct spi_mem *mem;
1: + struct spi_mem_dirmap_info info;
1: + unsigned int nodirmap;
1: + void *priv;
1: +};
1: +
1: +struct spi_mem {
1: + struct spi_device *spi;
1: + void *drvpriv;
1: + const char *name;
1: +};
1: +
1: +struct trace_event_raw_spi_controller {
1: + struct trace_entry ent;
1: + int bus_num;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_spi_message {
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_message *msg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_spi_message_done {
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_message *msg;
1: + unsigned int frame;
1: + unsigned int actual;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_spi_transfer {
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_transfer *xfer;
1: + int len;
1: + u32 __data_loc_rx_buf;
1: + u32 __data_loc_tx_buf;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_spi_controller {};
1: +
1: +struct trace_event_data_offsets_spi_message {};
1: +
1: +struct trace_event_data_offsets_spi_message_done {};
1: +
1: +struct trace_event_data_offsets_spi_transfer {
1: + u32 rx_buf;
1: + u32 tx_buf;
1: +};
1: +
1: +typedef void (*btf_trace_spi_controller_idle)(void *, struct spi_controller *);
1: +
1: +typedef void (*btf_trace_spi_controller_busy)(void *, struct spi_controller *);
1: +
1: +typedef void (*btf_trace_spi_message_submit)(void *, struct spi_message *);
1: +
1: +typedef void (*btf_trace_spi_message_start)(void *, struct spi_message *);
1: +
1: +typedef void (*btf_trace_spi_message_done)(void *, struct spi_message *);
1: +
1: +typedef void (*btf_trace_spi_transfer_start)(void *, struct spi_message *, struct spi_transfer *);
1: +
1: +typedef void (*btf_trace_spi_transfer_stop)(void *, struct spi_message *, struct spi_transfer *);
1: +
1: +struct boardinfo {
1: + struct list_head list;
1: + struct spi_board_info board_info;
1: +};
1: +
1: +struct acpi_spi_lookup {
1: + struct spi_controller *ctlr;
1: + u32 max_speed_hz;
1: + u32 mode;
1: + int irq;
1: + u8 bits_per_word;
1: + u8 chip_select;
1: +};
1: +
1: +struct spi_mem_driver {
1: + struct spi_driver spidrv;
1: + int (*probe)(struct spi_mem *);
1: + int (*remove)(struct spi_mem *);
1: + void (*shutdown)(struct spi_mem *);
1: +};
1: +
1: +struct meson_spifc {
1: + struct spi_controller *master;
1: + struct regmap *regmap;
1: + struct clk *clk;
1: + struct device *dev;
1: +};
1: +
1: +enum orion_spi_type {
1: + ORION_SPI = 0,
1: + ARMADA_SPI = 1,
1: +};
1: +
1: +struct orion_spi_dev {
1: + enum orion_spi_type typ;
1: + long unsigned int max_hz;
1: + unsigned int min_divisor;
1: + unsigned int max_divisor;
1: + u32 prescale_mask;
1: + bool is_errata_50mhz_ac;
1: +};
1: +
1: +struct orion_direct_acc {
1: + void *vaddr;
1: + u32 size;
1: +};
1: +
1: +struct orion_child_options {
1: + struct orion_direct_acc direct_access;
1: +};
1: +
1: +struct orion_spi {
1: + struct spi_controller *master;
1: + void *base;
1: + struct clk *clk;
1: + struct clk *axi_clk;
1: + const struct orion_spi_dev *devdata;
1: + struct orion_child_options child[8];
1: +};
1: +
1: +enum ssp_loopback {
1: + LOOPBACK_DISABLED = 0,
1: + LOOPBACK_ENABLED = 1,
1: +};
1: +
1: +enum ssp_interface {
1: + SSP_INTERFACE_MOTOROLA_SPI = 0,
1: + SSP_INTERFACE_TI_SYNC_SERIAL = 1,
1: + SSP_INTERFACE_NATIONAL_MICROWIRE = 2,
1: + SSP_INTERFACE_UNIDIRECTIONAL = 3,
1: +};
1: +
1: +enum ssp_hierarchy {
1: + SSP_MASTER = 0,
1: + SSP_SLAVE = 1,
1: +};
1: +
1: +struct ssp_clock_params {
1: + u8 cpsdvsr;
1: + u8 scr;
1: +};
1: +
1: +enum ssp_rx_endian {
1: + SSP_RX_MSB = 0,
1: + SSP_RX_LSB = 1,
1: +};
1: +
1: +enum ssp_tx_endian {
1: + SSP_TX_MSB = 0,
1: + SSP_TX_LSB = 1,
1: +};
1: +
1: +enum ssp_data_size {
1: + SSP_DATA_BITS_4 = 3,
1: + SSP_DATA_BITS_5 = 4,
1: + SSP_DATA_BITS_6 = 5,
1: + SSP_DATA_BITS_7 = 6,
1: + SSP_DATA_BITS_8 = 7,
1: + SSP_DATA_BITS_9 = 8,
1: + SSP_DATA_BITS_10 = 9,
1: + SSP_DATA_BITS_11 = 10,
1: + SSP_DATA_BITS_12 = 11,
1: + SSP_DATA_BITS_13 = 12,
1: + SSP_DATA_BITS_14 = 13,
1: + SSP_DATA_BITS_15 = 14,
1: + SSP_DATA_BITS_16 = 15,
1: + SSP_DATA_BITS_17 = 16,
1: + SSP_DATA_BITS_18 = 17,
1: + SSP_DATA_BITS_19 = 18,
1: + SSP_DATA_BITS_20 = 19,
1: + SSP_DATA_BITS_21 = 20,
1: + SSP_DATA_BITS_22 = 21,
1: + SSP_DATA_BITS_23 = 22,
1: + SSP_DATA_BITS_24 = 23,
1: + SSP_DATA_BITS_25 = 24,
1: + SSP_DATA_BITS_26 = 25,
1: + SSP_DATA_BITS_27 = 26,
1: + SSP_DATA_BITS_28 = 27,
1: + SSP_DATA_BITS_29 = 28,
1: + SSP_DATA_BITS_30 = 29,
1: + SSP_DATA_BITS_31 = 30,
1: + SSP_DATA_BITS_32 = 31,
1: +};
1: +
1: +enum ssp_mode {
1: + INTERRUPT_TRANSFER = 0,
1: + POLLING_TRANSFER = 1,
1: + DMA_TRANSFER = 2,
1: +};
1: +
1: +enum ssp_rx_level_trig {
1: + SSP_RX_1_OR_MORE_ELEM = 0,
1: + SSP_RX_4_OR_MORE_ELEM = 1,
1: + SSP_RX_8_OR_MORE_ELEM = 2,
1: + SSP_RX_16_OR_MORE_ELEM = 3,
1: + SSP_RX_32_OR_MORE_ELEM = 4,
1: +};
1: +
1: +enum ssp_tx_level_trig {
1: + SSP_TX_1_OR_MORE_EMPTY_LOC = 0,
1: + SSP_TX_4_OR_MORE_EMPTY_LOC = 1,
1: + SSP_TX_8_OR_MORE_EMPTY_LOC = 2,
1: + SSP_TX_16_OR_MORE_EMPTY_LOC = 3,
1: + SSP_TX_32_OR_MORE_EMPTY_LOC = 4,
1: +};
1: +
1: +enum ssp_spi_clk_phase {
1: + SSP_CLK_FIRST_EDGE = 0,
1: + SSP_CLK_SECOND_EDGE = 1,
1: +};
1: +
1: +enum ssp_spi_clk_pol {
1: + SSP_CLK_POL_IDLE_LOW = 0,
1: + SSP_CLK_POL_IDLE_HIGH = 1,
1: +};
1: +
1: +enum ssp_microwire_ctrl_len {
1: + SSP_BITS_4 = 3,
1: + SSP_BITS_5 = 4,
1: + SSP_BITS_6 = 5,
1: + SSP_BITS_7 = 6,
1: + SSP_BITS_8 = 7,
1: + SSP_BITS_9 = 8,
1: + SSP_BITS_10 = 9,
1: + SSP_BITS_11 = 10,
1: + SSP_BITS_12 = 11,
1: + SSP_BITS_13 = 12,
1: + SSP_BITS_14 = 13,
1: + SSP_BITS_15 = 14,
1: + SSP_BITS_16 = 15,
1: + SSP_BITS_17 = 16,
1: + SSP_BITS_18 = 17,
1: + SSP_BITS_19 = 18,
1: + SSP_BITS_20 = 19,
1: + SSP_BITS_21 = 20,
1: + SSP_BITS_22 = 21,
1: + SSP_BITS_23 = 22,
1: + SSP_BITS_24 = 23,
1: + SSP_BITS_25 = 24,
1: + SSP_BITS_26 = 25,
1: + SSP_BITS_27 = 26,
1: + SSP_BITS_28 = 27,
1: + SSP_BITS_29 = 28,
1: + SSP_BITS_30 = 29,
1: + SSP_BITS_31 = 30,
1: + SSP_BITS_32 = 31,
1: +};
1: +
1: +enum ssp_microwire_wait_state {
1: + SSP_MWIRE_WAIT_ZERO = 0,
1: + SSP_MWIRE_WAIT_ONE = 1,
1: +};
1: +
1: +enum ssp_duplex {
1: + SSP_MICROWIRE_CHANNEL_FULL_DUPLEX = 0,
1: + SSP_MICROWIRE_CHANNEL_HALF_DUPLEX = 1,
1: +};
1: +
1: +enum ssp_clkdelay {
1: + SSP_FEEDBACK_CLK_DELAY_NONE = 0,
1: + SSP_FEEDBACK_CLK_DELAY_1T = 1,
1: + SSP_FEEDBACK_CLK_DELAY_2T = 2,
1: + SSP_FEEDBACK_CLK_DELAY_3T = 3,
1: + SSP_FEEDBACK_CLK_DELAY_4T = 4,
1: + SSP_FEEDBACK_CLK_DELAY_5T = 5,
1: + SSP_FEEDBACK_CLK_DELAY_6T = 6,
1: + SSP_FEEDBACK_CLK_DELAY_7T = 7,
1: +};
1: +
1: +enum ssp_chip_select {
1: + SSP_CHIP_SELECT = 0,
1: + SSP_CHIP_DESELECT = 1,
1: +};
1: +
1: +struct pl022_ssp_controller {
1: + u16 bus_id;
1: + u8 num_chipselect;
1: + u8 enable_dma: 1;
1: + bool (*dma_filter)(struct dma_chan *, void *);
1: + void *dma_rx_param;
1: + void *dma_tx_param;
1: + int autosuspend_delay;
1: + bool rt;
1: + int *chipselects;
1: +};
1: +
1: +struct pl022_config_chip {
1: + enum ssp_interface iface;
1: + enum ssp_hierarchy hierarchy;
1: + bool slave_tx_disable;
1: + struct ssp_clock_params clk_freq;
1: + enum ssp_mode com_mode;
1: + enum ssp_rx_level_trig rx_lev_trig;
1: + enum ssp_tx_level_trig tx_lev_trig;
1: + enum ssp_microwire_ctrl_len ctrl_len;
1: + enum ssp_microwire_wait_state wait_state;
1: + enum ssp_duplex duplex;
1: + enum ssp_clkdelay clkdelay;
1: + void (*cs_control)(u32);
1: +};
1: +
1: +enum ssp_reading {
1: + READING_NULL = 0,
1: + READING_U8 = 1,
1: + READING_U16 = 2,
1: + READING_U32 = 3,
1: +};
1: +
1: +enum ssp_writing {
1: + WRITING_NULL = 0,
1: + WRITING_U8 = 1,
1: + WRITING_U16 = 2,
1: + WRITING_U32 = 3,
1: +};
1: +
1: +struct vendor_data___2 {
1: + int fifodepth;
1: + int max_bpw;
1: + bool unidir;
1: + bool extended_cr;
1: + bool pl023;
1: + bool loopback;
1: + bool internal_cs_ctrl;
1: +};
1: +
1: +struct chip_data;
1: +
1: +struct pl022 {
1: + struct amba_device *adev;
1: + struct vendor_data___2 *vendor;
1: + resource_size_t phybase;
1: + void *virtbase;
1: + struct clk *clk;
1: + struct spi_controller *master;
1: + struct pl022_ssp_controller *master_info;
1: + struct tasklet_struct pump_transfers;
1: + struct spi_message *cur_msg;
1: + struct spi_transfer *cur_transfer;
1: + struct chip_data *cur_chip;
1: + bool next_msg_cs_active;
1: + void *tx;
1: + void *tx_end;
1: + void *rx;
1: + void *rx_end;
1: + enum ssp_reading read;
1: + enum ssp_writing write;
1: + u32 exp_fifo_level;
1: + enum ssp_rx_level_trig rx_lev_trig;
1: + enum ssp_tx_level_trig tx_lev_trig;
1: + struct dma_chan *dma_rx_channel;
1: + struct dma_chan *dma_tx_channel;
1: + struct sg_table sgt_rx;
1: + struct sg_table sgt_tx;
1: + char *dummypage;
1: + bool dma_running;
1: + int cur_cs;
1: + int *chipselects;
1: +};
1: +
1: +struct chip_data {
1: + u32 cr0;
1: + u16 cr1;
1: + u16 dmacr;
1: + u16 cpsr;
1: + u8 n_bytes;
1: + bool enable_dma;
1: + enum ssp_reading read;
1: + enum ssp_writing write;
1: + void (*cs_control)(u32);
1: + int xfer_type;
1: +};
1: +
1: +struct spi_qup {
1: + void *base;
1: + struct device *dev;
1: + struct clk *cclk;
1: + struct clk *iclk;
1: + int irq;
1: + spinlock_t lock;
1: + int in_fifo_sz;
1: + int out_fifo_sz;
1: + int in_blk_sz;
1: + int out_blk_sz;
1: + struct spi_transfer *xfer;
1: + struct completion done;
1: + int error;
1: + int w_size;
1: + int n_words;
1: + int tx_bytes;
1: + int rx_bytes;
1: + const u8 *tx_buf;
1: + u8 *rx_buf;
1: + int qup_v1;
1: + int mode;
1: + struct dma_slave_config rx_conf;
1: + struct dma_slave_config tx_conf;
1: +};
1: +
1: +struct rockchip_spi {
1: + struct device *dev;
1: + struct clk *spiclk;
1: + struct clk *apb_pclk;
1: + void *regs;
1: + dma_addr_t dma_addr_rx;
1: + dma_addr_t dma_addr_tx;
1: + const void *tx;
1: + void *rx;
1: + unsigned int tx_left;
1: + unsigned int rx_left;
1: + atomic_t state;
1: + u32 fifo_len;
1: + u32 freq;
1: + u8 n_bytes;
1: + u8 rsd;
1: + bool cs_asserted[2];
1: + bool slave_abort;
1: +};
1: +
1: +struct s3c64xx_spi_csinfo {
1: + u8 fb_delay;
1: + unsigned int line;
1: +};
1: +
1: +struct s3c64xx_spi_info {
1: + int src_clk_nr;
1: + int num_cs;
1: + bool no_cs;
1: + int (*cfg_gpio)();
1: +};
1: +
1: +struct s3c64xx_spi_dma_data {
1: + struct dma_chan *ch;
1: + dma_cookie_t cookie;
1: + enum dma_transfer_direction direction;
1: +};
1: +
1: +struct s3c64xx_spi_port_config {
1: + int fifo_lvl_mask[6];
1: + int rx_lvl_offset;
1: + int tx_st_done;
1: + int quirks;
1: + bool high_speed;
1: + bool clk_from_cmu;
1: + bool clk_ioclk;
1: +};
1: +
1: +struct s3c64xx_spi_driver_data {
1: + void *regs;
1: + struct clk *clk;
1: + struct clk *src_clk;
1: + struct clk *ioclk;
1: + struct platform_device *pdev;
1: + struct spi_controller *master;
1: + struct s3c64xx_spi_info *cntrlr_info;
1: + spinlock_t lock;
1: + long unsigned int sfr_start;
1: + struct completion xfer_completion;
1: + unsigned int state;
1: + unsigned int cur_mode;
1: + unsigned int cur_bpw;
1: + unsigned int cur_speed;
1: + struct s3c64xx_spi_dma_data rx_dma;
1: + struct s3c64xx_spi_dma_data tx_dma;
1: + struct s3c64xx_spi_port_config *port_conf;
1: + unsigned int port_id;
1: +};
1: +
1: +struct devprobe2 {
1: + struct net_device * (*probe)(int);
1: + int status;
1: +};
1: +
1: +enum {
1: + NETIF_F_SG_BIT = 0,
1: + NETIF_F_IP_CSUM_BIT = 1,
1: + __UNUSED_NETIF_F_1 = 2,
1: + NETIF_F_HW_CSUM_BIT = 3,
1: + NETIF_F_IPV6_CSUM_BIT = 4,
1: + NETIF_F_HIGHDMA_BIT = 5,
1: + NETIF_F_FRAGLIST_BIT = 6,
1: + NETIF_F_HW_VLAN_CTAG_TX_BIT = 7,
1: + NETIF_F_HW_VLAN_CTAG_RX_BIT = 8,
1: + NETIF_F_HW_VLAN_CTAG_FILTER_BIT = 9,
1: + NETIF_F_VLAN_CHALLENGED_BIT = 10,
1: + NETIF_F_GSO_BIT = 11,
1: + NETIF_F_LLTX_BIT = 12,
1: + NETIF_F_NETNS_LOCAL_BIT = 13,
1: + NETIF_F_GRO_BIT = 14,
1: + NETIF_F_LRO_BIT = 15,
1: + NETIF_F_GSO_SHIFT = 16,
1: + NETIF_F_TSO_BIT = 16,
1: + NETIF_F_GSO_ROBUST_BIT = 17,
1: + NETIF_F_TSO_ECN_BIT = 18,
1: + NETIF_F_TSO_MANGLEID_BIT = 19,
1: + NETIF_F_TSO6_BIT = 20,
1: + NETIF_F_FSO_BIT = 21,
1: + NETIF_F_GSO_GRE_BIT = 22,
1: + NETIF_F_GSO_GRE_CSUM_BIT = 23,
1: + NETIF_F_GSO_IPXIP4_BIT = 24,
1: + NETIF_F_GSO_IPXIP6_BIT = 25,
1: + NETIF_F_GSO_UDP_TUNNEL_BIT = 26,
1: + NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT = 27,
1: + NETIF_F_GSO_PARTIAL_BIT = 28,
1: + NETIF_F_GSO_TUNNEL_REMCSUM_BIT = 29,
1: + NETIF_F_GSO_SCTP_BIT = 30,
1: + NETIF_F_GSO_ESP_BIT = 31,
1: + NETIF_F_GSO_UDP_BIT = 32,
1: + NETIF_F_GSO_UDP_L4_BIT = 33,
1: + NETIF_F_GSO_FRAGLIST_BIT = 34,
1: + NETIF_F_GSO_LAST = 34,
1: + NETIF_F_FCOE_CRC_BIT = 35,
1: + NETIF_F_SCTP_CRC_BIT = 36,
1: + NETIF_F_FCOE_MTU_BIT = 37,
1: + NETIF_F_NTUPLE_BIT = 38,
1: + NETIF_F_RXHASH_BIT = 39,
1: + NETIF_F_RXCSUM_BIT = 40,
1: + NETIF_F_NOCACHE_COPY_BIT = 41,
1: + NETIF_F_LOOPBACK_BIT = 42,
1: + NETIF_F_RXFCS_BIT = 43,
1: + NETIF_F_RXALL_BIT = 44,
1: + NETIF_F_HW_VLAN_STAG_TX_BIT = 45,
1: + NETIF_F_HW_VLAN_STAG_RX_BIT = 46,
1: + NETIF_F_HW_VLAN_STAG_FILTER_BIT = 47,
1: + NETIF_F_HW_L2FW_DOFFLOAD_BIT = 48,
1: + NETIF_F_HW_TC_BIT = 49,
1: + NETIF_F_HW_ESP_BIT = 50,
1: + NETIF_F_HW_ESP_TX_CSUM_BIT = 51,
1: + NETIF_F_RX_UDP_TUNNEL_PORT_BIT = 52,
1: + NETIF_F_HW_TLS_TX_BIT = 53,
1: + NETIF_F_HW_TLS_RX_BIT = 54,
1: + NETIF_F_GRO_HW_BIT = 55,
1: + NETIF_F_HW_TLS_RECORD_BIT = 56,
1: + NETIF_F_GRO_FRAGLIST_BIT = 57,
1: + NETIF_F_HW_MACSEC_BIT = 58,
1: + NETDEV_FEATURE_COUNT = 59,
1: +};
1: +
1: +enum {
1: + SKBTX_HW_TSTAMP = 1,
1: + SKBTX_SW_TSTAMP = 2,
1: + SKBTX_IN_PROGRESS = 4,
1: + SKBTX_DEV_ZEROCOPY = 8,
1: + SKBTX_WIFI_STATUS = 16,
1: + SKBTX_SHARED_FRAG = 32,
1: + SKBTX_SCHED_TSTAMP = 64,
1: +};
1: +
1: +enum netdev_priv_flags {
1: + IFF_802_1Q_VLAN = 1,
1: + IFF_EBRIDGE = 2,
1: + IFF_BONDING = 4,
1: + IFF_ISATAP = 8,
1: + IFF_WAN_HDLC = 16,
1: + IFF_XMIT_DST_RELEASE = 32,
1: + IFF_DONT_BRIDGE = 64,
1: + IFF_DISABLE_NETPOLL = 128,
1: + IFF_MACVLAN_PORT = 256,
1: + IFF_BRIDGE_PORT = 512,
1: + IFF_OVS_DATAPATH = 1024,
1: + IFF_TX_SKB_SHARING = 2048,
1: + IFF_UNICAST_FLT = 4096,
1: + IFF_TEAM_PORT = 8192,
1: + IFF_SUPP_NOFCS = 16384,
1: + IFF_LIVE_ADDR_CHANGE = 32768,
1: + IFF_MACVLAN = 65536,
1: + IFF_XMIT_DST_RELEASE_PERM = 131072,
1: + IFF_L3MDEV_MASTER = 262144,
1: + IFF_NO_QUEUE = 524288,
1: + IFF_OPENVSWITCH = 1048576,
1: + IFF_L3MDEV_SLAVE = 2097152,
1: + IFF_TEAM = 4194304,
1: + IFF_RXFH_CONFIGURED = 8388608,
1: + IFF_PHONY_HEADROOM = 16777216,
1: + IFF_MACSEC = 33554432,
1: + IFF_NO_RX_HANDLER = 67108864,
1: + IFF_FAILOVER = 134217728,
1: + IFF_FAILOVER_SLAVE = 268435456,
1: + IFF_L3MDEV_RX_HANDLER = 536870912,
1: + IFF_LIVE_RENAME_OK = 1073741824,
1: +};
1: +
1: +struct mdio_board_info {
1: + const char *bus_id;
1: + char modalias[32];
1: + int mdio_addr;
1: + const void *platform_data;
1: +};
1: +
1: +struct mdio_board_entry {
1: + struct list_head list;
1: + struct mdio_board_info board_info;
1: +};
1: +
1: +struct mdiobus_devres {
1: + struct mii_bus *mii;
1: +};
1: +
1: +enum netdev_state_t {
1: + __LINK_STATE_START = 0,
1: + __LINK_STATE_PRESENT = 1,
1: + __LINK_STATE_NOCARRIER = 2,
1: + __LINK_STATE_LINKWATCH_PENDING = 3,
1: + __LINK_STATE_DORMANT = 4,
1: + __LINK_STATE_TESTING = 5,
1: +};
1: +
1: +struct mii_ioctl_data {
1: + __u16 phy_id;
1: + __u16 reg_num;
1: + __u16 val_in;
1: + __u16 val_out;
1: +};
1: +
1: +enum {
1: + ETHTOOL_MSG_KERNEL_NONE = 0,
1: + ETHTOOL_MSG_STRSET_GET_REPLY = 1,
1: + ETHTOOL_MSG_LINKINFO_GET_REPLY = 2,
1: + ETHTOOL_MSG_LINKINFO_NTF = 3,
1: + ETHTOOL_MSG_LINKMODES_GET_REPLY = 4,
1: + ETHTOOL_MSG_LINKMODES_NTF = 5,
1: + ETHTOOL_MSG_LINKSTATE_GET_REPLY = 6,
1: + ETHTOOL_MSG_DEBUG_GET_REPLY = 7,
1: + ETHTOOL_MSG_DEBUG_NTF = 8,
1: + ETHTOOL_MSG_WOL_GET_REPLY = 9,
1: + ETHTOOL_MSG_WOL_NTF = 10,
1: + ETHTOOL_MSG_FEATURES_GET_REPLY = 11,
1: + ETHTOOL_MSG_FEATURES_SET_REPLY = 12,
1: + ETHTOOL_MSG_FEATURES_NTF = 13,
1: + ETHTOOL_MSG_PRIVFLAGS_GET_REPLY = 14,
1: + ETHTOOL_MSG_PRIVFLAGS_NTF = 15,
1: + ETHTOOL_MSG_RINGS_GET_REPLY = 16,
1: + ETHTOOL_MSG_RINGS_NTF = 17,
1: + ETHTOOL_MSG_CHANNELS_GET_REPLY = 18,
1: + ETHTOOL_MSG_CHANNELS_NTF = 19,
1: + ETHTOOL_MSG_COALESCE_GET_REPLY = 20,
1: + ETHTOOL_MSG_COALESCE_NTF = 21,
1: + ETHTOOL_MSG_PAUSE_GET_REPLY = 22,
1: + ETHTOOL_MSG_PAUSE_NTF = 23,
1: + ETHTOOL_MSG_EEE_GET_REPLY = 24,
1: + ETHTOOL_MSG_EEE_NTF = 25,
1: + ETHTOOL_MSG_TSINFO_GET_REPLY = 26,
1: + ETHTOOL_MSG_CABLE_TEST_NTF = 27,
1: + ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 28,
1: + ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 29,
1: + __ETHTOOL_MSG_KERNEL_CNT = 30,
1: + ETHTOOL_MSG_KERNEL_MAX = 29,
1: +};
1: +
1: +struct phy_setting {
1: + u32 speed;
1: + u8 duplex;
1: + u8 bit;
1: +};
1: +
1: +struct ethtool_phy_ops {
1: + int (*get_sset_count)(struct phy_device *);
1: + int (*get_strings)(struct phy_device *, u8 *);
1: + int (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: + int (*start_cable_test)(struct phy_device *, struct netlink_ext_ack *);
1: + int (*start_cable_test_tdr)(struct phy_device *, struct netlink_ext_ack *, const struct phy_tdr_config *);
1: +};
1: +
1: +struct phy_fixup {
1: + struct list_head list;
1: + char bus_id[64];
1: + u32 phy_uid;
1: + u32 phy_uid_mask;
1: + int (*run)(struct phy_device *);
1: +};
1: +
1: +struct sfp_eeprom_base {
1: + u8 phys_id;
1: + u8 phys_ext_id;
1: + u8 connector;
1: + u8 if_1x_copper_passive: 1;
1: + u8 if_1x_copper_active: 1;
1: + u8 if_1x_lx: 1;
1: + u8 if_1x_sx: 1;
1: + u8 e10g_base_sr: 1;
1: + u8 e10g_base_lr: 1;
1: + u8 e10g_base_lrm: 1;
1: + u8 e10g_base_er: 1;
1: + u8 sonet_oc3_short_reach: 1;
1: + u8 sonet_oc3_smf_intermediate_reach: 1;
1: + u8 sonet_oc3_smf_long_reach: 1;
1: + u8 unallocated_5_3: 1;
1: + u8 sonet_oc12_short_reach: 1;
1: + u8 sonet_oc12_smf_intermediate_reach: 1;
1: + u8 sonet_oc12_smf_long_reach: 1;
1: + u8 unallocated_5_7: 1;
1: + u8 sonet_oc48_short_reach: 1;
1: + u8 sonet_oc48_intermediate_reach: 1;
1: + u8 sonet_oc48_long_reach: 1;
1: + u8 sonet_reach_bit2: 1;
1: + u8 sonet_reach_bit1: 1;
1: + u8 sonet_oc192_short_reach: 1;
1: + u8 escon_smf_1310_laser: 1;
1: + u8 escon_mmf_1310_led: 1;
1: + u8 e1000_base_sx: 1;
1: + u8 e1000_base_lx: 1;
1: + u8 e1000_base_cx: 1;
1: + u8 e1000_base_t: 1;
1: + u8 e100_base_lx: 1;
1: + u8 e100_base_fx: 1;
1: + u8 e_base_bx10: 1;
1: + u8 e_base_px: 1;
1: + u8 fc_tech_electrical_inter_enclosure: 1;
1: + u8 fc_tech_lc: 1;
1: + u8 fc_tech_sa: 1;
1: + u8 fc_ll_m: 1;
1: + u8 fc_ll_l: 1;
1: + u8 fc_ll_i: 1;
1: + u8 fc_ll_s: 1;
1: + u8 fc_ll_v: 1;
1: + u8 unallocated_8_0: 1;
1: + u8 unallocated_8_1: 1;
1: + u8 sfp_ct_passive: 1;
1: + u8 sfp_ct_active: 1;
1: + u8 fc_tech_ll: 1;
1: + u8 fc_tech_sl: 1;
1: + u8 fc_tech_sn: 1;
1: + u8 fc_tech_electrical_intra_enclosure: 1;
1: + u8 fc_media_sm: 1;
1: + u8 unallocated_9_1: 1;
1: + u8 fc_media_m5: 1;
1: + u8 fc_media_m6: 1;
1: + u8 fc_media_tv: 1;
1: + u8 fc_media_mi: 1;
1: + u8 fc_media_tp: 1;
1: + u8 fc_media_tw: 1;
1: + u8 fc_speed_100: 1;
1: + u8 unallocated_10_1: 1;
1: + u8 fc_speed_200: 1;
1: + u8 fc_speed_3200: 1;
1: + u8 fc_speed_400: 1;
1: + u8 fc_speed_1600: 1;
1: + u8 fc_speed_800: 1;
1: + u8 fc_speed_1200: 1;
1: + u8 encoding;
1: + u8 br_nominal;
1: + u8 rate_id;
1: + u8 link_len[6];
1: + char vendor_name[16];
1: + u8 extended_cc;
1: + char vendor_oui[3];
1: + char vendor_pn[16];
1: + char vendor_rev[4];
1: + union {
1: + __be16 optical_wavelength;
1: + __be16 cable_compliance;
1: + struct {
1: + u8 sff8431_app_e: 1;
1: + u8 fc_pi_4_app_h: 1;
1: + u8 reserved60_2: 6;
1: + u8 reserved61: 8;
1: + } passive;
1: + struct {
1: + u8 sff8431_app_e: 1;
1: + u8 fc_pi_4_app_h: 1;
1: + u8 sff8431_lim: 1;
1: + u8 fc_pi_4_lim: 1;
1: + u8 reserved60_4: 4;
1: + u8 reserved61: 8;
1: + } active;
1: + };
1: + u8 reserved62;
1: + u8 cc_base;
1: +};
1: +
1: +struct sfp_eeprom_ext {
1: + __be16 options;
1: + u8 br_max;
1: + u8 br_min;
1: + char vendor_sn[16];
1: + char datecode[8];
1: + u8 diagmon;
1: + u8 enhopts;
1: + u8 sff8472_compliance;
1: + u8 cc_ext;
1: +};
1: +
1: +struct sfp_eeprom_id {
1: + struct sfp_eeprom_base base;
1: + struct sfp_eeprom_ext ext;
1: +};
1: +
1: +struct sfp_upstream_ops {
1: + void (*attach)(void *, struct sfp_bus *);
1: + void (*detach)(void *, struct sfp_bus *);
1: + int (*module_insert)(void *, const struct sfp_eeprom_id *);
1: + void (*module_remove)(void *);
1: + int (*module_start)(void *);
1: + void (*module_stop)(void *);
1: + void (*link_down)(void *);
1: + void (*link_up)(void *);
1: + int (*connect_phy)(void *, struct phy_device *);
1: + void (*disconnect_phy)(void *);
1: +};
1: +
1: +struct trace_event_raw_mdio_access {
1: + struct trace_entry ent;
1: + char busid[61];
1: + char read;
1: + u8 addr;
1: + u16 val;
1: + unsigned int regnum;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mdio_access {};
1: +
1: +typedef void (*btf_trace_mdio_access)(void *, struct mii_bus *, char, u8, unsigned int, u16, int);
1: +
1: +struct mdio_bus_stat_attr {
1: + int addr;
1: + unsigned int field_offset;
1: +};
1: +
1: +struct mdio_driver {
1: + struct mdio_driver_common mdiodrv;
1: + int (*probe)(struct mdio_device *);
1: + void (*remove)(struct mdio_device *);
1: +};
1: +
1: +struct fixed_phy_status {
1: + int link;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + int asym_pause;
1: +};
1: +
1: +struct swmii_regs {
1: + u16 bmsr;
1: + u16 lpa;
1: + u16 lpagb;
1: + u16 estat;
1: +};
1: +
1: +enum {
1: + SWMII_SPEED_10 = 0,
1: + SWMII_SPEED_100 = 1,
1: + SWMII_SPEED_1000 = 2,
1: + SWMII_DUPLEX_HALF = 0,
1: + SWMII_DUPLEX_FULL = 1,
1: +};
1: +
1: +struct sfp;
1: +
1: +struct sfp_socket_ops;
1: +
1: +struct sfp_quirk;
1: +
1: +struct sfp_bus {
1: + struct kref kref;
1: + struct list_head node;
1: + struct fwnode_handle *fwnode;
1: + const struct sfp_socket_ops *socket_ops;
1: + struct device *sfp_dev;
1: + struct sfp *sfp;
1: + const struct sfp_quirk *sfp_quirk;
1: + const struct sfp_upstream_ops *upstream_ops;
1: + void *upstream;
1: + struct phy_device *phydev;
1: + bool registered;
1: + bool started;
1: +};
1: +
1: +enum {
1: + SFF8024_ID_UNK = 0,
1: + SFF8024_ID_SFF_8472 = 2,
1: + SFF8024_ID_SFP = 3,
1: + SFF8024_ID_DWDM_SFP = 11,
1: + SFF8024_ID_QSFP_8438 = 12,
1: + SFF8024_ID_QSFP_8436_8636 = 13,
1: + SFF8024_ID_QSFP28_8636 = 17,
1: + SFF8024_ENCODING_UNSPEC = 0,
1: + SFF8024_ENCODING_8B10B = 1,
1: + SFF8024_ENCODING_4B5B = 2,
1: + SFF8024_ENCODING_NRZ = 3,
1: + SFF8024_ENCODING_8472_MANCHESTER = 4,
1: + SFF8024_ENCODING_8472_SONET = 5,
1: + SFF8024_ENCODING_8472_64B66B = 6,
1: + SFF8024_ENCODING_8436_MANCHESTER = 6,
1: + SFF8024_ENCODING_8436_SONET = 4,
1: + SFF8024_ENCODING_8436_64B66B = 5,
1: + SFF8024_ENCODING_256B257B = 7,
1: + SFF8024_ENCODING_PAM4 = 8,
1: + SFF8024_CONNECTOR_UNSPEC = 0,
1: + SFF8024_CONNECTOR_SC = 1,
1: + SFF8024_CONNECTOR_FIBERJACK = 6,
1: + SFF8024_CONNECTOR_LC = 7,
1: + SFF8024_CONNECTOR_MT_RJ = 8,
1: + SFF8024_CONNECTOR_MU = 9,
1: + SFF8024_CONNECTOR_SG = 10,
1: + SFF8024_CONNECTOR_OPTICAL_PIGTAIL = 11,
1: + SFF8024_CONNECTOR_MPO_1X12 = 12,
1: + SFF8024_CONNECTOR_MPO_2X16 = 13,
1: + SFF8024_CONNECTOR_HSSDC_II = 32,
1: + SFF8024_CONNECTOR_COPPER_PIGTAIL = 33,
1: + SFF8024_CONNECTOR_RJ45 = 34,
1: + SFF8024_CONNECTOR_NOSEPARATE = 35,
1: + SFF8024_CONNECTOR_MXC_2X16 = 36,
1: + SFF8024_ECC_UNSPEC = 0,
1: + SFF8024_ECC_100G_25GAUI_C2M_AOC = 1,
1: + SFF8024_ECC_100GBASE_SR4_25GBASE_SR = 2,
1: + SFF8024_ECC_100GBASE_LR4_25GBASE_LR = 3,
1: + SFF8024_ECC_100GBASE_ER4_25GBASE_ER = 4,
1: + SFF8024_ECC_100GBASE_SR10 = 5,
1: + SFF8024_ECC_100GBASE_CR4 = 11,
1: + SFF8024_ECC_25GBASE_CR_S = 12,
1: + SFF8024_ECC_25GBASE_CR_N = 13,
1: + SFF8024_ECC_10GBASE_T_SFI = 22,
1: + SFF8024_ECC_10GBASE_T_SR = 28,
1: + SFF8024_ECC_5GBASE_T = 29,
1: + SFF8024_ECC_2_5GBASE_T = 30,
1: +};
1: +
1: +struct sfp_socket_ops {
1: + void (*attach)(struct sfp *);
1: + void (*detach)(struct sfp *);
1: + void (*start)(struct sfp *);
1: + void (*stop)(struct sfp *);
1: + int (*module_info)(struct sfp *, struct ethtool_modinfo *);
1: + int (*module_eeprom)(struct sfp *, struct ethtool_eeprom *, u8 *);
1: +};
1: +
1: +struct sfp_quirk {
1: + const char *vendor;
1: + const char *part;
1: + void (*modes)(const struct sfp_eeprom_id *, long unsigned int *);
1: +};
1: +
1: +struct mdio_device_id {
1: + __u32 phy_id;
1: + __u32 phy_id_mask;
1: +};
1: +
1: +enum {
1: + MDIO_AN_C22 = 65504,
1: +};
1: +
1: +struct fixed_mdio_bus {
1: + struct mii_bus *mii_bus;
1: + struct list_head phys;
1: +};
1: +
1: +struct fixed_phy {
1: + int addr;
1: + struct phy_device *phydev;
1: + struct fixed_phy_status status;
1: + bool no_carrier;
1: + int (*link_update)(struct net_device *, struct fixed_phy_status *);
1: + struct list_head node;
1: + struct gpio_desc *link_gpiod;
1: +};
1: +
1: +struct mdio_mux_child_bus;
1: +
1: +struct mdio_mux_parent_bus {
1: + struct mii_bus *mii_bus;
1: + int current_child;
1: + int parent_id;
1: + void *switch_data;
1: + int (*switch_fn)(int, int, void *);
1: + struct mdio_mux_child_bus *children;
1: +};
1: +
1: +struct mdio_mux_child_bus {
1: + struct mii_bus *mii_bus;
1: + struct mdio_mux_parent_bus *parent;
1: + struct mdio_mux_child_bus *next;
1: + int bus_number;
1: +};
1: +
1: +struct mdio_mux_mmioreg_state {
1: + void *mux_handle;
1: + phys_addr_t phys;
1: + unsigned int iosize;
1: + unsigned int mask;
1: +};
1: +
1: +struct flow_dissector {
1: + unsigned int used_keys;
1: + short unsigned int offset[28];
1: +};
1: +
1: +struct flow_match {
1: + struct flow_dissector *dissector;
1: + void *mask;
1: + void *key;
1: +};
1: +
1: +enum flow_action_id {
1: + FLOW_ACTION_ACCEPT = 0,
1: + FLOW_ACTION_DROP = 1,
1: + FLOW_ACTION_TRAP = 2,
1: + FLOW_ACTION_GOTO = 3,
1: + FLOW_ACTION_REDIRECT = 4,
1: + FLOW_ACTION_MIRRED = 5,
1: + FLOW_ACTION_REDIRECT_INGRESS = 6,
1: + FLOW_ACTION_MIRRED_INGRESS = 7,
1: + FLOW_ACTION_VLAN_PUSH = 8,
1: + FLOW_ACTION_VLAN_POP = 9,
1: + FLOW_ACTION_VLAN_MANGLE = 10,
1: + FLOW_ACTION_TUNNEL_ENCAP = 11,
1: + FLOW_ACTION_TUNNEL_DECAP = 12,
1: + FLOW_ACTION_MANGLE = 13,
1: + FLOW_ACTION_ADD = 14,
1: + FLOW_ACTION_CSUM = 15,
1: + FLOW_ACTION_MARK = 16,
1: + FLOW_ACTION_PTYPE = 17,
1: + FLOW_ACTION_PRIORITY = 18,
1: + FLOW_ACTION_WAKE = 19,
1: + FLOW_ACTION_QUEUE = 20,
1: + FLOW_ACTION_SAMPLE = 21,
1: + FLOW_ACTION_POLICE = 22,
1: + FLOW_ACTION_CT = 23,
1: + FLOW_ACTION_CT_METADATA = 24,
1: + FLOW_ACTION_MPLS_PUSH = 25,
1: + FLOW_ACTION_MPLS_POP = 26,
1: + FLOW_ACTION_MPLS_MANGLE = 27,
1: + FLOW_ACTION_GATE = 28,
1: + NUM_FLOW_ACTIONS = 29,
1: +};
1: +
1: +enum flow_action_hw_stats {
1: + FLOW_ACTION_HW_STATS_IMMEDIATE = 1,
1: + FLOW_ACTION_HW_STATS_DELAYED = 2,
1: + FLOW_ACTION_HW_STATS_ANY = 3,
1: + FLOW_ACTION_HW_STATS_DISABLED = 4,
1: + FLOW_ACTION_HW_STATS_DONT_CARE = 7,
1: +};
1: +
1: +typedef void (*action_destr)(void *);
1: +
1: +enum flow_action_mangle_base {
1: + FLOW_ACT_MANGLE_UNSPEC = 0,
1: + FLOW_ACT_MANGLE_HDR_TYPE_ETH = 1,
1: + FLOW_ACT_MANGLE_HDR_TYPE_IP4 = 2,
1: + FLOW_ACT_MANGLE_HDR_TYPE_IP6 = 3,
1: + FLOW_ACT_MANGLE_HDR_TYPE_TCP = 4,
1: + FLOW_ACT_MANGLE_HDR_TYPE_UDP = 5,
1: +};
1: +
1: +struct nf_flowtable;
1: +
1: +struct ip_tunnel_info;
1: +
1: +struct psample_group;
1: +
1: +struct action_gate_entry;
1: +
1: +struct flow_action_cookie;
1: +
1: +struct flow_action_entry {
1: + enum flow_action_id id;
1: + enum flow_action_hw_stats hw_stats;
1: + action_destr destructor;
1: + void *destructor_priv;
1: + union {
1: + u32 chain_index;
1: + struct net_device *dev;
1: + struct {
1: + u16 vid;
1: + __be16 proto;
1: + u8 prio;
1: + } vlan;
1: + struct {
1: + enum flow_action_mangle_base htype;
1: + u32 offset;
1: + u32 mask;
1: + u32 val;
1: + } mangle;
1: + struct ip_tunnel_info *tunnel;
1: + u32 csum_flags;
1: + u32 mark;
1: + u16 ptype;
1: + u32 priority;
1: + struct {
1: + u32 ctx;
1: + u32 index;
1: + u8 vf;
1: + } queue;
1: + struct {
1: + struct psample_group *psample_group;
1: + u32 rate;
1: + u32 trunc_size;
1: + bool truncate;
1: + } sample;
1: + struct {
1: + u32 index;
1: + u32 burst;
1: + u64 rate_bytes_ps;
1: + u32 mtu;
1: + } police;
1: + struct {
1: + int action;
1: + u16 zone;
1: + struct nf_flowtable *flow_table;
1: + } ct;
1: + struct {
1: + long unsigned int cookie;
1: + u32 mark;
1: + u32 labels[4];
1: + } ct_metadata;
1: + struct {
1: + u32 label;
1: + __be16 proto;
1: + u8 tc;
1: + u8 bos;
1: + u8 ttl;
1: + } mpls_push;
1: + struct {
1: + __be16 proto;
1: + } mpls_pop;
1: + struct {
1: + u32 label;
1: + u8 tc;
1: + u8 bos;
1: + u8 ttl;
1: + } mpls_mangle;
1: + struct {
1: + u32 index;
1: + s32 prio;
1: + u64 basetime;
1: + u64 cycletime;
1: + u64 cycletimeext;
1: + u32 num_entries;
1: + struct action_gate_entry *entries;
1: + } gate;
1: + };
1: + struct flow_action_cookie *cookie;
1: +};
1: +
1: +struct flow_action {
1: + unsigned int num_entries;
1: + struct flow_action_entry entries[0];
1: +};
1: +
1: +struct flow_rule {
1: + struct flow_match match;
1: + struct flow_action action;
1: +};
1: +
1: +struct dsa_chip_data {
1: + struct device *host_dev;
1: + int sw_addr;
1: + struct device *netdev[12];
1: + int eeprom_len;
1: + struct device_node *of_node;
1: + char *port_names[12];
1: + struct device_node *port_dn[12];
1: + s8 rtable[4];
1: +};
1: +
1: +struct dsa_platform_data {
1: + struct device *netdev;
1: + struct net_device *of_netdev;
1: + int nr_chips;
1: + struct dsa_chip_data *chip;
1: +};
1: +
1: +struct phylink_link_state {
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + phy_interface_t interface;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + unsigned int link: 1;
1: + unsigned int an_enabled: 1;
1: + unsigned int an_complete: 1;
1: +};
1: +
1: +enum phylink_op_type {
1: + PHYLINK_NETDEV = 0,
1: + PHYLINK_DEV = 1,
1: +};
1: +
1: +struct phylink_config {
1: + struct device *dev;
1: + enum phylink_op_type type;
1: + bool pcs_poll;
1: + bool poll_fixed_state;
1: + void (*get_fixed_state)(struct phylink_config *, struct phylink_link_state *);
1: +};
1: +
1: +enum devlink_port_type {
1: + DEVLINK_PORT_TYPE_NOTSET = 0,
1: + DEVLINK_PORT_TYPE_AUTO = 1,
1: + DEVLINK_PORT_TYPE_ETH = 2,
1: + DEVLINK_PORT_TYPE_IB = 3,
1: +};
1: +
1: +enum devlink_port_flavour {
1: + DEVLINK_PORT_FLAVOUR_PHYSICAL = 0,
1: + DEVLINK_PORT_FLAVOUR_CPU = 1,
1: + DEVLINK_PORT_FLAVOUR_DSA = 2,
1: + DEVLINK_PORT_FLAVOUR_PCI_PF = 3,
1: + DEVLINK_PORT_FLAVOUR_PCI_VF = 4,
1: + DEVLINK_PORT_FLAVOUR_VIRTUAL = 5,
1: + DEVLINK_PORT_FLAVOUR_UNUSED = 6,
1: +};
1: +
1: +struct devlink_port_phys_attrs {
1: + u32 port_number;
1: + u32 split_subport_number;
1: +};
1: +
1: +struct devlink_port_pci_pf_attrs {
1: + u32 controller;
1: + u16 pf;
1: + u8 external: 1;
1: +};
1: +
1: +struct devlink_port_pci_vf_attrs {
1: + u32 controller;
1: + u16 pf;
1: + u16 vf;
1: + u8 external: 1;
1: +};
1: +
1: +struct devlink_port_attrs {
1: + u8 split: 1;
1: + u8 splittable: 1;
1: + u32 lanes;
1: + enum devlink_port_flavour flavour;
1: + struct netdev_phys_item_id switch_id;
1: + union {
1: + struct devlink_port_phys_attrs phys;
1: + struct devlink_port_pci_pf_attrs pci_pf;
1: + struct devlink_port_pci_vf_attrs pci_vf;
1: + };
1: +};
1: +
1: +struct devlink;
1: +
1: +struct devlink_port {
1: + struct list_head list;
1: + struct list_head param_list;
1: + struct list_head region_list;
1: + struct devlink *devlink;
1: + unsigned int index;
1: + bool registered;
1: + spinlock_t type_lock;
1: + enum devlink_port_type type;
1: + enum devlink_port_type desired_type;
1: + void *type_dev;
1: + struct devlink_port_attrs attrs;
1: + u8 attrs_set: 1;
1: + u8 switch_port: 1;
1: + struct delayed_work type_warn_dw;
1: + struct list_head reporter_list;
1: + struct mutex reporters_lock;
1: +};
1: +
1: +struct dsa_device_ops;
1: +
1: +struct dsa_switch_tree;
1: +
1: +struct packet_type;
1: +
1: +struct dsa_switch;
1: +
1: +struct dsa_netdevice_ops;
1: +
1: +struct dsa_port {
1: + union {
1: + struct net_device *master;
1: + struct net_device *slave;
1: + };
1: + const struct dsa_device_ops *tag_ops;
1: + struct dsa_switch_tree *dst;
1: + struct sk_buff * (*rcv)(struct sk_buff *, struct net_device *, struct packet_type *);
1: + bool (*filter)(const struct sk_buff *, struct net_device *);
1: + enum {
1: + DSA_PORT_TYPE_UNUSED = 0,
1: + DSA_PORT_TYPE_CPU = 1,
1: + DSA_PORT_TYPE_DSA = 2,
1: + DSA_PORT_TYPE_USER = 3,
1: + } type;
1: + struct dsa_switch *ds;
1: + unsigned int index;
1: + const char *name;
1: + struct dsa_port *cpu_dp;
1: + const char *mac;
1: + struct device_node *dn;
1: + unsigned int ageing_time;
1: + bool vlan_filtering;
1: + u8 stp_state;
1: + struct net_device *bridge_dev;
1: + struct devlink_port devlink_port;
1: + bool devlink_port_setup;
1: + struct phylink *pl;
1: + struct phylink_config pl_config;
1: + struct list_head list;
1: + void *priv;
1: + const struct ethtool_ops *orig_ethtool_ops;
1: + const struct dsa_netdevice_ops *netdev_ops;
1: + bool setup;
1: +};
1: +
1: +struct packet_type {
1: + __be16 type;
1: + bool ignore_outgoing;
1: + struct net_device *dev;
1: + int (*func)(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *);
1: + void (*list_func)(struct list_head *, struct packet_type *, struct net_device *);
1: + bool (*id_match)(struct packet_type *, struct sock *);
1: + void *af_packet_priv;
1: + struct list_head list;
1: +};
1: +
1: +struct flow_action_cookie {
1: + u32 cookie_len;
1: + u8 cookie[0];
1: +};
1: +
1: +struct flow_stats {
1: + u64 pkts;
1: + u64 bytes;
1: + u64 drops;
1: + u64 lastused;
1: + enum flow_action_hw_stats used_hw_stats;
1: + bool used_hw_stats_valid;
1: +};
1: +
1: +enum flow_cls_command {
1: + FLOW_CLS_REPLACE = 0,
1: + FLOW_CLS_DESTROY = 1,
1: + FLOW_CLS_STATS = 2,
1: + FLOW_CLS_TMPLT_CREATE = 3,
1: + FLOW_CLS_TMPLT_DESTROY = 4,
1: +};
1: +
1: +struct flow_cls_common_offload {
1: + u32 chain_index;
1: + __be16 protocol;
1: + u32 prio;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct flow_cls_offload {
1: + struct flow_cls_common_offload common;
1: + enum flow_cls_command command;
1: + long unsigned int cookie;
1: + struct flow_rule *rule;
1: + struct flow_stats stats;
1: + u32 classid;
1: +};
1: +
1: +enum devlink_sb_pool_type {
1: + DEVLINK_SB_POOL_TYPE_INGRESS = 0,
1: + DEVLINK_SB_POOL_TYPE_EGRESS = 1,
1: +};
1: +
1: +enum devlink_sb_threshold_type {
1: + DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0,
1: + DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1,
1: +};
1: +
1: +enum devlink_eswitch_encap_mode {
1: + DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0,
1: + DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 1,
1: +};
1: +
1: +enum devlink_param_cmode {
1: + DEVLINK_PARAM_CMODE_RUNTIME = 0,
1: + DEVLINK_PARAM_CMODE_DRIVERINIT = 1,
1: + DEVLINK_PARAM_CMODE_PERMANENT = 2,
1: + __DEVLINK_PARAM_CMODE_MAX = 3,
1: + DEVLINK_PARAM_CMODE_MAX = 2,
1: +};
1: +
1: +enum devlink_trap_action {
1: + DEVLINK_TRAP_ACTION_DROP = 0,
1: + DEVLINK_TRAP_ACTION_TRAP = 1,
1: + DEVLINK_TRAP_ACTION_MIRROR = 2,
1: +};
1: +
1: +enum devlink_trap_type {
1: + DEVLINK_TRAP_TYPE_DROP = 0,
1: + DEVLINK_TRAP_TYPE_EXCEPTION = 1,
1: + DEVLINK_TRAP_TYPE_CONTROL = 2,
1: +};
1: +
1: +enum devlink_reload_action {
1: + DEVLINK_RELOAD_ACTION_UNSPEC = 0,
1: + DEVLINK_RELOAD_ACTION_DRIVER_REINIT = 1,
1: + DEVLINK_RELOAD_ACTION_FW_ACTIVATE = 2,
1: + __DEVLINK_RELOAD_ACTION_MAX = 3,
1: + DEVLINK_RELOAD_ACTION_MAX = 2,
1: +};
1: +
1: +enum devlink_reload_limit {
1: + DEVLINK_RELOAD_LIMIT_UNSPEC = 0,
1: + DEVLINK_RELOAD_LIMIT_NO_RESET = 1,
1: + __DEVLINK_RELOAD_LIMIT_MAX = 2,
1: + DEVLINK_RELOAD_LIMIT_MAX = 1,
1: +};
1: +
1: +enum devlink_dpipe_field_mapping_type {
1: + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0,
1: + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 1,
1: +};
1: +
1: +struct devlink_dev_stats {
1: + u32 reload_stats[6];
1: + u32 remote_reload_stats[6];
1: +};
1: +
1: +struct devlink_dpipe_headers;
1: +
1: +struct devlink_ops;
1: +
1: +struct devlink {
1: + struct list_head list;
1: + struct list_head port_list;
1: + struct list_head sb_list;
1: + struct list_head dpipe_table_list;
1: + struct list_head resource_list;
1: + struct list_head param_list;
1: + struct list_head region_list;
1: + struct list_head reporter_list;
1: + struct mutex reporters_lock;
1: + struct devlink_dpipe_headers *dpipe_headers;
1: + struct list_head trap_list;
1: + struct list_head trap_group_list;
1: + struct list_head trap_policer_list;
1: + const struct devlink_ops *ops;
1: + struct xarray snapshot_ids;
1: + struct devlink_dev_stats stats;
1: + struct device *dev;
1: + possible_net_t _net;
1: + struct mutex lock;
1: + u8 reload_failed: 1;
1: + u8 reload_enabled: 1;
1: + u8 registered: 1;
1: + long: 61;
1: + long: 64;
1: + char priv[0];
1: +};
1: +
1: +struct devlink_dpipe_header;
1: +
1: +struct devlink_dpipe_headers {
1: + struct devlink_dpipe_header **headers;
1: + unsigned int headers_count;
1: +};
1: +
1: +struct devlink_sb_pool_info;
1: +
1: +struct devlink_info_req;
1: +
1: +struct devlink_flash_update_params;
1: +
1: +struct devlink_trap;
1: +
1: +struct devlink_trap_group;
1: +
1: +struct devlink_trap_policer;
1: +
1: +struct devlink_ops {
1: + u32 supported_flash_update_params;
1: + long unsigned int reload_actions;
1: + long unsigned int reload_limits;
1: + int (*reload_down)(struct devlink *, bool, enum devlink_reload_action, enum devlink_reload_limit, struct netlink_ext_ack *);
1: + int (*reload_up)(struct devlink *, enum devlink_reload_action, enum devlink_reload_limit, u32 *, struct netlink_ext_ack *);
1: + int (*port_type_set)(struct devlink_port *, enum devlink_port_type);
1: + int (*port_split)(struct devlink *, unsigned int, unsigned int, struct netlink_ext_ack *);
1: + int (*port_unsplit)(struct devlink *, unsigned int, struct netlink_ext_ack *);
1: + int (*sb_pool_get)(struct devlink *, unsigned int, u16, struct devlink_sb_pool_info *);
1: + int (*sb_pool_set)(struct devlink *, unsigned int, u16, u32, enum devlink_sb_threshold_type, struct netlink_ext_ack *);
1: + int (*sb_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *);
1: + int (*sb_port_pool_set)(struct devlink_port *, unsigned int, u16, u32, struct netlink_ext_ack *);
1: + int (*sb_tc_pool_bind_get)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u16 *, u32 *);
1: + int (*sb_tc_pool_bind_set)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u16, u32, struct netlink_ext_ack *);
1: + int (*sb_occ_snapshot)(struct devlink *, unsigned int);
1: + int (*sb_occ_max_clear)(struct devlink *, unsigned int);
1: + int (*sb_occ_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *, u32 *);
1: + int (*sb_occ_tc_port_bind_get)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u32 *, u32 *);
1: + int (*eswitch_mode_get)(struct devlink *, u16 *);
1: + int (*eswitch_mode_set)(struct devlink *, u16, struct netlink_ext_ack *);
1: + int (*eswitch_inline_mode_get)(struct devlink *, u8 *);
1: + int (*eswitch_inline_mode_set)(struct devlink *, u8, struct netlink_ext_ack *);
1: + int (*eswitch_encap_mode_get)(struct devlink *, enum devlink_eswitch_encap_mode *);
1: + int (*eswitch_encap_mode_set)(struct devlink *, enum devlink_eswitch_encap_mode, struct netlink_ext_ack *);
1: + int (*info_get)(struct devlink *, struct devlink_info_req *, struct netlink_ext_ack *);
1: + int (*flash_update)(struct devlink *, struct devlink_flash_update_params *, struct netlink_ext_ack *);
1: + int (*trap_init)(struct devlink *, const struct devlink_trap *, void *);
1: + void (*trap_fini)(struct devlink *, const struct devlink_trap *, void *);
1: + int (*trap_action_set)(struct devlink *, const struct devlink_trap *, enum devlink_trap_action, struct netlink_ext_ack *);
1: + int (*trap_group_init)(struct devlink *, const struct devlink_trap_group *);
1: + int (*trap_group_set)(struct devlink *, const struct devlink_trap_group *, const struct devlink_trap_policer *, struct netlink_ext_ack *);
1: + int (*trap_group_action_set)(struct devlink *, const struct devlink_trap_group *, enum devlink_trap_action, struct netlink_ext_ack *);
1: + int (*trap_policer_init)(struct devlink *, const struct devlink_trap_policer *);
1: + void (*trap_policer_fini)(struct devlink *, const struct devlink_trap_policer *);
1: + int (*trap_policer_set)(struct devlink *, const struct devlink_trap_policer *, u64, u64, struct netlink_ext_ack *);
1: + int (*trap_policer_counter_get)(struct devlink *, const struct devlink_trap_policer *, u64 *);
1: + int (*port_function_hw_addr_get)(struct devlink *, struct devlink_port *, u8 *, int *, struct netlink_ext_ack *);
1: + int (*port_function_hw_addr_set)(struct devlink *, struct devlink_port *, const u8 *, int, struct netlink_ext_ack *);
1: +};
1: +
1: +struct devlink_sb_pool_info {
1: + enum devlink_sb_pool_type pool_type;
1: + u32 size;
1: + enum devlink_sb_threshold_type threshold_type;
1: + u32 cell_size;
1: +};
1: +
1: +struct devlink_dpipe_field {
1: + const char *name;
1: + unsigned int id;
1: + unsigned int bitwidth;
1: + enum devlink_dpipe_field_mapping_type mapping_type;
1: +};
1: +
1: +struct devlink_dpipe_header {
1: + const char *name;
1: + unsigned int id;
1: + struct devlink_dpipe_field *fields;
1: + unsigned int fields_count;
1: + bool global;
1: +};
1: +
1: +union devlink_param_value {
1: + u8 vu8;
1: + u16 vu16;
1: + u32 vu32;
1: + char vstr[32];
1: + bool vbool;
1: +};
1: +
1: +struct devlink_param_gset_ctx {
1: + union devlink_param_value val;
1: + enum devlink_param_cmode cmode;
1: +};
1: +
1: +struct devlink_flash_update_params {
1: + const char *file_name;
1: + const char *component;
1: + u32 overwrite_mask;
1: +};
1: +
1: +struct devlink_trap_policer {
1: + u32 id;
1: + u64 init_rate;
1: + u64 init_burst;
1: + u64 max_rate;
1: + u64 min_rate;
1: + u64 max_burst;
1: + u64 min_burst;
1: +};
1: +
1: +struct devlink_trap_group {
1: + const char *name;
1: + u16 id;
1: + bool generic;
1: + u32 init_policer_id;
1: +};
1: +
1: +struct devlink_trap {
1: + enum devlink_trap_type type;
1: + enum devlink_trap_action init_action;
1: + bool generic;
1: + u16 id;
1: + const char *name;
1: + u16 init_group_id;
1: + u32 metadata_cap;
1: +};
1: +
1: +struct switchdev_trans {
1: + bool ph_prepare;
1: +};
1: +
1: +enum switchdev_obj_id {
1: + SWITCHDEV_OBJ_ID_UNDEFINED = 0,
1: + SWITCHDEV_OBJ_ID_PORT_VLAN = 1,
1: + SWITCHDEV_OBJ_ID_PORT_MDB = 2,
1: + SWITCHDEV_OBJ_ID_HOST_MDB = 3,
1: + SWITCHDEV_OBJ_ID_MRP = 4,
1: + SWITCHDEV_OBJ_ID_RING_TEST_MRP = 5,
1: + SWITCHDEV_OBJ_ID_RING_ROLE_MRP = 6,
1: + SWITCHDEV_OBJ_ID_RING_STATE_MRP = 7,
1: + SWITCHDEV_OBJ_ID_IN_TEST_MRP = 8,
1: + SWITCHDEV_OBJ_ID_IN_ROLE_MRP = 9,
1: + SWITCHDEV_OBJ_ID_IN_STATE_MRP = 10,
1: +};
1: +
1: +struct switchdev_obj {
1: + struct net_device *orig_dev;
1: + enum switchdev_obj_id id;
1: + u32 flags;
1: + void *complete_priv;
1: + void (*complete)(struct net_device *, int, void *);
1: +};
1: +
1: +struct switchdev_obj_port_vlan {
1: + struct switchdev_obj obj;
1: + u16 flags;
1: + u16 vid_begin;
1: + u16 vid_end;
1: +};
1: +
1: +struct switchdev_obj_port_mdb {
1: + struct switchdev_obj obj;
1: + unsigned char addr[6];
1: + u16 vid;
1: +};
1: +
1: +enum dsa_tag_protocol {
1: + DSA_TAG_PROTO_NONE = 0,
1: + DSA_TAG_PROTO_BRCM = 1,
1: + DSA_TAG_PROTO_BRCM_PREPEND = 2,
1: + DSA_TAG_PROTO_DSA = 3,
1: + DSA_TAG_PROTO_EDSA = 4,
1: + DSA_TAG_PROTO_GSWIP = 5,
1: + DSA_TAG_PROTO_KSZ9477 = 6,
1: + DSA_TAG_PROTO_KSZ9893 = 7,
1: + DSA_TAG_PROTO_LAN9303 = 8,
1: + DSA_TAG_PROTO_MTK = 9,
1: + DSA_TAG_PROTO_QCA = 10,
1: + DSA_TAG_PROTO_TRAILER = 11,
1: + DSA_TAG_PROTO_8021Q = 12,
1: + DSA_TAG_PROTO_SJA1105 = 13,
1: + DSA_TAG_PROTO_KSZ8795 = 14,
1: + DSA_TAG_PROTO_OCELOT = 15,
1: + DSA_TAG_PROTO_AR9331 = 16,
1: + DSA_TAG_PROTO_RTL4_A = 17,
1: +};
1: +
1: +struct dsa_device_ops {
1: + struct sk_buff * (*xmit)(struct sk_buff *, struct net_device *);
1: + struct sk_buff * (*rcv)(struct sk_buff *, struct net_device *, struct packet_type *);
1: + void (*flow_dissect)(const struct sk_buff *, __be16 *, int *);
1: + bool (*filter)(const struct sk_buff *, struct net_device *);
1: + unsigned int overhead;
1: + const char *name;
1: + enum dsa_tag_protocol proto;
1: + bool promisc_on_master;
1: + bool tail_tag;
1: +};
1: +
1: +struct dsa_netdevice_ops {
1: + int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: +};
1: +
1: +struct dsa_switch_tree {
1: + struct list_head list;
1: + struct raw_notifier_head nh;
1: + unsigned int index;
1: + struct kref refcount;
1: + bool setup;
1: + struct dsa_platform_data *pd;
1: + struct list_head ports;
1: + struct list_head rtable;
1: +};
1: +
1: +struct dsa_mall_mirror_tc_entry {
1: + u8 to_local_port;
1: + bool ingress;
1: +};
1: +
1: +struct dsa_mall_policer_tc_entry {
1: + u32 burst;
1: + u64 rate_bytes_per_sec;
1: +};
1: +
1: +struct dsa_switch_ops;
1: +
1: +struct dsa_switch {
1: + bool setup;
1: + struct device *dev;
1: + struct dsa_switch_tree *dst;
1: + unsigned int index;
1: + struct notifier_block nb;
1: + void *priv;
1: + struct dsa_chip_data *cd;
1: + const struct dsa_switch_ops *ops;
1: + u32 phys_mii_mask;
1: + struct mii_bus *slave_mii_bus;
1: + unsigned int ageing_time_min;
1: + unsigned int ageing_time_max;
1: + struct devlink *devlink;
1: + unsigned int num_tx_queues;
1: + bool vlan_filtering_is_global;
1: + bool configure_vlan_while_not_filtering;
1: + bool untag_bridge_pvid;
1: + bool vlan_filtering;
1: + bool pcs_poll;
1: + bool mtu_enforcement_ingress;
1: + size_t num_ports;
1: +};
1: +
1: +struct fixed_phy_status___2;
1: +
1: +typedef int dsa_fdb_dump_cb_t(const unsigned char *, u16, bool, void *);
1: +
1: +struct dsa_switch_ops {
1: + enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *, int, enum dsa_tag_protocol);
1: + int (*setup)(struct dsa_switch *);
1: + void (*teardown)(struct dsa_switch *);
1: + u32 (*get_phy_flags)(struct dsa_switch *, int);
1: + int (*phy_read)(struct dsa_switch *, int, int);
1: + int (*phy_write)(struct dsa_switch *, int, int, u16);
1: + void (*adjust_link)(struct dsa_switch *, int, struct phy_device *);
1: + void (*fixed_link_update)(struct dsa_switch *, int, struct fixed_phy_status___2 *);
1: + void (*phylink_validate)(struct dsa_switch *, int, long unsigned int *, struct phylink_link_state *);
1: + int (*phylink_mac_link_state)(struct dsa_switch *, int, struct phylink_link_state *);
1: + void (*phylink_mac_config)(struct dsa_switch *, int, unsigned int, const struct phylink_link_state *);
1: + void (*phylink_mac_an_restart)(struct dsa_switch *, int);
1: + void (*phylink_mac_link_down)(struct dsa_switch *, int, unsigned int, phy_interface_t);
1: + void (*phylink_mac_link_up)(struct dsa_switch *, int, unsigned int, phy_interface_t, struct phy_device *, int, int, bool, bool);
1: + void (*phylink_fixed_state)(struct dsa_switch *, int, struct phylink_link_state *);
1: + void (*get_strings)(struct dsa_switch *, int, u32, uint8_t *);
1: + void (*get_ethtool_stats)(struct dsa_switch *, int, uint64_t *);
1: + int (*get_sset_count)(struct dsa_switch *, int, int);
1: + void (*get_ethtool_phy_stats)(struct dsa_switch *, int, uint64_t *);
1: + void (*get_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: + int (*set_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: + int (*get_ts_info)(struct dsa_switch *, int, struct ethtool_ts_info *);
1: + int (*suspend)(struct dsa_switch *);
1: + int (*resume)(struct dsa_switch *);
1: + int (*port_enable)(struct dsa_switch *, int, struct phy_device *);
1: + void (*port_disable)(struct dsa_switch *, int);
1: + int (*set_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: + int (*get_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: + int (*get_eeprom_len)(struct dsa_switch *);
1: + int (*get_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: + int (*set_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: + int (*get_regs_len)(struct dsa_switch *, int);
1: + void (*get_regs)(struct dsa_switch *, int, struct ethtool_regs *, void *);
1: + int (*set_ageing_time)(struct dsa_switch *, unsigned int);
1: + int (*port_bridge_join)(struct dsa_switch *, int, struct net_device *);
1: + void (*port_bridge_leave)(struct dsa_switch *, int, struct net_device *);
1: + void (*port_stp_state_set)(struct dsa_switch *, int, u8);
1: + void (*port_fast_age)(struct dsa_switch *, int);
1: + int (*port_egress_floods)(struct dsa_switch *, int, bool, bool);
1: + int (*port_vlan_filtering)(struct dsa_switch *, int, bool, struct switchdev_trans *);
1: + int (*port_vlan_prepare)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: + void (*port_vlan_add)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: + int (*port_vlan_del)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: + int (*port_fdb_add)(struct dsa_switch *, int, const unsigned char *, u16);
1: + int (*port_fdb_del)(struct dsa_switch *, int, const unsigned char *, u16);
1: + int (*port_fdb_dump)(struct dsa_switch *, int, dsa_fdb_dump_cb_t *, void *);
1: + int (*port_mdb_prepare)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: + void (*port_mdb_add)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: + int (*port_mdb_del)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: + int (*get_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *, u32 *);
1: + int (*set_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *);
1: + int (*cls_flower_add)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: + int (*cls_flower_del)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: + int (*cls_flower_stats)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: + int (*port_mirror_add)(struct dsa_switch *, int, struct dsa_mall_mirror_tc_entry *, bool);
1: + void (*port_mirror_del)(struct dsa_switch *, int, struct dsa_mall_mirror_tc_entry *);
1: + int (*port_policer_add)(struct dsa_switch *, int, struct dsa_mall_policer_tc_entry *);
1: + void (*port_policer_del)(struct dsa_switch *, int);
1: + int (*port_setup_tc)(struct dsa_switch *, int, enum tc_setup_type, void *);
1: + int (*crosschip_bridge_join)(struct dsa_switch *, int, int, int, struct net_device *);
1: + void (*crosschip_bridge_leave)(struct dsa_switch *, int, int, int, struct net_device *);
1: + int (*port_hwtstamp_get)(struct dsa_switch *, int, struct ifreq *);
1: + int (*port_hwtstamp_set)(struct dsa_switch *, int, struct ifreq *);
1: + bool (*port_txtstamp)(struct dsa_switch *, int, struct sk_buff *, unsigned int);
1: + bool (*port_rxtstamp)(struct dsa_switch *, int, struct sk_buff *, unsigned int);
1: + int (*devlink_param_get)(struct dsa_switch *, u32, struct devlink_param_gset_ctx *);
1: + int (*devlink_param_set)(struct dsa_switch *, u32, struct devlink_param_gset_ctx *);
1: + int (*devlink_info_get)(struct dsa_switch *, struct devlink_info_req *, struct netlink_ext_ack *);
1: + int (*port_change_mtu)(struct dsa_switch *, int, int);
1: + int (*port_max_mtu)(struct dsa_switch *, int);
1: +};
1: +
1: +struct dsa_loop_pdata {
1: + struct dsa_chip_data cd;
1: + const char *name;
1: + unsigned int enabled_ports;
1: + const char *netdev;
1: +};
1: +
1: +struct ptp_clock_time {
1: + __s64 sec;
1: + __u32 nsec;
1: + __u32 reserved;
1: +};
1: +
1: +struct ptp_extts_request {
1: + unsigned int index;
1: + unsigned int flags;
1: + unsigned int rsv[2];
1: +};
1: +
1: +struct ptp_perout_request {
1: + union {
1: + struct ptp_clock_time start;
1: + struct ptp_clock_time phase;
1: + };
1: + struct ptp_clock_time period;
1: + unsigned int index;
1: + unsigned int flags;
1: + union {
1: + struct ptp_clock_time on;
1: + unsigned int rsv[4];
1: + };
1: +};
1: +
1: +enum ptp_pin_function {
1: + PTP_PF_NONE = 0,
1: + PTP_PF_EXTTS = 1,
1: + PTP_PF_PEROUT = 2,
1: + PTP_PF_PHYSYNC = 3,
1: +};
1: +
1: +struct ptp_pin_desc {
1: + char name[64];
1: + unsigned int index;
1: + unsigned int func;
1: + unsigned int chan;
1: + unsigned int rsv[5];
1: +};
1: +
1: +struct ptp_clock_request {
1: + enum {
1: + PTP_CLK_REQ_EXTTS = 0,
1: + PTP_CLK_REQ_PEROUT = 1,
1: + PTP_CLK_REQ_PPS = 2,
1: + } type;
1: + union {
1: + struct ptp_extts_request extts;
1: + struct ptp_perout_request perout;
1: + };
1: +};
1: +
1: +struct ptp_clock_info {
1: + struct module *owner;
1: + char name[16];
1: + s32 max_adj;
1: + int n_alarm;
1: + int n_ext_ts;
1: + int n_per_out;
1: + int n_pins;
1: + int pps;
1: + struct ptp_pin_desc *pin_config;
1: + int (*adjfine)(struct ptp_clock_info *, long int);
1: + int (*adjfreq)(struct ptp_clock_info *, s32);
1: + int (*adjphase)(struct ptp_clock_info *, s32);
1: + int (*adjtime)(struct ptp_clock_info *, s64);
1: + int (*gettime64)(struct ptp_clock_info *, struct timespec64 *);
1: + int (*gettimex64)(struct ptp_clock_info *, struct timespec64 *, struct ptp_system_timestamp *);
1: + int (*getcrosststamp)(struct ptp_clock_info *, struct system_device_crosststamp *);
1: + int (*settime64)(struct ptp_clock_info *, const struct timespec64 *);
1: + int (*enable)(struct ptp_clock_info *, struct ptp_clock_request *, int);
1: + int (*verify)(struct ptp_clock_info *, unsigned int, enum ptp_pin_function, unsigned int);
1: + long int (*do_aux_work)(struct ptp_clock_info *);
1: +};
1: +
1: +struct ptp_clock;
1: +
1: +struct cavium_ptp {
1: + struct pci_dev *pdev;
1: + spinlock_t spin_lock;
1: + struct cyclecounter cycle_counter;
1: + struct timecounter time_counter;
1: + void *reg_base;
1: + u32 clock_rate;
1: + struct ptp_clock_info ptp_info;
1: + struct ptp_clock *ptp_clock;
1: +};
1: +
1: +struct mlxfw_dev_ops;
1: +
1: +struct mlxfw_dev {
1: + const struct mlxfw_dev_ops *ops;
1: + const char *psid;
1: + u16 psid_size;
1: + struct devlink *devlink;
1: +};
1: +
1: +enum mlxfw_fsm_state {
1: + MLXFW_FSM_STATE_IDLE = 0,
1: + MLXFW_FSM_STATE_LOCKED = 1,
1: + MLXFW_FSM_STATE_INITIALIZE = 2,
1: + MLXFW_FSM_STATE_DOWNLOAD = 3,
1: + MLXFW_FSM_STATE_VERIFY = 4,
1: + MLXFW_FSM_STATE_APPLY = 5,
1: + MLXFW_FSM_STATE_ACTIVATE = 6,
1: +};
1: +
1: +enum mlxfw_fsm_state_err {
1: + MLXFW_FSM_STATE_ERR_OK = 0,
1: + MLXFW_FSM_STATE_ERR_ERROR = 1,
1: + MLXFW_FSM_STATE_ERR_REJECTED_DIGEST_ERR = 2,
1: + MLXFW_FSM_STATE_ERR_REJECTED_NOT_APPLICABLE = 3,
1: + MLXFW_FSM_STATE_ERR_REJECTED_UNKNOWN_KEY = 4,
1: + MLXFW_FSM_STATE_ERR_REJECTED_AUTH_FAILED = 5,
1: + MLXFW_FSM_STATE_ERR_REJECTED_UNSIGNED = 6,
1: + MLXFW_FSM_STATE_ERR_REJECTED_KEY_NOT_APPLICABLE = 7,
1: + MLXFW_FSM_STATE_ERR_REJECTED_BAD_FORMAT = 8,
1: + MLXFW_FSM_STATE_ERR_BLOCKED_PENDING_RESET = 9,
1: + MLXFW_FSM_STATE_ERR_MAX = 10,
1: +};
1: +
1: +struct mlxfw_dev_ops {
1: + int (*component_query)(struct mlxfw_dev *, u16, u32 *, u8 *, u16 *);
1: + int (*fsm_lock)(struct mlxfw_dev *, u32 *);
1: + int (*fsm_component_update)(struct mlxfw_dev *, u32, u16, u32);
1: + int (*fsm_block_download)(struct mlxfw_dev *, u32, u8 *, u16, u32);
1: + int (*fsm_component_verify)(struct mlxfw_dev *, u32, u16);
1: + int (*fsm_activate)(struct mlxfw_dev *, u32);
1: + int (*fsm_reactivate)(struct mlxfw_dev *, u8 *);
1: + int (*fsm_query_state)(struct mlxfw_dev *, u32, enum mlxfw_fsm_state *, enum mlxfw_fsm_state_err *);
1: + void (*fsm_cancel)(struct mlxfw_dev *, u32);
1: + void (*fsm_release)(struct mlxfw_dev *, u32);
1: +};
1: +
1: +enum mlxfw_fsm_reactivate_status {
1: + MLXFW_FSM_REACTIVATE_STATUS_OK = 0,
1: + MLXFW_FSM_REACTIVATE_STATUS_BUSY = 1,
1: + MLXFW_FSM_REACTIVATE_STATUS_PROHIBITED_FW_VER_ERR = 2,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_COPY_FAILED = 3,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_ERASE_FAILED = 4,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_RESTORE_FAILED = 5,
1: + MLXFW_FSM_REACTIVATE_STATUS_CANDIDATE_FW_DEACTIVATION_FAILED = 6,
1: + MLXFW_FSM_REACTIVATE_STATUS_FW_ALREADY_ACTIVATED = 7,
1: + MLXFW_FSM_REACTIVATE_STATUS_ERR_DEVICE_RESET_REQUIRED = 8,
1: + MLXFW_FSM_REACTIVATE_STATUS_ERR_FW_PROGRAMMING_NEEDED = 9,
1: + MLXFW_FSM_REACTIVATE_STATUS_MAX = 10,
1: +};
1: +
1: +struct mlxfw_mfa2_component {
1: + u16 index;
1: + u32 data_size;
1: + u8 *data;
1: +};
1: +
1: +struct mlxfw_mfa2_file;
1: +
1: +struct mlxfw_mfa2_tlv;
1: +
1: +struct mlxfw_mfa2_file___2 {
1: + const struct firmware *fw;
1: + const struct mlxfw_mfa2_tlv *first_dev;
1: + u16 dev_count;
1: + const struct mlxfw_mfa2_tlv *first_component;
1: + u16 component_count;
1: + const void *cb;
1: + u32 cb_archive_size;
1: +};
1: +
1: +struct mlxfw_mfa2_tlv {
1: + u8 version;
1: + u8 type;
1: + __be16 len;
1: + u8 data[0];
1: +};
1: +
1: +enum mlxfw_mfa2_tlv_type {
1: + MLXFW_MFA2_TLV_MULTI_PART = 1,
1: + MLXFW_MFA2_TLV_PACKAGE_DESCRIPTOR = 2,
1: + MLXFW_MFA2_TLV_COMPONENT_DESCRIPTOR = 4,
1: + MLXFW_MFA2_TLV_COMPONENT_PTR = 34,
1: + MLXFW_MFA2_TLV_PSID = 42,
1: +};
1: +
1: +struct mlxfw_mfa2_tlv_multi {
1: + __be16 num_extensions;
1: + __be16 total_len;
1: +};
1: +
1: +struct mlxfw_mfa2_tlv_package_descriptor {
1: + __be16 num_components;
1: + __be16 num_devices;
1: + __be32 cb_offset;
1: + __be32 cb_archive_size;
1: + __be32 cb_size_h;
1: + __be32 cb_size_l;
1: + u8 padding[3];
1: + u8 cv_compression;
1: + __be32 user_data_offset;
1: +};
1: +
1: +struct mlxfw_mfa2_tlv_psid {
1: + u8 psid[0];
1: +};
1: +
1: +struct mlxfw_mfa2_tlv_component_ptr {
1: + __be16 storage_id;
1: + __be16 component_index;
1: + __be32 storage_address;
1: +};
1: +
1: +struct mlxfw_mfa2_tlv_component_descriptor {
1: + __be16 pldm_classification;
1: + __be16 identifier;
1: + __be32 cb_offset_h;
1: + __be32 cb_offset_l;
1: + __be32 size;
1: +};
1: +
1: +struct mlxfw_mfa2_comp_data {
1: + struct mlxfw_mfa2_component comp;
1: + u8 buff[0];
1: +};
1: +
1: +struct wl1251_platform_data {
1: + int power_gpio;
1: + int irq;
1: + bool use_eeprom;
1: +};
1: +
1: +enum {
1: + SKB_GSO_TCPV4 = 1,
1: + SKB_GSO_DODGY = 2,
1: + SKB_GSO_TCP_ECN = 4,
1: + SKB_GSO_TCP_FIXEDID = 8,
1: + SKB_GSO_TCPV6 = 16,
1: + SKB_GSO_FCOE = 32,
1: + SKB_GSO_GRE = 64,
1: + SKB_GSO_GRE_CSUM = 128,
1: + SKB_GSO_IPXIP4 = 256,
1: + SKB_GSO_IPXIP6 = 512,
1: + SKB_GSO_UDP_TUNNEL = 1024,
1: + SKB_GSO_UDP_TUNNEL_CSUM = 2048,
1: + SKB_GSO_PARTIAL = 4096,
1: + SKB_GSO_TUNNEL_REMCSUM = 8192,
1: + SKB_GSO_SCTP = 16384,
1: + SKB_GSO_ESP = 32768,
1: + SKB_GSO_UDP = 65536,
1: + SKB_GSO_UDP_L4 = 131072,
1: + SKB_GSO_FRAGLIST = 262144,
1: +};
1: +
1: +enum ethtool_stringset {
1: + ETH_SS_TEST = 0,
1: + ETH_SS_STATS = 1,
1: + ETH_SS_PRIV_FLAGS = 2,
1: + ETH_SS_NTUPLE_FILTERS = 3,
1: + ETH_SS_FEATURES = 4,
1: + ETH_SS_RSS_HASH_FUNCS = 5,
1: + ETH_SS_TUNABLES = 6,
1: + ETH_SS_PHY_STATS = 7,
1: + ETH_SS_PHY_TUNABLES = 8,
1: + ETH_SS_LINK_MODES = 9,
1: + ETH_SS_MSG_CLASSES = 10,
1: + ETH_SS_WOL_MODES = 11,
1: + ETH_SS_SOF_TIMESTAMPING = 12,
1: + ETH_SS_TS_TX_TYPES = 13,
1: + ETH_SS_TS_RX_FILTERS = 14,
1: + ETH_SS_UDP_TUNNEL_TYPES = 15,
1: + ETH_SS_COUNT = 16,
1: +};
1: +
1: +struct gro_list {
1: + struct list_head list;
1: + int count;
1: +};
1: +
1: +struct napi_struct {
1: + struct list_head poll_list;
1: + long unsigned int state;
1: + int weight;
1: + int defer_hard_irqs_count;
1: + long unsigned int gro_bitmask;
1: + int (*poll)(struct napi_struct *, int);
1: + int poll_owner;
1: + struct net_device *dev;
1: + struct gro_list gro_hash[8];
1: + struct sk_buff *skb;
1: + struct list_head rx_list;
1: + int rx_count;
1: + struct hrtimer timer;
1: + struct list_head dev_list;
1: + struct hlist_node napi_hash_node;
1: + unsigned int napi_id;
1: +};
1: +
1: +enum netdev_queue_state_t {
1: + __QUEUE_STATE_DRV_XOFF = 0,
1: + __QUEUE_STATE_STACK_XOFF = 1,
1: + __QUEUE_STATE_FROZEN = 2,
1: +};
1: +
1: +enum skb_free_reason {
1: + SKB_REASON_CONSUMED = 0,
1: + SKB_REASON_DROPPED = 1,
1: +};
1: +
1: +struct pp_alloc_cache {
1: + u32 count;
1: + void *cache[128];
1: +};
1: +
1: +struct page_pool_params {
1: + unsigned int flags;
1: + unsigned int order;
1: + unsigned int pool_size;
1: + int nid;
1: + struct device *dev;
1: + enum dma_data_direction dma_dir;
1: + unsigned int max_len;
1: + unsigned int offset;
1: +};
1: +
1: +struct page_pool {
1: + struct page_pool_params p;
1: + struct delayed_work release_dw;
1: + void (*disconnect)(void *);
1: + long unsigned int defer_start;
1: + long unsigned int defer_warn;
1: + u32 pages_state_hold_cnt;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct pp_alloc_cache alloc;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct ptr_ring ring;
1: + atomic_t pages_state_release_cnt;
1: + refcount_t user_cnt;
1: + u64 destroy_cnt;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xen_netif_tx_request {
1: + grant_ref_t gref;
1: + uint16_t offset;
1: + uint16_t flags;
1: + uint16_t id;
1: + uint16_t size;
1: +};
1: +
1: +struct xen_netif_extra_info {
1: + uint8_t type;
1: + uint8_t flags;
1: + union {
1: + struct {
1: + uint16_t size;
1: + uint8_t type;
1: + uint8_t pad;
1: + uint16_t features;
1: + } gso;
1: + struct {
1: + uint8_t addr[6];
1: + } mcast;
1: + struct {
1: + uint8_t type;
1: + uint8_t algorithm;
1: + uint8_t value[4];
1: + } hash;
1: + struct {
1: + uint16_t headroom;
1: + uint16_t pad[2];
1: + } xdp;
1: + uint16_t pad[3];
1: + } u;
1: +};
1: +
1: +struct xen_netif_tx_response {
1: + uint16_t id;
1: + int16_t status;
1: +};
1: +
1: +struct xen_netif_rx_request {
1: + uint16_t id;
1: + uint16_t pad;
1: + grant_ref_t gref;
1: +};
1: +
1: +struct xen_netif_rx_response {
1: + uint16_t id;
1: + uint16_t offset;
1: + uint16_t flags;
1: + int16_t status;
1: +};
1: +
1: +union xen_netif_tx_sring_entry {
1: + struct xen_netif_tx_request req;
1: + struct xen_netif_tx_response rsp;
1: +};
1: +
1: +struct xen_netif_tx_sring {
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_netif_tx_sring_entry ring[1];
1: +};
1: +
1: +struct xen_netif_tx_front_ring {
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct xen_netif_tx_sring *sring;
1: +};
1: +
1: +union xen_netif_rx_sring_entry {
1: + struct xen_netif_rx_request req;
1: + struct xen_netif_rx_response rsp;
1: +};
1: +
1: +struct xen_netif_rx_sring {
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_netif_rx_sring_entry ring[1];
1: +};
1: +
1: +struct xen_netif_rx_front_ring {
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct xen_netif_rx_sring *sring;
1: +};
1: +
1: +struct netfront_cb {
1: + int pull_to;
1: +};
1: +
1: +struct netfront_stats {
1: + u64 packets;
1: + u64 bytes;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +union skb_entry {
1: + struct sk_buff *skb;
1: + long unsigned int link;
1: +};
1: +
1: +struct netfront_info;
1: +
1: +struct netfront_queue {
1: + unsigned int id;
1: + char name[22];
1: + struct netfront_info *info;
1: + struct bpf_prog *xdp_prog;
1: + struct napi_struct napi;
1: + unsigned int tx_evtchn;
1: + unsigned int rx_evtchn;
1: + unsigned int tx_irq;
1: + unsigned int rx_irq;
1: + char tx_irq_name[25];
1: + char rx_irq_name[25];
1: + spinlock_t tx_lock;
1: + struct xen_netif_tx_front_ring tx;
1: + int tx_ring_ref;
1: + union skb_entry tx_skbs[256];
1: + grant_ref_t gref_tx_head;
1: + grant_ref_t grant_tx_ref[256];
1: + struct page *grant_tx_page[256];
1: + unsigned int tx_skb_freelist;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + spinlock_t rx_lock;
1: + struct xen_netif_rx_front_ring rx;
1: + int rx_ring_ref;
1: + struct timer_list rx_refill_timer;
1: + struct sk_buff *rx_skbs[256];
1: + grant_ref_t gref_rx_head;
1: + grant_ref_t grant_rx_ref[256];
1: + struct page_pool *page_pool;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct xdp_rxq_info xdp_rxq;
1: +};
1: +
1: +struct netfront_info {
1: + struct list_head list;
1: + struct net_device *netdev;
1: + struct xenbus_device *xbdev;
1: + struct netfront_queue *queues;
1: + struct netfront_stats *rx_stats;
1: + struct netfront_stats *tx_stats;
1: + bool netback_has_xdp_headroom;
1: + bool netfront_xdp_enabled;
1: + atomic_t rx_gso_checksum_fixup;
1: +};
1: +
1: +struct netfront_rx_info {
1: + struct xen_netif_rx_response rx;
1: + struct xen_netif_extra_info extras[5];
1: +};
1: +
1: +struct xennet_gnttab_make_txreq {
1: + struct netfront_queue *queue;
1: + struct sk_buff *skb;
1: + struct page *page;
1: + struct xen_netif_tx_request *tx;
1: + unsigned int size;
1: +};
1: +
1: +struct xennet_stat {
1: + char name[32];
1: + u16 offset;
1: +};
1: +
1: +enum usb_otg_state {
1: + OTG_STATE_UNDEFINED = 0,
1: + OTG_STATE_B_IDLE = 1,
1: + OTG_STATE_B_SRP_INIT = 2,
1: + OTG_STATE_B_PERIPHERAL = 3,
1: + OTG_STATE_B_WAIT_ACON = 4,
1: + OTG_STATE_B_HOST = 5,
1: + OTG_STATE_A_IDLE = 6,
1: + OTG_STATE_A_WAIT_VRISE = 7,
1: + OTG_STATE_A_WAIT_BCON = 8,
1: + OTG_STATE_A_HOST = 9,
1: + OTG_STATE_A_SUSPEND = 10,
1: + OTG_STATE_A_PERIPHERAL = 11,
1: + OTG_STATE_A_WAIT_VFALL = 12,
1: + OTG_STATE_A_VBUS_ERR = 13,
1: +};
1: +
1: +struct usb_otg_caps {
1: + u16 otg_rev;
1: + bool hnp_support;
1: + bool srp_support;
1: + bool adp_support;
1: +};
1: +
1: +struct extcon_dev;
1: +
1: +enum usb_charger_type {
1: + UNKNOWN_TYPE = 0,
1: + SDP_TYPE = 1,
1: + DCP_TYPE = 2,
1: + CDP_TYPE = 3,
1: + ACA_TYPE = 4,
1: +};
1: +
1: +enum usb_charger_state {
1: + USB_CHARGER_DEFAULT = 0,
1: + USB_CHARGER_PRESENT = 1,
1: + USB_CHARGER_ABSENT = 2,
1: +};
1: +
1: +enum usb_phy_events {
1: + USB_EVENT_NONE = 0,
1: + USB_EVENT_VBUS = 1,
1: + USB_EVENT_ID = 2,
1: + USB_EVENT_CHARGER = 3,
1: + USB_EVENT_ENUMERATED = 4,
1: +};
1: +
1: +enum usb_phy_type {
1: + USB_PHY_TYPE_UNDEFINED = 0,
1: + USB_PHY_TYPE_USB2 = 1,
1: + USB_PHY_TYPE_USB3 = 2,
1: +};
1: +
1: +struct usb_phy___2;
1: +
1: +struct usb_phy_io_ops {
1: + int (*read)(struct usb_phy___2 *, u32);
1: + int (*write)(struct usb_phy___2 *, u32, u32);
1: +};
1: +
1: +struct usb_charger_current {
1: + unsigned int sdp_min;
1: + unsigned int sdp_max;
1: + unsigned int dcp_min;
1: + unsigned int dcp_max;
1: + unsigned int cdp_min;
1: + unsigned int cdp_max;
1: + unsigned int aca_min;
1: + unsigned int aca_max;
1: +};
1: +
1: +struct usb_otg;
1: +
1: +struct usb_phy___2 {
1: + struct device *dev;
1: + const char *label;
1: + unsigned int flags;
1: + enum usb_phy_type type;
1: + enum usb_phy_events last_event;
1: + struct usb_otg *otg;
1: + struct device *io_dev;
1: + struct usb_phy_io_ops *io_ops;
1: + void *io_priv;
1: + struct extcon_dev *edev;
1: + struct extcon_dev *id_edev;
1: + struct notifier_block vbus_nb;
1: + struct notifier_block id_nb;
1: + struct notifier_block type_nb;
1: + enum usb_charger_type chg_type;
1: + enum usb_charger_state chg_state;
1: + struct usb_charger_current chg_cur;
1: + struct work_struct chg_work;
1: + struct atomic_notifier_head notifier;
1: + u16 port_status;
1: + u16 port_change;
1: + struct list_head head;
1: + int (*init)(struct usb_phy___2 *);
1: + void (*shutdown)(struct usb_phy___2 *);
1: + int (*set_vbus)(struct usb_phy___2 *, int);
1: + int (*set_power)(struct usb_phy___2 *, unsigned int);
1: + int (*set_suspend)(struct usb_phy___2 *, int);
1: + int (*set_wakeup)(struct usb_phy___2 *, bool);
1: + int (*notify_connect)(struct usb_phy___2 *, enum usb_device_speed);
1: + int (*notify_disconnect)(struct usb_phy___2 *, enum usb_device_speed);
1: + enum usb_charger_type (*charger_detect)(struct usb_phy___2 *);
1: +};
1: +
1: +struct phy_devm {
1: + struct usb_phy___2 *phy;
1: + struct notifier_block *nb;
1: +};
1: +
1: +enum usb_phy_interface {
1: + USBPHY_INTERFACE_MODE_UNKNOWN = 0,
1: + USBPHY_INTERFACE_MODE_UTMI = 1,
1: + USBPHY_INTERFACE_MODE_UTMIW = 2,
1: + USBPHY_INTERFACE_MODE_ULPI = 3,
1: + USBPHY_INTERFACE_MODE_SERIAL = 4,
1: + USBPHY_INTERFACE_MODE_HSIC = 5,
1: +};
1: +
1: +struct usb_gadget;
1: +
1: +struct usb_otg {
1: + u8 default_a;
1: + struct phy *phy;
1: + struct usb_phy___2 *usb_phy;
1: + struct usb_bus *host;
1: + struct usb_gadget *gadget;
1: + enum usb_otg_state state;
1: + int (*set_host)(struct usb_otg *, struct usb_bus *);
1: + int (*set_peripheral)(struct usb_otg *, struct usb_gadget *);
1: + int (*set_vbus)(struct usb_otg *, bool);
1: + int (*start_srp)(struct usb_otg *);
1: + int (*start_hnp)(struct usb_otg *);
1: +};
1: +
1: +struct ulpi_info {
1: + unsigned int id;
1: + char *name;
1: +};
1: +
1: +enum amd_chipset_gen {
1: + NOT_AMD_CHIPSET = 0,
1: + AMD_CHIPSET_SB600 = 1,
1: + AMD_CHIPSET_SB700 = 2,
1: + AMD_CHIPSET_SB800 = 3,
1: + AMD_CHIPSET_HUDSON2 = 4,
1: + AMD_CHIPSET_BOLTON = 5,
1: + AMD_CHIPSET_YANGTZE = 6,
1: + AMD_CHIPSET_TAISHAN = 7,
1: + AMD_CHIPSET_UNKNOWN = 8,
1: +};
1: +
1: +struct amd_chipset_type {
1: + enum amd_chipset_gen gen;
1: + u8 rev;
1: +};
1: +
1: +struct amd_chipset_info {
1: + struct pci_dev *nb_dev;
1: + struct pci_dev *smbus_dev;
1: + int nb_type;
1: + struct amd_chipset_type sb_type;
1: + int isoc_reqs;
1: + int probe_count;
1: + bool need_pll_quirk;
1: +};
1: +
1: +struct serio_device_id {
1: + __u8 type;
1: + __u8 extra;
1: + __u8 id;
1: + __u8 proto;
1: +};
1: +
1: +struct serio_driver;
1: +
1: +struct serio {
1: + void *port_data;
1: + char name[32];
1: + char phys[32];
1: + char firmware_id[128];
1: + bool manual_bind;
1: + struct serio_device_id id;
1: + spinlock_t lock;
1: + int (*write)(struct serio *, unsigned char);
1: + int (*open)(struct serio *);
1: + void (*close)(struct serio *);
1: + int (*start)(struct serio *);
1: + void (*stop)(struct serio *);
1: + struct serio *parent;
1: + struct list_head child_node;
1: + struct list_head children;
1: + unsigned int depth;
1: + struct serio_driver *drv;
1: + struct mutex drv_mutex;
1: + struct device dev;
1: + struct list_head node;
1: + struct mutex *ps2_cmd_mutex;
1: +};
1: +
1: +struct serio_driver {
1: + const char *description;
1: + const struct serio_device_id *id_table;
1: + bool manual_bind;
1: + void (*write_wakeup)(struct serio *);
1: + irqreturn_t (*interrupt)(struct serio *, unsigned char, unsigned int);
1: + int (*connect)(struct serio *, struct serio_driver *);
1: + int (*reconnect)(struct serio *);
1: + int (*fast_reconnect)(struct serio *);
1: + void (*disconnect)(struct serio *);
1: + void (*cleanup)(struct serio *);
1: + struct device_driver driver;
1: +};
1: +
1: +enum serio_event_type {
1: + SERIO_RESCAN_PORT = 0,
1: + SERIO_RECONNECT_PORT = 1,
1: + SERIO_RECONNECT_SUBTREE = 2,
1: + SERIO_REGISTER_PORT = 3,
1: + SERIO_ATTACH_DRIVER = 4,
1: +};
1: +
1: +struct serio_event {
1: + enum serio_event_type type;
1: + void *object;
1: + struct module *owner;
1: + struct list_head node;
1: +};
1: +
1: +struct amba_kmi_port {
1: + struct serio *io;
1: + struct clk *clk;
1: + void *base;
1: + unsigned int irq;
1: + unsigned int divisor;
1: + unsigned int open;
1: +};
1: +
1: +struct ps2dev {
1: + struct serio *serio;
1: + struct mutex cmd_mutex;
1: + wait_queue_head_t wait;
1: + long unsigned int flags;
1: + u8 cmdbuf[8];
1: + u8 cmdcnt;
1: + u8 nak;
1: +};
1: +
1: +struct input_mt_slot {
1: + int abs[14];
1: + unsigned int frame;
1: + unsigned int key;
1: +};
1: +
1: +struct input_mt {
1: + int trkid;
1: + int num_slots;
1: + int slot;
1: + unsigned int flags;
1: + unsigned int frame;
1: + int *red;
1: + struct input_mt_slot slots[0];
1: +};
1: +
1: +union input_seq_state {
1: + struct {
1: + short unsigned int pos;
1: + bool mutex_acquired;
1: + };
1: + void *p;
1: +};
1: +
1: +struct input_devres {
1: + struct input_dev *input;
1: +};
1: +
1: +struct input_event {
1: + __kernel_ulong_t __sec;
1: + __kernel_ulong_t __usec;
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: +};
1: +
1: +struct input_event_compat {
1: + compat_ulong_t sec;
1: + compat_ulong_t usec;
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: +};
1: +
1: +struct ff_periodic_effect_compat {
1: + __u16 waveform;
1: + __u16 period;
1: + __s16 magnitude;
1: + __s16 offset;
1: + __u16 phase;
1: + struct ff_envelope envelope;
1: + __u32 custom_len;
1: + compat_uptr_t custom_data;
1: +};
1: +
1: +struct ff_effect_compat {
1: + __u16 type;
1: + __s16 id;
1: + __u16 direction;
1: + struct ff_trigger trigger;
1: + struct ff_replay replay;
1: + union {
1: + struct ff_constant_effect constant;
1: + struct ff_ramp_effect ramp;
1: + struct ff_periodic_effect_compat periodic;
1: + struct ff_condition_effect condition[2];
1: + struct ff_rumble_effect rumble;
1: + } u;
1: +};
1: +
1: +struct input_mt_pos {
1: + s16 x;
1: + s16 y;
1: +};
1: +
1: +struct input_dev_poller {
1: + void (*poll)(struct input_dev *);
1: + unsigned int poll_interval;
1: + unsigned int poll_interval_max;
1: + unsigned int poll_interval_min;
1: + struct input_dev *input;
1: + struct delayed_work work;
1: +};
1: +
1: +struct mousedev_hw_data {
1: + int dx;
1: + int dy;
1: + int dz;
1: + int x;
1: + int y;
1: + int abs_event;
1: + long unsigned int buttons;
1: +};
1: +
1: +struct mousedev {
1: + int open;
1: + struct input_handle handle;
1: + wait_queue_head_t wait;
1: + struct list_head client_list;
1: + spinlock_t client_lock;
1: + struct mutex mutex;
1: + struct device dev;
1: + struct cdev cdev;
1: + bool exist;
1: + struct list_head mixdev_node;
1: + bool opened_by_mixdev;
1: + struct mousedev_hw_data packet;
1: + unsigned int pkt_count;
1: + int old_x[4];
1: + int old_y[4];
1: + int frac_dx;
1: + int frac_dy;
1: + long unsigned int touch;
1: + int (*open_device)(struct mousedev *);
1: + void (*close_device)(struct mousedev *);
1: +};
1: +
1: +enum mousedev_emul {
1: + MOUSEDEV_EMUL_PS2 = 0,
1: + MOUSEDEV_EMUL_IMPS = 1,
1: + MOUSEDEV_EMUL_EXPS = 2,
1: +};
1: +
1: +struct mousedev_motion {
1: + int dx;
1: + int dy;
1: + int dz;
1: + long unsigned int buttons;
1: +};
1: +
1: +struct mousedev_client {
1: + struct fasync_struct *fasync;
1: + struct mousedev *mousedev;
1: + struct list_head node;
1: + struct mousedev_motion packets[16];
1: + unsigned int head;
1: + unsigned int tail;
1: + spinlock_t packet_lock;
1: + int pos_x;
1: + int pos_y;
1: + u8 ps2[6];
1: + unsigned char ready;
1: + unsigned char buffer;
1: + unsigned char bufsiz;
1: + unsigned char imexseq;
1: + unsigned char impsseq;
1: + enum mousedev_emul mode;
1: + long unsigned int last_buttons;
1: +};
1: +
1: +enum {
1: + FRACTION_DENOM = 128,
1: +};
1: +
1: +struct atkbd {
1: + struct ps2dev ps2dev;
1: + struct input_dev *dev;
1: + char name[64];
1: + char phys[32];
1: + short unsigned int id;
1: + short unsigned int keycode[512];
1: + long unsigned int force_release_mask[8];
1: + unsigned char set;
1: + bool translated;
1: + bool extra;
1: + bool write;
1: + bool softrepeat;
1: + bool softraw;
1: + bool scroll;
1: + bool enabled;
1: + unsigned char emul;
1: + bool resend;
1: + bool release;
1: + long unsigned int xl_bit;
1: + unsigned int last;
1: + long unsigned int time;
1: + long unsigned int err_count;
1: + struct delayed_work event_work;
1: + long unsigned int event_jiffies;
1: + long unsigned int event_mask;
1: + struct mutex mutex;
1: + u32 function_row_physmap[24];
1: + int num_function_row_keys;
1: +};
1: +
1: +struct touchscreen_properties {
1: + unsigned int max_x;
1: + unsigned int max_y;
1: + bool invert_x;
1: + bool invert_y;
1: + bool swap_x_y;
1: +};
1: +
1: +struct xenkbd_motion {
1: + uint8_t type;
1: + int32_t rel_x;
1: + int32_t rel_y;
1: + int32_t rel_z;
1: +};
1: +
1: +struct xenkbd_key {
1: + uint8_t type;
1: + uint8_t pressed;
1: + uint32_t keycode;
1: +};
1: +
1: +struct xenkbd_position {
1: + uint8_t type;
1: + int32_t abs_x;
1: + int32_t abs_y;
1: + int32_t rel_z;
1: +};
1: +
1: +struct xenkbd_mtouch {
1: + uint8_t type;
1: + uint8_t event_type;
1: + uint8_t contact_id;
1: + uint8_t reserved[5];
1: + union {
1: + struct {
1: + int32_t abs_x;
1: + int32_t abs_y;
1: + } pos;
1: + struct {
1: + uint32_t major;
1: + uint32_t minor;
1: + } shape;
1: + int16_t orientation;
1: + } u;
1: +};
1: +
1: +union xenkbd_in_event {
1: + uint8_t type;
1: + struct xenkbd_motion motion;
1: + struct xenkbd_key key;
1: + struct xenkbd_position pos;
1: + struct xenkbd_mtouch mtouch;
1: + char pad[40];
1: +};
1: +
1: +struct xenkbd_page {
1: + uint32_t in_cons;
1: + uint32_t in_prod;
1: + uint32_t out_cons;
1: + uint32_t out_prod;
1: +};
1: +
1: +struct xenkbd_info {
1: + struct input_dev *kbd;
1: + struct input_dev *ptr;
1: + struct input_dev *mtouch;
1: + struct xenkbd_page *page;
1: + int gref;
1: + int irq;
1: + struct xenbus_device *xbdev;
1: + char phys[32];
1: + int mtouch_cur_contact_id;
1: +};
1: +
1: +enum {
1: + KPARAM_X = 0,
1: + KPARAM_Y = 1,
1: + KPARAM_CNT___2 = 2,
1: +};
1: +
1: +struct trace_event_raw_rtc_time_alarm_class {
1: + struct trace_entry ent;
1: + time64_t secs;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rtc_irq_set_freq {
1: + struct trace_entry ent;
1: + int freq;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rtc_irq_set_state {
1: + struct trace_entry ent;
1: + int enabled;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rtc_alarm_irq_enable {
1: + struct trace_entry ent;
1: + unsigned int enabled;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rtc_offset_class {
1: + struct trace_entry ent;
1: + long int offset;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rtc_timer_class {
1: + struct trace_entry ent;
1: + struct rtc_timer *timer;
1: + ktime_t expires;
1: + ktime_t period;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rtc_time_alarm_class {};
1: +
1: +struct trace_event_data_offsets_rtc_irq_set_freq {};
1: +
1: +struct trace_event_data_offsets_rtc_irq_set_state {};
1: +
1: +struct trace_event_data_offsets_rtc_alarm_irq_enable {};
1: +
1: +struct trace_event_data_offsets_rtc_offset_class {};
1: +
1: +struct trace_event_data_offsets_rtc_timer_class {};
1: +
1: +typedef void (*btf_trace_rtc_set_time)(void *, time64_t, int);
1: +
1: +typedef void (*btf_trace_rtc_read_time)(void *, time64_t, int);
1: +
1: +typedef void (*btf_trace_rtc_set_alarm)(void *, time64_t, int);
1: +
1: +typedef void (*btf_trace_rtc_read_alarm)(void *, time64_t, int);
1: +
1: +typedef void (*btf_trace_rtc_irq_set_freq)(void *, int, int);
1: +
1: +typedef void (*btf_trace_rtc_irq_set_state)(void *, int, int);
1: +
1: +typedef void (*btf_trace_rtc_alarm_irq_enable)(void *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_rtc_set_offset)(void *, long int, int);
1: +
1: +typedef void (*btf_trace_rtc_read_offset)(void *, long int, int);
1: +
1: +typedef void (*btf_trace_rtc_timer_enqueue)(void *, struct rtc_timer *);
1: +
1: +typedef void (*btf_trace_rtc_timer_dequeue)(void *, struct rtc_timer *);
1: +
1: +typedef void (*btf_trace_rtc_timer_fired)(void *, struct rtc_timer *);
1: +
1: +enum {
1: + none = 0,
1: + day = 1,
1: + month = 2,
1: + year = 3,
1: +};
1: +
1: +struct pl031_vendor_data {
1: + struct rtc_class_ops ops;
1: + bool clockwatch;
1: + bool st_weekday;
1: + long unsigned int irqflags;
1: + time64_t range_min;
1: + timeu64_t range_max;
1: +};
1: +
1: +struct pl031_local {
1: + struct pl031_vendor_data *vendor;
1: + struct rtc_device *rtc;
1: + void *base;
1: +};
1: +
1: +struct sun6i_rtc_clk_data {
1: + long unsigned int rc_osc_rate;
1: + unsigned int fixed_prescaler: 16;
1: + unsigned int has_prescaler: 1;
1: + unsigned int has_out_clk: 1;
1: + unsigned int export_iosc: 1;
1: + unsigned int has_losc_en: 1;
1: + unsigned int has_auto_swt: 1;
1: +};
1: +
1: +struct sun6i_rtc_dev {
1: + struct rtc_device *rtc;
1: + const struct sun6i_rtc_clk_data *data;
1: + void *base;
1: + int irq;
1: + long unsigned int alarm;
1: + struct clk_hw hw;
1: + struct clk_hw *int_osc;
1: + struct clk *losc;
1: + struct clk *ext_losc;
1: + spinlock_t lock;
1: +};
1: +
1: +struct xgene_rtc_dev {
1: + struct rtc_device *rtc;
1: + void *csr_base;
1: + struct clk *clk;
1: + unsigned int irq_wake;
1: + unsigned int irq_enabled;
1: +};
1: +
1: +struct i2c_board_info {
1: + char type[20];
1: + short unsigned int flags;
1: + short unsigned int addr;
1: + const char *dev_name;
1: + void *platform_data;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + const struct property_entry *properties;
1: + const struct resource *resources;
1: + unsigned int num_resources;
1: + int irq;
1: +};
1: +
1: +struct i2c_devinfo {
1: + struct list_head list;
1: + int busnum;
1: + struct i2c_board_info board_info;
1: +};
1: +
1: +struct i2c_device_id {
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct i2c_device_identity {
1: + u16 manufacturer_id;
1: + u16 part_id;
1: + u8 die_revision;
1: +};
1: +
1: +enum i2c_alert_protocol {
1: + I2C_PROTOCOL_SMBUS_ALERT = 0,
1: + I2C_PROTOCOL_SMBUS_HOST_NOTIFY = 1,
1: +};
1: +
1: +struct i2c_driver {
1: + unsigned int class;
1: + int (*probe)(struct i2c_client *, const struct i2c_device_id *);
1: + int (*remove)(struct i2c_client *);
1: + int (*probe_new)(struct i2c_client *);
1: + void (*shutdown)(struct i2c_client *);
1: + void (*alert)(struct i2c_client *, enum i2c_alert_protocol, unsigned int);
1: + int (*command)(struct i2c_client *, unsigned int, void *);
1: + struct device_driver driver;
1: + const struct i2c_device_id *id_table;
1: + int (*detect)(struct i2c_client *, struct i2c_board_info *);
1: + const short unsigned int *address_list;
1: + struct list_head clients;
1: +};
1: +
1: +struct i2c_timings {
1: + u32 bus_freq_hz;
1: + u32 scl_rise_ns;
1: + u32 scl_fall_ns;
1: + u32 scl_int_delay_ns;
1: + u32 sda_fall_ns;
1: + u32 sda_hold_ns;
1: + u32 digital_filter_width_ns;
1: + u32 analog_filter_cutoff_freq_hz;
1: +};
1: +
1: +struct trace_event_raw_i2c_write {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_i2c_read {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_i2c_reply {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_i2c_result {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 nr_msgs;
1: + __s16 ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_i2c_write {
1: + u32 buf;
1: +};
1: +
1: +struct trace_event_data_offsets_i2c_read {};
1: +
1: +struct trace_event_data_offsets_i2c_reply {
1: + u32 buf;
1: +};
1: +
1: +struct trace_event_data_offsets_i2c_result {};
1: +
1: +typedef void (*btf_trace_i2c_write)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +
1: +typedef void (*btf_trace_i2c_read)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +
1: +typedef void (*btf_trace_i2c_reply)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +
1: +typedef void (*btf_trace_i2c_result)(void *, const struct i2c_adapter *, int, int);
1: +
1: +struct i2c_dummy_devres {
1: + struct i2c_client *client;
1: +};
1: +
1: +struct class_compat___2;
1: +
1: +struct i2c_cmd_arg {
1: + unsigned int cmd;
1: + void *arg;
1: +};
1: +
1: +struct i2c_smbus_alert_setup {
1: + int irq;
1: +};
1: +
1: +struct trace_event_raw_smbus_write {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 command;
1: + __u8 len;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_smbus_read {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 flags;
1: + __u16 addr;
1: + __u8 command;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_smbus_reply {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 command;
1: + __u8 len;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_smbus_result {
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 read_write;
1: + __u8 command;
1: + __s16 res;
1: + __u32 protocol;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_smbus_write {};
1: +
1: +struct trace_event_data_offsets_smbus_read {};
1: +
1: +struct trace_event_data_offsets_smbus_reply {};
1: +
1: +struct trace_event_data_offsets_smbus_result {};
1: +
1: +typedef void (*btf_trace_smbus_write)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, const union i2c_smbus_data *);
1: +
1: +typedef void (*btf_trace_smbus_read)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int);
1: +
1: +typedef void (*btf_trace_smbus_reply)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, const union i2c_smbus_data *, int);
1: +
1: +typedef void (*btf_trace_smbus_result)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, int);
1: +
1: +struct i2c_acpi_handler_data {
1: + struct acpi_connection_info info;
1: + struct i2c_adapter *adapter;
1: +};
1: +
1: +struct gsb_buffer {
1: + u8 status;
1: + u8 len;
1: + union {
1: + u16 wdata;
1: + u8 bdata;
1: + u8 data[0];
1: + };
1: +};
1: +
1: +struct i2c_acpi_lookup {
1: + struct i2c_board_info *info;
1: + acpi_handle adapter_handle;
1: + acpi_handle device_handle;
1: + acpi_handle search_handle;
1: + int n;
1: + int index;
1: + u32 speed;
1: + u32 min_speed;
1: + u32 force_speed;
1: +};
1: +
1: +struct dw_i2c_dev {
1: + struct device *dev;
1: + struct regmap *map;
1: + struct regmap *sysmap;
1: + void *base;
1: + void *ext;
1: + struct completion cmd_complete;
1: + struct clk *clk;
1: + struct clk *pclk;
1: + struct reset_control *rst;
1: + struct i2c_client *slave;
1: + u32 (*get_clk_rate_khz)(struct dw_i2c_dev *);
1: + int cmd_err;
1: + struct i2c_msg *msgs;
1: + int msgs_num;
1: + int msg_write_idx;
1: + u32 tx_buf_len;
1: + u8 *tx_buf;
1: + int msg_read_idx;
1: + u32 rx_buf_len;
1: + u8 *rx_buf;
1: + int msg_err;
1: + unsigned int status;
1: + u32 abort_source;
1: + int irq;
1: + u32 flags;
1: + struct i2c_adapter adapter;
1: + u32 functionality;
1: + u32 master_cfg;
1: + u32 slave_cfg;
1: + unsigned int tx_fifo_depth;
1: + unsigned int rx_fifo_depth;
1: + int rx_outstanding;
1: + struct i2c_timings timings;
1: + u32 sda_hold_time;
1: + u16 ss_hcnt;
1: + u16 ss_lcnt;
1: + u16 fs_hcnt;
1: + u16 fs_lcnt;
1: + u16 fp_hcnt;
1: + u16 fp_lcnt;
1: + u16 hs_hcnt;
1: + u16 hs_lcnt;
1: + int (*acquire_lock)();
1: + void (*release_lock)();
1: + bool shared_with_punit;
1: + void (*disable)(struct dw_i2c_dev *);
1: + void (*disable_int)(struct dw_i2c_dev *);
1: + int (*init)(struct dw_i2c_dev *);
1: + int (*set_sda_hold_time)(struct dw_i2c_dev *);
1: + int mode;
1: + struct i2c_bus_recovery_info rinfo;
1: + bool suspended;
1: +};
1: +
1: +struct dw_i2c_platform_data {
1: + unsigned int i2c_scl_freq;
1: +};
1: +
1: +struct bsc_regs {
1: + u32 chip_address;
1: + u32 data_in[8];
1: + u32 cnt_reg;
1: + u32 ctl_reg;
1: + u32 iic_enable;
1: + u32 data_out[8];
1: + u32 ctlhi_reg;
1: + u32 scl_param;
1: +};
1: +
1: +struct bsc_clk_param {
1: + u32 hz;
1: + u32 scl_mask;
1: + u32 div_mask;
1: +};
1: +
1: +enum bsc_xfer_cmd {
1: + CMD_WR = 0,
1: + CMD_RD = 1,
1: + CMD_WR_NOACK = 2,
1: + CMD_RD_NOACK = 3,
1: +};
1: +
1: +enum bus_speeds {
1: + SPD_375K = 0,
1: + SPD_390K = 1,
1: + SPD_187K = 2,
1: + SPD_200K = 3,
1: + SPD_93K = 4,
1: + SPD_97K = 5,
1: + SPD_46K = 6,
1: + SPD_50K = 7,
1: +};
1: +
1: +struct brcmstb_i2c_dev {
1: + struct device *device;
1: + void *base;
1: + int irq;
1: + struct bsc_regs *bsc_regmap;
1: + struct i2c_adapter adapter;
1: + struct completion done;
1: + u32 clk_freq_hz;
1: + int data_regsz;
1: +};
1: +
1: +struct pps_ktime {
1: + __s64 sec;
1: + __s32 nsec;
1: + __u32 flags;
1: +};
1: +
1: +struct pps_ktime_compat {
1: + __s64 sec;
1: + __s32 nsec;
1: + __u32 flags;
1: +};
1: +
1: +struct pps_kinfo {
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime assert_tu;
1: + struct pps_ktime clear_tu;
1: + int current_mode;
1: +};
1: +
1: +struct pps_kinfo_compat {
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime_compat assert_tu;
1: + struct pps_ktime_compat clear_tu;
1: + int current_mode;
1: +} __attribute__((packed));
1: +
1: +struct pps_kparams {
1: + int api_version;
1: + int mode;
1: + struct pps_ktime assert_off_tu;
1: + struct pps_ktime clear_off_tu;
1: +};
1: +
1: +struct pps_fdata {
1: + struct pps_kinfo info;
1: + struct pps_ktime timeout;
1: +};
1: +
1: +struct pps_fdata_compat {
1: + struct pps_kinfo_compat info;
1: + struct pps_ktime_compat timeout;
1: +} __attribute__((packed));
1: +
1: +struct pps_bind_args {
1: + int tsformat;
1: + int edge;
1: + int consumer;
1: +};
1: +
1: +struct pps_device;
1: +
1: +struct pps_source_info {
1: + char name[32];
1: + char path[32];
1: + int mode;
1: + void (*echo)(struct pps_device *, int, void *);
1: + struct module *owner;
1: + struct device *dev;
1: +};
1: +
1: +struct pps_device {
1: + struct pps_source_info info;
1: + struct pps_kparams params;
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime assert_tu;
1: + struct pps_ktime clear_tu;
1: + int current_mode;
1: + unsigned int last_ev;
1: + wait_queue_head_t queue;
1: + unsigned int id;
1: + const void *lookup_cookie;
1: + struct cdev cdev;
1: + struct device *dev;
1: + struct fasync_struct *async_queue;
1: + spinlock_t lock;
1: +};
1: +
1: +struct pps_event_time {
1: + struct timespec64 ts_real;
1: +};
1: +
1: +struct ptp_extts_event {
1: + struct ptp_clock_time t;
1: + unsigned int index;
1: + unsigned int flags;
1: + unsigned int rsv[2];
1: +};
1: +
1: +enum ptp_clock_events {
1: + PTP_CLOCK_ALARM = 0,
1: + PTP_CLOCK_EXTTS = 1,
1: + PTP_CLOCK_PPS = 2,
1: + PTP_CLOCK_PPSUSR = 3,
1: +};
1: +
1: +struct ptp_clock_event {
1: + int type;
1: + int index;
1: + union {
1: + u64 timestamp;
1: + struct pps_event_time pps_times;
1: + };
1: +};
1: +
1: +struct timestamp_event_queue {
1: + struct ptp_extts_event buf[128];
1: + int head;
1: + int tail;
1: + spinlock_t lock;
1: +};
1: +
1: +struct ptp_clock___2 {
1: + struct posix_clock clock;
1: + struct device dev;
1: + struct ptp_clock_info *info;
1: + dev_t devid;
1: + int index;
1: + struct pps_device *pps_source;
1: + long int dialed_frequency;
1: + struct timestamp_event_queue tsevq;
1: + struct mutex tsevq_mux;
1: + struct mutex pincfg_mux;
1: + wait_queue_head_t tsev_wq;
1: + int defunct;
1: + struct device_attribute *pin_dev_attr;
1: + struct attribute **pin_attr;
1: + struct attribute_group pin_attr_group;
1: + const struct attribute_group *pin_attr_groups[2];
1: + struct kthread_worker *kworker;
1: + struct kthread_delayed_work aux_work;
1: +};
1: +
1: +struct ptp_clock_caps {
1: + int max_adj;
1: + int n_alarm;
1: + int n_ext_ts;
1: + int n_per_out;
1: + int pps;
1: + int n_pins;
1: + int cross_timestamping;
1: + int adjust_phase;
1: + int rsv[12];
1: +};
1: +
1: +struct ptp_sys_offset {
1: + unsigned int n_samples;
1: + unsigned int rsv[3];
1: + struct ptp_clock_time ts[51];
1: +};
1: +
1: +struct ptp_sys_offset_extended {
1: + unsigned int n_samples;
1: + unsigned int rsv[3];
1: + struct ptp_clock_time ts[75];
1: +};
1: +
1: +struct ptp_sys_offset_precise {
1: + struct ptp_clock_time device;
1: + struct ptp_clock_time sys_realtime;
1: + struct ptp_clock_time sys_monoraw;
1: + unsigned int rsv[4];
1: +};
1: +
1: +struct gpio_restart {
1: + struct gpio_desc *reset_gpio;
1: + struct notifier_block restart_handler;
1: + u32 active_delay_ms;
1: + u32 inactive_delay_ms;
1: + u32 wait_delay_ms;
1: +};
1: +
1: +enum vexpress_reset_func {
1: + FUNC_RESET = 0,
1: + FUNC_SHUTDOWN = 1,
1: + FUNC_REBOOT = 2,
1: +};
1: +
1: +struct xgene_reboot_context {
1: + struct device *dev;
1: + void *csr;
1: + u32 mask;
1: + struct notifier_block restart_handler;
1: +};
1: +
1: +struct syscon_reboot_context {
1: + struct regmap *map;
1: + u32 offset;
1: + u32 value;
1: + u32 mask;
1: + struct notifier_block restart_handler;
1: +};
1: +
1: +struct reboot_mode_driver {
1: + struct device *dev;
1: + struct list_head head;
1: + int (*write)(struct reboot_mode_driver *, unsigned int);
1: + struct notifier_block reboot_notifier;
1: +};
1: +
1: +struct mode_info {
1: + const char *mode;
1: + u32 magic;
1: + struct list_head list;
1: +};
1: +
1: +struct syscon_reboot_mode {
1: + struct regmap *map;
1: + struct reboot_mode_driver reboot;
1: + u32 offset;
1: + u32 mask;
1: +};
1: +
1: +enum power_supply_property {
1: + POWER_SUPPLY_PROP_STATUS = 0,
1: + POWER_SUPPLY_PROP_CHARGE_TYPE = 1,
1: + POWER_SUPPLY_PROP_HEALTH = 2,
1: + POWER_SUPPLY_PROP_PRESENT = 3,
1: + POWER_SUPPLY_PROP_ONLINE = 4,
1: + POWER_SUPPLY_PROP_AUTHENTIC = 5,
1: + POWER_SUPPLY_PROP_TECHNOLOGY = 6,
1: + POWER_SUPPLY_PROP_CYCLE_COUNT = 7,
1: + POWER_SUPPLY_PROP_VOLTAGE_MAX = 8,
1: + POWER_SUPPLY_PROP_VOLTAGE_MIN = 9,
1: + POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN = 10,
1: + POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN = 11,
1: + POWER_SUPPLY_PROP_VOLTAGE_NOW = 12,
1: + POWER_SUPPLY_PROP_VOLTAGE_AVG = 13,
1: + POWER_SUPPLY_PROP_VOLTAGE_OCV = 14,
1: + POWER_SUPPLY_PROP_VOLTAGE_BOOT = 15,
1: + POWER_SUPPLY_PROP_CURRENT_MAX = 16,
1: + POWER_SUPPLY_PROP_CURRENT_NOW = 17,
1: + POWER_SUPPLY_PROP_CURRENT_AVG = 18,
1: + POWER_SUPPLY_PROP_CURRENT_BOOT = 19,
1: + POWER_SUPPLY_PROP_POWER_NOW = 20,
1: + POWER_SUPPLY_PROP_POWER_AVG = 21,
1: + POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN = 22,
1: + POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN = 23,
1: + POWER_SUPPLY_PROP_CHARGE_FULL = 24,
1: + POWER_SUPPLY_PROP_CHARGE_EMPTY = 25,
1: + POWER_SUPPLY_PROP_CHARGE_NOW = 26,
1: + POWER_SUPPLY_PROP_CHARGE_AVG = 27,
1: + POWER_SUPPLY_PROP_CHARGE_COUNTER = 28,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT = 29,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX = 30,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE = 31,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX = 32,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT = 33,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT_MAX = 34,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD = 35,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD = 36,
1: + POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT = 37,
1: + POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT = 38,
1: + POWER_SUPPLY_PROP_INPUT_POWER_LIMIT = 39,
1: + POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN = 40,
1: + POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN = 41,
1: + POWER_SUPPLY_PROP_ENERGY_FULL = 42,
1: + POWER_SUPPLY_PROP_ENERGY_EMPTY = 43,
1: + POWER_SUPPLY_PROP_ENERGY_NOW = 44,
1: + POWER_SUPPLY_PROP_ENERGY_AVG = 45,
1: + POWER_SUPPLY_PROP_CAPACITY = 46,
1: + POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN = 47,
1: + POWER_SUPPLY_PROP_CAPACITY_ALERT_MAX = 48,
1: + POWER_SUPPLY_PROP_CAPACITY_ERROR_MARGIN = 49,
1: + POWER_SUPPLY_PROP_CAPACITY_LEVEL = 50,
1: + POWER_SUPPLY_PROP_TEMP = 51,
1: + POWER_SUPPLY_PROP_TEMP_MAX = 52,
1: + POWER_SUPPLY_PROP_TEMP_MIN = 53,
1: + POWER_SUPPLY_PROP_TEMP_ALERT_MIN = 54,
1: + POWER_SUPPLY_PROP_TEMP_ALERT_MAX = 55,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT = 56,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MIN = 57,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MAX = 58,
1: + POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW = 59,
1: + POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG = 60,
1: + POWER_SUPPLY_PROP_TIME_TO_FULL_NOW = 61,
1: + POWER_SUPPLY_PROP_TIME_TO_FULL_AVG = 62,
1: + POWER_SUPPLY_PROP_TYPE = 63,
1: + POWER_SUPPLY_PROP_USB_TYPE = 64,
1: + POWER_SUPPLY_PROP_SCOPE = 65,
1: + POWER_SUPPLY_PROP_PRECHARGE_CURRENT = 66,
1: + POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT = 67,
1: + POWER_SUPPLY_PROP_CALIBRATE = 68,
1: + POWER_SUPPLY_PROP_MANUFACTURE_YEAR = 69,
1: + POWER_SUPPLY_PROP_MANUFACTURE_MONTH = 70,
1: + POWER_SUPPLY_PROP_MANUFACTURE_DAY = 71,
1: + POWER_SUPPLY_PROP_MODEL_NAME = 72,
1: + POWER_SUPPLY_PROP_MANUFACTURER = 73,
1: + POWER_SUPPLY_PROP_SERIAL_NUMBER = 74,
1: +};
1: +
1: +enum power_supply_type {
1: + POWER_SUPPLY_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_TYPE_BATTERY = 1,
1: + POWER_SUPPLY_TYPE_UPS = 2,
1: + POWER_SUPPLY_TYPE_MAINS = 3,
1: + POWER_SUPPLY_TYPE_USB = 4,
1: + POWER_SUPPLY_TYPE_USB_DCP = 5,
1: + POWER_SUPPLY_TYPE_USB_CDP = 6,
1: + POWER_SUPPLY_TYPE_USB_ACA = 7,
1: + POWER_SUPPLY_TYPE_USB_TYPE_C = 8,
1: + POWER_SUPPLY_TYPE_USB_PD = 9,
1: + POWER_SUPPLY_TYPE_USB_PD_DRP = 10,
1: + POWER_SUPPLY_TYPE_APPLE_BRICK_ID = 11,
1: + POWER_SUPPLY_TYPE_WIRELESS = 12,
1: +};
1: +
1: +enum power_supply_usb_type {
1: + POWER_SUPPLY_USB_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_USB_TYPE_SDP = 1,
1: + POWER_SUPPLY_USB_TYPE_DCP = 2,
1: + POWER_SUPPLY_USB_TYPE_CDP = 3,
1: + POWER_SUPPLY_USB_TYPE_ACA = 4,
1: + POWER_SUPPLY_USB_TYPE_C = 5,
1: + POWER_SUPPLY_USB_TYPE_PD = 6,
1: + POWER_SUPPLY_USB_TYPE_PD_DRP = 7,
1: + POWER_SUPPLY_USB_TYPE_PD_PPS = 8,
1: + POWER_SUPPLY_USB_TYPE_APPLE_BRICK_ID = 9,
1: +};
1: +
1: +enum power_supply_notifier_events {
1: + PSY_EVENT_PROP_CHANGED = 0,
1: +};
1: +
1: +union power_supply_propval {
1: + int intval;
1: + const char *strval;
1: +};
1: +
1: +struct power_supply_config {
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + void *drv_data;
1: + const struct attribute_group **attr_grp;
1: + char **supplied_to;
1: + size_t num_supplicants;
1: +};
1: +
1: +struct power_supply;
1: +
1: +struct power_supply_desc {
1: + const char *name;
1: + enum power_supply_type type;
1: + const enum power_supply_usb_type *usb_types;
1: + size_t num_usb_types;
1: + const enum power_supply_property *properties;
1: + size_t num_properties;
1: + int (*get_property)(struct power_supply *, enum power_supply_property, union power_supply_propval *);
1: + int (*set_property)(struct power_supply *, enum power_supply_property, const union power_supply_propval *);
1: + int (*property_is_writeable)(struct power_supply *, enum power_supply_property);
1: + void (*external_power_changed)(struct power_supply *);
1: + void (*set_charged)(struct power_supply *);
1: + bool no_thermal;
1: + int use_for_apm;
1: +};
1: +
1: +struct thermal_zone_device;
1: +
1: +struct power_supply {
1: + const struct power_supply_desc *desc;
1: + char **supplied_to;
1: + size_t num_supplicants;
1: + char **supplied_from;
1: + size_t num_supplies;
1: + struct device_node *of_node;
1: + void *drv_data;
1: + struct device dev;
1: + struct work_struct changed_work;
1: + struct delayed_work deferred_register_work;
1: + spinlock_t changed_lock;
1: + bool changed;
1: + bool initialized;
1: + bool removing;
1: + atomic_t use_cnt;
1: + struct thermal_zone_device *tzd;
1: + struct thermal_cooling_device *tcd;
1: + struct led_trigger *charging_full_trig;
1: + char *charging_full_trig_name;
1: + struct led_trigger *charging_trig;
1: + char *charging_trig_name;
1: + struct led_trigger *full_trig;
1: + char *full_trig_name;
1: + struct led_trigger *online_trig;
1: + char *online_trig_name;
1: + struct led_trigger *charging_blink_full_solid_trig;
1: + char *charging_blink_full_solid_trig_name;
1: +};
1: +
1: +enum thermal_device_mode {
1: + THERMAL_DEVICE_DISABLED = 0,
1: + THERMAL_DEVICE_ENABLED = 1,
1: +};
1: +
1: +enum thermal_notify_event {
1: + THERMAL_EVENT_UNSPECIFIED = 0,
1: + THERMAL_EVENT_TEMP_SAMPLE = 1,
1: + THERMAL_TRIP_VIOLATED = 2,
1: + THERMAL_TRIP_CHANGED = 3,
1: + THERMAL_DEVICE_DOWN = 4,
1: + THERMAL_DEVICE_UP = 5,
1: + THERMAL_DEVICE_POWER_CAPABILITY_CHANGED = 6,
1: + THERMAL_TABLE_CHANGED = 7,
1: + THERMAL_EVENT_KEEP_ALIVE = 8,
1: +};
1: +
1: +struct thermal_attr;
1: +
1: +struct thermal_zone_device_ops;
1: +
1: +struct thermal_zone_params;
1: +
1: +struct thermal_governor;
1: +
1: +struct thermal_zone_device {
1: + int id;
1: + char type[20];
1: + struct device device;
1: + struct attribute_group trips_attribute_group;
1: + struct thermal_attr *trip_temp_attrs;
1: + struct thermal_attr *trip_type_attrs;
1: + struct thermal_attr *trip_hyst_attrs;
1: + enum thermal_device_mode mode;
1: + void *devdata;
1: + int trips;
1: + long unsigned int trips_disabled;
1: + int passive_delay;
1: + int polling_delay;
1: + int temperature;
1: + int last_temperature;
1: + int emul_temperature;
1: + int passive;
1: + int prev_low_trip;
1: + int prev_high_trip;
1: + unsigned int forced_passive;
1: + atomic_t need_update;
1: + struct thermal_zone_device_ops *ops;
1: + struct thermal_zone_params *tzp;
1: + struct thermal_governor *governor;
1: + void *governor_data;
1: + struct list_head thermal_instances;
1: + struct ida ida;
1: + struct mutex lock;
1: + struct list_head node;
1: + struct delayed_work poll_queue;
1: + enum thermal_notify_event notify_event;
1: +};
1: +
1: +struct power_supply_battery_ocv_table {
1: + int ocv;
1: + int capacity;
1: +};
1: +
1: +struct power_supply_resistance_temp_table {
1: + int temp;
1: + int resistance;
1: +};
1: +
1: +struct power_supply_battery_info {
1: + int energy_full_design_uwh;
1: + int charge_full_design_uah;
1: + int voltage_min_design_uv;
1: + int voltage_max_design_uv;
1: + int tricklecharge_current_ua;
1: + int precharge_current_ua;
1: + int precharge_voltage_max_uv;
1: + int charge_term_current_ua;
1: + int charge_restart_voltage_uv;
1: + int overvoltage_limit_uv;
1: + int constant_charge_current_max_ua;
1: + int constant_charge_voltage_max_uv;
1: + int factory_internal_resistance_uohm;
1: + int ocv_temp[20];
1: + int temp_ambient_alert_min;
1: + int temp_ambient_alert_max;
1: + int temp_alert_min;
1: + int temp_alert_max;
1: + int temp_min;
1: + int temp_max;
1: + struct power_supply_battery_ocv_table *ocv_table[20];
1: + int ocv_table_size[20];
1: + struct power_supply_resistance_temp_table *resist_table;
1: + int resist_table_size;
1: +};
1: +
1: +enum thermal_trip_type {
1: + THERMAL_TRIP_ACTIVE = 0,
1: + THERMAL_TRIP_PASSIVE = 1,
1: + THERMAL_TRIP_HOT = 2,
1: + THERMAL_TRIP_CRITICAL = 3,
1: +};
1: +
1: +enum thermal_trend {
1: + THERMAL_TREND_STABLE = 0,
1: + THERMAL_TREND_RAISING = 1,
1: + THERMAL_TREND_DROPPING = 2,
1: + THERMAL_TREND_RAISE_FULL = 3,
1: + THERMAL_TREND_DROP_FULL = 4,
1: +};
1: +
1: +struct thermal_zone_device_ops {
1: + int (*bind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: + int (*unbind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: + int (*get_temp)(struct thermal_zone_device *, int *);
1: + int (*set_trips)(struct thermal_zone_device *, int, int);
1: + int (*change_mode)(struct thermal_zone_device *, enum thermal_device_mode);
1: + int (*get_trip_type)(struct thermal_zone_device *, int, enum thermal_trip_type *);
1: + int (*get_trip_temp)(struct thermal_zone_device *, int, int *);
1: + int (*set_trip_temp)(struct thermal_zone_device *, int, int);
1: + int (*get_trip_hyst)(struct thermal_zone_device *, int, int *);
1: + int (*set_trip_hyst)(struct thermal_zone_device *, int, int);
1: + int (*get_crit_temp)(struct thermal_zone_device *, int *);
1: + int (*set_emul_temp)(struct thermal_zone_device *, int);
1: + int (*get_trend)(struct thermal_zone_device *, int, enum thermal_trend *);
1: + int (*notify)(struct thermal_zone_device *, int, enum thermal_trip_type);
1: +};
1: +
1: +struct thermal_bind_params;
1: +
1: +struct thermal_zone_params {
1: + char governor_name[20];
1: + bool no_hwmon;
1: + int num_tbps;
1: + struct thermal_bind_params *tbp;
1: + u32 sustainable_power;
1: + s32 k_po;
1: + s32 k_pu;
1: + s32 k_i;
1: + s32 k_d;
1: + s32 integral_cutoff;
1: + int slope;
1: + int offset;
1: +};
1: +
1: +struct thermal_governor {
1: + char name[20];
1: + int (*bind_to_tz)(struct thermal_zone_device *);
1: + void (*unbind_from_tz)(struct thermal_zone_device *);
1: + int (*throttle)(struct thermal_zone_device *, int);
1: + struct list_head governor_list;
1: +};
1: +
1: +struct thermal_bind_params {
1: + struct thermal_cooling_device *cdev;
1: + int weight;
1: + int trip_mask;
1: + long unsigned int *binding_limits;
1: + int (*match)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: +};
1: +
1: +struct psy_am_i_supplied_data {
1: + struct power_supply *psy;
1: + unsigned int count;
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_STATUS_UNKNOWN = 0,
1: + POWER_SUPPLY_STATUS_CHARGING = 1,
1: + POWER_SUPPLY_STATUS_DISCHARGING = 2,
1: + POWER_SUPPLY_STATUS_NOT_CHARGING = 3,
1: + POWER_SUPPLY_STATUS_FULL = 4,
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_CHARGE_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_CHARGE_TYPE_NONE = 1,
1: + POWER_SUPPLY_CHARGE_TYPE_TRICKLE = 2,
1: + POWER_SUPPLY_CHARGE_TYPE_FAST = 3,
1: + POWER_SUPPLY_CHARGE_TYPE_STANDARD = 4,
1: + POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE = 5,
1: + POWER_SUPPLY_CHARGE_TYPE_CUSTOM = 6,
1: + POWER_SUPPLY_CHARGE_TYPE_LONGLIFE = 7,
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_HEALTH_UNKNOWN = 0,
1: + POWER_SUPPLY_HEALTH_GOOD = 1,
1: + POWER_SUPPLY_HEALTH_OVERHEAT = 2,
1: + POWER_SUPPLY_HEALTH_DEAD = 3,
1: + POWER_SUPPLY_HEALTH_OVERVOLTAGE = 4,
1: + POWER_SUPPLY_HEALTH_UNSPEC_FAILURE = 5,
1: + POWER_SUPPLY_HEALTH_COLD = 6,
1: + POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE = 7,
1: + POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE = 8,
1: + POWER_SUPPLY_HEALTH_OVERCURRENT = 9,
1: + POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED = 10,
1: + POWER_SUPPLY_HEALTH_WARM = 11,
1: + POWER_SUPPLY_HEALTH_COOL = 12,
1: + POWER_SUPPLY_HEALTH_HOT = 13,
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0,
1: + POWER_SUPPLY_TECHNOLOGY_NiMH = 1,
1: + POWER_SUPPLY_TECHNOLOGY_LION = 2,
1: + POWER_SUPPLY_TECHNOLOGY_LIPO = 3,
1: + POWER_SUPPLY_TECHNOLOGY_LiFe = 4,
1: + POWER_SUPPLY_TECHNOLOGY_NiCd = 5,
1: + POWER_SUPPLY_TECHNOLOGY_LiMn = 6,
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
1: + POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL = 1,
1: + POWER_SUPPLY_CAPACITY_LEVEL_LOW = 2,
1: + POWER_SUPPLY_CAPACITY_LEVEL_NORMAL = 3,
1: + POWER_SUPPLY_CAPACITY_LEVEL_HIGH = 4,
1: + POWER_SUPPLY_CAPACITY_LEVEL_FULL = 5,
1: +};
1: +
1: +enum {
1: + POWER_SUPPLY_SCOPE_UNKNOWN = 0,
1: + POWER_SUPPLY_SCOPE_SYSTEM = 1,
1: + POWER_SUPPLY_SCOPE_DEVICE = 2,
1: +};
1: +
1: +struct power_supply_attr {
1: + const char *prop_name;
1: + char attr_name[31];
1: + struct device_attribute dev_attr;
1: + const char * const *text_values;
1: + int text_values_len;
1: +};
1: +
1: +enum data_source {
1: + CM_BATTERY_PRESENT = 0,
1: + CM_NO_BATTERY = 1,
1: + CM_FUEL_GAUGE = 2,
1: + CM_CHARGER_STAT = 3,
1: +};
1: +
1: +enum polling_modes {
1: + CM_POLL_DISABLE = 0,
1: + CM_POLL_ALWAYS = 1,
1: + CM_POLL_EXTERNAL_POWER_ONLY = 2,
1: + CM_POLL_CHARGING_ONLY = 3,
1: +};
1: +
1: +enum cm_batt_temp {
1: + CM_BATT_OK = 0,
1: + CM_BATT_OVERHEAT = 1,
1: + CM_BATT_COLD = 2,
1: +};
1: +
1: +struct charger_regulator;
1: +
1: +struct charger_manager;
1: +
1: +struct charger_cable {
1: + const char *extcon_name;
1: + const char *name;
1: + struct extcon_dev *extcon_dev;
1: + u64 extcon_type;
1: + struct work_struct wq;
1: + struct notifier_block nb;
1: + bool attached;
1: + struct charger_regulator *charger;
1: + int min_uA;
1: + int max_uA;
1: + struct charger_manager *cm;
1: +};
1: +
1: +struct charger_regulator {
1: + const char *regulator_name;
1: + struct regulator *consumer;
1: + int externally_control;
1: + struct charger_cable *cables;
1: + int num_cables;
1: + struct attribute_group attr_grp;
1: + struct device_attribute attr_name;
1: + struct device_attribute attr_state;
1: + struct device_attribute attr_externally_control;
1: + struct attribute *attrs[4];
1: + struct charger_manager *cm;
1: +};
1: +
1: +struct charger_desc;
1: +
1: +struct charger_manager {
1: + struct list_head entry;
1: + struct device *dev;
1: + struct charger_desc *desc;
1: + struct thermal_zone_device *tzd_batt;
1: + bool charger_enabled;
1: + int emergency_stop;
1: + char psy_name_buf[31];
1: + struct power_supply_desc charger_psy_desc;
1: + struct power_supply *charger_psy;
1: + u64 charging_start_time;
1: + u64 charging_end_time;
1: + int battery_status;
1: +};
1: +
1: +struct charger_desc {
1: + const char *psy_name;
1: + enum polling_modes polling_mode;
1: + unsigned int polling_interval_ms;
1: + unsigned int fullbatt_vchkdrop_uV;
1: + unsigned int fullbatt_uV;
1: + unsigned int fullbatt_soc;
1: + unsigned int fullbatt_full_capacity;
1: + enum data_source battery_present;
1: + const char **psy_charger_stat;
1: + int num_charger_regulators;
1: + struct charger_regulator *charger_regulators;
1: + const struct attribute_group **sysfs_groups;
1: + const char *psy_fuel_gauge;
1: + const char *thermal_zone;
1: + int temp_min;
1: + int temp_max;
1: + int temp_diff;
1: + bool measure_battery_temp;
1: + u32 charging_max_duration_ms;
1: + u32 discharging_max_duration_ms;
1: +};
1: +
1: +struct thermal_attr {
1: + struct device_attribute attr;
1: + char name[20];
1: +};
1: +
1: +struct devfreq_dev_status {
1: + long unsigned int total_time;
1: + long unsigned int busy_time;
1: + long unsigned int current_frequency;
1: + void *private_data;
1: +};
1: +
1: +struct trace_event_raw_thermal_temperature {
1: + struct trace_entry ent;
1: + u32 __data_loc_thermal_zone;
1: + int id;
1: + int temp_prev;
1: + int temp;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cdev_update {
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + long unsigned int target;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_thermal_zone_trip {
1: + struct trace_entry ent;
1: + u32 __data_loc_thermal_zone;
1: + int id;
1: + int trip;
1: + enum thermal_trip_type trip_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_thermal_power_cpu_get_power {
1: + struct trace_entry ent;
1: + u32 __data_loc_cpumask;
1: + long unsigned int freq;
1: + u32 __data_loc_load;
1: + size_t load_len;
1: + u32 dynamic_power;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_thermal_power_cpu_limit {
1: + struct trace_entry ent;
1: + u32 __data_loc_cpumask;
1: + unsigned int freq;
1: + long unsigned int cdev_state;
1: + u32 power;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_thermal_power_devfreq_get_power {
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + long unsigned int freq;
1: + u32 load;
1: + u32 dynamic_power;
1: + u32 static_power;
1: + u32 power;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_thermal_power_devfreq_limit {
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + unsigned int freq;
1: + long unsigned int cdev_state;
1: + u32 power;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_temperature {
1: + u32 thermal_zone;
1: +};
1: +
1: +struct trace_event_data_offsets_cdev_update {
1: + u32 type;
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_zone_trip {
1: + u32 thermal_zone;
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_power_cpu_get_power {
1: + u32 cpumask;
1: + u32 load;
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_power_cpu_limit {
1: + u32 cpumask;
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_power_devfreq_get_power {
1: + u32 type;
1: +};
1: +
1: +struct trace_event_data_offsets_thermal_power_devfreq_limit {
1: + u32 type;
1: +};
1: +
1: +typedef void (*btf_trace_thermal_temperature)(void *, struct thermal_zone_device *);
1: +
1: +typedef void (*btf_trace_cdev_update)(void *, struct thermal_cooling_device *, long unsigned int);
1: +
1: +typedef void (*btf_trace_thermal_zone_trip)(void *, struct thermal_zone_device *, int, enum thermal_trip_type);
1: +
1: +typedef void (*btf_trace_thermal_power_cpu_get_power)(void *, const struct cpumask *, long unsigned int, u32 *, size_t, u32);
1: +
1: +typedef void (*btf_trace_thermal_power_cpu_limit)(void *, const struct cpumask *, unsigned int, long unsigned int, u32);
1: +
1: +typedef void (*btf_trace_thermal_power_devfreq_get_power)(void *, struct thermal_cooling_device *, struct devfreq_dev_status *, long unsigned int, u32, u32, u32);
1: +
1: +typedef void (*btf_trace_thermal_power_devfreq_limit)(void *, struct thermal_cooling_device *, long unsigned int, long unsigned int, u32);
1: +
1: +struct thermal_instance {
1: + int id;
1: + char name[20];
1: + struct thermal_zone_device *tz;
1: + struct thermal_cooling_device *cdev;
1: + int trip;
1: + bool initialized;
1: + long unsigned int upper;
1: + long unsigned int lower;
1: + long unsigned int target;
1: + char attr_name[20];
1: + struct device_attribute attr;
1: + char weight_attr_name[20];
1: + struct device_attribute weight_attr;
1: + struct list_head tz_node;
1: + struct list_head cdev_node;
1: + unsigned int weight;
1: +};
1: +
1: +struct genl_dumpit_info {
1: + const struct genl_family *family;
1: + struct genl_ops op;
1: + struct nlattr **attrs;
1: +};
1: +
1: +enum thermal_genl_attr {
1: + THERMAL_GENL_ATTR_UNSPEC = 0,
1: + THERMAL_GENL_ATTR_TZ = 1,
1: + THERMAL_GENL_ATTR_TZ_ID = 2,
1: + THERMAL_GENL_ATTR_TZ_TEMP = 3,
1: + THERMAL_GENL_ATTR_TZ_TRIP = 4,
1: + THERMAL_GENL_ATTR_TZ_TRIP_ID = 5,
1: + THERMAL_GENL_ATTR_TZ_TRIP_TYPE = 6,
1: + THERMAL_GENL_ATTR_TZ_TRIP_TEMP = 7,
1: + THERMAL_GENL_ATTR_TZ_TRIP_HYST = 8,
1: + THERMAL_GENL_ATTR_TZ_MODE = 9,
1: + THERMAL_GENL_ATTR_TZ_NAME = 10,
1: + THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT = 11,
1: + THERMAL_GENL_ATTR_TZ_GOV = 12,
1: + THERMAL_GENL_ATTR_TZ_GOV_NAME = 13,
1: + THERMAL_GENL_ATTR_CDEV = 14,
1: + THERMAL_GENL_ATTR_CDEV_ID = 15,
1: + THERMAL_GENL_ATTR_CDEV_CUR_STATE = 16,
1: + THERMAL_GENL_ATTR_CDEV_MAX_STATE = 17,
1: + THERMAL_GENL_ATTR_CDEV_NAME = 18,
1: + THERMAL_GENL_ATTR_GOV_NAME = 19,
1: + __THERMAL_GENL_ATTR_MAX = 20,
1: +};
1: +
1: +enum thermal_genl_sampling {
1: + THERMAL_GENL_SAMPLING_TEMP = 0,
1: + __THERMAL_GENL_SAMPLING_MAX = 1,
1: +};
1: +
1: +enum thermal_genl_event {
1: + THERMAL_GENL_EVENT_UNSPEC = 0,
1: + THERMAL_GENL_EVENT_TZ_CREATE = 1,
1: + THERMAL_GENL_EVENT_TZ_DELETE = 2,
1: + THERMAL_GENL_EVENT_TZ_DISABLE = 3,
1: + THERMAL_GENL_EVENT_TZ_ENABLE = 4,
1: + THERMAL_GENL_EVENT_TZ_TRIP_UP = 5,
1: + THERMAL_GENL_EVENT_TZ_TRIP_DOWN = 6,
1: + THERMAL_GENL_EVENT_TZ_TRIP_CHANGE = 7,
1: + THERMAL_GENL_EVENT_TZ_TRIP_ADD = 8,
1: + THERMAL_GENL_EVENT_TZ_TRIP_DELETE = 9,
1: + THERMAL_GENL_EVENT_CDEV_ADD = 10,
1: + THERMAL_GENL_EVENT_CDEV_DELETE = 11,
1: + THERMAL_GENL_EVENT_CDEV_STATE_UPDATE = 12,
1: + THERMAL_GENL_EVENT_TZ_GOV_CHANGE = 13,
1: + __THERMAL_GENL_EVENT_MAX = 14,
1: +};
1: +
1: +enum thermal_genl_cmd {
1: + THERMAL_GENL_CMD_UNSPEC = 0,
1: + THERMAL_GENL_CMD_TZ_GET_ID = 1,
1: + THERMAL_GENL_CMD_TZ_GET_TRIP = 2,
1: + THERMAL_GENL_CMD_TZ_GET_TEMP = 3,
1: + THERMAL_GENL_CMD_TZ_GET_GOV = 4,
1: + THERMAL_GENL_CMD_TZ_GET_MODE = 5,
1: + THERMAL_GENL_CMD_CDEV_GET = 6,
1: + __THERMAL_GENL_CMD_MAX = 7,
1: +};
1: +
1: +struct param {
1: + struct nlattr **attrs;
1: + struct sk_buff *msg;
1: + const char *name;
1: + int tz_id;
1: + int cdev_id;
1: + int trip_id;
1: + int trip_temp;
1: + int trip_type;
1: + int trip_hyst;
1: + int temp;
1: + int cdev_state;
1: + int cdev_max_state;
1: +};
1: +
1: +typedef int (*cb_t)(struct param *);
1: +
1: +struct thermal_zone_of_device_ops {
1: + int (*get_temp)(void *, int *);
1: + int (*get_trend)(void *, int, enum thermal_trend *);
1: + int (*set_trips)(void *, int, int);
1: + int (*set_emul_temp)(void *, int);
1: + int (*set_trip_temp)(void *, int, int);
1: +};
1: +
1: +struct thermal_trip {
1: + struct device_node *np;
1: + int temperature;
1: + int hysteresis;
1: + enum thermal_trip_type type;
1: +};
1: +
1: +struct __thermal_cooling_bind_param {
1: + struct device_node *cooling_device;
1: + long unsigned int min;
1: + long unsigned int max;
1: +};
1: +
1: +struct __thermal_bind_params {
1: + struct __thermal_cooling_bind_param *tcbp;
1: + unsigned int count;
1: + unsigned int trip_id;
1: + unsigned int usage;
1: +};
1: +
1: +struct __thermal_zone {
1: + int passive_delay;
1: + int polling_delay;
1: + int slope;
1: + int offset;
1: + int ntrips;
1: + struct thermal_trip *trips;
1: + int num_tbps;
1: + struct __thermal_bind_params *tbps;
1: + void *sensor_data;
1: + const struct thermal_zone_of_device_ops *ops;
1: +};
1: +
1: +struct time_in_idle {
1: + u64 time;
1: + u64 timestamp;
1: +};
1: +
1: +struct cpufreq_cooling_device {
1: + int id;
1: + u32 last_load;
1: + unsigned int cpufreq_state;
1: + unsigned int max_level;
1: + struct em_perf_domain *em;
1: + struct cpufreq_policy *policy;
1: + struct list_head node;
1: + struct time_in_idle *idle_time;
1: + struct freq_qos_request qos_req;
1: +};
1: +
1: +enum devfreq_timer {
1: + DEVFREQ_TIMER_DEFERRABLE = 0,
1: + DEVFREQ_TIMER_DELAYED = 1,
1: + DEVFREQ_TIMER_NUM = 2,
1: +};
1: +
1: +struct devfreq_dev_profile {
1: + long unsigned int initial_freq;
1: + unsigned int polling_ms;
1: + enum devfreq_timer timer;
1: + int (*target)(struct device *, long unsigned int *, u32);
1: + int (*get_dev_status)(struct device *, struct devfreq_dev_status *);
1: + int (*get_cur_freq)(struct device *, long unsigned int *);
1: + void (*exit)(struct device *);
1: + long unsigned int *freq_table;
1: + unsigned int max_state;
1: +};
1: +
1: +struct devfreq_stats {
1: + unsigned int total_trans;
1: + unsigned int *trans_table;
1: + u64 *time_in_state;
1: + u64 last_update;
1: +};
1: +
1: +struct devfreq_governor;
1: +
1: +struct devfreq {
1: + struct list_head node;
1: + struct mutex lock;
1: + struct device dev;
1: + struct devfreq_dev_profile *profile;
1: + const struct devfreq_governor *governor;
1: + char governor_name[16];
1: + struct notifier_block nb;
1: + struct delayed_work work;
1: + long unsigned int previous_freq;
1: + struct devfreq_dev_status last_status;
1: + void *data;
1: + struct dev_pm_qos_request user_min_freq_req;
1: + struct dev_pm_qos_request user_max_freq_req;
1: + long unsigned int scaling_min_freq;
1: + long unsigned int scaling_max_freq;
1: + bool stop_polling;
1: + long unsigned int suspend_freq;
1: + long unsigned int resume_freq;
1: + atomic_t suspend_count;
1: + struct devfreq_stats stats;
1: + struct srcu_notifier_head transition_notifier_list;
1: + struct notifier_block nb_min;
1: + struct notifier_block nb_max;
1: +};
1: +
1: +struct devfreq_governor {
1: + struct list_head node;
1: + const char name[16];
1: + const unsigned int immutable;
1: + const unsigned int interrupt_driven;
1: + int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: + int (*event_handler)(struct devfreq *, unsigned int, void *);
1: +};
1: +
1: +struct devfreq_cooling_power {
1: + long unsigned int (*get_static_power)(struct devfreq *, long unsigned int);
1: + long unsigned int (*get_dynamic_power)(struct devfreq *, long unsigned int, long unsigned int);
1: + int (*get_real_power)(struct devfreq *, u32 *, long unsigned int, long unsigned int);
1: + long unsigned int dyn_power_coeff;
1: +};
1: +
1: +struct devfreq_cooling_device {
1: + int id;
1: + struct thermal_cooling_device *cdev;
1: + struct devfreq *devfreq;
1: + long unsigned int cooling_state;
1: + u32 *power_table;
1: + u32 *freq_table;
1: + size_t freq_table_size;
1: + struct devfreq_cooling_power *power_ops;
1: + u32 res_util;
1: + int capped_state;
1: + struct dev_pm_qos_request req_max_freq;
1: +};
1: +
1: +struct amlogic_thermal_soc_calib_data {
1: + int A;
1: + int B;
1: + int m;
1: + int n;
1: +};
1: +
1: +struct amlogic_thermal_data {
1: + int u_efuse_off;
1: + const struct amlogic_thermal_soc_calib_data *calibration_parameters;
1: + const struct regmap_config *regmap_config;
1: +};
1: +
1: +struct amlogic_thermal {
1: + struct platform_device *pdev;
1: + const struct amlogic_thermal_data *data;
1: + struct regmap *regmap;
1: + struct regmap *sec_ao_map;
1: + struct clk *clk;
1: + struct thermal_zone_device *tzd;
1: + u32 trim_info;
1: +};
1: +
1: +struct watchdog_info {
1: + __u32 options;
1: + __u32 firmware_version;
1: + __u8 identity[32];
1: +};
1: +
1: +struct watchdog_device;
1: +
1: +struct watchdog_ops {
1: + struct module *owner;
1: + int (*start)(struct watchdog_device *);
1: + int (*stop)(struct watchdog_device *);
1: + int (*ping)(struct watchdog_device *);
1: + unsigned int (*status)(struct watchdog_device *);
1: + int (*set_timeout)(struct watchdog_device *, unsigned int);
1: + int (*set_pretimeout)(struct watchdog_device *, unsigned int);
1: + unsigned int (*get_timeleft)(struct watchdog_device *);
1: + int (*restart)(struct watchdog_device *, long unsigned int, void *);
1: + long int (*ioctl)(struct watchdog_device *, unsigned int, long unsigned int);
1: +};
1: +
1: +struct watchdog_governor;
1: +
1: +struct watchdog_core_data;
1: +
1: +struct watchdog_device {
1: + int id;
1: + struct device *parent;
1: + const struct attribute_group **groups;
1: + const struct watchdog_info *info;
1: + const struct watchdog_ops *ops;
1: + const struct watchdog_governor *gov;
1: + unsigned int bootstatus;
1: + unsigned int timeout;
1: + unsigned int pretimeout;
1: + unsigned int min_timeout;
1: + unsigned int max_timeout;
1: + unsigned int min_hw_heartbeat_ms;
1: + unsigned int max_hw_heartbeat_ms;
1: + struct notifier_block reboot_nb;
1: + struct notifier_block restart_nb;
1: + void *driver_data;
1: + struct watchdog_core_data *wd_data;
1: + long unsigned int status;
1: + struct list_head deferred;
1: +};
1: +
1: +struct watchdog_governor {
1: + const char name[20];
1: + void (*pretimeout)(struct watchdog_device *);
1: +};
1: +
1: +struct watchdog_core_data {
1: + struct device dev;
1: + struct cdev cdev;
1: + struct watchdog_device *wdd;
1: + struct mutex lock;
1: + ktime_t last_keepalive;
1: + ktime_t last_hw_keepalive;
1: + ktime_t open_deadline;
1: + struct hrtimer timer;
1: + struct kthread_work work;
1: + long unsigned int status;
1: +};
1: +
1: +struct mdp_device_descriptor_s {
1: + __u32 number;
1: + __u32 major;
1: + __u32 minor;
1: + __u32 raid_disk;
1: + __u32 state;
1: + __u32 reserved[27];
1: +};
1: +
1: +typedef struct mdp_device_descriptor_s mdp_disk_t;
1: +
1: +struct mdp_superblock_s {
1: + __u32 md_magic;
1: + __u32 major_version;
1: + __u32 minor_version;
1: + __u32 patch_version;
1: + __u32 gvalid_words;
1: + __u32 set_uuid0;
1: + __u32 ctime;
1: + __u32 level;
1: + __u32 size;
1: + __u32 nr_disks;
1: + __u32 raid_disks;
1: + __u32 md_minor;
1: + __u32 not_persistent;
1: + __u32 set_uuid1;
1: + __u32 set_uuid2;
1: + __u32 set_uuid3;
1: + __u32 gstate_creserved[16];
1: + __u32 utime;
1: + __u32 state;
1: + __u32 active_disks;
1: + __u32 working_disks;
1: + __u32 failed_disks;
1: + __u32 spare_disks;
1: + __u32 sb_csum;
1: + __u32 events_lo;
1: + __u32 events_hi;
1: + __u32 cp_events_lo;
1: + __u32 cp_events_hi;
1: + __u32 recovery_cp;
1: + __u64 reshape_position;
1: + __u32 new_level;
1: + __u32 delta_disks;
1: + __u32 new_layout;
1: + __u32 new_chunk;
1: + __u32 gstate_sreserved[14];
1: + __u32 layout;
1: + __u32 chunk_size;
1: + __u32 root_pv;
1: + __u32 root_block;
1: + __u32 pstate_reserved[60];
1: + mdp_disk_t disks[27];
1: + __u32 reserved[0];
1: + mdp_disk_t this_disk;
1: +};
1: +
1: +typedef struct mdp_superblock_s mdp_super_t;
1: +
1: +struct mdp_superblock_1 {
1: + __le32 magic;
1: + __le32 major_version;
1: + __le32 feature_map;
1: + __le32 pad0;
1: + __u8 set_uuid[16];
1: + char set_name[32];
1: + __le64 ctime;
1: + __le32 level;
1: + __le32 layout;
1: + __le64 size;
1: + __le32 chunksize;
1: + __le32 raid_disks;
1: + union {
1: + __le32 bitmap_offset;
1: + struct {
1: + __le16 offset;
1: + __le16 size;
1: + } ppl;
1: + };
1: + __le32 new_level;
1: + __le64 reshape_position;
1: + __le32 delta_disks;
1: + __le32 new_layout;
1: + __le32 new_chunk;
1: + __le32 new_offset;
1: + __le64 data_offset;
1: + __le64 data_size;
1: + __le64 super_offset;
1: + union {
1: + __le64 recovery_offset;
1: + __le64 journal_tail;
1: + };
1: + __le32 dev_number;
1: + __le32 cnt_corrected_read;
1: + __u8 device_uuid[16];
1: + __u8 devflags;
1: + __u8 bblog_shift;
1: + __le16 bblog_size;
1: + __le32 bblog_offset;
1: + __le64 utime;
1: + __le64 events;
1: + __le64 resync_offset;
1: + __le32 sb_csum;
1: + __le32 max_dev;
1: + __u8 pad3[32];
1: + __le16 dev_roles[0];
1: +};
1: +
1: +struct mdu_version_s {
1: + int major;
1: + int minor;
1: + int patchlevel;
1: +};
1: +
1: +typedef struct mdu_version_s mdu_version_t;
1: +
1: +struct mdu_array_info_s {
1: + int major_version;
1: + int minor_version;
1: + int patch_version;
1: + unsigned int ctime;
1: + int level;
1: + int size;
1: + int nr_disks;
1: + int raid_disks;
1: + int md_minor;
1: + int not_persistent;
1: + unsigned int utime;
1: + int state;
1: + int active_disks;
1: + int working_disks;
1: + int failed_disks;
1: + int spare_disks;
1: + int layout;
1: + int chunk_size;
1: +};
1: +
1: +typedef struct mdu_array_info_s mdu_array_info_t;
1: +
1: +struct mdu_disk_info_s {
1: + int number;
1: + int major;
1: + int minor;
1: + int raid_disk;
1: + int state;
1: +};
1: +
1: +typedef struct mdu_disk_info_s mdu_disk_info_t;
1: +
1: +struct mdu_bitmap_file_s {
1: + char pathname[4096];
1: +};
1: +
1: +typedef struct mdu_bitmap_file_s mdu_bitmap_file_t;
1: +
1: +struct mddev;
1: +
1: +struct md_rdev;
1: +
1: +struct md_cluster_operations {
1: + int (*join)(struct mddev *, int);
1: + int (*leave)(struct mddev *);
1: + int (*slot_number)(struct mddev *);
1: + int (*resync_info_update)(struct mddev *, sector_t, sector_t);
1: + void (*resync_info_get)(struct mddev *, sector_t *, sector_t *);
1: + int (*metadata_update_start)(struct mddev *);
1: + int (*metadata_update_finish)(struct mddev *);
1: + void (*metadata_update_cancel)(struct mddev *);
1: + int (*resync_start)(struct mddev *);
1: + int (*resync_finish)(struct mddev *);
1: + int (*area_resyncing)(struct mddev *, int, sector_t, sector_t);
1: + int (*add_new_disk)(struct mddev *, struct md_rdev *);
1: + void (*add_new_disk_cancel)(struct mddev *);
1: + int (*new_disk_ack)(struct mddev *, bool);
1: + int (*remove_disk)(struct mddev *, struct md_rdev *);
1: + void (*load_bitmaps)(struct mddev *, int);
1: + int (*gather_bitmaps)(struct md_rdev *);
1: + int (*resize_bitmaps)(struct mddev *, sector_t, sector_t);
1: + int (*lock_all_bitmaps)(struct mddev *);
1: + void (*unlock_all_bitmaps)(struct mddev *);
1: + void (*update_size)(struct mddev *, sector_t);
1: +};
1: +
1: +struct md_cluster_info;
1: +
1: +struct md_personality;
1: +
1: +struct md_thread;
1: +
1: +struct bitmap;
1: +
1: +struct mddev {
1: + void *private;
1: + struct md_personality *pers;
1: + dev_t unit;
1: + int md_minor;
1: + struct list_head disks;
1: + long unsigned int flags;
1: + long unsigned int sb_flags;
1: + int suspended;
1: + atomic_t active_io;
1: + int ro;
1: + int sysfs_active;
1: + struct gendisk *gendisk;
1: + struct kobject kobj;
1: + int hold_active;
1: + int major_version;
1: + int minor_version;
1: + int patch_version;
1: + int persistent;
1: + int external;
1: + char metadata_type[17];
1: + int chunk_sectors;
1: + time64_t ctime;
1: + time64_t utime;
1: + int level;
1: + int layout;
1: + char clevel[16];
1: + int raid_disks;
1: + int max_disks;
1: + sector_t dev_sectors;
1: + sector_t array_sectors;
1: + int external_size;
1: + __u64 events;
1: + int can_decrease_events;
1: + char uuid[16];
1: + sector_t reshape_position;
1: + int delta_disks;
1: + int new_level;
1: + int new_layout;
1: + int new_chunk_sectors;
1: + int reshape_backwards;
1: + struct md_thread *thread;
1: + struct md_thread *sync_thread;
1: + char *last_sync_action;
1: + sector_t curr_resync;
1: + sector_t curr_resync_completed;
1: + long unsigned int resync_mark;
1: + sector_t resync_mark_cnt;
1: + sector_t curr_mark_cnt;
1: + sector_t resync_max_sectors;
1: + atomic64_t resync_mismatches;
1: + sector_t suspend_lo;
1: + sector_t suspend_hi;
1: + int sync_speed_min;
1: + int sync_speed_max;
1: + int parallel_resync;
1: + int ok_start_degraded;
1: + long unsigned int recovery;
1: + int recovery_disabled;
1: + int in_sync;
1: + struct mutex open_mutex;
1: + struct mutex reconfig_mutex;
1: + atomic_t active;
1: + atomic_t openers;
1: + int changed;
1: + int degraded;
1: + atomic_t recovery_active;
1: + wait_queue_head_t recovery_wait;
1: + sector_t recovery_cp;
1: + sector_t resync_min;
1: + sector_t resync_max;
1: + struct kernfs_node *sysfs_state;
1: + struct kernfs_node *sysfs_action;
1: + struct kernfs_node *sysfs_completed;
1: + struct kernfs_node *sysfs_degraded;
1: + struct kernfs_node *sysfs_level;
1: + struct work_struct del_work;
1: + spinlock_t lock;
1: + wait_queue_head_t sb_wait;
1: + atomic_t pending_writes;
1: + unsigned int safemode;
1: + unsigned int safemode_delay;
1: + struct timer_list safemode_timer;
1: + struct percpu_ref writes_pending;
1: + int sync_checkers;
1: + struct request_queue *queue;
1: + struct bitmap *bitmap;
1: + struct {
1: + struct file *file;
1: + loff_t offset;
1: + long unsigned int space;
1: + loff_t default_offset;
1: + long unsigned int default_space;
1: + struct mutex mutex;
1: + long unsigned int chunksize;
1: + long unsigned int daemon_sleep;
1: + long unsigned int max_write_behind;
1: + int external;
1: + int nodes;
1: + char cluster_name[64];
1: + } bitmap_info;
1: + atomic_t max_corr_read_errors;
1: + struct list_head all_mddevs;
1: + struct attribute_group *to_remove;
1: + struct bio_set bio_set;
1: + struct bio_set sync_set;
1: + mempool_t md_io_pool;
1: + struct bio *flush_bio;
1: + atomic_t flush_pending;
1: + ktime_t start_flush;
1: + ktime_t last_flush;
1: + struct work_struct flush_work;
1: + struct work_struct event_work;
1: + mempool_t *serial_info_pool;
1: + void (*sync_super)(struct mddev *, struct md_rdev *);
1: + struct md_cluster_info *cluster_info;
1: + unsigned int good_device_nr;
1: + unsigned int noio_flag;
1: + bool has_superblocks: 1;
1: + bool fail_last_dev: 1;
1: + bool serialize_policy: 1;
1: +};
1: +
1: +struct serial_in_rdev;
1: +
1: +struct md_rdev {
1: + struct list_head same_set;
1: + sector_t sectors;
1: + struct mddev *mddev;
1: + int last_events;
1: + struct block_device *meta_bdev;
1: + struct block_device *bdev;
1: + struct page *sb_page;
1: + struct page *bb_page;
1: + int sb_loaded;
1: + __u64 sb_events;
1: + sector_t data_offset;
1: + sector_t new_data_offset;
1: + sector_t sb_start;
1: + int sb_size;
1: + int preferred_minor;
1: + struct kobject kobj;
1: + long unsigned int flags;
1: + wait_queue_head_t blocked_wait;
1: + int desc_nr;
1: + int raid_disk;
1: + int new_raid_disk;
1: + int saved_raid_disk;
1: + union {
1: + sector_t recovery_offset;
1: + sector_t journal_tail;
1: + };
1: + atomic_t nr_pending;
1: + atomic_t read_errors;
1: + time64_t last_read_error;
1: + atomic_t corrected_errors;
1: + struct serial_in_rdev *serial;
1: + struct work_struct del_work;
1: + struct kernfs_node *sysfs_state;
1: + struct kernfs_node *sysfs_unack_badblocks;
1: + struct kernfs_node *sysfs_badblocks;
1: + struct badblocks badblocks;
1: + struct {
1: + short int offset;
1: + unsigned int size;
1: + sector_t sector;
1: + } ppl;
1: +};
1: +
1: +struct serial_in_rdev {
1: + struct rb_root_cached serial_rb;
1: + spinlock_t serial_lock;
1: + wait_queue_head_t serial_io_wait;
1: +};
1: +
1: +enum flag_bits {
1: + Faulty = 0,
1: + In_sync = 1,
1: + Bitmap_sync = 2,
1: + WriteMostly = 3,
1: + AutoDetected = 4,
1: + Blocked = 5,
1: + WriteErrorSeen = 6,
1: + FaultRecorded = 7,
1: + BlockedBadBlocks = 8,
1: + WantReplacement = 9,
1: + Replacement = 10,
1: + Candidate = 11,
1: + Journal = 12,
1: + ClusterRemove = 13,
1: + RemoveSynchronized = 14,
1: + ExternalBbl = 15,
1: + FailFast = 16,
1: + LastDev = 17,
1: + CollisionCheck = 18,
1: +};
1: +
1: +enum mddev_flags {
1: + MD_ARRAY_FIRST_USE = 0,
1: + MD_CLOSING = 1,
1: + MD_JOURNAL_CLEAN = 2,
1: + MD_HAS_JOURNAL = 3,
1: + MD_CLUSTER_RESYNC_LOCKED = 4,
1: + MD_FAILFAST_SUPPORTED = 5,
1: + MD_HAS_PPL = 6,
1: + MD_HAS_MULTIPLE_PPLS = 7,
1: + MD_ALLOW_SB_UPDATE = 8,
1: + MD_UPDATING_SB = 9,
1: + MD_NOT_READY = 10,
1: + MD_BROKEN = 11,
1: +};
1: +
1: +enum mddev_sb_flags {
1: + MD_SB_CHANGE_DEVS = 0,
1: + MD_SB_CHANGE_CLEAN = 1,
1: + MD_SB_CHANGE_PENDING = 2,
1: + MD_SB_NEED_REWRITE = 3,
1: +};
1: +
1: +struct md_personality {
1: + char *name;
1: + int level;
1: + struct list_head list;
1: + struct module *owner;
1: + bool (*make_request)(struct mddev *, struct bio *);
1: + int (*run)(struct mddev *);
1: + int (*start)(struct mddev *);
1: + void (*free)(struct mddev *, void *);
1: + void (*status)(struct seq_file *, struct mddev *);
1: + void (*error_handler)(struct mddev *, struct md_rdev *);
1: + int (*hot_add_disk)(struct mddev *, struct md_rdev *);
1: + int (*hot_remove_disk)(struct mddev *, struct md_rdev *);
1: + int (*spare_active)(struct mddev *);
1: + sector_t (*sync_request)(struct mddev *, sector_t, int *);
1: + int (*resize)(struct mddev *, sector_t);
1: + sector_t (*size)(struct mddev *, sector_t, int);
1: + int (*check_reshape)(struct mddev *);
1: + int (*start_reshape)(struct mddev *);
1: + void (*finish_reshape)(struct mddev *);
1: + void (*update_reshape_pos)(struct mddev *);
1: + void (*quiesce)(struct mddev *, int);
1: + void * (*takeover)(struct mddev *);
1: + int (*change_consistency_policy)(struct mddev *, const char *);
1: +};
1: +
1: +struct md_thread {
1: + void (*run)(struct md_thread *);
1: + struct mddev *mddev;
1: + wait_queue_head_t wqueue;
1: + long unsigned int flags;
1: + struct task_struct *tsk;
1: + long unsigned int timeout;
1: + void *private;
1: +};
1: +
1: +struct bitmap_page;
1: +
1: +struct bitmap_counts {
1: + spinlock_t lock;
1: + struct bitmap_page *bp;
1: + long unsigned int pages;
1: + long unsigned int missing_pages;
1: + long unsigned int chunkshift;
1: + long unsigned int chunks;
1: +};
1: +
1: +struct bitmap_storage {
1: + struct file *file;
1: + struct page *sb_page;
1: + struct page **filemap;
1: + long unsigned int *filemap_attr;
1: + long unsigned int file_pages;
1: + long unsigned int bytes;
1: +};
1: +
1: +struct bitmap {
1: + struct bitmap_counts counts;
1: + struct mddev *mddev;
1: + __u64 events_cleared;
1: + int need_sync;
1: + struct bitmap_storage storage;
1: + long unsigned int flags;
1: + int allclean;
1: + atomic_t behind_writes;
1: + long unsigned int behind_writes_used;
1: + long unsigned int daemon_lastrun;
1: + long unsigned int last_end_sync;
1: + atomic_t pending_writes;
1: + wait_queue_head_t write_wait;
1: + wait_queue_head_t overflow_wait;
1: + wait_queue_head_t behind_wait;
1: + struct kernfs_node *sysfs_can_clear;
1: + int cluster_slot;
1: +};
1: +
1: +enum recovery_flags {
1: + MD_RECOVERY_RUNNING = 0,
1: + MD_RECOVERY_SYNC = 1,
1: + MD_RECOVERY_RECOVER = 2,
1: + MD_RECOVERY_INTR = 3,
1: + MD_RECOVERY_DONE = 4,
1: + MD_RECOVERY_NEEDED = 5,
1: + MD_RECOVERY_REQUESTED = 6,
1: + MD_RECOVERY_CHECK = 7,
1: + MD_RECOVERY_RESHAPE = 8,
1: + MD_RECOVERY_FROZEN = 9,
1: + MD_RECOVERY_ERROR = 10,
1: + MD_RECOVERY_WAIT = 11,
1: + MD_RESYNCING_REMOTE = 12,
1: +};
1: +
1: +struct md_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct mddev *, char *);
1: + ssize_t (*store)(struct mddev *, const char *, size_t);
1: +};
1: +
1: +struct bitmap_page {
1: + char *map;
1: + unsigned int hijacked: 1;
1: + unsigned int pending: 1;
1: + unsigned int count: 30;
1: +};
1: +
1: +struct md_io {
1: + struct mddev *mddev;
1: + bio_end_io_t *orig_bi_end_io;
1: + void *orig_bi_private;
1: + long unsigned int start_time;
1: + struct hd_struct *part;
1: +};
1: +
1: +struct super_type {
1: + char *name;
1: + struct module *owner;
1: + int (*load_super)(struct md_rdev *, struct md_rdev *, int);
1: + int (*validate_super)(struct mddev *, struct md_rdev *);
1: + void (*sync_super)(struct mddev *, struct md_rdev *);
1: + long long unsigned int (*rdev_size_change)(struct md_rdev *, sector_t);
1: + int (*allow_new_offset)(struct md_rdev *, long long unsigned int);
1: +};
1: +
1: +struct rdev_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct md_rdev *, char *);
1: + ssize_t (*store)(struct md_rdev *, const char *, size_t);
1: +};
1: +
1: +enum array_state {
1: + clear = 0,
1: + inactive = 1,
1: + suspended = 2,
1: + readonly = 3,
1: + read_auto = 4,
1: + clean = 5,
1: + active = 6,
1: + write_pending = 7,
1: + active_idle = 8,
1: + broken = 9,
1: + bad_word = 10,
1: +};
1: +
1: +struct detected_devices_node {
1: + struct list_head list;
1: + dev_t dev;
1: +};
1: +
1: +typedef __u16 bitmap_counter_t;
1: +
1: +enum bitmap_state {
1: + BITMAP_STALE = 1,
1: + BITMAP_WRITE_ERROR = 2,
1: + BITMAP_HOSTENDIAN = 15,
1: +};
1: +
1: +struct bitmap_super_s {
1: + __le32 magic;
1: + __le32 version;
1: + __u8 uuid[16];
1: + __le64 events;
1: + __le64 events_cleared;
1: + __le64 sync_size;
1: + __le32 state;
1: + __le32 chunksize;
1: + __le32 daemon_sleep;
1: + __le32 write_behind;
1: + __le32 sectors_reserved;
1: + __le32 nodes;
1: + __u8 cluster_name[64];
1: + __u8 pad[120];
1: +};
1: +
1: +typedef struct bitmap_super_s bitmap_super_t;
1: +
1: +enum bitmap_page_attr {
1: + BITMAP_PAGE_DIRTY = 0,
1: + BITMAP_PAGE_PENDING = 1,
1: + BITMAP_PAGE_NEEDWRITE = 2,
1: +};
1: +
1: +struct md_setup_args {
1: + int minor;
1: + int partitioned;
1: + int level;
1: + int chunk;
1: + char *device_names;
1: +};
1: +
1: +struct dm_kobject_holder {
1: + struct kobject kobj;
1: + struct completion completion;
1: +};
1: +
1: +enum dev_type {
1: + DEV_UNKNOWN = 0,
1: + DEV_X1 = 1,
1: + DEV_X2 = 2,
1: + DEV_X4 = 3,
1: + DEV_X8 = 4,
1: + DEV_X16 = 5,
1: + DEV_X32 = 6,
1: + DEV_X64 = 7,
1: +};
1: +
1: +enum hw_event_mc_err_type {
1: + HW_EVENT_ERR_CORRECTED = 0,
1: + HW_EVENT_ERR_UNCORRECTED = 1,
1: + HW_EVENT_ERR_DEFERRED = 2,
1: + HW_EVENT_ERR_FATAL = 3,
1: + HW_EVENT_ERR_INFO = 4,
1: +};
1: +
1: +enum mem_type {
1: + MEM_EMPTY = 0,
1: + MEM_RESERVED = 1,
1: + MEM_UNKNOWN = 2,
1: + MEM_FPM = 3,
1: + MEM_EDO = 4,
1: + MEM_BEDO = 5,
1: + MEM_SDR = 6,
1: + MEM_RDR = 7,
1: + MEM_DDR = 8,
1: + MEM_RDDR = 9,
1: + MEM_RMBS = 10,
1: + MEM_DDR2 = 11,
1: + MEM_FB_DDR2 = 12,
1: + MEM_RDDR2 = 13,
1: + MEM_XDR = 14,
1: + MEM_DDR3 = 15,
1: + MEM_RDDR3 = 16,
1: + MEM_LRDDR3 = 17,
1: + MEM_DDR4 = 18,
1: + MEM_RDDR4 = 19,
1: + MEM_LRDDR4 = 20,
1: + MEM_NVDIMM = 21,
1: +};
1: +
1: +enum edac_type {
1: + EDAC_UNKNOWN = 0,
1: + EDAC_NONE = 1,
1: + EDAC_RESERVED = 2,
1: + EDAC_PARITY = 3,
1: + EDAC_EC = 4,
1: + EDAC_SECDED = 5,
1: + EDAC_S2ECD2ED = 6,
1: + EDAC_S4ECD4ED = 7,
1: + EDAC_S8ECD8ED = 8,
1: + EDAC_S16ECD16ED = 9,
1: +};
1: +
1: +enum scrub_type {
1: + SCRUB_UNKNOWN = 0,
1: + SCRUB_NONE = 1,
1: + SCRUB_SW_PROG = 2,
1: + SCRUB_SW_SRC = 3,
1: + SCRUB_SW_PROG_SRC = 4,
1: + SCRUB_SW_TUNABLE = 5,
1: + SCRUB_HW_PROG = 6,
1: + SCRUB_HW_SRC = 7,
1: + SCRUB_HW_PROG_SRC = 8,
1: + SCRUB_HW_TUNABLE = 9,
1: +};
1: +
1: +enum edac_mc_layer_type {
1: + EDAC_MC_LAYER_BRANCH = 0,
1: + EDAC_MC_LAYER_CHANNEL = 1,
1: + EDAC_MC_LAYER_SLOT = 2,
1: + EDAC_MC_LAYER_CHIP_SELECT = 3,
1: + EDAC_MC_LAYER_ALL_MEM = 4,
1: +};
1: +
1: +struct edac_mc_layer {
1: + enum edac_mc_layer_type type;
1: + unsigned int size;
1: + bool is_virt_csrow;
1: +};
1: +
1: +struct mem_ctl_info;
1: +
1: +struct dimm_info {
1: + struct device dev;
1: + char label[32];
1: + unsigned int location[3];
1: + struct mem_ctl_info *mci;
1: + unsigned int idx;
1: + u32 grain;
1: + enum dev_type dtype;
1: + enum mem_type mtype;
1: + enum edac_type edac_mode;
1: + u32 nr_pages;
1: + unsigned int csrow;
1: + unsigned int cschannel;
1: + u16 smbios_handle;
1: + u32 ce_count;
1: + u32 ue_count;
1: +};
1: +
1: +struct mcidev_sysfs_attribute;
1: +
1: +struct edac_raw_error_desc {
1: + char location[256];
1: + char label[296];
1: + long int grain;
1: + u16 error_count;
1: + enum hw_event_mc_err_type type;
1: + int top_layer;
1: + int mid_layer;
1: + int low_layer;
1: + long unsigned int page_frame_number;
1: + long unsigned int offset_in_page;
1: + long unsigned int syndrome;
1: + const char *msg;
1: + const char *other_detail;
1: +};
1: +
1: +struct csrow_info;
1: +
1: +struct mem_ctl_info {
1: + struct device dev;
1: + struct bus_type *bus;
1: + struct list_head link;
1: + struct module *owner;
1: + long unsigned int mtype_cap;
1: + long unsigned int edac_ctl_cap;
1: + long unsigned int edac_cap;
1: + long unsigned int scrub_cap;
1: + enum scrub_type scrub_mode;
1: + int (*set_sdram_scrub_rate)(struct mem_ctl_info *, u32);
1: + int (*get_sdram_scrub_rate)(struct mem_ctl_info *);
1: + void (*edac_check)(struct mem_ctl_info *);
1: + long unsigned int (*ctl_page_to_phys)(struct mem_ctl_info *, long unsigned int);
1: + int mc_idx;
1: + struct csrow_info **csrows;
1: + unsigned int nr_csrows;
1: + unsigned int num_cschannel;
1: + unsigned int n_layers;
1: + struct edac_mc_layer *layers;
1: + bool csbased;
1: + unsigned int tot_dimms;
1: + struct dimm_info **dimms;
1: + struct device *pdev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + u32 ce_noinfo_count;
1: + u32 ue_noinfo_count;
1: + u32 ue_mc;
1: + u32 ce_mc;
1: + struct completion complete;
1: + const struct mcidev_sysfs_attribute *mc_driver_sysfs_attributes;
1: + struct delayed_work work;
1: + struct edac_raw_error_desc error_desc;
1: + int op_state;
1: + struct dentry *debugfs;
1: + u8 fake_inject_layer[3];
1: + bool fake_inject_ue;
1: + u16 fake_inject_count;
1: +};
1: +
1: +struct rank_info {
1: + int chan_idx;
1: + struct csrow_info *csrow;
1: + struct dimm_info *dimm;
1: + u32 ce_count;
1: +};
1: +
1: +struct csrow_info {
1: + struct device dev;
1: + long unsigned int first_page;
1: + long unsigned int last_page;
1: + long unsigned int page_mask;
1: + int csrow_idx;
1: + u32 ue_count;
1: + u32 ce_count;
1: + struct mem_ctl_info *mci;
1: + u32 nr_channels;
1: + struct rank_info **channels;
1: +};
1: +
1: +struct edac_device_counter {
1: + u32 ue_count;
1: + u32 ce_count;
1: +};
1: +
1: +struct edac_device_ctl_info;
1: +
1: +struct edac_dev_sysfs_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: +};
1: +
1: +struct edac_device_instance;
1: +
1: +struct edac_device_ctl_info {
1: + struct list_head link;
1: + struct module *owner;
1: + int dev_idx;
1: + int log_ue;
1: + int log_ce;
1: + int panic_on_ue;
1: + unsigned int poll_msec;
1: + long unsigned int delay;
1: + struct edac_dev_sysfs_attribute *sysfs_attributes;
1: + struct bus_type *edac_subsys;
1: + int op_state;
1: + struct delayed_work work;
1: + void (*edac_check)(struct edac_device_ctl_info *);
1: + struct device *dev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + struct completion removal_complete;
1: + char name[32];
1: + u32 nr_instances;
1: + struct edac_device_instance *instances;
1: + struct edac_device_counter counters;
1: + struct kobject kobj;
1: +};
1: +
1: +struct edac_device_block;
1: +
1: +struct edac_dev_sysfs_block_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: + struct edac_device_block *block;
1: + unsigned int value;
1: +};
1: +
1: +struct edac_device_block {
1: + struct edac_device_instance *instance;
1: + char name[32];
1: + struct edac_device_counter counters;
1: + int nr_attribs;
1: + struct edac_dev_sysfs_block_attribute *block_attributes;
1: + struct kobject kobj;
1: +};
1: +
1: +struct edac_device_instance {
1: + struct edac_device_ctl_info *ctl;
1: + char name[35];
1: + struct edac_device_counter counters;
1: + u32 nr_blocks;
1: + struct edac_device_block *blocks;
1: + struct kobject kobj;
1: +};
1: +
1: +struct dev_ch_attribute {
1: + struct device_attribute attr;
1: + unsigned int channel;
1: +};
1: +
1: +struct ctl_info_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: +};
1: +
1: +struct instance_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_instance *, char *);
1: + ssize_t (*store)(struct edac_device_instance *, const char *, size_t);
1: +};
1: +
1: +struct edac_pci_counter {
1: + atomic_t pe_count;
1: + atomic_t npe_count;
1: +};
1: +
1: +struct edac_pci_ctl_info {
1: + struct list_head link;
1: + int pci_idx;
1: + struct bus_type *edac_subsys;
1: + int op_state;
1: + struct delayed_work work;
1: + void (*edac_check)(struct edac_pci_ctl_info *);
1: + struct device *dev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + struct completion complete;
1: + char name[32];
1: + struct edac_pci_counter counters;
1: + struct kobject kobj;
1: +};
1: +
1: +struct edac_pci_gen_data {
1: + int edac_idx;
1: +};
1: +
1: +struct instance_attribute___2 {
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_pci_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_pci_ctl_info *, const char *, size_t);
1: +};
1: +
1: +struct edac_pci_dev_attribute {
1: + struct attribute attr;
1: + void *value;
1: + ssize_t (*show)(void *, char *);
1: + ssize_t (*store)(void *, const char *, size_t);
1: +};
1: +
1: +typedef void (*pci_parity_check_fn_t)(struct pci_dev *);
1: +
1: +enum opp_table_access {
1: + OPP_TABLE_ACCESS_UNKNOWN = 0,
1: + OPP_TABLE_ACCESS_EXCLUSIVE = 1,
1: + OPP_TABLE_ACCESS_SHARED = 2,
1: +};
1: +
1: +struct icc_path;
1: +
1: +struct dev_pm_opp___2;
1: +
1: +struct dev_pm_set_opp_data;
1: +
1: +struct opp_table___2 {
1: + struct list_head node;
1: + struct blocking_notifier_head head;
1: + struct list_head dev_list;
1: + struct list_head opp_list;
1: + struct kref kref;
1: + struct mutex lock;
1: + struct device_node *np;
1: + long unsigned int clock_latency_ns_max;
1: + unsigned int voltage_tolerance_v1;
1: + unsigned int parsed_static_opps;
1: + enum opp_table_access shared_opp;
1: + struct dev_pm_opp___2 *suspend_opp;
1: + struct mutex genpd_virt_dev_lock;
1: + struct device **genpd_virt_devs;
1: + struct opp_table___2 **required_opp_tables;
1: + unsigned int required_opp_count;
1: + unsigned int *supported_hw;
1: + unsigned int supported_hw_count;
1: + const char *prop_name;
1: + struct clk *clk;
1: + struct regulator **regulators;
1: + int regulator_count;
1: + struct icc_path **paths;
1: + unsigned int path_count;
1: + bool enabled;
1: + bool genpd_performance_state;
1: + bool is_genpd;
1: + int (*set_opp)(struct dev_pm_set_opp_data *);
1: + struct dev_pm_set_opp_data *set_opp_data;
1: + struct dentry *dentry;
1: + char dentry_name[255];
1: +};
1: +
1: +struct dev_pm_opp_supply;
1: +
1: +struct dev_pm_opp_icc_bw;
1: +
1: +struct dev_pm_opp___2 {
1: + struct list_head node;
1: + struct kref kref;
1: + bool available;
1: + bool dynamic;
1: + bool turbo;
1: + bool suspend;
1: + unsigned int pstate;
1: + long unsigned int rate;
1: + unsigned int level;
1: + struct dev_pm_opp_supply *supplies;
1: + struct dev_pm_opp_icc_bw *bandwidth;
1: + long unsigned int clock_latency_ns;
1: + struct dev_pm_opp___2 **required_opps;
1: + struct opp_table___2 *opp_table;
1: + struct device_node *np;
1: + struct dentry *dentry;
1: +};
1: +
1: +enum dev_pm_opp_event {
1: + OPP_EVENT_ADD = 0,
1: + OPP_EVENT_REMOVE = 1,
1: + OPP_EVENT_ENABLE = 2,
1: + OPP_EVENT_DISABLE = 3,
1: + OPP_EVENT_ADJUST_VOLTAGE = 4,
1: +};
1: +
1: +struct dev_pm_opp_supply {
1: + long unsigned int u_volt;
1: + long unsigned int u_volt_min;
1: + long unsigned int u_volt_max;
1: + long unsigned int u_amp;
1: +};
1: +
1: +struct dev_pm_opp_icc_bw {
1: + u32 avg;
1: + u32 peak;
1: +};
1: +
1: +struct dev_pm_opp_info {
1: + long unsigned int rate;
1: + struct dev_pm_opp_supply *supplies;
1: +};
1: +
1: +struct dev_pm_set_opp_data {
1: + struct dev_pm_opp_info old_opp;
1: + struct dev_pm_opp_info new_opp;
1: + struct regulator **regulators;
1: + unsigned int regulator_count;
1: + struct clk *clk;
1: + struct device *dev;
1: +};
1: +
1: +struct opp_device {
1: + struct list_head node;
1: + const struct device *dev;
1: + struct dentry *dentry;
1: +};
1: +
1: +struct cpufreq_policy_data {
1: + struct cpufreq_cpuinfo cpuinfo;
1: + struct cpufreq_frequency_table *freq_table;
1: + unsigned int cpu;
1: + unsigned int min;
1: + unsigned int max;
1: +};
1: +
1: +struct cpufreq_freqs {
1: + struct cpufreq_policy *policy;
1: + unsigned int old;
1: + unsigned int new;
1: + u8 flags;
1: +};
1: +
1: +struct freq_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpufreq_policy *, char *);
1: + ssize_t (*store)(struct cpufreq_policy *, const char *, size_t);
1: +};
1: +
1: +struct cpufreq_driver {
1: + char name[16];
1: + u16 flags;
1: + void *driver_data;
1: + int (*init)(struct cpufreq_policy *);
1: + int (*verify)(struct cpufreq_policy_data *);
1: + int (*setpolicy)(struct cpufreq_policy *);
1: + int (*target)(struct cpufreq_policy *, unsigned int, unsigned int);
1: + int (*target_index)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*fast_switch)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*resolve_freq)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*get_intermediate)(struct cpufreq_policy *, unsigned int);
1: + int (*target_intermediate)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*get)(unsigned int);
1: + void (*update_limits)(unsigned int);
1: + int (*bios_limit)(int, unsigned int *);
1: + int (*online)(struct cpufreq_policy *);
1: + int (*offline)(struct cpufreq_policy *);
1: + int (*exit)(struct cpufreq_policy *);
1: + void (*stop_cpu)(struct cpufreq_policy *);
1: + int (*suspend)(struct cpufreq_policy *);
1: + int (*resume)(struct cpufreq_policy *);
1: + void (*ready)(struct cpufreq_policy *);
1: + struct freq_attr **attr;
1: + bool boost_enabled;
1: + int (*set_boost)(struct cpufreq_policy *, int);
1: +};
1: +
1: +struct cpufreq_stats {
1: + unsigned int total_trans;
1: + long long unsigned int last_time;
1: + unsigned int max_state;
1: + unsigned int state_num;
1: + unsigned int last_index;
1: + u64 *time_in_state;
1: + unsigned int *freq_table;
1: + unsigned int *trans_table;
1: + unsigned int reset_pending;
1: + long long unsigned int reset_time;
1: +};
1: +
1: +struct dbs_data {
1: + struct gov_attr_set attr_set;
1: + void *tuners;
1: + unsigned int ignore_nice_load;
1: + unsigned int sampling_rate;
1: + unsigned int sampling_down_factor;
1: + unsigned int up_threshold;
1: + unsigned int io_is_busy;
1: +};
1: +
1: +struct policy_dbs_info {
1: + struct cpufreq_policy *policy;
1: + struct mutex update_mutex;
1: + u64 last_sample_time;
1: + s64 sample_delay_ns;
1: + atomic_t work_count;
1: + struct irq_work irq_work;
1: + struct work_struct work;
1: + struct dbs_data *dbs_data;
1: + struct list_head list;
1: + unsigned int rate_mult;
1: + unsigned int idle_periods;
1: + bool is_shared;
1: + bool work_in_progress;
1: +};
1: +
1: +struct cpu_dbs_info {
1: + u64 prev_cpu_idle;
1: + u64 prev_update_time;
1: + u64 prev_cpu_nice;
1: + unsigned int prev_load;
1: + struct update_util_data update_util;
1: + struct policy_dbs_info *policy_dbs;
1: +};
1: +
1: +struct dbs_governor {
1: + struct cpufreq_governor gov;
1: + struct kobj_type kobj_type;
1: + struct dbs_data *gdbs_data;
1: + unsigned int (*gov_dbs_update)(struct cpufreq_policy *);
1: + struct policy_dbs_info * (*alloc)();
1: + void (*free)(struct policy_dbs_info *);
1: + int (*init)(struct dbs_data *);
1: + void (*exit)(struct dbs_data *);
1: + void (*start)(struct cpufreq_policy *);
1: +};
1: +
1: +struct cpufreq_policy___2;
1: +
1: +struct cpufreq_dt_platform_data {
1: + bool have_governor_per_policy;
1: + unsigned int (*get_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: + int (*target_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: + int (*suspend)(struct cpufreq_policy___2 *);
1: + int (*resume)(struct cpufreq_policy___2 *);
1: +};
1: +
1: +struct tegra124_cpufreq_priv {
1: + struct clk *cpu_clk;
1: + struct clk *pllp_clk;
1: + struct clk *pllx_clk;
1: + struct clk *dfll_clk;
1: + struct platform_device *cpufreq_dt_pdev;
1: +};
1: +
1: +struct cpuidle_governor {
1: + char name[16];
1: + struct list_head governor_list;
1: + unsigned int rating;
1: + int (*enable)(struct cpuidle_driver *, struct cpuidle_device *);
1: + void (*disable)(struct cpuidle_driver *, struct cpuidle_device *);
1: + int (*select)(struct cpuidle_driver *, struct cpuidle_device *, bool *);
1: + void (*reflect)(struct cpuidle_device *, int);
1: +};
1: +
1: +struct cpuidle_state_kobj {
1: + struct cpuidle_state *state;
1: + struct cpuidle_state_usage *state_usage;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: + struct cpuidle_device *device;
1: +};
1: +
1: +struct cpuidle_driver_kobj {
1: + struct cpuidle_driver *drv;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: +};
1: +
1: +struct cpuidle_device_kobj {
1: + struct cpuidle_device *dev;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: +};
1: +
1: +struct cpuidle_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_device *, char *);
1: + ssize_t (*store)(struct cpuidle_device *, const char *, size_t);
1: +};
1: +
1: +struct cpuidle_state_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_state *, struct cpuidle_state_usage *, char *);
1: + ssize_t (*store)(struct cpuidle_state *, struct cpuidle_state_usage *, const char *, size_t);
1: +};
1: +
1: +struct cpuidle_driver_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_driver *, char *);
1: + ssize_t (*store)(struct cpuidle_driver *, const char *, size_t);
1: +};
1: +
1: +struct ladder_device_state {
1: + struct {
1: + u32 promotion_count;
1: + u32 demotion_count;
1: + u64 promotion_time_ns;
1: + u64 demotion_time_ns;
1: + } threshold;
1: + struct {
1: + int promotion_count;
1: + int demotion_count;
1: + } stats;
1: +};
1: +
1: +struct ladder_device {
1: + struct ladder_device_state states[10];
1: +};
1: +
1: +struct menu_device {
1: + int needs_update;
1: + int tick_wakeup;
1: + u64 next_timer_ns;
1: + unsigned int bucket;
1: + unsigned int correction_factor[12];
1: + unsigned int intervals[8];
1: + int interval_ptr;
1: +};
1: +
1: +struct teo_idle_state {
1: + unsigned int early_hits;
1: + unsigned int hits;
1: + unsigned int misses;
1: +};
1: +
1: +struct teo_cpu {
1: + u64 time_span_ns;
1: + u64 sleep_length_ns;
1: + struct teo_idle_state states[10];
1: + int interval_idx;
1: + u64 intervals[8];
1: +};
1: +
1: +struct pci_dev___2;
1: +
1: +struct sdhci_pci_data {
1: + struct pci_dev___2 *pdev;
1: + int slotno;
1: + int rst_n_gpio;
1: + int cd_gpio;
1: + int (*setup)(struct sdhci_pci_data *);
1: + void (*cleanup)(struct sdhci_pci_data *);
1: +};
1: +
1: +struct led_init_data {
1: + struct fwnode_handle *fwnode;
1: + const char *default_label;
1: + const char *devicename;
1: + bool devname_mandatory;
1: +};
1: +
1: +struct led_properties {
1: + u32 color;
1: + bool color_present;
1: + const char *function;
1: + u32 func_enum;
1: + bool func_enum_present;
1: + const char *label;
1: +};
1: +
1: +enum cpu_led_event {
1: + CPU_LED_IDLE_START = 0,
1: + CPU_LED_IDLE_END = 1,
1: + CPU_LED_START = 2,
1: + CPU_LED_STOP = 3,
1: + CPU_LED_HALTED = 4,
1: +};
1: +
1: +struct led_trigger_cpu {
1: + bool is_active;
1: + char name[8];
1: + struct led_trigger *_trig;
1: +};
1: +
1: +enum scpi_error_codes {
1: + SCPI_SUCCESS = 0,
1: + SCPI_ERR_PARAM = 1,
1: + SCPI_ERR_ALIGN = 2,
1: + SCPI_ERR_SIZE = 3,
1: + SCPI_ERR_HANDLER = 4,
1: + SCPI_ERR_ACCESS = 5,
1: + SCPI_ERR_RANGE = 6,
1: + SCPI_ERR_TIMEOUT = 7,
1: + SCPI_ERR_NOMEM = 8,
1: + SCPI_ERR_PWRSTATE = 9,
1: + SCPI_ERR_SUPPORT = 10,
1: + SCPI_ERR_DEVICE = 11,
1: + SCPI_ERR_BUSY = 12,
1: + SCPI_ERR_MAX = 13,
1: +};
1: +
1: +enum scpi_std_cmd {
1: + SCPI_CMD_INVALID = 0,
1: + SCPI_CMD_SCPI_READY = 1,
1: + SCPI_CMD_SCPI_CAPABILITIES = 2,
1: + SCPI_CMD_SET_CSS_PWR_STATE = 3,
1: + SCPI_CMD_GET_CSS_PWR_STATE = 4,
1: + SCPI_CMD_SET_SYS_PWR_STATE = 5,
1: + SCPI_CMD_SET_CPU_TIMER = 6,
1: + SCPI_CMD_CANCEL_CPU_TIMER = 7,
1: + SCPI_CMD_DVFS_CAPABILITIES = 8,
1: + SCPI_CMD_GET_DVFS_INFO = 9,
1: + SCPI_CMD_SET_DVFS = 10,
1: + SCPI_CMD_GET_DVFS = 11,
1: + SCPI_CMD_GET_DVFS_STAT = 12,
1: + SCPI_CMD_CLOCK_CAPABILITIES = 13,
1: + SCPI_CMD_GET_CLOCK_INFO = 14,
1: + SCPI_CMD_SET_CLOCK_VALUE = 15,
1: + SCPI_CMD_GET_CLOCK_VALUE = 16,
1: + SCPI_CMD_PSU_CAPABILITIES = 17,
1: + SCPI_CMD_GET_PSU_INFO = 18,
1: + SCPI_CMD_SET_PSU = 19,
1: + SCPI_CMD_GET_PSU = 20,
1: + SCPI_CMD_SENSOR_CAPABILITIES = 21,
1: + SCPI_CMD_SENSOR_INFO = 22,
1: + SCPI_CMD_SENSOR_VALUE = 23,
1: + SCPI_CMD_SENSOR_CFG_PERIODIC = 24,
1: + SCPI_CMD_SENSOR_CFG_BOUNDS = 25,
1: + SCPI_CMD_SENSOR_ASYNC_VALUE = 26,
1: + SCPI_CMD_SET_DEVICE_PWR_STATE = 27,
1: + SCPI_CMD_GET_DEVICE_PWR_STATE = 28,
1: + SCPI_CMD_COUNT = 29,
1: +};
1: +
1: +enum legacy_scpi_std_cmd {
1: + LEGACY_SCPI_CMD_INVALID = 0,
1: + LEGACY_SCPI_CMD_SCPI_READY = 1,
1: + LEGACY_SCPI_CMD_SCPI_CAPABILITIES = 2,
1: + LEGACY_SCPI_CMD_EVENT = 3,
1: + LEGACY_SCPI_CMD_SET_CSS_PWR_STATE = 4,
1: + LEGACY_SCPI_CMD_GET_CSS_PWR_STATE = 5,
1: + LEGACY_SCPI_CMD_CFG_PWR_STATE_STAT = 6,
1: + LEGACY_SCPI_CMD_GET_PWR_STATE_STAT = 7,
1: + LEGACY_SCPI_CMD_SYS_PWR_STATE = 8,
1: + LEGACY_SCPI_CMD_L2_READY = 9,
1: + LEGACY_SCPI_CMD_SET_AP_TIMER = 10,
1: + LEGACY_SCPI_CMD_CANCEL_AP_TIME = 11,
1: + LEGACY_SCPI_CMD_DVFS_CAPABILITIES = 12,
1: + LEGACY_SCPI_CMD_GET_DVFS_INFO = 13,
1: + LEGACY_SCPI_CMD_SET_DVFS = 14,
1: + LEGACY_SCPI_CMD_GET_DVFS = 15,
1: + LEGACY_SCPI_CMD_GET_DVFS_STAT = 16,
1: + LEGACY_SCPI_CMD_SET_RTC = 17,
1: + LEGACY_SCPI_CMD_GET_RTC = 18,
1: + LEGACY_SCPI_CMD_CLOCK_CAPABILITIES = 19,
1: + LEGACY_SCPI_CMD_SET_CLOCK_INDEX = 20,
1: + LEGACY_SCPI_CMD_SET_CLOCK_VALUE = 21,
1: + LEGACY_SCPI_CMD_GET_CLOCK_VALUE = 22,
1: + LEGACY_SCPI_CMD_PSU_CAPABILITIES = 23,
1: + LEGACY_SCPI_CMD_SET_PSU = 24,
1: + LEGACY_SCPI_CMD_GET_PSU = 25,
1: + LEGACY_SCPI_CMD_SENSOR_CAPABILITIES = 26,
1: + LEGACY_SCPI_CMD_SENSOR_INFO = 27,
1: + LEGACY_SCPI_CMD_SENSOR_VALUE = 28,
1: + LEGACY_SCPI_CMD_SENSOR_CFG_PERIODIC = 29,
1: + LEGACY_SCPI_CMD_SENSOR_CFG_BOUNDS = 30,
1: + LEGACY_SCPI_CMD_SENSOR_ASYNC_VALUE = 31,
1: + LEGACY_SCPI_CMD_COUNT = 32,
1: +};
1: +
1: +enum scpi_drv_cmds {
1: + CMD_SCPI_CAPABILITIES = 0,
1: + CMD_GET_CLOCK_INFO = 1,
1: + CMD_GET_CLOCK_VALUE = 2,
1: + CMD_SET_CLOCK_VALUE = 3,
1: + CMD_GET_DVFS = 4,
1: + CMD_SET_DVFS = 5,
1: + CMD_GET_DVFS_INFO = 6,
1: + CMD_SENSOR_CAPABILITIES = 7,
1: + CMD_SENSOR_INFO = 8,
1: + CMD_SENSOR_VALUE = 9,
1: + CMD_SET_DEVICE_PWR_STATE = 10,
1: + CMD_GET_DEVICE_PWR_STATE = 11,
1: + CMD_MAX_COUNT = 12,
1: +};
1: +
1: +struct scpi_xfer {
1: + u32 slot;
1: + u32 cmd;
1: + u32 status;
1: + const void *tx_buf;
1: + void *rx_buf;
1: + unsigned int tx_len;
1: + unsigned int rx_len;
1: + struct list_head node;
1: + struct completion done;
1: +};
1: +
1: +struct scpi_chan {
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *chan;
1: + void *tx_payload;
1: + void *rx_payload;
1: + struct list_head rx_pending;
1: + struct list_head xfers_list;
1: + struct scpi_xfer *xfers;
1: + spinlock_t rx_lock;
1: + struct mutex xfers_lock;
1: + u8 token;
1: +};
1: +
1: +struct scpi_drvinfo {
1: + u32 protocol_version;
1: + u32 firmware_version;
1: + bool is_legacy;
1: + int num_chans;
1: + int *commands;
1: + long unsigned int cmd_priority[1];
1: + atomic_t next_chan;
1: + struct scpi_ops *scpi_ops;
1: + struct scpi_chan *channels;
1: + struct scpi_dvfs_info *dvfs[8];
1: +};
1: +
1: +struct scpi_shared_mem {
1: + __le32 command;
1: + __le32 status;
1: + u8 payload[0];
1: +};
1: +
1: +struct legacy_scpi_shared_mem {
1: + __le32 status;
1: + u8 payload[0];
1: +};
1: +
1: +struct scp_capabilities {
1: + __le32 protocol_version;
1: + __le32 event_version;
1: + __le32 platform_version;
1: + __le32 commands[4];
1: +};
1: +
1: +struct clk_get_info {
1: + __le16 id;
1: + __le16 flags;
1: + __le32 min_rate;
1: + __le32 max_rate;
1: + u8 name[20];
1: +};
1: +
1: +struct clk_set_value {
1: + __le16 id;
1: + __le16 reserved;
1: + __le32 rate;
1: +};
1: +
1: +struct legacy_clk_set_value {
1: + __le32 rate;
1: + __le16 id;
1: + __le16 reserved;
1: +};
1: +
1: +struct dvfs_info {
1: + u8 domain;
1: + u8 opp_count;
1: + __le16 latency;
1: + struct {
1: + __le32 freq;
1: + __le32 m_volt;
1: + } opps[16];
1: +};
1: +
1: +struct dvfs_set {
1: + u8 domain;
1: + u8 index;
1: +};
1: +
1: +struct _scpi_sensor_info {
1: + __le16 sensor_id;
1: + u8 class;
1: + u8 trigger_type;
1: + char name[20];
1: +};
1: +
1: +struct dev_pstate_set {
1: + __le16 dev_id;
1: + u8 pstate;
1: +} __attribute__((packed));
1: +
1: +struct scpi_pm_domain {
1: + struct generic_pm_domain genpd;
1: + struct scpi_ops *ops;
1: + u32 domain;
1: + char name[30];
1: +};
1: +
1: +enum scpi_power_domain_state {
1: + SCPI_PD_STATE_ON = 0,
1: + SCPI_PD_STATE_OFF = 3,
1: +};
1: +
1: +enum dmi_entry_type {
1: + DMI_ENTRY_BIOS = 0,
1: + DMI_ENTRY_SYSTEM = 1,
1: + DMI_ENTRY_BASEBOARD = 2,
1: + DMI_ENTRY_CHASSIS = 3,
1: + DMI_ENTRY_PROCESSOR = 4,
1: + DMI_ENTRY_MEM_CONTROLLER = 5,
1: + DMI_ENTRY_MEM_MODULE = 6,
1: + DMI_ENTRY_CACHE = 7,
1: + DMI_ENTRY_PORT_CONNECTOR = 8,
1: + DMI_ENTRY_SYSTEM_SLOT = 9,
1: + DMI_ENTRY_ONBOARD_DEVICE = 10,
1: + DMI_ENTRY_OEMSTRINGS = 11,
1: + DMI_ENTRY_SYSCONF = 12,
1: + DMI_ENTRY_BIOS_LANG = 13,
1: + DMI_ENTRY_GROUP_ASSOC = 14,
1: + DMI_ENTRY_SYSTEM_EVENT_LOG = 15,
1: + DMI_ENTRY_PHYS_MEM_ARRAY = 16,
1: + DMI_ENTRY_MEM_DEVICE = 17,
1: + DMI_ENTRY_32_MEM_ERROR = 18,
1: + DMI_ENTRY_MEM_ARRAY_MAPPED_ADDR = 19,
1: + DMI_ENTRY_MEM_DEV_MAPPED_ADDR = 20,
1: + DMI_ENTRY_BUILTIN_POINTING_DEV = 21,
1: + DMI_ENTRY_PORTABLE_BATTERY = 22,
1: + DMI_ENTRY_SYSTEM_RESET = 23,
1: + DMI_ENTRY_HW_SECURITY = 24,
1: + DMI_ENTRY_SYSTEM_POWER_CONTROLS = 25,
1: + DMI_ENTRY_VOLTAGE_PROBE = 26,
1: + DMI_ENTRY_COOLING_DEV = 27,
1: + DMI_ENTRY_TEMP_PROBE = 28,
1: + DMI_ENTRY_ELECTRICAL_CURRENT_PROBE = 29,
1: + DMI_ENTRY_OOB_REMOTE_ACCESS = 30,
1: + DMI_ENTRY_BIS_ENTRY = 31,
1: + DMI_ENTRY_SYSTEM_BOOT = 32,
1: + DMI_ENTRY_MGMT_DEV = 33,
1: + DMI_ENTRY_MGMT_DEV_COMPONENT = 34,
1: + DMI_ENTRY_MGMT_DEV_THRES = 35,
1: + DMI_ENTRY_MEM_CHANNEL = 36,
1: + DMI_ENTRY_IPMI_DEV = 37,
1: + DMI_ENTRY_SYS_POWER_SUPPLY = 38,
1: + DMI_ENTRY_ADDITIONAL = 39,
1: + DMI_ENTRY_ONBOARD_DEV_EXT = 40,
1: + DMI_ENTRY_MGMT_CONTROLLER_HOST = 41,
1: + DMI_ENTRY_INACTIVE = 126,
1: + DMI_ENTRY_END_OF_TABLE = 127,
1: +};
1: +
1: +struct dmi_memdev_info {
1: + const char *device;
1: + const char *bank;
1: + u64 size;
1: + u16 handle;
1: + u8 type;
1: +};
1: +
1: +struct dmi_device_attribute {
1: + struct device_attribute dev_attr;
1: + int field;
1: +};
1: +
1: +struct mafield {
1: + const char *prefix;
1: + int field;
1: +};
1: +
1: +struct firmware_map_entry {
1: + u64 start;
1: + u64 end;
1: + const char *type;
1: + struct list_head list;
1: + struct kobject kobj;
1: +};
1: +
1: +struct memmap_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct firmware_map_entry *, char *);
1: +};
1: +
1: +enum rpi_firmware_property_status {
1: + RPI_FIRMWARE_STATUS_REQUEST = 0,
1: + RPI_FIRMWARE_STATUS_SUCCESS = 2147483648,
1: + RPI_FIRMWARE_STATUS_ERROR = 2147483649,
1: +};
1: +
1: +struct rpi_firmware_property_tag_header {
1: + u32 tag;
1: + u32 buf_size;
1: + u32 req_resp_size;
1: +};
1: +
1: +struct rpi_firmware___2 {
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *chan;
1: + struct completion c;
1: + u32 enabled;
1: +};
1: +
1: +struct qcom_scm_hdcp_req {
1: + u32 addr;
1: + u32 val;
1: +};
1: +
1: +struct qcom_scm_vmperm {
1: + int vmid;
1: + int perm;
1: +};
1: +
1: +enum qcom_scm_ocmem_client {
1: + QCOM_SCM_OCMEM_UNUSED_ID = 0,
1: + QCOM_SCM_OCMEM_GRAPHICS_ID = 1,
1: + QCOM_SCM_OCMEM_VIDEO_ID = 2,
1: + QCOM_SCM_OCMEM_LP_AUDIO_ID = 3,
1: + QCOM_SCM_OCMEM_SENSORS_ID = 4,
1: + QCOM_SCM_OCMEM_OTHER_OS_ID = 5,
1: + QCOM_SCM_OCMEM_DEBUG_ID = 6,
1: +};
1: +
1: +enum qcom_scm_ice_cipher {
1: + QCOM_SCM_ICE_CIPHER_AES_128_XTS = 0,
1: + QCOM_SCM_ICE_CIPHER_AES_128_CBC = 1,
1: + QCOM_SCM_ICE_CIPHER_AES_256_XTS = 3,
1: + QCOM_SCM_ICE_CIPHER_AES_256_CBC = 4,
1: +};
1: +
1: +enum qcom_scm_convention {
1: + SMC_CONVENTION_UNKNOWN = 0,
1: + SMC_CONVENTION_LEGACY = 1,
1: + SMC_CONVENTION_ARM_32 = 2,
1: + SMC_CONVENTION_ARM_64 = 3,
1: +};
1: +
1: +enum qcom_scm_arg_types {
1: + QCOM_SCM_VAL = 0,
1: + QCOM_SCM_RO = 1,
1: + QCOM_SCM_RW = 2,
1: + QCOM_SCM_BUFVAL = 3,
1: +};
1: +
1: +struct qcom_scm_desc {
1: + u32 svc;
1: + u32 cmd;
1: + u32 arginfo;
1: + u64 args[10];
1: + u32 owner;
1: +};
1: +
1: +struct qcom_scm_res {
1: + u64 result[3];
1: +};
1: +
1: +struct qcom_scm {
1: + struct device *dev;
1: + struct clk *core_clk;
1: + struct clk *iface_clk;
1: + struct clk *bus_clk;
1: + struct reset_controller_dev reset;
1: + u64 dload_mode_addr;
1: +};
1: +
1: +struct qcom_scm_current_perm_info {
1: + __le32 vmid;
1: + __le32 perm;
1: + __le64 ctx;
1: + __le32 ctx_size;
1: + __le32 unused;
1: +};
1: +
1: +struct qcom_scm_mem_map_info {
1: + __le64 mem_addr;
1: + __le64 mem_size;
1: +};
1: +
1: +struct qcom_scm_wb_entry {
1: + int flag;
1: + void *entry;
1: +};
1: +
1: +struct arm_smccc_quirk {
1: + int id;
1: + union {
1: + long unsigned int a6;
1: + } state;
1: +};
1: +
1: +struct arm_smccc_args {
1: + long unsigned int args[8];
1: +};
1: +
1: +struct scm_legacy_command {
1: + __le32 len;
1: + __le32 buf_offset;
1: + __le32 resp_hdr_offset;
1: + __le32 id;
1: + __le32 buf[0];
1: +};
1: +
1: +struct scm_legacy_response {
1: + __le32 len;
1: + __le32 buf_offset;
1: + __le32 is_complete;
1: +};
1: +
1: +struct meson_sm_cmd {
1: + unsigned int index;
1: + u32 smc_id;
1: +};
1: +
1: +struct meson_sm_chip {
1: + unsigned int shmem_size;
1: + u32 cmd_shmem_in_base;
1: + u32 cmd_shmem_out_base;
1: + struct meson_sm_cmd cmd[0];
1: +};
1: +
1: +struct meson_sm_firmware___2 {
1: + const struct meson_sm_chip *chip;
1: + void *sm_shmem_in_base;
1: + void *sm_shmem_out_base;
1: +};
1: +
1: +struct bmp_header {
1: + u16 id;
1: + u32 size;
1: +} __attribute__((packed));
1: +
1: +typedef efi_status_t efi_query_variable_store_t(u32, long unsigned int, bool);
1: +
1: +typedef struct {
1: + efi_guid_t guid;
1: + u64 table;
1: +} efi_config_table_64_t;
1: +
1: +typedef struct {
1: + efi_guid_t guid;
1: + u32 table;
1: +} efi_config_table_32_t;
1: +
1: +typedef union {
1: + struct {
1: + efi_guid_t guid;
1: + void *table;
1: + };
1: + efi_config_table_32_t mixed_mode;
1: +} efi_config_table_t;
1: +
1: +typedef struct {
1: + efi_guid_t guid;
1: + long unsigned int *ptr;
1: + const char name[16];
1: +} efi_config_table_type_t;
1: +
1: +typedef struct {
1: + u16 version;
1: + u16 length;
1: + u32 runtime_services_supported;
1: +} efi_rt_properties_table_t;
1: +
1: +struct efivar_operations {
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_set_variable_t *set_variable_nonblocking;
1: + efi_query_variable_store_t *query_variable_store;
1: +};
1: +
1: +struct efivars {
1: + struct kset *kset;
1: + struct kobject *kobject;
1: + const struct efivar_operations *ops;
1: +};
1: +
1: +struct efi_variable {
1: + efi_char16_t VariableName[512];
1: + efi_guid_t VendorGuid;
1: + long unsigned int DataSize;
1: + __u8 Data[1024];
1: + efi_status_t Status;
1: + __u32 Attributes;
1: +} __attribute__((packed));
1: +
1: +struct efivar_entry {
1: + struct efi_variable var;
1: + struct list_head list;
1: + struct kobject kobj;
1: + bool scanning;
1: + bool deleting;
1: +};
1: +
1: +struct linux_efi_random_seed {
1: + u32 size;
1: + u8 bits[0];
1: +};
1: +
1: +struct linux_efi_memreserve {
1: + int size;
1: + atomic_t count;
1: + phys_addr_t next;
1: + struct {
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + } entry[0];
1: +};
1: +
1: +struct efi_generic_dev_path {
1: + u8 type;
1: + u8 sub_type;
1: + u16 length;
1: +};
1: +
1: +struct variable_validate {
1: + efi_guid_t vendor;
1: + char *name;
1: + bool (*validate)(efi_char16_t *, int, u8 *, long unsigned int);
1: +};
1: +
1: +typedef struct {
1: + u32 version;
1: + u32 num_entries;
1: + u32 desc_size;
1: + u32 reserved;
1: + efi_memory_desc_t entry[0];
1: +} efi_memory_attributes_table_t;
1: +
1: +typedef int (*efi_memattr_perm_setter)(struct mm_struct *, efi_memory_desc_t *);
1: +
1: +typedef u64 efi_physical_addr_t;
1: +
1: +typedef struct {
1: + u64 length;
1: + u64 data;
1: +} efi_capsule_block_desc_t;
1: +
1: +struct efi_memory_map_data {
1: + phys_addr_t phys_map;
1: + long unsigned int size;
1: + long unsigned int desc_version;
1: + long unsigned int desc_size;
1: + long unsigned int flags;
1: +};
1: +
1: +struct efi_mem_range {
1: + struct range range;
1: + u64 attribute;
1: +};
1: +
1: +enum {
1: + SYSTAB = 0,
1: + MMBASE = 1,
1: + MMSIZE = 2,
1: + DCSIZE = 3,
1: + DCVERS = 4,
1: + PARAMCOUNT = 5,
1: +};
1: +
1: +struct efi_system_resource_entry_v1 {
1: + efi_guid_t fw_class;
1: + u32 fw_type;
1: + u32 fw_version;
1: + u32 lowest_supported_fw_version;
1: + u32 capsule_flags;
1: + u32 last_attempt_version;
1: + u32 last_attempt_status;
1: +};
1: +
1: +struct efi_system_resource_table {
1: + u32 fw_resource_count;
1: + u32 fw_resource_count_max;
1: + u64 fw_resource_version;
1: + u8 entries[0];
1: +};
1: +
1: +struct esre_entry {
1: + union {
1: + struct efi_system_resource_entry_v1 *esre1;
1: + } esre;
1: + struct kobject kobj;
1: + struct list_head list;
1: +};
1: +
1: +struct esre_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct esre_entry *, char *);
1: + ssize_t (*store)(struct esre_entry *, const char *, size_t);
1: +};
1: +
1: +struct cper_sec_proc_generic {
1: + u64 validation_bits;
1: + u8 proc_type;
1: + u8 proc_isa;
1: + u8 proc_error_type;
1: + u8 operation;
1: + u8 flags;
1: + u8 level;
1: + u16 reserved;
1: + u64 cpu_version;
1: + char cpu_brand[128];
1: + u64 proc_id;
1: + u64 target_addr;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 ip;
1: +};
1: +
1: +struct cper_sec_proc_arm {
1: + u32 validation_bits;
1: + u16 err_info_num;
1: + u16 context_info_num;
1: + u32 section_length;
1: + u8 affinity_level;
1: + u8 reserved[3];
1: + u64 mpidr;
1: + u64 midr;
1: + u32 running_state;
1: + u32 psci_state;
1: +};
1: +
1: +struct cper_mem_err_compact {
1: + u64 validation_bits;
1: + u16 node;
1: + u16 card;
1: + u16 module;
1: + u16 bank;
1: + u16 device;
1: + u16 row;
1: + u16 column;
1: + u16 bit_pos;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 target_id;
1: + u16 rank;
1: + u16 mem_array_handle;
1: + u16 mem_dev_handle;
1: + u8 extended;
1: +} __attribute__((packed));
1: +
1: +struct cper_sec_pcie {
1: + u64 validation_bits;
1: + u32 port_type;
1: + struct {
1: + u8 minor;
1: + u8 major;
1: + u8 reserved[2];
1: + } version;
1: + u16 command;
1: + u16 status;
1: + u32 reserved;
1: + struct {
1: + u16 vendor_id;
1: + u16 device_id;
1: + u8 class_code[3];
1: + u8 function;
1: + u8 device;
1: + u16 segment;
1: + u8 bus;
1: + u8 secondary_bus;
1: + u16 slot;
1: + u8 reserved;
1: + } __attribute__((packed)) device_id;
1: + struct {
1: + u32 lower;
1: + u32 upper;
1: + } serial_number;
1: + struct {
1: + u16 secondary_status;
1: + u16 control;
1: + } bridge;
1: + u8 capability[60];
1: + u8 aer_info[96];
1: +};
1: +
1: +struct cper_sec_fw_err_rec_ref {
1: + u8 record_type;
1: + u8 revision;
1: + u8 reserved[6];
1: + u64 record_identifier;
1: + guid_t record_identifier_guid;
1: +};
1: +
1: +struct acpi_hest_generic_data {
1: + u8 section_type[16];
1: + u32 error_severity;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 flags;
1: + u32 error_data_length;
1: + u8 fru_id[16];
1: + u8 fru_text[20];
1: +};
1: +
1: +struct acpi_hest_generic_data_v300 {
1: + u8 section_type[16];
1: + u32 error_severity;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 flags;
1: + u32 error_data_length;
1: + u8 fru_id[16];
1: + u8 fru_text[20];
1: + u64 time_stamp;
1: +};
1: +
1: +enum efi_rts_ids {
1: + EFI_NONE = 0,
1: + EFI_GET_TIME = 1,
1: + EFI_SET_TIME = 2,
1: + EFI_GET_WAKEUP_TIME = 3,
1: + EFI_SET_WAKEUP_TIME = 4,
1: + EFI_GET_VARIABLE = 5,
1: + EFI_GET_NEXT_VARIABLE = 6,
1: + EFI_SET_VARIABLE = 7,
1: + EFI_QUERY_VARIABLE_INFO = 8,
1: + EFI_GET_NEXT_HIGH_MONO_COUNT = 9,
1: + EFI_RESET_SYSTEM = 10,
1: + EFI_UPDATE_CAPSULE = 11,
1: + EFI_QUERY_CAPSULE_CAPS = 12,
1: +};
1: +
1: +struct efi_runtime_work {
1: + void *arg1;
1: + void *arg2;
1: + void *arg3;
1: + void *arg4;
1: + void *arg5;
1: + efi_status_t status;
1: + struct work_struct work;
1: + enum efi_rts_ids efi_rts_id;
1: + struct completion efi_rts_comp;
1: +};
1: +
1: +typedef void *efi_event_t;
1: +
1: +typedef void (*efi_event_notify_t)(efi_event_t, void *);
1: +
1: +typedef enum {
1: + EfiTimerCancel = 0,
1: + EfiTimerPeriodic = 1,
1: + EfiTimerRelative = 2,
1: +} EFI_TIMER_DELAY;
1: +
1: +typedef void *efi_handle_t;
1: +
1: +typedef struct efi_generic_dev_path efi_device_path_protocol_t;
1: +
1: +union efi_boot_services {
1: + struct {
1: + efi_table_hdr_t hdr;
1: + void *raise_tpl;
1: + void *restore_tpl;
1: + efi_status_t (*allocate_pages)(int, int, long unsigned int, efi_physical_addr_t *);
1: + efi_status_t (*free_pages)(efi_physical_addr_t, long unsigned int);
1: + efi_status_t (*get_memory_map)(long unsigned int *, void *, long unsigned int *, long unsigned int *, u32 *);
1: + efi_status_t (*allocate_pool)(int, long unsigned int, void **);
1: + efi_status_t (*free_pool)(void *);
1: + efi_status_t (*create_event)(u32, long unsigned int, efi_event_notify_t, void *, efi_event_t *);
1: + efi_status_t (*set_timer)(efi_event_t, EFI_TIMER_DELAY, u64);
1: + efi_status_t (*wait_for_event)(long unsigned int, efi_event_t *, long unsigned int *);
1: + void *signal_event;
1: + efi_status_t (*close_event)(efi_event_t);
1: + void *check_event;
1: + void *install_protocol_interface;
1: + void *reinstall_protocol_interface;
1: + void *uninstall_protocol_interface;
1: + efi_status_t (*handle_protocol)(efi_handle_t, efi_guid_t *, void **);
1: + void *__reserved;
1: + void *register_protocol_notify;
1: + efi_status_t (*locate_handle)(int, efi_guid_t *, void *, long unsigned int *, efi_handle_t *);
1: + efi_status_t (*locate_device_path)(efi_guid_t *, efi_device_path_protocol_t **, efi_handle_t *);
1: + efi_status_t (*install_configuration_table)(efi_guid_t *, void *);
1: + void *load_image;
1: + void *start_image;
1: + efi_status_t (*exit)(efi_handle_t, efi_status_t, long unsigned int, efi_char16_t *);
1: + void *unload_image;
1: + efi_status_t (*exit_boot_services)(efi_handle_t, long unsigned int);
1: + void *get_next_monotonic_count;
1: + efi_status_t (*stall)(long unsigned int);
1: + void *set_watchdog_timer;
1: + void *connect_controller;
1: + efi_status_t (*disconnect_controller)(efi_handle_t, efi_handle_t, efi_handle_t);
1: + void *open_protocol;
1: + void *close_protocol;
1: + void *open_protocol_information;
1: + void *protocols_per_handle;
1: + void *locate_handle_buffer;
1: + efi_status_t (*locate_protocol)(efi_guid_t *, void *, void **);
1: + void *install_multiple_protocol_interfaces;
1: + void *uninstall_multiple_protocol_interfaces;
1: + void *calculate_crc32;
1: + void *copy_mem;
1: + void *set_mem;
1: + void *create_event_ex;
1: + };
1: + struct {
1: + efi_table_hdr_t hdr;
1: + u32 raise_tpl;
1: + u32 restore_tpl;
1: + u32 allocate_pages;
1: + u32 free_pages;
1: + u32 get_memory_map;
1: + u32 allocate_pool;
1: + u32 free_pool;
1: + u32 create_event;
1: + u32 set_timer;
1: + u32 wait_for_event;
1: + u32 signal_event;
1: + u32 close_event;
1: + u32 check_event;
1: + u32 install_protocol_interface;
1: + u32 reinstall_protocol_interface;
1: + u32 uninstall_protocol_interface;
1: + u32 handle_protocol;
1: + u32 __reserved;
1: + u32 register_protocol_notify;
1: + u32 locate_handle;
1: + u32 locate_device_path;
1: + u32 install_configuration_table;
1: + u32 load_image;
1: + u32 start_image;
1: + u32 exit;
1: + u32 unload_image;
1: + u32 exit_boot_services;
1: + u32 get_next_monotonic_count;
1: + u32 stall;
1: + u32 set_watchdog_timer;
1: + u32 connect_controller;
1: + u32 disconnect_controller;
1: + u32 open_protocol;
1: + u32 close_protocol;
1: + u32 open_protocol_information;
1: + u32 protocols_per_handle;
1: + u32 locate_handle_buffer;
1: + u32 locate_protocol;
1: + u32 install_multiple_protocol_interfaces;
1: + u32 uninstall_multiple_protocol_interfaces;
1: + u32 calculate_crc32;
1: + u32 copy_mem;
1: + u32 set_mem;
1: + u32 create_event_ex;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union efi_boot_services efi_boot_services_t;
1: +
1: +typedef struct {
1: + efi_table_hdr_t hdr;
1: + u32 fw_vendor;
1: + u32 fw_revision;
1: + u32 con_in_handle;
1: + u32 con_in;
1: + u32 con_out_handle;
1: + u32 con_out;
1: + u32 stderr_handle;
1: + u32 stderr;
1: + u32 runtime;
1: + u32 boottime;
1: + u32 nr_tables;
1: + u32 tables;
1: +} efi_system_table_32_t;
1: +
1: +typedef struct {
1: + u16 scan_code;
1: + efi_char16_t unicode_char;
1: +} efi_input_key_t;
1: +
1: +union efi_simple_text_input_protocol;
1: +
1: +typedef union efi_simple_text_input_protocol efi_simple_text_input_protocol_t;
1: +
1: +union efi_simple_text_input_protocol {
1: + struct {
1: + void *reset;
1: + efi_status_t (*read_keystroke)(efi_simple_text_input_protocol_t *, efi_input_key_t *);
1: + efi_event_t wait_for_key;
1: + };
1: + struct {
1: + u32 reset;
1: + u32 read_keystroke;
1: + u32 wait_for_key;
1: + } mixed_mode;
1: +};
1: +
1: +union efi_simple_text_output_protocol;
1: +
1: +typedef union efi_simple_text_output_protocol efi_simple_text_output_protocol_t;
1: +
1: +union efi_simple_text_output_protocol {
1: + struct {
1: + void *reset;
1: + efi_status_t (*output_string)(efi_simple_text_output_protocol_t *, efi_char16_t *);
1: + void *test_string;
1: + };
1: + struct {
1: + u32 reset;
1: + u32 output_string;
1: + u32 test_string;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union {
1: + struct {
1: + efi_table_hdr_t hdr;
1: + long unsigned int fw_vendor;
1: + u32 fw_revision;
1: + long unsigned int con_in_handle;
1: + efi_simple_text_input_protocol_t *con_in;
1: + long unsigned int con_out_handle;
1: + efi_simple_text_output_protocol_t *con_out;
1: + long unsigned int stderr_handle;
1: + long unsigned int stderr;
1: + efi_runtime_services_t *runtime;
1: + efi_boot_services_t *boottime;
1: + long unsigned int nr_tables;
1: + long unsigned int tables;
1: + };
1: + efi_system_table_32_t mixed_mode;
1: +} efi_system_table_t;
1: +
1: +struct cper_arm_err_info {
1: + u8 version;
1: + u8 length;
1: + u16 validation_bits;
1: + u8 type;
1: + u16 multiple_error;
1: + u8 flags;
1: + u64 error_info;
1: + u64 virt_fault_addr;
1: + u64 physical_fault_addr;
1: +} __attribute__((packed));
1: +
1: +struct cper_arm_ctx_info {
1: + u16 version;
1: + u16 type;
1: + u32 size;
1: +};
1: +
1: +typedef long unsigned int psci_fn(long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +enum psci_function {
1: + PSCI_FN_CPU_SUSPEND = 0,
1: + PSCI_FN_CPU_ON = 1,
1: + PSCI_FN_CPU_OFF = 2,
1: + PSCI_FN_MIGRATE = 3,
1: + PSCI_FN_MAX = 4,
1: +};
1: +
1: +typedef int (*psci_initcall_t)(const struct device_node *);
1: +
1: +struct mrq_ping_request {
1: + uint32_t challenge;
1: +};
1: +
1: +struct mrq_ping_response {
1: + uint32_t reply;
1: +};
1: +
1: +struct mrq_query_tag_request {
1: + uint32_t addr;
1: +};
1: +
1: +struct mrq_query_fw_tag_response {
1: + uint8_t tag[32];
1: +};
1: +
1: +struct mrq_query_abi_request {
1: + uint32_t mrq;
1: +};
1: +
1: +struct mrq_query_abi_response {
1: + int32_t status;
1: +};
1: +
1: +struct tegra_ivc_header;
1: +
1: +struct tegra_ivc {
1: + struct device *peer;
1: + struct {
1: + struct tegra_ivc_header *channel;
1: + unsigned int position;
1: + dma_addr_t phys;
1: + } rx;
1: + struct {
1: + struct tegra_ivc_header *channel;
1: + unsigned int position;
1: + dma_addr_t phys;
1: + } tx;
1: + void (*notify)(struct tegra_ivc *, void *);
1: + void *notify_data;
1: + unsigned int num_frames;
1: + size_t frame_size;
1: +};
1: +
1: +typedef void (*tegra_bpmp_mrq_handler_t)(unsigned int, struct tegra_bpmp_channel *, void *);
1: +
1: +struct tegra_bpmp_mrq {
1: + struct list_head list;
1: + unsigned int mrq;
1: + tegra_bpmp_mrq_handler_t handler;
1: + void *data;
1: +};
1: +
1: +struct tegra210_bpmp {
1: + void *atomics;
1: + void *arb_sema;
1: + struct irq_data *tx_irq_data;
1: +};
1: +
1: +struct tegra186_bpmp {
1: + struct tegra_bpmp *parent;
1: + struct {
1: + struct gen_pool *pool;
1: + dma_addr_t phys;
1: + void *virt;
1: + } tx;
1: + struct {
1: + struct gen_pool *pool;
1: + dma_addr_t phys;
1: + void *virt;
1: + } rx;
1: + struct {
1: + struct mbox_client client;
1: + struct mbox_chan___2 *channel;
1: + } mbox;
1: +};
1: +
1: +enum mrq_debugfs_commands {
1: + CMD_DEBUGFS_READ = 1,
1: + CMD_DEBUGFS_WRITE = 2,
1: + CMD_DEBUGFS_DUMPDIR = 3,
1: + CMD_DEBUGFS_MAX = 4,
1: +};
1: +
1: +struct cmd_debugfs_fileop_request {
1: + uint32_t fnameaddr;
1: + uint32_t fnamelen;
1: + uint32_t dataaddr;
1: + uint32_t datalen;
1: +};
1: +
1: +struct cmd_debugfs_dumpdir_request {
1: + uint32_t dataaddr;
1: + uint32_t datalen;
1: +};
1: +
1: +struct cmd_debugfs_fileop_response {
1: + uint32_t reserved;
1: + uint32_t nbytes;
1: +};
1: +
1: +struct cmd_debugfs_dumpdir_response {
1: + uint32_t reserved;
1: + uint32_t nbytes;
1: +};
1: +
1: +struct mrq_debugfs_request {
1: + uint32_t cmd;
1: + union {
1: + struct cmd_debugfs_fileop_request fop;
1: + struct cmd_debugfs_dumpdir_request dumpdir;
1: + };
1: +};
1: +
1: +struct mrq_debugfs_response {
1: + int32_t reserved;
1: + union {
1: + struct cmd_debugfs_fileop_response fop;
1: + struct cmd_debugfs_dumpdir_response dumpdir;
1: + };
1: +};
1: +
1: +enum mrq_debug_commands {
1: + CMD_DEBUG_OPEN_RO = 0,
1: + CMD_DEBUG_OPEN_WO = 1,
1: + CMD_DEBUG_READ = 2,
1: + CMD_DEBUG_WRITE = 3,
1: + CMD_DEBUG_CLOSE = 4,
1: + CMD_DEBUG_MAX = 5,
1: +};
1: +
1: +struct cmd_debug_fopen_request {
1: + char name[116];
1: +};
1: +
1: +struct cmd_debug_fopen_response {
1: + uint32_t fd;
1: + uint32_t datalen;
1: +};
1: +
1: +struct cmd_debug_fread_request {
1: + uint32_t fd;
1: +};
1: +
1: +struct cmd_debug_fread_response {
1: + uint32_t readlen;
1: + char data[116];
1: +};
1: +
1: +struct cmd_debug_fwrite_request {
1: + uint32_t fd;
1: + uint32_t datalen;
1: + char data[108];
1: +};
1: +
1: +struct cmd_debug_fclose_request {
1: + uint32_t fd;
1: +};
1: +
1: +struct mrq_debug_request {
1: + uint32_t cmd;
1: + union {
1: + struct cmd_debug_fopen_request fop;
1: + struct cmd_debug_fread_request frd;
1: + struct cmd_debug_fwrite_request fwr;
1: + struct cmd_debug_fclose_request fcl;
1: + };
1: +};
1: +
1: +struct mrq_debug_response {
1: + union {
1: + struct cmd_debug_fopen_response fop;
1: + struct cmd_debug_fread_response frd;
1: + };
1: +};
1: +
1: +struct seqbuf {
1: + char *buf;
1: + size_t pos;
1: + size_t size;
1: +};
1: +
1: +struct tegra_ivc_header {
1: + union {
1: + struct {
1: + u32 count;
1: + u32 state;
1: + };
1: + u8 pad[64];
1: + } tx;
1: + union {
1: + u32 count;
1: + u8 pad[64];
1: + } rx;
1: +};
1: +
1: +enum tegra_ivc_state {
1: + TEGRA_IVC_STATE_ESTABLISHED = 0,
1: + TEGRA_IVC_STATE_SYNC = 1,
1: + TEGRA_IVC_STATE_ACK = 2,
1: +};
1: +
1: +struct of_timer_irq {
1: + int irq;
1: + int index;
1: + int percpu;
1: + const char *name;
1: + long unsigned int flags;
1: + irq_handler_t handler;
1: +};
1: +
1: +struct of_timer_base {
1: + void *base;
1: + const char *name;
1: + int index;
1: +};
1: +
1: +struct of_timer_clk {
1: + struct clk *clk;
1: + const char *name;
1: + int index;
1: + long unsigned int rate;
1: + long unsigned int period;
1: +};
1: +
1: +struct timer_of {
1: + unsigned int flags;
1: + struct device_node *np;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct clock_event_device clkevt;
1: + struct of_timer_base of_base;
1: + struct of_timer_irq of_irq;
1: + struct of_timer_clk of_clk;
1: + void *private_data;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef int (*of_init_fn_1_ret)(struct device_node *);
1: +
1: +struct clocksource_mmio {
1: + void *reg;
1: + struct clocksource clksrc;
1: +};
1: +
1: +struct rk_timer {
1: + void *base;
1: + void *ctrl;
1: + struct clk *clk;
1: + struct clk *pclk;
1: + u32 freq;
1: + int irq;
1: +};
1: +
1: +struct rk_clkevt {
1: + struct clock_event_device ce;
1: + struct rk_timer timer;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum arch_timer_reg {
1: + ARCH_TIMER_REG_CTRL = 0,
1: + ARCH_TIMER_REG_TVAL = 1,
1: +};
1: +
1: +enum arch_timer_spi_nr {
1: + ARCH_TIMER_PHYS_SPI = 0,
1: + ARCH_TIMER_VIRT_SPI = 1,
1: + ARCH_TIMER_MAX_TIMER_SPI = 2,
1: +};
1: +
1: +enum arch_timer_erratum_match_type {
1: + ate_match_dt = 0,
1: + ate_match_local_cap_id = 1,
1: + ate_match_acpi_oem_info = 2,
1: +};
1: +
1: +struct arch_timer_erratum_workaround {
1: + enum arch_timer_erratum_match_type match_type;
1: + const void *id;
1: + const char *desc;
1: + u32 (*read_cntp_tval_el0)();
1: + u32 (*read_cntv_tval_el0)();
1: + u64 (*read_cntpct_el0)();
1: + u64 (*read_cntvct_el0)();
1: + int (*set_next_event_phys)(long unsigned int, struct clock_event_device *);
1: + int (*set_next_event_virt)(long unsigned int, struct clock_event_device *);
1: + bool disable_compat_vdso;
1: +};
1: +
1: +struct arch_timer {
1: + void *base;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct clock_event_device evt;
1: +};
1: +
1: +struct ate_acpi_oem_info {
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: +};
1: +
1: +typedef bool (*ate_match_fn_t)(const struct arch_timer_erratum_workaround *, const void *);
1: +
1: +struct sp804_timer {
1: + int load;
1: + int load_h;
1: + int value;
1: + int value_h;
1: + int ctrl;
1: + int intclr;
1: + int ris;
1: + int mis;
1: + int bgload;
1: + int bgload_h;
1: + int timer_base[2];
1: + int width;
1: +};
1: +
1: +struct sp804_clkevt {
1: + void *base;
1: + void *load;
1: + void *load_h;
1: + void *value;
1: + void *value_h;
1: + void *ctrl;
1: + void *intclr;
1: + void *ris;
1: + void *mis;
1: + void *bgload;
1: + void *bgload_h;
1: + long unsigned int reload;
1: + int width;
1: +};
1: +
1: +struct alias_prop {
1: + struct list_head link;
1: + const char *alias;
1: + struct device_node *np;
1: + int id;
1: + char stem[0];
1: +};
1: +
1: +struct of_endpoint {
1: + unsigned int port;
1: + unsigned int id;
1: + const struct device_node *local_node;
1: +};
1: +
1: +struct supplier_bindings {
1: + struct device_node * (*parse_prop)(struct device_node *, const char *, int);
1: +};
1: +
1: +struct of_changeset_entry {
1: + struct list_head node;
1: + long unsigned int action;
1: + struct device_node *np;
1: + struct property *prop;
1: + struct property *old_prop;
1: +};
1: +
1: +struct of_changeset {
1: + struct list_head entries;
1: +};
1: +
1: +struct of_bus___2 {
1: + void (*count_cells)(const void *, int, int *, int *);
1: + u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: + int (*translate)(__be32 *, u64, int);
1: +};
1: +
1: +struct of_bus {
1: + const char *name;
1: + const char *addresses;
1: + int (*match)(struct device_node *);
1: + void (*count_cells)(struct device_node *, int *, int *);
1: + u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: + int (*translate)(__be32 *, u64, int);
1: + bool has_flags;
1: + unsigned int (*get_flags)(const __be32 *);
1: +};
1: +
1: +struct of_intc_desc {
1: + struct list_head list;
1: + of_irq_init_cb_t irq_init_cb;
1: + struct device_node *dev;
1: + struct device_node *interrupt_parent;
1: +};
1: +
1: +struct rmem_assigned_device {
1: + struct device *dev;
1: + struct reserved_mem *rmem;
1: + struct list_head list;
1: +};
1: +
1: +enum of_overlay_notify_action {
1: + OF_OVERLAY_PRE_APPLY = 0,
1: + OF_OVERLAY_POST_APPLY = 1,
1: + OF_OVERLAY_PRE_REMOVE = 2,
1: + OF_OVERLAY_POST_REMOVE = 3,
1: +};
1: +
1: +struct of_overlay_notify_data {
1: + struct device_node *overlay;
1: + struct device_node *target;
1: +};
1: +
1: +struct target {
1: + struct device_node *np;
1: + bool in_livetree;
1: +};
1: +
1: +struct fragment {
1: + struct device_node *overlay;
1: + struct device_node *target;
1: +};
1: +
1: +struct overlay_changeset {
1: + int id;
1: + struct list_head ovcs_list;
1: + const void *fdt;
1: + struct device_node *overlay_tree;
1: + int count;
1: + struct fragment *fragments;
1: + bool symbols_fragment;
1: + struct of_changeset cset;
1: +};
1: +
1: +enum vchiq_reason {
1: + VCHIQ_SERVICE_OPENED = 0,
1: + VCHIQ_SERVICE_CLOSED = 1,
1: + VCHIQ_MESSAGE_AVAILABLE = 2,
1: + VCHIQ_BULK_TRANSMIT_DONE = 3,
1: + VCHIQ_BULK_RECEIVE_DONE = 4,
1: + VCHIQ_BULK_TRANSMIT_ABORTED = 5,
1: + VCHIQ_BULK_RECEIVE_ABORTED = 6,
1: +};
1: +
1: +enum vchiq_status {
1: + VCHIQ_ERROR = 4294967295,
1: + VCHIQ_SUCCESS = 0,
1: + VCHIQ_RETRY = 1,
1: +};
1: +
1: +enum vchiq_bulk_mode {
1: + VCHIQ_BULK_MODE_CALLBACK = 0,
1: + VCHIQ_BULK_MODE_BLOCKING = 1,
1: + VCHIQ_BULK_MODE_NOCALLBACK = 2,
1: + VCHIQ_BULK_MODE_WAITING = 3,
1: +};
1: +
1: +enum vchiq_service_option {
1: + VCHIQ_SERVICE_OPTION_AUTOCLOSE = 0,
1: + VCHIQ_SERVICE_OPTION_SLOT_QUOTA = 1,
1: + VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA = 2,
1: + VCHIQ_SERVICE_OPTION_SYNCHRONOUS = 3,
1: + VCHIQ_SERVICE_OPTION_TRACE = 4,
1: +};
1: +
1: +struct vchiq_header {
1: + int msgid;
1: + unsigned int size;
1: + char data[0];
1: +};
1: +
1: +struct vchiq_service_base {
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: + void *userdata;
1: +};
1: +
1: +struct vchiq_service_params_kernel {
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: + void *userdata;
1: + short int version;
1: + short int version_min;
1: +};
1: +
1: +typedef uint32_t BITSET_T;
1: +
1: +enum {
1: + DEBUG_ENTRIES = 0,
1: + DEBUG_SLOT_HANDLER_COUNT = 1,
1: + DEBUG_SLOT_HANDLER_LINE = 2,
1: + DEBUG_PARSE_LINE = 3,
1: + DEBUG_PARSE_HEADER = 4,
1: + DEBUG_PARSE_MSGID = 5,
1: + DEBUG_AWAIT_COMPLETION_LINE = 6,
1: + DEBUG_DEQUEUE_MESSAGE_LINE = 7,
1: + DEBUG_SERVICE_CALLBACK_LINE = 8,
1: + DEBUG_MSG_QUEUE_FULL_COUNT = 9,
1: + DEBUG_COMPLETION_QUEUE_FULL_COUNT = 10,
1: + DEBUG_MAX = 11,
1: +};
1: +
1: +enum vchiq_connstate {
1: + VCHIQ_CONNSTATE_DISCONNECTED = 0,
1: + VCHIQ_CONNSTATE_CONNECTING = 1,
1: + VCHIQ_CONNSTATE_CONNECTED = 2,
1: + VCHIQ_CONNSTATE_PAUSING = 3,
1: + VCHIQ_CONNSTATE_PAUSE_SENT = 4,
1: + VCHIQ_CONNSTATE_PAUSED = 5,
1: + VCHIQ_CONNSTATE_RESUMING = 6,
1: + VCHIQ_CONNSTATE_PAUSE_TIMEOUT = 7,
1: + VCHIQ_CONNSTATE_RESUME_TIMEOUT = 8,
1: +};
1: +
1: +enum {
1: + VCHIQ_SRVSTATE_FREE = 0,
1: + VCHIQ_SRVSTATE_HIDDEN = 1,
1: + VCHIQ_SRVSTATE_LISTENING = 2,
1: + VCHIQ_SRVSTATE_OPENING = 3,
1: + VCHIQ_SRVSTATE_OPEN = 4,
1: + VCHIQ_SRVSTATE_OPENSYNC = 5,
1: + VCHIQ_SRVSTATE_CLOSESENT = 6,
1: + VCHIQ_SRVSTATE_CLOSERECVD = 7,
1: + VCHIQ_SRVSTATE_CLOSEWAIT = 8,
1: + VCHIQ_SRVSTATE_CLOSED = 9,
1: +};
1: +
1: +enum {
1: + VCHIQ_POLL_TERMINATE = 0,
1: + VCHIQ_POLL_REMOVE = 1,
1: + VCHIQ_POLL_TXNOTIFY = 2,
1: + VCHIQ_POLL_RXNOTIFY = 3,
1: + VCHIQ_POLL_COUNT = 4,
1: +};
1: +
1: +enum vchiq_bulk_dir {
1: + VCHIQ_BULK_TRANSMIT = 0,
1: + VCHIQ_BULK_RECEIVE = 1,
1: +};
1: +
1: +typedef void (*vchiq_userdata_term)(void *);
1: +
1: +struct vchiq_bulk {
1: + short int mode;
1: + short int dir;
1: + void *userdata;
1: + dma_addr_t data;
1: + int size;
1: + void *remote_data;
1: + int remote_size;
1: + int actual;
1: +};
1: +
1: +struct vchiq_bulk_queue {
1: + int local_insert;
1: + int remote_insert;
1: + int process;
1: + int remote_notify;
1: + int remove;
1: + struct vchiq_bulk bulks[4];
1: +};
1: +
1: +struct remote_event {
1: + int armed;
1: + int fired;
1: + u32 __unused;
1: +};
1: +
1: +struct vchiq_slot {
1: + char data[4096];
1: +};
1: +
1: +struct vchiq_slot_info {
1: + short int use_count;
1: + short int release_count;
1: +};
1: +
1: +struct service_stats_struct {
1: + int quota_stalls;
1: + int slot_stalls;
1: + int bulk_stalls;
1: + int error_count;
1: + int ctrl_tx_count;
1: + int ctrl_rx_count;
1: + int bulk_tx_count;
1: + int bulk_rx_count;
1: + int bulk_aborted_count;
1: + uint64_t ctrl_tx_bytes;
1: + uint64_t ctrl_rx_bytes;
1: + uint64_t bulk_tx_bytes;
1: + uint64_t bulk_rx_bytes;
1: +};
1: +
1: +struct vchiq_state;
1: +
1: +struct vchiq_instance;
1: +
1: +struct vchiq_service {
1: + struct vchiq_service_base base;
1: + unsigned int handle;
1: + struct kref ref_count;
1: + struct callback_head rcu;
1: + int srvstate;
1: + vchiq_userdata_term userdata_term;
1: + unsigned int localport;
1: + unsigned int remoteport;
1: + int public_fourcc;
1: + int client_id;
1: + char auto_close;
1: + char sync;
1: + char closing;
1: + char trace;
1: + atomic_t poll_flags;
1: + short int version;
1: + short int version_min;
1: + short int peer_version;
1: + struct vchiq_state *state;
1: + struct vchiq_instance *instance;
1: + int service_use_count;
1: + struct vchiq_bulk_queue bulk_tx;
1: + struct vchiq_bulk_queue bulk_rx;
1: + struct completion remove_event;
1: + struct completion bulk_remove_event;
1: + struct mutex bulk_mutex;
1: + struct service_stats_struct stats;
1: + int msg_queue_read;
1: + int msg_queue_write;
1: + struct completion msg_queue_pop;
1: + struct completion msg_queue_push;
1: + struct vchiq_header *msg_queue[128];
1: +};
1: +
1: +struct state_stats_struct {
1: + int slot_stalls;
1: + int data_stalls;
1: + int ctrl_tx_count;
1: + int ctrl_rx_count;
1: + int error_count;
1: +};
1: +
1: +struct vchiq_service_quota {
1: + short unsigned int slot_quota;
1: + short unsigned int slot_use_count;
1: + short unsigned int message_quota;
1: + short unsigned int message_use_count;
1: + struct completion quota_event;
1: + int previous_tx_index;
1: +};
1: +
1: +struct opaque_platform_state;
1: +
1: +struct vchiq_shared_state;
1: +
1: +struct vchiq_state {
1: + int id;
1: + int initialised;
1: + enum vchiq_connstate conn_state;
1: + short int version_common;
1: + struct vchiq_shared_state *local;
1: + struct vchiq_shared_state *remote;
1: + struct vchiq_slot *slot_data;
1: + short unsigned int default_slot_quota;
1: + short unsigned int default_message_quota;
1: + struct completion connect;
1: + struct mutex mutex;
1: + struct vchiq_instance **instance;
1: + struct task_struct *slot_handler_thread;
1: + struct task_struct *recycle_thread;
1: + struct task_struct *sync_thread;
1: + wait_queue_head_t trigger_event;
1: + wait_queue_head_t recycle_event;
1: + wait_queue_head_t sync_trigger_event;
1: + wait_queue_head_t sync_release_event;
1: + char *tx_data;
1: + char *rx_data;
1: + struct vchiq_slot_info *rx_info;
1: + struct mutex slot_mutex;
1: + struct mutex recycle_mutex;
1: + struct mutex sync_mutex;
1: + struct mutex bulk_transfer_mutex;
1: + int rx_pos;
1: + int local_tx_pos;
1: + int slot_queue_available;
1: + int poll_needed;
1: + int previous_data_index;
1: + short unsigned int data_use_count;
1: + short unsigned int data_quota;
1: + atomic_t poll_services[128];
1: + int unused_service;
1: + struct completion slot_available_event;
1: + struct completion slot_remove_event;
1: + struct completion data_quota_event;
1: + struct state_stats_struct stats;
1: + struct vchiq_service *services[4096];
1: + struct vchiq_service_quota service_quotas[4096];
1: + struct vchiq_slot_info slot_info[128];
1: + struct opaque_platform_state *platform_state;
1: +};
1: +
1: +struct vchiq_shared_state {
1: + int initialised;
1: + int slot_first;
1: + int slot_last;
1: + int slot_sync;
1: + struct remote_event trigger;
1: + int tx_pos;
1: + struct remote_event recycle;
1: + int slot_queue_recycle;
1: + struct remote_event sync_trigger;
1: + struct remote_event sync_release;
1: + int slot_queue[64];
1: + int debug[11];
1: +};
1: +
1: +struct vchiq_slot_zero {
1: + int magic;
1: + short int version;
1: + short int version_min;
1: + int slot_zero_size;
1: + int slot_size;
1: + int max_slots;
1: + int max_slots_per_side;
1: + int platform_data[2];
1: + struct vchiq_shared_state master;
1: + struct vchiq_shared_state slave;
1: + struct vchiq_slot_info slots[128];
1: +};
1: +
1: +struct bulk_waiter {
1: + struct vchiq_bulk *bulk;
1: + struct completion event;
1: + int actual;
1: +};
1: +
1: +struct vchiq_config {
1: + unsigned int max_msg_size;
1: + unsigned int bulk_threshold;
1: + unsigned int max_outstanding_bulks;
1: + unsigned int max_services;
1: + short int version;
1: + short int version_min;
1: +};
1: +
1: +struct vchiq_open_payload {
1: + int fourcc;
1: + int client_id;
1: + short int version;
1: + short int version_min;
1: +};
1: +
1: +struct vchiq_openack_payload {
1: + short int version;
1: +};
1: +
1: +enum {
1: + QMFLAGS_IS_BLOCKING = 1,
1: + QMFLAGS_NO_MUTEX_LOCK = 2,
1: + QMFLAGS_NO_MUTEX_UNLOCK = 4,
1: +};
1: +
1: +struct vchiq_element {
1: + const void *data;
1: + unsigned int size;
1: +};
1: +
1: +struct vchiq_completion_data_kernel {
1: + enum vchiq_reason reason;
1: + struct vchiq_header *header;
1: + void *service_userdata;
1: + void *bulk_userdata;
1: +};
1: +
1: +struct vchiq_debugfs_node {
1: + struct dentry *dentry;
1: +};
1: +
1: +struct vchiq_instance {
1: + struct vchiq_state *state;
1: + struct vchiq_completion_data_kernel completions[128];
1: + int completion_insert;
1: + int completion_remove;
1: + struct completion insert_event;
1: + struct completion remove_event;
1: + struct mutex completion_mutex;
1: + int connected;
1: + int closing;
1: + int pid;
1: + int mark;
1: + int use_close_delivered;
1: + int trace;
1: + struct list_head bulk_waiter_list;
1: + struct mutex bulk_waiter_list_mutex;
1: + struct vchiq_debugfs_node debugfs_node;
1: +};
1: +
1: +struct vchiq_service_params {
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: + void *userdata;
1: + short int version;
1: + short int version_min;
1: +};
1: +
1: +struct vchiq_create_service {
1: + struct vchiq_service_params params;
1: + int is_open;
1: + int is_vchi;
1: + unsigned int handle;
1: +};
1: +
1: +struct vchiq_queue_message {
1: + unsigned int handle;
1: + unsigned int count;
1: + const struct vchiq_element *elements;
1: +};
1: +
1: +struct vchiq_queue_bulk_transfer {
1: + unsigned int handle;
1: + void *data;
1: + unsigned int size;
1: + void *userdata;
1: + enum vchiq_bulk_mode mode;
1: +};
1: +
1: +struct vchiq_completion_data {
1: + enum vchiq_reason reason;
1: + struct vchiq_header *header;
1: + void *service_userdata;
1: + void *bulk_userdata;
1: +};
1: +
1: +struct vchiq_await_completion {
1: + unsigned int count;
1: + struct vchiq_completion_data *buf;
1: + unsigned int msgbufsize;
1: + unsigned int msgbufcount;
1: + void **msgbufs;
1: +};
1: +
1: +struct vchiq_dequeue_message {
1: + unsigned int handle;
1: + int blocking;
1: + unsigned int bufsize;
1: + void *buf;
1: +};
1: +
1: +struct vchiq_get_config {
1: + unsigned int config_size;
1: + struct vchiq_config *pconfig;
1: +};
1: +
1: +struct vchiq_set_service_option {
1: + unsigned int handle;
1: + enum vchiq_service_option option;
1: + int value;
1: +};
1: +
1: +enum USE_TYPE_E {
1: + USE_TYPE_SERVICE = 0,
1: + USE_TYPE_VCHIQ = 1,
1: +};
1: +
1: +struct vchiq_arm_state {
1: + struct task_struct *ka_thread;
1: + struct completion ka_evt;
1: + atomic_t ka_use_count;
1: + atomic_t ka_use_ack_count;
1: + atomic_t ka_release_count;
1: + rwlock_t susp_res_lock;
1: + struct vchiq_state *state;
1: + int videocore_use_count;
1: + int peer_use_count;
1: + int first_connect;
1: +};
1: +
1: +struct vchiq_drvdata {
1: + const unsigned int cache_line_size;
1: + struct rpi_firmware *fw;
1: +};
1: +
1: +struct user_service {
1: + struct vchiq_service *service;
1: + void *userdata;
1: + struct vchiq_instance *instance;
1: + char is_vchi;
1: + char dequeue_pending;
1: + char close_pending;
1: + int message_available_pos;
1: + int msg_insert;
1: + int msg_remove;
1: + struct completion insert_event;
1: + struct completion remove_event;
1: + struct completion close_event;
1: + struct vchiq_header *msg_queue[128];
1: +};
1: +
1: +struct bulk_waiter_node {
1: + struct bulk_waiter bulk_waiter;
1: + int pid;
1: + struct list_head list;
1: +};
1: +
1: +struct dump_context {
1: + char *buf;
1: + size_t actual;
1: + size_t space;
1: + loff_t offset;
1: +};
1: +
1: +struct vchiq_io_copy_callback_context {
1: + struct vchiq_element *element;
1: + size_t element_offset;
1: + long unsigned int elements_to_go;
1: +};
1: +
1: +struct vchiq_completion_data32 {
1: + enum vchiq_reason reason;
1: + compat_uptr_t header;
1: + compat_uptr_t service_userdata;
1: + compat_uptr_t bulk_userdata;
1: +};
1: +
1: +struct vchiq_service_params32 {
1: + int fourcc;
1: + compat_uptr_t callback;
1: + compat_uptr_t userdata;
1: + short int version;
1: + short int version_min;
1: +};
1: +
1: +struct vchiq_create_service32 {
1: + struct vchiq_service_params32 params;
1: + int is_open;
1: + int is_vchi;
1: + unsigned int handle;
1: +};
1: +
1: +struct vchiq_element32 {
1: + compat_uptr_t data;
1: + unsigned int size;
1: +};
1: +
1: +struct vchiq_queue_message32 {
1: + unsigned int handle;
1: + unsigned int count;
1: + compat_uptr_t elements;
1: +};
1: +
1: +struct vchiq_queue_bulk_transfer32 {
1: + unsigned int handle;
1: + compat_uptr_t data;
1: + unsigned int size;
1: + compat_uptr_t userdata;
1: + enum vchiq_bulk_mode mode;
1: +};
1: +
1: +struct vchiq_await_completion32 {
1: + unsigned int count;
1: + compat_uptr_t buf;
1: + unsigned int msgbufsize;
1: + unsigned int msgbufcount;
1: + compat_uptr_t msgbufs;
1: +};
1: +
1: +struct vchiq_dequeue_message32 {
1: + unsigned int handle;
1: + int blocking;
1: + unsigned int bufsize;
1: + compat_uptr_t buf;
1: +};
1: +
1: +struct vchiq_get_config32 {
1: + unsigned int config_size;
1: + compat_uptr_t pconfig;
1: +};
1: +
1: +struct service_data_struct {
1: + int fourcc;
1: + int clientid;
1: + int use_count;
1: +};
1: +
1: +struct pagelist {
1: + u32 length;
1: + u16 type;
1: + u16 offset;
1: + u32 addrs[1];
1: +};
1: +
1: +struct vchiq_2835_state {
1: + int inited;
1: + struct vchiq_arm_state arm_state;
1: +};
1: +
1: +struct vchiq_pagelist_info {
1: + struct pagelist *pagelist;
1: + size_t pagelist_buffer_size;
1: + dma_addr_t dma_addr;
1: + enum dma_data_direction dma_dir;
1: + unsigned int num_pages;
1: + unsigned int pages_need_release;
1: + struct page **pages;
1: + struct scatterlist *scatterlist;
1: + unsigned int scatterlist_mapped;
1: +};
1: +
1: +struct vchiq_debugfs_log_entry {
1: + const char *name;
1: + void *plevel;
1: +};
1: +
1: +typedef void (*VCHIQ_CONNECTED_CALLBACK_T)();
1: +
1: +enum ec_status {
1: + EC_RES_SUCCESS = 0,
1: + EC_RES_INVALID_COMMAND = 1,
1: + EC_RES_ERROR = 2,
1: + EC_RES_INVALID_PARAM = 3,
1: + EC_RES_ACCESS_DENIED = 4,
1: + EC_RES_INVALID_RESPONSE = 5,
1: + EC_RES_INVALID_VERSION = 6,
1: + EC_RES_INVALID_CHECKSUM = 7,
1: + EC_RES_IN_PROGRESS = 8,
1: + EC_RES_UNAVAILABLE = 9,
1: + EC_RES_TIMEOUT = 10,
1: + EC_RES_OVERFLOW = 11,
1: + EC_RES_INVALID_HEADER = 12,
1: + EC_RES_REQUEST_TRUNCATED = 13,
1: + EC_RES_RESPONSE_TOO_BIG = 14,
1: + EC_RES_BUS_ERROR = 15,
1: + EC_RES_BUSY = 16,
1: + EC_RES_INVALID_HEADER_VERSION = 17,
1: + EC_RES_INVALID_HEADER_CRC = 18,
1: + EC_RES_INVALID_DATA_CRC = 19,
1: + EC_RES_DUP_UNAVAILABLE = 20,
1: +};
1: +
1: +enum host_event_code {
1: + EC_HOST_EVENT_LID_CLOSED = 1,
1: + EC_HOST_EVENT_LID_OPEN = 2,
1: + EC_HOST_EVENT_POWER_BUTTON = 3,
1: + EC_HOST_EVENT_AC_CONNECTED = 4,
1: + EC_HOST_EVENT_AC_DISCONNECTED = 5,
1: + EC_HOST_EVENT_BATTERY_LOW = 6,
1: + EC_HOST_EVENT_BATTERY_CRITICAL = 7,
1: + EC_HOST_EVENT_BATTERY = 8,
1: + EC_HOST_EVENT_THERMAL_THRESHOLD = 9,
1: + EC_HOST_EVENT_DEVICE = 10,
1: + EC_HOST_EVENT_THERMAL = 11,
1: + EC_HOST_EVENT_USB_CHARGER = 12,
1: + EC_HOST_EVENT_KEY_PRESSED = 13,
1: + EC_HOST_EVENT_INTERFACE_READY = 14,
1: + EC_HOST_EVENT_KEYBOARD_RECOVERY = 15,
1: + EC_HOST_EVENT_THERMAL_SHUTDOWN = 16,
1: + EC_HOST_EVENT_BATTERY_SHUTDOWN = 17,
1: + EC_HOST_EVENT_THROTTLE_START = 18,
1: + EC_HOST_EVENT_THROTTLE_STOP = 19,
1: + EC_HOST_EVENT_HANG_DETECT = 20,
1: + EC_HOST_EVENT_HANG_REBOOT = 21,
1: + EC_HOST_EVENT_PD_MCU = 22,
1: + EC_HOST_EVENT_BATTERY_STATUS = 23,
1: + EC_HOST_EVENT_PANIC = 24,
1: + EC_HOST_EVENT_KEYBOARD_FASTBOOT = 25,
1: + EC_HOST_EVENT_RTC = 26,
1: + EC_HOST_EVENT_MKBP = 27,
1: + EC_HOST_EVENT_USB_MUX = 28,
1: + EC_HOST_EVENT_MODE_CHANGE = 29,
1: + EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT = 30,
1: + EC_HOST_EVENT_WOV = 31,
1: + EC_HOST_EVENT_INVALID = 32,
1: +};
1: +
1: +struct ec_host_request {
1: + uint8_t struct_version;
1: + uint8_t checksum;
1: + uint16_t command;
1: + uint8_t command_version;
1: + uint8_t reserved;
1: + uint16_t data_len;
1: +};
1: +
1: +struct ec_params_hello {
1: + uint32_t in_data;
1: +};
1: +
1: +struct ec_response_hello {
1: + uint32_t out_data;
1: +};
1: +
1: +struct ec_params_get_cmd_versions {
1: + uint8_t cmd;
1: +};
1: +
1: +struct ec_response_get_cmd_versions {
1: + uint32_t version_mask;
1: +};
1: +
1: +enum ec_comms_status {
1: + EC_COMMS_STATUS_PROCESSING = 1,
1: +};
1: +
1: +struct ec_response_get_comms_status {
1: + uint32_t flags;
1: +};
1: +
1: +struct ec_response_get_protocol_info {
1: + uint32_t protocol_versions;
1: + uint16_t max_request_packet_size;
1: + uint16_t max_response_packet_size;
1: + uint32_t flags;
1: +};
1: +
1: +enum ec_led_colors {
1: + EC_LED_COLOR_RED = 0,
1: + EC_LED_COLOR_GREEN = 1,
1: + EC_LED_COLOR_BLUE = 2,
1: + EC_LED_COLOR_YELLOW = 3,
1: + EC_LED_COLOR_WHITE = 4,
1: + EC_LED_COLOR_AMBER = 5,
1: + EC_LED_COLOR_COUNT = 6,
1: +};
1: +
1: +enum motionsense_command {
1: + MOTIONSENSE_CMD_DUMP = 0,
1: + MOTIONSENSE_CMD_INFO = 1,
1: + MOTIONSENSE_CMD_EC_RATE = 2,
1: + MOTIONSENSE_CMD_SENSOR_ODR = 3,
1: + MOTIONSENSE_CMD_SENSOR_RANGE = 4,
1: + MOTIONSENSE_CMD_KB_WAKE_ANGLE = 5,
1: + MOTIONSENSE_CMD_DATA = 6,
1: + MOTIONSENSE_CMD_FIFO_INFO = 7,
1: + MOTIONSENSE_CMD_FIFO_FLUSH = 8,
1: + MOTIONSENSE_CMD_FIFO_READ = 9,
1: + MOTIONSENSE_CMD_PERFORM_CALIB = 10,
1: + MOTIONSENSE_CMD_SENSOR_OFFSET = 11,
1: + MOTIONSENSE_CMD_LIST_ACTIVITIES = 12,
1: + MOTIONSENSE_CMD_SET_ACTIVITY = 13,
1: + MOTIONSENSE_CMD_LID_ANGLE = 14,
1: + MOTIONSENSE_CMD_FIFO_INT_ENABLE = 15,
1: + MOTIONSENSE_CMD_SPOOF = 16,
1: + MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE = 17,
1: + MOTIONSENSE_CMD_SENSOR_SCALE = 18,
1: + MOTIONSENSE_NUM_CMDS = 19,
1: +};
1: +
1: +struct ec_response_motion_sensor_data {
1: + uint8_t flags;
1: + uint8_t sensor_num;
1: + union {
1: + int16_t data[3];
1: + struct {
1: + uint16_t reserved;
1: + uint32_t timestamp;
1: + } __attribute__((packed));
1: + struct {
1: + uint8_t activity;
1: + uint8_t state;
1: + int16_t add_info[2];
1: + };
1: + };
1: +} __attribute__((packed));
1: +
1: +struct ec_response_motion_sense_fifo_info {
1: + uint16_t size;
1: + uint16_t count;
1: + uint32_t timestamp;
1: + uint16_t total_lost;
1: + uint16_t lost[0];
1: +} __attribute__((packed));
1: +
1: +struct ec_response_motion_sense_fifo_data {
1: + uint32_t number_data;
1: + struct ec_response_motion_sensor_data data[0];
1: +};
1: +
1: +struct ec_motion_sense_activity {
1: + uint8_t sensor_num;
1: + uint8_t activity;
1: + uint8_t enable;
1: + uint8_t reserved;
1: + uint16_t parameters[3];
1: +};
1: +
1: +struct ec_params_motion_sense {
1: + uint8_t cmd;
1: + union {
1: + struct {
1: + uint8_t max_sensor_count;
1: + } dump;
1: + struct {
1: + int16_t data;
1: + } kb_wake_angle;
1: + struct {
1: + uint8_t sensor_num;
1: + } info;
1: + struct {
1: + uint8_t sensor_num;
1: + } info_3;
1: + struct {
1: + uint8_t sensor_num;
1: + } data;
1: + struct {
1: + uint8_t sensor_num;
1: + } fifo_flush;
1: + struct {
1: + uint8_t sensor_num;
1: + } perform_calib;
1: + struct {
1: + uint8_t sensor_num;
1: + } list_activities;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } ec_rate;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } sensor_odr;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } sensor_range;
1: + struct {
1: + uint8_t sensor_num;
1: + uint16_t flags;
1: + int16_t temp;
1: + int16_t offset[3];
1: + } __attribute__((packed)) sensor_offset;
1: + struct {
1: + uint8_t sensor_num;
1: + uint16_t flags;
1: + int16_t temp;
1: + uint16_t scale[3];
1: + } __attribute__((packed)) sensor_scale;
1: + struct {
1: + uint32_t max_data_vector;
1: + } fifo_read;
1: + struct ec_motion_sense_activity set_activity;
1: + struct {
1: + int8_t enable;
1: + } fifo_int_enable;
1: + struct {
1: + uint8_t sensor_id;
1: + uint8_t spoof_enable;
1: + uint8_t reserved;
1: + int16_t components[3];
1: + } __attribute__((packed)) spoof;
1: + struct {
1: + int16_t lid_angle;
1: + int16_t hys_degree;
1: + } tablet_mode_threshold;
1: + };
1: +} __attribute__((packed));
1: +
1: +struct ec_response_motion_sense {
1: + union {
1: + struct {
1: + uint8_t module_flags;
1: + uint8_t sensor_count;
1: + struct ec_response_motion_sensor_data sensor[0];
1: + } __attribute__((packed)) dump;
1: + struct {
1: + uint8_t type;
1: + uint8_t location;
1: + uint8_t chip;
1: + } info;
1: + struct {
1: + uint8_t type;
1: + uint8_t location;
1: + uint8_t chip;
1: + uint32_t min_frequency;
1: + uint32_t max_frequency;
1: + uint32_t fifo_max_event_count;
1: + } info_3;
1: + struct ec_response_motion_sensor_data data;
1: + struct {
1: + int32_t ret;
1: + } ec_rate;
1: + struct {
1: + int32_t ret;
1: + } sensor_odr;
1: + struct {
1: + int32_t ret;
1: + } sensor_range;
1: + struct {
1: + int32_t ret;
1: + } kb_wake_angle;
1: + struct {
1: + int32_t ret;
1: + } fifo_int_enable;
1: + struct {
1: + int32_t ret;
1: + } spoof;
1: + struct {
1: + int16_t temp;
1: + int16_t offset[3];
1: + } sensor_offset;
1: + struct {
1: + int16_t temp;
1: + int16_t offset[3];
1: + } perform_calib;
1: + struct {
1: + int16_t temp;
1: + uint16_t scale[3];
1: + } sensor_scale;
1: + struct ec_response_motion_sense_fifo_info fifo_info;
1: + struct ec_response_motion_sense_fifo_info fifo_flush;
1: + struct ec_response_motion_sense_fifo_data fifo_read;
1: + struct {
1: + uint16_t reserved;
1: + uint32_t enabled;
1: + uint32_t disabled;
1: + } __attribute__((packed)) list_activities;
1: + struct {
1: + uint16_t value;
1: + } lid_angle;
1: + struct {
1: + uint16_t lid_angle;
1: + uint16_t hys_degree;
1: + } tablet_mode_threshold;
1: + };
1: +};
1: +
1: +enum ec_temp_thresholds {
1: + EC_TEMP_THRESH_WARN = 0,
1: + EC_TEMP_THRESH_HIGH = 1,
1: + EC_TEMP_THRESH_HALT = 2,
1: + EC_TEMP_THRESH_COUNT = 3,
1: +};
1: +
1: +enum ec_mkbp_event {
1: + EC_MKBP_EVENT_KEY_MATRIX = 0,
1: + EC_MKBP_EVENT_HOST_EVENT = 1,
1: + EC_MKBP_EVENT_SENSOR_FIFO = 2,
1: + EC_MKBP_EVENT_BUTTON = 3,
1: + EC_MKBP_EVENT_SWITCH = 4,
1: + EC_MKBP_EVENT_FINGERPRINT = 5,
1: + EC_MKBP_EVENT_SYSRQ = 6,
1: + EC_MKBP_EVENT_HOST_EVENT64 = 7,
1: + EC_MKBP_EVENT_CEC_EVENT = 8,
1: + EC_MKBP_EVENT_CEC_MESSAGE = 9,
1: + EC_MKBP_EVENT_COUNT = 10,
1: +};
1: +
1: +union ec_response_get_next_data_v1 {
1: + uint8_t key_matrix[16];
1: + uint32_t host_event;
1: + uint64_t host_event64;
1: + struct {
1: + uint8_t reserved[3];
1: + struct ec_response_motion_sense_fifo_info info;
1: + } __attribute__((packed)) sensor_fifo;
1: + uint32_t buttons;
1: + uint32_t switches;
1: + uint32_t fp_events;
1: + uint32_t sysrq;
1: + uint32_t cec_events;
1: + uint8_t cec_message[16];
1: +};
1: +
1: +struct ec_response_get_next_event_v1 {
1: + uint8_t event_type;
1: + union ec_response_get_next_data_v1 data;
1: +} __attribute__((packed));
1: +
1: +struct ec_response_host_event_mask {
1: + uint32_t mask;
1: +};
1: +
1: +enum {
1: + EC_MSG_TX_HEADER_BYTES = 3,
1: + EC_MSG_TX_TRAILER_BYTES = 1,
1: + EC_MSG_TX_PROTO_BYTES = 4,
1: + EC_MSG_RX_PROTO_BYTES = 3,
1: + EC_PROTO2_MSG_BYTES = 256,
1: + EC_MAX_MSG_BYTES = 65536,
1: +};
1: +
1: +struct cros_ec_command {
1: + uint32_t version;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + uint32_t result;
1: + uint8_t data[0];
1: +};
1: +
1: +struct platform_device___2;
1: +
1: +struct cros_ec_device {
1: + const char *phys_name;
1: + struct device *dev;
1: + bool was_wake_device;
1: + struct class *cros_class;
1: + int (*cmd_readmem)(struct cros_ec_device *, unsigned int, unsigned int, void *);
1: + u16 max_request;
1: + u16 max_response;
1: + u16 max_passthru;
1: + u16 proto_version;
1: + void *priv;
1: + int irq;
1: + u8 *din;
1: + u8 *dout;
1: + int din_size;
1: + int dout_size;
1: + bool wake_enabled;
1: + bool suspended;
1: + int (*cmd_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: + int (*pkt_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: + struct mutex lock;
1: + u8 mkbp_event_supported;
1: + bool host_sleep_v1;
1: + struct blocking_notifier_head event_notifier;
1: + struct ec_response_get_next_event_v1 event_data;
1: + int event_size;
1: + u32 host_event_wake_mask;
1: + u32 last_resume_result;
1: + ktime_t last_event_time;
1: + struct notifier_block notifier_ready;
1: + struct platform_device___2 *ec;
1: + struct platform_device___2 *pd;
1: +};
1: +
1: +struct cros_ec_debugfs;
1: +
1: +struct cros_ec_dev {
1: + struct device class_dev;
1: + struct cros_ec_device *ec_dev;
1: + struct device *dev;
1: + struct cros_ec_debugfs *debug_info;
1: + bool has_kb_wake_angle;
1: + u16 cmd_offset;
1: + u32 features[2];
1: +};
1: +
1: +struct trace_event_raw_cros_ec_request_start {
1: + struct trace_entry ent;
1: + uint32_t version;
1: + uint32_t offset;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cros_ec_request_done {
1: + struct trace_entry ent;
1: + uint32_t version;
1: + uint32_t offset;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + uint32_t result;
1: + int retval;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cros_ec_request_start {};
1: +
1: +struct trace_event_data_offsets_cros_ec_request_done {};
1: +
1: +typedef void (*btf_trace_cros_ec_request_start)(void *, struct cros_ec_command *);
1: +
1: +typedef void (*btf_trace_cros_ec_request_done)(void *, struct cros_ec_command *, int);
1: +
1: +struct platform_mhu_link {
1: + int irq;
1: + void *tx_reg;
1: + void *rx_reg;
1: +};
1: +
1: +struct platform_mhu {
1: + void *base;
1: + struct platform_mhu_link mlink[3];
1: + struct mbox_chan chan[3];
1: + struct mbox_controller mbox;
1: +};
1: +
1: +struct acpi_table_pcct {
1: + struct acpi_table_header header;
1: + u32 flags;
1: + u64 reserved;
1: +};
1: +
1: +enum acpi_pcct_type {
1: + ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
1: + ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
1: + ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2,
1: + ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE = 3,
1: + ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE = 4,
1: + ACPI_PCCT_TYPE_RESERVED = 5,
1: +};
1: +
1: +struct acpi_pcct_subspace {
1: + struct acpi_subtable_header header;
1: + u8 reserved[6];
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: +} __attribute__((packed));
1: +
1: +struct acpi_pcct_hw_reduced_type2 {
1: + struct acpi_subtable_header header;
1: + u32 platform_interrupt;
1: + u8 flags;
1: + u8 reserved;
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: + struct acpi_generic_address platform_ack_register;
1: + u64 ack_preserve_mask;
1: + u64 ack_write_mask;
1: +} __attribute__((packed));
1: +
1: +struct bcm2835_mbox {
1: + void *regs;
1: + spinlock_t lock;
1: + struct mbox_controller controller;
1: +};
1: +
1: +struct slimpro_mbox_chan {
1: + struct device *dev;
1: + struct mbox_chan *chan;
1: + void *reg;
1: + int irq;
1: + u32 rx_msg[3];
1: +};
1: +
1: +struct slimpro_mbox {
1: + struct mbox_controller mb_ctrl;
1: + struct slimpro_mbox_chan mc[8];
1: + struct mbox_chan chans[8];
1: +};
1: +
1: +struct hi3660_chan_info {
1: + unsigned int dst_irq;
1: + unsigned int ack_irq;
1: +};
1: +
1: +struct hi3660_mbox {
1: + struct device *dev;
1: + void *base;
1: + struct mbox_chan chan[32];
1: + struct hi3660_chan_info mchan[32];
1: + struct mbox_controller controller;
1: +};
1: +
1: +struct hi6220_mbox;
1: +
1: +struct hi6220_mbox_chan {
1: + unsigned int dir;
1: + unsigned int dst_irq;
1: + unsigned int ack_irq;
1: + unsigned int slot;
1: + struct hi6220_mbox *parent;
1: +};
1: +
1: +struct hi6220_mbox {
1: + struct device *dev;
1: + int irq;
1: + bool tx_irq_mode;
1: + void *ipc;
1: + void *base;
1: + unsigned int chan_num;
1: + struct hi6220_mbox_chan *mchan;
1: + void *irq_map_chan[32];
1: + struct mbox_chan *chan;
1: + struct mbox_controller controller;
1: +};
1: +
1: +struct tegra_hsp;
1: +
1: +struct tegra_hsp_channel {
1: + struct tegra_hsp *hsp;
1: + struct mbox_chan *chan;
1: + void *regs;
1: +};
1: +
1: +struct tegra_hsp_soc;
1: +
1: +struct tegra_hsp_mailbox;
1: +
1: +struct tegra_hsp {
1: + struct device *dev;
1: + const struct tegra_hsp_soc *soc;
1: + struct mbox_controller mbox_db;
1: + struct mbox_controller mbox_sm;
1: + void *regs;
1: + unsigned int doorbell_irq;
1: + unsigned int *shared_irqs;
1: + unsigned int shared_irq;
1: + unsigned int num_sm;
1: + unsigned int num_as;
1: + unsigned int num_ss;
1: + unsigned int num_db;
1: + unsigned int num_si;
1: + spinlock_t lock;
1: + struct list_head doorbells;
1: + struct tegra_hsp_mailbox *mailboxes;
1: + long unsigned int mask;
1: +};
1: +
1: +struct tegra_hsp_doorbell {
1: + struct tegra_hsp_channel channel;
1: + struct list_head list;
1: + const char *name;
1: + unsigned int master;
1: + unsigned int index;
1: +};
1: +
1: +struct tegra_hsp_mailbox {
1: + struct tegra_hsp_channel channel;
1: + unsigned int index;
1: + bool producer;
1: +};
1: +
1: +struct tegra_hsp_db_map {
1: + const char *name;
1: + unsigned int master;
1: + unsigned int index;
1: +};
1: +
1: +struct tegra_hsp_soc {
1: + const struct tegra_hsp_db_map *map;
1: + bool has_per_mb_ie;
1: +};
1: +
1: +struct sun6i_msgbox {
1: + struct mbox_controller controller;
1: + struct clk *clk;
1: + spinlock_t lock;
1: + void *regs;
1: +};
1: +
1: +struct hwspinlock___2;
1: +
1: +struct hwspinlock_ops {
1: + int (*trylock)(struct hwspinlock___2 *);
1: + void (*unlock)(struct hwspinlock___2 *);
1: + void (*relax)(struct hwspinlock___2 *);
1: +};
1: +
1: +struct hwspinlock_device;
1: +
1: +struct hwspinlock___2 {
1: + struct hwspinlock_device *bank;
1: + spinlock_t lock;
1: + void *priv;
1: +};
1: +
1: +struct hwspinlock_device {
1: + struct device *dev;
1: + const struct hwspinlock_ops *ops;
1: + int base_id;
1: + int num_locks;
1: + struct hwspinlock___2 lock[0];
1: +};
1: +
1: +struct regmap_field___2;
1: +
1: +struct devfreq_freqs {
1: + long unsigned int old;
1: + long unsigned int new;
1: +};
1: +
1: +struct devfreq_passive_data {
1: + struct devfreq *parent;
1: + int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: + struct devfreq *this;
1: + struct notifier_block nb;
1: +};
1: +
1: +struct trace_event_raw_devfreq_monitor {
1: + struct trace_entry ent;
1: + long unsigned int freq;
1: + long unsigned int busy_time;
1: + long unsigned int total_time;
1: + unsigned int polling_ms;
1: + u32 __data_loc_dev_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_devfreq_monitor {
1: + u32 dev_name;
1: +};
1: +
1: +typedef void (*btf_trace_devfreq_monitor)(void *, struct devfreq *);
1: +
1: +struct devfreq_notifier_devres {
1: + struct devfreq *devfreq;
1: + struct notifier_block *nb;
1: + unsigned int list;
1: +};
1: +
1: +struct devfreq_event_desc;
1: +
1: +struct devfreq_event_dev {
1: + struct list_head node;
1: + struct device dev;
1: + struct mutex lock;
1: + u32 enable_count;
1: + const struct devfreq_event_desc *desc;
1: +};
1: +
1: +struct devfreq_event_ops;
1: +
1: +struct devfreq_event_desc {
1: + const char *name;
1: + u32 event_type;
1: + void *driver_data;
1: + const struct devfreq_event_ops *ops;
1: +};
1: +
1: +struct devfreq_event_data {
1: + long unsigned int load_count;
1: + long unsigned int total_count;
1: +};
1: +
1: +struct devfreq_event_ops {
1: + int (*enable)(struct devfreq_event_dev *);
1: + int (*disable)(struct devfreq_event_dev *);
1: + int (*reset)(struct devfreq_event_dev *);
1: + int (*set_event)(struct devfreq_event_dev *);
1: + int (*get_event)(struct devfreq_event_dev *, struct devfreq_event_data *);
1: +};
1: +
1: +struct devfreq_simple_ondemand_data {
1: + unsigned int upthreshold;
1: + unsigned int downdifferential;
1: +};
1: +
1: +struct userspace_data {
1: + long unsigned int user_frequency;
1: + bool valid;
1: +};
1: +
1: +union extcon_property_value {
1: + int intval;
1: +};
1: +
1: +struct extcon_cable;
1: +
1: +struct extcon_dev___2 {
1: + const char *name;
1: + const unsigned int *supported_cable;
1: + const u32 *mutually_exclusive;
1: + struct device dev;
1: + struct raw_notifier_head nh_all;
1: + struct raw_notifier_head *nh;
1: + struct list_head entry;
1: + int max_supported;
1: + spinlock_t lock;
1: + u32 state;
1: + struct device_type extcon_dev_type;
1: + struct extcon_cable *cables;
1: + struct attribute_group attr_g_muex;
1: + struct attribute **attrs_muex;
1: + struct device_attribute *d_attrs_muex;
1: +};
1: +
1: +struct extcon_cable {
1: + struct extcon_dev___2 *edev;
1: + int cable_index;
1: + struct attribute_group attr_g;
1: + struct device_attribute attr_name;
1: + struct device_attribute attr_state;
1: + struct attribute *attrs[3];
1: + union extcon_property_value usb_propval[3];
1: + union extcon_property_value chg_propval[1];
1: + union extcon_property_value jack_propval[1];
1: + union extcon_property_value disp_propval[2];
1: + long unsigned int usb_bits[1];
1: + long unsigned int chg_bits[1];
1: + long unsigned int jack_bits[1];
1: + long unsigned int disp_bits[1];
1: +};
1: +
1: +struct __extcon_info {
1: + unsigned int type;
1: + unsigned int id;
1: + const char *name;
1: +};
1: +
1: +struct extcon_dev_notifier_devres {
1: + struct extcon_dev___2 *edev;
1: + unsigned int id;
1: + struct notifier_block *nb;
1: +};
1: +
1: +struct mtk_smi_larb_iommu {
1: + struct device *dev;
1: + unsigned int mmu;
1: +};
1: +
1: +enum mtk_smi_gen {
1: + MTK_SMI_GEN1 = 0,
1: + MTK_SMI_GEN2 = 1,
1: +};
1: +
1: +struct mtk_smi_common_plat {
1: + enum mtk_smi_gen gen;
1: + bool has_gals;
1: + u32 bus_sel;
1: +};
1: +
1: +struct mtk_smi_larb_gen {
1: + int port_in_larb[17];
1: + void (*config_port)(struct device *);
1: + unsigned int larb_direct_to_common_mask;
1: + bool has_gals;
1: +};
1: +
1: +struct mtk_smi {
1: + struct device *dev;
1: + struct clk *clk_apb;
1: + struct clk *clk_smi;
1: + struct clk *clk_gals0;
1: + struct clk *clk_gals1;
1: + struct clk *clk_async;
1: + union {
1: + void *smi_ao_base;
1: + void *base;
1: + };
1: + const struct mtk_smi_common_plat *plat;
1: +};
1: +
1: +struct mtk_smi_larb {
1: + struct mtk_smi smi;
1: + void *base;
1: + struct device *smi_common_dev;
1: + const struct mtk_smi_larb_gen *larb_gen;
1: + int larbid;
1: + u32 *mmu;
1: +};
1: +
1: +struct tegra186_mc_client {
1: + const char *name;
1: + unsigned int sid;
1: + struct {
1: + unsigned int override;
1: + unsigned int security;
1: + } regs;
1: +};
1: +
1: +struct tegra186_mc_soc {
1: + const struct tegra186_mc_client *clients;
1: + unsigned int num_clients;
1: +};
1: +
1: +struct tegra186_mc {
1: + struct device *dev;
1: + void *regs;
1: + const struct tegra186_mc_soc *soc;
1: +};
1: +
1: +struct emc_dvfs_latency {
1: + uint32_t freq;
1: + uint32_t latency;
1: +};
1: +
1: +struct mrq_emc_dvfs_latency_response {
1: + uint32_t num_pairs;
1: + struct emc_dvfs_latency pairs[14];
1: +};
1: +
1: +struct tegra186_emc_dvfs {
1: + long unsigned int latency;
1: + long unsigned int rate;
1: +};
1: +
1: +struct tegra186_emc {
1: + struct tegra_bpmp *bpmp;
1: + struct device *dev;
1: + struct clk *clk;
1: + struct tegra186_emc_dvfs *dvfs;
1: + unsigned int num_dvfs;
1: + struct {
1: + struct dentry *root;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + } debugfs;
1: +};
1: +
1: +enum vme_resource_type {
1: + VME_MASTER = 0,
1: + VME_SLAVE = 1,
1: + VME_DMA = 2,
1: + VME_LM = 3,
1: +};
1: +
1: +struct vme_dma_attr {
1: + u32 type;
1: + void *private;
1: +};
1: +
1: +struct vme_resource {
1: + enum vme_resource_type type;
1: + struct list_head *entry;
1: +};
1: +
1: +struct vme_bridge;
1: +
1: +struct vme_dev {
1: + int num;
1: + struct vme_bridge *bridge;
1: + struct device dev;
1: + struct list_head drv_list;
1: + struct list_head bridge_list;
1: +};
1: +
1: +struct vme_callback {
1: + void (*func)(int, int, void *);
1: + void *priv_data;
1: +};
1: +
1: +struct vme_irq {
1: + int count;
1: + struct vme_callback callback[256];
1: +};
1: +
1: +struct vme_slave_resource;
1: +
1: +struct vme_master_resource;
1: +
1: +struct vme_dma_list;
1: +
1: +struct vme_lm_resource;
1: +
1: +struct vme_bridge {
1: + char name[16];
1: + int num;
1: + struct list_head master_resources;
1: + struct list_head slave_resources;
1: + struct list_head dma_resources;
1: + struct list_head lm_resources;
1: + struct list_head vme_error_handlers;
1: + struct list_head devices;
1: + struct device *parent;
1: + void *driver_priv;
1: + struct list_head bus_list;
1: + struct vme_irq irq[7];
1: + struct mutex irq_mtx;
1: + int (*slave_get)(struct vme_slave_resource *, int *, long long unsigned int *, long long unsigned int *, dma_addr_t *, u32 *, u32 *);
1: + int (*slave_set)(struct vme_slave_resource *, int, long long unsigned int, long long unsigned int, dma_addr_t, u32, u32);
1: + int (*master_get)(struct vme_master_resource *, int *, long long unsigned int *, long long unsigned int *, u32 *, u32 *, u32 *);
1: + int (*master_set)(struct vme_master_resource *, int, long long unsigned int, long long unsigned int, u32, u32, u32);
1: + ssize_t (*master_read)(struct vme_master_resource *, void *, size_t, loff_t);
1: + ssize_t (*master_write)(struct vme_master_resource *, void *, size_t, loff_t);
1: + unsigned int (*master_rmw)(struct vme_master_resource *, unsigned int, unsigned int, unsigned int, loff_t);
1: + int (*dma_list_add)(struct vme_dma_list *, struct vme_dma_attr *, struct vme_dma_attr *, size_t);
1: + int (*dma_list_exec)(struct vme_dma_list *);
1: + int (*dma_list_empty)(struct vme_dma_list *);
1: + void (*irq_set)(struct vme_bridge *, int, int, int);
1: + int (*irq_generate)(struct vme_bridge *, int, int);
1: + int (*lm_set)(struct vme_lm_resource *, long long unsigned int, u32, u32);
1: + int (*lm_get)(struct vme_lm_resource *, long long unsigned int *, u32 *, u32 *);
1: + int (*lm_attach)(struct vme_lm_resource *, int, void (*)(void *), void *);
1: + int (*lm_detach)(struct vme_lm_resource *, int);
1: + int (*slot_get)(struct vme_bridge *);
1: + void * (*alloc_consistent)(struct device *, size_t, dma_addr_t *);
1: + void (*free_consistent)(struct device *, size_t, void *, dma_addr_t);
1: +};
1: +
1: +struct vme_driver {
1: + const char *name;
1: + int (*match)(struct vme_dev *);
1: + int (*probe)(struct vme_dev *);
1: + int (*remove)(struct vme_dev *);
1: + struct device_driver driver;
1: + struct list_head devices;
1: +};
1: +
1: +struct vme_master_resource {
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + spinlock_t lock;
1: + int locked;
1: + int number;
1: + u32 address_attr;
1: + u32 cycle_attr;
1: + u32 width_attr;
1: + struct resource bus_resource;
1: + void *kern_base;
1: +};
1: +
1: +struct vme_slave_resource {
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + u32 address_attr;
1: + u32 cycle_attr;
1: +};
1: +
1: +struct vme_dma_pattern {
1: + u32 pattern;
1: + u32 type;
1: +};
1: +
1: +struct vme_dma_pci {
1: + dma_addr_t address;
1: +};
1: +
1: +struct vme_dma_vme {
1: + long long unsigned int address;
1: + u32 aspace;
1: + u32 cycle;
1: + u32 dwidth;
1: +};
1: +
1: +struct vme_dma_resource;
1: +
1: +struct vme_dma_list {
1: + struct list_head list;
1: + struct vme_dma_resource *parent;
1: + struct list_head entries;
1: + struct mutex mtx;
1: +};
1: +
1: +struct vme_dma_resource {
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + struct list_head pending;
1: + struct list_head running;
1: + u32 route_attr;
1: +};
1: +
1: +struct vme_lm_resource {
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + int monitors;
1: +};
1: +
1: +struct vme_error_handler {
1: + struct list_head list;
1: + long long unsigned int start;
1: + long long unsigned int end;
1: + long long unsigned int first_error;
1: + u32 aspace;
1: + unsigned int num_errors;
1: +};
1: +
1: +struct powercap_control_type;
1: +
1: +struct powercap_control_type_ops {
1: + int (*set_enable)(struct powercap_control_type *, bool);
1: + int (*get_enable)(struct powercap_control_type *, bool *);
1: + int (*release)(struct powercap_control_type *);
1: +};
1: +
1: +struct powercap_control_type {
1: + struct device dev;
1: + struct idr idr;
1: + int nr_zones;
1: + const struct powercap_control_type_ops *ops;
1: + struct mutex lock;
1: + bool allocated;
1: + struct list_head node;
1: +};
1: +
1: +struct powercap_zone;
1: +
1: +struct powercap_zone_ops {
1: + int (*get_max_energy_range_uj)(struct powercap_zone *, u64 *);
1: + int (*get_energy_uj)(struct powercap_zone *, u64 *);
1: + int (*reset_energy_uj)(struct powercap_zone *);
1: + int (*get_max_power_range_uw)(struct powercap_zone *, u64 *);
1: + int (*get_power_uw)(struct powercap_zone *, u64 *);
1: + int (*set_enable)(struct powercap_zone *, bool);
1: + int (*get_enable)(struct powercap_zone *, bool *);
1: + int (*release)(struct powercap_zone *);
1: +};
1: +
1: +struct powercap_zone_constraint;
1: +
1: +struct powercap_zone {
1: + int id;
1: + char *name;
1: + void *control_type_inst;
1: + const struct powercap_zone_ops *ops;
1: + struct device dev;
1: + int const_id_cnt;
1: + struct idr idr;
1: + struct idr *parent_idr;
1: + void *private_data;
1: + struct attribute **zone_dev_attrs;
1: + int zone_attr_count;
1: + struct attribute_group dev_zone_attr_group;
1: + const struct attribute_group *dev_attr_groups[2];
1: + bool allocated;
1: + struct powercap_zone_constraint *constraints;
1: +};
1: +
1: +struct powercap_zone_constraint_ops;
1: +
1: +struct powercap_zone_constraint {
1: + int id;
1: + struct powercap_zone *power_zone;
1: + const struct powercap_zone_constraint_ops *ops;
1: +};
1: +
1: +struct powercap_zone_constraint_ops {
1: + int (*set_power_limit_uw)(struct powercap_zone *, int, u64);
1: + int (*get_power_limit_uw)(struct powercap_zone *, int, u64 *);
1: + int (*set_time_window_us)(struct powercap_zone *, int, u64);
1: + int (*get_time_window_us)(struct powercap_zone *, int, u64 *);
1: + int (*get_max_power_uw)(struct powercap_zone *, int, u64 *);
1: + int (*get_min_power_uw)(struct powercap_zone *, int, u64 *);
1: + int (*get_max_time_window_us)(struct powercap_zone *, int, u64 *);
1: + int (*get_min_time_window_us)(struct powercap_zone *, int, u64 *);
1: + const char * (*get_name)(struct powercap_zone *, int);
1: +};
1: +
1: +struct powercap_constraint_attr {
1: + struct device_attribute power_limit_attr;
1: + struct device_attribute time_window_attr;
1: + struct device_attribute max_power_attr;
1: + struct device_attribute min_power_attr;
1: + struct device_attribute max_time_window_attr;
1: + struct device_attribute min_time_window_attr;
1: + struct device_attribute name_attr;
1: +};
1: +
1: +enum {
1: + CCI_IF_SLAVE = 0,
1: + CCI_IF_MASTER = 1,
1: + CCI_IF_MAX = 2,
1: +};
1: +
1: +struct event_range {
1: + u32 min;
1: + u32 max;
1: +};
1: +
1: +struct cci_pmu_hw_events {
1: + struct perf_event **events;
1: + long unsigned int *used_mask;
1: + raw_spinlock_t pmu_lock;
1: +};
1: +
1: +struct cci_pmu;
1: +
1: +struct cci_pmu_model {
1: + char *name;
1: + u32 fixed_hw_cntrs;
1: + u32 num_hw_cntrs;
1: + u32 cntr_size;
1: + struct attribute **format_attrs;
1: + struct attribute **event_attrs;
1: + struct event_range event_ranges[2];
1: + int (*validate_hw_event)(struct cci_pmu *, long unsigned int);
1: + int (*get_event_idx)(struct cci_pmu *, struct cci_pmu_hw_events *, long unsigned int);
1: + void (*write_counters)(struct cci_pmu *, long unsigned int *);
1: +};
1: +
1: +struct cci_pmu {
1: + void *base;
1: + void *ctrl_base;
1: + struct pmu pmu;
1: + int cpu;
1: + int nr_irqs;
1: + int *irqs;
1: + long unsigned int active_irqs;
1: + const struct cci_pmu_model *model;
1: + struct cci_pmu_hw_events hw_events;
1: + struct platform_device *plat_device;
1: + int num_cntrs;
1: + atomic_t active_events;
1: + struct mutex reserve_mutex;
1: +};
1: +
1: +enum cci_models {
1: + CCI400_R0 = 0,
1: + CCI400_R1 = 1,
1: + CCI_MODEL_MAX = 2,
1: +};
1: +
1: +enum cci400_perf_events {
1: + CCI400_PMU_CYCLES = 255,
1: +};
1: +
1: +struct arm_ccn_component {
1: + void *base;
1: + u32 type;
1: + long unsigned int pmu_events_mask[1];
1: + union {
1: + struct {
1: + long unsigned int dt_cmp_mask[1];
1: + } xp;
1: + };
1: +};
1: +
1: +struct arm_ccn_dt {
1: + int id;
1: + void *base;
1: + spinlock_t config_lock;
1: + long unsigned int pmu_counters_mask[1];
1: + struct {
1: + struct arm_ccn_component *source;
1: + struct perf_event *event;
1: + } pmu_counters[9];
1: + struct {
1: + u64 l;
1: + u64 h;
1: + } cmp_mask[12];
1: + struct hrtimer hrtimer;
1: + unsigned int cpu;
1: + struct hlist_node node;
1: + struct pmu pmu;
1: +};
1: +
1: +struct arm_ccn {
1: + struct device *dev;
1: + void *base;
1: + unsigned int irq;
1: + unsigned int sbas_present: 1;
1: + unsigned int sbsx_present: 1;
1: + int num_nodes;
1: + struct arm_ccn_component *node;
1: + int num_xps;
1: + struct arm_ccn_component *xp;
1: + struct arm_ccn_dt dt;
1: + int mn_id;
1: +};
1: +
1: +struct arm_ccn_pmu_event {
1: + struct device_attribute attr;
1: + u32 type;
1: + u32 event;
1: + int num_ports;
1: + int num_vcs;
1: + const char *def;
1: + int mask;
1: +};
1: +
1: +struct pmu_irq_ops {
1: + void (*enable_pmuirq)(unsigned int);
1: + void (*disable_pmuirq)(unsigned int);
1: + void (*free_pmuirq)(unsigned int, int, void *);
1: +};
1: +
1: +typedef int (*armpmu_init_fn)(struct arm_pmu *);
1: +
1: +struct pmu_probe_info {
1: + unsigned int cpuid;
1: + unsigned int mask;
1: + armpmu_init_fn init;
1: +};
1: +
1: +struct hisi_pmu;
1: +
1: +struct hisi_uncore_ops {
1: + void (*write_evtype)(struct hisi_pmu *, int, u32);
1: + int (*get_event_idx)(struct perf_event *);
1: + u64 (*read_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*write_counter)(struct hisi_pmu *, struct hw_perf_event *, u64);
1: + void (*enable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*disable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*enable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*disable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*start_counters)(struct hisi_pmu *);
1: + void (*stop_counters)(struct hisi_pmu *);
1: +};
1: +
1: +struct hisi_pmu_hwevents {
1: + struct perf_event *hw_events[16];
1: + long unsigned int used_mask[1];
1: +};
1: +
1: +struct hisi_pmu {
1: + struct pmu pmu;
1: + const struct hisi_uncore_ops *ops;
1: + struct hisi_pmu_hwevents pmu_events;
1: + cpumask_t associated_cpus;
1: + int on_cpu;
1: + int irq;
1: + struct device *dev;
1: + struct hlist_node node;
1: + int sccl_id;
1: + int ccl_id;
1: + void *base;
1: + u32 index_id;
1: + int num_counters;
1: + int counter_bits;
1: + int check_event;
1: +};
1: +
1: +struct hw_pmu_info {
1: + u32 type;
1: + u32 enable_mask;
1: + void *csr;
1: +};
1: +
1: +struct xgene_pmu;
1: +
1: +struct xgene_pmu_dev {
1: + struct hw_pmu_info *inf;
1: + struct xgene_pmu *parent;
1: + struct pmu pmu;
1: + u8 max_counters;
1: + long unsigned int cntr_assign_mask[1];
1: + u64 max_period;
1: + const struct attribute_group **attr_groups;
1: + struct perf_event *pmu_counter_event[4];
1: +};
1: +
1: +struct xgene_pmu_ops;
1: +
1: +struct xgene_pmu {
1: + struct device *dev;
1: + struct hlist_node node;
1: + int version;
1: + void *pcppmu_csr;
1: + u32 mcb_active_mask;
1: + u32 mc_active_mask;
1: + u32 l3c_active_mask;
1: + cpumask_t cpu;
1: + int irq;
1: + raw_spinlock_t lock;
1: + const struct xgene_pmu_ops *ops;
1: + struct list_head l3cpmus;
1: + struct list_head iobpmus;
1: + struct list_head mcbpmus;
1: + struct list_head mcpmus;
1: +};
1: +
1: +struct xgene_pmu_ops {
1: + void (*mask_int)(struct xgene_pmu *);
1: + void (*unmask_int)(struct xgene_pmu *);
1: + u64 (*read_counter)(struct xgene_pmu_dev *, int);
1: + void (*write_counter)(struct xgene_pmu_dev *, int, u64);
1: + void (*write_evttype)(struct xgene_pmu_dev *, int, u32);
1: + void (*write_agentmsk)(struct xgene_pmu_dev *, u32);
1: + void (*write_agent1msk)(struct xgene_pmu_dev *, u32);
1: + void (*enable_counter)(struct xgene_pmu_dev *, int);
1: + void (*disable_counter)(struct xgene_pmu_dev *, int);
1: + void (*enable_counter_int)(struct xgene_pmu_dev *, int);
1: + void (*disable_counter_int)(struct xgene_pmu_dev *, int);
1: + void (*reset_counters)(struct xgene_pmu_dev *);
1: + void (*start_counters)(struct xgene_pmu_dev *);
1: + void (*stop_counters)(struct xgene_pmu_dev *);
1: +};
1: +
1: +struct xgene_pmu_dev_ctx {
1: + char *name;
1: + struct list_head next;
1: + struct xgene_pmu_dev *pmu_dev;
1: + struct hw_pmu_info inf;
1: +};
1: +
1: +struct xgene_pmu_data {
1: + int id;
1: + u32 data;
1: +};
1: +
1: +enum xgene_pmu_version {
1: + PCP_PMU_V1 = 1,
1: + PCP_PMU_V2 = 2,
1: + PCP_PMU_V3 = 3,
1: +};
1: +
1: +enum xgene_pmu_dev_type {
1: + PMU_TYPE_L3C = 0,
1: + PMU_TYPE_IOB = 1,
1: + PMU_TYPE_IOB_SLOW = 2,
1: + PMU_TYPE_MCB = 3,
1: + PMU_TYPE_MC = 4,
1: +};
1: +
1: +struct trace_event_raw_mc_event {
1: + struct trace_entry ent;
1: + unsigned int error_type;
1: + u32 __data_loc_msg;
1: + u32 __data_loc_label;
1: + u16 error_count;
1: + u8 mc_index;
1: + s8 top_layer;
1: + s8 middle_layer;
1: + s8 lower_layer;
1: + long int address;
1: + u8 grain_bits;
1: + long int syndrome;
1: + u32 __data_loc_driver_detail;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_arm_event {
1: + struct trace_entry ent;
1: + u64 mpidr;
1: + u64 midr;
1: + u32 running_state;
1: + u32 psci_state;
1: + u8 affinity;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_non_standard_event {
1: + struct trace_entry ent;
1: + char sec_type[16];
1: + char fru_id[16];
1: + u32 __data_loc_fru_text;
1: + u8 sev;
1: + u32 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_aer_event {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev_name;
1: + u32 status;
1: + u8 severity;
1: + u8 tlp_header_valid;
1: + u32 tlp_header[4];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_memory_failure_event {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int type;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mc_event {
1: + u32 msg;
1: + u32 label;
1: + u32 driver_detail;
1: +};
1: +
1: +struct trace_event_data_offsets_arm_event {};
1: +
1: +struct trace_event_data_offsets_non_standard_event {
1: + u32 fru_text;
1: + u32 buf;
1: +};
1: +
1: +struct trace_event_data_offsets_aer_event {
1: + u32 dev_name;
1: +};
1: +
1: +struct trace_event_data_offsets_memory_failure_event {};
1: +
1: +typedef void (*btf_trace_mc_event)(void *, const unsigned int, const char *, const char *, const int, const u8, const s8, const s8, const s8, long unsigned int, const u8, long unsigned int, const char *);
1: +
1: +typedef void (*btf_trace_arm_event)(void *, const struct cper_sec_proc_arm *);
1: +
1: +typedef void (*btf_trace_non_standard_event)(void *, const guid_t *, const guid_t *, const char *, const u8, const u8 *, const u32);
1: +
1: +typedef void (*btf_trace_aer_event)(void *, const char *, const u32, const u8, const u8, struct aer_header_log_regs *);
1: +
1: +typedef void (*btf_trace_memory_failure_event)(void *, long unsigned int, int, int);
1: +
1: +enum {
1: + NVMEM_ADD = 1,
1: + NVMEM_REMOVE = 2,
1: + NVMEM_CELL_ADD = 3,
1: + NVMEM_CELL_REMOVE = 4,
1: +};
1: +
1: +struct nvmem_cell_table {
1: + const char *nvmem_name;
1: + const struct nvmem_cell_info *cells;
1: + size_t ncells;
1: + struct list_head node;
1: +};
1: +
1: +struct nvmem_device___2 {
1: + struct module *owner;
1: + struct device dev;
1: + int stride;
1: + int word_size;
1: + int id;
1: + struct kref refcnt;
1: + size_t size;
1: + bool read_only;
1: + bool root_only;
1: + int flags;
1: + enum nvmem_type type;
1: + struct bin_attribute eeprom;
1: + struct device *base_dev;
1: + struct list_head cells;
1: + nvmem_reg_read_t reg_read;
1: + nvmem_reg_write_t reg_write;
1: + struct gpio_desc *wp_gpio;
1: + void *priv;
1: +};
1: +
1: +struct nvmem_cell {
1: + const char *name;
1: + int offset;
1: + int bytes;
1: + int bit_offset;
1: + int nbits;
1: + struct device_node *np;
1: + struct nvmem_device___2 *nvmem;
1: + struct list_head node;
1: +};
1: +
1: +struct net_device_devres {
1: + struct net_device *ndev;
1: +};
1: +
1: +struct __kernel_old_timespec {
1: + __kernel_old_time_t tv_sec;
1: + long int tv_nsec;
1: +};
1: +
1: +struct __kernel_sock_timeval {
1: + __s64 tv_sec;
1: + __s64 tv_usec;
1: +};
1: +
1: +struct mmsghdr {
1: + struct user_msghdr msg_hdr;
1: + unsigned int msg_len;
1: +};
1: +
1: +struct scm_timestamping_internal {
1: + struct timespec64 ts[3];
1: +};
1: +
1: +enum sock_shutdown_cmd {
1: + SHUT_RD = 0,
1: + SHUT_WR = 1,
1: + SHUT_RDWR = 2,
1: +};
1: +
1: +struct net_proto_family {
1: + int family;
1: + int (*create)(struct net *, struct socket *, int, int);
1: + struct module *owner;
1: +};
1: +
1: +enum {
1: + SOCK_WAKE_IO = 0,
1: + SOCK_WAKE_WAITD = 1,
1: + SOCK_WAKE_SPACE = 2,
1: + SOCK_WAKE_URG = 3,
1: +};
1: +
1: +struct ifconf {
1: + int ifc_len;
1: + union {
1: + char *ifcu_buf;
1: + struct ifreq *ifcu_req;
1: + } ifc_ifcu;
1: +};
1: +
1: +struct compat_ifmap {
1: + compat_ulong_t mem_start;
1: + compat_ulong_t mem_end;
1: + short unsigned int base_addr;
1: + unsigned char irq;
1: + unsigned char dma;
1: + unsigned char port;
1: +};
1: +
1: +struct compat_if_settings {
1: + unsigned int type;
1: + unsigned int size;
1: + compat_uptr_t ifs_ifsu;
1: +};
1: +
1: +struct compat_ifreq {
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union {
1: + struct sockaddr ifru_addr;
1: + struct sockaddr ifru_dstaddr;
1: + struct sockaddr ifru_broadaddr;
1: + struct sockaddr ifru_netmask;
1: + struct sockaddr ifru_hwaddr;
1: + short int ifru_flags;
1: + compat_int_t ifru_ivalue;
1: + compat_int_t ifru_mtu;
1: + struct compat_ifmap ifru_map;
1: + char ifru_slave[16];
1: + char ifru_newname[16];
1: + compat_caddr_t ifru_data;
1: + struct compat_if_settings ifru_settings;
1: + } ifr_ifru;
1: +};
1: +
1: +struct compat_ifconf {
1: + compat_int_t ifc_len;
1: + compat_caddr_t ifcbuf;
1: +};
1: +
1: +struct compat_ethtool_rx_flow_spec {
1: + u32 flow_type;
1: + union ethtool_flow_union h_u;
1: + struct ethtool_flow_ext h_ext;
1: + union ethtool_flow_union m_u;
1: + struct ethtool_flow_ext m_ext;
1: + compat_u64 ring_cookie;
1: + u32 location;
1: +};
1: +
1: +struct compat_ethtool_rxnfc {
1: + u32 cmd;
1: + u32 flow_type;
1: + compat_u64 data;
1: + struct compat_ethtool_rx_flow_spec fs;
1: + u32 rule_cnt;
1: + u32 rule_locs[0];
1: +};
1: +
1: +struct libipw_device;
1: +
1: +struct iw_spy_data;
1: +
1: +struct iw_public_data {
1: + struct iw_spy_data *spy_data;
1: + struct libipw_device *libipw;
1: +};
1: +
1: +struct iw_param {
1: + __s32 value;
1: + __u8 fixed;
1: + __u8 disabled;
1: + __u16 flags;
1: +};
1: +
1: +struct iw_point {
1: + void *pointer;
1: + __u16 length;
1: + __u16 flags;
1: +};
1: +
1: +struct iw_freq {
1: + __s32 m;
1: + __s16 e;
1: + __u8 i;
1: + __u8 flags;
1: +};
1: +
1: +struct iw_quality {
1: + __u8 qual;
1: + __u8 level;
1: + __u8 noise;
1: + __u8 updated;
1: +};
1: +
1: +struct iw_discarded {
1: + __u32 nwid;
1: + __u32 code;
1: + __u32 fragment;
1: + __u32 retries;
1: + __u32 misc;
1: +};
1: +
1: +struct iw_missed {
1: + __u32 beacon;
1: +};
1: +
1: +struct iw_statistics {
1: + __u16 status;
1: + struct iw_quality qual;
1: + struct iw_discarded discard;
1: + struct iw_missed miss;
1: +};
1: +
1: +union iwreq_data {
1: + char name[16];
1: + struct iw_point essid;
1: + struct iw_param nwid;
1: + struct iw_freq freq;
1: + struct iw_param sens;
1: + struct iw_param bitrate;
1: + struct iw_param txpower;
1: + struct iw_param rts;
1: + struct iw_param frag;
1: + __u32 mode;
1: + struct iw_param retry;
1: + struct iw_point encoding;
1: + struct iw_param power;
1: + struct iw_quality qual;
1: + struct sockaddr ap_addr;
1: + struct sockaddr addr;
1: + struct iw_param param;
1: + struct iw_point data;
1: +};
1: +
1: +struct iw_priv_args {
1: + __u32 cmd;
1: + __u16 set_args;
1: + __u16 get_args;
1: + char name[16];
1: +};
1: +
1: +struct compat_mmsghdr {
1: + struct compat_msghdr msg_hdr;
1: + compat_uint_t msg_len;
1: +};
1: +
1: +struct iw_request_info {
1: + __u16 cmd;
1: + __u16 flags;
1: +};
1: +
1: +struct iw_spy_data {
1: + int spy_number;
1: + u_char spy_address[48];
1: + struct iw_quality spy_stat[8];
1: + struct iw_quality spy_thr_low;
1: + struct iw_quality spy_thr_high;
1: + u_char spy_thr_under[8];
1: +};
1: +
1: +enum {
1: + SOF_TIMESTAMPING_TX_HARDWARE = 1,
1: + SOF_TIMESTAMPING_TX_SOFTWARE = 2,
1: + SOF_TIMESTAMPING_RX_HARDWARE = 4,
1: + SOF_TIMESTAMPING_RX_SOFTWARE = 8,
1: + SOF_TIMESTAMPING_SOFTWARE = 16,
1: + SOF_TIMESTAMPING_SYS_HARDWARE = 32,
1: + SOF_TIMESTAMPING_RAW_HARDWARE = 64,
1: + SOF_TIMESTAMPING_OPT_ID = 128,
1: + SOF_TIMESTAMPING_TX_SCHED = 256,
1: + SOF_TIMESTAMPING_TX_ACK = 512,
1: + SOF_TIMESTAMPING_OPT_CMSG = 1024,
1: + SOF_TIMESTAMPING_OPT_TSONLY = 2048,
1: + SOF_TIMESTAMPING_OPT_STATS = 4096,
1: + SOF_TIMESTAMPING_OPT_PKTINFO = 8192,
1: + SOF_TIMESTAMPING_OPT_TX_SWHW = 16384,
1: + SOF_TIMESTAMPING_LAST = 16384,
1: + SOF_TIMESTAMPING_MASK = 32767,
1: +};
1: +
1: +struct scm_ts_pktinfo {
1: + __u32 if_index;
1: + __u32 pkt_length;
1: + __u32 reserved[2];
1: +};
1: +
1: +struct sock_skb_cb {
1: + u32 dropcount;
1: +};
1: +
1: +struct sock_ee_data_rfc4884 {
1: + __u16 len;
1: + __u8 flags;
1: + __u8 reserved;
1: +};
1: +
1: +struct sock_extended_err {
1: + __u32 ee_errno;
1: + __u8 ee_origin;
1: + __u8 ee_type;
1: + __u8 ee_code;
1: + __u8 ee_pad;
1: + __u32 ee_info;
1: + union {
1: + __u32 ee_data;
1: + struct sock_ee_data_rfc4884 ee_rfc4884;
1: + };
1: +};
1: +
1: +struct sock_exterr_skb {
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + struct sock_extended_err ee;
1: + u16 addr_offset;
1: + __be16 port;
1: + u8 opt_stats: 1;
1: + u8 unused: 7;
1: +};
1: +
1: +struct used_address {
1: + struct __kernel_sockaddr_storage name;
1: + unsigned int name_len;
1: +};
1: +
1: +struct linger {
1: + int l_onoff;
1: + int l_linger;
1: +};
1: +
1: +struct cmsghdr {
1: + __kernel_size_t cmsg_len;
1: + int cmsg_level;
1: + int cmsg_type;
1: +};
1: +
1: +struct ucred {
1: + __u32 pid;
1: + __u32 uid;
1: + __u32 gid;
1: +};
1: +
1: +struct mmpin {
1: + struct user_struct *user;
1: + unsigned int num_pg;
1: +};
1: +
1: +struct ubuf_info {
1: + void (*callback)(struct ubuf_info *, bool);
1: + union {
1: + struct {
1: + long unsigned int desc;
1: + void *ctx;
1: + };
1: + struct {
1: + u32 id;
1: + u16 len;
1: + u16 zerocopy: 1;
1: + u32 bytelen;
1: + };
1: + };
1: + refcount_t refcnt;
1: + struct mmpin mmp;
1: +};
1: +
1: +struct prot_inuse {
1: + int val[64];
1: +};
1: +
1: +struct sd_flow_limit {
1: + u64 count;
1: + unsigned int num_buckets;
1: + unsigned int history_head;
1: + u16 history[128];
1: + u8 buckets[0];
1: +};
1: +
1: +struct softnet_data {
1: + struct list_head poll_list;
1: + struct sk_buff_head process_queue;
1: + unsigned int processed;
1: + unsigned int time_squeeze;
1: + unsigned int received_rps;
1: + struct softnet_data *rps_ipi_list;
1: + struct sd_flow_limit *flow_limit;
1: + struct Qdisc *output_queue;
1: + struct Qdisc **output_queue_tailp;
1: + struct sk_buff *completion_queue;
1: + struct sk_buff_head xfrm_backlog;
1: + struct {
1: + u16 recursion;
1: + u8 more;
1: + } xmit;
1: + int: 32;
1: + unsigned int input_queue_head;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + call_single_data_t csd;
1: + struct softnet_data *rps_ipi_next;
1: + unsigned int cpu;
1: + unsigned int input_queue_tail;
1: + unsigned int dropped;
1: + struct sk_buff_head input_pkt_queue;
1: + struct napi_struct backlog;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum txtime_flags {
1: + SOF_TXTIME_DEADLINE_MODE = 1,
1: + SOF_TXTIME_REPORT_ERRORS = 2,
1: + SOF_TXTIME_FLAGS_LAST = 2,
1: + SOF_TXTIME_FLAGS_MASK = 3,
1: +};
1: +
1: +struct sock_txtime {
1: + __kernel_clockid_t clockid;
1: + __u32 flags;
1: +};
1: +
1: +enum sk_pacing {
1: + SK_PACING_NONE = 0,
1: + SK_PACING_NEEDED = 1,
1: + SK_PACING_FQ = 2,
1: +};
1: +
1: +struct sockcm_cookie {
1: + u64 transmit_time;
1: + u32 mark;
1: + u16 tsflags;
1: +};
1: +
1: +struct inet_bind_bucket {
1: + possible_net_t ib_net;
1: + int l3mdev;
1: + short unsigned int port;
1: + signed char fastreuse;
1: + signed char fastreuseport;
1: + kuid_t fastuid;
1: + struct in6_addr fast_v6_rcv_saddr;
1: + __be32 fast_rcv_saddr;
1: + short unsigned int fast_sk_family;
1: + bool fast_ipv6_only;
1: + struct hlist_node node;
1: + struct hlist_head owners;
1: +};
1: +
1: +struct tcp_fastopen_cookie {
1: + __le64 val[2];
1: + s8 len;
1: + bool exp;
1: +};
1: +
1: +struct tcp_sack_block {
1: + u32 start_seq;
1: + u32 end_seq;
1: +};
1: +
1: +struct tcp_options_received {
1: + int ts_recent_stamp;
1: + u32 ts_recent;
1: + u32 rcv_tsval;
1: + u32 rcv_tsecr;
1: + u16 saw_tstamp: 1;
1: + u16 tstamp_ok: 1;
1: + u16 dsack: 1;
1: + u16 wscale_ok: 1;
1: + u16 sack_ok: 3;
1: + u16 smc_ok: 1;
1: + u16 snd_wscale: 4;
1: + u16 rcv_wscale: 4;
1: + u8 saw_unknown: 1;
1: + u8 unused: 7;
1: + u8 num_sacks;
1: + u16 user_mss;
1: + u16 mss_clamp;
1: +};
1: +
1: +struct tcp_rack {
1: + u64 mstamp;
1: + u32 rtt_us;
1: + u32 end_seq;
1: + u32 last_delivered;
1: + u8 reo_wnd_steps;
1: + u8 reo_wnd_persist: 5;
1: + u8 dsack_seen: 1;
1: + u8 advanced: 1;
1: +};
1: +
1: +struct tcp_sock_af_ops;
1: +
1: +struct tcp_md5sig_info;
1: +
1: +struct tcp_fastopen_request;
1: +
1: +struct tcp_sock {
1: + struct inet_connection_sock inet_conn;
1: + u16 tcp_header_len;
1: + u16 gso_segs;
1: + __be32 pred_flags;
1: + u64 bytes_received;
1: + u32 segs_in;
1: + u32 data_segs_in;
1: + u32 rcv_nxt;
1: + u32 copied_seq;
1: + u32 rcv_wup;
1: + u32 snd_nxt;
1: + u32 segs_out;
1: + u32 data_segs_out;
1: + u64 bytes_sent;
1: + u64 bytes_acked;
1: + u32 dsack_dups;
1: + u32 snd_una;
1: + u32 snd_sml;
1: + u32 rcv_tstamp;
1: + u32 lsndtime;
1: + u32 last_oow_ack_time;
1: + u32 compressed_ack_rcv_nxt;
1: + u32 tsoffset;
1: + struct list_head tsq_node;
1: + struct list_head tsorted_sent_queue;
1: + u32 snd_wl1;
1: + u32 snd_wnd;
1: + u32 max_window;
1: + u32 mss_cache;
1: + u32 window_clamp;
1: + u32 rcv_ssthresh;
1: + struct tcp_rack rack;
1: + u16 advmss;
1: + u8 compressed_ack;
1: + u8 dup_ack_counter: 2;
1: + u8 tlp_retrans: 1;
1: + u8 unused: 5;
1: + u32 chrono_start;
1: + u32 chrono_stat[3];
1: + u8 chrono_type: 2;
1: + u8 rate_app_limited: 1;
1: + u8 fastopen_connect: 1;
1: + u8 fastopen_no_cookie: 1;
1: + u8 is_sack_reneg: 1;
1: + u8 fastopen_client_fail: 2;
1: + u8 nonagle: 4;
1: + u8 thin_lto: 1;
1: + u8 recvmsg_inq: 1;
1: + u8 repair: 1;
1: + u8 frto: 1;
1: + u8 repair_queue;
1: + u8 save_syn: 2;
1: + u8 syn_data: 1;
1: + u8 syn_fastopen: 1;
1: + u8 syn_fastopen_exp: 1;
1: + u8 syn_fastopen_ch: 1;
1: + u8 syn_data_acked: 1;
1: + u8 is_cwnd_limited: 1;
1: + u32 tlp_high_seq;
1: + u32 tcp_tx_delay;
1: + u64 tcp_wstamp_ns;
1: + u64 tcp_clock_cache;
1: + u64 tcp_mstamp;
1: + u32 srtt_us;
1: + u32 mdev_us;
1: + u32 mdev_max_us;
1: + u32 rttvar_us;
1: + u32 rtt_seq;
1: + struct minmax rtt_min;
1: + u32 packets_out;
1: + u32 retrans_out;
1: + u32 max_packets_out;
1: + u32 max_packets_seq;
1: + u16 urg_data;
1: + u8 ecn_flags;
1: + u8 keepalive_probes;
1: + u32 reordering;
1: + u32 reord_seen;
1: + u32 snd_up;
1: + struct tcp_options_received rx_opt;
1: + u32 snd_ssthresh;
1: + u32 snd_cwnd;
1: + u32 snd_cwnd_cnt;
1: + u32 snd_cwnd_clamp;
1: + u32 snd_cwnd_used;
1: + u32 snd_cwnd_stamp;
1: + u32 prior_cwnd;
1: + u32 prr_delivered;
1: + u32 prr_out;
1: + u32 delivered;
1: + u32 delivered_ce;
1: + u32 lost;
1: + u32 app_limited;
1: + u64 first_tx_mstamp;
1: + u64 delivered_mstamp;
1: + u32 rate_delivered;
1: + u32 rate_interval_us;
1: + u32 rcv_wnd;
1: + u32 write_seq;
1: + u32 notsent_lowat;
1: + u32 pushed_seq;
1: + u32 lost_out;
1: + u32 sacked_out;
1: + struct hrtimer pacing_timer;
1: + struct hrtimer compressed_ack_timer;
1: + struct sk_buff *lost_skb_hint;
1: + struct sk_buff *retransmit_skb_hint;
1: + struct rb_root out_of_order_queue;
1: + struct sk_buff *ooo_last_skb;
1: + struct tcp_sack_block duplicate_sack[1];
1: + struct tcp_sack_block selective_acks[4];
1: + struct tcp_sack_block recv_sack_cache[4];
1: + struct sk_buff *highest_sack;
1: + int lost_cnt_hint;
1: + u32 prior_ssthresh;
1: + u32 high_seq;
1: + u32 retrans_stamp;
1: + u32 undo_marker;
1: + int undo_retrans;
1: + u64 bytes_retrans;
1: + u32 total_retrans;
1: + u32 urg_seq;
1: + unsigned int keepalive_time;
1: + unsigned int keepalive_intvl;
1: + int linger2;
1: + u8 bpf_sock_ops_cb_flags;
1: + u16 timeout_rehash;
1: + u32 rcv_ooopack;
1: + u32 rcv_rtt_last_tsecr;
1: + struct {
1: + u32 rtt_us;
1: + u32 seq;
1: + u64 time;
1: + } rcv_rtt_est;
1: + struct {
1: + u32 space;
1: + u32 seq;
1: + u64 time;
1: + } rcvq_space;
1: + struct {
1: + u32 probe_seq_start;
1: + u32 probe_seq_end;
1: + } mtu_probe;
1: + u32 mtu_info;
1: + bool is_mptcp;
1: + bool syn_smc;
1: + const struct tcp_sock_af_ops *af_specific;
1: + struct tcp_md5sig_info *md5sig_info;
1: + struct tcp_fastopen_request *fastopen_req;
1: + struct request_sock *fastopen_rsk;
1: + struct saved_syn *saved_syn;
1: +};
1: +
1: +struct tcp_md5sig_key;
1: +
1: +struct tcp_sock_af_ops {
1: + struct tcp_md5sig_key * (*md5_lookup)(const struct sock *, const struct sock *);
1: + int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *, const struct sock *, const struct sk_buff *);
1: + int (*md5_parse)(struct sock *, int, sockptr_t, int);
1: +};
1: +
1: +struct tcp_md5sig_info {
1: + struct hlist_head head;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcp_fastopen_request {
1: + struct tcp_fastopen_cookie cookie;
1: + struct msghdr *data;
1: + size_t size;
1: + int copied;
1: + struct ubuf_info *uarg;
1: +};
1: +
1: +union tcp_md5_addr {
1: + struct in_addr a4;
1: + struct in6_addr a6;
1: +};
1: +
1: +struct tcp_md5sig_key {
1: + struct hlist_node node;
1: + u8 keylen;
1: + u8 family;
1: + u8 prefixlen;
1: + union tcp_md5_addr addr;
1: + int l3index;
1: + u8 key[80];
1: + struct callback_head rcu;
1: +};
1: +
1: +struct net_protocol {
1: + int (*early_demux)(struct sk_buff *);
1: + int (*early_demux_handler)(struct sk_buff *);
1: + int (*handler)(struct sk_buff *);
1: + int (*err_handler)(struct sk_buff *, u32);
1: + unsigned int no_policy: 1;
1: + unsigned int netns_ok: 1;
1: + unsigned int icmp_strict_tag_validation: 1;
1: +};
1: +
1: +struct cgroup_cls_state {
1: + struct cgroup_subsys_state css;
1: + u32 classid;
1: +};
1: +
1: +enum {
1: + SK_MEMINFO_RMEM_ALLOC = 0,
1: + SK_MEMINFO_RCVBUF = 1,
1: + SK_MEMINFO_WMEM_ALLOC = 2,
1: + SK_MEMINFO_SNDBUF = 3,
1: + SK_MEMINFO_FWD_ALLOC = 4,
1: + SK_MEMINFO_WMEM_QUEUED = 5,
1: + SK_MEMINFO_OPTMEM = 6,
1: + SK_MEMINFO_BACKLOG = 7,
1: + SK_MEMINFO_DROPS = 8,
1: + SK_MEMINFO_VARS = 9,
1: +};
1: +
1: +enum sknetlink_groups {
1: + SKNLGRP_NONE = 0,
1: + SKNLGRP_INET_TCP_DESTROY = 1,
1: + SKNLGRP_INET_UDP_DESTROY = 2,
1: + SKNLGRP_INET6_TCP_DESTROY = 3,
1: + SKNLGRP_INET6_UDP_DESTROY = 4,
1: + __SKNLGRP_MAX = 5,
1: +};
1: +
1: +struct inet_request_sock {
1: + struct request_sock req;
1: + u16 snd_wscale: 4;
1: + u16 rcv_wscale: 4;
1: + u16 tstamp_ok: 1;
1: + u16 sack_ok: 1;
1: + u16 wscale_ok: 1;
1: + u16 ecn_ok: 1;
1: + u16 acked: 1;
1: + u16 no_srccheck: 1;
1: + u16 smc_ok: 1;
1: + u32 ir_mark;
1: + union {
1: + struct ip_options_rcu *ireq_opt;
1: + struct {
1: + struct ipv6_txoptions *ipv6_opt;
1: + struct sk_buff *pktopts;
1: + };
1: + };
1: +};
1: +
1: +struct tcp_request_sock_ops;
1: +
1: +struct tcp_request_sock {
1: + struct inet_request_sock req;
1: + const struct tcp_request_sock_ops *af_specific;
1: + u64 snt_synack;
1: + bool tfo_listener;
1: + bool is_mptcp;
1: + bool drop_req;
1: + u32 txhash;
1: + u32 rcv_isn;
1: + u32 snt_isn;
1: + u32 ts_off;
1: + u32 last_oow_ack_time;
1: + u32 rcv_nxt;
1: + u8 syn_tos;
1: +};
1: +
1: +enum tcp_synack_type {
1: + TCP_SYNACK_NORMAL = 0,
1: + TCP_SYNACK_FASTOPEN = 1,
1: + TCP_SYNACK_COOKIE = 2,
1: +};
1: +
1: +struct tcp_request_sock_ops {
1: + u16 mss_clamp;
1: + struct tcp_md5sig_key * (*req_md5_lookup)(const struct sock *, const struct sock *);
1: + int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *, const struct sock *, const struct sk_buff *);
1: + void (*init_req)(struct request_sock *, const struct sock *, struct sk_buff *);
1: + __u32 (*cookie_init_seq)(const struct sk_buff *, __u16 *);
1: + struct dst_entry * (*route_req)(const struct sock *, struct flowi *, const struct request_sock *);
1: + u32 (*init_seq)(const struct sk_buff *);
1: + u32 (*init_ts_off)(const struct net *, const struct sk_buff *);
1: + int (*send_synack)(const struct sock *, struct dst_entry *, struct flowi *, struct request_sock *, struct tcp_fastopen_cookie *, enum tcp_synack_type, struct sk_buff *);
1: +};
1: +
1: +struct nf_conntrack {
1: + atomic_t use;
1: +};
1: +
1: +enum {
1: + SKB_FCLONE_UNAVAILABLE = 0,
1: + SKB_FCLONE_ORIG = 1,
1: + SKB_FCLONE_CLONE = 2,
1: +};
1: +
1: +struct sk_buff_fclones {
1: + struct sk_buff skb1;
1: + struct sk_buff skb2;
1: + refcount_t fclone_ref;
1: +};
1: +
1: +struct skb_seq_state {
1: + __u32 lower_offset;
1: + __u32 upper_offset;
1: + __u32 frag_idx;
1: + __u32 stepped_offset;
1: + struct sk_buff *root_skb;
1: + struct sk_buff *cur_skb;
1: + __u8 *frag_data;
1: +};
1: +
1: +struct skb_checksum_ops {
1: + __wsum (*update)(const void *, int, __wsum);
1: + __wsum (*combine)(__wsum, __wsum, int, int);
1: +};
1: +
1: +struct skb_gso_cb {
1: + union {
1: + int mac_offset;
1: + int data_offset;
1: + };
1: + int encap_level;
1: + __wsum csum;
1: + __u16 csum_start;
1: +};
1: +
1: +struct napi_gro_cb {
1: + void *frag0;
1: + unsigned int frag0_len;
1: + int data_offset;
1: + u16 flush;
1: + u16 flush_id;
1: + u16 count;
1: + u16 gro_remcsum_start;
1: + long unsigned int age;
1: + u16 proto;
1: + u8 same_flow: 1;
1: + u8 encap_mark: 1;
1: + u8 csum_valid: 1;
1: + u8 csum_cnt: 3;
1: + u8 free: 2;
1: + u8 is_ipv6: 1;
1: + u8 is_fou: 1;
1: + u8 is_atomic: 1;
1: + u8 recursion_counter: 4;
1: + u8 is_flist: 1;
1: + __wsum csum;
1: + struct sk_buff *last;
1: +};
1: +
1: +struct vlan_hdr {
1: + __be16 h_vlan_TCI;
1: + __be16 h_vlan_encapsulated_proto;
1: +};
1: +
1: +struct vlan_ethhdr {
1: + unsigned char h_dest[6];
1: + unsigned char h_source[6];
1: + __be16 h_vlan_proto;
1: + __be16 h_vlan_TCI;
1: + __be16 h_vlan_encapsulated_proto;
1: +};
1: +
1: +struct qdisc_walker {
1: + int stop;
1: + int skip;
1: + int count;
1: + int (*fn)(struct Qdisc *, long unsigned int, struct qdisc_walker *);
1: +};
1: +
1: +struct ip_auth_hdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __be16 reserved;
1: + __be32 spi;
1: + __be32 seq_no;
1: + __u8 auth_data[0];
1: +};
1: +
1: +struct frag_hdr {
1: + __u8 nexthdr;
1: + __u8 reserved;
1: + __be16 frag_off;
1: + __be32 identification;
1: +};
1: +
1: +enum {
1: + SCM_TSTAMP_SND = 0,
1: + SCM_TSTAMP_SCHED = 1,
1: + SCM_TSTAMP_ACK = 2,
1: +};
1: +
1: +struct mpls_shim_hdr {
1: + __be32 label_stack_entry;
1: +};
1: +
1: +struct napi_alloc_cache {
1: + struct page_frag_cache page;
1: + unsigned int skb_count;
1: + void *skb_cache[64];
1: +};
1: +
1: +struct ahash_request___2;
1: +
1: +struct scm_cookie {
1: + struct pid *pid;
1: + struct scm_fp_list *fp;
1: + struct scm_creds creds;
1: + u32 secid;
1: +};
1: +
1: +struct scm_timestamping {
1: + struct __kernel_old_timespec ts[3];
1: +};
1: +
1: +struct scm_timestamping64 {
1: + struct __kernel_timespec ts[3];
1: +};
1: +
1: +enum {
1: + TCA_STATS_UNSPEC = 0,
1: + TCA_STATS_BASIC = 1,
1: + TCA_STATS_RATE_EST = 2,
1: + TCA_STATS_QUEUE = 3,
1: + TCA_STATS_APP = 4,
1: + TCA_STATS_RATE_EST64 = 5,
1: + TCA_STATS_PAD = 6,
1: + TCA_STATS_BASIC_HW = 7,
1: + TCA_STATS_PKT64 = 8,
1: + __TCA_STATS_MAX = 9,
1: +};
1: +
1: +struct gnet_stats_basic {
1: + __u64 bytes;
1: + __u32 packets;
1: +};
1: +
1: +struct gnet_stats_rate_est {
1: + __u32 bps;
1: + __u32 pps;
1: +};
1: +
1: +struct gnet_stats_rate_est64 {
1: + __u64 bps;
1: + __u64 pps;
1: +};
1: +
1: +struct gnet_estimator {
1: + signed char interval;
1: + unsigned char ewma_log;
1: +};
1: +
1: +struct net_rate_estimator {
1: + struct gnet_stats_basic_packed *bstats;
1: + spinlock_t *stats_lock;
1: + seqcount_t *running;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + u8 ewma_log;
1: + u8 intvl_log;
1: + seqcount_t seq;
1: + u64 last_packets;
1: + u64 last_bytes;
1: + u64 avpps;
1: + u64 avbps;
1: + long unsigned int next_jiffies;
1: + struct timer_list timer;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rtgenmsg {
1: + unsigned char rtgen_family;
1: +};
1: +
1: +enum rtnetlink_groups {
1: + RTNLGRP_NONE = 0,
1: + RTNLGRP_LINK = 1,
1: + RTNLGRP_NOTIFY = 2,
1: + RTNLGRP_NEIGH = 3,
1: + RTNLGRP_TC = 4,
1: + RTNLGRP_IPV4_IFADDR = 5,
1: + RTNLGRP_IPV4_MROUTE = 6,
1: + RTNLGRP_IPV4_ROUTE = 7,
1: + RTNLGRP_IPV4_RULE = 8,
1: + RTNLGRP_IPV6_IFADDR = 9,
1: + RTNLGRP_IPV6_MROUTE = 10,
1: + RTNLGRP_IPV6_ROUTE = 11,
1: + RTNLGRP_IPV6_IFINFO = 12,
1: + RTNLGRP_DECnet_IFADDR = 13,
1: + RTNLGRP_NOP2 = 14,
1: + RTNLGRP_DECnet_ROUTE = 15,
1: + RTNLGRP_DECnet_RULE = 16,
1: + RTNLGRP_NOP4 = 17,
1: + RTNLGRP_IPV6_PREFIX = 18,
1: + RTNLGRP_IPV6_RULE = 19,
1: + RTNLGRP_ND_USEROPT = 20,
1: + RTNLGRP_PHONET_IFADDR = 21,
1: + RTNLGRP_PHONET_ROUTE = 22,
1: + RTNLGRP_DCB = 23,
1: + RTNLGRP_IPV4_NETCONF = 24,
1: + RTNLGRP_IPV6_NETCONF = 25,
1: + RTNLGRP_MDB = 26,
1: + RTNLGRP_MPLS_ROUTE = 27,
1: + RTNLGRP_NSID = 28,
1: + RTNLGRP_MPLS_NETCONF = 29,
1: + RTNLGRP_IPV4_MROUTE_R = 30,
1: + RTNLGRP_IPV6_MROUTE_R = 31,
1: + RTNLGRP_NEXTHOP = 32,
1: + RTNLGRP_BRVLAN = 33,
1: + __RTNLGRP_MAX = 34,
1: +};
1: +
1: +enum {
1: + NETNSA_NONE = 0,
1: + NETNSA_NSID = 1,
1: + NETNSA_PID = 2,
1: + NETNSA_FD = 3,
1: + NETNSA_TARGET_NSID = 4,
1: + NETNSA_CURRENT_NSID = 5,
1: + __NETNSA_MAX = 6,
1: +};
1: +
1: +struct pcpu_gen_cookie {
1: + local_t nesting;
1: + u64 last;
1: +};
1: +
1: +struct gen_cookie {
1: + struct pcpu_gen_cookie *local;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic64_t forward_last;
1: + atomic64_t reverse_last;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum rtnl_link_flags {
1: + RTNL_FLAG_DOIT_UNLOCKED = 1,
1: +};
1: +
1: +struct net_fill_args {
1: + u32 portid;
1: + u32 seq;
1: + int flags;
1: + int cmd;
1: + int nsid;
1: + bool add_ref;
1: + int ref_nsid;
1: +};
1: +
1: +struct rtnl_net_dump_cb {
1: + struct net *tgt_net;
1: + struct net *ref_net;
1: + struct sk_buff *skb;
1: + struct net_fill_args fillargs;
1: + int idx;
1: + int s_idx;
1: +};
1: +
1: +typedef u16 u_int16_t;
1: +
1: +typedef u32 u_int32_t;
1: +
1: +typedef u64 u_int64_t;
1: +
1: +struct flow_dissector_key_control {
1: + u16 thoff;
1: + u16 addr_type;
1: + u32 flags;
1: +};
1: +
1: +enum flow_dissect_ret {
1: + FLOW_DISSECT_RET_OUT_GOOD = 0,
1: + FLOW_DISSECT_RET_OUT_BAD = 1,
1: + FLOW_DISSECT_RET_PROTO_AGAIN = 2,
1: + FLOW_DISSECT_RET_IPPROTO_AGAIN = 3,
1: + FLOW_DISSECT_RET_CONTINUE = 4,
1: +};
1: +
1: +struct flow_dissector_key_basic {
1: + __be16 n_proto;
1: + u8 ip_proto;
1: + u8 padding;
1: +};
1: +
1: +struct flow_dissector_key_tags {
1: + u32 flow_label;
1: +};
1: +
1: +struct flow_dissector_key_vlan {
1: + union {
1: + struct {
1: + u16 vlan_id: 12;
1: + u16 vlan_dei: 1;
1: + u16 vlan_priority: 3;
1: + };
1: + __be16 vlan_tci;
1: + };
1: + __be16 vlan_tpid;
1: +};
1: +
1: +struct flow_dissector_mpls_lse {
1: + u32 mpls_ttl: 8;
1: + u32 mpls_bos: 1;
1: + u32 mpls_tc: 3;
1: + u32 mpls_label: 20;
1: +};
1: +
1: +struct flow_dissector_key_mpls {
1: + struct flow_dissector_mpls_lse ls[7];
1: + u8 used_lses;
1: +};
1: +
1: +struct flow_dissector_key_enc_opts {
1: + u8 data[255];
1: + u8 len;
1: + __be16 dst_opt_type;
1: +};
1: +
1: +struct flow_dissector_key_keyid {
1: + __be32 keyid;
1: +};
1: +
1: +struct flow_dissector_key_ipv4_addrs {
1: + __be32 src;
1: + __be32 dst;
1: +};
1: +
1: +struct flow_dissector_key_ipv6_addrs {
1: + struct in6_addr src;
1: + struct in6_addr dst;
1: +};
1: +
1: +struct flow_dissector_key_tipc {
1: + __be32 key;
1: +};
1: +
1: +struct flow_dissector_key_addrs {
1: + union {
1: + struct flow_dissector_key_ipv4_addrs v4addrs;
1: + struct flow_dissector_key_ipv6_addrs v6addrs;
1: + struct flow_dissector_key_tipc tipckey;
1: + };
1: +};
1: +
1: +struct flow_dissector_key_arp {
1: + __u32 sip;
1: + __u32 tip;
1: + __u8 op;
1: + unsigned char sha[6];
1: + unsigned char tha[6];
1: +};
1: +
1: +struct flow_dissector_key_ports {
1: + union {
1: + __be32 ports;
1: + struct {
1: + __be16 src;
1: + __be16 dst;
1: + };
1: + };
1: +};
1: +
1: +struct flow_dissector_key_icmp {
1: + struct {
1: + u8 type;
1: + u8 code;
1: + };
1: + u16 id;
1: +};
1: +
1: +struct flow_dissector_key_eth_addrs {
1: + unsigned char dst[6];
1: + unsigned char src[6];
1: +};
1: +
1: +struct flow_dissector_key_tcp {
1: + __be16 flags;
1: +};
1: +
1: +struct flow_dissector_key_ip {
1: + __u8 tos;
1: + __u8 ttl;
1: +};
1: +
1: +struct flow_dissector_key_meta {
1: + int ingress_ifindex;
1: + u16 ingress_iftype;
1: +};
1: +
1: +struct flow_dissector_key_ct {
1: + u16 ct_state;
1: + u16 ct_zone;
1: + u32 ct_mark;
1: + u32 ct_labels[4];
1: +};
1: +
1: +struct flow_dissector_key_hash {
1: + u32 hash;
1: +};
1: +
1: +struct flow_dissector_key {
1: + enum flow_dissector_key_id key_id;
1: + size_t offset;
1: +};
1: +
1: +struct flow_keys_basic {
1: + struct flow_dissector_key_control control;
1: + struct flow_dissector_key_basic basic;
1: +};
1: +
1: +struct flow_keys {
1: + struct flow_dissector_key_control control;
1: + struct flow_dissector_key_basic basic;
1: + struct flow_dissector_key_tags tags;
1: + struct flow_dissector_key_vlan vlan;
1: + struct flow_dissector_key_vlan cvlan;
1: + struct flow_dissector_key_keyid keyid;
1: + struct flow_dissector_key_ports ports;
1: + struct flow_dissector_key_icmp icmp;
1: + struct flow_dissector_key_addrs addrs;
1: + int: 32;
1: +};
1: +
1: +struct flow_keys_digest {
1: + u8 data[16];
1: +};
1: +
1: +enum ip_conntrack_info {
1: + IP_CT_ESTABLISHED = 0,
1: + IP_CT_RELATED = 1,
1: + IP_CT_NEW = 2,
1: + IP_CT_IS_REPLY = 3,
1: + IP_CT_ESTABLISHED_REPLY = 3,
1: + IP_CT_RELATED_REPLY = 4,
1: + IP_CT_NUMBER = 5,
1: + IP_CT_UNTRACKED = 7,
1: +};
1: +
1: +struct xt_table_info;
1: +
1: +struct xt_table {
1: + struct list_head list;
1: + unsigned int valid_hooks;
1: + struct xt_table_info *private;
1: + struct module *me;
1: + u_int8_t af;
1: + int priority;
1: + int (*table_init)(struct net *);
1: + const char name[32];
1: +};
1: +
1: +union nf_inet_addr {
1: + __u32 all[4];
1: + __be32 ip;
1: + __be32 ip6[4];
1: + struct in_addr in;
1: + struct in6_addr in6;
1: +};
1: +
1: +struct ip_ct_tcp_state {
1: + u_int32_t td_end;
1: + u_int32_t td_maxend;
1: + u_int32_t td_maxwin;
1: + u_int32_t td_maxack;
1: + u_int8_t td_scale;
1: + u_int8_t flags;
1: +};
1: +
1: +struct ip_ct_tcp {
1: + struct ip_ct_tcp_state seen[2];
1: + u_int8_t state;
1: + u_int8_t last_dir;
1: + u_int8_t retrans;
1: + u_int8_t last_index;
1: + u_int32_t last_seq;
1: + u_int32_t last_ack;
1: + u_int32_t last_end;
1: + u_int16_t last_win;
1: + u_int8_t last_wscale;
1: + u_int8_t last_flags;
1: +};
1: +
1: +union nf_conntrack_man_proto {
1: + __be16 all;
1: + struct {
1: + __be16 port;
1: + } tcp;
1: + struct {
1: + __be16 port;
1: + } udp;
1: + struct {
1: + __be16 id;
1: + } icmp;
1: + struct {
1: + __be16 port;
1: + } dccp;
1: + struct {
1: + __be16 port;
1: + } sctp;
1: + struct {
1: + __be16 key;
1: + } gre;
1: +};
1: +
1: +struct nf_ct_dccp {
1: + u_int8_t role[2];
1: + u_int8_t state;
1: + u_int8_t last_pkt;
1: + u_int8_t last_dir;
1: + u_int64_t handshake_seq;
1: +};
1: +
1: +struct ip_ct_sctp {
1: + enum sctp_conntrack state;
1: + __be32 vtag[2];
1: + u8 last_dir;
1: + u8 flags;
1: +};
1: +
1: +struct nf_ct_event;
1: +
1: +struct nf_ct_event_notifier {
1: + int (*fcn)(unsigned int, struct nf_ct_event *);
1: +};
1: +
1: +struct nf_exp_event;
1: +
1: +struct nf_exp_event_notifier {
1: + int (*fcn)(unsigned int, struct nf_exp_event *);
1: +};
1: +
1: +enum bpf_ret_code {
1: + BPF_OK = 0,
1: + BPF_DROP = 2,
1: + BPF_REDIRECT = 7,
1: + BPF_LWT_REROUTE = 128,
1: +};
1: +
1: +enum {
1: + BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 1,
1: + BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 2,
1: + BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 4,
1: +};
1: +
1: +struct ip_tunnel_parm {
1: + char name[16];
1: + int link;
1: + __be16 i_flags;
1: + __be16 o_flags;
1: + __be32 i_key;
1: + __be32 o_key;
1: + struct iphdr iph;
1: +};
1: +
1: +struct ip_tunnel_key {
1: + __be64 tun_id;
1: + union {
1: + struct {
1: + __be32 src;
1: + __be32 dst;
1: + } ipv4;
1: + struct {
1: + struct in6_addr src;
1: + struct in6_addr dst;
1: + } ipv6;
1: + } u;
1: + __be16 tun_flags;
1: + u8 tos;
1: + u8 ttl;
1: + __be32 label;
1: + __be16 tp_src;
1: + __be16 tp_dst;
1: +};
1: +
1: +struct dst_cache_pcpu;
1: +
1: +struct dst_cache {
1: + struct dst_cache_pcpu *cache;
1: + long unsigned int reset_ts;
1: +};
1: +
1: +struct ip_tunnel_info {
1: + struct ip_tunnel_key key;
1: + struct dst_cache dst_cache;
1: + u8 options_len;
1: + u8 mode;
1: +};
1: +
1: +struct lwtunnel_state {
1: + __u16 type;
1: + __u16 flags;
1: + __u16 headroom;
1: + atomic_t refcnt;
1: + int (*orig_output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*orig_input)(struct sk_buff *);
1: + struct callback_head rcu;
1: + __u8 data[0];
1: +};
1: +
1: +union tcp_word_hdr {
1: + struct tcphdr hdr;
1: + __be32 words[5];
1: +};
1: +
1: +struct arphdr {
1: + __be16 ar_hrd;
1: + __be16 ar_pro;
1: + unsigned char ar_hln;
1: + unsigned char ar_pln;
1: + __be16 ar_op;
1: +};
1: +
1: +struct fib_info;
1: +
1: +struct fib_nh {
1: + struct fib_nh_common nh_common;
1: + struct hlist_node nh_hash;
1: + struct fib_info *nh_parent;
1: + __u32 nh_tclassid;
1: + __be32 nh_saddr;
1: + int nh_saddr_genid;
1: +};
1: +
1: +struct fib_info {
1: + struct hlist_node fib_hash;
1: + struct hlist_node fib_lhash;
1: + struct list_head nh_list;
1: + struct net *fib_net;
1: + int fib_treeref;
1: + refcount_t fib_clntref;
1: + unsigned int fib_flags;
1: + unsigned char fib_dead;
1: + unsigned char fib_protocol;
1: + unsigned char fib_scope;
1: + unsigned char fib_type;
1: + __be32 fib_prefsrc;
1: + u32 fib_tb_id;
1: + u32 fib_priority;
1: + struct dst_metrics *fib_metrics;
1: + int fib_nhs;
1: + bool fib_nh_is_v6;
1: + bool nh_updated;
1: + struct nexthop *nh;
1: + struct callback_head rcu;
1: + struct fib_nh fib_nh[0];
1: +};
1: +
1: +struct nh_info;
1: +
1: +struct nh_group;
1: +
1: +struct nexthop {
1: + struct rb_node rb_node;
1: + struct list_head fi_list;
1: + struct list_head f6i_list;
1: + struct list_head fdb_list;
1: + struct list_head grp_list;
1: + struct net *net;
1: + u32 id;
1: + u8 protocol;
1: + u8 nh_flags;
1: + bool is_group;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + union {
1: + struct nh_info *nh_info;
1: + struct nh_group *nh_grp;
1: + };
1: +};
1: +
1: +struct nh_info {
1: + struct hlist_node dev_hash;
1: + struct nexthop *nh_parent;
1: + u8 family;
1: + bool reject_nh;
1: + bool fdb_nh;
1: + union {
1: + struct fib_nh_common fib_nhc;
1: + struct fib_nh fib_nh;
1: + struct fib6_nh fib6_nh;
1: + };
1: +};
1: +
1: +struct nh_grp_entry {
1: + struct nexthop *nh;
1: + u8 weight;
1: + atomic_t upper_bound;
1: + struct list_head nh_list;
1: + struct nexthop *nh_parent;
1: +};
1: +
1: +struct nh_group {
1: + struct nh_group *spare;
1: + u16 num_nh;
1: + bool mpath;
1: + bool fdb_nh;
1: + bool has_v4;
1: + struct nh_grp_entry nh_entries[0];
1: +};
1: +
1: +enum metadata_type {
1: + METADATA_IP_TUNNEL = 0,
1: + METADATA_HW_PORT_MUX = 1,
1: +};
1: +
1: +struct hw_port_info {
1: + struct net_device *lower_dev;
1: + u32 port_id;
1: +};
1: +
1: +struct metadata_dst {
1: + struct dst_entry dst;
1: + enum metadata_type type;
1: + union {
1: + struct ip_tunnel_info tun_info;
1: + struct hw_port_info port_info;
1: + } u;
1: +};
1: +
1: +struct gre_base_hdr {
1: + __be16 flags;
1: + __be16 protocol;
1: +};
1: +
1: +struct gre_full_hdr {
1: + struct gre_base_hdr fixed_header;
1: + __be16 csum;
1: + __be16 reserved1;
1: + __be32 key;
1: + __be32 seq;
1: +};
1: +
1: +struct pptp_gre_header {
1: + struct gre_base_hdr gre_hd;
1: + __be16 payload_len;
1: + __be16 call_id;
1: + __be32 seq;
1: + __be32 ack;
1: +};
1: +
1: +struct tipc_basic_hdr {
1: + __be32 w[4];
1: +};
1: +
1: +struct icmphdr {
1: + __u8 type;
1: + __u8 code;
1: + __sum16 checksum;
1: + union {
1: + struct {
1: + __be16 id;
1: + __be16 sequence;
1: + } echo;
1: + __be32 gateway;
1: + struct {
1: + __be16 __unused;
1: + __be16 mtu;
1: + } frag;
1: + __u8 reserved[4];
1: + } un;
1: +};
1: +
1: +enum l2tp_debug_flags {
1: + L2TP_MSG_DEBUG = 1,
1: + L2TP_MSG_CONTROL = 2,
1: + L2TP_MSG_SEQ = 4,
1: + L2TP_MSG_DATA = 8,
1: +};
1: +
1: +struct pppoe_tag {
1: + __be16 tag_type;
1: + __be16 tag_len;
1: + char tag_data[0];
1: +};
1: +
1: +struct pppoe_hdr {
1: + __u8 type: 4;
1: + __u8 ver: 4;
1: + __u8 code;
1: + __be16 sid;
1: + __be16 length;
1: + struct pppoe_tag tag[0];
1: +};
1: +
1: +struct mpls_label {
1: + __be32 entry;
1: +};
1: +
1: +enum batadv_packettype {
1: + BATADV_IV_OGM = 0,
1: + BATADV_BCAST = 1,
1: + BATADV_CODED = 2,
1: + BATADV_ELP = 3,
1: + BATADV_OGM2 = 4,
1: + BATADV_UNICAST = 64,
1: + BATADV_UNICAST_FRAG = 65,
1: + BATADV_UNICAST_4ADDR = 66,
1: + BATADV_ICMP = 67,
1: + BATADV_UNICAST_TVLV = 68,
1: +};
1: +
1: +struct batadv_unicast_packet {
1: + __u8 packet_type;
1: + __u8 version;
1: + __u8 ttl;
1: + __u8 ttvn;
1: + __u8 dest[6];
1: +};
1: +
1: +struct nf_conntrack_zone {
1: + u16 id;
1: + u8 flags;
1: + u8 dir;
1: +};
1: +
1: +struct nf_conntrack_man {
1: + union nf_inet_addr u3;
1: + union nf_conntrack_man_proto u;
1: + u_int16_t l3num;
1: +};
1: +
1: +struct nf_conntrack_tuple {
1: + struct nf_conntrack_man src;
1: + struct {
1: + union nf_inet_addr u3;
1: + union {
1: + __be16 all;
1: + struct {
1: + __be16 port;
1: + } tcp;
1: + struct {
1: + __be16 port;
1: + } udp;
1: + struct {
1: + u_int8_t type;
1: + u_int8_t code;
1: + } icmp;
1: + struct {
1: + __be16 port;
1: + } dccp;
1: + struct {
1: + __be16 port;
1: + } sctp;
1: + struct {
1: + __be16 key;
1: + } gre;
1: + } u;
1: + u_int8_t protonum;
1: + u_int8_t dir;
1: + } dst;
1: +};
1: +
1: +struct nf_conntrack_tuple_hash {
1: + struct hlist_nulls_node hnnode;
1: + struct nf_conntrack_tuple tuple;
1: +};
1: +
1: +struct nf_ct_udp {
1: + long unsigned int stream_ts;
1: +};
1: +
1: +struct nf_ct_gre {
1: + unsigned int stream_timeout;
1: + unsigned int timeout;
1: +};
1: +
1: +union nf_conntrack_proto {
1: + struct nf_ct_dccp dccp;
1: + struct ip_ct_sctp sctp;
1: + struct ip_ct_tcp tcp;
1: + struct nf_ct_udp udp;
1: + struct nf_ct_gre gre;
1: + unsigned int tmpl_padto;
1: +};
1: +
1: +struct nf_ct_ext;
1: +
1: +struct nf_conn {
1: + struct nf_conntrack ct_general;
1: + spinlock_t lock;
1: + u32 timeout;
1: + struct nf_conntrack_zone zone;
1: + struct nf_conntrack_tuple_hash tuplehash[2];
1: + long unsigned int status;
1: + u16 cpu;
1: + possible_net_t ct_net;
1: + struct hlist_node nat_bysource;
1: + struct { } __nfct_init_offset;
1: + struct nf_conn *master;
1: + u_int32_t mark;
1: + u_int32_t secmark;
1: + struct nf_ct_ext *ext;
1: + union nf_conntrack_proto proto;
1: +};
1: +
1: +struct xt_table_info {
1: + unsigned int size;
1: + unsigned int number;
1: + unsigned int initial_entries;
1: + unsigned int hook_entry[5];
1: + unsigned int underflow[5];
1: + unsigned int stacksize;
1: + void ***jumpstack;
1: + unsigned char entries[0];
1: +};
1: +
1: +struct nf_conntrack_tuple_mask {
1: + struct {
1: + union nf_inet_addr u3;
1: + union nf_conntrack_man_proto u;
1: + } src;
1: +};
1: +
1: +struct nf_ct_ext {
1: + u8 offset[9];
1: + u8 len;
1: + char data[0];
1: +};
1: +
1: +struct nf_conntrack_helper;
1: +
1: +struct nf_conntrack_expect {
1: + struct hlist_node lnode;
1: + struct hlist_node hnode;
1: + struct nf_conntrack_tuple tuple;
1: + struct nf_conntrack_tuple_mask mask;
1: + void (*expectfn)(struct nf_conn *, struct nf_conntrack_expect *);
1: + struct nf_conntrack_helper *helper;
1: + struct nf_conn *master;
1: + struct timer_list timeout;
1: + refcount_t use;
1: + unsigned int flags;
1: + unsigned int class;
1: + union nf_inet_addr saved_addr;
1: + union nf_conntrack_man_proto saved_proto;
1: + enum ip_conntrack_dir dir;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum nf_ct_ext_id {
1: + NF_CT_EXT_HELPER = 0,
1: + NF_CT_EXT_NAT = 1,
1: + NF_CT_EXT_SEQADJ = 2,
1: + NF_CT_EXT_ACCT = 3,
1: + NF_CT_EXT_ECACHE = 4,
1: + NF_CT_EXT_TSTAMP = 5,
1: + NF_CT_EXT_TIMEOUT = 6,
1: + NF_CT_EXT_LABELS = 7,
1: + NF_CT_EXT_SYNPROXY = 8,
1: + NF_CT_EXT_NUM = 9,
1: +};
1: +
1: +struct nf_ct_event {
1: + struct nf_conn *ct;
1: + u32 portid;
1: + int report;
1: +};
1: +
1: +struct nf_exp_event {
1: + struct nf_conntrack_expect *exp;
1: + u32 portid;
1: + int report;
1: +};
1: +
1: +struct nf_conn_labels {
1: + long unsigned int bits[2];
1: +};
1: +
1: +struct _flow_keys_digest_data {
1: + __be16 n_proto;
1: + u8 ip_proto;
1: + u8 padding;
1: + __be32 ports;
1: + __be32 src;
1: + __be32 dst;
1: +};
1: +
1: +struct rps_sock_flow_table {
1: + u32 mask;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 ents[0];
1: +};
1: +
1: +enum {
1: + IF_OPER_UNKNOWN = 0,
1: + IF_OPER_NOTPRESENT = 1,
1: + IF_OPER_DOWN = 2,
1: + IF_OPER_LOWERLAYERDOWN = 3,
1: + IF_OPER_TESTING = 4,
1: + IF_OPER_DORMANT = 5,
1: + IF_OPER_UP = 6,
1: +};
1: +
1: +struct ipv4_devconf {
1: + void *sysctl;
1: + int data[32];
1: + long unsigned int state[1];
1: +};
1: +
1: +enum nf_dev_hooks {
1: + NF_NETDEV_INGRESS = 0,
1: + NF_NETDEV_NUMHOOKS = 1,
1: +};
1: +
1: +struct ifbond {
1: + __s32 bond_mode;
1: + __s32 num_slaves;
1: + __s32 miimon;
1: +};
1: +
1: +typedef struct ifbond ifbond;
1: +
1: +struct ifslave {
1: + __s32 slave_id;
1: + char slave_name[16];
1: + __s8 link;
1: + __s8 state;
1: + __u32 link_failure_count;
1: +};
1: +
1: +typedef struct ifslave ifslave;
1: +
1: +struct netdev_boot_setup {
1: + char name[16];
1: + struct ifmap map;
1: +};
1: +
1: +enum {
1: + NAPIF_STATE_SCHED = 1,
1: + NAPIF_STATE_MISSED = 2,
1: + NAPIF_STATE_DISABLE = 4,
1: + NAPIF_STATE_NPSVC = 8,
1: + NAPIF_STATE_LISTED = 16,
1: + NAPIF_STATE_NO_BUSY_POLL = 32,
1: + NAPIF_STATE_IN_BUSY_POLL = 64,
1: +};
1: +
1: +enum gro_result {
1: + GRO_MERGED = 0,
1: + GRO_MERGED_FREE = 1,
1: + GRO_HELD = 2,
1: + GRO_NORMAL = 3,
1: + GRO_DROP = 4,
1: + GRO_CONSUMED = 5,
1: +};
1: +
1: +typedef enum gro_result gro_result_t;
1: +
1: +struct bpf_xdp_link {
1: + struct bpf_link link;
1: + struct net_device *dev;
1: + int flags;
1: +};
1: +
1: +struct netdev_net_notifier {
1: + struct list_head list;
1: + struct notifier_block *nb;
1: +};
1: +
1: +struct netpoll;
1: +
1: +struct netpoll_info {
1: + refcount_t refcnt;
1: + struct semaphore dev_lock;
1: + struct sk_buff_head txq;
1: + struct delayed_work tx_work;
1: + struct netpoll *netpoll;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct udp_tunnel_info {
1: + short unsigned int type;
1: + sa_family_t sa_family;
1: + __be16 port;
1: + u8 hw_priv;
1: +};
1: +
1: +struct in_ifaddr;
1: +
1: +struct ip_mc_list;
1: +
1: +struct in_device {
1: + struct net_device *dev;
1: + refcount_t refcnt;
1: + int dead;
1: + struct in_ifaddr *ifa_list;
1: + struct ip_mc_list *mc_list;
1: + struct ip_mc_list **mc_hash;
1: + int mc_count;
1: + spinlock_t mc_tomb_lock;
1: + struct ip_mc_list *mc_tomb;
1: + long unsigned int mr_v1_seen;
1: + long unsigned int mr_v2_seen;
1: + long unsigned int mr_maxdelay;
1: + long unsigned int mr_qi;
1: + long unsigned int mr_qri;
1: + unsigned char mr_qrv;
1: + unsigned char mr_gq_running;
1: + unsigned char mr_ifc_count;
1: + struct timer_list mr_gq_timer;
1: + struct timer_list mr_ifc_timer;
1: + struct neigh_parms *arp_parms;
1: + struct ipv4_devconf cnf;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct offload_callbacks {
1: + struct sk_buff * (*gso_segment)(struct sk_buff *, netdev_features_t);
1: + struct sk_buff * (*gro_receive)(struct list_head *, struct sk_buff *);
1: + int (*gro_complete)(struct sk_buff *, int);
1: +};
1: +
1: +struct packet_offload {
1: + __be16 type;
1: + u16 priority;
1: + struct offload_callbacks callbacks;
1: + struct list_head list;
1: +};
1: +
1: +struct netdev_notifier_info_ext {
1: + struct netdev_notifier_info info;
1: + union {
1: + u32 mtu;
1: + } ext;
1: +};
1: +
1: +struct netdev_notifier_change_info {
1: + struct netdev_notifier_info info;
1: + unsigned int flags_changed;
1: +};
1: +
1: +struct netdev_notifier_changeupper_info {
1: + struct netdev_notifier_info info;
1: + struct net_device *upper_dev;
1: + bool master;
1: + bool linking;
1: + void *upper_info;
1: +};
1: +
1: +struct netdev_notifier_changelowerstate_info {
1: + struct netdev_notifier_info info;
1: + void *lower_state_info;
1: +};
1: +
1: +struct netdev_notifier_pre_changeaddr_info {
1: + struct netdev_notifier_info info;
1: + const unsigned char *dev_addr;
1: +};
1: +
1: +typedef int (*bpf_op_t)(struct net_device *, struct netdev_bpf *);
1: +
1: +enum {
1: + NESTED_SYNC_IMM_BIT = 0,
1: + NESTED_SYNC_TODO_BIT = 1,
1: +};
1: +
1: +struct netdev_nested_priv {
1: + unsigned char flags;
1: + void *data;
1: +};
1: +
1: +struct netdev_bonding_info {
1: + ifslave slave;
1: + ifbond master;
1: +};
1: +
1: +struct netdev_notifier_bonding_info {
1: + struct netdev_notifier_info info;
1: + struct netdev_bonding_info bonding_info;
1: +};
1: +
1: +union inet_addr {
1: + __u32 all[4];
1: + __be32 ip;
1: + __be32 ip6[4];
1: + struct in_addr in;
1: + struct in6_addr in6;
1: +};
1: +
1: +struct netpoll {
1: + struct net_device *dev;
1: + char dev_name[16];
1: + const char *name;
1: + union inet_addr local_ip;
1: + union inet_addr remote_ip;
1: + bool ipv6;
1: + u16 local_port;
1: + u16 remote_port;
1: + u8 remote_mac[6];
1: +};
1: +
1: +enum qdisc_state_t {
1: + __QDISC_STATE_SCHED = 0,
1: + __QDISC_STATE_DEACTIVATED = 1,
1: +};
1: +
1: +struct tcf_walker {
1: + int stop;
1: + int skip;
1: + int count;
1: + bool nonempty;
1: + long unsigned int cookie;
1: + int (*fn)(struct tcf_proto *, void *, struct tcf_walker *);
1: +};
1: +
1: +enum {
1: + IPV4_DEVCONF_FORWARDING = 1,
1: + IPV4_DEVCONF_MC_FORWARDING = 2,
1: + IPV4_DEVCONF_PROXY_ARP = 3,
1: + IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1: + IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1: + IPV4_DEVCONF_SEND_REDIRECTS = 6,
1: + IPV4_DEVCONF_SHARED_MEDIA = 7,
1: + IPV4_DEVCONF_RP_FILTER = 8,
1: + IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1: + IPV4_DEVCONF_BOOTP_RELAY = 10,
1: + IPV4_DEVCONF_LOG_MARTIANS = 11,
1: + IPV4_DEVCONF_TAG = 12,
1: + IPV4_DEVCONF_ARPFILTER = 13,
1: + IPV4_DEVCONF_MEDIUM_ID = 14,
1: + IPV4_DEVCONF_NOXFRM = 15,
1: + IPV4_DEVCONF_NOPOLICY = 16,
1: + IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1: + IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1: + IPV4_DEVCONF_ARP_IGNORE = 19,
1: + IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1: + IPV4_DEVCONF_ARP_ACCEPT = 21,
1: + IPV4_DEVCONF_ARP_NOTIFY = 22,
1: + IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1: + IPV4_DEVCONF_SRC_VMARK = 24,
1: + IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1: + IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1: + IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1: + IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1: + IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1: + IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1: + IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1: + IPV4_DEVCONF_BC_FORWARDING = 32,
1: + __IPV4_DEVCONF_MAX = 33,
1: +};
1: +
1: +struct in_ifaddr {
1: + struct hlist_node hash;
1: + struct in_ifaddr *ifa_next;
1: + struct in_device *ifa_dev;
1: + struct callback_head callback_head;
1: + __be32 ifa_local;
1: + __be32 ifa_address;
1: + __be32 ifa_mask;
1: + __u32 ifa_rt_priority;
1: + __be32 ifa_broadcast;
1: + unsigned char ifa_scope;
1: + unsigned char ifa_prefixlen;
1: + __u32 ifa_flags;
1: + char ifa_label[16];
1: + __u32 ifa_valid_lft;
1: + __u32 ifa_preferred_lft;
1: + long unsigned int ifa_cstamp;
1: + long unsigned int ifa_tstamp;
1: +};
1: +
1: +struct udp_tunnel_nic_shared {
1: + struct udp_tunnel_nic *udp_tunnel_nic_info;
1: + struct list_head devices;
1: +};
1: +
1: +struct dev_kfree_skb_cb {
1: + enum skb_free_reason reason;
1: +};
1: +
1: +struct netdev_adjacent {
1: + struct net_device *dev;
1: + bool master;
1: + bool ignore;
1: + u16 ref_nr;
1: + void *private;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netdev_hw_addr {
1: + struct list_head list;
1: + unsigned char addr[32];
1: + unsigned char type;
1: + bool global_use;
1: + int sync_cnt;
1: + int refcount;
1: + int synced;
1: + struct callback_head callback_head;
1: +};
1: +
1: +enum {
1: + NDA_UNSPEC = 0,
1: + NDA_DST = 1,
1: + NDA_LLADDR = 2,
1: + NDA_CACHEINFO = 3,
1: + NDA_PROBES = 4,
1: + NDA_VLAN = 5,
1: + NDA_PORT = 6,
1: + NDA_VNI = 7,
1: + NDA_IFINDEX = 8,
1: + NDA_MASTER = 9,
1: + NDA_LINK_NETNSID = 10,
1: + NDA_SRC_VNI = 11,
1: + NDA_PROTOCOL = 12,
1: + NDA_NH_ID = 13,
1: + NDA_FDB_EXT_ATTRS = 14,
1: + __NDA_MAX = 15,
1: +};
1: +
1: +struct nda_cacheinfo {
1: + __u32 ndm_confirmed;
1: + __u32 ndm_used;
1: + __u32 ndm_updated;
1: + __u32 ndm_refcnt;
1: +};
1: +
1: +struct ndt_stats {
1: + __u64 ndts_allocs;
1: + __u64 ndts_destroys;
1: + __u64 ndts_hash_grows;
1: + __u64 ndts_res_failed;
1: + __u64 ndts_lookups;
1: + __u64 ndts_hits;
1: + __u64 ndts_rcv_probes_mcast;
1: + __u64 ndts_rcv_probes_ucast;
1: + __u64 ndts_periodic_gc_runs;
1: + __u64 ndts_forced_gc_runs;
1: + __u64 ndts_table_fulls;
1: +};
1: +
1: +enum {
1: + NDTPA_UNSPEC = 0,
1: + NDTPA_IFINDEX = 1,
1: + NDTPA_REFCNT = 2,
1: + NDTPA_REACHABLE_TIME = 3,
1: + NDTPA_BASE_REACHABLE_TIME = 4,
1: + NDTPA_RETRANS_TIME = 5,
1: + NDTPA_GC_STALETIME = 6,
1: + NDTPA_DELAY_PROBE_TIME = 7,
1: + NDTPA_QUEUE_LEN = 8,
1: + NDTPA_APP_PROBES = 9,
1: + NDTPA_UCAST_PROBES = 10,
1: + NDTPA_MCAST_PROBES = 11,
1: + NDTPA_ANYCAST_DELAY = 12,
1: + NDTPA_PROXY_DELAY = 13,
1: + NDTPA_PROXY_QLEN = 14,
1: + NDTPA_LOCKTIME = 15,
1: + NDTPA_QUEUE_LENBYTES = 16,
1: + NDTPA_MCAST_REPROBES = 17,
1: + NDTPA_PAD = 18,
1: + __NDTPA_MAX = 19,
1: +};
1: +
1: +struct ndtmsg {
1: + __u8 ndtm_family;
1: + __u8 ndtm_pad1;
1: + __u16 ndtm_pad2;
1: +};
1: +
1: +struct ndt_config {
1: + __u16 ndtc_key_len;
1: + __u16 ndtc_entry_size;
1: + __u32 ndtc_entries;
1: + __u32 ndtc_last_flush;
1: + __u32 ndtc_last_rand;
1: + __u32 ndtc_hash_rnd;
1: + __u32 ndtc_hash_mask;
1: + __u32 ndtc_hash_chain_gc;
1: + __u32 ndtc_proxy_qlen;
1: +};
1: +
1: +enum {
1: + NDTA_UNSPEC = 0,
1: + NDTA_NAME = 1,
1: + NDTA_THRESH1 = 2,
1: + NDTA_THRESH2 = 3,
1: + NDTA_THRESH3 = 4,
1: + NDTA_CONFIG = 5,
1: + NDTA_PARMS = 6,
1: + NDTA_STATS = 7,
1: + NDTA_GC_INTERVAL = 8,
1: + NDTA_PAD = 9,
1: + __NDTA_MAX = 10,
1: +};
1: +
1: +enum {
1: + RTN_UNSPEC = 0,
1: + RTN_UNICAST = 1,
1: + RTN_LOCAL = 2,
1: + RTN_BROADCAST = 3,
1: + RTN_ANYCAST = 4,
1: + RTN_MULTICAST = 5,
1: + RTN_BLACKHOLE = 6,
1: + RTN_UNREACHABLE = 7,
1: + RTN_PROHIBIT = 8,
1: + RTN_THROW = 9,
1: + RTN_NAT = 10,
1: + RTN_XRESOLVE = 11,
1: + __RTN_MAX = 12,
1: +};
1: +
1: +enum {
1: + NEIGH_ARP_TABLE = 0,
1: + NEIGH_ND_TABLE = 1,
1: + NEIGH_DN_TABLE = 2,
1: + NEIGH_NR_TABLES = 3,
1: + NEIGH_LINK_TABLE = 3,
1: +};
1: +
1: +struct neigh_seq_state {
1: + struct seq_net_private p;
1: + struct neigh_table *tbl;
1: + struct neigh_hash_table *nht;
1: + void * (*neigh_sub_iter)(struct neigh_seq_state *, struct neighbour *, loff_t *);
1: + unsigned int bucket;
1: + unsigned int flags;
1: +};
1: +
1: +struct neighbour_cb {
1: + long unsigned int sched_next;
1: + unsigned int flags;
1: +};
1: +
1: +enum netevent_notif_type {
1: + NETEVENT_NEIGH_UPDATE = 1,
1: + NETEVENT_REDIRECT = 2,
1: + NETEVENT_DELAY_PROBE_TIME_UPDATE = 3,
1: + NETEVENT_IPV4_MPATH_HASH_UPDATE = 4,
1: + NETEVENT_IPV6_MPATH_HASH_UPDATE = 5,
1: + NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE = 6,
1: +};
1: +
1: +struct neigh_dump_filter {
1: + int master_idx;
1: + int dev_idx;
1: +};
1: +
1: +struct neigh_sysctl_table {
1: + struct ctl_table_header *sysctl_header;
1: + struct ctl_table neigh_vars[21];
1: +};
1: +
1: +struct netlink_dump_control {
1: + int (*start)(struct netlink_callback *);
1: + int (*dump)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + void *data;
1: + struct module *module;
1: + u32 min_dump_alloc;
1: +};
1: +
1: +struct rtnl_link_stats {
1: + __u32 rx_packets;
1: + __u32 tx_packets;
1: + __u32 rx_bytes;
1: + __u32 tx_bytes;
1: + __u32 rx_errors;
1: + __u32 tx_errors;
1: + __u32 rx_dropped;
1: + __u32 tx_dropped;
1: + __u32 multicast;
1: + __u32 collisions;
1: + __u32 rx_length_errors;
1: + __u32 rx_over_errors;
1: + __u32 rx_crc_errors;
1: + __u32 rx_frame_errors;
1: + __u32 rx_fifo_errors;
1: + __u32 rx_missed_errors;
1: + __u32 tx_aborted_errors;
1: + __u32 tx_carrier_errors;
1: + __u32 tx_fifo_errors;
1: + __u32 tx_heartbeat_errors;
1: + __u32 tx_window_errors;
1: + __u32 rx_compressed;
1: + __u32 tx_compressed;
1: + __u32 rx_nohandler;
1: +};
1: +
1: +struct rtnl_link_ifmap {
1: + __u64 mem_start;
1: + __u64 mem_end;
1: + __u64 base_addr;
1: + __u16 irq;
1: + __u8 dma;
1: + __u8 port;
1: +};
1: +
1: +enum {
1: + IFLA_UNSPEC = 0,
1: + IFLA_ADDRESS = 1,
1: + IFLA_BROADCAST = 2,
1: + IFLA_IFNAME = 3,
1: + IFLA_MTU = 4,
1: + IFLA_LINK = 5,
1: + IFLA_QDISC = 6,
1: + IFLA_STATS = 7,
1: + IFLA_COST = 8,
1: + IFLA_PRIORITY = 9,
1: + IFLA_MASTER = 10,
1: + IFLA_WIRELESS = 11,
1: + IFLA_PROTINFO = 12,
1: + IFLA_TXQLEN = 13,
1: + IFLA_MAP = 14,
1: + IFLA_WEIGHT = 15,
1: + IFLA_OPERSTATE = 16,
1: + IFLA_LINKMODE = 17,
1: + IFLA_LINKINFO = 18,
1: + IFLA_NET_NS_PID = 19,
1: + IFLA_IFALIAS = 20,
1: + IFLA_NUM_VF = 21,
1: + IFLA_VFINFO_LIST = 22,
1: + IFLA_STATS64 = 23,
1: + IFLA_VF_PORTS = 24,
1: + IFLA_PORT_SELF = 25,
1: + IFLA_AF_SPEC = 26,
1: + IFLA_GROUP = 27,
1: + IFLA_NET_NS_FD = 28,
1: + IFLA_EXT_MASK = 29,
1: + IFLA_PROMISCUITY = 30,
1: + IFLA_NUM_TX_QUEUES = 31,
1: + IFLA_NUM_RX_QUEUES = 32,
1: + IFLA_CARRIER = 33,
1: + IFLA_PHYS_PORT_ID = 34,
1: + IFLA_CARRIER_CHANGES = 35,
1: + IFLA_PHYS_SWITCH_ID = 36,
1: + IFLA_LINK_NETNSID = 37,
1: + IFLA_PHYS_PORT_NAME = 38,
1: + IFLA_PROTO_DOWN = 39,
1: + IFLA_GSO_MAX_SEGS = 40,
1: + IFLA_GSO_MAX_SIZE = 41,
1: + IFLA_PAD = 42,
1: + IFLA_XDP = 43,
1: + IFLA_EVENT = 44,
1: + IFLA_NEW_NETNSID = 45,
1: + IFLA_IF_NETNSID = 46,
1: + IFLA_TARGET_NETNSID = 46,
1: + IFLA_CARRIER_UP_COUNT = 47,
1: + IFLA_CARRIER_DOWN_COUNT = 48,
1: + IFLA_NEW_IFINDEX = 49,
1: + IFLA_MIN_MTU = 50,
1: + IFLA_MAX_MTU = 51,
1: + IFLA_PROP_LIST = 52,
1: + IFLA_ALT_IFNAME = 53,
1: + IFLA_PERM_ADDRESS = 54,
1: + IFLA_PROTO_DOWN_REASON = 55,
1: + __IFLA_MAX = 56,
1: +};
1: +
1: +enum {
1: + IFLA_PROTO_DOWN_REASON_UNSPEC = 0,
1: + IFLA_PROTO_DOWN_REASON_MASK = 1,
1: + IFLA_PROTO_DOWN_REASON_VALUE = 2,
1: + __IFLA_PROTO_DOWN_REASON_CNT = 3,
1: + IFLA_PROTO_DOWN_REASON_MAX = 2,
1: +};
1: +
1: +enum {
1: + IFLA_BRPORT_UNSPEC = 0,
1: + IFLA_BRPORT_STATE = 1,
1: + IFLA_BRPORT_PRIORITY = 2,
1: + IFLA_BRPORT_COST = 3,
1: + IFLA_BRPORT_MODE = 4,
1: + IFLA_BRPORT_GUARD = 5,
1: + IFLA_BRPORT_PROTECT = 6,
1: + IFLA_BRPORT_FAST_LEAVE = 7,
1: + IFLA_BRPORT_LEARNING = 8,
1: + IFLA_BRPORT_UNICAST_FLOOD = 9,
1: + IFLA_BRPORT_PROXYARP = 10,
1: + IFLA_BRPORT_LEARNING_SYNC = 11,
1: + IFLA_BRPORT_PROXYARP_WIFI = 12,
1: + IFLA_BRPORT_ROOT_ID = 13,
1: + IFLA_BRPORT_BRIDGE_ID = 14,
1: + IFLA_BRPORT_DESIGNATED_PORT = 15,
1: + IFLA_BRPORT_DESIGNATED_COST = 16,
1: + IFLA_BRPORT_ID = 17,
1: + IFLA_BRPORT_NO = 18,
1: + IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19,
1: + IFLA_BRPORT_CONFIG_PENDING = 20,
1: + IFLA_BRPORT_MESSAGE_AGE_TIMER = 21,
1: + IFLA_BRPORT_FORWARD_DELAY_TIMER = 22,
1: + IFLA_BRPORT_HOLD_TIMER = 23,
1: + IFLA_BRPORT_FLUSH = 24,
1: + IFLA_BRPORT_MULTICAST_ROUTER = 25,
1: + IFLA_BRPORT_PAD = 26,
1: + IFLA_BRPORT_MCAST_FLOOD = 27,
1: + IFLA_BRPORT_MCAST_TO_UCAST = 28,
1: + IFLA_BRPORT_VLAN_TUNNEL = 29,
1: + IFLA_BRPORT_BCAST_FLOOD = 30,
1: + IFLA_BRPORT_GROUP_FWD_MASK = 31,
1: + IFLA_BRPORT_NEIGH_SUPPRESS = 32,
1: + IFLA_BRPORT_ISOLATED = 33,
1: + IFLA_BRPORT_BACKUP_PORT = 34,
1: + IFLA_BRPORT_MRP_RING_OPEN = 35,
1: + IFLA_BRPORT_MRP_IN_OPEN = 36,
1: + __IFLA_BRPORT_MAX = 37,
1: +};
1: +
1: +enum {
1: + IFLA_INFO_UNSPEC = 0,
1: + IFLA_INFO_KIND = 1,
1: + IFLA_INFO_DATA = 2,
1: + IFLA_INFO_XSTATS = 3,
1: + IFLA_INFO_SLAVE_KIND = 4,
1: + IFLA_INFO_SLAVE_DATA = 5,
1: + __IFLA_INFO_MAX = 6,
1: +};
1: +
1: +enum {
1: + IFLA_VF_INFO_UNSPEC = 0,
1: + IFLA_VF_INFO = 1,
1: + __IFLA_VF_INFO_MAX = 2,
1: +};
1: +
1: +enum {
1: + IFLA_VF_UNSPEC = 0,
1: + IFLA_VF_MAC = 1,
1: + IFLA_VF_VLAN = 2,
1: + IFLA_VF_TX_RATE = 3,
1: + IFLA_VF_SPOOFCHK = 4,
1: + IFLA_VF_LINK_STATE = 5,
1: + IFLA_VF_RATE = 6,
1: + IFLA_VF_RSS_QUERY_EN = 7,
1: + IFLA_VF_STATS = 8,
1: + IFLA_VF_TRUST = 9,
1: + IFLA_VF_IB_NODE_GUID = 10,
1: + IFLA_VF_IB_PORT_GUID = 11,
1: + IFLA_VF_VLAN_LIST = 12,
1: + IFLA_VF_BROADCAST = 13,
1: + __IFLA_VF_MAX = 14,
1: +};
1: +
1: +struct ifla_vf_mac {
1: + __u32 vf;
1: + __u8 mac[32];
1: +};
1: +
1: +struct ifla_vf_broadcast {
1: + __u8 broadcast[32];
1: +};
1: +
1: +struct ifla_vf_vlan {
1: + __u32 vf;
1: + __u32 vlan;
1: + __u32 qos;
1: +};
1: +
1: +enum {
1: + IFLA_VF_VLAN_INFO_UNSPEC = 0,
1: + IFLA_VF_VLAN_INFO = 1,
1: + __IFLA_VF_VLAN_INFO_MAX = 2,
1: +};
1: +
1: +struct ifla_vf_vlan_info {
1: + __u32 vf;
1: + __u32 vlan;
1: + __u32 qos;
1: + __be16 vlan_proto;
1: +};
1: +
1: +struct ifla_vf_tx_rate {
1: + __u32 vf;
1: + __u32 rate;
1: +};
1: +
1: +struct ifla_vf_rate {
1: + __u32 vf;
1: + __u32 min_tx_rate;
1: + __u32 max_tx_rate;
1: +};
1: +
1: +struct ifla_vf_spoofchk {
1: + __u32 vf;
1: + __u32 setting;
1: +};
1: +
1: +struct ifla_vf_link_state {
1: + __u32 vf;
1: + __u32 link_state;
1: +};
1: +
1: +struct ifla_vf_rss_query_en {
1: + __u32 vf;
1: + __u32 setting;
1: +};
1: +
1: +enum {
1: + IFLA_VF_STATS_RX_PACKETS = 0,
1: + IFLA_VF_STATS_TX_PACKETS = 1,
1: + IFLA_VF_STATS_RX_BYTES = 2,
1: + IFLA_VF_STATS_TX_BYTES = 3,
1: + IFLA_VF_STATS_BROADCAST = 4,
1: + IFLA_VF_STATS_MULTICAST = 5,
1: + IFLA_VF_STATS_PAD = 6,
1: + IFLA_VF_STATS_RX_DROPPED = 7,
1: + IFLA_VF_STATS_TX_DROPPED = 8,
1: + __IFLA_VF_STATS_MAX = 9,
1: +};
1: +
1: +struct ifla_vf_trust {
1: + __u32 vf;
1: + __u32 setting;
1: +};
1: +
1: +enum {
1: + IFLA_VF_PORT_UNSPEC = 0,
1: + IFLA_VF_PORT = 1,
1: + __IFLA_VF_PORT_MAX = 2,
1: +};
1: +
1: +enum {
1: + IFLA_PORT_UNSPEC = 0,
1: + IFLA_PORT_VF = 1,
1: + IFLA_PORT_PROFILE = 2,
1: + IFLA_PORT_VSI_TYPE = 3,
1: + IFLA_PORT_INSTANCE_UUID = 4,
1: + IFLA_PORT_HOST_UUID = 5,
1: + IFLA_PORT_REQUEST = 6,
1: + IFLA_PORT_RESPONSE = 7,
1: + __IFLA_PORT_MAX = 8,
1: +};
1: +
1: +struct if_stats_msg {
1: + __u8 family;
1: + __u8 pad1;
1: + __u16 pad2;
1: + __u32 ifindex;
1: + __u32 filter_mask;
1: +};
1: +
1: +enum {
1: + IFLA_STATS_UNSPEC = 0,
1: + IFLA_STATS_LINK_64 = 1,
1: + IFLA_STATS_LINK_XSTATS = 2,
1: + IFLA_STATS_LINK_XSTATS_SLAVE = 3,
1: + IFLA_STATS_LINK_OFFLOAD_XSTATS = 4,
1: + IFLA_STATS_AF_SPEC = 5,
1: + __IFLA_STATS_MAX = 6,
1: +};
1: +
1: +enum {
1: + IFLA_OFFLOAD_XSTATS_UNSPEC = 0,
1: + IFLA_OFFLOAD_XSTATS_CPU_HIT = 1,
1: + __IFLA_OFFLOAD_XSTATS_MAX = 2,
1: +};
1: +
1: +enum {
1: + XDP_ATTACHED_NONE = 0,
1: + XDP_ATTACHED_DRV = 1,
1: + XDP_ATTACHED_SKB = 2,
1: + XDP_ATTACHED_HW = 3,
1: + XDP_ATTACHED_MULTI = 4,
1: +};
1: +
1: +enum {
1: + IFLA_XDP_UNSPEC = 0,
1: + IFLA_XDP_FD = 1,
1: + IFLA_XDP_ATTACHED = 2,
1: + IFLA_XDP_FLAGS = 3,
1: + IFLA_XDP_PROG_ID = 4,
1: + IFLA_XDP_DRV_PROG_ID = 5,
1: + IFLA_XDP_SKB_PROG_ID = 6,
1: + IFLA_XDP_HW_PROG_ID = 7,
1: + IFLA_XDP_EXPECTED_FD = 8,
1: + __IFLA_XDP_MAX = 9,
1: +};
1: +
1: +enum {
1: + IFLA_EVENT_NONE = 0,
1: + IFLA_EVENT_REBOOT = 1,
1: + IFLA_EVENT_FEATURES = 2,
1: + IFLA_EVENT_BONDING_FAILOVER = 3,
1: + IFLA_EVENT_NOTIFY_PEERS = 4,
1: + IFLA_EVENT_IGMP_RESEND = 5,
1: + IFLA_EVENT_BONDING_OPTIONS = 6,
1: +};
1: +
1: +enum {
1: + IFLA_BRIDGE_FLAGS = 0,
1: + IFLA_BRIDGE_MODE = 1,
1: + IFLA_BRIDGE_VLAN_INFO = 2,
1: + IFLA_BRIDGE_VLAN_TUNNEL_INFO = 3,
1: + IFLA_BRIDGE_MRP = 4,
1: + __IFLA_BRIDGE_MAX = 5,
1: +};
1: +
1: +enum {
1: + BR_MCAST_DIR_RX = 0,
1: + BR_MCAST_DIR_TX = 1,
1: + BR_MCAST_DIR_SIZE = 2,
1: +};
1: +
1: +enum rtattr_type_t {
1: + RTA_UNSPEC = 0,
1: + RTA_DST = 1,
1: + RTA_SRC = 2,
1: + RTA_IIF = 3,
1: + RTA_OIF = 4,
1: + RTA_GATEWAY = 5,
1: + RTA_PRIORITY = 6,
1: + RTA_PREFSRC = 7,
1: + RTA_METRICS = 8,
1: + RTA_MULTIPATH = 9,
1: + RTA_PROTOINFO = 10,
1: + RTA_FLOW = 11,
1: + RTA_CACHEINFO = 12,
1: + RTA_SESSION = 13,
1: + RTA_MP_ALGO = 14,
1: + RTA_TABLE = 15,
1: + RTA_MARK = 16,
1: + RTA_MFC_STATS = 17,
1: + RTA_VIA = 18,
1: + RTA_NEWDST = 19,
1: + RTA_PREF = 20,
1: + RTA_ENCAP_TYPE = 21,
1: + RTA_ENCAP = 22,
1: + RTA_EXPIRES = 23,
1: + RTA_PAD = 24,
1: + RTA_UID = 25,
1: + RTA_TTL_PROPAGATE = 26,
1: + RTA_IP_PROTO = 27,
1: + RTA_SPORT = 28,
1: + RTA_DPORT = 29,
1: + RTA_NH_ID = 30,
1: + __RTA_MAX = 31,
1: +};
1: +
1: +struct rta_cacheinfo {
1: + __u32 rta_clntref;
1: + __u32 rta_lastuse;
1: + __s32 rta_expires;
1: + __u32 rta_error;
1: + __u32 rta_used;
1: + __u32 rta_id;
1: + __u32 rta_ts;
1: + __u32 rta_tsage;
1: +};
1: +
1: +struct ifinfomsg {
1: + unsigned char ifi_family;
1: + unsigned char __ifi_pad;
1: + short unsigned int ifi_type;
1: + int ifi_index;
1: + unsigned int ifi_flags;
1: + unsigned int ifi_change;
1: +};
1: +
1: +typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, struct netlink_ext_ack *);
1: +
1: +typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
1: +
1: +struct rtnl_af_ops {
1: + struct list_head list;
1: + int family;
1: + int (*fill_link_af)(struct sk_buff *, const struct net_device *, u32);
1: + size_t (*get_link_af_size)(const struct net_device *, u32);
1: + int (*validate_link_af)(const struct net_device *, const struct nlattr *);
1: + int (*set_link_af)(struct net_device *, const struct nlattr *);
1: + int (*fill_stats_af)(struct sk_buff *, const struct net_device *);
1: + size_t (*get_stats_af_size)(const struct net_device *);
1: +};
1: +
1: +struct rtnl_link {
1: + rtnl_doit_func doit;
1: + rtnl_dumpit_func dumpit;
1: + struct module *owner;
1: + unsigned int flags;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + IF_LINK_MODE_DEFAULT = 0,
1: + IF_LINK_MODE_DORMANT = 1,
1: + IF_LINK_MODE_TESTING = 2,
1: +};
1: +
1: +enum lw_bits {
1: + LW_URGENT = 0,
1: +};
1: +
1: +struct seg6_pernet_data {
1: + struct mutex lock;
1: + struct in6_addr *tun_src;
1: +};
1: +
1: +enum {
1: + BPF_F_RECOMPUTE_CSUM = 1,
1: + BPF_F_INVALIDATE_HASH = 2,
1: +};
1: +
1: +enum {
1: + BPF_F_HDR_FIELD_MASK = 15,
1: +};
1: +
1: +enum {
1: + BPF_F_PSEUDO_HDR = 16,
1: + BPF_F_MARK_MANGLED_0 = 32,
1: + BPF_F_MARK_ENFORCE = 64,
1: +};
1: +
1: +enum {
1: + BPF_F_INGRESS = 1,
1: +};
1: +
1: +enum {
1: + BPF_F_TUNINFO_IPV6 = 1,
1: +};
1: +
1: +enum {
1: + BPF_F_ZERO_CSUM_TX = 2,
1: + BPF_F_DONT_FRAGMENT = 4,
1: + BPF_F_SEQ_NUMBER = 8,
1: +};
1: +
1: +enum {
1: + BPF_CSUM_LEVEL_QUERY = 0,
1: + BPF_CSUM_LEVEL_INC = 1,
1: + BPF_CSUM_LEVEL_DEC = 2,
1: + BPF_CSUM_LEVEL_RESET = 3,
1: +};
1: +
1: +enum {
1: + BPF_F_ADJ_ROOM_FIXED_GSO = 1,
1: + BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 2,
1: + BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 4,
1: + BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 8,
1: + BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 16,
1: + BPF_F_ADJ_ROOM_NO_CSUM_RESET = 32,
1: +};
1: +
1: +enum {
1: + BPF_ADJ_ROOM_ENCAP_L2_MASK = 255,
1: + BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 56,
1: +};
1: +
1: +enum {
1: + BPF_SK_LOOKUP_F_REPLACE = 1,
1: + BPF_SK_LOOKUP_F_NO_REUSEPORT = 2,
1: +};
1: +
1: +enum bpf_adj_room_mode {
1: + BPF_ADJ_ROOM_NET = 0,
1: + BPF_ADJ_ROOM_MAC = 1,
1: +};
1: +
1: +enum bpf_hdr_start_off {
1: + BPF_HDR_START_MAC = 0,
1: + BPF_HDR_START_NET = 1,
1: +};
1: +
1: +enum bpf_lwt_encap_mode {
1: + BPF_LWT_ENCAP_SEG6 = 0,
1: + BPF_LWT_ENCAP_SEG6_INLINE = 1,
1: + BPF_LWT_ENCAP_IP = 2,
1: +};
1: +
1: +struct bpf_tunnel_key {
1: + __u32 tunnel_id;
1: + union {
1: + __u32 remote_ipv4;
1: + __u32 remote_ipv6[4];
1: + };
1: + __u8 tunnel_tos;
1: + __u8 tunnel_ttl;
1: + __u16 tunnel_ext;
1: + __u32 tunnel_label;
1: +};
1: +
1: +struct bpf_xfrm_state {
1: + __u32 reqid;
1: + __u32 spi;
1: + __u16 family;
1: + __u16 ext;
1: + union {
1: + __u32 remote_ipv4;
1: + __u32 remote_ipv6[4];
1: + };
1: +};
1: +
1: +struct bpf_tcp_sock {
1: + __u32 snd_cwnd;
1: + __u32 srtt_us;
1: + __u32 rtt_min;
1: + __u32 snd_ssthresh;
1: + __u32 rcv_nxt;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 mss_cache;
1: + __u32 ecn_flags;
1: + __u32 rate_delivered;
1: + __u32 rate_interval_us;
1: + __u32 packets_out;
1: + __u32 retrans_out;
1: + __u32 total_retrans;
1: + __u32 segs_in;
1: + __u32 data_segs_in;
1: + __u32 segs_out;
1: + __u32 data_segs_out;
1: + __u32 lost_out;
1: + __u32 sacked_out;
1: + __u64 bytes_received;
1: + __u64 bytes_acked;
1: + __u32 dsack_dups;
1: + __u32 delivered;
1: + __u32 delivered_ce;
1: + __u32 icsk_retransmits;
1: +};
1: +
1: +struct bpf_sock_tuple {
1: + union {
1: + struct {
1: + __be32 saddr;
1: + __be32 daddr;
1: + __be16 sport;
1: + __be16 dport;
1: + } ipv4;
1: + struct {
1: + __be32 saddr[4];
1: + __be32 daddr[4];
1: + __be16 sport;
1: + __be16 dport;
1: + } ipv6;
1: + };
1: +};
1: +
1: +struct bpf_xdp_sock {
1: + __u32 queue_id;
1: +};
1: +
1: +enum {
1: + BPF_SOCK_OPS_RTO_CB_FLAG = 1,
1: + BPF_SOCK_OPS_RETRANS_CB_FLAG = 2,
1: + BPF_SOCK_OPS_STATE_CB_FLAG = 4,
1: + BPF_SOCK_OPS_RTT_CB_FLAG = 8,
1: + BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG = 16,
1: + BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 32,
1: + BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 64,
1: + BPF_SOCK_OPS_ALL_CB_FLAGS = 127,
1: +};
1: +
1: +enum {
1: + BPF_SOCK_OPS_VOID = 0,
1: + BPF_SOCK_OPS_TIMEOUT_INIT = 1,
1: + BPF_SOCK_OPS_RWND_INIT = 2,
1: + BPF_SOCK_OPS_TCP_CONNECT_CB = 3,
1: + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 4,
1: + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 5,
1: + BPF_SOCK_OPS_NEEDS_ECN = 6,
1: + BPF_SOCK_OPS_BASE_RTT = 7,
1: + BPF_SOCK_OPS_RTO_CB = 8,
1: + BPF_SOCK_OPS_RETRANS_CB = 9,
1: + BPF_SOCK_OPS_STATE_CB = 10,
1: + BPF_SOCK_OPS_TCP_LISTEN_CB = 11,
1: + BPF_SOCK_OPS_RTT_CB = 12,
1: + BPF_SOCK_OPS_PARSE_HDR_OPT_CB = 13,
1: + BPF_SOCK_OPS_HDR_OPT_LEN_CB = 14,
1: + BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 15,
1: +};
1: +
1: +enum {
1: + TCP_BPF_IW = 1001,
1: + TCP_BPF_SNDCWND_CLAMP = 1002,
1: + TCP_BPF_DELACK_MAX = 1003,
1: + TCP_BPF_RTO_MIN = 1004,
1: + TCP_BPF_SYN = 1005,
1: + TCP_BPF_SYN_IP = 1006,
1: + TCP_BPF_SYN_MAC = 1007,
1: +};
1: +
1: +enum {
1: + BPF_LOAD_HDR_OPT_TCP_SYN = 1,
1: +};
1: +
1: +enum {
1: + BPF_FIB_LOOKUP_DIRECT = 1,
1: + BPF_FIB_LOOKUP_OUTPUT = 2,
1: +};
1: +
1: +enum {
1: + BPF_FIB_LKUP_RET_SUCCESS = 0,
1: + BPF_FIB_LKUP_RET_BLACKHOLE = 1,
1: + BPF_FIB_LKUP_RET_UNREACHABLE = 2,
1: + BPF_FIB_LKUP_RET_PROHIBIT = 3,
1: + BPF_FIB_LKUP_RET_NOT_FWDED = 4,
1: + BPF_FIB_LKUP_RET_FWD_DISABLED = 5,
1: + BPF_FIB_LKUP_RET_UNSUPP_LWT = 6,
1: + BPF_FIB_LKUP_RET_NO_NEIGH = 7,
1: + BPF_FIB_LKUP_RET_FRAG_NEEDED = 8,
1: +};
1: +
1: +struct bpf_fib_lookup {
1: + __u8 family;
1: + __u8 l4_protocol;
1: + __be16 sport;
1: + __be16 dport;
1: + __u16 tot_len;
1: + __u32 ifindex;
1: + union {
1: + __u8 tos;
1: + __be32 flowinfo;
1: + __u32 rt_metric;
1: + };
1: + union {
1: + __be32 ipv4_src;
1: + __u32 ipv6_src[4];
1: + };
1: + union {
1: + __be32 ipv4_dst;
1: + __u32 ipv6_dst[4];
1: + };
1: + __be16 h_vlan_proto;
1: + __be16 h_vlan_TCI;
1: + __u8 smac[6];
1: + __u8 dmac[6];
1: +};
1: +
1: +struct bpf_redir_neigh {
1: + __u32 nh_family;
1: + union {
1: + __be32 ipv4_nh;
1: + __u32 ipv6_nh[4];
1: + };
1: +};
1: +
1: +enum rt_scope_t {
1: + RT_SCOPE_UNIVERSE = 0,
1: + RT_SCOPE_SITE = 200,
1: + RT_SCOPE_LINK = 253,
1: + RT_SCOPE_HOST = 254,
1: + RT_SCOPE_NOWHERE = 255,
1: +};
1: +
1: +enum rt_class_t {
1: + RT_TABLE_UNSPEC = 0,
1: + RT_TABLE_COMPAT = 252,
1: + RT_TABLE_DEFAULT = 253,
1: + RT_TABLE_MAIN = 254,
1: + RT_TABLE_LOCAL = 255,
1: + RT_TABLE_MAX = 4294967295,
1: +};
1: +
1: +struct nl_info {
1: + struct nlmsghdr *nlh;
1: + struct net *nl_net;
1: + u32 portid;
1: + u8 skip_notify: 1;
1: + u8 skip_notify_kernel: 1;
1: +};
1: +
1: +typedef int (*bpf_aux_classic_check_t)(struct sock_filter *, unsigned int);
1: +
1: +struct inet_timewait_sock {
1: + struct sock_common __tw_common;
1: + __u32 tw_mark;
1: + volatile unsigned char tw_substate;
1: + unsigned char tw_rcv_wscale;
1: + __be16 tw_sport;
1: + unsigned int tw_kill: 1;
1: + unsigned int tw_transparent: 1;
1: + unsigned int tw_flowlabel: 20;
1: + unsigned int tw_pad: 2;
1: + unsigned int tw_tos: 8;
1: + u32 tw_txhash;
1: + u32 tw_priority;
1: + struct timer_list tw_timer;
1: + struct inet_bind_bucket *tw_tb;
1: +};
1: +
1: +struct tcp_timewait_sock {
1: + struct inet_timewait_sock tw_sk;
1: + u32 tw_rcv_wnd;
1: + u32 tw_ts_offset;
1: + u32 tw_ts_recent;
1: + u32 tw_last_oow_ack_time;
1: + int tw_ts_recent_stamp;
1: + u32 tw_tx_delay;
1: + struct tcp_md5sig_key *tw_md5_key;
1: +};
1: +
1: +struct udp_sock {
1: + struct inet_sock inet;
1: + int pending;
1: + unsigned int corkflag;
1: + __u8 encap_type;
1: + unsigned char no_check6_tx: 1;
1: + unsigned char no_check6_rx: 1;
1: + unsigned char encap_enabled: 1;
1: + unsigned char gro_enabled: 1;
1: + __u16 len;
1: + __u16 gso_size;
1: + __u16 pcslen;
1: + __u16 pcrlen;
1: + __u8 pcflag;
1: + __u8 unused[3];
1: + int (*encap_rcv)(struct sock *, struct sk_buff *);
1: + int (*encap_err_lookup)(struct sock *, struct sk_buff *);
1: + void (*encap_destroy)(struct sock *);
1: + struct sk_buff * (*gro_receive)(struct sock *, struct list_head *, struct sk_buff *);
1: + int (*gro_complete)(struct sock *, struct sk_buff *, int);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sk_buff_head reader_queue;
1: + int forward_deficit;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct udp6_sock {
1: + struct udp_sock udp;
1: + struct ipv6_pinfo inet6;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct tcp6_sock {
1: + struct tcp_sock tcp;
1: + struct ipv6_pinfo inet6;
1: +};
1: +
1: +struct fib6_result;
1: +
1: +struct fib6_config;
1: +
1: +struct ipv6_stub {
1: + int (*ipv6_sock_mc_join)(struct sock *, int, const struct in6_addr *);
1: + int (*ipv6_sock_mc_drop)(struct sock *, int, const struct in6_addr *);
1: + struct dst_entry * (*ipv6_dst_lookup_flow)(struct net *, const struct sock *, struct flowi6 *, const struct in6_addr *);
1: + int (*ipv6_route_input)(struct sk_buff *);
1: + struct fib6_table * (*fib6_get_table)(struct net *, u32);
1: + int (*fib6_lookup)(struct net *, int, struct flowi6 *, struct fib6_result *, int);
1: + int (*fib6_table_lookup)(struct net *, struct fib6_table *, int, struct flowi6 *, struct fib6_result *, int);
1: + void (*fib6_select_path)(const struct net *, struct fib6_result *, struct flowi6 *, int, bool, const struct sk_buff *, int);
1: + u32 (*ip6_mtu_from_fib6)(const struct fib6_result *, const struct in6_addr *, const struct in6_addr *);
1: + int (*fib6_nh_init)(struct net *, struct fib6_nh *, struct fib6_config *, gfp_t, struct netlink_ext_ack *);
1: + void (*fib6_nh_release)(struct fib6_nh *);
1: + void (*fib6_update_sernum)(struct net *, struct fib6_info *);
1: + int (*ip6_del_rt)(struct net *, struct fib6_info *, bool);
1: + void (*fib6_rt_update)(struct net *, struct fib6_info *, struct nl_info *);
1: + void (*udpv6_encap_enable)();
1: + void (*ndisc_send_na)(struct net_device *, const struct in6_addr *, const struct in6_addr *, bool, bool, bool, bool);
1: + void (*xfrm6_local_rxpmtu)(struct sk_buff *, u32);
1: + int (*xfrm6_udp_encap_rcv)(struct sock *, struct sk_buff *);
1: + int (*xfrm6_rcv_encap)(struct sk_buff *, int, __be32, int);
1: + struct neigh_table *nd_tbl;
1: + int (*ipv6_fragment)(struct net *, struct sock *, struct sk_buff *, int (*)(struct net *, struct sock *, struct sk_buff *));
1: +};
1: +
1: +struct fib6_result {
1: + struct fib6_nh *nh;
1: + struct fib6_info *f6i;
1: + u32 fib6_flags;
1: + u8 fib6_type;
1: + struct rt6_info *rt6;
1: +};
1: +
1: +struct fib6_config {
1: + u32 fc_table;
1: + u32 fc_metric;
1: + int fc_dst_len;
1: + int fc_src_len;
1: + int fc_ifindex;
1: + u32 fc_flags;
1: + u32 fc_protocol;
1: + u16 fc_type;
1: + u16 fc_delete_all_nh: 1;
1: + u16 fc_ignore_dev_down: 1;
1: + u16 __unused: 14;
1: + u32 fc_nh_id;
1: + struct in6_addr fc_dst;
1: + struct in6_addr fc_src;
1: + struct in6_addr fc_prefsrc;
1: + struct in6_addr fc_gateway;
1: + long unsigned int fc_expires;
1: + struct nlattr *fc_mx;
1: + int fc_mx_len;
1: + int fc_mp_len;
1: + struct nlattr *fc_mp;
1: + struct nl_info fc_nlinfo;
1: + struct nlattr *fc_encap;
1: + u16 fc_encap_type;
1: + bool fc_is_fdb;
1: +};
1: +
1: +struct ipv6_bpf_stub {
1: + int (*inet6_bind)(struct sock *, struct sockaddr *, int, u32);
1: + struct sock * (*udp6_lib_lookup)(struct net *, const struct in6_addr *, __be16, const struct in6_addr *, __be16, int, int, struct udp_table *, struct sk_buff *);
1: +};
1: +
1: +struct fib_result {
1: + __be32 prefix;
1: + unsigned char prefixlen;
1: + unsigned char nh_sel;
1: + unsigned char type;
1: + unsigned char scope;
1: + u32 tclassid;
1: + struct fib_nh_common *nhc;
1: + struct fib_info *fi;
1: + struct fib_table *table;
1: + struct hlist_head *fa_head;
1: +};
1: +
1: +enum {
1: + INET_ECN_NOT_ECT = 0,
1: + INET_ECN_ECT_1 = 1,
1: + INET_ECN_ECT_0 = 2,
1: + INET_ECN_CE = 3,
1: + INET_ECN_MASK = 3,
1: +};
1: +
1: +struct tcp_skb_cb {
1: + __u32 seq;
1: + __u32 end_seq;
1: + union {
1: + __u32 tcp_tw_isn;
1: + struct {
1: + u16 tcp_gso_segs;
1: + u16 tcp_gso_size;
1: + };
1: + };
1: + __u8 tcp_flags;
1: + __u8 sacked;
1: + __u8 ip_dsfield;
1: + __u8 txstamp_ack: 1;
1: + __u8 eor: 1;
1: + __u8 has_rxtstamp: 1;
1: + __u8 unused: 5;
1: + __u32 ack_seq;
1: + union {
1: + struct {
1: + __u32 in_flight: 30;
1: + __u32 is_app_limited: 1;
1: + __u32 unused: 1;
1: + __u32 delivered;
1: + u64 first_tx_mstamp;
1: + u64 delivered_mstamp;
1: + } tx;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + struct {
1: + __u32 flags;
1: + struct sock *sk_redir;
1: + void *data_end;
1: + } bpf;
1: + };
1: +};
1: +
1: +struct strp_stats {
1: + long long unsigned int msgs;
1: + long long unsigned int bytes;
1: + unsigned int mem_fail;
1: + unsigned int need_more_hdr;
1: + unsigned int msg_too_big;
1: + unsigned int msg_timeouts;
1: + unsigned int bad_hdr_len;
1: +};
1: +
1: +struct strparser;
1: +
1: +struct strp_callbacks {
1: + int (*parse_msg)(struct strparser *, struct sk_buff *);
1: + void (*rcv_msg)(struct strparser *, struct sk_buff *);
1: + int (*read_sock_done)(struct strparser *, int);
1: + void (*abort_parser)(struct strparser *, int);
1: + void (*lock)(struct strparser *);
1: + void (*unlock)(struct strparser *);
1: +};
1: +
1: +struct strparser {
1: + struct sock *sk;
1: + u32 stopped: 1;
1: + u32 paused: 1;
1: + u32 aborted: 1;
1: + u32 interrupted: 1;
1: + u32 unrecov_intr: 1;
1: + struct sk_buff **skb_nextp;
1: + struct sk_buff *skb_head;
1: + unsigned int need_bytes;
1: + struct delayed_work msg_timer_work;
1: + struct work_struct work;
1: + struct strp_stats stats;
1: + struct strp_callbacks cb;
1: +};
1: +
1: +struct strp_msg {
1: + int full_len;
1: + int offset;
1: +};
1: +
1: +struct xdp_umem {
1: + void *addrs;
1: + u64 size;
1: + u32 headroom;
1: + u32 chunk_size;
1: + u32 chunks;
1: + u32 npgs;
1: + struct user_struct *user;
1: + refcount_t users;
1: + u8 flags;
1: + bool zc;
1: + struct page **pgs;
1: + int id;
1: + struct list_head xsk_dma_list;
1: + struct work_struct work;
1: +};
1: +
1: +struct xdp_sock;
1: +
1: +struct xsk_map {
1: + struct bpf_map map;
1: + spinlock_t lock;
1: + struct xdp_sock *xsk_map[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xsk_queue;
1: +
1: +struct xdp_sock {
1: + struct sock sk;
1: + long: 64;
1: + struct xsk_queue *rx;
1: + struct net_device *dev;
1: + struct xdp_umem *umem;
1: + struct list_head flush_node;
1: + struct xsk_buff_pool *pool;
1: + u16 queue_id;
1: + bool zc;
1: + enum {
1: + XSK_READY = 0,
1: + XSK_BOUND = 1,
1: + XSK_UNBOUND = 2,
1: + } state;
1: + long: 64;
1: + struct xsk_queue *tx;
1: + struct list_head tx_list;
1: + spinlock_t rx_lock;
1: + u64 rx_dropped;
1: + u64 rx_queue_full;
1: + struct list_head map_list;
1: + spinlock_t map_list_lock;
1: + struct mutex mutex;
1: + struct xsk_queue *fq_tmp;
1: + struct xsk_queue *cq_tmp;
1: + long: 64;
1: +};
1: +
1: +struct ipv6_sr_hdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: + __u8 first_segment;
1: + __u8 flags;
1: + __u16 tag;
1: + struct in6_addr segments[0];
1: +};
1: +
1: +enum {
1: + SEG6_LOCAL_ACTION_UNSPEC = 0,
1: + SEG6_LOCAL_ACTION_END = 1,
1: + SEG6_LOCAL_ACTION_END_X = 2,
1: + SEG6_LOCAL_ACTION_END_T = 3,
1: + SEG6_LOCAL_ACTION_END_DX2 = 4,
1: + SEG6_LOCAL_ACTION_END_DX6 = 5,
1: + SEG6_LOCAL_ACTION_END_DX4 = 6,
1: + SEG6_LOCAL_ACTION_END_DT6 = 7,
1: + SEG6_LOCAL_ACTION_END_DT4 = 8,
1: + SEG6_LOCAL_ACTION_END_B6 = 9,
1: + SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
1: + SEG6_LOCAL_ACTION_END_BM = 11,
1: + SEG6_LOCAL_ACTION_END_S = 12,
1: + SEG6_LOCAL_ACTION_END_AS = 13,
1: + SEG6_LOCAL_ACTION_END_AM = 14,
1: + SEG6_LOCAL_ACTION_END_BPF = 15,
1: + __SEG6_LOCAL_ACTION_MAX = 16,
1: +};
1: +
1: +struct seg6_bpf_srh_state {
1: + struct ipv6_sr_hdr *srh;
1: + u16 hdrlen;
1: + bool valid;
1: +};
1: +
1: +struct tls_crypto_info {
1: + __u16 version;
1: + __u16 cipher_type;
1: +};
1: +
1: +struct tls12_crypto_info_aes_gcm_128 {
1: + struct tls_crypto_info info;
1: + unsigned char iv[8];
1: + unsigned char key[16];
1: + unsigned char salt[4];
1: + unsigned char rec_seq[8];
1: +};
1: +
1: +struct tls12_crypto_info_aes_gcm_256 {
1: + struct tls_crypto_info info;
1: + unsigned char iv[8];
1: + unsigned char key[32];
1: + unsigned char salt[4];
1: + unsigned char rec_seq[8];
1: +};
1: +
1: +struct tls_sw_context_rx {
1: + struct crypto_aead *aead_recv;
1: + struct crypto_wait async_wait;
1: + struct strparser strp;
1: + struct sk_buff_head rx_list;
1: + void (*saved_data_ready)(struct sock *);
1: + struct sk_buff *recv_pkt;
1: + u8 control;
1: + u8 async_capable: 1;
1: + u8 decrypted: 1;
1: + atomic_t decrypt_pending;
1: + spinlock_t decrypt_compl_lock;
1: + bool async_notify;
1: +};
1: +
1: +struct cipher_context {
1: + char *iv;
1: + char *rec_seq;
1: +};
1: +
1: +union tls_crypto_context {
1: + struct tls_crypto_info info;
1: + union {
1: + struct tls12_crypto_info_aes_gcm_128 aes_gcm_128;
1: + struct tls12_crypto_info_aes_gcm_256 aes_gcm_256;
1: + };
1: +};
1: +
1: +struct tls_prot_info {
1: + u16 version;
1: + u16 cipher_type;
1: + u16 prepend_size;
1: + u16 tag_size;
1: + u16 overhead_size;
1: + u16 iv_size;
1: + u16 salt_size;
1: + u16 rec_seq_size;
1: + u16 aad_size;
1: + u16 tail_size;
1: +};
1: +
1: +struct tls_context {
1: + struct tls_prot_info prot_info;
1: + u8 tx_conf: 3;
1: + u8 rx_conf: 3;
1: + int (*push_pending_record)(struct sock *, int);
1: + void (*sk_write_space)(struct sock *);
1: + void *priv_ctx_tx;
1: + void *priv_ctx_rx;
1: + struct net_device *netdev;
1: + struct cipher_context tx;
1: + struct cipher_context rx;
1: + struct scatterlist *partially_sent_record;
1: + u16 partially_sent_offset;
1: + bool in_tcp_sendpages;
1: + bool pending_open_record_frags;
1: + struct mutex tx_lock;
1: + long unsigned int flags;
1: + struct proto *sk_proto;
1: + void (*sk_destruct)(struct sock *);
1: + union tls_crypto_context crypto_send;
1: + union tls_crypto_context crypto_recv;
1: + struct list_head list;
1: + refcount_t refcount;
1: + struct callback_head rcu;
1: +};
1: +
1: +typedef u64 (*btf_bpf_skb_get_pay_offset)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_skb_get_nlattr)(struct sk_buff *, u32, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_get_nlattr_nest)(struct sk_buff *, u32, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_8)(const struct sk_buff *, const void *, int, int);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_8_no_cache)(const struct sk_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_16)(const struct sk_buff *, const void *, int, int);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_16_no_cache)(const struct sk_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_32)(const struct sk_buff *, const void *, int, int);
1: +
1: +typedef u64 (*btf_bpf_skb_load_helper_32_no_cache)(const struct sk_buff *, int);
1: +
1: +struct bpf_scratchpad {
1: + union {
1: + __be32 diff[128];
1: + u8 buff[512];
1: + };
1: +};
1: +
1: +typedef u64 (*btf_bpf_skb_store_bytes)(struct sk_buff *, u32, const void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_load_bytes)(const struct sk_buff *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_bpf_flow_dissector_load_bytes)(const struct bpf_flow_dissector *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_load_bytes_relative)(const struct sk_buff *, u32, void *, u32, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_pull_data)(struct sk_buff *, u32);
1: +
1: +typedef u64 (*btf_bpf_sk_fullsock)(struct sock *);
1: +
1: +typedef u64 (*btf_sk_skb_pull_data)(struct sk_buff *, u32);
1: +
1: +typedef u64 (*btf_bpf_l3_csum_replace)(struct sk_buff *, u32, u64, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_l4_csum_replace)(struct sk_buff *, u32, u64, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_csum_diff)(__be32 *, u32, __be32 *, u32, __wsum);
1: +
1: +typedef u64 (*btf_bpf_csum_update)(struct sk_buff *, __wsum);
1: +
1: +typedef u64 (*btf_bpf_csum_level)(struct sk_buff *, u64);
1: +
1: +enum {
1: + BPF_F_NEIGH = 2,
1: + BPF_F_PEER = 4,
1: + BPF_F_NEXTHOP = 8,
1: +};
1: +
1: +typedef u64 (*btf_bpf_clone_redirect)(struct sk_buff *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_redirect)(u32, u64);
1: +
1: +typedef u64 (*btf_bpf_redirect_peer)(u32, u64);
1: +
1: +typedef u64 (*btf_bpf_redirect_neigh)(u32, struct bpf_redir_neigh *, int, u64);
1: +
1: +typedef u64 (*btf_bpf_msg_apply_bytes)(struct sk_msg *, u32);
1: +
1: +typedef u64 (*btf_bpf_msg_cork_bytes)(struct sk_msg *, u32);
1: +
1: +typedef u64 (*btf_bpf_msg_pull_data)(struct sk_msg *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_msg_push_data)(struct sk_msg *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_msg_pop_data)(struct sk_msg *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_get_cgroup_classid_curr)();
1: +
1: +typedef u64 (*btf_bpf_skb_cgroup_classid)(const struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_get_cgroup_classid)(const struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_get_route_realm)(const struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_get_hash_recalc)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_set_hash_invalid)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_set_hash)(struct sk_buff *, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_vlan_push)(struct sk_buff *, __be16, u16);
1: +
1: +typedef u64 (*btf_bpf_skb_vlan_pop)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_skb_change_proto)(struct sk_buff *, __be16, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_change_type)(struct sk_buff *, u32);
1: +
1: +typedef u64 (*btf_sk_skb_adjust_room)(struct sk_buff *, s32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_adjust_room)(struct sk_buff *, s32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_change_tail)(struct sk_buff *, u32, u64);
1: +
1: +typedef u64 (*btf_sk_skb_change_tail)(struct sk_buff *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_change_head)(struct sk_buff *, u32, u64);
1: +
1: +typedef u64 (*btf_sk_skb_change_head)(struct sk_buff *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_xdp_adjust_head)(struct xdp_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_xdp_adjust_tail)(struct xdp_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_xdp_adjust_meta)(struct xdp_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_xdp_redirect)(u32, u64);
1: +
1: +typedef u64 (*btf_bpf_xdp_redirect_map)(struct bpf_map *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_event_output)(struct sk_buff *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_get_tunnel_key)(struct sk_buff *, struct bpf_tunnel_key *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_get_tunnel_opt)(struct sk_buff *, u8 *, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_set_tunnel_key)(struct sk_buff *, const struct bpf_tunnel_key *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_skb_set_tunnel_opt)(struct sk_buff *, const u8 *, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_under_cgroup)(struct sk_buff *, struct bpf_map *, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_cgroup_id)(const struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_skb_ancestor_cgroup_id)(const struct sk_buff *, int);
1: +
1: +typedef u64 (*btf_bpf_sk_cgroup_id)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_sk_ancestor_cgroup_id)(struct sock *, int);
1: +
1: +typedef u64 (*btf_bpf_xdp_event_output)(struct xdp_buff *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_socket_cookie)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_get_socket_cookie_sock_addr)(struct bpf_sock_addr_kern *);
1: +
1: +typedef u64 (*btf_bpf_get_socket_cookie_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_get_socket_cookie_sock_ops)(struct bpf_sock_ops_kern *);
1: +
1: +typedef u64 (*btf_bpf_get_netns_cookie_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_get_netns_cookie_sock_addr)(struct bpf_sock_addr_kern *);
1: +
1: +typedef u64 (*btf_bpf_get_socket_uid)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_sock_addr_setsockopt)(struct bpf_sock_addr_kern *, int, int, char *, int);
1: +
1: +typedef u64 (*btf_bpf_sock_addr_getsockopt)(struct bpf_sock_addr_kern *, int, int, char *, int);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_setsockopt)(struct bpf_sock_ops_kern *, int, int, char *, int);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_getsockopt)(struct bpf_sock_ops_kern *, int, int, char *, int);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_cb_flags_set)(struct bpf_sock_ops_kern *, int);
1: +
1: +typedef u64 (*btf_bpf_bind)(struct bpf_sock_addr_kern *, struct sockaddr *, int);
1: +
1: +typedef u64 (*btf_bpf_skb_get_xfrm_state)(struct sk_buff *, u32, struct bpf_xfrm_state *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_xdp_fib_lookup)(struct xdp_buff *, struct bpf_fib_lookup *, int, u32);
1: +
1: +typedef u64 (*btf_bpf_skb_fib_lookup)(struct sk_buff *, struct bpf_fib_lookup *, int, u32);
1: +
1: +typedef u64 (*btf_bpf_lwt_in_push_encap)(struct sk_buff *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_bpf_lwt_xmit_push_encap)(struct sk_buff *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_bpf_lwt_seg6_store_bytes)(struct sk_buff *, u32, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_lwt_seg6_action)(struct sk_buff *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_bpf_lwt_seg6_adjust_srh)(struct sk_buff *, u32, s32);
1: +
1: +typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_release)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_tcp_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_get_listener_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_skb_ecn_set_ce)(struct sk_buff *);
1: +
1: +typedef u64 (*btf_bpf_tcp_check_syncookie)(struct sock *, void *, u32, struct tcphdr *, u32);
1: +
1: +typedef u64 (*btf_bpf_tcp_gen_syncookie)(struct sock *, void *, u32, struct tcphdr *, u32);
1: +
1: +typedef u64 (*btf_bpf_sk_assign)(struct sk_buff *, struct sock *, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_load_hdr_opt)(struct bpf_sock_ops_kern *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_store_hdr_opt)(struct bpf_sock_ops_kern *, const void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_sock_ops_reserve_hdr_opt)(struct bpf_sock_ops_kern *, u32, u64);
1: +
1: +typedef u64 (*btf_sk_select_reuseport)(struct sk_reuseport_kern *, struct bpf_map *, void *, u32);
1: +
1: +typedef u64 (*btf_sk_reuseport_load_bytes)(const struct sk_reuseport_kern *, u32, void *, u32);
1: +
1: +typedef u64 (*btf_sk_reuseport_load_bytes_relative)(const struct sk_reuseport_kern *, u32, void *, u32, u32);
1: +
1: +typedef u64 (*btf_bpf_sk_lookup_assign)(struct bpf_sk_lookup_kern *, struct sock *, u64);
1: +
1: +typedef u64 (*btf_bpf_skc_to_tcp6_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_skc_to_tcp_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_skc_to_tcp_timewait_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_skc_to_tcp_request_sock)(struct sock *);
1: +
1: +typedef u64 (*btf_bpf_skc_to_udp6_sock)(struct sock *);
1: +
1: +struct bpf_dtab_netdev___2;
1: +
1: +enum {
1: + INET_DIAG_REQ_NONE = 0,
1: + INET_DIAG_REQ_BYTECODE = 1,
1: + INET_DIAG_REQ_SK_BPF_STORAGES = 2,
1: + INET_DIAG_REQ_PROTOCOL = 3,
1: + __INET_DIAG_REQ_MAX = 4,
1: +};
1: +
1: +struct sock_diag_req {
1: + __u8 sdiag_family;
1: + __u8 sdiag_protocol;
1: +};
1: +
1: +struct sock_diag_handler {
1: + __u8 family;
1: + int (*dump)(struct sk_buff *, struct nlmsghdr *);
1: + int (*get_info)(struct sk_buff *, struct sock *);
1: + int (*destroy)(struct sk_buff *, struct nlmsghdr *);
1: +};
1: +
1: +struct broadcast_sk {
1: + struct sock *sk;
1: + struct work_struct work;
1: +};
1: +
1: +typedef int gifconf_func_t(struct net_device *, char *, int, int);
1: +
1: +struct hwtstamp_config {
1: + int flags;
1: + int tx_type;
1: + int rx_filter;
1: +};
1: +
1: +enum hwtstamp_tx_types {
1: + HWTSTAMP_TX_OFF = 0,
1: + HWTSTAMP_TX_ON = 1,
1: + HWTSTAMP_TX_ONESTEP_SYNC = 2,
1: + HWTSTAMP_TX_ONESTEP_P2P = 3,
1: + __HWTSTAMP_TX_CNT = 4,
1: +};
1: +
1: +enum hwtstamp_rx_filters {
1: + HWTSTAMP_FILTER_NONE = 0,
1: + HWTSTAMP_FILTER_ALL = 1,
1: + HWTSTAMP_FILTER_SOME = 2,
1: + HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3,
1: + HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4,
1: + HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5,
1: + HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6,
1: + HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7,
1: + HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8,
1: + HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9,
1: + HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10,
1: + HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11,
1: + HWTSTAMP_FILTER_PTP_V2_EVENT = 12,
1: + HWTSTAMP_FILTER_PTP_V2_SYNC = 13,
1: + HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14,
1: + HWTSTAMP_FILTER_NTP_ALL = 15,
1: + __HWTSTAMP_FILTER_CNT = 16,
1: +};
1: +
1: +struct tso_t {
1: + int next_frag_idx;
1: + int size;
1: + void *data;
1: + u16 ip_id;
1: + u8 tlen;
1: + bool ipv6;
1: + u32 tcp_seq;
1: +};
1: +
1: +struct fib_notifier_info {
1: + int family;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +enum fib_event_type {
1: + FIB_EVENT_ENTRY_REPLACE = 0,
1: + FIB_EVENT_ENTRY_APPEND = 1,
1: + FIB_EVENT_ENTRY_ADD = 2,
1: + FIB_EVENT_ENTRY_DEL = 3,
1: + FIB_EVENT_RULE_ADD = 4,
1: + FIB_EVENT_RULE_DEL = 5,
1: + FIB_EVENT_NH_ADD = 6,
1: + FIB_EVENT_NH_DEL = 7,
1: + FIB_EVENT_VIF_ADD = 8,
1: + FIB_EVENT_VIF_DEL = 9,
1: +};
1: +
1: +struct fib_notifier_net {
1: + struct list_head fib_notifier_ops;
1: + struct atomic_notifier_head fib_chain;
1: +};
1: +
1: +struct xdp_attachment_info {
1: + struct bpf_prog *prog;
1: + u32 flags;
1: +};
1: +
1: +struct xdp_buff_xsk;
1: +
1: +struct xsk_buff_pool {
1: + struct device *dev;
1: + struct net_device *netdev;
1: + struct list_head xsk_tx_list;
1: + spinlock_t xsk_tx_list_lock;
1: + refcount_t users;
1: + struct xdp_umem *umem;
1: + struct work_struct work;
1: + struct list_head free_list;
1: + u32 heads_cnt;
1: + u16 queue_id;
1: + long: 16;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct xsk_queue *fq;
1: + struct xsk_queue *cq;
1: + dma_addr_t *dma_pages;
1: + struct xdp_buff_xsk *heads;
1: + u64 chunk_mask;
1: + u64 addrs_cnt;
1: + u32 free_list_cnt;
1: + u32 dma_pages_cnt;
1: + u32 free_heads_cnt;
1: + u32 headroom;
1: + u32 chunk_size;
1: + u32 frame_len;
1: + u8 cached_need_wakeup;
1: + bool uses_need_wakeup;
1: + bool dma_need_sync;
1: + bool unaligned;
1: + void *addrs;
1: + spinlock_t cq_lock;
1: + struct xdp_buff_xsk *free_heads[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xdp_buff_xsk {
1: + struct xdp_buff xdp;
1: + dma_addr_t dma;
1: + dma_addr_t frame_dma;
1: + struct xsk_buff_pool *pool;
1: + bool unaligned;
1: + u64 orig_addr;
1: + struct list_head free_list_node;
1: +};
1: +
1: +struct flow_match_meta {
1: + struct flow_dissector_key_meta *key;
1: + struct flow_dissector_key_meta *mask;
1: +};
1: +
1: +struct flow_match_basic {
1: + struct flow_dissector_key_basic *key;
1: + struct flow_dissector_key_basic *mask;
1: +};
1: +
1: +struct flow_match_control {
1: + struct flow_dissector_key_control *key;
1: + struct flow_dissector_key_control *mask;
1: +};
1: +
1: +struct flow_match_eth_addrs {
1: + struct flow_dissector_key_eth_addrs *key;
1: + struct flow_dissector_key_eth_addrs *mask;
1: +};
1: +
1: +struct flow_match_vlan {
1: + struct flow_dissector_key_vlan *key;
1: + struct flow_dissector_key_vlan *mask;
1: +};
1: +
1: +struct flow_match_ipv4_addrs {
1: + struct flow_dissector_key_ipv4_addrs *key;
1: + struct flow_dissector_key_ipv4_addrs *mask;
1: +};
1: +
1: +struct flow_match_ipv6_addrs {
1: + struct flow_dissector_key_ipv6_addrs *key;
1: + struct flow_dissector_key_ipv6_addrs *mask;
1: +};
1: +
1: +struct flow_match_ip {
1: + struct flow_dissector_key_ip *key;
1: + struct flow_dissector_key_ip *mask;
1: +};
1: +
1: +struct flow_match_ports {
1: + struct flow_dissector_key_ports *key;
1: + struct flow_dissector_key_ports *mask;
1: +};
1: +
1: +struct flow_match_icmp {
1: + struct flow_dissector_key_icmp *key;
1: + struct flow_dissector_key_icmp *mask;
1: +};
1: +
1: +struct flow_match_tcp {
1: + struct flow_dissector_key_tcp *key;
1: + struct flow_dissector_key_tcp *mask;
1: +};
1: +
1: +struct flow_match_mpls {
1: + struct flow_dissector_key_mpls *key;
1: + struct flow_dissector_key_mpls *mask;
1: +};
1: +
1: +struct flow_match_enc_keyid {
1: + struct flow_dissector_key_keyid *key;
1: + struct flow_dissector_key_keyid *mask;
1: +};
1: +
1: +struct flow_match_enc_opts {
1: + struct flow_dissector_key_enc_opts *key;
1: + struct flow_dissector_key_enc_opts *mask;
1: +};
1: +
1: +struct flow_match_ct {
1: + struct flow_dissector_key_ct *key;
1: + struct flow_dissector_key_ct *mask;
1: +};
1: +
1: +enum flow_block_command {
1: + FLOW_BLOCK_BIND = 0,
1: + FLOW_BLOCK_UNBIND = 1,
1: +};
1: +
1: +enum flow_block_binder_type {
1: + FLOW_BLOCK_BINDER_TYPE_UNSPEC = 0,
1: + FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS = 1,
1: + FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS = 2,
1: + FLOW_BLOCK_BINDER_TYPE_RED_EARLY_DROP = 3,
1: + FLOW_BLOCK_BINDER_TYPE_RED_MARK = 4,
1: +};
1: +
1: +struct flow_block_offload {
1: + enum flow_block_command command;
1: + enum flow_block_binder_type binder_type;
1: + bool block_shared;
1: + bool unlocked_driver_cb;
1: + struct net *net;
1: + struct flow_block *block;
1: + struct list_head cb_list;
1: + struct list_head *driver_block_list;
1: + struct netlink_ext_ack *extack;
1: + struct Qdisc *sch;
1: +};
1: +
1: +struct flow_block_cb;
1: +
1: +struct flow_block_indr {
1: + struct list_head list;
1: + struct net_device *dev;
1: + struct Qdisc *sch;
1: + enum flow_block_binder_type binder_type;
1: + void *data;
1: + void *cb_priv;
1: + void (*cleanup)(struct flow_block_cb *);
1: +};
1: +
1: +struct flow_block_cb {
1: + struct list_head driver_list;
1: + struct list_head list;
1: + flow_setup_cb_t *cb;
1: + void *cb_ident;
1: + void *cb_priv;
1: + void (*release)(void *);
1: + struct flow_block_indr indr;
1: + unsigned int refcnt;
1: +};
1: +
1: +typedef int flow_indr_block_bind_cb_t(struct net_device *, struct Qdisc *, void *, enum tc_setup_type, void *, void *, void (*)(struct flow_block_cb *));
1: +
1: +struct flow_indr_dev {
1: + struct list_head list;
1: + flow_indr_block_bind_cb_t *cb;
1: + void *cb_priv;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rx_queue_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct netdev_rx_queue *, char *);
1: + ssize_t (*store)(struct netdev_rx_queue *, const char *, size_t);
1: +};
1: +
1: +struct netdev_queue_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct netdev_queue *, char *);
1: + ssize_t (*store)(struct netdev_queue *, const char *, size_t);
1: +};
1: +
1: +enum __sk_action {
1: + __SK_DROP = 0,
1: + __SK_PASS = 1,
1: + __SK_REDIRECT = 2,
1: + __SK_NONE = 3,
1: +};
1: +
1: +struct sk_psock_progs {
1: + struct bpf_prog *msg_parser;
1: + struct bpf_prog *skb_parser;
1: + struct bpf_prog *skb_verdict;
1: +};
1: +
1: +enum sk_psock_state_bits {
1: + SK_PSOCK_TX_ENABLED = 0,
1: +};
1: +
1: +struct sk_psock_link {
1: + struct list_head list;
1: + struct bpf_map *map;
1: + void *link_raw;
1: +};
1: +
1: +struct sk_psock_parser {
1: + struct strparser strp;
1: + bool enabled;
1: + void (*saved_data_ready)(struct sock *);
1: +};
1: +
1: +struct sk_psock_work_state {
1: + struct sk_buff *skb;
1: + u32 len;
1: + u32 off;
1: +};
1: +
1: +struct sk_psock {
1: + struct sock *sk;
1: + struct sock *sk_redir;
1: + u32 apply_bytes;
1: + u32 cork_bytes;
1: + u32 eval;
1: + struct sk_msg *cork;
1: + struct sk_psock_progs progs;
1: + struct sk_psock_parser parser;
1: + struct sk_buff_head ingress_skb;
1: + struct list_head ingress_msg;
1: + long unsigned int state;
1: + struct list_head link;
1: + spinlock_t link_lock;
1: + refcount_t refcnt;
1: + void (*saved_unhash)(struct sock *);
1: + void (*saved_close)(struct sock *, long int);
1: + void (*saved_write_space)(struct sock *);
1: + struct proto *sk_proto;
1: + struct sk_psock_work_state work_state;
1: + struct work_struct work;
1: + union {
1: + struct callback_head rcu;
1: + struct work_struct gc;
1: + };
1: +};
1: +
1: +struct inet6_ifaddr {
1: + struct in6_addr addr;
1: + __u32 prefix_len;
1: + __u32 rt_priority;
1: + __u32 valid_lft;
1: + __u32 prefered_lft;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + int state;
1: + __u32 flags;
1: + __u8 dad_probes;
1: + __u8 stable_privacy_retry;
1: + __u16 scope;
1: + __u64 dad_nonce;
1: + long unsigned int cstamp;
1: + long unsigned int tstamp;
1: + struct delayed_work dad_work;
1: + struct inet6_dev *idev;
1: + struct fib6_info *rt;
1: + struct hlist_node addr_lst;
1: + struct list_head if_list;
1: + struct list_head tmp_list;
1: + struct inet6_ifaddr *ifpub;
1: + int regen_count;
1: + bool tokenized;
1: + struct callback_head rcu;
1: + struct in6_addr peer_addr;
1: +};
1: +
1: +struct fib_rule_uid_range {
1: + __u32 start;
1: + __u32 end;
1: +};
1: +
1: +enum {
1: + FRA_UNSPEC = 0,
1: + FRA_DST = 1,
1: + FRA_SRC = 2,
1: + FRA_IIFNAME = 3,
1: + FRA_GOTO = 4,
1: + FRA_UNUSED2 = 5,
1: + FRA_PRIORITY = 6,
1: + FRA_UNUSED3 = 7,
1: + FRA_UNUSED4 = 8,
1: + FRA_UNUSED5 = 9,
1: + FRA_FWMARK = 10,
1: + FRA_FLOW = 11,
1: + FRA_TUN_ID = 12,
1: + FRA_SUPPRESS_IFGROUP = 13,
1: + FRA_SUPPRESS_PREFIXLEN = 14,
1: + FRA_TABLE = 15,
1: + FRA_FWMASK = 16,
1: + FRA_OIFNAME = 17,
1: + FRA_PAD = 18,
1: + FRA_L3MDEV = 19,
1: + FRA_UID_RANGE = 20,
1: + FRA_PROTOCOL = 21,
1: + FRA_IP_PROTO = 22,
1: + FRA_SPORT_RANGE = 23,
1: + FRA_DPORT_RANGE = 24,
1: + __FRA_MAX = 25,
1: +};
1: +
1: +enum {
1: + FR_ACT_UNSPEC = 0,
1: + FR_ACT_TO_TBL = 1,
1: + FR_ACT_GOTO = 2,
1: + FR_ACT_NOP = 3,
1: + FR_ACT_RES3 = 4,
1: + FR_ACT_RES4 = 5,
1: + FR_ACT_BLACKHOLE = 6,
1: + FR_ACT_UNREACHABLE = 7,
1: + FR_ACT_PROHIBIT = 8,
1: + __FR_ACT_MAX = 9,
1: +};
1: +
1: +struct fib_rule_notifier_info {
1: + struct fib_notifier_info info;
1: + struct fib_rule *rule;
1: +};
1: +
1: +struct trace_event_raw_kfree_skb {
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + void *location;
1: + short unsigned int protocol;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_consume_skb {
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_skb_copy_datagram_iovec {
1: + struct trace_entry ent;
1: + const void *skbaddr;
1: + int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kfree_skb {};
1: +
1: +struct trace_event_data_offsets_consume_skb {};
1: +
1: +struct trace_event_data_offsets_skb_copy_datagram_iovec {};
1: +
1: +typedef void (*btf_trace_kfree_skb)(void *, struct sk_buff *, void *);
1: +
1: +typedef void (*btf_trace_consume_skb)(void *, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_skb_copy_datagram_iovec)(void *, const struct sk_buff *, int);
1: +
1: +struct trace_event_raw_net_dev_start_xmit {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u16 queue_mapping;
1: + const void *skbaddr;
1: + bool vlan_tagged;
1: + u16 vlan_proto;
1: + u16 vlan_tci;
1: + u16 protocol;
1: + u8 ip_summed;
1: + unsigned int len;
1: + unsigned int data_len;
1: + int network_offset;
1: + bool transport_offset_valid;
1: + int transport_offset;
1: + u8 tx_flags;
1: + u16 gso_size;
1: + u16 gso_segs;
1: + u16 gso_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_net_dev_xmit {
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + unsigned int len;
1: + int rc;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_net_dev_xmit_timeout {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_driver;
1: + int queue_index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_net_dev_template {
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + unsigned int len;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_net_dev_rx_verbose_template {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int napi_id;
1: + u16 queue_mapping;
1: + const void *skbaddr;
1: + bool vlan_tagged;
1: + u16 vlan_proto;
1: + u16 vlan_tci;
1: + u16 protocol;
1: + u8 ip_summed;
1: + u32 hash;
1: + bool l4_hash;
1: + unsigned int len;
1: + unsigned int data_len;
1: + unsigned int truesize;
1: + bool mac_header_valid;
1: + int mac_header;
1: + unsigned char nr_frags;
1: + u16 gso_size;
1: + u16 gso_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_net_dev_rx_exit_template {
1: + struct trace_entry ent;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_start_xmit {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_xmit {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_xmit_timeout {
1: + u32 name;
1: + u32 driver;
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_template {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_rx_verbose_template {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_net_dev_rx_exit_template {};
1: +
1: +typedef void (*btf_trace_net_dev_start_xmit)(void *, const struct sk_buff *, const struct net_device *);
1: +
1: +typedef void (*btf_trace_net_dev_xmit)(void *, struct sk_buff *, int, struct net_device *, unsigned int);
1: +
1: +typedef void (*btf_trace_net_dev_xmit_timeout)(void *, struct net_device *, int);
1: +
1: +typedef void (*btf_trace_net_dev_queue)(void *, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_receive_skb)(void *, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_rx)(void *, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_napi_gro_frags_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_napi_gro_receive_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_receive_skb_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_receive_skb_list_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_rx_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_netif_rx_ni_entry)(void *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_napi_gro_frags_exit)(void *, int);
1: +
1: +typedef void (*btf_trace_napi_gro_receive_exit)(void *, int);
1: +
1: +typedef void (*btf_trace_netif_receive_skb_exit)(void *, int);
1: +
1: +typedef void (*btf_trace_netif_rx_exit)(void *, int);
1: +
1: +typedef void (*btf_trace_netif_rx_ni_exit)(void *, int);
1: +
1: +typedef void (*btf_trace_netif_receive_skb_list_exit)(void *, int);
1: +
1: +struct trace_event_raw_napi_poll {
1: + struct trace_entry ent;
1: + struct napi_struct *napi;
1: + u32 __data_loc_dev_name;
1: + int work;
1: + int budget;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_napi_poll {
1: + u32 dev_name;
1: +};
1: +
1: +typedef void (*btf_trace_napi_poll)(void *, struct napi_struct *, int, int);
1: +
1: +enum tcp_ca_state {
1: + TCP_CA_Open = 0,
1: + TCP_CA_Disorder = 1,
1: + TCP_CA_CWR = 2,
1: + TCP_CA_Recovery = 3,
1: + TCP_CA_Loss = 4,
1: +};
1: +
1: +struct trace_event_raw_sock_rcvqueue_full {
1: + struct trace_entry ent;
1: + int rmem_alloc;
1: + unsigned int truesize;
1: + int sk_rcvbuf;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sock_exceed_buf_limit {
1: + struct trace_entry ent;
1: + char name[32];
1: + long int *sysctl_mem;
1: + long int allocated;
1: + int sysctl_rmem;
1: + int rmem_alloc;
1: + int sysctl_wmem;
1: + int wmem_alloc;
1: + int wmem_queued;
1: + int kind;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_inet_sock_set_state {
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + int oldstate;
1: + int newstate;
1: + __u16 sport;
1: + __u16 dport;
1: + __u16 family;
1: + __u16 protocol;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_sock_rcvqueue_full {};
1: +
1: +struct trace_event_data_offsets_sock_exceed_buf_limit {};
1: +
1: +struct trace_event_data_offsets_inet_sock_set_state {};
1: +
1: +typedef void (*btf_trace_sock_rcvqueue_full)(void *, struct sock *, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_sock_exceed_buf_limit)(void *, struct sock *, struct proto *, long int, int);
1: +
1: +typedef void (*btf_trace_inet_sock_set_state)(void *, const struct sock *, const int, const int);
1: +
1: +struct trace_event_raw_udp_fail_queue_rcv_skb {
1: + struct trace_entry ent;
1: + int rc;
1: + __u16 lport;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_udp_fail_queue_rcv_skb {};
1: +
1: +typedef void (*btf_trace_udp_fail_queue_rcv_skb)(void *, int, struct sock *);
1: +
1: +struct trace_event_raw_tcp_event_sk_skb {
1: + struct trace_entry ent;
1: + const void *skbaddr;
1: + const void *skaddr;
1: + int state;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tcp_event_sk {
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + __u64 sock_cookie;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tcp_retransmit_synack {
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + const void *req;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tcp_probe {
1: + struct trace_entry ent;
1: + __u8 saddr[28];
1: + __u8 daddr[28];
1: + __u16 sport;
1: + __u16 dport;
1: + __u32 mark;
1: + __u16 data_len;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 snd_cwnd;
1: + __u32 ssthresh;
1: + __u32 snd_wnd;
1: + __u32 srtt;
1: + __u32 rcv_wnd;
1: + __u64 sock_cookie;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_tcp_event_sk_skb {};
1: +
1: +struct trace_event_data_offsets_tcp_event_sk {};
1: +
1: +struct trace_event_data_offsets_tcp_retransmit_synack {};
1: +
1: +struct trace_event_data_offsets_tcp_probe {};
1: +
1: +typedef void (*btf_trace_tcp_retransmit_skb)(void *, const struct sock *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_tcp_send_reset)(void *, const struct sock *, const struct sk_buff *);
1: +
1: +typedef void (*btf_trace_tcp_receive_reset)(void *, struct sock *);
1: +
1: +typedef void (*btf_trace_tcp_destroy_sock)(void *, struct sock *);
1: +
1: +typedef void (*btf_trace_tcp_rcv_space_adjust)(void *, struct sock *);
1: +
1: +typedef void (*btf_trace_tcp_retransmit_synack)(void *, const struct sock *, const struct request_sock *);
1: +
1: +typedef void (*btf_trace_tcp_probe)(void *, struct sock *, struct sk_buff *);
1: +
1: +struct trace_event_raw_fib_table_lookup {
1: + struct trace_entry ent;
1: + u32 tb_id;
1: + int err;
1: + int oif;
1: + int iif;
1: + u8 proto;
1: + __u8 tos;
1: + __u8 scope;
1: + __u8 flags;
1: + __u8 src[4];
1: + __u8 dst[4];
1: + __u8 gw4[4];
1: + __u8 gw6[16];
1: + u16 sport;
1: + u16 dport;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_fib_table_lookup {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_fib_table_lookup)(void *, u32, const struct flowi4 *, const struct fib_nh_common *, int);
1: +
1: +struct trace_event_raw_qdisc_dequeue {
1: + struct trace_entry ent;
1: + struct Qdisc *qdisc;
1: + const struct netdev_queue *txq;
1: + int packets;
1: + void *skbaddr;
1: + int ifindex;
1: + u32 handle;
1: + u32 parent;
1: + long unsigned int txq_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_qdisc_reset {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + u32 handle;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_qdisc_destroy {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + u32 handle;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_qdisc_create {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_qdisc_dequeue {};
1: +
1: +struct trace_event_data_offsets_qdisc_reset {
1: + u32 dev;
1: + u32 kind;
1: +};
1: +
1: +struct trace_event_data_offsets_qdisc_destroy {
1: + u32 dev;
1: + u32 kind;
1: +};
1: +
1: +struct trace_event_data_offsets_qdisc_create {
1: + u32 dev;
1: + u32 kind;
1: +};
1: +
1: +typedef void (*btf_trace_qdisc_dequeue)(void *, struct Qdisc *, const struct netdev_queue *, int, struct sk_buff *);
1: +
1: +typedef void (*btf_trace_qdisc_reset)(void *, struct Qdisc *);
1: +
1: +typedef void (*btf_trace_qdisc_destroy)(void *, struct Qdisc *);
1: +
1: +typedef void (*btf_trace_qdisc_create)(void *, const struct Qdisc_ops *, struct net_device *, u32);
1: +
1: +struct bridge_stp_xstats {
1: + __u64 transition_blk;
1: + __u64 transition_fwd;
1: + __u64 rx_bpdu;
1: + __u64 tx_bpdu;
1: + __u64 rx_tcn;
1: + __u64 tx_tcn;
1: +};
1: +
1: +struct br_mcast_stats {
1: + __u64 igmp_v1queries[2];
1: + __u64 igmp_v2queries[2];
1: + __u64 igmp_v3queries[2];
1: + __u64 igmp_leaves[2];
1: + __u64 igmp_v1reports[2];
1: + __u64 igmp_v2reports[2];
1: + __u64 igmp_v3reports[2];
1: + __u64 igmp_parse_errors;
1: + __u64 mld_v1queries[2];
1: + __u64 mld_v2queries[2];
1: + __u64 mld_leaves[2];
1: + __u64 mld_v1reports[2];
1: + __u64 mld_v2reports[2];
1: + __u64 mld_parse_errors;
1: + __u64 mcast_bytes[2];
1: + __u64 mcast_packets[2];
1: +};
1: +
1: +struct br_ip {
1: + union {
1: + __be32 ip4;
1: + struct in6_addr ip6;
1: + } src;
1: + union {
1: + __be32 ip4;
1: + struct in6_addr ip6;
1: + } dst;
1: + __be16 proto;
1: + __u16 vid;
1: +};
1: +
1: +struct bridge_id {
1: + unsigned char prio[2];
1: + unsigned char addr[6];
1: +};
1: +
1: +typedef struct bridge_id bridge_id;
1: +
1: +struct mac_addr {
1: + unsigned char addr[6];
1: +};
1: +
1: +typedef struct mac_addr mac_addr;
1: +
1: +typedef __u16 port_id;
1: +
1: +struct bridge_mcast_own_query {
1: + struct timer_list timer;
1: + u32 startup_sent;
1: +};
1: +
1: +struct bridge_mcast_other_query {
1: + struct timer_list timer;
1: + long unsigned int delay_time;
1: +};
1: +
1: +struct net_bridge_port;
1: +
1: +struct bridge_mcast_querier {
1: + struct br_ip addr;
1: + struct net_bridge_port *port;
1: +};
1: +
1: +struct net_bridge;
1: +
1: +struct net_bridge_vlan_group;
1: +
1: +struct bridge_mcast_stats;
1: +
1: +struct net_bridge_port {
1: + struct net_bridge *br;
1: + struct net_device *dev;
1: + struct list_head list;
1: + long unsigned int flags;
1: + struct net_bridge_vlan_group *vlgrp;
1: + struct net_bridge_port *backup_port;
1: + u8 priority;
1: + u8 state;
1: + u16 port_no;
1: + unsigned char topology_change_ack;
1: + unsigned char config_pending;
1: + port_id port_id;
1: + port_id designated_port;
1: + bridge_id designated_root;
1: + bridge_id designated_bridge;
1: + u32 path_cost;
1: + u32 designated_cost;
1: + long unsigned int designated_age;
1: + struct timer_list forward_delay_timer;
1: + struct timer_list hold_timer;
1: + struct timer_list message_age_timer;
1: + struct kobject kobj;
1: + struct callback_head rcu;
1: + struct bridge_mcast_own_query ip4_own_query;
1: + struct bridge_mcast_own_query ip6_own_query;
1: + unsigned char multicast_router;
1: + struct bridge_mcast_stats *mcast_stats;
1: + struct timer_list multicast_router_timer;
1: + struct hlist_head mglist;
1: + struct hlist_node rlist;
1: + char sysfs_name[16];
1: + struct netpoll *np;
1: + int offload_fwd_mark;
1: + u16 group_fwd_mask;
1: + u16 backup_redirected_cnt;
1: + struct bridge_stp_xstats stp_xstats;
1: +};
1: +
1: +struct bridge_mcast_stats {
1: + struct br_mcast_stats mstats;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct net_bridge {
1: + spinlock_t lock;
1: + spinlock_t hash_lock;
1: + struct list_head port_list;
1: + struct net_device *dev;
1: + struct pcpu_sw_netstats *stats;
1: + long unsigned int options;
1: + __be16 vlan_proto;
1: + u16 default_pvid;
1: + struct net_bridge_vlan_group *vlgrp;
1: + struct rhashtable fdb_hash_tbl;
1: + union {
1: + struct rtable fake_rtable;
1: + struct rt6_info fake_rt6_info;
1: + };
1: + u16 group_fwd_mask;
1: + u16 group_fwd_mask_required;
1: + bridge_id designated_root;
1: + bridge_id bridge_id;
1: + unsigned char topology_change;
1: + unsigned char topology_change_detected;
1: + u16 root_port;
1: + long unsigned int max_age;
1: + long unsigned int hello_time;
1: + long unsigned int forward_delay;
1: + long unsigned int ageing_time;
1: + long unsigned int bridge_max_age;
1: + long unsigned int bridge_hello_time;
1: + long unsigned int bridge_forward_delay;
1: + long unsigned int bridge_ageing_time;
1: + u32 root_path_cost;
1: + u8 group_addr[6];
1: + enum {
1: + BR_NO_STP = 0,
1: + BR_KERNEL_STP = 1,
1: + BR_USER_STP = 2,
1: + } stp_enabled;
1: + u32 hash_max;
1: + u32 multicast_last_member_count;
1: + u32 multicast_startup_query_count;
1: + u8 multicast_igmp_version;
1: + u8 multicast_router;
1: + u8 multicast_mld_version;
1: + spinlock_t multicast_lock;
1: + long unsigned int multicast_last_member_interval;
1: + long unsigned int multicast_membership_interval;
1: + long unsigned int multicast_querier_interval;
1: + long unsigned int multicast_query_interval;
1: + long unsigned int multicast_query_response_interval;
1: + long unsigned int multicast_startup_query_interval;
1: + struct rhashtable mdb_hash_tbl;
1: + struct rhashtable sg_port_tbl;
1: + struct hlist_head mcast_gc_list;
1: + struct hlist_head mdb_list;
1: + struct hlist_head router_list;
1: + struct timer_list multicast_router_timer;
1: + struct bridge_mcast_other_query ip4_other_query;
1: + struct bridge_mcast_own_query ip4_own_query;
1: + struct bridge_mcast_querier ip4_querier;
1: + struct bridge_mcast_stats *mcast_stats;
1: + struct bridge_mcast_other_query ip6_other_query;
1: + struct bridge_mcast_own_query ip6_own_query;
1: + struct bridge_mcast_querier ip6_querier;
1: + struct work_struct mcast_gc_work;
1: + struct timer_list hello_timer;
1: + struct timer_list tcn_timer;
1: + struct timer_list topology_change_timer;
1: + struct delayed_work gc_work;
1: + struct kobject *ifobj;
1: + u32 auto_cnt;
1: + int offload_fwd_mark;
1: + struct hlist_head fdb_list;
1: + struct list_head mrp_list;
1: +};
1: +
1: +struct net_bridge_vlan_group {
1: + struct rhashtable vlan_hash;
1: + struct rhashtable tunnel_hash;
1: + struct list_head vlan_list;
1: + u16 num_vlans;
1: + u16 pvid;
1: + u8 pvid_state;
1: +};
1: +
1: +struct net_bridge_fdb_key {
1: + mac_addr addr;
1: + u16 vlan_id;
1: +};
1: +
1: +struct net_bridge_fdb_entry {
1: + struct rhash_head rhnode;
1: + struct net_bridge_port *dst;
1: + struct net_bridge_fdb_key key;
1: + struct hlist_node fdb_node;
1: + long unsigned int flags;
1: + long: 64;
1: + long: 64;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct trace_event_raw_br_fdb_add {
1: + struct trace_entry ent;
1: + u8 ndm_flags;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + u16 nlh_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_br_fdb_external_learn_add {
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_fdb_delete {
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_br_fdb_update {
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + long unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_br_fdb_add {
1: + u32 dev;
1: +};
1: +
1: +struct trace_event_data_offsets_br_fdb_external_learn_add {
1: + u32 br_dev;
1: + u32 dev;
1: +};
1: +
1: +struct trace_event_data_offsets_fdb_delete {
1: + u32 br_dev;
1: + u32 dev;
1: +};
1: +
1: +struct trace_event_data_offsets_br_fdb_update {
1: + u32 br_dev;
1: + u32 dev;
1: +};
1: +
1: +typedef void (*btf_trace_br_fdb_add)(void *, struct ndmsg *, struct net_device *, const unsigned char *, u16, u16);
1: +
1: +typedef void (*btf_trace_br_fdb_external_learn_add)(void *, struct net_bridge *, struct net_bridge_port *, const unsigned char *, u16);
1: +
1: +typedef void (*btf_trace_fdb_delete)(void *, struct net_bridge *, struct net_bridge_fdb_entry *);
1: +
1: +typedef void (*btf_trace_br_fdb_update)(void *, struct net_bridge *, struct net_bridge_port *, const unsigned char *, u16, long unsigned int);
1: +
1: +struct trace_event_raw_page_pool_release {
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + s32 inflight;
1: + u32 hold;
1: + u32 release;
1: + u64 cnt;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_page_pool_state_release {
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + const struct page *page;
1: + u32 release;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_page_pool_state_hold {
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + const struct page *page;
1: + u32 hold;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_page_pool_update_nid {
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + int pool_nid;
1: + int new_nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_page_pool_release {};
1: +
1: +struct trace_event_data_offsets_page_pool_state_release {};
1: +
1: +struct trace_event_data_offsets_page_pool_state_hold {};
1: +
1: +struct trace_event_data_offsets_page_pool_update_nid {};
1: +
1: +typedef void (*btf_trace_page_pool_release)(void *, const struct page_pool *, s32, u32, u32);
1: +
1: +typedef void (*btf_trace_page_pool_state_release)(void *, const struct page_pool *, const struct page *, u32);
1: +
1: +typedef void (*btf_trace_page_pool_state_hold)(void *, const struct page_pool *, const struct page *, u32);
1: +
1: +typedef void (*btf_trace_page_pool_update_nid)(void *, const struct page_pool *, int);
1: +
1: +struct trace_event_raw_neigh_create {
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + int entries;
1: + u8 created;
1: + u8 gc_exempt;
1: + u8 primary_key4[4];
1: + u8 primary_key6[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_neigh_update {
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + u8 lladdr[32];
1: + u8 lladdr_len;
1: + u8 flags;
1: + u8 nud_state;
1: + u8 type;
1: + u8 dead;
1: + int refcnt;
1: + __u8 primary_key4[4];
1: + __u8 primary_key6[16];
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + u8 new_lladdr[32];
1: + u8 new_state;
1: + u32 update_flags;
1: + u32 pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_neigh__update {
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + u8 lladdr[32];
1: + u8 lladdr_len;
1: + u8 flags;
1: + u8 nud_state;
1: + u8 type;
1: + u8 dead;
1: + int refcnt;
1: + __u8 primary_key4[4];
1: + __u8 primary_key6[16];
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + u32 err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_neigh_create {
1: + u32 dev;
1: +};
1: +
1: +struct trace_event_data_offsets_neigh_update {
1: + u32 dev;
1: +};
1: +
1: +struct trace_event_data_offsets_neigh__update {
1: + u32 dev;
1: +};
1: +
1: +typedef void (*btf_trace_neigh_create)(void *, struct neigh_table *, struct net_device *, const void *, const struct neighbour *, bool);
1: +
1: +typedef void (*btf_trace_neigh_update)(void *, struct neighbour *, const u8 *, u8, u32, u32);
1: +
1: +typedef void (*btf_trace_neigh_update_done)(void *, struct neighbour *, int);
1: +
1: +typedef void (*btf_trace_neigh_timer_handler)(void *, struct neighbour *, int);
1: +
1: +typedef void (*btf_trace_neigh_event_send_done)(void *, struct neighbour *, int);
1: +
1: +typedef void (*btf_trace_neigh_event_send_dead)(void *, struct neighbour *, int);
1: +
1: +typedef void (*btf_trace_neigh_cleanup_and_release)(void *, struct neighbour *, int);
1: +
1: +struct clock_identity {
1: + u8 id[8];
1: +};
1: +
1: +struct port_identity {
1: + struct clock_identity clock_identity;
1: + __be16 port_number;
1: +};
1: +
1: +struct ptp_header {
1: + u8 tsmt;
1: + u8 ver;
1: + __be16 message_length;
1: + u8 domain_number;
1: + u8 reserved1;
1: + u8 flag_field[2];
1: + __be64 correction;
1: + __be32 reserved2;
1: + struct port_identity source_port_identity;
1: + __be16 sequence_id;
1: + u8 control;
1: + u8 log_message_interval;
1: +} __attribute__((packed));
1: +
1: +struct update_classid_context {
1: + u32 classid;
1: + unsigned int batch;
1: +};
1: +
1: +enum lwtunnel_encap_types {
1: + LWTUNNEL_ENCAP_NONE = 0,
1: + LWTUNNEL_ENCAP_MPLS = 1,
1: + LWTUNNEL_ENCAP_IP = 2,
1: + LWTUNNEL_ENCAP_ILA = 3,
1: + LWTUNNEL_ENCAP_IP6 = 4,
1: + LWTUNNEL_ENCAP_SEG6 = 5,
1: + LWTUNNEL_ENCAP_BPF = 6,
1: + LWTUNNEL_ENCAP_SEG6_LOCAL = 7,
1: + LWTUNNEL_ENCAP_RPL = 8,
1: + __LWTUNNEL_ENCAP_MAX = 9,
1: +};
1: +
1: +struct rtnexthop {
1: + short unsigned int rtnh_len;
1: + unsigned char rtnh_flags;
1: + unsigned char rtnh_hops;
1: + int rtnh_ifindex;
1: +};
1: +
1: +struct lwtunnel_encap_ops {
1: + int (*build_state)(struct net *, struct nlattr *, unsigned int, const void *, struct lwtunnel_state **, struct netlink_ext_ack *);
1: + void (*destroy_state)(struct lwtunnel_state *);
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*input)(struct sk_buff *);
1: + int (*fill_encap)(struct sk_buff *, struct lwtunnel_state *);
1: + int (*get_encap_size)(struct lwtunnel_state *);
1: + int (*cmp_encap)(struct lwtunnel_state *, struct lwtunnel_state *);
1: + int (*xmit)(struct sk_buff *);
1: + struct module *owner;
1: +};
1: +
1: +enum {
1: + LWT_BPF_PROG_UNSPEC = 0,
1: + LWT_BPF_PROG_FD = 1,
1: + LWT_BPF_PROG_NAME = 2,
1: + __LWT_BPF_PROG_MAX = 3,
1: +};
1: +
1: +enum {
1: + LWT_BPF_UNSPEC = 0,
1: + LWT_BPF_IN = 1,
1: + LWT_BPF_OUT = 2,
1: + LWT_BPF_XMIT = 3,
1: + LWT_BPF_XMIT_HEADROOM = 4,
1: + __LWT_BPF_MAX = 5,
1: +};
1: +
1: +enum {
1: + LWTUNNEL_XMIT_DONE = 0,
1: + LWTUNNEL_XMIT_CONTINUE = 1,
1: +};
1: +
1: +struct bpf_lwt_prog {
1: + struct bpf_prog *prog;
1: + char *name;
1: +};
1: +
1: +struct bpf_lwt {
1: + struct bpf_lwt_prog in;
1: + struct bpf_lwt_prog out;
1: + struct bpf_lwt_prog xmit;
1: + int family;
1: +};
1: +
1: +struct bpf_stab {
1: + struct bpf_map map;
1: + struct sock **sks;
1: + struct sk_psock_progs progs;
1: + raw_spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef u64 (*btf_bpf_sock_map_update)(struct bpf_sock_ops_kern *, struct bpf_map *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_redirect_map)(struct sk_buff *, struct bpf_map *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_msg_redirect_map)(struct sk_msg *, struct bpf_map *, u32, u64);
1: +
1: +struct sock_map_seq_info {
1: + struct bpf_map *map;
1: + struct sock *sk;
1: + u32 index;
1: +};
1: +
1: +struct bpf_iter__sockmap {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + void *key;
1: + };
1: + union {
1: + struct sock *sk;
1: + };
1: +};
1: +
1: +struct bpf_shtab_elem {
1: + struct callback_head rcu;
1: + u32 hash;
1: + struct sock *sk;
1: + struct hlist_node node;
1: + u8 key[0];
1: +};
1: +
1: +struct bpf_shtab_bucket {
1: + struct hlist_head head;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_shtab {
1: + struct bpf_map map;
1: + struct bpf_shtab_bucket *buckets;
1: + u32 buckets_num;
1: + u32 elem_size;
1: + struct sk_psock_progs progs;
1: + atomic_t count;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef u64 (*btf_bpf_sock_hash_update)(struct bpf_sock_ops_kern *, struct bpf_map *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_redirect_hash)(struct sk_buff *, struct bpf_map *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_msg_redirect_hash)(struct sk_msg *, struct bpf_map *, void *, u64);
1: +
1: +struct sock_hash_seq_info {
1: + struct bpf_map *map;
1: + struct bpf_shtab *htab;
1: + u32 bucket_id;
1: +};
1: +
1: +struct dst_cache_pcpu {
1: + long unsigned int refresh_ts;
1: + struct dst_entry *dst;
1: + u32 cookie;
1: + union {
1: + struct in_addr in_saddr;
1: + struct in6_addr in6_saddr;
1: + };
1: +};
1: +
1: +enum devlink_command {
1: + DEVLINK_CMD_UNSPEC = 0,
1: + DEVLINK_CMD_GET = 1,
1: + DEVLINK_CMD_SET = 2,
1: + DEVLINK_CMD_NEW = 3,
1: + DEVLINK_CMD_DEL = 4,
1: + DEVLINK_CMD_PORT_GET = 5,
1: + DEVLINK_CMD_PORT_SET = 6,
1: + DEVLINK_CMD_PORT_NEW = 7,
1: + DEVLINK_CMD_PORT_DEL = 8,
1: + DEVLINK_CMD_PORT_SPLIT = 9,
1: + DEVLINK_CMD_PORT_UNSPLIT = 10,
1: + DEVLINK_CMD_SB_GET = 11,
1: + DEVLINK_CMD_SB_SET = 12,
1: + DEVLINK_CMD_SB_NEW = 13,
1: + DEVLINK_CMD_SB_DEL = 14,
1: + DEVLINK_CMD_SB_POOL_GET = 15,
1: + DEVLINK_CMD_SB_POOL_SET = 16,
1: + DEVLINK_CMD_SB_POOL_NEW = 17,
1: + DEVLINK_CMD_SB_POOL_DEL = 18,
1: + DEVLINK_CMD_SB_PORT_POOL_GET = 19,
1: + DEVLINK_CMD_SB_PORT_POOL_SET = 20,
1: + DEVLINK_CMD_SB_PORT_POOL_NEW = 21,
1: + DEVLINK_CMD_SB_PORT_POOL_DEL = 22,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 25,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 26,
1: + DEVLINK_CMD_SB_OCC_SNAPSHOT = 27,
1: + DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28,
1: + DEVLINK_CMD_ESWITCH_GET = 29,
1: + DEVLINK_CMD_ESWITCH_SET = 30,
1: + DEVLINK_CMD_DPIPE_TABLE_GET = 31,
1: + DEVLINK_CMD_DPIPE_ENTRIES_GET = 32,
1: + DEVLINK_CMD_DPIPE_HEADERS_GET = 33,
1: + DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 34,
1: + DEVLINK_CMD_RESOURCE_SET = 35,
1: + DEVLINK_CMD_RESOURCE_DUMP = 36,
1: + DEVLINK_CMD_RELOAD = 37,
1: + DEVLINK_CMD_PARAM_GET = 38,
1: + DEVLINK_CMD_PARAM_SET = 39,
1: + DEVLINK_CMD_PARAM_NEW = 40,
1: + DEVLINK_CMD_PARAM_DEL = 41,
1: + DEVLINK_CMD_REGION_GET = 42,
1: + DEVLINK_CMD_REGION_SET = 43,
1: + DEVLINK_CMD_REGION_NEW = 44,
1: + DEVLINK_CMD_REGION_DEL = 45,
1: + DEVLINK_CMD_REGION_READ = 46,
1: + DEVLINK_CMD_PORT_PARAM_GET = 47,
1: + DEVLINK_CMD_PORT_PARAM_SET = 48,
1: + DEVLINK_CMD_PORT_PARAM_NEW = 49,
1: + DEVLINK_CMD_PORT_PARAM_DEL = 50,
1: + DEVLINK_CMD_INFO_GET = 51,
1: + DEVLINK_CMD_HEALTH_REPORTER_GET = 52,
1: + DEVLINK_CMD_HEALTH_REPORTER_SET = 53,
1: + DEVLINK_CMD_HEALTH_REPORTER_RECOVER = 54,
1: + DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE = 55,
1: + DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET = 56,
1: + DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR = 57,
1: + DEVLINK_CMD_FLASH_UPDATE = 58,
1: + DEVLINK_CMD_FLASH_UPDATE_END = 59,
1: + DEVLINK_CMD_FLASH_UPDATE_STATUS = 60,
1: + DEVLINK_CMD_TRAP_GET = 61,
1: + DEVLINK_CMD_TRAP_SET = 62,
1: + DEVLINK_CMD_TRAP_NEW = 63,
1: + DEVLINK_CMD_TRAP_DEL = 64,
1: + DEVLINK_CMD_TRAP_GROUP_GET = 65,
1: + DEVLINK_CMD_TRAP_GROUP_SET = 66,
1: + DEVLINK_CMD_TRAP_GROUP_NEW = 67,
1: + DEVLINK_CMD_TRAP_GROUP_DEL = 68,
1: + DEVLINK_CMD_TRAP_POLICER_GET = 69,
1: + DEVLINK_CMD_TRAP_POLICER_SET = 70,
1: + DEVLINK_CMD_TRAP_POLICER_NEW = 71,
1: + DEVLINK_CMD_TRAP_POLICER_DEL = 72,
1: + DEVLINK_CMD_HEALTH_REPORTER_TEST = 73,
1: + __DEVLINK_CMD_MAX = 74,
1: + DEVLINK_CMD_MAX = 73,
1: +};
1: +
1: +enum devlink_eswitch_mode {
1: + DEVLINK_ESWITCH_MODE_LEGACY = 0,
1: + DEVLINK_ESWITCH_MODE_SWITCHDEV = 1,
1: +};
1: +
1: +enum {
1: + DEVLINK_ATTR_STATS_RX_PACKETS = 0,
1: + DEVLINK_ATTR_STATS_RX_BYTES = 1,
1: + DEVLINK_ATTR_STATS_RX_DROPPED = 2,
1: + __DEVLINK_ATTR_STATS_MAX = 3,
1: + DEVLINK_ATTR_STATS_MAX = 2,
1: +};
1: +
1: +enum {
1: + DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT = 0,
1: + DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT = 1,
1: + __DEVLINK_FLASH_OVERWRITE_MAX_BIT = 2,
1: + DEVLINK_FLASH_OVERWRITE_MAX_BIT = 1,
1: +};
1: +
1: +enum {
1: + DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT = 0,
1: + DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE = 1,
1: +};
1: +
1: +enum devlink_attr {
1: + DEVLINK_ATTR_UNSPEC = 0,
1: + DEVLINK_ATTR_BUS_NAME = 1,
1: + DEVLINK_ATTR_DEV_NAME = 2,
1: + DEVLINK_ATTR_PORT_INDEX = 3,
1: + DEVLINK_ATTR_PORT_TYPE = 4,
1: + DEVLINK_ATTR_PORT_DESIRED_TYPE = 5,
1: + DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 6,
1: + DEVLINK_ATTR_PORT_NETDEV_NAME = 7,
1: + DEVLINK_ATTR_PORT_IBDEV_NAME = 8,
1: + DEVLINK_ATTR_PORT_SPLIT_COUNT = 9,
1: + DEVLINK_ATTR_PORT_SPLIT_GROUP = 10,
1: + DEVLINK_ATTR_SB_INDEX = 11,
1: + DEVLINK_ATTR_SB_SIZE = 12,
1: + DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 13,
1: + DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 14,
1: + DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 15,
1: + DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 16,
1: + DEVLINK_ATTR_SB_POOL_INDEX = 17,
1: + DEVLINK_ATTR_SB_POOL_TYPE = 18,
1: + DEVLINK_ATTR_SB_POOL_SIZE = 19,
1: + DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20,
1: + DEVLINK_ATTR_SB_THRESHOLD = 21,
1: + DEVLINK_ATTR_SB_TC_INDEX = 22,
1: + DEVLINK_ATTR_SB_OCC_CUR = 23,
1: + DEVLINK_ATTR_SB_OCC_MAX = 24,
1: + DEVLINK_ATTR_ESWITCH_MODE = 25,
1: + DEVLINK_ATTR_ESWITCH_INLINE_MODE = 26,
1: + DEVLINK_ATTR_DPIPE_TABLES = 27,
1: + DEVLINK_ATTR_DPIPE_TABLE = 28,
1: + DEVLINK_ATTR_DPIPE_TABLE_NAME = 29,
1: + DEVLINK_ATTR_DPIPE_TABLE_SIZE = 30,
1: + DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 31,
1: + DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 32,
1: + DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 33,
1: + DEVLINK_ATTR_DPIPE_ENTRIES = 34,
1: + DEVLINK_ATTR_DPIPE_ENTRY = 35,
1: + DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 36,
1: + DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 37,
1: + DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 38,
1: + DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 39,
1: + DEVLINK_ATTR_DPIPE_MATCH = 40,
1: + DEVLINK_ATTR_DPIPE_MATCH_VALUE = 41,
1: + DEVLINK_ATTR_DPIPE_MATCH_TYPE = 42,
1: + DEVLINK_ATTR_DPIPE_ACTION = 43,
1: + DEVLINK_ATTR_DPIPE_ACTION_VALUE = 44,
1: + DEVLINK_ATTR_DPIPE_ACTION_TYPE = 45,
1: + DEVLINK_ATTR_DPIPE_VALUE = 46,
1: + DEVLINK_ATTR_DPIPE_VALUE_MASK = 47,
1: + DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 48,
1: + DEVLINK_ATTR_DPIPE_HEADERS = 49,
1: + DEVLINK_ATTR_DPIPE_HEADER = 50,
1: + DEVLINK_ATTR_DPIPE_HEADER_NAME = 51,
1: + DEVLINK_ATTR_DPIPE_HEADER_ID = 52,
1: + DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 53,
1: + DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 54,
1: + DEVLINK_ATTR_DPIPE_HEADER_INDEX = 55,
1: + DEVLINK_ATTR_DPIPE_FIELD = 56,
1: + DEVLINK_ATTR_DPIPE_FIELD_NAME = 57,
1: + DEVLINK_ATTR_DPIPE_FIELD_ID = 58,
1: + DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 59,
1: + DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 60,
1: + DEVLINK_ATTR_PAD = 61,
1: + DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 62,
1: + DEVLINK_ATTR_RESOURCE_LIST = 63,
1: + DEVLINK_ATTR_RESOURCE = 64,
1: + DEVLINK_ATTR_RESOURCE_NAME = 65,
1: + DEVLINK_ATTR_RESOURCE_ID = 66,
1: + DEVLINK_ATTR_RESOURCE_SIZE = 67,
1: + DEVLINK_ATTR_RESOURCE_SIZE_NEW = 68,
1: + DEVLINK_ATTR_RESOURCE_SIZE_VALID = 69,
1: + DEVLINK_ATTR_RESOURCE_SIZE_MIN = 70,
1: + DEVLINK_ATTR_RESOURCE_SIZE_MAX = 71,
1: + DEVLINK_ATTR_RESOURCE_SIZE_GRAN = 72,
1: + DEVLINK_ATTR_RESOURCE_UNIT = 73,
1: + DEVLINK_ATTR_RESOURCE_OCC = 74,
1: + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID = 75,
1: + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS = 76,
1: + DEVLINK_ATTR_PORT_FLAVOUR = 77,
1: + DEVLINK_ATTR_PORT_NUMBER = 78,
1: + DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER = 79,
1: + DEVLINK_ATTR_PARAM = 80,
1: + DEVLINK_ATTR_PARAM_NAME = 81,
1: + DEVLINK_ATTR_PARAM_GENERIC = 82,
1: + DEVLINK_ATTR_PARAM_TYPE = 83,
1: + DEVLINK_ATTR_PARAM_VALUES_LIST = 84,
1: + DEVLINK_ATTR_PARAM_VALUE = 85,
1: + DEVLINK_ATTR_PARAM_VALUE_DATA = 86,
1: + DEVLINK_ATTR_PARAM_VALUE_CMODE = 87,
1: + DEVLINK_ATTR_REGION_NAME = 88,
1: + DEVLINK_ATTR_REGION_SIZE = 89,
1: + DEVLINK_ATTR_REGION_SNAPSHOTS = 90,
1: + DEVLINK_ATTR_REGION_SNAPSHOT = 91,
1: + DEVLINK_ATTR_REGION_SNAPSHOT_ID = 92,
1: + DEVLINK_ATTR_REGION_CHUNKS = 93,
1: + DEVLINK_ATTR_REGION_CHUNK = 94,
1: + DEVLINK_ATTR_REGION_CHUNK_DATA = 95,
1: + DEVLINK_ATTR_REGION_CHUNK_ADDR = 96,
1: + DEVLINK_ATTR_REGION_CHUNK_LEN = 97,
1: + DEVLINK_ATTR_INFO_DRIVER_NAME = 98,
1: + DEVLINK_ATTR_INFO_SERIAL_NUMBER = 99,
1: + DEVLINK_ATTR_INFO_VERSION_FIXED = 100,
1: + DEVLINK_ATTR_INFO_VERSION_RUNNING = 101,
1: + DEVLINK_ATTR_INFO_VERSION_STORED = 102,
1: + DEVLINK_ATTR_INFO_VERSION_NAME = 103,
1: + DEVLINK_ATTR_INFO_VERSION_VALUE = 104,
1: + DEVLINK_ATTR_SB_POOL_CELL_SIZE = 105,
1: + DEVLINK_ATTR_FMSG = 106,
1: + DEVLINK_ATTR_FMSG_OBJ_NEST_START = 107,
1: + DEVLINK_ATTR_FMSG_PAIR_NEST_START = 108,
1: + DEVLINK_ATTR_FMSG_ARR_NEST_START = 109,
1: + DEVLINK_ATTR_FMSG_NEST_END = 110,
1: + DEVLINK_ATTR_FMSG_OBJ_NAME = 111,
1: + DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE = 112,
1: + DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA = 113,
1: + DEVLINK_ATTR_HEALTH_REPORTER = 114,
1: + DEVLINK_ATTR_HEALTH_REPORTER_NAME = 115,
1: + DEVLINK_ATTR_HEALTH_REPORTER_STATE = 116,
1: + DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT = 117,
1: + DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT = 118,
1: + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS = 119,
1: + DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD = 120,
1: + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER = 121,
1: + DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME = 122,
1: + DEVLINK_ATTR_FLASH_UPDATE_COMPONENT = 123,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG = 124,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE = 125,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL = 126,
1: + DEVLINK_ATTR_PORT_PCI_PF_NUMBER = 127,
1: + DEVLINK_ATTR_PORT_PCI_VF_NUMBER = 128,
1: + DEVLINK_ATTR_STATS = 129,
1: + DEVLINK_ATTR_TRAP_NAME = 130,
1: + DEVLINK_ATTR_TRAP_ACTION = 131,
1: + DEVLINK_ATTR_TRAP_TYPE = 132,
1: + DEVLINK_ATTR_TRAP_GENERIC = 133,
1: + DEVLINK_ATTR_TRAP_METADATA = 134,
1: + DEVLINK_ATTR_TRAP_GROUP_NAME = 135,
1: + DEVLINK_ATTR_RELOAD_FAILED = 136,
1: + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS = 137,
1: + DEVLINK_ATTR_NETNS_FD = 138,
1: + DEVLINK_ATTR_NETNS_PID = 139,
1: + DEVLINK_ATTR_NETNS_ID = 140,
1: + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP = 141,
1: + DEVLINK_ATTR_TRAP_POLICER_ID = 142,
1: + DEVLINK_ATTR_TRAP_POLICER_RATE = 143,
1: + DEVLINK_ATTR_TRAP_POLICER_BURST = 144,
1: + DEVLINK_ATTR_PORT_FUNCTION = 145,
1: + DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER = 146,
1: + DEVLINK_ATTR_PORT_LANES = 147,
1: + DEVLINK_ATTR_PORT_SPLITTABLE = 148,
1: + DEVLINK_ATTR_PORT_EXTERNAL = 149,
1: + DEVLINK_ATTR_PORT_CONTROLLER_NUMBER = 150,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT = 151,
1: + DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK = 152,
1: + DEVLINK_ATTR_RELOAD_ACTION = 153,
1: + DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED = 154,
1: + DEVLINK_ATTR_RELOAD_LIMITS = 155,
1: + DEVLINK_ATTR_DEV_STATS = 156,
1: + DEVLINK_ATTR_RELOAD_STATS = 157,
1: + DEVLINK_ATTR_RELOAD_STATS_ENTRY = 158,
1: + DEVLINK_ATTR_RELOAD_STATS_LIMIT = 159,
1: + DEVLINK_ATTR_RELOAD_STATS_VALUE = 160,
1: + DEVLINK_ATTR_REMOTE_RELOAD_STATS = 161,
1: + DEVLINK_ATTR_RELOAD_ACTION_INFO = 162,
1: + DEVLINK_ATTR_RELOAD_ACTION_STATS = 163,
1: + __DEVLINK_ATTR_MAX = 164,
1: + DEVLINK_ATTR_MAX = 163,
1: +};
1: +
1: +enum devlink_dpipe_match_type {
1: + DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0,
1: +};
1: +
1: +enum devlink_dpipe_action_type {
1: + DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0,
1: +};
1: +
1: +enum devlink_dpipe_field_ethernet_id {
1: + DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0,
1: +};
1: +
1: +enum devlink_dpipe_field_ipv4_id {
1: + DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0,
1: +};
1: +
1: +enum devlink_dpipe_field_ipv6_id {
1: + DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0,
1: +};
1: +
1: +enum devlink_dpipe_header_id {
1: + DEVLINK_DPIPE_HEADER_ETHERNET = 0,
1: + DEVLINK_DPIPE_HEADER_IPV4 = 1,
1: + DEVLINK_DPIPE_HEADER_IPV6 = 2,
1: +};
1: +
1: +enum devlink_resource_unit {
1: + DEVLINK_RESOURCE_UNIT_ENTRY = 0,
1: +};
1: +
1: +enum devlink_port_function_attr {
1: + DEVLINK_PORT_FUNCTION_ATTR_UNSPEC = 0,
1: + DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 1,
1: + __DEVLINK_PORT_FUNCTION_ATTR_MAX = 2,
1: + DEVLINK_PORT_FUNCTION_ATTR_MAX = 1,
1: +};
1: +
1: +struct devlink_dpipe_match {
1: + enum devlink_dpipe_match_type type;
1: + unsigned int header_index;
1: + struct devlink_dpipe_header *header;
1: + unsigned int field_id;
1: +};
1: +
1: +struct devlink_dpipe_action {
1: + enum devlink_dpipe_action_type type;
1: + unsigned int header_index;
1: + struct devlink_dpipe_header *header;
1: + unsigned int field_id;
1: +};
1: +
1: +struct devlink_dpipe_value {
1: + union {
1: + struct devlink_dpipe_action *action;
1: + struct devlink_dpipe_match *match;
1: + };
1: + unsigned int mapping_value;
1: + bool mapping_valid;
1: + unsigned int value_size;
1: + void *value;
1: + void *mask;
1: +};
1: +
1: +struct devlink_dpipe_entry {
1: + u64 index;
1: + struct devlink_dpipe_value *match_values;
1: + unsigned int match_values_count;
1: + struct devlink_dpipe_value *action_values;
1: + unsigned int action_values_count;
1: + u64 counter;
1: + bool counter_valid;
1: +};
1: +
1: +struct devlink_dpipe_dump_ctx {
1: + struct genl_info *info;
1: + enum devlink_command cmd;
1: + struct sk_buff *skb;
1: + struct nlattr *nest;
1: + void *hdr;
1: +};
1: +
1: +struct devlink_dpipe_table_ops;
1: +
1: +struct devlink_dpipe_table {
1: + void *priv;
1: + struct list_head list;
1: + const char *name;
1: + bool counters_enabled;
1: + bool counter_control_extern;
1: + bool resource_valid;
1: + u64 resource_id;
1: + u64 resource_units;
1: + struct devlink_dpipe_table_ops *table_ops;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct devlink_dpipe_table_ops {
1: + int (*actions_dump)(void *, struct sk_buff *);
1: + int (*matches_dump)(void *, struct sk_buff *);
1: + int (*entries_dump)(void *, bool, struct devlink_dpipe_dump_ctx *);
1: + int (*counters_set_update)(void *, bool);
1: + u64 (*size_get)(void *);
1: +};
1: +
1: +struct devlink_resource_size_params {
1: + u64 size_min;
1: + u64 size_max;
1: + u64 size_granularity;
1: + enum devlink_resource_unit unit;
1: +};
1: +
1: +typedef u64 devlink_resource_occ_get_t(void *);
1: +
1: +struct devlink_resource {
1: + const char *name;
1: + u64 id;
1: + u64 size;
1: + u64 size_new;
1: + bool size_valid;
1: + struct devlink_resource *parent;
1: + struct devlink_resource_size_params size_params;
1: + struct list_head list;
1: + struct list_head resource_list;
1: + devlink_resource_occ_get_t *occ_get;
1: + void *occ_get_priv;
1: +};
1: +
1: +enum devlink_param_type {
1: + DEVLINK_PARAM_TYPE_U8 = 0,
1: + DEVLINK_PARAM_TYPE_U16 = 1,
1: + DEVLINK_PARAM_TYPE_U32 = 2,
1: + DEVLINK_PARAM_TYPE_STRING = 3,
1: + DEVLINK_PARAM_TYPE_BOOL = 4,
1: +};
1: +
1: +struct devlink_flash_notify {
1: + const char *status_msg;
1: + const char *component;
1: + long unsigned int done;
1: + long unsigned int total;
1: + long unsigned int timeout;
1: +};
1: +
1: +struct devlink_param {
1: + u32 id;
1: + const char *name;
1: + bool generic;
1: + enum devlink_param_type type;
1: + long unsigned int supported_cmodes;
1: + int (*get)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: + int (*set)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: + int (*validate)(struct devlink *, u32, union devlink_param_value, struct netlink_ext_ack *);
1: +};
1: +
1: +struct devlink_param_item {
1: + struct list_head list;
1: + const struct devlink_param *param;
1: + union devlink_param_value driverinit_value;
1: + bool driverinit_value_valid;
1: + bool published;
1: +};
1: +
1: +enum devlink_param_generic_id {
1: + DEVLINK_PARAM_GENERIC_ID_INT_ERR_RESET = 0,
1: + DEVLINK_PARAM_GENERIC_ID_MAX_MACS = 1,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_SRIOV = 2,
1: + DEVLINK_PARAM_GENERIC_ID_REGION_SNAPSHOT = 3,
1: + DEVLINK_PARAM_GENERIC_ID_IGNORE_ARI = 4,
1: + DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX = 5,
1: + DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN = 6,
1: + DEVLINK_PARAM_GENERIC_ID_FW_LOAD_POLICY = 7,
1: + DEVLINK_PARAM_GENERIC_ID_RESET_DEV_ON_DRV_PROBE = 8,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_ROCE = 9,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_REMOTE_DEV_RESET = 10,
1: + __DEVLINK_PARAM_GENERIC_ID_MAX = 11,
1: + DEVLINK_PARAM_GENERIC_ID_MAX = 10,
1: +};
1: +
1: +struct devlink_region_ops {
1: + const char *name;
1: + void (*destructor)(const void *);
1: + int (*snapshot)(struct devlink *, const struct devlink_region_ops *, struct netlink_ext_ack *, u8 **);
1: + void *priv;
1: +};
1: +
1: +struct devlink_port_region_ops {
1: + const char *name;
1: + void (*destructor)(const void *);
1: + int (*snapshot)(struct devlink_port *, const struct devlink_port_region_ops *, struct netlink_ext_ack *, u8 **);
1: + void *priv;
1: +};
1: +
1: +enum devlink_health_reporter_state {
1: + DEVLINK_HEALTH_REPORTER_STATE_HEALTHY = 0,
1: + DEVLINK_HEALTH_REPORTER_STATE_ERROR = 1,
1: +};
1: +
1: +struct devlink_health_reporter;
1: +
1: +struct devlink_fmsg;
1: +
1: +struct devlink_health_reporter_ops {
1: + char *name;
1: + int (*recover)(struct devlink_health_reporter *, void *, struct netlink_ext_ack *);
1: + int (*dump)(struct devlink_health_reporter *, struct devlink_fmsg *, void *, struct netlink_ext_ack *);
1: + int (*diagnose)(struct devlink_health_reporter *, struct devlink_fmsg *, struct netlink_ext_ack *);
1: + int (*test)(struct devlink_health_reporter *, struct netlink_ext_ack *);
1: +};
1: +
1: +struct devlink_health_reporter {
1: + struct list_head list;
1: + void *priv;
1: + const struct devlink_health_reporter_ops *ops;
1: + struct devlink *devlink;
1: + struct devlink_port *devlink_port;
1: + struct devlink_fmsg *dump_fmsg;
1: + struct mutex dump_lock;
1: + u64 graceful_period;
1: + bool auto_recover;
1: + bool auto_dump;
1: + u8 health_state;
1: + u64 dump_ts;
1: + u64 dump_real_ts;
1: + u64 error_count;
1: + u64 recovery_count;
1: + u64 last_recovery_ts;
1: + refcount_t refcount;
1: +};
1: +
1: +struct devlink_fmsg {
1: + struct list_head item_list;
1: + bool putting_binary;
1: +};
1: +
1: +struct devlink_trap_metadata {
1: + const char *trap_name;
1: + const char *trap_group_name;
1: + struct net_device *input_dev;
1: + const struct flow_action_cookie *fa_cookie;
1: + enum devlink_trap_type trap_type;
1: +};
1: +
1: +enum devlink_trap_generic_id {
1: + DEVLINK_TRAP_GENERIC_ID_SMAC_MC = 0,
1: + DEVLINK_TRAP_GENERIC_ID_VLAN_TAG_MISMATCH = 1,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_VLAN_FILTER = 2,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_STP_FILTER = 3,
1: + DEVLINK_TRAP_GENERIC_ID_EMPTY_TX_LIST = 4,
1: + DEVLINK_TRAP_GENERIC_ID_PORT_LOOPBACK_FILTER = 5,
1: + DEVLINK_TRAP_GENERIC_ID_BLACKHOLE_ROUTE = 6,
1: + DEVLINK_TRAP_GENERIC_ID_TTL_ERROR = 7,
1: + DEVLINK_TRAP_GENERIC_ID_TAIL_DROP = 8,
1: + DEVLINK_TRAP_GENERIC_ID_NON_IP_PACKET = 9,
1: + DEVLINK_TRAP_GENERIC_ID_UC_DIP_MC_DMAC = 10,
1: + DEVLINK_TRAP_GENERIC_ID_DIP_LB = 11,
1: + DEVLINK_TRAP_GENERIC_ID_SIP_MC = 12,
1: + DEVLINK_TRAP_GENERIC_ID_SIP_LB = 13,
1: + DEVLINK_TRAP_GENERIC_ID_CORRUPTED_IP_HDR = 14,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_SIP_BC = 15,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_RESERVED_SCOPE = 16,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_INTERFACE_LOCAL_SCOPE = 17,
1: + DEVLINK_TRAP_GENERIC_ID_MTU_ERROR = 18,
1: + DEVLINK_TRAP_GENERIC_ID_UNRESOLVED_NEIGH = 19,
1: + DEVLINK_TRAP_GENERIC_ID_RPF = 20,
1: + DEVLINK_TRAP_GENERIC_ID_REJECT_ROUTE = 21,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_LPM_UNICAST_MISS = 22,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_LPM_UNICAST_MISS = 23,
1: + DEVLINK_TRAP_GENERIC_ID_NON_ROUTABLE = 24,
1: + DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR = 25,
1: + DEVLINK_TRAP_GENERIC_ID_OVERLAY_SMAC_MC = 26,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_FLOW_ACTION_DROP = 27,
1: + DEVLINK_TRAP_GENERIC_ID_EGRESS_FLOW_ACTION_DROP = 28,
1: + DEVLINK_TRAP_GENERIC_ID_STP = 29,
1: + DEVLINK_TRAP_GENERIC_ID_LACP = 30,
1: + DEVLINK_TRAP_GENERIC_ID_LLDP = 31,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_QUERY = 32,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V1_REPORT = 33,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V2_REPORT = 34,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V3_REPORT = 35,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V2_LEAVE = 36,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_QUERY = 37,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V1_REPORT = 38,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V2_REPORT = 39,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V1_DONE = 40,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_DHCP = 41,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DHCP = 42,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_REQUEST = 43,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_RESPONSE = 44,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_OVERLAY = 45,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_SOLICIT = 46,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_ADVERT = 47,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_BFD = 48,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_BFD = 49,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_OSPF = 50,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_OSPF = 51,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_BGP = 52,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_BGP = 53,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_VRRP = 54,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_VRRP = 55,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_PIM = 56,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_PIM = 57,
1: + DEVLINK_TRAP_GENERIC_ID_UC_LB = 58,
1: + DEVLINK_TRAP_GENERIC_ID_LOCAL_ROUTE = 59,
1: + DEVLINK_TRAP_GENERIC_ID_EXTERNAL_ROUTE = 60,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_UC_DIP_LINK_LOCAL_SCOPE = 61,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_NODES = 62,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_ROUTERS = 63,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_SOLICIT = 64,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ADVERT = 65,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_REDIRECT = 66,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_ROUTER_ALERT = 67,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ALERT = 68,
1: + DEVLINK_TRAP_GENERIC_ID_PTP_EVENT = 69,
1: + DEVLINK_TRAP_GENERIC_ID_PTP_GENERAL = 70,
1: + DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_SAMPLE = 71,
1: + DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_TRAP = 72,
1: + DEVLINK_TRAP_GENERIC_ID_EARLY_DROP = 73,
1: + DEVLINK_TRAP_GENERIC_ID_VXLAN_PARSING = 74,
1: + DEVLINK_TRAP_GENERIC_ID_LLC_SNAP_PARSING = 75,
1: + DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING = 76,
1: + DEVLINK_TRAP_GENERIC_ID_PPPOE_PPP_PARSING = 77,
1: + DEVLINK_TRAP_GENERIC_ID_MPLS_PARSING = 78,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_PARSING = 79,
1: + DEVLINK_TRAP_GENERIC_ID_IP_1_PARSING = 80,
1: + DEVLINK_TRAP_GENERIC_ID_IP_N_PARSING = 81,
1: + DEVLINK_TRAP_GENERIC_ID_GRE_PARSING = 82,
1: + DEVLINK_TRAP_GENERIC_ID_UDP_PARSING = 83,
1: + DEVLINK_TRAP_GENERIC_ID_TCP_PARSING = 84,
1: + DEVLINK_TRAP_GENERIC_ID_IPSEC_PARSING = 85,
1: + DEVLINK_TRAP_GENERIC_ID_SCTP_PARSING = 86,
1: + DEVLINK_TRAP_GENERIC_ID_DCCP_PARSING = 87,
1: + DEVLINK_TRAP_GENERIC_ID_GTP_PARSING = 88,
1: + DEVLINK_TRAP_GENERIC_ID_ESP_PARSING = 89,
1: + __DEVLINK_TRAP_GENERIC_ID_MAX = 90,
1: + DEVLINK_TRAP_GENERIC_ID_MAX = 89,
1: +};
1: +
1: +enum devlink_trap_group_generic_id {
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS = 0,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L3_DROPS = 1,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L3_EXCEPTIONS = 2,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BUFFER_DROPS = 3,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_TUNNEL_DROPS = 4,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_DROPS = 5,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_STP = 6,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LACP = 7,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LLDP = 8,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_MC_SNOOPING = 9,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_DHCP = 10,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_NEIGH_DISCOVERY = 11,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BFD = 12,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_OSPF = 13,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BGP = 14,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_VRRP = 15,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PIM = 16,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_UC_LB = 17,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LOCAL_DELIVERY = 18,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_EXTERNAL_DELIVERY = 19,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_IPV6 = 20,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_EVENT = 21,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_GENERAL = 22,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_SAMPLE = 23,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_TRAP = 24,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PARSER_ERROR_DROPS = 25,
1: + __DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 26,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 25,
1: +};
1: +
1: +struct devlink_info_req {
1: + struct sk_buff *msg;
1: +};
1: +
1: +struct trace_event_raw_devlink_hwmsg {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + bool incoming;
1: + long unsigned int type;
1: + u32 __data_loc_buf;
1: + size_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_devlink_hwerr {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + int err;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_devlink_health_report {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_devlink_health_recover_aborted {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + bool health_state;
1: + u64 time_since_last_recover;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_devlink_health_reporter_state_update {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + u8 new_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_devlink_trap_report {
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_trap_name;
1: + u32 __data_loc_trap_group_name;
1: + u32 __data_loc_input_dev_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_hwmsg {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 buf;
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_hwerr {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 msg;
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_health_report {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: + u32 msg;
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_health_recover_aborted {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_health_reporter_state_update {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: +};
1: +
1: +struct trace_event_data_offsets_devlink_trap_report {
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 trap_name;
1: + u32 trap_group_name;
1: + u32 input_dev_name;
1: +};
1: +
1: +typedef void (*btf_trace_devlink_hwmsg)(void *, const struct devlink *, bool, long unsigned int, const u8 *, size_t);
1: +
1: +typedef void (*btf_trace_devlink_hwerr)(void *, const struct devlink *, int, const char *);
1: +
1: +typedef void (*btf_trace_devlink_health_report)(void *, const struct devlink *, const char *, const char *);
1: +
1: +typedef void (*btf_trace_devlink_health_recover_aborted)(void *, const struct devlink *, const char *, bool, u64);
1: +
1: +typedef void (*btf_trace_devlink_health_reporter_state_update)(void *, const struct devlink *, const char *, bool);
1: +
1: +typedef void (*btf_trace_devlink_trap_report)(void *, const struct devlink *, struct sk_buff *, const struct devlink_trap_metadata *);
1: +
1: +struct devlink_sb {
1: + struct list_head list;
1: + unsigned int index;
1: + u32 size;
1: + u16 ingress_pools_count;
1: + u16 egress_pools_count;
1: + u16 ingress_tc_count;
1: + u16 egress_tc_count;
1: +};
1: +
1: +struct devlink_region {
1: + struct devlink *devlink;
1: + struct devlink_port *port;
1: + struct list_head list;
1: + union {
1: + const struct devlink_region_ops *ops;
1: + const struct devlink_port_region_ops *port_ops;
1: + };
1: + struct list_head snapshot_list;
1: + u32 max_snapshots;
1: + u32 cur_snapshots;
1: + u64 size;
1: +};
1: +
1: +struct devlink_snapshot {
1: + struct list_head list;
1: + struct devlink_region *region;
1: + u8 *data;
1: + u32 id;
1: +};
1: +
1: +enum devlink_multicast_groups {
1: + DEVLINK_MCGRP_CONFIG = 0,
1: +};
1: +
1: +struct devlink_reload_combination {
1: + enum devlink_reload_action action;
1: + enum devlink_reload_limit limit;
1: +};
1: +
1: +struct devlink_fmsg_item {
1: + struct list_head list;
1: + int attrtype;
1: + u8 nla_type;
1: + u16 len;
1: + int value[0];
1: +};
1: +
1: +struct devlink_stats {
1: + u64 rx_bytes;
1: + u64 rx_packets;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct devlink_trap_policer_item {
1: + const struct devlink_trap_policer *policer;
1: + u64 rate;
1: + u64 burst;
1: + struct list_head list;
1: +};
1: +
1: +struct devlink_trap_group_item {
1: + const struct devlink_trap_group *group;
1: + struct devlink_trap_policer_item *policer_item;
1: + struct list_head list;
1: + struct devlink_stats *stats;
1: +};
1: +
1: +struct devlink_trap_item {
1: + const struct devlink_trap *trap;
1: + struct devlink_trap_group_item *group_item;
1: + struct list_head list;
1: + enum devlink_trap_action action;
1: + struct devlink_stats *stats;
1: + void *priv;
1: +};
1: +
1: +struct gro_cell;
1: +
1: +struct gro_cells {
1: + struct gro_cell *cells;
1: +};
1: +
1: +struct gro_cell {
1: + struct sk_buff_head napi_skbs;
1: + struct napi_struct napi;
1: +};
1: +
1: +enum {
1: + SK_DIAG_BPF_STORAGE_REQ_NONE = 0,
1: + SK_DIAG_BPF_STORAGE_REQ_MAP_FD = 1,
1: + __SK_DIAG_BPF_STORAGE_REQ_MAX = 2,
1: +};
1: +
1: +enum {
1: + SK_DIAG_BPF_STORAGE_REP_NONE = 0,
1: + SK_DIAG_BPF_STORAGE = 1,
1: + __SK_DIAG_BPF_STORAGE_REP_MAX = 2,
1: +};
1: +
1: +enum {
1: + SK_DIAG_BPF_STORAGE_NONE = 0,
1: + SK_DIAG_BPF_STORAGE_PAD = 1,
1: + SK_DIAG_BPF_STORAGE_MAP_ID = 2,
1: + SK_DIAG_BPF_STORAGE_MAP_VALUE = 3,
1: + __SK_DIAG_BPF_STORAGE_MAX = 4,
1: +};
1: +
1: +typedef u64 (*btf_bpf_sk_storage_get)(struct bpf_map *, struct sock *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_sk_storage_delete)(struct bpf_map *, struct sock *);
1: +
1: +struct bpf_sk_storage_diag {
1: + u32 nr_maps;
1: + struct bpf_map *maps[0];
1: +};
1: +
1: +struct bpf_iter_seq_sk_storage_map_info {
1: + struct bpf_map *map;
1: + unsigned int bucket_id;
1: + unsigned int skip_elems;
1: +};
1: +
1: +struct bpf_iter__bpf_sk_storage_map {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + struct sock *sk;
1: + };
1: + union {
1: + void *value;
1: + };
1: +};
1: +
1: +struct compat_cmsghdr {
1: + compat_size_t cmsg_len;
1: + compat_int_t cmsg_level;
1: + compat_int_t cmsg_type;
1: +};
1: +
1: +typedef struct sk_buff * (*gro_receive_t)(struct list_head *, struct sk_buff *);
1: +
1: +struct nvmem_cell___2;
1: +
1: +struct fch_hdr {
1: + __u8 daddr[6];
1: + __u8 saddr[6];
1: +};
1: +
1: +struct fcllc {
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 llc;
1: + __u8 protid[3];
1: + __be16 ethertype;
1: +};
1: +
1: +struct fddi_8022_1_hdr {
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: +};
1: +
1: +struct fddi_8022_2_hdr {
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl_1;
1: + __u8 ctrl_2;
1: +};
1: +
1: +struct fddi_snap_hdr {
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: + __u8 oui[3];
1: + __be16 ethertype;
1: +};
1: +
1: +struct fddihdr {
1: + __u8 fc;
1: + __u8 daddr[6];
1: + __u8 saddr[6];
1: + union {
1: + struct fddi_8022_1_hdr llc_8022_1;
1: + struct fddi_8022_2_hdr llc_8022_2;
1: + struct fddi_snap_hdr llc_snap;
1: + } hdr;
1: +} __attribute__((packed));
1: +
1: +struct hippi_fp_hdr {
1: + __be32 fixed;
1: + __be32 d2_size;
1: +};
1: +
1: +struct hippi_le_hdr {
1: + __u8 message_type: 4;
1: + __u8 double_wide: 1;
1: + __u8 fc: 3;
1: + __u8 dest_switch_addr[3];
1: + __u8 src_addr_type: 4;
1: + __u8 dest_addr_type: 4;
1: + __u8 src_switch_addr[3];
1: + __u16 reserved;
1: + __u8 daddr[6];
1: + __u16 locally_administered;
1: + __u8 saddr[6];
1: +};
1: +
1: +struct hippi_snap_hdr {
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: + __u8 oui[3];
1: + __be16 ethertype;
1: +};
1: +
1: +struct hippi_hdr {
1: + struct hippi_fp_hdr fp;
1: + struct hippi_le_hdr le;
1: + struct hippi_snap_hdr snap;
1: +};
1: +
1: +struct hippi_cb {
1: + __u32 ifield;
1: +};
1: +
1: +enum macvlan_mode {
1: + MACVLAN_MODE_PRIVATE = 1,
1: + MACVLAN_MODE_VEPA = 2,
1: + MACVLAN_MODE_BRIDGE = 4,
1: + MACVLAN_MODE_PASSTHRU = 8,
1: + MACVLAN_MODE_SOURCE = 16,
1: +};
1: +
1: +struct tc_ratespec {
1: + unsigned char cell_log;
1: + __u8 linklayer;
1: + short unsigned int overhead;
1: + short int cell_align;
1: + short unsigned int mpu;
1: + __u32 rate;
1: +};
1: +
1: +struct tc_prio_qopt {
1: + int bands;
1: + __u8 priomap[16];
1: +};
1: +
1: +enum {
1: + TCA_UNSPEC = 0,
1: + TCA_KIND = 1,
1: + TCA_OPTIONS = 2,
1: + TCA_STATS = 3,
1: + TCA_XSTATS = 4,
1: + TCA_RATE = 5,
1: + TCA_FCNT = 6,
1: + TCA_STATS2 = 7,
1: + TCA_STAB = 8,
1: + TCA_PAD = 9,
1: + TCA_DUMP_INVISIBLE = 10,
1: + TCA_CHAIN = 11,
1: + TCA_HW_OFFLOAD = 12,
1: + TCA_INGRESS_BLOCK = 13,
1: + TCA_EGRESS_BLOCK = 14,
1: + TCA_DUMP_FLAGS = 15,
1: + __TCA_MAX = 16,
1: +};
1: +
1: +struct vlan_pcpu_stats {
1: + u64 rx_packets;
1: + u64 rx_bytes;
1: + u64 rx_multicast;
1: + u64 tx_packets;
1: + u64 tx_bytes;
1: + struct u64_stats_sync syncp;
1: + u32 rx_errors;
1: + u32 tx_dropped;
1: +};
1: +
1: +struct netpoll___2;
1: +
1: +struct skb_array {
1: + struct ptr_ring ring;
1: +};
1: +
1: +struct macvlan_port;
1: +
1: +struct macvlan_dev {
1: + struct net_device *dev;
1: + struct list_head list;
1: + struct hlist_node hlist;
1: + struct macvlan_port *port;
1: + struct net_device *lowerdev;
1: + void *accel_priv;
1: + struct vlan_pcpu_stats *pcpu_stats;
1: + long unsigned int mc_filter[4];
1: + netdev_features_t set_features;
1: + enum macvlan_mode mode;
1: + u16 flags;
1: + unsigned int macaddr_count;
1: + struct netpoll___2 *netpoll;
1: +};
1: +
1: +struct psched_ratecfg {
1: + u64 rate_bytes_ps;
1: + u32 mult;
1: + u16 overhead;
1: + u8 linklayer;
1: + u8 shift;
1: +};
1: +
1: +struct mini_Qdisc_pair {
1: + struct mini_Qdisc miniq1;
1: + struct mini_Qdisc miniq2;
1: + struct mini_Qdisc **p_miniq;
1: +};
1: +
1: +struct pfifo_fast_priv {
1: + struct skb_array q[3];
1: +};
1: +
1: +struct tc_qopt_offload_stats {
1: + struct gnet_stats_basic_packed *bstats;
1: + struct gnet_stats_queue *qstats;
1: +};
1: +
1: +enum tc_mq_command {
1: + TC_MQ_CREATE = 0,
1: + TC_MQ_DESTROY = 1,
1: + TC_MQ_STATS = 2,
1: + TC_MQ_GRAFT = 3,
1: +};
1: +
1: +struct tc_mq_opt_offload_graft_params {
1: + long unsigned int queue;
1: + u32 child_handle;
1: +};
1: +
1: +struct tc_mq_qopt_offload {
1: + enum tc_mq_command command;
1: + u32 handle;
1: + union {
1: + struct tc_qopt_offload_stats stats;
1: + struct tc_mq_opt_offload_graft_params graft_params;
1: + };
1: +};
1: +
1: +struct mq_sched {
1: + struct Qdisc **qdiscs;
1: +};
1: +
1: +enum tc_link_layer {
1: + TC_LINKLAYER_UNAWARE = 0,
1: + TC_LINKLAYER_ETHERNET = 1,
1: + TC_LINKLAYER_ATM = 2,
1: +};
1: +
1: +enum {
1: + TCA_STAB_UNSPEC = 0,
1: + TCA_STAB_BASE = 1,
1: + TCA_STAB_DATA = 2,
1: + __TCA_STAB_MAX = 3,
1: +};
1: +
1: +struct qdisc_rate_table {
1: + struct tc_ratespec rate;
1: + u32 data[256];
1: + struct qdisc_rate_table *next;
1: + int refcnt;
1: +};
1: +
1: +struct Qdisc_class_common {
1: + u32 classid;
1: + struct hlist_node hnode;
1: +};
1: +
1: +struct Qdisc_class_hash {
1: + struct hlist_head *hash;
1: + unsigned int hashsize;
1: + unsigned int hashmask;
1: + unsigned int hashelems;
1: +};
1: +
1: +struct qdisc_watchdog {
1: + u64 last_expires;
1: + struct hrtimer timer;
1: + struct Qdisc *qdisc;
1: +};
1: +
1: +enum tc_root_command {
1: + TC_ROOT_GRAFT = 0,
1: +};
1: +
1: +struct tc_root_qopt_offload {
1: + enum tc_root_command command;
1: + u32 handle;
1: + bool ingress;
1: +};
1: +
1: +struct check_loop_arg {
1: + struct qdisc_walker w;
1: + struct Qdisc *p;
1: + int depth;
1: +};
1: +
1: +struct tcf_bind_args {
1: + struct tcf_walker w;
1: + long unsigned int base;
1: + long unsigned int cl;
1: + u32 classid;
1: +};
1: +
1: +struct tc_bind_class_args {
1: + struct qdisc_walker w;
1: + long unsigned int new_cl;
1: + u32 portid;
1: + u32 clid;
1: +};
1: +
1: +struct qdisc_dump_args {
1: + struct qdisc_walker w;
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: +};
1: +
1: +enum net_xmit_qdisc_t {
1: + __NET_XMIT_STOLEN = 65536,
1: + __NET_XMIT_BYPASS = 131072,
1: +};
1: +
1: +struct tc_skb_ext {
1: + __u32 chain;
1: + __u16 mru;
1: +};
1: +
1: +enum {
1: + TCA_ACT_UNSPEC = 0,
1: + TCA_ACT_KIND = 1,
1: + TCA_ACT_OPTIONS = 2,
1: + TCA_ACT_INDEX = 3,
1: + TCA_ACT_STATS = 4,
1: + TCA_ACT_PAD = 5,
1: + TCA_ACT_COOKIE = 6,
1: + TCA_ACT_FLAGS = 7,
1: + TCA_ACT_HW_STATS = 8,
1: + TCA_ACT_USED_HW_STATS = 9,
1: + __TCA_ACT_MAX = 10,
1: +};
1: +
1: +enum tca_id {
1: + TCA_ID_UNSPEC = 0,
1: + TCA_ID_POLICE = 1,
1: + TCA_ID_GACT = 5,
1: + TCA_ID_IPT = 6,
1: + TCA_ID_PEDIT = 7,
1: + TCA_ID_MIRRED = 8,
1: + TCA_ID_NAT = 9,
1: + TCA_ID_XT = 10,
1: + TCA_ID_SKBEDIT = 11,
1: + TCA_ID_VLAN = 12,
1: + TCA_ID_BPF = 13,
1: + TCA_ID_CONNMARK = 14,
1: + TCA_ID_SKBMOD = 15,
1: + TCA_ID_CSUM = 16,
1: + TCA_ID_TUNNEL_KEY = 17,
1: + TCA_ID_SIMP = 22,
1: + TCA_ID_IFE = 25,
1: + TCA_ID_SAMPLE = 26,
1: + TCA_ID_CTINFO = 27,
1: + TCA_ID_MPLS = 28,
1: + TCA_ID_CT = 29,
1: + TCA_ID_GATE = 30,
1: + __TCA_ID_MAX = 255,
1: +};
1: +
1: +struct tcf_t {
1: + __u64 install;
1: + __u64 lastuse;
1: + __u64 expires;
1: + __u64 firstuse;
1: +};
1: +
1: +struct psample_group {
1: + struct list_head list;
1: + struct net *net;
1: + u32 group_num;
1: + u32 refcount;
1: + u32 seq;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct action_gate_entry {
1: + u8 gate_state;
1: + u32 interval;
1: + s32 ipv;
1: + s32 maxoctets;
1: +};
1: +
1: +enum qdisc_class_ops_flags {
1: + QDISC_CLASS_OPS_DOIT_UNLOCKED = 1,
1: +};
1: +
1: +enum tcf_proto_ops_flags {
1: + TCF_PROTO_OPS_DOIT_UNLOCKED = 1,
1: +};
1: +
1: +typedef void tcf_chain_head_change_t(struct tcf_proto *, void *);
1: +
1: +struct tcf_idrinfo {
1: + struct mutex lock;
1: + struct idr action_idr;
1: + struct net *net;
1: +};
1: +
1: +struct tc_action_ops;
1: +
1: +struct tc_cookie;
1: +
1: +struct tc_action {
1: + const struct tc_action_ops *ops;
1: + __u32 type;
1: + struct tcf_idrinfo *idrinfo;
1: + u32 tcfa_index;
1: + refcount_t tcfa_refcnt;
1: + atomic_t tcfa_bindcnt;
1: + int tcfa_action;
1: + struct tcf_t tcfa_tm;
1: + struct gnet_stats_basic_packed tcfa_bstats;
1: + struct gnet_stats_basic_packed tcfa_bstats_hw;
1: + struct gnet_stats_queue tcfa_qstats;
1: + struct net_rate_estimator *tcfa_rate_est;
1: + spinlock_t tcfa_lock;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_basic_cpu *cpu_bstats_hw;
1: + struct gnet_stats_queue *cpu_qstats;
1: + struct tc_cookie *act_cookie;
1: + struct tcf_chain *goto_chain;
1: + u32 tcfa_flags;
1: + u8 hw_stats;
1: + u8 used_hw_stats;
1: + bool used_hw_stats_valid;
1: +};
1: +
1: +typedef void (*tc_action_priv_destructor)(void *);
1: +
1: +struct tc_action_ops {
1: + struct list_head head;
1: + char kind[16];
1: + enum tca_id id;
1: + size_t size;
1: + struct module *owner;
1: + int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
1: + int (*dump)(struct sk_buff *, struct tc_action *, int, int);
1: + void (*cleanup)(struct tc_action *);
1: + int (*lookup)(struct net *, struct tc_action **, u32);
1: + int (*init)(struct net *, struct nlattr *, struct nlattr *, struct tc_action **, int, int, bool, struct tcf_proto *, u32, struct netlink_ext_ack *);
1: + int (*walk)(struct net *, struct sk_buff *, struct netlink_callback *, int, const struct tc_action_ops *, struct netlink_ext_ack *);
1: + void (*stats_update)(struct tc_action *, u64, u64, u64, u64, bool);
1: + size_t (*get_fill_size)(const struct tc_action *);
1: + struct net_device * (*get_dev)(const struct tc_action *, tc_action_priv_destructor *);
1: + struct psample_group * (*get_psample_group)(const struct tc_action *, tc_action_priv_destructor *);
1: +};
1: +
1: +struct tc_cookie {
1: + u8 *data;
1: + u32 len;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_block_ext_info {
1: + enum flow_block_binder_type binder_type;
1: + tcf_chain_head_change_t *chain_head_change;
1: + void *chain_head_change_priv;
1: + u32 block_index;
1: +};
1: +
1: +struct tcf_qevent {
1: + struct tcf_block *block;
1: + struct tcf_block_ext_info info;
1: + struct tcf_proto *filter_chain;
1: +};
1: +
1: +struct tcf_exts {
1: + __u32 type;
1: + int nr_actions;
1: + struct tc_action **actions;
1: + struct net *net;
1: + int action;
1: + int police;
1: +};
1: +
1: +enum pedit_header_type {
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK = 0,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_ETH = 1,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_IP4 = 2,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_IP6 = 3,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_TCP = 4,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
1: + __PEDIT_HDR_TYPE_MAX = 6,
1: +};
1: +
1: +enum pedit_cmd {
1: + TCA_PEDIT_KEY_EX_CMD_SET = 0,
1: + TCA_PEDIT_KEY_EX_CMD_ADD = 1,
1: + __PEDIT_CMD_MAX = 2,
1: +};
1: +
1: +struct tc_pedit_key {
1: + __u32 mask;
1: + __u32 val;
1: + __u32 off;
1: + __u32 at;
1: + __u32 offmask;
1: + __u32 shift;
1: +};
1: +
1: +struct tcf_pedit_key_ex {
1: + enum pedit_header_type htype;
1: + enum pedit_cmd cmd;
1: +};
1: +
1: +struct tcf_pedit {
1: + struct tc_action common;
1: + unsigned char tcfp_nkeys;
1: + unsigned char tcfp_flags;
1: + struct tc_pedit_key *tcfp_keys;
1: + struct tcf_pedit_key_ex *tcfp_keys_ex;
1: +};
1: +
1: +struct tcf_mirred {
1: + struct tc_action common;
1: + int tcfm_eaction;
1: + bool tcfm_mac_header_xmit;
1: + struct net_device *tcfm_dev;
1: + struct list_head tcfm_list;
1: +};
1: +
1: +struct tcf_vlan_params {
1: + int tcfv_action;
1: + unsigned char tcfv_push_dst[6];
1: + unsigned char tcfv_push_src[6];
1: + u16 tcfv_push_vid;
1: + __be16 tcfv_push_proto;
1: + u8 tcfv_push_prio;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_vlan {
1: + struct tc_action common;
1: + struct tcf_vlan_params *vlan_p;
1: +};
1: +
1: +struct tcf_tunnel_key_params {
1: + struct callback_head rcu;
1: + int tcft_action;
1: + struct metadata_dst *tcft_enc_metadata;
1: +};
1: +
1: +struct tcf_tunnel_key {
1: + struct tc_action common;
1: + struct tcf_tunnel_key_params *params;
1: +};
1: +
1: +struct tcf_csum_params {
1: + u32 update_flags;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_csum {
1: + struct tc_action common;
1: + struct tcf_csum_params *params;
1: +};
1: +
1: +struct tcf_gact {
1: + struct tc_action common;
1: + u16 tcfg_ptype;
1: + u16 tcfg_pval;
1: + int tcfg_paction;
1: + atomic_t packets;
1: +};
1: +
1: +struct tcf_police_params {
1: + int tcfp_result;
1: + u32 tcfp_ewma_rate;
1: + s64 tcfp_burst;
1: + u32 tcfp_mtu;
1: + s64 tcfp_mtu_ptoks;
1: + struct psched_ratecfg rate;
1: + bool rate_present;
1: + struct psched_ratecfg peak;
1: + bool peak_present;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_police {
1: + struct tc_action common;
1: + struct tcf_police_params *params;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t tcfp_lock;
1: + s64 tcfp_toks;
1: + s64 tcfp_ptoks;
1: + s64 tcfp_t_c;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct tcf_sample {
1: + struct tc_action common;
1: + u32 rate;
1: + bool truncate;
1: + u32 trunc_size;
1: + struct psample_group *psample_group;
1: + u32 psample_group_num;
1: + struct list_head tcfm_list;
1: +};
1: +
1: +struct tcf_skbedit_params {
1: + u32 flags;
1: + u32 priority;
1: + u32 mark;
1: + u32 mask;
1: + u16 queue_mapping;
1: + u16 ptype;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_skbedit {
1: + struct tc_action common;
1: + struct tcf_skbedit_params *params;
1: +};
1: +
1: +struct nf_nat_range2 {
1: + unsigned int flags;
1: + union nf_inet_addr min_addr;
1: + union nf_inet_addr max_addr;
1: + union nf_conntrack_man_proto min_proto;
1: + union nf_conntrack_man_proto max_proto;
1: + union nf_conntrack_man_proto base_proto;
1: +};
1: +
1: +struct tcf_ct_flow_table;
1: +
1: +struct tcf_ct_params {
1: + struct nf_conn *tmpl;
1: + u16 zone;
1: + u32 mark;
1: + u32 mark_mask;
1: + u32 labels[4];
1: + u32 labels_mask[4];
1: + struct nf_nat_range2 range;
1: + bool ipv4_range;
1: + u16 ct_action;
1: + struct callback_head rcu;
1: + struct tcf_ct_flow_table *ct_ft;
1: + struct nf_flowtable *nf_ft;
1: +};
1: +
1: +struct tcf_ct {
1: + struct tc_action common;
1: + struct tcf_ct_params *params;
1: +};
1: +
1: +struct tcf_mpls_params {
1: + int tcfm_action;
1: + u32 tcfm_label;
1: + u8 tcfm_tc;
1: + u8 tcfm_ttl;
1: + u8 tcfm_bos;
1: + __be16 tcfm_proto;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_mpls {
1: + struct tc_action common;
1: + struct tcf_mpls_params *mpls_p;
1: +};
1: +
1: +struct tcfg_gate_entry {
1: + int index;
1: + u8 gate_state;
1: + u32 interval;
1: + s32 ipv;
1: + s32 maxoctets;
1: + struct list_head list;
1: +};
1: +
1: +struct tcf_gate_params {
1: + s32 tcfg_priority;
1: + u64 tcfg_basetime;
1: + u64 tcfg_cycletime;
1: + u64 tcfg_cycletime_ext;
1: + u32 tcfg_flags;
1: + s32 tcfg_clockid;
1: + size_t num_entries;
1: + struct list_head entries;
1: +};
1: +
1: +struct tcf_gate {
1: + struct tc_action common;
1: + struct tcf_gate_params param;
1: + u8 current_gate_status;
1: + ktime_t current_close_time;
1: + u32 current_entry_octets;
1: + s32 current_max_octets;
1: + struct tcfg_gate_entry *next_entry;
1: + struct hrtimer hitimer;
1: + enum tk_offsets tk_offset;
1: +};
1: +
1: +struct tcf_filter_chain_list_item {
1: + struct list_head list;
1: + tcf_chain_head_change_t *chain_head_change;
1: + void *chain_head_change_priv;
1: +};
1: +
1: +struct tcf_net {
1: + spinlock_t idr_lock;
1: + struct idr idr;
1: +};
1: +
1: +struct tcf_block_owner_item {
1: + struct list_head list;
1: + struct Qdisc *q;
1: + enum flow_block_binder_type binder_type;
1: +};
1: +
1: +struct tcf_chain_info {
1: + struct tcf_proto **pprev;
1: + struct tcf_proto *next;
1: +};
1: +
1: +struct tcf_dump_args {
1: + struct tcf_walker w;
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: + struct tcf_block *block;
1: + struct Qdisc *q;
1: + u32 parent;
1: + bool terse_dump;
1: +};
1: +
1: +struct tcamsg {
1: + unsigned char tca_family;
1: + unsigned char tca__pad1;
1: + short unsigned int tca__pad2;
1: +};
1: +
1: +enum {
1: + TCA_ROOT_UNSPEC = 0,
1: + TCA_ROOT_TAB = 1,
1: + TCA_ROOT_FLAGS = 2,
1: + TCA_ROOT_COUNT = 3,
1: + TCA_ROOT_TIME_DELTA = 4,
1: + __TCA_ROOT_MAX = 5,
1: +};
1: +
1: +struct tc_action_net {
1: + struct tcf_idrinfo *idrinfo;
1: + const struct tc_action_ops *ops;
1: +};
1: +
1: +struct tc_act_bpf {
1: + __u32 index;
1: + __u32 capab;
1: + int action;
1: + int refcnt;
1: + int bindcnt;
1: +};
1: +
1: +enum {
1: + TCA_ACT_BPF_UNSPEC = 0,
1: + TCA_ACT_BPF_TM = 1,
1: + TCA_ACT_BPF_PARMS = 2,
1: + TCA_ACT_BPF_OPS_LEN = 3,
1: + TCA_ACT_BPF_OPS = 4,
1: + TCA_ACT_BPF_FD = 5,
1: + TCA_ACT_BPF_NAME = 6,
1: + TCA_ACT_BPF_PAD = 7,
1: + TCA_ACT_BPF_TAG = 8,
1: + TCA_ACT_BPF_ID = 9,
1: + __TCA_ACT_BPF_MAX = 10,
1: +};
1: +
1: +struct tcf_bpf {
1: + struct tc_action common;
1: + struct bpf_prog *filter;
1: + union {
1: + u32 bpf_fd;
1: + u16 bpf_num_ops;
1: + };
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: +};
1: +
1: +struct tcf_bpf_cfg {
1: + struct bpf_prog *filter;
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: + u16 bpf_num_ops;
1: + bool is_ebpf;
1: +};
1: +
1: +struct tc_fifo_qopt {
1: + __u32 limit;
1: +};
1: +
1: +enum tc_fifo_command {
1: + TC_FIFO_REPLACE = 0,
1: + TC_FIFO_DESTROY = 1,
1: + TC_FIFO_STATS = 2,
1: +};
1: +
1: +struct tc_fifo_qopt_offload {
1: + enum tc_fifo_command command;
1: + u32 handle;
1: + u32 parent;
1: + union {
1: + struct tc_qopt_offload_stats stats;
1: + };
1: +};
1: +
1: +enum {
1: + TCA_CGROUP_UNSPEC = 0,
1: + TCA_CGROUP_ACT = 1,
1: + TCA_CGROUP_POLICE = 2,
1: + TCA_CGROUP_EMATCHES = 3,
1: + __TCA_CGROUP_MAX = 4,
1: +};
1: +
1: +struct tcf_ematch_tree_hdr {
1: + __u16 nmatches;
1: + __u16 progid;
1: +};
1: +
1: +struct tcf_pkt_info {
1: + unsigned char *ptr;
1: + int nexthdr;
1: +};
1: +
1: +struct tcf_ematch_ops;
1: +
1: +struct tcf_ematch {
1: + struct tcf_ematch_ops *ops;
1: + long unsigned int data;
1: + unsigned int datalen;
1: + u16 matchid;
1: + u16 flags;
1: + struct net *net;
1: +};
1: +
1: +struct tcf_ematch_ops {
1: + int kind;
1: + int datalen;
1: + int (*change)(struct net *, void *, int, struct tcf_ematch *);
1: + int (*match)(struct sk_buff *, struct tcf_ematch *, struct tcf_pkt_info *);
1: + void (*destroy)(struct tcf_ematch *);
1: + int (*dump)(struct sk_buff *, struct tcf_ematch *);
1: + struct module *owner;
1: + struct list_head link;
1: +};
1: +
1: +struct tcf_ematch_tree {
1: + struct tcf_ematch_tree_hdr hdr;
1: + struct tcf_ematch *matches;
1: +};
1: +
1: +struct cls_cgroup_head {
1: + u32 handle;
1: + struct tcf_exts exts;
1: + struct tcf_ematch_tree ematches;
1: + struct tcf_proto *tp;
1: + struct rcu_work rwork;
1: +};
1: +
1: +enum {
1: + TCA_BPF_UNSPEC = 0,
1: + TCA_BPF_ACT = 1,
1: + TCA_BPF_POLICE = 2,
1: + TCA_BPF_CLASSID = 3,
1: + TCA_BPF_OPS_LEN = 4,
1: + TCA_BPF_OPS = 5,
1: + TCA_BPF_FD = 6,
1: + TCA_BPF_NAME = 7,
1: + TCA_BPF_FLAGS = 8,
1: + TCA_BPF_FLAGS_GEN = 9,
1: + TCA_BPF_TAG = 10,
1: + TCA_BPF_ID = 11,
1: + __TCA_BPF_MAX = 12,
1: +};
1: +
1: +enum tc_clsbpf_command {
1: + TC_CLSBPF_OFFLOAD = 0,
1: + TC_CLSBPF_STATS = 1,
1: +};
1: +
1: +struct tc_cls_bpf_offload {
1: + struct flow_cls_common_offload common;
1: + enum tc_clsbpf_command command;
1: + struct tcf_exts *exts;
1: + struct bpf_prog *prog;
1: + struct bpf_prog *oldprog;
1: + const char *name;
1: + bool exts_integrated;
1: +};
1: +
1: +struct cls_bpf_head {
1: + struct list_head plist;
1: + struct idr handle_idr;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct cls_bpf_prog {
1: + struct bpf_prog *filter;
1: + struct list_head link;
1: + struct tcf_result res;
1: + bool exts_integrated;
1: + u32 gen_flags;
1: + unsigned int in_hw_count;
1: + struct tcf_exts exts;
1: + u32 handle;
1: + u16 bpf_num_ops;
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: + struct tcf_proto *tp;
1: + struct rcu_work rwork;
1: +};
1: +
1: +enum {
1: + TCA_EMATCH_TREE_UNSPEC = 0,
1: + TCA_EMATCH_TREE_HDR = 1,
1: + TCA_EMATCH_TREE_LIST = 2,
1: + __TCA_EMATCH_TREE_MAX = 3,
1: +};
1: +
1: +struct tcf_ematch_hdr {
1: + __u16 matchid;
1: + __u16 kind;
1: + __u16 flags;
1: + __u16 pad;
1: +};
1: +
1: +struct sockaddr_nl {
1: + __kernel_sa_family_t nl_family;
1: + short unsigned int nl_pad;
1: + __u32 nl_pid;
1: + __u32 nl_groups;
1: +};
1: +
1: +struct nlmsgerr {
1: + int error;
1: + struct nlmsghdr msg;
1: +};
1: +
1: +enum nlmsgerr_attrs {
1: + NLMSGERR_ATTR_UNUSED = 0,
1: + NLMSGERR_ATTR_MSG = 1,
1: + NLMSGERR_ATTR_OFFS = 2,
1: + NLMSGERR_ATTR_COOKIE = 3,
1: + NLMSGERR_ATTR_POLICY = 4,
1: + __NLMSGERR_ATTR_MAX = 5,
1: + NLMSGERR_ATTR_MAX = 4,
1: +};
1: +
1: +struct nl_pktinfo {
1: + __u32 group;
1: +};
1: +
1: +enum {
1: + NETLINK_UNCONNECTED = 0,
1: + NETLINK_CONNECTED = 1,
1: +};
1: +
1: +enum netlink_skb_flags {
1: + NETLINK_SKB_DST = 8,
1: +};
1: +
1: +struct netlink_notify {
1: + struct net *net;
1: + u32 portid;
1: + int protocol;
1: +};
1: +
1: +struct netlink_tap {
1: + struct net_device *dev;
1: + struct module *module;
1: + struct list_head list;
1: +};
1: +
1: +struct netlink_sock {
1: + struct sock sk;
1: + u32 portid;
1: + u32 dst_portid;
1: + u32 dst_group;
1: + u32 flags;
1: + u32 subscriptions;
1: + u32 ngroups;
1: + long unsigned int *groups;
1: + long unsigned int state;
1: + size_t max_recvmsg_len;
1: + wait_queue_head_t wait;
1: + bool bound;
1: + bool cb_running;
1: + int dump_done_errno;
1: + struct netlink_callback cb;
1: + struct mutex *cb_mutex;
1: + struct mutex cb_def_mutex;
1: + void (*netlink_rcv)(struct sk_buff *);
1: + int (*netlink_bind)(struct net *, int);
1: + void (*netlink_unbind)(struct net *, int);
1: + struct module *module;
1: + struct rhash_head node;
1: + struct callback_head rcu;
1: + struct work_struct work;
1: +};
1: +
1: +struct listeners;
1: +
1: +struct netlink_table {
1: + struct rhashtable hash;
1: + struct hlist_head mc_list;
1: + struct listeners *listeners;
1: + unsigned int flags;
1: + unsigned int groups;
1: + struct mutex *cb_mutex;
1: + struct module *module;
1: + int (*bind)(struct net *, int);
1: + void (*unbind)(struct net *, int);
1: + bool (*compare)(struct net *, struct sock *);
1: + int registered;
1: +};
1: +
1: +struct listeners {
1: + struct callback_head rcu;
1: + long unsigned int masks[0];
1: +};
1: +
1: +struct netlink_tap_net {
1: + struct list_head netlink_tap_all;
1: + struct mutex netlink_tap_lock;
1: +};
1: +
1: +struct netlink_compare_arg {
1: + possible_net_t pnet;
1: + u32 portid;
1: +};
1: +
1: +struct netlink_broadcast_data {
1: + struct sock *exclude_sk;
1: + struct net *net;
1: + u32 portid;
1: + u32 group;
1: + int failure;
1: + int delivery_failure;
1: + int congested;
1: + int delivered;
1: + gfp_t allocation;
1: + struct sk_buff *skb;
1: + struct sk_buff *skb2;
1: + int (*tx_filter)(struct sock *, struct sk_buff *, void *);
1: + void *tx_data;
1: +};
1: +
1: +struct netlink_set_err_data {
1: + struct sock *exclude_sk;
1: + u32 portid;
1: + u32 group;
1: + int code;
1: +};
1: +
1: +struct nl_seq_iter {
1: + struct seq_net_private p;
1: + struct rhashtable_iter hti;
1: + int link;
1: +};
1: +
1: +struct bpf_iter__netlink {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct netlink_sock *sk;
1: + };
1: +};
1: +
1: +enum {
1: + CTRL_CMD_UNSPEC = 0,
1: + CTRL_CMD_NEWFAMILY = 1,
1: + CTRL_CMD_DELFAMILY = 2,
1: + CTRL_CMD_GETFAMILY = 3,
1: + CTRL_CMD_NEWOPS = 4,
1: + CTRL_CMD_DELOPS = 5,
1: + CTRL_CMD_GETOPS = 6,
1: + CTRL_CMD_NEWMCAST_GRP = 7,
1: + CTRL_CMD_DELMCAST_GRP = 8,
1: + CTRL_CMD_GETMCAST_GRP = 9,
1: + CTRL_CMD_GETPOLICY = 10,
1: + __CTRL_CMD_MAX = 11,
1: +};
1: +
1: +enum {
1: + CTRL_ATTR_UNSPEC = 0,
1: + CTRL_ATTR_FAMILY_ID = 1,
1: + CTRL_ATTR_FAMILY_NAME = 2,
1: + CTRL_ATTR_VERSION = 3,
1: + CTRL_ATTR_HDRSIZE = 4,
1: + CTRL_ATTR_MAXATTR = 5,
1: + CTRL_ATTR_OPS = 6,
1: + CTRL_ATTR_MCAST_GROUPS = 7,
1: + CTRL_ATTR_POLICY = 8,
1: + CTRL_ATTR_OP_POLICY = 9,
1: + CTRL_ATTR_OP = 10,
1: + __CTRL_ATTR_MAX = 11,
1: +};
1: +
1: +enum {
1: + CTRL_ATTR_OP_UNSPEC = 0,
1: + CTRL_ATTR_OP_ID = 1,
1: + CTRL_ATTR_OP_FLAGS = 2,
1: + __CTRL_ATTR_OP_MAX = 3,
1: +};
1: +
1: +enum {
1: + CTRL_ATTR_MCAST_GRP_UNSPEC = 0,
1: + CTRL_ATTR_MCAST_GRP_NAME = 1,
1: + CTRL_ATTR_MCAST_GRP_ID = 2,
1: + __CTRL_ATTR_MCAST_GRP_MAX = 3,
1: +};
1: +
1: +enum {
1: + CTRL_ATTR_POLICY_UNSPEC = 0,
1: + CTRL_ATTR_POLICY_DO = 1,
1: + CTRL_ATTR_POLICY_DUMP = 2,
1: + __CTRL_ATTR_POLICY_DUMP_MAX = 3,
1: + CTRL_ATTR_POLICY_DUMP_MAX = 2,
1: +};
1: +
1: +struct genl_start_context {
1: + const struct genl_family *family;
1: + struct nlmsghdr *nlh;
1: + struct netlink_ext_ack *extack;
1: + const struct genl_ops *ops;
1: + int hdrlen;
1: +};
1: +
1: +struct netlink_policy_dump_state;
1: +
1: +struct ctrl_dump_policy_ctx {
1: + struct netlink_policy_dump_state *state;
1: + const struct genl_family *rt;
1: + unsigned int opidx;
1: + u32 op;
1: + u16 fam_id;
1: + u8 policies: 1;
1: + u8 single_op: 1;
1: +};
1: +
1: +enum netlink_attribute_type {
1: + NL_ATTR_TYPE_INVALID = 0,
1: + NL_ATTR_TYPE_FLAG = 1,
1: + NL_ATTR_TYPE_U8 = 2,
1: + NL_ATTR_TYPE_U16 = 3,
1: + NL_ATTR_TYPE_U32 = 4,
1: + NL_ATTR_TYPE_U64 = 5,
1: + NL_ATTR_TYPE_S8 = 6,
1: + NL_ATTR_TYPE_S16 = 7,
1: + NL_ATTR_TYPE_S32 = 8,
1: + NL_ATTR_TYPE_S64 = 9,
1: + NL_ATTR_TYPE_BINARY = 10,
1: + NL_ATTR_TYPE_STRING = 11,
1: + NL_ATTR_TYPE_NUL_STRING = 12,
1: + NL_ATTR_TYPE_NESTED = 13,
1: + NL_ATTR_TYPE_NESTED_ARRAY = 14,
1: + NL_ATTR_TYPE_BITFIELD32 = 15,
1: +};
1: +
1: +enum netlink_policy_type_attr {
1: + NL_POLICY_TYPE_ATTR_UNSPEC = 0,
1: + NL_POLICY_TYPE_ATTR_TYPE = 1,
1: + NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2,
1: + NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3,
1: + NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4,
1: + NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5,
1: + NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6,
1: + NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7,
1: + NL_POLICY_TYPE_ATTR_POLICY_IDX = 8,
1: + NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9,
1: + NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10,
1: + NL_POLICY_TYPE_ATTR_PAD = 11,
1: + NL_POLICY_TYPE_ATTR_MASK = 12,
1: + __NL_POLICY_TYPE_ATTR_MAX = 13,
1: + NL_POLICY_TYPE_ATTR_MAX = 12,
1: +};
1: +
1: +struct netlink_policy_dump_state___2 {
1: + unsigned int policy_idx;
1: + unsigned int attr_idx;
1: + unsigned int n_alloc;
1: + struct {
1: + const struct nla_policy *policy;
1: + unsigned int maxtype;
1: + } policies[0];
1: +};
1: +
1: +struct trace_event_raw_bpf_test_finish {
1: + struct trace_entry ent;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_bpf_test_finish {};
1: +
1: +typedef void (*btf_trace_bpf_test_finish)(void *, int *);
1: +
1: +struct bpf_fentry_test_t {
1: + struct bpf_fentry_test_t *a;
1: +};
1: +
1: +struct bpf_raw_tp_test_run_info {
1: + struct bpf_prog *prog;
1: + void *ctx;
1: + u32 retval;
1: +};
1: +
1: +struct ethtool_cmd {
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 advertising;
1: + __u16 speed;
1: + __u8 duplex;
1: + __u8 port;
1: + __u8 phy_address;
1: + __u8 transceiver;
1: + __u8 autoneg;
1: + __u8 mdio_support;
1: + __u32 maxtxpkt;
1: + __u32 maxrxpkt;
1: + __u16 speed_hi;
1: + __u8 eth_tp_mdix;
1: + __u8 eth_tp_mdix_ctrl;
1: + __u32 lp_advertising;
1: + __u32 reserved[2];
1: +};
1: +
1: +struct ethtool_value {
1: + __u32 cmd;
1: + __u32 data;
1: +};
1: +
1: +enum tunable_id {
1: + ETHTOOL_ID_UNSPEC = 0,
1: + ETHTOOL_RX_COPYBREAK = 1,
1: + ETHTOOL_TX_COPYBREAK = 2,
1: + ETHTOOL_PFC_PREVENTION_TOUT = 3,
1: + __ETHTOOL_TUNABLE_COUNT = 4,
1: +};
1: +
1: +enum tunable_type_id {
1: + ETHTOOL_TUNABLE_UNSPEC = 0,
1: + ETHTOOL_TUNABLE_U8 = 1,
1: + ETHTOOL_TUNABLE_U16 = 2,
1: + ETHTOOL_TUNABLE_U32 = 3,
1: + ETHTOOL_TUNABLE_U64 = 4,
1: + ETHTOOL_TUNABLE_STRING = 5,
1: + ETHTOOL_TUNABLE_S8 = 6,
1: + ETHTOOL_TUNABLE_S16 = 7,
1: + ETHTOOL_TUNABLE_S32 = 8,
1: + ETHTOOL_TUNABLE_S64 = 9,
1: +};
1: +
1: +enum phy_tunable_id {
1: + ETHTOOL_PHY_ID_UNSPEC = 0,
1: + ETHTOOL_PHY_DOWNSHIFT = 1,
1: + ETHTOOL_PHY_FAST_LINK_DOWN = 2,
1: + ETHTOOL_PHY_EDPD = 3,
1: + __ETHTOOL_PHY_TUNABLE_COUNT = 4,
1: +};
1: +
1: +struct ethtool_gstrings {
1: + __u32 cmd;
1: + __u32 string_set;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_sset_info {
1: + __u32 cmd;
1: + __u32 reserved;
1: + __u64 sset_mask;
1: + __u32 data[0];
1: +};
1: +
1: +struct ethtool_perm_addr {
1: + __u32 cmd;
1: + __u32 size;
1: + __u8 data[0];
1: +};
1: +
1: +enum ethtool_flags {
1: + ETH_FLAG_TXVLAN = 128,
1: + ETH_FLAG_RXVLAN = 256,
1: + ETH_FLAG_LRO = 32768,
1: + ETH_FLAG_NTUPLE = 134217728,
1: + ETH_FLAG_RXHASH = 268435456,
1: +};
1: +
1: +struct ethtool_rxfh {
1: + __u32 cmd;
1: + __u32 rss_context;
1: + __u32 indir_size;
1: + __u32 key_size;
1: + __u8 hfunc;
1: + __u8 rsvd8[3];
1: + __u32 rsvd32;
1: + __u32 rss_config[0];
1: +};
1: +
1: +struct ethtool_get_features_block {
1: + __u32 available;
1: + __u32 requested;
1: + __u32 active;
1: + __u32 never_changed;
1: +};
1: +
1: +struct ethtool_gfeatures {
1: + __u32 cmd;
1: + __u32 size;
1: + struct ethtool_get_features_block features[0];
1: +};
1: +
1: +struct ethtool_set_features_block {
1: + __u32 valid;
1: + __u32 requested;
1: +};
1: +
1: +struct ethtool_sfeatures {
1: + __u32 cmd;
1: + __u32 size;
1: + struct ethtool_set_features_block features[0];
1: +};
1: +
1: +enum ethtool_sfeatures_retval_bits {
1: + ETHTOOL_F_UNSUPPORTED__BIT = 0,
1: + ETHTOOL_F_WISH__BIT = 1,
1: + ETHTOOL_F_COMPAT__BIT = 2,
1: +};
1: +
1: +struct ethtool_per_queue_op {
1: + __u32 cmd;
1: + __u32 sub_command;
1: + __u32 queue_mask[128];
1: + char data[0];
1: +};
1: +
1: +enum {
1: + ETH_RSS_HASH_TOP_BIT = 0,
1: + ETH_RSS_HASH_XOR_BIT = 1,
1: + ETH_RSS_HASH_CRC32_BIT = 2,
1: + ETH_RSS_HASH_FUNCS_COUNT = 3,
1: +};
1: +
1: +struct ethtool_rx_flow_rule {
1: + struct flow_rule *rule;
1: + long unsigned int priv[0];
1: +};
1: +
1: +struct ethtool_rx_flow_spec_input {
1: + const struct ethtool_rx_flow_spec *fs;
1: + u32 rss_ctx;
1: +};
1: +
1: +struct ethtool_link_usettings {
1: + struct ethtool_link_settings base;
1: + struct {
1: + __u32 supported[3];
1: + __u32 advertising[3];
1: + __u32 lp_advertising[3];
1: + } link_modes;
1: +};
1: +
1: +struct ethtool_rx_flow_key {
1: + struct flow_dissector_key_basic basic;
1: + union {
1: + struct flow_dissector_key_ipv4_addrs ipv4;
1: + struct flow_dissector_key_ipv6_addrs ipv6;
1: + };
1: + struct flow_dissector_key_ports tp;
1: + struct flow_dissector_key_ip ip;
1: + struct flow_dissector_key_vlan vlan;
1: + struct flow_dissector_key_eth_addrs eth_addrs;
1: + long: 48;
1: +};
1: +
1: +struct ethtool_rx_flow_match {
1: + struct flow_dissector dissector;
1: + int: 32;
1: + struct ethtool_rx_flow_key key;
1: + struct ethtool_rx_flow_key mask;
1: +};
1: +
1: +enum {
1: + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN = 0,
1: + ETHTOOL_UDP_TUNNEL_TYPE_GENEVE = 1,
1: + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE = 2,
1: + __ETHTOOL_UDP_TUNNEL_TYPE_CNT = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_MSG_USER_NONE = 0,
1: + ETHTOOL_MSG_STRSET_GET = 1,
1: + ETHTOOL_MSG_LINKINFO_GET = 2,
1: + ETHTOOL_MSG_LINKINFO_SET = 3,
1: + ETHTOOL_MSG_LINKMODES_GET = 4,
1: + ETHTOOL_MSG_LINKMODES_SET = 5,
1: + ETHTOOL_MSG_LINKSTATE_GET = 6,
1: + ETHTOOL_MSG_DEBUG_GET = 7,
1: + ETHTOOL_MSG_DEBUG_SET = 8,
1: + ETHTOOL_MSG_WOL_GET = 9,
1: + ETHTOOL_MSG_WOL_SET = 10,
1: + ETHTOOL_MSG_FEATURES_GET = 11,
1: + ETHTOOL_MSG_FEATURES_SET = 12,
1: + ETHTOOL_MSG_PRIVFLAGS_GET = 13,
1: + ETHTOOL_MSG_PRIVFLAGS_SET = 14,
1: + ETHTOOL_MSG_RINGS_GET = 15,
1: + ETHTOOL_MSG_RINGS_SET = 16,
1: + ETHTOOL_MSG_CHANNELS_GET = 17,
1: + ETHTOOL_MSG_CHANNELS_SET = 18,
1: + ETHTOOL_MSG_COALESCE_GET = 19,
1: + ETHTOOL_MSG_COALESCE_SET = 20,
1: + ETHTOOL_MSG_PAUSE_GET = 21,
1: + ETHTOOL_MSG_PAUSE_SET = 22,
1: + ETHTOOL_MSG_EEE_GET = 23,
1: + ETHTOOL_MSG_EEE_SET = 24,
1: + ETHTOOL_MSG_TSINFO_GET = 25,
1: + ETHTOOL_MSG_CABLE_TEST_ACT = 26,
1: + ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 27,
1: + ETHTOOL_MSG_TUNNEL_INFO_GET = 28,
1: + __ETHTOOL_MSG_USER_CNT = 29,
1: + ETHTOOL_MSG_USER_MAX = 28,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_HEADER_UNSPEC = 0,
1: + ETHTOOL_A_HEADER_DEV_INDEX = 1,
1: + ETHTOOL_A_HEADER_DEV_NAME = 2,
1: + ETHTOOL_A_HEADER_FLAGS = 3,
1: + __ETHTOOL_A_HEADER_CNT = 4,
1: + ETHTOOL_A_HEADER_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_STRSET_UNSPEC = 0,
1: + ETHTOOL_A_STRSET_HEADER = 1,
1: + ETHTOOL_A_STRSET_STRINGSETS = 2,
1: + ETHTOOL_A_STRSET_COUNTS_ONLY = 3,
1: + __ETHTOOL_A_STRSET_CNT = 4,
1: + ETHTOOL_A_STRSET_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKINFO_UNSPEC = 0,
1: + ETHTOOL_A_LINKINFO_HEADER = 1,
1: + ETHTOOL_A_LINKINFO_PORT = 2,
1: + ETHTOOL_A_LINKINFO_PHYADDR = 3,
1: + ETHTOOL_A_LINKINFO_TP_MDIX = 4,
1: + ETHTOOL_A_LINKINFO_TP_MDIX_CTRL = 5,
1: + ETHTOOL_A_LINKINFO_TRANSCEIVER = 6,
1: + __ETHTOOL_A_LINKINFO_CNT = 7,
1: + ETHTOOL_A_LINKINFO_MAX = 6,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKMODES_UNSPEC = 0,
1: + ETHTOOL_A_LINKMODES_HEADER = 1,
1: + ETHTOOL_A_LINKMODES_AUTONEG = 2,
1: + ETHTOOL_A_LINKMODES_OURS = 3,
1: + ETHTOOL_A_LINKMODES_PEER = 4,
1: + ETHTOOL_A_LINKMODES_SPEED = 5,
1: + ETHTOOL_A_LINKMODES_DUPLEX = 6,
1: + ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG = 7,
1: + ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE = 8,
1: + __ETHTOOL_A_LINKMODES_CNT = 9,
1: + ETHTOOL_A_LINKMODES_MAX = 8,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKSTATE_UNSPEC = 0,
1: + ETHTOOL_A_LINKSTATE_HEADER = 1,
1: + ETHTOOL_A_LINKSTATE_LINK = 2,
1: + ETHTOOL_A_LINKSTATE_SQI = 3,
1: + ETHTOOL_A_LINKSTATE_SQI_MAX = 4,
1: + ETHTOOL_A_LINKSTATE_EXT_STATE = 5,
1: + ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 6,
1: + __ETHTOOL_A_LINKSTATE_CNT = 7,
1: + ETHTOOL_A_LINKSTATE_MAX = 6,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_DEBUG_UNSPEC = 0,
1: + ETHTOOL_A_DEBUG_HEADER = 1,
1: + ETHTOOL_A_DEBUG_MSGMASK = 2,
1: + __ETHTOOL_A_DEBUG_CNT = 3,
1: + ETHTOOL_A_DEBUG_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_WOL_UNSPEC = 0,
1: + ETHTOOL_A_WOL_HEADER = 1,
1: + ETHTOOL_A_WOL_MODES = 2,
1: + ETHTOOL_A_WOL_SOPASS = 3,
1: + __ETHTOOL_A_WOL_CNT = 4,
1: + ETHTOOL_A_WOL_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_FEATURES_UNSPEC = 0,
1: + ETHTOOL_A_FEATURES_HEADER = 1,
1: + ETHTOOL_A_FEATURES_HW = 2,
1: + ETHTOOL_A_FEATURES_WANTED = 3,
1: + ETHTOOL_A_FEATURES_ACTIVE = 4,
1: + ETHTOOL_A_FEATURES_NOCHANGE = 5,
1: + __ETHTOOL_A_FEATURES_CNT = 6,
1: + ETHTOOL_A_FEATURES_MAX = 5,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_PRIVFLAGS_UNSPEC = 0,
1: + ETHTOOL_A_PRIVFLAGS_HEADER = 1,
1: + ETHTOOL_A_PRIVFLAGS_FLAGS = 2,
1: + __ETHTOOL_A_PRIVFLAGS_CNT = 3,
1: + ETHTOOL_A_PRIVFLAGS_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_RINGS_UNSPEC = 0,
1: + ETHTOOL_A_RINGS_HEADER = 1,
1: + ETHTOOL_A_RINGS_RX_MAX = 2,
1: + ETHTOOL_A_RINGS_RX_MINI_MAX = 3,
1: + ETHTOOL_A_RINGS_RX_JUMBO_MAX = 4,
1: + ETHTOOL_A_RINGS_TX_MAX = 5,
1: + ETHTOOL_A_RINGS_RX = 6,
1: + ETHTOOL_A_RINGS_RX_MINI = 7,
1: + ETHTOOL_A_RINGS_RX_JUMBO = 8,
1: + ETHTOOL_A_RINGS_TX = 9,
1: + __ETHTOOL_A_RINGS_CNT = 10,
1: + ETHTOOL_A_RINGS_MAX = 9,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CHANNELS_UNSPEC = 0,
1: + ETHTOOL_A_CHANNELS_HEADER = 1,
1: + ETHTOOL_A_CHANNELS_RX_MAX = 2,
1: + ETHTOOL_A_CHANNELS_TX_MAX = 3,
1: + ETHTOOL_A_CHANNELS_OTHER_MAX = 4,
1: + ETHTOOL_A_CHANNELS_COMBINED_MAX = 5,
1: + ETHTOOL_A_CHANNELS_RX_COUNT = 6,
1: + ETHTOOL_A_CHANNELS_TX_COUNT = 7,
1: + ETHTOOL_A_CHANNELS_OTHER_COUNT = 8,
1: + ETHTOOL_A_CHANNELS_COMBINED_COUNT = 9,
1: + __ETHTOOL_A_CHANNELS_CNT = 10,
1: + ETHTOOL_A_CHANNELS_MAX = 9,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_COALESCE_UNSPEC = 0,
1: + ETHTOOL_A_COALESCE_HEADER = 1,
1: + ETHTOOL_A_COALESCE_RX_USECS = 2,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES = 3,
1: + ETHTOOL_A_COALESCE_RX_USECS_IRQ = 4,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ = 5,
1: + ETHTOOL_A_COALESCE_TX_USECS = 6,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES = 7,
1: + ETHTOOL_A_COALESCE_TX_USECS_IRQ = 8,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ = 9,
1: + ETHTOOL_A_COALESCE_STATS_BLOCK_USECS = 10,
1: + ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX = 11,
1: + ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX = 12,
1: + ETHTOOL_A_COALESCE_PKT_RATE_LOW = 13,
1: + ETHTOOL_A_COALESCE_RX_USECS_LOW = 14,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW = 15,
1: + ETHTOOL_A_COALESCE_TX_USECS_LOW = 16,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW = 17,
1: + ETHTOOL_A_COALESCE_PKT_RATE_HIGH = 18,
1: + ETHTOOL_A_COALESCE_RX_USECS_HIGH = 19,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH = 20,
1: + ETHTOOL_A_COALESCE_TX_USECS_HIGH = 21,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH = 22,
1: + ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 23,
1: + __ETHTOOL_A_COALESCE_CNT = 24,
1: + ETHTOOL_A_COALESCE_MAX = 23,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_PAUSE_UNSPEC = 0,
1: + ETHTOOL_A_PAUSE_HEADER = 1,
1: + ETHTOOL_A_PAUSE_AUTONEG = 2,
1: + ETHTOOL_A_PAUSE_RX = 3,
1: + ETHTOOL_A_PAUSE_TX = 4,
1: + ETHTOOL_A_PAUSE_STATS = 5,
1: + __ETHTOOL_A_PAUSE_CNT = 6,
1: + ETHTOOL_A_PAUSE_MAX = 5,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_EEE_UNSPEC = 0,
1: + ETHTOOL_A_EEE_HEADER = 1,
1: + ETHTOOL_A_EEE_MODES_OURS = 2,
1: + ETHTOOL_A_EEE_MODES_PEER = 3,
1: + ETHTOOL_A_EEE_ACTIVE = 4,
1: + ETHTOOL_A_EEE_ENABLED = 5,
1: + ETHTOOL_A_EEE_TX_LPI_ENABLED = 6,
1: + ETHTOOL_A_EEE_TX_LPI_TIMER = 7,
1: + __ETHTOOL_A_EEE_CNT = 8,
1: + ETHTOOL_A_EEE_MAX = 7,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TSINFO_UNSPEC = 0,
1: + ETHTOOL_A_TSINFO_HEADER = 1,
1: + ETHTOOL_A_TSINFO_TIMESTAMPING = 2,
1: + ETHTOOL_A_TSINFO_TX_TYPES = 3,
1: + ETHTOOL_A_TSINFO_RX_FILTERS = 4,
1: + ETHTOOL_A_TSINFO_PHC_INDEX = 5,
1: + __ETHTOOL_A_TSINFO_CNT = 6,
1: + ETHTOOL_A_TSINFO_MAX = 5,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_HEADER = 1,
1: + __ETHTOOL_A_CABLE_TEST_CNT = 2,
1: + ETHTOOL_A_CABLE_TEST_MAX = 1,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_TDR_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_TDR_HEADER = 1,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG = 2,
1: + __ETHTOOL_A_CABLE_TEST_TDR_CNT = 3,
1: + ETHTOOL_A_CABLE_TEST_TDR_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TUNNEL_INFO_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_INFO_HEADER = 1,
1: + ETHTOOL_A_TUNNEL_INFO_UDP_PORTS = 2,
1: + __ETHTOOL_A_TUNNEL_INFO_CNT = 3,
1: + ETHTOOL_A_TUNNEL_INFO_MAX = 2,
1: +};
1: +
1: +enum ethtool_multicast_groups {
1: + ETHNL_MCGRP_MONITOR = 0,
1: +};
1: +
1: +struct ethnl_req_info {
1: + struct net_device *dev;
1: + u32 flags;
1: +};
1: +
1: +struct ethnl_reply_data {
1: + struct net_device *dev;
1: +};
1: +
1: +struct ethnl_request_ops {
1: + u8 request_cmd;
1: + u8 reply_cmd;
1: + u16 hdr_attr;
1: + unsigned int req_info_size;
1: + unsigned int reply_data_size;
1: + bool allow_nodev_do;
1: + int (*parse_request)(struct ethnl_req_info *, struct nlattr **, struct netlink_ext_ack *);
1: + int (*prepare_data)(const struct ethnl_req_info *, struct ethnl_reply_data *, struct genl_info *);
1: + int (*reply_size)(const struct ethnl_req_info *, const struct ethnl_reply_data *);
1: + int (*fill_reply)(struct sk_buff *, const struct ethnl_req_info *, const struct ethnl_reply_data *);
1: + void (*cleanup_data)(struct ethnl_reply_data *);
1: +};
1: +
1: +struct ethnl_dump_ctx {
1: + const struct ethnl_request_ops *ops;
1: + struct ethnl_req_info *req_info;
1: + struct ethnl_reply_data *reply_data;
1: + int pos_hash;
1: + int pos_idx;
1: +};
1: +
1: +typedef void (*ethnl_notify_handler_t)(struct net_device *, unsigned int, const void *);
1: +
1: +enum {
1: + ETHTOOL_A_BITSET_BIT_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_BIT_INDEX = 1,
1: + ETHTOOL_A_BITSET_BIT_NAME = 2,
1: + ETHTOOL_A_BITSET_BIT_VALUE = 3,
1: + __ETHTOOL_A_BITSET_BIT_CNT = 4,
1: + ETHTOOL_A_BITSET_BIT_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_BITSET_BITS_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_BITS_BIT = 1,
1: + __ETHTOOL_A_BITSET_BITS_CNT = 2,
1: + ETHTOOL_A_BITSET_BITS_MAX = 1,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_BITSET_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_NOMASK = 1,
1: + ETHTOOL_A_BITSET_SIZE = 2,
1: + ETHTOOL_A_BITSET_BITS = 3,
1: + ETHTOOL_A_BITSET_VALUE = 4,
1: + ETHTOOL_A_BITSET_MASK = 5,
1: + __ETHTOOL_A_BITSET_CNT = 6,
1: + ETHTOOL_A_BITSET_MAX = 5,
1: +};
1: +
1: +typedef const char (* const ethnl_string_array_t)[32];
1: +
1: +enum {
1: + ETHTOOL_A_STRING_UNSPEC = 0,
1: + ETHTOOL_A_STRING_INDEX = 1,
1: + ETHTOOL_A_STRING_VALUE = 2,
1: + __ETHTOOL_A_STRING_CNT = 3,
1: + ETHTOOL_A_STRING_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_STRINGS_UNSPEC = 0,
1: + ETHTOOL_A_STRINGS_STRING = 1,
1: + __ETHTOOL_A_STRINGS_CNT = 2,
1: + ETHTOOL_A_STRINGS_MAX = 1,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_STRINGSET_UNSPEC = 0,
1: + ETHTOOL_A_STRINGSET_ID = 1,
1: + ETHTOOL_A_STRINGSET_COUNT = 2,
1: + ETHTOOL_A_STRINGSET_STRINGS = 3,
1: + __ETHTOOL_A_STRINGSET_CNT = 4,
1: + ETHTOOL_A_STRINGSET_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_STRINGSETS_UNSPEC = 0,
1: + ETHTOOL_A_STRINGSETS_STRINGSET = 1,
1: + __ETHTOOL_A_STRINGSETS_CNT = 2,
1: + ETHTOOL_A_STRINGSETS_MAX = 1,
1: +};
1: +
1: +struct strset_info {
1: + bool per_dev;
1: + bool free_strings;
1: + unsigned int count;
1: + const char (*strings)[32];
1: +};
1: +
1: +struct strset_req_info {
1: + struct ethnl_req_info base;
1: + u32 req_ids;
1: + bool counts_only;
1: +};
1: +
1: +struct strset_reply_data {
1: + struct ethnl_reply_data base;
1: + struct strset_info sets[16];
1: +};
1: +
1: +struct linkinfo_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_link_ksettings ksettings;
1: + struct ethtool_link_settings *lsettings;
1: +};
1: +
1: +struct linkmodes_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_link_ksettings ksettings;
1: + struct ethtool_link_settings *lsettings;
1: + bool peer_empty;
1: +};
1: +
1: +struct link_mode_info {
1: + int speed;
1: + u8 duplex;
1: +};
1: +
1: +struct linkstate_reply_data {
1: + struct ethnl_reply_data base;
1: + int link;
1: + int sqi;
1: + int sqi_max;
1: + bool link_ext_state_provided;
1: + struct ethtool_link_ext_state_info ethtool_link_ext_state_info;
1: +};
1: +
1: +struct debug_reply_data {
1: + struct ethnl_reply_data base;
1: + u32 msg_mask;
1: +};
1: +
1: +struct wol_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_wolinfo wol;
1: + bool show_sopass;
1: +};
1: +
1: +struct features_reply_data {
1: + struct ethnl_reply_data base;
1: + u32 hw[2];
1: + u32 wanted[2];
1: + u32 active[2];
1: + u32 nochange[2];
1: + u32 all[2];
1: +};
1: +
1: +struct privflags_reply_data {
1: + struct ethnl_reply_data base;
1: + const char (*priv_flag_names)[32];
1: + unsigned int n_priv_flags;
1: + u32 priv_flags;
1: +};
1: +
1: +struct rings_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_ringparam ringparam;
1: +};
1: +
1: +struct channels_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_channels channels;
1: +};
1: +
1: +struct coalesce_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_coalesce coalesce;
1: + u32 supported_params;
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_PAUSE_STAT_UNSPEC = 0,
1: + ETHTOOL_A_PAUSE_STAT_PAD = 1,
1: + ETHTOOL_A_PAUSE_STAT_TX_FRAMES = 2,
1: + ETHTOOL_A_PAUSE_STAT_RX_FRAMES = 3,
1: + __ETHTOOL_A_PAUSE_STAT_CNT = 4,
1: + ETHTOOL_A_PAUSE_STAT_MAX = 3,
1: +};
1: +
1: +struct pause_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_pauseparam pauseparam;
1: + struct ethtool_pause_stats pausestat;
1: +};
1: +
1: +struct eee_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_eee eee;
1: +};
1: +
1: +struct tsinfo_reply_data {
1: + struct ethnl_reply_data base;
1: + struct ethtool_ts_info ts_info;
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_PAIR_A = 0,
1: + ETHTOOL_A_CABLE_PAIR_B = 1,
1: + ETHTOOL_A_CABLE_PAIR_C = 2,
1: + ETHTOOL_A_CABLE_PAIR_D = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_RESULT_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_RESULT_PAIR = 1,
1: + ETHTOOL_A_CABLE_RESULT_CODE = 2,
1: + __ETHTOOL_A_CABLE_RESULT_CNT = 3,
1: + ETHTOOL_A_CABLE_RESULT_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR = 1,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_CM = 2,
1: + __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT = 3,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED = 1,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_NEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_NEST_RESULT = 1,
1: + ETHTOOL_A_CABLE_NEST_FAULT_LENGTH = 2,
1: + __ETHTOOL_A_CABLE_NEST_CNT = 3,
1: + ETHTOOL_A_CABLE_NEST_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_NTF_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_NTF_HEADER = 1,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS = 2,
1: + ETHTOOL_A_CABLE_TEST_NTF_NEST = 3,
1: + __ETHTOOL_A_CABLE_TEST_NTF_CNT = 4,
1: + ETHTOOL_A_CABLE_TEST_NTF_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST = 1,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST = 2,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP = 3,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR = 4,
1: + __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT = 5,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = 4,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_AMPLITUDE_PAIR = 1,
1: + ETHTOOL_A_CABLE_AMPLITUDE_mV = 2,
1: + __ETHTOOL_A_CABLE_AMPLITUDE_CNT = 3,
1: + ETHTOOL_A_CABLE_AMPLITUDE_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_PULSE_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_PULSE_mV = 1,
1: + __ETHTOOL_A_CABLE_PULSE_CNT = 2,
1: + ETHTOOL_A_CABLE_PULSE_MAX = 1,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_STEP_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE = 1,
1: + ETHTOOL_A_CABLE_STEP_LAST_DISTANCE = 2,
1: + ETHTOOL_A_CABLE_STEP_STEP_DISTANCE = 3,
1: + __ETHTOOL_A_CABLE_STEP_CNT = 4,
1: + ETHTOOL_A_CABLE_STEP_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TDR_NEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TDR_NEST_STEP = 1,
1: + ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE = 2,
1: + ETHTOOL_A_CABLE_TDR_NEST_PULSE = 3,
1: + __ETHTOOL_A_CABLE_TDR_NEST_CNT = 4,
1: + ETHTOOL_A_CABLE_TDR_NEST_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT = 1,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE = 2,
1: + __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT = 3,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE = 1,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES = 2,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY = 3,
1: + __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT = 4,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TUNNEL_UDP_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE = 1,
1: + __ETHTOOL_A_TUNNEL_UDP_CNT = 2,
1: + ETHTOOL_A_TUNNEL_UDP_MAX = 1,
1: +};
1: +
1: +enum udp_parsable_tunnel_type {
1: + UDP_TUNNEL_TYPE_VXLAN = 1,
1: + UDP_TUNNEL_TYPE_GENEVE = 2,
1: + UDP_TUNNEL_TYPE_VXLAN_GPE = 4,
1: +};
1: +
1: +enum udp_tunnel_nic_info_flags {
1: + UDP_TUNNEL_NIC_INFO_MAY_SLEEP = 1,
1: + UDP_TUNNEL_NIC_INFO_OPEN_ONLY = 2,
1: + UDP_TUNNEL_NIC_INFO_IPV4_ONLY = 4,
1: + UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN = 8,
1: +};
1: +
1: +struct udp_tunnel_nic_ops {
1: + void (*get_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: + void (*set_port_priv)(struct net_device *, unsigned int, unsigned int, u8);
1: + void (*add_port)(struct net_device *, struct udp_tunnel_info *);
1: + void (*del_port)(struct net_device *, struct udp_tunnel_info *);
1: + void (*reset_ntf)(struct net_device *);
1: + size_t (*dump_size)(struct net_device *, unsigned int);
1: + int (*dump_write)(struct net_device *, unsigned int, struct sk_buff *);
1: +};
1: +
1: +struct ethnl_tunnel_info_dump_ctx {
1: + struct ethnl_req_info req_info;
1: + int pos_hash;
1: + int pos_idx;
1: +};
1: +
1: +struct nf_hook_entries_rcu_head {
1: + struct callback_head head;
1: + void *allocation;
1: +};
1: +
1: +struct nf_conn___2;
1: +
1: +enum nf_nat_manip_type;
1: +
1: +struct nf_nat_hook {
1: + int (*parse_nat_setup)(struct nf_conn___2 *, enum nf_nat_manip_type, const struct nlattr *);
1: + void (*decode_session)(struct sk_buff *, struct flowi *);
1: + unsigned int (*manip_pkt)(struct sk_buff *, struct nf_conn___2 *, enum nf_nat_manip_type, enum ip_conntrack_dir);
1: +};
1: +
1: +struct nf_conntrack_tuple___2;
1: +
1: +struct nf_ct_hook {
1: + int (*update)(struct net *, struct sk_buff *);
1: + void (*destroy)(struct nf_conntrack *);
1: + bool (*get_tuple_skb)(struct nf_conntrack_tuple___2 *, const struct sk_buff *);
1: +};
1: +
1: +struct nfnl_ct_hook {
1: + struct nf_conn___2 * (*get_ct)(const struct sk_buff *, enum ip_conntrack_info *);
1: + size_t (*build_size)(const struct nf_conn___2 *);
1: + int (*build)(struct sk_buff *, struct nf_conn___2 *, enum ip_conntrack_info, u_int16_t, u_int16_t);
1: + int (*parse)(const struct nlattr *, struct nf_conn___2 *);
1: + int (*attach_expect)(const struct nlattr *, struct nf_conn___2 *, u32, u32);
1: + void (*seq_adjust)(struct sk_buff *, struct nf_conn___2 *, enum ip_conntrack_info, s32);
1: +};
1: +
1: +struct nf_ipv6_ops {
1: + void (*route_input)(struct sk_buff *);
1: + int (*fragment)(struct net *, struct sock *, struct sk_buff *, int (*)(struct net *, struct sock *, struct sk_buff *));
1: + int (*reroute)(struct sk_buff *, const struct nf_queue_entry *);
1: +};
1: +
1: +struct nf_queue_entry {
1: + struct list_head list;
1: + struct sk_buff *skb;
1: + unsigned int id;
1: + unsigned int hook_index;
1: + struct net_device *physin;
1: + struct net_device *physout;
1: + struct nf_hook_state state;
1: + u16 size;
1: +};
1: +
1: +struct nf_loginfo {
1: + u_int8_t type;
1: + union {
1: + struct {
1: + u_int32_t copy_len;
1: + u_int16_t group;
1: + u_int16_t qthreshold;
1: + u_int16_t flags;
1: + } ulog;
1: + struct {
1: + u_int8_t level;
1: + u_int8_t logflags;
1: + } log;
1: + } u;
1: +};
1: +
1: +struct nf_log_buf {
1: + unsigned int count;
1: + char buf[1020];
1: +};
1: +
1: +struct nf_bridge_info {
1: + enum {
1: + BRNF_PROTO_UNCHANGED = 0,
1: + BRNF_PROTO_8021Q = 1,
1: + BRNF_PROTO_PPPOE = 2,
1: + } orig_proto: 8;
1: + u8 pkt_otherhost: 1;
1: + u8 in_prerouting: 1;
1: + u8 bridged_dnat: 1;
1: + __u16 frag_max_size;
1: + struct net_device *physindev;
1: + struct net_device *physoutdev;
1: + union {
1: + __be32 ipv4_daddr;
1: + struct in6_addr ipv6_daddr;
1: + char neigh_header[8];
1: + };
1: +};
1: +
1: +struct ip_rt_info {
1: + __be32 daddr;
1: + __be32 saddr;
1: + u_int8_t tos;
1: + u_int32_t mark;
1: +};
1: +
1: +struct ip6_rt_info {
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + u_int32_t mark;
1: +};
1: +
1: +struct nf_sockopt_ops {
1: + struct list_head list;
1: + u_int8_t pf;
1: + int set_optmin;
1: + int set_optmax;
1: + int (*set)(struct sock *, int, sockptr_t, unsigned int);
1: + int get_optmin;
1: + int get_optmax;
1: + int (*get)(struct sock *, int, void *, int *);
1: + struct module *owner;
1: +};
1: +
1: +struct ip_mreqn {
1: + struct in_addr imr_multiaddr;
1: + struct in_addr imr_address;
1: + int imr_ifindex;
1: +};
1: +
1: +struct rtmsg {
1: + unsigned char rtm_family;
1: + unsigned char rtm_dst_len;
1: + unsigned char rtm_src_len;
1: + unsigned char rtm_tos;
1: + unsigned char rtm_table;
1: + unsigned char rtm_protocol;
1: + unsigned char rtm_scope;
1: + unsigned char rtm_type;
1: + unsigned int rtm_flags;
1: +};
1: +
1: +struct rtvia {
1: + __kernel_sa_family_t rtvia_family;
1: + __u8 rtvia_addr[0];
1: +};
1: +
1: +struct ip_sf_list;
1: +
1: +struct ip_mc_list {
1: + struct in_device *interface;
1: + __be32 multiaddr;
1: + unsigned int sfmode;
1: + struct ip_sf_list *sources;
1: + struct ip_sf_list *tomb;
1: + long unsigned int sfcount[2];
1: + union {
1: + struct ip_mc_list *next;
1: + struct ip_mc_list *next_rcu;
1: + };
1: + struct ip_mc_list *next_hash;
1: + struct timer_list timer;
1: + int users;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + char tm_running;
1: + char reporter;
1: + char unsolicit_count;
1: + char loaded;
1: + unsigned char gsquery;
1: + unsigned char crcount;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ip_sf_socklist {
1: + unsigned int sl_max;
1: + unsigned int sl_count;
1: + struct callback_head rcu;
1: + __be32 sl_addr[0];
1: +};
1: +
1: +struct ip_mc_socklist {
1: + struct ip_mc_socklist *next_rcu;
1: + struct ip_mreqn multi;
1: + unsigned int sfmode;
1: + struct ip_sf_socklist *sflist;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ip_sf_list {
1: + struct ip_sf_list *sf_next;
1: + long unsigned int sf_count[2];
1: + __be32 sf_inaddr;
1: + unsigned char sf_gsresp;
1: + unsigned char sf_oldin;
1: + unsigned char sf_crcount;
1: +};
1: +
1: +struct ipv4_addr_key {
1: + __be32 addr;
1: + int vif;
1: +};
1: +
1: +struct inetpeer_addr {
1: + union {
1: + struct ipv4_addr_key a4;
1: + struct in6_addr a6;
1: + u32 key[4];
1: + };
1: + __u16 family;
1: +};
1: +
1: +struct inet_peer {
1: + struct rb_node rb_node;
1: + struct inetpeer_addr daddr;
1: + u32 metrics[17];
1: + u32 rate_tokens;
1: + u32 n_redirects;
1: + long unsigned int rate_last;
1: + union {
1: + struct {
1: + atomic_t rid;
1: + };
1: + struct callback_head rcu;
1: + };
1: + __u32 dtime;
1: + refcount_t refcnt;
1: +};
1: +
1: +struct fib_rt_info {
1: + struct fib_info *fi;
1: + u32 tb_id;
1: + __be32 dst;
1: + int dst_len;
1: + u8 tos;
1: + u8 type;
1: + u8 offload: 1;
1: + u8 trap: 1;
1: + u8 unused: 6;
1: +};
1: +
1: +struct uncached_list {
1: + spinlock_t lock;
1: + struct list_head head;
1: +};
1: +
1: +struct ip_rt_acct {
1: + __u32 o_bytes;
1: + __u32 o_packets;
1: + __u32 i_bytes;
1: + __u32 i_packets;
1: +};
1: +
1: +struct rt_cache_stat {
1: + unsigned int in_slow_tot;
1: + unsigned int in_slow_mc;
1: + unsigned int in_no_route;
1: + unsigned int in_brd;
1: + unsigned int in_martian_dst;
1: + unsigned int in_martian_src;
1: + unsigned int out_slow_tot;
1: + unsigned int out_slow_mc;
1: +};
1: +
1: +struct fib_alias {
1: + struct hlist_node fa_list;
1: + struct fib_info *fa_info;
1: + u8 fa_tos;
1: + u8 fa_type;
1: + u8 fa_state;
1: + u8 fa_slen;
1: + u32 tb_id;
1: + s16 fa_default;
1: + u8 offload: 1;
1: + u8 trap: 1;
1: + u8 unused: 6;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_prop {
1: + int error;
1: + u8 scope;
1: +};
1: +
1: +struct net_offload {
1: + struct offload_callbacks callbacks;
1: + unsigned int flags;
1: +};
1: +
1: +struct raw_hashinfo {
1: + rwlock_t lock;
1: + struct hlist_head ht[256];
1: +};
1: +
1: +enum ip_defrag_users {
1: + IP_DEFRAG_LOCAL_DELIVER = 0,
1: + IP_DEFRAG_CALL_RA_CHAIN = 1,
1: + IP_DEFRAG_CONNTRACK_IN = 2,
1: + __IP_DEFRAG_CONNTRACK_IN_END = 65537,
1: + IP_DEFRAG_CONNTRACK_OUT = 65538,
1: + __IP_DEFRAG_CONNTRACK_OUT_END = 131073,
1: + IP_DEFRAG_CONNTRACK_BRIDGE_IN = 131074,
1: + __IP_DEFRAG_CONNTRACK_BRIDGE_IN = 196609,
1: + IP_DEFRAG_VS_IN = 196610,
1: + IP_DEFRAG_VS_OUT = 196611,
1: + IP_DEFRAG_VS_FWD = 196612,
1: + IP_DEFRAG_AF_PACKET = 196613,
1: + IP_DEFRAG_MACVLAN = 196614,
1: +};
1: +
1: +enum {
1: + INET_FRAG_FIRST_IN = 1,
1: + INET_FRAG_LAST_IN = 2,
1: + INET_FRAG_COMPLETE = 4,
1: + INET_FRAG_HASH_DEAD = 8,
1: +};
1: +
1: +struct ipq {
1: + struct inet_frag_queue q;
1: + u8 ecn;
1: + u16 max_df_size;
1: + int iif;
1: + unsigned int rid;
1: + struct inet_peer *peer;
1: +};
1: +
1: +struct ip_options_data {
1: + struct ip_options_rcu opt;
1: + char data[40];
1: +};
1: +
1: +struct ipcm_cookie {
1: + struct sockcm_cookie sockc;
1: + __be32 addr;
1: + int oif;
1: + struct ip_options_rcu *opt;
1: + __u8 ttl;
1: + __s16 tos;
1: + char priority;
1: + __u16 gso_size;
1: +};
1: +
1: +struct ip_fraglist_iter {
1: + struct sk_buff *frag;
1: + struct iphdr *iph;
1: + int offset;
1: + unsigned int hlen;
1: +};
1: +
1: +struct ip_frag_state {
1: + bool DF;
1: + unsigned int hlen;
1: + unsigned int ll_rs;
1: + unsigned int mtu;
1: + unsigned int left;
1: + int offset;
1: + int ptr;
1: + __be16 not_last_frag;
1: +};
1: +
1: +struct ip_reply_arg {
1: + struct kvec iov[1];
1: + int flags;
1: + __wsum csum;
1: + int csumoffset;
1: + int bound_dev_if;
1: + u8 tos;
1: + kuid_t uid;
1: +};
1: +
1: +struct ip_mreq_source {
1: + __be32 imr_multiaddr;
1: + __be32 imr_interface;
1: + __be32 imr_sourceaddr;
1: +};
1: +
1: +struct ip_msfilter {
1: + __be32 imsf_multiaddr;
1: + __be32 imsf_interface;
1: + __u32 imsf_fmode;
1: + __u32 imsf_numsrc;
1: + __be32 imsf_slist[1];
1: +};
1: +
1: +struct group_req {
1: + __u32 gr_interface;
1: + struct __kernel_sockaddr_storage gr_group;
1: +};
1: +
1: +struct group_source_req {
1: + __u32 gsr_interface;
1: + struct __kernel_sockaddr_storage gsr_group;
1: + struct __kernel_sockaddr_storage gsr_source;
1: +};
1: +
1: +struct group_filter {
1: + __u32 gf_interface;
1: + struct __kernel_sockaddr_storage gf_group;
1: + __u32 gf_fmode;
1: + __u32 gf_numsrc;
1: + struct __kernel_sockaddr_storage gf_slist[1];
1: +};
1: +
1: +struct in_pktinfo {
1: + int ipi_ifindex;
1: + struct in_addr ipi_spec_dst;
1: + struct in_addr ipi_addr;
1: +};
1: +
1: +struct compat_group_req {
1: + __u32 gr_interface;
1: + struct __kernel_sockaddr_storage gr_group;
1: +} __attribute__((packed));
1: +
1: +struct compat_group_source_req {
1: + __u32 gsr_interface;
1: + struct __kernel_sockaddr_storage gsr_group;
1: + struct __kernel_sockaddr_storage gsr_source;
1: +} __attribute__((packed));
1: +
1: +struct compat_group_filter {
1: + __u32 gf_interface;
1: + struct __kernel_sockaddr_storage gf_group;
1: + __u32 gf_fmode;
1: + __u32 gf_numsrc;
1: + struct __kernel_sockaddr_storage gf_slist[1];
1: +} __attribute__((packed));
1: +
1: +enum {
1: + BPFILTER_IPT_SO_SET_REPLACE = 64,
1: + BPFILTER_IPT_SO_SET_ADD_COUNTERS = 65,
1: + BPFILTER_IPT_SET_MAX = 66,
1: +};
1: +
1: +enum {
1: + BPFILTER_IPT_SO_GET_INFO = 64,
1: + BPFILTER_IPT_SO_GET_ENTRIES = 65,
1: + BPFILTER_IPT_SO_GET_REVISION_MATCH = 66,
1: + BPFILTER_IPT_SO_GET_REVISION_TARGET = 67,
1: + BPFILTER_IPT_GET_MAX = 68,
1: +};
1: +
1: +struct tcpvegas_info {
1: + __u32 tcpv_enabled;
1: + __u32 tcpv_rttcnt;
1: + __u32 tcpv_rtt;
1: + __u32 tcpv_minrtt;
1: +};
1: +
1: +struct tcp_dctcp_info {
1: + __u16 dctcp_enabled;
1: + __u16 dctcp_ce_state;
1: + __u32 dctcp_alpha;
1: + __u32 dctcp_ab_ecn;
1: + __u32 dctcp_ab_tot;
1: +};
1: +
1: +struct tcp_bbr_info {
1: + __u32 bbr_bw_lo;
1: + __u32 bbr_bw_hi;
1: + __u32 bbr_min_rtt;
1: + __u32 bbr_pacing_gain;
1: + __u32 bbr_cwnd_gain;
1: +};
1: +
1: +union tcp_cc_info {
1: + struct tcpvegas_info vegas;
1: + struct tcp_dctcp_info dctcp;
1: + struct tcp_bbr_info bbr;
1: +};
1: +
1: +enum {
1: + BPF_TCP_ESTABLISHED = 1,
1: + BPF_TCP_SYN_SENT = 2,
1: + BPF_TCP_SYN_RECV = 3,
1: + BPF_TCP_FIN_WAIT1 = 4,
1: + BPF_TCP_FIN_WAIT2 = 5,
1: + BPF_TCP_TIME_WAIT = 6,
1: + BPF_TCP_CLOSE = 7,
1: + BPF_TCP_CLOSE_WAIT = 8,
1: + BPF_TCP_LAST_ACK = 9,
1: + BPF_TCP_LISTEN = 10,
1: + BPF_TCP_CLOSING = 11,
1: + BPF_TCP_NEW_SYN_RECV = 12,
1: + BPF_TCP_MAX_STATES = 13,
1: +};
1: +
1: +enum inet_csk_ack_state_t {
1: + ICSK_ACK_SCHED = 1,
1: + ICSK_ACK_TIMER = 2,
1: + ICSK_ACK_PUSHED = 4,
1: + ICSK_ACK_PUSHED2 = 8,
1: + ICSK_ACK_NOW = 16,
1: +};
1: +
1: +enum {
1: + TCP_FLAG_CWR = 32768,
1: + TCP_FLAG_ECE = 16384,
1: + TCP_FLAG_URG = 8192,
1: + TCP_FLAG_ACK = 4096,
1: + TCP_FLAG_PSH = 2048,
1: + TCP_FLAG_RST = 1024,
1: + TCP_FLAG_SYN = 512,
1: + TCP_FLAG_FIN = 256,
1: + TCP_RESERVED_BITS = 15,
1: + TCP_DATA_OFFSET = 240,
1: +};
1: +
1: +struct tcp_repair_opt {
1: + __u32 opt_code;
1: + __u32 opt_val;
1: +};
1: +
1: +struct tcp_repair_window {
1: + __u32 snd_wl1;
1: + __u32 snd_wnd;
1: + __u32 max_window;
1: + __u32 rcv_wnd;
1: + __u32 rcv_wup;
1: +};
1: +
1: +enum {
1: + TCP_NO_QUEUE = 0,
1: + TCP_RECV_QUEUE = 1,
1: + TCP_SEND_QUEUE = 2,
1: + TCP_QUEUES_NR = 3,
1: +};
1: +
1: +struct tcp_info {
1: + __u8 tcpi_state;
1: + __u8 tcpi_ca_state;
1: + __u8 tcpi_retransmits;
1: + __u8 tcpi_probes;
1: + __u8 tcpi_backoff;
1: + __u8 tcpi_options;
1: + __u8 tcpi_snd_wscale: 4;
1: + __u8 tcpi_rcv_wscale: 4;
1: + __u8 tcpi_delivery_rate_app_limited: 1;
1: + __u8 tcpi_fastopen_client_fail: 2;
1: + __u32 tcpi_rto;
1: + __u32 tcpi_ato;
1: + __u32 tcpi_snd_mss;
1: + __u32 tcpi_rcv_mss;
1: + __u32 tcpi_unacked;
1: + __u32 tcpi_sacked;
1: + __u32 tcpi_lost;
1: + __u32 tcpi_retrans;
1: + __u32 tcpi_fackets;
1: + __u32 tcpi_last_data_sent;
1: + __u32 tcpi_last_ack_sent;
1: + __u32 tcpi_last_data_recv;
1: + __u32 tcpi_last_ack_recv;
1: + __u32 tcpi_pmtu;
1: + __u32 tcpi_rcv_ssthresh;
1: + __u32 tcpi_rtt;
1: + __u32 tcpi_rttvar;
1: + __u32 tcpi_snd_ssthresh;
1: + __u32 tcpi_snd_cwnd;
1: + __u32 tcpi_advmss;
1: + __u32 tcpi_reordering;
1: + __u32 tcpi_rcv_rtt;
1: + __u32 tcpi_rcv_space;
1: + __u32 tcpi_total_retrans;
1: + __u64 tcpi_pacing_rate;
1: + __u64 tcpi_max_pacing_rate;
1: + __u64 tcpi_bytes_acked;
1: + __u64 tcpi_bytes_received;
1: + __u32 tcpi_segs_out;
1: + __u32 tcpi_segs_in;
1: + __u32 tcpi_notsent_bytes;
1: + __u32 tcpi_min_rtt;
1: + __u32 tcpi_data_segs_in;
1: + __u32 tcpi_data_segs_out;
1: + __u64 tcpi_delivery_rate;
1: + __u64 tcpi_busy_time;
1: + __u64 tcpi_rwnd_limited;
1: + __u64 tcpi_sndbuf_limited;
1: + __u32 tcpi_delivered;
1: + __u32 tcpi_delivered_ce;
1: + __u64 tcpi_bytes_sent;
1: + __u64 tcpi_bytes_retrans;
1: + __u32 tcpi_dsack_dups;
1: + __u32 tcpi_reord_seen;
1: + __u32 tcpi_rcv_ooopack;
1: + __u32 tcpi_snd_wnd;
1: +};
1: +
1: +enum {
1: + TCP_NLA_PAD = 0,
1: + TCP_NLA_BUSY = 1,
1: + TCP_NLA_RWND_LIMITED = 2,
1: + TCP_NLA_SNDBUF_LIMITED = 3,
1: + TCP_NLA_DATA_SEGS_OUT = 4,
1: + TCP_NLA_TOTAL_RETRANS = 5,
1: + TCP_NLA_PACING_RATE = 6,
1: + TCP_NLA_DELIVERY_RATE = 7,
1: + TCP_NLA_SND_CWND = 8,
1: + TCP_NLA_REORDERING = 9,
1: + TCP_NLA_MIN_RTT = 10,
1: + TCP_NLA_RECUR_RETRANS = 11,
1: + TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
1: + TCP_NLA_SNDQ_SIZE = 13,
1: + TCP_NLA_CA_STATE = 14,
1: + TCP_NLA_SND_SSTHRESH = 15,
1: + TCP_NLA_DELIVERED = 16,
1: + TCP_NLA_DELIVERED_CE = 17,
1: + TCP_NLA_BYTES_SENT = 18,
1: + TCP_NLA_BYTES_RETRANS = 19,
1: + TCP_NLA_DSACK_DUPS = 20,
1: + TCP_NLA_REORD_SEEN = 21,
1: + TCP_NLA_SRTT = 22,
1: + TCP_NLA_TIMEOUT_REHASH = 23,
1: + TCP_NLA_BYTES_NOTSENT = 24,
1: + TCP_NLA_EDT = 25,
1: +};
1: +
1: +struct tcp_zerocopy_receive {
1: + __u64 address;
1: + __u32 length;
1: + __u32 recv_skip_hint;
1: + __u32 inq;
1: + __s32 err;
1: +};
1: +
1: +struct tcp_md5sig_pool {
1: + struct ahash_request *md5_req;
1: + void *scratch;
1: +};
1: +
1: +enum tcp_chrono {
1: + TCP_CHRONO_UNSPEC = 0,
1: + TCP_CHRONO_BUSY = 1,
1: + TCP_CHRONO_RWND_LIMITED = 2,
1: + TCP_CHRONO_SNDBUF_LIMITED = 3,
1: + __TCP_CHRONO_MAX = 4,
1: +};
1: +
1: +struct tcp_splice_state {
1: + struct pipe_inode_info *pipe;
1: + size_t len;
1: + unsigned int flags;
1: +};
1: +
1: +enum tcp_fastopen_client_fail {
1: + TFO_STATUS_UNSPEC = 0,
1: + TFO_COOKIE_UNAVAILABLE = 1,
1: + TFO_DATA_NOT_ACKED = 2,
1: + TFO_SYN_RETRANSMITTED = 3,
1: +};
1: +
1: +struct tcp_sack_block_wire {
1: + __be32 start_seq;
1: + __be32 end_seq;
1: +};
1: +
1: +struct static_key_false_deferred {
1: + struct static_key_false key;
1: + long unsigned int timeout;
1: + struct delayed_work work;
1: +};
1: +
1: +struct mptcp_ext {
1: + union {
1: + u64 data_ack;
1: + u32 data_ack32;
1: + };
1: + u64 data_seq;
1: + u32 subflow_seq;
1: + u16 data_len;
1: + u8 use_map: 1;
1: + u8 dsn64: 1;
1: + u8 data_fin: 1;
1: + u8 use_ack: 1;
1: + u8 ack64: 1;
1: + u8 mpc_map: 1;
1: + u8 __unused: 2;
1: +};
1: +
1: +enum tcp_queue {
1: + TCP_FRAG_IN_WRITE_QUEUE = 0,
1: + TCP_FRAG_IN_RTX_QUEUE = 1,
1: +};
1: +
1: +enum tcp_ca_ack_event_flags {
1: + CA_ACK_SLOWPATH = 1,
1: + CA_ACK_WIN_UPDATE = 2,
1: + CA_ACK_ECE = 4,
1: +};
1: +
1: +struct tcp_sacktag_state {
1: + u64 first_sackt;
1: + u64 last_sackt;
1: + u32 reord;
1: + u32 sack_delivered;
1: + int flag;
1: + unsigned int mss_now;
1: + struct rate_sample *rate;
1: +};
1: +
1: +enum pkt_hash_types {
1: + PKT_HASH_TYPE_NONE = 0,
1: + PKT_HASH_TYPE_L2 = 1,
1: + PKT_HASH_TYPE_L3 = 2,
1: + PKT_HASH_TYPE_L4 = 3,
1: +};
1: +
1: +enum {
1: + BPF_WRITE_HDR_TCP_CURRENT_MSS = 1,
1: + BPF_WRITE_HDR_TCP_SYNACK_COOKIE = 2,
1: +};
1: +
1: +enum tsq_flags {
1: + TSQF_THROTTLED = 1,
1: + TSQF_QUEUED = 2,
1: + TCPF_TSQ_DEFERRED = 4,
1: + TCPF_WRITE_TIMER_DEFERRED = 8,
1: + TCPF_DELACK_TIMER_DEFERRED = 16,
1: + TCPF_MTU_REDUCED_DEFERRED = 32,
1: +};
1: +
1: +struct mptcp_out_options {
1: + u16 suboptions;
1: + u64 sndr_key;
1: + u64 rcvr_key;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: + u8 addr_id;
1: + u64 ahmac;
1: + u8 rm_id;
1: + u8 join_id;
1: + u8 backup;
1: + u32 nonce;
1: + u64 thmac;
1: + u32 token;
1: + u8 hmac[20];
1: + struct mptcp_ext ext_copy;
1: +};
1: +
1: +struct tcp_out_options {
1: + u16 options;
1: + u16 mss;
1: + u8 ws;
1: + u8 num_sack_blocks;
1: + u8 hash_size;
1: + u8 bpf_opt_len;
1: + __u8 *hash_location;
1: + __u32 tsval;
1: + __u32 tsecr;
1: + struct tcp_fastopen_cookie *fastopen_cookie;
1: + struct mptcp_out_options mptcp;
1: +};
1: +
1: +struct tsq_tasklet {
1: + struct tasklet_struct tasklet;
1: + struct list_head head;
1: +};
1: +
1: +struct tcp_md5sig {
1: + struct __kernel_sockaddr_storage tcpm_addr;
1: + __u8 tcpm_flags;
1: + __u8 tcpm_prefixlen;
1: + __u16 tcpm_keylen;
1: + int tcpm_ifindex;
1: + __u8 tcpm_key[80];
1: +};
1: +
1: +struct icmp_err {
1: + int errno;
1: + unsigned int fatal: 1;
1: +};
1: +
1: +enum tcp_tw_status {
1: + TCP_TW_SUCCESS = 0,
1: + TCP_TW_RST = 1,
1: + TCP_TW_ACK = 2,
1: + TCP_TW_SYN = 3,
1: +};
1: +
1: +struct tcp4_pseudohdr {
1: + __be32 saddr;
1: + __be32 daddr;
1: + __u8 pad;
1: + __u8 protocol;
1: + __be16 len;
1: +};
1: +
1: +enum tcp_seq_states {
1: + TCP_SEQ_STATE_LISTENING = 0,
1: + TCP_SEQ_STATE_ESTABLISHED = 1,
1: +};
1: +
1: +struct tcp_seq_afinfo {
1: + sa_family_t family;
1: +};
1: +
1: +struct tcp_iter_state {
1: + struct seq_net_private p;
1: + enum tcp_seq_states state;
1: + struct sock *syn_wait_sk;
1: + struct tcp_seq_afinfo *bpf_seq_afinfo;
1: + int bucket;
1: + int offset;
1: + int sbucket;
1: + int num;
1: + loff_t last_pos;
1: +};
1: +
1: +struct bpf_iter__tcp {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct sock_common *sk_common;
1: + };
1: + uid_t uid;
1: +};
1: +
1: +enum tcp_metric_index {
1: + TCP_METRIC_RTT = 0,
1: + TCP_METRIC_RTTVAR = 1,
1: + TCP_METRIC_SSTHRESH = 2,
1: + TCP_METRIC_CWND = 3,
1: + TCP_METRIC_REORDERING = 4,
1: + TCP_METRIC_RTT_US = 5,
1: + TCP_METRIC_RTTVAR_US = 6,
1: + __TCP_METRIC_MAX = 7,
1: +};
1: +
1: +enum {
1: + TCP_METRICS_ATTR_UNSPEC = 0,
1: + TCP_METRICS_ATTR_ADDR_IPV4 = 1,
1: + TCP_METRICS_ATTR_ADDR_IPV6 = 2,
1: + TCP_METRICS_ATTR_AGE = 3,
1: + TCP_METRICS_ATTR_TW_TSVAL = 4,
1: + TCP_METRICS_ATTR_TW_TS_STAMP = 5,
1: + TCP_METRICS_ATTR_VALS = 6,
1: + TCP_METRICS_ATTR_FOPEN_MSS = 7,
1: + TCP_METRICS_ATTR_FOPEN_SYN_DROPS = 8,
1: + TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS = 9,
1: + TCP_METRICS_ATTR_FOPEN_COOKIE = 10,
1: + TCP_METRICS_ATTR_SADDR_IPV4 = 11,
1: + TCP_METRICS_ATTR_SADDR_IPV6 = 12,
1: + TCP_METRICS_ATTR_PAD = 13,
1: + __TCP_METRICS_ATTR_MAX = 14,
1: +};
1: +
1: +enum {
1: + TCP_METRICS_CMD_UNSPEC = 0,
1: + TCP_METRICS_CMD_GET = 1,
1: + TCP_METRICS_CMD_DEL = 2,
1: + __TCP_METRICS_CMD_MAX = 3,
1: +};
1: +
1: +struct tcp_fastopen_metrics {
1: + u16 mss;
1: + u16 syn_loss: 10;
1: + u16 try_exp: 2;
1: + long unsigned int last_syn_loss;
1: + struct tcp_fastopen_cookie cookie;
1: +};
1: +
1: +struct tcp_metrics_block {
1: + struct tcp_metrics_block *tcpm_next;
1: + possible_net_t tcpm_net;
1: + struct inetpeer_addr tcpm_saddr;
1: + struct inetpeer_addr tcpm_daddr;
1: + long unsigned int tcpm_stamp;
1: + u32 tcpm_lock;
1: + u32 tcpm_vals[5];
1: + struct tcp_fastopen_metrics tcpm_fastopen;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct tcpm_hash_bucket {
1: + struct tcp_metrics_block *chain;
1: +};
1: +
1: +struct icmp_filter {
1: + __u32 data;
1: +};
1: +
1: +struct raw_iter_state {
1: + struct seq_net_private p;
1: + int bucket;
1: +};
1: +
1: +struct raw_sock {
1: + struct inet_sock inet;
1: + struct icmp_filter filter;
1: + u32 ipmr_table;
1: +};
1: +
1: +struct raw_frag_vec {
1: + struct msghdr *msg;
1: + union {
1: + struct icmphdr icmph;
1: + char c[1];
1: + } hdr;
1: + int hlen;
1: +};
1: +
1: +struct ip_tunnel_encap {
1: + u16 type;
1: + u16 flags;
1: + __be16 sport;
1: + __be16 dport;
1: +};
1: +
1: +struct ip_tunnel_encap_ops {
1: + size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: + int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *, struct flowi4 *);
1: + int (*err_handler)(struct sk_buff *, u32);
1: +};
1: +
1: +struct udp_skb_cb {
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + __u16 cscov;
1: + __u8 partial_cov;
1: +};
1: +
1: +struct udp_dev_scratch {
1: + u32 _tsize_state;
1: + u16 len;
1: + bool is_linear;
1: + bool csum_unnecessary;
1: +};
1: +
1: +struct udp_seq_afinfo {
1: + sa_family_t family;
1: + struct udp_table *udp_table;
1: +};
1: +
1: +struct udp_iter_state {
1: + struct seq_net_private p;
1: + int bucket;
1: + struct udp_seq_afinfo *bpf_seq_afinfo;
1: +};
1: +
1: +struct bpf_iter__udp {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct udp_sock *udp_sk;
1: + };
1: + uid_t uid;
1: + int: 32;
1: + int bucket;
1: +};
1: +
1: +struct inet_protosw {
1: + struct list_head list;
1: + short unsigned int type;
1: + short unsigned int protocol;
1: + struct proto *prot;
1: + const struct proto_ops *ops;
1: + unsigned char flags;
1: +};
1: +
1: +typedef struct sk_buff * (*gro_receive_sk_t)(struct sock *, struct list_head *, struct sk_buff *);
1: +
1: +typedef struct sock * (*udp_lookup_t)(struct sk_buff *, __be16, __be16);
1: +
1: +struct arpreq {
1: + struct sockaddr arp_pa;
1: + struct sockaddr arp_ha;
1: + int arp_flags;
1: + struct sockaddr arp_netmask;
1: + char arp_dev[16];
1: +};
1: +
1: +typedef struct {
1: + char ax25_call[7];
1: +} ax25_address;
1: +
1: +enum {
1: + AX25_VALUES_IPDEFMODE = 0,
1: + AX25_VALUES_AXDEFMODE = 1,
1: + AX25_VALUES_BACKOFF = 2,
1: + AX25_VALUES_CONMODE = 3,
1: + AX25_VALUES_WINDOW = 4,
1: + AX25_VALUES_EWINDOW = 5,
1: + AX25_VALUES_T1 = 6,
1: + AX25_VALUES_T2 = 7,
1: + AX25_VALUES_T3 = 8,
1: + AX25_VALUES_IDLE = 9,
1: + AX25_VALUES_N2 = 10,
1: + AX25_VALUES_PACLEN = 11,
1: + AX25_VALUES_PROTOCOL = 12,
1: + AX25_VALUES_DS_TIMEOUT = 13,
1: + AX25_MAX_VALUES = 14,
1: +};
1: +
1: +enum ip_conntrack_status {
1: + IPS_EXPECTED_BIT = 0,
1: + IPS_EXPECTED = 1,
1: + IPS_SEEN_REPLY_BIT = 1,
1: + IPS_SEEN_REPLY = 2,
1: + IPS_ASSURED_BIT = 2,
1: + IPS_ASSURED = 4,
1: + IPS_CONFIRMED_BIT = 3,
1: + IPS_CONFIRMED = 8,
1: + IPS_SRC_NAT_BIT = 4,
1: + IPS_SRC_NAT = 16,
1: + IPS_DST_NAT_BIT = 5,
1: + IPS_DST_NAT = 32,
1: + IPS_NAT_MASK = 48,
1: + IPS_SEQ_ADJUST_BIT = 6,
1: + IPS_SEQ_ADJUST = 64,
1: + IPS_SRC_NAT_DONE_BIT = 7,
1: + IPS_SRC_NAT_DONE = 128,
1: + IPS_DST_NAT_DONE_BIT = 8,
1: + IPS_DST_NAT_DONE = 256,
1: + IPS_NAT_DONE_MASK = 384,
1: + IPS_DYING_BIT = 9,
1: + IPS_DYING = 512,
1: + IPS_FIXED_TIMEOUT_BIT = 10,
1: + IPS_FIXED_TIMEOUT = 1024,
1: + IPS_TEMPLATE_BIT = 11,
1: + IPS_TEMPLATE = 2048,
1: + IPS_UNTRACKED_BIT = 12,
1: + IPS_UNTRACKED = 4096,
1: + IPS_NAT_CLASH_BIT = 12,
1: + IPS_NAT_CLASH = 4096,
1: + IPS_HELPER_BIT = 13,
1: + IPS_HELPER = 8192,
1: + IPS_OFFLOAD_BIT = 14,
1: + IPS_OFFLOAD = 16384,
1: + IPS_HW_OFFLOAD_BIT = 15,
1: + IPS_HW_OFFLOAD = 32768,
1: + IPS_UNCHANGEABLE_MASK = 56313,
1: + __IPS_MAX_BIT = 16,
1: +};
1: +
1: +enum {
1: + XFRM_LOOKUP_ICMP = 1,
1: + XFRM_LOOKUP_QUEUE = 2,
1: + XFRM_LOOKUP_KEEP_DST_REF = 4,
1: +};
1: +
1: +struct icmp_ext_hdr {
1: + __u8 reserved1: 4;
1: + __u8 version: 4;
1: + __u8 reserved2;
1: + __sum16 checksum;
1: +};
1: +
1: +struct icmp_extobj_hdr {
1: + __be16 length;
1: + __u8 class_num;
1: + __u8 class_type;
1: +};
1: +
1: +struct icmp_bxm {
1: + struct sk_buff *skb;
1: + int offset;
1: + int data_len;
1: + struct {
1: + struct icmphdr icmph;
1: + __be32 times[3];
1: + } data;
1: + int head_len;
1: + struct ip_options_data replyopts;
1: +};
1: +
1: +struct icmp_control {
1: + bool (*handler)(struct sk_buff *);
1: + short int error;
1: +};
1: +
1: +struct ifaddrmsg {
1: + __u8 ifa_family;
1: + __u8 ifa_prefixlen;
1: + __u8 ifa_flags;
1: + __u8 ifa_scope;
1: + __u32 ifa_index;
1: +};
1: +
1: +enum {
1: + IFA_UNSPEC = 0,
1: + IFA_ADDRESS = 1,
1: + IFA_LOCAL = 2,
1: + IFA_LABEL = 3,
1: + IFA_BROADCAST = 4,
1: + IFA_ANYCAST = 5,
1: + IFA_CACHEINFO = 6,
1: + IFA_MULTICAST = 7,
1: + IFA_FLAGS = 8,
1: + IFA_RT_PRIORITY = 9,
1: + IFA_TARGET_NETNSID = 10,
1: + __IFA_MAX = 11,
1: +};
1: +
1: +struct ifa_cacheinfo {
1: + __u32 ifa_prefered;
1: + __u32 ifa_valid;
1: + __u32 cstamp;
1: + __u32 tstamp;
1: +};
1: +
1: +enum {
1: + IFLA_INET_UNSPEC = 0,
1: + IFLA_INET_CONF = 1,
1: + __IFLA_INET_MAX = 2,
1: +};
1: +
1: +struct in_validator_info {
1: + __be32 ivi_addr;
1: + struct in_device *ivi_dev;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct netconfmsg {
1: + __u8 ncm_family;
1: +};
1: +
1: +enum {
1: + NETCONFA_UNSPEC = 0,
1: + NETCONFA_IFINDEX = 1,
1: + NETCONFA_FORWARDING = 2,
1: + NETCONFA_RP_FILTER = 3,
1: + NETCONFA_MC_FORWARDING = 4,
1: + NETCONFA_PROXY_NEIGH = 5,
1: + NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN = 6,
1: + NETCONFA_INPUT = 7,
1: + NETCONFA_BC_FORWARDING = 8,
1: + __NETCONFA_MAX = 9,
1: +};
1: +
1: +struct inet_fill_args {
1: + u32 portid;
1: + u32 seq;
1: + int event;
1: + unsigned int flags;
1: + int netnsid;
1: + int ifindex;
1: +};
1: +
1: +struct devinet_sysctl_table {
1: + struct ctl_table_header *sysctl_header;
1: + struct ctl_table devinet_vars[33];
1: +};
1: +
1: +struct rtentry {
1: + long unsigned int rt_pad1;
1: + struct sockaddr rt_dst;
1: + struct sockaddr rt_gateway;
1: + struct sockaddr rt_genmask;
1: + short unsigned int rt_flags;
1: + short int rt_pad2;
1: + long unsigned int rt_pad3;
1: + void *rt_pad4;
1: + short int rt_metric;
1: + char *rt_dev;
1: + long unsigned int rt_mtu;
1: + long unsigned int rt_window;
1: + short unsigned int rt_irtt;
1: +};
1: +
1: +struct pingv6_ops {
1: + int (*ipv6_recv_error)(struct sock *, struct msghdr *, int, int *);
1: + void (*ip6_datagram_recv_common_ctl)(struct sock *, struct msghdr *, struct sk_buff *);
1: + void (*ip6_datagram_recv_specific_ctl)(struct sock *, struct msghdr *, struct sk_buff *);
1: + int (*icmpv6_err_convert)(u8, u8, int *);
1: + void (*ipv6_icmp_error)(struct sock *, struct sk_buff *, int, __be16, u32, u8 *);
1: + int (*ipv6_chk_addr)(struct net *, const struct in6_addr *, const struct net_device *, int);
1: +};
1: +
1: +struct compat_rtentry {
1: + u32 rt_pad1;
1: + struct sockaddr rt_dst;
1: + struct sockaddr rt_gateway;
1: + struct sockaddr rt_genmask;
1: + short unsigned int rt_flags;
1: + short int rt_pad2;
1: + u32 rt_pad3;
1: + unsigned char rt_tos;
1: + unsigned char rt_class;
1: + short int rt_pad4;
1: + short int rt_metric;
1: + compat_uptr_t rt_dev;
1: + u32 rt_mtu;
1: + u32 rt_window;
1: + short unsigned int rt_irtt;
1: +};
1: +
1: +struct igmphdr {
1: + __u8 type;
1: + __u8 code;
1: + __sum16 csum;
1: + __be32 group;
1: +};
1: +
1: +struct igmpv3_grec {
1: + __u8 grec_type;
1: + __u8 grec_auxwords;
1: + __be16 grec_nsrcs;
1: + __be32 grec_mca;
1: + __be32 grec_src[0];
1: +};
1: +
1: +struct igmpv3_report {
1: + __u8 type;
1: + __u8 resv1;
1: + __sum16 csum;
1: + __be16 resv2;
1: + __be16 ngrec;
1: + struct igmpv3_grec grec[0];
1: +};
1: +
1: +struct igmpv3_query {
1: + __u8 type;
1: + __u8 code;
1: + __sum16 csum;
1: + __be32 group;
1: + __u8 qrv: 3;
1: + __u8 suppress: 1;
1: + __u8 resv: 4;
1: + __u8 qqic;
1: + __be16 nsrcs;
1: + __be32 srcs[0];
1: +};
1: +
1: +struct igmp_mc_iter_state {
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct in_device *in_dev;
1: +};
1: +
1: +struct igmp_mcf_iter_state {
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct in_device *idev;
1: + struct ip_mc_list *im;
1: +};
1: +
1: +struct fib_config {
1: + u8 fc_dst_len;
1: + u8 fc_tos;
1: + u8 fc_protocol;
1: + u8 fc_scope;
1: + u8 fc_type;
1: + u8 fc_gw_family;
1: + u32 fc_table;
1: + __be32 fc_dst;
1: + union {
1: + __be32 fc_gw4;
1: + struct in6_addr fc_gw6;
1: + };
1: + int fc_oif;
1: + u32 fc_flags;
1: + u32 fc_priority;
1: + __be32 fc_prefsrc;
1: + u32 fc_nh_id;
1: + struct nlattr *fc_mx;
1: + struct rtnexthop *fc_mp;
1: + int fc_mx_len;
1: + int fc_mp_len;
1: + u32 fc_flow;
1: + u32 fc_nlflags;
1: + struct nl_info fc_nlinfo;
1: + struct nlattr *fc_encap;
1: + u16 fc_encap_type;
1: +};
1: +
1: +struct fib_result_nl {
1: + __be32 fl_addr;
1: + u32 fl_mark;
1: + unsigned char fl_tos;
1: + unsigned char fl_scope;
1: + unsigned char tb_id_in;
1: + unsigned char tb_id;
1: + unsigned char prefixlen;
1: + unsigned char nh_sel;
1: + unsigned char type;
1: + unsigned char scope;
1: + int err;
1: +};
1: +
1: +struct fib_dump_filter {
1: + u32 table_id;
1: + bool filter_set;
1: + bool dump_routes;
1: + bool dump_exceptions;
1: + unsigned char protocol;
1: + unsigned char rt_type;
1: + unsigned int flags;
1: + struct net_device *dev;
1: +};
1: +
1: +struct fib_nh_notifier_info {
1: + struct fib_notifier_info info;
1: + struct fib_nh *fib_nh;
1: +};
1: +
1: +struct fib_entry_notifier_info {
1: + struct fib_notifier_info info;
1: + u32 dst;
1: + int dst_len;
1: + struct fib_info *fi;
1: + u8 tos;
1: + u8 type;
1: + u32 tb_id;
1: +};
1: +
1: +typedef unsigned int t_key;
1: +
1: +struct key_vector {
1: + t_key key;
1: + unsigned char pos;
1: + unsigned char bits;
1: + unsigned char slen;
1: + union {
1: + struct hlist_head leaf;
1: + struct key_vector *tnode[0];
1: + };
1: +};
1: +
1: +struct tnode {
1: + struct callback_head rcu;
1: + t_key empty_children;
1: + t_key full_children;
1: + struct key_vector *parent;
1: + struct key_vector kv[1];
1: +};
1: +
1: +struct trie_use_stats {
1: + unsigned int gets;
1: + unsigned int backtrack;
1: + unsigned int semantic_match_passed;
1: + unsigned int semantic_match_miss;
1: + unsigned int null_node_hit;
1: + unsigned int resize_node_skipped;
1: +};
1: +
1: +struct trie_stat {
1: + unsigned int totdepth;
1: + unsigned int maxdepth;
1: + unsigned int tnodes;
1: + unsigned int leaves;
1: + unsigned int nullpointers;
1: + unsigned int prefixes;
1: + unsigned int nodesizes[32];
1: +};
1: +
1: +struct trie {
1: + struct key_vector kv[1];
1: + struct trie_use_stats *stats;
1: +};
1: +
1: +struct fib_trie_iter {
1: + struct seq_net_private p;
1: + struct fib_table *tb;
1: + struct key_vector *tnode;
1: + unsigned int index;
1: + unsigned int depth;
1: +};
1: +
1: +struct fib_route_iter {
1: + struct seq_net_private p;
1: + struct fib_table *main_tb;
1: + struct key_vector *tnode;
1: + loff_t pos;
1: + t_key key;
1: +};
1: +
1: +struct ipfrag_skb_cb {
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + };
1: + struct sk_buff *next_frag;
1: + int frag_run_len;
1: +};
1: +
1: +struct icmpv6_echo {
1: + __be16 identifier;
1: + __be16 sequence;
1: +};
1: +
1: +struct icmpv6_nd_advt {
1: + __u32 reserved: 5;
1: + __u32 override: 1;
1: + __u32 solicited: 1;
1: + __u32 router: 1;
1: + __u32 reserved2: 24;
1: +};
1: +
1: +struct icmpv6_nd_ra {
1: + __u8 hop_limit;
1: + __u8 reserved: 3;
1: + __u8 router_pref: 2;
1: + __u8 home_agent: 1;
1: + __u8 other: 1;
1: + __u8 managed: 1;
1: + __be16 rt_lifetime;
1: +};
1: +
1: +struct icmp6hdr {
1: + __u8 icmp6_type;
1: + __u8 icmp6_code;
1: + __sum16 icmp6_cksum;
1: + union {
1: + __be32 un_data32[1];
1: + __be16 un_data16[2];
1: + __u8 un_data8[4];
1: + struct icmpv6_echo u_echo;
1: + struct icmpv6_nd_advt u_nd_advt;
1: + struct icmpv6_nd_ra u_nd_ra;
1: + } icmp6_dataun;
1: +};
1: +
1: +struct ping_iter_state {
1: + struct seq_net_private p;
1: + int bucket;
1: + sa_family_t family;
1: +};
1: +
1: +struct pingfakehdr {
1: + struct icmphdr icmph;
1: + struct msghdr *msg;
1: + sa_family_t family;
1: + __wsum wcheck;
1: +};
1: +
1: +struct ping_table {
1: + struct hlist_nulls_head hash[64];
1: + rwlock_t lock;
1: +};
1: +
1: +enum lwtunnel_ip_t {
1: + LWTUNNEL_IP_UNSPEC = 0,
1: + LWTUNNEL_IP_ID = 1,
1: + LWTUNNEL_IP_DST = 2,
1: + LWTUNNEL_IP_SRC = 3,
1: + LWTUNNEL_IP_TTL = 4,
1: + LWTUNNEL_IP_TOS = 5,
1: + LWTUNNEL_IP_FLAGS = 6,
1: + LWTUNNEL_IP_PAD = 7,
1: + LWTUNNEL_IP_OPTS = 8,
1: + __LWTUNNEL_IP_MAX = 9,
1: +};
1: +
1: +enum lwtunnel_ip6_t {
1: + LWTUNNEL_IP6_UNSPEC = 0,
1: + LWTUNNEL_IP6_ID = 1,
1: + LWTUNNEL_IP6_DST = 2,
1: + LWTUNNEL_IP6_SRC = 3,
1: + LWTUNNEL_IP6_HOPLIMIT = 4,
1: + LWTUNNEL_IP6_TC = 5,
1: + LWTUNNEL_IP6_FLAGS = 6,
1: + LWTUNNEL_IP6_PAD = 7,
1: + LWTUNNEL_IP6_OPTS = 8,
1: + __LWTUNNEL_IP6_MAX = 9,
1: +};
1: +
1: +enum {
1: + LWTUNNEL_IP_OPTS_UNSPEC = 0,
1: + LWTUNNEL_IP_OPTS_GENEVE = 1,
1: + LWTUNNEL_IP_OPTS_VXLAN = 2,
1: + LWTUNNEL_IP_OPTS_ERSPAN = 3,
1: + __LWTUNNEL_IP_OPTS_MAX = 4,
1: +};
1: +
1: +enum {
1: + LWTUNNEL_IP_OPT_GENEVE_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_GENEVE_CLASS = 1,
1: + LWTUNNEL_IP_OPT_GENEVE_TYPE = 2,
1: + LWTUNNEL_IP_OPT_GENEVE_DATA = 3,
1: + __LWTUNNEL_IP_OPT_GENEVE_MAX = 4,
1: +};
1: +
1: +enum {
1: + LWTUNNEL_IP_OPT_VXLAN_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_VXLAN_GBP = 1,
1: + __LWTUNNEL_IP_OPT_VXLAN_MAX = 2,
1: +};
1: +
1: +enum {
1: + LWTUNNEL_IP_OPT_ERSPAN_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_ERSPAN_VER = 1,
1: + LWTUNNEL_IP_OPT_ERSPAN_INDEX = 2,
1: + LWTUNNEL_IP_OPT_ERSPAN_DIR = 3,
1: + LWTUNNEL_IP_OPT_ERSPAN_HWID = 4,
1: + __LWTUNNEL_IP_OPT_ERSPAN_MAX = 5,
1: +};
1: +
1: +struct ip6_tnl_encap_ops {
1: + size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: + int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *, struct flowi6 *);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: +};
1: +
1: +struct geneve_opt {
1: + __be16 opt_class;
1: + u8 type;
1: + u8 length: 5;
1: + u8 r3: 1;
1: + u8 r2: 1;
1: + u8 r1: 1;
1: + u8 opt_data[0];
1: +};
1: +
1: +struct vxlan_metadata {
1: + u32 gbp;
1: +};
1: +
1: +struct erspan_md2 {
1: + __be32 timestamp;
1: + __be16 sgt;
1: + __u8 hwid_upper: 2;
1: + __u8 ft: 5;
1: + __u8 p: 1;
1: + __u8 o: 1;
1: + __u8 gra: 2;
1: + __u8 dir: 1;
1: + __u8 hwid: 4;
1: +};
1: +
1: +struct erspan_metadata {
1: + int version;
1: + union {
1: + __be32 index;
1: + struct erspan_md2 md2;
1: + } u;
1: +};
1: +
1: +struct nhmsg {
1: + unsigned char nh_family;
1: + unsigned char nh_scope;
1: + unsigned char nh_protocol;
1: + unsigned char resvd;
1: + unsigned int nh_flags;
1: +};
1: +
1: +struct nexthop_grp {
1: + __u32 id;
1: + __u8 weight;
1: + __u8 resvd1;
1: + __u16 resvd2;
1: +};
1: +
1: +enum {
1: + NEXTHOP_GRP_TYPE_MPATH = 0,
1: + __NEXTHOP_GRP_TYPE_MAX = 1,
1: +};
1: +
1: +enum {
1: + NHA_UNSPEC = 0,
1: + NHA_ID = 1,
1: + NHA_GROUP = 2,
1: + NHA_GROUP_TYPE = 3,
1: + NHA_BLACKHOLE = 4,
1: + NHA_OIF = 5,
1: + NHA_GATEWAY = 6,
1: + NHA_ENCAP_TYPE = 7,
1: + NHA_ENCAP = 8,
1: + NHA_GROUPS = 9,
1: + NHA_MASTER = 10,
1: + NHA_FDB = 11,
1: + __NHA_MAX = 12,
1: +};
1: +
1: +struct nh_config {
1: + u32 nh_id;
1: + u8 nh_family;
1: + u8 nh_protocol;
1: + u8 nh_blackhole;
1: + u8 nh_fdb;
1: + u32 nh_flags;
1: + int nh_ifindex;
1: + struct net_device *dev;
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } gw;
1: + struct nlattr *nh_grp;
1: + u16 nh_grp_type;
1: + struct nlattr *nh_encap;
1: + u16 nh_encap_type;
1: + u32 nlflags;
1: + struct nl_info nlinfo;
1: +};
1: +
1: +enum nexthop_event_type {
1: + NEXTHOP_EVENT_DEL = 0,
1: +};
1: +
1: +struct bpfilter_umh_ops {
1: + struct umd_info info;
1: + struct mutex lock;
1: + int (*sockopt)(struct sock *, int, sockptr_t, unsigned int, bool);
1: + int (*start)();
1: +};
1: +
1: +struct inet6_protocol {
1: + void (*early_demux)(struct sk_buff *);
1: + void (*early_demux_handler)(struct sk_buff *);
1: + int (*handler)(struct sk_buff *);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: + unsigned int flags;
1: +};
1: +
1: +struct snmp_mib {
1: + const char *name;
1: + int entry;
1: +};
1: +
1: +struct fib4_rule {
1: + struct fib_rule common;
1: + u8 dst_len;
1: + u8 src_len;
1: + u8 tos;
1: + __be32 src;
1: + __be32 srcmask;
1: + __be32 dst;
1: + __be32 dstmask;
1: + u32 tclassid;
1: +};
1: +
1: +enum {
1: + PIM_TYPE_HELLO = 0,
1: + PIM_TYPE_REGISTER = 1,
1: + PIM_TYPE_REGISTER_STOP = 2,
1: + PIM_TYPE_JOIN_PRUNE = 3,
1: + PIM_TYPE_BOOTSTRAP = 4,
1: + PIM_TYPE_ASSERT = 5,
1: + PIM_TYPE_GRAFT = 6,
1: + PIM_TYPE_GRAFT_ACK = 7,
1: + PIM_TYPE_CANDIDATE_RP_ADV = 8,
1: +};
1: +
1: +struct pimreghdr {
1: + __u8 type;
1: + __u8 reserved;
1: + __be16 csum;
1: + __be32 flags;
1: +};
1: +
1: +typedef short unsigned int vifi_t;
1: +
1: +struct vifctl {
1: + vifi_t vifc_vifi;
1: + unsigned char vifc_flags;
1: + unsigned char vifc_threshold;
1: + unsigned int vifc_rate_limit;
1: + union {
1: + struct in_addr vifc_lcl_addr;
1: + int vifc_lcl_ifindex;
1: + };
1: + struct in_addr vifc_rmt_addr;
1: +};
1: +
1: +struct mfcctl {
1: + struct in_addr mfcc_origin;
1: + struct in_addr mfcc_mcastgrp;
1: + vifi_t mfcc_parent;
1: + unsigned char mfcc_ttls[32];
1: + unsigned int mfcc_pkt_cnt;
1: + unsigned int mfcc_byte_cnt;
1: + unsigned int mfcc_wrong_if;
1: + int mfcc_expire;
1: +};
1: +
1: +struct sioc_sg_req {
1: + struct in_addr src;
1: + struct in_addr grp;
1: + long unsigned int pktcnt;
1: + long unsigned int bytecnt;
1: + long unsigned int wrong_if;
1: +};
1: +
1: +struct sioc_vif_req {
1: + vifi_t vifi;
1: + long unsigned int icount;
1: + long unsigned int ocount;
1: + long unsigned int ibytes;
1: + long unsigned int obytes;
1: +};
1: +
1: +struct igmpmsg {
1: + __u32 unused1;
1: + __u32 unused2;
1: + unsigned char im_msgtype;
1: + unsigned char im_mbz;
1: + unsigned char im_vif;
1: + unsigned char im_vif_hi;
1: + struct in_addr im_src;
1: + struct in_addr im_dst;
1: +};
1: +
1: +enum {
1: + IPMRA_TABLE_UNSPEC = 0,
1: + IPMRA_TABLE_ID = 1,
1: + IPMRA_TABLE_CACHE_RES_QUEUE_LEN = 2,
1: + IPMRA_TABLE_MROUTE_REG_VIF_NUM = 3,
1: + IPMRA_TABLE_MROUTE_DO_ASSERT = 4,
1: + IPMRA_TABLE_MROUTE_DO_PIM = 5,
1: + IPMRA_TABLE_VIFS = 6,
1: + IPMRA_TABLE_MROUTE_DO_WRVIFWHOLE = 7,
1: + __IPMRA_TABLE_MAX = 8,
1: +};
1: +
1: +enum {
1: + IPMRA_VIF_UNSPEC = 0,
1: + IPMRA_VIF = 1,
1: + __IPMRA_VIF_MAX = 2,
1: +};
1: +
1: +enum {
1: + IPMRA_VIFA_UNSPEC = 0,
1: + IPMRA_VIFA_IFINDEX = 1,
1: + IPMRA_VIFA_VIF_ID = 2,
1: + IPMRA_VIFA_FLAGS = 3,
1: + IPMRA_VIFA_BYTES_IN = 4,
1: + IPMRA_VIFA_BYTES_OUT = 5,
1: + IPMRA_VIFA_PACKETS_IN = 6,
1: + IPMRA_VIFA_PACKETS_OUT = 7,
1: + IPMRA_VIFA_LOCAL_ADDR = 8,
1: + IPMRA_VIFA_REMOTE_ADDR = 9,
1: + IPMRA_VIFA_PAD = 10,
1: + __IPMRA_VIFA_MAX = 11,
1: +};
1: +
1: +enum {
1: + IPMRA_CREPORT_UNSPEC = 0,
1: + IPMRA_CREPORT_MSGTYPE = 1,
1: + IPMRA_CREPORT_VIF_ID = 2,
1: + IPMRA_CREPORT_SRC_ADDR = 3,
1: + IPMRA_CREPORT_DST_ADDR = 4,
1: + IPMRA_CREPORT_PKT = 5,
1: + IPMRA_CREPORT_TABLE = 6,
1: + __IPMRA_CREPORT_MAX = 7,
1: +};
1: +
1: +struct vif_device {
1: + struct net_device *dev;
1: + long unsigned int bytes_in;
1: + long unsigned int bytes_out;
1: + long unsigned int pkt_in;
1: + long unsigned int pkt_out;
1: + long unsigned int rate_limit;
1: + unsigned char threshold;
1: + short unsigned int flags;
1: + int link;
1: + struct netdev_phys_item_id dev_parent_id;
1: + __be32 local;
1: + __be32 remote;
1: +};
1: +
1: +struct vif_entry_notifier_info {
1: + struct fib_notifier_info info;
1: + struct net_device *dev;
1: + short unsigned int vif_index;
1: + short unsigned int vif_flags;
1: + u32 tb_id;
1: +};
1: +
1: +enum {
1: + MFC_STATIC = 1,
1: + MFC_OFFLOAD = 2,
1: +};
1: +
1: +struct mr_mfc {
1: + struct rhlist_head mnode;
1: + short unsigned int mfc_parent;
1: + int mfc_flags;
1: + union {
1: + struct {
1: + long unsigned int expires;
1: + struct sk_buff_head unresolved;
1: + } unres;
1: + struct {
1: + long unsigned int last_assert;
1: + int minvif;
1: + int maxvif;
1: + long unsigned int bytes;
1: + long unsigned int pkt;
1: + long unsigned int wrong_if;
1: + long unsigned int lastuse;
1: + unsigned char ttls[32];
1: + refcount_t refcount;
1: + } res;
1: + } mfc_un;
1: + struct list_head list;
1: + struct callback_head rcu;
1: + void (*free)(struct callback_head *);
1: +};
1: +
1: +struct mfc_entry_notifier_info {
1: + struct fib_notifier_info info;
1: + struct mr_mfc *mfc;
1: + u32 tb_id;
1: +};
1: +
1: +struct mr_table_ops {
1: + const struct rhashtable_params *rht_params;
1: + void *cmparg_any;
1: +};
1: +
1: +struct mr_table {
1: + struct list_head list;
1: + possible_net_t net;
1: + struct mr_table_ops ops;
1: + u32 id;
1: + struct sock *mroute_sk;
1: + struct timer_list ipmr_expire_timer;
1: + struct list_head mfc_unres_queue;
1: + struct vif_device vif_table[32];
1: + struct rhltable mfc_hash;
1: + struct list_head mfc_cache_list;
1: + int maxvif;
1: + atomic_t cache_resolve_queue_len;
1: + bool mroute_do_assert;
1: + bool mroute_do_pim;
1: + bool mroute_do_wrvifwhole;
1: + int mroute_reg_vif_num;
1: +};
1: +
1: +struct mr_vif_iter {
1: + struct seq_net_private p;
1: + struct mr_table *mrt;
1: + int ct;
1: +};
1: +
1: +struct mr_mfc_iter {
1: + struct seq_net_private p;
1: + struct mr_table *mrt;
1: + struct list_head *cache;
1: + spinlock_t *lock;
1: +};
1: +
1: +struct mfc_cache_cmp_arg {
1: + __be32 mfc_mcastgrp;
1: + __be32 mfc_origin;
1: +};
1: +
1: +struct mfc_cache {
1: + struct mr_mfc _c;
1: + union {
1: + struct {
1: + __be32 mfc_mcastgrp;
1: + __be32 mfc_origin;
1: + };
1: + struct mfc_cache_cmp_arg cmparg;
1: + };
1: +};
1: +
1: +struct ipmr_result {
1: + struct mr_table *mrt;
1: +};
1: +
1: +struct compat_sioc_sg_req {
1: + struct in_addr src;
1: + struct in_addr grp;
1: + compat_ulong_t pktcnt;
1: + compat_ulong_t bytecnt;
1: + compat_ulong_t wrong_if;
1: +};
1: +
1: +struct compat_sioc_vif_req {
1: + vifi_t vifi;
1: + compat_ulong_t icount;
1: + compat_ulong_t ocount;
1: + compat_ulong_t ibytes;
1: + compat_ulong_t obytes;
1: +};
1: +
1: +struct rta_mfc_stats {
1: + __u64 mfcs_packets;
1: + __u64 mfcs_bytes;
1: + __u64 mfcs_wrong_if;
1: +};
1: +
1: +enum rpc_display_format_t {
1: + RPC_DISPLAY_ADDR = 0,
1: + RPC_DISPLAY_PORT = 1,
1: + RPC_DISPLAY_PROTO = 2,
1: + RPC_DISPLAY_HEX_ADDR = 3,
1: + RPC_DISPLAY_HEX_PORT = 4,
1: + RPC_DISPLAY_NETID = 5,
1: + RPC_DISPLAY_MAX = 6,
1: +};
1: +
1: +struct ic_device {
1: + struct ic_device *next;
1: + struct net_device *dev;
1: + short unsigned int flags;
1: + short int able;
1: + __be32 xid;
1: +};
1: +
1: +struct bootp_pkt {
1: + struct iphdr iph;
1: + struct udphdr udph;
1: + u8 op;
1: + u8 htype;
1: + u8 hlen;
1: + u8 hops;
1: + __be32 xid;
1: + __be16 secs;
1: + __be16 flags;
1: + __be32 client_ip;
1: + __be32 your_ip;
1: + __be32 server_ip;
1: + __be32 relay_ip;
1: + u8 hw_addr[16];
1: + u8 serv_name[64];
1: + u8 boot_file[128];
1: + u8 exten[312];
1: +};
1: +
1: +struct bictcp {
1: + u32 cnt;
1: + u32 last_max_cwnd;
1: + u32 last_cwnd;
1: + u32 last_time;
1: + u32 bic_origin_point;
1: + u32 bic_K;
1: + u32 delay_min;
1: + u32 epoch_start;
1: + u32 ack_cnt;
1: + u32 tcp_cwnd;
1: + u16 unused;
1: + u8 sample_cnt;
1: + u8 found;
1: + u32 round_start;
1: + u32 end_seq;
1: + u32 last_ack;
1: + u32 curr_rtt;
1: +};
1: +
1: +struct tls_rec {
1: + struct list_head list;
1: + int tx_ready;
1: + int tx_flags;
1: + struct sk_msg msg_plaintext;
1: + struct sk_msg msg_encrypted;
1: + struct scatterlist sg_aead_in[2];
1: + struct scatterlist sg_aead_out[2];
1: + char content_type;
1: + struct scatterlist sg_content_type;
1: + char aad_space[13];
1: + u8 iv_data[16];
1: + long: 24;
1: + long: 64;
1: + long: 64;
1: + struct aead_request aead_req;
1: + u8 aead_req_ctx[0];
1: +};
1: +
1: +struct tx_work {
1: + struct delayed_work work;
1: + struct sock *sk;
1: +};
1: +
1: +struct tls_sw_context_tx {
1: + struct crypto_aead *aead_send;
1: + struct crypto_wait async_wait;
1: + struct tx_work tx_work;
1: + struct tls_rec *open_rec;
1: + struct list_head tx_list;
1: + atomic_t encrypt_pending;
1: + spinlock_t encrypt_compl_lock;
1: + int async_notify;
1: + u8 async_capable: 1;
1: + long unsigned int tx_bitmask;
1: +};
1: +
1: +enum {
1: + TCP_BPF_IPV4 = 0,
1: + TCP_BPF_IPV6 = 1,
1: + TCP_BPF_NUM_PROTS = 2,
1: +};
1: +
1: +enum {
1: + TCP_BPF_BASE = 0,
1: + TCP_BPF_TX = 1,
1: + TCP_BPF_NUM_CFGS = 2,
1: +};
1: +
1: +enum {
1: + UDP_BPF_IPV4 = 0,
1: + UDP_BPF_IPV6 = 1,
1: + UDP_BPF_NUM_PROTS = 2,
1: +};
1: +
1: +struct cipso_v4_map_cache_bkt {
1: + spinlock_t lock;
1: + u32 size;
1: + struct list_head list;
1: +};
1: +
1: +struct cipso_v4_map_cache_entry {
1: + u32 hash;
1: + unsigned char *key;
1: + size_t key_len;
1: + struct netlbl_lsm_cache *lsm_data;
1: + u32 activity;
1: + struct list_head list;
1: +};
1: +
1: +struct xfrm_policy_afinfo {
1: + struct dst_ops *dst_ops;
1: + struct dst_entry * (*dst_lookup)(struct net *, int, int, const xfrm_address_t *, const xfrm_address_t *, u32);
1: + int (*get_saddr)(struct net *, int, xfrm_address_t *, xfrm_address_t *, u32);
1: + int (*fill_dst)(struct xfrm_dst *, struct net_device *, const struct flowi *);
1: + struct dst_entry * (*blackhole_route)(struct net *, struct dst_entry *);
1: +};
1: +
1: +struct xfrm_state_afinfo {
1: + u8 family;
1: + u8 proto;
1: + const struct xfrm_type_offload *type_offload_esp;
1: + const struct xfrm_type *type_esp;
1: + const struct xfrm_type *type_ipip;
1: + const struct xfrm_type *type_ipip6;
1: + const struct xfrm_type *type_comp;
1: + const struct xfrm_type *type_ah;
1: + const struct xfrm_type *type_routing;
1: + const struct xfrm_type *type_dstopts;
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*transport_finish)(struct sk_buff *, int);
1: + void (*local_error)(struct sk_buff *, u32);
1: +};
1: +
1: +struct ip_tunnel;
1: +
1: +struct ip6_tnl;
1: +
1: +struct xfrm_tunnel_skb_cb {
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + union {
1: + struct ip_tunnel *ip4;
1: + struct ip6_tnl *ip6;
1: + } tunnel;
1: +};
1: +
1: +struct xfrm_mode_skb_cb {
1: + struct xfrm_tunnel_skb_cb header;
1: + __be16 id;
1: + __be16 frag_off;
1: + u8 ihl;
1: + u8 tos;
1: + u8 ttl;
1: + u8 protocol;
1: + u8 optlen;
1: + u8 flow_lbl[3];
1: +};
1: +
1: +struct xfrm_spi_skb_cb {
1: + struct xfrm_tunnel_skb_cb header;
1: + unsigned int daddroff;
1: + unsigned int family;
1: + __be32 seq;
1: +};
1: +
1: +struct xfrm_input_afinfo {
1: + u8 family;
1: + bool is_ipip;
1: + int (*callback)(struct sk_buff *, u8, int);
1: +};
1: +
1: +struct xfrm4_protocol {
1: + int (*handler)(struct sk_buff *);
1: + int (*input_handler)(struct sk_buff *, int, __be32, int);
1: + int (*cb_handler)(struct sk_buff *, int);
1: + int (*err_handler)(struct sk_buff *, u32);
1: + struct xfrm4_protocol *next;
1: + int priority;
1: +};
1: +
1: +typedef u64 (*btf_bpf_tcp_send_ack)(struct tcp_sock *, u32);
1: +
1: +struct seqcount_mutex {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_mutex seqcount_mutex_t;
1: +
1: +enum {
1: + XFRM_STATE_VOID = 0,
1: + XFRM_STATE_ACQ = 1,
1: + XFRM_STATE_VALID = 2,
1: + XFRM_STATE_ERROR = 3,
1: + XFRM_STATE_EXPIRED = 4,
1: + XFRM_STATE_DEAD = 5,
1: +};
1: +
1: +struct xfrm_if;
1: +
1: +struct xfrm_if_cb {
1: + struct xfrm_if * (*decode_session)(struct sk_buff *, short unsigned int);
1: +};
1: +
1: +struct xfrm_if_parms {
1: + int link;
1: + u32 if_id;
1: +};
1: +
1: +struct xfrm_if {
1: + struct xfrm_if *next;
1: + struct net_device *dev;
1: + struct net *net;
1: + struct xfrm_if_parms p;
1: + struct gro_cells gro_cells;
1: +};
1: +
1: +struct xfrm_policy_walk {
1: + struct xfrm_policy_walk_entry walk;
1: + u8 type;
1: + u32 seq;
1: +};
1: +
1: +struct xfrmk_spdinfo {
1: + u32 incnt;
1: + u32 outcnt;
1: + u32 fwdcnt;
1: + u32 inscnt;
1: + u32 outscnt;
1: + u32 fwdscnt;
1: + u32 spdhcnt;
1: + u32 spdhmcnt;
1: +};
1: +
1: +struct ip6_mh {
1: + __u8 ip6mh_proto;
1: + __u8 ip6mh_hdrlen;
1: + __u8 ip6mh_type;
1: + __u8 ip6mh_reserved;
1: + __u16 ip6mh_cksum;
1: + __u8 data[0];
1: +};
1: +
1: +struct xfrm_flo {
1: + struct dst_entry *dst_orig;
1: + u8 flags;
1: +};
1: +
1: +struct xfrm_pol_inexact_node {
1: + struct rb_node node;
1: + union {
1: + xfrm_address_t addr;
1: + struct callback_head rcu;
1: + };
1: + u8 prefixlen;
1: + struct rb_root root;
1: + struct hlist_head hhead;
1: +};
1: +
1: +struct xfrm_pol_inexact_key {
1: + possible_net_t net;
1: + u32 if_id;
1: + u16 family;
1: + u8 dir;
1: + u8 type;
1: +};
1: +
1: +struct xfrm_pol_inexact_bin {
1: + struct xfrm_pol_inexact_key k;
1: + struct rhash_head head;
1: + struct hlist_head hhead;
1: + seqcount_spinlock_t count;
1: + struct rb_root root_d;
1: + struct rb_root root_s;
1: + struct list_head inexact_bins;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum xfrm_pol_inexact_candidate_type {
1: + XFRM_POL_CAND_BOTH = 0,
1: + XFRM_POL_CAND_SADDR = 1,
1: + XFRM_POL_CAND_DADDR = 2,
1: + XFRM_POL_CAND_ANY = 3,
1: + XFRM_POL_CAND_MAX = 4,
1: +};
1: +
1: +struct xfrm_pol_inexact_candidates {
1: + struct hlist_head *res[4];
1: +};
1: +
1: +enum xfrm_ae_ftype_t {
1: + XFRM_AE_UNSPEC = 0,
1: + XFRM_AE_RTHR = 1,
1: + XFRM_AE_RVAL = 2,
1: + XFRM_AE_LVAL = 4,
1: + XFRM_AE_ETHR = 8,
1: + XFRM_AE_CR = 16,
1: + XFRM_AE_CE = 32,
1: + XFRM_AE_CU = 64,
1: + __XFRM_AE_MAX = 65,
1: +};
1: +
1: +enum xfrm_nlgroups {
1: + XFRMNLGRP_NONE = 0,
1: + XFRMNLGRP_ACQUIRE = 1,
1: + XFRMNLGRP_EXPIRE = 2,
1: + XFRMNLGRP_SA = 3,
1: + XFRMNLGRP_POLICY = 4,
1: + XFRMNLGRP_AEVENTS = 5,
1: + XFRMNLGRP_REPORT = 6,
1: + XFRMNLGRP_MIGRATE = 7,
1: + XFRMNLGRP_MAPPING = 8,
1: + __XFRMNLGRP_MAX = 9,
1: +};
1: +
1: +enum {
1: + XFRM_MODE_FLAG_TUNNEL = 1,
1: +};
1: +
1: +struct km_event {
1: + union {
1: + u32 hard;
1: + u32 proto;
1: + u32 byid;
1: + u32 aevent;
1: + u32 type;
1: + } data;
1: + u32 seq;
1: + u32 portid;
1: + u32 event;
1: + struct net *net;
1: +};
1: +
1: +struct xfrm_kmaddress {
1: + xfrm_address_t local;
1: + xfrm_address_t remote;
1: + u32 reserved;
1: + u16 family;
1: +};
1: +
1: +struct xfrm_migrate {
1: + xfrm_address_t old_daddr;
1: + xfrm_address_t old_saddr;
1: + xfrm_address_t new_daddr;
1: + xfrm_address_t new_saddr;
1: + u8 proto;
1: + u8 mode;
1: + u16 reserved;
1: + u32 reqid;
1: + u16 old_family;
1: + u16 new_family;
1: +};
1: +
1: +struct xfrm_mgr {
1: + struct list_head list;
1: + int (*notify)(struct xfrm_state *, const struct km_event *);
1: + int (*acquire)(struct xfrm_state *, struct xfrm_tmpl *, struct xfrm_policy *);
1: + struct xfrm_policy * (*compile_policy)(struct sock *, int, u8 *, int, int *);
1: + int (*new_mapping)(struct xfrm_state *, xfrm_address_t *, __be16);
1: + int (*notify_policy)(struct xfrm_policy *, int, const struct km_event *);
1: + int (*report)(struct net *, u8, struct xfrm_selector *, xfrm_address_t *);
1: + int (*migrate)(const struct xfrm_selector *, u8, u8, const struct xfrm_migrate *, int, const struct xfrm_kmaddress *, const struct xfrm_encap_tmpl *);
1: + bool (*is_alive)(const struct km_event *);
1: +};
1: +
1: +struct xfrmk_sadinfo {
1: + u32 sadhcnt;
1: + u32 sadhmcnt;
1: + u32 sadcnt;
1: +};
1: +
1: +struct xfrm_translator {
1: + int (*alloc_compat)(struct sk_buff *, const struct nlmsghdr *);
1: + struct nlmsghdr * (*rcv_msg_compat)(const struct nlmsghdr *, int, const struct nla_policy *, struct netlink_ext_ack *);
1: + int (*xlate_user_policy_sockptr)(u8 **, int);
1: + struct module *owner;
1: +};
1: +
1: +struct ip_beet_phdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 padlen;
1: + __u8 reserved;
1: +};
1: +
1: +struct ip_tunnel_6rd_parm {
1: + struct in6_addr prefix;
1: + __be32 relay_prefix;
1: + u16 prefixlen;
1: + u16 relay_prefixlen;
1: +};
1: +
1: +struct ip_tunnel_prl_entry;
1: +
1: +struct ip_tunnel {
1: + struct ip_tunnel *next;
1: + struct hlist_node hash_node;
1: + struct net_device *dev;
1: + struct net *net;
1: + long unsigned int err_time;
1: + int err_count;
1: + u32 i_seqno;
1: + u32 o_seqno;
1: + int tun_hlen;
1: + u32 index;
1: + u8 erspan_ver;
1: + u8 dir;
1: + u16 hwid;
1: + struct dst_cache dst_cache;
1: + struct ip_tunnel_parm parms;
1: + int mlink;
1: + int encap_hlen;
1: + int hlen;
1: + struct ip_tunnel_encap encap;
1: + struct ip_tunnel_6rd_parm ip6rd;
1: + struct ip_tunnel_prl_entry *prl;
1: + unsigned int prl_count;
1: + unsigned int ip_tnl_net_id;
1: + struct gro_cells gro_cells;
1: + __u32 fwmark;
1: + bool collect_md;
1: + bool ignore_df;
1: +};
1: +
1: +struct __ip6_tnl_parm {
1: + char name[16];
1: + int link;
1: + __u8 proto;
1: + __u8 encap_limit;
1: + __u8 hop_limit;
1: + bool collect_md;
1: + __be32 flowinfo;
1: + __u32 flags;
1: + struct in6_addr laddr;
1: + struct in6_addr raddr;
1: + __be16 i_flags;
1: + __be16 o_flags;
1: + __be32 i_key;
1: + __be32 o_key;
1: + __u32 fwmark;
1: + __u32 index;
1: + __u8 erspan_ver;
1: + __u8 dir;
1: + __u16 hwid;
1: +};
1: +
1: +struct ip6_tnl {
1: + struct ip6_tnl *next;
1: + struct net_device *dev;
1: + struct net *net;
1: + struct __ip6_tnl_parm parms;
1: + struct flowi fl;
1: + struct dst_cache dst_cache;
1: + struct gro_cells gro_cells;
1: + int err_count;
1: + long unsigned int err_time;
1: + __u32 i_seqno;
1: + __u32 o_seqno;
1: + int hlen;
1: + int tun_hlen;
1: + int encap_hlen;
1: + struct ip_tunnel_encap encap;
1: + int mlink;
1: +};
1: +
1: +struct xfrm_skb_cb {
1: + struct xfrm_tunnel_skb_cb header;
1: + union {
1: + struct {
1: + __u32 low;
1: + __u32 hi;
1: + } output;
1: + struct {
1: + __be32 low;
1: + __be32 hi;
1: + } input;
1: + } seq;
1: +};
1: +
1: +struct ip_tunnel_prl_entry {
1: + struct ip_tunnel_prl_entry *next;
1: + __be32 addr;
1: + u16 flags;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct xfrm_trans_tasklet {
1: + struct tasklet_struct tasklet;
1: + struct sk_buff_head queue;
1: +};
1: +
1: +struct xfrm_trans_cb {
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + int (*finish)(struct net *, struct sock *, struct sk_buff *);
1: + struct net *net;
1: +};
1: +
1: +struct xfrm_user_offload {
1: + int ifindex;
1: + __u8 flags;
1: +};
1: +
1: +struct espintcp_msg {
1: + struct sk_buff *skb;
1: + struct sk_msg skmsg;
1: + int offset;
1: + int len;
1: +};
1: +
1: +struct espintcp_ctx {
1: + struct strparser strp;
1: + struct sk_buff_head ike_queue;
1: + struct sk_buff_head out_queue;
1: + struct espintcp_msg partial;
1: + void (*saved_data_ready)(struct sock *);
1: + void (*saved_write_space)(struct sock *);
1: + void (*saved_destruct)(struct sock *);
1: + struct work_struct work;
1: + bool tx_running;
1: +};
1: +
1: +struct unix_stream_read_state {
1: + int (*recv_actor)(struct sk_buff *, int, int, struct unix_stream_read_state *);
1: + struct socket *socket;
1: + struct msghdr *msg;
1: + struct pipe_inode_info *pipe;
1: + size_t size;
1: + int flags;
1: + unsigned int splice_flags;
1: +};
1: +
1: +struct ipv6_params {
1: + __s32 disable_ipv6;
1: + __s32 autoconf;
1: +};
1: +
1: +enum flowlabel_reflect {
1: + FLOWLABEL_REFLECT_ESTABLISHED = 1,
1: + FLOWLABEL_REFLECT_TCP_RESET = 2,
1: + FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES = 4,
1: +};
1: +
1: +struct in6_rtmsg {
1: + struct in6_addr rtmsg_dst;
1: + struct in6_addr rtmsg_src;
1: + struct in6_addr rtmsg_gateway;
1: + __u32 rtmsg_type;
1: + __u16 rtmsg_dst_len;
1: + __u16 rtmsg_src_len;
1: + __u32 rtmsg_metric;
1: + long unsigned int rtmsg_info;
1: + __u32 rtmsg_flags;
1: + int rtmsg_ifindex;
1: +};
1: +
1: +struct compat_in6_rtmsg {
1: + struct in6_addr rtmsg_dst;
1: + struct in6_addr rtmsg_src;
1: + struct in6_addr rtmsg_gateway;
1: + u32 rtmsg_type;
1: + u16 rtmsg_dst_len;
1: + u16 rtmsg_src_len;
1: + u32 rtmsg_metric;
1: + u32 rtmsg_info;
1: + u32 rtmsg_flags;
1: + s32 rtmsg_ifindex;
1: +};
1: +
1: +struct ac6_iter_state {
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: +};
1: +
1: +struct ip6_fraglist_iter {
1: + struct ipv6hdr *tmp_hdr;
1: + struct sk_buff *frag;
1: + int offset;
1: + unsigned int hlen;
1: + __be32 frag_id;
1: + u8 nexthdr;
1: +};
1: +
1: +struct ip6_frag_state {
1: + u8 *prevhdr;
1: + unsigned int hlen;
1: + unsigned int mtu;
1: + unsigned int left;
1: + int offset;
1: + int ptr;
1: + int hroom;
1: + int troom;
1: + __be32 frag_id;
1: + u8 nexthdr;
1: +};
1: +
1: +struct ip6_ra_chain {
1: + struct ip6_ra_chain *next;
1: + struct sock *sk;
1: + int sel;
1: + void (*destructor)(struct sock *);
1: +};
1: +
1: +struct ipcm6_cookie {
1: + struct sockcm_cookie sockc;
1: + __s16 hlimit;
1: + __s16 tclass;
1: + __s8 dontfrag;
1: + struct ipv6_txoptions *opt;
1: + __u16 gso_size;
1: +};
1: +
1: +enum {
1: + IFLA_INET6_UNSPEC = 0,
1: + IFLA_INET6_FLAGS = 1,
1: + IFLA_INET6_CONF = 2,
1: + IFLA_INET6_STATS = 3,
1: + IFLA_INET6_MCAST = 4,
1: + IFLA_INET6_CACHEINFO = 5,
1: + IFLA_INET6_ICMP6STATS = 6,
1: + IFLA_INET6_TOKEN = 7,
1: + IFLA_INET6_ADDR_GEN_MODE = 8,
1: + __IFLA_INET6_MAX = 9,
1: +};
1: +
1: +enum in6_addr_gen_mode {
1: + IN6_ADDR_GEN_MODE_EUI64 = 0,
1: + IN6_ADDR_GEN_MODE_NONE = 1,
1: + IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2,
1: + IN6_ADDR_GEN_MODE_RANDOM = 3,
1: +};
1: +
1: +struct ifla_cacheinfo {
1: + __u32 max_reasm_len;
1: + __u32 tstamp;
1: + __u32 reachable_time;
1: + __u32 retrans_time;
1: +};
1: +
1: +struct wpan_phy;
1: +
1: +struct wpan_dev_header_ops;
1: +
1: +struct wpan_dev {
1: + struct wpan_phy *wpan_phy;
1: + int iftype;
1: + struct list_head list;
1: + struct net_device *netdev;
1: + const struct wpan_dev_header_ops *header_ops;
1: + struct net_device *lowpan_dev;
1: + u32 identifier;
1: + __le16 pan_id;
1: + __le16 short_addr;
1: + __le64 extended_addr;
1: + atomic_t bsn;
1: + atomic_t dsn;
1: + u8 min_be;
1: + u8 max_be;
1: + u8 csma_retries;
1: + s8 frame_retries;
1: + bool lbt;
1: + bool promiscuous_mode;
1: + bool ackreq;
1: +};
1: +
1: +struct prefixmsg {
1: + unsigned char prefix_family;
1: + unsigned char prefix_pad1;
1: + short unsigned int prefix_pad2;
1: + int prefix_ifindex;
1: + unsigned char prefix_type;
1: + unsigned char prefix_len;
1: + unsigned char prefix_flags;
1: + unsigned char prefix_pad3;
1: +};
1: +
1: +enum {
1: + PREFIX_UNSPEC = 0,
1: + PREFIX_ADDRESS = 1,
1: + PREFIX_CACHEINFO = 2,
1: + __PREFIX_MAX = 3,
1: +};
1: +
1: +struct prefix_cacheinfo {
1: + __u32 preferred_time;
1: + __u32 valid_time;
1: +};
1: +
1: +struct in6_ifreq {
1: + struct in6_addr ifr6_addr;
1: + __u32 ifr6_prefixlen;
1: + int ifr6_ifindex;
1: +};
1: +
1: +enum {
1: + DEVCONF_FORWARDING = 0,
1: + DEVCONF_HOPLIMIT = 1,
1: + DEVCONF_MTU6 = 2,
1: + DEVCONF_ACCEPT_RA = 3,
1: + DEVCONF_ACCEPT_REDIRECTS = 4,
1: + DEVCONF_AUTOCONF = 5,
1: + DEVCONF_DAD_TRANSMITS = 6,
1: + DEVCONF_RTR_SOLICITS = 7,
1: + DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1: + DEVCONF_RTR_SOLICIT_DELAY = 9,
1: + DEVCONF_USE_TEMPADDR = 10,
1: + DEVCONF_TEMP_VALID_LFT = 11,
1: + DEVCONF_TEMP_PREFERED_LFT = 12,
1: + DEVCONF_REGEN_MAX_RETRY = 13,
1: + DEVCONF_MAX_DESYNC_FACTOR = 14,
1: + DEVCONF_MAX_ADDRESSES = 15,
1: + DEVCONF_FORCE_MLD_VERSION = 16,
1: + DEVCONF_ACCEPT_RA_DEFRTR = 17,
1: + DEVCONF_ACCEPT_RA_PINFO = 18,
1: + DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1: + DEVCONF_RTR_PROBE_INTERVAL = 20,
1: + DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1: + DEVCONF_PROXY_NDP = 22,
1: + DEVCONF_OPTIMISTIC_DAD = 23,
1: + DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1: + DEVCONF_MC_FORWARDING = 25,
1: + DEVCONF_DISABLE_IPV6 = 26,
1: + DEVCONF_ACCEPT_DAD = 27,
1: + DEVCONF_FORCE_TLLAO = 28,
1: + DEVCONF_NDISC_NOTIFY = 29,
1: + DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1: + DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1: + DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1: + DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1: + DEVCONF_USE_OPTIMISTIC = 34,
1: + DEVCONF_ACCEPT_RA_MTU = 35,
1: + DEVCONF_STABLE_SECRET = 36,
1: + DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1: + DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1: + DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1: + DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1: + DEVCONF_DROP_UNSOLICITED_NA = 41,
1: + DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1: + DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1: + DEVCONF_SEG6_ENABLED = 44,
1: + DEVCONF_SEG6_REQUIRE_HMAC = 45,
1: + DEVCONF_ENHANCED_DAD = 46,
1: + DEVCONF_ADDR_GEN_MODE = 47,
1: + DEVCONF_DISABLE_POLICY = 48,
1: + DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1: + DEVCONF_NDISC_TCLASS = 50,
1: + DEVCONF_RPL_SEG_ENABLED = 51,
1: + DEVCONF_MAX = 52,
1: +};
1: +
1: +enum {
1: + INET6_IFADDR_STATE_PREDAD = 0,
1: + INET6_IFADDR_STATE_DAD = 1,
1: + INET6_IFADDR_STATE_POSTDAD = 2,
1: + INET6_IFADDR_STATE_ERRDAD = 3,
1: + INET6_IFADDR_STATE_DEAD = 4,
1: +};
1: +
1: +enum nl802154_cca_modes {
1: + __NL802154_CCA_INVALID = 0,
1: + NL802154_CCA_ENERGY = 1,
1: + NL802154_CCA_CARRIER = 2,
1: + NL802154_CCA_ENERGY_CARRIER = 3,
1: + NL802154_CCA_ALOHA = 4,
1: + NL802154_CCA_UWB_SHR = 5,
1: + NL802154_CCA_UWB_MULTIPLEXED = 6,
1: + __NL802154_CCA_ATTR_AFTER_LAST = 7,
1: + NL802154_CCA_ATTR_MAX = 6,
1: +};
1: +
1: +enum nl802154_cca_opts {
1: + NL802154_CCA_OPT_ENERGY_CARRIER_AND = 0,
1: + NL802154_CCA_OPT_ENERGY_CARRIER_OR = 1,
1: + __NL802154_CCA_OPT_ATTR_AFTER_LAST = 2,
1: + NL802154_CCA_OPT_ATTR_MAX = 1,
1: +};
1: +
1: +enum nl802154_supported_bool_states {
1: + NL802154_SUPPORTED_BOOL_FALSE = 0,
1: + NL802154_SUPPORTED_BOOL_TRUE = 1,
1: + __NL802154_SUPPORTED_BOOL_INVALD = 2,
1: + NL802154_SUPPORTED_BOOL_BOTH = 3,
1: + __NL802154_SUPPORTED_BOOL_AFTER_LAST = 4,
1: + NL802154_SUPPORTED_BOOL_MAX = 3,
1: +};
1: +
1: +struct wpan_phy_supported {
1: + u32 channels[32];
1: + u32 cca_modes;
1: + u32 cca_opts;
1: + u32 iftypes;
1: + enum nl802154_supported_bool_states lbt;
1: + u8 min_minbe;
1: + u8 max_minbe;
1: + u8 min_maxbe;
1: + u8 max_maxbe;
1: + u8 min_csma_backoffs;
1: + u8 max_csma_backoffs;
1: + s8 min_frame_retries;
1: + s8 max_frame_retries;
1: + size_t tx_powers_size;
1: + size_t cca_ed_levels_size;
1: + const s32 *tx_powers;
1: + const s32 *cca_ed_levels;
1: +};
1: +
1: +struct wpan_phy_cca {
1: + enum nl802154_cca_modes mode;
1: + enum nl802154_cca_opts opt;
1: +};
1: +
1: +struct wpan_phy {
1: + const void *privid;
1: + u32 flags;
1: + u8 current_channel;
1: + u8 current_page;
1: + struct wpan_phy_supported supported;
1: + s32 transmit_power;
1: + struct wpan_phy_cca cca;
1: + __le64 perm_extended_addr;
1: + s32 cca_ed_level;
1: + u8 symbol_duration;
1: + u16 lifs_period;
1: + u16 sifs_period;
1: + struct device dev;
1: + possible_net_t _net;
1: + long: 64;
1: + long: 64;
1: + char priv[0];
1: +};
1: +
1: +struct ieee802154_addr {
1: + u8 mode;
1: + __le16 pan_id;
1: + union {
1: + __le16 short_addr;
1: + __le64 extended_addr;
1: + };
1: +};
1: +
1: +struct wpan_dev_header_ops {
1: + int (*create)(struct sk_buff *, struct net_device *, const struct ieee802154_addr *, const struct ieee802154_addr *, unsigned int);
1: +};
1: +
1: +union fwnet_hwaddr {
1: + u8 u[16];
1: + struct {
1: + __be64 uniq_id;
1: + u8 max_rec;
1: + u8 sspd;
1: + __be16 fifo_hi;
1: + __be32 fifo_lo;
1: + } uc;
1: +};
1: +
1: +struct in6_validator_info {
1: + struct in6_addr i6vi_addr;
1: + struct inet6_dev *i6vi_dev;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct ifa6_config {
1: + const struct in6_addr *pfx;
1: + unsigned int plen;
1: + const struct in6_addr *peer_pfx;
1: + u32 rt_priority;
1: + u32 ifa_flags;
1: + u32 preferred_lft;
1: + u32 valid_lft;
1: + u16 scope;
1: +};
1: +
1: +enum cleanup_prefix_rt_t {
1: + CLEANUP_PREFIX_RT_NOP = 0,
1: + CLEANUP_PREFIX_RT_DEL = 1,
1: + CLEANUP_PREFIX_RT_EXPIRE = 2,
1: +};
1: +
1: +enum {
1: + IPV6_SADDR_RULE_INIT = 0,
1: + IPV6_SADDR_RULE_LOCAL = 1,
1: + IPV6_SADDR_RULE_SCOPE = 2,
1: + IPV6_SADDR_RULE_PREFERRED = 3,
1: + IPV6_SADDR_RULE_OIF = 4,
1: + IPV6_SADDR_RULE_LABEL = 5,
1: + IPV6_SADDR_RULE_PRIVACY = 6,
1: + IPV6_SADDR_RULE_ORCHID = 7,
1: + IPV6_SADDR_RULE_PREFIX = 8,
1: + IPV6_SADDR_RULE_MAX = 9,
1: +};
1: +
1: +struct ipv6_saddr_score {
1: + int rule;
1: + int addr_type;
1: + struct inet6_ifaddr *ifa;
1: + long unsigned int scorebits[1];
1: + int scopedist;
1: + int matchlen;
1: +};
1: +
1: +struct ipv6_saddr_dst {
1: + const struct in6_addr *addr;
1: + int ifindex;
1: + int scope;
1: + int label;
1: + unsigned int prefs;
1: +};
1: +
1: +struct if6_iter_state {
1: + struct seq_net_private p;
1: + int bucket;
1: + int offset;
1: +};
1: +
1: +enum addr_type_t {
1: + UNICAST_ADDR = 0,
1: + MULTICAST_ADDR = 1,
1: + ANYCAST_ADDR = 2,
1: +};
1: +
1: +struct inet6_fill_args {
1: + u32 portid;
1: + u32 seq;
1: + int event;
1: + unsigned int flags;
1: + int netnsid;
1: + int ifindex;
1: + enum addr_type_t type;
1: +};
1: +
1: +enum {
1: + DAD_PROCESS = 0,
1: + DAD_BEGIN = 1,
1: + DAD_ABORT = 2,
1: +};
1: +
1: +struct ifaddrlblmsg {
1: + __u8 ifal_family;
1: + __u8 __ifal_reserved;
1: + __u8 ifal_prefixlen;
1: + __u8 ifal_flags;
1: + __u32 ifal_index;
1: + __u32 ifal_seq;
1: +};
1: +
1: +enum {
1: + IFAL_ADDRESS = 1,
1: + IFAL_LABEL = 2,
1: + __IFAL_MAX = 3,
1: +};
1: +
1: +struct ip6addrlbl_entry {
1: + struct in6_addr prefix;
1: + int prefixlen;
1: + int ifindex;
1: + int addrtype;
1: + u32 label;
1: + struct hlist_node list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ip6addrlbl_init_table {
1: + const struct in6_addr *prefix;
1: + int prefixlen;
1: + u32 label;
1: +};
1: +
1: +struct rd_msg {
1: + struct icmp6hdr icmph;
1: + struct in6_addr target;
1: + struct in6_addr dest;
1: + __u8 opt[0];
1: +};
1: +
1: +struct fib6_gc_args {
1: + int timeout;
1: + int more;
1: +};
1: +
1: +struct rt6_exception {
1: + struct hlist_node hlist;
1: + struct rt6_info *rt6i;
1: + long unsigned int stamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct route_info {
1: + __u8 type;
1: + __u8 length;
1: + __u8 prefix_len;
1: + __u8 reserved_l: 3;
1: + __u8 route_pref: 2;
1: + __u8 reserved_h: 3;
1: + __be32 lifetime;
1: + __u8 prefix[0];
1: +};
1: +
1: +struct rt6_rtnl_dump_arg {
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: + struct net *net;
1: + struct fib_dump_filter filter;
1: +};
1: +
1: +struct netevent_redirect {
1: + struct dst_entry *old;
1: + struct dst_entry *new;
1: + struct neighbour *neigh;
1: + const void *daddr;
1: +};
1: +
1: +struct trace_event_raw_fib6_table_lookup {
1: + struct trace_entry ent;
1: + u32 tb_id;
1: + int err;
1: + int oif;
1: + int iif;
1: + __u8 tos;
1: + __u8 scope;
1: + __u8 flags;
1: + __u8 src[16];
1: + __u8 dst[16];
1: + u16 sport;
1: + u16 dport;
1: + u8 proto;
1: + u8 rt_type;
1: + u32 __data_loc_name;
1: + __u8 gw[16];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_fib6_table_lookup {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_fib6_table_lookup)(void *, const struct net *, const struct fib6_result *, struct fib6_table *, const struct flowi6 *);
1: +
1: +enum rt6_nud_state {
1: + RT6_NUD_FAIL_HARD = 4294967293,
1: + RT6_NUD_FAIL_PROBE = 4294967294,
1: + RT6_NUD_FAIL_DO_RR = 4294967295,
1: + RT6_NUD_SUCCEED = 1,
1: +};
1: +
1: +struct fib6_nh_dm_arg {
1: + struct net *net;
1: + const struct in6_addr *saddr;
1: + int oif;
1: + int flags;
1: + struct fib6_nh *nh;
1: +};
1: +
1: +struct __rt6_probe_work {
1: + struct work_struct work;
1: + struct in6_addr target;
1: + struct net_device *dev;
1: +};
1: +
1: +struct fib6_nh_frl_arg {
1: + u32 flags;
1: + int oif;
1: + int strict;
1: + int *mpri;
1: + bool *do_rr;
1: + struct fib6_nh *nh;
1: +};
1: +
1: +struct fib6_nh_excptn_arg {
1: + struct rt6_info *rt;
1: + int plen;
1: +};
1: +
1: +struct fib6_nh_match_arg {
1: + const struct net_device *dev;
1: + const struct in6_addr *gw;
1: + struct fib6_nh *match;
1: +};
1: +
1: +struct fib6_nh_age_excptn_arg {
1: + struct fib6_gc_args *gc_args;
1: + long unsigned int now;
1: +};
1: +
1: +struct fib6_nh_rd_arg {
1: + struct fib6_result *res;
1: + struct flowi6 *fl6;
1: + const struct in6_addr *gw;
1: + struct rt6_info **ret;
1: +};
1: +
1: +struct ip6rd_flowi {
1: + struct flowi6 fl6;
1: + struct in6_addr gateway;
1: +};
1: +
1: +struct fib6_nh_del_cached_rt_arg {
1: + struct fib6_config *cfg;
1: + struct fib6_info *f6i;
1: +};
1: +
1: +struct arg_dev_net_ip {
1: + struct net_device *dev;
1: + struct net *net;
1: + struct in6_addr *addr;
1: +};
1: +
1: +struct arg_netdev_event {
1: + const struct net_device *dev;
1: + union {
1: + unsigned char nh_flags;
1: + long unsigned int event;
1: + };
1: +};
1: +
1: +struct rt6_mtu_change_arg {
1: + struct net_device *dev;
1: + unsigned int mtu;
1: + struct fib6_info *f6i;
1: +};
1: +
1: +struct rt6_nh {
1: + struct fib6_info *fib6_info;
1: + struct fib6_config r_cfg;
1: + struct list_head next;
1: +};
1: +
1: +struct fib6_nh_exception_dump_walker {
1: + struct rt6_rtnl_dump_arg *dump;
1: + struct fib6_info *rt;
1: + unsigned int flags;
1: + unsigned int skip;
1: + unsigned int count;
1: +};
1: +
1: +enum fib6_walk_state {
1: + FWS_S = 0,
1: + FWS_L = 1,
1: + FWS_R = 2,
1: + FWS_C = 3,
1: + FWS_U = 4,
1: +};
1: +
1: +struct fib6_walker {
1: + struct list_head lh;
1: + struct fib6_node *root;
1: + struct fib6_node *node;
1: + struct fib6_info *leaf;
1: + enum fib6_walk_state state;
1: + unsigned int skip;
1: + unsigned int count;
1: + unsigned int skip_in_node;
1: + int (*func)(struct fib6_walker *);
1: + void *args;
1: +};
1: +
1: +struct fib6_entry_notifier_info {
1: + struct fib_notifier_info info;
1: + struct fib6_info *rt;
1: + unsigned int nsiblings;
1: +};
1: +
1: +struct ipv6_route_iter {
1: + struct seq_net_private p;
1: + struct fib6_walker w;
1: + loff_t skip;
1: + struct fib6_table *tbl;
1: + int sernum;
1: +};
1: +
1: +struct bpf_iter__ipv6_route {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct fib6_info *rt;
1: + };
1: +};
1: +
1: +struct fib6_cleaner {
1: + struct fib6_walker w;
1: + struct net *net;
1: + int (*func)(struct fib6_info *, void *);
1: + int sernum;
1: + void *arg;
1: + bool skip_notify;
1: +};
1: +
1: +enum {
1: + FIB6_NO_SERNUM_CHANGE = 0,
1: +};
1: +
1: +struct fib6_dump_arg {
1: + struct net *net;
1: + struct notifier_block *nb;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct fib6_nh_pcpu_arg {
1: + struct fib6_info *from;
1: + const struct fib6_table *table;
1: +};
1: +
1: +struct lookup_args {
1: + int offset;
1: + const struct in6_addr *addr;
1: +};
1: +
1: +struct ipv6_mreq {
1: + struct in6_addr ipv6mr_multiaddr;
1: + int ipv6mr_ifindex;
1: +};
1: +
1: +struct in6_flowlabel_req {
1: + struct in6_addr flr_dst;
1: + __be32 flr_label;
1: + __u8 flr_action;
1: + __u8 flr_share;
1: + __u16 flr_flags;
1: + __u16 flr_expires;
1: + __u16 flr_linger;
1: + __u32 __flr_pad;
1: +};
1: +
1: +struct ip6_mtuinfo {
1: + struct sockaddr_in6 ip6m_addr;
1: + __u32 ip6m_mtu;
1: +};
1: +
1: +struct nduseroptmsg {
1: + unsigned char nduseropt_family;
1: + unsigned char nduseropt_pad1;
1: + short unsigned int nduseropt_opts_len;
1: + int nduseropt_ifindex;
1: + __u8 nduseropt_icmp_type;
1: + __u8 nduseropt_icmp_code;
1: + short unsigned int nduseropt_pad2;
1: + unsigned int nduseropt_pad3;
1: +};
1: +
1: +enum {
1: + NDUSEROPT_UNSPEC = 0,
1: + NDUSEROPT_SRCADDR = 1,
1: + __NDUSEROPT_MAX = 2,
1: +};
1: +
1: +struct nd_msg {
1: + struct icmp6hdr icmph;
1: + struct in6_addr target;
1: + __u8 opt[0];
1: +};
1: +
1: +struct rs_msg {
1: + struct icmp6hdr icmph;
1: + __u8 opt[0];
1: +};
1: +
1: +struct ra_msg {
1: + struct icmp6hdr icmph;
1: + __be32 reachable_time;
1: + __be32 retrans_timer;
1: +};
1: +
1: +struct icmp6_filter {
1: + __u32 data[8];
1: +};
1: +
1: +struct raw6_sock {
1: + struct inet_sock inet;
1: + __u32 checksum;
1: + __u32 offset;
1: + struct icmp6_filter filter;
1: + __u32 ip6mr_table;
1: + struct ipv6_pinfo inet6;
1: +};
1: +
1: +typedef int mh_filter_t(struct sock *, struct sk_buff *);
1: +
1: +struct raw6_frag_vec {
1: + struct msghdr *msg;
1: + int hlen;
1: + char c[4];
1: +};
1: +
1: +typedef void ip6_icmp_send_t(struct sk_buff *, u8, u8, __u32, const struct in6_addr *);
1: +
1: +struct ipv6_destopt_hao {
1: + __u8 type;
1: + __u8 length;
1: + struct in6_addr addr;
1: +} __attribute__((packed));
1: +
1: +struct icmpv6_msg {
1: + struct sk_buff *skb;
1: + int offset;
1: + uint8_t type;
1: +};
1: +
1: +struct icmp6_err {
1: + int err;
1: + int fatal;
1: +};
1: +
1: +struct mld_msg {
1: + struct icmp6hdr mld_hdr;
1: + struct in6_addr mld_mca;
1: +};
1: +
1: +struct mld2_grec {
1: + __u8 grec_type;
1: + __u8 grec_auxwords;
1: + __be16 grec_nsrcs;
1: + struct in6_addr grec_mca;
1: + struct in6_addr grec_src[0];
1: +};
1: +
1: +struct mld2_report {
1: + struct icmp6hdr mld2r_hdr;
1: + struct mld2_grec mld2r_grec[0];
1: +};
1: +
1: +struct mld2_query {
1: + struct icmp6hdr mld2q_hdr;
1: + struct in6_addr mld2q_mca;
1: + __u8 mld2q_qrv: 3;
1: + __u8 mld2q_suppress: 1;
1: + __u8 mld2q_resv2: 4;
1: + __u8 mld2q_qqic;
1: + __be16 mld2q_nsrcs;
1: + struct in6_addr mld2q_srcs[0];
1: +};
1: +
1: +struct igmp6_mc_iter_state {
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: +};
1: +
1: +struct igmp6_mcf_iter_state {
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: + struct ifmcaddr6 *im;
1: +};
1: +
1: +enum ip6_defrag_users {
1: + IP6_DEFRAG_LOCAL_DELIVER = 0,
1: + IP6_DEFRAG_CONNTRACK_IN = 1,
1: + __IP6_DEFRAG_CONNTRACK_IN = 65536,
1: + IP6_DEFRAG_CONNTRACK_OUT = 65537,
1: + __IP6_DEFRAG_CONNTRACK_OUT = 131072,
1: + IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 131073,
1: + __IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 196608,
1: +};
1: +
1: +struct frag_queue {
1: + struct inet_frag_queue q;
1: + int iif;
1: + __u16 nhoffset;
1: + u8 ecn;
1: +};
1: +
1: +struct tcp6_pseudohdr {
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: + __be32 len;
1: + __be32 protocol;
1: +};
1: +
1: +struct rt0_hdr {
1: + struct ipv6_rt_hdr rt_hdr;
1: + __u32 reserved;
1: + struct in6_addr addr[0];
1: +};
1: +
1: +struct ipv6_rpl_sr_hdr {
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: + __u32 cmpre: 4;
1: + __u32 cmpri: 4;
1: + __u32 reserved: 4;
1: + __u32 pad: 4;
1: + __u32 reserved1: 16;
1: + union {
1: + struct in6_addr addr[0];
1: + __u8 data[0];
1: + } segments;
1: +};
1: +
1: +struct tlvtype_proc {
1: + int type;
1: + bool (*func)(struct sk_buff *, int);
1: +};
1: +
1: +struct ip6fl_iter_state {
1: + struct seq_net_private p;
1: + struct pid_namespace *pid_ns;
1: + int bucket;
1: +};
1: +
1: +struct sr6_tlv {
1: + __u8 type;
1: + __u8 len;
1: + __u8 data[0];
1: +};
1: +
1: +enum {
1: + SEG6_ATTR_UNSPEC = 0,
1: + SEG6_ATTR_DST = 1,
1: + SEG6_ATTR_DSTLEN = 2,
1: + SEG6_ATTR_HMACKEYID = 3,
1: + SEG6_ATTR_SECRET = 4,
1: + SEG6_ATTR_SECRETLEN = 5,
1: + SEG6_ATTR_ALGID = 6,
1: + SEG6_ATTR_HMACINFO = 7,
1: + __SEG6_ATTR_MAX = 8,
1: +};
1: +
1: +enum {
1: + SEG6_CMD_UNSPEC = 0,
1: + SEG6_CMD_SETHMAC = 1,
1: + SEG6_CMD_DUMPHMAC = 2,
1: + SEG6_CMD_SET_TUNSRC = 3,
1: + SEG6_CMD_GET_TUNSRC = 4,
1: + __SEG6_CMD_MAX = 5,
1: +};
1: +
1: +typedef short unsigned int mifi_t;
1: +
1: +typedef __u32 if_mask;
1: +
1: +struct if_set {
1: + if_mask ifs_bits[8];
1: +};
1: +
1: +struct mif6ctl {
1: + mifi_t mif6c_mifi;
1: + unsigned char mif6c_flags;
1: + unsigned char vifc_threshold;
1: + __u16 mif6c_pifi;
1: + unsigned int vifc_rate_limit;
1: +};
1: +
1: +struct mf6cctl {
1: + struct sockaddr_in6 mf6cc_origin;
1: + struct sockaddr_in6 mf6cc_mcastgrp;
1: + mifi_t mf6cc_parent;
1: + struct if_set mf6cc_ifset;
1: +};
1: +
1: +struct sioc_sg_req6 {
1: + struct sockaddr_in6 src;
1: + struct sockaddr_in6 grp;
1: + long unsigned int pktcnt;
1: + long unsigned int bytecnt;
1: + long unsigned int wrong_if;
1: +};
1: +
1: +struct sioc_mif_req6 {
1: + mifi_t mifi;
1: + long unsigned int icount;
1: + long unsigned int ocount;
1: + long unsigned int ibytes;
1: + long unsigned int obytes;
1: +};
1: +
1: +struct mrt6msg {
1: + __u8 im6_mbz;
1: + __u8 im6_msgtype;
1: + __u16 im6_mif;
1: + __u32 im6_pad;
1: + struct in6_addr im6_src;
1: + struct in6_addr im6_dst;
1: +};
1: +
1: +enum {
1: + IP6MRA_CREPORT_UNSPEC = 0,
1: + IP6MRA_CREPORT_MSGTYPE = 1,
1: + IP6MRA_CREPORT_MIF_ID = 2,
1: + IP6MRA_CREPORT_SRC_ADDR = 3,
1: + IP6MRA_CREPORT_DST_ADDR = 4,
1: + IP6MRA_CREPORT_PKT = 5,
1: + __IP6MRA_CREPORT_MAX = 6,
1: +};
1: +
1: +struct mfc6_cache_cmp_arg {
1: + struct in6_addr mf6c_mcastgrp;
1: + struct in6_addr mf6c_origin;
1: +};
1: +
1: +struct mfc6_cache {
1: + struct mr_mfc _c;
1: + union {
1: + struct {
1: + struct in6_addr mf6c_mcastgrp;
1: + struct in6_addr mf6c_origin;
1: + };
1: + struct mfc6_cache_cmp_arg cmparg;
1: + };
1: +};
1: +
1: +struct ip6mr_result {
1: + struct mr_table *mrt;
1: +};
1: +
1: +struct compat_sioc_sg_req6 {
1: + struct sockaddr_in6 src;
1: + struct sockaddr_in6 grp;
1: + compat_ulong_t pktcnt;
1: + compat_ulong_t bytecnt;
1: + compat_ulong_t wrong_if;
1: +};
1: +
1: +struct compat_sioc_mif_req6 {
1: + mifi_t mifi;
1: + compat_ulong_t icount;
1: + compat_ulong_t ocount;
1: + compat_ulong_t ibytes;
1: + compat_ulong_t obytes;
1: +};
1: +
1: +struct xfrm6_protocol {
1: + int (*handler)(struct sk_buff *);
1: + int (*input_handler)(struct sk_buff *, int, __be32, int);
1: + int (*cb_handler)(struct sk_buff *, int);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: + struct xfrm6_protocol *next;
1: + int priority;
1: +};
1: +
1: +struct br_input_skb_cb {
1: + struct net_device *brdev;
1: + u16 frag_max_size;
1: + u8 igmp;
1: + u8 mrouters_only: 1;
1: + u8 proxyarp_replied: 1;
1: + u8 src_port_isolated: 1;
1: + u8 vlan_filtered: 1;
1: + u8 br_netfilter_broute: 1;
1: + int offload_fwd_mark;
1: +};
1: +
1: +struct nf_bridge_frag_data;
1: +
1: +typedef struct rt6_info * (*pol_lookup_t)(struct net *, struct fib6_table *, struct flowi6 *, const struct sk_buff *, int);
1: +
1: +struct fib6_rule {
1: + struct fib_rule common;
1: + struct rt6key src;
1: + struct rt6key dst;
1: + u8 tclass;
1: +};
1: +
1: +struct calipso_doi;
1: +
1: +struct netlbl_calipso_ops {
1: + int (*doi_add)(struct calipso_doi *, struct netlbl_audit *);
1: + void (*doi_free)(struct calipso_doi *);
1: + int (*doi_remove)(u32, struct netlbl_audit *);
1: + struct calipso_doi * (*doi_getdef)(u32);
1: + void (*doi_putdef)(struct calipso_doi *);
1: + int (*doi_walk)(u32 *, int (*)(struct calipso_doi *, void *), void *);
1: + int (*sock_getattr)(struct sock *, struct netlbl_lsm_secattr *);
1: + int (*sock_setattr)(struct sock *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: + void (*sock_delattr)(struct sock *);
1: + int (*req_setattr)(struct request_sock *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: + void (*req_delattr)(struct request_sock *);
1: + int (*opt_getattr)(const unsigned char *, struct netlbl_lsm_secattr *);
1: + unsigned char * (*skbuff_optptr)(const struct sk_buff *);
1: + int (*skbuff_setattr)(struct sk_buff *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: + int (*skbuff_delattr)(struct sk_buff *);
1: + void (*cache_invalidate)();
1: + int (*cache_add)(const unsigned char *, const struct netlbl_lsm_secattr *);
1: +};
1: +
1: +struct calipso_doi {
1: + u32 doi;
1: + u32 type;
1: + refcount_t refcount;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct calipso_map_cache_bkt {
1: + spinlock_t lock;
1: + u32 size;
1: + struct list_head list;
1: +};
1: +
1: +struct calipso_map_cache_entry {
1: + u32 hash;
1: + unsigned char *key;
1: + size_t key_len;
1: + struct netlbl_lsm_cache *lsm_data;
1: + u32 activity;
1: + struct list_head list;
1: +};
1: +
1: +enum {
1: + SEG6_IPTUNNEL_UNSPEC = 0,
1: + SEG6_IPTUNNEL_SRH = 1,
1: + __SEG6_IPTUNNEL_MAX = 2,
1: +};
1: +
1: +struct seg6_iptunnel_encap {
1: + int mode;
1: + struct ipv6_sr_hdr srh[0];
1: +};
1: +
1: +enum {
1: + SEG6_IPTUN_MODE_INLINE = 0,
1: + SEG6_IPTUN_MODE_ENCAP = 1,
1: + SEG6_IPTUN_MODE_L2ENCAP = 2,
1: +};
1: +
1: +struct seg6_lwt {
1: + struct dst_cache cache;
1: + struct seg6_iptunnel_encap tuninfo[0];
1: +};
1: +
1: +enum {
1: + SEG6_LOCAL_UNSPEC = 0,
1: + SEG6_LOCAL_ACTION = 1,
1: + SEG6_LOCAL_SRH = 2,
1: + SEG6_LOCAL_TABLE = 3,
1: + SEG6_LOCAL_NH4 = 4,
1: + SEG6_LOCAL_NH6 = 5,
1: + SEG6_LOCAL_IIF = 6,
1: + SEG6_LOCAL_OIF = 7,
1: + SEG6_LOCAL_BPF = 8,
1: + __SEG6_LOCAL_MAX = 9,
1: +};
1: +
1: +enum {
1: + SEG6_LOCAL_BPF_PROG_UNSPEC = 0,
1: + SEG6_LOCAL_BPF_PROG = 1,
1: + SEG6_LOCAL_BPF_PROG_NAME = 2,
1: + __SEG6_LOCAL_BPF_PROG_MAX = 3,
1: +};
1: +
1: +struct seg6_local_lwt;
1: +
1: +struct seg6_action_desc {
1: + int action;
1: + long unsigned int attrs;
1: + int (*input)(struct sk_buff *, struct seg6_local_lwt *);
1: + int static_headroom;
1: +};
1: +
1: +struct seg6_local_lwt {
1: + int action;
1: + struct ipv6_sr_hdr *srh;
1: + int table;
1: + struct in_addr nh4;
1: + struct in6_addr nh6;
1: + int iif;
1: + int oif;
1: + struct bpf_lwt_prog bpf;
1: + int headroom;
1: + struct seg6_action_desc *desc;
1: +};
1: +
1: +struct seg6_action_param {
1: + int (*parse)(struct nlattr **, struct seg6_local_lwt *);
1: + int (*put)(struct sk_buff *, struct seg6_local_lwt *);
1: + int (*cmp)(struct seg6_local_lwt *, struct seg6_local_lwt *);
1: +};
1: +
1: +enum {
1: + RPL_IPTUNNEL_UNSPEC = 0,
1: + RPL_IPTUNNEL_SRH = 1,
1: + __RPL_IPTUNNEL_MAX = 2,
1: +};
1: +
1: +struct rpl_iptunnel_encap {
1: + struct ipv6_rpl_sr_hdr srh[0];
1: +};
1: +
1: +struct rpl_lwt {
1: + struct dst_cache cache;
1: + struct rpl_iptunnel_encap tuninfo;
1: +};
1: +
1: +enum {
1: + IP6_FH_F_FRAG = 1,
1: + IP6_FH_F_AUTH = 2,
1: + IP6_FH_F_SKIP_RH = 4,
1: +};
1: +
1: +struct _strp_msg {
1: + struct strp_msg strp;
1: + int accum_len;
1: +};
1: +
1: +struct vlan_group {
1: + unsigned int nr_vlan_devs;
1: + struct hlist_node hlist;
1: + struct net_device **vlan_devices_arrays[16];
1: +};
1: +
1: +struct vlan_info {
1: + struct net_device *real_dev;
1: + struct vlan_group grp;
1: + struct list_head vid_list;
1: + unsigned int nr_vids;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum vlan_flags {
1: + VLAN_FLAG_REORDER_HDR = 1,
1: + VLAN_FLAG_GVRP = 2,
1: + VLAN_FLAG_LOOSE_BINDING = 4,
1: + VLAN_FLAG_MVRP = 8,
1: + VLAN_FLAG_BRIDGE_BINDING = 16,
1: +};
1: +
1: +struct vlan_priority_tci_mapping {
1: + u32 priority;
1: + u16 vlan_qos;
1: + struct vlan_priority_tci_mapping *next;
1: +};
1: +
1: +struct vlan_dev_priv {
1: + unsigned int nr_ingress_mappings;
1: + u32 ingress_priority_map[8];
1: + unsigned int nr_egress_mappings;
1: + struct vlan_priority_tci_mapping *egress_priority_map[16];
1: + __be16 vlan_proto;
1: + u16 vlan_id;
1: + u16 flags;
1: + struct net_device *real_dev;
1: + unsigned char real_dev_addr[6];
1: + struct proc_dir_entry *dent;
1: + struct vlan_pcpu_stats *vlan_pcpu_stats;
1: + struct netpoll *netpoll;
1: +};
1: +
1: +enum vlan_protos {
1: + VLAN_PROTO_8021Q = 0,
1: + VLAN_PROTO_8021AD = 1,
1: + VLAN_PROTO_NUM = 2,
1: +};
1: +
1: +struct vlan_vid_info {
1: + struct list_head list;
1: + __be16 proto;
1: + u16 vid;
1: + int refcount;
1: +};
1: +
1: +enum nl80211_iftype {
1: + NL80211_IFTYPE_UNSPECIFIED = 0,
1: + NL80211_IFTYPE_ADHOC = 1,
1: + NL80211_IFTYPE_STATION = 2,
1: + NL80211_IFTYPE_AP = 3,
1: + NL80211_IFTYPE_AP_VLAN = 4,
1: + NL80211_IFTYPE_WDS = 5,
1: + NL80211_IFTYPE_MONITOR = 6,
1: + NL80211_IFTYPE_MESH_POINT = 7,
1: + NL80211_IFTYPE_P2P_CLIENT = 8,
1: + NL80211_IFTYPE_P2P_GO = 9,
1: + NL80211_IFTYPE_P2P_DEVICE = 10,
1: + NL80211_IFTYPE_OCB = 11,
1: + NL80211_IFTYPE_NAN = 12,
1: + NUM_NL80211_IFTYPES = 13,
1: + NL80211_IFTYPE_MAX = 12,
1: +};
1: +
1: +struct cfg80211_conn;
1: +
1: +struct cfg80211_cached_keys;
1: +
1: +enum ieee80211_bss_type {
1: + IEEE80211_BSS_TYPE_ESS = 0,
1: + IEEE80211_BSS_TYPE_PBSS = 1,
1: + IEEE80211_BSS_TYPE_IBSS = 2,
1: + IEEE80211_BSS_TYPE_MBSS = 3,
1: + IEEE80211_BSS_TYPE_ANY = 4,
1: +};
1: +
1: +struct cfg80211_internal_bss;
1: +
1: +enum nl80211_chan_width {
1: + NL80211_CHAN_WIDTH_20_NOHT = 0,
1: + NL80211_CHAN_WIDTH_20 = 1,
1: + NL80211_CHAN_WIDTH_40 = 2,
1: + NL80211_CHAN_WIDTH_80 = 3,
1: + NL80211_CHAN_WIDTH_80P80 = 4,
1: + NL80211_CHAN_WIDTH_160 = 5,
1: + NL80211_CHAN_WIDTH_5 = 6,
1: + NL80211_CHAN_WIDTH_10 = 7,
1: + NL80211_CHAN_WIDTH_1 = 8,
1: + NL80211_CHAN_WIDTH_2 = 9,
1: + NL80211_CHAN_WIDTH_4 = 10,
1: + NL80211_CHAN_WIDTH_8 = 11,
1: + NL80211_CHAN_WIDTH_16 = 12,
1: +};
1: +
1: +enum ieee80211_edmg_bw_config {
1: + IEEE80211_EDMG_BW_CONFIG_4 = 4,
1: + IEEE80211_EDMG_BW_CONFIG_5 = 5,
1: + IEEE80211_EDMG_BW_CONFIG_6 = 6,
1: + IEEE80211_EDMG_BW_CONFIG_7 = 7,
1: + IEEE80211_EDMG_BW_CONFIG_8 = 8,
1: + IEEE80211_EDMG_BW_CONFIG_9 = 9,
1: + IEEE80211_EDMG_BW_CONFIG_10 = 10,
1: + IEEE80211_EDMG_BW_CONFIG_11 = 11,
1: + IEEE80211_EDMG_BW_CONFIG_12 = 12,
1: + IEEE80211_EDMG_BW_CONFIG_13 = 13,
1: + IEEE80211_EDMG_BW_CONFIG_14 = 14,
1: + IEEE80211_EDMG_BW_CONFIG_15 = 15,
1: +};
1: +
1: +struct ieee80211_edmg {
1: + u8 channels;
1: + enum ieee80211_edmg_bw_config bw_config;
1: +};
1: +
1: +struct ieee80211_channel;
1: +
1: +struct cfg80211_chan_def {
1: + struct ieee80211_channel *chan;
1: + enum nl80211_chan_width width;
1: + u32 center_freq1;
1: + u32 center_freq2;
1: + struct ieee80211_edmg edmg;
1: + u16 freq1_offset;
1: +};
1: +
1: +struct ieee80211_mcs_info {
1: + u8 rx_mask[10];
1: + __le16 rx_highest;
1: + u8 tx_params;
1: + u8 reserved[3];
1: +};
1: +
1: +struct ieee80211_ht_cap {
1: + __le16 cap_info;
1: + u8 ampdu_params_info;
1: + struct ieee80211_mcs_info mcs;
1: + __le16 extended_ht_cap_info;
1: + __le32 tx_BF_cap_info;
1: + u8 antenna_selection_info;
1: +} __attribute__((packed));
1: +
1: +struct key_params;
1: +
1: +struct cfg80211_ibss_params {
1: + const u8 *ssid;
1: + const u8 *bssid;
1: + struct cfg80211_chan_def chandef;
1: + const u8 *ie;
1: + u8 ssid_len;
1: + u8 ie_len;
1: + u16 beacon_interval;
1: + u32 basic_rates;
1: + bool channel_fixed;
1: + bool privacy;
1: + bool control_port;
1: + bool control_port_over_nl80211;
1: + bool userspace_handles_dfs;
1: + int: 24;
1: + int mcast_rate[5];
1: + struct ieee80211_ht_cap ht_capa;
1: + struct ieee80211_ht_cap ht_capa_mask;
1: + struct key_params *wep_keys;
1: + int wep_tx_key;
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +enum nl80211_auth_type {
1: + NL80211_AUTHTYPE_OPEN_SYSTEM = 0,
1: + NL80211_AUTHTYPE_SHARED_KEY = 1,
1: + NL80211_AUTHTYPE_FT = 2,
1: + NL80211_AUTHTYPE_NETWORK_EAP = 3,
1: + NL80211_AUTHTYPE_SAE = 4,
1: + NL80211_AUTHTYPE_FILS_SK = 5,
1: + NL80211_AUTHTYPE_FILS_SK_PFS = 6,
1: + NL80211_AUTHTYPE_FILS_PK = 7,
1: + __NL80211_AUTHTYPE_NUM = 8,
1: + NL80211_AUTHTYPE_MAX = 7,
1: + NL80211_AUTHTYPE_AUTOMATIC = 8,
1: +};
1: +
1: +enum nl80211_mfp {
1: + NL80211_MFP_NO = 0,
1: + NL80211_MFP_REQUIRED = 1,
1: + NL80211_MFP_OPTIONAL = 2,
1: +};
1: +
1: +struct cfg80211_crypto_settings {
1: + u32 wpa_versions;
1: + u32 cipher_group;
1: + int n_ciphers_pairwise;
1: + u32 ciphers_pairwise[5];
1: + int n_akm_suites;
1: + u32 akm_suites[2];
1: + bool control_port;
1: + __be16 control_port_ethertype;
1: + bool control_port_no_encrypt;
1: + bool control_port_over_nl80211;
1: + bool control_port_no_preauth;
1: + struct key_params *wep_keys;
1: + int wep_tx_key;
1: + const u8 *psk;
1: + const u8 *sae_pwd;
1: + u8 sae_pwd_len;
1: +};
1: +
1: +struct ieee80211_vht_mcs_info {
1: + __le16 rx_mcs_map;
1: + __le16 rx_highest;
1: + __le16 tx_mcs_map;
1: + __le16 tx_highest;
1: +};
1: +
1: +struct ieee80211_vht_cap {
1: + __le32 vht_cap_info;
1: + struct ieee80211_vht_mcs_info supp_mcs;
1: +};
1: +
1: +enum nl80211_bss_select_attr {
1: + __NL80211_BSS_SELECT_ATTR_INVALID = 0,
1: + NL80211_BSS_SELECT_ATTR_RSSI = 1,
1: + NL80211_BSS_SELECT_ATTR_BAND_PREF = 2,
1: + NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3,
1: + __NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4,
1: + NL80211_BSS_SELECT_ATTR_MAX = 3,
1: +};
1: +
1: +enum nl80211_band {
1: + NL80211_BAND_2GHZ = 0,
1: + NL80211_BAND_5GHZ = 1,
1: + NL80211_BAND_60GHZ = 2,
1: + NL80211_BAND_6GHZ = 3,
1: + NL80211_BAND_S1GHZ = 4,
1: + NUM_NL80211_BANDS = 5,
1: +};
1: +
1: +struct cfg80211_bss_select_adjust {
1: + enum nl80211_band band;
1: + s8 delta;
1: +};
1: +
1: +struct cfg80211_bss_selection {
1: + enum nl80211_bss_select_attr behaviour;
1: + union {
1: + enum nl80211_band band_pref;
1: + struct cfg80211_bss_select_adjust adjust;
1: + } param;
1: +};
1: +
1: +struct cfg80211_connect_params {
1: + struct ieee80211_channel *channel;
1: + struct ieee80211_channel *channel_hint;
1: + const u8 *bssid;
1: + const u8 *bssid_hint;
1: + const u8 *ssid;
1: + size_t ssid_len;
1: + enum nl80211_auth_type auth_type;
1: + int: 32;
1: + const u8 *ie;
1: + size_t ie_len;
1: + bool privacy;
1: + int: 24;
1: + enum nl80211_mfp mfp;
1: + struct cfg80211_crypto_settings crypto;
1: + const u8 *key;
1: + u8 key_len;
1: + u8 key_idx;
1: + short: 16;
1: + u32 flags;
1: + int bg_scan_period;
1: + struct ieee80211_ht_cap ht_capa;
1: + struct ieee80211_ht_cap ht_capa_mask;
1: + struct ieee80211_vht_cap vht_capa;
1: + struct ieee80211_vht_cap vht_capa_mask;
1: + bool pbss;
1: + int: 24;
1: + struct cfg80211_bss_selection bss_select;
1: + const u8 *prev_bssid;
1: + const u8 *fils_erp_username;
1: + size_t fils_erp_username_len;
1: + const u8 *fils_erp_realm;
1: + size_t fils_erp_realm_len;
1: + u16 fils_erp_next_seq_num;
1: + long: 48;
1: + const u8 *fils_erp_rrk;
1: + size_t fils_erp_rrk_len;
1: + bool want_1x;
1: + int: 24;
1: + struct ieee80211_edmg edmg;
1: + int: 32;
1: +} __attribute__((packed));
1: +
1: +struct cfg80211_cqm_config;
1: +
1: +struct wiphy;
1: +
1: +struct wireless_dev {
1: + struct wiphy *wiphy;
1: + enum nl80211_iftype iftype;
1: + struct list_head list;
1: + struct net_device *netdev;
1: + u32 identifier;
1: + struct list_head mgmt_registrations;
1: + spinlock_t mgmt_registrations_lock;
1: + u8 mgmt_registrations_need_update: 1;
1: + struct mutex mtx;
1: + bool use_4addr;
1: + bool is_running;
1: + u8 address[6];
1: + u8 ssid[32];
1: + u8 ssid_len;
1: + u8 mesh_id_len;
1: + u8 mesh_id_up_len;
1: + struct cfg80211_conn *conn;
1: + struct cfg80211_cached_keys *connect_keys;
1: + enum ieee80211_bss_type conn_bss_type;
1: + u32 conn_owner_nlportid;
1: + struct work_struct disconnect_wk;
1: + u8 disconnect_bssid[6];
1: + struct list_head event_list;
1: + spinlock_t event_lock;
1: + struct cfg80211_internal_bss *current_bss;
1: + struct cfg80211_chan_def preset_chandef;
1: + struct cfg80211_chan_def chandef;
1: + bool ibss_fixed;
1: + bool ibss_dfs_possible;
1: + bool ps;
1: + int ps_timeout;
1: + int beacon_interval;
1: + u32 ap_unexpected_nlportid;
1: + u32 owner_nlportid;
1: + bool nl_owner_dead;
1: + bool cac_started;
1: + long unsigned int cac_start_time;
1: + unsigned int cac_time_ms;
1: + struct {
1: + struct cfg80211_ibss_params ibss;
1: + struct cfg80211_connect_params connect;
1: + struct cfg80211_cached_keys *keys;
1: + const u8 *ie;
1: + size_t ie_len;
1: + u8 bssid[6];
1: + u8 prev_bssid[6];
1: + u8 ssid[32];
1: + s8 default_key;
1: + s8 default_mgmt_key;
1: + bool prev_bssid_valid;
1: + } wext;
1: + struct cfg80211_cqm_config *cqm_config;
1: + struct list_head pmsr_list;
1: + spinlock_t pmsr_lock;
1: + struct work_struct pmsr_free_wk;
1: + long unsigned int unprot_beacon_reported;
1: +};
1: +
1: +struct iw_encode_ext {
1: + __u32 ext_flags;
1: + __u8 tx_seq[8];
1: + __u8 rx_seq[8];
1: + struct sockaddr addr;
1: + __u16 alg;
1: + __u16 key_len;
1: + __u8 key[0];
1: +};
1: +
1: +struct iwreq {
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union iwreq_data u;
1: +};
1: +
1: +struct iw_event {
1: + __u16 len;
1: + __u16 cmd;
1: + union iwreq_data u;
1: +};
1: +
1: +struct compat_iw_point {
1: + compat_caddr_t pointer;
1: + __u16 length;
1: + __u16 flags;
1: +};
1: +
1: +struct __compat_iw_event {
1: + __u16 len;
1: + __u16 cmd;
1: + compat_caddr_t pointer;
1: +};
1: +
1: +enum nl80211_reg_initiator {
1: + NL80211_REGDOM_SET_BY_CORE = 0,
1: + NL80211_REGDOM_SET_BY_USER = 1,
1: + NL80211_REGDOM_SET_BY_DRIVER = 2,
1: + NL80211_REGDOM_SET_BY_COUNTRY_IE = 3,
1: +};
1: +
1: +enum nl80211_dfs_regions {
1: + NL80211_DFS_UNSET = 0,
1: + NL80211_DFS_FCC = 1,
1: + NL80211_DFS_ETSI = 2,
1: + NL80211_DFS_JP = 3,
1: +};
1: +
1: +enum nl80211_user_reg_hint_type {
1: + NL80211_USER_REG_HINT_USER = 0,
1: + NL80211_USER_REG_HINT_CELL_BASE = 1,
1: + NL80211_USER_REG_HINT_INDOOR = 2,
1: +};
1: +
1: +enum nl80211_mntr_flags {
1: + __NL80211_MNTR_FLAG_INVALID = 0,
1: + NL80211_MNTR_FLAG_FCSFAIL = 1,
1: + NL80211_MNTR_FLAG_PLCPFAIL = 2,
1: + NL80211_MNTR_FLAG_CONTROL = 3,
1: + NL80211_MNTR_FLAG_OTHER_BSS = 4,
1: + NL80211_MNTR_FLAG_COOK_FRAMES = 5,
1: + NL80211_MNTR_FLAG_ACTIVE = 6,
1: + __NL80211_MNTR_FLAG_AFTER_LAST = 7,
1: + NL80211_MNTR_FLAG_MAX = 6,
1: +};
1: +
1: +enum nl80211_key_mode {
1: + NL80211_KEY_RX_TX = 0,
1: + NL80211_KEY_NO_TX = 1,
1: + NL80211_KEY_SET_TX = 2,
1: +};
1: +
1: +enum nl80211_bss_scan_width {
1: + NL80211_BSS_CHAN_WIDTH_20 = 0,
1: + NL80211_BSS_CHAN_WIDTH_10 = 1,
1: + NL80211_BSS_CHAN_WIDTH_5 = 2,
1: + NL80211_BSS_CHAN_WIDTH_1 = 3,
1: + NL80211_BSS_CHAN_WIDTH_2 = 4,
1: +};
1: +
1: +struct nl80211_wowlan_tcp_data_seq {
1: + __u32 start;
1: + __u32 offset;
1: + __u32 len;
1: +};
1: +
1: +struct nl80211_wowlan_tcp_data_token {
1: + __u32 offset;
1: + __u32 len;
1: + __u8 token_stream[0];
1: +};
1: +
1: +struct nl80211_wowlan_tcp_data_token_feature {
1: + __u32 min_len;
1: + __u32 max_len;
1: + __u32 bufsize;
1: +};
1: +
1: +enum nl80211_ext_feature_index {
1: + NL80211_EXT_FEATURE_VHT_IBSS = 0,
1: + NL80211_EXT_FEATURE_RRM = 1,
1: + NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2,
1: + NL80211_EXT_FEATURE_SCAN_START_TIME = 3,
1: + NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4,
1: + NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5,
1: + NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6,
1: + NL80211_EXT_FEATURE_BEACON_RATE_HT = 7,
1: + NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8,
1: + NL80211_EXT_FEATURE_FILS_STA = 9,
1: + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10,
1: + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11,
1: + NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12,
1: + NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13,
1: + NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16,
1: + NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17,
1: + NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18,
1: + NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19,
1: + NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20,
1: + NL80211_EXT_FEATURE_MFP_OPTIONAL = 21,
1: + NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22,
1: + NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23,
1: + NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24,
1: + NL80211_EXT_FEATURE_DFS_OFFLOAD = 25,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26,
1: + NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27,
1: + NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 27,
1: + NL80211_EXT_FEATURE_TXQS = 28,
1: + NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29,
1: + NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30,
1: + NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31,
1: + NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32,
1: + NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33,
1: + NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34,
1: + NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35,
1: + NL80211_EXT_FEATURE_EXT_KEY_ID = 36,
1: + NL80211_EXT_FEATURE_STA_TX_PWR = 37,
1: + NL80211_EXT_FEATURE_SAE_OFFLOAD = 38,
1: + NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39,
1: + NL80211_EXT_FEATURE_AQL = 40,
1: + NL80211_EXT_FEATURE_BEACON_PROTECTION = 41,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42,
1: + NL80211_EXT_FEATURE_PROTECTED_TWT = 43,
1: + NL80211_EXT_FEATURE_DEL_IBSS_STA = 44,
1: + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45,
1: + NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46,
1: + NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48,
1: + NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50,
1: + NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51,
1: + NL80211_EXT_FEATURE_FILS_DISCOVERY = 52,
1: + NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53,
1: + NUM_NL80211_EXT_FEATURES = 54,
1: + MAX_NL80211_EXT_FEATURES = 53,
1: +};
1: +
1: +enum nl80211_dfs_state {
1: + NL80211_DFS_USABLE = 0,
1: + NL80211_DFS_UNAVAILABLE = 1,
1: + NL80211_DFS_AVAILABLE = 2,
1: +};
1: +
1: +struct nl80211_vendor_cmd_info {
1: + __u32 vendor_id;
1: + __u32 subcmd;
1: +};
1: +
1: +struct ieee80211_he_cap_elem {
1: + u8 mac_cap_info[6];
1: + u8 phy_cap_info[11];
1: +};
1: +
1: +struct ieee80211_he_mcs_nss_supp {
1: + __le16 rx_mcs_80;
1: + __le16 tx_mcs_80;
1: + __le16 rx_mcs_160;
1: + __le16 tx_mcs_160;
1: + __le16 rx_mcs_80p80;
1: + __le16 tx_mcs_80p80;
1: +};
1: +
1: +struct ieee80211_he_6ghz_capa {
1: + __le16 capa;
1: +};
1: +
1: +enum environment_cap {
1: + ENVIRON_ANY = 0,
1: + ENVIRON_INDOOR = 1,
1: + ENVIRON_OUTDOOR = 2,
1: +};
1: +
1: +struct regulatory_request {
1: + struct callback_head callback_head;
1: + int wiphy_idx;
1: + enum nl80211_reg_initiator initiator;
1: + enum nl80211_user_reg_hint_type user_reg_hint_type;
1: + char alpha2[3];
1: + enum nl80211_dfs_regions dfs_region;
1: + bool intersect;
1: + bool processed;
1: + enum environment_cap country_ie_env;
1: + struct list_head list;
1: +};
1: +
1: +struct ieee80211_freq_range {
1: + u32 start_freq_khz;
1: + u32 end_freq_khz;
1: + u32 max_bandwidth_khz;
1: +};
1: +
1: +struct ieee80211_power_rule {
1: + u32 max_antenna_gain;
1: + u32 max_eirp;
1: +};
1: +
1: +struct ieee80211_wmm_ac {
1: + u16 cw_min;
1: + u16 cw_max;
1: + u16 cot;
1: + u8 aifsn;
1: +};
1: +
1: +struct ieee80211_wmm_rule {
1: + struct ieee80211_wmm_ac client[4];
1: + struct ieee80211_wmm_ac ap[4];
1: +};
1: +
1: +struct ieee80211_reg_rule {
1: + struct ieee80211_freq_range freq_range;
1: + struct ieee80211_power_rule power_rule;
1: + struct ieee80211_wmm_rule wmm_rule;
1: + u32 flags;
1: + u32 dfs_cac_ms;
1: + bool has_wmm;
1: +};
1: +
1: +struct ieee80211_regdomain {
1: + struct callback_head callback_head;
1: + u32 n_reg_rules;
1: + char alpha2[3];
1: + enum nl80211_dfs_regions dfs_region;
1: + struct ieee80211_reg_rule reg_rules[0];
1: +};
1: +
1: +struct ieee80211_channel {
1: + enum nl80211_band band;
1: + u32 center_freq;
1: + u16 freq_offset;
1: + u16 hw_value;
1: + u32 flags;
1: + int max_antenna_gain;
1: + int max_power;
1: + int max_reg_power;
1: + bool beacon_found;
1: + u32 orig_flags;
1: + int orig_mag;
1: + int orig_mpwr;
1: + enum nl80211_dfs_state dfs_state;
1: + long unsigned int dfs_state_entered;
1: + unsigned int dfs_cac_ms;
1: +};
1: +
1: +struct ieee80211_rate {
1: + u32 flags;
1: + u16 bitrate;
1: + u16 hw_value;
1: + u16 hw_value_short;
1: +};
1: +
1: +struct ieee80211_sta_ht_cap {
1: + u16 cap;
1: + bool ht_supported;
1: + u8 ampdu_factor;
1: + u8 ampdu_density;
1: + struct ieee80211_mcs_info mcs;
1: + char: 8;
1: +} __attribute__((packed));
1: +
1: +struct ieee80211_sta_vht_cap {
1: + bool vht_supported;
1: + u32 cap;
1: + struct ieee80211_vht_mcs_info vht_mcs;
1: +};
1: +
1: +struct ieee80211_sta_he_cap {
1: + bool has_he;
1: + struct ieee80211_he_cap_elem he_cap_elem;
1: + struct ieee80211_he_mcs_nss_supp he_mcs_nss_supp;
1: + u8 ppe_thres[25];
1: +} __attribute__((packed));
1: +
1: +struct ieee80211_sband_iftype_data {
1: + u16 types_mask;
1: + struct ieee80211_sta_he_cap he_cap;
1: + struct ieee80211_he_6ghz_capa he_6ghz_capa;
1: + char: 8;
1: +} __attribute__((packed));
1: +
1: +struct ieee80211_sta_s1g_cap {
1: + bool s1g;
1: + u8 cap[10];
1: + u8 nss_mcs[5];
1: +};
1: +
1: +struct ieee80211_supported_band {
1: + struct ieee80211_channel *channels;
1: + struct ieee80211_rate *bitrates;
1: + enum nl80211_band band;
1: + int n_channels;
1: + int n_bitrates;
1: + struct ieee80211_sta_ht_cap ht_cap;
1: + struct ieee80211_sta_vht_cap vht_cap;
1: + struct ieee80211_sta_s1g_cap s1g_cap;
1: + struct ieee80211_edmg edmg_cap;
1: + u16 n_iftype_data;
1: + const struct ieee80211_sband_iftype_data *iftype_data;
1: +};
1: +
1: +struct key_params {
1: + const u8 *key;
1: + const u8 *seq;
1: + int key_len;
1: + int seq_len;
1: + u16 vlan_id;
1: + u32 cipher;
1: + enum nl80211_key_mode mode;
1: +};
1: +
1: +struct mac_address {
1: + u8 addr[6];
1: +};
1: +
1: +struct cfg80211_ssid {
1: + u8 ssid[32];
1: + u8 ssid_len;
1: +};
1: +
1: +enum cfg80211_signal_type {
1: + CFG80211_SIGNAL_TYPE_NONE = 0,
1: + CFG80211_SIGNAL_TYPE_MBM = 1,
1: + CFG80211_SIGNAL_TYPE_UNSPEC = 2,
1: +};
1: +
1: +struct ieee80211_txrx_stypes;
1: +
1: +struct ieee80211_iface_combination;
1: +
1: +struct wiphy_iftype_akm_suites;
1: +
1: +struct wiphy_wowlan_support;
1: +
1: +struct cfg80211_wowlan;
1: +
1: +struct wiphy_iftype_ext_capab;
1: +
1: +struct wiphy_coalesce_support;
1: +
1: +struct wiphy_vendor_command;
1: +
1: +struct cfg80211_pmsr_capabilities;
1: +
1: +struct wiphy {
1: + u8 perm_addr[6];
1: + u8 addr_mask[6];
1: + struct mac_address *addresses;
1: + const struct ieee80211_txrx_stypes *mgmt_stypes;
1: + const struct ieee80211_iface_combination *iface_combinations;
1: + int n_iface_combinations;
1: + u16 software_iftypes;
1: + u16 n_addresses;
1: + u16 interface_modes;
1: + u16 max_acl_mac_addrs;
1: + u32 flags;
1: + u32 regulatory_flags;
1: + u32 features;
1: + u8 ext_features[7];
1: + u32 ap_sme_capa;
1: + enum cfg80211_signal_type signal_type;
1: + int bss_priv_size;
1: + u8 max_scan_ssids;
1: + u8 max_sched_scan_reqs;
1: + u8 max_sched_scan_ssids;
1: + u8 max_match_sets;
1: + u16 max_scan_ie_len;
1: + u16 max_sched_scan_ie_len;
1: + u32 max_sched_scan_plans;
1: + u32 max_sched_scan_plan_interval;
1: + u32 max_sched_scan_plan_iterations;
1: + int n_cipher_suites;
1: + const u32 *cipher_suites;
1: + int n_akm_suites;
1: + const u32 *akm_suites;
1: + const struct wiphy_iftype_akm_suites *iftype_akm_suites;
1: + unsigned int num_iftype_akm_suites;
1: + u8 retry_short;
1: + u8 retry_long;
1: + u32 frag_threshold;
1: + u32 rts_threshold;
1: + u8 coverage_class;
1: + char fw_version[32];
1: + u32 hw_version;
1: + const struct wiphy_wowlan_support *wowlan;
1: + struct cfg80211_wowlan *wowlan_config;
1: + u16 max_remain_on_channel_duration;
1: + u8 max_num_pmkids;
1: + u32 available_antennas_tx;
1: + u32 available_antennas_rx;
1: + u32 probe_resp_offload;
1: + const u8 *extended_capabilities;
1: + const u8 *extended_capabilities_mask;
1: + u8 extended_capabilities_len;
1: + const struct wiphy_iftype_ext_capab *iftype_ext_capab;
1: + unsigned int num_iftype_ext_capab;
1: + const void *privid;
1: + struct ieee80211_supported_band *bands[5];
1: + void (*reg_notifier)(struct wiphy *, struct regulatory_request *);
1: + const struct ieee80211_regdomain *regd;
1: + struct device dev;
1: + bool registered;
1: + struct dentry *debugfsdir;
1: + const struct ieee80211_ht_cap *ht_capa_mod_mask;
1: + const struct ieee80211_vht_cap *vht_capa_mod_mask;
1: + struct list_head wdev_list;
1: + possible_net_t _net;
1: + const struct iw_handler_def *wext;
1: + const struct wiphy_coalesce_support *coalesce;
1: + const struct wiphy_vendor_command *vendor_commands;
1: + const struct nl80211_vendor_cmd_info *vendor_events;
1: + int n_vendor_commands;
1: + int n_vendor_events;
1: + u16 max_ap_assoc_sta;
1: + u8 max_num_csa_counters;
1: + u32 bss_select_support;
1: + u8 nan_supported_bands;
1: + u32 txq_limit;
1: + u32 txq_memory_limit;
1: + u32 txq_quantum;
1: + long unsigned int tx_queue_len;
1: + u8 support_mbssid: 1;
1: + u8 support_only_he_mbssid: 1;
1: + const struct cfg80211_pmsr_capabilities *pmsr_capa;
1: + struct {
1: + u64 peer;
1: + u64 vif;
1: + u8 max_retry;
1: + } tid_config_support;
1: + u8 max_data_retry_count;
1: + long: 56;
1: + long: 64;
1: + char priv[0];
1: +};
1: +
1: +struct cfg80211_match_set {
1: + struct cfg80211_ssid ssid;
1: + u8 bssid[6];
1: + s32 rssi_thold;
1: + s32 per_band_rssi_thold[5];
1: +};
1: +
1: +struct cfg80211_sched_scan_plan {
1: + u32 interval;
1: + u32 iterations;
1: +};
1: +
1: +struct cfg80211_sched_scan_request {
1: + u64 reqid;
1: + struct cfg80211_ssid *ssids;
1: + int n_ssids;
1: + u32 n_channels;
1: + enum nl80211_bss_scan_width scan_width;
1: + const u8 *ie;
1: + size_t ie_len;
1: + u32 flags;
1: + struct cfg80211_match_set *match_sets;
1: + int n_match_sets;
1: + s32 min_rssi_thold;
1: + u32 delay;
1: + struct cfg80211_sched_scan_plan *scan_plans;
1: + int n_scan_plans;
1: + u8 mac_addr[6];
1: + u8 mac_addr_mask[6];
1: + bool relative_rssi_set;
1: + s8 relative_rssi;
1: + struct cfg80211_bss_select_adjust rssi_adjust;
1: + struct wiphy *wiphy;
1: + struct net_device *dev;
1: + long unsigned int scan_start;
1: + bool report_results;
1: + struct callback_head callback_head;
1: + u32 owner_nlportid;
1: + bool nl_owner_dead;
1: + struct list_head list;
1: + struct ieee80211_channel *channels[0];
1: +};
1: +
1: +struct cfg80211_pkt_pattern {
1: + const u8 *mask;
1: + const u8 *pattern;
1: + int pattern_len;
1: + int pkt_offset;
1: +};
1: +
1: +struct cfg80211_wowlan_tcp {
1: + struct socket *sock;
1: + __be32 src;
1: + __be32 dst;
1: + u16 src_port;
1: + u16 dst_port;
1: + u8 dst_mac[6];
1: + int payload_len;
1: + const u8 *payload;
1: + struct nl80211_wowlan_tcp_data_seq payload_seq;
1: + u32 data_interval;
1: + u32 wake_len;
1: + const u8 *wake_data;
1: + const u8 *wake_mask;
1: + u32 tokens_size;
1: + struct nl80211_wowlan_tcp_data_token payload_tok;
1: +};
1: +
1: +struct cfg80211_wowlan {
1: + bool any;
1: + bool disconnect;
1: + bool magic_pkt;
1: + bool gtk_rekey_failure;
1: + bool eap_identity_req;
1: + bool four_way_handshake;
1: + bool rfkill_release;
1: + struct cfg80211_pkt_pattern *patterns;
1: + struct cfg80211_wowlan_tcp *tcp;
1: + int n_patterns;
1: + struct cfg80211_sched_scan_request *nd_config;
1: +};
1: +
1: +struct ieee80211_iface_limit {
1: + u16 max;
1: + u16 types;
1: +};
1: +
1: +struct ieee80211_iface_combination {
1: + const struct ieee80211_iface_limit *limits;
1: + u32 num_different_channels;
1: + u16 max_interfaces;
1: + u8 n_limits;
1: + bool beacon_int_infra_match;
1: + u8 radar_detect_widths;
1: + u8 radar_detect_regions;
1: + u32 beacon_int_min_gcd;
1: +};
1: +
1: +struct ieee80211_txrx_stypes {
1: + u16 tx;
1: + u16 rx;
1: +};
1: +
1: +struct wiphy_wowlan_tcp_support {
1: + const struct nl80211_wowlan_tcp_data_token_feature *tok;
1: + u32 data_payload_max;
1: + u32 data_interval_max;
1: + u32 wake_payload_max;
1: + bool seq;
1: +};
1: +
1: +struct wiphy_wowlan_support {
1: + u32 flags;
1: + int n_patterns;
1: + int pattern_max_len;
1: + int pattern_min_len;
1: + int max_pkt_offset;
1: + int max_nd_match_sets;
1: + const struct wiphy_wowlan_tcp_support *tcp;
1: +};
1: +
1: +struct wiphy_coalesce_support {
1: + int n_rules;
1: + int max_delay;
1: + int n_patterns;
1: + int pattern_max_len;
1: + int pattern_min_len;
1: + int max_pkt_offset;
1: +};
1: +
1: +struct wiphy_vendor_command {
1: + struct nl80211_vendor_cmd_info info;
1: + u32 flags;
1: + int (*doit)(struct wiphy *, struct wireless_dev *, const void *, int);
1: + int (*dumpit)(struct wiphy *, struct wireless_dev *, struct sk_buff *, const void *, int, long unsigned int *);
1: + const struct nla_policy *policy;
1: + unsigned int maxattr;
1: +};
1: +
1: +struct wiphy_iftype_ext_capab {
1: + enum nl80211_iftype iftype;
1: + const u8 *extended_capabilities;
1: + const u8 *extended_capabilities_mask;
1: + u8 extended_capabilities_len;
1: +};
1: +
1: +struct cfg80211_pmsr_capabilities {
1: + unsigned int max_peers;
1: + u8 report_ap_tsf: 1;
1: + u8 randomize_mac_addr: 1;
1: + struct {
1: + u32 preambles;
1: + u32 bandwidths;
1: + s8 max_bursts_exponent;
1: + u8 max_ftms_per_burst;
1: + u8 supported: 1;
1: + u8 asap: 1;
1: + u8 non_asap: 1;
1: + u8 request_lci: 1;
1: + u8 request_civicloc: 1;
1: + u8 trigger_based: 1;
1: + u8 non_trigger_based: 1;
1: + } ftm;
1: +};
1: +
1: +struct wiphy_iftype_akm_suites {
1: + u16 iftypes_mask;
1: + const u32 *akm_suites;
1: + int n_akm_suites;
1: +};
1: +
1: +struct iw_ioctl_description {
1: + __u8 header_type;
1: + __u8 token_type;
1: + __u16 token_size;
1: + __u16 min_tokens;
1: + __u16 max_tokens;
1: + __u32 flags;
1: +};
1: +
1: +typedef int (*wext_ioctl_func)(struct net_device *, struct iwreq *, unsigned int, struct iw_request_info *, iw_handler);
1: +
1: +struct iw_thrspy {
1: + struct sockaddr addr;
1: + struct iw_quality qual;
1: + struct iw_quality low;
1: + struct iw_quality high;
1: +};
1: +
1: +struct netlbl_af4list {
1: + __be32 addr;
1: + __be32 mask;
1: + u32 valid;
1: + struct list_head list;
1: +};
1: +
1: +struct netlbl_af6list {
1: + struct in6_addr addr;
1: + struct in6_addr mask;
1: + u32 valid;
1: + struct list_head list;
1: +};
1: +
1: +struct netlbl_domaddr_map {
1: + struct list_head list4;
1: + struct list_head list6;
1: +};
1: +
1: +struct netlbl_dommap_def {
1: + u32 type;
1: + union {
1: + struct netlbl_domaddr_map *addrsel;
1: + struct cipso_v4_doi *cipso;
1: + struct calipso_doi *calipso;
1: + };
1: +};
1: +
1: +struct netlbl_domaddr4_map {
1: + struct netlbl_dommap_def def;
1: + struct netlbl_af4list list;
1: +};
1: +
1: +struct netlbl_domaddr6_map {
1: + struct netlbl_dommap_def def;
1: + struct netlbl_af6list list;
1: +};
1: +
1: +struct netlbl_dom_map {
1: + char *domain;
1: + u16 family;
1: + struct netlbl_dommap_def def;
1: + u32 valid;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netlbl_domhsh_tbl {
1: + struct list_head *tbl;
1: + u32 size;
1: +};
1: +
1: +enum {
1: + NLBL_MGMT_C_UNSPEC = 0,
1: + NLBL_MGMT_C_ADD = 1,
1: + NLBL_MGMT_C_REMOVE = 2,
1: + NLBL_MGMT_C_LISTALL = 3,
1: + NLBL_MGMT_C_ADDDEF = 4,
1: + NLBL_MGMT_C_REMOVEDEF = 5,
1: + NLBL_MGMT_C_LISTDEF = 6,
1: + NLBL_MGMT_C_PROTOCOLS = 7,
1: + NLBL_MGMT_C_VERSION = 8,
1: + NLBL_MGMT_C_S0_SET = 9,
1: + NLBL_MGMT_C_S0_GET = 10,
1: + __NLBL_MGMT_C_MAX = 11,
1: +};
1: +
1: +enum {
1: + NLBL_MGMT_A_UNSPEC = 0,
1: + NLBL_MGMT_A_DOMAIN = 1,
1: + NLBL_MGMT_A_PROTOCOL = 2,
1: + NLBL_MGMT_A_VERSION = 3,
1: + NLBL_MGMT_A_CV4DOI = 4,
1: + NLBL_MGMT_A_IPV6ADDR = 5,
1: + NLBL_MGMT_A_IPV6MASK = 6,
1: + NLBL_MGMT_A_IPV4ADDR = 7,
1: + NLBL_MGMT_A_IPV4MASK = 8,
1: + NLBL_MGMT_A_ADDRSELECTOR = 9,
1: + NLBL_MGMT_A_SELECTORLIST = 10,
1: + NLBL_MGMT_A_FAMILY = 11,
1: + NLBL_MGMT_A_CLPDOI = 12,
1: + NLBL_MGMT_A_S0 = 13,
1: + __NLBL_MGMT_A_MAX = 14,
1: +};
1: +
1: +struct netlbl_domhsh_walk_arg {
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: +};
1: +
1: +enum {
1: + NLBL_UNLABEL_C_UNSPEC = 0,
1: + NLBL_UNLABEL_C_ACCEPT = 1,
1: + NLBL_UNLABEL_C_LIST = 2,
1: + NLBL_UNLABEL_C_STATICADD = 3,
1: + NLBL_UNLABEL_C_STATICREMOVE = 4,
1: + NLBL_UNLABEL_C_STATICLIST = 5,
1: + NLBL_UNLABEL_C_STATICADDDEF = 6,
1: + NLBL_UNLABEL_C_STATICREMOVEDEF = 7,
1: + NLBL_UNLABEL_C_STATICLISTDEF = 8,
1: + __NLBL_UNLABEL_C_MAX = 9,
1: +};
1: +
1: +enum {
1: + NLBL_UNLABEL_A_UNSPEC = 0,
1: + NLBL_UNLABEL_A_ACPTFLG = 1,
1: + NLBL_UNLABEL_A_IPV6ADDR = 2,
1: + NLBL_UNLABEL_A_IPV6MASK = 3,
1: + NLBL_UNLABEL_A_IPV4ADDR = 4,
1: + NLBL_UNLABEL_A_IPV4MASK = 5,
1: + NLBL_UNLABEL_A_IFACE = 6,
1: + NLBL_UNLABEL_A_SECCTX = 7,
1: + __NLBL_UNLABEL_A_MAX = 8,
1: +};
1: +
1: +struct netlbl_unlhsh_tbl {
1: + struct list_head *tbl;
1: + u32 size;
1: +};
1: +
1: +struct netlbl_unlhsh_addr4 {
1: + u32 secid;
1: + struct netlbl_af4list list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netlbl_unlhsh_addr6 {
1: + u32 secid;
1: + struct netlbl_af6list list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netlbl_unlhsh_iface {
1: + int ifindex;
1: + struct list_head addr4_list;
1: + struct list_head addr6_list;
1: + u32 valid;
1: + struct list_head list;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct netlbl_unlhsh_walk_arg {
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: +};
1: +
1: +enum {
1: + NLBL_CIPSOV4_C_UNSPEC = 0,
1: + NLBL_CIPSOV4_C_ADD = 1,
1: + NLBL_CIPSOV4_C_REMOVE = 2,
1: + NLBL_CIPSOV4_C_LIST = 3,
1: + NLBL_CIPSOV4_C_LISTALL = 4,
1: + __NLBL_CIPSOV4_C_MAX = 5,
1: +};
1: +
1: +enum {
1: + NLBL_CIPSOV4_A_UNSPEC = 0,
1: + NLBL_CIPSOV4_A_DOI = 1,
1: + NLBL_CIPSOV4_A_MTYPE = 2,
1: + NLBL_CIPSOV4_A_TAG = 3,
1: + NLBL_CIPSOV4_A_TAGLST = 4,
1: + NLBL_CIPSOV4_A_MLSLVLLOC = 5,
1: + NLBL_CIPSOV4_A_MLSLVLREM = 6,
1: + NLBL_CIPSOV4_A_MLSLVL = 7,
1: + NLBL_CIPSOV4_A_MLSLVLLST = 8,
1: + NLBL_CIPSOV4_A_MLSCATLOC = 9,
1: + NLBL_CIPSOV4_A_MLSCATREM = 10,
1: + NLBL_CIPSOV4_A_MLSCAT = 11,
1: + NLBL_CIPSOV4_A_MLSCATLST = 12,
1: + __NLBL_CIPSOV4_A_MAX = 13,
1: +};
1: +
1: +struct netlbl_cipsov4_doiwalk_arg {
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: +};
1: +
1: +struct netlbl_domhsh_walk_arg___2 {
1: + struct netlbl_audit *audit_info;
1: + u32 doi;
1: +};
1: +
1: +enum {
1: + NLBL_CALIPSO_C_UNSPEC = 0,
1: + NLBL_CALIPSO_C_ADD = 1,
1: + NLBL_CALIPSO_C_REMOVE = 2,
1: + NLBL_CALIPSO_C_LIST = 3,
1: + NLBL_CALIPSO_C_LISTALL = 4,
1: + __NLBL_CALIPSO_C_MAX = 5,
1: +};
1: +
1: +enum {
1: + NLBL_CALIPSO_A_UNSPEC = 0,
1: + NLBL_CALIPSO_A_DOI = 1,
1: + NLBL_CALIPSO_A_MTYPE = 2,
1: + __NLBL_CALIPSO_A_MAX = 3,
1: +};
1: +
1: +struct netlbl_calipso_doiwalk_arg {
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: +};
1: +
1: +struct dcbmsg {
1: + __u8 dcb_family;
1: + __u8 cmd;
1: + __u16 dcb_pad;
1: +};
1: +
1: +enum dcbnl_commands {
1: + DCB_CMD_UNDEFINED = 0,
1: + DCB_CMD_GSTATE = 1,
1: + DCB_CMD_SSTATE = 2,
1: + DCB_CMD_PGTX_GCFG = 3,
1: + DCB_CMD_PGTX_SCFG = 4,
1: + DCB_CMD_PGRX_GCFG = 5,
1: + DCB_CMD_PGRX_SCFG = 6,
1: + DCB_CMD_PFC_GCFG = 7,
1: + DCB_CMD_PFC_SCFG = 8,
1: + DCB_CMD_SET_ALL = 9,
1: + DCB_CMD_GPERM_HWADDR = 10,
1: + DCB_CMD_GCAP = 11,
1: + DCB_CMD_GNUMTCS = 12,
1: + DCB_CMD_SNUMTCS = 13,
1: + DCB_CMD_PFC_GSTATE = 14,
1: + DCB_CMD_PFC_SSTATE = 15,
1: + DCB_CMD_BCN_GCFG = 16,
1: + DCB_CMD_BCN_SCFG = 17,
1: + DCB_CMD_GAPP = 18,
1: + DCB_CMD_SAPP = 19,
1: + DCB_CMD_IEEE_SET = 20,
1: + DCB_CMD_IEEE_GET = 21,
1: + DCB_CMD_GDCBX = 22,
1: + DCB_CMD_SDCBX = 23,
1: + DCB_CMD_GFEATCFG = 24,
1: + DCB_CMD_SFEATCFG = 25,
1: + DCB_CMD_CEE_GET = 26,
1: + DCB_CMD_IEEE_DEL = 27,
1: + __DCB_CMD_ENUM_MAX = 28,
1: + DCB_CMD_MAX = 27,
1: +};
1: +
1: +enum dcbnl_attrs {
1: + DCB_ATTR_UNDEFINED = 0,
1: + DCB_ATTR_IFNAME = 1,
1: + DCB_ATTR_STATE = 2,
1: + DCB_ATTR_PFC_STATE = 3,
1: + DCB_ATTR_PFC_CFG = 4,
1: + DCB_ATTR_NUM_TC = 5,
1: + DCB_ATTR_PG_CFG = 6,
1: + DCB_ATTR_SET_ALL = 7,
1: + DCB_ATTR_PERM_HWADDR = 8,
1: + DCB_ATTR_CAP = 9,
1: + DCB_ATTR_NUMTCS = 10,
1: + DCB_ATTR_BCN = 11,
1: + DCB_ATTR_APP = 12,
1: + DCB_ATTR_IEEE = 13,
1: + DCB_ATTR_DCBX = 14,
1: + DCB_ATTR_FEATCFG = 15,
1: + DCB_ATTR_CEE = 16,
1: + __DCB_ATTR_ENUM_MAX = 17,
1: + DCB_ATTR_MAX = 16,
1: +};
1: +
1: +enum ieee_attrs {
1: + DCB_ATTR_IEEE_UNSPEC = 0,
1: + DCB_ATTR_IEEE_ETS = 1,
1: + DCB_ATTR_IEEE_PFC = 2,
1: + DCB_ATTR_IEEE_APP_TABLE = 3,
1: + DCB_ATTR_IEEE_PEER_ETS = 4,
1: + DCB_ATTR_IEEE_PEER_PFC = 5,
1: + DCB_ATTR_IEEE_PEER_APP = 6,
1: + DCB_ATTR_IEEE_MAXRATE = 7,
1: + DCB_ATTR_IEEE_QCN = 8,
1: + DCB_ATTR_IEEE_QCN_STATS = 9,
1: + DCB_ATTR_DCB_BUFFER = 10,
1: + __DCB_ATTR_IEEE_MAX = 11,
1: +};
1: +
1: +enum ieee_attrs_app {
1: + DCB_ATTR_IEEE_APP_UNSPEC = 0,
1: + DCB_ATTR_IEEE_APP = 1,
1: + __DCB_ATTR_IEEE_APP_MAX = 2,
1: +};
1: +
1: +enum cee_attrs {
1: + DCB_ATTR_CEE_UNSPEC = 0,
1: + DCB_ATTR_CEE_PEER_PG = 1,
1: + DCB_ATTR_CEE_PEER_PFC = 2,
1: + DCB_ATTR_CEE_PEER_APP_TABLE = 3,
1: + DCB_ATTR_CEE_TX_PG = 4,
1: + DCB_ATTR_CEE_RX_PG = 5,
1: + DCB_ATTR_CEE_PFC = 6,
1: + DCB_ATTR_CEE_APP_TABLE = 7,
1: + DCB_ATTR_CEE_FEAT = 8,
1: + __DCB_ATTR_CEE_MAX = 9,
1: +};
1: +
1: +enum peer_app_attr {
1: + DCB_ATTR_CEE_PEER_APP_UNSPEC = 0,
1: + DCB_ATTR_CEE_PEER_APP_INFO = 1,
1: + DCB_ATTR_CEE_PEER_APP = 2,
1: + __DCB_ATTR_CEE_PEER_APP_MAX = 3,
1: +};
1: +
1: +enum dcbnl_pfc_up_attrs {
1: + DCB_PFC_UP_ATTR_UNDEFINED = 0,
1: + DCB_PFC_UP_ATTR_0 = 1,
1: + DCB_PFC_UP_ATTR_1 = 2,
1: + DCB_PFC_UP_ATTR_2 = 3,
1: + DCB_PFC_UP_ATTR_3 = 4,
1: + DCB_PFC_UP_ATTR_4 = 5,
1: + DCB_PFC_UP_ATTR_5 = 6,
1: + DCB_PFC_UP_ATTR_6 = 7,
1: + DCB_PFC_UP_ATTR_7 = 8,
1: + DCB_PFC_UP_ATTR_ALL = 9,
1: + __DCB_PFC_UP_ATTR_ENUM_MAX = 10,
1: + DCB_PFC_UP_ATTR_MAX = 9,
1: +};
1: +
1: +enum dcbnl_pg_attrs {
1: + DCB_PG_ATTR_UNDEFINED = 0,
1: + DCB_PG_ATTR_TC_0 = 1,
1: + DCB_PG_ATTR_TC_1 = 2,
1: + DCB_PG_ATTR_TC_2 = 3,
1: + DCB_PG_ATTR_TC_3 = 4,
1: + DCB_PG_ATTR_TC_4 = 5,
1: + DCB_PG_ATTR_TC_5 = 6,
1: + DCB_PG_ATTR_TC_6 = 7,
1: + DCB_PG_ATTR_TC_7 = 8,
1: + DCB_PG_ATTR_TC_MAX = 9,
1: + DCB_PG_ATTR_TC_ALL = 10,
1: + DCB_PG_ATTR_BW_ID_0 = 11,
1: + DCB_PG_ATTR_BW_ID_1 = 12,
1: + DCB_PG_ATTR_BW_ID_2 = 13,
1: + DCB_PG_ATTR_BW_ID_3 = 14,
1: + DCB_PG_ATTR_BW_ID_4 = 15,
1: + DCB_PG_ATTR_BW_ID_5 = 16,
1: + DCB_PG_ATTR_BW_ID_6 = 17,
1: + DCB_PG_ATTR_BW_ID_7 = 18,
1: + DCB_PG_ATTR_BW_ID_MAX = 19,
1: + DCB_PG_ATTR_BW_ID_ALL = 20,
1: + __DCB_PG_ATTR_ENUM_MAX = 21,
1: + DCB_PG_ATTR_MAX = 20,
1: +};
1: +
1: +enum dcbnl_tc_attrs {
1: + DCB_TC_ATTR_PARAM_UNDEFINED = 0,
1: + DCB_TC_ATTR_PARAM_PGID = 1,
1: + DCB_TC_ATTR_PARAM_UP_MAPPING = 2,
1: + DCB_TC_ATTR_PARAM_STRICT_PRIO = 3,
1: + DCB_TC_ATTR_PARAM_BW_PCT = 4,
1: + DCB_TC_ATTR_PARAM_ALL = 5,
1: + __DCB_TC_ATTR_PARAM_ENUM_MAX = 6,
1: + DCB_TC_ATTR_PARAM_MAX = 5,
1: +};
1: +
1: +enum dcbnl_cap_attrs {
1: + DCB_CAP_ATTR_UNDEFINED = 0,
1: + DCB_CAP_ATTR_ALL = 1,
1: + DCB_CAP_ATTR_PG = 2,
1: + DCB_CAP_ATTR_PFC = 3,
1: + DCB_CAP_ATTR_UP2TC = 4,
1: + DCB_CAP_ATTR_PG_TCS = 5,
1: + DCB_CAP_ATTR_PFC_TCS = 6,
1: + DCB_CAP_ATTR_GSP = 7,
1: + DCB_CAP_ATTR_BCN = 8,
1: + DCB_CAP_ATTR_DCBX = 9,
1: + __DCB_CAP_ATTR_ENUM_MAX = 10,
1: + DCB_CAP_ATTR_MAX = 9,
1: +};
1: +
1: +enum dcbnl_numtcs_attrs {
1: + DCB_NUMTCS_ATTR_UNDEFINED = 0,
1: + DCB_NUMTCS_ATTR_ALL = 1,
1: + DCB_NUMTCS_ATTR_PG = 2,
1: + DCB_NUMTCS_ATTR_PFC = 3,
1: + __DCB_NUMTCS_ATTR_ENUM_MAX = 4,
1: + DCB_NUMTCS_ATTR_MAX = 3,
1: +};
1: +
1: +enum dcbnl_bcn_attrs {
1: + DCB_BCN_ATTR_UNDEFINED = 0,
1: + DCB_BCN_ATTR_RP_0 = 1,
1: + DCB_BCN_ATTR_RP_1 = 2,
1: + DCB_BCN_ATTR_RP_2 = 3,
1: + DCB_BCN_ATTR_RP_3 = 4,
1: + DCB_BCN_ATTR_RP_4 = 5,
1: + DCB_BCN_ATTR_RP_5 = 6,
1: + DCB_BCN_ATTR_RP_6 = 7,
1: + DCB_BCN_ATTR_RP_7 = 8,
1: + DCB_BCN_ATTR_RP_ALL = 9,
1: + DCB_BCN_ATTR_BCNA_0 = 10,
1: + DCB_BCN_ATTR_BCNA_1 = 11,
1: + DCB_BCN_ATTR_ALPHA = 12,
1: + DCB_BCN_ATTR_BETA = 13,
1: + DCB_BCN_ATTR_GD = 14,
1: + DCB_BCN_ATTR_GI = 15,
1: + DCB_BCN_ATTR_TMAX = 16,
1: + DCB_BCN_ATTR_TD = 17,
1: + DCB_BCN_ATTR_RMIN = 18,
1: + DCB_BCN_ATTR_W = 19,
1: + DCB_BCN_ATTR_RD = 20,
1: + DCB_BCN_ATTR_RU = 21,
1: + DCB_BCN_ATTR_WRTT = 22,
1: + DCB_BCN_ATTR_RI = 23,
1: + DCB_BCN_ATTR_C = 24,
1: + DCB_BCN_ATTR_ALL = 25,
1: + __DCB_BCN_ATTR_ENUM_MAX = 26,
1: + DCB_BCN_ATTR_MAX = 25,
1: +};
1: +
1: +enum dcb_general_attr_values {
1: + DCB_ATTR_VALUE_UNDEFINED = 255,
1: +};
1: +
1: +enum dcbnl_app_attrs {
1: + DCB_APP_ATTR_UNDEFINED = 0,
1: + DCB_APP_ATTR_IDTYPE = 1,
1: + DCB_APP_ATTR_ID = 2,
1: + DCB_APP_ATTR_PRIORITY = 3,
1: + __DCB_APP_ATTR_ENUM_MAX = 4,
1: + DCB_APP_ATTR_MAX = 3,
1: +};
1: +
1: +enum dcbnl_featcfg_attrs {
1: + DCB_FEATCFG_ATTR_UNDEFINED = 0,
1: + DCB_FEATCFG_ATTR_ALL = 1,
1: + DCB_FEATCFG_ATTR_PG = 2,
1: + DCB_FEATCFG_ATTR_PFC = 3,
1: + DCB_FEATCFG_ATTR_APP = 4,
1: + __DCB_FEATCFG_ATTR_ENUM_MAX = 5,
1: + DCB_FEATCFG_ATTR_MAX = 4,
1: +};
1: +
1: +struct dcb_app_type {
1: + int ifindex;
1: + struct dcb_app app;
1: + struct list_head list;
1: + u8 dcbx;
1: +};
1: +
1: +struct dcb_ieee_app_prio_map {
1: + u64 map[8];
1: +};
1: +
1: +struct dcb_ieee_app_dscp_map {
1: + u8 map[64];
1: +};
1: +
1: +enum dcbevent_notif_type {
1: + DCB_APP_EVENT = 1,
1: +};
1: +
1: +struct reply_func {
1: + int type;
1: + int (*cb)(struct net_device *, struct nlmsghdr *, u32, struct nlattr **, struct sk_buff *);
1: +};
1: +
1: +enum switchdev_attr_id {
1: + SWITCHDEV_ATTR_ID_UNDEFINED = 0,
1: + SWITCHDEV_ATTR_ID_PORT_STP_STATE = 1,
1: + SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS = 2,
1: + SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS = 3,
1: + SWITCHDEV_ATTR_ID_PORT_MROUTER = 4,
1: + SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME = 5,
1: + SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING = 6,
1: + SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED = 7,
1: + SWITCHDEV_ATTR_ID_BRIDGE_MROUTER = 8,
1: + SWITCHDEV_ATTR_ID_MRP_PORT_STATE = 9,
1: + SWITCHDEV_ATTR_ID_MRP_PORT_ROLE = 10,
1: +};
1: +
1: +struct switchdev_attr {
1: + struct net_device *orig_dev;
1: + enum switchdev_attr_id id;
1: + u32 flags;
1: + void *complete_priv;
1: + void (*complete)(struct net_device *, int, void *);
1: + union {
1: + u8 stp_state;
1: + long unsigned int brport_flags;
1: + bool mrouter;
1: + clock_t ageing_time;
1: + bool vlan_filtering;
1: + bool mc_disabled;
1: + u8 mrp_port_state;
1: + u8 mrp_port_role;
1: + } u;
1: +};
1: +
1: +enum switchdev_notifier_type {
1: + SWITCHDEV_FDB_ADD_TO_BRIDGE = 1,
1: + SWITCHDEV_FDB_DEL_TO_BRIDGE = 2,
1: + SWITCHDEV_FDB_ADD_TO_DEVICE = 3,
1: + SWITCHDEV_FDB_DEL_TO_DEVICE = 4,
1: + SWITCHDEV_FDB_OFFLOADED = 5,
1: + SWITCHDEV_FDB_FLUSH_TO_BRIDGE = 6,
1: + SWITCHDEV_PORT_OBJ_ADD = 7,
1: + SWITCHDEV_PORT_OBJ_DEL = 8,
1: + SWITCHDEV_PORT_ATTR_SET = 9,
1: + SWITCHDEV_VXLAN_FDB_ADD_TO_BRIDGE = 10,
1: + SWITCHDEV_VXLAN_FDB_DEL_TO_BRIDGE = 11,
1: + SWITCHDEV_VXLAN_FDB_ADD_TO_DEVICE = 12,
1: + SWITCHDEV_VXLAN_FDB_DEL_TO_DEVICE = 13,
1: + SWITCHDEV_VXLAN_FDB_OFFLOADED = 14,
1: +};
1: +
1: +struct switchdev_notifier_info {
1: + struct net_device *dev;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct switchdev_notifier_port_obj_info {
1: + struct switchdev_notifier_info info;
1: + const struct switchdev_obj *obj;
1: + struct switchdev_trans *trans;
1: + bool handled;
1: +};
1: +
1: +struct switchdev_notifier_port_attr_info {
1: + struct switchdev_notifier_info info;
1: + const struct switchdev_attr *attr;
1: + struct switchdev_trans *trans;
1: + bool handled;
1: +};
1: +
1: +typedef void switchdev_deferred_func_t(struct net_device *, const void *);
1: +
1: +struct switchdev_deferred_item {
1: + struct list_head list;
1: + struct net_device *dev;
1: + switchdev_deferred_func_t *func;
1: + long unsigned int data[0];
1: +};
1: +
1: +enum l3mdev_type {
1: + L3MDEV_TYPE_UNSPEC = 0,
1: + L3MDEV_TYPE_VRF = 1,
1: + __L3MDEV_TYPE_MAX = 2,
1: +};
1: +
1: +typedef int (*lookup_by_table_id_t)(struct net *, u32);
1: +
1: +struct l3mdev_handler {
1: + lookup_by_table_id_t dev_lookup;
1: +};
1: +
1: +struct ncsi_dev {
1: + int state;
1: + int link_up;
1: + struct net_device *dev;
1: + void (*handler)(struct ncsi_dev *);
1: +};
1: +
1: +enum {
1: + NCSI_CAP_BASE = 0,
1: + NCSI_CAP_GENERIC = 0,
1: + NCSI_CAP_BC = 1,
1: + NCSI_CAP_MC = 2,
1: + NCSI_CAP_BUFFER = 3,
1: + NCSI_CAP_AEN = 4,
1: + NCSI_CAP_VLAN = 5,
1: + NCSI_CAP_MAX = 6,
1: +};
1: +
1: +enum {
1: + NCSI_MODE_BASE = 0,
1: + NCSI_MODE_ENABLE = 0,
1: + NCSI_MODE_TX_ENABLE = 1,
1: + NCSI_MODE_LINK = 2,
1: + NCSI_MODE_VLAN = 3,
1: + NCSI_MODE_BC = 4,
1: + NCSI_MODE_MC = 5,
1: + NCSI_MODE_AEN = 6,
1: + NCSI_MODE_FC = 7,
1: + NCSI_MODE_MAX = 8,
1: +};
1: +
1: +struct ncsi_channel_version {
1: + u32 version;
1: + u32 alpha2;
1: + u8 fw_name[12];
1: + u32 fw_version;
1: + u16 pci_ids[4];
1: + u32 mf_id;
1: +};
1: +
1: +struct ncsi_channel_cap {
1: + u32 index;
1: + u32 cap;
1: +};
1: +
1: +struct ncsi_channel_mode {
1: + u32 index;
1: + u32 enable;
1: + u32 size;
1: + u32 data[8];
1: +};
1: +
1: +struct ncsi_channel_mac_filter {
1: + u8 n_uc;
1: + u8 n_mc;
1: + u8 n_mixed;
1: + u64 bitmap;
1: + unsigned char *addrs;
1: +};
1: +
1: +struct ncsi_channel_vlan_filter {
1: + u8 n_vids;
1: + u64 bitmap;
1: + u16 *vids;
1: +};
1: +
1: +struct ncsi_channel_stats {
1: + u32 hnc_cnt_hi;
1: + u32 hnc_cnt_lo;
1: + u32 hnc_rx_bytes;
1: + u32 hnc_tx_bytes;
1: + u32 hnc_rx_uc_pkts;
1: + u32 hnc_rx_mc_pkts;
1: + u32 hnc_rx_bc_pkts;
1: + u32 hnc_tx_uc_pkts;
1: + u32 hnc_tx_mc_pkts;
1: + u32 hnc_tx_bc_pkts;
1: + u32 hnc_fcs_err;
1: + u32 hnc_align_err;
1: + u32 hnc_false_carrier;
1: + u32 hnc_runt_pkts;
1: + u32 hnc_jabber_pkts;
1: + u32 hnc_rx_pause_xon;
1: + u32 hnc_rx_pause_xoff;
1: + u32 hnc_tx_pause_xon;
1: + u32 hnc_tx_pause_xoff;
1: + u32 hnc_tx_s_collision;
1: + u32 hnc_tx_m_collision;
1: + u32 hnc_l_collision;
1: + u32 hnc_e_collision;
1: + u32 hnc_rx_ctl_frames;
1: + u32 hnc_rx_64_frames;
1: + u32 hnc_rx_127_frames;
1: + u32 hnc_rx_255_frames;
1: + u32 hnc_rx_511_frames;
1: + u32 hnc_rx_1023_frames;
1: + u32 hnc_rx_1522_frames;
1: + u32 hnc_rx_9022_frames;
1: + u32 hnc_tx_64_frames;
1: + u32 hnc_tx_127_frames;
1: + u32 hnc_tx_255_frames;
1: + u32 hnc_tx_511_frames;
1: + u32 hnc_tx_1023_frames;
1: + u32 hnc_tx_1522_frames;
1: + u32 hnc_tx_9022_frames;
1: + u32 hnc_rx_valid_bytes;
1: + u32 hnc_rx_runt_pkts;
1: + u32 hnc_rx_jabber_pkts;
1: + u32 ncsi_rx_cmds;
1: + u32 ncsi_dropped_cmds;
1: + u32 ncsi_cmd_type_errs;
1: + u32 ncsi_cmd_csum_errs;
1: + u32 ncsi_rx_pkts;
1: + u32 ncsi_tx_pkts;
1: + u32 ncsi_tx_aen_pkts;
1: + u32 pt_tx_pkts;
1: + u32 pt_tx_dropped;
1: + u32 pt_tx_channel_err;
1: + u32 pt_tx_us_err;
1: + u32 pt_rx_pkts;
1: + u32 pt_rx_dropped;
1: + u32 pt_rx_channel_err;
1: + u32 pt_rx_us_err;
1: + u32 pt_rx_os_err;
1: +};
1: +
1: +struct ncsi_package;
1: +
1: +struct ncsi_channel {
1: + unsigned char id;
1: + int state;
1: + bool reconfigure_needed;
1: + spinlock_t lock;
1: + struct ncsi_package *package;
1: + struct ncsi_channel_version version;
1: + struct ncsi_channel_cap caps[6];
1: + struct ncsi_channel_mode modes[8];
1: + struct ncsi_channel_mac_filter mac_filter;
1: + struct ncsi_channel_vlan_filter vlan_filter;
1: + struct ncsi_channel_stats stats;
1: + struct {
1: + struct timer_list timer;
1: + bool enabled;
1: + unsigned int state;
1: + } monitor;
1: + struct list_head node;
1: + struct list_head link;
1: +};
1: +
1: +struct ncsi_dev_priv;
1: +
1: +struct ncsi_package {
1: + unsigned char id;
1: + unsigned char uuid[16];
1: + struct ncsi_dev_priv *ndp;
1: + spinlock_t lock;
1: + unsigned int channel_num;
1: + struct list_head channels;
1: + struct list_head node;
1: + bool multi_channel;
1: + u32 channel_whitelist;
1: + struct ncsi_channel *preferred_channel;
1: +};
1: +
1: +struct ncsi_request {
1: + unsigned char id;
1: + bool used;
1: + unsigned int flags;
1: + struct ncsi_dev_priv *ndp;
1: + struct sk_buff *cmd;
1: + struct sk_buff *rsp;
1: + struct timer_list timer;
1: + bool enabled;
1: + u32 snd_seq;
1: + u32 snd_portid;
1: + struct nlmsghdr nlhdr;
1: +};
1: +
1: +struct ncsi_dev_priv {
1: + struct ncsi_dev ndev;
1: + unsigned int flags;
1: + unsigned int gma_flag;
1: + spinlock_t lock;
1: + unsigned int package_probe_id;
1: + unsigned int package_num;
1: + struct list_head packages;
1: + struct ncsi_channel *hot_channel;
1: + struct ncsi_request requests[256];
1: + unsigned int request_id;
1: + unsigned int pending_req_num;
1: + struct ncsi_package *active_package;
1: + struct ncsi_channel *active_channel;
1: + struct list_head channel_queue;
1: + struct work_struct work;
1: + struct packet_type ptype;
1: + struct list_head node;
1: + struct list_head vlan_vids;
1: + bool multi_package;
1: + bool mlx_multi_host;
1: + u32 package_whitelist;
1: +};
1: +
1: +struct ncsi_cmd_arg {
1: + struct ncsi_dev_priv *ndp;
1: + unsigned char type;
1: + unsigned char id;
1: + unsigned char package;
1: + unsigned char channel;
1: + short unsigned int payload;
1: + unsigned int req_flags;
1: + union {
1: + unsigned char bytes[16];
1: + short unsigned int words[8];
1: + unsigned int dwords[4];
1: + };
1: + unsigned char *data;
1: + struct genl_info *info;
1: +};
1: +
1: +struct ncsi_pkt_hdr {
1: + unsigned char mc_id;
1: + unsigned char revision;
1: + unsigned char reserved;
1: + unsigned char id;
1: + unsigned char type;
1: + unsigned char channel;
1: + __be16 length;
1: + __be32 reserved1[2];
1: +};
1: +
1: +struct ncsi_cmd_pkt_hdr {
1: + struct ncsi_pkt_hdr common;
1: +};
1: +
1: +struct ncsi_cmd_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 checksum;
1: + unsigned char pad[26];
1: +};
1: +
1: +struct ncsi_cmd_sp_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char hw_arbitration;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_dc_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char ald;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_rc_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 reserved;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_ae_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mc_id;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: +};
1: +
1: +struct ncsi_cmd_sl_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 oem_mode;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: +};
1: +
1: +struct ncsi_cmd_svf_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be16 reserved;
1: + __be16 vlan;
1: + __be16 reserved1;
1: + unsigned char index;
1: + unsigned char enable;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: +};
1: +
1: +struct ncsi_cmd_ev_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_sma_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char mac[6];
1: + unsigned char index;
1: + unsigned char at_e;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: +};
1: +
1: +struct ncsi_cmd_ebf_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_egmf_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_snfc_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_cmd_oem_pkt {
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mfr_id;
1: + unsigned char data[0];
1: +};
1: +
1: +struct ncsi_cmd_handler {
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct sk_buff *, struct ncsi_cmd_arg *);
1: +};
1: +
1: +enum {
1: + NCSI_CAP_GENERIC_HWA = 1,
1: + NCSI_CAP_GENERIC_HDS = 2,
1: + NCSI_CAP_GENERIC_FC = 4,
1: + NCSI_CAP_GENERIC_FC1 = 8,
1: + NCSI_CAP_GENERIC_MC = 16,
1: + NCSI_CAP_GENERIC_HWA_UNKNOWN = 0,
1: + NCSI_CAP_GENERIC_HWA_SUPPORT = 32,
1: + NCSI_CAP_GENERIC_HWA_NOT_SUPPORT = 64,
1: + NCSI_CAP_GENERIC_HWA_RESERVED = 96,
1: + NCSI_CAP_GENERIC_HWA_MASK = 96,
1: + NCSI_CAP_GENERIC_MASK = 127,
1: + NCSI_CAP_BC_ARP = 1,
1: + NCSI_CAP_BC_DHCPC = 2,
1: + NCSI_CAP_BC_DHCPS = 4,
1: + NCSI_CAP_BC_NETBIOS = 8,
1: + NCSI_CAP_BC_MASK = 15,
1: + NCSI_CAP_MC_IPV6_NEIGHBOR = 1,
1: + NCSI_CAP_MC_IPV6_ROUTER = 2,
1: + NCSI_CAP_MC_DHCPV6_RELAY = 4,
1: + NCSI_CAP_MC_DHCPV6_WELL_KNOWN = 8,
1: + NCSI_CAP_MC_IPV6_MLD = 16,
1: + NCSI_CAP_MC_IPV6_NEIGHBOR_S = 32,
1: + NCSI_CAP_MC_MASK = 63,
1: + NCSI_CAP_AEN_LSC = 1,
1: + NCSI_CAP_AEN_CR = 2,
1: + NCSI_CAP_AEN_HDS = 4,
1: + NCSI_CAP_AEN_MASK = 7,
1: + NCSI_CAP_VLAN_ONLY = 1,
1: + NCSI_CAP_VLAN_NO = 2,
1: + NCSI_CAP_VLAN_ANY = 4,
1: + NCSI_CAP_VLAN_MASK = 7,
1: +};
1: +
1: +struct ncsi_rsp_pkt_hdr {
1: + struct ncsi_pkt_hdr common;
1: + __be16 code;
1: + __be16 reason;
1: +};
1: +
1: +struct ncsi_rsp_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: +};
1: +
1: +struct ncsi_rsp_oem_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 mfr_id;
1: + unsigned char data[0];
1: +};
1: +
1: +struct ncsi_rsp_oem_mlx_pkt {
1: + unsigned char cmd_rev;
1: + unsigned char cmd;
1: + unsigned char param;
1: + unsigned char optional;
1: + unsigned char data[0];
1: +};
1: +
1: +struct ncsi_rsp_oem_bcm_pkt {
1: + unsigned char ver;
1: + unsigned char type;
1: + __be16 len;
1: + unsigned char data[0];
1: +};
1: +
1: +struct ncsi_rsp_gls_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 status;
1: + __be32 other;
1: + __be32 oem_status;
1: + __be32 checksum;
1: + unsigned char pad[10];
1: +};
1: +
1: +struct ncsi_rsp_gvi_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 ncsi_version;
1: + unsigned char reserved[3];
1: + unsigned char alpha2;
1: + unsigned char fw_name[12];
1: + __be32 fw_version;
1: + __be16 pci_ids[4];
1: + __be32 mf_id;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gc_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 cap;
1: + __be32 bc_cap;
1: + __be32 mc_cap;
1: + __be32 buf_cap;
1: + __be32 aen_cap;
1: + unsigned char vlan_cnt;
1: + unsigned char mixed_cnt;
1: + unsigned char mc_cnt;
1: + unsigned char uc_cnt;
1: + unsigned char reserved[2];
1: + unsigned char vlan_mode;
1: + unsigned char channel_cnt;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gp_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + unsigned char mac_cnt;
1: + unsigned char reserved[2];
1: + unsigned char mac_enable;
1: + unsigned char vlan_cnt;
1: + unsigned char reserved1;
1: + __be16 vlan_enable;
1: + __be32 link_mode;
1: + __be32 bc_mode;
1: + __be32 valid_modes;
1: + unsigned char vlan_mode;
1: + unsigned char fc_mode;
1: + unsigned char reserved2[2];
1: + __be32 aen_mode;
1: + unsigned char mac[6];
1: + __be16 vlan;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gcps_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 cnt_hi;
1: + __be32 cnt_lo;
1: + __be32 rx_bytes;
1: + __be32 tx_bytes;
1: + __be32 rx_uc_pkts;
1: + __be32 rx_mc_pkts;
1: + __be32 rx_bc_pkts;
1: + __be32 tx_uc_pkts;
1: + __be32 tx_mc_pkts;
1: + __be32 tx_bc_pkts;
1: + __be32 fcs_err;
1: + __be32 align_err;
1: + __be32 false_carrier;
1: + __be32 runt_pkts;
1: + __be32 jabber_pkts;
1: + __be32 rx_pause_xon;
1: + __be32 rx_pause_xoff;
1: + __be32 tx_pause_xon;
1: + __be32 tx_pause_xoff;
1: + __be32 tx_s_collision;
1: + __be32 tx_m_collision;
1: + __be32 l_collision;
1: + __be32 e_collision;
1: + __be32 rx_ctl_frames;
1: + __be32 rx_64_frames;
1: + __be32 rx_127_frames;
1: + __be32 rx_255_frames;
1: + __be32 rx_511_frames;
1: + __be32 rx_1023_frames;
1: + __be32 rx_1522_frames;
1: + __be32 rx_9022_frames;
1: + __be32 tx_64_frames;
1: + __be32 tx_127_frames;
1: + __be32 tx_255_frames;
1: + __be32 tx_511_frames;
1: + __be32 tx_1023_frames;
1: + __be32 tx_1522_frames;
1: + __be32 tx_9022_frames;
1: + __be32 rx_valid_bytes;
1: + __be32 rx_runt_pkts;
1: + __be32 rx_jabber_pkts;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gns_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 rx_cmds;
1: + __be32 dropped_cmds;
1: + __be32 cmd_type_errs;
1: + __be32 cmd_csum_errs;
1: + __be32 rx_pkts;
1: + __be32 tx_pkts;
1: + __be32 tx_aen_pkts;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gnpts_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 tx_pkts;
1: + __be32 tx_dropped;
1: + __be32 tx_channel_err;
1: + __be32 tx_us_err;
1: + __be32 rx_pkts;
1: + __be32 rx_dropped;
1: + __be32 rx_channel_err;
1: + __be32 rx_us_err;
1: + __be32 rx_os_err;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gps_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 status;
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_gpuuid_pkt {
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + unsigned char uuid[16];
1: + __be32 checksum;
1: +};
1: +
1: +struct ncsi_rsp_oem_handler {
1: + unsigned int mfr_id;
1: + int (*handler)(struct ncsi_request *);
1: +};
1: +
1: +struct ncsi_rsp_handler {
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct ncsi_request *);
1: +};
1: +
1: +struct ncsi_aen_pkt_hdr {
1: + struct ncsi_pkt_hdr common;
1: + unsigned char reserved2[3];
1: + unsigned char type;
1: +};
1: +
1: +struct ncsi_aen_lsc_pkt {
1: + struct ncsi_aen_pkt_hdr aen;
1: + __be32 status;
1: + __be32 oem_status;
1: + __be32 checksum;
1: + unsigned char pad[14];
1: +};
1: +
1: +struct ncsi_aen_hncdsc_pkt {
1: + struct ncsi_aen_pkt_hdr aen;
1: + __be32 status;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: +};
1: +
1: +struct ncsi_aen_handler {
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct ncsi_dev_priv *, struct ncsi_aen_pkt_hdr *);
1: +};
1: +
1: +enum {
1: + ncsi_dev_state_registered = 0,
1: + ncsi_dev_state_functional = 256,
1: + ncsi_dev_state_probe = 512,
1: + ncsi_dev_state_config = 768,
1: + ncsi_dev_state_suspend = 1024,
1: +};
1: +
1: +enum {
1: + MLX_MC_RBT_SUPPORT = 1,
1: + MLX_MC_RBT_AVL = 8,
1: +};
1: +
1: +enum {
1: + ncsi_dev_state_major = 65280,
1: + ncsi_dev_state_minor = 255,
1: + ncsi_dev_state_probe_deselect = 513,
1: + ncsi_dev_state_probe_package = 514,
1: + ncsi_dev_state_probe_channel = 515,
1: + ncsi_dev_state_probe_mlx_gma = 516,
1: + ncsi_dev_state_probe_mlx_smaf = 517,
1: + ncsi_dev_state_probe_cis = 518,
1: + ncsi_dev_state_probe_gvi = 519,
1: + ncsi_dev_state_probe_gc = 520,
1: + ncsi_dev_state_probe_gls = 521,
1: + ncsi_dev_state_probe_dp = 522,
1: + ncsi_dev_state_config_sp = 769,
1: + ncsi_dev_state_config_cis = 770,
1: + ncsi_dev_state_config_oem_gma = 771,
1: + ncsi_dev_state_config_clear_vids = 772,
1: + ncsi_dev_state_config_svf = 773,
1: + ncsi_dev_state_config_ev = 774,
1: + ncsi_dev_state_config_sma = 775,
1: + ncsi_dev_state_config_ebf = 776,
1: + ncsi_dev_state_config_dgmf = 777,
1: + ncsi_dev_state_config_ecnt = 778,
1: + ncsi_dev_state_config_ec = 779,
1: + ncsi_dev_state_config_ae = 780,
1: + ncsi_dev_state_config_gls = 781,
1: + ncsi_dev_state_config_done = 782,
1: + ncsi_dev_state_suspend_select = 1025,
1: + ncsi_dev_state_suspend_gls = 1026,
1: + ncsi_dev_state_suspend_dcnt = 1027,
1: + ncsi_dev_state_suspend_dc = 1028,
1: + ncsi_dev_state_suspend_deselect = 1029,
1: + ncsi_dev_state_suspend_done = 1030,
1: +};
1: +
1: +struct vlan_vid {
1: + struct list_head list;
1: + __be16 proto;
1: + u16 vid;
1: +};
1: +
1: +struct ncsi_oem_gma_handler {
1: + unsigned int mfr_id;
1: + int (*handler)(struct ncsi_cmd_arg *);
1: +};
1: +
1: +enum ncsi_nl_commands {
1: + NCSI_CMD_UNSPEC = 0,
1: + NCSI_CMD_PKG_INFO = 1,
1: + NCSI_CMD_SET_INTERFACE = 2,
1: + NCSI_CMD_CLEAR_INTERFACE = 3,
1: + NCSI_CMD_SEND_CMD = 4,
1: + NCSI_CMD_SET_PACKAGE_MASK = 5,
1: + NCSI_CMD_SET_CHANNEL_MASK = 6,
1: + __NCSI_CMD_AFTER_LAST = 7,
1: + NCSI_CMD_MAX = 6,
1: +};
1: +
1: +enum ncsi_nl_attrs {
1: + NCSI_ATTR_UNSPEC = 0,
1: + NCSI_ATTR_IFINDEX = 1,
1: + NCSI_ATTR_PACKAGE_LIST = 2,
1: + NCSI_ATTR_PACKAGE_ID = 3,
1: + NCSI_ATTR_CHANNEL_ID = 4,
1: + NCSI_ATTR_DATA = 5,
1: + NCSI_ATTR_MULTI_FLAG = 6,
1: + NCSI_ATTR_PACKAGE_MASK = 7,
1: + NCSI_ATTR_CHANNEL_MASK = 8,
1: + __NCSI_ATTR_AFTER_LAST = 9,
1: + NCSI_ATTR_MAX = 8,
1: +};
1: +
1: +enum ncsi_nl_pkg_attrs {
1: + NCSI_PKG_ATTR_UNSPEC = 0,
1: + NCSI_PKG_ATTR = 1,
1: + NCSI_PKG_ATTR_ID = 2,
1: + NCSI_PKG_ATTR_FORCED = 3,
1: + NCSI_PKG_ATTR_CHANNEL_LIST = 4,
1: + __NCSI_PKG_ATTR_AFTER_LAST = 5,
1: + NCSI_PKG_ATTR_MAX = 4,
1: +};
1: +
1: +enum ncsi_nl_channel_attrs {
1: + NCSI_CHANNEL_ATTR_UNSPEC = 0,
1: + NCSI_CHANNEL_ATTR = 1,
1: + NCSI_CHANNEL_ATTR_ID = 2,
1: + NCSI_CHANNEL_ATTR_VERSION_MAJOR = 3,
1: + NCSI_CHANNEL_ATTR_VERSION_MINOR = 4,
1: + NCSI_CHANNEL_ATTR_VERSION_STR = 5,
1: + NCSI_CHANNEL_ATTR_LINK_STATE = 6,
1: + NCSI_CHANNEL_ATTR_ACTIVE = 7,
1: + NCSI_CHANNEL_ATTR_FORCED = 8,
1: + NCSI_CHANNEL_ATTR_VLAN_LIST = 9,
1: + NCSI_CHANNEL_ATTR_VLAN_ID = 10,
1: + __NCSI_CHANNEL_ATTR_AFTER_LAST = 11,
1: + NCSI_CHANNEL_ATTR_MAX = 10,
1: +};
1: +
1: +struct sockaddr_xdp {
1: + __u16 sxdp_family;
1: + __u16 sxdp_flags;
1: + __u32 sxdp_ifindex;
1: + __u32 sxdp_queue_id;
1: + __u32 sxdp_shared_umem_fd;
1: +};
1: +
1: +struct xdp_ring_offset {
1: + __u64 producer;
1: + __u64 consumer;
1: + __u64 desc;
1: + __u64 flags;
1: +};
1: +
1: +struct xdp_mmap_offsets {
1: + struct xdp_ring_offset rx;
1: + struct xdp_ring_offset tx;
1: + struct xdp_ring_offset fr;
1: + struct xdp_ring_offset cr;
1: +};
1: +
1: +struct xdp_umem_reg {
1: + __u64 addr;
1: + __u64 len;
1: + __u32 chunk_size;
1: + __u32 headroom;
1: + __u32 flags;
1: +};
1: +
1: +struct xdp_statistics {
1: + __u64 rx_dropped;
1: + __u64 rx_invalid_descs;
1: + __u64 tx_invalid_descs;
1: + __u64 rx_ring_full;
1: + __u64 rx_fill_ring_empty_descs;
1: + __u64 tx_ring_empty_descs;
1: +};
1: +
1: +struct xdp_options {
1: + __u32 flags;
1: +};
1: +
1: +struct xdp_desc {
1: + __u64 addr;
1: + __u32 len;
1: + __u32 options;
1: +};
1: +
1: +struct xdp_ring;
1: +
1: +struct xsk_queue {
1: + u32 ring_mask;
1: + u32 nentries;
1: + u32 cached_prod;
1: + u32 cached_cons;
1: + struct xdp_ring *ring;
1: + u64 invalid_descs;
1: + u64 queue_empty_descs;
1: +};
1: +
1: +struct xdp_ring_offset_v1 {
1: + __u64 producer;
1: + __u64 consumer;
1: + __u64 desc;
1: +};
1: +
1: +struct xdp_mmap_offsets_v1 {
1: + struct xdp_ring_offset_v1 rx;
1: + struct xdp_ring_offset_v1 tx;
1: + struct xdp_ring_offset_v1 fr;
1: + struct xdp_ring_offset_v1 cr;
1: +};
1: +
1: +struct xsk_map_node {
1: + struct list_head node;
1: + struct xsk_map *map;
1: + struct xdp_sock **map_entry;
1: +};
1: +
1: +struct xdp_ring {
1: + u32 producer;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 pad;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 consumer;
1: + u32 flags;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xdp_rxtx_ring {
1: + struct xdp_ring ptrs;
1: + struct xdp_desc desc[0];
1: +};
1: +
1: +struct xdp_umem_ring {
1: + struct xdp_ring ptrs;
1: + u64 desc[0];
1: +};
1: +
1: +struct xsk_dma_map {
1: + dma_addr_t *dma_pages;
1: + struct device *dev;
1: + struct net_device *netdev;
1: + refcount_t users;
1: + struct list_head list;
1: + u32 dma_pages_cnt;
1: + bool dma_need_sync;
1: +};
1: +
1: +struct xdp_diag_req {
1: + __u8 sdiag_family;
1: + __u8 sdiag_protocol;
1: + __u16 pad;
1: + __u32 xdiag_ino;
1: + __u32 xdiag_show;
1: + __u32 xdiag_cookie[2];
1: +};
1: +
1: +struct xdp_diag_msg {
1: + __u8 xdiag_family;
1: + __u8 xdiag_type;
1: + __u16 pad;
1: + __u32 xdiag_ino;
1: + __u32 xdiag_cookie[2];
1: +};
1: +
1: +enum {
1: + XDP_DIAG_NONE = 0,
1: + XDP_DIAG_INFO = 1,
1: + XDP_DIAG_UID = 2,
1: + XDP_DIAG_RX_RING = 3,
1: + XDP_DIAG_TX_RING = 4,
1: + XDP_DIAG_UMEM = 5,
1: + XDP_DIAG_UMEM_FILL_RING = 6,
1: + XDP_DIAG_UMEM_COMPLETION_RING = 7,
1: + XDP_DIAG_MEMINFO = 8,
1: + XDP_DIAG_STATS = 9,
1: + __XDP_DIAG_MAX = 10,
1: +};
1: +
1: +struct xdp_diag_info {
1: + __u32 ifindex;
1: + __u32 queue_id;
1: +};
1: +
1: +struct xdp_diag_ring {
1: + __u32 entries;
1: +};
1: +
1: +struct xdp_diag_umem {
1: + __u64 size;
1: + __u32 id;
1: + __u32 num_pages;
1: + __u32 chunk_size;
1: + __u32 headroom;
1: + __u32 ifindex;
1: + __u32 queue_id;
1: + __u32 flags;
1: + __u32 refs;
1: +};
1: +
1: +struct xdp_diag_stats {
1: + __u64 n_rx_dropped;
1: + __u64 n_rx_invalid;
1: + __u64 n_rx_full;
1: + __u64 n_fill_ring_empty;
1: + __u64 n_tx_invalid;
1: + __u64 n_tx_ring_empty;
1: +};
1: +
1: +struct mptcp_mib {
1: + long unsigned int mibs[23];
1: +};
1: +
1: +struct mptcp_options_received {
1: + u64 sndr_key;
1: + u64 rcvr_key;
1: + u64 data_ack;
1: + u64 data_seq;
1: + u32 subflow_seq;
1: + u16 data_len;
1: + u16 mp_capable: 1;
1: + u16 mp_join: 1;
1: + u16 dss: 1;
1: + u16 add_addr: 1;
1: + u16 rm_addr: 1;
1: + u16 family: 4;
1: + u16 echo: 1;
1: + u16 backup: 1;
1: + u32 token;
1: + u32 nonce;
1: + u64 thmac;
1: + u8 hmac[20];
1: + u8 join_id;
1: + u8 use_map: 1;
1: + u8 dsn64: 1;
1: + u8 data_fin: 1;
1: + u8 use_ack: 1;
1: + u8 ack64: 1;
1: + u8 mpc_map: 1;
1: + u8 __unused: 2;
1: + u8 addr_id;
1: + u8 rm_id;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: + u64 ahmac;
1: + u16 port;
1: +};
1: +
1: +struct mptcp_addr_info {
1: + sa_family_t family;
1: + __be16 port;
1: + u8 id;
1: + u8 flags;
1: + int ifindex;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: +};
1: +
1: +enum mptcp_pm_status {
1: + MPTCP_PM_ADD_ADDR_RECEIVED = 0,
1: + MPTCP_PM_RM_ADDR_RECEIVED = 1,
1: + MPTCP_PM_ESTABLISHED = 2,
1: + MPTCP_PM_SUBFLOW_ESTABLISHED = 3,
1: +};
1: +
1: +struct mptcp_pm_data {
1: + struct mptcp_addr_info local;
1: + struct mptcp_addr_info remote;
1: + struct list_head anno_list;
1: + spinlock_t lock;
1: + bool add_addr_signal;
1: + bool rm_addr_signal;
1: + bool server_side;
1: + bool work_pending;
1: + bool accept_addr;
1: + bool accept_subflow;
1: + bool add_addr_echo;
1: + u8 add_addr_signaled;
1: + u8 add_addr_accepted;
1: + u8 local_addr_used;
1: + u8 subflows;
1: + u8 add_addr_signal_max;
1: + u8 add_addr_accept_max;
1: + u8 local_addr_max;
1: + u8 subflows_max;
1: + u8 status;
1: + u8 rm_id;
1: +};
1: +
1: +struct mptcp_data_frag {
1: + struct list_head list;
1: + u64 data_seq;
1: + int data_len;
1: + int offset;
1: + int overhead;
1: + struct page *page;
1: +};
1: +
1: +struct mptcp_sock {
1: + struct inet_connection_sock sk;
1: + u64 local_key;
1: + u64 remote_key;
1: + u64 write_seq;
1: + u64 ack_seq;
1: + u64 rcv_data_fin_seq;
1: + struct sock *last_snd;
1: + int snd_burst;
1: + atomic64_t snd_una;
1: + long unsigned int timer_ival;
1: + u32 token;
1: + long unsigned int flags;
1: + bool can_ack;
1: + bool fully_established;
1: + bool rcv_data_fin;
1: + bool snd_data_fin_enable;
1: + bool use_64bit_ack;
1: + spinlock_t join_list_lock;
1: + struct work_struct work;
1: + struct sk_buff *ooo_last_skb;
1: + struct rb_root out_of_order_queue;
1: + struct list_head conn_list;
1: + struct list_head rtx_queue;
1: + struct list_head join_list;
1: + struct skb_ext *cached_ext;
1: + struct socket *subflow;
1: + struct sock *first;
1: + struct mptcp_pm_data pm;
1: + struct {
1: + u32 space;
1: + u32 copied;
1: + u64 time;
1: + u64 rtt_us;
1: + } rcvq_space;
1: +};
1: +
1: +struct mptcp_subflow_request_sock {
1: + struct tcp_request_sock sk;
1: + u16 mp_capable: 1;
1: + u16 mp_join: 1;
1: + u16 backup: 1;
1: + u8 local_id;
1: + u8 remote_id;
1: + u64 local_key;
1: + u64 idsn;
1: + u32 token;
1: + u32 ssn_offset;
1: + u64 thmac;
1: + u32 local_nonce;
1: + u32 remote_nonce;
1: + struct mptcp_sock *msk;
1: + struct hlist_nulls_node token_node;
1: +};
1: +
1: +enum mptcp_data_avail {
1: + MPTCP_SUBFLOW_NODATA = 0,
1: + MPTCP_SUBFLOW_DATA_AVAIL = 1,
1: + MPTCP_SUBFLOW_OOO_DATA = 2,
1: +};
1: +
1: +struct mptcp_subflow_context {
1: + struct list_head node;
1: + u64 local_key;
1: + u64 remote_key;
1: + u64 idsn;
1: + u64 map_seq;
1: + u32 snd_isn;
1: + u32 token;
1: + u32 rel_write_seq;
1: + u32 map_subflow_seq;
1: + u32 ssn_offset;
1: + u32 map_data_len;
1: + u32 request_mptcp: 1;
1: + u32 request_join: 1;
1: + u32 request_bkup: 1;
1: + u32 mp_capable: 1;
1: + u32 mp_join: 1;
1: + u32 fully_established: 1;
1: + u32 pm_notified: 1;
1: + u32 conn_finished: 1;
1: + u32 map_valid: 1;
1: + u32 mpc_map: 1;
1: + u32 backup: 1;
1: + u32 rx_eof: 1;
1: + u32 can_ack: 1;
1: + enum mptcp_data_avail data_avail;
1: + u32 remote_nonce;
1: + u64 thmac;
1: + u32 local_nonce;
1: + u32 remote_token;
1: + u8 hmac[20];
1: + u8 local_id;
1: + u8 remote_id;
1: + struct sock *tcp_sock;
1: + struct sock *conn;
1: + const struct inet_connection_sock_af_ops *icsk_af_ops;
1: + void (*tcp_data_ready)(struct sock *);
1: + void (*tcp_state_change)(struct sock *);
1: + void (*tcp_write_space)(struct sock *);
1: + struct callback_head rcu;
1: +};
1: +
1: +enum linux_mptcp_mib_field {
1: + MPTCP_MIB_NUM = 0,
1: + MPTCP_MIB_MPCAPABLEPASSIVE = 1,
1: + MPTCP_MIB_MPCAPABLEPASSIVEACK = 2,
1: + MPTCP_MIB_MPCAPABLEPASSIVEFALLBACK = 3,
1: + MPTCP_MIB_MPCAPABLEACTIVEFALLBACK = 4,
1: + MPTCP_MIB_RETRANSSEGS = 5,
1: + MPTCP_MIB_JOINNOTOKEN = 6,
1: + MPTCP_MIB_JOINSYNRX = 7,
1: + MPTCP_MIB_JOINSYNACKRX = 8,
1: + MPTCP_MIB_JOINSYNACKMAC = 9,
1: + MPTCP_MIB_JOINACKRX = 10,
1: + MPTCP_MIB_JOINACKMAC = 11,
1: + MPTCP_MIB_DSSNOMATCH = 12,
1: + MPTCP_MIB_INFINITEMAPRX = 13,
1: + MPTCP_MIB_OFOQUEUETAIL = 14,
1: + MPTCP_MIB_OFOQUEUE = 15,
1: + MPTCP_MIB_OFOMERGE = 16,
1: + MPTCP_MIB_NODSSWINDOW = 17,
1: + MPTCP_MIB_DUPDATA = 18,
1: + MPTCP_MIB_ADDADDR = 19,
1: + MPTCP_MIB_ECHOADD = 20,
1: + MPTCP_MIB_RMADDR = 21,
1: + MPTCP_MIB_RMSUBFLOW = 22,
1: + __MPTCP_MIB_MAX = 23,
1: +};
1: +
1: +struct mptcp_skb_cb {
1: + u64 map_seq;
1: + u64 end_seq;
1: + u32 offset;
1: +};
1: +
1: +struct subflow_send_info {
1: + struct sock *ssk;
1: + u64 ratio;
1: +};
1: +
1: +enum mapping_status {
1: + MAPPING_OK = 0,
1: + MAPPING_INVALID = 1,
1: + MAPPING_EMPTY = 2,
1: + MAPPING_DATA_FIN = 3,
1: + MAPPING_DUMMY = 4,
1: +};
1: +
1: +struct token_bucket {
1: + spinlock_t lock;
1: + int chain_len;
1: + struct hlist_nulls_head req_chain;
1: + struct hlist_nulls_head msk_chain;
1: +};
1: +
1: +struct mptcp_pernet {
1: + struct ctl_table_header *ctl_table_hdr;
1: + int mptcp_enabled;
1: +};
1: +
1: +enum {
1: + INET_ULP_INFO_UNSPEC = 0,
1: + INET_ULP_INFO_NAME = 1,
1: + INET_ULP_INFO_TLS = 2,
1: + INET_ULP_INFO_MPTCP = 3,
1: + __INET_ULP_INFO_MAX = 4,
1: +};
1: +
1: +enum {
1: + MPTCP_SUBFLOW_ATTR_UNSPEC = 0,
1: + MPTCP_SUBFLOW_ATTR_TOKEN_REM = 1,
1: + MPTCP_SUBFLOW_ATTR_TOKEN_LOC = 2,
1: + MPTCP_SUBFLOW_ATTR_RELWRITE_SEQ = 3,
1: + MPTCP_SUBFLOW_ATTR_MAP_SEQ = 4,
1: + MPTCP_SUBFLOW_ATTR_MAP_SFSEQ = 5,
1: + MPTCP_SUBFLOW_ATTR_SSN_OFFSET = 6,
1: + MPTCP_SUBFLOW_ATTR_MAP_DATALEN = 7,
1: + MPTCP_SUBFLOW_ATTR_FLAGS = 8,
1: + MPTCP_SUBFLOW_ATTR_ID_REM = 9,
1: + MPTCP_SUBFLOW_ATTR_ID_LOC = 10,
1: + MPTCP_SUBFLOW_ATTR_PAD = 11,
1: + __MPTCP_SUBFLOW_ATTR_MAX = 12,
1: +};
1: +
1: +enum {
1: + MPTCP_PM_ATTR_UNSPEC = 0,
1: + MPTCP_PM_ATTR_ADDR = 1,
1: + MPTCP_PM_ATTR_RCV_ADD_ADDRS = 2,
1: + MPTCP_PM_ATTR_SUBFLOWS = 3,
1: + __MPTCP_PM_ATTR_MAX = 4,
1: +};
1: +
1: +enum {
1: + MPTCP_PM_ADDR_ATTR_UNSPEC = 0,
1: + MPTCP_PM_ADDR_ATTR_FAMILY = 1,
1: + MPTCP_PM_ADDR_ATTR_ID = 2,
1: + MPTCP_PM_ADDR_ATTR_ADDR4 = 3,
1: + MPTCP_PM_ADDR_ATTR_ADDR6 = 4,
1: + MPTCP_PM_ADDR_ATTR_PORT = 5,
1: + MPTCP_PM_ADDR_ATTR_FLAGS = 6,
1: + MPTCP_PM_ADDR_ATTR_IF_IDX = 7,
1: + __MPTCP_PM_ADDR_ATTR_MAX = 8,
1: +};
1: +
1: +enum {
1: + MPTCP_PM_CMD_UNSPEC = 0,
1: + MPTCP_PM_CMD_ADD_ADDR = 1,
1: + MPTCP_PM_CMD_DEL_ADDR = 2,
1: + MPTCP_PM_CMD_GET_ADDR = 3,
1: + MPTCP_PM_CMD_FLUSH_ADDRS = 4,
1: + MPTCP_PM_CMD_SET_LIMITS = 5,
1: + MPTCP_PM_CMD_GET_LIMITS = 6,
1: + __MPTCP_PM_CMD_AFTER_LAST = 7,
1: +};
1: +
1: +struct mptcp_pm_addr_entry {
1: + struct list_head list;
1: + struct mptcp_addr_info addr;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct mptcp_pm_add_entry {
1: + struct list_head list;
1: + struct mptcp_addr_info addr;
1: + struct timer_list add_timer;
1: + struct mptcp_sock *sock;
1: + u8 retrans_times;
1: +};
1: +
1: +struct pm_nl_pernet {
1: + spinlock_t lock;
1: + struct list_head local_addr_list;
1: + unsigned int addrs;
1: + unsigned int add_addr_signal_max;
1: + unsigned int add_addr_accept_max;
1: + unsigned int local_addr_max;
1: + unsigned int subflows_max;
1: + unsigned int next_id;
1: +};
1: +
1: +struct join_entry {
1: + u32 token;
1: + u32 remote_nonce;
1: + u32 local_nonce;
1: + u8 join_id;
1: + u8 local_id;
1: + u8 backup;
1: + u8 valid;
1: +};
1: +
1: +typedef struct {
1: + u32 version;
1: + u32 length;
1: + u64 memory_protection_attribute;
1: +} efi_properties_table_t;
1: +
1: +enum efi_secureboot_mode {
1: + efi_secureboot_mode_unset = 0,
1: + efi_secureboot_mode_unknown = 1,
1: + efi_secureboot_mode_disabled = 2,
1: + efi_secureboot_mode_enabled = 3,
1: +};
1: +
1: +typedef union {
1: + struct {
1: + u32 revision;
1: + efi_handle_t parent_handle;
1: + efi_system_table_t *system_table;
1: + efi_handle_t device_handle;
1: + void *file_path;
1: + void *reserved;
1: + u32 load_options_size;
1: + void *load_options;
1: + void *image_base;
1: + __u64 image_size;
1: + unsigned int image_code_type;
1: + unsigned int image_data_type;
1: + efi_status_t (*unload)(efi_handle_t);
1: + };
1: + struct {
1: + u32 revision;
1: + u32 parent_handle;
1: + u32 system_table;
1: + u32 device_handle;
1: + u32 file_path;
1: + u32 reserved;
1: + u32 load_options_size;
1: + u32 load_options;
1: + u32 image_base;
1: + __u64 image_size;
1: + u32 image_code_type;
1: + u32 image_data_type;
1: + u32 unload;
1: + } mixed_mode;
1: +} efi_loaded_image_t;
1: +
1: +struct efi_boot_memmap {
1: + efi_memory_desc_t **map;
1: + long unsigned int *map_size;
1: + long unsigned int *desc_size;
1: + u32 *desc_ver;
1: + long unsigned int *key_ptr;
1: + long unsigned int *buff_size;
1: +};
1: +
1: +struct exit_boot_struct {
1: + efi_memory_desc_t *runtime_map;
1: + int *runtime_entry_count;
1: + void *new_fdt_addr;
1: +};
1: +
1: +typedef struct {
1: + u64 size;
1: + u64 file_size;
1: + u64 phys_size;
1: + efi_time_t create_time;
1: + efi_time_t last_access_time;
1: + efi_time_t modification_time;
1: + __u64 attribute;
1: + efi_char16_t filename[0];
1: +} efi_file_info_t;
1: +
1: +struct efi_file_protocol;
1: +
1: +typedef struct efi_file_protocol efi_file_protocol_t;
1: +
1: +struct efi_file_protocol {
1: + u64 revision;
1: + efi_status_t (*open)(efi_file_protocol_t *, efi_file_protocol_t **, efi_char16_t *, u64, u64);
1: + efi_status_t (*close)(efi_file_protocol_t *);
1: + efi_status_t (*delete)(efi_file_protocol_t *);
1: + efi_status_t (*read)(efi_file_protocol_t *, long unsigned int *, void *);
1: + efi_status_t (*write)(efi_file_protocol_t *, long unsigned int, void *);
1: + efi_status_t (*get_position)(efi_file_protocol_t *, u64 *);
1: + efi_status_t (*set_position)(efi_file_protocol_t *, u64);
1: + efi_status_t (*get_info)(efi_file_protocol_t *, efi_guid_t *, long unsigned int *, void *);
1: + efi_status_t (*set_info)(efi_file_protocol_t *, efi_guid_t *, long unsigned int, void *);
1: + efi_status_t (*flush)(efi_file_protocol_t *);
1: +};
1: +
1: +struct efi_simple_file_system_protocol;
1: +
1: +typedef struct efi_simple_file_system_protocol efi_simple_file_system_protocol_t;
1: +
1: +struct efi_simple_file_system_protocol {
1: + u64 revision;
1: + int (*open_volume)(efi_simple_file_system_protocol_t *, efi_file_protocol_t **);
1: +};
1: +
1: +struct finfo {
1: + efi_file_info_t info;
1: + efi_char16_t filename[256];
1: +};
1: +
1: +typedef struct {
1: + u32 red_mask;
1: + u32 green_mask;
1: + u32 blue_mask;
1: + u32 reserved_mask;
1: +} efi_pixel_bitmask_t;
1: +
1: +typedef struct {
1: + u32 version;
1: + u32 horizontal_resolution;
1: + u32 vertical_resolution;
1: + int pixel_format;
1: + efi_pixel_bitmask_t pixel_information;
1: + u32 pixels_per_scan_line;
1: +} efi_graphics_output_mode_info_t;
1: +
1: +union efi_graphics_output_protocol_mode {
1: + struct {
1: + u32 max_mode;
1: + u32 mode;
1: + efi_graphics_output_mode_info_t *info;
1: + long unsigned int size_of_info;
1: + efi_physical_addr_t frame_buffer_base;
1: + long unsigned int frame_buffer_size;
1: + };
1: + struct {
1: + u32 max_mode;
1: + u32 mode;
1: + u32 info;
1: + u32 size_of_info;
1: + u64 frame_buffer_base;
1: + u32 frame_buffer_size;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union efi_graphics_output_protocol_mode efi_graphics_output_protocol_mode_t;
1: +
1: +union efi_graphics_output_protocol;
1: +
1: +typedef union efi_graphics_output_protocol efi_graphics_output_protocol_t;
1: +
1: +union efi_graphics_output_protocol {
1: + struct {
1: + efi_status_t (*query_mode)(efi_graphics_output_protocol_t *, u32, long unsigned int *, efi_graphics_output_mode_info_t **);
1: + efi_status_t (*set_mode)(efi_graphics_output_protocol_t *, u32);
1: + void *blt;
1: + efi_graphics_output_protocol_mode_t *mode;
1: + };
1: + struct {
1: + u32 query_mode;
1: + u32 set_mode;
1: + u32 blt;
1: + u32 mode;
1: + } mixed_mode;
1: +};
1: +
1: +enum efi_cmdline_option {
1: + EFI_CMDLINE_NONE = 0,
1: + EFI_CMDLINE_MODE_NUM = 1,
1: + EFI_CMDLINE_RES = 2,
1: + EFI_CMDLINE_AUTO = 3,
1: + EFI_CMDLINE_LIST = 4,
1: +};
1: +
1: +union efi_rng_protocol;
1: +
1: +typedef union efi_rng_protocol efi_rng_protocol_t;
1: +
1: +union efi_rng_protocol {
1: + struct {
1: + efi_status_t (*get_info)(efi_rng_protocol_t *, long unsigned int *, efi_guid_t *);
1: + efi_status_t (*get_rng)(efi_rng_protocol_t *, efi_guid_t *, long unsigned int, u8 *);
1: + };
1: + struct {
1: + u32 get_info;
1: + u32 get_rng;
1: + } mixed_mode;
1: +};
1: +
1: +typedef u32 efi_tcg2_event_log_format;
1: +
1: +union efi_tcg2_protocol {
1: + struct {
1: + void *get_capability;
1: + efi_status_t (*get_event_log)(efi_handle_t, efi_tcg2_event_log_format, efi_physical_addr_t *, efi_physical_addr_t *, efi_bool_t *);
1: + void *hash_log_extend_event;
1: + void *submit_command;
1: + void *get_active_pcr_banks;
1: + void *set_active_pcr_banks;
1: + void *get_result_of_set_active_pcr_banks;
1: + };
1: + struct {
1: + u32 get_capability;
1: + u32 get_event_log;
1: + u32 hash_log_extend_event;
1: + u32 submit_command;
1: + u32 get_active_pcr_banks;
1: + u32 set_active_pcr_banks;
1: + u32 get_result_of_set_active_pcr_banks;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union efi_tcg2_protocol efi_tcg2_protocol_t;
1: +
1: +struct efi_vendor_dev_path {
1: + struct efi_generic_dev_path header;
1: + efi_guid_t vendorguid;
1: + u8 vendordata[0];
1: +};
1: +
1: +union efi_load_file_protocol;
1: +
1: +typedef union efi_load_file_protocol efi_load_file_protocol_t;
1: +
1: +union efi_load_file_protocol {
1: + struct {
1: + efi_status_t (*load_file)(efi_load_file_protocol_t *, efi_device_path_protocol_t *, bool, long unsigned int *, void *);
1: + };
1: + struct {
1: + u32 load_file;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union efi_load_file_protocol efi_load_file2_protocol_t;
1: +
1: +typedef struct {
1: + u32 attributes;
1: + u16 file_path_list_length;
1: + u8 variable_data[0];
1: +} __attribute__((packed)) efi_load_option_t;
1: +
1: +typedef struct {
1: + u32 attributes;
1: + u16 file_path_list_length;
1: + const efi_char16_t *description;
1: + const efi_device_path_protocol_t *file_path_list;
1: + size_t optional_data_size;
1: + const void *optional_data;
1: +} efi_load_option_unpacked_t;
1: +
1: +typedef efi_status_t (*efi_exit_boot_map_processing)(struct efi_boot_memmap *, void *);
1: +
1: +typedef enum {
1: + EfiPciIoWidthUint8 = 0,
1: + EfiPciIoWidthUint16 = 1,
1: + EfiPciIoWidthUint32 = 2,
1: + EfiPciIoWidthUint64 = 3,
1: + EfiPciIoWidthFifoUint8 = 4,
1: + EfiPciIoWidthFifoUint16 = 5,
1: + EfiPciIoWidthFifoUint32 = 6,
1: + EfiPciIoWidthFifoUint64 = 7,
1: + EfiPciIoWidthFillUint8 = 8,
1: + EfiPciIoWidthFillUint16 = 9,
1: + EfiPciIoWidthFillUint32 = 10,
1: + EfiPciIoWidthFillUint64 = 11,
1: + EfiPciIoWidthMaximum = 12,
1: +} EFI_PCI_IO_PROTOCOL_WIDTH;
1: +
1: +typedef struct {
1: + u32 read;
1: + u32 write;
1: +} efi_pci_io_protocol_access_32_t;
1: +
1: +typedef struct {
1: + void *read;
1: + void *write;
1: +} efi_pci_io_protocol_access_t;
1: +
1: +union efi_pci_io_protocol;
1: +
1: +typedef union efi_pci_io_protocol efi_pci_io_protocol_t;
1: +
1: +typedef efi_status_t (*efi_pci_io_protocol_cfg_t)(efi_pci_io_protocol_t *, EFI_PCI_IO_PROTOCOL_WIDTH, u32, long unsigned int, void *);
1: +
1: +typedef struct {
1: + efi_pci_io_protocol_cfg_t read;
1: + efi_pci_io_protocol_cfg_t write;
1: +} efi_pci_io_protocol_config_access_t;
1: +
1: +union efi_pci_io_protocol {
1: + struct {
1: + void *poll_mem;
1: + void *poll_io;
1: + efi_pci_io_protocol_access_t mem;
1: + efi_pci_io_protocol_access_t io;
1: + efi_pci_io_protocol_config_access_t pci;
1: + void *copy_mem;
1: + void *map;
1: + void *unmap;
1: + void *allocate_buffer;
1: + void *free_buffer;
1: + void *flush;
1: + efi_status_t (*get_location)(efi_pci_io_protocol_t *, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *);
1: + void *attributes;
1: + void *get_bar_attributes;
1: + void *set_bar_attributes;
1: + uint64_t romsize;
1: + void *romimage;
1: + };
1: + struct {
1: + u32 poll_mem;
1: + u32 poll_io;
1: + efi_pci_io_protocol_access_32_t mem;
1: + efi_pci_io_protocol_access_32_t io;
1: + efi_pci_io_protocol_access_32_t pci;
1: + u32 copy_mem;
1: + u32 map;
1: + u32 unmap;
1: + u32 allocate_buffer;
1: + u32 free_buffer;
1: + u32 flush;
1: + u32 get_location;
1: + u32 attributes;
1: + u32 get_bar_attributes;
1: + u32 set_bar_attributes;
1: + u64 romsize;
1: + u32 romimage;
1: + } mixed_mode;
1: +};
1: +
1: +#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
1: +#pragma clang attribute pop
1: +#endif
1: +
1: +#endif /* __VMLINUX_H__ */
1: diff --git a/libbpf-tools/arm64/vmlinux_510.h b/libbpf-tools/arm64/vmlinux_510.h
1: index f84b1347..a2045805 100644
1: --- a/libbpf-tools/arm64/vmlinux_510.h
1: +++ b/libbpf-tools/arm64/vmlinux_510.h
1: @@ -2,7 +2,8 @@
1: #define __VMLINUX_H__
1:
1: #ifndef BPF_NO_PRESERVE_ACCESS_INDEX
1: -#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
1: +#pragma clang attribute push(__attribute__((preserve_access_index)), \
1: + apply_to = record)
1: #endif
1:
1: typedef signed char __s8;
1: @@ -34,8 +35,8 @@ typedef __s64 s64;
1: typedef __u64 u64;
1:
1: enum {
1: - false = 0,
1: - true = 1,
1: + false = 0,
1: + true = 1,
1: };
1:
1: typedef long int __kernel_long_t;
1: @@ -107,59 +108,59 @@ typedef u64 phys_addr_t;
1: typedef long unsigned int irq_hw_number_t;
1:
1: typedef struct {
1: - int counter;
1: + int counter;
1: } atomic_t;
1:
1: typedef struct {
1: - s64 counter;
1: + s64 counter;
1: } atomic64_t;
1:
1: struct list_head {
1: - struct list_head *next;
1: - struct list_head *prev;
1: + struct list_head *next;
1: + struct list_head *prev;
1: };
1:
1: struct hlist_node;
1:
1: struct hlist_head {
1: - struct hlist_node *first;
1: + struct hlist_node *first;
1: };
1:
1: struct hlist_node {
1: - struct hlist_node *next;
1: - struct hlist_node **pprev;
1: + struct hlist_node *next;
1: + struct hlist_node **pprev;
1: };
1:
1: struct callback_head {
1: - struct callback_head *next;
1: - void (*func)(struct callback_head *);
1: + struct callback_head *next;
1: + void (*func)(struct callback_head *);
1: };
1:
1: struct kernel_symbol {
1: - int value_offset;
1: - int name_offset;
1: - int namespace_offset;
1: + int value_offset;
1: + int name_offset;
1: + int namespace_offset;
1: };
1:
1: struct jump_entry {
1: - s32 code;
1: - s32 target;
1: - long int key;
1: + s32 code;
1: + s32 target;
1: + long int key;
1: };
1:
1: struct static_key_mod;
1:
1: struct static_key {
1: - atomic_t enabled;
1: - union {
1: - long unsigned int type;
1: - struct jump_entry *entries;
1: - struct static_key_mod *next;
1: - };
1: + atomic_t enabled;
1: + union {
1: + long unsigned int type;
1: + struct jump_entry *entries;
1: + struct static_key_mod *next;
1: + };
1: };
1:
1: struct static_key_false {
1: - struct static_key key;
1: + struct static_key key;
1: };
1:
1: typedef int (*initcall_t)();
1: @@ -179,57 +180,57 @@ struct super_block;
1: struct module;
1:
1: struct file_system_type {
1: - const char *name;
1: - int fs_flags;
1: - int (*init_fs_context)(struct fs_context *);
1: - const struct fs_parameter_spec *parameters;
1: - struct dentry * (*mount)(struct file_system_type *, int, const char *, void *);
1: - void (*kill_sb)(struct super_block *);
1: - struct module *owner;
1: - struct file_system_type *next;
1: - struct hlist_head fs_supers;
1: - struct lock_class_key s_lock_key;
1: - struct lock_class_key s_umount_key;
1: - struct lock_class_key s_vfs_rename_key;
1: - struct lock_class_key s_writers_key[3];
1: - struct lock_class_key i_lock_key;
1: - struct lock_class_key i_mutex_key;
1: - struct lock_class_key i_mutex_dir_key;
1: + const char *name;
1: + int fs_flags;
1: + int (*init_fs_context)(struct fs_context *);
1: + const struct fs_parameter_spec *parameters;
1: + struct dentry *(*mount)(struct file_system_type *, int, const char *, void *);
1: + void (*kill_sb)(struct super_block *);
1: + struct module *owner;
1: + struct file_system_type *next;
1: + struct hlist_head fs_supers;
1: + struct lock_class_key s_lock_key;
1: + struct lock_class_key s_umount_key;
1: + struct lock_class_key s_vfs_rename_key;
1: + struct lock_class_key s_writers_key[3];
1: + struct lock_class_key i_lock_key;
1: + struct lock_class_key i_mutex_key;
1: + struct lock_class_key i_mutex_dir_key;
1: };
1:
1: struct obs_kernel_param {
1: - const char *str;
1: - int (*setup_func)(char *);
1: - int early;
1: + const char *str;
1: + int (*setup_func)(char *);
1: + int early;
1: };
1:
1: typedef atomic64_t atomic_long_t;
1:
1: struct qspinlock {
1: - union {
1: - atomic_t val;
1: - struct {
1: - u8 locked;
1: - u8 pending;
1: - };
1: - struct {
1: - u16 locked_pending;
1: - u16 tail;
1: - };
1: - };
1: + union {
1: + atomic_t val;
1: + struct {
1: + u8 locked;
1: + u8 pending;
1: + };
1: + struct {
1: + u16 locked_pending;
1: + u16 tail;
1: + };
1: + };
1: };
1:
1: typedef struct qspinlock arch_spinlock_t;
1:
1: struct qrwlock {
1: - union {
1: - atomic_t cnts;
1: - struct {
1: - u8 wlocked;
1: - u8 __lstate[3];
1: - };
1: - };
1: - arch_spinlock_t wait_lock;
1: + union {
1: + atomic_t cnts;
1: + struct {
1: + u8 wlocked;
1: + u8 __lstate[3];
1: + };
1: + };
1: + arch_spinlock_t wait_lock;
1: };
1:
1: typedef struct qrwlock arch_rwlock_t;
1: @@ -237,31 +238,31 @@ typedef struct qrwlock arch_rwlock_t;
1: struct lockdep_map {};
1:
1: struct raw_spinlock {
1: - arch_spinlock_t raw_lock;
1: + arch_spinlock_t raw_lock;
1: };
1:
1: typedef struct raw_spinlock raw_spinlock_t;
1:
1: struct spinlock {
1: - union {
1: - struct raw_spinlock rlock;
1: - };
1: + union {
1: + struct raw_spinlock rlock;
1: + };
1: };
1:
1: typedef struct spinlock spinlock_t;
1:
1: typedef struct {
1: - arch_rwlock_t raw_lock;
1: + arch_rwlock_t raw_lock;
1: } rwlock_t;
1:
1: struct ratelimit_state {
1: - raw_spinlock_t lock;
1: - int interval;
1: - int burst;
1: - int printed;
1: - int missed;
1: - long unsigned int begin;
1: - long unsigned int flags;
1: + raw_spinlock_t lock;
1: + int interval;
1: + int burst;
1: + int printed;
1: + int missed;
1: + long unsigned int begin;
1: + long unsigned int flags;
1: };
1:
1: typedef void *fl_owner_t;
1: @@ -289,71 +290,77 @@ struct pipe_inode_info;
1: struct seq_file;
1:
1: struct file_operations {
1: - struct module *owner;
1: - loff_t (*llseek)(struct file *, loff_t, int);
1: - ssize_t (*read)(struct file *, char *, size_t, loff_t *);
1: - ssize_t (*write)(struct file *, const char *, size_t, loff_t *);
1: - ssize_t (*read_iter)(struct kiocb *, struct iov_iter *);
1: - ssize_t (*write_iter)(struct kiocb *, struct iov_iter *);
1: - int (*iopoll)(struct kiocb *, bool);
1: - int (*iterate)(struct file *, struct dir_context *);
1: - int (*iterate_shared)(struct file *, struct dir_context *);
1: - __poll_t (*poll)(struct file *, struct poll_table_struct *);
1: - long int (*unlocked_ioctl)(struct file *, unsigned int, long unsigned int);
1: - long int (*compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: - int (*mmap)(struct file *, struct vm_area_struct *);
1: - long unsigned int mmap_supported_flags;
1: - int (*open)(struct inode *, struct file *);
1: - int (*flush)(struct file *, fl_owner_t);
1: - int (*release)(struct inode *, struct file *);
1: - int (*fsync)(struct file *, loff_t, loff_t, int);
1: - int (*fasync)(int, struct file *, int);
1: - int (*lock)(struct file *, int, struct file_lock *);
1: - ssize_t (*sendpage)(struct file *, struct page *, int, size_t, loff_t *, int);
1: - long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: - int (*check_flags)(int);
1: - int (*flock)(struct file *, int, struct file_lock *);
1: - ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1: - ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: - int (*setlease)(struct file *, long int, struct file_lock **, void **);
1: - long int (*fallocate)(struct file *, int, loff_t, loff_t);
1: - void (*show_fdinfo)(struct seq_file *, struct file *);
1: - ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int);
1: - loff_t (*remap_file_range)(struct file *, loff_t, struct file *, loff_t, loff_t, unsigned int);
1: - int (*fadvise)(struct file *, loff_t, loff_t, int);
1: + struct module *owner;
1: + loff_t (*llseek)(struct file *, loff_t, int);
1: + ssize_t (*read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*write)(struct file *, const char *, size_t, loff_t *);
1: + ssize_t (*read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*write_iter)(struct kiocb *, struct iov_iter *);
1: + int (*iopoll)(struct kiocb *, bool);
1: + int (*iterate)(struct file *, struct dir_context *);
1: + int (*iterate_shared)(struct file *, struct dir_context *);
1: + __poll_t (*poll)(struct file *, struct poll_table_struct *);
1: + long int (*unlocked_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int mmap_supported_flags;
1: + int (*open)(struct inode *, struct file *);
1: + int (*flush)(struct file *, fl_owner_t);
1: + int (*release)(struct inode *, struct file *);
1: + int (*fsync)(struct file *, loff_t, loff_t, int);
1: + int (*fasync)(int, struct file *, int);
1: + int (*lock)(struct file *, int, struct file_lock *);
1: + ssize_t (*sendpage)(struct file *, struct page *, int, size_t, loff_t *, int);
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + long unsigned int);
1: + int (*check_flags)(int);
1: + int (*flock)(struct file *, int, struct file_lock *);
1: + ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *,
1: + size_t, unsigned int);
1: + ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *,
1: + size_t, unsigned int);
1: + int (*setlease)(struct file *, long int, struct file_lock **, void **);
1: + long int (*fallocate)(struct file *, int, loff_t, loff_t);
1: + void (*show_fdinfo)(struct seq_file *, struct file *);
1: + ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t,
1: + size_t, unsigned int);
1: + loff_t (*remap_file_range)(struct file *, loff_t, struct file *, loff_t,
1: + loff_t, unsigned int);
1: + int (*fadvise)(struct file *, loff_t, loff_t, int);
1: };
1:
1: enum system_states {
1: - SYSTEM_BOOTING = 0,
1: - SYSTEM_SCHEDULING = 1,
1: - SYSTEM_RUNNING = 2,
1: - SYSTEM_HALT = 3,
1: - SYSTEM_POWER_OFF = 4,
1: - SYSTEM_RESTART = 5,
1: - SYSTEM_SUSPEND = 6,
1: + SYSTEM_BOOTING = 0,
1: + SYSTEM_SCHEDULING = 1,
1: + SYSTEM_RUNNING = 2,
1: + SYSTEM_HALT = 3,
1: + SYSTEM_POWER_OFF = 4,
1: + SYSTEM_RESTART = 5,
1: + SYSTEM_SUSPEND = 6,
1: };
1:
1: typedef __s64 time64_t;
1:
1: struct __kernel_timespec {
1: - __kernel_time64_t tv_sec;
1: - long long int tv_nsec;
1: + __kernel_time64_t tv_sec;
1: + long long int tv_nsec;
1: };
1:
1: struct timespec64 {
1: - time64_t tv_sec;
1: - long int tv_nsec;
1: + time64_t tv_sec;
1: + long int tv_nsec;
1: };
1:
1: struct bug_entry {
1: - int bug_addr_disp;
1: - int file_disp;
1: - short unsigned int line;
1: - short unsigned int flags;
1: + int bug_addr_disp;
1: + int file_disp;
1: + short unsigned int line;
1: + short unsigned int flags;
1: };
1:
1: struct cpumask {
1: - long unsigned int bits[2];
1: + long unsigned int bits[2];
1: };
1:
1: typedef struct cpumask cpumask_t;
1: @@ -361,468 +368,468 @@ typedef struct cpumask cpumask_t;
1: typedef struct cpumask cpumask_var_t[1];
1:
1: struct llist_node {
1: - struct llist_node *next;
1: + struct llist_node *next;
1: };
1:
1: struct __call_single_node {
1: - struct llist_node llist;
1: - union {
1: - unsigned int u_flags;
1: - atomic_t a_flags;
1: - };
1: - u16 src;
1: - u16 dst;
1: + struct llist_node llist;
1: + union {
1: + unsigned int u_flags;
1: + atomic_t a_flags;
1: + };
1: + u16 src;
1: + u16 dst;
1: };
1:
1: typedef void (*smp_call_func_t)(void *);
1:
1: struct __call_single_data {
1: - union {
1: - struct __call_single_node node;
1: - struct {
1: - struct llist_node llist;
1: - unsigned int flags;
1: - u16 src;
1: - u16 dst;
1: - };
1: - };
1: - smp_call_func_t func;
1: - void *info;
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llist;
1: + unsigned int flags;
1: + u16 src;
1: + u16 dst;
1: + };
1: + };
1: + smp_call_func_t func;
1: + void *info;
1: };
1:
1: enum timespec_type {
1: - TT_NONE = 0,
1: - TT_NATIVE = 1,
1: - TT_COMPAT = 2,
1: + TT_NONE = 0,
1: + TT_NATIVE = 1,
1: + TT_COMPAT = 2,
1: };
1:
1: typedef s32 old_time32_t;
1:
1: struct old_timespec32 {
1: - old_time32_t tv_sec;
1: - s32 tv_nsec;
1: + old_time32_t tv_sec;
1: + s32 tv_nsec;
1: };
1:
1: struct pollfd {
1: - int fd;
1: - short int events;
1: - short int revents;
1: + int fd;
1: + short int events;
1: + short int revents;
1: };
1:
1: struct restart_block {
1: - long int (*fn)(struct restart_block *);
1: - union {
1: - struct {
1: - u32 *uaddr;
1: - u32 val;
1: - u32 flags;
1: - u32 bitset;
1: - u64 time;
1: - u32 *uaddr2;
1: - } futex;
1: - struct {
1: - clockid_t clockid;
1: - enum timespec_type type;
1: - union {
1: - struct __kernel_timespec *rmtp;
1: - struct old_timespec32 *compat_rmtp;
1: - };
1: - u64 expires;
1: - } nanosleep;
1: - struct {
1: - struct pollfd *ufds;
1: - int nfds;
1: - int has_timeout;
1: - long unsigned int tv_sec;
1: - long unsigned int tv_nsec;
1: - } poll;
1: - };
1: + long int (*fn)(struct restart_block *);
1: + union {
1: + struct {
1: + u32 *uaddr;
1: + u32 val;
1: + u32 flags;
1: + u32 bitset;
1: + u64 time;
1: + u32 *uaddr2;
1: + } futex;
1: + struct {
1: + clockid_t clockid;
1: + enum timespec_type type;
1: + union {
1: + struct __kernel_timespec *rmtp;
1: + struct old_timespec32 *compat_rmtp;
1: + };
1: + u64 expires;
1: + } nanosleep;
1: + struct {
1: + struct pollfd *ufds;
1: + int nfds;
1: + int has_timeout;
1: + long unsigned int tv_sec;
1: + long unsigned int tv_nsec;
1: + } poll;
1: + };
1: };
1:
1: typedef long unsigned int mm_segment_t;
1:
1: struct thread_info {
1: - long unsigned int flags;
1: - mm_segment_t addr_limit;
1: - u64 ttbr0;
1: - union {
1: - u64 preempt_count;
1: - struct {
1: - u32 count;
1: - u32 need_resched;
1: - } preempt;
1: - };
1: + long unsigned int flags;
1: + mm_segment_t addr_limit;
1: + u64 ttbr0;
1: + union {
1: + u64 preempt_count;
1: + struct {
1: + u32 count;
1: + u32 need_resched;
1: + } preempt;
1: + };
1: };
1:
1: struct refcount_struct {
1: - atomic_t refs;
1: + atomic_t refs;
1: };
1:
1: typedef struct refcount_struct refcount_t;
1:
1: struct load_weight {
1: - long unsigned int weight;
1: - u32 inv_weight;
1: + long unsigned int weight;
1: + u32 inv_weight;
1: };
1:
1: struct rb_node {
1: - long unsigned int __rb_parent_color;
1: - struct rb_node *rb_right;
1: - struct rb_node *rb_left;
1: + long unsigned int __rb_parent_color;
1: + struct rb_node *rb_right;
1: + struct rb_node *rb_left;
1: };
1:
1: struct sched_statistics {
1: - u64 wait_start;
1: - u64 wait_max;
1: - u64 wait_count;
1: - u64 wait_sum;
1: - u64 iowait_count;
1: - u64 iowait_sum;
1: - u64 sleep_start;
1: - u64 sleep_max;
1: - s64 sum_sleep_runtime;
1: - u64 block_start;
1: - u64 block_max;
1: - u64 exec_max;
1: - u64 slice_max;
1: - u64 nr_migrations_cold;
1: - u64 nr_failed_migrations_affine;
1: - u64 nr_failed_migrations_running;
1: - u64 nr_failed_migrations_hot;
1: - u64 nr_forced_migrations;
1: - u64 nr_wakeups;
1: - u64 nr_wakeups_sync;
1: - u64 nr_wakeups_migrate;
1: - u64 nr_wakeups_local;
1: - u64 nr_wakeups_remote;
1: - u64 nr_wakeups_affine;
1: - u64 nr_wakeups_affine_attempts;
1: - u64 nr_wakeups_passive;
1: - u64 nr_wakeups_idle;
1: + u64 wait_start;
1: + u64 wait_max;
1: + u64 wait_count;
1: + u64 wait_sum;
1: + u64 iowait_count;
1: + u64 iowait_sum;
1: + u64 sleep_start;
1: + u64 sleep_max;
1: + s64 sum_sleep_runtime;
1: + u64 block_start;
1: + u64 block_max;
1: + u64 exec_max;
1: + u64 slice_max;
1: + u64 nr_migrations_cold;
1: + u64 nr_failed_migrations_affine;
1: + u64 nr_failed_migrations_running;
1: + u64 nr_failed_migrations_hot;
1: + u64 nr_forced_migrations;
1: + u64 nr_wakeups;
1: + u64 nr_wakeups_sync;
1: + u64 nr_wakeups_migrate;
1: + u64 nr_wakeups_local;
1: + u64 nr_wakeups_remote;
1: + u64 nr_wakeups_affine;
1: + u64 nr_wakeups_affine_attempts;
1: + u64 nr_wakeups_passive;
1: + u64 nr_wakeups_idle;
1: };
1:
1: struct util_est {
1: - unsigned int enqueued;
1: - unsigned int ewma;
1: + unsigned int enqueued;
1: + unsigned int ewma;
1: };
1:
1: struct sched_avg {
1: - u64 last_update_time;
1: - u64 load_sum;
1: - u64 runnable_sum;
1: - u32 util_sum;
1: - u32 period_contrib;
1: - long unsigned int load_avg;
1: - long unsigned int runnable_avg;
1: - long unsigned int util_avg;
1: - struct util_est util_est;
1: + u64 last_update_time;
1: + u64 load_sum;
1: + u64 runnable_sum;
1: + u32 util_sum;
1: + u32 period_contrib;
1: + long unsigned int load_avg;
1: + long unsigned int runnable_avg;
1: + long unsigned int util_avg;
1: + struct util_est util_est;
1: };
1:
1: struct cfs_rq;
1:
1: struct sched_entity {
1: - struct load_weight load;
1: - struct rb_node run_node;
1: - struct list_head group_node;
1: - unsigned int on_rq;
1: - u64 exec_start;
1: - u64 sum_exec_runtime;
1: - u64 vruntime;
1: - u64 prev_sum_exec_runtime;
1: - u64 nr_migrations;
1: - struct sched_statistics statistics;
1: - int depth;
1: - struct sched_entity *parent;
1: - struct cfs_rq *cfs_rq;
1: - struct cfs_rq *my_q;
1: - long unsigned int runnable_weight;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sched_avg avg;
1: + struct load_weight load;
1: + struct rb_node run_node;
1: + struct list_head group_node;
1: + unsigned int on_rq;
1: + u64 exec_start;
1: + u64 sum_exec_runtime;
1: + u64 vruntime;
1: + u64 prev_sum_exec_runtime;
1: + u64 nr_migrations;
1: + struct sched_statistics statistics;
1: + int depth;
1: + struct sched_entity *parent;
1: + struct cfs_rq *cfs_rq;
1: + struct cfs_rq *my_q;
1: + long unsigned int runnable_weight;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sched_avg avg;
1: };
1:
1: struct sched_rt_entity {
1: - struct list_head run_list;
1: - long unsigned int timeout;
1: - long unsigned int watchdog_stamp;
1: - unsigned int time_slice;
1: - short unsigned int on_rq;
1: - short unsigned int on_list;
1: - struct sched_rt_entity *back;
1: + struct list_head run_list;
1: + long unsigned int timeout;
1: + long unsigned int watchdog_stamp;
1: + unsigned int time_slice;
1: + short unsigned int on_rq;
1: + short unsigned int on_list;
1: + struct sched_rt_entity *back;
1: };
1:
1: typedef s64 ktime_t;
1:
1: struct timerqueue_node {
1: - struct rb_node node;
1: - ktime_t expires;
1: + struct rb_node node;
1: + ktime_t expires;
1: };
1:
1: enum hrtimer_restart {
1: - HRTIMER_NORESTART = 0,
1: - HRTIMER_RESTART = 1,
1: + HRTIMER_NORESTART = 0,
1: + HRTIMER_RESTART = 1,
1: };
1:
1: struct hrtimer_clock_base;
1:
1: struct hrtimer {
1: - struct timerqueue_node node;
1: - ktime_t _softexpires;
1: - enum hrtimer_restart (*function)(struct hrtimer *);
1: - struct hrtimer_clock_base *base;
1: - u8 state;
1: - u8 is_rel;
1: - u8 is_soft;
1: - u8 is_hard;
1: + struct timerqueue_node node;
1: + ktime_t _softexpires;
1: + enum hrtimer_restart (*function)(struct hrtimer *);
1: + struct hrtimer_clock_base *base;
1: + u8 state;
1: + u8 is_rel;
1: + u8 is_soft;
1: + u8 is_hard;
1: };
1:
1: struct sched_dl_entity {
1: - struct rb_node rb_node;
1: - u64 dl_runtime;
1: - u64 dl_deadline;
1: - u64 dl_period;
1: - u64 dl_bw;
1: - u64 dl_density;
1: - s64 runtime;
1: - u64 deadline;
1: - unsigned int flags;
1: - unsigned int dl_throttled: 1;
1: - unsigned int dl_yielded: 1;
1: - unsigned int dl_non_contending: 1;
1: - unsigned int dl_overrun: 1;
1: - struct hrtimer dl_timer;
1: - struct hrtimer inactive_timer;
1: - struct sched_dl_entity *pi_se;
1: + struct rb_node rb_node;
1: + u64 dl_runtime;
1: + u64 dl_deadline;
1: + u64 dl_period;
1: + u64 dl_bw;
1: + u64 dl_density;
1: + s64 runtime;
1: + u64 deadline;
1: + unsigned int flags;
1: + unsigned int dl_throttled : 1;
1: + unsigned int dl_yielded : 1;
1: + unsigned int dl_non_contending : 1;
1: + unsigned int dl_overrun : 1;
1: + struct hrtimer dl_timer;
1: + struct hrtimer inactive_timer;
1: + struct sched_dl_entity *pi_se;
1: };
1:
1: struct uclamp_se {
1: - unsigned int value: 11;
1: - unsigned int bucket_id: 3;
1: - unsigned int active: 1;
1: - unsigned int user_defined: 1;
1: + unsigned int value : 11;
1: + unsigned int bucket_id : 3;
1: + unsigned int active : 1;
1: + unsigned int user_defined : 1;
1: };
1:
1: union rcu_special {
1: - struct {
1: - u8 blocked;
1: - u8 need_qs;
1: - u8 exp_hint;
1: - u8 need_mb;
1: - } b;
1: - u32 s;
1: + struct {
1: + u8 blocked;
1: + u8 need_qs;
1: + u8 exp_hint;
1: + u8 need_mb;
1: + } b;
1: + u32 s;
1: };
1:
1: struct sched_info {
1: - long unsigned int pcount;
1: - long long unsigned int run_delay;
1: - long long unsigned int last_arrival;
1: - long long unsigned int last_queued;
1: + long unsigned int pcount;
1: + long long unsigned int run_delay;
1: + long long unsigned int last_arrival;
1: + long long unsigned int last_queued;
1: };
1:
1: struct plist_node {
1: - int prio;
1: - struct list_head prio_list;
1: - struct list_head node_list;
1: + int prio;
1: + struct list_head prio_list;
1: + struct list_head node_list;
1: };
1:
1: struct vmacache {
1: - u64 seqnum;
1: - struct vm_area_struct *vmas[4];
1: + u64 seqnum;
1: + struct vm_area_struct *vmas[4];
1: };
1:
1: struct task_rss_stat {
1: - int events;
1: - int count[4];
1: + int events;
1: + int count[4];
1: };
1:
1: struct prev_cputime {
1: - u64 utime;
1: - u64 stime;
1: - raw_spinlock_t lock;
1: + u64 utime;
1: + u64 stime;
1: + raw_spinlock_t lock;
1: };
1:
1: struct rb_root {
1: - struct rb_node *rb_node;
1: + struct rb_node *rb_node;
1: };
1:
1: struct rb_root_cached {
1: - struct rb_root rb_root;
1: - struct rb_node *rb_leftmost;
1: + struct rb_root rb_root;
1: + struct rb_node *rb_leftmost;
1: };
1:
1: struct timerqueue_head {
1: - struct rb_root_cached rb_root;
1: + struct rb_root_cached rb_root;
1: };
1:
1: struct posix_cputimer_base {
1: - u64 nextevt;
1: - struct timerqueue_head tqhead;
1: + u64 nextevt;
1: + struct timerqueue_head tqhead;
1: };
1:
1: struct posix_cputimers {
1: - struct posix_cputimer_base bases[3];
1: - unsigned int timers_active;
1: - unsigned int expiry_active;
1: + struct posix_cputimer_base bases[3];
1: + unsigned int timers_active;
1: + unsigned int expiry_active;
1: };
1:
1: struct sem_undo_list;
1:
1: struct sysv_sem {
1: - struct sem_undo_list *undo_list;
1: + struct sem_undo_list *undo_list;
1: };
1:
1: struct sysv_shm {
1: - struct list_head shm_clist;
1: + struct list_head shm_clist;
1: };
1:
1: typedef struct {
1: - long unsigned int sig[1];
1: + long unsigned int sig[1];
1: } sigset_t;
1:
1: struct sigpending {
1: - struct list_head list;
1: - sigset_t signal;
1: + struct list_head list;
1: + sigset_t signal;
1: };
1:
1: typedef struct {
1: - uid_t val;
1: + uid_t val;
1: } kuid_t;
1:
1: struct seccomp_filter;
1:
1: struct seccomp {
1: - int mode;
1: - atomic_t filter_count;
1: - struct seccomp_filter *filter;
1: + int mode;
1: + atomic_t filter_count;
1: + struct seccomp_filter *filter;
1: };
1:
1: struct wake_q_node {
1: - struct wake_q_node *next;
1: + struct wake_q_node *next;
1: };
1:
1: struct task_io_accounting {
1: - u64 rchar;
1: - u64 wchar;
1: - u64 syscr;
1: - u64 syscw;
1: - u64 read_bytes;
1: - u64 write_bytes;
1: - u64 cancelled_write_bytes;
1: + u64 rchar;
1: + u64 wchar;
1: + u64 syscr;
1: + u64 syscw;
1: + u64 read_bytes;
1: + u64 write_bytes;
1: + u64 cancelled_write_bytes;
1: };
1:
1: typedef struct {
1: - long unsigned int bits[2];
1: + long unsigned int bits[2];
1: } nodemask_t;
1:
1: struct seqcount {
1: - unsigned int sequence;
1: + unsigned int sequence;
1: };
1:
1: typedef struct seqcount seqcount_t;
1:
1: struct seqcount_spinlock {
1: - seqcount_t seqcount;
1: + seqcount_t seqcount;
1: };
1:
1: typedef struct seqcount_spinlock seqcount_spinlock_t;
1:
1: struct optimistic_spin_queue {
1: - atomic_t tail;
1: + atomic_t tail;
1: };
1:
1: struct mutex {
1: - atomic_long_t owner;
1: - spinlock_t wait_lock;
1: - struct optimistic_spin_queue osq;
1: - struct list_head wait_list;
1: + atomic_long_t owner;
1: + spinlock_t wait_lock;
1: + struct optimistic_spin_queue osq;
1: + struct list_head wait_list;
1: };
1:
1: struct tlbflush_unmap_batch {};
1:
1: struct page_frag {
1: - struct page *page;
1: - __u32 offset;
1: - __u32 size;
1: + struct page *page;
1: + __u32 offset;
1: + __u32 size;
1: };
1:
1: struct latency_record {
1: - long unsigned int backtrace[12];
1: - unsigned int count;
1: - long unsigned int time;
1: - long unsigned int max;
1: + long unsigned int backtrace[12];
1: + unsigned int count;
1: + long unsigned int time;
1: + long unsigned int max;
1: };
1:
1: struct cpu_context {
1: - long unsigned int x19;
1: - long unsigned int x20;
1: - long unsigned int x21;
1: - long unsigned int x22;
1: - long unsigned int x23;
1: - long unsigned int x24;
1: - long unsigned int x25;
1: - long unsigned int x26;
1: - long unsigned int x27;
1: - long unsigned int x28;
1: - long unsigned int fp;
1: - long unsigned int sp;
1: - long unsigned int pc;
1: + long unsigned int x19;
1: + long unsigned int x20;
1: + long unsigned int x21;
1: + long unsigned int x22;
1: + long unsigned int x23;
1: + long unsigned int x24;
1: + long unsigned int x25;
1: + long unsigned int x26;
1: + long unsigned int x27;
1: + long unsigned int x28;
1: + long unsigned int fp;
1: + long unsigned int sp;
1: + long unsigned int pc;
1: };
1:
1: struct user_fpsimd_state {
1: - __int128 unsigned vregs[32];
1: - __u32 fpsr;
1: - __u32 fpcr;
1: - __u32 __reserved[2];
1: + __int128 unsigned vregs[32];
1: + __u32 fpsr;
1: + __u32 fpcr;
1: + __u32 __reserved[2];
1: };
1:
1: struct perf_event;
1:
1: struct debug_info {
1: - int suspended_step;
1: - int bps_disabled;
1: - int wps_disabled;
1: - struct perf_event *hbp_break[16];
1: - struct perf_event *hbp_watch[16];
1: + int suspended_step;
1: + int bps_disabled;
1: + int wps_disabled;
1: + struct perf_event *hbp_break[16];
1: + struct perf_event *hbp_watch[16];
1: };
1:
1: struct ptrauth_key {
1: - long unsigned int lo;
1: - long unsigned int hi;
1: + long unsigned int lo;
1: + long unsigned int hi;
1: };
1:
1: struct ptrauth_keys_user {
1: - struct ptrauth_key apia;
1: - struct ptrauth_key apib;
1: - struct ptrauth_key apda;
1: - struct ptrauth_key apdb;
1: - struct ptrauth_key apga;
1: + struct ptrauth_key apia;
1: + struct ptrauth_key apib;
1: + struct ptrauth_key apda;
1: + struct ptrauth_key apdb;
1: + struct ptrauth_key apga;
1: };
1:
1: struct ptrauth_keys_kernel {
1: - struct ptrauth_key apia;
1: + struct ptrauth_key apia;
1: };
1:
1: struct thread_struct {
1: - struct cpu_context cpu_context;
1: - long: 64;
1: - struct {
1: - long unsigned int tp_value;
1: - long unsigned int tp2_value;
1: - struct user_fpsimd_state fpsimd_state;
1: - } uw;
1: - unsigned int fpsimd_cpu;
1: - void *sve_state;
1: - unsigned int sve_vl;
1: - unsigned int sve_vl_onexec;
1: - long unsigned int fault_address;
1: - long unsigned int fault_code;
1: - struct debug_info debug;
1: - struct ptrauth_keys_user keys_user;
1: - struct ptrauth_keys_kernel keys_kernel;
1: - u64 sctlr_tcf0;
1: - u64 gcr_user_incl;
1: - long: 64;
1: + struct cpu_context cpu_context;
1: + long : 64;
1: + struct {
1: + long unsigned int tp_value;
1: + long unsigned int tp2_value;
1: + struct user_fpsimd_state fpsimd_state;
1: + } uw;
1: + unsigned int fpsimd_cpu;
1: + void *sve_state;
1: + unsigned int sve_vl;
1: + unsigned int sve_vl_onexec;
1: + long unsigned int fault_address;
1: + long unsigned int fault_code;
1: + struct debug_info debug;
1: + struct ptrauth_keys_user keys_user;
1: + struct ptrauth_keys_kernel keys_kernel;
1: + u64 sctlr_tcf0;
1: + u64 gcr_user_incl;
1: + long : 64;
1: };
1:
1: struct sched_class;
1: @@ -902,234 +909,234 @@ struct uprobe_task;
1: struct vm_struct;
1:
1: struct task_struct {
1: - struct thread_info thread_info;
1: - volatile long int state;
1: - void *stack;
1: - refcount_t usage;
1: - unsigned int flags;
1: - unsigned int ptrace;
1: - int on_cpu;
1: - struct __call_single_node wake_entry;
1: - unsigned int cpu;
1: - unsigned int wakee_flips;
1: - long unsigned int wakee_flip_decay_ts;
1: - struct task_struct *last_wakee;
1: - int recent_used_cpu;
1: - int wake_cpu;
1: - int on_rq;
1: - int prio;
1: - int static_prio;
1: - int normal_prio;
1: - unsigned int rt_priority;
1: - const struct sched_class *sched_class;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sched_entity se;
1: - struct sched_rt_entity rt;
1: - struct task_group *sched_task_group;
1: - struct sched_dl_entity dl;
1: - struct uclamp_se uclamp_req[2];
1: - struct uclamp_se uclamp[2];
1: - struct hlist_head preempt_notifiers;
1: - unsigned int btrace_seq;
1: - unsigned int policy;
1: - int nr_cpus_allowed;
1: - const cpumask_t *cpus_ptr;
1: - cpumask_t cpus_mask;
1: - long unsigned int rcu_tasks_nvcsw;
1: - u8 rcu_tasks_holdout;
1: - u8 rcu_tasks_idx;
1: - int rcu_tasks_idle_cpu;
1: - struct list_head rcu_tasks_holdout_list;
1: - int trc_reader_nesting;
1: - int trc_ipi_to_cpu;
1: - union rcu_special trc_reader_special;
1: - bool trc_reader_checked;
1: - struct list_head trc_holdout_list;
1: - struct sched_info sched_info;
1: - struct list_head tasks;
1: - struct plist_node pushable_tasks;
1: - struct rb_node pushable_dl_tasks;
1: - struct mm_struct *mm;
1: - struct mm_struct *active_mm;
1: - struct vmacache vmacache;
1: - struct task_rss_stat rss_stat;
1: - int exit_state;
1: - int exit_code;
1: - int exit_signal;
1: - int pdeath_signal;
1: - long unsigned int jobctl;
1: - unsigned int personality;
1: - unsigned int sched_reset_on_fork: 1;
1: - unsigned int sched_contributes_to_load: 1;
1: - unsigned int sched_migrated: 1;
1: - unsigned int sched_psi_wake_requeue: 1;
1: - int: 28;
1: - unsigned int sched_remote_wakeup: 1;
1: - unsigned int in_execve: 1;
1: - unsigned int in_iowait: 1;
1: - unsigned int in_user_fault: 1;
1: - unsigned int no_cgroup_migration: 1;
1: - unsigned int frozen: 1;
1: - unsigned int use_memdelay: 1;
1: - unsigned int in_memstall: 1;
1: - long unsigned int atomic_flags;
1: - struct restart_block restart_block;
1: - pid_t pid;
1: - pid_t tgid;
1: - long unsigned int stack_canary;
1: - struct task_struct *real_parent;
1: - struct task_struct *parent;
1: - struct list_head children;
1: - struct list_head sibling;
1: - struct task_struct *group_leader;
1: - struct list_head ptraced;
1: - struct list_head ptrace_entry;
1: - struct pid *thread_pid;
1: - struct hlist_node pid_links[4];
1: - struct list_head thread_group;
1: - struct list_head thread_node;
1: - struct completion *vfork_done;
1: - int *set_child_tid;
1: - int *clear_child_tid;
1: - u64 utime;
1: - u64 stime;
1: - u64 gtime;
1: - struct prev_cputime prev_cputime;
1: - long unsigned int nvcsw;
1: - long unsigned int nivcsw;
1: - u64 start_time;
1: - u64 start_boottime;
1: - long unsigned int min_flt;
1: - long unsigned int maj_flt;
1: - struct posix_cputimers posix_cputimers;
1: - const struct cred *ptracer_cred;
1: - const struct cred *real_cred;
1: - const struct cred *cred;
1: - struct key *cached_requested_key;
1: - char comm[16];
1: - struct nameidata *nameidata;
1: - struct sysv_sem sysvsem;
1: - struct sysv_shm sysvshm;
1: - long unsigned int last_switch_count;
1: - long unsigned int last_switch_time;
1: - struct fs_struct *fs;
1: - struct files_struct *files;
1: - struct io_uring_task *io_uring;
1: - struct nsproxy *nsproxy;
1: - struct signal_struct *signal;
1: - struct sighand_struct *sighand;
1: - sigset_t blocked;
1: - sigset_t real_blocked;
1: - sigset_t saved_sigmask;
1: - struct sigpending pending;
1: - long unsigned int sas_ss_sp;
1: - size_t sas_ss_size;
1: - unsigned int sas_ss_flags;
1: - struct callback_head *task_works;
1: - struct audit_context *audit_context;
1: - kuid_t loginuid;
1: - unsigned int sessionid;
1: - struct seccomp seccomp;
1: - u64 parent_exec_id;
1: - u64 self_exec_id;
1: - spinlock_t alloc_lock;
1: - raw_spinlock_t pi_lock;
1: - struct wake_q_node wake_q;
1: - struct rb_root_cached pi_waiters;
1: - struct task_struct *pi_top_task;
1: - struct rt_mutex_waiter *pi_blocked_on;
1: - void *journal_info;
1: - struct bio_list *bio_list;
1: - struct blk_plug *plug;
1: - struct reclaim_state *reclaim_state;
1: - struct backing_dev_info *backing_dev_info;
1: - struct io_context *io_context;
1: - struct capture_control *capture_control;
1: - long unsigned int ptrace_message;
1: - kernel_siginfo_t *last_siginfo;
1: - struct task_io_accounting ioac;
1: - unsigned int psi_flags;
1: - u64 acct_rss_mem1;
1: - u64 acct_vm_mem1;
1: - u64 acct_timexpd;
1: - nodemask_t mems_allowed;
1: - seqcount_spinlock_t mems_allowed_seq;
1: - int cpuset_mem_spread_rotor;
1: - int cpuset_slab_spread_rotor;
1: - struct css_set *cgroups;
1: - struct list_head cg_list;
1: - struct robust_list_head *robust_list;
1: - struct compat_robust_list_head *compat_robust_list;
1: - struct list_head pi_state_list;
1: - struct futex_pi_state *pi_state_cache;
1: - struct mutex futex_exit_mutex;
1: - unsigned int futex_state;
1: - struct perf_event_context *perf_event_ctxp[2];
1: - struct mutex perf_event_mutex;
1: - struct list_head perf_event_list;
1: - struct mempolicy *mempolicy;
1: - short int il_prev;
1: - short int pref_node_fork;
1: - int numa_scan_seq;
1: - unsigned int numa_scan_period;
1: - unsigned int numa_scan_period_max;
1: - int numa_preferred_nid;
1: - long unsigned int numa_migrate_retry;
1: - u64 node_stamp;
1: - u64 last_task_numa_placement;
1: - u64 last_sum_exec_runtime;
1: - struct callback_head numa_work;
1: - struct numa_group *numa_group;
1: - long unsigned int *numa_faults;
1: - long unsigned int total_numa_faults;
1: - long unsigned int numa_faults_locality[3];
1: - long unsigned int numa_pages_migrated;
1: - struct rseq *rseq;
1: - u32 rseq_sig;
1: - long unsigned int rseq_event_mask;
1: - struct tlbflush_unmap_batch tlb_ubc;
1: - union {
1: - refcount_t rcu_users;
1: - struct callback_head rcu;
1: - };
1: - struct pipe_inode_info *splice_pipe;
1: - struct page_frag task_frag;
1: - struct task_delay_info *delays;
1: - int nr_dirtied;
1: - int nr_dirtied_pause;
1: - long unsigned int dirty_paused_when;
1: - int latency_record_count;
1: - struct latency_record latency_record[32];
1: - u64 timer_slack_ns;
1: - u64 default_timer_slack_ns;
1: - int curr_ret_stack;
1: - int curr_ret_depth;
1: - struct ftrace_ret_stack *ret_stack;
1: - long long unsigned int ftrace_timestamp;
1: - atomic_t trace_overrun;
1: - atomic_t tracing_graph_pause;
1: - long unsigned int trace;
1: - long unsigned int trace_recursion;
1: - struct mem_cgroup *memcg_in_oom;
1: - gfp_t memcg_oom_gfp_mask;
1: - int memcg_oom_order;
1: - unsigned int memcg_nr_pages_over_high;
1: - struct mem_cgroup *active_memcg;
1: - struct request_queue *throttle_queue;
1: - struct uprobe_task *utask;
1: - unsigned int sequential_io;
1: - unsigned int sequential_io_avg;
1: - int pagefault_disabled;
1: - struct task_struct *oom_reaper_list;
1: - struct vm_struct *stack_vm_area;
1: - refcount_t stack_refcount;
1: - void *security;
1: - struct thread_struct thread;
1: + struct thread_info thread_info;
1: + volatile long int state;
1: + void *stack;
1: + refcount_t usage;
1: + unsigned int flags;
1: + unsigned int ptrace;
1: + int on_cpu;
1: + struct __call_single_node wake_entry;
1: + unsigned int cpu;
1: + unsigned int wakee_flips;
1: + long unsigned int wakee_flip_decay_ts;
1: + struct task_struct *last_wakee;
1: + int recent_used_cpu;
1: + int wake_cpu;
1: + int on_rq;
1: + int prio;
1: + int static_prio;
1: + int normal_prio;
1: + unsigned int rt_priority;
1: + const struct sched_class *sched_class;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sched_entity se;
1: + struct sched_rt_entity rt;
1: + struct task_group *sched_task_group;
1: + struct sched_dl_entity dl;
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: + struct hlist_head preempt_notifiers;
1: + unsigned int btrace_seq;
1: + unsigned int policy;
1: + int nr_cpus_allowed;
1: + const cpumask_t *cpus_ptr;
1: + cpumask_t cpus_mask;
1: + long unsigned int rcu_tasks_nvcsw;
1: + u8 rcu_tasks_holdout;
1: + u8 rcu_tasks_idx;
1: + int rcu_tasks_idle_cpu;
1: + struct list_head rcu_tasks_holdout_list;
1: + int trc_reader_nesting;
1: + int trc_ipi_to_cpu;
1: + union rcu_special trc_reader_special;
1: + bool trc_reader_checked;
1: + struct list_head trc_holdout_list;
1: + struct sched_info sched_info;
1: + struct list_head tasks;
1: + struct plist_node pushable_tasks;
1: + struct rb_node pushable_dl_tasks;
1: + struct mm_struct *mm;
1: + struct mm_struct *active_mm;
1: + struct vmacache vmacache;
1: + struct task_rss_stat rss_stat;
1: + int exit_state;
1: + int exit_code;
1: + int exit_signal;
1: + int pdeath_signal;
1: + long unsigned int jobctl;
1: + unsigned int personality;
1: + unsigned int sched_reset_on_fork : 1;
1: + unsigned int sched_contributes_to_load : 1;
1: + unsigned int sched_migrated : 1;
1: + unsigned int sched_psi_wake_requeue : 1;
1: + int : 28;
1: + unsigned int sched_remote_wakeup : 1;
1: + unsigned int in_execve : 1;
1: + unsigned int in_iowait : 1;
1: + unsigned int in_user_fault : 1;
1: + unsigned int no_cgroup_migration : 1;
1: + unsigned int frozen : 1;
1: + unsigned int use_memdelay : 1;
1: + unsigned int in_memstall : 1;
1: + long unsigned int atomic_flags;
1: + struct restart_block restart_block;
1: + pid_t pid;
1: + pid_t tgid;
1: + long unsigned int stack_canary;
1: + struct task_struct *real_parent;
1: + struct task_struct *parent;
1: + struct list_head children;
1: + struct list_head sibling;
1: + struct task_struct *group_leader;
1: + struct list_head ptraced;
1: + struct list_head ptrace_entry;
1: + struct pid *thread_pid;
1: + struct hlist_node pid_links[4];
1: + struct list_head thread_group;
1: + struct list_head thread_node;
1: + struct completion *vfork_done;
1: + int *set_child_tid;
1: + int *clear_child_tid;
1: + u64 utime;
1: + u64 stime;
1: + u64 gtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + u64 start_time;
1: + u64 start_boottime;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + struct posix_cputimers posix_cputimers;
1: + const struct cred *ptracer_cred;
1: + const struct cred *real_cred;
1: + const struct cred *cred;
1: + struct key *cached_requested_key;
1: + char comm[16];
1: + struct nameidata *nameidata;
1: + struct sysv_sem sysvsem;
1: + struct sysv_shm sysvshm;
1: + long unsigned int last_switch_count;
1: + long unsigned int last_switch_time;
1: + struct fs_struct *fs;
1: + struct files_struct *files;
1: + struct io_uring_task *io_uring;
1: + struct nsproxy *nsproxy;
1: + struct signal_struct *signal;
1: + struct sighand_struct *sighand;
1: + sigset_t blocked;
1: + sigset_t real_blocked;
1: + sigset_t saved_sigmask;
1: + struct sigpending pending;
1: + long unsigned int sas_ss_sp;
1: + size_t sas_ss_size;
1: + unsigned int sas_ss_flags;
1: + struct callback_head *task_works;
1: + struct audit_context *audit_context;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct seccomp seccomp;
1: + u64 parent_exec_id;
1: + u64 self_exec_id;
1: + spinlock_t alloc_lock;
1: + raw_spinlock_t pi_lock;
1: + struct wake_q_node wake_q;
1: + struct rb_root_cached pi_waiters;
1: + struct task_struct *pi_top_task;
1: + struct rt_mutex_waiter *pi_blocked_on;
1: + void *journal_info;
1: + struct bio_list *bio_list;
1: + struct blk_plug *plug;
1: + struct reclaim_state *reclaim_state;
1: + struct backing_dev_info *backing_dev_info;
1: + struct io_context *io_context;
1: + struct capture_control *capture_control;
1: + long unsigned int ptrace_message;
1: + kernel_siginfo_t *last_siginfo;
1: + struct task_io_accounting ioac;
1: + unsigned int psi_flags;
1: + u64 acct_rss_mem1;
1: + u64 acct_vm_mem1;
1: + u64 acct_timexpd;
1: + nodemask_t mems_allowed;
1: + seqcount_spinlock_t mems_allowed_seq;
1: + int cpuset_mem_spread_rotor;
1: + int cpuset_slab_spread_rotor;
1: + struct css_set *cgroups;
1: + struct list_head cg_list;
1: + struct robust_list_head *robust_list;
1: + struct compat_robust_list_head *compat_robust_list;
1: + struct list_head pi_state_list;
1: + struct futex_pi_state *pi_state_cache;
1: + struct mutex futex_exit_mutex;
1: + unsigned int futex_state;
1: + struct perf_event_context *perf_event_ctxp[2];
1: + struct mutex perf_event_mutex;
1: + struct list_head perf_event_list;
1: + struct mempolicy *mempolicy;
1: + short int il_prev;
1: + short int pref_node_fork;
1: + int numa_scan_seq;
1: + unsigned int numa_scan_period;
1: + unsigned int numa_scan_period_max;
1: + int numa_preferred_nid;
1: + long unsigned int numa_migrate_retry;
1: + u64 node_stamp;
1: + u64 last_task_numa_placement;
1: + u64 last_sum_exec_runtime;
1: + struct callback_head numa_work;
1: + struct numa_group *numa_group;
1: + long unsigned int *numa_faults;
1: + long unsigned int total_numa_faults;
1: + long unsigned int numa_faults_locality[3];
1: + long unsigned int numa_pages_migrated;
1: + struct rseq *rseq;
1: + u32 rseq_sig;
1: + long unsigned int rseq_event_mask;
1: + struct tlbflush_unmap_batch tlb_ubc;
1: + union {
1: + refcount_t rcu_users;
1: + struct callback_head rcu;
1: + };
1: + struct pipe_inode_info *splice_pipe;
1: + struct page_frag task_frag;
1: + struct task_delay_info *delays;
1: + int nr_dirtied;
1: + int nr_dirtied_pause;
1: + long unsigned int dirty_paused_when;
1: + int latency_record_count;
1: + struct latency_record latency_record[32];
1: + u64 timer_slack_ns;
1: + u64 default_timer_slack_ns;
1: + int curr_ret_stack;
1: + int curr_ret_depth;
1: + struct ftrace_ret_stack *ret_stack;
1: + long long unsigned int ftrace_timestamp;
1: + atomic_t trace_overrun;
1: + atomic_t tracing_graph_pause;
1: + long unsigned int trace;
1: + long unsigned int trace_recursion;
1: + struct mem_cgroup *memcg_in_oom;
1: + gfp_t memcg_oom_gfp_mask;
1: + int memcg_oom_order;
1: + unsigned int memcg_nr_pages_over_high;
1: + struct mem_cgroup *active_memcg;
1: + struct request_queue *throttle_queue;
1: + struct uprobe_task *utask;
1: + unsigned int sequential_io;
1: + unsigned int sequential_io_avg;
1: + int pagefault_disabled;
1: + struct task_struct *oom_reaper_list;
1: + struct vm_struct *stack_vm_area;
1: + refcount_t stack_refcount;
1: + void *security;
1: + struct thread_struct thread;
1: };
1:
1: typedef s32 compat_long_t;
1: @@ -1137,44 +1144,44 @@ typedef s32 compat_long_t;
1: typedef u32 compat_uptr_t;
1:
1: struct user_pt_regs {
1: - __u64 regs[31];
1: - __u64 sp;
1: - __u64 pc;
1: - __u64 pstate;
1: + __u64 regs[31];
1: + __u64 sp;
1: + __u64 pc;
1: + __u64 pstate;
1: };
1:
1: struct pt_regs {
1: - union {
1: - struct user_pt_regs user_regs;
1: - struct {
1: - u64 regs[31];
1: - u64 sp;
1: - u64 pc;
1: - u64 pstate;
1: - };
1: - };
1: - u64 orig_x0;
1: - s32 syscallno;
1: - u32 unused2;
1: - u64 orig_addr_limit;
1: - u64 pmr_save;
1: - u64 stackframe[2];
1: - u64 lockdep_hardirqs;
1: - u64 exit_rcu;
1: + union {
1: + struct user_pt_regs user_regs;
1: + struct {
1: + u64 regs[31];
1: + u64 sp;
1: + u64 pc;
1: + u64 pstate;
1: + };
1: + };
1: + u64 orig_x0;
1: + s32 syscallno;
1: + u32 unused2;
1: + u64 orig_addr_limit;
1: + u64 pmr_save;
1: + u64 stackframe[2];
1: + u64 lockdep_hardirqs;
1: + u64 exit_rcu;
1: };
1:
1: struct arch_hw_breakpoint_ctrl {
1: - u32 __reserved: 19;
1: - u32 len: 8;
1: - u32 type: 2;
1: - u32 privilege: 2;
1: - u32 enabled: 1;
1: + u32 __reserved : 19;
1: + u32 len : 8;
1: + u32 type : 2;
1: + u32 privilege : 2;
1: + u32 enabled : 1;
1: };
1:
1: struct arch_hw_breakpoint {
1: - u64 address;
1: - u64 trigger;
1: - struct arch_hw_breakpoint_ctrl ctrl;
1: + u64 address;
1: + u64 trigger;
1: + struct arch_hw_breakpoint_ctrl ctrl;
1: };
1:
1: typedef u64 pteval_t;
1: @@ -1186,34 +1193,34 @@ typedef u64 pudval_t;
1: typedef u64 pgdval_t;
1:
1: typedef struct {
1: - pteval_t pte;
1: + pteval_t pte;
1: } pte_t;
1:
1: typedef struct {
1: - pmdval_t pmd;
1: + pmdval_t pmd;
1: } pmd_t;
1:
1: typedef struct {
1: - pudval_t pud;
1: + pudval_t pud;
1: } pud_t;
1:
1: typedef struct {
1: - pgdval_t pgd;
1: + pgdval_t pgd;
1: } pgd_t;
1:
1: typedef struct {
1: - pteval_t pgprot;
1: + pteval_t pgprot;
1: } pgprot_t;
1:
1: enum module_state {
1: - MODULE_STATE_LIVE = 0,
1: - MODULE_STATE_COMING = 1,
1: - MODULE_STATE_GOING = 2,
1: - MODULE_STATE_UNFORMED = 3,
1: + MODULE_STATE_LIVE = 0,
1: + MODULE_STATE_COMING = 1,
1: + MODULE_STATE_GOING = 2,
1: + MODULE_STATE_UNFORMED = 3,
1: };
1:
1: struct kref {
1: - refcount_t refcount;
1: + refcount_t refcount;
1: };
1:
1: struct kset;
1: @@ -1223,60 +1230,60 @@ struct kobj_type;
1: struct kernfs_node;
1:
1: struct kobject {
1: - const char *name;
1: - struct list_head entry;
1: - struct kobject *parent;
1: - struct kset *kset;
1: - struct kobj_type *ktype;
1: - struct kernfs_node *sd;
1: - struct kref kref;
1: - unsigned int state_initialized: 1;
1: - unsigned int state_in_sysfs: 1;
1: - unsigned int state_add_uevent_sent: 1;
1: - unsigned int state_remove_uevent_sent: 1;
1: - unsigned int uevent_suppress: 1;
1: + const char *name;
1: + struct list_head entry;
1: + struct kobject *parent;
1: + struct kset *kset;
1: + struct kobj_type *ktype;
1: + struct kernfs_node *sd;
1: + struct kref kref;
1: + unsigned int state_initialized : 1;
1: + unsigned int state_in_sysfs : 1;
1: + unsigned int state_add_uevent_sent : 1;
1: + unsigned int state_remove_uevent_sent : 1;
1: + unsigned int uevent_suppress : 1;
1: };
1:
1: struct module_param_attrs;
1:
1: struct module_kobject {
1: - struct kobject kobj;
1: - struct module *mod;
1: - struct kobject *drivers_dir;
1: - struct module_param_attrs *mp;
1: - struct completion *kobj_completion;
1: + struct kobject kobj;
1: + struct module *mod;
1: + struct kobject *drivers_dir;
1: + struct module_param_attrs *mp;
1: + struct completion *kobj_completion;
1: };
1:
1: struct latch_tree_node {
1: - struct rb_node node[2];
1: + struct rb_node node[2];
1: };
1:
1: struct mod_tree_node {
1: - struct module *mod;
1: - struct latch_tree_node node;
1: + struct module *mod;
1: + struct latch_tree_node node;
1: };
1:
1: struct module_layout {
1: - void *base;
1: - unsigned int size;
1: - unsigned int text_size;
1: - unsigned int ro_size;
1: - unsigned int ro_after_init_size;
1: - struct mod_tree_node mtn;
1: + void *base;
1: + unsigned int size;
1: + unsigned int text_size;
1: + unsigned int ro_size;
1: + unsigned int ro_after_init_size;
1: + struct mod_tree_node mtn;
1: };
1:
1: struct mod_plt_sec {
1: - int plt_shndx;
1: - int plt_num_entries;
1: - int plt_max_entries;
1: + int plt_shndx;
1: + int plt_num_entries;
1: + int plt_max_entries;
1: };
1:
1: struct plt_entry;
1:
1: struct mod_arch_specific {
1: - struct mod_plt_sec core;
1: - struct mod_plt_sec init;
1: - struct plt_entry *ftrace_trampolines;
1: + struct mod_plt_sec core;
1: + struct mod_plt_sec init;
1: + struct plt_entry *ftrace_trampolines;
1: };
1:
1: struct elf64_sym;
1: @@ -1284,10 +1291,10 @@ struct elf64_sym;
1: typedef struct elf64_sym Elf64_Sym;
1:
1: struct mod_kallsyms {
1: - Elf64_Sym *symtab;
1: - unsigned int num_symtab;
1: - char *strtab;
1: - char *typetab;
1: + Elf64_Sym *symtab;
1: + unsigned int num_symtab;
1: + char *strtab;
1: + char *typetab;
1: };
1:
1: typedef const int tracepoint_ptr_t;
1: @@ -1313,303 +1320,306 @@ struct trace_eval_map;
1: struct error_injection_entry;
1:
1: struct module {
1: - enum module_state state;
1: - struct list_head list;
1: - char name[56];
1: - struct module_kobject mkobj;
1: - struct module_attribute *modinfo_attrs;
1: - const char *version;
1: - const char *srcversion;
1: - struct kobject *holders_dir;
1: - const struct kernel_symbol *syms;
1: - const s32 *crcs;
1: - unsigned int num_syms;
1: - struct mutex param_lock;
1: - struct kernel_param *kp;
1: - unsigned int num_kp;
1: - unsigned int num_gpl_syms;
1: - const struct kernel_symbol *gpl_syms;
1: - const s32 *gpl_crcs;
1: - bool using_gplonly_symbols;
1: - const struct kernel_symbol *unused_syms;
1: - const s32 *unused_crcs;
1: - unsigned int num_unused_syms;
1: - unsigned int num_unused_gpl_syms;
1: - const struct kernel_symbol *unused_gpl_syms;
1: - const s32 *unused_gpl_crcs;
1: - bool sig_ok;
1: - bool async_probe_requested;
1: - const struct kernel_symbol *gpl_future_syms;
1: - const s32 *gpl_future_crcs;
1: - unsigned int num_gpl_future_syms;
1: - unsigned int num_exentries;
1: - struct exception_table_entry *extable;
1: - int (*init)();
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct module_layout core_layout;
1: - struct module_layout init_layout;
1: - struct mod_arch_specific arch;
1: - long unsigned int taints;
1: - unsigned int num_bugs;
1: - struct list_head bug_list;
1: - struct bug_entry *bug_table;
1: - struct mod_kallsyms *kallsyms;
1: - struct mod_kallsyms core_kallsyms;
1: - struct module_sect_attrs *sect_attrs;
1: - struct module_notes_attrs *notes_attrs;
1: - char *args;
1: - void *percpu;
1: - unsigned int percpu_size;
1: - void *noinstr_text_start;
1: - unsigned int noinstr_text_size;
1: - unsigned int num_tracepoints;
1: - tracepoint_ptr_t *tracepoints_ptrs;
1: - unsigned int num_srcu_structs;
1: - struct srcu_struct **srcu_struct_ptrs;
1: - unsigned int num_bpf_raw_events;
1: - struct bpf_raw_event_map *bpf_raw_events;
1: - struct jump_entry *jump_entries;
1: - unsigned int num_jump_entries;
1: - unsigned int num_trace_bprintk_fmt;
1: - const char **trace_bprintk_fmt_start;
1: - struct trace_event_call **trace_events;
1: - unsigned int num_trace_events;
1: - struct trace_eval_map **trace_evals;
1: - unsigned int num_trace_evals;
1: - unsigned int num_ftrace_callsites;
1: - long unsigned int *ftrace_callsites;
1: - void *kprobes_text_start;
1: - unsigned int kprobes_text_size;
1: - long unsigned int *kprobe_blacklist;
1: - unsigned int num_kprobe_blacklist;
1: - struct list_head source_list;
1: - struct list_head target_list;
1: - void (*exit)();
1: - atomic_t refcnt;
1: - struct error_injection_entry *ei_funcs;
1: - unsigned int num_ei_funcs;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + enum module_state state;
1: + struct list_head list;
1: + char name[56];
1: + struct module_kobject mkobj;
1: + struct module_attribute *modinfo_attrs;
1: + const char *version;
1: + const char *srcversion;
1: + struct kobject *holders_dir;
1: + const struct kernel_symbol *syms;
1: + const s32 *crcs;
1: + unsigned int num_syms;
1: + struct mutex param_lock;
1: + struct kernel_param *kp;
1: + unsigned int num_kp;
1: + unsigned int num_gpl_syms;
1: + const struct kernel_symbol *gpl_syms;
1: + const s32 *gpl_crcs;
1: + bool using_gplonly_symbols;
1: + const struct kernel_symbol *unused_syms;
1: + const s32 *unused_crcs;
1: + unsigned int num_unused_syms;
1: + unsigned int num_unused_gpl_syms;
1: + const struct kernel_symbol *unused_gpl_syms;
1: + const s32 *unused_gpl_crcs;
1: + bool sig_ok;
1: + bool async_probe_requested;
1: + const struct kernel_symbol *gpl_future_syms;
1: + const s32 *gpl_future_crcs;
1: + unsigned int num_gpl_future_syms;
1: + unsigned int num_exentries;
1: + struct exception_table_entry *extable;
1: + int (*init)();
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct module_layout core_layout;
1: + struct module_layout init_layout;
1: + struct mod_arch_specific arch;
1: + long unsigned int taints;
1: + unsigned int num_bugs;
1: + struct list_head bug_list;
1: + struct bug_entry *bug_table;
1: + struct mod_kallsyms *kallsyms;
1: + struct mod_kallsyms core_kallsyms;
1: + struct module_sect_attrs *sect_attrs;
1: + struct module_notes_attrs *notes_attrs;
1: + char *args;
1: + void *percpu;
1: + unsigned int percpu_size;
1: + void *noinstr_text_start;
1: + unsigned int noinstr_text_size;
1: + unsigned int num_tracepoints;
1: + tracepoint_ptr_t *tracepoints_ptrs;
1: + unsigned int num_srcu_structs;
1: + struct srcu_struct **srcu_struct_ptrs;
1: + unsigned int num_bpf_raw_events;
1: + struct bpf_raw_event_map *bpf_raw_events;
1: + struct jump_entry *jump_entries;
1: + unsigned int num_jump_entries;
1: + unsigned int num_trace_bprintk_fmt;
1: + const char **trace_bprintk_fmt_start;
1: + struct trace_event_call **trace_events;
1: + unsigned int num_trace_events;
1: + struct trace_eval_map **trace_evals;
1: + unsigned int num_trace_evals;
1: + unsigned int num_ftrace_callsites;
1: + long unsigned int *ftrace_callsites;
1: + void *kprobes_text_start;
1: + unsigned int kprobes_text_size;
1: + long unsigned int *kprobe_blacklist;
1: + unsigned int num_kprobe_blacklist;
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + void (*exit)();
1: + atomic_t refcnt;
1: + struct error_injection_entry *ei_funcs;
1: + unsigned int num_ei_funcs;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum perf_event_state {
1: - PERF_EVENT_STATE_DEAD = 4294967292,
1: - PERF_EVENT_STATE_EXIT = 4294967293,
1: - PERF_EVENT_STATE_ERROR = 4294967294,
1: - PERF_EVENT_STATE_OFF = 4294967295,
1: - PERF_EVENT_STATE_INACTIVE = 0,
1: - PERF_EVENT_STATE_ACTIVE = 1,
1: + PERF_EVENT_STATE_DEAD = 4294967292,
1: + PERF_EVENT_STATE_EXIT = 4294967293,
1: + PERF_EVENT_STATE_ERROR = 4294967294,
1: + PERF_EVENT_STATE_OFF = 4294967295,
1: + PERF_EVENT_STATE_INACTIVE = 0,
1: + PERF_EVENT_STATE_ACTIVE = 1,
1: };
1:
1: typedef struct {
1: - atomic_long_t a;
1: + atomic_long_t a;
1: } local_t;
1:
1: typedef struct {
1: - local_t a;
1: + local_t a;
1: } local64_t;
1:
1: struct perf_event_attr {
1: - __u32 type;
1: - __u32 size;
1: - __u64 config;
1: - union {
1: - __u64 sample_period;
1: - __u64 sample_freq;
1: - };
1: - __u64 sample_type;
1: - __u64 read_format;
1: - __u64 disabled: 1;
1: - __u64 inherit: 1;
1: - __u64 pinned: 1;
1: - __u64 exclusive: 1;
1: - __u64 exclude_user: 1;
1: - __u64 exclude_kernel: 1;
1: - __u64 exclude_hv: 1;
1: - __u64 exclude_idle: 1;
1: - __u64 mmap: 1;
1: - __u64 comm: 1;
1: - __u64 freq: 1;
1: - __u64 inherit_stat: 1;
1: - __u64 enable_on_exec: 1;
1: - __u64 task: 1;
1: - __u64 watermark: 1;
1: - __u64 precise_ip: 2;
1: - __u64 mmap_data: 1;
1: - __u64 sample_id_all: 1;
1: - __u64 exclude_host: 1;
1: - __u64 exclude_guest: 1;
1: - __u64 exclude_callchain_kernel: 1;
1: - __u64 exclude_callchain_user: 1;
1: - __u64 mmap2: 1;
1: - __u64 comm_exec: 1;
1: - __u64 use_clockid: 1;
1: - __u64 context_switch: 1;
1: - __u64 write_backward: 1;
1: - __u64 namespaces: 1;
1: - __u64 ksymbol: 1;
1: - __u64 bpf_event: 1;
1: - __u64 aux_output: 1;
1: - __u64 cgroup: 1;
1: - __u64 text_poke: 1;
1: - __u64 __reserved_1: 30;
1: - union {
1: - __u32 wakeup_events;
1: - __u32 wakeup_watermark;
1: - };
1: - __u32 bp_type;
1: - union {
1: - __u64 bp_addr;
1: - __u64 kprobe_func;
1: - __u64 uprobe_path;
1: - __u64 config1;
1: - };
1: - union {
1: - __u64 bp_len;
1: - __u64 kprobe_addr;
1: - __u64 probe_offset;
1: - __u64 config2;
1: - };
1: - __u64 branch_sample_type;
1: - __u64 sample_regs_user;
1: - __u32 sample_stack_user;
1: - __s32 clockid;
1: - __u64 sample_regs_intr;
1: - __u32 aux_watermark;
1: - __u16 sample_max_stack;
1: - __u16 __reserved_2;
1: - __u32 aux_sample_size;
1: - __u32 __reserved_3;
1: + __u32 type;
1: + __u32 size;
1: + __u64 config;
1: + union {
1: + __u64 sample_period;
1: + __u64 sample_freq;
1: + };
1: + __u64 sample_type;
1: + __u64 read_format;
1: + __u64 disabled : 1;
1: + __u64 inherit : 1;
1: + __u64 pinned : 1;
1: + __u64 exclusive : 1;
1: + __u64 exclude_user : 1;
1: + __u64 exclude_kernel : 1;
1: + __u64 exclude_hv : 1;
1: + __u64 exclude_idle : 1;
1: + __u64 mmap : 1;
1: + __u64 comm : 1;
1: + __u64 freq : 1;
1: + __u64 inherit_stat : 1;
1: + __u64 enable_on_exec : 1;
1: + __u64 task : 1;
1: + __u64 watermark : 1;
1: + __u64 precise_ip : 2;
1: + __u64 mmap_data : 1;
1: + __u64 sample_id_all : 1;
1: + __u64 exclude_host : 1;
1: + __u64 exclude_guest : 1;
1: + __u64 exclude_callchain_kernel : 1;
1: + __u64 exclude_callchain_user : 1;
1: + __u64 mmap2 : 1;
1: + __u64 comm_exec : 1;
1: + __u64 use_clockid : 1;
1: + __u64 context_switch : 1;
1: + __u64 write_backward : 1;
1: + __u64 namespaces : 1;
1: + __u64 ksymbol : 1;
1: + __u64 bpf_event : 1;
1: + __u64 aux_output : 1;
1: + __u64 cgroup : 1;
1: + __u64 text_poke : 1;
1: + __u64 __reserved_1 : 30;
1: + union {
1: + __u32 wakeup_events;
1: + __u32 wakeup_watermark;
1: + };
1: + __u32 bp_type;
1: + union {
1: + __u64 bp_addr;
1: + __u64 kprobe_func;
1: + __u64 uprobe_path;
1: + __u64 config1;
1: + };
1: + union {
1: + __u64 bp_len;
1: + __u64 kprobe_addr;
1: + __u64 probe_offset;
1: + __u64 config2;
1: + };
1: + __u64 branch_sample_type;
1: + __u64 sample_regs_user;
1: + __u32 sample_stack_user;
1: + __s32 clockid;
1: + __u64 sample_regs_intr;
1: + __u32 aux_watermark;
1: + __u16 sample_max_stack;
1: + __u16 __reserved_2;
1: + __u32 aux_sample_size;
1: + __u32 __reserved_3;
1: };
1:
1: struct hw_perf_event_extra {
1: - u64 config;
1: - unsigned int reg;
1: - int alloc;
1: - int idx;
1: + u64 config;
1: + unsigned int reg;
1: + int alloc;
1: + int idx;
1: };
1:
1: struct hw_perf_event {
1: - union {
1: - struct {
1: - u64 config;
1: - u64 last_tag;
1: - long unsigned int config_base;
1: - long unsigned int event_base;
1: - int event_base_rdpmc;
1: - int idx;
1: - int last_cpu;
1: - int flags;
1: - struct hw_perf_event_extra extra_reg;
1: - struct hw_perf_event_extra branch_reg;
1: - };
1: - struct {
1: - struct hrtimer hrtimer;
1: - };
1: - struct {
1: - struct list_head tp_list;
1: - };
1: - struct {
1: - u64 pwr_acc;
1: - u64 ptsc;
1: - };
1: - struct {
1: - struct arch_hw_breakpoint info;
1: - struct list_head bp_list;
1: - };
1: - struct {
1: - u8 iommu_bank;
1: - u8 iommu_cntr;
1: - u16 padding;
1: - u64 conf;
1: - u64 conf1;
1: - };
1: - };
1: - struct task_struct *target;
1: - void *addr_filters;
1: - long unsigned int addr_filters_gen;
1: - int state;
1: - local64_t prev_count;
1: - u64 sample_period;
1: - union {
1: - struct {
1: - u64 last_period;
1: - local64_t period_left;
1: - };
1: - struct {
1: - u64 saved_metric;
1: - u64 saved_slots;
1: - };
1: - };
1: - u64 interrupts_seq;
1: - u64 interrupts;
1: - u64 freq_time_stamp;
1: - u64 freq_count_stamp;
1: + union {
1: + struct {
1: + u64 config;
1: + u64 last_tag;
1: + long unsigned int config_base;
1: + long unsigned int event_base;
1: + int event_base_rdpmc;
1: + int idx;
1: + int last_cpu;
1: + int flags;
1: + struct hw_perf_event_extra extra_reg;
1: + struct hw_perf_event_extra branch_reg;
1: + };
1: + struct {
1: + struct hrtimer hrtimer;
1: + };
1: + struct {
1: + struct list_head tp_list;
1: + };
1: + struct {
1: + u64 pwr_acc;
1: + u64 ptsc;
1: + };
1: + struct {
1: + struct arch_hw_breakpoint info;
1: + struct list_head bp_list;
1: + };
1: + struct {
1: + u8 iommu_bank;
1: + u8 iommu_cntr;
1: + u16 padding;
1: + u64 conf;
1: + u64 conf1;
1: + };
1: + };
1: + struct task_struct *target;
1: + void *addr_filters;
1: + long unsigned int addr_filters_gen;
1: + int state;
1: + local64_t prev_count;
1: + u64 sample_period;
1: + union {
1: + struct {
1: + u64 last_period;
1: + local64_t period_left;
1: + };
1: + struct {
1: + u64 saved_metric;
1: + u64 saved_slots;
1: + };
1: + };
1: + u64 interrupts_seq;
1: + u64 interrupts;
1: + u64 freq_time_stamp;
1: + u64 freq_count_stamp;
1: };
1:
1: struct wait_queue_head {
1: - spinlock_t lock;
1: - struct list_head head;
1: + spinlock_t lock;
1: + struct list_head head;
1: };
1:
1: typedef struct wait_queue_head wait_queue_head_t;
1:
1: struct irq_work {
1: - union {
1: - struct __call_single_node node;
1: - struct {
1: - struct llist_node llnode;
1: - atomic_t flags;
1: - };
1: - };
1: - void (*func)(struct irq_work *);
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llnode;
1: + atomic_t flags;
1: + };
1: + };
1: + void (*func)(struct irq_work *);
1: };
1:
1: struct perf_addr_filters_head {
1: - struct list_head list;
1: - raw_spinlock_t lock;
1: - unsigned int nr_file_filters;
1: + struct list_head list;
1: + raw_spinlock_t lock;
1: + unsigned int nr_file_filters;
1: };
1:
1: struct perf_sample_data;
1:
1: -typedef void (*perf_overflow_handler_t)(struct perf_event *, struct perf_sample_data *, struct pt_regs *);
1: +typedef void (*perf_overflow_handler_t)(struct perf_event *,
1: + struct perf_sample_data *,
1: + struct pt_regs *);
1:
1: struct ftrace_ops;
1:
1: -typedef void (*ftrace_func_t)(long unsigned int, long unsigned int, struct ftrace_ops *, struct pt_regs *);
1: +typedef void (*ftrace_func_t)(long unsigned int, long unsigned int,
1: + struct ftrace_ops *, struct pt_regs *);
1:
1: struct ftrace_hash;
1:
1: struct ftrace_ops_hash {
1: - struct ftrace_hash *notrace_hash;
1: - struct ftrace_hash *filter_hash;
1: - struct mutex regex_lock;
1: + struct ftrace_hash *notrace_hash;
1: + struct ftrace_hash *filter_hash;
1: + struct mutex regex_lock;
1: };
1:
1: struct ftrace_ops {
1: - ftrace_func_t func;
1: - struct ftrace_ops *next;
1: - long unsigned int flags;
1: - void *private;
1: - ftrace_func_t saved_func;
1: - struct ftrace_ops_hash local_hash;
1: - struct ftrace_ops_hash *func_hash;
1: - struct ftrace_ops_hash old_hash;
1: - long unsigned int trampoline;
1: - long unsigned int trampoline_size;
1: - struct list_head list;
1: + ftrace_func_t func;
1: + struct ftrace_ops *next;
1: + long unsigned int flags;
1: + void *private;
1: + ftrace_func_t saved_func;
1: + struct ftrace_ops_hash local_hash;
1: + struct ftrace_ops_hash *func_hash;
1: + struct ftrace_ops_hash old_hash;
1: + long unsigned int trampoline;
1: + long unsigned int trampoline_size;
1: + struct list_head list;
1: };
1:
1: struct pmu;
1: @@ -1629,122 +1639,123 @@ struct event_filter;
1: struct perf_cgroup;
1:
1: struct perf_event {
1: - struct list_head event_entry;
1: - struct list_head sibling_list;
1: - struct list_head active_list;
1: - struct rb_node group_node;
1: - u64 group_index;
1: - struct list_head migrate_entry;
1: - struct hlist_node hlist_entry;
1: - struct list_head active_entry;
1: - int nr_siblings;
1: - int event_caps;
1: - int group_caps;
1: - struct perf_event *group_leader;
1: - struct pmu *pmu;
1: - void *pmu_private;
1: - enum perf_event_state state;
1: - unsigned int attach_state;
1: - local64_t count;
1: - atomic64_t child_count;
1: - u64 total_time_enabled;
1: - u64 total_time_running;
1: - u64 tstamp;
1: - u64 shadow_ctx_time;
1: - struct perf_event_attr attr;
1: - u16 header_size;
1: - u16 id_header_size;
1: - u16 read_size;
1: - struct hw_perf_event hw;
1: - struct perf_event_context *ctx;
1: - atomic_long_t refcount;
1: - atomic64_t child_total_time_enabled;
1: - atomic64_t child_total_time_running;
1: - struct mutex child_mutex;
1: - struct list_head child_list;
1: - struct perf_event *parent;
1: - int oncpu;
1: - int cpu;
1: - struct list_head owner_entry;
1: - struct task_struct *owner;
1: - struct mutex mmap_mutex;
1: - atomic_t mmap_count;
1: - struct perf_buffer *rb;
1: - struct list_head rb_entry;
1: - long unsigned int rcu_batches;
1: - int rcu_pending;
1: - wait_queue_head_t waitq;
1: - struct fasync_struct *fasync;
1: - int pending_wakeup;
1: - int pending_kill;
1: - int pending_disable;
1: - struct irq_work pending;
1: - atomic_t event_limit;
1: - struct perf_addr_filters_head addr_filters;
1: - struct perf_addr_filter_range *addr_filter_ranges;
1: - long unsigned int addr_filters_gen;
1: - struct perf_event *aux_event;
1: - void (*destroy)(struct perf_event *);
1: - struct callback_head callback_head;
1: - struct pid_namespace *ns;
1: - u64 id;
1: - u64 (*clock)();
1: - perf_overflow_handler_t overflow_handler;
1: - void *overflow_handler_context;
1: - perf_overflow_handler_t orig_overflow_handler;
1: - struct bpf_prog *prog;
1: - struct trace_event_call *tp_event;
1: - struct event_filter *filter;
1: - struct ftrace_ops ftrace_ops;
1: - struct perf_cgroup *cgrp;
1: - void *security;
1: - struct list_head sb_list;
1: + struct list_head event_entry;
1: + struct list_head sibling_list;
1: + struct list_head active_list;
1: + struct rb_node group_node;
1: + u64 group_index;
1: + struct list_head migrate_entry;
1: + struct hlist_node hlist_entry;
1: + struct list_head active_entry;
1: + int nr_siblings;
1: + int event_caps;
1: + int group_caps;
1: + struct perf_event *group_leader;
1: + struct pmu *pmu;
1: + void *pmu_private;
1: + enum perf_event_state state;
1: + unsigned int attach_state;
1: + local64_t count;
1: + atomic64_t child_count;
1: + u64 total_time_enabled;
1: + u64 total_time_running;
1: + u64 tstamp;
1: + u64 shadow_ctx_time;
1: + struct perf_event_attr attr;
1: + u16 header_size;
1: + u16 id_header_size;
1: + u16 read_size;
1: + struct hw_perf_event hw;
1: + struct perf_event_context *ctx;
1: + atomic_long_t refcount;
1: + atomic64_t child_total_time_enabled;
1: + atomic64_t child_total_time_running;
1: + struct mutex child_mutex;
1: + struct list_head child_list;
1: + struct perf_event *parent;
1: + int oncpu;
1: + int cpu;
1: + struct list_head owner_entry;
1: + struct task_struct *owner;
1: + struct mutex mmap_mutex;
1: + atomic_t mmap_count;
1: + struct perf_buffer *rb;
1: + struct list_head rb_entry;
1: + long unsigned int rcu_batches;
1: + int rcu_pending;
1: + wait_queue_head_t waitq;
1: + struct fasync_struct *fasync;
1: + int pending_wakeup;
1: + int pending_kill;
1: + int pending_disable;
1: + struct irq_work pending;
1: + atomic_t event_limit;
1: + struct perf_addr_filters_head addr_filters;
1: + struct perf_addr_filter_range *addr_filter_ranges;
1: + long unsigned int addr_filters_gen;
1: + struct perf_event *aux_event;
1: + void (*destroy)(struct perf_event *);
1: + struct callback_head callback_head;
1: + struct pid_namespace *ns;
1: + u64 id;
1: + u64 (*clock)();
1: + perf_overflow_handler_t overflow_handler;
1: + void *overflow_handler_context;
1: + perf_overflow_handler_t orig_overflow_handler;
1: + struct bpf_prog *prog;
1: + struct trace_event_call *tp_event;
1: + struct event_filter *filter;
1: + struct ftrace_ops ftrace_ops;
1: + struct perf_cgroup *cgrp;
1: + void *security;
1: + struct list_head sb_list;
1: };
1:
1: struct wait_queue_entry;
1:
1: -typedef int (*wait_queue_func_t)(struct wait_queue_entry *, unsigned int, int, void *);
1: +typedef int (*wait_queue_func_t)(struct wait_queue_entry *, unsigned int, int,
1: + void *);
1:
1: struct wait_queue_entry {
1: - unsigned int flags;
1: - void *private;
1: - wait_queue_func_t func;
1: - struct list_head entry;
1: + unsigned int flags;
1: + void *private;
1: + wait_queue_func_t func;
1: + struct list_head entry;
1: };
1:
1: typedef struct wait_queue_entry wait_queue_entry_t;
1:
1: enum pid_type {
1: - PIDTYPE_PID = 0,
1: - PIDTYPE_TGID = 1,
1: - PIDTYPE_PGID = 2,
1: - PIDTYPE_SID = 3,
1: - PIDTYPE_MAX = 4,
1: + PIDTYPE_PID = 0,
1: + PIDTYPE_TGID = 1,
1: + PIDTYPE_PGID = 2,
1: + PIDTYPE_SID = 3,
1: + PIDTYPE_MAX = 4,
1: };
1:
1: struct upid {
1: - int nr;
1: - struct pid_namespace *ns;
1: + int nr;
1: + struct pid_namespace *ns;
1: };
1:
1: struct xarray {
1: - spinlock_t xa_lock;
1: - gfp_t xa_flags;
1: - void *xa_head;
1: + spinlock_t xa_lock;
1: + gfp_t xa_flags;
1: + void *xa_head;
1: };
1:
1: struct idr {
1: - struct xarray idr_rt;
1: - unsigned int idr_base;
1: - unsigned int idr_next;
1: + struct xarray idr_rt;
1: + unsigned int idr_base;
1: + unsigned int idr_next;
1: };
1:
1: struct proc_ns_operations;
1:
1: struct ns_common {
1: - atomic_long_t stashed;
1: - const struct proc_ns_operations *ops;
1: - unsigned int inum;
1: + atomic_long_t stashed;
1: + const struct proc_ns_operations *ops;
1: + unsigned int inum;
1: };
1:
1: struct kmem_cache;
1: @@ -1756,59 +1767,59 @@ struct user_namespace;
1: struct ucounts;
1:
1: struct pid_namespace {
1: - struct kref kref;
1: - struct idr idr;
1: - struct callback_head rcu;
1: - unsigned int pid_allocated;
1: - struct task_struct *child_reaper;
1: - struct kmem_cache *pid_cachep;
1: - unsigned int level;
1: - struct pid_namespace *parent;
1: - struct fs_pin *bacct;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - int reboot;
1: - struct ns_common ns;
1: + struct kref kref;
1: + struct idr idr;
1: + struct callback_head rcu;
1: + unsigned int pid_allocated;
1: + struct task_struct *child_reaper;
1: + struct kmem_cache *pid_cachep;
1: + unsigned int level;
1: + struct pid_namespace *parent;
1: + struct fs_pin *bacct;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + int reboot;
1: + struct ns_common ns;
1: };
1:
1: struct pid {
1: - refcount_t count;
1: - unsigned int level;
1: - spinlock_t lock;
1: - struct hlist_head tasks[4];
1: - struct hlist_head inodes;
1: - wait_queue_head_t wait_pidfd;
1: - struct callback_head rcu;
1: - struct upid numbers[1];
1: + refcount_t count;
1: + unsigned int level;
1: + spinlock_t lock;
1: + struct hlist_head tasks[4];
1: + struct hlist_head inodes;
1: + wait_queue_head_t wait_pidfd;
1: + struct callback_head rcu;
1: + struct upid numbers[1];
1: };
1:
1: struct uid_gid_extent {
1: - u32 first;
1: - u32 lower_first;
1: - u32 count;
1: + u32 first;
1: + u32 lower_first;
1: + u32 count;
1: };
1:
1: struct uid_gid_map {
1: - u32 nr_extents;
1: - union {
1: - struct uid_gid_extent extent[5];
1: - struct {
1: - struct uid_gid_extent *forward;
1: - struct uid_gid_extent *reverse;
1: - };
1: - };
1: + u32 nr_extents;
1: + union {
1: + struct uid_gid_extent extent[5];
1: + struct {
1: + struct uid_gid_extent *forward;
1: + struct uid_gid_extent *reverse;
1: + };
1: + };
1: };
1:
1: typedef struct {
1: - gid_t val;
1: + gid_t val;
1: } kgid_t;
1:
1: struct rw_semaphore {
1: - atomic_long_t count;
1: - atomic_long_t owner;
1: - struct optimistic_spin_queue osq;
1: - raw_spinlock_t wait_lock;
1: - struct list_head wait_list;
1: + atomic_long_t count;
1: + atomic_long_t owner;
1: + struct optimistic_spin_queue osq;
1: + raw_spinlock_t wait_lock;
1: + struct list_head wait_list;
1: };
1:
1: struct work_struct;
1: @@ -1816,9 +1827,9 @@ struct work_struct;
1: typedef void (*work_func_t)(struct work_struct *);
1:
1: struct work_struct {
1: - atomic_long_t data;
1: - struct list_head entry;
1: - work_func_t func;
1: + atomic_long_t data;
1: + struct list_head entry;
1: + work_func_t func;
1: };
1:
1: struct ctl_table;
1: @@ -1832,76 +1843,76 @@ struct ctl_dir;
1: struct ctl_node;
1:
1: struct ctl_table_header {
1: - union {
1: - struct {
1: - struct ctl_table *ctl_table;
1: - int used;
1: - int count;
1: - int nreg;
1: - };
1: - struct callback_head rcu;
1: - };
1: - struct completion *unregistering;
1: - struct ctl_table *ctl_table_arg;
1: - struct ctl_table_root *root;
1: - struct ctl_table_set *set;
1: - struct ctl_dir *parent;
1: - struct ctl_node *node;
1: - struct hlist_head inodes;
1: + union {
1: + struct {
1: + struct ctl_table *ctl_table;
1: + int used;
1: + int count;
1: + int nreg;
1: + };
1: + struct callback_head rcu;
1: + };
1: + struct completion *unregistering;
1: + struct ctl_table *ctl_table_arg;
1: + struct ctl_table_root *root;
1: + struct ctl_table_set *set;
1: + struct ctl_dir *parent;
1: + struct ctl_node *node;
1: + struct hlist_head inodes;
1: };
1:
1: struct ctl_dir {
1: - struct ctl_table_header header;
1: - struct rb_root root;
1: + struct ctl_table_header header;
1: + struct rb_root root;
1: };
1:
1: struct ctl_table_set {
1: - int (*is_seen)(struct ctl_table_set *);
1: - struct ctl_dir dir;
1: + int (*is_seen)(struct ctl_table_set *);
1: + struct ctl_dir dir;
1: };
1:
1: struct user_namespace {
1: - struct uid_gid_map uid_map;
1: - struct uid_gid_map gid_map;
1: - struct uid_gid_map projid_map;
1: - atomic_t count;
1: - struct user_namespace *parent;
1: - int level;
1: - kuid_t owner;
1: - kgid_t group;
1: - struct ns_common ns;
1: - long unsigned int flags;
1: - struct list_head keyring_name_list;
1: - struct key *user_keyring_register;
1: - struct rw_semaphore keyring_sem;
1: - struct key *persistent_keyring_register;
1: - struct work_struct work;
1: - struct ctl_table_set set;
1: - struct ctl_table_header *sysctls;
1: - struct ucounts *ucounts;
1: - int ucount_max[10];
1: + struct uid_gid_map uid_map;
1: + struct uid_gid_map gid_map;
1: + struct uid_gid_map projid_map;
1: + atomic_t count;
1: + struct user_namespace *parent;
1: + int level;
1: + kuid_t owner;
1: + kgid_t group;
1: + struct ns_common ns;
1: + long unsigned int flags;
1: + struct list_head keyring_name_list;
1: + struct key *user_keyring_register;
1: + struct rw_semaphore keyring_sem;
1: + struct key *persistent_keyring_register;
1: + struct work_struct work;
1: + struct ctl_table_set set;
1: + struct ctl_table_header *sysctls;
1: + struct ucounts *ucounts;
1: + int ucount_max[10];
1: };
1:
1: struct timer_list {
1: - struct hlist_node entry;
1: - long unsigned int expires;
1: - void (*function)(struct timer_list *);
1: - u32 flags;
1: + struct hlist_node entry;
1: + long unsigned int expires;
1: + void (*function)(struct timer_list *);
1: + u32 flags;
1: };
1:
1: struct workqueue_struct;
1:
1: struct delayed_work {
1: - struct work_struct work;
1: - struct timer_list timer;
1: - struct workqueue_struct *wq;
1: - int cpu;
1: + struct work_struct work;
1: + struct timer_list timer;
1: + struct workqueue_struct *wq;
1: + int cpu;
1: };
1:
1: struct rcu_work {
1: - struct work_struct work;
1: - struct callback_head rcu;
1: - struct workqueue_struct *wq;
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + struct workqueue_struct *wq;
1: };
1:
1: typedef struct page *pgtable_t;
1: @@ -1913,143 +1924,143 @@ struct dev_pagemap;
1: struct obj_cgroup;
1:
1: struct page {
1: - long unsigned int flags;
1: - union {
1: - struct {
1: - struct list_head lru;
1: - struct address_space *mapping;
1: - long unsigned int index;
1: - long unsigned int private;
1: - };
1: - struct {
1: - dma_addr_t dma_addr;
1: - };
1: - struct {
1: - union {
1: - struct list_head slab_list;
1: - struct {
1: - struct page *next;
1: - int pages;
1: - int pobjects;
1: - };
1: - };
1: - struct kmem_cache *slab_cache;
1: - void *freelist;
1: - union {
1: - void *s_mem;
1: - long unsigned int counters;
1: - struct {
1: - unsigned int inuse: 16;
1: - unsigned int objects: 15;
1: - unsigned int frozen: 1;
1: - };
1: - };
1: - };
1: - struct {
1: - long unsigned int compound_head;
1: - unsigned char compound_dtor;
1: - unsigned char compound_order;
1: - atomic_t compound_mapcount;
1: - unsigned int compound_nr;
1: - };
1: - struct {
1: - long unsigned int _compound_pad_1;
1: - atomic_t hpage_pinned_refcount;
1: - struct list_head deferred_list;
1: - };
1: - struct {
1: - long unsigned int _pt_pad_1;
1: - pgtable_t pmd_huge_pte;
1: - long unsigned int _pt_pad_2;
1: - union {
1: - struct mm_struct *pt_mm;
1: - atomic_t pt_frag_refcount;
1: - };
1: - spinlock_t ptl;
1: - };
1: - struct {
1: - struct dev_pagemap *pgmap;
1: - void *zone_device_data;
1: - };
1: - struct callback_head callback_head;
1: - };
1: - union {
1: - atomic_t _mapcount;
1: - unsigned int page_type;
1: - unsigned int active;
1: - int units;
1: - };
1: - atomic_t _refcount;
1: - union {
1: - struct mem_cgroup *mem_cgroup;
1: - struct obj_cgroup **obj_cgroups;
1: - };
1: + long unsigned int flags;
1: + union {
1: + struct {
1: + struct list_head lru;
1: + struct address_space *mapping;
1: + long unsigned int index;
1: + long unsigned int private;
1: + };
1: + struct {
1: + dma_addr_t dma_addr;
1: + };
1: + struct {
1: + union {
1: + struct list_head slab_list;
1: + struct {
1: + struct page *next;
1: + int pages;
1: + int pobjects;
1: + };
1: + };
1: + struct kmem_cache *slab_cache;
1: + void *freelist;
1: + union {
1: + void *s_mem;
1: + long unsigned int counters;
1: + struct {
1: + unsigned int inuse : 16;
1: + unsigned int objects : 15;
1: + unsigned int frozen : 1;
1: + };
1: + };
1: + };
1: + struct {
1: + long unsigned int compound_head;
1: + unsigned char compound_dtor;
1: + unsigned char compound_order;
1: + atomic_t compound_mapcount;
1: + unsigned int compound_nr;
1: + };
1: + struct {
1: + long unsigned int _compound_pad_1;
1: + atomic_t hpage_pinned_refcount;
1: + struct list_head deferred_list;
1: + };
1: + struct {
1: + long unsigned int _pt_pad_1;
1: + pgtable_t pmd_huge_pte;
1: + long unsigned int _pt_pad_2;
1: + union {
1: + struct mm_struct *pt_mm;
1: + atomic_t pt_frag_refcount;
1: + };
1: + spinlock_t ptl;
1: + };
1: + struct {
1: + struct dev_pagemap *pgmap;
1: + void *zone_device_data;
1: + };
1: + struct callback_head callback_head;
1: + };
1: + union {
1: + atomic_t _mapcount;
1: + unsigned int page_type;
1: + unsigned int active;
1: + int units;
1: + };
1: + atomic_t _refcount;
1: + union {
1: + struct mem_cgroup *mem_cgroup;
1: + struct obj_cgroup **obj_cgroups;
1: + };
1: };
1:
1: struct seqcount_raw_spinlock {
1: - seqcount_t seqcount;
1: + seqcount_t seqcount;
1: };
1:
1: typedef struct seqcount_raw_spinlock seqcount_raw_spinlock_t;
1:
1: typedef struct {
1: - seqcount_spinlock_t seqcount;
1: - spinlock_t lock;
1: + seqcount_spinlock_t seqcount;
1: + spinlock_t lock;
1: } seqlock_t;
1:
1: struct hrtimer_cpu_base;
1:
1: struct hrtimer_clock_base {
1: - struct hrtimer_cpu_base *cpu_base;
1: - unsigned int index;
1: - clockid_t clockid;
1: - seqcount_raw_spinlock_t seq;
1: - struct hrtimer *running;
1: - struct timerqueue_head active;
1: - ktime_t (*get_time)();
1: - ktime_t offset;
1: + struct hrtimer_cpu_base *cpu_base;
1: + unsigned int index;
1: + clockid_t clockid;
1: + seqcount_raw_spinlock_t seq;
1: + struct hrtimer *running;
1: + struct timerqueue_head active;
1: + ktime_t (*get_time)();
1: + ktime_t offset;
1: };
1:
1: struct hrtimer_cpu_base {
1: - raw_spinlock_t lock;
1: - unsigned int cpu;
1: - unsigned int active_bases;
1: - unsigned int clock_was_set_seq;
1: - unsigned int hres_active: 1;
1: - unsigned int in_hrtirq: 1;
1: - unsigned int hang_detected: 1;
1: - unsigned int softirq_activated: 1;
1: - unsigned int nr_events;
1: - short unsigned int nr_retries;
1: - short unsigned int nr_hangs;
1: - unsigned int max_hang_time;
1: - ktime_t expires_next;
1: - struct hrtimer *next_timer;
1: - ktime_t softirq_expires_next;
1: - struct hrtimer *softirq_next_timer;
1: - struct hrtimer_clock_base clock_base[8];
1: + raw_spinlock_t lock;
1: + unsigned int cpu;
1: + unsigned int active_bases;
1: + unsigned int clock_was_set_seq;
1: + unsigned int hres_active : 1;
1: + unsigned int in_hrtirq : 1;
1: + unsigned int hang_detected : 1;
1: + unsigned int softirq_activated : 1;
1: + unsigned int nr_events;
1: + short unsigned int nr_retries;
1: + short unsigned int nr_hangs;
1: + unsigned int max_hang_time;
1: + ktime_t expires_next;
1: + struct hrtimer *next_timer;
1: + ktime_t softirq_expires_next;
1: + struct hrtimer *softirq_next_timer;
1: + struct hrtimer_clock_base clock_base[8];
1: };
1:
1: enum node_states {
1: - N_POSSIBLE = 0,
1: - N_ONLINE = 1,
1: - N_NORMAL_MEMORY = 2,
1: - N_HIGH_MEMORY = 2,
1: - N_MEMORY = 3,
1: - N_CPU = 4,
1: - N_GENERIC_INITIATOR = 5,
1: - NR_NODE_STATES = 6,
1: + N_POSSIBLE = 0,
1: + N_ONLINE = 1,
1: + N_NORMAL_MEMORY = 2,
1: + N_HIGH_MEMORY = 2,
1: + N_MEMORY = 3,
1: + N_CPU = 4,
1: + N_GENERIC_INITIATOR = 5,
1: + NR_NODE_STATES = 6,
1: };
1:
1: struct rlimit {
1: - __kernel_ulong_t rlim_cur;
1: - __kernel_ulong_t rlim_max;
1: + __kernel_ulong_t rlim_cur;
1: + __kernel_ulong_t rlim_max;
1: };
1:
1: struct task_cputime {
1: - u64 stime;
1: - u64 utime;
1: - long long unsigned int sum_exec_runtime;
1: + u64 stime;
1: + u64 utime;
1: + long long unsigned int sum_exec_runtime;
1: };
1:
1: typedef void __signalfn_t(int);
1: @@ -2061,102 +2072,102 @@ typedef void __restorefn_t();
1: typedef __restorefn_t *__sigrestore_t;
1:
1: union sigval {
1: - int sival_int;
1: - void *sival_ptr;
1: + int sival_int;
1: + void *sival_ptr;
1: };
1:
1: typedef union sigval sigval_t;
1:
1: union __sifields {
1: - struct {
1: - __kernel_pid_t _pid;
1: - __kernel_uid32_t _uid;
1: - } _kill;
1: - struct {
1: - __kernel_timer_t _tid;
1: - int _overrun;
1: - sigval_t _sigval;
1: - int _sys_private;
1: - } _timer;
1: - struct {
1: - __kernel_pid_t _pid;
1: - __kernel_uid32_t _uid;
1: - sigval_t _sigval;
1: - } _rt;
1: - struct {
1: - __kernel_pid_t _pid;
1: - __kernel_uid32_t _uid;
1: - int _status;
1: - __kernel_clock_t _utime;
1: - __kernel_clock_t _stime;
1: - } _sigchld;
1: - struct {
1: - void *_addr;
1: - union {
1: - short int _addr_lsb;
1: - struct {
1: - char _dummy_bnd[8];
1: - void *_lower;
1: - void *_upper;
1: - } _addr_bnd;
1: - struct {
1: - char _dummy_pkey[8];
1: - __u32 _pkey;
1: - } _addr_pkey;
1: - };
1: - } _sigfault;
1: - struct {
1: - long int _band;
1: - int _fd;
1: - } _sigpoll;
1: - struct {
1: - void *_call_addr;
1: - int _syscall;
1: - unsigned int _arch;
1: - } _sigsys;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + __kernel_timer_t _tid;
1: + int _overrun;
1: + sigval_t _sigval;
1: + int _sys_private;
1: + } _timer;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + int _status;
1: + __kernel_clock_t _utime;
1: + __kernel_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + void *_addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[8];
1: + void *_lower;
1: + void *_upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[8];
1: + __u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + long int _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + void *_call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: };
1:
1: struct kernel_siginfo {
1: - struct {
1: - int si_signo;
1: - int si_errno;
1: - int si_code;
1: - union __sifields _sifields;
1: - };
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: };
1:
1: struct user_struct {
1: - refcount_t __count;
1: - atomic_t processes;
1: - atomic_t sigpending;
1: - atomic_t fanotify_listeners;
1: - atomic_long_t epoll_watches;
1: - long unsigned int mq_bytes;
1: - long unsigned int locked_shm;
1: - long unsigned int unix_inflight;
1: - atomic_long_t pipe_bufs;
1: - struct hlist_node uidhash_node;
1: - kuid_t uid;
1: - atomic_long_t locked_vm;
1: - atomic_t nr_watches;
1: - struct ratelimit_state ratelimit;
1: + refcount_t __count;
1: + atomic_t processes;
1: + atomic_t sigpending;
1: + atomic_t fanotify_listeners;
1: + atomic_long_t epoll_watches;
1: + long unsigned int mq_bytes;
1: + long unsigned int locked_shm;
1: + long unsigned int unix_inflight;
1: + atomic_long_t pipe_bufs;
1: + struct hlist_node uidhash_node;
1: + kuid_t uid;
1: + atomic_long_t locked_vm;
1: + atomic_t nr_watches;
1: + struct ratelimit_state ratelimit;
1: };
1:
1: struct sigaction {
1: - __sighandler_t sa_handler;
1: - long unsigned int sa_flags;
1: - __sigrestore_t sa_restorer;
1: - sigset_t sa_mask;
1: + __sighandler_t sa_handler;
1: + long unsigned int sa_flags;
1: + __sigrestore_t sa_restorer;
1: + sigset_t sa_mask;
1: };
1:
1: struct k_sigaction {
1: - struct sigaction sa;
1: + struct sigaction sa;
1: };
1:
1: struct userfaultfd_ctx;
1:
1: struct vm_userfaultfd_ctx {
1: - struct userfaultfd_ctx *ctx;
1: + struct userfaultfd_ctx *ctx;
1: };
1:
1: struct anon_vma;
1: @@ -2164,57 +2175,57 @@ struct anon_vma;
1: struct vm_operations_struct;
1:
1: struct vm_area_struct {
1: - long unsigned int vm_start;
1: - long unsigned int vm_end;
1: - struct vm_area_struct *vm_next;
1: - struct vm_area_struct *vm_prev;
1: - struct rb_node vm_rb;
1: - long unsigned int rb_subtree_gap;
1: - struct mm_struct *vm_mm;
1: - pgprot_t vm_page_prot;
1: - long unsigned int vm_flags;
1: - struct {
1: - struct rb_node rb;
1: - long unsigned int rb_subtree_last;
1: - } shared;
1: - struct list_head anon_vma_chain;
1: - struct anon_vma *anon_vma;
1: - const struct vm_operations_struct *vm_ops;
1: - long unsigned int vm_pgoff;
1: - struct file *vm_file;
1: - void *vm_private_data;
1: - atomic_long_t swap_readahead_info;
1: - struct mempolicy *vm_policy;
1: - struct vm_userfaultfd_ctx vm_userfaultfd_ctx;
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + struct vm_area_struct *vm_next;
1: + struct vm_area_struct *vm_prev;
1: + struct rb_node vm_rb;
1: + long unsigned int rb_subtree_gap;
1: + struct mm_struct *vm_mm;
1: + pgprot_t vm_page_prot;
1: + long unsigned int vm_flags;
1: + struct {
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: + } shared;
1: + struct list_head anon_vma_chain;
1: + struct anon_vma *anon_vma;
1: + const struct vm_operations_struct *vm_ops;
1: + long unsigned int vm_pgoff;
1: + struct file *vm_file;
1: + void *vm_private_data;
1: + atomic_long_t swap_readahead_info;
1: + struct mempolicy *vm_policy;
1: + struct vm_userfaultfd_ctx vm_userfaultfd_ctx;
1: };
1:
1: struct mm_rss_stat {
1: - atomic_long_t count[4];
1: + atomic_long_t count[4];
1: };
1:
1: struct cpu_itimer {
1: - u64 expires;
1: - u64 incr;
1: + u64 expires;
1: + u64 incr;
1: };
1:
1: struct task_cputime_atomic {
1: - atomic64_t utime;
1: - atomic64_t stime;
1: - atomic64_t sum_exec_runtime;
1: + atomic64_t utime;
1: + atomic64_t stime;
1: + atomic64_t sum_exec_runtime;
1: };
1:
1: struct thread_group_cputimer {
1: - struct task_cputime_atomic cputime_atomic;
1: + struct task_cputime_atomic cputime_atomic;
1: };
1:
1: struct pacct_struct {
1: - int ac_flag;
1: - long int ac_exitcode;
1: - long unsigned int ac_mem;
1: - u64 ac_utime;
1: - u64 ac_stime;
1: - long unsigned int ac_minflt;
1: - long unsigned int ac_majflt;
1: + int ac_flag;
1: + long int ac_exitcode;
1: + long unsigned int ac_mem;
1: + u64 ac_utime;
1: + u64 ac_stime;
1: + long unsigned int ac_minflt;
1: + long unsigned int ac_majflt;
1: };
1:
1: struct tty_struct;
1: @@ -2226,80 +2237,80 @@ struct taskstats;
1: struct tty_audit_buf;
1:
1: struct signal_struct {
1: - refcount_t sigcnt;
1: - atomic_t live;
1: - int nr_threads;
1: - struct list_head thread_head;
1: - wait_queue_head_t wait_chldexit;
1: - struct task_struct *curr_target;
1: - struct sigpending shared_pending;
1: - struct hlist_head multiprocess;
1: - int group_exit_code;
1: - int notify_count;
1: - struct task_struct *group_exit_task;
1: - int group_stop_count;
1: - unsigned int flags;
1: - unsigned int is_child_subreaper: 1;
1: - unsigned int has_child_subreaper: 1;
1: - int posix_timer_id;
1: - struct list_head posix_timers;
1: - struct hrtimer real_timer;
1: - ktime_t it_real_incr;
1: - struct cpu_itimer it[2];
1: - struct thread_group_cputimer cputimer;
1: - struct posix_cputimers posix_cputimers;
1: - struct pid *pids[4];
1: - struct pid *tty_old_pgrp;
1: - int leader;
1: - struct tty_struct *tty;
1: - struct autogroup *autogroup;
1: - seqlock_t stats_lock;
1: - u64 utime;
1: - u64 stime;
1: - u64 cutime;
1: - u64 cstime;
1: - u64 gtime;
1: - u64 cgtime;
1: - struct prev_cputime prev_cputime;
1: - long unsigned int nvcsw;
1: - long unsigned int nivcsw;
1: - long unsigned int cnvcsw;
1: - long unsigned int cnivcsw;
1: - long unsigned int min_flt;
1: - long unsigned int maj_flt;
1: - long unsigned int cmin_flt;
1: - long unsigned int cmaj_flt;
1: - long unsigned int inblock;
1: - long unsigned int oublock;
1: - long unsigned int cinblock;
1: - long unsigned int coublock;
1: - long unsigned int maxrss;
1: - long unsigned int cmaxrss;
1: - struct task_io_accounting ioac;
1: - long long unsigned int sum_sched_runtime;
1: - struct rlimit rlim[16];
1: - struct pacct_struct pacct;
1: - struct taskstats *stats;
1: - unsigned int audit_tty;
1: - struct tty_audit_buf *tty_audit_buf;
1: - bool oom_flag_origin;
1: - short int oom_score_adj;
1: - short int oom_score_adj_min;
1: - struct mm_struct *oom_mm;
1: - struct mutex cred_guard_mutex;
1: - struct rw_semaphore exec_update_lock;
1: + refcount_t sigcnt;
1: + atomic_t live;
1: + int nr_threads;
1: + struct list_head thread_head;
1: + wait_queue_head_t wait_chldexit;
1: + struct task_struct *curr_target;
1: + struct sigpending shared_pending;
1: + struct hlist_head multiprocess;
1: + int group_exit_code;
1: + int notify_count;
1: + struct task_struct *group_exit_task;
1: + int group_stop_count;
1: + unsigned int flags;
1: + unsigned int is_child_subreaper : 1;
1: + unsigned int has_child_subreaper : 1;
1: + int posix_timer_id;
1: + struct list_head posix_timers;
1: + struct hrtimer real_timer;
1: + ktime_t it_real_incr;
1: + struct cpu_itimer it[2];
1: + struct thread_group_cputimer cputimer;
1: + struct posix_cputimers posix_cputimers;
1: + struct pid *pids[4];
1: + struct pid *tty_old_pgrp;
1: + int leader;
1: + struct tty_struct *tty;
1: + struct autogroup *autogroup;
1: + seqlock_t stats_lock;
1: + u64 utime;
1: + u64 stime;
1: + u64 cutime;
1: + u64 cstime;
1: + u64 gtime;
1: + u64 cgtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + long unsigned int cnvcsw;
1: + long unsigned int cnivcsw;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + long unsigned int cmin_flt;
1: + long unsigned int cmaj_flt;
1: + long unsigned int inblock;
1: + long unsigned int oublock;
1: + long unsigned int cinblock;
1: + long unsigned int coublock;
1: + long unsigned int maxrss;
1: + long unsigned int cmaxrss;
1: + struct task_io_accounting ioac;
1: + long long unsigned int sum_sched_runtime;
1: + struct rlimit rlim[16];
1: + struct pacct_struct pacct;
1: + struct taskstats *stats;
1: + unsigned int audit_tty;
1: + struct tty_audit_buf *tty_audit_buf;
1: + bool oom_flag_origin;
1: + short int oom_score_adj;
1: + short int oom_score_adj_min;
1: + struct mm_struct *oom_mm;
1: + struct mutex cred_guard_mutex;
1: + struct rw_semaphore exec_update_lock;
1: };
1:
1: struct rseq {
1: - __u32 cpu_id_start;
1: - __u32 cpu_id;
1: - union {
1: - __u64 ptr64;
1: - __u64 ptr;
1: - } rseq_cs;
1: - __u32 flags;
1: - long: 32;
1: - long: 64;
1: + __u32 cpu_id_start;
1: + __u32 cpu_id;
1: + union {
1: + __u64 ptr64;
1: + __u64 ptr;
1: + } rseq_cs;
1: + __u32 flags;
1: + long : 32;
1: + long : 64;
1: };
1:
1: struct rq;
1: @@ -2307,48 +2318,48 @@ struct rq;
1: struct rq_flags;
1:
1: struct sched_class {
1: - int uclamp_enabled;
1: - void (*enqueue_task)(struct rq *, struct task_struct *, int);
1: - void (*dequeue_task)(struct rq *, struct task_struct *, int);
1: - void (*yield_task)(struct rq *);
1: - bool (*yield_to_task)(struct rq *, struct task_struct *);
1: - void (*check_preempt_curr)(struct rq *, struct task_struct *, int);
1: - struct task_struct * (*pick_next_task)(struct rq *);
1: - void (*put_prev_task)(struct rq *, struct task_struct *);
1: - void (*set_next_task)(struct rq *, struct task_struct *, bool);
1: - int (*balance)(struct rq *, struct task_struct *, struct rq_flags *);
1: - int (*select_task_rq)(struct task_struct *, int, int, int);
1: - void (*migrate_task_rq)(struct task_struct *, int);
1: - void (*task_woken)(struct rq *, struct task_struct *);
1: - void (*set_cpus_allowed)(struct task_struct *, const struct cpumask *);
1: - void (*rq_online)(struct rq *);
1: - void (*rq_offline)(struct rq *);
1: - void (*task_tick)(struct rq *, struct task_struct *, int);
1: - void (*task_fork)(struct task_struct *);
1: - void (*task_dead)(struct task_struct *);
1: - void (*switched_from)(struct rq *, struct task_struct *);
1: - void (*switched_to)(struct rq *, struct task_struct *);
1: - void (*prio_changed)(struct rq *, struct task_struct *, int);
1: - unsigned int (*get_rr_interval)(struct rq *, struct task_struct *);
1: - void (*update_curr)(struct rq *);
1: - void (*task_change_group)(struct task_struct *, int);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + int uclamp_enabled;
1: + void (*enqueue_task)(struct rq *, struct task_struct *, int);
1: + void (*dequeue_task)(struct rq *, struct task_struct *, int);
1: + void (*yield_task)(struct rq *);
1: + bool (*yield_to_task)(struct rq *, struct task_struct *);
1: + void (*check_preempt_curr)(struct rq *, struct task_struct *, int);
1: + struct task_struct *(*pick_next_task)(struct rq *);
1: + void (*put_prev_task)(struct rq *, struct task_struct *);
1: + void (*set_next_task)(struct rq *, struct task_struct *, bool);
1: + int (*balance)(struct rq *, struct task_struct *, struct rq_flags *);
1: + int (*select_task_rq)(struct task_struct *, int, int, int);
1: + void (*migrate_task_rq)(struct task_struct *, int);
1: + void (*task_woken)(struct rq *, struct task_struct *);
1: + void (*set_cpus_allowed)(struct task_struct *, const struct cpumask *);
1: + void (*rq_online)(struct rq *);
1: + void (*rq_offline)(struct rq *);
1: + void (*task_tick)(struct rq *, struct task_struct *, int);
1: + void (*task_fork)(struct task_struct *);
1: + void (*task_dead)(struct task_struct *);
1: + void (*switched_from)(struct rq *, struct task_struct *);
1: + void (*switched_to)(struct rq *, struct task_struct *);
1: + void (*prio_changed)(struct rq *, struct task_struct *, int);
1: + unsigned int (*get_rr_interval)(struct rq *, struct task_struct *);
1: + void (*update_curr)(struct rq *);
1: + void (*task_change_group)(struct task_struct *, int);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef struct {
1: - atomic64_t id;
1: - void *sigpage;
1: - refcount_t pinned;
1: - void *vdso;
1: - long unsigned int flags;
1: + atomic64_t id;
1: + void *sigpage;
1: + refcount_t pinned;
1: + void *vdso;
1: + long unsigned int flags;
1: } mm_context_t;
1:
1: struct xol_area;
1:
1: struct uprobes_state {
1: - struct xol_area *xol_area;
1: + struct xol_area *xol_area;
1: };
1:
1: struct linux_binfmt;
1: @@ -2360,83 +2371,85 @@ struct kioctx_table;
1: struct mmu_notifier_subscriptions;
1:
1: struct mm_struct {
1: - struct {
1: - struct vm_area_struct *mmap;
1: - struct rb_root mm_rb;
1: - u64 vmacache_seqnum;
1: - long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: - long unsigned int mmap_base;
1: - long unsigned int mmap_legacy_base;
1: - long unsigned int task_size;
1: - long unsigned int highest_vm_end;
1: - pgd_t *pgd;
1: - atomic_t membarrier_state;
1: - atomic_t mm_users;
1: - atomic_t mm_count;
1: - atomic_t has_pinned;
1: - seqcount_t write_protect_seq;
1: - atomic_long_t pgtables_bytes;
1: - int map_count;
1: - spinlock_t page_table_lock;
1: - struct rw_semaphore mmap_lock;
1: - struct list_head mmlist;
1: - long unsigned int hiwater_rss;
1: - long unsigned int hiwater_vm;
1: - long unsigned int total_vm;
1: - long unsigned int locked_vm;
1: - atomic64_t pinned_vm;
1: - long unsigned int data_vm;
1: - long unsigned int exec_vm;
1: - long unsigned int stack_vm;
1: - long unsigned int def_flags;
1: - spinlock_t arg_lock;
1: - long unsigned int start_code;
1: - long unsigned int end_code;
1: - long unsigned int start_data;
1: - long unsigned int end_data;
1: - long unsigned int start_brk;
1: - long unsigned int brk;
1: - long unsigned int start_stack;
1: - long unsigned int arg_start;
1: - long unsigned int arg_end;
1: - long unsigned int env_start;
1: - long unsigned int env_end;
1: - long unsigned int saved_auxv[46];
1: - struct mm_rss_stat rss_stat;
1: - struct linux_binfmt *binfmt;
1: - mm_context_t context;
1: - long unsigned int flags;
1: - struct core_state *core_state;
1: - spinlock_t ioctx_lock;
1: - struct kioctx_table *ioctx_table;
1: - struct task_struct *owner;
1: - struct user_namespace *user_ns;
1: - struct file *exe_file;
1: - struct mmu_notifier_subscriptions *notifier_subscriptions;
1: - long unsigned int numa_next_scan;
1: - long unsigned int numa_scan_offset;
1: - int numa_scan_seq;
1: - atomic_t tlb_flush_pending;
1: - struct uprobes_state uprobes_state;
1: - atomic_long_t hugetlb_usage;
1: - struct work_struct async_put_work;
1: - u32 pasid;
1: - };
1: - long unsigned int cpu_bitmap[0];
1: + struct {
1: + struct vm_area_struct *mmap;
1: + struct rb_root mm_rb;
1: + u64 vmacache_seqnum;
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + long unsigned int);
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_legacy_base;
1: + long unsigned int task_size;
1: + long unsigned int highest_vm_end;
1: + pgd_t *pgd;
1: + atomic_t membarrier_state;
1: + atomic_t mm_users;
1: + atomic_t mm_count;
1: + atomic_t has_pinned;
1: + seqcount_t write_protect_seq;
1: + atomic_long_t pgtables_bytes;
1: + int map_count;
1: + spinlock_t page_table_lock;
1: + struct rw_semaphore mmap_lock;
1: + struct list_head mmlist;
1: + long unsigned int hiwater_rss;
1: + long unsigned int hiwater_vm;
1: + long unsigned int total_vm;
1: + long unsigned int locked_vm;
1: + atomic64_t pinned_vm;
1: + long unsigned int data_vm;
1: + long unsigned int exec_vm;
1: + long unsigned int stack_vm;
1: + long unsigned int def_flags;
1: + spinlock_t arg_lock;
1: + long unsigned int start_code;
1: + long unsigned int end_code;
1: + long unsigned int start_data;
1: + long unsigned int end_data;
1: + long unsigned int start_brk;
1: + long unsigned int brk;
1: + long unsigned int start_stack;
1: + long unsigned int arg_start;
1: + long unsigned int arg_end;
1: + long unsigned int env_start;
1: + long unsigned int env_end;
1: + long unsigned int saved_auxv[46];
1: + struct mm_rss_stat rss_stat;
1: + struct linux_binfmt *binfmt;
1: + mm_context_t context;
1: + long unsigned int flags;
1: + struct core_state *core_state;
1: + spinlock_t ioctx_lock;
1: + struct kioctx_table *ioctx_table;
1: + struct task_struct *owner;
1: + struct user_namespace *user_ns;
1: + struct file *exe_file;
1: + struct mmu_notifier_subscriptions *notifier_subscriptions;
1: + long unsigned int numa_next_scan;
1: + long unsigned int numa_scan_offset;
1: + int numa_scan_seq;
1: + atomic_t tlb_flush_pending;
1: + struct uprobes_state uprobes_state;
1: + atomic_long_t hugetlb_usage;
1: + struct work_struct async_put_work;
1: + u32 pasid;
1: + };
1: + long unsigned int cpu_bitmap[0];
1: };
1:
1: struct swait_queue_head {
1: - raw_spinlock_t lock;
1: - struct list_head task_list;
1: + raw_spinlock_t lock;
1: + struct list_head task_list;
1: };
1:
1: struct completion {
1: - unsigned int done;
1: - struct swait_queue_head wait;
1: + unsigned int done;
1: + struct swait_queue_head wait;
1: };
1:
1: struct kernel_cap_struct {
1: - __u32 cap[2];
1: + __u32 cap[2];
1: };
1:
1: typedef struct kernel_cap_struct kernel_cap_t;
1: @@ -2444,34 +2457,34 @@ typedef struct kernel_cap_struct kernel_cap_t;
1: struct group_info;
1:
1: struct cred {
1: - atomic_t usage;
1: - kuid_t uid;
1: - kgid_t gid;
1: - kuid_t suid;
1: - kgid_t sgid;
1: - kuid_t euid;
1: - kgid_t egid;
1: - kuid_t fsuid;
1: - kgid_t fsgid;
1: - unsigned int securebits;
1: - kernel_cap_t cap_inheritable;
1: - kernel_cap_t cap_permitted;
1: - kernel_cap_t cap_effective;
1: - kernel_cap_t cap_bset;
1: - kernel_cap_t cap_ambient;
1: - unsigned char jit_keyring;
1: - struct key *session_keyring;
1: - struct key *process_keyring;
1: - struct key *thread_keyring;
1: - struct key *request_key_auth;
1: - void *security;
1: - struct user_struct *user;
1: - struct user_namespace *user_ns;
1: - struct group_info *group_info;
1: - union {
1: - int non_rcu;
1: - struct callback_head rcu;
1: - };
1: + atomic_t usage;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t suid;
1: + kgid_t sgid;
1: + kuid_t euid;
1: + kgid_t egid;
1: + kuid_t fsuid;
1: + kgid_t fsgid;
1: + unsigned int securebits;
1: + kernel_cap_t cap_inheritable;
1: + kernel_cap_t cap_permitted;
1: + kernel_cap_t cap_effective;
1: + kernel_cap_t cap_bset;
1: + kernel_cap_t cap_ambient;
1: + unsigned char jit_keyring;
1: + struct key *session_keyring;
1: + struct key *process_keyring;
1: + struct key *thread_keyring;
1: + struct key *request_key_auth;
1: + void *security;
1: + struct user_struct *user;
1: + struct user_namespace *user_ns;
1: + struct group_info *group_info;
1: + union {
1: + int non_rcu;
1: + struct callback_head rcu;
1: + };
1: };
1:
1: typedef int32_t key_serial_t;
1: @@ -2483,29 +2496,29 @@ struct key_type;
1: struct key_tag;
1:
1: struct keyring_index_key {
1: - long unsigned int hash;
1: - union {
1: - struct {
1: - u16 desc_len;
1: - char desc[6];
1: - };
1: - long unsigned int x;
1: - };
1: - struct key_type *type;
1: - struct key_tag *domain_tag;
1: - const char *description;
1: + long unsigned int hash;
1: + union {
1: + struct {
1: + u16 desc_len;
1: + char desc[6];
1: + };
1: + long unsigned int x;
1: + };
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + const char *description;
1: };
1:
1: union key_payload {
1: - void *rcu_data0;
1: - void *data[4];
1: + void *rcu_data0;
1: + void *data[4];
1: };
1:
1: struct assoc_array_ptr;
1:
1: struct assoc_array {
1: - struct assoc_array_ptr *root;
1: - long unsigned int nr_leaves_on_tree;
1: + struct assoc_array_ptr *root;
1: + long unsigned int nr_leaves_on_tree;
1: };
1:
1: struct watch_list;
1: @@ -2515,46 +2528,46 @@ struct key_user;
1: struct key_restriction;
1:
1: struct key {
1: - refcount_t usage;
1: - key_serial_t serial;
1: - union {
1: - struct list_head graveyard_link;
1: - struct rb_node serial_node;
1: - };
1: - struct watch_list *watchers;
1: - struct rw_semaphore sem;
1: - struct key_user *user;
1: - void *security;
1: - union {
1: - time64_t expiry;
1: - time64_t revoked_at;
1: - };
1: - time64_t last_used_at;
1: - kuid_t uid;
1: - kgid_t gid;
1: - key_perm_t perm;
1: - short unsigned int quotalen;
1: - short unsigned int datalen;
1: - short int state;
1: - long unsigned int flags;
1: - union {
1: - struct keyring_index_key index_key;
1: - struct {
1: - long unsigned int hash;
1: - long unsigned int len_desc;
1: - struct key_type *type;
1: - struct key_tag *domain_tag;
1: - char *description;
1: - };
1: - };
1: - union {
1: - union key_payload payload;
1: - struct {
1: - struct list_head name_link;
1: - struct assoc_array keys;
1: - };
1: - };
1: - struct key_restriction *restrict_link;
1: + refcount_t usage;
1: + key_serial_t serial;
1: + union {
1: + struct list_head graveyard_link;
1: + struct rb_node serial_node;
1: + };
1: + struct watch_list *watchers;
1: + struct rw_semaphore sem;
1: + struct key_user *user;
1: + void *security;
1: + union {
1: + time64_t expiry;
1: + time64_t revoked_at;
1: + };
1: + time64_t last_used_at;
1: + kuid_t uid;
1: + kgid_t gid;
1: + key_perm_t perm;
1: + short unsigned int quotalen;
1: + short unsigned int datalen;
1: + short int state;
1: + long unsigned int flags;
1: + union {
1: + struct keyring_index_key index_key;
1: + struct {
1: + long unsigned int hash;
1: + long unsigned int len_desc;
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + char *description;
1: + };
1: + };
1: + union {
1: + union key_payload payload;
1: + struct {
1: + struct list_head name_link;
1: + struct assoc_array keys;
1: + };
1: + };
1: + struct key_restriction *restrict_link;
1: };
1:
1: struct uts_namespace;
1: @@ -2570,369 +2583,369 @@ struct time_namespace;
1: struct cgroup_namespace;
1:
1: struct nsproxy {
1: - atomic_t count;
1: - struct uts_namespace *uts_ns;
1: - struct ipc_namespace *ipc_ns;
1: - struct mnt_namespace *mnt_ns;
1: - struct pid_namespace *pid_ns_for_children;
1: - struct net *net_ns;
1: - struct time_namespace *time_ns;
1: - struct time_namespace *time_ns_for_children;
1: - struct cgroup_namespace *cgroup_ns;
1: + atomic_t count;
1: + struct uts_namespace *uts_ns;
1: + struct ipc_namespace *ipc_ns;
1: + struct mnt_namespace *mnt_ns;
1: + struct pid_namespace *pid_ns_for_children;
1: + struct net *net_ns;
1: + struct time_namespace *time_ns;
1: + struct time_namespace *time_ns_for_children;
1: + struct cgroup_namespace *cgroup_ns;
1: };
1:
1: struct sighand_struct {
1: - spinlock_t siglock;
1: - refcount_t count;
1: - wait_queue_head_t signalfd_wqh;
1: - struct k_sigaction action[64];
1: + spinlock_t siglock;
1: + refcount_t count;
1: + wait_queue_head_t signalfd_wqh;
1: + struct k_sigaction action[64];
1: };
1:
1: struct bio;
1:
1: struct bio_list {
1: - struct bio *head;
1: - struct bio *tail;
1: + struct bio *head;
1: + struct bio *tail;
1: };
1:
1: struct blk_plug {
1: - struct list_head mq_list;
1: - struct list_head cb_list;
1: - short unsigned int rq_count;
1: - bool multiple_queues;
1: - bool nowait;
1: + struct list_head mq_list;
1: + struct list_head cb_list;
1: + short unsigned int rq_count;
1: + bool multiple_queues;
1: + bool nowait;
1: };
1:
1: struct reclaim_state {
1: - long unsigned int reclaimed_slab;
1: + long unsigned int reclaimed_slab;
1: };
1:
1: struct percpu_counter {
1: - raw_spinlock_t lock;
1: - s64 count;
1: - struct list_head list;
1: - s32 *counters;
1: + raw_spinlock_t lock;
1: + s64 count;
1: + struct list_head list;
1: + s32 *counters;
1: };
1:
1: struct fprop_local_percpu {
1: - struct percpu_counter events;
1: - unsigned int period;
1: - raw_spinlock_t lock;
1: + struct percpu_counter events;
1: + unsigned int period;
1: + raw_spinlock_t lock;
1: };
1:
1: enum wb_reason {
1: - WB_REASON_BACKGROUND = 0,
1: - WB_REASON_VMSCAN = 1,
1: - WB_REASON_SYNC = 2,
1: - WB_REASON_PERIODIC = 3,
1: - WB_REASON_LAPTOP_TIMER = 4,
1: - WB_REASON_FS_FREE_SPACE = 5,
1: - WB_REASON_FORKER_THREAD = 6,
1: - WB_REASON_FOREIGN_FLUSH = 7,
1: - WB_REASON_MAX = 8,
1: + WB_REASON_BACKGROUND = 0,
1: + WB_REASON_VMSCAN = 1,
1: + WB_REASON_SYNC = 2,
1: + WB_REASON_PERIODIC = 3,
1: + WB_REASON_LAPTOP_TIMER = 4,
1: + WB_REASON_FS_FREE_SPACE = 5,
1: + WB_REASON_FORKER_THREAD = 6,
1: + WB_REASON_FOREIGN_FLUSH = 7,
1: + WB_REASON_MAX = 8,
1: };
1:
1: struct percpu_ref_data;
1:
1: struct percpu_ref {
1: - long unsigned int percpu_count_ptr;
1: - struct percpu_ref_data *data;
1: + long unsigned int percpu_count_ptr;
1: + struct percpu_ref_data *data;
1: };
1:
1: struct cgroup_subsys_state;
1:
1: struct bdi_writeback {
1: - struct backing_dev_info *bdi;
1: - long unsigned int state;
1: - long unsigned int last_old_flush;
1: - struct list_head b_dirty;
1: - struct list_head b_io;
1: - struct list_head b_more_io;
1: - struct list_head b_dirty_time;
1: - spinlock_t list_lock;
1: - struct percpu_counter stat[4];
1: - long unsigned int congested;
1: - long unsigned int bw_time_stamp;
1: - long unsigned int dirtied_stamp;
1: - long unsigned int written_stamp;
1: - long unsigned int write_bandwidth;
1: - long unsigned int avg_write_bandwidth;
1: - long unsigned int dirty_ratelimit;
1: - long unsigned int balanced_dirty_ratelimit;
1: - struct fprop_local_percpu completions;
1: - int dirty_exceeded;
1: - enum wb_reason start_all_reason;
1: - spinlock_t work_lock;
1: - struct list_head work_list;
1: - struct delayed_work dwork;
1: - long unsigned int dirty_sleep;
1: - struct list_head bdi_node;
1: - struct percpu_ref refcnt;
1: - struct fprop_local_percpu memcg_completions;
1: - struct cgroup_subsys_state *memcg_css;
1: - struct cgroup_subsys_state *blkcg_css;
1: - struct list_head memcg_node;
1: - struct list_head blkcg_node;
1: - union {
1: - struct work_struct release_work;
1: - struct callback_head rcu;
1: - };
1: + struct backing_dev_info *bdi;
1: + long unsigned int state;
1: + long unsigned int last_old_flush;
1: + struct list_head b_dirty;
1: + struct list_head b_io;
1: + struct list_head b_more_io;
1: + struct list_head b_dirty_time;
1: + spinlock_t list_lock;
1: + struct percpu_counter stat[4];
1: + long unsigned int congested;
1: + long unsigned int bw_time_stamp;
1: + long unsigned int dirtied_stamp;
1: + long unsigned int written_stamp;
1: + long unsigned int write_bandwidth;
1: + long unsigned int avg_write_bandwidth;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + struct fprop_local_percpu completions;
1: + int dirty_exceeded;
1: + enum wb_reason start_all_reason;
1: + spinlock_t work_lock;
1: + struct list_head work_list;
1: + struct delayed_work dwork;
1: + long unsigned int dirty_sleep;
1: + struct list_head bdi_node;
1: + struct percpu_ref refcnt;
1: + struct fprop_local_percpu memcg_completions;
1: + struct cgroup_subsys_state *memcg_css;
1: + struct cgroup_subsys_state *blkcg_css;
1: + struct list_head memcg_node;
1: + struct list_head blkcg_node;
1: + union {
1: + struct work_struct release_work;
1: + struct callback_head rcu;
1: + };
1: };
1:
1: struct device;
1:
1: struct backing_dev_info {
1: - u64 id;
1: - struct rb_node rb_node;
1: - struct list_head bdi_list;
1: - long unsigned int ra_pages;
1: - long unsigned int io_pages;
1: - struct kref refcnt;
1: - unsigned int capabilities;
1: - unsigned int min_ratio;
1: - unsigned int max_ratio;
1: - unsigned int max_prop_frac;
1: - atomic_long_t tot_write_bandwidth;
1: - struct bdi_writeback wb;
1: - struct list_head wb_list;
1: - struct xarray cgwb_tree;
1: - struct mutex cgwb_release_mutex;
1: - struct rw_semaphore wb_switch_rwsem;
1: - wait_queue_head_t wb_waitq;
1: - struct device *dev;
1: - char dev_name[64];
1: - struct device *owner;
1: - struct timer_list laptop_mode_wb_timer;
1: - struct dentry *debug_dir;
1: + u64 id;
1: + struct rb_node rb_node;
1: + struct list_head bdi_list;
1: + long unsigned int ra_pages;
1: + long unsigned int io_pages;
1: + struct kref refcnt;
1: + unsigned int capabilities;
1: + unsigned int min_ratio;
1: + unsigned int max_ratio;
1: + unsigned int max_prop_frac;
1: + atomic_long_t tot_write_bandwidth;
1: + struct bdi_writeback wb;
1: + struct list_head wb_list;
1: + struct xarray cgwb_tree;
1: + struct mutex cgwb_release_mutex;
1: + struct rw_semaphore wb_switch_rwsem;
1: + wait_queue_head_t wb_waitq;
1: + struct device *dev;
1: + char dev_name[64];
1: + struct device *owner;
1: + struct timer_list laptop_mode_wb_timer;
1: + struct dentry *debug_dir;
1: };
1:
1: struct io_cq;
1:
1: struct io_context {
1: - atomic_long_t refcount;
1: - atomic_t active_ref;
1: - atomic_t nr_tasks;
1: - spinlock_t lock;
1: - short unsigned int ioprio;
1: - struct xarray icq_tree;
1: - struct io_cq *icq_hint;
1: - struct hlist_head icq_list;
1: - struct work_struct release_work;
1: + atomic_long_t refcount;
1: + atomic_t active_ref;
1: + atomic_t nr_tasks;
1: + spinlock_t lock;
1: + short unsigned int ioprio;
1: + struct xarray icq_tree;
1: + struct io_cq *icq_hint;
1: + struct hlist_head icq_list;
1: + struct work_struct release_work;
1: };
1:
1: struct cgroup;
1:
1: struct css_set {
1: - struct cgroup_subsys_state *subsys[12];
1: - refcount_t refcount;
1: - struct css_set *dom_cset;
1: - struct cgroup *dfl_cgrp;
1: - int nr_tasks;
1: - struct list_head tasks;
1: - struct list_head mg_tasks;
1: - struct list_head dying_tasks;
1: - struct list_head task_iters;
1: - struct list_head e_cset_node[12];
1: - struct list_head threaded_csets;
1: - struct list_head threaded_csets_node;
1: - struct hlist_node hlist;
1: - struct list_head cgrp_links;
1: - struct list_head mg_preload_node;
1: - struct list_head mg_node;
1: - struct cgroup *mg_src_cgrp;
1: - struct cgroup *mg_dst_cgrp;
1: - struct css_set *mg_dst_cset;
1: - bool dead;
1: - struct callback_head callback_head;
1: + struct cgroup_subsys_state *subsys[12];
1: + refcount_t refcount;
1: + struct css_set *dom_cset;
1: + struct cgroup *dfl_cgrp;
1: + int nr_tasks;
1: + struct list_head tasks;
1: + struct list_head mg_tasks;
1: + struct list_head dying_tasks;
1: + struct list_head task_iters;
1: + struct list_head e_cset_node[12];
1: + struct list_head threaded_csets;
1: + struct list_head threaded_csets_node;
1: + struct hlist_node hlist;
1: + struct list_head cgrp_links;
1: + struct list_head mg_preload_node;
1: + struct list_head mg_node;
1: + struct cgroup *mg_src_cgrp;
1: + struct cgroup *mg_dst_cgrp;
1: + struct css_set *mg_dst_cset;
1: + bool dead;
1: + struct callback_head callback_head;
1: };
1:
1: struct compat_robust_list {
1: - compat_uptr_t next;
1: + compat_uptr_t next;
1: };
1:
1: struct compat_robust_list_head {
1: - struct compat_robust_list list;
1: - compat_long_t futex_offset;
1: - compat_uptr_t list_op_pending;
1: + struct compat_robust_list list;
1: + compat_long_t futex_offset;
1: + compat_uptr_t list_op_pending;
1: };
1:
1: struct perf_event_groups {
1: - struct rb_root tree;
1: - u64 index;
1: + struct rb_root tree;
1: + u64 index;
1: };
1:
1: struct perf_event_context {
1: - struct pmu *pmu;
1: - raw_spinlock_t lock;
1: - struct mutex mutex;
1: - struct list_head active_ctx_list;
1: - struct perf_event_groups pinned_groups;
1: - struct perf_event_groups flexible_groups;
1: - struct list_head event_list;
1: - struct list_head pinned_active;
1: - struct list_head flexible_active;
1: - int nr_events;
1: - int nr_active;
1: - int is_active;
1: - int nr_stat;
1: - int nr_freq;
1: - int rotate_disable;
1: - int rotate_necessary;
1: - refcount_t refcount;
1: - struct task_struct *task;
1: - u64 time;
1: - u64 timestamp;
1: - struct perf_event_context *parent_ctx;
1: - u64 parent_gen;
1: - u64 generation;
1: - int pin_count;
1: - int nr_cgroups;
1: - void *task_ctx_data;
1: - struct callback_head callback_head;
1: + struct pmu *pmu;
1: + raw_spinlock_t lock;
1: + struct mutex mutex;
1: + struct list_head active_ctx_list;
1: + struct perf_event_groups pinned_groups;
1: + struct perf_event_groups flexible_groups;
1: + struct list_head event_list;
1: + struct list_head pinned_active;
1: + struct list_head flexible_active;
1: + int nr_events;
1: + int nr_active;
1: + int is_active;
1: + int nr_stat;
1: + int nr_freq;
1: + int rotate_disable;
1: + int rotate_necessary;
1: + refcount_t refcount;
1: + struct task_struct *task;
1: + u64 time;
1: + u64 timestamp;
1: + struct perf_event_context *parent_ctx;
1: + u64 parent_gen;
1: + u64 generation;
1: + int pin_count;
1: + int nr_cgroups;
1: + void *task_ctx_data;
1: + struct callback_head callback_head;
1: };
1:
1: struct mempolicy {
1: - atomic_t refcnt;
1: - short unsigned int mode;
1: - short unsigned int flags;
1: - union {
1: - short int preferred_node;
1: - nodemask_t nodes;
1: - } v;
1: - union {
1: - nodemask_t cpuset_mems_allowed;
1: - nodemask_t user_nodemask;
1: - } w;
1: + atomic_t refcnt;
1: + short unsigned int mode;
1: + short unsigned int flags;
1: + union {
1: + short int preferred_node;
1: + nodemask_t nodes;
1: + } v;
1: + union {
1: + nodemask_t cpuset_mems_allowed;
1: + nodemask_t user_nodemask;
1: + } w;
1: };
1:
1: struct task_delay_info {
1: - raw_spinlock_t lock;
1: - unsigned int flags;
1: - u64 blkio_start;
1: - u64 blkio_delay;
1: - u64 swapin_delay;
1: - u32 blkio_count;
1: - u32 swapin_count;
1: - u64 freepages_start;
1: - u64 freepages_delay;
1: - u64 thrashing_start;
1: - u64 thrashing_delay;
1: - u32 freepages_count;
1: - u32 thrashing_count;
1: + raw_spinlock_t lock;
1: + unsigned int flags;
1: + u64 blkio_start;
1: + u64 blkio_delay;
1: + u64 swapin_delay;
1: + u32 blkio_count;
1: + u32 swapin_count;
1: + u64 freepages_start;
1: + u64 freepages_delay;
1: + u64 thrashing_start;
1: + u64 thrashing_delay;
1: + u32 freepages_count;
1: + u32 thrashing_count;
1: };
1:
1: struct ftrace_ret_stack {
1: - long unsigned int ret;
1: - long unsigned int func;
1: - long long unsigned int calltime;
1: - long unsigned int fp;
1: + long unsigned int ret;
1: + long unsigned int func;
1: + long long unsigned int calltime;
1: + long unsigned int fp;
1: };
1:
1: struct cgroup_subsys;
1:
1: struct cgroup_subsys_state {
1: - struct cgroup *cgroup;
1: - struct cgroup_subsys *ss;
1: - struct percpu_ref refcnt;
1: - struct list_head sibling;
1: - struct list_head children;
1: - struct list_head rstat_css_node;
1: - int id;
1: - unsigned int flags;
1: - u64 serial_nr;
1: - atomic_t online_cnt;
1: - struct work_struct destroy_work;
1: - struct rcu_work destroy_rwork;
1: - struct cgroup_subsys_state *parent;
1: + struct cgroup *cgroup;
1: + struct cgroup_subsys *ss;
1: + struct percpu_ref refcnt;
1: + struct list_head sibling;
1: + struct list_head children;
1: + struct list_head rstat_css_node;
1: + int id;
1: + unsigned int flags;
1: + u64 serial_nr;
1: + atomic_t online_cnt;
1: + struct work_struct destroy_work;
1: + struct rcu_work destroy_rwork;
1: + struct cgroup_subsys_state *parent;
1: };
1:
1: struct mem_cgroup_id {
1: - int id;
1: - refcount_t ref;
1: + int id;
1: + refcount_t ref;
1: };
1:
1: struct page_counter {
1: - atomic_long_t usage;
1: - long unsigned int min;
1: - long unsigned int low;
1: - long unsigned int high;
1: - long unsigned int max;
1: - struct page_counter *parent;
1: - long unsigned int emin;
1: - atomic_long_t min_usage;
1: - atomic_long_t children_min_usage;
1: - long unsigned int elow;
1: - atomic_long_t low_usage;
1: - atomic_long_t children_low_usage;
1: - long unsigned int watermark;
1: - long unsigned int failcnt;
1: + atomic_long_t usage;
1: + long unsigned int min;
1: + long unsigned int low;
1: + long unsigned int high;
1: + long unsigned int max;
1: + struct page_counter *parent;
1: + long unsigned int emin;
1: + atomic_long_t min_usage;
1: + atomic_long_t children_min_usage;
1: + long unsigned int elow;
1: + atomic_long_t low_usage;
1: + atomic_long_t children_low_usage;
1: + long unsigned int watermark;
1: + long unsigned int failcnt;
1: };
1:
1: struct vmpressure {
1: - long unsigned int scanned;
1: - long unsigned int reclaimed;
1: - long unsigned int tree_scanned;
1: - long unsigned int tree_reclaimed;
1: - spinlock_t sr_lock;
1: - struct list_head events;
1: - struct mutex events_lock;
1: - struct work_struct work;
1: + long unsigned int scanned;
1: + long unsigned int reclaimed;
1: + long unsigned int tree_scanned;
1: + long unsigned int tree_reclaimed;
1: + spinlock_t sr_lock;
1: + struct list_head events;
1: + struct mutex events_lock;
1: + struct work_struct work;
1: };
1:
1: struct cgroup_file {
1: - struct kernfs_node *kn;
1: - long unsigned int notified_at;
1: - struct timer_list notify_timer;
1: + struct kernfs_node *kn;
1: + long unsigned int notified_at;
1: + struct timer_list notify_timer;
1: };
1:
1: struct mem_cgroup_threshold_ary;
1:
1: struct mem_cgroup_thresholds {
1: - struct mem_cgroup_threshold_ary *primary;
1: - struct mem_cgroup_threshold_ary *spare;
1: + struct mem_cgroup_threshold_ary *primary;
1: + struct mem_cgroup_threshold_ary *spare;
1: };
1:
1: struct memcg_padding {
1: - char x[0];
1: + char x[0];
1: };
1:
1: enum memcg_kmem_state {
1: - KMEM_NONE = 0,
1: - KMEM_ALLOCATED = 1,
1: - KMEM_ONLINE = 2,
1: + KMEM_NONE = 0,
1: + KMEM_ALLOCATED = 1,
1: + KMEM_ONLINE = 2,
1: };
1:
1: struct fprop_global {
1: - struct percpu_counter events;
1: - unsigned int period;
1: - seqcount_t sequence;
1: + struct percpu_counter events;
1: + unsigned int period;
1: + seqcount_t sequence;
1: };
1:
1: struct wb_domain {
1: - spinlock_t lock;
1: - struct fprop_global completions;
1: - struct timer_list period_timer;
1: - long unsigned int period_time;
1: - long unsigned int dirty_limit_tstamp;
1: - long unsigned int dirty_limit;
1: + spinlock_t lock;
1: + struct fprop_global completions;
1: + struct timer_list period_timer;
1: + long unsigned int period_time;
1: + long unsigned int dirty_limit_tstamp;
1: + long unsigned int dirty_limit;
1: };
1:
1: struct wb_completion {
1: - atomic_t cnt;
1: - wait_queue_head_t *waitq;
1: + atomic_t cnt;
1: + wait_queue_head_t *waitq;
1: };
1:
1: struct memcg_cgwb_frn {
1: - u64 bdi_id;
1: - int memcg_id;
1: - u64 at;
1: - struct wb_completion done;
1: + u64 bdi_id;
1: + int memcg_id;
1: + u64 at;
1: + struct wb_completion done;
1: };
1:
1: struct deferred_split {
1: - spinlock_t split_queue_lock;
1: - struct list_head split_queue;
1: - long unsigned int split_queue_len;
1: + spinlock_t split_queue_lock;
1: + struct list_head split_queue;
1: + long unsigned int split_queue_len;
1: };
1:
1: struct memcg_vmstats_percpu;
1: @@ -2940,137 +2953,137 @@ struct memcg_vmstats_percpu;
1: struct mem_cgroup_per_node;
1:
1: struct mem_cgroup {
1: - struct cgroup_subsys_state css;
1: - struct mem_cgroup_id id;
1: - struct page_counter memory;
1: - union {
1: - struct page_counter swap;
1: - struct page_counter memsw;
1: - };
1: - struct page_counter kmem;
1: - struct page_counter tcpmem;
1: - struct work_struct high_work;
1: - long unsigned int soft_limit;
1: - struct vmpressure vmpressure;
1: - bool use_hierarchy;
1: - bool oom_group;
1: - bool oom_lock;
1: - int under_oom;
1: - int swappiness;
1: - int oom_kill_disable;
1: - struct cgroup_file events_file;
1: - struct cgroup_file events_local_file;
1: - struct cgroup_file swap_events_file;
1: - struct mutex thresholds_lock;
1: - struct mem_cgroup_thresholds thresholds;
1: - struct mem_cgroup_thresholds memsw_thresholds;
1: - struct list_head oom_notify;
1: - long unsigned int move_charge_at_immigrate;
1: - spinlock_t move_lock;
1: - long unsigned int move_lock_flags;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct memcg_padding _pad1_;
1: - atomic_long_t vmstats[40];
1: - atomic_long_t vmevents[95];
1: - atomic_long_t memory_events[8];
1: - atomic_long_t memory_events_local[8];
1: - long unsigned int socket_pressure;
1: - bool tcpmem_active;
1: - int tcpmem_pressure;
1: - int kmemcg_id;
1: - enum memcg_kmem_state kmem_state;
1: - struct obj_cgroup *objcg;
1: - struct list_head objcg_list;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct memcg_padding _pad2_;
1: - atomic_t moving_account;
1: - struct task_struct *move_lock_task;
1: - struct memcg_vmstats_percpu *vmstats_local;
1: - struct memcg_vmstats_percpu *vmstats_percpu;
1: - struct list_head cgwb_list;
1: - struct wb_domain cgwb_domain;
1: - struct memcg_cgwb_frn cgwb_frn[4];
1: - struct list_head event_list;
1: - spinlock_t event_list_lock;
1: - struct deferred_split deferred_split_queue;
1: - struct mem_cgroup_per_node *nodeinfo[0];
1: + struct cgroup_subsys_state css;
1: + struct mem_cgroup_id id;
1: + struct page_counter memory;
1: + union {
1: + struct page_counter swap;
1: + struct page_counter memsw;
1: + };
1: + struct page_counter kmem;
1: + struct page_counter tcpmem;
1: + struct work_struct high_work;
1: + long unsigned int soft_limit;
1: + struct vmpressure vmpressure;
1: + bool use_hierarchy;
1: + bool oom_group;
1: + bool oom_lock;
1: + int under_oom;
1: + int swappiness;
1: + int oom_kill_disable;
1: + struct cgroup_file events_file;
1: + struct cgroup_file events_local_file;
1: + struct cgroup_file swap_events_file;
1: + struct mutex thresholds_lock;
1: + struct mem_cgroup_thresholds thresholds;
1: + struct mem_cgroup_thresholds memsw_thresholds;
1: + struct list_head oom_notify;
1: + long unsigned int move_charge_at_immigrate;
1: + spinlock_t move_lock;
1: + long unsigned int move_lock_flags;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct memcg_padding _pad1_;
1: + atomic_long_t vmstats[40];
1: + atomic_long_t vmevents[95];
1: + atomic_long_t memory_events[8];
1: + atomic_long_t memory_events_local[8];
1: + long unsigned int socket_pressure;
1: + bool tcpmem_active;
1: + int tcpmem_pressure;
1: + int kmemcg_id;
1: + enum memcg_kmem_state kmem_state;
1: + struct obj_cgroup *objcg;
1: + struct list_head objcg_list;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct memcg_padding _pad2_;
1: + atomic_t moving_account;
1: + struct task_struct *move_lock_task;
1: + struct memcg_vmstats_percpu *vmstats_local;
1: + struct memcg_vmstats_percpu *vmstats_percpu;
1: + struct list_head cgwb_list;
1: + struct wb_domain cgwb_domain;
1: + struct memcg_cgwb_frn cgwb_frn[4];
1: + struct list_head event_list;
1: + spinlock_t event_list_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct mem_cgroup_per_node *nodeinfo[0];
1: };
1:
1: struct blk_integrity_profile;
1:
1: struct blk_integrity {
1: - const struct blk_integrity_profile *profile;
1: - unsigned char flags;
1: - unsigned char tuple_size;
1: - unsigned char interval_exp;
1: - unsigned char tag_size;
1: + const struct blk_integrity_profile *profile;
1: + unsigned char flags;
1: + unsigned char tuple_size;
1: + unsigned char interval_exp;
1: + unsigned char tag_size;
1: };
1:
1: enum rpm_status {
1: - RPM_ACTIVE = 0,
1: - RPM_RESUMING = 1,
1: - RPM_SUSPENDED = 2,
1: - RPM_SUSPENDING = 3,
1: + RPM_ACTIVE = 0,
1: + RPM_RESUMING = 1,
1: + RPM_SUSPENDED = 2,
1: + RPM_SUSPENDING = 3,
1: };
1:
1: struct blk_rq_stat {
1: - u64 mean;
1: - u64 min;
1: - u64 max;
1: - u32 nr_samples;
1: - u64 batch;
1: + u64 mean;
1: + u64 min;
1: + u64 max;
1: + u32 nr_samples;
1: + u64 batch;
1: };
1:
1: enum blk_zoned_model {
1: - BLK_ZONED_NONE = 0,
1: - BLK_ZONED_HA = 1,
1: - BLK_ZONED_HM = 2,
1: + BLK_ZONED_NONE = 0,
1: + BLK_ZONED_HA = 1,
1: + BLK_ZONED_HM = 2,
1: };
1:
1: struct queue_limits {
1: - long unsigned int bounce_pfn;
1: - long unsigned int seg_boundary_mask;
1: - long unsigned int virt_boundary_mask;
1: - unsigned int max_hw_sectors;
1: - unsigned int max_dev_sectors;
1: - unsigned int chunk_sectors;
1: - unsigned int max_sectors;
1: - unsigned int max_segment_size;
1: - unsigned int physical_block_size;
1: - unsigned int logical_block_size;
1: - unsigned int alignment_offset;
1: - unsigned int io_min;
1: - unsigned int io_opt;
1: - unsigned int max_discard_sectors;
1: - unsigned int max_hw_discard_sectors;
1: - unsigned int max_write_same_sectors;
1: - unsigned int max_write_zeroes_sectors;
1: - unsigned int max_zone_append_sectors;
1: - unsigned int discard_granularity;
1: - unsigned int discard_alignment;
1: - short unsigned int max_segments;
1: - short unsigned int max_integrity_segments;
1: - short unsigned int max_discard_segments;
1: - unsigned char misaligned;
1: - unsigned char discard_misaligned;
1: - unsigned char raid_partial_stripes_expensive;
1: - enum blk_zoned_model zoned;
1: + long unsigned int bounce_pfn;
1: + long unsigned int seg_boundary_mask;
1: + long unsigned int virt_boundary_mask;
1: + unsigned int max_hw_sectors;
1: + unsigned int max_dev_sectors;
1: + unsigned int chunk_sectors;
1: + unsigned int max_sectors;
1: + unsigned int max_segment_size;
1: + unsigned int physical_block_size;
1: + unsigned int logical_block_size;
1: + unsigned int alignment_offset;
1: + unsigned int io_min;
1: + unsigned int io_opt;
1: + unsigned int max_discard_sectors;
1: + unsigned int max_hw_discard_sectors;
1: + unsigned int max_write_same_sectors;
1: + unsigned int max_write_zeroes_sectors;
1: + unsigned int max_zone_append_sectors;
1: + unsigned int discard_granularity;
1: + unsigned int discard_alignment;
1: + short unsigned int max_segments;
1: + short unsigned int max_integrity_segments;
1: + short unsigned int max_discard_segments;
1: + unsigned char misaligned;
1: + unsigned char discard_misaligned;
1: + unsigned char raid_partial_stripes_expensive;
1: + enum blk_zoned_model zoned;
1: };
1:
1: struct bsg_ops;
1:
1: struct bsg_class_device {
1: - struct device *class_dev;
1: - int minor;
1: - struct request_queue *queue;
1: - const struct bsg_ops *ops;
1: + struct device *class_dev;
1: + int minor;
1: + struct request_queue *queue;
1: + const struct bsg_ops *ops;
1: };
1:
1: typedef void *mempool_alloc_t(gfp_t, void *);
1: @@ -3078,29 +3091,29 @@ typedef void *mempool_alloc_t(gfp_t, void *);
1: typedef void mempool_free_t(void *, void *);
1:
1: struct mempool_s {
1: - spinlock_t lock;
1: - int min_nr;
1: - int curr_nr;
1: - void **elements;
1: - void *pool_data;
1: - mempool_alloc_t *alloc;
1: - mempool_free_t *free;
1: - wait_queue_head_t wait;
1: + spinlock_t lock;
1: + int min_nr;
1: + int curr_nr;
1: + void **elements;
1: + void *pool_data;
1: + mempool_alloc_t *alloc;
1: + mempool_free_t *free;
1: + wait_queue_head_t wait;
1: };
1:
1: typedef struct mempool_s mempool_t;
1:
1: struct bio_set {
1: - struct kmem_cache *bio_slab;
1: - unsigned int front_pad;
1: - mempool_t bio_pool;
1: - mempool_t bvec_pool;
1: - mempool_t bio_integrity_pool;
1: - mempool_t bvec_integrity_pool;
1: - spinlock_t rescue_lock;
1: - struct bio_list rescue_list;
1: - struct work_struct rescue_work;
1: - struct workqueue_struct *rescue_workqueue;
1: + struct kmem_cache *bio_slab;
1: + unsigned int front_pad;
1: + mempool_t bio_pool;
1: + mempool_t bvec_pool;
1: + mempool_t bio_integrity_pool;
1: + mempool_t bvec_integrity_pool;
1: + spinlock_t rescue_lock;
1: + struct bio_list rescue_list;
1: + struct work_struct rescue_work;
1: + struct workqueue_struct *rescue_workqueue;
1: };
1:
1: struct request;
1: @@ -3132,84 +3145,84 @@ struct throtl_data;
1: struct blk_mq_tag_set;
1:
1: struct request_queue {
1: - struct request *last_merge;
1: - struct elevator_queue *elevator;
1: - struct percpu_ref q_usage_counter;
1: - struct blk_queue_stats *stats;
1: - struct rq_qos *rq_qos;
1: - const struct blk_mq_ops *mq_ops;
1: - struct blk_mq_ctx *queue_ctx;
1: - unsigned int queue_depth;
1: - struct blk_mq_hw_ctx **queue_hw_ctx;
1: - unsigned int nr_hw_queues;
1: - struct backing_dev_info *backing_dev_info;
1: - void *queuedata;
1: - long unsigned int queue_flags;
1: - atomic_t pm_only;
1: - int id;
1: - gfp_t bounce_gfp;
1: - spinlock_t queue_lock;
1: - struct kobject kobj;
1: - struct kobject *mq_kobj;
1: - struct blk_integrity integrity;
1: - struct device *dev;
1: - enum rpm_status rpm_status;
1: - unsigned int nr_pending;
1: - long unsigned int nr_requests;
1: - unsigned int dma_pad_mask;
1: - unsigned int dma_alignment;
1: - struct blk_keyslot_manager *ksm;
1: - unsigned int rq_timeout;
1: - int poll_nsec;
1: - struct blk_stat_callback *poll_cb;
1: - struct blk_rq_stat poll_stat[16];
1: - struct timer_list timeout;
1: - struct work_struct timeout_work;
1: - atomic_t nr_active_requests_shared_sbitmap;
1: - struct list_head icq_list;
1: - long unsigned int blkcg_pols[1];
1: - struct blkcg_gq *root_blkg;
1: - struct list_head blkg_list;
1: - struct queue_limits limits;
1: - unsigned int required_elevator_features;
1: - unsigned int nr_zones;
1: - long unsigned int *conv_zones_bitmap;
1: - long unsigned int *seq_zones_wlock;
1: - unsigned int max_open_zones;
1: - unsigned int max_active_zones;
1: - unsigned int sg_timeout;
1: - unsigned int sg_reserved_size;
1: - int node;
1: - struct mutex debugfs_mutex;
1: - struct blk_trace *blk_trace;
1: - struct blk_flush_queue *fq;
1: - struct list_head requeue_list;
1: - spinlock_t requeue_lock;
1: - struct delayed_work requeue_work;
1: - struct mutex sysfs_lock;
1: - struct mutex sysfs_dir_lock;
1: - struct list_head unused_hctx_list;
1: - spinlock_t unused_hctx_lock;
1: - int mq_freeze_depth;
1: - struct bsg_class_device bsg_dev;
1: - struct throtl_data *td;
1: - struct callback_head callback_head;
1: - wait_queue_head_t mq_freeze_wq;
1: - struct mutex mq_freeze_lock;
1: - struct blk_mq_tag_set *tag_set;
1: - struct list_head tag_set_list;
1: - struct bio_set bio_split;
1: - struct dentry *debugfs_dir;
1: - bool mq_sysfs_init_done;
1: - size_t cmd_size;
1: - u64 write_hints[5];
1: + struct request *last_merge;
1: + struct elevator_queue *elevator;
1: + struct percpu_ref q_usage_counter;
1: + struct blk_queue_stats *stats;
1: + struct rq_qos *rq_qos;
1: + const struct blk_mq_ops *mq_ops;
1: + struct blk_mq_ctx *queue_ctx;
1: + unsigned int queue_depth;
1: + struct blk_mq_hw_ctx **queue_hw_ctx;
1: + unsigned int nr_hw_queues;
1: + struct backing_dev_info *backing_dev_info;
1: + void *queuedata;
1: + long unsigned int queue_flags;
1: + atomic_t pm_only;
1: + int id;
1: + gfp_t bounce_gfp;
1: + spinlock_t queue_lock;
1: + struct kobject kobj;
1: + struct kobject *mq_kobj;
1: + struct blk_integrity integrity;
1: + struct device *dev;
1: + enum rpm_status rpm_status;
1: + unsigned int nr_pending;
1: + long unsigned int nr_requests;
1: + unsigned int dma_pad_mask;
1: + unsigned int dma_alignment;
1: + struct blk_keyslot_manager *ksm;
1: + unsigned int rq_timeout;
1: + int poll_nsec;
1: + struct blk_stat_callback *poll_cb;
1: + struct blk_rq_stat poll_stat[16];
1: + struct timer_list timeout;
1: + struct work_struct timeout_work;
1: + atomic_t nr_active_requests_shared_sbitmap;
1: + struct list_head icq_list;
1: + long unsigned int blkcg_pols[1];
1: + struct blkcg_gq *root_blkg;
1: + struct list_head blkg_list;
1: + struct queue_limits limits;
1: + unsigned int required_elevator_features;
1: + unsigned int nr_zones;
1: + long unsigned int *conv_zones_bitmap;
1: + long unsigned int *seq_zones_wlock;
1: + unsigned int max_open_zones;
1: + unsigned int max_active_zones;
1: + unsigned int sg_timeout;
1: + unsigned int sg_reserved_size;
1: + int node;
1: + struct mutex debugfs_mutex;
1: + struct blk_trace *blk_trace;
1: + struct blk_flush_queue *fq;
1: + struct list_head requeue_list;
1: + spinlock_t requeue_lock;
1: + struct delayed_work requeue_work;
1: + struct mutex sysfs_lock;
1: + struct mutex sysfs_dir_lock;
1: + struct list_head unused_hctx_list;
1: + spinlock_t unused_hctx_lock;
1: + int mq_freeze_depth;
1: + struct bsg_class_device bsg_dev;
1: + struct throtl_data *td;
1: + struct callback_head callback_head;
1: + wait_queue_head_t mq_freeze_wq;
1: + struct mutex mq_freeze_lock;
1: + struct blk_mq_tag_set *tag_set;
1: + struct list_head tag_set_list;
1: + struct bio_set bio_split;
1: + struct dentry *debugfs_dir;
1: + bool mq_sysfs_init_done;
1: + size_t cmd_size;
1: + u64 write_hints[5];
1: };
1:
1: enum uprobe_task_state {
1: - UTASK_RUNNING = 0,
1: - UTASK_SSTEP = 1,
1: - UTASK_SSTEP_ACK = 2,
1: - UTASK_SSTEP_TRAPPED = 3,
1: + UTASK_RUNNING = 0,
1: + UTASK_SSTEP = 1,
1: + UTASK_SSTEP_ACK = 2,
1: + UTASK_SSTEP_TRAPPED = 3,
1: };
1:
1: struct arch_uprobe_task {};
1: @@ -3219,62 +3232,62 @@ struct uprobe;
1: struct return_instance;
1:
1: struct uprobe_task {
1: - enum uprobe_task_state state;
1: - union {
1: - struct {
1: - struct arch_uprobe_task autask;
1: - long unsigned int vaddr;
1: - };
1: - struct {
1: - struct callback_head dup_xol_work;
1: - long unsigned int dup_xol_addr;
1: - };
1: - };
1: - struct uprobe *active_uprobe;
1: - long unsigned int xol_vaddr;
1: - struct return_instance *return_instances;
1: - unsigned int depth;
1: + enum uprobe_task_state state;
1: + union {
1: + struct {
1: + struct arch_uprobe_task autask;
1: + long unsigned int vaddr;
1: + };
1: + struct {
1: + struct callback_head dup_xol_work;
1: + long unsigned int dup_xol_addr;
1: + };
1: + };
1: + struct uprobe *active_uprobe;
1: + long unsigned int xol_vaddr;
1: + struct return_instance *return_instances;
1: + unsigned int depth;
1: };
1:
1: struct vm_struct {
1: - struct vm_struct *next;
1: - void *addr;
1: - long unsigned int size;
1: - long unsigned int flags;
1: - struct page **pages;
1: - unsigned int nr_pages;
1: - phys_addr_t phys_addr;
1: - const void *caller;
1: + struct vm_struct *next;
1: + void *addr;
1: + long unsigned int size;
1: + long unsigned int flags;
1: + struct page **pages;
1: + unsigned int nr_pages;
1: + phys_addr_t phys_addr;
1: + const void *caller;
1: };
1:
1: struct kstat {
1: - u32 result_mask;
1: - umode_t mode;
1: - unsigned int nlink;
1: - uint32_t blksize;
1: - u64 attributes;
1: - u64 attributes_mask;
1: - u64 ino;
1: - dev_t dev;
1: - dev_t rdev;
1: - kuid_t uid;
1: - kgid_t gid;
1: - loff_t size;
1: - struct timespec64 atime;
1: - struct timespec64 mtime;
1: - struct timespec64 ctime;
1: - struct timespec64 btime;
1: - u64 blocks;
1: - u64 mnt_id;
1: + u32 result_mask;
1: + umode_t mode;
1: + unsigned int nlink;
1: + uint32_t blksize;
1: + u64 attributes;
1: + u64 attributes_mask;
1: + u64 ino;
1: + dev_t dev;
1: + dev_t rdev;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct timespec64 atime;
1: + struct timespec64 mtime;
1: + struct timespec64 ctime;
1: + struct timespec64 btime;
1: + u64 blocks;
1: + u64 mnt_id;
1: };
1:
1: struct return_instance {
1: - struct uprobe *uprobe;
1: - long unsigned int func;
1: - long unsigned int stack;
1: - long unsigned int orig_ret_vaddr;
1: - bool chained;
1: - struct return_instance *next;
1: + struct uprobe *uprobe;
1: + long unsigned int func;
1: + long unsigned int stack;
1: + long unsigned int orig_ret_vaddr;
1: + bool chained;
1: + struct return_instance *next;
1: };
1:
1: typedef u32 errseq_t;
1: @@ -3282,181 +3295,181 @@ typedef u32 errseq_t;
1: struct address_space_operations;
1:
1: struct address_space {
1: - struct inode *host;
1: - struct xarray i_pages;
1: - gfp_t gfp_mask;
1: - atomic_t i_mmap_writable;
1: - atomic_t nr_thps;
1: - struct rb_root_cached i_mmap;
1: - struct rw_semaphore i_mmap_rwsem;
1: - long unsigned int nrpages;
1: - long unsigned int nrexceptional;
1: - long unsigned int writeback_index;
1: - const struct address_space_operations *a_ops;
1: - long unsigned int flags;
1: - errseq_t wb_err;
1: - spinlock_t private_lock;
1: - struct list_head private_list;
1: - void *private_data;
1: + struct inode *host;
1: + struct xarray i_pages;
1: + gfp_t gfp_mask;
1: + atomic_t i_mmap_writable;
1: + atomic_t nr_thps;
1: + struct rb_root_cached i_mmap;
1: + struct rw_semaphore i_mmap_rwsem;
1: + long unsigned int nrpages;
1: + long unsigned int nrexceptional;
1: + long unsigned int writeback_index;
1: + const struct address_space_operations *a_ops;
1: + long unsigned int flags;
1: + errseq_t wb_err;
1: + spinlock_t private_lock;
1: + struct list_head private_list;
1: + void *private_data;
1: };
1:
1: struct vmem_altmap {
1: - const long unsigned int base_pfn;
1: - const long unsigned int end_pfn;
1: - const long unsigned int reserve;
1: - long unsigned int free;
1: - long unsigned int align;
1: - long unsigned int alloc;
1: + const long unsigned int base_pfn;
1: + const long unsigned int end_pfn;
1: + const long unsigned int reserve;
1: + long unsigned int free;
1: + long unsigned int align;
1: + long unsigned int alloc;
1: };
1:
1: enum memory_type {
1: - MEMORY_DEVICE_PRIVATE = 1,
1: - MEMORY_DEVICE_FS_DAX = 2,
1: - MEMORY_DEVICE_GENERIC = 3,
1: - MEMORY_DEVICE_PCI_P2PDMA = 4,
1: + MEMORY_DEVICE_PRIVATE = 1,
1: + MEMORY_DEVICE_FS_DAX = 2,
1: + MEMORY_DEVICE_GENERIC = 3,
1: + MEMORY_DEVICE_PCI_P2PDMA = 4,
1: };
1:
1: struct range {
1: - u64 start;
1: - u64 end;
1: + u64 start;
1: + u64 end;
1: };
1:
1: struct dev_pagemap_ops;
1:
1: struct dev_pagemap {
1: - struct vmem_altmap altmap;
1: - struct percpu_ref *ref;
1: - struct percpu_ref internal_ref;
1: - struct completion done;
1: - enum memory_type type;
1: - unsigned int flags;
1: - const struct dev_pagemap_ops *ops;
1: - void *owner;
1: - int nr_range;
1: - union {
1: - struct range range;
1: - struct range ranges[0];
1: - };
1: + struct vmem_altmap altmap;
1: + struct percpu_ref *ref;
1: + struct percpu_ref internal_ref;
1: + struct completion done;
1: + enum memory_type type;
1: + unsigned int flags;
1: + const struct dev_pagemap_ops *ops;
1: + void *owner;
1: + int nr_range;
1: + union {
1: + struct range range;
1: + struct range ranges[0];
1: + };
1: };
1:
1: struct obj_cgroup {
1: - struct percpu_ref refcnt;
1: - struct mem_cgroup *memcg;
1: - atomic_t nr_charged_bytes;
1: - union {
1: - struct list_head list;
1: - struct callback_head rcu;
1: - };
1: + struct percpu_ref refcnt;
1: + struct mem_cgroup *memcg;
1: + atomic_t nr_charged_bytes;
1: + union {
1: + struct list_head list;
1: + struct callback_head rcu;
1: + };
1: };
1:
1: struct vfsmount;
1:
1: struct path {
1: - struct vfsmount *mnt;
1: - struct dentry *dentry;
1: + struct vfsmount *mnt;
1: + struct dentry *dentry;
1: };
1:
1: enum rw_hint {
1: - WRITE_LIFE_NOT_SET = 0,
1: - WRITE_LIFE_NONE = 1,
1: - WRITE_LIFE_SHORT = 2,
1: - WRITE_LIFE_MEDIUM = 3,
1: - WRITE_LIFE_LONG = 4,
1: - WRITE_LIFE_EXTREME = 5,
1: + WRITE_LIFE_NOT_SET = 0,
1: + WRITE_LIFE_NONE = 1,
1: + WRITE_LIFE_SHORT = 2,
1: + WRITE_LIFE_MEDIUM = 3,
1: + WRITE_LIFE_LONG = 4,
1: + WRITE_LIFE_EXTREME = 5,
1: };
1:
1: struct fown_struct {
1: - rwlock_t lock;
1: - struct pid *pid;
1: - enum pid_type pid_type;
1: - kuid_t uid;
1: - kuid_t euid;
1: - int signum;
1: + rwlock_t lock;
1: + struct pid *pid;
1: + enum pid_type pid_type;
1: + kuid_t uid;
1: + kuid_t euid;
1: + int signum;
1: };
1:
1: struct file_ra_state {
1: - long unsigned int start;
1: - unsigned int size;
1: - unsigned int async_size;
1: - unsigned int ra_pages;
1: - unsigned int mmap_miss;
1: - loff_t prev_pos;
1: + long unsigned int start;
1: + unsigned int size;
1: + unsigned int async_size;
1: + unsigned int ra_pages;
1: + unsigned int mmap_miss;
1: + loff_t prev_pos;
1: };
1:
1: struct file {
1: - union {
1: - struct llist_node fu_llist;
1: - struct callback_head fu_rcuhead;
1: - } f_u;
1: - struct path f_path;
1: - struct inode *f_inode;
1: - const struct file_operations *f_op;
1: - spinlock_t f_lock;
1: - enum rw_hint f_write_hint;
1: - atomic_long_t f_count;
1: - unsigned int f_flags;
1: - fmode_t f_mode;
1: - struct mutex f_pos_lock;
1: - loff_t f_pos;
1: - struct fown_struct f_owner;
1: - const struct cred *f_cred;
1: - struct file_ra_state f_ra;
1: - u64 f_version;
1: - void *f_security;
1: - void *private_data;
1: - struct list_head f_ep_links;
1: - struct list_head f_tfile_llink;
1: - struct address_space *f_mapping;
1: - errseq_t f_wb_err;
1: - errseq_t f_sb_err;
1: + union {
1: + struct llist_node fu_llist;
1: + struct callback_head fu_rcuhead;
1: + } f_u;
1: + struct path f_path;
1: + struct inode *f_inode;
1: + const struct file_operations *f_op;
1: + spinlock_t f_lock;
1: + enum rw_hint f_write_hint;
1: + atomic_long_t f_count;
1: + unsigned int f_flags;
1: + fmode_t f_mode;
1: + struct mutex f_pos_lock;
1: + loff_t f_pos;
1: + struct fown_struct f_owner;
1: + const struct cred *f_cred;
1: + struct file_ra_state f_ra;
1: + u64 f_version;
1: + void *f_security;
1: + void *private_data;
1: + struct list_head f_ep_links;
1: + struct list_head f_tfile_llink;
1: + struct address_space *f_mapping;
1: + errseq_t f_wb_err;
1: + errseq_t f_sb_err;
1: };
1:
1: struct anon_vma {
1: - struct anon_vma *root;
1: - struct rw_semaphore rwsem;
1: - atomic_t refcount;
1: - unsigned int degree;
1: - struct anon_vma *parent;
1: - struct rb_root_cached rb_root;
1: + struct anon_vma *root;
1: + struct rw_semaphore rwsem;
1: + atomic_t refcount;
1: + unsigned int degree;
1: + struct anon_vma *parent;
1: + struct rb_root_cached rb_root;
1: };
1:
1: typedef unsigned int vm_fault_t;
1:
1: enum page_entry_size {
1: - PE_SIZE_PTE = 0,
1: - PE_SIZE_PMD = 1,
1: - PE_SIZE_PUD = 2,
1: + PE_SIZE_PTE = 0,
1: + PE_SIZE_PMD = 1,
1: + PE_SIZE_PUD = 2,
1: };
1:
1: struct vm_fault;
1:
1: struct vm_operations_struct {
1: - void (*open)(struct vm_area_struct *);
1: - void (*close)(struct vm_area_struct *);
1: - int (*split)(struct vm_area_struct *, long unsigned int);
1: - int (*mremap)(struct vm_area_struct *);
1: - vm_fault_t (*fault)(struct vm_fault *);
1: - vm_fault_t (*huge_fault)(struct vm_fault *, enum page_entry_size);
1: - void (*map_pages)(struct vm_fault *, long unsigned int, long unsigned int);
1: - long unsigned int (*pagesize)(struct vm_area_struct *);
1: - vm_fault_t (*page_mkwrite)(struct vm_fault *);
1: - vm_fault_t (*pfn_mkwrite)(struct vm_fault *);
1: - int (*access)(struct vm_area_struct *, long unsigned int, void *, int, int);
1: - const char * (*name)(struct vm_area_struct *);
1: - int (*set_policy)(struct vm_area_struct *, struct mempolicy *);
1: - struct mempolicy * (*get_policy)(struct vm_area_struct *, long unsigned int);
1: - struct page * (*find_special_page)(struct vm_area_struct *, long unsigned int);
1: + void (*open)(struct vm_area_struct *);
1: + void (*close)(struct vm_area_struct *);
1: + int (*split)(struct vm_area_struct *, long unsigned int);
1: + int (*mremap)(struct vm_area_struct *);
1: + vm_fault_t (*fault)(struct vm_fault *);
1: + vm_fault_t (*huge_fault)(struct vm_fault *, enum page_entry_size);
1: + void (*map_pages)(struct vm_fault *, long unsigned int, long unsigned int);
1: + long unsigned int (*pagesize)(struct vm_area_struct *);
1: + vm_fault_t (*page_mkwrite)(struct vm_fault *);
1: + vm_fault_t (*pfn_mkwrite)(struct vm_fault *);
1: + int (*access)(struct vm_area_struct *, long unsigned int, void *, int, int);
1: + const char *(*name)(struct vm_area_struct *);
1: + int (*set_policy)(struct vm_area_struct *, struct mempolicy *);
1: + struct mempolicy *(*get_policy)(struct vm_area_struct *, long unsigned int);
1: + struct page *(*find_special_page)(struct vm_area_struct *, long unsigned int);
1: };
1:
1: struct core_thread {
1: - struct task_struct *task;
1: - struct core_thread *next;
1: + struct task_struct *task;
1: + struct core_thread *next;
1: };
1:
1: struct core_state {
1: - atomic_t nr_threads;
1: - struct core_thread dumper;
1: - struct completion startup;
1: + atomic_t nr_threads;
1: + struct core_thread dumper;
1: + struct completion startup;
1: };
1:
1: struct linux_binprm;
1: @@ -3464,306 +3477,306 @@ struct linux_binprm;
1: struct coredump_params;
1:
1: struct linux_binfmt {
1: - struct list_head lh;
1: - struct module *module;
1: - int (*load_binary)(struct linux_binprm *);
1: - int (*load_shlib)(struct file *);
1: - int (*core_dump)(struct coredump_params *);
1: - long unsigned int min_coredump;
1: + struct list_head lh;
1: + struct module *module;
1: + int (*load_binary)(struct linux_binprm *);
1: + int (*load_shlib)(struct file *);
1: + int (*core_dump)(struct coredump_params *);
1: + long unsigned int min_coredump;
1: };
1:
1: struct vm_fault {
1: - struct vm_area_struct *vma;
1: - unsigned int flags;
1: - gfp_t gfp_mask;
1: - long unsigned int pgoff;
1: - long unsigned int address;
1: - pmd_t *pmd;
1: - pud_t *pud;
1: - pte_t orig_pte;
1: - struct page *cow_page;
1: - struct page *page;
1: - pte_t *pte;
1: - spinlock_t *ptl;
1: - pgtable_t prealloc_pte;
1: + struct vm_area_struct *vma;
1: + unsigned int flags;
1: + gfp_t gfp_mask;
1: + long unsigned int pgoff;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pud_t *pud;
1: + pte_t orig_pte;
1: + struct page *cow_page;
1: + struct page *page;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + pgtable_t prealloc_pte;
1: };
1:
1: struct free_area {
1: - struct list_head free_list[6];
1: - long unsigned int nr_free;
1: + struct list_head free_list[6];
1: + long unsigned int nr_free;
1: };
1:
1: struct zone_padding {
1: - char x[0];
1: + char x[0];
1: };
1:
1: enum node_stat_item {
1: - NR_LRU_BASE = 0,
1: - NR_INACTIVE_ANON = 0,
1: - NR_ACTIVE_ANON = 1,
1: - NR_INACTIVE_FILE = 2,
1: - NR_ACTIVE_FILE = 3,
1: - NR_UNEVICTABLE = 4,
1: - NR_SLAB_RECLAIMABLE_B = 5,
1: - NR_SLAB_UNRECLAIMABLE_B = 6,
1: - NR_ISOLATED_ANON = 7,
1: - NR_ISOLATED_FILE = 8,
1: - WORKINGSET_NODES = 9,
1: - WORKINGSET_REFAULT_BASE = 10,
1: - WORKINGSET_REFAULT_ANON = 10,
1: - WORKINGSET_REFAULT_FILE = 11,
1: - WORKINGSET_ACTIVATE_BASE = 12,
1: - WORKINGSET_ACTIVATE_ANON = 12,
1: - WORKINGSET_ACTIVATE_FILE = 13,
1: - WORKINGSET_RESTORE_BASE = 14,
1: - WORKINGSET_RESTORE_ANON = 14,
1: - WORKINGSET_RESTORE_FILE = 15,
1: - WORKINGSET_NODERECLAIM = 16,
1: - NR_ANON_MAPPED = 17,
1: - NR_FILE_MAPPED = 18,
1: - NR_FILE_PAGES = 19,
1: - NR_FILE_DIRTY = 20,
1: - NR_WRITEBACK = 21,
1: - NR_WRITEBACK_TEMP = 22,
1: - NR_SHMEM = 23,
1: - NR_SHMEM_THPS = 24,
1: - NR_SHMEM_PMDMAPPED = 25,
1: - NR_FILE_THPS = 26,
1: - NR_FILE_PMDMAPPED = 27,
1: - NR_ANON_THPS = 28,
1: - NR_VMSCAN_WRITE = 29,
1: - NR_VMSCAN_IMMEDIATE = 30,
1: - NR_DIRTIED = 31,
1: - NR_WRITTEN = 32,
1: - NR_KERNEL_MISC_RECLAIMABLE = 33,
1: - NR_FOLL_PIN_ACQUIRED = 34,
1: - NR_FOLL_PIN_RELEASED = 35,
1: - NR_KERNEL_STACK_KB = 36,
1: - NR_VM_NODE_STAT_ITEMS = 37,
1: + NR_LRU_BASE = 0,
1: + NR_INACTIVE_ANON = 0,
1: + NR_ACTIVE_ANON = 1,
1: + NR_INACTIVE_FILE = 2,
1: + NR_ACTIVE_FILE = 3,
1: + NR_UNEVICTABLE = 4,
1: + NR_SLAB_RECLAIMABLE_B = 5,
1: + NR_SLAB_UNRECLAIMABLE_B = 6,
1: + NR_ISOLATED_ANON = 7,
1: + NR_ISOLATED_FILE = 8,
1: + WORKINGSET_NODES = 9,
1: + WORKINGSET_REFAULT_BASE = 10,
1: + WORKINGSET_REFAULT_ANON = 10,
1: + WORKINGSET_REFAULT_FILE = 11,
1: + WORKINGSET_ACTIVATE_BASE = 12,
1: + WORKINGSET_ACTIVATE_ANON = 12,
1: + WORKINGSET_ACTIVATE_FILE = 13,
1: + WORKINGSET_RESTORE_BASE = 14,
1: + WORKINGSET_RESTORE_ANON = 14,
1: + WORKINGSET_RESTORE_FILE = 15,
1: + WORKINGSET_NODERECLAIM = 16,
1: + NR_ANON_MAPPED = 17,
1: + NR_FILE_MAPPED = 18,
1: + NR_FILE_PAGES = 19,
1: + NR_FILE_DIRTY = 20,
1: + NR_WRITEBACK = 21,
1: + NR_WRITEBACK_TEMP = 22,
1: + NR_SHMEM = 23,
1: + NR_SHMEM_THPS = 24,
1: + NR_SHMEM_PMDMAPPED = 25,
1: + NR_FILE_THPS = 26,
1: + NR_FILE_PMDMAPPED = 27,
1: + NR_ANON_THPS = 28,
1: + NR_VMSCAN_WRITE = 29,
1: + NR_VMSCAN_IMMEDIATE = 30,
1: + NR_DIRTIED = 31,
1: + NR_WRITTEN = 32,
1: + NR_KERNEL_MISC_RECLAIMABLE = 33,
1: + NR_FOLL_PIN_ACQUIRED = 34,
1: + NR_FOLL_PIN_RELEASED = 35,
1: + NR_KERNEL_STACK_KB = 36,
1: + NR_VM_NODE_STAT_ITEMS = 37,
1: };
1:
1: enum lru_list {
1: - LRU_INACTIVE_ANON = 0,
1: - LRU_ACTIVE_ANON = 1,
1: - LRU_INACTIVE_FILE = 2,
1: - LRU_ACTIVE_FILE = 3,
1: - LRU_UNEVICTABLE = 4,
1: - NR_LRU_LISTS = 5,
1: + LRU_INACTIVE_ANON = 0,
1: + LRU_ACTIVE_ANON = 1,
1: + LRU_INACTIVE_FILE = 2,
1: + LRU_ACTIVE_FILE = 3,
1: + LRU_UNEVICTABLE = 4,
1: + NR_LRU_LISTS = 5,
1: };
1:
1: struct pglist_data;
1:
1: struct lruvec {
1: - struct list_head lists[5];
1: - long unsigned int anon_cost;
1: - long unsigned int file_cost;
1: - atomic_long_t nonresident_age;
1: - long unsigned int refaults[2];
1: - long unsigned int flags;
1: - struct pglist_data *pgdat;
1: + struct list_head lists[5];
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + atomic_long_t nonresident_age;
1: + long unsigned int refaults[2];
1: + long unsigned int flags;
1: + struct pglist_data *pgdat;
1: };
1:
1: struct per_cpu_pageset;
1:
1: struct zone {
1: - long unsigned int _watermark[3];
1: - long unsigned int watermark_boost;
1: - long unsigned int nr_reserved_highatomic;
1: - long int lowmem_reserve[4];
1: - int node;
1: - struct pglist_data *zone_pgdat;
1: - struct per_cpu_pageset *pageset;
1: - long unsigned int zone_start_pfn;
1: - atomic_long_t managed_pages;
1: - long unsigned int spanned_pages;
1: - long unsigned int present_pages;
1: - const char *name;
1: - long unsigned int nr_isolate_pageblock;
1: - seqlock_t span_seqlock;
1: - int initialized;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct zone_padding _pad1_;
1: - struct free_area free_area[11];
1: - long unsigned int flags;
1: - spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct zone_padding _pad2_;
1: - long unsigned int percpu_drift_mark;
1: - long unsigned int compact_cached_free_pfn;
1: - long unsigned int compact_cached_migrate_pfn[2];
1: - long unsigned int compact_init_migrate_pfn;
1: - long unsigned int compact_init_free_pfn;
1: - unsigned int compact_considered;
1: - unsigned int compact_defer_shift;
1: - int compact_order_failed;
1: - bool compact_blockskip_flush;
1: - bool contiguous;
1: - short: 16;
1: - struct zone_padding _pad3_;
1: - atomic_long_t vm_stat[12];
1: - atomic_long_t vm_numa_stat[6];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + long unsigned int _watermark[3];
1: + long unsigned int watermark_boost;
1: + long unsigned int nr_reserved_highatomic;
1: + long int lowmem_reserve[4];
1: + int node;
1: + struct pglist_data *zone_pgdat;
1: + struct per_cpu_pageset *pageset;
1: + long unsigned int zone_start_pfn;
1: + atomic_long_t managed_pages;
1: + long unsigned int spanned_pages;
1: + long unsigned int present_pages;
1: + const char *name;
1: + long unsigned int nr_isolate_pageblock;
1: + seqlock_t span_seqlock;
1: + int initialized;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct zone_padding _pad1_;
1: + struct free_area free_area[11];
1: + long unsigned int flags;
1: + spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct zone_padding _pad2_;
1: + long unsigned int percpu_drift_mark;
1: + long unsigned int compact_cached_free_pfn;
1: + long unsigned int compact_cached_migrate_pfn[2];
1: + long unsigned int compact_init_migrate_pfn;
1: + long unsigned int compact_init_free_pfn;
1: + unsigned int compact_considered;
1: + unsigned int compact_defer_shift;
1: + int compact_order_failed;
1: + bool compact_blockskip_flush;
1: + bool contiguous;
1: + short : 16;
1: + struct zone_padding _pad3_;
1: + atomic_long_t vm_stat[12];
1: + atomic_long_t vm_numa_stat[6];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct zoneref {
1: - struct zone *zone;
1: - int zone_idx;
1: + struct zone *zone;
1: + int zone_idx;
1: };
1:
1: struct zonelist {
1: - struct zoneref _zonerefs[513];
1: + struct zoneref _zonerefs[513];
1: };
1:
1: enum zone_type {
1: - ZONE_DMA = 0,
1: - ZONE_DMA32 = 1,
1: - ZONE_NORMAL = 2,
1: - ZONE_MOVABLE = 3,
1: - __MAX_NR_ZONES = 4,
1: + ZONE_DMA = 0,
1: + ZONE_DMA32 = 1,
1: + ZONE_NORMAL = 2,
1: + ZONE_MOVABLE = 3,
1: + __MAX_NR_ZONES = 4,
1: };
1:
1: struct per_cpu_nodestat;
1:
1: struct pglist_data {
1: - struct zone node_zones[4];
1: - struct zonelist node_zonelists[2];
1: - int nr_zones;
1: - spinlock_t node_size_lock;
1: - long unsigned int node_start_pfn;
1: - long unsigned int node_present_pages;
1: - long unsigned int node_spanned_pages;
1: - int node_id;
1: - wait_queue_head_t kswapd_wait;
1: - wait_queue_head_t pfmemalloc_wait;
1: - struct task_struct *kswapd;
1: - int kswapd_order;
1: - enum zone_type kswapd_highest_zoneidx;
1: - int kswapd_failures;
1: - int kcompactd_max_order;
1: - enum zone_type kcompactd_highest_zoneidx;
1: - wait_queue_head_t kcompactd_wait;
1: - struct task_struct *kcompactd;
1: - long unsigned int totalreserve_pages;
1: - long unsigned int min_unmapped_pages;
1: - long unsigned int min_slab_pages;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct zone_padding _pad1_;
1: - spinlock_t lru_lock;
1: - struct deferred_split deferred_split_queue;
1: - struct lruvec __lruvec;
1: - long unsigned int flags;
1: - long: 64;
1: - struct zone_padding _pad2_;
1: - struct per_cpu_nodestat *per_cpu_nodestats;
1: - atomic_long_t vm_stat[37];
1: - long: 64;
1: - long: 64;
1: + struct zone node_zones[4];
1: + struct zonelist node_zonelists[2];
1: + int nr_zones;
1: + spinlock_t node_size_lock;
1: + long unsigned int node_start_pfn;
1: + long unsigned int node_present_pages;
1: + long unsigned int node_spanned_pages;
1: + int node_id;
1: + wait_queue_head_t kswapd_wait;
1: + wait_queue_head_t pfmemalloc_wait;
1: + struct task_struct *kswapd;
1: + int kswapd_order;
1: + enum zone_type kswapd_highest_zoneidx;
1: + int kswapd_failures;
1: + int kcompactd_max_order;
1: + enum zone_type kcompactd_highest_zoneidx;
1: + wait_queue_head_t kcompactd_wait;
1: + struct task_struct *kcompactd;
1: + long unsigned int totalreserve_pages;
1: + long unsigned int min_unmapped_pages;
1: + long unsigned int min_slab_pages;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct zone_padding _pad1_;
1: + spinlock_t lru_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct lruvec __lruvec;
1: + long unsigned int flags;
1: + long : 64;
1: + struct zone_padding _pad2_;
1: + struct per_cpu_nodestat *per_cpu_nodestats;
1: + atomic_long_t vm_stat[37];
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef unsigned int isolate_mode_t;
1:
1: struct per_cpu_pages {
1: - int count;
1: - int high;
1: - int batch;
1: - struct list_head lists[3];
1: + int count;
1: + int high;
1: + int batch;
1: + struct list_head lists[3];
1: };
1:
1: struct per_cpu_pageset {
1: - struct per_cpu_pages pcp;
1: - s8 expire;
1: - u16 vm_numa_stat_diff[6];
1: - s8 stat_threshold;
1: - s8 vm_stat_diff[12];
1: + struct per_cpu_pages pcp;
1: + s8 expire;
1: + u16 vm_numa_stat_diff[6];
1: + s8 stat_threshold;
1: + s8 vm_stat_diff[12];
1: };
1:
1: struct per_cpu_nodestat {
1: - s8 stat_threshold;
1: - s8 vm_node_stat_diff[37];
1: + s8 stat_threshold;
1: + s8 vm_node_stat_diff[37];
1: };
1:
1: struct rcu_segcblist {
1: - struct callback_head *head;
1: - struct callback_head **tails[4];
1: - long unsigned int gp_seq[4];
1: - long int len;
1: - u8 enabled;
1: - u8 offloaded;
1: + struct callback_head *head;
1: + struct callback_head **tails[4];
1: + long unsigned int gp_seq[4];
1: + long int len;
1: + u8 enabled;
1: + u8 offloaded;
1: };
1:
1: struct srcu_node;
1:
1: struct srcu_data {
1: - long unsigned int srcu_lock_count[2];
1: - long unsigned int srcu_unlock_count[2];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t lock;
1: - struct rcu_segcblist srcu_cblist;
1: - long unsigned int srcu_gp_seq_needed;
1: - long unsigned int srcu_gp_seq_needed_exp;
1: - bool srcu_cblist_invoking;
1: - struct timer_list delay_work;
1: - struct work_struct work;
1: - struct callback_head srcu_barrier_head;
1: - struct srcu_node *mynode;
1: - long unsigned int grpmask;
1: - int cpu;
1: - struct srcu_struct *ssp;
1: - long: 64;
1: - long: 64;
1: + long unsigned int srcu_lock_count[2];
1: + long unsigned int srcu_unlock_count[2];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t lock;
1: + struct rcu_segcblist srcu_cblist;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + bool srcu_cblist_invoking;
1: + struct timer_list delay_work;
1: + struct work_struct work;
1: + struct callback_head srcu_barrier_head;
1: + struct srcu_node *mynode;
1: + long unsigned int grpmask;
1: + int cpu;
1: + struct srcu_struct *ssp;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct srcu_node {
1: - spinlock_t lock;
1: - long unsigned int srcu_have_cbs[4];
1: - long unsigned int srcu_data_have_cbs[4];
1: - long unsigned int srcu_gp_seq_needed_exp;
1: - struct srcu_node *srcu_parent;
1: - int grplo;
1: - int grphi;
1: + spinlock_t lock;
1: + long unsigned int srcu_have_cbs[4];
1: + long unsigned int srcu_data_have_cbs[4];
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + struct srcu_node *srcu_parent;
1: + int grplo;
1: + int grphi;
1: };
1:
1: struct srcu_struct {
1: - struct srcu_node node[9];
1: - struct srcu_node *level[3];
1: - struct mutex srcu_cb_mutex;
1: - spinlock_t lock;
1: - struct mutex srcu_gp_mutex;
1: - unsigned int srcu_idx;
1: - long unsigned int srcu_gp_seq;
1: - long unsigned int srcu_gp_seq_needed;
1: - long unsigned int srcu_gp_seq_needed_exp;
1: - long unsigned int srcu_last_gp_end;
1: - struct srcu_data *sda;
1: - long unsigned int srcu_barrier_seq;
1: - struct mutex srcu_barrier_mutex;
1: - struct completion srcu_barrier_completion;
1: - atomic_t srcu_barrier_cpu_cnt;
1: - struct delayed_work work;
1: + struct srcu_node node[9];
1: + struct srcu_node *level[3];
1: + struct mutex srcu_cb_mutex;
1: + spinlock_t lock;
1: + struct mutex srcu_gp_mutex;
1: + unsigned int srcu_idx;
1: + long unsigned int srcu_gp_seq;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + long unsigned int srcu_last_gp_end;
1: + struct srcu_data *sda;
1: + long unsigned int srcu_barrier_seq;
1: + struct mutex srcu_barrier_mutex;
1: + struct completion srcu_barrier_completion;
1: + atomic_t srcu_barrier_cpu_cnt;
1: + struct delayed_work work;
1: };
1:
1: typedef int proc_handler(struct ctl_table *, int, void *, size_t *, loff_t *);
1: @@ -3771,38 +3784,39 @@ typedef int proc_handler(struct ctl_table *, int, void *, size_t *, loff_t *);
1: struct ctl_table_poll;
1:
1: struct ctl_table {
1: - const char *procname;
1: - void *data;
1: - int maxlen;
1: - umode_t mode;
1: - struct ctl_table *child;
1: - proc_handler *proc_handler;
1: - struct ctl_table_poll *poll;
1: - void *extra1;
1: - void *extra2;
1: + const char *procname;
1: + void *data;
1: + int maxlen;
1: + umode_t mode;
1: + struct ctl_table *child;
1: + proc_handler *proc_handler;
1: + struct ctl_table_poll *poll;
1: + void *extra1;
1: + void *extra2;
1: };
1:
1: struct ctl_table_poll {
1: - atomic_t event;
1: - wait_queue_head_t wait;
1: + atomic_t event;
1: + wait_queue_head_t wait;
1: };
1:
1: struct ctl_node {
1: - struct rb_node node;
1: - struct ctl_table_header *header;
1: + struct rb_node node;
1: + struct ctl_table_header *header;
1: };
1:
1: struct ctl_table_root {
1: - struct ctl_table_set default_set;
1: - struct ctl_table_set * (*lookup)(struct ctl_table_root *);
1: - void (*set_ownership)(struct ctl_table_header *, struct ctl_table *, kuid_t *, kgid_t *);
1: - int (*permissions)(struct ctl_table_header *, struct ctl_table *);
1: + struct ctl_table_set default_set;
1: + struct ctl_table_set *(*lookup)(struct ctl_table_root *);
1: + void (*set_ownership)(struct ctl_table_header *, struct ctl_table *, kuid_t *,
1: + kgid_t *);
1: + int (*permissions)(struct ctl_table_header *, struct ctl_table *);
1: };
1:
1: enum umh_disable_depth {
1: - UMH_ENABLED = 0,
1: - UMH_FREEZING = 1,
1: - UMH_DISABLED = 2,
1: + UMH_ENABLED = 0,
1: + UMH_FREEZING = 1,
1: + UMH_DISABLED = 2,
1: };
1:
1: typedef __u64 Elf64_Addr;
1: @@ -3814,72 +3828,72 @@ typedef __u32 Elf64_Word;
1: typedef __u64 Elf64_Xword;
1:
1: struct elf64_sym {
1: - Elf64_Word st_name;
1: - unsigned char st_info;
1: - unsigned char st_other;
1: - Elf64_Half st_shndx;
1: - Elf64_Addr st_value;
1: - Elf64_Xword st_size;
1: + Elf64_Word st_name;
1: + unsigned char st_info;
1: + unsigned char st_other;
1: + Elf64_Half st_shndx;
1: + Elf64_Addr st_value;
1: + Elf64_Xword st_size;
1: };
1:
1: struct hlist_bl_node;
1:
1: struct hlist_bl_head {
1: - struct hlist_bl_node *first;
1: + struct hlist_bl_node *first;
1: };
1:
1: struct hlist_bl_node {
1: - struct hlist_bl_node *next;
1: - struct hlist_bl_node **pprev;
1: + struct hlist_bl_node *next;
1: + struct hlist_bl_node **pprev;
1: };
1:
1: struct lockref {
1: - union {
1: - __u64 lock_count;
1: - struct {
1: - spinlock_t lock;
1: - int count;
1: - };
1: - };
1: + union {
1: + __u64 lock_count;
1: + struct {
1: + spinlock_t lock;
1: + int count;
1: + };
1: + };
1: };
1:
1: struct qstr {
1: - union {
1: - struct {
1: - u32 hash;
1: - u32 len;
1: - };
1: - u64 hash_len;
1: - };
1: - const unsigned char *name;
1: + union {
1: + struct {
1: + u32 hash;
1: + u32 len;
1: + };
1: + u64 hash_len;
1: + };
1: + const unsigned char *name;
1: };
1:
1: struct dentry_operations;
1:
1: struct dentry {
1: - unsigned int d_flags;
1: - seqcount_spinlock_t d_seq;
1: - struct hlist_bl_node d_hash;
1: - struct dentry *d_parent;
1: - struct qstr d_name;
1: - struct inode *d_inode;
1: - unsigned char d_iname[32];
1: - struct lockref d_lockref;
1: - const struct dentry_operations *d_op;
1: - struct super_block *d_sb;
1: - long unsigned int d_time;
1: - void *d_fsdata;
1: - union {
1: - struct list_head d_lru;
1: - wait_queue_head_t *d_wait;
1: - };
1: - struct list_head d_child;
1: - struct list_head d_subdirs;
1: - union {
1: - struct hlist_node d_alias;
1: - struct hlist_bl_node d_in_lookup_hash;
1: - struct callback_head d_rcu;
1: - } d_u;
1: + unsigned int d_flags;
1: + seqcount_spinlock_t d_seq;
1: + struct hlist_bl_node d_hash;
1: + struct dentry *d_parent;
1: + struct qstr d_name;
1: + struct inode *d_inode;
1: + unsigned char d_iname[32];
1: + struct lockref d_lockref;
1: + const struct dentry_operations *d_op;
1: + struct super_block *d_sb;
1: + long unsigned int d_time;
1: + void *d_fsdata;
1: + union {
1: + struct list_head d_lru;
1: + wait_queue_head_t *d_wait;
1: + };
1: + struct list_head d_child;
1: + struct list_head d_subdirs;
1: + union {
1: + struct hlist_node d_alias;
1: + struct hlist_bl_node d_in_lookup_hash;
1: + struct callback_head d_rcu;
1: + } d_u;
1: };
1:
1: struct posix_acl;
1: @@ -3899,94 +3913,95 @@ struct fscrypt_info;
1: struct fsverity_info;
1:
1: struct inode {
1: - umode_t i_mode;
1: - short unsigned int i_opflags;
1: - kuid_t i_uid;
1: - kgid_t i_gid;
1: - unsigned int i_flags;
1: - struct posix_acl *i_acl;
1: - struct posix_acl *i_default_acl;
1: - const struct inode_operations *i_op;
1: - struct super_block *i_sb;
1: - struct address_space *i_mapping;
1: - void *i_security;
1: - long unsigned int i_ino;
1: - union {
1: - const unsigned int i_nlink;
1: - unsigned int __i_nlink;
1: - };
1: - dev_t i_rdev;
1: - loff_t i_size;
1: - struct timespec64 i_atime;
1: - struct timespec64 i_mtime;
1: - struct timespec64 i_ctime;
1: - spinlock_t i_lock;
1: - short unsigned int i_bytes;
1: - u8 i_blkbits;
1: - u8 i_write_hint;
1: - blkcnt_t i_blocks;
1: - long unsigned int i_state;
1: - struct rw_semaphore i_rwsem;
1: - long unsigned int dirtied_when;
1: - long unsigned int dirtied_time_when;
1: - struct hlist_node i_hash;
1: - struct list_head i_io_list;
1: - struct bdi_writeback *i_wb;
1: - int i_wb_frn_winner;
1: - u16 i_wb_frn_avg_time;
1: - u16 i_wb_frn_history;
1: - struct list_head i_lru;
1: - struct list_head i_sb_list;
1: - struct list_head i_wb_list;
1: - union {
1: - struct hlist_head i_dentry;
1: - struct callback_head i_rcu;
1: - };
1: - atomic64_t i_version;
1: - atomic64_t i_sequence;
1: - atomic_t i_count;
1: - atomic_t i_dio_count;
1: - atomic_t i_writecount;
1: - atomic_t i_readcount;
1: - union {
1: - const struct file_operations *i_fop;
1: - void (*free_inode)(struct inode *);
1: - };
1: - struct file_lock_context *i_flctx;
1: - struct address_space i_data;
1: - struct list_head i_devices;
1: - union {
1: - struct pipe_inode_info *i_pipe;
1: - struct block_device *i_bdev;
1: - struct cdev *i_cdev;
1: - char *i_link;
1: - unsigned int i_dir_seq;
1: - };
1: - __u32 i_generation;
1: - __u32 i_fsnotify_mask;
1: - struct fsnotify_mark_connector *i_fsnotify_marks;
1: - struct fscrypt_info *i_crypt_info;
1: - struct fsverity_info *i_verity_info;
1: - void *i_private;
1: + umode_t i_mode;
1: + short unsigned int i_opflags;
1: + kuid_t i_uid;
1: + kgid_t i_gid;
1: + unsigned int i_flags;
1: + struct posix_acl *i_acl;
1: + struct posix_acl *i_default_acl;
1: + const struct inode_operations *i_op;
1: + struct super_block *i_sb;
1: + struct address_space *i_mapping;
1: + void *i_security;
1: + long unsigned int i_ino;
1: + union {
1: + const unsigned int i_nlink;
1: + unsigned int __i_nlink;
1: + };
1: + dev_t i_rdev;
1: + loff_t i_size;
1: + struct timespec64 i_atime;
1: + struct timespec64 i_mtime;
1: + struct timespec64 i_ctime;
1: + spinlock_t i_lock;
1: + short unsigned int i_bytes;
1: + u8 i_blkbits;
1: + u8 i_write_hint;
1: + blkcnt_t i_blocks;
1: + long unsigned int i_state;
1: + struct rw_semaphore i_rwsem;
1: + long unsigned int dirtied_when;
1: + long unsigned int dirtied_time_when;
1: + struct hlist_node i_hash;
1: + struct list_head i_io_list;
1: + struct bdi_writeback *i_wb;
1: + int i_wb_frn_winner;
1: + u16 i_wb_frn_avg_time;
1: + u16 i_wb_frn_history;
1: + struct list_head i_lru;
1: + struct list_head i_sb_list;
1: + struct list_head i_wb_list;
1: + union {
1: + struct hlist_head i_dentry;
1: + struct callback_head i_rcu;
1: + };
1: + atomic64_t i_version;
1: + atomic64_t i_sequence;
1: + atomic_t i_count;
1: + atomic_t i_dio_count;
1: + atomic_t i_writecount;
1: + atomic_t i_readcount;
1: + union {
1: + const struct file_operations *i_fop;
1: + void (*free_inode)(struct inode *);
1: + };
1: + struct file_lock_context *i_flctx;
1: + struct address_space i_data;
1: + struct list_head i_devices;
1: + union {
1: + struct pipe_inode_info *i_pipe;
1: + struct block_device *i_bdev;
1: + struct cdev *i_cdev;
1: + char *i_link;
1: + unsigned int i_dir_seq;
1: + };
1: + __u32 i_generation;
1: + __u32 i_fsnotify_mask;
1: + struct fsnotify_mark_connector *i_fsnotify_marks;
1: + struct fscrypt_info *i_crypt_info;
1: + struct fsverity_info *i_verity_info;
1: + void *i_private;
1: };
1:
1: struct dentry_operations {
1: - int (*d_revalidate)(struct dentry *, unsigned int);
1: - int (*d_weak_revalidate)(struct dentry *, unsigned int);
1: - int (*d_hash)(const struct dentry *, struct qstr *);
1: - int (*d_compare)(const struct dentry *, unsigned int, const char *, const struct qstr *);
1: - int (*d_delete)(const struct dentry *);
1: - int (*d_init)(struct dentry *);
1: - void (*d_release)(struct dentry *);
1: - void (*d_prune)(struct dentry *);
1: - void (*d_iput)(struct dentry *, struct inode *);
1: - char * (*d_dname)(struct dentry *, char *, int);
1: - struct vfsmount * (*d_automount)(struct path *);
1: - int (*d_manage)(const struct path *, bool);
1: - struct dentry * (*d_real)(struct dentry *, const struct inode *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + int (*d_revalidate)(struct dentry *, unsigned int);
1: + int (*d_weak_revalidate)(struct dentry *, unsigned int);
1: + int (*d_hash)(const struct dentry *, struct qstr *);
1: + int (*d_compare)(const struct dentry *, unsigned int, const char *,
1: + const struct qstr *);
1: + int (*d_delete)(const struct dentry *);
1: + int (*d_init)(struct dentry *);
1: + void (*d_release)(struct dentry *);
1: + void (*d_prune)(struct dentry *);
1: + void (*d_iput)(struct dentry *, struct inode *);
1: + char *(*d_dname)(struct dentry *, char *, int);
1: + struct vfsmount *(*d_automount)(struct path *);
1: + int (*d_manage)(const struct path *, bool);
1: + struct dentry *(*d_real)(struct dentry *, const struct inode *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct mtd_info;
1: @@ -3996,76 +4011,77 @@ typedef long long int qsize_t;
1: struct quota_format_type;
1:
1: struct mem_dqinfo {
1: - struct quota_format_type *dqi_format;
1: - int dqi_fmt_id;
1: - struct list_head dqi_dirty_list;
1: - long unsigned int dqi_flags;
1: - unsigned int dqi_bgrace;
1: - unsigned int dqi_igrace;
1: - qsize_t dqi_max_spc_limit;
1: - qsize_t dqi_max_ino_limit;
1: - void *dqi_priv;
1: + struct quota_format_type *dqi_format;
1: + int dqi_fmt_id;
1: + struct list_head dqi_dirty_list;
1: + long unsigned int dqi_flags;
1: + unsigned int dqi_bgrace;
1: + unsigned int dqi_igrace;
1: + qsize_t dqi_max_spc_limit;
1: + qsize_t dqi_max_ino_limit;
1: + void *dqi_priv;
1: };
1:
1: struct quota_format_ops;
1:
1: struct quota_info {
1: - unsigned int flags;
1: - struct rw_semaphore dqio_sem;
1: - struct inode *files[3];
1: - struct mem_dqinfo info[3];
1: - const struct quota_format_ops *ops[3];
1: + unsigned int flags;
1: + struct rw_semaphore dqio_sem;
1: + struct inode *files[3];
1: + struct mem_dqinfo info[3];
1: + const struct quota_format_ops *ops[3];
1: };
1:
1: struct rcu_sync {
1: - int gp_state;
1: - int gp_count;
1: - wait_queue_head_t gp_wait;
1: - struct callback_head cb_head;
1: + int gp_state;
1: + int gp_count;
1: + wait_queue_head_t gp_wait;
1: + struct callback_head cb_head;
1: };
1:
1: struct rcuwait {
1: - struct task_struct *task;
1: + struct task_struct *task;
1: };
1:
1: struct percpu_rw_semaphore {
1: - struct rcu_sync rss;
1: - unsigned int *read_count;
1: - struct rcuwait writer;
1: - wait_queue_head_t waiters;
1: - atomic_t block;
1: + struct rcu_sync rss;
1: + unsigned int *read_count;
1: + struct rcuwait writer;
1: + wait_queue_head_t waiters;
1: + atomic_t block;
1: };
1:
1: struct sb_writers {
1: - int frozen;
1: - wait_queue_head_t wait_unfrozen;
1: - struct percpu_rw_semaphore rw_sem[3];
1: + int frozen;
1: + wait_queue_head_t wait_unfrozen;
1: + struct percpu_rw_semaphore rw_sem[3];
1: };
1:
1: typedef struct {
1: - __u8 b[16];
1: + __u8 b[16];
1: } uuid_t;
1:
1: struct shrink_control;
1:
1: struct shrinker {
1: - long unsigned int (*count_objects)(struct shrinker *, struct shrink_control *);
1: - long unsigned int (*scan_objects)(struct shrinker *, struct shrink_control *);
1: - long int batch;
1: - int seeks;
1: - unsigned int flags;
1: - struct list_head list;
1: - int id;
1: - atomic_long_t *nr_deferred;
1: + long unsigned int (*count_objects)(struct shrinker *,
1: + struct shrink_control *);
1: + long unsigned int (*scan_objects)(struct shrinker *, struct shrink_control *);
1: + long int batch;
1: + int seeks;
1: + unsigned int flags;
1: + struct list_head list;
1: + int id;
1: + atomic_long_t *nr_deferred;
1: };
1:
1: struct list_lru_node;
1:
1: struct list_lru {
1: - struct list_lru_node *node;
1: - struct list_head list;
1: - int shrinker_id;
1: - bool memcg_aware;
1: + struct list_lru_node *node;
1: + struct list_head list;
1: + int shrinker_id;
1: + bool memcg_aware;
1: };
1:
1: struct super_operations;
1: @@ -4085,161 +4101,161 @@ struct fsverity_operations;
1: struct unicode_map;
1:
1: struct super_block {
1: - struct list_head s_list;
1: - dev_t s_dev;
1: - unsigned char s_blocksize_bits;
1: - long unsigned int s_blocksize;
1: - loff_t s_maxbytes;
1: - struct file_system_type *s_type;
1: - const struct super_operations *s_op;
1: - const struct dquot_operations *dq_op;
1: - const struct quotactl_ops *s_qcop;
1: - const struct export_operations *s_export_op;
1: - long unsigned int s_flags;
1: - long unsigned int s_iflags;
1: - long unsigned int s_magic;
1: - struct dentry *s_root;
1: - struct rw_semaphore s_umount;
1: - int s_count;
1: - atomic_t s_active;
1: - void *s_security;
1: - const struct xattr_handler **s_xattr;
1: - const struct fscrypt_operations *s_cop;
1: - struct key *s_master_keys;
1: - const struct fsverity_operations *s_vop;
1: - struct unicode_map *s_encoding;
1: - __u16 s_encoding_flags;
1: - struct hlist_bl_head s_roots;
1: - struct list_head s_mounts;
1: - struct block_device *s_bdev;
1: - struct backing_dev_info *s_bdi;
1: - struct mtd_info *s_mtd;
1: - struct hlist_node s_instances;
1: - unsigned int s_quota_types;
1: - struct quota_info s_dquot;
1: - struct sb_writers s_writers;
1: - void *s_fs_info;
1: - u32 s_time_gran;
1: - time64_t s_time_min;
1: - time64_t s_time_max;
1: - __u32 s_fsnotify_mask;
1: - struct fsnotify_mark_connector *s_fsnotify_marks;
1: - char s_id[32];
1: - uuid_t s_uuid;
1: - unsigned int s_max_links;
1: - fmode_t s_mode;
1: - struct mutex s_vfs_rename_mutex;
1: - const char *s_subtype;
1: - const struct dentry_operations *s_d_op;
1: - int cleancache_poolid;
1: - struct shrinker s_shrink;
1: - atomic_long_t s_remove_count;
1: - atomic_long_t s_fsnotify_inode_refs;
1: - int s_readonly_remount;
1: - errseq_t s_wb_err;
1: - struct workqueue_struct *s_dio_done_wq;
1: - struct hlist_head s_pins;
1: - struct user_namespace *s_user_ns;
1: - struct list_lru s_dentry_lru;
1: - struct list_lru s_inode_lru;
1: - struct callback_head rcu;
1: - struct work_struct destroy_work;
1: - struct mutex s_sync_lock;
1: - int s_stack_depth;
1: - int: 32;
1: - spinlock_t s_inode_list_lock;
1: - struct list_head s_inodes;
1: - spinlock_t s_inode_wblist_lock;
1: - struct list_head s_inodes_wb;
1: - long: 64;
1: - long: 64;
1: + struct list_head s_list;
1: + dev_t s_dev;
1: + unsigned char s_blocksize_bits;
1: + long unsigned int s_blocksize;
1: + loff_t s_maxbytes;
1: + struct file_system_type *s_type;
1: + const struct super_operations *s_op;
1: + const struct dquot_operations *dq_op;
1: + const struct quotactl_ops *s_qcop;
1: + const struct export_operations *s_export_op;
1: + long unsigned int s_flags;
1: + long unsigned int s_iflags;
1: + long unsigned int s_magic;
1: + struct dentry *s_root;
1: + struct rw_semaphore s_umount;
1: + int s_count;
1: + atomic_t s_active;
1: + void *s_security;
1: + const struct xattr_handler **s_xattr;
1: + const struct fscrypt_operations *s_cop;
1: + struct key *s_master_keys;
1: + const struct fsverity_operations *s_vop;
1: + struct unicode_map *s_encoding;
1: + __u16 s_encoding_flags;
1: + struct hlist_bl_head s_roots;
1: + struct list_head s_mounts;
1: + struct block_device *s_bdev;
1: + struct backing_dev_info *s_bdi;
1: + struct mtd_info *s_mtd;
1: + struct hlist_node s_instances;
1: + unsigned int s_quota_types;
1: + struct quota_info s_dquot;
1: + struct sb_writers s_writers;
1: + void *s_fs_info;
1: + u32 s_time_gran;
1: + time64_t s_time_min;
1: + time64_t s_time_max;
1: + __u32 s_fsnotify_mask;
1: + struct fsnotify_mark_connector *s_fsnotify_marks;
1: + char s_id[32];
1: + uuid_t s_uuid;
1: + unsigned int s_max_links;
1: + fmode_t s_mode;
1: + struct mutex s_vfs_rename_mutex;
1: + const char *s_subtype;
1: + const struct dentry_operations *s_d_op;
1: + int cleancache_poolid;
1: + struct shrinker s_shrink;
1: + atomic_long_t s_remove_count;
1: + atomic_long_t s_fsnotify_inode_refs;
1: + int s_readonly_remount;
1: + errseq_t s_wb_err;
1: + struct workqueue_struct *s_dio_done_wq;
1: + struct hlist_head s_pins;
1: + struct user_namespace *s_user_ns;
1: + struct list_lru s_dentry_lru;
1: + struct list_lru s_inode_lru;
1: + struct callback_head rcu;
1: + struct work_struct destroy_work;
1: + struct mutex s_sync_lock;
1: + int s_stack_depth;
1: + int : 32;
1: + spinlock_t s_inode_list_lock;
1: + struct list_head s_inodes;
1: + spinlock_t s_inode_wblist_lock;
1: + struct list_head s_inodes_wb;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct shrink_control {
1: - gfp_t gfp_mask;
1: - int nid;
1: - long unsigned int nr_to_scan;
1: - long unsigned int nr_scanned;
1: - struct mem_cgroup *memcg;
1: + gfp_t gfp_mask;
1: + int nid;
1: + long unsigned int nr_to_scan;
1: + long unsigned int nr_scanned;
1: + struct mem_cgroup *memcg;
1: };
1:
1: struct list_lru_one {
1: - struct list_head list;
1: - long int nr_items;
1: + struct list_head list;
1: + long int nr_items;
1: };
1:
1: struct list_lru_memcg {
1: - struct callback_head rcu;
1: - struct list_lru_one *lru[0];
1: + struct callback_head rcu;
1: + struct list_lru_one *lru[0];
1: };
1:
1: struct list_lru_node {
1: - spinlock_t lock;
1: - struct list_lru_one lru;
1: - struct list_lru_memcg *memcg_lrus;
1: - long int nr_items;
1: - long: 64;
1: - long: 64;
1: + spinlock_t lock;
1: + struct list_lru_one lru;
1: + struct list_lru_memcg *memcg_lrus;
1: + long int nr_items;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum migrate_mode {
1: - MIGRATE_ASYNC = 0,
1: - MIGRATE_SYNC_LIGHT = 1,
1: - MIGRATE_SYNC = 2,
1: - MIGRATE_SYNC_NO_COPY = 3,
1: + MIGRATE_ASYNC = 0,
1: + MIGRATE_SYNC_LIGHT = 1,
1: + MIGRATE_SYNC = 2,
1: + MIGRATE_SYNC_NO_COPY = 3,
1: };
1:
1: struct exception_table_entry {
1: - int insn;
1: - int fixup;
1: + int insn;
1: + int fixup;
1: };
1:
1: struct cgroup_base_stat {
1: - struct task_cputime cputime;
1: + struct task_cputime cputime;
1: };
1:
1: struct psi_group_cpu;
1:
1: struct psi_group {
1: - struct mutex avgs_lock;
1: - struct psi_group_cpu *pcpu;
1: - u64 avg_total[5];
1: - u64 avg_last_update;
1: - u64 avg_next_update;
1: - struct delayed_work avgs_work;
1: - u64 total[10];
1: - long unsigned int avg[15];
1: - struct task_struct *poll_task;
1: - struct timer_list poll_timer;
1: - wait_queue_head_t poll_wait;
1: - atomic_t poll_wakeup;
1: - struct mutex trigger_lock;
1: - struct list_head triggers;
1: - u32 nr_triggers[5];
1: - u32 poll_states;
1: - u64 poll_min_period;
1: - u64 polling_total[5];
1: - u64 polling_next_update;
1: - u64 polling_until;
1: + struct mutex avgs_lock;
1: + struct psi_group_cpu *pcpu;
1: + u64 avg_total[5];
1: + u64 avg_last_update;
1: + u64 avg_next_update;
1: + struct delayed_work avgs_work;
1: + u64 total[10];
1: + long unsigned int avg[15];
1: + struct task_struct *poll_task;
1: + struct timer_list poll_timer;
1: + wait_queue_head_t poll_wait;
1: + atomic_t poll_wakeup;
1: + struct mutex trigger_lock;
1: + struct list_head triggers;
1: + u32 nr_triggers[5];
1: + u32 poll_states;
1: + u64 poll_min_period;
1: + u64 polling_total[5];
1: + u64 polling_next_update;
1: + u64 polling_until;
1: };
1:
1: struct bpf_prog_array;
1:
1: struct cgroup_bpf {
1: - struct bpf_prog_array *effective[38];
1: - struct list_head progs[38];
1: - u32 flags[38];
1: - struct list_head storages;
1: - struct bpf_prog_array *inactive;
1: - struct percpu_ref refcnt;
1: - struct work_struct release_work;
1: + struct bpf_prog_array *effective[38];
1: + struct list_head progs[38];
1: + u32 flags[38];
1: + struct list_head storages;
1: + struct bpf_prog_array *inactive;
1: + struct percpu_ref refcnt;
1: + struct work_struct release_work;
1: };
1:
1: struct cgroup_freezer_state {
1: - bool freeze;
1: - int e_freeze;
1: - int nr_frozen_descendants;
1: - int nr_frozen_tasks;
1: + bool freeze;
1: + int e_freeze;
1: + int nr_frozen_descendants;
1: + int nr_frozen_tasks;
1: };
1:
1: struct cgroup_root;
1: @@ -4247,50 +4263,50 @@ struct cgroup_root;
1: struct cgroup_rstat_cpu;
1:
1: struct cgroup {
1: - struct cgroup_subsys_state self;
1: - long unsigned int flags;
1: - int level;
1: - int max_depth;
1: - int nr_descendants;
1: - int nr_dying_descendants;
1: - int max_descendants;
1: - int nr_populated_csets;
1: - int nr_populated_domain_children;
1: - int nr_populated_threaded_children;
1: - int nr_threaded_children;
1: - struct kernfs_node *kn;
1: - struct cgroup_file procs_file;
1: - struct cgroup_file events_file;
1: - u16 subtree_control;
1: - u16 subtree_ss_mask;
1: - u16 old_subtree_control;
1: - u16 old_subtree_ss_mask;
1: - struct cgroup_subsys_state *subsys[12];
1: - struct cgroup_root *root;
1: - struct list_head cset_links;
1: - struct list_head e_csets[12];
1: - struct cgroup *dom_cgrp;
1: - struct cgroup *old_dom_cgrp;
1: - struct cgroup_rstat_cpu *rstat_cpu;
1: - struct list_head rstat_css_list;
1: - struct cgroup_base_stat last_bstat;
1: - struct cgroup_base_stat bstat;
1: - struct prev_cputime prev_cputime;
1: - struct list_head pidlists;
1: - struct mutex pidlist_mutex;
1: - wait_queue_head_t offline_waitq;
1: - struct work_struct release_agent_work;
1: - struct psi_group psi;
1: - struct cgroup_bpf bpf;
1: - atomic_t congestion_count;
1: - struct cgroup_freezer_state freezer;
1: - u64 ancestor_ids[0];
1: + struct cgroup_subsys_state self;
1: + long unsigned int flags;
1: + int level;
1: + int max_depth;
1: + int nr_descendants;
1: + int nr_dying_descendants;
1: + int max_descendants;
1: + int nr_populated_csets;
1: + int nr_populated_domain_children;
1: + int nr_populated_threaded_children;
1: + int nr_threaded_children;
1: + struct kernfs_node *kn;
1: + struct cgroup_file procs_file;
1: + struct cgroup_file events_file;
1: + u16 subtree_control;
1: + u16 subtree_ss_mask;
1: + u16 old_subtree_control;
1: + u16 old_subtree_ss_mask;
1: + struct cgroup_subsys_state *subsys[12];
1: + struct cgroup_root *root;
1: + struct list_head cset_links;
1: + struct list_head e_csets[12];
1: + struct cgroup *dom_cgrp;
1: + struct cgroup *old_dom_cgrp;
1: + struct cgroup_rstat_cpu *rstat_cpu;
1: + struct list_head rstat_css_list;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup_base_stat bstat;
1: + struct prev_cputime prev_cputime;
1: + struct list_head pidlists;
1: + struct mutex pidlist_mutex;
1: + wait_queue_head_t offline_waitq;
1: + struct work_struct release_agent_work;
1: + struct psi_group psi;
1: + struct cgroup_bpf bpf;
1: + atomic_t congestion_count;
1: + struct cgroup_freezer_state freezer;
1: + u64 ancestor_ids[0];
1: };
1:
1: struct key_tag {
1: - struct callback_head rcu;
1: - refcount_t usage;
1: - bool removed;
1: + struct callback_head rcu;
1: + refcount_t usage;
1: + bool removed;
1: };
1:
1: typedef int (*request_key_actor_t)(struct key *, void *);
1: @@ -4304,286 +4320,290 @@ struct kernel_pkey_params;
1: struct kernel_pkey_query;
1:
1: struct key_type {
1: - const char *name;
1: - size_t def_datalen;
1: - unsigned int flags;
1: - int (*vet_description)(const char *);
1: - int (*preparse)(struct key_preparsed_payload *);
1: - void (*free_preparse)(struct key_preparsed_payload *);
1: - int (*instantiate)(struct key *, struct key_preparsed_payload *);
1: - int (*update)(struct key *, struct key_preparsed_payload *);
1: - int (*match_preparse)(struct key_match_data *);
1: - void (*match_free)(struct key_match_data *);
1: - void (*revoke)(struct key *);
1: - void (*destroy)(struct key *);
1: - void (*describe)(const struct key *, struct seq_file *);
1: - long int (*read)(const struct key *, char *, size_t);
1: - request_key_actor_t request_key;
1: - struct key_restriction * (*lookup_restriction)(const char *);
1: - int (*asym_query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: - int (*asym_eds_op)(struct kernel_pkey_params *, const void *, void *);
1: - int (*asym_verify_signature)(struct kernel_pkey_params *, const void *, const void *);
1: - struct list_head link;
1: - struct lock_class_key lock_class;
1: -};
1: -
1: -typedef int (*key_restrict_link_func_t)(struct key *, const struct key_type *, const union key_payload *, struct key *);
1: + const char *name;
1: + size_t def_datalen;
1: + unsigned int flags;
1: + int (*vet_description)(const char *);
1: + int (*preparse)(struct key_preparsed_payload *);
1: + void (*free_preparse)(struct key_preparsed_payload *);
1: + int (*instantiate)(struct key *, struct key_preparsed_payload *);
1: + int (*update)(struct key *, struct key_preparsed_payload *);
1: + int (*match_preparse)(struct key_match_data *);
1: + void (*match_free)(struct key_match_data *);
1: + void (*revoke)(struct key *);
1: + void (*destroy)(struct key *);
1: + void (*describe)(const struct key *, struct seq_file *);
1: + long int (*read)(const struct key *, char *, size_t);
1: + request_key_actor_t request_key;
1: + struct key_restriction *(*lookup_restriction)(const char *);
1: + int (*asym_query)(const struct kernel_pkey_params *,
1: + struct kernel_pkey_query *);
1: + int (*asym_eds_op)(struct kernel_pkey_params *, const void *, void *);
1: + int (*asym_verify_signature)(struct kernel_pkey_params *, const void *,
1: + const void *);
1: + struct list_head link;
1: + struct lock_class_key lock_class;
1: +};
1: +
1: +typedef int (*key_restrict_link_func_t)(struct key *, const struct key_type *,
1: + const union key_payload *,
1: + struct key *);
1:
1: struct key_restriction {
1: - key_restrict_link_func_t check;
1: - struct key *key;
1: - struct key_type *keytype;
1: + key_restrict_link_func_t check;
1: + struct key *key;
1: + struct key_type *keytype;
1: };
1:
1: struct group_info {
1: - atomic_t usage;
1: - int ngroups;
1: - kgid_t gid[0];
1: + atomic_t usage;
1: + int ngroups;
1: + kgid_t gid[0];
1: };
1:
1: struct taskstats {
1: - __u16 version;
1: - __u32 ac_exitcode;
1: - __u8 ac_flag;
1: - __u8 ac_nice;
1: - __u64 cpu_count;
1: - __u64 cpu_delay_total;
1: - __u64 blkio_count;
1: - __u64 blkio_delay_total;
1: - __u64 swapin_count;
1: - __u64 swapin_delay_total;
1: - __u64 cpu_run_real_total;
1: - __u64 cpu_run_virtual_total;
1: - char ac_comm[32];
1: - __u8 ac_sched;
1: - __u8 ac_pad[3];
1: - int: 32;
1: - __u32 ac_uid;
1: - __u32 ac_gid;
1: - __u32 ac_pid;
1: - __u32 ac_ppid;
1: - __u32 ac_btime;
1: - __u64 ac_etime;
1: - __u64 ac_utime;
1: - __u64 ac_stime;
1: - __u64 ac_minflt;
1: - __u64 ac_majflt;
1: - __u64 coremem;
1: - __u64 virtmem;
1: - __u64 hiwater_rss;
1: - __u64 hiwater_vm;
1: - __u64 read_char;
1: - __u64 write_char;
1: - __u64 read_syscalls;
1: - __u64 write_syscalls;
1: - __u64 read_bytes;
1: - __u64 write_bytes;
1: - __u64 cancelled_write_bytes;
1: - __u64 nvcsw;
1: - __u64 nivcsw;
1: - __u64 ac_utimescaled;
1: - __u64 ac_stimescaled;
1: - __u64 cpu_scaled_run_real_total;
1: - __u64 freepages_count;
1: - __u64 freepages_delay_total;
1: - __u64 thrashing_count;
1: - __u64 thrashing_delay_total;
1: - __u64 ac_btime64;
1: + __u16 version;
1: + __u32 ac_exitcode;
1: + __u8 ac_flag;
1: + __u8 ac_nice;
1: + __u64 cpu_count;
1: + __u64 cpu_delay_total;
1: + __u64 blkio_count;
1: + __u64 blkio_delay_total;
1: + __u64 swapin_count;
1: + __u64 swapin_delay_total;
1: + __u64 cpu_run_real_total;
1: + __u64 cpu_run_virtual_total;
1: + char ac_comm[32];
1: + __u8 ac_sched;
1: + __u8 ac_pad[3];
1: + int : 32;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u64 ac_etime;
1: + __u64 ac_utime;
1: + __u64 ac_stime;
1: + __u64 ac_minflt;
1: + __u64 ac_majflt;
1: + __u64 coremem;
1: + __u64 virtmem;
1: + __u64 hiwater_rss;
1: + __u64 hiwater_vm;
1: + __u64 read_char;
1: + __u64 write_char;
1: + __u64 read_syscalls;
1: + __u64 write_syscalls;
1: + __u64 read_bytes;
1: + __u64 write_bytes;
1: + __u64 cancelled_write_bytes;
1: + __u64 nvcsw;
1: + __u64 nivcsw;
1: + __u64 ac_utimescaled;
1: + __u64 ac_stimescaled;
1: + __u64 cpu_scaled_run_real_total;
1: + __u64 freepages_count;
1: + __u64 freepages_delay_total;
1: + __u64 thrashing_count;
1: + __u64 thrashing_delay_total;
1: + __u64 ac_btime64;
1: };
1:
1: struct delayed_call {
1: - void (*fn)(void *);
1: - void *arg;
1: + void (*fn)(void *);
1: + void *arg;
1: };
1:
1: struct io_cq {
1: - struct request_queue *q;
1: - struct io_context *ioc;
1: - union {
1: - struct list_head q_node;
1: - struct kmem_cache *__rcu_icq_cache;
1: - };
1: - union {
1: - struct hlist_node ioc_node;
1: - struct callback_head __rcu_head;
1: - };
1: - unsigned int flags;
1: + struct request_queue *q;
1: + struct io_context *ioc;
1: + union {
1: + struct list_head q_node;
1: + struct kmem_cache *__rcu_icq_cache;
1: + };
1: + union {
1: + struct hlist_node ioc_node;
1: + struct callback_head __rcu_head;
1: + };
1: + unsigned int flags;
1: };
1:
1: struct wait_page_queue;
1:
1: struct kiocb {
1: - struct file *ki_filp;
1: - loff_t ki_pos;
1: - void (*ki_complete)(struct kiocb *, long int, long int);
1: - void *private;
1: - int ki_flags;
1: - u16 ki_hint;
1: - u16 ki_ioprio;
1: - union {
1: - unsigned int ki_cookie;
1: - struct wait_page_queue *ki_waitq;
1: - };
1: + struct file *ki_filp;
1: + loff_t ki_pos;
1: + void (*ki_complete)(struct kiocb *, long int, long int);
1: + void *private;
1: + int ki_flags;
1: + u16 ki_hint;
1: + u16 ki_ioprio;
1: + union {
1: + unsigned int ki_cookie;
1: + struct wait_page_queue *ki_waitq;
1: + };
1: };
1:
1: struct iattr {
1: - unsigned int ia_valid;
1: - umode_t ia_mode;
1: - kuid_t ia_uid;
1: - kgid_t ia_gid;
1: - loff_t ia_size;
1: - struct timespec64 ia_atime;
1: - struct timespec64 ia_mtime;
1: - struct timespec64 ia_ctime;
1: - struct file *ia_file;
1: + unsigned int ia_valid;
1: + umode_t ia_mode;
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + loff_t ia_size;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct file *ia_file;
1: };
1:
1: typedef __kernel_uid32_t projid_t;
1:
1: typedef struct {
1: - projid_t val;
1: + projid_t val;
1: } kprojid_t;
1:
1: enum quota_type {
1: - USRQUOTA = 0,
1: - GRPQUOTA = 1,
1: - PRJQUOTA = 2,
1: + USRQUOTA = 0,
1: + GRPQUOTA = 1,
1: + PRJQUOTA = 2,
1: };
1:
1: struct kqid {
1: - union {
1: - kuid_t uid;
1: - kgid_t gid;
1: - kprojid_t projid;
1: - };
1: - enum quota_type type;
1: + union {
1: + kuid_t uid;
1: + kgid_t gid;
1: + kprojid_t projid;
1: + };
1: + enum quota_type type;
1: };
1:
1: struct mem_dqblk {
1: - qsize_t dqb_bhardlimit;
1: - qsize_t dqb_bsoftlimit;
1: - qsize_t dqb_curspace;
1: - qsize_t dqb_rsvspace;
1: - qsize_t dqb_ihardlimit;
1: - qsize_t dqb_isoftlimit;
1: - qsize_t dqb_curinodes;
1: - time64_t dqb_btime;
1: - time64_t dqb_itime;
1: + qsize_t dqb_bhardlimit;
1: + qsize_t dqb_bsoftlimit;
1: + qsize_t dqb_curspace;
1: + qsize_t dqb_rsvspace;
1: + qsize_t dqb_ihardlimit;
1: + qsize_t dqb_isoftlimit;
1: + qsize_t dqb_curinodes;
1: + time64_t dqb_btime;
1: + time64_t dqb_itime;
1: };
1:
1: struct dquot {
1: - struct hlist_node dq_hash;
1: - struct list_head dq_inuse;
1: - struct list_head dq_free;
1: - struct list_head dq_dirty;
1: - struct mutex dq_lock;
1: - spinlock_t dq_dqb_lock;
1: - atomic_t dq_count;
1: - struct super_block *dq_sb;
1: - struct kqid dq_id;
1: - loff_t dq_off;
1: - long unsigned int dq_flags;
1: - struct mem_dqblk dq_dqb;
1: + struct hlist_node dq_hash;
1: + struct list_head dq_inuse;
1: + struct list_head dq_free;
1: + struct list_head dq_dirty;
1: + struct mutex dq_lock;
1: + spinlock_t dq_dqb_lock;
1: + atomic_t dq_count;
1: + struct super_block *dq_sb;
1: + struct kqid dq_id;
1: + loff_t dq_off;
1: + long unsigned int dq_flags;
1: + struct mem_dqblk dq_dqb;
1: };
1:
1: struct quota_format_type {
1: - int qf_fmt_id;
1: - const struct quota_format_ops *qf_ops;
1: - struct module *qf_owner;
1: - struct quota_format_type *qf_next;
1: + int qf_fmt_id;
1: + const struct quota_format_ops *qf_ops;
1: + struct module *qf_owner;
1: + struct quota_format_type *qf_next;
1: };
1:
1: struct quota_format_ops {
1: - int (*check_quota_file)(struct super_block *, int);
1: - int (*read_file_info)(struct super_block *, int);
1: - int (*write_file_info)(struct super_block *, int);
1: - int (*free_file_info)(struct super_block *, int);
1: - int (*read_dqblk)(struct dquot *);
1: - int (*commit_dqblk)(struct dquot *);
1: - int (*release_dqblk)(struct dquot *);
1: - int (*get_next_id)(struct super_block *, struct kqid *);
1: + int (*check_quota_file)(struct super_block *, int);
1: + int (*read_file_info)(struct super_block *, int);
1: + int (*write_file_info)(struct super_block *, int);
1: + int (*free_file_info)(struct super_block *, int);
1: + int (*read_dqblk)(struct dquot *);
1: + int (*commit_dqblk)(struct dquot *);
1: + int (*release_dqblk)(struct dquot *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: };
1:
1: struct dquot_operations {
1: - int (*write_dquot)(struct dquot *);
1: - struct dquot * (*alloc_dquot)(struct super_block *, int);
1: - void (*destroy_dquot)(struct dquot *);
1: - int (*acquire_dquot)(struct dquot *);
1: - int (*release_dquot)(struct dquot *);
1: - int (*mark_dirty)(struct dquot *);
1: - int (*write_info)(struct super_block *, int);
1: - qsize_t * (*get_reserved_space)(struct inode *);
1: - int (*get_projid)(struct inode *, kprojid_t *);
1: - int (*get_inode_usage)(struct inode *, qsize_t *);
1: - int (*get_next_id)(struct super_block *, struct kqid *);
1: + int (*write_dquot)(struct dquot *);
1: + struct dquot *(*alloc_dquot)(struct super_block *, int);
1: + void (*destroy_dquot)(struct dquot *);
1: + int (*acquire_dquot)(struct dquot *);
1: + int (*release_dquot)(struct dquot *);
1: + int (*mark_dirty)(struct dquot *);
1: + int (*write_info)(struct super_block *, int);
1: + qsize_t *(*get_reserved_space)(struct inode *);
1: + int (*get_projid)(struct inode *, kprojid_t *);
1: + int (*get_inode_usage)(struct inode *, qsize_t *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: };
1:
1: struct qc_dqblk {
1: - int d_fieldmask;
1: - u64 d_spc_hardlimit;
1: - u64 d_spc_softlimit;
1: - u64 d_ino_hardlimit;
1: - u64 d_ino_softlimit;
1: - u64 d_space;
1: - u64 d_ino_count;
1: - s64 d_ino_timer;
1: - s64 d_spc_timer;
1: - int d_ino_warns;
1: - int d_spc_warns;
1: - u64 d_rt_spc_hardlimit;
1: - u64 d_rt_spc_softlimit;
1: - u64 d_rt_space;
1: - s64 d_rt_spc_timer;
1: - int d_rt_spc_warns;
1: + int d_fieldmask;
1: + u64 d_spc_hardlimit;
1: + u64 d_spc_softlimit;
1: + u64 d_ino_hardlimit;
1: + u64 d_ino_softlimit;
1: + u64 d_space;
1: + u64 d_ino_count;
1: + s64 d_ino_timer;
1: + s64 d_spc_timer;
1: + int d_ino_warns;
1: + int d_spc_warns;
1: + u64 d_rt_spc_hardlimit;
1: + u64 d_rt_spc_softlimit;
1: + u64 d_rt_space;
1: + s64 d_rt_spc_timer;
1: + int d_rt_spc_warns;
1: };
1:
1: struct qc_type_state {
1: - unsigned int flags;
1: - unsigned int spc_timelimit;
1: - unsigned int ino_timelimit;
1: - unsigned int rt_spc_timelimit;
1: - unsigned int spc_warnlimit;
1: - unsigned int ino_warnlimit;
1: - unsigned int rt_spc_warnlimit;
1: - long long unsigned int ino;
1: - blkcnt_t blocks;
1: - blkcnt_t nextents;
1: + unsigned int flags;
1: + unsigned int spc_timelimit;
1: + unsigned int ino_timelimit;
1: + unsigned int rt_spc_timelimit;
1: + unsigned int spc_warnlimit;
1: + unsigned int ino_warnlimit;
1: + unsigned int rt_spc_warnlimit;
1: + long long unsigned int ino;
1: + blkcnt_t blocks;
1: + blkcnt_t nextents;
1: };
1:
1: struct qc_state {
1: - unsigned int s_incoredqs;
1: - struct qc_type_state s_state[3];
1: + unsigned int s_incoredqs;
1: + struct qc_type_state s_state[3];
1: };
1:
1: struct qc_info {
1: - int i_fieldmask;
1: - unsigned int i_flags;
1: - unsigned int i_spc_timelimit;
1: - unsigned int i_ino_timelimit;
1: - unsigned int i_rt_spc_timelimit;
1: - unsigned int i_spc_warnlimit;
1: - unsigned int i_ino_warnlimit;
1: - unsigned int i_rt_spc_warnlimit;
1: + int i_fieldmask;
1: + unsigned int i_flags;
1: + unsigned int i_spc_timelimit;
1: + unsigned int i_ino_timelimit;
1: + unsigned int i_rt_spc_timelimit;
1: + unsigned int i_spc_warnlimit;
1: + unsigned int i_ino_warnlimit;
1: + unsigned int i_rt_spc_warnlimit;
1: };
1:
1: struct quotactl_ops {
1: - int (*quota_on)(struct super_block *, int, int, const struct path *);
1: - int (*quota_off)(struct super_block *, int);
1: - int (*quota_enable)(struct super_block *, unsigned int);
1: - int (*quota_disable)(struct super_block *, unsigned int);
1: - int (*quota_sync)(struct super_block *, int);
1: - int (*set_info)(struct super_block *, int, struct qc_info *);
1: - int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: - int (*get_nextdqblk)(struct super_block *, struct kqid *, struct qc_dqblk *);
1: - int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: - int (*get_state)(struct super_block *, struct qc_state *);
1: - int (*rm_xquota)(struct super_block *, unsigned int);
1: + int (*quota_on)(struct super_block *, int, int, const struct path *);
1: + int (*quota_off)(struct super_block *, int);
1: + int (*quota_enable)(struct super_block *, unsigned int);
1: + int (*quota_disable)(struct super_block *, unsigned int);
1: + int (*quota_sync)(struct super_block *, int);
1: + int (*set_info)(struct super_block *, int, struct qc_info *);
1: + int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_nextdqblk)(struct super_block *, struct kqid *, struct qc_dqblk *);
1: + int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_state)(struct super_block *, struct qc_state *);
1: + int (*rm_xquota)(struct super_block *, unsigned int);
1: };
1:
1: struct wait_page_queue {
1: - struct page *page;
1: - int bit_nr;
1: - wait_queue_entry_t wait;
1: + struct page *page;
1: + int bit_nr;
1: + wait_queue_entry_t wait;
1: };
1:
1: struct writeback_control;
1: @@ -4593,65 +4613,70 @@ struct readahead_control;
1: struct swap_info_struct;
1:
1: struct address_space_operations {
1: - int (*writepage)(struct page *, struct writeback_control *);
1: - int (*readpage)(struct file *, struct page *);
1: - int (*writepages)(struct address_space *, struct writeback_control *);
1: - int (*set_page_dirty)(struct page *);
1: - int (*readpages)(struct file *, struct address_space *, struct list_head *, unsigned int);
1: - void (*readahead)(struct readahead_control *);
1: - int (*write_begin)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page **, void **);
1: - int (*write_end)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page *, void *);
1: - sector_t (*bmap)(struct address_space *, sector_t);
1: - void (*invalidatepage)(struct page *, unsigned int, unsigned int);
1: - int (*releasepage)(struct page *, gfp_t);
1: - void (*freepage)(struct page *);
1: - ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *);
1: - int (*migratepage)(struct address_space *, struct page *, struct page *, enum migrate_mode);
1: - bool (*isolate_page)(struct page *, isolate_mode_t);
1: - void (*putback_page)(struct page *);
1: - int (*launder_page)(struct page *);
1: - int (*is_partially_uptodate)(struct page *, long unsigned int, long unsigned int);
1: - void (*is_dirty_writeback)(struct page *, bool *, bool *);
1: - int (*error_remove_page)(struct address_space *, struct page *);
1: - int (*swap_activate)(struct swap_info_struct *, struct file *, sector_t *);
1: - void (*swap_deactivate)(struct file *);
1: + int (*writepage)(struct page *, struct writeback_control *);
1: + int (*readpage)(struct file *, struct page *);
1: + int (*writepages)(struct address_space *, struct writeback_control *);
1: + int (*set_page_dirty)(struct page *);
1: + int (*readpages)(struct file *, struct address_space *, struct list_head *,
1: + unsigned int);
1: + void (*readahead)(struct readahead_control *);
1: + int (*write_begin)(struct file *, struct address_space *, loff_t,
1: + unsigned int, unsigned int, struct page **, void **);
1: + int (*write_end)(struct file *, struct address_space *, loff_t, unsigned int,
1: + unsigned int, struct page *, void *);
1: + sector_t (*bmap)(struct address_space *, sector_t);
1: + void (*invalidatepage)(struct page *, unsigned int, unsigned int);
1: + int (*releasepage)(struct page *, gfp_t);
1: + void (*freepage)(struct page *);
1: + ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *);
1: + int (*migratepage)(struct address_space *, struct page *, struct page *,
1: + enum migrate_mode);
1: + bool (*isolate_page)(struct page *, isolate_mode_t);
1: + void (*putback_page)(struct page *);
1: + int (*launder_page)(struct page *);
1: + int (*is_partially_uptodate)(struct page *, long unsigned int,
1: + long unsigned int);
1: + void (*is_dirty_writeback)(struct page *, bool *, bool *);
1: + int (*error_remove_page)(struct address_space *, struct page *);
1: + int (*swap_activate)(struct swap_info_struct *, struct file *, sector_t *);
1: + void (*swap_deactivate)(struct file *);
1: };
1:
1: enum writeback_sync_modes {
1: - WB_SYNC_NONE = 0,
1: - WB_SYNC_ALL = 1,
1: + WB_SYNC_NONE = 0,
1: + WB_SYNC_ALL = 1,
1: };
1:
1: struct writeback_control {
1: - long int nr_to_write;
1: - long int pages_skipped;
1: - loff_t range_start;
1: - loff_t range_end;
1: - enum writeback_sync_modes sync_mode;
1: - unsigned int for_kupdate: 1;
1: - unsigned int for_background: 1;
1: - unsigned int tagged_writepages: 1;
1: - unsigned int for_reclaim: 1;
1: - unsigned int range_cyclic: 1;
1: - unsigned int for_sync: 1;
1: - unsigned int no_cgroup_owner: 1;
1: - unsigned int punt_to_cgroup: 1;
1: - struct bdi_writeback *wb;
1: - struct inode *inode;
1: - int wb_id;
1: - int wb_lcand_id;
1: - int wb_tcand_id;
1: - size_t wb_bytes;
1: - size_t wb_lcand_bytes;
1: - size_t wb_tcand_bytes;
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int for_kupdate : 1;
1: + unsigned int for_background : 1;
1: + unsigned int tagged_writepages : 1;
1: + unsigned int for_reclaim : 1;
1: + unsigned int range_cyclic : 1;
1: + unsigned int for_sync : 1;
1: + unsigned int no_cgroup_owner : 1;
1: + unsigned int punt_to_cgroup : 1;
1: + struct bdi_writeback *wb;
1: + struct inode *inode;
1: + int wb_id;
1: + int wb_lcand_id;
1: + int wb_tcand_id;
1: + size_t wb_bytes;
1: + size_t wb_lcand_bytes;
1: + size_t wb_tcand_bytes;
1: };
1:
1: struct readahead_control {
1: - struct file *file;
1: - struct address_space *mapping;
1: - long unsigned int _index;
1: - unsigned int _nr_pages;
1: - unsigned int _batch_count;
1: + struct file *file;
1: + struct address_space *mapping;
1: + long unsigned int _index;
1: + unsigned int _nr_pages;
1: + unsigned int _batch_count;
1: };
1:
1: struct iovec;
1: @@ -4661,65 +4686,65 @@ struct kvec;
1: struct bio_vec;
1:
1: struct iov_iter {
1: - unsigned int type;
1: - size_t iov_offset;
1: - size_t count;
1: - union {
1: - const struct iovec *iov;
1: - const struct kvec *kvec;
1: - const struct bio_vec *bvec;
1: - struct pipe_inode_info *pipe;
1: - };
1: - union {
1: - long unsigned int nr_segs;
1: - struct {
1: - unsigned int head;
1: - unsigned int start_head;
1: - };
1: - };
1: + unsigned int type;
1: + size_t iov_offset;
1: + size_t count;
1: + union {
1: + const struct iovec *iov;
1: + const struct kvec *kvec;
1: + const struct bio_vec *bvec;
1: + struct pipe_inode_info *pipe;
1: + };
1: + union {
1: + long unsigned int nr_segs;
1: + struct {
1: + unsigned int head;
1: + unsigned int start_head;
1: + };
1: + };
1: };
1:
1: struct swap_cluster_info {
1: - spinlock_t lock;
1: - unsigned int data: 24;
1: - unsigned int flags: 8;
1: + spinlock_t lock;
1: + unsigned int data : 24;
1: + unsigned int flags : 8;
1: };
1:
1: struct swap_cluster_list {
1: - struct swap_cluster_info head;
1: - struct swap_cluster_info tail;
1: + struct swap_cluster_info head;
1: + struct swap_cluster_info tail;
1: };
1:
1: struct percpu_cluster;
1:
1: struct swap_info_struct {
1: - long unsigned int flags;
1: - short int prio;
1: - struct plist_node list;
1: - signed char type;
1: - unsigned int max;
1: - unsigned char *swap_map;
1: - struct swap_cluster_info *cluster_info;
1: - struct swap_cluster_list free_clusters;
1: - unsigned int lowest_bit;
1: - unsigned int highest_bit;
1: - unsigned int pages;
1: - unsigned int inuse_pages;
1: - unsigned int cluster_next;
1: - unsigned int cluster_nr;
1: - unsigned int *cluster_next_cpu;
1: - struct percpu_cluster *percpu_cluster;
1: - struct rb_root swap_extent_root;
1: - struct block_device *bdev;
1: - struct file *swap_file;
1: - unsigned int old_block_size;
1: - long unsigned int *frontswap_map;
1: - atomic_t frontswap_pages;
1: - spinlock_t lock;
1: - spinlock_t cont_lock;
1: - struct work_struct discard_work;
1: - struct swap_cluster_list discard_clusters;
1: - struct plist_node avail_lists[0];
1: + long unsigned int flags;
1: + short int prio;
1: + struct plist_node list;
1: + signed char type;
1: + unsigned int max;
1: + unsigned char *swap_map;
1: + struct swap_cluster_info *cluster_info;
1: + struct swap_cluster_list free_clusters;
1: + unsigned int lowest_bit;
1: + unsigned int highest_bit;
1: + unsigned int pages;
1: + unsigned int inuse_pages;
1: + unsigned int cluster_next;
1: + unsigned int cluster_nr;
1: + unsigned int *cluster_next_cpu;
1: + struct percpu_cluster *percpu_cluster;
1: + struct rb_root swap_extent_root;
1: + struct block_device *bdev;
1: + struct file *swap_file;
1: + unsigned int old_block_size;
1: + long unsigned int *frontswap_map;
1: + atomic_t frontswap_pages;
1: + spinlock_t lock;
1: + spinlock_t cont_lock;
1: + struct work_struct discard_work;
1: + struct swap_cluster_list discard_clusters;
1: + struct plist_node avail_lists[0];
1: };
1:
1: struct hd_struct;
1: @@ -4727,173 +4752,178 @@ struct hd_struct;
1: struct gendisk;
1:
1: struct block_device {
1: - dev_t bd_dev;
1: - int bd_openers;
1: - struct inode *bd_inode;
1: - struct super_block *bd_super;
1: - struct mutex bd_mutex;
1: - void *bd_claiming;
1: - void *bd_holder;
1: - int bd_holders;
1: - bool bd_write_holder;
1: - struct list_head bd_holder_disks;
1: - struct block_device *bd_contains;
1: - u8 bd_partno;
1: - struct hd_struct *bd_part;
1: - unsigned int bd_part_count;
1: - spinlock_t bd_size_lock;
1: - struct gendisk *bd_disk;
1: - struct backing_dev_info *bd_bdi;
1: - int bd_fsfreeze_count;
1: - struct mutex bd_fsfreeze_mutex;
1: + dev_t bd_dev;
1: + int bd_openers;
1: + struct inode *bd_inode;
1: + struct super_block *bd_super;
1: + struct mutex bd_mutex;
1: + void *bd_claiming;
1: + void *bd_holder;
1: + int bd_holders;
1: + bool bd_write_holder;
1: + struct list_head bd_holder_disks;
1: + struct block_device *bd_contains;
1: + u8 bd_partno;
1: + struct hd_struct *bd_part;
1: + unsigned int bd_part_count;
1: + spinlock_t bd_size_lock;
1: + struct gendisk *bd_disk;
1: + struct backing_dev_info *bd_bdi;
1: + int bd_fsfreeze_count;
1: + struct mutex bd_fsfreeze_mutex;
1: };
1:
1: struct cdev {
1: - struct kobject kobj;
1: - struct module *owner;
1: - const struct file_operations *ops;
1: - struct list_head list;
1: - dev_t dev;
1: - unsigned int count;
1: + struct kobject kobj;
1: + struct module *owner;
1: + const struct file_operations *ops;
1: + struct list_head list;
1: + dev_t dev;
1: + unsigned int count;
1: };
1:
1: struct fiemap_extent_info;
1:
1: struct inode_operations {
1: - struct dentry * (*lookup)(struct inode *, struct dentry *, unsigned int);
1: - const char * (*get_link)(struct dentry *, struct inode *, struct delayed_call *);
1: - int (*permission)(struct inode *, int);
1: - struct posix_acl * (*get_acl)(struct inode *, int);
1: - int (*readlink)(struct dentry *, char *, int);
1: - int (*create)(struct inode *, struct dentry *, umode_t, bool);
1: - int (*link)(struct dentry *, struct inode *, struct dentry *);
1: - int (*unlink)(struct inode *, struct dentry *);
1: - int (*symlink)(struct inode *, struct dentry *, const char *);
1: - int (*mkdir)(struct inode *, struct dentry *, umode_t);
1: - int (*rmdir)(struct inode *, struct dentry *);
1: - int (*mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: - int (*rename)(struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int);
1: - int (*setattr)(struct dentry *, struct iattr *);
1: - int (*getattr)(const struct path *, struct kstat *, u32, unsigned int);
1: - ssize_t (*listxattr)(struct dentry *, char *, size_t);
1: - int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64, u64);
1: - int (*update_time)(struct inode *, struct timespec64 *, int);
1: - int (*atomic_open)(struct inode *, struct dentry *, struct file *, unsigned int, umode_t);
1: - int (*tmpfile)(struct inode *, struct dentry *, umode_t);
1: - int (*set_acl)(struct inode *, struct posix_acl *, int);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct dentry *(*lookup)(struct inode *, struct dentry *, unsigned int);
1: + const char *(*get_link)(struct dentry *, struct inode *,
1: + struct delayed_call *);
1: + int (*permission)(struct inode *, int);
1: + struct posix_acl *(*get_acl)(struct inode *, int);
1: + int (*readlink)(struct dentry *, char *, int);
1: + int (*create)(struct inode *, struct dentry *, umode_t, bool);
1: + int (*link)(struct dentry *, struct inode *, struct dentry *);
1: + int (*unlink)(struct inode *, struct dentry *);
1: + int (*symlink)(struct inode *, struct dentry *, const char *);
1: + int (*mkdir)(struct inode *, struct dentry *, umode_t);
1: + int (*rmdir)(struct inode *, struct dentry *);
1: + int (*mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: + int (*rename)(struct inode *, struct dentry *, struct inode *,
1: + struct dentry *, unsigned int);
1: + int (*setattr)(struct dentry *, struct iattr *);
1: + int (*getattr)(const struct path *, struct kstat *, u32, unsigned int);
1: + ssize_t (*listxattr)(struct dentry *, char *, size_t);
1: + int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64, u64);
1: + int (*update_time)(struct inode *, struct timespec64 *, int);
1: + int (*atomic_open)(struct inode *, struct dentry *, struct file *,
1: + unsigned int, umode_t);
1: + int (*tmpfile)(struct inode *, struct dentry *, umode_t);
1: + int (*set_acl)(struct inode *, struct posix_acl *, int);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct file_lock_context {
1: - spinlock_t flc_lock;
1: - struct list_head flc_flock;
1: - struct list_head flc_posix;
1: - struct list_head flc_lease;
1: + spinlock_t flc_lock;
1: + struct list_head flc_flock;
1: + struct list_head flc_posix;
1: + struct list_head flc_lease;
1: };
1:
1: struct file_lock_operations {
1: - void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1: - void (*fl_release_private)(struct file_lock *);
1: + void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1: + void (*fl_release_private)(struct file_lock *);
1: };
1:
1: struct nlm_lockowner;
1:
1: struct nfs_lock_info {
1: - u32 state;
1: - struct nlm_lockowner *owner;
1: - struct list_head list;
1: + u32 state;
1: + struct nlm_lockowner *owner;
1: + struct list_head list;
1: };
1:
1: struct nfs4_lock_state;
1:
1: struct nfs4_lock_info {
1: - struct nfs4_lock_state *owner;
1: + struct nfs4_lock_state *owner;
1: };
1:
1: struct lock_manager_operations;
1:
1: struct file_lock {
1: - struct file_lock *fl_blocker;
1: - struct list_head fl_list;
1: - struct hlist_node fl_link;
1: - struct list_head fl_blocked_requests;
1: - struct list_head fl_blocked_member;
1: - fl_owner_t fl_owner;
1: - unsigned int fl_flags;
1: - unsigned char fl_type;
1: - unsigned int fl_pid;
1: - int fl_link_cpu;
1: - wait_queue_head_t fl_wait;
1: - struct file *fl_file;
1: - loff_t fl_start;
1: - loff_t fl_end;
1: - struct fasync_struct *fl_fasync;
1: - long unsigned int fl_break_time;
1: - long unsigned int fl_downgrade_time;
1: - const struct file_lock_operations *fl_ops;
1: - const struct lock_manager_operations *fl_lmops;
1: - union {
1: - struct nfs_lock_info nfs_fl;
1: - struct nfs4_lock_info nfs4_fl;
1: - struct {
1: - struct list_head link;
1: - int state;
1: - unsigned int debug_id;
1: - } afs;
1: - } fl_u;
1: + struct file_lock *fl_blocker;
1: + struct list_head fl_list;
1: + struct hlist_node fl_link;
1: + struct list_head fl_blocked_requests;
1: + struct list_head fl_blocked_member;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + unsigned int fl_pid;
1: + int fl_link_cpu;
1: + wait_queue_head_t fl_wait;
1: + struct file *fl_file;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + struct fasync_struct *fl_fasync;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + const struct file_lock_operations *fl_ops;
1: + const struct lock_manager_operations *fl_lmops;
1: + union {
1: + struct nfs_lock_info nfs_fl;
1: + struct nfs4_lock_info nfs4_fl;
1: + struct {
1: + struct list_head link;
1: + int state;
1: + unsigned int debug_id;
1: + } afs;
1: + } fl_u;
1: };
1:
1: struct lock_manager_operations {
1: - fl_owner_t (*lm_get_owner)(fl_owner_t);
1: - void (*lm_put_owner)(fl_owner_t);
1: - void (*lm_notify)(struct file_lock *);
1: - int (*lm_grant)(struct file_lock *, int);
1: - bool (*lm_break)(struct file_lock *);
1: - int (*lm_change)(struct file_lock *, int, struct list_head *);
1: - void (*lm_setup)(struct file_lock *, void **);
1: - bool (*lm_breaker_owns_lease)(struct file_lock *);
1: + fl_owner_t (*lm_get_owner)(fl_owner_t);
1: + void (*lm_put_owner)(fl_owner_t);
1: + void (*lm_notify)(struct file_lock *);
1: + int (*lm_grant)(struct file_lock *, int);
1: + bool (*lm_break)(struct file_lock *);
1: + int (*lm_change)(struct file_lock *, int, struct list_head *);
1: + void (*lm_setup)(struct file_lock *, void **);
1: + bool (*lm_breaker_owns_lease)(struct file_lock *);
1: };
1:
1: struct fasync_struct {
1: - rwlock_t fa_lock;
1: - int magic;
1: - int fa_fd;
1: - struct fasync_struct *fa_next;
1: - struct file *fa_file;
1: - struct callback_head fa_rcu;
1: + rwlock_t fa_lock;
1: + int magic;
1: + int fa_fd;
1: + struct fasync_struct *fa_next;
1: + struct file *fa_file;
1: + struct callback_head fa_rcu;
1: };
1:
1: struct kstatfs;
1:
1: struct super_operations {
1: - struct inode * (*alloc_inode)(struct super_block *);
1: - void (*destroy_inode)(struct inode *);
1: - void (*free_inode)(struct inode *);
1: - void (*dirty_inode)(struct inode *, int);
1: - int (*write_inode)(struct inode *, struct writeback_control *);
1: - int (*drop_inode)(struct inode *);
1: - void (*evict_inode)(struct inode *);
1: - void (*put_super)(struct super_block *);
1: - int (*sync_fs)(struct super_block *, int);
1: - int (*freeze_super)(struct super_block *);
1: - int (*freeze_fs)(struct super_block *);
1: - int (*thaw_super)(struct super_block *);
1: - int (*unfreeze_fs)(struct super_block *);
1: - int (*statfs)(struct dentry *, struct kstatfs *);
1: - int (*remount_fs)(struct super_block *, int *, char *);
1: - void (*umount_begin)(struct super_block *);
1: - int (*show_options)(struct seq_file *, struct dentry *);
1: - int (*show_devname)(struct seq_file *, struct dentry *);
1: - int (*show_path)(struct seq_file *, struct dentry *);
1: - int (*show_stats)(struct seq_file *, struct dentry *);
1: - ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1: - ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
1: - struct dquot ** (*get_dquots)(struct inode *);
1: - int (*bdev_try_to_free_page)(struct super_block *, struct page *, gfp_t);
1: - long int (*nr_cached_objects)(struct super_block *, struct shrink_control *);
1: - long int (*free_cached_objects)(struct super_block *, struct shrink_control *);
1: + struct inode *(*alloc_inode)(struct super_block *);
1: + void (*destroy_inode)(struct inode *);
1: + void (*free_inode)(struct inode *);
1: + void (*dirty_inode)(struct inode *, int);
1: + int (*write_inode)(struct inode *, struct writeback_control *);
1: + int (*drop_inode)(struct inode *);
1: + void (*evict_inode)(struct inode *);
1: + void (*put_super)(struct super_block *);
1: + int (*sync_fs)(struct super_block *, int);
1: + int (*freeze_super)(struct super_block *);
1: + int (*freeze_fs)(struct super_block *);
1: + int (*thaw_super)(struct super_block *);
1: + int (*unfreeze_fs)(struct super_block *);
1: + int (*statfs)(struct dentry *, struct kstatfs *);
1: + int (*remount_fs)(struct super_block *, int *, char *);
1: + void (*umount_begin)(struct super_block *);
1: + int (*show_options)(struct seq_file *, struct dentry *);
1: + int (*show_devname)(struct seq_file *, struct dentry *);
1: + int (*show_path)(struct seq_file *, struct dentry *);
1: + int (*show_stats)(struct seq_file *, struct dentry *);
1: + ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1: + ssize_t (*quota_write)(struct super_block *, int, const char *, size_t,
1: + loff_t);
1: + struct dquot **(*get_dquots)(struct inode *);
1: + int (*bdev_try_to_free_page)(struct super_block *, struct page *, gfp_t);
1: + long int (*nr_cached_objects)(struct super_block *, struct shrink_control *);
1: + long int (*free_cached_objects)(struct super_block *,
1: + struct shrink_control *);
1: };
1:
1: struct iomap;
1: @@ -4901,174 +4931,180 @@ struct iomap;
1: struct fid;
1:
1: struct export_operations {
1: - int (*encode_fh)(struct inode *, __u32 *, int *, struct inode *);
1: - struct dentry * (*fh_to_dentry)(struct super_block *, struct fid *, int, int);
1: - struct dentry * (*fh_to_parent)(struct super_block *, struct fid *, int, int);
1: - int (*get_name)(struct dentry *, char *, struct dentry *);
1: - struct dentry * (*get_parent)(struct dentry *);
1: - int (*commit_metadata)(struct inode *);
1: - int (*get_uuid)(struct super_block *, u8 *, u32 *, u64 *);
1: - int (*map_blocks)(struct inode *, loff_t, u64, struct iomap *, bool, u32 *);
1: - int (*commit_blocks)(struct inode *, struct iomap *, int, struct iattr *);
1: + int (*encode_fh)(struct inode *, __u32 *, int *, struct inode *);
1: + struct dentry *(*fh_to_dentry)(struct super_block *, struct fid *, int, int);
1: + struct dentry *(*fh_to_parent)(struct super_block *, struct fid *, int, int);
1: + int (*get_name)(struct dentry *, char *, struct dentry *);
1: + struct dentry *(*get_parent)(struct dentry *);
1: + int (*commit_metadata)(struct inode *);
1: + int (*get_uuid)(struct super_block *, u8 *, u32 *, u64 *);
1: + int (*map_blocks)(struct inode *, loff_t, u64, struct iomap *, bool, u32 *);
1: + int (*commit_blocks)(struct inode *, struct iomap *, int, struct iattr *);
1: };
1:
1: struct xattr_handler {
1: - const char *name;
1: - const char *prefix;
1: - int flags;
1: - bool (*list)(struct dentry *);
1: - int (*get)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, void *, size_t);
1: - int (*set)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, const void *, size_t, int);
1: + const char *name;
1: + const char *prefix;
1: + int flags;
1: + bool (*list)(struct dentry *);
1: + int (*get)(const struct xattr_handler *, struct dentry *, struct inode *,
1: + const char *, void *, size_t);
1: + int (*set)(const struct xattr_handler *, struct dentry *, struct inode *,
1: + const char *, const void *, size_t, int);
1: };
1:
1: union fscrypt_policy;
1:
1: struct fscrypt_operations {
1: - unsigned int flags;
1: - const char *key_prefix;
1: - int (*get_context)(struct inode *, void *, size_t);
1: - int (*set_context)(struct inode *, const void *, size_t, void *);
1: - const union fscrypt_policy * (*get_dummy_policy)(struct super_block *);
1: - bool (*empty_dir)(struct inode *);
1: - unsigned int max_namelen;
1: - bool (*has_stable_inodes)(struct super_block *);
1: - void (*get_ino_and_lblk_bits)(struct super_block *, int *, int *);
1: - int (*get_num_devices)(struct super_block *);
1: - void (*get_devices)(struct super_block *, struct request_queue **);
1: + unsigned int flags;
1: + const char *key_prefix;
1: + int (*get_context)(struct inode *, void *, size_t);
1: + int (*set_context)(struct inode *, const void *, size_t, void *);
1: + const union fscrypt_policy *(*get_dummy_policy)(struct super_block *);
1: + bool (*empty_dir)(struct inode *);
1: + unsigned int max_namelen;
1: + bool (*has_stable_inodes)(struct super_block *);
1: + void (*get_ino_and_lblk_bits)(struct super_block *, int *, int *);
1: + int (*get_num_devices)(struct super_block *);
1: + void (*get_devices)(struct super_block *, struct request_queue **);
1: };
1:
1: struct fsverity_operations {
1: - int (*begin_enable_verity)(struct file *);
1: - int (*end_enable_verity)(struct file *, const void *, size_t, u64);
1: - int (*get_verity_descriptor)(struct inode *, void *, size_t);
1: - struct page * (*read_merkle_tree_page)(struct inode *, long unsigned int, long unsigned int);
1: - int (*write_merkle_tree_block)(struct inode *, const void *, u64, int);
1: + int (*begin_enable_verity)(struct file *);
1: + int (*end_enable_verity)(struct file *, const void *, size_t, u64);
1: + int (*get_verity_descriptor)(struct inode *, void *, size_t);
1: + struct page *(*read_merkle_tree_page)(struct inode *, long unsigned int,
1: + long unsigned int);
1: + int (*write_merkle_tree_block)(struct inode *, const void *, u64, int);
1: };
1:
1: -typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64, unsigned int);
1: +typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64,
1: + unsigned int);
1:
1: struct dir_context {
1: - filldir_t actor;
1: - loff_t pos;
1: + filldir_t actor;
1: + loff_t pos;
1: };
1:
1: -typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_table_struct *);
1: +typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *,
1: + struct poll_table_struct *);
1:
1: struct poll_table_struct {
1: - poll_queue_proc _qproc;
1: - __poll_t _key;
1: + poll_queue_proc _qproc;
1: + __poll_t _key;
1: };
1:
1: struct seq_operations;
1:
1: struct seq_file {
1: - char *buf;
1: - size_t size;
1: - size_t from;
1: - size_t count;
1: - size_t pad_until;
1: - loff_t index;
1: - loff_t read_pos;
1: - struct mutex lock;
1: - const struct seq_operations *op;
1: - int poll_event;
1: - const struct file *file;
1: - void *private;
1: + char *buf;
1: + size_t size;
1: + size_t from;
1: + size_t count;
1: + size_t pad_until;
1: + loff_t index;
1: + loff_t read_pos;
1: + struct mutex lock;
1: + const struct seq_operations *op;
1: + int poll_event;
1: + const struct file *file;
1: + void *private;
1: };
1:
1: struct fc_log;
1:
1: struct p_log {
1: - const char *prefix;
1: - struct fc_log *log;
1: + const char *prefix;
1: + struct fc_log *log;
1: };
1:
1: enum fs_context_purpose {
1: - FS_CONTEXT_FOR_MOUNT = 0,
1: - FS_CONTEXT_FOR_SUBMOUNT = 1,
1: - FS_CONTEXT_FOR_RECONFIGURE = 2,
1: + FS_CONTEXT_FOR_MOUNT = 0,
1: + FS_CONTEXT_FOR_SUBMOUNT = 1,
1: + FS_CONTEXT_FOR_RECONFIGURE = 2,
1: };
1:
1: enum fs_context_phase {
1: - FS_CONTEXT_CREATE_PARAMS = 0,
1: - FS_CONTEXT_CREATING = 1,
1: - FS_CONTEXT_AWAITING_MOUNT = 2,
1: - FS_CONTEXT_AWAITING_RECONF = 3,
1: - FS_CONTEXT_RECONF_PARAMS = 4,
1: - FS_CONTEXT_RECONFIGURING = 5,
1: - FS_CONTEXT_FAILED = 6,
1: + FS_CONTEXT_CREATE_PARAMS = 0,
1: + FS_CONTEXT_CREATING = 1,
1: + FS_CONTEXT_AWAITING_MOUNT = 2,
1: + FS_CONTEXT_AWAITING_RECONF = 3,
1: + FS_CONTEXT_RECONF_PARAMS = 4,
1: + FS_CONTEXT_RECONFIGURING = 5,
1: + FS_CONTEXT_FAILED = 6,
1: };
1:
1: struct fs_context_operations;
1:
1: struct fs_context {
1: - const struct fs_context_operations *ops;
1: - struct mutex uapi_mutex;
1: - struct file_system_type *fs_type;
1: - void *fs_private;
1: - void *sget_key;
1: - struct dentry *root;
1: - struct user_namespace *user_ns;
1: - struct net *net_ns;
1: - const struct cred *cred;
1: - struct p_log log;
1: - const char *source;
1: - void *security;
1: - void *s_fs_info;
1: - unsigned int sb_flags;
1: - unsigned int sb_flags_mask;
1: - unsigned int s_iflags;
1: - unsigned int lsm_flags;
1: - enum fs_context_purpose purpose: 8;
1: - enum fs_context_phase phase: 8;
1: - bool need_free: 1;
1: - bool global: 1;
1: - bool oldapi: 1;
1: + const struct fs_context_operations *ops;
1: + struct mutex uapi_mutex;
1: + struct file_system_type *fs_type;
1: + void *fs_private;
1: + void *sget_key;
1: + struct dentry *root;
1: + struct user_namespace *user_ns;
1: + struct net *net_ns;
1: + const struct cred *cred;
1: + struct p_log log;
1: + const char *source;
1: + void *security;
1: + void *s_fs_info;
1: + unsigned int sb_flags;
1: + unsigned int sb_flags_mask;
1: + unsigned int s_iflags;
1: + unsigned int lsm_flags;
1: + enum fs_context_purpose purpose : 8;
1: + enum fs_context_phase phase : 8;
1: + bool need_free : 1;
1: + bool global : 1;
1: + bool oldapi : 1;
1: };
1:
1: struct fs_parameter;
1:
1: struct fs_parse_result;
1:
1: -typedef int fs_param_type(struct p_log *, const struct fs_parameter_spec *, struct fs_parameter *, struct fs_parse_result *);
1: +typedef int fs_param_type(struct p_log *, const struct fs_parameter_spec *,
1: + struct fs_parameter *, struct fs_parse_result *);
1:
1: struct fs_parameter_spec {
1: - const char *name;
1: - fs_param_type *type;
1: - u8 opt;
1: - short unsigned int flags;
1: - const void *data;
1: + const char *name;
1: + fs_param_type *type;
1: + u8 opt;
1: + short unsigned int flags;
1: + const void *data;
1: };
1:
1: struct audit_names;
1:
1: struct filename {
1: - const char *name;
1: - const char *uptr;
1: - int refcnt;
1: - struct audit_names *aname;
1: - const char iname[0];
1: + const char *name;
1: + const char *uptr;
1: + int refcnt;
1: + struct audit_names *aname;
1: + const char iname[0];
1: };
1:
1: typedef u8 blk_status_t;
1:
1: struct bvec_iter {
1: - sector_t bi_sector;
1: - unsigned int bi_size;
1: - unsigned int bi_idx;
1: - unsigned int bi_bvec_done;
1: + sector_t bi_sector;
1: + unsigned int bi_size;
1: + unsigned int bi_idx;
1: + unsigned int bi_bvec_done;
1: };
1:
1: typedef void bio_end_io_t(struct bio *);
1:
1: struct bio_issue {
1: - u64 value;
1: + u64 value;
1: };
1:
1: struct bio_vec {
1: - struct page *bv_page;
1: - unsigned int bv_len;
1: - unsigned int bv_offset;
1: + struct page *bv_page;
1: + unsigned int bv_len;
1: + unsigned int bv_offset;
1: };
1:
1: struct bio_crypt_ctx;
1: @@ -5076,56 +5112,56 @@ struct bio_crypt_ctx;
1: struct bio_integrity_payload;
1:
1: struct bio {
1: - struct bio *bi_next;
1: - struct gendisk *bi_disk;
1: - unsigned int bi_opf;
1: - short unsigned int bi_flags;
1: - short unsigned int bi_ioprio;
1: - short unsigned int bi_write_hint;
1: - blk_status_t bi_status;
1: - u8 bi_partno;
1: - atomic_t __bi_remaining;
1: - struct bvec_iter bi_iter;
1: - bio_end_io_t *bi_end_io;
1: - void *bi_private;
1: - struct blkcg_gq *bi_blkg;
1: - struct bio_issue bi_issue;
1: - u64 bi_iocost_cost;
1: - struct bio_crypt_ctx *bi_crypt_context;
1: - union {
1: - struct bio_integrity_payload *bi_integrity;
1: - };
1: - short unsigned int bi_vcnt;
1: - short unsigned int bi_max_vecs;
1: - atomic_t __bi_cnt;
1: - struct bio_vec *bi_io_vec;
1: - struct bio_set *bi_pool;
1: - struct bio_vec bi_inline_vecs[0];
1: + struct bio *bi_next;
1: + struct gendisk *bi_disk;
1: + unsigned int bi_opf;
1: + short unsigned int bi_flags;
1: + short unsigned int bi_ioprio;
1: + short unsigned int bi_write_hint;
1: + blk_status_t bi_status;
1: + u8 bi_partno;
1: + atomic_t __bi_remaining;
1: + struct bvec_iter bi_iter;
1: + bio_end_io_t *bi_end_io;
1: + void *bi_private;
1: + struct blkcg_gq *bi_blkg;
1: + struct bio_issue bi_issue;
1: + u64 bi_iocost_cost;
1: + struct bio_crypt_ctx *bi_crypt_context;
1: + union {
1: + struct bio_integrity_payload *bi_integrity;
1: + };
1: + short unsigned int bi_vcnt;
1: + short unsigned int bi_max_vecs;
1: + atomic_t __bi_cnt;
1: + struct bio_vec *bi_io_vec;
1: + struct bio_set *bi_pool;
1: + struct bio_vec bi_inline_vecs[0];
1: };
1:
1: struct kernfs_root;
1:
1: struct kernfs_elem_dir {
1: - long unsigned int subdirs;
1: - struct rb_root children;
1: - struct kernfs_root *root;
1: + long unsigned int subdirs;
1: + struct rb_root children;
1: + struct kernfs_root *root;
1: };
1:
1: struct kernfs_syscall_ops;
1:
1: struct kernfs_root {
1: - struct kernfs_node *kn;
1: - unsigned int flags;
1: - struct idr ino_idr;
1: - u32 last_id_lowbits;
1: - u32 id_highbits;
1: - struct kernfs_syscall_ops *syscall_ops;
1: - struct list_head supers;
1: - wait_queue_head_t deactivate_waitq;
1: + struct kernfs_node *kn;
1: + unsigned int flags;
1: + struct idr ino_idr;
1: + u32 last_id_lowbits;
1: + u32 id_highbits;
1: + struct kernfs_syscall_ops *syscall_ops;
1: + struct list_head supers;
1: + wait_queue_head_t deactivate_waitq;
1: };
1:
1: struct kernfs_elem_symlink {
1: - struct kernfs_node *target_kn;
1: + struct kernfs_node *target_kn;
1: };
1:
1: struct kernfs_ops;
1: @@ -5133,159 +5169,164 @@ struct kernfs_ops;
1: struct kernfs_open_node;
1:
1: struct kernfs_elem_attr {
1: - const struct kernfs_ops *ops;
1: - struct kernfs_open_node *open;
1: - loff_t size;
1: - struct kernfs_node *notify_next;
1: + const struct kernfs_ops *ops;
1: + struct kernfs_open_node *open;
1: + loff_t size;
1: + struct kernfs_node *notify_next;
1: };
1:
1: struct kernfs_iattrs;
1:
1: struct kernfs_node {
1: - atomic_t count;
1: - atomic_t active;
1: - struct kernfs_node *parent;
1: - const char *name;
1: - struct rb_node rb;
1: - const void *ns;
1: - unsigned int hash;
1: - union {
1: - struct kernfs_elem_dir dir;
1: - struct kernfs_elem_symlink symlink;
1: - struct kernfs_elem_attr attr;
1: - };
1: - void *priv;
1: - u64 id;
1: - short unsigned int flags;
1: - umode_t mode;
1: - struct kernfs_iattrs *iattr;
1: + atomic_t count;
1: + atomic_t active;
1: + struct kernfs_node *parent;
1: + const char *name;
1: + struct rb_node rb;
1: + const void *ns;
1: + unsigned int hash;
1: + union {
1: + struct kernfs_elem_dir dir;
1: + struct kernfs_elem_symlink symlink;
1: + struct kernfs_elem_attr attr;
1: + };
1: + void *priv;
1: + u64 id;
1: + short unsigned int flags;
1: + umode_t mode;
1: + struct kernfs_iattrs *iattr;
1: };
1:
1: struct kernfs_open_file;
1:
1: struct kernfs_ops {
1: - int (*open)(struct kernfs_open_file *);
1: - void (*release)(struct kernfs_open_file *);
1: - int (*seq_show)(struct seq_file *, void *);
1: - void * (*seq_start)(struct seq_file *, loff_t *);
1: - void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: - void (*seq_stop)(struct seq_file *, void *);
1: - ssize_t (*read)(struct kernfs_open_file *, char *, size_t, loff_t);
1: - size_t atomic_write_len;
1: - bool prealloc;
1: - ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: - __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: - int (*mmap)(struct kernfs_open_file *, struct vm_area_struct *);
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void *(*seq_start)(struct seq_file *, loff_t *);
1: + void *(*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + ssize_t (*read)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + size_t atomic_write_len;
1: + bool prealloc;
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: + int (*mmap)(struct kernfs_open_file *, struct vm_area_struct *);
1: };
1:
1: struct kernfs_syscall_ops {
1: - int (*show_options)(struct seq_file *, struct kernfs_root *);
1: - int (*mkdir)(struct kernfs_node *, const char *, umode_t);
1: - int (*rmdir)(struct kernfs_node *);
1: - int (*rename)(struct kernfs_node *, struct kernfs_node *, const char *);
1: - int (*show_path)(struct seq_file *, struct kernfs_node *, struct kernfs_root *);
1: + int (*show_options)(struct seq_file *, struct kernfs_root *);
1: + int (*mkdir)(struct kernfs_node *, const char *, umode_t);
1: + int (*rmdir)(struct kernfs_node *);
1: + int (*rename)(struct kernfs_node *, struct kernfs_node *, const char *);
1: + int (*show_path)(struct seq_file *, struct kernfs_node *,
1: + struct kernfs_root *);
1: };
1:
1: struct kernfs_open_file {
1: - struct kernfs_node *kn;
1: - struct file *file;
1: - struct seq_file *seq_file;
1: - void *priv;
1: - struct mutex mutex;
1: - struct mutex prealloc_mutex;
1: - int event;
1: - struct list_head list;
1: - char *prealloc_buf;
1: - size_t atomic_write_len;
1: - bool mmapped: 1;
1: - bool released: 1;
1: - const struct vm_operations_struct *vm_ops;
1: + struct kernfs_node *kn;
1: + struct file *file;
1: + struct seq_file *seq_file;
1: + void *priv;
1: + struct mutex mutex;
1: + struct mutex prealloc_mutex;
1: + int event;
1: + struct list_head list;
1: + char *prealloc_buf;
1: + size_t atomic_write_len;
1: + bool mmapped : 1;
1: + bool released : 1;
1: + const struct vm_operations_struct *vm_ops;
1: };
1:
1: enum kobj_ns_type {
1: - KOBJ_NS_TYPE_NONE = 0,
1: - KOBJ_NS_TYPE_NET = 1,
1: - KOBJ_NS_TYPES = 2,
1: + KOBJ_NS_TYPE_NONE = 0,
1: + KOBJ_NS_TYPE_NET = 1,
1: + KOBJ_NS_TYPES = 2,
1: };
1:
1: struct sock;
1:
1: struct kobj_ns_type_operations {
1: - enum kobj_ns_type type;
1: - bool (*current_may_mount)();
1: - void * (*grab_current_ns)();
1: - const void * (*netlink_ns)(struct sock *);
1: - const void * (*initial_ns)();
1: - void (*drop_ns)(void *);
1: + enum kobj_ns_type type;
1: + bool (*current_may_mount)();
1: + void *(*grab_current_ns)();
1: + const void *(*netlink_ns)(struct sock *);
1: + const void *(*initial_ns)();
1: + void (*drop_ns)(void *);
1: };
1:
1: struct attribute {
1: - const char *name;
1: - umode_t mode;
1: + const char *name;
1: + umode_t mode;
1: };
1:
1: struct bin_attribute;
1:
1: struct attribute_group {
1: - const char *name;
1: - umode_t (*is_visible)(struct kobject *, struct attribute *, int);
1: - umode_t (*is_bin_visible)(struct kobject *, struct bin_attribute *, int);
1: - struct attribute **attrs;
1: - struct bin_attribute **bin_attrs;
1: + const char *name;
1: + umode_t (*is_visible)(struct kobject *, struct attribute *, int);
1: + umode_t (*is_bin_visible)(struct kobject *, struct bin_attribute *, int);
1: + struct attribute **attrs;
1: + struct bin_attribute **bin_attrs;
1: };
1:
1: struct bin_attribute {
1: - struct attribute attr;
1: - size_t size;
1: - void *private;
1: - ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: - ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: - int (*mmap)(struct file *, struct kobject *, struct bin_attribute *, struct vm_area_struct *);
1: + struct attribute attr;
1: + size_t size;
1: + void *private;
1: + ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
1: + char *, loff_t, size_t);
1: + ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
1: + char *, loff_t, size_t);
1: + int (*mmap)(struct file *, struct kobject *, struct bin_attribute *,
1: + struct vm_area_struct *);
1: };
1:
1: struct sysfs_ops {
1: - ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: - ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: };
1:
1: struct kset_uevent_ops;
1:
1: struct kset {
1: - struct list_head list;
1: - spinlock_t list_lock;
1: - struct kobject kobj;
1: - const struct kset_uevent_ops *uevent_ops;
1: + struct list_head list;
1: + spinlock_t list_lock;
1: + struct kobject kobj;
1: + const struct kset_uevent_ops *uevent_ops;
1: };
1:
1: struct kobj_type {
1: - void (*release)(struct kobject *);
1: - const struct sysfs_ops *sysfs_ops;
1: - struct attribute **default_attrs;
1: - const struct attribute_group **default_groups;
1: - const struct kobj_ns_type_operations * (*child_ns_type)(struct kobject *);
1: - const void * (*namespace)(struct kobject *);
1: - void (*get_ownership)(struct kobject *, kuid_t *, kgid_t *);
1: + void (*release)(struct kobject *);
1: + const struct sysfs_ops *sysfs_ops;
1: + struct attribute **default_attrs;
1: + const struct attribute_group **default_groups;
1: + const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *);
1: + const void *(*namespace)(struct kobject *);
1: + void (*get_ownership)(struct kobject *, kuid_t *, kgid_t *);
1: };
1:
1: struct kobj_uevent_env {
1: - char *argv[3];
1: - char *envp[64];
1: - int envp_idx;
1: - char buf[2048];
1: - int buflen;
1: + char *argv[3];
1: + char *envp[64];
1: + int envp_idx;
1: + char buf[2048];
1: + int buflen;
1: };
1:
1: struct kset_uevent_ops {
1: - int (* const filter)(struct kset *, struct kobject *);
1: - const char * (* const name)(struct kset *, struct kobject *);
1: - int (* const uevent)(struct kset *, struct kobject *, struct kobj_uevent_env *);
1: + int (*const filter)(struct kset *, struct kobject *);
1: + const char *(*const name)(struct kset *, struct kobject *);
1: + int (*const uevent)(struct kset *, struct kobject *,
1: + struct kobj_uevent_env *);
1: };
1:
1: struct kernel_param_ops {
1: - unsigned int flags;
1: - int (*set)(const char *, const struct kernel_param *);
1: - int (*get)(char *, const struct kernel_param *);
1: - void (*free)(void *);
1: + unsigned int flags;
1: + int (*set)(const char *, const struct kernel_param *);
1: + int (*get)(char *, const struct kernel_param *);
1: + void (*free)(void *);
1: };
1:
1: struct kparam_string;
1: @@ -5293,198 +5334,199 @@ struct kparam_string;
1: struct kparam_array;
1:
1: struct kernel_param {
1: - const char *name;
1: - struct module *mod;
1: - const struct kernel_param_ops *ops;
1: - const u16 perm;
1: - s8 level;
1: - u8 flags;
1: - union {
1: - void *arg;
1: - const struct kparam_string *str;
1: - const struct kparam_array *arr;
1: - };
1: + const char *name;
1: + struct module *mod;
1: + const struct kernel_param_ops *ops;
1: + const u16 perm;
1: + s8 level;
1: + u8 flags;
1: + union {
1: + void *arg;
1: + const struct kparam_string *str;
1: + const struct kparam_array *arr;
1: + };
1: };
1:
1: struct kparam_string {
1: - unsigned int maxlen;
1: - char *string;
1: + unsigned int maxlen;
1: + char *string;
1: };
1:
1: struct kparam_array {
1: - unsigned int max;
1: - unsigned int elemsize;
1: - unsigned int *num;
1: - const struct kernel_param_ops *ops;
1: - void *elem;
1: + unsigned int max;
1: + unsigned int elemsize;
1: + unsigned int *num;
1: + const struct kernel_param_ops *ops;
1: + void *elem;
1: };
1:
1: struct error_injection_entry {
1: - long unsigned int addr;
1: - int etype;
1: + long unsigned int addr;
1: + int etype;
1: };
1:
1: struct tracepoint_func {
1: - void *func;
1: - void *data;
1: - int prio;
1: + void *func;
1: + void *data;
1: + int prio;
1: };
1:
1: struct static_call_key;
1:
1: struct tracepoint {
1: - const char *name;
1: - struct static_key key;
1: - struct static_call_key *static_call_key;
1: - void *static_call_tramp;
1: - void *iterator;
1: - int (*regfunc)();
1: - void (*unregfunc)();
1: - struct tracepoint_func *funcs;
1: + const char *name;
1: + struct static_key key;
1: + struct static_call_key *static_call_key;
1: + void *static_call_tramp;
1: + void *iterator;
1: + int (*regfunc)();
1: + void (*unregfunc)();
1: + struct tracepoint_func *funcs;
1: };
1:
1: struct static_call_key {
1: - void *func;
1: + void *func;
1: };
1:
1: struct bpf_raw_event_map {
1: - struct tracepoint *tp;
1: - void *bpf_func;
1: - u32 num_args;
1: - u32 writable_size;
1: - long: 64;
1: + struct tracepoint *tp;
1: + void *bpf_func;
1: + u32 num_args;
1: + u32 writable_size;
1: + long : 64;
1: };
1:
1: struct plt_entry {
1: - __le32 adrp;
1: - __le32 add;
1: - __le32 br;
1: + __le32 adrp;
1: + __le32 add;
1: + __le32 br;
1: };
1:
1: struct module_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct module_attribute *, struct module_kobject *, char *);
1: - ssize_t (*store)(struct module_attribute *, struct module_kobject *, const char *, size_t);
1: - void (*setup)(struct module *, const char *);
1: - int (*test)(struct module *);
1: - void (*free)(struct module *);
1: + struct attribute attr;
1: + ssize_t (*show)(struct module_attribute *, struct module_kobject *, char *);
1: + ssize_t (*store)(struct module_attribute *, struct module_kobject *,
1: + const char *, size_t);
1: + void (*setup)(struct module *, const char *);
1: + int (*test)(struct module *);
1: + void (*free)(struct module *);
1: };
1:
1: struct trace_event_functions;
1:
1: struct trace_event {
1: - struct hlist_node node;
1: - struct list_head list;
1: - int type;
1: - struct trace_event_functions *funcs;
1: + struct hlist_node node;
1: + struct list_head list;
1: + int type;
1: + struct trace_event_functions *funcs;
1: };
1:
1: struct trace_event_class;
1:
1: struct trace_event_call {
1: - struct list_head list;
1: - struct trace_event_class *class;
1: - union {
1: - char *name;
1: - struct tracepoint *tp;
1: - };
1: - struct trace_event event;
1: - char *print_fmt;
1: - struct event_filter *filter;
1: - void *mod;
1: - void *data;
1: - int flags;
1: - int perf_refcount;
1: - struct hlist_head *perf_events;
1: - struct bpf_prog_array *prog_array;
1: - int (*perf_perm)(struct trace_event_call *, struct perf_event *);
1: + struct list_head list;
1: + struct trace_event_class *class;
1: + union {
1: + char *name;
1: + struct tracepoint *tp;
1: + };
1: + struct trace_event event;
1: + char *print_fmt;
1: + struct event_filter *filter;
1: + void *mod;
1: + void *data;
1: + int flags;
1: + int perf_refcount;
1: + struct hlist_head *perf_events;
1: + struct bpf_prog_array *prog_array;
1: + int (*perf_perm)(struct trace_event_call *, struct perf_event *);
1: };
1:
1: struct trace_eval_map {
1: - const char *system;
1: - const char *eval_string;
1: - long unsigned int eval_value;
1: + const char *system;
1: + const char *eval_string;
1: + long unsigned int eval_value;
1: };
1:
1: struct linux_binprm {
1: - struct vm_area_struct *vma;
1: - long unsigned int vma_pages;
1: - struct mm_struct *mm;
1: - long unsigned int p;
1: - long unsigned int argmin;
1: - unsigned int have_execfd: 1;
1: - unsigned int execfd_creds: 1;
1: - unsigned int secureexec: 1;
1: - unsigned int point_of_no_return: 1;
1: - struct file *executable;
1: - struct file *interpreter;
1: - struct file *file;
1: - struct cred *cred;
1: - int unsafe;
1: - unsigned int per_clear;
1: - int argc;
1: - int envc;
1: - const char *filename;
1: - const char *interp;
1: - const char *fdpath;
1: - unsigned int interp_flags;
1: - int execfd;
1: - long unsigned int loader;
1: - long unsigned int exec;
1: - struct rlimit rlim_stack;
1: - char buf[256];
1: + struct vm_area_struct *vma;
1: + long unsigned int vma_pages;
1: + struct mm_struct *mm;
1: + long unsigned int p;
1: + long unsigned int argmin;
1: + unsigned int have_execfd : 1;
1: + unsigned int execfd_creds : 1;
1: + unsigned int secureexec : 1;
1: + unsigned int point_of_no_return : 1;
1: + struct file *executable;
1: + struct file *interpreter;
1: + struct file *file;
1: + struct cred *cred;
1: + int unsafe;
1: + unsigned int per_clear;
1: + int argc;
1: + int envc;
1: + const char *filename;
1: + const char *interp;
1: + const char *fdpath;
1: + unsigned int interp_flags;
1: + int execfd;
1: + long unsigned int loader;
1: + long unsigned int exec;
1: + struct rlimit rlim_stack;
1: + char buf[256];
1: };
1:
1: struct coredump_params {
1: - const kernel_siginfo_t *siginfo;
1: - struct pt_regs *regs;
1: - struct file *file;
1: - long unsigned int limit;
1: - long unsigned int mm_flags;
1: - loff_t written;
1: - loff_t pos;
1: + const kernel_siginfo_t *siginfo;
1: + struct pt_regs *regs;
1: + struct file *file;
1: + long unsigned int limit;
1: + long unsigned int mm_flags;
1: + loff_t written;
1: + loff_t pos;
1: };
1:
1: struct em_perf_state {
1: - long unsigned int frequency;
1: - long unsigned int power;
1: - long unsigned int cost;
1: + long unsigned int frequency;
1: + long unsigned int power;
1: + long unsigned int cost;
1: };
1:
1: struct em_perf_domain {
1: - struct em_perf_state *table;
1: - int nr_perf_states;
1: - long unsigned int cpus[0];
1: + struct em_perf_state *table;
1: + int nr_perf_states;
1: + long unsigned int cpus[0];
1: };
1:
1: enum dl_dev_state {
1: - DL_DEV_NO_DRIVER = 0,
1: - DL_DEV_PROBING = 1,
1: - DL_DEV_DRIVER_BOUND = 2,
1: - DL_DEV_UNBINDING = 3,
1: + DL_DEV_NO_DRIVER = 0,
1: + DL_DEV_PROBING = 1,
1: + DL_DEV_DRIVER_BOUND = 2,
1: + DL_DEV_UNBINDING = 3,
1: };
1:
1: struct dev_links_info {
1: - struct list_head suppliers;
1: - struct list_head consumers;
1: - struct list_head needs_suppliers;
1: - struct list_head defer_hook;
1: - bool need_for_probe;
1: - enum dl_dev_state status;
1: + struct list_head suppliers;
1: + struct list_head consumers;
1: + struct list_head needs_suppliers;
1: + struct list_head defer_hook;
1: + bool need_for_probe;
1: + enum dl_dev_state status;
1: };
1:
1: struct pm_message {
1: - int event;
1: + int event;
1: };
1:
1: typedef struct pm_message pm_message_t;
1:
1: enum rpm_request {
1: - RPM_REQ_NONE = 0,
1: - RPM_REQ_IDLE = 1,
1: - RPM_REQ_SUSPEND = 2,
1: - RPM_REQ_AUTOSUSPEND = 3,
1: - RPM_REQ_RESUME = 4,
1: + RPM_REQ_NONE = 0,
1: + RPM_REQ_IDLE = 1,
1: + RPM_REQ_SUSPEND = 2,
1: + RPM_REQ_AUTOSUSPEND = 3,
1: + RPM_REQ_RESUME = 4,
1: };
1:
1: struct wakeup_source;
1: @@ -5496,57 +5538,57 @@ struct pm_subsys_data;
1: struct dev_pm_qos;
1:
1: struct dev_pm_info {
1: - pm_message_t power_state;
1: - unsigned int can_wakeup: 1;
1: - unsigned int async_suspend: 1;
1: - bool in_dpm_list: 1;
1: - bool is_prepared: 1;
1: - bool is_suspended: 1;
1: - bool is_noirq_suspended: 1;
1: - bool is_late_suspended: 1;
1: - bool no_pm: 1;
1: - bool early_init: 1;
1: - bool direct_complete: 1;
1: - u32 driver_flags;
1: - spinlock_t lock;
1: - struct list_head entry;
1: - struct completion completion;
1: - struct wakeup_source *wakeup;
1: - bool wakeup_path: 1;
1: - bool syscore: 1;
1: - bool no_pm_callbacks: 1;
1: - unsigned int must_resume: 1;
1: - unsigned int may_skip_resume: 1;
1: - struct hrtimer suspend_timer;
1: - u64 timer_expires;
1: - struct work_struct work;
1: - wait_queue_head_t wait_queue;
1: - struct wake_irq *wakeirq;
1: - atomic_t usage_count;
1: - atomic_t child_count;
1: - unsigned int disable_depth: 3;
1: - unsigned int idle_notification: 1;
1: - unsigned int request_pending: 1;
1: - unsigned int deferred_resume: 1;
1: - unsigned int runtime_auto: 1;
1: - bool ignore_children: 1;
1: - unsigned int no_callbacks: 1;
1: - unsigned int irq_safe: 1;
1: - unsigned int use_autosuspend: 1;
1: - unsigned int timer_autosuspends: 1;
1: - unsigned int memalloc_noio: 1;
1: - unsigned int links_count;
1: - enum rpm_request request;
1: - enum rpm_status runtime_status;
1: - int runtime_error;
1: - int autosuspend_delay;
1: - u64 last_busy;
1: - u64 active_time;
1: - u64 suspended_time;
1: - u64 accounting_timestamp;
1: - struct pm_subsys_data *subsys_data;
1: - void (*set_latency_tolerance)(struct device *, s32);
1: - struct dev_pm_qos *qos;
1: + pm_message_t power_state;
1: + unsigned int can_wakeup : 1;
1: + unsigned int async_suspend : 1;
1: + bool in_dpm_list : 1;
1: + bool is_prepared : 1;
1: + bool is_suspended : 1;
1: + bool is_noirq_suspended : 1;
1: + bool is_late_suspended : 1;
1: + bool no_pm : 1;
1: + bool early_init : 1;
1: + bool direct_complete : 1;
1: + u32 driver_flags;
1: + spinlock_t lock;
1: + struct list_head entry;
1: + struct completion completion;
1: + struct wakeup_source *wakeup;
1: + bool wakeup_path : 1;
1: + bool syscore : 1;
1: + bool no_pm_callbacks : 1;
1: + unsigned int must_resume : 1;
1: + unsigned int may_skip_resume : 1;
1: + struct hrtimer suspend_timer;
1: + u64 timer_expires;
1: + struct work_struct work;
1: + wait_queue_head_t wait_queue;
1: + struct wake_irq *wakeirq;
1: + atomic_t usage_count;
1: + atomic_t child_count;
1: + unsigned int disable_depth : 3;
1: + unsigned int idle_notification : 1;
1: + unsigned int request_pending : 1;
1: + unsigned int deferred_resume : 1;
1: + unsigned int runtime_auto : 1;
1: + bool ignore_children : 1;
1: + unsigned int no_callbacks : 1;
1: + unsigned int irq_safe : 1;
1: + unsigned int use_autosuspend : 1;
1: + unsigned int timer_autosuspends : 1;
1: + unsigned int memalloc_noio : 1;
1: + unsigned int links_count;
1: + enum rpm_request request;
1: + enum rpm_status runtime_status;
1: + int runtime_error;
1: + int autosuspend_delay;
1: + u64 last_busy;
1: + u64 active_time;
1: + u64 suspended_time;
1: + u64 accounting_timestamp;
1: + struct pm_subsys_data *subsys_data;
1: + void (*set_latency_tolerance)(struct device *, s32);
1: + struct dev_pm_qos *qos;
1: };
1:
1: struct dev_archdata {};
1: @@ -5586,117 +5628,117 @@ struct iommu_group;
1: struct dev_iommu;
1:
1: struct device {
1: - struct kobject kobj;
1: - struct device *parent;
1: - struct device_private *p;
1: - const char *init_name;
1: - const struct device_type *type;
1: - struct bus_type *bus;
1: - struct device_driver *driver;
1: - void *platform_data;
1: - void *driver_data;
1: - struct mutex mutex;
1: - struct dev_links_info links;
1: - struct dev_pm_info power;
1: - struct dev_pm_domain *pm_domain;
1: - struct em_perf_domain *em_pd;
1: - struct irq_domain *msi_domain;
1: - struct dev_pin_info *pins;
1: - struct list_head msi_list;
1: - const struct dma_map_ops *dma_ops;
1: - u64 *dma_mask;
1: - u64 coherent_dma_mask;
1: - u64 bus_dma_limit;
1: - const struct bus_dma_region *dma_range_map;
1: - struct device_dma_parameters *dma_parms;
1: - struct list_head dma_pools;
1: - struct dma_coherent_mem *dma_mem;
1: - struct cma *cma_area;
1: - struct dev_archdata archdata;
1: - struct device_node *of_node;
1: - struct fwnode_handle *fwnode;
1: - int numa_node;
1: - dev_t devt;
1: - u32 id;
1: - spinlock_t devres_lock;
1: - struct list_head devres_head;
1: - struct class *class;
1: - const struct attribute_group **groups;
1: - void (*release)(struct device *);
1: - struct iommu_group *iommu_group;
1: - struct dev_iommu *iommu;
1: - bool offline_disabled: 1;
1: - bool offline: 1;
1: - bool of_node_reused: 1;
1: - bool state_synced: 1;
1: - bool dma_coherent: 1;
1: + struct kobject kobj;
1: + struct device *parent;
1: + struct device_private *p;
1: + const char *init_name;
1: + const struct device_type *type;
1: + struct bus_type *bus;
1: + struct device_driver *driver;
1: + void *platform_data;
1: + void *driver_data;
1: + struct mutex mutex;
1: + struct dev_links_info links;
1: + struct dev_pm_info power;
1: + struct dev_pm_domain *pm_domain;
1: + struct em_perf_domain *em_pd;
1: + struct irq_domain *msi_domain;
1: + struct dev_pin_info *pins;
1: + struct list_head msi_list;
1: + const struct dma_map_ops *dma_ops;
1: + u64 *dma_mask;
1: + u64 coherent_dma_mask;
1: + u64 bus_dma_limit;
1: + const struct bus_dma_region *dma_range_map;
1: + struct device_dma_parameters *dma_parms;
1: + struct list_head dma_pools;
1: + struct dma_coherent_mem *dma_mem;
1: + struct cma *cma_area;
1: + struct dev_archdata archdata;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + int numa_node;
1: + dev_t devt;
1: + u32 id;
1: + spinlock_t devres_lock;
1: + struct list_head devres_head;
1: + struct class *class;
1: + const struct attribute_group **groups;
1: + void (*release)(struct device *);
1: + struct iommu_group *iommu_group;
1: + struct dev_iommu *iommu;
1: + bool offline_disabled : 1;
1: + bool offline : 1;
1: + bool of_node_reused : 1;
1: + bool state_synced : 1;
1: + bool dma_coherent : 1;
1: };
1:
1: struct dev_pm_ops {
1: - int (*prepare)(struct device *);
1: - void (*complete)(struct device *);
1: - int (*suspend)(struct device *);
1: - int (*resume)(struct device *);
1: - int (*freeze)(struct device *);
1: - int (*thaw)(struct device *);
1: - int (*poweroff)(struct device *);
1: - int (*restore)(struct device *);
1: - int (*suspend_late)(struct device *);
1: - int (*resume_early)(struct device *);
1: - int (*freeze_late)(struct device *);
1: - int (*thaw_early)(struct device *);
1: - int (*poweroff_late)(struct device *);
1: - int (*restore_early)(struct device *);
1: - int (*suspend_noirq)(struct device *);
1: - int (*resume_noirq)(struct device *);
1: - int (*freeze_noirq)(struct device *);
1: - int (*thaw_noirq)(struct device *);
1: - int (*poweroff_noirq)(struct device *);
1: - int (*restore_noirq)(struct device *);
1: - int (*runtime_suspend)(struct device *);
1: - int (*runtime_resume)(struct device *);
1: - int (*runtime_idle)(struct device *);
1: + int (*prepare)(struct device *);
1: + void (*complete)(struct device *);
1: + int (*suspend)(struct device *);
1: + int (*resume)(struct device *);
1: + int (*freeze)(struct device *);
1: + int (*thaw)(struct device *);
1: + int (*poweroff)(struct device *);
1: + int (*restore)(struct device *);
1: + int (*suspend_late)(struct device *);
1: + int (*resume_early)(struct device *);
1: + int (*freeze_late)(struct device *);
1: + int (*thaw_early)(struct device *);
1: + int (*poweroff_late)(struct device *);
1: + int (*restore_early)(struct device *);
1: + int (*suspend_noirq)(struct device *);
1: + int (*resume_noirq)(struct device *);
1: + int (*freeze_noirq)(struct device *);
1: + int (*thaw_noirq)(struct device *);
1: + int (*poweroff_noirq)(struct device *);
1: + int (*restore_noirq)(struct device *);
1: + int (*runtime_suspend)(struct device *);
1: + int (*runtime_resume)(struct device *);
1: + int (*runtime_idle)(struct device *);
1: };
1:
1: struct pm_domain_data;
1:
1: struct pm_subsys_data {
1: - spinlock_t lock;
1: - unsigned int refcount;
1: - struct list_head clock_list;
1: - struct pm_domain_data *domain_data;
1: + spinlock_t lock;
1: + unsigned int refcount;
1: + struct list_head clock_list;
1: + struct pm_domain_data *domain_data;
1: };
1:
1: struct wakeup_source {
1: - const char *name;
1: - int id;
1: - struct list_head entry;
1: - spinlock_t lock;
1: - struct wake_irq *wakeirq;
1: - struct timer_list timer;
1: - long unsigned int timer_expires;
1: - ktime_t total_time;
1: - ktime_t max_time;
1: - ktime_t last_time;
1: - ktime_t start_prevent_time;
1: - ktime_t prevent_sleep_time;
1: - long unsigned int event_count;
1: - long unsigned int active_count;
1: - long unsigned int relax_count;
1: - long unsigned int expire_count;
1: - long unsigned int wakeup_count;
1: - struct device *dev;
1: - bool active: 1;
1: - bool autosleep_enabled: 1;
1: + const char *name;
1: + int id;
1: + struct list_head entry;
1: + spinlock_t lock;
1: + struct wake_irq *wakeirq;
1: + struct timer_list timer;
1: + long unsigned int timer_expires;
1: + ktime_t total_time;
1: + ktime_t max_time;
1: + ktime_t last_time;
1: + ktime_t start_prevent_time;
1: + ktime_t prevent_sleep_time;
1: + long unsigned int event_count;
1: + long unsigned int active_count;
1: + long unsigned int relax_count;
1: + long unsigned int expire_count;
1: + long unsigned int wakeup_count;
1: + struct device *dev;
1: + bool active : 1;
1: + bool autosleep_enabled : 1;
1: };
1:
1: struct dev_pm_domain {
1: - struct dev_pm_ops ops;
1: - int (*start)(struct device *);
1: - void (*detach)(struct device *, bool);
1: - int (*activate)(struct device *);
1: - void (*sync)(struct device *);
1: - void (*dismiss)(struct device *);
1: + struct dev_pm_ops ops;
1: + int (*start)(struct device *);
1: + void (*detach)(struct device *, bool);
1: + int (*activate)(struct device *);
1: + void (*sync)(struct device *);
1: + void (*dismiss)(struct device *);
1: };
1:
1: struct iommu_ops;
1: @@ -5704,35 +5746,35 @@ struct iommu_ops;
1: struct subsys_private;
1:
1: struct bus_type {
1: - const char *name;
1: - const char *dev_name;
1: - struct device *dev_root;
1: - const struct attribute_group **bus_groups;
1: - const struct attribute_group **dev_groups;
1: - const struct attribute_group **drv_groups;
1: - int (*match)(struct device *, struct device_driver *);
1: - int (*uevent)(struct device *, struct kobj_uevent_env *);
1: - int (*probe)(struct device *);
1: - void (*sync_state)(struct device *);
1: - int (*remove)(struct device *);
1: - void (*shutdown)(struct device *);
1: - int (*online)(struct device *);
1: - int (*offline)(struct device *);
1: - int (*suspend)(struct device *, pm_message_t);
1: - int (*resume)(struct device *);
1: - int (*num_vf)(struct device *);
1: - int (*dma_configure)(struct device *);
1: - const struct dev_pm_ops *pm;
1: - const struct iommu_ops *iommu_ops;
1: - struct subsys_private *p;
1: - struct lock_class_key lock_key;
1: - bool need_parent_lock;
1: + const char *name;
1: + const char *dev_name;
1: + struct device *dev_root;
1: + const struct attribute_group **bus_groups;
1: + const struct attribute_group **dev_groups;
1: + const struct attribute_group **drv_groups;
1: + int (*match)(struct device *, struct device_driver *);
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*online)(struct device *);
1: + int (*offline)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + int (*num_vf)(struct device *);
1: + int (*dma_configure)(struct device *);
1: + const struct dev_pm_ops *pm;
1: + const struct iommu_ops *iommu_ops;
1: + struct subsys_private *p;
1: + struct lock_class_key lock_key;
1: + bool need_parent_lock;
1: };
1:
1: enum probe_type {
1: - PROBE_DEFAULT_STRATEGY = 0,
1: - PROBE_PREFER_ASYNCHRONOUS = 1,
1: - PROBE_FORCE_SYNCHRONOUS = 2,
1: + PROBE_DEFAULT_STRATEGY = 0,
1: + PROBE_PREFER_ASYNCHRONOUS = 1,
1: + PROBE_FORCE_SYNCHRONOUS = 2,
1: };
1:
1: struct of_device_id;
1: @@ -5742,48 +5784,48 @@ struct acpi_device_id;
1: struct driver_private;
1:
1: struct device_driver {
1: - const char *name;
1: - struct bus_type *bus;
1: - struct module *owner;
1: - const char *mod_name;
1: - bool suppress_bind_attrs;
1: - enum probe_type probe_type;
1: - const struct of_device_id *of_match_table;
1: - const struct acpi_device_id *acpi_match_table;
1: - int (*probe)(struct device *);
1: - void (*sync_state)(struct device *);
1: - int (*remove)(struct device *);
1: - void (*shutdown)(struct device *);
1: - int (*suspend)(struct device *, pm_message_t);
1: - int (*resume)(struct device *);
1: - const struct attribute_group **groups;
1: - const struct attribute_group **dev_groups;
1: - const struct dev_pm_ops *pm;
1: - void (*coredump)(struct device *);
1: - struct driver_private *p;
1: + const char *name;
1: + struct bus_type *bus;
1: + struct module *owner;
1: + const char *mod_name;
1: + bool suppress_bind_attrs;
1: + enum probe_type probe_type;
1: + const struct of_device_id *of_match_table;
1: + const struct acpi_device_id *acpi_match_table;
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + const struct attribute_group **groups;
1: + const struct attribute_group **dev_groups;
1: + const struct dev_pm_ops *pm;
1: + void (*coredump)(struct device *);
1: + struct driver_private *p;
1: };
1:
1: enum iommu_cap {
1: - IOMMU_CAP_CACHE_COHERENCY = 0,
1: - IOMMU_CAP_INTR_REMAP = 1,
1: - IOMMU_CAP_NOEXEC = 2,
1: + IOMMU_CAP_CACHE_COHERENCY = 0,
1: + IOMMU_CAP_INTR_REMAP = 1,
1: + IOMMU_CAP_NOEXEC = 2,
1: };
1:
1: enum iommu_attr {
1: - DOMAIN_ATTR_GEOMETRY = 0,
1: - DOMAIN_ATTR_PAGING = 1,
1: - DOMAIN_ATTR_WINDOWS = 2,
1: - DOMAIN_ATTR_FSL_PAMU_STASH = 3,
1: - DOMAIN_ATTR_FSL_PAMU_ENABLE = 4,
1: - DOMAIN_ATTR_FSL_PAMUV1 = 5,
1: - DOMAIN_ATTR_NESTING = 6,
1: - DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE = 7,
1: - DOMAIN_ATTR_MAX = 8,
1: + DOMAIN_ATTR_GEOMETRY = 0,
1: + DOMAIN_ATTR_PAGING = 1,
1: + DOMAIN_ATTR_WINDOWS = 2,
1: + DOMAIN_ATTR_FSL_PAMU_STASH = 3,
1: + DOMAIN_ATTR_FSL_PAMU_ENABLE = 4,
1: + DOMAIN_ATTR_FSL_PAMUV1 = 5,
1: + DOMAIN_ATTR_NESTING = 6,
1: + DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE = 7,
1: + DOMAIN_ATTR_MAX = 8,
1: };
1:
1: enum iommu_dev_features {
1: - IOMMU_DEV_FEAT_AUX = 0,
1: - IOMMU_DEV_FEAT_SVA = 1,
1: + IOMMU_DEV_FEAT_AUX = 0,
1: + IOMMU_DEV_FEAT_SVA = 1,
1: };
1:
1: struct iommu_domain;
1: @@ -5807,109 +5849,116 @@ struct iommu_cache_invalidate_info;
1: struct iommu_gpasid_bind_data;
1:
1: struct iommu_ops {
1: - bool (*capable)(enum iommu_cap);
1: - struct iommu_domain * (*domain_alloc)(unsigned int);
1: - void (*domain_free)(struct iommu_domain *);
1: - int (*attach_dev)(struct iommu_domain *, struct device *);
1: - void (*detach_dev)(struct iommu_domain *, struct device *);
1: - int (*map)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int, gfp_t);
1: - size_t (*unmap)(struct iommu_domain *, long unsigned int, size_t, struct iommu_iotlb_gather *);
1: - void (*flush_iotlb_all)(struct iommu_domain *);
1: - void (*iotlb_sync_map)(struct iommu_domain *);
1: - void (*iotlb_sync)(struct iommu_domain *, struct iommu_iotlb_gather *);
1: - phys_addr_t (*iova_to_phys)(struct iommu_domain *, dma_addr_t);
1: - struct iommu_device * (*probe_device)(struct device *);
1: - void (*release_device)(struct device *);
1: - void (*probe_finalize)(struct device *);
1: - struct iommu_group * (*device_group)(struct device *);
1: - int (*domain_get_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: - int (*domain_set_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: - void (*get_resv_regions)(struct device *, struct list_head *);
1: - void (*put_resv_regions)(struct device *, struct list_head *);
1: - void (*apply_resv_region)(struct device *, struct iommu_domain *, struct iommu_resv_region *);
1: - int (*domain_window_enable)(struct iommu_domain *, u32, phys_addr_t, u64, int);
1: - void (*domain_window_disable)(struct iommu_domain *, u32);
1: - int (*of_xlate)(struct device *, struct of_phandle_args *);
1: - bool (*is_attach_deferred)(struct iommu_domain *, struct device *);
1: - bool (*dev_has_feat)(struct device *, enum iommu_dev_features);
1: - bool (*dev_feat_enabled)(struct device *, enum iommu_dev_features);
1: - int (*dev_enable_feat)(struct device *, enum iommu_dev_features);
1: - int (*dev_disable_feat)(struct device *, enum iommu_dev_features);
1: - int (*aux_attach_dev)(struct iommu_domain *, struct device *);
1: - void (*aux_detach_dev)(struct iommu_domain *, struct device *);
1: - int (*aux_get_pasid)(struct iommu_domain *, struct device *);
1: - struct iommu_sva * (*sva_bind)(struct device *, struct mm_struct *, void *);
1: - void (*sva_unbind)(struct iommu_sva *);
1: - u32 (*sva_get_pasid)(struct iommu_sva *);
1: - int (*page_response)(struct device *, struct iommu_fault_event *, struct iommu_page_response *);
1: - int (*cache_invalidate)(struct iommu_domain *, struct device *, struct iommu_cache_invalidate_info *);
1: - int (*sva_bind_gpasid)(struct iommu_domain *, struct device *, struct iommu_gpasid_bind_data *);
1: - int (*sva_unbind_gpasid)(struct device *, u32);
1: - int (*def_domain_type)(struct device *);
1: - long unsigned int pgsize_bitmap;
1: - struct module *owner;
1: + bool (*capable)(enum iommu_cap);
1: + struct iommu_domain *(*domain_alloc)(unsigned int);
1: + void (*domain_free)(struct iommu_domain *);
1: + int (*attach_dev)(struct iommu_domain *, struct device *);
1: + void (*detach_dev)(struct iommu_domain *, struct device *);
1: + int (*map)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int,
1: + gfp_t);
1: + size_t (*unmap)(struct iommu_domain *, long unsigned int, size_t,
1: + struct iommu_iotlb_gather *);
1: + void (*flush_iotlb_all)(struct iommu_domain *);
1: + void (*iotlb_sync_map)(struct iommu_domain *);
1: + void (*iotlb_sync)(struct iommu_domain *, struct iommu_iotlb_gather *);
1: + phys_addr_t (*iova_to_phys)(struct iommu_domain *, dma_addr_t);
1: + struct iommu_device *(*probe_device)(struct device *);
1: + void (*release_device)(struct device *);
1: + void (*probe_finalize)(struct device *);
1: + struct iommu_group *(*device_group)(struct device *);
1: + int (*domain_get_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + int (*domain_set_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + void (*get_resv_regions)(struct device *, struct list_head *);
1: + void (*put_resv_regions)(struct device *, struct list_head *);
1: + void (*apply_resv_region)(struct device *, struct iommu_domain *,
1: + struct iommu_resv_region *);
1: + int (*domain_window_enable)(struct iommu_domain *, u32, phys_addr_t, u64,
1: + int);
1: + void (*domain_window_disable)(struct iommu_domain *, u32);
1: + int (*of_xlate)(struct device *, struct of_phandle_args *);
1: + bool (*is_attach_deferred)(struct iommu_domain *, struct device *);
1: + bool (*dev_has_feat)(struct device *, enum iommu_dev_features);
1: + bool (*dev_feat_enabled)(struct device *, enum iommu_dev_features);
1: + int (*dev_enable_feat)(struct device *, enum iommu_dev_features);
1: + int (*dev_disable_feat)(struct device *, enum iommu_dev_features);
1: + int (*aux_attach_dev)(struct iommu_domain *, struct device *);
1: + void (*aux_detach_dev)(struct iommu_domain *, struct device *);
1: + int (*aux_get_pasid)(struct iommu_domain *, struct device *);
1: + struct iommu_sva *(*sva_bind)(struct device *, struct mm_struct *, void *);
1: + void (*sva_unbind)(struct iommu_sva *);
1: + u32 (*sva_get_pasid)(struct iommu_sva *);
1: + int (*page_response)(struct device *, struct iommu_fault_event *,
1: + struct iommu_page_response *);
1: + int (*cache_invalidate)(struct iommu_domain *, struct device *,
1: + struct iommu_cache_invalidate_info *);
1: + int (*sva_bind_gpasid)(struct iommu_domain *, struct device *,
1: + struct iommu_gpasid_bind_data *);
1: + int (*sva_unbind_gpasid)(struct device *, u32);
1: + int (*def_domain_type)(struct device *);
1: + long unsigned int pgsize_bitmap;
1: + struct module *owner;
1: };
1:
1: struct device_type {
1: - const char *name;
1: - const struct attribute_group **groups;
1: - int (*uevent)(struct device *, struct kobj_uevent_env *);
1: - char * (*devnode)(struct device *, umode_t *, kuid_t *, kgid_t *);
1: - void (*release)(struct device *);
1: - const struct dev_pm_ops *pm;
1: + const char *name;
1: + const struct attribute_group **groups;
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + char *(*devnode)(struct device *, umode_t *, kuid_t *, kgid_t *);
1: + void (*release)(struct device *);
1: + const struct dev_pm_ops *pm;
1: };
1:
1: struct class {
1: - const char *name;
1: - struct module *owner;
1: - const struct attribute_group **class_groups;
1: - const struct attribute_group **dev_groups;
1: - struct kobject *dev_kobj;
1: - int (*dev_uevent)(struct device *, struct kobj_uevent_env *);
1: - char * (*devnode)(struct device *, umode_t *);
1: - void (*class_release)(struct class *);
1: - void (*dev_release)(struct device *);
1: - int (*shutdown_pre)(struct device *);
1: - const struct kobj_ns_type_operations *ns_type;
1: - const void * (*namespace)(struct device *);
1: - void (*get_ownership)(struct device *, kuid_t *, kgid_t *);
1: - const struct dev_pm_ops *pm;
1: - struct subsys_private *p;
1: + const char *name;
1: + struct module *owner;
1: + const struct attribute_group **class_groups;
1: + const struct attribute_group **dev_groups;
1: + struct kobject *dev_kobj;
1: + int (*dev_uevent)(struct device *, struct kobj_uevent_env *);
1: + char *(*devnode)(struct device *, umode_t *);
1: + void (*class_release)(struct class *);
1: + void (*dev_release)(struct device *);
1: + int (*shutdown_pre)(struct device *);
1: + const struct kobj_ns_type_operations *ns_type;
1: + const void *(*namespace)(struct device *);
1: + void (*get_ownership)(struct device *, kuid_t *, kgid_t *);
1: + const struct dev_pm_ops *pm;
1: + struct subsys_private *p;
1: };
1:
1: struct of_device_id {
1: - char name[32];
1: - char type[32];
1: - char compatible[128];
1: - const void *data;
1: + char name[32];
1: + char type[32];
1: + char compatible[128];
1: + const void *data;
1: };
1:
1: typedef long unsigned int kernel_ulong_t;
1:
1: struct acpi_device_id {
1: - __u8 id[9];
1: - kernel_ulong_t driver_data;
1: - __u32 cls;
1: - __u32 cls_msk;
1: + __u8 id[9];
1: + kernel_ulong_t driver_data;
1: + __u32 cls;
1: + __u32 cls_msk;
1: };
1:
1: struct device_dma_parameters {
1: - unsigned int max_segment_size;
1: - long unsigned int segment_boundary_mask;
1: + unsigned int max_segment_size;
1: + long unsigned int segment_boundary_mask;
1: };
1:
1: enum irq_domain_bus_token {
1: - DOMAIN_BUS_ANY = 0,
1: - DOMAIN_BUS_WIRED = 1,
1: - DOMAIN_BUS_GENERIC_MSI = 2,
1: - DOMAIN_BUS_PCI_MSI = 3,
1: - DOMAIN_BUS_PLATFORM_MSI = 4,
1: - DOMAIN_BUS_NEXUS = 5,
1: - DOMAIN_BUS_IPI = 6,
1: - DOMAIN_BUS_FSL_MC_MSI = 7,
1: - DOMAIN_BUS_TI_SCI_INTA_MSI = 8,
1: - DOMAIN_BUS_WAKEUP = 9,
1: - DOMAIN_BUS_VMD_MSI = 10,
1: + DOMAIN_BUS_ANY = 0,
1: + DOMAIN_BUS_WIRED = 1,
1: + DOMAIN_BUS_GENERIC_MSI = 2,
1: + DOMAIN_BUS_PCI_MSI = 3,
1: + DOMAIN_BUS_PLATFORM_MSI = 4,
1: + DOMAIN_BUS_NEXUS = 5,
1: + DOMAIN_BUS_IPI = 6,
1: + DOMAIN_BUS_FSL_MC_MSI = 7,
1: + DOMAIN_BUS_TI_SCI_INTA_MSI = 8,
1: + DOMAIN_BUS_WAKEUP = 9,
1: + DOMAIN_BUS_VMD_MSI = 10,
1: };
1:
1: struct irq_domain_ops;
1: @@ -5917,29 +5966,29 @@ struct irq_domain_ops;
1: struct irq_domain_chip_generic;
1:
1: struct irq_domain {
1: - struct list_head link;
1: - const char *name;
1: - const struct irq_domain_ops *ops;
1: - void *host_data;
1: - unsigned int flags;
1: - unsigned int mapcount;
1: - struct fwnode_handle *fwnode;
1: - enum irq_domain_bus_token bus_token;
1: - struct irq_domain_chip_generic *gc;
1: - struct irq_domain *parent;
1: - irq_hw_number_t hwirq_max;
1: - unsigned int revmap_direct_max_irq;
1: - unsigned int revmap_size;
1: - struct xarray revmap_tree;
1: - struct mutex revmap_tree_mutex;
1: - unsigned int linear_revmap[0];
1: + struct list_head link;
1: + const char *name;
1: + const struct irq_domain_ops *ops;
1: + void *host_data;
1: + unsigned int flags;
1: + unsigned int mapcount;
1: + struct fwnode_handle *fwnode;
1: + enum irq_domain_bus_token bus_token;
1: + struct irq_domain_chip_generic *gc;
1: + struct irq_domain *parent;
1: + irq_hw_number_t hwirq_max;
1: + unsigned int revmap_direct_max_irq;
1: + unsigned int revmap_size;
1: + struct xarray revmap_tree;
1: + struct mutex revmap_tree_mutex;
1: + unsigned int linear_revmap[0];
1: };
1:
1: enum dma_data_direction {
1: - DMA_BIDIRECTIONAL = 0,
1: - DMA_TO_DEVICE = 1,
1: - DMA_FROM_DEVICE = 2,
1: - DMA_NONE = 3,
1: + DMA_BIDIRECTIONAL = 0,
1: + DMA_TO_DEVICE = 1,
1: + DMA_FROM_DEVICE = 2,
1: + DMA_NONE = 3,
1: };
1:
1: struct sg_table;
1: @@ -5947,36 +5996,53 @@ struct sg_table;
1: struct scatterlist;
1:
1: struct dma_map_ops {
1: - void * (*alloc)(struct device *, size_t, dma_addr_t *, gfp_t, long unsigned int);
1: - void (*free)(struct device *, size_t, void *, dma_addr_t, long unsigned int);
1: - struct page * (*alloc_pages)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: - void (*free_pages)(struct device *, size_t, struct page *, dma_addr_t, enum dma_data_direction);
1: - void * (*alloc_noncoherent)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: - void (*free_noncoherent)(struct device *, size_t, void *, dma_addr_t, enum dma_data_direction);
1: - int (*mmap)(struct device *, struct vm_area_struct *, void *, dma_addr_t, size_t, long unsigned int);
1: - int (*get_sgtable)(struct device *, struct sg_table *, void *, dma_addr_t, size_t, long unsigned int);
1: - dma_addr_t (*map_page)(struct device *, struct page *, long unsigned int, size_t, enum dma_data_direction, long unsigned int);
1: - void (*unmap_page)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: - int (*map_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: - void (*unmap_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: - dma_addr_t (*map_resource)(struct device *, phys_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: - void (*unmap_resource)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: - void (*sync_single_for_cpu)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: - void (*sync_single_for_device)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: - void (*sync_sg_for_cpu)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: - void (*sync_sg_for_device)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: - void (*cache_sync)(struct device *, void *, size_t, enum dma_data_direction);
1: - int (*dma_supported)(struct device *, u64);
1: - u64 (*get_required_mask)(struct device *);
1: - size_t (*max_mapping_size)(struct device *);
1: - long unsigned int (*get_merge_boundary)(struct device *);
1: + void *(*alloc)(struct device *, size_t, dma_addr_t *, gfp_t,
1: + long unsigned int);
1: + void (*free)(struct device *, size_t, void *, dma_addr_t, long unsigned int);
1: + struct page *(*alloc_pages)(struct device *, size_t, dma_addr_t *,
1: + enum dma_data_direction, gfp_t);
1: + void (*free_pages)(struct device *, size_t, struct page *, dma_addr_t,
1: + enum dma_data_direction);
1: + void *(*alloc_noncoherent)(struct device *, size_t, dma_addr_t *,
1: + enum dma_data_direction, gfp_t);
1: + void (*free_noncoherent)(struct device *, size_t, void *, dma_addr_t,
1: + enum dma_data_direction);
1: + int (*mmap)(struct device *, struct vm_area_struct *, void *, dma_addr_t,
1: + size_t, long unsigned int);
1: + int (*get_sgtable)(struct device *, struct sg_table *, void *, dma_addr_t,
1: + size_t, long unsigned int);
1: + dma_addr_t (*map_page)(struct device *, struct page *, long unsigned int,
1: + size_t, enum dma_data_direction, long unsigned int);
1: + void (*unmap_page)(struct device *, dma_addr_t, size_t,
1: + enum dma_data_direction, long unsigned int);
1: + int (*map_sg)(struct device *, struct scatterlist *, int,
1: + enum dma_data_direction, long unsigned int);
1: + void (*unmap_sg)(struct device *, struct scatterlist *, int,
1: + enum dma_data_direction, long unsigned int);
1: + dma_addr_t (*map_resource)(struct device *, phys_addr_t, size_t,
1: + enum dma_data_direction, long unsigned int);
1: + void (*unmap_resource)(struct device *, dma_addr_t, size_t,
1: + enum dma_data_direction, long unsigned int);
1: + void (*sync_single_for_cpu)(struct device *, dma_addr_t, size_t,
1: + enum dma_data_direction);
1: + void (*sync_single_for_device)(struct device *, dma_addr_t, size_t,
1: + enum dma_data_direction);
1: + void (*sync_sg_for_cpu)(struct device *, struct scatterlist *, int,
1: + enum dma_data_direction);
1: + void (*sync_sg_for_device)(struct device *, struct scatterlist *, int,
1: + enum dma_data_direction);
1: + void (*cache_sync)(struct device *, void *, size_t, enum dma_data_direction);
1: + int (*dma_supported)(struct device *, u64);
1: + u64 (*get_required_mask)(struct device *);
1: + size_t (*max_mapping_size)(struct device *);
1: + long unsigned int (*get_merge_boundary)(struct device *);
1: };
1:
1: struct bus_dma_region {
1: - phys_addr_t cpu_start;
1: - dma_addr_t dma_start;
1: - u64 size;
1: - u64 offset;
1: + phys_addr_t cpu_start;
1: + dma_addr_t dma_start;
1: + u64 size;
1: + u64 offset;
1: };
1:
1: typedef u32 phandle;
1: @@ -5984,465 +6050,465 @@ typedef u32 phandle;
1: struct fwnode_operations;
1:
1: struct fwnode_handle {
1: - struct fwnode_handle *secondary;
1: - const struct fwnode_operations *ops;
1: - struct device *dev;
1: + struct fwnode_handle *secondary;
1: + const struct fwnode_operations *ops;
1: + struct device *dev;
1: };
1:
1: struct property;
1:
1: struct device_node {
1: - const char *name;
1: - phandle phandle;
1: - const char *full_name;
1: - struct fwnode_handle fwnode;
1: - struct property *properties;
1: - struct property *deadprops;
1: - struct device_node *parent;
1: - struct device_node *child;
1: - struct device_node *sibling;
1: - struct kobject kobj;
1: - long unsigned int _flags;
1: - void *data;
1: + const char *name;
1: + phandle phandle;
1: + const char *full_name;
1: + struct fwnode_handle fwnode;
1: + struct property *properties;
1: + struct property *deadprops;
1: + struct device_node *parent;
1: + struct device_node *child;
1: + struct device_node *sibling;
1: + struct kobject kobj;
1: + long unsigned int _flags;
1: + void *data;
1: };
1:
1: enum cpuhp_state {
1: - CPUHP_INVALID = 4294967295,
1: - CPUHP_OFFLINE = 0,
1: - CPUHP_CREATE_THREADS = 1,
1: - CPUHP_PERF_PREPARE = 2,
1: - CPUHP_PERF_X86_PREPARE = 3,
1: - CPUHP_PERF_X86_AMD_UNCORE_PREP = 4,
1: - CPUHP_PERF_POWER = 5,
1: - CPUHP_PERF_SUPERH = 6,
1: - CPUHP_X86_HPET_DEAD = 7,
1: - CPUHP_X86_APB_DEAD = 8,
1: - CPUHP_X86_MCE_DEAD = 9,
1: - CPUHP_VIRT_NET_DEAD = 10,
1: - CPUHP_SLUB_DEAD = 11,
1: - CPUHP_DEBUG_OBJ_DEAD = 12,
1: - CPUHP_MM_WRITEBACK_DEAD = 13,
1: - CPUHP_MM_VMSTAT_DEAD = 14,
1: - CPUHP_SOFTIRQ_DEAD = 15,
1: - CPUHP_NET_MVNETA_DEAD = 16,
1: - CPUHP_CPUIDLE_DEAD = 17,
1: - CPUHP_ARM64_FPSIMD_DEAD = 18,
1: - CPUHP_ARM_OMAP_WAKE_DEAD = 19,
1: - CPUHP_IRQ_POLL_DEAD = 20,
1: - CPUHP_BLOCK_SOFTIRQ_DEAD = 21,
1: - CPUHP_ACPI_CPUDRV_DEAD = 22,
1: - CPUHP_S390_PFAULT_DEAD = 23,
1: - CPUHP_BLK_MQ_DEAD = 24,
1: - CPUHP_FS_BUFF_DEAD = 25,
1: - CPUHP_PRINTK_DEAD = 26,
1: - CPUHP_MM_MEMCQ_DEAD = 27,
1: - CPUHP_PERCPU_CNT_DEAD = 28,
1: - CPUHP_RADIX_DEAD = 29,
1: - CPUHP_PAGE_ALLOC_DEAD = 30,
1: - CPUHP_NET_DEV_DEAD = 31,
1: - CPUHP_PCI_XGENE_DEAD = 32,
1: - CPUHP_IOMMU_INTEL_DEAD = 33,
1: - CPUHP_LUSTRE_CFS_DEAD = 34,
1: - CPUHP_AP_ARM_CACHE_B15_RAC_DEAD = 35,
1: - CPUHP_PADATA_DEAD = 36,
1: - CPUHP_WORKQUEUE_PREP = 37,
1: - CPUHP_POWER_NUMA_PREPARE = 38,
1: - CPUHP_HRTIMERS_PREPARE = 39,
1: - CPUHP_PROFILE_PREPARE = 40,
1: - CPUHP_X2APIC_PREPARE = 41,
1: - CPUHP_SMPCFD_PREPARE = 42,
1: - CPUHP_RELAY_PREPARE = 43,
1: - CPUHP_SLAB_PREPARE = 44,
1: - CPUHP_MD_RAID5_PREPARE = 45,
1: - CPUHP_RCUTREE_PREP = 46,
1: - CPUHP_CPUIDLE_COUPLED_PREPARE = 47,
1: - CPUHP_POWERPC_PMAC_PREPARE = 48,
1: - CPUHP_POWERPC_MMU_CTX_PREPARE = 49,
1: - CPUHP_XEN_PREPARE = 50,
1: - CPUHP_XEN_EVTCHN_PREPARE = 51,
1: - CPUHP_ARM_SHMOBILE_SCU_PREPARE = 52,
1: - CPUHP_SH_SH3X_PREPARE = 53,
1: - CPUHP_NET_FLOW_PREPARE = 54,
1: - CPUHP_TOPOLOGY_PREPARE = 55,
1: - CPUHP_NET_IUCV_PREPARE = 56,
1: - CPUHP_ARM_BL_PREPARE = 57,
1: - CPUHP_TRACE_RB_PREPARE = 58,
1: - CPUHP_MM_ZS_PREPARE = 59,
1: - CPUHP_MM_ZSWP_MEM_PREPARE = 60,
1: - CPUHP_MM_ZSWP_POOL_PREPARE = 61,
1: - CPUHP_KVM_PPC_BOOK3S_PREPARE = 62,
1: - CPUHP_ZCOMP_PREPARE = 63,
1: - CPUHP_TIMERS_PREPARE = 64,
1: - CPUHP_MIPS_SOC_PREPARE = 65,
1: - CPUHP_BP_PREPARE_DYN = 66,
1: - CPUHP_BP_PREPARE_DYN_END = 86,
1: - CPUHP_BRINGUP_CPU = 87,
1: - CPUHP_AP_IDLE_DEAD = 88,
1: - CPUHP_AP_OFFLINE = 89,
1: - CPUHP_AP_SCHED_STARTING = 90,
1: - CPUHP_AP_RCUTREE_DYING = 91,
1: - CPUHP_AP_CPU_PM_STARTING = 92,
1: - CPUHP_AP_IRQ_GIC_STARTING = 93,
1: - CPUHP_AP_IRQ_HIP04_STARTING = 94,
1: - CPUHP_AP_IRQ_ARMADA_XP_STARTING = 95,
1: - CPUHP_AP_IRQ_BCM2836_STARTING = 96,
1: - CPUHP_AP_IRQ_MIPS_GIC_STARTING = 97,
1: - CPUHP_AP_IRQ_RISCV_STARTING = 98,
1: - CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING = 99,
1: - CPUHP_AP_ARM_MVEBU_COHERENCY = 100,
1: - CPUHP_AP_MICROCODE_LOADER = 101,
1: - CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING = 102,
1: - CPUHP_AP_PERF_X86_STARTING = 103,
1: - CPUHP_AP_PERF_X86_AMD_IBS_STARTING = 104,
1: - CPUHP_AP_PERF_X86_CQM_STARTING = 105,
1: - CPUHP_AP_PERF_X86_CSTATE_STARTING = 106,
1: - CPUHP_AP_PERF_XTENSA_STARTING = 107,
1: - CPUHP_AP_MIPS_OP_LOONGSON3_STARTING = 108,
1: - CPUHP_AP_ARM_SDEI_STARTING = 109,
1: - CPUHP_AP_ARM_VFP_STARTING = 110,
1: - CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING = 111,
1: - CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING = 112,
1: - CPUHP_AP_PERF_ARM_ACPI_STARTING = 113,
1: - CPUHP_AP_PERF_ARM_STARTING = 114,
1: - CPUHP_AP_ARM_L2X0_STARTING = 115,
1: - CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING = 116,
1: - CPUHP_AP_ARM_ARCH_TIMER_STARTING = 117,
1: - CPUHP_AP_ARM_GLOBAL_TIMER_STARTING = 118,
1: - CPUHP_AP_JCORE_TIMER_STARTING = 119,
1: - CPUHP_AP_ARM_TWD_STARTING = 120,
1: - CPUHP_AP_QCOM_TIMER_STARTING = 121,
1: - CPUHP_AP_TEGRA_TIMER_STARTING = 122,
1: - CPUHP_AP_ARMADA_TIMER_STARTING = 123,
1: - CPUHP_AP_MARCO_TIMER_STARTING = 124,
1: - CPUHP_AP_MIPS_GIC_TIMER_STARTING = 125,
1: - CPUHP_AP_ARC_TIMER_STARTING = 126,
1: - CPUHP_AP_RISCV_TIMER_STARTING = 127,
1: - CPUHP_AP_CLINT_TIMER_STARTING = 128,
1: - CPUHP_AP_CSKY_TIMER_STARTING = 129,
1: - CPUHP_AP_HYPERV_TIMER_STARTING = 130,
1: - CPUHP_AP_KVM_STARTING = 131,
1: - CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING = 132,
1: - CPUHP_AP_KVM_ARM_VGIC_STARTING = 133,
1: - CPUHP_AP_KVM_ARM_TIMER_STARTING = 134,
1: - CPUHP_AP_DUMMY_TIMER_STARTING = 135,
1: - CPUHP_AP_ARM_XEN_STARTING = 136,
1: - CPUHP_AP_ARM_CORESIGHT_STARTING = 137,
1: - CPUHP_AP_ARM_CORESIGHT_CTI_STARTING = 138,
1: - CPUHP_AP_ARM64_ISNDEP_STARTING = 139,
1: - CPUHP_AP_SMPCFD_DYING = 140,
1: - CPUHP_AP_X86_TBOOT_DYING = 141,
1: - CPUHP_AP_ARM_CACHE_B15_RAC_DYING = 142,
1: - CPUHP_AP_ONLINE = 143,
1: - CPUHP_TEARDOWN_CPU = 144,
1: - CPUHP_AP_ONLINE_IDLE = 145,
1: - CPUHP_AP_SMPBOOT_THREADS = 146,
1: - CPUHP_AP_X86_VDSO_VMA_ONLINE = 147,
1: - CPUHP_AP_IRQ_AFFINITY_ONLINE = 148,
1: - CPUHP_AP_BLK_MQ_ONLINE = 149,
1: - CPUHP_AP_ARM_MVEBU_SYNC_CLOCKS = 150,
1: - CPUHP_AP_X86_INTEL_EPB_ONLINE = 151,
1: - CPUHP_AP_PERF_ONLINE = 152,
1: - CPUHP_AP_PERF_X86_ONLINE = 153,
1: - CPUHP_AP_PERF_X86_UNCORE_ONLINE = 154,
1: - CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE = 155,
1: - CPUHP_AP_PERF_X86_AMD_POWER_ONLINE = 156,
1: - CPUHP_AP_PERF_X86_RAPL_ONLINE = 157,
1: - CPUHP_AP_PERF_X86_CQM_ONLINE = 158,
1: - CPUHP_AP_PERF_X86_CSTATE_ONLINE = 159,
1: - CPUHP_AP_PERF_S390_CF_ONLINE = 160,
1: - CPUHP_AP_PERF_S390_SF_ONLINE = 161,
1: - CPUHP_AP_PERF_ARM_CCI_ONLINE = 162,
1: - CPUHP_AP_PERF_ARM_CCN_ONLINE = 163,
1: - CPUHP_AP_PERF_ARM_HISI_DDRC_ONLINE = 164,
1: - CPUHP_AP_PERF_ARM_HISI_HHA_ONLINE = 165,
1: - CPUHP_AP_PERF_ARM_HISI_L3_ONLINE = 166,
1: - CPUHP_AP_PERF_ARM_L2X0_ONLINE = 167,
1: - CPUHP_AP_PERF_ARM_QCOM_L2_ONLINE = 168,
1: - CPUHP_AP_PERF_ARM_QCOM_L3_ONLINE = 169,
1: - CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE = 170,
1: - CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE = 171,
1: - CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE = 172,
1: - CPUHP_AP_PERF_POWERPC_CORE_IMC_ONLINE = 173,
1: - CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE = 174,
1: - CPUHP_AP_PERF_POWERPC_TRACE_IMC_ONLINE = 175,
1: - CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE = 176,
1: - CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE = 177,
1: - CPUHP_AP_WATCHDOG_ONLINE = 178,
1: - CPUHP_AP_WORKQUEUE_ONLINE = 179,
1: - CPUHP_AP_RCUTREE_ONLINE = 180,
1: - CPUHP_AP_BASE_CACHEINFO_ONLINE = 181,
1: - CPUHP_AP_ONLINE_DYN = 182,
1: - CPUHP_AP_ONLINE_DYN_END = 212,
1: - CPUHP_AP_X86_HPET_ONLINE = 213,
1: - CPUHP_AP_X86_KVM_CLK_ONLINE = 214,
1: - CPUHP_AP_ACTIVE = 215,
1: - CPUHP_ONLINE = 216,
1: + CPUHP_INVALID = 4294967295,
1: + CPUHP_OFFLINE = 0,
1: + CPUHP_CREATE_THREADS = 1,
1: + CPUHP_PERF_PREPARE = 2,
1: + CPUHP_PERF_X86_PREPARE = 3,
1: + CPUHP_PERF_X86_AMD_UNCORE_PREP = 4,
1: + CPUHP_PERF_POWER = 5,
1: + CPUHP_PERF_SUPERH = 6,
1: + CPUHP_X86_HPET_DEAD = 7,
1: + CPUHP_X86_APB_DEAD = 8,
1: + CPUHP_X86_MCE_DEAD = 9,
1: + CPUHP_VIRT_NET_DEAD = 10,
1: + CPUHP_SLUB_DEAD = 11,
1: + CPUHP_DEBUG_OBJ_DEAD = 12,
1: + CPUHP_MM_WRITEBACK_DEAD = 13,
1: + CPUHP_MM_VMSTAT_DEAD = 14,
1: + CPUHP_SOFTIRQ_DEAD = 15,
1: + CPUHP_NET_MVNETA_DEAD = 16,
1: + CPUHP_CPUIDLE_DEAD = 17,
1: + CPUHP_ARM64_FPSIMD_DEAD = 18,
1: + CPUHP_ARM_OMAP_WAKE_DEAD = 19,
1: + CPUHP_IRQ_POLL_DEAD = 20,
1: + CPUHP_BLOCK_SOFTIRQ_DEAD = 21,
1: + CPUHP_ACPI_CPUDRV_DEAD = 22,
1: + CPUHP_S390_PFAULT_DEAD = 23,
1: + CPUHP_BLK_MQ_DEAD = 24,
1: + CPUHP_FS_BUFF_DEAD = 25,
1: + CPUHP_PRINTK_DEAD = 26,
1: + CPUHP_MM_MEMCQ_DEAD = 27,
1: + CPUHP_PERCPU_CNT_DEAD = 28,
1: + CPUHP_RADIX_DEAD = 29,
1: + CPUHP_PAGE_ALLOC_DEAD = 30,
1: + CPUHP_NET_DEV_DEAD = 31,
1: + CPUHP_PCI_XGENE_DEAD = 32,
1: + CPUHP_IOMMU_INTEL_DEAD = 33,
1: + CPUHP_LUSTRE_CFS_DEAD = 34,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DEAD = 35,
1: + CPUHP_PADATA_DEAD = 36,
1: + CPUHP_WORKQUEUE_PREP = 37,
1: + CPUHP_POWER_NUMA_PREPARE = 38,
1: + CPUHP_HRTIMERS_PREPARE = 39,
1: + CPUHP_PROFILE_PREPARE = 40,
1: + CPUHP_X2APIC_PREPARE = 41,
1: + CPUHP_SMPCFD_PREPARE = 42,
1: + CPUHP_RELAY_PREPARE = 43,
1: + CPUHP_SLAB_PREPARE = 44,
1: + CPUHP_MD_RAID5_PREPARE = 45,
1: + CPUHP_RCUTREE_PREP = 46,
1: + CPUHP_CPUIDLE_COUPLED_PREPARE = 47,
1: + CPUHP_POWERPC_PMAC_PREPARE = 48,
1: + CPUHP_POWERPC_MMU_CTX_PREPARE = 49,
1: + CPUHP_XEN_PREPARE = 50,
1: + CPUHP_XEN_EVTCHN_PREPARE = 51,
1: + CPUHP_ARM_SHMOBILE_SCU_PREPARE = 52,
1: + CPUHP_SH_SH3X_PREPARE = 53,
1: + CPUHP_NET_FLOW_PREPARE = 54,
1: + CPUHP_TOPOLOGY_PREPARE = 55,
1: + CPUHP_NET_IUCV_PREPARE = 56,
1: + CPUHP_ARM_BL_PREPARE = 57,
1: + CPUHP_TRACE_RB_PREPARE = 58,
1: + CPUHP_MM_ZS_PREPARE = 59,
1: + CPUHP_MM_ZSWP_MEM_PREPARE = 60,
1: + CPUHP_MM_ZSWP_POOL_PREPARE = 61,
1: + CPUHP_KVM_PPC_BOOK3S_PREPARE = 62,
1: + CPUHP_ZCOMP_PREPARE = 63,
1: + CPUHP_TIMERS_PREPARE = 64,
1: + CPUHP_MIPS_SOC_PREPARE = 65,
1: + CPUHP_BP_PREPARE_DYN = 66,
1: + CPUHP_BP_PREPARE_DYN_END = 86,
1: + CPUHP_BRINGUP_CPU = 87,
1: + CPUHP_AP_IDLE_DEAD = 88,
1: + CPUHP_AP_OFFLINE = 89,
1: + CPUHP_AP_SCHED_STARTING = 90,
1: + CPUHP_AP_RCUTREE_DYING = 91,
1: + CPUHP_AP_CPU_PM_STARTING = 92,
1: + CPUHP_AP_IRQ_GIC_STARTING = 93,
1: + CPUHP_AP_IRQ_HIP04_STARTING = 94,
1: + CPUHP_AP_IRQ_ARMADA_XP_STARTING = 95,
1: + CPUHP_AP_IRQ_BCM2836_STARTING = 96,
1: + CPUHP_AP_IRQ_MIPS_GIC_STARTING = 97,
1: + CPUHP_AP_IRQ_RISCV_STARTING = 98,
1: + CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING = 99,
1: + CPUHP_AP_ARM_MVEBU_COHERENCY = 100,
1: + CPUHP_AP_MICROCODE_LOADER = 101,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING = 102,
1: + CPUHP_AP_PERF_X86_STARTING = 103,
1: + CPUHP_AP_PERF_X86_AMD_IBS_STARTING = 104,
1: + CPUHP_AP_PERF_X86_CQM_STARTING = 105,
1: + CPUHP_AP_PERF_X86_CSTATE_STARTING = 106,
1: + CPUHP_AP_PERF_XTENSA_STARTING = 107,
1: + CPUHP_AP_MIPS_OP_LOONGSON3_STARTING = 108,
1: + CPUHP_AP_ARM_SDEI_STARTING = 109,
1: + CPUHP_AP_ARM_VFP_STARTING = 110,
1: + CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING = 111,
1: + CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING = 112,
1: + CPUHP_AP_PERF_ARM_ACPI_STARTING = 113,
1: + CPUHP_AP_PERF_ARM_STARTING = 114,
1: + CPUHP_AP_ARM_L2X0_STARTING = 115,
1: + CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING = 116,
1: + CPUHP_AP_ARM_ARCH_TIMER_STARTING = 117,
1: + CPUHP_AP_ARM_GLOBAL_TIMER_STARTING = 118,
1: + CPUHP_AP_JCORE_TIMER_STARTING = 119,
1: + CPUHP_AP_ARM_TWD_STARTING = 120,
1: + CPUHP_AP_QCOM_TIMER_STARTING = 121,
1: + CPUHP_AP_TEGRA_TIMER_STARTING = 122,
1: + CPUHP_AP_ARMADA_TIMER_STARTING = 123,
1: + CPUHP_AP_MARCO_TIMER_STARTING = 124,
1: + CPUHP_AP_MIPS_GIC_TIMER_STARTING = 125,
1: + CPUHP_AP_ARC_TIMER_STARTING = 126,
1: + CPUHP_AP_RISCV_TIMER_STARTING = 127,
1: + CPUHP_AP_CLINT_TIMER_STARTING = 128,
1: + CPUHP_AP_CSKY_TIMER_STARTING = 129,
1: + CPUHP_AP_HYPERV_TIMER_STARTING = 130,
1: + CPUHP_AP_KVM_STARTING = 131,
1: + CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING = 132,
1: + CPUHP_AP_KVM_ARM_VGIC_STARTING = 133,
1: + CPUHP_AP_KVM_ARM_TIMER_STARTING = 134,
1: + CPUHP_AP_DUMMY_TIMER_STARTING = 135,
1: + CPUHP_AP_ARM_XEN_STARTING = 136,
1: + CPUHP_AP_ARM_CORESIGHT_STARTING = 137,
1: + CPUHP_AP_ARM_CORESIGHT_CTI_STARTING = 138,
1: + CPUHP_AP_ARM64_ISNDEP_STARTING = 139,
1: + CPUHP_AP_SMPCFD_DYING = 140,
1: + CPUHP_AP_X86_TBOOT_DYING = 141,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DYING = 142,
1: + CPUHP_AP_ONLINE = 143,
1: + CPUHP_TEARDOWN_CPU = 144,
1: + CPUHP_AP_ONLINE_IDLE = 145,
1: + CPUHP_AP_SMPBOOT_THREADS = 146,
1: + CPUHP_AP_X86_VDSO_VMA_ONLINE = 147,
1: + CPUHP_AP_IRQ_AFFINITY_ONLINE = 148,
1: + CPUHP_AP_BLK_MQ_ONLINE = 149,
1: + CPUHP_AP_ARM_MVEBU_SYNC_CLOCKS = 150,
1: + CPUHP_AP_X86_INTEL_EPB_ONLINE = 151,
1: + CPUHP_AP_PERF_ONLINE = 152,
1: + CPUHP_AP_PERF_X86_ONLINE = 153,
1: + CPUHP_AP_PERF_X86_UNCORE_ONLINE = 154,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE = 155,
1: + CPUHP_AP_PERF_X86_AMD_POWER_ONLINE = 156,
1: + CPUHP_AP_PERF_X86_RAPL_ONLINE = 157,
1: + CPUHP_AP_PERF_X86_CQM_ONLINE = 158,
1: + CPUHP_AP_PERF_X86_CSTATE_ONLINE = 159,
1: + CPUHP_AP_PERF_S390_CF_ONLINE = 160,
1: + CPUHP_AP_PERF_S390_SF_ONLINE = 161,
1: + CPUHP_AP_PERF_ARM_CCI_ONLINE = 162,
1: + CPUHP_AP_PERF_ARM_CCN_ONLINE = 163,
1: + CPUHP_AP_PERF_ARM_HISI_DDRC_ONLINE = 164,
1: + CPUHP_AP_PERF_ARM_HISI_HHA_ONLINE = 165,
1: + CPUHP_AP_PERF_ARM_HISI_L3_ONLINE = 166,
1: + CPUHP_AP_PERF_ARM_L2X0_ONLINE = 167,
1: + CPUHP_AP_PERF_ARM_QCOM_L2_ONLINE = 168,
1: + CPUHP_AP_PERF_ARM_QCOM_L3_ONLINE = 169,
1: + CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE = 170,
1: + CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE = 171,
1: + CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE = 172,
1: + CPUHP_AP_PERF_POWERPC_CORE_IMC_ONLINE = 173,
1: + CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE = 174,
1: + CPUHP_AP_PERF_POWERPC_TRACE_IMC_ONLINE = 175,
1: + CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE = 176,
1: + CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE = 177,
1: + CPUHP_AP_WATCHDOG_ONLINE = 178,
1: + CPUHP_AP_WORKQUEUE_ONLINE = 179,
1: + CPUHP_AP_RCUTREE_ONLINE = 180,
1: + CPUHP_AP_BASE_CACHEINFO_ONLINE = 181,
1: + CPUHP_AP_ONLINE_DYN = 182,
1: + CPUHP_AP_ONLINE_DYN_END = 212,
1: + CPUHP_AP_X86_HPET_ONLINE = 213,
1: + CPUHP_AP_X86_KVM_CLK_ONLINE = 214,
1: + CPUHP_AP_ACTIVE = 215,
1: + CPUHP_ONLINE = 216,
1: };
1:
1: typedef void percpu_ref_func_t(struct percpu_ref *);
1:
1: struct percpu_ref_data {
1: - atomic_long_t count;
1: - percpu_ref_func_t *release;
1: - percpu_ref_func_t *confirm_switch;
1: - bool force_atomic: 1;
1: - bool allow_reinit: 1;
1: - struct callback_head rcu;
1: - struct percpu_ref *ref;
1: + atomic_long_t count;
1: + percpu_ref_func_t *release;
1: + percpu_ref_func_t *confirm_switch;
1: + bool force_atomic : 1;
1: + bool allow_reinit : 1;
1: + struct callback_head rcu;
1: + struct percpu_ref *ref;
1: };
1:
1: struct dev_pagemap_ops {
1: - void (*page_free)(struct page *);
1: - void (*kill)(struct dev_pagemap *);
1: - void (*cleanup)(struct dev_pagemap *);
1: - vm_fault_t (*migrate_to_ram)(struct vm_fault *);
1: + void (*page_free)(struct page *);
1: + void (*kill)(struct dev_pagemap *);
1: + void (*cleanup)(struct dev_pagemap *);
1: + vm_fault_t (*migrate_to_ram)(struct vm_fault *);
1: };
1:
1: enum vm_event_item {
1: - PGPGIN = 0,
1: - PGPGOUT = 1,
1: - PSWPIN = 2,
1: - PSWPOUT = 3,
1: - PGALLOC_DMA = 4,
1: - PGALLOC_DMA32 = 5,
1: - PGALLOC_NORMAL = 6,
1: - PGALLOC_MOVABLE = 7,
1: - ALLOCSTALL_DMA = 8,
1: - ALLOCSTALL_DMA32 = 9,
1: - ALLOCSTALL_NORMAL = 10,
1: - ALLOCSTALL_MOVABLE = 11,
1: - PGSCAN_SKIP_DMA = 12,
1: - PGSCAN_SKIP_DMA32 = 13,
1: - PGSCAN_SKIP_NORMAL = 14,
1: - PGSCAN_SKIP_MOVABLE = 15,
1: - PGFREE = 16,
1: - PGACTIVATE = 17,
1: - PGDEACTIVATE = 18,
1: - PGLAZYFREE = 19,
1: - PGFAULT = 20,
1: - PGMAJFAULT = 21,
1: - PGLAZYFREED = 22,
1: - PGREFILL = 23,
1: - PGREUSE = 24,
1: - PGSTEAL_KSWAPD = 25,
1: - PGSTEAL_DIRECT = 26,
1: - PGSCAN_KSWAPD = 27,
1: - PGSCAN_DIRECT = 28,
1: - PGSCAN_DIRECT_THROTTLE = 29,
1: - PGSCAN_ANON = 30,
1: - PGSCAN_FILE = 31,
1: - PGSTEAL_ANON = 32,
1: - PGSTEAL_FILE = 33,
1: - PGSCAN_ZONE_RECLAIM_FAILED = 34,
1: - PGINODESTEAL = 35,
1: - SLABS_SCANNED = 36,
1: - KSWAPD_INODESTEAL = 37,
1: - KSWAPD_LOW_WMARK_HIT_QUICKLY = 38,
1: - KSWAPD_HIGH_WMARK_HIT_QUICKLY = 39,
1: - PAGEOUTRUN = 40,
1: - PGROTATED = 41,
1: - DROP_PAGECACHE = 42,
1: - DROP_SLAB = 43,
1: - OOM_KILL = 44,
1: - NUMA_PTE_UPDATES = 45,
1: - NUMA_HUGE_PTE_UPDATES = 46,
1: - NUMA_HINT_FAULTS = 47,
1: - NUMA_HINT_FAULTS_LOCAL = 48,
1: - NUMA_PAGE_MIGRATE = 49,
1: - PGMIGRATE_SUCCESS = 50,
1: - PGMIGRATE_FAIL = 51,
1: - THP_MIGRATION_SUCCESS = 52,
1: - THP_MIGRATION_FAIL = 53,
1: - THP_MIGRATION_SPLIT = 54,
1: - COMPACTMIGRATE_SCANNED = 55,
1: - COMPACTFREE_SCANNED = 56,
1: - COMPACTISOLATED = 57,
1: - COMPACTSTALL = 58,
1: - COMPACTFAIL = 59,
1: - COMPACTSUCCESS = 60,
1: - KCOMPACTD_WAKE = 61,
1: - KCOMPACTD_MIGRATE_SCANNED = 62,
1: - KCOMPACTD_FREE_SCANNED = 63,
1: - HTLB_BUDDY_PGALLOC = 64,
1: - HTLB_BUDDY_PGALLOC_FAIL = 65,
1: - UNEVICTABLE_PGCULLED = 66,
1: - UNEVICTABLE_PGSCANNED = 67,
1: - UNEVICTABLE_PGRESCUED = 68,
1: - UNEVICTABLE_PGMLOCKED = 69,
1: - UNEVICTABLE_PGMUNLOCKED = 70,
1: - UNEVICTABLE_PGCLEARED = 71,
1: - UNEVICTABLE_PGSTRANDED = 72,
1: - THP_FAULT_ALLOC = 73,
1: - THP_FAULT_FALLBACK = 74,
1: - THP_FAULT_FALLBACK_CHARGE = 75,
1: - THP_COLLAPSE_ALLOC = 76,
1: - THP_COLLAPSE_ALLOC_FAILED = 77,
1: - THP_FILE_ALLOC = 78,
1: - THP_FILE_FALLBACK = 79,
1: - THP_FILE_FALLBACK_CHARGE = 80,
1: - THP_FILE_MAPPED = 81,
1: - THP_SPLIT_PAGE = 82,
1: - THP_SPLIT_PAGE_FAILED = 83,
1: - THP_DEFERRED_SPLIT_PAGE = 84,
1: - THP_SPLIT_PMD = 85,
1: - THP_ZERO_PAGE_ALLOC = 86,
1: - THP_ZERO_PAGE_ALLOC_FAILED = 87,
1: - THP_SWPOUT = 88,
1: - THP_SWPOUT_FALLBACK = 89,
1: - BALLOON_INFLATE = 90,
1: - BALLOON_DEFLATE = 91,
1: - BALLOON_MIGRATE = 92,
1: - SWAP_RA = 93,
1: - SWAP_RA_HIT = 94,
1: - NR_VM_EVENT_ITEMS = 95,
1: + PGPGIN = 0,
1: + PGPGOUT = 1,
1: + PSWPIN = 2,
1: + PSWPOUT = 3,
1: + PGALLOC_DMA = 4,
1: + PGALLOC_DMA32 = 5,
1: + PGALLOC_NORMAL = 6,
1: + PGALLOC_MOVABLE = 7,
1: + ALLOCSTALL_DMA = 8,
1: + ALLOCSTALL_DMA32 = 9,
1: + ALLOCSTALL_NORMAL = 10,
1: + ALLOCSTALL_MOVABLE = 11,
1: + PGSCAN_SKIP_DMA = 12,
1: + PGSCAN_SKIP_DMA32 = 13,
1: + PGSCAN_SKIP_NORMAL = 14,
1: + PGSCAN_SKIP_MOVABLE = 15,
1: + PGFREE = 16,
1: + PGACTIVATE = 17,
1: + PGDEACTIVATE = 18,
1: + PGLAZYFREE = 19,
1: + PGFAULT = 20,
1: + PGMAJFAULT = 21,
1: + PGLAZYFREED = 22,
1: + PGREFILL = 23,
1: + PGREUSE = 24,
1: + PGSTEAL_KSWAPD = 25,
1: + PGSTEAL_DIRECT = 26,
1: + PGSCAN_KSWAPD = 27,
1: + PGSCAN_DIRECT = 28,
1: + PGSCAN_DIRECT_THROTTLE = 29,
1: + PGSCAN_ANON = 30,
1: + PGSCAN_FILE = 31,
1: + PGSTEAL_ANON = 32,
1: + PGSTEAL_FILE = 33,
1: + PGSCAN_ZONE_RECLAIM_FAILED = 34,
1: + PGINODESTEAL = 35,
1: + SLABS_SCANNED = 36,
1: + KSWAPD_INODESTEAL = 37,
1: + KSWAPD_LOW_WMARK_HIT_QUICKLY = 38,
1: + KSWAPD_HIGH_WMARK_HIT_QUICKLY = 39,
1: + PAGEOUTRUN = 40,
1: + PGROTATED = 41,
1: + DROP_PAGECACHE = 42,
1: + DROP_SLAB = 43,
1: + OOM_KILL = 44,
1: + NUMA_PTE_UPDATES = 45,
1: + NUMA_HUGE_PTE_UPDATES = 46,
1: + NUMA_HINT_FAULTS = 47,
1: + NUMA_HINT_FAULTS_LOCAL = 48,
1: + NUMA_PAGE_MIGRATE = 49,
1: + PGMIGRATE_SUCCESS = 50,
1: + PGMIGRATE_FAIL = 51,
1: + THP_MIGRATION_SUCCESS = 52,
1: + THP_MIGRATION_FAIL = 53,
1: + THP_MIGRATION_SPLIT = 54,
1: + COMPACTMIGRATE_SCANNED = 55,
1: + COMPACTFREE_SCANNED = 56,
1: + COMPACTISOLATED = 57,
1: + COMPACTSTALL = 58,
1: + COMPACTFAIL = 59,
1: + COMPACTSUCCESS = 60,
1: + KCOMPACTD_WAKE = 61,
1: + KCOMPACTD_MIGRATE_SCANNED = 62,
1: + KCOMPACTD_FREE_SCANNED = 63,
1: + HTLB_BUDDY_PGALLOC = 64,
1: + HTLB_BUDDY_PGALLOC_FAIL = 65,
1: + UNEVICTABLE_PGCULLED = 66,
1: + UNEVICTABLE_PGSCANNED = 67,
1: + UNEVICTABLE_PGRESCUED = 68,
1: + UNEVICTABLE_PGMLOCKED = 69,
1: + UNEVICTABLE_PGMUNLOCKED = 70,
1: + UNEVICTABLE_PGCLEARED = 71,
1: + UNEVICTABLE_PGSTRANDED = 72,
1: + THP_FAULT_ALLOC = 73,
1: + THP_FAULT_FALLBACK = 74,
1: + THP_FAULT_FALLBACK_CHARGE = 75,
1: + THP_COLLAPSE_ALLOC = 76,
1: + THP_COLLAPSE_ALLOC_FAILED = 77,
1: + THP_FILE_ALLOC = 78,
1: + THP_FILE_FALLBACK = 79,
1: + THP_FILE_FALLBACK_CHARGE = 80,
1: + THP_FILE_MAPPED = 81,
1: + THP_SPLIT_PAGE = 82,
1: + THP_SPLIT_PAGE_FAILED = 83,
1: + THP_DEFERRED_SPLIT_PAGE = 84,
1: + THP_SPLIT_PMD = 85,
1: + THP_ZERO_PAGE_ALLOC = 86,
1: + THP_ZERO_PAGE_ALLOC_FAILED = 87,
1: + THP_SWPOUT = 88,
1: + THP_SWPOUT_FALLBACK = 89,
1: + BALLOON_INFLATE = 90,
1: + BALLOON_DEFLATE = 91,
1: + BALLOON_MIGRATE = 92,
1: + SWAP_RA = 93,
1: + SWAP_RA_HIT = 94,
1: + NR_VM_EVENT_ITEMS = 95,
1: };
1:
1: struct seq_operations {
1: - void * (*start)(struct seq_file *, loff_t *);
1: - void (*stop)(struct seq_file *, void *);
1: - void * (*next)(struct seq_file *, void *, loff_t *);
1: - int (*show)(struct seq_file *, void *);
1: + void *(*start)(struct seq_file *, loff_t *);
1: + void (*stop)(struct seq_file *, void *);
1: + void *(*next)(struct seq_file *, void *, loff_t *);
1: + int (*show)(struct seq_file *, void *);
1: };
1:
1: struct ring_buffer_event {
1: - u32 type_len: 5;
1: - u32 time_delta: 27;
1: - u32 array[0];
1: + u32 type_len : 5;
1: + u32 time_delta : 27;
1: + u32 array[0];
1: };
1:
1: struct seq_buf {
1: - char *buffer;
1: - size_t size;
1: - size_t len;
1: - loff_t readpos;
1: + char *buffer;
1: + size_t size;
1: + size_t len;
1: + loff_t readpos;
1: };
1:
1: struct trace_seq {
1: - char buffer[4096];
1: - struct seq_buf seq;
1: - int full;
1: + char buffer[4096];
1: + struct seq_buf seq;
1: + int full;
1: };
1:
1: enum perf_sw_ids {
1: - PERF_COUNT_SW_CPU_CLOCK = 0,
1: - PERF_COUNT_SW_TASK_CLOCK = 1,
1: - PERF_COUNT_SW_PAGE_FAULTS = 2,
1: - PERF_COUNT_SW_CONTEXT_SWITCHES = 3,
1: - PERF_COUNT_SW_CPU_MIGRATIONS = 4,
1: - PERF_COUNT_SW_PAGE_FAULTS_MIN = 5,
1: - PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6,
1: - PERF_COUNT_SW_ALIGNMENT_FAULTS = 7,
1: - PERF_COUNT_SW_EMULATION_FAULTS = 8,
1: - PERF_COUNT_SW_DUMMY = 9,
1: - PERF_COUNT_SW_BPF_OUTPUT = 10,
1: - PERF_COUNT_SW_MAX = 11,
1: + PERF_COUNT_SW_CPU_CLOCK = 0,
1: + PERF_COUNT_SW_TASK_CLOCK = 1,
1: + PERF_COUNT_SW_PAGE_FAULTS = 2,
1: + PERF_COUNT_SW_CONTEXT_SWITCHES = 3,
1: + PERF_COUNT_SW_CPU_MIGRATIONS = 4,
1: + PERF_COUNT_SW_PAGE_FAULTS_MIN = 5,
1: + PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6,
1: + PERF_COUNT_SW_ALIGNMENT_FAULTS = 7,
1: + PERF_COUNT_SW_EMULATION_FAULTS = 8,
1: + PERF_COUNT_SW_DUMMY = 9,
1: + PERF_COUNT_SW_BPF_OUTPUT = 10,
1: + PERF_COUNT_SW_MAX = 11,
1: };
1:
1: union perf_mem_data_src {
1: - __u64 val;
1: - struct {
1: - __u64 mem_op: 5;
1: - __u64 mem_lvl: 14;
1: - __u64 mem_snoop: 5;
1: - __u64 mem_lock: 2;
1: - __u64 mem_dtlb: 7;
1: - __u64 mem_lvl_num: 4;
1: - __u64 mem_remote: 1;
1: - __u64 mem_snoopx: 2;
1: - __u64 mem_rsvd: 24;
1: - };
1: + __u64 val;
1: + struct {
1: + __u64 mem_op : 5;
1: + __u64 mem_lvl : 14;
1: + __u64 mem_snoop : 5;
1: + __u64 mem_lock : 2;
1: + __u64 mem_dtlb : 7;
1: + __u64 mem_lvl_num : 4;
1: + __u64 mem_remote : 1;
1: + __u64 mem_snoopx : 2;
1: + __u64 mem_rsvd : 24;
1: + };
1: };
1:
1: struct perf_branch_entry {
1: - __u64 from;
1: - __u64 to;
1: - __u64 mispred: 1;
1: - __u64 predicted: 1;
1: - __u64 in_tx: 1;
1: - __u64 abort: 1;
1: - __u64 cycles: 16;
1: - __u64 type: 4;
1: - __u64 reserved: 40;
1: + __u64 from;
1: + __u64 to;
1: + __u64 mispred : 1;
1: + __u64 predicted : 1;
1: + __u64 in_tx : 1;
1: + __u64 abort : 1;
1: + __u64 cycles : 16;
1: + __u64 type : 4;
1: + __u64 reserved : 40;
1: };
1:
1: struct new_utsname {
1: - char sysname[65];
1: - char nodename[65];
1: - char release[65];
1: - char version[65];
1: - char machine[65];
1: - char domainname[65];
1: + char sysname[65];
1: + char nodename[65];
1: + char release[65];
1: + char version[65];
1: + char machine[65];
1: + char domainname[65];
1: };
1:
1: struct uts_namespace {
1: - struct kref kref;
1: - struct new_utsname name;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - struct ns_common ns;
1: + struct kref kref;
1: + struct new_utsname name;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: };
1:
1: struct cgroup_namespace {
1: - refcount_t count;
1: - struct ns_common ns;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - struct css_set *root_cset;
1: + refcount_t count;
1: + struct ns_common ns;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct css_set *root_cset;
1: };
1:
1: struct nsset {
1: - unsigned int flags;
1: - struct nsproxy *nsproxy;
1: - struct fs_struct *fs;
1: - const struct cred *cred;
1: + unsigned int flags;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + const struct cred *cred;
1: };
1:
1: struct proc_ns_operations {
1: - const char *name;
1: - const char *real_ns_name;
1: - int type;
1: - struct ns_common * (*get)(struct task_struct *);
1: - void (*put)(struct ns_common *);
1: - int (*install)(struct nsset *, struct ns_common *);
1: - struct user_namespace * (*owner)(struct ns_common *);
1: - struct ns_common * (*get_parent)(struct ns_common *);
1: + const char *name;
1: + const char *real_ns_name;
1: + int type;
1: + struct ns_common *(*get)(struct task_struct *);
1: + void (*put)(struct ns_common *);
1: + int (*install)(struct nsset *, struct ns_common *);
1: + struct user_namespace *(*owner)(struct ns_common *);
1: + struct ns_common *(*get_parent)(struct ns_common *);
1: };
1:
1: struct ucounts {
1: - struct hlist_node node;
1: - struct user_namespace *ns;
1: - kuid_t uid;
1: - int count;
1: - atomic_t ucount[10];
1: + struct hlist_node node;
1: + struct user_namespace *ns;
1: + kuid_t uid;
1: + int count;
1: + atomic_t ucount[10];
1: };
1:
1: struct iovec {
1: - void *iov_base;
1: - __kernel_size_t iov_len;
1: + void *iov_base;
1: + __kernel_size_t iov_len;
1: };
1:
1: struct kvec {
1: - void *iov_base;
1: - size_t iov_len;
1: + void *iov_base;
1: + size_t iov_len;
1: };
1:
1: struct perf_regs {
1: - __u64 abi;
1: - struct pt_regs *regs;
1: + __u64 abi;
1: + struct pt_regs *regs;
1: };
1:
1: struct u64_stats_sync {};
1:
1: struct bpf_cgroup_storage_key {
1: - __u64 cgroup_inode_id;
1: - __u32 attach_type;
1: + __u64 cgroup_inode_id;
1: + __u32 attach_type;
1: };
1:
1: struct bpf_cgroup_storage;
1:
1: struct bpf_prog_array_item {
1: - struct bpf_prog *prog;
1: - struct bpf_cgroup_storage *cgroup_storage[2];
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_storage *cgroup_storage[2];
1: };
1:
1: struct bpf_storage_buffer;
1: @@ -6450,38 +6516,38 @@ struct bpf_storage_buffer;
1: struct bpf_cgroup_storage_map;
1:
1: struct bpf_cgroup_storage {
1: - union {
1: - struct bpf_storage_buffer *buf;
1: - void *percpu_buf;
1: - };
1: - struct bpf_cgroup_storage_map *map;
1: - struct bpf_cgroup_storage_key key;
1: - struct list_head list_map;
1: - struct list_head list_cg;
1: - struct rb_node node;
1: - struct callback_head rcu;
1: + union {
1: + struct bpf_storage_buffer *buf;
1: + void *percpu_buf;
1: + };
1: + struct bpf_cgroup_storage_map *map;
1: + struct bpf_cgroup_storage_key key;
1: + struct list_head list_map;
1: + struct list_head list_cg;
1: + struct rb_node node;
1: + struct callback_head rcu;
1: };
1:
1: struct bpf_prog_array {
1: - struct callback_head rcu;
1: - struct bpf_prog_array_item items[0];
1: + struct callback_head rcu;
1: + struct bpf_prog_array_item items[0];
1: };
1:
1: struct bpf_storage_buffer {
1: - struct callback_head rcu;
1: - char data[0];
1: + struct callback_head rcu;
1: + char data[0];
1: };
1:
1: struct psi_group_cpu {
1: - seqcount_t seq;
1: - unsigned int tasks[4];
1: - u32 state_mask;
1: - u32 times[6];
1: - u64 state_start;
1: - long: 64;
1: - u32 times_prev[12];
1: - long: 64;
1: - long: 64;
1: + seqcount_t seq;
1: + unsigned int tasks[4];
1: + u32 state_mask;
1: + u32 times[6];
1: + u64 state_start;
1: + long : 64;
1: + u32 times_prev[12];
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct cgroup_taskset;
1: @@ -6489,117 +6555,118 @@ struct cgroup_taskset;
1: struct cftype;
1:
1: struct cgroup_subsys {
1: - struct cgroup_subsys_state * (*css_alloc)(struct cgroup_subsys_state *);
1: - int (*css_online)(struct cgroup_subsys_state *);
1: - void (*css_offline)(struct cgroup_subsys_state *);
1: - void (*css_released)(struct cgroup_subsys_state *);
1: - void (*css_free)(struct cgroup_subsys_state *);
1: - void (*css_reset)(struct cgroup_subsys_state *);
1: - void (*css_rstat_flush)(struct cgroup_subsys_state *, int);
1: - int (*css_extra_stat_show)(struct seq_file *, struct cgroup_subsys_state *);
1: - int (*can_attach)(struct cgroup_taskset *);
1: - void (*cancel_attach)(struct cgroup_taskset *);
1: - void (*attach)(struct cgroup_taskset *);
1: - void (*post_attach)();
1: - int (*can_fork)(struct task_struct *, struct css_set *);
1: - void (*cancel_fork)(struct task_struct *, struct css_set *);
1: - void (*fork)(struct task_struct *);
1: - void (*exit)(struct task_struct *);
1: - void (*release)(struct task_struct *);
1: - void (*bind)(struct cgroup_subsys_state *);
1: - bool early_init: 1;
1: - bool implicit_on_dfl: 1;
1: - bool threaded: 1;
1: - bool broken_hierarchy: 1;
1: - bool warned_broken_hierarchy: 1;
1: - int id;
1: - const char *name;
1: - const char *legacy_name;
1: - struct cgroup_root *root;
1: - struct idr css_idr;
1: - struct list_head cfts;
1: - struct cftype *dfl_cftypes;
1: - struct cftype *legacy_cftypes;
1: - unsigned int depends_on;
1: + struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *);
1: + int (*css_online)(struct cgroup_subsys_state *);
1: + void (*css_offline)(struct cgroup_subsys_state *);
1: + void (*css_released)(struct cgroup_subsys_state *);
1: + void (*css_free)(struct cgroup_subsys_state *);
1: + void (*css_reset)(struct cgroup_subsys_state *);
1: + void (*css_rstat_flush)(struct cgroup_subsys_state *, int);
1: + int (*css_extra_stat_show)(struct seq_file *, struct cgroup_subsys_state *);
1: + int (*can_attach)(struct cgroup_taskset *);
1: + void (*cancel_attach)(struct cgroup_taskset *);
1: + void (*attach)(struct cgroup_taskset *);
1: + void (*post_attach)();
1: + int (*can_fork)(struct task_struct *, struct css_set *);
1: + void (*cancel_fork)(struct task_struct *, struct css_set *);
1: + void (*fork)(struct task_struct *);
1: + void (*exit)(struct task_struct *);
1: + void (*release)(struct task_struct *);
1: + void (*bind)(struct cgroup_subsys_state *);
1: + bool early_init : 1;
1: + bool implicit_on_dfl : 1;
1: + bool threaded : 1;
1: + bool broken_hierarchy : 1;
1: + bool warned_broken_hierarchy : 1;
1: + int id;
1: + const char *name;
1: + const char *legacy_name;
1: + struct cgroup_root *root;
1: + struct idr css_idr;
1: + struct list_head cfts;
1: + struct cftype *dfl_cftypes;
1: + struct cftype *legacy_cftypes;
1: + unsigned int depends_on;
1: };
1:
1: struct cgroup_rstat_cpu {
1: - struct u64_stats_sync bsync;
1: - struct cgroup_base_stat bstat;
1: - struct cgroup_base_stat last_bstat;
1: - struct cgroup *updated_children;
1: - struct cgroup *updated_next;
1: + struct u64_stats_sync bsync;
1: + struct cgroup_base_stat bstat;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup *updated_children;
1: + struct cgroup *updated_next;
1: };
1:
1: struct cgroup_root {
1: - struct kernfs_root *kf_root;
1: - unsigned int subsys_mask;
1: - int hierarchy_id;
1: - struct cgroup cgrp;
1: - u64 cgrp_ancestor_id_storage;
1: - atomic_t nr_cgrps;
1: - struct list_head root_list;
1: - unsigned int flags;
1: - char release_agent_path[4096];
1: - char name[64];
1: + struct kernfs_root *kf_root;
1: + unsigned int subsys_mask;
1: + int hierarchy_id;
1: + struct cgroup cgrp;
1: + u64 cgrp_ancestor_id_storage;
1: + atomic_t nr_cgrps;
1: + struct list_head root_list;
1: + unsigned int flags;
1: + char release_agent_path[4096];
1: + char name[64];
1: };
1:
1: struct cftype {
1: - char name[64];
1: - long unsigned int private;
1: - size_t max_write_len;
1: - unsigned int flags;
1: - unsigned int file_offset;
1: - struct cgroup_subsys *ss;
1: - struct list_head node;
1: - struct kernfs_ops *kf_ops;
1: - int (*open)(struct kernfs_open_file *);
1: - void (*release)(struct kernfs_open_file *);
1: - u64 (*read_u64)(struct cgroup_subsys_state *, struct cftype *);
1: - s64 (*read_s64)(struct cgroup_subsys_state *, struct cftype *);
1: - int (*seq_show)(struct seq_file *, void *);
1: - void * (*seq_start)(struct seq_file *, loff_t *);
1: - void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: - void (*seq_stop)(struct seq_file *, void *);
1: - int (*write_u64)(struct cgroup_subsys_state *, struct cftype *, u64);
1: - int (*write_s64)(struct cgroup_subsys_state *, struct cftype *, s64);
1: - ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: - __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: + char name[64];
1: + long unsigned int private;
1: + size_t max_write_len;
1: + unsigned int flags;
1: + unsigned int file_offset;
1: + struct cgroup_subsys *ss;
1: + struct list_head node;
1: + struct kernfs_ops *kf_ops;
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + u64 (*read_u64)(struct cgroup_subsys_state *, struct cftype *);
1: + s64 (*read_s64)(struct cgroup_subsys_state *, struct cftype *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void *(*seq_start)(struct seq_file *, loff_t *);
1: + void *(*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + int (*write_u64)(struct cgroup_subsys_state *, struct cftype *, u64);
1: + int (*write_s64)(struct cgroup_subsys_state *, struct cftype *, s64);
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: };
1:
1: enum kmalloc_cache_type {
1: - KMALLOC_NORMAL = 0,
1: - KMALLOC_RECLAIM = 1,
1: - KMALLOC_DMA = 2,
1: - NR_KMALLOC_TYPES = 3,
1: + KMALLOC_NORMAL = 0,
1: + KMALLOC_RECLAIM = 1,
1: + KMALLOC_DMA = 2,
1: + NR_KMALLOC_TYPES = 3,
1: };
1:
1: struct perf_callchain_entry {
1: - __u64 nr;
1: - __u64 ip[0];
1: + __u64 nr;
1: + __u64 ip[0];
1: };
1:
1: -typedef long unsigned int (*perf_copy_f)(void *, const void *, long unsigned int, long unsigned int);
1: +typedef long unsigned int (*perf_copy_f)(void *, const void *,
1: + long unsigned int, long unsigned int);
1:
1: struct perf_raw_frag {
1: - union {
1: - struct perf_raw_frag *next;
1: - long unsigned int pad;
1: - };
1: - perf_copy_f copy;
1: - void *data;
1: - u32 size;
1: + union {
1: + struct perf_raw_frag *next;
1: + long unsigned int pad;
1: + };
1: + perf_copy_f copy;
1: + void *data;
1: + u32 size;
1: } __attribute__((packed));
1:
1: struct perf_raw_record {
1: - struct perf_raw_frag frag;
1: - u32 size;
1: + struct perf_raw_frag frag;
1: + u32 size;
1: };
1:
1: struct perf_branch_stack {
1: - __u64 nr;
1: - __u64 hw_idx;
1: - struct perf_branch_entry entries[0];
1: + __u64 nr;
1: + __u64 hw_idx;
1: + struct perf_branch_entry entries[0];
1: };
1:
1: struct perf_cpu_context;
1: @@ -6607,131 +6674,133 @@ struct perf_cpu_context;
1: struct perf_output_handle;
1:
1: struct pmu {
1: - struct list_head entry;
1: - struct module *module;
1: - struct device *dev;
1: - const struct attribute_group **attr_groups;
1: - const struct attribute_group **attr_update;
1: - const char *name;
1: - int type;
1: - int capabilities;
1: - int *pmu_disable_count;
1: - struct perf_cpu_context *pmu_cpu_context;
1: - atomic_t exclusive_cnt;
1: - int task_ctx_nr;
1: - int hrtimer_interval_ms;
1: - unsigned int nr_addr_filters;
1: - void (*pmu_enable)(struct pmu *);
1: - void (*pmu_disable)(struct pmu *);
1: - int (*event_init)(struct perf_event *);
1: - void (*event_mapped)(struct perf_event *, struct mm_struct *);
1: - void (*event_unmapped)(struct perf_event *, struct mm_struct *);
1: - int (*add)(struct perf_event *, int);
1: - void (*del)(struct perf_event *, int);
1: - void (*start)(struct perf_event *, int);
1: - void (*stop)(struct perf_event *, int);
1: - void (*read)(struct perf_event *);
1: - void (*start_txn)(struct pmu *, unsigned int);
1: - int (*commit_txn)(struct pmu *);
1: - void (*cancel_txn)(struct pmu *);
1: - int (*event_idx)(struct perf_event *);
1: - void (*sched_task)(struct perf_event_context *, bool);
1: - struct kmem_cache *task_ctx_cache;
1: - void (*swap_task_ctx)(struct perf_event_context *, struct perf_event_context *);
1: - void * (*setup_aux)(struct perf_event *, void **, int, bool);
1: - void (*free_aux)(void *);
1: - long int (*snapshot_aux)(struct perf_event *, struct perf_output_handle *, long unsigned int);
1: - int (*addr_filters_validate)(struct list_head *);
1: - void (*addr_filters_sync)(struct perf_event *);
1: - int (*aux_output_match)(struct perf_event *);
1: - int (*filter_match)(struct perf_event *);
1: - int (*check_period)(struct perf_event *, u64);
1: + struct list_head entry;
1: + struct module *module;
1: + struct device *dev;
1: + const struct attribute_group **attr_groups;
1: + const struct attribute_group **attr_update;
1: + const char *name;
1: + int type;
1: + int capabilities;
1: + int *pmu_disable_count;
1: + struct perf_cpu_context *pmu_cpu_context;
1: + atomic_t exclusive_cnt;
1: + int task_ctx_nr;
1: + int hrtimer_interval_ms;
1: + unsigned int nr_addr_filters;
1: + void (*pmu_enable)(struct pmu *);
1: + void (*pmu_disable)(struct pmu *);
1: + int (*event_init)(struct perf_event *);
1: + void (*event_mapped)(struct perf_event *, struct mm_struct *);
1: + void (*event_unmapped)(struct perf_event *, struct mm_struct *);
1: + int (*add)(struct perf_event *, int);
1: + void (*del)(struct perf_event *, int);
1: + void (*start)(struct perf_event *, int);
1: + void (*stop)(struct perf_event *, int);
1: + void (*read)(struct perf_event *);
1: + void (*start_txn)(struct pmu *, unsigned int);
1: + int (*commit_txn)(struct pmu *);
1: + void (*cancel_txn)(struct pmu *);
1: + int (*event_idx)(struct perf_event *);
1: + void (*sched_task)(struct perf_event_context *, bool);
1: + struct kmem_cache *task_ctx_cache;
1: + void (*swap_task_ctx)(struct perf_event_context *,
1: + struct perf_event_context *);
1: + void *(*setup_aux)(struct perf_event *, void **, int, bool);
1: + void (*free_aux)(void *);
1: + long int (*snapshot_aux)(struct perf_event *, struct perf_output_handle *,
1: + long unsigned int);
1: + int (*addr_filters_validate)(struct list_head *);
1: + void (*addr_filters_sync)(struct perf_event *);
1: + int (*aux_output_match)(struct perf_event *);
1: + int (*filter_match)(struct perf_event *);
1: + int (*check_period)(struct perf_event *, u64);
1: };
1:
1: struct perf_cpu_context {
1: - struct perf_event_context ctx;
1: - struct perf_event_context *task_ctx;
1: - int active_oncpu;
1: - int exclusive;
1: - raw_spinlock_t hrtimer_lock;
1: - struct hrtimer hrtimer;
1: - ktime_t hrtimer_interval;
1: - unsigned int hrtimer_active;
1: - struct perf_cgroup *cgrp;
1: - struct list_head cgrp_cpuctx_entry;
1: - int sched_cb_usage;
1: - int online;
1: - int heap_size;
1: - struct perf_event **heap;
1: - struct perf_event *heap_default[2];
1: + struct perf_event_context ctx;
1: + struct perf_event_context *task_ctx;
1: + int active_oncpu;
1: + int exclusive;
1: + raw_spinlock_t hrtimer_lock;
1: + struct hrtimer hrtimer;
1: + ktime_t hrtimer_interval;
1: + unsigned int hrtimer_active;
1: + struct perf_cgroup *cgrp;
1: + struct list_head cgrp_cpuctx_entry;
1: + int sched_cb_usage;
1: + int online;
1: + int heap_size;
1: + struct perf_event **heap;
1: + struct perf_event *heap_default[2];
1: };
1:
1: struct perf_output_handle {
1: - struct perf_event *event;
1: - struct perf_buffer *rb;
1: - long unsigned int wakeup;
1: - long unsigned int size;
1: - u64 aux_flags;
1: - union {
1: - void *addr;
1: - long unsigned int head;
1: - };
1: - int page;
1: + struct perf_event *event;
1: + struct perf_buffer *rb;
1: + long unsigned int wakeup;
1: + long unsigned int size;
1: + u64 aux_flags;
1: + union {
1: + void *addr;
1: + long unsigned int head;
1: + };
1: + int page;
1: };
1:
1: struct perf_addr_filter_range {
1: - long unsigned int start;
1: - long unsigned int size;
1: + long unsigned int start;
1: + long unsigned int size;
1: };
1:
1: struct perf_sample_data {
1: - u64 addr;
1: - struct perf_raw_record *raw;
1: - struct perf_branch_stack *br_stack;
1: - u64 period;
1: - u64 weight;
1: - u64 txn;
1: - union perf_mem_data_src data_src;
1: - u64 type;
1: - u64 ip;
1: - struct {
1: - u32 pid;
1: - u32 tid;
1: - } tid_entry;
1: - u64 time;
1: - u64 id;
1: - u64 stream_id;
1: - struct {
1: - u32 cpu;
1: - u32 reserved;
1: - } cpu_entry;
1: - struct perf_callchain_entry *callchain;
1: - u64 aux_size;
1: - struct perf_regs regs_user;
1: - struct perf_regs regs_intr;
1: - u64 stack_user_size;
1: - u64 phys_addr;
1: - u64 cgroup;
1: - long: 64;
1: + u64 addr;
1: + struct perf_raw_record *raw;
1: + struct perf_branch_stack *br_stack;
1: + u64 period;
1: + u64 weight;
1: + u64 txn;
1: + union perf_mem_data_src data_src;
1: + u64 type;
1: + u64 ip;
1: + struct {
1: + u32 pid;
1: + u32 tid;
1: + } tid_entry;
1: + u64 time;
1: + u64 id;
1: + u64 stream_id;
1: + struct {
1: + u32 cpu;
1: + u32 reserved;
1: + } cpu_entry;
1: + struct perf_callchain_entry *callchain;
1: + u64 aux_size;
1: + struct perf_regs regs_user;
1: + struct perf_regs regs_intr;
1: + u64 stack_user_size;
1: + u64 phys_addr;
1: + u64 cgroup;
1: + long : 64;
1: };
1:
1: struct perf_cgroup_info;
1:
1: struct perf_cgroup {
1: - struct cgroup_subsys_state css;
1: - struct perf_cgroup_info *info;
1: + struct cgroup_subsys_state css;
1: + struct perf_cgroup_info *info;
1: };
1:
1: struct perf_cgroup_info {
1: - u64 time;
1: - u64 timestamp;
1: + u64 time;
1: + u64 timestamp;
1: };
1:
1: struct trace_entry {
1: - short unsigned int type;
1: - unsigned char flags;
1: - unsigned char preempt_count;
1: - int pid;
1: + short unsigned int type;
1: + unsigned char flags;
1: + unsigned char preempt_count;
1: + int pid;
1: };
1:
1: struct trace_array;
1: @@ -6743,80 +6812,81 @@ struct array_buffer;
1: struct ring_buffer_iter;
1:
1: struct trace_iterator {
1: - struct trace_array *tr;
1: - struct tracer *trace;
1: - struct array_buffer *array_buffer;
1: - void *private;
1: - int cpu_file;
1: - struct mutex mutex;
1: - struct ring_buffer_iter **buffer_iter;
1: - long unsigned int iter_flags;
1: - void *temp;
1: - unsigned int temp_size;
1: - struct trace_seq tmp_seq;
1: - cpumask_var_t started;
1: - bool snapshot;
1: - struct trace_seq seq;
1: - struct trace_entry *ent;
1: - long unsigned int lost_events;
1: - int leftover;
1: - int ent_size;
1: - int cpu;
1: - u64 ts;
1: - loff_t pos;
1: - long int idx;
1: + struct trace_array *tr;
1: + struct tracer *trace;
1: + struct array_buffer *array_buffer;
1: + void *private;
1: + int cpu_file;
1: + struct mutex mutex;
1: + struct ring_buffer_iter **buffer_iter;
1: + long unsigned int iter_flags;
1: + void *temp;
1: + unsigned int temp_size;
1: + struct trace_seq tmp_seq;
1: + cpumask_var_t started;
1: + bool snapshot;
1: + struct trace_seq seq;
1: + struct trace_entry *ent;
1: + long unsigned int lost_events;
1: + int leftover;
1: + int ent_size;
1: + int cpu;
1: + u64 ts;
1: + loff_t pos;
1: + long int idx;
1: };
1:
1: enum print_line_t {
1: - TRACE_TYPE_PARTIAL_LINE = 0,
1: - TRACE_TYPE_HANDLED = 1,
1: - TRACE_TYPE_UNHANDLED = 2,
1: - TRACE_TYPE_NO_CONSUME = 3,
1: + TRACE_TYPE_PARTIAL_LINE = 0,
1: + TRACE_TYPE_HANDLED = 1,
1: + TRACE_TYPE_UNHANDLED = 2,
1: + TRACE_TYPE_NO_CONSUME = 3,
1: };
1:
1: -typedef enum print_line_t (*trace_print_func)(struct trace_iterator *, int, struct trace_event *);
1: +typedef enum print_line_t (*trace_print_func)(struct trace_iterator *, int,
1: + struct trace_event *);
1:
1: struct trace_event_functions {
1: - trace_print_func trace;
1: - trace_print_func raw;
1: - trace_print_func hex;
1: - trace_print_func binary;
1: + trace_print_func trace;
1: + trace_print_func raw;
1: + trace_print_func hex;
1: + trace_print_func binary;
1: };
1:
1: enum trace_reg {
1: - TRACE_REG_REGISTER = 0,
1: - TRACE_REG_UNREGISTER = 1,
1: - TRACE_REG_PERF_REGISTER = 2,
1: - TRACE_REG_PERF_UNREGISTER = 3,
1: - TRACE_REG_PERF_OPEN = 4,
1: - TRACE_REG_PERF_CLOSE = 5,
1: - TRACE_REG_PERF_ADD = 6,
1: - TRACE_REG_PERF_DEL = 7,
1: + TRACE_REG_REGISTER = 0,
1: + TRACE_REG_UNREGISTER = 1,
1: + TRACE_REG_PERF_REGISTER = 2,
1: + TRACE_REG_PERF_UNREGISTER = 3,
1: + TRACE_REG_PERF_OPEN = 4,
1: + TRACE_REG_PERF_CLOSE = 5,
1: + TRACE_REG_PERF_ADD = 6,
1: + TRACE_REG_PERF_DEL = 7,
1: };
1:
1: struct trace_event_fields {
1: - const char *type;
1: - union {
1: - struct {
1: - const char *name;
1: - const int size;
1: - const int align;
1: - const int is_signed;
1: - const int filter_type;
1: - };
1: - int (*define_fields)(struct trace_event_call *);
1: - };
1: + const char *type;
1: + union {
1: + struct {
1: + const char *name;
1: + const int size;
1: + const int align;
1: + const int is_signed;
1: + const int filter_type;
1: + };
1: + int (*define_fields)(struct trace_event_call *);
1: + };
1: };
1:
1: struct trace_event_class {
1: - const char *system;
1: - void *probe;
1: - void *perf_probe;
1: - int (*reg)(struct trace_event_call *, enum trace_reg, void *);
1: - struct trace_event_fields *fields_array;
1: - struct list_head * (*get_fields)(struct trace_event_call *);
1: - struct list_head fields;
1: - int (*raw_init)(struct trace_event_call *);
1: + const char *system;
1: + void *probe;
1: + void *perf_probe;
1: + int (*reg)(struct trace_event_call *, enum trace_reg, void *);
1: + struct trace_event_fields *fields_array;
1: + struct list_head *(*get_fields)(struct trace_event_call *);
1: + struct list_head fields;
1: + int (*raw_init)(struct trace_event_call *);
1: };
1:
1: struct trace_buffer;
1: @@ -6824,86 +6894,86 @@ struct trace_buffer;
1: struct trace_event_file;
1:
1: struct trace_event_buffer {
1: - struct trace_buffer *buffer;
1: - struct ring_buffer_event *event;
1: - struct trace_event_file *trace_file;
1: - void *entry;
1: - long unsigned int flags;
1: - int pc;
1: - struct pt_regs *regs;
1: + struct trace_buffer *buffer;
1: + struct ring_buffer_event *event;
1: + struct trace_event_file *trace_file;
1: + void *entry;
1: + long unsigned int flags;
1: + int pc;
1: + struct pt_regs *regs;
1: };
1:
1: struct trace_subsystem_dir;
1:
1: struct trace_event_file {
1: - struct list_head list;
1: - struct trace_event_call *event_call;
1: - struct event_filter *filter;
1: - struct dentry *dir;
1: - struct trace_array *tr;
1: - struct trace_subsystem_dir *system;
1: - struct list_head triggers;
1: - long unsigned int flags;
1: - atomic_t sm_ref;
1: - atomic_t tm_ref;
1: + struct list_head list;
1: + struct trace_event_call *event_call;
1: + struct event_filter *filter;
1: + struct dentry *dir;
1: + struct trace_array *tr;
1: + struct trace_subsystem_dir *system;
1: + struct list_head triggers;
1: + long unsigned int flags;
1: + atomic_t sm_ref;
1: + atomic_t tm_ref;
1: };
1:
1: enum {
1: - TRACE_EVENT_FL_FILTERED_BIT = 0,
1: - TRACE_EVENT_FL_CAP_ANY_BIT = 1,
1: - TRACE_EVENT_FL_NO_SET_FILTER_BIT = 2,
1: - TRACE_EVENT_FL_IGNORE_ENABLE_BIT = 3,
1: - TRACE_EVENT_FL_TRACEPOINT_BIT = 4,
1: - TRACE_EVENT_FL_KPROBE_BIT = 5,
1: - TRACE_EVENT_FL_UPROBE_BIT = 6,
1: + TRACE_EVENT_FL_FILTERED_BIT = 0,
1: + TRACE_EVENT_FL_CAP_ANY_BIT = 1,
1: + TRACE_EVENT_FL_NO_SET_FILTER_BIT = 2,
1: + TRACE_EVENT_FL_IGNORE_ENABLE_BIT = 3,
1: + TRACE_EVENT_FL_TRACEPOINT_BIT = 4,
1: + TRACE_EVENT_FL_KPROBE_BIT = 5,
1: + TRACE_EVENT_FL_UPROBE_BIT = 6,
1: };
1:
1: enum {
1: - TRACE_EVENT_FL_FILTERED = 1,
1: - TRACE_EVENT_FL_CAP_ANY = 2,
1: - TRACE_EVENT_FL_NO_SET_FILTER = 4,
1: - TRACE_EVENT_FL_IGNORE_ENABLE = 8,
1: - TRACE_EVENT_FL_TRACEPOINT = 16,
1: - TRACE_EVENT_FL_KPROBE = 32,
1: - TRACE_EVENT_FL_UPROBE = 64,
1: + TRACE_EVENT_FL_FILTERED = 1,
1: + TRACE_EVENT_FL_CAP_ANY = 2,
1: + TRACE_EVENT_FL_NO_SET_FILTER = 4,
1: + TRACE_EVENT_FL_IGNORE_ENABLE = 8,
1: + TRACE_EVENT_FL_TRACEPOINT = 16,
1: + TRACE_EVENT_FL_KPROBE = 32,
1: + TRACE_EVENT_FL_UPROBE = 64,
1: };
1:
1: enum {
1: - EVENT_FILE_FL_ENABLED_BIT = 0,
1: - EVENT_FILE_FL_RECORDED_CMD_BIT = 1,
1: - EVENT_FILE_FL_RECORDED_TGID_BIT = 2,
1: - EVENT_FILE_FL_FILTERED_BIT = 3,
1: - EVENT_FILE_FL_NO_SET_FILTER_BIT = 4,
1: - EVENT_FILE_FL_SOFT_MODE_BIT = 5,
1: - EVENT_FILE_FL_SOFT_DISABLED_BIT = 6,
1: - EVENT_FILE_FL_TRIGGER_MODE_BIT = 7,
1: - EVENT_FILE_FL_TRIGGER_COND_BIT = 8,
1: - EVENT_FILE_FL_PID_FILTER_BIT = 9,
1: - EVENT_FILE_FL_WAS_ENABLED_BIT = 10,
1: + EVENT_FILE_FL_ENABLED_BIT = 0,
1: + EVENT_FILE_FL_RECORDED_CMD_BIT = 1,
1: + EVENT_FILE_FL_RECORDED_TGID_BIT = 2,
1: + EVENT_FILE_FL_FILTERED_BIT = 3,
1: + EVENT_FILE_FL_NO_SET_FILTER_BIT = 4,
1: + EVENT_FILE_FL_SOFT_MODE_BIT = 5,
1: + EVENT_FILE_FL_SOFT_DISABLED_BIT = 6,
1: + EVENT_FILE_FL_TRIGGER_MODE_BIT = 7,
1: + EVENT_FILE_FL_TRIGGER_COND_BIT = 8,
1: + EVENT_FILE_FL_PID_FILTER_BIT = 9,
1: + EVENT_FILE_FL_WAS_ENABLED_BIT = 10,
1: };
1:
1: enum {
1: - EVENT_FILE_FL_ENABLED = 1,
1: - EVENT_FILE_FL_RECORDED_CMD = 2,
1: - EVENT_FILE_FL_RECORDED_TGID = 4,
1: - EVENT_FILE_FL_FILTERED = 8,
1: - EVENT_FILE_FL_NO_SET_FILTER = 16,
1: - EVENT_FILE_FL_SOFT_MODE = 32,
1: - EVENT_FILE_FL_SOFT_DISABLED = 64,
1: - EVENT_FILE_FL_TRIGGER_MODE = 128,
1: - EVENT_FILE_FL_TRIGGER_COND = 256,
1: - EVENT_FILE_FL_PID_FILTER = 512,
1: - EVENT_FILE_FL_WAS_ENABLED = 1024,
1: + EVENT_FILE_FL_ENABLED = 1,
1: + EVENT_FILE_FL_RECORDED_CMD = 2,
1: + EVENT_FILE_FL_RECORDED_TGID = 4,
1: + EVENT_FILE_FL_FILTERED = 8,
1: + EVENT_FILE_FL_NO_SET_FILTER = 16,
1: + EVENT_FILE_FL_SOFT_MODE = 32,
1: + EVENT_FILE_FL_SOFT_DISABLED = 64,
1: + EVENT_FILE_FL_TRIGGER_MODE = 128,
1: + EVENT_FILE_FL_TRIGGER_COND = 256,
1: + EVENT_FILE_FL_PID_FILTER = 512,
1: + EVENT_FILE_FL_WAS_ENABLED = 1024,
1: };
1:
1: enum {
1: - FILTER_OTHER = 0,
1: - FILTER_STATIC_STRING = 1,
1: - FILTER_DYN_STRING = 2,
1: - FILTER_PTR_STRING = 3,
1: - FILTER_TRACE_FN = 4,
1: - FILTER_COMM = 5,
1: - FILTER_CPU = 6,
1: + FILTER_OTHER = 0,
1: + FILTER_STATIC_STRING = 1,
1: + FILTER_DYN_STRING = 2,
1: + FILTER_PTR_STRING = 3,
1: + FILTER_TRACE_FN = 4,
1: + FILTER_COMM = 5,
1: + FILTER_CPU = 6,
1: };
1:
1: struct fwnode_reference_args;
1: @@ -6911,81 +6981,95 @@ struct fwnode_reference_args;
1: struct fwnode_endpoint;
1:
1: struct fwnode_operations {
1: - struct fwnode_handle * (*get)(struct fwnode_handle *);
1: - void (*put)(struct fwnode_handle *);
1: - bool (*device_is_available)(const struct fwnode_handle *);
1: - const void * (*device_get_match_data)(const struct fwnode_handle *, const struct device *);
1: - bool (*property_present)(const struct fwnode_handle *, const char *);
1: - int (*property_read_int_array)(const struct fwnode_handle *, const char *, unsigned int, void *, size_t);
1: - int (*property_read_string_array)(const struct fwnode_handle *, const char *, const char **, size_t);
1: - const char * (*get_name)(const struct fwnode_handle *);
1: - const char * (*get_name_prefix)(const struct fwnode_handle *);
1: - struct fwnode_handle * (*get_parent)(const struct fwnode_handle *);
1: - struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *, struct fwnode_handle *);
1: - struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *, const char *);
1: - int (*get_reference_args)(const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *);
1: - struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *, struct fwnode_handle *);
1: - struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *);
1: - struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *);
1: - int (*graph_parse_endpoint)(const struct fwnode_handle *, struct fwnode_endpoint *);
1: - int (*add_links)(const struct fwnode_handle *, struct device *);
1: + struct fwnode_handle *(*get)(struct fwnode_handle *);
1: + void (*put)(struct fwnode_handle *);
1: + bool (*device_is_available)(const struct fwnode_handle *);
1: + const void *(*device_get_match_data)(const struct fwnode_handle *,
1: + const struct device *);
1: + bool (*property_present)(const struct fwnode_handle *, const char *);
1: + int (*property_read_int_array)(const struct fwnode_handle *, const char *,
1: + unsigned int, void *, size_t);
1: + int (*property_read_string_array)(const struct fwnode_handle *, const char *,
1: + const char **, size_t);
1: + const char *(*get_name)(const struct fwnode_handle *);
1: + const char *(*get_name_prefix)(const struct fwnode_handle *);
1: + struct fwnode_handle *(*get_parent)(const struct fwnode_handle *);
1: + struct fwnode_handle *(*get_next_child_node)(const struct fwnode_handle *,
1: + struct fwnode_handle *);
1: + struct fwnode_handle *(*get_named_child_node)(const struct fwnode_handle *,
1: + const char *);
1: + int (*get_reference_args)(const struct fwnode_handle *, const char *,
1: + const char *, unsigned int, unsigned int,
1: + struct fwnode_reference_args *);
1: + struct fwnode_handle *(*graph_get_next_endpoint)(const struct fwnode_handle *,
1: + struct fwnode_handle *);
1: + struct fwnode_handle *(*graph_get_remote_endpoint)(
1: + const struct fwnode_handle *);
1: + struct fwnode_handle *(*graph_get_port_parent)(struct fwnode_handle *);
1: + int (*graph_parse_endpoint)(const struct fwnode_handle *,
1: + struct fwnode_endpoint *);
1: + int (*add_links)(const struct fwnode_handle *, struct device *);
1: };
1:
1: struct fwnode_endpoint {
1: - unsigned int port;
1: - unsigned int id;
1: - const struct fwnode_handle *local_fwnode;
1: + unsigned int port;
1: + unsigned int id;
1: + const struct fwnode_handle *local_fwnode;
1: };
1:
1: struct fwnode_reference_args {
1: - struct fwnode_handle *fwnode;
1: - unsigned int nargs;
1: - u64 args[8];
1: + struct fwnode_handle *fwnode;
1: + unsigned int nargs;
1: + u64 args[8];
1: };
1:
1: struct property {
1: - char *name;
1: - int length;
1: - void *value;
1: - struct property *next;
1: - long unsigned int _flags;
1: - struct bin_attribute attr;
1: + char *name;
1: + int length;
1: + void *value;
1: + struct property *next;
1: + long unsigned int _flags;
1: + struct bin_attribute attr;
1: };
1:
1: struct irq_fwspec {
1: - struct fwnode_handle *fwnode;
1: - int param_count;
1: - u32 param[16];
1: + struct fwnode_handle *fwnode;
1: + int param_count;
1: + u32 param[16];
1: };
1:
1: struct irq_data;
1:
1: struct irq_domain_ops {
1: - int (*match)(struct irq_domain *, struct device_node *, enum irq_domain_bus_token);
1: - int (*select)(struct irq_domain *, struct irq_fwspec *, enum irq_domain_bus_token);
1: - int (*map)(struct irq_domain *, unsigned int, irq_hw_number_t);
1: - void (*unmap)(struct irq_domain *, unsigned int);
1: - int (*xlate)(struct irq_domain *, struct device_node *, const u32 *, unsigned int, long unsigned int *, unsigned int *);
1: - int (*alloc)(struct irq_domain *, unsigned int, unsigned int, void *);
1: - void (*free)(struct irq_domain *, unsigned int, unsigned int);
1: - int (*activate)(struct irq_domain *, struct irq_data *, bool);
1: - void (*deactivate)(struct irq_domain *, struct irq_data *);
1: - int (*translate)(struct irq_domain *, struct irq_fwspec *, long unsigned int *, unsigned int *);
1: + int (*match)(struct irq_domain *, struct device_node *,
1: + enum irq_domain_bus_token);
1: + int (*select)(struct irq_domain *, struct irq_fwspec *,
1: + enum irq_domain_bus_token);
1: + int (*map)(struct irq_domain *, unsigned int, irq_hw_number_t);
1: + void (*unmap)(struct irq_domain *, unsigned int);
1: + int (*xlate)(struct irq_domain *, struct device_node *, const u32 *,
1: + unsigned int, long unsigned int *, unsigned int *);
1: + int (*alloc)(struct irq_domain *, unsigned int, unsigned int, void *);
1: + void (*free)(struct irq_domain *, unsigned int, unsigned int);
1: + int (*activate)(struct irq_domain *, struct irq_data *, bool);
1: + void (*deactivate)(struct irq_domain *, struct irq_data *);
1: + int (*translate)(struct irq_domain *, struct irq_fwspec *,
1: + long unsigned int *, unsigned int *);
1: };
1:
1: struct xbc_node {
1: - u16 next;
1: - u16 child;
1: - u16 parent;
1: - u16 data;
1: + u16 next;
1: + u16 child;
1: + u16 parent;
1: + u16 data;
1: };
1:
1: enum wb_stat_item {
1: - WB_RECLAIMABLE = 0,
1: - WB_WRITEBACK = 1,
1: - WB_DIRTIED = 2,
1: - WB_WRITTEN = 3,
1: - NR_WB_STAT_ITEMS = 4,
1: + WB_RECLAIMABLE = 0,
1: + WB_WRITEBACK = 1,
1: + WB_DIRTIED = 2,
1: + WB_WRITTEN = 3,
1: + NR_WB_STAT_ITEMS = 4,
1: };
1:
1: struct disk_stats;
1: @@ -6993,17 +7077,17 @@ struct disk_stats;
1: struct partition_meta_info;
1:
1: struct hd_struct {
1: - sector_t start_sect;
1: - sector_t nr_sects;
1: - long unsigned int stamp;
1: - struct disk_stats *dkstats;
1: - struct percpu_ref ref;
1: - struct device __dev;
1: - struct kobject *holder_dir;
1: - int policy;
1: - int partno;
1: - struct partition_meta_info *info;
1: - struct rcu_work rcu_work;
1: + sector_t start_sect;
1: + sector_t nr_sects;
1: + long unsigned int stamp;
1: + struct disk_stats *dkstats;
1: + struct percpu_ref ref;
1: + struct device __dev;
1: + struct kobject *holder_dir;
1: + int policy;
1: + int partno;
1: + struct partition_meta_info *info;
1: + struct rcu_work rcu_work;
1: };
1:
1: struct disk_part_tbl;
1: @@ -7019,53 +7103,53 @@ struct cdrom_device_info;
1: struct badblocks;
1:
1: struct gendisk {
1: - int major;
1: - int first_minor;
1: - int minors;
1: - char disk_name[32];
1: - short unsigned int events;
1: - short unsigned int event_flags;
1: - struct disk_part_tbl *part_tbl;
1: - struct hd_struct part0;
1: - const struct block_device_operations *fops;
1: - struct request_queue *queue;
1: - void *private_data;
1: - int flags;
1: - long unsigned int state;
1: - struct rw_semaphore lookup_sem;
1: - struct kobject *slave_dir;
1: - struct timer_rand_state *random;
1: - atomic_t sync_io;
1: - struct disk_events *ev;
1: - struct kobject integrity_kobj;
1: - struct cdrom_device_info *cdi;
1: - int node_id;
1: - struct badblocks *bb;
1: - struct lockdep_map lockdep_map;
1: + int major;
1: + int first_minor;
1: + int minors;
1: + char disk_name[32];
1: + short unsigned int events;
1: + short unsigned int event_flags;
1: + struct disk_part_tbl *part_tbl;
1: + struct hd_struct part0;
1: + const struct block_device_operations *fops;
1: + struct request_queue *queue;
1: + void *private_data;
1: + int flags;
1: + long unsigned int state;
1: + struct rw_semaphore lookup_sem;
1: + struct kobject *slave_dir;
1: + struct timer_rand_state *random;
1: + atomic_t sync_io;
1: + struct disk_events *ev;
1: + struct kobject integrity_kobj;
1: + struct cdrom_device_info *cdi;
1: + int node_id;
1: + struct badblocks *bb;
1: + struct lockdep_map lockdep_map;
1: };
1:
1: struct bio_integrity_payload {
1: - struct bio *bip_bio;
1: - struct bvec_iter bip_iter;
1: - short unsigned int bip_slab;
1: - short unsigned int bip_vcnt;
1: - short unsigned int bip_max_vcnt;
1: - short unsigned int bip_flags;
1: - struct bvec_iter bio_iter;
1: - struct work_struct bip_work;
1: - struct bio_vec *bip_vec;
1: - struct bio_vec bip_inline_vecs[0];
1: + struct bio *bip_bio;
1: + struct bvec_iter bip_iter;
1: + short unsigned int bip_slab;
1: + short unsigned int bip_vcnt;
1: + short unsigned int bip_max_vcnt;
1: + short unsigned int bip_flags;
1: + struct bvec_iter bio_iter;
1: + struct work_struct bip_work;
1: + struct bio_vec *bip_vec;
1: + struct bio_vec bip_inline_vecs[0];
1: };
1:
1: struct blkg_iostat {
1: - u64 bytes[3];
1: - u64 ios[3];
1: + u64 bytes[3];
1: + u64 ios[3];
1: };
1:
1: struct blkg_iostat_set {
1: - struct u64_stats_sync sync;
1: - struct blkg_iostat cur;
1: - struct blkg_iostat last;
1: + struct u64_stats_sync sync;
1: + struct blkg_iostat cur;
1: + struct blkg_iostat last;
1: };
1:
1: struct blkcg;
1: @@ -7073,39 +7157,39 @@ struct blkcg;
1: struct blkg_policy_data;
1:
1: struct blkcg_gq {
1: - struct request_queue *q;
1: - struct list_head q_node;
1: - struct hlist_node blkcg_node;
1: - struct blkcg *blkcg;
1: - struct blkcg_gq *parent;
1: - struct percpu_ref refcnt;
1: - bool online;
1: - struct blkg_iostat_set *iostat_cpu;
1: - struct blkg_iostat_set iostat;
1: - struct blkg_policy_data *pd[5];
1: - spinlock_t async_bio_lock;
1: - struct bio_list async_bios;
1: - struct work_struct async_bio_work;
1: - atomic_t use_delay;
1: - atomic64_t delay_nsec;
1: - atomic64_t delay_start;
1: - u64 last_delay;
1: - int last_use;
1: - struct callback_head callback_head;
1: + struct request_queue *q;
1: + struct list_head q_node;
1: + struct hlist_node blkcg_node;
1: + struct blkcg *blkcg;
1: + struct blkcg_gq *parent;
1: + struct percpu_ref refcnt;
1: + bool online;
1: + struct blkg_iostat_set *iostat_cpu;
1: + struct blkg_iostat_set iostat;
1: + struct blkg_policy_data *pd[5];
1: + spinlock_t async_bio_lock;
1: + struct bio_list async_bios;
1: + struct work_struct async_bio_work;
1: + atomic_t use_delay;
1: + atomic64_t delay_nsec;
1: + atomic64_t delay_start;
1: + u64 last_delay;
1: + int last_use;
1: + struct callback_head callback_head;
1: };
1:
1: typedef unsigned int blk_qc_t;
1:
1: struct partition_meta_info {
1: - char uuid[37];
1: - u8 volname[64];
1: + char uuid[37];
1: + u8 volname[64];
1: };
1:
1: struct disk_part_tbl {
1: - struct callback_head callback_head;
1: - int len;
1: - struct hd_struct *last_lookup;
1: - struct hd_struct *part[0];
1: + struct callback_head callback_head;
1: + int len;
1: + struct hd_struct *last_lookup;
1: + struct hd_struct *part[0];
1: };
1:
1: struct blk_integrity_iter;
1: @@ -7117,11 +7201,11 @@ typedef void integrity_prepare_fn(struct request *);
1: typedef void integrity_complete_fn(struct request *, unsigned int);
1:
1: struct blk_integrity_profile {
1: - integrity_processing_fn *generate_fn;
1: - integrity_processing_fn *verify_fn;
1: - integrity_prepare_fn *prepare_fn;
1: - integrity_complete_fn *complete_fn;
1: - const char *name;
1: + integrity_processing_fn *generate_fn;
1: + integrity_processing_fn *verify_fn;
1: + integrity_prepare_fn *prepare_fn;
1: + integrity_complete_fn *complete_fn;
1: + const char *name;
1: };
1:
1: struct blk_zone;
1: @@ -7133,64 +7217,66 @@ struct hd_geometry;
1: struct pr_ops;
1:
1: struct block_device_operations {
1: - blk_qc_t (*submit_bio)(struct bio *);
1: - int (*open)(struct block_device *, fmode_t);
1: - void (*release)(struct gendisk *, fmode_t);
1: - int (*rw_page)(struct block_device *, sector_t, struct page *, unsigned int);
1: - int (*ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: - int (*compat_ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: - unsigned int (*check_events)(struct gendisk *, unsigned int);
1: - void (*unlock_native_capacity)(struct gendisk *);
1: - int (*revalidate_disk)(struct gendisk *);
1: - int (*getgeo)(struct block_device *, struct hd_geometry *);
1: - void (*swap_slot_free_notify)(struct block_device *, long unsigned int);
1: - int (*report_zones)(struct gendisk *, sector_t, unsigned int, report_zones_cb, void *);
1: - char * (*devnode)(struct gendisk *, umode_t *);
1: - struct module *owner;
1: - const struct pr_ops *pr_ops;
1: + blk_qc_t (*submit_bio)(struct bio *);
1: + int (*open)(struct block_device *, fmode_t);
1: + void (*release)(struct gendisk *, fmode_t);
1: + int (*rw_page)(struct block_device *, sector_t, struct page *, unsigned int);
1: + int (*ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct block_device *, fmode_t, unsigned int,
1: + long unsigned int);
1: + unsigned int (*check_events)(struct gendisk *, unsigned int);
1: + void (*unlock_native_capacity)(struct gendisk *);
1: + int (*revalidate_disk)(struct gendisk *);
1: + int (*getgeo)(struct block_device *, struct hd_geometry *);
1: + void (*swap_slot_free_notify)(struct block_device *, long unsigned int);
1: + int (*report_zones)(struct gendisk *, sector_t, unsigned int, report_zones_cb,
1: + void *);
1: + char *(*devnode)(struct gendisk *, umode_t *);
1: + struct module *owner;
1: + const struct pr_ops *pr_ops;
1: };
1:
1: struct sg_io_v4 {
1: - __s32 guard;
1: - __u32 protocol;
1: - __u32 subprotocol;
1: - __u32 request_len;
1: - __u64 request;
1: - __u64 request_tag;
1: - __u32 request_attr;
1: - __u32 request_priority;
1: - __u32 request_extra;
1: - __u32 max_response_len;
1: - __u64 response;
1: - __u32 dout_iovec_count;
1: - __u32 dout_xfer_len;
1: - __u32 din_iovec_count;
1: - __u32 din_xfer_len;
1: - __u64 dout_xferp;
1: - __u64 din_xferp;
1: - __u32 timeout;
1: - __u32 flags;
1: - __u64 usr_ptr;
1: - __u32 spare_in;
1: - __u32 driver_status;
1: - __u32 transport_status;
1: - __u32 device_status;
1: - __u32 retry_delay;
1: - __u32 info;
1: - __u32 duration;
1: - __u32 response_len;
1: - __s32 din_resid;
1: - __s32 dout_resid;
1: - __u64 generated_tag;
1: - __u32 spare_out;
1: - __u32 padding;
1: + __s32 guard;
1: + __u32 protocol;
1: + __u32 subprotocol;
1: + __u32 request_len;
1: + __u64 request;
1: + __u64 request_tag;
1: + __u32 request_attr;
1: + __u32 request_priority;
1: + __u32 request_extra;
1: + __u32 max_response_len;
1: + __u64 response;
1: + __u32 dout_iovec_count;
1: + __u32 dout_xfer_len;
1: + __u32 din_iovec_count;
1: + __u32 din_xfer_len;
1: + __u64 dout_xferp;
1: + __u64 din_xferp;
1: + __u32 timeout;
1: + __u32 flags;
1: + __u64 usr_ptr;
1: + __u32 spare_in;
1: + __u32 driver_status;
1: + __u32 transport_status;
1: + __u32 device_status;
1: + __u32 retry_delay;
1: + __u32 info;
1: + __u32 duration;
1: + __u32 response_len;
1: + __s32 din_resid;
1: + __s32 dout_resid;
1: + __u64 generated_tag;
1: + __u32 spare_out;
1: + __u32 padding;
1: };
1:
1: struct bsg_ops {
1: - int (*check_proto)(struct sg_io_v4 *);
1: - int (*fill_hdr)(struct request *, struct sg_io_v4 *, fmode_t);
1: - int (*complete_rq)(struct request *, struct sg_io_v4 *);
1: - void (*free_rq)(struct request *);
1: + int (*check_proto)(struct sg_io_v4 *);
1: + int (*fill_hdr)(struct request *, struct sg_io_v4 *, fmode_t);
1: + int (*complete_rq)(struct request *, struct sg_io_v4 *);
1: + void (*free_rq)(struct request *);
1: };
1:
1: typedef __u32 req_flags_t;
1: @@ -7198,90 +7284,90 @@ typedef __u32 req_flags_t;
1: typedef void rq_end_io_fn(struct request *, blk_status_t);
1:
1: enum mq_rq_state {
1: - MQ_RQ_IDLE = 0,
1: - MQ_RQ_IN_FLIGHT = 1,
1: - MQ_RQ_COMPLETE = 2,
1: + MQ_RQ_IDLE = 0,
1: + MQ_RQ_IN_FLIGHT = 1,
1: + MQ_RQ_COMPLETE = 2,
1: };
1:
1: struct blk_ksm_keyslot;
1:
1: struct request {
1: - struct request_queue *q;
1: - struct blk_mq_ctx *mq_ctx;
1: - struct blk_mq_hw_ctx *mq_hctx;
1: - unsigned int cmd_flags;
1: - req_flags_t rq_flags;
1: - int tag;
1: - int internal_tag;
1: - unsigned int __data_len;
1: - sector_t __sector;
1: - struct bio *bio;
1: - struct bio *biotail;
1: - struct list_head queuelist;
1: - union {
1: - struct hlist_node hash;
1: - struct list_head ipi_list;
1: - };
1: - union {
1: - struct rb_node rb_node;
1: - struct bio_vec special_vec;
1: - void *completion_data;
1: - int error_count;
1: - };
1: - union {
1: - struct {
1: - struct io_cq *icq;
1: - void *priv[2];
1: - } elv;
1: - struct {
1: - unsigned int seq;
1: - struct list_head list;
1: - rq_end_io_fn *saved_end_io;
1: - } flush;
1: - };
1: - struct gendisk *rq_disk;
1: - struct hd_struct *part;
1: - u64 alloc_time_ns;
1: - u64 start_time_ns;
1: - u64 io_start_time_ns;
1: - short unsigned int wbt_flags;
1: - short unsigned int stats_sectors;
1: - short unsigned int nr_phys_segments;
1: - short unsigned int nr_integrity_segments;
1: - struct bio_crypt_ctx *crypt_ctx;
1: - struct blk_ksm_keyslot *crypt_keyslot;
1: - short unsigned int write_hint;
1: - short unsigned int ioprio;
1: - enum mq_rq_state state;
1: - refcount_t ref;
1: - unsigned int timeout;
1: - long unsigned int deadline;
1: - union {
1: - struct __call_single_data csd;
1: - u64 fifo_time;
1: - };
1: - rq_end_io_fn *end_io;
1: - void *end_io_data;
1: + struct request_queue *q;
1: + struct blk_mq_ctx *mq_ctx;
1: + struct blk_mq_hw_ctx *mq_hctx;
1: + unsigned int cmd_flags;
1: + req_flags_t rq_flags;
1: + int tag;
1: + int internal_tag;
1: + unsigned int __data_len;
1: + sector_t __sector;
1: + struct bio *bio;
1: + struct bio *biotail;
1: + struct list_head queuelist;
1: + union {
1: + struct hlist_node hash;
1: + struct list_head ipi_list;
1: + };
1: + union {
1: + struct rb_node rb_node;
1: + struct bio_vec special_vec;
1: + void *completion_data;
1: + int error_count;
1: + };
1: + union {
1: + struct {
1: + struct io_cq *icq;
1: + void *priv[2];
1: + } elv;
1: + struct {
1: + unsigned int seq;
1: + struct list_head list;
1: + rq_end_io_fn *saved_end_io;
1: + } flush;
1: + };
1: + struct gendisk *rq_disk;
1: + struct hd_struct *part;
1: + u64 alloc_time_ns;
1: + u64 start_time_ns;
1: + u64 io_start_time_ns;
1: + short unsigned int wbt_flags;
1: + short unsigned int stats_sectors;
1: + short unsigned int nr_phys_segments;
1: + short unsigned int nr_integrity_segments;
1: + struct bio_crypt_ctx *crypt_ctx;
1: + struct blk_ksm_keyslot *crypt_keyslot;
1: + short unsigned int write_hint;
1: + short unsigned int ioprio;
1: + enum mq_rq_state state;
1: + refcount_t ref;
1: + unsigned int timeout;
1: + long unsigned int deadline;
1: + union {
1: + struct __call_single_data csd;
1: + u64 fifo_time;
1: + };
1: + rq_end_io_fn *end_io;
1: + void *end_io_data;
1: };
1:
1: struct blk_zone {
1: - __u64 start;
1: - __u64 len;
1: - __u64 wp;
1: - __u8 type;
1: - __u8 cond;
1: - __u8 non_seq;
1: - __u8 reset;
1: - __u8 resv[4];
1: - __u64 capacity;
1: - __u8 reserved[24];
1: + __u64 start;
1: + __u64 len;
1: + __u64 wp;
1: + __u8 type;
1: + __u8 cond;
1: + __u8 non_seq;
1: + __u8 reset;
1: + __u8 resv[4];
1: + __u64 capacity;
1: + __u8 reserved[24];
1: };
1:
1: enum elv_merge {
1: - ELEVATOR_NO_MERGE = 0,
1: - ELEVATOR_FRONT_MERGE = 1,
1: - ELEVATOR_BACK_MERGE = 2,
1: - ELEVATOR_DISCARD_MERGE = 3,
1: + ELEVATOR_NO_MERGE = 0,
1: + ELEVATOR_FRONT_MERGE = 1,
1: + ELEVATOR_BACK_MERGE = 2,
1: + ELEVATOR_DISCARD_MERGE = 3,
1: };
1:
1: struct elevator_type;
1: @@ -7289,292 +7375,296 @@ struct elevator_type;
1: struct blk_mq_alloc_data;
1:
1: struct elevator_mq_ops {
1: - int (*init_sched)(struct request_queue *, struct elevator_type *);
1: - void (*exit_sched)(struct elevator_queue *);
1: - int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: - void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: - void (*depth_updated)(struct blk_mq_hw_ctx *);
1: - bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
1: - bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *, unsigned int);
1: - int (*request_merge)(struct request_queue *, struct request **, struct bio *);
1: - void (*request_merged)(struct request_queue *, struct request *, enum elv_merge);
1: - void (*requests_merged)(struct request_queue *, struct request *, struct request *);
1: - void (*limit_depth)(unsigned int, struct blk_mq_alloc_data *);
1: - void (*prepare_request)(struct request *);
1: - void (*finish_request)(struct request *);
1: - void (*insert_requests)(struct blk_mq_hw_ctx *, struct list_head *, bool);
1: - struct request * (*dispatch_request)(struct blk_mq_hw_ctx *);
1: - bool (*has_work)(struct blk_mq_hw_ctx *);
1: - void (*completed_request)(struct request *, u64);
1: - void (*requeue_request)(struct request *);
1: - struct request * (*former_request)(struct request_queue *, struct request *);
1: - struct request * (*next_request)(struct request_queue *, struct request *);
1: - void (*init_icq)(struct io_cq *);
1: - void (*exit_icq)(struct io_cq *);
1: + int (*init_sched)(struct request_queue *, struct elevator_type *);
1: + void (*exit_sched)(struct elevator_queue *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*depth_updated)(struct blk_mq_hw_ctx *);
1: + bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
1: + bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *, unsigned int);
1: + int (*request_merge)(struct request_queue *, struct request **, struct bio *);
1: + void (*request_merged)(struct request_queue *, struct request *,
1: + enum elv_merge);
1: + void (*requests_merged)(struct request_queue *, struct request *,
1: + struct request *);
1: + void (*limit_depth)(unsigned int, struct blk_mq_alloc_data *);
1: + void (*prepare_request)(struct request *);
1: + void (*finish_request)(struct request *);
1: + void (*insert_requests)(struct blk_mq_hw_ctx *, struct list_head *, bool);
1: + struct request *(*dispatch_request)(struct blk_mq_hw_ctx *);
1: + bool (*has_work)(struct blk_mq_hw_ctx *);
1: + void (*completed_request)(struct request *, u64);
1: + void (*requeue_request)(struct request *);
1: + struct request *(*former_request)(struct request_queue *, struct request *);
1: + struct request *(*next_request)(struct request_queue *, struct request *);
1: + void (*init_icq)(struct io_cq *);
1: + void (*exit_icq)(struct io_cq *);
1: };
1:
1: struct elv_fs_entry;
1:
1: struct elevator_type {
1: - struct kmem_cache *icq_cache;
1: - struct elevator_mq_ops ops;
1: - size_t icq_size;
1: - size_t icq_align;
1: - struct elv_fs_entry *elevator_attrs;
1: - const char *elevator_name;
1: - const char *elevator_alias;
1: - const unsigned int elevator_features;
1: - struct module *elevator_owner;
1: - char icq_cache_name[22];
1: - struct list_head list;
1: + struct kmem_cache *icq_cache;
1: + struct elevator_mq_ops ops;
1: + size_t icq_size;
1: + size_t icq_align;
1: + struct elv_fs_entry *elevator_attrs;
1: + const char *elevator_name;
1: + const char *elevator_alias;
1: + const unsigned int elevator_features;
1: + struct module *elevator_owner;
1: + char icq_cache_name[22];
1: + struct list_head list;
1: };
1:
1: struct elevator_queue {
1: - struct elevator_type *type;
1: - void *elevator_data;
1: - struct kobject kobj;
1: - struct mutex sysfs_lock;
1: - unsigned int registered: 1;
1: - struct hlist_head hash[64];
1: + struct elevator_type *type;
1: + void *elevator_data;
1: + struct kobject kobj;
1: + struct mutex sysfs_lock;
1: + unsigned int registered : 1;
1: + struct hlist_head hash[64];
1: };
1:
1: struct elv_fs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct elevator_queue *, char *);
1: - ssize_t (*store)(struct elevator_queue *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct elevator_queue *, char *);
1: + ssize_t (*store)(struct elevator_queue *, const char *, size_t);
1: };
1:
1: enum blk_eh_timer_return {
1: - BLK_EH_DONE = 0,
1: - BLK_EH_RESET_TIMER = 1,
1: + BLK_EH_DONE = 0,
1: + BLK_EH_RESET_TIMER = 1,
1: };
1:
1: struct blk_mq_queue_data;
1:
1: struct blk_mq_ops {
1: - blk_status_t (*queue_rq)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *);
1: - void (*commit_rqs)(struct blk_mq_hw_ctx *);
1: - bool (*get_budget)(struct request_queue *);
1: - void (*put_budget)(struct request_queue *);
1: - enum blk_eh_timer_return (*timeout)(struct request *, bool);
1: - int (*poll)(struct blk_mq_hw_ctx *);
1: - void (*complete)(struct request *);
1: - int (*init_hctx)(struct blk_mq_hw_ctx *, void *, unsigned int);
1: - void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: - int (*init_request)(struct blk_mq_tag_set *, struct request *, unsigned int, unsigned int);
1: - void (*exit_request)(struct blk_mq_tag_set *, struct request *, unsigned int);
1: - void (*initialize_rq_fn)(struct request *);
1: - void (*cleanup_rq)(struct request *);
1: - bool (*busy)(struct request_queue *);
1: - int (*map_queues)(struct blk_mq_tag_set *);
1: + blk_status_t (*queue_rq)(struct blk_mq_hw_ctx *,
1: + const struct blk_mq_queue_data *);
1: + void (*commit_rqs)(struct blk_mq_hw_ctx *);
1: + bool (*get_budget)(struct request_queue *);
1: + void (*put_budget)(struct request_queue *);
1: + enum blk_eh_timer_return (*timeout)(struct request *, bool);
1: + int (*poll)(struct blk_mq_hw_ctx *);
1: + void (*complete)(struct request *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, void *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + int (*init_request)(struct blk_mq_tag_set *, struct request *, unsigned int,
1: + unsigned int);
1: + void (*exit_request)(struct blk_mq_tag_set *, struct request *, unsigned int);
1: + void (*initialize_rq_fn)(struct request *);
1: + void (*cleanup_rq)(struct request *);
1: + bool (*busy)(struct request_queue *);
1: + int (*map_queues)(struct blk_mq_tag_set *);
1: };
1:
1: struct blk_integrity_iter {
1: - void *prot_buf;
1: - void *data_buf;
1: - sector_t seed;
1: - unsigned int data_size;
1: - short unsigned int interval;
1: - const char *disk_name;
1: + void *prot_buf;
1: + void *data_buf;
1: + sector_t seed;
1: + unsigned int data_size;
1: + short unsigned int interval;
1: + const char *disk_name;
1: };
1:
1: enum pr_type {
1: - PR_WRITE_EXCLUSIVE = 1,
1: - PR_EXCLUSIVE_ACCESS = 2,
1: - PR_WRITE_EXCLUSIVE_REG_ONLY = 3,
1: - PR_EXCLUSIVE_ACCESS_REG_ONLY = 4,
1: - PR_WRITE_EXCLUSIVE_ALL_REGS = 5,
1: - PR_EXCLUSIVE_ACCESS_ALL_REGS = 6,
1: + PR_WRITE_EXCLUSIVE = 1,
1: + PR_EXCLUSIVE_ACCESS = 2,
1: + PR_WRITE_EXCLUSIVE_REG_ONLY = 3,
1: + PR_EXCLUSIVE_ACCESS_REG_ONLY = 4,
1: + PR_WRITE_EXCLUSIVE_ALL_REGS = 5,
1: + PR_EXCLUSIVE_ACCESS_ALL_REGS = 6,
1: };
1:
1: struct pr_ops {
1: - int (*pr_register)(struct block_device *, u64, u64, u32);
1: - int (*pr_reserve)(struct block_device *, u64, enum pr_type, u32);
1: - int (*pr_release)(struct block_device *, u64, enum pr_type);
1: - int (*pr_preempt)(struct block_device *, u64, u64, enum pr_type, bool);
1: - int (*pr_clear)(struct block_device *, u64);
1: + int (*pr_register)(struct block_device *, u64, u64, u32);
1: + int (*pr_reserve)(struct block_device *, u64, enum pr_type, u32);
1: + int (*pr_release)(struct block_device *, u64, enum pr_type);
1: + int (*pr_preempt)(struct block_device *, u64, u64, enum pr_type, bool);
1: + int (*pr_clear)(struct block_device *, u64);
1: };
1:
1: enum blkg_iostat_type {
1: - BLKG_IOSTAT_READ = 0,
1: - BLKG_IOSTAT_WRITE = 1,
1: - BLKG_IOSTAT_DISCARD = 2,
1: - BLKG_IOSTAT_NR = 3,
1: + BLKG_IOSTAT_READ = 0,
1: + BLKG_IOSTAT_WRITE = 1,
1: + BLKG_IOSTAT_DISCARD = 2,
1: + BLKG_IOSTAT_NR = 3,
1: };
1:
1: struct blkcg_policy_data;
1:
1: struct blkcg {
1: - struct cgroup_subsys_state css;
1: - spinlock_t lock;
1: - refcount_t online_pin;
1: - struct xarray blkg_tree;
1: - struct blkcg_gq *blkg_hint;
1: - struct hlist_head blkg_list;
1: - struct blkcg_policy_data *cpd[5];
1: - struct list_head all_blkcgs_node;
1: - struct list_head cgwb_list;
1: + struct cgroup_subsys_state css;
1: + spinlock_t lock;
1: + refcount_t online_pin;
1: + struct xarray blkg_tree;
1: + struct blkcg_gq *blkg_hint;
1: + struct hlist_head blkg_list;
1: + struct blkcg_policy_data *cpd[5];
1: + struct list_head all_blkcgs_node;
1: + struct list_head cgwb_list;
1: };
1:
1: struct blkcg_policy_data {
1: - struct blkcg *blkcg;
1: - int plid;
1: + struct blkcg *blkcg;
1: + int plid;
1: };
1:
1: struct blkg_policy_data {
1: - struct blkcg_gq *blkg;
1: - int plid;
1: + struct blkcg_gq *blkg;
1: + int plid;
1: };
1:
1: enum memcg_stat_item {
1: - MEMCG_SWAP = 37,
1: - MEMCG_SOCK = 38,
1: - MEMCG_PERCPU_B = 39,
1: - MEMCG_NR_STAT = 40,
1: + MEMCG_SWAP = 37,
1: + MEMCG_SOCK = 38,
1: + MEMCG_PERCPU_B = 39,
1: + MEMCG_NR_STAT = 40,
1: };
1:
1: enum memcg_memory_event {
1: - MEMCG_LOW = 0,
1: - MEMCG_HIGH = 1,
1: - MEMCG_MAX = 2,
1: - MEMCG_OOM = 3,
1: - MEMCG_OOM_KILL = 4,
1: - MEMCG_SWAP_HIGH = 5,
1: - MEMCG_SWAP_MAX = 6,
1: - MEMCG_SWAP_FAIL = 7,
1: - MEMCG_NR_MEMORY_EVENTS = 8,
1: + MEMCG_LOW = 0,
1: + MEMCG_HIGH = 1,
1: + MEMCG_MAX = 2,
1: + MEMCG_OOM = 3,
1: + MEMCG_OOM_KILL = 4,
1: + MEMCG_SWAP_HIGH = 5,
1: + MEMCG_SWAP_MAX = 6,
1: + MEMCG_SWAP_FAIL = 7,
1: + MEMCG_NR_MEMORY_EVENTS = 8,
1: };
1:
1: enum mem_cgroup_events_target {
1: - MEM_CGROUP_TARGET_THRESH = 0,
1: - MEM_CGROUP_TARGET_SOFTLIMIT = 1,
1: - MEM_CGROUP_NTARGETS = 2,
1: + MEM_CGROUP_TARGET_THRESH = 0,
1: + MEM_CGROUP_TARGET_SOFTLIMIT = 1,
1: + MEM_CGROUP_NTARGETS = 2,
1: };
1:
1: struct memcg_vmstats_percpu {
1: - long int stat[40];
1: - long unsigned int events[95];
1: - long unsigned int nr_page_events;
1: - long unsigned int targets[2];
1: + long int stat[40];
1: + long unsigned int events[95];
1: + long unsigned int nr_page_events;
1: + long unsigned int targets[2];
1: };
1:
1: struct mem_cgroup_reclaim_iter {
1: - struct mem_cgroup *position;
1: - unsigned int generation;
1: + struct mem_cgroup *position;
1: + unsigned int generation;
1: };
1:
1: struct lruvec_stat {
1: - long int count[37];
1: + long int count[37];
1: };
1:
1: struct memcg_shrinker_map {
1: - struct callback_head rcu;
1: - long unsigned int map[0];
1: + struct callback_head rcu;
1: + long unsigned int map[0];
1: };
1:
1: struct mem_cgroup_per_node {
1: - struct lruvec lruvec;
1: - struct lruvec_stat *lruvec_stat_local;
1: - struct lruvec_stat *lruvec_stat_cpu;
1: - atomic_long_t lruvec_stat[37];
1: - long unsigned int lru_zone_size[20];
1: - struct mem_cgroup_reclaim_iter iter;
1: - struct memcg_shrinker_map *shrinker_map;
1: - struct rb_node tree_node;
1: - long unsigned int usage_in_excess;
1: - bool on_tree;
1: - struct mem_cgroup *memcg;
1: + struct lruvec lruvec;
1: + struct lruvec_stat *lruvec_stat_local;
1: + struct lruvec_stat *lruvec_stat_cpu;
1: + atomic_long_t lruvec_stat[37];
1: + long unsigned int lru_zone_size[20];
1: + struct mem_cgroup_reclaim_iter iter;
1: + struct memcg_shrinker_map *shrinker_map;
1: + struct rb_node tree_node;
1: + long unsigned int usage_in_excess;
1: + bool on_tree;
1: + struct mem_cgroup *memcg;
1: };
1:
1: struct eventfd_ctx;
1:
1: struct mem_cgroup_threshold {
1: - struct eventfd_ctx *eventfd;
1: - long unsigned int threshold;
1: + struct eventfd_ctx *eventfd;
1: + long unsigned int threshold;
1: };
1:
1: struct mem_cgroup_threshold_ary {
1: - int current_threshold;
1: - unsigned int size;
1: - struct mem_cgroup_threshold entries[0];
1: + int current_threshold;
1: + unsigned int size;
1: + struct mem_cgroup_threshold entries[0];
1: };
1:
1: struct percpu_cluster {
1: - struct swap_cluster_info index;
1: - unsigned int next;
1: + struct swap_cluster_info index;
1: + unsigned int next;
1: };
1:
1: enum fs_value_type {
1: - fs_value_is_undefined = 0,
1: - fs_value_is_flag = 1,
1: - fs_value_is_string = 2,
1: - fs_value_is_blob = 3,
1: - fs_value_is_filename = 4,
1: - fs_value_is_file = 5,
1: + fs_value_is_undefined = 0,
1: + fs_value_is_flag = 1,
1: + fs_value_is_string = 2,
1: + fs_value_is_blob = 3,
1: + fs_value_is_filename = 4,
1: + fs_value_is_file = 5,
1: };
1:
1: struct fs_parameter {
1: - const char *key;
1: - enum fs_value_type type: 8;
1: - union {
1: - char *string;
1: - void *blob;
1: - struct filename *name;
1: - struct file *file;
1: - };
1: - size_t size;
1: - int dirfd;
1: + const char *key;
1: + enum fs_value_type type : 8;
1: + union {
1: + char *string;
1: + void *blob;
1: + struct filename *name;
1: + struct file *file;
1: + };
1: + size_t size;
1: + int dirfd;
1: };
1:
1: struct fc_log {
1: - refcount_t usage;
1: - u8 head;
1: - u8 tail;
1: - u8 need_free;
1: - struct module *owner;
1: - char *buffer[8];
1: + refcount_t usage;
1: + u8 head;
1: + u8 tail;
1: + u8 need_free;
1: + struct module *owner;
1: + char *buffer[8];
1: };
1:
1: struct fs_context_operations {
1: - void (*free)(struct fs_context *);
1: - int (*dup)(struct fs_context *, struct fs_context *);
1: - int (*parse_param)(struct fs_context *, struct fs_parameter *);
1: - int (*parse_monolithic)(struct fs_context *, void *);
1: - int (*get_tree)(struct fs_context *);
1: - int (*reconfigure)(struct fs_context *);
1: + void (*free)(struct fs_context *);
1: + int (*dup)(struct fs_context *, struct fs_context *);
1: + int (*parse_param)(struct fs_context *, struct fs_parameter *);
1: + int (*parse_monolithic)(struct fs_context *, void *);
1: + int (*get_tree)(struct fs_context *);
1: + int (*reconfigure)(struct fs_context *);
1: };
1:
1: struct fs_parse_result {
1: - bool negated;
1: - union {
1: - bool boolean;
1: - int int_32;
1: - unsigned int uint_32;
1: - u64 uint_64;
1: - };
1: + bool negated;
1: + union {
1: + bool boolean;
1: + int int_32;
1: + unsigned int uint_32;
1: + u64 uint_64;
1: + };
1: };
1:
1: struct trace_event_raw_initcall_level {
1: - struct trace_entry ent;
1: - u32 __data_loc_level;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_level;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_initcall_start {
1: - struct trace_entry ent;
1: - initcall_t func;
1: - char __data[0];
1: + struct trace_entry ent;
1: + initcall_t func;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_initcall_finish {
1: - struct trace_entry ent;
1: - initcall_t func;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + initcall_t func;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_initcall_level {
1: - u32 level;
1: + u32 level;
1: };
1:
1: struct trace_event_data_offsets_initcall_start {};
1: @@ -7588,92 +7678,92 @@ typedef void (*btf_trace_initcall_start)(void *, initcall_t);
1: typedef void (*btf_trace_initcall_finish)(void *, initcall_t, int);
1:
1: struct blacklist_entry {
1: - struct list_head next;
1: - char *buf;
1: + struct list_head next;
1: + char *buf;
1: };
1:
1: typedef __u32 Elf32_Word;
1:
1: struct elf32_note {
1: - Elf32_Word n_namesz;
1: - Elf32_Word n_descsz;
1: - Elf32_Word n_type;
1: + Elf32_Word n_namesz;
1: + Elf32_Word n_descsz;
1: + Elf32_Word n_type;
1: };
1:
1: enum pcpu_fc {
1: - PCPU_FC_AUTO = 0,
1: - PCPU_FC_EMBED = 1,
1: - PCPU_FC_PAGE = 2,
1: - PCPU_FC_NR = 3,
1: + PCPU_FC_AUTO = 0,
1: + PCPU_FC_EMBED = 1,
1: + PCPU_FC_PAGE = 2,
1: + PCPU_FC_NR = 3,
1: };
1:
1: enum {
1: - UNAME26 = 131072,
1: - ADDR_NO_RANDOMIZE = 262144,
1: - FDPIC_FUNCPTRS = 524288,
1: - MMAP_PAGE_ZERO = 1048576,
1: - ADDR_COMPAT_LAYOUT = 2097152,
1: - READ_IMPLIES_EXEC = 4194304,
1: - ADDR_LIMIT_32BIT = 8388608,
1: - SHORT_INODE = 16777216,
1: - WHOLE_SECONDS = 33554432,
1: - STICKY_TIMEOUTS = 67108864,
1: - ADDR_LIMIT_3GB = 134217728,
1: + UNAME26 = 131072,
1: + ADDR_NO_RANDOMIZE = 262144,
1: + FDPIC_FUNCPTRS = 524288,
1: + MMAP_PAGE_ZERO = 1048576,
1: + ADDR_COMPAT_LAYOUT = 2097152,
1: + READ_IMPLIES_EXEC = 4194304,
1: + ADDR_LIMIT_32BIT = 8388608,
1: + SHORT_INODE = 16777216,
1: + WHOLE_SECONDS = 33554432,
1: + STICKY_TIMEOUTS = 67108864,
1: + ADDR_LIMIT_3GB = 134217728,
1: };
1:
1: enum hrtimer_base_type {
1: - HRTIMER_BASE_MONOTONIC = 0,
1: - HRTIMER_BASE_REALTIME = 1,
1: - HRTIMER_BASE_BOOTTIME = 2,
1: - HRTIMER_BASE_TAI = 3,
1: - HRTIMER_BASE_MONOTONIC_SOFT = 4,
1: - HRTIMER_BASE_REALTIME_SOFT = 5,
1: - HRTIMER_BASE_BOOTTIME_SOFT = 6,
1: - HRTIMER_BASE_TAI_SOFT = 7,
1: - HRTIMER_MAX_CLOCK_BASES = 8,
1: + HRTIMER_BASE_MONOTONIC = 0,
1: + HRTIMER_BASE_REALTIME = 1,
1: + HRTIMER_BASE_BOOTTIME = 2,
1: + HRTIMER_BASE_TAI = 3,
1: + HRTIMER_BASE_MONOTONIC_SOFT = 4,
1: + HRTIMER_BASE_REALTIME_SOFT = 5,
1: + HRTIMER_BASE_BOOTTIME_SOFT = 6,
1: + HRTIMER_BASE_TAI_SOFT = 7,
1: + HRTIMER_MAX_CLOCK_BASES = 8,
1: };
1:
1: enum {
1: - MM_FILEPAGES = 0,
1: - MM_ANONPAGES = 1,
1: - MM_SWAPENTS = 2,
1: - MM_SHMEMPAGES = 3,
1: - NR_MM_COUNTERS = 4,
1: + MM_FILEPAGES = 0,
1: + MM_ANONPAGES = 1,
1: + MM_SWAPENTS = 2,
1: + MM_SHMEMPAGES = 3,
1: + NR_MM_COUNTERS = 4,
1: };
1:
1: enum rseq_cs_flags_bit {
1: - RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT_BIT = 0,
1: - RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL_BIT = 1,
1: - RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE_BIT = 2,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT_BIT = 0,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL_BIT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE_BIT = 2,
1: };
1:
1: enum uclamp_id {
1: - UCLAMP_MIN = 0,
1: - UCLAMP_MAX = 1,
1: - UCLAMP_CNT = 2,
1: + UCLAMP_MIN = 0,
1: + UCLAMP_MAX = 1,
1: + UCLAMP_CNT = 2,
1: };
1:
1: enum perf_event_task_context {
1: - perf_invalid_context = 4294967295,
1: - perf_hw_context = 0,
1: - perf_sw_context = 1,
1: - perf_nr_task_contexts = 2,
1: + perf_invalid_context = 4294967295,
1: + perf_hw_context = 0,
1: + perf_sw_context = 1,
1: + perf_nr_task_contexts = 2,
1: };
1:
1: enum rseq_event_mask_bits {
1: - RSEQ_EVENT_PREEMPT_BIT = 0,
1: - RSEQ_EVENT_SIGNAL_BIT = 1,
1: - RSEQ_EVENT_MIGRATE_BIT = 2,
1: + RSEQ_EVENT_PREEMPT_BIT = 0,
1: + RSEQ_EVENT_SIGNAL_BIT = 1,
1: + RSEQ_EVENT_MIGRATE_BIT = 2,
1: };
1:
1: enum {
1: - PROC_ROOT_INO = 1,
1: - PROC_IPC_INIT_INO = 4026531839,
1: - PROC_UTS_INIT_INO = 4026531838,
1: - PROC_USER_INIT_INO = 4026531837,
1: - PROC_PID_INIT_INO = 4026531836,
1: - PROC_CGROUP_INIT_INO = 4026531835,
1: - PROC_TIME_INIT_INO = 4026531834,
1: + PROC_ROOT_INO = 1,
1: + PROC_IPC_INIT_INO = 4026531839,
1: + PROC_UTS_INIT_INO = 4026531838,
1: + PROC_USER_INIT_INO = 4026531837,
1: + PROC_PID_INIT_INO = 4026531836,
1: + PROC_CGROUP_INIT_INO = 4026531835,
1: + PROC_TIME_INIT_INO = 4026531834,
1: };
1:
1: typedef short int __s16;
1: @@ -7693,18 +7783,18 @@ typedef __u32 __wsum;
1: typedef unsigned int slab_flags_t;
1:
1: struct llist_head {
1: - struct llist_node *first;
1: + struct llist_node *first;
1: };
1:
1: struct rhash_head {
1: - struct rhash_head *next;
1: + struct rhash_head *next;
1: };
1:
1: struct rhashtable;
1:
1: struct rhashtable_compare_arg {
1: - struct rhashtable *ht;
1: - const void *key;
1: + struct rhashtable *ht;
1: + const void *key;
1: };
1:
1: typedef u32 (*rht_hashfn_t)(const void *, u32, u32);
1: @@ -7714,40 +7804,40 @@ typedef u32 (*rht_obj_hashfn_t)(const void *, u32, u32);
1: typedef int (*rht_obj_cmpfn_t)(struct rhashtable_compare_arg *, const void *);
1:
1: struct rhashtable_params {
1: - u16 nelem_hint;
1: - u16 key_len;
1: - u16 key_offset;
1: - u16 head_offset;
1: - unsigned int max_size;
1: - u16 min_size;
1: - bool automatic_shrinking;
1: - rht_hashfn_t hashfn;
1: - rht_obj_hashfn_t obj_hashfn;
1: - rht_obj_cmpfn_t obj_cmpfn;
1: + u16 nelem_hint;
1: + u16 key_len;
1: + u16 key_offset;
1: + u16 head_offset;
1: + unsigned int max_size;
1: + u16 min_size;
1: + bool automatic_shrinking;
1: + rht_hashfn_t hashfn;
1: + rht_obj_hashfn_t obj_hashfn;
1: + rht_obj_cmpfn_t obj_cmpfn;
1: };
1:
1: struct bucket_table;
1:
1: struct rhashtable {
1: - struct bucket_table *tbl;
1: - unsigned int key_len;
1: - unsigned int max_elems;
1: - struct rhashtable_params p;
1: - bool rhlist;
1: - struct work_struct run_work;
1: - struct mutex mutex;
1: - spinlock_t lock;
1: - atomic_t nelems;
1: + struct bucket_table *tbl;
1: + unsigned int key_len;
1: + unsigned int max_elems;
1: + struct rhashtable_params p;
1: + bool rhlist;
1: + struct work_struct run_work;
1: + struct mutex mutex;
1: + spinlock_t lock;
1: + atomic_t nelems;
1: };
1:
1: struct fs_struct {
1: - int users;
1: - spinlock_t lock;
1: - seqcount_spinlock_t seq;
1: - int umask;
1: - int in_exec;
1: - struct path root;
1: - struct path pwd;
1: + int users;
1: + spinlock_t lock;
1: + seqcount_spinlock_t seq;
1: + int umask;
1: + int in_exec;
1: + struct path root;
1: + struct path pwd;
1: };
1:
1: struct pipe_buffer;
1: @@ -7755,59 +7845,60 @@ struct pipe_buffer;
1: struct watch_queue;
1:
1: struct pipe_inode_info {
1: - struct mutex mutex;
1: - wait_queue_head_t rd_wait;
1: - wait_queue_head_t wr_wait;
1: - unsigned int head;
1: - unsigned int tail;
1: - unsigned int max_usage;
1: - unsigned int ring_size;
1: - bool note_loss;
1: - unsigned int nr_accounted;
1: - unsigned int readers;
1: - unsigned int writers;
1: - unsigned int files;
1: - unsigned int r_counter;
1: - unsigned int w_counter;
1: - struct page *tmp_page;
1: - struct fasync_struct *fasync_readers;
1: - struct fasync_struct *fasync_writers;
1: - struct pipe_buffer *bufs;
1: - struct user_struct *user;
1: - struct watch_queue *watch_queue;
1: + struct mutex mutex;
1: + wait_queue_head_t rd_wait;
1: + wait_queue_head_t wr_wait;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int max_usage;
1: + unsigned int ring_size;
1: + bool note_loss;
1: + unsigned int nr_accounted;
1: + unsigned int readers;
1: + unsigned int writers;
1: + unsigned int files;
1: + unsigned int r_counter;
1: + unsigned int w_counter;
1: + struct page *tmp_page;
1: + struct fasync_struct *fasync_readers;
1: + struct fasync_struct *fasync_writers;
1: + struct pipe_buffer *bufs;
1: + struct user_struct *user;
1: + struct watch_queue *watch_queue;
1: };
1:
1: struct notifier_block;
1:
1: -typedef int (*notifier_fn_t)(struct notifier_block *, long unsigned int, void *);
1: +typedef int (*notifier_fn_t)(struct notifier_block *, long unsigned int,
1: + void *);
1:
1: struct notifier_block {
1: - notifier_fn_t notifier_call;
1: - struct notifier_block *next;
1: - int priority;
1: + notifier_fn_t notifier_call;
1: + struct notifier_block *next;
1: + int priority;
1: };
1:
1: struct blocking_notifier_head {
1: - struct rw_semaphore rwsem;
1: - struct notifier_block *head;
1: + struct rw_semaphore rwsem;
1: + struct notifier_block *head;
1: };
1:
1: struct raw_notifier_head {
1: - struct notifier_block *head;
1: + struct notifier_block *head;
1: };
1:
1: struct vfsmount {
1: - struct dentry *mnt_root;
1: - struct super_block *mnt_sb;
1: - int mnt_flags;
1: + struct dentry *mnt_root;
1: + struct super_block *mnt_sb;
1: + int mnt_flags;
1: };
1:
1: struct ld_semaphore {
1: - atomic_long_t count;
1: - raw_spinlock_t wait_lock;
1: - unsigned int wait_readers;
1: - struct list_head read_wait;
1: - struct list_head write_wait;
1: + atomic_long_t count;
1: + raw_spinlock_t wait_lock;
1: + unsigned int wait_readers;
1: + struct list_head read_wait;
1: + struct list_head write_wait;
1: };
1:
1: typedef unsigned int tcflag_t;
1: @@ -7817,21 +7908,21 @@ typedef unsigned char cc_t;
1: typedef unsigned int speed_t;
1:
1: struct ktermios {
1: - tcflag_t c_iflag;
1: - tcflag_t c_oflag;
1: - tcflag_t c_cflag;
1: - tcflag_t c_lflag;
1: - cc_t c_line;
1: - cc_t c_cc[19];
1: - speed_t c_ispeed;
1: - speed_t c_ospeed;
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: + speed_t c_ispeed;
1: + speed_t c_ospeed;
1: };
1:
1: struct winsize {
1: - short unsigned int ws_row;
1: - short unsigned int ws_col;
1: - short unsigned int ws_xpixel;
1: - short unsigned int ws_ypixel;
1: + short unsigned int ws_row;
1: + short unsigned int ws_col;
1: + short unsigned int ws_xpixel;
1: + short unsigned int ws_ypixel;
1: };
1:
1: struct tty_driver;
1: @@ -7845,81 +7936,81 @@ struct termiox;
1: struct tty_port;
1:
1: struct tty_struct {
1: - int magic;
1: - struct kref kref;
1: - struct device *dev;
1: - struct tty_driver *driver;
1: - const struct tty_operations *ops;
1: - int index;
1: - struct ld_semaphore ldisc_sem;
1: - struct tty_ldisc *ldisc;
1: - struct mutex atomic_write_lock;
1: - struct mutex legacy_mutex;
1: - struct mutex throttle_mutex;
1: - struct rw_semaphore termios_rwsem;
1: - struct mutex winsize_mutex;
1: - spinlock_t ctrl_lock;
1: - spinlock_t flow_lock;
1: - struct ktermios termios;
1: - struct ktermios termios_locked;
1: - struct termiox *termiox;
1: - char name[64];
1: - struct pid *pgrp;
1: - struct pid *session;
1: - long unsigned int flags;
1: - int count;
1: - struct winsize winsize;
1: - long unsigned int stopped: 1;
1: - long unsigned int flow_stopped: 1;
1: - int: 30;
1: - long unsigned int unused: 62;
1: - int hw_stopped;
1: - long unsigned int ctrl_status: 8;
1: - long unsigned int packet: 1;
1: - int: 23;
1: - long unsigned int unused_ctrl: 55;
1: - unsigned int receive_room;
1: - int flow_change;
1: - struct tty_struct *link;
1: - struct fasync_struct *fasync;
1: - wait_queue_head_t write_wait;
1: - wait_queue_head_t read_wait;
1: - struct work_struct hangup_work;
1: - void *disc_data;
1: - void *driver_data;
1: - spinlock_t files_lock;
1: - struct list_head tty_files;
1: - int closing;
1: - unsigned char *write_buf;
1: - int write_cnt;
1: - struct work_struct SAK_work;
1: - struct tty_port *port;
1: + int magic;
1: + struct kref kref;
1: + struct device *dev;
1: + struct tty_driver *driver;
1: + const struct tty_operations *ops;
1: + int index;
1: + struct ld_semaphore ldisc_sem;
1: + struct tty_ldisc *ldisc;
1: + struct mutex atomic_write_lock;
1: + struct mutex legacy_mutex;
1: + struct mutex throttle_mutex;
1: + struct rw_semaphore termios_rwsem;
1: + struct mutex winsize_mutex;
1: + spinlock_t ctrl_lock;
1: + spinlock_t flow_lock;
1: + struct ktermios termios;
1: + struct ktermios termios_locked;
1: + struct termiox *termiox;
1: + char name[64];
1: + struct pid *pgrp;
1: + struct pid *session;
1: + long unsigned int flags;
1: + int count;
1: + struct winsize winsize;
1: + long unsigned int stopped : 1;
1: + long unsigned int flow_stopped : 1;
1: + int : 30;
1: + long unsigned int unused : 62;
1: + int hw_stopped;
1: + long unsigned int ctrl_status : 8;
1: + long unsigned int packet : 1;
1: + int : 23;
1: + long unsigned int unused_ctrl : 55;
1: + unsigned int receive_room;
1: + int flow_change;
1: + struct tty_struct *link;
1: + struct fasync_struct *fasync;
1: + wait_queue_head_t write_wait;
1: + wait_queue_head_t read_wait;
1: + struct work_struct hangup_work;
1: + void *disc_data;
1: + void *driver_data;
1: + spinlock_t files_lock;
1: + struct list_head tty_files;
1: + int closing;
1: + unsigned char *write_buf;
1: + int write_cnt;
1: + struct work_struct SAK_work;
1: + struct tty_port *port;
1: };
1:
1: typedef struct {
1: - size_t written;
1: - size_t count;
1: - union {
1: - char *buf;
1: - void *data;
1: - } arg;
1: - int error;
1: + size_t written;
1: + size_t count;
1: + union {
1: + char *buf;
1: + void *data;
1: + } arg;
1: + int error;
1: } read_descriptor_t;
1:
1: struct posix_acl_entry {
1: - short int e_tag;
1: - short unsigned int e_perm;
1: - union {
1: - kuid_t e_uid;
1: - kgid_t e_gid;
1: - };
1: + short int e_tag;
1: + short unsigned int e_perm;
1: + union {
1: + kuid_t e_uid;
1: + kgid_t e_gid;
1: + };
1: };
1:
1: struct posix_acl {
1: - refcount_t a_refcount;
1: - struct callback_head a_rcu;
1: - unsigned int a_count;
1: - struct posix_acl_entry a_entries[0];
1: + refcount_t a_refcount;
1: + struct callback_head a_rcu;
1: + unsigned int a_count;
1: + struct posix_acl_entry a_entries[0];
1: };
1:
1: typedef __u64 __addrpair;
1: @@ -7927,20 +8018,20 @@ typedef __u64 __addrpair;
1: typedef __u32 __portpair;
1:
1: typedef struct {
1: - struct net *net;
1: + struct net *net;
1: } possible_net_t;
1:
1: struct in6_addr {
1: - union {
1: - __u8 u6_addr8[16];
1: - __be16 u6_addr16[8];
1: - __be32 u6_addr32[4];
1: - } in6_u;
1: + union {
1: + __u8 u6_addr8[16];
1: + __be16 u6_addr16[8];
1: + __be32 u6_addr32[4];
1: + } in6_u;
1: };
1:
1: struct hlist_nulls_node {
1: - struct hlist_nulls_node *next;
1: - struct hlist_nulls_node **pprev;
1: + struct hlist_nulls_node *next;
1: + struct hlist_nulls_node **pprev;
1: };
1:
1: struct proto;
1: @@ -7948,95 +8039,95 @@ struct proto;
1: struct inet_timewait_death_row;
1:
1: struct sock_common {
1: - union {
1: - __addrpair skc_addrpair;
1: - struct {
1: - __be32 skc_daddr;
1: - __be32 skc_rcv_saddr;
1: - };
1: - };
1: - union {
1: - unsigned int skc_hash;
1: - __u16 skc_u16hashes[2];
1: - };
1: - union {
1: - __portpair skc_portpair;
1: - struct {
1: - __be16 skc_dport;
1: - __u16 skc_num;
1: - };
1: - };
1: - short unsigned int skc_family;
1: - volatile unsigned char skc_state;
1: - unsigned char skc_reuse: 4;
1: - unsigned char skc_reuseport: 1;
1: - unsigned char skc_ipv6only: 1;
1: - unsigned char skc_net_refcnt: 1;
1: - int skc_bound_dev_if;
1: - union {
1: - struct hlist_node skc_bind_node;
1: - struct hlist_node skc_portaddr_node;
1: - };
1: - struct proto *skc_prot;
1: - possible_net_t skc_net;
1: - struct in6_addr skc_v6_daddr;
1: - struct in6_addr skc_v6_rcv_saddr;
1: - atomic64_t skc_cookie;
1: - union {
1: - long unsigned int skc_flags;
1: - struct sock *skc_listener;
1: - struct inet_timewait_death_row *skc_tw_dr;
1: - };
1: - int skc_dontcopy_begin[0];
1: - union {
1: - struct hlist_node skc_node;
1: - struct hlist_nulls_node skc_nulls_node;
1: - };
1: - short unsigned int skc_tx_queue_mapping;
1: - short unsigned int skc_rx_queue_mapping;
1: - union {
1: - int skc_incoming_cpu;
1: - u32 skc_rcv_wnd;
1: - u32 skc_tw_rcv_nxt;
1: - };
1: - refcount_t skc_refcnt;
1: - int skc_dontcopy_end[0];
1: - union {
1: - u32 skc_rxhash;
1: - u32 skc_window_clamp;
1: - u32 skc_tw_snd_nxt;
1: - };
1: + union {
1: + __addrpair skc_addrpair;
1: + struct {
1: + __be32 skc_daddr;
1: + __be32 skc_rcv_saddr;
1: + };
1: + };
1: + union {
1: + unsigned int skc_hash;
1: + __u16 skc_u16hashes[2];
1: + };
1: + union {
1: + __portpair skc_portpair;
1: + struct {
1: + __be16 skc_dport;
1: + __u16 skc_num;
1: + };
1: + };
1: + short unsigned int skc_family;
1: + volatile unsigned char skc_state;
1: + unsigned char skc_reuse : 4;
1: + unsigned char skc_reuseport : 1;
1: + unsigned char skc_ipv6only : 1;
1: + unsigned char skc_net_refcnt : 1;
1: + int skc_bound_dev_if;
1: + union {
1: + struct hlist_node skc_bind_node;
1: + struct hlist_node skc_portaddr_node;
1: + };
1: + struct proto *skc_prot;
1: + possible_net_t skc_net;
1: + struct in6_addr skc_v6_daddr;
1: + struct in6_addr skc_v6_rcv_saddr;
1: + atomic64_t skc_cookie;
1: + union {
1: + long unsigned int skc_flags;
1: + struct sock *skc_listener;
1: + struct inet_timewait_death_row *skc_tw_dr;
1: + };
1: + int skc_dontcopy_begin[0];
1: + union {
1: + struct hlist_node skc_node;
1: + struct hlist_nulls_node skc_nulls_node;
1: + };
1: + short unsigned int skc_tx_queue_mapping;
1: + short unsigned int skc_rx_queue_mapping;
1: + union {
1: + int skc_incoming_cpu;
1: + u32 skc_rcv_wnd;
1: + u32 skc_tw_rcv_nxt;
1: + };
1: + refcount_t skc_refcnt;
1: + int skc_dontcopy_end[0];
1: + union {
1: + u32 skc_rxhash;
1: + u32 skc_window_clamp;
1: + u32 skc_tw_snd_nxt;
1: + };
1: };
1:
1: typedef struct {
1: - spinlock_t slock;
1: - int owned;
1: - wait_queue_head_t wq;
1: + spinlock_t slock;
1: + int owned;
1: + wait_queue_head_t wq;
1: } socket_lock_t;
1:
1: struct sk_buff;
1:
1: struct sk_buff_head {
1: - struct sk_buff *next;
1: - struct sk_buff *prev;
1: - __u32 qlen;
1: - spinlock_t lock;
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + __u32 qlen;
1: + spinlock_t lock;
1: };
1:
1: typedef u64 netdev_features_t;
1:
1: struct sock_cgroup_data {
1: - union {
1: - struct {
1: - u8 is_data: 1;
1: - u8 no_refcnt: 1;
1: - u8 unused: 6;
1: - u8 padding;
1: - u16 prioidx;
1: - u32 classid;
1: - };
1: - u64 val;
1: - };
1: + union {
1: + struct {
1: + u8 is_data : 1;
1: + u8 no_refcnt : 1;
1: + u8 unused : 6;
1: + u8 padding;
1: + u16 prioidx;
1: + u32 classid;
1: + };
1: + u64 val;
1: + };
1: };
1:
1: struct sk_filter;
1: @@ -8056,104 +8147,105 @@ struct sock_reuseport;
1: struct bpf_local_storage;
1:
1: struct sock {
1: - struct sock_common __sk_common;
1: - socket_lock_t sk_lock;
1: - atomic_t sk_drops;
1: - int sk_rcvlowat;
1: - struct sk_buff_head sk_error_queue;
1: - struct sk_buff *sk_rx_skb_cache;
1: - struct sk_buff_head sk_receive_queue;
1: - struct {
1: - atomic_t rmem_alloc;
1: - int len;
1: - struct sk_buff *head;
1: - struct sk_buff *tail;
1: - } sk_backlog;
1: - int sk_forward_alloc;
1: - unsigned int sk_ll_usec;
1: - unsigned int sk_napi_id;
1: - int sk_rcvbuf;
1: - struct sk_filter *sk_filter;
1: - union {
1: - struct socket_wq *sk_wq;
1: - struct socket_wq *sk_wq_raw;
1: - };
1: - struct xfrm_policy *sk_policy[2];
1: - struct dst_entry *sk_rx_dst;
1: - struct dst_entry *sk_dst_cache;
1: - atomic_t sk_omem_alloc;
1: - int sk_sndbuf;
1: - int sk_wmem_queued;
1: - refcount_t sk_wmem_alloc;
1: - long unsigned int sk_tsq_flags;
1: - union {
1: - struct sk_buff *sk_send_head;
1: - struct rb_root tcp_rtx_queue;
1: - };
1: - struct sk_buff *sk_tx_skb_cache;
1: - struct sk_buff_head sk_write_queue;
1: - __s32 sk_peek_off;
1: - int sk_write_pending;
1: - __u32 sk_dst_pending_confirm;
1: - u32 sk_pacing_status;
1: - long int sk_sndtimeo;
1: - struct timer_list sk_timer;
1: - __u32 sk_priority;
1: - __u32 sk_mark;
1: - long unsigned int sk_pacing_rate;
1: - long unsigned int sk_max_pacing_rate;
1: - struct page_frag sk_frag;
1: - netdev_features_t sk_route_caps;
1: - netdev_features_t sk_route_nocaps;
1: - netdev_features_t sk_route_forced_caps;
1: - int sk_gso_type;
1: - unsigned int sk_gso_max_size;
1: - gfp_t sk_allocation;
1: - __u32 sk_txhash;
1: - u8 sk_padding: 1;
1: - u8 sk_kern_sock: 1;
1: - u8 sk_no_check_tx: 1;
1: - u8 sk_no_check_rx: 1;
1: - u8 sk_userlocks: 4;
1: - u8 sk_pacing_shift;
1: - u16 sk_type;
1: - u16 sk_protocol;
1: - u16 sk_gso_max_segs;
1: - long unsigned int sk_lingertime;
1: - struct proto *sk_prot_creator;
1: - rwlock_t sk_callback_lock;
1: - int sk_err;
1: - int sk_err_soft;
1: - u32 sk_ack_backlog;
1: - u32 sk_max_ack_backlog;
1: - kuid_t sk_uid;
1: - struct pid *sk_peer_pid;
1: - const struct cred *sk_peer_cred;
1: - long int sk_rcvtimeo;
1: - ktime_t sk_stamp;
1: - u16 sk_tsflags;
1: - u8 sk_shutdown;
1: - u32 sk_tskey;
1: - atomic_t sk_zckey;
1: - u8 sk_clockid;
1: - u8 sk_txtime_deadline_mode: 1;
1: - u8 sk_txtime_report_errors: 1;
1: - u8 sk_txtime_unused: 6;
1: - struct socket *sk_socket;
1: - void *sk_user_data;
1: - void *sk_security;
1: - struct sock_cgroup_data sk_cgrp_data;
1: - struct mem_cgroup *sk_memcg;
1: - void (*sk_state_change)(struct sock *);
1: - void (*sk_data_ready)(struct sock *);
1: - void (*sk_write_space)(struct sock *);
1: - void (*sk_error_report)(struct sock *);
1: - int (*sk_backlog_rcv)(struct sock *, struct sk_buff *);
1: - struct sk_buff * (*sk_validate_xmit_skb)(struct sock *, struct net_device *, struct sk_buff *);
1: - void (*sk_destruct)(struct sock *);
1: - struct sock_reuseport *sk_reuseport_cb;
1: - struct bpf_local_storage *sk_bpf_storage;
1: - struct callback_head sk_rcu;
1: + struct sock_common __sk_common;
1: + socket_lock_t sk_lock;
1: + atomic_t sk_drops;
1: + int sk_rcvlowat;
1: + struct sk_buff_head sk_error_queue;
1: + struct sk_buff *sk_rx_skb_cache;
1: + struct sk_buff_head sk_receive_queue;
1: + struct {
1: + atomic_t rmem_alloc;
1: + int len;
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + } sk_backlog;
1: + int sk_forward_alloc;
1: + unsigned int sk_ll_usec;
1: + unsigned int sk_napi_id;
1: + int sk_rcvbuf;
1: + struct sk_filter *sk_filter;
1: + union {
1: + struct socket_wq *sk_wq;
1: + struct socket_wq *sk_wq_raw;
1: + };
1: + struct xfrm_policy *sk_policy[2];
1: + struct dst_entry *sk_rx_dst;
1: + struct dst_entry *sk_dst_cache;
1: + atomic_t sk_omem_alloc;
1: + int sk_sndbuf;
1: + int sk_wmem_queued;
1: + refcount_t sk_wmem_alloc;
1: + long unsigned int sk_tsq_flags;
1: + union {
1: + struct sk_buff *sk_send_head;
1: + struct rb_root tcp_rtx_queue;
1: + };
1: + struct sk_buff *sk_tx_skb_cache;
1: + struct sk_buff_head sk_write_queue;
1: + __s32 sk_peek_off;
1: + int sk_write_pending;
1: + __u32 sk_dst_pending_confirm;
1: + u32 sk_pacing_status;
1: + long int sk_sndtimeo;
1: + struct timer_list sk_timer;
1: + __u32 sk_priority;
1: + __u32 sk_mark;
1: + long unsigned int sk_pacing_rate;
1: + long unsigned int sk_max_pacing_rate;
1: + struct page_frag sk_frag;
1: + netdev_features_t sk_route_caps;
1: + netdev_features_t sk_route_nocaps;
1: + netdev_features_t sk_route_forced_caps;
1: + int sk_gso_type;
1: + unsigned int sk_gso_max_size;
1: + gfp_t sk_allocation;
1: + __u32 sk_txhash;
1: + u8 sk_padding : 1;
1: + u8 sk_kern_sock : 1;
1: + u8 sk_no_check_tx : 1;
1: + u8 sk_no_check_rx : 1;
1: + u8 sk_userlocks : 4;
1: + u8 sk_pacing_shift;
1: + u16 sk_type;
1: + u16 sk_protocol;
1: + u16 sk_gso_max_segs;
1: + long unsigned int sk_lingertime;
1: + struct proto *sk_prot_creator;
1: + rwlock_t sk_callback_lock;
1: + int sk_err;
1: + int sk_err_soft;
1: + u32 sk_ack_backlog;
1: + u32 sk_max_ack_backlog;
1: + kuid_t sk_uid;
1: + struct pid *sk_peer_pid;
1: + const struct cred *sk_peer_cred;
1: + long int sk_rcvtimeo;
1: + ktime_t sk_stamp;
1: + u16 sk_tsflags;
1: + u8 sk_shutdown;
1: + u32 sk_tskey;
1: + atomic_t sk_zckey;
1: + u8 sk_clockid;
1: + u8 sk_txtime_deadline_mode : 1;
1: + u8 sk_txtime_report_errors : 1;
1: + u8 sk_txtime_unused : 6;
1: + struct socket *sk_socket;
1: + void *sk_user_data;
1: + void *sk_security;
1: + struct sock_cgroup_data sk_cgrp_data;
1: + struct mem_cgroup *sk_memcg;
1: + void (*sk_state_change)(struct sock *);
1: + void (*sk_data_ready)(struct sock *);
1: + void (*sk_write_space)(struct sock *);
1: + void (*sk_error_report)(struct sock *);
1: + int (*sk_backlog_rcv)(struct sock *, struct sk_buff *);
1: + struct sk_buff *(*sk_validate_xmit_skb)(struct sock *, struct net_device *,
1: + struct sk_buff *);
1: + void (*sk_destruct)(struct sock *);
1: + struct sock_reuseport *sk_reuseport_cb;
1: + struct bpf_local_storage *sk_bpf_storage;
1: + struct callback_head sk_rcu;
1: };
1:
1: typedef short unsigned int __kernel_sa_family_t;
1: @@ -8161,125 +8253,125 @@ typedef short unsigned int __kernel_sa_family_t;
1: typedef __kernel_sa_family_t sa_family_t;
1:
1: struct sockaddr {
1: - sa_family_t sa_family;
1: - char sa_data[14];
1: + sa_family_t sa_family;
1: + char sa_data[14];
1: };
1:
1: struct msghdr {
1: - void *msg_name;
1: - int msg_namelen;
1: - struct iov_iter msg_iter;
1: - union {
1: - void *msg_control;
1: - void *msg_control_user;
1: - };
1: - bool msg_control_is_user: 1;
1: - __kernel_size_t msg_controllen;
1: - unsigned int msg_flags;
1: - struct kiocb *msg_iocb;
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iov_iter msg_iter;
1: + union {
1: + void *msg_control;
1: + void *msg_control_user;
1: + };
1: + bool msg_control_is_user : 1;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: + struct kiocb *msg_iocb;
1: };
1:
1: typedef struct {
1: - unsigned int clock_rate;
1: - unsigned int clock_type;
1: - short unsigned int loopback;
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: } sync_serial_settings;
1:
1: typedef struct {
1: - unsigned int clock_rate;
1: - unsigned int clock_type;
1: - short unsigned int loopback;
1: - unsigned int slot_map;
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: + unsigned int slot_map;
1: } te1_settings;
1:
1: typedef struct {
1: - short unsigned int encoding;
1: - short unsigned int parity;
1: + short unsigned int encoding;
1: + short unsigned int parity;
1: } raw_hdlc_proto;
1:
1: typedef struct {
1: - unsigned int t391;
1: - unsigned int t392;
1: - unsigned int n391;
1: - unsigned int n392;
1: - unsigned int n393;
1: - short unsigned int lmi;
1: - short unsigned int dce;
1: + unsigned int t391;
1: + unsigned int t392;
1: + unsigned int n391;
1: + unsigned int n392;
1: + unsigned int n393;
1: + short unsigned int lmi;
1: + short unsigned int dce;
1: } fr_proto;
1:
1: typedef struct {
1: - unsigned int dlci;
1: + unsigned int dlci;
1: } fr_proto_pvc;
1:
1: typedef struct {
1: - unsigned int dlci;
1: - char master[16];
1: + unsigned int dlci;
1: + char master[16];
1: } fr_proto_pvc_info;
1:
1: typedef struct {
1: - unsigned int interval;
1: - unsigned int timeout;
1: + unsigned int interval;
1: + unsigned int timeout;
1: } cisco_proto;
1:
1: typedef struct {
1: - short unsigned int dce;
1: - unsigned int modulo;
1: - unsigned int window;
1: - unsigned int t1;
1: - unsigned int t2;
1: - unsigned int n2;
1: + short unsigned int dce;
1: + unsigned int modulo;
1: + unsigned int window;
1: + unsigned int t1;
1: + unsigned int t2;
1: + unsigned int n2;
1: } x25_hdlc_proto;
1:
1: struct ifmap {
1: - long unsigned int mem_start;
1: - long unsigned int mem_end;
1: - short unsigned int base_addr;
1: - unsigned char irq;
1: - unsigned char dma;
1: - unsigned char port;
1: + long unsigned int mem_start;
1: + long unsigned int mem_end;
1: + short unsigned int base_addr;
1: + unsigned char irq;
1: + unsigned char dma;
1: + unsigned char port;
1: };
1:
1: struct if_settings {
1: - unsigned int type;
1: - unsigned int size;
1: - union {
1: - raw_hdlc_proto *raw_hdlc;
1: - cisco_proto *cisco;
1: - fr_proto *fr;
1: - fr_proto_pvc *fr_pvc;
1: - fr_proto_pvc_info *fr_pvc_info;
1: - x25_hdlc_proto *x25;
1: - sync_serial_settings *sync;
1: - te1_settings *te1;
1: - } ifs_ifsu;
1: + unsigned int type;
1: + unsigned int size;
1: + union {
1: + raw_hdlc_proto *raw_hdlc;
1: + cisco_proto *cisco;
1: + fr_proto *fr;
1: + fr_proto_pvc *fr_pvc;
1: + fr_proto_pvc_info *fr_pvc_info;
1: + x25_hdlc_proto *x25;
1: + sync_serial_settings *sync;
1: + te1_settings *te1;
1: + } ifs_ifsu;
1: };
1:
1: struct ifreq {
1: - union {
1: - char ifrn_name[16];
1: - } ifr_ifrn;
1: - union {
1: - struct sockaddr ifru_addr;
1: - struct sockaddr ifru_dstaddr;
1: - struct sockaddr ifru_broadaddr;
1: - struct sockaddr ifru_netmask;
1: - struct sockaddr ifru_hwaddr;
1: - short int ifru_flags;
1: - int ifru_ivalue;
1: - int ifru_mtu;
1: - struct ifmap ifru_map;
1: - char ifru_slave[16];
1: - char ifru_newname[16];
1: - void *ifru_data;
1: - struct if_settings ifru_settings;
1: - } ifr_ifru;
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union {
1: + struct sockaddr ifru_addr;
1: + struct sockaddr ifru_dstaddr;
1: + struct sockaddr ifru_broadaddr;
1: + struct sockaddr ifru_netmask;
1: + struct sockaddr ifru_hwaddr;
1: + short int ifru_flags;
1: + int ifru_ivalue;
1: + int ifru_mtu;
1: + struct ifmap ifru_map;
1: + char ifru_slave[16];
1: + char ifru_newname[16];
1: + void *ifru_data;
1: + struct if_settings ifru_settings;
1: + } ifr_ifru;
1: };
1:
1: struct termiox {
1: - __u16 x_hflag;
1: - __u16 x_cflag;
1: - __u16 x_rflag[5];
1: - __u16 x_sflag;
1: + __u16 x_hflag;
1: + __u16 x_cflag;
1: + __u16 x_rflag[5];
1: + __u16 x_sflag;
1: };
1:
1: struct serial_icounter_struct;
1: @@ -8287,95 +8379,96 @@ struct serial_icounter_struct;
1: struct serial_struct;
1:
1: struct tty_operations {
1: - struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
1: - int (*install)(struct tty_driver *, struct tty_struct *);
1: - void (*remove)(struct tty_driver *, struct tty_struct *);
1: - int (*open)(struct tty_struct *, struct file *);
1: - void (*close)(struct tty_struct *, struct file *);
1: - void (*shutdown)(struct tty_struct *);
1: - void (*cleanup)(struct tty_struct *);
1: - int (*write)(struct tty_struct *, const unsigned char *, int);
1: - int (*put_char)(struct tty_struct *, unsigned char);
1: - void (*flush_chars)(struct tty_struct *);
1: - int (*write_room)(struct tty_struct *);
1: - int (*chars_in_buffer)(struct tty_struct *);
1: - int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: - long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: - void (*set_termios)(struct tty_struct *, struct ktermios *);
1: - void (*throttle)(struct tty_struct *);
1: - void (*unthrottle)(struct tty_struct *);
1: - void (*stop)(struct tty_struct *);
1: - void (*start)(struct tty_struct *);
1: - void (*hangup)(struct tty_struct *);
1: - int (*break_ctl)(struct tty_struct *, int);
1: - void (*flush_buffer)(struct tty_struct *);
1: - void (*set_ldisc)(struct tty_struct *);
1: - void (*wait_until_sent)(struct tty_struct *, int);
1: - void (*send_xchar)(struct tty_struct *, char);
1: - int (*tiocmget)(struct tty_struct *);
1: - int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
1: - int (*resize)(struct tty_struct *, struct winsize *);
1: - int (*set_termiox)(struct tty_struct *, struct termiox *);
1: - int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
1: - int (*get_serial)(struct tty_struct *, struct serial_struct *);
1: - int (*set_serial)(struct tty_struct *, struct serial_struct *);
1: - void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
1: - int (*poll_init)(struct tty_driver *, int, char *);
1: - int (*poll_get_char)(struct tty_driver *, int);
1: - void (*poll_put_char)(struct tty_driver *, int, char);
1: - int (*proc_show)(struct seq_file *, void *);
1: + struct tty_struct *(*lookup)(struct tty_driver *, struct file *, int);
1: + int (*install)(struct tty_driver *, struct tty_struct *);
1: + void (*remove)(struct tty_driver *, struct tty_struct *);
1: + int (*open)(struct tty_struct *, struct file *);
1: + void (*close)(struct tty_struct *, struct file *);
1: + void (*shutdown)(struct tty_struct *);
1: + void (*cleanup)(struct tty_struct *);
1: + int (*write)(struct tty_struct *, const unsigned char *, int);
1: + int (*put_char)(struct tty_struct *, unsigned char);
1: + void (*flush_chars)(struct tty_struct *);
1: + int (*write_room)(struct tty_struct *);
1: + int (*chars_in_buffer)(struct tty_struct *);
1: + int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct tty_struct *, unsigned int,
1: + long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + void (*throttle)(struct tty_struct *);
1: + void (*unthrottle)(struct tty_struct *);
1: + void (*stop)(struct tty_struct *);
1: + void (*start)(struct tty_struct *);
1: + void (*hangup)(struct tty_struct *);
1: + int (*break_ctl)(struct tty_struct *, int);
1: + void (*flush_buffer)(struct tty_struct *);
1: + void (*set_ldisc)(struct tty_struct *);
1: + void (*wait_until_sent)(struct tty_struct *, int);
1: + void (*send_xchar)(struct tty_struct *, char);
1: + int (*tiocmget)(struct tty_struct *);
1: + int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
1: + int (*resize)(struct tty_struct *, struct winsize *);
1: + int (*set_termiox)(struct tty_struct *, struct termiox *);
1: + int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
1: + int (*get_serial)(struct tty_struct *, struct serial_struct *);
1: + int (*set_serial)(struct tty_struct *, struct serial_struct *);
1: + void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
1: + int (*poll_init)(struct tty_driver *, int, char *);
1: + int (*poll_get_char)(struct tty_driver *, int);
1: + void (*poll_put_char)(struct tty_driver *, int, char);
1: + int (*proc_show)(struct seq_file *, void *);
1: };
1:
1: struct proc_dir_entry;
1:
1: struct tty_driver {
1: - int magic;
1: - struct kref kref;
1: - struct cdev **cdevs;
1: - struct module *owner;
1: - const char *driver_name;
1: - const char *name;
1: - int name_base;
1: - int major;
1: - int minor_start;
1: - unsigned int num;
1: - short int type;
1: - short int subtype;
1: - struct ktermios init_termios;
1: - long unsigned int flags;
1: - struct proc_dir_entry *proc_entry;
1: - struct tty_driver *other;
1: - struct tty_struct **ttys;
1: - struct tty_port **ports;
1: - struct ktermios **termios;
1: - void *driver_state;
1: - const struct tty_operations *ops;
1: - struct list_head tty_drivers;
1: + int magic;
1: + struct kref kref;
1: + struct cdev **cdevs;
1: + struct module *owner;
1: + const char *driver_name;
1: + const char *name;
1: + int name_base;
1: + int major;
1: + int minor_start;
1: + unsigned int num;
1: + short int type;
1: + short int subtype;
1: + struct ktermios init_termios;
1: + long unsigned int flags;
1: + struct proc_dir_entry *proc_entry;
1: + struct tty_driver *other;
1: + struct tty_struct **ttys;
1: + struct tty_port **ports;
1: + struct ktermios **termios;
1: + void *driver_state;
1: + const struct tty_operations *ops;
1: + struct list_head tty_drivers;
1: };
1:
1: struct tty_buffer {
1: - union {
1: - struct tty_buffer *next;
1: - struct llist_node free;
1: - };
1: - int used;
1: - int size;
1: - int commit;
1: - int read;
1: - int flags;
1: - long unsigned int data[0];
1: + union {
1: + struct tty_buffer *next;
1: + struct llist_node free;
1: + };
1: + int used;
1: + int size;
1: + int commit;
1: + int read;
1: + int flags;
1: + long unsigned int data[0];
1: };
1:
1: struct tty_bufhead {
1: - struct tty_buffer *head;
1: - struct work_struct work;
1: - struct mutex lock;
1: - atomic_t priority;
1: - struct tty_buffer sentinel;
1: - struct llist_head free;
1: - atomic_t mem_used;
1: - int mem_limit;
1: - struct tty_buffer *tail;
1: + struct tty_buffer *head;
1: + struct work_struct work;
1: + struct mutex lock;
1: + atomic_t priority;
1: + struct tty_buffer sentinel;
1: + struct llist_head free;
1: + atomic_t mem_used;
1: + int mem_limit;
1: + struct tty_buffer *tail;
1: };
1:
1: struct tty_port_operations;
1: @@ -8383,78 +8476,83 @@ struct tty_port_operations;
1: struct tty_port_client_operations;
1:
1: struct tty_port {
1: - struct tty_bufhead buf;
1: - struct tty_struct *tty;
1: - struct tty_struct *itty;
1: - const struct tty_port_operations *ops;
1: - const struct tty_port_client_operations *client_ops;
1: - spinlock_t lock;
1: - int blocked_open;
1: - int count;
1: - wait_queue_head_t open_wait;
1: - wait_queue_head_t delta_msr_wait;
1: - long unsigned int flags;
1: - long unsigned int iflags;
1: - unsigned char console: 1;
1: - unsigned char low_latency: 1;
1: - struct mutex mutex;
1: - struct mutex buf_mutex;
1: - unsigned char *xmit_buf;
1: - unsigned int close_delay;
1: - unsigned int closing_wait;
1: - int drain_delay;
1: - struct kref kref;
1: - void *client_data;
1: + struct tty_bufhead buf;
1: + struct tty_struct *tty;
1: + struct tty_struct *itty;
1: + const struct tty_port_operations *ops;
1: + const struct tty_port_client_operations *client_ops;
1: + spinlock_t lock;
1: + int blocked_open;
1: + int count;
1: + wait_queue_head_t open_wait;
1: + wait_queue_head_t delta_msr_wait;
1: + long unsigned int flags;
1: + long unsigned int iflags;
1: + unsigned char console : 1;
1: + unsigned char low_latency : 1;
1: + struct mutex mutex;
1: + struct mutex buf_mutex;
1: + unsigned char *xmit_buf;
1: + unsigned int close_delay;
1: + unsigned int closing_wait;
1: + int drain_delay;
1: + struct kref kref;
1: + void *client_data;
1: };
1:
1: struct tty_ldisc_ops {
1: - int magic;
1: - char *name;
1: - int num;
1: - int flags;
1: - int (*open)(struct tty_struct *);
1: - void (*close)(struct tty_struct *);
1: - void (*flush_buffer)(struct tty_struct *);
1: - ssize_t (*read)(struct tty_struct *, struct file *, unsigned char *, size_t);
1: - ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t);
1: - int (*ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: - int (*compat_ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: - void (*set_termios)(struct tty_struct *, struct ktermios *);
1: - __poll_t (*poll)(struct tty_struct *, struct file *, struct poll_table_struct *);
1: - int (*hangup)(struct tty_struct *);
1: - void (*receive_buf)(struct tty_struct *, const unsigned char *, char *, int);
1: - void (*write_wakeup)(struct tty_struct *);
1: - void (*dcd_change)(struct tty_struct *, unsigned int);
1: - int (*receive_buf2)(struct tty_struct *, const unsigned char *, char *, int);
1: - struct module *owner;
1: - int refcount;
1: + int magic;
1: + char *name;
1: + int num;
1: + int flags;
1: + int (*open)(struct tty_struct *);
1: + void (*close)(struct tty_struct *);
1: + void (*flush_buffer)(struct tty_struct *);
1: + ssize_t (*read)(struct tty_struct *, struct file *, unsigned char *, size_t);
1: + ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *,
1: + size_t);
1: + int (*ioctl)(struct tty_struct *, struct file *, unsigned int,
1: + long unsigned int);
1: + int (*compat_ioctl)(struct tty_struct *, struct file *, unsigned int,
1: + long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + __poll_t (*poll)(struct tty_struct *, struct file *,
1: + struct poll_table_struct *);
1: + int (*hangup)(struct tty_struct *);
1: + void (*receive_buf)(struct tty_struct *, const unsigned char *, char *, int);
1: + void (*write_wakeup)(struct tty_struct *);
1: + void (*dcd_change)(struct tty_struct *, unsigned int);
1: + int (*receive_buf2)(struct tty_struct *, const unsigned char *, char *, int);
1: + struct module *owner;
1: + int refcount;
1: };
1:
1: struct tty_ldisc {
1: - struct tty_ldisc_ops *ops;
1: - struct tty_struct *tty;
1: + struct tty_ldisc_ops *ops;
1: + struct tty_struct *tty;
1: };
1:
1: struct tty_port_operations {
1: - int (*carrier_raised)(struct tty_port *);
1: - void (*dtr_rts)(struct tty_port *, int);
1: - void (*shutdown)(struct tty_port *);
1: - int (*activate)(struct tty_port *, struct tty_struct *);
1: - void (*destruct)(struct tty_port *);
1: + int (*carrier_raised)(struct tty_port *);
1: + void (*dtr_rts)(struct tty_port *, int);
1: + void (*shutdown)(struct tty_port *);
1: + int (*activate)(struct tty_port *, struct tty_struct *);
1: + void (*destruct)(struct tty_port *);
1: };
1:
1: struct tty_port_client_operations {
1: - int (*receive_buf)(struct tty_port *, const unsigned char *, const unsigned char *, size_t);
1: - void (*write_wakeup)(struct tty_port *);
1: + int (*receive_buf)(struct tty_port *, const unsigned char *,
1: + const unsigned char *, size_t);
1: + void (*write_wakeup)(struct tty_port *);
1: };
1:
1: struct prot_inuse;
1:
1: struct netns_core {
1: - struct ctl_table_header *sysctl_hdr;
1: - int sysctl_somaxconn;
1: - int *sock_inuse;
1: - struct prot_inuse *prot_inuse;
1: + struct ctl_table_header *sysctl_hdr;
1: + int sysctl_somaxconn;
1: + int *sock_inuse;
1: + struct prot_inuse *prot_inuse;
1: };
1:
1: struct tcp_mib;
1: @@ -8478,77 +8576,77 @@ struct linux_tls_mib;
1: struct mptcp_mib;
1:
1: struct netns_mib {
1: - struct tcp_mib *tcp_statistics;
1: - struct ipstats_mib *ip_statistics;
1: - struct linux_mib *net_statistics;
1: - struct udp_mib *udp_statistics;
1: - struct udp_mib *udplite_statistics;
1: - struct icmp_mib *icmp_statistics;
1: - struct icmpmsg_mib *icmpmsg_statistics;
1: - struct proc_dir_entry *proc_net_devsnmp6;
1: - struct udp_mib *udp_stats_in6;
1: - struct udp_mib *udplite_stats_in6;
1: - struct ipstats_mib *ipv6_statistics;
1: - struct icmpv6_mib *icmpv6_statistics;
1: - struct icmpv6msg_mib *icmpv6msg_statistics;
1: - struct linux_tls_mib *tls_statistics;
1: - struct mptcp_mib *mptcp_statistics;
1: + struct tcp_mib *tcp_statistics;
1: + struct ipstats_mib *ip_statistics;
1: + struct linux_mib *net_statistics;
1: + struct udp_mib *udp_statistics;
1: + struct udp_mib *udplite_statistics;
1: + struct icmp_mib *icmp_statistics;
1: + struct icmpmsg_mib *icmpmsg_statistics;
1: + struct proc_dir_entry *proc_net_devsnmp6;
1: + struct udp_mib *udp_stats_in6;
1: + struct udp_mib *udplite_stats_in6;
1: + struct ipstats_mib *ipv6_statistics;
1: + struct icmpv6_mib *icmpv6_statistics;
1: + struct icmpv6msg_mib *icmpv6msg_statistics;
1: + struct linux_tls_mib *tls_statistics;
1: + struct mptcp_mib *mptcp_statistics;
1: };
1:
1: struct netns_packet {
1: - struct mutex sklist_lock;
1: - struct hlist_head sklist;
1: + struct mutex sklist_lock;
1: + struct hlist_head sklist;
1: };
1:
1: struct netns_unix {
1: - int sysctl_max_dgram_qlen;
1: - struct ctl_table_header *ctl;
1: + int sysctl_max_dgram_qlen;
1: + struct ctl_table_header *ctl;
1: };
1:
1: struct netns_nexthop {
1: - struct rb_root rb_root;
1: - struct hlist_head *devhash;
1: - unsigned int seq;
1: - u32 last_id_allocated;
1: - struct blocking_notifier_head notifier_chain;
1: + struct rb_root rb_root;
1: + struct hlist_head *devhash;
1: + unsigned int seq;
1: + u32 last_id_allocated;
1: + struct blocking_notifier_head notifier_chain;
1: };
1:
1: struct local_ports {
1: - seqlock_t lock;
1: - int range[2];
1: - bool warned;
1: + seqlock_t lock;
1: + int range[2];
1: + bool warned;
1: };
1:
1: struct inet_hashinfo;
1:
1: struct inet_timewait_death_row {
1: - atomic_t tw_count;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct inet_hashinfo *hashinfo;
1: - int sysctl_max_tw_buckets;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + atomic_t tw_count;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct inet_hashinfo *hashinfo;
1: + int sysctl_max_tw_buckets;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct ping_group_range {
1: - seqlock_t lock;
1: - kgid_t range[2];
1: + seqlock_t lock;
1: + kgid_t range[2];
1: };
1:
1: typedef struct {
1: - u64 key[2];
1: + u64 key[2];
1: } siphash_key_t;
1:
1: struct ipv4_devconf;
1: @@ -8572,222 +8670,224 @@ struct tcp_fastopen_context;
1: struct fib_notifier_ops;
1:
1: struct netns_ipv4 {
1: - struct ctl_table_header *forw_hdr;
1: - struct ctl_table_header *frags_hdr;
1: - struct ctl_table_header *ipv4_hdr;
1: - struct ctl_table_header *route_hdr;
1: - struct ctl_table_header *xfrm4_hdr;
1: - struct ipv4_devconf *devconf_all;
1: - struct ipv4_devconf *devconf_dflt;
1: - struct ip_ra_chain *ra_chain;
1: - struct mutex ra_mutex;
1: - struct fib_rules_ops *rules_ops;
1: - bool fib_has_custom_rules;
1: - unsigned int fib_rules_require_fldissect;
1: - struct fib_table *fib_main;
1: - struct fib_table *fib_default;
1: - bool fib_has_custom_local_routes;
1: - int fib_num_tclassid_users;
1: - struct hlist_head *fib_table_hash;
1: - bool fib_offload_disabled;
1: - struct sock *fibnl;
1: - struct sock **icmp_sk;
1: - struct sock *mc_autojoin_sk;
1: - struct inet_peer_base *peers;
1: - struct sock **tcp_sk;
1: - struct fqdir *fqdir;
1: - struct xt_table *iptable_filter;
1: - struct xt_table *iptable_mangle;
1: - struct xt_table *iptable_raw;
1: - struct xt_table *arptable_filter;
1: - struct xt_table *iptable_security;
1: - struct xt_table *nat_table;
1: - int sysctl_icmp_echo_ignore_all;
1: - int sysctl_icmp_echo_ignore_broadcasts;
1: - int sysctl_icmp_ignore_bogus_error_responses;
1: - int sysctl_icmp_ratelimit;
1: - int sysctl_icmp_ratemask;
1: - int sysctl_icmp_errors_use_inbound_ifaddr;
1: - struct local_ports ip_local_ports;
1: - int sysctl_tcp_ecn;
1: - int sysctl_tcp_ecn_fallback;
1: - int sysctl_ip_default_ttl;
1: - int sysctl_ip_no_pmtu_disc;
1: - int sysctl_ip_fwd_use_pmtu;
1: - int sysctl_ip_fwd_update_priority;
1: - int sysctl_ip_nonlocal_bind;
1: - int sysctl_ip_autobind_reuse;
1: - int sysctl_ip_dynaddr;
1: - int sysctl_ip_early_demux;
1: - int sysctl_raw_l3mdev_accept;
1: - int sysctl_tcp_early_demux;
1: - int sysctl_udp_early_demux;
1: - int sysctl_nexthop_compat_mode;
1: - int sysctl_fwmark_reflect;
1: - int sysctl_tcp_fwmark_accept;
1: - int sysctl_tcp_l3mdev_accept;
1: - int sysctl_tcp_mtu_probing;
1: - int sysctl_tcp_mtu_probe_floor;
1: - int sysctl_tcp_base_mss;
1: - int sysctl_tcp_min_snd_mss;
1: - int sysctl_tcp_probe_threshold;
1: - u32 sysctl_tcp_probe_interval;
1: - int sysctl_tcp_keepalive_time;
1: - int sysctl_tcp_keepalive_probes;
1: - int sysctl_tcp_keepalive_intvl;
1: - int sysctl_tcp_syn_retries;
1: - int sysctl_tcp_synack_retries;
1: - int sysctl_tcp_syncookies;
1: - int sysctl_tcp_reordering;
1: - int sysctl_tcp_retries1;
1: - int sysctl_tcp_retries2;
1: - int sysctl_tcp_orphan_retries;
1: - int sysctl_tcp_fin_timeout;
1: - unsigned int sysctl_tcp_notsent_lowat;
1: - int sysctl_tcp_tw_reuse;
1: - int sysctl_tcp_sack;
1: - int sysctl_tcp_window_scaling;
1: - int sysctl_tcp_timestamps;
1: - int sysctl_tcp_early_retrans;
1: - int sysctl_tcp_recovery;
1: - int sysctl_tcp_thin_linear_timeouts;
1: - int sysctl_tcp_slow_start_after_idle;
1: - int sysctl_tcp_retrans_collapse;
1: - int sysctl_tcp_stdurg;
1: - int sysctl_tcp_rfc1337;
1: - int sysctl_tcp_abort_on_overflow;
1: - int sysctl_tcp_fack;
1: - int sysctl_tcp_max_reordering;
1: - int sysctl_tcp_dsack;
1: - int sysctl_tcp_app_win;
1: - int sysctl_tcp_adv_win_scale;
1: - int sysctl_tcp_frto;
1: - int sysctl_tcp_nometrics_save;
1: - int sysctl_tcp_no_ssthresh_metrics_save;
1: - int sysctl_tcp_moderate_rcvbuf;
1: - int sysctl_tcp_tso_win_divisor;
1: - int sysctl_tcp_workaround_signed_windows;
1: - int sysctl_tcp_limit_output_bytes;
1: - int sysctl_tcp_challenge_ack_limit;
1: - int sysctl_tcp_min_tso_segs;
1: - int sysctl_tcp_min_rtt_wlen;
1: - int sysctl_tcp_autocorking;
1: - int sysctl_tcp_invalid_ratelimit;
1: - int sysctl_tcp_pacing_ss_ratio;
1: - int sysctl_tcp_pacing_ca_ratio;
1: - int sysctl_tcp_wmem[3];
1: - int sysctl_tcp_rmem[3];
1: - int sysctl_tcp_comp_sack_nr;
1: - long unsigned int sysctl_tcp_comp_sack_delay_ns;
1: - long unsigned int sysctl_tcp_comp_sack_slack_ns;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct inet_timewait_death_row tcp_death_row;
1: - int sysctl_max_syn_backlog;
1: - int sysctl_tcp_fastopen;
1: - const struct tcp_congestion_ops *tcp_congestion_control;
1: - struct tcp_fastopen_context *tcp_fastopen_ctx;
1: - spinlock_t tcp_fastopen_ctx_lock;
1: - unsigned int sysctl_tcp_fastopen_blackhole_timeout;
1: - atomic_t tfo_active_disable_times;
1: - long unsigned int tfo_active_disable_stamp;
1: - int sysctl_tcp_reflect_tos;
1: - int sysctl_udp_wmem_min;
1: - int sysctl_udp_rmem_min;
1: - int sysctl_udp_l3mdev_accept;
1: - int sysctl_igmp_max_memberships;
1: - int sysctl_igmp_max_msf;
1: - int sysctl_igmp_llm_reports;
1: - int sysctl_igmp_qrv;
1: - struct ping_group_range ping_group_range;
1: - atomic_t dev_addr_genid;
1: - long unsigned int *sysctl_local_reserved_ports;
1: - int sysctl_ip_prot_sock;
1: - struct list_head mr_tables;
1: - struct fib_rules_ops *mr_rules_ops;
1: - int sysctl_fib_multipath_use_neigh;
1: - int sysctl_fib_multipath_hash_policy;
1: - struct fib_notifier_ops *notifier_ops;
1: - unsigned int fib_seq;
1: - struct fib_notifier_ops *ipmr_notifier_ops;
1: - unsigned int ipmr_seq;
1: - atomic_t rt_genid;
1: - siphash_key_t ip_id_key;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct ctl_table_header *forw_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *ipv4_hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *xfrm4_hdr;
1: + struct ipv4_devconf *devconf_all;
1: + struct ipv4_devconf *devconf_dflt;
1: + struct ip_ra_chain *ra_chain;
1: + struct mutex ra_mutex;
1: + struct fib_rules_ops *rules_ops;
1: + bool fib_has_custom_rules;
1: + unsigned int fib_rules_require_fldissect;
1: + struct fib_table *fib_main;
1: + struct fib_table *fib_default;
1: + bool fib_has_custom_local_routes;
1: + int fib_num_tclassid_users;
1: + struct hlist_head *fib_table_hash;
1: + bool fib_offload_disabled;
1: + struct sock *fibnl;
1: + struct sock **icmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct inet_peer_base *peers;
1: + struct sock **tcp_sk;
1: + struct fqdir *fqdir;
1: + struct xt_table *iptable_filter;
1: + struct xt_table *iptable_mangle;
1: + struct xt_table *iptable_raw;
1: + struct xt_table *arptable_filter;
1: + struct xt_table *iptable_security;
1: + struct xt_table *nat_table;
1: + int sysctl_icmp_echo_ignore_all;
1: + int sysctl_icmp_echo_ignore_broadcasts;
1: + int sysctl_icmp_ignore_bogus_error_responses;
1: + int sysctl_icmp_ratelimit;
1: + int sysctl_icmp_ratemask;
1: + int sysctl_icmp_errors_use_inbound_ifaddr;
1: + struct local_ports ip_local_ports;
1: + int sysctl_tcp_ecn;
1: + int sysctl_tcp_ecn_fallback;
1: + int sysctl_ip_default_ttl;
1: + int sysctl_ip_no_pmtu_disc;
1: + int sysctl_ip_fwd_use_pmtu;
1: + int sysctl_ip_fwd_update_priority;
1: + int sysctl_ip_nonlocal_bind;
1: + int sysctl_ip_autobind_reuse;
1: + int sysctl_ip_dynaddr;
1: + int sysctl_ip_early_demux;
1: + int sysctl_raw_l3mdev_accept;
1: + int sysctl_tcp_early_demux;
1: + int sysctl_udp_early_demux;
1: + int sysctl_nexthop_compat_mode;
1: + int sysctl_fwmark_reflect;
1: + int sysctl_tcp_fwmark_accept;
1: + int sysctl_tcp_l3mdev_accept;
1: + int sysctl_tcp_mtu_probing;
1: + int sysctl_tcp_mtu_probe_floor;
1: + int sysctl_tcp_base_mss;
1: + int sysctl_tcp_min_snd_mss;
1: + int sysctl_tcp_probe_threshold;
1: + u32 sysctl_tcp_probe_interval;
1: + int sysctl_tcp_keepalive_time;
1: + int sysctl_tcp_keepalive_probes;
1: + int sysctl_tcp_keepalive_intvl;
1: + int sysctl_tcp_syn_retries;
1: + int sysctl_tcp_synack_retries;
1: + int sysctl_tcp_syncookies;
1: + int sysctl_tcp_reordering;
1: + int sysctl_tcp_retries1;
1: + int sysctl_tcp_retries2;
1: + int sysctl_tcp_orphan_retries;
1: + int sysctl_tcp_fin_timeout;
1: + unsigned int sysctl_tcp_notsent_lowat;
1: + int sysctl_tcp_tw_reuse;
1: + int sysctl_tcp_sack;
1: + int sysctl_tcp_window_scaling;
1: + int sysctl_tcp_timestamps;
1: + int sysctl_tcp_early_retrans;
1: + int sysctl_tcp_recovery;
1: + int sysctl_tcp_thin_linear_timeouts;
1: + int sysctl_tcp_slow_start_after_idle;
1: + int sysctl_tcp_retrans_collapse;
1: + int sysctl_tcp_stdurg;
1: + int sysctl_tcp_rfc1337;
1: + int sysctl_tcp_abort_on_overflow;
1: + int sysctl_tcp_fack;
1: + int sysctl_tcp_max_reordering;
1: + int sysctl_tcp_dsack;
1: + int sysctl_tcp_app_win;
1: + int sysctl_tcp_adv_win_scale;
1: + int sysctl_tcp_frto;
1: + int sysctl_tcp_nometrics_save;
1: + int sysctl_tcp_no_ssthresh_metrics_save;
1: + int sysctl_tcp_moderate_rcvbuf;
1: + int sysctl_tcp_tso_win_divisor;
1: + int sysctl_tcp_workaround_signed_windows;
1: + int sysctl_tcp_limit_output_bytes;
1: + int sysctl_tcp_challenge_ack_limit;
1: + int sysctl_tcp_min_tso_segs;
1: + int sysctl_tcp_min_rtt_wlen;
1: + int sysctl_tcp_autocorking;
1: + int sysctl_tcp_invalid_ratelimit;
1: + int sysctl_tcp_pacing_ss_ratio;
1: + int sysctl_tcp_pacing_ca_ratio;
1: + int sysctl_tcp_wmem[3];
1: + int sysctl_tcp_rmem[3];
1: + int sysctl_tcp_comp_sack_nr;
1: + long unsigned int sysctl_tcp_comp_sack_delay_ns;
1: + long unsigned int sysctl_tcp_comp_sack_slack_ns;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct inet_timewait_death_row tcp_death_row;
1: + int sysctl_max_syn_backlog;
1: + int sysctl_tcp_fastopen;
1: + const struct tcp_congestion_ops *tcp_congestion_control;
1: + struct tcp_fastopen_context *tcp_fastopen_ctx;
1: + spinlock_t tcp_fastopen_ctx_lock;
1: + unsigned int sysctl_tcp_fastopen_blackhole_timeout;
1: + atomic_t tfo_active_disable_times;
1: + long unsigned int tfo_active_disable_stamp;
1: + int sysctl_tcp_reflect_tos;
1: + int sysctl_udp_wmem_min;
1: + int sysctl_udp_rmem_min;
1: + int sysctl_udp_l3mdev_accept;
1: + int sysctl_igmp_max_memberships;
1: + int sysctl_igmp_max_msf;
1: + int sysctl_igmp_llm_reports;
1: + int sysctl_igmp_qrv;
1: + struct ping_group_range ping_group_range;
1: + atomic_t dev_addr_genid;
1: + long unsigned int *sysctl_local_reserved_ports;
1: + int sysctl_ip_prot_sock;
1: + struct list_head mr_tables;
1: + struct fib_rules_ops *mr_rules_ops;
1: + int sysctl_fib_multipath_use_neigh;
1: + int sysctl_fib_multipath_hash_policy;
1: + struct fib_notifier_ops *notifier_ops;
1: + unsigned int fib_seq;
1: + struct fib_notifier_ops *ipmr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + atomic_t rt_genid;
1: + siphash_key_t ip_id_key;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct netns_sysctl_ipv6 {
1: - struct ctl_table_header *hdr;
1: - struct ctl_table_header *route_hdr;
1: - struct ctl_table_header *icmp_hdr;
1: - struct ctl_table_header *frags_hdr;
1: - struct ctl_table_header *xfrm6_hdr;
1: - int bindv6only;
1: - int flush_delay;
1: - int ip6_rt_max_size;
1: - int ip6_rt_gc_min_interval;
1: - int ip6_rt_gc_timeout;
1: - int ip6_rt_gc_interval;
1: - int ip6_rt_gc_elasticity;
1: - int ip6_rt_mtu_expires;
1: - int ip6_rt_min_advmss;
1: - int multipath_hash_policy;
1: - int flowlabel_consistency;
1: - int auto_flowlabels;
1: - int icmpv6_time;
1: - int icmpv6_echo_ignore_all;
1: - int icmpv6_echo_ignore_multicast;
1: - int icmpv6_echo_ignore_anycast;
1: - long unsigned int icmpv6_ratemask[4];
1: - long unsigned int *icmpv6_ratemask_ptr;
1: - int anycast_src_echo_reply;
1: - int ip_nonlocal_bind;
1: - int fwmark_reflect;
1: - int idgen_retries;
1: - int idgen_delay;
1: - int flowlabel_state_ranges;
1: - int flowlabel_reflect;
1: - int max_dst_opts_cnt;
1: - int max_hbh_opts_cnt;
1: - int max_dst_opts_len;
1: - int max_hbh_opts_len;
1: - int seg6_flowlabel;
1: - bool skip_notify_on_dev_down;
1: + struct ctl_table_header *hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *icmp_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *xfrm6_hdr;
1: + int bindv6only;
1: + int flush_delay;
1: + int ip6_rt_max_size;
1: + int ip6_rt_gc_min_interval;
1: + int ip6_rt_gc_timeout;
1: + int ip6_rt_gc_interval;
1: + int ip6_rt_gc_elasticity;
1: + int ip6_rt_mtu_expires;
1: + int ip6_rt_min_advmss;
1: + int multipath_hash_policy;
1: + int flowlabel_consistency;
1: + int auto_flowlabels;
1: + int icmpv6_time;
1: + int icmpv6_echo_ignore_all;
1: + int icmpv6_echo_ignore_multicast;
1: + int icmpv6_echo_ignore_anycast;
1: + long unsigned int icmpv6_ratemask[4];
1: + long unsigned int *icmpv6_ratemask_ptr;
1: + int anycast_src_echo_reply;
1: + int ip_nonlocal_bind;
1: + int fwmark_reflect;
1: + int idgen_retries;
1: + int idgen_delay;
1: + int flowlabel_state_ranges;
1: + int flowlabel_reflect;
1: + int max_dst_opts_cnt;
1: + int max_hbh_opts_cnt;
1: + int max_dst_opts_len;
1: + int max_hbh_opts_len;
1: + int seg6_flowlabel;
1: + bool skip_notify_on_dev_down;
1: };
1:
1: struct neighbour;
1:
1: struct dst_ops {
1: - short unsigned int family;
1: - unsigned int gc_thresh;
1: - int (*gc)(struct dst_ops *);
1: - struct dst_entry * (*check)(struct dst_entry *, __u32);
1: - unsigned int (*default_advmss)(const struct dst_entry *);
1: - unsigned int (*mtu)(const struct dst_entry *);
1: - u32 * (*cow_metrics)(struct dst_entry *, long unsigned int);
1: - void (*destroy)(struct dst_entry *);
1: - void (*ifdown)(struct dst_entry *, struct net_device *, int);
1: - struct dst_entry * (*negative_advice)(struct dst_entry *);
1: - void (*link_failure)(struct sk_buff *);
1: - void (*update_pmtu)(struct dst_entry *, struct sock *, struct sk_buff *, u32, bool);
1: - void (*redirect)(struct dst_entry *, struct sock *, struct sk_buff *);
1: - int (*local_out)(struct net *, struct sock *, struct sk_buff *);
1: - struct neighbour * (*neigh_lookup)(const struct dst_entry *, struct sk_buff *, const void *);
1: - void (*confirm_neigh)(const struct dst_entry *, const void *);
1: - struct kmem_cache *kmem_cachep;
1: - struct percpu_counter pcpuc_entries;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + short unsigned int family;
1: + unsigned int gc_thresh;
1: + int (*gc)(struct dst_ops *);
1: + struct dst_entry *(*check)(struct dst_entry *, __u32);
1: + unsigned int (*default_advmss)(const struct dst_entry *);
1: + unsigned int (*mtu)(const struct dst_entry *);
1: + u32 *(*cow_metrics)(struct dst_entry *, long unsigned int);
1: + void (*destroy)(struct dst_entry *);
1: + void (*ifdown)(struct dst_entry *, struct net_device *, int);
1: + struct dst_entry *(*negative_advice)(struct dst_entry *);
1: + void (*link_failure)(struct sk_buff *);
1: + void (*update_pmtu)(struct dst_entry *, struct sock *, struct sk_buff *, u32,
1: + bool);
1: + void (*redirect)(struct dst_entry *, struct sock *, struct sk_buff *);
1: + int (*local_out)(struct net *, struct sock *, struct sk_buff *);
1: + struct neighbour *(*neigh_lookup)(const struct dst_entry *, struct sk_buff *,
1: + const void *);
1: + void (*confirm_neigh)(const struct dst_entry *, const void *);
1: + struct kmem_cache *kmem_cachep;
1: + struct percpu_counter pcpuc_entries;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct ipv6_devconf;
1: @@ -8803,115 +8903,115 @@ struct fib6_table;
1: struct seg6_pernet_data;
1:
1: struct netns_ipv6 {
1: - struct netns_sysctl_ipv6 sysctl;
1: - struct ipv6_devconf *devconf_all;
1: - struct ipv6_devconf *devconf_dflt;
1: - struct inet_peer_base *peers;
1: - struct fqdir *fqdir;
1: - struct xt_table *ip6table_filter;
1: - struct xt_table *ip6table_mangle;
1: - struct xt_table *ip6table_raw;
1: - struct xt_table *ip6table_security;
1: - struct xt_table *ip6table_nat;
1: - struct fib6_info *fib6_null_entry;
1: - struct rt6_info *ip6_null_entry;
1: - struct rt6_statistics *rt6_stats;
1: - struct timer_list ip6_fib_timer;
1: - struct hlist_head *fib_table_hash;
1: - struct fib6_table *fib6_main_tbl;
1: - struct list_head fib6_walkers;
1: - long: 64;
1: - long: 64;
1: - struct dst_ops ip6_dst_ops;
1: - rwlock_t fib6_walker_lock;
1: - spinlock_t fib6_gc_lock;
1: - unsigned int ip6_rt_gc_expire;
1: - long unsigned int ip6_rt_last_gc;
1: - unsigned int fib6_rules_require_fldissect;
1: - bool fib6_has_custom_rules;
1: - unsigned int fib6_routes_require_src;
1: - struct rt6_info *ip6_prohibit_entry;
1: - struct rt6_info *ip6_blk_hole_entry;
1: - struct fib6_table *fib6_local_tbl;
1: - struct fib_rules_ops *fib6_rules_ops;
1: - struct sock **icmp_sk;
1: - struct sock *ndisc_sk;
1: - struct sock *tcp_sk;
1: - struct sock *igmp_sk;
1: - struct sock *mc_autojoin_sk;
1: - struct list_head mr6_tables;
1: - struct fib_rules_ops *mr6_rules_ops;
1: - atomic_t dev_addr_genid;
1: - atomic_t fib6_sernum;
1: - struct seg6_pernet_data *seg6_data;
1: - struct fib_notifier_ops *notifier_ops;
1: - struct fib_notifier_ops *ip6mr_notifier_ops;
1: - unsigned int ipmr_seq;
1: - struct {
1: - struct hlist_head head;
1: - spinlock_t lock;
1: - u32 seq;
1: - } ip6addrlbl_table;
1: + struct netns_sysctl_ipv6 sysctl;
1: + struct ipv6_devconf *devconf_all;
1: + struct ipv6_devconf *devconf_dflt;
1: + struct inet_peer_base *peers;
1: + struct fqdir *fqdir;
1: + struct xt_table *ip6table_filter;
1: + struct xt_table *ip6table_mangle;
1: + struct xt_table *ip6table_raw;
1: + struct xt_table *ip6table_security;
1: + struct xt_table *ip6table_nat;
1: + struct fib6_info *fib6_null_entry;
1: + struct rt6_info *ip6_null_entry;
1: + struct rt6_statistics *rt6_stats;
1: + struct timer_list ip6_fib_timer;
1: + struct hlist_head *fib_table_hash;
1: + struct fib6_table *fib6_main_tbl;
1: + struct list_head fib6_walkers;
1: + long : 64;
1: + long : 64;
1: + struct dst_ops ip6_dst_ops;
1: + rwlock_t fib6_walker_lock;
1: + spinlock_t fib6_gc_lock;
1: + unsigned int ip6_rt_gc_expire;
1: + long unsigned int ip6_rt_last_gc;
1: + unsigned int fib6_rules_require_fldissect;
1: + bool fib6_has_custom_rules;
1: + unsigned int fib6_routes_require_src;
1: + struct rt6_info *ip6_prohibit_entry;
1: + struct rt6_info *ip6_blk_hole_entry;
1: + struct fib6_table *fib6_local_tbl;
1: + struct fib_rules_ops *fib6_rules_ops;
1: + struct sock **icmp_sk;
1: + struct sock *ndisc_sk;
1: + struct sock *tcp_sk;
1: + struct sock *igmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct list_head mr6_tables;
1: + struct fib_rules_ops *mr6_rules_ops;
1: + atomic_t dev_addr_genid;
1: + atomic_t fib6_sernum;
1: + struct seg6_pernet_data *seg6_data;
1: + struct fib_notifier_ops *notifier_ops;
1: + struct fib_notifier_ops *ip6mr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + struct {
1: + struct hlist_head head;
1: + spinlock_t lock;
1: + u32 seq;
1: + } ip6addrlbl_table;
1: };
1:
1: struct netns_sysctl_lowpan {
1: - struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *frags_hdr;
1: };
1:
1: struct netns_ieee802154_lowpan {
1: - struct netns_sysctl_lowpan sysctl;
1: - struct fqdir *fqdir;
1: + struct netns_sysctl_lowpan sysctl;
1: + struct fqdir *fqdir;
1: };
1:
1: struct sctp_mib;
1:
1: struct netns_sctp {
1: - struct sctp_mib *sctp_statistics;
1: - struct proc_dir_entry *proc_net_sctp;
1: - struct ctl_table_header *sysctl_header;
1: - struct sock *ctl_sock;
1: - struct list_head local_addr_list;
1: - struct list_head addr_waitq;
1: - struct timer_list addr_wq_timer;
1: - struct list_head auto_asconf_splist;
1: - spinlock_t addr_wq_lock;
1: - spinlock_t local_addr_lock;
1: - unsigned int rto_initial;
1: - unsigned int rto_min;
1: - unsigned int rto_max;
1: - int rto_alpha;
1: - int rto_beta;
1: - int max_burst;
1: - int cookie_preserve_enable;
1: - char *sctp_hmac_alg;
1: - unsigned int valid_cookie_life;
1: - unsigned int sack_timeout;
1: - unsigned int hb_interval;
1: - int max_retrans_association;
1: - int max_retrans_path;
1: - int max_retrans_init;
1: - int pf_retrans;
1: - int ps_retrans;
1: - int pf_enable;
1: - int pf_expose;
1: - int sndbuf_policy;
1: - int rcvbuf_policy;
1: - int default_auto_asconf;
1: - int addip_enable;
1: - int addip_noauth;
1: - int prsctp_enable;
1: - int reconf_enable;
1: - int auth_enable;
1: - int intl_enable;
1: - int ecn_enable;
1: - int scope_policy;
1: - int rwnd_upd_shift;
1: - long unsigned int max_autoclose;
1: + struct sctp_mib *sctp_statistics;
1: + struct proc_dir_entry *proc_net_sctp;
1: + struct ctl_table_header *sysctl_header;
1: + struct sock *ctl_sock;
1: + struct list_head local_addr_list;
1: + struct list_head addr_waitq;
1: + struct timer_list addr_wq_timer;
1: + struct list_head auto_asconf_splist;
1: + spinlock_t addr_wq_lock;
1: + spinlock_t local_addr_lock;
1: + unsigned int rto_initial;
1: + unsigned int rto_min;
1: + unsigned int rto_max;
1: + int rto_alpha;
1: + int rto_beta;
1: + int max_burst;
1: + int cookie_preserve_enable;
1: + char *sctp_hmac_alg;
1: + unsigned int valid_cookie_life;
1: + unsigned int sack_timeout;
1: + unsigned int hb_interval;
1: + int max_retrans_association;
1: + int max_retrans_path;
1: + int max_retrans_init;
1: + int pf_retrans;
1: + int ps_retrans;
1: + int pf_enable;
1: + int pf_expose;
1: + int sndbuf_policy;
1: + int rcvbuf_policy;
1: + int default_auto_asconf;
1: + int addip_enable;
1: + int addip_noauth;
1: + int prsctp_enable;
1: + int reconf_enable;
1: + int auth_enable;
1: + int intl_enable;
1: + int ecn_enable;
1: + int scope_policy;
1: + int rwnd_upd_shift;
1: + long unsigned int max_autoclose;
1: };
1:
1: struct netns_dccp {
1: - struct sock *v4_ctl_sk;
1: - struct sock *v6_ctl_sk;
1: + struct sock *v4_ctl_sk;
1: + struct sock *v6_ctl_sk;
1: };
1:
1: struct nf_queue_handler;
1: @@ -8921,72 +9021,72 @@ struct nf_logger;
1: struct nf_hook_entries;
1:
1: struct netns_nf {
1: - struct proc_dir_entry *proc_netfilter;
1: - const struct nf_queue_handler *queue_handler;
1: - const struct nf_logger *nf_loggers[13];
1: - struct ctl_table_header *nf_log_dir_header;
1: - struct nf_hook_entries *hooks_ipv4[5];
1: - struct nf_hook_entries *hooks_ipv6[5];
1: - struct nf_hook_entries *hooks_arp[3];
1: - struct nf_hook_entries *hooks_bridge[5];
1: - struct nf_hook_entries *hooks_decnet[7];
1: - bool defrag_ipv4;
1: - bool defrag_ipv6;
1: + struct proc_dir_entry *proc_netfilter;
1: + const struct nf_queue_handler *queue_handler;
1: + const struct nf_logger *nf_loggers[13];
1: + struct ctl_table_header *nf_log_dir_header;
1: + struct nf_hook_entries *hooks_ipv4[5];
1: + struct nf_hook_entries *hooks_ipv6[5];
1: + struct nf_hook_entries *hooks_arp[3];
1: + struct nf_hook_entries *hooks_bridge[5];
1: + struct nf_hook_entries *hooks_decnet[7];
1: + bool defrag_ipv4;
1: + bool defrag_ipv6;
1: };
1:
1: struct ebt_table;
1:
1: struct netns_xt {
1: - struct list_head tables[13];
1: - bool notrack_deprecated_warning;
1: - bool clusterip_deprecated_warning;
1: - struct ebt_table *broute_table;
1: - struct ebt_table *frame_filter;
1: - struct ebt_table *frame_nat;
1: + struct list_head tables[13];
1: + bool notrack_deprecated_warning;
1: + bool clusterip_deprecated_warning;
1: + struct ebt_table *broute_table;
1: + struct ebt_table *frame_filter;
1: + struct ebt_table *frame_nat;
1: };
1:
1: struct nf_generic_net {
1: - unsigned int timeout;
1: + unsigned int timeout;
1: };
1:
1: struct nf_tcp_net {
1: - unsigned int timeouts[14];
1: - int tcp_loose;
1: - int tcp_be_liberal;
1: - int tcp_max_retrans;
1: + unsigned int timeouts[14];
1: + int tcp_loose;
1: + int tcp_be_liberal;
1: + int tcp_max_retrans;
1: };
1:
1: struct nf_udp_net {
1: - unsigned int timeouts[2];
1: + unsigned int timeouts[2];
1: };
1:
1: struct nf_icmp_net {
1: - unsigned int timeout;
1: + unsigned int timeout;
1: };
1:
1: struct nf_dccp_net {
1: - int dccp_loose;
1: - unsigned int dccp_timeout[10];
1: + int dccp_loose;
1: + unsigned int dccp_timeout[10];
1: };
1:
1: struct nf_sctp_net {
1: - unsigned int timeouts[10];
1: + unsigned int timeouts[10];
1: };
1:
1: struct nf_gre_net {
1: - struct list_head keymap_list;
1: - unsigned int timeouts[2];
1: + struct list_head keymap_list;
1: + unsigned int timeouts[2];
1: };
1:
1: struct nf_ip_net {
1: - struct nf_generic_net generic;
1: - struct nf_tcp_net tcp;
1: - struct nf_udp_net udp;
1: - struct nf_icmp_net icmp;
1: - struct nf_icmp_net icmpv6;
1: - struct nf_dccp_net dccp;
1: - struct nf_sctp_net sctp;
1: - struct nf_gre_net gre;
1: + struct nf_generic_net generic;
1: + struct nf_tcp_net tcp;
1: + struct nf_udp_net udp;
1: + struct nf_icmp_net icmp;
1: + struct nf_icmp_net icmpv6;
1: + struct nf_dccp_net dccp;
1: + struct nf_sctp_net sctp;
1: + struct nf_gre_net gre;
1: };
1:
1: struct ct_pcpu;
1: @@ -8998,102 +9098,102 @@ struct nf_ct_event_notifier;
1: struct nf_exp_event_notifier;
1:
1: struct netns_ct {
1: - atomic_t count;
1: - unsigned int expect_count;
1: - struct delayed_work ecache_dwork;
1: - bool ecache_dwork_pending;
1: - bool auto_assign_helper_warned;
1: - struct ctl_table_header *sysctl_header;
1: - unsigned int sysctl_log_invalid;
1: - int sysctl_events;
1: - int sysctl_acct;
1: - int sysctl_auto_assign_helper;
1: - int sysctl_tstamp;
1: - int sysctl_checksum;
1: - struct ct_pcpu *pcpu_lists;
1: - struct ip_conntrack_stat *stat;
1: - struct nf_ct_event_notifier *nf_conntrack_event_cb;
1: - struct nf_exp_event_notifier *nf_expect_event_cb;
1: - struct nf_ip_net nf_ct_proto;
1: - unsigned int labels_used;
1: + atomic_t count;
1: + unsigned int expect_count;
1: + struct delayed_work ecache_dwork;
1: + bool ecache_dwork_pending;
1: + bool auto_assign_helper_warned;
1: + struct ctl_table_header *sysctl_header;
1: + unsigned int sysctl_log_invalid;
1: + int sysctl_events;
1: + int sysctl_acct;
1: + int sysctl_auto_assign_helper;
1: + int sysctl_tstamp;
1: + int sysctl_checksum;
1: + struct ct_pcpu *pcpu_lists;
1: + struct ip_conntrack_stat *stat;
1: + struct nf_ct_event_notifier *nf_conntrack_event_cb;
1: + struct nf_exp_event_notifier *nf_expect_event_cb;
1: + struct nf_ip_net nf_ct_proto;
1: + unsigned int labels_used;
1: };
1:
1: struct netns_nftables {
1: - struct list_head tables;
1: - struct list_head commit_list;
1: - struct list_head module_list;
1: - struct list_head notify_list;
1: - struct mutex commit_mutex;
1: - unsigned int base_seq;
1: - u8 gencursor;
1: - u8 validate_state;
1: + struct list_head tables;
1: + struct list_head commit_list;
1: + struct list_head module_list;
1: + struct list_head notify_list;
1: + struct mutex commit_mutex;
1: + unsigned int base_seq;
1: + u8 gencursor;
1: + u8 validate_state;
1: };
1:
1: struct netns_nf_frag {
1: - struct fqdir *fqdir;
1: + struct fqdir *fqdir;
1: };
1:
1: struct netns_bpf {
1: - struct bpf_prog_array *run_array[2];
1: - struct bpf_prog *progs[2];
1: - struct list_head links[2];
1: + struct bpf_prog_array *run_array[2];
1: + struct bpf_prog *progs[2];
1: + struct list_head links[2];
1: };
1:
1: struct xfrm_policy_hash {
1: - struct hlist_head *table;
1: - unsigned int hmask;
1: - u8 dbits4;
1: - u8 sbits4;
1: - u8 dbits6;
1: - u8 sbits6;
1: + struct hlist_head *table;
1: + unsigned int hmask;
1: + u8 dbits4;
1: + u8 sbits4;
1: + u8 dbits6;
1: + u8 sbits6;
1: };
1:
1: struct xfrm_policy_hthresh {
1: - struct work_struct work;
1: - seqlock_t lock;
1: - u8 lbits4;
1: - u8 rbits4;
1: - u8 lbits6;
1: - u8 rbits6;
1: + struct work_struct work;
1: + seqlock_t lock;
1: + u8 lbits4;
1: + u8 rbits4;
1: + u8 lbits6;
1: + u8 rbits6;
1: };
1:
1: struct netns_xfrm {
1: - struct list_head state_all;
1: - struct hlist_head *state_bydst;
1: - struct hlist_head *state_bysrc;
1: - struct hlist_head *state_byspi;
1: - unsigned int state_hmask;
1: - unsigned int state_num;
1: - struct work_struct state_hash_work;
1: - struct list_head policy_all;
1: - struct hlist_head *policy_byidx;
1: - unsigned int policy_idx_hmask;
1: - struct hlist_head policy_inexact[3];
1: - struct xfrm_policy_hash policy_bydst[3];
1: - unsigned int policy_count[6];
1: - struct work_struct policy_hash_work;
1: - struct xfrm_policy_hthresh policy_hthresh;
1: - struct list_head inexact_bins;
1: - struct sock *nlsk;
1: - struct sock *nlsk_stash;
1: - u32 sysctl_aevent_etime;
1: - u32 sysctl_aevent_rseqth;
1: - int sysctl_larval_drop;
1: - u32 sysctl_acq_expires;
1: - struct ctl_table_header *sysctl_hdr;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct dst_ops xfrm4_dst_ops;
1: - struct dst_ops xfrm6_dst_ops;
1: - spinlock_t xfrm_state_lock;
1: - spinlock_t xfrm_policy_lock;
1: - struct mutex xfrm_cfg_mutex;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct list_head state_all;
1: + struct hlist_head *state_bydst;
1: + struct hlist_head *state_bysrc;
1: + struct hlist_head *state_byspi;
1: + unsigned int state_hmask;
1: + unsigned int state_num;
1: + struct work_struct state_hash_work;
1: + struct list_head policy_all;
1: + struct hlist_head *policy_byidx;
1: + unsigned int policy_idx_hmask;
1: + struct hlist_head policy_inexact[3];
1: + struct xfrm_policy_hash policy_bydst[3];
1: + unsigned int policy_count[6];
1: + struct work_struct policy_hash_work;
1: + struct xfrm_policy_hthresh policy_hthresh;
1: + struct list_head inexact_bins;
1: + struct sock *nlsk;
1: + struct sock *nlsk_stash;
1: + u32 sysctl_aevent_etime;
1: + u32 sysctl_aevent_rseqth;
1: + int sysctl_larval_drop;
1: + u32 sysctl_acq_expires;
1: + struct ctl_table_header *sysctl_hdr;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct dst_ops xfrm4_dst_ops;
1: + struct dst_ops xfrm6_dst_ops;
1: + spinlock_t xfrm_state_lock;
1: + spinlock_t xfrm_policy_lock;
1: + struct mutex xfrm_cfg_mutex;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct netns_ipvs;
1: @@ -9101,11 +9201,11 @@ struct netns_ipvs;
1: struct mpls_route;
1:
1: struct netns_mpls {
1: - int ip_ttl_propagate;
1: - int default_ttl;
1: - size_t platform_labels;
1: - struct mpls_route **platform_label;
1: - struct ctl_table_header *ctl;
1: + int ip_ttl_propagate;
1: + int default_ttl;
1: + size_t platform_labels;
1: + struct mpls_route **platform_label;
1: + struct ctl_table_header *ctl;
1: };
1:
1: struct can_dev_rcv_lists;
1: @@ -9115,27 +9215,27 @@ struct can_pkg_stats;
1: struct can_rcv_lists_stats;
1:
1: struct netns_can {
1: - struct proc_dir_entry *proc_dir;
1: - struct proc_dir_entry *pde_stats;
1: - struct proc_dir_entry *pde_reset_stats;
1: - struct proc_dir_entry *pde_rcvlist_all;
1: - struct proc_dir_entry *pde_rcvlist_fil;
1: - struct proc_dir_entry *pde_rcvlist_inv;
1: - struct proc_dir_entry *pde_rcvlist_sff;
1: - struct proc_dir_entry *pde_rcvlist_eff;
1: - struct proc_dir_entry *pde_rcvlist_err;
1: - struct proc_dir_entry *bcmproc_dir;
1: - struct can_dev_rcv_lists *rx_alldev_list;
1: - spinlock_t rcvlists_lock;
1: - struct timer_list stattimer;
1: - struct can_pkg_stats *pkg_stats;
1: - struct can_rcv_lists_stats *rcv_lists_stats;
1: - struct hlist_head cgw_list;
1: + struct proc_dir_entry *proc_dir;
1: + struct proc_dir_entry *pde_stats;
1: + struct proc_dir_entry *pde_reset_stats;
1: + struct proc_dir_entry *pde_rcvlist_all;
1: + struct proc_dir_entry *pde_rcvlist_fil;
1: + struct proc_dir_entry *pde_rcvlist_inv;
1: + struct proc_dir_entry *pde_rcvlist_sff;
1: + struct proc_dir_entry *pde_rcvlist_eff;
1: + struct proc_dir_entry *pde_rcvlist_err;
1: + struct proc_dir_entry *bcmproc_dir;
1: + struct can_dev_rcv_lists *rx_alldev_list;
1: + spinlock_t rcvlists_lock;
1: + struct timer_list stattimer;
1: + struct can_pkg_stats *pkg_stats;
1: + struct can_rcv_lists_stats *rcv_lists_stats;
1: + struct hlist_head cgw_list;
1: };
1:
1: struct netns_xdp {
1: - struct mutex lock;
1: - struct hlist_head list;
1: + struct mutex lock;
1: + struct hlist_head list;
1: };
1:
1: struct uevent_sock;
1: @@ -9143,380 +9243,380 @@ struct uevent_sock;
1: struct net_generic;
1:
1: struct net {
1: - refcount_t passive;
1: - refcount_t count;
1: - spinlock_t rules_mod_lock;
1: - unsigned int dev_unreg_count;
1: - unsigned int dev_base_seq;
1: - int ifindex;
1: - spinlock_t nsid_lock;
1: - atomic_t fnhe_genid;
1: - struct list_head list;
1: - struct list_head exit_list;
1: - struct llist_node cleanup_list;
1: - struct key_tag *key_domain;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - struct idr netns_ids;
1: - struct ns_common ns;
1: - struct list_head dev_base_head;
1: - struct proc_dir_entry *proc_net;
1: - struct proc_dir_entry *proc_net_stat;
1: - struct ctl_table_set sysctls;
1: - struct sock *rtnl;
1: - struct sock *genl_sock;
1: - struct uevent_sock *uevent_sock;
1: - struct hlist_head *dev_name_head;
1: - struct hlist_head *dev_index_head;
1: - struct raw_notifier_head netdev_chain;
1: - u32 hash_mix;
1: - struct net_device *loopback_dev;
1: - struct list_head rules_ops;
1: - struct netns_core core;
1: - struct netns_mib mib;
1: - struct netns_packet packet;
1: - struct netns_unix unx;
1: - struct netns_nexthop nexthop;
1: - long: 64;
1: - struct netns_ipv4 ipv4;
1: - struct netns_ipv6 ipv6;
1: - struct netns_ieee802154_lowpan ieee802154_lowpan;
1: - struct netns_sctp sctp;
1: - struct netns_dccp dccp;
1: - struct netns_nf nf;
1: - struct netns_xt xt;
1: - struct netns_ct ct;
1: - struct netns_nftables nft;
1: - struct netns_nf_frag nf_frag;
1: - struct ctl_table_header *nf_frag_frags_hdr;
1: - struct sock *nfnl;
1: - struct sock *nfnl_stash;
1: - struct list_head nfnl_acct_list;
1: - struct list_head nfct_timeout_list;
1: - struct sk_buff_head wext_nlevents;
1: - struct net_generic *gen;
1: - struct netns_bpf bpf;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct netns_xfrm xfrm;
1: - atomic64_t net_cookie;
1: - struct netns_ipvs *ipvs;
1: - struct netns_mpls mpls;
1: - struct netns_can can;
1: - struct netns_xdp xdp;
1: - struct sock *crypto_nlsk;
1: - struct sock *diag_nlsk;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + refcount_t passive;
1: + refcount_t count;
1: + spinlock_t rules_mod_lock;
1: + unsigned int dev_unreg_count;
1: + unsigned int dev_base_seq;
1: + int ifindex;
1: + spinlock_t nsid_lock;
1: + atomic_t fnhe_genid;
1: + struct list_head list;
1: + struct list_head exit_list;
1: + struct llist_node cleanup_list;
1: + struct key_tag *key_domain;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct idr netns_ids;
1: + struct ns_common ns;
1: + struct list_head dev_base_head;
1: + struct proc_dir_entry *proc_net;
1: + struct proc_dir_entry *proc_net_stat;
1: + struct ctl_table_set sysctls;
1: + struct sock *rtnl;
1: + struct sock *genl_sock;
1: + struct uevent_sock *uevent_sock;
1: + struct hlist_head *dev_name_head;
1: + struct hlist_head *dev_index_head;
1: + struct raw_notifier_head netdev_chain;
1: + u32 hash_mix;
1: + struct net_device *loopback_dev;
1: + struct list_head rules_ops;
1: + struct netns_core core;
1: + struct netns_mib mib;
1: + struct netns_packet packet;
1: + struct netns_unix unx;
1: + struct netns_nexthop nexthop;
1: + long : 64;
1: + struct netns_ipv4 ipv4;
1: + struct netns_ipv6 ipv6;
1: + struct netns_ieee802154_lowpan ieee802154_lowpan;
1: + struct netns_sctp sctp;
1: + struct netns_dccp dccp;
1: + struct netns_nf nf;
1: + struct netns_xt xt;
1: + struct netns_ct ct;
1: + struct netns_nftables nft;
1: + struct netns_nf_frag nf_frag;
1: + struct ctl_table_header *nf_frag_frags_hdr;
1: + struct sock *nfnl;
1: + struct sock *nfnl_stash;
1: + struct list_head nfnl_acct_list;
1: + struct list_head nfct_timeout_list;
1: + struct sk_buff_head wext_nlevents;
1: + struct net_generic *gen;
1: + struct netns_bpf bpf;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct netns_xfrm xfrm;
1: + atomic64_t net_cookie;
1: + struct netns_ipvs *ipvs;
1: + struct netns_mpls mpls;
1: + struct netns_can can;
1: + struct netns_xdp xdp;
1: + struct sock *crypto_nlsk;
1: + struct sock *diag_nlsk;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef struct {
1: - local64_t v;
1: + local64_t v;
1: } u64_stats_t;
1:
1: struct bpf_insn {
1: - __u8 code;
1: - __u8 dst_reg: 4;
1: - __u8 src_reg: 4;
1: - __s16 off;
1: - __s32 imm;
1: + __u8 code;
1: + __u8 dst_reg : 4;
1: + __u8 src_reg : 4;
1: + __s16 off;
1: + __s32 imm;
1: };
1:
1: enum bpf_map_type {
1: - BPF_MAP_TYPE_UNSPEC = 0,
1: - BPF_MAP_TYPE_HASH = 1,
1: - BPF_MAP_TYPE_ARRAY = 2,
1: - BPF_MAP_TYPE_PROG_ARRAY = 3,
1: - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4,
1: - BPF_MAP_TYPE_PERCPU_HASH = 5,
1: - BPF_MAP_TYPE_PERCPU_ARRAY = 6,
1: - BPF_MAP_TYPE_STACK_TRACE = 7,
1: - BPF_MAP_TYPE_CGROUP_ARRAY = 8,
1: - BPF_MAP_TYPE_LRU_HASH = 9,
1: - BPF_MAP_TYPE_LRU_PERCPU_HASH = 10,
1: - BPF_MAP_TYPE_LPM_TRIE = 11,
1: - BPF_MAP_TYPE_ARRAY_OF_MAPS = 12,
1: - BPF_MAP_TYPE_HASH_OF_MAPS = 13,
1: - BPF_MAP_TYPE_DEVMAP = 14,
1: - BPF_MAP_TYPE_SOCKMAP = 15,
1: - BPF_MAP_TYPE_CPUMAP = 16,
1: - BPF_MAP_TYPE_XSKMAP = 17,
1: - BPF_MAP_TYPE_SOCKHASH = 18,
1: - BPF_MAP_TYPE_CGROUP_STORAGE = 19,
1: - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20,
1: - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21,
1: - BPF_MAP_TYPE_QUEUE = 22,
1: - BPF_MAP_TYPE_STACK = 23,
1: - BPF_MAP_TYPE_SK_STORAGE = 24,
1: - BPF_MAP_TYPE_DEVMAP_HASH = 25,
1: - BPF_MAP_TYPE_STRUCT_OPS = 26,
1: - BPF_MAP_TYPE_RINGBUF = 27,
1: - BPF_MAP_TYPE_INODE_STORAGE = 28,
1: + BPF_MAP_TYPE_UNSPEC = 0,
1: + BPF_MAP_TYPE_HASH = 1,
1: + BPF_MAP_TYPE_ARRAY = 2,
1: + BPF_MAP_TYPE_PROG_ARRAY = 3,
1: + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4,
1: + BPF_MAP_TYPE_PERCPU_HASH = 5,
1: + BPF_MAP_TYPE_PERCPU_ARRAY = 6,
1: + BPF_MAP_TYPE_STACK_TRACE = 7,
1: + BPF_MAP_TYPE_CGROUP_ARRAY = 8,
1: + BPF_MAP_TYPE_LRU_HASH = 9,
1: + BPF_MAP_TYPE_LRU_PERCPU_HASH = 10,
1: + BPF_MAP_TYPE_LPM_TRIE = 11,
1: + BPF_MAP_TYPE_ARRAY_OF_MAPS = 12,
1: + BPF_MAP_TYPE_HASH_OF_MAPS = 13,
1: + BPF_MAP_TYPE_DEVMAP = 14,
1: + BPF_MAP_TYPE_SOCKMAP = 15,
1: + BPF_MAP_TYPE_CPUMAP = 16,
1: + BPF_MAP_TYPE_XSKMAP = 17,
1: + BPF_MAP_TYPE_SOCKHASH = 18,
1: + BPF_MAP_TYPE_CGROUP_STORAGE = 19,
1: + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20,
1: + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21,
1: + BPF_MAP_TYPE_QUEUE = 22,
1: + BPF_MAP_TYPE_STACK = 23,
1: + BPF_MAP_TYPE_SK_STORAGE = 24,
1: + BPF_MAP_TYPE_DEVMAP_HASH = 25,
1: + BPF_MAP_TYPE_STRUCT_OPS = 26,
1: + BPF_MAP_TYPE_RINGBUF = 27,
1: + BPF_MAP_TYPE_INODE_STORAGE = 28,
1: };
1:
1: enum bpf_prog_type {
1: - BPF_PROG_TYPE_UNSPEC = 0,
1: - BPF_PROG_TYPE_SOCKET_FILTER = 1,
1: - BPF_PROG_TYPE_KPROBE = 2,
1: - BPF_PROG_TYPE_SCHED_CLS = 3,
1: - BPF_PROG_TYPE_SCHED_ACT = 4,
1: - BPF_PROG_TYPE_TRACEPOINT = 5,
1: - BPF_PROG_TYPE_XDP = 6,
1: - BPF_PROG_TYPE_PERF_EVENT = 7,
1: - BPF_PROG_TYPE_CGROUP_SKB = 8,
1: - BPF_PROG_TYPE_CGROUP_SOCK = 9,
1: - BPF_PROG_TYPE_LWT_IN = 10,
1: - BPF_PROG_TYPE_LWT_OUT = 11,
1: - BPF_PROG_TYPE_LWT_XMIT = 12,
1: - BPF_PROG_TYPE_SOCK_OPS = 13,
1: - BPF_PROG_TYPE_SK_SKB = 14,
1: - BPF_PROG_TYPE_CGROUP_DEVICE = 15,
1: - BPF_PROG_TYPE_SK_MSG = 16,
1: - BPF_PROG_TYPE_RAW_TRACEPOINT = 17,
1: - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18,
1: - BPF_PROG_TYPE_LWT_SEG6LOCAL = 19,
1: - BPF_PROG_TYPE_LIRC_MODE2 = 20,
1: - BPF_PROG_TYPE_SK_REUSEPORT = 21,
1: - BPF_PROG_TYPE_FLOW_DISSECTOR = 22,
1: - BPF_PROG_TYPE_CGROUP_SYSCTL = 23,
1: - BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 24,
1: - BPF_PROG_TYPE_CGROUP_SOCKOPT = 25,
1: - BPF_PROG_TYPE_TRACING = 26,
1: - BPF_PROG_TYPE_STRUCT_OPS = 27,
1: - BPF_PROG_TYPE_EXT = 28,
1: - BPF_PROG_TYPE_LSM = 29,
1: - BPF_PROG_TYPE_SK_LOOKUP = 30,
1: + BPF_PROG_TYPE_UNSPEC = 0,
1: + BPF_PROG_TYPE_SOCKET_FILTER = 1,
1: + BPF_PROG_TYPE_KPROBE = 2,
1: + BPF_PROG_TYPE_SCHED_CLS = 3,
1: + BPF_PROG_TYPE_SCHED_ACT = 4,
1: + BPF_PROG_TYPE_TRACEPOINT = 5,
1: + BPF_PROG_TYPE_XDP = 6,
1: + BPF_PROG_TYPE_PERF_EVENT = 7,
1: + BPF_PROG_TYPE_CGROUP_SKB = 8,
1: + BPF_PROG_TYPE_CGROUP_SOCK = 9,
1: + BPF_PROG_TYPE_LWT_IN = 10,
1: + BPF_PROG_TYPE_LWT_OUT = 11,
1: + BPF_PROG_TYPE_LWT_XMIT = 12,
1: + BPF_PROG_TYPE_SOCK_OPS = 13,
1: + BPF_PROG_TYPE_SK_SKB = 14,
1: + BPF_PROG_TYPE_CGROUP_DEVICE = 15,
1: + BPF_PROG_TYPE_SK_MSG = 16,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT = 17,
1: + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18,
1: + BPF_PROG_TYPE_LWT_SEG6LOCAL = 19,
1: + BPF_PROG_TYPE_LIRC_MODE2 = 20,
1: + BPF_PROG_TYPE_SK_REUSEPORT = 21,
1: + BPF_PROG_TYPE_FLOW_DISSECTOR = 22,
1: + BPF_PROG_TYPE_CGROUP_SYSCTL = 23,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 24,
1: + BPF_PROG_TYPE_CGROUP_SOCKOPT = 25,
1: + BPF_PROG_TYPE_TRACING = 26,
1: + BPF_PROG_TYPE_STRUCT_OPS = 27,
1: + BPF_PROG_TYPE_EXT = 28,
1: + BPF_PROG_TYPE_LSM = 29,
1: + BPF_PROG_TYPE_SK_LOOKUP = 30,
1: };
1:
1: enum bpf_attach_type {
1: - BPF_CGROUP_INET_INGRESS = 0,
1: - BPF_CGROUP_INET_EGRESS = 1,
1: - BPF_CGROUP_INET_SOCK_CREATE = 2,
1: - BPF_CGROUP_SOCK_OPS = 3,
1: - BPF_SK_SKB_STREAM_PARSER = 4,
1: - BPF_SK_SKB_STREAM_VERDICT = 5,
1: - BPF_CGROUP_DEVICE = 6,
1: - BPF_SK_MSG_VERDICT = 7,
1: - BPF_CGROUP_INET4_BIND = 8,
1: - BPF_CGROUP_INET6_BIND = 9,
1: - BPF_CGROUP_INET4_CONNECT = 10,
1: - BPF_CGROUP_INET6_CONNECT = 11,
1: - BPF_CGROUP_INET4_POST_BIND = 12,
1: - BPF_CGROUP_INET6_POST_BIND = 13,
1: - BPF_CGROUP_UDP4_SENDMSG = 14,
1: - BPF_CGROUP_UDP6_SENDMSG = 15,
1: - BPF_LIRC_MODE2 = 16,
1: - BPF_FLOW_DISSECTOR = 17,
1: - BPF_CGROUP_SYSCTL = 18,
1: - BPF_CGROUP_UDP4_RECVMSG = 19,
1: - BPF_CGROUP_UDP6_RECVMSG = 20,
1: - BPF_CGROUP_GETSOCKOPT = 21,
1: - BPF_CGROUP_SETSOCKOPT = 22,
1: - BPF_TRACE_RAW_TP = 23,
1: - BPF_TRACE_FENTRY = 24,
1: - BPF_TRACE_FEXIT = 25,
1: - BPF_MODIFY_RETURN = 26,
1: - BPF_LSM_MAC = 27,
1: - BPF_TRACE_ITER = 28,
1: - BPF_CGROUP_INET4_GETPEERNAME = 29,
1: - BPF_CGROUP_INET6_GETPEERNAME = 30,
1: - BPF_CGROUP_INET4_GETSOCKNAME = 31,
1: - BPF_CGROUP_INET6_GETSOCKNAME = 32,
1: - BPF_XDP_DEVMAP = 33,
1: - BPF_CGROUP_INET_SOCK_RELEASE = 34,
1: - BPF_XDP_CPUMAP = 35,
1: - BPF_SK_LOOKUP = 36,
1: - BPF_XDP = 37,
1: - __MAX_BPF_ATTACH_TYPE = 38,
1: + BPF_CGROUP_INET_INGRESS = 0,
1: + BPF_CGROUP_INET_EGRESS = 1,
1: + BPF_CGROUP_INET_SOCK_CREATE = 2,
1: + BPF_CGROUP_SOCK_OPS = 3,
1: + BPF_SK_SKB_STREAM_PARSER = 4,
1: + BPF_SK_SKB_STREAM_VERDICT = 5,
1: + BPF_CGROUP_DEVICE = 6,
1: + BPF_SK_MSG_VERDICT = 7,
1: + BPF_CGROUP_INET4_BIND = 8,
1: + BPF_CGROUP_INET6_BIND = 9,
1: + BPF_CGROUP_INET4_CONNECT = 10,
1: + BPF_CGROUP_INET6_CONNECT = 11,
1: + BPF_CGROUP_INET4_POST_BIND = 12,
1: + BPF_CGROUP_INET6_POST_BIND = 13,
1: + BPF_CGROUP_UDP4_SENDMSG = 14,
1: + BPF_CGROUP_UDP6_SENDMSG = 15,
1: + BPF_LIRC_MODE2 = 16,
1: + BPF_FLOW_DISSECTOR = 17,
1: + BPF_CGROUP_SYSCTL = 18,
1: + BPF_CGROUP_UDP4_RECVMSG = 19,
1: + BPF_CGROUP_UDP6_RECVMSG = 20,
1: + BPF_CGROUP_GETSOCKOPT = 21,
1: + BPF_CGROUP_SETSOCKOPT = 22,
1: + BPF_TRACE_RAW_TP = 23,
1: + BPF_TRACE_FENTRY = 24,
1: + BPF_TRACE_FEXIT = 25,
1: + BPF_MODIFY_RETURN = 26,
1: + BPF_LSM_MAC = 27,
1: + BPF_TRACE_ITER = 28,
1: + BPF_CGROUP_INET4_GETPEERNAME = 29,
1: + BPF_CGROUP_INET6_GETPEERNAME = 30,
1: + BPF_CGROUP_INET4_GETSOCKNAME = 31,
1: + BPF_CGROUP_INET6_GETSOCKNAME = 32,
1: + BPF_XDP_DEVMAP = 33,
1: + BPF_CGROUP_INET_SOCK_RELEASE = 34,
1: + BPF_XDP_CPUMAP = 35,
1: + BPF_SK_LOOKUP = 36,
1: + BPF_XDP = 37,
1: + __MAX_BPF_ATTACH_TYPE = 38,
1: };
1:
1: union bpf_attr {
1: - struct {
1: - __u32 map_type;
1: - __u32 key_size;
1: - __u32 value_size;
1: - __u32 max_entries;
1: - __u32 map_flags;
1: - __u32 inner_map_fd;
1: - __u32 numa_node;
1: - char map_name[16];
1: - __u32 map_ifindex;
1: - __u32 btf_fd;
1: - __u32 btf_key_type_id;
1: - __u32 btf_value_type_id;
1: - __u32 btf_vmlinux_value_type_id;
1: - };
1: - struct {
1: - __u32 map_fd;
1: - __u64 key;
1: - union {
1: - __u64 value;
1: - __u64 next_key;
1: - };
1: - __u64 flags;
1: - };
1: - struct {
1: - __u64 in_batch;
1: - __u64 out_batch;
1: - __u64 keys;
1: - __u64 values;
1: - __u32 count;
1: - __u32 map_fd;
1: - __u64 elem_flags;
1: - __u64 flags;
1: - } batch;
1: - struct {
1: - __u32 prog_type;
1: - __u32 insn_cnt;
1: - __u64 insns;
1: - __u64 license;
1: - __u32 log_level;
1: - __u32 log_size;
1: - __u64 log_buf;
1: - __u32 kern_version;
1: - __u32 prog_flags;
1: - char prog_name[16];
1: - __u32 prog_ifindex;
1: - __u32 expected_attach_type;
1: - __u32 prog_btf_fd;
1: - __u32 func_info_rec_size;
1: - __u64 func_info;
1: - __u32 func_info_cnt;
1: - __u32 line_info_rec_size;
1: - __u64 line_info;
1: - __u32 line_info_cnt;
1: - __u32 attach_btf_id;
1: - __u32 attach_prog_fd;
1: - };
1: - struct {
1: - __u64 pathname;
1: - __u32 bpf_fd;
1: - __u32 file_flags;
1: - };
1: - struct {
1: - __u32 target_fd;
1: - __u32 attach_bpf_fd;
1: - __u32 attach_type;
1: - __u32 attach_flags;
1: - __u32 replace_bpf_fd;
1: - };
1: - struct {
1: - __u32 prog_fd;
1: - __u32 retval;
1: - __u32 data_size_in;
1: - __u32 data_size_out;
1: - __u64 data_in;
1: - __u64 data_out;
1: - __u32 repeat;
1: - __u32 duration;
1: - __u32 ctx_size_in;
1: - __u32 ctx_size_out;
1: - __u64 ctx_in;
1: - __u64 ctx_out;
1: - __u32 flags;
1: - __u32 cpu;
1: - } test;
1: - struct {
1: - union {
1: - __u32 start_id;
1: - __u32 prog_id;
1: - __u32 map_id;
1: - __u32 btf_id;
1: - __u32 link_id;
1: - };
1: - __u32 next_id;
1: - __u32 open_flags;
1: - };
1: - struct {
1: - __u32 bpf_fd;
1: - __u32 info_len;
1: - __u64 info;
1: - } info;
1: - struct {
1: - __u32 target_fd;
1: - __u32 attach_type;
1: - __u32 query_flags;
1: - __u32 attach_flags;
1: - __u64 prog_ids;
1: - __u32 prog_cnt;
1: - } query;
1: - struct {
1: - __u64 name;
1: - __u32 prog_fd;
1: - } raw_tracepoint;
1: - struct {
1: - __u64 btf;
1: - __u64 btf_log_buf;
1: - __u32 btf_size;
1: - __u32 btf_log_size;
1: - __u32 btf_log_level;
1: - };
1: - struct {
1: - __u32 pid;
1: - __u32 fd;
1: - __u32 flags;
1: - __u32 buf_len;
1: - __u64 buf;
1: - __u32 prog_id;
1: - __u32 fd_type;
1: - __u64 probe_offset;
1: - __u64 probe_addr;
1: - } task_fd_query;
1: - struct {
1: - __u32 prog_fd;
1: - union {
1: - __u32 target_fd;
1: - __u32 target_ifindex;
1: - };
1: - __u32 attach_type;
1: - __u32 flags;
1: - union {
1: - __u32 target_btf_id;
1: - struct {
1: - __u64 iter_info;
1: - __u32 iter_info_len;
1: - };
1: - };
1: - } link_create;
1: - struct {
1: - __u32 link_fd;
1: - __u32 new_prog_fd;
1: - __u32 flags;
1: - __u32 old_prog_fd;
1: - } link_update;
1: - struct {
1: - __u32 link_fd;
1: - } link_detach;
1: - struct {
1: - __u32 type;
1: - } enable_stats;
1: - struct {
1: - __u32 link_fd;
1: - __u32 flags;
1: - } iter_create;
1: - struct {
1: - __u32 prog_fd;
1: - __u32 map_fd;
1: - __u32 flags;
1: - } prog_bind_map;
1: + struct {
1: + __u32 map_type;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + __u32 inner_map_fd;
1: + __u32 numa_node;
1: + char map_name[16];
1: + __u32 map_ifindex;
1: + __u32 btf_fd;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: + __u32 btf_vmlinux_value_type_id;
1: + };
1: + struct {
1: + __u32 map_fd;
1: + __u64 key;
1: + union {
1: + __u64 value;
1: + __u64 next_key;
1: + };
1: + __u64 flags;
1: + };
1: + struct {
1: + __u64 in_batch;
1: + __u64 out_batch;
1: + __u64 keys;
1: + __u64 values;
1: + __u32 count;
1: + __u32 map_fd;
1: + __u64 elem_flags;
1: + __u64 flags;
1: + } batch;
1: + struct {
1: + __u32 prog_type;
1: + __u32 insn_cnt;
1: + __u64 insns;
1: + __u64 license;
1: + __u32 log_level;
1: + __u32 log_size;
1: + __u64 log_buf;
1: + __u32 kern_version;
1: + __u32 prog_flags;
1: + char prog_name[16];
1: + __u32 prog_ifindex;
1: + __u32 expected_attach_type;
1: + __u32 prog_btf_fd;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 func_info_cnt;
1: + __u32 line_info_rec_size;
1: + __u64 line_info;
1: + __u32 line_info_cnt;
1: + __u32 attach_btf_id;
1: + __u32 attach_prog_fd;
1: + };
1: + struct {
1: + __u64 pathname;
1: + __u32 bpf_fd;
1: + __u32 file_flags;
1: + };
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_bpf_fd;
1: + __u32 attach_type;
1: + __u32 attach_flags;
1: + __u32 replace_bpf_fd;
1: + };
1: + struct {
1: + __u32 prog_fd;
1: + __u32 retval;
1: + __u32 data_size_in;
1: + __u32 data_size_out;
1: + __u64 data_in;
1: + __u64 data_out;
1: + __u32 repeat;
1: + __u32 duration;
1: + __u32 ctx_size_in;
1: + __u32 ctx_size_out;
1: + __u64 ctx_in;
1: + __u64 ctx_out;
1: + __u32 flags;
1: + __u32 cpu;
1: + } test;
1: + struct {
1: + union {
1: + __u32 start_id;
1: + __u32 prog_id;
1: + __u32 map_id;
1: + __u32 btf_id;
1: + __u32 link_id;
1: + };
1: + __u32 next_id;
1: + __u32 open_flags;
1: + };
1: + struct {
1: + __u32 bpf_fd;
1: + __u32 info_len;
1: + __u64 info;
1: + } info;
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_type;
1: + __u32 query_flags;
1: + __u32 attach_flags;
1: + __u64 prog_ids;
1: + __u32 prog_cnt;
1: + } query;
1: + struct {
1: + __u64 name;
1: + __u32 prog_fd;
1: + } raw_tracepoint;
1: + struct {
1: + __u64 btf;
1: + __u64 btf_log_buf;
1: + __u32 btf_size;
1: + __u32 btf_log_size;
1: + __u32 btf_log_level;
1: + };
1: + struct {
1: + __u32 pid;
1: + __u32 fd;
1: + __u32 flags;
1: + __u32 buf_len;
1: + __u64 buf;
1: + __u32 prog_id;
1: + __u32 fd_type;
1: + __u64 probe_offset;
1: + __u64 probe_addr;
1: + } task_fd_query;
1: + struct {
1: + __u32 prog_fd;
1: + union {
1: + __u32 target_fd;
1: + __u32 target_ifindex;
1: + };
1: + __u32 attach_type;
1: + __u32 flags;
1: + union {
1: + __u32 target_btf_id;
1: + struct {
1: + __u64 iter_info;
1: + __u32 iter_info_len;
1: + };
1: + };
1: + } link_create;
1: + struct {
1: + __u32 link_fd;
1: + __u32 new_prog_fd;
1: + __u32 flags;
1: + __u32 old_prog_fd;
1: + } link_update;
1: + struct {
1: + __u32 link_fd;
1: + } link_detach;
1: + struct {
1: + __u32 type;
1: + } enable_stats;
1: + struct {
1: + __u32 link_fd;
1: + __u32 flags;
1: + } iter_create;
1: + struct {
1: + __u32 prog_fd;
1: + __u32 map_fd;
1: + __u32 flags;
1: + } prog_bind_map;
1: };
1:
1: struct bpf_func_info {
1: - __u32 insn_off;
1: - __u32 type_id;
1: + __u32 insn_off;
1: + __u32 type_id;
1: };
1:
1: struct bpf_line_info {
1: - __u32 insn_off;
1: - __u32 file_name_off;
1: - __u32 line_off;
1: - __u32 line_col;
1: + __u32 insn_off;
1: + __u32 file_name_off;
1: + __u32 line_off;
1: + __u32 line_col;
1: };
1:
1: struct bpf_iter_aux_info;
1: @@ -9526,16 +9626,16 @@ typedef int (*bpf_iter_init_seq_priv_t)(void *, struct bpf_iter_aux_info *);
1: struct bpf_map;
1:
1: struct bpf_iter_aux_info {
1: - struct bpf_map *map;
1: + struct bpf_map *map;
1: };
1:
1: typedef void (*bpf_iter_fini_seq_priv_t)(void *);
1:
1: struct bpf_iter_seq_info {
1: - const struct seq_operations *seq_ops;
1: - bpf_iter_init_seq_priv_t init_seq_private;
1: - bpf_iter_fini_seq_priv_t fini_seq_private;
1: - u32 seq_priv_size;
1: + const struct seq_operations *seq_ops;
1: + bpf_iter_init_seq_priv_t init_seq_private;
1: + bpf_iter_fini_seq_priv_t fini_seq_private;
1: + u32 seq_priv_size;
1: };
1:
1: struct btf;
1: @@ -9547,136 +9647,144 @@ struct bpf_prog_aux;
1: struct bpf_local_storage_map;
1:
1: struct bpf_map_ops {
1: - int (*map_alloc_check)(union bpf_attr *);
1: - struct bpf_map * (*map_alloc)(union bpf_attr *);
1: - void (*map_release)(struct bpf_map *, struct file *);
1: - void (*map_free)(struct bpf_map *);
1: - int (*map_get_next_key)(struct bpf_map *, void *, void *);
1: - void (*map_release_uref)(struct bpf_map *);
1: - void * (*map_lookup_elem_sys_only)(struct bpf_map *, void *);
1: - int (*map_lookup_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: - int (*map_lookup_and_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: - int (*map_update_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: - int (*map_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: - void * (*map_lookup_elem)(struct bpf_map *, void *);
1: - int (*map_update_elem)(struct bpf_map *, void *, void *, u64);
1: - int (*map_delete_elem)(struct bpf_map *, void *);
1: - int (*map_push_elem)(struct bpf_map *, void *, u64);
1: - int (*map_pop_elem)(struct bpf_map *, void *);
1: - int (*map_peek_elem)(struct bpf_map *, void *);
1: - void * (*map_fd_get_ptr)(struct bpf_map *, struct file *, int);
1: - void (*map_fd_put_ptr)(void *);
1: - int (*map_gen_lookup)(struct bpf_map *, struct bpf_insn *);
1: - u32 (*map_fd_sys_lookup_elem)(void *);
1: - void (*map_seq_show_elem)(struct bpf_map *, void *, struct seq_file *);
1: - int (*map_check_btf)(const struct bpf_map *, const struct btf *, const struct btf_type *, const struct btf_type *);
1: - int (*map_poke_track)(struct bpf_map *, struct bpf_prog_aux *);
1: - void (*map_poke_untrack)(struct bpf_map *, struct bpf_prog_aux *);
1: - void (*map_poke_run)(struct bpf_map *, u32, struct bpf_prog *, struct bpf_prog *);
1: - int (*map_direct_value_addr)(const struct bpf_map *, u64 *, u32);
1: - int (*map_direct_value_meta)(const struct bpf_map *, u64, u32 *);
1: - int (*map_mmap)(struct bpf_map *, struct vm_area_struct *);
1: - __poll_t (*map_poll)(struct bpf_map *, struct file *, struct poll_table_struct *);
1: - int (*map_local_storage_charge)(struct bpf_local_storage_map *, void *, u32);
1: - void (*map_local_storage_uncharge)(struct bpf_local_storage_map *, void *, u32);
1: - struct bpf_local_storage ** (*map_owner_storage_ptr)(void *);
1: - bool (*map_meta_equal)(const struct bpf_map *, const struct bpf_map *);
1: - const char * const map_btf_name;
1: - int *map_btf_id;
1: - const struct bpf_iter_seq_info *iter_seq_info;
1: + int (*map_alloc_check)(union bpf_attr *);
1: + struct bpf_map *(*map_alloc)(union bpf_attr *);
1: + void (*map_release)(struct bpf_map *, struct file *);
1: + void (*map_free)(struct bpf_map *);
1: + int (*map_get_next_key)(struct bpf_map *, void *, void *);
1: + void (*map_release_uref)(struct bpf_map *);
1: + void *(*map_lookup_elem_sys_only)(struct bpf_map *, void *);
1: + int (*map_lookup_batch)(struct bpf_map *, const union bpf_attr *,
1: + union bpf_attr *);
1: + int (*map_lookup_and_delete_batch)(struct bpf_map *, const union bpf_attr *,
1: + union bpf_attr *);
1: + int (*map_update_batch)(struct bpf_map *, const union bpf_attr *,
1: + union bpf_attr *);
1: + int (*map_delete_batch)(struct bpf_map *, const union bpf_attr *,
1: + union bpf_attr *);
1: + void *(*map_lookup_elem)(struct bpf_map *, void *);
1: + int (*map_update_elem)(struct bpf_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_map *, void *);
1: + int (*map_push_elem)(struct bpf_map *, void *, u64);
1: + int (*map_pop_elem)(struct bpf_map *, void *);
1: + int (*map_peek_elem)(struct bpf_map *, void *);
1: + void *(*map_fd_get_ptr)(struct bpf_map *, struct file *, int);
1: + void (*map_fd_put_ptr)(void *);
1: + int (*map_gen_lookup)(struct bpf_map *, struct bpf_insn *);
1: + u32 (*map_fd_sys_lookup_elem)(void *);
1: + void (*map_seq_show_elem)(struct bpf_map *, void *, struct seq_file *);
1: + int (*map_check_btf)(const struct bpf_map *, const struct btf *,
1: + const struct btf_type *, const struct btf_type *);
1: + int (*map_poke_track)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_untrack)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_run)(struct bpf_map *, u32, struct bpf_prog *,
1: + struct bpf_prog *);
1: + int (*map_direct_value_addr)(const struct bpf_map *, u64 *, u32);
1: + int (*map_direct_value_meta)(const struct bpf_map *, u64, u32 *);
1: + int (*map_mmap)(struct bpf_map *, struct vm_area_struct *);
1: + __poll_t (*map_poll)(struct bpf_map *, struct file *,
1: + struct poll_table_struct *);
1: + int (*map_local_storage_charge)(struct bpf_local_storage_map *, void *, u32);
1: + void (*map_local_storage_uncharge)(struct bpf_local_storage_map *, void *,
1: + u32);
1: + struct bpf_local_storage **(*map_owner_storage_ptr)(void *);
1: + bool (*map_meta_equal)(const struct bpf_map *, const struct bpf_map *);
1: + const char *const map_btf_name;
1: + int *map_btf_id;
1: + const struct bpf_iter_seq_info *iter_seq_info;
1: };
1:
1: struct bpf_map_memory {
1: - u32 pages;
1: - struct user_struct *user;
1: + u32 pages;
1: + struct user_struct *user;
1: };
1:
1: struct bpf_map {
1: - const struct bpf_map_ops *ops;
1: - struct bpf_map *inner_map_meta;
1: - void *security;
1: - enum bpf_map_type map_type;
1: - u32 key_size;
1: - u32 value_size;
1: - u32 max_entries;
1: - u32 map_flags;
1: - int spin_lock_off;
1: - u32 id;
1: - int numa_node;
1: - u32 btf_key_type_id;
1: - u32 btf_value_type_id;
1: - struct btf *btf;
1: - struct bpf_map_memory memory;
1: - char name[16];
1: - u32 btf_vmlinux_value_type_id;
1: - bool bypass_spec_v1;
1: - bool frozen;
1: - long: 16;
1: - long: 64;
1: - long: 64;
1: - atomic64_t refcnt;
1: - atomic64_t usercnt;
1: - struct work_struct work;
1: - struct mutex freeze_mutex;
1: - u64 writecnt;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + const struct bpf_map_ops *ops;
1: + struct bpf_map *inner_map_meta;
1: + void *security;
1: + enum bpf_map_type map_type;
1: + u32 key_size;
1: + u32 value_size;
1: + u32 max_entries;
1: + u32 map_flags;
1: + int spin_lock_off;
1: + u32 id;
1: + int numa_node;
1: + u32 btf_key_type_id;
1: + u32 btf_value_type_id;
1: + struct btf *btf;
1: + struct bpf_map_memory memory;
1: + char name[16];
1: + u32 btf_vmlinux_value_type_id;
1: + bool bypass_spec_v1;
1: + bool frozen;
1: + long : 16;
1: + long : 64;
1: + long : 64;
1: + atomic64_t refcnt;
1: + atomic64_t usercnt;
1: + struct work_struct work;
1: + struct mutex freeze_mutex;
1: + u64 writecnt;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct btf_header {
1: - __u16 magic;
1: - __u8 version;
1: - __u8 flags;
1: - __u32 hdr_len;
1: - __u32 type_off;
1: - __u32 type_len;
1: - __u32 str_off;
1: - __u32 str_len;
1: + __u16 magic;
1: + __u8 version;
1: + __u8 flags;
1: + __u32 hdr_len;
1: + __u32 type_off;
1: + __u32 type_len;
1: + __u32 str_off;
1: + __u32 str_len;
1: };
1:
1: struct btf {
1: - void *data;
1: - struct btf_type **types;
1: - u32 *resolved_ids;
1: - u32 *resolved_sizes;
1: - const char *strings;
1: - void *nohdr_data;
1: - struct btf_header hdr;
1: - u32 nr_types;
1: - u32 types_size;
1: - u32 data_size;
1: - refcount_t refcnt;
1: - u32 id;
1: - struct callback_head rcu;
1: + void *data;
1: + struct btf_type **types;
1: + u32 *resolved_ids;
1: + u32 *resolved_sizes;
1: + const char *strings;
1: + void *nohdr_data;
1: + struct btf_header hdr;
1: + u32 nr_types;
1: + u32 types_size;
1: + u32 data_size;
1: + refcount_t refcnt;
1: + u32 id;
1: + struct callback_head rcu;
1: };
1:
1: struct btf_type {
1: - __u32 name_off;
1: - __u32 info;
1: - union {
1: - __u32 size;
1: - __u32 type;
1: - };
1: + __u32 name_off;
1: + __u32 info;
1: + union {
1: + __u32 size;
1: + __u32 type;
1: + };
1: };
1:
1: enum bpf_tramp_prog_type {
1: - BPF_TRAMP_FENTRY = 0,
1: - BPF_TRAMP_FEXIT = 1,
1: - BPF_TRAMP_MODIFY_RETURN = 2,
1: - BPF_TRAMP_MAX = 3,
1: - BPF_TRAMP_REPLACE = 4,
1: + BPF_TRAMP_FENTRY = 0,
1: + BPF_TRAMP_FEXIT = 1,
1: + BPF_TRAMP_MODIFY_RETURN = 2,
1: + BPF_TRAMP_MAX = 3,
1: + BPF_TRAMP_REPLACE = 4,
1: };
1:
1: struct bpf_ksym {
1: - long unsigned int start;
1: - long unsigned int end;
1: - char name[128];
1: - struct list_head lnode;
1: - struct latch_tree_node tnode;
1: - bool prog;
1: + long unsigned int start;
1: + long unsigned int end;
1: + char name[128];
1: + struct list_head lnode;
1: + struct latch_tree_node tnode;
1: + bool prog;
1: };
1:
1: struct bpf_ctx_arg_aux;
1: @@ -9694,150 +9802,150 @@ struct bpf_func_info_aux;
1: struct bpf_prog_stats;
1:
1: struct bpf_prog_aux {
1: - atomic64_t refcnt;
1: - u32 used_map_cnt;
1: - u32 max_ctx_offset;
1: - u32 max_pkt_offset;
1: - u32 max_tp_access;
1: - u32 stack_depth;
1: - u32 id;
1: - u32 func_cnt;
1: - u32 func_idx;
1: - u32 attach_btf_id;
1: - u32 ctx_arg_info_size;
1: - u32 max_rdonly_access;
1: - u32 max_rdwr_access;
1: - const struct bpf_ctx_arg_aux *ctx_arg_info;
1: - struct mutex dst_mutex;
1: - struct bpf_prog *dst_prog;
1: - struct bpf_trampoline *dst_trampoline;
1: - enum bpf_prog_type saved_dst_prog_type;
1: - enum bpf_attach_type saved_dst_attach_type;
1: - bool verifier_zext;
1: - bool offload_requested;
1: - bool attach_btf_trace;
1: - bool func_proto_unreliable;
1: - bool sleepable;
1: - bool tail_call_reachable;
1: - enum bpf_tramp_prog_type trampoline_prog_type;
1: - struct hlist_node tramp_hlist;
1: - const struct btf_type *attach_func_proto;
1: - const char *attach_func_name;
1: - struct bpf_prog **func;
1: - void *jit_data;
1: - struct bpf_jit_poke_descriptor *poke_tab;
1: - u32 size_poke_tab;
1: - struct bpf_ksym ksym;
1: - const struct bpf_prog_ops *ops;
1: - struct bpf_map **used_maps;
1: - struct mutex used_maps_mutex;
1: - struct bpf_prog *prog;
1: - struct user_struct *user;
1: - u64 load_time;
1: - struct bpf_map *cgroup_storage[2];
1: - char name[16];
1: - void *security;
1: - struct bpf_prog_offload *offload;
1: - struct btf *btf;
1: - struct bpf_func_info *func_info;
1: - struct bpf_func_info_aux *func_info_aux;
1: - struct bpf_line_info *linfo;
1: - void **jited_linfo;
1: - u32 func_info_cnt;
1: - u32 nr_linfo;
1: - u32 linfo_idx;
1: - u32 num_exentries;
1: - struct exception_table_entry *extable;
1: - struct bpf_prog_stats *stats;
1: - union {
1: - struct work_struct work;
1: - struct callback_head rcu;
1: - };
1: + atomic64_t refcnt;
1: + u32 used_map_cnt;
1: + u32 max_ctx_offset;
1: + u32 max_pkt_offset;
1: + u32 max_tp_access;
1: + u32 stack_depth;
1: + u32 id;
1: + u32 func_cnt;
1: + u32 func_idx;
1: + u32 attach_btf_id;
1: + u32 ctx_arg_info_size;
1: + u32 max_rdonly_access;
1: + u32 max_rdwr_access;
1: + const struct bpf_ctx_arg_aux *ctx_arg_info;
1: + struct mutex dst_mutex;
1: + struct bpf_prog *dst_prog;
1: + struct bpf_trampoline *dst_trampoline;
1: + enum bpf_prog_type saved_dst_prog_type;
1: + enum bpf_attach_type saved_dst_attach_type;
1: + bool verifier_zext;
1: + bool offload_requested;
1: + bool attach_btf_trace;
1: + bool func_proto_unreliable;
1: + bool sleepable;
1: + bool tail_call_reachable;
1: + enum bpf_tramp_prog_type trampoline_prog_type;
1: + struct hlist_node tramp_hlist;
1: + const struct btf_type *attach_func_proto;
1: + const char *attach_func_name;
1: + struct bpf_prog **func;
1: + void *jit_data;
1: + struct bpf_jit_poke_descriptor *poke_tab;
1: + u32 size_poke_tab;
1: + struct bpf_ksym ksym;
1: + const struct bpf_prog_ops *ops;
1: + struct bpf_map **used_maps;
1: + struct mutex used_maps_mutex;
1: + struct bpf_prog *prog;
1: + struct user_struct *user;
1: + u64 load_time;
1: + struct bpf_map *cgroup_storage[2];
1: + char name[16];
1: + void *security;
1: + struct bpf_prog_offload *offload;
1: + struct btf *btf;
1: + struct bpf_func_info *func_info;
1: + struct bpf_func_info_aux *func_info_aux;
1: + struct bpf_line_info *linfo;
1: + void **jited_linfo;
1: + u32 func_info_cnt;
1: + u32 nr_linfo;
1: + u32 linfo_idx;
1: + u32 num_exentries;
1: + struct exception_table_entry *extable;
1: + struct bpf_prog_stats *stats;
1: + union {
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + };
1: };
1:
1: struct sock_filter {
1: - __u16 code;
1: - __u8 jt;
1: - __u8 jf;
1: - __u32 k;
1: + __u16 code;
1: + __u8 jt;
1: + __u8 jf;
1: + __u32 k;
1: };
1:
1: struct sock_fprog_kern;
1:
1: struct bpf_prog {
1: - u16 pages;
1: - u16 jited: 1;
1: - u16 jit_requested: 1;
1: - u16 gpl_compatible: 1;
1: - u16 cb_access: 1;
1: - u16 dst_needed: 1;
1: - u16 blinded: 1;
1: - u16 is_func: 1;
1: - u16 kprobe_override: 1;
1: - u16 has_callchain_buf: 1;
1: - u16 enforce_expected_attach_type: 1;
1: - u16 call_get_stack: 1;
1: - enum bpf_prog_type type;
1: - enum bpf_attach_type expected_attach_type;
1: - u32 len;
1: - u32 jited_len;
1: - u8 tag[8];
1: - struct bpf_prog_aux *aux;
1: - struct sock_fprog_kern *orig_prog;
1: - unsigned int (*bpf_func)(const void *, const struct bpf_insn *);
1: - struct sock_filter insns[0];
1: - struct bpf_insn insnsi[0];
1: + u16 pages;
1: + u16 jited : 1;
1: + u16 jit_requested : 1;
1: + u16 gpl_compatible : 1;
1: + u16 cb_access : 1;
1: + u16 dst_needed : 1;
1: + u16 blinded : 1;
1: + u16 is_func : 1;
1: + u16 kprobe_override : 1;
1: + u16 has_callchain_buf : 1;
1: + u16 enforce_expected_attach_type : 1;
1: + u16 call_get_stack : 1;
1: + enum bpf_prog_type type;
1: + enum bpf_attach_type expected_attach_type;
1: + u32 len;
1: + u32 jited_len;
1: + u8 tag[8];
1: + struct bpf_prog_aux *aux;
1: + struct sock_fprog_kern *orig_prog;
1: + unsigned int (*bpf_func)(const void *, const struct bpf_insn *);
1: + struct sock_filter insns[0];
1: + struct bpf_insn insnsi[0];
1: };
1:
1: struct bpf_offloaded_map;
1:
1: struct bpf_map_dev_ops {
1: - int (*map_get_next_key)(struct bpf_offloaded_map *, void *, void *);
1: - int (*map_lookup_elem)(struct bpf_offloaded_map *, void *, void *);
1: - int (*map_update_elem)(struct bpf_offloaded_map *, void *, void *, u64);
1: - int (*map_delete_elem)(struct bpf_offloaded_map *, void *);
1: + int (*map_get_next_key)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_lookup_elem)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_update_elem)(struct bpf_offloaded_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_offloaded_map *, void *);
1: };
1:
1: struct bpf_offloaded_map {
1: - struct bpf_map map;
1: - struct net_device *netdev;
1: - const struct bpf_map_dev_ops *dev_ops;
1: - void *dev_priv;
1: - struct list_head offloads;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct net_device *netdev;
1: + const struct bpf_map_dev_ops *dev_ops;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct net_device_stats {
1: - long unsigned int rx_packets;
1: - long unsigned int tx_packets;
1: - long unsigned int rx_bytes;
1: - long unsigned int tx_bytes;
1: - long unsigned int rx_errors;
1: - long unsigned int tx_errors;
1: - long unsigned int rx_dropped;
1: - long unsigned int tx_dropped;
1: - long unsigned int multicast;
1: - long unsigned int collisions;
1: - long unsigned int rx_length_errors;
1: - long unsigned int rx_over_errors;
1: - long unsigned int rx_crc_errors;
1: - long unsigned int rx_frame_errors;
1: - long unsigned int rx_fifo_errors;
1: - long unsigned int rx_missed_errors;
1: - long unsigned int tx_aborted_errors;
1: - long unsigned int tx_carrier_errors;
1: - long unsigned int tx_fifo_errors;
1: - long unsigned int tx_heartbeat_errors;
1: - long unsigned int tx_window_errors;
1: - long unsigned int rx_compressed;
1: - long unsigned int tx_compressed;
1: + long unsigned int rx_packets;
1: + long unsigned int tx_packets;
1: + long unsigned int rx_bytes;
1: + long unsigned int tx_bytes;
1: + long unsigned int rx_errors;
1: + long unsigned int tx_errors;
1: + long unsigned int rx_dropped;
1: + long unsigned int tx_dropped;
1: + long unsigned int multicast;
1: + long unsigned int collisions;
1: + long unsigned int rx_length_errors;
1: + long unsigned int rx_over_errors;
1: + long unsigned int rx_crc_errors;
1: + long unsigned int rx_frame_errors;
1: + long unsigned int rx_fifo_errors;
1: + long unsigned int rx_missed_errors;
1: + long unsigned int tx_aborted_errors;
1: + long unsigned int tx_carrier_errors;
1: + long unsigned int tx_fifo_errors;
1: + long unsigned int tx_heartbeat_errors;
1: + long unsigned int tx_window_errors;
1: + long unsigned int rx_compressed;
1: + long unsigned int tx_compressed;
1: };
1:
1: struct netdev_hw_addr_list {
1: - struct list_head list;
1: - int count;
1: + struct list_head list;
1: + int count;
1: };
1:
1: struct tipc_bearer;
1: @@ -9847,10 +9955,10 @@ struct dn_dev;
1: struct mpls_dev;
1:
1: enum rx_handler_result {
1: - RX_HANDLER_CONSUMED = 0,
1: - RX_HANDLER_ANOTHER = 1,
1: - RX_HANDLER_EXACT = 2,
1: - RX_HANDLER_PASS = 3,
1: + RX_HANDLER_CONSUMED = 0,
1: + RX_HANDLER_ANOTHER = 1,
1: + RX_HANDLER_EXACT = 2,
1: + RX_HANDLER_PASS = 3,
1: };
1:
1: typedef enum rx_handler_result rx_handler_result_t;
1: @@ -9864,8 +9972,8 @@ struct garp_port;
1: struct mrp_port;
1:
1: struct netdev_tc_txq {
1: - u16 count;
1: - u16 offset;
1: + u16 count;
1: + u16 offset;
1: };
1:
1: struct macsec_ops;
1: @@ -9875,8 +9983,8 @@ struct udp_tunnel_nic;
1: struct bpf_xdp_link;
1:
1: struct bpf_xdp_entity {
1: - struct bpf_prog *prog;
1: - struct bpf_xdp_link *link;
1: + struct bpf_prog *prog;
1: + struct bpf_xdp_link *link;
1: };
1:
1: struct netdev_name_node;
1: @@ -9946,288 +10054,288 @@ struct sfp_bus;
1: struct udp_tunnel_nic_info;
1:
1: struct net_device {
1: - char name[16];
1: - struct netdev_name_node *name_node;
1: - struct dev_ifalias *ifalias;
1: - long unsigned int mem_end;
1: - long unsigned int mem_start;
1: - long unsigned int base_addr;
1: - int irq;
1: - long unsigned int state;
1: - struct list_head dev_list;
1: - struct list_head napi_list;
1: - struct list_head unreg_list;
1: - struct list_head close_list;
1: - struct list_head ptype_all;
1: - struct list_head ptype_specific;
1: - struct {
1: - struct list_head upper;
1: - struct list_head lower;
1: - } adj_list;
1: - netdev_features_t features;
1: - netdev_features_t hw_features;
1: - netdev_features_t wanted_features;
1: - netdev_features_t vlan_features;
1: - netdev_features_t hw_enc_features;
1: - netdev_features_t mpls_features;
1: - netdev_features_t gso_partial_features;
1: - int ifindex;
1: - int group;
1: - struct net_device_stats stats;
1: - atomic_long_t rx_dropped;
1: - atomic_long_t tx_dropped;
1: - atomic_long_t rx_nohandler;
1: - atomic_t carrier_up_count;
1: - atomic_t carrier_down_count;
1: - const struct iw_handler_def *wireless_handlers;
1: - struct iw_public_data *wireless_data;
1: - const struct net_device_ops *netdev_ops;
1: - const struct ethtool_ops *ethtool_ops;
1: - const struct l3mdev_ops *l3mdev_ops;
1: - const struct ndisc_ops *ndisc_ops;
1: - const struct xfrmdev_ops *xfrmdev_ops;
1: - const struct tlsdev_ops *tlsdev_ops;
1: - const struct header_ops *header_ops;
1: - unsigned int flags;
1: - unsigned int priv_flags;
1: - short unsigned int gflags;
1: - short unsigned int padded;
1: - unsigned char operstate;
1: - unsigned char link_mode;
1: - unsigned char if_port;
1: - unsigned char dma;
1: - unsigned int mtu;
1: - unsigned int min_mtu;
1: - unsigned int max_mtu;
1: - short unsigned int type;
1: - short unsigned int hard_header_len;
1: - unsigned char min_header_len;
1: - unsigned char name_assign_type;
1: - short unsigned int needed_headroom;
1: - short unsigned int needed_tailroom;
1: - unsigned char perm_addr[32];
1: - unsigned char addr_assign_type;
1: - unsigned char addr_len;
1: - unsigned char upper_level;
1: - unsigned char lower_level;
1: - short unsigned int neigh_priv_len;
1: - short unsigned int dev_id;
1: - short unsigned int dev_port;
1: - spinlock_t addr_list_lock;
1: - struct netdev_hw_addr_list uc;
1: - struct netdev_hw_addr_list mc;
1: - struct netdev_hw_addr_list dev_addrs;
1: - struct kset *queues_kset;
1: - unsigned int promiscuity;
1: - unsigned int allmulti;
1: - bool uc_promisc;
1: - struct vlan_info *vlan_info;
1: - struct dsa_port *dsa_ptr;
1: - struct tipc_bearer *tipc_ptr;
1: - void *atalk_ptr;
1: - struct in_device *ip_ptr;
1: - struct dn_dev *dn_ptr;
1: - struct inet6_dev *ip6_ptr;
1: - void *ax25_ptr;
1: - struct wireless_dev *ieee80211_ptr;
1: - struct wpan_dev *ieee802154_ptr;
1: - struct mpls_dev *mpls_ptr;
1: - unsigned char *dev_addr;
1: - struct netdev_rx_queue *_rx;
1: - unsigned int num_rx_queues;
1: - unsigned int real_num_rx_queues;
1: - struct bpf_prog *xdp_prog;
1: - long unsigned int gro_flush_timeout;
1: - int napi_defer_hard_irqs;
1: - rx_handler_func_t *rx_handler;
1: - void *rx_handler_data;
1: - struct mini_Qdisc *miniq_ingress;
1: - struct netdev_queue *ingress_queue;
1: - struct nf_hook_entries *nf_hooks_ingress;
1: - unsigned char broadcast[32];
1: - struct cpu_rmap *rx_cpu_rmap;
1: - struct hlist_node index_hlist;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct netdev_queue *_tx;
1: - unsigned int num_tx_queues;
1: - unsigned int real_num_tx_queues;
1: - struct Qdisc *qdisc;
1: - unsigned int tx_queue_len;
1: - spinlock_t tx_global_lock;
1: - struct xdp_dev_bulk_queue *xdp_bulkq;
1: - struct xps_dev_maps *xps_cpus_map;
1: - struct xps_dev_maps *xps_rxqs_map;
1: - struct mini_Qdisc *miniq_egress;
1: - struct hlist_head qdisc_hash[16];
1: - struct timer_list watchdog_timer;
1: - int watchdog_timeo;
1: - u32 proto_down_reason;
1: - struct list_head todo_list;
1: - int *pcpu_refcnt;
1: - struct list_head link_watch_list;
1: - enum {
1: - NETREG_UNINITIALIZED = 0,
1: - NETREG_REGISTERED = 1,
1: - NETREG_UNREGISTERING = 2,
1: - NETREG_UNREGISTERED = 3,
1: - NETREG_RELEASED = 4,
1: - NETREG_DUMMY = 5,
1: - } reg_state: 8;
1: - bool dismantle;
1: - enum {
1: - RTNL_LINK_INITIALIZED = 0,
1: - RTNL_LINK_INITIALIZING = 1,
1: - } rtnl_link_state: 16;
1: - bool needs_free_netdev;
1: - void (*priv_destructor)(struct net_device *);
1: - struct netpoll_info *npinfo;
1: - possible_net_t nd_net;
1: - union {
1: - void *ml_priv;
1: - struct pcpu_lstats *lstats;
1: - struct pcpu_sw_netstats *tstats;
1: - struct pcpu_dstats *dstats;
1: - };
1: - struct garp_port *garp_port;
1: - struct mrp_port *mrp_port;
1: - struct device dev;
1: - const struct attribute_group *sysfs_groups[4];
1: - const struct attribute_group *sysfs_rx_queue_group;
1: - const struct rtnl_link_ops *rtnl_link_ops;
1: - unsigned int gso_max_size;
1: - u16 gso_max_segs;
1: - const struct dcbnl_rtnl_ops *dcbnl_ops;
1: - s16 num_tc;
1: - struct netdev_tc_txq tc_to_txq[16];
1: - u8 prio_tc_map[16];
1: - unsigned int fcoe_ddp_xid;
1: - struct netprio_map *priomap;
1: - struct phy_device *phydev;
1: - struct sfp_bus *sfp_bus;
1: - struct lock_class_key *qdisc_tx_busylock;
1: - struct lock_class_key *qdisc_running_key;
1: - bool proto_down;
1: - unsigned int wol_enabled: 1;
1: - struct list_head net_notifier_list;
1: - const struct macsec_ops *macsec_ops;
1: - const struct udp_tunnel_nic_info *udp_tunnel_nic_info;
1: - struct udp_tunnel_nic *udp_tunnel_nic;
1: - struct bpf_xdp_entity xdp_state[3];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + char name[16];
1: + struct netdev_name_node *name_node;
1: + struct dev_ifalias *ifalias;
1: + long unsigned int mem_end;
1: + long unsigned int mem_start;
1: + long unsigned int base_addr;
1: + int irq;
1: + long unsigned int state;
1: + struct list_head dev_list;
1: + struct list_head napi_list;
1: + struct list_head unreg_list;
1: + struct list_head close_list;
1: + struct list_head ptype_all;
1: + struct list_head ptype_specific;
1: + struct {
1: + struct list_head upper;
1: + struct list_head lower;
1: + } adj_list;
1: + netdev_features_t features;
1: + netdev_features_t hw_features;
1: + netdev_features_t wanted_features;
1: + netdev_features_t vlan_features;
1: + netdev_features_t hw_enc_features;
1: + netdev_features_t mpls_features;
1: + netdev_features_t gso_partial_features;
1: + int ifindex;
1: + int group;
1: + struct net_device_stats stats;
1: + atomic_long_t rx_dropped;
1: + atomic_long_t tx_dropped;
1: + atomic_long_t rx_nohandler;
1: + atomic_t carrier_up_count;
1: + atomic_t carrier_down_count;
1: + const struct iw_handler_def *wireless_handlers;
1: + struct iw_public_data *wireless_data;
1: + const struct net_device_ops *netdev_ops;
1: + const struct ethtool_ops *ethtool_ops;
1: + const struct l3mdev_ops *l3mdev_ops;
1: + const struct ndisc_ops *ndisc_ops;
1: + const struct xfrmdev_ops *xfrmdev_ops;
1: + const struct tlsdev_ops *tlsdev_ops;
1: + const struct header_ops *header_ops;
1: + unsigned int flags;
1: + unsigned int priv_flags;
1: + short unsigned int gflags;
1: + short unsigned int padded;
1: + unsigned char operstate;
1: + unsigned char link_mode;
1: + unsigned char if_port;
1: + unsigned char dma;
1: + unsigned int mtu;
1: + unsigned int min_mtu;
1: + unsigned int max_mtu;
1: + short unsigned int type;
1: + short unsigned int hard_header_len;
1: + unsigned char min_header_len;
1: + unsigned char name_assign_type;
1: + short unsigned int needed_headroom;
1: + short unsigned int needed_tailroom;
1: + unsigned char perm_addr[32];
1: + unsigned char addr_assign_type;
1: + unsigned char addr_len;
1: + unsigned char upper_level;
1: + unsigned char lower_level;
1: + short unsigned int neigh_priv_len;
1: + short unsigned int dev_id;
1: + short unsigned int dev_port;
1: + spinlock_t addr_list_lock;
1: + struct netdev_hw_addr_list uc;
1: + struct netdev_hw_addr_list mc;
1: + struct netdev_hw_addr_list dev_addrs;
1: + struct kset *queues_kset;
1: + unsigned int promiscuity;
1: + unsigned int allmulti;
1: + bool uc_promisc;
1: + struct vlan_info *vlan_info;
1: + struct dsa_port *dsa_ptr;
1: + struct tipc_bearer *tipc_ptr;
1: + void *atalk_ptr;
1: + struct in_device *ip_ptr;
1: + struct dn_dev *dn_ptr;
1: + struct inet6_dev *ip6_ptr;
1: + void *ax25_ptr;
1: + struct wireless_dev *ieee80211_ptr;
1: + struct wpan_dev *ieee802154_ptr;
1: + struct mpls_dev *mpls_ptr;
1: + unsigned char *dev_addr;
1: + struct netdev_rx_queue *_rx;
1: + unsigned int num_rx_queues;
1: + unsigned int real_num_rx_queues;
1: + struct bpf_prog *xdp_prog;
1: + long unsigned int gro_flush_timeout;
1: + int napi_defer_hard_irqs;
1: + rx_handler_func_t *rx_handler;
1: + void *rx_handler_data;
1: + struct mini_Qdisc *miniq_ingress;
1: + struct netdev_queue *ingress_queue;
1: + struct nf_hook_entries *nf_hooks_ingress;
1: + unsigned char broadcast[32];
1: + struct cpu_rmap *rx_cpu_rmap;
1: + struct hlist_node index_hlist;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct netdev_queue *_tx;
1: + unsigned int num_tx_queues;
1: + unsigned int real_num_tx_queues;
1: + struct Qdisc *qdisc;
1: + unsigned int tx_queue_len;
1: + spinlock_t tx_global_lock;
1: + struct xdp_dev_bulk_queue *xdp_bulkq;
1: + struct xps_dev_maps *xps_cpus_map;
1: + struct xps_dev_maps *xps_rxqs_map;
1: + struct mini_Qdisc *miniq_egress;
1: + struct hlist_head qdisc_hash[16];
1: + struct timer_list watchdog_timer;
1: + int watchdog_timeo;
1: + u32 proto_down_reason;
1: + struct list_head todo_list;
1: + int *pcpu_refcnt;
1: + struct list_head link_watch_list;
1: + enum {
1: + NETREG_UNINITIALIZED = 0,
1: + NETREG_REGISTERED = 1,
1: + NETREG_UNREGISTERING = 2,
1: + NETREG_UNREGISTERED = 3,
1: + NETREG_RELEASED = 4,
1: + NETREG_DUMMY = 5,
1: + } reg_state : 8;
1: + bool dismantle;
1: + enum {
1: + RTNL_LINK_INITIALIZED = 0,
1: + RTNL_LINK_INITIALIZING = 1,
1: + } rtnl_link_state : 16;
1: + bool needs_free_netdev;
1: + void (*priv_destructor)(struct net_device *);
1: + struct netpoll_info *npinfo;
1: + possible_net_t nd_net;
1: + union {
1: + void *ml_priv;
1: + struct pcpu_lstats *lstats;
1: + struct pcpu_sw_netstats *tstats;
1: + struct pcpu_dstats *dstats;
1: + };
1: + struct garp_port *garp_port;
1: + struct mrp_port *mrp_port;
1: + struct device dev;
1: + const struct attribute_group *sysfs_groups[4];
1: + const struct attribute_group *sysfs_rx_queue_group;
1: + const struct rtnl_link_ops *rtnl_link_ops;
1: + unsigned int gso_max_size;
1: + u16 gso_max_segs;
1: + const struct dcbnl_rtnl_ops *dcbnl_ops;
1: + s16 num_tc;
1: + struct netdev_tc_txq tc_to_txq[16];
1: + u8 prio_tc_map[16];
1: + unsigned int fcoe_ddp_xid;
1: + struct netprio_map *priomap;
1: + struct phy_device *phydev;
1: + struct sfp_bus *sfp_bus;
1: + struct lock_class_key *qdisc_tx_busylock;
1: + struct lock_class_key *qdisc_running_key;
1: + bool proto_down;
1: + unsigned int wol_enabled : 1;
1: + struct list_head net_notifier_list;
1: + const struct macsec_ops *macsec_ops;
1: + const struct udp_tunnel_nic_info *udp_tunnel_nic_info;
1: + struct udp_tunnel_nic *udp_tunnel_nic;
1: + struct bpf_xdp_entity xdp_state[3];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum bpf_reg_type {
1: - NOT_INIT = 0,
1: - SCALAR_VALUE = 1,
1: - PTR_TO_CTX = 2,
1: - CONST_PTR_TO_MAP = 3,
1: - PTR_TO_MAP_VALUE = 4,
1: - PTR_TO_MAP_VALUE_OR_NULL = 5,
1: - PTR_TO_STACK = 6,
1: - PTR_TO_PACKET_META = 7,
1: - PTR_TO_PACKET = 8,
1: - PTR_TO_PACKET_END = 9,
1: - PTR_TO_FLOW_KEYS = 10,
1: - PTR_TO_SOCKET = 11,
1: - PTR_TO_SOCKET_OR_NULL = 12,
1: - PTR_TO_SOCK_COMMON = 13,
1: - PTR_TO_SOCK_COMMON_OR_NULL = 14,
1: - PTR_TO_TCP_SOCK = 15,
1: - PTR_TO_TCP_SOCK_OR_NULL = 16,
1: - PTR_TO_TP_BUFFER = 17,
1: - PTR_TO_XDP_SOCK = 18,
1: - PTR_TO_BTF_ID = 19,
1: - PTR_TO_BTF_ID_OR_NULL = 20,
1: - PTR_TO_MEM = 21,
1: - PTR_TO_MEM_OR_NULL = 22,
1: - PTR_TO_RDONLY_BUF = 23,
1: - PTR_TO_RDONLY_BUF_OR_NULL = 24,
1: - PTR_TO_RDWR_BUF = 25,
1: - PTR_TO_RDWR_BUF_OR_NULL = 26,
1: - PTR_TO_PERCPU_BTF_ID = 27,
1: + NOT_INIT = 0,
1: + SCALAR_VALUE = 1,
1: + PTR_TO_CTX = 2,
1: + CONST_PTR_TO_MAP = 3,
1: + PTR_TO_MAP_VALUE = 4,
1: + PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + PTR_TO_STACK = 6,
1: + PTR_TO_PACKET_META = 7,
1: + PTR_TO_PACKET = 8,
1: + PTR_TO_PACKET_END = 9,
1: + PTR_TO_FLOW_KEYS = 10,
1: + PTR_TO_SOCKET = 11,
1: + PTR_TO_SOCKET_OR_NULL = 12,
1: + PTR_TO_SOCK_COMMON = 13,
1: + PTR_TO_SOCK_COMMON_OR_NULL = 14,
1: + PTR_TO_TCP_SOCK = 15,
1: + PTR_TO_TCP_SOCK_OR_NULL = 16,
1: + PTR_TO_TP_BUFFER = 17,
1: + PTR_TO_XDP_SOCK = 18,
1: + PTR_TO_BTF_ID = 19,
1: + PTR_TO_BTF_ID_OR_NULL = 20,
1: + PTR_TO_MEM = 21,
1: + PTR_TO_MEM_OR_NULL = 22,
1: + PTR_TO_RDONLY_BUF = 23,
1: + PTR_TO_RDONLY_BUF_OR_NULL = 24,
1: + PTR_TO_RDWR_BUF = 25,
1: + PTR_TO_RDWR_BUF_OR_NULL = 26,
1: + PTR_TO_PERCPU_BTF_ID = 27,
1: };
1:
1: struct bpf_prog_ops {
1: - int (*test_run)(struct bpf_prog *, const union bpf_attr *, union bpf_attr *);
1: + int (*test_run)(struct bpf_prog *, const union bpf_attr *, union bpf_attr *);
1: };
1:
1: struct bpf_offload_dev;
1:
1: struct bpf_prog_offload {
1: - struct bpf_prog *prog;
1: - struct net_device *netdev;
1: - struct bpf_offload_dev *offdev;
1: - void *dev_priv;
1: - struct list_head offloads;
1: - bool dev_state;
1: - bool opt_failed;
1: - void *jited_image;
1: - u32 jited_len;
1: + struct bpf_prog *prog;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + bool dev_state;
1: + bool opt_failed;
1: + void *jited_image;
1: + u32 jited_len;
1: };
1:
1: struct bpf_prog_stats {
1: - u64 cnt;
1: - u64 nsecs;
1: - struct u64_stats_sync syncp;
1: + u64 cnt;
1: + u64 nsecs;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct btf_func_model {
1: - u8 ret_size;
1: - u8 nr_args;
1: - u8 arg_size[12];
1: + u8 ret_size;
1: + u8 nr_args;
1: + u8 arg_size[12];
1: };
1:
1: struct bpf_trampoline {
1: - struct hlist_node hlist;
1: - struct mutex mutex;
1: - refcount_t refcnt;
1: - u64 key;
1: - struct {
1: - struct btf_func_model model;
1: - void *addr;
1: - bool ftrace_managed;
1: - } func;
1: - struct bpf_prog *extension_prog;
1: - struct hlist_head progs_hlist[3];
1: - int progs_cnt[3];
1: - void *image;
1: - u64 selector;
1: - struct bpf_ksym ksym;
1: + struct hlist_node hlist;
1: + struct mutex mutex;
1: + refcount_t refcnt;
1: + u64 key;
1: + struct {
1: + struct btf_func_model model;
1: + void *addr;
1: + bool ftrace_managed;
1: + } func;
1: + struct bpf_prog *extension_prog;
1: + struct hlist_head progs_hlist[3];
1: + int progs_cnt[3];
1: + void *image;
1: + u64 selector;
1: + struct bpf_ksym ksym;
1: };
1:
1: struct bpf_func_info_aux {
1: - u16 linkage;
1: - bool unreliable;
1: + u16 linkage;
1: + bool unreliable;
1: };
1:
1: struct bpf_jit_poke_descriptor {
1: - void *tailcall_target;
1: - void *tailcall_bypass;
1: - void *bypass_addr;
1: - union {
1: - struct {
1: - struct bpf_map *map;
1: - u32 key;
1: - } tail_call;
1: - };
1: - bool tailcall_target_stable;
1: - u8 adj_off;
1: - u16 reason;
1: - u32 insn_idx;
1: + void *tailcall_target;
1: + void *tailcall_bypass;
1: + void *bypass_addr;
1: + union {
1: + struct {
1: + struct bpf_map *map;
1: + u32 key;
1: + } tail_call;
1: + };
1: + bool tailcall_target_stable;
1: + u8 adj_off;
1: + u16 reason;
1: + u32 insn_idx;
1: };
1:
1: struct bpf_ctx_arg_aux {
1: - u32 offset;
1: - enum bpf_reg_type reg_type;
1: - u32 btf_id;
1: + u32 offset;
1: + enum bpf_reg_type reg_type;
1: + u32 btf_id;
1: };
1:
1: typedef unsigned int sk_buff_data_t;
1: @@ -10235,344 +10343,344 @@ typedef unsigned int sk_buff_data_t;
1: struct skb_ext;
1:
1: struct sk_buff {
1: - union {
1: - struct {
1: - struct sk_buff *next;
1: - struct sk_buff *prev;
1: - union {
1: - struct net_device *dev;
1: - long unsigned int dev_scratch;
1: - };
1: - };
1: - struct rb_node rbnode;
1: - struct list_head list;
1: - };
1: - union {
1: - struct sock *sk;
1: - int ip_defrag_offset;
1: - };
1: - union {
1: - ktime_t tstamp;
1: - u64 skb_mstamp_ns;
1: - };
1: - char cb[48];
1: - union {
1: - struct {
1: - long unsigned int _skb_refdst;
1: - void (*destructor)(struct sk_buff *);
1: - };
1: - struct list_head tcp_tsorted_anchor;
1: - };
1: - long unsigned int _nfct;
1: - unsigned int len;
1: - unsigned int data_len;
1: - __u16 mac_len;
1: - __u16 hdr_len;
1: - __u16 queue_mapping;
1: - __u8 __cloned_offset[0];
1: - __u8 cloned: 1;
1: - __u8 nohdr: 1;
1: - __u8 fclone: 2;
1: - __u8 peeked: 1;
1: - __u8 head_frag: 1;
1: - __u8 pfmemalloc: 1;
1: - __u8 active_extensions;
1: - __u32 headers_start[0];
1: - __u8 __pkt_type_offset[0];
1: - __u8 pkt_type: 3;
1: - __u8 ignore_df: 1;
1: - __u8 nf_trace: 1;
1: - __u8 ip_summed: 2;
1: - __u8 ooo_okay: 1;
1: - __u8 l4_hash: 1;
1: - __u8 sw_hash: 1;
1: - __u8 wifi_acked_valid: 1;
1: - __u8 wifi_acked: 1;
1: - __u8 no_fcs: 1;
1: - __u8 encapsulation: 1;
1: - __u8 encap_hdr_csum: 1;
1: - __u8 csum_valid: 1;
1: - __u8 __pkt_vlan_present_offset[0];
1: - __u8 vlan_present: 1;
1: - __u8 csum_complete_sw: 1;
1: - __u8 csum_level: 2;
1: - __u8 csum_not_inet: 1;
1: - __u8 dst_pending_confirm: 1;
1: - __u8 ndisc_nodetype: 2;
1: - __u8 ipvs_property: 1;
1: - __u8 inner_protocol_type: 1;
1: - __u8 remcsum_offload: 1;
1: - __u8 offload_fwd_mark: 1;
1: - __u8 offload_l3_fwd_mark: 1;
1: - __u8 tc_skip_classify: 1;
1: - __u8 tc_at_ingress: 1;
1: - __u8 redirected: 1;
1: - __u8 from_ingress: 1;
1: - __u8 decrypted: 1;
1: - __u16 tc_index;
1: - union {
1: - __wsum csum;
1: - struct {
1: - __u16 csum_start;
1: - __u16 csum_offset;
1: - };
1: - };
1: - __u32 priority;
1: - int skb_iif;
1: - __u32 hash;
1: - __be16 vlan_proto;
1: - __u16 vlan_tci;
1: - union {
1: - unsigned int napi_id;
1: - unsigned int sender_cpu;
1: - };
1: - __u32 secmark;
1: - union {
1: - __u32 mark;
1: - __u32 reserved_tailroom;
1: - };
1: - union {
1: - __be16 inner_protocol;
1: - __u8 inner_ipproto;
1: - };
1: - __u16 inner_transport_header;
1: - __u16 inner_network_header;
1: - __u16 inner_mac_header;
1: - __be16 protocol;
1: - __u16 transport_header;
1: - __u16 network_header;
1: - __u16 mac_header;
1: - __u32 headers_end[0];
1: - sk_buff_data_t tail;
1: - sk_buff_data_t end;
1: - unsigned char *head;
1: - unsigned char *data;
1: - unsigned int truesize;
1: - refcount_t users;
1: - struct skb_ext *extensions;
1: + union {
1: + struct {
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + union {
1: + struct net_device *dev;
1: + long unsigned int dev_scratch;
1: + };
1: + };
1: + struct rb_node rbnode;
1: + struct list_head list;
1: + };
1: + union {
1: + struct sock *sk;
1: + int ip_defrag_offset;
1: + };
1: + union {
1: + ktime_t tstamp;
1: + u64 skb_mstamp_ns;
1: + };
1: + char cb[48];
1: + union {
1: + struct {
1: + long unsigned int _skb_refdst;
1: + void (*destructor)(struct sk_buff *);
1: + };
1: + struct list_head tcp_tsorted_anchor;
1: + };
1: + long unsigned int _nfct;
1: + unsigned int len;
1: + unsigned int data_len;
1: + __u16 mac_len;
1: + __u16 hdr_len;
1: + __u16 queue_mapping;
1: + __u8 __cloned_offset[0];
1: + __u8 cloned : 1;
1: + __u8 nohdr : 1;
1: + __u8 fclone : 2;
1: + __u8 peeked : 1;
1: + __u8 head_frag : 1;
1: + __u8 pfmemalloc : 1;
1: + __u8 active_extensions;
1: + __u32 headers_start[0];
1: + __u8 __pkt_type_offset[0];
1: + __u8 pkt_type : 3;
1: + __u8 ignore_df : 1;
1: + __u8 nf_trace : 1;
1: + __u8 ip_summed : 2;
1: + __u8 ooo_okay : 1;
1: + __u8 l4_hash : 1;
1: + __u8 sw_hash : 1;
1: + __u8 wifi_acked_valid : 1;
1: + __u8 wifi_acked : 1;
1: + __u8 no_fcs : 1;
1: + __u8 encapsulation : 1;
1: + __u8 encap_hdr_csum : 1;
1: + __u8 csum_valid : 1;
1: + __u8 __pkt_vlan_present_offset[0];
1: + __u8 vlan_present : 1;
1: + __u8 csum_complete_sw : 1;
1: + __u8 csum_level : 2;
1: + __u8 csum_not_inet : 1;
1: + __u8 dst_pending_confirm : 1;
1: + __u8 ndisc_nodetype : 2;
1: + __u8 ipvs_property : 1;
1: + __u8 inner_protocol_type : 1;
1: + __u8 remcsum_offload : 1;
1: + __u8 offload_fwd_mark : 1;
1: + __u8 offload_l3_fwd_mark : 1;
1: + __u8 tc_skip_classify : 1;
1: + __u8 tc_at_ingress : 1;
1: + __u8 redirected : 1;
1: + __u8 from_ingress : 1;
1: + __u8 decrypted : 1;
1: + __u16 tc_index;
1: + union {
1: + __wsum csum;
1: + struct {
1: + __u16 csum_start;
1: + __u16 csum_offset;
1: + };
1: + };
1: + __u32 priority;
1: + int skb_iif;
1: + __u32 hash;
1: + __be16 vlan_proto;
1: + __u16 vlan_tci;
1: + union {
1: + unsigned int napi_id;
1: + unsigned int sender_cpu;
1: + };
1: + __u32 secmark;
1: + union {
1: + __u32 mark;
1: + __u32 reserved_tailroom;
1: + };
1: + union {
1: + __be16 inner_protocol;
1: + __u8 inner_ipproto;
1: + };
1: + __u16 inner_transport_header;
1: + __u16 inner_network_header;
1: + __u16 inner_mac_header;
1: + __be16 protocol;
1: + __u16 transport_header;
1: + __u16 network_header;
1: + __u16 mac_header;
1: + __u32 headers_end[0];
1: + sk_buff_data_t tail;
1: + sk_buff_data_t end;
1: + unsigned char *head;
1: + unsigned char *data;
1: + unsigned int truesize;
1: + refcount_t users;
1: + struct skb_ext *extensions;
1: };
1:
1: struct scatterlist {
1: - long unsigned int page_link;
1: - unsigned int offset;
1: - unsigned int length;
1: - dma_addr_t dma_address;
1: - unsigned int dma_length;
1: + long unsigned int page_link;
1: + unsigned int offset;
1: + unsigned int length;
1: + dma_addr_t dma_address;
1: + unsigned int dma_length;
1: };
1:
1: enum {
1: - Root_NFS = 255,
1: - Root_CIFS = 254,
1: - Root_RAM0 = 1048576,
1: - Root_RAM1 = 1048577,
1: - Root_FD0 = 2097152,
1: - Root_HDA1 = 3145729,
1: - Root_HDA2 = 3145730,
1: - Root_SDA1 = 8388609,
1: - Root_SDA2 = 8388610,
1: - Root_HDC1 = 23068673,
1: - Root_SR0 = 11534336,
1: + Root_NFS = 255,
1: + Root_CIFS = 254,
1: + Root_RAM0 = 1048576,
1: + Root_RAM1 = 1048577,
1: + Root_FD0 = 2097152,
1: + Root_HDA1 = 3145729,
1: + Root_HDA2 = 3145730,
1: + Root_SDA1 = 8388609,
1: + Root_SDA2 = 8388610,
1: + Root_HDC1 = 23068673,
1: + Root_SR0 = 11534336,
1: };
1:
1: struct ethhdr {
1: - unsigned char h_dest[6];
1: - unsigned char h_source[6];
1: - __be16 h_proto;
1: + unsigned char h_dest[6];
1: + unsigned char h_source[6];
1: + __be16 h_proto;
1: };
1:
1: struct flowi_tunnel {
1: - __be64 tun_id;
1: + __be64 tun_id;
1: };
1:
1: struct flowi_common {
1: - int flowic_oif;
1: - int flowic_iif;
1: - __u32 flowic_mark;
1: - __u8 flowic_tos;
1: - __u8 flowic_scope;
1: - __u8 flowic_proto;
1: - __u8 flowic_flags;
1: - __u32 flowic_secid;
1: - kuid_t flowic_uid;
1: - struct flowi_tunnel flowic_tun_key;
1: - __u32 flowic_multipath_hash;
1: + int flowic_oif;
1: + int flowic_iif;
1: + __u32 flowic_mark;
1: + __u8 flowic_tos;
1: + __u8 flowic_scope;
1: + __u8 flowic_proto;
1: + __u8 flowic_flags;
1: + __u32 flowic_secid;
1: + kuid_t flowic_uid;
1: + struct flowi_tunnel flowic_tun_key;
1: + __u32 flowic_multipath_hash;
1: };
1:
1: union flowi_uli {
1: - struct {
1: - __be16 dport;
1: - __be16 sport;
1: - } ports;
1: - struct {
1: - __u8 type;
1: - __u8 code;
1: - } icmpt;
1: - struct {
1: - __le16 dport;
1: - __le16 sport;
1: - } dnports;
1: - __be32 spi;
1: - __be32 gre_key;
1: - struct {
1: - __u8 type;
1: - } mht;
1: + struct {
1: + __be16 dport;
1: + __be16 sport;
1: + } ports;
1: + struct {
1: + __u8 type;
1: + __u8 code;
1: + } icmpt;
1: + struct {
1: + __le16 dport;
1: + __le16 sport;
1: + } dnports;
1: + __be32 spi;
1: + __be32 gre_key;
1: + struct {
1: + __u8 type;
1: + } mht;
1: };
1:
1: struct flowi4 {
1: - struct flowi_common __fl_common;
1: - __be32 saddr;
1: - __be32 daddr;
1: - union flowi_uli uli;
1: + struct flowi_common __fl_common;
1: + __be32 saddr;
1: + __be32 daddr;
1: + union flowi_uli uli;
1: };
1:
1: struct flowi6 {
1: - struct flowi_common __fl_common;
1: - struct in6_addr daddr;
1: - struct in6_addr saddr;
1: - __be32 flowlabel;
1: - union flowi_uli uli;
1: - __u32 mp_hash;
1: + struct flowi_common __fl_common;
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + __be32 flowlabel;
1: + union flowi_uli uli;
1: + __u32 mp_hash;
1: };
1:
1: struct flowidn {
1: - struct flowi_common __fl_common;
1: - __le16 daddr;
1: - __le16 saddr;
1: - union flowi_uli uli;
1: + struct flowi_common __fl_common;
1: + __le16 daddr;
1: + __le16 saddr;
1: + union flowi_uli uli;
1: };
1:
1: struct flowi {
1: - union {
1: - struct flowi_common __fl_common;
1: - struct flowi4 ip4;
1: - struct flowi6 ip6;
1: - struct flowidn dn;
1: - } u;
1: + union {
1: + struct flowi_common __fl_common;
1: + struct flowi4 ip4;
1: + struct flowi6 ip6;
1: + struct flowidn dn;
1: + } u;
1: };
1:
1: struct ipstats_mib {
1: - u64 mibs[37];
1: - struct u64_stats_sync syncp;
1: + u64 mibs[37];
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct icmp_mib {
1: - long unsigned int mibs[28];
1: + long unsigned int mibs[28];
1: };
1:
1: struct icmpmsg_mib {
1: - atomic_long_t mibs[512];
1: + atomic_long_t mibs[512];
1: };
1:
1: struct icmpv6_mib {
1: - long unsigned int mibs[6];
1: + long unsigned int mibs[6];
1: };
1:
1: struct icmpv6_mib_device {
1: - atomic_long_t mibs[6];
1: + atomic_long_t mibs[6];
1: };
1:
1: struct icmpv6msg_mib {
1: - atomic_long_t mibs[512];
1: + atomic_long_t mibs[512];
1: };
1:
1: struct icmpv6msg_mib_device {
1: - atomic_long_t mibs[512];
1: + atomic_long_t mibs[512];
1: };
1:
1: struct tcp_mib {
1: - long unsigned int mibs[16];
1: + long unsigned int mibs[16];
1: };
1:
1: struct udp_mib {
1: - long unsigned int mibs[9];
1: + long unsigned int mibs[9];
1: };
1:
1: struct linux_mib {
1: - long unsigned int mibs[124];
1: + long unsigned int mibs[124];
1: };
1:
1: struct linux_tls_mib {
1: - long unsigned int mibs[11];
1: + long unsigned int mibs[11];
1: };
1:
1: struct inet_frags;
1:
1: struct fqdir {
1: - long int high_thresh;
1: - long int low_thresh;
1: - int timeout;
1: - int max_dist;
1: - struct inet_frags *f;
1: - struct net *net;
1: - bool dead;
1: - long: 56;
1: - long: 64;
1: - long: 64;
1: - struct rhashtable rhashtable;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - atomic_long_t mem;
1: - struct work_struct destroy_work;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + long int high_thresh;
1: + long int low_thresh;
1: + int timeout;
1: + int max_dist;
1: + struct inet_frags *f;
1: + struct net *net;
1: + bool dead;
1: + long : 56;
1: + long : 64;
1: + long : 64;
1: + struct rhashtable rhashtable;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + atomic_long_t mem;
1: + struct work_struct destroy_work;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct inet_frag_queue;
1:
1: struct inet_frags {
1: - unsigned int qsize;
1: - void (*constructor)(struct inet_frag_queue *, const void *);
1: - void (*destructor)(struct inet_frag_queue *);
1: - void (*frag_expire)(struct timer_list *);
1: - struct kmem_cache *frags_cachep;
1: - const char *frags_cache_name;
1: - struct rhashtable_params rhash_params;
1: - refcount_t refcnt;
1: - struct completion completion;
1: + unsigned int qsize;
1: + void (*constructor)(struct inet_frag_queue *, const void *);
1: + void (*destructor)(struct inet_frag_queue *);
1: + void (*frag_expire)(struct timer_list *);
1: + struct kmem_cache *frags_cachep;
1: + const char *frags_cache_name;
1: + struct rhashtable_params rhash_params;
1: + refcount_t refcnt;
1: + struct completion completion;
1: };
1:
1: struct frag_v4_compare_key {
1: - __be32 saddr;
1: - __be32 daddr;
1: - u32 user;
1: - u32 vif;
1: - __be16 id;
1: - u16 protocol;
1: + __be32 saddr;
1: + __be32 daddr;
1: + u32 user;
1: + u32 vif;
1: + __be16 id;
1: + u16 protocol;
1: };
1:
1: struct frag_v6_compare_key {
1: - struct in6_addr saddr;
1: - struct in6_addr daddr;
1: - u32 user;
1: - __be32 id;
1: - u32 iif;
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: + u32 user;
1: + __be32 id;
1: + u32 iif;
1: };
1:
1: struct inet_frag_queue {
1: - struct rhash_head node;
1: - union {
1: - struct frag_v4_compare_key v4;
1: - struct frag_v6_compare_key v6;
1: - } key;
1: - struct timer_list timer;
1: - spinlock_t lock;
1: - refcount_t refcnt;
1: - struct rb_root rb_fragments;
1: - struct sk_buff *fragments_tail;
1: - struct sk_buff *last_run_head;
1: - ktime_t stamp;
1: - int len;
1: - int meat;
1: - __u8 flags;
1: - u16 max_size;
1: - struct fqdir *fqdir;
1: - struct callback_head rcu;
1: + struct rhash_head node;
1: + union {
1: + struct frag_v4_compare_key v4;
1: + struct frag_v6_compare_key v6;
1: + } key;
1: + struct timer_list timer;
1: + spinlock_t lock;
1: + refcount_t refcnt;
1: + struct rb_root rb_fragments;
1: + struct sk_buff *fragments_tail;
1: + struct sk_buff *last_run_head;
1: + ktime_t stamp;
1: + int len;
1: + int meat;
1: + __u8 flags;
1: + u16 max_size;
1: + struct fqdir *fqdir;
1: + struct callback_head rcu;
1: };
1:
1: struct fib_rule;
1: @@ -10588,37 +10696,39 @@ struct netlink_ext_ack;
1: struct nla_policy;
1:
1: struct fib_rules_ops {
1: - int family;
1: - struct list_head list;
1: - int rule_size;
1: - int addr_size;
1: - int unresolved_rules;
1: - int nr_goto_rules;
1: - unsigned int fib_rules_seq;
1: - int (*action)(struct fib_rule *, struct flowi *, int, struct fib_lookup_arg *);
1: - bool (*suppress)(struct fib_rule *, struct fib_lookup_arg *);
1: - int (*match)(struct fib_rule *, struct flowi *, int);
1: - int (*configure)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *, struct nlattr **, struct netlink_ext_ack *);
1: - int (*delete)(struct fib_rule *);
1: - int (*compare)(struct fib_rule *, struct fib_rule_hdr *, struct nlattr **);
1: - int (*fill)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *);
1: - size_t (*nlmsg_payload)(struct fib_rule *);
1: - void (*flush_cache)(struct fib_rules_ops *);
1: - int nlgroup;
1: - const struct nla_policy *policy;
1: - struct list_head rules_list;
1: - struct module *owner;
1: - struct net *fro_net;
1: - struct callback_head rcu;
1: + int family;
1: + struct list_head list;
1: + int rule_size;
1: + int addr_size;
1: + int unresolved_rules;
1: + int nr_goto_rules;
1: + unsigned int fib_rules_seq;
1: + int (*action)(struct fib_rule *, struct flowi *, int,
1: + struct fib_lookup_arg *);
1: + bool (*suppress)(struct fib_rule *, struct fib_lookup_arg *);
1: + int (*match)(struct fib_rule *, struct flowi *, int);
1: + int (*configure)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *,
1: + struct nlattr **, struct netlink_ext_ack *);
1: + int (*delete)(struct fib_rule *);
1: + int (*compare)(struct fib_rule *, struct fib_rule_hdr *, struct nlattr **);
1: + int (*fill)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *);
1: + size_t (*nlmsg_payload)(struct fib_rule *);
1: + void (*flush_cache)(struct fib_rules_ops *);
1: + int nlgroup;
1: + const struct nla_policy *policy;
1: + struct list_head rules_list;
1: + struct module *owner;
1: + struct net *fro_net;
1: + struct callback_head rcu;
1: };
1:
1: enum tcp_ca_event {
1: - CA_EVENT_TX_START = 0,
1: - CA_EVENT_CWND_RESTART = 1,
1: - CA_EVENT_COMPLETE_CWR = 2,
1: - CA_EVENT_LOSS = 3,
1: - CA_EVENT_ECN_NO_CE = 4,
1: - CA_EVENT_ECN_IS_CE = 5,
1: + CA_EVENT_TX_START = 0,
1: + CA_EVENT_CWND_RESTART = 1,
1: + CA_EVENT_COMPLETE_CWR = 2,
1: + CA_EVENT_LOSS = 3,
1: + CA_EVENT_ECN_NO_CE = 4,
1: + CA_EVENT_ECN_IS_CE = 5,
1: };
1:
1: struct ack_sample;
1: @@ -10628,33 +10738,34 @@ struct rate_sample;
1: union tcp_cc_info;
1:
1: struct tcp_congestion_ops {
1: - struct list_head list;
1: - u32 key;
1: - u32 flags;
1: - void (*init)(struct sock *);
1: - void (*release)(struct sock *);
1: - u32 (*ssthresh)(struct sock *);
1: - void (*cong_avoid)(struct sock *, u32, u32);
1: - void (*set_state)(struct sock *, u8);
1: - void (*cwnd_event)(struct sock *, enum tcp_ca_event);
1: - void (*in_ack_event)(struct sock *, u32);
1: - u32 (*undo_cwnd)(struct sock *);
1: - void (*pkts_acked)(struct sock *, const struct ack_sample *);
1: - u32 (*min_tso_segs)(struct sock *);
1: - u32 (*sndbuf_expand)(struct sock *);
1: - void (*cong_control)(struct sock *, const struct rate_sample *);
1: - size_t (*get_info)(struct sock *, u32, int *, union tcp_cc_info *);
1: - char name[16];
1: - struct module *owner;
1: + struct list_head list;
1: + u32 key;
1: + u32 flags;
1: + void (*init)(struct sock *);
1: + void (*release)(struct sock *);
1: + u32 (*ssthresh)(struct sock *);
1: + void (*cong_avoid)(struct sock *, u32, u32);
1: + void (*set_state)(struct sock *, u8);
1: + void (*cwnd_event)(struct sock *, enum tcp_ca_event);
1: + void (*in_ack_event)(struct sock *, u32);
1: + u32 (*undo_cwnd)(struct sock *);
1: + void (*pkts_acked)(struct sock *, const struct ack_sample *);
1: + u32 (*min_tso_segs)(struct sock *);
1: + u32 (*sndbuf_expand)(struct sock *);
1: + void (*cong_control)(struct sock *, const struct rate_sample *);
1: + size_t (*get_info)(struct sock *, u32, int *, union tcp_cc_info *);
1: + char name[16];
1: + struct module *owner;
1: };
1:
1: struct fib_notifier_ops {
1: - int family;
1: - struct list_head list;
1: - unsigned int (*fib_seq_read)(struct net *);
1: - int (*fib_dump)(struct net *, struct notifier_block *, struct netlink_ext_ack *);
1: - struct module *owner;
1: - struct callback_head rcu;
1: + int family;
1: + struct list_head list;
1: + unsigned int (*fib_seq_read)(struct net *);
1: + int (*fib_dump)(struct net *, struct notifier_block *,
1: + struct netlink_ext_ack *);
1: + struct module *owner;
1: + struct callback_head rcu;
1: };
1:
1: struct xfrm_state;
1: @@ -10662,31 +10773,31 @@ struct xfrm_state;
1: struct lwtunnel_state;
1:
1: struct dst_entry {
1: - struct net_device *dev;
1: - struct dst_ops *ops;
1: - long unsigned int _metrics;
1: - long unsigned int expires;
1: - struct xfrm_state *xfrm;
1: - int (*input)(struct sk_buff *);
1: - int (*output)(struct net *, struct sock *, struct sk_buff *);
1: - short unsigned int flags;
1: - short int obsolete;
1: - short unsigned int header_len;
1: - short unsigned int trailer_len;
1: - atomic_t __refcnt;
1: - int __use;
1: - long unsigned int lastuse;
1: - struct lwtunnel_state *lwtstate;
1: - struct callback_head callback_head;
1: - short int error;
1: - short int __pad;
1: - __u32 tclassid;
1: + struct net_device *dev;
1: + struct dst_ops *ops;
1: + long unsigned int _metrics;
1: + long unsigned int expires;
1: + struct xfrm_state *xfrm;
1: + int (*input)(struct sk_buff *);
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + short unsigned int flags;
1: + short int obsolete;
1: + short unsigned int header_len;
1: + short unsigned int trailer_len;
1: + atomic_t __refcnt;
1: + int __use;
1: + long unsigned int lastuse;
1: + struct lwtunnel_state *lwtstate;
1: + struct callback_head callback_head;
1: + short int error;
1: + short int __pad;
1: + __u32 tclassid;
1: };
1:
1: struct hh_cache {
1: - unsigned int hh_len;
1: - seqlock_t hh_lock;
1: - long unsigned int hh_data[16];
1: + unsigned int hh_len;
1: + seqlock_t hh_lock;
1: + long unsigned int hh_data[16];
1: };
1:
1: struct neigh_table;
1: @@ -10696,875 +10807,892 @@ struct neigh_parms;
1: struct neigh_ops;
1:
1: struct neighbour {
1: - struct neighbour *next;
1: - struct neigh_table *tbl;
1: - struct neigh_parms *parms;
1: - long unsigned int confirmed;
1: - long unsigned int updated;
1: - rwlock_t lock;
1: - refcount_t refcnt;
1: - unsigned int arp_queue_len_bytes;
1: - struct sk_buff_head arp_queue;
1: - struct timer_list timer;
1: - long unsigned int used;
1: - atomic_t probes;
1: - __u8 flags;
1: - __u8 nud_state;
1: - __u8 type;
1: - __u8 dead;
1: - u8 protocol;
1: - seqlock_t ha_lock;
1: - int: 32;
1: - unsigned char ha[32];
1: - struct hh_cache hh;
1: - int (*output)(struct neighbour *, struct sk_buff *);
1: - const struct neigh_ops *ops;
1: - struct list_head gc_list;
1: - struct callback_head rcu;
1: - struct net_device *dev;
1: - u8 primary_key[0];
1: + struct neighbour *next;
1: + struct neigh_table *tbl;
1: + struct neigh_parms *parms;
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + unsigned int arp_queue_len_bytes;
1: + struct sk_buff_head arp_queue;
1: + struct timer_list timer;
1: + long unsigned int used;
1: + atomic_t probes;
1: + __u8 flags;
1: + __u8 nud_state;
1: + __u8 type;
1: + __u8 dead;
1: + u8 protocol;
1: + seqlock_t ha_lock;
1: + int : 32;
1: + unsigned char ha[32];
1: + struct hh_cache hh;
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + const struct neigh_ops *ops;
1: + struct list_head gc_list;
1: + struct callback_head rcu;
1: + struct net_device *dev;
1: + u8 primary_key[0];
1: };
1:
1: struct ipv6_stable_secret {
1: - bool initialized;
1: - struct in6_addr secret;
1: + bool initialized;
1: + struct in6_addr secret;
1: };
1:
1: struct ipv6_devconf {
1: - __s32 forwarding;
1: - __s32 hop_limit;
1: - __s32 mtu6;
1: - __s32 accept_ra;
1: - __s32 accept_redirects;
1: - __s32 autoconf;
1: - __s32 dad_transmits;
1: - __s32 rtr_solicits;
1: - __s32 rtr_solicit_interval;
1: - __s32 rtr_solicit_max_interval;
1: - __s32 rtr_solicit_delay;
1: - __s32 force_mld_version;
1: - __s32 mldv1_unsolicited_report_interval;
1: - __s32 mldv2_unsolicited_report_interval;
1: - __s32 use_tempaddr;
1: - __s32 temp_valid_lft;
1: - __s32 temp_prefered_lft;
1: - __s32 regen_max_retry;
1: - __s32 max_desync_factor;
1: - __s32 max_addresses;
1: - __s32 accept_ra_defrtr;
1: - __s32 accept_ra_min_hop_limit;
1: - __s32 accept_ra_pinfo;
1: - __s32 ignore_routes_with_linkdown;
1: - __s32 accept_ra_rtr_pref;
1: - __s32 rtr_probe_interval;
1: - __s32 accept_ra_rt_info_min_plen;
1: - __s32 accept_ra_rt_info_max_plen;
1: - __s32 proxy_ndp;
1: - __s32 accept_source_route;
1: - __s32 accept_ra_from_local;
1: - __s32 mc_forwarding;
1: - __s32 disable_ipv6;
1: - __s32 drop_unicast_in_l2_multicast;
1: - __s32 accept_dad;
1: - __s32 force_tllao;
1: - __s32 ndisc_notify;
1: - __s32 suppress_frag_ndisc;
1: - __s32 accept_ra_mtu;
1: - __s32 drop_unsolicited_na;
1: - struct ipv6_stable_secret stable_secret;
1: - __s32 use_oif_addrs_only;
1: - __s32 keep_addr_on_down;
1: - __s32 seg6_enabled;
1: - __u32 enhanced_dad;
1: - __u32 addr_gen_mode;
1: - __s32 disable_policy;
1: - __s32 ndisc_tclass;
1: - __s32 rpl_seg_enabled;
1: - struct ctl_table_header *sysctl_header;
1: + __s32 forwarding;
1: + __s32 hop_limit;
1: + __s32 mtu6;
1: + __s32 accept_ra;
1: + __s32 accept_redirects;
1: + __s32 autoconf;
1: + __s32 dad_transmits;
1: + __s32 rtr_solicits;
1: + __s32 rtr_solicit_interval;
1: + __s32 rtr_solicit_max_interval;
1: + __s32 rtr_solicit_delay;
1: + __s32 force_mld_version;
1: + __s32 mldv1_unsolicited_report_interval;
1: + __s32 mldv2_unsolicited_report_interval;
1: + __s32 use_tempaddr;
1: + __s32 temp_valid_lft;
1: + __s32 temp_prefered_lft;
1: + __s32 regen_max_retry;
1: + __s32 max_desync_factor;
1: + __s32 max_addresses;
1: + __s32 accept_ra_defrtr;
1: + __s32 accept_ra_min_hop_limit;
1: + __s32 accept_ra_pinfo;
1: + __s32 ignore_routes_with_linkdown;
1: + __s32 accept_ra_rtr_pref;
1: + __s32 rtr_probe_interval;
1: + __s32 accept_ra_rt_info_min_plen;
1: + __s32 accept_ra_rt_info_max_plen;
1: + __s32 proxy_ndp;
1: + __s32 accept_source_route;
1: + __s32 accept_ra_from_local;
1: + __s32 mc_forwarding;
1: + __s32 disable_ipv6;
1: + __s32 drop_unicast_in_l2_multicast;
1: + __s32 accept_dad;
1: + __s32 force_tllao;
1: + __s32 ndisc_notify;
1: + __s32 suppress_frag_ndisc;
1: + __s32 accept_ra_mtu;
1: + __s32 drop_unsolicited_na;
1: + struct ipv6_stable_secret stable_secret;
1: + __s32 use_oif_addrs_only;
1: + __s32 keep_addr_on_down;
1: + __s32 seg6_enabled;
1: + __u32 enhanced_dad;
1: + __u32 addr_gen_mode;
1: + __s32 disable_policy;
1: + __s32 ndisc_tclass;
1: + __s32 rpl_seg_enabled;
1: + struct ctl_table_header *sysctl_header;
1: };
1:
1: struct nf_queue_entry;
1:
1: struct nf_queue_handler {
1: - int (*outfn)(struct nf_queue_entry *, unsigned int);
1: - void (*nf_hook_drop)(struct net *);
1: + int (*outfn)(struct nf_queue_entry *, unsigned int);
1: + void (*nf_hook_drop)(struct net *);
1: };
1:
1: enum nf_log_type {
1: - NF_LOG_TYPE_LOG = 0,
1: - NF_LOG_TYPE_ULOG = 1,
1: - NF_LOG_TYPE_MAX = 2,
1: + NF_LOG_TYPE_LOG = 0,
1: + NF_LOG_TYPE_ULOG = 1,
1: + NF_LOG_TYPE_MAX = 2,
1: };
1:
1: typedef u8 u_int8_t;
1:
1: struct nf_loginfo;
1:
1: -typedef void nf_logfn(struct net *, u_int8_t, unsigned int, const struct sk_buff *, const struct net_device *, const struct net_device *, const struct nf_loginfo *, const char *);
1: +typedef void nf_logfn(struct net *, u_int8_t, unsigned int,
1: + const struct sk_buff *, const struct net_device *,
1: + const struct net_device *, const struct nf_loginfo *,
1: + const char *);
1:
1: struct nf_logger {
1: - char *name;
1: - enum nf_log_type type;
1: - nf_logfn *logfn;
1: - struct module *me;
1: + char *name;
1: + enum nf_log_type type;
1: + nf_logfn *logfn;
1: + struct module *me;
1: };
1:
1: struct hlist_nulls_head {
1: - struct hlist_nulls_node *first;
1: + struct hlist_nulls_node *first;
1: };
1:
1: struct ip_conntrack_stat {
1: - unsigned int found;
1: - unsigned int invalid;
1: - unsigned int insert;
1: - unsigned int insert_failed;
1: - unsigned int clash_resolve;
1: - unsigned int drop;
1: - unsigned int early_drop;
1: - unsigned int error;
1: - unsigned int expect_new;
1: - unsigned int expect_create;
1: - unsigned int expect_delete;
1: - unsigned int search_restart;
1: + unsigned int found;
1: + unsigned int invalid;
1: + unsigned int insert;
1: + unsigned int insert_failed;
1: + unsigned int clash_resolve;
1: + unsigned int drop;
1: + unsigned int early_drop;
1: + unsigned int error;
1: + unsigned int expect_new;
1: + unsigned int expect_create;
1: + unsigned int expect_delete;
1: + unsigned int search_restart;
1: };
1:
1: struct ct_pcpu {
1: - spinlock_t lock;
1: - struct hlist_nulls_head unconfirmed;
1: - struct hlist_nulls_head dying;
1: + spinlock_t lock;
1: + struct hlist_nulls_head unconfirmed;
1: + struct hlist_nulls_head dying;
1: };
1:
1: typedef struct {
1: - union {
1: - void *kernel;
1: - void *user;
1: - };
1: - bool is_kernel: 1;
1: + union {
1: + void *kernel;
1: + void *user;
1: + };
1: + bool is_kernel : 1;
1: } sockptr_t;
1:
1: typedef enum {
1: - SS_FREE = 0,
1: - SS_UNCONNECTED = 1,
1: - SS_CONNECTING = 2,
1: - SS_CONNECTED = 3,
1: - SS_DISCONNECTING = 4,
1: + SS_FREE = 0,
1: + SS_UNCONNECTED = 1,
1: + SS_CONNECTING = 2,
1: + SS_CONNECTED = 3,
1: + SS_DISCONNECTING = 4,
1: } socket_state;
1:
1: struct socket_wq {
1: - wait_queue_head_t wait;
1: - struct fasync_struct *fasync_list;
1: - long unsigned int flags;
1: - struct callback_head rcu;
1: - long: 64;
1: + wait_queue_head_t wait;
1: + struct fasync_struct *fasync_list;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: + long : 64;
1: };
1:
1: struct proto_ops;
1:
1: struct socket {
1: - socket_state state;
1: - short int type;
1: - long unsigned int flags;
1: - struct file *file;
1: - struct sock *sk;
1: - const struct proto_ops *ops;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct socket_wq wq;
1: + socket_state state;
1: + short int type;
1: + long unsigned int flags;
1: + struct file *file;
1: + struct sock *sk;
1: + const struct proto_ops *ops;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct socket_wq wq;
1: };
1:
1: -typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *, unsigned int, size_t);
1: +typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *,
1: + unsigned int, size_t);
1:
1: struct proto_ops {
1: - int family;
1: - unsigned int flags;
1: - struct module *owner;
1: - int (*release)(struct socket *);
1: - int (*bind)(struct socket *, struct sockaddr *, int);
1: - int (*connect)(struct socket *, struct sockaddr *, int, int);
1: - int (*socketpair)(struct socket *, struct socket *);
1: - int (*accept)(struct socket *, struct socket *, int, bool);
1: - int (*getname)(struct socket *, struct sockaddr *, int);
1: - __poll_t (*poll)(struct file *, struct socket *, struct poll_table_struct *);
1: - int (*ioctl)(struct socket *, unsigned int, long unsigned int);
1: - int (*compat_ioctl)(struct socket *, unsigned int, long unsigned int);
1: - int (*gettstamp)(struct socket *, void *, bool, bool);
1: - int (*listen)(struct socket *, int);
1: - int (*shutdown)(struct socket *, int);
1: - int (*setsockopt)(struct socket *, int, int, sockptr_t, unsigned int);
1: - int (*getsockopt)(struct socket *, int, int, char *, int *);
1: - void (*show_fdinfo)(struct seq_file *, struct socket *);
1: - int (*sendmsg)(struct socket *, struct msghdr *, size_t);
1: - int (*recvmsg)(struct socket *, struct msghdr *, size_t, int);
1: - int (*mmap)(struct file *, struct socket *, struct vm_area_struct *);
1: - ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int);
1: - ssize_t (*splice_read)(struct socket *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: - int (*set_peek_off)(struct sock *, int);
1: - int (*peek_len)(struct socket *);
1: - int (*read_sock)(struct sock *, read_descriptor_t *, sk_read_actor_t);
1: - int (*sendpage_locked)(struct sock *, struct page *, int, size_t, int);
1: - int (*sendmsg_locked)(struct sock *, struct msghdr *, size_t);
1: - int (*set_rcvlowat)(struct sock *, int);
1: + int family;
1: + unsigned int flags;
1: + struct module *owner;
1: + int (*release)(struct socket *);
1: + int (*bind)(struct socket *, struct sockaddr *, int);
1: + int (*connect)(struct socket *, struct sockaddr *, int, int);
1: + int (*socketpair)(struct socket *, struct socket *);
1: + int (*accept)(struct socket *, struct socket *, int, bool);
1: + int (*getname)(struct socket *, struct sockaddr *, int);
1: + __poll_t (*poll)(struct file *, struct socket *, struct poll_table_struct *);
1: + int (*ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*gettstamp)(struct socket *, void *, bool, bool);
1: + int (*listen)(struct socket *, int);
1: + int (*shutdown)(struct socket *, int);
1: + int (*setsockopt)(struct socket *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct socket *, int, int, char *, int *);
1: + void (*show_fdinfo)(struct seq_file *, struct socket *);
1: + int (*sendmsg)(struct socket *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct socket *, struct msghdr *, size_t, int);
1: + int (*mmap)(struct file *, struct socket *, struct vm_area_struct *);
1: + ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int);
1: + ssize_t (*splice_read)(struct socket *, loff_t *, struct pipe_inode_info *,
1: + size_t, unsigned int);
1: + int (*set_peek_off)(struct sock *, int);
1: + int (*peek_len)(struct socket *);
1: + int (*read_sock)(struct sock *, read_descriptor_t *, sk_read_actor_t);
1: + int (*sendpage_locked)(struct sock *, struct page *, int, size_t, int);
1: + int (*sendmsg_locked)(struct sock *, struct msghdr *, size_t);
1: + int (*set_rcvlowat)(struct sock *, int);
1: };
1:
1: struct pipe_buf_operations;
1:
1: struct pipe_buffer {
1: - struct page *page;
1: - unsigned int offset;
1: - unsigned int len;
1: - const struct pipe_buf_operations *ops;
1: - unsigned int flags;
1: - long unsigned int private;
1: + struct page *page;
1: + unsigned int offset;
1: + unsigned int len;
1: + const struct pipe_buf_operations *ops;
1: + unsigned int flags;
1: + long unsigned int private;
1: };
1:
1: struct pipe_buf_operations {
1: - int (*confirm)(struct pipe_inode_info *, struct pipe_buffer *);
1: - void (*release)(struct pipe_inode_info *, struct pipe_buffer *);
1: - bool (*try_steal)(struct pipe_inode_info *, struct pipe_buffer *);
1: - bool (*get)(struct pipe_inode_info *, struct pipe_buffer *);
1: + int (*confirm)(struct pipe_inode_info *, struct pipe_buffer *);
1: + void (*release)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*try_steal)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*get)(struct pipe_inode_info *, struct pipe_buffer *);
1: };
1:
1: struct skb_ext {
1: - refcount_t refcnt;
1: - u8 offset[4];
1: - u8 chunks;
1: - long: 56;
1: - char data[0];
1: + refcount_t refcnt;
1: + u8 offset[4];
1: + u8 chunks;
1: + long : 56;
1: + char data[0];
1: };
1:
1: struct dql {
1: - unsigned int num_queued;
1: - unsigned int adj_limit;
1: - unsigned int last_obj_cnt;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - unsigned int limit;
1: - unsigned int num_completed;
1: - unsigned int prev_ovlimit;
1: - unsigned int prev_num_queued;
1: - unsigned int prev_last_obj_cnt;
1: - unsigned int lowest_slack;
1: - long unsigned int slack_start_time;
1: - unsigned int max_limit;
1: - unsigned int min_limit;
1: - unsigned int slack_hold_time;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: + unsigned int num_queued;
1: + unsigned int adj_limit;
1: + unsigned int last_obj_cnt;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + unsigned int limit;
1: + unsigned int num_completed;
1: + unsigned int prev_ovlimit;
1: + unsigned int prev_num_queued;
1: + unsigned int prev_last_obj_cnt;
1: + unsigned int lowest_slack;
1: + long unsigned int slack_start_time;
1: + unsigned int max_limit;
1: + unsigned int min_limit;
1: + unsigned int slack_hold_time;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct ethtool_drvinfo {
1: - __u32 cmd;
1: - char driver[32];
1: - char version[32];
1: - char fw_version[32];
1: - char bus_info[32];
1: - char erom_version[32];
1: - char reserved2[12];
1: - __u32 n_priv_flags;
1: - __u32 n_stats;
1: - __u32 testinfo_len;
1: - __u32 eedump_len;
1: - __u32 regdump_len;
1: + __u32 cmd;
1: + char driver[32];
1: + char version[32];
1: + char fw_version[32];
1: + char bus_info[32];
1: + char erom_version[32];
1: + char reserved2[12];
1: + __u32 n_priv_flags;
1: + __u32 n_stats;
1: + __u32 testinfo_len;
1: + __u32 eedump_len;
1: + __u32 regdump_len;
1: };
1:
1: struct ethtool_wolinfo {
1: - __u32 cmd;
1: - __u32 supported;
1: - __u32 wolopts;
1: - __u8 sopass[6];
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 wolopts;
1: + __u8 sopass[6];
1: };
1:
1: struct ethtool_tunable {
1: - __u32 cmd;
1: - __u32 id;
1: - __u32 type_id;
1: - __u32 len;
1: - void *data[0];
1: + __u32 cmd;
1: + __u32 id;
1: + __u32 type_id;
1: + __u32 len;
1: + void *data[0];
1: };
1:
1: struct ethtool_regs {
1: - __u32 cmd;
1: - __u32 version;
1: - __u32 len;
1: - __u8 data[0];
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 len;
1: + __u8 data[0];
1: };
1:
1: struct ethtool_eeprom {
1: - __u32 cmd;
1: - __u32 magic;
1: - __u32 offset;
1: - __u32 len;
1: - __u8 data[0];
1: + __u32 cmd;
1: + __u32 magic;
1: + __u32 offset;
1: + __u32 len;
1: + __u8 data[0];
1: };
1:
1: struct ethtool_eee {
1: - __u32 cmd;
1: - __u32 supported;
1: - __u32 advertised;
1: - __u32 lp_advertised;
1: - __u32 eee_active;
1: - __u32 eee_enabled;
1: - __u32 tx_lpi_enabled;
1: - __u32 tx_lpi_timer;
1: - __u32 reserved[2];
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 advertised;
1: + __u32 lp_advertised;
1: + __u32 eee_active;
1: + __u32 eee_enabled;
1: + __u32 tx_lpi_enabled;
1: + __u32 tx_lpi_timer;
1: + __u32 reserved[2];
1: };
1:
1: struct ethtool_modinfo {
1: - __u32 cmd;
1: - __u32 type;
1: - __u32 eeprom_len;
1: - __u32 reserved[8];
1: + __u32 cmd;
1: + __u32 type;
1: + __u32 eeprom_len;
1: + __u32 reserved[8];
1: };
1:
1: struct ethtool_coalesce {
1: - __u32 cmd;
1: - __u32 rx_coalesce_usecs;
1: - __u32 rx_max_coalesced_frames;
1: - __u32 rx_coalesce_usecs_irq;
1: - __u32 rx_max_coalesced_frames_irq;
1: - __u32 tx_coalesce_usecs;
1: - __u32 tx_max_coalesced_frames;
1: - __u32 tx_coalesce_usecs_irq;
1: - __u32 tx_max_coalesced_frames_irq;
1: - __u32 stats_block_coalesce_usecs;
1: - __u32 use_adaptive_rx_coalesce;
1: - __u32 use_adaptive_tx_coalesce;
1: - __u32 pkt_rate_low;
1: - __u32 rx_coalesce_usecs_low;
1: - __u32 rx_max_coalesced_frames_low;
1: - __u32 tx_coalesce_usecs_low;
1: - __u32 tx_max_coalesced_frames_low;
1: - __u32 pkt_rate_high;
1: - __u32 rx_coalesce_usecs_high;
1: - __u32 rx_max_coalesced_frames_high;
1: - __u32 tx_coalesce_usecs_high;
1: - __u32 tx_max_coalesced_frames_high;
1: - __u32 rate_sample_interval;
1: + __u32 cmd;
1: + __u32 rx_coalesce_usecs;
1: + __u32 rx_max_coalesced_frames;
1: + __u32 rx_coalesce_usecs_irq;
1: + __u32 rx_max_coalesced_frames_irq;
1: + __u32 tx_coalesce_usecs;
1: + __u32 tx_max_coalesced_frames;
1: + __u32 tx_coalesce_usecs_irq;
1: + __u32 tx_max_coalesced_frames_irq;
1: + __u32 stats_block_coalesce_usecs;
1: + __u32 use_adaptive_rx_coalesce;
1: + __u32 use_adaptive_tx_coalesce;
1: + __u32 pkt_rate_low;
1: + __u32 rx_coalesce_usecs_low;
1: + __u32 rx_max_coalesced_frames_low;
1: + __u32 tx_coalesce_usecs_low;
1: + __u32 tx_max_coalesced_frames_low;
1: + __u32 pkt_rate_high;
1: + __u32 rx_coalesce_usecs_high;
1: + __u32 rx_max_coalesced_frames_high;
1: + __u32 tx_coalesce_usecs_high;
1: + __u32 tx_max_coalesced_frames_high;
1: + __u32 rate_sample_interval;
1: };
1:
1: struct ethtool_ringparam {
1: - __u32 cmd;
1: - __u32 rx_max_pending;
1: - __u32 rx_mini_max_pending;
1: - __u32 rx_jumbo_max_pending;
1: - __u32 tx_max_pending;
1: - __u32 rx_pending;
1: - __u32 rx_mini_pending;
1: - __u32 rx_jumbo_pending;
1: - __u32 tx_pending;
1: + __u32 cmd;
1: + __u32 rx_max_pending;
1: + __u32 rx_mini_max_pending;
1: + __u32 rx_jumbo_max_pending;
1: + __u32 tx_max_pending;
1: + __u32 rx_pending;
1: + __u32 rx_mini_pending;
1: + __u32 rx_jumbo_pending;
1: + __u32 tx_pending;
1: };
1:
1: struct ethtool_channels {
1: - __u32 cmd;
1: - __u32 max_rx;
1: - __u32 max_tx;
1: - __u32 max_other;
1: - __u32 max_combined;
1: - __u32 rx_count;
1: - __u32 tx_count;
1: - __u32 other_count;
1: - __u32 combined_count;
1: + __u32 cmd;
1: + __u32 max_rx;
1: + __u32 max_tx;
1: + __u32 max_other;
1: + __u32 max_combined;
1: + __u32 rx_count;
1: + __u32 tx_count;
1: + __u32 other_count;
1: + __u32 combined_count;
1: };
1:
1: struct ethtool_pauseparam {
1: - __u32 cmd;
1: - __u32 autoneg;
1: - __u32 rx_pause;
1: - __u32 tx_pause;
1: + __u32 cmd;
1: + __u32 autoneg;
1: + __u32 rx_pause;
1: + __u32 tx_pause;
1: };
1:
1: enum ethtool_link_ext_state {
1: - ETHTOOL_LINK_EXT_STATE_AUTONEG = 0,
1: - ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 1,
1: - ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 2,
1: - ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 3,
1: - ETHTOOL_LINK_EXT_STATE_NO_CABLE = 4,
1: - ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 5,
1: - ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 6,
1: - ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 7,
1: - ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 8,
1: - ETHTOOL_LINK_EXT_STATE_OVERHEAT = 9,
1: + ETHTOOL_LINK_EXT_STATE_AUTONEG = 0,
1: + ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 1,
1: + ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 2,
1: + ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 3,
1: + ETHTOOL_LINK_EXT_STATE_NO_CABLE = 4,
1: + ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 5,
1: + ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 6,
1: + ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 7,
1: + ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 8,
1: + ETHTOOL_LINK_EXT_STATE_OVERHEAT = 9,
1: };
1:
1: enum ethtool_link_ext_substate_autoneg {
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 1,
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 2,
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 3,
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 4,
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 5,
1: - ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 6,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 5,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 6,
1: };
1:
1: enum ethtool_link_ext_substate_link_training {
1: - ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 1,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 2,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 3,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 4,
1: };
1:
1: enum ethtool_link_ext_substate_link_logical_mismatch {
1: - ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 1,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 2,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 3,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 4,
1: - ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 5,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 5,
1: };
1:
1: enum ethtool_link_ext_substate_bad_signal_integrity {
1: - ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1,
1: - ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 2,
1: };
1:
1: enum ethtool_link_ext_substate_cable_issue {
1: - ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1,
1: - ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 2,
1: };
1:
1: struct ethtool_test {
1: - __u32 cmd;
1: - __u32 flags;
1: - __u32 reserved;
1: - __u32 len;
1: - __u64 data[0];
1: + __u32 cmd;
1: + __u32 flags;
1: + __u32 reserved;
1: + __u32 len;
1: + __u64 data[0];
1: };
1:
1: struct ethtool_stats {
1: - __u32 cmd;
1: - __u32 n_stats;
1: - __u64 data[0];
1: + __u32 cmd;
1: + __u32 n_stats;
1: + __u64 data[0];
1: };
1:
1: struct ethtool_tcpip4_spec {
1: - __be32 ip4src;
1: - __be32 ip4dst;
1: - __be16 psrc;
1: - __be16 pdst;
1: - __u8 tos;
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tos;
1: };
1:
1: struct ethtool_ah_espip4_spec {
1: - __be32 ip4src;
1: - __be32 ip4dst;
1: - __be32 spi;
1: - __u8 tos;
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 spi;
1: + __u8 tos;
1: };
1:
1: struct ethtool_usrip4_spec {
1: - __be32 ip4src;
1: - __be32 ip4dst;
1: - __be32 l4_4_bytes;
1: - __u8 tos;
1: - __u8 ip_ver;
1: - __u8 proto;
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 l4_4_bytes;
1: + __u8 tos;
1: + __u8 ip_ver;
1: + __u8 proto;
1: };
1:
1: struct ethtool_tcpip6_spec {
1: - __be32 ip6src[4];
1: - __be32 ip6dst[4];
1: - __be16 psrc;
1: - __be16 pdst;
1: - __u8 tclass;
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tclass;
1: };
1:
1: struct ethtool_ah_espip6_spec {
1: - __be32 ip6src[4];
1: - __be32 ip6dst[4];
1: - __be32 spi;
1: - __u8 tclass;
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 spi;
1: + __u8 tclass;
1: };
1:
1: struct ethtool_usrip6_spec {
1: - __be32 ip6src[4];
1: - __be32 ip6dst[4];
1: - __be32 l4_4_bytes;
1: - __u8 tclass;
1: - __u8 l4_proto;
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 l4_4_bytes;
1: + __u8 tclass;
1: + __u8 l4_proto;
1: };
1:
1: union ethtool_flow_union {
1: - struct ethtool_tcpip4_spec tcp_ip4_spec;
1: - struct ethtool_tcpip4_spec udp_ip4_spec;
1: - struct ethtool_tcpip4_spec sctp_ip4_spec;
1: - struct ethtool_ah_espip4_spec ah_ip4_spec;
1: - struct ethtool_ah_espip4_spec esp_ip4_spec;
1: - struct ethtool_usrip4_spec usr_ip4_spec;
1: - struct ethtool_tcpip6_spec tcp_ip6_spec;
1: - struct ethtool_tcpip6_spec udp_ip6_spec;
1: - struct ethtool_tcpip6_spec sctp_ip6_spec;
1: - struct ethtool_ah_espip6_spec ah_ip6_spec;
1: - struct ethtool_ah_espip6_spec esp_ip6_spec;
1: - struct ethtool_usrip6_spec usr_ip6_spec;
1: - struct ethhdr ether_spec;
1: - __u8 hdata[52];
1: + struct ethtool_tcpip4_spec tcp_ip4_spec;
1: + struct ethtool_tcpip4_spec udp_ip4_spec;
1: + struct ethtool_tcpip4_spec sctp_ip4_spec;
1: + struct ethtool_ah_espip4_spec ah_ip4_spec;
1: + struct ethtool_ah_espip4_spec esp_ip4_spec;
1: + struct ethtool_usrip4_spec usr_ip4_spec;
1: + struct ethtool_tcpip6_spec tcp_ip6_spec;
1: + struct ethtool_tcpip6_spec udp_ip6_spec;
1: + struct ethtool_tcpip6_spec sctp_ip6_spec;
1: + struct ethtool_ah_espip6_spec ah_ip6_spec;
1: + struct ethtool_ah_espip6_spec esp_ip6_spec;
1: + struct ethtool_usrip6_spec usr_ip6_spec;
1: + struct ethhdr ether_spec;
1: + __u8 hdata[52];
1: };
1:
1: struct ethtool_flow_ext {
1: - __u8 padding[2];
1: - unsigned char h_dest[6];
1: - __be16 vlan_etype;
1: - __be16 vlan_tci;
1: - __be32 data[2];
1: + __u8 padding[2];
1: + unsigned char h_dest[6];
1: + __be16 vlan_etype;
1: + __be16 vlan_tci;
1: + __be32 data[2];
1: };
1:
1: struct ethtool_rx_flow_spec {
1: - __u32 flow_type;
1: - union ethtool_flow_union h_u;
1: - struct ethtool_flow_ext h_ext;
1: - union ethtool_flow_union m_u;
1: - struct ethtool_flow_ext m_ext;
1: - __u64 ring_cookie;
1: - __u32 location;
1: + __u32 flow_type;
1: + union ethtool_flow_union h_u;
1: + struct ethtool_flow_ext h_ext;
1: + union ethtool_flow_union m_u;
1: + struct ethtool_flow_ext m_ext;
1: + __u64 ring_cookie;
1: + __u32 location;
1: };
1:
1: struct ethtool_rxnfc {
1: - __u32 cmd;
1: - __u32 flow_type;
1: - __u64 data;
1: - struct ethtool_rx_flow_spec fs;
1: - union {
1: - __u32 rule_cnt;
1: - __u32 rss_context;
1: - };
1: - __u32 rule_locs[0];
1: + __u32 cmd;
1: + __u32 flow_type;
1: + __u64 data;
1: + struct ethtool_rx_flow_spec fs;
1: + union {
1: + __u32 rule_cnt;
1: + __u32 rss_context;
1: + };
1: + __u32 rule_locs[0];
1: };
1:
1: struct ethtool_flash {
1: - __u32 cmd;
1: - __u32 region;
1: - char data[128];
1: + __u32 cmd;
1: + __u32 region;
1: + char data[128];
1: };
1:
1: struct ethtool_dump {
1: - __u32 cmd;
1: - __u32 version;
1: - __u32 flag;
1: - __u32 len;
1: - __u8 data[0];
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 flag;
1: + __u32 len;
1: + __u8 data[0];
1: };
1:
1: struct ethtool_ts_info {
1: - __u32 cmd;
1: - __u32 so_timestamping;
1: - __s32 phc_index;
1: - __u32 tx_types;
1: - __u32 tx_reserved[3];
1: - __u32 rx_filters;
1: - __u32 rx_reserved[3];
1: + __u32 cmd;
1: + __u32 so_timestamping;
1: + __s32 phc_index;
1: + __u32 tx_types;
1: + __u32 tx_reserved[3];
1: + __u32 rx_filters;
1: + __u32 rx_reserved[3];
1: };
1:
1: struct ethtool_fecparam {
1: - __u32 cmd;
1: - __u32 active_fec;
1: - __u32 fec;
1: - __u32 reserved;
1: + __u32 cmd;
1: + __u32 active_fec;
1: + __u32 fec;
1: + __u32 reserved;
1: };
1:
1: struct ethtool_link_settings {
1: - __u32 cmd;
1: - __u32 speed;
1: - __u8 duplex;
1: - __u8 port;
1: - __u8 phy_address;
1: - __u8 autoneg;
1: - __u8 mdio_support;
1: - __u8 eth_tp_mdix;
1: - __u8 eth_tp_mdix_ctrl;
1: - __s8 link_mode_masks_nwords;
1: - __u8 transceiver;
1: - __u8 master_slave_cfg;
1: - __u8 master_slave_state;
1: - __u8 reserved1[1];
1: - __u32 reserved[7];
1: - __u32 link_mode_masks[0];
1: + __u32 cmd;
1: + __u32 speed;
1: + __u8 duplex;
1: + __u8 port;
1: + __u8 phy_address;
1: + __u8 autoneg;
1: + __u8 mdio_support;
1: + __u8 eth_tp_mdix;
1: + __u8 eth_tp_mdix_ctrl;
1: + __s8 link_mode_masks_nwords;
1: + __u8 transceiver;
1: + __u8 master_slave_cfg;
1: + __u8 master_slave_state;
1: + __u8 reserved1[1];
1: + __u32 reserved[7];
1: + __u32 link_mode_masks[0];
1: };
1:
1: enum ethtool_phys_id_state {
1: - ETHTOOL_ID_INACTIVE = 0,
1: - ETHTOOL_ID_ACTIVE = 1,
1: - ETHTOOL_ID_ON = 2,
1: - ETHTOOL_ID_OFF = 3,
1: + ETHTOOL_ID_INACTIVE = 0,
1: + ETHTOOL_ID_ACTIVE = 1,
1: + ETHTOOL_ID_ON = 2,
1: + ETHTOOL_ID_OFF = 3,
1: };
1:
1: struct ethtool_link_ext_state_info {
1: - enum ethtool_link_ext_state link_ext_state;
1: - union {
1: - enum ethtool_link_ext_substate_autoneg autoneg;
1: - enum ethtool_link_ext_substate_link_training link_training;
1: - enum ethtool_link_ext_substate_link_logical_mismatch link_logical_mismatch;
1: - enum ethtool_link_ext_substate_bad_signal_integrity bad_signal_integrity;
1: - enum ethtool_link_ext_substate_cable_issue cable_issue;
1: - u8 __link_ext_substate;
1: - };
1: + enum ethtool_link_ext_state link_ext_state;
1: + union {
1: + enum ethtool_link_ext_substate_autoneg autoneg;
1: + enum ethtool_link_ext_substate_link_training link_training;
1: + enum ethtool_link_ext_substate_link_logical_mismatch link_logical_mismatch;
1: + enum ethtool_link_ext_substate_bad_signal_integrity bad_signal_integrity;
1: + enum ethtool_link_ext_substate_cable_issue cable_issue;
1: + u8 __link_ext_substate;
1: + };
1: };
1:
1: struct ethtool_link_ksettings {
1: - struct ethtool_link_settings base;
1: - struct {
1: - long unsigned int supported[2];
1: - long unsigned int advertising[2];
1: - long unsigned int lp_advertising[2];
1: - } link_modes;
1: + struct ethtool_link_settings base;
1: + struct {
1: + long unsigned int supported[2];
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + } link_modes;
1: };
1:
1: struct ethtool_pause_stats {
1: - u64 tx_pause_frames;
1: - u64 rx_pause_frames;
1: + u64 tx_pause_frames;
1: + u64 rx_pause_frames;
1: };
1:
1: struct ethtool_ops {
1: - u32 supported_coalesce_params;
1: - void (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);
1: - int (*get_regs_len)(struct net_device *);
1: - void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
1: - void (*get_wol)(struct net_device *, struct ethtool_wolinfo *);
1: - int (*set_wol)(struct net_device *, struct ethtool_wolinfo *);
1: - u32 (*get_msglevel)(struct net_device *);
1: - void (*set_msglevel)(struct net_device *, u32);
1: - int (*nway_reset)(struct net_device *);
1: - u32 (*get_link)(struct net_device *);
1: - int (*get_link_ext_state)(struct net_device *, struct ethtool_link_ext_state_info *);
1: - int (*get_eeprom_len)(struct net_device *);
1: - int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: - int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: - int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: - int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: - void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: - int (*set_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: - void (*get_pause_stats)(struct net_device *, struct ethtool_pause_stats *);
1: - void (*get_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: - int (*set_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: - void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
1: - void (*get_strings)(struct net_device *, u32, u8 *);
1: - int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
1: - void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: - int (*begin)(struct net_device *);
1: - void (*complete)(struct net_device *);
1: - u32 (*get_priv_flags)(struct net_device *);
1: - int (*set_priv_flags)(struct net_device *, u32);
1: - int (*get_sset_count)(struct net_device *, int);
1: - int (*get_rxnfc)(struct net_device *, struct ethtool_rxnfc *, u32 *);
1: - int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *);
1: - int (*flash_device)(struct net_device *, struct ethtool_flash *);
1: - int (*reset)(struct net_device *, u32 *);
1: - u32 (*get_rxfh_key_size)(struct net_device *);
1: - u32 (*get_rxfh_indir_size)(struct net_device *);
1: - int (*get_rxfh)(struct net_device *, u32 *, u8 *, u8 *);
1: - int (*set_rxfh)(struct net_device *, const u32 *, const u8 *, const u8);
1: - int (*get_rxfh_context)(struct net_device *, u32 *, u8 *, u8 *, u32);
1: - int (*set_rxfh_context)(struct net_device *, const u32 *, const u8 *, const u8, u32 *, bool);
1: - void (*get_channels)(struct net_device *, struct ethtool_channels *);
1: - int (*set_channels)(struct net_device *, struct ethtool_channels *);
1: - int (*get_dump_flag)(struct net_device *, struct ethtool_dump *);
1: - int (*get_dump_data)(struct net_device *, struct ethtool_dump *, void *);
1: - int (*set_dump)(struct net_device *, struct ethtool_dump *);
1: - int (*get_ts_info)(struct net_device *, struct ethtool_ts_info *);
1: - int (*get_module_info)(struct net_device *, struct ethtool_modinfo *);
1: - int (*get_module_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: - int (*get_eee)(struct net_device *, struct ethtool_eee *);
1: - int (*set_eee)(struct net_device *, struct ethtool_eee *);
1: - int (*get_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: - int (*set_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: - int (*get_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: - int (*set_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: - int (*get_link_ksettings)(struct net_device *, struct ethtool_link_ksettings *);
1: - int (*set_link_ksettings)(struct net_device *, const struct ethtool_link_ksettings *);
1: - int (*get_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: - int (*set_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: - void (*get_ethtool_phy_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: - int (*get_phy_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: - int (*set_phy_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: + u32 supported_coalesce_params;
1: + void (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);
1: + int (*get_regs_len)(struct net_device *);
1: + void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
1: + void (*get_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + int (*set_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + u32 (*get_msglevel)(struct net_device *);
1: + void (*set_msglevel)(struct net_device *, u32);
1: + int (*nway_reset)(struct net_device *);
1: + u32 (*get_link)(struct net_device *);
1: + int (*get_link_ext_state)(struct net_device *,
1: + struct ethtool_link_ext_state_info *);
1: + int (*get_eeprom_len)(struct net_device *);
1: + int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + int (*set_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + void (*get_pause_stats)(struct net_device *, struct ethtool_pause_stats *);
1: + void (*get_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + int (*set_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
1: + void (*get_strings)(struct net_device *, u32, u8 *);
1: + int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
1: + void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: + int (*begin)(struct net_device *);
1: + void (*complete)(struct net_device *);
1: + u32 (*get_priv_flags)(struct net_device *);
1: + int (*set_priv_flags)(struct net_device *, u32);
1: + int (*get_sset_count)(struct net_device *, int);
1: + int (*get_rxnfc)(struct net_device *, struct ethtool_rxnfc *, u32 *);
1: + int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *);
1: + int (*flash_device)(struct net_device *, struct ethtool_flash *);
1: + int (*reset)(struct net_device *, u32 *);
1: + u32 (*get_rxfh_key_size)(struct net_device *);
1: + u32 (*get_rxfh_indir_size)(struct net_device *);
1: + int (*get_rxfh)(struct net_device *, u32 *, u8 *, u8 *);
1: + int (*set_rxfh)(struct net_device *, const u32 *, const u8 *, const u8);
1: + int (*get_rxfh_context)(struct net_device *, u32 *, u8 *, u8 *, u32);
1: + int (*set_rxfh_context)(struct net_device *, const u32 *, const u8 *,
1: + const u8, u32 *, bool);
1: + void (*get_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*set_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*get_dump_flag)(struct net_device *, struct ethtool_dump *);
1: + int (*get_dump_data)(struct net_device *, struct ethtool_dump *, void *);
1: + int (*set_dump)(struct net_device *, struct ethtool_dump *);
1: + int (*get_ts_info)(struct net_device *, struct ethtool_ts_info *);
1: + int (*get_module_info)(struct net_device *, struct ethtool_modinfo *);
1: + int (*get_module_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*set_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*get_tunable)(struct net_device *, const struct ethtool_tunable *,
1: + void *);
1: + int (*set_tunable)(struct net_device *, const struct ethtool_tunable *,
1: + const void *);
1: + int (*get_per_queue_coalesce)(struct net_device *, u32,
1: + struct ethtool_coalesce *);
1: + int (*set_per_queue_coalesce)(struct net_device *, u32,
1: + struct ethtool_coalesce *);
1: + int (*get_link_ksettings)(struct net_device *,
1: + struct ethtool_link_ksettings *);
1: + int (*set_link_ksettings)(struct net_device *,
1: + const struct ethtool_link_ksettings *);
1: + int (*get_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + int (*set_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + void (*get_ethtool_phy_stats)(struct net_device *, struct ethtool_stats *,
1: + u64 *);
1: + int (*get_phy_tunable)(struct net_device *, const struct ethtool_tunable *,
1: + void *);
1: + int (*set_phy_tunable)(struct net_device *, const struct ethtool_tunable *,
1: + const void *);
1: };
1:
1: struct netlink_ext_ack {
1: - const char *_msg;
1: - const struct nlattr *bad_attr;
1: - const struct nla_policy *policy;
1: - u8 cookie[20];
1: - u8 cookie_len;
1: + const char *_msg;
1: + const struct nlattr *bad_attr;
1: + const struct nla_policy *policy;
1: + u8 cookie[20];
1: + u8 cookie_len;
1: };
1:
1: struct ieee_ets {
1: - __u8 willing;
1: - __u8 ets_cap;
1: - __u8 cbs;
1: - __u8 tc_tx_bw[8];
1: - __u8 tc_rx_bw[8];
1: - __u8 tc_tsa[8];
1: - __u8 prio_tc[8];
1: - __u8 tc_reco_bw[8];
1: - __u8 tc_reco_tsa[8];
1: - __u8 reco_prio_tc[8];
1: + __u8 willing;
1: + __u8 ets_cap;
1: + __u8 cbs;
1: + __u8 tc_tx_bw[8];
1: + __u8 tc_rx_bw[8];
1: + __u8 tc_tsa[8];
1: + __u8 prio_tc[8];
1: + __u8 tc_reco_bw[8];
1: + __u8 tc_reco_tsa[8];
1: + __u8 reco_prio_tc[8];
1: };
1:
1: struct ieee_maxrate {
1: - __u64 tc_maxrate[8];
1: + __u64 tc_maxrate[8];
1: };
1:
1: struct ieee_qcn {
1: - __u8 rpg_enable[8];
1: - __u32 rppp_max_rps[8];
1: - __u32 rpg_time_reset[8];
1: - __u32 rpg_byte_reset[8];
1: - __u32 rpg_threshold[8];
1: - __u32 rpg_max_rate[8];
1: - __u32 rpg_ai_rate[8];
1: - __u32 rpg_hai_rate[8];
1: - __u32 rpg_gd[8];
1: - __u32 rpg_min_dec_fac[8];
1: - __u32 rpg_min_rate[8];
1: - __u32 cndd_state_machine[8];
1: + __u8 rpg_enable[8];
1: + __u32 rppp_max_rps[8];
1: + __u32 rpg_time_reset[8];
1: + __u32 rpg_byte_reset[8];
1: + __u32 rpg_threshold[8];
1: + __u32 rpg_max_rate[8];
1: + __u32 rpg_ai_rate[8];
1: + __u32 rpg_hai_rate[8];
1: + __u32 rpg_gd[8];
1: + __u32 rpg_min_dec_fac[8];
1: + __u32 rpg_min_rate[8];
1: + __u32 cndd_state_machine[8];
1: };
1:
1: struct ieee_qcn_stats {
1: - __u64 rppp_rp_centiseconds[8];
1: - __u32 rppp_created_rps[8];
1: + __u64 rppp_rp_centiseconds[8];
1: + __u32 rppp_created_rps[8];
1: };
1:
1: struct ieee_pfc {
1: - __u8 pfc_cap;
1: - __u8 pfc_en;
1: - __u8 mbc;
1: - __u16 delay;
1: - __u64 requests[8];
1: - __u64 indications[8];
1: + __u8 pfc_cap;
1: + __u8 pfc_en;
1: + __u8 mbc;
1: + __u16 delay;
1: + __u64 requests[8];
1: + __u64 indications[8];
1: };
1:
1: struct dcbnl_buffer {
1: - __u8 prio2buffer[8];
1: - __u32 buffer_size[8];
1: - __u32 total_size;
1: + __u8 prio2buffer[8];
1: + __u32 buffer_size[8];
1: + __u32 total_size;
1: };
1:
1: struct cee_pg {
1: - __u8 willing;
1: - __u8 error;
1: - __u8 pg_en;
1: - __u8 tcs_supported;
1: - __u8 pg_bw[8];
1: - __u8 prio_pg[8];
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pg_en;
1: + __u8 tcs_supported;
1: + __u8 pg_bw[8];
1: + __u8 prio_pg[8];
1: };
1:
1: struct cee_pfc {
1: - __u8 willing;
1: - __u8 error;
1: - __u8 pfc_en;
1: - __u8 tcs_supported;
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pfc_en;
1: + __u8 tcs_supported;
1: };
1:
1: struct dcb_app {
1: - __u8 selector;
1: - __u8 priority;
1: - __u16 protocol;
1: + __u8 selector;
1: + __u8 priority;
1: + __u16 protocol;
1: };
1:
1: struct dcb_peer_app_info {
1: - __u8 willing;
1: - __u8 error;
1: + __u8 willing;
1: + __u8 error;
1: };
1:
1: struct dcbnl_rtnl_ops {
1: - int (*ieee_getets)(struct net_device *, struct ieee_ets *);
1: - int (*ieee_setets)(struct net_device *, struct ieee_ets *);
1: - int (*ieee_getmaxrate)(struct net_device *, struct ieee_maxrate *);
1: - int (*ieee_setmaxrate)(struct net_device *, struct ieee_maxrate *);
1: - int (*ieee_getqcn)(struct net_device *, struct ieee_qcn *);
1: - int (*ieee_setqcn)(struct net_device *, struct ieee_qcn *);
1: - int (*ieee_getqcnstats)(struct net_device *, struct ieee_qcn_stats *);
1: - int (*ieee_getpfc)(struct net_device *, struct ieee_pfc *);
1: - int (*ieee_setpfc)(struct net_device *, struct ieee_pfc *);
1: - int (*ieee_getapp)(struct net_device *, struct dcb_app *);
1: - int (*ieee_setapp)(struct net_device *, struct dcb_app *);
1: - int (*ieee_delapp)(struct net_device *, struct dcb_app *);
1: - int (*ieee_peer_getets)(struct net_device *, struct ieee_ets *);
1: - int (*ieee_peer_getpfc)(struct net_device *, struct ieee_pfc *);
1: - u8 (*getstate)(struct net_device *);
1: - u8 (*setstate)(struct net_device *, u8);
1: - void (*getpermhwaddr)(struct net_device *, u8 *);
1: - void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
1: - void (*setpgbwgcfgtx)(struct net_device *, int, u8);
1: - void (*setpgtccfgrx)(struct net_device *, int, u8, u8, u8, u8);
1: - void (*setpgbwgcfgrx)(struct net_device *, int, u8);
1: - void (*getpgtccfgtx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: - void (*getpgbwgcfgtx)(struct net_device *, int, u8 *);
1: - void (*getpgtccfgrx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: - void (*getpgbwgcfgrx)(struct net_device *, int, u8 *);
1: - void (*setpfccfg)(struct net_device *, int, u8);
1: - void (*getpfccfg)(struct net_device *, int, u8 *);
1: - u8 (*setall)(struct net_device *);
1: - u8 (*getcap)(struct net_device *, int, u8 *);
1: - int (*getnumtcs)(struct net_device *, int, u8 *);
1: - int (*setnumtcs)(struct net_device *, int, u8);
1: - u8 (*getpfcstate)(struct net_device *);
1: - void (*setpfcstate)(struct net_device *, u8);
1: - void (*getbcncfg)(struct net_device *, int, u32 *);
1: - void (*setbcncfg)(struct net_device *, int, u32);
1: - void (*getbcnrp)(struct net_device *, int, u8 *);
1: - void (*setbcnrp)(struct net_device *, int, u8);
1: - int (*setapp)(struct net_device *, u8, u16, u8);
1: - int (*getapp)(struct net_device *, u8, u16);
1: - u8 (*getfeatcfg)(struct net_device *, int, u8 *);
1: - u8 (*setfeatcfg)(struct net_device *, int, u8);
1: - u8 (*getdcbx)(struct net_device *);
1: - u8 (*setdcbx)(struct net_device *, u8);
1: - int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *, u16 *);
1: - int (*peer_getapptable)(struct net_device *, struct dcb_app *);
1: - int (*cee_peer_getpg)(struct net_device *, struct cee_pg *);
1: - int (*cee_peer_getpfc)(struct net_device *, struct cee_pfc *);
1: - int (*dcbnl_getbuffer)(struct net_device *, struct dcbnl_buffer *);
1: - int (*dcbnl_setbuffer)(struct net_device *, struct dcbnl_buffer *);
1: + int (*ieee_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_setets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_getmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_setmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_getqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_setqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_getqcnstats)(struct net_device *, struct ieee_qcn_stats *);
1: + int (*ieee_getpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_setpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_getapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_setapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_delapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_peer_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_peer_getpfc)(struct net_device *, struct ieee_pfc *);
1: + u8 (*getstate)(struct net_device *);
1: + u8 (*setstate)(struct net_device *, u8);
1: + void (*getpermhwaddr)(struct net_device *, u8 *);
1: + void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgtx)(struct net_device *, int, u8);
1: + void (*setpgtccfgrx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgrx)(struct net_device *, int, u8);
1: + void (*getpgtccfgtx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgtx)(struct net_device *, int, u8 *);
1: + void (*getpgtccfgrx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgrx)(struct net_device *, int, u8 *);
1: + void (*setpfccfg)(struct net_device *, int, u8);
1: + void (*getpfccfg)(struct net_device *, int, u8 *);
1: + u8 (*setall)(struct net_device *);
1: + u8 (*getcap)(struct net_device *, int, u8 *);
1: + int (*getnumtcs)(struct net_device *, int, u8 *);
1: + int (*setnumtcs)(struct net_device *, int, u8);
1: + u8 (*getpfcstate)(struct net_device *);
1: + void (*setpfcstate)(struct net_device *, u8);
1: + void (*getbcncfg)(struct net_device *, int, u32 *);
1: + void (*setbcncfg)(struct net_device *, int, u32);
1: + void (*getbcnrp)(struct net_device *, int, u8 *);
1: + void (*setbcnrp)(struct net_device *, int, u8);
1: + int (*setapp)(struct net_device *, u8, u16, u8);
1: + int (*getapp)(struct net_device *, u8, u16);
1: + u8 (*getfeatcfg)(struct net_device *, int, u8 *);
1: + u8 (*setfeatcfg)(struct net_device *, int, u8);
1: + u8 (*getdcbx)(struct net_device *);
1: + u8 (*setdcbx)(struct net_device *, u8);
1: + int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *,
1: + u16 *);
1: + int (*peer_getapptable)(struct net_device *, struct dcb_app *);
1: + int (*cee_peer_getpg)(struct net_device *, struct cee_pg *);
1: + int (*cee_peer_getpfc)(struct net_device *, struct cee_pfc *);
1: + int (*dcbnl_getbuffer)(struct net_device *, struct dcbnl_buffer *);
1: + int (*dcbnl_setbuffer)(struct net_device *, struct dcbnl_buffer *);
1: };
1:
1: struct netprio_map {
1: - struct callback_head rcu;
1: - u32 priomap_len;
1: - u32 priomap[0];
1: + struct callback_head rcu;
1: + u32 priomap_len;
1: + u32 priomap[0];
1: };
1:
1: struct xdp_mem_info {
1: - u32 type;
1: - u32 id;
1: + u32 type;
1: + u32 id;
1: };
1:
1: struct xdp_rxq_info {
1: - struct net_device *dev;
1: - u32 queue_index;
1: - u32 reg_state;
1: - struct xdp_mem_info mem;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct net_device *dev;
1: + u32 queue_index;
1: + u32 reg_state;
1: + struct xdp_mem_info mem;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xdp_frame {
1: - void *data;
1: - u16 len;
1: - u16 headroom;
1: - u32 metasize: 8;
1: - u32 frame_sz: 24;
1: - struct xdp_mem_info mem;
1: - struct net_device *dev_rx;
1: + void *data;
1: + u16 len;
1: + u16 headroom;
1: + u32 metasize : 8;
1: + u32 frame_sz : 24;
1: + struct xdp_mem_info mem;
1: + struct net_device *dev_rx;
1: };
1:
1: struct nlmsghdr {
1: - __u32 nlmsg_len;
1: - __u16 nlmsg_type;
1: - __u16 nlmsg_flags;
1: - __u32 nlmsg_seq;
1: - __u32 nlmsg_pid;
1: + __u32 nlmsg_len;
1: + __u16 nlmsg_type;
1: + __u16 nlmsg_flags;
1: + __u32 nlmsg_seq;
1: + __u32 nlmsg_pid;
1: };
1:
1: struct nlattr {
1: - __u16 nla_len;
1: - __u16 nla_type;
1: + __u16 nla_len;
1: + __u16 nla_type;
1: };
1:
1: struct netlink_range_validation;
1: @@ -11572,193 +11700,195 @@ struct netlink_range_validation;
1: struct netlink_range_validation_signed;
1:
1: struct nla_policy {
1: - u8 type;
1: - u8 validation_type;
1: - u16 len;
1: - union {
1: - const u32 bitfield32_valid;
1: - const u32 mask;
1: - const char *reject_message;
1: - const struct nla_policy *nested_policy;
1: - struct netlink_range_validation *range;
1: - struct netlink_range_validation_signed *range_signed;
1: - struct {
1: - s16 min;
1: - s16 max;
1: - };
1: - int (*validate)(const struct nlattr *, struct netlink_ext_ack *);
1: - u16 strict_start_type;
1: - };
1: + u8 type;
1: + u8 validation_type;
1: + u16 len;
1: + union {
1: + const u32 bitfield32_valid;
1: + const u32 mask;
1: + const char *reject_message;
1: + const struct nla_policy *nested_policy;
1: + struct netlink_range_validation *range;
1: + struct netlink_range_validation_signed *range_signed;
1: + struct {
1: + s16 min;
1: + s16 max;
1: + };
1: + int (*validate)(const struct nlattr *, struct netlink_ext_ack *);
1: + u16 strict_start_type;
1: + };
1: };
1:
1: struct netlink_callback {
1: - struct sk_buff *skb;
1: - const struct nlmsghdr *nlh;
1: - int (*dump)(struct sk_buff *, struct netlink_callback *);
1: - int (*done)(struct netlink_callback *);
1: - void *data;
1: - struct module *module;
1: - struct netlink_ext_ack *extack;
1: - u16 family;
1: - u16 answer_flags;
1: - u32 min_dump_alloc;
1: - unsigned int prev_seq;
1: - unsigned int seq;
1: - bool strict_check;
1: - union {
1: - u8 ctx[48];
1: - long int args[6];
1: - };
1: + struct sk_buff *skb;
1: + const struct nlmsghdr *nlh;
1: + int (*dump)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + void *data;
1: + struct module *module;
1: + struct netlink_ext_ack *extack;
1: + u16 family;
1: + u16 answer_flags;
1: + u32 min_dump_alloc;
1: + unsigned int prev_seq;
1: + unsigned int seq;
1: + bool strict_check;
1: + union {
1: + u8 ctx[48];
1: + long int args[6];
1: + };
1: };
1:
1: struct ndmsg {
1: - __u8 ndm_family;
1: - __u8 ndm_pad1;
1: - __u16 ndm_pad2;
1: - __s32 ndm_ifindex;
1: - __u16 ndm_state;
1: - __u8 ndm_flags;
1: - __u8 ndm_type;
1: + __u8 ndm_family;
1: + __u8 ndm_pad1;
1: + __u16 ndm_pad2;
1: + __s32 ndm_ifindex;
1: + __u16 ndm_state;
1: + __u8 ndm_flags;
1: + __u8 ndm_type;
1: };
1:
1: struct rtnl_link_stats64 {
1: - __u64 rx_packets;
1: - __u64 tx_packets;
1: - __u64 rx_bytes;
1: - __u64 tx_bytes;
1: - __u64 rx_errors;
1: - __u64 tx_errors;
1: - __u64 rx_dropped;
1: - __u64 tx_dropped;
1: - __u64 multicast;
1: - __u64 collisions;
1: - __u64 rx_length_errors;
1: - __u64 rx_over_errors;
1: - __u64 rx_crc_errors;
1: - __u64 rx_frame_errors;
1: - __u64 rx_fifo_errors;
1: - __u64 rx_missed_errors;
1: - __u64 tx_aborted_errors;
1: - __u64 tx_carrier_errors;
1: - __u64 tx_fifo_errors;
1: - __u64 tx_heartbeat_errors;
1: - __u64 tx_window_errors;
1: - __u64 rx_compressed;
1: - __u64 tx_compressed;
1: - __u64 rx_nohandler;
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 rx_errors;
1: + __u64 tx_errors;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: + __u64 multicast;
1: + __u64 collisions;
1: + __u64 rx_length_errors;
1: + __u64 rx_over_errors;
1: + __u64 rx_crc_errors;
1: + __u64 rx_frame_errors;
1: + __u64 rx_fifo_errors;
1: + __u64 rx_missed_errors;
1: + __u64 tx_aborted_errors;
1: + __u64 tx_carrier_errors;
1: + __u64 tx_fifo_errors;
1: + __u64 tx_heartbeat_errors;
1: + __u64 tx_window_errors;
1: + __u64 rx_compressed;
1: + __u64 tx_compressed;
1: + __u64 rx_nohandler;
1: };
1:
1: struct ifla_vf_guid {
1: - __u32 vf;
1: - __u64 guid;
1: + __u32 vf;
1: + __u64 guid;
1: };
1:
1: struct ifla_vf_stats {
1: - __u64 rx_packets;
1: - __u64 tx_packets;
1: - __u64 rx_bytes;
1: - __u64 tx_bytes;
1: - __u64 broadcast;
1: - __u64 multicast;
1: - __u64 rx_dropped;
1: - __u64 tx_dropped;
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 broadcast;
1: + __u64 multicast;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: };
1:
1: struct ifla_vf_info {
1: - __u32 vf;
1: - __u8 mac[32];
1: - __u32 vlan;
1: - __u32 qos;
1: - __u32 spoofchk;
1: - __u32 linkstate;
1: - __u32 min_tx_rate;
1: - __u32 max_tx_rate;
1: - __u32 rss_query_en;
1: - __u32 trusted;
1: - __be16 vlan_proto;
1: + __u32 vf;
1: + __u8 mac[32];
1: + __u32 vlan;
1: + __u32 qos;
1: + __u32 spoofchk;
1: + __u32 linkstate;
1: + __u32 min_tx_rate;
1: + __u32 max_tx_rate;
1: + __u32 rss_query_en;
1: + __u32 trusted;
1: + __be16 vlan_proto;
1: };
1:
1: struct tc_stats {
1: - __u64 bytes;
1: - __u32 packets;
1: - __u32 drops;
1: - __u32 overlimits;
1: - __u32 bps;
1: - __u32 pps;
1: - __u32 qlen;
1: - __u32 backlog;
1: + __u64 bytes;
1: + __u32 packets;
1: + __u32 drops;
1: + __u32 overlimits;
1: + __u32 bps;
1: + __u32 pps;
1: + __u32 qlen;
1: + __u32 backlog;
1: };
1:
1: struct tc_sizespec {
1: - unsigned char cell_log;
1: - unsigned char size_log;
1: - short int cell_align;
1: - int overhead;
1: - unsigned int linklayer;
1: - unsigned int mpu;
1: - unsigned int mtu;
1: - unsigned int tsize;
1: + unsigned char cell_log;
1: + unsigned char size_log;
1: + short int cell_align;
1: + int overhead;
1: + unsigned int linklayer;
1: + unsigned int mpu;
1: + unsigned int mtu;
1: + unsigned int tsize;
1: };
1:
1: enum netdev_tx {
1: - __NETDEV_TX_MIN = 2147483648,
1: - NETDEV_TX_OK = 0,
1: - NETDEV_TX_BUSY = 16,
1: + __NETDEV_TX_MIN = 2147483648,
1: + NETDEV_TX_OK = 0,
1: + NETDEV_TX_BUSY = 16,
1: };
1:
1: typedef enum netdev_tx netdev_tx_t;
1:
1: struct header_ops {
1: - int (*create)(struct sk_buff *, struct net_device *, short unsigned int, const void *, const void *, unsigned int);
1: - int (*parse)(const struct sk_buff *, unsigned char *);
1: - int (*cache)(const struct neighbour *, struct hh_cache *, __be16);
1: - void (*cache_update)(struct hh_cache *, const struct net_device *, const unsigned char *);
1: - bool (*validate)(const char *, unsigned int);
1: - __be16 (*parse_protocol)(const struct sk_buff *);
1: + int (*create)(struct sk_buff *, struct net_device *, short unsigned int,
1: + const void *, const void *, unsigned int);
1: + int (*parse)(const struct sk_buff *, unsigned char *);
1: + int (*cache)(const struct neighbour *, struct hh_cache *, __be16);
1: + void (*cache_update)(struct hh_cache *, const struct net_device *,
1: + const unsigned char *);
1: + bool (*validate)(const char *, unsigned int);
1: + __be16 (*parse_protocol)(const struct sk_buff *);
1: };
1:
1: struct xsk_buff_pool;
1:
1: struct netdev_queue {
1: - struct net_device *dev;
1: - struct Qdisc *qdisc;
1: - struct Qdisc *qdisc_sleeping;
1: - struct kobject kobj;
1: - int numa_node;
1: - long unsigned int tx_maxrate;
1: - long unsigned int trans_timeout;
1: - struct net_device *sb_dev;
1: - struct xsk_buff_pool *pool;
1: - spinlock_t _xmit_lock;
1: - int xmit_lock_owner;
1: - long unsigned int trans_start;
1: - long unsigned int state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct dql dql;
1: + struct net_device *dev;
1: + struct Qdisc *qdisc;
1: + struct Qdisc *qdisc_sleeping;
1: + struct kobject kobj;
1: + int numa_node;
1: + long unsigned int tx_maxrate;
1: + long unsigned int trans_timeout;
1: + struct net_device *sb_dev;
1: + struct xsk_buff_pool *pool;
1: + spinlock_t _xmit_lock;
1: + int xmit_lock_owner;
1: + long unsigned int trans_start;
1: + long unsigned int state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct dql dql;
1: };
1:
1: struct qdisc_skb_head {
1: - struct sk_buff *head;
1: - struct sk_buff *tail;
1: - __u32 qlen;
1: - spinlock_t lock;
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + __u32 qlen;
1: + spinlock_t lock;
1: };
1:
1: struct gnet_stats_basic_packed {
1: - __u64 bytes;
1: - __u64 packets;
1: + __u64 bytes;
1: + __u64 packets;
1: };
1:
1: struct gnet_stats_queue {
1: - __u32 qlen;
1: - __u32 backlog;
1: - __u32 drops;
1: - __u32 requeues;
1: - __u32 overlimits;
1: + __u32 qlen;
1: + __u32 backlog;
1: + __u32 drops;
1: + __u32 requeues;
1: + __u32 overlimits;
1: };
1:
1: struct Qdisc_ops;
1: @@ -11770,175 +11900,175 @@ struct net_rate_estimator;
1: struct gnet_stats_basic_cpu;
1:
1: struct Qdisc {
1: - int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: - struct sk_buff * (*dequeue)(struct Qdisc *);
1: - unsigned int flags;
1: - u32 limit;
1: - const struct Qdisc_ops *ops;
1: - struct qdisc_size_table *stab;
1: - struct hlist_node hash;
1: - u32 handle;
1: - u32 parent;
1: - struct netdev_queue *dev_queue;
1: - struct net_rate_estimator *rate_est;
1: - struct gnet_stats_basic_cpu *cpu_bstats;
1: - struct gnet_stats_queue *cpu_qstats;
1: - int pad;
1: - refcount_t refcnt;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sk_buff_head gso_skb;
1: - struct qdisc_skb_head q;
1: - struct gnet_stats_basic_packed bstats;
1: - seqcount_t running;
1: - struct gnet_stats_queue qstats;
1: - long unsigned int state;
1: - struct Qdisc *next_sched;
1: - struct sk_buff_head skb_bad_txq;
1: - spinlock_t busylock;
1: - spinlock_t seqlock;
1: - bool empty;
1: - struct callback_head rcu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long int privdata[0];
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff *(*dequeue)(struct Qdisc *);
1: + unsigned int flags;
1: + u32 limit;
1: + const struct Qdisc_ops *ops;
1: + struct qdisc_size_table *stab;
1: + struct hlist_node hash;
1: + u32 handle;
1: + u32 parent;
1: + struct netdev_queue *dev_queue;
1: + struct net_rate_estimator *rate_est;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + int pad;
1: + refcount_t refcnt;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sk_buff_head gso_skb;
1: + struct qdisc_skb_head q;
1: + struct gnet_stats_basic_packed bstats;
1: + seqcount_t running;
1: + struct gnet_stats_queue qstats;
1: + long unsigned int state;
1: + struct Qdisc *next_sched;
1: + struct sk_buff_head skb_bad_txq;
1: + spinlock_t busylock;
1: + spinlock_t seqlock;
1: + bool empty;
1: + struct callback_head rcu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long int privdata[0];
1: };
1:
1: struct rps_map {
1: - unsigned int len;
1: - struct callback_head rcu;
1: - u16 cpus[0];
1: + unsigned int len;
1: + struct callback_head rcu;
1: + u16 cpus[0];
1: };
1:
1: struct rps_dev_flow {
1: - u16 cpu;
1: - u16 filter;
1: - unsigned int last_qtail;
1: + u16 cpu;
1: + u16 filter;
1: + unsigned int last_qtail;
1: };
1:
1: struct rps_dev_flow_table {
1: - unsigned int mask;
1: - struct callback_head rcu;
1: - struct rps_dev_flow flows[0];
1: + unsigned int mask;
1: + struct callback_head rcu;
1: + struct rps_dev_flow flows[0];
1: };
1:
1: struct netdev_rx_queue {
1: - struct rps_map *rps_map;
1: - struct rps_dev_flow_table *rps_flow_table;
1: - struct kobject kobj;
1: - struct net_device *dev;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct xdp_rxq_info xdp_rxq;
1: - struct xsk_buff_pool *pool;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct rps_map *rps_map;
1: + struct rps_dev_flow_table *rps_flow_table;
1: + struct kobject kobj;
1: + struct net_device *dev;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct xdp_rxq_info xdp_rxq;
1: + struct xsk_buff_pool *pool;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xps_map {
1: - unsigned int len;
1: - unsigned int alloc_len;
1: - struct callback_head rcu;
1: - u16 queues[0];
1: + unsigned int len;
1: + unsigned int alloc_len;
1: + struct callback_head rcu;
1: + u16 queues[0];
1: };
1:
1: struct xps_dev_maps {
1: - struct callback_head rcu;
1: - struct xps_map *attr_map[0];
1: + struct callback_head rcu;
1: + struct xps_map *attr_map[0];
1: };
1:
1: struct netdev_fcoe_hbainfo {
1: - char manufacturer[64];
1: - char serial_number[64];
1: - char hardware_version[64];
1: - char driver_version[64];
1: - char optionrom_version[64];
1: - char firmware_version[64];
1: - char model[256];
1: - char model_description[256];
1: + char manufacturer[64];
1: + char serial_number[64];
1: + char hardware_version[64];
1: + char driver_version[64];
1: + char optionrom_version[64];
1: + char firmware_version[64];
1: + char model[256];
1: + char model_description[256];
1: };
1:
1: struct netdev_phys_item_id {
1: - unsigned char id[32];
1: - unsigned char id_len;
1: + unsigned char id[32];
1: + unsigned char id_len;
1: };
1:
1: enum tc_setup_type {
1: - TC_SETUP_QDISC_MQPRIO = 0,
1: - TC_SETUP_CLSU32 = 1,
1: - TC_SETUP_CLSFLOWER = 2,
1: - TC_SETUP_CLSMATCHALL = 3,
1: - TC_SETUP_CLSBPF = 4,
1: - TC_SETUP_BLOCK = 5,
1: - TC_SETUP_QDISC_CBS = 6,
1: - TC_SETUP_QDISC_RED = 7,
1: - TC_SETUP_QDISC_PRIO = 8,
1: - TC_SETUP_QDISC_MQ = 9,
1: - TC_SETUP_QDISC_ETF = 10,
1: - TC_SETUP_ROOT_QDISC = 11,
1: - TC_SETUP_QDISC_GRED = 12,
1: - TC_SETUP_QDISC_TAPRIO = 13,
1: - TC_SETUP_FT = 14,
1: - TC_SETUP_QDISC_ETS = 15,
1: - TC_SETUP_QDISC_TBF = 16,
1: - TC_SETUP_QDISC_FIFO = 17,
1: + TC_SETUP_QDISC_MQPRIO = 0,
1: + TC_SETUP_CLSU32 = 1,
1: + TC_SETUP_CLSFLOWER = 2,
1: + TC_SETUP_CLSMATCHALL = 3,
1: + TC_SETUP_CLSBPF = 4,
1: + TC_SETUP_BLOCK = 5,
1: + TC_SETUP_QDISC_CBS = 6,
1: + TC_SETUP_QDISC_RED = 7,
1: + TC_SETUP_QDISC_PRIO = 8,
1: + TC_SETUP_QDISC_MQ = 9,
1: + TC_SETUP_QDISC_ETF = 10,
1: + TC_SETUP_ROOT_QDISC = 11,
1: + TC_SETUP_QDISC_GRED = 12,
1: + TC_SETUP_QDISC_TAPRIO = 13,
1: + TC_SETUP_FT = 14,
1: + TC_SETUP_QDISC_ETS = 15,
1: + TC_SETUP_QDISC_TBF = 16,
1: + TC_SETUP_QDISC_FIFO = 17,
1: };
1:
1: enum bpf_netdev_command {
1: - XDP_SETUP_PROG = 0,
1: - XDP_SETUP_PROG_HW = 1,
1: - BPF_OFFLOAD_MAP_ALLOC = 2,
1: - BPF_OFFLOAD_MAP_FREE = 3,
1: - XDP_SETUP_XSK_POOL = 4,
1: + XDP_SETUP_PROG = 0,
1: + XDP_SETUP_PROG_HW = 1,
1: + BPF_OFFLOAD_MAP_ALLOC = 2,
1: + BPF_OFFLOAD_MAP_FREE = 3,
1: + XDP_SETUP_XSK_POOL = 4,
1: };
1:
1: struct netdev_bpf {
1: - enum bpf_netdev_command command;
1: - union {
1: - struct {
1: - u32 flags;
1: - struct bpf_prog *prog;
1: - struct netlink_ext_ack *extack;
1: - };
1: - struct {
1: - struct bpf_offloaded_map *offmap;
1: - };
1: - struct {
1: - struct xsk_buff_pool *pool;
1: - u16 queue_id;
1: - } xsk;
1: - };
1: + enum bpf_netdev_command command;
1: + union {
1: + struct {
1: + u32 flags;
1: + struct bpf_prog *prog;
1: + struct netlink_ext_ack *extack;
1: + };
1: + struct {
1: + struct bpf_offloaded_map *offmap;
1: + };
1: + struct {
1: + struct xsk_buff_pool *pool;
1: + u16 queue_id;
1: + } xsk;
1: + };
1: };
1:
1: struct xfrmdev_ops {
1: - int (*xdo_dev_state_add)(struct xfrm_state *);
1: - void (*xdo_dev_state_delete)(struct xfrm_state *);
1: - void (*xdo_dev_state_free)(struct xfrm_state *);
1: - bool (*xdo_dev_offload_ok)(struct sk_buff *, struct xfrm_state *);
1: - void (*xdo_dev_state_advance_esn)(struct xfrm_state *);
1: + int (*xdo_dev_state_add)(struct xfrm_state *);
1: + void (*xdo_dev_state_delete)(struct xfrm_state *);
1: + void (*xdo_dev_state_free)(struct xfrm_state *);
1: + bool (*xdo_dev_offload_ok)(struct sk_buff *, struct xfrm_state *);
1: + void (*xdo_dev_state_advance_esn)(struct xfrm_state *);
1: };
1:
1: struct dev_ifalias {
1: - struct callback_head rcuhead;
1: - char ifalias[0];
1: + struct callback_head rcuhead;
1: + char ifalias[0];
1: };
1:
1: struct netdev_name_node {
1: - struct hlist_node hlist;
1: - struct list_head list;
1: - struct net_device *dev;
1: - const char *name;
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + struct net_device *dev;
1: + const char *name;
1: };
1:
1: struct udp_tunnel_info;
1: @@ -11948,142 +12078,163 @@ struct devlink_port;
1: struct ip_tunnel_parm;
1:
1: struct net_device_ops {
1: - int (*ndo_init)(struct net_device *);
1: - void (*ndo_uninit)(struct net_device *);
1: - int (*ndo_open)(struct net_device *);
1: - int (*ndo_stop)(struct net_device *);
1: - netdev_tx_t (*ndo_start_xmit)(struct sk_buff *, struct net_device *);
1: - netdev_features_t (*ndo_features_check)(struct sk_buff *, struct net_device *, netdev_features_t);
1: - u16 (*ndo_select_queue)(struct net_device *, struct sk_buff *, struct net_device *);
1: - void (*ndo_change_rx_flags)(struct net_device *, int);
1: - void (*ndo_set_rx_mode)(struct net_device *);
1: - int (*ndo_set_mac_address)(struct net_device *, void *);
1: - int (*ndo_validate_addr)(struct net_device *);
1: - int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: - int (*ndo_set_config)(struct net_device *, struct ifmap *);
1: - int (*ndo_change_mtu)(struct net_device *, int);
1: - int (*ndo_neigh_setup)(struct net_device *, struct neigh_parms *);
1: - void (*ndo_tx_timeout)(struct net_device *, unsigned int);
1: - void (*ndo_get_stats64)(struct net_device *, struct rtnl_link_stats64 *);
1: - bool (*ndo_has_offload_stats)(const struct net_device *, int);
1: - int (*ndo_get_offload_stats)(int, const struct net_device *, void *);
1: - struct net_device_stats * (*ndo_get_stats)(struct net_device *);
1: - int (*ndo_vlan_rx_add_vid)(struct net_device *, __be16, u16);
1: - int (*ndo_vlan_rx_kill_vid)(struct net_device *, __be16, u16);
1: - void (*ndo_poll_controller)(struct net_device *);
1: - int (*ndo_netpoll_setup)(struct net_device *, struct netpoll_info *);
1: - void (*ndo_netpoll_cleanup)(struct net_device *);
1: - int (*ndo_set_vf_mac)(struct net_device *, int, u8 *);
1: - int (*ndo_set_vf_vlan)(struct net_device *, int, u16, u8, __be16);
1: - int (*ndo_set_vf_rate)(struct net_device *, int, int, int);
1: - int (*ndo_set_vf_spoofchk)(struct net_device *, int, bool);
1: - int (*ndo_set_vf_trust)(struct net_device *, int, bool);
1: - int (*ndo_get_vf_config)(struct net_device *, int, struct ifla_vf_info *);
1: - int (*ndo_set_vf_link_state)(struct net_device *, int, int);
1: - int (*ndo_get_vf_stats)(struct net_device *, int, struct ifla_vf_stats *);
1: - int (*ndo_set_vf_port)(struct net_device *, int, struct nlattr **);
1: - int (*ndo_get_vf_port)(struct net_device *, int, struct sk_buff *);
1: - int (*ndo_get_vf_guid)(struct net_device *, int, struct ifla_vf_guid *, struct ifla_vf_guid *);
1: - int (*ndo_set_vf_guid)(struct net_device *, int, u64, int);
1: - int (*ndo_set_vf_rss_query_en)(struct net_device *, int, bool);
1: - int (*ndo_setup_tc)(struct net_device *, enum tc_setup_type, void *);
1: - int (*ndo_fcoe_enable)(struct net_device *);
1: - int (*ndo_fcoe_disable)(struct net_device *);
1: - int (*ndo_fcoe_ddp_setup)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: - int (*ndo_fcoe_ddp_done)(struct net_device *, u16);
1: - int (*ndo_fcoe_ddp_target)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: - int (*ndo_fcoe_get_hbainfo)(struct net_device *, struct netdev_fcoe_hbainfo *);
1: - int (*ndo_fcoe_get_wwn)(struct net_device *, u64 *, int);
1: - int (*ndo_rx_flow_steer)(struct net_device *, const struct sk_buff *, u16, u32);
1: - int (*ndo_add_slave)(struct net_device *, struct net_device *, struct netlink_ext_ack *);
1: - int (*ndo_del_slave)(struct net_device *, struct net_device *);
1: - struct net_device * (*ndo_get_xmit_slave)(struct net_device *, struct sk_buff *, bool);
1: - netdev_features_t (*ndo_fix_features)(struct net_device *, netdev_features_t);
1: - int (*ndo_set_features)(struct net_device *, netdev_features_t);
1: - int (*ndo_neigh_construct)(struct net_device *, struct neighbour *);
1: - void (*ndo_neigh_destroy)(struct net_device *, struct neighbour *);
1: - int (*ndo_fdb_add)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, u16, struct netlink_ext_ack *);
1: - int (*ndo_fdb_del)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16);
1: - int (*ndo_fdb_dump)(struct sk_buff *, struct netlink_callback *, struct net_device *, struct net_device *, int *);
1: - int (*ndo_fdb_get)(struct sk_buff *, struct nlattr **, struct net_device *, const unsigned char *, u16, u32, u32, struct netlink_ext_ack *);
1: - int (*ndo_bridge_setlink)(struct net_device *, struct nlmsghdr *, u16, struct netlink_ext_ack *);
1: - int (*ndo_bridge_getlink)(struct sk_buff *, u32, u32, struct net_device *, u32, int);
1: - int (*ndo_bridge_dellink)(struct net_device *, struct nlmsghdr *, u16);
1: - int (*ndo_change_carrier)(struct net_device *, bool);
1: - int (*ndo_get_phys_port_id)(struct net_device *, struct netdev_phys_item_id *);
1: - int (*ndo_get_port_parent_id)(struct net_device *, struct netdev_phys_item_id *);
1: - int (*ndo_get_phys_port_name)(struct net_device *, char *, size_t);
1: - void (*ndo_udp_tunnel_add)(struct net_device *, struct udp_tunnel_info *);
1: - void (*ndo_udp_tunnel_del)(struct net_device *, struct udp_tunnel_info *);
1: - void * (*ndo_dfwd_add_station)(struct net_device *, struct net_device *);
1: - void (*ndo_dfwd_del_station)(struct net_device *, void *);
1: - int (*ndo_set_tx_maxrate)(struct net_device *, int, u32);
1: - int (*ndo_get_iflink)(const struct net_device *);
1: - int (*ndo_change_proto_down)(struct net_device *, bool);
1: - int (*ndo_fill_metadata_dst)(struct net_device *, struct sk_buff *);
1: - void (*ndo_set_rx_headroom)(struct net_device *, int);
1: - int (*ndo_bpf)(struct net_device *, struct netdev_bpf *);
1: - int (*ndo_xdp_xmit)(struct net_device *, int, struct xdp_frame **, u32);
1: - int (*ndo_xsk_wakeup)(struct net_device *, u32, u32);
1: - struct devlink_port * (*ndo_get_devlink_port)(struct net_device *);
1: - int (*ndo_tunnel_ctl)(struct net_device *, struct ip_tunnel_parm *, int);
1: - struct net_device * (*ndo_get_peer_dev)(struct net_device *);
1: + int (*ndo_init)(struct net_device *);
1: + void (*ndo_uninit)(struct net_device *);
1: + int (*ndo_open)(struct net_device *);
1: + int (*ndo_stop)(struct net_device *);
1: + netdev_tx_t (*ndo_start_xmit)(struct sk_buff *, struct net_device *);
1: + netdev_features_t (*ndo_features_check)(struct sk_buff *, struct net_device *,
1: + netdev_features_t);
1: + u16 (*ndo_select_queue)(struct net_device *, struct sk_buff *,
1: + struct net_device *);
1: + void (*ndo_change_rx_flags)(struct net_device *, int);
1: + void (*ndo_set_rx_mode)(struct net_device *);
1: + int (*ndo_set_mac_address)(struct net_device *, void *);
1: + int (*ndo_validate_addr)(struct net_device *);
1: + int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: + int (*ndo_set_config)(struct net_device *, struct ifmap *);
1: + int (*ndo_change_mtu)(struct net_device *, int);
1: + int (*ndo_neigh_setup)(struct net_device *, struct neigh_parms *);
1: + void (*ndo_tx_timeout)(struct net_device *, unsigned int);
1: + void (*ndo_get_stats64)(struct net_device *, struct rtnl_link_stats64 *);
1: + bool (*ndo_has_offload_stats)(const struct net_device *, int);
1: + int (*ndo_get_offload_stats)(int, const struct net_device *, void *);
1: + struct net_device_stats *(*ndo_get_stats)(struct net_device *);
1: + int (*ndo_vlan_rx_add_vid)(struct net_device *, __be16, u16);
1: + int (*ndo_vlan_rx_kill_vid)(struct net_device *, __be16, u16);
1: + void (*ndo_poll_controller)(struct net_device *);
1: + int (*ndo_netpoll_setup)(struct net_device *, struct netpoll_info *);
1: + void (*ndo_netpoll_cleanup)(struct net_device *);
1: + int (*ndo_set_vf_mac)(struct net_device *, int, u8 *);
1: + int (*ndo_set_vf_vlan)(struct net_device *, int, u16, u8, __be16);
1: + int (*ndo_set_vf_rate)(struct net_device *, int, int, int);
1: + int (*ndo_set_vf_spoofchk)(struct net_device *, int, bool);
1: + int (*ndo_set_vf_trust)(struct net_device *, int, bool);
1: + int (*ndo_get_vf_config)(struct net_device *, int, struct ifla_vf_info *);
1: + int (*ndo_set_vf_link_state)(struct net_device *, int, int);
1: + int (*ndo_get_vf_stats)(struct net_device *, int, struct ifla_vf_stats *);
1: + int (*ndo_set_vf_port)(struct net_device *, int, struct nlattr **);
1: + int (*ndo_get_vf_port)(struct net_device *, int, struct sk_buff *);
1: + int (*ndo_get_vf_guid)(struct net_device *, int, struct ifla_vf_guid *,
1: + struct ifla_vf_guid *);
1: + int (*ndo_set_vf_guid)(struct net_device *, int, u64, int);
1: + int (*ndo_set_vf_rss_query_en)(struct net_device *, int, bool);
1: + int (*ndo_setup_tc)(struct net_device *, enum tc_setup_type, void *);
1: + int (*ndo_fcoe_enable)(struct net_device *);
1: + int (*ndo_fcoe_disable)(struct net_device *);
1: + int (*ndo_fcoe_ddp_setup)(struct net_device *, u16, struct scatterlist *,
1: + unsigned int);
1: + int (*ndo_fcoe_ddp_done)(struct net_device *, u16);
1: + int (*ndo_fcoe_ddp_target)(struct net_device *, u16, struct scatterlist *,
1: + unsigned int);
1: + int (*ndo_fcoe_get_hbainfo)(struct net_device *,
1: + struct netdev_fcoe_hbainfo *);
1: + int (*ndo_fcoe_get_wwn)(struct net_device *, u64 *, int);
1: + int (*ndo_rx_flow_steer)(struct net_device *, const struct sk_buff *, u16,
1: + u32);
1: + int (*ndo_add_slave)(struct net_device *, struct net_device *,
1: + struct netlink_ext_ack *);
1: + int (*ndo_del_slave)(struct net_device *, struct net_device *);
1: + struct net_device *(*ndo_get_xmit_slave)(struct net_device *,
1: + struct sk_buff *, bool);
1: + netdev_features_t (*ndo_fix_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_set_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_neigh_construct)(struct net_device *, struct neighbour *);
1: + void (*ndo_neigh_destroy)(struct net_device *, struct neighbour *);
1: + int (*ndo_fdb_add)(struct ndmsg *, struct nlattr **, struct net_device *,
1: + const unsigned char *, u16, u16, struct netlink_ext_ack *);
1: + int (*ndo_fdb_del)(struct ndmsg *, struct nlattr **, struct net_device *,
1: + const unsigned char *, u16);
1: + int (*ndo_fdb_dump)(struct sk_buff *, struct netlink_callback *,
1: + struct net_device *, struct net_device *, int *);
1: + int (*ndo_fdb_get)(struct sk_buff *, struct nlattr **, struct net_device *,
1: + const unsigned char *, u16, u32, u32,
1: + struct netlink_ext_ack *);
1: + int (*ndo_bridge_setlink)(struct net_device *, struct nlmsghdr *, u16,
1: + struct netlink_ext_ack *);
1: + int (*ndo_bridge_getlink)(struct sk_buff *, u32, u32, struct net_device *,
1: + u32, int);
1: + int (*ndo_bridge_dellink)(struct net_device *, struct nlmsghdr *, u16);
1: + int (*ndo_change_carrier)(struct net_device *, bool);
1: + int (*ndo_get_phys_port_id)(struct net_device *,
1: + struct netdev_phys_item_id *);
1: + int (*ndo_get_port_parent_id)(struct net_device *,
1: + struct netdev_phys_item_id *);
1: + int (*ndo_get_phys_port_name)(struct net_device *, char *, size_t);
1: + void (*ndo_udp_tunnel_add)(struct net_device *, struct udp_tunnel_info *);
1: + void (*ndo_udp_tunnel_del)(struct net_device *, struct udp_tunnel_info *);
1: + void *(*ndo_dfwd_add_station)(struct net_device *, struct net_device *);
1: + void (*ndo_dfwd_del_station)(struct net_device *, void *);
1: + int (*ndo_set_tx_maxrate)(struct net_device *, int, u32);
1: + int (*ndo_get_iflink)(const struct net_device *);
1: + int (*ndo_change_proto_down)(struct net_device *, bool);
1: + int (*ndo_fill_metadata_dst)(struct net_device *, struct sk_buff *);
1: + void (*ndo_set_rx_headroom)(struct net_device *, int);
1: + int (*ndo_bpf)(struct net_device *, struct netdev_bpf *);
1: + int (*ndo_xdp_xmit)(struct net_device *, int, struct xdp_frame **, u32);
1: + int (*ndo_xsk_wakeup)(struct net_device *, u32, u32);
1: + struct devlink_port *(*ndo_get_devlink_port)(struct net_device *);
1: + int (*ndo_tunnel_ctl)(struct net_device *, struct ip_tunnel_parm *, int);
1: + struct net_device *(*ndo_get_peer_dev)(struct net_device *);
1: };
1:
1: struct neigh_parms {
1: - possible_net_t net;
1: - struct net_device *dev;
1: - struct list_head list;
1: - int (*neigh_setup)(struct neighbour *);
1: - struct neigh_table *tbl;
1: - void *sysctl_table;
1: - int dead;
1: - refcount_t refcnt;
1: - struct callback_head callback_head;
1: - int reachable_time;
1: - int data[13];
1: - long unsigned int data_state[1];
1: + possible_net_t net;
1: + struct net_device *dev;
1: + struct list_head list;
1: + int (*neigh_setup)(struct neighbour *);
1: + struct neigh_table *tbl;
1: + void *sysctl_table;
1: + int dead;
1: + refcount_t refcnt;
1: + struct callback_head callback_head;
1: + int reachable_time;
1: + int data[13];
1: + long unsigned int data_state[1];
1: };
1:
1: struct pcpu_lstats {
1: - u64_stats_t packets;
1: - u64_stats_t bytes;
1: - struct u64_stats_sync syncp;
1: + u64_stats_t packets;
1: + u64_stats_t bytes;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct pcpu_sw_netstats {
1: - u64 rx_packets;
1: - u64 rx_bytes;
1: - u64 tx_packets;
1: - u64 tx_bytes;
1: - struct u64_stats_sync syncp;
1: + u64 rx_packets;
1: + u64 rx_bytes;
1: + u64 tx_packets;
1: + u64 tx_bytes;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct iw_request_info;
1:
1: union iwreq_data;
1:
1: -typedef int (*iw_handler)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *);
1: +typedef int (*iw_handler)(struct net_device *, struct iw_request_info *,
1: + union iwreq_data *, char *);
1:
1: struct iw_priv_args;
1:
1: struct iw_statistics;
1:
1: struct iw_handler_def {
1: - const iw_handler *standard;
1: - __u16 num_standard;
1: - __u16 num_private;
1: - __u16 num_private_args;
1: - const iw_handler *private;
1: - const struct iw_priv_args *private_args;
1: - struct iw_statistics * (*get_wireless_stats)(struct net_device *);
1: + const iw_handler *standard;
1: + __u16 num_standard;
1: + __u16 num_private;
1: + __u16 num_private_args;
1: + const iw_handler *private;
1: + const struct iw_priv_args *private_args;
1: + struct iw_statistics *(*get_wireless_stats)(struct net_device *);
1: };
1:
1: struct l3mdev_ops {
1: - u32 (*l3mdev_fib_table)(const struct net_device *);
1: - struct sk_buff * (*l3mdev_l3_rcv)(struct net_device *, struct sk_buff *, u16);
1: - struct sk_buff * (*l3mdev_l3_out)(struct net_device *, struct sock *, struct sk_buff *, u16);
1: - struct dst_entry * (*l3mdev_link_scope_lookup)(const struct net_device *, struct flowi6 *);
1: + u32 (*l3mdev_fib_table)(const struct net_device *);
1: + struct sk_buff *(*l3mdev_l3_rcv)(struct net_device *, struct sk_buff *, u16);
1: + struct sk_buff *(*l3mdev_l3_out)(struct net_device *, struct sock *,
1: + struct sk_buff *, u16);
1: + struct dst_entry *(*l3mdev_link_scope_lookup)(const struct net_device *,
1: + struct flowi6 *);
1: };
1:
1: struct nd_opt_hdr;
1: @@ -12093,17 +12244,24 @@ struct ndisc_options;
1: struct prefix_info;
1:
1: struct ndisc_ops {
1: - int (*is_useropt)(u8);
1: - int (*parse_options)(const struct net_device *, struct nd_opt_hdr *, struct ndisc_options *);
1: - void (*update)(const struct net_device *, struct neighbour *, u32, u8, const struct ndisc_options *);
1: - int (*opt_addr_space)(const struct net_device *, u8, struct neighbour *, u8 *, u8 **);
1: - void (*fill_addr_option)(const struct net_device *, struct sk_buff *, u8, const u8 *);
1: - void (*prefix_rcv_add_addr)(struct net *, struct net_device *, const struct prefix_info *, struct inet6_dev *, struct in6_addr *, int, u32, bool, bool, __u32, u32, bool);
1: + int (*is_useropt)(u8);
1: + int (*parse_options)(const struct net_device *, struct nd_opt_hdr *,
1: + struct ndisc_options *);
1: + void (*update)(const struct net_device *, struct neighbour *, u32, u8,
1: + const struct ndisc_options *);
1: + int (*opt_addr_space)(const struct net_device *, u8, struct neighbour *, u8 *,
1: + u8 **);
1: + void (*fill_addr_option)(const struct net_device *, struct sk_buff *, u8,
1: + const u8 *);
1: + void (*prefix_rcv_add_addr)(struct net *, struct net_device *,
1: + const struct prefix_info *, struct inet6_dev *,
1: + struct in6_addr *, int, u32, bool, bool, __u32,
1: + u32, bool);
1: };
1:
1: enum tls_offload_ctx_dir {
1: - TLS_OFFLOAD_CTX_DIR_RX = 0,
1: - TLS_OFFLOAD_CTX_DIR_TX = 1,
1: + TLS_OFFLOAD_CTX_DIR_RX = 0,
1: + TLS_OFFLOAD_CTX_DIR_TX = 1,
1: };
1:
1: struct tls_crypto_info;
1: @@ -12111,16 +12269,19 @@ struct tls_crypto_info;
1: struct tls_context;
1:
1: struct tlsdev_ops {
1: - int (*tls_dev_add)(struct net_device *, struct sock *, enum tls_offload_ctx_dir, struct tls_crypto_info *, u32);
1: - void (*tls_dev_del)(struct net_device *, struct tls_context *, enum tls_offload_ctx_dir);
1: - int (*tls_dev_resync)(struct net_device *, struct sock *, u32, u8 *, enum tls_offload_ctx_dir);
1: + int (*tls_dev_add)(struct net_device *, struct sock *,
1: + enum tls_offload_ctx_dir, struct tls_crypto_info *, u32);
1: + void (*tls_dev_del)(struct net_device *, struct tls_context *,
1: + enum tls_offload_ctx_dir);
1: + int (*tls_dev_resync)(struct net_device *, struct sock *, u32, u8 *,
1: + enum tls_offload_ctx_dir);
1: };
1:
1: struct ipv6_devstat {
1: - struct proc_dir_entry *proc_dir_entry;
1: - struct ipstats_mib *ipv6;
1: - struct icmpv6_mib_device *icmpv6dev;
1: - struct icmpv6msg_mib_device *icmpv6msgdev;
1: + struct proc_dir_entry *proc_dir_entry;
1: + struct ipstats_mib *ipv6;
1: + struct icmpv6_mib_device *icmpv6dev;
1: + struct icmpv6msg_mib_device *icmpv6msgdev;
1: };
1:
1: struct ifmcaddr6;
1: @@ -12128,38 +12289,38 @@ struct ifmcaddr6;
1: struct ifacaddr6;
1:
1: struct inet6_dev {
1: - struct net_device *dev;
1: - struct list_head addr_list;
1: - struct ifmcaddr6 *mc_list;
1: - struct ifmcaddr6 *mc_tomb;
1: - spinlock_t mc_lock;
1: - unsigned char mc_qrv;
1: - unsigned char mc_gq_running;
1: - unsigned char mc_ifc_count;
1: - unsigned char mc_dad_count;
1: - long unsigned int mc_v1_seen;
1: - long unsigned int mc_qi;
1: - long unsigned int mc_qri;
1: - long unsigned int mc_maxdelay;
1: - struct timer_list mc_gq_timer;
1: - struct timer_list mc_ifc_timer;
1: - struct timer_list mc_dad_timer;
1: - struct ifacaddr6 *ac_list;
1: - rwlock_t lock;
1: - refcount_t refcnt;
1: - __u32 if_flags;
1: - int dead;
1: - u32 desync_factor;
1: - struct list_head tempaddr_list;
1: - struct in6_addr token;
1: - struct neigh_parms *nd_parms;
1: - struct ipv6_devconf cnf;
1: - struct ipv6_devstat stats;
1: - struct timer_list rs_timer;
1: - __s32 rs_interval;
1: - __u8 rs_probes;
1: - long unsigned int tstamp;
1: - struct callback_head rcu;
1: + struct net_device *dev;
1: + struct list_head addr_list;
1: + struct ifmcaddr6 *mc_list;
1: + struct ifmcaddr6 *mc_tomb;
1: + spinlock_t mc_lock;
1: + unsigned char mc_qrv;
1: + unsigned char mc_gq_running;
1: + unsigned char mc_ifc_count;
1: + unsigned char mc_dad_count;
1: + long unsigned int mc_v1_seen;
1: + long unsigned int mc_qi;
1: + long unsigned int mc_qri;
1: + long unsigned int mc_maxdelay;
1: + struct timer_list mc_gq_timer;
1: + struct timer_list mc_ifc_timer;
1: + struct timer_list mc_dad_timer;
1: + struct ifacaddr6 *ac_list;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + __u32 if_flags;
1: + int dead;
1: + u32 desync_factor;
1: + struct list_head tempaddr_list;
1: + struct in6_addr token;
1: + struct neigh_parms *nd_parms;
1: + struct ipv6_devconf cnf;
1: + struct ipv6_devstat stats;
1: + struct timer_list rs_timer;
1: + __s32 rs_interval;
1: + __u8 rs_probes;
1: + long unsigned int tstamp;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_proto;
1: @@ -12167,205 +12328,218 @@ struct tcf_proto;
1: struct tcf_block;
1:
1: struct mini_Qdisc {
1: - struct tcf_proto *filter_list;
1: - struct tcf_block *block;
1: - struct gnet_stats_basic_cpu *cpu_bstats;
1: - struct gnet_stats_queue *cpu_qstats;
1: - struct callback_head rcu;
1: + struct tcf_proto *filter_list;
1: + struct tcf_block *block;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + struct callback_head rcu;
1: };
1:
1: struct rtnl_link_ops {
1: - struct list_head list;
1: - const char *kind;
1: - size_t priv_size;
1: - void (*setup)(struct net_device *);
1: - unsigned int maxtype;
1: - const struct nla_policy *policy;
1: - int (*validate)(struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: - int (*newlink)(struct net *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: - int (*changelink)(struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: - void (*dellink)(struct net_device *, struct list_head *);
1: - size_t (*get_size)(const struct net_device *);
1: - int (*fill_info)(struct sk_buff *, const struct net_device *);
1: - size_t (*get_xstats_size)(const struct net_device *);
1: - int (*fill_xstats)(struct sk_buff *, const struct net_device *);
1: - unsigned int (*get_num_tx_queues)();
1: - unsigned int (*get_num_rx_queues)();
1: - unsigned int slave_maxtype;
1: - const struct nla_policy *slave_policy;
1: - int (*slave_changelink)(struct net_device *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: - size_t (*get_slave_size)(const struct net_device *, const struct net_device *);
1: - int (*fill_slave_info)(struct sk_buff *, const struct net_device *, const struct net_device *);
1: - struct net * (*get_link_net)(const struct net_device *);
1: - size_t (*get_linkxstats_size)(const struct net_device *, int);
1: - int (*fill_linkxstats)(struct sk_buff *, const struct net_device *, int *, int);
1: + struct list_head list;
1: + const char *kind;
1: + size_t priv_size;
1: + void (*setup)(struct net_device *);
1: + unsigned int maxtype;
1: + const struct nla_policy *policy;
1: + int (*validate)(struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + int (*newlink)(struct net *, struct net_device *, struct nlattr **,
1: + struct nlattr **, struct netlink_ext_ack *);
1: + int (*changelink)(struct net_device *, struct nlattr **, struct nlattr **,
1: + struct netlink_ext_ack *);
1: + void (*dellink)(struct net_device *, struct list_head *);
1: + size_t (*get_size)(const struct net_device *);
1: + int (*fill_info)(struct sk_buff *, const struct net_device *);
1: + size_t (*get_xstats_size)(const struct net_device *);
1: + int (*fill_xstats)(struct sk_buff *, const struct net_device *);
1: + unsigned int (*get_num_tx_queues)();
1: + unsigned int (*get_num_rx_queues)();
1: + unsigned int slave_maxtype;
1: + const struct nla_policy *slave_policy;
1: + int (*slave_changelink)(struct net_device *, struct net_device *,
1: + struct nlattr **, struct nlattr **,
1: + struct netlink_ext_ack *);
1: + size_t (*get_slave_size)(const struct net_device *,
1: + const struct net_device *);
1: + int (*fill_slave_info)(struct sk_buff *, const struct net_device *,
1: + const struct net_device *);
1: + struct net *(*get_link_net)(const struct net_device *);
1: + size_t (*get_linkxstats_size)(const struct net_device *, int);
1: + int (*fill_linkxstats)(struct sk_buff *, const struct net_device *, int *,
1: + int);
1: };
1:
1: struct udp_tunnel_nic_table_info {
1: - unsigned int n_entries;
1: - unsigned int tunnel_types;
1: + unsigned int n_entries;
1: + unsigned int tunnel_types;
1: };
1:
1: struct udp_tunnel_nic_shared;
1:
1: struct udp_tunnel_nic_info {
1: - int (*set_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: - int (*unset_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: - int (*sync_table)(struct net_device *, unsigned int);
1: - struct udp_tunnel_nic_shared *shared;
1: - unsigned int flags;
1: - struct udp_tunnel_nic_table_info tables[4];
1: -};
1: -
1: -enum {
1: - RTAX_UNSPEC = 0,
1: - RTAX_LOCK = 1,
1: - RTAX_MTU = 2,
1: - RTAX_WINDOW = 3,
1: - RTAX_RTT = 4,
1: - RTAX_RTTVAR = 5,
1: - RTAX_SSTHRESH = 6,
1: - RTAX_CWND = 7,
1: - RTAX_ADVMSS = 8,
1: - RTAX_REORDERING = 9,
1: - RTAX_HOPLIMIT = 10,
1: - RTAX_INITCWND = 11,
1: - RTAX_FEATURES = 12,
1: - RTAX_RTO_MIN = 13,
1: - RTAX_INITRWND = 14,
1: - RTAX_QUICKACK = 15,
1: - RTAX_CC_ALGO = 16,
1: - RTAX_FASTOPEN_NO_COOKIE = 17,
1: - __RTAX_MAX = 18,
1: + int (*set_port)(struct net_device *, unsigned int, unsigned int,
1: + struct udp_tunnel_info *);
1: + int (*unset_port)(struct net_device *, unsigned int, unsigned int,
1: + struct udp_tunnel_info *);
1: + int (*sync_table)(struct net_device *, unsigned int);
1: + struct udp_tunnel_nic_shared *shared;
1: + unsigned int flags;
1: + struct udp_tunnel_nic_table_info tables[4];
1: +};
1: +
1: +enum {
1: + RTAX_UNSPEC = 0,
1: + RTAX_LOCK = 1,
1: + RTAX_MTU = 2,
1: + RTAX_WINDOW = 3,
1: + RTAX_RTT = 4,
1: + RTAX_RTTVAR = 5,
1: + RTAX_SSTHRESH = 6,
1: + RTAX_CWND = 7,
1: + RTAX_ADVMSS = 8,
1: + RTAX_REORDERING = 9,
1: + RTAX_HOPLIMIT = 10,
1: + RTAX_INITCWND = 11,
1: + RTAX_FEATURES = 12,
1: + RTAX_RTO_MIN = 13,
1: + RTAX_INITRWND = 14,
1: + RTAX_QUICKACK = 15,
1: + RTAX_CC_ALGO = 16,
1: + RTAX_FASTOPEN_NO_COOKIE = 17,
1: + __RTAX_MAX = 18,
1: };
1:
1: struct tcmsg {
1: - unsigned char tcm_family;
1: - unsigned char tcm__pad1;
1: - short unsigned int tcm__pad2;
1: - int tcm_ifindex;
1: - __u32 tcm_handle;
1: - __u32 tcm_parent;
1: - __u32 tcm_info;
1: + unsigned char tcm_family;
1: + unsigned char tcm__pad1;
1: + short unsigned int tcm__pad2;
1: + int tcm_ifindex;
1: + __u32 tcm_handle;
1: + __u32 tcm_parent;
1: + __u32 tcm_info;
1: };
1:
1: struct gnet_stats_basic_cpu {
1: - struct gnet_stats_basic_packed bstats;
1: - struct u64_stats_sync syncp;
1: + struct gnet_stats_basic_packed bstats;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct gnet_dump {
1: - spinlock_t *lock;
1: - struct sk_buff *skb;
1: - struct nlattr *tail;
1: - int compat_tc_stats;
1: - int compat_xstats;
1: - int padattr;
1: - void *xstats;
1: - int xstats_len;
1: - struct tc_stats tc_stats;
1: + spinlock_t *lock;
1: + struct sk_buff *skb;
1: + struct nlattr *tail;
1: + int compat_tc_stats;
1: + int compat_xstats;
1: + int padattr;
1: + void *xstats;
1: + int xstats_len;
1: + struct tc_stats tc_stats;
1: };
1:
1: struct netlink_range_validation {
1: - u64 min;
1: - u64 max;
1: + u64 min;
1: + u64 max;
1: };
1:
1: struct netlink_range_validation_signed {
1: - s64 min;
1: - s64 max;
1: + s64 min;
1: + s64 max;
1: };
1:
1: enum flow_action_hw_stats_bit {
1: - FLOW_ACTION_HW_STATS_IMMEDIATE_BIT = 0,
1: - FLOW_ACTION_HW_STATS_DELAYED_BIT = 1,
1: - FLOW_ACTION_HW_STATS_DISABLED_BIT = 2,
1: - FLOW_ACTION_HW_STATS_NUM_BITS = 3,
1: + FLOW_ACTION_HW_STATS_IMMEDIATE_BIT = 0,
1: + FLOW_ACTION_HW_STATS_DELAYED_BIT = 1,
1: + FLOW_ACTION_HW_STATS_DISABLED_BIT = 2,
1: + FLOW_ACTION_HW_STATS_NUM_BITS = 3,
1: };
1:
1: struct flow_block {
1: - struct list_head cb_list;
1: + struct list_head cb_list;
1: };
1:
1: typedef int flow_setup_cb_t(enum tc_setup_type, void *, void *);
1:
1: struct qdisc_size_table {
1: - struct callback_head rcu;
1: - struct list_head list;
1: - struct tc_sizespec szopts;
1: - int refcnt;
1: - u16 data[0];
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct tc_sizespec szopts;
1: + int refcnt;
1: + u16 data[0];
1: };
1:
1: struct Qdisc_class_ops;
1:
1: struct Qdisc_ops {
1: - struct Qdisc_ops *next;
1: - const struct Qdisc_class_ops *cl_ops;
1: - char id[16];
1: - int priv_size;
1: - unsigned int static_flags;
1: - int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: - struct sk_buff * (*dequeue)(struct Qdisc *);
1: - struct sk_buff * (*peek)(struct Qdisc *);
1: - int (*init)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: - void (*reset)(struct Qdisc *);
1: - void (*destroy)(struct Qdisc *);
1: - int (*change)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: - void (*attach)(struct Qdisc *);
1: - int (*change_tx_queue_len)(struct Qdisc *, unsigned int);
1: - int (*dump)(struct Qdisc *, struct sk_buff *);
1: - int (*dump_stats)(struct Qdisc *, struct gnet_dump *);
1: - void (*ingress_block_set)(struct Qdisc *, u32);
1: - void (*egress_block_set)(struct Qdisc *, u32);
1: - u32 (*ingress_block_get)(struct Qdisc *);
1: - u32 (*egress_block_get)(struct Qdisc *);
1: - struct module *owner;
1: + struct Qdisc_ops *next;
1: + const struct Qdisc_class_ops *cl_ops;
1: + char id[16];
1: + int priv_size;
1: + unsigned int static_flags;
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff *(*dequeue)(struct Qdisc *);
1: + struct sk_buff *(*peek)(struct Qdisc *);
1: + int (*init)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*reset)(struct Qdisc *);
1: + void (*destroy)(struct Qdisc *);
1: + int (*change)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*attach)(struct Qdisc *);
1: + int (*change_tx_queue_len)(struct Qdisc *, unsigned int);
1: + int (*dump)(struct Qdisc *, struct sk_buff *);
1: + int (*dump_stats)(struct Qdisc *, struct gnet_dump *);
1: + void (*ingress_block_set)(struct Qdisc *, u32);
1: + void (*egress_block_set)(struct Qdisc *, u32);
1: + u32 (*ingress_block_get)(struct Qdisc *);
1: + u32 (*egress_block_get)(struct Qdisc *);
1: + struct module *owner;
1: };
1:
1: struct qdisc_walker;
1:
1: struct Qdisc_class_ops {
1: - unsigned int flags;
1: - struct netdev_queue * (*select_queue)(struct Qdisc *, struct tcmsg *);
1: - int (*graft)(struct Qdisc *, long unsigned int, struct Qdisc *, struct Qdisc **, struct netlink_ext_ack *);
1: - struct Qdisc * (*leaf)(struct Qdisc *, long unsigned int);
1: - void (*qlen_notify)(struct Qdisc *, long unsigned int);
1: - long unsigned int (*find)(struct Qdisc *, u32);
1: - int (*change)(struct Qdisc *, u32, u32, struct nlattr **, long unsigned int *, struct netlink_ext_ack *);
1: - int (*delete)(struct Qdisc *, long unsigned int);
1: - void (*walk)(struct Qdisc *, struct qdisc_walker *);
1: - struct tcf_block * (*tcf_block)(struct Qdisc *, long unsigned int, struct netlink_ext_ack *);
1: - long unsigned int (*bind_tcf)(struct Qdisc *, long unsigned int, u32);
1: - void (*unbind_tcf)(struct Qdisc *, long unsigned int);
1: - int (*dump)(struct Qdisc *, long unsigned int, struct sk_buff *, struct tcmsg *);
1: - int (*dump_stats)(struct Qdisc *, long unsigned int, struct gnet_dump *);
1: + unsigned int flags;
1: + struct netdev_queue *(*select_queue)(struct Qdisc *, struct tcmsg *);
1: + int (*graft)(struct Qdisc *, long unsigned int, struct Qdisc *,
1: + struct Qdisc **, struct netlink_ext_ack *);
1: + struct Qdisc *(*leaf)(struct Qdisc *, long unsigned int);
1: + void (*qlen_notify)(struct Qdisc *, long unsigned int);
1: + long unsigned int (*find)(struct Qdisc *, u32);
1: + int (*change)(struct Qdisc *, u32, u32, struct nlattr **, long unsigned int *,
1: + struct netlink_ext_ack *);
1: + int (*delete)(struct Qdisc *, long unsigned int);
1: + void (*walk)(struct Qdisc *, struct qdisc_walker *);
1: + struct tcf_block *(*tcf_block)(struct Qdisc *, long unsigned int,
1: + struct netlink_ext_ack *);
1: + long unsigned int (*bind_tcf)(struct Qdisc *, long unsigned int, u32);
1: + void (*unbind_tcf)(struct Qdisc *, long unsigned int);
1: + int (*dump)(struct Qdisc *, long unsigned int, struct sk_buff *,
1: + struct tcmsg *);
1: + int (*dump_stats)(struct Qdisc *, long unsigned int, struct gnet_dump *);
1: };
1:
1: struct tcf_chain;
1:
1: struct tcf_block {
1: - struct mutex lock;
1: - struct list_head chain_list;
1: - u32 index;
1: - u32 classid;
1: - refcount_t refcnt;
1: - struct net *net;
1: - struct Qdisc *q;
1: - struct rw_semaphore cb_lock;
1: - struct flow_block flow_block;
1: - struct list_head owner_list;
1: - bool keep_dst;
1: - atomic_t offloadcnt;
1: - unsigned int nooffloaddevcnt;
1: - unsigned int lockeddevcnt;
1: - struct {
1: - struct tcf_chain *chain;
1: - struct list_head filter_chain_list;
1: - } chain0;
1: - struct callback_head rcu;
1: - struct hlist_head proto_destroy_ht[128];
1: - struct mutex proto_destroy_lock;
1: + struct mutex lock;
1: + struct list_head chain_list;
1: + u32 index;
1: + u32 classid;
1: + refcount_t refcnt;
1: + struct net *net;
1: + struct Qdisc *q;
1: + struct rw_semaphore cb_lock;
1: + struct flow_block flow_block;
1: + struct list_head owner_list;
1: + bool keep_dst;
1: + atomic_t offloadcnt;
1: + unsigned int nooffloaddevcnt;
1: + unsigned int lockeddevcnt;
1: + struct {
1: + struct tcf_chain *chain;
1: + struct list_head filter_chain_list;
1: + } chain0;
1: + struct callback_head rcu;
1: + struct hlist_head proto_destroy_ht[128];
1: + struct mutex proto_destroy_lock;
1: };
1:
1: struct tcf_result;
1: @@ -12373,110 +12547,119 @@ struct tcf_result;
1: struct tcf_proto_ops;
1:
1: struct tcf_proto {
1: - struct tcf_proto *next;
1: - void *root;
1: - int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: - __be16 protocol;
1: - u32 prio;
1: - void *data;
1: - const struct tcf_proto_ops *ops;
1: - struct tcf_chain *chain;
1: - spinlock_t lock;
1: - bool deleting;
1: - refcount_t refcnt;
1: - struct callback_head rcu;
1: - struct hlist_node destroy_ht_node;
1: + struct tcf_proto *next;
1: + void *root;
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *,
1: + struct tcf_result *);
1: + __be16 protocol;
1: + u32 prio;
1: + void *data;
1: + const struct tcf_proto_ops *ops;
1: + struct tcf_chain *chain;
1: + spinlock_t lock;
1: + bool deleting;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct hlist_node destroy_ht_node;
1: };
1:
1: struct tcf_result {
1: - union {
1: - struct {
1: - long unsigned int class;
1: - u32 classid;
1: - };
1: - const struct tcf_proto *goto_tp;
1: - struct {
1: - bool ingress;
1: - struct gnet_stats_queue *qstats;
1: - };
1: - };
1: + union {
1: + struct {
1: + long unsigned int class;
1: + u32 classid;
1: + };
1: + const struct tcf_proto *goto_tp;
1: + struct {
1: + bool ingress;
1: + struct gnet_stats_queue *qstats;
1: + };
1: + };
1: };
1:
1: struct tcf_walker;
1:
1: struct tcf_proto_ops {
1: - struct list_head head;
1: - char kind[16];
1: - int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: - int (*init)(struct tcf_proto *);
1: - void (*destroy)(struct tcf_proto *, bool, struct netlink_ext_ack *);
1: - void * (*get)(struct tcf_proto *, u32);
1: - void (*put)(struct tcf_proto *, void *);
1: - int (*change)(struct net *, struct sk_buff *, struct tcf_proto *, long unsigned int, u32, struct nlattr **, void **, bool, bool, struct netlink_ext_ack *);
1: - int (*delete)(struct tcf_proto *, void *, bool *, bool, struct netlink_ext_ack *);
1: - bool (*delete_empty)(struct tcf_proto *);
1: - void (*walk)(struct tcf_proto *, struct tcf_walker *, bool);
1: - int (*reoffload)(struct tcf_proto *, bool, flow_setup_cb_t *, void *, struct netlink_ext_ack *);
1: - void (*hw_add)(struct tcf_proto *, void *);
1: - void (*hw_del)(struct tcf_proto *, void *);
1: - void (*bind_class)(void *, u32, long unsigned int, void *, long unsigned int);
1: - void * (*tmplt_create)(struct net *, struct tcf_chain *, struct nlattr **, struct netlink_ext_ack *);
1: - void (*tmplt_destroy)(void *);
1: - int (*dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: - int (*terse_dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: - int (*tmplt_dump)(struct sk_buff *, struct net *, void *);
1: - struct module *owner;
1: - int flags;
1: + struct list_head head;
1: + char kind[16];
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *,
1: + struct tcf_result *);
1: + int (*init)(struct tcf_proto *);
1: + void (*destroy)(struct tcf_proto *, bool, struct netlink_ext_ack *);
1: + void *(*get)(struct tcf_proto *, u32);
1: + void (*put)(struct tcf_proto *, void *);
1: + int (*change)(struct net *, struct sk_buff *, struct tcf_proto *,
1: + long unsigned int, u32, struct nlattr **, void **, bool, bool,
1: + struct netlink_ext_ack *);
1: + int (*delete)(struct tcf_proto *, void *, bool *, bool,
1: + struct netlink_ext_ack *);
1: + bool (*delete_empty)(struct tcf_proto *);
1: + void (*walk)(struct tcf_proto *, struct tcf_walker *, bool);
1: + int (*reoffload)(struct tcf_proto *, bool, flow_setup_cb_t *, void *,
1: + struct netlink_ext_ack *);
1: + void (*hw_add)(struct tcf_proto *, void *);
1: + void (*hw_del)(struct tcf_proto *, void *);
1: + void (*bind_class)(void *, u32, long unsigned int, void *, long unsigned int);
1: + void *(*tmplt_create)(struct net *, struct tcf_chain *, struct nlattr **,
1: + struct netlink_ext_ack *);
1: + void (*tmplt_destroy)(void *);
1: + int (*dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *,
1: + struct tcmsg *, bool);
1: + int (*terse_dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *,
1: + struct tcmsg *, bool);
1: + int (*tmplt_dump)(struct sk_buff *, struct net *, void *);
1: + struct module *owner;
1: + int flags;
1: };
1:
1: struct tcf_chain {
1: - struct mutex filter_chain_lock;
1: - struct tcf_proto *filter_chain;
1: - struct list_head list;
1: - struct tcf_block *block;
1: - u32 index;
1: - unsigned int refcnt;
1: - unsigned int action_refcnt;
1: - bool explicitly_created;
1: - bool flushing;
1: - const struct tcf_proto_ops *tmplt_ops;
1: - void *tmplt_priv;
1: - struct callback_head rcu;
1: + struct mutex filter_chain_lock;
1: + struct tcf_proto *filter_chain;
1: + struct list_head list;
1: + struct tcf_block *block;
1: + u32 index;
1: + unsigned int refcnt;
1: + unsigned int action_refcnt;
1: + bool explicitly_created;
1: + bool flushing;
1: + const struct tcf_proto_ops *tmplt_ops;
1: + void *tmplt_priv;
1: + struct callback_head rcu;
1: };
1:
1: struct sock_fprog_kern {
1: - u16 len;
1: - struct sock_filter *filter;
1: + u16 len;
1: + struct sock_filter *filter;
1: };
1:
1: struct sk_filter {
1: - refcount_t refcnt;
1: - struct callback_head rcu;
1: - struct bpf_prog *prog;
1: -};
1: -
1: -enum {
1: - NEIGH_VAR_MCAST_PROBES = 0,
1: - NEIGH_VAR_UCAST_PROBES = 1,
1: - NEIGH_VAR_APP_PROBES = 2,
1: - NEIGH_VAR_MCAST_REPROBES = 3,
1: - NEIGH_VAR_RETRANS_TIME = 4,
1: - NEIGH_VAR_BASE_REACHABLE_TIME = 5,
1: - NEIGH_VAR_DELAY_PROBE_TIME = 6,
1: - NEIGH_VAR_GC_STALETIME = 7,
1: - NEIGH_VAR_QUEUE_LEN_BYTES = 8,
1: - NEIGH_VAR_PROXY_QLEN = 9,
1: - NEIGH_VAR_ANYCAST_DELAY = 10,
1: - NEIGH_VAR_PROXY_DELAY = 11,
1: - NEIGH_VAR_LOCKTIME = 12,
1: - NEIGH_VAR_QUEUE_LEN = 13,
1: - NEIGH_VAR_RETRANS_TIME_MS = 14,
1: - NEIGH_VAR_BASE_REACHABLE_TIME_MS = 15,
1: - NEIGH_VAR_GC_INTERVAL = 16,
1: - NEIGH_VAR_GC_THRESH1 = 17,
1: - NEIGH_VAR_GC_THRESH2 = 18,
1: - NEIGH_VAR_GC_THRESH3 = 19,
1: - NEIGH_VAR_MAX = 20,
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct bpf_prog *prog;
1: +};
1: +
1: +enum {
1: + NEIGH_VAR_MCAST_PROBES = 0,
1: + NEIGH_VAR_UCAST_PROBES = 1,
1: + NEIGH_VAR_APP_PROBES = 2,
1: + NEIGH_VAR_MCAST_REPROBES = 3,
1: + NEIGH_VAR_RETRANS_TIME = 4,
1: + NEIGH_VAR_BASE_REACHABLE_TIME = 5,
1: + NEIGH_VAR_DELAY_PROBE_TIME = 6,
1: + NEIGH_VAR_GC_STALETIME = 7,
1: + NEIGH_VAR_QUEUE_LEN_BYTES = 8,
1: + NEIGH_VAR_PROXY_QLEN = 9,
1: + NEIGH_VAR_ANYCAST_DELAY = 10,
1: + NEIGH_VAR_PROXY_DELAY = 11,
1: + NEIGH_VAR_LOCKTIME = 12,
1: + NEIGH_VAR_QUEUE_LEN = 13,
1: + NEIGH_VAR_RETRANS_TIME_MS = 14,
1: + NEIGH_VAR_BASE_REACHABLE_TIME_MS = 15,
1: + NEIGH_VAR_GC_INTERVAL = 16,
1: + NEIGH_VAR_GC_THRESH1 = 17,
1: + NEIGH_VAR_GC_THRESH2 = 18,
1: + NEIGH_VAR_GC_THRESH3 = 19,
1: + NEIGH_VAR_MAX = 20,
1: };
1:
1: struct pneigh_entry;
1: @@ -12486,151 +12669,151 @@ struct neigh_statistics;
1: struct neigh_hash_table;
1:
1: struct neigh_table {
1: - int family;
1: - unsigned int entry_size;
1: - unsigned int key_len;
1: - __be16 protocol;
1: - __u32 (*hash)(const void *, const struct net_device *, __u32 *);
1: - bool (*key_eq)(const struct neighbour *, const void *);
1: - int (*constructor)(struct neighbour *);
1: - int (*pconstructor)(struct pneigh_entry *);
1: - void (*pdestructor)(struct pneigh_entry *);
1: - void (*proxy_redo)(struct sk_buff *);
1: - int (*is_multicast)(const void *);
1: - bool (*allow_add)(const struct net_device *, struct netlink_ext_ack *);
1: - char *id;
1: - struct neigh_parms parms;
1: - struct list_head parms_list;
1: - int gc_interval;
1: - int gc_thresh1;
1: - int gc_thresh2;
1: - int gc_thresh3;
1: - long unsigned int last_flush;
1: - struct delayed_work gc_work;
1: - struct timer_list proxy_timer;
1: - struct sk_buff_head proxy_queue;
1: - atomic_t entries;
1: - atomic_t gc_entries;
1: - struct list_head gc_list;
1: - rwlock_t lock;
1: - long unsigned int last_rand;
1: - struct neigh_statistics *stats;
1: - struct neigh_hash_table *nht;
1: - struct pneigh_entry **phash_buckets;
1: + int family;
1: + unsigned int entry_size;
1: + unsigned int key_len;
1: + __be16 protocol;
1: + __u32 (*hash)(const void *, const struct net_device *, __u32 *);
1: + bool (*key_eq)(const struct neighbour *, const void *);
1: + int (*constructor)(struct neighbour *);
1: + int (*pconstructor)(struct pneigh_entry *);
1: + void (*pdestructor)(struct pneigh_entry *);
1: + void (*proxy_redo)(struct sk_buff *);
1: + int (*is_multicast)(const void *);
1: + bool (*allow_add)(const struct net_device *, struct netlink_ext_ack *);
1: + char *id;
1: + struct neigh_parms parms;
1: + struct list_head parms_list;
1: + int gc_interval;
1: + int gc_thresh1;
1: + int gc_thresh2;
1: + int gc_thresh3;
1: + long unsigned int last_flush;
1: + struct delayed_work gc_work;
1: + struct timer_list proxy_timer;
1: + struct sk_buff_head proxy_queue;
1: + atomic_t entries;
1: + atomic_t gc_entries;
1: + struct list_head gc_list;
1: + rwlock_t lock;
1: + long unsigned int last_rand;
1: + struct neigh_statistics *stats;
1: + struct neigh_hash_table *nht;
1: + struct pneigh_entry **phash_buckets;
1: };
1:
1: struct neigh_statistics {
1: - long unsigned int allocs;
1: - long unsigned int destroys;
1: - long unsigned int hash_grows;
1: - long unsigned int res_failed;
1: - long unsigned int lookups;
1: - long unsigned int hits;
1: - long unsigned int rcv_probes_mcast;
1: - long unsigned int rcv_probes_ucast;
1: - long unsigned int periodic_gc_runs;
1: - long unsigned int forced_gc_runs;
1: - long unsigned int unres_discards;
1: - long unsigned int table_fulls;
1: + long unsigned int allocs;
1: + long unsigned int destroys;
1: + long unsigned int hash_grows;
1: + long unsigned int res_failed;
1: + long unsigned int lookups;
1: + long unsigned int hits;
1: + long unsigned int rcv_probes_mcast;
1: + long unsigned int rcv_probes_ucast;
1: + long unsigned int periodic_gc_runs;
1: + long unsigned int forced_gc_runs;
1: + long unsigned int unres_discards;
1: + long unsigned int table_fulls;
1: };
1:
1: struct neigh_ops {
1: - int family;
1: - void (*solicit)(struct neighbour *, struct sk_buff *);
1: - void (*error_report)(struct neighbour *, struct sk_buff *);
1: - int (*output)(struct neighbour *, struct sk_buff *);
1: - int (*connected_output)(struct neighbour *, struct sk_buff *);
1: + int family;
1: + void (*solicit)(struct neighbour *, struct sk_buff *);
1: + void (*error_report)(struct neighbour *, struct sk_buff *);
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + int (*connected_output)(struct neighbour *, struct sk_buff *);
1: };
1:
1: struct pneigh_entry {
1: - struct pneigh_entry *next;
1: - possible_net_t net;
1: - struct net_device *dev;
1: - u8 flags;
1: - u8 protocol;
1: - u8 key[0];
1: + struct pneigh_entry *next;
1: + possible_net_t net;
1: + struct net_device *dev;
1: + u8 flags;
1: + u8 protocol;
1: + u8 key[0];
1: };
1:
1: struct neigh_hash_table {
1: - struct neighbour **hash_buckets;
1: - unsigned int hash_shift;
1: - __u32 hash_rnd[4];
1: - struct callback_head rcu;
1: + struct neighbour **hash_buckets;
1: + unsigned int hash_shift;
1: + __u32 hash_rnd[4];
1: + struct callback_head rcu;
1: };
1:
1: enum {
1: - TCP_ESTABLISHED = 1,
1: - TCP_SYN_SENT = 2,
1: - TCP_SYN_RECV = 3,
1: - TCP_FIN_WAIT1 = 4,
1: - TCP_FIN_WAIT2 = 5,
1: - TCP_TIME_WAIT = 6,
1: - TCP_CLOSE = 7,
1: - TCP_CLOSE_WAIT = 8,
1: - TCP_LAST_ACK = 9,
1: - TCP_LISTEN = 10,
1: - TCP_CLOSING = 11,
1: - TCP_NEW_SYN_RECV = 12,
1: - TCP_MAX_STATES = 13,
1: + TCP_ESTABLISHED = 1,
1: + TCP_SYN_SENT = 2,
1: + TCP_SYN_RECV = 3,
1: + TCP_FIN_WAIT1 = 4,
1: + TCP_FIN_WAIT2 = 5,
1: + TCP_TIME_WAIT = 6,
1: + TCP_CLOSE = 7,
1: + TCP_CLOSE_WAIT = 8,
1: + TCP_LAST_ACK = 9,
1: + TCP_LISTEN = 10,
1: + TCP_CLOSING = 11,
1: + TCP_NEW_SYN_RECV = 12,
1: + TCP_MAX_STATES = 13,
1: };
1:
1: struct fib_rule_hdr {
1: - __u8 family;
1: - __u8 dst_len;
1: - __u8 src_len;
1: - __u8 tos;
1: - __u8 table;
1: - __u8 res1;
1: - __u8 res2;
1: - __u8 action;
1: - __u32 flags;
1: + __u8 family;
1: + __u8 dst_len;
1: + __u8 src_len;
1: + __u8 tos;
1: + __u8 table;
1: + __u8 res1;
1: + __u8 res2;
1: + __u8 action;
1: + __u32 flags;
1: };
1:
1: struct fib_rule_port_range {
1: - __u16 start;
1: - __u16 end;
1: + __u16 start;
1: + __u16 end;
1: };
1:
1: struct fib_kuid_range {
1: - kuid_t start;
1: - kuid_t end;
1: + kuid_t start;
1: + kuid_t end;
1: };
1:
1: struct fib_rule {
1: - struct list_head list;
1: - int iifindex;
1: - int oifindex;
1: - u32 mark;
1: - u32 mark_mask;
1: - u32 flags;
1: - u32 table;
1: - u8 action;
1: - u8 l3mdev;
1: - u8 proto;
1: - u8 ip_proto;
1: - u32 target;
1: - __be64 tun_id;
1: - struct fib_rule *ctarget;
1: - struct net *fr_net;
1: - refcount_t refcnt;
1: - u32 pref;
1: - int suppress_ifgroup;
1: - int suppress_prefixlen;
1: - char iifname[16];
1: - char oifname[16];
1: - struct fib_kuid_range uid_range;
1: - struct fib_rule_port_range sport_range;
1: - struct fib_rule_port_range dport_range;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + int iifindex;
1: + int oifindex;
1: + u32 mark;
1: + u32 mark_mask;
1: + u32 flags;
1: + u32 table;
1: + u8 action;
1: + u8 l3mdev;
1: + u8 proto;
1: + u8 ip_proto;
1: + u32 target;
1: + __be64 tun_id;
1: + struct fib_rule *ctarget;
1: + struct net *fr_net;
1: + refcount_t refcnt;
1: + u32 pref;
1: + int suppress_ifgroup;
1: + int suppress_prefixlen;
1: + char iifname[16];
1: + char oifname[16];
1: + struct fib_kuid_range uid_range;
1: + struct fib_rule_port_range sport_range;
1: + struct fib_rule_port_range dport_range;
1: + struct callback_head rcu;
1: };
1:
1: struct fib_lookup_arg {
1: - void *lookup_ptr;
1: - const void *lookup_data;
1: - void *result;
1: - struct fib_rule *rule;
1: - u32 table;
1: - int flags;
1: + void *lookup_ptr;
1: + const void *lookup_data;
1: + void *result;
1: + struct fib_rule *rule;
1: + u32 table;
1: + int flags;
1: };
1:
1: struct smc_hashinfo;
1: @@ -12644,1170 +12827,1174 @@ struct udp_table;
1: struct raw_hashinfo;
1:
1: struct proto {
1: - void (*close)(struct sock *, long int);
1: - int (*pre_connect)(struct sock *, struct sockaddr *, int);
1: - int (*connect)(struct sock *, struct sockaddr *, int);
1: - int (*disconnect)(struct sock *, int);
1: - struct sock * (*accept)(struct sock *, int, int *, bool);
1: - int (*ioctl)(struct sock *, int, long unsigned int);
1: - int (*init)(struct sock *);
1: - void (*destroy)(struct sock *);
1: - void (*shutdown)(struct sock *, int);
1: - int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: - int (*getsockopt)(struct sock *, int, int, char *, int *);
1: - void (*keepalive)(struct sock *, int);
1: - int (*compat_ioctl)(struct sock *, unsigned int, long unsigned int);
1: - int (*sendmsg)(struct sock *, struct msghdr *, size_t);
1: - int (*recvmsg)(struct sock *, struct msghdr *, size_t, int, int, int *);
1: - int (*sendpage)(struct sock *, struct page *, int, size_t, int);
1: - int (*bind)(struct sock *, struct sockaddr *, int);
1: - int (*bind_add)(struct sock *, struct sockaddr *, int);
1: - int (*backlog_rcv)(struct sock *, struct sk_buff *);
1: - void (*release_cb)(struct sock *);
1: - int (*hash)(struct sock *);
1: - void (*unhash)(struct sock *);
1: - void (*rehash)(struct sock *);
1: - int (*get_port)(struct sock *, short unsigned int);
1: - unsigned int inuse_idx;
1: - bool (*stream_memory_free)(const struct sock *, int);
1: - bool (*stream_memory_read)(const struct sock *);
1: - void (*enter_memory_pressure)(struct sock *);
1: - void (*leave_memory_pressure)(struct sock *);
1: - atomic_long_t *memory_allocated;
1: - struct percpu_counter *sockets_allocated;
1: - long unsigned int *memory_pressure;
1: - long int *sysctl_mem;
1: - int *sysctl_wmem;
1: - int *sysctl_rmem;
1: - u32 sysctl_wmem_offset;
1: - u32 sysctl_rmem_offset;
1: - int max_header;
1: - bool no_autobind;
1: - struct kmem_cache *slab;
1: - unsigned int obj_size;
1: - slab_flags_t slab_flags;
1: - unsigned int useroffset;
1: - unsigned int usersize;
1: - struct percpu_counter *orphan_count;
1: - struct request_sock_ops *rsk_prot;
1: - struct timewait_sock_ops *twsk_prot;
1: - union {
1: - struct inet_hashinfo *hashinfo;
1: - struct udp_table *udp_table;
1: - struct raw_hashinfo *raw_hash;
1: - struct smc_hashinfo *smc_hash;
1: - } h;
1: - struct module *owner;
1: - char name[32];
1: - struct list_head node;
1: - int (*diag_destroy)(struct sock *, int);
1: + void (*close)(struct sock *, long int);
1: + int (*pre_connect)(struct sock *, struct sockaddr *, int);
1: + int (*connect)(struct sock *, struct sockaddr *, int);
1: + int (*disconnect)(struct sock *, int);
1: + struct sock *(*accept)(struct sock *, int, int *, bool);
1: + int (*ioctl)(struct sock *, int, long unsigned int);
1: + int (*init)(struct sock *);
1: + void (*destroy)(struct sock *);
1: + void (*shutdown)(struct sock *, int);
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*keepalive)(struct sock *, int);
1: + int (*compat_ioctl)(struct sock *, unsigned int, long unsigned int);
1: + int (*sendmsg)(struct sock *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct sock *, struct msghdr *, size_t, int, int, int *);
1: + int (*sendpage)(struct sock *, struct page *, int, size_t, int);
1: + int (*bind)(struct sock *, struct sockaddr *, int);
1: + int (*bind_add)(struct sock *, struct sockaddr *, int);
1: + int (*backlog_rcv)(struct sock *, struct sk_buff *);
1: + void (*release_cb)(struct sock *);
1: + int (*hash)(struct sock *);
1: + void (*unhash)(struct sock *);
1: + void (*rehash)(struct sock *);
1: + int (*get_port)(struct sock *, short unsigned int);
1: + unsigned int inuse_idx;
1: + bool (*stream_memory_free)(const struct sock *, int);
1: + bool (*stream_memory_read)(const struct sock *);
1: + void (*enter_memory_pressure)(struct sock *);
1: + void (*leave_memory_pressure)(struct sock *);
1: + atomic_long_t *memory_allocated;
1: + struct percpu_counter *sockets_allocated;
1: + long unsigned int *memory_pressure;
1: + long int *sysctl_mem;
1: + int *sysctl_wmem;
1: + int *sysctl_rmem;
1: + u32 sysctl_wmem_offset;
1: + u32 sysctl_rmem_offset;
1: + int max_header;
1: + bool no_autobind;
1: + struct kmem_cache *slab;
1: + unsigned int obj_size;
1: + slab_flags_t slab_flags;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct percpu_counter *orphan_count;
1: + struct request_sock_ops *rsk_prot;
1: + struct timewait_sock_ops *twsk_prot;
1: + union {
1: + struct inet_hashinfo *hashinfo;
1: + struct udp_table *udp_table;
1: + struct raw_hashinfo *raw_hash;
1: + struct smc_hashinfo *smc_hash;
1: + } h;
1: + struct module *owner;
1: + char name[32];
1: + struct list_head node;
1: + int (*diag_destroy)(struct sock *, int);
1: };
1:
1: struct request_sock;
1:
1: struct request_sock_ops {
1: - int family;
1: - unsigned int obj_size;
1: - struct kmem_cache *slab;
1: - char *slab_name;
1: - int (*rtx_syn_ack)(const struct sock *, struct request_sock *);
1: - void (*send_ack)(const struct sock *, struct sk_buff *, struct request_sock *);
1: - void (*send_reset)(const struct sock *, struct sk_buff *);
1: - void (*destructor)(struct request_sock *);
1: - void (*syn_ack_timeout)(const struct request_sock *);
1: + int family;
1: + unsigned int obj_size;
1: + struct kmem_cache *slab;
1: + char *slab_name;
1: + int (*rtx_syn_ack)(const struct sock *, struct request_sock *);
1: + void (*send_ack)(const struct sock *, struct sk_buff *,
1: + struct request_sock *);
1: + void (*send_reset)(const struct sock *, struct sk_buff *);
1: + void (*destructor)(struct request_sock *);
1: + void (*syn_ack_timeout)(const struct request_sock *);
1: };
1:
1: struct timewait_sock_ops {
1: - struct kmem_cache *twsk_slab;
1: - char *twsk_slab_name;
1: - unsigned int twsk_obj_size;
1: - int (*twsk_unique)(struct sock *, struct sock *, void *);
1: - void (*twsk_destructor)(struct sock *);
1: + struct kmem_cache *twsk_slab;
1: + char *twsk_slab_name;
1: + unsigned int twsk_obj_size;
1: + int (*twsk_unique)(struct sock *, struct sock *, void *);
1: + void (*twsk_destructor)(struct sock *);
1: };
1:
1: struct saved_syn;
1:
1: struct request_sock {
1: - struct sock_common __req_common;
1: - struct request_sock *dl_next;
1: - u16 mss;
1: - u8 num_retrans;
1: - u8 syncookie: 1;
1: - u8 num_timeout: 7;
1: - u32 ts_recent;
1: - struct timer_list rsk_timer;
1: - const struct request_sock_ops *rsk_ops;
1: - struct sock *sk;
1: - struct saved_syn *saved_syn;
1: - u32 secid;
1: - u32 peer_secid;
1: + struct sock_common __req_common;
1: + struct request_sock *dl_next;
1: + u16 mss;
1: + u8 num_retrans;
1: + u8 syncookie : 1;
1: + u8 num_timeout : 7;
1: + u32 ts_recent;
1: + struct timer_list rsk_timer;
1: + const struct request_sock_ops *rsk_ops;
1: + struct sock *sk;
1: + struct saved_syn *saved_syn;
1: + u32 secid;
1: + u32 peer_secid;
1: };
1:
1: struct saved_syn {
1: - u32 mac_hdrlen;
1: - u32 network_hdrlen;
1: - u32 tcp_hdrlen;
1: - u8 data[0];
1: + u32 mac_hdrlen;
1: + u32 network_hdrlen;
1: + u32 tcp_hdrlen;
1: + u8 data[0];
1: };
1:
1: enum tsq_enum {
1: - TSQ_THROTTLED = 0,
1: - TSQ_QUEUED = 1,
1: - TCP_TSQ_DEFERRED = 2,
1: - TCP_WRITE_TIMER_DEFERRED = 3,
1: - TCP_DELACK_TIMER_DEFERRED = 4,
1: - TCP_MTU_REDUCED_DEFERRED = 5,
1: + TSQ_THROTTLED = 0,
1: + TSQ_QUEUED = 1,
1: + TCP_TSQ_DEFERRED = 2,
1: + TCP_WRITE_TIMER_DEFERRED = 3,
1: + TCP_DELACK_TIMER_DEFERRED = 4,
1: + TCP_MTU_REDUCED_DEFERRED = 5,
1: };
1:
1: struct ip6_sf_list {
1: - struct ip6_sf_list *sf_next;
1: - struct in6_addr sf_addr;
1: - long unsigned int sf_count[2];
1: - unsigned char sf_gsresp;
1: - unsigned char sf_oldin;
1: - unsigned char sf_crcount;
1: + struct ip6_sf_list *sf_next;
1: + struct in6_addr sf_addr;
1: + long unsigned int sf_count[2];
1: + unsigned char sf_gsresp;
1: + unsigned char sf_oldin;
1: + unsigned char sf_crcount;
1: };
1:
1: struct ifmcaddr6 {
1: - struct in6_addr mca_addr;
1: - struct inet6_dev *idev;
1: - struct ifmcaddr6 *next;
1: - struct ip6_sf_list *mca_sources;
1: - struct ip6_sf_list *mca_tomb;
1: - unsigned int mca_sfmode;
1: - unsigned char mca_crcount;
1: - long unsigned int mca_sfcount[2];
1: - struct timer_list mca_timer;
1: - unsigned int mca_flags;
1: - int mca_users;
1: - refcount_t mca_refcnt;
1: - spinlock_t mca_lock;
1: - long unsigned int mca_cstamp;
1: - long unsigned int mca_tstamp;
1: + struct in6_addr mca_addr;
1: + struct inet6_dev *idev;
1: + struct ifmcaddr6 *next;
1: + struct ip6_sf_list *mca_sources;
1: + struct ip6_sf_list *mca_tomb;
1: + unsigned int mca_sfmode;
1: + unsigned char mca_crcount;
1: + long unsigned int mca_sfcount[2];
1: + struct timer_list mca_timer;
1: + unsigned int mca_flags;
1: + int mca_users;
1: + refcount_t mca_refcnt;
1: + spinlock_t mca_lock;
1: + long unsigned int mca_cstamp;
1: + long unsigned int mca_tstamp;
1: };
1:
1: struct ifacaddr6 {
1: - struct in6_addr aca_addr;
1: - struct fib6_info *aca_rt;
1: - struct ifacaddr6 *aca_next;
1: - struct hlist_node aca_addr_lst;
1: - int aca_users;
1: - refcount_t aca_refcnt;
1: - long unsigned int aca_cstamp;
1: - long unsigned int aca_tstamp;
1: - struct callback_head rcu;
1: -};
1: -
1: -enum {
1: - __ND_OPT_PREFIX_INFO_END = 0,
1: - ND_OPT_SOURCE_LL_ADDR = 1,
1: - ND_OPT_TARGET_LL_ADDR = 2,
1: - ND_OPT_PREFIX_INFO = 3,
1: - ND_OPT_REDIRECT_HDR = 4,
1: - ND_OPT_MTU = 5,
1: - ND_OPT_NONCE = 14,
1: - __ND_OPT_ARRAY_MAX = 15,
1: - ND_OPT_ROUTE_INFO = 24,
1: - ND_OPT_RDNSS = 25,
1: - ND_OPT_DNSSL = 31,
1: - ND_OPT_6CO = 34,
1: - ND_OPT_CAPTIVE_PORTAL = 37,
1: - ND_OPT_PREF64 = 38,
1: - __ND_OPT_MAX = 39,
1: + struct in6_addr aca_addr;
1: + struct fib6_info *aca_rt;
1: + struct ifacaddr6 *aca_next;
1: + struct hlist_node aca_addr_lst;
1: + int aca_users;
1: + refcount_t aca_refcnt;
1: + long unsigned int aca_cstamp;
1: + long unsigned int aca_tstamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + __ND_OPT_PREFIX_INFO_END = 0,
1: + ND_OPT_SOURCE_LL_ADDR = 1,
1: + ND_OPT_TARGET_LL_ADDR = 2,
1: + ND_OPT_PREFIX_INFO = 3,
1: + ND_OPT_REDIRECT_HDR = 4,
1: + ND_OPT_MTU = 5,
1: + ND_OPT_NONCE = 14,
1: + __ND_OPT_ARRAY_MAX = 15,
1: + ND_OPT_ROUTE_INFO = 24,
1: + ND_OPT_RDNSS = 25,
1: + ND_OPT_DNSSL = 31,
1: + ND_OPT_6CO = 34,
1: + ND_OPT_CAPTIVE_PORTAL = 37,
1: + ND_OPT_PREF64 = 38,
1: + __ND_OPT_MAX = 39,
1: };
1:
1: struct nd_opt_hdr {
1: - __u8 nd_opt_type;
1: - __u8 nd_opt_len;
1: + __u8 nd_opt_type;
1: + __u8 nd_opt_len;
1: };
1:
1: struct ndisc_options {
1: - struct nd_opt_hdr *nd_opt_array[15];
1: - struct nd_opt_hdr *nd_opts_ri;
1: - struct nd_opt_hdr *nd_opts_ri_end;
1: - struct nd_opt_hdr *nd_useropts;
1: - struct nd_opt_hdr *nd_useropts_end;
1: - struct nd_opt_hdr *nd_802154_opt_array[3];
1: + struct nd_opt_hdr *nd_opt_array[15];
1: + struct nd_opt_hdr *nd_opts_ri;
1: + struct nd_opt_hdr *nd_opts_ri_end;
1: + struct nd_opt_hdr *nd_useropts;
1: + struct nd_opt_hdr *nd_useropts_end;
1: + struct nd_opt_hdr *nd_802154_opt_array[3];
1: };
1:
1: struct prefix_info {
1: - __u8 type;
1: - __u8 length;
1: - __u8 prefix_len;
1: - __u8 reserved: 6;
1: - __u8 autoconf: 1;
1: - __u8 onlink: 1;
1: - __be32 valid;
1: - __be32 prefered;
1: - __be32 reserved2;
1: - struct in6_addr prefix;
1: + __u8 type;
1: + __u8 length;
1: + __u8 prefix_len;
1: + __u8 reserved : 6;
1: + __u8 autoconf : 1;
1: + __u8 onlink : 1;
1: + __be32 valid;
1: + __be32 prefered;
1: + __be32 reserved2;
1: + struct in6_addr prefix;
1: };
1:
1: enum nfs_opnum4 {
1: - OP_ACCESS = 3,
1: - OP_CLOSE = 4,
1: - OP_COMMIT = 5,
1: - OP_CREATE = 6,
1: - OP_DELEGPURGE = 7,
1: - OP_DELEGRETURN = 8,
1: - OP_GETATTR = 9,
1: - OP_GETFH = 10,
1: - OP_LINK = 11,
1: - OP_LOCK = 12,
1: - OP_LOCKT = 13,
1: - OP_LOCKU = 14,
1: - OP_LOOKUP = 15,
1: - OP_LOOKUPP = 16,
1: - OP_NVERIFY = 17,
1: - OP_OPEN = 18,
1: - OP_OPENATTR = 19,
1: - OP_OPEN_CONFIRM = 20,
1: - OP_OPEN_DOWNGRADE = 21,
1: - OP_PUTFH = 22,
1: - OP_PUTPUBFH = 23,
1: - OP_PUTROOTFH = 24,
1: - OP_READ = 25,
1: - OP_READDIR = 26,
1: - OP_READLINK = 27,
1: - OP_REMOVE = 28,
1: - OP_RENAME = 29,
1: - OP_RENEW = 30,
1: - OP_RESTOREFH = 31,
1: - OP_SAVEFH = 32,
1: - OP_SECINFO = 33,
1: - OP_SETATTR = 34,
1: - OP_SETCLIENTID = 35,
1: - OP_SETCLIENTID_CONFIRM = 36,
1: - OP_VERIFY = 37,
1: - OP_WRITE = 38,
1: - OP_RELEASE_LOCKOWNER = 39,
1: - OP_BACKCHANNEL_CTL = 40,
1: - OP_BIND_CONN_TO_SESSION = 41,
1: - OP_EXCHANGE_ID = 42,
1: - OP_CREATE_SESSION = 43,
1: - OP_DESTROY_SESSION = 44,
1: - OP_FREE_STATEID = 45,
1: - OP_GET_DIR_DELEGATION = 46,
1: - OP_GETDEVICEINFO = 47,
1: - OP_GETDEVICELIST = 48,
1: - OP_LAYOUTCOMMIT = 49,
1: - OP_LAYOUTGET = 50,
1: - OP_LAYOUTRETURN = 51,
1: - OP_SECINFO_NO_NAME = 52,
1: - OP_SEQUENCE = 53,
1: - OP_SET_SSV = 54,
1: - OP_TEST_STATEID = 55,
1: - OP_WANT_DELEGATION = 56,
1: - OP_DESTROY_CLIENTID = 57,
1: - OP_RECLAIM_COMPLETE = 58,
1: - OP_ALLOCATE = 59,
1: - OP_COPY = 60,
1: - OP_COPY_NOTIFY = 61,
1: - OP_DEALLOCATE = 62,
1: - OP_IO_ADVISE = 63,
1: - OP_LAYOUTERROR = 64,
1: - OP_LAYOUTSTATS = 65,
1: - OP_OFFLOAD_CANCEL = 66,
1: - OP_OFFLOAD_STATUS = 67,
1: - OP_READ_PLUS = 68,
1: - OP_SEEK = 69,
1: - OP_WRITE_SAME = 70,
1: - OP_CLONE = 71,
1: - OP_GETXATTR = 72,
1: - OP_SETXATTR = 73,
1: - OP_LISTXATTRS = 74,
1: - OP_REMOVEXATTR = 75,
1: - OP_ILLEGAL = 10044,
1: + OP_ACCESS = 3,
1: + OP_CLOSE = 4,
1: + OP_COMMIT = 5,
1: + OP_CREATE = 6,
1: + OP_DELEGPURGE = 7,
1: + OP_DELEGRETURN = 8,
1: + OP_GETATTR = 9,
1: + OP_GETFH = 10,
1: + OP_LINK = 11,
1: + OP_LOCK = 12,
1: + OP_LOCKT = 13,
1: + OP_LOCKU = 14,
1: + OP_LOOKUP = 15,
1: + OP_LOOKUPP = 16,
1: + OP_NVERIFY = 17,
1: + OP_OPEN = 18,
1: + OP_OPENATTR = 19,
1: + OP_OPEN_CONFIRM = 20,
1: + OP_OPEN_DOWNGRADE = 21,
1: + OP_PUTFH = 22,
1: + OP_PUTPUBFH = 23,
1: + OP_PUTROOTFH = 24,
1: + OP_READ = 25,
1: + OP_READDIR = 26,
1: + OP_READLINK = 27,
1: + OP_REMOVE = 28,
1: + OP_RENAME = 29,
1: + OP_RENEW = 30,
1: + OP_RESTOREFH = 31,
1: + OP_SAVEFH = 32,
1: + OP_SECINFO = 33,
1: + OP_SETATTR = 34,
1: + OP_SETCLIENTID = 35,
1: + OP_SETCLIENTID_CONFIRM = 36,
1: + OP_VERIFY = 37,
1: + OP_WRITE = 38,
1: + OP_RELEASE_LOCKOWNER = 39,
1: + OP_BACKCHANNEL_CTL = 40,
1: + OP_BIND_CONN_TO_SESSION = 41,
1: + OP_EXCHANGE_ID = 42,
1: + OP_CREATE_SESSION = 43,
1: + OP_DESTROY_SESSION = 44,
1: + OP_FREE_STATEID = 45,
1: + OP_GET_DIR_DELEGATION = 46,
1: + OP_GETDEVICEINFO = 47,
1: + OP_GETDEVICELIST = 48,
1: + OP_LAYOUTCOMMIT = 49,
1: + OP_LAYOUTGET = 50,
1: + OP_LAYOUTRETURN = 51,
1: + OP_SECINFO_NO_NAME = 52,
1: + OP_SEQUENCE = 53,
1: + OP_SET_SSV = 54,
1: + OP_TEST_STATEID = 55,
1: + OP_WANT_DELEGATION = 56,
1: + OP_DESTROY_CLIENTID = 57,
1: + OP_RECLAIM_COMPLETE = 58,
1: + OP_ALLOCATE = 59,
1: + OP_COPY = 60,
1: + OP_COPY_NOTIFY = 61,
1: + OP_DEALLOCATE = 62,
1: + OP_IO_ADVISE = 63,
1: + OP_LAYOUTERROR = 64,
1: + OP_LAYOUTSTATS = 65,
1: + OP_OFFLOAD_CANCEL = 66,
1: + OP_OFFLOAD_STATUS = 67,
1: + OP_READ_PLUS = 68,
1: + OP_SEEK = 69,
1: + OP_WRITE_SAME = 70,
1: + OP_CLONE = 71,
1: + OP_GETXATTR = 72,
1: + OP_SETXATTR = 73,
1: + OP_LISTXATTRS = 74,
1: + OP_REMOVEXATTR = 75,
1: + OP_ILLEGAL = 10044,
1: };
1:
1: enum perf_branch_sample_type_shift {
1: - PERF_SAMPLE_BRANCH_USER_SHIFT = 0,
1: - PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 1,
1: - PERF_SAMPLE_BRANCH_HV_SHIFT = 2,
1: - PERF_SAMPLE_BRANCH_ANY_SHIFT = 3,
1: - PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 4,
1: - PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 5,
1: - PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 6,
1: - PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 7,
1: - PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 8,
1: - PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 9,
1: - PERF_SAMPLE_BRANCH_COND_SHIFT = 10,
1: - PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11,
1: - PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 12,
1: - PERF_SAMPLE_BRANCH_CALL_SHIFT = 13,
1: - PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 14,
1: - PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 15,
1: - PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 16,
1: - PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 17,
1: - PERF_SAMPLE_BRANCH_MAX_SHIFT = 18,
1: + PERF_SAMPLE_BRANCH_USER_SHIFT = 0,
1: + PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 1,
1: + PERF_SAMPLE_BRANCH_HV_SHIFT = 2,
1: + PERF_SAMPLE_BRANCH_ANY_SHIFT = 3,
1: + PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 4,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 5,
1: + PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 6,
1: + PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 7,
1: + PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 8,
1: + PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 9,
1: + PERF_SAMPLE_BRANCH_COND_SHIFT = 10,
1: + PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11,
1: + PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 12,
1: + PERF_SAMPLE_BRANCH_CALL_SHIFT = 13,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 14,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 15,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 16,
1: + PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 17,
1: + PERF_SAMPLE_BRANCH_MAX_SHIFT = 18,
1: };
1:
1: struct uuidcmp {
1: - const char *uuid;
1: - int len;
1: + const char *uuid;
1: + int len;
1: };
1:
1: typedef __u64 __le64;
1:
1: struct minix_super_block {
1: - __u16 s_ninodes;
1: - __u16 s_nzones;
1: - __u16 s_imap_blocks;
1: - __u16 s_zmap_blocks;
1: - __u16 s_firstdatazone;
1: - __u16 s_log_zone_size;
1: - __u32 s_max_size;
1: - __u16 s_magic;
1: - __u16 s_state;
1: - __u32 s_zones;
1: + __u16 s_ninodes;
1: + __u16 s_nzones;
1: + __u16 s_imap_blocks;
1: + __u16 s_zmap_blocks;
1: + __u16 s_firstdatazone;
1: + __u16 s_log_zone_size;
1: + __u32 s_max_size;
1: + __u16 s_magic;
1: + __u16 s_state;
1: + __u32 s_zones;
1: };
1:
1: struct romfs_super_block {
1: - __be32 word0;
1: - __be32 word1;
1: - __be32 size;
1: - __be32 checksum;
1: - char name[0];
1: + __be32 word0;
1: + __be32 word1;
1: + __be32 size;
1: + __be32 checksum;
1: + char name[0];
1: };
1:
1: struct cramfs_inode {
1: - __u32 mode: 16;
1: - __u32 uid: 16;
1: - __u32 size: 24;
1: - __u32 gid: 8;
1: - __u32 namelen: 6;
1: - __u32 offset: 26;
1: + __u32 mode : 16;
1: + __u32 uid : 16;
1: + __u32 size : 24;
1: + __u32 gid : 8;
1: + __u32 namelen : 6;
1: + __u32 offset : 26;
1: };
1:
1: struct cramfs_info {
1: - __u32 crc;
1: - __u32 edition;
1: - __u32 blocks;
1: - __u32 files;
1: + __u32 crc;
1: + __u32 edition;
1: + __u32 blocks;
1: + __u32 files;
1: };
1:
1: struct cramfs_super {
1: - __u32 magic;
1: - __u32 size;
1: - __u32 flags;
1: - __u32 future;
1: - __u8 signature[16];
1: - struct cramfs_info fsid;
1: - __u8 name[16];
1: - struct cramfs_inode root;
1: + __u32 magic;
1: + __u32 size;
1: + __u32 flags;
1: + __u32 future;
1: + __u8 signature[16];
1: + struct cramfs_info fsid;
1: + __u8 name[16];
1: + struct cramfs_inode root;
1: };
1:
1: struct squashfs_super_block {
1: - __le32 s_magic;
1: - __le32 inodes;
1: - __le32 mkfs_time;
1: - __le32 block_size;
1: - __le32 fragments;
1: - __le16 compression;
1: - __le16 block_log;
1: - __le16 flags;
1: - __le16 no_ids;
1: - __le16 s_major;
1: - __le16 s_minor;
1: - __le64 root_inode;
1: - __le64 bytes_used;
1: - __le64 id_table_start;
1: - __le64 xattr_id_table_start;
1: - __le64 inode_table_start;
1: - __le64 directory_table_start;
1: - __le64 fragment_table_start;
1: - __le64 lookup_table_start;
1: -};
1: -
1: -typedef int (*decompress_fn)(unsigned char *, long int, long int (*)(void *, long unsigned int), long int (*)(void *, long unsigned int), unsigned char *, long int *, void (*)(char *));
1: + __le32 s_magic;
1: + __le32 inodes;
1: + __le32 mkfs_time;
1: + __le32 block_size;
1: + __le32 fragments;
1: + __le16 compression;
1: + __le16 block_log;
1: + __le16 flags;
1: + __le16 no_ids;
1: + __le16 s_major;
1: + __le16 s_minor;
1: + __le64 root_inode;
1: + __le64 bytes_used;
1: + __le64 id_table_start;
1: + __le64 xattr_id_table_start;
1: + __le64 inode_table_start;
1: + __le64 directory_table_start;
1: + __le64 fragment_table_start;
1: + __le64 lookup_table_start;
1: +};
1: +
1: +typedef int (*decompress_fn)(unsigned char *, long int,
1: + long int (*)(void *, long unsigned int),
1: + long int (*)(void *, long unsigned int),
1: + unsigned char *, long int *, void (*)(char *));
1:
1: struct subprocess_info {
1: - struct work_struct work;
1: - struct completion *complete;
1: - const char *path;
1: - char **argv;
1: - char **envp;
1: - int wait;
1: - int retval;
1: - int (*init)(struct subprocess_info *, struct cred *);
1: - void (*cleanup)(struct subprocess_info *);
1: - void *data;
1: + struct work_struct work;
1: + struct completion *complete;
1: + const char *path;
1: + char **argv;
1: + char **envp;
1: + int wait;
1: + int retval;
1: + int (*init)(struct subprocess_info *, struct cred *);
1: + void (*cleanup)(struct subprocess_info *);
1: + void *data;
1: };
1:
1: typedef phys_addr_t resource_size_t;
1:
1: struct resource {
1: - resource_size_t start;
1: - resource_size_t end;
1: - const char *name;
1: - long unsigned int flags;
1: - long unsigned int desc;
1: - struct resource *parent;
1: - struct resource *sibling;
1: - struct resource *child;
1: + resource_size_t start;
1: + resource_size_t end;
1: + const char *name;
1: + long unsigned int flags;
1: + long unsigned int desc;
1: + struct resource *parent;
1: + struct resource *sibling;
1: + struct resource *child;
1: };
1:
1: struct hash {
1: - int ino;
1: - int minor;
1: - int major;
1: - umode_t mode;
1: - struct hash *next;
1: - char name[4098];
1: + int ino;
1: + int minor;
1: + int major;
1: + umode_t mode;
1: + struct hash *next;
1: + char name[4098];
1: };
1:
1: struct dir_entry {
1: - struct list_head list;
1: - char *name;
1: - time64_t mtime;
1: + struct list_head list;
1: + char *name;
1: + time64_t mtime;
1: };
1:
1: enum state {
1: - Start = 0,
1: - Collect = 1,
1: - GotHeader = 2,
1: - SkipIt = 3,
1: - GotName = 4,
1: - CopyFile = 5,
1: - GotSymlink = 6,
1: - Reset = 7,
1: + Start = 0,
1: + Collect = 1,
1: + GotHeader = 2,
1: + SkipIt = 3,
1: + GotName = 4,
1: + CopyFile = 5,
1: + GotSymlink = 6,
1: + Reset = 7,
1: };
1:
1: enum migratetype {
1: - MIGRATE_UNMOVABLE = 0,
1: - MIGRATE_MOVABLE = 1,
1: - MIGRATE_RECLAIMABLE = 2,
1: - MIGRATE_PCPTYPES = 3,
1: - MIGRATE_HIGHATOMIC = 3,
1: - MIGRATE_CMA = 4,
1: - MIGRATE_ISOLATE = 5,
1: - MIGRATE_TYPES = 6,
1: + MIGRATE_UNMOVABLE = 0,
1: + MIGRATE_MOVABLE = 1,
1: + MIGRATE_RECLAIMABLE = 2,
1: + MIGRATE_PCPTYPES = 3,
1: + MIGRATE_HIGHATOMIC = 3,
1: + MIGRATE_CMA = 4,
1: + MIGRATE_ISOLATE = 5,
1: + MIGRATE_TYPES = 6,
1: };
1:
1: enum numa_stat_item {
1: - NUMA_HIT = 0,
1: - NUMA_MISS = 1,
1: - NUMA_FOREIGN = 2,
1: - NUMA_INTERLEAVE_HIT = 3,
1: - NUMA_LOCAL = 4,
1: - NUMA_OTHER = 5,
1: - NR_VM_NUMA_STAT_ITEMS = 6,
1: + NUMA_HIT = 0,
1: + NUMA_MISS = 1,
1: + NUMA_FOREIGN = 2,
1: + NUMA_INTERLEAVE_HIT = 3,
1: + NUMA_LOCAL = 4,
1: + NUMA_OTHER = 5,
1: + NR_VM_NUMA_STAT_ITEMS = 6,
1: };
1:
1: enum zone_stat_item {
1: - NR_FREE_PAGES = 0,
1: - NR_ZONE_LRU_BASE = 1,
1: - NR_ZONE_INACTIVE_ANON = 1,
1: - NR_ZONE_ACTIVE_ANON = 2,
1: - NR_ZONE_INACTIVE_FILE = 3,
1: - NR_ZONE_ACTIVE_FILE = 4,
1: - NR_ZONE_UNEVICTABLE = 5,
1: - NR_ZONE_WRITE_PENDING = 6,
1: - NR_MLOCK = 7,
1: - NR_PAGETABLE = 8,
1: - NR_BOUNCE = 9,
1: - NR_ZSPAGES = 10,
1: - NR_FREE_CMA_PAGES = 11,
1: - NR_VM_ZONE_STAT_ITEMS = 12,
1: + NR_FREE_PAGES = 0,
1: + NR_ZONE_LRU_BASE = 1,
1: + NR_ZONE_INACTIVE_ANON = 1,
1: + NR_ZONE_ACTIVE_ANON = 2,
1: + NR_ZONE_INACTIVE_FILE = 3,
1: + NR_ZONE_ACTIVE_FILE = 4,
1: + NR_ZONE_UNEVICTABLE = 5,
1: + NR_ZONE_WRITE_PENDING = 6,
1: + NR_MLOCK = 7,
1: + NR_PAGETABLE = 8,
1: + NR_BOUNCE = 9,
1: + NR_ZSPAGES = 10,
1: + NR_FREE_CMA_PAGES = 11,
1: + NR_VM_ZONE_STAT_ITEMS = 12,
1: };
1:
1: enum zone_watermarks {
1: - WMARK_MIN = 0,
1: - WMARK_LOW = 1,
1: - WMARK_HIGH = 2,
1: - NR_WMARK = 3,
1: + WMARK_MIN = 0,
1: + WMARK_LOW = 1,
1: + WMARK_HIGH = 2,
1: + NR_WMARK = 3,
1: };
1:
1: enum {
1: - ZONELIST_FALLBACK = 0,
1: - ZONELIST_NOFALLBACK = 1,
1: - MAX_ZONELISTS = 2,
1: + ZONELIST_FALLBACK = 0,
1: + ZONELIST_NOFALLBACK = 1,
1: + MAX_ZONELISTS = 2,
1: };
1:
1: enum {
1: - DQF_ROOT_SQUASH_B = 0,
1: - DQF_SYS_FILE_B = 16,
1: - DQF_PRIVATE = 17,
1: + DQF_ROOT_SQUASH_B = 0,
1: + DQF_SYS_FILE_B = 16,
1: + DQF_PRIVATE = 17,
1: };
1:
1: enum {
1: - DQST_LOOKUPS = 0,
1: - DQST_DROPS = 1,
1: - DQST_READS = 2,
1: - DQST_WRITES = 3,
1: - DQST_CACHE_HITS = 4,
1: - DQST_ALLOC_DQUOTS = 5,
1: - DQST_FREE_DQUOTS = 6,
1: - DQST_SYNCS = 7,
1: - _DQST_DQSTAT_LAST = 8,
1: + DQST_LOOKUPS = 0,
1: + DQST_DROPS = 1,
1: + DQST_READS = 2,
1: + DQST_WRITES = 3,
1: + DQST_CACHE_HITS = 4,
1: + DQST_ALLOC_DQUOTS = 5,
1: + DQST_FREE_DQUOTS = 6,
1: + DQST_SYNCS = 7,
1: + _DQST_DQSTAT_LAST = 8,
1: };
1:
1: enum {
1: - SB_UNFROZEN = 0,
1: - SB_FREEZE_WRITE = 1,
1: - SB_FREEZE_PAGEFAULT = 2,
1: - SB_FREEZE_FS = 3,
1: - SB_FREEZE_COMPLETE = 4,
1: + SB_UNFROZEN = 0,
1: + SB_FREEZE_WRITE = 1,
1: + SB_FREEZE_PAGEFAULT = 2,
1: + SB_FREEZE_FS = 3,
1: + SB_FREEZE_COMPLETE = 4,
1: };
1:
1: enum compound_dtor_id {
1: - NULL_COMPOUND_DTOR = 0,
1: - COMPOUND_PAGE_DTOR = 1,
1: - HUGETLB_PAGE_DTOR = 2,
1: - TRANSHUGE_PAGE_DTOR = 3,
1: - NR_COMPOUND_DTORS = 4,
1: + NULL_COMPOUND_DTOR = 0,
1: + COMPOUND_PAGE_DTOR = 1,
1: + HUGETLB_PAGE_DTOR = 2,
1: + TRANSHUGE_PAGE_DTOR = 3,
1: + NR_COMPOUND_DTORS = 4,
1: };
1:
1: enum {
1: - TSK_TRACE_FL_TRACE_BIT = 0,
1: - TSK_TRACE_FL_GRAPH_BIT = 1,
1: + TSK_TRACE_FL_TRACE_BIT = 0,
1: + TSK_TRACE_FL_GRAPH_BIT = 1,
1: };
1:
1: enum ucount_type {
1: - UCOUNT_USER_NAMESPACES = 0,
1: - UCOUNT_PID_NAMESPACES = 1,
1: - UCOUNT_UTS_NAMESPACES = 2,
1: - UCOUNT_IPC_NAMESPACES = 3,
1: - UCOUNT_NET_NAMESPACES = 4,
1: - UCOUNT_MNT_NAMESPACES = 5,
1: - UCOUNT_CGROUP_NAMESPACES = 6,
1: - UCOUNT_TIME_NAMESPACES = 7,
1: - UCOUNT_INOTIFY_INSTANCES = 8,
1: - UCOUNT_INOTIFY_WATCHES = 9,
1: - UCOUNT_COUNTS = 10,
1: + UCOUNT_USER_NAMESPACES = 0,
1: + UCOUNT_PID_NAMESPACES = 1,
1: + UCOUNT_UTS_NAMESPACES = 2,
1: + UCOUNT_IPC_NAMESPACES = 3,
1: + UCOUNT_NET_NAMESPACES = 4,
1: + UCOUNT_MNT_NAMESPACES = 5,
1: + UCOUNT_CGROUP_NAMESPACES = 6,
1: + UCOUNT_TIME_NAMESPACES = 7,
1: + UCOUNT_INOTIFY_INSTANCES = 8,
1: + UCOUNT_INOTIFY_WATCHES = 9,
1: + UCOUNT_COUNTS = 10,
1: };
1:
1: enum flow_dissector_key_id {
1: - FLOW_DISSECTOR_KEY_CONTROL = 0,
1: - FLOW_DISSECTOR_KEY_BASIC = 1,
1: - FLOW_DISSECTOR_KEY_IPV4_ADDRS = 2,
1: - FLOW_DISSECTOR_KEY_IPV6_ADDRS = 3,
1: - FLOW_DISSECTOR_KEY_PORTS = 4,
1: - FLOW_DISSECTOR_KEY_PORTS_RANGE = 5,
1: - FLOW_DISSECTOR_KEY_ICMP = 6,
1: - FLOW_DISSECTOR_KEY_ETH_ADDRS = 7,
1: - FLOW_DISSECTOR_KEY_TIPC = 8,
1: - FLOW_DISSECTOR_KEY_ARP = 9,
1: - FLOW_DISSECTOR_KEY_VLAN = 10,
1: - FLOW_DISSECTOR_KEY_FLOW_LABEL = 11,
1: - FLOW_DISSECTOR_KEY_GRE_KEYID = 12,
1: - FLOW_DISSECTOR_KEY_MPLS_ENTROPY = 13,
1: - FLOW_DISSECTOR_KEY_ENC_KEYID = 14,
1: - FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS = 15,
1: - FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS = 16,
1: - FLOW_DISSECTOR_KEY_ENC_CONTROL = 17,
1: - FLOW_DISSECTOR_KEY_ENC_PORTS = 18,
1: - FLOW_DISSECTOR_KEY_MPLS = 19,
1: - FLOW_DISSECTOR_KEY_TCP = 20,
1: - FLOW_DISSECTOR_KEY_IP = 21,
1: - FLOW_DISSECTOR_KEY_CVLAN = 22,
1: - FLOW_DISSECTOR_KEY_ENC_IP = 23,
1: - FLOW_DISSECTOR_KEY_ENC_OPTS = 24,
1: - FLOW_DISSECTOR_KEY_META = 25,
1: - FLOW_DISSECTOR_KEY_CT = 26,
1: - FLOW_DISSECTOR_KEY_HASH = 27,
1: - FLOW_DISSECTOR_KEY_MAX = 28,
1: -};
1: -
1: -enum {
1: - IPSTATS_MIB_NUM = 0,
1: - IPSTATS_MIB_INPKTS = 1,
1: - IPSTATS_MIB_INOCTETS = 2,
1: - IPSTATS_MIB_INDELIVERS = 3,
1: - IPSTATS_MIB_OUTFORWDATAGRAMS = 4,
1: - IPSTATS_MIB_OUTPKTS = 5,
1: - IPSTATS_MIB_OUTOCTETS = 6,
1: - IPSTATS_MIB_INHDRERRORS = 7,
1: - IPSTATS_MIB_INTOOBIGERRORS = 8,
1: - IPSTATS_MIB_INNOROUTES = 9,
1: - IPSTATS_MIB_INADDRERRORS = 10,
1: - IPSTATS_MIB_INUNKNOWNPROTOS = 11,
1: - IPSTATS_MIB_INTRUNCATEDPKTS = 12,
1: - IPSTATS_MIB_INDISCARDS = 13,
1: - IPSTATS_MIB_OUTDISCARDS = 14,
1: - IPSTATS_MIB_OUTNOROUTES = 15,
1: - IPSTATS_MIB_REASMTIMEOUT = 16,
1: - IPSTATS_MIB_REASMREQDS = 17,
1: - IPSTATS_MIB_REASMOKS = 18,
1: - IPSTATS_MIB_REASMFAILS = 19,
1: - IPSTATS_MIB_FRAGOKS = 20,
1: - IPSTATS_MIB_FRAGFAILS = 21,
1: - IPSTATS_MIB_FRAGCREATES = 22,
1: - IPSTATS_MIB_INMCASTPKTS = 23,
1: - IPSTATS_MIB_OUTMCASTPKTS = 24,
1: - IPSTATS_MIB_INBCASTPKTS = 25,
1: - IPSTATS_MIB_OUTBCASTPKTS = 26,
1: - IPSTATS_MIB_INMCASTOCTETS = 27,
1: - IPSTATS_MIB_OUTMCASTOCTETS = 28,
1: - IPSTATS_MIB_INBCASTOCTETS = 29,
1: - IPSTATS_MIB_OUTBCASTOCTETS = 30,
1: - IPSTATS_MIB_CSUMERRORS = 31,
1: - IPSTATS_MIB_NOECTPKTS = 32,
1: - IPSTATS_MIB_ECT1PKTS = 33,
1: - IPSTATS_MIB_ECT0PKTS = 34,
1: - IPSTATS_MIB_CEPKTS = 35,
1: - IPSTATS_MIB_REASM_OVERLAPS = 36,
1: - __IPSTATS_MIB_MAX = 37,
1: -};
1: -
1: -enum {
1: - ICMP_MIB_NUM = 0,
1: - ICMP_MIB_INMSGS = 1,
1: - ICMP_MIB_INERRORS = 2,
1: - ICMP_MIB_INDESTUNREACHS = 3,
1: - ICMP_MIB_INTIMEEXCDS = 4,
1: - ICMP_MIB_INPARMPROBS = 5,
1: - ICMP_MIB_INSRCQUENCHS = 6,
1: - ICMP_MIB_INREDIRECTS = 7,
1: - ICMP_MIB_INECHOS = 8,
1: - ICMP_MIB_INECHOREPS = 9,
1: - ICMP_MIB_INTIMESTAMPS = 10,
1: - ICMP_MIB_INTIMESTAMPREPS = 11,
1: - ICMP_MIB_INADDRMASKS = 12,
1: - ICMP_MIB_INADDRMASKREPS = 13,
1: - ICMP_MIB_OUTMSGS = 14,
1: - ICMP_MIB_OUTERRORS = 15,
1: - ICMP_MIB_OUTDESTUNREACHS = 16,
1: - ICMP_MIB_OUTTIMEEXCDS = 17,
1: - ICMP_MIB_OUTPARMPROBS = 18,
1: - ICMP_MIB_OUTSRCQUENCHS = 19,
1: - ICMP_MIB_OUTREDIRECTS = 20,
1: - ICMP_MIB_OUTECHOS = 21,
1: - ICMP_MIB_OUTECHOREPS = 22,
1: - ICMP_MIB_OUTTIMESTAMPS = 23,
1: - ICMP_MIB_OUTTIMESTAMPREPS = 24,
1: - ICMP_MIB_OUTADDRMASKS = 25,
1: - ICMP_MIB_OUTADDRMASKREPS = 26,
1: - ICMP_MIB_CSUMERRORS = 27,
1: - __ICMP_MIB_MAX = 28,
1: -};
1: -
1: -enum {
1: - ICMP6_MIB_NUM = 0,
1: - ICMP6_MIB_INMSGS = 1,
1: - ICMP6_MIB_INERRORS = 2,
1: - ICMP6_MIB_OUTMSGS = 3,
1: - ICMP6_MIB_OUTERRORS = 4,
1: - ICMP6_MIB_CSUMERRORS = 5,
1: - __ICMP6_MIB_MAX = 6,
1: -};
1: -
1: -enum {
1: - TCP_MIB_NUM = 0,
1: - TCP_MIB_RTOALGORITHM = 1,
1: - TCP_MIB_RTOMIN = 2,
1: - TCP_MIB_RTOMAX = 3,
1: - TCP_MIB_MAXCONN = 4,
1: - TCP_MIB_ACTIVEOPENS = 5,
1: - TCP_MIB_PASSIVEOPENS = 6,
1: - TCP_MIB_ATTEMPTFAILS = 7,
1: - TCP_MIB_ESTABRESETS = 8,
1: - TCP_MIB_CURRESTAB = 9,
1: - TCP_MIB_INSEGS = 10,
1: - TCP_MIB_OUTSEGS = 11,
1: - TCP_MIB_RETRANSSEGS = 12,
1: - TCP_MIB_INERRS = 13,
1: - TCP_MIB_OUTRSTS = 14,
1: - TCP_MIB_CSUMERRORS = 15,
1: - __TCP_MIB_MAX = 16,
1: -};
1: -
1: -enum {
1: - UDP_MIB_NUM = 0,
1: - UDP_MIB_INDATAGRAMS = 1,
1: - UDP_MIB_NOPORTS = 2,
1: - UDP_MIB_INERRORS = 3,
1: - UDP_MIB_OUTDATAGRAMS = 4,
1: - UDP_MIB_RCVBUFERRORS = 5,
1: - UDP_MIB_SNDBUFERRORS = 6,
1: - UDP_MIB_CSUMERRORS = 7,
1: - UDP_MIB_IGNOREDMULTI = 8,
1: - __UDP_MIB_MAX = 9,
1: -};
1: -
1: -enum {
1: - LINUX_MIB_NUM = 0,
1: - LINUX_MIB_SYNCOOKIESSENT = 1,
1: - LINUX_MIB_SYNCOOKIESRECV = 2,
1: - LINUX_MIB_SYNCOOKIESFAILED = 3,
1: - LINUX_MIB_EMBRYONICRSTS = 4,
1: - LINUX_MIB_PRUNECALLED = 5,
1: - LINUX_MIB_RCVPRUNED = 6,
1: - LINUX_MIB_OFOPRUNED = 7,
1: - LINUX_MIB_OUTOFWINDOWICMPS = 8,
1: - LINUX_MIB_LOCKDROPPEDICMPS = 9,
1: - LINUX_MIB_ARPFILTER = 10,
1: - LINUX_MIB_TIMEWAITED = 11,
1: - LINUX_MIB_TIMEWAITRECYCLED = 12,
1: - LINUX_MIB_TIMEWAITKILLED = 13,
1: - LINUX_MIB_PAWSACTIVEREJECTED = 14,
1: - LINUX_MIB_PAWSESTABREJECTED = 15,
1: - LINUX_MIB_DELAYEDACKS = 16,
1: - LINUX_MIB_DELAYEDACKLOCKED = 17,
1: - LINUX_MIB_DELAYEDACKLOST = 18,
1: - LINUX_MIB_LISTENOVERFLOWS = 19,
1: - LINUX_MIB_LISTENDROPS = 20,
1: - LINUX_MIB_TCPHPHITS = 21,
1: - LINUX_MIB_TCPPUREACKS = 22,
1: - LINUX_MIB_TCPHPACKS = 23,
1: - LINUX_MIB_TCPRENORECOVERY = 24,
1: - LINUX_MIB_TCPSACKRECOVERY = 25,
1: - LINUX_MIB_TCPSACKRENEGING = 26,
1: - LINUX_MIB_TCPSACKREORDER = 27,
1: - LINUX_MIB_TCPRENOREORDER = 28,
1: - LINUX_MIB_TCPTSREORDER = 29,
1: - LINUX_MIB_TCPFULLUNDO = 30,
1: - LINUX_MIB_TCPPARTIALUNDO = 31,
1: - LINUX_MIB_TCPDSACKUNDO = 32,
1: - LINUX_MIB_TCPLOSSUNDO = 33,
1: - LINUX_MIB_TCPLOSTRETRANSMIT = 34,
1: - LINUX_MIB_TCPRENOFAILURES = 35,
1: - LINUX_MIB_TCPSACKFAILURES = 36,
1: - LINUX_MIB_TCPLOSSFAILURES = 37,
1: - LINUX_MIB_TCPFASTRETRANS = 38,
1: - LINUX_MIB_TCPSLOWSTARTRETRANS = 39,
1: - LINUX_MIB_TCPTIMEOUTS = 40,
1: - LINUX_MIB_TCPLOSSPROBES = 41,
1: - LINUX_MIB_TCPLOSSPROBERECOVERY = 42,
1: - LINUX_MIB_TCPRENORECOVERYFAIL = 43,
1: - LINUX_MIB_TCPSACKRECOVERYFAIL = 44,
1: - LINUX_MIB_TCPRCVCOLLAPSED = 45,
1: - LINUX_MIB_TCPDSACKOLDSENT = 46,
1: - LINUX_MIB_TCPDSACKOFOSENT = 47,
1: - LINUX_MIB_TCPDSACKRECV = 48,
1: - LINUX_MIB_TCPDSACKOFORECV = 49,
1: - LINUX_MIB_TCPABORTONDATA = 50,
1: - LINUX_MIB_TCPABORTONCLOSE = 51,
1: - LINUX_MIB_TCPABORTONMEMORY = 52,
1: - LINUX_MIB_TCPABORTONTIMEOUT = 53,
1: - LINUX_MIB_TCPABORTONLINGER = 54,
1: - LINUX_MIB_TCPABORTFAILED = 55,
1: - LINUX_MIB_TCPMEMORYPRESSURES = 56,
1: - LINUX_MIB_TCPMEMORYPRESSURESCHRONO = 57,
1: - LINUX_MIB_TCPSACKDISCARD = 58,
1: - LINUX_MIB_TCPDSACKIGNOREDOLD = 59,
1: - LINUX_MIB_TCPDSACKIGNOREDNOUNDO = 60,
1: - LINUX_MIB_TCPSPURIOUSRTOS = 61,
1: - LINUX_MIB_TCPMD5NOTFOUND = 62,
1: - LINUX_MIB_TCPMD5UNEXPECTED = 63,
1: - LINUX_MIB_TCPMD5FAILURE = 64,
1: - LINUX_MIB_SACKSHIFTED = 65,
1: - LINUX_MIB_SACKMERGED = 66,
1: - LINUX_MIB_SACKSHIFTFALLBACK = 67,
1: - LINUX_MIB_TCPBACKLOGDROP = 68,
1: - LINUX_MIB_PFMEMALLOCDROP = 69,
1: - LINUX_MIB_TCPMINTTLDROP = 70,
1: - LINUX_MIB_TCPDEFERACCEPTDROP = 71,
1: - LINUX_MIB_IPRPFILTER = 72,
1: - LINUX_MIB_TCPTIMEWAITOVERFLOW = 73,
1: - LINUX_MIB_TCPREQQFULLDOCOOKIES = 74,
1: - LINUX_MIB_TCPREQQFULLDROP = 75,
1: - LINUX_MIB_TCPRETRANSFAIL = 76,
1: - LINUX_MIB_TCPRCVCOALESCE = 77,
1: - LINUX_MIB_TCPBACKLOGCOALESCE = 78,
1: - LINUX_MIB_TCPOFOQUEUE = 79,
1: - LINUX_MIB_TCPOFODROP = 80,
1: - LINUX_MIB_TCPOFOMERGE = 81,
1: - LINUX_MIB_TCPCHALLENGEACK = 82,
1: - LINUX_MIB_TCPSYNCHALLENGE = 83,
1: - LINUX_MIB_TCPFASTOPENACTIVE = 84,
1: - LINUX_MIB_TCPFASTOPENACTIVEFAIL = 85,
1: - LINUX_MIB_TCPFASTOPENPASSIVE = 86,
1: - LINUX_MIB_TCPFASTOPENPASSIVEFAIL = 87,
1: - LINUX_MIB_TCPFASTOPENLISTENOVERFLOW = 88,
1: - LINUX_MIB_TCPFASTOPENCOOKIEREQD = 89,
1: - LINUX_MIB_TCPFASTOPENBLACKHOLE = 90,
1: - LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES = 91,
1: - LINUX_MIB_BUSYPOLLRXPACKETS = 92,
1: - LINUX_MIB_TCPAUTOCORKING = 93,
1: - LINUX_MIB_TCPFROMZEROWINDOWADV = 94,
1: - LINUX_MIB_TCPTOZEROWINDOWADV = 95,
1: - LINUX_MIB_TCPWANTZEROWINDOWADV = 96,
1: - LINUX_MIB_TCPSYNRETRANS = 97,
1: - LINUX_MIB_TCPORIGDATASENT = 98,
1: - LINUX_MIB_TCPHYSTARTTRAINDETECT = 99,
1: - LINUX_MIB_TCPHYSTARTTRAINCWND = 100,
1: - LINUX_MIB_TCPHYSTARTDELAYDETECT = 101,
1: - LINUX_MIB_TCPHYSTARTDELAYCWND = 102,
1: - LINUX_MIB_TCPACKSKIPPEDSYNRECV = 103,
1: - LINUX_MIB_TCPACKSKIPPEDPAWS = 104,
1: - LINUX_MIB_TCPACKSKIPPEDSEQ = 105,
1: - LINUX_MIB_TCPACKSKIPPEDFINWAIT2 = 106,
1: - LINUX_MIB_TCPACKSKIPPEDTIMEWAIT = 107,
1: - LINUX_MIB_TCPACKSKIPPEDCHALLENGE = 108,
1: - LINUX_MIB_TCPWINPROBE = 109,
1: - LINUX_MIB_TCPKEEPALIVE = 110,
1: - LINUX_MIB_TCPMTUPFAIL = 111,
1: - LINUX_MIB_TCPMTUPSUCCESS = 112,
1: - LINUX_MIB_TCPDELIVERED = 113,
1: - LINUX_MIB_TCPDELIVEREDCE = 114,
1: - LINUX_MIB_TCPACKCOMPRESSED = 115,
1: - LINUX_MIB_TCPZEROWINDOWDROP = 116,
1: - LINUX_MIB_TCPRCVQDROP = 117,
1: - LINUX_MIB_TCPWQUEUETOOBIG = 118,
1: - LINUX_MIB_TCPFASTOPENPASSIVEALTKEY = 119,
1: - LINUX_MIB_TCPTIMEOUTREHASH = 120,
1: - LINUX_MIB_TCPDUPLICATEDATAREHASH = 121,
1: - LINUX_MIB_TCPDSACKRECVSEGS = 122,
1: - LINUX_MIB_TCPDSACKIGNOREDDUBIOUS = 123,
1: - __LINUX_MIB_MAX = 124,
1: -};
1: -
1: -enum {
1: - LINUX_MIB_XFRMNUM = 0,
1: - LINUX_MIB_XFRMINERROR = 1,
1: - LINUX_MIB_XFRMINBUFFERERROR = 2,
1: - LINUX_MIB_XFRMINHDRERROR = 3,
1: - LINUX_MIB_XFRMINNOSTATES = 4,
1: - LINUX_MIB_XFRMINSTATEPROTOERROR = 5,
1: - LINUX_MIB_XFRMINSTATEMODEERROR = 6,
1: - LINUX_MIB_XFRMINSTATESEQERROR = 7,
1: - LINUX_MIB_XFRMINSTATEEXPIRED = 8,
1: - LINUX_MIB_XFRMINSTATEMISMATCH = 9,
1: - LINUX_MIB_XFRMINSTATEINVALID = 10,
1: - LINUX_MIB_XFRMINTMPLMISMATCH = 11,
1: - LINUX_MIB_XFRMINNOPOLS = 12,
1: - LINUX_MIB_XFRMINPOLBLOCK = 13,
1: - LINUX_MIB_XFRMINPOLERROR = 14,
1: - LINUX_MIB_XFRMOUTERROR = 15,
1: - LINUX_MIB_XFRMOUTBUNDLEGENERROR = 16,
1: - LINUX_MIB_XFRMOUTBUNDLECHECKERROR = 17,
1: - LINUX_MIB_XFRMOUTNOSTATES = 18,
1: - LINUX_MIB_XFRMOUTSTATEPROTOERROR = 19,
1: - LINUX_MIB_XFRMOUTSTATEMODEERROR = 20,
1: - LINUX_MIB_XFRMOUTSTATESEQERROR = 21,
1: - LINUX_MIB_XFRMOUTSTATEEXPIRED = 22,
1: - LINUX_MIB_XFRMOUTPOLBLOCK = 23,
1: - LINUX_MIB_XFRMOUTPOLDEAD = 24,
1: - LINUX_MIB_XFRMOUTPOLERROR = 25,
1: - LINUX_MIB_XFRMFWDHDRERROR = 26,
1: - LINUX_MIB_XFRMOUTSTATEINVALID = 27,
1: - LINUX_MIB_XFRMACQUIREERROR = 28,
1: - __LINUX_MIB_XFRMMAX = 29,
1: -};
1: -
1: -enum {
1: - LINUX_MIB_TLSNUM = 0,
1: - LINUX_MIB_TLSCURRTXSW = 1,
1: - LINUX_MIB_TLSCURRRXSW = 2,
1: - LINUX_MIB_TLSCURRTXDEVICE = 3,
1: - LINUX_MIB_TLSCURRRXDEVICE = 4,
1: - LINUX_MIB_TLSTXSW = 5,
1: - LINUX_MIB_TLSRXSW = 6,
1: - LINUX_MIB_TLSTXDEVICE = 7,
1: - LINUX_MIB_TLSRXDEVICE = 8,
1: - LINUX_MIB_TLSDECRYPTERROR = 9,
1: - LINUX_MIB_TLSRXDEVICERESYNC = 10,
1: - __LINUX_MIB_TLSMAX = 11,
1: + FLOW_DISSECTOR_KEY_CONTROL = 0,
1: + FLOW_DISSECTOR_KEY_BASIC = 1,
1: + FLOW_DISSECTOR_KEY_IPV4_ADDRS = 2,
1: + FLOW_DISSECTOR_KEY_IPV6_ADDRS = 3,
1: + FLOW_DISSECTOR_KEY_PORTS = 4,
1: + FLOW_DISSECTOR_KEY_PORTS_RANGE = 5,
1: + FLOW_DISSECTOR_KEY_ICMP = 6,
1: + FLOW_DISSECTOR_KEY_ETH_ADDRS = 7,
1: + FLOW_DISSECTOR_KEY_TIPC = 8,
1: + FLOW_DISSECTOR_KEY_ARP = 9,
1: + FLOW_DISSECTOR_KEY_VLAN = 10,
1: + FLOW_DISSECTOR_KEY_FLOW_LABEL = 11,
1: + FLOW_DISSECTOR_KEY_GRE_KEYID = 12,
1: + FLOW_DISSECTOR_KEY_MPLS_ENTROPY = 13,
1: + FLOW_DISSECTOR_KEY_ENC_KEYID = 14,
1: + FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS = 15,
1: + FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS = 16,
1: + FLOW_DISSECTOR_KEY_ENC_CONTROL = 17,
1: + FLOW_DISSECTOR_KEY_ENC_PORTS = 18,
1: + FLOW_DISSECTOR_KEY_MPLS = 19,
1: + FLOW_DISSECTOR_KEY_TCP = 20,
1: + FLOW_DISSECTOR_KEY_IP = 21,
1: + FLOW_DISSECTOR_KEY_CVLAN = 22,
1: + FLOW_DISSECTOR_KEY_ENC_IP = 23,
1: + FLOW_DISSECTOR_KEY_ENC_OPTS = 24,
1: + FLOW_DISSECTOR_KEY_META = 25,
1: + FLOW_DISSECTOR_KEY_CT = 26,
1: + FLOW_DISSECTOR_KEY_HASH = 27,
1: + FLOW_DISSECTOR_KEY_MAX = 28,
1: +};
1: +
1: +enum {
1: + IPSTATS_MIB_NUM = 0,
1: + IPSTATS_MIB_INPKTS = 1,
1: + IPSTATS_MIB_INOCTETS = 2,
1: + IPSTATS_MIB_INDELIVERS = 3,
1: + IPSTATS_MIB_OUTFORWDATAGRAMS = 4,
1: + IPSTATS_MIB_OUTPKTS = 5,
1: + IPSTATS_MIB_OUTOCTETS = 6,
1: + IPSTATS_MIB_INHDRERRORS = 7,
1: + IPSTATS_MIB_INTOOBIGERRORS = 8,
1: + IPSTATS_MIB_INNOROUTES = 9,
1: + IPSTATS_MIB_INADDRERRORS = 10,
1: + IPSTATS_MIB_INUNKNOWNPROTOS = 11,
1: + IPSTATS_MIB_INTRUNCATEDPKTS = 12,
1: + IPSTATS_MIB_INDISCARDS = 13,
1: + IPSTATS_MIB_OUTDISCARDS = 14,
1: + IPSTATS_MIB_OUTNOROUTES = 15,
1: + IPSTATS_MIB_REASMTIMEOUT = 16,
1: + IPSTATS_MIB_REASMREQDS = 17,
1: + IPSTATS_MIB_REASMOKS = 18,
1: + IPSTATS_MIB_REASMFAILS = 19,
1: + IPSTATS_MIB_FRAGOKS = 20,
1: + IPSTATS_MIB_FRAGFAILS = 21,
1: + IPSTATS_MIB_FRAGCREATES = 22,
1: + IPSTATS_MIB_INMCASTPKTS = 23,
1: + IPSTATS_MIB_OUTMCASTPKTS = 24,
1: + IPSTATS_MIB_INBCASTPKTS = 25,
1: + IPSTATS_MIB_OUTBCASTPKTS = 26,
1: + IPSTATS_MIB_INMCASTOCTETS = 27,
1: + IPSTATS_MIB_OUTMCASTOCTETS = 28,
1: + IPSTATS_MIB_INBCASTOCTETS = 29,
1: + IPSTATS_MIB_OUTBCASTOCTETS = 30,
1: + IPSTATS_MIB_CSUMERRORS = 31,
1: + IPSTATS_MIB_NOECTPKTS = 32,
1: + IPSTATS_MIB_ECT1PKTS = 33,
1: + IPSTATS_MIB_ECT0PKTS = 34,
1: + IPSTATS_MIB_CEPKTS = 35,
1: + IPSTATS_MIB_REASM_OVERLAPS = 36,
1: + __IPSTATS_MIB_MAX = 37,
1: +};
1: +
1: +enum {
1: + ICMP_MIB_NUM = 0,
1: + ICMP_MIB_INMSGS = 1,
1: + ICMP_MIB_INERRORS = 2,
1: + ICMP_MIB_INDESTUNREACHS = 3,
1: + ICMP_MIB_INTIMEEXCDS = 4,
1: + ICMP_MIB_INPARMPROBS = 5,
1: + ICMP_MIB_INSRCQUENCHS = 6,
1: + ICMP_MIB_INREDIRECTS = 7,
1: + ICMP_MIB_INECHOS = 8,
1: + ICMP_MIB_INECHOREPS = 9,
1: + ICMP_MIB_INTIMESTAMPS = 10,
1: + ICMP_MIB_INTIMESTAMPREPS = 11,
1: + ICMP_MIB_INADDRMASKS = 12,
1: + ICMP_MIB_INADDRMASKREPS = 13,
1: + ICMP_MIB_OUTMSGS = 14,
1: + ICMP_MIB_OUTERRORS = 15,
1: + ICMP_MIB_OUTDESTUNREACHS = 16,
1: + ICMP_MIB_OUTTIMEEXCDS = 17,
1: + ICMP_MIB_OUTPARMPROBS = 18,
1: + ICMP_MIB_OUTSRCQUENCHS = 19,
1: + ICMP_MIB_OUTREDIRECTS = 20,
1: + ICMP_MIB_OUTECHOS = 21,
1: + ICMP_MIB_OUTECHOREPS = 22,
1: + ICMP_MIB_OUTTIMESTAMPS = 23,
1: + ICMP_MIB_OUTTIMESTAMPREPS = 24,
1: + ICMP_MIB_OUTADDRMASKS = 25,
1: + ICMP_MIB_OUTADDRMASKREPS = 26,
1: + ICMP_MIB_CSUMERRORS = 27,
1: + __ICMP_MIB_MAX = 28,
1: +};
1: +
1: +enum {
1: + ICMP6_MIB_NUM = 0,
1: + ICMP6_MIB_INMSGS = 1,
1: + ICMP6_MIB_INERRORS = 2,
1: + ICMP6_MIB_OUTMSGS = 3,
1: + ICMP6_MIB_OUTERRORS = 4,
1: + ICMP6_MIB_CSUMERRORS = 5,
1: + __ICMP6_MIB_MAX = 6,
1: +};
1: +
1: +enum {
1: + TCP_MIB_NUM = 0,
1: + TCP_MIB_RTOALGORITHM = 1,
1: + TCP_MIB_RTOMIN = 2,
1: + TCP_MIB_RTOMAX = 3,
1: + TCP_MIB_MAXCONN = 4,
1: + TCP_MIB_ACTIVEOPENS = 5,
1: + TCP_MIB_PASSIVEOPENS = 6,
1: + TCP_MIB_ATTEMPTFAILS = 7,
1: + TCP_MIB_ESTABRESETS = 8,
1: + TCP_MIB_CURRESTAB = 9,
1: + TCP_MIB_INSEGS = 10,
1: + TCP_MIB_OUTSEGS = 11,
1: + TCP_MIB_RETRANSSEGS = 12,
1: + TCP_MIB_INERRS = 13,
1: + TCP_MIB_OUTRSTS = 14,
1: + TCP_MIB_CSUMERRORS = 15,
1: + __TCP_MIB_MAX = 16,
1: +};
1: +
1: +enum {
1: + UDP_MIB_NUM = 0,
1: + UDP_MIB_INDATAGRAMS = 1,
1: + UDP_MIB_NOPORTS = 2,
1: + UDP_MIB_INERRORS = 3,
1: + UDP_MIB_OUTDATAGRAMS = 4,
1: + UDP_MIB_RCVBUFERRORS = 5,
1: + UDP_MIB_SNDBUFERRORS = 6,
1: + UDP_MIB_CSUMERRORS = 7,
1: + UDP_MIB_IGNOREDMULTI = 8,
1: + __UDP_MIB_MAX = 9,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_NUM = 0,
1: + LINUX_MIB_SYNCOOKIESSENT = 1,
1: + LINUX_MIB_SYNCOOKIESRECV = 2,
1: + LINUX_MIB_SYNCOOKIESFAILED = 3,
1: + LINUX_MIB_EMBRYONICRSTS = 4,
1: + LINUX_MIB_PRUNECALLED = 5,
1: + LINUX_MIB_RCVPRUNED = 6,
1: + LINUX_MIB_OFOPRUNED = 7,
1: + LINUX_MIB_OUTOFWINDOWICMPS = 8,
1: + LINUX_MIB_LOCKDROPPEDICMPS = 9,
1: + LINUX_MIB_ARPFILTER = 10,
1: + LINUX_MIB_TIMEWAITED = 11,
1: + LINUX_MIB_TIMEWAITRECYCLED = 12,
1: + LINUX_MIB_TIMEWAITKILLED = 13,
1: + LINUX_MIB_PAWSACTIVEREJECTED = 14,
1: + LINUX_MIB_PAWSESTABREJECTED = 15,
1: + LINUX_MIB_DELAYEDACKS = 16,
1: + LINUX_MIB_DELAYEDACKLOCKED = 17,
1: + LINUX_MIB_DELAYEDACKLOST = 18,
1: + LINUX_MIB_LISTENOVERFLOWS = 19,
1: + LINUX_MIB_LISTENDROPS = 20,
1: + LINUX_MIB_TCPHPHITS = 21,
1: + LINUX_MIB_TCPPUREACKS = 22,
1: + LINUX_MIB_TCPHPACKS = 23,
1: + LINUX_MIB_TCPRENORECOVERY = 24,
1: + LINUX_MIB_TCPSACKRECOVERY = 25,
1: + LINUX_MIB_TCPSACKRENEGING = 26,
1: + LINUX_MIB_TCPSACKREORDER = 27,
1: + LINUX_MIB_TCPRENOREORDER = 28,
1: + LINUX_MIB_TCPTSREORDER = 29,
1: + LINUX_MIB_TCPFULLUNDO = 30,
1: + LINUX_MIB_TCPPARTIALUNDO = 31,
1: + LINUX_MIB_TCPDSACKUNDO = 32,
1: + LINUX_MIB_TCPLOSSUNDO = 33,
1: + LINUX_MIB_TCPLOSTRETRANSMIT = 34,
1: + LINUX_MIB_TCPRENOFAILURES = 35,
1: + LINUX_MIB_TCPSACKFAILURES = 36,
1: + LINUX_MIB_TCPLOSSFAILURES = 37,
1: + LINUX_MIB_TCPFASTRETRANS = 38,
1: + LINUX_MIB_TCPSLOWSTARTRETRANS = 39,
1: + LINUX_MIB_TCPTIMEOUTS = 40,
1: + LINUX_MIB_TCPLOSSPROBES = 41,
1: + LINUX_MIB_TCPLOSSPROBERECOVERY = 42,
1: + LINUX_MIB_TCPRENORECOVERYFAIL = 43,
1: + LINUX_MIB_TCPSACKRECOVERYFAIL = 44,
1: + LINUX_MIB_TCPRCVCOLLAPSED = 45,
1: + LINUX_MIB_TCPDSACKOLDSENT = 46,
1: + LINUX_MIB_TCPDSACKOFOSENT = 47,
1: + LINUX_MIB_TCPDSACKRECV = 48,
1: + LINUX_MIB_TCPDSACKOFORECV = 49,
1: + LINUX_MIB_TCPABORTONDATA = 50,
1: + LINUX_MIB_TCPABORTONCLOSE = 51,
1: + LINUX_MIB_TCPABORTONMEMORY = 52,
1: + LINUX_MIB_TCPABORTONTIMEOUT = 53,
1: + LINUX_MIB_TCPABORTONLINGER = 54,
1: + LINUX_MIB_TCPABORTFAILED = 55,
1: + LINUX_MIB_TCPMEMORYPRESSURES = 56,
1: + LINUX_MIB_TCPMEMORYPRESSURESCHRONO = 57,
1: + LINUX_MIB_TCPSACKDISCARD = 58,
1: + LINUX_MIB_TCPDSACKIGNOREDOLD = 59,
1: + LINUX_MIB_TCPDSACKIGNOREDNOUNDO = 60,
1: + LINUX_MIB_TCPSPURIOUSRTOS = 61,
1: + LINUX_MIB_TCPMD5NOTFOUND = 62,
1: + LINUX_MIB_TCPMD5UNEXPECTED = 63,
1: + LINUX_MIB_TCPMD5FAILURE = 64,
1: + LINUX_MIB_SACKSHIFTED = 65,
1: + LINUX_MIB_SACKMERGED = 66,
1: + LINUX_MIB_SACKSHIFTFALLBACK = 67,
1: + LINUX_MIB_TCPBACKLOGDROP = 68,
1: + LINUX_MIB_PFMEMALLOCDROP = 69,
1: + LINUX_MIB_TCPMINTTLDROP = 70,
1: + LINUX_MIB_TCPDEFERACCEPTDROP = 71,
1: + LINUX_MIB_IPRPFILTER = 72,
1: + LINUX_MIB_TCPTIMEWAITOVERFLOW = 73,
1: + LINUX_MIB_TCPREQQFULLDOCOOKIES = 74,
1: + LINUX_MIB_TCPREQQFULLDROP = 75,
1: + LINUX_MIB_TCPRETRANSFAIL = 76,
1: + LINUX_MIB_TCPRCVCOALESCE = 77,
1: + LINUX_MIB_TCPBACKLOGCOALESCE = 78,
1: + LINUX_MIB_TCPOFOQUEUE = 79,
1: + LINUX_MIB_TCPOFODROP = 80,
1: + LINUX_MIB_TCPOFOMERGE = 81,
1: + LINUX_MIB_TCPCHALLENGEACK = 82,
1: + LINUX_MIB_TCPSYNCHALLENGE = 83,
1: + LINUX_MIB_TCPFASTOPENACTIVE = 84,
1: + LINUX_MIB_TCPFASTOPENACTIVEFAIL = 85,
1: + LINUX_MIB_TCPFASTOPENPASSIVE = 86,
1: + LINUX_MIB_TCPFASTOPENPASSIVEFAIL = 87,
1: + LINUX_MIB_TCPFASTOPENLISTENOVERFLOW = 88,
1: + LINUX_MIB_TCPFASTOPENCOOKIEREQD = 89,
1: + LINUX_MIB_TCPFASTOPENBLACKHOLE = 90,
1: + LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES = 91,
1: + LINUX_MIB_BUSYPOLLRXPACKETS = 92,
1: + LINUX_MIB_TCPAUTOCORKING = 93,
1: + LINUX_MIB_TCPFROMZEROWINDOWADV = 94,
1: + LINUX_MIB_TCPTOZEROWINDOWADV = 95,
1: + LINUX_MIB_TCPWANTZEROWINDOWADV = 96,
1: + LINUX_MIB_TCPSYNRETRANS = 97,
1: + LINUX_MIB_TCPORIGDATASENT = 98,
1: + LINUX_MIB_TCPHYSTARTTRAINDETECT = 99,
1: + LINUX_MIB_TCPHYSTARTTRAINCWND = 100,
1: + LINUX_MIB_TCPHYSTARTDELAYDETECT = 101,
1: + LINUX_MIB_TCPHYSTARTDELAYCWND = 102,
1: + LINUX_MIB_TCPACKSKIPPEDSYNRECV = 103,
1: + LINUX_MIB_TCPACKSKIPPEDPAWS = 104,
1: + LINUX_MIB_TCPACKSKIPPEDSEQ = 105,
1: + LINUX_MIB_TCPACKSKIPPEDFINWAIT2 = 106,
1: + LINUX_MIB_TCPACKSKIPPEDTIMEWAIT = 107,
1: + LINUX_MIB_TCPACKSKIPPEDCHALLENGE = 108,
1: + LINUX_MIB_TCPWINPROBE = 109,
1: + LINUX_MIB_TCPKEEPALIVE = 110,
1: + LINUX_MIB_TCPMTUPFAIL = 111,
1: + LINUX_MIB_TCPMTUPSUCCESS = 112,
1: + LINUX_MIB_TCPDELIVERED = 113,
1: + LINUX_MIB_TCPDELIVEREDCE = 114,
1: + LINUX_MIB_TCPACKCOMPRESSED = 115,
1: + LINUX_MIB_TCPZEROWINDOWDROP = 116,
1: + LINUX_MIB_TCPRCVQDROP = 117,
1: + LINUX_MIB_TCPWQUEUETOOBIG = 118,
1: + LINUX_MIB_TCPFASTOPENPASSIVEALTKEY = 119,
1: + LINUX_MIB_TCPTIMEOUTREHASH = 120,
1: + LINUX_MIB_TCPDUPLICATEDATAREHASH = 121,
1: + LINUX_MIB_TCPDSACKRECVSEGS = 122,
1: + LINUX_MIB_TCPDSACKIGNOREDDUBIOUS = 123,
1: + __LINUX_MIB_MAX = 124,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_XFRMNUM = 0,
1: + LINUX_MIB_XFRMINERROR = 1,
1: + LINUX_MIB_XFRMINBUFFERERROR = 2,
1: + LINUX_MIB_XFRMINHDRERROR = 3,
1: + LINUX_MIB_XFRMINNOSTATES = 4,
1: + LINUX_MIB_XFRMINSTATEPROTOERROR = 5,
1: + LINUX_MIB_XFRMINSTATEMODEERROR = 6,
1: + LINUX_MIB_XFRMINSTATESEQERROR = 7,
1: + LINUX_MIB_XFRMINSTATEEXPIRED = 8,
1: + LINUX_MIB_XFRMINSTATEMISMATCH = 9,
1: + LINUX_MIB_XFRMINSTATEINVALID = 10,
1: + LINUX_MIB_XFRMINTMPLMISMATCH = 11,
1: + LINUX_MIB_XFRMINNOPOLS = 12,
1: + LINUX_MIB_XFRMINPOLBLOCK = 13,
1: + LINUX_MIB_XFRMINPOLERROR = 14,
1: + LINUX_MIB_XFRMOUTERROR = 15,
1: + LINUX_MIB_XFRMOUTBUNDLEGENERROR = 16,
1: + LINUX_MIB_XFRMOUTBUNDLECHECKERROR = 17,
1: + LINUX_MIB_XFRMOUTNOSTATES = 18,
1: + LINUX_MIB_XFRMOUTSTATEPROTOERROR = 19,
1: + LINUX_MIB_XFRMOUTSTATEMODEERROR = 20,
1: + LINUX_MIB_XFRMOUTSTATESEQERROR = 21,
1: + LINUX_MIB_XFRMOUTSTATEEXPIRED = 22,
1: + LINUX_MIB_XFRMOUTPOLBLOCK = 23,
1: + LINUX_MIB_XFRMOUTPOLDEAD = 24,
1: + LINUX_MIB_XFRMOUTPOLERROR = 25,
1: + LINUX_MIB_XFRMFWDHDRERROR = 26,
1: + LINUX_MIB_XFRMOUTSTATEINVALID = 27,
1: + LINUX_MIB_XFRMACQUIREERROR = 28,
1: + __LINUX_MIB_XFRMMAX = 29,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_TLSNUM = 0,
1: + LINUX_MIB_TLSCURRTXSW = 1,
1: + LINUX_MIB_TLSCURRRXSW = 2,
1: + LINUX_MIB_TLSCURRTXDEVICE = 3,
1: + LINUX_MIB_TLSCURRRXDEVICE = 4,
1: + LINUX_MIB_TLSTXSW = 5,
1: + LINUX_MIB_TLSRXSW = 6,
1: + LINUX_MIB_TLSTXDEVICE = 7,
1: + LINUX_MIB_TLSRXDEVICE = 8,
1: + LINUX_MIB_TLSDECRYPTERROR = 9,
1: + LINUX_MIB_TLSRXDEVICERESYNC = 10,
1: + __LINUX_MIB_TLSMAX = 11,
1: };
1:
1: enum nf_inet_hooks {
1: - NF_INET_PRE_ROUTING = 0,
1: - NF_INET_LOCAL_IN = 1,
1: - NF_INET_FORWARD = 2,
1: - NF_INET_LOCAL_OUT = 3,
1: - NF_INET_POST_ROUTING = 4,
1: - NF_INET_NUMHOOKS = 5,
1: - NF_INET_INGRESS = 5,
1: + NF_INET_PRE_ROUTING = 0,
1: + NF_INET_LOCAL_IN = 1,
1: + NF_INET_FORWARD = 2,
1: + NF_INET_LOCAL_OUT = 3,
1: + NF_INET_POST_ROUTING = 4,
1: + NF_INET_NUMHOOKS = 5,
1: + NF_INET_INGRESS = 5,
1: };
1:
1: enum {
1: - NFPROTO_UNSPEC = 0,
1: - NFPROTO_INET = 1,
1: - NFPROTO_IPV4 = 2,
1: - NFPROTO_ARP = 3,
1: - NFPROTO_NETDEV = 5,
1: - NFPROTO_BRIDGE = 7,
1: - NFPROTO_IPV6 = 10,
1: - NFPROTO_DECNET = 12,
1: - NFPROTO_NUMPROTO = 13,
1: + NFPROTO_UNSPEC = 0,
1: + NFPROTO_INET = 1,
1: + NFPROTO_IPV4 = 2,
1: + NFPROTO_ARP = 3,
1: + NFPROTO_NETDEV = 5,
1: + NFPROTO_BRIDGE = 7,
1: + NFPROTO_IPV6 = 10,
1: + NFPROTO_DECNET = 12,
1: + NFPROTO_NUMPROTO = 13,
1: };
1:
1: enum tcp_conntrack {
1: - TCP_CONNTRACK_NONE = 0,
1: - TCP_CONNTRACK_SYN_SENT = 1,
1: - TCP_CONNTRACK_SYN_RECV = 2,
1: - TCP_CONNTRACK_ESTABLISHED = 3,
1: - TCP_CONNTRACK_FIN_WAIT = 4,
1: - TCP_CONNTRACK_CLOSE_WAIT = 5,
1: - TCP_CONNTRACK_LAST_ACK = 6,
1: - TCP_CONNTRACK_TIME_WAIT = 7,
1: - TCP_CONNTRACK_CLOSE = 8,
1: - TCP_CONNTRACK_LISTEN = 9,
1: - TCP_CONNTRACK_MAX = 10,
1: - TCP_CONNTRACK_IGNORE = 11,
1: - TCP_CONNTRACK_RETRANS = 12,
1: - TCP_CONNTRACK_UNACK = 13,
1: - TCP_CONNTRACK_TIMEOUT_MAX = 14,
1: + TCP_CONNTRACK_NONE = 0,
1: + TCP_CONNTRACK_SYN_SENT = 1,
1: + TCP_CONNTRACK_SYN_RECV = 2,
1: + TCP_CONNTRACK_ESTABLISHED = 3,
1: + TCP_CONNTRACK_FIN_WAIT = 4,
1: + TCP_CONNTRACK_CLOSE_WAIT = 5,
1: + TCP_CONNTRACK_LAST_ACK = 6,
1: + TCP_CONNTRACK_TIME_WAIT = 7,
1: + TCP_CONNTRACK_CLOSE = 8,
1: + TCP_CONNTRACK_LISTEN = 9,
1: + TCP_CONNTRACK_MAX = 10,
1: + TCP_CONNTRACK_IGNORE = 11,
1: + TCP_CONNTRACK_RETRANS = 12,
1: + TCP_CONNTRACK_UNACK = 13,
1: + TCP_CONNTRACK_TIMEOUT_MAX = 14,
1: };
1:
1: enum ct_dccp_states {
1: - CT_DCCP_NONE = 0,
1: - CT_DCCP_REQUEST = 1,
1: - CT_DCCP_RESPOND = 2,
1: - CT_DCCP_PARTOPEN = 3,
1: - CT_DCCP_OPEN = 4,
1: - CT_DCCP_CLOSEREQ = 5,
1: - CT_DCCP_CLOSING = 6,
1: - CT_DCCP_TIMEWAIT = 7,
1: - CT_DCCP_IGNORE = 8,
1: - CT_DCCP_INVALID = 9,
1: - __CT_DCCP_MAX = 10,
1: + CT_DCCP_NONE = 0,
1: + CT_DCCP_REQUEST = 1,
1: + CT_DCCP_RESPOND = 2,
1: + CT_DCCP_PARTOPEN = 3,
1: + CT_DCCP_OPEN = 4,
1: + CT_DCCP_CLOSEREQ = 5,
1: + CT_DCCP_CLOSING = 6,
1: + CT_DCCP_TIMEWAIT = 7,
1: + CT_DCCP_IGNORE = 8,
1: + CT_DCCP_INVALID = 9,
1: + __CT_DCCP_MAX = 10,
1: };
1:
1: enum ip_conntrack_dir {
1: - IP_CT_DIR_ORIGINAL = 0,
1: - IP_CT_DIR_REPLY = 1,
1: - IP_CT_DIR_MAX = 2,
1: + IP_CT_DIR_ORIGINAL = 0,
1: + IP_CT_DIR_REPLY = 1,
1: + IP_CT_DIR_MAX = 2,
1: };
1:
1: enum sctp_conntrack {
1: - SCTP_CONNTRACK_NONE = 0,
1: - SCTP_CONNTRACK_CLOSED = 1,
1: - SCTP_CONNTRACK_COOKIE_WAIT = 2,
1: - SCTP_CONNTRACK_COOKIE_ECHOED = 3,
1: - SCTP_CONNTRACK_ESTABLISHED = 4,
1: - SCTP_CONNTRACK_SHUTDOWN_SENT = 5,
1: - SCTP_CONNTRACK_SHUTDOWN_RECD = 6,
1: - SCTP_CONNTRACK_SHUTDOWN_ACK_SENT = 7,
1: - SCTP_CONNTRACK_HEARTBEAT_SENT = 8,
1: - SCTP_CONNTRACK_HEARTBEAT_ACKED = 9,
1: - SCTP_CONNTRACK_MAX = 10,
1: + SCTP_CONNTRACK_NONE = 0,
1: + SCTP_CONNTRACK_CLOSED = 1,
1: + SCTP_CONNTRACK_COOKIE_WAIT = 2,
1: + SCTP_CONNTRACK_COOKIE_ECHOED = 3,
1: + SCTP_CONNTRACK_ESTABLISHED = 4,
1: + SCTP_CONNTRACK_SHUTDOWN_SENT = 5,
1: + SCTP_CONNTRACK_SHUTDOWN_RECD = 6,
1: + SCTP_CONNTRACK_SHUTDOWN_ACK_SENT = 7,
1: + SCTP_CONNTRACK_HEARTBEAT_SENT = 8,
1: + SCTP_CONNTRACK_HEARTBEAT_ACKED = 9,
1: + SCTP_CONNTRACK_MAX = 10,
1: };
1:
1: enum udp_conntrack {
1: - UDP_CT_UNREPLIED = 0,
1: - UDP_CT_REPLIED = 1,
1: - UDP_CT_MAX = 2,
1: + UDP_CT_UNREPLIED = 0,
1: + UDP_CT_REPLIED = 1,
1: + UDP_CT_MAX = 2,
1: };
1:
1: enum gre_conntrack {
1: - GRE_CT_UNREPLIED = 0,
1: - GRE_CT_REPLIED = 1,
1: - GRE_CT_MAX = 2,
1: + GRE_CT_UNREPLIED = 0,
1: + GRE_CT_REPLIED = 1,
1: + GRE_CT_MAX = 2,
1: };
1:
1: enum {
1: - XFRM_POLICY_IN = 0,
1: - XFRM_POLICY_OUT = 1,
1: - XFRM_POLICY_FWD = 2,
1: - XFRM_POLICY_MASK = 3,
1: - XFRM_POLICY_MAX = 3,
1: + XFRM_POLICY_IN = 0,
1: + XFRM_POLICY_OUT = 1,
1: + XFRM_POLICY_FWD = 2,
1: + XFRM_POLICY_MASK = 3,
1: + XFRM_POLICY_MAX = 3,
1: };
1:
1: enum netns_bpf_attach_type {
1: - NETNS_BPF_INVALID = 4294967295,
1: - NETNS_BPF_FLOW_DISSECTOR = 0,
1: - NETNS_BPF_SK_LOOKUP = 1,
1: - MAX_NETNS_BPF_ATTACH_TYPE = 2,
1: + NETNS_BPF_INVALID = 4294967295,
1: + NETNS_BPF_FLOW_DISSECTOR = 0,
1: + NETNS_BPF_SK_LOOKUP = 1,
1: + MAX_NETNS_BPF_ATTACH_TYPE = 2,
1: };
1:
1: enum cpu_idle_type {
1: - CPU_IDLE = 0,
1: - CPU_NOT_IDLE = 1,
1: - CPU_NEWLY_IDLE = 2,
1: - CPU_MAX_IDLE_TYPES = 3,
1: + CPU_IDLE = 0,
1: + CPU_NOT_IDLE = 1,
1: + CPU_NEWLY_IDLE = 2,
1: + CPU_MAX_IDLE_TYPES = 3,
1: };
1:
1: enum {
1: - __SD_BALANCE_NEWIDLE = 0,
1: - __SD_BALANCE_EXEC = 1,
1: - __SD_BALANCE_FORK = 2,
1: - __SD_BALANCE_WAKE = 3,
1: - __SD_WAKE_AFFINE = 4,
1: - __SD_ASYM_CPUCAPACITY = 5,
1: - __SD_SHARE_CPUCAPACITY = 6,
1: - __SD_SHARE_PKG_RESOURCES = 7,
1: - __SD_SERIALIZE = 8,
1: - __SD_ASYM_PACKING = 9,
1: - __SD_PREFER_SIBLING = 10,
1: - __SD_OVERLAP = 11,
1: - __SD_NUMA = 12,
1: - __SD_FLAG_CNT = 13,
1: + __SD_BALANCE_NEWIDLE = 0,
1: + __SD_BALANCE_EXEC = 1,
1: + __SD_BALANCE_FORK = 2,
1: + __SD_BALANCE_WAKE = 3,
1: + __SD_WAKE_AFFINE = 4,
1: + __SD_ASYM_CPUCAPACITY = 5,
1: + __SD_SHARE_CPUCAPACITY = 6,
1: + __SD_SHARE_PKG_RESOURCES = 7,
1: + __SD_SERIALIZE = 8,
1: + __SD_ASYM_PACKING = 9,
1: + __SD_PREFER_SIBLING = 10,
1: + __SD_OVERLAP = 11,
1: + __SD_NUMA = 12,
1: + __SD_FLAG_CNT = 13,
1: };
1:
1: enum skb_ext_id {
1: - SKB_EXT_BRIDGE_NF = 0,
1: - SKB_EXT_SEC_PATH = 1,
1: - TC_SKB_EXT = 2,
1: - SKB_EXT_MPTCP = 3,
1: - SKB_EXT_NUM = 4,
1: + SKB_EXT_BRIDGE_NF = 0,
1: + SKB_EXT_SEC_PATH = 1,
1: + TC_SKB_EXT = 2,
1: + SKB_EXT_MPTCP = 3,
1: + SKB_EXT_NUM = 4,
1: };
1:
1: enum audit_ntp_type {
1: - AUDIT_NTP_OFFSET = 0,
1: - AUDIT_NTP_FREQ = 1,
1: - AUDIT_NTP_STATUS = 2,
1: - AUDIT_NTP_TAI = 3,
1: - AUDIT_NTP_TICK = 4,
1: - AUDIT_NTP_ADJUST = 5,
1: - AUDIT_NTP_NVALS = 6,
1: + AUDIT_NTP_OFFSET = 0,
1: + AUDIT_NTP_FREQ = 1,
1: + AUDIT_NTP_STATUS = 2,
1: + AUDIT_NTP_TAI = 3,
1: + AUDIT_NTP_TICK = 4,
1: + AUDIT_NTP_ADJUST = 5,
1: + AUDIT_NTP_NVALS = 6,
1: };
1:
1: typedef long unsigned int uintptr_t;
1:
1: struct step_hook {
1: - struct list_head node;
1: - int (*fn)(struct pt_regs *, unsigned int);
1: + struct list_head node;
1: + int (*fn)(struct pt_regs *, unsigned int);
1: };
1:
1: struct break_hook {
1: - struct list_head node;
1: - int (*fn)(struct pt_regs *, unsigned int);
1: - u16 imm;
1: - u16 mask;
1: + struct list_head node;
1: + int (*fn)(struct pt_regs *, unsigned int);
1: + u16 imm;
1: + u16 mask;
1: };
1:
1: enum dbg_active_el {
1: - DBG_ACTIVE_EL0 = 0,
1: - DBG_ACTIVE_EL1 = 1,
1: + DBG_ACTIVE_EL0 = 0,
1: + DBG_ACTIVE_EL1 = 1,
1: };
1:
1: struct nmi_ctx {
1: - u64 hcr;
1: - unsigned int cnt;
1: + u64 hcr;
1: + unsigned int cnt;
1: };
1:
1: enum {
1: - HI_SOFTIRQ = 0,
1: - TIMER_SOFTIRQ = 1,
1: - NET_TX_SOFTIRQ = 2,
1: - NET_RX_SOFTIRQ = 3,
1: - BLOCK_SOFTIRQ = 4,
1: - IRQ_POLL_SOFTIRQ = 5,
1: - TASKLET_SOFTIRQ = 6,
1: - SCHED_SOFTIRQ = 7,
1: - HRTIMER_SOFTIRQ = 8,
1: - RCU_SOFTIRQ = 9,
1: - NR_SOFTIRQS = 10,
1: + HI_SOFTIRQ = 0,
1: + TIMER_SOFTIRQ = 1,
1: + NET_TX_SOFTIRQ = 2,
1: + NET_RX_SOFTIRQ = 3,
1: + BLOCK_SOFTIRQ = 4,
1: + IRQ_POLL_SOFTIRQ = 5,
1: + TASKLET_SOFTIRQ = 6,
1: + SCHED_SOFTIRQ = 7,
1: + HRTIMER_SOFTIRQ = 8,
1: + RCU_SOFTIRQ = 9,
1: + NR_SOFTIRQS = 10,
1: };
1:
1: struct midr_range {
1: - u32 model;
1: - u32 rv_min;
1: - u32 rv_max;
1: + u32 model;
1: + u32 rv_min;
1: + u32 rv_max;
1: };
1:
1: struct arm64_midr_revidr {
1: - u32 midr_rv;
1: - u32 revidr_mask;
1: + u32 midr_rv;
1: + u32 revidr_mask;
1: };
1:
1: struct arm64_cpu_capabilities {
1: - const char *desc;
1: - u16 capability;
1: - u16 type;
1: - bool (*matches)(const struct arm64_cpu_capabilities *, int);
1: - void (*cpu_enable)(const struct arm64_cpu_capabilities *);
1: - union {
1: - struct {
1: - struct midr_range midr_range;
1: - const struct arm64_midr_revidr * const fixed_revs;
1: - };
1: - const struct midr_range *midr_range_list;
1: - struct {
1: - u32 sys_reg;
1: - u8 field_pos;
1: - u8 min_field_value;
1: - u8 hwcap_type;
1: - bool sign;
1: - long unsigned int hwcap;
1: - };
1: - };
1: - const struct arm64_cpu_capabilities *match_list;
1: + const char *desc;
1: + u16 capability;
1: + u16 type;
1: + bool (*matches)(const struct arm64_cpu_capabilities *, int);
1: + void (*cpu_enable)(const struct arm64_cpu_capabilities *);
1: + union {
1: + struct {
1: + struct midr_range midr_range;
1: + const struct arm64_midr_revidr *const fixed_revs;
1: + };
1: + const struct midr_range *midr_range_list;
1: + struct {
1: + u32 sys_reg;
1: + u8 field_pos;
1: + u8 min_field_value;
1: + u8 hwcap_type;
1: + bool sign;
1: + long unsigned int hwcap;
1: + };
1: + };
1: + const struct arm64_cpu_capabilities *match_list;
1: };
1:
1: enum cpu_pm_event {
1: - CPU_PM_ENTER = 0,
1: - CPU_PM_ENTER_FAILED = 1,
1: - CPU_PM_EXIT = 2,
1: - CPU_CLUSTER_PM_ENTER = 3,
1: - CPU_CLUSTER_PM_ENTER_FAILED = 4,
1: - CPU_CLUSTER_PM_EXIT = 5,
1: + CPU_PM_ENTER = 0,
1: + CPU_PM_ENTER_FAILED = 1,
1: + CPU_PM_EXIT = 2,
1: + CPU_CLUSTER_PM_ENTER = 3,
1: + CPU_CLUSTER_PM_ENTER_FAILED = 4,
1: + CPU_CLUSTER_PM_EXIT = 5,
1: };
1:
1: struct fpsimd_last_state_struct {
1: - struct user_fpsimd_state *st;
1: - void *sve_state;
1: - unsigned int sve_vl;
1: + struct user_fpsimd_state *st;
1: + void *sve_state;
1: + unsigned int sve_vl;
1: };
1:
1: enum ctx_state {
1: - CONTEXT_DISABLED = 4294967295,
1: - CONTEXT_KERNEL = 0,
1: - CONTEXT_USER = 1,
1: - CONTEXT_GUEST = 2,
1: + CONTEXT_DISABLED = 4294967295,
1: + CONTEXT_KERNEL = 0,
1: + CONTEXT_USER = 1,
1: + CONTEXT_GUEST = 2,
1: };
1:
1: typedef void (*bp_hardening_cb_t)();
1:
1: struct bp_hardening_data {
1: - int hyp_vectors_slot;
1: - bp_hardening_cb_t fn;
1: + int hyp_vectors_slot;
1: + bp_hardening_cb_t fn;
1: };
1:
1: enum refcount_saturation_type {
1: - REFCOUNT_ADD_NOT_ZERO_OVF = 0,
1: - REFCOUNT_ADD_OVF = 1,
1: - REFCOUNT_ADD_UAF = 2,
1: - REFCOUNT_SUB_UAF = 3,
1: - REFCOUNT_DEC_LEAK = 4,
1: + REFCOUNT_ADD_NOT_ZERO_OVF = 0,
1: + REFCOUNT_ADD_OVF = 1,
1: + REFCOUNT_ADD_UAF = 2,
1: + REFCOUNT_SUB_UAF = 3,
1: + REFCOUNT_DEC_LEAK = 4,
1: };
1:
1: struct plist_head {
1: - struct list_head node_list;
1: + struct list_head node_list;
1: };
1:
1: typedef struct {
1: - __u8 b[16];
1: + __u8 b[16];
1: } guid_t;
1:
1: enum pm_qos_type {
1: - PM_QOS_UNITIALIZED = 0,
1: - PM_QOS_MAX = 1,
1: - PM_QOS_MIN = 2,
1: + PM_QOS_UNITIALIZED = 0,
1: + PM_QOS_MAX = 1,
1: + PM_QOS_MIN = 2,
1: };
1:
1: struct pm_qos_constraints {
1: - struct plist_head list;
1: - s32 target_value;
1: - s32 default_value;
1: - s32 no_constraint_value;
1: - enum pm_qos_type type;
1: - struct blocking_notifier_head *notifiers;
1: + struct plist_head list;
1: + s32 target_value;
1: + s32 default_value;
1: + s32 no_constraint_value;
1: + enum pm_qos_type type;
1: + struct blocking_notifier_head *notifiers;
1: };
1:
1: struct freq_constraints {
1: - struct pm_qos_constraints min_freq;
1: - struct blocking_notifier_head min_freq_notifiers;
1: - struct pm_qos_constraints max_freq;
1: - struct blocking_notifier_head max_freq_notifiers;
1: + struct pm_qos_constraints min_freq;
1: + struct blocking_notifier_head min_freq_notifiers;
1: + struct pm_qos_constraints max_freq;
1: + struct blocking_notifier_head max_freq_notifiers;
1: };
1:
1: struct pm_qos_flags {
1: - struct list_head list;
1: - s32 effective_flags;
1: + struct list_head list;
1: + s32 effective_flags;
1: };
1:
1: struct dev_pm_qos_request;
1:
1: struct dev_pm_qos {
1: - struct pm_qos_constraints resume_latency;
1: - struct pm_qos_constraints latency_tolerance;
1: - struct freq_constraints freq;
1: - struct pm_qos_flags flags;
1: - struct dev_pm_qos_request *resume_latency_req;
1: - struct dev_pm_qos_request *latency_tolerance_req;
1: - struct dev_pm_qos_request *flags_req;
1: + struct pm_qos_constraints resume_latency;
1: + struct pm_qos_constraints latency_tolerance;
1: + struct freq_constraints freq;
1: + struct pm_qos_flags flags;
1: + struct dev_pm_qos_request *resume_latency_req;
1: + struct dev_pm_qos_request *latency_tolerance_req;
1: + struct dev_pm_qos_request *flags_req;
1: };
1:
1: enum reboot_mode {
1: - REBOOT_UNDEFINED = 4294967295,
1: - REBOOT_COLD = 0,
1: - REBOOT_WARM = 1,
1: - REBOOT_HARD = 2,
1: - REBOOT_SOFT = 3,
1: - REBOOT_GPIO = 4,
1: + REBOOT_UNDEFINED = 4294967295,
1: + REBOOT_COLD = 0,
1: + REBOOT_WARM = 1,
1: + REBOOT_HARD = 2,
1: + REBOOT_SOFT = 3,
1: + REBOOT_GPIO = 4,
1: };
1:
1: typedef long unsigned int efi_status_t;
1: @@ -13819,395 +14006,409 @@ typedef u16 efi_char16_t;
1: typedef guid_t efi_guid_t;
1:
1: typedef struct {
1: - u64 signature;
1: - u32 revision;
1: - u32 headersize;
1: - u32 crc32;
1: - u32 reserved;
1: + u64 signature;
1: + u32 revision;
1: + u32 headersize;
1: + u32 crc32;
1: + u32 reserved;
1: } efi_table_hdr_t;
1:
1: typedef struct {
1: - u32 type;
1: - u32 pad;
1: - u64 phys_addr;
1: - u64 virt_addr;
1: - u64 num_pages;
1: - u64 attribute;
1: + u32 type;
1: + u32 pad;
1: + u64 phys_addr;
1: + u64 virt_addr;
1: + u64 num_pages;
1: + u64 attribute;
1: } efi_memory_desc_t;
1:
1: typedef struct {
1: - efi_guid_t guid;
1: - u32 headersize;
1: - u32 flags;
1: - u32 imagesize;
1: + efi_guid_t guid;
1: + u32 headersize;
1: + u32 flags;
1: + u32 imagesize;
1: } efi_capsule_header_t;
1:
1: typedef struct {
1: - u16 year;
1: - u8 month;
1: - u8 day;
1: - u8 hour;
1: - u8 minute;
1: - u8 second;
1: - u8 pad1;
1: - u32 nanosecond;
1: - s16 timezone;
1: - u8 daylight;
1: - u8 pad2;
1: + u16 year;
1: + u8 month;
1: + u8 day;
1: + u8 hour;
1: + u8 minute;
1: + u8 second;
1: + u8 pad1;
1: + u32 nanosecond;
1: + s16 timezone;
1: + u8 daylight;
1: + u8 pad2;
1: } efi_time_t;
1:
1: typedef struct {
1: - u32 resolution;
1: - u32 accuracy;
1: - u8 sets_to_zero;
1: + u32 resolution;
1: + u32 accuracy;
1: + u8 sets_to_zero;
1: } efi_time_cap_t;
1:
1: typedef struct {
1: - efi_table_hdr_t hdr;
1: - u32 get_time;
1: - u32 set_time;
1: - u32 get_wakeup_time;
1: - u32 set_wakeup_time;
1: - u32 set_virtual_address_map;
1: - u32 convert_pointer;
1: - u32 get_variable;
1: - u32 get_next_variable;
1: - u32 set_variable;
1: - u32 get_next_high_mono_count;
1: - u32 reset_system;
1: - u32 update_capsule;
1: - u32 query_capsule_caps;
1: - u32 query_variable_info;
1: + efi_table_hdr_t hdr;
1: + u32 get_time;
1: + u32 set_time;
1: + u32 get_wakeup_time;
1: + u32 set_wakeup_time;
1: + u32 set_virtual_address_map;
1: + u32 convert_pointer;
1: + u32 get_variable;
1: + u32 get_next_variable;
1: + u32 set_variable;
1: + u32 get_next_high_mono_count;
1: + u32 reset_system;
1: + u32 update_capsule;
1: + u32 query_capsule_caps;
1: + u32 query_variable_info;
1: } efi_runtime_services_32_t;
1:
1: typedef efi_status_t efi_get_time_t(efi_time_t *, efi_time_cap_t *);
1:
1: typedef efi_status_t efi_set_time_t(efi_time_t *);
1:
1: -typedef efi_status_t efi_get_wakeup_time_t(efi_bool_t *, efi_bool_t *, efi_time_t *);
1: +typedef efi_status_t efi_get_wakeup_time_t(efi_bool_t *, efi_bool_t *,
1: + efi_time_t *);
1:
1: typedef efi_status_t efi_set_wakeup_time_t(efi_bool_t, efi_time_t *);
1:
1: -typedef efi_status_t efi_get_variable_t(efi_char16_t *, efi_guid_t *, u32 *, long unsigned int *, void *);
1: +typedef efi_status_t efi_get_variable_t(efi_char16_t *, efi_guid_t *, u32 *,
1: + long unsigned int *, void *);
1:
1: -typedef efi_status_t efi_get_next_variable_t(long unsigned int *, efi_char16_t *, efi_guid_t *);
1: +typedef efi_status_t efi_get_next_variable_t(long unsigned int *,
1: + efi_char16_t *, efi_guid_t *);
1:
1: -typedef efi_status_t efi_set_variable_t(efi_char16_t *, efi_guid_t *, u32, long unsigned int, void *);
1: +typedef efi_status_t efi_set_variable_t(efi_char16_t *, efi_guid_t *, u32,
1: + long unsigned int, void *);
1:
1: typedef efi_status_t efi_get_next_high_mono_count_t(u32 *);
1:
1: -typedef void efi_reset_system_t(int, efi_status_t, long unsigned int, efi_char16_t *);
1: +typedef void efi_reset_system_t(int, efi_status_t, long unsigned int,
1: + efi_char16_t *);
1:
1: -typedef efi_status_t efi_set_virtual_address_map_t(long unsigned int, long unsigned int, u32, efi_memory_desc_t *);
1: +typedef efi_status_t efi_set_virtual_address_map_t(long unsigned int,
1: + long unsigned int, u32,
1: + efi_memory_desc_t *);
1:
1: typedef efi_status_t efi_query_variable_info_t(u32, u64 *, u64 *, u64 *);
1:
1: -typedef efi_status_t efi_update_capsule_t(efi_capsule_header_t **, long unsigned int, long unsigned int);
1: +typedef efi_status_t efi_update_capsule_t(efi_capsule_header_t **,
1: + long unsigned int, long unsigned int);
1:
1: -typedef efi_status_t efi_query_capsule_caps_t(efi_capsule_header_t **, long unsigned int, u64 *, int *);
1: +typedef efi_status_t efi_query_capsule_caps_t(efi_capsule_header_t **,
1: + long unsigned int, u64 *, int *);
1:
1: typedef union {
1: - struct {
1: - efi_table_hdr_t hdr;
1: - efi_get_time_t *get_time;
1: - efi_set_time_t *set_time;
1: - efi_get_wakeup_time_t *get_wakeup_time;
1: - efi_set_wakeup_time_t *set_wakeup_time;
1: - efi_set_virtual_address_map_t *set_virtual_address_map;
1: - void *convert_pointer;
1: - efi_get_variable_t *get_variable;
1: - efi_get_next_variable_t *get_next_variable;
1: - efi_set_variable_t *set_variable;
1: - efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: - efi_reset_system_t *reset_system;
1: - efi_update_capsule_t *update_capsule;
1: - efi_query_capsule_caps_t *query_capsule_caps;
1: - efi_query_variable_info_t *query_variable_info;
1: - };
1: - efi_runtime_services_32_t mixed_mode;
1: + struct {
1: + efi_table_hdr_t hdr;
1: + efi_get_time_t *get_time;
1: + efi_set_time_t *set_time;
1: + efi_get_wakeup_time_t *get_wakeup_time;
1: + efi_set_wakeup_time_t *set_wakeup_time;
1: + efi_set_virtual_address_map_t *set_virtual_address_map;
1: + void *convert_pointer;
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: + efi_reset_system_t *reset_system;
1: + efi_update_capsule_t *update_capsule;
1: + efi_query_capsule_caps_t *query_capsule_caps;
1: + efi_query_variable_info_t *query_variable_info;
1: + };
1: + efi_runtime_services_32_t mixed_mode;
1: } efi_runtime_services_t;
1:
1: struct efi_memory_map {
1: - phys_addr_t phys_map;
1: - void *map;
1: - void *map_end;
1: - int nr_map;
1: - long unsigned int desc_version;
1: - long unsigned int desc_size;
1: - long unsigned int flags;
1: + phys_addr_t phys_map;
1: + void *map;
1: + void *map_end;
1: + int nr_map;
1: + long unsigned int desc_version;
1: + long unsigned int desc_size;
1: + long unsigned int flags;
1: };
1:
1: struct efi {
1: - const efi_runtime_services_t *runtime;
1: - unsigned int runtime_version;
1: - unsigned int runtime_supported_mask;
1: - long unsigned int acpi;
1: - long unsigned int acpi20;
1: - long unsigned int smbios;
1: - long unsigned int smbios3;
1: - long unsigned int esrt;
1: - long unsigned int tpm_log;
1: - long unsigned int tpm_final_log;
1: - long unsigned int mokvar_table;
1: - efi_get_time_t *get_time;
1: - efi_set_time_t *set_time;
1: - efi_get_wakeup_time_t *get_wakeup_time;
1: - efi_set_wakeup_time_t *set_wakeup_time;
1: - efi_get_variable_t *get_variable;
1: - efi_get_next_variable_t *get_next_variable;
1: - efi_set_variable_t *set_variable;
1: - efi_set_variable_t *set_variable_nonblocking;
1: - efi_query_variable_info_t *query_variable_info;
1: - efi_query_variable_info_t *query_variable_info_nonblocking;
1: - efi_update_capsule_t *update_capsule;
1: - efi_query_capsule_caps_t *query_capsule_caps;
1: - efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: - efi_reset_system_t *reset_system;
1: - struct efi_memory_map memmap;
1: - long unsigned int flags;
1: + const efi_runtime_services_t *runtime;
1: + unsigned int runtime_version;
1: + unsigned int runtime_supported_mask;
1: + long unsigned int acpi;
1: + long unsigned int acpi20;
1: + long unsigned int smbios;
1: + long unsigned int smbios3;
1: + long unsigned int esrt;
1: + long unsigned int tpm_log;
1: + long unsigned int tpm_final_log;
1: + long unsigned int mokvar_table;
1: + efi_get_time_t *get_time;
1: + efi_set_time_t *set_time;
1: + efi_get_wakeup_time_t *get_wakeup_time;
1: + efi_set_wakeup_time_t *set_wakeup_time;
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_set_variable_t *set_variable_nonblocking;
1: + efi_query_variable_info_t *query_variable_info;
1: + efi_query_variable_info_t *query_variable_info_nonblocking;
1: + efi_update_capsule_t *update_capsule;
1: + efi_query_capsule_caps_t *query_capsule_caps;
1: + efi_get_next_high_mono_count_t *get_next_high_mono_count;
1: + efi_reset_system_t *reset_system;
1: + struct efi_memory_map memmap;
1: + long unsigned int flags;
1: };
1:
1: struct arch_elf_state {
1: - int flags;
1: + int flags;
1: };
1:
1: struct pm_qos_flags_request {
1: - struct list_head node;
1: - s32 flags;
1: + struct list_head node;
1: + s32 flags;
1: };
1:
1: enum freq_qos_req_type {
1: - FREQ_QOS_MIN = 1,
1: - FREQ_QOS_MAX = 2,
1: + FREQ_QOS_MIN = 1,
1: + FREQ_QOS_MAX = 2,
1: };
1:
1: struct freq_qos_request {
1: - enum freq_qos_req_type type;
1: - struct plist_node pnode;
1: - struct freq_constraints *qos;
1: + enum freq_qos_req_type type;
1: + struct plist_node pnode;
1: + struct freq_constraints *qos;
1: };
1:
1: enum dev_pm_qos_req_type {
1: - DEV_PM_QOS_RESUME_LATENCY = 1,
1: - DEV_PM_QOS_LATENCY_TOLERANCE = 2,
1: - DEV_PM_QOS_MIN_FREQUENCY = 3,
1: - DEV_PM_QOS_MAX_FREQUENCY = 4,
1: - DEV_PM_QOS_FLAGS = 5,
1: + DEV_PM_QOS_RESUME_LATENCY = 1,
1: + DEV_PM_QOS_LATENCY_TOLERANCE = 2,
1: + DEV_PM_QOS_MIN_FREQUENCY = 3,
1: + DEV_PM_QOS_MAX_FREQUENCY = 4,
1: + DEV_PM_QOS_FLAGS = 5,
1: };
1:
1: struct dev_pm_qos_request {
1: - enum dev_pm_qos_req_type type;
1: - union {
1: - struct plist_node pnode;
1: - struct pm_qos_flags_request flr;
1: - struct freq_qos_request freq;
1: - } data;
1: - struct device *dev;
1: + enum dev_pm_qos_req_type type;
1: + union {
1: + struct plist_node pnode;
1: + struct pm_qos_flags_request flr;
1: + struct freq_qos_request freq;
1: + } data;
1: + struct device *dev;
1: };
1:
1: enum stack_type {
1: - STACK_TYPE_UNKNOWN = 0,
1: - STACK_TYPE_TASK = 1,
1: - STACK_TYPE_IRQ = 2,
1: - STACK_TYPE_OVERFLOW = 3,
1: - STACK_TYPE_SDEI_NORMAL = 4,
1: - STACK_TYPE_SDEI_CRITICAL = 5,
1: - __NR_STACK_TYPES = 6,
1: + STACK_TYPE_UNKNOWN = 0,
1: + STACK_TYPE_TASK = 1,
1: + STACK_TYPE_IRQ = 2,
1: + STACK_TYPE_OVERFLOW = 3,
1: + STACK_TYPE_SDEI_NORMAL = 4,
1: + STACK_TYPE_SDEI_CRITICAL = 5,
1: + __NR_STACK_TYPES = 6,
1: };
1:
1: struct stackframe {
1: - long unsigned int fp;
1: - long unsigned int pc;
1: - long unsigned int stacks_done[1];
1: - long unsigned int prev_fp;
1: - enum stack_type prev_type;
1: - int graph;
1: + long unsigned int fp;
1: + long unsigned int pc;
1: + long unsigned int stacks_done[1];
1: + long unsigned int prev_fp;
1: + enum stack_type prev_type;
1: + int graph;
1: };
1:
1: struct user_sve_header {
1: - __u32 size;
1: - __u32 max_size;
1: - __u16 vl;
1: - __u16 max_vl;
1: - __u16 flags;
1: - __u16 __reserved;
1: + __u32 size;
1: + __u32 max_size;
1: + __u16 vl;
1: + __u16 max_vl;
1: + __u16 flags;
1: + __u16 __reserved;
1: };
1:
1: struct user_pac_mask {
1: - __u64 data_mask;
1: - __u64 insn_mask;
1: + __u64 data_mask;
1: + __u64 insn_mask;
1: };
1:
1: struct user_pac_address_keys {
1: - __int128 unsigned apiakey;
1: - __int128 unsigned apibkey;
1: - __int128 unsigned apdakey;
1: - __int128 unsigned apdbkey;
1: + __int128 unsigned apiakey;
1: + __int128 unsigned apibkey;
1: + __int128 unsigned apdakey;
1: + __int128 unsigned apdbkey;
1: };
1:
1: struct user_pac_generic_keys {
1: - __int128 unsigned apgakey;
1: + __int128 unsigned apgakey;
1: };
1:
1: typedef u32 compat_ulong_t;
1:
1: enum perf_type_id {
1: - PERF_TYPE_HARDWARE = 0,
1: - PERF_TYPE_SOFTWARE = 1,
1: - PERF_TYPE_TRACEPOINT = 2,
1: - PERF_TYPE_HW_CACHE = 3,
1: - PERF_TYPE_RAW = 4,
1: - PERF_TYPE_BREAKPOINT = 5,
1: - PERF_TYPE_MAX = 6,
1: + PERF_TYPE_HARDWARE = 0,
1: + PERF_TYPE_SOFTWARE = 1,
1: + PERF_TYPE_TRACEPOINT = 2,
1: + PERF_TYPE_HW_CACHE = 3,
1: + PERF_TYPE_RAW = 4,
1: + PERF_TYPE_BREAKPOINT = 5,
1: + PERF_TYPE_MAX = 6,
1: };
1:
1: enum {
1: - TASKSTATS_CMD_UNSPEC = 0,
1: - TASKSTATS_CMD_GET = 1,
1: - TASKSTATS_CMD_NEW = 2,
1: - __TASKSTATS_CMD_MAX = 3,
1: + TASKSTATS_CMD_UNSPEC = 0,
1: + TASKSTATS_CMD_GET = 1,
1: + TASKSTATS_CMD_NEW = 2,
1: + __TASKSTATS_CMD_MAX = 3,
1: };
1:
1: enum cpu_usage_stat {
1: - CPUTIME_USER = 0,
1: - CPUTIME_NICE = 1,
1: - CPUTIME_SYSTEM = 2,
1: - CPUTIME_SOFTIRQ = 3,
1: - CPUTIME_IRQ = 4,
1: - CPUTIME_IDLE = 5,
1: - CPUTIME_IOWAIT = 6,
1: - CPUTIME_STEAL = 7,
1: - CPUTIME_GUEST = 8,
1: - CPUTIME_GUEST_NICE = 9,
1: - NR_STATS = 10,
1: + CPUTIME_USER = 0,
1: + CPUTIME_NICE = 1,
1: + CPUTIME_SYSTEM = 2,
1: + CPUTIME_SOFTIRQ = 3,
1: + CPUTIME_IRQ = 4,
1: + CPUTIME_IDLE = 5,
1: + CPUTIME_IOWAIT = 6,
1: + CPUTIME_STEAL = 7,
1: + CPUTIME_GUEST = 8,
1: + CPUTIME_GUEST_NICE = 9,
1: + NR_STATS = 10,
1: };
1:
1: enum bpf_cgroup_storage_type {
1: - BPF_CGROUP_STORAGE_SHARED = 0,
1: - BPF_CGROUP_STORAGE_PERCPU = 1,
1: - __BPF_CGROUP_STORAGE_MAX = 2,
1: + BPF_CGROUP_STORAGE_SHARED = 0,
1: + BPF_CGROUP_STORAGE_PERCPU = 1,
1: + __BPF_CGROUP_STORAGE_MAX = 2,
1: };
1:
1: enum psi_task_count {
1: - NR_IOWAIT = 0,
1: - NR_MEMSTALL = 1,
1: - NR_RUNNING = 2,
1: - NR_ONCPU = 3,
1: - NR_PSI_TASK_COUNTS = 4,
1: + NR_IOWAIT = 0,
1: + NR_MEMSTALL = 1,
1: + NR_RUNNING = 2,
1: + NR_ONCPU = 3,
1: + NR_PSI_TASK_COUNTS = 4,
1: };
1:
1: enum psi_states {
1: - PSI_IO_SOME = 0,
1: - PSI_IO_FULL = 1,
1: - PSI_MEM_SOME = 2,
1: - PSI_MEM_FULL = 3,
1: - PSI_CPU_SOME = 4,
1: - PSI_NONIDLE = 5,
1: - NR_PSI_STATES = 6,
1: + PSI_IO_SOME = 0,
1: + PSI_IO_FULL = 1,
1: + PSI_MEM_SOME = 2,
1: + PSI_MEM_FULL = 3,
1: + PSI_CPU_SOME = 4,
1: + PSI_NONIDLE = 5,
1: + NR_PSI_STATES = 6,
1: };
1:
1: enum psi_aggregators {
1: - PSI_AVGS = 0,
1: - PSI_POLL = 1,
1: - NR_PSI_AGGREGATORS = 2,
1: + PSI_AVGS = 0,
1: + PSI_POLL = 1,
1: + NR_PSI_AGGREGATORS = 2,
1: };
1:
1: enum cgroup_subsys_id {
1: - cpuset_cgrp_id = 0,
1: - cpu_cgrp_id = 1,
1: - cpuacct_cgrp_id = 2,
1: - io_cgrp_id = 3,
1: - memory_cgrp_id = 4,
1: - devices_cgrp_id = 5,
1: - freezer_cgrp_id = 6,
1: - net_cls_cgrp_id = 7,
1: - perf_event_cgrp_id = 8,
1: - net_prio_cgrp_id = 9,
1: - hugetlb_cgrp_id = 10,
1: - pids_cgrp_id = 11,
1: - CGROUP_SUBSYS_COUNT = 12,
1: + cpuset_cgrp_id = 0,
1: + cpu_cgrp_id = 1,
1: + cpuacct_cgrp_id = 2,
1: + io_cgrp_id = 3,
1: + memory_cgrp_id = 4,
1: + devices_cgrp_id = 5,
1: + freezer_cgrp_id = 6,
1: + net_cls_cgrp_id = 7,
1: + perf_event_cgrp_id = 8,
1: + net_prio_cgrp_id = 9,
1: + hugetlb_cgrp_id = 10,
1: + pids_cgrp_id = 11,
1: + CGROUP_SUBSYS_COUNT = 12,
1: };
1:
1: enum {
1: - HW_BREAKPOINT_LEN_1 = 1,
1: - HW_BREAKPOINT_LEN_2 = 2,
1: - HW_BREAKPOINT_LEN_3 = 3,
1: - HW_BREAKPOINT_LEN_4 = 4,
1: - HW_BREAKPOINT_LEN_5 = 5,
1: - HW_BREAKPOINT_LEN_6 = 6,
1: - HW_BREAKPOINT_LEN_7 = 7,
1: - HW_BREAKPOINT_LEN_8 = 8,
1: + HW_BREAKPOINT_LEN_1 = 1,
1: + HW_BREAKPOINT_LEN_2 = 2,
1: + HW_BREAKPOINT_LEN_3 = 3,
1: + HW_BREAKPOINT_LEN_4 = 4,
1: + HW_BREAKPOINT_LEN_5 = 5,
1: + HW_BREAKPOINT_LEN_6 = 6,
1: + HW_BREAKPOINT_LEN_7 = 7,
1: + HW_BREAKPOINT_LEN_8 = 8,
1: };
1:
1: enum {
1: - HW_BREAKPOINT_EMPTY = 0,
1: - HW_BREAKPOINT_R = 1,
1: - HW_BREAKPOINT_W = 2,
1: - HW_BREAKPOINT_RW = 3,
1: - HW_BREAKPOINT_X = 4,
1: - HW_BREAKPOINT_INVALID = 7,
1: + HW_BREAKPOINT_EMPTY = 0,
1: + HW_BREAKPOINT_R = 1,
1: + HW_BREAKPOINT_W = 2,
1: + HW_BREAKPOINT_RW = 3,
1: + HW_BREAKPOINT_X = 4,
1: + HW_BREAKPOINT_INVALID = 7,
1: };
1:
1: enum bp_type_idx {
1: - TYPE_INST = 0,
1: - TYPE_DATA = 1,
1: - TYPE_MAX = 2,
1: + TYPE_INST = 0,
1: + TYPE_DATA = 1,
1: + TYPE_MAX = 2,
1: };
1:
1: struct membuf {
1: - void *p;
1: - size_t left;
1: + void *p;
1: + size_t left;
1: };
1:
1: struct user_regset;
1:
1: -typedef int user_regset_active_fn(struct task_struct *, const struct user_regset *);
1: +typedef int user_regset_active_fn(struct task_struct *,
1: + const struct user_regset *);
1:
1: -typedef int user_regset_get2_fn(struct task_struct *, const struct user_regset *, struct membuf);
1: +typedef int user_regset_get2_fn(struct task_struct *,
1: + const struct user_regset *, struct membuf);
1:
1: -typedef int user_regset_set_fn(struct task_struct *, const struct user_regset *, unsigned int, unsigned int, const void *, const void *);
1: +typedef int user_regset_set_fn(struct task_struct *, const struct user_regset *,
1: + unsigned int, unsigned int, const void *,
1: + const void *);
1:
1: -typedef int user_regset_writeback_fn(struct task_struct *, const struct user_regset *, int);
1: +typedef int user_regset_writeback_fn(struct task_struct *,
1: + const struct user_regset *, int);
1:
1: struct user_regset {
1: - user_regset_get2_fn *regset_get;
1: - user_regset_set_fn *set;
1: - user_regset_active_fn *active;
1: - user_regset_writeback_fn *writeback;
1: - unsigned int n;
1: - unsigned int size;
1: - unsigned int align;
1: - unsigned int bias;
1: - unsigned int core_note_type;
1: + user_regset_get2_fn *regset_get;
1: + user_regset_set_fn *set;
1: + user_regset_active_fn *active;
1: + user_regset_writeback_fn *writeback;
1: + unsigned int n;
1: + unsigned int size;
1: + unsigned int align;
1: + unsigned int bias;
1: + unsigned int core_note_type;
1: };
1:
1: struct user_regset_view {
1: - const char *name;
1: - const struct user_regset *regsets;
1: - unsigned int n;
1: - u32 e_flags;
1: - u16 e_machine;
1: - u8 ei_osabi;
1: + const char *name;
1: + const struct user_regset *regsets;
1: + unsigned int n;
1: + u32 e_flags;
1: + u16 e_machine;
1: + u8 ei_osabi;
1: };
1:
1: struct stack_info {
1: - long unsigned int low;
1: - long unsigned int high;
1: - enum stack_type type;
1: + long unsigned int low;
1: + long unsigned int high;
1: + enum stack_type type;
1: };
1:
1: struct trace_event_raw_sys_enter {
1: - struct trace_entry ent;
1: - long int id;
1: - long unsigned int args[6];
1: - char __data[0];
1: + struct trace_entry ent;
1: + long int id;
1: + long unsigned int args[6];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sys_exit {
1: - struct trace_entry ent;
1: - long int id;
1: - long int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long int id;
1: + long int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_sys_enter {};
1: @@ -14219,289 +14420,289 @@ typedef void (*btf_trace_sys_enter)(void *, struct pt_regs *, long int);
1: typedef void (*btf_trace_sys_exit)(void *, struct pt_regs *, long int);
1:
1: struct pt_regs_offset {
1: - const char *name;
1: - int offset;
1: + const char *name;
1: + int offset;
1: };
1:
1: enum aarch64_regset {
1: - REGSET_GPR = 0,
1: - REGSET_FPR = 1,
1: - REGSET_TLS = 2,
1: - REGSET_HW_BREAK = 3,
1: - REGSET_HW_WATCH = 4,
1: - REGSET_SYSTEM_CALL = 5,
1: - REGSET_SVE = 6,
1: - REGSET_PAC_MASK = 7,
1: - REGSET_PACA_KEYS = 8,
1: - REGSET_PACG_KEYS = 9,
1: - REGSET_TAGGED_ADDR_CTRL = 10,
1: + REGSET_GPR = 0,
1: + REGSET_FPR = 1,
1: + REGSET_TLS = 2,
1: + REGSET_HW_BREAK = 3,
1: + REGSET_HW_WATCH = 4,
1: + REGSET_SYSTEM_CALL = 5,
1: + REGSET_SVE = 6,
1: + REGSET_PAC_MASK = 7,
1: + REGSET_PACA_KEYS = 8,
1: + REGSET_PACG_KEYS = 9,
1: + REGSET_TAGGED_ADDR_CTRL = 10,
1: };
1:
1: enum compat_regset {
1: - REGSET_COMPAT_GPR = 0,
1: - REGSET_COMPAT_VFP = 1,
1: + REGSET_COMPAT_GPR = 0,
1: + REGSET_COMPAT_VFP = 1,
1: };
1:
1: enum ptrace_syscall_dir {
1: - PTRACE_SYSCALL_ENTER = 0,
1: - PTRACE_SYSCALL_EXIT = 1,
1: + PTRACE_SYSCALL_ENTER = 0,
1: + PTRACE_SYSCALL_EXIT = 1,
1: };
1:
1: struct atomic_notifier_head {
1: - spinlock_t lock;
1: - struct notifier_block *head;
1: + spinlock_t lock;
1: + struct notifier_block *head;
1: };
1:
1: typedef struct pglist_data pg_data_t;
1:
1: enum meminit_context {
1: - MEMINIT_EARLY = 0,
1: - MEMINIT_HOTPLUG = 1,
1: + MEMINIT_EARLY = 0,
1: + MEMINIT_HOTPLUG = 1,
1: };
1:
1: enum memblock_flags {
1: - MEMBLOCK_NONE = 0,
1: - MEMBLOCK_HOTPLUG = 1,
1: - MEMBLOCK_MIRROR = 2,
1: - MEMBLOCK_NOMAP = 4,
1: + MEMBLOCK_NONE = 0,
1: + MEMBLOCK_HOTPLUG = 1,
1: + MEMBLOCK_MIRROR = 2,
1: + MEMBLOCK_NOMAP = 4,
1: };
1:
1: struct memblock_region {
1: - phys_addr_t base;
1: - phys_addr_t size;
1: - enum memblock_flags flags;
1: - int nid;
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + enum memblock_flags flags;
1: + int nid;
1: };
1:
1: struct memblock_type {
1: - long unsigned int cnt;
1: - long unsigned int max;
1: - phys_addr_t total_size;
1: - struct memblock_region *regions;
1: - char *name;
1: + long unsigned int cnt;
1: + long unsigned int max;
1: + phys_addr_t total_size;
1: + struct memblock_region *regions;
1: + char *name;
1: };
1:
1: struct memblock {
1: - bool bottom_up;
1: - phys_addr_t current_limit;
1: - struct memblock_type memory;
1: - struct memblock_type reserved;
1: + bool bottom_up;
1: + phys_addr_t current_limit;
1: + struct memblock_type memory;
1: + struct memblock_type reserved;
1: };
1:
1: struct mpidr_hash {
1: - u64 mask;
1: - u32 shift_aff[4];
1: - u32 bits;
1: + u64 mask;
1: + u32 shift_aff[4];
1: + u32 bits;
1: };
1:
1: struct cpu {
1: - int node_id;
1: - int hotpluggable;
1: - struct device dev;
1: + int node_id;
1: + int hotpluggable;
1: + struct device dev;
1: };
1:
1: struct cpuinfo_arm64 {
1: - struct cpu cpu;
1: - struct kobject kobj;
1: - u32 reg_ctr;
1: - u32 reg_cntfrq;
1: - u32 reg_dczid;
1: - u32 reg_midr;
1: - u32 reg_revidr;
1: - u64 reg_id_aa64dfr0;
1: - u64 reg_id_aa64dfr1;
1: - u64 reg_id_aa64isar0;
1: - u64 reg_id_aa64isar1;
1: - u64 reg_id_aa64mmfr0;
1: - u64 reg_id_aa64mmfr1;
1: - u64 reg_id_aa64mmfr2;
1: - u64 reg_id_aa64pfr0;
1: - u64 reg_id_aa64pfr1;
1: - u64 reg_id_aa64zfr0;
1: - u32 reg_id_dfr0;
1: - u32 reg_id_dfr1;
1: - u32 reg_id_isar0;
1: - u32 reg_id_isar1;
1: - u32 reg_id_isar2;
1: - u32 reg_id_isar3;
1: - u32 reg_id_isar4;
1: - u32 reg_id_isar5;
1: - u32 reg_id_isar6;
1: - u32 reg_id_mmfr0;
1: - u32 reg_id_mmfr1;
1: - u32 reg_id_mmfr2;
1: - u32 reg_id_mmfr3;
1: - u32 reg_id_mmfr4;
1: - u32 reg_id_mmfr5;
1: - u32 reg_id_pfr0;
1: - u32 reg_id_pfr1;
1: - u32 reg_id_pfr2;
1: - u32 reg_mvfr0;
1: - u32 reg_mvfr1;
1: - u32 reg_mvfr2;
1: - u64 reg_zcr;
1: + struct cpu cpu;
1: + struct kobject kobj;
1: + u32 reg_ctr;
1: + u32 reg_cntfrq;
1: + u32 reg_dczid;
1: + u32 reg_midr;
1: + u32 reg_revidr;
1: + u64 reg_id_aa64dfr0;
1: + u64 reg_id_aa64dfr1;
1: + u64 reg_id_aa64isar0;
1: + u64 reg_id_aa64isar1;
1: + u64 reg_id_aa64mmfr0;
1: + u64 reg_id_aa64mmfr1;
1: + u64 reg_id_aa64mmfr2;
1: + u64 reg_id_aa64pfr0;
1: + u64 reg_id_aa64pfr1;
1: + u64 reg_id_aa64zfr0;
1: + u32 reg_id_dfr0;
1: + u32 reg_id_dfr1;
1: + u32 reg_id_isar0;
1: + u32 reg_id_isar1;
1: + u32 reg_id_isar2;
1: + u32 reg_id_isar3;
1: + u32 reg_id_isar4;
1: + u32 reg_id_isar5;
1: + u32 reg_id_isar6;
1: + u32 reg_id_mmfr0;
1: + u32 reg_id_mmfr1;
1: + u32 reg_id_mmfr2;
1: + u32 reg_id_mmfr3;
1: + u32 reg_id_mmfr4;
1: + u32 reg_id_mmfr5;
1: + u32 reg_id_pfr0;
1: + u32 reg_id_pfr1;
1: + u32 reg_id_pfr2;
1: + u32 reg_mvfr0;
1: + u32 reg_mvfr1;
1: + u32 reg_mvfr2;
1: + u64 reg_zcr;
1: };
1:
1: struct cpu_operations {
1: - const char *name;
1: - int (*cpu_init)(unsigned int);
1: - int (*cpu_prepare)(unsigned int);
1: - int (*cpu_boot)(unsigned int);
1: - void (*cpu_postboot)();
1: - bool (*cpu_can_disable)(unsigned int);
1: - int (*cpu_disable)(unsigned int);
1: - void (*cpu_die)(unsigned int);
1: - int (*cpu_kill)(unsigned int);
1: - int (*cpu_init_idle)(unsigned int);
1: - int (*cpu_suspend)(long unsigned int);
1: + const char *name;
1: + int (*cpu_init)(unsigned int);
1: + int (*cpu_prepare)(unsigned int);
1: + int (*cpu_boot)(unsigned int);
1: + void (*cpu_postboot)();
1: + bool (*cpu_can_disable)(unsigned int);
1: + int (*cpu_disable)(unsigned int);
1: + void (*cpu_die)(unsigned int);
1: + int (*cpu_kill)(unsigned int);
1: + int (*cpu_init_idle)(unsigned int);
1: + int (*cpu_suspend)(long unsigned int);
1: };
1:
1: struct sigcontext {
1: - __u64 fault_address;
1: - __u64 regs[31];
1: - __u64 sp;
1: - __u64 pc;
1: - __u64 pstate;
1: - long: 64;
1: - __u8 __reserved[4096];
1: + __u64 fault_address;
1: + __u64 regs[31];
1: + __u64 sp;
1: + __u64 pc;
1: + __u64 pstate;
1: + long : 64;
1: + __u8 __reserved[4096];
1: };
1:
1: struct _aarch64_ctx {
1: - __u32 magic;
1: - __u32 size;
1: + __u32 magic;
1: + __u32 size;
1: };
1:
1: struct fpsimd_context {
1: - struct _aarch64_ctx head;
1: - __u32 fpsr;
1: - __u32 fpcr;
1: - __int128 unsigned vregs[32];
1: + struct _aarch64_ctx head;
1: + __u32 fpsr;
1: + __u32 fpcr;
1: + __int128 unsigned vregs[32];
1: };
1:
1: struct esr_context {
1: - struct _aarch64_ctx head;
1: - __u64 esr;
1: + struct _aarch64_ctx head;
1: + __u64 esr;
1: };
1:
1: struct extra_context {
1: - struct _aarch64_ctx head;
1: - __u64 datap;
1: - __u32 size;
1: - __u32 __reserved[3];
1: + struct _aarch64_ctx head;
1: + __u64 datap;
1: + __u32 size;
1: + __u32 __reserved[3];
1: };
1:
1: struct sve_context {
1: - struct _aarch64_ctx head;
1: - __u16 vl;
1: - __u16 __reserved[3];
1: + struct _aarch64_ctx head;
1: + __u16 vl;
1: + __u16 __reserved[3];
1: };
1:
1: struct sigaltstack {
1: - void *ss_sp;
1: - int ss_flags;
1: - size_t ss_size;
1: + void *ss_sp;
1: + int ss_flags;
1: + size_t ss_size;
1: };
1:
1: typedef struct sigaltstack stack_t;
1:
1: struct siginfo {
1: - union {
1: - struct {
1: - int si_signo;
1: - int si_errno;
1: - int si_code;
1: - union __sifields _sifields;
1: - };
1: - int _si_pad[32];
1: - };
1: + union {
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: + int _si_pad[32];
1: + };
1: };
1:
1: struct ksignal {
1: - struct k_sigaction ka;
1: - kernel_siginfo_t info;
1: - int sig;
1: + struct k_sigaction ka;
1: + kernel_siginfo_t info;
1: + int sig;
1: };
1:
1: enum {
1: - EI_ETYPE_NONE = 0,
1: - EI_ETYPE_NULL = 1,
1: - EI_ETYPE_ERRNO = 2,
1: - EI_ETYPE_ERRNO_NULL = 3,
1: - EI_ETYPE_TRUE = 4,
1: + EI_ETYPE_NONE = 0,
1: + EI_ETYPE_NULL = 1,
1: + EI_ETYPE_ERRNO = 2,
1: + EI_ETYPE_ERRNO_NULL = 3,
1: + EI_ETYPE_TRUE = 4,
1: };
1:
1: struct syscall_metadata {
1: - const char *name;
1: - int syscall_nr;
1: - int nb_args;
1: - const char **types;
1: - const char **args;
1: - struct list_head enter_fields;
1: - struct trace_event_call *enter_event;
1: - struct trace_event_call *exit_event;
1: + const char *name;
1: + int syscall_nr;
1: + int nb_args;
1: + const char **types;
1: + const char **args;
1: + struct list_head enter_fields;
1: + struct trace_event_call *enter_event;
1: + struct trace_event_call *exit_event;
1: };
1:
1: struct ucontext {
1: - long unsigned int uc_flags;
1: - struct ucontext *uc_link;
1: - stack_t uc_stack;
1: - sigset_t uc_sigmask;
1: - __u8 __unused[120];
1: - long: 64;
1: - struct sigcontext uc_mcontext;
1: + long unsigned int uc_flags;
1: + struct ucontext *uc_link;
1: + stack_t uc_stack;
1: + sigset_t uc_sigmask;
1: + __u8 __unused[120];
1: + long : 64;
1: + struct sigcontext uc_mcontext;
1: };
1:
1: struct rt_sigframe {
1: - struct siginfo info;
1: - struct ucontext uc;
1: + struct siginfo info;
1: + struct ucontext uc;
1: };
1:
1: struct frame_record {
1: - u64 fp;
1: - u64 lr;
1: + u64 fp;
1: + u64 lr;
1: };
1:
1: struct rt_sigframe_user_layout {
1: - struct rt_sigframe *sigframe;
1: - struct frame_record *next_frame;
1: - long unsigned int size;
1: - long unsigned int limit;
1: - long unsigned int fpsimd_offset;
1: - long unsigned int esr_offset;
1: - long unsigned int sve_offset;
1: - long unsigned int extra_offset;
1: - long unsigned int end_offset;
1: + struct rt_sigframe *sigframe;
1: + struct frame_record *next_frame;
1: + long unsigned int size;
1: + long unsigned int limit;
1: + long unsigned int fpsimd_offset;
1: + long unsigned int esr_offset;
1: + long unsigned int sve_offset;
1: + long unsigned int extra_offset;
1: + long unsigned int end_offset;
1: };
1:
1: struct user_ctxs {
1: - struct fpsimd_context *fpsimd;
1: - struct sve_context *sve;
1: -};
1: -
1: -enum {
1: - PER_LINUX = 0,
1: - PER_LINUX_32BIT = 8388608,
1: - PER_LINUX_FDPIC = 524288,
1: - PER_SVR4 = 68157441,
1: - PER_SVR3 = 83886082,
1: - PER_SCOSVR3 = 117440515,
1: - PER_OSR5 = 100663299,
1: - PER_WYSEV386 = 83886084,
1: - PER_ISCR4 = 67108869,
1: - PER_BSD = 6,
1: - PER_SUNOS = 67108870,
1: - PER_XENIX = 83886087,
1: - PER_LINUX32 = 8,
1: - PER_LINUX32_3GB = 134217736,
1: - PER_IRIX32 = 67108873,
1: - PER_IRIXN32 = 67108874,
1: - PER_IRIX64 = 67108875,
1: - PER_RISCOS = 12,
1: - PER_SOLARIS = 67108877,
1: - PER_UW7 = 68157454,
1: - PER_OSF4 = 15,
1: - PER_HPUX = 16,
1: - PER_MASK = 255,
1: + struct fpsimd_context *fpsimd;
1: + struct sve_context *sve;
1: +};
1: +
1: +enum {
1: + PER_LINUX = 0,
1: + PER_LINUX_32BIT = 8388608,
1: + PER_LINUX_FDPIC = 524288,
1: + PER_SVR4 = 68157441,
1: + PER_SVR3 = 83886082,
1: + PER_SCOSVR3 = 117440515,
1: + PER_OSR5 = 100663299,
1: + PER_WYSEV386 = 83886084,
1: + PER_ISCR4 = 67108869,
1: + PER_BSD = 6,
1: + PER_SUNOS = 67108870,
1: + PER_XENIX = 83886087,
1: + PER_LINUX32 = 8,
1: + PER_LINUX32_3GB = 134217736,
1: + PER_IRIX32 = 67108873,
1: + PER_IRIXN32 = 67108874,
1: + PER_IRIX64 = 67108875,
1: + PER_RISCOS = 12,
1: + PER_SOLARIS = 67108877,
1: + PER_UW7 = 68157454,
1: + PER_OSF4 = 15,
1: + PER_HPUX = 16,
1: + PER_MASK = 255,
1: };
1:
1: typedef long int (*syscall_fn_t)(const struct pt_regs *);
1: @@ -14511,467 +14712,470 @@ typedef bool (*stack_trace_consume_fn)(void *, long unsigned int);
1: typedef bool pstate_check_t(long unsigned int);
1:
1: enum lockdep_ok {
1: - LOCKDEP_STILL_OK = 0,
1: - LOCKDEP_NOW_UNRELIABLE = 1,
1: + LOCKDEP_STILL_OK = 0,
1: + LOCKDEP_NOW_UNRELIABLE = 1,
1: };
1:
1: enum bug_trap_type {
1: - BUG_TRAP_TYPE_NONE = 0,
1: - BUG_TRAP_TYPE_WARN = 1,
1: - BUG_TRAP_TYPE_BUG = 2,
1: + BUG_TRAP_TYPE_NONE = 0,
1: + BUG_TRAP_TYPE_WARN = 1,
1: + BUG_TRAP_TYPE_BUG = 2,
1: };
1:
1: enum ftr_type {
1: - FTR_EXACT = 0,
1: - FTR_LOWER_SAFE = 1,
1: - FTR_HIGHER_SAFE = 2,
1: - FTR_HIGHER_OR_ZERO_SAFE = 3,
1: + FTR_EXACT = 0,
1: + FTR_LOWER_SAFE = 1,
1: + FTR_HIGHER_SAFE = 2,
1: + FTR_HIGHER_OR_ZERO_SAFE = 3,
1: };
1:
1: struct arm64_ftr_bits {
1: - bool sign;
1: - bool visible;
1: - bool strict;
1: - enum ftr_type type;
1: - u8 shift;
1: - u8 width;
1: - s64 safe_val;
1: + bool sign;
1: + bool visible;
1: + bool strict;
1: + enum ftr_type type;
1: + u8 shift;
1: + u8 width;
1: + s64 safe_val;
1: };
1:
1: struct arm64_ftr_reg {
1: - const char *name;
1: - u64 strict_mask;
1: - u64 user_mask;
1: - u64 sys_val;
1: - u64 user_val;
1: - const struct arm64_ftr_bits *ftr_bits;
1: + const char *name;
1: + u64 strict_mask;
1: + u64 user_mask;
1: + u64 sys_val;
1: + u64 user_val;
1: + const struct arm64_ftr_bits *ftr_bits;
1: };
1:
1: enum siginfo_layout {
1: - SIL_KILL = 0,
1: - SIL_TIMER = 1,
1: - SIL_POLL = 2,
1: - SIL_FAULT = 3,
1: - SIL_FAULT_MCEERR = 4,
1: - SIL_FAULT_BNDERR = 5,
1: - SIL_FAULT_PKUERR = 6,
1: - SIL_CHLD = 7,
1: - SIL_RT = 8,
1: - SIL_SYS = 9,
1: + SIL_KILL = 0,
1: + SIL_TIMER = 1,
1: + SIL_POLL = 2,
1: + SIL_FAULT = 3,
1: + SIL_FAULT_MCEERR = 4,
1: + SIL_FAULT_BNDERR = 5,
1: + SIL_FAULT_PKUERR = 6,
1: + SIL_CHLD = 7,
1: + SIL_RT = 8,
1: + SIL_SYS = 9,
1: };
1:
1: enum die_val {
1: - DIE_UNUSED = 0,
1: - DIE_OOPS = 1,
1: + DIE_UNUSED = 0,
1: + DIE_OOPS = 1,
1: };
1:
1: struct undef_hook {
1: - struct list_head node;
1: - u32 instr_mask;
1: - u32 instr_val;
1: - u64 pstate_mask;
1: - u64 pstate_val;
1: - int (*fn)(struct pt_regs *, u32);
1: + struct list_head node;
1: + u32 instr_mask;
1: + u32 instr_val;
1: + u64 pstate_mask;
1: + u64 pstate_val;
1: + int (*fn)(struct pt_regs *, u32);
1: };
1:
1: struct sys64_hook {
1: - unsigned int esr_mask;
1: - unsigned int esr_val;
1: - void (*handler)(unsigned int, struct pt_regs *);
1: + unsigned int esr_mask;
1: + unsigned int esr_val;
1: + void (*handler)(unsigned int, struct pt_regs *);
1: };
1:
1: struct timens_offset {
1: - s64 sec;
1: - u64 nsec;
1: + s64 sec;
1: + u64 nsec;
1: };
1:
1: enum vm_fault_reason {
1: - VM_FAULT_OOM = 1,
1: - VM_FAULT_SIGBUS = 2,
1: - VM_FAULT_MAJOR = 4,
1: - VM_FAULT_WRITE = 8,
1: - VM_FAULT_HWPOISON = 16,
1: - VM_FAULT_HWPOISON_LARGE = 32,
1: - VM_FAULT_SIGSEGV = 64,
1: - VM_FAULT_NOPAGE = 256,
1: - VM_FAULT_LOCKED = 512,
1: - VM_FAULT_RETRY = 1024,
1: - VM_FAULT_FALLBACK = 2048,
1: - VM_FAULT_DONE_COW = 4096,
1: - VM_FAULT_NEEDDSYNC = 8192,
1: - VM_FAULT_HINDEX_MASK = 983040,
1: + VM_FAULT_OOM = 1,
1: + VM_FAULT_SIGBUS = 2,
1: + VM_FAULT_MAJOR = 4,
1: + VM_FAULT_WRITE = 8,
1: + VM_FAULT_HWPOISON = 16,
1: + VM_FAULT_HWPOISON_LARGE = 32,
1: + VM_FAULT_SIGSEGV = 64,
1: + VM_FAULT_NOPAGE = 256,
1: + VM_FAULT_LOCKED = 512,
1: + VM_FAULT_RETRY = 1024,
1: + VM_FAULT_FALLBACK = 2048,
1: + VM_FAULT_DONE_COW = 4096,
1: + VM_FAULT_NEEDDSYNC = 8192,
1: + VM_FAULT_HINDEX_MASK = 983040,
1: };
1:
1: struct vm_special_mapping {
1: - const char *name;
1: - struct page **pages;
1: - vm_fault_t (*fault)(const struct vm_special_mapping *, struct vm_area_struct *, struct vm_fault *);
1: - int (*mremap)(const struct vm_special_mapping *, struct vm_area_struct *);
1: + const char *name;
1: + struct page **pages;
1: + vm_fault_t (*fault)(const struct vm_special_mapping *,
1: + struct vm_area_struct *, struct vm_fault *);
1: + int (*mremap)(const struct vm_special_mapping *, struct vm_area_struct *);
1: };
1:
1: struct timens_offsets {
1: - struct timespec64 monotonic;
1: - struct timespec64 boottime;
1: + struct timespec64 monotonic;
1: + struct timespec64 boottime;
1: };
1:
1: struct time_namespace {
1: - struct kref kref;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - struct ns_common ns;
1: - struct timens_offsets offsets;
1: - struct page *vvar_page;
1: - bool frozen_offsets;
1: + struct kref kref;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: + struct timens_offsets offsets;
1: + struct page *vvar_page;
1: + bool frozen_offsets;
1: };
1:
1: struct arch_vdso_data {};
1:
1: struct vdso_timestamp {
1: - u64 sec;
1: - u64 nsec;
1: + u64 sec;
1: + u64 nsec;
1: };
1:
1: struct vdso_data {
1: - u32 seq;
1: - s32 clock_mode;
1: - u64 cycle_last;
1: - u64 mask;
1: - u32 mult;
1: - u32 shift;
1: - union {
1: - struct vdso_timestamp basetime[12];
1: - struct timens_offset offset[12];
1: - };
1: - s32 tz_minuteswest;
1: - s32 tz_dsttime;
1: - u32 hrtimer_res;
1: - u32 __unused;
1: - struct arch_vdso_data arch_data;
1: + u32 seq;
1: + s32 clock_mode;
1: + u64 cycle_last;
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: + union {
1: + struct vdso_timestamp basetime[12];
1: + struct timens_offset offset[12];
1: + };
1: + s32 tz_minuteswest;
1: + s32 tz_dsttime;
1: + u32 hrtimer_res;
1: + u32 __unused;
1: + struct arch_vdso_data arch_data;
1: };
1:
1: enum vdso_abi {
1: - VDSO_ABI_AA64 = 0,
1: - VDSO_ABI_AA32 = 1,
1: + VDSO_ABI_AA64 = 0,
1: + VDSO_ABI_AA32 = 1,
1: };
1:
1: enum vvar_pages {
1: - VVAR_DATA_PAGE_OFFSET = 0,
1: - VVAR_TIMENS_PAGE_OFFSET = 1,
1: - VVAR_NR_PAGES = 2,
1: + VVAR_DATA_PAGE_OFFSET = 0,
1: + VVAR_TIMENS_PAGE_OFFSET = 1,
1: + VVAR_NR_PAGES = 2,
1: };
1:
1: struct vdso_abi_info {
1: - const char *name;
1: - const char *vdso_code_start;
1: - const char *vdso_code_end;
1: - long unsigned int vdso_pages;
1: - struct vm_special_mapping *dm;
1: - struct vm_special_mapping *cm;
1: + const char *name;
1: + const char *vdso_code_start;
1: + const char *vdso_code_end;
1: + long unsigned int vdso_pages;
1: + struct vm_special_mapping *dm;
1: + struct vm_special_mapping *cm;
1: };
1:
1: enum aarch32_map {
1: - AA32_MAP_VECTORS = 0,
1: - AA32_MAP_SIGPAGE = 1,
1: - AA32_MAP_VVAR = 2,
1: - AA32_MAP_VDSO = 3,
1: + AA32_MAP_VECTORS = 0,
1: + AA32_MAP_SIGPAGE = 1,
1: + AA32_MAP_VVAR = 2,
1: + AA32_MAP_VDSO = 3,
1: };
1:
1: enum aarch64_map {
1: - AA64_MAP_VVAR = 0,
1: - AA64_MAP_VDSO = 1,
1: + AA64_MAP_VVAR = 0,
1: + AA64_MAP_VDSO = 1,
1: };
1:
1: struct psci_operations {
1: - u32 (*get_version)();
1: - int (*cpu_suspend)(u32, long unsigned int);
1: - int (*cpu_off)(u32);
1: - int (*cpu_on)(long unsigned int, long unsigned int);
1: - int (*migrate)(long unsigned int);
1: - int (*affinity_info)(long unsigned int, long unsigned int);
1: - int (*migrate_info_type)();
1: + u32 (*get_version)();
1: + int (*cpu_suspend)(u32, long unsigned int);
1: + int (*cpu_off)(u32);
1: + int (*cpu_on)(long unsigned int, long unsigned int);
1: + int (*migrate)(long unsigned int);
1: + int (*affinity_info)(long unsigned int, long unsigned int);
1: + int (*migrate_info_type)();
1: };
1:
1: enum aarch64_insn_encoding_class {
1: - AARCH64_INSN_CLS_UNKNOWN = 0,
1: - AARCH64_INSN_CLS_DP_IMM = 1,
1: - AARCH64_INSN_CLS_DP_REG = 2,
1: - AARCH64_INSN_CLS_DP_FPSIMD = 3,
1: - AARCH64_INSN_CLS_LDST = 4,
1: - AARCH64_INSN_CLS_BR_SYS = 5,
1: + AARCH64_INSN_CLS_UNKNOWN = 0,
1: + AARCH64_INSN_CLS_DP_IMM = 1,
1: + AARCH64_INSN_CLS_DP_REG = 2,
1: + AARCH64_INSN_CLS_DP_FPSIMD = 3,
1: + AARCH64_INSN_CLS_LDST = 4,
1: + AARCH64_INSN_CLS_BR_SYS = 5,
1: };
1:
1: enum aarch64_insn_hint_cr_op {
1: - AARCH64_INSN_HINT_NOP = 0,
1: - AARCH64_INSN_HINT_YIELD = 32,
1: - AARCH64_INSN_HINT_WFE = 64,
1: - AARCH64_INSN_HINT_WFI = 96,
1: - AARCH64_INSN_HINT_SEV = 128,
1: - AARCH64_INSN_HINT_SEVL = 160,
1: - AARCH64_INSN_HINT_XPACLRI = 224,
1: - AARCH64_INSN_HINT_PACIA_1716 = 256,
1: - AARCH64_INSN_HINT_PACIB_1716 = 320,
1: - AARCH64_INSN_HINT_AUTIA_1716 = 384,
1: - AARCH64_INSN_HINT_AUTIB_1716 = 448,
1: - AARCH64_INSN_HINT_PACIAZ = 768,
1: - AARCH64_INSN_HINT_PACIASP = 800,
1: - AARCH64_INSN_HINT_PACIBZ = 832,
1: - AARCH64_INSN_HINT_PACIBSP = 864,
1: - AARCH64_INSN_HINT_AUTIAZ = 896,
1: - AARCH64_INSN_HINT_AUTIASP = 928,
1: - AARCH64_INSN_HINT_AUTIBZ = 960,
1: - AARCH64_INSN_HINT_AUTIBSP = 992,
1: - AARCH64_INSN_HINT_ESB = 512,
1: - AARCH64_INSN_HINT_PSB = 544,
1: - AARCH64_INSN_HINT_TSB = 576,
1: - AARCH64_INSN_HINT_CSDB = 640,
1: - AARCH64_INSN_HINT_BTI = 1024,
1: - AARCH64_INSN_HINT_BTIC = 1088,
1: - AARCH64_INSN_HINT_BTIJ = 1152,
1: - AARCH64_INSN_HINT_BTIJC = 1216,
1: + AARCH64_INSN_HINT_NOP = 0,
1: + AARCH64_INSN_HINT_YIELD = 32,
1: + AARCH64_INSN_HINT_WFE = 64,
1: + AARCH64_INSN_HINT_WFI = 96,
1: + AARCH64_INSN_HINT_SEV = 128,
1: + AARCH64_INSN_HINT_SEVL = 160,
1: + AARCH64_INSN_HINT_XPACLRI = 224,
1: + AARCH64_INSN_HINT_PACIA_1716 = 256,
1: + AARCH64_INSN_HINT_PACIB_1716 = 320,
1: + AARCH64_INSN_HINT_AUTIA_1716 = 384,
1: + AARCH64_INSN_HINT_AUTIB_1716 = 448,
1: + AARCH64_INSN_HINT_PACIAZ = 768,
1: + AARCH64_INSN_HINT_PACIASP = 800,
1: + AARCH64_INSN_HINT_PACIBZ = 832,
1: + AARCH64_INSN_HINT_PACIBSP = 864,
1: + AARCH64_INSN_HINT_AUTIAZ = 896,
1: + AARCH64_INSN_HINT_AUTIASP = 928,
1: + AARCH64_INSN_HINT_AUTIBZ = 960,
1: + AARCH64_INSN_HINT_AUTIBSP = 992,
1: + AARCH64_INSN_HINT_ESB = 512,
1: + AARCH64_INSN_HINT_PSB = 544,
1: + AARCH64_INSN_HINT_TSB = 576,
1: + AARCH64_INSN_HINT_CSDB = 640,
1: + AARCH64_INSN_HINT_BTI = 1024,
1: + AARCH64_INSN_HINT_BTIC = 1088,
1: + AARCH64_INSN_HINT_BTIJ = 1152,
1: + AARCH64_INSN_HINT_BTIJC = 1216,
1: };
1:
1: enum aarch64_insn_imm_type {
1: - AARCH64_INSN_IMM_ADR = 0,
1: - AARCH64_INSN_IMM_26 = 1,
1: - AARCH64_INSN_IMM_19 = 2,
1: - AARCH64_INSN_IMM_16 = 3,
1: - AARCH64_INSN_IMM_14 = 4,
1: - AARCH64_INSN_IMM_12 = 5,
1: - AARCH64_INSN_IMM_9 = 6,
1: - AARCH64_INSN_IMM_7 = 7,
1: - AARCH64_INSN_IMM_6 = 8,
1: - AARCH64_INSN_IMM_S = 9,
1: - AARCH64_INSN_IMM_R = 10,
1: - AARCH64_INSN_IMM_N = 11,
1: - AARCH64_INSN_IMM_MAX = 12,
1: + AARCH64_INSN_IMM_ADR = 0,
1: + AARCH64_INSN_IMM_26 = 1,
1: + AARCH64_INSN_IMM_19 = 2,
1: + AARCH64_INSN_IMM_16 = 3,
1: + AARCH64_INSN_IMM_14 = 4,
1: + AARCH64_INSN_IMM_12 = 5,
1: + AARCH64_INSN_IMM_9 = 6,
1: + AARCH64_INSN_IMM_7 = 7,
1: + AARCH64_INSN_IMM_6 = 8,
1: + AARCH64_INSN_IMM_S = 9,
1: + AARCH64_INSN_IMM_R = 10,
1: + AARCH64_INSN_IMM_N = 11,
1: + AARCH64_INSN_IMM_MAX = 12,
1: };
1:
1: enum aarch64_insn_register_type {
1: - AARCH64_INSN_REGTYPE_RT = 0,
1: - AARCH64_INSN_REGTYPE_RN = 1,
1: - AARCH64_INSN_REGTYPE_RT2 = 2,
1: - AARCH64_INSN_REGTYPE_RM = 3,
1: - AARCH64_INSN_REGTYPE_RD = 4,
1: - AARCH64_INSN_REGTYPE_RA = 5,
1: - AARCH64_INSN_REGTYPE_RS = 6,
1: + AARCH64_INSN_REGTYPE_RT = 0,
1: + AARCH64_INSN_REGTYPE_RN = 1,
1: + AARCH64_INSN_REGTYPE_RT2 = 2,
1: + AARCH64_INSN_REGTYPE_RM = 3,
1: + AARCH64_INSN_REGTYPE_RD = 4,
1: + AARCH64_INSN_REGTYPE_RA = 5,
1: + AARCH64_INSN_REGTYPE_RS = 6,
1: };
1:
1: enum aarch64_insn_register {
1: - AARCH64_INSN_REG_0 = 0,
1: - AARCH64_INSN_REG_1 = 1,
1: - AARCH64_INSN_REG_2 = 2,
1: - AARCH64_INSN_REG_3 = 3,
1: - AARCH64_INSN_REG_4 = 4,
1: - AARCH64_INSN_REG_5 = 5,
1: - AARCH64_INSN_REG_6 = 6,
1: - AARCH64_INSN_REG_7 = 7,
1: - AARCH64_INSN_REG_8 = 8,
1: - AARCH64_INSN_REG_9 = 9,
1: - AARCH64_INSN_REG_10 = 10,
1: - AARCH64_INSN_REG_11 = 11,
1: - AARCH64_INSN_REG_12 = 12,
1: - AARCH64_INSN_REG_13 = 13,
1: - AARCH64_INSN_REG_14 = 14,
1: - AARCH64_INSN_REG_15 = 15,
1: - AARCH64_INSN_REG_16 = 16,
1: - AARCH64_INSN_REG_17 = 17,
1: - AARCH64_INSN_REG_18 = 18,
1: - AARCH64_INSN_REG_19 = 19,
1: - AARCH64_INSN_REG_20 = 20,
1: - AARCH64_INSN_REG_21 = 21,
1: - AARCH64_INSN_REG_22 = 22,
1: - AARCH64_INSN_REG_23 = 23,
1: - AARCH64_INSN_REG_24 = 24,
1: - AARCH64_INSN_REG_25 = 25,
1: - AARCH64_INSN_REG_26 = 26,
1: - AARCH64_INSN_REG_27 = 27,
1: - AARCH64_INSN_REG_28 = 28,
1: - AARCH64_INSN_REG_29 = 29,
1: - AARCH64_INSN_REG_FP = 29,
1: - AARCH64_INSN_REG_30 = 30,
1: - AARCH64_INSN_REG_LR = 30,
1: - AARCH64_INSN_REG_ZR = 31,
1: - AARCH64_INSN_REG_SP = 31,
1: + AARCH64_INSN_REG_0 = 0,
1: + AARCH64_INSN_REG_1 = 1,
1: + AARCH64_INSN_REG_2 = 2,
1: + AARCH64_INSN_REG_3 = 3,
1: + AARCH64_INSN_REG_4 = 4,
1: + AARCH64_INSN_REG_5 = 5,
1: + AARCH64_INSN_REG_6 = 6,
1: + AARCH64_INSN_REG_7 = 7,
1: + AARCH64_INSN_REG_8 = 8,
1: + AARCH64_INSN_REG_9 = 9,
1: + AARCH64_INSN_REG_10 = 10,
1: + AARCH64_INSN_REG_11 = 11,
1: + AARCH64_INSN_REG_12 = 12,
1: + AARCH64_INSN_REG_13 = 13,
1: + AARCH64_INSN_REG_14 = 14,
1: + AARCH64_INSN_REG_15 = 15,
1: + AARCH64_INSN_REG_16 = 16,
1: + AARCH64_INSN_REG_17 = 17,
1: + AARCH64_INSN_REG_18 = 18,
1: + AARCH64_INSN_REG_19 = 19,
1: + AARCH64_INSN_REG_20 = 20,
1: + AARCH64_INSN_REG_21 = 21,
1: + AARCH64_INSN_REG_22 = 22,
1: + AARCH64_INSN_REG_23 = 23,
1: + AARCH64_INSN_REG_24 = 24,
1: + AARCH64_INSN_REG_25 = 25,
1: + AARCH64_INSN_REG_26 = 26,
1: + AARCH64_INSN_REG_27 = 27,
1: + AARCH64_INSN_REG_28 = 28,
1: + AARCH64_INSN_REG_29 = 29,
1: + AARCH64_INSN_REG_FP = 29,
1: + AARCH64_INSN_REG_30 = 30,
1: + AARCH64_INSN_REG_LR = 30,
1: + AARCH64_INSN_REG_ZR = 31,
1: + AARCH64_INSN_REG_SP = 31,
1: };
1:
1: enum aarch64_insn_variant {
1: - AARCH64_INSN_VARIANT_32BIT = 0,
1: - AARCH64_INSN_VARIANT_64BIT = 1,
1: + AARCH64_INSN_VARIANT_32BIT = 0,
1: + AARCH64_INSN_VARIANT_64BIT = 1,
1: };
1:
1: enum aarch64_insn_condition {
1: - AARCH64_INSN_COND_EQ = 0,
1: - AARCH64_INSN_COND_NE = 1,
1: - AARCH64_INSN_COND_CS = 2,
1: - AARCH64_INSN_COND_CC = 3,
1: - AARCH64_INSN_COND_MI = 4,
1: - AARCH64_INSN_COND_PL = 5,
1: - AARCH64_INSN_COND_VS = 6,
1: - AARCH64_INSN_COND_VC = 7,
1: - AARCH64_INSN_COND_HI = 8,
1: - AARCH64_INSN_COND_LS = 9,
1: - AARCH64_INSN_COND_GE = 10,
1: - AARCH64_INSN_COND_LT = 11,
1: - AARCH64_INSN_COND_GT = 12,
1: - AARCH64_INSN_COND_LE = 13,
1: - AARCH64_INSN_COND_AL = 14,
1: + AARCH64_INSN_COND_EQ = 0,
1: + AARCH64_INSN_COND_NE = 1,
1: + AARCH64_INSN_COND_CS = 2,
1: + AARCH64_INSN_COND_CC = 3,
1: + AARCH64_INSN_COND_MI = 4,
1: + AARCH64_INSN_COND_PL = 5,
1: + AARCH64_INSN_COND_VS = 6,
1: + AARCH64_INSN_COND_VC = 7,
1: + AARCH64_INSN_COND_HI = 8,
1: + AARCH64_INSN_COND_LS = 9,
1: + AARCH64_INSN_COND_GE = 10,
1: + AARCH64_INSN_COND_LT = 11,
1: + AARCH64_INSN_COND_GT = 12,
1: + AARCH64_INSN_COND_LE = 13,
1: + AARCH64_INSN_COND_AL = 14,
1: };
1:
1: enum aarch64_insn_branch_type {
1: - AARCH64_INSN_BRANCH_NOLINK = 0,
1: - AARCH64_INSN_BRANCH_LINK = 1,
1: - AARCH64_INSN_BRANCH_RETURN = 2,
1: - AARCH64_INSN_BRANCH_COMP_ZERO = 3,
1: - AARCH64_INSN_BRANCH_COMP_NONZERO = 4,
1: + AARCH64_INSN_BRANCH_NOLINK = 0,
1: + AARCH64_INSN_BRANCH_LINK = 1,
1: + AARCH64_INSN_BRANCH_RETURN = 2,
1: + AARCH64_INSN_BRANCH_COMP_ZERO = 3,
1: + AARCH64_INSN_BRANCH_COMP_NONZERO = 4,
1: };
1:
1: enum aarch64_insn_size_type {
1: - AARCH64_INSN_SIZE_8 = 0,
1: - AARCH64_INSN_SIZE_16 = 1,
1: - AARCH64_INSN_SIZE_32 = 2,
1: - AARCH64_INSN_SIZE_64 = 3,
1: + AARCH64_INSN_SIZE_8 = 0,
1: + AARCH64_INSN_SIZE_16 = 1,
1: + AARCH64_INSN_SIZE_32 = 2,
1: + AARCH64_INSN_SIZE_64 = 3,
1: };
1:
1: enum aarch64_insn_ldst_type {
1: - AARCH64_INSN_LDST_LOAD_REG_OFFSET = 0,
1: - AARCH64_INSN_LDST_STORE_REG_OFFSET = 1,
1: - AARCH64_INSN_LDST_LOAD_PAIR_PRE_INDEX = 2,
1: - AARCH64_INSN_LDST_STORE_PAIR_PRE_INDEX = 3,
1: - AARCH64_INSN_LDST_LOAD_PAIR_POST_INDEX = 4,
1: - AARCH64_INSN_LDST_STORE_PAIR_POST_INDEX = 5,
1: - AARCH64_INSN_LDST_LOAD_EX = 6,
1: - AARCH64_INSN_LDST_STORE_EX = 7,
1: + AARCH64_INSN_LDST_LOAD_REG_OFFSET = 0,
1: + AARCH64_INSN_LDST_STORE_REG_OFFSET = 1,
1: + AARCH64_INSN_LDST_LOAD_PAIR_PRE_INDEX = 2,
1: + AARCH64_INSN_LDST_STORE_PAIR_PRE_INDEX = 3,
1: + AARCH64_INSN_LDST_LOAD_PAIR_POST_INDEX = 4,
1: + AARCH64_INSN_LDST_STORE_PAIR_POST_INDEX = 5,
1: + AARCH64_INSN_LDST_LOAD_EX = 6,
1: + AARCH64_INSN_LDST_STORE_EX = 7,
1: };
1:
1: enum aarch64_insn_adsb_type {
1: - AARCH64_INSN_ADSB_ADD = 0,
1: - AARCH64_INSN_ADSB_SUB = 1,
1: - AARCH64_INSN_ADSB_ADD_SETFLAGS = 2,
1: - AARCH64_INSN_ADSB_SUB_SETFLAGS = 3,
1: + AARCH64_INSN_ADSB_ADD = 0,
1: + AARCH64_INSN_ADSB_SUB = 1,
1: + AARCH64_INSN_ADSB_ADD_SETFLAGS = 2,
1: + AARCH64_INSN_ADSB_SUB_SETFLAGS = 3,
1: };
1:
1: enum aarch64_insn_movewide_type {
1: - AARCH64_INSN_MOVEWIDE_ZERO = 0,
1: - AARCH64_INSN_MOVEWIDE_KEEP = 1,
1: - AARCH64_INSN_MOVEWIDE_INVERSE = 2,
1: + AARCH64_INSN_MOVEWIDE_ZERO = 0,
1: + AARCH64_INSN_MOVEWIDE_KEEP = 1,
1: + AARCH64_INSN_MOVEWIDE_INVERSE = 2,
1: };
1:
1: enum aarch64_insn_bitfield_type {
1: - AARCH64_INSN_BITFIELD_MOVE = 0,
1: - AARCH64_INSN_BITFIELD_MOVE_UNSIGNED = 1,
1: - AARCH64_INSN_BITFIELD_MOVE_SIGNED = 2,
1: + AARCH64_INSN_BITFIELD_MOVE = 0,
1: + AARCH64_INSN_BITFIELD_MOVE_UNSIGNED = 1,
1: + AARCH64_INSN_BITFIELD_MOVE_SIGNED = 2,
1: };
1:
1: enum aarch64_insn_data1_type {
1: - AARCH64_INSN_DATA1_REVERSE_16 = 0,
1: - AARCH64_INSN_DATA1_REVERSE_32 = 1,
1: - AARCH64_INSN_DATA1_REVERSE_64 = 2,
1: + AARCH64_INSN_DATA1_REVERSE_16 = 0,
1: + AARCH64_INSN_DATA1_REVERSE_32 = 1,
1: + AARCH64_INSN_DATA1_REVERSE_64 = 2,
1: };
1:
1: enum aarch64_insn_data2_type {
1: - AARCH64_INSN_DATA2_UDIV = 0,
1: - AARCH64_INSN_DATA2_SDIV = 1,
1: - AARCH64_INSN_DATA2_LSLV = 2,
1: - AARCH64_INSN_DATA2_LSRV = 3,
1: - AARCH64_INSN_DATA2_ASRV = 4,
1: - AARCH64_INSN_DATA2_RORV = 5,
1: + AARCH64_INSN_DATA2_UDIV = 0,
1: + AARCH64_INSN_DATA2_SDIV = 1,
1: + AARCH64_INSN_DATA2_LSLV = 2,
1: + AARCH64_INSN_DATA2_LSRV = 3,
1: + AARCH64_INSN_DATA2_ASRV = 4,
1: + AARCH64_INSN_DATA2_RORV = 5,
1: };
1:
1: enum aarch64_insn_data3_type {
1: - AARCH64_INSN_DATA3_MADD = 0,
1: - AARCH64_INSN_DATA3_MSUB = 1,
1: + AARCH64_INSN_DATA3_MADD = 0,
1: + AARCH64_INSN_DATA3_MSUB = 1,
1: };
1:
1: enum aarch64_insn_logic_type {
1: - AARCH64_INSN_LOGIC_AND = 0,
1: - AARCH64_INSN_LOGIC_BIC = 1,
1: - AARCH64_INSN_LOGIC_ORR = 2,
1: - AARCH64_INSN_LOGIC_ORN = 3,
1: - AARCH64_INSN_LOGIC_EOR = 4,
1: - AARCH64_INSN_LOGIC_EON = 5,
1: - AARCH64_INSN_LOGIC_AND_SETFLAGS = 6,
1: - AARCH64_INSN_LOGIC_BIC_SETFLAGS = 7,
1: + AARCH64_INSN_LOGIC_AND = 0,
1: + AARCH64_INSN_LOGIC_BIC = 1,
1: + AARCH64_INSN_LOGIC_ORR = 2,
1: + AARCH64_INSN_LOGIC_ORN = 3,
1: + AARCH64_INSN_LOGIC_EOR = 4,
1: + AARCH64_INSN_LOGIC_EON = 5,
1: + AARCH64_INSN_LOGIC_AND_SETFLAGS = 6,
1: + AARCH64_INSN_LOGIC_BIC_SETFLAGS = 7,
1: };
1:
1: enum aarch64_insn_prfm_type {
1: - AARCH64_INSN_PRFM_TYPE_PLD = 0,
1: - AARCH64_INSN_PRFM_TYPE_PLI = 1,
1: - AARCH64_INSN_PRFM_TYPE_PST = 2,
1: + AARCH64_INSN_PRFM_TYPE_PLD = 0,
1: + AARCH64_INSN_PRFM_TYPE_PLI = 1,
1: + AARCH64_INSN_PRFM_TYPE_PST = 2,
1: };
1:
1: enum aarch64_insn_prfm_target {
1: - AARCH64_INSN_PRFM_TARGET_L1 = 0,
1: - AARCH64_INSN_PRFM_TARGET_L2 = 1,
1: - AARCH64_INSN_PRFM_TARGET_L3 = 2,
1: + AARCH64_INSN_PRFM_TARGET_L1 = 0,
1: + AARCH64_INSN_PRFM_TARGET_L2 = 1,
1: + AARCH64_INSN_PRFM_TARGET_L3 = 2,
1: };
1:
1: enum aarch64_insn_prfm_policy {
1: - AARCH64_INSN_PRFM_POLICY_KEEP = 0,
1: - AARCH64_INSN_PRFM_POLICY_STRM = 1,
1: + AARCH64_INSN_PRFM_POLICY_KEEP = 0,
1: + AARCH64_INSN_PRFM_POLICY_STRM = 1,
1: };
1:
1: enum aarch64_insn_adr_type {
1: - AARCH64_INSN_ADR_TYPE_ADRP = 0,
1: - AARCH64_INSN_ADR_TYPE_ADR = 1,
1: + AARCH64_INSN_ADR_TYPE_ADRP = 0,
1: + AARCH64_INSN_ADR_TYPE_ADR = 1,
1: };
1:
1: enum fixed_addresses {
1: - FIX_HOLE = 0,
1: - FIX_FDT_END = 1,
1: - FIX_FDT = 1024,
1: - FIX_EARLYCON_MEM_BASE = 1025,
1: - FIX_TEXT_POKE0 = 1026,
1: - FIX_ENTRY_TRAMP_DATA = 1027,
1: - FIX_ENTRY_TRAMP_TEXT = 1028,
1: - __end_of_permanent_fixed_addresses = 1029,
1: - FIX_BTMAP_END = 1029,
1: - FIX_BTMAP_BEGIN = 1476,
1: - FIX_PTE = 1477,
1: - FIX_PMD = 1478,
1: - FIX_PUD = 1479,
1: - FIX_PGD = 1480,
1: - __end_of_fixed_addresses = 1481,
1: + FIX_HOLE = 0,
1: + FIX_FDT_END = 1,
1: + FIX_FDT = 1024,
1: + FIX_EARLYCON_MEM_BASE = 1025,
1: + FIX_TEXT_POKE0 = 1026,
1: + FIX_ENTRY_TRAMP_DATA = 1027,
1: + FIX_ENTRY_TRAMP_TEXT = 1028,
1: + __end_of_permanent_fixed_addresses = 1029,
1: + FIX_BTMAP_END = 1029,
1: + FIX_BTMAP_BEGIN = 1476,
1: + FIX_PTE = 1477,
1: + FIX_PMD = 1478,
1: + FIX_PUD = 1479,
1: + FIX_PGD = 1480,
1: + __end_of_fixed_addresses = 1481,
1: };
1:
1: struct aarch64_insn_patch {
1: - void **text_addrs;
1: - u32 *new_insns;
1: - int insn_cnt;
1: - atomic_t cpu_count;
1: + void **text_addrs;
1: + u32 *new_insns;
1: + int insn_cnt;
1: + atomic_t cpu_count;
1: };
1:
1: struct return_address_data {
1: - unsigned int level;
1: - void *addr;
1: + unsigned int level;
1: + void *addr;
1: };
1:
1: struct kobj_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct kobject *, struct kobj_attribute *, char *);
1: - ssize_t (*store)(struct kobject *, struct kobj_attribute *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct kobj_attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct kobj_attribute *, const char *,
1: + size_t);
1: };
1:
1: enum {
1: - CAP_HWCAP = 1,
1: - CAP_COMPAT_HWCAP = 2,
1: - CAP_COMPAT_HWCAP2 = 3,
1: + CAP_HWCAP = 1,
1: + CAP_COMPAT_HWCAP = 2,
1: + CAP_COMPAT_HWCAP2 = 3,
1: };
1:
1: struct secondary_data {
1: - void *stack;
1: - struct task_struct *task;
1: - long int status;
1: + void *stack;
1: + struct task_struct *task;
1: + long int status;
1: };
1:
1: struct device_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct device *, struct device_attribute *, char *);
1: - ssize_t (*store)(struct device *, struct device_attribute *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct device *, struct device_attribute *, char *);
1: + ssize_t (*store)(struct device *, struct device_attribute *, const char *,
1: + size_t);
1: };
1:
1: struct __ftr_reg_entry {
1: - u32 sys_id;
1: - struct arm64_ftr_reg *reg;
1: + u32 sys_id;
1: + struct arm64_ftr_reg *reg;
1: };
1:
1: typedef void kpti_remap_fn(int, int, phys_addr_t);
1: @@ -14979,49 +15183,49 @@ typedef void kpti_remap_fn(int, int, phys_addr_t);
1: typedef void ttbr_replace_func(phys_addr_t);
1:
1: struct alt_instr {
1: - s32 orig_offset;
1: - s32 alt_offset;
1: - u16 cpufeature;
1: - u8 orig_len;
1: - u8 alt_len;
1: + s32 orig_offset;
1: + s32 alt_offset;
1: + u16 cpufeature;
1: + u8 orig_len;
1: + u8 alt_len;
1: };
1:
1: typedef void (*alternative_cb_t)(struct alt_instr *, __le32 *, __le32 *, int);
1:
1: struct alt_region {
1: - struct alt_instr *begin;
1: - struct alt_instr *end;
1: + struct alt_instr *begin;
1: + struct alt_instr *end;
1: };
1:
1: enum cache_type {
1: - CACHE_TYPE_NOCACHE = 0,
1: - CACHE_TYPE_INST = 1,
1: - CACHE_TYPE_DATA = 2,
1: - CACHE_TYPE_SEPARATE = 3,
1: - CACHE_TYPE_UNIFIED = 4,
1: + CACHE_TYPE_NOCACHE = 0,
1: + CACHE_TYPE_INST = 1,
1: + CACHE_TYPE_DATA = 2,
1: + CACHE_TYPE_SEPARATE = 3,
1: + CACHE_TYPE_UNIFIED = 4,
1: };
1:
1: struct cacheinfo {
1: - unsigned int id;
1: - enum cache_type type;
1: - unsigned int level;
1: - unsigned int coherency_line_size;
1: - unsigned int number_of_sets;
1: - unsigned int ways_of_associativity;
1: - unsigned int physical_line_partition;
1: - unsigned int size;
1: - cpumask_t shared_cpu_map;
1: - unsigned int attributes;
1: - void *fw_token;
1: - bool disable_sysfs;
1: - void *priv;
1: + unsigned int id;
1: + enum cache_type type;
1: + unsigned int level;
1: + unsigned int coherency_line_size;
1: + unsigned int number_of_sets;
1: + unsigned int ways_of_associativity;
1: + unsigned int physical_line_partition;
1: + unsigned int size;
1: + cpumask_t shared_cpu_map;
1: + unsigned int attributes;
1: + void *fw_token;
1: + bool disable_sysfs;
1: + void *priv;
1: };
1:
1: struct cpu_cacheinfo {
1: - struct cacheinfo *info_list;
1: - unsigned int num_levels;
1: - unsigned int num_leaves;
1: - bool cpu_map_populated;
1: + struct cacheinfo *info_list;
1: + unsigned int num_levels;
1: + unsigned int num_leaves;
1: + bool cpu_map_populated;
1: };
1:
1: struct irq_desc;
1: @@ -15031,26 +15235,26 @@ typedef void (*irq_flow_handler_t)(struct irq_desc *);
1: struct msi_desc;
1:
1: struct irq_common_data {
1: - unsigned int state_use_accessors;
1: - unsigned int node;
1: - void *handler_data;
1: - struct msi_desc *msi_desc;
1: - cpumask_var_t affinity;
1: - cpumask_var_t effective_affinity;
1: - unsigned int ipi_offset;
1: + unsigned int state_use_accessors;
1: + unsigned int node;
1: + void *handler_data;
1: + struct msi_desc *msi_desc;
1: + cpumask_var_t affinity;
1: + cpumask_var_t effective_affinity;
1: + unsigned int ipi_offset;
1: };
1:
1: struct irq_chip;
1:
1: struct irq_data {
1: - u32 mask;
1: - unsigned int irq;
1: - long unsigned int hwirq;
1: - struct irq_common_data *common;
1: - struct irq_chip *chip;
1: - struct irq_domain *domain;
1: - struct irq_data *parent_data;
1: - void *chip_data;
1: + u32 mask;
1: + unsigned int irq;
1: + long unsigned int hwirq;
1: + struct irq_common_data *common;
1: + struct irq_chip *chip;
1: + struct irq_domain *domain;
1: + struct irq_data *parent_data;
1: + void *chip_data;
1: };
1:
1: struct irqaction;
1: @@ -15058,119 +15262,119 @@ struct irqaction;
1: struct irq_affinity_notify;
1:
1: struct irq_desc {
1: - struct irq_common_data irq_common_data;
1: - struct irq_data irq_data;
1: - unsigned int *kstat_irqs;
1: - irq_flow_handler_t handle_irq;
1: - struct irqaction *action;
1: - unsigned int status_use_accessors;
1: - unsigned int core_internal_state__do_not_mess_with_it;
1: - unsigned int depth;
1: - unsigned int wake_depth;
1: - unsigned int tot_count;
1: - unsigned int irq_count;
1: - long unsigned int last_unhandled;
1: - unsigned int irqs_unhandled;
1: - atomic_t threads_handled;
1: - int threads_handled_last;
1: - raw_spinlock_t lock;
1: - struct cpumask *percpu_enabled;
1: - const struct cpumask *percpu_affinity;
1: - const struct cpumask *affinity_hint;
1: - struct irq_affinity_notify *affinity_notify;
1: - long unsigned int threads_oneshot;
1: - atomic_t threads_active;
1: - wait_queue_head_t wait_for_threads;
1: - unsigned int nr_actions;
1: - unsigned int no_suspend_depth;
1: - unsigned int cond_suspend_depth;
1: - unsigned int force_resume_depth;
1: - struct proc_dir_entry *dir;
1: - struct callback_head rcu;
1: - struct kobject kobj;
1: - struct mutex request_mutex;
1: - int parent_irq;
1: - struct module *owner;
1: - const char *name;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct irq_common_data irq_common_data;
1: + struct irq_data irq_data;
1: + unsigned int *kstat_irqs;
1: + irq_flow_handler_t handle_irq;
1: + struct irqaction *action;
1: + unsigned int status_use_accessors;
1: + unsigned int core_internal_state__do_not_mess_with_it;
1: + unsigned int depth;
1: + unsigned int wake_depth;
1: + unsigned int tot_count;
1: + unsigned int irq_count;
1: + long unsigned int last_unhandled;
1: + unsigned int irqs_unhandled;
1: + atomic_t threads_handled;
1: + int threads_handled_last;
1: + raw_spinlock_t lock;
1: + struct cpumask *percpu_enabled;
1: + const struct cpumask *percpu_affinity;
1: + const struct cpumask *affinity_hint;
1: + struct irq_affinity_notify *affinity_notify;
1: + long unsigned int threads_oneshot;
1: + atomic_t threads_active;
1: + wait_queue_head_t wait_for_threads;
1: + unsigned int nr_actions;
1: + unsigned int no_suspend_depth;
1: + unsigned int cond_suspend_depth;
1: + unsigned int force_resume_depth;
1: + struct proc_dir_entry *dir;
1: + struct callback_head rcu;
1: + struct kobject kobj;
1: + struct mutex request_mutex;
1: + int parent_irq;
1: + struct module *owner;
1: + const char *name;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum irq_gc_flags {
1: - IRQ_GC_INIT_MASK_CACHE = 1,
1: - IRQ_GC_INIT_NESTED_LOCK = 2,
1: - IRQ_GC_MASK_CACHE_PER_TYPE = 4,
1: - IRQ_GC_NO_MASK = 8,
1: - IRQ_GC_BE_IO = 16,
1: + IRQ_GC_INIT_MASK_CACHE = 1,
1: + IRQ_GC_INIT_NESTED_LOCK = 2,
1: + IRQ_GC_MASK_CACHE_PER_TYPE = 4,
1: + IRQ_GC_NO_MASK = 8,
1: + IRQ_GC_BE_IO = 16,
1: };
1:
1: struct irq_chip_generic;
1:
1: struct irq_domain_chip_generic {
1: - unsigned int irqs_per_chip;
1: - unsigned int num_chips;
1: - unsigned int irq_flags_to_clear;
1: - unsigned int irq_flags_to_set;
1: - enum irq_gc_flags gc_flags;
1: - struct irq_chip_generic *gc[0];
1: + unsigned int irqs_per_chip;
1: + unsigned int num_chips;
1: + unsigned int irq_flags_to_clear;
1: + unsigned int irq_flags_to_set;
1: + enum irq_gc_flags gc_flags;
1: + struct irq_chip_generic *gc[0];
1: };
1:
1: struct acpi_subtable_header {
1: - u8 type;
1: - u8 length;
1: + u8 type;
1: + u8 length;
1: };
1:
1: struct acpi_hmat_structure {
1: - u16 type;
1: - u16 reserved;
1: - u32 length;
1: + u16 type;
1: + u16 reserved;
1: + u32 length;
1: };
1:
1: enum acpi_madt_type {
1: - ACPI_MADT_TYPE_LOCAL_APIC = 0,
1: - ACPI_MADT_TYPE_IO_APIC = 1,
1: - ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
1: - ACPI_MADT_TYPE_NMI_SOURCE = 3,
1: - ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
1: - ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
1: - ACPI_MADT_TYPE_IO_SAPIC = 6,
1: - ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
1: - ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
1: - ACPI_MADT_TYPE_LOCAL_X2APIC = 9,
1: - ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10,
1: - ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11,
1: - ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12,
1: - ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13,
1: - ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14,
1: - ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15,
1: - ACPI_MADT_TYPE_RESERVED = 16,
1: + ACPI_MADT_TYPE_LOCAL_APIC = 0,
1: + ACPI_MADT_TYPE_IO_APIC = 1,
1: + ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
1: + ACPI_MADT_TYPE_NMI_SOURCE = 3,
1: + ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
1: + ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
1: + ACPI_MADT_TYPE_IO_SAPIC = 6,
1: + ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
1: + ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
1: + ACPI_MADT_TYPE_LOCAL_X2APIC = 9,
1: + ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10,
1: + ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11,
1: + ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12,
1: + ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13,
1: + ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14,
1: + ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15,
1: + ACPI_MADT_TYPE_RESERVED = 16,
1: };
1:
1: struct acpi_madt_generic_interrupt {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 cpu_interface_number;
1: - u32 uid;
1: - u32 flags;
1: - u32 parking_version;
1: - u32 performance_interrupt;
1: - u64 parked_address;
1: - u64 base_address;
1: - u64 gicv_base_address;
1: - u64 gich_base_address;
1: - u32 vgic_interrupt;
1: - u64 gicr_base_address;
1: - u64 arm_mpidr;
1: - u8 efficiency_class;
1: - u8 reserved2[1];
1: - u16 spe_interrupt;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 cpu_interface_number;
1: + u32 uid;
1: + u32 flags;
1: + u32 parking_version;
1: + u32 performance_interrupt;
1: + u64 parked_address;
1: + u64 base_address;
1: + u64 gicv_base_address;
1: + u64 gich_base_address;
1: + u32 vgic_interrupt;
1: + u64 gicr_base_address;
1: + u64 arm_mpidr;
1: + u8 efficiency_class;
1: + u8 reserved2[1];
1: + u16 spe_interrupt;
1: } __attribute__((packed));
1:
1: enum irqreturn {
1: - IRQ_NONE = 0,
1: - IRQ_HANDLED = 1,
1: - IRQ_WAKE_THREAD = 2,
1: + IRQ_NONE = 0,
1: + IRQ_HANDLED = 1,
1: + IRQ_WAKE_THREAD = 2,
1: };
1:
1: typedef enum irqreturn irqreturn_t;
1: @@ -15178,341 +15382,343 @@ typedef enum irqreturn irqreturn_t;
1: typedef irqreturn_t (*irq_handler_t)(int, void *);
1:
1: struct irqaction {
1: - irq_handler_t handler;
1: - void *dev_id;
1: - void *percpu_dev_id;
1: - struct irqaction *next;
1: - irq_handler_t thread_fn;
1: - struct task_struct *thread;
1: - struct irqaction *secondary;
1: - unsigned int irq;
1: - unsigned int flags;
1: - long unsigned int thread_flags;
1: - long unsigned int thread_mask;
1: - const char *name;
1: - struct proc_dir_entry *dir;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + irq_handler_t handler;
1: + void *dev_id;
1: + void *percpu_dev_id;
1: + struct irqaction *next;
1: + irq_handler_t thread_fn;
1: + struct task_struct *thread;
1: + struct irqaction *secondary;
1: + unsigned int irq;
1: + unsigned int flags;
1: + long unsigned int thread_flags;
1: + long unsigned int thread_mask;
1: + const char *name;
1: + struct proc_dir_entry *dir;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct irq_affinity_notify {
1: - unsigned int irq;
1: - struct kref kref;
1: - struct work_struct work;
1: - void (*notify)(struct irq_affinity_notify *, const cpumask_t *);
1: - void (*release)(struct kref *);
1: + unsigned int irq;
1: + struct kref kref;
1: + struct work_struct work;
1: + void (*notify)(struct irq_affinity_notify *, const cpumask_t *);
1: + void (*release)(struct kref *);
1: };
1:
1: struct irq_affinity_desc {
1: - struct cpumask mask;
1: - unsigned int is_managed: 1;
1: + struct cpumask mask;
1: + unsigned int is_managed : 1;
1: };
1:
1: enum irqchip_irq_state {
1: - IRQCHIP_STATE_PENDING = 0,
1: - IRQCHIP_STATE_ACTIVE = 1,
1: - IRQCHIP_STATE_MASKED = 2,
1: - IRQCHIP_STATE_LINE_LEVEL = 3,
1: + IRQCHIP_STATE_PENDING = 0,
1: + IRQCHIP_STATE_ACTIVE = 1,
1: + IRQCHIP_STATE_MASKED = 2,
1: + IRQCHIP_STATE_LINE_LEVEL = 3,
1: };
1:
1: union acpi_subtable_headers {
1: - struct acpi_subtable_header common;
1: - struct acpi_hmat_structure hmat;
1: -};
1: -
1: -enum {
1: - IRQ_TYPE_NONE = 0,
1: - IRQ_TYPE_EDGE_RISING = 1,
1: - IRQ_TYPE_EDGE_FALLING = 2,
1: - IRQ_TYPE_EDGE_BOTH = 3,
1: - IRQ_TYPE_LEVEL_HIGH = 4,
1: - IRQ_TYPE_LEVEL_LOW = 8,
1: - IRQ_TYPE_LEVEL_MASK = 12,
1: - IRQ_TYPE_SENSE_MASK = 15,
1: - IRQ_TYPE_DEFAULT = 15,
1: - IRQ_TYPE_PROBE = 16,
1: - IRQ_LEVEL = 256,
1: - IRQ_PER_CPU = 512,
1: - IRQ_NOPROBE = 1024,
1: - IRQ_NOREQUEST = 2048,
1: - IRQ_NOAUTOEN = 4096,
1: - IRQ_NO_BALANCING = 8192,
1: - IRQ_MOVE_PCNTXT = 16384,
1: - IRQ_NESTED_THREAD = 32768,
1: - IRQ_NOTHREAD = 65536,
1: - IRQ_PER_CPU_DEVID = 131072,
1: - IRQ_IS_POLLED = 262144,
1: - IRQ_DISABLE_UNLAZY = 524288,
1: - IRQ_HIDDEN = 1048576,
1: + struct acpi_subtable_header common;
1: + struct acpi_hmat_structure hmat;
1: +};
1: +
1: +enum {
1: + IRQ_TYPE_NONE = 0,
1: + IRQ_TYPE_EDGE_RISING = 1,
1: + IRQ_TYPE_EDGE_FALLING = 2,
1: + IRQ_TYPE_EDGE_BOTH = 3,
1: + IRQ_TYPE_LEVEL_HIGH = 4,
1: + IRQ_TYPE_LEVEL_LOW = 8,
1: + IRQ_TYPE_LEVEL_MASK = 12,
1: + IRQ_TYPE_SENSE_MASK = 15,
1: + IRQ_TYPE_DEFAULT = 15,
1: + IRQ_TYPE_PROBE = 16,
1: + IRQ_LEVEL = 256,
1: + IRQ_PER_CPU = 512,
1: + IRQ_NOPROBE = 1024,
1: + IRQ_NOREQUEST = 2048,
1: + IRQ_NOAUTOEN = 4096,
1: + IRQ_NO_BALANCING = 8192,
1: + IRQ_MOVE_PCNTXT = 16384,
1: + IRQ_NESTED_THREAD = 32768,
1: + IRQ_NOTHREAD = 65536,
1: + IRQ_PER_CPU_DEVID = 131072,
1: + IRQ_IS_POLLED = 262144,
1: + IRQ_DISABLE_UNLAZY = 524288,
1: + IRQ_HIDDEN = 1048576,
1: };
1:
1: struct msi_msg {
1: - u32 address_lo;
1: - u32 address_hi;
1: - u32 data;
1: + u32 address_lo;
1: + u32 address_hi;
1: + u32 data;
1: };
1:
1: struct platform_msi_priv_data;
1:
1: struct platform_msi_desc {
1: - struct platform_msi_priv_data *msi_priv_data;
1: - u16 msi_index;
1: + struct platform_msi_priv_data *msi_priv_data;
1: + u16 msi_index;
1: };
1:
1: struct fsl_mc_msi_desc {
1: - u16 msi_index;
1: + u16 msi_index;
1: };
1:
1: struct ti_sci_inta_msi_desc {
1: - u16 dev_index;
1: + u16 dev_index;
1: };
1:
1: struct msi_desc {
1: - struct list_head list;
1: - unsigned int irq;
1: - unsigned int nvec_used;
1: - struct device *dev;
1: - struct msi_msg msg;
1: - struct irq_affinity_desc *affinity;
1: - const void *iommu_cookie;
1: - void (*write_msi_msg)(struct msi_desc *, void *);
1: - void *write_msi_msg_data;
1: - union {
1: - struct {
1: - u32 masked;
1: - struct {
1: - u8 is_msix: 1;
1: - u8 multiple: 3;
1: - u8 multi_cap: 3;
1: - u8 maskbit: 1;
1: - u8 is_64: 1;
1: - u8 is_virtual: 1;
1: - u16 entry_nr;
1: - unsigned int default_irq;
1: - } msi_attrib;
1: - union {
1: - u8 mask_pos;
1: - void *mask_base;
1: - };
1: - };
1: - struct platform_msi_desc platform;
1: - struct fsl_mc_msi_desc fsl_mc;
1: - struct ti_sci_inta_msi_desc inta;
1: - };
1: + struct list_head list;
1: + unsigned int irq;
1: + unsigned int nvec_used;
1: + struct device *dev;
1: + struct msi_msg msg;
1: + struct irq_affinity_desc *affinity;
1: + const void *iommu_cookie;
1: + void (*write_msi_msg)(struct msi_desc *, void *);
1: + void *write_msi_msg_data;
1: + union {
1: + struct {
1: + u32 masked;
1: + struct {
1: + u8 is_msix : 1;
1: + u8 multiple : 3;
1: + u8 multi_cap : 3;
1: + u8 maskbit : 1;
1: + u8 is_64 : 1;
1: + u8 is_virtual : 1;
1: + u16 entry_nr;
1: + unsigned int default_irq;
1: + } msi_attrib;
1: + union {
1: + u8 mask_pos;
1: + void *mask_base;
1: + };
1: + };
1: + struct platform_msi_desc platform;
1: + struct fsl_mc_msi_desc fsl_mc;
1: + struct ti_sci_inta_msi_desc inta;
1: + };
1: };
1:
1: struct irq_chip {
1: - struct device *parent_device;
1: - const char *name;
1: - unsigned int (*irq_startup)(struct irq_data *);
1: - void (*irq_shutdown)(struct irq_data *);
1: - void (*irq_enable)(struct irq_data *);
1: - void (*irq_disable)(struct irq_data *);
1: - void (*irq_ack)(struct irq_data *);
1: - void (*irq_mask)(struct irq_data *);
1: - void (*irq_mask_ack)(struct irq_data *);
1: - void (*irq_unmask)(struct irq_data *);
1: - void (*irq_eoi)(struct irq_data *);
1: - int (*irq_set_affinity)(struct irq_data *, const struct cpumask *, bool);
1: - int (*irq_retrigger)(struct irq_data *);
1: - int (*irq_set_type)(struct irq_data *, unsigned int);
1: - int (*irq_set_wake)(struct irq_data *, unsigned int);
1: - void (*irq_bus_lock)(struct irq_data *);
1: - void (*irq_bus_sync_unlock)(struct irq_data *);
1: - void (*irq_cpu_online)(struct irq_data *);
1: - void (*irq_cpu_offline)(struct irq_data *);
1: - void (*irq_suspend)(struct irq_data *);
1: - void (*irq_resume)(struct irq_data *);
1: - void (*irq_pm_shutdown)(struct irq_data *);
1: - void (*irq_calc_mask)(struct irq_data *);
1: - void (*irq_print_chip)(struct irq_data *, struct seq_file *);
1: - int (*irq_request_resources)(struct irq_data *);
1: - void (*irq_release_resources)(struct irq_data *);
1: - void (*irq_compose_msi_msg)(struct irq_data *, struct msi_msg *);
1: - void (*irq_write_msi_msg)(struct irq_data *, struct msi_msg *);
1: - int (*irq_get_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool *);
1: - int (*irq_set_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool);
1: - int (*irq_set_vcpu_affinity)(struct irq_data *, void *);
1: - void (*ipi_send_single)(struct irq_data *, unsigned int);
1: - void (*ipi_send_mask)(struct irq_data *, const struct cpumask *);
1: - int (*irq_nmi_setup)(struct irq_data *);
1: - void (*irq_nmi_teardown)(struct irq_data *);
1: - long unsigned int flags;
1: + struct device *parent_device;
1: + const char *name;
1: + unsigned int (*irq_startup)(struct irq_data *);
1: + void (*irq_shutdown)(struct irq_data *);
1: + void (*irq_enable)(struct irq_data *);
1: + void (*irq_disable)(struct irq_data *);
1: + void (*irq_ack)(struct irq_data *);
1: + void (*irq_mask)(struct irq_data *);
1: + void (*irq_mask_ack)(struct irq_data *);
1: + void (*irq_unmask)(struct irq_data *);
1: + void (*irq_eoi)(struct irq_data *);
1: + int (*irq_set_affinity)(struct irq_data *, const struct cpumask *, bool);
1: + int (*irq_retrigger)(struct irq_data *);
1: + int (*irq_set_type)(struct irq_data *, unsigned int);
1: + int (*irq_set_wake)(struct irq_data *, unsigned int);
1: + void (*irq_bus_lock)(struct irq_data *);
1: + void (*irq_bus_sync_unlock)(struct irq_data *);
1: + void (*irq_cpu_online)(struct irq_data *);
1: + void (*irq_cpu_offline)(struct irq_data *);
1: + void (*irq_suspend)(struct irq_data *);
1: + void (*irq_resume)(struct irq_data *);
1: + void (*irq_pm_shutdown)(struct irq_data *);
1: + void (*irq_calc_mask)(struct irq_data *);
1: + void (*irq_print_chip)(struct irq_data *, struct seq_file *);
1: + int (*irq_request_resources)(struct irq_data *);
1: + void (*irq_release_resources)(struct irq_data *);
1: + void (*irq_compose_msi_msg)(struct irq_data *, struct msi_msg *);
1: + void (*irq_write_msi_msg)(struct irq_data *, struct msi_msg *);
1: + int (*irq_get_irqchip_state)(struct irq_data *, enum irqchip_irq_state,
1: + bool *);
1: + int (*irq_set_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool);
1: + int (*irq_set_vcpu_affinity)(struct irq_data *, void *);
1: + void (*ipi_send_single)(struct irq_data *, unsigned int);
1: + void (*ipi_send_mask)(struct irq_data *, const struct cpumask *);
1: + int (*irq_nmi_setup)(struct irq_data *);
1: + void (*irq_nmi_teardown)(struct irq_data *);
1: + long unsigned int flags;
1: };
1:
1: struct irq_chip_regs {
1: - long unsigned int enable;
1: - long unsigned int disable;
1: - long unsigned int mask;
1: - long unsigned int ack;
1: - long unsigned int eoi;
1: - long unsigned int type;
1: - long unsigned int polarity;
1: + long unsigned int enable;
1: + long unsigned int disable;
1: + long unsigned int mask;
1: + long unsigned int ack;
1: + long unsigned int eoi;
1: + long unsigned int type;
1: + long unsigned int polarity;
1: };
1:
1: struct irq_chip_type {
1: - struct irq_chip chip;
1: - struct irq_chip_regs regs;
1: - irq_flow_handler_t handler;
1: - u32 type;
1: - u32 mask_cache_priv;
1: - u32 *mask_cache;
1: + struct irq_chip chip;
1: + struct irq_chip_regs regs;
1: + irq_flow_handler_t handler;
1: + u32 type;
1: + u32 mask_cache_priv;
1: + u32 *mask_cache;
1: };
1:
1: struct irq_chip_generic {
1: - raw_spinlock_t lock;
1: - void *reg_base;
1: - u32 (*reg_readl)(void *);
1: - void (*reg_writel)(u32, void *);
1: - void (*suspend)(struct irq_chip_generic *);
1: - void (*resume)(struct irq_chip_generic *);
1: - unsigned int irq_base;
1: - unsigned int irq_cnt;
1: - u32 mask_cache;
1: - u32 type_cache;
1: - u32 polarity_cache;
1: - u32 wake_enabled;
1: - u32 wake_active;
1: - unsigned int num_ct;
1: - void *private;
1: - long unsigned int installed;
1: - long unsigned int unused;
1: - struct irq_domain *domain;
1: - struct list_head list;
1: - struct irq_chip_type chip_types[0];
1: + raw_spinlock_t lock;
1: + void *reg_base;
1: + u32 (*reg_readl)(void *);
1: + void (*reg_writel)(u32, void *);
1: + void (*suspend)(struct irq_chip_generic *);
1: + void (*resume)(struct irq_chip_generic *);
1: + unsigned int irq_base;
1: + unsigned int irq_cnt;
1: + u32 mask_cache;
1: + u32 type_cache;
1: + u32 polarity_cache;
1: + u32 wake_enabled;
1: + u32 wake_active;
1: + unsigned int num_ct;
1: + void *private;
1: + long unsigned int installed;
1: + long unsigned int unused;
1: + struct irq_domain *domain;
1: + struct list_head list;
1: + struct irq_chip_type chip_types[0];
1: };
1:
1: enum vcpu_sysreg {
1: - __INVALID_SYSREG__ = 0,
1: - MPIDR_EL1 = 1,
1: - CSSELR_EL1 = 2,
1: - SCTLR_EL1 = 3,
1: - ACTLR_EL1 = 4,
1: - CPACR_EL1 = 5,
1: - ZCR_EL1 = 6,
1: - TTBR0_EL1 = 7,
1: - TTBR1_EL1 = 8,
1: - TCR_EL1 = 9,
1: - ESR_EL1 = 10,
1: - AFSR0_EL1 = 11,
1: - AFSR1_EL1 = 12,
1: - FAR_EL1 = 13,
1: - MAIR_EL1 = 14,
1: - VBAR_EL1 = 15,
1: - CONTEXTIDR_EL1 = 16,
1: - TPIDR_EL0 = 17,
1: - TPIDRRO_EL0 = 18,
1: - TPIDR_EL1 = 19,
1: - AMAIR_EL1 = 20,
1: - CNTKCTL_EL1 = 21,
1: - PAR_EL1 = 22,
1: - MDSCR_EL1 = 23,
1: - MDCCINT_EL1 = 24,
1: - DISR_EL1 = 25,
1: - PMCR_EL0 = 26,
1: - PMSELR_EL0 = 27,
1: - PMEVCNTR0_EL0 = 28,
1: - PMEVCNTR30_EL0 = 58,
1: - PMCCNTR_EL0 = 59,
1: - PMEVTYPER0_EL0 = 60,
1: - PMEVTYPER30_EL0 = 90,
1: - PMCCFILTR_EL0 = 91,
1: - PMCNTENSET_EL0 = 92,
1: - PMINTENSET_EL1 = 93,
1: - PMOVSSET_EL0 = 94,
1: - PMSWINC_EL0 = 95,
1: - PMUSERENR_EL0 = 96,
1: - APIAKEYLO_EL1 = 97,
1: - APIAKEYHI_EL1 = 98,
1: - APIBKEYLO_EL1 = 99,
1: - APIBKEYHI_EL1 = 100,
1: - APDAKEYLO_EL1 = 101,
1: - APDAKEYHI_EL1 = 102,
1: - APDBKEYLO_EL1 = 103,
1: - APDBKEYHI_EL1 = 104,
1: - APGAKEYLO_EL1 = 105,
1: - APGAKEYHI_EL1 = 106,
1: - ELR_EL1 = 107,
1: - SP_EL1 = 108,
1: - SPSR_EL1 = 109,
1: - CNTVOFF_EL2 = 110,
1: - CNTV_CVAL_EL0 = 111,
1: - CNTV_CTL_EL0 = 112,
1: - CNTP_CVAL_EL0 = 113,
1: - CNTP_CTL_EL0 = 114,
1: - DACR32_EL2 = 115,
1: - IFSR32_EL2 = 116,
1: - FPEXC32_EL2 = 117,
1: - DBGVCR32_EL2 = 118,
1: - NR_SYS_REGS = 119,
1: + __INVALID_SYSREG__ = 0,
1: + MPIDR_EL1 = 1,
1: + CSSELR_EL1 = 2,
1: + SCTLR_EL1 = 3,
1: + ACTLR_EL1 = 4,
1: + CPACR_EL1 = 5,
1: + ZCR_EL1 = 6,
1: + TTBR0_EL1 = 7,
1: + TTBR1_EL1 = 8,
1: + TCR_EL1 = 9,
1: + ESR_EL1 = 10,
1: + AFSR0_EL1 = 11,
1: + AFSR1_EL1 = 12,
1: + FAR_EL1 = 13,
1: + MAIR_EL1 = 14,
1: + VBAR_EL1 = 15,
1: + CONTEXTIDR_EL1 = 16,
1: + TPIDR_EL0 = 17,
1: + TPIDRRO_EL0 = 18,
1: + TPIDR_EL1 = 19,
1: + AMAIR_EL1 = 20,
1: + CNTKCTL_EL1 = 21,
1: + PAR_EL1 = 22,
1: + MDSCR_EL1 = 23,
1: + MDCCINT_EL1 = 24,
1: + DISR_EL1 = 25,
1: + PMCR_EL0 = 26,
1: + PMSELR_EL0 = 27,
1: + PMEVCNTR0_EL0 = 28,
1: + PMEVCNTR30_EL0 = 58,
1: + PMCCNTR_EL0 = 59,
1: + PMEVTYPER0_EL0 = 60,
1: + PMEVTYPER30_EL0 = 90,
1: + PMCCFILTR_EL0 = 91,
1: + PMCNTENSET_EL0 = 92,
1: + PMINTENSET_EL1 = 93,
1: + PMOVSSET_EL0 = 94,
1: + PMSWINC_EL0 = 95,
1: + PMUSERENR_EL0 = 96,
1: + APIAKEYLO_EL1 = 97,
1: + APIAKEYHI_EL1 = 98,
1: + APIBKEYLO_EL1 = 99,
1: + APIBKEYHI_EL1 = 100,
1: + APDAKEYLO_EL1 = 101,
1: + APDAKEYHI_EL1 = 102,
1: + APDBKEYLO_EL1 = 103,
1: + APDBKEYHI_EL1 = 104,
1: + APGAKEYLO_EL1 = 105,
1: + APGAKEYHI_EL1 = 106,
1: + ELR_EL1 = 107,
1: + SP_EL1 = 108,
1: + SPSR_EL1 = 109,
1: + CNTVOFF_EL2 = 110,
1: + CNTV_CVAL_EL0 = 111,
1: + CNTV_CTL_EL0 = 112,
1: + CNTP_CVAL_EL0 = 113,
1: + CNTP_CTL_EL0 = 114,
1: + DACR32_EL2 = 115,
1: + IFSR32_EL2 = 116,
1: + FPEXC32_EL2 = 117,
1: + DBGVCR32_EL2 = 118,
1: + NR_SYS_REGS = 119,
1: };
1:
1: enum kvm_bus {
1: - KVM_MMIO_BUS = 0,
1: - KVM_PIO_BUS = 1,
1: - KVM_VIRTIO_CCW_NOTIFY_BUS = 2,
1: - KVM_FAST_MMIO_BUS = 3,
1: - KVM_NR_BUSES = 4,
1: + KVM_MMIO_BUS = 0,
1: + KVM_PIO_BUS = 1,
1: + KVM_VIRTIO_CCW_NOTIFY_BUS = 2,
1: + KVM_FAST_MMIO_BUS = 3,
1: + KVM_NR_BUSES = 4,
1: };
1:
1: struct trace_event_raw_ipi_raise {
1: - struct trace_entry ent;
1: - u32 __data_loc_target_cpus;
1: - const char *reason;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_target_cpus;
1: + const char *reason;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ipi_handler {
1: - struct trace_entry ent;
1: - const char *reason;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *reason;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_ipi_raise {
1: - u32 target_cpus;
1: + u32 target_cpus;
1: };
1:
1: struct trace_event_data_offsets_ipi_handler {};
1:
1: -typedef void (*btf_trace_ipi_raise)(void *, const struct cpumask *, const char *);
1: +typedef void (*btf_trace_ipi_raise)(void *, const struct cpumask *,
1: + const char *);
1:
1: typedef void (*btf_trace_ipi_entry)(void *, const char *);
1:
1: typedef void (*btf_trace_ipi_exit)(void *, const char *);
1:
1: enum ipi_msg_type {
1: - IPI_RESCHEDULE = 0,
1: - IPI_CALL_FUNC = 1,
1: - IPI_CPU_STOP = 2,
1: - IPI_CPU_CRASH_STOP = 3,
1: - IPI_TIMER = 4,
1: - IPI_IRQ_WORK = 5,
1: - IPI_WAKEUP = 6,
1: - NR_IPI = 7,
1: + IPI_RESCHEDULE = 0,
1: + IPI_CALL_FUNC = 1,
1: + IPI_CPU_STOP = 2,
1: + IPI_CPU_CRASH_STOP = 3,
1: + IPI_TIMER = 4,
1: + IPI_IRQ_WORK = 5,
1: + IPI_WAKEUP = 6,
1: + NR_IPI = 7,
1: };
1:
1: struct cpu_topology {
1: - int thread_id;
1: - int core_id;
1: - int package_id;
1: - int llc_id;
1: - cpumask_t thread_sibling;
1: - cpumask_t core_sibling;
1: - cpumask_t llc_sibling;
1: + int thread_id;
1: + int core_id;
1: + int package_id;
1: + int llc_id;
1: + cpumask_t thread_sibling;
1: + cpumask_t core_sibling;
1: + cpumask_t llc_sibling;
1: };
1:
1: enum cpufreq_table_sorting {
1: - CPUFREQ_TABLE_UNSORTED = 0,
1: - CPUFREQ_TABLE_SORTED_ASCENDING = 1,
1: - CPUFREQ_TABLE_SORTED_DESCENDING = 2,
1: + CPUFREQ_TABLE_UNSORTED = 0,
1: + CPUFREQ_TABLE_SORTED_ASCENDING = 1,
1: + CPUFREQ_TABLE_SORTED_DESCENDING = 2,
1: };
1:
1: struct cpufreq_cpuinfo {
1: - unsigned int max_freq;
1: - unsigned int min_freq;
1: - unsigned int transition_latency;
1: + unsigned int max_freq;
1: + unsigned int min_freq;
1: + unsigned int transition_latency;
1: };
1:
1: struct clk;
1: @@ -15526,99 +15732,99 @@ struct cpufreq_stats;
1: struct thermal_cooling_device;
1:
1: struct cpufreq_policy {
1: - cpumask_var_t cpus;
1: - cpumask_var_t related_cpus;
1: - cpumask_var_t real_cpus;
1: - unsigned int shared_type;
1: - unsigned int cpu;
1: - struct clk *clk;
1: - struct cpufreq_cpuinfo cpuinfo;
1: - unsigned int min;
1: - unsigned int max;
1: - unsigned int cur;
1: - unsigned int restore_freq;
1: - unsigned int suspend_freq;
1: - unsigned int policy;
1: - unsigned int last_policy;
1: - struct cpufreq_governor *governor;
1: - void *governor_data;
1: - char last_governor[16];
1: - struct work_struct update;
1: - struct freq_constraints constraints;
1: - struct freq_qos_request *min_freq_req;
1: - struct freq_qos_request *max_freq_req;
1: - struct cpufreq_frequency_table *freq_table;
1: - enum cpufreq_table_sorting freq_table_sorted;
1: - struct list_head policy_list;
1: - struct kobject kobj;
1: - struct completion kobj_unregister;
1: - struct rw_semaphore rwsem;
1: - bool fast_switch_possible;
1: - bool fast_switch_enabled;
1: - bool strict_target;
1: - unsigned int transition_delay_us;
1: - bool dvfs_possible_from_any_cpu;
1: - unsigned int cached_target_freq;
1: - unsigned int cached_resolved_idx;
1: - bool transition_ongoing;
1: - spinlock_t transition_lock;
1: - wait_queue_head_t transition_wait;
1: - struct task_struct *transition_task;
1: - struct cpufreq_stats *stats;
1: - void *driver_data;
1: - struct thermal_cooling_device *cdev;
1: - struct notifier_block nb_min;
1: - struct notifier_block nb_max;
1: + cpumask_var_t cpus;
1: + cpumask_var_t related_cpus;
1: + cpumask_var_t real_cpus;
1: + unsigned int shared_type;
1: + unsigned int cpu;
1: + struct clk *clk;
1: + struct cpufreq_cpuinfo cpuinfo;
1: + unsigned int min;
1: + unsigned int max;
1: + unsigned int cur;
1: + unsigned int restore_freq;
1: + unsigned int suspend_freq;
1: + unsigned int policy;
1: + unsigned int last_policy;
1: + struct cpufreq_governor *governor;
1: + void *governor_data;
1: + char last_governor[16];
1: + struct work_struct update;
1: + struct freq_constraints constraints;
1: + struct freq_qos_request *min_freq_req;
1: + struct freq_qos_request *max_freq_req;
1: + struct cpufreq_frequency_table *freq_table;
1: + enum cpufreq_table_sorting freq_table_sorted;
1: + struct list_head policy_list;
1: + struct kobject kobj;
1: + struct completion kobj_unregister;
1: + struct rw_semaphore rwsem;
1: + bool fast_switch_possible;
1: + bool fast_switch_enabled;
1: + bool strict_target;
1: + unsigned int transition_delay_us;
1: + bool dvfs_possible_from_any_cpu;
1: + unsigned int cached_target_freq;
1: + unsigned int cached_resolved_idx;
1: + bool transition_ongoing;
1: + spinlock_t transition_lock;
1: + wait_queue_head_t transition_wait;
1: + struct task_struct *transition_task;
1: + struct cpufreq_stats *stats;
1: + void *driver_data;
1: + struct thermal_cooling_device *cdev;
1: + struct notifier_block nb_min;
1: + struct notifier_block nb_max;
1: };
1:
1: struct cpufreq_governor {
1: - char name[16];
1: - int (*init)(struct cpufreq_policy *);
1: - void (*exit)(struct cpufreq_policy *);
1: - int (*start)(struct cpufreq_policy *);
1: - void (*stop)(struct cpufreq_policy *);
1: - void (*limits)(struct cpufreq_policy *);
1: - ssize_t (*show_setspeed)(struct cpufreq_policy *, char *);
1: - int (*store_setspeed)(struct cpufreq_policy *, unsigned int);
1: - struct list_head governor_list;
1: - struct module *owner;
1: - u8 flags;
1: + char name[16];
1: + int (*init)(struct cpufreq_policy *);
1: + void (*exit)(struct cpufreq_policy *);
1: + int (*start)(struct cpufreq_policy *);
1: + void (*stop)(struct cpufreq_policy *);
1: + void (*limits)(struct cpufreq_policy *);
1: + ssize_t (*show_setspeed)(struct cpufreq_policy *, char *);
1: + int (*store_setspeed)(struct cpufreq_policy *, unsigned int);
1: + struct list_head governor_list;
1: + struct module *owner;
1: + u8 flags;
1: };
1:
1: struct cpufreq_frequency_table {
1: - unsigned int flags;
1: - unsigned int driver_data;
1: - unsigned int frequency;
1: + unsigned int flags;
1: + unsigned int driver_data;
1: + unsigned int frequency;
1: };
1:
1: enum arm_smccc_conduit {
1: - SMCCC_CONDUIT_NONE = 0,
1: - SMCCC_CONDUIT_SMC = 1,
1: - SMCCC_CONDUIT_HVC = 2,
1: + SMCCC_CONDUIT_NONE = 0,
1: + SMCCC_CONDUIT_SMC = 1,
1: + SMCCC_CONDUIT_HVC = 2,
1: };
1:
1: struct arm_smccc_res {
1: - long unsigned int a0;
1: - long unsigned int a1;
1: - long unsigned int a2;
1: - long unsigned int a3;
1: + long unsigned int a0;
1: + long unsigned int a1;
1: + long unsigned int a2;
1: + long unsigned int a3;
1: };
1:
1: enum mitigation_state {
1: - SPECTRE_UNAFFECTED = 0,
1: - SPECTRE_MITIGATED = 1,
1: - SPECTRE_VULNERABLE = 2,
1: + SPECTRE_UNAFFECTED = 0,
1: + SPECTRE_MITIGATED = 1,
1: + SPECTRE_VULNERABLE = 2,
1: };
1:
1: enum spectre_v4_policy {
1: - SPECTRE_V4_POLICY_MITIGATION_DYNAMIC = 0,
1: - SPECTRE_V4_POLICY_MITIGATION_ENABLED = 1,
1: - SPECTRE_V4_POLICY_MITIGATION_DISABLED = 2,
1: + SPECTRE_V4_POLICY_MITIGATION_DYNAMIC = 0,
1: + SPECTRE_V4_POLICY_MITIGATION_ENABLED = 1,
1: + SPECTRE_V4_POLICY_MITIGATION_DISABLED = 2,
1: };
1:
1: struct spectre_v4_param {
1: - const char *str;
1: - enum spectre_v4_policy policy;
1: + const char *str;
1: + enum spectre_v4_policy policy;
1: };
1:
1: typedef u32 compat_size_t;
1: @@ -15640,168 +15846,168 @@ typedef u32 __compat_uid32_t;
1: typedef u32 compat_sigset_word;
1:
1: struct compat_sigaltstack {
1: - compat_uptr_t ss_sp;
1: - int ss_flags;
1: - compat_size_t ss_size;
1: + compat_uptr_t ss_sp;
1: + int ss_flags;
1: + compat_size_t ss_size;
1: };
1:
1: typedef struct compat_sigaltstack compat_stack_t;
1:
1: typedef struct {
1: - compat_sigset_word sig[2];
1: + compat_sigset_word sig[2];
1: } compat_sigset_t;
1:
1: union compat_sigval {
1: - compat_int_t sival_int;
1: - compat_uptr_t sival_ptr;
1: + compat_int_t sival_int;
1: + compat_uptr_t sival_ptr;
1: };
1:
1: typedef union compat_sigval compat_sigval_t;
1:
1: struct compat_siginfo {
1: - int si_signo;
1: - int si_errno;
1: - int si_code;
1: - union {
1: - int _pad[29];
1: - struct {
1: - compat_pid_t _pid;
1: - __compat_uid32_t _uid;
1: - } _kill;
1: - struct {
1: - compat_timer_t _tid;
1: - int _overrun;
1: - compat_sigval_t _sigval;
1: - } _timer;
1: - struct {
1: - compat_pid_t _pid;
1: - __compat_uid32_t _uid;
1: - compat_sigval_t _sigval;
1: - } _rt;
1: - struct {
1: - compat_pid_t _pid;
1: - __compat_uid32_t _uid;
1: - int _status;
1: - compat_clock_t _utime;
1: - compat_clock_t _stime;
1: - } _sigchld;
1: - struct {
1: - compat_uptr_t _addr;
1: - union {
1: - short int _addr_lsb;
1: - struct {
1: - char _dummy_bnd[4];
1: - compat_uptr_t _lower;
1: - compat_uptr_t _upper;
1: - } _addr_bnd;
1: - struct {
1: - char _dummy_pkey[4];
1: - u32 _pkey;
1: - } _addr_pkey;
1: - };
1: - } _sigfault;
1: - struct {
1: - compat_long_t _band;
1: - int _fd;
1: - } _sigpoll;
1: - struct {
1: - compat_uptr_t _call_addr;
1: - int _syscall;
1: - unsigned int _arch;
1: - } _sigsys;
1: - } _sifields;
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union {
1: + int _pad[29];
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + compat_timer_t _tid;
1: + int _overrun;
1: + compat_sigval_t _sigval;
1: + } _timer;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + compat_sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + int _status;
1: + compat_clock_t _utime;
1: + compat_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + compat_uptr_t _addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[4];
1: + compat_uptr_t _lower;
1: + compat_uptr_t _upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[4];
1: + u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + compat_long_t _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + compat_uptr_t _call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: + } _sifields;
1: };
1:
1: struct compat_sigcontext {
1: - compat_ulong_t trap_no;
1: - compat_ulong_t error_code;
1: - compat_ulong_t oldmask;
1: - compat_ulong_t arm_r0;
1: - compat_ulong_t arm_r1;
1: - compat_ulong_t arm_r2;
1: - compat_ulong_t arm_r3;
1: - compat_ulong_t arm_r4;
1: - compat_ulong_t arm_r5;
1: - compat_ulong_t arm_r6;
1: - compat_ulong_t arm_r7;
1: - compat_ulong_t arm_r8;
1: - compat_ulong_t arm_r9;
1: - compat_ulong_t arm_r10;
1: - compat_ulong_t arm_fp;
1: - compat_ulong_t arm_ip;
1: - compat_ulong_t arm_sp;
1: - compat_ulong_t arm_lr;
1: - compat_ulong_t arm_pc;
1: - compat_ulong_t arm_cpsr;
1: - compat_ulong_t fault_address;
1: + compat_ulong_t trap_no;
1: + compat_ulong_t error_code;
1: + compat_ulong_t oldmask;
1: + compat_ulong_t arm_r0;
1: + compat_ulong_t arm_r1;
1: + compat_ulong_t arm_r2;
1: + compat_ulong_t arm_r3;
1: + compat_ulong_t arm_r4;
1: + compat_ulong_t arm_r5;
1: + compat_ulong_t arm_r6;
1: + compat_ulong_t arm_r7;
1: + compat_ulong_t arm_r8;
1: + compat_ulong_t arm_r9;
1: + compat_ulong_t arm_r10;
1: + compat_ulong_t arm_fp;
1: + compat_ulong_t arm_ip;
1: + compat_ulong_t arm_sp;
1: + compat_ulong_t arm_lr;
1: + compat_ulong_t arm_pc;
1: + compat_ulong_t arm_cpsr;
1: + compat_ulong_t fault_address;
1: };
1:
1: struct compat_ucontext {
1: - compat_ulong_t uc_flags;
1: - compat_uptr_t uc_link;
1: - compat_stack_t uc_stack;
1: - struct compat_sigcontext uc_mcontext;
1: - compat_sigset_t uc_sigmask;
1: - int __unused[30];
1: - compat_ulong_t uc_regspace[128];
1: + compat_ulong_t uc_flags;
1: + compat_uptr_t uc_link;
1: + compat_stack_t uc_stack;
1: + struct compat_sigcontext uc_mcontext;
1: + compat_sigset_t uc_sigmask;
1: + int __unused[30];
1: + compat_ulong_t uc_regspace[128];
1: };
1:
1: struct compat_sigframe {
1: - struct compat_ucontext uc;
1: - compat_ulong_t retcode[2];
1: + struct compat_ucontext uc;
1: + compat_ulong_t retcode[2];
1: };
1:
1: struct compat_rt_sigframe {
1: - struct compat_siginfo info;
1: - struct compat_sigframe sig;
1: + struct compat_siginfo info;
1: + struct compat_sigframe sig;
1: };
1:
1: struct compat_user_vfp {
1: - compat_u64 fpregs[32];
1: - compat_ulong_t fpscr;
1: + compat_u64 fpregs[32];
1: + compat_ulong_t fpscr;
1: };
1:
1: struct compat_user_vfp_exc {
1: - compat_ulong_t fpexc;
1: - compat_ulong_t fpinst;
1: - compat_ulong_t fpinst2;
1: + compat_ulong_t fpexc;
1: + compat_ulong_t fpinst;
1: + compat_ulong_t fpinst2;
1: };
1:
1: struct compat_vfp_sigframe {
1: - compat_ulong_t magic;
1: - compat_ulong_t size;
1: - struct compat_user_vfp ufp;
1: - struct compat_user_vfp_exc ufp_exc;
1: + compat_ulong_t magic;
1: + compat_ulong_t size;
1: + struct compat_user_vfp ufp;
1: + struct compat_user_vfp_exc ufp_exc;
1: };
1:
1: struct compat_aux_sigframe {
1: - struct compat_vfp_sigframe vfp;
1: - long unsigned int end_magic;
1: + struct compat_vfp_sigframe vfp;
1: + long unsigned int end_magic;
1: };
1:
1: union __fpsimd_vreg {
1: - __int128 unsigned raw;
1: - struct {
1: - u64 lo;
1: - u64 hi;
1: - };
1: + __int128 unsigned raw;
1: + struct {
1: + u64 lo;
1: + u64 hi;
1: + };
1: };
1:
1: struct dyn_arch_ftrace {};
1:
1: struct dyn_ftrace {
1: - long unsigned int ip;
1: - long unsigned int flags;
1: - struct dyn_arch_ftrace arch;
1: + long unsigned int ip;
1: + long unsigned int flags;
1: + struct dyn_arch_ftrace arch;
1: };
1:
1: enum {
1: - FTRACE_UPDATE_CALLS = 1,
1: - FTRACE_DISABLE_CALLS = 2,
1: - FTRACE_UPDATE_TRACE_FUNC = 4,
1: - FTRACE_START_FUNC_RET = 8,
1: - FTRACE_STOP_FUNC_RET = 16,
1: - FTRACE_MAY_SLEEP = 32,
1: + FTRACE_UPDATE_CALLS = 1,
1: + FTRACE_DISABLE_CALLS = 2,
1: + FTRACE_UPDATE_TRACE_FUNC = 4,
1: + FTRACE_START_FUNC_RET = 8,
1: + FTRACE_STOP_FUNC_RET = 16,
1: + FTRACE_MAY_SLEEP = 32,
1: };
1:
1: typedef __u64 Elf64_Off;
1: @@ -15809,324 +16015,324 @@ typedef __u64 Elf64_Off;
1: typedef __s64 Elf64_Sxword;
1:
1: struct elf64_rela {
1: - Elf64_Addr r_offset;
1: - Elf64_Xword r_info;
1: - Elf64_Sxword r_addend;
1: + Elf64_Addr r_offset;
1: + Elf64_Xword r_info;
1: + Elf64_Sxword r_addend;
1: };
1:
1: typedef struct elf64_rela Elf64_Rela;
1:
1: struct elf64_hdr {
1: - unsigned char e_ident[16];
1: - Elf64_Half e_type;
1: - Elf64_Half e_machine;
1: - Elf64_Word e_version;
1: - Elf64_Addr e_entry;
1: - Elf64_Off e_phoff;
1: - Elf64_Off e_shoff;
1: - Elf64_Word e_flags;
1: - Elf64_Half e_ehsize;
1: - Elf64_Half e_phentsize;
1: - Elf64_Half e_phnum;
1: - Elf64_Half e_shentsize;
1: - Elf64_Half e_shnum;
1: - Elf64_Half e_shstrndx;
1: + unsigned char e_ident[16];
1: + Elf64_Half e_type;
1: + Elf64_Half e_machine;
1: + Elf64_Word e_version;
1: + Elf64_Addr e_entry;
1: + Elf64_Off e_phoff;
1: + Elf64_Off e_shoff;
1: + Elf64_Word e_flags;
1: + Elf64_Half e_ehsize;
1: + Elf64_Half e_phentsize;
1: + Elf64_Half e_phnum;
1: + Elf64_Half e_shentsize;
1: + Elf64_Half e_shnum;
1: + Elf64_Half e_shstrndx;
1: };
1:
1: typedef struct elf64_hdr Elf64_Ehdr;
1:
1: struct elf64_shdr {
1: - Elf64_Word sh_name;
1: - Elf64_Word sh_type;
1: - Elf64_Xword sh_flags;
1: - Elf64_Addr sh_addr;
1: - Elf64_Off sh_offset;
1: - Elf64_Xword sh_size;
1: - Elf64_Word sh_link;
1: - Elf64_Word sh_info;
1: - Elf64_Xword sh_addralign;
1: - Elf64_Xword sh_entsize;
1: + Elf64_Word sh_name;
1: + Elf64_Word sh_type;
1: + Elf64_Xword sh_flags;
1: + Elf64_Addr sh_addr;
1: + Elf64_Off sh_offset;
1: + Elf64_Xword sh_size;
1: + Elf64_Word sh_link;
1: + Elf64_Word sh_info;
1: + Elf64_Xword sh_addralign;
1: + Elf64_Xword sh_entsize;
1: };
1:
1: typedef struct elf64_shdr Elf64_Shdr;
1:
1: enum aarch64_reloc_op {
1: - RELOC_OP_NONE = 0,
1: - RELOC_OP_ABS = 1,
1: - RELOC_OP_PREL = 2,
1: - RELOC_OP_PAGE = 3,
1: + RELOC_OP_NONE = 0,
1: + RELOC_OP_ABS = 1,
1: + RELOC_OP_PREL = 2,
1: + RELOC_OP_PAGE = 3,
1: };
1:
1: enum aarch64_insn_movw_imm_type {
1: - AARCH64_INSN_IMM_MOVNZ = 0,
1: - AARCH64_INSN_IMM_MOVKZ = 1,
1: + AARCH64_INSN_IMM_MOVNZ = 0,
1: + AARCH64_INSN_IMM_MOVKZ = 1,
1: };
1:
1: enum perf_sample_regs_abi {
1: - PERF_SAMPLE_REGS_ABI_NONE = 0,
1: - PERF_SAMPLE_REGS_ABI_32 = 1,
1: - PERF_SAMPLE_REGS_ABI_64 = 2,
1: + PERF_SAMPLE_REGS_ABI_NONE = 0,
1: + PERF_SAMPLE_REGS_ABI_32 = 1,
1: + PERF_SAMPLE_REGS_ABI_64 = 2,
1: };
1:
1: enum perf_event_arm_regs {
1: - PERF_REG_ARM64_X0 = 0,
1: - PERF_REG_ARM64_X1 = 1,
1: - PERF_REG_ARM64_X2 = 2,
1: - PERF_REG_ARM64_X3 = 3,
1: - PERF_REG_ARM64_X4 = 4,
1: - PERF_REG_ARM64_X5 = 5,
1: - PERF_REG_ARM64_X6 = 6,
1: - PERF_REG_ARM64_X7 = 7,
1: - PERF_REG_ARM64_X8 = 8,
1: - PERF_REG_ARM64_X9 = 9,
1: - PERF_REG_ARM64_X10 = 10,
1: - PERF_REG_ARM64_X11 = 11,
1: - PERF_REG_ARM64_X12 = 12,
1: - PERF_REG_ARM64_X13 = 13,
1: - PERF_REG_ARM64_X14 = 14,
1: - PERF_REG_ARM64_X15 = 15,
1: - PERF_REG_ARM64_X16 = 16,
1: - PERF_REG_ARM64_X17 = 17,
1: - PERF_REG_ARM64_X18 = 18,
1: - PERF_REG_ARM64_X19 = 19,
1: - PERF_REG_ARM64_X20 = 20,
1: - PERF_REG_ARM64_X21 = 21,
1: - PERF_REG_ARM64_X22 = 22,
1: - PERF_REG_ARM64_X23 = 23,
1: - PERF_REG_ARM64_X24 = 24,
1: - PERF_REG_ARM64_X25 = 25,
1: - PERF_REG_ARM64_X26 = 26,
1: - PERF_REG_ARM64_X27 = 27,
1: - PERF_REG_ARM64_X28 = 28,
1: - PERF_REG_ARM64_X29 = 29,
1: - PERF_REG_ARM64_LR = 30,
1: - PERF_REG_ARM64_SP = 31,
1: - PERF_REG_ARM64_PC = 32,
1: - PERF_REG_ARM64_MAX = 33,
1: + PERF_REG_ARM64_X0 = 0,
1: + PERF_REG_ARM64_X1 = 1,
1: + PERF_REG_ARM64_X2 = 2,
1: + PERF_REG_ARM64_X3 = 3,
1: + PERF_REG_ARM64_X4 = 4,
1: + PERF_REG_ARM64_X5 = 5,
1: + PERF_REG_ARM64_X6 = 6,
1: + PERF_REG_ARM64_X7 = 7,
1: + PERF_REG_ARM64_X8 = 8,
1: + PERF_REG_ARM64_X9 = 9,
1: + PERF_REG_ARM64_X10 = 10,
1: + PERF_REG_ARM64_X11 = 11,
1: + PERF_REG_ARM64_X12 = 12,
1: + PERF_REG_ARM64_X13 = 13,
1: + PERF_REG_ARM64_X14 = 14,
1: + PERF_REG_ARM64_X15 = 15,
1: + PERF_REG_ARM64_X16 = 16,
1: + PERF_REG_ARM64_X17 = 17,
1: + PERF_REG_ARM64_X18 = 18,
1: + PERF_REG_ARM64_X19 = 19,
1: + PERF_REG_ARM64_X20 = 20,
1: + PERF_REG_ARM64_X21 = 21,
1: + PERF_REG_ARM64_X22 = 22,
1: + PERF_REG_ARM64_X23 = 23,
1: + PERF_REG_ARM64_X24 = 24,
1: + PERF_REG_ARM64_X25 = 25,
1: + PERF_REG_ARM64_X26 = 26,
1: + PERF_REG_ARM64_X27 = 27,
1: + PERF_REG_ARM64_X28 = 28,
1: + PERF_REG_ARM64_X29 = 29,
1: + PERF_REG_ARM64_LR = 30,
1: + PERF_REG_ARM64_SP = 31,
1: + PERF_REG_ARM64_PC = 32,
1: + PERF_REG_ARM64_MAX = 33,
1: };
1:
1: struct perf_guest_info_callbacks {
1: - int (*is_in_guest)();
1: - int (*is_user_mode)();
1: - long unsigned int (*get_guest_ip)();
1: - void (*handle_intel_pt_intr)();
1: + int (*is_in_guest)();
1: + int (*is_user_mode)();
1: + long unsigned int (*get_guest_ip)();
1: + void (*handle_intel_pt_intr)();
1: };
1:
1: struct perf_callchain_entry_ctx {
1: - struct perf_callchain_entry *entry;
1: - u32 max_stack;
1: - u32 nr;
1: - short int contexts;
1: - bool contexts_maxed;
1: + struct perf_callchain_entry *entry;
1: + u32 max_stack;
1: + u32 nr;
1: + short int contexts;
1: + bool contexts_maxed;
1: };
1:
1: struct frame_tail {
1: - struct frame_tail *fp;
1: - long unsigned int lr;
1: + struct frame_tail *fp;
1: + long unsigned int lr;
1: };
1:
1: struct compat_frame_tail {
1: - compat_uptr_t fp;
1: - u32 sp;
1: - u32 lr;
1: + compat_uptr_t fp;
1: + u32 sp;
1: + u32 lr;
1: };
1:
1: struct platform_device_id {
1: - char name[20];
1: - kernel_ulong_t driver_data;
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: };
1:
1: struct pdev_archdata {};
1:
1: enum perf_hw_id {
1: - PERF_COUNT_HW_CPU_CYCLES = 0,
1: - PERF_COUNT_HW_INSTRUCTIONS = 1,
1: - PERF_COUNT_HW_CACHE_REFERENCES = 2,
1: - PERF_COUNT_HW_CACHE_MISSES = 3,
1: - PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4,
1: - PERF_COUNT_HW_BRANCH_MISSES = 5,
1: - PERF_COUNT_HW_BUS_CYCLES = 6,
1: - PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 7,
1: - PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 8,
1: - PERF_COUNT_HW_REF_CPU_CYCLES = 9,
1: - PERF_COUNT_HW_MAX = 10,
1: + PERF_COUNT_HW_CPU_CYCLES = 0,
1: + PERF_COUNT_HW_INSTRUCTIONS = 1,
1: + PERF_COUNT_HW_CACHE_REFERENCES = 2,
1: + PERF_COUNT_HW_CACHE_MISSES = 3,
1: + PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4,
1: + PERF_COUNT_HW_BRANCH_MISSES = 5,
1: + PERF_COUNT_HW_BUS_CYCLES = 6,
1: + PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 7,
1: + PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 8,
1: + PERF_COUNT_HW_REF_CPU_CYCLES = 9,
1: + PERF_COUNT_HW_MAX = 10,
1: };
1:
1: enum perf_hw_cache_id {
1: - PERF_COUNT_HW_CACHE_L1D = 0,
1: - PERF_COUNT_HW_CACHE_L1I = 1,
1: - PERF_COUNT_HW_CACHE_LL = 2,
1: - PERF_COUNT_HW_CACHE_DTLB = 3,
1: - PERF_COUNT_HW_CACHE_ITLB = 4,
1: - PERF_COUNT_HW_CACHE_BPU = 5,
1: - PERF_COUNT_HW_CACHE_NODE = 6,
1: - PERF_COUNT_HW_CACHE_MAX = 7,
1: + PERF_COUNT_HW_CACHE_L1D = 0,
1: + PERF_COUNT_HW_CACHE_L1I = 1,
1: + PERF_COUNT_HW_CACHE_LL = 2,
1: + PERF_COUNT_HW_CACHE_DTLB = 3,
1: + PERF_COUNT_HW_CACHE_ITLB = 4,
1: + PERF_COUNT_HW_CACHE_BPU = 5,
1: + PERF_COUNT_HW_CACHE_NODE = 6,
1: + PERF_COUNT_HW_CACHE_MAX = 7,
1: };
1:
1: enum perf_hw_cache_op_id {
1: - PERF_COUNT_HW_CACHE_OP_READ = 0,
1: - PERF_COUNT_HW_CACHE_OP_WRITE = 1,
1: - PERF_COUNT_HW_CACHE_OP_PREFETCH = 2,
1: - PERF_COUNT_HW_CACHE_OP_MAX = 3,
1: + PERF_COUNT_HW_CACHE_OP_READ = 0,
1: + PERF_COUNT_HW_CACHE_OP_WRITE = 1,
1: + PERF_COUNT_HW_CACHE_OP_PREFETCH = 2,
1: + PERF_COUNT_HW_CACHE_OP_MAX = 3,
1: };
1:
1: enum perf_hw_cache_op_result_id {
1: - PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0,
1: - PERF_COUNT_HW_CACHE_RESULT_MISS = 1,
1: - PERF_COUNT_HW_CACHE_RESULT_MAX = 2,
1: + PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0,
1: + PERF_COUNT_HW_CACHE_RESULT_MISS = 1,
1: + PERF_COUNT_HW_CACHE_RESULT_MAX = 2,
1: };
1:
1: struct perf_event_mmap_page {
1: - __u32 version;
1: - __u32 compat_version;
1: - __u32 lock;
1: - __u32 index;
1: - __s64 offset;
1: - __u64 time_enabled;
1: - __u64 time_running;
1: - union {
1: - __u64 capabilities;
1: - struct {
1: - __u64 cap_bit0: 1;
1: - __u64 cap_bit0_is_deprecated: 1;
1: - __u64 cap_user_rdpmc: 1;
1: - __u64 cap_user_time: 1;
1: - __u64 cap_user_time_zero: 1;
1: - __u64 cap_user_time_short: 1;
1: - __u64 cap_____res: 58;
1: - };
1: - };
1: - __u16 pmc_width;
1: - __u16 time_shift;
1: - __u32 time_mult;
1: - __u64 time_offset;
1: - __u64 time_zero;
1: - __u32 size;
1: - __u32 __reserved_1;
1: - __u64 time_cycles;
1: - __u64 time_mask;
1: - __u8 __reserved[928];
1: - __u64 data_head;
1: - __u64 data_tail;
1: - __u64 data_offset;
1: - __u64 data_size;
1: - __u64 aux_head;
1: - __u64 aux_tail;
1: - __u64 aux_offset;
1: - __u64 aux_size;
1: + __u32 version;
1: + __u32 compat_version;
1: + __u32 lock;
1: + __u32 index;
1: + __s64 offset;
1: + __u64 time_enabled;
1: + __u64 time_running;
1: + union {
1: + __u64 capabilities;
1: + struct {
1: + __u64 cap_bit0 : 1;
1: + __u64 cap_bit0_is_deprecated : 1;
1: + __u64 cap_user_rdpmc : 1;
1: + __u64 cap_user_time : 1;
1: + __u64 cap_user_time_zero : 1;
1: + __u64 cap_user_time_short : 1;
1: + __u64 cap_____res : 58;
1: + };
1: + };
1: + __u16 pmc_width;
1: + __u16 time_shift;
1: + __u32 time_mult;
1: + __u64 time_offset;
1: + __u64 time_zero;
1: + __u32 size;
1: + __u32 __reserved_1;
1: + __u64 time_cycles;
1: + __u64 time_mask;
1: + __u8 __reserved[928];
1: + __u64 data_head;
1: + __u64 data_tail;
1: + __u64 data_offset;
1: + __u64 data_size;
1: + __u64 aux_head;
1: + __u64 aux_tail;
1: + __u64 aux_offset;
1: + __u64 aux_size;
1: };
1:
1: struct perf_pmu_events_attr {
1: - struct device_attribute attr;
1: - u64 id;
1: - const char *event_str;
1: + struct device_attribute attr;
1: + u64 id;
1: + const char *event_str;
1: };
1:
1: struct mfd_cell;
1:
1: struct platform_device {
1: - const char *name;
1: - int id;
1: - bool id_auto;
1: - struct device dev;
1: - u64 platform_dma_mask;
1: - struct device_dma_parameters dma_parms;
1: - u32 num_resources;
1: - struct resource *resource;
1: - const struct platform_device_id *id_entry;
1: - char *driver_override;
1: - struct mfd_cell *mfd_cell;
1: - struct pdev_archdata archdata;
1: + const char *name;
1: + int id;
1: + bool id_auto;
1: + struct device dev;
1: + u64 platform_dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + u32 num_resources;
1: + struct resource *resource;
1: + const struct platform_device_id *id_entry;
1: + char *driver_override;
1: + struct mfd_cell *mfd_cell;
1: + struct pdev_archdata archdata;
1: };
1:
1: struct platform_driver {
1: - int (*probe)(struct platform_device *);
1: - int (*remove)(struct platform_device *);
1: - void (*shutdown)(struct platform_device *);
1: - int (*suspend)(struct platform_device *, pm_message_t);
1: - int (*resume)(struct platform_device *);
1: - struct device_driver driver;
1: - const struct platform_device_id *id_table;
1: - bool prevent_deferred_probe;
1: + int (*probe)(struct platform_device *);
1: + int (*remove)(struct platform_device *);
1: + void (*shutdown)(struct platform_device *);
1: + int (*suspend)(struct platform_device *, pm_message_t);
1: + int (*resume)(struct platform_device *);
1: + struct device_driver driver;
1: + const struct platform_device_id *id_table;
1: + bool prevent_deferred_probe;
1: };
1:
1: struct arm_pmu;
1:
1: struct pmu_hw_events {
1: - struct perf_event *events[32];
1: - long unsigned int used_mask[1];
1: - raw_spinlock_t pmu_lock;
1: - struct arm_pmu *percpu_pmu;
1: - int irq;
1: + struct perf_event *events[32];
1: + long unsigned int used_mask[1];
1: + raw_spinlock_t pmu_lock;
1: + struct arm_pmu *percpu_pmu;
1: + int irq;
1: };
1:
1: struct arm_pmu {
1: - struct pmu pmu;
1: - cpumask_t supported_cpus;
1: - char *name;
1: - int pmuver;
1: - irqreturn_t (*handle_irq)(struct arm_pmu *);
1: - void (*enable)(struct perf_event *);
1: - void (*disable)(struct perf_event *);
1: - int (*get_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: - void (*clear_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: - int (*set_event_filter)(struct hw_perf_event *, struct perf_event_attr *);
1: - u64 (*read_counter)(struct perf_event *);
1: - void (*write_counter)(struct perf_event *, u64);
1: - void (*start)(struct arm_pmu *);
1: - void (*stop)(struct arm_pmu *);
1: - void (*reset)(void *);
1: - int (*map_event)(struct perf_event *);
1: - int (*filter_match)(struct perf_event *);
1: - int num_events;
1: - bool secure_access;
1: - long unsigned int pmceid_bitmap[1];
1: - long unsigned int pmceid_ext_bitmap[1];
1: - struct platform_device *plat_device;
1: - struct pmu_hw_events *hw_events;
1: - struct hlist_node node;
1: - struct notifier_block cpu_pm_nb;
1: - const struct attribute_group *attr_groups[5];
1: - u64 reg_pmmir;
1: - long unsigned int acpi_cpuid;
1: + struct pmu pmu;
1: + cpumask_t supported_cpus;
1: + char *name;
1: + int pmuver;
1: + irqreturn_t (*handle_irq)(struct arm_pmu *);
1: + void (*enable)(struct perf_event *);
1: + void (*disable)(struct perf_event *);
1: + int (*get_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: + void (*clear_event_idx)(struct pmu_hw_events *, struct perf_event *);
1: + int (*set_event_filter)(struct hw_perf_event *, struct perf_event_attr *);
1: + u64 (*read_counter)(struct perf_event *);
1: + void (*write_counter)(struct perf_event *, u64);
1: + void (*start)(struct arm_pmu *);
1: + void (*stop)(struct arm_pmu *);
1: + void (*reset)(void *);
1: + int (*map_event)(struct perf_event *);
1: + int (*filter_match)(struct perf_event *);
1: + int num_events;
1: + bool secure_access;
1: + long unsigned int pmceid_bitmap[1];
1: + long unsigned int pmceid_ext_bitmap[1];
1: + struct platform_device *plat_device;
1: + struct pmu_hw_events *hw_events;
1: + struct hlist_node node;
1: + struct notifier_block cpu_pm_nb;
1: + const struct attribute_group *attr_groups[5];
1: + u64 reg_pmmir;
1: + long unsigned int acpi_cpuid;
1: };
1:
1: enum armpmu_attr_groups {
1: - ARMPMU_ATTR_GROUP_COMMON = 0,
1: - ARMPMU_ATTR_GROUP_EVENTS = 1,
1: - ARMPMU_ATTR_GROUP_FORMATS = 2,
1: - ARMPMU_ATTR_GROUP_CAPS = 3,
1: - ARMPMU_NR_ATTR_GROUPS = 4,
1: + ARMPMU_ATTR_GROUP_COMMON = 0,
1: + ARMPMU_ATTR_GROUP_EVENTS = 1,
1: + ARMPMU_ATTR_GROUP_FORMATS = 2,
1: + ARMPMU_ATTR_GROUP_CAPS = 3,
1: + ARMPMU_NR_ATTR_GROUPS = 4,
1: };
1:
1: struct clock_read_data {
1: - u64 epoch_ns;
1: - u64 epoch_cyc;
1: - u64 sched_clock_mask;
1: - u64 (*read_sched_clock)();
1: - u32 mult;
1: - u32 shift;
1: + u64 epoch_ns;
1: + u64 epoch_cyc;
1: + u64 sched_clock_mask;
1: + u64 (*read_sched_clock)();
1: + u32 mult;
1: + u32 shift;
1: };
1:
1: struct armv8pmu_probe_info {
1: - struct arm_pmu *pmu;
1: - bool present;
1: + struct arm_pmu *pmu;
1: + bool present;
1: };
1:
1: enum hw_breakpoint_ops {
1: - HW_BREAKPOINT_INSTALL = 0,
1: - HW_BREAKPOINT_UNINSTALL = 1,
1: - HW_BREAKPOINT_RESTORE = 2,
1: + HW_BREAKPOINT_INSTALL = 0,
1: + HW_BREAKPOINT_UNINSTALL = 1,
1: + HW_BREAKPOINT_RESTORE = 2,
1: };
1:
1: struct cpu_suspend_ctx {
1: - u64 ctx_regs[13];
1: - u64 sp;
1: + u64 ctx_regs[13];
1: + u64 sp;
1: };
1:
1: struct sleep_stack_data {
1: - struct cpu_suspend_ctx system_regs;
1: - long unsigned int callee_saved_regs[12];
1: + struct cpu_suspend_ctx system_regs;
1: + long unsigned int callee_saved_regs[12];
1: };
1:
1: typedef void *acpi_handle;
1: @@ -16136,302 +16342,302 @@ typedef u64 phys_cpuid_t;
1: struct thermal_cooling_device_ops;
1:
1: struct thermal_cooling_device {
1: - int id;
1: - char type[20];
1: - struct device device;
1: - struct device_node *np;
1: - void *devdata;
1: - void *stats;
1: - const struct thermal_cooling_device_ops *ops;
1: - bool updated;
1: - struct mutex lock;
1: - struct list_head thermal_instances;
1: - struct list_head node;
1: + int id;
1: + char type[20];
1: + struct device device;
1: + struct device_node *np;
1: + void *devdata;
1: + void *stats;
1: + const struct thermal_cooling_device_ops *ops;
1: + bool updated;
1: + struct mutex lock;
1: + struct list_head thermal_instances;
1: + struct list_head node;
1: };
1:
1: struct thermal_cooling_device_ops {
1: - int (*get_max_state)(struct thermal_cooling_device *, long unsigned int *);
1: - int (*get_cur_state)(struct thermal_cooling_device *, long unsigned int *);
1: - int (*set_cur_state)(struct thermal_cooling_device *, long unsigned int);
1: - int (*get_requested_power)(struct thermal_cooling_device *, u32 *);
1: - int (*state2power)(struct thermal_cooling_device *, long unsigned int, u32 *);
1: - int (*power2state)(struct thermal_cooling_device *, u32, long unsigned int *);
1: + int (*get_max_state)(struct thermal_cooling_device *, long unsigned int *);
1: + int (*get_cur_state)(struct thermal_cooling_device *, long unsigned int *);
1: + int (*set_cur_state)(struct thermal_cooling_device *, long unsigned int);
1: + int (*get_requested_power)(struct thermal_cooling_device *, u32 *);
1: + int (*state2power)(struct thermal_cooling_device *, long unsigned int, u32 *);
1: + int (*power2state)(struct thermal_cooling_device *, u32, long unsigned int *);
1: };
1:
1: struct acpi_processor_cx {
1: - u8 valid;
1: - u8 type;
1: - u32 address;
1: - u8 entry_method;
1: - u8 index;
1: - u32 latency;
1: - u8 bm_sts_skip;
1: - char desc[32];
1: + u8 valid;
1: + u8 type;
1: + u32 address;
1: + u8 entry_method;
1: + u8 index;
1: + u32 latency;
1: + u8 bm_sts_skip;
1: + char desc[32];
1: };
1:
1: struct acpi_lpi_state {
1: - u32 min_residency;
1: - u32 wake_latency;
1: - u32 flags;
1: - u32 arch_flags;
1: - u32 res_cnt_freq;
1: - u32 enable_parent_state;
1: - u64 address;
1: - u8 index;
1: - u8 entry_method;
1: - char desc[32];
1: + u32 min_residency;
1: + u32 wake_latency;
1: + u32 flags;
1: + u32 arch_flags;
1: + u32 res_cnt_freq;
1: + u32 enable_parent_state;
1: + u64 address;
1: + u8 index;
1: + u8 entry_method;
1: + char desc[32];
1: };
1:
1: struct acpi_processor_power {
1: - int count;
1: - union {
1: - struct acpi_processor_cx states[8];
1: - struct acpi_lpi_state lpi_states[8];
1: - };
1: - int timer_broadcast_on_state;
1: + int count;
1: + union {
1: + struct acpi_processor_cx states[8];
1: + struct acpi_lpi_state lpi_states[8];
1: + };
1: + int timer_broadcast_on_state;
1: };
1:
1: struct acpi_psd_package {
1: - u64 num_entries;
1: - u64 revision;
1: - u64 domain;
1: - u64 coord_type;
1: - u64 num_processors;
1: + u64 num_entries;
1: + u64 revision;
1: + u64 domain;
1: + u64 coord_type;
1: + u64 num_processors;
1: };
1:
1: struct acpi_pct_register {
1: - u8 descriptor;
1: - u16 length;
1: - u8 space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 reserved;
1: - u64 address;
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 reserved;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct acpi_processor_px {
1: - u64 core_frequency;
1: - u64 power;
1: - u64 transition_latency;
1: - u64 bus_master_latency;
1: - u64 control;
1: - u64 status;
1: + u64 core_frequency;
1: + u64 power;
1: + u64 transition_latency;
1: + u64 bus_master_latency;
1: + u64 control;
1: + u64 status;
1: };
1:
1: struct acpi_processor_performance {
1: - unsigned int state;
1: - unsigned int platform_limit;
1: - struct acpi_pct_register control_register;
1: - struct acpi_pct_register status_register;
1: - short: 16;
1: - unsigned int state_count;
1: - int: 32;
1: - struct acpi_processor_px *states;
1: - struct acpi_psd_package domain_info;
1: - cpumask_var_t shared_cpu_map;
1: - unsigned int shared_type;
1: - int: 32;
1: + unsigned int state;
1: + unsigned int platform_limit;
1: + struct acpi_pct_register control_register;
1: + struct acpi_pct_register status_register;
1: + short : 16;
1: + unsigned int state_count;
1: + int : 32;
1: + struct acpi_processor_px *states;
1: + struct acpi_psd_package domain_info;
1: + cpumask_var_t shared_cpu_map;
1: + unsigned int shared_type;
1: + int : 32;
1: } __attribute__((packed));
1:
1: struct acpi_tsd_package {
1: - u64 num_entries;
1: - u64 revision;
1: - u64 domain;
1: - u64 coord_type;
1: - u64 num_processors;
1: + u64 num_entries;
1: + u64 revision;
1: + u64 domain;
1: + u64 coord_type;
1: + u64 num_processors;
1: };
1:
1: struct acpi_processor_tx_tss {
1: - u64 freqpercentage;
1: - u64 power;
1: - u64 transition_latency;
1: - u64 control;
1: - u64 status;
1: + u64 freqpercentage;
1: + u64 power;
1: + u64 transition_latency;
1: + u64 control;
1: + u64 status;
1: };
1:
1: struct acpi_processor_tx {
1: - u16 power;
1: - u16 performance;
1: + u16 power;
1: + u16 performance;
1: };
1:
1: struct acpi_processor;
1:
1: struct acpi_processor_throttling {
1: - unsigned int state;
1: - unsigned int platform_limit;
1: - struct acpi_pct_register control_register;
1: - struct acpi_pct_register status_register;
1: - short: 16;
1: - unsigned int state_count;
1: - int: 32;
1: - struct acpi_processor_tx_tss *states_tss;
1: - struct acpi_tsd_package domain_info;
1: - cpumask_var_t shared_cpu_map;
1: - int (*acpi_processor_get_throttling)(struct acpi_processor *);
1: - int (*acpi_processor_set_throttling)(struct acpi_processor *, int, bool);
1: - u32 address;
1: - u8 duty_offset;
1: - u8 duty_width;
1: - u8 tsd_valid_flag;
1: - char: 8;
1: - unsigned int shared_type;
1: - struct acpi_processor_tx states[16];
1: - int: 32;
1: + unsigned int state;
1: + unsigned int platform_limit;
1: + struct acpi_pct_register control_register;
1: + struct acpi_pct_register status_register;
1: + short : 16;
1: + unsigned int state_count;
1: + int : 32;
1: + struct acpi_processor_tx_tss *states_tss;
1: + struct acpi_tsd_package domain_info;
1: + cpumask_var_t shared_cpu_map;
1: + int (*acpi_processor_get_throttling)(struct acpi_processor *);
1: + int (*acpi_processor_set_throttling)(struct acpi_processor *, int, bool);
1: + u32 address;
1: + u8 duty_offset;
1: + u8 duty_width;
1: + u8 tsd_valid_flag;
1: + char : 8;
1: + unsigned int shared_type;
1: + struct acpi_processor_tx states[16];
1: + int : 32;
1: } __attribute__((packed));
1:
1: struct acpi_processor_flags {
1: - u8 power: 1;
1: - u8 performance: 1;
1: - u8 throttling: 1;
1: - u8 limit: 1;
1: - u8 bm_control: 1;
1: - u8 bm_check: 1;
1: - u8 has_cst: 1;
1: - u8 has_lpi: 1;
1: - u8 power_setup_done: 1;
1: - u8 bm_rld_set: 1;
1: - u8 need_hotplug_init: 1;
1: + u8 power : 1;
1: + u8 performance : 1;
1: + u8 throttling : 1;
1: + u8 limit : 1;
1: + u8 bm_control : 1;
1: + u8 bm_check : 1;
1: + u8 has_cst : 1;
1: + u8 has_lpi : 1;
1: + u8 power_setup_done : 1;
1: + u8 bm_rld_set : 1;
1: + u8 need_hotplug_init : 1;
1: };
1:
1: struct acpi_processor_lx {
1: - int px;
1: - int tx;
1: + int px;
1: + int tx;
1: };
1:
1: struct acpi_processor_limit {
1: - struct acpi_processor_lx state;
1: - struct acpi_processor_lx thermal;
1: - struct acpi_processor_lx user;
1: + struct acpi_processor_lx state;
1: + struct acpi_processor_lx thermal;
1: + struct acpi_processor_lx user;
1: };
1:
1: struct acpi_processor {
1: - acpi_handle handle;
1: - u32 acpi_id;
1: - phys_cpuid_t phys_id;
1: - u32 id;
1: - u32 pblk;
1: - int performance_platform_limit;
1: - int throttling_platform_limit;
1: - struct acpi_processor_flags flags;
1: - struct acpi_processor_power power;
1: - struct acpi_processor_performance *performance;
1: - struct acpi_processor_throttling throttling;
1: - struct acpi_processor_limit limit;
1: - struct thermal_cooling_device *cdev;
1: - struct device *dev;
1: - struct freq_qos_request perflib_req;
1: - struct freq_qos_request thermal_req;
1: + acpi_handle handle;
1: + u32 acpi_id;
1: + phys_cpuid_t phys_id;
1: + u32 id;
1: + u32 pblk;
1: + int performance_platform_limit;
1: + int throttling_platform_limit;
1: + struct acpi_processor_flags flags;
1: + struct acpi_processor_power power;
1: + struct acpi_processor_performance *performance;
1: + struct acpi_processor_throttling throttling;
1: + struct acpi_processor_limit limit;
1: + struct thermal_cooling_device *cdev;
1: + struct device *dev;
1: + struct freq_qos_request perflib_req;
1: + struct freq_qos_request thermal_req;
1: };
1:
1: enum jump_label_type {
1: - JUMP_LABEL_NOP = 0,
1: - JUMP_LABEL_JMP = 1,
1: + JUMP_LABEL_NOP = 0,
1: + JUMP_LABEL_JMP = 1,
1: };
1:
1: struct die_args {
1: - struct pt_regs *regs;
1: - const char *str;
1: - long int err;
1: - int trapnr;
1: - int signr;
1: + struct pt_regs *regs;
1: + const char *str;
1: + long int err;
1: + int trapnr;
1: + int signr;
1: };
1:
1: enum kgdb_bptype {
1: - BP_BREAKPOINT = 0,
1: - BP_HARDWARE_BREAKPOINT = 1,
1: - BP_WRITE_WATCHPOINT = 2,
1: - BP_READ_WATCHPOINT = 3,
1: - BP_ACCESS_WATCHPOINT = 4,
1: - BP_POKE_BREAKPOINT = 5,
1: + BP_BREAKPOINT = 0,
1: + BP_HARDWARE_BREAKPOINT = 1,
1: + BP_WRITE_WATCHPOINT = 2,
1: + BP_READ_WATCHPOINT = 3,
1: + BP_ACCESS_WATCHPOINT = 4,
1: + BP_POKE_BREAKPOINT = 5,
1: };
1:
1: enum kgdb_bpstate {
1: - BP_UNDEFINED = 0,
1: - BP_REMOVED = 1,
1: - BP_SET = 2,
1: - BP_ACTIVE = 3,
1: + BP_UNDEFINED = 0,
1: + BP_REMOVED = 1,
1: + BP_SET = 2,
1: + BP_ACTIVE = 3,
1: };
1:
1: struct kgdb_bkpt {
1: - long unsigned int bpt_addr;
1: - unsigned char saved_instr[4];
1: - enum kgdb_bptype type;
1: - enum kgdb_bpstate state;
1: + long unsigned int bpt_addr;
1: + unsigned char saved_instr[4];
1: + enum kgdb_bptype type;
1: + enum kgdb_bpstate state;
1: };
1:
1: struct dbg_reg_def_t {
1: - char *name;
1: - int size;
1: - int offset;
1: + char *name;
1: + int size;
1: + int offset;
1: };
1:
1: struct kgdb_arch {
1: - unsigned char gdb_bpt_instr[4];
1: - long unsigned int flags;
1: - int (*set_breakpoint)(long unsigned int, char *);
1: - int (*remove_breakpoint)(long unsigned int, char *);
1: - int (*set_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: - int (*remove_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: - void (*disable_hw_break)(struct pt_regs *);
1: - void (*remove_all_hw_break)();
1: - void (*correct_hw_break)();
1: - void (*enable_nmi)(bool);
1: + unsigned char gdb_bpt_instr[4];
1: + long unsigned int flags;
1: + int (*set_breakpoint)(long unsigned int, char *);
1: + int (*remove_breakpoint)(long unsigned int, char *);
1: + int (*set_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + int (*remove_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + void (*disable_hw_break)(struct pt_regs *);
1: + void (*remove_all_hw_break)();
1: + void (*correct_hw_break)();
1: + void (*enable_nmi)(bool);
1: };
1:
1: struct screen_info {
1: - __u8 orig_x;
1: - __u8 orig_y;
1: - __u16 ext_mem_k;
1: - __u16 orig_video_page;
1: - __u8 orig_video_mode;
1: - __u8 orig_video_cols;
1: - __u8 flags;
1: - __u8 unused2;
1: - __u16 orig_video_ega_bx;
1: - __u16 unused3;
1: - __u8 orig_video_lines;
1: - __u8 orig_video_isVGA;
1: - __u16 orig_video_points;
1: - __u16 lfb_width;
1: - __u16 lfb_height;
1: - __u16 lfb_depth;
1: - __u32 lfb_base;
1: - __u32 lfb_size;
1: - __u16 cl_magic;
1: - __u16 cl_offset;
1: - __u16 lfb_linelength;
1: - __u8 red_size;
1: - __u8 red_pos;
1: - __u8 green_size;
1: - __u8 green_pos;
1: - __u8 blue_size;
1: - __u8 blue_pos;
1: - __u8 rsvd_size;
1: - __u8 rsvd_pos;
1: - __u16 vesapm_seg;
1: - __u16 vesapm_off;
1: - __u16 pages;
1: - __u16 vesa_attributes;
1: - __u32 capabilities;
1: - __u32 ext_lfb_base;
1: - __u8 _reserved[2];
1: + __u8 orig_x;
1: + __u8 orig_y;
1: + __u16 ext_mem_k;
1: + __u16 orig_video_page;
1: + __u8 orig_video_mode;
1: + __u8 orig_video_cols;
1: + __u8 flags;
1: + __u8 unused2;
1: + __u16 orig_video_ega_bx;
1: + __u16 unused3;
1: + __u8 orig_video_lines;
1: + __u8 orig_video_isVGA;
1: + __u16 orig_video_points;
1: + __u16 lfb_width;
1: + __u16 lfb_height;
1: + __u16 lfb_depth;
1: + __u32 lfb_base;
1: + __u32 lfb_size;
1: + __u16 cl_magic;
1: + __u16 cl_offset;
1: + __u16 lfb_linelength;
1: + __u8 red_size;
1: + __u8 red_pos;
1: + __u8 green_size;
1: + __u8 green_pos;
1: + __u8 blue_size;
1: + __u8 blue_pos;
1: + __u8 rsvd_size;
1: + __u8 rsvd_pos;
1: + __u16 vesapm_seg;
1: + __u16 vesapm_off;
1: + __u16 pages;
1: + __u16 vesa_attributes;
1: + __u32 capabilities;
1: + __u32 ext_lfb_base;
1: + __u8 _reserved[2];
1: } __attribute__((packed));
1:
1: struct pci_device_id {
1: - __u32 vendor;
1: - __u32 device;
1: - __u32 subvendor;
1: - __u32 subdevice;
1: - __u32 class;
1: - __u32 class_mask;
1: - kernel_ulong_t driver_data;
1: + __u32 vendor;
1: + __u32 device;
1: + __u32 subvendor;
1: + __u32 subdevice;
1: + __u32 class;
1: + __u32 class_mask;
1: + kernel_ulong_t driver_data;
1: };
1:
1: struct resource_entry {
1: - struct list_head node;
1: - struct resource *res;
1: - resource_size_t offset;
1: - struct resource __res;
1: + struct list_head node;
1: + struct resource *res;
1: + resource_size_t offset;
1: + struct resource __res;
1: };
1:
1: typedef u64 acpi_io_address;
1: @@ -16439,87 +16645,87 @@ typedef u64 acpi_io_address;
1: typedef u32 acpi_object_type;
1:
1: union acpi_object {
1: - acpi_object_type type;
1: - struct {
1: - acpi_object_type type;
1: - u64 value;
1: - } integer;
1: - struct {
1: - acpi_object_type type;
1: - u32 length;
1: - char *pointer;
1: - } string;
1: - struct {
1: - acpi_object_type type;
1: - u32 length;
1: - u8 *pointer;
1: - } buffer;
1: - struct {
1: - acpi_object_type type;
1: - u32 count;
1: - union acpi_object *elements;
1: - } package;
1: - struct {
1: - acpi_object_type type;
1: - acpi_object_type actual_type;
1: - acpi_handle handle;
1: - } reference;
1: - struct {
1: - acpi_object_type type;
1: - u32 proc_id;
1: - acpi_io_address pblk_address;
1: - u32 pblk_length;
1: - } processor;
1: - struct {
1: - acpi_object_type type;
1: - u32 system_level;
1: - u32 resource_order;
1: - } power_resource;
1: + acpi_object_type type;
1: + struct {
1: + acpi_object_type type;
1: + u64 value;
1: + } integer;
1: + struct {
1: + acpi_object_type type;
1: + u32 length;
1: + char *pointer;
1: + } string;
1: + struct {
1: + acpi_object_type type;
1: + u32 length;
1: + u8 *pointer;
1: + } buffer;
1: + struct {
1: + acpi_object_type type;
1: + u32 count;
1: + union acpi_object *elements;
1: + } package;
1: + struct {
1: + acpi_object_type type;
1: + acpi_object_type actual_type;
1: + acpi_handle handle;
1: + } reference;
1: + struct {
1: + acpi_object_type type;
1: + u32 proc_id;
1: + acpi_io_address pblk_address;
1: + u32 pblk_length;
1: + } processor;
1: + struct {
1: + acpi_object_type type;
1: + u32 system_level;
1: + u32 resource_order;
1: + } power_resource;
1: };
1:
1: struct acpi_device;
1:
1: struct acpi_hotplug_profile {
1: - struct kobject kobj;
1: - int (*scan_dependent)(struct acpi_device *);
1: - void (*notify_online)(struct acpi_device *);
1: - bool enabled: 1;
1: - bool demand_offline: 1;
1: + struct kobject kobj;
1: + int (*scan_dependent)(struct acpi_device *);
1: + void (*notify_online)(struct acpi_device *);
1: + bool enabled : 1;
1: + bool demand_offline : 1;
1: };
1:
1: struct acpi_device_status {
1: - u32 present: 1;
1: - u32 enabled: 1;
1: - u32 show_in_ui: 1;
1: - u32 functional: 1;
1: - u32 battery_present: 1;
1: - u32 reserved: 27;
1: + u32 present : 1;
1: + u32 enabled : 1;
1: + u32 show_in_ui : 1;
1: + u32 functional : 1;
1: + u32 battery_present : 1;
1: + u32 reserved : 27;
1: };
1:
1: struct acpi_device_flags {
1: - u32 dynamic_status: 1;
1: - u32 removable: 1;
1: - u32 ejectable: 1;
1: - u32 power_manageable: 1;
1: - u32 match_driver: 1;
1: - u32 initialized: 1;
1: - u32 visited: 1;
1: - u32 hotplug_notify: 1;
1: - u32 is_dock_station: 1;
1: - u32 of_compatible_ok: 1;
1: - u32 coherent_dma: 1;
1: - u32 cca_seen: 1;
1: - u32 enumeration_by_parent: 1;
1: - u32 reserved: 19;
1: + u32 dynamic_status : 1;
1: + u32 removable : 1;
1: + u32 ejectable : 1;
1: + u32 power_manageable : 1;
1: + u32 match_driver : 1;
1: + u32 initialized : 1;
1: + u32 visited : 1;
1: + u32 hotplug_notify : 1;
1: + u32 is_dock_station : 1;
1: + u32 of_compatible_ok : 1;
1: + u32 coherent_dma : 1;
1: + u32 cca_seen : 1;
1: + u32 enumeration_by_parent : 1;
1: + u32 reserved : 19;
1: };
1:
1: typedef char acpi_bus_id[8];
1:
1: struct acpi_pnp_type {
1: - u32 hardware_id: 1;
1: - u32 bus_address: 1;
1: - u32 platform_id: 1;
1: - u32 reserved: 29;
1: + u32 hardware_id : 1;
1: + u32 bus_address : 1;
1: + u32 platform_id : 1;
1: + u32 reserved : 29;
1: };
1:
1: typedef u64 acpi_bus_address;
1: @@ -16529,87 +16735,87 @@ typedef char acpi_device_name[40];
1: typedef char acpi_device_class[20];
1:
1: struct acpi_device_pnp {
1: - acpi_bus_id bus_id;
1: - struct acpi_pnp_type type;
1: - acpi_bus_address bus_address;
1: - char *unique_id;
1: - struct list_head ids;
1: - acpi_device_name device_name;
1: - acpi_device_class device_class;
1: - union acpi_object *str_obj;
1: + acpi_bus_id bus_id;
1: + struct acpi_pnp_type type;
1: + acpi_bus_address bus_address;
1: + char *unique_id;
1: + struct list_head ids;
1: + acpi_device_name device_name;
1: + acpi_device_class device_class;
1: + union acpi_object *str_obj;
1: };
1:
1: struct acpi_device_power_flags {
1: - u32 explicit_get: 1;
1: - u32 power_resources: 1;
1: - u32 inrush_current: 1;
1: - u32 power_removed: 1;
1: - u32 ignore_parent: 1;
1: - u32 dsw_present: 1;
1: - u32 reserved: 26;
1: + u32 explicit_get : 1;
1: + u32 power_resources : 1;
1: + u32 inrush_current : 1;
1: + u32 power_removed : 1;
1: + u32 ignore_parent : 1;
1: + u32 dsw_present : 1;
1: + u32 reserved : 26;
1: };
1:
1: struct acpi_device_power_state {
1: - struct {
1: - u8 valid: 1;
1: - u8 explicit_set: 1;
1: - u8 reserved: 6;
1: - } flags;
1: - int power;
1: - int latency;
1: - struct list_head resources;
1: + struct {
1: + u8 valid : 1;
1: + u8 explicit_set : 1;
1: + u8 reserved : 6;
1: + } flags;
1: + int power;
1: + int latency;
1: + struct list_head resources;
1: };
1:
1: struct acpi_device_power {
1: - int state;
1: - struct acpi_device_power_flags flags;
1: - struct acpi_device_power_state states[5];
1: + int state;
1: + struct acpi_device_power_flags flags;
1: + struct acpi_device_power_state states[5];
1: };
1:
1: struct acpi_device_wakeup_flags {
1: - u8 valid: 1;
1: - u8 notifier_present: 1;
1: + u8 valid : 1;
1: + u8 notifier_present : 1;
1: };
1:
1: struct acpi_device_wakeup_context {
1: - void (*func)(struct acpi_device_wakeup_context *);
1: - struct device *dev;
1: + void (*func)(struct acpi_device_wakeup_context *);
1: + struct device *dev;
1: };
1:
1: struct acpi_device_wakeup {
1: - acpi_handle gpe_device;
1: - u64 gpe_number;
1: - u64 sleep_state;
1: - struct list_head resources;
1: - struct acpi_device_wakeup_flags flags;
1: - struct acpi_device_wakeup_context context;
1: - struct wakeup_source *ws;
1: - int prepare_count;
1: - int enable_count;
1: + acpi_handle gpe_device;
1: + u64 gpe_number;
1: + u64 sleep_state;
1: + struct list_head resources;
1: + struct acpi_device_wakeup_flags flags;
1: + struct acpi_device_wakeup_context context;
1: + struct wakeup_source *ws;
1: + int prepare_count;
1: + int enable_count;
1: };
1:
1: struct acpi_device_perf_flags {
1: - u8 reserved: 8;
1: + u8 reserved : 8;
1: };
1:
1: struct acpi_device_perf_state;
1:
1: struct acpi_device_perf {
1: - int state;
1: - struct acpi_device_perf_flags flags;
1: - int state_count;
1: - struct acpi_device_perf_state *states;
1: + int state;
1: + struct acpi_device_perf_flags flags;
1: + int state_count;
1: + struct acpi_device_perf_state *states;
1: };
1:
1: struct acpi_device_dir {
1: - struct proc_dir_entry *entry;
1: + struct proc_dir_entry *entry;
1: };
1:
1: struct acpi_device_data {
1: - const union acpi_object *pointer;
1: - struct list_head properties;
1: - const union acpi_object *of_compatible;
1: - struct list_head subnodes;
1: + const union acpi_object *pointer;
1: + struct list_head properties;
1: + const union acpi_object *of_compatible;
1: + struct list_head subnodes;
1: };
1:
1: struct acpi_scan_handler;
1: @@ -16621,51 +16827,51 @@ struct acpi_driver;
1: struct acpi_gpio_mapping;
1:
1: struct acpi_device {
1: - int device_type;
1: - acpi_handle handle;
1: - struct fwnode_handle fwnode;
1: - struct acpi_device *parent;
1: - struct list_head children;
1: - struct list_head node;
1: - struct list_head wakeup_list;
1: - struct list_head del_list;
1: - struct acpi_device_status status;
1: - struct acpi_device_flags flags;
1: - struct acpi_device_pnp pnp;
1: - struct acpi_device_power power;
1: - struct acpi_device_wakeup wakeup;
1: - struct acpi_device_perf performance;
1: - struct acpi_device_dir dir;
1: - struct acpi_device_data data;
1: - struct acpi_scan_handler *handler;
1: - struct acpi_hotplug_context *hp;
1: - struct acpi_driver *driver;
1: - const struct acpi_gpio_mapping *driver_gpios;
1: - void *driver_data;
1: - struct device dev;
1: - unsigned int physical_node_count;
1: - unsigned int dep_unmet;
1: - struct list_head physical_node_list;
1: - struct mutex physical_node_lock;
1: - void (*remove)(struct acpi_device *);
1: + int device_type;
1: + acpi_handle handle;
1: + struct fwnode_handle fwnode;
1: + struct acpi_device *parent;
1: + struct list_head children;
1: + struct list_head node;
1: + struct list_head wakeup_list;
1: + struct list_head del_list;
1: + struct acpi_device_status status;
1: + struct acpi_device_flags flags;
1: + struct acpi_device_pnp pnp;
1: + struct acpi_device_power power;
1: + struct acpi_device_wakeup wakeup;
1: + struct acpi_device_perf performance;
1: + struct acpi_device_dir dir;
1: + struct acpi_device_data data;
1: + struct acpi_scan_handler *handler;
1: + struct acpi_hotplug_context *hp;
1: + struct acpi_driver *driver;
1: + const struct acpi_gpio_mapping *driver_gpios;
1: + void *driver_data;
1: + struct device dev;
1: + unsigned int physical_node_count;
1: + unsigned int dep_unmet;
1: + struct list_head physical_node_list;
1: + struct mutex physical_node_lock;
1: + void (*remove)(struct acpi_device *);
1: };
1:
1: struct acpi_scan_handler {
1: - const struct acpi_device_id *ids;
1: - struct list_head list_node;
1: - bool (*match)(const char *, const struct acpi_device_id **);
1: - int (*attach)(struct acpi_device *, const struct acpi_device_id *);
1: - void (*detach)(struct acpi_device *);
1: - void (*bind)(struct device *);
1: - void (*unbind)(struct device *);
1: - struct acpi_hotplug_profile hotplug;
1: + const struct acpi_device_id *ids;
1: + struct list_head list_node;
1: + bool (*match)(const char *, const struct acpi_device_id **);
1: + int (*attach)(struct acpi_device *, const struct acpi_device_id *);
1: + void (*detach)(struct acpi_device *);
1: + void (*bind)(struct device *);
1: + void (*unbind)(struct device *);
1: + struct acpi_hotplug_profile hotplug;
1: };
1:
1: struct acpi_hotplug_context {
1: - struct acpi_device *self;
1: - int (*notify)(struct acpi_device *, u32);
1: - void (*uevent)(struct acpi_device *, u32);
1: - void (*fixup)(struct acpi_device *);
1: + struct acpi_device *self;
1: + int (*notify)(struct acpi_device *, u32);
1: + void (*uevent)(struct acpi_device *, u32);
1: + void (*fixup)(struct acpi_device *);
1: };
1:
1: typedef int (*acpi_op_add)(struct acpi_device *);
1: @@ -16675,50 +16881,50 @@ typedef int (*acpi_op_remove)(struct acpi_device *);
1: typedef void (*acpi_op_notify)(struct acpi_device *, u32);
1:
1: struct acpi_device_ops {
1: - acpi_op_add add;
1: - acpi_op_remove remove;
1: - acpi_op_notify notify;
1: + acpi_op_add add;
1: + acpi_op_remove remove;
1: + acpi_op_notify notify;
1: };
1:
1: struct acpi_driver {
1: - char name[80];
1: - char class[80];
1: - const struct acpi_device_id *ids;
1: - unsigned int flags;
1: - struct acpi_device_ops ops;
1: - struct device_driver drv;
1: - struct module *owner;
1: + char name[80];
1: + char class[80];
1: + const struct acpi_device_id *ids;
1: + unsigned int flags;
1: + struct acpi_device_ops ops;
1: + struct device_driver drv;
1: + struct module *owner;
1: };
1:
1: struct acpi_device_perf_state {
1: - struct {
1: - u8 valid: 1;
1: - u8 reserved: 7;
1: - } flags;
1: - u8 power;
1: - u8 performance;
1: - int latency;
1: + struct {
1: + u8 valid : 1;
1: + u8 reserved : 7;
1: + } flags;
1: + u8 power;
1: + u8 performance;
1: + int latency;
1: };
1:
1: struct acpi_gpio_params;
1:
1: struct acpi_gpio_mapping {
1: - const char *name;
1: - const struct acpi_gpio_params *data;
1: - unsigned int size;
1: - unsigned int quirks;
1: + const char *name;
1: + const struct acpi_gpio_params *data;
1: + unsigned int size;
1: + unsigned int quirks;
1: };
1:
1: struct pci_bus;
1:
1: struct acpi_pci_root {
1: - struct acpi_device *device;
1: - struct pci_bus *bus;
1: - u16 segment;
1: - struct resource secondary;
1: - u32 osc_support_set;
1: - u32 osc_control_set;
1: - phys_addr_t mcfg_addr;
1: + struct acpi_device *device;
1: + struct pci_bus *bus;
1: + u16 segment;
1: + struct resource secondary;
1: + u32 osc_support_set;
1: + u32 osc_control_set;
1: + phys_addr_t mcfg_addr;
1: };
1:
1: typedef short unsigned int pci_bus_flags_t;
1: @@ -16730,60 +16936,60 @@ struct pci_ops;
1: struct msi_controller;
1:
1: struct pci_bus {
1: - struct list_head node;
1: - struct pci_bus *parent;
1: - struct list_head children;
1: - struct list_head devices;
1: - struct pci_dev *self;
1: - struct list_head slots;
1: - struct resource *resource[4];
1: - struct list_head resources;
1: - struct resource busn_res;
1: - struct pci_ops *ops;
1: - struct msi_controller *msi;
1: - void *sysdata;
1: - struct proc_dir_entry *procdir;
1: - unsigned char number;
1: - unsigned char primary;
1: - unsigned char max_bus_speed;
1: - unsigned char cur_bus_speed;
1: - int domain_nr;
1: - char name[48];
1: - short unsigned int bridge_ctl;
1: - pci_bus_flags_t bus_flags;
1: - struct device *bridge;
1: - struct device dev;
1: - struct bin_attribute *legacy_io;
1: - struct bin_attribute *legacy_mem;
1: - unsigned int is_added: 1;
1: + struct list_head node;
1: + struct pci_bus *parent;
1: + struct list_head children;
1: + struct list_head devices;
1: + struct pci_dev *self;
1: + struct list_head slots;
1: + struct resource *resource[4];
1: + struct list_head resources;
1: + struct resource busn_res;
1: + struct pci_ops *ops;
1: + struct msi_controller *msi;
1: + void *sysdata;
1: + struct proc_dir_entry *procdir;
1: + unsigned char number;
1: + unsigned char primary;
1: + unsigned char max_bus_speed;
1: + unsigned char cur_bus_speed;
1: + int domain_nr;
1: + char name[48];
1: + short unsigned int bridge_ctl;
1: + pci_bus_flags_t bus_flags;
1: + struct device *bridge;
1: + struct device dev;
1: + struct bin_attribute *legacy_io;
1: + struct bin_attribute *legacy_mem;
1: + unsigned int is_added : 1;
1: };
1:
1: struct acpi_gpio_params {
1: - unsigned int crs_entry_index;
1: - unsigned int line_index;
1: - bool active_low;
1: + unsigned int crs_entry_index;
1: + unsigned int line_index;
1: + bool active_low;
1: };
1:
1: struct hotplug_slot;
1:
1: struct pci_slot {
1: - struct pci_bus *bus;
1: - struct list_head list;
1: - struct hotplug_slot *hotplug;
1: - unsigned char number;
1: - struct kobject kobj;
1: + struct pci_bus *bus;
1: + struct list_head list;
1: + struct hotplug_slot *hotplug;
1: + unsigned char number;
1: + struct kobject kobj;
1: };
1:
1: enum {
1: - PCI_STD_RESOURCES = 0,
1: - PCI_STD_RESOURCE_END = 5,
1: - PCI_ROM_RESOURCE = 6,
1: - PCI_IOV_RESOURCES = 7,
1: - PCI_IOV_RESOURCE_END = 12,
1: - PCI_BRIDGE_RESOURCES = 13,
1: - PCI_BRIDGE_RESOURCE_END = 16,
1: - PCI_NUM_RESOURCES = 17,
1: - DEVICE_COUNT_RESOURCE = 17,
1: + PCI_STD_RESOURCES = 0,
1: + PCI_STD_RESOURCE_END = 5,
1: + PCI_ROM_RESOURCE = 6,
1: + PCI_IOV_RESOURCES = 7,
1: + PCI_IOV_RESOURCE_END = 12,
1: + PCI_BRIDGE_RESOURCES = 13,
1: + PCI_BRIDGE_RESOURCE_END = 16,
1: + PCI_NUM_RESOURCES = 17,
1: + DEVICE_COUNT_RESOURCE = 17,
1: };
1:
1: typedef int pci_power_t;
1: @@ -16805,284 +17011,286 @@ struct pci_vpd;
1: struct pci_sriov;
1:
1: struct pci_dev {
1: - struct list_head bus_list;
1: - struct pci_bus *bus;
1: - struct pci_bus *subordinate;
1: - void *sysdata;
1: - struct proc_dir_entry *procent;
1: - struct pci_slot *slot;
1: - unsigned int devfn;
1: - short unsigned int vendor;
1: - short unsigned int device;
1: - short unsigned int subsystem_vendor;
1: - short unsigned int subsystem_device;
1: - unsigned int class;
1: - u8 revision;
1: - u8 hdr_type;
1: - u16 aer_cap;
1: - struct aer_stats *aer_stats;
1: - u8 pcie_cap;
1: - u8 msi_cap;
1: - u8 msix_cap;
1: - u8 pcie_mpss: 3;
1: - u8 rom_base_reg;
1: - u8 pin;
1: - u16 pcie_flags_reg;
1: - long unsigned int *dma_alias_mask;
1: - struct pci_driver *driver;
1: - u64 dma_mask;
1: - struct device_dma_parameters dma_parms;
1: - pci_power_t current_state;
1: - unsigned int imm_ready: 1;
1: - u8 pm_cap;
1: - unsigned int pme_support: 5;
1: - unsigned int pme_poll: 1;
1: - unsigned int d1_support: 1;
1: - unsigned int d2_support: 1;
1: - unsigned int no_d1d2: 1;
1: - unsigned int no_d3cold: 1;
1: - unsigned int bridge_d3: 1;
1: - unsigned int d3cold_allowed: 1;
1: - unsigned int mmio_always_on: 1;
1: - unsigned int wakeup_prepared: 1;
1: - unsigned int runtime_d3cold: 1;
1: - unsigned int skip_bus_pm: 1;
1: - unsigned int ignore_hotplug: 1;
1: - unsigned int hotplug_user_indicators: 1;
1: - unsigned int clear_retrain_link: 1;
1: - unsigned int d3hot_delay;
1: - unsigned int d3cold_delay;
1: - struct pcie_link_state *link_state;
1: - unsigned int ltr_path: 1;
1: - int l1ss;
1: - unsigned int eetlp_prefix_path: 1;
1: - pci_channel_state_t error_state;
1: - struct device dev;
1: - int cfg_size;
1: - unsigned int irq;
1: - struct resource resource[17];
1: - bool match_driver;
1: - unsigned int transparent: 1;
1: - unsigned int io_window: 1;
1: - unsigned int pref_window: 1;
1: - unsigned int pref_64_window: 1;
1: - unsigned int multifunction: 1;
1: - unsigned int is_busmaster: 1;
1: - unsigned int no_msi: 1;
1: - unsigned int no_64bit_msi: 1;
1: - unsigned int block_cfg_access: 1;
1: - unsigned int broken_parity_status: 1;
1: - unsigned int irq_reroute_variant: 2;
1: - unsigned int msi_enabled: 1;
1: - unsigned int msix_enabled: 1;
1: - unsigned int ari_enabled: 1;
1: - unsigned int ats_enabled: 1;
1: - unsigned int pasid_enabled: 1;
1: - unsigned int pri_enabled: 1;
1: - unsigned int is_managed: 1;
1: - unsigned int needs_freset: 1;
1: - unsigned int state_saved: 1;
1: - unsigned int is_physfn: 1;
1: - unsigned int is_virtfn: 1;
1: - unsigned int reset_fn: 1;
1: - unsigned int is_hotplug_bridge: 1;
1: - unsigned int shpc_managed: 1;
1: - unsigned int is_thunderbolt: 1;
1: - unsigned int untrusted: 1;
1: - unsigned int external_facing: 1;
1: - unsigned int broken_intx_masking: 1;
1: - unsigned int io_window_1k: 1;
1: - unsigned int irq_managed: 1;
1: - unsigned int non_compliant_bars: 1;
1: - unsigned int is_probed: 1;
1: - unsigned int link_active_reporting: 1;
1: - unsigned int no_vf_scan: 1;
1: - unsigned int no_command_memory: 1;
1: - pci_dev_flags_t dev_flags;
1: - atomic_t enable_cnt;
1: - u32 saved_config_space[16];
1: - struct hlist_head saved_cap_space;
1: - struct bin_attribute *rom_attr;
1: - int rom_attr_enabled;
1: - struct bin_attribute *res_attr[17];
1: - struct bin_attribute *res_attr_wc[17];
1: - unsigned int broken_cmd_compl: 1;
1: - unsigned int ptm_root: 1;
1: - unsigned int ptm_enabled: 1;
1: - u8 ptm_granularity;
1: - const struct attribute_group **msi_irq_groups;
1: - struct pci_vpd *vpd;
1: - u16 dpc_cap;
1: - unsigned int dpc_rp_extensions: 1;
1: - u8 dpc_rp_log_size;
1: - union {
1: - struct pci_sriov *sriov;
1: - struct pci_dev *physfn;
1: - };
1: - u16 ats_cap;
1: - u8 ats_stu;
1: - u16 pri_cap;
1: - u32 pri_reqs_alloc;
1: - unsigned int pasid_required: 1;
1: - u16 pasid_cap;
1: - u16 pasid_features;
1: - u16 acs_cap;
1: - phys_addr_t rom;
1: - size_t romlen;
1: - char *driver_override;
1: - long unsigned int priv_flags;
1: + struct list_head bus_list;
1: + struct pci_bus *bus;
1: + struct pci_bus *subordinate;
1: + void *sysdata;
1: + struct proc_dir_entry *procent;
1: + struct pci_slot *slot;
1: + unsigned int devfn;
1: + short unsigned int vendor;
1: + short unsigned int device;
1: + short unsigned int subsystem_vendor;
1: + short unsigned int subsystem_device;
1: + unsigned int class;
1: + u8 revision;
1: + u8 hdr_type;
1: + u16 aer_cap;
1: + struct aer_stats *aer_stats;
1: + u8 pcie_cap;
1: + u8 msi_cap;
1: + u8 msix_cap;
1: + u8 pcie_mpss : 3;
1: + u8 rom_base_reg;
1: + u8 pin;
1: + u16 pcie_flags_reg;
1: + long unsigned int *dma_alias_mask;
1: + struct pci_driver *driver;
1: + u64 dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + pci_power_t current_state;
1: + unsigned int imm_ready : 1;
1: + u8 pm_cap;
1: + unsigned int pme_support : 5;
1: + unsigned int pme_poll : 1;
1: + unsigned int d1_support : 1;
1: + unsigned int d2_support : 1;
1: + unsigned int no_d1d2 : 1;
1: + unsigned int no_d3cold : 1;
1: + unsigned int bridge_d3 : 1;
1: + unsigned int d3cold_allowed : 1;
1: + unsigned int mmio_always_on : 1;
1: + unsigned int wakeup_prepared : 1;
1: + unsigned int runtime_d3cold : 1;
1: + unsigned int skip_bus_pm : 1;
1: + unsigned int ignore_hotplug : 1;
1: + unsigned int hotplug_user_indicators : 1;
1: + unsigned int clear_retrain_link : 1;
1: + unsigned int d3hot_delay;
1: + unsigned int d3cold_delay;
1: + struct pcie_link_state *link_state;
1: + unsigned int ltr_path : 1;
1: + int l1ss;
1: + unsigned int eetlp_prefix_path : 1;
1: + pci_channel_state_t error_state;
1: + struct device dev;
1: + int cfg_size;
1: + unsigned int irq;
1: + struct resource resource[17];
1: + bool match_driver;
1: + unsigned int transparent : 1;
1: + unsigned int io_window : 1;
1: + unsigned int pref_window : 1;
1: + unsigned int pref_64_window : 1;
1: + unsigned int multifunction : 1;
1: + unsigned int is_busmaster : 1;
1: + unsigned int no_msi : 1;
1: + unsigned int no_64bit_msi : 1;
1: + unsigned int block_cfg_access : 1;
1: + unsigned int broken_parity_status : 1;
1: + unsigned int irq_reroute_variant : 2;
1: + unsigned int msi_enabled : 1;
1: + unsigned int msix_enabled : 1;
1: + unsigned int ari_enabled : 1;
1: + unsigned int ats_enabled : 1;
1: + unsigned int pasid_enabled : 1;
1: + unsigned int pri_enabled : 1;
1: + unsigned int is_managed : 1;
1: + unsigned int needs_freset : 1;
1: + unsigned int state_saved : 1;
1: + unsigned int is_physfn : 1;
1: + unsigned int is_virtfn : 1;
1: + unsigned int reset_fn : 1;
1: + unsigned int is_hotplug_bridge : 1;
1: + unsigned int shpc_managed : 1;
1: + unsigned int is_thunderbolt : 1;
1: + unsigned int untrusted : 1;
1: + unsigned int external_facing : 1;
1: + unsigned int broken_intx_masking : 1;
1: + unsigned int io_window_1k : 1;
1: + unsigned int irq_managed : 1;
1: + unsigned int non_compliant_bars : 1;
1: + unsigned int is_probed : 1;
1: + unsigned int link_active_reporting : 1;
1: + unsigned int no_vf_scan : 1;
1: + unsigned int no_command_memory : 1;
1: + pci_dev_flags_t dev_flags;
1: + atomic_t enable_cnt;
1: + u32 saved_config_space[16];
1: + struct hlist_head saved_cap_space;
1: + struct bin_attribute *rom_attr;
1: + int rom_attr_enabled;
1: + struct bin_attribute *res_attr[17];
1: + struct bin_attribute *res_attr_wc[17];
1: + unsigned int broken_cmd_compl : 1;
1: + unsigned int ptm_root : 1;
1: + unsigned int ptm_enabled : 1;
1: + u8 ptm_granularity;
1: + const struct attribute_group **msi_irq_groups;
1: + struct pci_vpd *vpd;
1: + u16 dpc_cap;
1: + unsigned int dpc_rp_extensions : 1;
1: + u8 dpc_rp_log_size;
1: + union {
1: + struct pci_sriov *sriov;
1: + struct pci_dev *physfn;
1: + };
1: + u16 ats_cap;
1: + u8 ats_stu;
1: + u16 pri_cap;
1: + u32 pri_reqs_alloc;
1: + unsigned int pasid_required : 1;
1: + u16 pasid_cap;
1: + u16 pasid_features;
1: + u16 acs_cap;
1: + phys_addr_t rom;
1: + size_t romlen;
1: + char *driver_override;
1: + long unsigned int priv_flags;
1: };
1:
1: struct pci_dynids {
1: - spinlock_t lock;
1: - struct list_head list;
1: + spinlock_t lock;
1: + struct list_head list;
1: };
1:
1: struct pci_error_handlers;
1:
1: struct pci_driver {
1: - struct list_head node;
1: - const char *name;
1: - const struct pci_device_id *id_table;
1: - int (*probe)(struct pci_dev *, const struct pci_device_id *);
1: - void (*remove)(struct pci_dev *);
1: - int (*suspend)(struct pci_dev *, pm_message_t);
1: - int (*resume)(struct pci_dev *);
1: - void (*shutdown)(struct pci_dev *);
1: - int (*sriov_configure)(struct pci_dev *, int);
1: - const struct pci_error_handlers *err_handler;
1: - const struct attribute_group **groups;
1: - struct device_driver driver;
1: - struct pci_dynids dynids;
1: + struct list_head node;
1: + const char *name;
1: + const struct pci_device_id *id_table;
1: + int (*probe)(struct pci_dev *, const struct pci_device_id *);
1: + void (*remove)(struct pci_dev *);
1: + int (*suspend)(struct pci_dev *, pm_message_t);
1: + int (*resume)(struct pci_dev *);
1: + void (*shutdown)(struct pci_dev *);
1: + int (*sriov_configure)(struct pci_dev *, int);
1: + const struct pci_error_handlers *err_handler;
1: + const struct attribute_group **groups;
1: + struct device_driver driver;
1: + struct pci_dynids dynids;
1: };
1:
1: struct pci_host_bridge {
1: - struct device dev;
1: - struct pci_bus *bus;
1: - struct pci_ops *ops;
1: - struct pci_ops *child_ops;
1: - void *sysdata;
1: - int busnr;
1: - struct list_head windows;
1: - struct list_head dma_ranges;
1: - u8 (*swizzle_irq)(struct pci_dev *, u8 *);
1: - int (*map_irq)(const struct pci_dev *, u8, u8);
1: - void (*release_fn)(struct pci_host_bridge *);
1: - void *release_data;
1: - struct msi_controller *msi;
1: - unsigned int ignore_reset_delay: 1;
1: - unsigned int no_ext_tags: 1;
1: - unsigned int native_aer: 1;
1: - unsigned int native_pcie_hotplug: 1;
1: - unsigned int native_shpc_hotplug: 1;
1: - unsigned int native_pme: 1;
1: - unsigned int native_ltr: 1;
1: - unsigned int native_dpc: 1;
1: - unsigned int preserve_config: 1;
1: - unsigned int size_windows: 1;
1: - resource_size_t (*align_resource)(struct pci_dev *, const struct resource *, resource_size_t, resource_size_t, resource_size_t);
1: - long: 64;
1: - long unsigned int private[0];
1: + struct device dev;
1: + struct pci_bus *bus;
1: + struct pci_ops *ops;
1: + struct pci_ops *child_ops;
1: + void *sysdata;
1: + int busnr;
1: + struct list_head windows;
1: + struct list_head dma_ranges;
1: + u8 (*swizzle_irq)(struct pci_dev *, u8 *);
1: + int (*map_irq)(const struct pci_dev *, u8, u8);
1: + void (*release_fn)(struct pci_host_bridge *);
1: + void *release_data;
1: + struct msi_controller *msi;
1: + unsigned int ignore_reset_delay : 1;
1: + unsigned int no_ext_tags : 1;
1: + unsigned int native_aer : 1;
1: + unsigned int native_pcie_hotplug : 1;
1: + unsigned int native_shpc_hotplug : 1;
1: + unsigned int native_pme : 1;
1: + unsigned int native_ltr : 1;
1: + unsigned int native_dpc : 1;
1: + unsigned int preserve_config : 1;
1: + unsigned int size_windows : 1;
1: + resource_size_t (*align_resource)(struct pci_dev *, const struct resource *,
1: + resource_size_t, resource_size_t,
1: + resource_size_t);
1: + long : 64;
1: + long unsigned int private[0];
1: };
1:
1: struct pci_ops {
1: - int (*add_bus)(struct pci_bus *);
1: - void (*remove_bus)(struct pci_bus *);
1: - void * (*map_bus)(struct pci_bus *, unsigned int, int);
1: - int (*read)(struct pci_bus *, unsigned int, int, int, u32 *);
1: - int (*write)(struct pci_bus *, unsigned int, int, int, u32);
1: + int (*add_bus)(struct pci_bus *);
1: + void (*remove_bus)(struct pci_bus *);
1: + void *(*map_bus)(struct pci_bus *, unsigned int, int);
1: + int (*read)(struct pci_bus *, unsigned int, int, int, u32 *);
1: + int (*write)(struct pci_bus *, unsigned int, int, int, u32);
1: };
1:
1: typedef unsigned int pci_ers_result_t;
1:
1: struct pci_error_handlers {
1: - pci_ers_result_t (*error_detected)(struct pci_dev *, pci_channel_state_t);
1: - pci_ers_result_t (*mmio_enabled)(struct pci_dev *);
1: - pci_ers_result_t (*slot_reset)(struct pci_dev *);
1: - void (*reset_prepare)(struct pci_dev *);
1: - void (*reset_done)(struct pci_dev *);
1: - void (*resume)(struct pci_dev *);
1: + pci_ers_result_t (*error_detected)(struct pci_dev *, pci_channel_state_t);
1: + pci_ers_result_t (*mmio_enabled)(struct pci_dev *);
1: + pci_ers_result_t (*slot_reset)(struct pci_dev *);
1: + void (*reset_prepare)(struct pci_dev *);
1: + void (*reset_done)(struct pci_dev *);
1: + void (*resume)(struct pci_dev *);
1: };
1:
1: struct acpi_pci_root_ops;
1:
1: struct acpi_pci_root_info {
1: - struct acpi_pci_root *root;
1: - struct acpi_device *bridge;
1: - struct acpi_pci_root_ops *ops;
1: - struct list_head resources;
1: - char name[16];
1: + struct acpi_pci_root *root;
1: + struct acpi_device *bridge;
1: + struct acpi_pci_root_ops *ops;
1: + struct list_head resources;
1: + char name[16];
1: };
1:
1: struct acpi_pci_root_ops {
1: - struct pci_ops *pci_ops;
1: - int (*init_info)(struct acpi_pci_root_info *);
1: - void (*release_info)(struct acpi_pci_root_info *);
1: - int (*prepare_resources)(struct acpi_pci_root_info *);
1: + struct pci_ops *pci_ops;
1: + int (*init_info)(struct acpi_pci_root_info *);
1: + void (*release_info)(struct acpi_pci_root_info *);
1: + int (*prepare_resources)(struct acpi_pci_root_info *);
1: };
1:
1: struct pci_config_window;
1:
1: struct pci_ecam_ops {
1: - unsigned int bus_shift;
1: - struct pci_ops pci_ops;
1: - int (*init)(struct pci_config_window *);
1: + unsigned int bus_shift;
1: + struct pci_ops pci_ops;
1: + int (*init)(struct pci_config_window *);
1: };
1:
1: struct pci_config_window {
1: - struct resource res;
1: - struct resource busr;
1: - void *priv;
1: - const struct pci_ecam_ops *ops;
1: - union {
1: - void *win;
1: - void **winp;
1: - };
1: - struct device *parent;
1: + struct resource res;
1: + struct resource busr;
1: + void *priv;
1: + const struct pci_ecam_ops *ops;
1: + union {
1: + void *win;
1: + void **winp;
1: + };
1: + struct device *parent;
1: };
1:
1: struct acpi_pci_generic_root_info {
1: - struct acpi_pci_root_info common;
1: - struct pci_config_window *cfg;
1: + struct acpi_pci_root_info common;
1: + struct pci_config_window *cfg;
1: };
1:
1: struct trace_event_raw_instruction_emulation {
1: - struct trace_entry ent;
1: - u32 __data_loc_instr;
1: - u64 addr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_instr;
1: + u64 addr;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_instruction_emulation {
1: - u32 instr;
1: + u32 instr;
1: };
1:
1: typedef void (*btf_trace_instruction_emulation)(void *, const char *, u64);
1:
1: enum insn_emulation_mode {
1: - INSN_UNDEF = 0,
1: - INSN_EMULATE = 1,
1: - INSN_HW = 2,
1: + INSN_UNDEF = 0,
1: + INSN_EMULATE = 1,
1: + INSN_HW = 2,
1: };
1:
1: enum legacy_insn_status {
1: - INSN_DEPRECATED = 0,
1: - INSN_OBSOLETE = 1,
1: + INSN_DEPRECATED = 0,
1: + INSN_OBSOLETE = 1,
1: };
1:
1: struct insn_emulation_ops {
1: - const char *name;
1: - enum legacy_insn_status status;
1: - struct undef_hook *hooks;
1: - int (*set_hw_mode)(bool);
1: + const char *name;
1: + enum legacy_insn_status status;
1: + struct undef_hook *hooks;
1: + int (*set_hw_mode)(bool);
1: };
1:
1: struct insn_emulation {
1: - struct list_head node;
1: - struct insn_emulation_ops *ops;
1: - int current_mode;
1: - int min;
1: - int max;
1: + struct list_head node;
1: + struct insn_emulation_ops *ops;
1: + int current_mode;
1: + int min;
1: + int max;
1: };
1:
1: typedef u64 acpi_size;
1: @@ -17092,351 +17300,352 @@ typedef u64 acpi_physical_address;
1: typedef u32 acpi_status;
1:
1: struct acpi_table_header {
1: - char signature[4];
1: - u32 length;
1: - u8 revision;
1: - u8 checksum;
1: - char oem_id[6];
1: - char oem_table_id[8];
1: - u32 oem_revision;
1: - char asl_compiler_id[4];
1: - u32 asl_compiler_revision;
1: + char signature[4];
1: + u32 length;
1: + u8 revision;
1: + u8 checksum;
1: + char oem_id[6];
1: + char oem_table_id[8];
1: + u32 oem_revision;
1: + char asl_compiler_id[4];
1: + u32 asl_compiler_revision;
1: };
1:
1: struct acpi_generic_address {
1: - u8 space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 access_width;
1: - u64 address;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_width;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct acpi_table_fadt {
1: - struct acpi_table_header header;
1: - u32 facs;
1: - u32 dsdt;
1: - u8 model;
1: - u8 preferred_profile;
1: - u16 sci_interrupt;
1: - u32 smi_command;
1: - u8 acpi_enable;
1: - u8 acpi_disable;
1: - u8 s4_bios_request;
1: - u8 pstate_control;
1: - u32 pm1a_event_block;
1: - u32 pm1b_event_block;
1: - u32 pm1a_control_block;
1: - u32 pm1b_control_block;
1: - u32 pm2_control_block;
1: - u32 pm_timer_block;
1: - u32 gpe0_block;
1: - u32 gpe1_block;
1: - u8 pm1_event_length;
1: - u8 pm1_control_length;
1: - u8 pm2_control_length;
1: - u8 pm_timer_length;
1: - u8 gpe0_block_length;
1: - u8 gpe1_block_length;
1: - u8 gpe1_base;
1: - u8 cst_control;
1: - u16 c2_latency;
1: - u16 c3_latency;
1: - u16 flush_size;
1: - u16 flush_stride;
1: - u8 duty_offset;
1: - u8 duty_width;
1: - u8 day_alarm;
1: - u8 month_alarm;
1: - u8 century;
1: - u16 boot_flags;
1: - u8 reserved;
1: - u32 flags;
1: - struct acpi_generic_address reset_register;
1: - u8 reset_value;
1: - u16 arm_boot_flags;
1: - u8 minor_revision;
1: - u64 Xfacs;
1: - u64 Xdsdt;
1: - struct acpi_generic_address xpm1a_event_block;
1: - struct acpi_generic_address xpm1b_event_block;
1: - struct acpi_generic_address xpm1a_control_block;
1: - struct acpi_generic_address xpm1b_control_block;
1: - struct acpi_generic_address xpm2_control_block;
1: - struct acpi_generic_address xpm_timer_block;
1: - struct acpi_generic_address xgpe0_block;
1: - struct acpi_generic_address xgpe1_block;
1: - struct acpi_generic_address sleep_control;
1: - struct acpi_generic_address sleep_status;
1: - u64 hypervisor_id;
1: + struct acpi_table_header header;
1: + u32 facs;
1: + u32 dsdt;
1: + u8 model;
1: + u8 preferred_profile;
1: + u16 sci_interrupt;
1: + u32 smi_command;
1: + u8 acpi_enable;
1: + u8 acpi_disable;
1: + u8 s4_bios_request;
1: + u8 pstate_control;
1: + u32 pm1a_event_block;
1: + u32 pm1b_event_block;
1: + u32 pm1a_control_block;
1: + u32 pm1b_control_block;
1: + u32 pm2_control_block;
1: + u32 pm_timer_block;
1: + u32 gpe0_block;
1: + u32 gpe1_block;
1: + u8 pm1_event_length;
1: + u8 pm1_control_length;
1: + u8 pm2_control_length;
1: + u8 pm_timer_length;
1: + u8 gpe0_block_length;
1: + u8 gpe1_block_length;
1: + u8 gpe1_base;
1: + u8 cst_control;
1: + u16 c2_latency;
1: + u16 c3_latency;
1: + u16 flush_size;
1: + u16 flush_stride;
1: + u8 duty_offset;
1: + u8 duty_width;
1: + u8 day_alarm;
1: + u8 month_alarm;
1: + u8 century;
1: + u16 boot_flags;
1: + u8 reserved;
1: + u32 flags;
1: + struct acpi_generic_address reset_register;
1: + u8 reset_value;
1: + u16 arm_boot_flags;
1: + u8 minor_revision;
1: + u64 Xfacs;
1: + u64 Xdsdt;
1: + struct acpi_generic_address xpm1a_event_block;
1: + struct acpi_generic_address xpm1b_event_block;
1: + struct acpi_generic_address xpm1a_control_block;
1: + struct acpi_generic_address xpm1b_control_block;
1: + struct acpi_generic_address xpm2_control_block;
1: + struct acpi_generic_address xpm_timer_block;
1: + struct acpi_generic_address xgpe0_block;
1: + struct acpi_generic_address xgpe1_block;
1: + struct acpi_generic_address sleep_control;
1: + struct acpi_generic_address sleep_status;
1: + u64 hypervisor_id;
1: } __attribute__((packed));
1:
1: enum acpi_srat_type {
1: - ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
1: - ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
1: - ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
1: - ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
1: - ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4,
1: - ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5,
1: - ACPI_SRAT_TYPE_RESERVED = 6,
1: + ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
1: + ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
1: + ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
1: + ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
1: + ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4,
1: + ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5,
1: + ACPI_SRAT_TYPE_RESERVED = 6,
1: };
1:
1: struct acpi_srat_gicc_affinity {
1: - struct acpi_subtable_header header;
1: - u32 proximity_domain;
1: - u32 acpi_processor_uid;
1: - u32 flags;
1: - u32 clock_domain;
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u32 acpi_processor_uid;
1: + u32 flags;
1: + u32 clock_domain;
1: } __attribute__((packed));
1:
1: struct parking_protocol_mailbox {
1: - __le32 cpu_id;
1: - __le32 reserved;
1: - __le64 entry_point;
1: + __le32 cpu_id;
1: + __le32 reserved;
1: + __le64 entry_point;
1: };
1:
1: struct cpu_mailbox_entry {
1: - struct parking_protocol_mailbox *mailbox;
1: - phys_addr_t mailbox_addr;
1: - u8 version;
1: - u8 gic_cpu_id;
1: + struct parking_protocol_mailbox *mailbox;
1: + phys_addr_t mailbox_addr;
1: + u8 version;
1: + u8 gic_cpu_id;
1: };
1:
1: enum {
1: - MEMREMAP_WB = 1,
1: - MEMREMAP_WT = 2,
1: - MEMREMAP_WC = 4,
1: - MEMREMAP_ENC = 8,
1: - MEMREMAP_DEC = 16,
1: + MEMREMAP_WB = 1,
1: + MEMREMAP_WT = 2,
1: + MEMREMAP_WC = 4,
1: + MEMREMAP_ENC = 8,
1: + MEMREMAP_DEC = 16,
1: };
1:
1: struct pv_time_ops {
1: - long long unsigned int (*steal_clock)(int);
1: + long long unsigned int (*steal_clock)(int);
1: };
1:
1: struct paravirt_patch_template {
1: - struct pv_time_ops time;
1: + struct pv_time_ops time;
1: };
1:
1: struct pvclock_vcpu_stolen_time {
1: - __le32 revision;
1: - __le32 attributes;
1: - __le64 stolen_time;
1: - u8 padding[48];
1: + __le32 revision;
1: + __le32 attributes;
1: + __le64 stolen_time;
1: + u8 padding[48];
1: };
1:
1: struct pv_time_stolen_time_region {
1: - struct pvclock_vcpu_stolen_time *kaddr;
1: + struct pvclock_vcpu_stolen_time *kaddr;
1: };
1:
1: typedef u64 p4dval_t;
1:
1: typedef struct {
1: - pgd_t pgd;
1: + pgd_t pgd;
1: } p4d_t;
1:
1: enum pageflags {
1: - PG_locked = 0,
1: - PG_referenced = 1,
1: - PG_uptodate = 2,
1: - PG_dirty = 3,
1: - PG_lru = 4,
1: - PG_active = 5,
1: - PG_workingset = 6,
1: - PG_waiters = 7,
1: - PG_error = 8,
1: - PG_slab = 9,
1: - PG_owner_priv_1 = 10,
1: - PG_arch_1 = 11,
1: - PG_reserved = 12,
1: - PG_private = 13,
1: - PG_private_2 = 14,
1: - PG_writeback = 15,
1: - PG_head = 16,
1: - PG_mappedtodisk = 17,
1: - PG_reclaim = 18,
1: - PG_swapbacked = 19,
1: - PG_unevictable = 20,
1: - PG_mlocked = 21,
1: - PG_hwpoison = 22,
1: - PG_young = 23,
1: - PG_idle = 24,
1: - PG_arch_2 = 25,
1: - __NR_PAGEFLAGS = 26,
1: - PG_checked = 10,
1: - PG_swapcache = 10,
1: - PG_fscache = 14,
1: - PG_pinned = 10,
1: - PG_savepinned = 3,
1: - PG_foreign = 10,
1: - PG_xen_remapped = 10,
1: - PG_slob_free = 13,
1: - PG_double_map = 6,
1: - PG_isolated = 18,
1: - PG_reported = 2,
1: + PG_locked = 0,
1: + PG_referenced = 1,
1: + PG_uptodate = 2,
1: + PG_dirty = 3,
1: + PG_lru = 4,
1: + PG_active = 5,
1: + PG_workingset = 6,
1: + PG_waiters = 7,
1: + PG_error = 8,
1: + PG_slab = 9,
1: + PG_owner_priv_1 = 10,
1: + PG_arch_1 = 11,
1: + PG_reserved = 12,
1: + PG_private = 13,
1: + PG_private_2 = 14,
1: + PG_writeback = 15,
1: + PG_head = 16,
1: + PG_mappedtodisk = 17,
1: + PG_reclaim = 18,
1: + PG_swapbacked = 19,
1: + PG_unevictable = 20,
1: + PG_mlocked = 21,
1: + PG_hwpoison = 22,
1: + PG_young = 23,
1: + PG_idle = 24,
1: + PG_arch_2 = 25,
1: + __NR_PAGEFLAGS = 26,
1: + PG_checked = 10,
1: + PG_swapcache = 10,
1: + PG_fscache = 14,
1: + PG_pinned = 10,
1: + PG_savepinned = 3,
1: + PG_foreign = 10,
1: + PG_xen_remapped = 10,
1: + PG_slob_free = 13,
1: + PG_double_map = 6,
1: + PG_isolated = 18,
1: + PG_reported = 2,
1: };
1:
1: struct mem_section_usage {
1: - long unsigned int subsection_map[8];
1: - long unsigned int pageblock_flags[0];
1: + long unsigned int subsection_map[8];
1: + long unsigned int pageblock_flags[0];
1: };
1:
1: struct page_ext;
1:
1: struct mem_section {
1: - long unsigned int section_mem_map;
1: - struct mem_section_usage *usage;
1: - struct page_ext *page_ext;
1: - long unsigned int pad;
1: + long unsigned int section_mem_map;
1: + struct mem_section_usage *usage;
1: + struct page_ext *page_ext;
1: + long unsigned int pad;
1: };
1:
1: struct page_ext {
1: - long unsigned int flags;
1: + long unsigned int flags;
1: };
1:
1: struct xa_node {
1: - unsigned char shift;
1: - unsigned char offset;
1: - unsigned char count;
1: - unsigned char nr_values;
1: - struct xa_node *parent;
1: - struct xarray *array;
1: - union {
1: - struct list_head private_list;
1: - struct callback_head callback_head;
1: - };
1: - void *slots[64];
1: - union {
1: - long unsigned int tags[3];
1: - long unsigned int marks[3];
1: - };
1: + unsigned char shift;
1: + unsigned char offset;
1: + unsigned char count;
1: + unsigned char nr_values;
1: + struct xa_node *parent;
1: + struct xarray *array;
1: + union {
1: + struct list_head private_list;
1: + struct callback_head callback_head;
1: + };
1: + void *slots[64];
1: + union {
1: + long unsigned int tags[3];
1: + long unsigned int marks[3];
1: + };
1: };
1:
1: typedef void (*xa_update_node_t)(struct xa_node *);
1:
1: struct xa_state {
1: - struct xarray *xa;
1: - long unsigned int xa_index;
1: - unsigned char xa_shift;
1: - unsigned char xa_sibs;
1: - unsigned char xa_offset;
1: - unsigned char xa_pad;
1: - struct xa_node *xa_node;
1: - struct xa_node *xa_alloc;
1: - xa_update_node_t xa_update;
1: + struct xarray *xa;
1: + long unsigned int xa_index;
1: + unsigned char xa_shift;
1: + unsigned char xa_sibs;
1: + unsigned char xa_offset;
1: + unsigned char xa_pad;
1: + struct xa_node *xa_node;
1: + struct xa_node *xa_alloc;
1: + xa_update_node_t xa_update;
1: };
1:
1: struct pbe {
1: - void *address;
1: - void *orig_address;
1: - struct pbe *next;
1: + void *address;
1: + void *orig_address;
1: + struct pbe *next;
1: };
1:
1: struct arch_hibernate_hdr_invariants {
1: - char uts_version[65];
1: + char uts_version[65];
1: };
1:
1: struct arch_hibernate_hdr {
1: - struct arch_hibernate_hdr_invariants invariants;
1: - phys_addr_t ttbr1_el1;
1: - void (*reenter_kernel)();
1: - phys_addr_t __hyp_stub_vectors;
1: - u64 sleep_cpu_mpidr;
1: -};
1: -
1: -enum {
1: - IRQD_TRIGGER_MASK = 15,
1: - IRQD_SETAFFINITY_PENDING = 256,
1: - IRQD_ACTIVATED = 512,
1: - IRQD_NO_BALANCING = 1024,
1: - IRQD_PER_CPU = 2048,
1: - IRQD_AFFINITY_SET = 4096,
1: - IRQD_LEVEL = 8192,
1: - IRQD_WAKEUP_STATE = 16384,
1: - IRQD_MOVE_PCNTXT = 32768,
1: - IRQD_IRQ_DISABLED = 65536,
1: - IRQD_IRQ_MASKED = 131072,
1: - IRQD_IRQ_INPROGRESS = 262144,
1: - IRQD_WAKEUP_ARMED = 524288,
1: - IRQD_FORWARDED_TO_VCPU = 1048576,
1: - IRQD_AFFINITY_MANAGED = 2097152,
1: - IRQD_IRQ_STARTED = 4194304,
1: - IRQD_MANAGED_SHUTDOWN = 8388608,
1: - IRQD_SINGLE_TARGET = 16777216,
1: - IRQD_DEFAULT_TRIGGER_SET = 33554432,
1: - IRQD_CAN_RESERVE = 67108864,
1: - IRQD_MSI_NOMASK_QUIRK = 134217728,
1: - IRQD_HANDLE_ENFORCE_IRQCTX = 268435456,
1: - IRQD_AFFINITY_ON_ACTIVATE = 536870912,
1: - IRQD_IRQ_ENABLED_ON_SUSPEND = 1073741824,
1: + struct arch_hibernate_hdr_invariants invariants;
1: + phys_addr_t ttbr1_el1;
1: + void (*reenter_kernel)();
1: + phys_addr_t __hyp_stub_vectors;
1: + u64 sleep_cpu_mpidr;
1: +};
1: +
1: +enum {
1: + IRQD_TRIGGER_MASK = 15,
1: + IRQD_SETAFFINITY_PENDING = 256,
1: + IRQD_ACTIVATED = 512,
1: + IRQD_NO_BALANCING = 1024,
1: + IRQD_PER_CPU = 2048,
1: + IRQD_AFFINITY_SET = 4096,
1: + IRQD_LEVEL = 8192,
1: + IRQD_WAKEUP_STATE = 16384,
1: + IRQD_MOVE_PCNTXT = 32768,
1: + IRQD_IRQ_DISABLED = 65536,
1: + IRQD_IRQ_MASKED = 131072,
1: + IRQD_IRQ_INPROGRESS = 262144,
1: + IRQD_WAKEUP_ARMED = 524288,
1: + IRQD_FORWARDED_TO_VCPU = 1048576,
1: + IRQD_AFFINITY_MANAGED = 2097152,
1: + IRQD_IRQ_STARTED = 4194304,
1: + IRQD_MANAGED_SHUTDOWN = 8388608,
1: + IRQD_SINGLE_TARGET = 16777216,
1: + IRQD_DEFAULT_TRIGGER_SET = 33554432,
1: + IRQD_CAN_RESERVE = 67108864,
1: + IRQD_MSI_NOMASK_QUIRK = 134217728,
1: + IRQD_HANDLE_ENFORCE_IRQCTX = 268435456,
1: + IRQD_AFFINITY_ON_ACTIVATE = 536870912,
1: + IRQD_IRQ_ENABLED_ON_SUSPEND = 1073741824,
1: };
1:
1: struct kimage_arch {
1: - void *dtb;
1: - long unsigned int dtb_mem;
1: - void *elf_headers;
1: - long unsigned int elf_headers_mem;
1: - long unsigned int elf_headers_sz;
1: + void *dtb;
1: + long unsigned int dtb_mem;
1: + void *elf_headers;
1: + long unsigned int elf_headers_mem;
1: + long unsigned int elf_headers_sz;
1: };
1:
1: typedef int kexec_probe_t(const char *, long unsigned int);
1:
1: struct kimage;
1:
1: -typedef void *kexec_load_t(struct kimage *, char *, long unsigned int, char *, long unsigned int, char *, long unsigned int);
1: +typedef void *kexec_load_t(struct kimage *, char *, long unsigned int, char *,
1: + long unsigned int, char *, long unsigned int);
1:
1: typedef int kexec_cleanup_t(void *);
1:
1: struct kexec_file_ops {
1: - kexec_probe_t *probe;
1: - kexec_load_t *load;
1: - kexec_cleanup_t *cleanup;
1: + kexec_probe_t *probe;
1: + kexec_load_t *load;
1: + kexec_cleanup_t *cleanup;
1: };
1:
1: typedef long unsigned int kimage_entry_t;
1:
1: struct kexec_segment {
1: - union {
1: - void *buf;
1: - void *kbuf;
1: - };
1: - size_t bufsz;
1: - long unsigned int mem;
1: - size_t memsz;
1: + union {
1: + void *buf;
1: + void *kbuf;
1: + };
1: + size_t bufsz;
1: + long unsigned int mem;
1: + size_t memsz;
1: };
1:
1: struct purgatory_info {
1: - const Elf64_Ehdr *ehdr;
1: - Elf64_Shdr *sechdrs;
1: - void *purgatory_buf;
1: + const Elf64_Ehdr *ehdr;
1: + Elf64_Shdr *sechdrs;
1: + void *purgatory_buf;
1: };
1:
1: struct kimage {
1: - kimage_entry_t head;
1: - kimage_entry_t *entry;
1: - kimage_entry_t *last_entry;
1: - long unsigned int start;
1: - struct page *control_code_page;
1: - struct page *swap_page;
1: - void *vmcoreinfo_data_copy;
1: - long unsigned int nr_segments;
1: - struct kexec_segment segment[16];
1: - struct list_head control_pages;
1: - struct list_head dest_pages;
1: - struct list_head unusable_pages;
1: - long unsigned int control_page;
1: - unsigned int type: 1;
1: - unsigned int preserve_context: 1;
1: - unsigned int file_mode: 1;
1: - struct kimage_arch arch;
1: - void *kernel_buf;
1: - long unsigned int kernel_buf_len;
1: - void *initrd_buf;
1: - long unsigned int initrd_buf_len;
1: - char *cmdline_buf;
1: - long unsigned int cmdline_buf_len;
1: - const struct kexec_file_ops *fops;
1: - void *image_loader_data;
1: - struct purgatory_info purgatory_info;
1: + kimage_entry_t head;
1: + kimage_entry_t *entry;
1: + kimage_entry_t *last_entry;
1: + long unsigned int start;
1: + struct page *control_code_page;
1: + struct page *swap_page;
1: + void *vmcoreinfo_data_copy;
1: + long unsigned int nr_segments;
1: + struct kexec_segment segment[16];
1: + struct list_head control_pages;
1: + struct list_head dest_pages;
1: + struct list_head unusable_pages;
1: + long unsigned int control_page;
1: + unsigned int type : 1;
1: + unsigned int preserve_context : 1;
1: + unsigned int file_mode : 1;
1: + struct kimage_arch arch;
1: + void *kernel_buf;
1: + long unsigned int kernel_buf_len;
1: + void *initrd_buf;
1: + long unsigned int initrd_buf_len;
1: + char *cmdline_buf;
1: + long unsigned int cmdline_buf_len;
1: + const struct kexec_file_ops *fops;
1: + void *image_loader_data;
1: + struct purgatory_info purgatory_info;
1: };
1:
1: typedef u8 uint8_t;
1: @@ -17444,26 +17653,26 @@ typedef u8 uint8_t;
1: typedef u64 uint64_t;
1:
1: struct kexec_buf {
1: - struct kimage *image;
1: - void *buffer;
1: - long unsigned int bufsz;
1: - long unsigned int mem;
1: - long unsigned int memsz;
1: - long unsigned int buf_align;
1: - long unsigned int buf_min;
1: - long unsigned int buf_max;
1: - bool top_down;
1: + struct kimage *image;
1: + void *buffer;
1: + long unsigned int bufsz;
1: + long unsigned int mem;
1: + long unsigned int memsz;
1: + long unsigned int buf_align;
1: + long unsigned int buf_min;
1: + long unsigned int buf_max;
1: + bool top_down;
1: };
1:
1: struct crash_mem_range {
1: - u64 start;
1: - u64 end;
1: + u64 start;
1: + u64 end;
1: };
1:
1: struct crash_mem {
1: - unsigned int max_nr_ranges;
1: - unsigned int nr_ranges;
1: - struct crash_mem_range ranges[0];
1: + unsigned int max_nr_ranges;
1: + unsigned int nr_ranges;
1: + struct crash_mem_range ranges[0];
1: };
1:
1: typedef __be32 fdt32_t;
1: @@ -17471,43 +17680,43 @@ typedef __be32 fdt32_t;
1: typedef __be64 fdt64_t;
1:
1: struct fdt_header {
1: - fdt32_t magic;
1: - fdt32_t totalsize;
1: - fdt32_t off_dt_struct;
1: - fdt32_t off_dt_strings;
1: - fdt32_t off_mem_rsvmap;
1: - fdt32_t version;
1: - fdt32_t last_comp_version;
1: - fdt32_t boot_cpuid_phys;
1: - fdt32_t size_dt_strings;
1: - fdt32_t size_dt_struct;
1: + fdt32_t magic;
1: + fdt32_t totalsize;
1: + fdt32_t off_dt_struct;
1: + fdt32_t off_dt_strings;
1: + fdt32_t off_mem_rsvmap;
1: + fdt32_t version;
1: + fdt32_t last_comp_version;
1: + fdt32_t boot_cpuid_phys;
1: + fdt32_t size_dt_strings;
1: + fdt32_t size_dt_struct;
1: };
1:
1: enum key_being_used_for {
1: - VERIFYING_MODULE_SIGNATURE = 0,
1: - VERIFYING_FIRMWARE_SIGNATURE = 1,
1: - VERIFYING_KEXEC_PE_SIGNATURE = 2,
1: - VERIFYING_KEY_SIGNATURE = 3,
1: - VERIFYING_KEY_SELF_SIGNATURE = 4,
1: - VERIFYING_UNSPECIFIED_SIGNATURE = 5,
1: - NR__KEY_BEING_USED_FOR = 6,
1: + VERIFYING_MODULE_SIGNATURE = 0,
1: + VERIFYING_FIRMWARE_SIGNATURE = 1,
1: + VERIFYING_KEXEC_PE_SIGNATURE = 2,
1: + VERIFYING_KEY_SIGNATURE = 3,
1: + VERIFYING_KEY_SELF_SIGNATURE = 4,
1: + VERIFYING_UNSPECIFIED_SIGNATURE = 5,
1: + NR__KEY_BEING_USED_FOR = 6,
1: };
1:
1: struct arm64_image_header {
1: - __le32 code0;
1: - __le32 code1;
1: - __le64 text_offset;
1: - __le64 image_size;
1: - __le64 flags;
1: - __le64 res2;
1: - __le64 res3;
1: - __le64 res4;
1: - __le32 magic;
1: - __le32 res5;
1: + __le32 code0;
1: + __le32 code1;
1: + __le64 text_offset;
1: + __le64 image_size;
1: + __le64 flags;
1: + __le64 res2;
1: + __le64 res3;
1: + __le64 res4;
1: + __le32 magic;
1: + __le32 res5;
1: };
1:
1: typedef struct {
1: - long unsigned int val;
1: + long unsigned int val;
1: } swp_entry_t;
1:
1: typedef u32 probe_opcode_t;
1: @@ -17515,139 +17724,141 @@ typedef u32 probe_opcode_t;
1: typedef void probes_handler_t(u32, long int, struct pt_regs *);
1:
1: struct arch_probe_insn {
1: - probe_opcode_t *insn;
1: - pstate_check_t *pstate_cc;
1: - probes_handler_t *handler;
1: - long unsigned int restore;
1: + probe_opcode_t *insn;
1: + pstate_check_t *pstate_cc;
1: + probes_handler_t *handler;
1: + long unsigned int restore;
1: };
1:
1: typedef u32 kprobe_opcode_t;
1:
1: struct arch_specific_insn {
1: - struct arch_probe_insn api;
1: + struct arch_probe_insn api;
1: };
1:
1: struct kprobe;
1:
1: struct prev_kprobe {
1: - struct kprobe *kp;
1: - unsigned int status;
1: + struct kprobe *kp;
1: + unsigned int status;
1: };
1:
1: typedef int (*kprobe_pre_handler_t)(struct kprobe *, struct pt_regs *);
1:
1: -typedef void (*kprobe_post_handler_t)(struct kprobe *, struct pt_regs *, long unsigned int);
1: +typedef void (*kprobe_post_handler_t)(struct kprobe *, struct pt_regs *,
1: + long unsigned int);
1:
1: typedef int (*kprobe_fault_handler_t)(struct kprobe *, struct pt_regs *, int);
1:
1: struct kprobe {
1: - struct hlist_node hlist;
1: - struct list_head list;
1: - long unsigned int nmissed;
1: - kprobe_opcode_t *addr;
1: - const char *symbol_name;
1: - unsigned int offset;
1: - kprobe_pre_handler_t pre_handler;
1: - kprobe_post_handler_t post_handler;
1: - kprobe_fault_handler_t fault_handler;
1: - kprobe_opcode_t opcode;
1: - struct arch_specific_insn ainsn;
1: - u32 flags;
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + long unsigned int nmissed;
1: + kprobe_opcode_t *addr;
1: + const char *symbol_name;
1: + unsigned int offset;
1: + kprobe_pre_handler_t pre_handler;
1: + kprobe_post_handler_t post_handler;
1: + kprobe_fault_handler_t fault_handler;
1: + kprobe_opcode_t opcode;
1: + struct arch_specific_insn ainsn;
1: + u32 flags;
1: };
1:
1: struct kprobe_step_ctx {
1: - long unsigned int ss_pending;
1: - long unsigned int match_addr;
1: + long unsigned int ss_pending;
1: + long unsigned int match_addr;
1: };
1:
1: struct kprobe_ctlblk {
1: - unsigned int kprobe_status;
1: - long unsigned int saved_irqflag;
1: - struct prev_kprobe prev_kprobe;
1: - struct kprobe_step_ctx ss_ctx;
1: + unsigned int kprobe_status;
1: + long unsigned int saved_irqflag;
1: + struct prev_kprobe prev_kprobe;
1: + struct kprobe_step_ctx ss_ctx;
1: };
1:
1: struct kretprobe_instance;
1:
1: -typedef int (*kretprobe_handler_t)(struct kretprobe_instance *, struct pt_regs *);
1: +typedef int (*kretprobe_handler_t)(struct kretprobe_instance *,
1: + struct pt_regs *);
1:
1: struct kretprobe;
1:
1: struct kretprobe_instance {
1: - union {
1: - struct hlist_node hlist;
1: - struct callback_head rcu;
1: - };
1: - struct kretprobe *rp;
1: - kprobe_opcode_t *ret_addr;
1: - struct task_struct *task;
1: - void *fp;
1: - char data[0];
1: + union {
1: + struct hlist_node hlist;
1: + struct callback_head rcu;
1: + };
1: + struct kretprobe *rp;
1: + kprobe_opcode_t *ret_addr;
1: + struct task_struct *task;
1: + void *fp;
1: + char data[0];
1: };
1:
1: struct kretprobe {
1: - struct kprobe kp;
1: - kretprobe_handler_t handler;
1: - kretprobe_handler_t entry_handler;
1: - int maxactive;
1: - int nmissed;
1: - size_t data_size;
1: - struct hlist_head free_instances;
1: - raw_spinlock_t lock;
1: + struct kprobe kp;
1: + kretprobe_handler_t handler;
1: + kretprobe_handler_t entry_handler;
1: + int maxactive;
1: + int nmissed;
1: + size_t data_size;
1: + struct hlist_head free_instances;
1: + raw_spinlock_t lock;
1: };
1:
1: struct kprobe_insn_cache {
1: - struct mutex mutex;
1: - void * (*alloc)();
1: - void (*free)(void *);
1: - const char *sym;
1: - struct list_head pages;
1: - size_t insn_size;
1: - int nr_garbage;
1: + struct mutex mutex;
1: + void *(*alloc)();
1: + void (*free)(void *);
1: + const char *sym;
1: + struct list_head pages;
1: + size_t insn_size;
1: + int nr_garbage;
1: };
1:
1: enum probe_insn {
1: - INSN_REJECTED = 0,
1: - INSN_GOOD_NO_SLOT = 1,
1: - INSN_GOOD = 2,
1: + INSN_REJECTED = 0,
1: + INSN_GOOD_NO_SLOT = 1,
1: + INSN_GOOD = 2,
1: };
1:
1: enum aarch64_insn_special_register {
1: - AARCH64_INSN_SPCLREG_SPSR_EL1 = 49664,
1: - AARCH64_INSN_SPCLREG_ELR_EL1 = 49665,
1: - AARCH64_INSN_SPCLREG_SP_EL0 = 49672,
1: - AARCH64_INSN_SPCLREG_SPSEL = 49680,
1: - AARCH64_INSN_SPCLREG_CURRENTEL = 49682,
1: - AARCH64_INSN_SPCLREG_DAIF = 55825,
1: - AARCH64_INSN_SPCLREG_NZCV = 55824,
1: - AARCH64_INSN_SPCLREG_FPCR = 55840,
1: - AARCH64_INSN_SPCLREG_DSPSR_EL0 = 55848,
1: - AARCH64_INSN_SPCLREG_DLR_EL0 = 55849,
1: - AARCH64_INSN_SPCLREG_SPSR_EL2 = 57856,
1: - AARCH64_INSN_SPCLREG_ELR_EL2 = 57857,
1: - AARCH64_INSN_SPCLREG_SP_EL1 = 57864,
1: - AARCH64_INSN_SPCLREG_SPSR_INQ = 57880,
1: - AARCH64_INSN_SPCLREG_SPSR_ABT = 57881,
1: - AARCH64_INSN_SPCLREG_SPSR_UND = 57882,
1: - AARCH64_INSN_SPCLREG_SPSR_FIQ = 57883,
1: - AARCH64_INSN_SPCLREG_SPSR_EL3 = 61952,
1: - AARCH64_INSN_SPCLREG_ELR_EL3 = 61953,
1: - AARCH64_INSN_SPCLREG_SP_EL2 = 61968,
1: + AARCH64_INSN_SPCLREG_SPSR_EL1 = 49664,
1: + AARCH64_INSN_SPCLREG_ELR_EL1 = 49665,
1: + AARCH64_INSN_SPCLREG_SP_EL0 = 49672,
1: + AARCH64_INSN_SPCLREG_SPSEL = 49680,
1: + AARCH64_INSN_SPCLREG_CURRENTEL = 49682,
1: + AARCH64_INSN_SPCLREG_DAIF = 55825,
1: + AARCH64_INSN_SPCLREG_NZCV = 55824,
1: + AARCH64_INSN_SPCLREG_FPCR = 55840,
1: + AARCH64_INSN_SPCLREG_DSPSR_EL0 = 55848,
1: + AARCH64_INSN_SPCLREG_DLR_EL0 = 55849,
1: + AARCH64_INSN_SPCLREG_SPSR_EL2 = 57856,
1: + AARCH64_INSN_SPCLREG_ELR_EL2 = 57857,
1: + AARCH64_INSN_SPCLREG_SP_EL1 = 57864,
1: + AARCH64_INSN_SPCLREG_SPSR_INQ = 57880,
1: + AARCH64_INSN_SPCLREG_SPSR_ABT = 57881,
1: + AARCH64_INSN_SPCLREG_SPSR_UND = 57882,
1: + AARCH64_INSN_SPCLREG_SPSR_FIQ = 57883,
1: + AARCH64_INSN_SPCLREG_SPSR_EL3 = 61952,
1: + AARCH64_INSN_SPCLREG_ELR_EL3 = 61953,
1: + AARCH64_INSN_SPCLREG_SP_EL2 = 61968,
1: };
1:
1: struct arch_uprobe {
1: - union {
1: - u8 insn[4];
1: - u8 ixol[4];
1: - };
1: - struct arch_probe_insn api;
1: - bool simulate;
1: + union {
1: + u8 insn[4];
1: + u8 ixol[4];
1: + };
1: + struct arch_probe_insn api;
1: + bool simulate;
1: };
1:
1: enum rp_check {
1: - RP_CHECK_CALL = 0,
1: - RP_CHECK_CHAIN_CALL = 1,
1: - RP_CHECK_RET = 2,
1: + RP_CHECK_CALL = 0,
1: + RP_CHECK_CHAIN_CALL = 1,
1: + RP_CHECK_RET = 2,
1: };
1:
1: struct iommu_fault_param;
1: @@ -17655,261 +17866,262 @@ struct iommu_fault_param;
1: struct iommu_fwspec;
1:
1: struct dev_iommu {
1: - struct mutex lock;
1: - struct iommu_fault_param *fault_param;
1: - struct iommu_fwspec *fwspec;
1: - struct iommu_device *iommu_dev;
1: - void *priv;
1: + struct mutex lock;
1: + struct iommu_fault_param *fault_param;
1: + struct iommu_fwspec *fwspec;
1: + struct iommu_device *iommu_dev;
1: + void *priv;
1: };
1:
1: struct sg_table {
1: - struct scatterlist *sgl;
1: - unsigned int nents;
1: - unsigned int orig_nents;
1: + struct scatterlist *sgl;
1: + unsigned int nents;
1: + unsigned int orig_nents;
1: };
1:
1: struct of_phandle_args {
1: - struct device_node *np;
1: - int args_count;
1: - uint32_t args[16];
1: + struct device_node *np;
1: + int args_count;
1: + uint32_t args[16];
1: };
1:
1: struct iommu_fault_unrecoverable {
1: - __u32 reason;
1: - __u32 flags;
1: - __u32 pasid;
1: - __u32 perm;
1: - __u64 addr;
1: - __u64 fetch_addr;
1: + __u32 reason;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 fetch_addr;
1: };
1:
1: struct iommu_fault_page_request {
1: - __u32 flags;
1: - __u32 pasid;
1: - __u32 grpid;
1: - __u32 perm;
1: - __u64 addr;
1: - __u64 private_data[2];
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 private_data[2];
1: };
1:
1: struct iommu_fault {
1: - __u32 type;
1: - __u32 padding;
1: - union {
1: - struct iommu_fault_unrecoverable event;
1: - struct iommu_fault_page_request prm;
1: - __u8 padding2[56];
1: - };
1: + __u32 type;
1: + __u32 padding;
1: + union {
1: + struct iommu_fault_unrecoverable event;
1: + struct iommu_fault_page_request prm;
1: + __u8 padding2[56];
1: + };
1: };
1:
1: struct iommu_page_response {
1: - __u32 argsz;
1: - __u32 version;
1: - __u32 flags;
1: - __u32 pasid;
1: - __u32 grpid;
1: - __u32 code;
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 code;
1: };
1:
1: struct iommu_inv_addr_info {
1: - __u32 flags;
1: - __u32 archid;
1: - __u64 pasid;
1: - __u64 addr;
1: - __u64 granule_size;
1: - __u64 nb_granules;
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: + __u64 addr;
1: + __u64 granule_size;
1: + __u64 nb_granules;
1: };
1:
1: struct iommu_inv_pasid_info {
1: - __u32 flags;
1: - __u32 archid;
1: - __u64 pasid;
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: };
1:
1: struct iommu_cache_invalidate_info {
1: - __u32 argsz;
1: - __u32 version;
1: - __u8 cache;
1: - __u8 granularity;
1: - __u8 padding[6];
1: - union {
1: - struct iommu_inv_pasid_info pasid_info;
1: - struct iommu_inv_addr_info addr_info;
1: - } granu;
1: + __u32 argsz;
1: + __u32 version;
1: + __u8 cache;
1: + __u8 granularity;
1: + __u8 padding[6];
1: + union {
1: + struct iommu_inv_pasid_info pasid_info;
1: + struct iommu_inv_addr_info addr_info;
1: + } granu;
1: };
1:
1: struct iommu_gpasid_bind_data_vtd {
1: - __u64 flags;
1: - __u32 pat;
1: - __u32 emt;
1: + __u64 flags;
1: + __u32 pat;
1: + __u32 emt;
1: };
1:
1: struct iommu_gpasid_bind_data {
1: - __u32 argsz;
1: - __u32 version;
1: - __u32 format;
1: - __u32 addr_width;
1: - __u64 flags;
1: - __u64 gpgd;
1: - __u64 hpasid;
1: - __u64 gpasid;
1: - __u8 padding[8];
1: - union {
1: - struct iommu_gpasid_bind_data_vtd vtd;
1: - } vendor;
1: -};
1: -
1: -typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, long unsigned int, int, void *);
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 format;
1: + __u32 addr_width;
1: + __u64 flags;
1: + __u64 gpgd;
1: + __u64 hpasid;
1: + __u64 gpasid;
1: + __u8 padding[8];
1: + union {
1: + struct iommu_gpasid_bind_data_vtd vtd;
1: + } vendor;
1: +};
1: +
1: +typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *,
1: + long unsigned int, int, void *);
1:
1: struct iommu_domain_geometry {
1: - dma_addr_t aperture_start;
1: - dma_addr_t aperture_end;
1: - bool force_aperture;
1: + dma_addr_t aperture_start;
1: + dma_addr_t aperture_end;
1: + bool force_aperture;
1: };
1:
1: struct iommu_domain {
1: - unsigned int type;
1: - const struct iommu_ops *ops;
1: - long unsigned int pgsize_bitmap;
1: - iommu_fault_handler_t handler;
1: - void *handler_token;
1: - struct iommu_domain_geometry geometry;
1: - void *iova_cookie;
1: + unsigned int type;
1: + const struct iommu_ops *ops;
1: + long unsigned int pgsize_bitmap;
1: + iommu_fault_handler_t handler;
1: + void *handler_token;
1: + struct iommu_domain_geometry geometry;
1: + void *iova_cookie;
1: };
1:
1: typedef int (*iommu_dev_fault_handler_t)(struct iommu_fault *, void *);
1:
1: enum iommu_resv_type {
1: - IOMMU_RESV_DIRECT = 0,
1: - IOMMU_RESV_DIRECT_RELAXABLE = 1,
1: - IOMMU_RESV_RESERVED = 2,
1: - IOMMU_RESV_MSI = 3,
1: - IOMMU_RESV_SW_MSI = 4,
1: + IOMMU_RESV_DIRECT = 0,
1: + IOMMU_RESV_DIRECT_RELAXABLE = 1,
1: + IOMMU_RESV_RESERVED = 2,
1: + IOMMU_RESV_MSI = 3,
1: + IOMMU_RESV_SW_MSI = 4,
1: };
1:
1: struct iommu_resv_region {
1: - struct list_head list;
1: - phys_addr_t start;
1: - size_t length;
1: - int prot;
1: - enum iommu_resv_type type;
1: + struct list_head list;
1: + phys_addr_t start;
1: + size_t length;
1: + int prot;
1: + enum iommu_resv_type type;
1: };
1:
1: struct iommu_iotlb_gather {
1: - long unsigned int start;
1: - long unsigned int end;
1: - size_t pgsize;
1: + long unsigned int start;
1: + long unsigned int end;
1: + size_t pgsize;
1: };
1:
1: struct iommu_device {
1: - struct list_head list;
1: - const struct iommu_ops *ops;
1: - struct fwnode_handle *fwnode;
1: - struct device *dev;
1: + struct list_head list;
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *fwnode;
1: + struct device *dev;
1: };
1:
1: struct iommu_sva {
1: - struct device *dev;
1: + struct device *dev;
1: };
1:
1: struct iommu_fault_event {
1: - struct iommu_fault fault;
1: - struct list_head list;
1: + struct iommu_fault fault;
1: + struct list_head list;
1: };
1:
1: struct iommu_fault_param {
1: - iommu_dev_fault_handler_t handler;
1: - void *data;
1: - struct list_head faults;
1: - struct mutex lock;
1: + iommu_dev_fault_handler_t handler;
1: + void *data;
1: + struct list_head faults;
1: + struct mutex lock;
1: };
1:
1: struct iommu_fwspec {
1: - const struct iommu_ops *ops;
1: - struct fwnode_handle *iommu_fwnode;
1: - u32 flags;
1: - u32 num_pasid_bits;
1: - unsigned int num_ids;
1: - u32 ids[0];
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *iommu_fwnode;
1: + u32 flags;
1: + u32 num_pasid_bits;
1: + unsigned int num_ids;
1: + u32 ids[0];
1: };
1:
1: enum xen_domain_type {
1: - XEN_NATIVE = 0,
1: - XEN_PV_DOMAIN = 1,
1: - XEN_HVM_DOMAIN = 2,
1: + XEN_NATIVE = 0,
1: + XEN_PV_DOMAIN = 1,
1: + XEN_HVM_DOMAIN = 2,
1: };
1:
1: struct hstate {
1: - int next_nid_to_alloc;
1: - int next_nid_to_free;
1: - unsigned int order;
1: - long unsigned int mask;
1: - long unsigned int max_huge_pages;
1: - long unsigned int nr_huge_pages;
1: - long unsigned int free_huge_pages;
1: - long unsigned int resv_huge_pages;
1: - long unsigned int surplus_huge_pages;
1: - long unsigned int nr_overcommit_huge_pages;
1: - struct list_head hugepage_activelist;
1: - struct list_head hugepage_freelists[128];
1: - unsigned int nr_huge_pages_node[128];
1: - unsigned int free_huge_pages_node[128];
1: - unsigned int surplus_huge_pages_node[128];
1: - struct cftype cgroup_files_dfl[7];
1: - struct cftype cgroup_files_legacy[9];
1: - char name[32];
1: + int next_nid_to_alloc;
1: + int next_nid_to_free;
1: + unsigned int order;
1: + long unsigned int mask;
1: + long unsigned int max_huge_pages;
1: + long unsigned int nr_huge_pages;
1: + long unsigned int free_huge_pages;
1: + long unsigned int resv_huge_pages;
1: + long unsigned int surplus_huge_pages;
1: + long unsigned int nr_overcommit_huge_pages;
1: + struct list_head hugepage_activelist;
1: + struct list_head hugepage_freelists[128];
1: + unsigned int nr_huge_pages_node[128];
1: + unsigned int free_huge_pages_node[128];
1: + unsigned int surplus_huge_pages_node[128];
1: + struct cftype cgroup_files_dfl[7];
1: + struct cftype cgroup_files_legacy[9];
1: + char name[32];
1: };
1:
1: struct fault_info {
1: - int (*fn)(long unsigned int, unsigned int, struct pt_regs *);
1: - int sig;
1: - int code;
1: - const char *name;
1: + int (*fn)(long unsigned int, unsigned int, struct pt_regs *);
1: + int sig;
1: + int code;
1: + const char *name;
1: };
1:
1: enum swiotlb_force {
1: - SWIOTLB_NORMAL = 0,
1: - SWIOTLB_FORCE = 1,
1: - SWIOTLB_NO_FORCE = 2,
1: + SWIOTLB_NORMAL = 0,
1: + SWIOTLB_FORCE = 1,
1: + SWIOTLB_NO_FORCE = 2,
1: };
1:
1: struct mhp_params {
1: - struct vmem_altmap *altmap;
1: - pgprot_t pgprot;
1: + struct vmem_altmap *altmap;
1: + pgprot_t pgprot;
1: };
1:
1: struct memory_notify {
1: - long unsigned int start_pfn;
1: - long unsigned int nr_pages;
1: - int status_change_nid_normal;
1: - int status_change_nid_high;
1: - int status_change_nid;
1: + long unsigned int start_pfn;
1: + long unsigned int nr_pages;
1: + int status_change_nid_normal;
1: + int status_change_nid_high;
1: + int status_change_nid;
1: };
1:
1: struct page_change_data {
1: - pgprot_t set_mask;
1: - pgprot_t clear_mask;
1: + pgprot_t set_mask;
1: + pgprot_t clear_mask;
1: };
1:
1: struct hugepage_subpool {
1: - spinlock_t lock;
1: - long int count;
1: - long int max_hpages;
1: - long int used_hpages;
1: - struct hstate *hstate;
1: - long int min_hpages;
1: - long int rsv_hpages;
1: + spinlock_t lock;
1: + long int count;
1: + long int max_hpages;
1: + long int used_hpages;
1: + struct hstate *hstate;
1: + long int min_hpages;
1: + long int rsv_hpages;
1: };
1:
1: struct hugetlbfs_sb_info {
1: - long int max_inodes;
1: - long int free_inodes;
1: - spinlock_t stat_lock;
1: - struct hstate *hstate;
1: - struct hugepage_subpool *spool;
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: + long int max_inodes;
1: + long int free_inodes;
1: + spinlock_t stat_lock;
1: + struct hstate *hstate;
1: + struct hugepage_subpool *spool;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: };
1:
1: typedef __kernel_long_t __kernel_off_t;
1: @@ -17917,46 +18129,46 @@ typedef __kernel_long_t __kernel_off_t;
1: typedef __kernel_off_t off_t;
1:
1: enum {
1: - BPF_REG_0 = 0,
1: - BPF_REG_1 = 1,
1: - BPF_REG_2 = 2,
1: - BPF_REG_3 = 3,
1: - BPF_REG_4 = 4,
1: - BPF_REG_5 = 5,
1: - BPF_REG_6 = 6,
1: - BPF_REG_7 = 7,
1: - BPF_REG_8 = 8,
1: - BPF_REG_9 = 9,
1: - BPF_REG_10 = 10,
1: - __MAX_BPF_REG = 11,
1: + BPF_REG_0 = 0,
1: + BPF_REG_1 = 1,
1: + BPF_REG_2 = 2,
1: + BPF_REG_3 = 3,
1: + BPF_REG_4 = 4,
1: + BPF_REG_5 = 5,
1: + BPF_REG_6 = 6,
1: + BPF_REG_7 = 7,
1: + BPF_REG_8 = 8,
1: + BPF_REG_9 = 9,
1: + BPF_REG_10 = 10,
1: + __MAX_BPF_REG = 11,
1: };
1:
1: enum {
1: - DUMP_PREFIX_NONE = 0,
1: - DUMP_PREFIX_ADDRESS = 1,
1: - DUMP_PREFIX_OFFSET = 2,
1: + DUMP_PREFIX_NONE = 0,
1: + DUMP_PREFIX_ADDRESS = 1,
1: + DUMP_PREFIX_OFFSET = 2,
1: };
1:
1: struct bpf_binary_header {
1: - u32 pages;
1: - int: 32;
1: - u8 image[0];
1: + u32 pages;
1: + int : 32;
1: + u8 image[0];
1: };
1:
1: struct jit_ctx {
1: - const struct bpf_prog *prog;
1: - int idx;
1: - int epilogue_offset;
1: - int *offset;
1: - int exentry_idx;
1: - __le32 *image;
1: - u32 stack_size;
1: + const struct bpf_prog *prog;
1: + int idx;
1: + int epilogue_offset;
1: + int *offset;
1: + int exentry_idx;
1: + __le32 *image;
1: + u32 stack_size;
1: };
1:
1: struct arm64_jit_data {
1: - struct bpf_binary_header *header;
1: - u8 *image;
1: - struct jit_ctx ctx;
1: + struct bpf_binary_header *header;
1: + u8 *image;
1: + struct jit_ctx ctx;
1: };
1:
1: typedef long unsigned int ulong;
1: @@ -17974,38 +18186,38 @@ typedef hfn_t kvm_pfn_t;
1: struct kvm_memory_slot;
1:
1: struct gfn_to_hva_cache {
1: - u64 generation;
1: - gpa_t gpa;
1: - long unsigned int hva;
1: - long unsigned int len;
1: - struct kvm_memory_slot *memslot;
1: + u64 generation;
1: + gpa_t gpa;
1: + long unsigned int hva;
1: + long unsigned int len;
1: + struct kvm_memory_slot *memslot;
1: };
1:
1: struct kvm_arch_memory_slot {};
1:
1: struct kvm_memory_slot {
1: - gfn_t base_gfn;
1: - long unsigned int npages;
1: - long unsigned int *dirty_bitmap;
1: - struct kvm_arch_memory_slot arch;
1: - long unsigned int userspace_addr;
1: - u32 flags;
1: - short int id;
1: - u16 as_id;
1: + gfn_t base_gfn;
1: + long unsigned int npages;
1: + long unsigned int *dirty_bitmap;
1: + struct kvm_arch_memory_slot arch;
1: + long unsigned int userspace_addr;
1: + u32 flags;
1: + short int id;
1: + u16 as_id;
1: };
1:
1: struct gfn_to_pfn_cache {
1: - u64 generation;
1: - gfn_t gfn;
1: - kvm_pfn_t pfn;
1: - bool dirty;
1: + u64 generation;
1: + gfn_t gfn;
1: + kvm_pfn_t pfn;
1: + bool dirty;
1: };
1:
1: struct kvm_mmu_memory_cache {
1: - int nobjs;
1: - gfp_t gfp_zero;
1: - struct kmem_cache *kmem_cache;
1: - void *objects[40];
1: + int nobjs;
1: + gfp_t gfp_zero;
1: + struct kmem_cache *kmem_cache;
1: + void *objects[40];
1: };
1:
1: struct kvm_vcpu;
1: @@ -18013,159 +18225,160 @@ struct kvm_vcpu;
1: struct kvm_io_device;
1:
1: struct kvm_io_device_ops {
1: - int (*read)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int, void *);
1: - int (*write)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int, const void *);
1: - void (*destructor)(struct kvm_io_device *);
1: + int (*read)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int, void *);
1: + int (*write)(struct kvm_vcpu *, struct kvm_io_device *, gpa_t, int,
1: + const void *);
1: + void (*destructor)(struct kvm_io_device *);
1: };
1:
1: struct preempt_ops;
1:
1: struct preempt_notifier {
1: - struct hlist_node link;
1: - struct preempt_ops *ops;
1: + struct hlist_node link;
1: + struct preempt_ops *ops;
1: };
1:
1: struct kvm_vcpu_stat {
1: - u64 halt_successful_poll;
1: - u64 halt_attempted_poll;
1: - u64 halt_poll_success_ns;
1: - u64 halt_poll_fail_ns;
1: - u64 halt_poll_invalid;
1: - u64 halt_wakeup;
1: - u64 hvc_exit_stat;
1: - u64 wfe_exit_stat;
1: - u64 wfi_exit_stat;
1: - u64 mmio_exit_user;
1: - u64 mmio_exit_kernel;
1: - u64 exits;
1: + u64 halt_successful_poll;
1: + u64 halt_attempted_poll;
1: + u64 halt_poll_success_ns;
1: + u64 halt_poll_fail_ns;
1: + u64 halt_poll_invalid;
1: + u64 halt_wakeup;
1: + u64 hvc_exit_stat;
1: + u64 wfe_exit_stat;
1: + u64 wfi_exit_stat;
1: + u64 mmio_exit_user;
1: + u64 mmio_exit_kernel;
1: + u64 exits;
1: };
1:
1: struct kvm_mmio_fragment {
1: - gpa_t gpa;
1: - void *data;
1: - unsigned int len;
1: + gpa_t gpa;
1: + void *data;
1: + unsigned int len;
1: };
1:
1: struct kvm_cpu_context {
1: - struct user_pt_regs regs;
1: - u64 spsr_abt;
1: - u64 spsr_und;
1: - u64 spsr_irq;
1: - u64 spsr_fiq;
1: - struct user_fpsimd_state fp_regs;
1: - union {
1: - u64 sys_regs[119];
1: - u32 copro[238];
1: - };
1: - struct kvm_vcpu *__hyp_running_vcpu;
1: + struct user_pt_regs regs;
1: + u64 spsr_abt;
1: + u64 spsr_und;
1: + u64 spsr_irq;
1: + u64 spsr_fiq;
1: + struct user_fpsimd_state fp_regs;
1: + union {
1: + u64 sys_regs[119];
1: + u32 copro[238];
1: + };
1: + struct kvm_vcpu *__hyp_running_vcpu;
1: };
1:
1: struct kvm_vcpu_fault_info {
1: - u32 esr_el2;
1: - u64 far_el2;
1: - u64 hpfar_el2;
1: - u64 disr_el1;
1: + u32 esr_el2;
1: + u64 far_el2;
1: + u64 hpfar_el2;
1: + u64 disr_el1;
1: };
1:
1: struct kvm_guest_debug_arch {
1: - __u64 dbg_bcr[16];
1: - __u64 dbg_bvr[16];
1: - __u64 dbg_wcr[16];
1: - __u64 dbg_wvr[16];
1: + __u64 dbg_bcr[16];
1: + __u64 dbg_bvr[16];
1: + __u64 dbg_wcr[16];
1: + __u64 dbg_wvr[16];
1: };
1:
1: struct vgic_v2_cpu_if {
1: - u32 vgic_hcr;
1: - u32 vgic_vmcr;
1: - u32 vgic_apr;
1: - u32 vgic_lr[64];
1: - unsigned int used_lrs;
1: + u32 vgic_hcr;
1: + u32 vgic_vmcr;
1: + u32 vgic_apr;
1: + u32 vgic_lr[64];
1: + unsigned int used_lrs;
1: };
1:
1: struct its_vm;
1:
1: struct its_vpe {
1: - struct page *vpt_page;
1: - struct its_vm *its_vm;
1: - atomic_t vlpi_count;
1: - int irq;
1: - irq_hw_number_t vpe_db_lpi;
1: - bool resident;
1: - union {
1: - struct {
1: - int vpe_proxy_event;
1: - bool idai;
1: - };
1: - struct {
1: - struct fwnode_handle *fwnode;
1: - struct irq_domain *sgi_domain;
1: - struct {
1: - u8 priority;
1: - bool enabled;
1: - bool group;
1: - } sgi_config[16];
1: - atomic_t vmapp_count;
1: - };
1: - };
1: - raw_spinlock_t vpe_lock;
1: - u16 col_idx;
1: - u16 vpe_id;
1: - bool pending_last;
1: + struct page *vpt_page;
1: + struct its_vm *its_vm;
1: + atomic_t vlpi_count;
1: + int irq;
1: + irq_hw_number_t vpe_db_lpi;
1: + bool resident;
1: + union {
1: + struct {
1: + int vpe_proxy_event;
1: + bool idai;
1: + };
1: + struct {
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *sgi_domain;
1: + struct {
1: + u8 priority;
1: + bool enabled;
1: + bool group;
1: + } sgi_config[16];
1: + atomic_t vmapp_count;
1: + };
1: + };
1: + raw_spinlock_t vpe_lock;
1: + u16 col_idx;
1: + u16 vpe_id;
1: + bool pending_last;
1: };
1:
1: struct vgic_v3_cpu_if {
1: - u32 vgic_hcr;
1: - u32 vgic_vmcr;
1: - u32 vgic_sre;
1: - u32 vgic_ap0r[4];
1: - u32 vgic_ap1r[4];
1: - u64 vgic_lr[16];
1: - struct its_vpe its_vpe;
1: - unsigned int used_lrs;
1: + u32 vgic_hcr;
1: + u32 vgic_vmcr;
1: + u32 vgic_sre;
1: + u32 vgic_ap0r[4];
1: + u32 vgic_ap1r[4];
1: + u64 vgic_lr[16];
1: + struct its_vpe its_vpe;
1: + unsigned int used_lrs;
1: };
1:
1: enum vgic_irq_config {
1: - VGIC_CONFIG_EDGE = 0,
1: - VGIC_CONFIG_LEVEL = 1,
1: + VGIC_CONFIG_EDGE = 0,
1: + VGIC_CONFIG_LEVEL = 1,
1: };
1:
1: struct vgic_irq {
1: - raw_spinlock_t irq_lock;
1: - struct list_head lpi_list;
1: - struct list_head ap_list;
1: - struct kvm_vcpu *vcpu;
1: - struct kvm_vcpu *target_vcpu;
1: - u32 intid;
1: - bool line_level;
1: - bool pending_latch;
1: - bool active;
1: - bool enabled;
1: - bool hw;
1: - struct kref refcount;
1: - u32 hwintid;
1: - unsigned int host_irq;
1: - union {
1: - u8 targets;
1: - u32 mpidr;
1: - };
1: - u8 source;
1: - u8 active_source;
1: - u8 priority;
1: - u8 group;
1: - enum vgic_irq_config config;
1: - bool (*get_input_level)(int);
1: - void *owner;
1: + raw_spinlock_t irq_lock;
1: + struct list_head lpi_list;
1: + struct list_head ap_list;
1: + struct kvm_vcpu *vcpu;
1: + struct kvm_vcpu *target_vcpu;
1: + u32 intid;
1: + bool line_level;
1: + bool pending_latch;
1: + bool active;
1: + bool enabled;
1: + bool hw;
1: + struct kref refcount;
1: + u32 hwintid;
1: + unsigned int host_irq;
1: + union {
1: + u8 targets;
1: + u32 mpidr;
1: + };
1: + u8 source;
1: + u8 active_source;
1: + u8 priority;
1: + u8 group;
1: + enum vgic_irq_config config;
1: + bool (*get_input_level)(int);
1: + void *owner;
1: };
1:
1: enum iodev_type {
1: - IODEV_CPUIF = 0,
1: - IODEV_DIST = 1,
1: - IODEV_REDIST = 2,
1: - IODEV_ITS = 3,
1: + IODEV_CPUIF = 0,
1: + IODEV_DIST = 1,
1: + IODEV_REDIST = 2,
1: + IODEV_ITS = 3,
1: };
1:
1: struct kvm_io_device {
1: - const struct kvm_io_device_ops *ops;
1: + const struct kvm_io_device_ops *ops;
1: };
1:
1: struct vgic_its;
1: @@ -18173,120 +18386,120 @@ struct vgic_its;
1: struct vgic_register_region;
1:
1: struct vgic_io_device {
1: - gpa_t base_addr;
1: - union {
1: - struct kvm_vcpu *redist_vcpu;
1: - struct vgic_its *its;
1: - };
1: - const struct vgic_register_region *regions;
1: - enum iodev_type iodev_type;
1: - int nr_regions;
1: - struct kvm_io_device dev;
1: + gpa_t base_addr;
1: + union {
1: + struct kvm_vcpu *redist_vcpu;
1: + struct vgic_its *its;
1: + };
1: + const struct vgic_register_region *regions;
1: + enum iodev_type iodev_type;
1: + int nr_regions;
1: + struct kvm_io_device dev;
1: };
1:
1: struct vgic_redist_region;
1:
1: struct vgic_cpu {
1: - union {
1: - struct vgic_v2_cpu_if vgic_v2;
1: - struct vgic_v3_cpu_if vgic_v3;
1: - };
1: - struct vgic_irq private_irqs[32];
1: - raw_spinlock_t ap_list_lock;
1: - struct list_head ap_list_head;
1: - struct vgic_io_device rd_iodev;
1: - struct vgic_redist_region *rdreg;
1: - u64 pendbaser;
1: - bool lpis_enabled;
1: - u32 num_pri_bits;
1: - u32 num_id_bits;
1: + union {
1: + struct vgic_v2_cpu_if vgic_v2;
1: + struct vgic_v3_cpu_if vgic_v3;
1: + };
1: + struct vgic_irq private_irqs[32];
1: + raw_spinlock_t ap_list_lock;
1: + struct list_head ap_list_head;
1: + struct vgic_io_device rd_iodev;
1: + struct vgic_redist_region *rdreg;
1: + u64 pendbaser;
1: + bool lpis_enabled;
1: + u32 num_pri_bits;
1: + u32 num_id_bits;
1: };
1:
1: struct kvm_irq_level {
1: - union {
1: - __u32 irq;
1: - __s32 status;
1: - };
1: - __u32 level;
1: + union {
1: + __u32 irq;
1: + __s32 status;
1: + };
1: + __u32 level;
1: };
1:
1: struct arch_timer_context {
1: - struct kvm_vcpu *vcpu;
1: - struct kvm_irq_level irq;
1: - struct hrtimer hrtimer;
1: - bool loaded;
1: - u32 host_timer_irq;
1: - u32 host_timer_irq_flags;
1: + struct kvm_vcpu *vcpu;
1: + struct kvm_irq_level irq;
1: + struct hrtimer hrtimer;
1: + bool loaded;
1: + u32 host_timer_irq;
1: + u32 host_timer_irq_flags;
1: };
1:
1: struct arch_timer_cpu {
1: - struct arch_timer_context timers[2];
1: - struct hrtimer bg_timer;
1: - bool enabled;
1: + struct arch_timer_context timers[2];
1: + struct hrtimer bg_timer;
1: + bool enabled;
1: };
1:
1: struct kvm_pmc {
1: - u8 idx;
1: - struct perf_event *perf_event;
1: + u8 idx;
1: + struct perf_event *perf_event;
1: };
1:
1: struct kvm_pmu {
1: - int irq_num;
1: - struct kvm_pmc pmc[32];
1: - long unsigned int chained[1];
1: - bool ready;
1: - bool created;
1: - bool irq_level;
1: - struct irq_work overflow_work;
1: + int irq_num;
1: + struct kvm_pmc pmc[32];
1: + long unsigned int chained[1];
1: + bool ready;
1: + bool created;
1: + bool irq_level;
1: + struct irq_work overflow_work;
1: };
1:
1: struct vcpu_reset_state {
1: - long unsigned int pc;
1: - long unsigned int r0;
1: - bool be;
1: - bool reset;
1: + long unsigned int pc;
1: + long unsigned int r0;
1: + bool be;
1: + bool reset;
1: };
1:
1: struct kvm_s2_mmu;
1:
1: struct kvm_vcpu_arch {
1: - struct kvm_cpu_context ctxt;
1: - void *sve_state;
1: - unsigned int sve_max_vl;
1: - struct kvm_s2_mmu *hw_mmu;
1: - u64 hcr_el2;
1: - u32 mdcr_el2;
1: - struct kvm_vcpu_fault_info fault;
1: - u64 workaround_flags;
1: - u64 flags;
1: - struct kvm_guest_debug_arch *debug_ptr;
1: - struct kvm_guest_debug_arch vcpu_debug_state;
1: - struct kvm_guest_debug_arch external_debug_state;
1: - struct thread_info *host_thread_info;
1: - struct user_fpsimd_state *host_fpsimd_state;
1: - struct {
1: - struct kvm_guest_debug_arch regs;
1: - u64 pmscr_el1;
1: - } host_debug_state;
1: - struct vgic_cpu vgic_cpu;
1: - struct arch_timer_cpu timer_cpu;
1: - struct kvm_pmu pmu;
1: - struct {
1: - u32 mdscr_el1;
1: - } guest_debug_preserved;
1: - bool power_off;
1: - bool pause;
1: - struct kvm_mmu_memory_cache mmu_page_cache;
1: - int target;
1: - long unsigned int features[1];
1: - bool has_run_once;
1: - u64 vsesr_el2;
1: - struct vcpu_reset_state reset_state;
1: - bool sysregs_loaded_on_cpu;
1: - struct {
1: - u64 last_steal;
1: - gpa_t base;
1: - } steal;
1: + struct kvm_cpu_context ctxt;
1: + void *sve_state;
1: + unsigned int sve_max_vl;
1: + struct kvm_s2_mmu *hw_mmu;
1: + u64 hcr_el2;
1: + u32 mdcr_el2;
1: + struct kvm_vcpu_fault_info fault;
1: + u64 workaround_flags;
1: + u64 flags;
1: + struct kvm_guest_debug_arch *debug_ptr;
1: + struct kvm_guest_debug_arch vcpu_debug_state;
1: + struct kvm_guest_debug_arch external_debug_state;
1: + struct thread_info *host_thread_info;
1: + struct user_fpsimd_state *host_fpsimd_state;
1: + struct {
1: + struct kvm_guest_debug_arch regs;
1: + u64 pmscr_el1;
1: + } host_debug_state;
1: + struct vgic_cpu vgic_cpu;
1: + struct arch_timer_cpu timer_cpu;
1: + struct kvm_pmu pmu;
1: + struct {
1: + u32 mdscr_el1;
1: + } guest_debug_preserved;
1: + bool power_off;
1: + bool pause;
1: + struct kvm_mmu_memory_cache mmu_page_cache;
1: + int target;
1: + long unsigned int features[1];
1: + bool has_run_once;
1: + u64 vsesr_el2;
1: + struct vcpu_reset_state reset_state;
1: + bool sysregs_loaded_on_cpu;
1: + struct {
1: + u64 last_steal;
1: + gpa_t base;
1: + } steal;
1: };
1:
1: struct kvm;
1: @@ -18294,59 +18507,59 @@ struct kvm;
1: struct kvm_run;
1:
1: struct kvm_vcpu {
1: - struct kvm *kvm;
1: - struct preempt_notifier preempt_notifier;
1: - int cpu;
1: - int vcpu_id;
1: - int vcpu_idx;
1: - int srcu_idx;
1: - int mode;
1: - u64 requests;
1: - long unsigned int guest_debug;
1: - int pre_pcpu;
1: - struct list_head blocked_vcpu_list;
1: - struct mutex mutex;
1: - struct kvm_run *run;
1: - struct rcuwait wait;
1: - struct pid *pid;
1: - int sigset_active;
1: - sigset_t sigset;
1: - struct kvm_vcpu_stat stat;
1: - unsigned int halt_poll_ns;
1: - bool valid_wakeup;
1: - int mmio_needed;
1: - int mmio_read_completed;
1: - int mmio_is_write;
1: - int mmio_cur_fragment;
1: - int mmio_nr_fragments;
1: - struct kvm_mmio_fragment mmio_fragments[2];
1: - struct {
1: - bool in_spin_loop;
1: - bool dy_eligible;
1: - } spin_loop;
1: - bool preempted;
1: - bool ready;
1: - struct kvm_vcpu_arch arch;
1: + struct kvm *kvm;
1: + struct preempt_notifier preempt_notifier;
1: + int cpu;
1: + int vcpu_id;
1: + int vcpu_idx;
1: + int srcu_idx;
1: + int mode;
1: + u64 requests;
1: + long unsigned int guest_debug;
1: + int pre_pcpu;
1: + struct list_head blocked_vcpu_list;
1: + struct mutex mutex;
1: + struct kvm_run *run;
1: + struct rcuwait wait;
1: + struct pid *pid;
1: + int sigset_active;
1: + sigset_t sigset;
1: + struct kvm_vcpu_stat stat;
1: + unsigned int halt_poll_ns;
1: + bool valid_wakeup;
1: + int mmio_needed;
1: + int mmio_read_completed;
1: + int mmio_is_write;
1: + int mmio_cur_fragment;
1: + int mmio_nr_fragments;
1: + struct kvm_mmio_fragment mmio_fragments[2];
1: + struct {
1: + bool in_spin_loop;
1: + bool dy_eligible;
1: + } spin_loop;
1: + bool preempted;
1: + bool ready;
1: + struct kvm_vcpu_arch arch;
1: };
1:
1: struct preempt_ops {
1: - void (*sched_in)(struct preempt_notifier *, int);
1: - void (*sched_out)(struct preempt_notifier *, struct task_struct *);
1: + void (*sched_in)(struct preempt_notifier *, int);
1: + void (*sched_out)(struct preempt_notifier *, struct task_struct *);
1: };
1:
1: struct trace_print_flags {
1: - long unsigned int mask;
1: - const char *name;
1: + long unsigned int mask;
1: + const char *name;
1: };
1:
1: enum mmu_notifier_event {
1: - MMU_NOTIFY_UNMAP = 0,
1: - MMU_NOTIFY_CLEAR = 1,
1: - MMU_NOTIFY_PROTECTION_VMA = 2,
1: - MMU_NOTIFY_PROTECTION_PAGE = 3,
1: - MMU_NOTIFY_SOFT_DIRTY = 4,
1: - MMU_NOTIFY_RELEASE = 5,
1: - MMU_NOTIFY_MIGRATE = 6,
1: + MMU_NOTIFY_UNMAP = 0,
1: + MMU_NOTIFY_CLEAR = 1,
1: + MMU_NOTIFY_PROTECTION_VMA = 2,
1: + MMU_NOTIFY_PROTECTION_PAGE = 3,
1: + MMU_NOTIFY_SOFT_DIRTY = 4,
1: + MMU_NOTIFY_RELEASE = 5,
1: + MMU_NOTIFY_MIGRATE = 6,
1: };
1:
1: struct mmu_notifier;
1: @@ -18354,54 +18567,61 @@ struct mmu_notifier;
1: struct mmu_notifier_range;
1:
1: struct mmu_notifier_ops {
1: - void (*release)(struct mmu_notifier *, struct mm_struct *);
1: - int (*clear_flush_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: - int (*clear_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: - int (*test_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int);
1: - void (*change_pte)(struct mmu_notifier *, struct mm_struct *, long unsigned int, pte_t);
1: - int (*invalidate_range_start)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: - void (*invalidate_range_end)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: - void (*invalidate_range)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: - struct mmu_notifier * (*alloc_notifier)(struct mm_struct *);
1: - void (*free_notifier)(struct mmu_notifier *);
1: + void (*release)(struct mmu_notifier *, struct mm_struct *);
1: + int (*clear_flush_young)(struct mmu_notifier *, struct mm_struct *,
1: + long unsigned int, long unsigned int);
1: + int (*clear_young)(struct mmu_notifier *, struct mm_struct *,
1: + long unsigned int, long unsigned int);
1: + int (*test_young)(struct mmu_notifier *, struct mm_struct *,
1: + long unsigned int);
1: + void (*change_pte)(struct mmu_notifier *, struct mm_struct *,
1: + long unsigned int, pte_t);
1: + int (*invalidate_range_start)(struct mmu_notifier *,
1: + const struct mmu_notifier_range *);
1: + void (*invalidate_range_end)(struct mmu_notifier *,
1: + const struct mmu_notifier_range *);
1: + void (*invalidate_range)(struct mmu_notifier *, struct mm_struct *,
1: + long unsigned int, long unsigned int);
1: + struct mmu_notifier *(*alloc_notifier)(struct mm_struct *);
1: + void (*free_notifier)(struct mmu_notifier *);
1: };
1:
1: struct mmu_notifier {
1: - struct hlist_node hlist;
1: - const struct mmu_notifier_ops *ops;
1: - struct mm_struct *mm;
1: - struct callback_head rcu;
1: - unsigned int users;
1: + struct hlist_node hlist;
1: + const struct mmu_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct callback_head rcu;
1: + unsigned int users;
1: };
1:
1: struct mmu_notifier_range {
1: - struct vm_area_struct *vma;
1: - struct mm_struct *mm;
1: - long unsigned int start;
1: - long unsigned int end;
1: - unsigned int flags;
1: - enum mmu_notifier_event event;
1: - void *migrate_pgmap_owner;
1: + struct vm_area_struct *vma;
1: + struct mm_struct *mm;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int flags;
1: + enum mmu_notifier_event event;
1: + void *migrate_pgmap_owner;
1: };
1:
1: enum kobject_action {
1: - KOBJ_ADD = 0,
1: - KOBJ_REMOVE = 1,
1: - KOBJ_CHANGE = 2,
1: - KOBJ_MOVE = 3,
1: - KOBJ_ONLINE = 4,
1: - KOBJ_OFFLINE = 5,
1: - KOBJ_BIND = 6,
1: - KOBJ_UNBIND = 7,
1: + KOBJ_ADD = 0,
1: + KOBJ_REMOVE = 1,
1: + KOBJ_CHANGE = 2,
1: + KOBJ_MOVE = 3,
1: + KOBJ_ONLINE = 4,
1: + KOBJ_OFFLINE = 5,
1: + KOBJ_BIND = 6,
1: + KOBJ_UNBIND = 7,
1: };
1:
1: struct kvm_regs {
1: - struct user_pt_regs regs;
1: - __u64 sp_el1;
1: - __u64 elr_el1;
1: - __u64 spsr[5];
1: - long: 64;
1: - struct user_fpsimd_state fp_regs;
1: + struct user_pt_regs regs;
1: + __u64 sp_el1;
1: + __u64 elr_el1;
1: + __u64 spsr[5];
1: + long : 64;
1: + struct user_fpsimd_state fp_regs;
1: };
1:
1: struct kvm_sregs {};
1: @@ -18409,479 +18629,483 @@ struct kvm_sregs {};
1: struct kvm_fpu {};
1:
1: struct kvm_debug_exit_arch {
1: - __u32 hsr;
1: - __u64 far;
1: + __u32 hsr;
1: + __u64 far;
1: };
1:
1: struct kvm_sync_regs {
1: - __u64 device_irq_level;
1: + __u64 device_irq_level;
1: };
1:
1: struct kvm_userspace_memory_region {
1: - __u32 slot;
1: - __u32 flags;
1: - __u64 guest_phys_addr;
1: - __u64 memory_size;
1: - __u64 userspace_addr;
1: + __u32 slot;
1: + __u32 flags;
1: + __u64 guest_phys_addr;
1: + __u64 memory_size;
1: + __u64 userspace_addr;
1: };
1:
1: struct kvm_hyperv_exit {
1: - __u32 type;
1: - __u32 pad1;
1: - union {
1: - struct {
1: - __u32 msr;
1: - __u32 pad2;
1: - __u64 control;
1: - __u64 evt_page;
1: - __u64 msg_page;
1: - } synic;
1: - struct {
1: - __u64 input;
1: - __u64 result;
1: - __u64 params[2];
1: - } hcall;
1: - struct {
1: - __u32 msr;
1: - __u32 pad2;
1: - __u64 control;
1: - __u64 status;
1: - __u64 send_page;
1: - __u64 recv_page;
1: - __u64 pending_page;
1: - } syndbg;
1: - } u;
1: + __u32 type;
1: + __u32 pad1;
1: + union {
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 evt_page;
1: + __u64 msg_page;
1: + } synic;
1: + struct {
1: + __u64 input;
1: + __u64 result;
1: + __u64 params[2];
1: + } hcall;
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 status;
1: + __u64 send_page;
1: + __u64 recv_page;
1: + __u64 pending_page;
1: + } syndbg;
1: + } u;
1: };
1:
1: struct kvm_run {
1: - __u8 request_interrupt_window;
1: - __u8 immediate_exit;
1: - __u8 padding1[6];
1: - __u32 exit_reason;
1: - __u8 ready_for_interrupt_injection;
1: - __u8 if_flag;
1: - __u16 flags;
1: - __u64 cr8;
1: - __u64 apic_base;
1: - union {
1: - struct {
1: - __u64 hardware_exit_reason;
1: - } hw;
1: - struct {
1: - __u64 hardware_entry_failure_reason;
1: - __u32 cpu;
1: - } fail_entry;
1: - struct {
1: - __u32 exception;
1: - __u32 error_code;
1: - } ex;
1: - struct {
1: - __u8 direction;
1: - __u8 size;
1: - __u16 port;
1: - __u32 count;
1: - __u64 data_offset;
1: - } io;
1: - struct {
1: - struct kvm_debug_exit_arch arch;
1: - } debug;
1: - struct {
1: - __u64 phys_addr;
1: - __u8 data[8];
1: - __u32 len;
1: - __u8 is_write;
1: - } mmio;
1: - struct {
1: - __u64 nr;
1: - __u64 args[6];
1: - __u64 ret;
1: - __u32 longmode;
1: - __u32 pad;
1: - } hypercall;
1: - struct {
1: - __u64 rip;
1: - __u32 is_write;
1: - __u32 pad;
1: - } tpr_access;
1: - struct {
1: - __u8 icptcode;
1: - __u16 ipa;
1: - __u32 ipb;
1: - } s390_sieic;
1: - __u64 s390_reset_flags;
1: - struct {
1: - __u64 trans_exc_code;
1: - __u32 pgm_code;
1: - } s390_ucontrol;
1: - struct {
1: - __u32 dcrn;
1: - __u32 data;
1: - __u8 is_write;
1: - } dcr;
1: - struct {
1: - __u32 suberror;
1: - __u32 ndata;
1: - __u64 data[16];
1: - } internal;
1: - struct {
1: - __u64 gprs[32];
1: - } osi;
1: - struct {
1: - __u64 nr;
1: - __u64 ret;
1: - __u64 args[9];
1: - } papr_hcall;
1: - struct {
1: - __u16 subchannel_id;
1: - __u16 subchannel_nr;
1: - __u32 io_int_parm;
1: - __u32 io_int_word;
1: - __u32 ipb;
1: - __u8 dequeued;
1: - } s390_tsch;
1: - struct {
1: - __u32 epr;
1: - } epr;
1: - struct {
1: - __u32 type;
1: - __u64 flags;
1: - } system_event;
1: - struct {
1: - __u64 addr;
1: - __u8 ar;
1: - __u8 reserved;
1: - __u8 fc;
1: - __u8 sel1;
1: - __u16 sel2;
1: - } s390_stsi;
1: - struct {
1: - __u8 vector;
1: - } eoi;
1: - struct kvm_hyperv_exit hyperv;
1: - struct {
1: - __u64 esr_iss;
1: - __u64 fault_ipa;
1: - } arm_nisv;
1: - struct {
1: - __u8 error;
1: - __u8 pad[7];
1: - __u32 reason;
1: - __u32 index;
1: - __u64 data;
1: - } msr;
1: - char padding[256];
1: - };
1: - __u64 kvm_valid_regs;
1: - __u64 kvm_dirty_regs;
1: - union {
1: - struct kvm_sync_regs regs;
1: - char padding[2048];
1: - } s;
1: + __u8 request_interrupt_window;
1: + __u8 immediate_exit;
1: + __u8 padding1[6];
1: + __u32 exit_reason;
1: + __u8 ready_for_interrupt_injection;
1: + __u8 if_flag;
1: + __u16 flags;
1: + __u64 cr8;
1: + __u64 apic_base;
1: + union {
1: + struct {
1: + __u64 hardware_exit_reason;
1: + } hw;
1: + struct {
1: + __u64 hardware_entry_failure_reason;
1: + __u32 cpu;
1: + } fail_entry;
1: + struct {
1: + __u32 exception;
1: + __u32 error_code;
1: + } ex;
1: + struct {
1: + __u8 direction;
1: + __u8 size;
1: + __u16 port;
1: + __u32 count;
1: + __u64 data_offset;
1: + } io;
1: + struct {
1: + struct kvm_debug_exit_arch arch;
1: + } debug;
1: + struct {
1: + __u64 phys_addr;
1: + __u8 data[8];
1: + __u32 len;
1: + __u8 is_write;
1: + } mmio;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u64 ret;
1: + __u32 longmode;
1: + __u32 pad;
1: + } hypercall;
1: + struct {
1: + __u64 rip;
1: + __u32 is_write;
1: + __u32 pad;
1: + } tpr_access;
1: + struct {
1: + __u8 icptcode;
1: + __u16 ipa;
1: + __u32 ipb;
1: + } s390_sieic;
1: + __u64 s390_reset_flags;
1: + struct {
1: + __u64 trans_exc_code;
1: + __u32 pgm_code;
1: + } s390_ucontrol;
1: + struct {
1: + __u32 dcrn;
1: + __u32 data;
1: + __u8 is_write;
1: + } dcr;
1: + struct {
1: + __u32 suberror;
1: + __u32 ndata;
1: + __u64 data[16];
1: + } internal;
1: + struct {
1: + __u64 gprs[32];
1: + } osi;
1: + struct {
1: + __u64 nr;
1: + __u64 ret;
1: + __u64 args[9];
1: + } papr_hcall;
1: + struct {
1: + __u16 subchannel_id;
1: + __u16 subchannel_nr;
1: + __u32 io_int_parm;
1: + __u32 io_int_word;
1: + __u32 ipb;
1: + __u8 dequeued;
1: + } s390_tsch;
1: + struct {
1: + __u32 epr;
1: + } epr;
1: + struct {
1: + __u32 type;
1: + __u64 flags;
1: + } system_event;
1: + struct {
1: + __u64 addr;
1: + __u8 ar;
1: + __u8 reserved;
1: + __u8 fc;
1: + __u8 sel1;
1: + __u16 sel2;
1: + } s390_stsi;
1: + struct {
1: + __u8 vector;
1: + } eoi;
1: + struct kvm_hyperv_exit hyperv;
1: + struct {
1: + __u64 esr_iss;
1: + __u64 fault_ipa;
1: + } arm_nisv;
1: + struct {
1: + __u8 error;
1: + __u8 pad[7];
1: + __u32 reason;
1: + __u32 index;
1: + __u64 data;
1: + } msr;
1: + char padding[256];
1: + };
1: + __u64 kvm_valid_regs;
1: + __u64 kvm_dirty_regs;
1: + union {
1: + struct kvm_sync_regs regs;
1: + char padding[2048];
1: + } s;
1: };
1:
1: struct kvm_coalesced_mmio_zone {
1: - __u64 addr;
1: - __u32 size;
1: - union {
1: - __u32 pad;
1: - __u32 pio;
1: - };
1: + __u64 addr;
1: + __u32 size;
1: + union {
1: + __u32 pad;
1: + __u32 pio;
1: + };
1: };
1:
1: struct kvm_coalesced_mmio {
1: - __u64 phys_addr;
1: - __u32 len;
1: - union {
1: - __u32 pad;
1: - __u32 pio;
1: - };
1: - __u8 data[8];
1: + __u64 phys_addr;
1: + __u32 len;
1: + union {
1: + __u32 pad;
1: + __u32 pio;
1: + };
1: + __u8 data[8];
1: };
1:
1: struct kvm_coalesced_mmio_ring {
1: - __u32 first;
1: - __u32 last;
1: - struct kvm_coalesced_mmio coalesced_mmio[0];
1: + __u32 first;
1: + __u32 last;
1: + struct kvm_coalesced_mmio coalesced_mmio[0];
1: };
1:
1: struct kvm_translation {
1: - __u64 linear_address;
1: - __u64 physical_address;
1: - __u8 valid;
1: - __u8 writeable;
1: - __u8 usermode;
1: - __u8 pad[5];
1: + __u64 linear_address;
1: + __u64 physical_address;
1: + __u8 valid;
1: + __u8 writeable;
1: + __u8 usermode;
1: + __u8 pad[5];
1: };
1:
1: struct kvm_dirty_log {
1: - __u32 slot;
1: - __u32 padding1;
1: - union {
1: - void *dirty_bitmap;
1: - __u64 padding2;
1: - };
1: + __u32 slot;
1: + __u32 padding1;
1: + union {
1: + void *dirty_bitmap;
1: + __u64 padding2;
1: + };
1: };
1:
1: struct kvm_clear_dirty_log {
1: - __u32 slot;
1: - __u32 num_pages;
1: - __u64 first_page;
1: - union {
1: - void *dirty_bitmap;
1: - __u64 padding2;
1: - };
1: + __u32 slot;
1: + __u32 num_pages;
1: + __u64 first_page;
1: + union {
1: + void *dirty_bitmap;
1: + __u64 padding2;
1: + };
1: };
1:
1: struct kvm_signal_mask {
1: - __u32 len;
1: - __u8 sigset[0];
1: + __u32 len;
1: + __u8 sigset[0];
1: };
1:
1: struct kvm_mp_state {
1: - __u32 mp_state;
1: + __u32 mp_state;
1: };
1:
1: struct kvm_guest_debug {
1: - __u32 control;
1: - __u32 pad;
1: - struct kvm_guest_debug_arch arch;
1: + __u32 control;
1: + __u32 pad;
1: + struct kvm_guest_debug_arch arch;
1: };
1:
1: struct kvm_ioeventfd {
1: - __u64 datamatch;
1: - __u64 addr;
1: - __u32 len;
1: - __s32 fd;
1: - __u32 flags;
1: - __u8 pad[36];
1: + __u64 datamatch;
1: + __u64 addr;
1: + __u32 len;
1: + __s32 fd;
1: + __u32 flags;
1: + __u8 pad[36];
1: };
1:
1: struct kvm_enable_cap {
1: - __u32 cap;
1: - __u32 flags;
1: - __u64 args[4];
1: - __u8 pad[64];
1: + __u32 cap;
1: + __u32 flags;
1: + __u64 args[4];
1: + __u8 pad[64];
1: };
1:
1: struct kvm_irq_routing_irqchip {
1: - __u32 irqchip;
1: - __u32 pin;
1: + __u32 irqchip;
1: + __u32 pin;
1: };
1:
1: struct kvm_irq_routing_msi {
1: - __u32 address_lo;
1: - __u32 address_hi;
1: - __u32 data;
1: - union {
1: - __u32 pad;
1: - __u32 devid;
1: - };
1: + __u32 address_lo;
1: + __u32 address_hi;
1: + __u32 data;
1: + union {
1: + __u32 pad;
1: + __u32 devid;
1: + };
1: };
1:
1: struct kvm_irq_routing_s390_adapter {
1: - __u64 ind_addr;
1: - __u64 summary_addr;
1: - __u64 ind_offset;
1: - __u32 summary_offset;
1: - __u32 adapter_id;
1: + __u64 ind_addr;
1: + __u64 summary_addr;
1: + __u64 ind_offset;
1: + __u32 summary_offset;
1: + __u32 adapter_id;
1: };
1:
1: struct kvm_irq_routing_hv_sint {
1: - __u32 vcpu;
1: - __u32 sint;
1: + __u32 vcpu;
1: + __u32 sint;
1: };
1:
1: struct kvm_irq_routing_entry {
1: - __u32 gsi;
1: - __u32 type;
1: - __u32 flags;
1: - __u32 pad;
1: - union {
1: - struct kvm_irq_routing_irqchip irqchip;
1: - struct kvm_irq_routing_msi msi;
1: - struct kvm_irq_routing_s390_adapter adapter;
1: - struct kvm_irq_routing_hv_sint hv_sint;
1: - __u32 pad[8];
1: - } u;
1: + __u32 gsi;
1: + __u32 type;
1: + __u32 flags;
1: + __u32 pad;
1: + union {
1: + struct kvm_irq_routing_irqchip irqchip;
1: + struct kvm_irq_routing_msi msi;
1: + struct kvm_irq_routing_s390_adapter adapter;
1: + struct kvm_irq_routing_hv_sint hv_sint;
1: + __u32 pad[8];
1: + } u;
1: };
1:
1: struct kvm_irq_routing {
1: - __u32 nr;
1: - __u32 flags;
1: - struct kvm_irq_routing_entry entries[0];
1: + __u32 nr;
1: + __u32 flags;
1: + struct kvm_irq_routing_entry entries[0];
1: };
1:
1: struct kvm_irqfd {
1: - __u32 fd;
1: - __u32 gsi;
1: - __u32 flags;
1: - __u32 resamplefd;
1: - __u8 pad[16];
1: + __u32 fd;
1: + __u32 gsi;
1: + __u32 flags;
1: + __u32 resamplefd;
1: + __u8 pad[16];
1: };
1:
1: struct kvm_msi {
1: - __u32 address_lo;
1: - __u32 address_hi;
1: - __u32 data;
1: - __u32 flags;
1: - __u32 devid;
1: - __u8 pad[12];
1: + __u32 address_lo;
1: + __u32 address_hi;
1: + __u32 data;
1: + __u32 flags;
1: + __u32 devid;
1: + __u8 pad[12];
1: };
1:
1: struct kvm_create_device {
1: - __u32 type;
1: - __u32 fd;
1: - __u32 flags;
1: + __u32 type;
1: + __u32 fd;
1: + __u32 flags;
1: };
1:
1: struct kvm_device_attr {
1: - __u32 flags;
1: - __u32 group;
1: - __u64 attr;
1: - __u64 addr;
1: + __u32 flags;
1: + __u32 group;
1: + __u64 attr;
1: + __u64 addr;
1: };
1:
1: enum kvm_device_type {
1: - KVM_DEV_TYPE_FSL_MPIC_20 = 1,
1: - KVM_DEV_TYPE_FSL_MPIC_42 = 2,
1: - KVM_DEV_TYPE_XICS = 3,
1: - KVM_DEV_TYPE_VFIO = 4,
1: - KVM_DEV_TYPE_ARM_VGIC_V2 = 5,
1: - KVM_DEV_TYPE_FLIC = 6,
1: - KVM_DEV_TYPE_ARM_VGIC_V3 = 7,
1: - KVM_DEV_TYPE_ARM_VGIC_ITS = 8,
1: - KVM_DEV_TYPE_XIVE = 9,
1: - KVM_DEV_TYPE_ARM_PV_TIME = 10,
1: - KVM_DEV_TYPE_MAX = 11,
1: + KVM_DEV_TYPE_FSL_MPIC_20 = 1,
1: + KVM_DEV_TYPE_FSL_MPIC_42 = 2,
1: + KVM_DEV_TYPE_XICS = 3,
1: + KVM_DEV_TYPE_VFIO = 4,
1: + KVM_DEV_TYPE_ARM_VGIC_V2 = 5,
1: + KVM_DEV_TYPE_FLIC = 6,
1: + KVM_DEV_TYPE_ARM_VGIC_V3 = 7,
1: + KVM_DEV_TYPE_ARM_VGIC_ITS = 8,
1: + KVM_DEV_TYPE_XIVE = 9,
1: + KVM_DEV_TYPE_ARM_PV_TIME = 10,
1: + KVM_DEV_TYPE_MAX = 11,
1: };
1:
1: struct its_vm {
1: - struct fwnode_handle *fwnode;
1: - struct irq_domain *domain;
1: - struct page *vprop_page;
1: - struct its_vpe **vpes;
1: - int nr_vpes;
1: - irq_hw_number_t db_lpi_base;
1: - long unsigned int *db_bitmap;
1: - int nr_db_lpis;
1: - u32 vlpi_count[16];
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *domain;
1: + struct page *vprop_page;
1: + struct its_vpe **vpes;
1: + int nr_vpes;
1: + irq_hw_number_t db_lpi_base;
1: + long unsigned int *db_bitmap;
1: + int nr_db_lpis;
1: + u32 vlpi_count[16];
1: };
1:
1: struct kvm_device;
1:
1: struct vgic_its {
1: - gpa_t vgic_its_base;
1: - bool enabled;
1: - struct vgic_io_device iodev;
1: - struct kvm_device *dev;
1: - u64 baser_device_table;
1: - u64 baser_coll_table;
1: - struct mutex cmd_lock;
1: - u64 cbaser;
1: - u32 creadr;
1: - u32 cwriter;
1: - u32 abi_rev;
1: - struct mutex its_lock;
1: - struct list_head device_list;
1: - struct list_head collection_list;
1: + gpa_t vgic_its_base;
1: + bool enabled;
1: + struct vgic_io_device iodev;
1: + struct kvm_device *dev;
1: + u64 baser_device_table;
1: + u64 baser_coll_table;
1: + struct mutex cmd_lock;
1: + u64 cbaser;
1: + u32 creadr;
1: + u32 cwriter;
1: + u32 abi_rev;
1: + struct mutex its_lock;
1: + struct list_head device_list;
1: + struct list_head collection_list;
1: };
1:
1: struct vgic_register_region {
1: - unsigned int reg_offset;
1: - unsigned int len;
1: - unsigned int bits_per_irq;
1: - unsigned int access_flags;
1: - union {
1: - long unsigned int (*read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: - long unsigned int (*its_read)(struct kvm *, struct vgic_its *, gpa_t, unsigned int);
1: - };
1: - union {
1: - void (*write)(struct kvm_vcpu *, gpa_t, unsigned int, long unsigned int);
1: - void (*its_write)(struct kvm *, struct vgic_its *, gpa_t, unsigned int, long unsigned int);
1: - };
1: - long unsigned int (*uaccess_read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: - union {
1: - int (*uaccess_write)(struct kvm_vcpu *, gpa_t, unsigned int, long unsigned int);
1: - int (*uaccess_its_write)(struct kvm *, struct vgic_its *, gpa_t, unsigned int, long unsigned int);
1: - };
1: + unsigned int reg_offset;
1: + unsigned int len;
1: + unsigned int bits_per_irq;
1: + unsigned int access_flags;
1: + union {
1: + long unsigned int (*read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: + long unsigned int (*its_read)(struct kvm *, struct vgic_its *, gpa_t,
1: + unsigned int);
1: + };
1: + union {
1: + void (*write)(struct kvm_vcpu *, gpa_t, unsigned int, long unsigned int);
1: + void (*its_write)(struct kvm *, struct vgic_its *, gpa_t, unsigned int,
1: + long unsigned int);
1: + };
1: + long unsigned int (*uaccess_read)(struct kvm_vcpu *, gpa_t, unsigned int);
1: + union {
1: + int (*uaccess_write)(struct kvm_vcpu *, gpa_t, unsigned int,
1: + long unsigned int);
1: + int (*uaccess_its_write)(struct kvm *, struct vgic_its *, gpa_t,
1: + unsigned int, long unsigned int);
1: + };
1: };
1:
1: struct kvm_device_ops;
1:
1: struct kvm_device {
1: - const struct kvm_device_ops *ops;
1: - struct kvm *kvm;
1: - void *private;
1: - struct list_head vm_node;
1: + const struct kvm_device_ops *ops;
1: + struct kvm *kvm;
1: + void *private;
1: + struct list_head vm_node;
1: };
1:
1: struct vgic_redist_region {
1: - u32 index;
1: - gpa_t base;
1: - u32 count;
1: - u32 free_index;
1: - struct list_head list;
1: + u32 index;
1: + gpa_t base;
1: + u32 count;
1: + u32 free_index;
1: + struct list_head list;
1: };
1:
1: struct vgic_state_iter;
1:
1: struct vgic_dist {
1: - bool in_kernel;
1: - bool ready;
1: - bool initialized;
1: - u32 vgic_model;
1: - u32 implementation_rev;
1: - bool v2_groups_user_writable;
1: - bool msis_require_devid;
1: - int nr_spis;
1: - gpa_t vgic_dist_base;
1: - union {
1: - gpa_t vgic_cpu_base;
1: - struct list_head rd_regions;
1: - };
1: - bool enabled;
1: - bool nassgireq;
1: - struct vgic_irq *spis;
1: - struct vgic_io_device dist_iodev;
1: - bool has_its;
1: - u64 propbaser;
1: - raw_spinlock_t lpi_list_lock;
1: - struct list_head lpi_list_head;
1: - int lpi_list_count;
1: - struct list_head lpi_translation_cache;
1: - struct vgic_state_iter *iter;
1: - struct its_vm its_vm;
1: + bool in_kernel;
1: + bool ready;
1: + bool initialized;
1: + u32 vgic_model;
1: + u32 implementation_rev;
1: + bool v2_groups_user_writable;
1: + bool msis_require_devid;
1: + int nr_spis;
1: + gpa_t vgic_dist_base;
1: + union {
1: + gpa_t vgic_cpu_base;
1: + struct list_head rd_regions;
1: + };
1: + bool enabled;
1: + bool nassgireq;
1: + struct vgic_irq *spis;
1: + struct vgic_io_device dist_iodev;
1: + bool has_its;
1: + u64 propbaser;
1: + raw_spinlock_t lpi_list_lock;
1: + struct list_head lpi_list_head;
1: + int lpi_list_count;
1: + struct list_head lpi_translation_cache;
1: + struct vgic_state_iter *iter;
1: + struct its_vm its_vm;
1: };
1:
1: struct kvm_vmid {
1: - u64 vmid_gen;
1: - u32 vmid;
1: + u64 vmid_gen;
1: + u32 vmid;
1: };
1:
1: struct kvm_pgtable;
1:
1: struct kvm_s2_mmu {
1: - struct kvm_vmid vmid;
1: - phys_addr_t pgd_phys;
1: - struct kvm_pgtable *pgt;
1: - int *last_vcpu_ran;
1: - struct kvm *kvm;
1: + struct kvm_vmid vmid;
1: + phys_addr_t pgd_phys;
1: + struct kvm_pgtable *pgt;
1: + int *last_vcpu_ran;
1: + struct kvm *kvm;
1: };
1:
1: struct kvm_vm_stat {
1: - ulong remote_tlb_flush;
1: + ulong remote_tlb_flush;
1: };
1:
1: struct kvm_arch {
1: - struct kvm_s2_mmu mmu;
1: - u64 vtcr;
1: - int max_vcpus;
1: - struct vgic_dist vgic;
1: - u32 psci_version;
1: - bool return_nisv_io_abort_to_user;
1: - long unsigned int *pmu_filter;
1: - unsigned int pmuver;
1: - u8 pfr0_csv2;
1: + struct kvm_s2_mmu mmu;
1: + u64 vtcr;
1: + int max_vcpus;
1: + struct vgic_dist vgic;
1: + u32 psci_version;
1: + bool return_nisv_io_abort_to_user;
1: + long unsigned int *pmu_filter;
1: + unsigned int pmuver;
1: + u8 pfr0_csv2;
1: };
1:
1: struct kvm_memslots;
1: @@ -18893,208 +19117,208 @@ struct kvm_irq_routing_table;
1: struct kvm_stat_data;
1:
1: struct kvm {
1: - spinlock_t mmu_lock;
1: - struct mutex slots_lock;
1: - struct mm_struct *mm;
1: - struct kvm_memslots *memslots[1];
1: - struct kvm_vcpu *vcpus[512];
1: - atomic_t online_vcpus;
1: - int created_vcpus;
1: - int last_boosted_vcpu;
1: - struct list_head vm_list;
1: - struct mutex lock;
1: - struct kvm_io_bus *buses[4];
1: - struct {
1: - spinlock_t lock;
1: - struct list_head items;
1: - struct list_head resampler_list;
1: - struct mutex resampler_lock;
1: - } irqfds;
1: - struct list_head ioeventfds;
1: - struct kvm_vm_stat stat;
1: - struct kvm_arch arch;
1: - refcount_t users_count;
1: - struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;
1: - spinlock_t ring_lock;
1: - struct list_head coalesced_zones;
1: - struct mutex irq_lock;
1: - struct kvm_irq_routing_table *irq_routing;
1: - struct hlist_head irq_ack_notifier_list;
1: - struct mmu_notifier mmu_notifier;
1: - long unsigned int mmu_notifier_seq;
1: - long int mmu_notifier_count;
1: - long int tlbs_dirty;
1: - struct list_head devices;
1: - u64 manual_dirty_log_protect;
1: - struct dentry *debugfs_dentry;
1: - struct kvm_stat_data **debugfs_stat_data;
1: - struct srcu_struct srcu;
1: - struct srcu_struct irq_srcu;
1: - pid_t userspace_pid;
1: - unsigned int max_halt_poll_ns;
1: + spinlock_t mmu_lock;
1: + struct mutex slots_lock;
1: + struct mm_struct *mm;
1: + struct kvm_memslots *memslots[1];
1: + struct kvm_vcpu *vcpus[512];
1: + atomic_t online_vcpus;
1: + int created_vcpus;
1: + int last_boosted_vcpu;
1: + struct list_head vm_list;
1: + struct mutex lock;
1: + struct kvm_io_bus *buses[4];
1: + struct {
1: + spinlock_t lock;
1: + struct list_head items;
1: + struct list_head resampler_list;
1: + struct mutex resampler_lock;
1: + } irqfds;
1: + struct list_head ioeventfds;
1: + struct kvm_vm_stat stat;
1: + struct kvm_arch arch;
1: + refcount_t users_count;
1: + struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;
1: + spinlock_t ring_lock;
1: + struct list_head coalesced_zones;
1: + struct mutex irq_lock;
1: + struct kvm_irq_routing_table *irq_routing;
1: + struct hlist_head irq_ack_notifier_list;
1: + struct mmu_notifier mmu_notifier;
1: + long unsigned int mmu_notifier_seq;
1: + long int mmu_notifier_count;
1: + long int tlbs_dirty;
1: + struct list_head devices;
1: + u64 manual_dirty_log_protect;
1: + struct dentry *debugfs_dentry;
1: + struct kvm_stat_data **debugfs_stat_data;
1: + struct srcu_struct srcu;
1: + struct srcu_struct irq_srcu;
1: + pid_t userspace_pid;
1: + unsigned int max_halt_poll_ns;
1: };
1:
1: struct kvm_io_range {
1: - gpa_t addr;
1: - int len;
1: - struct kvm_io_device *dev;
1: + gpa_t addr;
1: + int len;
1: + struct kvm_io_device *dev;
1: };
1:
1: struct kvm_io_bus {
1: - int dev_count;
1: - int ioeventfd_count;
1: - struct kvm_io_range range[0];
1: + int dev_count;
1: + int ioeventfd_count;
1: + struct kvm_io_range range[0];
1: };
1:
1: enum {
1: - OUTSIDE_GUEST_MODE = 0,
1: - IN_GUEST_MODE = 1,
1: - EXITING_GUEST_MODE = 2,
1: - READING_SHADOW_PAGE_TABLES = 3,
1: + OUTSIDE_GUEST_MODE = 0,
1: + IN_GUEST_MODE = 1,
1: + EXITING_GUEST_MODE = 2,
1: + READING_SHADOW_PAGE_TABLES = 3,
1: };
1:
1: struct kvm_host_map {
1: - struct page *page;
1: - void *hva;
1: - kvm_pfn_t pfn;
1: - kvm_pfn_t gfn;
1: + struct page *page;
1: + void *hva;
1: + kvm_pfn_t pfn;
1: + kvm_pfn_t gfn;
1: };
1:
1: struct kvm_irq_routing_table {
1: - int chip[988];
1: - u32 nr_rt_entries;
1: - struct hlist_head map[0];
1: + int chip[988];
1: + u32 nr_rt_entries;
1: + struct hlist_head map[0];
1: };
1:
1: struct kvm_memslots {
1: - u64 generation;
1: - short int id_to_index[512];
1: - atomic_t lru_slot;
1: - int used_slots;
1: - struct kvm_memory_slot memslots[0];
1: + u64 generation;
1: + short int id_to_index[512];
1: + atomic_t lru_slot;
1: + int used_slots;
1: + struct kvm_memory_slot memslots[0];
1: };
1:
1: struct kvm_stats_debugfs_item;
1:
1: struct kvm_stat_data {
1: - struct kvm *kvm;
1: - struct kvm_stats_debugfs_item *dbgfs_item;
1: + struct kvm *kvm;
1: + struct kvm_stats_debugfs_item *dbgfs_item;
1: };
1:
1: enum kvm_mr_change {
1: - KVM_MR_CREATE = 0,
1: - KVM_MR_DELETE = 1,
1: - KVM_MR_MOVE = 2,
1: - KVM_MR_FLAGS_ONLY = 3,
1: + KVM_MR_CREATE = 0,
1: + KVM_MR_DELETE = 1,
1: + KVM_MR_MOVE = 2,
1: + KVM_MR_FLAGS_ONLY = 3,
1: };
1:
1: enum kvm_stat_kind {
1: - KVM_STAT_VM = 0,
1: - KVM_STAT_VCPU = 1,
1: + KVM_STAT_VM = 0,
1: + KVM_STAT_VCPU = 1,
1: };
1:
1: struct kvm_stats_debugfs_item {
1: - const char *name;
1: - int offset;
1: - enum kvm_stat_kind kind;
1: - int mode;
1: + const char *name;
1: + int offset;
1: + enum kvm_stat_kind kind;
1: + int mode;
1: };
1:
1: struct kvm_device_ops {
1: - const char *name;
1: - int (*create)(struct kvm_device *, u32);
1: - void (*init)(struct kvm_device *);
1: - void (*destroy)(struct kvm_device *);
1: - void (*release)(struct kvm_device *);
1: - int (*set_attr)(struct kvm_device *, struct kvm_device_attr *);
1: - int (*get_attr)(struct kvm_device *, struct kvm_device_attr *);
1: - int (*has_attr)(struct kvm_device *, struct kvm_device_attr *);
1: - long int (*ioctl)(struct kvm_device *, unsigned int, long unsigned int);
1: - int (*mmap)(struct kvm_device *, struct vm_area_struct *);
1: + const char *name;
1: + int (*create)(struct kvm_device *, u32);
1: + void (*init)(struct kvm_device *);
1: + void (*destroy)(struct kvm_device *);
1: + void (*release)(struct kvm_device *);
1: + int (*set_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*get_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*has_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + long int (*ioctl)(struct kvm_device *, unsigned int, long unsigned int);
1: + int (*mmap)(struct kvm_device *, struct vm_area_struct *);
1: };
1:
1: typedef int (*kvm_vm_thread_fn_t)(struct kvm *, uintptr_t);
1:
1: struct miscdevice {
1: - int minor;
1: - const char *name;
1: - const struct file_operations *fops;
1: - struct list_head list;
1: - struct device *parent;
1: - struct device *this_device;
1: - const struct attribute_group **groups;
1: - const char *nodename;
1: - umode_t mode;
1: + int minor;
1: + const char *name;
1: + const struct file_operations *fops;
1: + struct list_head list;
1: + struct device *parent;
1: + struct device *this_device;
1: + const struct attribute_group **groups;
1: + const char *nodename;
1: + umode_t mode;
1: };
1:
1: struct syscore_ops {
1: - struct list_head node;
1: - int (*suspend)();
1: - void (*resume)();
1: - void (*shutdown)();
1: + struct list_head node;
1: + int (*suspend)();
1: + void (*resume)();
1: + void (*shutdown)();
1: };
1:
1: struct trace_event_raw_kvm_userspace_exit {
1: - struct trace_entry ent;
1: - __u32 reason;
1: - int errno;
1: - char __data[0];
1: + struct trace_entry ent;
1: + __u32 reason;
1: + int errno;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_vcpu_wakeup {
1: - struct trace_entry ent;
1: - __u64 ns;
1: - bool waited;
1: - bool valid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + __u64 ns;
1: + bool waited;
1: + bool valid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_set_irq {
1: - struct trace_entry ent;
1: - unsigned int gsi;
1: - int level;
1: - int irq_source_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int gsi;
1: + int level;
1: + int irq_source_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_ack_irq {
1: - struct trace_entry ent;
1: - unsigned int irqchip;
1: - unsigned int pin;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int irqchip;
1: + unsigned int pin;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_mmio {
1: - struct trace_entry ent;
1: - u32 type;
1: - u32 len;
1: - u64 gpa;
1: - u64 val;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 type;
1: + u32 len;
1: + u64 gpa;
1: + u64 val;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_fpu {
1: - struct trace_entry ent;
1: - u32 load;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 load;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_age_page {
1: - struct trace_entry ent;
1: - u64 hva;
1: - u64 gfn;
1: - u8 level;
1: - u8 referenced;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u64 hva;
1: + u64 gfn;
1: + u8 level;
1: + u8 referenced;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_halt_poll_ns {
1: - struct trace_entry ent;
1: - bool grow;
1: - unsigned int vcpu_id;
1: - unsigned int new;
1: - unsigned int old;
1: - char __data[0];
1: + struct trace_entry ent;
1: + bool grow;
1: + unsigned int vcpu_id;
1: + unsigned int new;
1: + unsigned int old;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_kvm_userspace_exit {};
1: @@ -19125,400 +19349,407 @@ typedef void (*btf_trace_kvm_mmio)(void *, int, int, u64, void *);
1:
1: typedef void (*btf_trace_kvm_fpu)(void *, int);
1:
1: -typedef void (*btf_trace_kvm_age_page)(void *, ulong, int, struct kvm_memory_slot *, int);
1: +typedef void (*btf_trace_kvm_age_page)(void *, ulong, int,
1: + struct kvm_memory_slot *, int);
1:
1: -typedef void (*btf_trace_kvm_halt_poll_ns)(void *, bool, unsigned int, unsigned int, unsigned int);
1: +typedef void (*btf_trace_kvm_halt_poll_ns)(void *, bool, unsigned int,
1: + unsigned int, unsigned int);
1:
1: struct kvm_cpu_compat_check {
1: - void *opaque;
1: - int *ret;
1: + void *opaque;
1: + int *ret;
1: };
1:
1: struct kvm_vm_worker_thread_context {
1: - struct kvm *kvm;
1: - struct task_struct *parent;
1: - struct completion init_done;
1: - kvm_vm_thread_fn_t thread_fn;
1: - uintptr_t data;
1: - int err;
1: + struct kvm *kvm;
1: + struct task_struct *parent;
1: + struct completion init_done;
1: + kvm_vm_thread_fn_t thread_fn;
1: + uintptr_t data;
1: + int err;
1: };
1:
1: struct kvm_coalesced_mmio_dev {
1: - struct list_head list;
1: - struct kvm_io_device dev;
1: - struct kvm *kvm;
1: - struct kvm_coalesced_mmio_zone zone;
1: -};
1: -
1: -enum {
1: - WORK_STRUCT_PENDING_BIT = 0,
1: - WORK_STRUCT_DELAYED_BIT = 1,
1: - WORK_STRUCT_PWQ_BIT = 2,
1: - WORK_STRUCT_LINKED_BIT = 3,
1: - WORK_STRUCT_COLOR_SHIFT = 4,
1: - WORK_STRUCT_COLOR_BITS = 4,
1: - WORK_STRUCT_PENDING = 1,
1: - WORK_STRUCT_DELAYED = 2,
1: - WORK_STRUCT_PWQ = 4,
1: - WORK_STRUCT_LINKED = 8,
1: - WORK_STRUCT_STATIC = 0,
1: - WORK_NR_COLORS = 15,
1: - WORK_NO_COLOR = 15,
1: - WORK_CPU_UNBOUND = 128,
1: - WORK_STRUCT_FLAG_BITS = 8,
1: - WORK_OFFQ_FLAG_BASE = 4,
1: - __WORK_OFFQ_CANCELING = 4,
1: - WORK_OFFQ_CANCELING = 16,
1: - WORK_OFFQ_FLAG_BITS = 1,
1: - WORK_OFFQ_POOL_SHIFT = 5,
1: - WORK_OFFQ_LEFT = 59,
1: - WORK_OFFQ_POOL_BITS = 31,
1: - WORK_OFFQ_POOL_NONE = 2147483647,
1: - WORK_STRUCT_FLAG_MASK = 255,
1: - WORK_STRUCT_WQ_DATA_MASK = 4294967040,
1: - WORK_STRUCT_NO_POOL = 4294967264,
1: - WORK_BUSY_PENDING = 1,
1: - WORK_BUSY_RUNNING = 2,
1: - WORKER_DESC_LEN = 24,
1: + struct list_head list;
1: + struct kvm_io_device dev;
1: + struct kvm *kvm;
1: + struct kvm_coalesced_mmio_zone zone;
1: +};
1: +
1: +enum {
1: + WORK_STRUCT_PENDING_BIT = 0,
1: + WORK_STRUCT_DELAYED_BIT = 1,
1: + WORK_STRUCT_PWQ_BIT = 2,
1: + WORK_STRUCT_LINKED_BIT = 3,
1: + WORK_STRUCT_COLOR_SHIFT = 4,
1: + WORK_STRUCT_COLOR_BITS = 4,
1: + WORK_STRUCT_PENDING = 1,
1: + WORK_STRUCT_DELAYED = 2,
1: + WORK_STRUCT_PWQ = 4,
1: + WORK_STRUCT_LINKED = 8,
1: + WORK_STRUCT_STATIC = 0,
1: + WORK_NR_COLORS = 15,
1: + WORK_NO_COLOR = 15,
1: + WORK_CPU_UNBOUND = 128,
1: + WORK_STRUCT_FLAG_BITS = 8,
1: + WORK_OFFQ_FLAG_BASE = 4,
1: + __WORK_OFFQ_CANCELING = 4,
1: + WORK_OFFQ_CANCELING = 16,
1: + WORK_OFFQ_FLAG_BITS = 1,
1: + WORK_OFFQ_POOL_SHIFT = 5,
1: + WORK_OFFQ_LEFT = 59,
1: + WORK_OFFQ_POOL_BITS = 31,
1: + WORK_OFFQ_POOL_NONE = 2147483647,
1: + WORK_STRUCT_FLAG_MASK = 255,
1: + WORK_STRUCT_WQ_DATA_MASK = 4294967040,
1: + WORK_STRUCT_NO_POOL = 4294967264,
1: + WORK_BUSY_PENDING = 1,
1: + WORK_BUSY_RUNNING = 2,
1: + WORKER_DESC_LEN = 24,
1: };
1:
1: struct irq_bypass_consumer;
1:
1: struct irq_bypass_producer {
1: - struct list_head node;
1: - void *token;
1: - int irq;
1: - int (*add_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: - void (*del_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: - void (*stop)(struct irq_bypass_producer *);
1: - void (*start)(struct irq_bypass_producer *);
1: + struct list_head node;
1: + void *token;
1: + int irq;
1: + int (*add_consumer)(struct irq_bypass_producer *,
1: + struct irq_bypass_consumer *);
1: + void (*del_consumer)(struct irq_bypass_producer *,
1: + struct irq_bypass_consumer *);
1: + void (*stop)(struct irq_bypass_producer *);
1: + void (*start)(struct irq_bypass_producer *);
1: };
1:
1: struct irq_bypass_consumer {
1: - struct list_head node;
1: - void *token;
1: - int (*add_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: - void (*del_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: - void (*stop)(struct irq_bypass_consumer *);
1: - void (*start)(struct irq_bypass_consumer *);
1: + struct list_head node;
1: + void *token;
1: + int (*add_producer)(struct irq_bypass_consumer *,
1: + struct irq_bypass_producer *);
1: + void (*del_producer)(struct irq_bypass_consumer *,
1: + struct irq_bypass_producer *);
1: + void (*stop)(struct irq_bypass_consumer *);
1: + void (*start)(struct irq_bypass_consumer *);
1: };
1:
1: enum {
1: - kvm_ioeventfd_flag_nr_datamatch = 0,
1: - kvm_ioeventfd_flag_nr_pio = 1,
1: - kvm_ioeventfd_flag_nr_deassign = 2,
1: - kvm_ioeventfd_flag_nr_virtio_ccw_notify = 3,
1: - kvm_ioeventfd_flag_nr_fast_mmio = 4,
1: - kvm_ioeventfd_flag_nr_max = 5,
1: + kvm_ioeventfd_flag_nr_datamatch = 0,
1: + kvm_ioeventfd_flag_nr_pio = 1,
1: + kvm_ioeventfd_flag_nr_deassign = 2,
1: + kvm_ioeventfd_flag_nr_virtio_ccw_notify = 3,
1: + kvm_ioeventfd_flag_nr_fast_mmio = 4,
1: + kvm_ioeventfd_flag_nr_max = 5,
1: };
1:
1: struct fd {
1: - struct file *file;
1: - unsigned int flags;
1: + struct file *file;
1: + unsigned int flags;
1: };
1:
1: struct kvm_s390_adapter_int {
1: - u64 ind_addr;
1: - u64 summary_addr;
1: - u64 ind_offset;
1: - u32 summary_offset;
1: - u32 adapter_id;
1: + u64 ind_addr;
1: + u64 summary_addr;
1: + u64 ind_offset;
1: + u32 summary_offset;
1: + u32 adapter_id;
1: };
1:
1: struct kvm_hv_sint {
1: - u32 vcpu;
1: - u32 sint;
1: + u32 vcpu;
1: + u32 sint;
1: };
1:
1: struct kvm_kernel_irq_routing_entry {
1: - u32 gsi;
1: - u32 type;
1: - int (*set)(struct kvm_kernel_irq_routing_entry *, struct kvm *, int, int, bool);
1: - union {
1: - struct {
1: - unsigned int irqchip;
1: - unsigned int pin;
1: - } irqchip;
1: - struct {
1: - u32 address_lo;
1: - u32 address_hi;
1: - u32 data;
1: - u32 flags;
1: - u32 devid;
1: - } msi;
1: - struct kvm_s390_adapter_int adapter;
1: - struct kvm_hv_sint hv_sint;
1: - };
1: - struct hlist_node link;
1: + u32 gsi;
1: + u32 type;
1: + int (*set)(struct kvm_kernel_irq_routing_entry *, struct kvm *, int, int,
1: + bool);
1: + union {
1: + struct {
1: + unsigned int irqchip;
1: + unsigned int pin;
1: + } irqchip;
1: + struct {
1: + u32 address_lo;
1: + u32 address_hi;
1: + u32 data;
1: + u32 flags;
1: + u32 devid;
1: + } msi;
1: + struct kvm_s390_adapter_int adapter;
1: + struct kvm_hv_sint hv_sint;
1: + };
1: + struct hlist_node link;
1: };
1:
1: struct kvm_irq_ack_notifier {
1: - struct hlist_node link;
1: - unsigned int gsi;
1: - void (*irq_acked)(struct kvm_irq_ack_notifier *);
1: + struct hlist_node link;
1: + unsigned int gsi;
1: + void (*irq_acked)(struct kvm_irq_ack_notifier *);
1: };
1:
1: typedef struct poll_table_struct poll_table;
1:
1: struct kvm_kernel_irqfd_resampler {
1: - struct kvm *kvm;
1: - struct list_head list;
1: - struct kvm_irq_ack_notifier notifier;
1: - struct list_head link;
1: + struct kvm *kvm;
1: + struct list_head list;
1: + struct kvm_irq_ack_notifier notifier;
1: + struct list_head link;
1: };
1:
1: struct kvm_kernel_irqfd {
1: - struct kvm *kvm;
1: - wait_queue_entry_t wait;
1: - struct kvm_kernel_irq_routing_entry irq_entry;
1: - seqcount_spinlock_t irq_entry_sc;
1: - int gsi;
1: - struct work_struct inject;
1: - struct kvm_kernel_irqfd_resampler *resampler;
1: - struct eventfd_ctx *resamplefd;
1: - struct list_head resampler_link;
1: - struct eventfd_ctx *eventfd;
1: - struct list_head list;
1: - poll_table pt;
1: - struct work_struct shutdown;
1: - struct irq_bypass_consumer consumer;
1: - struct irq_bypass_producer *producer;
1: + struct kvm *kvm;
1: + wait_queue_entry_t wait;
1: + struct kvm_kernel_irq_routing_entry irq_entry;
1: + seqcount_spinlock_t irq_entry_sc;
1: + int gsi;
1: + struct work_struct inject;
1: + struct kvm_kernel_irqfd_resampler *resampler;
1: + struct eventfd_ctx *resamplefd;
1: + struct list_head resampler_link;
1: + struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + poll_table pt;
1: + struct work_struct shutdown;
1: + struct irq_bypass_consumer consumer;
1: + struct irq_bypass_producer *producer;
1: };
1:
1: struct _ioeventfd {
1: - struct list_head list;
1: - u64 addr;
1: - int length;
1: - struct eventfd_ctx *eventfd;
1: - u64 datamatch;
1: - struct kvm_io_device dev;
1: - u8 bus_idx;
1: - bool wildcard;
1: + struct list_head list;
1: + u64 addr;
1: + int length;
1: + struct eventfd_ctx *eventfd;
1: + u64 datamatch;
1: + struct kvm_io_device dev;
1: + u8 bus_idx;
1: + bool wildcard;
1: };
1:
1: struct vfio_group;
1:
1: struct kvm_vfio_group {
1: - struct list_head node;
1: - struct vfio_group *vfio_group;
1: + struct list_head node;
1: + struct vfio_group *vfio_group;
1: };
1:
1: struct kvm_vfio {
1: - struct list_head group_list;
1: - struct mutex lock;
1: - bool noncoherent;
1: + struct list_head group_list;
1: + struct mutex lock;
1: + bool noncoherent;
1: };
1:
1: struct kvm_vcpu_init {
1: - __u32 target;
1: - __u32 features[7];
1: + __u32 target;
1: + __u32 features[7];
1: };
1:
1: struct kvm_vcpu_events {
1: - struct {
1: - __u8 serror_pending;
1: - __u8 serror_has_esr;
1: - __u8 ext_dabt_pending;
1: - __u8 pad[5];
1: - __u64 serror_esr;
1: - } exception;
1: - __u32 reserved[12];
1: + struct {
1: + __u8 serror_pending;
1: + __u8 serror_has_esr;
1: + __u8 ext_dabt_pending;
1: + __u8 pad[5];
1: + __u64 serror_esr;
1: + } exception;
1: + __u32 reserved[12];
1: };
1:
1: struct kvm_reg_list {
1: - __u64 n;
1: - __u64 reg[0];
1: + __u64 n;
1: + __u64 reg[0];
1: };
1:
1: struct kvm_one_reg {
1: - __u64 id;
1: - __u64 addr;
1: + __u64 id;
1: + __u64 addr;
1: };
1:
1: struct kvm_arm_device_addr {
1: - __u64 id;
1: - __u64 addr;
1: + __u64 id;
1: + __u64 addr;
1: };
1:
1: enum vgic_type {
1: - VGIC_V2 = 0,
1: - VGIC_V3 = 1,
1: + VGIC_V2 = 0,
1: + VGIC_V3 = 1,
1: };
1:
1: struct vgic_global {
1: - enum vgic_type type;
1: - phys_addr_t vcpu_base;
1: - void *vcpu_base_va;
1: - void *vcpu_hyp_va;
1: - void *vctrl_base;
1: - void *vctrl_hyp;
1: - int nr_lr;
1: - unsigned int maint_irq;
1: - int max_gic_vcpus;
1: - bool can_emulate_gicv2;
1: - bool has_gicv4;
1: - bool has_gicv4_1;
1: - struct static_key_false gicv3_cpuif;
1: - u32 ich_vtr_el2;
1: + enum vgic_type type;
1: + phys_addr_t vcpu_base;
1: + void *vcpu_base_va;
1: + void *vcpu_hyp_va;
1: + void *vctrl_base;
1: + void *vctrl_hyp;
1: + int nr_lr;
1: + unsigned int maint_irq;
1: + int max_gic_vcpus;
1: + bool can_emulate_gicv2;
1: + bool has_gicv4;
1: + bool has_gicv4_1;
1: + struct static_key_false gicv3_cpuif;
1: + u32 ich_vtr_el2;
1: };
1:
1: struct timer_map {
1: - struct arch_timer_context *direct_vtimer;
1: - struct arch_timer_context *direct_ptimer;
1: - struct arch_timer_context *emul_ptimer;
1: + struct arch_timer_context *direct_vtimer;
1: + struct arch_timer_context *direct_ptimer;
1: + struct arch_timer_context *emul_ptimer;
1: };
1:
1: typedef u64 kvm_pte_t;
1:
1: struct kvm_pgtable {
1: - u32 ia_bits;
1: - u32 start_level;
1: - kvm_pte_t *pgd;
1: - struct kvm_s2_mmu *mmu;
1: + u32 ia_bits;
1: + u32 start_level;
1: + kvm_pte_t *pgd;
1: + struct kvm_s2_mmu *mmu;
1: };
1:
1: struct kvm_pmu_events {
1: - u32 events_host;
1: - u32 events_guest;
1: + u32 events_host;
1: + u32 events_guest;
1: };
1:
1: struct kvm_host_data {
1: - struct kvm_cpu_context host_ctxt;
1: - struct kvm_pmu_events pmu_events;
1: - long: 64;
1: + struct kvm_cpu_context host_ctxt;
1: + struct kvm_pmu_events pmu_events;
1: + long : 64;
1: };
1:
1: struct trace_event_raw_kvm_entry {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_exit {
1: - struct trace_entry ent;
1: - int ret;
1: - unsigned int esr_ec;
1: - long unsigned int vcpu_pc;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ret;
1: + unsigned int esr_ec;
1: + long unsigned int vcpu_pc;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_guest_fault {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - long unsigned int hsr;
1: - long unsigned int hxfar;
1: - long long unsigned int ipa;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int hsr;
1: + long unsigned int hxfar;
1: + long long unsigned int ipa;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_access_fault {
1: - struct trace_entry ent;
1: - long unsigned int ipa;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ipa;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_irq_line {
1: - struct trace_entry ent;
1: - unsigned int type;
1: - int vcpu_idx;
1: - int irq_num;
1: - int level;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int type;
1: + int vcpu_idx;
1: + int irq_num;
1: + int level;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_mmio_emulate {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - long unsigned int instr;
1: - long unsigned int cpsr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int instr;
1: + long unsigned int cpsr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_unmap_hva_range {
1: - struct trace_entry ent;
1: - long unsigned int start;
1: - long unsigned int end;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int start;
1: + long unsigned int end;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_set_spte_hva {
1: - struct trace_entry ent;
1: - long unsigned int hva;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int hva;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_age_hva {
1: - struct trace_entry ent;
1: - long unsigned int start;
1: - long unsigned int end;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int start;
1: + long unsigned int end;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_test_age_hva {
1: - struct trace_entry ent;
1: - long unsigned int hva;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int hva;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_set_way_flush {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - bool cache;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool cache;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_toggle_cache {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - bool was;
1: - bool now;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool was;
1: + bool now;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_timer_update_irq {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_id;
1: - __u32 irq;
1: - int level;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + __u32 irq;
1: + int level;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_get_timer_map {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_id;
1: - int direct_vtimer;
1: - int direct_ptimer;
1: - int emul_ptimer;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + int direct_vtimer;
1: + int direct_ptimer;
1: + int emul_ptimer;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_timer_save_state {
1: - struct trace_entry ent;
1: - long unsigned int ctl;
1: - long long unsigned int cval;
1: - int timer_idx;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ctl;
1: + long long unsigned int cval;
1: + int timer_idx;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_timer_restore_state {
1: - struct trace_entry ent;
1: - long unsigned int ctl;
1: - long long unsigned int cval;
1: - int timer_idx;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ctl;
1: + long long unsigned int cval;
1: + int timer_idx;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_timer_hrtimer_expire {
1: - struct trace_entry ent;
1: - int timer_idx;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int timer_idx;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_timer_emulate {
1: - struct trace_entry ent;
1: - int timer_idx;
1: - bool should_fire;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int timer_idx;
1: + bool should_fire;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_kvm_entry {};
1: @@ -19559,169 +19790,187 @@ struct trace_event_data_offsets_kvm_timer_emulate {};
1:
1: typedef void (*btf_trace_kvm_entry)(void *, long unsigned int);
1:
1: -typedef void (*btf_trace_kvm_exit)(void *, int, unsigned int, long unsigned int);
1: +typedef void (*btf_trace_kvm_exit)(void *, int, unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_kvm_guest_fault)(void *, long unsigned int, long unsigned int, long unsigned int, long long unsigned int);
1: +typedef void (*btf_trace_kvm_guest_fault)(void *, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + long long unsigned int);
1:
1: typedef void (*btf_trace_kvm_access_fault)(void *, long unsigned int);
1:
1: typedef void (*btf_trace_kvm_irq_line)(void *, unsigned int, int, int, int);
1:
1: -typedef void (*btf_trace_kvm_mmio_emulate)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_kvm_mmio_emulate)(void *, long unsigned int,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_kvm_unmap_hva_range)(void *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_kvm_unmap_hva_range)(void *, long unsigned int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_kvm_set_spte_hva)(void *, long unsigned int);
1:
1: -typedef void (*btf_trace_kvm_age_hva)(void *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_kvm_age_hva)(void *, long unsigned int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_kvm_test_age_hva)(void *, long unsigned int);
1:
1: typedef void (*btf_trace_kvm_set_way_flush)(void *, long unsigned int, bool);
1:
1: -typedef void (*btf_trace_kvm_toggle_cache)(void *, long unsigned int, bool, bool);
1: +typedef void (*btf_trace_kvm_toggle_cache)(void *, long unsigned int, bool,
1: + bool);
1:
1: -typedef void (*btf_trace_kvm_timer_update_irq)(void *, long unsigned int, __u32, int);
1: +typedef void (*btf_trace_kvm_timer_update_irq)(void *, long unsigned int, __u32,
1: + int);
1:
1: -typedef void (*btf_trace_kvm_get_timer_map)(void *, long unsigned int, struct timer_map *);
1: +typedef void (*btf_trace_kvm_get_timer_map)(void *, long unsigned int,
1: + struct timer_map *);
1:
1: -typedef void (*btf_trace_kvm_timer_save_state)(void *, struct arch_timer_context *);
1: +typedef void (*btf_trace_kvm_timer_save_state)(void *,
1: + struct arch_timer_context *);
1:
1: -typedef void (*btf_trace_kvm_timer_restore_state)(void *, struct arch_timer_context *);
1: +typedef void (*btf_trace_kvm_timer_restore_state)(void *,
1: + struct arch_timer_context *);
1:
1: -typedef void (*btf_trace_kvm_timer_hrtimer_expire)(void *, struct arch_timer_context *);
1: +typedef void (*btf_trace_kvm_timer_hrtimer_expire)(void *,
1: + struct arch_timer_context *);
1:
1: -typedef void (*btf_trace_kvm_timer_emulate)(void *, struct arch_timer_context *, bool);
1: +typedef void (*btf_trace_kvm_timer_emulate)(void *, struct arch_timer_context *,
1: + bool);
1:
1: enum kvm_pgtable_prot {
1: - KVM_PGTABLE_PROT_X = 1,
1: - KVM_PGTABLE_PROT_W = 2,
1: - KVM_PGTABLE_PROT_R = 4,
1: - KVM_PGTABLE_PROT_DEVICE = 8,
1: + KVM_PGTABLE_PROT_X = 1,
1: + KVM_PGTABLE_PROT_W = 2,
1: + KVM_PGTABLE_PROT_R = 4,
1: + KVM_PGTABLE_PROT_DEVICE = 8,
1: };
1:
1: typedef long unsigned int hva_t;
1:
1: enum kvm_arch_timers {
1: - TIMER_PTIMER = 0,
1: - TIMER_VTIMER = 1,
1: - NR_KVM_TIMERS = 2,
1: + TIMER_PTIMER = 0,
1: + TIMER_VTIMER = 1,
1: + NR_KVM_TIMERS = 2,
1: };
1:
1: enum exception_type {
1: - except_type_sync = 0,
1: - except_type_irq = 128,
1: - except_type_fiq = 256,
1: - except_type_serror = 384,
1: + except_type_sync = 0,
1: + except_type_irq = 128,
1: + except_type_fiq = 256,
1: + except_type_serror = 384,
1: };
1:
1: struct sys_reg_params;
1:
1: struct sys_reg_desc {
1: - const char *name;
1: - u8 Op0;
1: - u8 Op1;
1: - u8 CRn;
1: - u8 CRm;
1: - u8 Op2;
1: - bool (*access)(struct kvm_vcpu *, struct sys_reg_params *, const struct sys_reg_desc *);
1: - void (*reset)(struct kvm_vcpu *, const struct sys_reg_desc *);
1: - int reg;
1: - u64 val;
1: - int (*__get_user)(struct kvm_vcpu *, const struct sys_reg_desc *, const struct kvm_one_reg *, void *);
1: - int (*set_user)(struct kvm_vcpu *, const struct sys_reg_desc *, const struct kvm_one_reg *, void *);
1: - unsigned int (*visibility)(const struct kvm_vcpu *, const struct sys_reg_desc *);
1: + const char *name;
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + bool (*access)(struct kvm_vcpu *, struct sys_reg_params *,
1: + const struct sys_reg_desc *);
1: + void (*reset)(struct kvm_vcpu *, const struct sys_reg_desc *);
1: + int reg;
1: + u64 val;
1: + int (*__get_user)(struct kvm_vcpu *, const struct sys_reg_desc *,
1: + const struct kvm_one_reg *, void *);
1: + int (*set_user)(struct kvm_vcpu *, const struct sys_reg_desc *,
1: + const struct kvm_one_reg *, void *);
1: + unsigned int (*visibility)(const struct kvm_vcpu *,
1: + const struct sys_reg_desc *);
1: };
1:
1: struct sys_reg_params {
1: - u8 Op0;
1: - u8 Op1;
1: - u8 CRn;
1: - u8 CRm;
1: - u8 Op2;
1: - u64 regval;
1: - bool is_write;
1: - bool is_aarch32;
1: - bool is_32bit;
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + u64 regval;
1: + bool is_write;
1: + bool is_aarch32;
1: + bool is_32bit;
1: };
1:
1: struct trace_event_raw_kvm_wfx_arm64 {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - bool is_wfe;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool is_wfe;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_hvc_arm64 {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - long unsigned int r0;
1: - long unsigned int imm;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + long unsigned int r0;
1: + long unsigned int imm;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_arm_setup_debug {
1: - struct trace_entry ent;
1: - struct kvm_vcpu *vcpu;
1: - __u32 guest_debug;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct kvm_vcpu *vcpu;
1: + __u32 guest_debug;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_arm_clear_debug {
1: - struct trace_entry ent;
1: - __u32 guest_debug;
1: - char __data[0];
1: + struct trace_entry ent;
1: + __u32 guest_debug;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_arm_set_dreg32 {
1: - struct trace_entry ent;
1: - const char *name;
1: - __u32 value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *name;
1: + __u32 value;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_arm_set_regset {
1: - struct trace_entry ent;
1: - const char *name;
1: - int len;
1: - u64 ctrls[16];
1: - u64 values[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *name;
1: + int len;
1: + u64 ctrls[16];
1: + u64 values[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_trap_reg {
1: - struct trace_entry ent;
1: - const char *fn;
1: - int reg;
1: - bool is_write;
1: - u64 write_value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *fn;
1: + int reg;
1: + bool is_write;
1: + u64 write_value;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_handle_sys_reg {
1: - struct trace_entry ent;
1: - long unsigned int hsr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int hsr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_sys_access {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_pc;
1: - bool is_write;
1: - const char *name;
1: - u8 Op0;
1: - u8 Op1;
1: - u8 CRn;
1: - u8 CRm;
1: - u8 Op2;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_pc;
1: + bool is_write;
1: + const char *name;
1: + u8 Op0;
1: + u8 Op1;
1: + u8 CRn;
1: + u8 CRm;
1: + u8 Op2;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kvm_set_guest_debug {
1: - struct trace_entry ent;
1: - struct kvm_vcpu *vcpu;
1: - __u32 guest_debug;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct kvm_vcpu *vcpu;
1: + __u32 guest_debug;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_kvm_wfx_arm64 {};
1: @@ -19746,7 +19995,8 @@ struct trace_event_data_offsets_kvm_set_guest_debug {};
1:
1: typedef void (*btf_trace_kvm_wfx_arm64)(void *, long unsigned int, bool);
1:
1: -typedef void (*btf_trace_kvm_hvc_arm64)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_kvm_hvc_arm64)(void *, long unsigned int,
1: + long unsigned int, long unsigned int);
1:
1: typedef void (*btf_trace_kvm_arm_setup_debug)(void *, struct kvm_vcpu *, __u32);
1:
1: @@ -19754,30 +20004,33 @@ typedef void (*btf_trace_kvm_arm_clear_debug)(void *, __u32);
1:
1: typedef void (*btf_trace_kvm_arm_set_dreg32)(void *, const char *, __u32);
1:
1: -typedef void (*btf_trace_kvm_arm_set_regset)(void *, const char *, int, __u64 *, __u64 *);
1: +typedef void (*btf_trace_kvm_arm_set_regset)(void *, const char *, int, __u64 *,
1: + __u64 *);
1:
1: typedef void (*btf_trace_trap_reg)(void *, const char *, int, bool, u64);
1:
1: typedef void (*btf_trace_kvm_handle_sys_reg)(void *, long unsigned int);
1:
1: -typedef void (*btf_trace_kvm_sys_access)(void *, long unsigned int, struct sys_reg_params *, const struct sys_reg_desc *);
1: +typedef void (*btf_trace_kvm_sys_access)(void *, long unsigned int,
1: + struct sys_reg_params *,
1: + const struct sys_reg_desc *);
1:
1: typedef void (*btf_trace_kvm_set_guest_debug)(void *, struct kvm_vcpu *, __u32);
1:
1: typedef int (*exit_handle_fn)(struct kvm_vcpu *);
1:
1: struct sve_state_reg_region {
1: - unsigned int koffset;
1: - unsigned int klen;
1: - unsigned int upad;
1: + unsigned int koffset;
1: + unsigned int klen;
1: + unsigned int upad;
1: };
1:
1: struct __va_list {
1: - void *__stack;
1: - void *__gr_top;
1: - void *__vr_top;
1: - int __gr_offs;
1: - int __vr_offs;
1: + void *__stack;
1: + void *__gr_top;
1: + void *__vr_top;
1: + int __gr_offs;
1: + int __vr_offs;
1: };
1:
1: typedef struct __va_list __gnuc_va_list;
1: @@ -19785,214 +20038,217 @@ typedef struct __va_list __gnuc_va_list;
1: typedef __gnuc_va_list va_list;
1:
1: struct va_format {
1: - const char *fmt;
1: - va_list *va;
1: + const char *fmt;
1: + va_list *va;
1: };
1:
1: enum kvm_arch_timer_regs {
1: - TIMER_REG_CNT = 0,
1: - TIMER_REG_CVAL = 1,
1: - TIMER_REG_TVAL = 2,
1: - TIMER_REG_CTL = 3,
1: + TIMER_REG_CNT = 0,
1: + TIMER_REG_CVAL = 1,
1: + TIMER_REG_TVAL = 2,
1: + TIMER_REG_CTL = 3,
1: };
1:
1: struct vgic_vmcr {
1: - u32 grpen0;
1: - u32 grpen1;
1: - u32 ackctl;
1: - u32 fiqen;
1: - u32 cbpr;
1: - u32 eoim;
1: - u32 abpr;
1: - u32 bpr;
1: - u32 pmr;
1: + u32 grpen0;
1: + u32 grpen1;
1: + u32 ackctl;
1: + u32 fiqen;
1: + u32 cbpr;
1: + u32 eoim;
1: + u32 abpr;
1: + u32 bpr;
1: + u32 pmr;
1: };
1:
1: struct cyclecounter {
1: - u64 (*read)(const struct cyclecounter *);
1: - u64 mask;
1: - u32 mult;
1: - u32 shift;
1: + u64 (*read)(const struct cyclecounter *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: };
1:
1: struct timecounter {
1: - const struct cyclecounter *cc;
1: - u64 cycle_last;
1: - u64 nsec;
1: - u64 mask;
1: - u64 frac;
1: + const struct cyclecounter *cc;
1: + u64 cycle_last;
1: + u64 nsec;
1: + u64 mask;
1: + u64 frac;
1: };
1:
1: struct arch_timer_kvm_info {
1: - struct timecounter timecounter;
1: - int virtual_irq;
1: - int physical_irq;
1: + struct timecounter timecounter;
1: + int virtual_irq;
1: + int physical_irq;
1: };
1:
1: enum hrtimer_mode {
1: - HRTIMER_MODE_ABS = 0,
1: - HRTIMER_MODE_REL = 1,
1: - HRTIMER_MODE_PINNED = 2,
1: - HRTIMER_MODE_SOFT = 4,
1: - HRTIMER_MODE_HARD = 8,
1: - HRTIMER_MODE_ABS_PINNED = 2,
1: - HRTIMER_MODE_REL_PINNED = 3,
1: - HRTIMER_MODE_ABS_SOFT = 4,
1: - HRTIMER_MODE_REL_SOFT = 5,
1: - HRTIMER_MODE_ABS_PINNED_SOFT = 6,
1: - HRTIMER_MODE_REL_PINNED_SOFT = 7,
1: - HRTIMER_MODE_ABS_HARD = 8,
1: - HRTIMER_MODE_REL_HARD = 9,
1: - HRTIMER_MODE_ABS_PINNED_HARD = 10,
1: - HRTIMER_MODE_REL_PINNED_HARD = 11,
1: + HRTIMER_MODE_ABS = 0,
1: + HRTIMER_MODE_REL = 1,
1: + HRTIMER_MODE_PINNED = 2,
1: + HRTIMER_MODE_SOFT = 4,
1: + HRTIMER_MODE_HARD = 8,
1: + HRTIMER_MODE_ABS_PINNED = 2,
1: + HRTIMER_MODE_REL_PINNED = 3,
1: + HRTIMER_MODE_ABS_SOFT = 4,
1: + HRTIMER_MODE_REL_SOFT = 5,
1: + HRTIMER_MODE_ABS_PINNED_SOFT = 6,
1: + HRTIMER_MODE_REL_PINNED_SOFT = 7,
1: + HRTIMER_MODE_ABS_HARD = 8,
1: + HRTIMER_MODE_REL_HARD = 9,
1: + HRTIMER_MODE_ABS_PINNED_HARD = 10,
1: + HRTIMER_MODE_REL_PINNED_HARD = 11,
1: };
1:
1: struct trace_event_raw_vgic_update_irq_pending {
1: - struct trace_entry ent;
1: - long unsigned int vcpu_id;
1: - __u32 irq;
1: - bool level;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int vcpu_id;
1: + __u32 irq;
1: + bool level;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_vgic_update_irq_pending {};
1:
1: -typedef void (*btf_trace_vgic_update_irq_pending)(void *, long unsigned int, __u32, bool);
1: +typedef void (*btf_trace_vgic_update_irq_pending)(void *, long unsigned int,
1: + __u32, bool);
1:
1: enum gic_type {
1: - GIC_V2 = 0,
1: - GIC_V3 = 1,
1: + GIC_V2 = 0,
1: + GIC_V3 = 1,
1: };
1:
1: struct gic_kvm_info {
1: - enum gic_type type;
1: - struct resource vcpu;
1: - unsigned int maint_irq;
1: - struct resource vctrl;
1: - bool has_v4;
1: - bool has_v4_1;
1: + enum gic_type type;
1: + struct resource vcpu;
1: + unsigned int maint_irq;
1: + struct resource vctrl;
1: + bool has_v4;
1: + bool has_v4_1;
1: };
1:
1: struct its_vlpi_map {
1: - struct its_vm *vm;
1: - struct its_vpe *vpe;
1: - u32 vintid;
1: - u8 properties;
1: - bool db_enabled;
1: + struct its_vm *vm;
1: + struct its_vpe *vpe;
1: + u32 vintid;
1: + u8 properties;
1: + bool db_enabled;
1: };
1:
1: struct vgic_reg_attr {
1: - struct kvm_vcpu *vcpu;
1: - gpa_t addr;
1: + struct kvm_vcpu *vcpu;
1: + gpa_t addr;
1: };
1:
1: struct its_device {
1: - struct list_head dev_list;
1: - struct list_head itt_head;
1: - u32 num_eventid_bits;
1: - gpa_t itt_addr;
1: - u32 device_id;
1: + struct list_head dev_list;
1: + struct list_head itt_head;
1: + u32 num_eventid_bits;
1: + gpa_t itt_addr;
1: + u32 device_id;
1: };
1:
1: struct its_collection {
1: - struct list_head coll_list;
1: - u32 collection_id;
1: - u32 target_addr;
1: + struct list_head coll_list;
1: + u32 collection_id;
1: + u32 target_addr;
1: };
1:
1: struct its_ite {
1: - struct list_head ite_list;
1: - struct vgic_irq *irq;
1: - struct its_collection *collection;
1: - u32 event_id;
1: + struct list_head ite_list;
1: + struct vgic_irq *irq;
1: + struct its_collection *collection;
1: + u32 event_id;
1: };
1:
1: struct vgic_translation_cache_entry {
1: - struct list_head entry;
1: - phys_addr_t db;
1: - u32 devid;
1: - u32 eventid;
1: - struct vgic_irq *irq;
1: + struct list_head entry;
1: + phys_addr_t db;
1: + u32 devid;
1: + u32 eventid;
1: + struct vgic_irq *irq;
1: };
1:
1: struct vgic_its_abi {
1: - int cte_esz;
1: - int dte_esz;
1: - int ite_esz;
1: - int (*save_tables)(struct vgic_its *);
1: - int (*restore_tables)(struct vgic_its *);
1: - int (*commit)(struct vgic_its *);
1: + int cte_esz;
1: + int dte_esz;
1: + int ite_esz;
1: + int (*save_tables)(struct vgic_its *);
1: + int (*restore_tables)(struct vgic_its *);
1: + int (*commit)(struct vgic_its *);
1: };
1:
1: typedef int (*entry_fn_t)(struct vgic_its *, u32, void *, void *);
1:
1: struct vgic_state_iter {
1: - int nr_cpus;
1: - int nr_spis;
1: - int nr_lpis;
1: - int dist_id;
1: - int vcpu_id;
1: - int intid;
1: - int lpi_idx;
1: - u32 *lpi_array;
1: + int nr_cpus;
1: + int nr_spis;
1: + int nr_lpis;
1: + int dist_id;
1: + int vcpu_id;
1: + int intid;
1: + int lpi_idx;
1: + u32 *lpi_array;
1: };
1:
1: struct kvm_pmu_event_filter {
1: - __u16 base_event;
1: - __u16 nevents;
1: - __u8 action;
1: - __u8 pad[3];
1: + __u16 base_event;
1: + __u16 nevents;
1: + __u8 action;
1: + __u8 pad[3];
1: };
1:
1: struct tlb_inv_context {
1: - long unsigned int flags;
1: - u64 tcr;
1: - u64 sctlr;
1: + long unsigned int flags;
1: + u64 tcr;
1: + u64 sctlr;
1: };
1:
1: struct tlb_inv_context___2 {
1: - u64 tcr;
1: + u64 tcr;
1: };
1:
1: enum kvm_pgtable_walk_flags {
1: - KVM_PGTABLE_WALK_LEAF = 1,
1: - KVM_PGTABLE_WALK_TABLE_PRE = 2,
1: - KVM_PGTABLE_WALK_TABLE_POST = 4,
1: + KVM_PGTABLE_WALK_LEAF = 1,
1: + KVM_PGTABLE_WALK_TABLE_PRE = 2,
1: + KVM_PGTABLE_WALK_TABLE_POST = 4,
1: };
1:
1: -typedef int (*kvm_pgtable_visitor_fn_t)(u64, u64, u32, kvm_pte_t *, enum kvm_pgtable_walk_flags, void * const);
1: +typedef int (*kvm_pgtable_visitor_fn_t)(u64, u64, u32, kvm_pte_t *,
1: + enum kvm_pgtable_walk_flags,
1: + void *const);
1:
1: struct kvm_pgtable_walker {
1: - const kvm_pgtable_visitor_fn_t cb;
1: - void * const arg;
1: - const enum kvm_pgtable_walk_flags flags;
1: + const kvm_pgtable_visitor_fn_t cb;
1: + void *const arg;
1: + const enum kvm_pgtable_walk_flags flags;
1: };
1:
1: struct kvm_pgtable_walk_data {
1: - struct kvm_pgtable *pgt;
1: - struct kvm_pgtable_walker *walker;
1: - u64 addr;
1: - u64 end;
1: + struct kvm_pgtable *pgt;
1: + struct kvm_pgtable_walker *walker;
1: + u64 addr;
1: + u64 end;
1: };
1:
1: struct hyp_map_data {
1: - u64 phys;
1: - kvm_pte_t attr;
1: + u64 phys;
1: + kvm_pte_t attr;
1: };
1:
1: struct stage2_map_data {
1: - u64 phys;
1: - kvm_pte_t attr;
1: - kvm_pte_t *anchor;
1: - struct kvm_s2_mmu *mmu;
1: - struct kvm_mmu_memory_cache *memcache;
1: + u64 phys;
1: + kvm_pte_t attr;
1: + kvm_pte_t *anchor;
1: + struct kvm_s2_mmu *mmu;
1: + struct kvm_mmu_memory_cache *memcache;
1: };
1:
1: struct stage2_attr_data {
1: - kvm_pte_t attr_set;
1: - kvm_pte_t attr_clr;
1: - kvm_pte_t pte;
1: - u32 level;
1: + kvm_pte_t attr_set;
1: + kvm_pte_t attr_clr;
1: + kvm_pte_t pte;
1: + u32 level;
1: };
1:
1: typedef s8 int8_t;
1: @@ -20006,38 +20262,38 @@ typedef uint64_t xen_pfn_t;
1: typedef uint64_t xen_ulong_t;
1:
1: typedef struct {
1: - union {
1: - unsigned char *p;
1: - uint64_t q;
1: - };
1: + union {
1: + unsigned char *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_uchar;
1:
1: typedef struct {
1: - union {
1: - char *p;
1: - uint64_t q;
1: - };
1: + union {
1: + char *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_char;
1:
1: typedef struct {
1: - union {
1: - void *p;
1: - uint64_t q;
1: - };
1: + union {
1: + void *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_void;
1:
1: typedef struct {
1: - union {
1: - uint64_t *p;
1: - uint64_t q;
1: - };
1: + union {
1: + uint64_t *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_uint64_t;
1:
1: typedef struct {
1: - union {
1: - uint32_t *p;
1: - uint64_t q;
1: - };
1: + union {
1: + uint32_t *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_uint32_t;
1:
1: struct arch_vcpu_info {};
1: @@ -20045,521 +20301,521 @@ struct arch_vcpu_info {};
1: struct arch_shared_info {};
1:
1: struct pvclock_vcpu_time_info {
1: - u32 version;
1: - u32 pad0;
1: - u64 tsc_timestamp;
1: - u64 system_time;
1: - u32 tsc_to_system_mul;
1: - s8 tsc_shift;
1: - u8 flags;
1: - u8 pad[2];
1: + u32 version;
1: + u32 pad0;
1: + u64 tsc_timestamp;
1: + u64 system_time;
1: + u32 tsc_to_system_mul;
1: + s8 tsc_shift;
1: + u8 flags;
1: + u8 pad[2];
1: };
1:
1: struct pvclock_wall_clock {
1: - u32 version;
1: - u32 sec;
1: - u32 nsec;
1: - u32 sec_hi;
1: + u32 version;
1: + u32 sec;
1: + u32 nsec;
1: + u32 sec_hi;
1: };
1:
1: typedef uint16_t domid_t;
1:
1: struct vcpu_info {
1: - uint8_t evtchn_upcall_pending;
1: - uint8_t evtchn_upcall_mask;
1: - xen_ulong_t evtchn_pending_sel;
1: - struct arch_vcpu_info arch;
1: - struct pvclock_vcpu_time_info time;
1: + uint8_t evtchn_upcall_pending;
1: + uint8_t evtchn_upcall_mask;
1: + xen_ulong_t evtchn_pending_sel;
1: + struct arch_vcpu_info arch;
1: + struct pvclock_vcpu_time_info time;
1: };
1:
1: struct shared_info {
1: - struct vcpu_info vcpu_info[1];
1: - xen_ulong_t evtchn_pending[64];
1: - xen_ulong_t evtchn_mask[64];
1: - struct pvclock_wall_clock wc;
1: - struct arch_shared_info arch;
1: + struct vcpu_info vcpu_info[1];
1: + xen_ulong_t evtchn_pending[64];
1: + xen_ulong_t evtchn_mask[64];
1: + struct pvclock_wall_clock wc;
1: + struct arch_shared_info arch;
1: };
1:
1: struct start_info {
1: - char magic[32];
1: - long unsigned int nr_pages;
1: - long unsigned int shared_info;
1: - uint32_t flags;
1: - xen_pfn_t store_mfn;
1: - uint32_t store_evtchn;
1: - union {
1: - struct {
1: - xen_pfn_t mfn;
1: - uint32_t evtchn;
1: - } domU;
1: - struct {
1: - uint32_t info_off;
1: - uint32_t info_size;
1: - } dom0;
1: - } console;
1: - long unsigned int pt_base;
1: - long unsigned int nr_pt_frames;
1: - long unsigned int mfn_list;
1: - long unsigned int mod_start;
1: - long unsigned int mod_len;
1: - int8_t cmd_line[1024];
1: - long unsigned int first_p2m_pfn;
1: - long unsigned int nr_p2m_frames;
1: + char magic[32];
1: + long unsigned int nr_pages;
1: + long unsigned int shared_info;
1: + uint32_t flags;
1: + xen_pfn_t store_mfn;
1: + uint32_t store_evtchn;
1: + union {
1: + struct {
1: + xen_pfn_t mfn;
1: + uint32_t evtchn;
1: + } domU;
1: + struct {
1: + uint32_t info_off;
1: + uint32_t info_size;
1: + } dom0;
1: + } console;
1: + long unsigned int pt_base;
1: + long unsigned int nr_pt_frames;
1: + long unsigned int mfn_list;
1: + long unsigned int mod_start;
1: + long unsigned int mod_len;
1: + int8_t cmd_line[1024];
1: + long unsigned int first_p2m_pfn;
1: + long unsigned int nr_p2m_frames;
1: };
1:
1: enum vdso_clock_mode {
1: - VDSO_CLOCKMODE_NONE = 0,
1: - VDSO_CLOCKMODE_ARCHTIMER = 1,
1: - VDSO_CLOCKMODE_ARCHTIMER_NOCOMPAT = 2,
1: - VDSO_CLOCKMODE_MAX = 3,
1: - VDSO_CLOCKMODE_TIMENS = 2147483647,
1: + VDSO_CLOCKMODE_NONE = 0,
1: + VDSO_CLOCKMODE_ARCHTIMER = 1,
1: + VDSO_CLOCKMODE_ARCHTIMER_NOCOMPAT = 2,
1: + VDSO_CLOCKMODE_MAX = 3,
1: + VDSO_CLOCKMODE_TIMENS = 2147483647,
1: };
1:
1: struct clocksource {
1: - u64 (*read)(struct clocksource *);
1: - u64 mask;
1: - u32 mult;
1: - u32 shift;
1: - u64 max_idle_ns;
1: - u32 maxadj;
1: - u64 max_cycles;
1: - const char *name;
1: - struct list_head list;
1: - int rating;
1: - enum vdso_clock_mode vdso_clock_mode;
1: - long unsigned int flags;
1: - int (*enable)(struct clocksource *);
1: - void (*disable)(struct clocksource *);
1: - void (*suspend)(struct clocksource *);
1: - void (*resume)(struct clocksource *);
1: - void (*mark_unstable)(struct clocksource *);
1: - void (*tick_stable)(struct clocksource *);
1: - struct module *owner;
1: + u64 (*read)(struct clocksource *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: + u64 max_idle_ns;
1: + u32 maxadj;
1: + u64 max_cycles;
1: + const char *name;
1: + struct list_head list;
1: + int rating;
1: + enum vdso_clock_mode vdso_clock_mode;
1: + long unsigned int flags;
1: + int (*enable)(struct clocksource *);
1: + void (*disable)(struct clocksource *);
1: + void (*suspend)(struct clocksource *);
1: + void (*resume)(struct clocksource *);
1: + void (*mark_unstable)(struct clocksource *);
1: + void (*tick_stable)(struct clocksource *);
1: + struct module *owner;
1: };
1:
1: struct sched_shutdown {
1: - unsigned int reason;
1: + unsigned int reason;
1: };
1:
1: struct xenpf_settime32 {
1: - uint32_t secs;
1: - uint32_t nsecs;
1: - uint64_t system_time;
1: + uint32_t secs;
1: + uint32_t nsecs;
1: + uint64_t system_time;
1: };
1:
1: struct xenpf_settime64 {
1: - uint64_t secs;
1: - uint32_t nsecs;
1: - uint32_t mbz;
1: - uint64_t system_time;
1: + uint64_t secs;
1: + uint32_t nsecs;
1: + uint32_t mbz;
1: + uint64_t system_time;
1: };
1:
1: struct xenpf_add_memtype {
1: - xen_pfn_t mfn;
1: - uint64_t nr_mfns;
1: - uint32_t type;
1: - uint32_t handle;
1: - uint32_t reg;
1: + xen_pfn_t mfn;
1: + uint64_t nr_mfns;
1: + uint32_t type;
1: + uint32_t handle;
1: + uint32_t reg;
1: };
1:
1: struct xenpf_del_memtype {
1: - uint32_t handle;
1: - uint32_t reg;
1: + uint32_t handle;
1: + uint32_t reg;
1: };
1:
1: struct xenpf_read_memtype {
1: - uint32_t reg;
1: - xen_pfn_t mfn;
1: - uint64_t nr_mfns;
1: - uint32_t type;
1: + uint32_t reg;
1: + xen_pfn_t mfn;
1: + uint64_t nr_mfns;
1: + uint32_t type;
1: };
1:
1: struct xenpf_microcode_update {
1: - __guest_handle_void data;
1: - uint32_t length;
1: + __guest_handle_void data;
1: + uint32_t length;
1: };
1:
1: struct xenpf_platform_quirk {
1: - uint32_t quirk_id;
1: + uint32_t quirk_id;
1: };
1:
1: struct xenpf_efi_time {
1: - uint16_t year;
1: - uint8_t month;
1: - uint8_t day;
1: - uint8_t hour;
1: - uint8_t min;
1: - uint8_t sec;
1: - uint32_t ns;
1: - int16_t tz;
1: - uint8_t daylight;
1: + uint16_t year;
1: + uint8_t month;
1: + uint8_t day;
1: + uint8_t hour;
1: + uint8_t min;
1: + uint8_t sec;
1: + uint32_t ns;
1: + int16_t tz;
1: + uint8_t daylight;
1: };
1:
1: struct xenpf_efi_guid {
1: - uint32_t data1;
1: - uint16_t data2;
1: - uint16_t data3;
1: - uint8_t data4[8];
1: + uint32_t data1;
1: + uint16_t data2;
1: + uint16_t data3;
1: + uint8_t data4[8];
1: };
1:
1: struct xenpf_efi_runtime_call {
1: - uint32_t function;
1: - uint32_t misc;
1: - xen_ulong_t status;
1: - union {
1: - struct {
1: - struct xenpf_efi_time time;
1: - uint32_t resolution;
1: - uint32_t accuracy;
1: - } get_time;
1: - struct xenpf_efi_time set_time;
1: - struct xenpf_efi_time get_wakeup_time;
1: - struct xenpf_efi_time set_wakeup_time;
1: - struct {
1: - __guest_handle_void name;
1: - xen_ulong_t size;
1: - __guest_handle_void data;
1: - struct xenpf_efi_guid vendor_guid;
1: - } get_variable;
1: - struct {
1: - __guest_handle_void name;
1: - xen_ulong_t size;
1: - __guest_handle_void data;
1: - struct xenpf_efi_guid vendor_guid;
1: - } set_variable;
1: - struct {
1: - xen_ulong_t size;
1: - __guest_handle_void name;
1: - struct xenpf_efi_guid vendor_guid;
1: - } get_next_variable_name;
1: - struct {
1: - uint32_t attr;
1: - uint64_t max_store_size;
1: - uint64_t remain_store_size;
1: - uint64_t max_size;
1: - } query_variable_info;
1: - struct {
1: - __guest_handle_void capsule_header_array;
1: - xen_ulong_t capsule_count;
1: - uint64_t max_capsule_size;
1: - uint32_t reset_type;
1: - } query_capsule_capabilities;
1: - struct {
1: - __guest_handle_void capsule_header_array;
1: - xen_ulong_t capsule_count;
1: - uint64_t sg_list;
1: - } update_capsule;
1: - } u;
1: + uint32_t function;
1: + uint32_t misc;
1: + xen_ulong_t status;
1: + union {
1: + struct {
1: + struct xenpf_efi_time time;
1: + uint32_t resolution;
1: + uint32_t accuracy;
1: + } get_time;
1: + struct xenpf_efi_time set_time;
1: + struct xenpf_efi_time get_wakeup_time;
1: + struct xenpf_efi_time set_wakeup_time;
1: + struct {
1: + __guest_handle_void name;
1: + xen_ulong_t size;
1: + __guest_handle_void data;
1: + struct xenpf_efi_guid vendor_guid;
1: + } get_variable;
1: + struct {
1: + __guest_handle_void name;
1: + xen_ulong_t size;
1: + __guest_handle_void data;
1: + struct xenpf_efi_guid vendor_guid;
1: + } set_variable;
1: + struct {
1: + xen_ulong_t size;
1: + __guest_handle_void name;
1: + struct xenpf_efi_guid vendor_guid;
1: + } get_next_variable_name;
1: + struct {
1: + uint32_t attr;
1: + uint64_t max_store_size;
1: + uint64_t remain_store_size;
1: + uint64_t max_size;
1: + } query_variable_info;
1: + struct {
1: + __guest_handle_void capsule_header_array;
1: + xen_ulong_t capsule_count;
1: + uint64_t max_capsule_size;
1: + uint32_t reset_type;
1: + } query_capsule_capabilities;
1: + struct {
1: + __guest_handle_void capsule_header_array;
1: + xen_ulong_t capsule_count;
1: + uint64_t sg_list;
1: + } update_capsule;
1: + } u;
1: };
1:
1: union xenpf_efi_info {
1: - uint32_t version;
1: - struct {
1: - uint64_t addr;
1: - uint32_t nent;
1: - } cfg;
1: - struct {
1: - uint32_t revision;
1: - uint32_t bufsz;
1: - __guest_handle_void name;
1: - } vendor;
1: - struct {
1: - uint64_t addr;
1: - uint64_t size;
1: - uint64_t attr;
1: - uint32_t type;
1: - } mem;
1: + uint32_t version;
1: + struct {
1: + uint64_t addr;
1: + uint32_t nent;
1: + } cfg;
1: + struct {
1: + uint32_t revision;
1: + uint32_t bufsz;
1: + __guest_handle_void name;
1: + } vendor;
1: + struct {
1: + uint64_t addr;
1: + uint64_t size;
1: + uint64_t attr;
1: + uint32_t type;
1: + } mem;
1: };
1:
1: struct xenpf_firmware_info {
1: - uint32_t type;
1: - uint32_t index;
1: - union {
1: - struct {
1: - uint8_t device;
1: - uint8_t version;
1: - uint16_t interface_support;
1: - uint16_t legacy_max_cylinder;
1: - uint8_t legacy_max_head;
1: - uint8_t legacy_sectors_per_track;
1: - __guest_handle_void edd_params;
1: - } disk_info;
1: - struct {
1: - uint8_t device;
1: - uint32_t mbr_signature;
1: - } disk_mbr_signature;
1: - struct {
1: - uint8_t capabilities;
1: - uint8_t edid_transfer_time;
1: - __guest_handle_uchar edid;
1: - } vbeddc_info;
1: - union xenpf_efi_info efi_info;
1: - uint8_t kbd_shift_flags;
1: - } u;
1: + uint32_t type;
1: + uint32_t index;
1: + union {
1: + struct {
1: + uint8_t device;
1: + uint8_t version;
1: + uint16_t interface_support;
1: + uint16_t legacy_max_cylinder;
1: + uint8_t legacy_max_head;
1: + uint8_t legacy_sectors_per_track;
1: + __guest_handle_void edd_params;
1: + } disk_info;
1: + struct {
1: + uint8_t device;
1: + uint32_t mbr_signature;
1: + } disk_mbr_signature;
1: + struct {
1: + uint8_t capabilities;
1: + uint8_t edid_transfer_time;
1: + __guest_handle_uchar edid;
1: + } vbeddc_info;
1: + union xenpf_efi_info efi_info;
1: + uint8_t kbd_shift_flags;
1: + } u;
1: };
1:
1: struct xenpf_enter_acpi_sleep {
1: - uint16_t val_a;
1: - uint16_t val_b;
1: - uint32_t sleep_state;
1: - uint32_t flags;
1: + uint16_t val_a;
1: + uint16_t val_b;
1: + uint32_t sleep_state;
1: + uint32_t flags;
1: };
1:
1: struct xenpf_change_freq {
1: - uint32_t flags;
1: - uint32_t cpu;
1: - uint64_t freq;
1: + uint32_t flags;
1: + uint32_t cpu;
1: + uint64_t freq;
1: };
1:
1: struct xenpf_getidletime {
1: - __guest_handle_uchar cpumap_bitmap;
1: - uint32_t cpumap_nr_cpus;
1: - __guest_handle_uint64_t idletime;
1: - uint64_t now;
1: + __guest_handle_uchar cpumap_bitmap;
1: + uint32_t cpumap_nr_cpus;
1: + __guest_handle_uint64_t idletime;
1: + uint64_t now;
1: };
1:
1: struct xen_power_register {
1: - uint32_t space_id;
1: - uint32_t bit_width;
1: - uint32_t bit_offset;
1: - uint32_t access_size;
1: - uint64_t address;
1: + uint32_t space_id;
1: + uint32_t bit_width;
1: + uint32_t bit_offset;
1: + uint32_t access_size;
1: + uint64_t address;
1: };
1:
1: struct xen_processor_csd {
1: - uint32_t domain;
1: - uint32_t coord_type;
1: - uint32_t num;
1: + uint32_t domain;
1: + uint32_t coord_type;
1: + uint32_t num;
1: };
1:
1: typedef struct {
1: - union {
1: - struct xen_processor_csd *p;
1: - uint64_t q;
1: - };
1: + union {
1: + struct xen_processor_csd *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_xen_processor_csd;
1:
1: struct xen_processor_cx {
1: - struct xen_power_register reg;
1: - uint8_t type;
1: - uint32_t latency;
1: - uint32_t power;
1: - uint32_t dpcnt;
1: - __guest_handle_xen_processor_csd dp;
1: + struct xen_power_register reg;
1: + uint8_t type;
1: + uint32_t latency;
1: + uint32_t power;
1: + uint32_t dpcnt;
1: + __guest_handle_xen_processor_csd dp;
1: };
1:
1: typedef struct {
1: - union {
1: - struct xen_processor_cx *p;
1: - uint64_t q;
1: - };
1: + union {
1: + struct xen_processor_cx *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_xen_processor_cx;
1:
1: struct xen_processor_flags {
1: - uint32_t bm_control: 1;
1: - uint32_t bm_check: 1;
1: - uint32_t has_cst: 1;
1: - uint32_t power_setup_done: 1;
1: - uint32_t bm_rld_set: 1;
1: + uint32_t bm_control : 1;
1: + uint32_t bm_check : 1;
1: + uint32_t has_cst : 1;
1: + uint32_t power_setup_done : 1;
1: + uint32_t bm_rld_set : 1;
1: };
1:
1: struct xen_processor_power {
1: - uint32_t count;
1: - struct xen_processor_flags flags;
1: - __guest_handle_xen_processor_cx states;
1: + uint32_t count;
1: + struct xen_processor_flags flags;
1: + __guest_handle_xen_processor_cx states;
1: };
1:
1: struct xen_pct_register {
1: - uint8_t descriptor;
1: - uint16_t length;
1: - uint8_t space_id;
1: - uint8_t bit_width;
1: - uint8_t bit_offset;
1: - uint8_t reserved;
1: - uint64_t address;
1: + uint8_t descriptor;
1: + uint16_t length;
1: + uint8_t space_id;
1: + uint8_t bit_width;
1: + uint8_t bit_offset;
1: + uint8_t reserved;
1: + uint64_t address;
1: };
1:
1: struct xen_processor_px {
1: - uint64_t core_frequency;
1: - uint64_t power;
1: - uint64_t transition_latency;
1: - uint64_t bus_master_latency;
1: - uint64_t control;
1: - uint64_t status;
1: + uint64_t core_frequency;
1: + uint64_t power;
1: + uint64_t transition_latency;
1: + uint64_t bus_master_latency;
1: + uint64_t control;
1: + uint64_t status;
1: };
1:
1: typedef struct {
1: - union {
1: - struct xen_processor_px *p;
1: - uint64_t q;
1: - };
1: + union {
1: + struct xen_processor_px *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_xen_processor_px;
1:
1: struct xen_psd_package {
1: - uint64_t num_entries;
1: - uint64_t revision;
1: - uint64_t domain;
1: - uint64_t coord_type;
1: - uint64_t num_processors;
1: + uint64_t num_entries;
1: + uint64_t revision;
1: + uint64_t domain;
1: + uint64_t coord_type;
1: + uint64_t num_processors;
1: };
1:
1: struct xen_processor_performance {
1: - uint32_t flags;
1: - uint32_t platform_limit;
1: - struct xen_pct_register control_register;
1: - struct xen_pct_register status_register;
1: - uint32_t state_count;
1: - __guest_handle_xen_processor_px states;
1: - struct xen_psd_package domain_info;
1: - uint32_t shared_type;
1: + uint32_t flags;
1: + uint32_t platform_limit;
1: + struct xen_pct_register control_register;
1: + struct xen_pct_register status_register;
1: + uint32_t state_count;
1: + __guest_handle_xen_processor_px states;
1: + struct xen_psd_package domain_info;
1: + uint32_t shared_type;
1: };
1:
1: struct xenpf_set_processor_pminfo {
1: - uint32_t id;
1: - uint32_t type;
1: - union {
1: - struct xen_processor_power power;
1: - struct xen_processor_performance perf;
1: - __guest_handle_uint32_t pdc;
1: - };
1: + uint32_t id;
1: + uint32_t type;
1: + union {
1: + struct xen_processor_power power;
1: + struct xen_processor_performance perf;
1: + __guest_handle_uint32_t pdc;
1: + };
1: };
1:
1: struct xenpf_pcpuinfo {
1: - uint32_t xen_cpuid;
1: - uint32_t max_present;
1: - uint32_t flags;
1: - uint32_t apic_id;
1: - uint32_t acpi_id;
1: + uint32_t xen_cpuid;
1: + uint32_t max_present;
1: + uint32_t flags;
1: + uint32_t apic_id;
1: + uint32_t acpi_id;
1: };
1:
1: struct xenpf_cpu_ol {
1: - uint32_t cpuid;
1: + uint32_t cpuid;
1: };
1:
1: struct xenpf_cpu_hotadd {
1: - uint32_t apic_id;
1: - uint32_t acpi_id;
1: - uint32_t pxm;
1: + uint32_t apic_id;
1: + uint32_t acpi_id;
1: + uint32_t pxm;
1: };
1:
1: struct xenpf_mem_hotadd {
1: - uint64_t spfn;
1: - uint64_t epfn;
1: - uint32_t pxm;
1: - uint32_t flags;
1: + uint64_t spfn;
1: + uint64_t epfn;
1: + uint32_t pxm;
1: + uint32_t flags;
1: };
1:
1: struct xenpf_core_parking {
1: - uint32_t type;
1: - uint32_t idle_nums;
1: + uint32_t type;
1: + uint32_t idle_nums;
1: };
1:
1: struct xenpf_symdata {
1: - uint32_t namelen;
1: - uint32_t symnum;
1: - __guest_handle_char name;
1: - uint64_t address;
1: - char type;
1: + uint32_t namelen;
1: + uint32_t symnum;
1: + __guest_handle_char name;
1: + uint64_t address;
1: + char type;
1: };
1:
1: struct xen_platform_op {
1: - uint32_t cmd;
1: - uint32_t interface_version;
1: - union {
1: - struct xenpf_settime32 settime32;
1: - struct xenpf_settime64 settime64;
1: - struct xenpf_add_memtype add_memtype;
1: - struct xenpf_del_memtype del_memtype;
1: - struct xenpf_read_memtype read_memtype;
1: - struct xenpf_microcode_update microcode;
1: - struct xenpf_platform_quirk platform_quirk;
1: - struct xenpf_efi_runtime_call efi_runtime_call;
1: - struct xenpf_firmware_info firmware_info;
1: - struct xenpf_enter_acpi_sleep enter_acpi_sleep;
1: - struct xenpf_change_freq change_freq;
1: - struct xenpf_getidletime getidletime;
1: - struct xenpf_set_processor_pminfo set_pminfo;
1: - struct xenpf_pcpuinfo pcpu_info;
1: - struct xenpf_cpu_ol cpu_ol;
1: - struct xenpf_cpu_hotadd cpu_add;
1: - struct xenpf_mem_hotadd mem_add;
1: - struct xenpf_core_parking core_parking;
1: - struct xenpf_symdata symdata;
1: - uint8_t pad[128];
1: - } u;
1: + uint32_t cmd;
1: + uint32_t interface_version;
1: + union {
1: + struct xenpf_settime32 settime32;
1: + struct xenpf_settime64 settime64;
1: + struct xenpf_add_memtype add_memtype;
1: + struct xenpf_del_memtype del_memtype;
1: + struct xenpf_read_memtype read_memtype;
1: + struct xenpf_microcode_update microcode;
1: + struct xenpf_platform_quirk platform_quirk;
1: + struct xenpf_efi_runtime_call efi_runtime_call;
1: + struct xenpf_firmware_info firmware_info;
1: + struct xenpf_enter_acpi_sleep enter_acpi_sleep;
1: + struct xenpf_change_freq change_freq;
1: + struct xenpf_getidletime getidletime;
1: + struct xenpf_set_processor_pminfo set_pminfo;
1: + struct xenpf_pcpuinfo pcpu_info;
1: + struct xenpf_cpu_ol cpu_ol;
1: + struct xenpf_cpu_hotadd cpu_add;
1: + struct xenpf_mem_hotadd mem_add;
1: + struct xenpf_core_parking core_parking;
1: + struct xenpf_symdata symdata;
1: + uint8_t pad[128];
1: + } u;
1: };
1:
1: struct xen_memory_region {
1: - long unsigned int start_pfn;
1: - long unsigned int n_pfns;
1: + long unsigned int start_pfn;
1: + long unsigned int n_pfns;
1: };
1:
1: struct grant_frames {
1: - xen_pfn_t *pfn;
1: - unsigned int count;
1: - void *vaddr;
1: + xen_pfn_t *pfn;
1: + unsigned int count;
1: + void *vaddr;
1: };
1:
1: struct xen_hvm_param {
1: - domid_t domid;
1: - uint32_t index;
1: - uint64_t value;
1: + domid_t domid;
1: + uint32_t index;
1: + uint64_t value;
1: };
1:
1: struct vcpu_register_vcpu_info {
1: - uint64_t mfn;
1: - uint32_t offset;
1: - uint32_t rsvd;
1: + uint64_t mfn;
1: + uint32_t offset;
1: + uint32_t rsvd;
1: };
1:
1: struct xen_add_to_physmap {
1: - domid_t domid;
1: - uint16_t size;
1: - unsigned int space;
1: - xen_ulong_t idx;
1: - xen_pfn_t gpfn;
1: + domid_t domid;
1: + uint16_t size;
1: + unsigned int space;
1: + xen_ulong_t idx;
1: + xen_pfn_t gpfn;
1: };
1:
1: struct xsd_errors {
1: - int errnum;
1: - const char *errstring;
1: + int errnum;
1: + const char *errstring;
1: };
1:
1: struct tk_read_base {
1: - struct clocksource *clock;
1: - u64 mask;
1: - u64 cycle_last;
1: - u32 mult;
1: - u32 shift;
1: - u64 xtime_nsec;
1: - ktime_t base;
1: - u64 base_real;
1: + struct clocksource *clock;
1: + u64 mask;
1: + u64 cycle_last;
1: + u32 mult;
1: + u32 shift;
1: + u64 xtime_nsec;
1: + ktime_t base;
1: + u64 base_real;
1: };
1:
1: struct timekeeper {
1: - struct tk_read_base tkr_mono;
1: - struct tk_read_base tkr_raw;
1: - u64 xtime_sec;
1: - long unsigned int ktime_sec;
1: - struct timespec64 wall_to_monotonic;
1: - ktime_t offs_real;
1: - ktime_t offs_boot;
1: - ktime_t offs_tai;
1: - s32 tai_offset;
1: - unsigned int clock_was_set_seq;
1: - u8 cs_was_changed_seq;
1: - ktime_t next_leap_ktime;
1: - u64 raw_sec;
1: - struct timespec64 monotonic_to_boot;
1: - u64 cycle_interval;
1: - u64 xtime_interval;
1: - s64 xtime_remainder;
1: - u64 raw_interval;
1: - u64 ntp_tick;
1: - s64 ntp_error;
1: - u32 ntp_error_shift;
1: - u32 ntp_err_mult;
1: - u32 skip_second_overflow;
1: + struct tk_read_base tkr_mono;
1: + struct tk_read_base tkr_raw;
1: + u64 xtime_sec;
1: + long unsigned int ktime_sec;
1: + struct timespec64 wall_to_monotonic;
1: + ktime_t offs_real;
1: + ktime_t offs_boot;
1: + ktime_t offs_tai;
1: + s32 tai_offset;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: + ktime_t next_leap_ktime;
1: + u64 raw_sec;
1: + struct timespec64 monotonic_to_boot;
1: + u64 cycle_interval;
1: + u64 xtime_interval;
1: + s64 xtime_remainder;
1: + u64 raw_interval;
1: + u64 ntp_tick;
1: + s64 ntp_error;
1: + u32 ntp_error_shift;
1: + u32 ntp_err_mult;
1: + u32 skip_second_overflow;
1: };
1:
1: typedef uint16_t grant_status_t;
1: @@ -20569,302 +20825,304 @@ typedef uint32_t grant_ref_t;
1: typedef uint32_t grant_handle_t;
1:
1: struct gnttab_map_grant_ref {
1: - uint64_t host_addr;
1: - uint32_t flags;
1: - grant_ref_t ref;
1: - domid_t dom;
1: - int16_t status;
1: - grant_handle_t handle;
1: - uint64_t dev_bus_addr;
1: + uint64_t host_addr;
1: + uint32_t flags;
1: + grant_ref_t ref;
1: + domid_t dom;
1: + int16_t status;
1: + grant_handle_t handle;
1: + uint64_t dev_bus_addr;
1: };
1:
1: struct gnttab_unmap_grant_ref {
1: - uint64_t host_addr;
1: - uint64_t dev_bus_addr;
1: - grant_handle_t handle;
1: - int16_t status;
1: + uint64_t host_addr;
1: + uint64_t dev_bus_addr;
1: + grant_handle_t handle;
1: + int16_t status;
1: };
1:
1: struct xen_p2m_entry {
1: - long unsigned int pfn;
1: - long unsigned int mfn;
1: - long unsigned int nr_pages;
1: - struct rb_node rbnode_phys;
1: + long unsigned int pfn;
1: + long unsigned int mfn;
1: + long unsigned int nr_pages;
1: + struct rb_node rbnode_phys;
1: };
1:
1: struct gnttab_cache_flush {
1: - union {
1: - uint64_t dev_bus_addr;
1: - grant_ref_t ref;
1: - } a;
1: - uint16_t offset;
1: - uint16_t length;
1: - uint32_t op;
1: + union {
1: + uint64_t dev_bus_addr;
1: + grant_ref_t ref;
1: + } a;
1: + uint16_t offset;
1: + uint16_t length;
1: + uint32_t op;
1: };
1:
1: struct static_key_true {
1: - struct static_key key;
1: + struct static_key key;
1: };
1:
1: enum tk_offsets {
1: - TK_OFFS_REAL = 0,
1: - TK_OFFS_BOOT = 1,
1: - TK_OFFS_TAI = 2,
1: - TK_OFFS_MAX = 3,
1: + TK_OFFS_REAL = 0,
1: + TK_OFFS_BOOT = 1,
1: + TK_OFFS_TAI = 2,
1: + TK_OFFS_MAX = 3,
1: };
1:
1: struct clone_args {
1: - __u64 flags;
1: - __u64 pidfd;
1: - __u64 child_tid;
1: - __u64 parent_tid;
1: - __u64 exit_signal;
1: - __u64 stack;
1: - __u64 stack_size;
1: - __u64 tls;
1: - __u64 set_tid;
1: - __u64 set_tid_size;
1: - __u64 cgroup;
1: + __u64 flags;
1: + __u64 pidfd;
1: + __u64 child_tid;
1: + __u64 parent_tid;
1: + __u64 exit_signal;
1: + __u64 stack;
1: + __u64 stack_size;
1: + __u64 tls;
1: + __u64 set_tid;
1: + __u64 set_tid_size;
1: + __u64 cgroup;
1: };
1:
1: struct fdtable {
1: - unsigned int max_fds;
1: - struct file **fd;
1: - long unsigned int *close_on_exec;
1: - long unsigned int *open_fds;
1: - long unsigned int *full_fds_bits;
1: - struct callback_head rcu;
1: + unsigned int max_fds;
1: + struct file **fd;
1: + long unsigned int *close_on_exec;
1: + long unsigned int *open_fds;
1: + long unsigned int *full_fds_bits;
1: + struct callback_head rcu;
1: };
1:
1: struct files_struct {
1: - atomic_t count;
1: - bool resize_in_progress;
1: - wait_queue_head_t resize_wait;
1: - struct fdtable *fdt;
1: - struct fdtable fdtab;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t file_lock;
1: - unsigned int next_fd;
1: - long unsigned int close_on_exec_init[1];
1: - long unsigned int open_fds_init[1];
1: - long unsigned int full_fds_bits_init[1];
1: - struct file *fd_array[64];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + atomic_t count;
1: + bool resize_in_progress;
1: + wait_queue_head_t resize_wait;
1: + struct fdtable *fdt;
1: + struct fdtable fdtab;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t file_lock;
1: + unsigned int next_fd;
1: + long unsigned int close_on_exec_init[1];
1: + long unsigned int open_fds_init[1];
1: + long unsigned int full_fds_bits_init[1];
1: + struct file *fd_array[64];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct io_identity {
1: - struct files_struct *files;
1: - struct mm_struct *mm;
1: - struct cgroup_subsys_state *blkcg_css;
1: - const struct cred *creds;
1: - struct nsproxy *nsproxy;
1: - struct fs_struct *fs;
1: - long unsigned int fsize;
1: - kuid_t loginuid;
1: - unsigned int sessionid;
1: - refcount_t count;
1: + struct files_struct *files;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *creds;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + long unsigned int fsize;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + refcount_t count;
1: };
1:
1: struct io_uring_task {
1: - struct xarray xa;
1: - struct wait_queue_head wait;
1: - struct file *last;
1: - struct percpu_counter inflight;
1: - struct io_identity __identity;
1: - struct io_identity *identity;
1: - atomic_t in_idle;
1: - bool sqpoll;
1: + struct xarray xa;
1: + struct wait_queue_head wait;
1: + struct file *last;
1: + struct percpu_counter inflight;
1: + struct io_identity __identity;
1: + struct io_identity *identity;
1: + atomic_t in_idle;
1: + bool sqpoll;
1: };
1:
1: struct robust_list {
1: - struct robust_list *next;
1: + struct robust_list *next;
1: };
1:
1: struct robust_list_head {
1: - struct robust_list list;
1: - long int futex_offset;
1: - struct robust_list *list_op_pending;
1: + struct robust_list list;
1: + long int futex_offset;
1: + struct robust_list *list_op_pending;
1: };
1:
1: struct kernel_clone_args {
1: - u64 flags;
1: - int *pidfd;
1: - int *child_tid;
1: - int *parent_tid;
1: - int exit_signal;
1: - long unsigned int stack;
1: - long unsigned int stack_size;
1: - long unsigned int tls;
1: - pid_t *set_tid;
1: - size_t set_tid_size;
1: - int cgroup;
1: - struct cgroup *cgrp;
1: - struct css_set *cset;
1: + u64 flags;
1: + int *pidfd;
1: + int *child_tid;
1: + int *parent_tid;
1: + int exit_signal;
1: + long unsigned int stack;
1: + long unsigned int stack_size;
1: + long unsigned int tls;
1: + pid_t *set_tid;
1: + size_t set_tid_size;
1: + int cgroup;
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: };
1:
1: struct multiprocess_signals {
1: - sigset_t signal;
1: - struct hlist_node node;
1: + sigset_t signal;
1: + struct hlist_node node;
1: };
1:
1: typedef int (*proc_visitor)(struct task_struct *, void *);
1:
1: enum {
1: - IOPRIO_CLASS_NONE = 0,
1: - IOPRIO_CLASS_RT = 1,
1: - IOPRIO_CLASS_BE = 2,
1: - IOPRIO_CLASS_IDLE = 3,
1: + IOPRIO_CLASS_NONE = 0,
1: + IOPRIO_CLASS_RT = 1,
1: + IOPRIO_CLASS_BE = 2,
1: + IOPRIO_CLASS_IDLE = 3,
1: };
1:
1: enum {
1: - FUTEX_STATE_OK = 0,
1: - FUTEX_STATE_EXITING = 1,
1: - FUTEX_STATE_DEAD = 2,
1: + FUTEX_STATE_OK = 0,
1: + FUTEX_STATE_EXITING = 1,
1: + FUTEX_STATE_DEAD = 2,
1: };
1:
1: enum proc_hidepid {
1: - HIDEPID_OFF = 0,
1: - HIDEPID_NO_ACCESS = 1,
1: - HIDEPID_INVISIBLE = 2,
1: - HIDEPID_NOT_PTRACEABLE = 4,
1: + HIDEPID_OFF = 0,
1: + HIDEPID_NO_ACCESS = 1,
1: + HIDEPID_INVISIBLE = 2,
1: + HIDEPID_NOT_PTRACEABLE = 4,
1: };
1:
1: enum proc_pidonly {
1: - PROC_PIDONLY_OFF = 0,
1: - PROC_PIDONLY_ON = 1,
1: + PROC_PIDONLY_OFF = 0,
1: + PROC_PIDONLY_ON = 1,
1: };
1:
1: struct proc_fs_info {
1: - struct pid_namespace *pid_ns;
1: - struct dentry *proc_self;
1: - struct dentry *proc_thread_self;
1: - kgid_t pid_gid;
1: - enum proc_hidepid hide_pid;
1: - enum proc_pidonly pidonly;
1: + struct pid_namespace *pid_ns;
1: + struct dentry *proc_self;
1: + struct dentry *proc_thread_self;
1: + kgid_t pid_gid;
1: + enum proc_hidepid hide_pid;
1: + enum proc_pidonly pidonly;
1: };
1:
1: struct trace_event_raw_task_newtask {
1: - struct trace_entry ent;
1: - pid_t pid;
1: - char comm[16];
1: - long unsigned int clone_flags;
1: - short int oom_score_adj;
1: - char __data[0];
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + long unsigned int clone_flags;
1: + short int oom_score_adj;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_task_rename {
1: - struct trace_entry ent;
1: - pid_t pid;
1: - char oldcomm[16];
1: - char newcomm[16];
1: - short int oom_score_adj;
1: - char __data[0];
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char oldcomm[16];
1: + char newcomm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_task_newtask {};
1:
1: struct trace_event_data_offsets_task_rename {};
1:
1: -typedef void (*btf_trace_task_newtask)(void *, struct task_struct *, long unsigned int);
1: +typedef void (*btf_trace_task_newtask)(void *, struct task_struct *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_task_rename)(void *, struct task_struct *, const char *);
1: +typedef void (*btf_trace_task_rename)(void *, struct task_struct *,
1: + const char *);
1:
1: struct taint_flag {
1: - char c_true;
1: - char c_false;
1: - bool module;
1: + char c_true;
1: + char c_false;
1: + bool module;
1: };
1:
1: enum ftrace_dump_mode {
1: - DUMP_NONE = 0,
1: - DUMP_ALL = 1,
1: - DUMP_ORIG = 2,
1: + DUMP_NONE = 0,
1: + DUMP_ALL = 1,
1: + DUMP_ORIG = 2,
1: };
1:
1: enum kmsg_dump_reason {
1: - KMSG_DUMP_UNDEF = 0,
1: - KMSG_DUMP_PANIC = 1,
1: - KMSG_DUMP_OOPS = 2,
1: - KMSG_DUMP_EMERG = 3,
1: - KMSG_DUMP_SHUTDOWN = 4,
1: - KMSG_DUMP_MAX = 5,
1: + KMSG_DUMP_UNDEF = 0,
1: + KMSG_DUMP_PANIC = 1,
1: + KMSG_DUMP_OOPS = 2,
1: + KMSG_DUMP_EMERG = 3,
1: + KMSG_DUMP_SHUTDOWN = 4,
1: + KMSG_DUMP_MAX = 5,
1: };
1:
1: enum con_flush_mode {
1: - CONSOLE_FLUSH_PENDING = 0,
1: - CONSOLE_REPLAY_ALL = 1,
1: + CONSOLE_FLUSH_PENDING = 0,
1: + CONSOLE_REPLAY_ALL = 1,
1: };
1:
1: struct warn_args {
1: - const char *fmt;
1: - va_list args;
1: + const char *fmt;
1: + va_list args;
1: };
1:
1: enum hk_flags {
1: - HK_FLAG_TIMER = 1,
1: - HK_FLAG_RCU = 2,
1: - HK_FLAG_MISC = 4,
1: - HK_FLAG_SCHED = 8,
1: - HK_FLAG_TICK = 16,
1: - HK_FLAG_DOMAIN = 32,
1: - HK_FLAG_WQ = 64,
1: - HK_FLAG_MANAGED_IRQ = 128,
1: - HK_FLAG_KTHREAD = 256,
1: + HK_FLAG_TIMER = 1,
1: + HK_FLAG_RCU = 2,
1: + HK_FLAG_MISC = 4,
1: + HK_FLAG_SCHED = 8,
1: + HK_FLAG_TICK = 16,
1: + HK_FLAG_DOMAIN = 32,
1: + HK_FLAG_WQ = 64,
1: + HK_FLAG_MANAGED_IRQ = 128,
1: + HK_FLAG_KTHREAD = 256,
1: };
1:
1: enum cpuhp_smt_control {
1: - CPU_SMT_ENABLED = 0,
1: - CPU_SMT_DISABLED = 1,
1: - CPU_SMT_FORCE_DISABLED = 2,
1: - CPU_SMT_NOT_SUPPORTED = 3,
1: - CPU_SMT_NOT_IMPLEMENTED = 4,
1: + CPU_SMT_ENABLED = 0,
1: + CPU_SMT_DISABLED = 1,
1: + CPU_SMT_FORCE_DISABLED = 2,
1: + CPU_SMT_NOT_SUPPORTED = 3,
1: + CPU_SMT_NOT_IMPLEMENTED = 4,
1: };
1:
1: struct smp_hotplug_thread {
1: - struct task_struct **store;
1: - struct list_head list;
1: - int (*thread_should_run)(unsigned int);
1: - void (*thread_fn)(unsigned int);
1: - void (*create)(unsigned int);
1: - void (*setup)(unsigned int);
1: - void (*cleanup)(unsigned int, bool);
1: - void (*park)(unsigned int);
1: - void (*unpark)(unsigned int);
1: - bool selfparking;
1: - const char *thread_comm;
1: + struct task_struct **store;
1: + struct list_head list;
1: + int (*thread_should_run)(unsigned int);
1: + void (*thread_fn)(unsigned int);
1: + void (*create)(unsigned int);
1: + void (*setup)(unsigned int);
1: + void (*cleanup)(unsigned int, bool);
1: + void (*park)(unsigned int);
1: + void (*unpark)(unsigned int);
1: + bool selfparking;
1: + const char *thread_comm;
1: };
1:
1: struct trace_event_raw_cpuhp_enter {
1: - struct trace_entry ent;
1: - unsigned int cpu;
1: - int target;
1: - int idx;
1: - void *fun;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cpuhp_multi_enter {
1: - struct trace_entry ent;
1: - unsigned int cpu;
1: - int target;
1: - int idx;
1: - void *fun;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cpuhp_exit {
1: - struct trace_entry ent;
1: - unsigned int cpu;
1: - int state;
1: - int idx;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int state;
1: + int idx;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_cpuhp_enter {};
1: @@ -20873,178 +21131,182 @@ struct trace_event_data_offsets_cpuhp_multi_enter {};
1:
1: struct trace_event_data_offsets_cpuhp_exit {};
1:
1: -typedef void (*btf_trace_cpuhp_enter)(void *, unsigned int, int, int, int (*)(unsigned int));
1: +typedef void (*btf_trace_cpuhp_enter)(void *, unsigned int, int, int,
1: + int (*)(unsigned int));
1:
1: -typedef void (*btf_trace_cpuhp_multi_enter)(void *, unsigned int, int, int, int (*)(unsigned int, struct hlist_node *), struct hlist_node *);
1: +typedef void (*btf_trace_cpuhp_multi_enter)(void *, unsigned int, int, int,
1: + int (*)(unsigned int,
1: + struct hlist_node *),
1: + struct hlist_node *);
1:
1: typedef void (*btf_trace_cpuhp_exit)(void *, unsigned int, int, int, int);
1:
1: struct cpuhp_cpu_state {
1: - enum cpuhp_state state;
1: - enum cpuhp_state target;
1: - enum cpuhp_state fail;
1: - struct task_struct *thread;
1: - bool should_run;
1: - bool rollback;
1: - bool single;
1: - bool bringup;
1: - struct hlist_node *node;
1: - struct hlist_node *last;
1: - enum cpuhp_state cb_state;
1: - int result;
1: - struct completion done_up;
1: - struct completion done_down;
1: + enum cpuhp_state state;
1: + enum cpuhp_state target;
1: + enum cpuhp_state fail;
1: + struct task_struct *thread;
1: + bool should_run;
1: + bool rollback;
1: + bool single;
1: + bool bringup;
1: + struct hlist_node *node;
1: + struct hlist_node *last;
1: + enum cpuhp_state cb_state;
1: + int result;
1: + struct completion done_up;
1: + struct completion done_down;
1: };
1:
1: struct cpuhp_step {
1: - const char *name;
1: - union {
1: - int (*single)(unsigned int);
1: - int (*multi)(unsigned int, struct hlist_node *);
1: - } startup;
1: - union {
1: - int (*single)(unsigned int);
1: - int (*multi)(unsigned int, struct hlist_node *);
1: - } teardown;
1: - struct hlist_head list;
1: - bool cant_stop;
1: - bool multi_instance;
1: + const char *name;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } startup;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } teardown;
1: + struct hlist_head list;
1: + bool cant_stop;
1: + bool multi_instance;
1: };
1:
1: enum cpu_mitigations {
1: - CPU_MITIGATIONS_OFF = 0,
1: - CPU_MITIGATIONS_AUTO = 1,
1: - CPU_MITIGATIONS_AUTO_NOSMT = 2,
1: + CPU_MITIGATIONS_OFF = 0,
1: + CPU_MITIGATIONS_AUTO = 1,
1: + CPU_MITIGATIONS_AUTO_NOSMT = 2,
1: };
1:
1: struct __kernel_old_timeval {
1: - __kernel_long_t tv_sec;
1: - __kernel_long_t tv_usec;
1: + __kernel_long_t tv_sec;
1: + __kernel_long_t tv_usec;
1: };
1:
1: struct old_timeval32 {
1: - old_time32_t tv_sec;
1: - s32 tv_usec;
1: + old_time32_t tv_sec;
1: + s32 tv_usec;
1: };
1:
1: struct rusage {
1: - struct __kernel_old_timeval ru_utime;
1: - struct __kernel_old_timeval ru_stime;
1: - __kernel_long_t ru_maxrss;
1: - __kernel_long_t ru_ixrss;
1: - __kernel_long_t ru_idrss;
1: - __kernel_long_t ru_isrss;
1: - __kernel_long_t ru_minflt;
1: - __kernel_long_t ru_majflt;
1: - __kernel_long_t ru_nswap;
1: - __kernel_long_t ru_inblock;
1: - __kernel_long_t ru_oublock;
1: - __kernel_long_t ru_msgsnd;
1: - __kernel_long_t ru_msgrcv;
1: - __kernel_long_t ru_nsignals;
1: - __kernel_long_t ru_nvcsw;
1: - __kernel_long_t ru_nivcsw;
1: + struct __kernel_old_timeval ru_utime;
1: + struct __kernel_old_timeval ru_stime;
1: + __kernel_long_t ru_maxrss;
1: + __kernel_long_t ru_ixrss;
1: + __kernel_long_t ru_idrss;
1: + __kernel_long_t ru_isrss;
1: + __kernel_long_t ru_minflt;
1: + __kernel_long_t ru_majflt;
1: + __kernel_long_t ru_nswap;
1: + __kernel_long_t ru_inblock;
1: + __kernel_long_t ru_oublock;
1: + __kernel_long_t ru_msgsnd;
1: + __kernel_long_t ru_msgrcv;
1: + __kernel_long_t ru_nsignals;
1: + __kernel_long_t ru_nvcsw;
1: + __kernel_long_t ru_nivcsw;
1: };
1:
1: typedef u32 compat_uint_t;
1:
1: struct compat_rusage {
1: - struct old_timeval32 ru_utime;
1: - struct old_timeval32 ru_stime;
1: - compat_long_t ru_maxrss;
1: - compat_long_t ru_ixrss;
1: - compat_long_t ru_idrss;
1: - compat_long_t ru_isrss;
1: - compat_long_t ru_minflt;
1: - compat_long_t ru_majflt;
1: - compat_long_t ru_nswap;
1: - compat_long_t ru_inblock;
1: - compat_long_t ru_oublock;
1: - compat_long_t ru_msgsnd;
1: - compat_long_t ru_msgrcv;
1: - compat_long_t ru_nsignals;
1: - compat_long_t ru_nvcsw;
1: - compat_long_t ru_nivcsw;
1: + struct old_timeval32 ru_utime;
1: + struct old_timeval32 ru_stime;
1: + compat_long_t ru_maxrss;
1: + compat_long_t ru_ixrss;
1: + compat_long_t ru_idrss;
1: + compat_long_t ru_isrss;
1: + compat_long_t ru_minflt;
1: + compat_long_t ru_majflt;
1: + compat_long_t ru_nswap;
1: + compat_long_t ru_inblock;
1: + compat_long_t ru_oublock;
1: + compat_long_t ru_msgsnd;
1: + compat_long_t ru_msgrcv;
1: + compat_long_t ru_nsignals;
1: + compat_long_t ru_nvcsw;
1: + compat_long_t ru_nivcsw;
1: };
1:
1: struct waitid_info {
1: - pid_t pid;
1: - uid_t uid;
1: - int status;
1: - int cause;
1: + pid_t pid;
1: + uid_t uid;
1: + int status;
1: + int cause;
1: };
1:
1: struct wait_opts {
1: - enum pid_type wo_type;
1: - int wo_flags;
1: - struct pid *wo_pid;
1: - struct waitid_info *wo_info;
1: - int wo_stat;
1: - struct rusage *wo_rusage;
1: - wait_queue_entry_t child_wait;
1: - int notask_error;
1: + enum pid_type wo_type;
1: + int wo_flags;
1: + struct pid *wo_pid;
1: + struct waitid_info *wo_info;
1: + int wo_stat;
1: + struct rusage *wo_rusage;
1: + wait_queue_entry_t child_wait;
1: + int notask_error;
1: };
1:
1: typedef struct {
1: - unsigned int __softirq_pending;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + unsigned int __softirq_pending;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: } irq_cpustat_t;
1:
1: struct softirq_action {
1: - void (*action)(struct softirq_action *);
1: + void (*action)(struct softirq_action *);
1: };
1:
1: struct tasklet_struct {
1: - struct tasklet_struct *next;
1: - long unsigned int state;
1: - atomic_t count;
1: - bool use_callback;
1: - union {
1: - void (*func)(long unsigned int);
1: - void (*callback)(struct tasklet_struct *);
1: - };
1: - long unsigned int data;
1: + struct tasklet_struct *next;
1: + long unsigned int state;
1: + atomic_t count;
1: + bool use_callback;
1: + union {
1: + void (*func)(long unsigned int);
1: + void (*callback)(struct tasklet_struct *);
1: + };
1: + long unsigned int data;
1: };
1:
1: enum {
1: - TASKLET_STATE_SCHED = 0,
1: - TASKLET_STATE_RUN = 1,
1: + TASKLET_STATE_SCHED = 0,
1: + TASKLET_STATE_RUN = 1,
1: };
1:
1: struct kernel_stat {
1: - long unsigned int irqs_sum;
1: - unsigned int softirqs[10];
1: + long unsigned int irqs_sum;
1: + unsigned int softirqs[10];
1: };
1:
1: struct trace_event_raw_irq_handler_entry {
1: - struct trace_entry ent;
1: - int irq;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int irq;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_irq_handler_exit {
1: - struct trace_entry ent;
1: - int irq;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int irq;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_softirq {
1: - struct trace_entry ent;
1: - unsigned int vec;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int vec;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_irq_handler_entry {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_irq_handler_exit {};
1: @@ -21053,7 +21315,8 @@ struct trace_event_data_offsets_softirq {};
1:
1: typedef void (*btf_trace_irq_handler_entry)(void *, int, struct irqaction *);
1:
1: -typedef void (*btf_trace_irq_handler_exit)(void *, int, struct irqaction *, int);
1: +typedef void (*btf_trace_irq_handler_exit)(void *, int, struct irqaction *,
1: + int);
1:
1: typedef void (*btf_trace_softirq_entry)(void *, unsigned int);
1:
1: @@ -21062,103 +21325,104 @@ typedef void (*btf_trace_softirq_exit)(void *, unsigned int);
1: typedef void (*btf_trace_softirq_raise)(void *, unsigned int);
1:
1: struct tasklet_head {
1: - struct tasklet_struct *head;
1: - struct tasklet_struct **tail;
1: + struct tasklet_struct *head;
1: + struct tasklet_struct **tail;
1: };
1:
1: enum {
1: - IORES_DESC_NONE = 0,
1: - IORES_DESC_CRASH_KERNEL = 1,
1: - IORES_DESC_ACPI_TABLES = 2,
1: - IORES_DESC_ACPI_NV_STORAGE = 3,
1: - IORES_DESC_PERSISTENT_MEMORY = 4,
1: - IORES_DESC_PERSISTENT_MEMORY_LEGACY = 5,
1: - IORES_DESC_DEVICE_PRIVATE_MEMORY = 6,
1: - IORES_DESC_RESERVED = 7,
1: - IORES_DESC_SOFT_RESERVED = 8,
1: + IORES_DESC_NONE = 0,
1: + IORES_DESC_CRASH_KERNEL = 1,
1: + IORES_DESC_ACPI_TABLES = 2,
1: + IORES_DESC_ACPI_NV_STORAGE = 3,
1: + IORES_DESC_PERSISTENT_MEMORY = 4,
1: + IORES_DESC_PERSISTENT_MEMORY_LEGACY = 5,
1: + IORES_DESC_DEVICE_PRIVATE_MEMORY = 6,
1: + IORES_DESC_RESERVED = 7,
1: + IORES_DESC_SOFT_RESERVED = 8,
1: };
1:
1: typedef void (*dr_release_t)(struct device *, void *);
1:
1: enum {
1: - REGION_INTERSECTS = 0,
1: - REGION_DISJOINT = 1,
1: - REGION_MIXED = 2,
1: + REGION_INTERSECTS = 0,
1: + REGION_DISJOINT = 1,
1: + REGION_MIXED = 2,
1: };
1:
1: struct resource_constraint {
1: - resource_size_t min;
1: - resource_size_t max;
1: - resource_size_t align;
1: - resource_size_t (*alignf)(void *, const struct resource *, resource_size_t, resource_size_t);
1: - void *alignf_data;
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t (*alignf)(void *, const struct resource *, resource_size_t,
1: + resource_size_t);
1: + void *alignf_data;
1: };
1:
1: enum {
1: - MAX_IORES_LEVEL = 5,
1: + MAX_IORES_LEVEL = 5,
1: };
1:
1: struct region_devres {
1: - struct resource *parent;
1: - resource_size_t start;
1: - resource_size_t n;
1: + struct resource *parent;
1: + resource_size_t start;
1: + resource_size_t n;
1: };
1:
1: struct dentry_stat_t {
1: - long int nr_dentry;
1: - long int nr_unused;
1: - long int age_limit;
1: - long int want_pages;
1: - long int nr_negative;
1: - long int dummy;
1: + long int nr_dentry;
1: + long int nr_unused;
1: + long int age_limit;
1: + long int want_pages;
1: + long int nr_negative;
1: + long int dummy;
1: };
1:
1: struct files_stat_struct {
1: - long unsigned int nr_files;
1: - long unsigned int nr_free_files;
1: - long unsigned int max_files;
1: + long unsigned int nr_files;
1: + long unsigned int nr_free_files;
1: + long unsigned int max_files;
1: };
1:
1: struct inodes_stat_t {
1: - long int nr_inodes;
1: - long int nr_unused;
1: - long int dummy[5];
1: + long int nr_inodes;
1: + long int nr_unused;
1: + long int dummy[5];
1: };
1:
1: enum sched_tunable_scaling {
1: - SCHED_TUNABLESCALING_NONE = 0,
1: - SCHED_TUNABLESCALING_LOG = 1,
1: - SCHED_TUNABLESCALING_LINEAR = 2,
1: - SCHED_TUNABLESCALING_END = 3,
1: + SCHED_TUNABLESCALING_NONE = 0,
1: + SCHED_TUNABLESCALING_LOG = 1,
1: + SCHED_TUNABLESCALING_LINEAR = 2,
1: + SCHED_TUNABLESCALING_END = 3,
1: };
1:
1: enum sysctl_writes_mode {
1: - SYSCTL_WRITES_LEGACY = 4294967295,
1: - SYSCTL_WRITES_WARN = 0,
1: - SYSCTL_WRITES_STRICT = 1,
1: + SYSCTL_WRITES_LEGACY = 4294967295,
1: + SYSCTL_WRITES_WARN = 0,
1: + SYSCTL_WRITES_STRICT = 1,
1: };
1:
1: struct do_proc_dointvec_minmax_conv_param {
1: - int *min;
1: - int *max;
1: + int *min;
1: + int *max;
1: };
1:
1: struct do_proc_douintvec_minmax_conv_param {
1: - unsigned int *min;
1: - unsigned int *max;
1: + unsigned int *min;
1: + unsigned int *max;
1: };
1:
1: struct __user_cap_header_struct {
1: - __u32 version;
1: - int pid;
1: + __u32 version;
1: + int pid;
1: };
1:
1: typedef struct __user_cap_header_struct *cap_user_header_t;
1:
1: struct __user_cap_data_struct {
1: - __u32 effective;
1: - __u32 permitted;
1: - __u32 inheritable;
1: + __u32 effective;
1: + __u32 permitted;
1: + __u32 inheritable;
1: };
1:
1: typedef struct __user_cap_data_struct *cap_user_data_t;
1: @@ -21166,44 +21430,44 @@ typedef struct __user_cap_data_struct *cap_user_data_t;
1: typedef struct siginfo siginfo_t;
1:
1: struct sigqueue {
1: - struct list_head list;
1: - int flags;
1: - kernel_siginfo_t info;
1: - struct user_struct *user;
1: + struct list_head list;
1: + int flags;
1: + kernel_siginfo_t info;
1: + struct user_struct *user;
1: };
1:
1: struct ptrace_peeksiginfo_args {
1: - __u64 off;
1: - __u32 flags;
1: - __s32 nr;
1: + __u64 off;
1: + __u32 flags;
1: + __s32 nr;
1: };
1:
1: struct ptrace_syscall_info {
1: - __u8 op;
1: - __u8 pad[3];
1: - __u32 arch;
1: - __u64 instruction_pointer;
1: - __u64 stack_pointer;
1: - union {
1: - struct {
1: - __u64 nr;
1: - __u64 args[6];
1: - } entry;
1: - struct {
1: - __s64 rval;
1: - __u8 is_error;
1: - } exit;
1: - struct {
1: - __u64 nr;
1: - __u64 args[6];
1: - __u32 ret_data;
1: - } seccomp;
1: - };
1: + __u8 op;
1: + __u8 pad[3];
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 stack_pointer;
1: + union {
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + } entry;
1: + struct {
1: + __s64 rval;
1: + __u8 is_error;
1: + } exit;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u32 ret_data;
1: + } seccomp;
1: + };
1: };
1:
1: struct compat_iovec {
1: - compat_uptr_t iov_base;
1: - compat_size_t iov_len;
1: + compat_uptr_t iov_base;
1: + compat_size_t iov_len;
1: };
1:
1: typedef struct compat_siginfo compat_siginfo_t;
1: @@ -21213,144 +21477,146 @@ typedef long unsigned int old_sigset_t;
1: typedef u32 compat_old_sigset_t;
1:
1: struct compat_sigaction {
1: - compat_uptr_t sa_handler;
1: - compat_ulong_t sa_flags;
1: - compat_uptr_t sa_restorer;
1: - compat_sigset_t sa_mask;
1: + compat_uptr_t sa_handler;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: + compat_sigset_t sa_mask;
1: };
1:
1: struct compat_old_sigaction {
1: - compat_uptr_t sa_handler;
1: - compat_old_sigset_t sa_mask;
1: - compat_ulong_t sa_flags;
1: - compat_uptr_t sa_restorer;
1: + compat_uptr_t sa_handler;
1: + compat_old_sigset_t sa_mask;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: };
1:
1: enum {
1: - TRACE_SIGNAL_DELIVERED = 0,
1: - TRACE_SIGNAL_IGNORED = 1,
1: - TRACE_SIGNAL_ALREADY_PENDING = 2,
1: - TRACE_SIGNAL_OVERFLOW_FAIL = 3,
1: - TRACE_SIGNAL_LOSE_INFO = 4,
1: + TRACE_SIGNAL_DELIVERED = 0,
1: + TRACE_SIGNAL_IGNORED = 1,
1: + TRACE_SIGNAL_ALREADY_PENDING = 2,
1: + TRACE_SIGNAL_OVERFLOW_FAIL = 3,
1: + TRACE_SIGNAL_LOSE_INFO = 4,
1: };
1:
1: struct trace_event_raw_signal_generate {
1: - struct trace_entry ent;
1: - int sig;
1: - int errno;
1: - int code;
1: - char comm[16];
1: - pid_t pid;
1: - int group;
1: - int result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + char comm[16];
1: + pid_t pid;
1: + int group;
1: + int result;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_signal_deliver {
1: - struct trace_entry ent;
1: - int sig;
1: - int errno;
1: - int code;
1: - long unsigned int sa_handler;
1: - long unsigned int sa_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + long unsigned int sa_handler;
1: + long unsigned int sa_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_signal_generate {};
1:
1: struct trace_event_data_offsets_signal_deliver {};
1:
1: -typedef void (*btf_trace_signal_generate)(void *, int, struct kernel_siginfo *, struct task_struct *, int, int);
1: +typedef void (*btf_trace_signal_generate)(void *, int, struct kernel_siginfo *,
1: + struct task_struct *, int, int);
1:
1: -typedef void (*btf_trace_signal_deliver)(void *, int, struct kernel_siginfo *, struct k_sigaction *);
1: +typedef void (*btf_trace_signal_deliver)(void *, int, struct kernel_siginfo *,
1: + struct k_sigaction *);
1:
1: typedef __kernel_clock_t clock_t;
1:
1: struct sysinfo {
1: - __kernel_long_t uptime;
1: - __kernel_ulong_t loads[3];
1: - __kernel_ulong_t totalram;
1: - __kernel_ulong_t freeram;
1: - __kernel_ulong_t sharedram;
1: - __kernel_ulong_t bufferram;
1: - __kernel_ulong_t totalswap;
1: - __kernel_ulong_t freeswap;
1: - __u16 procs;
1: - __u16 pad;
1: - __kernel_ulong_t totalhigh;
1: - __kernel_ulong_t freehigh;
1: - __u32 mem_unit;
1: - char _f[0];
1: + __kernel_long_t uptime;
1: + __kernel_ulong_t loads[3];
1: + __kernel_ulong_t totalram;
1: + __kernel_ulong_t freeram;
1: + __kernel_ulong_t sharedram;
1: + __kernel_ulong_t bufferram;
1: + __kernel_ulong_t totalswap;
1: + __kernel_ulong_t freeswap;
1: + __u16 procs;
1: + __u16 pad;
1: + __kernel_ulong_t totalhigh;
1: + __kernel_ulong_t freehigh;
1: + __u32 mem_unit;
1: + char _f[0];
1: };
1:
1: struct rlimit64 {
1: - __u64 rlim_cur;
1: - __u64 rlim_max;
1: + __u64 rlim_cur;
1: + __u64 rlim_max;
1: };
1:
1: enum uts_proc {
1: - UTS_PROC_OSTYPE = 0,
1: - UTS_PROC_OSRELEASE = 1,
1: - UTS_PROC_VERSION = 2,
1: - UTS_PROC_HOSTNAME = 3,
1: - UTS_PROC_DOMAINNAME = 4,
1: + UTS_PROC_OSTYPE = 0,
1: + UTS_PROC_OSRELEASE = 1,
1: + UTS_PROC_VERSION = 2,
1: + UTS_PROC_HOSTNAME = 3,
1: + UTS_PROC_DOMAINNAME = 4,
1: };
1:
1: struct prctl_mm_map {
1: - __u64 start_code;
1: - __u64 end_code;
1: - __u64 start_data;
1: - __u64 end_data;
1: - __u64 start_brk;
1: - __u64 brk;
1: - __u64 start_stack;
1: - __u64 arg_start;
1: - __u64 arg_end;
1: - __u64 env_start;
1: - __u64 env_end;
1: - __u64 *auxv;
1: - __u32 auxv_size;
1: - __u32 exe_fd;
1: + __u64 start_code;
1: + __u64 end_code;
1: + __u64 start_data;
1: + __u64 end_data;
1: + __u64 start_brk;
1: + __u64 brk;
1: + __u64 start_stack;
1: + __u64 arg_start;
1: + __u64 arg_end;
1: + __u64 env_start;
1: + __u64 env_end;
1: + __u64 *auxv;
1: + __u32 auxv_size;
1: + __u32 exe_fd;
1: };
1:
1: struct compat_tms {
1: - compat_clock_t tms_utime;
1: - compat_clock_t tms_stime;
1: - compat_clock_t tms_cutime;
1: - compat_clock_t tms_cstime;
1: + compat_clock_t tms_utime;
1: + compat_clock_t tms_stime;
1: + compat_clock_t tms_cutime;
1: + compat_clock_t tms_cstime;
1: };
1:
1: struct compat_rlimit {
1: - compat_ulong_t rlim_cur;
1: - compat_ulong_t rlim_max;
1: + compat_ulong_t rlim_cur;
1: + compat_ulong_t rlim_max;
1: };
1:
1: struct tms {
1: - __kernel_clock_t tms_utime;
1: - __kernel_clock_t tms_stime;
1: - __kernel_clock_t tms_cutime;
1: - __kernel_clock_t tms_cstime;
1: + __kernel_clock_t tms_utime;
1: + __kernel_clock_t tms_stime;
1: + __kernel_clock_t tms_cutime;
1: + __kernel_clock_t tms_cstime;
1: };
1:
1: struct getcpu_cache {
1: - long unsigned int blob[16];
1: + long unsigned int blob[16];
1: };
1:
1: struct compat_sysinfo {
1: - s32 uptime;
1: - u32 loads[3];
1: - u32 totalram;
1: - u32 freeram;
1: - u32 sharedram;
1: - u32 bufferram;
1: - u32 totalswap;
1: - u32 freeswap;
1: - u16 procs;
1: - u16 pad;
1: - u32 totalhigh;
1: - u32 freehigh;
1: - u32 mem_unit;
1: - char _f[8];
1: + s32 uptime;
1: + u32 loads[3];
1: + u32 totalram;
1: + u32 freeram;
1: + u32 sharedram;
1: + u32 bufferram;
1: + u32 totalswap;
1: + u32 freeswap;
1: + u16 procs;
1: + u16 pad;
1: + u32 totalhigh;
1: + u32 freehigh;
1: + u32 mem_unit;
1: + char _f[8];
1: };
1:
1: struct wq_flusher;
1: @@ -21364,225 +21630,225 @@ struct pool_workqueue;
1: struct wq_device;
1:
1: struct workqueue_struct {
1: - struct list_head pwqs;
1: - struct list_head list;
1: - struct mutex mutex;
1: - int work_color;
1: - int flush_color;
1: - atomic_t nr_pwqs_to_flush;
1: - struct wq_flusher *first_flusher;
1: - struct list_head flusher_queue;
1: - struct list_head flusher_overflow;
1: - struct list_head maydays;
1: - struct worker *rescuer;
1: - int nr_drainers;
1: - int saved_max_active;
1: - struct workqueue_attrs *unbound_attrs;
1: - struct pool_workqueue *dfl_pwq;
1: - struct wq_device *wq_dev;
1: - char name[24];
1: - struct callback_head rcu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - unsigned int flags;
1: - struct pool_workqueue *cpu_pwqs;
1: - struct pool_workqueue *numa_pwq_tbl[0];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct list_head pwqs;
1: + struct list_head list;
1: + struct mutex mutex;
1: + int work_color;
1: + int flush_color;
1: + atomic_t nr_pwqs_to_flush;
1: + struct wq_flusher *first_flusher;
1: + struct list_head flusher_queue;
1: + struct list_head flusher_overflow;
1: + struct list_head maydays;
1: + struct worker *rescuer;
1: + int nr_drainers;
1: + int saved_max_active;
1: + struct workqueue_attrs *unbound_attrs;
1: + struct pool_workqueue *dfl_pwq;
1: + struct wq_device *wq_dev;
1: + char name[24];
1: + struct callback_head rcu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + unsigned int flags;
1: + struct pool_workqueue *cpu_pwqs;
1: + struct pool_workqueue *numa_pwq_tbl[0];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct workqueue_attrs {
1: - int nice;
1: - cpumask_var_t cpumask;
1: - bool no_numa;
1: + int nice;
1: + cpumask_var_t cpumask;
1: + bool no_numa;
1: };
1:
1: struct execute_work {
1: - struct work_struct work;
1: + struct work_struct work;
1: };
1:
1: enum {
1: - WQ_UNBOUND = 2,
1: - WQ_FREEZABLE = 4,
1: - WQ_MEM_RECLAIM = 8,
1: - WQ_HIGHPRI = 16,
1: - WQ_CPU_INTENSIVE = 32,
1: - WQ_SYSFS = 64,
1: - WQ_POWER_EFFICIENT = 128,
1: - __WQ_DRAINING = 65536,
1: - __WQ_ORDERED = 131072,
1: - __WQ_LEGACY = 262144,
1: - __WQ_ORDERED_EXPLICIT = 524288,
1: - WQ_MAX_ACTIVE = 512,
1: - WQ_MAX_UNBOUND_PER_CPU = 4,
1: - WQ_DFL_ACTIVE = 256,
1: + WQ_UNBOUND = 2,
1: + WQ_FREEZABLE = 4,
1: + WQ_MEM_RECLAIM = 8,
1: + WQ_HIGHPRI = 16,
1: + WQ_CPU_INTENSIVE = 32,
1: + WQ_SYSFS = 64,
1: + WQ_POWER_EFFICIENT = 128,
1: + __WQ_DRAINING = 65536,
1: + __WQ_ORDERED = 131072,
1: + __WQ_LEGACY = 262144,
1: + __WQ_ORDERED_EXPLICIT = 524288,
1: + WQ_MAX_ACTIVE = 512,
1: + WQ_MAX_UNBOUND_PER_CPU = 4,
1: + WQ_DFL_ACTIVE = 256,
1: };
1:
1: typedef unsigned int xa_mark_t;
1:
1: enum xa_lock_type {
1: - XA_LOCK_IRQ = 1,
1: - XA_LOCK_BH = 2,
1: + XA_LOCK_IRQ = 1,
1: + XA_LOCK_BH = 2,
1: };
1:
1: struct ida {
1: - struct xarray xa;
1: + struct xarray xa;
1: };
1:
1: struct __una_u32 {
1: - u32 x;
1: + u32 x;
1: };
1:
1: struct worker_pool;
1:
1: struct worker {
1: - union {
1: - struct list_head entry;
1: - struct hlist_node hentry;
1: - };
1: - struct work_struct *current_work;
1: - work_func_t current_func;
1: - struct pool_workqueue *current_pwq;
1: - struct list_head scheduled;
1: - struct task_struct *task;
1: - struct worker_pool *pool;
1: - struct list_head node;
1: - long unsigned int last_active;
1: - unsigned int flags;
1: - int id;
1: - int sleeping;
1: - char desc[24];
1: - struct workqueue_struct *rescue_wq;
1: - work_func_t last_func;
1: + union {
1: + struct list_head entry;
1: + struct hlist_node hentry;
1: + };
1: + struct work_struct *current_work;
1: + work_func_t current_func;
1: + struct pool_workqueue *current_pwq;
1: + struct list_head scheduled;
1: + struct task_struct *task;
1: + struct worker_pool *pool;
1: + struct list_head node;
1: + long unsigned int last_active;
1: + unsigned int flags;
1: + int id;
1: + int sleeping;
1: + char desc[24];
1: + struct workqueue_struct *rescue_wq;
1: + work_func_t last_func;
1: };
1:
1: struct pool_workqueue {
1: - struct worker_pool *pool;
1: - struct workqueue_struct *wq;
1: - int work_color;
1: - int flush_color;
1: - int refcnt;
1: - int nr_in_flight[15];
1: - int nr_active;
1: - int max_active;
1: - struct list_head delayed_works;
1: - struct list_head pwqs_node;
1: - struct list_head mayday_node;
1: - struct work_struct unbound_release_work;
1: - struct callback_head rcu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct worker_pool *pool;
1: + struct workqueue_struct *wq;
1: + int work_color;
1: + int flush_color;
1: + int refcnt;
1: + int nr_in_flight[15];
1: + int nr_active;
1: + int max_active;
1: + struct list_head delayed_works;
1: + struct list_head pwqs_node;
1: + struct list_head mayday_node;
1: + struct work_struct unbound_release_work;
1: + struct callback_head rcu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct worker_pool {
1: - raw_spinlock_t lock;
1: - int cpu;
1: - int node;
1: - int id;
1: - unsigned int flags;
1: - long unsigned int watchdog_ts;
1: - struct list_head worklist;
1: - int nr_workers;
1: - int nr_idle;
1: - struct list_head idle_list;
1: - struct timer_list idle_timer;
1: - struct timer_list mayday_timer;
1: - struct hlist_head busy_hash[64];
1: - struct worker *manager;
1: - struct list_head workers;
1: - struct completion *detach_completion;
1: - struct ida worker_ida;
1: - struct workqueue_attrs *attrs;
1: - struct hlist_node hash_node;
1: - int refcnt;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - atomic_t nr_running;
1: - struct callback_head rcu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: -};
1: -
1: -enum {
1: - POOL_MANAGER_ACTIVE = 1,
1: - POOL_DISASSOCIATED = 4,
1: - WORKER_DIE = 2,
1: - WORKER_IDLE = 4,
1: - WORKER_PREP = 8,
1: - WORKER_CPU_INTENSIVE = 64,
1: - WORKER_UNBOUND = 128,
1: - WORKER_REBOUND = 256,
1: - WORKER_NOT_RUNNING = 456,
1: - NR_STD_WORKER_POOLS = 2,
1: - UNBOUND_POOL_HASH_ORDER = 6,
1: - BUSY_WORKER_HASH_ORDER = 6,
1: - MAX_IDLE_WORKERS_RATIO = 4,
1: - IDLE_WORKER_TIMEOUT = 300000,
1: - MAYDAY_INITIAL_TIMEOUT = 10,
1: - MAYDAY_INTERVAL = 100,
1: - CREATE_COOLDOWN = 1000,
1: - RESCUER_NICE_LEVEL = 4294967276,
1: - HIGHPRI_NICE_LEVEL = 4294967276,
1: - WQ_NAME_LEN = 24,
1: + raw_spinlock_t lock;
1: + int cpu;
1: + int node;
1: + int id;
1: + unsigned int flags;
1: + long unsigned int watchdog_ts;
1: + struct list_head worklist;
1: + int nr_workers;
1: + int nr_idle;
1: + struct list_head idle_list;
1: + struct timer_list idle_timer;
1: + struct timer_list mayday_timer;
1: + struct hlist_head busy_hash[64];
1: + struct worker *manager;
1: + struct list_head workers;
1: + struct completion *detach_completion;
1: + struct ida worker_ida;
1: + struct workqueue_attrs *attrs;
1: + struct hlist_node hash_node;
1: + int refcnt;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + atomic_t nr_running;
1: + struct callback_head rcu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: +};
1: +
1: +enum {
1: + POOL_MANAGER_ACTIVE = 1,
1: + POOL_DISASSOCIATED = 4,
1: + WORKER_DIE = 2,
1: + WORKER_IDLE = 4,
1: + WORKER_PREP = 8,
1: + WORKER_CPU_INTENSIVE = 64,
1: + WORKER_UNBOUND = 128,
1: + WORKER_REBOUND = 256,
1: + WORKER_NOT_RUNNING = 456,
1: + NR_STD_WORKER_POOLS = 2,
1: + UNBOUND_POOL_HASH_ORDER = 6,
1: + BUSY_WORKER_HASH_ORDER = 6,
1: + MAX_IDLE_WORKERS_RATIO = 4,
1: + IDLE_WORKER_TIMEOUT = 300000,
1: + MAYDAY_INITIAL_TIMEOUT = 10,
1: + MAYDAY_INTERVAL = 100,
1: + CREATE_COOLDOWN = 1000,
1: + RESCUER_NICE_LEVEL = 4294967276,
1: + HIGHPRI_NICE_LEVEL = 4294967276,
1: + WQ_NAME_LEN = 24,
1: };
1:
1: struct wq_flusher {
1: - struct list_head list;
1: - int flush_color;
1: - struct completion done;
1: + struct list_head list;
1: + int flush_color;
1: + struct completion done;
1: };
1:
1: struct wq_device {
1: - struct workqueue_struct *wq;
1: - struct device dev;
1: + struct workqueue_struct *wq;
1: + struct device dev;
1: };
1:
1: struct trace_event_raw_workqueue_queue_work {
1: - struct trace_entry ent;
1: - void *work;
1: - void *function;
1: - void *workqueue;
1: - unsigned int req_cpu;
1: - unsigned int cpu;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + void *workqueue;
1: + unsigned int req_cpu;
1: + unsigned int cpu;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_workqueue_activate_work {
1: - struct trace_entry ent;
1: - void *work;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *work;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_workqueue_execute_start {
1: - struct trace_entry ent;
1: - void *work;
1: - void *function;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_workqueue_execute_end {
1: - struct trace_entry ent;
1: - void *work;
1: - void *function;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_workqueue_queue_work {};
1: @@ -21593,115 +21859,118 @@ struct trace_event_data_offsets_workqueue_execute_start {};
1:
1: struct trace_event_data_offsets_workqueue_execute_end {};
1:
1: -typedef void (*btf_trace_workqueue_queue_work)(void *, unsigned int, struct pool_workqueue *, struct work_struct *);
1: +typedef void (*btf_trace_workqueue_queue_work)(void *, unsigned int,
1: + struct pool_workqueue *,
1: + struct work_struct *);
1:
1: typedef void (*btf_trace_workqueue_activate_work)(void *, struct work_struct *);
1:
1: typedef void (*btf_trace_workqueue_execute_start)(void *, struct work_struct *);
1:
1: -typedef void (*btf_trace_workqueue_execute_end)(void *, struct work_struct *, work_func_t);
1: +typedef void (*btf_trace_workqueue_execute_end)(void *, struct work_struct *,
1: + work_func_t);
1:
1: struct wq_barrier {
1: - struct work_struct work;
1: - struct completion done;
1: - struct task_struct *task;
1: + struct work_struct work;
1: + struct completion done;
1: + struct task_struct *task;
1: };
1:
1: struct cwt_wait {
1: - wait_queue_entry_t wait;
1: - struct work_struct *work;
1: + wait_queue_entry_t wait;
1: + struct work_struct *work;
1: };
1:
1: struct apply_wqattrs_ctx {
1: - struct workqueue_struct *wq;
1: - struct workqueue_attrs *attrs;
1: - struct list_head list;
1: - struct pool_workqueue *dfl_pwq;
1: - struct pool_workqueue *pwq_tbl[0];
1: + struct workqueue_struct *wq;
1: + struct workqueue_attrs *attrs;
1: + struct list_head list;
1: + struct pool_workqueue *dfl_pwq;
1: + struct pool_workqueue *pwq_tbl[0];
1: };
1:
1: struct work_for_cpu {
1: - struct work_struct work;
1: - long int (*fn)(void *);
1: - void *arg;
1: - long int ret;
1: + struct work_struct work;
1: + long int (*fn)(void *);
1: + void *arg;
1: + long int ret;
1: };
1:
1: typedef void (*task_work_func_t)(struct callback_head *);
1:
1: enum task_work_notify_mode {
1: - TWA_NONE = 0,
1: - TWA_RESUME = 1,
1: - TWA_SIGNAL = 2,
1: + TWA_NONE = 0,
1: + TWA_RESUME = 1,
1: + TWA_SIGNAL = 2,
1: };
1:
1: enum {
1: - KERNEL_PARAM_OPS_FL_NOARG = 1,
1: + KERNEL_PARAM_OPS_FL_NOARG = 1,
1: };
1:
1: enum {
1: - KERNEL_PARAM_FL_UNSAFE = 1,
1: - KERNEL_PARAM_FL_HWPARAM = 2,
1: + KERNEL_PARAM_FL_UNSAFE = 1,
1: + KERNEL_PARAM_FL_HWPARAM = 2,
1: };
1:
1: struct param_attribute {
1: - struct module_attribute mattr;
1: - const struct kernel_param *param;
1: + struct module_attribute mattr;
1: + const struct kernel_param *param;
1: };
1:
1: struct module_param_attrs {
1: - unsigned int num;
1: - struct attribute_group grp;
1: - struct param_attribute attrs[0];
1: + unsigned int num;
1: + struct attribute_group grp;
1: + struct param_attribute attrs[0];
1: };
1:
1: struct module_version_attribute {
1: - struct module_attribute mattr;
1: - const char *module_name;
1: - const char *version;
1: + struct module_attribute mattr;
1: + const char *module_name;
1: + const char *version;
1: };
1:
1: enum lockdown_reason {
1: - LOCKDOWN_NONE = 0,
1: - LOCKDOWN_MODULE_SIGNATURE = 1,
1: - LOCKDOWN_DEV_MEM = 2,
1: - LOCKDOWN_EFI_TEST = 3,
1: - LOCKDOWN_KEXEC = 4,
1: - LOCKDOWN_HIBERNATION = 5,
1: - LOCKDOWN_PCI_ACCESS = 6,
1: - LOCKDOWN_IOPORT = 7,
1: - LOCKDOWN_MSR = 8,
1: - LOCKDOWN_ACPI_TABLES = 9,
1: - LOCKDOWN_PCMCIA_CIS = 10,
1: - LOCKDOWN_TIOCSSERIAL = 11,
1: - LOCKDOWN_MODULE_PARAMETERS = 12,
1: - LOCKDOWN_MMIOTRACE = 13,
1: - LOCKDOWN_DEBUGFS = 14,
1: - LOCKDOWN_XMON_WR = 15,
1: - LOCKDOWN_INTEGRITY_MAX = 16,
1: - LOCKDOWN_KCORE = 17,
1: - LOCKDOWN_KPROBES = 18,
1: - LOCKDOWN_BPF_READ = 19,
1: - LOCKDOWN_PERF = 20,
1: - LOCKDOWN_TRACEFS = 21,
1: - LOCKDOWN_XMON_RW = 22,
1: - LOCKDOWN_CONFIDENTIALITY_MAX = 23,
1: + LOCKDOWN_NONE = 0,
1: + LOCKDOWN_MODULE_SIGNATURE = 1,
1: + LOCKDOWN_DEV_MEM = 2,
1: + LOCKDOWN_EFI_TEST = 3,
1: + LOCKDOWN_KEXEC = 4,
1: + LOCKDOWN_HIBERNATION = 5,
1: + LOCKDOWN_PCI_ACCESS = 6,
1: + LOCKDOWN_IOPORT = 7,
1: + LOCKDOWN_MSR = 8,
1: + LOCKDOWN_ACPI_TABLES = 9,
1: + LOCKDOWN_PCMCIA_CIS = 10,
1: + LOCKDOWN_TIOCSSERIAL = 11,
1: + LOCKDOWN_MODULE_PARAMETERS = 12,
1: + LOCKDOWN_MMIOTRACE = 13,
1: + LOCKDOWN_DEBUGFS = 14,
1: + LOCKDOWN_XMON_WR = 15,
1: + LOCKDOWN_INTEGRITY_MAX = 16,
1: + LOCKDOWN_KCORE = 17,
1: + LOCKDOWN_KPROBES = 18,
1: + LOCKDOWN_BPF_READ = 19,
1: + LOCKDOWN_PERF = 20,
1: + LOCKDOWN_TRACEFS = 21,
1: + LOCKDOWN_XMON_RW = 22,
1: + LOCKDOWN_CONFIDENTIALITY_MAX = 23,
1: };
1:
1: struct kmalloced_param {
1: - struct list_head list;
1: - char val[0];
1: + struct list_head list;
1: + char val[0];
1: };
1:
1: struct sched_param {
1: - int sched_priority;
1: + int sched_priority;
1: };
1:
1: enum {
1: - __PERCPU_REF_ATOMIC = 1,
1: - __PERCPU_REF_DEAD = 2,
1: - __PERCPU_REF_ATOMIC_DEAD = 3,
1: - __PERCPU_REF_FLAG_BITS = 2,
1: + __PERCPU_REF_ATOMIC = 1,
1: + __PERCPU_REF_DEAD = 2,
1: + __PERCPU_REF_ATOMIC_DEAD = 3,
1: + __PERCPU_REF_FLAG_BITS = 2,
1: };
1:
1: struct kthread_work;
1: @@ -21711,138 +21980,138 @@ typedef void (*kthread_work_func_t)(struct kthread_work *);
1: struct kthread_worker;
1:
1: struct kthread_work {
1: - struct list_head node;
1: - kthread_work_func_t func;
1: - struct kthread_worker *worker;
1: - int canceling;
1: + struct list_head node;
1: + kthread_work_func_t func;
1: + struct kthread_worker *worker;
1: + int canceling;
1: };
1:
1: enum {
1: - KTW_FREEZABLE = 1,
1: + KTW_FREEZABLE = 1,
1: };
1:
1: struct kthread_worker {
1: - unsigned int flags;
1: - raw_spinlock_t lock;
1: - struct list_head work_list;
1: - struct list_head delayed_work_list;
1: - struct task_struct *task;
1: - struct kthread_work *current_work;
1: + unsigned int flags;
1: + raw_spinlock_t lock;
1: + struct list_head work_list;
1: + struct list_head delayed_work_list;
1: + struct task_struct *task;
1: + struct kthread_work *current_work;
1: };
1:
1: struct kthread_delayed_work {
1: - struct kthread_work work;
1: - struct timer_list timer;
1: + struct kthread_work work;
1: + struct timer_list timer;
1: };
1:
1: enum {
1: - CSS_NO_REF = 1,
1: - CSS_ONLINE = 2,
1: - CSS_RELEASED = 4,
1: - CSS_VISIBLE = 8,
1: - CSS_DYING = 16,
1: + CSS_NO_REF = 1,
1: + CSS_ONLINE = 2,
1: + CSS_RELEASED = 4,
1: + CSS_VISIBLE = 8,
1: + CSS_DYING = 16,
1: };
1:
1: struct kthread_create_info {
1: - int (*threadfn)(void *);
1: - void *data;
1: - int node;
1: - struct task_struct *result;
1: - struct completion *done;
1: - struct list_head list;
1: + int (*threadfn)(void *);
1: + void *data;
1: + int node;
1: + struct task_struct *result;
1: + struct completion *done;
1: + struct list_head list;
1: };
1:
1: struct kthread {
1: - long unsigned int flags;
1: - unsigned int cpu;
1: - int (*threadfn)(void *);
1: - void *data;
1: - mm_segment_t oldfs;
1: - struct completion parked;
1: - struct completion exited;
1: - struct cgroup_subsys_state *blkcg_css;
1: + long unsigned int flags;
1: + unsigned int cpu;
1: + int (*threadfn)(void *);
1: + void *data;
1: + mm_segment_t oldfs;
1: + struct completion parked;
1: + struct completion exited;
1: + struct cgroup_subsys_state *blkcg_css;
1: };
1:
1: enum KTHREAD_BITS {
1: - KTHREAD_IS_PER_CPU = 0,
1: - KTHREAD_SHOULD_STOP = 1,
1: - KTHREAD_SHOULD_PARK = 2,
1: + KTHREAD_IS_PER_CPU = 0,
1: + KTHREAD_SHOULD_STOP = 1,
1: + KTHREAD_SHOULD_PARK = 2,
1: };
1:
1: struct kthread_flush_work {
1: - struct kthread_work work;
1: - struct completion done;
1: + struct kthread_work work;
1: + struct completion done;
1: };
1:
1: struct pt_regs___2;
1:
1: struct ipc_ids {
1: - int in_use;
1: - short unsigned int seq;
1: - struct rw_semaphore rwsem;
1: - struct idr ipcs_idr;
1: - int max_idx;
1: - int last_idx;
1: - int next_id;
1: - struct rhashtable key_ht;
1: + int in_use;
1: + short unsigned int seq;
1: + struct rw_semaphore rwsem;
1: + struct idr ipcs_idr;
1: + int max_idx;
1: + int last_idx;
1: + int next_id;
1: + struct rhashtable key_ht;
1: };
1:
1: struct ipc_namespace {
1: - refcount_t count;
1: - struct ipc_ids ids[3];
1: - int sem_ctls[4];
1: - int used_sems;
1: - unsigned int msg_ctlmax;
1: - unsigned int msg_ctlmnb;
1: - unsigned int msg_ctlmni;
1: - atomic_t msg_bytes;
1: - atomic_t msg_hdrs;
1: - size_t shm_ctlmax;
1: - size_t shm_ctlall;
1: - long unsigned int shm_tot;
1: - int shm_ctlmni;
1: - int shm_rmid_forced;
1: - struct notifier_block ipcns_nb;
1: - struct vfsmount *mq_mnt;
1: - unsigned int mq_queues_count;
1: - unsigned int mq_queues_max;
1: - unsigned int mq_msg_max;
1: - unsigned int mq_msgsize_max;
1: - unsigned int mq_msg_default;
1: - unsigned int mq_msgsize_default;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - struct llist_node mnt_llist;
1: - struct ns_common ns;
1: + refcount_t count;
1: + struct ipc_ids ids[3];
1: + int sem_ctls[4];
1: + int used_sems;
1: + unsigned int msg_ctlmax;
1: + unsigned int msg_ctlmnb;
1: + unsigned int msg_ctlmni;
1: + atomic_t msg_bytes;
1: + atomic_t msg_hdrs;
1: + size_t shm_ctlmax;
1: + size_t shm_ctlall;
1: + long unsigned int shm_tot;
1: + int shm_ctlmni;
1: + int shm_rmid_forced;
1: + struct notifier_block ipcns_nb;
1: + struct vfsmount *mq_mnt;
1: + unsigned int mq_queues_count;
1: + unsigned int mq_queues_max;
1: + unsigned int mq_msg_max;
1: + unsigned int mq_msgsize_max;
1: + unsigned int mq_msg_default;
1: + unsigned int mq_msgsize_default;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct llist_node mnt_llist;
1: + struct ns_common ns;
1: };
1:
1: struct srcu_notifier_head {
1: - struct mutex mutex;
1: - struct srcu_struct srcu;
1: - struct notifier_block *head;
1: + struct mutex mutex;
1: + struct srcu_struct srcu;
1: + struct notifier_block *head;
1: };
1:
1: enum what {
1: - PROC_EVENT_NONE = 0,
1: - PROC_EVENT_FORK = 1,
1: - PROC_EVENT_EXEC = 2,
1: - PROC_EVENT_UID = 4,
1: - PROC_EVENT_GID = 64,
1: - PROC_EVENT_SID = 128,
1: - PROC_EVENT_PTRACE = 256,
1: - PROC_EVENT_COMM = 512,
1: - PROC_EVENT_COREDUMP = 1073741824,
1: - PROC_EVENT_EXIT = 2147483648,
1: + PROC_EVENT_NONE = 0,
1: + PROC_EVENT_FORK = 1,
1: + PROC_EVENT_EXEC = 2,
1: + PROC_EVENT_UID = 4,
1: + PROC_EVENT_GID = 64,
1: + PROC_EVENT_SID = 128,
1: + PROC_EVENT_PTRACE = 256,
1: + PROC_EVENT_COMM = 512,
1: + PROC_EVENT_COREDUMP = 1073741824,
1: + PROC_EVENT_EXIT = 2147483648,
1: };
1:
1: enum reboot_type {
1: - BOOT_TRIPLE = 116,
1: - BOOT_KBD = 107,
1: - BOOT_BIOS = 98,
1: - BOOT_ACPI = 97,
1: - BOOT_EFI = 101,
1: - BOOT_CF9_FORCE = 112,
1: - BOOT_CF9_SAFE = 113,
1: + BOOT_TRIPLE = 116,
1: + BOOT_KBD = 107,
1: + BOOT_BIOS = 98,
1: + BOOT_ACPI = 97,
1: + BOOT_EFI = 101,
1: + BOOT_CF9_FORCE = 112,
1: + BOOT_CF9_SAFE = 113,
1: };
1:
1: typedef u64 async_cookie_t;
1: @@ -21850,476 +22119,476 @@ typedef u64 async_cookie_t;
1: typedef void (*async_func_t)(void *, async_cookie_t);
1:
1: struct async_domain {
1: - struct list_head pending;
1: - unsigned int registered: 1;
1: + struct list_head pending;
1: + unsigned int registered : 1;
1: };
1:
1: struct async_entry {
1: - struct list_head domain_list;
1: - struct list_head global_list;
1: - struct work_struct work;
1: - async_cookie_t cookie;
1: - async_func_t func;
1: - void *data;
1: - struct async_domain *domain;
1: + struct list_head domain_list;
1: + struct list_head global_list;
1: + struct work_struct work;
1: + async_cookie_t cookie;
1: + async_func_t func;
1: + void *data;
1: + struct async_domain *domain;
1: };
1:
1: struct smpboot_thread_data {
1: - unsigned int cpu;
1: - unsigned int status;
1: - struct smp_hotplug_thread *ht;
1: + unsigned int cpu;
1: + unsigned int status;
1: + struct smp_hotplug_thread *ht;
1: };
1:
1: enum {
1: - HP_THREAD_NONE = 0,
1: - HP_THREAD_ACTIVE = 1,
1: - HP_THREAD_PARKED = 2,
1: + HP_THREAD_NONE = 0,
1: + HP_THREAD_ACTIVE = 1,
1: + HP_THREAD_PARKED = 2,
1: };
1:
1: struct umd_info {
1: - const char *driver_name;
1: - struct file *pipe_to_umh;
1: - struct file *pipe_from_umh;
1: - struct path wd;
1: - struct pid *tgid;
1: + const char *driver_name;
1: + struct file *pipe_to_umh;
1: + struct file *pipe_from_umh;
1: + struct path wd;
1: + struct pid *tgid;
1: };
1:
1: struct pin_cookie {};
1:
1: enum {
1: - CSD_FLAG_LOCK = 1,
1: - IRQ_WORK_PENDING = 1,
1: - IRQ_WORK_BUSY = 2,
1: - IRQ_WORK_LAZY = 4,
1: - IRQ_WORK_HARD_IRQ = 8,
1: - IRQ_WORK_CLAIMED = 3,
1: - CSD_TYPE_ASYNC = 0,
1: - CSD_TYPE_SYNC = 16,
1: - CSD_TYPE_IRQ_WORK = 32,
1: - CSD_TYPE_TTWU = 48,
1: - CSD_FLAG_TYPE_MASK = 240,
1: + CSD_FLAG_LOCK = 1,
1: + IRQ_WORK_PENDING = 1,
1: + IRQ_WORK_BUSY = 2,
1: + IRQ_WORK_LAZY = 4,
1: + IRQ_WORK_HARD_IRQ = 8,
1: + IRQ_WORK_CLAIMED = 3,
1: + CSD_TYPE_ASYNC = 0,
1: + CSD_TYPE_SYNC = 16,
1: + CSD_TYPE_IRQ_WORK = 32,
1: + CSD_TYPE_TTWU = 48,
1: + CSD_FLAG_TYPE_MASK = 240,
1: };
1:
1: typedef struct __call_single_data call_single_data_t;
1:
1: struct dl_bw {
1: - raw_spinlock_t lock;
1: - u64 bw;
1: - u64 total_bw;
1: + raw_spinlock_t lock;
1: + u64 bw;
1: + u64 total_bw;
1: };
1:
1: struct cpudl_item;
1:
1: struct cpudl {
1: - raw_spinlock_t lock;
1: - int size;
1: - cpumask_var_t free_cpus;
1: - struct cpudl_item *elements;
1: + raw_spinlock_t lock;
1: + int size;
1: + cpumask_var_t free_cpus;
1: + struct cpudl_item *elements;
1: };
1:
1: struct cpupri_vec {
1: - atomic_t count;
1: - cpumask_var_t mask;
1: + atomic_t count;
1: + cpumask_var_t mask;
1: };
1:
1: struct cpupri {
1: - struct cpupri_vec pri_to_cpu[102];
1: - int *cpu_to_pri;
1: + struct cpupri_vec pri_to_cpu[102];
1: + int *cpu_to_pri;
1: };
1:
1: struct perf_domain;
1:
1: struct root_domain {
1: - atomic_t refcount;
1: - atomic_t rto_count;
1: - struct callback_head rcu;
1: - cpumask_var_t span;
1: - cpumask_var_t online;
1: - int overload;
1: - int overutilized;
1: - cpumask_var_t dlo_mask;
1: - atomic_t dlo_count;
1: - struct dl_bw dl_bw;
1: - struct cpudl cpudl;
1: - struct irq_work rto_push_work;
1: - raw_spinlock_t rto_lock;
1: - int rto_loop;
1: - int rto_cpu;
1: - atomic_t rto_loop_next;
1: - atomic_t rto_loop_start;
1: - cpumask_var_t rto_mask;
1: - struct cpupri cpupri;
1: - long unsigned int max_cpu_capacity;
1: - struct perf_domain *pd;
1: + atomic_t refcount;
1: + atomic_t rto_count;
1: + struct callback_head rcu;
1: + cpumask_var_t span;
1: + cpumask_var_t online;
1: + int overload;
1: + int overutilized;
1: + cpumask_var_t dlo_mask;
1: + atomic_t dlo_count;
1: + struct dl_bw dl_bw;
1: + struct cpudl cpudl;
1: + struct irq_work rto_push_work;
1: + raw_spinlock_t rto_lock;
1: + int rto_loop;
1: + int rto_cpu;
1: + atomic_t rto_loop_next;
1: + atomic_t rto_loop_start;
1: + cpumask_var_t rto_mask;
1: + struct cpupri cpupri;
1: + long unsigned int max_cpu_capacity;
1: + struct perf_domain *pd;
1: };
1:
1: struct cfs_rq {
1: - struct load_weight load;
1: - unsigned int nr_running;
1: - unsigned int h_nr_running;
1: - unsigned int idle_h_nr_running;
1: - u64 exec_clock;
1: - u64 min_vruntime;
1: - struct rb_root_cached tasks_timeline;
1: - struct sched_entity *curr;
1: - struct sched_entity *next;
1: - struct sched_entity *last;
1: - struct sched_entity *skip;
1: - unsigned int nr_spread_over;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sched_avg avg;
1: - struct {
1: - raw_spinlock_t lock;
1: - int nr;
1: - long unsigned int load_avg;
1: - long unsigned int util_avg;
1: - long unsigned int runnable_avg;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - } removed;
1: - long unsigned int tg_load_avg_contrib;
1: - long int propagate;
1: - long int prop_runnable_sum;
1: - long unsigned int h_load;
1: - u64 last_h_load_update;
1: - struct sched_entity *h_load_next;
1: - struct rq *rq;
1: - int on_list;
1: - struct list_head leaf_cfs_rq_list;
1: - struct task_group *tg;
1: - int runtime_enabled;
1: - s64 runtime_remaining;
1: - u64 throttled_clock;
1: - u64 throttled_clock_task;
1: - u64 throttled_clock_task_time;
1: - int throttled;
1: - int throttle_count;
1: - struct list_head throttled_list;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct load_weight load;
1: + unsigned int nr_running;
1: + unsigned int h_nr_running;
1: + unsigned int idle_h_nr_running;
1: + u64 exec_clock;
1: + u64 min_vruntime;
1: + struct rb_root_cached tasks_timeline;
1: + struct sched_entity *curr;
1: + struct sched_entity *next;
1: + struct sched_entity *last;
1: + struct sched_entity *skip;
1: + unsigned int nr_spread_over;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sched_avg avg;
1: + struct {
1: + raw_spinlock_t lock;
1: + int nr;
1: + long unsigned int load_avg;
1: + long unsigned int util_avg;
1: + long unsigned int runnable_avg;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + } removed;
1: + long unsigned int tg_load_avg_contrib;
1: + long int propagate;
1: + long int prop_runnable_sum;
1: + long unsigned int h_load;
1: + u64 last_h_load_update;
1: + struct sched_entity *h_load_next;
1: + struct rq *rq;
1: + int on_list;
1: + struct list_head leaf_cfs_rq_list;
1: + struct task_group *tg;
1: + int runtime_enabled;
1: + s64 runtime_remaining;
1: + u64 throttled_clock;
1: + u64 throttled_clock_task;
1: + u64 throttled_clock_task_time;
1: + int throttled;
1: + int throttle_count;
1: + struct list_head throttled_list;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct cfs_bandwidth {
1: - raw_spinlock_t lock;
1: - ktime_t period;
1: - u64 quota;
1: - u64 runtime;
1: - s64 hierarchical_quota;
1: - u8 idle;
1: - u8 period_active;
1: - u8 slack_started;
1: - struct hrtimer period_timer;
1: - struct hrtimer slack_timer;
1: - struct list_head throttled_cfs_rq;
1: - int nr_periods;
1: - int nr_throttled;
1: - u64 throttled_time;
1: + raw_spinlock_t lock;
1: + ktime_t period;
1: + u64 quota;
1: + u64 runtime;
1: + s64 hierarchical_quota;
1: + u8 idle;
1: + u8 period_active;
1: + u8 slack_started;
1: + struct hrtimer period_timer;
1: + struct hrtimer slack_timer;
1: + struct list_head throttled_cfs_rq;
1: + int nr_periods;
1: + int nr_throttled;
1: + u64 throttled_time;
1: };
1:
1: struct task_group {
1: - struct cgroup_subsys_state css;
1: - struct sched_entity **se;
1: - struct cfs_rq **cfs_rq;
1: - long unsigned int shares;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - atomic_long_t load_avg;
1: - struct callback_head rcu;
1: - struct list_head list;
1: - struct task_group *parent;
1: - struct list_head siblings;
1: - struct list_head children;
1: - struct autogroup *autogroup;
1: - struct cfs_bandwidth cfs_bandwidth;
1: - unsigned int uclamp_pct[2];
1: - struct uclamp_se uclamp_req[2];
1: - struct uclamp_se uclamp[2];
1: -};
1: -
1: -enum {
1: - SD_BALANCE_NEWIDLE = 1,
1: - SD_BALANCE_EXEC = 2,
1: - SD_BALANCE_FORK = 4,
1: - SD_BALANCE_WAKE = 8,
1: - SD_WAKE_AFFINE = 16,
1: - SD_ASYM_CPUCAPACITY = 32,
1: - SD_SHARE_CPUCAPACITY = 64,
1: - SD_SHARE_PKG_RESOURCES = 128,
1: - SD_SERIALIZE = 256,
1: - SD_ASYM_PACKING = 512,
1: - SD_PREFER_SIBLING = 1024,
1: - SD_OVERLAP = 2048,
1: - SD_NUMA = 4096,
1: + struct cgroup_subsys_state css;
1: + struct sched_entity **se;
1: + struct cfs_rq **cfs_rq;
1: + long unsigned int shares;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + atomic_long_t load_avg;
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct task_group *parent;
1: + struct list_head siblings;
1: + struct list_head children;
1: + struct autogroup *autogroup;
1: + struct cfs_bandwidth cfs_bandwidth;
1: + unsigned int uclamp_pct[2];
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: +};
1: +
1: +enum {
1: + SD_BALANCE_NEWIDLE = 1,
1: + SD_BALANCE_EXEC = 2,
1: + SD_BALANCE_FORK = 4,
1: + SD_BALANCE_WAKE = 8,
1: + SD_WAKE_AFFINE = 16,
1: + SD_ASYM_CPUCAPACITY = 32,
1: + SD_SHARE_CPUCAPACITY = 64,
1: + SD_SHARE_PKG_RESOURCES = 128,
1: + SD_SERIALIZE = 256,
1: + SD_ASYM_PACKING = 512,
1: + SD_PREFER_SIBLING = 1024,
1: + SD_OVERLAP = 2048,
1: + SD_NUMA = 4096,
1: };
1:
1: struct sched_domain_shared {
1: - atomic_t ref;
1: - atomic_t nr_busy_cpus;
1: - int has_idle_cores;
1: + atomic_t ref;
1: + atomic_t nr_busy_cpus;
1: + int has_idle_cores;
1: };
1:
1: struct sched_group;
1:
1: struct sched_domain {
1: - struct sched_domain *parent;
1: - struct sched_domain *child;
1: - struct sched_group *groups;
1: - long unsigned int min_interval;
1: - long unsigned int max_interval;
1: - unsigned int busy_factor;
1: - unsigned int imbalance_pct;
1: - unsigned int cache_nice_tries;
1: - int nohz_idle;
1: - int flags;
1: - int level;
1: - long unsigned int last_balance;
1: - unsigned int balance_interval;
1: - unsigned int nr_balance_failed;
1: - u64 max_newidle_lb_cost;
1: - long unsigned int next_decay_max_lb_cost;
1: - u64 avg_scan_cost;
1: - unsigned int lb_count[3];
1: - unsigned int lb_failed[3];
1: - unsigned int lb_balanced[3];
1: - unsigned int lb_imbalance[3];
1: - unsigned int lb_gained[3];
1: - unsigned int lb_hot_gained[3];
1: - unsigned int lb_nobusyg[3];
1: - unsigned int lb_nobusyq[3];
1: - unsigned int alb_count;
1: - unsigned int alb_failed;
1: - unsigned int alb_pushed;
1: - unsigned int sbe_count;
1: - unsigned int sbe_balanced;
1: - unsigned int sbe_pushed;
1: - unsigned int sbf_count;
1: - unsigned int sbf_balanced;
1: - unsigned int sbf_pushed;
1: - unsigned int ttwu_wake_remote;
1: - unsigned int ttwu_move_affine;
1: - unsigned int ttwu_move_balance;
1: - char *name;
1: - union {
1: - void *private;
1: - struct callback_head rcu;
1: - };
1: - struct sched_domain_shared *shared;
1: - unsigned int span_weight;
1: - long unsigned int span[0];
1: + struct sched_domain *parent;
1: + struct sched_domain *child;
1: + struct sched_group *groups;
1: + long unsigned int min_interval;
1: + long unsigned int max_interval;
1: + unsigned int busy_factor;
1: + unsigned int imbalance_pct;
1: + unsigned int cache_nice_tries;
1: + int nohz_idle;
1: + int flags;
1: + int level;
1: + long unsigned int last_balance;
1: + unsigned int balance_interval;
1: + unsigned int nr_balance_failed;
1: + u64 max_newidle_lb_cost;
1: + long unsigned int next_decay_max_lb_cost;
1: + u64 avg_scan_cost;
1: + unsigned int lb_count[3];
1: + unsigned int lb_failed[3];
1: + unsigned int lb_balanced[3];
1: + unsigned int lb_imbalance[3];
1: + unsigned int lb_gained[3];
1: + unsigned int lb_hot_gained[3];
1: + unsigned int lb_nobusyg[3];
1: + unsigned int lb_nobusyq[3];
1: + unsigned int alb_count;
1: + unsigned int alb_failed;
1: + unsigned int alb_pushed;
1: + unsigned int sbe_count;
1: + unsigned int sbe_balanced;
1: + unsigned int sbe_pushed;
1: + unsigned int sbf_count;
1: + unsigned int sbf_balanced;
1: + unsigned int sbf_pushed;
1: + unsigned int ttwu_wake_remote;
1: + unsigned int ttwu_move_affine;
1: + unsigned int ttwu_move_balance;
1: + char *name;
1: + union {
1: + void *private;
1: + struct callback_head rcu;
1: + };
1: + struct sched_domain_shared *shared;
1: + unsigned int span_weight;
1: + long unsigned int span[0];
1: };
1:
1: struct sched_group_capacity;
1:
1: struct sched_group {
1: - struct sched_group *next;
1: - atomic_t ref;
1: - unsigned int group_weight;
1: - struct sched_group_capacity *sgc;
1: - int asym_prefer_cpu;
1: - long unsigned int cpumask[0];
1: + struct sched_group *next;
1: + atomic_t ref;
1: + unsigned int group_weight;
1: + struct sched_group_capacity *sgc;
1: + int asym_prefer_cpu;
1: + long unsigned int cpumask[0];
1: };
1:
1: struct sched_group_capacity {
1: - atomic_t ref;
1: - long unsigned int capacity;
1: - long unsigned int min_capacity;
1: - long unsigned int max_capacity;
1: - long unsigned int next_update;
1: - int imbalance;
1: - int id;
1: - long unsigned int cpumask[0];
1: + atomic_t ref;
1: + long unsigned int capacity;
1: + long unsigned int min_capacity;
1: + long unsigned int max_capacity;
1: + long unsigned int next_update;
1: + int imbalance;
1: + int id;
1: + long unsigned int cpumask[0];
1: };
1:
1: struct autogroup {
1: - struct kref kref;
1: - struct task_group *tg;
1: - struct rw_semaphore lock;
1: - long unsigned int id;
1: - int nice;
1: + struct kref kref;
1: + struct task_group *tg;
1: + struct rw_semaphore lock;
1: + long unsigned int id;
1: + int nice;
1: };
1:
1: struct kernel_cpustat {
1: - u64 cpustat[10];
1: + u64 cpustat[10];
1: };
1:
1: enum {
1: - CFTYPE_ONLY_ON_ROOT = 1,
1: - CFTYPE_NOT_ON_ROOT = 2,
1: - CFTYPE_NS_DELEGATABLE = 4,
1: - CFTYPE_NO_PREFIX = 8,
1: - CFTYPE_WORLD_WRITABLE = 16,
1: - CFTYPE_DEBUG = 32,
1: - __CFTYPE_ONLY_ON_DFL = 65536,
1: - __CFTYPE_NOT_ON_DFL = 131072,
1: + CFTYPE_ONLY_ON_ROOT = 1,
1: + CFTYPE_NOT_ON_ROOT = 2,
1: + CFTYPE_NS_DELEGATABLE = 4,
1: + CFTYPE_NO_PREFIX = 8,
1: + CFTYPE_WORLD_WRITABLE = 16,
1: + CFTYPE_DEBUG = 32,
1: + __CFTYPE_ONLY_ON_DFL = 65536,
1: + __CFTYPE_NOT_ON_DFL = 131072,
1: };
1:
1: struct css_task_iter {
1: - struct cgroup_subsys *ss;
1: - unsigned int flags;
1: - struct list_head *cset_pos;
1: - struct list_head *cset_head;
1: - struct list_head *tcset_pos;
1: - struct list_head *tcset_head;
1: - struct list_head *task_pos;
1: - struct list_head *cur_tasks_head;
1: - struct css_set *cur_cset;
1: - struct css_set *cur_dcset;
1: - struct task_struct *cur_task;
1: - struct list_head iters_node;
1: + struct cgroup_subsys *ss;
1: + unsigned int flags;
1: + struct list_head *cset_pos;
1: + struct list_head *cset_head;
1: + struct list_head *tcset_pos;
1: + struct list_head *tcset_head;
1: + struct list_head *task_pos;
1: + struct list_head *cur_tasks_head;
1: + struct css_set *cur_cset;
1: + struct css_set *cur_dcset;
1: + struct task_struct *cur_task;
1: + struct list_head iters_node;
1: };
1:
1: struct trace_event_raw_sched_kthread_stop {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_kthread_stop_ret {
1: - struct trace_entry ent;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_wakeup_template {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - int prio;
1: - int success;
1: - int target_cpu;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int success;
1: + int target_cpu;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_switch {
1: - struct trace_entry ent;
1: - char prev_comm[16];
1: - pid_t prev_pid;
1: - int prev_prio;
1: - long int prev_state;
1: - char next_comm[16];
1: - pid_t next_pid;
1: - int next_prio;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char prev_comm[16];
1: + pid_t prev_pid;
1: + int prev_prio;
1: + long int prev_state;
1: + char next_comm[16];
1: + pid_t next_pid;
1: + int next_prio;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_migrate_task {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - int prio;
1: - int orig_cpu;
1: - int dest_cpu;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int orig_cpu;
1: + int dest_cpu;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_process_template {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - int prio;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_process_wait {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - int prio;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_process_fork {
1: - struct trace_entry ent;
1: - char parent_comm[16];
1: - pid_t parent_pid;
1: - char child_comm[16];
1: - pid_t child_pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char parent_comm[16];
1: + pid_t parent_pid;
1: + char child_comm[16];
1: + pid_t child_pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_process_exec {
1: - struct trace_entry ent;
1: - u32 __data_loc_filename;
1: - pid_t pid;
1: - pid_t old_pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_filename;
1: + pid_t pid;
1: + pid_t old_pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_stat_template {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - u64 delay;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 delay;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_stat_runtime {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - u64 runtime;
1: - u64 vruntime;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 runtime;
1: + u64 vruntime;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_pi_setprio {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - int oldprio;
1: - int newprio;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int oldprio;
1: + int newprio;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_process_hang {
1: - struct trace_entry ent;
1: - char comm[16];
1: - pid_t pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_move_numa {
1: - struct trace_entry ent;
1: - pid_t pid;
1: - pid_t tgid;
1: - pid_t ngid;
1: - int src_cpu;
1: - int src_nid;
1: - int dst_cpu;
1: - int dst_nid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + pid_t pid;
1: + pid_t tgid;
1: + pid_t ngid;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_numa_pair_template {
1: - struct trace_entry ent;
1: - pid_t src_pid;
1: - pid_t src_tgid;
1: - pid_t src_ngid;
1: - int src_cpu;
1: - int src_nid;
1: - pid_t dst_pid;
1: - pid_t dst_tgid;
1: - pid_t dst_ngid;
1: - int dst_cpu;
1: - int dst_nid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + pid_t src_pid;
1: + pid_t src_tgid;
1: + pid_t src_ngid;
1: + int src_cpu;
1: + int src_nid;
1: + pid_t dst_pid;
1: + pid_t dst_tgid;
1: + pid_t dst_ngid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sched_wake_idle_without_ipi {
1: - struct trace_entry ent;
1: - int cpu;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int cpu;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_sched_kthread_stop {};
1: @@ -22339,7 +22608,7 @@ struct trace_event_data_offsets_sched_process_wait {};
1: struct trace_event_data_offsets_sched_process_fork {};
1:
1: struct trace_event_data_offsets_sched_process_exec {
1: - u32 filename;
1: + u32 filename;
1: };
1:
1: struct trace_event_data_offsets_sched_stat_template {};
1: @@ -22366,7 +22635,8 @@ typedef void (*btf_trace_sched_wakeup)(void *, struct task_struct *);
1:
1: typedef void (*btf_trace_sched_wakeup_new)(void *, struct task_struct *);
1:
1: -typedef void (*btf_trace_sched_switch)(void *, bool, struct task_struct *, struct task_struct *);
1: +typedef void (*btf_trace_sched_switch)(void *, bool, struct task_struct *,
1: + struct task_struct *);
1:
1: typedef void (*btf_trace_sched_migrate_task)(void *, struct task_struct *, int);
1:
1: @@ -22378,9 +22648,11 @@ typedef void (*btf_trace_sched_wait_task)(void *, struct task_struct *);
1:
1: typedef void (*btf_trace_sched_process_wait)(void *, struct pid *);
1:
1: -typedef void (*btf_trace_sched_process_fork)(void *, struct task_struct *, struct task_struct *);
1: +typedef void (*btf_trace_sched_process_fork)(void *, struct task_struct *,
1: + struct task_struct *);
1:
1: -typedef void (*btf_trace_sched_process_exec)(void *, struct task_struct *, pid_t, struct linux_binprm *);
1: +typedef void (*btf_trace_sched_process_exec)(void *, struct task_struct *,
1: + pid_t, struct linux_binprm *);
1:
1: typedef void (*btf_trace_sched_stat_wait)(void *, struct task_struct *, u64);
1:
1: @@ -22390,58 +22662,63 @@ typedef void (*btf_trace_sched_stat_iowait)(void *, struct task_struct *, u64);
1:
1: typedef void (*btf_trace_sched_stat_blocked)(void *, struct task_struct *, u64);
1:
1: -typedef void (*btf_trace_sched_stat_runtime)(void *, struct task_struct *, u64, u64);
1: +typedef void (*btf_trace_sched_stat_runtime)(void *, struct task_struct *, u64,
1: + u64);
1:
1: -typedef void (*btf_trace_sched_pi_setprio)(void *, struct task_struct *, struct task_struct *);
1: +typedef void (*btf_trace_sched_pi_setprio)(void *, struct task_struct *,
1: + struct task_struct *);
1:
1: typedef void (*btf_trace_sched_process_hang)(void *, struct task_struct *);
1:
1: -typedef void (*btf_trace_sched_move_numa)(void *, struct task_struct *, int, int);
1: +typedef void (*btf_trace_sched_move_numa)(void *, struct task_struct *, int,
1: + int);
1:
1: -typedef void (*btf_trace_sched_stick_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +typedef void (*btf_trace_sched_stick_numa)(void *, struct task_struct *, int,
1: + struct task_struct *, int);
1:
1: -typedef void (*btf_trace_sched_swap_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +typedef void (*btf_trace_sched_swap_numa)(void *, struct task_struct *, int,
1: + struct task_struct *, int);
1:
1: typedef void (*btf_trace_sched_wake_idle_without_ipi)(void *, int);
1:
1: enum {
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED_READY = 1,
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED = 2,
1: - MEMBARRIER_STATE_GLOBAL_EXPEDITED_READY = 4,
1: - MEMBARRIER_STATE_GLOBAL_EXPEDITED = 8,
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE_READY = 16,
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ_READY = 64,
1: - MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ = 128,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_READY = 1,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED = 2,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED_READY = 4,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED = 8,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE_READY = 16,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ_READY = 64,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ = 128,
1: };
1:
1: struct wake_q_head {
1: - struct wake_q_node *first;
1: - struct wake_q_node **lastp;
1: + struct wake_q_node *first;
1: + struct wake_q_node **lastp;
1: };
1:
1: struct sched_attr {
1: - __u32 size;
1: - __u32 sched_policy;
1: - __u64 sched_flags;
1: - __s32 sched_nice;
1: - __u32 sched_priority;
1: - __u64 sched_runtime;
1: - __u64 sched_deadline;
1: - __u64 sched_period;
1: - __u32 sched_util_min;
1: - __u32 sched_util_max;
1: + __u32 size;
1: + __u32 sched_policy;
1: + __u64 sched_flags;
1: + __s32 sched_nice;
1: + __u32 sched_priority;
1: + __u64 sched_runtime;
1: + __u64 sched_deadline;
1: + __u64 sched_period;
1: + __u32 sched_util_min;
1: + __u32 sched_util_max;
1: };
1:
1: struct cpuidle_state_usage {
1: - long long unsigned int disable;
1: - long long unsigned int usage;
1: - u64 time_ns;
1: - long long unsigned int above;
1: - long long unsigned int below;
1: - long long unsigned int rejected;
1: - long long unsigned int s2idle_usage;
1: - long long unsigned int s2idle_time;
1: + long long unsigned int disable;
1: + long long unsigned int usage;
1: + u64 time_ns;
1: + long long unsigned int above;
1: + long long unsigned int below;
1: + long long unsigned int rejected;
1: + long long unsigned int s2idle_usage;
1: + long long unsigned int s2idle_time;
1: };
1:
1: struct cpuidle_device;
1: @@ -22449,17 +22726,17 @@ struct cpuidle_device;
1: struct cpuidle_driver;
1:
1: struct cpuidle_state {
1: - char name[16];
1: - char desc[32];
1: - u64 exit_latency_ns;
1: - u64 target_residency_ns;
1: - unsigned int flags;
1: - unsigned int exit_latency;
1: - int power_usage;
1: - unsigned int target_residency;
1: - int (*enter)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: - int (*enter_dead)(struct cpuidle_device *, int);
1: - int (*enter_s2idle)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: + char name[16];
1: + char desc[32];
1: + u64 exit_latency_ns;
1: + u64 target_residency_ns;
1: + unsigned int flags;
1: + unsigned int exit_latency;
1: + int power_usage;
1: + unsigned int target_residency;
1: + int (*enter)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: + int (*enter_dead)(struct cpuidle_device *, int);
1: + int (*enter_s2idle)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: };
1:
1: struct cpuidle_state_kobj;
1: @@ -22469,31 +22746,31 @@ struct cpuidle_driver_kobj;
1: struct cpuidle_device_kobj;
1:
1: struct cpuidle_device {
1: - unsigned int registered: 1;
1: - unsigned int enabled: 1;
1: - unsigned int poll_time_limit: 1;
1: - unsigned int cpu;
1: - ktime_t next_hrtimer;
1: - int last_state_idx;
1: - u64 last_residency_ns;
1: - u64 poll_limit_ns;
1: - u64 forced_idle_latency_limit_ns;
1: - struct cpuidle_state_usage states_usage[10];
1: - struct cpuidle_state_kobj *kobjs[10];
1: - struct cpuidle_driver_kobj *kobj_driver;
1: - struct cpuidle_device_kobj *kobj_dev;
1: - struct list_head device_list;
1: + unsigned int registered : 1;
1: + unsigned int enabled : 1;
1: + unsigned int poll_time_limit : 1;
1: + unsigned int cpu;
1: + ktime_t next_hrtimer;
1: + int last_state_idx;
1: + u64 last_residency_ns;
1: + u64 poll_limit_ns;
1: + u64 forced_idle_latency_limit_ns;
1: + struct cpuidle_state_usage states_usage[10];
1: + struct cpuidle_state_kobj *kobjs[10];
1: + struct cpuidle_driver_kobj *kobj_driver;
1: + struct cpuidle_device_kobj *kobj_dev;
1: + struct list_head device_list;
1: };
1:
1: struct cpuidle_driver {
1: - const char *name;
1: - struct module *owner;
1: - unsigned int bctimer: 1;
1: - struct cpuidle_state states[10];
1: - int state_count;
1: - int safe_state_index;
1: - struct cpumask *cpumask;
1: - const char *governor;
1: + const char *name;
1: + struct module *owner;
1: + unsigned int bctimer : 1;
1: + struct cpuidle_state states[10];
1: + int state_count;
1: + int safe_state_index;
1: + struct cpumask *cpumask;
1: + const char *governor;
1: };
1:
1: typedef int (*cpu_stop_fn_t)(void *);
1: @@ -22501,1787 +22778,1791 @@ typedef int (*cpu_stop_fn_t)(void *);
1: struct cpu_stop_done;
1:
1: struct cpu_stop_work {
1: - struct list_head list;
1: - cpu_stop_fn_t fn;
1: - void *arg;
1: - struct cpu_stop_done *done;
1: + struct list_head list;
1: + cpu_stop_fn_t fn;
1: + void *arg;
1: + struct cpu_stop_done *done;
1: };
1:
1: struct cpudl_item {
1: - u64 dl;
1: - int cpu;
1: - int idx;
1: + u64 dl;
1: + int cpu;
1: + int idx;
1: };
1:
1: struct rt_prio_array {
1: - long unsigned int bitmap[2];
1: - struct list_head queue[100];
1: + long unsigned int bitmap[2];
1: + struct list_head queue[100];
1: };
1:
1: struct rt_bandwidth {
1: - raw_spinlock_t rt_runtime_lock;
1: - ktime_t rt_period;
1: - u64 rt_runtime;
1: - struct hrtimer rt_period_timer;
1: - unsigned int rt_period_active;
1: + raw_spinlock_t rt_runtime_lock;
1: + ktime_t rt_period;
1: + u64 rt_runtime;
1: + struct hrtimer rt_period_timer;
1: + unsigned int rt_period_active;
1: };
1:
1: struct dl_bandwidth {
1: - raw_spinlock_t dl_runtime_lock;
1: - u64 dl_runtime;
1: - u64 dl_period;
1: + raw_spinlock_t dl_runtime_lock;
1: + u64 dl_runtime;
1: + u64 dl_period;
1: };
1:
1: typedef int (*tg_visitor)(struct task_group *, void *);
1:
1: struct uclamp_bucket {
1: - long unsigned int value: 11;
1: - long unsigned int tasks: 53;
1: + long unsigned int value : 11;
1: + long unsigned int tasks : 53;
1: };
1:
1: struct uclamp_rq {
1: - unsigned int value;
1: - struct uclamp_bucket bucket[5];
1: + unsigned int value;
1: + struct uclamp_bucket bucket[5];
1: };
1:
1: struct rt_rq {
1: - struct rt_prio_array active;
1: - unsigned int rt_nr_running;
1: - unsigned int rr_nr_running;
1: - struct {
1: - int curr;
1: - int next;
1: - } highest_prio;
1: - long unsigned int rt_nr_migratory;
1: - long unsigned int rt_nr_total;
1: - int overloaded;
1: - struct plist_head pushable_tasks;
1: - int rt_queued;
1: - int rt_throttled;
1: - u64 rt_time;
1: - u64 rt_runtime;
1: - raw_spinlock_t rt_runtime_lock;
1: + struct rt_prio_array active;
1: + unsigned int rt_nr_running;
1: + unsigned int rr_nr_running;
1: + struct {
1: + int curr;
1: + int next;
1: + } highest_prio;
1: + long unsigned int rt_nr_migratory;
1: + long unsigned int rt_nr_total;
1: + int overloaded;
1: + struct plist_head pushable_tasks;
1: + int rt_queued;
1: + int rt_throttled;
1: + u64 rt_time;
1: + u64 rt_runtime;
1: + raw_spinlock_t rt_runtime_lock;
1: };
1:
1: struct dl_rq {
1: - struct rb_root_cached root;
1: - long unsigned int dl_nr_running;
1: - struct {
1: - u64 curr;
1: - u64 next;
1: - } earliest_dl;
1: - long unsigned int dl_nr_migratory;
1: - int overloaded;
1: - struct rb_root_cached pushable_dl_tasks_root;
1: - u64 running_bw;
1: - u64 this_bw;
1: - u64 extra_bw;
1: - u64 bw_ratio;
1: + struct rb_root_cached root;
1: + long unsigned int dl_nr_running;
1: + struct {
1: + u64 curr;
1: + u64 next;
1: + } earliest_dl;
1: + long unsigned int dl_nr_migratory;
1: + int overloaded;
1: + struct rb_root_cached pushable_dl_tasks_root;
1: + u64 running_bw;
1: + u64 this_bw;
1: + u64 extra_bw;
1: + u64 bw_ratio;
1: };
1:
1: struct rq {
1: - raw_spinlock_t lock;
1: - unsigned int nr_running;
1: - unsigned int nr_numa_running;
1: - unsigned int nr_preferred_running;
1: - unsigned int numa_migrate_on;
1: - long unsigned int last_blocked_load_update_tick;
1: - unsigned int has_blocked_load;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - call_single_data_t nohz_csd;
1: - unsigned int nohz_tick_stopped;
1: - atomic_t nohz_flags;
1: - unsigned int ttwu_pending;
1: - u64 nr_switches;
1: - long: 64;
1: - struct uclamp_rq uclamp[2];
1: - unsigned int uclamp_flags;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct cfs_rq cfs;
1: - struct rt_rq rt;
1: - struct dl_rq dl;
1: - struct list_head leaf_cfs_rq_list;
1: - struct list_head *tmp_alone_branch;
1: - long unsigned int nr_uninterruptible;
1: - struct task_struct *curr;
1: - struct task_struct *idle;
1: - struct task_struct *stop;
1: - long unsigned int next_balance;
1: - struct mm_struct *prev_mm;
1: - unsigned int clock_update_flags;
1: - u64 clock;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u64 clock_task;
1: - u64 clock_pelt;
1: - long unsigned int lost_idle_time;
1: - atomic_t nr_iowait;
1: - int membarrier_state;
1: - struct root_domain *rd;
1: - struct sched_domain *sd;
1: - long unsigned int cpu_capacity;
1: - long unsigned int cpu_capacity_orig;
1: - struct callback_head *balance_callback;
1: - unsigned char nohz_idle_balance;
1: - unsigned char idle_balance;
1: - long unsigned int misfit_task_load;
1: - int active_balance;
1: - int push_cpu;
1: - struct cpu_stop_work active_balance_work;
1: - int cpu;
1: - int online;
1: - struct list_head cfs_tasks;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sched_avg avg_rt;
1: - struct sched_avg avg_dl;
1: - struct sched_avg avg_irq;
1: - struct sched_avg avg_thermal;
1: - u64 idle_stamp;
1: - u64 avg_idle;
1: - u64 max_idle_balance_cost;
1: - u64 prev_steal_time;
1: - u64 prev_steal_time_rq;
1: - long unsigned int calc_load_update;
1: - long int calc_load_active;
1: - long: 64;
1: - call_single_data_t hrtick_csd;
1: - struct hrtimer hrtick_timer;
1: - struct sched_info rq_sched_info;
1: - long long unsigned int rq_cpu_time;
1: - unsigned int yld_count;
1: - unsigned int sched_count;
1: - unsigned int sched_goidle;
1: - unsigned int ttwu_count;
1: - unsigned int ttwu_local;
1: - struct cpuidle_state *idle_state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + raw_spinlock_t lock;
1: + unsigned int nr_running;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: + unsigned int numa_migrate_on;
1: + long unsigned int last_blocked_load_update_tick;
1: + unsigned int has_blocked_load;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + call_single_data_t nohz_csd;
1: + unsigned int nohz_tick_stopped;
1: + atomic_t nohz_flags;
1: + unsigned int ttwu_pending;
1: + u64 nr_switches;
1: + long : 64;
1: + struct uclamp_rq uclamp[2];
1: + unsigned int uclamp_flags;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct cfs_rq cfs;
1: + struct rt_rq rt;
1: + struct dl_rq dl;
1: + struct list_head leaf_cfs_rq_list;
1: + struct list_head *tmp_alone_branch;
1: + long unsigned int nr_uninterruptible;
1: + struct task_struct *curr;
1: + struct task_struct *idle;
1: + struct task_struct *stop;
1: + long unsigned int next_balance;
1: + struct mm_struct *prev_mm;
1: + unsigned int clock_update_flags;
1: + u64 clock;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u64 clock_task;
1: + u64 clock_pelt;
1: + long unsigned int lost_idle_time;
1: + atomic_t nr_iowait;
1: + int membarrier_state;
1: + struct root_domain *rd;
1: + struct sched_domain *sd;
1: + long unsigned int cpu_capacity;
1: + long unsigned int cpu_capacity_orig;
1: + struct callback_head *balance_callback;
1: + unsigned char nohz_idle_balance;
1: + unsigned char idle_balance;
1: + long unsigned int misfit_task_load;
1: + int active_balance;
1: + int push_cpu;
1: + struct cpu_stop_work active_balance_work;
1: + int cpu;
1: + int online;
1: + struct list_head cfs_tasks;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sched_avg avg_rt;
1: + struct sched_avg avg_dl;
1: + struct sched_avg avg_irq;
1: + struct sched_avg avg_thermal;
1: + u64 idle_stamp;
1: + u64 avg_idle;
1: + u64 max_idle_balance_cost;
1: + u64 prev_steal_time;
1: + u64 prev_steal_time_rq;
1: + long unsigned int calc_load_update;
1: + long int calc_load_active;
1: + long : 64;
1: + call_single_data_t hrtick_csd;
1: + struct hrtimer hrtick_timer;
1: + struct sched_info rq_sched_info;
1: + long long unsigned int rq_cpu_time;
1: + unsigned int yld_count;
1: + unsigned int sched_count;
1: + unsigned int sched_goidle;
1: + unsigned int ttwu_count;
1: + unsigned int ttwu_local;
1: + struct cpuidle_state *idle_state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct perf_domain {
1: - struct em_perf_domain *em_pd;
1: - struct perf_domain *next;
1: - struct callback_head rcu;
1: + struct em_perf_domain *em_pd;
1: + struct perf_domain *next;
1: + struct callback_head rcu;
1: };
1:
1: struct rq_flags {
1: - long unsigned int flags;
1: - struct pin_cookie cookie;
1: - unsigned int clock_update_flags;
1: -};
1: -
1: -enum {
1: - __SCHED_FEAT_GENTLE_FAIR_SLEEPERS = 0,
1: - __SCHED_FEAT_START_DEBIT = 1,
1: - __SCHED_FEAT_NEXT_BUDDY = 2,
1: - __SCHED_FEAT_LAST_BUDDY = 3,
1: - __SCHED_FEAT_CACHE_HOT_BUDDY = 4,
1: - __SCHED_FEAT_WAKEUP_PREEMPTION = 5,
1: - __SCHED_FEAT_HRTICK = 6,
1: - __SCHED_FEAT_DOUBLE_TICK = 7,
1: - __SCHED_FEAT_NONTASK_CAPACITY = 8,
1: - __SCHED_FEAT_TTWU_QUEUE = 9,
1: - __SCHED_FEAT_SIS_AVG_CPU = 10,
1: - __SCHED_FEAT_SIS_PROP = 11,
1: - __SCHED_FEAT_WARN_DOUBLE_CLOCK = 12,
1: - __SCHED_FEAT_RT_PUSH_IPI = 13,
1: - __SCHED_FEAT_RT_RUNTIME_SHARE = 14,
1: - __SCHED_FEAT_LB_MIN = 15,
1: - __SCHED_FEAT_ATTACH_AGE_LOAD = 16,
1: - __SCHED_FEAT_WA_IDLE = 17,
1: - __SCHED_FEAT_WA_WEIGHT = 18,
1: - __SCHED_FEAT_WA_BIAS = 19,
1: - __SCHED_FEAT_UTIL_EST = 20,
1: - __SCHED_FEAT_UTIL_EST_FASTUP = 21,
1: - __SCHED_FEAT_NR = 22,
1: + long unsigned int flags;
1: + struct pin_cookie cookie;
1: + unsigned int clock_update_flags;
1: +};
1: +
1: +enum {
1: + __SCHED_FEAT_GENTLE_FAIR_SLEEPERS = 0,
1: + __SCHED_FEAT_START_DEBIT = 1,
1: + __SCHED_FEAT_NEXT_BUDDY = 2,
1: + __SCHED_FEAT_LAST_BUDDY = 3,
1: + __SCHED_FEAT_CACHE_HOT_BUDDY = 4,
1: + __SCHED_FEAT_WAKEUP_PREEMPTION = 5,
1: + __SCHED_FEAT_HRTICK = 6,
1: + __SCHED_FEAT_DOUBLE_TICK = 7,
1: + __SCHED_FEAT_NONTASK_CAPACITY = 8,
1: + __SCHED_FEAT_TTWU_QUEUE = 9,
1: + __SCHED_FEAT_SIS_AVG_CPU = 10,
1: + __SCHED_FEAT_SIS_PROP = 11,
1: + __SCHED_FEAT_WARN_DOUBLE_CLOCK = 12,
1: + __SCHED_FEAT_RT_PUSH_IPI = 13,
1: + __SCHED_FEAT_RT_RUNTIME_SHARE = 14,
1: + __SCHED_FEAT_LB_MIN = 15,
1: + __SCHED_FEAT_ATTACH_AGE_LOAD = 16,
1: + __SCHED_FEAT_WA_IDLE = 17,
1: + __SCHED_FEAT_WA_WEIGHT = 18,
1: + __SCHED_FEAT_WA_BIAS = 19,
1: + __SCHED_FEAT_UTIL_EST = 20,
1: + __SCHED_FEAT_UTIL_EST_FASTUP = 21,
1: + __SCHED_FEAT_NR = 22,
1: };
1:
1: struct migration_arg {
1: - struct task_struct *task;
1: - int dest_cpu;
1: + struct task_struct *task;
1: + int dest_cpu;
1: };
1:
1: struct migration_swap_arg {
1: - struct task_struct *src_task;
1: - struct task_struct *dst_task;
1: - int src_cpu;
1: - int dst_cpu;
1: + struct task_struct *src_task;
1: + struct task_struct *dst_task;
1: + int src_cpu;
1: + int dst_cpu;
1: };
1:
1: struct uclamp_request {
1: - s64 percent;
1: - u64 util;
1: - int ret;
1: + s64 percent;
1: + u64 util;
1: + int ret;
1: };
1:
1: struct cfs_schedulable_data {
1: - struct task_group *tg;
1: - u64 period;
1: - u64 quota;
1: + struct task_group *tg;
1: + u64 period;
1: + u64 quota;
1: };
1:
1: enum {
1: - cpuset = 0,
1: - possible = 1,
1: - fail = 2,
1: + cpuset = 0,
1: + possible = 1,
1: + fail = 2,
1: };
1:
1: enum s2idle_states {
1: - S2IDLE_STATE_NONE = 0,
1: - S2IDLE_STATE_ENTER = 1,
1: - S2IDLE_STATE_WAKE = 2,
1: + S2IDLE_STATE_NONE = 0,
1: + S2IDLE_STATE_ENTER = 1,
1: + S2IDLE_STATE_WAKE = 2,
1: };
1:
1: struct idle_timer {
1: - struct hrtimer timer;
1: - int done;
1: + struct hrtimer timer;
1: + int done;
1: };
1:
1: typedef void (*rcu_callback_t)(struct callback_head *);
1:
1: struct numa_group {
1: - refcount_t refcount;
1: - spinlock_t lock;
1: - int nr_tasks;
1: - pid_t gid;
1: - int active_nodes;
1: - struct callback_head rcu;
1: - long unsigned int total_faults;
1: - long unsigned int max_faults_cpu;
1: - long unsigned int *faults_cpu;
1: - long unsigned int faults[0];
1: + refcount_t refcount;
1: + spinlock_t lock;
1: + int nr_tasks;
1: + pid_t gid;
1: + int active_nodes;
1: + struct callback_head rcu;
1: + long unsigned int total_faults;
1: + long unsigned int max_faults_cpu;
1: + long unsigned int *faults_cpu;
1: + long unsigned int faults[0];
1: };
1:
1: struct update_util_data {
1: - void (*func)(struct update_util_data *, u64, unsigned int);
1: + void (*func)(struct update_util_data *, u64, unsigned int);
1: };
1:
1: enum numa_topology_type {
1: - NUMA_DIRECT = 0,
1: - NUMA_GLUELESS_MESH = 1,
1: - NUMA_BACKPLANE = 2,
1: + NUMA_DIRECT = 0,
1: + NUMA_GLUELESS_MESH = 1,
1: + NUMA_BACKPLANE = 2,
1: };
1:
1: enum numa_faults_stats {
1: - NUMA_MEM = 0,
1: - NUMA_CPU = 1,
1: - NUMA_MEMBUF = 2,
1: - NUMA_CPUBUF = 3,
1: + NUMA_MEM = 0,
1: + NUMA_CPU = 1,
1: + NUMA_MEMBUF = 2,
1: + NUMA_CPUBUF = 3,
1: };
1:
1: enum schedutil_type {
1: - FREQUENCY_UTIL = 0,
1: - ENERGY_UTIL = 1,
1: + FREQUENCY_UTIL = 0,
1: + ENERGY_UTIL = 1,
1: };
1:
1: enum numa_type {
1: - node_has_spare = 0,
1: - node_fully_busy = 1,
1: - node_overloaded = 2,
1: + node_has_spare = 0,
1: + node_fully_busy = 1,
1: + node_overloaded = 2,
1: };
1:
1: struct numa_stats {
1: - long unsigned int load;
1: - long unsigned int runnable;
1: - long unsigned int util;
1: - long unsigned int compute_capacity;
1: - unsigned int nr_running;
1: - unsigned int weight;
1: - enum numa_type node_type;
1: - int idle_cpu;
1: + long unsigned int load;
1: + long unsigned int runnable;
1: + long unsigned int util;
1: + long unsigned int compute_capacity;
1: + unsigned int nr_running;
1: + unsigned int weight;
1: + enum numa_type node_type;
1: + int idle_cpu;
1: };
1:
1: struct task_numa_env {
1: - struct task_struct *p;
1: - int src_cpu;
1: - int src_nid;
1: - int dst_cpu;
1: - int dst_nid;
1: - struct numa_stats src_stats;
1: - struct numa_stats dst_stats;
1: - int imbalance_pct;
1: - int dist;
1: - struct task_struct *best_task;
1: - long int best_imp;
1: - int best_cpu;
1: + struct task_struct *p;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + struct numa_stats src_stats;
1: + struct numa_stats dst_stats;
1: + int imbalance_pct;
1: + int dist;
1: + struct task_struct *best_task;
1: + long int best_imp;
1: + int best_cpu;
1: };
1:
1: enum fbq_type {
1: - regular = 0,
1: - remote = 1,
1: - all = 2,
1: + regular = 0,
1: + remote = 1,
1: + all = 2,
1: };
1:
1: enum group_type {
1: - group_has_spare = 0,
1: - group_fully_busy = 1,
1: - group_misfit_task = 2,
1: - group_asym_packing = 3,
1: - group_imbalanced = 4,
1: - group_overloaded = 5,
1: + group_has_spare = 0,
1: + group_fully_busy = 1,
1: + group_misfit_task = 2,
1: + group_asym_packing = 3,
1: + group_imbalanced = 4,
1: + group_overloaded = 5,
1: };
1:
1: enum migration_type {
1: - migrate_load = 0,
1: - migrate_util = 1,
1: - migrate_task = 2,
1: - migrate_misfit = 3,
1: + migrate_load = 0,
1: + migrate_util = 1,
1: + migrate_task = 2,
1: + migrate_misfit = 3,
1: };
1:
1: struct lb_env {
1: - struct sched_domain *sd;
1: - struct rq *src_rq;
1: - int src_cpu;
1: - int dst_cpu;
1: - struct rq *dst_rq;
1: - struct cpumask *dst_grpmask;
1: - int new_dst_cpu;
1: - enum cpu_idle_type idle;
1: - long int imbalance;
1: - struct cpumask *cpus;
1: - unsigned int flags;
1: - unsigned int loop;
1: - unsigned int loop_break;
1: - unsigned int loop_max;
1: - enum fbq_type fbq_type;
1: - enum migration_type migration_type;
1: - struct list_head tasks;
1: + struct sched_domain *sd;
1: + struct rq *src_rq;
1: + int src_cpu;
1: + int dst_cpu;
1: + struct rq *dst_rq;
1: + struct cpumask *dst_grpmask;
1: + int new_dst_cpu;
1: + enum cpu_idle_type idle;
1: + long int imbalance;
1: + struct cpumask *cpus;
1: + unsigned int flags;
1: + unsigned int loop;
1: + unsigned int loop_break;
1: + unsigned int loop_max;
1: + enum fbq_type fbq_type;
1: + enum migration_type migration_type;
1: + struct list_head tasks;
1: };
1:
1: struct sg_lb_stats {
1: - long unsigned int avg_load;
1: - long unsigned int group_load;
1: - long unsigned int group_capacity;
1: - long unsigned int group_util;
1: - long unsigned int group_runnable;
1: - unsigned int sum_nr_running;
1: - unsigned int sum_h_nr_running;
1: - unsigned int idle_cpus;
1: - unsigned int group_weight;
1: - enum group_type group_type;
1: - unsigned int group_asym_packing;
1: - long unsigned int group_misfit_task_load;
1: - unsigned int nr_numa_running;
1: - unsigned int nr_preferred_running;
1: + long unsigned int avg_load;
1: + long unsigned int group_load;
1: + long unsigned int group_capacity;
1: + long unsigned int group_util;
1: + long unsigned int group_runnable;
1: + unsigned int sum_nr_running;
1: + unsigned int sum_h_nr_running;
1: + unsigned int idle_cpus;
1: + unsigned int group_weight;
1: + enum group_type group_type;
1: + unsigned int group_asym_packing;
1: + long unsigned int group_misfit_task_load;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: };
1:
1: struct sd_lb_stats {
1: - struct sched_group *busiest;
1: - struct sched_group *local;
1: - long unsigned int total_load;
1: - long unsigned int total_capacity;
1: - long unsigned int avg_load;
1: - unsigned int prefer_sibling;
1: - struct sg_lb_stats busiest_stat;
1: - struct sg_lb_stats local_stat;
1: + struct sched_group *busiest;
1: + struct sched_group *local;
1: + long unsigned int total_load;
1: + long unsigned int total_capacity;
1: + long unsigned int avg_load;
1: + unsigned int prefer_sibling;
1: + struct sg_lb_stats busiest_stat;
1: + struct sg_lb_stats local_stat;
1: };
1:
1: typedef struct rt_rq *rt_rq_iter_t;
1:
1: struct wait_bit_key {
1: - void *flags;
1: - int bit_nr;
1: - long unsigned int timeout;
1: + void *flags;
1: + int bit_nr;
1: + long unsigned int timeout;
1: };
1:
1: struct wait_bit_queue_entry {
1: - struct wait_bit_key key;
1: - struct wait_queue_entry wq_entry;
1: + struct wait_bit_key key;
1: + struct wait_queue_entry wq_entry;
1: };
1:
1: typedef int wait_bit_action_f(struct wait_bit_key *, int);
1:
1: struct swait_queue {
1: - struct task_struct *task;
1: - struct list_head task_list;
1: + struct task_struct *task;
1: + struct list_head task_list;
1: };
1:
1: struct sd_flag_debug {
1: - unsigned int meta_flags;
1: - char *name;
1: + unsigned int meta_flags;
1: + char *name;
1: };
1:
1: struct sched_domain_attr {
1: - int relax_domain_level;
1: + int relax_domain_level;
1: };
1:
1: -typedef const struct cpumask * (*sched_domain_mask_f)(int);
1: +typedef const struct cpumask *(*sched_domain_mask_f)(int);
1:
1: typedef int (*sched_domain_flags_f)();
1:
1: struct sd_data {
1: - struct sched_domain **sd;
1: - struct sched_domain_shared **sds;
1: - struct sched_group **sg;
1: - struct sched_group_capacity **sgc;
1: + struct sched_domain **sd;
1: + struct sched_domain_shared **sds;
1: + struct sched_group **sg;
1: + struct sched_group_capacity **sgc;
1: };
1:
1: struct sched_domain_topology_level {
1: - sched_domain_mask_f mask;
1: - sched_domain_flags_f sd_flags;
1: - int flags;
1: - int numa_level;
1: - struct sd_data data;
1: - char *name;
1: + sched_domain_mask_f mask;
1: + sched_domain_flags_f sd_flags;
1: + int flags;
1: + int numa_level;
1: + struct sd_data data;
1: + char *name;
1: };
1:
1: struct s_data {
1: - struct sched_domain **sd;
1: - struct root_domain *rd;
1: + struct sched_domain **sd;
1: + struct root_domain *rd;
1: };
1:
1: enum s_alloc {
1: - sa_rootdomain = 0,
1: - sa_sd = 1,
1: - sa_sd_storage = 2,
1: - sa_none = 3,
1: + sa_rootdomain = 0,
1: + sa_sd = 1,
1: + sa_sd_storage = 2,
1: + sa_none = 3,
1: };
1:
1: enum cpuacct_stat_index {
1: - CPUACCT_STAT_USER = 0,
1: - CPUACCT_STAT_SYSTEM = 1,
1: - CPUACCT_STAT_NSTATS = 2,
1: + CPUACCT_STAT_USER = 0,
1: + CPUACCT_STAT_SYSTEM = 1,
1: + CPUACCT_STAT_NSTATS = 2,
1: };
1:
1: struct cpuacct_usage {
1: - u64 usages[2];
1: + u64 usages[2];
1: };
1:
1: struct cpuacct {
1: - struct cgroup_subsys_state css;
1: - struct cpuacct_usage *cpuusage;
1: - struct kernel_cpustat *cpustat;
1: + struct cgroup_subsys_state css;
1: + struct cpuacct_usage *cpuusage;
1: + struct kernel_cpustat *cpustat;
1: };
1:
1: struct gov_attr_set {
1: - struct kobject kobj;
1: - struct list_head policy_list;
1: - struct mutex update_lock;
1: - int usage_count;
1: + struct kobject kobj;
1: + struct list_head policy_list;
1: + struct mutex update_lock;
1: + int usage_count;
1: };
1:
1: struct governor_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct gov_attr_set *, char *);
1: - ssize_t (*store)(struct gov_attr_set *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct gov_attr_set *, char *);
1: + ssize_t (*store)(struct gov_attr_set *, const char *, size_t);
1: };
1:
1: struct sugov_tunables {
1: - struct gov_attr_set attr_set;
1: - unsigned int rate_limit_us;
1: + struct gov_attr_set attr_set;
1: + unsigned int rate_limit_us;
1: };
1:
1: struct sugov_policy {
1: - struct cpufreq_policy *policy;
1: - struct sugov_tunables *tunables;
1: - struct list_head tunables_hook;
1: - raw_spinlock_t update_lock;
1: - u64 last_freq_update_time;
1: - s64 freq_update_delay_ns;
1: - unsigned int next_freq;
1: - unsigned int cached_raw_freq;
1: - struct irq_work irq_work;
1: - struct kthread_work work;
1: - struct mutex work_lock;
1: - struct kthread_worker worker;
1: - struct task_struct *thread;
1: - bool work_in_progress;
1: - bool limits_changed;
1: - bool need_freq_update;
1: + struct cpufreq_policy *policy;
1: + struct sugov_tunables *tunables;
1: + struct list_head tunables_hook;
1: + raw_spinlock_t update_lock;
1: + u64 last_freq_update_time;
1: + s64 freq_update_delay_ns;
1: + unsigned int next_freq;
1: + unsigned int cached_raw_freq;
1: + struct irq_work irq_work;
1: + struct kthread_work work;
1: + struct mutex work_lock;
1: + struct kthread_worker worker;
1: + struct task_struct *thread;
1: + bool work_in_progress;
1: + bool limits_changed;
1: + bool need_freq_update;
1: };
1:
1: struct sugov_cpu {
1: - struct update_util_data update_util;
1: - struct sugov_policy *sg_policy;
1: - unsigned int cpu;
1: - bool iowait_boost_pending;
1: - unsigned int iowait_boost;
1: - u64 last_update;
1: - long unsigned int bw_dl;
1: - long unsigned int max;
1: - long unsigned int saved_idle_calls;
1: + struct update_util_data update_util;
1: + struct sugov_policy *sg_policy;
1: + unsigned int cpu;
1: + bool iowait_boost_pending;
1: + unsigned int iowait_boost;
1: + u64 last_update;
1: + long unsigned int bw_dl;
1: + long unsigned int max;
1: + long unsigned int saved_idle_calls;
1: };
1:
1: enum {
1: - MEMBARRIER_FLAG_SYNC_CORE = 1,
1: - MEMBARRIER_FLAG_RSEQ = 2,
1: + MEMBARRIER_FLAG_SYNC_CORE = 1,
1: + MEMBARRIER_FLAG_RSEQ = 2,
1: };
1:
1: enum membarrier_cmd {
1: - MEMBARRIER_CMD_QUERY = 0,
1: - MEMBARRIER_CMD_GLOBAL = 1,
1: - MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2,
1: - MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4,
1: - MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8,
1: - MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16,
1: - MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: - MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64,
1: - MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128,
1: - MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256,
1: - MEMBARRIER_CMD_SHARED = 1,
1: + MEMBARRIER_CMD_QUERY = 0,
1: + MEMBARRIER_CMD_GLOBAL = 1,
1: + MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2,
1: + MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256,
1: + MEMBARRIER_CMD_SHARED = 1,
1: };
1:
1: enum membarrier_cmd_flag {
1: - MEMBARRIER_CMD_FLAG_CPU = 1,
1: + MEMBARRIER_CMD_FLAG_CPU = 1,
1: };
1:
1: struct proc_ops {
1: - unsigned int proc_flags;
1: - int (*proc_open)(struct inode *, struct file *);
1: - ssize_t (*proc_read)(struct file *, char *, size_t, loff_t *);
1: - ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
1: - ssize_t (*proc_write)(struct file *, const char *, size_t, loff_t *);
1: - loff_t (*proc_lseek)(struct file *, loff_t, int);
1: - int (*proc_release)(struct inode *, struct file *);
1: - __poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
1: - long int (*proc_ioctl)(struct file *, unsigned int, long unsigned int);
1: - long int (*proc_compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: - int (*proc_mmap)(struct file *, struct vm_area_struct *);
1: - long unsigned int (*proc_get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + unsigned int proc_flags;
1: + int (*proc_open)(struct inode *, struct file *);
1: + ssize_t (*proc_read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*proc_write)(struct file *, const char *, size_t, loff_t *);
1: + loff_t (*proc_lseek)(struct file *, loff_t, int);
1: + int (*proc_release)(struct inode *, struct file *);
1: + __poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
1: + long int (*proc_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*proc_compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*proc_mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int (*proc_get_unmapped_area)(struct file *, long unsigned int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int);
1: };
1:
1: enum psi_res {
1: - PSI_IO = 0,
1: - PSI_MEM = 1,
1: - PSI_CPU = 2,
1: - NR_PSI_RESOURCES = 3,
1: + PSI_IO = 0,
1: + PSI_MEM = 1,
1: + PSI_CPU = 2,
1: + NR_PSI_RESOURCES = 3,
1: };
1:
1: struct psi_window {
1: - u64 size;
1: - u64 start_time;
1: - u64 start_value;
1: - u64 prev_growth;
1: + u64 size;
1: + u64 start_time;
1: + u64 start_value;
1: + u64 prev_growth;
1: };
1:
1: struct psi_trigger {
1: - enum psi_states state;
1: - u64 threshold;
1: - struct list_head node;
1: - struct psi_group *group;
1: - wait_queue_head_t event_wait;
1: - int event;
1: - struct psi_window win;
1: - u64 last_event_time;
1: - struct kref refcount;
1: + enum psi_states state;
1: + u64 threshold;
1: + struct list_head node;
1: + struct psi_group *group;
1: + wait_queue_head_t event_wait;
1: + int event;
1: + struct psi_window win;
1: + u64 last_event_time;
1: + struct kref refcount;
1: };
1:
1: struct ww_acquire_ctx;
1:
1: struct ww_mutex {
1: - struct mutex base;
1: - struct ww_acquire_ctx *ctx;
1: + struct mutex base;
1: + struct ww_acquire_ctx *ctx;
1: };
1:
1: struct ww_acquire_ctx {
1: - struct task_struct *task;
1: - long unsigned int stamp;
1: - unsigned int acquired;
1: - short unsigned int wounded;
1: - short unsigned int is_wait_die;
1: + struct task_struct *task;
1: + long unsigned int stamp;
1: + unsigned int acquired;
1: + short unsigned int wounded;
1: + short unsigned int is_wait_die;
1: };
1:
1: struct mutex_waiter {
1: - struct list_head list;
1: - struct task_struct *task;
1: - struct ww_acquire_ctx *ww_ctx;
1: + struct list_head list;
1: + struct task_struct *task;
1: + struct ww_acquire_ctx *ww_ctx;
1: };
1:
1: enum mutex_trylock_recursive_enum {
1: - MUTEX_TRYLOCK_FAILED = 0,
1: - MUTEX_TRYLOCK_SUCCESS = 1,
1: - MUTEX_TRYLOCK_RECURSIVE = 2,
1: + MUTEX_TRYLOCK_FAILED = 0,
1: + MUTEX_TRYLOCK_SUCCESS = 1,
1: + MUTEX_TRYLOCK_RECURSIVE = 2,
1: };
1:
1: struct semaphore {
1: - raw_spinlock_t lock;
1: - unsigned int count;
1: - struct list_head wait_list;
1: + raw_spinlock_t lock;
1: + unsigned int count;
1: + struct list_head wait_list;
1: };
1:
1: struct semaphore_waiter {
1: - struct list_head list;
1: - struct task_struct *task;
1: - bool up;
1: + struct list_head list;
1: + struct task_struct *task;
1: + bool up;
1: };
1:
1: enum rwsem_waiter_type {
1: - RWSEM_WAITING_FOR_WRITE = 0,
1: - RWSEM_WAITING_FOR_READ = 1,
1: + RWSEM_WAITING_FOR_WRITE = 0,
1: + RWSEM_WAITING_FOR_READ = 1,
1: };
1:
1: struct rwsem_waiter {
1: - struct list_head list;
1: - struct task_struct *task;
1: - enum rwsem_waiter_type type;
1: - long unsigned int timeout;
1: - long unsigned int last_rowner;
1: + struct list_head list;
1: + struct task_struct *task;
1: + enum rwsem_waiter_type type;
1: + long unsigned int timeout;
1: + long unsigned int last_rowner;
1: };
1:
1: enum rwsem_wake_type {
1: - RWSEM_WAKE_ANY = 0,
1: - RWSEM_WAKE_READERS = 1,
1: - RWSEM_WAKE_READ_OWNED = 2,
1: + RWSEM_WAKE_ANY = 0,
1: + RWSEM_WAKE_READERS = 1,
1: + RWSEM_WAKE_READ_OWNED = 2,
1: };
1:
1: enum writer_wait_state {
1: - WRITER_NOT_FIRST = 0,
1: - WRITER_FIRST = 1,
1: - WRITER_HANDOFF = 2,
1: + WRITER_NOT_FIRST = 0,
1: + WRITER_FIRST = 1,
1: + WRITER_HANDOFF = 2,
1: };
1:
1: enum owner_state {
1: - OWNER_NULL = 1,
1: - OWNER_WRITER = 2,
1: - OWNER_READER = 4,
1: - OWNER_NONSPINNABLE = 8,
1: + OWNER_NULL = 1,
1: + OWNER_WRITER = 2,
1: + OWNER_READER = 4,
1: + OWNER_NONSPINNABLE = 8,
1: };
1:
1: struct optimistic_spin_node {
1: - struct optimistic_spin_node *next;
1: - struct optimistic_spin_node *prev;
1: - int locked;
1: - int cpu;
1: + struct optimistic_spin_node *next;
1: + struct optimistic_spin_node *prev;
1: + int locked;
1: + int cpu;
1: };
1:
1: struct mcs_spinlock {
1: - struct mcs_spinlock *next;
1: - int locked;
1: - int count;
1: + struct mcs_spinlock *next;
1: + int locked;
1: + int count;
1: };
1:
1: struct qnode {
1: - struct mcs_spinlock mcs;
1: + struct mcs_spinlock mcs;
1: };
1:
1: struct hrtimer_sleeper {
1: - struct hrtimer timer;
1: - struct task_struct *task;
1: + struct hrtimer timer;
1: + struct task_struct *task;
1: };
1:
1: struct rt_mutex;
1:
1: struct rt_mutex_waiter {
1: - struct rb_node tree_entry;
1: - struct rb_node pi_tree_entry;
1: - struct task_struct *task;
1: - struct rt_mutex *lock;
1: - int prio;
1: - u64 deadline;
1: + struct rb_node tree_entry;
1: + struct rb_node pi_tree_entry;
1: + struct task_struct *task;
1: + struct rt_mutex *lock;
1: + int prio;
1: + u64 deadline;
1: };
1:
1: struct rt_mutex {
1: - raw_spinlock_t wait_lock;
1: - struct rb_root_cached waiters;
1: - struct task_struct *owner;
1: + raw_spinlock_t wait_lock;
1: + struct rb_root_cached waiters;
1: + struct task_struct *owner;
1: };
1:
1: enum rtmutex_chainwalk {
1: - RT_MUTEX_MIN_CHAINWALK = 0,
1: - RT_MUTEX_FULL_CHAINWALK = 1,
1: + RT_MUTEX_MIN_CHAINWALK = 0,
1: + RT_MUTEX_FULL_CHAINWALK = 1,
1: };
1:
1: struct task_struct___2;
1:
1: struct pm_qos_request {
1: - struct plist_node node;
1: - struct pm_qos_constraints *qos;
1: + struct plist_node node;
1: + struct pm_qos_constraints *qos;
1: };
1:
1: enum pm_qos_req_action {
1: - PM_QOS_ADD_REQ = 0,
1: - PM_QOS_UPDATE_REQ = 1,
1: - PM_QOS_REMOVE_REQ = 2,
1: + PM_QOS_ADD_REQ = 0,
1: + PM_QOS_UPDATE_REQ = 1,
1: + PM_QOS_REMOVE_REQ = 2,
1: };
1:
1: typedef int suspend_state_t;
1:
1: enum suspend_stat_step {
1: - SUSPEND_FREEZE = 1,
1: - SUSPEND_PREPARE = 2,
1: - SUSPEND_SUSPEND = 3,
1: - SUSPEND_SUSPEND_LATE = 4,
1: - SUSPEND_SUSPEND_NOIRQ = 5,
1: - SUSPEND_RESUME_NOIRQ = 6,
1: - SUSPEND_RESUME_EARLY = 7,
1: - SUSPEND_RESUME = 8,
1: + SUSPEND_FREEZE = 1,
1: + SUSPEND_PREPARE = 2,
1: + SUSPEND_SUSPEND = 3,
1: + SUSPEND_SUSPEND_LATE = 4,
1: + SUSPEND_SUSPEND_NOIRQ = 5,
1: + SUSPEND_RESUME_NOIRQ = 6,
1: + SUSPEND_RESUME_EARLY = 7,
1: + SUSPEND_RESUME = 8,
1: };
1:
1: struct suspend_stats {
1: - int success;
1: - int fail;
1: - int failed_freeze;
1: - int failed_prepare;
1: - int failed_suspend;
1: - int failed_suspend_late;
1: - int failed_suspend_noirq;
1: - int failed_resume;
1: - int failed_resume_early;
1: - int failed_resume_noirq;
1: - int last_failed_dev;
1: - char failed_devs[80];
1: - int last_failed_errno;
1: - int errno[2];
1: - int last_failed_step;
1: - enum suspend_stat_step failed_steps[2];
1: -};
1: -
1: -enum {
1: - TEST_NONE = 0,
1: - TEST_CORE = 1,
1: - TEST_CPUS = 2,
1: - TEST_PLATFORM = 3,
1: - TEST_DEVICES = 4,
1: - TEST_FREEZER = 5,
1: - __TEST_AFTER_LAST = 6,
1: + int success;
1: + int fail;
1: + int failed_freeze;
1: + int failed_prepare;
1: + int failed_suspend;
1: + int failed_suspend_late;
1: + int failed_suspend_noirq;
1: + int failed_resume;
1: + int failed_resume_early;
1: + int failed_resume_noirq;
1: + int last_failed_dev;
1: + char failed_devs[80];
1: + int last_failed_errno;
1: + int errno[2];
1: + int last_failed_step;
1: + enum suspend_stat_step failed_steps[2];
1: +};
1: +
1: +enum {
1: + TEST_NONE = 0,
1: + TEST_CORE = 1,
1: + TEST_CPUS = 2,
1: + TEST_PLATFORM = 3,
1: + TEST_DEVICES = 4,
1: + TEST_FREEZER = 5,
1: + __TEST_AFTER_LAST = 6,
1: };
1:
1: struct pm_vt_switch {
1: - struct list_head head;
1: - struct device *dev;
1: - bool required;
1: + struct list_head head;
1: + struct device *dev;
1: + bool required;
1: };
1:
1: struct platform_suspend_ops {
1: - int (*valid)(suspend_state_t);
1: - int (*begin)(suspend_state_t);
1: - int (*prepare)();
1: - int (*prepare_late)();
1: - int (*enter)(suspend_state_t);
1: - void (*wake)();
1: - void (*finish)();
1: - bool (*suspend_again)();
1: - void (*end)();
1: - void (*recover)();
1: + int (*valid)(suspend_state_t);
1: + int (*begin)(suspend_state_t);
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + int (*enter)(suspend_state_t);
1: + void (*wake)();
1: + void (*finish)();
1: + bool (*suspend_again)();
1: + void (*end)();
1: + void (*recover)();
1: };
1:
1: struct platform_s2idle_ops {
1: - int (*begin)();
1: - int (*prepare)();
1: - int (*prepare_late)();
1: - bool (*wake)();
1: - void (*restore_early)();
1: - void (*restore)();
1: - void (*end)();
1: + int (*begin)();
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + bool (*wake)();
1: + void (*restore_early)();
1: + void (*restore)();
1: + void (*end)();
1: };
1:
1: struct platform_hibernation_ops {
1: - int (*begin)(pm_message_t);
1: - void (*end)();
1: - int (*pre_snapshot)();
1: - void (*finish)();
1: - int (*prepare)();
1: - int (*enter)();
1: - void (*leave)();
1: - int (*pre_restore)();
1: - void (*restore_cleanup)();
1: - void (*recover)();
1: + int (*begin)(pm_message_t);
1: + void (*end)();
1: + int (*pre_snapshot)();
1: + void (*finish)();
1: + int (*prepare)();
1: + int (*enter)();
1: + void (*leave)();
1: + int (*pre_restore)();
1: + void (*restore_cleanup)();
1: + void (*recover)();
1: };
1:
1: enum {
1: - HIBERNATION_INVALID = 0,
1: - HIBERNATION_PLATFORM = 1,
1: - HIBERNATION_SHUTDOWN = 2,
1: - HIBERNATION_REBOOT = 3,
1: - HIBERNATION_SUSPEND = 4,
1: - HIBERNATION_TEST_RESUME = 5,
1: - __HIBERNATION_AFTER_LAST = 6,
1: + HIBERNATION_INVALID = 0,
1: + HIBERNATION_PLATFORM = 1,
1: + HIBERNATION_SHUTDOWN = 2,
1: + HIBERNATION_REBOOT = 3,
1: + HIBERNATION_SUSPEND = 4,
1: + HIBERNATION_TEST_RESUME = 5,
1: + __HIBERNATION_AFTER_LAST = 6,
1: };
1:
1: struct swsusp_info {
1: - struct new_utsname uts;
1: - u32 version_code;
1: - long unsigned int num_physpages;
1: - int cpus;
1: - long unsigned int image_pages;
1: - long unsigned int pages;
1: - long unsigned int size;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct new_utsname uts;
1: + u32 version_code;
1: + long unsigned int num_physpages;
1: + int cpus;
1: + long unsigned int image_pages;
1: + long unsigned int pages;
1: + long unsigned int size;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct snapshot_handle {
1: - unsigned int cur;
1: - void *buffer;
1: - int sync_read;
1: + unsigned int cur;
1: + void *buffer;
1: + int sync_read;
1: };
1:
1: struct linked_page {
1: - struct linked_page *next;
1: - char data[4088];
1: + struct linked_page *next;
1: + char data[4088];
1: };
1:
1: struct chain_allocator {
1: - struct linked_page *chain;
1: - unsigned int used_space;
1: - gfp_t gfp_mask;
1: - int safe_needed;
1: + struct linked_page *chain;
1: + unsigned int used_space;
1: + gfp_t gfp_mask;
1: + int safe_needed;
1: };
1:
1: struct rtree_node {
1: - struct list_head list;
1: - long unsigned int *data;
1: + struct list_head list;
1: + long unsigned int *data;
1: };
1:
1: struct mem_zone_bm_rtree {
1: - struct list_head list;
1: - struct list_head nodes;
1: - struct list_head leaves;
1: - long unsigned int start_pfn;
1: - long unsigned int end_pfn;
1: - struct rtree_node *rtree;
1: - int levels;
1: - unsigned int blocks;
1: + struct list_head list;
1: + struct list_head nodes;
1: + struct list_head leaves;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + struct rtree_node *rtree;
1: + int levels;
1: + unsigned int blocks;
1: };
1:
1: struct bm_position {
1: - struct mem_zone_bm_rtree *zone;
1: - struct rtree_node *node;
1: - long unsigned int node_pfn;
1: - int node_bit;
1: + struct mem_zone_bm_rtree *zone;
1: + struct rtree_node *node;
1: + long unsigned int node_pfn;
1: + int node_bit;
1: };
1:
1: struct memory_bitmap {
1: - struct list_head zones;
1: - struct linked_page *p_list;
1: - struct bm_position cur;
1: + struct list_head zones;
1: + struct linked_page *p_list;
1: + struct bm_position cur;
1: };
1:
1: struct mem_extent {
1: - struct list_head hook;
1: - long unsigned int start;
1: - long unsigned int end;
1: + struct list_head hook;
1: + long unsigned int start;
1: + long unsigned int end;
1: };
1:
1: struct nosave_region {
1: - struct list_head list;
1: - long unsigned int start_pfn;
1: - long unsigned int end_pfn;
1: + struct list_head list;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: };
1:
1: enum {
1: - BIO_NO_PAGE_REF = 0,
1: - BIO_CLONED = 1,
1: - BIO_BOUNCED = 2,
1: - BIO_WORKINGSET = 3,
1: - BIO_QUIET = 4,
1: - BIO_CHAIN = 5,
1: - BIO_REFFED = 6,
1: - BIO_THROTTLED = 7,
1: - BIO_TRACE_COMPLETION = 8,
1: - BIO_CGROUP_ACCT = 9,
1: - BIO_TRACKED = 10,
1: - BIO_FLAG_LAST = 11,
1: + BIO_NO_PAGE_REF = 0,
1: + BIO_CLONED = 1,
1: + BIO_BOUNCED = 2,
1: + BIO_WORKINGSET = 3,
1: + BIO_QUIET = 4,
1: + BIO_CHAIN = 5,
1: + BIO_REFFED = 6,
1: + BIO_THROTTLED = 7,
1: + BIO_TRACE_COMPLETION = 8,
1: + BIO_CGROUP_ACCT = 9,
1: + BIO_TRACKED = 10,
1: + BIO_FLAG_LAST = 11,
1: };
1:
1: enum req_opf {
1: - REQ_OP_READ = 0,
1: - REQ_OP_WRITE = 1,
1: - REQ_OP_FLUSH = 2,
1: - REQ_OP_DISCARD = 3,
1: - REQ_OP_SECURE_ERASE = 5,
1: - REQ_OP_WRITE_SAME = 7,
1: - REQ_OP_WRITE_ZEROES = 9,
1: - REQ_OP_ZONE_OPEN = 10,
1: - REQ_OP_ZONE_CLOSE = 11,
1: - REQ_OP_ZONE_FINISH = 12,
1: - REQ_OP_ZONE_APPEND = 13,
1: - REQ_OP_ZONE_RESET = 15,
1: - REQ_OP_ZONE_RESET_ALL = 17,
1: - REQ_OP_SCSI_IN = 32,
1: - REQ_OP_SCSI_OUT = 33,
1: - REQ_OP_DRV_IN = 34,
1: - REQ_OP_DRV_OUT = 35,
1: - REQ_OP_LAST = 36,
1: + REQ_OP_READ = 0,
1: + REQ_OP_WRITE = 1,
1: + REQ_OP_FLUSH = 2,
1: + REQ_OP_DISCARD = 3,
1: + REQ_OP_SECURE_ERASE = 5,
1: + REQ_OP_WRITE_SAME = 7,
1: + REQ_OP_WRITE_ZEROES = 9,
1: + REQ_OP_ZONE_OPEN = 10,
1: + REQ_OP_ZONE_CLOSE = 11,
1: + REQ_OP_ZONE_FINISH = 12,
1: + REQ_OP_ZONE_APPEND = 13,
1: + REQ_OP_ZONE_RESET = 15,
1: + REQ_OP_ZONE_RESET_ALL = 17,
1: + REQ_OP_SCSI_IN = 32,
1: + REQ_OP_SCSI_OUT = 33,
1: + REQ_OP_DRV_IN = 34,
1: + REQ_OP_DRV_OUT = 35,
1: + REQ_OP_LAST = 36,
1: };
1:
1: enum req_flag_bits {
1: - __REQ_FAILFAST_DEV = 8,
1: - __REQ_FAILFAST_TRANSPORT = 9,
1: - __REQ_FAILFAST_DRIVER = 10,
1: - __REQ_SYNC = 11,
1: - __REQ_META = 12,
1: - __REQ_PRIO = 13,
1: - __REQ_NOMERGE = 14,
1: - __REQ_IDLE = 15,
1: - __REQ_INTEGRITY = 16,
1: - __REQ_FUA = 17,
1: - __REQ_PREFLUSH = 18,
1: - __REQ_RAHEAD = 19,
1: - __REQ_BACKGROUND = 20,
1: - __REQ_NOWAIT = 21,
1: - __REQ_CGROUP_PUNT = 22,
1: - __REQ_NOUNMAP = 23,
1: - __REQ_HIPRI = 24,
1: - __REQ_DRV = 25,
1: - __REQ_SWAP = 26,
1: - __REQ_NR_BITS = 27,
1: + __REQ_FAILFAST_DEV = 8,
1: + __REQ_FAILFAST_TRANSPORT = 9,
1: + __REQ_FAILFAST_DRIVER = 10,
1: + __REQ_SYNC = 11,
1: + __REQ_META = 12,
1: + __REQ_PRIO = 13,
1: + __REQ_NOMERGE = 14,
1: + __REQ_IDLE = 15,
1: + __REQ_INTEGRITY = 16,
1: + __REQ_FUA = 17,
1: + __REQ_PREFLUSH = 18,
1: + __REQ_RAHEAD = 19,
1: + __REQ_BACKGROUND = 20,
1: + __REQ_NOWAIT = 21,
1: + __REQ_CGROUP_PUNT = 22,
1: + __REQ_NOUNMAP = 23,
1: + __REQ_HIPRI = 24,
1: + __REQ_DRV = 25,
1: + __REQ_SWAP = 26,
1: + __REQ_NR_BITS = 27,
1: };
1:
1: struct swap_map_page {
1: - sector_t entries[511];
1: - sector_t next_swap;
1: + sector_t entries[511];
1: + sector_t next_swap;
1: };
1:
1: struct swap_map_page_list {
1: - struct swap_map_page *map;
1: - struct swap_map_page_list *next;
1: + struct swap_map_page *map;
1: + struct swap_map_page_list *next;
1: };
1:
1: struct swap_map_handle {
1: - struct swap_map_page *cur;
1: - struct swap_map_page_list *maps;
1: - sector_t cur_swap;
1: - sector_t first_sector;
1: - unsigned int k;
1: - long unsigned int reqd_free_pages;
1: - u32 crc32;
1: + struct swap_map_page *cur;
1: + struct swap_map_page_list *maps;
1: + sector_t cur_swap;
1: + sector_t first_sector;
1: + unsigned int k;
1: + long unsigned int reqd_free_pages;
1: + u32 crc32;
1: };
1:
1: struct swsusp_header {
1: - char reserved[4060];
1: - u32 crc32;
1: - sector_t image;
1: - unsigned int flags;
1: - char orig_sig[10];
1: - char sig[10];
1: + char reserved[4060];
1: + u32 crc32;
1: + sector_t image;
1: + unsigned int flags;
1: + char orig_sig[10];
1: + char sig[10];
1: };
1:
1: struct swsusp_extent {
1: - struct rb_node node;
1: - long unsigned int start;
1: - long unsigned int end;
1: + struct rb_node node;
1: + long unsigned int start;
1: + long unsigned int end;
1: };
1:
1: struct hib_bio_batch {
1: - atomic_t count;
1: - wait_queue_head_t wait;
1: - blk_status_t error;
1: - struct blk_plug plug;
1: + atomic_t count;
1: + wait_queue_head_t wait;
1: + blk_status_t error;
1: + struct blk_plug plug;
1: };
1:
1: struct crc_data {
1: - struct task_struct *thr;
1: - atomic_t ready;
1: - atomic_t stop;
1: - unsigned int run_threads;
1: - wait_queue_head_t go;
1: - wait_queue_head_t done;
1: - u32 *crc32;
1: - size_t *unc_len[3];
1: - unsigned char *unc[3];
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + unsigned int run_threads;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + u32 *crc32;
1: + size_t *unc_len[3];
1: + unsigned char *unc[3];
1: };
1:
1: struct cmp_data {
1: - struct task_struct *thr;
1: - atomic_t ready;
1: - atomic_t stop;
1: - int ret;
1: - wait_queue_head_t go;
1: - wait_queue_head_t done;
1: - size_t unc_len;
1: - size_t cmp_len;
1: - unsigned char unc[131072];
1: - unsigned char cmp[143360];
1: - unsigned char wrk[16384];
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[131072];
1: + unsigned char cmp[143360];
1: + unsigned char wrk[16384];
1: };
1:
1: struct dec_data {
1: - struct task_struct *thr;
1: - atomic_t ready;
1: - atomic_t stop;
1: - int ret;
1: - wait_queue_head_t go;
1: - wait_queue_head_t done;
1: - size_t unc_len;
1: - size_t cmp_len;
1: - unsigned char unc[131072];
1: - unsigned char cmp[143360];
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[131072];
1: + unsigned char cmp[143360];
1: };
1:
1: typedef s64 compat_loff_t;
1:
1: struct resume_swap_area {
1: - __kernel_loff_t offset;
1: - __u32 dev;
1: + __kernel_loff_t offset;
1: + __u32 dev;
1: } __attribute__((packed));
1:
1: struct snapshot_data {
1: - struct snapshot_handle handle;
1: - int swap;
1: - int mode;
1: - bool frozen;
1: - bool ready;
1: - bool platform_support;
1: - bool free_bitmaps;
1: - dev_t dev;
1: + struct snapshot_handle handle;
1: + int swap;
1: + int mode;
1: + bool frozen;
1: + bool ready;
1: + bool platform_support;
1: + bool free_bitmaps;
1: + dev_t dev;
1: };
1:
1: struct compat_resume_swap_area {
1: - compat_loff_t offset;
1: - u32 dev;
1: + compat_loff_t offset;
1: + u32 dev;
1: } __attribute__((packed));
1:
1: struct sysrq_key_op {
1: - void (* const handler)(int);
1: - const char * const help_msg;
1: - const char * const action_msg;
1: - const int enable_mask;
1: + void (*const handler)(int);
1: + const char *const help_msg;
1: + const char *const action_msg;
1: + const int enable_mask;
1: };
1:
1: struct em_data_callback {
1: - int (*active_power)(long unsigned int *, long unsigned int *, struct device *);
1: + int (*active_power)(long unsigned int *, long unsigned int *,
1: + struct device *);
1: };
1:
1: struct dev_printk_info {
1: - char subsystem[16];
1: - char device[48];
1: + char subsystem[16];
1: + char device[48];
1: };
1:
1: struct console {
1: - char name[16];
1: - void (*write)(struct console *, const char *, unsigned int);
1: - int (*read)(struct console *, char *, unsigned int);
1: - struct tty_driver * (*device)(struct console *, int *);
1: - void (*unblank)();
1: - int (*setup)(struct console *, char *);
1: - int (*exit)(struct console *);
1: - int (*match)(struct console *, char *, int, char *);
1: - short int flags;
1: - short int index;
1: - int cflag;
1: - void *data;
1: - struct console *next;
1: + char name[16];
1: + void (*write)(struct console *, const char *, unsigned int);
1: + int (*read)(struct console *, char *, unsigned int);
1: + struct tty_driver *(*device)(struct console *, int *);
1: + void (*unblank)();
1: + int (*setup)(struct console *, char *);
1: + int (*exit)(struct console *);
1: + int (*match)(struct console *, char *, int, char *);
1: + short int flags;
1: + short int index;
1: + int cflag;
1: + void *data;
1: + struct console *next;
1: };
1:
1: struct kmsg_dumper {
1: - struct list_head list;
1: - void (*dump)(struct kmsg_dumper *, enum kmsg_dump_reason);
1: - enum kmsg_dump_reason max_reason;
1: - bool active;
1: - bool registered;
1: - u32 cur_idx;
1: - u32 next_idx;
1: - u64 cur_seq;
1: - u64 next_seq;
1: + struct list_head list;
1: + void (*dump)(struct kmsg_dumper *, enum kmsg_dump_reason);
1: + enum kmsg_dump_reason max_reason;
1: + bool active;
1: + bool registered;
1: + u32 cur_idx;
1: + u32 next_idx;
1: + u64 cur_seq;
1: + u64 next_seq;
1: };
1:
1: struct trace_event_raw_console {
1: - struct trace_entry ent;
1: - u32 __data_loc_msg;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_console {
1: - u32 msg;
1: + u32 msg;
1: };
1:
1: typedef void (*btf_trace_console)(void *, const char *, size_t);
1:
1: struct printk_info {
1: - u64 seq;
1: - u64 ts_nsec;
1: - u16 text_len;
1: - u8 facility;
1: - u8 flags: 5;
1: - u8 level: 3;
1: - u32 caller_id;
1: - struct dev_printk_info dev_info;
1: + u64 seq;
1: + u64 ts_nsec;
1: + u16 text_len;
1: + u8 facility;
1: + u8 flags : 5;
1: + u8 level : 3;
1: + u32 caller_id;
1: + struct dev_printk_info dev_info;
1: };
1:
1: struct printk_record {
1: - struct printk_info *info;
1: - char *text_buf;
1: - unsigned int text_buf_size;
1: + struct printk_info *info;
1: + char *text_buf;
1: + unsigned int text_buf_size;
1: };
1:
1: struct prb_data_blk_lpos {
1: - long unsigned int begin;
1: - long unsigned int next;
1: + long unsigned int begin;
1: + long unsigned int next;
1: };
1:
1: struct prb_desc {
1: - atomic_long_t state_var;
1: - struct prb_data_blk_lpos text_blk_lpos;
1: + atomic_long_t state_var;
1: + struct prb_data_blk_lpos text_blk_lpos;
1: };
1:
1: struct prb_data_ring {
1: - unsigned int size_bits;
1: - char *data;
1: - atomic_long_t head_lpos;
1: - atomic_long_t tail_lpos;
1: + unsigned int size_bits;
1: + char *data;
1: + atomic_long_t head_lpos;
1: + atomic_long_t tail_lpos;
1: };
1:
1: struct prb_desc_ring {
1: - unsigned int count_bits;
1: - struct prb_desc *descs;
1: - struct printk_info *infos;
1: - atomic_long_t head_id;
1: - atomic_long_t tail_id;
1: + unsigned int count_bits;
1: + struct prb_desc *descs;
1: + struct printk_info *infos;
1: + atomic_long_t head_id;
1: + atomic_long_t tail_id;
1: };
1:
1: struct printk_ringbuffer {
1: - struct prb_desc_ring desc_ring;
1: - struct prb_data_ring text_data_ring;
1: - atomic_long_t fail;
1: + struct prb_desc_ring desc_ring;
1: + struct prb_data_ring text_data_ring;
1: + atomic_long_t fail;
1: };
1:
1: struct prb_reserved_entry {
1: - struct printk_ringbuffer *rb;
1: - long unsigned int irqflags;
1: - long unsigned int id;
1: - unsigned int text_space;
1: + struct printk_ringbuffer *rb;
1: + long unsigned int irqflags;
1: + long unsigned int id;
1: + unsigned int text_space;
1: };
1:
1: enum desc_state {
1: - desc_miss = 4294967295,
1: - desc_reserved = 0,
1: - desc_committed = 1,
1: - desc_finalized = 2,
1: - desc_reusable = 3,
1: + desc_miss = 4294967295,
1: + desc_reserved = 0,
1: + desc_committed = 1,
1: + desc_finalized = 2,
1: + desc_reusable = 3,
1: };
1:
1: struct console_cmdline {
1: - char name[16];
1: - int index;
1: - bool user_specified;
1: - char *options;
1: - char *brl_options;
1: + char name[16];
1: + int index;
1: + bool user_specified;
1: + char *options;
1: + char *brl_options;
1: };
1:
1: enum devkmsg_log_bits {
1: - __DEVKMSG_LOG_BIT_ON = 0,
1: - __DEVKMSG_LOG_BIT_OFF = 1,
1: - __DEVKMSG_LOG_BIT_LOCK = 2,
1: + __DEVKMSG_LOG_BIT_ON = 0,
1: + __DEVKMSG_LOG_BIT_OFF = 1,
1: + __DEVKMSG_LOG_BIT_LOCK = 2,
1: };
1:
1: enum devkmsg_log_masks {
1: - DEVKMSG_LOG_MASK_ON = 1,
1: - DEVKMSG_LOG_MASK_OFF = 2,
1: - DEVKMSG_LOG_MASK_LOCK = 4,
1: + DEVKMSG_LOG_MASK_ON = 1,
1: + DEVKMSG_LOG_MASK_OFF = 2,
1: + DEVKMSG_LOG_MASK_LOCK = 4,
1: };
1:
1: enum con_msg_format_flags {
1: - MSG_FORMAT_DEFAULT = 0,
1: - MSG_FORMAT_SYSLOG = 1,
1: + MSG_FORMAT_DEFAULT = 0,
1: + MSG_FORMAT_SYSLOG = 1,
1: };
1:
1: enum log_flags {
1: - LOG_NEWLINE = 2,
1: - LOG_CONT = 8,
1: + LOG_NEWLINE = 2,
1: + LOG_CONT = 8,
1: };
1:
1: struct devkmsg_user {
1: - u64 seq;
1: - struct ratelimit_state rs;
1: - struct mutex lock;
1: - char buf[8192];
1: - struct printk_info info;
1: - char text_buf[8192];
1: - struct printk_record record;
1: + u64 seq;
1: + struct ratelimit_state rs;
1: + struct mutex lock;
1: + char buf[8192];
1: + struct printk_info info;
1: + char text_buf[8192];
1: + struct printk_record record;
1: };
1:
1: struct printk_safe_seq_buf {
1: - atomic_t len;
1: - atomic_t message_lost;
1: - struct irq_work work;
1: - unsigned char buffer[8160];
1: + atomic_t len;
1: + atomic_t message_lost;
1: + struct irq_work work;
1: + unsigned char buffer[8160];
1: };
1:
1: struct prb_data_block {
1: - long unsigned int id;
1: - char data[0];
1: + long unsigned int id;
1: + char data[0];
1: };
1:
1: enum {
1: - IRQS_AUTODETECT = 1,
1: - IRQS_SPURIOUS_DISABLED = 2,
1: - IRQS_POLL_INPROGRESS = 8,
1: - IRQS_ONESHOT = 32,
1: - IRQS_REPLAY = 64,
1: - IRQS_WAITING = 128,
1: - IRQS_PENDING = 512,
1: - IRQS_SUSPENDED = 2048,
1: - IRQS_TIMINGS = 4096,
1: - IRQS_NMI = 8192,
1: + IRQS_AUTODETECT = 1,
1: + IRQS_SPURIOUS_DISABLED = 2,
1: + IRQS_POLL_INPROGRESS = 8,
1: + IRQS_ONESHOT = 32,
1: + IRQS_REPLAY = 64,
1: + IRQS_WAITING = 128,
1: + IRQS_PENDING = 512,
1: + IRQS_SUSPENDED = 2048,
1: + IRQS_TIMINGS = 4096,
1: + IRQS_NMI = 8192,
1: };
1:
1: enum {
1: - _IRQ_DEFAULT_INIT_FLAGS = 0,
1: - _IRQ_PER_CPU = 512,
1: - _IRQ_LEVEL = 256,
1: - _IRQ_NOPROBE = 1024,
1: - _IRQ_NOREQUEST = 2048,
1: - _IRQ_NOTHREAD = 65536,
1: - _IRQ_NOAUTOEN = 4096,
1: - _IRQ_MOVE_PCNTXT = 16384,
1: - _IRQ_NO_BALANCING = 8192,
1: - _IRQ_NESTED_THREAD = 32768,
1: - _IRQ_PER_CPU_DEVID = 131072,
1: - _IRQ_IS_POLLED = 262144,
1: - _IRQ_DISABLE_UNLAZY = 524288,
1: - _IRQ_HIDDEN = 1048576,
1: - _IRQF_MODIFY_MASK = 2096911,
1: + _IRQ_DEFAULT_INIT_FLAGS = 0,
1: + _IRQ_PER_CPU = 512,
1: + _IRQ_LEVEL = 256,
1: + _IRQ_NOPROBE = 1024,
1: + _IRQ_NOREQUEST = 2048,
1: + _IRQ_NOTHREAD = 65536,
1: + _IRQ_NOAUTOEN = 4096,
1: + _IRQ_MOVE_PCNTXT = 16384,
1: + _IRQ_NO_BALANCING = 8192,
1: + _IRQ_NESTED_THREAD = 32768,
1: + _IRQ_PER_CPU_DEVID = 131072,
1: + _IRQ_IS_POLLED = 262144,
1: + _IRQ_DISABLE_UNLAZY = 524288,
1: + _IRQ_HIDDEN = 1048576,
1: + _IRQF_MODIFY_MASK = 2096911,
1: };
1:
1: enum {
1: - IRQTF_RUNTHREAD = 0,
1: - IRQTF_WARNED = 1,
1: - IRQTF_AFFINITY = 2,
1: - IRQTF_FORCED_THREAD = 3,
1: + IRQTF_RUNTHREAD = 0,
1: + IRQTF_WARNED = 1,
1: + IRQTF_AFFINITY = 2,
1: + IRQTF_FORCED_THREAD = 3,
1: };
1:
1: enum {
1: - IRQ_SET_MASK_OK = 0,
1: - IRQ_SET_MASK_OK_NOCOPY = 1,
1: - IRQ_SET_MASK_OK_DONE = 2,
1: + IRQ_SET_MASK_OK = 0,
1: + IRQ_SET_MASK_OK_NOCOPY = 1,
1: + IRQ_SET_MASK_OK_DONE = 2,
1: };
1:
1: enum {
1: - IRQCHIP_SET_TYPE_MASKED = 1,
1: - IRQCHIP_EOI_IF_HANDLED = 2,
1: - IRQCHIP_MASK_ON_SUSPEND = 4,
1: - IRQCHIP_ONOFFLINE_ENABLED = 8,
1: - IRQCHIP_SKIP_SET_WAKE = 16,
1: - IRQCHIP_ONESHOT_SAFE = 32,
1: - IRQCHIP_EOI_THREADED = 64,
1: - IRQCHIP_SUPPORTS_LEVEL_MSI = 128,
1: - IRQCHIP_SUPPORTS_NMI = 256,
1: - IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND = 512,
1: + IRQCHIP_SET_TYPE_MASKED = 1,
1: + IRQCHIP_EOI_IF_HANDLED = 2,
1: + IRQCHIP_MASK_ON_SUSPEND = 4,
1: + IRQCHIP_ONOFFLINE_ENABLED = 8,
1: + IRQCHIP_SKIP_SET_WAKE = 16,
1: + IRQCHIP_ONESHOT_SAFE = 32,
1: + IRQCHIP_EOI_THREADED = 64,
1: + IRQCHIP_SUPPORTS_LEVEL_MSI = 128,
1: + IRQCHIP_SUPPORTS_NMI = 256,
1: + IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND = 512,
1: };
1:
1: enum {
1: - IRQC_IS_HARDIRQ = 0,
1: - IRQC_IS_NESTED = 1,
1: + IRQC_IS_HARDIRQ = 0,
1: + IRQC_IS_NESTED = 1,
1: };
1:
1: enum {
1: - IRQ_STARTUP_NORMAL = 0,
1: - IRQ_STARTUP_MANAGED = 1,
1: - IRQ_STARTUP_ABORT = 2,
1: + IRQ_STARTUP_NORMAL = 0,
1: + IRQ_STARTUP_MANAGED = 1,
1: + IRQ_STARTUP_ABORT = 2,
1: };
1:
1: struct irq_devres {
1: - unsigned int irq;
1: - void *dev_id;
1: + unsigned int irq;
1: + void *dev_id;
1: };
1:
1: struct irq_desc_devres {
1: - unsigned int from;
1: - unsigned int cnt;
1: + unsigned int from;
1: + unsigned int cnt;
1: };
1:
1: struct irq_generic_chip_devres {
1: - struct irq_chip_generic *gc;
1: - u32 msk;
1: - unsigned int clr;
1: - unsigned int set;
1: + struct irq_chip_generic *gc;
1: + u32 msk;
1: + unsigned int clr;
1: + unsigned int set;
1: };
1:
1: enum {
1: - IRQ_DOMAIN_FLAG_HIERARCHY = 1,
1: - IRQ_DOMAIN_NAME_ALLOCATED = 2,
1: - IRQ_DOMAIN_FLAG_IPI_PER_CPU = 4,
1: - IRQ_DOMAIN_FLAG_IPI_SINGLE = 8,
1: - IRQ_DOMAIN_FLAG_MSI = 16,
1: - IRQ_DOMAIN_FLAG_MSI_REMAP = 32,
1: - IRQ_DOMAIN_MSI_NOMASK_QUIRK = 64,
1: - IRQ_DOMAIN_FLAG_NONCORE = 65536,
1: + IRQ_DOMAIN_FLAG_HIERARCHY = 1,
1: + IRQ_DOMAIN_NAME_ALLOCATED = 2,
1: + IRQ_DOMAIN_FLAG_IPI_PER_CPU = 4,
1: + IRQ_DOMAIN_FLAG_IPI_SINGLE = 8,
1: + IRQ_DOMAIN_FLAG_MSI = 16,
1: + IRQ_DOMAIN_FLAG_MSI_REMAP = 32,
1: + IRQ_DOMAIN_MSI_NOMASK_QUIRK = 64,
1: + IRQ_DOMAIN_FLAG_NONCORE = 65536,
1: };
1:
1: enum {
1: - IRQCHIP_FWNODE_REAL = 0,
1: - IRQCHIP_FWNODE_NAMED = 1,
1: - IRQCHIP_FWNODE_NAMED_ID = 2,
1: + IRQCHIP_FWNODE_REAL = 0,
1: + IRQCHIP_FWNODE_NAMED = 1,
1: + IRQCHIP_FWNODE_NAMED_ID = 2,
1: };
1:
1: struct irqchip_fwid {
1: - struct fwnode_handle fwnode;
1: - unsigned int type;
1: - char *name;
1: - phys_addr_t *pa;
1: + struct fwnode_handle fwnode;
1: + unsigned int type;
1: + char *name;
1: + phys_addr_t *pa;
1: };
1:
1: enum {
1: - AFFINITY = 0,
1: - AFFINITY_LIST = 1,
1: - EFFECTIVE = 2,
1: - EFFECTIVE_LIST = 3,
1: + AFFINITY = 0,
1: + AFFINITY_LIST = 1,
1: + EFFECTIVE = 2,
1: + EFFECTIVE_LIST = 3,
1: };
1:
1: struct msi_alloc_info {
1: - struct msi_desc *desc;
1: - irq_hw_number_t hwirq;
1: - union {
1: - long unsigned int ul;
1: - void *ptr;
1: - } scratchpad[2];
1: + struct msi_desc *desc;
1: + irq_hw_number_t hwirq;
1: + union {
1: + long unsigned int ul;
1: + void *ptr;
1: + } scratchpad[2];
1: };
1:
1: typedef struct msi_alloc_info msi_alloc_info_t;
1: @@ -24289,67 +24570,70 @@ typedef struct msi_alloc_info msi_alloc_info_t;
1: struct msi_domain_info;
1:
1: struct msi_domain_ops {
1: - irq_hw_number_t (*get_hwirq)(struct msi_domain_info *, msi_alloc_info_t *);
1: - int (*msi_init)(struct irq_domain *, struct msi_domain_info *, unsigned int, irq_hw_number_t, msi_alloc_info_t *);
1: - void (*msi_free)(struct irq_domain *, struct msi_domain_info *, unsigned int);
1: - int (*msi_check)(struct irq_domain *, struct msi_domain_info *, struct device *);
1: - int (*msi_prepare)(struct irq_domain *, struct device *, int, msi_alloc_info_t *);
1: - void (*msi_finish)(msi_alloc_info_t *, int);
1: - void (*set_desc)(msi_alloc_info_t *, struct msi_desc *);
1: - int (*handle_error)(struct irq_domain *, struct msi_desc *, int);
1: - int (*domain_alloc_irqs)(struct irq_domain *, struct device *, int);
1: - void (*domain_free_irqs)(struct irq_domain *, struct device *);
1: + irq_hw_number_t (*get_hwirq)(struct msi_domain_info *, msi_alloc_info_t *);
1: + int (*msi_init)(struct irq_domain *, struct msi_domain_info *, unsigned int,
1: + irq_hw_number_t, msi_alloc_info_t *);
1: + void (*msi_free)(struct irq_domain *, struct msi_domain_info *, unsigned int);
1: + int (*msi_check)(struct irq_domain *, struct msi_domain_info *,
1: + struct device *);
1: + int (*msi_prepare)(struct irq_domain *, struct device *, int,
1: + msi_alloc_info_t *);
1: + void (*msi_finish)(msi_alloc_info_t *, int);
1: + void (*set_desc)(msi_alloc_info_t *, struct msi_desc *);
1: + int (*handle_error)(struct irq_domain *, struct msi_desc *, int);
1: + int (*domain_alloc_irqs)(struct irq_domain *, struct device *, int);
1: + void (*domain_free_irqs)(struct irq_domain *, struct device *);
1: };
1:
1: struct msi_domain_info {
1: - u32 flags;
1: - struct msi_domain_ops *ops;
1: - struct irq_chip *chip;
1: - void *chip_data;
1: - irq_flow_handler_t handler;
1: - void *handler_data;
1: - const char *handler_name;
1: - void *data;
1: + u32 flags;
1: + struct msi_domain_ops *ops;
1: + struct irq_chip *chip;
1: + void *chip_data;
1: + irq_flow_handler_t handler;
1: + void *handler_data;
1: + const char *handler_name;
1: + void *data;
1: };
1:
1: enum {
1: - MSI_FLAG_USE_DEF_DOM_OPS = 1,
1: - MSI_FLAG_USE_DEF_CHIP_OPS = 2,
1: - MSI_FLAG_MULTI_PCI_MSI = 4,
1: - MSI_FLAG_PCI_MSIX = 8,
1: - MSI_FLAG_ACTIVATE_EARLY = 16,
1: - MSI_FLAG_MUST_REACTIVATE = 32,
1: - MSI_FLAG_LEVEL_CAPABLE = 64,
1: + MSI_FLAG_USE_DEF_DOM_OPS = 1,
1: + MSI_FLAG_USE_DEF_CHIP_OPS = 2,
1: + MSI_FLAG_MULTI_PCI_MSI = 4,
1: + MSI_FLAG_PCI_MSIX = 8,
1: + MSI_FLAG_ACTIVATE_EARLY = 16,
1: + MSI_FLAG_MUST_REACTIVATE = 32,
1: + MSI_FLAG_LEVEL_CAPABLE = 64,
1: };
1:
1: struct irq_affinity {
1: - unsigned int pre_vectors;
1: - unsigned int post_vectors;
1: - unsigned int nr_sets;
1: - unsigned int set_size[4];
1: - void (*calc_sets)(struct irq_affinity *, unsigned int);
1: - void *priv;
1: + unsigned int pre_vectors;
1: + unsigned int post_vectors;
1: + unsigned int nr_sets;
1: + unsigned int set_size[4];
1: + void (*calc_sets)(struct irq_affinity *, unsigned int);
1: + void *priv;
1: };
1:
1: struct node_vectors {
1: - unsigned int id;
1: - union {
1: - unsigned int nvectors;
1: - unsigned int ncpus;
1: - };
1: + unsigned int id;
1: + union {
1: + unsigned int nvectors;
1: + unsigned int ncpus;
1: + };
1: };
1:
1: typedef void (*call_rcu_func_t)(struct callback_head *, rcu_callback_t);
1:
1: struct rcu_synchronize {
1: - struct callback_head head;
1: - struct completion completion;
1: + struct callback_head head;
1: + struct completion completion;
1: };
1:
1: struct trace_event_raw_rcu_utilization {
1: - struct trace_entry ent;
1: - const char *s;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *s;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_rcu_utilization {};
1: @@ -24371,365 +24655,370 @@ typedef void (*holdouts_func_t)(struct list_head *, bool, bool *);
1: typedef void (*postgp_func_t)(struct rcu_tasks *);
1:
1: struct rcu_tasks {
1: - struct callback_head *cbs_head;
1: - struct callback_head **cbs_tail;
1: - struct wait_queue_head cbs_wq;
1: - raw_spinlock_t cbs_lock;
1: - int gp_state;
1: - int gp_sleep;
1: - int init_fract;
1: - long unsigned int gp_jiffies;
1: - long unsigned int gp_start;
1: - long unsigned int n_gps;
1: - long unsigned int n_ipis;
1: - long unsigned int n_ipis_fails;
1: - struct task_struct *kthread_ptr;
1: - rcu_tasks_gp_func_t gp_func;
1: - pregp_func_t pregp_func;
1: - pertask_func_t pertask_func;
1: - postscan_func_t postscan_func;
1: - holdouts_func_t holdouts_func;
1: - postgp_func_t postgp_func;
1: - call_rcu_func_t call_func;
1: - char *name;
1: - char *kname;
1: -};
1: -
1: -enum {
1: - GP_IDLE = 0,
1: - GP_ENTER = 1,
1: - GP_PASSED = 2,
1: - GP_EXIT = 3,
1: - GP_REPLAY = 4,
1: + struct callback_head *cbs_head;
1: + struct callback_head **cbs_tail;
1: + struct wait_queue_head cbs_wq;
1: + raw_spinlock_t cbs_lock;
1: + int gp_state;
1: + int gp_sleep;
1: + int init_fract;
1: + long unsigned int gp_jiffies;
1: + long unsigned int gp_start;
1: + long unsigned int n_gps;
1: + long unsigned int n_ipis;
1: + long unsigned int n_ipis_fails;
1: + struct task_struct *kthread_ptr;
1: + rcu_tasks_gp_func_t gp_func;
1: + pregp_func_t pregp_func;
1: + pertask_func_t pertask_func;
1: + postscan_func_t postscan_func;
1: + holdouts_func_t holdouts_func;
1: + postgp_func_t postgp_func;
1: + call_rcu_func_t call_func;
1: + char *name;
1: + char *kname;
1: +};
1: +
1: +enum {
1: + GP_IDLE = 0,
1: + GP_ENTER = 1,
1: + GP_PASSED = 2,
1: + GP_EXIT = 3,
1: + GP_REPLAY = 4,
1: };
1:
1: struct rcu_cblist {
1: - struct callback_head *head;
1: - struct callback_head **tail;
1: - long int len;
1: + struct callback_head *head;
1: + struct callback_head **tail;
1: + long int len;
1: };
1:
1: enum rcutorture_type {
1: - RCU_FLAVOR = 0,
1: - RCU_TASKS_FLAVOR = 1,
1: - RCU_TASKS_RUDE_FLAVOR = 2,
1: - RCU_TASKS_TRACING_FLAVOR = 3,
1: - RCU_TRIVIAL_FLAVOR = 4,
1: - SRCU_FLAVOR = 5,
1: - INVALID_RCU_FLAVOR = 6,
1: + RCU_FLAVOR = 0,
1: + RCU_TASKS_FLAVOR = 1,
1: + RCU_TASKS_RUDE_FLAVOR = 2,
1: + RCU_TASKS_TRACING_FLAVOR = 3,
1: + RCU_TRIVIAL_FLAVOR = 4,
1: + SRCU_FLAVOR = 5,
1: + INVALID_RCU_FLAVOR = 6,
1: };
1:
1: enum tick_dep_bits {
1: - TICK_DEP_BIT_POSIX_TIMER = 0,
1: - TICK_DEP_BIT_PERF_EVENTS = 1,
1: - TICK_DEP_BIT_SCHED = 2,
1: - TICK_DEP_BIT_CLOCK_UNSTABLE = 3,
1: - TICK_DEP_BIT_RCU = 4,
1: - TICK_DEP_BIT_RCU_EXP = 5,
1: + TICK_DEP_BIT_POSIX_TIMER = 0,
1: + TICK_DEP_BIT_PERF_EVENTS = 1,
1: + TICK_DEP_BIT_SCHED = 2,
1: + TICK_DEP_BIT_CLOCK_UNSTABLE = 3,
1: + TICK_DEP_BIT_RCU = 4,
1: + TICK_DEP_BIT_RCU_EXP = 5,
1: };
1:
1: struct rcu_exp_work {
1: - long unsigned int rew_s;
1: - struct work_struct rew_work;
1: + long unsigned int rew_s;
1: + struct work_struct rew_work;
1: };
1:
1: struct rcu_node {
1: - raw_spinlock_t lock;
1: - long unsigned int gp_seq;
1: - long unsigned int gp_seq_needed;
1: - long unsigned int completedqs;
1: - long unsigned int qsmask;
1: - long unsigned int rcu_gp_init_mask;
1: - long unsigned int qsmaskinit;
1: - long unsigned int qsmaskinitnext;
1: - long unsigned int expmask;
1: - long unsigned int expmaskinit;
1: - long unsigned int expmaskinitnext;
1: - long unsigned int cbovldmask;
1: - long unsigned int ffmask;
1: - long unsigned int grpmask;
1: - int grplo;
1: - int grphi;
1: - u8 grpnum;
1: - u8 level;
1: - bool wait_blkd_tasks;
1: - struct rcu_node *parent;
1: - struct list_head blkd_tasks;
1: - struct list_head *gp_tasks;
1: - struct list_head *exp_tasks;
1: - struct list_head *boost_tasks;
1: - struct rt_mutex boost_mtx;
1: - long unsigned int boost_time;
1: - struct task_struct *boost_kthread_task;
1: - unsigned int boost_kthread_status;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - raw_spinlock_t fqslock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t exp_lock;
1: - long unsigned int exp_seq_rq;
1: - wait_queue_head_t exp_wq[4];
1: - struct rcu_exp_work rew;
1: - bool exp_need_flush;
1: - long: 56;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + raw_spinlock_t lock;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + long unsigned int completedqs;
1: + long unsigned int qsmask;
1: + long unsigned int rcu_gp_init_mask;
1: + long unsigned int qsmaskinit;
1: + long unsigned int qsmaskinitnext;
1: + long unsigned int expmask;
1: + long unsigned int expmaskinit;
1: + long unsigned int expmaskinitnext;
1: + long unsigned int cbovldmask;
1: + long unsigned int ffmask;
1: + long unsigned int grpmask;
1: + int grplo;
1: + int grphi;
1: + u8 grpnum;
1: + u8 level;
1: + bool wait_blkd_tasks;
1: + struct rcu_node *parent;
1: + struct list_head blkd_tasks;
1: + struct list_head *gp_tasks;
1: + struct list_head *exp_tasks;
1: + struct list_head *boost_tasks;
1: + struct rt_mutex boost_mtx;
1: + long unsigned int boost_time;
1: + struct task_struct *boost_kthread_task;
1: + unsigned int boost_kthread_status;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + raw_spinlock_t fqslock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t exp_lock;
1: + long unsigned int exp_seq_rq;
1: + wait_queue_head_t exp_wq[4];
1: + struct rcu_exp_work rew;
1: + bool exp_need_flush;
1: + long : 56;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: union rcu_noqs {
1: - struct {
1: - u8 norm;
1: - u8 exp;
1: - } b;
1: - u16 s;
1: + struct {
1: + u8 norm;
1: + u8 exp;
1: + } b;
1: + u16 s;
1: };
1:
1: struct rcu_data {
1: - long unsigned int gp_seq;
1: - long unsigned int gp_seq_needed;
1: - union rcu_noqs cpu_no_qs;
1: - bool core_needs_qs;
1: - bool beenonline;
1: - bool gpwrap;
1: - bool exp_deferred_qs;
1: - bool cpu_started;
1: - struct rcu_node *mynode;
1: - long unsigned int grpmask;
1: - long unsigned int ticks_this_gp;
1: - struct irq_work defer_qs_iw;
1: - bool defer_qs_iw_pending;
1: - struct work_struct strict_work;
1: - struct rcu_segcblist cblist;
1: - long int qlen_last_fqs_check;
1: - long unsigned int n_cbs_invoked;
1: - long unsigned int n_force_qs_snap;
1: - long int blimit;
1: - int dynticks_snap;
1: - long int dynticks_nesting;
1: - long int dynticks_nmi_nesting;
1: - atomic_t dynticks;
1: - bool rcu_need_heavy_qs;
1: - bool rcu_urgent_qs;
1: - bool rcu_forced_tick;
1: - bool rcu_forced_tick_exp;
1: - struct callback_head barrier_head;
1: - int exp_dynticks_snap;
1: - struct task_struct *rcu_cpu_kthread_task;
1: - unsigned int rcu_cpu_kthread_status;
1: - char rcu_cpu_has_work;
1: - unsigned int softirq_snap;
1: - struct irq_work rcu_iw;
1: - bool rcu_iw_pending;
1: - long unsigned int rcu_iw_gp_seq;
1: - long unsigned int rcu_ofl_gp_seq;
1: - short int rcu_ofl_gp_flags;
1: - long unsigned int rcu_onl_gp_seq;
1: - short int rcu_onl_gp_flags;
1: - long unsigned int last_fqs_resched;
1: - int cpu;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + union rcu_noqs cpu_no_qs;
1: + bool core_needs_qs;
1: + bool beenonline;
1: + bool gpwrap;
1: + bool exp_deferred_qs;
1: + bool cpu_started;
1: + struct rcu_node *mynode;
1: + long unsigned int grpmask;
1: + long unsigned int ticks_this_gp;
1: + struct irq_work defer_qs_iw;
1: + bool defer_qs_iw_pending;
1: + struct work_struct strict_work;
1: + struct rcu_segcblist cblist;
1: + long int qlen_last_fqs_check;
1: + long unsigned int n_cbs_invoked;
1: + long unsigned int n_force_qs_snap;
1: + long int blimit;
1: + int dynticks_snap;
1: + long int dynticks_nesting;
1: + long int dynticks_nmi_nesting;
1: + atomic_t dynticks;
1: + bool rcu_need_heavy_qs;
1: + bool rcu_urgent_qs;
1: + bool rcu_forced_tick;
1: + bool rcu_forced_tick_exp;
1: + struct callback_head barrier_head;
1: + int exp_dynticks_snap;
1: + struct task_struct *rcu_cpu_kthread_task;
1: + unsigned int rcu_cpu_kthread_status;
1: + char rcu_cpu_has_work;
1: + unsigned int softirq_snap;
1: + struct irq_work rcu_iw;
1: + bool rcu_iw_pending;
1: + long unsigned int rcu_iw_gp_seq;
1: + long unsigned int rcu_ofl_gp_seq;
1: + short int rcu_ofl_gp_flags;
1: + long unsigned int rcu_onl_gp_seq;
1: + short int rcu_onl_gp_flags;
1: + long unsigned int last_fqs_resched;
1: + int cpu;
1: };
1:
1: struct rcu_state {
1: - struct rcu_node node[9];
1: - struct rcu_node *level[3];
1: - int ncpus;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u8 boost;
1: - long unsigned int gp_seq;
1: - long unsigned int gp_max;
1: - struct task_struct *gp_kthread;
1: - struct swait_queue_head gp_wq;
1: - short int gp_flags;
1: - short int gp_state;
1: - long unsigned int gp_wake_time;
1: - long unsigned int gp_wake_seq;
1: - struct mutex barrier_mutex;
1: - atomic_t barrier_cpu_count;
1: - struct completion barrier_completion;
1: - long unsigned int barrier_sequence;
1: - struct mutex exp_mutex;
1: - struct mutex exp_wake_mutex;
1: - long unsigned int expedited_sequence;
1: - atomic_t expedited_need_qs;
1: - struct swait_queue_head expedited_wq;
1: - int ncpus_snap;
1: - u8 cbovld;
1: - u8 cbovldnext;
1: - long unsigned int jiffies_force_qs;
1: - long unsigned int jiffies_kick_kthreads;
1: - long unsigned int n_force_qs;
1: - long unsigned int gp_start;
1: - long unsigned int gp_end;
1: - long unsigned int gp_activity;
1: - long unsigned int gp_req_activity;
1: - long unsigned int jiffies_stall;
1: - long unsigned int jiffies_resched;
1: - long unsigned int n_force_qs_gpstart;
1: - const char *name;
1: - char abbr;
1: - long: 56;
1: - long: 64;
1: - long: 64;
1: - raw_spinlock_t ofl_lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct rcu_node node[9];
1: + struct rcu_node *level[3];
1: + int ncpus;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u8 boost;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_max;
1: + struct task_struct *gp_kthread;
1: + struct swait_queue_head gp_wq;
1: + short int gp_flags;
1: + short int gp_state;
1: + long unsigned int gp_wake_time;
1: + long unsigned int gp_wake_seq;
1: + struct mutex barrier_mutex;
1: + atomic_t barrier_cpu_count;
1: + struct completion barrier_completion;
1: + long unsigned int barrier_sequence;
1: + struct mutex exp_mutex;
1: + struct mutex exp_wake_mutex;
1: + long unsigned int expedited_sequence;
1: + atomic_t expedited_need_qs;
1: + struct swait_queue_head expedited_wq;
1: + int ncpus_snap;
1: + u8 cbovld;
1: + u8 cbovldnext;
1: + long unsigned int jiffies_force_qs;
1: + long unsigned int jiffies_kick_kthreads;
1: + long unsigned int n_force_qs;
1: + long unsigned int gp_start;
1: + long unsigned int gp_end;
1: + long unsigned int gp_activity;
1: + long unsigned int gp_req_activity;
1: + long unsigned int jiffies_stall;
1: + long unsigned int jiffies_resched;
1: + long unsigned int n_force_qs_gpstart;
1: + const char *name;
1: + char abbr;
1: + long : 56;
1: + long : 64;
1: + long : 64;
1: + raw_spinlock_t ofl_lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct kvfree_rcu_bulk_data {
1: - long unsigned int nr_records;
1: - struct kvfree_rcu_bulk_data *next;
1: - void *records[0];
1: + long unsigned int nr_records;
1: + struct kvfree_rcu_bulk_data *next;
1: + void *records[0];
1: };
1:
1: struct kfree_rcu_cpu;
1:
1: struct kfree_rcu_cpu_work {
1: - struct rcu_work rcu_work;
1: - struct callback_head *head_free;
1: - struct kvfree_rcu_bulk_data *bkvhead_free[2];
1: - struct kfree_rcu_cpu *krcp;
1: + struct rcu_work rcu_work;
1: + struct callback_head *head_free;
1: + struct kvfree_rcu_bulk_data *bkvhead_free[2];
1: + struct kfree_rcu_cpu *krcp;
1: };
1:
1: struct kfree_rcu_cpu {
1: - struct callback_head *head;
1: - struct kvfree_rcu_bulk_data *bkvhead[2];
1: - struct kfree_rcu_cpu_work krw_arr[2];
1: - raw_spinlock_t lock;
1: - struct delayed_work monitor_work;
1: - bool monitor_todo;
1: - bool initialized;
1: - int count;
1: - struct work_struct page_cache_work;
1: - atomic_t work_in_progress;
1: - struct hrtimer hrtimer;
1: - struct llist_head bkvcache;
1: - int nr_bkv_objs;
1: + struct callback_head *head;
1: + struct kvfree_rcu_bulk_data *bkvhead[2];
1: + struct kfree_rcu_cpu_work krw_arr[2];
1: + raw_spinlock_t lock;
1: + struct delayed_work monitor_work;
1: + bool monitor_todo;
1: + bool initialized;
1: + int count;
1: + struct work_struct page_cache_work;
1: + atomic_t work_in_progress;
1: + struct hrtimer hrtimer;
1: + struct llist_head bkvcache;
1: + int nr_bkv_objs;
1: };
1:
1: enum dma_sync_target {
1: - SYNC_FOR_CPU = 0,
1: - SYNC_FOR_DEVICE = 1,
1: + SYNC_FOR_CPU = 0,
1: + SYNC_FOR_DEVICE = 1,
1: };
1:
1: struct dma_devres {
1: - size_t size;
1: - void *vaddr;
1: - dma_addr_t dma_handle;
1: - long unsigned int attrs;
1: + size_t size;
1: + void *vaddr;
1: + dma_addr_t dma_handle;
1: + long unsigned int attrs;
1: };
1:
1: struct reserved_mem_ops;
1:
1: struct reserved_mem {
1: - const char *name;
1: - long unsigned int fdt_node;
1: - long unsigned int phandle;
1: - const struct reserved_mem_ops *ops;
1: - phys_addr_t base;
1: - phys_addr_t size;
1: - void *priv;
1: + const char *name;
1: + long unsigned int fdt_node;
1: + long unsigned int phandle;
1: + const struct reserved_mem_ops *ops;
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + void *priv;
1: };
1:
1: struct reserved_mem_ops {
1: - int (*device_init)(struct reserved_mem *, struct device *);
1: - void (*device_release)(struct reserved_mem *, struct device *);
1: + int (*device_init)(struct reserved_mem *, struct device *);
1: + void (*device_release)(struct reserved_mem *, struct device *);
1: };
1:
1: typedef int (*reservedmem_of_init_fn)(struct reserved_mem *);
1:
1: struct dma_coherent_mem {
1: - void *virt_base;
1: - dma_addr_t device_base;
1: - long unsigned int pfn_base;
1: - int size;
1: - long unsigned int *bitmap;
1: - spinlock_t spinlock;
1: - bool use_dev_dma_pfn_offset;
1: + void *virt_base;
1: + dma_addr_t device_base;
1: + long unsigned int pfn_base;
1: + int size;
1: + long unsigned int *bitmap;
1: + spinlock_t spinlock;
1: + bool use_dev_dma_pfn_offset;
1: };
1:
1: struct trace_event_raw_swiotlb_bounced {
1: - struct trace_entry ent;
1: - u32 __data_loc_dev_name;
1: - u64 dma_mask;
1: - dma_addr_t dev_addr;
1: - size_t size;
1: - enum swiotlb_force swiotlb_force;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_dev_name;
1: + u64 dma_mask;
1: + dma_addr_t dev_addr;
1: + size_t size;
1: + enum swiotlb_force swiotlb_force;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_swiotlb_bounced {
1: - u32 dev_name;
1: + u32 dev_name;
1: };
1:
1: -typedef void (*btf_trace_swiotlb_bounced)(void *, struct device *, dma_addr_t, size_t, enum swiotlb_force);
1: +typedef void (*btf_trace_swiotlb_bounced)(void *, struct device *, dma_addr_t,
1: + size_t, enum swiotlb_force);
1:
1: struct gen_pool;
1:
1: -typedef long unsigned int (*genpool_algo_t)(long unsigned int *, long unsigned int, long unsigned int, unsigned int, void *, struct gen_pool *, long unsigned int);
1: +typedef long unsigned int (*genpool_algo_t)(long unsigned int *,
1: + long unsigned int,
1: + long unsigned int, unsigned int,
1: + void *, struct gen_pool *,
1: + long unsigned int);
1:
1: struct gen_pool {
1: - spinlock_t lock;
1: - struct list_head chunks;
1: - int min_alloc_order;
1: - genpool_algo_t algo;
1: - void *data;
1: - const char *name;
1: + spinlock_t lock;
1: + struct list_head chunks;
1: + int min_alloc_order;
1: + genpool_algo_t algo;
1: + void *data;
1: + const char *name;
1: };
1:
1: enum kcmp_type {
1: - KCMP_FILE = 0,
1: - KCMP_VM = 1,
1: - KCMP_FILES = 2,
1: - KCMP_FS = 3,
1: - KCMP_SIGHAND = 4,
1: - KCMP_IO = 5,
1: - KCMP_SYSVSEM = 6,
1: - KCMP_EPOLL_TFD = 7,
1: - KCMP_TYPES = 8,
1: + KCMP_FILE = 0,
1: + KCMP_VM = 1,
1: + KCMP_FILES = 2,
1: + KCMP_FS = 3,
1: + KCMP_SIGHAND = 4,
1: + KCMP_IO = 5,
1: + KCMP_SYSVSEM = 6,
1: + KCMP_EPOLL_TFD = 7,
1: + KCMP_TYPES = 8,
1: };
1:
1: struct kcmp_epoll_slot {
1: - __u32 efd;
1: - __u32 tfd;
1: - __u32 toff;
1: + __u32 efd;
1: + __u32 tfd;
1: + __u32 toff;
1: };
1:
1: enum profile_type {
1: - PROFILE_TASK_EXIT = 0,
1: - PROFILE_MUNMAP = 1,
1: + PROFILE_TASK_EXIT = 0,
1: + PROFILE_MUNMAP = 1,
1: };
1:
1: struct profile_hit {
1: - u32 pc;
1: - u32 hits;
1: + u32 pc;
1: + u32 hits;
1: };
1:
1: struct stacktrace_cookie {
1: - long unsigned int *store;
1: - unsigned int size;
1: - unsigned int skip;
1: - unsigned int len;
1: + long unsigned int *store;
1: + unsigned int size;
1: + unsigned int skip;
1: + unsigned int len;
1: };
1:
1: typedef __kernel_long_t __kernel_suseconds_t;
1: @@ -24739,169 +25028,169 @@ typedef __kernel_suseconds_t suseconds_t;
1: typedef __u64 timeu64_t;
1:
1: struct __kernel_itimerspec {
1: - struct __kernel_timespec it_interval;
1: - struct __kernel_timespec it_value;
1: + struct __kernel_timespec it_interval;
1: + struct __kernel_timespec it_value;
1: };
1:
1: struct timezone {
1: - int tz_minuteswest;
1: - int tz_dsttime;
1: + int tz_minuteswest;
1: + int tz_dsttime;
1: };
1:
1: struct itimerspec64 {
1: - struct timespec64 it_interval;
1: - struct timespec64 it_value;
1: + struct timespec64 it_interval;
1: + struct timespec64 it_value;
1: };
1:
1: struct old_itimerspec32 {
1: - struct old_timespec32 it_interval;
1: - struct old_timespec32 it_value;
1: + struct old_timespec32 it_interval;
1: + struct old_timespec32 it_value;
1: };
1:
1: struct old_timex32 {
1: - u32 modes;
1: - s32 offset;
1: - s32 freq;
1: - s32 maxerror;
1: - s32 esterror;
1: - s32 status;
1: - s32 constant;
1: - s32 precision;
1: - s32 tolerance;
1: - struct old_timeval32 time;
1: - s32 tick;
1: - s32 ppsfreq;
1: - s32 jitter;
1: - s32 shift;
1: - s32 stabil;
1: - s32 jitcnt;
1: - s32 calcnt;
1: - s32 errcnt;
1: - s32 stbcnt;
1: - s32 tai;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + u32 modes;
1: + s32 offset;
1: + s32 freq;
1: + s32 maxerror;
1: + s32 esterror;
1: + s32 status;
1: + s32 constant;
1: + s32 precision;
1: + s32 tolerance;
1: + struct old_timeval32 time;
1: + s32 tick;
1: + s32 ppsfreq;
1: + s32 jitter;
1: + s32 shift;
1: + s32 stabil;
1: + s32 jitcnt;
1: + s32 calcnt;
1: + s32 errcnt;
1: + s32 stbcnt;
1: + s32 tai;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct __kernel_timex_timeval {
1: - __kernel_time64_t tv_sec;
1: - long long int tv_usec;
1: + __kernel_time64_t tv_sec;
1: + long long int tv_usec;
1: };
1:
1: struct __kernel_timex {
1: - unsigned int modes;
1: - long long int offset;
1: - long long int freq;
1: - long long int maxerror;
1: - long long int esterror;
1: - int status;
1: - long long int constant;
1: - long long int precision;
1: - long long int tolerance;
1: - struct __kernel_timex_timeval time;
1: - long long int tick;
1: - long long int ppsfreq;
1: - long long int jitter;
1: - int shift;
1: - long long int stabil;
1: - long long int jitcnt;
1: - long long int calcnt;
1: - long long int errcnt;
1: - long long int stbcnt;
1: - int tai;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + unsigned int modes;
1: + long long int offset;
1: + long long int freq;
1: + long long int maxerror;
1: + long long int esterror;
1: + int status;
1: + long long int constant;
1: + long long int precision;
1: + long long int tolerance;
1: + struct __kernel_timex_timeval time;
1: + long long int tick;
1: + long long int ppsfreq;
1: + long long int jitter;
1: + int shift;
1: + long long int stabil;
1: + long long int jitcnt;
1: + long long int calcnt;
1: + long long int errcnt;
1: + long long int stbcnt;
1: + int tai;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct trace_event_raw_timer_class {
1: - struct trace_entry ent;
1: - void *timer;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *timer;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_timer_start {
1: - struct trace_entry ent;
1: - void *timer;
1: - void *function;
1: - long unsigned int expires;
1: - long unsigned int now;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *timer;
1: + void *function;
1: + long unsigned int expires;
1: + long unsigned int now;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_timer_expire_entry {
1: - struct trace_entry ent;
1: - void *timer;
1: - long unsigned int now;
1: - void *function;
1: - long unsigned int baseclk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *timer;
1: + long unsigned int now;
1: + void *function;
1: + long unsigned int baseclk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_hrtimer_init {
1: - struct trace_entry ent;
1: - void *hrtimer;
1: - clockid_t clockid;
1: - enum hrtimer_mode mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + clockid_t clockid;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_hrtimer_start {
1: - struct trace_entry ent;
1: - void *hrtimer;
1: - void *function;
1: - s64 expires;
1: - s64 softexpires;
1: - enum hrtimer_mode mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + void *function;
1: + s64 expires;
1: + s64 softexpires;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_hrtimer_expire_entry {
1: - struct trace_entry ent;
1: - void *hrtimer;
1: - s64 now;
1: - void *function;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + s64 now;
1: + void *function;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_hrtimer_class {
1: - struct trace_entry ent;
1: - void *hrtimer;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_itimer_state {
1: - struct trace_entry ent;
1: - int which;
1: - long long unsigned int expires;
1: - long int value_sec;
1: - long int value_nsec;
1: - long int interval_sec;
1: - long int interval_nsec;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int which;
1: + long long unsigned int expires;
1: + long int value_sec;
1: + long int value_nsec;
1: + long int interval_sec;
1: + long int interval_nsec;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_itimer_expire {
1: - struct trace_entry ent;
1: - int which;
1: - pid_t pid;
1: - long long unsigned int now;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int which;
1: + pid_t pid;
1: + long long unsigned int now;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_tick_stop {
1: - struct trace_entry ent;
1: - int success;
1: - int dependency;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int success;
1: + int dependency;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_timer_class {};
1: @@ -24926,428 +25215,437 @@ struct trace_event_data_offsets_tick_stop {};
1:
1: typedef void (*btf_trace_timer_init)(void *, struct timer_list *);
1:
1: -typedef void (*btf_trace_timer_start)(void *, struct timer_list *, long unsigned int, unsigned int);
1: +typedef void (*btf_trace_timer_start)(void *, struct timer_list *,
1: + long unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_timer_expire_entry)(void *, struct timer_list *, long unsigned int);
1: +typedef void (*btf_trace_timer_expire_entry)(void *, struct timer_list *,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_timer_expire_exit)(void *, struct timer_list *);
1:
1: typedef void (*btf_trace_timer_cancel)(void *, struct timer_list *);
1:
1: -typedef void (*btf_trace_hrtimer_init)(void *, struct hrtimer *, clockid_t, enum hrtimer_mode);
1: +typedef void (*btf_trace_hrtimer_init)(void *, struct hrtimer *, clockid_t,
1: + enum hrtimer_mode);
1:
1: -typedef void (*btf_trace_hrtimer_start)(void *, struct hrtimer *, enum hrtimer_mode);
1: +typedef void (*btf_trace_hrtimer_start)(void *, struct hrtimer *,
1: + enum hrtimer_mode);
1:
1: -typedef void (*btf_trace_hrtimer_expire_entry)(void *, struct hrtimer *, ktime_t *);
1: +typedef void (*btf_trace_hrtimer_expire_entry)(void *, struct hrtimer *,
1: + ktime_t *);
1:
1: typedef void (*btf_trace_hrtimer_expire_exit)(void *, struct hrtimer *);
1:
1: typedef void (*btf_trace_hrtimer_cancel)(void *, struct hrtimer *);
1:
1: -typedef void (*btf_trace_itimer_state)(void *, int, const struct itimerspec64 * const, long long unsigned int);
1: +typedef void (*btf_trace_itimer_state)(void *, int,
1: + const struct itimerspec64 *const,
1: + long long unsigned int);
1:
1: -typedef void (*btf_trace_itimer_expire)(void *, int, struct pid *, long long unsigned int);
1: +typedef void (*btf_trace_itimer_expire)(void *, int, struct pid *,
1: + long long unsigned int);
1:
1: typedef void (*btf_trace_tick_stop)(void *, int, int);
1:
1: struct timer_base {
1: - raw_spinlock_t lock;
1: - struct timer_list *running_timer;
1: - long unsigned int clk;
1: - long unsigned int next_expiry;
1: - unsigned int cpu;
1: - bool next_expiry_recalc;
1: - bool is_idle;
1: - long unsigned int pending_map[9];
1: - struct hlist_head vectors[576];
1: - long: 64;
1: - long: 64;
1: + raw_spinlock_t lock;
1: + struct timer_list *running_timer;
1: + long unsigned int clk;
1: + long unsigned int next_expiry;
1: + unsigned int cpu;
1: + bool next_expiry_recalc;
1: + bool is_idle;
1: + long unsigned int pending_map[9];
1: + struct hlist_head vectors[576];
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct process_timer {
1: - struct timer_list timer;
1: - struct task_struct *task;
1: + struct timer_list timer;
1: + struct task_struct *task;
1: };
1:
1: enum clock_event_state {
1: - CLOCK_EVT_STATE_DETACHED = 0,
1: - CLOCK_EVT_STATE_SHUTDOWN = 1,
1: - CLOCK_EVT_STATE_PERIODIC = 2,
1: - CLOCK_EVT_STATE_ONESHOT = 3,
1: - CLOCK_EVT_STATE_ONESHOT_STOPPED = 4,
1: + CLOCK_EVT_STATE_DETACHED = 0,
1: + CLOCK_EVT_STATE_SHUTDOWN = 1,
1: + CLOCK_EVT_STATE_PERIODIC = 2,
1: + CLOCK_EVT_STATE_ONESHOT = 3,
1: + CLOCK_EVT_STATE_ONESHOT_STOPPED = 4,
1: };
1:
1: struct clock_event_device {
1: - void (*event_handler)(struct clock_event_device *);
1: - int (*set_next_event)(long unsigned int, struct clock_event_device *);
1: - int (*set_next_ktime)(ktime_t, struct clock_event_device *);
1: - ktime_t next_event;
1: - u64 max_delta_ns;
1: - u64 min_delta_ns;
1: - u32 mult;
1: - u32 shift;
1: - enum clock_event_state state_use_accessors;
1: - unsigned int features;
1: - long unsigned int retries;
1: - int (*set_state_periodic)(struct clock_event_device *);
1: - int (*set_state_oneshot)(struct clock_event_device *);
1: - int (*set_state_oneshot_stopped)(struct clock_event_device *);
1: - int (*set_state_shutdown)(struct clock_event_device *);
1: - int (*tick_resume)(struct clock_event_device *);
1: - void (*broadcast)(const struct cpumask *);
1: - void (*suspend)(struct clock_event_device *);
1: - void (*resume)(struct clock_event_device *);
1: - long unsigned int min_delta_ticks;
1: - long unsigned int max_delta_ticks;
1: - const char *name;
1: - int rating;
1: - int irq;
1: - int bound_on;
1: - const struct cpumask *cpumask;
1: - struct list_head list;
1: - struct module *owner;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + void (*event_handler)(struct clock_event_device *);
1: + int (*set_next_event)(long unsigned int, struct clock_event_device *);
1: + int (*set_next_ktime)(ktime_t, struct clock_event_device *);
1: + ktime_t next_event;
1: + u64 max_delta_ns;
1: + u64 min_delta_ns;
1: + u32 mult;
1: + u32 shift;
1: + enum clock_event_state state_use_accessors;
1: + unsigned int features;
1: + long unsigned int retries;
1: + int (*set_state_periodic)(struct clock_event_device *);
1: + int (*set_state_oneshot)(struct clock_event_device *);
1: + int (*set_state_oneshot_stopped)(struct clock_event_device *);
1: + int (*set_state_shutdown)(struct clock_event_device *);
1: + int (*tick_resume)(struct clock_event_device *);
1: + void (*broadcast)(const struct cpumask *);
1: + void (*suspend)(struct clock_event_device *);
1: + void (*resume)(struct clock_event_device *);
1: + long unsigned int min_delta_ticks;
1: + long unsigned int max_delta_ticks;
1: + const char *name;
1: + int rating;
1: + int irq;
1: + int bound_on;
1: + const struct cpumask *cpumask;
1: + struct list_head list;
1: + struct module *owner;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum tick_device_mode {
1: - TICKDEV_MODE_PERIODIC = 0,
1: - TICKDEV_MODE_ONESHOT = 1,
1: + TICKDEV_MODE_PERIODIC = 0,
1: + TICKDEV_MODE_ONESHOT = 1,
1: };
1:
1: struct tick_device {
1: - struct clock_event_device *evtdev;
1: - enum tick_device_mode mode;
1: + struct clock_event_device *evtdev;
1: + enum tick_device_mode mode;
1: };
1:
1: struct ktime_timestamps {
1: - u64 mono;
1: - u64 boot;
1: - u64 real;
1: + u64 mono;
1: + u64 boot;
1: + u64 real;
1: };
1:
1: struct system_time_snapshot {
1: - u64 cycles;
1: - ktime_t real;
1: - ktime_t raw;
1: - unsigned int clock_was_set_seq;
1: - u8 cs_was_changed_seq;
1: + u64 cycles;
1: + ktime_t real;
1: + ktime_t raw;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: };
1:
1: struct system_device_crosststamp {
1: - ktime_t device;
1: - ktime_t sys_realtime;
1: - ktime_t sys_monoraw;
1: + ktime_t device;
1: + ktime_t sys_realtime;
1: + ktime_t sys_monoraw;
1: };
1:
1: struct system_counterval_t {
1: - u64 cycles;
1: - struct clocksource *cs;
1: + u64 cycles;
1: + struct clocksource *cs;
1: };
1:
1: typedef struct {
1: - seqcount_t seqcount;
1: + seqcount_t seqcount;
1: } seqcount_latch_t;
1:
1: struct audit_ntp_val {
1: - long long int oldval;
1: - long long int newval;
1: + long long int oldval;
1: + long long int newval;
1: };
1:
1: struct audit_ntp_data {
1: - struct audit_ntp_val vals[6];
1: + struct audit_ntp_val vals[6];
1: };
1:
1: enum timekeeping_adv_mode {
1: - TK_ADV_TICK = 0,
1: - TK_ADV_FREQ = 1,
1: + TK_ADV_TICK = 0,
1: + TK_ADV_FREQ = 1,
1: };
1:
1: struct tk_fast {
1: - seqcount_latch_t seq;
1: - struct tk_read_base base[2];
1: + seqcount_latch_t seq;
1: + struct tk_read_base base[2];
1: };
1:
1: enum tick_nohz_mode {
1: - NOHZ_MODE_INACTIVE = 0,
1: - NOHZ_MODE_LOWRES = 1,
1: - NOHZ_MODE_HIGHRES = 2,
1: + NOHZ_MODE_INACTIVE = 0,
1: + NOHZ_MODE_LOWRES = 1,
1: + NOHZ_MODE_HIGHRES = 2,
1: };
1:
1: struct tick_sched {
1: - struct hrtimer sched_timer;
1: - long unsigned int check_clocks;
1: - enum tick_nohz_mode nohz_mode;
1: - unsigned int inidle: 1;
1: - unsigned int tick_stopped: 1;
1: - unsigned int idle_active: 1;
1: - unsigned int do_timer_last: 1;
1: - unsigned int got_idle_tick: 1;
1: - ktime_t last_tick;
1: - ktime_t next_tick;
1: - long unsigned int idle_jiffies;
1: - long unsigned int idle_calls;
1: - long unsigned int idle_sleeps;
1: - ktime_t idle_entrytime;
1: - ktime_t idle_waketime;
1: - ktime_t idle_exittime;
1: - ktime_t idle_sleeptime;
1: - ktime_t iowait_sleeptime;
1: - long unsigned int last_jiffies;
1: - u64 timer_expires;
1: - u64 timer_expires_base;
1: - u64 next_timer;
1: - ktime_t idle_expires;
1: - atomic_t tick_dep_mask;
1: + struct hrtimer sched_timer;
1: + long unsigned int check_clocks;
1: + enum tick_nohz_mode nohz_mode;
1: + unsigned int inidle : 1;
1: + unsigned int tick_stopped : 1;
1: + unsigned int idle_active : 1;
1: + unsigned int do_timer_last : 1;
1: + unsigned int got_idle_tick : 1;
1: + ktime_t last_tick;
1: + ktime_t next_tick;
1: + long unsigned int idle_jiffies;
1: + long unsigned int idle_calls;
1: + long unsigned int idle_sleeps;
1: + ktime_t idle_entrytime;
1: + ktime_t idle_waketime;
1: + ktime_t idle_exittime;
1: + ktime_t idle_sleeptime;
1: + ktime_t iowait_sleeptime;
1: + long unsigned int last_jiffies;
1: + u64 timer_expires;
1: + u64 timer_expires_base;
1: + u64 next_timer;
1: + ktime_t idle_expires;
1: + atomic_t tick_dep_mask;
1: };
1:
1: struct timer_list_iter {
1: - int cpu;
1: - bool second_pass;
1: - u64 now;
1: + int cpu;
1: + bool second_pass;
1: + u64 now;
1: };
1:
1: struct tm {
1: - int tm_sec;
1: - int tm_min;
1: - int tm_hour;
1: - int tm_mday;
1: - int tm_mon;
1: - long int tm_year;
1: - int tm_wday;
1: - int tm_yday;
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + long int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: };
1:
1: typedef __kernel_timer_t timer_t;
1:
1: struct rtc_time {
1: - int tm_sec;
1: - int tm_min;
1: - int tm_hour;
1: - int tm_mday;
1: - int tm_mon;
1: - int tm_year;
1: - int tm_wday;
1: - int tm_yday;
1: - int tm_isdst;
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: + int tm_isdst;
1: };
1:
1: struct rtc_wkalrm {
1: - unsigned char enabled;
1: - unsigned char pending;
1: - struct rtc_time time;
1: + unsigned char enabled;
1: + unsigned char pending;
1: + struct rtc_time time;
1: };
1:
1: enum alarmtimer_type {
1: - ALARM_REALTIME = 0,
1: - ALARM_BOOTTIME = 1,
1: - ALARM_NUMTYPE = 2,
1: - ALARM_REALTIME_FREEZER = 3,
1: - ALARM_BOOTTIME_FREEZER = 4,
1: + ALARM_REALTIME = 0,
1: + ALARM_BOOTTIME = 1,
1: + ALARM_NUMTYPE = 2,
1: + ALARM_REALTIME_FREEZER = 3,
1: + ALARM_BOOTTIME_FREEZER = 4,
1: };
1:
1: enum alarmtimer_restart {
1: - ALARMTIMER_NORESTART = 0,
1: - ALARMTIMER_RESTART = 1,
1: + ALARMTIMER_NORESTART = 0,
1: + ALARMTIMER_RESTART = 1,
1: };
1:
1: struct alarm {
1: - struct timerqueue_node node;
1: - struct hrtimer timer;
1: - enum alarmtimer_restart (*function)(struct alarm *, ktime_t);
1: - enum alarmtimer_type type;
1: - int state;
1: - void *data;
1: + struct timerqueue_node node;
1: + struct hrtimer timer;
1: + enum alarmtimer_restart (*function)(struct alarm *, ktime_t);
1: + enum alarmtimer_type type;
1: + int state;
1: + void *data;
1: };
1:
1: struct cpu_timer {
1: - struct timerqueue_node node;
1: - struct timerqueue_head *head;
1: - struct pid *pid;
1: - struct list_head elist;
1: - int firing;
1: + struct timerqueue_node node;
1: + struct timerqueue_head *head;
1: + struct pid *pid;
1: + struct list_head elist;
1: + int firing;
1: };
1:
1: struct k_clock;
1:
1: struct k_itimer {
1: - struct list_head list;
1: - struct hlist_node t_hash;
1: - spinlock_t it_lock;
1: - const struct k_clock *kclock;
1: - clockid_t it_clock;
1: - timer_t it_id;
1: - int it_active;
1: - s64 it_overrun;
1: - s64 it_overrun_last;
1: - int it_requeue_pending;
1: - int it_sigev_notify;
1: - ktime_t it_interval;
1: - struct signal_struct *it_signal;
1: - union {
1: - struct pid *it_pid;
1: - struct task_struct *it_process;
1: - };
1: - struct sigqueue *sigq;
1: - union {
1: - struct {
1: - struct hrtimer timer;
1: - } real;
1: - struct cpu_timer cpu;
1: - struct {
1: - struct alarm alarmtimer;
1: - } alarm;
1: - } it;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + struct hlist_node t_hash;
1: + spinlock_t it_lock;
1: + const struct k_clock *kclock;
1: + clockid_t it_clock;
1: + timer_t it_id;
1: + int it_active;
1: + s64 it_overrun;
1: + s64 it_overrun_last;
1: + int it_requeue_pending;
1: + int it_sigev_notify;
1: + ktime_t it_interval;
1: + struct signal_struct *it_signal;
1: + union {
1: + struct pid *it_pid;
1: + struct task_struct *it_process;
1: + };
1: + struct sigqueue *sigq;
1: + union {
1: + struct {
1: + struct hrtimer timer;
1: + } real;
1: + struct cpu_timer cpu;
1: + struct {
1: + struct alarm alarmtimer;
1: + } alarm;
1: + } it;
1: + struct callback_head rcu;
1: };
1:
1: struct k_clock {
1: - int (*clock_getres)(const clockid_t, struct timespec64 *);
1: - int (*clock_set)(const clockid_t, const struct timespec64 *);
1: - int (*clock_get_timespec)(const clockid_t, struct timespec64 *);
1: - ktime_t (*clock_get_ktime)(const clockid_t);
1: - int (*clock_adj)(const clockid_t, struct __kernel_timex *);
1: - int (*timer_create)(struct k_itimer *);
1: - int (*nsleep)(const clockid_t, int, const struct timespec64 *);
1: - int (*timer_set)(struct k_itimer *, int, struct itimerspec64 *, struct itimerspec64 *);
1: - int (*timer_del)(struct k_itimer *);
1: - void (*timer_get)(struct k_itimer *, struct itimerspec64 *);
1: - void (*timer_rearm)(struct k_itimer *);
1: - s64 (*timer_forward)(struct k_itimer *, ktime_t);
1: - ktime_t (*timer_remaining)(struct k_itimer *, ktime_t);
1: - int (*timer_try_to_cancel)(struct k_itimer *);
1: - void (*timer_arm)(struct k_itimer *, ktime_t, bool, bool);
1: - void (*timer_wait_running)(struct k_itimer *);
1: + int (*clock_getres)(const clockid_t, struct timespec64 *);
1: + int (*clock_set)(const clockid_t, const struct timespec64 *);
1: + int (*clock_get_timespec)(const clockid_t, struct timespec64 *);
1: + ktime_t (*clock_get_ktime)(const clockid_t);
1: + int (*clock_adj)(const clockid_t, struct __kernel_timex *);
1: + int (*timer_create)(struct k_itimer *);
1: + int (*nsleep)(const clockid_t, int, const struct timespec64 *);
1: + int (*timer_set)(struct k_itimer *, int, struct itimerspec64 *,
1: + struct itimerspec64 *);
1: + int (*timer_del)(struct k_itimer *);
1: + void (*timer_get)(struct k_itimer *, struct itimerspec64 *);
1: + void (*timer_rearm)(struct k_itimer *);
1: + s64 (*timer_forward)(struct k_itimer *, ktime_t);
1: + ktime_t (*timer_remaining)(struct k_itimer *, ktime_t);
1: + int (*timer_try_to_cancel)(struct k_itimer *);
1: + void (*timer_arm)(struct k_itimer *, ktime_t, bool, bool);
1: + void (*timer_wait_running)(struct k_itimer *);
1: };
1:
1: struct class_interface {
1: - struct list_head node;
1: - struct class *class;
1: - int (*add_dev)(struct device *, struct class_interface *);
1: - void (*remove_dev)(struct device *, struct class_interface *);
1: + struct list_head node;
1: + struct class *class;
1: + int (*add_dev)(struct device *, struct class_interface *);
1: + void (*remove_dev)(struct device *, struct class_interface *);
1: };
1:
1: struct rtc_class_ops {
1: - int (*ioctl)(struct device *, unsigned int, long unsigned int);
1: - int (*read_time)(struct device *, struct rtc_time *);
1: - int (*set_time)(struct device *, struct rtc_time *);
1: - int (*read_alarm)(struct device *, struct rtc_wkalrm *);
1: - int (*set_alarm)(struct device *, struct rtc_wkalrm *);
1: - int (*proc)(struct device *, struct seq_file *);
1: - int (*alarm_irq_enable)(struct device *, unsigned int);
1: - int (*read_offset)(struct device *, long int *);
1: - int (*set_offset)(struct device *, long int);
1: + int (*ioctl)(struct device *, unsigned int, long unsigned int);
1: + int (*read_time)(struct device *, struct rtc_time *);
1: + int (*set_time)(struct device *, struct rtc_time *);
1: + int (*read_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*set_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*proc)(struct device *, struct seq_file *);
1: + int (*alarm_irq_enable)(struct device *, unsigned int);
1: + int (*read_offset)(struct device *, long int *);
1: + int (*set_offset)(struct device *, long int);
1: };
1:
1: struct rtc_device;
1:
1: struct rtc_timer {
1: - struct timerqueue_node node;
1: - ktime_t period;
1: - void (*func)(struct rtc_device *);
1: - struct rtc_device *rtc;
1: - int enabled;
1: + struct timerqueue_node node;
1: + ktime_t period;
1: + void (*func)(struct rtc_device *);
1: + struct rtc_device *rtc;
1: + int enabled;
1: };
1:
1: struct rtc_device {
1: - struct device dev;
1: - struct module *owner;
1: - int id;
1: - const struct rtc_class_ops *ops;
1: - struct mutex ops_lock;
1: - struct cdev char_dev;
1: - long unsigned int flags;
1: - long unsigned int irq_data;
1: - spinlock_t irq_lock;
1: - wait_queue_head_t irq_queue;
1: - struct fasync_struct *async_queue;
1: - int irq_freq;
1: - int max_user_freq;
1: - struct timerqueue_head timerqueue;
1: - struct rtc_timer aie_timer;
1: - struct rtc_timer uie_rtctimer;
1: - struct hrtimer pie_timer;
1: - int pie_enabled;
1: - struct work_struct irqwork;
1: - int uie_unsupported;
1: - long int set_offset_nsec;
1: - bool registered;
1: - bool nvram_old_abi;
1: - struct bin_attribute *nvram;
1: - time64_t range_min;
1: - timeu64_t range_max;
1: - time64_t start_secs;
1: - time64_t offset_secs;
1: - bool set_start_time;
1: - struct work_struct uie_task;
1: - struct timer_list uie_timer;
1: - unsigned int oldsecs;
1: - unsigned int uie_irq_active: 1;
1: - unsigned int stop_uie_polling: 1;
1: - unsigned int uie_task_active: 1;
1: - unsigned int uie_timer_active: 1;
1: + struct device dev;
1: + struct module *owner;
1: + int id;
1: + const struct rtc_class_ops *ops;
1: + struct mutex ops_lock;
1: + struct cdev char_dev;
1: + long unsigned int flags;
1: + long unsigned int irq_data;
1: + spinlock_t irq_lock;
1: + wait_queue_head_t irq_queue;
1: + struct fasync_struct *async_queue;
1: + int irq_freq;
1: + int max_user_freq;
1: + struct timerqueue_head timerqueue;
1: + struct rtc_timer aie_timer;
1: + struct rtc_timer uie_rtctimer;
1: + struct hrtimer pie_timer;
1: + int pie_enabled;
1: + struct work_struct irqwork;
1: + int uie_unsupported;
1: + long int set_offset_nsec;
1: + bool registered;
1: + bool nvram_old_abi;
1: + struct bin_attribute *nvram;
1: + time64_t range_min;
1: + timeu64_t range_max;
1: + time64_t start_secs;
1: + time64_t offset_secs;
1: + bool set_start_time;
1: + struct work_struct uie_task;
1: + struct timer_list uie_timer;
1: + unsigned int oldsecs;
1: + unsigned int uie_irq_active : 1;
1: + unsigned int stop_uie_polling : 1;
1: + unsigned int uie_task_active : 1;
1: + unsigned int uie_timer_active : 1;
1: };
1:
1: struct property_entry;
1:
1: struct platform_device_info {
1: - struct device *parent;
1: - struct fwnode_handle *fwnode;
1: - bool of_node_reused;
1: - const char *name;
1: - int id;
1: - const struct resource *res;
1: - unsigned int num_res;
1: - const void *data;
1: - size_t size_data;
1: - u64 dma_mask;
1: - const struct property_entry *properties;
1: + struct device *parent;
1: + struct fwnode_handle *fwnode;
1: + bool of_node_reused;
1: + const char *name;
1: + int id;
1: + const struct resource *res;
1: + unsigned int num_res;
1: + const void *data;
1: + size_t size_data;
1: + u64 dma_mask;
1: + const struct property_entry *properties;
1: };
1:
1: enum dev_prop_type {
1: - DEV_PROP_U8 = 0,
1: - DEV_PROP_U16 = 1,
1: - DEV_PROP_U32 = 2,
1: - DEV_PROP_U64 = 3,
1: - DEV_PROP_STRING = 4,
1: - DEV_PROP_REF = 5,
1: + DEV_PROP_U8 = 0,
1: + DEV_PROP_U16 = 1,
1: + DEV_PROP_U32 = 2,
1: + DEV_PROP_U64 = 3,
1: + DEV_PROP_STRING = 4,
1: + DEV_PROP_REF = 5,
1: };
1:
1: struct property_entry {
1: - const char *name;
1: - size_t length;
1: - bool is_inline;
1: - enum dev_prop_type type;
1: - union {
1: - const void *pointer;
1: - union {
1: - u8 u8_data[8];
1: - u16 u16_data[4];
1: - u32 u32_data[2];
1: - u64 u64_data[1];
1: - const char *str[1];
1: - } value;
1: - };
1: + const char *name;
1: + size_t length;
1: + bool is_inline;
1: + enum dev_prop_type type;
1: + union {
1: + const void *pointer;
1: + union {
1: + u8 u8_data[8];
1: + u16 u16_data[4];
1: + u32 u32_data[2];
1: + u64 u64_data[1];
1: + const char *str[1];
1: + } value;
1: + };
1: };
1:
1: struct trace_event_raw_alarmtimer_suspend {
1: - struct trace_entry ent;
1: - s64 expires;
1: - unsigned char alarm_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + s64 expires;
1: + unsigned char alarm_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_alarm_class {
1: - struct trace_entry ent;
1: - void *alarm;
1: - unsigned char alarm_type;
1: - s64 expires;
1: - s64 now;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *alarm;
1: + unsigned char alarm_type;
1: + s64 expires;
1: + s64 now;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_alarmtimer_suspend {};
1: @@ -25363,41 +25661,41 @@ typedef void (*btf_trace_alarmtimer_start)(void *, struct alarm *, ktime_t);
1: typedef void (*btf_trace_alarmtimer_cancel)(void *, struct alarm *, ktime_t);
1:
1: struct alarm_base {
1: - spinlock_t lock;
1: - struct timerqueue_head timerqueue;
1: - ktime_t (*get_ktime)();
1: - void (*get_timespec)(struct timespec64 *);
1: - clockid_t base_clockid;
1: + spinlock_t lock;
1: + struct timerqueue_head timerqueue;
1: + ktime_t (*get_ktime)();
1: + void (*get_timespec)(struct timespec64 *);
1: + clockid_t base_clockid;
1: };
1:
1: struct sigevent {
1: - sigval_t sigev_value;
1: - int sigev_signo;
1: - int sigev_notify;
1: - union {
1: - int _pad[12];
1: - int _tid;
1: - struct {
1: - void (*_function)(sigval_t);
1: - void *_attribute;
1: - } _sigev_thread;
1: - } _sigev_un;
1: + sigval_t sigev_value;
1: + int sigev_signo;
1: + int sigev_notify;
1: + union {
1: + int _pad[12];
1: + int _tid;
1: + struct {
1: + void (*_function)(sigval_t);
1: + void *_attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: };
1:
1: typedef struct sigevent sigevent_t;
1:
1: struct compat_sigevent {
1: - compat_sigval_t sigev_value;
1: - compat_int_t sigev_signo;
1: - compat_int_t sigev_notify;
1: - union {
1: - compat_int_t _pad[13];
1: - compat_int_t _tid;
1: - struct {
1: - compat_uptr_t _function;
1: - compat_uptr_t _attribute;
1: - } _sigev_thread;
1: - } _sigev_un;
1: + compat_sigval_t sigev_value;
1: + compat_int_t sigev_signo;
1: + compat_int_t sigev_notify;
1: + union {
1: + compat_int_t _pad[13];
1: + compat_int_t _tid;
1: + struct {
1: + compat_uptr_t _function;
1: + compat_uptr_t _attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: };
1:
1: typedef unsigned int uint;
1: @@ -25405,143 +25703,143 @@ typedef unsigned int uint;
1: struct posix_clock;
1:
1: struct posix_clock_operations {
1: - struct module *owner;
1: - int (*clock_adjtime)(struct posix_clock *, struct __kernel_timex *);
1: - int (*clock_gettime)(struct posix_clock *, struct timespec64 *);
1: - int (*clock_getres)(struct posix_clock *, struct timespec64 *);
1: - int (*clock_settime)(struct posix_clock *, const struct timespec64 *);
1: - long int (*ioctl)(struct posix_clock *, unsigned int, long unsigned int);
1: - int (*open)(struct posix_clock *, fmode_t);
1: - __poll_t (*poll)(struct posix_clock *, struct file *, poll_table *);
1: - int (*release)(struct posix_clock *);
1: - ssize_t (*read)(struct posix_clock *, uint, char *, size_t);
1: + struct module *owner;
1: + int (*clock_adjtime)(struct posix_clock *, struct __kernel_timex *);
1: + int (*clock_gettime)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_getres)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_settime)(struct posix_clock *, const struct timespec64 *);
1: + long int (*ioctl)(struct posix_clock *, unsigned int, long unsigned int);
1: + int (*open)(struct posix_clock *, fmode_t);
1: + __poll_t (*poll)(struct posix_clock *, struct file *, poll_table *);
1: + int (*release)(struct posix_clock *);
1: + ssize_t (*read)(struct posix_clock *, uint, char *, size_t);
1: };
1:
1: struct posix_clock {
1: - struct posix_clock_operations ops;
1: - struct cdev cdev;
1: - struct device *dev;
1: - struct rw_semaphore rwsem;
1: - bool zombie;
1: + struct posix_clock_operations ops;
1: + struct cdev cdev;
1: + struct device *dev;
1: + struct rw_semaphore rwsem;
1: + bool zombie;
1: };
1:
1: struct posix_clock_desc {
1: - struct file *fp;
1: - struct posix_clock *clk;
1: + struct file *fp;
1: + struct posix_clock *clk;
1: };
1:
1: struct __kernel_old_itimerval {
1: - struct __kernel_old_timeval it_interval;
1: - struct __kernel_old_timeval it_value;
1: + struct __kernel_old_timeval it_interval;
1: + struct __kernel_old_timeval it_value;
1: };
1:
1: struct old_itimerval32 {
1: - struct old_timeval32 it_interval;
1: - struct old_timeval32 it_value;
1: + struct old_timeval32 it_interval;
1: + struct old_timeval32 it_value;
1: };
1:
1: typedef s64 int64_t;
1:
1: struct ce_unbind {
1: - struct clock_event_device *ce;
1: - int res;
1: + struct clock_event_device *ce;
1: + int res;
1: };
1:
1: enum tick_broadcast_state {
1: - TICK_BROADCAST_EXIT = 0,
1: - TICK_BROADCAST_ENTER = 1,
1: + TICK_BROADCAST_EXIT = 0,
1: + TICK_BROADCAST_ENTER = 1,
1: };
1:
1: enum tick_broadcast_mode {
1: - TICK_BROADCAST_OFF = 0,
1: - TICK_BROADCAST_ON = 1,
1: - TICK_BROADCAST_FORCE = 2,
1: + TICK_BROADCAST_OFF = 0,
1: + TICK_BROADCAST_ON = 1,
1: + TICK_BROADCAST_FORCE = 2,
1: };
1:
1: struct clock_data {
1: - seqcount_latch_t seq;
1: - struct clock_read_data read_data[2];
1: - ktime_t wrap_kt;
1: - long unsigned int rate;
1: - u64 (*actual_read_sched_clock)();
1: + seqcount_latch_t seq;
1: + struct clock_read_data read_data[2];
1: + ktime_t wrap_kt;
1: + long unsigned int rate;
1: + u64 (*actual_read_sched_clock)();
1: };
1:
1: struct proc_timens_offset {
1: - int clockid;
1: - struct timespec64 val;
1: + int clockid;
1: + struct timespec64 val;
1: };
1:
1: union futex_key {
1: - struct {
1: - u64 i_seq;
1: - long unsigned int pgoff;
1: - unsigned int offset;
1: - } shared;
1: - struct {
1: - union {
1: - struct mm_struct *mm;
1: - u64 __tmp;
1: - };
1: - long unsigned int address;
1: - unsigned int offset;
1: - } private;
1: - struct {
1: - u64 ptr;
1: - long unsigned int word;
1: - unsigned int offset;
1: - } both;
1: + struct {
1: + u64 i_seq;
1: + long unsigned int pgoff;
1: + unsigned int offset;
1: + } shared;
1: + struct {
1: + union {
1: + struct mm_struct *mm;
1: + u64 __tmp;
1: + };
1: + long unsigned int address;
1: + unsigned int offset;
1: + } private;
1: + struct {
1: + u64 ptr;
1: + long unsigned int word;
1: + unsigned int offset;
1: + } both;
1: };
1:
1: struct futex_pi_state {
1: - struct list_head list;
1: - struct rt_mutex pi_mutex;
1: - struct task_struct *owner;
1: - refcount_t refcount;
1: - union futex_key key;
1: + struct list_head list;
1: + struct rt_mutex pi_mutex;
1: + struct task_struct *owner;
1: + refcount_t refcount;
1: + union futex_key key;
1: };
1:
1: struct futex_q {
1: - struct plist_node list;
1: - struct task_struct *task;
1: - spinlock_t *lock_ptr;
1: - union futex_key key;
1: - struct futex_pi_state *pi_state;
1: - struct rt_mutex_waiter *rt_waiter;
1: - union futex_key *requeue_pi_key;
1: - u32 bitset;
1: + struct plist_node list;
1: + struct task_struct *task;
1: + spinlock_t *lock_ptr;
1: + union futex_key key;
1: + struct futex_pi_state *pi_state;
1: + struct rt_mutex_waiter *rt_waiter;
1: + union futex_key *requeue_pi_key;
1: + u32 bitset;
1: };
1:
1: struct futex_hash_bucket {
1: - atomic_t waiters;
1: - spinlock_t lock;
1: - struct plist_head chain;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + atomic_t waiters;
1: + spinlock_t lock;
1: + struct plist_head chain;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum futex_access {
1: - FUTEX_READ = 0,
1: - FUTEX_WRITE = 1,
1: + FUTEX_READ = 0,
1: + FUTEX_WRITE = 1,
1: };
1:
1: typedef bool (*smp_cond_func_t)(int, void *);
1:
1: struct call_function_data {
1: - call_single_data_t *csd;
1: - cpumask_var_t cpumask;
1: - cpumask_var_t cpumask_ipi;
1: + call_single_data_t *csd;
1: + cpumask_var_t cpumask;
1: + cpumask_var_t cpumask_ipi;
1: };
1:
1: struct smp_call_on_cpu_struct {
1: - struct work_struct work;
1: - struct completion done;
1: - int (*func)(void *);
1: - void *data;
1: - int ret;
1: - int cpu;
1: + struct work_struct work;
1: + struct completion done;
1: + int (*func)(void *);
1: + void *data;
1: + int ret;
1: + int cpu;
1: };
1:
1: typedef short unsigned int __kernel_old_uid_t;
1: @@ -25553,305 +25851,308 @@ typedef __kernel_old_uid_t old_uid_t;
1: typedef __kernel_old_gid_t old_gid_t;
1:
1: struct latch_tree_root {
1: - seqcount_latch_t seq;
1: - struct rb_root tree[2];
1: + seqcount_latch_t seq;
1: + struct rb_root tree[2];
1: };
1:
1: struct latch_tree_ops {
1: - bool (*less)(struct latch_tree_node *, struct latch_tree_node *);
1: - int (*comp)(void *, struct latch_tree_node *);
1: + bool (*less)(struct latch_tree_node *, struct latch_tree_node *);
1: + int (*comp)(void *, struct latch_tree_node *);
1: };
1:
1: struct modversion_info {
1: - long unsigned int crc;
1: - char name[56];
1: + long unsigned int crc;
1: + char name[56];
1: };
1:
1: struct module_use {
1: - struct list_head source_list;
1: - struct list_head target_list;
1: - struct module *source;
1: - struct module *target;
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + struct module *source;
1: + struct module *target;
1: };
1:
1: struct module_sect_attr {
1: - struct bin_attribute battr;
1: - long unsigned int address;
1: + struct bin_attribute battr;
1: + long unsigned int address;
1: };
1:
1: struct module_sect_attrs {
1: - struct attribute_group grp;
1: - unsigned int nsections;
1: - struct module_sect_attr attrs[0];
1: + struct attribute_group grp;
1: + unsigned int nsections;
1: + struct module_sect_attr attrs[0];
1: };
1:
1: struct module_notes_attrs {
1: - struct kobject *dir;
1: - unsigned int notes;
1: - struct bin_attribute attrs[0];
1: + struct kobject *dir;
1: + unsigned int notes;
1: + struct bin_attribute attrs[0];
1: };
1:
1: enum mod_license {
1: - NOT_GPL_ONLY = 0,
1: - GPL_ONLY = 1,
1: - WILL_BE_GPL_ONLY = 2,
1: + NOT_GPL_ONLY = 0,
1: + GPL_ONLY = 1,
1: + WILL_BE_GPL_ONLY = 2,
1: };
1:
1: struct symsearch {
1: - const struct kernel_symbol *start;
1: - const struct kernel_symbol *stop;
1: - const s32 *crcs;
1: - enum mod_license license;
1: - bool unused;
1: + const struct kernel_symbol *start;
1: + const struct kernel_symbol *stop;
1: + const s32 *crcs;
1: + enum mod_license license;
1: + bool unused;
1: };
1:
1: enum kernel_read_file_id {
1: - READING_UNKNOWN = 0,
1: - READING_FIRMWARE = 1,
1: - READING_MODULE = 2,
1: - READING_KEXEC_IMAGE = 3,
1: - READING_KEXEC_INITRAMFS = 4,
1: - READING_POLICY = 5,
1: - READING_X509_CERTIFICATE = 6,
1: - READING_MAX_ID = 7,
1: + READING_UNKNOWN = 0,
1: + READING_FIRMWARE = 1,
1: + READING_MODULE = 2,
1: + READING_KEXEC_IMAGE = 3,
1: + READING_KEXEC_INITRAMFS = 4,
1: + READING_POLICY = 5,
1: + READING_X509_CERTIFICATE = 6,
1: + READING_MAX_ID = 7,
1: };
1:
1: enum kernel_load_data_id {
1: - LOADING_UNKNOWN = 0,
1: - LOADING_FIRMWARE = 1,
1: - LOADING_MODULE = 2,
1: - LOADING_KEXEC_IMAGE = 3,
1: - LOADING_KEXEC_INITRAMFS = 4,
1: - LOADING_POLICY = 5,
1: - LOADING_X509_CERTIFICATE = 6,
1: - LOADING_MAX_ID = 7,
1: + LOADING_UNKNOWN = 0,
1: + LOADING_FIRMWARE = 1,
1: + LOADING_MODULE = 2,
1: + LOADING_KEXEC_IMAGE = 3,
1: + LOADING_KEXEC_INITRAMFS = 4,
1: + LOADING_POLICY = 5,
1: + LOADING_X509_CERTIFICATE = 6,
1: + LOADING_MAX_ID = 7,
1: };
1:
1: enum {
1: - PROC_ENTRY_PERMANENT = 1,
1: + PROC_ENTRY_PERMANENT = 1,
1: };
1:
1: struct _ddebug {
1: - const char *modname;
1: - const char *function;
1: - const char *filename;
1: - const char *format;
1: - unsigned int lineno: 18;
1: - unsigned int flags: 8;
1: - union {
1: - struct static_key_true dd_key_true;
1: - struct static_key_false dd_key_false;
1: - } key;
1: + const char *modname;
1: + const char *function;
1: + const char *filename;
1: + const char *format;
1: + unsigned int lineno : 18;
1: + unsigned int flags : 8;
1: + union {
1: + struct static_key_true dd_key_true;
1: + struct static_key_false dd_key_false;
1: + } key;
1: };
1:
1: struct load_info {
1: - const char *name;
1: - struct module *mod;
1: - Elf64_Ehdr *hdr;
1: - long unsigned int len;
1: - Elf64_Shdr *sechdrs;
1: - char *secstrings;
1: - char *strtab;
1: - long unsigned int symoffs;
1: - long unsigned int stroffs;
1: - long unsigned int init_typeoffs;
1: - long unsigned int core_typeoffs;
1: - struct _ddebug *debug;
1: - unsigned int num_debug;
1: - bool sig_ok;
1: - long unsigned int mod_kallsyms_init_off;
1: - struct {
1: - unsigned int sym;
1: - unsigned int str;
1: - unsigned int mod;
1: - unsigned int vers;
1: - unsigned int info;
1: - unsigned int pcpu;
1: - } index;
1: + const char *name;
1: + struct module *mod;
1: + Elf64_Ehdr *hdr;
1: + long unsigned int len;
1: + Elf64_Shdr *sechdrs;
1: + char *secstrings;
1: + char *strtab;
1: + long unsigned int symoffs;
1: + long unsigned int stroffs;
1: + long unsigned int init_typeoffs;
1: + long unsigned int core_typeoffs;
1: + struct _ddebug *debug;
1: + unsigned int num_debug;
1: + bool sig_ok;
1: + long unsigned int mod_kallsyms_init_off;
1: + struct {
1: + unsigned int sym;
1: + unsigned int str;
1: + unsigned int mod;
1: + unsigned int vers;
1: + unsigned int info;
1: + unsigned int pcpu;
1: + } index;
1: };
1:
1: struct trace_event_raw_module_load {
1: - struct trace_entry ent;
1: - unsigned int taints;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int taints;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_module_free {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_module_refcnt {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - int refcnt;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + int refcnt;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_module_request {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - bool wait;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + bool wait;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_module_load {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_module_free {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_module_refcnt {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_module_request {
1: - u32 name;
1: + u32 name;
1: };
1:
1: typedef void (*btf_trace_module_load)(void *, struct module *);
1:
1: typedef void (*btf_trace_module_free)(void *, struct module *);
1:
1: -typedef void (*btf_trace_module_get)(void *, struct module *, long unsigned int);
1: +typedef void (*btf_trace_module_get)(void *, struct module *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_module_put)(void *, struct module *, long unsigned int);
1: +typedef void (*btf_trace_module_put)(void *, struct module *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_module_request)(void *, char *, bool, long unsigned int);
1: +typedef void (*btf_trace_module_request)(void *, char *, bool,
1: + long unsigned int);
1:
1: struct mod_tree_root {
1: - struct latch_tree_root root;
1: - long unsigned int addr_min;
1: - long unsigned int addr_max;
1: + struct latch_tree_root root;
1: + long unsigned int addr_min;
1: + long unsigned int addr_max;
1: };
1:
1: struct find_symbol_arg {
1: - const char *name;
1: - bool gplok;
1: - bool warn;
1: - struct module *owner;
1: - const s32 *crc;
1: - const struct kernel_symbol *sym;
1: - enum mod_license license;
1: + const char *name;
1: + bool gplok;
1: + bool warn;
1: + struct module *owner;
1: + const s32 *crc;
1: + const struct kernel_symbol *sym;
1: + enum mod_license license;
1: };
1:
1: struct mod_initfree {
1: - struct llist_node node;
1: - void *module_init;
1: + struct llist_node node;
1: + void *module_init;
1: };
1:
1: struct module_signature {
1: - u8 algo;
1: - u8 hash;
1: - u8 id_type;
1: - u8 signer_len;
1: - u8 key_id_len;
1: - u8 __pad[3];
1: - __be32 sig_len;
1: + u8 algo;
1: + u8 hash;
1: + u8 id_type;
1: + u8 signer_len;
1: + u8 key_id_len;
1: + u8 __pad[3];
1: + __be32 sig_len;
1: };
1:
1: enum pkey_id_type {
1: - PKEY_ID_PGP = 0,
1: - PKEY_ID_X509 = 1,
1: - PKEY_ID_PKCS7 = 2,
1: + PKEY_ID_PGP = 0,
1: + PKEY_ID_X509 = 1,
1: + PKEY_ID_PKCS7 = 2,
1: };
1:
1: struct kallsym_iter {
1: - loff_t pos;
1: - loff_t pos_arch_end;
1: - loff_t pos_mod_end;
1: - loff_t pos_ftrace_mod_end;
1: - loff_t pos_bpf_end;
1: - long unsigned int value;
1: - unsigned int nameoff;
1: - char type;
1: - char name[128];
1: - char module_name[56];
1: - int exported;
1: - int show_value;
1: + loff_t pos;
1: + loff_t pos_arch_end;
1: + loff_t pos_mod_end;
1: + loff_t pos_ftrace_mod_end;
1: + loff_t pos_bpf_end;
1: + long unsigned int value;
1: + unsigned int nameoff;
1: + char type;
1: + char name[128];
1: + char module_name[56];
1: + int exported;
1: + int show_value;
1: };
1:
1: typedef struct {
1: - int val[2];
1: + int val[2];
1: } __kernel_fsid_t;
1:
1: struct kstatfs {
1: - long int f_type;
1: - long int f_bsize;
1: - u64 f_blocks;
1: - u64 f_bfree;
1: - u64 f_bavail;
1: - u64 f_files;
1: - u64 f_ffree;
1: - __kernel_fsid_t f_fsid;
1: - long int f_namelen;
1: - long int f_frsize;
1: - long int f_flags;
1: - long int f_spare[4];
1: + long int f_type;
1: + long int f_bsize;
1: + u64 f_blocks;
1: + u64 f_bfree;
1: + u64 f_bavail;
1: + u64 f_files;
1: + u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + long int f_namelen;
1: + long int f_frsize;
1: + long int f_flags;
1: + long int f_spare[4];
1: };
1:
1: typedef __u16 comp_t;
1:
1: struct acct_v3 {
1: - char ac_flag;
1: - char ac_version;
1: - __u16 ac_tty;
1: - __u32 ac_exitcode;
1: - __u32 ac_uid;
1: - __u32 ac_gid;
1: - __u32 ac_pid;
1: - __u32 ac_ppid;
1: - __u32 ac_btime;
1: - __u32 ac_etime;
1: - comp_t ac_utime;
1: - comp_t ac_stime;
1: - comp_t ac_mem;
1: - comp_t ac_io;
1: - comp_t ac_rw;
1: - comp_t ac_minflt;
1: - comp_t ac_majflt;
1: - comp_t ac_swaps;
1: - char ac_comm[16];
1: + char ac_flag;
1: + char ac_version;
1: + __u16 ac_tty;
1: + __u32 ac_exitcode;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u32 ac_etime;
1: + comp_t ac_utime;
1: + comp_t ac_stime;
1: + comp_t ac_mem;
1: + comp_t ac_io;
1: + comp_t ac_rw;
1: + comp_t ac_minflt;
1: + comp_t ac_majflt;
1: + comp_t ac_swaps;
1: + char ac_comm[16];
1: };
1:
1: typedef struct acct_v3 acct_t;
1:
1: struct fs_pin {
1: - wait_queue_head_t wait;
1: - int done;
1: - struct hlist_node s_list;
1: - struct hlist_node m_list;
1: - void (*kill)(struct fs_pin *);
1: + wait_queue_head_t wait;
1: + int done;
1: + struct hlist_node s_list;
1: + struct hlist_node m_list;
1: + void (*kill)(struct fs_pin *);
1: };
1:
1: struct bsd_acct_struct {
1: - struct fs_pin pin;
1: - atomic_long_t count;
1: - struct callback_head rcu;
1: - struct mutex lock;
1: - int active;
1: - long unsigned int needcheck;
1: - struct file *file;
1: - struct pid_namespace *ns;
1: - struct work_struct work;
1: - struct completion done;
1: + struct fs_pin pin;
1: + atomic_long_t count;
1: + struct callback_head rcu;
1: + struct mutex lock;
1: + int active;
1: + long unsigned int needcheck;
1: + struct file *file;
1: + struct pid_namespace *ns;
1: + struct work_struct work;
1: + struct completion done;
1: };
1:
1: struct elf64_note {
1: - Elf64_Word n_namesz;
1: - Elf64_Word n_descsz;
1: - Elf64_Word n_type;
1: + Elf64_Word n_namesz;
1: + Elf64_Word n_descsz;
1: + Elf64_Word n_type;
1: };
1:
1: struct elf_note_section {
1: - struct elf64_note n_hdr;
1: - u8 n_data[0];
1: + struct elf64_note n_hdr;
1: + u8 n_data[0];
1: };
1:
1: typedef long unsigned int elf_greg_t;
1: @@ -25859,46 +26160,46 @@ typedef long unsigned int elf_greg_t;
1: typedef elf_greg_t elf_gregset_t[34];
1:
1: struct elf_siginfo {
1: - int si_signo;
1: - int si_code;
1: - int si_errno;
1: + int si_signo;
1: + int si_code;
1: + int si_errno;
1: };
1:
1: struct elf_prstatus {
1: - struct elf_siginfo pr_info;
1: - short int pr_cursig;
1: - long unsigned int pr_sigpend;
1: - long unsigned int pr_sighold;
1: - pid_t pr_pid;
1: - pid_t pr_ppid;
1: - pid_t pr_pgrp;
1: - pid_t pr_sid;
1: - struct __kernel_old_timeval pr_utime;
1: - struct __kernel_old_timeval pr_stime;
1: - struct __kernel_old_timeval pr_cutime;
1: - struct __kernel_old_timeval pr_cstime;
1: - elf_gregset_t pr_reg;
1: - int pr_fpvalid;
1: + struct elf_siginfo pr_info;
1: + short int pr_cursig;
1: + long unsigned int pr_sigpend;
1: + long unsigned int pr_sighold;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + struct __kernel_old_timeval pr_utime;
1: + struct __kernel_old_timeval pr_stime;
1: + struct __kernel_old_timeval pr_cutime;
1: + struct __kernel_old_timeval pr_cstime;
1: + elf_gregset_t pr_reg;
1: + int pr_fpvalid;
1: };
1:
1: typedef u32 note_buf_t[106];
1:
1: struct compat_kexec_segment {
1: - compat_uptr_t buf;
1: - compat_size_t bufsz;
1: - compat_ulong_t mem;
1: - compat_size_t memsz;
1: + compat_uptr_t buf;
1: + compat_size_t bufsz;
1: + compat_ulong_t mem;
1: + compat_size_t memsz;
1: };
1:
1: struct elf64_phdr {
1: - Elf64_Word p_type;
1: - Elf64_Word p_flags;
1: - Elf64_Off p_offset;
1: - Elf64_Addr p_vaddr;
1: - Elf64_Addr p_paddr;
1: - Elf64_Xword p_filesz;
1: - Elf64_Xword p_memsz;
1: - Elf64_Xword p_align;
1: + Elf64_Word p_type;
1: + Elf64_Word p_flags;
1: + Elf64_Off p_offset;
1: + Elf64_Addr p_vaddr;
1: + Elf64_Addr p_paddr;
1: + Elf64_Xword p_filesz;
1: + Elf64_Xword p_memsz;
1: + Elf64_Xword p_align;
1: };
1:
1: typedef struct elf64_phdr Elf64_Phdr;
1: @@ -25906,136 +26207,138 @@ typedef struct elf64_phdr Elf64_Phdr;
1: struct crypto_alg;
1:
1: struct crypto_tfm {
1: - u32 crt_flags;
1: - int node;
1: - void (*exit)(struct crypto_tfm *);
1: - struct crypto_alg *__crt_alg;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__crt_ctx[0];
1: + u32 crt_flags;
1: + int node;
1: + void (*exit)(struct crypto_tfm *);
1: + struct crypto_alg *__crt_alg;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__crt_ctx[0];
1: };
1:
1: struct cipher_alg {
1: - unsigned int cia_min_keysize;
1: - unsigned int cia_max_keysize;
1: - int (*cia_setkey)(struct crypto_tfm *, const u8 *, unsigned int);
1: - void (*cia_encrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: - void (*cia_decrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: + unsigned int cia_min_keysize;
1: + unsigned int cia_max_keysize;
1: + int (*cia_setkey)(struct crypto_tfm *, const u8 *, unsigned int);
1: + void (*cia_encrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: + void (*cia_decrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: };
1:
1: struct compress_alg {
1: - int (*coa_compress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: - int (*coa_decompress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: + int (*coa_compress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *,
1: + unsigned int *);
1: + int (*coa_decompress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *,
1: + unsigned int *);
1: };
1:
1: struct crypto_type;
1:
1: struct crypto_alg {
1: - struct list_head cra_list;
1: - struct list_head cra_users;
1: - u32 cra_flags;
1: - unsigned int cra_blocksize;
1: - unsigned int cra_ctxsize;
1: - unsigned int cra_alignmask;
1: - int cra_priority;
1: - refcount_t cra_refcnt;
1: - char cra_name[128];
1: - char cra_driver_name[128];
1: - const struct crypto_type *cra_type;
1: - union {
1: - struct cipher_alg cipher;
1: - struct compress_alg compress;
1: - } cra_u;
1: - int (*cra_init)(struct crypto_tfm *);
1: - void (*cra_exit)(struct crypto_tfm *);
1: - void (*cra_destroy)(struct crypto_alg *);
1: - struct module *cra_module;
1: + struct list_head cra_list;
1: + struct list_head cra_users;
1: + u32 cra_flags;
1: + unsigned int cra_blocksize;
1: + unsigned int cra_ctxsize;
1: + unsigned int cra_alignmask;
1: + int cra_priority;
1: + refcount_t cra_refcnt;
1: + char cra_name[128];
1: + char cra_driver_name[128];
1: + const struct crypto_type *cra_type;
1: + union {
1: + struct cipher_alg cipher;
1: + struct compress_alg compress;
1: + } cra_u;
1: + int (*cra_init)(struct crypto_tfm *);
1: + void (*cra_exit)(struct crypto_tfm *);
1: + void (*cra_destroy)(struct crypto_alg *);
1: + struct module *cra_module;
1: };
1:
1: struct crypto_instance;
1:
1: struct crypto_type {
1: - unsigned int (*ctxsize)(struct crypto_alg *, u32, u32);
1: - unsigned int (*extsize)(struct crypto_alg *);
1: - int (*init)(struct crypto_tfm *, u32, u32);
1: - int (*init_tfm)(struct crypto_tfm *);
1: - void (*show)(struct seq_file *, struct crypto_alg *);
1: - int (*report)(struct sk_buff *, struct crypto_alg *);
1: - void (*free)(struct crypto_instance *);
1: - unsigned int type;
1: - unsigned int maskclear;
1: - unsigned int maskset;
1: - unsigned int tfmsize;
1: + unsigned int (*ctxsize)(struct crypto_alg *, u32, u32);
1: + unsigned int (*extsize)(struct crypto_alg *);
1: + int (*init)(struct crypto_tfm *, u32, u32);
1: + int (*init_tfm)(struct crypto_tfm *);
1: + void (*show)(struct seq_file *, struct crypto_alg *);
1: + int (*report)(struct sk_buff *, struct crypto_alg *);
1: + void (*free)(struct crypto_instance *);
1: + unsigned int type;
1: + unsigned int maskclear;
1: + unsigned int maskset;
1: + unsigned int tfmsize;
1: };
1:
1: struct crypto_shash;
1:
1: struct shash_desc {
1: - struct crypto_shash *tfm;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_shash *tfm;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_shash {
1: - unsigned int descsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_tfm base;
1: + unsigned int descsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_tfm base;
1: };
1:
1: struct kexec_sha_region {
1: - long unsigned int start;
1: - long unsigned int len;
1: + long unsigned int start;
1: + long unsigned int len;
1: };
1:
1: enum migrate_reason {
1: - MR_COMPACTION = 0,
1: - MR_MEMORY_FAILURE = 1,
1: - MR_MEMORY_HOTPLUG = 2,
1: - MR_SYSCALL = 3,
1: - MR_MEMPOLICY_MBIND = 4,
1: - MR_NUMA_MISPLACED = 5,
1: - MR_CONTIG_RANGE = 6,
1: - MR_TYPES = 7,
1: + MR_COMPACTION = 0,
1: + MR_MEMORY_FAILURE = 1,
1: + MR_MEMORY_HOTPLUG = 2,
1: + MR_SYSCALL = 3,
1: + MR_MEMPOLICY_MBIND = 4,
1: + MR_NUMA_MISPLACED = 5,
1: + MR_CONTIG_RANGE = 6,
1: + MR_TYPES = 7,
1: };
1:
1: typedef __kernel_ulong_t __kernel_ino_t;
1: @@ -26043,203 +26346,203 @@ typedef __kernel_ulong_t __kernel_ino_t;
1: typedef __kernel_ino_t ino_t;
1:
1: enum kernfs_node_type {
1: - KERNFS_DIR = 1,
1: - KERNFS_FILE = 2,
1: - KERNFS_LINK = 4,
1: + KERNFS_DIR = 1,
1: + KERNFS_FILE = 2,
1: + KERNFS_LINK = 4,
1: };
1:
1: enum kernfs_root_flag {
1: - KERNFS_ROOT_CREATE_DEACTIVATED = 1,
1: - KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK = 2,
1: - KERNFS_ROOT_SUPPORT_EXPORTOP = 4,
1: - KERNFS_ROOT_SUPPORT_USER_XATTR = 8,
1: + KERNFS_ROOT_CREATE_DEACTIVATED = 1,
1: + KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK = 2,
1: + KERNFS_ROOT_SUPPORT_EXPORTOP = 4,
1: + KERNFS_ROOT_SUPPORT_USER_XATTR = 8,
1: };
1:
1: struct kernfs_fs_context {
1: - struct kernfs_root *root;
1: - void *ns_tag;
1: - long unsigned int magic;
1: - bool new_sb_created;
1: + struct kernfs_root *root;
1: + void *ns_tag;
1: + long unsigned int magic;
1: + bool new_sb_created;
1: };
1:
1: enum bpf_link_type {
1: - BPF_LINK_TYPE_UNSPEC = 0,
1: - BPF_LINK_TYPE_RAW_TRACEPOINT = 1,
1: - BPF_LINK_TYPE_TRACING = 2,
1: - BPF_LINK_TYPE_CGROUP = 3,
1: - BPF_LINK_TYPE_ITER = 4,
1: - BPF_LINK_TYPE_NETNS = 5,
1: - BPF_LINK_TYPE_XDP = 6,
1: - MAX_BPF_LINK_TYPE = 7,
1: + BPF_LINK_TYPE_UNSPEC = 0,
1: + BPF_LINK_TYPE_RAW_TRACEPOINT = 1,
1: + BPF_LINK_TYPE_TRACING = 2,
1: + BPF_LINK_TYPE_CGROUP = 3,
1: + BPF_LINK_TYPE_ITER = 4,
1: + BPF_LINK_TYPE_NETNS = 5,
1: + BPF_LINK_TYPE_XDP = 6,
1: + MAX_BPF_LINK_TYPE = 7,
1: };
1:
1: struct bpf_link_info {
1: - __u32 type;
1: - __u32 id;
1: - __u32 prog_id;
1: - union {
1: - struct {
1: - __u64 tp_name;
1: - __u32 tp_name_len;
1: - } raw_tracepoint;
1: - struct {
1: - __u32 attach_type;
1: - } tracing;
1: - struct {
1: - __u64 cgroup_id;
1: - __u32 attach_type;
1: - } cgroup;
1: - struct {
1: - __u64 target_name;
1: - __u32 target_name_len;
1: - union {
1: - struct {
1: - __u32 map_id;
1: - } map;
1: - };
1: - } iter;
1: - struct {
1: - __u32 netns_ino;
1: - __u32 attach_type;
1: - } netns;
1: - struct {
1: - __u32 ifindex;
1: - } xdp;
1: - };
1: + __u32 type;
1: + __u32 id;
1: + __u32 prog_id;
1: + union {
1: + struct {
1: + __u64 tp_name;
1: + __u32 tp_name_len;
1: + } raw_tracepoint;
1: + struct {
1: + __u32 attach_type;
1: + } tracing;
1: + struct {
1: + __u64 cgroup_id;
1: + __u32 attach_type;
1: + } cgroup;
1: + struct {
1: + __u64 target_name;
1: + __u32 target_name_len;
1: + union {
1: + struct {
1: + __u32 map_id;
1: + } map;
1: + };
1: + } iter;
1: + struct {
1: + __u32 netns_ino;
1: + __u32 attach_type;
1: + } netns;
1: + struct {
1: + __u32 ifindex;
1: + } xdp;
1: + };
1: };
1:
1: struct bpf_link_ops;
1:
1: struct bpf_link {
1: - atomic64_t refcnt;
1: - u32 id;
1: - enum bpf_link_type type;
1: - const struct bpf_link_ops *ops;
1: - struct bpf_prog *prog;
1: - struct work_struct work;
1: + atomic64_t refcnt;
1: + u32 id;
1: + enum bpf_link_type type;
1: + const struct bpf_link_ops *ops;
1: + struct bpf_prog *prog;
1: + struct work_struct work;
1: };
1:
1: struct bpf_link_ops {
1: - void (*release)(struct bpf_link *);
1: - void (*dealloc)(struct bpf_link *);
1: - int (*detach)(struct bpf_link *);
1: - int (*update_prog)(struct bpf_link *, struct bpf_prog *, struct bpf_prog *);
1: - void (*show_fdinfo)(const struct bpf_link *, struct seq_file *);
1: - int (*fill_link_info)(const struct bpf_link *, struct bpf_link_info *);
1: + void (*release)(struct bpf_link *);
1: + void (*dealloc)(struct bpf_link *);
1: + int (*detach)(struct bpf_link *);
1: + int (*update_prog)(struct bpf_link *, struct bpf_prog *, struct bpf_prog *);
1: + void (*show_fdinfo)(const struct bpf_link *, struct seq_file *);
1: + int (*fill_link_info)(const struct bpf_link *, struct bpf_link_info *);
1: };
1:
1: struct bpf_cgroup_link {
1: - struct bpf_link link;
1: - struct cgroup *cgroup;
1: - enum bpf_attach_type type;
1: + struct bpf_link link;
1: + struct cgroup *cgroup;
1: + enum bpf_attach_type type;
1: };
1:
1: enum {
1: - CGRP_NOTIFY_ON_RELEASE = 0,
1: - CGRP_CPUSET_CLONE_CHILDREN = 1,
1: - CGRP_FREEZE = 2,
1: - CGRP_FROZEN = 3,
1: + CGRP_NOTIFY_ON_RELEASE = 0,
1: + CGRP_CPUSET_CLONE_CHILDREN = 1,
1: + CGRP_FREEZE = 2,
1: + CGRP_FROZEN = 3,
1: };
1:
1: enum {
1: - CGRP_ROOT_NOPREFIX = 2,
1: - CGRP_ROOT_XATTR = 4,
1: - CGRP_ROOT_NS_DELEGATE = 8,
1: - CGRP_ROOT_CPUSET_V2_MODE = 16,
1: - CGRP_ROOT_MEMORY_LOCAL_EVENTS = 32,
1: - CGRP_ROOT_MEMORY_RECURSIVE_PROT = 64,
1: + CGRP_ROOT_NOPREFIX = 2,
1: + CGRP_ROOT_XATTR = 4,
1: + CGRP_ROOT_NS_DELEGATE = 8,
1: + CGRP_ROOT_CPUSET_V2_MODE = 16,
1: + CGRP_ROOT_MEMORY_LOCAL_EVENTS = 32,
1: + CGRP_ROOT_MEMORY_RECURSIVE_PROT = 64,
1: };
1:
1: struct cgroup_taskset {
1: - struct list_head src_csets;
1: - struct list_head dst_csets;
1: - int nr_tasks;
1: - int ssid;
1: - struct list_head *csets;
1: - struct css_set *cur_cset;
1: - struct task_struct *cur_task;
1: + struct list_head src_csets;
1: + struct list_head dst_csets;
1: + int nr_tasks;
1: + int ssid;
1: + struct list_head *csets;
1: + struct css_set *cur_cset;
1: + struct task_struct *cur_task;
1: };
1:
1: struct cgroup_fs_context {
1: - struct kernfs_fs_context kfc;
1: - struct cgroup_root *root;
1: - struct cgroup_namespace *ns;
1: - unsigned int flags;
1: - bool cpuset_clone_children;
1: - bool none;
1: - bool all_ss;
1: - u16 subsys_mask;
1: - char *name;
1: - char *release_agent;
1: + struct kernfs_fs_context kfc;
1: + struct cgroup_root *root;
1: + struct cgroup_namespace *ns;
1: + unsigned int flags;
1: + bool cpuset_clone_children;
1: + bool none;
1: + bool all_ss;
1: + u16 subsys_mask;
1: + char *name;
1: + char *release_agent;
1: };
1:
1: struct cgrp_cset_link {
1: - struct cgroup *cgrp;
1: - struct css_set *cset;
1: - struct list_head cset_link;
1: - struct list_head cgrp_link;
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: + struct list_head cset_link;
1: + struct list_head cgrp_link;
1: };
1:
1: struct cgroup_mgctx {
1: - struct list_head preloaded_src_csets;
1: - struct list_head preloaded_dst_csets;
1: - struct cgroup_taskset tset;
1: - u16 ss_mask;
1: + struct list_head preloaded_src_csets;
1: + struct list_head preloaded_dst_csets;
1: + struct cgroup_taskset tset;
1: + u16 ss_mask;
1: };
1:
1: struct trace_event_raw_cgroup_root {
1: - struct trace_entry ent;
1: - int root;
1: - u16 ss_mask;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int root;
1: + u16 ss_mask;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cgroup {
1: - struct trace_entry ent;
1: - int root;
1: - int id;
1: - int level;
1: - u32 __data_loc_path;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cgroup_migrate {
1: - struct trace_entry ent;
1: - int dst_root;
1: - int dst_id;
1: - int dst_level;
1: - int pid;
1: - u32 __data_loc_dst_path;
1: - u32 __data_loc_comm;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int dst_root;
1: + int dst_id;
1: + int dst_level;
1: + int pid;
1: + u32 __data_loc_dst_path;
1: + u32 __data_loc_comm;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cgroup_event {
1: - struct trace_entry ent;
1: - int root;
1: - int id;
1: - int level;
1: - u32 __data_loc_path;
1: - int val;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + int val;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_cgroup_root {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_cgroup {
1: - u32 path;
1: + u32 path;
1: };
1:
1: struct trace_event_data_offsets_cgroup_migrate {
1: - u32 dst_path;
1: - u32 comm;
1: + u32 dst_path;
1: + u32 comm;
1: };
1:
1: struct trace_event_data_offsets_cgroup_event {
1: - u32 path;
1: + u32 path;
1: };
1:
1: typedef void (*btf_trace_cgroup_setup_root)(void *, struct cgroup_root *);
1: @@ -26258,243 +26561,250 @@ typedef void (*btf_trace_cgroup_rename)(void *, struct cgroup *, const char *);
1:
1: typedef void (*btf_trace_cgroup_freeze)(void *, struct cgroup *, const char *);
1:
1: -typedef void (*btf_trace_cgroup_unfreeze)(void *, struct cgroup *, const char *);
1: +typedef void (*btf_trace_cgroup_unfreeze)(void *, struct cgroup *,
1: + const char *);
1:
1: -typedef void (*btf_trace_cgroup_attach_task)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +typedef void (*btf_trace_cgroup_attach_task)(void *, struct cgroup *,
1: + const char *, struct task_struct *,
1: + bool);
1:
1: -typedef void (*btf_trace_cgroup_transfer_tasks)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +typedef void (*btf_trace_cgroup_transfer_tasks)(void *, struct cgroup *,
1: + const char *,
1: + struct task_struct *, bool);
1:
1: -typedef void (*btf_trace_cgroup_notify_populated)(void *, struct cgroup *, const char *, int);
1: +typedef void (*btf_trace_cgroup_notify_populated)(void *, struct cgroup *,
1: + const char *, int);
1:
1: -typedef void (*btf_trace_cgroup_notify_frozen)(void *, struct cgroup *, const char *, int);
1: +typedef void (*btf_trace_cgroup_notify_frozen)(void *, struct cgroup *,
1: + const char *, int);
1:
1: enum cgroup2_param {
1: - Opt_nsdelegate = 0,
1: - Opt_memory_localevents = 1,
1: - Opt_memory_recursiveprot = 2,
1: - nr__cgroup2_params = 3,
1: + Opt_nsdelegate = 0,
1: + Opt_memory_localevents = 1,
1: + Opt_memory_recursiveprot = 2,
1: + nr__cgroup2_params = 3,
1: };
1:
1: struct cgroupstats {
1: - __u64 nr_sleeping;
1: - __u64 nr_running;
1: - __u64 nr_stopped;
1: - __u64 nr_uninterruptible;
1: - __u64 nr_io_wait;
1: + __u64 nr_sleeping;
1: + __u64 nr_running;
1: + __u64 nr_stopped;
1: + __u64 nr_uninterruptible;
1: + __u64 nr_io_wait;
1: };
1:
1: enum cgroup_filetype {
1: - CGROUP_FILE_PROCS = 0,
1: - CGROUP_FILE_TASKS = 1,
1: + CGROUP_FILE_PROCS = 0,
1: + CGROUP_FILE_TASKS = 1,
1: };
1:
1: struct cgroup_pidlist {
1: - struct {
1: - enum cgroup_filetype type;
1: - struct pid_namespace *ns;
1: - } key;
1: - pid_t *list;
1: - int length;
1: - struct list_head links;
1: - struct cgroup *owner;
1: - struct delayed_work destroy_dwork;
1: + struct {
1: + enum cgroup_filetype type;
1: + struct pid_namespace *ns;
1: + } key;
1: + pid_t *list;
1: + int length;
1: + struct list_head links;
1: + struct cgroup *owner;
1: + struct delayed_work destroy_dwork;
1: };
1:
1: enum cgroup1_param {
1: - Opt_all = 0,
1: - Opt_clone_children = 1,
1: - Opt_cpuset_v2_mode = 2,
1: - Opt_name = 3,
1: - Opt_none = 4,
1: - Opt_noprefix = 5,
1: - Opt_release_agent = 6,
1: - Opt_xattr = 7,
1: + Opt_all = 0,
1: + Opt_clone_children = 1,
1: + Opt_cpuset_v2_mode = 2,
1: + Opt_name = 3,
1: + Opt_none = 4,
1: + Opt_noprefix = 5,
1: + Opt_release_agent = 6,
1: + Opt_xattr = 7,
1: };
1:
1: enum freezer_state_flags {
1: - CGROUP_FREEZER_ONLINE = 1,
1: - CGROUP_FREEZING_SELF = 2,
1: - CGROUP_FREEZING_PARENT = 4,
1: - CGROUP_FROZEN = 8,
1: - CGROUP_FREEZING = 6,
1: + CGROUP_FREEZER_ONLINE = 1,
1: + CGROUP_FREEZING_SELF = 2,
1: + CGROUP_FREEZING_PARENT = 4,
1: + CGROUP_FROZEN = 8,
1: + CGROUP_FREEZING = 6,
1: };
1:
1: struct freezer {
1: - struct cgroup_subsys_state css;
1: - unsigned int state;
1: + struct cgroup_subsys_state css;
1: + unsigned int state;
1: };
1:
1: struct pids_cgroup {
1: - struct cgroup_subsys_state css;
1: - atomic64_t counter;
1: - atomic64_t limit;
1: - struct cgroup_file events_file;
1: - atomic64_t events_limit;
1: + struct cgroup_subsys_state css;
1: + atomic64_t counter;
1: + atomic64_t limit;
1: + struct cgroup_file events_file;
1: + atomic64_t events_limit;
1: };
1:
1: struct root_domain___2;
1:
1: struct fmeter {
1: - int cnt;
1: - int val;
1: - time64_t time;
1: - spinlock_t lock;
1: + int cnt;
1: + int val;
1: + time64_t time;
1: + spinlock_t lock;
1: };
1:
1: struct cpuset {
1: - struct cgroup_subsys_state css;
1: - long unsigned int flags;
1: - cpumask_var_t cpus_allowed;
1: - nodemask_t mems_allowed;
1: - cpumask_var_t effective_cpus;
1: - nodemask_t effective_mems;
1: - cpumask_var_t subparts_cpus;
1: - nodemask_t old_mems_allowed;
1: - struct fmeter fmeter;
1: - int attach_in_progress;
1: - int pn;
1: - int relax_domain_level;
1: - int nr_subparts_cpus;
1: - int partition_root_state;
1: - int use_parent_ecpus;
1: - int child_ecpus_count;
1: + struct cgroup_subsys_state css;
1: + long unsigned int flags;
1: + cpumask_var_t cpus_allowed;
1: + nodemask_t mems_allowed;
1: + cpumask_var_t effective_cpus;
1: + nodemask_t effective_mems;
1: + cpumask_var_t subparts_cpus;
1: + nodemask_t old_mems_allowed;
1: + struct fmeter fmeter;
1: + int attach_in_progress;
1: + int pn;
1: + int relax_domain_level;
1: + int nr_subparts_cpus;
1: + int partition_root_state;
1: + int use_parent_ecpus;
1: + int child_ecpus_count;
1: };
1:
1: struct tmpmasks {
1: - cpumask_var_t addmask;
1: - cpumask_var_t delmask;
1: - cpumask_var_t new_cpus;
1: + cpumask_var_t addmask;
1: + cpumask_var_t delmask;
1: + cpumask_var_t new_cpus;
1: };
1:
1: typedef enum {
1: - CS_ONLINE = 0,
1: - CS_CPU_EXCLUSIVE = 1,
1: - CS_MEM_EXCLUSIVE = 2,
1: - CS_MEM_HARDWALL = 3,
1: - CS_MEMORY_MIGRATE = 4,
1: - CS_SCHED_LOAD_BALANCE = 5,
1: - CS_SPREAD_PAGE = 6,
1: - CS_SPREAD_SLAB = 7,
1: + CS_ONLINE = 0,
1: + CS_CPU_EXCLUSIVE = 1,
1: + CS_MEM_EXCLUSIVE = 2,
1: + CS_MEM_HARDWALL = 3,
1: + CS_MEMORY_MIGRATE = 4,
1: + CS_SCHED_LOAD_BALANCE = 5,
1: + CS_SPREAD_PAGE = 6,
1: + CS_SPREAD_SLAB = 7,
1: } cpuset_flagbits_t;
1:
1: enum subparts_cmd {
1: - partcmd_enable = 0,
1: - partcmd_disable = 1,
1: - partcmd_update = 2,
1: + partcmd_enable = 0,
1: + partcmd_disable = 1,
1: + partcmd_update = 2,
1: };
1:
1: struct cpuset_migrate_mm_work {
1: - struct work_struct work;
1: - struct mm_struct *mm;
1: - nodemask_t from;
1: - nodemask_t to;
1: + struct work_struct work;
1: + struct mm_struct *mm;
1: + nodemask_t from;
1: + nodemask_t to;
1: };
1:
1: typedef enum {
1: - FILE_MEMORY_MIGRATE = 0,
1: - FILE_CPULIST = 1,
1: - FILE_MEMLIST = 2,
1: - FILE_EFFECTIVE_CPULIST = 3,
1: - FILE_EFFECTIVE_MEMLIST = 4,
1: - FILE_SUBPARTS_CPULIST = 5,
1: - FILE_CPU_EXCLUSIVE = 6,
1: - FILE_MEM_EXCLUSIVE = 7,
1: - FILE_MEM_HARDWALL = 8,
1: - FILE_SCHED_LOAD_BALANCE = 9,
1: - FILE_PARTITION_ROOT = 10,
1: - FILE_SCHED_RELAX_DOMAIN_LEVEL = 11,
1: - FILE_MEMORY_PRESSURE_ENABLED = 12,
1: - FILE_MEMORY_PRESSURE = 13,
1: - FILE_SPREAD_PAGE = 14,
1: - FILE_SPREAD_SLAB = 15,
1: + FILE_MEMORY_MIGRATE = 0,
1: + FILE_CPULIST = 1,
1: + FILE_MEMLIST = 2,
1: + FILE_EFFECTIVE_CPULIST = 3,
1: + FILE_EFFECTIVE_MEMLIST = 4,
1: + FILE_SUBPARTS_CPULIST = 5,
1: + FILE_CPU_EXCLUSIVE = 6,
1: + FILE_MEM_EXCLUSIVE = 7,
1: + FILE_MEM_HARDWALL = 8,
1: + FILE_SCHED_LOAD_BALANCE = 9,
1: + FILE_PARTITION_ROOT = 10,
1: + FILE_SCHED_RELAX_DOMAIN_LEVEL = 11,
1: + FILE_MEMORY_PRESSURE_ENABLED = 12,
1: + FILE_MEMORY_PRESSURE = 13,
1: + FILE_SPREAD_PAGE = 14,
1: + FILE_SPREAD_SLAB = 15,
1: } cpuset_filetype_t;
1:
1: struct kernel_pkey_query {
1: - __u32 supported_ops;
1: - __u32 key_size;
1: - __u16 max_data_size;
1: - __u16 max_sig_size;
1: - __u16 max_enc_size;
1: - __u16 max_dec_size;
1: + __u32 supported_ops;
1: + __u32 key_size;
1: + __u16 max_data_size;
1: + __u16 max_sig_size;
1: + __u16 max_enc_size;
1: + __u16 max_dec_size;
1: };
1:
1: enum kernel_pkey_operation {
1: - kernel_pkey_encrypt = 0,
1: - kernel_pkey_decrypt = 1,
1: - kernel_pkey_sign = 2,
1: - kernel_pkey_verify = 3,
1: + kernel_pkey_encrypt = 0,
1: + kernel_pkey_decrypt = 1,
1: + kernel_pkey_sign = 2,
1: + kernel_pkey_verify = 3,
1: };
1:
1: struct kernel_pkey_params {
1: - struct key *key;
1: - const char *encoding;
1: - const char *hash_algo;
1: - char *info;
1: - __u32 in_len;
1: - union {
1: - __u32 out_len;
1: - __u32 in2_len;
1: - };
1: - enum kernel_pkey_operation op: 8;
1: + struct key *key;
1: + const char *encoding;
1: + const char *hash_algo;
1: + char *info;
1: + __u32 in_len;
1: + union {
1: + __u32 out_len;
1: + __u32 in2_len;
1: + };
1: + enum kernel_pkey_operation op : 8;
1: };
1:
1: struct key_preparsed_payload {
1: - char *description;
1: - union key_payload payload;
1: - const void *data;
1: - size_t datalen;
1: - size_t quotalen;
1: - time64_t expiry;
1: + char *description;
1: + union key_payload payload;
1: + const void *data;
1: + size_t datalen;
1: + size_t quotalen;
1: + time64_t expiry;
1: };
1:
1: struct key_match_data {
1: - bool (*cmp)(const struct key *, const struct key_match_data *);
1: - const void *raw_data;
1: - void *preparsed;
1: - unsigned int lookup_type;
1: + bool (*cmp)(const struct key *, const struct key_match_data *);
1: + const void *raw_data;
1: + void *preparsed;
1: + unsigned int lookup_type;
1: };
1:
1: struct idmap_key {
1: - bool map_up;
1: - u32 id;
1: - u32 count;
1: + bool map_up;
1: + u32 id;
1: + u32 count;
1: };
1:
1: struct ctl_path {
1: - const char *procname;
1: + const char *procname;
1: };
1:
1: typedef void (*exitcall_t)();
1:
1: struct cpu_stop_done {
1: - atomic_t nr_todo;
1: - int ret;
1: - struct completion completion;
1: + atomic_t nr_todo;
1: + int ret;
1: + struct completion completion;
1: };
1:
1: struct cpu_stopper {
1: - struct task_struct *thread;
1: - raw_spinlock_t lock;
1: - bool enabled;
1: - struct list_head works;
1: - struct cpu_stop_work stop_work;
1: + struct task_struct *thread;
1: + raw_spinlock_t lock;
1: + bool enabled;
1: + struct list_head works;
1: + struct cpu_stop_work stop_work;
1: };
1:
1: enum multi_stop_state {
1: - MULTI_STOP_NONE = 0,
1: - MULTI_STOP_PREPARE = 1,
1: - MULTI_STOP_DISABLE_IRQ = 2,
1: - MULTI_STOP_RUN = 3,
1: - MULTI_STOP_EXIT = 4,
1: + MULTI_STOP_NONE = 0,
1: + MULTI_STOP_PREPARE = 1,
1: + MULTI_STOP_DISABLE_IRQ = 2,
1: + MULTI_STOP_RUN = 3,
1: + MULTI_STOP_EXIT = 4,
1: };
1:
1: struct multi_stop_data {
1: - cpu_stop_fn_t fn;
1: - void *data;
1: - unsigned int num_threads;
1: - const struct cpumask *active_cpus;
1: - enum multi_stop_state state;
1: - atomic_t thread_ack;
1: + cpu_stop_fn_t fn;
1: + void *data;
1: + unsigned int num_threads;
1: + const struct cpumask *active_cpus;
1: + enum multi_stop_state state;
1: + atomic_t thread_ack;
1: };
1:
1: typedef int __kernel_mqd_t;
1: @@ -26502,51 +26812,51 @@ typedef int __kernel_mqd_t;
1: typedef __kernel_mqd_t mqd_t;
1:
1: enum audit_state {
1: - AUDIT_DISABLED = 0,
1: - AUDIT_BUILD_CONTEXT = 1,
1: - AUDIT_RECORD_CONTEXT = 2,
1: + AUDIT_DISABLED = 0,
1: + AUDIT_BUILD_CONTEXT = 1,
1: + AUDIT_RECORD_CONTEXT = 2,
1: };
1:
1: struct audit_cap_data {
1: - kernel_cap_t permitted;
1: - kernel_cap_t inheritable;
1: - union {
1: - unsigned int fE;
1: - kernel_cap_t effective;
1: - };
1: - kernel_cap_t ambient;
1: - kuid_t rootid;
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + union {
1: + unsigned int fE;
1: + kernel_cap_t effective;
1: + };
1: + kernel_cap_t ambient;
1: + kuid_t rootid;
1: };
1:
1: struct audit_names {
1: - struct list_head list;
1: - struct filename *name;
1: - int name_len;
1: - bool hidden;
1: - long unsigned int ino;
1: - dev_t dev;
1: - umode_t mode;
1: - kuid_t uid;
1: - kgid_t gid;
1: - dev_t rdev;
1: - u32 osid;
1: - struct audit_cap_data fcap;
1: - unsigned int fcap_ver;
1: - unsigned char type;
1: - bool should_free;
1: + struct list_head list;
1: + struct filename *name;
1: + int name_len;
1: + bool hidden;
1: + long unsigned int ino;
1: + dev_t dev;
1: + umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + dev_t rdev;
1: + u32 osid;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + unsigned char type;
1: + bool should_free;
1: };
1:
1: struct mq_attr {
1: - __kernel_long_t mq_flags;
1: - __kernel_long_t mq_maxmsg;
1: - __kernel_long_t mq_msgsize;
1: - __kernel_long_t mq_curmsgs;
1: - __kernel_long_t __reserved[4];
1: + __kernel_long_t mq_flags;
1: + __kernel_long_t mq_maxmsg;
1: + __kernel_long_t mq_msgsize;
1: + __kernel_long_t mq_curmsgs;
1: + __kernel_long_t __reserved[4];
1: };
1:
1: struct audit_proctitle {
1: - int len;
1: - char *value;
1: + int len;
1: + char *value;
1: };
1:
1: struct audit_aux_data;
1: @@ -26556,256 +26866,256 @@ struct __kernel_sockaddr_storage;
1: struct audit_tree_refs;
1:
1: struct audit_context {
1: - int dummy;
1: - int in_syscall;
1: - enum audit_state state;
1: - enum audit_state current_state;
1: - unsigned int serial;
1: - int major;
1: - struct timespec64 ctime;
1: - long unsigned int argv[4];
1: - long int return_code;
1: - u64 prio;
1: - int return_valid;
1: - struct audit_names preallocated_names[5];
1: - int name_count;
1: - struct list_head names_list;
1: - char *filterkey;
1: - struct path pwd;
1: - struct audit_aux_data *aux;
1: - struct audit_aux_data *aux_pids;
1: - struct __kernel_sockaddr_storage *sockaddr;
1: - size_t sockaddr_len;
1: - pid_t pid;
1: - pid_t ppid;
1: - kuid_t uid;
1: - kuid_t euid;
1: - kuid_t suid;
1: - kuid_t fsuid;
1: - kgid_t gid;
1: - kgid_t egid;
1: - kgid_t sgid;
1: - kgid_t fsgid;
1: - long unsigned int personality;
1: - int arch;
1: - pid_t target_pid;
1: - kuid_t target_auid;
1: - kuid_t target_uid;
1: - unsigned int target_sessionid;
1: - u32 target_sid;
1: - char target_comm[16];
1: - struct audit_tree_refs *trees;
1: - struct audit_tree_refs *first_trees;
1: - struct list_head killed_trees;
1: - int tree_count;
1: - int type;
1: - union {
1: - struct {
1: - int nargs;
1: - long int args[6];
1: - } socketcall;
1: - struct {
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: - u32 osid;
1: - int has_perm;
1: - uid_t perm_uid;
1: - gid_t perm_gid;
1: - umode_t perm_mode;
1: - long unsigned int qbytes;
1: - } ipc;
1: - struct {
1: - mqd_t mqdes;
1: - struct mq_attr mqstat;
1: - } mq_getsetattr;
1: - struct {
1: - mqd_t mqdes;
1: - int sigev_signo;
1: - } mq_notify;
1: - struct {
1: - mqd_t mqdes;
1: - size_t msg_len;
1: - unsigned int msg_prio;
1: - struct timespec64 abs_timeout;
1: - } mq_sendrecv;
1: - struct {
1: - int oflag;
1: - umode_t mode;
1: - struct mq_attr attr;
1: - } mq_open;
1: - struct {
1: - pid_t pid;
1: - struct audit_cap_data cap;
1: - } capset;
1: - struct {
1: - int fd;
1: - int flags;
1: - } mmap;
1: - struct {
1: - int argc;
1: - } execve;
1: - struct {
1: - char *name;
1: - } module;
1: - };
1: - int fds[2];
1: - struct audit_proctitle proctitle;
1: + int dummy;
1: + int in_syscall;
1: + enum audit_state state;
1: + enum audit_state current_state;
1: + unsigned int serial;
1: + int major;
1: + struct timespec64 ctime;
1: + long unsigned int argv[4];
1: + long int return_code;
1: + u64 prio;
1: + int return_valid;
1: + struct audit_names preallocated_names[5];
1: + int name_count;
1: + struct list_head names_list;
1: + char *filterkey;
1: + struct path pwd;
1: + struct audit_aux_data *aux;
1: + struct audit_aux_data *aux_pids;
1: + struct __kernel_sockaddr_storage *sockaddr;
1: + size_t sockaddr_len;
1: + pid_t pid;
1: + pid_t ppid;
1: + kuid_t uid;
1: + kuid_t euid;
1: + kuid_t suid;
1: + kuid_t fsuid;
1: + kgid_t gid;
1: + kgid_t egid;
1: + kgid_t sgid;
1: + kgid_t fsgid;
1: + long unsigned int personality;
1: + int arch;
1: + pid_t target_pid;
1: + kuid_t target_auid;
1: + kuid_t target_uid;
1: + unsigned int target_sessionid;
1: + u32 target_sid;
1: + char target_comm[16];
1: + struct audit_tree_refs *trees;
1: + struct audit_tree_refs *first_trees;
1: + struct list_head killed_trees;
1: + int tree_count;
1: + int type;
1: + union {
1: + struct {
1: + int nargs;
1: + long int args[6];
1: + } socketcall;
1: + struct {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + u32 osid;
1: + int has_perm;
1: + uid_t perm_uid;
1: + gid_t perm_gid;
1: + umode_t perm_mode;
1: + long unsigned int qbytes;
1: + } ipc;
1: + struct {
1: + mqd_t mqdes;
1: + struct mq_attr mqstat;
1: + } mq_getsetattr;
1: + struct {
1: + mqd_t mqdes;
1: + int sigev_signo;
1: + } mq_notify;
1: + struct {
1: + mqd_t mqdes;
1: + size_t msg_len;
1: + unsigned int msg_prio;
1: + struct timespec64 abs_timeout;
1: + } mq_sendrecv;
1: + struct {
1: + int oflag;
1: + umode_t mode;
1: + struct mq_attr attr;
1: + } mq_open;
1: + struct {
1: + pid_t pid;
1: + struct audit_cap_data cap;
1: + } capset;
1: + struct {
1: + int fd;
1: + int flags;
1: + } mmap;
1: + struct {
1: + int argc;
1: + } execve;
1: + struct {
1: + char *name;
1: + } module;
1: + };
1: + int fds[2];
1: + struct audit_proctitle proctitle;
1: };
1:
1: struct __kernel_sockaddr_storage {
1: - union {
1: - struct {
1: - __kernel_sa_family_t ss_family;
1: - char __data[126];
1: - };
1: - void *__align;
1: - };
1: + union {
1: + struct {
1: + __kernel_sa_family_t ss_family;
1: + char __data[126];
1: + };
1: + void *__align;
1: + };
1: };
1:
1: enum audit_nlgrps {
1: - AUDIT_NLGRP_NONE = 0,
1: - AUDIT_NLGRP_READLOG = 1,
1: - __AUDIT_NLGRP_MAX = 2,
1: + AUDIT_NLGRP_NONE = 0,
1: + AUDIT_NLGRP_READLOG = 1,
1: + __AUDIT_NLGRP_MAX = 2,
1: };
1:
1: struct audit_status {
1: - __u32 mask;
1: - __u32 enabled;
1: - __u32 failure;
1: - __u32 pid;
1: - __u32 rate_limit;
1: - __u32 backlog_limit;
1: - __u32 lost;
1: - __u32 backlog;
1: - union {
1: - __u32 version;
1: - __u32 feature_bitmap;
1: - };
1: - __u32 backlog_wait_time;
1: - __u32 backlog_wait_time_actual;
1: + __u32 mask;
1: + __u32 enabled;
1: + __u32 failure;
1: + __u32 pid;
1: + __u32 rate_limit;
1: + __u32 backlog_limit;
1: + __u32 lost;
1: + __u32 backlog;
1: + union {
1: + __u32 version;
1: + __u32 feature_bitmap;
1: + };
1: + __u32 backlog_wait_time;
1: + __u32 backlog_wait_time_actual;
1: };
1:
1: struct audit_features {
1: - __u32 vers;
1: - __u32 mask;
1: - __u32 features;
1: - __u32 lock;
1: + __u32 vers;
1: + __u32 mask;
1: + __u32 features;
1: + __u32 lock;
1: };
1:
1: struct audit_tty_status {
1: - __u32 enabled;
1: - __u32 log_passwd;
1: + __u32 enabled;
1: + __u32 log_passwd;
1: };
1:
1: struct audit_sig_info {
1: - uid_t uid;
1: - pid_t pid;
1: - char ctx[0];
1: + uid_t uid;
1: + pid_t pid;
1: + char ctx[0];
1: };
1:
1: struct net_generic {
1: - union {
1: - struct {
1: - unsigned int len;
1: - struct callback_head rcu;
1: - } s;
1: - void *ptr[0];
1: - };
1: + union {
1: + struct {
1: + unsigned int len;
1: + struct callback_head rcu;
1: + } s;
1: + void *ptr[0];
1: + };
1: };
1:
1: struct pernet_operations {
1: - struct list_head list;
1: - int (*init)(struct net *);
1: - void (*pre_exit)(struct net *);
1: - void (*exit)(struct net *);
1: - void (*exit_batch)(struct list_head *);
1: - unsigned int *id;
1: - size_t size;
1: + struct list_head list;
1: + int (*init)(struct net *);
1: + void (*pre_exit)(struct net *);
1: + void (*exit)(struct net *);
1: + void (*exit_batch)(struct list_head *);
1: + unsigned int *id;
1: + size_t size;
1: };
1:
1: struct scm_creds {
1: - u32 pid;
1: - kuid_t uid;
1: - kgid_t gid;
1: + u32 pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: };
1:
1: struct netlink_skb_parms {
1: - struct scm_creds creds;
1: - __u32 portid;
1: - __u32 dst_group;
1: - __u32 flags;
1: - struct sock *sk;
1: - bool nsid_is_set;
1: - int nsid;
1: + struct scm_creds creds;
1: + __u32 portid;
1: + __u32 dst_group;
1: + __u32 flags;
1: + struct sock *sk;
1: + bool nsid_is_set;
1: + int nsid;
1: };
1:
1: struct netlink_kernel_cfg {
1: - unsigned int groups;
1: - unsigned int flags;
1: - void (*input)(struct sk_buff *);
1: - struct mutex *cb_mutex;
1: - int (*bind)(struct net *, int);
1: - void (*unbind)(struct net *, int);
1: - bool (*compare)(struct net *, struct sock *);
1: + unsigned int groups;
1: + unsigned int flags;
1: + void (*input)(struct sk_buff *);
1: + struct mutex *cb_mutex;
1: + int (*bind)(struct net *, int);
1: + void (*unbind)(struct net *, int);
1: + bool (*compare)(struct net *, struct sock *);
1: };
1:
1: struct audit_netlink_list {
1: - __u32 portid;
1: - struct net *net;
1: - struct sk_buff_head q;
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff_head q;
1: };
1:
1: struct audit_net {
1: - struct sock *sk;
1: + struct sock *sk;
1: };
1:
1: struct auditd_connection {
1: - struct pid *pid;
1: - u32 portid;
1: - struct net *net;
1: - struct callback_head rcu;
1: + struct pid *pid;
1: + u32 portid;
1: + struct net *net;
1: + struct callback_head rcu;
1: };
1:
1: struct audit_ctl_mutex {
1: - struct mutex lock;
1: - void *owner;
1: + struct mutex lock;
1: + void *owner;
1: };
1:
1: struct audit_buffer {
1: - struct sk_buff *skb;
1: - struct audit_context *ctx;
1: - gfp_t gfp_mask;
1: + struct sk_buff *skb;
1: + struct audit_context *ctx;
1: + gfp_t gfp_mask;
1: };
1:
1: struct audit_reply {
1: - __u32 portid;
1: - struct net *net;
1: - struct sk_buff *skb;
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff *skb;
1: };
1:
1: enum {
1: - Audit_equal = 0,
1: - Audit_not_equal = 1,
1: - Audit_bitmask = 2,
1: - Audit_bittest = 3,
1: - Audit_lt = 4,
1: - Audit_gt = 5,
1: - Audit_le = 6,
1: - Audit_ge = 7,
1: - Audit_bad = 8,
1: + Audit_equal = 0,
1: + Audit_not_equal = 1,
1: + Audit_bitmask = 2,
1: + Audit_bittest = 3,
1: + Audit_lt = 4,
1: + Audit_gt = 5,
1: + Audit_le = 6,
1: + Audit_ge = 7,
1: + Audit_bad = 8,
1: };
1:
1: struct audit_rule_data {
1: - __u32 flags;
1: - __u32 action;
1: - __u32 field_count;
1: - __u32 mask[64];
1: - __u32 fields[64];
1: - __u32 values[64];
1: - __u32 fieldflags[64];
1: - __u32 buflen;
1: - char buf[0];
1: + __u32 flags;
1: + __u32 action;
1: + __u32 field_count;
1: + __u32 mask[64];
1: + __u32 fields[64];
1: + __u32 values[64];
1: + __u32 fieldflags[64];
1: + __u32 buflen;
1: + char buf[0];
1: };
1:
1: struct audit_field;
1: @@ -26817,43 +27127,43 @@ struct audit_tree;
1: struct audit_fsnotify_mark;
1:
1: struct audit_krule {
1: - u32 pflags;
1: - u32 flags;
1: - u32 listnr;
1: - u32 action;
1: - u32 mask[64];
1: - u32 buflen;
1: - u32 field_count;
1: - char *filterkey;
1: - struct audit_field *fields;
1: - struct audit_field *arch_f;
1: - struct audit_field *inode_f;
1: - struct audit_watch *watch;
1: - struct audit_tree *tree;
1: - struct audit_fsnotify_mark *exe;
1: - struct list_head rlist;
1: - struct list_head list;
1: - u64 prio;
1: + u32 pflags;
1: + u32 flags;
1: + u32 listnr;
1: + u32 action;
1: + u32 mask[64];
1: + u32 buflen;
1: + u32 field_count;
1: + char *filterkey;
1: + struct audit_field *fields;
1: + struct audit_field *arch_f;
1: + struct audit_field *inode_f;
1: + struct audit_watch *watch;
1: + struct audit_tree *tree;
1: + struct audit_fsnotify_mark *exe;
1: + struct list_head rlist;
1: + struct list_head list;
1: + u64 prio;
1: };
1:
1: struct audit_field {
1: - u32 type;
1: - union {
1: - u32 val;
1: - kuid_t uid;
1: - kgid_t gid;
1: - struct {
1: - char *lsm_str;
1: - void *lsm_rule;
1: - };
1: - };
1: - u32 op;
1: + u32 type;
1: + union {
1: + u32 val;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct {
1: + char *lsm_str;
1: + void *lsm_rule;
1: + };
1: + };
1: + u32 op;
1: };
1:
1: struct audit_entry {
1: - struct list_head list;
1: - struct callback_head rcu;
1: - struct audit_krule rule;
1: + struct list_head list;
1: + struct callback_head rcu;
1: + struct audit_krule rule;
1: };
1:
1: struct audit_buffer___2;
1: @@ -26863,127 +27173,127 @@ typedef int __kernel_key_t;
1: typedef __kernel_key_t key_t;
1:
1: struct kern_ipc_perm {
1: - spinlock_t lock;
1: - bool deleted;
1: - int id;
1: - key_t key;
1: - kuid_t uid;
1: - kgid_t gid;
1: - kuid_t cuid;
1: - kgid_t cgid;
1: - umode_t mode;
1: - long unsigned int seq;
1: - void *security;
1: - struct rhash_head khtnode;
1: - struct callback_head rcu;
1: - refcount_t refcount;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + spinlock_t lock;
1: + bool deleted;
1: + int id;
1: + key_t key;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t cuid;
1: + kgid_t cgid;
1: + umode_t mode;
1: + long unsigned int seq;
1: + void *security;
1: + struct rhash_head khtnode;
1: + struct callback_head rcu;
1: + refcount_t refcount;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct cpu_vfs_cap_data {
1: - __u32 magic_etc;
1: - kernel_cap_t permitted;
1: - kernel_cap_t inheritable;
1: - kuid_t rootid;
1: + __u32 magic_etc;
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + kuid_t rootid;
1: };
1:
1: typedef struct fsnotify_mark_connector *fsnotify_connp_t;
1:
1: struct fsnotify_mark_connector {
1: - spinlock_t lock;
1: - short unsigned int type;
1: - short unsigned int flags;
1: - __kernel_fsid_t fsid;
1: - union {
1: - fsnotify_connp_t *obj;
1: - struct fsnotify_mark_connector *destroy_next;
1: - };
1: - struct hlist_head list;
1: + spinlock_t lock;
1: + short unsigned int type;
1: + short unsigned int flags;
1: + __kernel_fsid_t fsid;
1: + union {
1: + fsnotify_connp_t *obj;
1: + struct fsnotify_mark_connector *destroy_next;
1: + };
1: + struct hlist_head list;
1: };
1:
1: enum audit_nfcfgop {
1: - AUDIT_XT_OP_REGISTER = 0,
1: - AUDIT_XT_OP_REPLACE = 1,
1: - AUDIT_XT_OP_UNREGISTER = 2,
1: - AUDIT_NFT_OP_TABLE_REGISTER = 3,
1: - AUDIT_NFT_OP_TABLE_UNREGISTER = 4,
1: - AUDIT_NFT_OP_CHAIN_REGISTER = 5,
1: - AUDIT_NFT_OP_CHAIN_UNREGISTER = 6,
1: - AUDIT_NFT_OP_RULE_REGISTER = 7,
1: - AUDIT_NFT_OP_RULE_UNREGISTER = 8,
1: - AUDIT_NFT_OP_SET_REGISTER = 9,
1: - AUDIT_NFT_OP_SET_UNREGISTER = 10,
1: - AUDIT_NFT_OP_SETELEM_REGISTER = 11,
1: - AUDIT_NFT_OP_SETELEM_UNREGISTER = 12,
1: - AUDIT_NFT_OP_GEN_REGISTER = 13,
1: - AUDIT_NFT_OP_OBJ_REGISTER = 14,
1: - AUDIT_NFT_OP_OBJ_UNREGISTER = 15,
1: - AUDIT_NFT_OP_OBJ_RESET = 16,
1: - AUDIT_NFT_OP_FLOWTABLE_REGISTER = 17,
1: - AUDIT_NFT_OP_FLOWTABLE_UNREGISTER = 18,
1: - AUDIT_NFT_OP_INVALID = 19,
1: + AUDIT_XT_OP_REGISTER = 0,
1: + AUDIT_XT_OP_REPLACE = 1,
1: + AUDIT_XT_OP_UNREGISTER = 2,
1: + AUDIT_NFT_OP_TABLE_REGISTER = 3,
1: + AUDIT_NFT_OP_TABLE_UNREGISTER = 4,
1: + AUDIT_NFT_OP_CHAIN_REGISTER = 5,
1: + AUDIT_NFT_OP_CHAIN_UNREGISTER = 6,
1: + AUDIT_NFT_OP_RULE_REGISTER = 7,
1: + AUDIT_NFT_OP_RULE_UNREGISTER = 8,
1: + AUDIT_NFT_OP_SET_REGISTER = 9,
1: + AUDIT_NFT_OP_SET_UNREGISTER = 10,
1: + AUDIT_NFT_OP_SETELEM_REGISTER = 11,
1: + AUDIT_NFT_OP_SETELEM_UNREGISTER = 12,
1: + AUDIT_NFT_OP_GEN_REGISTER = 13,
1: + AUDIT_NFT_OP_OBJ_REGISTER = 14,
1: + AUDIT_NFT_OP_OBJ_UNREGISTER = 15,
1: + AUDIT_NFT_OP_OBJ_RESET = 16,
1: + AUDIT_NFT_OP_FLOWTABLE_REGISTER = 17,
1: + AUDIT_NFT_OP_FLOWTABLE_UNREGISTER = 18,
1: + AUDIT_NFT_OP_INVALID = 19,
1: };
1:
1: enum fsnotify_obj_type {
1: - FSNOTIFY_OBJ_TYPE_INODE = 0,
1: - FSNOTIFY_OBJ_TYPE_PARENT = 1,
1: - FSNOTIFY_OBJ_TYPE_VFSMOUNT = 2,
1: - FSNOTIFY_OBJ_TYPE_SB = 3,
1: - FSNOTIFY_OBJ_TYPE_COUNT = 4,
1: - FSNOTIFY_OBJ_TYPE_DETACHED = 4,
1: + FSNOTIFY_OBJ_TYPE_INODE = 0,
1: + FSNOTIFY_OBJ_TYPE_PARENT = 1,
1: + FSNOTIFY_OBJ_TYPE_VFSMOUNT = 2,
1: + FSNOTIFY_OBJ_TYPE_SB = 3,
1: + FSNOTIFY_OBJ_TYPE_COUNT = 4,
1: + FSNOTIFY_OBJ_TYPE_DETACHED = 4,
1: };
1:
1: struct audit_aux_data {
1: - struct audit_aux_data *next;
1: - int type;
1: + struct audit_aux_data *next;
1: + int type;
1: };
1:
1: struct audit_chunk;
1:
1: struct audit_tree_refs {
1: - struct audit_tree_refs *next;
1: - struct audit_chunk *c[31];
1: + struct audit_tree_refs *next;
1: + struct audit_chunk *c[31];
1: };
1:
1: struct audit_aux_data_pids {
1: - struct audit_aux_data d;
1: - pid_t target_pid[16];
1: - kuid_t target_auid[16];
1: - kuid_t target_uid[16];
1: - unsigned int target_sessionid[16];
1: - u32 target_sid[16];
1: - char target_comm[256];
1: - int pid_count;
1: + struct audit_aux_data d;
1: + pid_t target_pid[16];
1: + kuid_t target_auid[16];
1: + kuid_t target_uid[16];
1: + unsigned int target_sessionid[16];
1: + u32 target_sid[16];
1: + char target_comm[256];
1: + int pid_count;
1: };
1:
1: struct audit_aux_data_bprm_fcaps {
1: - struct audit_aux_data d;
1: - struct audit_cap_data fcap;
1: - unsigned int fcap_ver;
1: - struct audit_cap_data old_pcap;
1: - struct audit_cap_data new_pcap;
1: + struct audit_aux_data d;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + struct audit_cap_data old_pcap;
1: + struct audit_cap_data new_pcap;
1: };
1:
1: struct audit_nfcfgop_tab {
1: - enum audit_nfcfgop op;
1: - const char *s;
1: + enum audit_nfcfgop op;
1: + const char *s;
1: };
1:
1: struct audit_parent;
1:
1: struct audit_watch {
1: - refcount_t count;
1: - dev_t dev;
1: - char *path;
1: - long unsigned int ino;
1: - struct audit_parent *parent;
1: - struct list_head wlist;
1: - struct list_head rules;
1: + refcount_t count;
1: + dev_t dev;
1: + char *path;
1: + long unsigned int ino;
1: + struct audit_parent *parent;
1: + struct list_head wlist;
1: + struct list_head rules;
1: };
1:
1: struct fsnotify_group;
1: @@ -26995,479 +27305,483 @@ struct fsnotify_mark;
1: struct fsnotify_event;
1:
1: struct fsnotify_ops {
1: - int (*handle_event)(struct fsnotify_group *, u32, const void *, int, struct inode *, const struct qstr *, u32, struct fsnotify_iter_info *);
1: - int (*handle_inode_event)(struct fsnotify_mark *, u32, struct inode *, struct inode *, const struct qstr *, u32);
1: - void (*free_group_priv)(struct fsnotify_group *);
1: - void (*freeing_mark)(struct fsnotify_mark *, struct fsnotify_group *);
1: - void (*free_event)(struct fsnotify_event *);
1: - void (*free_mark)(struct fsnotify_mark *);
1: + int (*handle_event)(struct fsnotify_group *, u32, const void *, int,
1: + struct inode *, const struct qstr *, u32,
1: + struct fsnotify_iter_info *);
1: + int (*handle_inode_event)(struct fsnotify_mark *, u32, struct inode *,
1: + struct inode *, const struct qstr *, u32);
1: + void (*free_group_priv)(struct fsnotify_group *);
1: + void (*freeing_mark)(struct fsnotify_mark *, struct fsnotify_group *);
1: + void (*free_event)(struct fsnotify_event *);
1: + void (*free_mark)(struct fsnotify_mark *);
1: };
1:
1: struct inotify_group_private_data {
1: - spinlock_t idr_lock;
1: - struct idr idr;
1: - struct ucounts *ucounts;
1: + spinlock_t idr_lock;
1: + struct idr idr;
1: + struct ucounts *ucounts;
1: };
1:
1: struct fanotify_group_private_data {
1: - struct list_head access_list;
1: - wait_queue_head_t access_waitq;
1: - int flags;
1: - int f_flags;
1: - unsigned int max_marks;
1: - struct user_struct *user;
1: + struct list_head access_list;
1: + wait_queue_head_t access_waitq;
1: + int flags;
1: + int f_flags;
1: + unsigned int max_marks;
1: + struct user_struct *user;
1: };
1:
1: struct fsnotify_group {
1: - const struct fsnotify_ops *ops;
1: - refcount_t refcnt;
1: - spinlock_t notification_lock;
1: - struct list_head notification_list;
1: - wait_queue_head_t notification_waitq;
1: - unsigned int q_len;
1: - unsigned int max_events;
1: - unsigned int priority;
1: - bool shutdown;
1: - struct mutex mark_mutex;
1: - atomic_t num_marks;
1: - atomic_t user_waits;
1: - struct list_head marks_list;
1: - struct fasync_struct *fsn_fa;
1: - struct fsnotify_event *overflow_event;
1: - struct mem_cgroup *memcg;
1: - union {
1: - void *private;
1: - struct inotify_group_private_data inotify_data;
1: - struct fanotify_group_private_data fanotify_data;
1: - };
1: + const struct fsnotify_ops *ops;
1: + refcount_t refcnt;
1: + spinlock_t notification_lock;
1: + struct list_head notification_list;
1: + wait_queue_head_t notification_waitq;
1: + unsigned int q_len;
1: + unsigned int max_events;
1: + unsigned int priority;
1: + bool shutdown;
1: + struct mutex mark_mutex;
1: + atomic_t num_marks;
1: + atomic_t user_waits;
1: + struct list_head marks_list;
1: + struct fasync_struct *fsn_fa;
1: + struct fsnotify_event *overflow_event;
1: + struct mem_cgroup *memcg;
1: + union {
1: + void *private;
1: + struct inotify_group_private_data inotify_data;
1: + struct fanotify_group_private_data fanotify_data;
1: + };
1: };
1:
1: struct fsnotify_iter_info {
1: - struct fsnotify_mark *marks[4];
1: - unsigned int report_mask;
1: - int srcu_idx;
1: + struct fsnotify_mark *marks[4];
1: + unsigned int report_mask;
1: + int srcu_idx;
1: };
1:
1: struct fsnotify_mark {
1: - __u32 mask;
1: - refcount_t refcnt;
1: - struct fsnotify_group *group;
1: - struct list_head g_list;
1: - spinlock_t lock;
1: - struct hlist_node obj_list;
1: - struct fsnotify_mark_connector *connector;
1: - __u32 ignored_mask;
1: - unsigned int flags;
1: + __u32 mask;
1: + refcount_t refcnt;
1: + struct fsnotify_group *group;
1: + struct list_head g_list;
1: + spinlock_t lock;
1: + struct hlist_node obj_list;
1: + struct fsnotify_mark_connector *connector;
1: + __u32 ignored_mask;
1: + unsigned int flags;
1: };
1:
1: struct fsnotify_event {
1: - struct list_head list;
1: - long unsigned int objectid;
1: + struct list_head list;
1: + long unsigned int objectid;
1: };
1:
1: struct audit_parent {
1: - struct list_head watches;
1: - struct fsnotify_mark mark;
1: + struct list_head watches;
1: + struct fsnotify_mark mark;
1: };
1:
1: struct audit_fsnotify_mark {
1: - dev_t dev;
1: - long unsigned int ino;
1: - char *path;
1: - struct fsnotify_mark mark;
1: - struct audit_krule *rule;
1: + dev_t dev;
1: + long unsigned int ino;
1: + char *path;
1: + struct fsnotify_mark mark;
1: + struct audit_krule *rule;
1: };
1:
1: struct audit_chunk___2;
1:
1: struct audit_tree {
1: - refcount_t count;
1: - int goner;
1: - struct audit_chunk___2 *root;
1: - struct list_head chunks;
1: - struct list_head rules;
1: - struct list_head list;
1: - struct list_head same_root;
1: - struct callback_head head;
1: - char pathname[0];
1: + refcount_t count;
1: + int goner;
1: + struct audit_chunk___2 *root;
1: + struct list_head chunks;
1: + struct list_head rules;
1: + struct list_head list;
1: + struct list_head same_root;
1: + struct callback_head head;
1: + char pathname[0];
1: };
1:
1: struct node {
1: - struct list_head list;
1: - struct audit_tree *owner;
1: - unsigned int index;
1: + struct list_head list;
1: + struct audit_tree *owner;
1: + unsigned int index;
1: };
1:
1: struct audit_chunk___2 {
1: - struct list_head hash;
1: - long unsigned int key;
1: - struct fsnotify_mark *mark;
1: - struct list_head trees;
1: - int count;
1: - atomic_long_t refs;
1: - struct callback_head head;
1: - struct node owners[0];
1: + struct list_head hash;
1: + long unsigned int key;
1: + struct fsnotify_mark *mark;
1: + struct list_head trees;
1: + int count;
1: + atomic_long_t refs;
1: + struct callback_head head;
1: + struct node owners[0];
1: };
1:
1: struct audit_tree_mark {
1: - struct fsnotify_mark mark;
1: - struct audit_chunk___2 *chunk;
1: + struct fsnotify_mark mark;
1: + struct audit_chunk___2 *chunk;
1: };
1:
1: enum {
1: - HASH_SIZE = 128,
1: + HASH_SIZE = 128,
1: };
1:
1: struct kprobe_blacklist_entry {
1: - struct list_head list;
1: - long unsigned int start_addr;
1: - long unsigned int end_addr;
1: + struct list_head list;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: };
1:
1: enum perf_record_ksymbol_type {
1: - PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,
1: - PERF_RECORD_KSYMBOL_TYPE_BPF = 1,
1: - PERF_RECORD_KSYMBOL_TYPE_OOL = 2,
1: - PERF_RECORD_KSYMBOL_TYPE_MAX = 3,
1: + PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,
1: + PERF_RECORD_KSYMBOL_TYPE_BPF = 1,
1: + PERF_RECORD_KSYMBOL_TYPE_OOL = 2,
1: + PERF_RECORD_KSYMBOL_TYPE_MAX = 3,
1: };
1:
1: struct kprobe_insn_page {
1: - struct list_head list;
1: - kprobe_opcode_t *insns;
1: - struct kprobe_insn_cache *cache;
1: - int nused;
1: - int ngarbage;
1: - char slot_used[0];
1: + struct list_head list;
1: + kprobe_opcode_t *insns;
1: + struct kprobe_insn_cache *cache;
1: + int nused;
1: + int ngarbage;
1: + char slot_used[0];
1: };
1:
1: enum kprobe_slot_state {
1: - SLOT_CLEAN = 0,
1: - SLOT_DIRTY = 1,
1: - SLOT_USED = 2,
1: + SLOT_CLEAN = 0,
1: + SLOT_DIRTY = 1,
1: + SLOT_USED = 2,
1: };
1:
1: struct serial_icounter_struct {
1: - int cts;
1: - int dsr;
1: - int rng;
1: - int dcd;
1: - int rx;
1: - int tx;
1: - int frame;
1: - int overrun;
1: - int parity;
1: - int brk;
1: - int buf_overrun;
1: - int reserved[9];
1: + int cts;
1: + int dsr;
1: + int rng;
1: + int dcd;
1: + int rx;
1: + int tx;
1: + int frame;
1: + int overrun;
1: + int parity;
1: + int brk;
1: + int buf_overrun;
1: + int reserved[9];
1: };
1:
1: struct serial_struct {
1: - int type;
1: - int line;
1: - unsigned int port;
1: - int irq;
1: - int flags;
1: - int xmit_fifo_size;
1: - int custom_divisor;
1: - int baud_base;
1: - short unsigned int close_delay;
1: - char io_type;
1: - char reserved_char[1];
1: - int hub6;
1: - short unsigned int closing_wait;
1: - short unsigned int closing_wait2;
1: - unsigned char *iomem_base;
1: - short unsigned int iomem_reg_shift;
1: - unsigned int port_high;
1: - long unsigned int iomap_base;
1: + int type;
1: + int line;
1: + unsigned int port;
1: + int irq;
1: + int flags;
1: + int xmit_fifo_size;
1: + int custom_divisor;
1: + int baud_base;
1: + short unsigned int close_delay;
1: + char io_type;
1: + char reserved_char[1];
1: + int hub6;
1: + short unsigned int closing_wait;
1: + short unsigned int closing_wait2;
1: + unsigned char *iomem_base;
1: + short unsigned int iomem_reg_shift;
1: + unsigned int port_high;
1: + long unsigned int iomap_base;
1: };
1:
1: struct kgdb_io {
1: - const char *name;
1: - int (*read_char)();
1: - void (*write_char)(u8);
1: - void (*flush)();
1: - int (*init)();
1: - void (*deinit)();
1: - void (*pre_exception)();
1: - void (*post_exception)();
1: - struct console *cons;
1: + const char *name;
1: + int (*read_char)();
1: + void (*write_char)(u8);
1: + void (*flush)();
1: + int (*init)();
1: + void (*deinit)();
1: + void (*pre_exception)();
1: + void (*post_exception)();
1: + struct console *cons;
1: };
1:
1: enum {
1: - KDB_NOT_INITIALIZED = 0,
1: - KDB_INIT_EARLY = 1,
1: - KDB_INIT_FULL = 2,
1: + KDB_NOT_INITIALIZED = 0,
1: + KDB_INIT_EARLY = 1,
1: + KDB_INIT_FULL = 2,
1: };
1:
1: struct kgdb_state {
1: - int ex_vector;
1: - int signo;
1: - int err_code;
1: - int cpu;
1: - int pass_exception;
1: - long unsigned int thr_query;
1: - long unsigned int threadid;
1: - long int kgdb_usethreadid;
1: - struct pt_regs *linux_regs;
1: - atomic_t *send_ready;
1: + int ex_vector;
1: + int signo;
1: + int err_code;
1: + int cpu;
1: + int pass_exception;
1: + long unsigned int thr_query;
1: + long unsigned int threadid;
1: + long int kgdb_usethreadid;
1: + struct pt_regs *linux_regs;
1: + atomic_t *send_ready;
1: };
1:
1: struct debuggerinfo_struct {
1: - void *debuggerinfo;
1: - struct task_struct *task;
1: - int exception_state;
1: - int ret_state;
1: - int irq_depth;
1: - int enter_kgdb;
1: - bool rounding_up;
1: + void *debuggerinfo;
1: + struct task_struct *task;
1: + int exception_state;
1: + int ret_state;
1: + int irq_depth;
1: + int enter_kgdb;
1: + bool rounding_up;
1: };
1:
1: struct seccomp_data {
1: - int nr;
1: - __u32 arch;
1: - __u64 instruction_pointer;
1: - __u64 args[6];
1: + int nr;
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 args[6];
1: };
1:
1: struct seccomp_notif_sizes {
1: - __u16 seccomp_notif;
1: - __u16 seccomp_notif_resp;
1: - __u16 seccomp_data;
1: + __u16 seccomp_notif;
1: + __u16 seccomp_notif_resp;
1: + __u16 seccomp_data;
1: };
1:
1: struct seccomp_notif {
1: - __u64 id;
1: - __u32 pid;
1: - __u32 flags;
1: - struct seccomp_data data;
1: + __u64 id;
1: + __u32 pid;
1: + __u32 flags;
1: + struct seccomp_data data;
1: };
1:
1: struct seccomp_notif_resp {
1: - __u64 id;
1: - __s64 val;
1: - __s32 error;
1: - __u32 flags;
1: + __u64 id;
1: + __s64 val;
1: + __s32 error;
1: + __u32 flags;
1: };
1:
1: struct seccomp_notif_addfd {
1: - __u64 id;
1: - __u32 flags;
1: - __u32 srcfd;
1: - __u32 newfd;
1: - __u32 newfd_flags;
1: + __u64 id;
1: + __u32 flags;
1: + __u32 srcfd;
1: + __u32 newfd;
1: + __u32 newfd_flags;
1: };
1:
1: struct notification;
1:
1: struct seccomp_filter {
1: - refcount_t refs;
1: - refcount_t users;
1: - bool log;
1: - struct seccomp_filter *prev;
1: - struct bpf_prog *prog;
1: - struct notification *notif;
1: - struct mutex notify_lock;
1: - wait_queue_head_t wqh;
1: + refcount_t refs;
1: + refcount_t users;
1: + bool log;
1: + struct seccomp_filter *prev;
1: + struct bpf_prog *prog;
1: + struct notification *notif;
1: + struct mutex notify_lock;
1: + wait_queue_head_t wqh;
1: };
1:
1: struct seccomp_metadata {
1: - __u64 filter_off;
1: - __u64 flags;
1: + __u64 filter_off;
1: + __u64 flags;
1: };
1:
1: struct sock_fprog {
1: - short unsigned int len;
1: - struct sock_filter *filter;
1: + short unsigned int len;
1: + struct sock_filter *filter;
1: };
1:
1: struct compat_sock_fprog {
1: - u16 len;
1: - compat_uptr_t filter;
1: + u16 len;
1: + compat_uptr_t filter;
1: };
1:
1: enum notify_state {
1: - SECCOMP_NOTIFY_INIT = 0,
1: - SECCOMP_NOTIFY_SENT = 1,
1: - SECCOMP_NOTIFY_REPLIED = 2,
1: + SECCOMP_NOTIFY_INIT = 0,
1: + SECCOMP_NOTIFY_SENT = 1,
1: + SECCOMP_NOTIFY_REPLIED = 2,
1: };
1:
1: struct seccomp_knotif {
1: - struct task_struct *task;
1: - u64 id;
1: - const struct seccomp_data *data;
1: - enum notify_state state;
1: - int error;
1: - long int val;
1: - u32 flags;
1: - struct completion ready;
1: - struct list_head list;
1: - struct list_head addfd;
1: + struct task_struct *task;
1: + u64 id;
1: + const struct seccomp_data *data;
1: + enum notify_state state;
1: + int error;
1: + long int val;
1: + u32 flags;
1: + struct completion ready;
1: + struct list_head list;
1: + struct list_head addfd;
1: };
1:
1: struct seccomp_kaddfd {
1: - struct file *file;
1: - int fd;
1: - unsigned int flags;
1: - int ret;
1: - struct completion completion;
1: - struct list_head list;
1: + struct file *file;
1: + int fd;
1: + unsigned int flags;
1: + int ret;
1: + struct completion completion;
1: + struct list_head list;
1: };
1:
1: struct notification {
1: - struct semaphore request;
1: - u64 next_id;
1: - struct list_head notifications;
1: + struct semaphore request;
1: + u64 next_id;
1: + struct list_head notifications;
1: };
1:
1: struct seccomp_log_name {
1: - u32 log;
1: - const char *name;
1: + u32 log;
1: + const char *name;
1: };
1:
1: struct rchan;
1:
1: struct rchan_buf {
1: - void *start;
1: - void *data;
1: - size_t offset;
1: - size_t subbufs_produced;
1: - size_t subbufs_consumed;
1: - struct rchan *chan;
1: - wait_queue_head_t read_wait;
1: - struct irq_work wakeup_work;
1: - struct dentry *dentry;
1: - struct kref kref;
1: - struct page **page_array;
1: - unsigned int page_count;
1: - unsigned int finalized;
1: - size_t *padding;
1: - size_t prev_padding;
1: - size_t bytes_consumed;
1: - size_t early_bytes;
1: - unsigned int cpu;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + void *start;
1: + void *data;
1: + size_t offset;
1: + size_t subbufs_produced;
1: + size_t subbufs_consumed;
1: + struct rchan *chan;
1: + wait_queue_head_t read_wait;
1: + struct irq_work wakeup_work;
1: + struct dentry *dentry;
1: + struct kref kref;
1: + struct page **page_array;
1: + unsigned int page_count;
1: + unsigned int finalized;
1: + size_t *padding;
1: + size_t prev_padding;
1: + size_t bytes_consumed;
1: + size_t early_bytes;
1: + unsigned int cpu;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct rchan_callbacks;
1:
1: struct rchan {
1: - u32 version;
1: - size_t subbuf_size;
1: - size_t n_subbufs;
1: - size_t alloc_size;
1: - struct rchan_callbacks *cb;
1: - struct kref kref;
1: - void *private_data;
1: - size_t last_toobig;
1: - struct rchan_buf **buf;
1: - int is_global;
1: - struct list_head list;
1: - struct dentry *parent;
1: - int has_base_filename;
1: - char base_filename[255];
1: + u32 version;
1: + size_t subbuf_size;
1: + size_t n_subbufs;
1: + size_t alloc_size;
1: + struct rchan_callbacks *cb;
1: + struct kref kref;
1: + void *private_data;
1: + size_t last_toobig;
1: + struct rchan_buf **buf;
1: + int is_global;
1: + struct list_head list;
1: + struct dentry *parent;
1: + int has_base_filename;
1: + char base_filename[255];
1: };
1:
1: struct rchan_callbacks {
1: - int (*subbuf_start)(struct rchan_buf *, void *, void *, size_t);
1: - void (*buf_mapped)(struct rchan_buf *, struct file *);
1: - void (*buf_unmapped)(struct rchan_buf *, struct file *);
1: - struct dentry * (*create_buf_file)(const char *, struct dentry *, umode_t, struct rchan_buf *, int *);
1: - int (*remove_buf_file)(struct dentry *);
1: + int (*subbuf_start)(struct rchan_buf *, void *, void *, size_t);
1: + void (*buf_mapped)(struct rchan_buf *, struct file *);
1: + void (*buf_unmapped)(struct rchan_buf *, struct file *);
1: + struct dentry *(*create_buf_file)(const char *, struct dentry *, umode_t,
1: + struct rchan_buf *, int *);
1: + int (*remove_buf_file)(struct dentry *);
1: };
1:
1: struct partial_page {
1: - unsigned int offset;
1: - unsigned int len;
1: - long unsigned int private;
1: + unsigned int offset;
1: + unsigned int len;
1: + long unsigned int private;
1: };
1:
1: struct splice_pipe_desc {
1: - struct page **pages;
1: - struct partial_page *partial;
1: - int nr_pages;
1: - unsigned int nr_pages_max;
1: - const struct pipe_buf_operations *ops;
1: - void (*spd_release)(struct splice_pipe_desc *, unsigned int);
1: + struct page **pages;
1: + struct partial_page *partial;
1: + int nr_pages;
1: + unsigned int nr_pages_max;
1: + const struct pipe_buf_operations *ops;
1: + void (*spd_release)(struct splice_pipe_desc *, unsigned int);
1: };
1:
1: struct rchan_percpu_buf_dispatcher {
1: - struct rchan_buf *buf;
1: - struct dentry *dentry;
1: + struct rchan_buf *buf;
1: + struct dentry *dentry;
1: };
1:
1: enum {
1: - TASKSTATS_TYPE_UNSPEC = 0,
1: - TASKSTATS_TYPE_PID = 1,
1: - TASKSTATS_TYPE_TGID = 2,
1: - TASKSTATS_TYPE_STATS = 3,
1: - TASKSTATS_TYPE_AGGR_PID = 4,
1: - TASKSTATS_TYPE_AGGR_TGID = 5,
1: - TASKSTATS_TYPE_NULL = 6,
1: - __TASKSTATS_TYPE_MAX = 7,
1: + TASKSTATS_TYPE_UNSPEC = 0,
1: + TASKSTATS_TYPE_PID = 1,
1: + TASKSTATS_TYPE_TGID = 2,
1: + TASKSTATS_TYPE_STATS = 3,
1: + TASKSTATS_TYPE_AGGR_PID = 4,
1: + TASKSTATS_TYPE_AGGR_TGID = 5,
1: + TASKSTATS_TYPE_NULL = 6,
1: + __TASKSTATS_TYPE_MAX = 7,
1: };
1:
1: enum {
1: - TASKSTATS_CMD_ATTR_UNSPEC = 0,
1: - TASKSTATS_CMD_ATTR_PID = 1,
1: - TASKSTATS_CMD_ATTR_TGID = 2,
1: - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 3,
1: - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 4,
1: - __TASKSTATS_CMD_ATTR_MAX = 5,
1: + TASKSTATS_CMD_ATTR_UNSPEC = 0,
1: + TASKSTATS_CMD_ATTR_PID = 1,
1: + TASKSTATS_CMD_ATTR_TGID = 2,
1: + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 3,
1: + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 4,
1: + __TASKSTATS_CMD_ATTR_MAX = 5,
1: };
1:
1: enum {
1: - CGROUPSTATS_CMD_UNSPEC = 3,
1: - CGROUPSTATS_CMD_GET = 4,
1: - CGROUPSTATS_CMD_NEW = 5,
1: - __CGROUPSTATS_CMD_MAX = 6,
1: + CGROUPSTATS_CMD_UNSPEC = 3,
1: + CGROUPSTATS_CMD_GET = 4,
1: + CGROUPSTATS_CMD_NEW = 5,
1: + __CGROUPSTATS_CMD_MAX = 6,
1: };
1:
1: enum {
1: - CGROUPSTATS_TYPE_UNSPEC = 0,
1: - CGROUPSTATS_TYPE_CGROUP_STATS = 1,
1: - __CGROUPSTATS_TYPE_MAX = 2,
1: + CGROUPSTATS_TYPE_UNSPEC = 0,
1: + CGROUPSTATS_TYPE_CGROUP_STATS = 1,
1: + __CGROUPSTATS_TYPE_MAX = 2,
1: };
1:
1: enum {
1: - CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
1: - CGROUPSTATS_CMD_ATTR_FD = 1,
1: - __CGROUPSTATS_CMD_ATTR_MAX = 2,
1: + CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
1: + CGROUPSTATS_CMD_ATTR_FD = 1,
1: + __CGROUPSTATS_CMD_ATTR_MAX = 2,
1: };
1:
1: struct genlmsghdr {
1: - __u8 cmd;
1: - __u8 version;
1: - __u16 reserved;
1: -};
1: -
1: -enum {
1: - NLA_UNSPEC = 0,
1: - NLA_U8 = 1,
1: - NLA_U16 = 2,
1: - NLA_U32 = 3,
1: - NLA_U64 = 4,
1: - NLA_STRING = 5,
1: - NLA_FLAG = 6,
1: - NLA_MSECS = 7,
1: - NLA_NESTED = 8,
1: - NLA_NESTED_ARRAY = 9,
1: - NLA_NUL_STRING = 10,
1: - NLA_BINARY = 11,
1: - NLA_S8 = 12,
1: - NLA_S16 = 13,
1: - NLA_S32 = 14,
1: - NLA_S64 = 15,
1: - NLA_BITFIELD32 = 16,
1: - NLA_REJECT = 17,
1: - __NLA_TYPE_MAX = 18,
1: + __u8 cmd;
1: + __u8 version;
1: + __u16 reserved;
1: +};
1: +
1: +enum {
1: + NLA_UNSPEC = 0,
1: + NLA_U8 = 1,
1: + NLA_U16 = 2,
1: + NLA_U32 = 3,
1: + NLA_U64 = 4,
1: + NLA_STRING = 5,
1: + NLA_FLAG = 6,
1: + NLA_MSECS = 7,
1: + NLA_NESTED = 8,
1: + NLA_NESTED_ARRAY = 9,
1: + NLA_NUL_STRING = 10,
1: + NLA_BINARY = 11,
1: + NLA_S8 = 12,
1: + NLA_S16 = 13,
1: + NLA_S32 = 14,
1: + NLA_S64 = 15,
1: + NLA_BITFIELD32 = 16,
1: + NLA_REJECT = 17,
1: + __NLA_TYPE_MAX = 18,
1: };
1:
1: struct genl_multicast_group {
1: - char name[16];
1: + char name[16];
1: };
1:
1: struct genl_ops;
1: @@ -27477,180 +27791,182 @@ struct genl_info;
1: struct genl_small_ops;
1:
1: struct genl_family {
1: - int id;
1: - unsigned int hdrsize;
1: - char name[16];
1: - unsigned int version;
1: - unsigned int maxattr;
1: - unsigned int mcgrp_offset;
1: - u8 netnsok: 1;
1: - u8 parallel_ops: 1;
1: - u8 n_ops;
1: - u8 n_small_ops;
1: - u8 n_mcgrps;
1: - const struct nla_policy *policy;
1: - int (*pre_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: - void (*post_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: - const struct genl_ops *ops;
1: - const struct genl_small_ops *small_ops;
1: - const struct genl_multicast_group *mcgrps;
1: - struct module *module;
1: + int id;
1: + unsigned int hdrsize;
1: + char name[16];
1: + unsigned int version;
1: + unsigned int maxattr;
1: + unsigned int mcgrp_offset;
1: + u8 netnsok : 1;
1: + u8 parallel_ops : 1;
1: + u8 n_ops;
1: + u8 n_small_ops;
1: + u8 n_mcgrps;
1: + const struct nla_policy *policy;
1: + int (*pre_doit)(const struct genl_ops *, struct sk_buff *,
1: + struct genl_info *);
1: + void (*post_doit)(const struct genl_ops *, struct sk_buff *,
1: + struct genl_info *);
1: + const struct genl_ops *ops;
1: + const struct genl_small_ops *small_ops;
1: + const struct genl_multicast_group *mcgrps;
1: + struct module *module;
1: };
1:
1: struct genl_ops {
1: - int (*doit)(struct sk_buff *, struct genl_info *);
1: - int (*start)(struct netlink_callback *);
1: - int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: - int (*done)(struct netlink_callback *);
1: - const struct nla_policy *policy;
1: - unsigned int maxattr;
1: - u8 cmd;
1: - u8 internal_flags;
1: - u8 flags;
1: - u8 validate;
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*start)(struct netlink_callback *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + const struct nla_policy *policy;
1: + unsigned int maxattr;
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: };
1:
1: struct genl_info {
1: - u32 snd_seq;
1: - u32 snd_portid;
1: - struct nlmsghdr *nlhdr;
1: - struct genlmsghdr *genlhdr;
1: - void *userhdr;
1: - struct nlattr **attrs;
1: - possible_net_t _net;
1: - void *user_ptr[2];
1: - struct netlink_ext_ack *extack;
1: + u32 snd_seq;
1: + u32 snd_portid;
1: + struct nlmsghdr *nlhdr;
1: + struct genlmsghdr *genlhdr;
1: + void *userhdr;
1: + struct nlattr **attrs;
1: + possible_net_t _net;
1: + void *user_ptr[2];
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct genl_small_ops {
1: - int (*doit)(struct sk_buff *, struct genl_info *);
1: - int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: - u8 cmd;
1: - u8 internal_flags;
1: - u8 flags;
1: - u8 validate;
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: };
1:
1: enum genl_validate_flags {
1: - GENL_DONT_VALIDATE_STRICT = 1,
1: - GENL_DONT_VALIDATE_DUMP = 2,
1: - GENL_DONT_VALIDATE_DUMP_STRICT = 4,
1: + GENL_DONT_VALIDATE_STRICT = 1,
1: + GENL_DONT_VALIDATE_DUMP = 2,
1: + GENL_DONT_VALIDATE_DUMP_STRICT = 4,
1: };
1:
1: struct listener {
1: - struct list_head list;
1: - pid_t pid;
1: - char valid;
1: + struct list_head list;
1: + pid_t pid;
1: + char valid;
1: };
1:
1: struct listener_list {
1: - struct rw_semaphore sem;
1: - struct list_head list;
1: + struct rw_semaphore sem;
1: + struct list_head list;
1: };
1:
1: enum actions {
1: - REGISTER = 0,
1: - DEREGISTER = 1,
1: - CPU_DONT_CARE = 2,
1: + REGISTER = 0,
1: + DEREGISTER = 1,
1: + CPU_DONT_CARE = 2,
1: };
1:
1: struct tp_module {
1: - struct list_head list;
1: - struct module *mod;
1: + struct list_head list;
1: + struct module *mod;
1: };
1:
1: struct tp_probes {
1: - struct callback_head rcu;
1: - struct tracepoint_func probes[0];
1: -};
1: -
1: -enum {
1: - FTRACE_OPS_FL_ENABLED = 1,
1: - FTRACE_OPS_FL_DYNAMIC = 2,
1: - FTRACE_OPS_FL_SAVE_REGS = 4,
1: - FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 8,
1: - FTRACE_OPS_FL_RECURSION_SAFE = 16,
1: - FTRACE_OPS_FL_STUB = 32,
1: - FTRACE_OPS_FL_INITIALIZED = 64,
1: - FTRACE_OPS_FL_DELETED = 128,
1: - FTRACE_OPS_FL_ADDING = 256,
1: - FTRACE_OPS_FL_REMOVING = 512,
1: - FTRACE_OPS_FL_MODIFYING = 1024,
1: - FTRACE_OPS_FL_ALLOC_TRAMP = 2048,
1: - FTRACE_OPS_FL_IPMODIFY = 4096,
1: - FTRACE_OPS_FL_PID = 8192,
1: - FTRACE_OPS_FL_RCU = 16384,
1: - FTRACE_OPS_FL_TRACE_ARRAY = 32768,
1: - FTRACE_OPS_FL_PERMANENT = 65536,
1: - FTRACE_OPS_FL_DIRECT = 131072,
1: + struct callback_head rcu;
1: + struct tracepoint_func probes[0];
1: +};
1: +
1: +enum {
1: + FTRACE_OPS_FL_ENABLED = 1,
1: + FTRACE_OPS_FL_DYNAMIC = 2,
1: + FTRACE_OPS_FL_SAVE_REGS = 4,
1: + FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 8,
1: + FTRACE_OPS_FL_RECURSION_SAFE = 16,
1: + FTRACE_OPS_FL_STUB = 32,
1: + FTRACE_OPS_FL_INITIALIZED = 64,
1: + FTRACE_OPS_FL_DELETED = 128,
1: + FTRACE_OPS_FL_ADDING = 256,
1: + FTRACE_OPS_FL_REMOVING = 512,
1: + FTRACE_OPS_FL_MODIFYING = 1024,
1: + FTRACE_OPS_FL_ALLOC_TRAMP = 2048,
1: + FTRACE_OPS_FL_IPMODIFY = 4096,
1: + FTRACE_OPS_FL_PID = 8192,
1: + FTRACE_OPS_FL_RCU = 16384,
1: + FTRACE_OPS_FL_TRACE_ARRAY = 32768,
1: + FTRACE_OPS_FL_PERMANENT = 65536,
1: + FTRACE_OPS_FL_DIRECT = 131072,
1: };
1:
1: struct ftrace_hash {
1: - long unsigned int size_bits;
1: - struct hlist_head *buckets;
1: - long unsigned int count;
1: - long unsigned int flags;
1: - struct callback_head rcu;
1: + long unsigned int size_bits;
1: + struct hlist_head *buckets;
1: + long unsigned int count;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: };
1:
1: struct ftrace_func_entry {
1: - struct hlist_node hlist;
1: - long unsigned int ip;
1: - long unsigned int direct;
1: + struct hlist_node hlist;
1: + long unsigned int ip;
1: + long unsigned int direct;
1: };
1:
1: enum ftrace_bug_type {
1: - FTRACE_BUG_UNKNOWN = 0,
1: - FTRACE_BUG_INIT = 1,
1: - FTRACE_BUG_NOP = 2,
1: - FTRACE_BUG_CALL = 3,
1: - FTRACE_BUG_UPDATE = 4,
1: + FTRACE_BUG_UNKNOWN = 0,
1: + FTRACE_BUG_INIT = 1,
1: + FTRACE_BUG_NOP = 2,
1: + FTRACE_BUG_CALL = 3,
1: + FTRACE_BUG_UPDATE = 4,
1: };
1:
1: enum {
1: - FTRACE_FL_ENABLED = 2147483648,
1: - FTRACE_FL_REGS = 1073741824,
1: - FTRACE_FL_REGS_EN = 536870912,
1: - FTRACE_FL_TRAMP = 268435456,
1: - FTRACE_FL_TRAMP_EN = 134217728,
1: - FTRACE_FL_IPMODIFY = 67108864,
1: - FTRACE_FL_DISABLED = 33554432,
1: - FTRACE_FL_DIRECT = 16777216,
1: - FTRACE_FL_DIRECT_EN = 8388608,
1: + FTRACE_FL_ENABLED = 2147483648,
1: + FTRACE_FL_REGS = 1073741824,
1: + FTRACE_FL_REGS_EN = 536870912,
1: + FTRACE_FL_TRAMP = 268435456,
1: + FTRACE_FL_TRAMP_EN = 134217728,
1: + FTRACE_FL_IPMODIFY = 67108864,
1: + FTRACE_FL_DISABLED = 33554432,
1: + FTRACE_FL_DIRECT = 16777216,
1: + FTRACE_FL_DIRECT_EN = 8388608,
1: };
1:
1: enum {
1: - FTRACE_UPDATE_IGNORE = 0,
1: - FTRACE_UPDATE_MAKE_CALL = 1,
1: - FTRACE_UPDATE_MODIFY_CALL = 2,
1: - FTRACE_UPDATE_MAKE_NOP = 3,
1: + FTRACE_UPDATE_IGNORE = 0,
1: + FTRACE_UPDATE_MAKE_CALL = 1,
1: + FTRACE_UPDATE_MODIFY_CALL = 2,
1: + FTRACE_UPDATE_MAKE_NOP = 3,
1: };
1:
1: enum {
1: - FTRACE_ITER_FILTER = 1,
1: - FTRACE_ITER_NOTRACE = 2,
1: - FTRACE_ITER_PRINTALL = 4,
1: - FTRACE_ITER_DO_PROBES = 8,
1: - FTRACE_ITER_PROBE = 16,
1: - FTRACE_ITER_MOD = 32,
1: - FTRACE_ITER_ENABLED = 64,
1: + FTRACE_ITER_FILTER = 1,
1: + FTRACE_ITER_NOTRACE = 2,
1: + FTRACE_ITER_PRINTALL = 4,
1: + FTRACE_ITER_DO_PROBES = 8,
1: + FTRACE_ITER_PROBE = 16,
1: + FTRACE_ITER_MOD = 32,
1: + FTRACE_ITER_ENABLED = 64,
1: };
1:
1: struct prog_entry;
1:
1: struct event_filter {
1: - struct prog_entry *prog;
1: - char *filter_string;
1: + struct prog_entry *prog;
1: + char *filter_string;
1: };
1:
1: struct trace_array_cpu;
1:
1: struct array_buffer {
1: - struct trace_array *tr;
1: - struct trace_buffer *buffer;
1: - struct trace_array_cpu *data;
1: - u64 time_start;
1: - int cpu;
1: + struct trace_array *tr;
1: + struct trace_buffer *buffer;
1: + struct trace_array_cpu *data;
1: + u64 time_start;
1: + int cpu;
1: };
1:
1: struct trace_pid_list;
1: @@ -27658,353 +27974,360 @@ struct trace_pid_list;
1: struct trace_options;
1:
1: struct trace_array {
1: - struct list_head list;
1: - char *name;
1: - struct array_buffer array_buffer;
1: - struct trace_pid_list *filtered_pids;
1: - struct trace_pid_list *filtered_no_pids;
1: - arch_spinlock_t max_lock;
1: - int buffer_disabled;
1: - int sys_refcount_enter;
1: - int sys_refcount_exit;
1: - struct trace_event_file *enter_syscall_files[441];
1: - struct trace_event_file *exit_syscall_files[441];
1: - int stop_count;
1: - int clock_id;
1: - int nr_topts;
1: - bool clear_trace;
1: - int buffer_percent;
1: - unsigned int n_err_log_entries;
1: - struct tracer *current_trace;
1: - unsigned int trace_flags;
1: - unsigned char trace_flags_index[32];
1: - unsigned int flags;
1: - raw_spinlock_t start_lock;
1: - struct list_head err_log;
1: - struct dentry *dir;
1: - struct dentry *options;
1: - struct dentry *percpu_dir;
1: - struct dentry *event_dir;
1: - struct trace_options *topts;
1: - struct list_head systems;
1: - struct list_head events;
1: - struct trace_event_file *trace_marker_file;
1: - cpumask_var_t tracing_cpumask;
1: - int ref;
1: - int trace_ref;
1: - struct ftrace_ops *ops;
1: - struct trace_pid_list *function_pids;
1: - struct trace_pid_list *function_no_pids;
1: - struct list_head func_probes;
1: - struct list_head mod_trace;
1: - struct list_head mod_notrace;
1: - int function_enabled;
1: - int time_stamp_abs_ref;
1: - struct list_head hist_vars;
1: + struct list_head list;
1: + char *name;
1: + struct array_buffer array_buffer;
1: + struct trace_pid_list *filtered_pids;
1: + struct trace_pid_list *filtered_no_pids;
1: + arch_spinlock_t max_lock;
1: + int buffer_disabled;
1: + int sys_refcount_enter;
1: + int sys_refcount_exit;
1: + struct trace_event_file *enter_syscall_files[441];
1: + struct trace_event_file *exit_syscall_files[441];
1: + int stop_count;
1: + int clock_id;
1: + int nr_topts;
1: + bool clear_trace;
1: + int buffer_percent;
1: + unsigned int n_err_log_entries;
1: + struct tracer *current_trace;
1: + unsigned int trace_flags;
1: + unsigned char trace_flags_index[32];
1: + unsigned int flags;
1: + raw_spinlock_t start_lock;
1: + struct list_head err_log;
1: + struct dentry *dir;
1: + struct dentry *options;
1: + struct dentry *percpu_dir;
1: + struct dentry *event_dir;
1: + struct trace_options *topts;
1: + struct list_head systems;
1: + struct list_head events;
1: + struct trace_event_file *trace_marker_file;
1: + cpumask_var_t tracing_cpumask;
1: + int ref;
1: + int trace_ref;
1: + struct ftrace_ops *ops;
1: + struct trace_pid_list *function_pids;
1: + struct trace_pid_list *function_no_pids;
1: + struct list_head func_probes;
1: + struct list_head mod_trace;
1: + struct list_head mod_notrace;
1: + int function_enabled;
1: + int time_stamp_abs_ref;
1: + struct list_head hist_vars;
1: };
1:
1: struct tracer_flags;
1:
1: struct tracer {
1: - const char *name;
1: - int (*init)(struct trace_array *);
1: - void (*reset)(struct trace_array *);
1: - void (*start)(struct trace_array *);
1: - void (*stop)(struct trace_array *);
1: - int (*update_thresh)(struct trace_array *);
1: - void (*open)(struct trace_iterator *);
1: - void (*pipe_open)(struct trace_iterator *);
1: - void (*close)(struct trace_iterator *);
1: - void (*pipe_close)(struct trace_iterator *);
1: - ssize_t (*read)(struct trace_iterator *, struct file *, char *, size_t, loff_t *);
1: - ssize_t (*splice_read)(struct trace_iterator *, struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: - void (*print_header)(struct seq_file *);
1: - enum print_line_t (*print_line)(struct trace_iterator *);
1: - int (*set_flag)(struct trace_array *, u32, u32, int);
1: - int (*flag_changed)(struct trace_array *, u32, int);
1: - struct tracer *next;
1: - struct tracer_flags *flags;
1: - int enabled;
1: - bool print_max;
1: - bool allow_instances;
1: - bool noboot;
1: + const char *name;
1: + int (*init)(struct trace_array *);
1: + void (*reset)(struct trace_array *);
1: + void (*start)(struct trace_array *);
1: + void (*stop)(struct trace_array *);
1: + int (*update_thresh)(struct trace_array *);
1: + void (*open)(struct trace_iterator *);
1: + void (*pipe_open)(struct trace_iterator *);
1: + void (*close)(struct trace_iterator *);
1: + void (*pipe_close)(struct trace_iterator *);
1: + ssize_t (*read)(struct trace_iterator *, struct file *, char *, size_t,
1: + loff_t *);
1: + ssize_t (*splice_read)(struct trace_iterator *, struct file *, loff_t *,
1: + struct pipe_inode_info *, size_t, unsigned int);
1: + void (*print_header)(struct seq_file *);
1: + enum print_line_t (*print_line)(struct trace_iterator *);
1: + int (*set_flag)(struct trace_array *, u32, u32, int);
1: + int (*flag_changed)(struct trace_array *, u32, int);
1: + struct tracer *next;
1: + struct tracer_flags *flags;
1: + int enabled;
1: + bool print_max;
1: + bool allow_instances;
1: + bool noboot;
1: };
1:
1: struct event_subsystem;
1:
1: struct trace_subsystem_dir {
1: - struct list_head list;
1: - struct event_subsystem *subsystem;
1: - struct trace_array *tr;
1: - struct dentry *entry;
1: - int ref_count;
1: - int nr_events;
1: + struct list_head list;
1: + struct event_subsystem *subsystem;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: + int ref_count;
1: + int nr_events;
1: };
1:
1: struct trace_array_cpu {
1: - atomic_t disabled;
1: - void *buffer_page;
1: - long unsigned int entries;
1: - long unsigned int saved_latency;
1: - long unsigned int critical_start;
1: - long unsigned int critical_end;
1: - long unsigned int critical_sequence;
1: - long unsigned int nice;
1: - long unsigned int policy;
1: - long unsigned int rt_priority;
1: - long unsigned int skipped_entries;
1: - u64 preempt_timestamp;
1: - pid_t pid;
1: - kuid_t uid;
1: - char comm[16];
1: - int ftrace_ignore_pid;
1: - bool ignore_pid;
1: + atomic_t disabled;
1: + void *buffer_page;
1: + long unsigned int entries;
1: + long unsigned int saved_latency;
1: + long unsigned int critical_start;
1: + long unsigned int critical_end;
1: + long unsigned int critical_sequence;
1: + long unsigned int nice;
1: + long unsigned int policy;
1: + long unsigned int rt_priority;
1: + long unsigned int skipped_entries;
1: + u64 preempt_timestamp;
1: + pid_t pid;
1: + kuid_t uid;
1: + char comm[16];
1: + int ftrace_ignore_pid;
1: + bool ignore_pid;
1: };
1:
1: struct trace_option_dentry;
1:
1: struct trace_options {
1: - struct tracer *tracer;
1: - struct trace_option_dentry *topts;
1: + struct tracer *tracer;
1: + struct trace_option_dentry *topts;
1: };
1:
1: struct tracer_opt;
1:
1: struct trace_option_dentry {
1: - struct tracer_opt *opt;
1: - struct tracer_flags *flags;
1: - struct trace_array *tr;
1: - struct dentry *entry;
1: + struct tracer_opt *opt;
1: + struct tracer_flags *flags;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: };
1:
1: struct trace_pid_list {
1: - int pid_max;
1: - long unsigned int *pids;
1: + int pid_max;
1: + long unsigned int *pids;
1: };
1:
1: enum {
1: - TRACE_PIDS = 1,
1: - TRACE_NO_PIDS = 2,
1: + TRACE_PIDS = 1,
1: + TRACE_NO_PIDS = 2,
1: };
1:
1: enum {
1: - TRACE_ARRAY_FL_GLOBAL = 1,
1: + TRACE_ARRAY_FL_GLOBAL = 1,
1: };
1:
1: struct tracer_opt {
1: - const char *name;
1: - u32 bit;
1: + const char *name;
1: + u32 bit;
1: };
1:
1: struct tracer_flags {
1: - u32 val;
1: - struct tracer_opt *opts;
1: - struct tracer *trace;
1: + u32 val;
1: + struct tracer_opt *opts;
1: + struct tracer *trace;
1: };
1:
1: enum {
1: - TRACE_FTRACE_BIT = 0,
1: - TRACE_FTRACE_NMI_BIT = 1,
1: - TRACE_FTRACE_IRQ_BIT = 2,
1: - TRACE_FTRACE_SIRQ_BIT = 3,
1: - TRACE_INTERNAL_BIT = 4,
1: - TRACE_INTERNAL_NMI_BIT = 5,
1: - TRACE_INTERNAL_IRQ_BIT = 6,
1: - TRACE_INTERNAL_SIRQ_BIT = 7,
1: - TRACE_BRANCH_BIT = 8,
1: - TRACE_IRQ_BIT = 9,
1: - TRACE_GRAPH_BIT = 10,
1: - TRACE_GRAPH_DEPTH_START_BIT = 11,
1: - TRACE_GRAPH_DEPTH_END_BIT = 12,
1: - TRACE_GRAPH_NOTRACE_BIT = 13,
1: - TRACE_TRANSITION_BIT = 14,
1: + TRACE_FTRACE_BIT = 0,
1: + TRACE_FTRACE_NMI_BIT = 1,
1: + TRACE_FTRACE_IRQ_BIT = 2,
1: + TRACE_FTRACE_SIRQ_BIT = 3,
1: + TRACE_INTERNAL_BIT = 4,
1: + TRACE_INTERNAL_NMI_BIT = 5,
1: + TRACE_INTERNAL_IRQ_BIT = 6,
1: + TRACE_INTERNAL_SIRQ_BIT = 7,
1: + TRACE_BRANCH_BIT = 8,
1: + TRACE_IRQ_BIT = 9,
1: + TRACE_GRAPH_BIT = 10,
1: + TRACE_GRAPH_DEPTH_START_BIT = 11,
1: + TRACE_GRAPH_DEPTH_END_BIT = 12,
1: + TRACE_GRAPH_NOTRACE_BIT = 13,
1: + TRACE_TRANSITION_BIT = 14,
1: };
1:
1: struct ftrace_mod_load {
1: - struct list_head list;
1: - char *func;
1: - char *module;
1: - int enable;
1: + struct list_head list;
1: + char *func;
1: + char *module;
1: + int enable;
1: };
1:
1: enum {
1: - FTRACE_HASH_FL_MOD = 1,
1: + FTRACE_HASH_FL_MOD = 1,
1: };
1:
1: struct ftrace_func_command {
1: - struct list_head list;
1: - char *name;
1: - int (*func)(struct trace_array *, struct ftrace_hash *, char *, char *, char *, int);
1: + struct list_head list;
1: + char *name;
1: + int (*func)(struct trace_array *, struct ftrace_hash *, char *, char *,
1: + char *, int);
1: };
1:
1: struct ftrace_probe_ops {
1: - void (*func)(long unsigned int, long unsigned int, struct trace_array *, struct ftrace_probe_ops *, void *);
1: - int (*init)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *, void **);
1: - void (*free)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *);
1: - int (*print)(struct seq_file *, long unsigned int, struct ftrace_probe_ops *, void *);
1: + void (*func)(long unsigned int, long unsigned int, struct trace_array *,
1: + struct ftrace_probe_ops *, void *);
1: + int (*init)(struct ftrace_probe_ops *, struct trace_array *,
1: + long unsigned int, void *, void **);
1: + void (*free)(struct ftrace_probe_ops *, struct trace_array *,
1: + long unsigned int, void *);
1: + int (*print)(struct seq_file *, long unsigned int, struct ftrace_probe_ops *,
1: + void *);
1: };
1:
1: typedef int (*ftrace_mapper_func)(void *);
1:
1: struct trace_parser {
1: - bool cont;
1: - char *buffer;
1: - unsigned int idx;
1: - unsigned int size;
1: + bool cont;
1: + char *buffer;
1: + unsigned int idx;
1: + unsigned int size;
1: };
1:
1: enum trace_iterator_bits {
1: - TRACE_ITER_PRINT_PARENT_BIT = 0,
1: - TRACE_ITER_SYM_OFFSET_BIT = 1,
1: - TRACE_ITER_SYM_ADDR_BIT = 2,
1: - TRACE_ITER_VERBOSE_BIT = 3,
1: - TRACE_ITER_RAW_BIT = 4,
1: - TRACE_ITER_HEX_BIT = 5,
1: - TRACE_ITER_BIN_BIT = 6,
1: - TRACE_ITER_BLOCK_BIT = 7,
1: - TRACE_ITER_PRINTK_BIT = 8,
1: - TRACE_ITER_ANNOTATE_BIT = 9,
1: - TRACE_ITER_USERSTACKTRACE_BIT = 10,
1: - TRACE_ITER_SYM_USEROBJ_BIT = 11,
1: - TRACE_ITER_PRINTK_MSGONLY_BIT = 12,
1: - TRACE_ITER_CONTEXT_INFO_BIT = 13,
1: - TRACE_ITER_LATENCY_FMT_BIT = 14,
1: - TRACE_ITER_RECORD_CMD_BIT = 15,
1: - TRACE_ITER_RECORD_TGID_BIT = 16,
1: - TRACE_ITER_OVERWRITE_BIT = 17,
1: - TRACE_ITER_STOP_ON_FREE_BIT = 18,
1: - TRACE_ITER_IRQ_INFO_BIT = 19,
1: - TRACE_ITER_MARKERS_BIT = 20,
1: - TRACE_ITER_EVENT_FORK_BIT = 21,
1: - TRACE_ITER_PAUSE_ON_TRACE_BIT = 22,
1: - TRACE_ITER_FUNCTION_BIT = 23,
1: - TRACE_ITER_FUNC_FORK_BIT = 24,
1: - TRACE_ITER_DISPLAY_GRAPH_BIT = 25,
1: - TRACE_ITER_STACKTRACE_BIT = 26,
1: - TRACE_ITER_LAST_BIT = 27,
1: + TRACE_ITER_PRINT_PARENT_BIT = 0,
1: + TRACE_ITER_SYM_OFFSET_BIT = 1,
1: + TRACE_ITER_SYM_ADDR_BIT = 2,
1: + TRACE_ITER_VERBOSE_BIT = 3,
1: + TRACE_ITER_RAW_BIT = 4,
1: + TRACE_ITER_HEX_BIT = 5,
1: + TRACE_ITER_BIN_BIT = 6,
1: + TRACE_ITER_BLOCK_BIT = 7,
1: + TRACE_ITER_PRINTK_BIT = 8,
1: + TRACE_ITER_ANNOTATE_BIT = 9,
1: + TRACE_ITER_USERSTACKTRACE_BIT = 10,
1: + TRACE_ITER_SYM_USEROBJ_BIT = 11,
1: + TRACE_ITER_PRINTK_MSGONLY_BIT = 12,
1: + TRACE_ITER_CONTEXT_INFO_BIT = 13,
1: + TRACE_ITER_LATENCY_FMT_BIT = 14,
1: + TRACE_ITER_RECORD_CMD_BIT = 15,
1: + TRACE_ITER_RECORD_TGID_BIT = 16,
1: + TRACE_ITER_OVERWRITE_BIT = 17,
1: + TRACE_ITER_STOP_ON_FREE_BIT = 18,
1: + TRACE_ITER_IRQ_INFO_BIT = 19,
1: + TRACE_ITER_MARKERS_BIT = 20,
1: + TRACE_ITER_EVENT_FORK_BIT = 21,
1: + TRACE_ITER_PAUSE_ON_TRACE_BIT = 22,
1: + TRACE_ITER_FUNCTION_BIT = 23,
1: + TRACE_ITER_FUNC_FORK_BIT = 24,
1: + TRACE_ITER_DISPLAY_GRAPH_BIT = 25,
1: + TRACE_ITER_STACKTRACE_BIT = 26,
1: + TRACE_ITER_LAST_BIT = 27,
1: };
1:
1: struct event_subsystem {
1: - struct list_head list;
1: - const char *name;
1: - struct event_filter *filter;
1: - int ref_count;
1: + struct list_head list;
1: + const char *name;
1: + struct event_filter *filter;
1: + int ref_count;
1: };
1:
1: enum regex_type {
1: - MATCH_FULL = 0,
1: - MATCH_FRONT_ONLY = 1,
1: - MATCH_MIDDLE_ONLY = 2,
1: - MATCH_END_ONLY = 3,
1: - MATCH_GLOB = 4,
1: - MATCH_INDEX = 5,
1: + MATCH_FULL = 0,
1: + MATCH_FRONT_ONLY = 1,
1: + MATCH_MIDDLE_ONLY = 2,
1: + MATCH_END_ONLY = 3,
1: + MATCH_GLOB = 4,
1: + MATCH_INDEX = 5,
1: };
1:
1: enum {
1: - FTRACE_MODIFY_ENABLE_FL = 1,
1: - FTRACE_MODIFY_MAY_SLEEP_FL = 2,
1: + FTRACE_MODIFY_ENABLE_FL = 1,
1: + FTRACE_MODIFY_MAY_SLEEP_FL = 2,
1: };
1:
1: struct ftrace_func_probe {
1: - struct ftrace_probe_ops *probe_ops;
1: - struct ftrace_ops ops;
1: - struct trace_array *tr;
1: - struct list_head list;
1: - void *data;
1: - int ref;
1: + struct ftrace_probe_ops *probe_ops;
1: + struct ftrace_ops ops;
1: + struct trace_array *tr;
1: + struct list_head list;
1: + void *data;
1: + int ref;
1: };
1:
1: struct ftrace_page {
1: - struct ftrace_page *next;
1: - struct dyn_ftrace *records;
1: - int index;
1: - int size;
1: + struct ftrace_page *next;
1: + struct dyn_ftrace *records;
1: + int index;
1: + int size;
1: };
1:
1: struct ftrace_rec_iter {
1: - struct ftrace_page *pg;
1: - int index;
1: + struct ftrace_page *pg;
1: + int index;
1: };
1:
1: struct ftrace_iterator {
1: - loff_t pos;
1: - loff_t func_pos;
1: - loff_t mod_pos;
1: - struct ftrace_page *pg;
1: - struct dyn_ftrace *func;
1: - struct ftrace_func_probe *probe;
1: - struct ftrace_func_entry *probe_entry;
1: - struct trace_parser parser;
1: - struct ftrace_hash *hash;
1: - struct ftrace_ops *ops;
1: - struct trace_array *tr;
1: - struct list_head *mod_list;
1: - int pidx;
1: - int idx;
1: - unsigned int flags;
1: + loff_t pos;
1: + loff_t func_pos;
1: + loff_t mod_pos;
1: + struct ftrace_page *pg;
1: + struct dyn_ftrace *func;
1: + struct ftrace_func_probe *probe;
1: + struct ftrace_func_entry *probe_entry;
1: + struct trace_parser parser;
1: + struct ftrace_hash *hash;
1: + struct ftrace_ops *ops;
1: + struct trace_array *tr;
1: + struct list_head *mod_list;
1: + int pidx;
1: + int idx;
1: + unsigned int flags;
1: };
1:
1: struct ftrace_glob {
1: - char *search;
1: - unsigned int len;
1: - int type;
1: + char *search;
1: + unsigned int len;
1: + int type;
1: };
1:
1: struct ftrace_func_map {
1: - struct ftrace_func_entry entry;
1: - void *data;
1: + struct ftrace_func_entry entry;
1: + void *data;
1: };
1:
1: struct ftrace_func_mapper {
1: - struct ftrace_hash hash;
1: + struct ftrace_hash hash;
1: };
1:
1: enum graph_filter_type {
1: - GRAPH_FILTER_NOTRACE = 0,
1: - GRAPH_FILTER_FUNCTION = 1,
1: + GRAPH_FILTER_NOTRACE = 0,
1: + GRAPH_FILTER_FUNCTION = 1,
1: };
1:
1: struct ftrace_graph_data {
1: - struct ftrace_hash *hash;
1: - struct ftrace_func_entry *entry;
1: - int idx;
1: - enum graph_filter_type type;
1: - struct ftrace_hash *new_hash;
1: - const struct seq_operations *seq_ops;
1: - struct trace_parser parser;
1: + struct ftrace_hash *hash;
1: + struct ftrace_func_entry *entry;
1: + int idx;
1: + enum graph_filter_type type;
1: + struct ftrace_hash *new_hash;
1: + const struct seq_operations *seq_ops;
1: + struct trace_parser parser;
1: };
1:
1: struct ftrace_mod_func {
1: - struct list_head list;
1: - char *name;
1: - long unsigned int ip;
1: - unsigned int size;
1: + struct list_head list;
1: + char *name;
1: + long unsigned int ip;
1: + unsigned int size;
1: };
1:
1: struct ftrace_mod_map {
1: - struct callback_head rcu;
1: - struct list_head list;
1: - struct module *mod;
1: - long unsigned int start_addr;
1: - long unsigned int end_addr;
1: - struct list_head funcs;
1: - unsigned int num_funcs;
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct module *mod;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + struct list_head funcs;
1: + unsigned int num_funcs;
1: };
1:
1: struct ftrace_init_func {
1: - struct list_head list;
1: - long unsigned int ip;
1: + struct list_head list;
1: + long unsigned int ip;
1: };
1:
1: enum ring_buffer_type {
1: - RINGBUF_TYPE_DATA_TYPE_LEN_MAX = 28,
1: - RINGBUF_TYPE_PADDING = 29,
1: - RINGBUF_TYPE_TIME_EXTEND = 30,
1: - RINGBUF_TYPE_TIME_STAMP = 31,
1: + RINGBUF_TYPE_DATA_TYPE_LEN_MAX = 28,
1: + RINGBUF_TYPE_PADDING = 29,
1: + RINGBUF_TYPE_TIME_EXTEND = 30,
1: + RINGBUF_TYPE_TIME_STAMP = 31,
1: };
1:
1: enum ring_buffer_flags {
1: - RB_FL_OVERWRITE = 1,
1: + RB_FL_OVERWRITE = 1,
1: };
1:
1: struct ring_buffer_per_cpu;
1: @@ -28012,391 +28335,391 @@ struct ring_buffer_per_cpu;
1: struct buffer_page;
1:
1: struct ring_buffer_iter {
1: - struct ring_buffer_per_cpu *cpu_buffer;
1: - long unsigned int head;
1: - long unsigned int next_event;
1: - struct buffer_page *head_page;
1: - struct buffer_page *cache_reader_page;
1: - long unsigned int cache_read;
1: - u64 read_stamp;
1: - u64 page_stamp;
1: - struct ring_buffer_event *event;
1: - int missed_events;
1: + struct ring_buffer_per_cpu *cpu_buffer;
1: + long unsigned int head;
1: + long unsigned int next_event;
1: + struct buffer_page *head_page;
1: + struct buffer_page *cache_reader_page;
1: + long unsigned int cache_read;
1: + u64 read_stamp;
1: + u64 page_stamp;
1: + struct ring_buffer_event *event;
1: + int missed_events;
1: };
1:
1: struct rb_irq_work {
1: - struct irq_work work;
1: - wait_queue_head_t waiters;
1: - wait_queue_head_t full_waiters;
1: - bool waiters_pending;
1: - bool full_waiters_pending;
1: - bool wakeup_full;
1: + struct irq_work work;
1: + wait_queue_head_t waiters;
1: + wait_queue_head_t full_waiters;
1: + bool waiters_pending;
1: + bool full_waiters_pending;
1: + bool wakeup_full;
1: };
1:
1: struct trace_buffer___2 {
1: - unsigned int flags;
1: - int cpus;
1: - atomic_t record_disabled;
1: - cpumask_var_t cpumask;
1: - struct lock_class_key *reader_lock_key;
1: - struct mutex mutex;
1: - struct ring_buffer_per_cpu **buffers;
1: - struct hlist_node node;
1: - u64 (*clock)();
1: - struct rb_irq_work irq_work;
1: - bool time_stamp_abs;
1: + unsigned int flags;
1: + int cpus;
1: + atomic_t record_disabled;
1: + cpumask_var_t cpumask;
1: + struct lock_class_key *reader_lock_key;
1: + struct mutex mutex;
1: + struct ring_buffer_per_cpu **buffers;
1: + struct hlist_node node;
1: + u64 (*clock)();
1: + struct rb_irq_work irq_work;
1: + bool time_stamp_abs;
1: };
1:
1: enum {
1: - RB_LEN_TIME_EXTEND = 8,
1: - RB_LEN_TIME_STAMP = 8,
1: + RB_LEN_TIME_EXTEND = 8,
1: + RB_LEN_TIME_STAMP = 8,
1: };
1:
1: struct buffer_data_page {
1: - u64 time_stamp;
1: - local_t commit;
1: - unsigned char data[0];
1: + u64 time_stamp;
1: + local_t commit;
1: + unsigned char data[0];
1: };
1:
1: struct buffer_page {
1: - struct list_head list;
1: - local_t write;
1: - unsigned int read;
1: - local_t entries;
1: - long unsigned int real_end;
1: - struct buffer_data_page *page;
1: + struct list_head list;
1: + local_t write;
1: + unsigned int read;
1: + local_t entries;
1: + long unsigned int real_end;
1: + struct buffer_data_page *page;
1: };
1:
1: struct rb_event_info {
1: - u64 ts;
1: - u64 delta;
1: - u64 before;
1: - u64 after;
1: - long unsigned int length;
1: - struct buffer_page *tail_page;
1: - int add_timestamp;
1: + u64 ts;
1: + u64 delta;
1: + u64 before;
1: + u64 after;
1: + long unsigned int length;
1: + struct buffer_page *tail_page;
1: + int add_timestamp;
1: };
1:
1: enum {
1: - RB_ADD_STAMP_NONE = 0,
1: - RB_ADD_STAMP_EXTEND = 2,
1: - RB_ADD_STAMP_ABSOLUTE = 4,
1: - RB_ADD_STAMP_FORCE = 8,
1: + RB_ADD_STAMP_NONE = 0,
1: + RB_ADD_STAMP_EXTEND = 2,
1: + RB_ADD_STAMP_ABSOLUTE = 4,
1: + RB_ADD_STAMP_FORCE = 8,
1: };
1:
1: enum {
1: - RB_CTX_TRANSITION = 0,
1: - RB_CTX_NMI = 1,
1: - RB_CTX_IRQ = 2,
1: - RB_CTX_SOFTIRQ = 3,
1: - RB_CTX_NORMAL = 4,
1: - RB_CTX_MAX = 5,
1: + RB_CTX_TRANSITION = 0,
1: + RB_CTX_NMI = 1,
1: + RB_CTX_IRQ = 2,
1: + RB_CTX_SOFTIRQ = 3,
1: + RB_CTX_NORMAL = 4,
1: + RB_CTX_MAX = 5,
1: };
1:
1: struct rb_time_struct {
1: - local64_t time;
1: + local64_t time;
1: };
1:
1: typedef struct rb_time_struct rb_time_t;
1:
1: struct ring_buffer_per_cpu {
1: - int cpu;
1: - atomic_t record_disabled;
1: - atomic_t resize_disabled;
1: - struct trace_buffer___2 *buffer;
1: - raw_spinlock_t reader_lock;
1: - arch_spinlock_t lock;
1: - struct lock_class_key lock_key;
1: - struct buffer_data_page *free_page;
1: - long unsigned int nr_pages;
1: - unsigned int current_context;
1: - struct list_head *pages;
1: - struct buffer_page *head_page;
1: - struct buffer_page *tail_page;
1: - struct buffer_page *commit_page;
1: - struct buffer_page *reader_page;
1: - long unsigned int lost_events;
1: - long unsigned int last_overrun;
1: - long unsigned int nest;
1: - local_t entries_bytes;
1: - local_t entries;
1: - local_t overrun;
1: - local_t commit_overrun;
1: - local_t dropped_events;
1: - local_t committing;
1: - local_t commits;
1: - local_t pages_touched;
1: - local_t pages_read;
1: - long int last_pages_touch;
1: - size_t shortest_full;
1: - long unsigned int read;
1: - long unsigned int read_bytes;
1: - rb_time_t write_stamp;
1: - rb_time_t before_stamp;
1: - u64 read_stamp;
1: - long int nr_pages_to_update;
1: - struct list_head new_pages;
1: - struct work_struct update_pages_work;
1: - struct completion update_done;
1: - struct rb_irq_work irq_work;
1: + int cpu;
1: + atomic_t record_disabled;
1: + atomic_t resize_disabled;
1: + struct trace_buffer___2 *buffer;
1: + raw_spinlock_t reader_lock;
1: + arch_spinlock_t lock;
1: + struct lock_class_key lock_key;
1: + struct buffer_data_page *free_page;
1: + long unsigned int nr_pages;
1: + unsigned int current_context;
1: + struct list_head *pages;
1: + struct buffer_page *head_page;
1: + struct buffer_page *tail_page;
1: + struct buffer_page *commit_page;
1: + struct buffer_page *reader_page;
1: + long unsigned int lost_events;
1: + long unsigned int last_overrun;
1: + long unsigned int nest;
1: + local_t entries_bytes;
1: + local_t entries;
1: + local_t overrun;
1: + local_t commit_overrun;
1: + local_t dropped_events;
1: + local_t committing;
1: + local_t commits;
1: + local_t pages_touched;
1: + local_t pages_read;
1: + long int last_pages_touch;
1: + size_t shortest_full;
1: + long unsigned int read;
1: + long unsigned int read_bytes;
1: + rb_time_t write_stamp;
1: + rb_time_t before_stamp;
1: + u64 read_stamp;
1: + long int nr_pages_to_update;
1: + struct list_head new_pages;
1: + struct work_struct update_pages_work;
1: + struct completion update_done;
1: + struct rb_irq_work irq_work;
1: };
1:
1: struct trace_export {
1: - struct trace_export *next;
1: - void (*write)(struct trace_export *, const void *, unsigned int);
1: - int flags;
1: + struct trace_export *next;
1: + void (*write)(struct trace_export *, const void *, unsigned int);
1: + int flags;
1: };
1:
1: enum trace_iter_flags {
1: - TRACE_FILE_LAT_FMT = 1,
1: - TRACE_FILE_ANNOTATE = 2,
1: - TRACE_FILE_TIME_IN_NS = 4,
1: + TRACE_FILE_LAT_FMT = 1,
1: + TRACE_FILE_ANNOTATE = 2,
1: + TRACE_FILE_TIME_IN_NS = 4,
1: };
1:
1: enum event_trigger_type {
1: - ETT_NONE = 0,
1: - ETT_TRACE_ONOFF = 1,
1: - ETT_SNAPSHOT = 2,
1: - ETT_STACKTRACE = 4,
1: - ETT_EVENT_ENABLE = 8,
1: - ETT_EVENT_HIST = 16,
1: - ETT_HIST_ENABLE = 32,
1: + ETT_NONE = 0,
1: + ETT_TRACE_ONOFF = 1,
1: + ETT_SNAPSHOT = 2,
1: + ETT_STACKTRACE = 4,
1: + ETT_EVENT_ENABLE = 8,
1: + ETT_EVENT_HIST = 16,
1: + ETT_HIST_ENABLE = 32,
1: };
1:
1: enum trace_type {
1: - __TRACE_FIRST_TYPE = 0,
1: - TRACE_FN = 1,
1: - TRACE_CTX = 2,
1: - TRACE_WAKE = 3,
1: - TRACE_STACK = 4,
1: - TRACE_PRINT = 5,
1: - TRACE_BPRINT = 6,
1: - TRACE_MMIO_RW = 7,
1: - TRACE_MMIO_MAP = 8,
1: - TRACE_BRANCH = 9,
1: - TRACE_GRAPH_RET = 10,
1: - TRACE_GRAPH_ENT = 11,
1: - TRACE_USER_STACK = 12,
1: - TRACE_BLK = 13,
1: - TRACE_BPUTS = 14,
1: - TRACE_HWLAT = 15,
1: - TRACE_RAW_DATA = 16,
1: - __TRACE_LAST_TYPE = 17,
1: + __TRACE_FIRST_TYPE = 0,
1: + TRACE_FN = 1,
1: + TRACE_CTX = 2,
1: + TRACE_WAKE = 3,
1: + TRACE_STACK = 4,
1: + TRACE_PRINT = 5,
1: + TRACE_BPRINT = 6,
1: + TRACE_MMIO_RW = 7,
1: + TRACE_MMIO_MAP = 8,
1: + TRACE_BRANCH = 9,
1: + TRACE_GRAPH_RET = 10,
1: + TRACE_GRAPH_ENT = 11,
1: + TRACE_USER_STACK = 12,
1: + TRACE_BLK = 13,
1: + TRACE_BPUTS = 14,
1: + TRACE_HWLAT = 15,
1: + TRACE_RAW_DATA = 16,
1: + __TRACE_LAST_TYPE = 17,
1: };
1:
1: struct ftrace_entry {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - long unsigned int parent_ip;
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: };
1:
1: struct stack_entry {
1: - struct trace_entry ent;
1: - int size;
1: - long unsigned int caller[8];
1: + struct trace_entry ent;
1: + int size;
1: + long unsigned int caller[8];
1: };
1:
1: struct bprint_entry {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - const char *fmt;
1: - u32 buf[0];
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *fmt;
1: + u32 buf[0];
1: };
1:
1: struct print_entry {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - char buf[0];
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + char buf[0];
1: };
1:
1: struct raw_data_entry {
1: - struct trace_entry ent;
1: - unsigned int id;
1: - char buf[0];
1: + struct trace_entry ent;
1: + unsigned int id;
1: + char buf[0];
1: };
1:
1: struct bputs_entry {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: - const char *str;
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *str;
1: };
1:
1: enum trace_flag_type {
1: - TRACE_FLAG_IRQS_OFF = 1,
1: - TRACE_FLAG_IRQS_NOSUPPORT = 2,
1: - TRACE_FLAG_NEED_RESCHED = 4,
1: - TRACE_FLAG_HARDIRQ = 8,
1: - TRACE_FLAG_SOFTIRQ = 16,
1: - TRACE_FLAG_PREEMPT_RESCHED = 32,
1: - TRACE_FLAG_NMI = 64,
1: + TRACE_FLAG_IRQS_OFF = 1,
1: + TRACE_FLAG_IRQS_NOSUPPORT = 2,
1: + TRACE_FLAG_NEED_RESCHED = 4,
1: + TRACE_FLAG_HARDIRQ = 8,
1: + TRACE_FLAG_SOFTIRQ = 16,
1: + TRACE_FLAG_PREEMPT_RESCHED = 32,
1: + TRACE_FLAG_NMI = 64,
1: };
1:
1: typedef bool (*cond_update_fn_t)(struct trace_array *, void *);
1:
1: enum trace_iterator_flags {
1: - TRACE_ITER_PRINT_PARENT = 1,
1: - TRACE_ITER_SYM_OFFSET = 2,
1: - TRACE_ITER_SYM_ADDR = 4,
1: - TRACE_ITER_VERBOSE = 8,
1: - TRACE_ITER_RAW = 16,
1: - TRACE_ITER_HEX = 32,
1: - TRACE_ITER_BIN = 64,
1: - TRACE_ITER_BLOCK = 128,
1: - TRACE_ITER_PRINTK = 256,
1: - TRACE_ITER_ANNOTATE = 512,
1: - TRACE_ITER_USERSTACKTRACE = 1024,
1: - TRACE_ITER_SYM_USEROBJ = 2048,
1: - TRACE_ITER_PRINTK_MSGONLY = 4096,
1: - TRACE_ITER_CONTEXT_INFO = 8192,
1: - TRACE_ITER_LATENCY_FMT = 16384,
1: - TRACE_ITER_RECORD_CMD = 32768,
1: - TRACE_ITER_RECORD_TGID = 65536,
1: - TRACE_ITER_OVERWRITE = 131072,
1: - TRACE_ITER_STOP_ON_FREE = 262144,
1: - TRACE_ITER_IRQ_INFO = 524288,
1: - TRACE_ITER_MARKERS = 1048576,
1: - TRACE_ITER_EVENT_FORK = 2097152,
1: - TRACE_ITER_PAUSE_ON_TRACE = 4194304,
1: - TRACE_ITER_FUNCTION = 8388608,
1: - TRACE_ITER_FUNC_FORK = 16777216,
1: - TRACE_ITER_DISPLAY_GRAPH = 33554432,
1: - TRACE_ITER_STACKTRACE = 67108864,
1: + TRACE_ITER_PRINT_PARENT = 1,
1: + TRACE_ITER_SYM_OFFSET = 2,
1: + TRACE_ITER_SYM_ADDR = 4,
1: + TRACE_ITER_VERBOSE = 8,
1: + TRACE_ITER_RAW = 16,
1: + TRACE_ITER_HEX = 32,
1: + TRACE_ITER_BIN = 64,
1: + TRACE_ITER_BLOCK = 128,
1: + TRACE_ITER_PRINTK = 256,
1: + TRACE_ITER_ANNOTATE = 512,
1: + TRACE_ITER_USERSTACKTRACE = 1024,
1: + TRACE_ITER_SYM_USEROBJ = 2048,
1: + TRACE_ITER_PRINTK_MSGONLY = 4096,
1: + TRACE_ITER_CONTEXT_INFO = 8192,
1: + TRACE_ITER_LATENCY_FMT = 16384,
1: + TRACE_ITER_RECORD_CMD = 32768,
1: + TRACE_ITER_RECORD_TGID = 65536,
1: + TRACE_ITER_OVERWRITE = 131072,
1: + TRACE_ITER_STOP_ON_FREE = 262144,
1: + TRACE_ITER_IRQ_INFO = 524288,
1: + TRACE_ITER_MARKERS = 1048576,
1: + TRACE_ITER_EVENT_FORK = 2097152,
1: + TRACE_ITER_PAUSE_ON_TRACE = 4194304,
1: + TRACE_ITER_FUNCTION = 8388608,
1: + TRACE_ITER_FUNC_FORK = 16777216,
1: + TRACE_ITER_DISPLAY_GRAPH = 33554432,
1: + TRACE_ITER_STACKTRACE = 67108864,
1: };
1:
1: struct saved_cmdlines_buffer {
1: - unsigned int map_pid_to_cmdline[32769];
1: - unsigned int *map_cmdline_to_pid;
1: - unsigned int cmdline_num;
1: - int cmdline_idx;
1: - char *saved_cmdlines;
1: + unsigned int map_pid_to_cmdline[32769];
1: + unsigned int *map_cmdline_to_pid;
1: + unsigned int cmdline_num;
1: + int cmdline_idx;
1: + char *saved_cmdlines;
1: };
1:
1: struct ftrace_stack {
1: - long unsigned int calls[1024];
1: + long unsigned int calls[1024];
1: };
1:
1: struct ftrace_stacks {
1: - struct ftrace_stack stacks[4];
1: + struct ftrace_stack stacks[4];
1: };
1:
1: struct trace_buffer_struct {
1: - int nesting;
1: - char buffer[4096];
1: + int nesting;
1: + char buffer[4096];
1: };
1:
1: struct ftrace_buffer_info {
1: - struct trace_iterator iter;
1: - void *spare;
1: - unsigned int spare_cpu;
1: - unsigned int read;
1: + struct trace_iterator iter;
1: + void *spare;
1: + unsigned int spare_cpu;
1: + unsigned int read;
1: };
1:
1: struct err_info {
1: - const char **errs;
1: - u8 type;
1: - u8 pos;
1: - u64 ts;
1: + const char **errs;
1: + u8 type;
1: + u8 pos;
1: + u64 ts;
1: };
1:
1: struct tracing_log_err {
1: - struct list_head list;
1: - struct err_info info;
1: - char loc[128];
1: - char cmd[256];
1: + struct list_head list;
1: + struct err_info info;
1: + char loc[128];
1: + char cmd[256];
1: };
1:
1: struct buffer_ref {
1: - struct trace_buffer *buffer;
1: - void *page;
1: - int cpu;
1: - refcount_t refcount;
1: + struct trace_buffer *buffer;
1: + void *page;
1: + int cpu;
1: + refcount_t refcount;
1: };
1:
1: struct ctx_switch_entry {
1: - struct trace_entry ent;
1: - unsigned int prev_pid;
1: - unsigned int next_pid;
1: - unsigned int next_cpu;
1: - unsigned char prev_prio;
1: - unsigned char prev_state;
1: - unsigned char next_prio;
1: - unsigned char next_state;
1: + struct trace_entry ent;
1: + unsigned int prev_pid;
1: + unsigned int next_pid;
1: + unsigned int next_cpu;
1: + unsigned char prev_prio;
1: + unsigned char prev_state;
1: + unsigned char next_prio;
1: + unsigned char next_state;
1: };
1:
1: struct userstack_entry {
1: - struct trace_entry ent;
1: - unsigned int tgid;
1: - long unsigned int caller[8];
1: + struct trace_entry ent;
1: + unsigned int tgid;
1: + long unsigned int caller[8];
1: };
1:
1: struct hwlat_entry {
1: - struct trace_entry ent;
1: - u64 duration;
1: - u64 outer_duration;
1: - u64 nmi_total_ts;
1: - struct timespec64 timestamp;
1: - unsigned int nmi_count;
1: - unsigned int seqnum;
1: - unsigned int count;
1: + struct trace_entry ent;
1: + u64 duration;
1: + u64 outer_duration;
1: + u64 nmi_total_ts;
1: + struct timespec64 timestamp;
1: + unsigned int nmi_count;
1: + unsigned int seqnum;
1: + unsigned int count;
1: };
1:
1: struct trace_mark {
1: - long long unsigned int val;
1: - char sym;
1: + long long unsigned int val;
1: + char sym;
1: };
1:
1: typedef int (*cmp_func_t)(const void *, const void *);
1:
1: struct tracer_stat {
1: - const char *name;
1: - void * (*stat_start)(struct tracer_stat *);
1: - void * (*stat_next)(void *, int);
1: - cmp_func_t stat_cmp;
1: - int (*stat_show)(struct seq_file *, void *);
1: - void (*stat_release)(void *);
1: - int (*stat_headers)(struct seq_file *);
1: + const char *name;
1: + void *(*stat_start)(struct tracer_stat *);
1: + void *(*stat_next)(void *, int);
1: + cmp_func_t stat_cmp;
1: + int (*stat_show)(struct seq_file *, void *);
1: + void (*stat_release)(void *);
1: + int (*stat_headers)(struct seq_file *);
1: };
1:
1: struct stat_node {
1: - struct rb_node node;
1: - void *stat;
1: + struct rb_node node;
1: + void *stat;
1: };
1:
1: struct stat_session {
1: - struct list_head session_list;
1: - struct tracer_stat *ts;
1: - struct rb_root stat_root;
1: - struct mutex stat_mutex;
1: - struct dentry *file;
1: + struct list_head session_list;
1: + struct tracer_stat *ts;
1: + struct rb_root stat_root;
1: + struct mutex stat_mutex;
1: + struct dentry *file;
1: };
1:
1: struct trace_bprintk_fmt {
1: - struct list_head list;
1: - const char *fmt;
1: + struct list_head list;
1: + const char *fmt;
1: };
1:
1: enum {
1: - TRACE_FUNC_OPT_STACK = 1,
1: + TRACE_FUNC_OPT_STACK = 1,
1: };
1:
1: struct ftrace_func_mapper___2;
1:
1: enum {
1: - TRACE_NOP_OPT_ACCEPT = 1,
1: - TRACE_NOP_OPT_REFUSE = 2,
1: + TRACE_NOP_OPT_ACCEPT = 1,
1: + TRACE_NOP_OPT_REFUSE = 2,
1: };
1:
1: struct ftrace_graph_ent {
1: - long unsigned int func;
1: - int depth;
1: + long unsigned int func;
1: + int depth;
1: } __attribute__((packed));
1:
1: struct ftrace_graph_ret {
1: - long unsigned int func;
1: - long unsigned int overrun;
1: - long long unsigned int calltime;
1: - long long unsigned int rettime;
1: - int depth;
1: + long unsigned int func;
1: + long unsigned int overrun;
1: + long long unsigned int calltime;
1: + long long unsigned int rettime;
1: + int depth;
1: } __attribute__((packed));
1:
1: typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *);
1: @@ -28404,472 +28727,472 @@ typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *);
1: typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *);
1:
1: struct fgraph_ops {
1: - trace_func_graph_ent_t entryfunc;
1: - trace_func_graph_ret_t retfunc;
1: + trace_func_graph_ent_t entryfunc;
1: + trace_func_graph_ret_t retfunc;
1: };
1:
1: struct ftrace_graph_ent_entry {
1: - struct trace_entry ent;
1: - struct ftrace_graph_ent graph_ent;
1: + struct trace_entry ent;
1: + struct ftrace_graph_ent graph_ent;
1: } __attribute__((packed));
1:
1: struct ftrace_graph_ret_entry {
1: - struct trace_entry ent;
1: - struct ftrace_graph_ret ret;
1: + struct trace_entry ent;
1: + struct ftrace_graph_ret ret;
1: } __attribute__((packed));
1:
1: struct fgraph_cpu_data {
1: - pid_t last_pid;
1: - int depth;
1: - int depth_irq;
1: - int ignore;
1: - long unsigned int enter_funcs[50];
1: + pid_t last_pid;
1: + int depth;
1: + int depth_irq;
1: + int ignore;
1: + long unsigned int enter_funcs[50];
1: };
1:
1: struct fgraph_data {
1: - struct fgraph_cpu_data *cpu_data;
1: - struct ftrace_graph_ent_entry ent;
1: - struct ftrace_graph_ret_entry ret;
1: - int failed;
1: - int cpu;
1: + struct fgraph_cpu_data *cpu_data;
1: + struct ftrace_graph_ent_entry ent;
1: + struct ftrace_graph_ret_entry ret;
1: + int failed;
1: + int cpu;
1: } __attribute__((packed));
1:
1: enum {
1: - FLAGS_FILL_FULL = 268435456,
1: - FLAGS_FILL_START = 536870912,
1: - FLAGS_FILL_END = 805306368,
1: + FLAGS_FILL_FULL = 268435456,
1: + FLAGS_FILL_START = 536870912,
1: + FLAGS_FILL_END = 805306368,
1: };
1:
1: struct blk_crypto_key;
1:
1: struct bio_crypt_ctx {
1: - const struct blk_crypto_key *bc_key;
1: - u64 bc_dun[4];
1: + const struct blk_crypto_key *bc_key;
1: + u64 bc_dun[4];
1: };
1:
1: typedef __u32 blk_mq_req_flags_t;
1:
1: struct disk_stats {
1: - u64 nsecs[4];
1: - long unsigned int sectors[4];
1: - long unsigned int ios[4];
1: - long unsigned int merges[4];
1: - long unsigned int io_ticks;
1: - local_t in_flight[2];
1: + u64 nsecs[4];
1: + long unsigned int sectors[4];
1: + long unsigned int ios[4];
1: + long unsigned int merges[4];
1: + long unsigned int io_ticks;
1: + local_t in_flight[2];
1: };
1:
1: struct blk_mq_ctxs;
1:
1: struct blk_mq_ctx {
1: - struct {
1: - spinlock_t lock;
1: - struct list_head rq_lists[3];
1: - long: 64;
1: - };
1: - unsigned int cpu;
1: - short unsigned int index_hw[3];
1: - struct blk_mq_hw_ctx *hctxs[3];
1: - long unsigned int rq_dispatched[2];
1: - long unsigned int rq_merged;
1: - long unsigned int rq_completed[2];
1: - struct request_queue *queue;
1: - struct blk_mq_ctxs *ctxs;
1: - struct kobject kobj;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct {
1: + spinlock_t lock;
1: + struct list_head rq_lists[3];
1: + long : 64;
1: + };
1: + unsigned int cpu;
1: + short unsigned int index_hw[3];
1: + struct blk_mq_hw_ctx *hctxs[3];
1: + long unsigned int rq_dispatched[2];
1: + long unsigned int rq_merged;
1: + long unsigned int rq_completed[2];
1: + struct request_queue *queue;
1: + struct blk_mq_ctxs *ctxs;
1: + struct kobject kobj;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct sbitmap_word;
1:
1: struct sbitmap {
1: - unsigned int depth;
1: - unsigned int shift;
1: - unsigned int map_nr;
1: - struct sbitmap_word *map;
1: + unsigned int depth;
1: + unsigned int shift;
1: + unsigned int map_nr;
1: + struct sbitmap_word *map;
1: };
1:
1: struct blk_mq_tags;
1:
1: struct blk_mq_hw_ctx {
1: - struct {
1: - spinlock_t lock;
1: - struct list_head dispatch;
1: - long unsigned int state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct delayed_work run_work;
1: - cpumask_var_t cpumask;
1: - int next_cpu;
1: - int next_cpu_batch;
1: - long unsigned int flags;
1: - void *sched_data;
1: - struct request_queue *queue;
1: - struct blk_flush_queue *fq;
1: - void *driver_data;
1: - struct sbitmap ctx_map;
1: - struct blk_mq_ctx *dispatch_from;
1: - unsigned int dispatch_busy;
1: - short unsigned int type;
1: - short unsigned int nr_ctx;
1: - struct blk_mq_ctx **ctxs;
1: - spinlock_t dispatch_wait_lock;
1: - wait_queue_entry_t dispatch_wait;
1: - atomic_t wait_index;
1: - struct blk_mq_tags *tags;
1: - struct blk_mq_tags *sched_tags;
1: - long unsigned int queued;
1: - long unsigned int run;
1: - long unsigned int dispatched[7];
1: - unsigned int numa_node;
1: - unsigned int queue_num;
1: - atomic_t nr_active;
1: - atomic_t elevator_queued;
1: - struct hlist_node cpuhp_online;
1: - struct hlist_node cpuhp_dead;
1: - struct kobject kobj;
1: - long unsigned int poll_considered;
1: - long unsigned int poll_invoked;
1: - long unsigned int poll_success;
1: - struct list_head hctx_list;
1: - struct srcu_struct srcu[0];
1: - long: 64;
1: - long: 64;
1: + struct {
1: + spinlock_t lock;
1: + struct list_head dispatch;
1: + long unsigned int state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct delayed_work run_work;
1: + cpumask_var_t cpumask;
1: + int next_cpu;
1: + int next_cpu_batch;
1: + long unsigned int flags;
1: + void *sched_data;
1: + struct request_queue *queue;
1: + struct blk_flush_queue *fq;
1: + void *driver_data;
1: + struct sbitmap ctx_map;
1: + struct blk_mq_ctx *dispatch_from;
1: + unsigned int dispatch_busy;
1: + short unsigned int type;
1: + short unsigned int nr_ctx;
1: + struct blk_mq_ctx **ctxs;
1: + spinlock_t dispatch_wait_lock;
1: + wait_queue_entry_t dispatch_wait;
1: + atomic_t wait_index;
1: + struct blk_mq_tags *tags;
1: + struct blk_mq_tags *sched_tags;
1: + long unsigned int queued;
1: + long unsigned int run;
1: + long unsigned int dispatched[7];
1: + unsigned int numa_node;
1: + unsigned int queue_num;
1: + atomic_t nr_active;
1: + atomic_t elevator_queued;
1: + struct hlist_node cpuhp_online;
1: + struct hlist_node cpuhp_dead;
1: + struct kobject kobj;
1: + long unsigned int poll_considered;
1: + long unsigned int poll_invoked;
1: + long unsigned int poll_success;
1: + struct list_head hctx_list;
1: + struct srcu_struct srcu[0];
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct blk_mq_alloc_data {
1: - struct request_queue *q;
1: - blk_mq_req_flags_t flags;
1: - unsigned int shallow_depth;
1: - unsigned int cmd_flags;
1: - struct blk_mq_ctx *ctx;
1: - struct blk_mq_hw_ctx *hctx;
1: + struct request_queue *q;
1: + blk_mq_req_flags_t flags;
1: + unsigned int shallow_depth;
1: + unsigned int cmd_flags;
1: + struct blk_mq_ctx *ctx;
1: + struct blk_mq_hw_ctx *hctx;
1: };
1:
1: struct blk_stat_callback {
1: - struct list_head list;
1: - struct timer_list timer;
1: - struct blk_rq_stat *cpu_stat;
1: - int (*bucket_fn)(const struct request *);
1: - unsigned int buckets;
1: - struct blk_rq_stat *stat;
1: - void (*timer_fn)(struct blk_stat_callback *);
1: - void *data;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + struct timer_list timer;
1: + struct blk_rq_stat *cpu_stat;
1: + int (*bucket_fn)(const struct request *);
1: + unsigned int buckets;
1: + struct blk_rq_stat *stat;
1: + void (*timer_fn)(struct blk_stat_callback *);
1: + void *data;
1: + struct callback_head rcu;
1: };
1:
1: struct blk_trace {
1: - int trace_state;
1: - struct rchan *rchan;
1: - long unsigned int *sequence;
1: - unsigned char *msg_data;
1: - u16 act_mask;
1: - u64 start_lba;
1: - u64 end_lba;
1: - u32 pid;
1: - u32 dev;
1: - struct dentry *dir;
1: - struct dentry *dropped_file;
1: - struct dentry *msg_file;
1: - struct list_head running_list;
1: - atomic_t dropped;
1: + int trace_state;
1: + struct rchan *rchan;
1: + long unsigned int *sequence;
1: + unsigned char *msg_data;
1: + u16 act_mask;
1: + u64 start_lba;
1: + u64 end_lba;
1: + u32 pid;
1: + u32 dev;
1: + struct dentry *dir;
1: + struct dentry *dropped_file;
1: + struct dentry *msg_file;
1: + struct list_head running_list;
1: + atomic_t dropped;
1: };
1:
1: struct blk_flush_queue {
1: - unsigned int flush_pending_idx: 1;
1: - unsigned int flush_running_idx: 1;
1: - blk_status_t rq_status;
1: - long unsigned int flush_pending_since;
1: - struct list_head flush_queue[2];
1: - struct list_head flush_data_in_flight;
1: - struct request *flush_rq;
1: - struct lock_class_key key;
1: - spinlock_t mq_flush_lock;
1: + unsigned int flush_pending_idx : 1;
1: + unsigned int flush_running_idx : 1;
1: + blk_status_t rq_status;
1: + long unsigned int flush_pending_since;
1: + struct list_head flush_queue[2];
1: + struct list_head flush_data_in_flight;
1: + struct request *flush_rq;
1: + struct lock_class_key key;
1: + spinlock_t mq_flush_lock;
1: };
1:
1: struct blk_mq_queue_map {
1: - unsigned int *mq_map;
1: - unsigned int nr_queues;
1: - unsigned int queue_offset;
1: + unsigned int *mq_map;
1: + unsigned int nr_queues;
1: + unsigned int queue_offset;
1: };
1:
1: struct sbq_wait_state;
1:
1: struct sbitmap_queue {
1: - struct sbitmap sb;
1: - unsigned int *alloc_hint;
1: - unsigned int wake_batch;
1: - atomic_t wake_index;
1: - struct sbq_wait_state *ws;
1: - atomic_t ws_active;
1: - bool round_robin;
1: - unsigned int min_shallow_depth;
1: + struct sbitmap sb;
1: + unsigned int *alloc_hint;
1: + unsigned int wake_batch;
1: + atomic_t wake_index;
1: + struct sbq_wait_state *ws;
1: + atomic_t ws_active;
1: + bool round_robin;
1: + unsigned int min_shallow_depth;
1: };
1:
1: struct blk_mq_tag_set {
1: - struct blk_mq_queue_map map[3];
1: - unsigned int nr_maps;
1: - const struct blk_mq_ops *ops;
1: - unsigned int nr_hw_queues;
1: - unsigned int queue_depth;
1: - unsigned int reserved_tags;
1: - unsigned int cmd_size;
1: - int numa_node;
1: - unsigned int timeout;
1: - unsigned int flags;
1: - void *driver_data;
1: - atomic_t active_queues_shared_sbitmap;
1: - struct sbitmap_queue __bitmap_tags;
1: - struct sbitmap_queue __breserved_tags;
1: - struct blk_mq_tags **tags;
1: - struct mutex tag_list_lock;
1: - struct list_head tag_list;
1: + struct blk_mq_queue_map map[3];
1: + unsigned int nr_maps;
1: + const struct blk_mq_ops *ops;
1: + unsigned int nr_hw_queues;
1: + unsigned int queue_depth;
1: + unsigned int reserved_tags;
1: + unsigned int cmd_size;
1: + int numa_node;
1: + unsigned int timeout;
1: + unsigned int flags;
1: + void *driver_data;
1: + atomic_t active_queues_shared_sbitmap;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct blk_mq_tags **tags;
1: + struct mutex tag_list_lock;
1: + struct list_head tag_list;
1: };
1:
1: enum blktrace_cat {
1: - BLK_TC_READ = 1,
1: - BLK_TC_WRITE = 2,
1: - BLK_TC_FLUSH = 4,
1: - BLK_TC_SYNC = 8,
1: - BLK_TC_SYNCIO = 8,
1: - BLK_TC_QUEUE = 16,
1: - BLK_TC_REQUEUE = 32,
1: - BLK_TC_ISSUE = 64,
1: - BLK_TC_COMPLETE = 128,
1: - BLK_TC_FS = 256,
1: - BLK_TC_PC = 512,
1: - BLK_TC_NOTIFY = 1024,
1: - BLK_TC_AHEAD = 2048,
1: - BLK_TC_META = 4096,
1: - BLK_TC_DISCARD = 8192,
1: - BLK_TC_DRV_DATA = 16384,
1: - BLK_TC_FUA = 32768,
1: - BLK_TC_END = 32768,
1: + BLK_TC_READ = 1,
1: + BLK_TC_WRITE = 2,
1: + BLK_TC_FLUSH = 4,
1: + BLK_TC_SYNC = 8,
1: + BLK_TC_SYNCIO = 8,
1: + BLK_TC_QUEUE = 16,
1: + BLK_TC_REQUEUE = 32,
1: + BLK_TC_ISSUE = 64,
1: + BLK_TC_COMPLETE = 128,
1: + BLK_TC_FS = 256,
1: + BLK_TC_PC = 512,
1: + BLK_TC_NOTIFY = 1024,
1: + BLK_TC_AHEAD = 2048,
1: + BLK_TC_META = 4096,
1: + BLK_TC_DISCARD = 8192,
1: + BLK_TC_DRV_DATA = 16384,
1: + BLK_TC_FUA = 32768,
1: + BLK_TC_END = 32768,
1: };
1:
1: enum blktrace_act {
1: - __BLK_TA_QUEUE = 1,
1: - __BLK_TA_BACKMERGE = 2,
1: - __BLK_TA_FRONTMERGE = 3,
1: - __BLK_TA_GETRQ = 4,
1: - __BLK_TA_SLEEPRQ = 5,
1: - __BLK_TA_REQUEUE = 6,
1: - __BLK_TA_ISSUE = 7,
1: - __BLK_TA_COMPLETE = 8,
1: - __BLK_TA_PLUG = 9,
1: - __BLK_TA_UNPLUG_IO = 10,
1: - __BLK_TA_UNPLUG_TIMER = 11,
1: - __BLK_TA_INSERT = 12,
1: - __BLK_TA_SPLIT = 13,
1: - __BLK_TA_BOUNCE = 14,
1: - __BLK_TA_REMAP = 15,
1: - __BLK_TA_ABORT = 16,
1: - __BLK_TA_DRV_DATA = 17,
1: - __BLK_TA_CGROUP = 256,
1: + __BLK_TA_QUEUE = 1,
1: + __BLK_TA_BACKMERGE = 2,
1: + __BLK_TA_FRONTMERGE = 3,
1: + __BLK_TA_GETRQ = 4,
1: + __BLK_TA_SLEEPRQ = 5,
1: + __BLK_TA_REQUEUE = 6,
1: + __BLK_TA_ISSUE = 7,
1: + __BLK_TA_COMPLETE = 8,
1: + __BLK_TA_PLUG = 9,
1: + __BLK_TA_UNPLUG_IO = 10,
1: + __BLK_TA_UNPLUG_TIMER = 11,
1: + __BLK_TA_INSERT = 12,
1: + __BLK_TA_SPLIT = 13,
1: + __BLK_TA_BOUNCE = 14,
1: + __BLK_TA_REMAP = 15,
1: + __BLK_TA_ABORT = 16,
1: + __BLK_TA_DRV_DATA = 17,
1: + __BLK_TA_CGROUP = 256,
1: };
1:
1: enum blktrace_notify {
1: - __BLK_TN_PROCESS = 0,
1: - __BLK_TN_TIMESTAMP = 1,
1: - __BLK_TN_MESSAGE = 2,
1: - __BLK_TN_CGROUP = 256,
1: + __BLK_TN_PROCESS = 0,
1: + __BLK_TN_TIMESTAMP = 1,
1: + __BLK_TN_MESSAGE = 2,
1: + __BLK_TN_CGROUP = 256,
1: };
1:
1: struct blk_io_trace {
1: - __u32 magic;
1: - __u32 sequence;
1: - __u64 time;
1: - __u64 sector;
1: - __u32 bytes;
1: - __u32 action;
1: - __u32 pid;
1: - __u32 device;
1: - __u32 cpu;
1: - __u16 error;
1: - __u16 pdu_len;
1: + __u32 magic;
1: + __u32 sequence;
1: + __u64 time;
1: + __u64 sector;
1: + __u32 bytes;
1: + __u32 action;
1: + __u32 pid;
1: + __u32 device;
1: + __u32 cpu;
1: + __u16 error;
1: + __u16 pdu_len;
1: };
1:
1: struct blk_io_trace_remap {
1: - __be32 device_from;
1: - __be32 device_to;
1: - __be64 sector_from;
1: + __be32 device_from;
1: + __be32 device_to;
1: + __be64 sector_from;
1: };
1:
1: enum {
1: - Blktrace_setup = 1,
1: - Blktrace_running = 2,
1: - Blktrace_stopped = 3,
1: + Blktrace_setup = 1,
1: + Blktrace_running = 2,
1: + Blktrace_stopped = 3,
1: };
1:
1: struct blk_user_trace_setup {
1: - char name[32];
1: - __u16 act_mask;
1: - __u32 buf_size;
1: - __u32 buf_nr;
1: - __u64 start_lba;
1: - __u64 end_lba;
1: - __u32 pid;
1: + char name[32];
1: + __u16 act_mask;
1: + __u32 buf_size;
1: + __u32 buf_nr;
1: + __u64 start_lba;
1: + __u64 end_lba;
1: + __u32 pid;
1: };
1:
1: struct sbitmap_word {
1: - long unsigned int depth;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long unsigned int word;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long unsigned int cleared;
1: - spinlock_t swap_lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + long unsigned int depth;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long unsigned int word;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long unsigned int cleared;
1: + spinlock_t swap_lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct sbq_wait_state {
1: - atomic_t wait_cnt;
1: - wait_queue_head_t wait;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + atomic_t wait_cnt;
1: + wait_queue_head_t wait;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct blk_mq_tags {
1: - unsigned int nr_tags;
1: - unsigned int nr_reserved_tags;
1: - atomic_t active_queues;
1: - struct sbitmap_queue *bitmap_tags;
1: - struct sbitmap_queue *breserved_tags;
1: - struct sbitmap_queue __bitmap_tags;
1: - struct sbitmap_queue __breserved_tags;
1: - struct request **rqs;
1: - struct request **static_rqs;
1: - struct list_head page_list;
1: + unsigned int nr_tags;
1: + unsigned int nr_reserved_tags;
1: + atomic_t active_queues;
1: + struct sbitmap_queue *bitmap_tags;
1: + struct sbitmap_queue *breserved_tags;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct request **rqs;
1: + struct request **static_rqs;
1: + struct list_head page_list;
1: };
1:
1: struct blk_mq_queue_data {
1: - struct request *rq;
1: - bool last;
1: + struct request *rq;
1: + bool last;
1: };
1:
1: enum blk_crypto_mode_num {
1: - BLK_ENCRYPTION_MODE_INVALID = 0,
1: - BLK_ENCRYPTION_MODE_AES_256_XTS = 1,
1: - BLK_ENCRYPTION_MODE_AES_128_CBC_ESSIV = 2,
1: - BLK_ENCRYPTION_MODE_ADIANTUM = 3,
1: - BLK_ENCRYPTION_MODE_MAX = 4,
1: + BLK_ENCRYPTION_MODE_INVALID = 0,
1: + BLK_ENCRYPTION_MODE_AES_256_XTS = 1,
1: + BLK_ENCRYPTION_MODE_AES_128_CBC_ESSIV = 2,
1: + BLK_ENCRYPTION_MODE_ADIANTUM = 3,
1: + BLK_ENCRYPTION_MODE_MAX = 4,
1: };
1:
1: struct blk_crypto_config {
1: - enum blk_crypto_mode_num crypto_mode;
1: - unsigned int data_unit_size;
1: - unsigned int dun_bytes;
1: + enum blk_crypto_mode_num crypto_mode;
1: + unsigned int data_unit_size;
1: + unsigned int dun_bytes;
1: };
1:
1: struct blk_crypto_key {
1: - struct blk_crypto_config crypto_cfg;
1: - unsigned int data_unit_size_bits;
1: - unsigned int size;
1: - u8 raw[64];
1: + struct blk_crypto_config crypto_cfg;
1: + unsigned int data_unit_size_bits;
1: + unsigned int size;
1: + u8 raw[64];
1: };
1:
1: struct blk_mq_ctxs {
1: - struct kobject kobj;
1: - struct blk_mq_ctx *queue_ctx;
1: + struct kobject kobj;
1: + struct blk_mq_ctx *queue_ctx;
1: };
1:
1: typedef void blk_log_action_t(struct trace_iterator *, const char *, bool);
1:
1: struct ftrace_event_field {
1: - struct list_head link;
1: - const char *name;
1: - const char *type;
1: - int filter_type;
1: - int offset;
1: - int size;
1: - int is_signed;
1: + struct list_head link;
1: + const char *name;
1: + const char *type;
1: + int filter_type;
1: + int offset;
1: + int size;
1: + int is_signed;
1: };
1:
1: enum {
1: - FORMAT_HEADER = 1,
1: - FORMAT_FIELD_SEPERATOR = 2,
1: - FORMAT_PRINTFMT = 3,
1: + FORMAT_HEADER = 1,
1: + FORMAT_FIELD_SEPERATOR = 2,
1: + FORMAT_PRINTFMT = 3,
1: };
1:
1: struct event_probe_data {
1: - struct trace_event_file *file;
1: - long unsigned int count;
1: - int ref;
1: - bool enable;
1: + struct trace_event_file *file;
1: + long unsigned int count;
1: + int ref;
1: + bool enable;
1: };
1:
1: struct syscall_trace_enter {
1: - struct trace_entry ent;
1: - int nr;
1: - long unsigned int args[0];
1: + struct trace_entry ent;
1: + int nr;
1: + long unsigned int args[0];
1: };
1:
1: struct syscall_trace_exit {
1: - struct trace_entry ent;
1: - int nr;
1: - long int ret;
1: + struct trace_entry ent;
1: + int nr;
1: + long int ret;
1: };
1:
1: struct syscall_tp_t {
1: - long long unsigned int regs;
1: - long unsigned int syscall_nr;
1: - long unsigned int ret;
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int ret;
1: };
1:
1: struct syscall_tp_t___2 {
1: - long long unsigned int regs;
1: - long unsigned int syscall_nr;
1: - long unsigned int args[6];
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int args[6];
1: };
1:
1: enum perf_event_sample_format {
1: - PERF_SAMPLE_IP = 1,
1: - PERF_SAMPLE_TID = 2,
1: - PERF_SAMPLE_TIME = 4,
1: - PERF_SAMPLE_ADDR = 8,
1: - PERF_SAMPLE_READ = 16,
1: - PERF_SAMPLE_CALLCHAIN = 32,
1: - PERF_SAMPLE_ID = 64,
1: - PERF_SAMPLE_CPU = 128,
1: - PERF_SAMPLE_PERIOD = 256,
1: - PERF_SAMPLE_STREAM_ID = 512,
1: - PERF_SAMPLE_RAW = 1024,
1: - PERF_SAMPLE_BRANCH_STACK = 2048,
1: - PERF_SAMPLE_REGS_USER = 4096,
1: - PERF_SAMPLE_STACK_USER = 8192,
1: - PERF_SAMPLE_WEIGHT = 16384,
1: - PERF_SAMPLE_DATA_SRC = 32768,
1: - PERF_SAMPLE_IDENTIFIER = 65536,
1: - PERF_SAMPLE_TRANSACTION = 131072,
1: - PERF_SAMPLE_REGS_INTR = 262144,
1: - PERF_SAMPLE_PHYS_ADDR = 524288,
1: - PERF_SAMPLE_AUX = 1048576,
1: - PERF_SAMPLE_CGROUP = 2097152,
1: - PERF_SAMPLE_MAX = 4194304,
1: - __PERF_SAMPLE_CALLCHAIN_EARLY = 0,
1: + PERF_SAMPLE_IP = 1,
1: + PERF_SAMPLE_TID = 2,
1: + PERF_SAMPLE_TIME = 4,
1: + PERF_SAMPLE_ADDR = 8,
1: + PERF_SAMPLE_READ = 16,
1: + PERF_SAMPLE_CALLCHAIN = 32,
1: + PERF_SAMPLE_ID = 64,
1: + PERF_SAMPLE_CPU = 128,
1: + PERF_SAMPLE_PERIOD = 256,
1: + PERF_SAMPLE_STREAM_ID = 512,
1: + PERF_SAMPLE_RAW = 1024,
1: + PERF_SAMPLE_BRANCH_STACK = 2048,
1: + PERF_SAMPLE_REGS_USER = 4096,
1: + PERF_SAMPLE_STACK_USER = 8192,
1: + PERF_SAMPLE_WEIGHT = 16384,
1: + PERF_SAMPLE_DATA_SRC = 32768,
1: + PERF_SAMPLE_IDENTIFIER = 65536,
1: + PERF_SAMPLE_TRANSACTION = 131072,
1: + PERF_SAMPLE_REGS_INTR = 262144,
1: + PERF_SAMPLE_PHYS_ADDR = 524288,
1: + PERF_SAMPLE_AUX = 1048576,
1: + PERF_SAMPLE_CGROUP = 2097152,
1: + PERF_SAMPLE_MAX = 4194304,
1: + __PERF_SAMPLE_CALLCHAIN_EARLY = 0,
1: };
1:
1: typedef long unsigned int perf_trace_t[256];
1: @@ -28877,9 +29200,9 @@ typedef long unsigned int perf_trace_t[256];
1: struct filter_pred;
1:
1: struct prog_entry {
1: - int target;
1: - int when_to_branch;
1: - struct filter_pred *pred;
1: + int target;
1: + int when_to_branch;
1: + struct filter_pred *pred;
1: };
1:
1: typedef int (*filter_pred_fn_t)(struct filter_pred *, void *);
1: @@ -28889,84 +29212,86 @@ struct regex;
1: typedef int (*regex_match_func)(char *, struct regex *, int);
1:
1: struct regex {
1: - char pattern[256];
1: - int len;
1: - int field_len;
1: - regex_match_func match;
1: + char pattern[256];
1: + int len;
1: + int field_len;
1: + regex_match_func match;
1: };
1:
1: struct filter_pred {
1: - filter_pred_fn_t fn;
1: - u64 val;
1: - struct regex regex;
1: - short unsigned int *ops;
1: - struct ftrace_event_field *field;
1: - int offset;
1: - int not;
1: - int op;
1: + filter_pred_fn_t fn;
1: + u64 val;
1: + struct regex regex;
1: + short unsigned int *ops;
1: + struct ftrace_event_field *field;
1: + int offset;
1: + int not;
1: + int op;
1: };
1:
1: enum filter_op_ids {
1: - OP_GLOB = 0,
1: - OP_NE = 1,
1: - OP_EQ = 2,
1: - OP_LE = 3,
1: - OP_LT = 4,
1: - OP_GE = 5,
1: - OP_GT = 6,
1: - OP_BAND = 7,
1: - OP_MAX = 8,
1: -};
1: -
1: -enum {
1: - FILT_ERR_NONE = 0,
1: - FILT_ERR_INVALID_OP = 1,
1: - FILT_ERR_TOO_MANY_OPEN = 2,
1: - FILT_ERR_TOO_MANY_CLOSE = 3,
1: - FILT_ERR_MISSING_QUOTE = 4,
1: - FILT_ERR_OPERAND_TOO_LONG = 5,
1: - FILT_ERR_EXPECT_STRING = 6,
1: - FILT_ERR_EXPECT_DIGIT = 7,
1: - FILT_ERR_ILLEGAL_FIELD_OP = 8,
1: - FILT_ERR_FIELD_NOT_FOUND = 9,
1: - FILT_ERR_ILLEGAL_INTVAL = 10,
1: - FILT_ERR_BAD_SUBSYS_FILTER = 11,
1: - FILT_ERR_TOO_MANY_PREDS = 12,
1: - FILT_ERR_INVALID_FILTER = 13,
1: - FILT_ERR_IP_FIELD_ONLY = 14,
1: - FILT_ERR_INVALID_VALUE = 15,
1: - FILT_ERR_ERRNO = 16,
1: - FILT_ERR_NO_FILTER = 17,
1: + OP_GLOB = 0,
1: + OP_NE = 1,
1: + OP_EQ = 2,
1: + OP_LE = 3,
1: + OP_LT = 4,
1: + OP_GE = 5,
1: + OP_GT = 6,
1: + OP_BAND = 7,
1: + OP_MAX = 8,
1: +};
1: +
1: +enum {
1: + FILT_ERR_NONE = 0,
1: + FILT_ERR_INVALID_OP = 1,
1: + FILT_ERR_TOO_MANY_OPEN = 2,
1: + FILT_ERR_TOO_MANY_CLOSE = 3,
1: + FILT_ERR_MISSING_QUOTE = 4,
1: + FILT_ERR_OPERAND_TOO_LONG = 5,
1: + FILT_ERR_EXPECT_STRING = 6,
1: + FILT_ERR_EXPECT_DIGIT = 7,
1: + FILT_ERR_ILLEGAL_FIELD_OP = 8,
1: + FILT_ERR_FIELD_NOT_FOUND = 9,
1: + FILT_ERR_ILLEGAL_INTVAL = 10,
1: + FILT_ERR_BAD_SUBSYS_FILTER = 11,
1: + FILT_ERR_TOO_MANY_PREDS = 12,
1: + FILT_ERR_INVALID_FILTER = 13,
1: + FILT_ERR_IP_FIELD_ONLY = 14,
1: + FILT_ERR_INVALID_VALUE = 15,
1: + FILT_ERR_ERRNO = 16,
1: + FILT_ERR_NO_FILTER = 17,
1: };
1:
1: struct filter_parse_error {
1: - int lasterr;
1: - int lasterr_pos;
1: + int lasterr;
1: + int lasterr_pos;
1: };
1:
1: -typedef int (*parse_pred_fn)(const char *, void *, int, struct filter_parse_error *, struct filter_pred **);
1: +typedef int (*parse_pred_fn)(const char *, void *, int,
1: + struct filter_parse_error *,
1: + struct filter_pred **);
1:
1: enum {
1: - INVERT = 1,
1: - PROCESS_AND = 2,
1: - PROCESS_OR = 4,
1: + INVERT = 1,
1: + PROCESS_AND = 2,
1: + PROCESS_OR = 4,
1: };
1:
1: enum {
1: - TOO_MANY_CLOSE = 4294967295,
1: - TOO_MANY_OPEN = 4294967294,
1: - MISSING_QUOTE = 4294967293,
1: + TOO_MANY_CLOSE = 4294967295,
1: + TOO_MANY_OPEN = 4294967294,
1: + MISSING_QUOTE = 4294967293,
1: };
1:
1: struct filter_list {
1: - struct list_head list;
1: - struct event_filter *filter;
1: + struct list_head list;
1: + struct event_filter *filter;
1: };
1:
1: struct function_filter_data {
1: - struct ftrace_ops *ops;
1: - int first_filter;
1: - int first_notrace;
1: + struct ftrace_ops *ops;
1: + int first_filter;
1: + int first_notrace;
1: };
1:
1: struct event_trigger_ops;
1: @@ -28974,424 +29299,436 @@ struct event_trigger_ops;
1: struct event_command;
1:
1: struct event_trigger_data {
1: - long unsigned int count;
1: - int ref;
1: - struct event_trigger_ops *ops;
1: - struct event_command *cmd_ops;
1: - struct event_filter *filter;
1: - char *filter_str;
1: - void *private_data;
1: - bool paused;
1: - bool paused_tmp;
1: - struct list_head list;
1: - char *name;
1: - struct list_head named_list;
1: - struct event_trigger_data *named_data;
1: + long unsigned int count;
1: + int ref;
1: + struct event_trigger_ops *ops;
1: + struct event_command *cmd_ops;
1: + struct event_filter *filter;
1: + char *filter_str;
1: + void *private_data;
1: + bool paused;
1: + bool paused_tmp;
1: + struct list_head list;
1: + char *name;
1: + struct list_head named_list;
1: + struct event_trigger_data *named_data;
1: };
1:
1: struct event_trigger_ops {
1: - void (*func)(struct event_trigger_data *, void *, struct ring_buffer_event *);
1: - int (*init)(struct event_trigger_ops *, struct event_trigger_data *);
1: - void (*free)(struct event_trigger_ops *, struct event_trigger_data *);
1: - int (*print)(struct seq_file *, struct event_trigger_ops *, struct event_trigger_data *);
1: + void (*func)(struct event_trigger_data *, void *, struct ring_buffer_event *);
1: + int (*init)(struct event_trigger_ops *, struct event_trigger_data *);
1: + void (*free)(struct event_trigger_ops *, struct event_trigger_data *);
1: + int (*print)(struct seq_file *, struct event_trigger_ops *,
1: + struct event_trigger_data *);
1: };
1:
1: struct event_command {
1: - struct list_head list;
1: - char *name;
1: - enum event_trigger_type trigger_type;
1: - int flags;
1: - int (*func)(struct event_command *, struct trace_event_file *, char *, char *, char *);
1: - int (*reg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: - void (*unreg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: - void (*unreg_all)(struct trace_event_file *);
1: - int (*set_filter)(char *, struct event_trigger_data *, struct trace_event_file *);
1: - struct event_trigger_ops * (*get_trigger_ops)(char *, char *);
1: + struct list_head list;
1: + char *name;
1: + enum event_trigger_type trigger_type;
1: + int flags;
1: + int (*func)(struct event_command *, struct trace_event_file *, char *, char *,
1: + char *);
1: + int (*reg)(char *, struct event_trigger_ops *, struct event_trigger_data *,
1: + struct trace_event_file *);
1: + void (*unreg)(char *, struct event_trigger_ops *, struct event_trigger_data *,
1: + struct trace_event_file *);
1: + void (*unreg_all)(struct trace_event_file *);
1: + int (*set_filter)(char *, struct event_trigger_data *,
1: + struct trace_event_file *);
1: + struct event_trigger_ops *(*get_trigger_ops)(char *, char *);
1: };
1:
1: struct enable_trigger_data {
1: - struct trace_event_file *file;
1: - bool enable;
1: - bool hist;
1: + struct trace_event_file *file;
1: + bool enable;
1: + bool hist;
1: };
1:
1: enum event_command_flags {
1: - EVENT_CMD_FL_POST_TRIGGER = 1,
1: - EVENT_CMD_FL_NEEDS_REC = 2,
1: + EVENT_CMD_FL_POST_TRIGGER = 1,
1: + EVENT_CMD_FL_NEEDS_REC = 2,
1: };
1:
1: enum bpf_func_id {
1: - BPF_FUNC_unspec = 0,
1: - BPF_FUNC_map_lookup_elem = 1,
1: - BPF_FUNC_map_update_elem = 2,
1: - BPF_FUNC_map_delete_elem = 3,
1: - BPF_FUNC_probe_read = 4,
1: - BPF_FUNC_ktime_get_ns = 5,
1: - BPF_FUNC_trace_printk = 6,
1: - BPF_FUNC_get_prandom_u32 = 7,
1: - BPF_FUNC_get_smp_processor_id = 8,
1: - BPF_FUNC_skb_store_bytes = 9,
1: - BPF_FUNC_l3_csum_replace = 10,
1: - BPF_FUNC_l4_csum_replace = 11,
1: - BPF_FUNC_tail_call = 12,
1: - BPF_FUNC_clone_redirect = 13,
1: - BPF_FUNC_get_current_pid_tgid = 14,
1: - BPF_FUNC_get_current_uid_gid = 15,
1: - BPF_FUNC_get_current_comm = 16,
1: - BPF_FUNC_get_cgroup_classid = 17,
1: - BPF_FUNC_skb_vlan_push = 18,
1: - BPF_FUNC_skb_vlan_pop = 19,
1: - BPF_FUNC_skb_get_tunnel_key = 20,
1: - BPF_FUNC_skb_set_tunnel_key = 21,
1: - BPF_FUNC_perf_event_read = 22,
1: - BPF_FUNC_redirect = 23,
1: - BPF_FUNC_get_route_realm = 24,
1: - BPF_FUNC_perf_event_output = 25,
1: - BPF_FUNC_skb_load_bytes = 26,
1: - BPF_FUNC_get_stackid = 27,
1: - BPF_FUNC_csum_diff = 28,
1: - BPF_FUNC_skb_get_tunnel_opt = 29,
1: - BPF_FUNC_skb_set_tunnel_opt = 30,
1: - BPF_FUNC_skb_change_proto = 31,
1: - BPF_FUNC_skb_change_type = 32,
1: - BPF_FUNC_skb_under_cgroup = 33,
1: - BPF_FUNC_get_hash_recalc = 34,
1: - BPF_FUNC_get_current_task = 35,
1: - BPF_FUNC_probe_write_user = 36,
1: - BPF_FUNC_current_task_under_cgroup = 37,
1: - BPF_FUNC_skb_change_tail = 38,
1: - BPF_FUNC_skb_pull_data = 39,
1: - BPF_FUNC_csum_update = 40,
1: - BPF_FUNC_set_hash_invalid = 41,
1: - BPF_FUNC_get_numa_node_id = 42,
1: - BPF_FUNC_skb_change_head = 43,
1: - BPF_FUNC_xdp_adjust_head = 44,
1: - BPF_FUNC_probe_read_str = 45,
1: - BPF_FUNC_get_socket_cookie = 46,
1: - BPF_FUNC_get_socket_uid = 47,
1: - BPF_FUNC_set_hash = 48,
1: - BPF_FUNC_setsockopt = 49,
1: - BPF_FUNC_skb_adjust_room = 50,
1: - BPF_FUNC_redirect_map = 51,
1: - BPF_FUNC_sk_redirect_map = 52,
1: - BPF_FUNC_sock_map_update = 53,
1: - BPF_FUNC_xdp_adjust_meta = 54,
1: - BPF_FUNC_perf_event_read_value = 55,
1: - BPF_FUNC_perf_prog_read_value = 56,
1: - BPF_FUNC_getsockopt = 57,
1: - BPF_FUNC_override_return = 58,
1: - BPF_FUNC_sock_ops_cb_flags_set = 59,
1: - BPF_FUNC_msg_redirect_map = 60,
1: - BPF_FUNC_msg_apply_bytes = 61,
1: - BPF_FUNC_msg_cork_bytes = 62,
1: - BPF_FUNC_msg_pull_data = 63,
1: - BPF_FUNC_bind = 64,
1: - BPF_FUNC_xdp_adjust_tail = 65,
1: - BPF_FUNC_skb_get_xfrm_state = 66,
1: - BPF_FUNC_get_stack = 67,
1: - BPF_FUNC_skb_load_bytes_relative = 68,
1: - BPF_FUNC_fib_lookup = 69,
1: - BPF_FUNC_sock_hash_update = 70,
1: - BPF_FUNC_msg_redirect_hash = 71,
1: - BPF_FUNC_sk_redirect_hash = 72,
1: - BPF_FUNC_lwt_push_encap = 73,
1: - BPF_FUNC_lwt_seg6_store_bytes = 74,
1: - BPF_FUNC_lwt_seg6_adjust_srh = 75,
1: - BPF_FUNC_lwt_seg6_action = 76,
1: - BPF_FUNC_rc_repeat = 77,
1: - BPF_FUNC_rc_keydown = 78,
1: - BPF_FUNC_skb_cgroup_id = 79,
1: - BPF_FUNC_get_current_cgroup_id = 80,
1: - BPF_FUNC_get_local_storage = 81,
1: - BPF_FUNC_sk_select_reuseport = 82,
1: - BPF_FUNC_skb_ancestor_cgroup_id = 83,
1: - BPF_FUNC_sk_lookup_tcp = 84,
1: - BPF_FUNC_sk_lookup_udp = 85,
1: - BPF_FUNC_sk_release = 86,
1: - BPF_FUNC_map_push_elem = 87,
1: - BPF_FUNC_map_pop_elem = 88,
1: - BPF_FUNC_map_peek_elem = 89,
1: - BPF_FUNC_msg_push_data = 90,
1: - BPF_FUNC_msg_pop_data = 91,
1: - BPF_FUNC_rc_pointer_rel = 92,
1: - BPF_FUNC_spin_lock = 93,
1: - BPF_FUNC_spin_unlock = 94,
1: - BPF_FUNC_sk_fullsock = 95,
1: - BPF_FUNC_tcp_sock = 96,
1: - BPF_FUNC_skb_ecn_set_ce = 97,
1: - BPF_FUNC_get_listener_sock = 98,
1: - BPF_FUNC_skc_lookup_tcp = 99,
1: - BPF_FUNC_tcp_check_syncookie = 100,
1: - BPF_FUNC_sysctl_get_name = 101,
1: - BPF_FUNC_sysctl_get_current_value = 102,
1: - BPF_FUNC_sysctl_get_new_value = 103,
1: - BPF_FUNC_sysctl_set_new_value = 104,
1: - BPF_FUNC_strtol = 105,
1: - BPF_FUNC_strtoul = 106,
1: - BPF_FUNC_sk_storage_get = 107,
1: - BPF_FUNC_sk_storage_delete = 108,
1: - BPF_FUNC_send_signal = 109,
1: - BPF_FUNC_tcp_gen_syncookie = 110,
1: - BPF_FUNC_skb_output = 111,
1: - BPF_FUNC_probe_read_user = 112,
1: - BPF_FUNC_probe_read_kernel = 113,
1: - BPF_FUNC_probe_read_user_str = 114,
1: - BPF_FUNC_probe_read_kernel_str = 115,
1: - BPF_FUNC_tcp_send_ack = 116,
1: - BPF_FUNC_send_signal_thread = 117,
1: - BPF_FUNC_jiffies64 = 118,
1: - BPF_FUNC_read_branch_records = 119,
1: - BPF_FUNC_get_ns_current_pid_tgid = 120,
1: - BPF_FUNC_xdp_output = 121,
1: - BPF_FUNC_get_netns_cookie = 122,
1: - BPF_FUNC_get_current_ancestor_cgroup_id = 123,
1: - BPF_FUNC_sk_assign = 124,
1: - BPF_FUNC_ktime_get_boot_ns = 125,
1: - BPF_FUNC_seq_printf = 126,
1: - BPF_FUNC_seq_write = 127,
1: - BPF_FUNC_sk_cgroup_id = 128,
1: - BPF_FUNC_sk_ancestor_cgroup_id = 129,
1: - BPF_FUNC_ringbuf_output = 130,
1: - BPF_FUNC_ringbuf_reserve = 131,
1: - BPF_FUNC_ringbuf_submit = 132,
1: - BPF_FUNC_ringbuf_discard = 133,
1: - BPF_FUNC_ringbuf_query = 134,
1: - BPF_FUNC_csum_level = 135,
1: - BPF_FUNC_skc_to_tcp6_sock = 136,
1: - BPF_FUNC_skc_to_tcp_sock = 137,
1: - BPF_FUNC_skc_to_tcp_timewait_sock = 138,
1: - BPF_FUNC_skc_to_tcp_request_sock = 139,
1: - BPF_FUNC_skc_to_udp6_sock = 140,
1: - BPF_FUNC_get_task_stack = 141,
1: - BPF_FUNC_load_hdr_opt = 142,
1: - BPF_FUNC_store_hdr_opt = 143,
1: - BPF_FUNC_reserve_hdr_opt = 144,
1: - BPF_FUNC_inode_storage_get = 145,
1: - BPF_FUNC_inode_storage_delete = 146,
1: - BPF_FUNC_d_path = 147,
1: - BPF_FUNC_copy_from_user = 148,
1: - BPF_FUNC_snprintf_btf = 149,
1: - BPF_FUNC_seq_printf_btf = 150,
1: - BPF_FUNC_skb_cgroup_classid = 151,
1: - BPF_FUNC_redirect_neigh = 152,
1: - BPF_FUNC_per_cpu_ptr = 153,
1: - BPF_FUNC_this_cpu_ptr = 154,
1: - BPF_FUNC_redirect_peer = 155,
1: - __BPF_FUNC_MAX_ID = 156,
1: -};
1: -
1: -enum {
1: - BPF_F_INDEX_MASK = 4294967295,
1: - BPF_F_CURRENT_CPU = 4294967295,
1: - BPF_F_CTXLEN_MASK = 0,
1: + BPF_FUNC_unspec = 0,
1: + BPF_FUNC_map_lookup_elem = 1,
1: + BPF_FUNC_map_update_elem = 2,
1: + BPF_FUNC_map_delete_elem = 3,
1: + BPF_FUNC_probe_read = 4,
1: + BPF_FUNC_ktime_get_ns = 5,
1: + BPF_FUNC_trace_printk = 6,
1: + BPF_FUNC_get_prandom_u32 = 7,
1: + BPF_FUNC_get_smp_processor_id = 8,
1: + BPF_FUNC_skb_store_bytes = 9,
1: + BPF_FUNC_l3_csum_replace = 10,
1: + BPF_FUNC_l4_csum_replace = 11,
1: + BPF_FUNC_tail_call = 12,
1: + BPF_FUNC_clone_redirect = 13,
1: + BPF_FUNC_get_current_pid_tgid = 14,
1: + BPF_FUNC_get_current_uid_gid = 15,
1: + BPF_FUNC_get_current_comm = 16,
1: + BPF_FUNC_get_cgroup_classid = 17,
1: + BPF_FUNC_skb_vlan_push = 18,
1: + BPF_FUNC_skb_vlan_pop = 19,
1: + BPF_FUNC_skb_get_tunnel_key = 20,
1: + BPF_FUNC_skb_set_tunnel_key = 21,
1: + BPF_FUNC_perf_event_read = 22,
1: + BPF_FUNC_redirect = 23,
1: + BPF_FUNC_get_route_realm = 24,
1: + BPF_FUNC_perf_event_output = 25,
1: + BPF_FUNC_skb_load_bytes = 26,
1: + BPF_FUNC_get_stackid = 27,
1: + BPF_FUNC_csum_diff = 28,
1: + BPF_FUNC_skb_get_tunnel_opt = 29,
1: + BPF_FUNC_skb_set_tunnel_opt = 30,
1: + BPF_FUNC_skb_change_proto = 31,
1: + BPF_FUNC_skb_change_type = 32,
1: + BPF_FUNC_skb_under_cgroup = 33,
1: + BPF_FUNC_get_hash_recalc = 34,
1: + BPF_FUNC_get_current_task = 35,
1: + BPF_FUNC_probe_write_user = 36,
1: + BPF_FUNC_current_task_under_cgroup = 37,
1: + BPF_FUNC_skb_change_tail = 38,
1: + BPF_FUNC_skb_pull_data = 39,
1: + BPF_FUNC_csum_update = 40,
1: + BPF_FUNC_set_hash_invalid = 41,
1: + BPF_FUNC_get_numa_node_id = 42,
1: + BPF_FUNC_skb_change_head = 43,
1: + BPF_FUNC_xdp_adjust_head = 44,
1: + BPF_FUNC_probe_read_str = 45,
1: + BPF_FUNC_get_socket_cookie = 46,
1: + BPF_FUNC_get_socket_uid = 47,
1: + BPF_FUNC_set_hash = 48,
1: + BPF_FUNC_setsockopt = 49,
1: + BPF_FUNC_skb_adjust_room = 50,
1: + BPF_FUNC_redirect_map = 51,
1: + BPF_FUNC_sk_redirect_map = 52,
1: + BPF_FUNC_sock_map_update = 53,
1: + BPF_FUNC_xdp_adjust_meta = 54,
1: + BPF_FUNC_perf_event_read_value = 55,
1: + BPF_FUNC_perf_prog_read_value = 56,
1: + BPF_FUNC_getsockopt = 57,
1: + BPF_FUNC_override_return = 58,
1: + BPF_FUNC_sock_ops_cb_flags_set = 59,
1: + BPF_FUNC_msg_redirect_map = 60,
1: + BPF_FUNC_msg_apply_bytes = 61,
1: + BPF_FUNC_msg_cork_bytes = 62,
1: + BPF_FUNC_msg_pull_data = 63,
1: + BPF_FUNC_bind = 64,
1: + BPF_FUNC_xdp_adjust_tail = 65,
1: + BPF_FUNC_skb_get_xfrm_state = 66,
1: + BPF_FUNC_get_stack = 67,
1: + BPF_FUNC_skb_load_bytes_relative = 68,
1: + BPF_FUNC_fib_lookup = 69,
1: + BPF_FUNC_sock_hash_update = 70,
1: + BPF_FUNC_msg_redirect_hash = 71,
1: + BPF_FUNC_sk_redirect_hash = 72,
1: + BPF_FUNC_lwt_push_encap = 73,
1: + BPF_FUNC_lwt_seg6_store_bytes = 74,
1: + BPF_FUNC_lwt_seg6_adjust_srh = 75,
1: + BPF_FUNC_lwt_seg6_action = 76,
1: + BPF_FUNC_rc_repeat = 77,
1: + BPF_FUNC_rc_keydown = 78,
1: + BPF_FUNC_skb_cgroup_id = 79,
1: + BPF_FUNC_get_current_cgroup_id = 80,
1: + BPF_FUNC_get_local_storage = 81,
1: + BPF_FUNC_sk_select_reuseport = 82,
1: + BPF_FUNC_skb_ancestor_cgroup_id = 83,
1: + BPF_FUNC_sk_lookup_tcp = 84,
1: + BPF_FUNC_sk_lookup_udp = 85,
1: + BPF_FUNC_sk_release = 86,
1: + BPF_FUNC_map_push_elem = 87,
1: + BPF_FUNC_map_pop_elem = 88,
1: + BPF_FUNC_map_peek_elem = 89,
1: + BPF_FUNC_msg_push_data = 90,
1: + BPF_FUNC_msg_pop_data = 91,
1: + BPF_FUNC_rc_pointer_rel = 92,
1: + BPF_FUNC_spin_lock = 93,
1: + BPF_FUNC_spin_unlock = 94,
1: + BPF_FUNC_sk_fullsock = 95,
1: + BPF_FUNC_tcp_sock = 96,
1: + BPF_FUNC_skb_ecn_set_ce = 97,
1: + BPF_FUNC_get_listener_sock = 98,
1: + BPF_FUNC_skc_lookup_tcp = 99,
1: + BPF_FUNC_tcp_check_syncookie = 100,
1: + BPF_FUNC_sysctl_get_name = 101,
1: + BPF_FUNC_sysctl_get_current_value = 102,
1: + BPF_FUNC_sysctl_get_new_value = 103,
1: + BPF_FUNC_sysctl_set_new_value = 104,
1: + BPF_FUNC_strtol = 105,
1: + BPF_FUNC_strtoul = 106,
1: + BPF_FUNC_sk_storage_get = 107,
1: + BPF_FUNC_sk_storage_delete = 108,
1: + BPF_FUNC_send_signal = 109,
1: + BPF_FUNC_tcp_gen_syncookie = 110,
1: + BPF_FUNC_skb_output = 111,
1: + BPF_FUNC_probe_read_user = 112,
1: + BPF_FUNC_probe_read_kernel = 113,
1: + BPF_FUNC_probe_read_user_str = 114,
1: + BPF_FUNC_probe_read_kernel_str = 115,
1: + BPF_FUNC_tcp_send_ack = 116,
1: + BPF_FUNC_send_signal_thread = 117,
1: + BPF_FUNC_jiffies64 = 118,
1: + BPF_FUNC_read_branch_records = 119,
1: + BPF_FUNC_get_ns_current_pid_tgid = 120,
1: + BPF_FUNC_xdp_output = 121,
1: + BPF_FUNC_get_netns_cookie = 122,
1: + BPF_FUNC_get_current_ancestor_cgroup_id = 123,
1: + BPF_FUNC_sk_assign = 124,
1: + BPF_FUNC_ktime_get_boot_ns = 125,
1: + BPF_FUNC_seq_printf = 126,
1: + BPF_FUNC_seq_write = 127,
1: + BPF_FUNC_sk_cgroup_id = 128,
1: + BPF_FUNC_sk_ancestor_cgroup_id = 129,
1: + BPF_FUNC_ringbuf_output = 130,
1: + BPF_FUNC_ringbuf_reserve = 131,
1: + BPF_FUNC_ringbuf_submit = 132,
1: + BPF_FUNC_ringbuf_discard = 133,
1: + BPF_FUNC_ringbuf_query = 134,
1: + BPF_FUNC_csum_level = 135,
1: + BPF_FUNC_skc_to_tcp6_sock = 136,
1: + BPF_FUNC_skc_to_tcp_sock = 137,
1: + BPF_FUNC_skc_to_tcp_timewait_sock = 138,
1: + BPF_FUNC_skc_to_tcp_request_sock = 139,
1: + BPF_FUNC_skc_to_udp6_sock = 140,
1: + BPF_FUNC_get_task_stack = 141,
1: + BPF_FUNC_load_hdr_opt = 142,
1: + BPF_FUNC_store_hdr_opt = 143,
1: + BPF_FUNC_reserve_hdr_opt = 144,
1: + BPF_FUNC_inode_storage_get = 145,
1: + BPF_FUNC_inode_storage_delete = 146,
1: + BPF_FUNC_d_path = 147,
1: + BPF_FUNC_copy_from_user = 148,
1: + BPF_FUNC_snprintf_btf = 149,
1: + BPF_FUNC_seq_printf_btf = 150,
1: + BPF_FUNC_skb_cgroup_classid = 151,
1: + BPF_FUNC_redirect_neigh = 152,
1: + BPF_FUNC_per_cpu_ptr = 153,
1: + BPF_FUNC_this_cpu_ptr = 154,
1: + BPF_FUNC_redirect_peer = 155,
1: + __BPF_FUNC_MAX_ID = 156,
1: +};
1: +
1: +enum {
1: + BPF_F_INDEX_MASK = 4294967295,
1: + BPF_F_CURRENT_CPU = 4294967295,
1: + BPF_F_CTXLEN_MASK = 0,
1: };
1:
1: struct bpf_perf_event_value {
1: - __u64 counter;
1: - __u64 enabled;
1: - __u64 running;
1: + __u64 counter;
1: + __u64 enabled;
1: + __u64 running;
1: };
1:
1: struct bpf_raw_tracepoint_args {
1: - __u64 args[0];
1: + __u64 args[0];
1: };
1:
1: enum bpf_task_fd_type {
1: - BPF_FD_TYPE_RAW_TRACEPOINT = 0,
1: - BPF_FD_TYPE_TRACEPOINT = 1,
1: - BPF_FD_TYPE_KPROBE = 2,
1: - BPF_FD_TYPE_KRETPROBE = 3,
1: - BPF_FD_TYPE_UPROBE = 4,
1: - BPF_FD_TYPE_URETPROBE = 5,
1: + BPF_FD_TYPE_RAW_TRACEPOINT = 0,
1: + BPF_FD_TYPE_TRACEPOINT = 1,
1: + BPF_FD_TYPE_KPROBE = 2,
1: + BPF_FD_TYPE_KRETPROBE = 3,
1: + BPF_FD_TYPE_UPROBE = 4,
1: + BPF_FD_TYPE_URETPROBE = 5,
1: };
1:
1: struct btf_ptr {
1: - void *ptr;
1: - __u32 type_id;
1: - __u32 flags;
1: + void *ptr;
1: + __u32 type_id;
1: + __u32 flags;
1: };
1:
1: enum {
1: - BTF_F_COMPACT = 1,
1: - BTF_F_NONAME = 2,
1: - BTF_F_PTR_RAW = 4,
1: - BTF_F_ZERO = 8,
1: + BTF_F_COMPACT = 1,
1: + BTF_F_NONAME = 2,
1: + BTF_F_PTR_RAW = 4,
1: + BTF_F_ZERO = 8,
1: };
1:
1: enum bpf_arg_type {
1: - ARG_DONTCARE = 0,
1: - ARG_CONST_MAP_PTR = 1,
1: - ARG_PTR_TO_MAP_KEY = 2,
1: - ARG_PTR_TO_MAP_VALUE = 3,
1: - ARG_PTR_TO_UNINIT_MAP_VALUE = 4,
1: - ARG_PTR_TO_MAP_VALUE_OR_NULL = 5,
1: - ARG_PTR_TO_MEM = 6,
1: - ARG_PTR_TO_MEM_OR_NULL = 7,
1: - ARG_PTR_TO_UNINIT_MEM = 8,
1: - ARG_CONST_SIZE = 9,
1: - ARG_CONST_SIZE_OR_ZERO = 10,
1: - ARG_PTR_TO_CTX = 11,
1: - ARG_PTR_TO_CTX_OR_NULL = 12,
1: - ARG_ANYTHING = 13,
1: - ARG_PTR_TO_SPIN_LOCK = 14,
1: - ARG_PTR_TO_SOCK_COMMON = 15,
1: - ARG_PTR_TO_INT = 16,
1: - ARG_PTR_TO_LONG = 17,
1: - ARG_PTR_TO_SOCKET = 18,
1: - ARG_PTR_TO_SOCKET_OR_NULL = 19,
1: - ARG_PTR_TO_BTF_ID = 20,
1: - ARG_PTR_TO_ALLOC_MEM = 21,
1: - ARG_PTR_TO_ALLOC_MEM_OR_NULL = 22,
1: - ARG_CONST_ALLOC_SIZE_OR_ZERO = 23,
1: - ARG_PTR_TO_BTF_ID_SOCK_COMMON = 24,
1: - ARG_PTR_TO_PERCPU_BTF_ID = 25,
1: - __BPF_ARG_TYPE_MAX = 26,
1: + ARG_DONTCARE = 0,
1: + ARG_CONST_MAP_PTR = 1,
1: + ARG_PTR_TO_MAP_KEY = 2,
1: + ARG_PTR_TO_MAP_VALUE = 3,
1: + ARG_PTR_TO_UNINIT_MAP_VALUE = 4,
1: + ARG_PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + ARG_PTR_TO_MEM = 6,
1: + ARG_PTR_TO_MEM_OR_NULL = 7,
1: + ARG_PTR_TO_UNINIT_MEM = 8,
1: + ARG_CONST_SIZE = 9,
1: + ARG_CONST_SIZE_OR_ZERO = 10,
1: + ARG_PTR_TO_CTX = 11,
1: + ARG_PTR_TO_CTX_OR_NULL = 12,
1: + ARG_ANYTHING = 13,
1: + ARG_PTR_TO_SPIN_LOCK = 14,
1: + ARG_PTR_TO_SOCK_COMMON = 15,
1: + ARG_PTR_TO_INT = 16,
1: + ARG_PTR_TO_LONG = 17,
1: + ARG_PTR_TO_SOCKET = 18,
1: + ARG_PTR_TO_SOCKET_OR_NULL = 19,
1: + ARG_PTR_TO_BTF_ID = 20,
1: + ARG_PTR_TO_ALLOC_MEM = 21,
1: + ARG_PTR_TO_ALLOC_MEM_OR_NULL = 22,
1: + ARG_CONST_ALLOC_SIZE_OR_ZERO = 23,
1: + ARG_PTR_TO_BTF_ID_SOCK_COMMON = 24,
1: + ARG_PTR_TO_PERCPU_BTF_ID = 25,
1: + __BPF_ARG_TYPE_MAX = 26,
1: };
1:
1: enum bpf_return_type {
1: - RET_INTEGER = 0,
1: - RET_VOID = 1,
1: - RET_PTR_TO_MAP_VALUE = 2,
1: - RET_PTR_TO_MAP_VALUE_OR_NULL = 3,
1: - RET_PTR_TO_SOCKET_OR_NULL = 4,
1: - RET_PTR_TO_TCP_SOCK_OR_NULL = 5,
1: - RET_PTR_TO_SOCK_COMMON_OR_NULL = 6,
1: - RET_PTR_TO_ALLOC_MEM_OR_NULL = 7,
1: - RET_PTR_TO_BTF_ID_OR_NULL = 8,
1: - RET_PTR_TO_MEM_OR_BTF_ID_OR_NULL = 9,
1: - RET_PTR_TO_MEM_OR_BTF_ID = 10,
1: + RET_INTEGER = 0,
1: + RET_VOID = 1,
1: + RET_PTR_TO_MAP_VALUE = 2,
1: + RET_PTR_TO_MAP_VALUE_OR_NULL = 3,
1: + RET_PTR_TO_SOCKET_OR_NULL = 4,
1: + RET_PTR_TO_TCP_SOCK_OR_NULL = 5,
1: + RET_PTR_TO_SOCK_COMMON_OR_NULL = 6,
1: + RET_PTR_TO_ALLOC_MEM_OR_NULL = 7,
1: + RET_PTR_TO_BTF_ID_OR_NULL = 8,
1: + RET_PTR_TO_MEM_OR_BTF_ID_OR_NULL = 9,
1: + RET_PTR_TO_MEM_OR_BTF_ID = 10,
1: };
1:
1: struct bpf_func_proto {
1: - u64 (*func)(u64, u64, u64, u64, u64);
1: - bool gpl_only;
1: - bool pkt_access;
1: - enum bpf_return_type ret_type;
1: - union {
1: - struct {
1: - enum bpf_arg_type arg1_type;
1: - enum bpf_arg_type arg2_type;
1: - enum bpf_arg_type arg3_type;
1: - enum bpf_arg_type arg4_type;
1: - enum bpf_arg_type arg5_type;
1: - };
1: - enum bpf_arg_type arg_type[5];
1: - };
1: - union {
1: - struct {
1: - u32 *arg1_btf_id;
1: - u32 *arg2_btf_id;
1: - u32 *arg3_btf_id;
1: - u32 *arg4_btf_id;
1: - u32 *arg5_btf_id;
1: - };
1: - u32 *arg_btf_id[5];
1: - };
1: - int *ret_btf_id;
1: - bool (*allowed)(const struct bpf_prog *);
1: + u64 (*func)(u64, u64, u64, u64, u64);
1: + bool gpl_only;
1: + bool pkt_access;
1: + enum bpf_return_type ret_type;
1: + union {
1: + struct {
1: + enum bpf_arg_type arg1_type;
1: + enum bpf_arg_type arg2_type;
1: + enum bpf_arg_type arg3_type;
1: + enum bpf_arg_type arg4_type;
1: + enum bpf_arg_type arg5_type;
1: + };
1: + enum bpf_arg_type arg_type[5];
1: + };
1: + union {
1: + struct {
1: + u32 *arg1_btf_id;
1: + u32 *arg2_btf_id;
1: + u32 *arg3_btf_id;
1: + u32 *arg4_btf_id;
1: + u32 *arg5_btf_id;
1: + };
1: + u32 *arg_btf_id[5];
1: + };
1: + int *ret_btf_id;
1: + bool (*allowed)(const struct bpf_prog *);
1: };
1:
1: enum bpf_access_type {
1: - BPF_READ = 1,
1: - BPF_WRITE = 2,
1: + BPF_READ = 1,
1: + BPF_WRITE = 2,
1: };
1:
1: struct bpf_verifier_log;
1:
1: struct bpf_insn_access_aux {
1: - enum bpf_reg_type reg_type;
1: - union {
1: - int ctx_field_size;
1: - u32 btf_id;
1: - };
1: - struct bpf_verifier_log *log;
1: + enum bpf_reg_type reg_type;
1: + union {
1: + int ctx_field_size;
1: + u32 btf_id;
1: + };
1: + struct bpf_verifier_log *log;
1: };
1:
1: struct bpf_verifier_ops {
1: - const struct bpf_func_proto * (*get_func_proto)(enum bpf_func_id, const struct bpf_prog *);
1: - bool (*is_valid_access)(int, int, enum bpf_access_type, const struct bpf_prog *, struct bpf_insn_access_aux *);
1: - int (*gen_prologue)(struct bpf_insn *, bool, const struct bpf_prog *);
1: - int (*gen_ld_abs)(const struct bpf_insn *, struct bpf_insn *);
1: - u32 (*convert_ctx_access)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: - int (*btf_struct_access)(struct bpf_verifier_log *, const struct btf_type *, int, int, enum bpf_access_type, u32 *);
1: + const struct bpf_func_proto *(*get_func_proto)(enum bpf_func_id,
1: + const struct bpf_prog *);
1: + bool (*is_valid_access)(int, int, enum bpf_access_type,
1: + const struct bpf_prog *,
1: + struct bpf_insn_access_aux *);
1: + int (*gen_prologue)(struct bpf_insn *, bool, const struct bpf_prog *);
1: + int (*gen_ld_abs)(const struct bpf_insn *, struct bpf_insn *);
1: + u32 (*convert_ctx_access)(enum bpf_access_type, const struct bpf_insn *,
1: + struct bpf_insn *, struct bpf_prog *, u32 *);
1: + int (*btf_struct_access)(struct bpf_verifier_log *, const struct btf_type *,
1: + int, int, enum bpf_access_type, u32 *);
1: };
1:
1: struct bpf_array_aux {
1: - enum bpf_prog_type type;
1: - bool jited;
1: - struct list_head poke_progs;
1: - struct bpf_map *map;
1: - struct mutex poke_mutex;
1: - struct work_struct work;
1: + enum bpf_prog_type type;
1: + bool jited;
1: + struct list_head poke_progs;
1: + struct bpf_map *map;
1: + struct mutex poke_mutex;
1: + struct work_struct work;
1: };
1:
1: struct bpf_array {
1: - struct bpf_map map;
1: - u32 elem_size;
1: - u32 index_mask;
1: - struct bpf_array_aux *aux;
1: - union {
1: - char value[0];
1: - void *ptrs[0];
1: - void *pptrs[0];
1: - };
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + u32 elem_size;
1: + u32 index_mask;
1: + struct bpf_array_aux *aux;
1: + union {
1: + char value[0];
1: + void *ptrs[0];
1: + void *pptrs[0];
1: + };
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_event_entry {
1: - struct perf_event *event;
1: - struct file *perf_file;
1: - struct file *map_file;
1: - struct callback_head rcu;
1: + struct perf_event *event;
1: + struct file *perf_file;
1: + struct file *map_file;
1: + struct callback_head rcu;
1: };
1:
1: -typedef long unsigned int (*bpf_ctx_copy_t)(void *, const void *, long unsigned int, long unsigned int);
1: +typedef long unsigned int (*bpf_ctx_copy_t)(void *, const void *,
1: + long unsigned int,
1: + long unsigned int);
1:
1: typedef struct user_pt_regs bpf_user_pt_regs_t;
1:
1: struct bpf_perf_event_data {
1: - bpf_user_pt_regs_t regs;
1: - __u64 sample_period;
1: - __u64 addr;
1: + bpf_user_pt_regs_t regs;
1: + __u64 sample_period;
1: + __u64 addr;
1: };
1:
1: struct perf_event_query_bpf {
1: - __u32 ids_len;
1: - __u32 prog_cnt;
1: - __u32 ids[0];
1: + __u32 ids_len;
1: + __u32 prog_cnt;
1: + __u32 ids[0];
1: };
1:
1: struct bpf_perf_event_data_kern {
1: - bpf_user_pt_regs_t *regs;
1: - struct perf_sample_data *data;
1: - struct perf_event *event;
1: + bpf_user_pt_regs_t *regs;
1: + struct perf_sample_data *data;
1: + struct perf_event *event;
1: };
1:
1: struct btf_id_set {
1: - u32 cnt;
1: - u32 ids[0];
1: + u32 cnt;
1: + u32 ids[0];
1: };
1:
1: struct trace_event_raw_bpf_trace_printk {
1: - struct trace_entry ent;
1: - u32 __data_loc_bpf_string;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bpf_string;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_bpf_trace_printk {
1: - u32 bpf_string;
1: + u32 bpf_string;
1: };
1:
1: typedef void (*btf_trace_bpf_trace_printk)(void *, const char *);
1:
1: struct bpf_trace_module {
1: - struct module *module;
1: - struct list_head list;
1: + struct module *module;
1: + struct list_head list;
1: };
1:
1: typedef u64 (*btf_bpf_override_return)(struct pt_regs *, long unsigned int);
1: @@ -29413,27 +29750,32 @@ typedef u64 (*btf_bpf_probe_write_user)(void *, const void *, u32);
1: typedef u64 (*btf_bpf_trace_printk)(char *, u32, u64, u64, u64);
1:
1: struct bpf_seq_printf_buf {
1: - char buf[768];
1: + char buf[768];
1: };
1:
1: -typedef u64 (*btf_bpf_seq_printf)(struct seq_file *, char *, u32, const void *, u32);
1: +typedef u64 (*btf_bpf_seq_printf)(struct seq_file *, char *, u32, const void *,
1: + u32);
1:
1: typedef u64 (*btf_bpf_seq_write)(struct seq_file *, const void *, u32);
1:
1: -typedef u64 (*btf_bpf_seq_printf_btf)(struct seq_file *, struct btf_ptr *, u32, u64);
1: +typedef u64 (*btf_bpf_seq_printf_btf)(struct seq_file *, struct btf_ptr *, u32,
1: + u64);
1:
1: typedef u64 (*btf_bpf_perf_event_read)(struct bpf_map *, u64);
1:
1: -typedef u64 (*btf_bpf_perf_event_read_value)(struct bpf_map *, u64, struct bpf_perf_event_value *, u32);
1: +typedef u64 (*btf_bpf_perf_event_read_value)(struct bpf_map *, u64,
1: + struct bpf_perf_event_value *,
1: + u32);
1:
1: struct bpf_trace_sample_data {
1: - struct perf_sample_data sds[3];
1: + struct perf_sample_data sds[3];
1: };
1:
1: -typedef u64 (*btf_bpf_perf_event_output)(struct pt_regs *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_perf_event_output)(struct pt_regs *, struct bpf_map *,
1: + u64, void *, u64);
1:
1: struct bpf_nested_pt_regs {
1: - struct pt_regs regs[3];
1: + struct pt_regs regs[3];
1: };
1:
1: typedef u64 (*btf_bpf_get_current_task)();
1: @@ -29441,10 +29783,10 @@ typedef u64 (*btf_bpf_get_current_task)();
1: typedef u64 (*btf_bpf_current_task_under_cgroup)(struct bpf_map *, u32);
1:
1: struct send_signal_irq_work {
1: - struct irq_work irq_work;
1: - struct task_struct *task;
1: - u32 sig;
1: - enum pid_type type;
1: + struct irq_work irq_work;
1: + struct task_struct *task;
1: + u32 sig;
1: + enum pid_type type;
1: };
1:
1: typedef u64 (*btf_bpf_send_signal)(u32);
1: @@ -29455,30 +29797,36 @@ typedef u64 (*btf_bpf_d_path)(struct path *, char *, u32);
1:
1: typedef u64 (*btf_bpf_snprintf_btf)(char *, u32, struct btf_ptr *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_perf_event_output_tp)(void *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_perf_event_output_tp)(void *, struct bpf_map *, u64,
1: + void *, u64);
1:
1: typedef u64 (*btf_bpf_get_stackid_tp)(void *, struct bpf_map *, u64);
1:
1: typedef u64 (*btf_bpf_get_stack_tp)(void *, void *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_perf_prog_read_value)(struct bpf_perf_event_data_kern *, struct bpf_perf_event_value *, u32);
1: +typedef u64 (*btf_bpf_perf_prog_read_value)(struct bpf_perf_event_data_kern *,
1: + struct bpf_perf_event_value *, u32);
1:
1: -typedef u64 (*btf_bpf_read_branch_records)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +typedef u64 (*btf_bpf_read_branch_records)(struct bpf_perf_event_data_kern *,
1: + void *, u32, u64);
1:
1: struct bpf_raw_tp_regs {
1: - struct pt_regs regs[3];
1: + struct pt_regs regs[3];
1: };
1:
1: -typedef u64 (*btf_bpf_perf_event_output_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_perf_event_output_raw_tp)(
1: + struct bpf_raw_tracepoint_args *, struct bpf_map *, u64, void *, u64);
1:
1: -typedef u64 (*btf_bpf_get_stackid_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64);
1: +typedef u64 (*btf_bpf_get_stackid_raw_tp)(struct bpf_raw_tracepoint_args *,
1: + struct bpf_map *, u64);
1:
1: -typedef u64 (*btf_bpf_get_stack_raw_tp)(struct bpf_raw_tracepoint_args *, void *, u32, u64);
1: +typedef u64 (*btf_bpf_get_stack_raw_tp)(struct bpf_raw_tracepoint_args *,
1: + void *, u32, u64);
1:
1: enum dynevent_type {
1: - DYNEVENT_TYPE_SYNTH = 1,
1: - DYNEVENT_TYPE_KPROBE = 2,
1: - DYNEVENT_TYPE_NONE = 3,
1: + DYNEVENT_TYPE_SYNTH = 1,
1: + DYNEVENT_TYPE_KPROBE = 2,
1: + DYNEVENT_TYPE_NONE = 3,
1: };
1:
1: struct dynevent_cmd;
1: @@ -29486,314 +29834,315 @@ struct dynevent_cmd;
1: typedef int (*dynevent_create_fn_t)(struct dynevent_cmd *);
1:
1: struct dynevent_cmd {
1: - struct seq_buf seq;
1: - const char *event_name;
1: - unsigned int n_fields;
1: - enum dynevent_type type;
1: - dynevent_create_fn_t run_command;
1: - void *private_data;
1: + struct seq_buf seq;
1: + const char *event_name;
1: + unsigned int n_fields;
1: + enum dynevent_type type;
1: + dynevent_create_fn_t run_command;
1: + void *private_data;
1: };
1:
1: struct kprobe_trace_entry_head {
1: - struct trace_entry ent;
1: - long unsigned int ip;
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: };
1:
1: struct kretprobe_trace_entry_head {
1: - struct trace_entry ent;
1: - long unsigned int func;
1: - long unsigned int ret_ip;
1: + struct trace_entry ent;
1: + long unsigned int func;
1: + long unsigned int ret_ip;
1: };
1:
1: struct dyn_event;
1:
1: struct dyn_event_operations {
1: - struct list_head list;
1: - int (*create)(int, const char **);
1: - int (*show)(struct seq_file *, struct dyn_event *);
1: - bool (*is_busy)(struct dyn_event *);
1: - int (*free)(struct dyn_event *);
1: - bool (*match)(const char *, const char *, int, const char **, struct dyn_event *);
1: + struct list_head list;
1: + int (*create)(int, const char **);
1: + int (*show)(struct seq_file *, struct dyn_event *);
1: + bool (*is_busy)(struct dyn_event *);
1: + int (*free)(struct dyn_event *);
1: + bool (*match)(const char *, const char *, int, const char **,
1: + struct dyn_event *);
1: };
1:
1: struct dyn_event {
1: - struct list_head list;
1: - struct dyn_event_operations *ops;
1: + struct list_head list;
1: + struct dyn_event_operations *ops;
1: };
1:
1: struct dynevent_arg {
1: - const char *str;
1: - char separator;
1: + const char *str;
1: + char separator;
1: };
1:
1: typedef int (*print_type_func_t)(struct trace_seq *, void *, void *);
1:
1: enum fetch_op {
1: - FETCH_OP_NOP = 0,
1: - FETCH_OP_REG = 1,
1: - FETCH_OP_STACK = 2,
1: - FETCH_OP_STACKP = 3,
1: - FETCH_OP_RETVAL = 4,
1: - FETCH_OP_IMM = 5,
1: - FETCH_OP_COMM = 6,
1: - FETCH_OP_ARG = 7,
1: - FETCH_OP_FOFFS = 8,
1: - FETCH_OP_DATA = 9,
1: - FETCH_OP_DEREF = 10,
1: - FETCH_OP_UDEREF = 11,
1: - FETCH_OP_ST_RAW = 12,
1: - FETCH_OP_ST_MEM = 13,
1: - FETCH_OP_ST_UMEM = 14,
1: - FETCH_OP_ST_STRING = 15,
1: - FETCH_OP_ST_USTRING = 16,
1: - FETCH_OP_MOD_BF = 17,
1: - FETCH_OP_LP_ARRAY = 18,
1: - FETCH_OP_END = 19,
1: - FETCH_NOP_SYMBOL = 20,
1: + FETCH_OP_NOP = 0,
1: + FETCH_OP_REG = 1,
1: + FETCH_OP_STACK = 2,
1: + FETCH_OP_STACKP = 3,
1: + FETCH_OP_RETVAL = 4,
1: + FETCH_OP_IMM = 5,
1: + FETCH_OP_COMM = 6,
1: + FETCH_OP_ARG = 7,
1: + FETCH_OP_FOFFS = 8,
1: + FETCH_OP_DATA = 9,
1: + FETCH_OP_DEREF = 10,
1: + FETCH_OP_UDEREF = 11,
1: + FETCH_OP_ST_RAW = 12,
1: + FETCH_OP_ST_MEM = 13,
1: + FETCH_OP_ST_UMEM = 14,
1: + FETCH_OP_ST_STRING = 15,
1: + FETCH_OP_ST_USTRING = 16,
1: + FETCH_OP_MOD_BF = 17,
1: + FETCH_OP_LP_ARRAY = 18,
1: + FETCH_OP_END = 19,
1: + FETCH_NOP_SYMBOL = 20,
1: };
1:
1: struct fetch_insn {
1: - enum fetch_op op;
1: - union {
1: - unsigned int param;
1: - struct {
1: - unsigned int size;
1: - int offset;
1: - };
1: - struct {
1: - unsigned char basesize;
1: - unsigned char lshift;
1: - unsigned char rshift;
1: - };
1: - long unsigned int immediate;
1: - void *data;
1: - };
1: + enum fetch_op op;
1: + union {
1: + unsigned int param;
1: + struct {
1: + unsigned int size;
1: + int offset;
1: + };
1: + struct {
1: + unsigned char basesize;
1: + unsigned char lshift;
1: + unsigned char rshift;
1: + };
1: + long unsigned int immediate;
1: + void *data;
1: + };
1: };
1:
1: struct fetch_type {
1: - const char *name;
1: - size_t size;
1: - int is_signed;
1: - print_type_func_t print;
1: - const char *fmt;
1: - const char *fmttype;
1: + const char *name;
1: + size_t size;
1: + int is_signed;
1: + print_type_func_t print;
1: + const char *fmt;
1: + const char *fmttype;
1: };
1:
1: struct probe_arg {
1: - struct fetch_insn *code;
1: - bool dynamic;
1: - unsigned int offset;
1: - unsigned int count;
1: - const char *name;
1: - const char *comm;
1: - char *fmt;
1: - const struct fetch_type *type;
1: + struct fetch_insn *code;
1: + bool dynamic;
1: + unsigned int offset;
1: + unsigned int count;
1: + const char *name;
1: + const char *comm;
1: + char *fmt;
1: + const struct fetch_type *type;
1: };
1:
1: struct trace_uprobe_filter {
1: - rwlock_t rwlock;
1: - int nr_systemwide;
1: - struct list_head perf_events;
1: + rwlock_t rwlock;
1: + int nr_systemwide;
1: + struct list_head perf_events;
1: };
1:
1: struct trace_probe_event {
1: - unsigned int flags;
1: - struct trace_event_class class;
1: - struct trace_event_call call;
1: - struct list_head files;
1: - struct list_head probes;
1: - struct trace_uprobe_filter filter[0];
1: + unsigned int flags;
1: + struct trace_event_class class;
1: + struct trace_event_call call;
1: + struct list_head files;
1: + struct list_head probes;
1: + struct trace_uprobe_filter filter[0];
1: };
1:
1: struct trace_probe {
1: - struct list_head list;
1: - struct trace_probe_event *event;
1: - ssize_t size;
1: - unsigned int nr_args;
1: - struct probe_arg args[0];
1: + struct list_head list;
1: + struct trace_probe_event *event;
1: + ssize_t size;
1: + unsigned int nr_args;
1: + struct probe_arg args[0];
1: };
1:
1: struct event_file_link {
1: - struct trace_event_file *file;
1: - struct list_head list;
1: -};
1: -
1: -enum {
1: - TP_ERR_FILE_NOT_FOUND = 0,
1: - TP_ERR_NO_REGULAR_FILE = 1,
1: - TP_ERR_BAD_REFCNT = 2,
1: - TP_ERR_REFCNT_OPEN_BRACE = 3,
1: - TP_ERR_BAD_REFCNT_SUFFIX = 4,
1: - TP_ERR_BAD_UPROBE_OFFS = 5,
1: - TP_ERR_MAXACT_NO_KPROBE = 6,
1: - TP_ERR_BAD_MAXACT = 7,
1: - TP_ERR_MAXACT_TOO_BIG = 8,
1: - TP_ERR_BAD_PROBE_ADDR = 9,
1: - TP_ERR_BAD_RETPROBE = 10,
1: - TP_ERR_BAD_ADDR_SUFFIX = 11,
1: - TP_ERR_NO_GROUP_NAME = 12,
1: - TP_ERR_GROUP_TOO_LONG = 13,
1: - TP_ERR_BAD_GROUP_NAME = 14,
1: - TP_ERR_NO_EVENT_NAME = 15,
1: - TP_ERR_EVENT_TOO_LONG = 16,
1: - TP_ERR_BAD_EVENT_NAME = 17,
1: - TP_ERR_RETVAL_ON_PROBE = 18,
1: - TP_ERR_BAD_STACK_NUM = 19,
1: - TP_ERR_BAD_ARG_NUM = 20,
1: - TP_ERR_BAD_VAR = 21,
1: - TP_ERR_BAD_REG_NAME = 22,
1: - TP_ERR_BAD_MEM_ADDR = 23,
1: - TP_ERR_BAD_IMM = 24,
1: - TP_ERR_IMMSTR_NO_CLOSE = 25,
1: - TP_ERR_FILE_ON_KPROBE = 26,
1: - TP_ERR_BAD_FILE_OFFS = 27,
1: - TP_ERR_SYM_ON_UPROBE = 28,
1: - TP_ERR_TOO_MANY_OPS = 29,
1: - TP_ERR_DEREF_NEED_BRACE = 30,
1: - TP_ERR_BAD_DEREF_OFFS = 31,
1: - TP_ERR_DEREF_OPEN_BRACE = 32,
1: - TP_ERR_COMM_CANT_DEREF = 33,
1: - TP_ERR_BAD_FETCH_ARG = 34,
1: - TP_ERR_ARRAY_NO_CLOSE = 35,
1: - TP_ERR_BAD_ARRAY_SUFFIX = 36,
1: - TP_ERR_BAD_ARRAY_NUM = 37,
1: - TP_ERR_ARRAY_TOO_BIG = 38,
1: - TP_ERR_BAD_TYPE = 39,
1: - TP_ERR_BAD_STRING = 40,
1: - TP_ERR_BAD_BITFIELD = 41,
1: - TP_ERR_ARG_NAME_TOO_LONG = 42,
1: - TP_ERR_NO_ARG_NAME = 43,
1: - TP_ERR_BAD_ARG_NAME = 44,
1: - TP_ERR_USED_ARG_NAME = 45,
1: - TP_ERR_ARG_TOO_LONG = 46,
1: - TP_ERR_NO_ARG_BODY = 47,
1: - TP_ERR_BAD_INSN_BNDRY = 48,
1: - TP_ERR_FAIL_REG_PROBE = 49,
1: - TP_ERR_DIFF_PROBE_TYPE = 50,
1: - TP_ERR_DIFF_ARG_TYPE = 51,
1: - TP_ERR_SAME_PROBE = 52,
1: + struct trace_event_file *file;
1: + struct list_head list;
1: +};
1: +
1: +enum {
1: + TP_ERR_FILE_NOT_FOUND = 0,
1: + TP_ERR_NO_REGULAR_FILE = 1,
1: + TP_ERR_BAD_REFCNT = 2,
1: + TP_ERR_REFCNT_OPEN_BRACE = 3,
1: + TP_ERR_BAD_REFCNT_SUFFIX = 4,
1: + TP_ERR_BAD_UPROBE_OFFS = 5,
1: + TP_ERR_MAXACT_NO_KPROBE = 6,
1: + TP_ERR_BAD_MAXACT = 7,
1: + TP_ERR_MAXACT_TOO_BIG = 8,
1: + TP_ERR_BAD_PROBE_ADDR = 9,
1: + TP_ERR_BAD_RETPROBE = 10,
1: + TP_ERR_BAD_ADDR_SUFFIX = 11,
1: + TP_ERR_NO_GROUP_NAME = 12,
1: + TP_ERR_GROUP_TOO_LONG = 13,
1: + TP_ERR_BAD_GROUP_NAME = 14,
1: + TP_ERR_NO_EVENT_NAME = 15,
1: + TP_ERR_EVENT_TOO_LONG = 16,
1: + TP_ERR_BAD_EVENT_NAME = 17,
1: + TP_ERR_RETVAL_ON_PROBE = 18,
1: + TP_ERR_BAD_STACK_NUM = 19,
1: + TP_ERR_BAD_ARG_NUM = 20,
1: + TP_ERR_BAD_VAR = 21,
1: + TP_ERR_BAD_REG_NAME = 22,
1: + TP_ERR_BAD_MEM_ADDR = 23,
1: + TP_ERR_BAD_IMM = 24,
1: + TP_ERR_IMMSTR_NO_CLOSE = 25,
1: + TP_ERR_FILE_ON_KPROBE = 26,
1: + TP_ERR_BAD_FILE_OFFS = 27,
1: + TP_ERR_SYM_ON_UPROBE = 28,
1: + TP_ERR_TOO_MANY_OPS = 29,
1: + TP_ERR_DEREF_NEED_BRACE = 30,
1: + TP_ERR_BAD_DEREF_OFFS = 31,
1: + TP_ERR_DEREF_OPEN_BRACE = 32,
1: + TP_ERR_COMM_CANT_DEREF = 33,
1: + TP_ERR_BAD_FETCH_ARG = 34,
1: + TP_ERR_ARRAY_NO_CLOSE = 35,
1: + TP_ERR_BAD_ARRAY_SUFFIX = 36,
1: + TP_ERR_BAD_ARRAY_NUM = 37,
1: + TP_ERR_ARRAY_TOO_BIG = 38,
1: + TP_ERR_BAD_TYPE = 39,
1: + TP_ERR_BAD_STRING = 40,
1: + TP_ERR_BAD_BITFIELD = 41,
1: + TP_ERR_ARG_NAME_TOO_LONG = 42,
1: + TP_ERR_NO_ARG_NAME = 43,
1: + TP_ERR_BAD_ARG_NAME = 44,
1: + TP_ERR_USED_ARG_NAME = 45,
1: + TP_ERR_ARG_TOO_LONG = 46,
1: + TP_ERR_NO_ARG_BODY = 47,
1: + TP_ERR_BAD_INSN_BNDRY = 48,
1: + TP_ERR_FAIL_REG_PROBE = 49,
1: + TP_ERR_DIFF_PROBE_TYPE = 50,
1: + TP_ERR_DIFF_ARG_TYPE = 51,
1: + TP_ERR_SAME_PROBE = 52,
1: };
1:
1: struct trace_kprobe {
1: - struct dyn_event devent;
1: - struct kretprobe rp;
1: - long unsigned int *nhit;
1: - const char *symbol;
1: - struct trace_probe tp;
1: + struct dyn_event devent;
1: + struct kretprobe rp;
1: + long unsigned int *nhit;
1: + const char *symbol;
1: + struct trace_probe tp;
1: };
1:
1: struct trace_event_raw_cpu {
1: - struct trace_entry ent;
1: - u32 state;
1: - u32 cpu_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 state;
1: + u32 cpu_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_powernv_throttle {
1: - struct trace_entry ent;
1: - int chip_id;
1: - u32 __data_loc_reason;
1: - int pmax;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int chip_id;
1: + u32 __data_loc_reason;
1: + int pmax;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_pstate_sample {
1: - struct trace_entry ent;
1: - u32 core_busy;
1: - u32 scaled_busy;
1: - u32 from;
1: - u32 to;
1: - u64 mperf;
1: - u64 aperf;
1: - u64 tsc;
1: - u32 freq;
1: - u32 io_boost;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 core_busy;
1: + u32 scaled_busy;
1: + u32 from;
1: + u32 to;
1: + u64 mperf;
1: + u64 aperf;
1: + u64 tsc;
1: + u32 freq;
1: + u32 io_boost;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cpu_frequency_limits {
1: - struct trace_entry ent;
1: - u32 min_freq;
1: - u32 max_freq;
1: - u32 cpu_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 min_freq;
1: + u32 max_freq;
1: + u32 cpu_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_device_pm_callback_start {
1: - struct trace_entry ent;
1: - u32 __data_loc_device;
1: - u32 __data_loc_driver;
1: - u32 __data_loc_parent;
1: - u32 __data_loc_pm_ops;
1: - int event;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + u32 __data_loc_parent;
1: + u32 __data_loc_pm_ops;
1: + int event;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_device_pm_callback_end {
1: - struct trace_entry ent;
1: - u32 __data_loc_device;
1: - u32 __data_loc_driver;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_suspend_resume {
1: - struct trace_entry ent;
1: - const char *action;
1: - int val;
1: - bool start;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *action;
1: + int val;
1: + bool start;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wakeup_source {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u64 state;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_clock {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u64 state;
1: - u64 cpu_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_power_domain {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u64 state;
1: - u64 cpu_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cpu_latency_qos_request {
1: - struct trace_entry ent;
1: - s32 value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + s32 value;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_pm_qos_update {
1: - struct trace_entry ent;
1: - enum pm_qos_req_action action;
1: - int prev_value;
1: - int curr_value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + enum pm_qos_req_action action;
1: + int prev_value;
1: + int curr_value;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dev_pm_qos_request {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - enum dev_pm_qos_req_type type;
1: - s32 new_value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + enum dev_pm_qos_req_type type;
1: + s32 new_value;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_cpu {};
1:
1: struct trace_event_data_offsets_powernv_throttle {
1: - u32 reason;
1: + u32 reason;
1: };
1:
1: struct trace_event_data_offsets_pstate_sample {};
1: @@ -29801,29 +30150,29 @@ struct trace_event_data_offsets_pstate_sample {};
1: struct trace_event_data_offsets_cpu_frequency_limits {};
1:
1: struct trace_event_data_offsets_device_pm_callback_start {
1: - u32 device;
1: - u32 driver;
1: - u32 parent;
1: - u32 pm_ops;
1: + u32 device;
1: + u32 driver;
1: + u32 parent;
1: + u32 pm_ops;
1: };
1:
1: struct trace_event_data_offsets_device_pm_callback_end {
1: - u32 device;
1: - u32 driver;
1: + u32 device;
1: + u32 driver;
1: };
1:
1: struct trace_event_data_offsets_suspend_resume {};
1:
1: struct trace_event_data_offsets_wakeup_source {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_clock {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_power_domain {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_cpu_latency_qos_request {};
1: @@ -29831,36 +30180,44 @@ struct trace_event_data_offsets_cpu_latency_qos_request {};
1: struct trace_event_data_offsets_pm_qos_update {};
1:
1: struct trace_event_data_offsets_dev_pm_qos_request {
1: - u32 name;
1: + u32 name;
1: };
1:
1: typedef void (*btf_trace_cpu_idle)(void *, unsigned int, unsigned int);
1:
1: typedef void (*btf_trace_powernv_throttle)(void *, int, const char *, int);
1:
1: -typedef void (*btf_trace_pstate_sample)(void *, u32, u32, u32, u32, u64, u64, u64, u32, u32);
1: +typedef void (*btf_trace_pstate_sample)(void *, u32, u32, u32, u32, u64, u64,
1: + u64, u32, u32);
1:
1: typedef void (*btf_trace_cpu_frequency)(void *, unsigned int, unsigned int);
1:
1: typedef void (*btf_trace_cpu_frequency_limits)(void *, struct cpufreq_policy *);
1:
1: -typedef void (*btf_trace_device_pm_callback_start)(void *, struct device *, const char *, int);
1: +typedef void (*btf_trace_device_pm_callback_start)(void *, struct device *,
1: + const char *, int);
1:
1: typedef void (*btf_trace_device_pm_callback_end)(void *, struct device *, int);
1:
1: typedef void (*btf_trace_suspend_resume)(void *, const char *, int, bool);
1:
1: -typedef void (*btf_trace_wakeup_source_activate)(void *, const char *, unsigned int);
1: +typedef void (*btf_trace_wakeup_source_activate)(void *, const char *,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_wakeup_source_deactivate)(void *, const char *, unsigned int);
1: +typedef void (*btf_trace_wakeup_source_deactivate)(void *, const char *,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_clock_enable)(void *, const char *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_clock_enable)(void *, const char *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_clock_disable)(void *, const char *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_clock_disable)(void *, const char *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_clock_set_rate)(void *, const char *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_clock_set_rate)(void *, const char *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_power_domain_target)(void *, const char *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_power_domain_target)(void *, const char *,
1: + unsigned int, unsigned int);
1:
1: typedef void (*btf_trace_pm_qos_add_request)(void *, s32);
1:
1: @@ -29868,43 +30225,50 @@ typedef void (*btf_trace_pm_qos_update_request)(void *, s32);
1:
1: typedef void (*btf_trace_pm_qos_remove_request)(void *, s32);
1:
1: -typedef void (*btf_trace_pm_qos_update_target)(void *, enum pm_qos_req_action, int, int);
1: +typedef void (*btf_trace_pm_qos_update_target)(void *, enum pm_qos_req_action,
1: + int, int);
1:
1: -typedef void (*btf_trace_pm_qos_update_flags)(void *, enum pm_qos_req_action, int, int);
1: +typedef void (*btf_trace_pm_qos_update_flags)(void *, enum pm_qos_req_action,
1: + int, int);
1:
1: -typedef void (*btf_trace_dev_pm_qos_add_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +typedef void (*btf_trace_dev_pm_qos_add_request)(void *, const char *,
1: + enum dev_pm_qos_req_type, s32);
1:
1: -typedef void (*btf_trace_dev_pm_qos_update_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +typedef void (*btf_trace_dev_pm_qos_update_request)(void *, const char *,
1: + enum dev_pm_qos_req_type,
1: + s32);
1:
1: -typedef void (*btf_trace_dev_pm_qos_remove_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +typedef void (*btf_trace_dev_pm_qos_remove_request)(void *, const char *,
1: + enum dev_pm_qos_req_type,
1: + s32);
1:
1: struct trace_event_raw_rpm_internal {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - int flags;
1: - int usage_count;
1: - int disable_depth;
1: - int runtime_auto;
1: - int request_pending;
1: - int irq_safe;
1: - int child_count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int flags;
1: + int usage_count;
1: + int disable_depth;
1: + int runtime_auto;
1: + int request_pending;
1: + int irq_safe;
1: + int child_count;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rpm_return_int {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - long unsigned int ip;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + long unsigned int ip;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_rpm_internal {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_rpm_return_int {
1: - u32 name;
1: + u32 name;
1: };
1:
1: typedef void (*btf_trace_rpm_suspend)(void *, struct device *, int);
1: @@ -29915,122 +30279,126 @@ typedef void (*btf_trace_rpm_idle)(void *, struct device *, int);
1:
1: typedef void (*btf_trace_rpm_usage)(void *, struct device *, int);
1:
1: -typedef void (*btf_trace_rpm_return_int)(void *, struct device *, long unsigned int, int);
1: +typedef void (*btf_trace_rpm_return_int)(void *, struct device *,
1: + long unsigned int, int);
1:
1: typedef int (*dynevent_check_arg_fn_t)(void *);
1:
1: struct dynevent_arg_pair {
1: - const char *lhs;
1: - const char *rhs;
1: - char operator;
1: - char separator;
1: + const char *lhs;
1: + const char *rhs;
1: + char operator;
1: + char separator;
1: };
1:
1: struct trace_probe_log {
1: - const char *subsystem;
1: - const char **argv;
1: - int argc;
1: - int index;
1: + const char *subsystem;
1: + const char **argv;
1: + int argc;
1: + int index;
1: };
1:
1: enum uprobe_filter_ctx {
1: - UPROBE_FILTER_REGISTER = 0,
1: - UPROBE_FILTER_UNREGISTER = 1,
1: - UPROBE_FILTER_MMAP = 2,
1: + UPROBE_FILTER_REGISTER = 0,
1: + UPROBE_FILTER_UNREGISTER = 1,
1: + UPROBE_FILTER_MMAP = 2,
1: };
1:
1: struct uprobe_consumer {
1: - int (*handler)(struct uprobe_consumer *, struct pt_regs *);
1: - int (*ret_handler)(struct uprobe_consumer *, long unsigned int, struct pt_regs *);
1: - bool (*filter)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: - struct uprobe_consumer *next;
1: + int (*handler)(struct uprobe_consumer *, struct pt_regs *);
1: + int (*ret_handler)(struct uprobe_consumer *, long unsigned int,
1: + struct pt_regs *);
1: + bool (*filter)(struct uprobe_consumer *, enum uprobe_filter_ctx,
1: + struct mm_struct *);
1: + struct uprobe_consumer *next;
1: };
1:
1: struct uprobe_trace_entry_head {
1: - struct trace_entry ent;
1: - long unsigned int vaddr[0];
1: + struct trace_entry ent;
1: + long unsigned int vaddr[0];
1: };
1:
1: struct trace_uprobe {
1: - struct dyn_event devent;
1: - struct uprobe_consumer consumer;
1: - struct path path;
1: - struct inode *inode;
1: - char *filename;
1: - long unsigned int offset;
1: - long unsigned int ref_ctr_offset;
1: - long unsigned int nhit;
1: - struct trace_probe tp;
1: + struct dyn_event devent;
1: + struct uprobe_consumer consumer;
1: + struct path path;
1: + struct inode *inode;
1: + char *filename;
1: + long unsigned int offset;
1: + long unsigned int ref_ctr_offset;
1: + long unsigned int nhit;
1: + struct trace_probe tp;
1: };
1:
1: struct uprobe_dispatch_data {
1: - struct trace_uprobe *tu;
1: - long unsigned int bp_addr;
1: + struct trace_uprobe *tu;
1: + long unsigned int bp_addr;
1: };
1:
1: struct uprobe_cpu_buffer {
1: - struct mutex mutex;
1: - void *buf;
1: + struct mutex mutex;
1: + void *buf;
1: };
1:
1: -typedef bool (*filter_func_t)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: +typedef bool (*filter_func_t)(struct uprobe_consumer *, enum uprobe_filter_ctx,
1: + struct mm_struct *);
1:
1: struct rnd_state {
1: - __u32 s1;
1: - __u32 s2;
1: - __u32 s3;
1: - __u32 s4;
1: + __u32 s1;
1: + __u32 s2;
1: + __u32 s3;
1: + __u32 s4;
1: };
1:
1: struct rhash_lock_head;
1:
1: struct bucket_table {
1: - unsigned int size;
1: - unsigned int nest;
1: - u32 hash_rnd;
1: - struct list_head walkers;
1: - struct callback_head rcu;
1: - struct bucket_table *future_tbl;
1: - struct lockdep_map dep_map;
1: - long: 64;
1: - struct rhash_lock_head *buckets[0];
1: + unsigned int size;
1: + unsigned int nest;
1: + u32 hash_rnd;
1: + struct list_head walkers;
1: + struct callback_head rcu;
1: + struct bucket_table *future_tbl;
1: + struct lockdep_map dep_map;
1: + long : 64;
1: + struct rhash_lock_head *buckets[0];
1: };
1:
1: enum xdp_action {
1: - XDP_ABORTED = 0,
1: - XDP_DROP = 1,
1: - XDP_PASS = 2,
1: - XDP_TX = 3,
1: - XDP_REDIRECT = 4,
1: + XDP_ABORTED = 0,
1: + XDP_DROP = 1,
1: + XDP_PASS = 2,
1: + XDP_TX = 3,
1: + XDP_REDIRECT = 4,
1: };
1:
1: enum bpf_jit_poke_reason {
1: - BPF_POKE_REASON_TAIL_CALL = 0,
1: + BPF_POKE_REASON_TAIL_CALL = 0,
1: };
1:
1: enum bpf_text_poke_type {
1: - BPF_MOD_CALL = 0,
1: - BPF_MOD_JUMP = 1,
1: + BPF_MOD_CALL = 0,
1: + BPF_MOD_JUMP = 1,
1: };
1:
1: enum xdp_mem_type {
1: - MEM_TYPE_PAGE_SHARED = 0,
1: - MEM_TYPE_PAGE_ORDER0 = 1,
1: - MEM_TYPE_PAGE_POOL = 2,
1: - MEM_TYPE_XSK_BUFF_POOL = 3,
1: - MEM_TYPE_MAX = 4,
1: + MEM_TYPE_PAGE_SHARED = 0,
1: + MEM_TYPE_PAGE_ORDER0 = 1,
1: + MEM_TYPE_PAGE_POOL = 2,
1: + MEM_TYPE_XSK_BUFF_POOL = 3,
1: + MEM_TYPE_MAX = 4,
1: };
1:
1: struct xdp_cpumap_stats {
1: - unsigned int redirect;
1: - unsigned int pass;
1: - unsigned int drop;
1: + unsigned int redirect;
1: + unsigned int pass;
1: + unsigned int drop;
1: };
1:
1: typedef void (*bpf_jit_fill_hole_t)(void *, unsigned int);
1:
1: struct bpf_prog_dummy {
1: - struct bpf_prog prog;
1: + struct bpf_prog prog;
1: };
1:
1: typedef u64 (*btf_bpf_user_rnd_u32)();
1: @@ -30038,7 +30406,7 @@ typedef u64 (*btf_bpf_user_rnd_u32)();
1: typedef u64 (*btf_bpf_get_raw_cpu_id)();
1:
1: struct _bpf_dtab_netdev {
1: - struct net_device *dev;
1: + struct net_device *dev;
1: };
1:
1: struct rhash_lock_head {};
1: @@ -30048,108 +30416,108 @@ struct zero_copy_allocator;
1: struct page_pool;
1:
1: struct xdp_mem_allocator {
1: - struct xdp_mem_info mem;
1: - union {
1: - void *allocator;
1: - struct page_pool *page_pool;
1: - struct zero_copy_allocator *zc_alloc;
1: - };
1: - struct rhash_head node;
1: - struct callback_head rcu;
1: + struct xdp_mem_info mem;
1: + union {
1: + void *allocator;
1: + struct page_pool *page_pool;
1: + struct zero_copy_allocator *zc_alloc;
1: + };
1: + struct rhash_head node;
1: + struct callback_head rcu;
1: };
1:
1: struct trace_event_raw_xdp_exception {
1: - struct trace_entry ent;
1: - int prog_id;
1: - u32 act;
1: - int ifindex;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xdp_bulk_tx {
1: - struct trace_entry ent;
1: - int ifindex;
1: - u32 act;
1: - int drops;
1: - int sent;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ifindex;
1: + u32 act;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xdp_redirect_template {
1: - struct trace_entry ent;
1: - int prog_id;
1: - u32 act;
1: - int ifindex;
1: - int err;
1: - int to_ifindex;
1: - u32 map_id;
1: - int map_index;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + int err;
1: + int to_ifindex;
1: + u32 map_id;
1: + int map_index;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xdp_cpumap_kthread {
1: - struct trace_entry ent;
1: - int map_id;
1: - u32 act;
1: - int cpu;
1: - unsigned int drops;
1: - unsigned int processed;
1: - int sched;
1: - unsigned int xdp_pass;
1: - unsigned int xdp_drop;
1: - unsigned int xdp_redirect;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int sched;
1: + unsigned int xdp_pass;
1: + unsigned int xdp_drop;
1: + unsigned int xdp_redirect;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xdp_cpumap_enqueue {
1: - struct trace_entry ent;
1: - int map_id;
1: - u32 act;
1: - int cpu;
1: - unsigned int drops;
1: - unsigned int processed;
1: - int to_cpu;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int to_cpu;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xdp_devmap_xmit {
1: - struct trace_entry ent;
1: - int from_ifindex;
1: - u32 act;
1: - int to_ifindex;
1: - int drops;
1: - int sent;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int from_ifindex;
1: + u32 act;
1: + int to_ifindex;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mem_disconnect {
1: - struct trace_entry ent;
1: - const struct xdp_mem_allocator *xa;
1: - u32 mem_id;
1: - u32 mem_type;
1: - const void *allocator;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mem_connect {
1: - struct trace_entry ent;
1: - const struct xdp_mem_allocator *xa;
1: - u32 mem_id;
1: - u32 mem_type;
1: - const void *allocator;
1: - const struct xdp_rxq_info *rxq;
1: - int ifindex;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + const struct xdp_rxq_info *rxq;
1: + int ifindex;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mem_return_failed {
1: - struct trace_entry ent;
1: - const struct page *page;
1: - u32 mem_id;
1: - u32 mem_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct page *page;
1: + u32 mem_id;
1: + u32 mem_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_xdp_exception {};
1: @@ -30170,237 +30538,259 @@ struct trace_event_data_offsets_mem_connect {};
1:
1: struct trace_event_data_offsets_mem_return_failed {};
1:
1: -typedef void (*btf_trace_xdp_exception)(void *, const struct net_device *, const struct bpf_prog *, u32);
1: +typedef void (*btf_trace_xdp_exception)(void *, const struct net_device *,
1: + const struct bpf_prog *, u32);
1:
1: -typedef void (*btf_trace_xdp_bulk_tx)(void *, const struct net_device *, int, int, int);
1: +typedef void (*btf_trace_xdp_bulk_tx)(void *, const struct net_device *, int,
1: + int, int);
1:
1: -typedef void (*btf_trace_xdp_redirect)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +typedef void (*btf_trace_xdp_redirect)(void *, const struct net_device *,
1: + const struct bpf_prog *, const void *,
1: + int, const struct bpf_map *, u32);
1:
1: -typedef void (*btf_trace_xdp_redirect_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +typedef void (*btf_trace_xdp_redirect_err)(void *, const struct net_device *,
1: + const struct bpf_prog *,
1: + const void *, int,
1: + const struct bpf_map *, u32);
1:
1: -typedef void (*btf_trace_xdp_redirect_map)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +typedef void (*btf_trace_xdp_redirect_map)(void *, const struct net_device *,
1: + const struct bpf_prog *,
1: + const void *, int,
1: + const struct bpf_map *, u32);
1:
1: -typedef void (*btf_trace_xdp_redirect_map_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +typedef void (*btf_trace_xdp_redirect_map_err)(void *,
1: + const struct net_device *,
1: + const struct bpf_prog *,
1: + const void *, int,
1: + const struct bpf_map *, u32);
1:
1: -typedef void (*btf_trace_xdp_cpumap_kthread)(void *, int, unsigned int, unsigned int, int, struct xdp_cpumap_stats *);
1: +typedef void (*btf_trace_xdp_cpumap_kthread)(void *, int, unsigned int,
1: + unsigned int, int,
1: + struct xdp_cpumap_stats *);
1:
1: -typedef void (*btf_trace_xdp_cpumap_enqueue)(void *, int, unsigned int, unsigned int, int);
1: +typedef void (*btf_trace_xdp_cpumap_enqueue)(void *, int, unsigned int,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_xdp_devmap_xmit)(void *, const struct net_device *, const struct net_device *, int, int, int);
1: +typedef void (*btf_trace_xdp_devmap_xmit)(void *, const struct net_device *,
1: + const struct net_device *, int, int,
1: + int);
1:
1: -typedef void (*btf_trace_mem_disconnect)(void *, const struct xdp_mem_allocator *);
1: +typedef void (*btf_trace_mem_disconnect)(void *,
1: + const struct xdp_mem_allocator *);
1:
1: -typedef void (*btf_trace_mem_connect)(void *, const struct xdp_mem_allocator *, const struct xdp_rxq_info *);
1: +typedef void (*btf_trace_mem_connect)(void *, const struct xdp_mem_allocator *,
1: + const struct xdp_rxq_info *);
1:
1: -typedef void (*btf_trace_mem_return_failed)(void *, const struct xdp_mem_info *, const struct page *);
1: +typedef void (*btf_trace_mem_return_failed)(void *, const struct xdp_mem_info *,
1: + const struct page *);
1:
1: enum bpf_cmd {
1: - BPF_MAP_CREATE = 0,
1: - BPF_MAP_LOOKUP_ELEM = 1,
1: - BPF_MAP_UPDATE_ELEM = 2,
1: - BPF_MAP_DELETE_ELEM = 3,
1: - BPF_MAP_GET_NEXT_KEY = 4,
1: - BPF_PROG_LOAD = 5,
1: - BPF_OBJ_PIN = 6,
1: - BPF_OBJ_GET = 7,
1: - BPF_PROG_ATTACH = 8,
1: - BPF_PROG_DETACH = 9,
1: - BPF_PROG_TEST_RUN = 10,
1: - BPF_PROG_GET_NEXT_ID = 11,
1: - BPF_MAP_GET_NEXT_ID = 12,
1: - BPF_PROG_GET_FD_BY_ID = 13,
1: - BPF_MAP_GET_FD_BY_ID = 14,
1: - BPF_OBJ_GET_INFO_BY_FD = 15,
1: - BPF_PROG_QUERY = 16,
1: - BPF_RAW_TRACEPOINT_OPEN = 17,
1: - BPF_BTF_LOAD = 18,
1: - BPF_BTF_GET_FD_BY_ID = 19,
1: - BPF_TASK_FD_QUERY = 20,
1: - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21,
1: - BPF_MAP_FREEZE = 22,
1: - BPF_BTF_GET_NEXT_ID = 23,
1: - BPF_MAP_LOOKUP_BATCH = 24,
1: - BPF_MAP_LOOKUP_AND_DELETE_BATCH = 25,
1: - BPF_MAP_UPDATE_BATCH = 26,
1: - BPF_MAP_DELETE_BATCH = 27,
1: - BPF_LINK_CREATE = 28,
1: - BPF_LINK_UPDATE = 29,
1: - BPF_LINK_GET_FD_BY_ID = 30,
1: - BPF_LINK_GET_NEXT_ID = 31,
1: - BPF_ENABLE_STATS = 32,
1: - BPF_ITER_CREATE = 33,
1: - BPF_LINK_DETACH = 34,
1: - BPF_PROG_BIND_MAP = 35,
1: -};
1: -
1: -enum {
1: - BPF_ANY = 0,
1: - BPF_NOEXIST = 1,
1: - BPF_EXIST = 2,
1: - BPF_F_LOCK = 4,
1: -};
1: -
1: -enum {
1: - BPF_F_NO_PREALLOC = 1,
1: - BPF_F_NO_COMMON_LRU = 2,
1: - BPF_F_NUMA_NODE = 4,
1: - BPF_F_RDONLY = 8,
1: - BPF_F_WRONLY = 16,
1: - BPF_F_STACK_BUILD_ID = 32,
1: - BPF_F_ZERO_SEED = 64,
1: - BPF_F_RDONLY_PROG = 128,
1: - BPF_F_WRONLY_PROG = 256,
1: - BPF_F_CLONE = 512,
1: - BPF_F_MMAPABLE = 1024,
1: - BPF_F_PRESERVE_ELEMS = 2048,
1: - BPF_F_INNER_MAP = 4096,
1: + BPF_MAP_CREATE = 0,
1: + BPF_MAP_LOOKUP_ELEM = 1,
1: + BPF_MAP_UPDATE_ELEM = 2,
1: + BPF_MAP_DELETE_ELEM = 3,
1: + BPF_MAP_GET_NEXT_KEY = 4,
1: + BPF_PROG_LOAD = 5,
1: + BPF_OBJ_PIN = 6,
1: + BPF_OBJ_GET = 7,
1: + BPF_PROG_ATTACH = 8,
1: + BPF_PROG_DETACH = 9,
1: + BPF_PROG_TEST_RUN = 10,
1: + BPF_PROG_GET_NEXT_ID = 11,
1: + BPF_MAP_GET_NEXT_ID = 12,
1: + BPF_PROG_GET_FD_BY_ID = 13,
1: + BPF_MAP_GET_FD_BY_ID = 14,
1: + BPF_OBJ_GET_INFO_BY_FD = 15,
1: + BPF_PROG_QUERY = 16,
1: + BPF_RAW_TRACEPOINT_OPEN = 17,
1: + BPF_BTF_LOAD = 18,
1: + BPF_BTF_GET_FD_BY_ID = 19,
1: + BPF_TASK_FD_QUERY = 20,
1: + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21,
1: + BPF_MAP_FREEZE = 22,
1: + BPF_BTF_GET_NEXT_ID = 23,
1: + BPF_MAP_LOOKUP_BATCH = 24,
1: + BPF_MAP_LOOKUP_AND_DELETE_BATCH = 25,
1: + BPF_MAP_UPDATE_BATCH = 26,
1: + BPF_MAP_DELETE_BATCH = 27,
1: + BPF_LINK_CREATE = 28,
1: + BPF_LINK_UPDATE = 29,
1: + BPF_LINK_GET_FD_BY_ID = 30,
1: + BPF_LINK_GET_NEXT_ID = 31,
1: + BPF_ENABLE_STATS = 32,
1: + BPF_ITER_CREATE = 33,
1: + BPF_LINK_DETACH = 34,
1: + BPF_PROG_BIND_MAP = 35,
1: +};
1: +
1: +enum {
1: + BPF_ANY = 0,
1: + BPF_NOEXIST = 1,
1: + BPF_EXIST = 2,
1: + BPF_F_LOCK = 4,
1: +};
1: +
1: +enum {
1: + BPF_F_NO_PREALLOC = 1,
1: + BPF_F_NO_COMMON_LRU = 2,
1: + BPF_F_NUMA_NODE = 4,
1: + BPF_F_RDONLY = 8,
1: + BPF_F_WRONLY = 16,
1: + BPF_F_STACK_BUILD_ID = 32,
1: + BPF_F_ZERO_SEED = 64,
1: + BPF_F_RDONLY_PROG = 128,
1: + BPF_F_WRONLY_PROG = 256,
1: + BPF_F_CLONE = 512,
1: + BPF_F_MMAPABLE = 1024,
1: + BPF_F_PRESERVE_ELEMS = 2048,
1: + BPF_F_INNER_MAP = 4096,
1: };
1:
1: enum bpf_stats_type {
1: - BPF_STATS_RUN_TIME = 0,
1: + BPF_STATS_RUN_TIME = 0,
1: };
1:
1: struct bpf_prog_info {
1: - __u32 type;
1: - __u32 id;
1: - __u8 tag[8];
1: - __u32 jited_prog_len;
1: - __u32 xlated_prog_len;
1: - __u64 jited_prog_insns;
1: - __u64 xlated_prog_insns;
1: - __u64 load_time;
1: - __u32 created_by_uid;
1: - __u32 nr_map_ids;
1: - __u64 map_ids;
1: - char name[16];
1: - __u32 ifindex;
1: - __u32 gpl_compatible: 1;
1: - __u64 netns_dev;
1: - __u64 netns_ino;
1: - __u32 nr_jited_ksyms;
1: - __u32 nr_jited_func_lens;
1: - __u64 jited_ksyms;
1: - __u64 jited_func_lens;
1: - __u32 btf_id;
1: - __u32 func_info_rec_size;
1: - __u64 func_info;
1: - __u32 nr_func_info;
1: - __u32 nr_line_info;
1: - __u64 line_info;
1: - __u64 jited_line_info;
1: - __u32 nr_jited_line_info;
1: - __u32 line_info_rec_size;
1: - __u32 jited_line_info_rec_size;
1: - __u32 nr_prog_tags;
1: - __u64 prog_tags;
1: - __u64 run_time_ns;
1: - __u64 run_cnt;
1: + __u32 type;
1: + __u32 id;
1: + __u8 tag[8];
1: + __u32 jited_prog_len;
1: + __u32 xlated_prog_len;
1: + __u64 jited_prog_insns;
1: + __u64 xlated_prog_insns;
1: + __u64 load_time;
1: + __u32 created_by_uid;
1: + __u32 nr_map_ids;
1: + __u64 map_ids;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 gpl_compatible : 1;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 nr_jited_ksyms;
1: + __u32 nr_jited_func_lens;
1: + __u64 jited_ksyms;
1: + __u64 jited_func_lens;
1: + __u32 btf_id;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 nr_func_info;
1: + __u32 nr_line_info;
1: + __u64 line_info;
1: + __u64 jited_line_info;
1: + __u32 nr_jited_line_info;
1: + __u32 line_info_rec_size;
1: + __u32 jited_line_info_rec_size;
1: + __u32 nr_prog_tags;
1: + __u64 prog_tags;
1: + __u64 run_time_ns;
1: + __u64 run_cnt;
1: };
1:
1: struct bpf_map_info {
1: - __u32 type;
1: - __u32 id;
1: - __u32 key_size;
1: - __u32 value_size;
1: - __u32 max_entries;
1: - __u32 map_flags;
1: - char name[16];
1: - __u32 ifindex;
1: - __u32 btf_vmlinux_value_type_id;
1: - __u64 netns_dev;
1: - __u64 netns_ino;
1: - __u32 btf_id;
1: - __u32 btf_key_type_id;
1: - __u32 btf_value_type_id;
1: + __u32 type;
1: + __u32 id;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 btf_vmlinux_value_type_id;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 btf_id;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: };
1:
1: struct bpf_btf_info {
1: - __u64 btf;
1: - __u32 btf_size;
1: - __u32 id;
1: + __u64 btf;
1: + __u32 btf_size;
1: + __u32 id;
1: };
1:
1: struct bpf_spin_lock {
1: - __u32 val;
1: + __u32 val;
1: };
1:
1: struct bpf_attach_target_info {
1: - struct btf_func_model fmodel;
1: - long int tgt_addr;
1: - const char *tgt_name;
1: - const struct btf_type *tgt_type;
1: + struct btf_func_model fmodel;
1: + long int tgt_addr;
1: + const char *tgt_name;
1: + const struct btf_type *tgt_type;
1: };
1:
1: struct bpf_link_primer {
1: - struct bpf_link *link;
1: - struct file *file;
1: - int fd;
1: - u32 id;
1: + struct bpf_link *link;
1: + struct file *file;
1: + int fd;
1: + u32 id;
1: };
1:
1: enum perf_bpf_event_type {
1: - PERF_BPF_EVENT_UNKNOWN = 0,
1: - PERF_BPF_EVENT_PROG_LOAD = 1,
1: - PERF_BPF_EVENT_PROG_UNLOAD = 2,
1: - PERF_BPF_EVENT_MAX = 3,
1: + PERF_BPF_EVENT_UNKNOWN = 0,
1: + PERF_BPF_EVENT_PROG_LOAD = 1,
1: + PERF_BPF_EVENT_PROG_UNLOAD = 2,
1: + PERF_BPF_EVENT_MAX = 3,
1: };
1:
1: enum bpf_audit {
1: - BPF_AUDIT_LOAD = 0,
1: - BPF_AUDIT_UNLOAD = 1,
1: - BPF_AUDIT_MAX = 2,
1: + BPF_AUDIT_LOAD = 0,
1: + BPF_AUDIT_UNLOAD = 1,
1: + BPF_AUDIT_MAX = 2,
1: };
1:
1: struct bpf_tracing_link {
1: - struct bpf_link link;
1: - enum bpf_attach_type attach_type;
1: - struct bpf_trampoline *trampoline;
1: - struct bpf_prog *tgt_prog;
1: + struct bpf_link link;
1: + enum bpf_attach_type attach_type;
1: + struct bpf_trampoline *trampoline;
1: + struct bpf_prog *tgt_prog;
1: };
1:
1: struct bpf_raw_tp_link {
1: - struct bpf_link link;
1: - struct bpf_raw_event_map *btp;
1: + struct bpf_link link;
1: + struct bpf_raw_event_map *btp;
1: };
1:
1: struct btf_member {
1: - __u32 name_off;
1: - __u32 type;
1: - __u32 offset;
1: + __u32 name_off;
1: + __u32 type;
1: + __u32 offset;
1: };
1:
1: enum btf_func_linkage {
1: - BTF_FUNC_STATIC = 0,
1: - BTF_FUNC_GLOBAL = 1,
1: - BTF_FUNC_EXTERN = 2,
1: + BTF_FUNC_STATIC = 0,
1: + BTF_FUNC_GLOBAL = 1,
1: + BTF_FUNC_EXTERN = 2,
1: };
1:
1: struct btf_var_secinfo {
1: - __u32 type;
1: - __u32 offset;
1: - __u32 size;
1: + __u32 type;
1: + __u32 offset;
1: + __u32 size;
1: };
1:
1: enum sk_action {
1: - SK_DROP = 0,
1: - SK_PASS = 1,
1: + SK_DROP = 0,
1: + SK_PASS = 1,
1: };
1:
1: struct bpf_verifier_log {
1: - u32 level;
1: - char kbuf[1024];
1: - char *ubuf;
1: - u32 len_used;
1: - u32 len_total;
1: + u32 level;
1: + char kbuf[1024];
1: + char *ubuf;
1: + u32 len_used;
1: + u32 len_total;
1: };
1:
1: struct bpf_subprog_info {
1: - u32 start;
1: - u32 linfo_idx;
1: - u16 stack_depth;
1: - bool has_tail_call;
1: - bool tail_call_reachable;
1: - bool has_ld_abs;
1: + u32 start;
1: + u32 linfo_idx;
1: + u16 stack_depth;
1: + bool has_tail_call;
1: + bool tail_call_reachable;
1: + bool has_ld_abs;
1: };
1:
1: struct bpf_verifier_stack_elem;
1: @@ -30412,305 +30802,310 @@ struct bpf_verifier_state_list;
1: struct bpf_insn_aux_data;
1:
1: struct bpf_verifier_env {
1: - u32 insn_idx;
1: - u32 prev_insn_idx;
1: - struct bpf_prog *prog;
1: - const struct bpf_verifier_ops *ops;
1: - struct bpf_verifier_stack_elem *head;
1: - int stack_size;
1: - bool strict_alignment;
1: - bool test_state_freq;
1: - struct bpf_verifier_state *cur_state;
1: - struct bpf_verifier_state_list **explored_states;
1: - struct bpf_verifier_state_list *free_list;
1: - struct bpf_map *used_maps[64];
1: - u32 used_map_cnt;
1: - u32 id_gen;
1: - bool allow_ptr_leaks;
1: - bool allow_ptr_to_map_access;
1: - bool bpf_capable;
1: - bool bypass_spec_v1;
1: - bool bypass_spec_v4;
1: - bool seen_direct_write;
1: - struct bpf_insn_aux_data *insn_aux_data;
1: - const struct bpf_line_info *prev_linfo;
1: - struct bpf_verifier_log log;
1: - struct bpf_subprog_info subprog_info[257];
1: - struct {
1: - int *insn_state;
1: - int *insn_stack;
1: - int cur_stack;
1: - } cfg;
1: - u32 pass_cnt;
1: - u32 subprog_cnt;
1: - u32 prev_insn_processed;
1: - u32 insn_processed;
1: - u32 prev_jmps_processed;
1: - u32 jmps_processed;
1: - u64 verification_time;
1: - u32 max_states_per_insn;
1: - u32 total_states;
1: - u32 peak_states;
1: - u32 longest_mark_read_walk;
1: + u32 insn_idx;
1: + u32 prev_insn_idx;
1: + struct bpf_prog *prog;
1: + const struct bpf_verifier_ops *ops;
1: + struct bpf_verifier_stack_elem *head;
1: + int stack_size;
1: + bool strict_alignment;
1: + bool test_state_freq;
1: + struct bpf_verifier_state *cur_state;
1: + struct bpf_verifier_state_list **explored_states;
1: + struct bpf_verifier_state_list *free_list;
1: + struct bpf_map *used_maps[64];
1: + u32 used_map_cnt;
1: + u32 id_gen;
1: + bool allow_ptr_leaks;
1: + bool allow_ptr_to_map_access;
1: + bool bpf_capable;
1: + bool bypass_spec_v1;
1: + bool bypass_spec_v4;
1: + bool seen_direct_write;
1: + struct bpf_insn_aux_data *insn_aux_data;
1: + const struct bpf_line_info *prev_linfo;
1: + struct bpf_verifier_log log;
1: + struct bpf_subprog_info subprog_info[257];
1: + struct {
1: + int *insn_state;
1: + int *insn_stack;
1: + int cur_stack;
1: + } cfg;
1: + u32 pass_cnt;
1: + u32 subprog_cnt;
1: + u32 prev_insn_processed;
1: + u32 insn_processed;
1: + u32 prev_jmps_processed;
1: + u32 jmps_processed;
1: + u64 verification_time;
1: + u32 max_states_per_insn;
1: + u32 total_states;
1: + u32 peak_states;
1: + u32 longest_mark_read_walk;
1: };
1:
1: struct bpf_struct_ops {
1: - const struct bpf_verifier_ops *verifier_ops;
1: - int (*init)(struct btf *);
1: - int (*check_member)(const struct btf_type *, const struct btf_member *);
1: - int (*init_member)(const struct btf_type *, const struct btf_member *, void *, const void *);
1: - int (*reg)(void *);
1: - void (*unreg)(void *);
1: - const struct btf_type *type;
1: - const struct btf_type *value_type;
1: - const char *name;
1: - struct btf_func_model func_models[64];
1: - u32 type_id;
1: - u32 value_id;
1: -};
1: -
1: -typedef u32 (*bpf_convert_ctx_access_t)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: + const struct bpf_verifier_ops *verifier_ops;
1: + int (*init)(struct btf *);
1: + int (*check_member)(const struct btf_type *, const struct btf_member *);
1: + int (*init_member)(const struct btf_type *, const struct btf_member *, void *,
1: + const void *);
1: + int (*reg)(void *);
1: + void (*unreg)(void *);
1: + const struct btf_type *type;
1: + const struct btf_type *value_type;
1: + const char *name;
1: + struct btf_func_model func_models[64];
1: + u32 type_id;
1: + u32 value_id;
1: +};
1: +
1: +typedef u32 (*bpf_convert_ctx_access_t)(enum bpf_access_type,
1: + const struct bpf_insn *,
1: + struct bpf_insn *, struct bpf_prog *,
1: + u32 *);
1:
1: struct tnum {
1: - u64 value;
1: - u64 mask;
1: + u64 value;
1: + u64 mask;
1: };
1:
1: enum bpf_reg_liveness {
1: - REG_LIVE_NONE = 0,
1: - REG_LIVE_READ32 = 1,
1: - REG_LIVE_READ64 = 2,
1: - REG_LIVE_READ = 3,
1: - REG_LIVE_WRITTEN = 4,
1: - REG_LIVE_DONE = 8,
1: + REG_LIVE_NONE = 0,
1: + REG_LIVE_READ32 = 1,
1: + REG_LIVE_READ64 = 2,
1: + REG_LIVE_READ = 3,
1: + REG_LIVE_WRITTEN = 4,
1: + REG_LIVE_DONE = 8,
1: };
1:
1: struct bpf_reg_state {
1: - enum bpf_reg_type type;
1: - union {
1: - u16 range;
1: - struct bpf_map *map_ptr;
1: - u32 btf_id;
1: - u32 mem_size;
1: - long unsigned int raw;
1: - };
1: - s32 off;
1: - u32 id;
1: - u32 ref_obj_id;
1: - struct tnum var_off;
1: - s64 smin_value;
1: - s64 smax_value;
1: - u64 umin_value;
1: - u64 umax_value;
1: - s32 s32_min_value;
1: - s32 s32_max_value;
1: - u32 u32_min_value;
1: - u32 u32_max_value;
1: - struct bpf_reg_state *parent;
1: - u32 frameno;
1: - s32 subreg_def;
1: - enum bpf_reg_liveness live;
1: - bool precise;
1: + enum bpf_reg_type type;
1: + union {
1: + u16 range;
1: + struct bpf_map *map_ptr;
1: + u32 btf_id;
1: + u32 mem_size;
1: + long unsigned int raw;
1: + };
1: + s32 off;
1: + u32 id;
1: + u32 ref_obj_id;
1: + struct tnum var_off;
1: + s64 smin_value;
1: + s64 smax_value;
1: + u64 umin_value;
1: + u64 umax_value;
1: + s32 s32_min_value;
1: + s32 s32_max_value;
1: + u32 u32_min_value;
1: + u32 u32_max_value;
1: + struct bpf_reg_state *parent;
1: + u32 frameno;
1: + s32 subreg_def;
1: + enum bpf_reg_liveness live;
1: + bool precise;
1: };
1:
1: enum bpf_stack_slot_type {
1: - STACK_INVALID = 0,
1: - STACK_SPILL = 1,
1: - STACK_MISC = 2,
1: - STACK_ZERO = 3,
1: + STACK_INVALID = 0,
1: + STACK_SPILL = 1,
1: + STACK_MISC = 2,
1: + STACK_ZERO = 3,
1: };
1:
1: struct bpf_stack_state {
1: - struct bpf_reg_state spilled_ptr;
1: - u8 slot_type[8];
1: + struct bpf_reg_state spilled_ptr;
1: + u8 slot_type[8];
1: };
1:
1: struct bpf_reference_state {
1: - int id;
1: - int insn_idx;
1: + int id;
1: + int insn_idx;
1: };
1:
1: struct bpf_func_state {
1: - struct bpf_reg_state regs[11];
1: - int callsite;
1: - u32 frameno;
1: - u32 subprogno;
1: - int acquired_refs;
1: - struct bpf_reference_state *refs;
1: - int allocated_stack;
1: - struct bpf_stack_state *stack;
1: + struct bpf_reg_state regs[11];
1: + int callsite;
1: + u32 frameno;
1: + u32 subprogno;
1: + int acquired_refs;
1: + struct bpf_reference_state *refs;
1: + int allocated_stack;
1: + struct bpf_stack_state *stack;
1: };
1:
1: struct bpf_idx_pair {
1: - u32 prev_idx;
1: - u32 idx;
1: + u32 prev_idx;
1: + u32 idx;
1: };
1:
1: struct bpf_verifier_state {
1: - struct bpf_func_state *frame[8];
1: - struct bpf_verifier_state *parent;
1: - u32 branches;
1: - u32 insn_idx;
1: - u32 curframe;
1: - u32 active_spin_lock;
1: - bool speculative;
1: - u32 first_insn_idx;
1: - u32 last_insn_idx;
1: - struct bpf_idx_pair *jmp_history;
1: - u32 jmp_history_cnt;
1: + struct bpf_func_state *frame[8];
1: + struct bpf_verifier_state *parent;
1: + u32 branches;
1: + u32 insn_idx;
1: + u32 curframe;
1: + u32 active_spin_lock;
1: + bool speculative;
1: + u32 first_insn_idx;
1: + u32 last_insn_idx;
1: + struct bpf_idx_pair *jmp_history;
1: + u32 jmp_history_cnt;
1: };
1:
1: struct bpf_verifier_state_list {
1: - struct bpf_verifier_state state;
1: - struct bpf_verifier_state_list *next;
1: - int miss_cnt;
1: - int hit_cnt;
1: + struct bpf_verifier_state state;
1: + struct bpf_verifier_state_list *next;
1: + int miss_cnt;
1: + int hit_cnt;
1: };
1:
1: struct bpf_insn_aux_data {
1: - union {
1: - enum bpf_reg_type ptr_type;
1: - long unsigned int map_ptr_state;
1: - s32 call_imm;
1: - u32 alu_limit;
1: - struct {
1: - u32 map_index;
1: - u32 map_off;
1: - };
1: - struct {
1: - enum bpf_reg_type reg_type;
1: - union {
1: - u32 btf_id;
1: - u32 mem_size;
1: - };
1: - } btf_var;
1: - };
1: - u64 map_key_state;
1: - int ctx_field_size;
1: - int sanitize_stack_off;
1: - u32 seen;
1: - bool zext_dst;
1: - u8 alu_state;
1: - unsigned int orig_idx;
1: - bool prune_point;
1: + union {
1: + enum bpf_reg_type ptr_type;
1: + long unsigned int map_ptr_state;
1: + s32 call_imm;
1: + u32 alu_limit;
1: + struct {
1: + u32 map_index;
1: + u32 map_off;
1: + };
1: + struct {
1: + enum bpf_reg_type reg_type;
1: + union {
1: + u32 btf_id;
1: + u32 mem_size;
1: + };
1: + } btf_var;
1: + };
1: + u64 map_key_state;
1: + int ctx_field_size;
1: + int sanitize_stack_off;
1: + u32 seen;
1: + bool zext_dst;
1: + u8 alu_state;
1: + unsigned int orig_idx;
1: + bool prune_point;
1: };
1:
1: struct bpf_verifier_stack_elem {
1: - struct bpf_verifier_state st;
1: - int insn_idx;
1: - int prev_insn_idx;
1: - struct bpf_verifier_stack_elem *next;
1: - u32 log_pos;
1: -};
1: -
1: -enum {
1: - BTF_SOCK_TYPE_INET = 0,
1: - BTF_SOCK_TYPE_INET_CONN = 1,
1: - BTF_SOCK_TYPE_INET_REQ = 2,
1: - BTF_SOCK_TYPE_INET_TW = 3,
1: - BTF_SOCK_TYPE_REQ = 4,
1: - BTF_SOCK_TYPE_SOCK = 5,
1: - BTF_SOCK_TYPE_SOCK_COMMON = 6,
1: - BTF_SOCK_TYPE_TCP = 7,
1: - BTF_SOCK_TYPE_TCP_REQ = 8,
1: - BTF_SOCK_TYPE_TCP_TW = 9,
1: - BTF_SOCK_TYPE_TCP6 = 10,
1: - BTF_SOCK_TYPE_UDP = 11,
1: - BTF_SOCK_TYPE_UDP6 = 12,
1: - MAX_BTF_SOCK_TYPE = 13,
1: + struct bpf_verifier_state st;
1: + int insn_idx;
1: + int prev_insn_idx;
1: + struct bpf_verifier_stack_elem *next;
1: + u32 log_pos;
1: +};
1: +
1: +enum {
1: + BTF_SOCK_TYPE_INET = 0,
1: + BTF_SOCK_TYPE_INET_CONN = 1,
1: + BTF_SOCK_TYPE_INET_REQ = 2,
1: + BTF_SOCK_TYPE_INET_TW = 3,
1: + BTF_SOCK_TYPE_REQ = 4,
1: + BTF_SOCK_TYPE_SOCK = 5,
1: + BTF_SOCK_TYPE_SOCK_COMMON = 6,
1: + BTF_SOCK_TYPE_TCP = 7,
1: + BTF_SOCK_TYPE_TCP_REQ = 8,
1: + BTF_SOCK_TYPE_TCP_TW = 9,
1: + BTF_SOCK_TYPE_TCP6 = 10,
1: + BTF_SOCK_TYPE_UDP = 11,
1: + BTF_SOCK_TYPE_UDP6 = 12,
1: + MAX_BTF_SOCK_TYPE = 13,
1: };
1:
1: typedef void (*bpf_insn_print_t)(void *, const char *, ...);
1:
1: -typedef const char * (*bpf_insn_revmap_call_t)(void *, const struct bpf_insn *);
1: +typedef const char *(*bpf_insn_revmap_call_t)(void *, const struct bpf_insn *);
1:
1: -typedef const char * (*bpf_insn_print_imm_t)(void *, const struct bpf_insn *, __u64);
1: +typedef const char *(*bpf_insn_print_imm_t)(void *, const struct bpf_insn *,
1: + __u64);
1:
1: struct bpf_insn_cbs {
1: - bpf_insn_print_t cb_print;
1: - bpf_insn_revmap_call_t cb_call;
1: - bpf_insn_print_imm_t cb_imm;
1: - void *private_data;
1: + bpf_insn_print_t cb_print;
1: + bpf_insn_revmap_call_t cb_call;
1: + bpf_insn_print_imm_t cb_imm;
1: + void *private_data;
1: };
1:
1: struct bpf_call_arg_meta {
1: - struct bpf_map *map_ptr;
1: - bool raw_mode;
1: - bool pkt_access;
1: - int regno;
1: - int access_size;
1: - int mem_size;
1: - u64 msize_max_value;
1: - int ref_obj_id;
1: - int func_id;
1: - u32 btf_id;
1: - u32 ret_btf_id;
1: + struct bpf_map *map_ptr;
1: + bool raw_mode;
1: + bool pkt_access;
1: + int regno;
1: + int access_size;
1: + int mem_size;
1: + u64 msize_max_value;
1: + int ref_obj_id;
1: + int func_id;
1: + u32 btf_id;
1: + u32 ret_btf_id;
1: };
1:
1: enum reg_arg_type {
1: - SRC_OP = 0,
1: - DST_OP = 1,
1: - DST_OP_NO_MARK = 2,
1: + SRC_OP = 0,
1: + DST_OP = 1,
1: + DST_OP_NO_MARK = 2,
1: };
1:
1: struct bpf_reg_types {
1: - const enum bpf_reg_type types[10];
1: - u32 *btf_id;
1: + const enum bpf_reg_type types[10];
1: + u32 *btf_id;
1: };
1:
1: enum {
1: - DISCOVERED = 16,
1: - EXPLORED = 32,
1: - FALLTHROUGH = 1,
1: - BRANCH = 2,
1: + DISCOVERED = 16,
1: + EXPLORED = 32,
1: + FALLTHROUGH = 1,
1: + BRANCH = 2,
1: };
1:
1: struct idpair {
1: - u32 old;
1: - u32 cur;
1: + u32 old;
1: + u32 cur;
1: };
1:
1: struct tree_descr {
1: - const char *name;
1: - const struct file_operations *ops;
1: - int mode;
1: + const char *name;
1: + const struct file_operations *ops;
1: + int mode;
1: };
1:
1: struct bpf_preload_info {
1: - char link_name[16];
1: - int link_id;
1: + char link_name[16];
1: + int link_id;
1: };
1:
1: struct bpf_preload_ops {
1: - struct umd_info info;
1: - int (*preload)(struct bpf_preload_info *);
1: - int (*finish)();
1: - struct module *owner;
1: + struct umd_info info;
1: + int (*preload)(struct bpf_preload_info *);
1: + int (*finish)();
1: + struct module *owner;
1: };
1:
1: enum bpf_type {
1: - BPF_TYPE_UNSPEC = 0,
1: - BPF_TYPE_PROG = 1,
1: - BPF_TYPE_MAP = 2,
1: - BPF_TYPE_LINK = 3,
1: + BPF_TYPE_UNSPEC = 0,
1: + BPF_TYPE_PROG = 1,
1: + BPF_TYPE_MAP = 2,
1: + BPF_TYPE_LINK = 3,
1: };
1:
1: struct map_iter {
1: - void *key;
1: - bool done;
1: + void *key;
1: + bool done;
1: };
1:
1: enum {
1: - OPT_MODE = 0,
1: + OPT_MODE = 0,
1: };
1:
1: struct bpf_mount_opts {
1: - umode_t mode;
1: + umode_t mode;
1: };
1:
1: struct bpf_pidns_info {
1: - __u32 pid;
1: - __u32 tgid;
1: + __u32 pid;
1: + __u32 tgid;
1: };
1:
1: typedef u64 (*btf_bpf_map_lookup_elem)(struct bpf_map *, void *);
1: @@ -30755,9 +31150,11 @@ typedef u64 (*btf_bpf_strtol)(const char *, size_t, u64, long int *);
1:
1: typedef u64 (*btf_bpf_strtoul)(const char *, size_t, u64, long unsigned int *);
1:
1: -typedef u64 (*btf_bpf_get_ns_current_pid_tgid)(u64, u64, struct bpf_pidns_info *, u32);
1: +typedef u64 (*btf_bpf_get_ns_current_pid_tgid)(u64, u64,
1: + struct bpf_pidns_info *, u32);
1:
1: -typedef u64 (*btf_bpf_event_output_data)(void *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_event_output_data)(void *, struct bpf_map *, u64, void *,
1: + u64);
1:
1: typedef u64 (*btf_bpf_copy_from_user)(void *, u32, const void *);
1:
1: @@ -30766,1922 +31163,1926 @@ typedef u64 (*btf_bpf_per_cpu_ptr)(const void *, u32);
1: typedef u64 (*btf_bpf_this_cpu_ptr)(const void *);
1:
1: union bpf_iter_link_info {
1: - struct {
1: - __u32 map_fd;
1: - } map;
1: + struct {
1: + __u32 map_fd;
1: + } map;
1: };
1:
1: -typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *, union bpf_iter_link_info *, struct bpf_iter_aux_info *);
1: +typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *,
1: + union bpf_iter_link_info *,
1: + struct bpf_iter_aux_info *);
1:
1: typedef void (*bpf_iter_detach_target_t)(struct bpf_iter_aux_info *);
1:
1: -typedef void (*bpf_iter_show_fdinfo_t)(const struct bpf_iter_aux_info *, struct seq_file *);
1: +typedef void (*bpf_iter_show_fdinfo_t)(const struct bpf_iter_aux_info *,
1: + struct seq_file *);
1:
1: -typedef int (*bpf_iter_fill_link_info_t)(const struct bpf_iter_aux_info *, struct bpf_link_info *);
1: +typedef int (*bpf_iter_fill_link_info_t)(const struct bpf_iter_aux_info *,
1: + struct bpf_link_info *);
1:
1: struct bpf_iter_reg {
1: - const char *target;
1: - bpf_iter_attach_target_t attach_target;
1: - bpf_iter_detach_target_t detach_target;
1: - bpf_iter_show_fdinfo_t show_fdinfo;
1: - bpf_iter_fill_link_info_t fill_link_info;
1: - u32 ctx_arg_info_size;
1: - struct bpf_ctx_arg_aux ctx_arg_info[2];
1: - const struct bpf_iter_seq_info *seq_info;
1: + const char *target;
1: + bpf_iter_attach_target_t attach_target;
1: + bpf_iter_detach_target_t detach_target;
1: + bpf_iter_show_fdinfo_t show_fdinfo;
1: + bpf_iter_fill_link_info_t fill_link_info;
1: + u32 ctx_arg_info_size;
1: + struct bpf_ctx_arg_aux ctx_arg_info[2];
1: + const struct bpf_iter_seq_info *seq_info;
1: };
1:
1: struct bpf_iter_meta {
1: - union {
1: - struct seq_file *seq;
1: - };
1: - u64 session_id;
1: - u64 seq_num;
1: + union {
1: + struct seq_file *seq;
1: + };
1: + u64 session_id;
1: + u64 seq_num;
1: };
1:
1: struct bpf_iter_target_info {
1: - struct list_head list;
1: - const struct bpf_iter_reg *reg_info;
1: - u32 btf_id;
1: + struct list_head list;
1: + const struct bpf_iter_reg *reg_info;
1: + u32 btf_id;
1: };
1:
1: struct bpf_iter_link {
1: - struct bpf_link link;
1: - struct bpf_iter_aux_info aux;
1: - struct bpf_iter_target_info *tinfo;
1: + struct bpf_link link;
1: + struct bpf_iter_aux_info aux;
1: + struct bpf_iter_target_info *tinfo;
1: };
1:
1: struct bpf_iter_priv_data {
1: - struct bpf_iter_target_info *tinfo;
1: - const struct bpf_iter_seq_info *seq_info;
1: - struct bpf_prog *prog;
1: - u64 session_id;
1: - u64 seq_num;
1: - bool done_stop;
1: - long: 56;
1: - u8 target_private[0];
1: + struct bpf_iter_target_info *tinfo;
1: + const struct bpf_iter_seq_info *seq_info;
1: + struct bpf_prog *prog;
1: + u64 session_id;
1: + u64 seq_num;
1: + bool done_stop;
1: + long : 56;
1: + u8 target_private[0];
1: };
1:
1: struct bpf_iter_seq_map_info {
1: - u32 map_id;
1: + u32 map_id;
1: };
1:
1: struct bpf_iter__bpf_map {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct bpf_map *map;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: };
1:
1: struct bpf_iter_seq_task_common {
1: - struct pid_namespace *ns;
1: + struct pid_namespace *ns;
1: };
1:
1: struct bpf_iter_seq_task_info {
1: - struct bpf_iter_seq_task_common common;
1: - u32 tid;
1: + struct bpf_iter_seq_task_common common;
1: + u32 tid;
1: };
1:
1: struct bpf_iter__task {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct task_struct *task;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: };
1:
1: struct bpf_iter_seq_task_file_info {
1: - struct bpf_iter_seq_task_common common;
1: - struct task_struct *task;
1: - struct files_struct *files;
1: - u32 tid;
1: - u32 fd;
1: + struct bpf_iter_seq_task_common common;
1: + struct task_struct *task;
1: + struct files_struct *files;
1: + u32 tid;
1: + u32 fd;
1: };
1:
1: struct bpf_iter__task_file {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct task_struct *task;
1: - };
1: - u32 fd;
1: - union {
1: - struct file *file;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: + u32 fd;
1: + union {
1: + struct file *file;
1: + };
1: };
1:
1: struct bpf_iter_seq_prog_info {
1: - u32 prog_id;
1: + u32 prog_id;
1: };
1:
1: struct bpf_iter__bpf_prog {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct bpf_prog *prog;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_prog *prog;
1: + };
1: };
1:
1: struct bpf_iter__bpf_map_elem {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct bpf_map *map;
1: - };
1: - union {
1: - void *key;
1: - };
1: - union {
1: - void *value;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + void *key;
1: + };
1: + union {
1: + void *value;
1: + };
1: };
1:
1: struct pcpu_freelist_node;
1:
1: struct pcpu_freelist_head {
1: - struct pcpu_freelist_node *first;
1: - raw_spinlock_t lock;
1: + struct pcpu_freelist_node *first;
1: + raw_spinlock_t lock;
1: };
1:
1: struct pcpu_freelist_node {
1: - struct pcpu_freelist_node *next;
1: + struct pcpu_freelist_node *next;
1: };
1:
1: struct pcpu_freelist {
1: - struct pcpu_freelist_head *freelist;
1: - struct pcpu_freelist_head extralist;
1: + struct pcpu_freelist_head *freelist;
1: + struct pcpu_freelist_head extralist;
1: };
1:
1: struct bpf_lru_node {
1: - struct list_head list;
1: - u16 cpu;
1: - u8 type;
1: - u8 ref;
1: + struct list_head list;
1: + u16 cpu;
1: + u8 type;
1: + u8 ref;
1: };
1:
1: struct bpf_lru_list {
1: - struct list_head lists[3];
1: - unsigned int counts[2];
1: - struct list_head *next_inactive_rotation;
1: - raw_spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct list_head lists[3];
1: + unsigned int counts[2];
1: + struct list_head *next_inactive_rotation;
1: + raw_spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_lru_locallist {
1: - struct list_head lists[2];
1: - u16 next_steal;
1: - raw_spinlock_t lock;
1: + struct list_head lists[2];
1: + u16 next_steal;
1: + raw_spinlock_t lock;
1: };
1:
1: struct bpf_common_lru {
1: - struct bpf_lru_list lru_list;
1: - struct bpf_lru_locallist *local_list;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_lru_list lru_list;
1: + struct bpf_lru_locallist *local_list;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef bool (*del_from_htab_func)(void *, struct bpf_lru_node *);
1:
1: struct bpf_lru {
1: - union {
1: - struct bpf_common_lru common_lru;
1: - struct bpf_lru_list *percpu_lru;
1: - };
1: - del_from_htab_func del_from_htab;
1: - void *del_arg;
1: - unsigned int hash_offset;
1: - unsigned int nr_scans;
1: - bool percpu;
1: - long: 56;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + union {
1: + struct bpf_common_lru common_lru;
1: + struct bpf_lru_list *percpu_lru;
1: + };
1: + del_from_htab_func del_from_htab;
1: + void *del_arg;
1: + unsigned int hash_offset;
1: + unsigned int nr_scans;
1: + bool percpu;
1: + long : 56;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bucket {
1: - struct hlist_nulls_head head;
1: - union {
1: - raw_spinlock_t raw_lock;
1: - spinlock_t lock;
1: - };
1: + struct hlist_nulls_head head;
1: + union {
1: + raw_spinlock_t raw_lock;
1: + spinlock_t lock;
1: + };
1: };
1:
1: struct htab_elem;
1:
1: struct bpf_htab {
1: - struct bpf_map map;
1: - struct bucket *buckets;
1: - void *elems;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct pcpu_freelist freelist;
1: - struct bpf_lru lru;
1: - };
1: - struct htab_elem **extra_elems;
1: - atomic_t count;
1: - u32 n_buckets;
1: - u32 elem_size;
1: - u32 hashrnd;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bucket *buckets;
1: + void *elems;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct pcpu_freelist freelist;
1: + struct bpf_lru lru;
1: + };
1: + struct htab_elem **extra_elems;
1: + atomic_t count;
1: + u32 n_buckets;
1: + u32 elem_size;
1: + u32 hashrnd;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct htab_elem {
1: - union {
1: - struct hlist_nulls_node hash_node;
1: - struct {
1: - void *padding;
1: - union {
1: - struct bpf_htab *htab;
1: - struct pcpu_freelist_node fnode;
1: - struct htab_elem *batch_flink;
1: - };
1: - };
1: - };
1: - union {
1: - struct callback_head rcu;
1: - struct bpf_lru_node lru_node;
1: - };
1: - u32 hash;
1: - int: 32;
1: - char key[0];
1: + union {
1: + struct hlist_nulls_node hash_node;
1: + struct {
1: + void *padding;
1: + union {
1: + struct bpf_htab *htab;
1: + struct pcpu_freelist_node fnode;
1: + struct htab_elem *batch_flink;
1: + };
1: + };
1: + };
1: + union {
1: + struct callback_head rcu;
1: + struct bpf_lru_node lru_node;
1: + };
1: + u32 hash;
1: + int : 32;
1: + char key[0];
1: };
1:
1: struct bpf_iter_seq_hash_map_info {
1: - struct bpf_map *map;
1: - struct bpf_htab *htab;
1: - void *percpu_value_buf;
1: - u32 bucket_id;
1: - u32 skip_elems;
1: + struct bpf_map *map;
1: + struct bpf_htab *htab;
1: + void *percpu_value_buf;
1: + u32 bucket_id;
1: + u32 skip_elems;
1: };
1:
1: struct bpf_iter_seq_array_map_info {
1: - struct bpf_map *map;
1: - void *percpu_value_buf;
1: - u32 index;
1: + struct bpf_map *map;
1: + void *percpu_value_buf;
1: + u32 index;
1: };
1:
1: struct prog_poke_elem {
1: - struct list_head list;
1: - struct bpf_prog_aux *aux;
1: + struct list_head list;
1: + struct bpf_prog_aux *aux;
1: };
1:
1: enum bpf_lru_list_type {
1: - BPF_LRU_LIST_T_ACTIVE = 0,
1: - BPF_LRU_LIST_T_INACTIVE = 1,
1: - BPF_LRU_LIST_T_FREE = 2,
1: - BPF_LRU_LOCAL_LIST_T_FREE = 3,
1: - BPF_LRU_LOCAL_LIST_T_PENDING = 4,
1: + BPF_LRU_LIST_T_ACTIVE = 0,
1: + BPF_LRU_LIST_T_INACTIVE = 1,
1: + BPF_LRU_LIST_T_FREE = 2,
1: + BPF_LRU_LOCAL_LIST_T_FREE = 3,
1: + BPF_LRU_LOCAL_LIST_T_PENDING = 4,
1: };
1:
1: struct bpf_lpm_trie_key {
1: - __u32 prefixlen;
1: - __u8 data[0];
1: + __u32 prefixlen;
1: + __u8 data[0];
1: };
1:
1: struct lpm_trie_node {
1: - struct callback_head rcu;
1: - struct lpm_trie_node *child[2];
1: - u32 prefixlen;
1: - u32 flags;
1: - u8 data[0];
1: + struct callback_head rcu;
1: + struct lpm_trie_node *child[2];
1: + u32 prefixlen;
1: + u32 flags;
1: + u8 data[0];
1: };
1:
1: struct lpm_trie {
1: - struct bpf_map map;
1: - struct lpm_trie_node *root;
1: - size_t n_entries;
1: - size_t max_prefixlen;
1: - size_t data_size;
1: - spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct lpm_trie_node *root;
1: + size_t n_entries;
1: + size_t max_prefixlen;
1: + size_t data_size;
1: + spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_cgroup_storage_map {
1: - struct bpf_map map;
1: - spinlock_t lock;
1: - struct rb_root root;
1: - struct list_head list;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + spinlock_t lock;
1: + struct rb_root root;
1: + struct list_head list;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_queue_stack {
1: - struct bpf_map map;
1: - raw_spinlock_t lock;
1: - u32 head;
1: - u32 tail;
1: - u32 size;
1: - char elements[0];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + raw_spinlock_t lock;
1: + u32 head;
1: + u32 tail;
1: + u32 size;
1: + char elements[0];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum {
1: - BPF_RB_NO_WAKEUP = 1,
1: - BPF_RB_FORCE_WAKEUP = 2,
1: + BPF_RB_NO_WAKEUP = 1,
1: + BPF_RB_FORCE_WAKEUP = 2,
1: };
1:
1: enum {
1: - BPF_RB_AVAIL_DATA = 0,
1: - BPF_RB_RING_SIZE = 1,
1: - BPF_RB_CONS_POS = 2,
1: - BPF_RB_PROD_POS = 3,
1: + BPF_RB_AVAIL_DATA = 0,
1: + BPF_RB_RING_SIZE = 1,
1: + BPF_RB_CONS_POS = 2,
1: + BPF_RB_PROD_POS = 3,
1: };
1:
1: enum {
1: - BPF_RINGBUF_BUSY_BIT = 2147483648,
1: - BPF_RINGBUF_DISCARD_BIT = 1073741824,
1: - BPF_RINGBUF_HDR_SZ = 8,
1: + BPF_RINGBUF_BUSY_BIT = 2147483648,
1: + BPF_RINGBUF_DISCARD_BIT = 1073741824,
1: + BPF_RINGBUF_HDR_SZ = 8,
1: };
1:
1: struct bpf_ringbuf {
1: - wait_queue_head_t waitq;
1: - struct irq_work work;
1: - u64 mask;
1: - struct page **pages;
1: - int nr_pages;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t spinlock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long unsigned int consumer_pos;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long unsigned int producer_pos;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - char data[0];
1: + wait_queue_head_t waitq;
1: + struct irq_work work;
1: + u64 mask;
1: + struct page **pages;
1: + int nr_pages;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t spinlock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long unsigned int consumer_pos;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long unsigned int producer_pos;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + char data[0];
1: };
1:
1: struct bpf_ringbuf_map {
1: - struct bpf_map map;
1: - struct bpf_map_memory memory;
1: - struct bpf_ringbuf *rb;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bpf_map_memory memory;
1: + struct bpf_ringbuf *rb;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_ringbuf_hdr {
1: - u32 len;
1: - u32 pg_off;
1: + u32 len;
1: + u32 pg_off;
1: };
1:
1: typedef u64 (*btf_bpf_ringbuf_reserve)(struct bpf_map *, u64, u64);
1: @@ -32695,372 +33096,373 @@ typedef u64 (*btf_bpf_ringbuf_output)(struct bpf_map *, void *, u64, u64);
1: typedef u64 (*btf_bpf_ringbuf_query)(struct bpf_map *, u64);
1:
1: enum {
1: - BPF_LOCAL_STORAGE_GET_F_CREATE = 1,
1: - BPF_SK_STORAGE_GET_F_CREATE = 1,
1: + BPF_LOCAL_STORAGE_GET_F_CREATE = 1,
1: + BPF_SK_STORAGE_GET_F_CREATE = 1,
1: };
1:
1: struct bpf_local_storage_map_bucket;
1:
1: struct bpf_local_storage_map {
1: - struct bpf_map map;
1: - struct bpf_local_storage_map_bucket *buckets;
1: - u32 bucket_log;
1: - u16 elem_size;
1: - u16 cache_idx;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bpf_local_storage_map_bucket *buckets;
1: + u32 bucket_log;
1: + u16 elem_size;
1: + u16 cache_idx;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_local_storage_data;
1:
1: struct bpf_local_storage {
1: - struct bpf_local_storage_data *cache[16];
1: - struct hlist_head list;
1: - void *owner;
1: - struct callback_head rcu;
1: - raw_spinlock_t lock;
1: + struct bpf_local_storage_data *cache[16];
1: + struct hlist_head list;
1: + void *owner;
1: + struct callback_head rcu;
1: + raw_spinlock_t lock;
1: };
1:
1: struct bpf_local_storage_map_bucket {
1: - struct hlist_head list;
1: - raw_spinlock_t lock;
1: + struct hlist_head list;
1: + raw_spinlock_t lock;
1: };
1:
1: struct bpf_local_storage_data {
1: - struct bpf_local_storage_map *smap;
1: - u8 data[0];
1: + struct bpf_local_storage_map *smap;
1: + u8 data[0];
1: };
1:
1: struct bpf_local_storage_elem {
1: - struct hlist_node map_node;
1: - struct hlist_node snode;
1: - struct bpf_local_storage *local_storage;
1: - struct callback_head rcu;
1: - long: 64;
1: - struct bpf_local_storage_data sdata;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct hlist_node map_node;
1: + struct hlist_node snode;
1: + struct bpf_local_storage *local_storage;
1: + struct callback_head rcu;
1: + long : 64;
1: + struct bpf_local_storage_data sdata;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_local_storage_cache {
1: - spinlock_t idx_lock;
1: - u64 idx_usage_counts[16];
1: + spinlock_t idx_lock;
1: + u64 idx_usage_counts[16];
1: };
1:
1: struct lsm_blob_sizes {
1: - int lbs_cred;
1: - int lbs_file;
1: - int lbs_inode;
1: - int lbs_ipc;
1: - int lbs_msg_msg;
1: - int lbs_task;
1: + int lbs_cred;
1: + int lbs_file;
1: + int lbs_inode;
1: + int lbs_ipc;
1: + int lbs_msg_msg;
1: + int lbs_task;
1: };
1:
1: struct bpf_storage_blob {
1: - struct bpf_local_storage *storage;
1: + struct bpf_local_storage *storage;
1: };
1:
1: -typedef u64 (*btf_bpf_inode_storage_get)(struct bpf_map *, struct inode *, void *, u64);
1: +typedef u64 (*btf_bpf_inode_storage_get)(struct bpf_map *, struct inode *,
1: + void *, u64);
1:
1: typedef u64 (*btf_bpf_inode_storage_delete)(struct bpf_map *, struct inode *);
1:
1: struct bpf_tramp_progs {
1: - struct bpf_prog *progs[40];
1: - int nr_progs;
1: + struct bpf_prog *progs[40];
1: + int nr_progs;
1: };
1:
1: struct btf_enum {
1: - __u32 name_off;
1: - __s32 val;
1: + __u32 name_off;
1: + __s32 val;
1: };
1:
1: struct btf_array {
1: - __u32 type;
1: - __u32 index_type;
1: - __u32 nelems;
1: + __u32 type;
1: + __u32 index_type;
1: + __u32 nelems;
1: };
1:
1: struct btf_param {
1: - __u32 name_off;
1: - __u32 type;
1: + __u32 name_off;
1: + __u32 type;
1: };
1:
1: enum {
1: - BTF_VAR_STATIC = 0,
1: - BTF_VAR_GLOBAL_ALLOCATED = 1,
1: - BTF_VAR_GLOBAL_EXTERN = 2,
1: + BTF_VAR_STATIC = 0,
1: + BTF_VAR_GLOBAL_ALLOCATED = 1,
1: + BTF_VAR_GLOBAL_EXTERN = 2,
1: };
1:
1: struct btf_var {
1: - __u32 linkage;
1: + __u32 linkage;
1: };
1:
1: struct bpf_flow_keys {
1: - __u16 nhoff;
1: - __u16 thoff;
1: - __u16 addr_proto;
1: - __u8 is_frag;
1: - __u8 is_first_frag;
1: - __u8 is_encap;
1: - __u8 ip_proto;
1: - __be16 n_proto;
1: - __be16 sport;
1: - __be16 dport;
1: - union {
1: - struct {
1: - __be32 ipv4_src;
1: - __be32 ipv4_dst;
1: - };
1: - struct {
1: - __u32 ipv6_src[4];
1: - __u32 ipv6_dst[4];
1: - };
1: - };
1: - __u32 flags;
1: - __be32 flow_label;
1: + __u16 nhoff;
1: + __u16 thoff;
1: + __u16 addr_proto;
1: + __u8 is_frag;
1: + __u8 is_first_frag;
1: + __u8 is_encap;
1: + __u8 ip_proto;
1: + __be16 n_proto;
1: + __be16 sport;
1: + __be16 dport;
1: + union {
1: + struct {
1: + __be32 ipv4_src;
1: + __be32 ipv4_dst;
1: + };
1: + struct {
1: + __u32 ipv6_src[4];
1: + __u32 ipv6_dst[4];
1: + };
1: + };
1: + __u32 flags;
1: + __be32 flow_label;
1: };
1:
1: struct bpf_sock {
1: - __u32 bound_dev_if;
1: - __u32 family;
1: - __u32 type;
1: - __u32 protocol;
1: - __u32 mark;
1: - __u32 priority;
1: - __u32 src_ip4;
1: - __u32 src_ip6[4];
1: - __u32 src_port;
1: - __u32 dst_port;
1: - __u32 dst_ip4;
1: - __u32 dst_ip6[4];
1: - __u32 state;
1: - __s32 rx_queue_mapping;
1: + __u32 bound_dev_if;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 mark;
1: + __u32 priority;
1: + __u32 src_ip4;
1: + __u32 src_ip6[4];
1: + __u32 src_port;
1: + __u32 dst_port;
1: + __u32 dst_ip4;
1: + __u32 dst_ip6[4];
1: + __u32 state;
1: + __s32 rx_queue_mapping;
1: };
1:
1: struct __sk_buff {
1: - __u32 len;
1: - __u32 pkt_type;
1: - __u32 mark;
1: - __u32 queue_mapping;
1: - __u32 protocol;
1: - __u32 vlan_present;
1: - __u32 vlan_tci;
1: - __u32 vlan_proto;
1: - __u32 priority;
1: - __u32 ingress_ifindex;
1: - __u32 ifindex;
1: - __u32 tc_index;
1: - __u32 cb[5];
1: - __u32 hash;
1: - __u32 tc_classid;
1: - __u32 data;
1: - __u32 data_end;
1: - __u32 napi_id;
1: - __u32 family;
1: - __u32 remote_ip4;
1: - __u32 local_ip4;
1: - __u32 remote_ip6[4];
1: - __u32 local_ip6[4];
1: - __u32 remote_port;
1: - __u32 local_port;
1: - __u32 data_meta;
1: - union {
1: - struct bpf_flow_keys *flow_keys;
1: - };
1: - __u64 tstamp;
1: - __u32 wire_len;
1: - __u32 gso_segs;
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: - __u32 gso_size;
1: + __u32 len;
1: + __u32 pkt_type;
1: + __u32 mark;
1: + __u32 queue_mapping;
1: + __u32 protocol;
1: + __u32 vlan_present;
1: + __u32 vlan_tci;
1: + __u32 vlan_proto;
1: + __u32 priority;
1: + __u32 ingress_ifindex;
1: + __u32 ifindex;
1: + __u32 tc_index;
1: + __u32 cb[5];
1: + __u32 hash;
1: + __u32 tc_classid;
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 napi_id;
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 data_meta;
1: + union {
1: + struct bpf_flow_keys *flow_keys;
1: + };
1: + __u64 tstamp;
1: + __u32 wire_len;
1: + __u32 gso_segs;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 gso_size;
1: };
1:
1: struct xdp_md {
1: - __u32 data;
1: - __u32 data_end;
1: - __u32 data_meta;
1: - __u32 ingress_ifindex;
1: - __u32 rx_queue_index;
1: - __u32 egress_ifindex;
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 data_meta;
1: + __u32 ingress_ifindex;
1: + __u32 rx_queue_index;
1: + __u32 egress_ifindex;
1: };
1:
1: struct sk_msg_md {
1: - union {
1: - void *data;
1: - };
1: - union {
1: - void *data_end;
1: - };
1: - __u32 family;
1: - __u32 remote_ip4;
1: - __u32 local_ip4;
1: - __u32 remote_ip6[4];
1: - __u32 local_ip6[4];
1: - __u32 remote_port;
1: - __u32 local_port;
1: - __u32 size;
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 size;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: };
1:
1: struct sk_reuseport_md {
1: - union {
1: - void *data;
1: - };
1: - union {
1: - void *data_end;
1: - };
1: - __u32 len;
1: - __u32 eth_protocol;
1: - __u32 ip_protocol;
1: - __u32 bind_inany;
1: - __u32 hash;
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 len;
1: + __u32 eth_protocol;
1: + __u32 ip_protocol;
1: + __u32 bind_inany;
1: + __u32 hash;
1: };
1:
1: struct bpf_sock_addr {
1: - __u32 user_family;
1: - __u32 user_ip4;
1: - __u32 user_ip6[4];
1: - __u32 user_port;
1: - __u32 family;
1: - __u32 type;
1: - __u32 protocol;
1: - __u32 msg_src_ip4;
1: - __u32 msg_src_ip6[4];
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: + __u32 user_family;
1: + __u32 user_ip4;
1: + __u32 user_ip6[4];
1: + __u32 user_port;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 msg_src_ip4;
1: + __u32 msg_src_ip6[4];
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: };
1:
1: struct bpf_sock_ops {
1: - __u32 op;
1: - union {
1: - __u32 args[4];
1: - __u32 reply;
1: - __u32 replylong[4];
1: - };
1: - __u32 family;
1: - __u32 remote_ip4;
1: - __u32 local_ip4;
1: - __u32 remote_ip6[4];
1: - __u32 local_ip6[4];
1: - __u32 remote_port;
1: - __u32 local_port;
1: - __u32 is_fullsock;
1: - __u32 snd_cwnd;
1: - __u32 srtt_us;
1: - __u32 bpf_sock_ops_cb_flags;
1: - __u32 state;
1: - __u32 rtt_min;
1: - __u32 snd_ssthresh;
1: - __u32 rcv_nxt;
1: - __u32 snd_nxt;
1: - __u32 snd_una;
1: - __u32 mss_cache;
1: - __u32 ecn_flags;
1: - __u32 rate_delivered;
1: - __u32 rate_interval_us;
1: - __u32 packets_out;
1: - __u32 retrans_out;
1: - __u32 total_retrans;
1: - __u32 segs_in;
1: - __u32 data_segs_in;
1: - __u32 segs_out;
1: - __u32 data_segs_out;
1: - __u32 lost_out;
1: - __u32 sacked_out;
1: - __u32 sk_txhash;
1: - __u64 bytes_received;
1: - __u64 bytes_acked;
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: - union {
1: - void *skb_data;
1: - };
1: - union {
1: - void *skb_data_end;
1: - };
1: - __u32 skb_len;
1: - __u32 skb_tcp_flags;
1: + __u32 op;
1: + union {
1: + __u32 args[4];
1: + __u32 reply;
1: + __u32 replylong[4];
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 is_fullsock;
1: + __u32 snd_cwnd;
1: + __u32 srtt_us;
1: + __u32 bpf_sock_ops_cb_flags;
1: + __u32 state;
1: + __u32 rtt_min;
1: + __u32 snd_ssthresh;
1: + __u32 rcv_nxt;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 mss_cache;
1: + __u32 ecn_flags;
1: + __u32 rate_delivered;
1: + __u32 rate_interval_us;
1: + __u32 packets_out;
1: + __u32 retrans_out;
1: + __u32 total_retrans;
1: + __u32 segs_in;
1: + __u32 data_segs_in;
1: + __u32 segs_out;
1: + __u32 data_segs_out;
1: + __u32 lost_out;
1: + __u32 sacked_out;
1: + __u32 sk_txhash;
1: + __u64 bytes_received;
1: + __u64 bytes_acked;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *skb_data;
1: + };
1: + union {
1: + void *skb_data_end;
1: + };
1: + __u32 skb_len;
1: + __u32 skb_tcp_flags;
1: };
1:
1: struct bpf_cgroup_dev_ctx {
1: - __u32 access_type;
1: - __u32 major;
1: - __u32 minor;
1: + __u32 access_type;
1: + __u32 major;
1: + __u32 minor;
1: };
1:
1: struct bpf_sysctl {
1: - __u32 write;
1: - __u32 file_pos;
1: + __u32 write;
1: + __u32 file_pos;
1: };
1:
1: struct bpf_sockopt {
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: - union {
1: - void *optval;
1: - };
1: - union {
1: - void *optval_end;
1: - };
1: - __s32 level;
1: - __s32 optname;
1: - __s32 optlen;
1: - __s32 retval;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *optval;
1: + };
1: + union {
1: + void *optval_end;
1: + };
1: + __s32 level;
1: + __s32 optname;
1: + __s32 optlen;
1: + __s32 retval;
1: };
1:
1: struct bpf_sk_lookup {
1: - union {
1: - struct bpf_sock *sk;
1: - };
1: - __u32 family;
1: - __u32 protocol;
1: - __u32 remote_ip4;
1: - __u32 remote_ip6[4];
1: - __u32 remote_port;
1: - __u32 local_ip4;
1: - __u32 local_ip6[4];
1: - __u32 local_port;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 family;
1: + __u32 protocol;
1: + __u32 remote_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_ip4;
1: + __u32 local_ip6[4];
1: + __u32 local_port;
1: };
1:
1: struct sk_reuseport_kern {
1: - struct sk_buff *skb;
1: - struct sock *sk;
1: - struct sock *selected_sk;
1: - void *data_end;
1: - u32 hash;
1: - u32 reuseport_id;
1: - bool bind_inany;
1: + struct sk_buff *skb;
1: + struct sock *sk;
1: + struct sock *selected_sk;
1: + void *data_end;
1: + u32 hash;
1: + u32 reuseport_id;
1: + bool bind_inany;
1: };
1:
1: struct bpf_flow_dissector {
1: - struct bpf_flow_keys *flow_keys;
1: - const struct sk_buff *skb;
1: - void *data;
1: - void *data_end;
1: + struct bpf_flow_keys *flow_keys;
1: + const struct sk_buff *skb;
1: + void *data;
1: + void *data_end;
1: };
1:
1: struct inet_listen_hashbucket {
1: - spinlock_t lock;
1: - unsigned int count;
1: - union {
1: - struct hlist_head head;
1: - struct hlist_nulls_head nulls_head;
1: - };
1: + spinlock_t lock;
1: + unsigned int count;
1: + union {
1: + struct hlist_head head;
1: + struct hlist_nulls_head nulls_head;
1: + };
1: };
1:
1: struct inet_ehash_bucket;
1: @@ -33068,677 +33470,680 @@ struct inet_ehash_bucket;
1: struct inet_bind_hashbucket;
1:
1: struct inet_hashinfo {
1: - struct inet_ehash_bucket *ehash;
1: - spinlock_t *ehash_locks;
1: - unsigned int ehash_mask;
1: - unsigned int ehash_locks_mask;
1: - struct kmem_cache *bind_bucket_cachep;
1: - struct inet_bind_hashbucket *bhash;
1: - unsigned int bhash_size;
1: - unsigned int lhash2_mask;
1: - struct inet_listen_hashbucket *lhash2;
1: - long: 64;
1: - struct inet_listen_hashbucket listening_hash[32];
1: + struct inet_ehash_bucket *ehash;
1: + spinlock_t *ehash_locks;
1: + unsigned int ehash_mask;
1: + unsigned int ehash_locks_mask;
1: + struct kmem_cache *bind_bucket_cachep;
1: + struct inet_bind_hashbucket *bhash;
1: + unsigned int bhash_size;
1: + unsigned int lhash2_mask;
1: + struct inet_listen_hashbucket *lhash2;
1: + long : 64;
1: + struct inet_listen_hashbucket listening_hash[32];
1: };
1:
1: struct ip_ra_chain {
1: - struct ip_ra_chain *next;
1: - struct sock *sk;
1: - union {
1: - void (*destructor)(struct sock *);
1: - struct sock *saved_sk;
1: - };
1: - struct callback_head rcu;
1: + struct ip_ra_chain *next;
1: + struct sock *sk;
1: + union {
1: + void (*destructor)(struct sock *);
1: + struct sock *saved_sk;
1: + };
1: + struct callback_head rcu;
1: };
1:
1: struct fib_table {
1: - struct hlist_node tb_hlist;
1: - u32 tb_id;
1: - int tb_num_default;
1: - struct callback_head rcu;
1: - long unsigned int *tb_data;
1: - long unsigned int __data[0];
1: + struct hlist_node tb_hlist;
1: + u32 tb_id;
1: + int tb_num_default;
1: + struct callback_head rcu;
1: + long unsigned int *tb_data;
1: + long unsigned int __data[0];
1: };
1:
1: struct inet_peer_base {
1: - struct rb_root rb_root;
1: - seqlock_t lock;
1: - int total;
1: + struct rb_root rb_root;
1: + seqlock_t lock;
1: + int total;
1: };
1:
1: struct tcp_fastopen_context {
1: - siphash_key_t key[2];
1: - int num;
1: - struct callback_head rcu;
1: + siphash_key_t key[2];
1: + int num;
1: + struct callback_head rcu;
1: };
1:
1: struct xdp_txq_info {
1: - struct net_device *dev;
1: + struct net_device *dev;
1: };
1:
1: struct xdp_buff {
1: - void *data;
1: - void *data_end;
1: - void *data_meta;
1: - void *data_hard_start;
1: - struct xdp_rxq_info *rxq;
1: - struct xdp_txq_info *txq;
1: - u32 frame_sz;
1: + void *data;
1: + void *data_end;
1: + void *data_meta;
1: + void *data_hard_start;
1: + struct xdp_rxq_info *rxq;
1: + struct xdp_txq_info *txq;
1: + u32 frame_sz;
1: };
1:
1: struct bpf_sock_addr_kern {
1: - struct sock *sk;
1: - struct sockaddr *uaddr;
1: - u64 tmp_reg;
1: - void *t_ctx;
1: + struct sock *sk;
1: + struct sockaddr *uaddr;
1: + u64 tmp_reg;
1: + void *t_ctx;
1: };
1:
1: struct bpf_sock_ops_kern {
1: - struct sock *sk;
1: - union {
1: - u32 args[4];
1: - u32 reply;
1: - u32 replylong[4];
1: - };
1: - struct sk_buff *syn_skb;
1: - struct sk_buff *skb;
1: - void *skb_data_end;
1: - u8 op;
1: - u8 is_fullsock;
1: - u8 remaining_opt_len;
1: - u64 temp;
1: + struct sock *sk;
1: + union {
1: + u32 args[4];
1: + u32 reply;
1: + u32 replylong[4];
1: + };
1: + struct sk_buff *syn_skb;
1: + struct sk_buff *skb;
1: + void *skb_data_end;
1: + u8 op;
1: + u8 is_fullsock;
1: + u8 remaining_opt_len;
1: + u64 temp;
1: };
1:
1: struct bpf_sysctl_kern {
1: - struct ctl_table_header *head;
1: - struct ctl_table *table;
1: - void *cur_val;
1: - size_t cur_len;
1: - void *new_val;
1: - size_t new_len;
1: - int new_updated;
1: - int write;
1: - loff_t *ppos;
1: - u64 tmp_reg;
1: + struct ctl_table_header *head;
1: + struct ctl_table *table;
1: + void *cur_val;
1: + size_t cur_len;
1: + void *new_val;
1: + size_t new_len;
1: + int new_updated;
1: + int write;
1: + loff_t *ppos;
1: + u64 tmp_reg;
1: };
1:
1: struct bpf_sockopt_kern {
1: - struct sock *sk;
1: - u8 *optval;
1: - u8 *optval_end;
1: - s32 level;
1: - s32 optname;
1: - s32 optlen;
1: - s32 retval;
1: + struct sock *sk;
1: + u8 *optval;
1: + u8 *optval_end;
1: + s32 level;
1: + s32 optname;
1: + s32 optlen;
1: + s32 retval;
1: };
1:
1: struct bpf_sk_lookup_kern {
1: - u16 family;
1: - u16 protocol;
1: - __be16 sport;
1: - u16 dport;
1: - struct {
1: - __be32 saddr;
1: - __be32 daddr;
1: - } v4;
1: - struct {
1: - const struct in6_addr *saddr;
1: - const struct in6_addr *daddr;
1: - } v6;
1: - struct sock *selected_sk;
1: - bool no_reuseport;
1: + u16 family;
1: + u16 protocol;
1: + __be16 sport;
1: + u16 dport;
1: + struct {
1: + __be32 saddr;
1: + __be32 daddr;
1: + } v4;
1: + struct {
1: + const struct in6_addr *saddr;
1: + const struct in6_addr *daddr;
1: + } v6;
1: + struct sock *selected_sk;
1: + bool no_reuseport;
1: };
1:
1: struct sock_reuseport {
1: - struct callback_head rcu;
1: - u16 max_socks;
1: - u16 num_socks;
1: - unsigned int synq_overflow_ts;
1: - unsigned int reuseport_id;
1: - unsigned int bind_inany: 1;
1: - unsigned int has_conns: 1;
1: - struct bpf_prog *prog;
1: - struct sock *socks[0];
1: + struct callback_head rcu;
1: + u16 max_socks;
1: + u16 num_socks;
1: + unsigned int synq_overflow_ts;
1: + unsigned int reuseport_id;
1: + unsigned int bind_inany : 1;
1: + unsigned int has_conns : 1;
1: + struct bpf_prog *prog;
1: + struct sock *socks[0];
1: };
1:
1: struct inet_ehash_bucket {
1: - struct hlist_nulls_head chain;
1: + struct hlist_nulls_head chain;
1: };
1:
1: struct inet_bind_hashbucket {
1: - spinlock_t lock;
1: - struct hlist_head chain;
1: + spinlock_t lock;
1: + struct hlist_head chain;
1: };
1:
1: struct ack_sample {
1: - u32 pkts_acked;
1: - s32 rtt_us;
1: - u32 in_flight;
1: + u32 pkts_acked;
1: + s32 rtt_us;
1: + u32 in_flight;
1: };
1:
1: struct rate_sample {
1: - u64 prior_mstamp;
1: - u32 prior_delivered;
1: - s32 delivered;
1: - long int interval_us;
1: - u32 snd_interval_us;
1: - u32 rcv_interval_us;
1: - long int rtt_us;
1: - int losses;
1: - u32 acked_sacked;
1: - u32 prior_in_flight;
1: - bool is_app_limited;
1: - bool is_retrans;
1: - bool is_ack_delayed;
1: + u64 prior_mstamp;
1: + u32 prior_delivered;
1: + s32 delivered;
1: + long int interval_us;
1: + u32 snd_interval_us;
1: + u32 rcv_interval_us;
1: + long int rtt_us;
1: + int losses;
1: + u32 acked_sacked;
1: + u32 prior_in_flight;
1: + bool is_app_limited;
1: + bool is_retrans;
1: + bool is_ack_delayed;
1: };
1:
1: struct sk_msg_sg {
1: - u32 start;
1: - u32 curr;
1: - u32 end;
1: - u32 size;
1: - u32 copybreak;
1: - long unsigned int copy;
1: - struct scatterlist data[19];
1: + u32 start;
1: + u32 curr;
1: + u32 end;
1: + u32 size;
1: + u32 copybreak;
1: + long unsigned int copy;
1: + struct scatterlist data[19];
1: };
1:
1: struct sk_msg {
1: - struct sk_msg_sg sg;
1: - void *data;
1: - void *data_end;
1: - u32 apply_bytes;
1: - u32 cork_bytes;
1: - u32 flags;
1: - struct sk_buff *skb;
1: - struct sock *sk_redir;
1: - struct sock *sk;
1: - struct list_head list;
1: + struct sk_msg_sg sg;
1: + void *data;
1: + void *data_end;
1: + u32 apply_bytes;
1: + u32 cork_bytes;
1: + u32 flags;
1: + struct sk_buff *skb;
1: + struct sock *sk_redir;
1: + struct sock *sk;
1: + struct list_head list;
1: };
1:
1: enum verifier_phase {
1: - CHECK_META = 0,
1: - CHECK_TYPE = 1,
1: + CHECK_META = 0,
1: + CHECK_TYPE = 1,
1: };
1:
1: struct resolve_vertex {
1: - const struct btf_type *t;
1: - u32 type_id;
1: - u16 next_member;
1: + const struct btf_type *t;
1: + u32 type_id;
1: + u16 next_member;
1: };
1:
1: enum visit_state {
1: - NOT_VISITED = 0,
1: - VISITED = 1,
1: - RESOLVED = 2,
1: + NOT_VISITED = 0,
1: + VISITED = 1,
1: + RESOLVED = 2,
1: };
1:
1: enum resolve_mode {
1: - RESOLVE_TBD = 0,
1: - RESOLVE_PTR = 1,
1: - RESOLVE_STRUCT_OR_ARRAY = 2,
1: + RESOLVE_TBD = 0,
1: + RESOLVE_PTR = 1,
1: + RESOLVE_STRUCT_OR_ARRAY = 2,
1: };
1:
1: struct btf_sec_info {
1: - u32 off;
1: - u32 len;
1: + u32 off;
1: + u32 len;
1: };
1:
1: struct btf_verifier_env {
1: - struct btf *btf;
1: - u8 *visit_states;
1: - struct resolve_vertex stack[32];
1: - struct bpf_verifier_log log;
1: - u32 log_type_id;
1: - u32 top_stack;
1: - enum verifier_phase phase;
1: - enum resolve_mode resolve_mode;
1: + struct btf *btf;
1: + u8 *visit_states;
1: + struct resolve_vertex stack[32];
1: + struct bpf_verifier_log log;
1: + u32 log_type_id;
1: + u32 top_stack;
1: + enum verifier_phase phase;
1: + enum resolve_mode resolve_mode;
1: };
1:
1: struct btf_show {
1: - u64 flags;
1: - void *target;
1: - void (*showfn)(struct btf_show *, const char *, va_list);
1: - const struct btf *btf;
1: - struct {
1: - u8 depth;
1: - u8 depth_to_show;
1: - u8 depth_check;
1: - u8 array_member: 1;
1: - u8 array_terminated: 1;
1: - u16 array_encoding;
1: - u32 type_id;
1: - int status;
1: - const struct btf_type *type;
1: - const struct btf_member *member;
1: - char name[80];
1: - } state;
1: - struct {
1: - u32 size;
1: - void *head;
1: - void *data;
1: - u8 safe[32];
1: - } obj;
1: + u64 flags;
1: + void *target;
1: + void (*showfn)(struct btf_show *, const char *, va_list);
1: + const struct btf *btf;
1: + struct {
1: + u8 depth;
1: + u8 depth_to_show;
1: + u8 depth_check;
1: + u8 array_member : 1;
1: + u8 array_terminated : 1;
1: + u16 array_encoding;
1: + u32 type_id;
1: + int status;
1: + const struct btf_type *type;
1: + const struct btf_member *member;
1: + char name[80];
1: + } state;
1: + struct {
1: + u32 size;
1: + void *head;
1: + void *data;
1: + u8 safe[32];
1: + } obj;
1: };
1:
1: struct btf_kind_operations {
1: - s32 (*check_meta)(struct btf_verifier_env *, const struct btf_type *, u32);
1: - int (*resolve)(struct btf_verifier_env *, const struct resolve_vertex *);
1: - int (*check_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: - int (*check_kflag_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: - void (*log_details)(struct btf_verifier_env *, const struct btf_type *);
1: - void (*show)(const struct btf *, const struct btf_type *, u32, void *, u8, struct btf_show *);
1: + s32 (*check_meta)(struct btf_verifier_env *, const struct btf_type *, u32);
1: + int (*resolve)(struct btf_verifier_env *, const struct resolve_vertex *);
1: + int (*check_member)(struct btf_verifier_env *, const struct btf_type *,
1: + const struct btf_member *, const struct btf_type *);
1: + int (*check_kflag_member)(struct btf_verifier_env *, const struct btf_type *,
1: + const struct btf_member *, const struct btf_type *);
1: + void (*log_details)(struct btf_verifier_env *, const struct btf_type *);
1: + void (*show)(const struct btf *, const struct btf_type *, u32, void *, u8,
1: + struct btf_show *);
1: };
1:
1: struct bpf_ctx_convert {
1: - struct __sk_buff BPF_PROG_TYPE_SOCKET_FILTER_prog;
1: - struct sk_buff BPF_PROG_TYPE_SOCKET_FILTER_kern;
1: - struct __sk_buff BPF_PROG_TYPE_SCHED_CLS_prog;
1: - struct sk_buff BPF_PROG_TYPE_SCHED_CLS_kern;
1: - struct __sk_buff BPF_PROG_TYPE_SCHED_ACT_prog;
1: - struct sk_buff BPF_PROG_TYPE_SCHED_ACT_kern;
1: - struct xdp_md BPF_PROG_TYPE_XDP_prog;
1: - struct xdp_buff BPF_PROG_TYPE_XDP_kern;
1: - struct __sk_buff BPF_PROG_TYPE_CGROUP_SKB_prog;
1: - struct sk_buff BPF_PROG_TYPE_CGROUP_SKB_kern;
1: - struct bpf_sock BPF_PROG_TYPE_CGROUP_SOCK_prog;
1: - struct sock BPF_PROG_TYPE_CGROUP_SOCK_kern;
1: - struct bpf_sock_addr BPF_PROG_TYPE_CGROUP_SOCK_ADDR_prog;
1: - struct bpf_sock_addr_kern BPF_PROG_TYPE_CGROUP_SOCK_ADDR_kern;
1: - struct __sk_buff BPF_PROG_TYPE_LWT_IN_prog;
1: - struct sk_buff BPF_PROG_TYPE_LWT_IN_kern;
1: - struct __sk_buff BPF_PROG_TYPE_LWT_OUT_prog;
1: - struct sk_buff BPF_PROG_TYPE_LWT_OUT_kern;
1: - struct __sk_buff BPF_PROG_TYPE_LWT_XMIT_prog;
1: - struct sk_buff BPF_PROG_TYPE_LWT_XMIT_kern;
1: - struct __sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_prog;
1: - struct sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_kern;
1: - struct bpf_sock_ops BPF_PROG_TYPE_SOCK_OPS_prog;
1: - struct bpf_sock_ops_kern BPF_PROG_TYPE_SOCK_OPS_kern;
1: - struct __sk_buff BPF_PROG_TYPE_SK_SKB_prog;
1: - struct sk_buff BPF_PROG_TYPE_SK_SKB_kern;
1: - struct sk_msg_md BPF_PROG_TYPE_SK_MSG_prog;
1: - struct sk_msg BPF_PROG_TYPE_SK_MSG_kern;
1: - struct __sk_buff BPF_PROG_TYPE_FLOW_DISSECTOR_prog;
1: - struct bpf_flow_dissector BPF_PROG_TYPE_FLOW_DISSECTOR_kern;
1: - bpf_user_pt_regs_t BPF_PROG_TYPE_KPROBE_prog;
1: - struct pt_regs BPF_PROG_TYPE_KPROBE_kern;
1: - __u64 BPF_PROG_TYPE_TRACEPOINT_prog;
1: - u64 BPF_PROG_TYPE_TRACEPOINT_kern;
1: - struct bpf_perf_event_data BPF_PROG_TYPE_PERF_EVENT_prog;
1: - struct bpf_perf_event_data_kern BPF_PROG_TYPE_PERF_EVENT_kern;
1: - struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_prog;
1: - u64 BPF_PROG_TYPE_RAW_TRACEPOINT_kern;
1: - struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_prog;
1: - u64 BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_kern;
1: - void *BPF_PROG_TYPE_TRACING_prog;
1: - void *BPF_PROG_TYPE_TRACING_kern;
1: - struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_prog;
1: - struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_kern;
1: - struct bpf_sysctl BPF_PROG_TYPE_CGROUP_SYSCTL_prog;
1: - struct bpf_sysctl_kern BPF_PROG_TYPE_CGROUP_SYSCTL_kern;
1: - struct bpf_sockopt BPF_PROG_TYPE_CGROUP_SOCKOPT_prog;
1: - struct bpf_sockopt_kern BPF_PROG_TYPE_CGROUP_SOCKOPT_kern;
1: - struct sk_reuseport_md BPF_PROG_TYPE_SK_REUSEPORT_prog;
1: - struct sk_reuseport_kern BPF_PROG_TYPE_SK_REUSEPORT_kern;
1: - struct bpf_sk_lookup BPF_PROG_TYPE_SK_LOOKUP_prog;
1: - struct bpf_sk_lookup_kern BPF_PROG_TYPE_SK_LOOKUP_kern;
1: - void *BPF_PROG_TYPE_STRUCT_OPS_prog;
1: - void *BPF_PROG_TYPE_STRUCT_OPS_kern;
1: - void *BPF_PROG_TYPE_EXT_prog;
1: - void *BPF_PROG_TYPE_EXT_kern;
1: - void *BPF_PROG_TYPE_LSM_prog;
1: - void *BPF_PROG_TYPE_LSM_kern;
1: -};
1: -
1: -enum {
1: - __ctx_convertBPF_PROG_TYPE_SOCKET_FILTER = 0,
1: - __ctx_convertBPF_PROG_TYPE_SCHED_CLS = 1,
1: - __ctx_convertBPF_PROG_TYPE_SCHED_ACT = 2,
1: - __ctx_convertBPF_PROG_TYPE_XDP = 3,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_SKB = 4,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK = 5,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK_ADDR = 6,
1: - __ctx_convertBPF_PROG_TYPE_LWT_IN = 7,
1: - __ctx_convertBPF_PROG_TYPE_LWT_OUT = 8,
1: - __ctx_convertBPF_PROG_TYPE_LWT_XMIT = 9,
1: - __ctx_convertBPF_PROG_TYPE_LWT_SEG6LOCAL = 10,
1: - __ctx_convertBPF_PROG_TYPE_SOCK_OPS = 11,
1: - __ctx_convertBPF_PROG_TYPE_SK_SKB = 12,
1: - __ctx_convertBPF_PROG_TYPE_SK_MSG = 13,
1: - __ctx_convertBPF_PROG_TYPE_FLOW_DISSECTOR = 14,
1: - __ctx_convertBPF_PROG_TYPE_KPROBE = 15,
1: - __ctx_convertBPF_PROG_TYPE_TRACEPOINT = 16,
1: - __ctx_convertBPF_PROG_TYPE_PERF_EVENT = 17,
1: - __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT = 18,
1: - __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 19,
1: - __ctx_convertBPF_PROG_TYPE_TRACING = 20,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_DEVICE = 21,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_SYSCTL = 22,
1: - __ctx_convertBPF_PROG_TYPE_CGROUP_SOCKOPT = 23,
1: - __ctx_convertBPF_PROG_TYPE_SK_REUSEPORT = 24,
1: - __ctx_convertBPF_PROG_TYPE_SK_LOOKUP = 25,
1: - __ctx_convertBPF_PROG_TYPE_STRUCT_OPS = 26,
1: - __ctx_convertBPF_PROG_TYPE_EXT = 27,
1: - __ctx_convertBPF_PROG_TYPE_LSM = 28,
1: - __ctx_convert_unused = 29,
1: + struct __sk_buff BPF_PROG_TYPE_SOCKET_FILTER_prog;
1: + struct sk_buff BPF_PROG_TYPE_SOCKET_FILTER_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_CLS_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_CLS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_ACT_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_ACT_kern;
1: + struct xdp_md BPF_PROG_TYPE_XDP_prog;
1: + struct xdp_buff BPF_PROG_TYPE_XDP_kern;
1: + struct __sk_buff BPF_PROG_TYPE_CGROUP_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_CGROUP_SKB_kern;
1: + struct bpf_sock BPF_PROG_TYPE_CGROUP_SOCK_prog;
1: + struct sock BPF_PROG_TYPE_CGROUP_SOCK_kern;
1: + struct bpf_sock_addr BPF_PROG_TYPE_CGROUP_SOCK_ADDR_prog;
1: + struct bpf_sock_addr_kern BPF_PROG_TYPE_CGROUP_SOCK_ADDR_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_IN_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_IN_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_OUT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_OUT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_XMIT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_XMIT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_kern;
1: + struct bpf_sock_ops BPF_PROG_TYPE_SOCK_OPS_prog;
1: + struct bpf_sock_ops_kern BPF_PROG_TYPE_SOCK_OPS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SK_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_SK_SKB_kern;
1: + struct sk_msg_md BPF_PROG_TYPE_SK_MSG_prog;
1: + struct sk_msg BPF_PROG_TYPE_SK_MSG_kern;
1: + struct __sk_buff BPF_PROG_TYPE_FLOW_DISSECTOR_prog;
1: + struct bpf_flow_dissector BPF_PROG_TYPE_FLOW_DISSECTOR_kern;
1: + bpf_user_pt_regs_t BPF_PROG_TYPE_KPROBE_prog;
1: + struct pt_regs BPF_PROG_TYPE_KPROBE_kern;
1: + __u64 BPF_PROG_TYPE_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_TRACEPOINT_kern;
1: + struct bpf_perf_event_data BPF_PROG_TYPE_PERF_EVENT_prog;
1: + struct bpf_perf_event_data_kern BPF_PROG_TYPE_PERF_EVENT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_kern;
1: + void *BPF_PROG_TYPE_TRACING_prog;
1: + void *BPF_PROG_TYPE_TRACING_kern;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_prog;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_kern;
1: + struct bpf_sysctl BPF_PROG_TYPE_CGROUP_SYSCTL_prog;
1: + struct bpf_sysctl_kern BPF_PROG_TYPE_CGROUP_SYSCTL_kern;
1: + struct bpf_sockopt BPF_PROG_TYPE_CGROUP_SOCKOPT_prog;
1: + struct bpf_sockopt_kern BPF_PROG_TYPE_CGROUP_SOCKOPT_kern;
1: + struct sk_reuseport_md BPF_PROG_TYPE_SK_REUSEPORT_prog;
1: + struct sk_reuseport_kern BPF_PROG_TYPE_SK_REUSEPORT_kern;
1: + struct bpf_sk_lookup BPF_PROG_TYPE_SK_LOOKUP_prog;
1: + struct bpf_sk_lookup_kern BPF_PROG_TYPE_SK_LOOKUP_kern;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_prog;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_kern;
1: + void *BPF_PROG_TYPE_EXT_prog;
1: + void *BPF_PROG_TYPE_EXT_kern;
1: + void *BPF_PROG_TYPE_LSM_prog;
1: + void *BPF_PROG_TYPE_LSM_kern;
1: +};
1: +
1: +enum {
1: + __ctx_convertBPF_PROG_TYPE_SOCKET_FILTER = 0,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_CLS = 1,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_ACT = 2,
1: + __ctx_convertBPF_PROG_TYPE_XDP = 3,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SKB = 4,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK = 5,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK_ADDR = 6,
1: + __ctx_convertBPF_PROG_TYPE_LWT_IN = 7,
1: + __ctx_convertBPF_PROG_TYPE_LWT_OUT = 8,
1: + __ctx_convertBPF_PROG_TYPE_LWT_XMIT = 9,
1: + __ctx_convertBPF_PROG_TYPE_LWT_SEG6LOCAL = 10,
1: + __ctx_convertBPF_PROG_TYPE_SOCK_OPS = 11,
1: + __ctx_convertBPF_PROG_TYPE_SK_SKB = 12,
1: + __ctx_convertBPF_PROG_TYPE_SK_MSG = 13,
1: + __ctx_convertBPF_PROG_TYPE_FLOW_DISSECTOR = 14,
1: + __ctx_convertBPF_PROG_TYPE_KPROBE = 15,
1: + __ctx_convertBPF_PROG_TYPE_TRACEPOINT = 16,
1: + __ctx_convertBPF_PROG_TYPE_PERF_EVENT = 17,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT = 18,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 19,
1: + __ctx_convertBPF_PROG_TYPE_TRACING = 20,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_DEVICE = 21,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SYSCTL = 22,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCKOPT = 23,
1: + __ctx_convertBPF_PROG_TYPE_SK_REUSEPORT = 24,
1: + __ctx_convertBPF_PROG_TYPE_SK_LOOKUP = 25,
1: + __ctx_convertBPF_PROG_TYPE_STRUCT_OPS = 26,
1: + __ctx_convertBPF_PROG_TYPE_EXT = 27,
1: + __ctx_convertBPF_PROG_TYPE_LSM = 28,
1: + __ctx_convert_unused = 29,
1: };
1:
1: enum bpf_struct_walk_result {
1: - WALK_SCALAR = 0,
1: - WALK_PTR = 1,
1: - WALK_STRUCT = 2,
1: + WALK_SCALAR = 0,
1: + WALK_PTR = 1,
1: + WALK_STRUCT = 2,
1: };
1:
1: struct btf_show_snprintf {
1: - struct btf_show show;
1: - int len_left;
1: - int len;
1: + struct btf_show show;
1: + int len_left;
1: + int len;
1: };
1:
1: struct bpf_dispatcher_prog {
1: - struct bpf_prog *prog;
1: - refcount_t users;
1: + struct bpf_prog *prog;
1: + refcount_t users;
1: };
1:
1: struct bpf_dispatcher {
1: - struct mutex mutex;
1: - void *func;
1: - struct bpf_dispatcher_prog progs[48];
1: - int num_progs;
1: - void *image;
1: - u32 image_off;
1: - struct bpf_ksym ksym;
1: + struct mutex mutex;
1: + void *func;
1: + struct bpf_dispatcher_prog progs[48];
1: + int num_progs;
1: + void *image;
1: + u32 image_off;
1: + struct bpf_ksym ksym;
1: };
1:
1: struct bpf_devmap_val {
1: - __u32 ifindex;
1: - union {
1: - int fd;
1: - __u32 id;
1: - } bpf_prog;
1: + __u32 ifindex;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: };
1:
1: enum net_device_flags {
1: - IFF_UP = 1,
1: - IFF_BROADCAST = 2,
1: - IFF_DEBUG = 4,
1: - IFF_LOOPBACK = 8,
1: - IFF_POINTOPOINT = 16,
1: - IFF_NOTRAILERS = 32,
1: - IFF_RUNNING = 64,
1: - IFF_NOARP = 128,
1: - IFF_PROMISC = 256,
1: - IFF_ALLMULTI = 512,
1: - IFF_MASTER = 1024,
1: - IFF_SLAVE = 2048,
1: - IFF_MULTICAST = 4096,
1: - IFF_PORTSEL = 8192,
1: - IFF_AUTOMEDIA = 16384,
1: - IFF_DYNAMIC = 32768,
1: - IFF_LOWER_UP = 65536,
1: - IFF_DORMANT = 131072,
1: - IFF_ECHO = 262144,
1: + IFF_UP = 1,
1: + IFF_BROADCAST = 2,
1: + IFF_DEBUG = 4,
1: + IFF_LOOPBACK = 8,
1: + IFF_POINTOPOINT = 16,
1: + IFF_NOTRAILERS = 32,
1: + IFF_RUNNING = 64,
1: + IFF_NOARP = 128,
1: + IFF_PROMISC = 256,
1: + IFF_ALLMULTI = 512,
1: + IFF_MASTER = 1024,
1: + IFF_SLAVE = 2048,
1: + IFF_MULTICAST = 4096,
1: + IFF_PORTSEL = 8192,
1: + IFF_AUTOMEDIA = 16384,
1: + IFF_DYNAMIC = 32768,
1: + IFF_LOWER_UP = 65536,
1: + IFF_DORMANT = 131072,
1: + IFF_ECHO = 262144,
1: };
1:
1: struct xdp_dev_bulk_queue {
1: - struct xdp_frame *q[16];
1: - struct list_head flush_node;
1: - struct net_device *dev;
1: - struct net_device *dev_rx;
1: - unsigned int count;
1: + struct xdp_frame *q[16];
1: + struct list_head flush_node;
1: + struct net_device *dev;
1: + struct net_device *dev_rx;
1: + unsigned int count;
1: };
1:
1: enum netdev_cmd {
1: - NETDEV_UP = 1,
1: - NETDEV_DOWN = 2,
1: - NETDEV_REBOOT = 3,
1: - NETDEV_CHANGE = 4,
1: - NETDEV_REGISTER = 5,
1: - NETDEV_UNREGISTER = 6,
1: - NETDEV_CHANGEMTU = 7,
1: - NETDEV_CHANGEADDR = 8,
1: - NETDEV_PRE_CHANGEADDR = 9,
1: - NETDEV_GOING_DOWN = 10,
1: - NETDEV_CHANGENAME = 11,
1: - NETDEV_FEAT_CHANGE = 12,
1: - NETDEV_BONDING_FAILOVER = 13,
1: - NETDEV_PRE_UP = 14,
1: - NETDEV_PRE_TYPE_CHANGE = 15,
1: - NETDEV_POST_TYPE_CHANGE = 16,
1: - NETDEV_POST_INIT = 17,
1: - NETDEV_RELEASE = 18,
1: - NETDEV_NOTIFY_PEERS = 19,
1: - NETDEV_JOIN = 20,
1: - NETDEV_CHANGEUPPER = 21,
1: - NETDEV_RESEND_IGMP = 22,
1: - NETDEV_PRECHANGEMTU = 23,
1: - NETDEV_CHANGEINFODATA = 24,
1: - NETDEV_BONDING_INFO = 25,
1: - NETDEV_PRECHANGEUPPER = 26,
1: - NETDEV_CHANGELOWERSTATE = 27,
1: - NETDEV_UDP_TUNNEL_PUSH_INFO = 28,
1: - NETDEV_UDP_TUNNEL_DROP_INFO = 29,
1: - NETDEV_CHANGE_TX_QUEUE_LEN = 30,
1: - NETDEV_CVLAN_FILTER_PUSH_INFO = 31,
1: - NETDEV_CVLAN_FILTER_DROP_INFO = 32,
1: - NETDEV_SVLAN_FILTER_PUSH_INFO = 33,
1: - NETDEV_SVLAN_FILTER_DROP_INFO = 34,
1: + NETDEV_UP = 1,
1: + NETDEV_DOWN = 2,
1: + NETDEV_REBOOT = 3,
1: + NETDEV_CHANGE = 4,
1: + NETDEV_REGISTER = 5,
1: + NETDEV_UNREGISTER = 6,
1: + NETDEV_CHANGEMTU = 7,
1: + NETDEV_CHANGEADDR = 8,
1: + NETDEV_PRE_CHANGEADDR = 9,
1: + NETDEV_GOING_DOWN = 10,
1: + NETDEV_CHANGENAME = 11,
1: + NETDEV_FEAT_CHANGE = 12,
1: + NETDEV_BONDING_FAILOVER = 13,
1: + NETDEV_PRE_UP = 14,
1: + NETDEV_PRE_TYPE_CHANGE = 15,
1: + NETDEV_POST_TYPE_CHANGE = 16,
1: + NETDEV_POST_INIT = 17,
1: + NETDEV_RELEASE = 18,
1: + NETDEV_NOTIFY_PEERS = 19,
1: + NETDEV_JOIN = 20,
1: + NETDEV_CHANGEUPPER = 21,
1: + NETDEV_RESEND_IGMP = 22,
1: + NETDEV_PRECHANGEMTU = 23,
1: + NETDEV_CHANGEINFODATA = 24,
1: + NETDEV_BONDING_INFO = 25,
1: + NETDEV_PRECHANGEUPPER = 26,
1: + NETDEV_CHANGELOWERSTATE = 27,
1: + NETDEV_UDP_TUNNEL_PUSH_INFO = 28,
1: + NETDEV_UDP_TUNNEL_DROP_INFO = 29,
1: + NETDEV_CHANGE_TX_QUEUE_LEN = 30,
1: + NETDEV_CVLAN_FILTER_PUSH_INFO = 31,
1: + NETDEV_CVLAN_FILTER_DROP_INFO = 32,
1: + NETDEV_SVLAN_FILTER_PUSH_INFO = 33,
1: + NETDEV_SVLAN_FILTER_DROP_INFO = 34,
1: };
1:
1: struct netdev_notifier_info {
1: - struct net_device *dev;
1: - struct netlink_ext_ack *extack;
1: + struct net_device *dev;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct bpf_dtab;
1:
1: struct bpf_dtab_netdev {
1: - struct net_device *dev;
1: - struct hlist_node index_hlist;
1: - struct bpf_dtab *dtab;
1: - struct bpf_prog *xdp_prog;
1: - struct callback_head rcu;
1: - unsigned int idx;
1: - struct bpf_devmap_val val;
1: + struct net_device *dev;
1: + struct hlist_node index_hlist;
1: + struct bpf_dtab *dtab;
1: + struct bpf_prog *xdp_prog;
1: + struct callback_head rcu;
1: + unsigned int idx;
1: + struct bpf_devmap_val val;
1: };
1:
1: struct bpf_dtab {
1: - struct bpf_map map;
1: - struct bpf_dtab_netdev **netdev_map;
1: - struct list_head list;
1: - struct hlist_head *dev_index_head;
1: - spinlock_t index_lock;
1: - unsigned int items;
1: - u32 n_buckets;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bpf_dtab_netdev **netdev_map;
1: + struct list_head list;
1: + struct hlist_head *dev_index_head;
1: + spinlock_t index_lock;
1: + unsigned int items;
1: + u32 n_buckets;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_cpumap_val {
1: - __u32 qsize;
1: - union {
1: - int fd;
1: - __u32 id;
1: - } bpf_prog;
1: + __u32 qsize;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: };
1:
1: typedef struct bio_vec skb_frag_t;
1:
1: struct skb_shared_hwtstamps {
1: - ktime_t hwtstamp;
1: + ktime_t hwtstamp;
1: };
1:
1: struct skb_shared_info {
1: - __u8 __unused;
1: - __u8 meta_len;
1: - __u8 nr_frags;
1: - __u8 tx_flags;
1: - short unsigned int gso_size;
1: - short unsigned int gso_segs;
1: - struct sk_buff *frag_list;
1: - struct skb_shared_hwtstamps hwtstamps;
1: - unsigned int gso_type;
1: - u32 tskey;
1: - atomic_t dataref;
1: - void *destructor_arg;
1: - skb_frag_t frags[17];
1: + __u8 __unused;
1: + __u8 meta_len;
1: + __u8 nr_frags;
1: + __u8 tx_flags;
1: + short unsigned int gso_size;
1: + short unsigned int gso_segs;
1: + struct sk_buff *frag_list;
1: + struct skb_shared_hwtstamps hwtstamps;
1: + unsigned int gso_type;
1: + u32 tskey;
1: + atomic_t dataref;
1: + void *destructor_arg;
1: + skb_frag_t frags[17];
1: };
1:
1: struct bpf_nh_params {
1: - u32 nh_family;
1: - union {
1: - u32 ipv4_nh;
1: - struct in6_addr ipv6_nh;
1: - };
1: + u32 nh_family;
1: + union {
1: + u32 ipv4_nh;
1: + struct in6_addr ipv6_nh;
1: + };
1: };
1:
1: struct bpf_redirect_info {
1: - u32 flags;
1: - u32 tgt_index;
1: - void *tgt_value;
1: - struct bpf_map *map;
1: - u32 kern_flags;
1: - struct bpf_nh_params nh;
1: + u32 flags;
1: + u32 tgt_index;
1: + void *tgt_value;
1: + struct bpf_map *map;
1: + u32 kern_flags;
1: + struct bpf_nh_params nh;
1: };
1:
1: struct ptr_ring {
1: - int producer;
1: - spinlock_t producer_lock;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - int consumer_head;
1: - int consumer_tail;
1: - spinlock_t consumer_lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - int size;
1: - int batch;
1: - void **queue;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + int producer;
1: + spinlock_t producer_lock;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + int consumer_head;
1: + int consumer_tail;
1: + spinlock_t consumer_lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + int size;
1: + int batch;
1: + void **queue;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct bpf_cpu_map_entry;
1:
1: struct xdp_bulk_queue {
1: - void *q[8];
1: - struct list_head flush_node;
1: - struct bpf_cpu_map_entry *obj;
1: - unsigned int count;
1: + void *q[8];
1: + struct list_head flush_node;
1: + struct bpf_cpu_map_entry *obj;
1: + unsigned int count;
1: };
1:
1: struct bpf_cpu_map;
1:
1: struct bpf_cpu_map_entry {
1: - u32 cpu;
1: - int map_id;
1: - struct xdp_bulk_queue *bulkq;
1: - struct bpf_cpu_map *cmap;
1: - struct ptr_ring *queue;
1: - struct task_struct *kthread;
1: - struct bpf_cpumap_val value;
1: - struct bpf_prog *prog;
1: - atomic_t refcnt;
1: - struct callback_head rcu;
1: - struct work_struct kthread_stop_wq;
1: + u32 cpu;
1: + int map_id;
1: + struct xdp_bulk_queue *bulkq;
1: + struct bpf_cpu_map *cmap;
1: + struct ptr_ring *queue;
1: + struct task_struct *kthread;
1: + struct bpf_cpumap_val value;
1: + struct bpf_prog *prog;
1: + atomic_t refcnt;
1: + struct callback_head rcu;
1: + struct work_struct kthread_stop_wq;
1: };
1:
1: struct bpf_cpu_map {
1: - struct bpf_map map;
1: - struct bpf_cpu_map_entry **cpu_map;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bpf_cpu_map_entry **cpu_map;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct rhlist_head {
1: - struct rhash_head rhead;
1: - struct rhlist_head *next;
1: + struct rhash_head rhead;
1: + struct rhlist_head *next;
1: };
1:
1: struct bpf_prog_offload_ops {
1: - int (*insn_hook)(struct bpf_verifier_env *, int, int);
1: - int (*finalize)(struct bpf_verifier_env *);
1: - int (*replace_insn)(struct bpf_verifier_env *, u32, struct bpf_insn *);
1: - int (*remove_insns)(struct bpf_verifier_env *, u32, u32);
1: - int (*prepare)(struct bpf_prog *);
1: - int (*translate)(struct bpf_prog *);
1: - void (*destroy)(struct bpf_prog *);
1: + int (*insn_hook)(struct bpf_verifier_env *, int, int);
1: + int (*finalize)(struct bpf_verifier_env *);
1: + int (*replace_insn)(struct bpf_verifier_env *, u32, struct bpf_insn *);
1: + int (*remove_insns)(struct bpf_verifier_env *, u32, u32);
1: + int (*prepare)(struct bpf_prog *);
1: + int (*translate)(struct bpf_prog *);
1: + void (*destroy)(struct bpf_prog *);
1: };
1:
1: struct bpf_offload_dev {
1: - const struct bpf_prog_offload_ops *ops;
1: - struct list_head netdevs;
1: - void *priv;
1: + const struct bpf_prog_offload_ops *ops;
1: + struct list_head netdevs;
1: + void *priv;
1: };
1:
1: struct bpf_offload_netdev {
1: - struct rhash_head l;
1: - struct net_device *netdev;
1: - struct bpf_offload_dev *offdev;
1: - struct list_head progs;
1: - struct list_head maps;
1: - struct list_head offdev_netdevs;
1: + struct rhash_head l;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + struct list_head progs;
1: + struct list_head maps;
1: + struct list_head offdev_netdevs;
1: };
1:
1: struct ns_get_path_bpf_prog_args {
1: - struct bpf_prog *prog;
1: - struct bpf_prog_info *info;
1: + struct bpf_prog *prog;
1: + struct bpf_prog_info *info;
1: };
1:
1: struct ns_get_path_bpf_map_args {
1: - struct bpf_offloaded_map *offmap;
1: - struct bpf_map_info *info;
1: + struct bpf_offloaded_map *offmap;
1: + struct bpf_map_info *info;
1: };
1:
1: struct bpf_netns_link {
1: - struct bpf_link link;
1: - enum bpf_attach_type type;
1: - enum netns_bpf_attach_type netns_type;
1: - struct net *net;
1: - struct list_head node;
1: + struct bpf_link link;
1: + enum bpf_attach_type type;
1: + enum netns_bpf_attach_type netns_type;
1: + struct net *net;
1: + struct list_head node;
1: };
1:
1: enum bpf_stack_build_id_status {
1: - BPF_STACK_BUILD_ID_EMPTY = 0,
1: - BPF_STACK_BUILD_ID_VALID = 1,
1: - BPF_STACK_BUILD_ID_IP = 2,
1: + BPF_STACK_BUILD_ID_EMPTY = 0,
1: + BPF_STACK_BUILD_ID_VALID = 1,
1: + BPF_STACK_BUILD_ID_IP = 2,
1: };
1:
1: struct bpf_stack_build_id {
1: - __s32 status;
1: - unsigned char build_id[20];
1: - union {
1: - __u64 offset;
1: - __u64 ip;
1: - };
1: + __s32 status;
1: + unsigned char build_id[20];
1: + union {
1: + __u64 offset;
1: + __u64 ip;
1: + };
1: };
1:
1: enum {
1: - BPF_F_SKIP_FIELD_MASK = 255,
1: - BPF_F_USER_STACK = 256,
1: - BPF_F_FAST_STACK_CMP = 512,
1: - BPF_F_REUSE_STACKID = 1024,
1: - BPF_F_USER_BUILD_ID = 2048,
1: + BPF_F_SKIP_FIELD_MASK = 255,
1: + BPF_F_USER_STACK = 256,
1: + BPF_F_FAST_STACK_CMP = 512,
1: + BPF_F_REUSE_STACKID = 1024,
1: + BPF_F_USER_BUILD_ID = 2048,
1: };
1:
1: typedef __u32 Elf32_Addr;
1: @@ -33748,33 +34153,33 @@ typedef __u16 Elf32_Half;
1: typedef __u32 Elf32_Off;
1:
1: struct elf32_hdr {
1: - unsigned char e_ident[16];
1: - Elf32_Half e_type;
1: - Elf32_Half e_machine;
1: - Elf32_Word e_version;
1: - Elf32_Addr e_entry;
1: - Elf32_Off e_phoff;
1: - Elf32_Off e_shoff;
1: - Elf32_Word e_flags;
1: - Elf32_Half e_ehsize;
1: - Elf32_Half e_phentsize;
1: - Elf32_Half e_phnum;
1: - Elf32_Half e_shentsize;
1: - Elf32_Half e_shnum;
1: - Elf32_Half e_shstrndx;
1: + unsigned char e_ident[16];
1: + Elf32_Half e_type;
1: + Elf32_Half e_machine;
1: + Elf32_Word e_version;
1: + Elf32_Addr e_entry;
1: + Elf32_Off e_phoff;
1: + Elf32_Off e_shoff;
1: + Elf32_Word e_flags;
1: + Elf32_Half e_ehsize;
1: + Elf32_Half e_phentsize;
1: + Elf32_Half e_phnum;
1: + Elf32_Half e_shentsize;
1: + Elf32_Half e_shnum;
1: + Elf32_Half e_shstrndx;
1: };
1:
1: typedef struct elf32_hdr Elf32_Ehdr;
1:
1: struct elf32_phdr {
1: - Elf32_Word p_type;
1: - Elf32_Off p_offset;
1: - Elf32_Addr p_vaddr;
1: - Elf32_Addr p_paddr;
1: - Elf32_Word p_filesz;
1: - Elf32_Word p_memsz;
1: - Elf32_Word p_flags;
1: - Elf32_Word p_align;
1: + Elf32_Word p_type;
1: + Elf32_Off p_offset;
1: + Elf32_Addr p_vaddr;
1: + Elf32_Addr p_paddr;
1: + Elf32_Word p_filesz;
1: + Elf32_Word p_memsz;
1: + Elf32_Word p_flags;
1: + Elf32_Word p_align;
1: };
1:
1: typedef struct elf32_phdr Elf32_Phdr;
1: @@ -33782,239 +34187,245 @@ typedef struct elf32_phdr Elf32_Phdr;
1: typedef struct elf32_note Elf32_Nhdr;
1:
1: enum perf_callchain_context {
1: - PERF_CONTEXT_HV = 4294967264,
1: - PERF_CONTEXT_KERNEL = 4294967168,
1: - PERF_CONTEXT_USER = 4294966784,
1: - PERF_CONTEXT_GUEST = 4294965248,
1: - PERF_CONTEXT_GUEST_KERNEL = 4294965120,
1: - PERF_CONTEXT_GUEST_USER = 4294964736,
1: - PERF_CONTEXT_MAX = 4294963201,
1: + PERF_CONTEXT_HV = 4294967264,
1: + PERF_CONTEXT_KERNEL = 4294967168,
1: + PERF_CONTEXT_USER = 4294966784,
1: + PERF_CONTEXT_GUEST = 4294965248,
1: + PERF_CONTEXT_GUEST_KERNEL = 4294965120,
1: + PERF_CONTEXT_GUEST_USER = 4294964736,
1: + PERF_CONTEXT_MAX = 4294963201,
1: };
1:
1: struct stack_map_bucket {
1: - struct pcpu_freelist_node fnode;
1: - u32 hash;
1: - u32 nr;
1: - u64 data[0];
1: + struct pcpu_freelist_node fnode;
1: + u32 hash;
1: + u32 nr;
1: + u64 data[0];
1: };
1:
1: struct bpf_stack_map {
1: - struct bpf_map map;
1: - void *elems;
1: - struct pcpu_freelist freelist;
1: - u32 n_buckets;
1: - struct stack_map_bucket *buckets[0];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + void *elems;
1: + struct pcpu_freelist freelist;
1: + u32 n_buckets;
1: + struct stack_map_bucket *buckets[0];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct stack_map_irq_work {
1: - struct irq_work irq_work;
1: - struct mm_struct *mm;
1: + struct irq_work irq_work;
1: + struct mm_struct *mm;
1: };
1:
1: typedef u64 (*btf_bpf_get_stackid)(struct pt_regs *, struct bpf_map *, u64);
1:
1: -typedef u64 (*btf_bpf_get_stackid_pe)(struct bpf_perf_event_data_kern *, struct bpf_map *, u64);
1: +typedef u64 (*btf_bpf_get_stackid_pe)(struct bpf_perf_event_data_kern *,
1: + struct bpf_map *, u64);
1:
1: typedef u64 (*btf_bpf_get_stack)(struct pt_regs *, void *, u32, u64);
1:
1: typedef u64 (*btf_bpf_get_task_stack)(struct task_struct *, void *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_get_stack_pe)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +typedef u64 (*btf_bpf_get_stack_pe)(struct bpf_perf_event_data_kern *, void *,
1: + u32, u64);
1:
1: enum {
1: - BPF_F_SYSCTL_BASE_NAME = 1,
1: + BPF_F_SYSCTL_BASE_NAME = 1,
1: };
1:
1: struct bpf_prog_list {
1: - struct list_head node;
1: - struct bpf_prog *prog;
1: - struct bpf_cgroup_link *link;
1: - struct bpf_cgroup_storage *storage[2];
1: + struct list_head node;
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_link *link;
1: + struct bpf_cgroup_storage *storage[2];
1: };
1:
1: struct qdisc_skb_cb {
1: - struct {
1: - unsigned int pkt_len;
1: - u16 slave_dev_queue_mapping;
1: - u16 tc_classid;
1: - };
1: - unsigned char data[20];
1: - u16 mru;
1: + struct {
1: + unsigned int pkt_len;
1: + u16 slave_dev_queue_mapping;
1: + u16 tc_classid;
1: + };
1: + unsigned char data[20];
1: + u16 mru;
1: };
1:
1: struct bpf_skb_data_end {
1: - struct qdisc_skb_cb qdisc_cb;
1: - void *data_meta;
1: - void *data_end;
1: + struct qdisc_skb_cb qdisc_cb;
1: + void *data_meta;
1: + void *data_end;
1: };
1:
1: enum {
1: - TCPF_ESTABLISHED = 2,
1: - TCPF_SYN_SENT = 4,
1: - TCPF_SYN_RECV = 8,
1: - TCPF_FIN_WAIT1 = 16,
1: - TCPF_FIN_WAIT2 = 32,
1: - TCPF_TIME_WAIT = 64,
1: - TCPF_CLOSE = 128,
1: - TCPF_CLOSE_WAIT = 256,
1: - TCPF_LAST_ACK = 512,
1: - TCPF_LISTEN = 1024,
1: - TCPF_CLOSING = 2048,
1: - TCPF_NEW_SYN_RECV = 4096,
1: + TCPF_ESTABLISHED = 2,
1: + TCPF_SYN_SENT = 4,
1: + TCPF_SYN_RECV = 8,
1: + TCPF_FIN_WAIT1 = 16,
1: + TCPF_FIN_WAIT2 = 32,
1: + TCPF_TIME_WAIT = 64,
1: + TCPF_CLOSE = 128,
1: + TCPF_CLOSE_WAIT = 256,
1: + TCPF_LAST_ACK = 512,
1: + TCPF_LISTEN = 1024,
1: + TCPF_CLOSING = 2048,
1: + TCPF_NEW_SYN_RECV = 4096,
1: };
1:
1: -typedef u64 (*btf_bpf_sysctl_get_name)(struct bpf_sysctl_kern *, char *, size_t, u64);
1: +typedef u64 (*btf_bpf_sysctl_get_name)(struct bpf_sysctl_kern *, char *, size_t,
1: + u64);
1:
1: -typedef u64 (*btf_bpf_sysctl_get_current_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +typedef u64 (*btf_bpf_sysctl_get_current_value)(struct bpf_sysctl_kern *,
1: + char *, size_t);
1:
1: -typedef u64 (*btf_bpf_sysctl_get_new_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +typedef u64 (*btf_bpf_sysctl_get_new_value)(struct bpf_sysctl_kern *, char *,
1: + size_t);
1:
1: -typedef u64 (*btf_bpf_sysctl_set_new_value)(struct bpf_sysctl_kern *, const char *, size_t);
1: +typedef u64 (*btf_bpf_sysctl_set_new_value)(struct bpf_sysctl_kern *,
1: + const char *, size_t);
1:
1: enum sock_type {
1: - SOCK_STREAM = 1,
1: - SOCK_DGRAM = 2,
1: - SOCK_RAW = 3,
1: - SOCK_RDM = 4,
1: - SOCK_SEQPACKET = 5,
1: - SOCK_DCCP = 6,
1: - SOCK_PACKET = 10,
1: -};
1: -
1: -enum {
1: - IPPROTO_IP = 0,
1: - IPPROTO_ICMP = 1,
1: - IPPROTO_IGMP = 2,
1: - IPPROTO_IPIP = 4,
1: - IPPROTO_TCP = 6,
1: - IPPROTO_EGP = 8,
1: - IPPROTO_PUP = 12,
1: - IPPROTO_UDP = 17,
1: - IPPROTO_IDP = 22,
1: - IPPROTO_TP = 29,
1: - IPPROTO_DCCP = 33,
1: - IPPROTO_IPV6 = 41,
1: - IPPROTO_RSVP = 46,
1: - IPPROTO_GRE = 47,
1: - IPPROTO_ESP = 50,
1: - IPPROTO_AH = 51,
1: - IPPROTO_MTP = 92,
1: - IPPROTO_BEETPH = 94,
1: - IPPROTO_ENCAP = 98,
1: - IPPROTO_PIM = 103,
1: - IPPROTO_COMP = 108,
1: - IPPROTO_SCTP = 132,
1: - IPPROTO_UDPLITE = 136,
1: - IPPROTO_MPLS = 137,
1: - IPPROTO_ETHERNET = 143,
1: - IPPROTO_RAW = 255,
1: - IPPROTO_MPTCP = 262,
1: - IPPROTO_MAX = 263,
1: + SOCK_STREAM = 1,
1: + SOCK_DGRAM = 2,
1: + SOCK_RAW = 3,
1: + SOCK_RDM = 4,
1: + SOCK_SEQPACKET = 5,
1: + SOCK_DCCP = 6,
1: + SOCK_PACKET = 10,
1: +};
1: +
1: +enum {
1: + IPPROTO_IP = 0,
1: + IPPROTO_ICMP = 1,
1: + IPPROTO_IGMP = 2,
1: + IPPROTO_IPIP = 4,
1: + IPPROTO_TCP = 6,
1: + IPPROTO_EGP = 8,
1: + IPPROTO_PUP = 12,
1: + IPPROTO_UDP = 17,
1: + IPPROTO_IDP = 22,
1: + IPPROTO_TP = 29,
1: + IPPROTO_DCCP = 33,
1: + IPPROTO_IPV6 = 41,
1: + IPPROTO_RSVP = 46,
1: + IPPROTO_GRE = 47,
1: + IPPROTO_ESP = 50,
1: + IPPROTO_AH = 51,
1: + IPPROTO_MTP = 92,
1: + IPPROTO_BEETPH = 94,
1: + IPPROTO_ENCAP = 98,
1: + IPPROTO_PIM = 103,
1: + IPPROTO_COMP = 108,
1: + IPPROTO_SCTP = 132,
1: + IPPROTO_UDPLITE = 136,
1: + IPPROTO_MPLS = 137,
1: + IPPROTO_ETHERNET = 143,
1: + IPPROTO_RAW = 255,
1: + IPPROTO_MPTCP = 262,
1: + IPPROTO_MAX = 263,
1: };
1:
1: enum sock_flags {
1: - SOCK_DEAD = 0,
1: - SOCK_DONE = 1,
1: - SOCK_URGINLINE = 2,
1: - SOCK_KEEPOPEN = 3,
1: - SOCK_LINGER = 4,
1: - SOCK_DESTROY = 5,
1: - SOCK_BROADCAST = 6,
1: - SOCK_TIMESTAMP = 7,
1: - SOCK_ZAPPED = 8,
1: - SOCK_USE_WRITE_QUEUE = 9,
1: - SOCK_DBG = 10,
1: - SOCK_RCVTSTAMP = 11,
1: - SOCK_RCVTSTAMPNS = 12,
1: - SOCK_LOCALROUTE = 13,
1: - SOCK_MEMALLOC = 14,
1: - SOCK_TIMESTAMPING_RX_SOFTWARE = 15,
1: - SOCK_FASYNC = 16,
1: - SOCK_RXQ_OVFL = 17,
1: - SOCK_ZEROCOPY = 18,
1: - SOCK_WIFI_STATUS = 19,
1: - SOCK_NOFCS = 20,
1: - SOCK_FILTER_LOCKED = 21,
1: - SOCK_SELECT_ERR_QUEUE = 22,
1: - SOCK_RCU_FREE = 23,
1: - SOCK_TXTIME = 24,
1: - SOCK_XDP = 25,
1: - SOCK_TSTAMP_NEW = 26,
1: + SOCK_DEAD = 0,
1: + SOCK_DONE = 1,
1: + SOCK_URGINLINE = 2,
1: + SOCK_KEEPOPEN = 3,
1: + SOCK_LINGER = 4,
1: + SOCK_DESTROY = 5,
1: + SOCK_BROADCAST = 6,
1: + SOCK_TIMESTAMP = 7,
1: + SOCK_ZAPPED = 8,
1: + SOCK_USE_WRITE_QUEUE = 9,
1: + SOCK_DBG = 10,
1: + SOCK_RCVTSTAMP = 11,
1: + SOCK_RCVTSTAMPNS = 12,
1: + SOCK_LOCALROUTE = 13,
1: + SOCK_MEMALLOC = 14,
1: + SOCK_TIMESTAMPING_RX_SOFTWARE = 15,
1: + SOCK_FASYNC = 16,
1: + SOCK_RXQ_OVFL = 17,
1: + SOCK_ZEROCOPY = 18,
1: + SOCK_WIFI_STATUS = 19,
1: + SOCK_NOFCS = 20,
1: + SOCK_FILTER_LOCKED = 21,
1: + SOCK_SELECT_ERR_QUEUE = 22,
1: + SOCK_RCU_FREE = 23,
1: + SOCK_TXTIME = 24,
1: + SOCK_XDP = 25,
1: + SOCK_TSTAMP_NEW = 26,
1: };
1:
1: struct reuseport_array {
1: - struct bpf_map map;
1: - struct sock *ptrs[0];
1: + struct bpf_map map;
1: + struct sock *ptrs[0];
1: };
1:
1: enum bpf_struct_ops_state {
1: - BPF_STRUCT_OPS_STATE_INIT = 0,
1: - BPF_STRUCT_OPS_STATE_INUSE = 1,
1: - BPF_STRUCT_OPS_STATE_TOBEFREE = 2,
1: + BPF_STRUCT_OPS_STATE_INIT = 0,
1: + BPF_STRUCT_OPS_STATE_INUSE = 1,
1: + BPF_STRUCT_OPS_STATE_TOBEFREE = 2,
1: };
1:
1: struct bpf_struct_ops_value {
1: - refcount_t refcnt;
1: - enum bpf_struct_ops_state state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - char data[0];
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + char data[0];
1: };
1:
1: struct bpf_struct_ops_map {
1: - struct bpf_map map;
1: - const struct bpf_struct_ops *st_ops;
1: - struct mutex lock;
1: - struct bpf_prog **progs;
1: - void *image;
1: - struct bpf_struct_ops_value *uvalue;
1: - struct bpf_struct_ops_value kvalue;
1: + struct bpf_map map;
1: + const struct bpf_struct_ops *st_ops;
1: + struct mutex lock;
1: + struct bpf_prog **progs;
1: + void *image;
1: + struct bpf_struct_ops_value *uvalue;
1: + struct bpf_struct_ops_value kvalue;
1: };
1:
1: struct bpf_struct_ops_tcp_congestion_ops {
1: - refcount_t refcnt;
1: - enum bpf_struct_ops_state state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct tcp_congestion_ops data;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct tcp_congestion_ops data;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct sembuf {
1: - short unsigned int sem_num;
1: - short int sem_op;
1: - short int sem_flg;
1: + short unsigned int sem_num;
1: + short int sem_op;
1: + short int sem_flg;
1: };
1:
1: enum key_need_perm {
1: - KEY_NEED_UNSPECIFIED = 0,
1: - KEY_NEED_VIEW = 1,
1: - KEY_NEED_READ = 2,
1: - KEY_NEED_WRITE = 3,
1: - KEY_NEED_SEARCH = 4,
1: - KEY_NEED_LINK = 5,
1: - KEY_NEED_SETATTR = 6,
1: - KEY_NEED_UNLINK = 7,
1: - KEY_SYSADMIN_OVERRIDE = 8,
1: - KEY_AUTHTOKEN_OVERRIDE = 9,
1: - KEY_DEFER_PERM_CHECK = 10,
1: + KEY_NEED_UNSPECIFIED = 0,
1: + KEY_NEED_VIEW = 1,
1: + KEY_NEED_READ = 2,
1: + KEY_NEED_WRITE = 3,
1: + KEY_NEED_SEARCH = 4,
1: + KEY_NEED_LINK = 5,
1: + KEY_NEED_SETATTR = 6,
1: + KEY_NEED_UNLINK = 7,
1: + KEY_SYSADMIN_OVERRIDE = 8,
1: + KEY_AUTHTOKEN_OVERRIDE = 9,
1: + KEY_DEFER_PERM_CHECK = 10,
1: };
1:
1: struct __key_reference_with_attributes;
1: @@ -34022,506 +34433,507 @@ struct __key_reference_with_attributes;
1: typedef struct __key_reference_with_attributes *key_ref_t;
1:
1: struct xfrm_sec_ctx {
1: - __u8 ctx_doi;
1: - __u8 ctx_alg;
1: - __u16 ctx_len;
1: - __u32 ctx_sid;
1: - char ctx_str[0];
1: + __u8 ctx_doi;
1: + __u8 ctx_alg;
1: + __u16 ctx_len;
1: + __u32 ctx_sid;
1: + char ctx_str[0];
1: };
1:
1: struct xfrm_user_sec_ctx {
1: - __u16 len;
1: - __u16 exttype;
1: - __u8 ctx_alg;
1: - __u8 ctx_doi;
1: - __u16 ctx_len;
1: + __u16 len;
1: + __u16 exttype;
1: + __u8 ctx_alg;
1: + __u8 ctx_doi;
1: + __u16 ctx_len;
1: };
1:
1: enum perf_branch_sample_type {
1: - PERF_SAMPLE_BRANCH_USER = 1,
1: - PERF_SAMPLE_BRANCH_KERNEL = 2,
1: - PERF_SAMPLE_BRANCH_HV = 4,
1: - PERF_SAMPLE_BRANCH_ANY = 8,
1: - PERF_SAMPLE_BRANCH_ANY_CALL = 16,
1: - PERF_SAMPLE_BRANCH_ANY_RETURN = 32,
1: - PERF_SAMPLE_BRANCH_IND_CALL = 64,
1: - PERF_SAMPLE_BRANCH_ABORT_TX = 128,
1: - PERF_SAMPLE_BRANCH_IN_TX = 256,
1: - PERF_SAMPLE_BRANCH_NO_TX = 512,
1: - PERF_SAMPLE_BRANCH_COND = 1024,
1: - PERF_SAMPLE_BRANCH_CALL_STACK = 2048,
1: - PERF_SAMPLE_BRANCH_IND_JUMP = 4096,
1: - PERF_SAMPLE_BRANCH_CALL = 8192,
1: - PERF_SAMPLE_BRANCH_NO_FLAGS = 16384,
1: - PERF_SAMPLE_BRANCH_NO_CYCLES = 32768,
1: - PERF_SAMPLE_BRANCH_TYPE_SAVE = 65536,
1: - PERF_SAMPLE_BRANCH_HW_INDEX = 131072,
1: - PERF_SAMPLE_BRANCH_MAX = 262144,
1: + PERF_SAMPLE_BRANCH_USER = 1,
1: + PERF_SAMPLE_BRANCH_KERNEL = 2,
1: + PERF_SAMPLE_BRANCH_HV = 4,
1: + PERF_SAMPLE_BRANCH_ANY = 8,
1: + PERF_SAMPLE_BRANCH_ANY_CALL = 16,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN = 32,
1: + PERF_SAMPLE_BRANCH_IND_CALL = 64,
1: + PERF_SAMPLE_BRANCH_ABORT_TX = 128,
1: + PERF_SAMPLE_BRANCH_IN_TX = 256,
1: + PERF_SAMPLE_BRANCH_NO_TX = 512,
1: + PERF_SAMPLE_BRANCH_COND = 1024,
1: + PERF_SAMPLE_BRANCH_CALL_STACK = 2048,
1: + PERF_SAMPLE_BRANCH_IND_JUMP = 4096,
1: + PERF_SAMPLE_BRANCH_CALL = 8192,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS = 16384,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES = 32768,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE = 65536,
1: + PERF_SAMPLE_BRANCH_HW_INDEX = 131072,
1: + PERF_SAMPLE_BRANCH_MAX = 262144,
1: };
1:
1: enum perf_event_read_format {
1: - PERF_FORMAT_TOTAL_TIME_ENABLED = 1,
1: - PERF_FORMAT_TOTAL_TIME_RUNNING = 2,
1: - PERF_FORMAT_ID = 4,
1: - PERF_FORMAT_GROUP = 8,
1: - PERF_FORMAT_MAX = 16,
1: + PERF_FORMAT_TOTAL_TIME_ENABLED = 1,
1: + PERF_FORMAT_TOTAL_TIME_RUNNING = 2,
1: + PERF_FORMAT_ID = 4,
1: + PERF_FORMAT_GROUP = 8,
1: + PERF_FORMAT_MAX = 16,
1: };
1:
1: enum perf_event_ioc_flags {
1: - PERF_IOC_FLAG_GROUP = 1,
1: + PERF_IOC_FLAG_GROUP = 1,
1: };
1:
1: struct perf_event_header {
1: - __u32 type;
1: - __u16 misc;
1: - __u16 size;
1: + __u32 type;
1: + __u16 misc;
1: + __u16 size;
1: };
1:
1: struct perf_ns_link_info {
1: - __u64 dev;
1: - __u64 ino;
1: + __u64 dev;
1: + __u64 ino;
1: };
1:
1: enum {
1: - NET_NS_INDEX = 0,
1: - UTS_NS_INDEX = 1,
1: - IPC_NS_INDEX = 2,
1: - PID_NS_INDEX = 3,
1: - USER_NS_INDEX = 4,
1: - MNT_NS_INDEX = 5,
1: - CGROUP_NS_INDEX = 6,
1: - NR_NAMESPACES = 7,
1: + NET_NS_INDEX = 0,
1: + UTS_NS_INDEX = 1,
1: + IPC_NS_INDEX = 2,
1: + PID_NS_INDEX = 3,
1: + USER_NS_INDEX = 4,
1: + MNT_NS_INDEX = 5,
1: + CGROUP_NS_INDEX = 6,
1: + NR_NAMESPACES = 7,
1: };
1:
1: enum perf_event_type {
1: - PERF_RECORD_MMAP = 1,
1: - PERF_RECORD_LOST = 2,
1: - PERF_RECORD_COMM = 3,
1: - PERF_RECORD_EXIT = 4,
1: - PERF_RECORD_THROTTLE = 5,
1: - PERF_RECORD_UNTHROTTLE = 6,
1: - PERF_RECORD_FORK = 7,
1: - PERF_RECORD_READ = 8,
1: - PERF_RECORD_SAMPLE = 9,
1: - PERF_RECORD_MMAP2 = 10,
1: - PERF_RECORD_AUX = 11,
1: - PERF_RECORD_ITRACE_START = 12,
1: - PERF_RECORD_LOST_SAMPLES = 13,
1: - PERF_RECORD_SWITCH = 14,
1: - PERF_RECORD_SWITCH_CPU_WIDE = 15,
1: - PERF_RECORD_NAMESPACES = 16,
1: - PERF_RECORD_KSYMBOL = 17,
1: - PERF_RECORD_BPF_EVENT = 18,
1: - PERF_RECORD_CGROUP = 19,
1: - PERF_RECORD_TEXT_POKE = 20,
1: - PERF_RECORD_MAX = 21,
1: + PERF_RECORD_MMAP = 1,
1: + PERF_RECORD_LOST = 2,
1: + PERF_RECORD_COMM = 3,
1: + PERF_RECORD_EXIT = 4,
1: + PERF_RECORD_THROTTLE = 5,
1: + PERF_RECORD_UNTHROTTLE = 6,
1: + PERF_RECORD_FORK = 7,
1: + PERF_RECORD_READ = 8,
1: + PERF_RECORD_SAMPLE = 9,
1: + PERF_RECORD_MMAP2 = 10,
1: + PERF_RECORD_AUX = 11,
1: + PERF_RECORD_ITRACE_START = 12,
1: + PERF_RECORD_LOST_SAMPLES = 13,
1: + PERF_RECORD_SWITCH = 14,
1: + PERF_RECORD_SWITCH_CPU_WIDE = 15,
1: + PERF_RECORD_NAMESPACES = 16,
1: + PERF_RECORD_KSYMBOL = 17,
1: + PERF_RECORD_BPF_EVENT = 18,
1: + PERF_RECORD_CGROUP = 19,
1: + PERF_RECORD_TEXT_POKE = 20,
1: + PERF_RECORD_MAX = 21,
1: };
1:
1: enum perf_addr_filter_action_t {
1: - PERF_ADDR_FILTER_ACTION_STOP = 0,
1: - PERF_ADDR_FILTER_ACTION_START = 1,
1: - PERF_ADDR_FILTER_ACTION_FILTER = 2,
1: + PERF_ADDR_FILTER_ACTION_STOP = 0,
1: + PERF_ADDR_FILTER_ACTION_START = 1,
1: + PERF_ADDR_FILTER_ACTION_FILTER = 2,
1: };
1:
1: struct perf_addr_filter {
1: - struct list_head entry;
1: - struct path path;
1: - long unsigned int offset;
1: - long unsigned int size;
1: - enum perf_addr_filter_action_t action;
1: + struct list_head entry;
1: + struct path path;
1: + long unsigned int offset;
1: + long unsigned int size;
1: + enum perf_addr_filter_action_t action;
1: };
1:
1: struct swevent_hlist {
1: - struct hlist_head heads[256];
1: - struct callback_head callback_head;
1: + struct hlist_head heads[256];
1: + struct callback_head callback_head;
1: };
1:
1: struct pmu_event_list {
1: - raw_spinlock_t lock;
1: - struct list_head list;
1: + raw_spinlock_t lock;
1: + struct list_head list;
1: };
1:
1: struct perf_buffer {
1: - refcount_t refcount;
1: - struct callback_head callback_head;
1: - int nr_pages;
1: - int overwrite;
1: - int paused;
1: - atomic_t poll;
1: - local_t head;
1: - unsigned int nest;
1: - local_t events;
1: - local_t wakeup;
1: - local_t lost;
1: - long int watermark;
1: - long int aux_watermark;
1: - spinlock_t event_lock;
1: - struct list_head event_list;
1: - atomic_t mmap_count;
1: - long unsigned int mmap_locked;
1: - struct user_struct *mmap_user;
1: - long int aux_head;
1: - unsigned int aux_nest;
1: - long int aux_wakeup;
1: - long unsigned int aux_pgoff;
1: - int aux_nr_pages;
1: - int aux_overwrite;
1: - atomic_t aux_mmap_count;
1: - long unsigned int aux_mmap_locked;
1: - void (*free_aux)(void *);
1: - refcount_t aux_refcount;
1: - int aux_in_sampling;
1: - void **aux_pages;
1: - void *aux_priv;
1: - struct perf_event_mmap_page *user_page;
1: - void *data_pages[0];
1: + refcount_t refcount;
1: + struct callback_head callback_head;
1: + int nr_pages;
1: + int overwrite;
1: + int paused;
1: + atomic_t poll;
1: + local_t head;
1: + unsigned int nest;
1: + local_t events;
1: + local_t wakeup;
1: + local_t lost;
1: + long int watermark;
1: + long int aux_watermark;
1: + spinlock_t event_lock;
1: + struct list_head event_list;
1: + atomic_t mmap_count;
1: + long unsigned int mmap_locked;
1: + struct user_struct *mmap_user;
1: + long int aux_head;
1: + unsigned int aux_nest;
1: + long int aux_wakeup;
1: + long unsigned int aux_pgoff;
1: + int aux_nr_pages;
1: + int aux_overwrite;
1: + atomic_t aux_mmap_count;
1: + long unsigned int aux_mmap_locked;
1: + void (*free_aux)(void *);
1: + refcount_t aux_refcount;
1: + int aux_in_sampling;
1: + void **aux_pages;
1: + void *aux_priv;
1: + struct perf_event_mmap_page *user_page;
1: + void *data_pages[0];
1: };
1:
1: struct match_token {
1: - int token;
1: - const char *pattern;
1: + int token;
1: + const char *pattern;
1: };
1:
1: enum {
1: - MAX_OPT_ARGS = 3,
1: + MAX_OPT_ARGS = 3,
1: };
1:
1: typedef struct {
1: - char *from;
1: - char *to;
1: + char *from;
1: + char *to;
1: } substring_t;
1:
1: struct min_heap {
1: - void *data;
1: - int nr;
1: - int size;
1: + void *data;
1: + int nr;
1: + int size;
1: };
1:
1: struct min_heap_callbacks {
1: - int elem_size;
1: - bool (*less)(const void *, const void *);
1: - void (*swp)(void *, void *);
1: + int elem_size;
1: + bool (*less)(const void *, const void *);
1: + void (*swp)(void *, void *);
1: };
1:
1: typedef int (*remote_function_f)(void *);
1:
1: struct remote_function_call {
1: - struct task_struct *p;
1: - remote_function_f func;
1: - void *info;
1: - int ret;
1: + struct task_struct *p;
1: + remote_function_f func;
1: + void *info;
1: + int ret;
1: };
1:
1: -typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *, struct perf_event_context *, void *);
1: +typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
1: + struct perf_event_context *, void *);
1:
1: struct event_function_struct {
1: - struct perf_event *event;
1: - event_f func;
1: - void *data;
1: + struct perf_event *event;
1: + event_f func;
1: + void *data;
1: };
1:
1: enum event_type_t {
1: - EVENT_FLEXIBLE = 1,
1: - EVENT_PINNED = 2,
1: - EVENT_TIME = 4,
1: - EVENT_CPU = 8,
1: - EVENT_ALL = 3,
1: + EVENT_FLEXIBLE = 1,
1: + EVENT_PINNED = 2,
1: + EVENT_TIME = 4,
1: + EVENT_CPU = 8,
1: + EVENT_ALL = 3,
1: };
1:
1: struct stop_event_data {
1: - struct perf_event *event;
1: - unsigned int restart;
1: + struct perf_event *event;
1: + unsigned int restart;
1: };
1:
1: struct perf_read_data {
1: - struct perf_event *event;
1: - bool group;
1: - int ret;
1: + struct perf_event *event;
1: + bool group;
1: + int ret;
1: };
1:
1: struct perf_read_event {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 tid;
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: };
1:
1: typedef void perf_iterate_f(struct perf_event *, void *);
1:
1: struct remote_output {
1: - struct perf_buffer *rb;
1: - int err;
1: + struct perf_buffer *rb;
1: + int err;
1: };
1:
1: struct perf_task_event {
1: - struct task_struct *task;
1: - struct perf_event_context *task_ctx;
1: - struct {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 ppid;
1: - u32 tid;
1: - u32 ptid;
1: - u64 time;
1: - } event_id;
1: + struct task_struct *task;
1: + struct perf_event_context *task_ctx;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 ppid;
1: + u32 tid;
1: + u32 ptid;
1: + u64 time;
1: + } event_id;
1: };
1:
1: struct perf_comm_event {
1: - struct task_struct *task;
1: - char *comm;
1: - int comm_size;
1: - struct {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 tid;
1: - } event_id;
1: + struct task_struct *task;
1: + char *comm;
1: + int comm_size;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + } event_id;
1: };
1:
1: struct perf_namespaces_event {
1: - struct task_struct *task;
1: - struct {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 tid;
1: - u64 nr_namespaces;
1: - struct perf_ns_link_info link_info[7];
1: - } event_id;
1: + struct task_struct *task;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 nr_namespaces;
1: + struct perf_ns_link_info link_info[7];
1: + } event_id;
1: };
1:
1: struct perf_cgroup_event {
1: - char *path;
1: - int path_size;
1: - struct {
1: - struct perf_event_header header;
1: - u64 id;
1: - char path[0];
1: - } event_id;
1: + char *path;
1: + int path_size;
1: + struct {
1: + struct perf_event_header header;
1: + u64 id;
1: + char path[0];
1: + } event_id;
1: };
1:
1: struct perf_mmap_event {
1: - struct vm_area_struct *vma;
1: - const char *file_name;
1: - int file_size;
1: - int maj;
1: - int min;
1: - u64 ino;
1: - u64 ino_generation;
1: - u32 prot;
1: - u32 flags;
1: - struct {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 tid;
1: - u64 start;
1: - u64 len;
1: - u64 pgoff;
1: - } event_id;
1: + struct vm_area_struct *vma;
1: + const char *file_name;
1: + int file_size;
1: + int maj;
1: + int min;
1: + u64 ino;
1: + u64 ino_generation;
1: + u32 prot;
1: + u32 flags;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 start;
1: + u64 len;
1: + u64 pgoff;
1: + } event_id;
1: };
1:
1: struct perf_switch_event {
1: - struct task_struct *task;
1: - struct task_struct *next_prev;
1: - struct {
1: - struct perf_event_header header;
1: - u32 next_prev_pid;
1: - u32 next_prev_tid;
1: - } event_id;
1: + struct task_struct *task;
1: + struct task_struct *next_prev;
1: + struct {
1: + struct perf_event_header header;
1: + u32 next_prev_pid;
1: + u32 next_prev_tid;
1: + } event_id;
1: };
1:
1: struct perf_ksymbol_event {
1: - const char *name;
1: - int name_len;
1: - struct {
1: - struct perf_event_header header;
1: - u64 addr;
1: - u32 len;
1: - u16 ksym_type;
1: - u16 flags;
1: - } event_id;
1: + const char *name;
1: + int name_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + u32 len;
1: + u16 ksym_type;
1: + u16 flags;
1: + } event_id;
1: };
1:
1: struct perf_bpf_event {
1: - struct bpf_prog *prog;
1: - struct {
1: - struct perf_event_header header;
1: - u16 type;
1: - u16 flags;
1: - u32 id;
1: - u8 tag[8];
1: - } event_id;
1: + struct bpf_prog *prog;
1: + struct {
1: + struct perf_event_header header;
1: + u16 type;
1: + u16 flags;
1: + u32 id;
1: + u8 tag[8];
1: + } event_id;
1: };
1:
1: struct perf_text_poke_event {
1: - const void *old_bytes;
1: - const void *new_bytes;
1: - size_t pad;
1: - u16 old_len;
1: - u16 new_len;
1: - struct {
1: - struct perf_event_header header;
1: - u64 addr;
1: - } event_id;
1: + const void *old_bytes;
1: + const void *new_bytes;
1: + size_t pad;
1: + u16 old_len;
1: + u16 new_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + } event_id;
1: };
1:
1: struct swevent_htable {
1: - struct swevent_hlist *swevent_hlist;
1: - struct mutex hlist_mutex;
1: - int hlist_refcount;
1: - int recursion[4];
1: + struct swevent_hlist *swevent_hlist;
1: + struct mutex hlist_mutex;
1: + int hlist_refcount;
1: + int recursion[4];
1: };
1:
1: enum perf_probe_config {
1: - PERF_PROBE_CONFIG_IS_RETPROBE = 1,
1: - PERF_UPROBE_REF_CTR_OFFSET_BITS = 32,
1: - PERF_UPROBE_REF_CTR_OFFSET_SHIFT = 32,
1: + PERF_PROBE_CONFIG_IS_RETPROBE = 1,
1: + PERF_UPROBE_REF_CTR_OFFSET_BITS = 32,
1: + PERF_UPROBE_REF_CTR_OFFSET_SHIFT = 32,
1: };
1:
1: enum {
1: - IF_ACT_NONE = 4294967295,
1: - IF_ACT_FILTER = 0,
1: - IF_ACT_START = 1,
1: - IF_ACT_STOP = 2,
1: - IF_SRC_FILE = 3,
1: - IF_SRC_KERNEL = 4,
1: - IF_SRC_FILEADDR = 5,
1: - IF_SRC_KERNELADDR = 6,
1: + IF_ACT_NONE = 4294967295,
1: + IF_ACT_FILTER = 0,
1: + IF_ACT_START = 1,
1: + IF_ACT_STOP = 2,
1: + IF_SRC_FILE = 3,
1: + IF_SRC_KERNEL = 4,
1: + IF_SRC_FILEADDR = 5,
1: + IF_SRC_KERNELADDR = 6,
1: };
1:
1: enum {
1: - IF_STATE_ACTION = 0,
1: - IF_STATE_SOURCE = 1,
1: - IF_STATE_END = 2,
1: + IF_STATE_ACTION = 0,
1: + IF_STATE_SOURCE = 1,
1: + IF_STATE_END = 2,
1: };
1:
1: struct perf_aux_event {
1: - struct perf_event_header header;
1: - u32 pid;
1: - u32 tid;
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: };
1:
1: struct perf_aux_event___2 {
1: - struct perf_event_header header;
1: - u64 offset;
1: - u64 size;
1: - u64 flags;
1: + struct perf_event_header header;
1: + u64 offset;
1: + u64 size;
1: + u64 flags;
1: };
1:
1: struct callchain_cpus_entries {
1: - struct callback_head callback_head;
1: - struct perf_callchain_entry *cpu_entries[0];
1: + struct callback_head callback_head;
1: + struct perf_callchain_entry *cpu_entries[0];
1: };
1:
1: struct bp_cpuinfo {
1: - unsigned int cpu_pinned;
1: - unsigned int *tsk_pinned;
1: - unsigned int flexible;
1: + unsigned int cpu_pinned;
1: + unsigned int *tsk_pinned;
1: + unsigned int flexible;
1: };
1:
1: struct bp_busy_slots {
1: - unsigned int pinned;
1: - unsigned int flexible;
1: + unsigned int pinned;
1: + unsigned int flexible;
1: };
1:
1: struct compact_control;
1:
1: struct capture_control {
1: - struct compact_control *cc;
1: - struct page *page;
1: + struct compact_control *cc;
1: + struct page *page;
1: };
1:
1: typedef u32 uprobe_opcode_t;
1:
1: struct uprobe {
1: - struct rb_node rb_node;
1: - refcount_t ref;
1: - struct rw_semaphore register_rwsem;
1: - struct rw_semaphore consumer_rwsem;
1: - struct list_head pending_list;
1: - struct uprobe_consumer *consumers;
1: - struct inode *inode;
1: - loff_t offset;
1: - loff_t ref_ctr_offset;
1: - long unsigned int flags;
1: - struct arch_uprobe arch;
1: + struct rb_node rb_node;
1: + refcount_t ref;
1: + struct rw_semaphore register_rwsem;
1: + struct rw_semaphore consumer_rwsem;
1: + struct list_head pending_list;
1: + struct uprobe_consumer *consumers;
1: + struct inode *inode;
1: + loff_t offset;
1: + loff_t ref_ctr_offset;
1: + long unsigned int flags;
1: + struct arch_uprobe arch;
1: };
1:
1: struct xol_area {
1: - wait_queue_head_t wq;
1: - atomic_t slot_count;
1: - long unsigned int *bitmap;
1: - struct vm_special_mapping xol_mapping;
1: - struct page *pages[2];
1: - long unsigned int vaddr;
1: + wait_queue_head_t wq;
1: + atomic_t slot_count;
1: + long unsigned int *bitmap;
1: + struct vm_special_mapping xol_mapping;
1: + struct page *pages[2];
1: + long unsigned int vaddr;
1: };
1:
1: typedef long unsigned int vm_flags_t;
1:
1: struct page_vma_mapped_walk {
1: - struct page *page;
1: - struct vm_area_struct *vma;
1: - long unsigned int address;
1: - pmd_t *pmd;
1: - pte_t *pte;
1: - spinlock_t *ptl;
1: - unsigned int flags;
1: + struct page *page;
1: + struct vm_area_struct *vma;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + unsigned int flags;
1: };
1:
1: struct compact_control {
1: - struct list_head freepages;
1: - struct list_head migratepages;
1: - unsigned int nr_freepages;
1: - unsigned int nr_migratepages;
1: - long unsigned int free_pfn;
1: - long unsigned int migrate_pfn;
1: - long unsigned int fast_start_pfn;
1: - struct zone *zone;
1: - long unsigned int total_migrate_scanned;
1: - long unsigned int total_free_scanned;
1: - short unsigned int fast_search_fail;
1: - short int search_order;
1: - const gfp_t gfp_mask;
1: - int order;
1: - int migratetype;
1: - const unsigned int alloc_flags;
1: - const int highest_zoneidx;
1: - enum migrate_mode mode;
1: - bool ignore_skip_hint;
1: - bool no_set_skip_hint;
1: - bool ignore_block_suitable;
1: - bool direct_compaction;
1: - bool proactive_compaction;
1: - bool whole_zone;
1: - bool contended;
1: - bool rescan;
1: - bool alloc_contig;
1: + struct list_head freepages;
1: + struct list_head migratepages;
1: + unsigned int nr_freepages;
1: + unsigned int nr_migratepages;
1: + long unsigned int free_pfn;
1: + long unsigned int migrate_pfn;
1: + long unsigned int fast_start_pfn;
1: + struct zone *zone;
1: + long unsigned int total_migrate_scanned;
1: + long unsigned int total_free_scanned;
1: + short unsigned int fast_search_fail;
1: + short int search_order;
1: + const gfp_t gfp_mask;
1: + int order;
1: + int migratetype;
1: + const unsigned int alloc_flags;
1: + const int highest_zoneidx;
1: + enum migrate_mode mode;
1: + bool ignore_skip_hint;
1: + bool no_set_skip_hint;
1: + bool ignore_block_suitable;
1: + bool direct_compaction;
1: + bool proactive_compaction;
1: + bool whole_zone;
1: + bool contended;
1: + bool rescan;
1: + bool alloc_contig;
1: };
1:
1: struct delayed_uprobe {
1: - struct list_head list;
1: - struct uprobe *uprobe;
1: - struct mm_struct *mm;
1: + struct list_head list;
1: + struct uprobe *uprobe;
1: + struct mm_struct *mm;
1: };
1:
1: struct map_info {
1: - struct map_info *next;
1: - struct mm_struct *mm;
1: - long unsigned int vaddr;
1: + struct map_info *next;
1: + struct mm_struct *mm;
1: + long unsigned int vaddr;
1: };
1:
1: struct parallel_data;
1:
1: struct padata_priv {
1: - struct list_head list;
1: - struct parallel_data *pd;
1: - int cb_cpu;
1: - unsigned int seq_nr;
1: - int info;
1: - void (*parallel)(struct padata_priv *);
1: - void (*serial)(struct padata_priv *);
1: + struct list_head list;
1: + struct parallel_data *pd;
1: + int cb_cpu;
1: + unsigned int seq_nr;
1: + int info;
1: + void (*parallel)(struct padata_priv *);
1: + void (*serial)(struct padata_priv *);
1: };
1:
1: struct padata_cpumask {
1: - cpumask_var_t pcpu;
1: - cpumask_var_t cbcpu;
1: + cpumask_var_t pcpu;
1: + cpumask_var_t cbcpu;
1: };
1:
1: struct padata_shell;
1: @@ -34531,140 +34943,141 @@ struct padata_list;
1: struct padata_serial_queue;
1:
1: struct parallel_data {
1: - struct padata_shell *ps;
1: - struct padata_list *reorder_list;
1: - struct padata_serial_queue *squeue;
1: - atomic_t refcnt;
1: - unsigned int seq_nr;
1: - unsigned int processed;
1: - int cpu;
1: - struct padata_cpumask cpumask;
1: - struct work_struct reorder_work;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct padata_shell *ps;
1: + struct padata_list *reorder_list;
1: + struct padata_serial_queue *squeue;
1: + atomic_t refcnt;
1: + unsigned int seq_nr;
1: + unsigned int processed;
1: + int cpu;
1: + struct padata_cpumask cpumask;
1: + struct work_struct reorder_work;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct padata_list {
1: - struct list_head list;
1: - spinlock_t lock;
1: + struct list_head list;
1: + spinlock_t lock;
1: };
1:
1: struct padata_serial_queue {
1: - struct padata_list serial;
1: - struct work_struct work;
1: - struct parallel_data *pd;
1: + struct padata_list serial;
1: + struct work_struct work;
1: + struct parallel_data *pd;
1: };
1:
1: struct padata_instance;
1:
1: struct padata_shell {
1: - struct padata_instance *pinst;
1: - struct parallel_data *pd;
1: - struct parallel_data *opd;
1: - struct list_head list;
1: + struct padata_instance *pinst;
1: + struct parallel_data *pd;
1: + struct parallel_data *opd;
1: + struct list_head list;
1: };
1:
1: struct padata_instance {
1: - struct hlist_node cpu_online_node;
1: - struct hlist_node cpu_dead_node;
1: - struct workqueue_struct *parallel_wq;
1: - struct workqueue_struct *serial_wq;
1: - struct list_head pslist;
1: - struct padata_cpumask cpumask;
1: - struct kobject kobj;
1: - struct mutex lock;
1: - u8 flags;
1: + struct hlist_node cpu_online_node;
1: + struct hlist_node cpu_dead_node;
1: + struct workqueue_struct *parallel_wq;
1: + struct workqueue_struct *serial_wq;
1: + struct list_head pslist;
1: + struct padata_cpumask cpumask;
1: + struct kobject kobj;
1: + struct mutex lock;
1: + u8 flags;
1: };
1:
1: struct padata_mt_job {
1: - void (*thread_fn)(long unsigned int, long unsigned int, void *);
1: - void *fn_arg;
1: - long unsigned int start;
1: - long unsigned int size;
1: - long unsigned int align;
1: - long unsigned int min_chunk;
1: - int max_threads;
1: + void (*thread_fn)(long unsigned int, long unsigned int, void *);
1: + void *fn_arg;
1: + long unsigned int start;
1: + long unsigned int size;
1: + long unsigned int align;
1: + long unsigned int min_chunk;
1: + int max_threads;
1: };
1:
1: struct padata_work {
1: - struct work_struct pw_work;
1: - struct list_head pw_list;
1: - void *pw_data;
1: + struct work_struct pw_work;
1: + struct list_head pw_list;
1: + void *pw_data;
1: };
1:
1: struct padata_mt_job_state {
1: - spinlock_t lock;
1: - struct completion completion;
1: - struct padata_mt_job *job;
1: - int nworks;
1: - int nworks_fini;
1: - long unsigned int chunk_size;
1: + spinlock_t lock;
1: + struct completion completion;
1: + struct padata_mt_job *job;
1: + int nworks;
1: + int nworks_fini;
1: + long unsigned int chunk_size;
1: };
1:
1: struct padata_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct padata_instance *, struct attribute *, char *);
1: - ssize_t (*store)(struct padata_instance *, struct attribute *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct padata_instance *, struct attribute *, char *);
1: + ssize_t (*store)(struct padata_instance *, struct attribute *, const char *,
1: + size_t);
1: };
1:
1: struct static_key_mod {
1: - struct static_key_mod *next;
1: - struct jump_entry *entries;
1: - struct module *mod;
1: + struct static_key_mod *next;
1: + struct jump_entry *entries;
1: + struct module *mod;
1: };
1:
1: struct static_key_deferred {
1: - struct static_key key;
1: - long unsigned int timeout;
1: - struct delayed_work work;
1: + struct static_key key;
1: + long unsigned int timeout;
1: + struct delayed_work work;
1: };
1:
1: enum rseq_cpu_id_state {
1: - RSEQ_CPU_ID_UNINITIALIZED = 4294967295,
1: - RSEQ_CPU_ID_REGISTRATION_FAILED = 4294967294,
1: + RSEQ_CPU_ID_UNINITIALIZED = 4294967295,
1: + RSEQ_CPU_ID_REGISTRATION_FAILED = 4294967294,
1: };
1:
1: enum rseq_flags {
1: - RSEQ_FLAG_UNREGISTER = 1,
1: + RSEQ_FLAG_UNREGISTER = 1,
1: };
1:
1: enum rseq_cs_flags {
1: - RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT = 1,
1: - RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2,
1: - RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE = 4,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE = 4,
1: };
1:
1: struct rseq_cs {
1: - __u32 version;
1: - __u32 flags;
1: - __u64 start_ip;
1: - __u64 post_commit_offset;
1: - __u64 abort_ip;
1: + __u32 version;
1: + __u32 flags;
1: + __u64 start_ip;
1: + __u64 post_commit_offset;
1: + __u64 abort_ip;
1: };
1:
1: struct trace_event_raw_rseq_update {
1: - struct trace_entry ent;
1: - s32 cpu_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + s32 cpu_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rseq_ip_fixup {
1: - struct trace_entry ent;
1: - long unsigned int regs_ip;
1: - long unsigned int start_ip;
1: - long unsigned int post_commit_offset;
1: - long unsigned int abort_ip;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int regs_ip;
1: + long unsigned int start_ip;
1: + long unsigned int post_commit_offset;
1: + long unsigned int abort_ip;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_rseq_update {};
1: @@ -34673,95 +35086,97 @@ struct trace_event_data_offsets_rseq_ip_fixup {};
1:
1: typedef void (*btf_trace_rseq_update)(void *, struct task_struct *);
1:
1: -typedef void (*btf_trace_rseq_ip_fixup)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_rseq_ip_fixup)(void *, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + long unsigned int);
1:
1: struct watch;
1:
1: struct watch_list {
1: - struct callback_head rcu;
1: - struct hlist_head watchers;
1: - void (*release_watch)(struct watch *);
1: - spinlock_t lock;
1: + struct callback_head rcu;
1: + struct hlist_head watchers;
1: + void (*release_watch)(struct watch *);
1: + spinlock_t lock;
1: };
1:
1: enum watch_notification_type {
1: - WATCH_TYPE_META = 0,
1: - WATCH_TYPE_KEY_NOTIFY = 1,
1: - WATCH_TYPE__NR = 2,
1: + WATCH_TYPE_META = 0,
1: + WATCH_TYPE_KEY_NOTIFY = 1,
1: + WATCH_TYPE__NR = 2,
1: };
1:
1: enum watch_meta_notification_subtype {
1: - WATCH_META_REMOVAL_NOTIFICATION = 0,
1: - WATCH_META_LOSS_NOTIFICATION = 1,
1: + WATCH_META_REMOVAL_NOTIFICATION = 0,
1: + WATCH_META_LOSS_NOTIFICATION = 1,
1: };
1:
1: struct watch_notification {
1: - __u32 type: 24;
1: - __u32 subtype: 8;
1: - __u32 info;
1: + __u32 type : 24;
1: + __u32 subtype : 8;
1: + __u32 info;
1: };
1:
1: struct watch_notification_type_filter {
1: - __u32 type;
1: - __u32 info_filter;
1: - __u32 info_mask;
1: - __u32 subtype_filter[8];
1: + __u32 type;
1: + __u32 info_filter;
1: + __u32 info_mask;
1: + __u32 subtype_filter[8];
1: };
1:
1: struct watch_notification_filter {
1: - __u32 nr_filters;
1: - __u32 __reserved;
1: - struct watch_notification_type_filter filters[0];
1: + __u32 nr_filters;
1: + __u32 __reserved;
1: + struct watch_notification_type_filter filters[0];
1: };
1:
1: struct watch_notification_removal {
1: - struct watch_notification watch;
1: - __u64 id;
1: + struct watch_notification watch;
1: + __u64 id;
1: };
1:
1: struct watch_type_filter {
1: - enum watch_notification_type type;
1: - __u32 subtype_filter[1];
1: - __u32 info_filter;
1: - __u32 info_mask;
1: + enum watch_notification_type type;
1: + __u32 subtype_filter[1];
1: + __u32 info_filter;
1: + __u32 info_mask;
1: };
1:
1: struct watch_filter {
1: - union {
1: - struct callback_head rcu;
1: - long unsigned int type_filter[2];
1: - };
1: - u32 nr_filters;
1: - struct watch_type_filter filters[0];
1: + union {
1: + struct callback_head rcu;
1: + long unsigned int type_filter[2];
1: + };
1: + u32 nr_filters;
1: + struct watch_type_filter filters[0];
1: };
1:
1: struct watch_queue {
1: - struct callback_head rcu;
1: - struct watch_filter *filter;
1: - struct pipe_inode_info *pipe;
1: - struct hlist_head watches;
1: - struct page **notes;
1: - long unsigned int *notes_bitmap;
1: - struct kref usage;
1: - spinlock_t lock;
1: - unsigned int nr_notes;
1: - unsigned int nr_pages;
1: - bool defunct;
1: + struct callback_head rcu;
1: + struct watch_filter *filter;
1: + struct pipe_inode_info *pipe;
1: + struct hlist_head watches;
1: + struct page **notes;
1: + long unsigned int *notes_bitmap;
1: + struct kref usage;
1: + spinlock_t lock;
1: + unsigned int nr_notes;
1: + unsigned int nr_pages;
1: + bool defunct;
1: };
1:
1: struct watch {
1: - union {
1: - struct callback_head rcu;
1: - u32 info_id;
1: - };
1: - struct watch_queue *queue;
1: - struct hlist_node queue_node;
1: - struct watch_list *watch_list;
1: - struct hlist_node list_node;
1: - const struct cred *cred;
1: - void *private;
1: - u64 id;
1: - struct kref usage;
1: + union {
1: + struct callback_head rcu;
1: + u32 info_id;
1: + };
1: + struct watch_queue *queue;
1: + struct hlist_node queue_node;
1: + struct watch_list *watch_list;
1: + struct hlist_node list_node;
1: + const struct cred *cred;
1: + void *private;
1: + u64 id;
1: + struct kref usage;
1: };
1:
1: struct pkcs7_message;
1: @@ -34769,89 +35184,89 @@ struct pkcs7_message;
1: typedef int __kernel_rwf_t;
1:
1: enum positive_aop_returns {
1: - AOP_WRITEPAGE_ACTIVATE = 524288,
1: - AOP_TRUNCATED_PAGE = 524289,
1: + AOP_WRITEPAGE_ACTIVATE = 524288,
1: + AOP_TRUNCATED_PAGE = 524289,
1: };
1:
1: struct vm_event_state {
1: - long unsigned int event[95];
1: + long unsigned int event[95];
1: };
1:
1: enum iter_type {
1: - ITER_IOVEC = 4,
1: - ITER_KVEC = 8,
1: - ITER_BVEC = 16,
1: - ITER_PIPE = 32,
1: - ITER_DISCARD = 64,
1: + ITER_IOVEC = 4,
1: + ITER_KVEC = 8,
1: + ITER_BVEC = 16,
1: + ITER_PIPE = 32,
1: + ITER_DISCARD = 64,
1: };
1:
1: enum mapping_flags {
1: - AS_EIO = 0,
1: - AS_ENOSPC = 1,
1: - AS_MM_ALL_LOCKS = 2,
1: - AS_UNEVICTABLE = 3,
1: - AS_EXITING = 4,
1: - AS_NO_WRITEBACK_TAGS = 5,
1: - AS_THP_SUPPORT = 6,
1: + AS_EIO = 0,
1: + AS_ENOSPC = 1,
1: + AS_MM_ALL_LOCKS = 2,
1: + AS_UNEVICTABLE = 3,
1: + AS_EXITING = 4,
1: + AS_NO_WRITEBACK_TAGS = 5,
1: + AS_THP_SUPPORT = 6,
1: };
1:
1: struct wait_page_key {
1: - struct page *page;
1: - int bit_nr;
1: - int page_match;
1: + struct page *page;
1: + int bit_nr;
1: + int page_match;
1: };
1:
1: struct pagevec {
1: - unsigned char nr;
1: - bool percpu_pvec_drained;
1: - struct page *pages[15];
1: + unsigned char nr;
1: + bool percpu_pvec_drained;
1: + struct page *pages[15];
1: };
1:
1: struct fid {
1: - union {
1: - struct {
1: - u32 ino;
1: - u32 gen;
1: - u32 parent_ino;
1: - u32 parent_gen;
1: - } i32;
1: - struct {
1: - u32 block;
1: - u16 partref;
1: - u16 parent_partref;
1: - u32 generation;
1: - u32 parent_block;
1: - u32 parent_generation;
1: - } udf;
1: - __u32 raw[0];
1: - };
1: + union {
1: + struct {
1: + u32 ino;
1: + u32 gen;
1: + u32 parent_ino;
1: + u32 parent_gen;
1: + } i32;
1: + struct {
1: + u32 block;
1: + u16 partref;
1: + u16 parent_partref;
1: + u32 generation;
1: + u32 parent_block;
1: + u32 parent_generation;
1: + } udf;
1: + __u32 raw[0];
1: + };
1: };
1:
1: struct trace_event_raw_mm_filemap_op_page_cache {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - long unsigned int i_ino;
1: - long unsigned int index;
1: - dev_t s_dev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + long unsigned int i_ino;
1: + long unsigned int index;
1: + dev_t s_dev;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_filemap_set_wb_err {
1: - struct trace_entry ent;
1: - long unsigned int i_ino;
1: - dev_t s_dev;
1: - errseq_t errseq;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t errseq;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_file_check_and_advance_wb_err {
1: - struct trace_entry ent;
1: - struct file *file;
1: - long unsigned int i_ino;
1: - dev_t s_dev;
1: - errseq_t old;
1: - errseq_t new;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct file *file;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t old;
1: + errseq_t new;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_filemap_op_page_cache {};
1: @@ -34860,24 +35275,27 @@ struct trace_event_data_offsets_filemap_set_wb_err {};
1:
1: struct trace_event_data_offsets_file_check_and_advance_wb_err {};
1:
1: -typedef void (*btf_trace_mm_filemap_delete_from_page_cache)(void *, struct page *);
1: +typedef void (*btf_trace_mm_filemap_delete_from_page_cache)(void *,
1: + struct page *);
1:
1: typedef void (*btf_trace_mm_filemap_add_to_page_cache)(void *, struct page *);
1:
1: -typedef void (*btf_trace_filemap_set_wb_err)(void *, struct address_space *, errseq_t);
1: +typedef void (*btf_trace_filemap_set_wb_err)(void *, struct address_space *,
1: + errseq_t);
1:
1: -typedef void (*btf_trace_file_check_and_advance_wb_err)(void *, struct file *, errseq_t);
1: +typedef void (*btf_trace_file_check_and_advance_wb_err)(void *, struct file *,
1: + errseq_t);
1:
1: enum behavior {
1: - EXCLUSIVE = 0,
1: - SHARED = 1,
1: - DROP = 2,
1: + EXCLUSIVE = 0,
1: + SHARED = 1,
1: + DROP = 2,
1: };
1:
1: struct reciprocal_value {
1: - u32 m;
1: - u8 sh1;
1: - u8 sh2;
1: + u32 m;
1: + u8 sh1;
1: + u8 sh2;
1: };
1:
1: struct array_cache;
1: @@ -34885,183 +35303,183 @@ struct array_cache;
1: struct kmem_cache_node;
1:
1: struct kmem_cache {
1: - struct array_cache *cpu_cache;
1: - unsigned int batchcount;
1: - unsigned int limit;
1: - unsigned int shared;
1: - unsigned int size;
1: - struct reciprocal_value reciprocal_buffer_size;
1: - slab_flags_t flags;
1: - unsigned int num;
1: - unsigned int gfporder;
1: - gfp_t allocflags;
1: - size_t colour;
1: - unsigned int colour_off;
1: - struct kmem_cache *freelist_cache;
1: - unsigned int freelist_size;
1: - void (*ctor)(void *);
1: - const char *name;
1: - struct list_head list;
1: - int refcount;
1: - int object_size;
1: - int align;
1: - unsigned int useroffset;
1: - unsigned int usersize;
1: - struct kmem_cache_node *node[128];
1: + struct array_cache *cpu_cache;
1: + unsigned int batchcount;
1: + unsigned int limit;
1: + unsigned int shared;
1: + unsigned int size;
1: + struct reciprocal_value reciprocal_buffer_size;
1: + slab_flags_t flags;
1: + unsigned int num;
1: + unsigned int gfporder;
1: + gfp_t allocflags;
1: + size_t colour;
1: + unsigned int colour_off;
1: + struct kmem_cache *freelist_cache;
1: + unsigned int freelist_size;
1: + void (*ctor)(void *);
1: + const char *name;
1: + struct list_head list;
1: + int refcount;
1: + int object_size;
1: + int align;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct kmem_cache_node *node[128];
1: };
1:
1: struct alien_cache;
1:
1: struct kmem_cache_node {
1: - spinlock_t list_lock;
1: - struct list_head slabs_partial;
1: - struct list_head slabs_full;
1: - struct list_head slabs_free;
1: - long unsigned int total_slabs;
1: - long unsigned int free_slabs;
1: - long unsigned int free_objects;
1: - unsigned int free_limit;
1: - unsigned int colour_next;
1: - struct array_cache *shared;
1: - struct alien_cache **alien;
1: - long unsigned int next_reap;
1: - int free_touched;
1: + spinlock_t list_lock;
1: + struct list_head slabs_partial;
1: + struct list_head slabs_full;
1: + struct list_head slabs_free;
1: + long unsigned int total_slabs;
1: + long unsigned int free_slabs;
1: + long unsigned int free_objects;
1: + unsigned int free_limit;
1: + unsigned int colour_next;
1: + struct array_cache *shared;
1: + struct alien_cache **alien;
1: + long unsigned int next_reap;
1: + int free_touched;
1: };
1:
1: enum oom_constraint {
1: - CONSTRAINT_NONE = 0,
1: - CONSTRAINT_CPUSET = 1,
1: - CONSTRAINT_MEMORY_POLICY = 2,
1: - CONSTRAINT_MEMCG = 3,
1: + CONSTRAINT_NONE = 0,
1: + CONSTRAINT_CPUSET = 1,
1: + CONSTRAINT_MEMORY_POLICY = 2,
1: + CONSTRAINT_MEMCG = 3,
1: };
1:
1: struct oom_control {
1: - struct zonelist *zonelist;
1: - nodemask_t *nodemask;
1: - struct mem_cgroup *memcg;
1: - const gfp_t gfp_mask;
1: - const int order;
1: - long unsigned int totalpages;
1: - struct task_struct *chosen;
1: - long int chosen_points;
1: - enum oom_constraint constraint;
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *memcg;
1: + const gfp_t gfp_mask;
1: + const int order;
1: + long unsigned int totalpages;
1: + struct task_struct *chosen;
1: + long int chosen_points;
1: + enum oom_constraint constraint;
1: };
1:
1: struct mmu_table_batch {
1: - struct callback_head rcu;
1: - unsigned int nr;
1: - void *tables[0];
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + void *tables[0];
1: };
1:
1: struct mmu_gather_batch {
1: - struct mmu_gather_batch *next;
1: - unsigned int nr;
1: - unsigned int max;
1: - struct page *pages[0];
1: + struct mmu_gather_batch *next;
1: + unsigned int nr;
1: + unsigned int max;
1: + struct page *pages[0];
1: };
1:
1: struct mmu_gather {
1: - struct mm_struct *mm;
1: - struct mmu_table_batch *batch;
1: - long unsigned int start;
1: - long unsigned int end;
1: - unsigned int fullmm: 1;
1: - unsigned int need_flush_all: 1;
1: - unsigned int freed_tables: 1;
1: - unsigned int cleared_ptes: 1;
1: - unsigned int cleared_pmds: 1;
1: - unsigned int cleared_puds: 1;
1: - unsigned int cleared_p4ds: 1;
1: - unsigned int vma_exec: 1;
1: - unsigned int vma_huge: 1;
1: - unsigned int batch_count;
1: - struct mmu_gather_batch *active;
1: - struct mmu_gather_batch local;
1: - struct page *__pages[8];
1: + struct mm_struct *mm;
1: + struct mmu_table_batch *batch;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int fullmm : 1;
1: + unsigned int need_flush_all : 1;
1: + unsigned int freed_tables : 1;
1: + unsigned int cleared_ptes : 1;
1: + unsigned int cleared_pmds : 1;
1: + unsigned int cleared_puds : 1;
1: + unsigned int cleared_p4ds : 1;
1: + unsigned int vma_exec : 1;
1: + unsigned int vma_huge : 1;
1: + unsigned int batch_count;
1: + struct mmu_gather_batch *active;
1: + struct mmu_gather_batch local;
1: + struct page *__pages[8];
1: };
1:
1: enum compact_priority {
1: - COMPACT_PRIO_SYNC_FULL = 0,
1: - MIN_COMPACT_PRIORITY = 0,
1: - COMPACT_PRIO_SYNC_LIGHT = 1,
1: - MIN_COMPACT_COSTLY_PRIORITY = 1,
1: - DEF_COMPACT_PRIORITY = 1,
1: - COMPACT_PRIO_ASYNC = 2,
1: - INIT_COMPACT_PRIORITY = 2,
1: + COMPACT_PRIO_SYNC_FULL = 0,
1: + MIN_COMPACT_PRIORITY = 0,
1: + COMPACT_PRIO_SYNC_LIGHT = 1,
1: + MIN_COMPACT_COSTLY_PRIORITY = 1,
1: + DEF_COMPACT_PRIORITY = 1,
1: + COMPACT_PRIO_ASYNC = 2,
1: + INIT_COMPACT_PRIORITY = 2,
1: };
1:
1: enum compact_result {
1: - COMPACT_NOT_SUITABLE_ZONE = 0,
1: - COMPACT_SKIPPED = 1,
1: - COMPACT_DEFERRED = 2,
1: - COMPACT_NO_SUITABLE_PAGE = 3,
1: - COMPACT_CONTINUE = 4,
1: - COMPACT_COMPLETE = 5,
1: - COMPACT_PARTIAL_SKIPPED = 6,
1: - COMPACT_CONTENDED = 7,
1: - COMPACT_SUCCESS = 8,
1: + COMPACT_NOT_SUITABLE_ZONE = 0,
1: + COMPACT_SKIPPED = 1,
1: + COMPACT_DEFERRED = 2,
1: + COMPACT_NO_SUITABLE_PAGE = 3,
1: + COMPACT_CONTINUE = 4,
1: + COMPACT_COMPLETE = 5,
1: + COMPACT_PARTIAL_SKIPPED = 6,
1: + COMPACT_CONTENDED = 7,
1: + COMPACT_SUCCESS = 8,
1: };
1:
1: struct trace_event_raw_oom_score_adj_update {
1: - struct trace_entry ent;
1: - pid_t pid;
1: - char comm[16];
1: - short int oom_score_adj;
1: - char __data[0];
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_reclaim_retry_zone {
1: - struct trace_entry ent;
1: - int node;
1: - int zone_idx;
1: - int order;
1: - long unsigned int reclaimable;
1: - long unsigned int available;
1: - long unsigned int min_wmark;
1: - int no_progress_loops;
1: - bool wmark_check;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int node;
1: + int zone_idx;
1: + int order;
1: + long unsigned int reclaimable;
1: + long unsigned int available;
1: + long unsigned int min_wmark;
1: + int no_progress_loops;
1: + bool wmark_check;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mark_victim {
1: - struct trace_entry ent;
1: - int pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wake_reaper {
1: - struct trace_entry ent;
1: - int pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_start_task_reaping {
1: - struct trace_entry ent;
1: - int pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_finish_task_reaping {
1: - struct trace_entry ent;
1: - int pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_skip_task_reaping {
1: - struct trace_entry ent;
1: - int pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_compact_retry {
1: - struct trace_entry ent;
1: - int order;
1: - int priority;
1: - int result;
1: - int retries;
1: - int max_retries;
1: - bool ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int order;
1: + int priority;
1: + int result;
1: + int retries;
1: + int max_retries;
1: + bool ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_oom_score_adj_update {};
1: @@ -35082,7 +35500,10 @@ struct trace_event_data_offsets_compact_retry {};
1:
1: typedef void (*btf_trace_oom_score_adj_update)(void *, struct task_struct *);
1:
1: -typedef void (*btf_trace_reclaim_retry_zone)(void *, struct zoneref *, int, long unsigned int, long unsigned int, long unsigned int, int, bool);
1: +typedef void (*btf_trace_reclaim_retry_zone)(void *, struct zoneref *, int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int, int, bool);
1:
1: typedef void (*btf_trace_mark_victim)(void *, int);
1:
1: @@ -35094,69 +35515,71 @@ typedef void (*btf_trace_finish_task_reaping)(void *, int);
1:
1: typedef void (*btf_trace_skip_task_reaping)(void *, int);
1:
1: -typedef void (*btf_trace_compact_retry)(void *, int, enum compact_priority, enum compact_result, int, int, bool);
1: +typedef void (*btf_trace_compact_retry)(void *, int, enum compact_priority,
1: + enum compact_result, int, int, bool);
1:
1: enum wb_congested_state {
1: - WB_async_congested = 0,
1: - WB_sync_congested = 1,
1: + WB_async_congested = 0,
1: + WB_sync_congested = 1,
1: };
1:
1: enum {
1: - XA_CHECK_SCHED = 4096,
1: + XA_CHECK_SCHED = 4096,
1: };
1:
1: enum wb_state {
1: - WB_registered = 0,
1: - WB_writeback_running = 1,
1: - WB_has_dirty_io = 2,
1: - WB_start_all = 3,
1: + WB_registered = 0,
1: + WB_writeback_running = 1,
1: + WB_has_dirty_io = 2,
1: + WB_start_all = 3,
1: };
1:
1: enum {
1: - BLK_RW_ASYNC = 0,
1: - BLK_RW_SYNC = 1,
1: + BLK_RW_ASYNC = 0,
1: + BLK_RW_SYNC = 1,
1: };
1:
1: struct wb_lock_cookie {
1: - bool locked;
1: - long unsigned int flags;
1: + bool locked;
1: + long unsigned int flags;
1: };
1:
1: typedef int (*writepage_t)(struct page *, struct writeback_control *, void *);
1:
1: struct dirty_throttle_control {
1: - struct wb_domain *dom;
1: - struct dirty_throttle_control *gdtc;
1: - struct bdi_writeback *wb;
1: - struct fprop_local_percpu *wb_completions;
1: - long unsigned int avail;
1: - long unsigned int dirty;
1: - long unsigned int thresh;
1: - long unsigned int bg_thresh;
1: - long unsigned int wb_dirty;
1: - long unsigned int wb_thresh;
1: - long unsigned int wb_bg_thresh;
1: - long unsigned int pos_ratio;
1: + struct wb_domain *dom;
1: + struct dirty_throttle_control *gdtc;
1: + struct bdi_writeback *wb;
1: + struct fprop_local_percpu *wb_completions;
1: + long unsigned int avail;
1: + long unsigned int dirty;
1: + long unsigned int thresh;
1: + long unsigned int bg_thresh;
1: + long unsigned int wb_dirty;
1: + long unsigned int wb_thresh;
1: + long unsigned int wb_bg_thresh;
1: + long unsigned int pos_ratio;
1: };
1:
1: typedef void compound_page_dtor(struct page *);
1:
1: -typedef struct {} local_lock_t;
1: +typedef struct {
1: +} local_lock_t;
1:
1: struct trace_event_raw_mm_lru_insertion {
1: - struct trace_entry ent;
1: - struct page *page;
1: - long unsigned int pfn;
1: - int lru;
1: - long unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + int lru;
1: + long unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_lru_activate {
1: - struct trace_entry ent;
1: - struct page *page;
1: - long unsigned int pfn;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_lru_insertion {};
1: @@ -35168,184 +35591,184 @@ typedef void (*btf_trace_mm_lru_insertion)(void *, struct page *, int);
1: typedef void (*btf_trace_mm_lru_activate)(void *, struct page *);
1:
1: struct lru_rotate {
1: - local_lock_t lock;
1: - struct pagevec pvec;
1: + local_lock_t lock;
1: + struct pagevec pvec;
1: };
1:
1: struct lru_pvecs {
1: - local_lock_t lock;
1: - struct pagevec lru_add;
1: - struct pagevec lru_deactivate_file;
1: - struct pagevec lru_deactivate;
1: - struct pagevec lru_lazyfree;
1: - struct pagevec activate_page;
1: + local_lock_t lock;
1: + struct pagevec lru_add;
1: + struct pagevec lru_deactivate_file;
1: + struct pagevec lru_deactivate;
1: + struct pagevec lru_lazyfree;
1: + struct pagevec activate_page;
1: };
1:
1: enum lruvec_flags {
1: - LRUVEC_CONGESTED = 0,
1: + LRUVEC_CONGESTED = 0,
1: };
1:
1: enum pgdat_flags {
1: - PGDAT_DIRTY = 0,
1: - PGDAT_WRITEBACK = 1,
1: - PGDAT_RECLAIM_LOCKED = 2,
1: + PGDAT_DIRTY = 0,
1: + PGDAT_WRITEBACK = 1,
1: + PGDAT_RECLAIM_LOCKED = 2,
1: };
1:
1: struct reclaim_stat {
1: - unsigned int nr_dirty;
1: - unsigned int nr_unqueued_dirty;
1: - unsigned int nr_congested;
1: - unsigned int nr_writeback;
1: - unsigned int nr_immediate;
1: - unsigned int nr_pageout;
1: - unsigned int nr_activate[2];
1: - unsigned int nr_ref_keep;
1: - unsigned int nr_unmap_fail;
1: - unsigned int nr_lazyfree_fail;
1: + unsigned int nr_dirty;
1: + unsigned int nr_unqueued_dirty;
1: + unsigned int nr_congested;
1: + unsigned int nr_writeback;
1: + unsigned int nr_immediate;
1: + unsigned int nr_pageout;
1: + unsigned int nr_activate[2];
1: + unsigned int nr_ref_keep;
1: + unsigned int nr_unmap_fail;
1: + unsigned int nr_lazyfree_fail;
1: };
1:
1: enum ttu_flags {
1: - TTU_MIGRATION = 1,
1: - TTU_MUNLOCK = 2,
1: - TTU_SPLIT_HUGE_PMD = 4,
1: - TTU_IGNORE_MLOCK = 8,
1: - TTU_IGNORE_HWPOISON = 32,
1: - TTU_BATCH_FLUSH = 64,
1: - TTU_RMAP_LOCKED = 128,
1: - TTU_SPLIT_FREEZE = 256,
1: + TTU_MIGRATION = 1,
1: + TTU_MUNLOCK = 2,
1: + TTU_SPLIT_HUGE_PMD = 4,
1: + TTU_IGNORE_MLOCK = 8,
1: + TTU_IGNORE_HWPOISON = 32,
1: + TTU_BATCH_FLUSH = 64,
1: + TTU_RMAP_LOCKED = 128,
1: + TTU_SPLIT_FREEZE = 256,
1: };
1:
1: struct trace_event_raw_mm_vmscan_kswapd_sleep {
1: - struct trace_entry ent;
1: - int nid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_kswapd_wake {
1: - struct trace_entry ent;
1: - int nid;
1: - int zid;
1: - int order;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_wakeup_kswapd {
1: - struct trace_entry ent;
1: - int nid;
1: - int zid;
1: - int order;
1: - gfp_t gfp_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_direct_reclaim_begin_template {
1: - struct trace_entry ent;
1: - int order;
1: - gfp_t gfp_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_direct_reclaim_end_template {
1: - struct trace_entry ent;
1: - long unsigned int nr_reclaimed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int nr_reclaimed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_shrink_slab_start {
1: - struct trace_entry ent;
1: - struct shrinker *shr;
1: - void *shrink;
1: - int nid;
1: - long int nr_objects_to_shrink;
1: - gfp_t gfp_flags;
1: - long unsigned int cache_items;
1: - long long unsigned int delta;
1: - long unsigned int total_scan;
1: - int priority;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + void *shrink;
1: + int nid;
1: + long int nr_objects_to_shrink;
1: + gfp_t gfp_flags;
1: + long unsigned int cache_items;
1: + long long unsigned int delta;
1: + long unsigned int total_scan;
1: + int priority;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_shrink_slab_end {
1: - struct trace_entry ent;
1: - struct shrinker *shr;
1: - int nid;
1: - void *shrink;
1: - long int unused_scan;
1: - long int new_scan;
1: - int retval;
1: - long int total_scan;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + int nid;
1: + void *shrink;
1: + long int unused_scan;
1: + long int new_scan;
1: + int retval;
1: + long int total_scan;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_lru_isolate {
1: - struct trace_entry ent;
1: - int highest_zoneidx;
1: - int order;
1: - long unsigned int nr_requested;
1: - long unsigned int nr_scanned;
1: - long unsigned int nr_skipped;
1: - long unsigned int nr_taken;
1: - isolate_mode_t isolate_mode;
1: - int lru;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int highest_zoneidx;
1: + int order;
1: + long unsigned int nr_requested;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_skipped;
1: + long unsigned int nr_taken;
1: + isolate_mode_t isolate_mode;
1: + int lru;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_writepage {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - int reclaim_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int reclaim_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_lru_shrink_inactive {
1: - struct trace_entry ent;
1: - int nid;
1: - long unsigned int nr_scanned;
1: - long unsigned int nr_reclaimed;
1: - long unsigned int nr_dirty;
1: - long unsigned int nr_writeback;
1: - long unsigned int nr_congested;
1: - long unsigned int nr_immediate;
1: - unsigned int nr_activate0;
1: - unsigned int nr_activate1;
1: - long unsigned int nr_ref_keep;
1: - long unsigned int nr_unmap_fail;
1: - int priority;
1: - int reclaim_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int nr_congested;
1: + long unsigned int nr_immediate;
1: + unsigned int nr_activate0;
1: + unsigned int nr_activate1;
1: + long unsigned int nr_ref_keep;
1: + long unsigned int nr_unmap_fail;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_lru_shrink_active {
1: - struct trace_entry ent;
1: - int nid;
1: - long unsigned int nr_taken;
1: - long unsigned int nr_active;
1: - long unsigned int nr_deactivated;
1: - long unsigned int nr_referenced;
1: - int priority;
1: - int reclaim_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_taken;
1: + long unsigned int nr_active;
1: + long unsigned int nr_deactivated;
1: + long unsigned int nr_referenced;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_inactive_list_is_low {
1: - struct trace_entry ent;
1: - int nid;
1: - int reclaim_idx;
1: - long unsigned int total_inactive;
1: - long unsigned int inactive;
1: - long unsigned int total_active;
1: - long unsigned int active;
1: - long unsigned int ratio;
1: - int reclaim_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + int reclaim_idx;
1: + long unsigned int total_inactive;
1: + long unsigned int inactive;
1: + long unsigned int total_active;
1: + long unsigned int active;
1: + long unsigned int ratio;
1: + int reclaim_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_vmscan_node_reclaim_begin {
1: - struct trace_entry ent;
1: - int nid;
1: - int order;
1: - gfp_t gfp_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_vmscan_kswapd_sleep {};
1: @@ -35384,324 +35807,343 @@ typedef void (*btf_trace_mm_vmscan_direct_reclaim_begin)(void *, int, gfp_t);
1:
1: typedef void (*btf_trace_mm_vmscan_memcg_reclaim_begin)(void *, int, gfp_t);
1:
1: -typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_begin)(void *, int, gfp_t);
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_begin)(void *, int,
1: + gfp_t);
1:
1: -typedef void (*btf_trace_mm_vmscan_direct_reclaim_end)(void *, long unsigned int);
1: +typedef void (*btf_trace_mm_vmscan_direct_reclaim_end)(void *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_mm_vmscan_memcg_reclaim_end)(void *, long unsigned int);
1: +typedef void (*btf_trace_mm_vmscan_memcg_reclaim_end)(void *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_end)(void *, long unsigned int);
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_end)(
1: + void *, long unsigned int);
1:
1: -typedef void (*btf_trace_mm_shrink_slab_start)(void *, struct shrinker *, struct shrink_control *, long int, long unsigned int, long long unsigned int, long unsigned int, int);
1: +typedef void (*btf_trace_mm_shrink_slab_start)(void *, struct shrinker *,
1: + struct shrink_control *,
1: + long int, long unsigned int,
1: + long long unsigned int,
1: + long unsigned int, int);
1:
1: -typedef void (*btf_trace_mm_shrink_slab_end)(void *, struct shrinker *, int, int, long int, long int, long int);
1: +typedef void (*btf_trace_mm_shrink_slab_end)(void *, struct shrinker *, int,
1: + int, long int, long int, long int);
1:
1: -typedef void (*btf_trace_mm_vmscan_lru_isolate)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, isolate_mode_t, int);
1: +typedef void (*btf_trace_mm_vmscan_lru_isolate)(
1: + void *, int, int, long unsigned int, long unsigned int, long unsigned int,
1: + long unsigned int, isolate_mode_t, int);
1:
1: typedef void (*btf_trace_mm_vmscan_writepage)(void *, struct page *);
1:
1: -typedef void (*btf_trace_mm_vmscan_lru_shrink_inactive)(void *, int, long unsigned int, long unsigned int, struct reclaim_stat *, int, int);
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_inactive)(void *, int,
1: + long unsigned int,
1: + long unsigned int,
1: + struct reclaim_stat *,
1: + int, int);
1:
1: -typedef void (*btf_trace_mm_vmscan_lru_shrink_active)(void *, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int, int);
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_active)(
1: + void *, int, long unsigned int, long unsigned int, long unsigned int,
1: + long unsigned int, int, int);
1:
1: -typedef void (*btf_trace_mm_vmscan_inactive_list_is_low)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int);
1: +typedef void (*btf_trace_mm_vmscan_inactive_list_is_low)(
1: + void *, int, int, long unsigned int, long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int, int);
1:
1: typedef void (*btf_trace_mm_vmscan_node_reclaim_begin)(void *, int, int, gfp_t);
1:
1: typedef void (*btf_trace_mm_vmscan_node_reclaim_end)(void *, long unsigned int);
1:
1: struct scan_control {
1: - long unsigned int nr_to_reclaim;
1: - nodemask_t *nodemask;
1: - struct mem_cgroup *target_mem_cgroup;
1: - long unsigned int anon_cost;
1: - long unsigned int file_cost;
1: - unsigned int may_deactivate: 2;
1: - unsigned int force_deactivate: 1;
1: - unsigned int skipped_deactivate: 1;
1: - unsigned int may_writepage: 1;
1: - unsigned int may_unmap: 1;
1: - unsigned int may_swap: 1;
1: - unsigned int memcg_low_reclaim: 1;
1: - unsigned int memcg_low_skipped: 1;
1: - unsigned int hibernation_mode: 1;
1: - unsigned int compaction_ready: 1;
1: - unsigned int cache_trim_mode: 1;
1: - unsigned int file_is_tiny: 1;
1: - s8 order;
1: - s8 priority;
1: - s8 reclaim_idx;
1: - gfp_t gfp_mask;
1: - long unsigned int nr_scanned;
1: - long unsigned int nr_reclaimed;
1: - struct {
1: - unsigned int dirty;
1: - unsigned int unqueued_dirty;
1: - unsigned int congested;
1: - unsigned int writeback;
1: - unsigned int immediate;
1: - unsigned int file_taken;
1: - unsigned int taken;
1: - } nr;
1: - struct reclaim_state reclaim_state;
1: + long unsigned int nr_to_reclaim;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *target_mem_cgroup;
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + unsigned int may_deactivate : 2;
1: + unsigned int force_deactivate : 1;
1: + unsigned int skipped_deactivate : 1;
1: + unsigned int may_writepage : 1;
1: + unsigned int may_unmap : 1;
1: + unsigned int may_swap : 1;
1: + unsigned int memcg_low_reclaim : 1;
1: + unsigned int memcg_low_skipped : 1;
1: + unsigned int hibernation_mode : 1;
1: + unsigned int compaction_ready : 1;
1: + unsigned int cache_trim_mode : 1;
1: + unsigned int file_is_tiny : 1;
1: + s8 order;
1: + s8 priority;
1: + s8 reclaim_idx;
1: + gfp_t gfp_mask;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + struct {
1: + unsigned int dirty;
1: + unsigned int unqueued_dirty;
1: + unsigned int congested;
1: + unsigned int writeback;
1: + unsigned int immediate;
1: + unsigned int file_taken;
1: + unsigned int taken;
1: + } nr;
1: + struct reclaim_state reclaim_state;
1: };
1:
1: typedef enum {
1: - PAGE_KEEP = 0,
1: - PAGE_ACTIVATE = 1,
1: - PAGE_SUCCESS = 2,
1: - PAGE_CLEAN = 3,
1: + PAGE_KEEP = 0,
1: + PAGE_ACTIVATE = 1,
1: + PAGE_SUCCESS = 2,
1: + PAGE_CLEAN = 3,
1: } pageout_t;
1:
1: enum page_references {
1: - PAGEREF_RECLAIM = 0,
1: - PAGEREF_RECLAIM_CLEAN = 1,
1: - PAGEREF_KEEP = 2,
1: - PAGEREF_ACTIVATE = 3,
1: + PAGEREF_RECLAIM = 0,
1: + PAGEREF_RECLAIM_CLEAN = 1,
1: + PAGEREF_KEEP = 2,
1: + PAGEREF_ACTIVATE = 3,
1: };
1:
1: enum scan_balance {
1: - SCAN_EQUAL = 0,
1: - SCAN_FRACT = 1,
1: - SCAN_ANON = 2,
1: - SCAN_FILE = 3,
1: + SCAN_EQUAL = 0,
1: + SCAN_FRACT = 1,
1: + SCAN_ANON = 2,
1: + SCAN_FILE = 3,
1: };
1:
1: enum transparent_hugepage_flag {
1: - TRANSPARENT_HUGEPAGE_FLAG = 0,
1: - TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG = 1,
1: - TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG = 2,
1: - TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG = 3,
1: - TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG = 4,
1: - TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG = 5,
1: - TRANSPARENT_HUGEPAGE_DEFRAG_KHUGEPAGED_FLAG = 6,
1: - TRANSPARENT_HUGEPAGE_USE_ZERO_PAGE_FLAG = 7,
1: + TRANSPARENT_HUGEPAGE_FLAG = 0,
1: + TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG = 1,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG = 2,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG = 3,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG = 4,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG = 5,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KHUGEPAGED_FLAG = 6,
1: + TRANSPARENT_HUGEPAGE_USE_ZERO_PAGE_FLAG = 7,
1: };
1:
1: struct xattr {
1: - const char *name;
1: - void *value;
1: - size_t value_len;
1: + const char *name;
1: + void *value;
1: + size_t value_len;
1: };
1:
1: struct constant_table {
1: - const char *name;
1: - int value;
1: + const char *name;
1: + int value;
1: };
1:
1: enum {
1: - MPOL_DEFAULT = 0,
1: - MPOL_PREFERRED = 1,
1: - MPOL_BIND = 2,
1: - MPOL_INTERLEAVE = 3,
1: - MPOL_LOCAL = 4,
1: - MPOL_MAX = 5,
1: + MPOL_DEFAULT = 0,
1: + MPOL_PREFERRED = 1,
1: + MPOL_BIND = 2,
1: + MPOL_INTERLEAVE = 3,
1: + MPOL_LOCAL = 4,
1: + MPOL_MAX = 5,
1: };
1:
1: struct shared_policy {
1: - struct rb_root root;
1: - rwlock_t lock;
1: + struct rb_root root;
1: + rwlock_t lock;
1: };
1:
1: struct simple_xattrs {
1: - struct list_head head;
1: - spinlock_t lock;
1: + struct list_head head;
1: + spinlock_t lock;
1: };
1:
1: struct simple_xattr {
1: - struct list_head list;
1: - char *name;
1: - size_t size;
1: - char value[0];
1: + struct list_head list;
1: + char *name;
1: + size_t size;
1: + char value[0];
1: };
1:
1: enum fid_type {
1: - FILEID_ROOT = 0,
1: - FILEID_INO32_GEN = 1,
1: - FILEID_INO32_GEN_PARENT = 2,
1: - FILEID_BTRFS_WITHOUT_PARENT = 77,
1: - FILEID_BTRFS_WITH_PARENT = 78,
1: - FILEID_BTRFS_WITH_PARENT_ROOT = 79,
1: - FILEID_UDF_WITHOUT_PARENT = 81,
1: - FILEID_UDF_WITH_PARENT = 82,
1: - FILEID_NILFS_WITHOUT_PARENT = 97,
1: - FILEID_NILFS_WITH_PARENT = 98,
1: - FILEID_FAT_WITHOUT_PARENT = 113,
1: - FILEID_FAT_WITH_PARENT = 114,
1: - FILEID_LUSTRE = 151,
1: - FILEID_KERNFS = 254,
1: - FILEID_INVALID = 255,
1: + FILEID_ROOT = 0,
1: + FILEID_INO32_GEN = 1,
1: + FILEID_INO32_GEN_PARENT = 2,
1: + FILEID_BTRFS_WITHOUT_PARENT = 77,
1: + FILEID_BTRFS_WITH_PARENT = 78,
1: + FILEID_BTRFS_WITH_PARENT_ROOT = 79,
1: + FILEID_UDF_WITHOUT_PARENT = 81,
1: + FILEID_UDF_WITH_PARENT = 82,
1: + FILEID_NILFS_WITHOUT_PARENT = 97,
1: + FILEID_NILFS_WITH_PARENT = 98,
1: + FILEID_FAT_WITHOUT_PARENT = 113,
1: + FILEID_FAT_WITH_PARENT = 114,
1: + FILEID_LUSTRE = 151,
1: + FILEID_KERNFS = 254,
1: + FILEID_INVALID = 255,
1: };
1:
1: struct shmem_inode_info {
1: - spinlock_t lock;
1: - unsigned int seals;
1: - long unsigned int flags;
1: - long unsigned int alloced;
1: - long unsigned int swapped;
1: - struct list_head shrinklist;
1: - struct list_head swaplist;
1: - struct shared_policy policy;
1: - struct simple_xattrs xattrs;
1: - atomic_t stop_eviction;
1: - struct inode vfs_inode;
1: + spinlock_t lock;
1: + unsigned int seals;
1: + long unsigned int flags;
1: + long unsigned int alloced;
1: + long unsigned int swapped;
1: + struct list_head shrinklist;
1: + struct list_head swaplist;
1: + struct shared_policy policy;
1: + struct simple_xattrs xattrs;
1: + atomic_t stop_eviction;
1: + struct inode vfs_inode;
1: };
1:
1: struct shmem_sb_info {
1: - long unsigned int max_blocks;
1: - struct percpu_counter used_blocks;
1: - long unsigned int max_inodes;
1: - long unsigned int free_inodes;
1: - spinlock_t stat_lock;
1: - umode_t mode;
1: - unsigned char huge;
1: - kuid_t uid;
1: - kgid_t gid;
1: - bool full_inums;
1: - ino_t next_ino;
1: - ino_t *ino_batch;
1: - struct mempolicy *mpol;
1: - spinlock_t shrinklist_lock;
1: - struct list_head shrinklist;
1: - long unsigned int shrinklist_len;
1: + long unsigned int max_blocks;
1: + struct percpu_counter used_blocks;
1: + long unsigned int max_inodes;
1: + long unsigned int free_inodes;
1: + spinlock_t stat_lock;
1: + umode_t mode;
1: + unsigned char huge;
1: + kuid_t uid;
1: + kgid_t gid;
1: + bool full_inums;
1: + ino_t next_ino;
1: + ino_t *ino_batch;
1: + struct mempolicy *mpol;
1: + spinlock_t shrinklist_lock;
1: + struct list_head shrinklist;
1: + long unsigned int shrinklist_len;
1: };
1:
1: enum sgp_type {
1: - SGP_READ = 0,
1: - SGP_CACHE = 1,
1: - SGP_NOHUGE = 2,
1: - SGP_HUGE = 3,
1: - SGP_WRITE = 4,
1: - SGP_FALLOC = 5,
1: + SGP_READ = 0,
1: + SGP_CACHE = 1,
1: + SGP_NOHUGE = 2,
1: + SGP_HUGE = 3,
1: + SGP_WRITE = 4,
1: + SGP_FALLOC = 5,
1: };
1:
1: struct shmem_falloc {
1: - wait_queue_head_t *waitq;
1: - long unsigned int start;
1: - long unsigned int next;
1: - long unsigned int nr_falloced;
1: - long unsigned int nr_unswapped;
1: + wait_queue_head_t *waitq;
1: + long unsigned int start;
1: + long unsigned int next;
1: + long unsigned int nr_falloced;
1: + long unsigned int nr_unswapped;
1: };
1:
1: struct shmem_options {
1: - long long unsigned int blocks;
1: - long long unsigned int inodes;
1: - struct mempolicy *mpol;
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: - bool full_inums;
1: - int huge;
1: - int seen;
1: + long long unsigned int blocks;
1: + long long unsigned int inodes;
1: + struct mempolicy *mpol;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + bool full_inums;
1: + int huge;
1: + int seen;
1: };
1:
1: enum shmem_param {
1: - Opt_gid = 0,
1: - Opt_huge = 1,
1: - Opt_mode = 2,
1: - Opt_mpol = 3,
1: - Opt_nr_blocks = 4,
1: - Opt_nr_inodes = 5,
1: - Opt_size = 6,
1: - Opt_uid = 7,
1: - Opt_inode32 = 8,
1: - Opt_inode64 = 9,
1: + Opt_gid = 0,
1: + Opt_huge = 1,
1: + Opt_mode = 2,
1: + Opt_mpol = 3,
1: + Opt_nr_blocks = 4,
1: + Opt_nr_inodes = 5,
1: + Opt_size = 6,
1: + Opt_uid = 7,
1: + Opt_inode32 = 8,
1: + Opt_inode64 = 9,
1: };
1:
1: enum writeback_stat_item {
1: - NR_DIRTY_THRESHOLD = 0,
1: - NR_DIRTY_BG_THRESHOLD = 1,
1: - NR_VM_WRITEBACK_STAT_ITEMS = 2,
1: + NR_DIRTY_THRESHOLD = 0,
1: + NR_DIRTY_BG_THRESHOLD = 1,
1: + NR_VM_WRITEBACK_STAT_ITEMS = 2,
1: };
1:
1: struct contig_page_info {
1: - long unsigned int free_pages;
1: - long unsigned int free_blocks_total;
1: - long unsigned int free_blocks_suitable;
1: + long unsigned int free_pages;
1: + long unsigned int free_blocks_total;
1: + long unsigned int free_blocks_suitable;
1: };
1:
1: struct radix_tree_iter {
1: - long unsigned int index;
1: - long unsigned int next_index;
1: - long unsigned int tags;
1: - struct xa_node *node;
1: + long unsigned int index;
1: + long unsigned int next_index;
1: + long unsigned int tags;
1: + struct xa_node *node;
1: };
1:
1: enum {
1: - RADIX_TREE_ITER_TAG_MASK = 15,
1: - RADIX_TREE_ITER_TAGGED = 16,
1: - RADIX_TREE_ITER_CONTIG = 32,
1: + RADIX_TREE_ITER_TAG_MASK = 15,
1: + RADIX_TREE_ITER_TAGGED = 16,
1: + RADIX_TREE_ITER_CONTIG = 32,
1: };
1:
1: enum mminit_level {
1: - MMINIT_WARNING = 0,
1: - MMINIT_VERIFY = 1,
1: - MMINIT_TRACE = 2,
1: + MMINIT_WARNING = 0,
1: + MMINIT_VERIFY = 1,
1: + MMINIT_TRACE = 2,
1: };
1:
1: struct pcpu_group_info {
1: - int nr_units;
1: - long unsigned int base_offset;
1: - unsigned int *cpu_map;
1: + int nr_units;
1: + long unsigned int base_offset;
1: + unsigned int *cpu_map;
1: };
1:
1: struct pcpu_alloc_info {
1: - size_t static_size;
1: - size_t reserved_size;
1: - size_t dyn_size;
1: - size_t unit_size;
1: - size_t atom_size;
1: - size_t alloc_size;
1: - size_t __ai_size;
1: - int nr_groups;
1: - struct pcpu_group_info groups[0];
1: + size_t static_size;
1: + size_t reserved_size;
1: + size_t dyn_size;
1: + size_t unit_size;
1: + size_t atom_size;
1: + size_t alloc_size;
1: + size_t __ai_size;
1: + int nr_groups;
1: + struct pcpu_group_info groups[0];
1: };
1:
1: -typedef void * (*pcpu_fc_alloc_fn_t)(unsigned int, size_t, size_t);
1: +typedef void *(*pcpu_fc_alloc_fn_t)(unsigned int, size_t, size_t);
1:
1: typedef void (*pcpu_fc_free_fn_t)(void *, size_t);
1:
1: typedef int pcpu_fc_cpu_distance_fn_t(unsigned int, unsigned int);
1:
1: struct trace_event_raw_percpu_alloc_percpu {
1: - struct trace_entry ent;
1: - bool reserved;
1: - bool is_atomic;
1: - size_t size;
1: - size_t align;
1: - void *base_addr;
1: - int off;
1: - void *ptr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_percpu_free_percpu {
1: - struct trace_entry ent;
1: - void *base_addr;
1: - int off;
1: - void *ptr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_percpu_alloc_percpu_fail {
1: - struct trace_entry ent;
1: - bool reserved;
1: - bool is_atomic;
1: - size_t size;
1: - size_t align;
1: - char __data[0];
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_percpu_create_chunk {
1: - struct trace_entry ent;
1: - void *base_addr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_percpu_destroy_chunk {
1: - struct trace_entry ent;
1: - void *base_addr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_percpu_alloc_percpu {};
1: @@ -35714,137 +36156,139 @@ struct trace_event_data_offsets_percpu_create_chunk {};
1:
1: struct trace_event_data_offsets_percpu_destroy_chunk {};
1:
1: -typedef void (*btf_trace_percpu_alloc_percpu)(void *, bool, bool, size_t, size_t, void *, int, void *);
1: +typedef void (*btf_trace_percpu_alloc_percpu)(void *, bool, bool, size_t,
1: + size_t, void *, int, void *);
1:
1: typedef void (*btf_trace_percpu_free_percpu)(void *, void *, int, void *);
1:
1: -typedef void (*btf_trace_percpu_alloc_percpu_fail)(void *, bool, bool, size_t, size_t);
1: +typedef void (*btf_trace_percpu_alloc_percpu_fail)(void *, bool, bool, size_t,
1: + size_t);
1:
1: typedef void (*btf_trace_percpu_create_chunk)(void *, void *);
1:
1: typedef void (*btf_trace_percpu_destroy_chunk)(void *, void *);
1:
1: enum pcpu_chunk_type {
1: - PCPU_CHUNK_ROOT = 0,
1: - PCPU_CHUNK_MEMCG = 1,
1: - PCPU_NR_CHUNK_TYPES = 2,
1: - PCPU_FAIL_ALLOC = 2,
1: + PCPU_CHUNK_ROOT = 0,
1: + PCPU_CHUNK_MEMCG = 1,
1: + PCPU_NR_CHUNK_TYPES = 2,
1: + PCPU_FAIL_ALLOC = 2,
1: };
1:
1: struct pcpu_block_md {
1: - int scan_hint;
1: - int scan_hint_start;
1: - int contig_hint;
1: - int contig_hint_start;
1: - int left_free;
1: - int right_free;
1: - int first_free;
1: - int nr_bits;
1: + int scan_hint;
1: + int scan_hint_start;
1: + int contig_hint;
1: + int contig_hint_start;
1: + int left_free;
1: + int right_free;
1: + int first_free;
1: + int nr_bits;
1: };
1:
1: struct pcpu_chunk {
1: - struct list_head list;
1: - int free_bytes;
1: - struct pcpu_block_md chunk_md;
1: - void *base_addr;
1: - long unsigned int *alloc_map;
1: - long unsigned int *bound_map;
1: - struct pcpu_block_md *md_blocks;
1: - void *data;
1: - bool immutable;
1: - int start_offset;
1: - int end_offset;
1: - struct obj_cgroup **obj_cgroups;
1: - int nr_pages;
1: - int nr_populated;
1: - int nr_empty_pop_pages;
1: - long unsigned int populated[0];
1: + struct list_head list;
1: + int free_bytes;
1: + struct pcpu_block_md chunk_md;
1: + void *base_addr;
1: + long unsigned int *alloc_map;
1: + long unsigned int *bound_map;
1: + struct pcpu_block_md *md_blocks;
1: + void *data;
1: + bool immutable;
1: + int start_offset;
1: + int end_offset;
1: + struct obj_cgroup **obj_cgroups;
1: + int nr_pages;
1: + int nr_populated;
1: + int nr_empty_pop_pages;
1: + long unsigned int populated[0];
1: };
1:
1: struct trace_event_raw_kmem_alloc {
1: - struct trace_entry ent;
1: - long unsigned int call_site;
1: - const void *ptr;
1: - size_t bytes_req;
1: - size_t bytes_alloc;
1: - gfp_t gfp_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kmem_alloc_node {
1: - struct trace_entry ent;
1: - long unsigned int call_site;
1: - const void *ptr;
1: - size_t bytes_req;
1: - size_t bytes_alloc;
1: - gfp_t gfp_flags;
1: - int node;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + int node;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kmem_free {
1: - struct trace_entry ent;
1: - long unsigned int call_site;
1: - const void *ptr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page_free {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - unsigned int order;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page_free_batched {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page_alloc {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - unsigned int order;
1: - gfp_t gfp_flags;
1: - int migratetype;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + gfp_t gfp_flags;
1: + int migratetype;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - unsigned int order;
1: - int migratetype;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page_pcpu_drain {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - unsigned int order;
1: - int migratetype;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_page_alloc_extfrag {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - int alloc_order;
1: - int fallback_order;
1: - int alloc_migratetype;
1: - int fallback_migratetype;
1: - int change_ownership;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int alloc_order;
1: + int fallback_order;
1: + int alloc_migratetype;
1: + int fallback_migratetype;
1: + int change_ownership;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rss_stat {
1: - struct trace_entry ent;
1: - unsigned int mm_id;
1: - unsigned int curr;
1: - int member;
1: - long int size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int mm_id;
1: + unsigned int curr;
1: + int member;
1: + long int size;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_kmem_alloc {};
1: @@ -35867,159 +36311,169 @@ struct trace_event_data_offsets_mm_page_alloc_extfrag {};
1:
1: struct trace_event_data_offsets_rss_stat {};
1:
1: -typedef void (*btf_trace_kmalloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +typedef void (*btf_trace_kmalloc)(void *, long unsigned int, const void *,
1: + size_t, size_t, gfp_t);
1:
1: -typedef void (*btf_trace_kmem_cache_alloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +typedef void (*btf_trace_kmem_cache_alloc)(void *, long unsigned int,
1: + const void *, size_t, size_t, gfp_t);
1:
1: -typedef void (*btf_trace_kmalloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +typedef void (*btf_trace_kmalloc_node)(void *, long unsigned int, const void *,
1: + size_t, size_t, gfp_t, int);
1:
1: -typedef void (*btf_trace_kmem_cache_alloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +typedef void (*btf_trace_kmem_cache_alloc_node)(void *, long unsigned int,
1: + const void *, size_t, size_t,
1: + gfp_t, int);
1:
1: typedef void (*btf_trace_kfree)(void *, long unsigned int, const void *);
1:
1: -typedef void (*btf_trace_kmem_cache_free)(void *, long unsigned int, const void *);
1: +typedef void (*btf_trace_kmem_cache_free)(void *, long unsigned int,
1: + const void *);
1:
1: typedef void (*btf_trace_mm_page_free)(void *, struct page *, unsigned int);
1:
1: typedef void (*btf_trace_mm_page_free_batched)(void *, struct page *);
1:
1: -typedef void (*btf_trace_mm_page_alloc)(void *, struct page *, unsigned int, gfp_t, int);
1: +typedef void (*btf_trace_mm_page_alloc)(void *, struct page *, unsigned int,
1: + gfp_t, int);
1:
1: -typedef void (*btf_trace_mm_page_alloc_zone_locked)(void *, struct page *, unsigned int, int);
1: +typedef void (*btf_trace_mm_page_alloc_zone_locked)(void *, struct page *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_mm_page_pcpu_drain)(void *, struct page *, unsigned int, int);
1: +typedef void (*btf_trace_mm_page_pcpu_drain)(void *, struct page *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_mm_page_alloc_extfrag)(void *, struct page *, int, int, int, int);
1: +typedef void (*btf_trace_mm_page_alloc_extfrag)(void *, struct page *, int, int,
1: + int, int);
1:
1: typedef void (*btf_trace_rss_stat)(void *, struct mm_struct *, int, long int);
1:
1: enum slab_state {
1: - DOWN = 0,
1: - PARTIAL = 1,
1: - PARTIAL_NODE = 2,
1: - UP = 3,
1: - FULL = 4,
1: + DOWN = 0,
1: + PARTIAL = 1,
1: + PARTIAL_NODE = 2,
1: + UP = 3,
1: + FULL = 4,
1: };
1:
1: struct kmalloc_info_struct {
1: - const char *name[3];
1: - unsigned int size;
1: + const char *name[3];
1: + unsigned int size;
1: };
1:
1: struct slabinfo {
1: - long unsigned int active_objs;
1: - long unsigned int num_objs;
1: - long unsigned int active_slabs;
1: - long unsigned int num_slabs;
1: - long unsigned int shared_avail;
1: - unsigned int limit;
1: - unsigned int batchcount;
1: - unsigned int shared;
1: - unsigned int objects_per_slab;
1: - unsigned int cache_order;
1: + long unsigned int active_objs;
1: + long unsigned int num_objs;
1: + long unsigned int active_slabs;
1: + long unsigned int num_slabs;
1: + long unsigned int shared_avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int shared;
1: + unsigned int objects_per_slab;
1: + unsigned int cache_order;
1: };
1:
1: enum pageblock_bits {
1: - PB_migrate = 0,
1: - PB_migrate_end = 2,
1: - PB_migrate_skip = 3,
1: - NR_PAGEBLOCK_BITS = 4,
1: + PB_migrate = 0,
1: + PB_migrate_end = 2,
1: + PB_migrate_skip = 3,
1: + NR_PAGEBLOCK_BITS = 4,
1: };
1:
1: struct node___2 {
1: - struct device dev;
1: - struct list_head access_list;
1: - struct work_struct node_work;
1: - struct list_head cache_attrs;
1: - struct device *cache_dev;
1: + struct device dev;
1: + struct list_head access_list;
1: + struct work_struct node_work;
1: + struct list_head cache_attrs;
1: + struct device *cache_dev;
1: };
1:
1: struct alloc_context {
1: - struct zonelist *zonelist;
1: - nodemask_t *nodemask;
1: - struct zoneref *preferred_zoneref;
1: - int migratetype;
1: - enum zone_type highest_zoneidx;
1: - bool spread_dirty_pages;
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct zoneref *preferred_zoneref;
1: + int migratetype;
1: + enum zone_type highest_zoneidx;
1: + bool spread_dirty_pages;
1: };
1:
1: struct trace_event_raw_mm_compaction_isolate_template {
1: - struct trace_entry ent;
1: - long unsigned int start_pfn;
1: - long unsigned int end_pfn;
1: - long unsigned int nr_scanned;
1: - long unsigned int nr_taken;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_taken;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_migratepages {
1: - struct trace_entry ent;
1: - long unsigned int nr_migrated;
1: - long unsigned int nr_failed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int nr_migrated;
1: + long unsigned int nr_failed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_begin {
1: - struct trace_entry ent;
1: - long unsigned int zone_start;
1: - long unsigned int migrate_pfn;
1: - long unsigned int free_pfn;
1: - long unsigned int zone_end;
1: - bool sync;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_end {
1: - struct trace_entry ent;
1: - long unsigned int zone_start;
1: - long unsigned int migrate_pfn;
1: - long unsigned int free_pfn;
1: - long unsigned int zone_end;
1: - bool sync;
1: - int status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + int status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_try_to_compact_pages {
1: - struct trace_entry ent;
1: - int order;
1: - gfp_t gfp_mask;
1: - int prio;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_mask;
1: + int prio;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_suitable_template {
1: - struct trace_entry ent;
1: - int nid;
1: - enum zone_type idx;
1: - int order;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_defer_template {
1: - struct trace_entry ent;
1: - int nid;
1: - enum zone_type idx;
1: - int order;
1: - unsigned int considered;
1: - unsigned int defer_shift;
1: - int order_failed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + unsigned int considered;
1: + unsigned int defer_shift;
1: + int order_failed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_compaction_kcompactd_sleep {
1: - struct trace_entry ent;
1: - int nid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_kcompactd_wake_template {
1: - struct trace_entry ent;
1: - int nid;
1: - int order;
1: - enum zone_type highest_zoneidx;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + enum zone_type highest_zoneidx;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_compaction_isolate_template {};
1: @@ -36040,603 +36494,635 @@ struct trace_event_data_offsets_mm_compaction_kcompactd_sleep {};
1:
1: struct trace_event_data_offsets_kcompactd_wake_template {};
1:
1: -typedef void (*btf_trace_mm_compaction_isolate_migratepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_mm_compaction_isolate_migratepages)(void *,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_mm_compaction_isolate_freepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_mm_compaction_isolate_freepages)(void *,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_mm_compaction_migratepages)(void *, long unsigned int, int, struct list_head *);
1: +typedef void (*btf_trace_mm_compaction_migratepages)(void *, long unsigned int,
1: + int, struct list_head *);
1:
1: -typedef void (*btf_trace_mm_compaction_begin)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool);
1: +typedef void (*btf_trace_mm_compaction_begin)(void *, long unsigned int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int, bool);
1:
1: -typedef void (*btf_trace_mm_compaction_end)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool, int);
1: +typedef void (*btf_trace_mm_compaction_end)(void *, long unsigned int,
1: + long unsigned int,
1: + long unsigned int,
1: + long unsigned int, bool, int);
1:
1: -typedef void (*btf_trace_mm_compaction_try_to_compact_pages)(void *, int, gfp_t, int);
1: +typedef void (*btf_trace_mm_compaction_try_to_compact_pages)(void *, int, gfp_t,
1: + int);
1:
1: -typedef void (*btf_trace_mm_compaction_finished)(void *, struct zone *, int, int);
1: +typedef void (*btf_trace_mm_compaction_finished)(void *, struct zone *, int,
1: + int);
1:
1: -typedef void (*btf_trace_mm_compaction_suitable)(void *, struct zone *, int, int);
1: +typedef void (*btf_trace_mm_compaction_suitable)(void *, struct zone *, int,
1: + int);
1:
1: typedef void (*btf_trace_mm_compaction_deferred)(void *, struct zone *, int);
1:
1: -typedef void (*btf_trace_mm_compaction_defer_compaction)(void *, struct zone *, int);
1: +typedef void (*btf_trace_mm_compaction_defer_compaction)(void *, struct zone *,
1: + int);
1:
1: typedef void (*btf_trace_mm_compaction_defer_reset)(void *, struct zone *, int);
1:
1: typedef void (*btf_trace_mm_compaction_kcompactd_sleep)(void *, int);
1:
1: -typedef void (*btf_trace_mm_compaction_wakeup_kcompactd)(void *, int, int, enum zone_type);
1: +typedef void (*btf_trace_mm_compaction_wakeup_kcompactd)(void *, int, int,
1: + enum zone_type);
1:
1: -typedef void (*btf_trace_mm_compaction_kcompactd_wake)(void *, int, int, enum zone_type);
1: +typedef void (*btf_trace_mm_compaction_kcompactd_wake)(void *, int, int,
1: + enum zone_type);
1:
1: typedef enum {
1: - ISOLATE_ABORT = 0,
1: - ISOLATE_NONE = 1,
1: - ISOLATE_SUCCESS = 2,
1: + ISOLATE_ABORT = 0,
1: + ISOLATE_NONE = 1,
1: + ISOLATE_SUCCESS = 2,
1: } isolate_migrate_t;
1:
1: struct anon_vma_chain {
1: - struct vm_area_struct *vma;
1: - struct anon_vma *anon_vma;
1: - struct list_head same_vma;
1: - struct rb_node rb;
1: - long unsigned int rb_subtree_last;
1: + struct vm_area_struct *vma;
1: + struct anon_vma *anon_vma;
1: + struct list_head same_vma;
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: };
1:
1: struct rb_augment_callbacks {
1: - void (*propagate)(struct rb_node *, struct rb_node *);
1: - void (*copy)(struct rb_node *, struct rb_node *);
1: - void (*rotate)(struct rb_node *, struct rb_node *);
1: + void (*propagate)(struct rb_node *, struct rb_node *);
1: + void (*copy)(struct rb_node *, struct rb_node *);
1: + void (*rotate)(struct rb_node *, struct rb_node *);
1: };
1:
1: enum lru_status {
1: - LRU_REMOVED = 0,
1: - LRU_REMOVED_RETRY = 1,
1: - LRU_ROTATE = 2,
1: - LRU_SKIP = 3,
1: - LRU_RETRY = 4,
1: + LRU_REMOVED = 0,
1: + LRU_REMOVED_RETRY = 1,
1: + LRU_ROTATE = 2,
1: + LRU_SKIP = 3,
1: + LRU_RETRY = 4,
1: };
1:
1: -typedef enum lru_status (*list_lru_walk_cb)(struct list_head *, struct list_lru_one *, spinlock_t *, void *);
1: +typedef enum lru_status (*list_lru_walk_cb)(struct list_head *,
1: + struct list_lru_one *, spinlock_t *,
1: + void *);
1:
1: typedef struct {
1: - long unsigned int pd;
1: + long unsigned int pd;
1: } hugepd_t;
1:
1: struct migration_target_control {
1: - int nid;
1: - nodemask_t *nmask;
1: - gfp_t gfp_mask;
1: + int nid;
1: + nodemask_t *nmask;
1: + gfp_t gfp_mask;
1: };
1:
1: struct follow_page_context {
1: - struct dev_pagemap *pgmap;
1: - unsigned int page_mask;
1: + struct dev_pagemap *pgmap;
1: + unsigned int page_mask;
1: };
1:
1: typedef struct {
1: - u64 val;
1: + u64 val;
1: } pfn_t;
1:
1: typedef unsigned int pgtbl_mod_mask;
1:
1: struct zap_details {
1: - struct address_space *check_mapping;
1: - long unsigned int first_index;
1: - long unsigned int last_index;
1: + struct address_space *check_mapping;
1: + long unsigned int first_index;
1: + long unsigned int last_index;
1: };
1:
1: typedef int (*pte_fn_t)(pte_t *, long unsigned int, void *);
1:
1: enum {
1: - SWP_USED = 1,
1: - SWP_WRITEOK = 2,
1: - SWP_DISCARDABLE = 4,
1: - SWP_DISCARDING = 8,
1: - SWP_SOLIDSTATE = 16,
1: - SWP_CONTINUED = 32,
1: - SWP_BLKDEV = 64,
1: - SWP_ACTIVATED = 128,
1: - SWP_FS_OPS = 256,
1: - SWP_AREA_DISCARD = 512,
1: - SWP_PAGE_DISCARD = 1024,
1: - SWP_STABLE_WRITES = 2048,
1: - SWP_SYNCHRONOUS_IO = 4096,
1: - SWP_VALID = 8192,
1: - SWP_SCANNING = 16384,
1: + SWP_USED = 1,
1: + SWP_WRITEOK = 2,
1: + SWP_DISCARDABLE = 4,
1: + SWP_DISCARDING = 8,
1: + SWP_SOLIDSTATE = 16,
1: + SWP_CONTINUED = 32,
1: + SWP_BLKDEV = 64,
1: + SWP_ACTIVATED = 128,
1: + SWP_FS_OPS = 256,
1: + SWP_AREA_DISCARD = 512,
1: + SWP_PAGE_DISCARD = 1024,
1: + SWP_STABLE_WRITES = 2048,
1: + SWP_SYNCHRONOUS_IO = 4096,
1: + SWP_VALID = 8192,
1: + SWP_SCANNING = 16384,
1: };
1:
1: struct copy_subpage_arg {
1: - struct page *dst;
1: - struct page *src;
1: - struct vm_area_struct *vma;
1: + struct page *dst;
1: + struct page *src;
1: + struct vm_area_struct *vma;
1: };
1:
1: struct mm_walk;
1:
1: struct mm_walk_ops {
1: - int (*pgd_entry)(pgd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*p4d_entry)(p4d_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*pud_entry)(pud_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*pmd_entry)(pmd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*pte_entry)(pte_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*pte_hole)(long unsigned int, long unsigned int, int, struct mm_walk *);
1: - int (*hugetlb_entry)(pte_t *, long unsigned int, long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*test_walk)(long unsigned int, long unsigned int, struct mm_walk *);
1: - int (*pre_vma)(long unsigned int, long unsigned int, struct mm_walk *);
1: - void (*post_vma)(struct mm_walk *);
1: + int (*pgd_entry)(pgd_t *, long unsigned int, long unsigned int,
1: + struct mm_walk *);
1: + int (*p4d_entry)(p4d_t *, long unsigned int, long unsigned int,
1: + struct mm_walk *);
1: + int (*pud_entry)(pud_t *, long unsigned int, long unsigned int,
1: + struct mm_walk *);
1: + int (*pmd_entry)(pmd_t *, long unsigned int, long unsigned int,
1: + struct mm_walk *);
1: + int (*pte_entry)(pte_t *, long unsigned int, long unsigned int,
1: + struct mm_walk *);
1: + int (*pte_hole)(long unsigned int, long unsigned int, int, struct mm_walk *);
1: + int (*hugetlb_entry)(pte_t *, long unsigned int, long unsigned int,
1: + long unsigned int, struct mm_walk *);
1: + int (*test_walk)(long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pre_vma)(long unsigned int, long unsigned int, struct mm_walk *);
1: + void (*post_vma)(struct mm_walk *);
1: };
1:
1: enum page_walk_action {
1: - ACTION_SUBTREE = 0,
1: - ACTION_CONTINUE = 1,
1: - ACTION_AGAIN = 2,
1: + ACTION_SUBTREE = 0,
1: + ACTION_CONTINUE = 1,
1: + ACTION_AGAIN = 2,
1: };
1:
1: struct mm_walk {
1: - const struct mm_walk_ops *ops;
1: - struct mm_struct *mm;
1: - pgd_t *pgd;
1: - struct vm_area_struct *vma;
1: - enum page_walk_action action;
1: - bool no_vma;
1: - void *private;
1: + const struct mm_walk_ops *ops;
1: + struct mm_struct *mm;
1: + pgd_t *pgd;
1: + struct vm_area_struct *vma;
1: + enum page_walk_action action;
1: + bool no_vma;
1: + void *private;
1: };
1:
1: struct vm_unmapped_area_info {
1: - long unsigned int flags;
1: - long unsigned int length;
1: - long unsigned int low_limit;
1: - long unsigned int high_limit;
1: - long unsigned int align_mask;
1: - long unsigned int align_offset;
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: };
1:
1: enum {
1: - HUGETLB_SHMFS_INODE = 1,
1: - HUGETLB_ANONHUGE_INODE = 2,
1: + HUGETLB_SHMFS_INODE = 1,
1: + HUGETLB_ANONHUGE_INODE = 2,
1: };
1:
1: struct trace_event_raw_vm_unmapped_area {
1: - struct trace_entry ent;
1: - long unsigned int addr;
1: - long unsigned int total_vm;
1: - long unsigned int flags;
1: - long unsigned int length;
1: - long unsigned int low_limit;
1: - long unsigned int high_limit;
1: - long unsigned int align_mask;
1: - long unsigned int align_offset;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int total_vm;
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_vm_unmapped_area {};
1:
1: -typedef void (*btf_trace_vm_unmapped_area)(void *, long unsigned int, struct vm_unmapped_area_info *);
1: +typedef void (*btf_trace_vm_unmapped_area)(void *, long unsigned int,
1: + struct vm_unmapped_area_info *);
1:
1: struct rmap_walk_control {
1: - void *arg;
1: - bool (*rmap_one)(struct page *, struct vm_area_struct *, long unsigned int, void *);
1: - int (*done)(struct page *);
1: - struct anon_vma * (*anon_lock)(struct page *);
1: - bool (*invalid_vma)(struct vm_area_struct *, void *);
1: + void *arg;
1: + bool (*rmap_one)(struct page *, struct vm_area_struct *, long unsigned int,
1: + void *);
1: + int (*done)(struct page *);
1: + struct anon_vma *(*anon_lock)(struct page *);
1: + bool (*invalid_vma)(struct vm_area_struct *, void *);
1: };
1:
1: struct page_referenced_arg {
1: - int mapcount;
1: - int referenced;
1: - long unsigned int vm_flags;
1: - struct mem_cgroup *memcg;
1: + int mapcount;
1: + int referenced;
1: + long unsigned int vm_flags;
1: + struct mem_cgroup *memcg;
1: };
1:
1: struct vmap_area {
1: - long unsigned int va_start;
1: - long unsigned int va_end;
1: - struct rb_node rb_node;
1: - struct list_head list;
1: - union {
1: - long unsigned int subtree_max_size;
1: - struct vm_struct *vm;
1: - struct llist_node purge_list;
1: - };
1: + long unsigned int va_start;
1: + long unsigned int va_end;
1: + struct rb_node rb_node;
1: + struct list_head list;
1: + union {
1: + long unsigned int subtree_max_size;
1: + struct vm_struct *vm;
1: + struct llist_node purge_list;
1: + };
1: };
1:
1: struct vfree_deferred {
1: - struct llist_head list;
1: - struct work_struct wq;
1: + struct llist_head list;
1: + struct work_struct wq;
1: };
1:
1: enum fit_type {
1: - NOTHING_FIT = 0,
1: - FL_FIT_TYPE = 1,
1: - LE_FIT_TYPE = 2,
1: - RE_FIT_TYPE = 3,
1: - NE_FIT_TYPE = 4,
1: + NOTHING_FIT = 0,
1: + FL_FIT_TYPE = 1,
1: + LE_FIT_TYPE = 2,
1: + RE_FIT_TYPE = 3,
1: + NE_FIT_TYPE = 4,
1: };
1:
1: struct vmap_block_queue {
1: - spinlock_t lock;
1: - struct list_head free;
1: + spinlock_t lock;
1: + struct list_head free;
1: };
1:
1: struct vmap_block {
1: - spinlock_t lock;
1: - struct vmap_area *va;
1: - long unsigned int free;
1: - long unsigned int dirty;
1: - long unsigned int dirty_min;
1: - long unsigned int dirty_max;
1: - struct list_head free_list;
1: - struct callback_head callback_head;
1: - struct list_head purge;
1: + spinlock_t lock;
1: + struct vmap_area *va;
1: + long unsigned int free;
1: + long unsigned int dirty;
1: + long unsigned int dirty_min;
1: + long unsigned int dirty_max;
1: + struct list_head free_list;
1: + struct callback_head callback_head;
1: + struct list_head purge;
1: };
1:
1: struct page_frag_cache {
1: - void *va;
1: - __u16 offset;
1: - __u16 size;
1: - unsigned int pagecnt_bias;
1: - bool pfmemalloc;
1: + void *va;
1: + __u16 offset;
1: + __u16 size;
1: + unsigned int pagecnt_bias;
1: + bool pfmemalloc;
1: };
1:
1: enum zone_flags {
1: - ZONE_BOOSTED_WATERMARK = 0,
1: + ZONE_BOOSTED_WATERMARK = 0,
1: };
1:
1: struct mminit_pfnnid_cache {
1: - long unsigned int last_start;
1: - long unsigned int last_end;
1: - int last_nid;
1: + long unsigned int last_start;
1: + long unsigned int last_end;
1: + int last_nid;
1: };
1:
1: typedef int fpi_t;
1:
1: struct pcpu_drain {
1: - struct zone *zone;
1: - struct work_struct work;
1: + struct zone *zone;
1: + struct work_struct work;
1: };
1:
1: enum mf_flags {
1: - MF_COUNT_INCREASED = 1,
1: - MF_ACTION_REQUIRED = 2,
1: - MF_MUST_KILL = 4,
1: - MF_SOFT_OFFLINE = 8,
1: + MF_COUNT_INCREASED = 1,
1: + MF_ACTION_REQUIRED = 2,
1: + MF_MUST_KILL = 4,
1: + MF_SOFT_OFFLINE = 8,
1: };
1:
1: struct madvise_walk_private {
1: - struct mmu_gather *tlb;
1: - bool pageout;
1: + struct mmu_gather *tlb;
1: + bool pageout;
1: };
1:
1: struct vma_swap_readahead {
1: - short unsigned int win;
1: - short unsigned int offset;
1: - short unsigned int nr_pte;
1: - pte_t *ptes;
1: + short unsigned int win;
1: + short unsigned int offset;
1: + short unsigned int nr_pte;
1: + pte_t *ptes;
1: };
1:
1: union swap_header {
1: - struct {
1: - char reserved[4086];
1: - char magic[10];
1: - } magic;
1: - struct {
1: - char bootbits[1024];
1: - __u32 version;
1: - __u32 last_page;
1: - __u32 nr_badpages;
1: - unsigned char sws_uuid[16];
1: - unsigned char sws_volume[16];
1: - __u32 padding[117];
1: - __u32 badpages[1];
1: - } info;
1: + struct {
1: + char reserved[4086];
1: + char magic[10];
1: + } magic;
1: + struct {
1: + char bootbits[1024];
1: + __u32 version;
1: + __u32 last_page;
1: + __u32 nr_badpages;
1: + unsigned char sws_uuid[16];
1: + unsigned char sws_volume[16];
1: + __u32 padding[117];
1: + __u32 badpages[1];
1: + } info;
1: };
1:
1: struct swap_extent {
1: - struct rb_node rb_node;
1: - long unsigned int start_page;
1: - long unsigned int nr_pages;
1: - sector_t start_block;
1: + struct rb_node rb_node;
1: + long unsigned int start_page;
1: + long unsigned int nr_pages;
1: + sector_t start_block;
1: };
1:
1: struct swap_slots_cache {
1: - bool lock_initialized;
1: - struct mutex alloc_lock;
1: - swp_entry_t *slots;
1: - int nr;
1: - int cur;
1: - spinlock_t free_lock;
1: - swp_entry_t *slots_ret;
1: - int n_ret;
1: + bool lock_initialized;
1: + struct mutex alloc_lock;
1: + swp_entry_t *slots;
1: + int nr;
1: + int cur;
1: + spinlock_t free_lock;
1: + swp_entry_t *slots_ret;
1: + int n_ret;
1: };
1:
1: struct frontswap_ops {
1: - void (*init)(unsigned int);
1: - int (*store)(unsigned int, long unsigned int, struct page *);
1: - int (*load)(unsigned int, long unsigned int, struct page *);
1: - void (*invalidate_page)(unsigned int, long unsigned int);
1: - void (*invalidate_area)(unsigned int);
1: - struct frontswap_ops *next;
1: + void (*init)(unsigned int);
1: + int (*store)(unsigned int, long unsigned int, struct page *);
1: + int (*load)(unsigned int, long unsigned int, struct page *);
1: + void (*invalidate_page)(unsigned int, long unsigned int);
1: + void (*invalidate_area)(unsigned int);
1: + struct frontswap_ops *next;
1: };
1:
1: struct crypto_comp {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: struct zpool;
1:
1: struct zpool_ops {
1: - int (*evict)(struct zpool *, long unsigned int);
1: + int (*evict)(struct zpool *, long unsigned int);
1: };
1:
1: enum zpool_mapmode {
1: - ZPOOL_MM_RW = 0,
1: - ZPOOL_MM_RO = 1,
1: - ZPOOL_MM_WO = 2,
1: - ZPOOL_MM_DEFAULT = 0,
1: + ZPOOL_MM_RW = 0,
1: + ZPOOL_MM_RO = 1,
1: + ZPOOL_MM_WO = 2,
1: + ZPOOL_MM_DEFAULT = 0,
1: };
1:
1: struct zswap_pool {
1: - struct zpool *zpool;
1: - struct crypto_comp **tfm;
1: - struct kref kref;
1: - struct list_head list;
1: - struct work_struct release_work;
1: - struct work_struct shrink_work;
1: - struct hlist_node node;
1: - char tfm_name[128];
1: + struct zpool *zpool;
1: + struct crypto_comp **tfm;
1: + struct kref kref;
1: + struct list_head list;
1: + struct work_struct release_work;
1: + struct work_struct shrink_work;
1: + struct hlist_node node;
1: + char tfm_name[128];
1: };
1:
1: struct zswap_entry {
1: - struct rb_node rbnode;
1: - long unsigned int offset;
1: - int refcount;
1: - unsigned int length;
1: - struct zswap_pool *pool;
1: - union {
1: - long unsigned int handle;
1: - long unsigned int value;
1: - };
1: + struct rb_node rbnode;
1: + long unsigned int offset;
1: + int refcount;
1: + unsigned int length;
1: + struct zswap_pool *pool;
1: + union {
1: + long unsigned int handle;
1: + long unsigned int value;
1: + };
1: };
1:
1: struct zswap_header {
1: - swp_entry_t swpentry;
1: + swp_entry_t swpentry;
1: };
1:
1: struct zswap_tree {
1: - struct rb_root rbroot;
1: - spinlock_t lock;
1: + struct rb_root rbroot;
1: + spinlock_t lock;
1: };
1:
1: enum zswap_get_swap_ret {
1: - ZSWAP_SWAPCACHE_NEW = 0,
1: - ZSWAP_SWAPCACHE_EXIST = 1,
1: - ZSWAP_SWAPCACHE_FAIL = 2,
1: + ZSWAP_SWAPCACHE_NEW = 0,
1: + ZSWAP_SWAPCACHE_EXIST = 1,
1: + ZSWAP_SWAPCACHE_FAIL = 2,
1: };
1:
1: struct dma_pool {
1: - struct list_head page_list;
1: - spinlock_t lock;
1: - size_t size;
1: - struct device *dev;
1: - size_t allocation;
1: - size_t boundary;
1: - char name[32];
1: - struct list_head pools;
1: + struct list_head page_list;
1: + spinlock_t lock;
1: + size_t size;
1: + struct device *dev;
1: + size_t allocation;
1: + size_t boundary;
1: + char name[32];
1: + struct list_head pools;
1: };
1:
1: struct dma_page {
1: - struct list_head page_list;
1: - void *vaddr;
1: - dma_addr_t dma;
1: - unsigned int in_use;
1: - unsigned int offset;
1: + struct list_head page_list;
1: + void *vaddr;
1: + dma_addr_t dma;
1: + unsigned int in_use;
1: + unsigned int offset;
1: };
1:
1: enum string_size_units {
1: - STRING_UNITS_10 = 0,
1: - STRING_UNITS_2 = 1,
1: + STRING_UNITS_10 = 0,
1: + STRING_UNITS_2 = 1,
1: };
1:
1: struct resv_map {
1: - struct kref refs;
1: - spinlock_t lock;
1: - struct list_head regions;
1: - long int adds_in_progress;
1: - struct list_head region_cache;
1: - long int region_cache_count;
1: - struct page_counter *reservation_counter;
1: - long unsigned int pages_per_hpage;
1: - struct cgroup_subsys_state *css;
1: + struct kref refs;
1: + spinlock_t lock;
1: + struct list_head regions;
1: + long int adds_in_progress;
1: + struct list_head region_cache;
1: + long int region_cache_count;
1: + struct page_counter *reservation_counter;
1: + long unsigned int pages_per_hpage;
1: + struct cgroup_subsys_state *css;
1: };
1:
1: struct file_region {
1: - struct list_head link;
1: - long int from;
1: - long int to;
1: - struct page_counter *reservation_counter;
1: - struct cgroup_subsys_state *css;
1: + struct list_head link;
1: + long int from;
1: + long int to;
1: + struct page_counter *reservation_counter;
1: + struct cgroup_subsys_state *css;
1: };
1:
1: struct huge_bootmem_page {
1: - struct list_head list;
1: - struct hstate *hstate;
1: + struct list_head list;
1: + struct hstate *hstate;
1: };
1:
1: enum hugetlb_memory_event {
1: - HUGETLB_MAX = 0,
1: - HUGETLB_NR_MEMORY_EVENTS = 1,
1: + HUGETLB_MAX = 0,
1: + HUGETLB_NR_MEMORY_EVENTS = 1,
1: };
1:
1: struct hugetlb_cgroup {
1: - struct cgroup_subsys_state css;
1: - struct page_counter hugepage[4];
1: - struct page_counter rsvd_hugepage[4];
1: - atomic_long_t events[4];
1: - atomic_long_t events_local[4];
1: - struct cgroup_file events_file[4];
1: - struct cgroup_file events_local_file[4];
1: + struct cgroup_subsys_state css;
1: + struct page_counter hugepage[4];
1: + struct page_counter rsvd_hugepage[4];
1: + atomic_long_t events[4];
1: + atomic_long_t events_local[4];
1: + struct cgroup_file events_file[4];
1: + struct cgroup_file events_local_file[4];
1: };
1:
1: enum vma_resv_mode {
1: - VMA_NEEDS_RESV = 0,
1: - VMA_COMMIT_RESV = 1,
1: - VMA_END_RESV = 2,
1: - VMA_ADD_RESV = 3,
1: + VMA_NEEDS_RESV = 0,
1: + VMA_COMMIT_RESV = 1,
1: + VMA_END_RESV = 2,
1: + VMA_ADD_RESV = 3,
1: };
1:
1: struct node_hstate {
1: - struct kobject *hugepages_kobj;
1: - struct kobject *hstate_kobjs[4];
1: + struct kobject *hugepages_kobj;
1: + struct kobject *hstate_kobjs[4];
1: };
1:
1: struct nodemask_scratch {
1: - nodemask_t mask1;
1: - nodemask_t mask2;
1: + nodemask_t mask1;
1: + nodemask_t mask2;
1: };
1:
1: struct sp_node {
1: - struct rb_node nd;
1: - long unsigned int start;
1: - long unsigned int end;
1: - struct mempolicy *policy;
1: + struct rb_node nd;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct mempolicy *policy;
1: };
1:
1: struct mempolicy_operations {
1: - int (*create)(struct mempolicy *, const nodemask_t *);
1: - void (*rebind)(struct mempolicy *, const nodemask_t *);
1: + int (*create)(struct mempolicy *, const nodemask_t *);
1: + void (*rebind)(struct mempolicy *, const nodemask_t *);
1: };
1:
1: struct queue_pages {
1: - struct list_head *pagelist;
1: - long unsigned int flags;
1: - nodemask_t *nmask;
1: - long unsigned int start;
1: - long unsigned int end;
1: - struct vm_area_struct *first;
1: + struct list_head *pagelist;
1: + long unsigned int flags;
1: + nodemask_t *nmask;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct vm_area_struct *first;
1: };
1:
1: struct mmu_notifier_subscriptions {
1: - struct hlist_head list;
1: - bool has_itree;
1: - spinlock_t lock;
1: - long unsigned int invalidate_seq;
1: - long unsigned int active_invalidate_ranges;
1: - struct rb_root_cached itree;
1: - wait_queue_head_t wq;
1: - struct hlist_head deferred_list;
1: + struct hlist_head list;
1: + bool has_itree;
1: + spinlock_t lock;
1: + long unsigned int invalidate_seq;
1: + long unsigned int active_invalidate_ranges;
1: + struct rb_root_cached itree;
1: + wait_queue_head_t wq;
1: + struct hlist_head deferred_list;
1: };
1:
1: struct interval_tree_node {
1: - struct rb_node rb;
1: - long unsigned int start;
1: - long unsigned int last;
1: - long unsigned int __subtree_last;
1: + struct rb_node rb;
1: + long unsigned int start;
1: + long unsigned int last;
1: + long unsigned int __subtree_last;
1: };
1:
1: struct mmu_interval_notifier;
1:
1: struct mmu_interval_notifier_ops {
1: - bool (*invalidate)(struct mmu_interval_notifier *, const struct mmu_notifier_range *, long unsigned int);
1: + bool (*invalidate)(struct mmu_interval_notifier *,
1: + const struct mmu_notifier_range *, long unsigned int);
1: };
1:
1: struct mmu_interval_notifier {
1: - struct interval_tree_node interval_tree;
1: - const struct mmu_interval_notifier_ops *ops;
1: - struct mm_struct *mm;
1: - struct hlist_node deferred_item;
1: - long unsigned int invalidate_seq;
1: + struct interval_tree_node interval_tree;
1: + const struct mmu_interval_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct hlist_node deferred_item;
1: + long unsigned int invalidate_seq;
1: };
1:
1: struct rmap_item;
1:
1: struct mm_slot {
1: - struct hlist_node link;
1: - struct list_head mm_list;
1: - struct rmap_item *rmap_list;
1: - struct mm_struct *mm;
1: + struct hlist_node link;
1: + struct list_head mm_list;
1: + struct rmap_item *rmap_list;
1: + struct mm_struct *mm;
1: };
1:
1: struct stable_node;
1:
1: struct rmap_item {
1: - struct rmap_item *rmap_list;
1: - union {
1: - struct anon_vma *anon_vma;
1: - int nid;
1: - };
1: - struct mm_struct *mm;
1: - long unsigned int address;
1: - unsigned int oldchecksum;
1: - union {
1: - struct rb_node node;
1: - struct {
1: - struct stable_node *head;
1: - struct hlist_node hlist;
1: - };
1: - };
1: + struct rmap_item *rmap_list;
1: + union {
1: + struct anon_vma *anon_vma;
1: + int nid;
1: + };
1: + struct mm_struct *mm;
1: + long unsigned int address;
1: + unsigned int oldchecksum;
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct stable_node *head;
1: + struct hlist_node hlist;
1: + };
1: + };
1: };
1:
1: struct ksm_scan {
1: - struct mm_slot *mm_slot;
1: - long unsigned int address;
1: - struct rmap_item **rmap_list;
1: - long unsigned int seqnr;
1: + struct mm_slot *mm_slot;
1: + long unsigned int address;
1: + struct rmap_item **rmap_list;
1: + long unsigned int seqnr;
1: };
1:
1: struct stable_node {
1: - union {
1: - struct rb_node node;
1: - struct {
1: - struct list_head *head;
1: - struct {
1: - struct hlist_node hlist_dup;
1: - struct list_head list;
1: - };
1: - };
1: - };
1: - struct hlist_head hlist;
1: - union {
1: - long unsigned int kpfn;
1: - long unsigned int chain_prune_time;
1: - };
1: - int rmap_hlist_len;
1: - int nid;
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct list_head *head;
1: + struct {
1: + struct hlist_node hlist_dup;
1: + struct list_head list;
1: + };
1: + };
1: + };
1: + struct hlist_head hlist;
1: + union {
1: + long unsigned int kpfn;
1: + long unsigned int chain_prune_time;
1: + };
1: + int rmap_hlist_len;
1: + int nid;
1: };
1:
1: enum get_ksm_page_flags {
1: - GET_KSM_PAGE_NOLOCK = 0,
1: - GET_KSM_PAGE_LOCK = 1,
1: - GET_KSM_PAGE_TRYLOCK = 2,
1: + GET_KSM_PAGE_NOLOCK = 0,
1: + GET_KSM_PAGE_LOCK = 1,
1: + GET_KSM_PAGE_TRYLOCK = 2,
1: };
1:
1: struct array_cache {
1: - unsigned int avail;
1: - unsigned int limit;
1: - unsigned int batchcount;
1: - unsigned int touched;
1: - void *entry[0];
1: + unsigned int avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int touched;
1: + void *entry[0];
1: };
1:
1: struct alien_cache {
1: - spinlock_t lock;
1: - struct array_cache ac;
1: + spinlock_t lock;
1: + struct array_cache ac;
1: };
1:
1: typedef unsigned char freelist_idx_t;
1:
1: enum {
1: - MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE = 12,
1: - SECTION_INFO = 12,
1: - MIX_SECTION_INFO = 13,
1: - NODE_INFO = 14,
1: - MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE = 14,
1: + MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE = 12,
1: + SECTION_INFO = 12,
1: + MIX_SECTION_INFO = 13,
1: + NODE_INFO = 14,
1: + MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE = 14,
1: };
1:
1: enum {
1: - MMOP_OFFLINE = 0,
1: - MMOP_ONLINE = 1,
1: - MMOP_ONLINE_KERNEL = 2,
1: - MMOP_ONLINE_MOVABLE = 3,
1: + MMOP_OFFLINE = 0,
1: + MMOP_ONLINE = 1,
1: + MMOP_ONLINE_KERNEL = 2,
1: + MMOP_ONLINE_MOVABLE = 3,
1: };
1:
1: typedef int mhp_t;
1: @@ -36644,12 +37130,12 @@ typedef int mhp_t;
1: typedef void (*online_page_callback_t)(struct page *, unsigned int);
1:
1: struct memory_block {
1: - long unsigned int start_section_nr;
1: - long unsigned int state;
1: - int online_type;
1: - int phys_device;
1: - struct device dev;
1: - int nid;
1: + long unsigned int start_section_nr;
1: + long unsigned int state;
1: + int online_type;
1: + int phys_device;
1: + struct device dev;
1: + int nid;
1: };
1:
1: struct buffer_head;
1: @@ -36657,19 +37143,19 @@ struct buffer_head;
1: typedef void bh_end_io_t(struct buffer_head *, int);
1:
1: struct buffer_head {
1: - long unsigned int b_state;
1: - struct buffer_head *b_this_page;
1: - struct page *b_page;
1: - sector_t b_blocknr;
1: - size_t b_size;
1: - char *b_data;
1: - struct block_device *b_bdev;
1: - bh_end_io_t *b_end_io;
1: - void *b_private;
1: - struct list_head b_assoc_buffers;
1: - struct address_space *b_assoc_map;
1: - atomic_t b_count;
1: - spinlock_t b_uptodate_lock;
1: + long unsigned int b_state;
1: + struct buffer_head *b_this_page;
1: + struct page *b_page;
1: + sector_t b_blocknr;
1: + size_t b_size;
1: + char *b_data;
1: + struct block_device *b_bdev;
1: + bh_end_io_t *b_end_io;
1: + void *b_private;
1: + struct list_head b_assoc_buffers;
1: + struct address_space *b_assoc_map;
1: + atomic_t b_count;
1: + spinlock_t b_uptodate_lock;
1: };
1:
1: typedef struct page *new_page_t(struct page *, long unsigned int);
1: @@ -36677,108 +37163,111 @@ typedef struct page *new_page_t(struct page *, long unsigned int);
1: typedef void free_page_t(struct page *, long unsigned int);
1:
1: enum bh_state_bits {
1: - BH_Uptodate = 0,
1: - BH_Dirty = 1,
1: - BH_Lock = 2,
1: - BH_Req = 3,
1: - BH_Mapped = 4,
1: - BH_New = 5,
1: - BH_Async_Read = 6,
1: - BH_Async_Write = 7,
1: - BH_Delay = 8,
1: - BH_Boundary = 9,
1: - BH_Write_EIO = 10,
1: - BH_Unwritten = 11,
1: - BH_Quiet = 12,
1: - BH_Meta = 13,
1: - BH_Prio = 14,
1: - BH_Defer_Completion = 15,
1: - BH_PrivateStart = 16,
1: + BH_Uptodate = 0,
1: + BH_Dirty = 1,
1: + BH_Lock = 2,
1: + BH_Req = 3,
1: + BH_Mapped = 4,
1: + BH_New = 5,
1: + BH_Async_Read = 6,
1: + BH_Async_Write = 7,
1: + BH_Delay = 8,
1: + BH_Boundary = 9,
1: + BH_Write_EIO = 10,
1: + BH_Unwritten = 11,
1: + BH_Quiet = 12,
1: + BH_Meta = 13,
1: + BH_Prio = 14,
1: + BH_Defer_Completion = 15,
1: + BH_PrivateStart = 16,
1: };
1:
1: struct trace_event_raw_mm_migrate_pages {
1: - struct trace_entry ent;
1: - long unsigned int succeeded;
1: - long unsigned int failed;
1: - long unsigned int thp_succeeded;
1: - long unsigned int thp_failed;
1: - long unsigned int thp_split;
1: - enum migrate_mode mode;
1: - int reason;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int succeeded;
1: + long unsigned int failed;
1: + long unsigned int thp_succeeded;
1: + long unsigned int thp_failed;
1: + long unsigned int thp_split;
1: + enum migrate_mode mode;
1: + int reason;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_migrate_pages {};
1:
1: -typedef void (*btf_trace_mm_migrate_pages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, enum migrate_mode, int);
1: +typedef void (*btf_trace_mm_migrate_pages)(void *, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int,
1: + enum migrate_mode, int);
1:
1: enum scan_result {
1: - SCAN_FAIL = 0,
1: - SCAN_SUCCEED = 1,
1: - SCAN_PMD_NULL = 2,
1: - SCAN_EXCEED_NONE_PTE = 3,
1: - SCAN_EXCEED_SWAP_PTE = 4,
1: - SCAN_EXCEED_SHARED_PTE = 5,
1: - SCAN_PTE_NON_PRESENT = 6,
1: - SCAN_PTE_UFFD_WP = 7,
1: - SCAN_PAGE_RO = 8,
1: - SCAN_LACK_REFERENCED_PAGE = 9,
1: - SCAN_PAGE_NULL = 10,
1: - SCAN_SCAN_ABORT = 11,
1: - SCAN_PAGE_COUNT = 12,
1: - SCAN_PAGE_LRU = 13,
1: - SCAN_PAGE_LOCK = 14,
1: - SCAN_PAGE_ANON = 15,
1: - SCAN_PAGE_COMPOUND = 16,
1: - SCAN_ANY_PROCESS = 17,
1: - SCAN_VMA_NULL = 18,
1: - SCAN_VMA_CHECK = 19,
1: - SCAN_ADDRESS_RANGE = 20,
1: - SCAN_SWAP_CACHE_PAGE = 21,
1: - SCAN_DEL_PAGE_LRU = 22,
1: - SCAN_ALLOC_HUGE_PAGE_FAIL = 23,
1: - SCAN_CGROUP_CHARGE_FAIL = 24,
1: - SCAN_TRUNCATED = 25,
1: - SCAN_PAGE_HAS_PRIVATE = 26,
1: + SCAN_FAIL = 0,
1: + SCAN_SUCCEED = 1,
1: + SCAN_PMD_NULL = 2,
1: + SCAN_EXCEED_NONE_PTE = 3,
1: + SCAN_EXCEED_SWAP_PTE = 4,
1: + SCAN_EXCEED_SHARED_PTE = 5,
1: + SCAN_PTE_NON_PRESENT = 6,
1: + SCAN_PTE_UFFD_WP = 7,
1: + SCAN_PAGE_RO = 8,
1: + SCAN_LACK_REFERENCED_PAGE = 9,
1: + SCAN_PAGE_NULL = 10,
1: + SCAN_SCAN_ABORT = 11,
1: + SCAN_PAGE_COUNT = 12,
1: + SCAN_PAGE_LRU = 13,
1: + SCAN_PAGE_LOCK = 14,
1: + SCAN_PAGE_ANON = 15,
1: + SCAN_PAGE_COMPOUND = 16,
1: + SCAN_ANY_PROCESS = 17,
1: + SCAN_VMA_NULL = 18,
1: + SCAN_VMA_CHECK = 19,
1: + SCAN_ADDRESS_RANGE = 20,
1: + SCAN_SWAP_CACHE_PAGE = 21,
1: + SCAN_DEL_PAGE_LRU = 22,
1: + SCAN_ALLOC_HUGE_PAGE_FAIL = 23,
1: + SCAN_CGROUP_CHARGE_FAIL = 24,
1: + SCAN_TRUNCATED = 25,
1: + SCAN_PAGE_HAS_PRIVATE = 26,
1: };
1:
1: struct trace_event_raw_mm_khugepaged_scan_pmd {
1: - struct trace_entry ent;
1: - struct mm_struct *mm;
1: - long unsigned int pfn;
1: - bool writable;
1: - int referenced;
1: - int none_or_zero;
1: - int status;
1: - int unmapped;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + long unsigned int pfn;
1: + bool writable;
1: + int referenced;
1: + int none_or_zero;
1: + int status;
1: + int unmapped;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_collapse_huge_page {
1: - struct trace_entry ent;
1: - struct mm_struct *mm;
1: - int isolated;
1: - int status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int isolated;
1: + int status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_collapse_huge_page_isolate {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - int none_or_zero;
1: - int referenced;
1: - bool writable;
1: - int status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int none_or_zero;
1: + int referenced;
1: + bool writable;
1: + int status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_mm_collapse_huge_page_swapin {
1: - struct trace_entry ent;
1: - struct mm_struct *mm;
1: - int swapped_in;
1: - int referenced;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int swapped_in;
1: + int referenced;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mm_khugepaged_scan_pmd {};
1: @@ -36789,637 +37278,654 @@ struct trace_event_data_offsets_mm_collapse_huge_page_isolate {};
1:
1: struct trace_event_data_offsets_mm_collapse_huge_page_swapin {};
1:
1: -typedef void (*btf_trace_mm_khugepaged_scan_pmd)(void *, struct mm_struct *, struct page *, bool, int, int, int, int);
1: +typedef void (*btf_trace_mm_khugepaged_scan_pmd)(void *, struct mm_struct *,
1: + struct page *, bool, int, int,
1: + int, int);
1:
1: -typedef void (*btf_trace_mm_collapse_huge_page)(void *, struct mm_struct *, int, int);
1: +typedef void (*btf_trace_mm_collapse_huge_page)(void *, struct mm_struct *, int,
1: + int);
1:
1: -typedef void (*btf_trace_mm_collapse_huge_page_isolate)(void *, struct page *, int, int, bool, int);
1: +typedef void (*btf_trace_mm_collapse_huge_page_isolate)(void *, struct page *,
1: + int, int, bool, int);
1:
1: -typedef void (*btf_trace_mm_collapse_huge_page_swapin)(void *, struct mm_struct *, int, int, int);
1: +typedef void (*btf_trace_mm_collapse_huge_page_swapin)(void *,
1: + struct mm_struct *, int,
1: + int, int);
1:
1: struct mm_slot___2 {
1: - struct hlist_node hash;
1: - struct list_head mm_node;
1: - struct mm_struct *mm;
1: - int nr_pte_mapped_thp;
1: - long unsigned int pte_mapped_thp[8];
1: + struct hlist_node hash;
1: + struct list_head mm_node;
1: + struct mm_struct *mm;
1: + int nr_pte_mapped_thp;
1: + long unsigned int pte_mapped_thp[8];
1: };
1:
1: struct khugepaged_scan {
1: - struct list_head mm_head;
1: - struct mm_slot___2 *mm_slot;
1: - long unsigned int address;
1: + struct list_head mm_head;
1: + struct mm_slot___2 *mm_slot;
1: + long unsigned int address;
1: };
1:
1: struct mem_cgroup_reclaim_cookie {
1: - pg_data_t *pgdat;
1: - unsigned int generation;
1: + pg_data_t *pgdat;
1: + unsigned int generation;
1: };
1:
1: struct mem_cgroup_tree_per_node {
1: - struct rb_root rb_root;
1: - struct rb_node *rb_rightmost;
1: - spinlock_t lock;
1: + struct rb_root rb_root;
1: + struct rb_node *rb_rightmost;
1: + spinlock_t lock;
1: };
1:
1: struct mem_cgroup_tree {
1: - struct mem_cgroup_tree_per_node *rb_tree_per_node[128];
1: + struct mem_cgroup_tree_per_node *rb_tree_per_node[128];
1: };
1:
1: struct mem_cgroup_eventfd_list {
1: - struct list_head list;
1: - struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + struct eventfd_ctx *eventfd;
1: };
1:
1: struct mem_cgroup_event {
1: - struct mem_cgroup *memcg;
1: - struct eventfd_ctx *eventfd;
1: - struct list_head list;
1: - int (*register_event)(struct mem_cgroup *, struct eventfd_ctx *, const char *);
1: - void (*unregister_event)(struct mem_cgroup *, struct eventfd_ctx *);
1: - poll_table pt;
1: - wait_queue_head_t *wqh;
1: - wait_queue_entry_t wait;
1: - struct work_struct remove;
1: + struct mem_cgroup *memcg;
1: + struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + int (*register_event)(struct mem_cgroup *, struct eventfd_ctx *,
1: + const char *);
1: + void (*unregister_event)(struct mem_cgroup *, struct eventfd_ctx *);
1: + poll_table pt;
1: + wait_queue_head_t *wqh;
1: + wait_queue_entry_t wait;
1: + struct work_struct remove;
1: };
1:
1: struct move_charge_struct {
1: - spinlock_t lock;
1: - struct mm_struct *mm;
1: - struct mem_cgroup *from;
1: - struct mem_cgroup *to;
1: - long unsigned int flags;
1: - long unsigned int precharge;
1: - long unsigned int moved_charge;
1: - long unsigned int moved_swap;
1: - struct task_struct *moving_task;
1: - wait_queue_head_t waitq;
1: + spinlock_t lock;
1: + struct mm_struct *mm;
1: + struct mem_cgroup *from;
1: + struct mem_cgroup *to;
1: + long unsigned int flags;
1: + long unsigned int precharge;
1: + long unsigned int moved_charge;
1: + long unsigned int moved_swap;
1: + struct task_struct *moving_task;
1: + wait_queue_head_t waitq;
1: };
1:
1: enum res_type {
1: - _MEM = 0,
1: - _MEMSWAP = 1,
1: - _OOM_TYPE = 2,
1: - _KMEM = 3,
1: - _TCP = 4,
1: + _MEM = 0,
1: + _MEMSWAP = 1,
1: + _OOM_TYPE = 2,
1: + _KMEM = 3,
1: + _TCP = 4,
1: };
1:
1: struct memory_stat {
1: - const char *name;
1: - unsigned int ratio;
1: - unsigned int idx;
1: + const char *name;
1: + unsigned int ratio;
1: + unsigned int idx;
1: };
1:
1: struct oom_wait_info {
1: - struct mem_cgroup *memcg;
1: - wait_queue_entry_t wait;
1: + struct mem_cgroup *memcg;
1: + wait_queue_entry_t wait;
1: };
1:
1: enum oom_status {
1: - OOM_SUCCESS = 0,
1: - OOM_FAILED = 1,
1: - OOM_ASYNC = 2,
1: - OOM_SKIPPED = 3,
1: + OOM_SUCCESS = 0,
1: + OOM_FAILED = 1,
1: + OOM_ASYNC = 2,
1: + OOM_SKIPPED = 3,
1: };
1:
1: struct memcg_stock_pcp {
1: - struct mem_cgroup *cached;
1: - unsigned int nr_pages;
1: - struct obj_cgroup *cached_objcg;
1: - unsigned int nr_bytes;
1: - struct work_struct work;
1: - long unsigned int flags;
1: + struct mem_cgroup *cached;
1: + unsigned int nr_pages;
1: + struct obj_cgroup *cached_objcg;
1: + unsigned int nr_bytes;
1: + struct work_struct work;
1: + long unsigned int flags;
1: };
1:
1: enum {
1: - RES_USAGE = 0,
1: - RES_LIMIT = 1,
1: - RES_MAX_USAGE = 2,
1: - RES_FAILCNT = 3,
1: - RES_SOFT_LIMIT = 4,
1: + RES_USAGE = 0,
1: + RES_LIMIT = 1,
1: + RES_MAX_USAGE = 2,
1: + RES_FAILCNT = 3,
1: + RES_SOFT_LIMIT = 4,
1: };
1:
1: union mc_target {
1: - struct page *page;
1: - swp_entry_t ent;
1: + struct page *page;
1: + swp_entry_t ent;
1: };
1:
1: enum mc_target_type {
1: - MC_TARGET_NONE = 0,
1: - MC_TARGET_PAGE = 1,
1: - MC_TARGET_SWAP = 2,
1: - MC_TARGET_DEVICE = 3,
1: + MC_TARGET_NONE = 0,
1: + MC_TARGET_PAGE = 1,
1: + MC_TARGET_SWAP = 2,
1: + MC_TARGET_DEVICE = 3,
1: };
1:
1: struct uncharge_gather {
1: - struct mem_cgroup *memcg;
1: - long unsigned int nr_pages;
1: - long unsigned int pgpgout;
1: - long unsigned int nr_kmem;
1: - struct page *dummy_page;
1: + struct mem_cgroup *memcg;
1: + long unsigned int nr_pages;
1: + long unsigned int pgpgout;
1: + long unsigned int nr_kmem;
1: + struct page *dummy_page;
1: };
1:
1: struct numa_stat {
1: - const char *name;
1: - unsigned int lru_mask;
1: + const char *name;
1: + unsigned int lru_mask;
1: };
1:
1: enum vmpressure_levels {
1: - VMPRESSURE_LOW = 0,
1: - VMPRESSURE_MEDIUM = 1,
1: - VMPRESSURE_CRITICAL = 2,
1: - VMPRESSURE_NUM_LEVELS = 3,
1: + VMPRESSURE_LOW = 0,
1: + VMPRESSURE_MEDIUM = 1,
1: + VMPRESSURE_CRITICAL = 2,
1: + VMPRESSURE_NUM_LEVELS = 3,
1: };
1:
1: enum vmpressure_modes {
1: - VMPRESSURE_NO_PASSTHROUGH = 0,
1: - VMPRESSURE_HIERARCHY = 1,
1: - VMPRESSURE_LOCAL = 2,
1: - VMPRESSURE_NUM_MODES = 3,
1: + VMPRESSURE_NO_PASSTHROUGH = 0,
1: + VMPRESSURE_HIERARCHY = 1,
1: + VMPRESSURE_LOCAL = 2,
1: + VMPRESSURE_NUM_MODES = 3,
1: };
1:
1: struct vmpressure_event {
1: - struct eventfd_ctx *efd;
1: - enum vmpressure_levels level;
1: - enum vmpressure_modes mode;
1: - struct list_head node;
1: + struct eventfd_ctx *efd;
1: + enum vmpressure_levels level;
1: + enum vmpressure_modes mode;
1: + struct list_head node;
1: };
1:
1: struct swap_cgroup_ctrl {
1: - struct page **map;
1: - long unsigned int length;
1: - spinlock_t lock;
1: + struct page **map;
1: + long unsigned int length;
1: + spinlock_t lock;
1: };
1:
1: struct swap_cgroup {
1: - short unsigned int id;
1: + short unsigned int id;
1: };
1:
1: enum {
1: - RES_USAGE___2 = 0,
1: - RES_RSVD_USAGE = 1,
1: - RES_LIMIT___2 = 2,
1: - RES_RSVD_LIMIT = 3,
1: - RES_MAX_USAGE___2 = 4,
1: - RES_RSVD_MAX_USAGE = 5,
1: - RES_FAILCNT___2 = 6,
1: - RES_RSVD_FAILCNT = 7,
1: + RES_USAGE___2 = 0,
1: + RES_RSVD_USAGE = 1,
1: + RES_LIMIT___2 = 2,
1: + RES_RSVD_LIMIT = 3,
1: + RES_MAX_USAGE___2 = 4,
1: + RES_RSVD_MAX_USAGE = 5,
1: + RES_FAILCNT___2 = 6,
1: + RES_RSVD_FAILCNT = 7,
1: };
1:
1: enum mf_result {
1: - MF_IGNORED = 0,
1: - MF_FAILED = 1,
1: - MF_DELAYED = 2,
1: - MF_RECOVERED = 3,
1: + MF_IGNORED = 0,
1: + MF_FAILED = 1,
1: + MF_DELAYED = 2,
1: + MF_RECOVERED = 3,
1: };
1:
1: enum mf_action_page_type {
1: - MF_MSG_KERNEL = 0,
1: - MF_MSG_KERNEL_HIGH_ORDER = 1,
1: - MF_MSG_SLAB = 2,
1: - MF_MSG_DIFFERENT_COMPOUND = 3,
1: - MF_MSG_POISONED_HUGE = 4,
1: - MF_MSG_HUGE = 5,
1: - MF_MSG_FREE_HUGE = 6,
1: - MF_MSG_NON_PMD_HUGE = 7,
1: - MF_MSG_UNMAP_FAILED = 8,
1: - MF_MSG_DIRTY_SWAPCACHE = 9,
1: - MF_MSG_CLEAN_SWAPCACHE = 10,
1: - MF_MSG_DIRTY_MLOCKED_LRU = 11,
1: - MF_MSG_CLEAN_MLOCKED_LRU = 12,
1: - MF_MSG_DIRTY_UNEVICTABLE_LRU = 13,
1: - MF_MSG_CLEAN_UNEVICTABLE_LRU = 14,
1: - MF_MSG_DIRTY_LRU = 15,
1: - MF_MSG_CLEAN_LRU = 16,
1: - MF_MSG_TRUNCATED_LRU = 17,
1: - MF_MSG_BUDDY = 18,
1: - MF_MSG_BUDDY_2ND = 19,
1: - MF_MSG_DAX = 20,
1: - MF_MSG_UNSPLIT_THP = 21,
1: - MF_MSG_UNKNOWN = 22,
1: + MF_MSG_KERNEL = 0,
1: + MF_MSG_KERNEL_HIGH_ORDER = 1,
1: + MF_MSG_SLAB = 2,
1: + MF_MSG_DIFFERENT_COMPOUND = 3,
1: + MF_MSG_POISONED_HUGE = 4,
1: + MF_MSG_HUGE = 5,
1: + MF_MSG_FREE_HUGE = 6,
1: + MF_MSG_NON_PMD_HUGE = 7,
1: + MF_MSG_UNMAP_FAILED = 8,
1: + MF_MSG_DIRTY_SWAPCACHE = 9,
1: + MF_MSG_CLEAN_SWAPCACHE = 10,
1: + MF_MSG_DIRTY_MLOCKED_LRU = 11,
1: + MF_MSG_CLEAN_MLOCKED_LRU = 12,
1: + MF_MSG_DIRTY_UNEVICTABLE_LRU = 13,
1: + MF_MSG_CLEAN_UNEVICTABLE_LRU = 14,
1: + MF_MSG_DIRTY_LRU = 15,
1: + MF_MSG_CLEAN_LRU = 16,
1: + MF_MSG_TRUNCATED_LRU = 17,
1: + MF_MSG_BUDDY = 18,
1: + MF_MSG_BUDDY_2ND = 19,
1: + MF_MSG_DAX = 20,
1: + MF_MSG_UNSPLIT_THP = 21,
1: + MF_MSG_UNKNOWN = 22,
1: };
1:
1: typedef long unsigned int dax_entry_t;
1:
1: struct __kfifo {
1: - unsigned int in;
1: - unsigned int out;
1: - unsigned int mask;
1: - unsigned int esize;
1: - void *data;
1: + unsigned int in;
1: + unsigned int out;
1: + unsigned int mask;
1: + unsigned int esize;
1: + void *data;
1: };
1:
1: struct to_kill {
1: - struct list_head nd;
1: - struct task_struct *tsk;
1: - long unsigned int addr;
1: - short int size_shift;
1: + struct list_head nd;
1: + struct task_struct *tsk;
1: + long unsigned int addr;
1: + short int size_shift;
1: };
1:
1: struct page_state {
1: - long unsigned int mask;
1: - long unsigned int res;
1: - enum mf_action_page_type type;
1: - int (*action)(struct page *, long unsigned int);
1: + long unsigned int mask;
1: + long unsigned int res;
1: + enum mf_action_page_type type;
1: + int (*action)(struct page *, long unsigned int);
1: };
1:
1: struct memory_failure_entry {
1: - long unsigned int pfn;
1: - int flags;
1: + long unsigned int pfn;
1: + int flags;
1: };
1:
1: struct memory_failure_cpu {
1: - struct {
1: - union {
1: - struct __kfifo kfifo;
1: - struct memory_failure_entry *type;
1: - const struct memory_failure_entry *const_type;
1: - char (*rectype)[0];
1: - struct memory_failure_entry *ptr;
1: - const struct memory_failure_entry *ptr_const;
1: - };
1: - struct memory_failure_entry buf[16];
1: - } fifo;
1: - spinlock_t lock;
1: - struct work_struct work;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct memory_failure_entry *type;
1: + const struct memory_failure_entry *const_type;
1: + char (*rectype)[0];
1: + struct memory_failure_entry *ptr;
1: + const struct memory_failure_entry *ptr_const;
1: + };
1: + struct memory_failure_entry buf[16];
1: + } fifo;
1: + spinlock_t lock;
1: + struct work_struct work;
1: };
1:
1: struct cleancache_filekey {
1: - union {
1: - ino_t ino;
1: - __u32 fh[6];
1: - u32 key[6];
1: - } u;
1: + union {
1: + ino_t ino;
1: + __u32 fh[6];
1: + u32 key[6];
1: + } u;
1: };
1:
1: struct cleancache_ops {
1: - int (*init_fs)(size_t);
1: - int (*init_shared_fs)(uuid_t *, size_t);
1: - int (*get_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: - void (*put_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: - void (*invalidate_page)(int, struct cleancache_filekey, long unsigned int);
1: - void (*invalidate_inode)(int, struct cleancache_filekey);
1: - void (*invalidate_fs)(int);
1: + int (*init_fs)(size_t);
1: + int (*init_shared_fs)(uuid_t *, size_t);
1: + int (*get_page)(int, struct cleancache_filekey, long unsigned int,
1: + struct page *);
1: + void (*put_page)(int, struct cleancache_filekey, long unsigned int,
1: + struct page *);
1: + void (*invalidate_page)(int, struct cleancache_filekey, long unsigned int);
1: + void (*invalidate_inode)(int, struct cleancache_filekey);
1: + void (*invalidate_fs)(int);
1: };
1:
1: struct trace_event_raw_test_pages_isolated {
1: - struct trace_entry ent;
1: - long unsigned int start_pfn;
1: - long unsigned int end_pfn;
1: - long unsigned int fin_pfn;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int fin_pfn;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_test_pages_isolated {};
1:
1: -typedef void (*btf_trace_test_pages_isolated)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_test_pages_isolated)(void *, long unsigned int,
1: + long unsigned int,
1: + long unsigned int);
1:
1: struct zpool_driver;
1:
1: struct zpool {
1: - struct zpool_driver *driver;
1: - void *pool;
1: - const struct zpool_ops *ops;
1: - bool evictable;
1: - struct list_head list;
1: + struct zpool_driver *driver;
1: + void *pool;
1: + const struct zpool_ops *ops;
1: + bool evictable;
1: + struct list_head list;
1: };
1:
1: struct zpool_driver {
1: - char *type;
1: - struct module *owner;
1: - atomic_t refcount;
1: - struct list_head list;
1: - void * (*create)(const char *, gfp_t, const struct zpool_ops *, struct zpool *);
1: - void (*destroy)(void *);
1: - bool malloc_support_movable;
1: - int (*malloc)(void *, size_t, gfp_t, long unsigned int *);
1: - void (*free)(void *, long unsigned int);
1: - int (*shrink)(void *, unsigned int, unsigned int *);
1: - void * (*map)(void *, long unsigned int, enum zpool_mapmode);
1: - void (*unmap)(void *, long unsigned int);
1: - u64 (*total_size)(void *);
1: + char *type;
1: + struct module *owner;
1: + atomic_t refcount;
1: + struct list_head list;
1: + void *(*create)(const char *, gfp_t, const struct zpool_ops *,
1: + struct zpool *);
1: + void (*destroy)(void *);
1: + bool malloc_support_movable;
1: + int (*malloc)(void *, size_t, gfp_t, long unsigned int *);
1: + void (*free)(void *, long unsigned int);
1: + int (*shrink)(void *, unsigned int, unsigned int *);
1: + void *(*map)(void *, long unsigned int, enum zpool_mapmode);
1: + void (*unmap)(void *, long unsigned int);
1: + u64 (*total_size)(void *);
1: };
1:
1: struct zbud_pool;
1:
1: struct zbud_ops {
1: - int (*evict)(struct zbud_pool *, long unsigned int);
1: + int (*evict)(struct zbud_pool *, long unsigned int);
1: };
1:
1: struct zbud_pool {
1: - spinlock_t lock;
1: - struct list_head unbuddied[63];
1: - struct list_head buddied;
1: - struct list_head lru;
1: - u64 pages_nr;
1: - const struct zbud_ops *ops;
1: - struct zpool *zpool;
1: - const struct zpool_ops *zpool_ops;
1: + spinlock_t lock;
1: + struct list_head unbuddied[63];
1: + struct list_head buddied;
1: + struct list_head lru;
1: + u64 pages_nr;
1: + const struct zbud_ops *ops;
1: + struct zpool *zpool;
1: + const struct zpool_ops *zpool_ops;
1: };
1:
1: struct zbud_header {
1: - struct list_head buddy;
1: - struct list_head lru;
1: - unsigned int first_chunks;
1: - unsigned int last_chunks;
1: - bool under_reclaim;
1: + struct list_head buddy;
1: + struct list_head lru;
1: + unsigned int first_chunks;
1: + unsigned int last_chunks;
1: + bool under_reclaim;
1: };
1:
1: enum buddy {
1: - FIRST = 0,
1: - LAST = 1,
1: + FIRST = 0,
1: + LAST = 1,
1: };
1:
1: enum zs_mapmode {
1: - ZS_MM_RW = 0,
1: - ZS_MM_RO = 1,
1: - ZS_MM_WO = 2,
1: + ZS_MM_RW = 0,
1: + ZS_MM_RO = 1,
1: + ZS_MM_WO = 2,
1: };
1:
1: struct zs_pool_stats {
1: - long unsigned int pages_compacted;
1: + long unsigned int pages_compacted;
1: };
1:
1: enum fullness_group {
1: - ZS_EMPTY = 0,
1: - ZS_ALMOST_EMPTY = 1,
1: - ZS_ALMOST_FULL = 2,
1: - ZS_FULL = 3,
1: - NR_ZS_FULLNESS = 4,
1: + ZS_EMPTY = 0,
1: + ZS_ALMOST_EMPTY = 1,
1: + ZS_ALMOST_FULL = 2,
1: + ZS_FULL = 3,
1: + NR_ZS_FULLNESS = 4,
1: };
1:
1: enum zs_stat_type {
1: - CLASS_EMPTY = 0,
1: - CLASS_ALMOST_EMPTY = 1,
1: - CLASS_ALMOST_FULL = 2,
1: - CLASS_FULL = 3,
1: - OBJ_ALLOCATED = 4,
1: - OBJ_USED = 5,
1: - NR_ZS_STAT_TYPE = 6,
1: + CLASS_EMPTY = 0,
1: + CLASS_ALMOST_EMPTY = 1,
1: + CLASS_ALMOST_FULL = 2,
1: + CLASS_FULL = 3,
1: + OBJ_ALLOCATED = 4,
1: + OBJ_USED = 5,
1: + NR_ZS_STAT_TYPE = 6,
1: };
1:
1: struct zs_size_stat {
1: - long unsigned int objs[6];
1: + long unsigned int objs[6];
1: };
1:
1: struct size_class {
1: - spinlock_t lock;
1: - struct list_head fullness_list[4];
1: - int size;
1: - int objs_per_zspage;
1: - int pages_per_zspage;
1: - unsigned int index;
1: - struct zs_size_stat stats;
1: + spinlock_t lock;
1: + struct list_head fullness_list[4];
1: + int size;
1: + int objs_per_zspage;
1: + int pages_per_zspage;
1: + unsigned int index;
1: + struct zs_size_stat stats;
1: };
1:
1: struct link_free {
1: - union {
1: - long unsigned int next;
1: - long unsigned int handle;
1: - };
1: + union {
1: + long unsigned int next;
1: + long unsigned int handle;
1: + };
1: };
1:
1: struct zs_pool {
1: - const char *name;
1: - struct size_class *size_class[255];
1: - struct kmem_cache *handle_cachep;
1: - struct kmem_cache *zspage_cachep;
1: - atomic_long_t pages_allocated;
1: - struct zs_pool_stats stats;
1: - struct shrinker shrinker;
1: - struct inode *inode;
1: - struct work_struct free_work;
1: - struct wait_queue_head migration_wait;
1: - atomic_long_t isolated_pages;
1: - bool destroying;
1: + const char *name;
1: + struct size_class *size_class[255];
1: + struct kmem_cache *handle_cachep;
1: + struct kmem_cache *zspage_cachep;
1: + atomic_long_t pages_allocated;
1: + struct zs_pool_stats stats;
1: + struct shrinker shrinker;
1: + struct inode *inode;
1: + struct work_struct free_work;
1: + struct wait_queue_head migration_wait;
1: + atomic_long_t isolated_pages;
1: + bool destroying;
1: };
1:
1: struct zspage {
1: - struct {
1: - unsigned int fullness: 2;
1: - unsigned int class: 9;
1: - unsigned int isolated: 3;
1: - unsigned int magic: 8;
1: - };
1: - unsigned int inuse;
1: - unsigned int freeobj;
1: - struct page *first_page;
1: - struct list_head list;
1: - rwlock_t lock;
1: + struct {
1: + unsigned int fullness : 2;
1: + unsigned int class : 9;
1: + unsigned int isolated : 3;
1: + unsigned int magic : 8;
1: + };
1: + unsigned int inuse;
1: + unsigned int freeobj;
1: + struct page *first_page;
1: + struct list_head list;
1: + rwlock_t lock;
1: };
1:
1: struct mapping_area {
1: - char *vm_buf;
1: - char *vm_addr;
1: - enum zs_mapmode vm_mm;
1: + char *vm_buf;
1: + char *vm_addr;
1: + enum zs_mapmode vm_mm;
1: };
1:
1: struct zs_compact_control {
1: - struct page *s_page;
1: - struct page *d_page;
1: - int obj_idx;
1: + struct page *s_page;
1: + struct page *d_page;
1: + int obj_idx;
1: };
1:
1: struct cma {
1: - long unsigned int base_pfn;
1: - long unsigned int count;
1: - long unsigned int *bitmap;
1: - unsigned int order_per_bit;
1: - struct mutex lock;
1: - char name[64];
1: + long unsigned int base_pfn;
1: + long unsigned int count;
1: + long unsigned int *bitmap;
1: + unsigned int order_per_bit;
1: + struct mutex lock;
1: + char name[64];
1: };
1:
1: struct trace_event_raw_cma_alloc {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - const struct page *page;
1: - unsigned int count;
1: - unsigned int align;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + unsigned int align;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cma_release {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - const struct page *page;
1: - unsigned int count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_cma_alloc {};
1:
1: struct trace_event_data_offsets_cma_release {};
1:
1: -typedef void (*btf_trace_cma_alloc)(void *, long unsigned int, const struct page *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_cma_alloc)(void *, long unsigned int,
1: + const struct page *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_cma_release)(void *, long unsigned int, const struct page *, unsigned int);
1: +typedef void (*btf_trace_cma_release)(void *, long unsigned int,
1: + const struct page *, unsigned int);
1:
1: struct balloon_dev_info {
1: - long unsigned int isolated_pages;
1: - spinlock_t pages_lock;
1: - struct list_head pages;
1: - int (*migratepage)(struct balloon_dev_info *, struct page *, struct page *, enum migrate_mode);
1: - struct inode *inode;
1: + long unsigned int isolated_pages;
1: + spinlock_t pages_lock;
1: + struct list_head pages;
1: + int (*migratepage)(struct balloon_dev_info *, struct page *, struct page *,
1: + enum migrate_mode);
1: + struct inode *inode;
1: };
1:
1: struct page_ext_operations {
1: - size_t offset;
1: - size_t size;
1: - bool (*need)();
1: - void (*init)();
1: + size_t offset;
1: + size_t size;
1: + bool (*need)();
1: + void (*init)();
1: };
1:
1: struct frame_vector {
1: - unsigned int nr_allocated;
1: - unsigned int nr_frames;
1: - bool got_ref;
1: - bool is_pfns;
1: - void *ptrs[0];
1: + unsigned int nr_allocated;
1: + unsigned int nr_frames;
1: + bool got_ref;
1: + bool is_pfns;
1: + void *ptrs[0];
1: };
1:
1: enum {
1: - BAD_STACK = 4294967295,
1: - NOT_STACK = 0,
1: - GOOD_FRAME = 1,
1: - GOOD_STACK = 2,
1: + BAD_STACK = 4294967295,
1: + NOT_STACK = 0,
1: + GOOD_FRAME = 1,
1: + GOOD_STACK = 2,
1: };
1:
1: enum hmm_pfn_flags {
1: - HMM_PFN_VALID = 0,
1: - HMM_PFN_WRITE = 0,
1: - HMM_PFN_ERROR = 0,
1: - HMM_PFN_ORDER_SHIFT = 56,
1: - HMM_PFN_REQ_FAULT = 0,
1: - HMM_PFN_REQ_WRITE = 0,
1: - HMM_PFN_FLAGS = 0,
1: + HMM_PFN_VALID = 0,
1: + HMM_PFN_WRITE = 0,
1: + HMM_PFN_ERROR = 0,
1: + HMM_PFN_ORDER_SHIFT = 56,
1: + HMM_PFN_REQ_FAULT = 0,
1: + HMM_PFN_REQ_WRITE = 0,
1: + HMM_PFN_FLAGS = 0,
1: };
1:
1: struct hmm_range {
1: - struct mmu_interval_notifier *notifier;
1: - long unsigned int notifier_seq;
1: - long unsigned int start;
1: - long unsigned int end;
1: - long unsigned int *hmm_pfns;
1: - long unsigned int default_flags;
1: - long unsigned int pfn_flags_mask;
1: - void *dev_private_owner;
1: + struct mmu_interval_notifier *notifier;
1: + long unsigned int notifier_seq;
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int *hmm_pfns;
1: + long unsigned int default_flags;
1: + long unsigned int pfn_flags_mask;
1: + void *dev_private_owner;
1: };
1:
1: struct hmm_vma_walk {
1: - struct hmm_range *range;
1: - long unsigned int last;
1: + struct hmm_range *range;
1: + long unsigned int last;
1: };
1:
1: enum {
1: - HMM_NEED_FAULT = 1,
1: - HMM_NEED_WRITE_FAULT = 2,
1: - HMM_NEED_ALL_BITS = 3,
1: + HMM_NEED_FAULT = 1,
1: + HMM_NEED_WRITE_FAULT = 2,
1: + HMM_NEED_ALL_BITS = 3,
1: };
1:
1: struct hugetlbfs_inode_info {
1: - struct shared_policy policy;
1: - struct inode vfs_inode;
1: - unsigned int seals;
1: + struct shared_policy policy;
1: + struct inode vfs_inode;
1: + unsigned int seals;
1: };
1:
1: struct page_reporting_dev_info {
1: - int (*report)(struct page_reporting_dev_info *, struct scatterlist *, unsigned int);
1: - struct delayed_work work;
1: - atomic_t state;
1: + int (*report)(struct page_reporting_dev_info *, struct scatterlist *,
1: + unsigned int);
1: + struct delayed_work work;
1: + atomic_t state;
1: };
1:
1: enum {
1: - PAGE_REPORTING_IDLE = 0,
1: - PAGE_REPORTING_REQUESTED = 1,
1: - PAGE_REPORTING_ACTIVE = 2,
1: + PAGE_REPORTING_IDLE = 0,
1: + PAGE_REPORTING_REQUESTED = 1,
1: + PAGE_REPORTING_ACTIVE = 2,
1: };
1:
1: typedef s32 compat_off_t;
1:
1: struct open_how {
1: - __u64 flags;
1: - __u64 mode;
1: - __u64 resolve;
1: + __u64 flags;
1: + __u64 mode;
1: + __u64 resolve;
1: };
1:
1: enum fsnotify_data_type {
1: - FSNOTIFY_EVENT_NONE = 0,
1: - FSNOTIFY_EVENT_PATH = 1,
1: - FSNOTIFY_EVENT_INODE = 2,
1: + FSNOTIFY_EVENT_NONE = 0,
1: + FSNOTIFY_EVENT_PATH = 1,
1: + FSNOTIFY_EVENT_INODE = 2,
1: };
1:
1: struct open_flags {
1: - int open_flag;
1: - umode_t mode;
1: - int acc_mode;
1: - int intent;
1: - int lookup_flags;
1: + int open_flag;
1: + umode_t mode;
1: + int acc_mode;
1: + int intent;
1: + int lookup_flags;
1: };
1:
1: typedef __kernel_rwf_t rwf_t;
1:
1: struct fscrypt_policy_v1 {
1: - __u8 version;
1: - __u8 contents_encryption_mode;
1: - __u8 filenames_encryption_mode;
1: - __u8 flags;
1: - __u8 master_key_descriptor[8];
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 master_key_descriptor[8];
1: };
1:
1: struct fscrypt_policy_v2 {
1: - __u8 version;
1: - __u8 contents_encryption_mode;
1: - __u8 filenames_encryption_mode;
1: - __u8 flags;
1: - __u8 __reserved[4];
1: - __u8 master_key_identifier[16];
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 __reserved[4];
1: + __u8 master_key_identifier[16];
1: };
1:
1: union fscrypt_policy {
1: - u8 version;
1: - struct fscrypt_policy_v1 v1;
1: - struct fscrypt_policy_v2 v2;
1: + u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: };
1:
1: enum vfs_get_super_keying {
1: - vfs_get_single_super = 0,
1: - vfs_get_single_reconf_super = 1,
1: - vfs_get_keyed_super = 2,
1: - vfs_get_independent_super = 3,
1: + vfs_get_single_super = 0,
1: + vfs_get_single_reconf_super = 1,
1: + vfs_get_keyed_super = 2,
1: + vfs_get_independent_super = 3,
1: };
1:
1: struct kobj_map;
1:
1: struct char_device_struct {
1: - struct char_device_struct *next;
1: - unsigned int major;
1: - unsigned int baseminor;
1: - int minorct;
1: - char name[64];
1: - struct cdev *cdev;
1: + struct char_device_struct *next;
1: + unsigned int major;
1: + unsigned int baseminor;
1: + int minorct;
1: + char name[64];
1: + struct cdev *cdev;
1: };
1:
1: struct stat {
1: - long unsigned int st_dev;
1: - long unsigned int st_ino;
1: - unsigned int st_mode;
1: - unsigned int st_nlink;
1: - unsigned int st_uid;
1: - unsigned int st_gid;
1: - long unsigned int st_rdev;
1: - long unsigned int __pad1;
1: - long int st_size;
1: - int st_blksize;
1: - int __pad2;
1: - long int st_blocks;
1: - long int st_atime;
1: - long unsigned int st_atime_nsec;
1: - long int st_mtime;
1: - long unsigned int st_mtime_nsec;
1: - long int st_ctime;
1: - long unsigned int st_ctime_nsec;
1: - unsigned int __unused4;
1: - unsigned int __unused5;
1: + long unsigned int st_dev;
1: + long unsigned int st_ino;
1: + unsigned int st_mode;
1: + unsigned int st_nlink;
1: + unsigned int st_uid;
1: + unsigned int st_gid;
1: + long unsigned int st_rdev;
1: + long unsigned int __pad1;
1: + long int st_size;
1: + int st_blksize;
1: + int __pad2;
1: + long int st_blocks;
1: + long int st_atime;
1: + long unsigned int st_atime_nsec;
1: + long int st_mtime;
1: + long unsigned int st_mtime_nsec;
1: + long int st_ctime;
1: + long unsigned int st_ctime_nsec;
1: + unsigned int __unused4;
1: + unsigned int __unused5;
1: };
1:
1: typedef u32 compat_ino_t;
1: @@ -37437,94 +37943,94 @@ typedef u16 compat_mode_t;
1: typedef u32 compat_dev_t;
1:
1: struct compat_stat {
1: - compat_dev_t st_dev;
1: - compat_ino_t st_ino;
1: - compat_mode_t st_mode;
1: - compat_ushort_t st_nlink;
1: - __compat_uid16_t st_uid;
1: - __compat_gid16_t st_gid;
1: - compat_dev_t st_rdev;
1: - compat_off_t st_size;
1: - compat_off_t st_blksize;
1: - compat_off_t st_blocks;
1: - old_time32_t st_atime;
1: - compat_ulong_t st_atime_nsec;
1: - old_time32_t st_mtime;
1: - compat_ulong_t st_mtime_nsec;
1: - old_time32_t st_ctime;
1: - compat_ulong_t st_ctime_nsec;
1: - compat_ulong_t __unused4[2];
1: + compat_dev_t st_dev;
1: + compat_ino_t st_ino;
1: + compat_mode_t st_mode;
1: + compat_ushort_t st_nlink;
1: + __compat_uid16_t st_uid;
1: + __compat_gid16_t st_gid;
1: + compat_dev_t st_rdev;
1: + compat_off_t st_size;
1: + compat_off_t st_blksize;
1: + compat_off_t st_blocks;
1: + old_time32_t st_atime;
1: + compat_ulong_t st_atime_nsec;
1: + old_time32_t st_mtime;
1: + compat_ulong_t st_mtime_nsec;
1: + old_time32_t st_ctime;
1: + compat_ulong_t st_ctime_nsec;
1: + compat_ulong_t __unused4[2];
1: };
1:
1: struct stat64 {
1: - compat_u64 st_dev;
1: - unsigned char __pad0[4];
1: - compat_ulong_t __st_ino;
1: - compat_uint_t st_mode;
1: - compat_uint_t st_nlink;
1: - compat_ulong_t st_uid;
1: - compat_ulong_t st_gid;
1: - compat_u64 st_rdev;
1: - unsigned char __pad3[4];
1: - compat_s64 st_size;
1: - compat_ulong_t st_blksize;
1: - compat_u64 st_blocks;
1: - compat_ulong_t st_atime;
1: - compat_ulong_t st_atime_nsec;
1: - compat_ulong_t st_mtime;
1: - compat_ulong_t st_mtime_nsec;
1: - compat_ulong_t st_ctime;
1: - compat_ulong_t st_ctime_nsec;
1: - compat_u64 st_ino;
1: + compat_u64 st_dev;
1: + unsigned char __pad0[4];
1: + compat_ulong_t __st_ino;
1: + compat_uint_t st_mode;
1: + compat_uint_t st_nlink;
1: + compat_ulong_t st_uid;
1: + compat_ulong_t st_gid;
1: + compat_u64 st_rdev;
1: + unsigned char __pad3[4];
1: + compat_s64 st_size;
1: + compat_ulong_t st_blksize;
1: + compat_u64 st_blocks;
1: + compat_ulong_t st_atime;
1: + compat_ulong_t st_atime_nsec;
1: + compat_ulong_t st_mtime;
1: + compat_ulong_t st_mtime_nsec;
1: + compat_ulong_t st_ctime;
1: + compat_ulong_t st_ctime_nsec;
1: + compat_u64 st_ino;
1: };
1:
1: struct statx_timestamp {
1: - __s64 tv_sec;
1: - __u32 tv_nsec;
1: - __s32 __reserved;
1: + __s64 tv_sec;
1: + __u32 tv_nsec;
1: + __s32 __reserved;
1: };
1:
1: struct statx {
1: - __u32 stx_mask;
1: - __u32 stx_blksize;
1: - __u64 stx_attributes;
1: - __u32 stx_nlink;
1: - __u32 stx_uid;
1: - __u32 stx_gid;
1: - __u16 stx_mode;
1: - __u16 __spare0[1];
1: - __u64 stx_ino;
1: - __u64 stx_size;
1: - __u64 stx_blocks;
1: - __u64 stx_attributes_mask;
1: - struct statx_timestamp stx_atime;
1: - struct statx_timestamp stx_btime;
1: - struct statx_timestamp stx_ctime;
1: - struct statx_timestamp stx_mtime;
1: - __u32 stx_rdev_major;
1: - __u32 stx_rdev_minor;
1: - __u32 stx_dev_major;
1: - __u32 stx_dev_minor;
1: - __u64 stx_mnt_id;
1: - __u64 __spare2;
1: - __u64 __spare3[12];
1: + __u32 stx_mask;
1: + __u32 stx_blksize;
1: + __u64 stx_attributes;
1: + __u32 stx_nlink;
1: + __u32 stx_uid;
1: + __u32 stx_gid;
1: + __u16 stx_mode;
1: + __u16 __spare0[1];
1: + __u64 stx_ino;
1: + __u64 stx_size;
1: + __u64 stx_blocks;
1: + __u64 stx_attributes_mask;
1: + struct statx_timestamp stx_atime;
1: + struct statx_timestamp stx_btime;
1: + struct statx_timestamp stx_ctime;
1: + struct statx_timestamp stx_mtime;
1: + __u32 stx_rdev_major;
1: + __u32 stx_rdev_minor;
1: + __u32 stx_dev_major;
1: + __u32 stx_dev_minor;
1: + __u64 stx_mnt_id;
1: + __u64 __spare2;
1: + __u64 __spare3[12];
1: };
1:
1: struct mount;
1:
1: struct mnt_namespace {
1: - atomic_t count;
1: - struct ns_common ns;
1: - struct mount *root;
1: - struct list_head list;
1: - spinlock_t ns_lock;
1: - struct user_namespace *user_ns;
1: - struct ucounts *ucounts;
1: - u64 seq;
1: - wait_queue_head_t poll;
1: - u64 event;
1: - unsigned int mounts;
1: - unsigned int pending_mounts;
1: + atomic_t count;
1: + struct ns_common ns;
1: + struct mount *root;
1: + struct list_head list;
1: + spinlock_t ns_lock;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + u64 seq;
1: + wait_queue_head_t poll;
1: + u64 event;
1: + unsigned int mounts;
1: + unsigned int pending_mounts;
1: };
1:
1: struct mnt_pcp;
1: @@ -37532,182 +38038,182 @@ struct mnt_pcp;
1: struct mountpoint;
1:
1: struct mount {
1: - struct hlist_node mnt_hash;
1: - struct mount *mnt_parent;
1: - struct dentry *mnt_mountpoint;
1: - struct vfsmount mnt;
1: - union {
1: - struct callback_head mnt_rcu;
1: - struct llist_node mnt_llist;
1: - };
1: - struct mnt_pcp *mnt_pcp;
1: - struct list_head mnt_mounts;
1: - struct list_head mnt_child;
1: - struct list_head mnt_instance;
1: - const char *mnt_devname;
1: - struct list_head mnt_list;
1: - struct list_head mnt_expire;
1: - struct list_head mnt_share;
1: - struct list_head mnt_slave_list;
1: - struct list_head mnt_slave;
1: - struct mount *mnt_master;
1: - struct mnt_namespace *mnt_ns;
1: - struct mountpoint *mnt_mp;
1: - union {
1: - struct hlist_node mnt_mp_list;
1: - struct hlist_node mnt_umount;
1: - };
1: - struct list_head mnt_umounting;
1: - struct fsnotify_mark_connector *mnt_fsnotify_marks;
1: - __u32 mnt_fsnotify_mask;
1: - int mnt_id;
1: - int mnt_group_id;
1: - int mnt_expiry_mark;
1: - struct hlist_head mnt_pins;
1: - struct hlist_head mnt_stuck_children;
1: + struct hlist_node mnt_hash;
1: + struct mount *mnt_parent;
1: + struct dentry *mnt_mountpoint;
1: + struct vfsmount mnt;
1: + union {
1: + struct callback_head mnt_rcu;
1: + struct llist_node mnt_llist;
1: + };
1: + struct mnt_pcp *mnt_pcp;
1: + struct list_head mnt_mounts;
1: + struct list_head mnt_child;
1: + struct list_head mnt_instance;
1: + const char *mnt_devname;
1: + struct list_head mnt_list;
1: + struct list_head mnt_expire;
1: + struct list_head mnt_share;
1: + struct list_head mnt_slave_list;
1: + struct list_head mnt_slave;
1: + struct mount *mnt_master;
1: + struct mnt_namespace *mnt_ns;
1: + struct mountpoint *mnt_mp;
1: + union {
1: + struct hlist_node mnt_mp_list;
1: + struct hlist_node mnt_umount;
1: + };
1: + struct list_head mnt_umounting;
1: + struct fsnotify_mark_connector *mnt_fsnotify_marks;
1: + __u32 mnt_fsnotify_mask;
1: + int mnt_id;
1: + int mnt_group_id;
1: + int mnt_expiry_mark;
1: + struct hlist_head mnt_pins;
1: + struct hlist_head mnt_stuck_children;
1: };
1:
1: struct mnt_pcp {
1: - int mnt_count;
1: - int mnt_writers;
1: + int mnt_count;
1: + int mnt_writers;
1: };
1:
1: struct mountpoint {
1: - struct hlist_node m_hash;
1: - struct dentry *m_dentry;
1: - struct hlist_head m_list;
1: - int m_count;
1: + struct hlist_node m_hash;
1: + struct dentry *m_dentry;
1: + struct hlist_head m_list;
1: + int m_count;
1: };
1:
1: typedef short unsigned int ushort;
1:
1: struct user_arg_ptr {
1: - bool is_compat;
1: - union {
1: - const char * const *native;
1: - const compat_uptr_t *compat;
1: - } ptr;
1: + bool is_compat;
1: + union {
1: + const char *const *native;
1: + const compat_uptr_t *compat;
1: + } ptr;
1: };
1:
1: enum inode_i_mutex_lock_class {
1: - I_MUTEX_NORMAL = 0,
1: - I_MUTEX_PARENT = 1,
1: - I_MUTEX_CHILD = 2,
1: - I_MUTEX_XATTR = 3,
1: - I_MUTEX_NONDIR2 = 4,
1: - I_MUTEX_PARENT2 = 5,
1: + I_MUTEX_NORMAL = 0,
1: + I_MUTEX_PARENT = 1,
1: + I_MUTEX_CHILD = 2,
1: + I_MUTEX_XATTR = 3,
1: + I_MUTEX_NONDIR2 = 4,
1: + I_MUTEX_PARENT2 = 5,
1: };
1:
1: struct pseudo_fs_context {
1: - const struct super_operations *ops;
1: - const struct xattr_handler **xattr;
1: - const struct dentry_operations *dops;
1: - long unsigned int magic;
1: + const struct super_operations *ops;
1: + const struct xattr_handler **xattr;
1: + const struct dentry_operations *dops;
1: + long unsigned int magic;
1: };
1:
1: struct name_snapshot {
1: - struct qstr name;
1: - unsigned char inline_name[32];
1: + struct qstr name;
1: + unsigned char inline_name[32];
1: };
1:
1: struct saved {
1: - struct path link;
1: - struct delayed_call done;
1: - const char *name;
1: - unsigned int seq;
1: + struct path link;
1: + struct delayed_call done;
1: + const char *name;
1: + unsigned int seq;
1: };
1:
1: struct nameidata {
1: - struct path path;
1: - struct qstr last;
1: - struct path root;
1: - struct inode *inode;
1: - unsigned int flags;
1: - unsigned int seq;
1: - unsigned int m_seq;
1: - unsigned int r_seq;
1: - int last_type;
1: - unsigned int depth;
1: - int total_link_count;
1: - struct saved *stack;
1: - struct saved internal[2];
1: - struct filename *name;
1: - struct nameidata *saved;
1: - unsigned int root_seq;
1: - int dfd;
1: - kuid_t dir_uid;
1: - umode_t dir_mode;
1: + struct path path;
1: + struct qstr last;
1: + struct path root;
1: + struct inode *inode;
1: + unsigned int flags;
1: + unsigned int seq;
1: + unsigned int m_seq;
1: + unsigned int r_seq;
1: + int last_type;
1: + unsigned int depth;
1: + int total_link_count;
1: + struct saved *stack;
1: + struct saved internal[2];
1: + struct filename *name;
1: + struct nameidata *saved;
1: + unsigned int root_seq;
1: + int dfd;
1: + kuid_t dir_uid;
1: + umode_t dir_mode;
1: };
1:
1: enum {
1: - LAST_NORM = 0,
1: - LAST_ROOT = 1,
1: - LAST_DOT = 2,
1: - LAST_DOTDOT = 3,
1: + LAST_NORM = 0,
1: + LAST_ROOT = 1,
1: + LAST_DOT = 2,
1: + LAST_DOTDOT = 3,
1: };
1:
1: enum {
1: - WALK_TRAILING = 1,
1: - WALK_MORE = 2,
1: - WALK_NOFOLLOW = 4,
1: + WALK_TRAILING = 1,
1: + WALK_MORE = 2,
1: + WALK_NOFOLLOW = 4,
1: };
1:
1: struct word_at_a_time {
1: - const long unsigned int one_bits;
1: - const long unsigned int high_bits;
1: + const long unsigned int one_bits;
1: + const long unsigned int high_bits;
1: };
1:
1: struct compat_flock {
1: - short int l_type;
1: - short int l_whence;
1: - compat_off_t l_start;
1: - compat_off_t l_len;
1: - compat_pid_t l_pid;
1: + short int l_type;
1: + short int l_whence;
1: + compat_off_t l_start;
1: + compat_off_t l_len;
1: + compat_pid_t l_pid;
1: };
1:
1: struct compat_flock64 {
1: - short int l_type;
1: - short int l_whence;
1: - compat_loff_t l_start;
1: - compat_loff_t l_len;
1: - compat_pid_t l_pid;
1: + short int l_type;
1: + short int l_whence;
1: + compat_loff_t l_start;
1: + compat_loff_t l_len;
1: + compat_pid_t l_pid;
1: };
1:
1: struct f_owner_ex {
1: - int type;
1: - __kernel_pid_t pid;
1: + int type;
1: + __kernel_pid_t pid;
1: };
1:
1: struct flock {
1: - short int l_type;
1: - short int l_whence;
1: - __kernel_off_t l_start;
1: - __kernel_off_t l_len;
1: - __kernel_pid_t l_pid;
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_off_t l_start;
1: + __kernel_off_t l_len;
1: + __kernel_pid_t l_pid;
1: };
1:
1: struct file_clone_range {
1: - __s64 src_fd;
1: - __u64 src_offset;
1: - __u64 src_length;
1: - __u64 dest_offset;
1: + __s64 src_fd;
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u64 dest_offset;
1: };
1:
1: struct file_dedupe_range_info {
1: - __s64 dest_fd;
1: - __u64 dest_offset;
1: - __u64 bytes_deduped;
1: - __s32 status;
1: - __u32 reserved;
1: + __s64 dest_fd;
1: + __u64 dest_offset;
1: + __u64 bytes_deduped;
1: + __s32 status;
1: + __u32 reserved;
1: };
1:
1: struct file_dedupe_range {
1: - __u64 src_offset;
1: - __u64 src_length;
1: - __u16 dest_count;
1: - __u16 reserved1;
1: - __u32 reserved2;
1: - struct file_dedupe_range_info info[0];
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u16 dest_count;
1: + __u16 reserved1;
1: + __u32 reserved2;
1: + struct file_dedupe_range_info info[0];
1: };
1:
1: typedef int get_block_t(struct inode *, sector_t, struct buffer_head *, int);
1: @@ -37715,476 +38221,476 @@ typedef int get_block_t(struct inode *, sector_t, struct buffer_head *, int);
1: struct fiemap_extent;
1:
1: struct fiemap_extent_info {
1: - unsigned int fi_flags;
1: - unsigned int fi_extents_mapped;
1: - unsigned int fi_extents_max;
1: - struct fiemap_extent *fi_extents_start;
1: + unsigned int fi_flags;
1: + unsigned int fi_extents_mapped;
1: + unsigned int fi_extents_max;
1: + struct fiemap_extent *fi_extents_start;
1: };
1:
1: struct space_resv {
1: - __s16 l_type;
1: - __s16 l_whence;
1: - __s64 l_start;
1: - __s64 l_len;
1: - __s32 l_sysid;
1: - __u32 l_pid;
1: - __s32 l_pad[4];
1: + __s16 l_type;
1: + __s16 l_whence;
1: + __s64 l_start;
1: + __s64 l_len;
1: + __s32 l_sysid;
1: + __u32 l_pid;
1: + __s32 l_pad[4];
1: };
1:
1: struct fiemap_extent {
1: - __u64 fe_logical;
1: - __u64 fe_physical;
1: - __u64 fe_length;
1: - __u64 fe_reserved64[2];
1: - __u32 fe_flags;
1: - __u32 fe_reserved[3];
1: + __u64 fe_logical;
1: + __u64 fe_physical;
1: + __u64 fe_length;
1: + __u64 fe_reserved64[2];
1: + __u32 fe_flags;
1: + __u32 fe_reserved[3];
1: };
1:
1: struct fiemap {
1: - __u64 fm_start;
1: - __u64 fm_length;
1: - __u32 fm_flags;
1: - __u32 fm_mapped_extents;
1: - __u32 fm_extent_count;
1: - __u32 fm_reserved;
1: - struct fiemap_extent fm_extents[0];
1: + __u64 fm_start;
1: + __u64 fm_length;
1: + __u32 fm_flags;
1: + __u32 fm_mapped_extents;
1: + __u32 fm_extent_count;
1: + __u32 fm_reserved;
1: + struct fiemap_extent fm_extents[0];
1: };
1:
1: struct linux_dirent64 {
1: - u64 d_ino;
1: - s64 d_off;
1: - short unsigned int d_reclen;
1: - unsigned char d_type;
1: - char d_name[0];
1: + u64 d_ino;
1: + s64 d_off;
1: + short unsigned int d_reclen;
1: + unsigned char d_type;
1: + char d_name[0];
1: };
1:
1: struct linux_dirent {
1: - long unsigned int d_ino;
1: - long unsigned int d_off;
1: - short unsigned int d_reclen;
1: - char d_name[1];
1: + long unsigned int d_ino;
1: + long unsigned int d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: };
1:
1: struct getdents_callback {
1: - struct dir_context ctx;
1: - struct linux_dirent *current_dir;
1: - int prev_reclen;
1: - int count;
1: - int error;
1: + struct dir_context ctx;
1: + struct linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: };
1:
1: struct getdents_callback64 {
1: - struct dir_context ctx;
1: - struct linux_dirent64 *current_dir;
1: - int prev_reclen;
1: - int count;
1: - int error;
1: + struct dir_context ctx;
1: + struct linux_dirent64 *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: };
1:
1: struct compat_old_linux_dirent {
1: - compat_ulong_t d_ino;
1: - compat_ulong_t d_offset;
1: - short unsigned int d_namlen;
1: - char d_name[1];
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_offset;
1: + short unsigned int d_namlen;
1: + char d_name[1];
1: };
1:
1: struct compat_readdir_callback {
1: - struct dir_context ctx;
1: - struct compat_old_linux_dirent *dirent;
1: - int result;
1: + struct dir_context ctx;
1: + struct compat_old_linux_dirent *dirent;
1: + int result;
1: };
1:
1: struct compat_linux_dirent {
1: - compat_ulong_t d_ino;
1: - compat_ulong_t d_off;
1: - short unsigned int d_reclen;
1: - char d_name[1];
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: };
1:
1: struct compat_getdents_callback {
1: - struct dir_context ctx;
1: - struct compat_linux_dirent *current_dir;
1: - int prev_reclen;
1: - int count;
1: - int error;
1: + struct dir_context ctx;
1: + struct compat_linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: };
1:
1: typedef struct {
1: - long unsigned int fds_bits[16];
1: + long unsigned int fds_bits[16];
1: } __kernel_fd_set;
1:
1: typedef __kernel_fd_set fd_set;
1:
1: struct poll_table_entry {
1: - struct file *filp;
1: - __poll_t key;
1: - wait_queue_entry_t wait;
1: - wait_queue_head_t *wait_address;
1: + struct file *filp;
1: + __poll_t key;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *wait_address;
1: };
1:
1: struct poll_table_page;
1:
1: struct poll_wqueues {
1: - poll_table pt;
1: - struct poll_table_page *table;
1: - struct task_struct *polling_task;
1: - int triggered;
1: - int error;
1: - int inline_index;
1: - struct poll_table_entry inline_entries[9];
1: + poll_table pt;
1: + struct poll_table_page *table;
1: + struct task_struct *polling_task;
1: + int triggered;
1: + int error;
1: + int inline_index;
1: + struct poll_table_entry inline_entries[9];
1: };
1:
1: struct poll_table_page {
1: - struct poll_table_page *next;
1: - struct poll_table_entry *entry;
1: - struct poll_table_entry entries[0];
1: + struct poll_table_page *next;
1: + struct poll_table_entry *entry;
1: + struct poll_table_entry entries[0];
1: };
1:
1: enum poll_time_type {
1: - PT_TIMEVAL = 0,
1: - PT_OLD_TIMEVAL = 1,
1: - PT_TIMESPEC = 2,
1: - PT_OLD_TIMESPEC = 3,
1: + PT_TIMEVAL = 0,
1: + PT_OLD_TIMEVAL = 1,
1: + PT_TIMESPEC = 2,
1: + PT_OLD_TIMESPEC = 3,
1: };
1:
1: typedef struct {
1: - long unsigned int *in;
1: - long unsigned int *out;
1: - long unsigned int *ex;
1: - long unsigned int *res_in;
1: - long unsigned int *res_out;
1: - long unsigned int *res_ex;
1: + long unsigned int *in;
1: + long unsigned int *out;
1: + long unsigned int *ex;
1: + long unsigned int *res_in;
1: + long unsigned int *res_out;
1: + long unsigned int *res_ex;
1: } fd_set_bits;
1:
1: struct sigset_argpack {
1: - sigset_t *p;
1: - size_t size;
1: + sigset_t *p;
1: + size_t size;
1: };
1:
1: struct poll_list {
1: - struct poll_list *next;
1: - int len;
1: - struct pollfd entries[0];
1: + struct poll_list *next;
1: + int len;
1: + struct pollfd entries[0];
1: };
1:
1: struct compat_sel_arg_struct {
1: - compat_ulong_t n;
1: - compat_uptr_t inp;
1: - compat_uptr_t outp;
1: - compat_uptr_t exp;
1: - compat_uptr_t tvp;
1: + compat_ulong_t n;
1: + compat_uptr_t inp;
1: + compat_uptr_t outp;
1: + compat_uptr_t exp;
1: + compat_uptr_t tvp;
1: };
1:
1: struct compat_sigset_argpack {
1: - compat_uptr_t p;
1: - compat_size_t size;
1: + compat_uptr_t p;
1: + compat_size_t size;
1: };
1:
1: enum dentry_d_lock_class {
1: - DENTRY_D_LOCK_NORMAL = 0,
1: - DENTRY_D_LOCK_NESTED = 1,
1: + DENTRY_D_LOCK_NORMAL = 0,
1: + DENTRY_D_LOCK_NESTED = 1,
1: };
1:
1: struct external_name {
1: - union {
1: - atomic_t count;
1: - struct callback_head head;
1: - } u;
1: - unsigned char name[0];
1: + union {
1: + atomic_t count;
1: + struct callback_head head;
1: + } u;
1: + unsigned char name[0];
1: };
1:
1: enum d_walk_ret {
1: - D_WALK_CONTINUE = 0,
1: - D_WALK_QUIT = 1,
1: - D_WALK_NORETRY = 2,
1: - D_WALK_SKIP = 3,
1: + D_WALK_CONTINUE = 0,
1: + D_WALK_QUIT = 1,
1: + D_WALK_NORETRY = 2,
1: + D_WALK_SKIP = 3,
1: };
1:
1: struct check_mount {
1: - struct vfsmount *mnt;
1: - unsigned int mounted;
1: + struct vfsmount *mnt;
1: + unsigned int mounted;
1: };
1:
1: struct select_data {
1: - struct dentry *start;
1: - union {
1: - long int found;
1: - struct dentry *victim;
1: - };
1: - struct list_head dispose;
1: + struct dentry *start;
1: + union {
1: + long int found;
1: + struct dentry *victim;
1: + };
1: + struct list_head dispose;
1: };
1:
1: struct fsxattr {
1: - __u32 fsx_xflags;
1: - __u32 fsx_extsize;
1: - __u32 fsx_nextents;
1: - __u32 fsx_projid;
1: - __u32 fsx_cowextsize;
1: - unsigned char fsx_pad[8];
1: + __u32 fsx_xflags;
1: + __u32 fsx_extsize;
1: + __u32 fsx_nextents;
1: + __u32 fsx_projid;
1: + __u32 fsx_cowextsize;
1: + unsigned char fsx_pad[8];
1: };
1:
1: enum file_time_flags {
1: - S_ATIME = 1,
1: - S_MTIME = 2,
1: - S_CTIME = 4,
1: - S_VERSION = 8,
1: + S_ATIME = 1,
1: + S_MTIME = 2,
1: + S_CTIME = 4,
1: + S_VERSION = 8,
1: };
1:
1: struct proc_mounts {
1: - struct mnt_namespace *ns;
1: - struct path root;
1: - int (*show)(struct seq_file *, struct vfsmount *);
1: - struct mount cursor;
1: + struct mnt_namespace *ns;
1: + struct path root;
1: + int (*show)(struct seq_file *, struct vfsmount *);
1: + struct mount cursor;
1: };
1:
1: enum umount_tree_flags {
1: - UMOUNT_SYNC = 1,
1: - UMOUNT_PROPAGATE = 2,
1: - UMOUNT_CONNECTED = 4,
1: + UMOUNT_SYNC = 1,
1: + UMOUNT_PROPAGATE = 2,
1: + UMOUNT_CONNECTED = 4,
1: };
1:
1: struct unicode_map {
1: - const char *charset;
1: - int version;
1: + const char *charset;
1: + int version;
1: };
1:
1: struct simple_transaction_argresp {
1: - ssize_t size;
1: - char data[0];
1: + ssize_t size;
1: + char data[0];
1: };
1:
1: struct simple_attr {
1: - int (*get)(void *, u64 *);
1: - int (*set)(void *, u64);
1: - char get_buf[24];
1: - char set_buf[24];
1: - void *data;
1: - const char *fmt;
1: - struct mutex mutex;
1: + int (*get)(void *, u64 *);
1: + int (*set)(void *, u64);
1: + char get_buf[24];
1: + char set_buf[24];
1: + void *data;
1: + const char *fmt;
1: + struct mutex mutex;
1: };
1:
1: struct wb_writeback_work {
1: - long int nr_pages;
1: - struct super_block *sb;
1: - enum writeback_sync_modes sync_mode;
1: - unsigned int tagged_writepages: 1;
1: - unsigned int for_kupdate: 1;
1: - unsigned int range_cyclic: 1;
1: - unsigned int for_background: 1;
1: - unsigned int for_sync: 1;
1: - unsigned int auto_free: 1;
1: - enum wb_reason reason;
1: - struct list_head list;
1: - struct wb_completion *done;
1: + long int nr_pages;
1: + struct super_block *sb;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int tagged_writepages : 1;
1: + unsigned int for_kupdate : 1;
1: + unsigned int range_cyclic : 1;
1: + unsigned int for_background : 1;
1: + unsigned int for_sync : 1;
1: + unsigned int auto_free : 1;
1: + enum wb_reason reason;
1: + struct list_head list;
1: + struct wb_completion *done;
1: };
1:
1: struct trace_event_raw_writeback_page_template {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - long unsigned int index;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_dirty_inode_template {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - long unsigned int state;
1: - long unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_inode_foreign_history {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - ino_t cgroup_ino;
1: - unsigned int history;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t cgroup_ino;
1: + unsigned int history;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_inode_switch_wbs {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - ino_t old_cgroup_ino;
1: - ino_t new_cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t old_cgroup_ino;
1: + ino_t new_cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_track_foreign_dirty {
1: - struct trace_entry ent;
1: - char name[32];
1: - u64 bdi_id;
1: - ino_t ino;
1: - unsigned int memcg_id;
1: - ino_t cgroup_ino;
1: - ino_t page_cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + u64 bdi_id;
1: + ino_t ino;
1: + unsigned int memcg_id;
1: + ino_t cgroup_ino;
1: + ino_t page_cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_flush_foreign {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t cgroup_ino;
1: - unsigned int frn_bdi_id;
1: - unsigned int frn_memcg_id;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + unsigned int frn_bdi_id;
1: + unsigned int frn_memcg_id;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_write_inode_template {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - int sync_mode;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + int sync_mode;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_work_class {
1: - struct trace_entry ent;
1: - char name[32];
1: - long int nr_pages;
1: - dev_t sb_dev;
1: - int sync_mode;
1: - int for_kupdate;
1: - int range_cyclic;
1: - int for_background;
1: - int reason;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_pages;
1: + dev_t sb_dev;
1: + int sync_mode;
1: + int for_kupdate;
1: + int range_cyclic;
1: + int for_background;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_pages_written {
1: - struct trace_entry ent;
1: - long int pages;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long int pages;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_class {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_bdi_register {
1: - struct trace_entry ent;
1: - char name[32];
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wbc_class {
1: - struct trace_entry ent;
1: - char name[32];
1: - long int nr_to_write;
1: - long int pages_skipped;
1: - int sync_mode;
1: - int for_kupdate;
1: - int for_background;
1: - int for_reclaim;
1: - int range_cyclic;
1: - long int range_start;
1: - long int range_end;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + int sync_mode;
1: + int for_kupdate;
1: + int for_background;
1: + int for_reclaim;
1: + int range_cyclic;
1: + long int range_start;
1: + long int range_end;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_queue_io {
1: - struct trace_entry ent;
1: - char name[32];
1: - long unsigned int older;
1: - long int age;
1: - int moved;
1: - int reason;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + long unsigned int older;
1: + long int age;
1: + int moved;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_global_dirty_state {
1: - struct trace_entry ent;
1: - long unsigned int nr_dirty;
1: - long unsigned int nr_writeback;
1: - long unsigned int background_thresh;
1: - long unsigned int dirty_thresh;
1: - long unsigned int dirty_limit;
1: - long unsigned int nr_dirtied;
1: - long unsigned int nr_written;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int background_thresh;
1: + long unsigned int dirty_thresh;
1: + long unsigned int dirty_limit;
1: + long unsigned int nr_dirtied;
1: + long unsigned int nr_written;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_bdi_dirty_ratelimit {
1: - struct trace_entry ent;
1: - char bdi[32];
1: - long unsigned int write_bw;
1: - long unsigned int avg_write_bw;
1: - long unsigned int dirty_rate;
1: - long unsigned int dirty_ratelimit;
1: - long unsigned int task_ratelimit;
1: - long unsigned int balanced_dirty_ratelimit;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int write_bw;
1: + long unsigned int avg_write_bw;
1: + long unsigned int dirty_rate;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_balance_dirty_pages {
1: - struct trace_entry ent;
1: - char bdi[32];
1: - long unsigned int limit;
1: - long unsigned int setpoint;
1: - long unsigned int dirty;
1: - long unsigned int bdi_setpoint;
1: - long unsigned int bdi_dirty;
1: - long unsigned int dirty_ratelimit;
1: - long unsigned int task_ratelimit;
1: - unsigned int dirtied;
1: - unsigned int dirtied_pause;
1: - long unsigned int paused;
1: - long int pause;
1: - long unsigned int period;
1: - long int think;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int limit;
1: + long unsigned int setpoint;
1: + long unsigned int dirty;
1: + long unsigned int bdi_setpoint;
1: + long unsigned int bdi_dirty;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + unsigned int dirtied;
1: + unsigned int dirtied_pause;
1: + long unsigned int paused;
1: + long int pause;
1: + long unsigned int period;
1: + long int think;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_sb_inodes_requeue {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - long unsigned int state;
1: - long unsigned int dirtied_when;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_congest_waited_template {
1: - struct trace_entry ent;
1: - unsigned int usec_timeout;
1: - unsigned int usec_delayed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int usec_timeout;
1: + unsigned int usec_delayed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_single_inode_template {
1: - struct trace_entry ent;
1: - char name[32];
1: - ino_t ino;
1: - long unsigned int state;
1: - long unsigned int dirtied_when;
1: - long unsigned int writeback_index;
1: - long int nr_to_write;
1: - long unsigned int wrote;
1: - ino_t cgroup_ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + long unsigned int writeback_index;
1: + long int nr_to_write;
1: + long unsigned int wrote;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_writeback_inode_template {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long unsigned int state;
1: - __u16 mode;
1: - long unsigned int dirtied_when;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int state;
1: + __u16 mode;
1: + long unsigned int dirtied_when;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_writeback_page_template {};
1: @@ -38227,63 +38733,97 @@ struct trace_event_data_offsets_writeback_single_inode_template {};
1:
1: struct trace_event_data_offsets_writeback_inode_template {};
1:
1: -typedef void (*btf_trace_writeback_dirty_page)(void *, struct page *, struct address_space *);
1: +typedef void (*btf_trace_writeback_dirty_page)(void *, struct page *,
1: + struct address_space *);
1:
1: -typedef void (*btf_trace_wait_on_page_writeback)(void *, struct page *, struct address_space *);
1: +typedef void (*btf_trace_wait_on_page_writeback)(void *, struct page *,
1: + struct address_space *);
1:
1: -typedef void (*btf_trace_writeback_mark_inode_dirty)(void *, struct inode *, int);
1: +typedef void (*btf_trace_writeback_mark_inode_dirty)(void *, struct inode *,
1: + int);
1:
1: -typedef void (*btf_trace_writeback_dirty_inode_start)(void *, struct inode *, int);
1: +typedef void (*btf_trace_writeback_dirty_inode_start)(void *, struct inode *,
1: + int);
1:
1: typedef void (*btf_trace_writeback_dirty_inode)(void *, struct inode *, int);
1:
1: -typedef void (*btf_trace_inode_foreign_history)(void *, struct inode *, struct writeback_control *, unsigned int);
1: +typedef void (*btf_trace_inode_foreign_history)(void *, struct inode *,
1: + struct writeback_control *,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_inode_switch_wbs)(void *, struct inode *, struct bdi_writeback *, struct bdi_writeback *);
1: +typedef void (*btf_trace_inode_switch_wbs)(void *, struct inode *,
1: + struct bdi_writeback *,
1: + struct bdi_writeback *);
1:
1: -typedef void (*btf_trace_track_foreign_dirty)(void *, struct page *, struct bdi_writeback *);
1: +typedef void (*btf_trace_track_foreign_dirty)(void *, struct page *,
1: + struct bdi_writeback *);
1:
1: -typedef void (*btf_trace_flush_foreign)(void *, struct bdi_writeback *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_flush_foreign)(void *, struct bdi_writeback *,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_writeback_write_inode_start)(void *, struct inode *, struct writeback_control *);
1: +typedef void (*btf_trace_writeback_write_inode_start)(
1: + void *, struct inode *, struct writeback_control *);
1:
1: -typedef void (*btf_trace_writeback_write_inode)(void *, struct inode *, struct writeback_control *);
1: +typedef void (*btf_trace_writeback_write_inode)(void *, struct inode *,
1: + struct writeback_control *);
1:
1: -typedef void (*btf_trace_writeback_queue)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +typedef void (*btf_trace_writeback_queue)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *);
1:
1: -typedef void (*btf_trace_writeback_exec)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +typedef void (*btf_trace_writeback_exec)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *);
1:
1: -typedef void (*btf_trace_writeback_start)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +typedef void (*btf_trace_writeback_start)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *);
1:
1: -typedef void (*btf_trace_writeback_written)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +typedef void (*btf_trace_writeback_written)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *);
1:
1: -typedef void (*btf_trace_writeback_wait)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +typedef void (*btf_trace_writeback_wait)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *);
1:
1: typedef void (*btf_trace_writeback_pages_written)(void *, long int);
1:
1: -typedef void (*btf_trace_writeback_wake_background)(void *, struct bdi_writeback *);
1: +typedef void (*btf_trace_writeback_wake_background)(void *,
1: + struct bdi_writeback *);
1:
1: -typedef void (*btf_trace_writeback_bdi_register)(void *, struct backing_dev_info *);
1: +typedef void (*btf_trace_writeback_bdi_register)(void *,
1: + struct backing_dev_info *);
1:
1: -typedef void (*btf_trace_wbc_writepage)(void *, struct writeback_control *, struct backing_dev_info *);
1: +typedef void (*btf_trace_wbc_writepage)(void *, struct writeback_control *,
1: + struct backing_dev_info *);
1:
1: -typedef void (*btf_trace_writeback_queue_io)(void *, struct bdi_writeback *, struct wb_writeback_work *, long unsigned int, int);
1: +typedef void (*btf_trace_writeback_queue_io)(void *, struct bdi_writeback *,
1: + struct wb_writeback_work *,
1: + long unsigned int, int);
1:
1: -typedef void (*btf_trace_global_dirty_state)(void *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_global_dirty_state)(void *, long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_bdi_dirty_ratelimit)(void *, struct bdi_writeback *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_bdi_dirty_ratelimit)(void *, struct bdi_writeback *,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_balance_dirty_pages)(void *, struct bdi_writeback *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long int, long unsigned int);
1: +typedef void (*btf_trace_balance_dirty_pages)(
1: + void *, struct bdi_writeback *, long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int, long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int, long unsigned int, long int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_writeback_sb_inodes_requeue)(void *, struct inode *);
1:
1: -typedef void (*btf_trace_writeback_congestion_wait)(void *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_writeback_congestion_wait)(void *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_writeback_wait_iff_congested)(void *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_writeback_wait_iff_congested)(void *, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_writeback_single_inode_start)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +typedef void (*btf_trace_writeback_single_inode_start)(
1: + void *, struct inode *, struct writeback_control *, long unsigned int);
1:
1: -typedef void (*btf_trace_writeback_single_inode)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +typedef void (*btf_trace_writeback_single_inode)(void *, struct inode *,
1: + struct writeback_control *,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_writeback_lazytime)(void *, struct inode *);
1:
1: @@ -38296,43 +38836,44 @@ typedef void (*btf_trace_sb_mark_inode_writeback)(void *, struct inode *);
1: typedef void (*btf_trace_sb_clear_inode_writeback)(void *, struct inode *);
1:
1: struct inode_switch_wbs_context {
1: - struct inode *inode;
1: - struct bdi_writeback *new_wb;
1: - struct callback_head callback_head;
1: - struct work_struct work;
1: + struct inode *inode;
1: + struct bdi_writeback *new_wb;
1: + struct callback_head callback_head;
1: + struct work_struct work;
1: };
1:
1: struct splice_desc {
1: - size_t total_len;
1: - unsigned int len;
1: - unsigned int flags;
1: - union {
1: - void *userptr;
1: - struct file *file;
1: - void *data;
1: - } u;
1: - loff_t pos;
1: - loff_t *opos;
1: - size_t num_spliced;
1: - bool need_wakeup;
1: -};
1: -
1: -typedef int splice_actor(struct pipe_inode_info *, struct pipe_buffer *, struct splice_desc *);
1: + size_t total_len;
1: + unsigned int len;
1: + unsigned int flags;
1: + union {
1: + void *userptr;
1: + struct file *file;
1: + void *data;
1: + } u;
1: + loff_t pos;
1: + loff_t *opos;
1: + size_t num_spliced;
1: + bool need_wakeup;
1: +};
1: +
1: +typedef int splice_actor(struct pipe_inode_info *, struct pipe_buffer *,
1: + struct splice_desc *);
1:
1: typedef int splice_direct_actor(struct pipe_inode_info *, struct splice_desc *);
1:
1: struct old_utimbuf32 {
1: - old_time32_t actime;
1: - old_time32_t modtime;
1: + old_time32_t actime;
1: + old_time32_t modtime;
1: };
1:
1: typedef int __kernel_daddr_t;
1:
1: struct ustat {
1: - __kernel_daddr_t f_tfree;
1: - __kernel_ino_t f_tinode;
1: - char f_fname[6];
1: - char f_fpack[6];
1: + __kernel_daddr_t f_tfree;
1: + __kernel_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: };
1:
1: typedef s32 compat_daddr_t;
1: @@ -38340,100 +38881,100 @@ typedef s32 compat_daddr_t;
1: typedef __kernel_fsid_t compat_fsid_t;
1:
1: struct compat_statfs {
1: - int f_type;
1: - int f_bsize;
1: - int f_blocks;
1: - int f_bfree;
1: - int f_bavail;
1: - int f_files;
1: - int f_ffree;
1: - compat_fsid_t f_fsid;
1: - int f_namelen;
1: - int f_frsize;
1: - int f_flags;
1: - int f_spare[4];
1: + int f_type;
1: + int f_bsize;
1: + int f_blocks;
1: + int f_bfree;
1: + int f_bavail;
1: + int f_files;
1: + int f_ffree;
1: + compat_fsid_t f_fsid;
1: + int f_namelen;
1: + int f_frsize;
1: + int f_flags;
1: + int f_spare[4];
1: };
1:
1: struct compat_ustat {
1: - compat_daddr_t f_tfree;
1: - compat_ino_t f_tinode;
1: - char f_fname[6];
1: - char f_fpack[6];
1: + compat_daddr_t f_tfree;
1: + compat_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: };
1:
1: struct statfs {
1: - __kernel_long_t f_type;
1: - __kernel_long_t f_bsize;
1: - __kernel_long_t f_blocks;
1: - __kernel_long_t f_bfree;
1: - __kernel_long_t f_bavail;
1: - __kernel_long_t f_files;
1: - __kernel_long_t f_ffree;
1: - __kernel_fsid_t f_fsid;
1: - __kernel_long_t f_namelen;
1: - __kernel_long_t f_frsize;
1: - __kernel_long_t f_flags;
1: - __kernel_long_t f_spare[4];
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __kernel_long_t f_blocks;
1: + __kernel_long_t f_bfree;
1: + __kernel_long_t f_bavail;
1: + __kernel_long_t f_files;
1: + __kernel_long_t f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: };
1:
1: struct statfs64 {
1: - __kernel_long_t f_type;
1: - __kernel_long_t f_bsize;
1: - __u64 f_blocks;
1: - __u64 f_bfree;
1: - __u64 f_bavail;
1: - __u64 f_files;
1: - __u64 f_ffree;
1: - __kernel_fsid_t f_fsid;
1: - __kernel_long_t f_namelen;
1: - __kernel_long_t f_frsize;
1: - __kernel_long_t f_flags;
1: - __kernel_long_t f_spare[4];
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: };
1:
1: struct compat_statfs64___2 {
1: - __u32 f_type;
1: - __u32 f_bsize;
1: - __u64 f_blocks;
1: - __u64 f_bfree;
1: - __u64 f_bavail;
1: - __u64 f_files;
1: - __u64 f_ffree;
1: - __kernel_fsid_t f_fsid;
1: - __u32 f_namelen;
1: - __u32 f_frsize;
1: - __u32 f_flags;
1: - __u32 f_spare[4];
1: + __u32 f_type;
1: + __u32 f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __u32 f_namelen;
1: + __u32 f_frsize;
1: + __u32 f_flags;
1: + __u32 f_spare[4];
1: } __attribute__((packed));
1:
1: typedef struct ns_common *ns_get_path_helper_t(void *);
1:
1: struct ns_get_path_task_args {
1: - const struct proc_ns_operations *ns_ops;
1: - struct task_struct *task;
1: + const struct proc_ns_operations *ns_ops;
1: + struct task_struct *task;
1: };
1:
1: enum legacy_fs_param {
1: - LEGACY_FS_UNSET_PARAMS = 0,
1: - LEGACY_FS_MONOLITHIC_PARAMS = 1,
1: - LEGACY_FS_INDIVIDUAL_PARAMS = 2,
1: + LEGACY_FS_UNSET_PARAMS = 0,
1: + LEGACY_FS_MONOLITHIC_PARAMS = 1,
1: + LEGACY_FS_INDIVIDUAL_PARAMS = 2,
1: };
1:
1: struct legacy_fs_context {
1: - char *legacy_data;
1: - size_t data_size;
1: - enum legacy_fs_param param_type;
1: + char *legacy_data;
1: + size_t data_size;
1: + enum legacy_fs_param param_type;
1: };
1:
1: enum fsconfig_command {
1: - FSCONFIG_SET_FLAG = 0,
1: - FSCONFIG_SET_STRING = 1,
1: - FSCONFIG_SET_BINARY = 2,
1: - FSCONFIG_SET_PATH = 3,
1: - FSCONFIG_SET_PATH_EMPTY = 4,
1: - FSCONFIG_SET_FD = 5,
1: - FSCONFIG_CMD_CREATE = 6,
1: - FSCONFIG_CMD_RECONFIGURE = 7,
1: + FSCONFIG_SET_FLAG = 0,
1: + FSCONFIG_SET_STRING = 1,
1: + FSCONFIG_SET_BINARY = 2,
1: + FSCONFIG_SET_PATH = 3,
1: + FSCONFIG_SET_PATH_EMPTY = 4,
1: + FSCONFIG_SET_FD = 5,
1: + FSCONFIG_CMD_CREATE = 6,
1: + FSCONFIG_CMD_RECONFIGURE = 7,
1: };
1:
1: struct dax_device;
1: @@ -38441,69 +38982,70 @@ struct dax_device;
1: struct iomap_page_ops;
1:
1: struct iomap___2 {
1: - u64 addr;
1: - loff_t offset;
1: - u64 length;
1: - u16 type;
1: - u16 flags;
1: - struct block_device *bdev;
1: - struct dax_device *dax_dev;
1: - void *inline_data;
1: - void *private;
1: - const struct iomap_page_ops *page_ops;
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + struct block_device *bdev;
1: + struct dax_device *dax_dev;
1: + void *inline_data;
1: + void *private;
1: + const struct iomap_page_ops *page_ops;
1: };
1:
1: struct iomap_page_ops {
1: - int (*page_prepare)(struct inode *, loff_t, unsigned int, struct iomap___2 *);
1: - void (*page_done)(struct inode *, loff_t, unsigned int, struct page *, struct iomap___2 *);
1: + int (*page_prepare)(struct inode *, loff_t, unsigned int, struct iomap___2 *);
1: + void (*page_done)(struct inode *, loff_t, unsigned int, struct page *,
1: + struct iomap___2 *);
1: };
1:
1: struct decrypt_bh_ctx {
1: - struct work_struct work;
1: - struct buffer_head *bh;
1: + struct work_struct work;
1: + struct buffer_head *bh;
1: };
1:
1: struct bh_lru {
1: - struct buffer_head *bhs[16];
1: + struct buffer_head *bhs[16];
1: };
1:
1: struct bh_accounting {
1: - int nr;
1: - int ratelimit;
1: + int nr;
1: + int ratelimit;
1: };
1:
1: enum {
1: - DISK_EVENT_MEDIA_CHANGE = 1,
1: - DISK_EVENT_EJECT_REQUEST = 2,
1: + DISK_EVENT_MEDIA_CHANGE = 1,
1: + DISK_EVENT_EJECT_REQUEST = 2,
1: };
1:
1: enum {
1: - BIOSET_NEED_BVECS = 1,
1: - BIOSET_NEED_RESCUER = 2,
1: + BIOSET_NEED_BVECS = 1,
1: + BIOSET_NEED_RESCUER = 2,
1: };
1:
1: struct bdev_inode {
1: - struct block_device bdev;
1: - struct inode vfs_inode;
1: + struct block_device bdev;
1: + struct inode vfs_inode;
1: };
1:
1: struct blkdev_dio {
1: - union {
1: - struct kiocb *iocb;
1: - struct task_struct *waiter;
1: - };
1: - size_t size;
1: - atomic_t ref;
1: - bool multi_bio: 1;
1: - bool should_dirty: 1;
1: - bool is_sync: 1;
1: - struct bio bio;
1: + union {
1: + struct kiocb *iocb;
1: + struct task_struct *waiter;
1: + };
1: + size_t size;
1: + atomic_t ref;
1: + bool multi_bio : 1;
1: + bool should_dirty : 1;
1: + bool is_sync : 1;
1: + struct bio bio;
1: };
1:
1: struct bd_holder_disk {
1: - struct list_head list;
1: - struct gendisk *disk;
1: - int refcnt;
1: + struct list_head list;
1: + struct gendisk *disk;
1: + int refcnt;
1: };
1:
1: typedef int dio_iodone_t(struct kiocb *, loff_t, ssize_t, void *);
1: @@ -38511,88 +39053,88 @@ typedef int dio_iodone_t(struct kiocb *, loff_t, ssize_t, void *);
1: typedef void dio_submit_t(struct bio *, struct inode *, loff_t);
1:
1: enum {
1: - DIO_LOCKING = 1,
1: - DIO_SKIP_HOLES = 2,
1: + DIO_LOCKING = 1,
1: + DIO_SKIP_HOLES = 2,
1: };
1:
1: struct dio_submit {
1: - struct bio *bio;
1: - unsigned int blkbits;
1: - unsigned int blkfactor;
1: - unsigned int start_zero_done;
1: - int pages_in_io;
1: - sector_t block_in_file;
1: - unsigned int blocks_available;
1: - int reap_counter;
1: - sector_t final_block_in_request;
1: - int boundary;
1: - get_block_t *get_block;
1: - dio_submit_t *submit_io;
1: - loff_t logical_offset_in_bio;
1: - sector_t final_block_in_bio;
1: - sector_t next_block_for_io;
1: - struct page *cur_page;
1: - unsigned int cur_page_offset;
1: - unsigned int cur_page_len;
1: - sector_t cur_page_block;
1: - loff_t cur_page_fs_offset;
1: - struct iov_iter *iter;
1: - unsigned int head;
1: - unsigned int tail;
1: - size_t from;
1: - size_t to;
1: + struct bio *bio;
1: + unsigned int blkbits;
1: + unsigned int blkfactor;
1: + unsigned int start_zero_done;
1: + int pages_in_io;
1: + sector_t block_in_file;
1: + unsigned int blocks_available;
1: + int reap_counter;
1: + sector_t final_block_in_request;
1: + int boundary;
1: + get_block_t *get_block;
1: + dio_submit_t *submit_io;
1: + loff_t logical_offset_in_bio;
1: + sector_t final_block_in_bio;
1: + sector_t next_block_for_io;
1: + struct page *cur_page;
1: + unsigned int cur_page_offset;
1: + unsigned int cur_page_len;
1: + sector_t cur_page_block;
1: + loff_t cur_page_fs_offset;
1: + struct iov_iter *iter;
1: + unsigned int head;
1: + unsigned int tail;
1: + size_t from;
1: + size_t to;
1: };
1:
1: struct dio {
1: - int flags;
1: - int op;
1: - int op_flags;
1: - blk_qc_t bio_cookie;
1: - struct gendisk *bio_disk;
1: - struct inode *inode;
1: - loff_t i_size;
1: - dio_iodone_t *end_io;
1: - void *private;
1: - spinlock_t bio_lock;
1: - int page_errors;
1: - int is_async;
1: - bool defer_completion;
1: - bool should_dirty;
1: - int io_error;
1: - long unsigned int refcount;
1: - struct bio *bio_list;
1: - struct task_struct *waiter;
1: - struct kiocb *iocb;
1: - ssize_t result;
1: - union {
1: - struct page *pages[64];
1: - struct work_struct complete_work;
1: - };
1: - long: 64;
1: + int flags;
1: + int op;
1: + int op_flags;
1: + blk_qc_t bio_cookie;
1: + struct gendisk *bio_disk;
1: + struct inode *inode;
1: + loff_t i_size;
1: + dio_iodone_t *end_io;
1: + void *private;
1: + spinlock_t bio_lock;
1: + int page_errors;
1: + int is_async;
1: + bool defer_completion;
1: + bool should_dirty;
1: + int io_error;
1: + long unsigned int refcount;
1: + struct bio *bio_list;
1: + struct task_struct *waiter;
1: + struct kiocb *iocb;
1: + ssize_t result;
1: + union {
1: + struct page *pages[64];
1: + struct work_struct complete_work;
1: + };
1: + long : 64;
1: };
1:
1: struct bvec_iter_all {
1: - struct bio_vec bv;
1: - int idx;
1: - unsigned int done;
1: + struct bio_vec bv;
1: + int idx;
1: + unsigned int done;
1: };
1:
1: struct mpage_readpage_args {
1: - struct bio *bio;
1: - struct page *page;
1: - unsigned int nr_pages;
1: - bool is_readahead;
1: - sector_t last_block_in_bio;
1: - struct buffer_head map_bh;
1: - long unsigned int first_logical_block;
1: - get_block_t *get_block;
1: + struct bio *bio;
1: + struct page *page;
1: + unsigned int nr_pages;
1: + bool is_readahead;
1: + sector_t last_block_in_bio;
1: + struct buffer_head map_bh;
1: + long unsigned int first_logical_block;
1: + get_block_t *get_block;
1: };
1:
1: struct mpage_data {
1: - struct bio *bio;
1: - sector_t last_block_in_bio;
1: - get_block_t *get_block;
1: - unsigned int use_writepage;
1: + struct bio *bio;
1: + sector_t last_block_in_bio;
1: + get_block_t *get_block;
1: + unsigned int use_writepage;
1: };
1:
1: typedef u32 nlink_t;
1: @@ -38600,433 +39142,434 @@ typedef u32 nlink_t;
1: typedef int (*proc_write_t)(struct file *, char *, size_t);
1:
1: struct proc_dir_entry {
1: - atomic_t in_use;
1: - refcount_t refcnt;
1: - struct list_head pde_openers;
1: - spinlock_t pde_unload_lock;
1: - struct completion *pde_unload_completion;
1: - const struct inode_operations *proc_iops;
1: - union {
1: - const struct proc_ops *proc_ops;
1: - const struct file_operations *proc_dir_ops;
1: - };
1: - const struct dentry_operations *proc_dops;
1: - union {
1: - const struct seq_operations *seq_ops;
1: - int (*single_show)(struct seq_file *, void *);
1: - };
1: - proc_write_t write;
1: - void *data;
1: - unsigned int state_size;
1: - unsigned int low_ino;
1: - nlink_t nlink;
1: - kuid_t uid;
1: - kgid_t gid;
1: - loff_t size;
1: - struct proc_dir_entry *parent;
1: - struct rb_root subdir;
1: - struct rb_node subdir_node;
1: - char *name;
1: - umode_t mode;
1: - u8 flags;
1: - u8 namelen;
1: - char inline_name[0];
1: + atomic_t in_use;
1: + refcount_t refcnt;
1: + struct list_head pde_openers;
1: + spinlock_t pde_unload_lock;
1: + struct completion *pde_unload_completion;
1: + const struct inode_operations *proc_iops;
1: + union {
1: + const struct proc_ops *proc_ops;
1: + const struct file_operations *proc_dir_ops;
1: + };
1: + const struct dentry_operations *proc_dops;
1: + union {
1: + const struct seq_operations *seq_ops;
1: + int (*single_show)(struct seq_file *, void *);
1: + };
1: + proc_write_t write;
1: + void *data;
1: + unsigned int state_size;
1: + unsigned int low_ino;
1: + nlink_t nlink;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct proc_dir_entry *parent;
1: + struct rb_root subdir;
1: + struct rb_node subdir_node;
1: + char *name;
1: + umode_t mode;
1: + u8 flags;
1: + u8 namelen;
1: + char inline_name[0];
1: };
1:
1: union proc_op {
1: - int (*proc_get_link)(struct dentry *, struct path *);
1: - int (*proc_show)(struct seq_file *, struct pid_namespace *, struct pid *, struct task_struct *);
1: - const char *lsm;
1: + int (*proc_get_link)(struct dentry *, struct path *);
1: + int (*proc_show)(struct seq_file *, struct pid_namespace *, struct pid *,
1: + struct task_struct *);
1: + const char *lsm;
1: };
1:
1: struct proc_inode {
1: - struct pid *pid;
1: - unsigned int fd;
1: - union proc_op op;
1: - struct proc_dir_entry *pde;
1: - struct ctl_table_header *sysctl;
1: - struct ctl_table *sysctl_entry;
1: - struct hlist_node sibling_inodes;
1: - const struct proc_ns_operations *ns_ops;
1: - struct inode vfs_inode;
1: + struct pid *pid;
1: + unsigned int fd;
1: + union proc_op op;
1: + struct proc_dir_entry *pde;
1: + struct ctl_table_header *sysctl;
1: + struct ctl_table *sysctl_entry;
1: + struct hlist_node sibling_inodes;
1: + const struct proc_ns_operations *ns_ops;
1: + struct inode vfs_inode;
1: };
1:
1: struct proc_fs_opts {
1: - int flag;
1: - const char *str;
1: + int flag;
1: + const char *str;
1: };
1:
1: struct file_handle {
1: - __u32 handle_bytes;
1: - int handle_type;
1: - unsigned char f_handle[0];
1: + __u32 handle_bytes;
1: + int handle_type;
1: + unsigned char f_handle[0];
1: };
1:
1: struct inotify_inode_mark {
1: - struct fsnotify_mark fsn_mark;
1: - int wd;
1: + struct fsnotify_mark fsn_mark;
1: + int wd;
1: };
1:
1: struct dnotify_struct {
1: - struct dnotify_struct *dn_next;
1: - __u32 dn_mask;
1: - int dn_fd;
1: - struct file *dn_filp;
1: - fl_owner_t dn_owner;
1: + struct dnotify_struct *dn_next;
1: + __u32 dn_mask;
1: + int dn_fd;
1: + struct file *dn_filp;
1: + fl_owner_t dn_owner;
1: };
1:
1: struct dnotify_mark {
1: - struct fsnotify_mark fsn_mark;
1: - struct dnotify_struct *dn;
1: + struct fsnotify_mark fsn_mark;
1: + struct dnotify_struct *dn;
1: };
1:
1: struct inotify_event_info {
1: - struct fsnotify_event fse;
1: - u32 mask;
1: - int wd;
1: - u32 sync_cookie;
1: - int name_len;
1: - char name[0];
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + int wd;
1: + u32 sync_cookie;
1: + int name_len;
1: + char name[0];
1: };
1:
1: struct inotify_event {
1: - __s32 wd;
1: - __u32 mask;
1: - __u32 cookie;
1: - __u32 len;
1: - char name[0];
1: + __s32 wd;
1: + __u32 mask;
1: + __u32 cookie;
1: + __u32 len;
1: + char name[0];
1: };
1:
1: enum {
1: - FAN_EVENT_INIT = 0,
1: - FAN_EVENT_REPORTED = 1,
1: - FAN_EVENT_ANSWERED = 2,
1: - FAN_EVENT_CANCELED = 3,
1: + FAN_EVENT_INIT = 0,
1: + FAN_EVENT_REPORTED = 1,
1: + FAN_EVENT_ANSWERED = 2,
1: + FAN_EVENT_CANCELED = 3,
1: };
1:
1: struct fanotify_fh {
1: - u8 type;
1: - u8 len;
1: - u8 flags;
1: - u8 pad;
1: - unsigned char buf[0];
1: + u8 type;
1: + u8 len;
1: + u8 flags;
1: + u8 pad;
1: + unsigned char buf[0];
1: };
1:
1: struct fanotify_info {
1: - u8 dir_fh_totlen;
1: - u8 file_fh_totlen;
1: - u8 name_len;
1: - u8 pad;
1: - unsigned char buf[0];
1: + u8 dir_fh_totlen;
1: + u8 file_fh_totlen;
1: + u8 name_len;
1: + u8 pad;
1: + unsigned char buf[0];
1: };
1:
1: enum fanotify_event_type {
1: - FANOTIFY_EVENT_TYPE_FID = 0,
1: - FANOTIFY_EVENT_TYPE_FID_NAME = 1,
1: - FANOTIFY_EVENT_TYPE_PATH = 2,
1: - FANOTIFY_EVENT_TYPE_PATH_PERM = 3,
1: - FANOTIFY_EVENT_TYPE_OVERFLOW = 4,
1: + FANOTIFY_EVENT_TYPE_FID = 0,
1: + FANOTIFY_EVENT_TYPE_FID_NAME = 1,
1: + FANOTIFY_EVENT_TYPE_PATH = 2,
1: + FANOTIFY_EVENT_TYPE_PATH_PERM = 3,
1: + FANOTIFY_EVENT_TYPE_OVERFLOW = 4,
1: };
1:
1: struct fanotify_event {
1: - struct fsnotify_event fse;
1: - u32 mask;
1: - enum fanotify_event_type type;
1: - struct pid *pid;
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + enum fanotify_event_type type;
1: + struct pid *pid;
1: };
1:
1: struct fanotify_fid_event {
1: - struct fanotify_event fae;
1: - __kernel_fsid_t fsid;
1: - struct fanotify_fh object_fh;
1: - unsigned char _inline_fh_buf[12];
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_fh object_fh;
1: + unsigned char _inline_fh_buf[12];
1: };
1:
1: struct fanotify_name_event {
1: - struct fanotify_event fae;
1: - __kernel_fsid_t fsid;
1: - struct fanotify_info info;
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_info info;
1: };
1:
1: struct fanotify_path_event {
1: - struct fanotify_event fae;
1: - struct path path;
1: + struct fanotify_event fae;
1: + struct path path;
1: };
1:
1: struct fanotify_perm_event {
1: - struct fanotify_event fae;
1: - struct path path;
1: - short unsigned int response;
1: - short unsigned int state;
1: - int fd;
1: + struct fanotify_event fae;
1: + struct path path;
1: + short unsigned int response;
1: + short unsigned int state;
1: + int fd;
1: };
1:
1: struct fanotify_event_metadata {
1: - __u32 event_len;
1: - __u8 vers;
1: - __u8 reserved;
1: - __u16 metadata_len;
1: - __u64 mask;
1: - __s32 fd;
1: - __s32 pid;
1: + __u32 event_len;
1: + __u8 vers;
1: + __u8 reserved;
1: + __u16 metadata_len;
1: + __u64 mask;
1: + __s32 fd;
1: + __s32 pid;
1: };
1:
1: struct fanotify_event_info_header {
1: - __u8 info_type;
1: - __u8 pad;
1: - __u16 len;
1: + __u8 info_type;
1: + __u8 pad;
1: + __u16 len;
1: };
1:
1: struct fanotify_event_info_fid {
1: - struct fanotify_event_info_header hdr;
1: - __kernel_fsid_t fsid;
1: - unsigned char handle[0];
1: + struct fanotify_event_info_header hdr;
1: + __kernel_fsid_t fsid;
1: + unsigned char handle[0];
1: };
1:
1: struct fanotify_response {
1: - __s32 fd;
1: - __u32 response;
1: + __s32 fd;
1: + __u32 response;
1: };
1:
1: struct epoll_event {
1: - __poll_t events;
1: - __u64 data;
1: + __poll_t events;
1: + __u64 data;
1: };
1:
1: struct epoll_filefd {
1: - struct file *file;
1: - int fd;
1: + struct file *file;
1: + int fd;
1: } __attribute__((packed));
1:
1: struct nested_call_node {
1: - struct list_head llink;
1: - void *cookie;
1: - void *ctx;
1: + struct list_head llink;
1: + void *cookie;
1: + void *ctx;
1: };
1:
1: struct nested_calls {
1: - struct list_head tasks_call_list;
1: - spinlock_t lock;
1: + struct list_head tasks_call_list;
1: + spinlock_t lock;
1: };
1:
1: struct eventpoll;
1:
1: struct epitem {
1: - union {
1: - struct rb_node rbn;
1: - struct callback_head rcu;
1: - };
1: - struct list_head rdllink;
1: - struct epitem *next;
1: - struct epoll_filefd ffd;
1: - int nwait;
1: - struct list_head pwqlist;
1: - struct eventpoll *ep;
1: - struct list_head fllink;
1: - struct wakeup_source *ws;
1: - struct epoll_event event;
1: + union {
1: + struct rb_node rbn;
1: + struct callback_head rcu;
1: + };
1: + struct list_head rdllink;
1: + struct epitem *next;
1: + struct epoll_filefd ffd;
1: + int nwait;
1: + struct list_head pwqlist;
1: + struct eventpoll *ep;
1: + struct list_head fllink;
1: + struct wakeup_source *ws;
1: + struct epoll_event event;
1: };
1:
1: struct eventpoll {
1: - struct mutex mtx;
1: - wait_queue_head_t wq;
1: - wait_queue_head_t poll_wait;
1: - struct list_head rdllist;
1: - rwlock_t lock;
1: - struct rb_root_cached rbr;
1: - struct epitem *ovflist;
1: - struct wakeup_source *ws;
1: - struct user_struct *user;
1: - struct file *file;
1: - u64 gen;
1: - unsigned int napi_id;
1: + struct mutex mtx;
1: + wait_queue_head_t wq;
1: + wait_queue_head_t poll_wait;
1: + struct list_head rdllist;
1: + rwlock_t lock;
1: + struct rb_root_cached rbr;
1: + struct epitem *ovflist;
1: + struct wakeup_source *ws;
1: + struct user_struct *user;
1: + struct file *file;
1: + u64 gen;
1: + unsigned int napi_id;
1: };
1:
1: struct eppoll_entry {
1: - struct list_head llink;
1: - struct epitem *base;
1: - wait_queue_entry_t wait;
1: - wait_queue_head_t *whead;
1: + struct list_head llink;
1: + struct epitem *base;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *whead;
1: };
1:
1: struct ep_pqueue {
1: - poll_table pt;
1: - struct epitem *epi;
1: + poll_table pt;
1: + struct epitem *epi;
1: };
1:
1: struct ep_send_events_data {
1: - int maxevents;
1: - struct epoll_event *events;
1: - int res;
1: + int maxevents;
1: + struct epoll_event *events;
1: + int res;
1: };
1:
1: struct signalfd_siginfo {
1: - __u32 ssi_signo;
1: - __s32 ssi_errno;
1: - __s32 ssi_code;
1: - __u32 ssi_pid;
1: - __u32 ssi_uid;
1: - __s32 ssi_fd;
1: - __u32 ssi_tid;
1: - __u32 ssi_band;
1: - __u32 ssi_overrun;
1: - __u32 ssi_trapno;
1: - __s32 ssi_status;
1: - __s32 ssi_int;
1: - __u64 ssi_ptr;
1: - __u64 ssi_utime;
1: - __u64 ssi_stime;
1: - __u64 ssi_addr;
1: - __u16 ssi_addr_lsb;
1: - __u16 __pad2;
1: - __s32 ssi_syscall;
1: - __u64 ssi_call_addr;
1: - __u32 ssi_arch;
1: - __u8 __pad[28];
1: + __u32 ssi_signo;
1: + __s32 ssi_errno;
1: + __s32 ssi_code;
1: + __u32 ssi_pid;
1: + __u32 ssi_uid;
1: + __s32 ssi_fd;
1: + __u32 ssi_tid;
1: + __u32 ssi_band;
1: + __u32 ssi_overrun;
1: + __u32 ssi_trapno;
1: + __s32 ssi_status;
1: + __s32 ssi_int;
1: + __u64 ssi_ptr;
1: + __u64 ssi_utime;
1: + __u64 ssi_stime;
1: + __u64 ssi_addr;
1: + __u16 ssi_addr_lsb;
1: + __u16 __pad2;
1: + __s32 ssi_syscall;
1: + __u64 ssi_call_addr;
1: + __u32 ssi_arch;
1: + __u8 __pad[28];
1: };
1:
1: struct signalfd_ctx {
1: - sigset_t sigmask;
1: + sigset_t sigmask;
1: };
1:
1: struct timerfd_ctx {
1: - union {
1: - struct hrtimer tmr;
1: - struct alarm alarm;
1: - } t;
1: - ktime_t tintv;
1: - ktime_t moffs;
1: - wait_queue_head_t wqh;
1: - u64 ticks;
1: - int clockid;
1: - short unsigned int expired;
1: - short unsigned int settime_flags;
1: - struct callback_head rcu;
1: - struct list_head clist;
1: - spinlock_t cancel_lock;
1: - bool might_cancel;
1: + union {
1: + struct hrtimer tmr;
1: + struct alarm alarm;
1: + } t;
1: + ktime_t tintv;
1: + ktime_t moffs;
1: + wait_queue_head_t wqh;
1: + u64 ticks;
1: + int clockid;
1: + short unsigned int expired;
1: + short unsigned int settime_flags;
1: + struct callback_head rcu;
1: + struct list_head clist;
1: + spinlock_t cancel_lock;
1: + bool might_cancel;
1: };
1:
1: struct eventfd_ctx___2 {
1: - struct kref kref;
1: - wait_queue_head_t wqh;
1: - __u64 count;
1: - unsigned int flags;
1: - int id;
1: + struct kref kref;
1: + wait_queue_head_t wqh;
1: + __u64 count;
1: + unsigned int flags;
1: + int id;
1: };
1:
1: enum userfaultfd_state {
1: - UFFD_STATE_WAIT_API = 0,
1: - UFFD_STATE_RUNNING = 1,
1: + UFFD_STATE_WAIT_API = 0,
1: + UFFD_STATE_RUNNING = 1,
1: };
1:
1: struct userfaultfd_ctx {
1: - wait_queue_head_t fault_pending_wqh;
1: - wait_queue_head_t fault_wqh;
1: - wait_queue_head_t fd_wqh;
1: - wait_queue_head_t event_wqh;
1: - seqcount_spinlock_t refile_seq;
1: - refcount_t refcount;
1: - unsigned int flags;
1: - unsigned int features;
1: - enum userfaultfd_state state;
1: - bool released;
1: - bool mmap_changing;
1: - struct mm_struct *mm;
1: + wait_queue_head_t fault_pending_wqh;
1: + wait_queue_head_t fault_wqh;
1: + wait_queue_head_t fd_wqh;
1: + wait_queue_head_t event_wqh;
1: + seqcount_spinlock_t refile_seq;
1: + refcount_t refcount;
1: + unsigned int flags;
1: + unsigned int features;
1: + enum userfaultfd_state state;
1: + bool released;
1: + bool mmap_changing;
1: + struct mm_struct *mm;
1: };
1:
1: struct uffd_msg {
1: - __u8 event;
1: - __u8 reserved1;
1: - __u16 reserved2;
1: - __u32 reserved3;
1: - union {
1: - struct {
1: - __u64 flags;
1: - __u64 address;
1: - union {
1: - __u32 ptid;
1: - } feat;
1: - } pagefault;
1: - struct {
1: - __u32 ufd;
1: - } fork;
1: - struct {
1: - __u64 from;
1: - __u64 to;
1: - __u64 len;
1: - } remap;
1: - struct {
1: - __u64 start;
1: - __u64 end;
1: - } remove;
1: - struct {
1: - __u64 reserved1;
1: - __u64 reserved2;
1: - __u64 reserved3;
1: - } reserved;
1: - } arg;
1: + __u8 event;
1: + __u8 reserved1;
1: + __u16 reserved2;
1: + __u32 reserved3;
1: + union {
1: + struct {
1: + __u64 flags;
1: + __u64 address;
1: + union {
1: + __u32 ptid;
1: + } feat;
1: + } pagefault;
1: + struct {
1: + __u32 ufd;
1: + } fork;
1: + struct {
1: + __u64 from;
1: + __u64 to;
1: + __u64 len;
1: + } remap;
1: + struct {
1: + __u64 start;
1: + __u64 end;
1: + } remove;
1: + struct {
1: + __u64 reserved1;
1: + __u64 reserved2;
1: + __u64 reserved3;
1: + } reserved;
1: + } arg;
1: };
1:
1: struct uffdio_api {
1: - __u64 api;
1: - __u64 features;
1: - __u64 ioctls;
1: + __u64 api;
1: + __u64 features;
1: + __u64 ioctls;
1: };
1:
1: struct uffdio_range {
1: - __u64 start;
1: - __u64 len;
1: + __u64 start;
1: + __u64 len;
1: };
1:
1: struct uffdio_register {
1: - struct uffdio_range range;
1: - __u64 mode;
1: - __u64 ioctls;
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __u64 ioctls;
1: };
1:
1: struct uffdio_copy {
1: - __u64 dst;
1: - __u64 src;
1: - __u64 len;
1: - __u64 mode;
1: - __s64 copy;
1: + __u64 dst;
1: + __u64 src;
1: + __u64 len;
1: + __u64 mode;
1: + __s64 copy;
1: };
1:
1: struct uffdio_zeropage {
1: - struct uffdio_range range;
1: - __u64 mode;
1: - __s64 zeropage;
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __s64 zeropage;
1: };
1:
1: struct uffdio_writeprotect {
1: - struct uffdio_range range;
1: - __u64 mode;
1: + struct uffdio_range range;
1: + __u64 mode;
1: };
1:
1: struct userfaultfd_fork_ctx {
1: - struct userfaultfd_ctx *orig;
1: - struct userfaultfd_ctx *new;
1: - struct list_head list;
1: + struct userfaultfd_ctx *orig;
1: + struct userfaultfd_ctx *new;
1: + struct list_head list;
1: };
1:
1: struct userfaultfd_unmap_ctx {
1: - struct userfaultfd_ctx *ctx;
1: - long unsigned int start;
1: - long unsigned int end;
1: - struct list_head list;
1: + struct userfaultfd_ctx *ctx;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct list_head list;
1: };
1:
1: struct userfaultfd_wait_queue {
1: - struct uffd_msg msg;
1: - wait_queue_entry_t wq;
1: - struct userfaultfd_ctx *ctx;
1: - bool waken;
1: + struct uffd_msg msg;
1: + wait_queue_entry_t wq;
1: + struct userfaultfd_ctx *ctx;
1: + bool waken;
1: };
1:
1: struct userfaultfd_wake_range {
1: - long unsigned int start;
1: - long unsigned int len;
1: + long unsigned int start;
1: + long unsigned int len;
1: };
1:
1: typedef u32 compat_aio_context_t;
1: @@ -39034,58 +39577,58 @@ typedef u32 compat_aio_context_t;
1: struct kioctx;
1:
1: struct kioctx_table {
1: - struct callback_head rcu;
1: - unsigned int nr;
1: - struct kioctx *table[0];
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + struct kioctx *table[0];
1: };
1:
1: typedef __kernel_ulong_t aio_context_t;
1:
1: enum {
1: - IOCB_CMD_PREAD = 0,
1: - IOCB_CMD_PWRITE = 1,
1: - IOCB_CMD_FSYNC = 2,
1: - IOCB_CMD_FDSYNC = 3,
1: - IOCB_CMD_POLL = 5,
1: - IOCB_CMD_NOOP = 6,
1: - IOCB_CMD_PREADV = 7,
1: - IOCB_CMD_PWRITEV = 8,
1: + IOCB_CMD_PREAD = 0,
1: + IOCB_CMD_PWRITE = 1,
1: + IOCB_CMD_FSYNC = 2,
1: + IOCB_CMD_FDSYNC = 3,
1: + IOCB_CMD_POLL = 5,
1: + IOCB_CMD_NOOP = 6,
1: + IOCB_CMD_PREADV = 7,
1: + IOCB_CMD_PWRITEV = 8,
1: };
1:
1: struct io_event {
1: - __u64 data;
1: - __u64 obj;
1: - __s64 res;
1: - __s64 res2;
1: + __u64 data;
1: + __u64 obj;
1: + __s64 res;
1: + __s64 res2;
1: };
1:
1: struct iocb {
1: - __u64 aio_data;
1: - __u32 aio_key;
1: - __kernel_rwf_t aio_rw_flags;
1: - __u16 aio_lio_opcode;
1: - __s16 aio_reqprio;
1: - __u32 aio_fildes;
1: - __u64 aio_buf;
1: - __u64 aio_nbytes;
1: - __s64 aio_offset;
1: - __u64 aio_reserved2;
1: - __u32 aio_flags;
1: - __u32 aio_resfd;
1: + __u64 aio_data;
1: + __u32 aio_key;
1: + __kernel_rwf_t aio_rw_flags;
1: + __u16 aio_lio_opcode;
1: + __s16 aio_reqprio;
1: + __u32 aio_fildes;
1: + __u64 aio_buf;
1: + __u64 aio_nbytes;
1: + __s64 aio_offset;
1: + __u64 aio_reserved2;
1: + __u32 aio_flags;
1: + __u32 aio_resfd;
1: };
1:
1: typedef int kiocb_cancel_fn(struct kiocb *);
1:
1: struct aio_ring {
1: - unsigned int id;
1: - unsigned int nr;
1: - unsigned int head;
1: - unsigned int tail;
1: - unsigned int magic;
1: - unsigned int compat_features;
1: - unsigned int incompat_features;
1: - unsigned int header_length;
1: - struct io_event io_events[0];
1: + unsigned int id;
1: + unsigned int nr;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int magic;
1: + unsigned int compat_features;
1: + unsigned int incompat_features;
1: + unsigned int header_length;
1: + struct io_event io_events[0];
1: };
1:
1: struct kioctx_cpu;
1: @@ -39093,305 +39636,305 @@ struct kioctx_cpu;
1: struct ctx_rq_wait;
1:
1: struct kioctx {
1: - struct percpu_ref users;
1: - atomic_t dead;
1: - struct percpu_ref reqs;
1: - long unsigned int user_id;
1: - struct kioctx_cpu *cpu;
1: - unsigned int req_batch;
1: - unsigned int max_reqs;
1: - unsigned int nr_events;
1: - long unsigned int mmap_base;
1: - long unsigned int mmap_size;
1: - struct page **ring_pages;
1: - long int nr_pages;
1: - struct rcu_work free_rwork;
1: - struct ctx_rq_wait *rq_wait;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct {
1: - atomic_t reqs_available;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct {
1: - spinlock_t ctx_lock;
1: - struct list_head active_reqs;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct {
1: - struct mutex ring_lock;
1: - wait_queue_head_t wait;
1: - long: 64;
1: - };
1: - struct {
1: - unsigned int tail;
1: - unsigned int completed_events;
1: - spinlock_t completion_lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct page *internal_pages[8];
1: - struct file *aio_ring_file;
1: - unsigned int id;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct percpu_ref users;
1: + atomic_t dead;
1: + struct percpu_ref reqs;
1: + long unsigned int user_id;
1: + struct kioctx_cpu *cpu;
1: + unsigned int req_batch;
1: + unsigned int max_reqs;
1: + unsigned int nr_events;
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_size;
1: + struct page **ring_pages;
1: + long int nr_pages;
1: + struct rcu_work free_rwork;
1: + struct ctx_rq_wait *rq_wait;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct {
1: + atomic_t reqs_available;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct {
1: + spinlock_t ctx_lock;
1: + struct list_head active_reqs;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct {
1: + struct mutex ring_lock;
1: + wait_queue_head_t wait;
1: + long : 64;
1: + };
1: + struct {
1: + unsigned int tail;
1: + unsigned int completed_events;
1: + spinlock_t completion_lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct page *internal_pages[8];
1: + struct file *aio_ring_file;
1: + unsigned int id;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct kioctx_cpu {
1: - unsigned int reqs_available;
1: + unsigned int reqs_available;
1: };
1:
1: struct ctx_rq_wait {
1: - struct completion comp;
1: - atomic_t count;
1: + struct completion comp;
1: + atomic_t count;
1: };
1:
1: struct fsync_iocb {
1: - struct file *file;
1: - struct work_struct work;
1: - bool datasync;
1: - struct cred *creds;
1: + struct file *file;
1: + struct work_struct work;
1: + bool datasync;
1: + struct cred *creds;
1: };
1:
1: struct poll_iocb {
1: - struct file *file;
1: - struct wait_queue_head *head;
1: - __poll_t events;
1: - bool done;
1: - bool cancelled;
1: - struct wait_queue_entry wait;
1: - struct work_struct work;
1: + struct file *file;
1: + struct wait_queue_head *head;
1: + __poll_t events;
1: + bool done;
1: + bool cancelled;
1: + struct wait_queue_entry wait;
1: + struct work_struct work;
1: };
1:
1: struct aio_kiocb {
1: - union {
1: - struct file *ki_filp;
1: - struct kiocb rw;
1: - struct fsync_iocb fsync;
1: - struct poll_iocb poll;
1: - };
1: - struct kioctx *ki_ctx;
1: - kiocb_cancel_fn *ki_cancel;
1: - struct io_event ki_res;
1: - struct list_head ki_list;
1: - refcount_t ki_refcnt;
1: - struct eventfd_ctx *ki_eventfd;
1: + union {
1: + struct file *ki_filp;
1: + struct kiocb rw;
1: + struct fsync_iocb fsync;
1: + struct poll_iocb poll;
1: + };
1: + struct kioctx *ki_ctx;
1: + kiocb_cancel_fn *ki_cancel;
1: + struct io_event ki_res;
1: + struct list_head ki_list;
1: + refcount_t ki_refcnt;
1: + struct eventfd_ctx *ki_eventfd;
1: };
1:
1: struct aio_poll_table {
1: - struct poll_table_struct pt;
1: - struct aio_kiocb *iocb;
1: - int error;
1: + struct poll_table_struct pt;
1: + struct aio_kiocb *iocb;
1: + int error;
1: };
1:
1: struct __aio_sigset {
1: - const sigset_t *sigmask;
1: - size_t sigsetsize;
1: + const sigset_t *sigmask;
1: + size_t sigsetsize;
1: };
1:
1: struct __compat_aio_sigset {
1: - compat_uptr_t sigmask;
1: - compat_size_t sigsetsize;
1: + compat_uptr_t sigmask;
1: + compat_size_t sigsetsize;
1: };
1:
1: typedef s32 compat_ssize_t;
1:
1: enum {
1: - PERCPU_REF_INIT_ATOMIC = 1,
1: - PERCPU_REF_INIT_DEAD = 2,
1: - PERCPU_REF_ALLOW_REINIT = 4,
1: + PERCPU_REF_INIT_ATOMIC = 1,
1: + PERCPU_REF_INIT_DEAD = 2,
1: + PERCPU_REF_ALLOW_REINIT = 4,
1: };
1:
1: struct user_msghdr {
1: - void *msg_name;
1: - int msg_namelen;
1: - struct iovec *msg_iov;
1: - __kernel_size_t msg_iovlen;
1: - void *msg_control;
1: - __kernel_size_t msg_controllen;
1: - unsigned int msg_flags;
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iovec *msg_iov;
1: + __kernel_size_t msg_iovlen;
1: + void *msg_control;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: };
1:
1: struct compat_msghdr {
1: - compat_uptr_t msg_name;
1: - compat_int_t msg_namelen;
1: - compat_uptr_t msg_iov;
1: - compat_size_t msg_iovlen;
1: - compat_uptr_t msg_control;
1: - compat_size_t msg_controllen;
1: - compat_uint_t msg_flags;
1: + compat_uptr_t msg_name;
1: + compat_int_t msg_namelen;
1: + compat_uptr_t msg_iov;
1: + compat_size_t msg_iovlen;
1: + compat_uptr_t msg_control;
1: + compat_size_t msg_controllen;
1: + compat_uint_t msg_flags;
1: };
1:
1: struct scm_fp_list {
1: - short int count;
1: - short int max;
1: - struct user_struct *user;
1: - struct file *fp[253];
1: + short int count;
1: + short int max;
1: + struct user_struct *user;
1: + struct file *fp[253];
1: };
1:
1: struct unix_skb_parms {
1: - struct pid *pid;
1: - kuid_t uid;
1: - kgid_t gid;
1: - struct scm_fp_list *fp;
1: - u32 secid;
1: - u32 consumed;
1: + struct pid *pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct scm_fp_list *fp;
1: + u32 secid;
1: + u32 consumed;
1: };
1:
1: struct trace_event_raw_io_uring_create {
1: - struct trace_entry ent;
1: - int fd;
1: - void *ctx;
1: - u32 sq_entries;
1: - u32 cq_entries;
1: - u32 flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int fd;
1: + void *ctx;
1: + u32 sq_entries;
1: + u32 cq_entries;
1: + u32 flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_register {
1: - struct trace_entry ent;
1: - void *ctx;
1: - unsigned int opcode;
1: - unsigned int nr_files;
1: - unsigned int nr_bufs;
1: - bool eventfd;
1: - long int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + unsigned int opcode;
1: + unsigned int nr_files;
1: + unsigned int nr_bufs;
1: + bool eventfd;
1: + long int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_file_get {
1: - struct trace_entry ent;
1: - void *ctx;
1: - int fd;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + int fd;
1: + char __data[0];
1: };
1:
1: struct io_wq_work;
1:
1: struct trace_event_raw_io_uring_queue_async_work {
1: - struct trace_entry ent;
1: - void *ctx;
1: - int rw;
1: - void *req;
1: - struct io_wq_work *work;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + int rw;
1: + void *req;
1: + struct io_wq_work *work;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct io_wq_work_node {
1: - struct io_wq_work_node *next;
1: + struct io_wq_work_node *next;
1: };
1:
1: struct io_wq_work {
1: - struct io_wq_work_node list;
1: - struct io_identity *identity;
1: - unsigned int flags;
1: + struct io_wq_work_node list;
1: + struct io_identity *identity;
1: + unsigned int flags;
1: };
1:
1: struct trace_event_raw_io_uring_defer {
1: - struct trace_entry ent;
1: - void *ctx;
1: - void *req;
1: - long long unsigned int data;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + long long unsigned int data;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_link {
1: - struct trace_entry ent;
1: - void *ctx;
1: - void *req;
1: - void *target_req;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + void *target_req;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_cqring_wait {
1: - struct trace_entry ent;
1: - void *ctx;
1: - int min_events;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + int min_events;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_fail_link {
1: - struct trace_entry ent;
1: - void *req;
1: - void *link;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *req;
1: + void *link;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_complete {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u64 user_data;
1: - long int res;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u64 user_data;
1: + long int res;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_submit_sqe {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u8 opcode;
1: - u64 user_data;
1: - bool force_nonblock;
1: - bool sq_thread;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + bool force_nonblock;
1: + bool sq_thread;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_poll_arm {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u8 opcode;
1: - u64 user_data;
1: - int mask;
1: - int events;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + int events;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_poll_wake {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u8 opcode;
1: - u64 user_data;
1: - int mask;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_task_add {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u8 opcode;
1: - u64 user_data;
1: - int mask;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_io_uring_task_run {
1: - struct trace_entry ent;
1: - void *ctx;
1: - u8 opcode;
1: - u64 user_data;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_io_uring_create {};
1: @@ -39424,13 +39967,18 @@ struct trace_event_data_offsets_io_uring_task_run {};
1:
1: typedef void (*btf_trace_io_uring_create)(void *, int, void *, u32, u32, u32);
1:
1: -typedef void (*btf_trace_io_uring_register)(void *, void *, unsigned int, unsigned int, unsigned int, bool, long int);
1: +typedef void (*btf_trace_io_uring_register)(void *, void *, unsigned int,
1: + unsigned int, unsigned int, bool,
1: + long int);
1:
1: typedef void (*btf_trace_io_uring_file_get)(void *, void *, int);
1:
1: -typedef void (*btf_trace_io_uring_queue_async_work)(void *, void *, int, void *, struct io_wq_work *, unsigned int);
1: +typedef void (*btf_trace_io_uring_queue_async_work)(void *, void *, int, void *,
1: + struct io_wq_work *,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_io_uring_defer)(void *, void *, void *, long long unsigned int);
1: +typedef void (*btf_trace_io_uring_defer)(void *, void *, void *,
1: + long long unsigned int);
1:
1: typedef void (*btf_trace_io_uring_link)(void *, void *, void *, void *);
1:
1: @@ -39440,7 +39988,8 @@ typedef void (*btf_trace_io_uring_fail_link)(void *, void *, void *);
1:
1: typedef void (*btf_trace_io_uring_complete)(void *, void *, u64, long int);
1:
1: -typedef void (*btf_trace_io_uring_submit_sqe)(void *, void *, u8, u64, bool, bool);
1: +typedef void (*btf_trace_io_uring_submit_sqe)(void *, void *, u8, u64, bool,
1: + bool);
1:
1: typedef void (*btf_trace_io_uring_poll_arm)(void *, void *, u8, u64, int, int);
1:
1: @@ -39451,218 +40000,218 @@ typedef void (*btf_trace_io_uring_task_add)(void *, void *, u8, u64, int);
1: typedef void (*btf_trace_io_uring_task_run)(void *, void *, u8, u64);
1:
1: struct io_uring_sqe {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 ioprio;
1: - __s32 fd;
1: - union {
1: - __u64 off;
1: - __u64 addr2;
1: - };
1: - union {
1: - __u64 addr;
1: - __u64 splice_off_in;
1: - };
1: - __u32 len;
1: - union {
1: - __kernel_rwf_t rw_flags;
1: - __u32 fsync_flags;
1: - __u16 poll_events;
1: - __u32 poll32_events;
1: - __u32 sync_range_flags;
1: - __u32 msg_flags;
1: - __u32 timeout_flags;
1: - __u32 accept_flags;
1: - __u32 cancel_flags;
1: - __u32 open_flags;
1: - __u32 statx_flags;
1: - __u32 fadvise_advice;
1: - __u32 splice_flags;
1: - };
1: - __u64 user_data;
1: - union {
1: - struct {
1: - union {
1: - __u16 buf_index;
1: - __u16 buf_group;
1: - };
1: - __u16 personality;
1: - __s32 splice_fd_in;
1: - };
1: - __u64 __pad2[3];
1: - };
1: -};
1: -
1: -enum {
1: - IOSQE_FIXED_FILE_BIT = 0,
1: - IOSQE_IO_DRAIN_BIT = 1,
1: - IOSQE_IO_LINK_BIT = 2,
1: - IOSQE_IO_HARDLINK_BIT = 3,
1: - IOSQE_ASYNC_BIT = 4,
1: - IOSQE_BUFFER_SELECT_BIT = 5,
1: -};
1: -
1: -enum {
1: - IORING_OP_NOP = 0,
1: - IORING_OP_READV = 1,
1: - IORING_OP_WRITEV = 2,
1: - IORING_OP_FSYNC = 3,
1: - IORING_OP_READ_FIXED = 4,
1: - IORING_OP_WRITE_FIXED = 5,
1: - IORING_OP_POLL_ADD = 6,
1: - IORING_OP_POLL_REMOVE = 7,
1: - IORING_OP_SYNC_FILE_RANGE = 8,
1: - IORING_OP_SENDMSG = 9,
1: - IORING_OP_RECVMSG = 10,
1: - IORING_OP_TIMEOUT = 11,
1: - IORING_OP_TIMEOUT_REMOVE = 12,
1: - IORING_OP_ACCEPT = 13,
1: - IORING_OP_ASYNC_CANCEL = 14,
1: - IORING_OP_LINK_TIMEOUT = 15,
1: - IORING_OP_CONNECT = 16,
1: - IORING_OP_FALLOCATE = 17,
1: - IORING_OP_OPENAT = 18,
1: - IORING_OP_CLOSE = 19,
1: - IORING_OP_FILES_UPDATE = 20,
1: - IORING_OP_STATX = 21,
1: - IORING_OP_READ = 22,
1: - IORING_OP_WRITE = 23,
1: - IORING_OP_FADVISE = 24,
1: - IORING_OP_MADVISE = 25,
1: - IORING_OP_SEND = 26,
1: - IORING_OP_RECV = 27,
1: - IORING_OP_OPENAT2 = 28,
1: - IORING_OP_EPOLL_CTL = 29,
1: - IORING_OP_SPLICE = 30,
1: - IORING_OP_PROVIDE_BUFFERS = 31,
1: - IORING_OP_REMOVE_BUFFERS = 32,
1: - IORING_OP_TEE = 33,
1: - IORING_OP_LAST = 34,
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 ioprio;
1: + __s32 fd;
1: + union {
1: + __u64 off;
1: + __u64 addr2;
1: + };
1: + union {
1: + __u64 addr;
1: + __u64 splice_off_in;
1: + };
1: + __u32 len;
1: + union {
1: + __kernel_rwf_t rw_flags;
1: + __u32 fsync_flags;
1: + __u16 poll_events;
1: + __u32 poll32_events;
1: + __u32 sync_range_flags;
1: + __u32 msg_flags;
1: + __u32 timeout_flags;
1: + __u32 accept_flags;
1: + __u32 cancel_flags;
1: + __u32 open_flags;
1: + __u32 statx_flags;
1: + __u32 fadvise_advice;
1: + __u32 splice_flags;
1: + };
1: + __u64 user_data;
1: + union {
1: + struct {
1: + union {
1: + __u16 buf_index;
1: + __u16 buf_group;
1: + };
1: + __u16 personality;
1: + __s32 splice_fd_in;
1: + };
1: + __u64 __pad2[3];
1: + };
1: +};
1: +
1: +enum {
1: + IOSQE_FIXED_FILE_BIT = 0,
1: + IOSQE_IO_DRAIN_BIT = 1,
1: + IOSQE_IO_LINK_BIT = 2,
1: + IOSQE_IO_HARDLINK_BIT = 3,
1: + IOSQE_ASYNC_BIT = 4,
1: + IOSQE_BUFFER_SELECT_BIT = 5,
1: +};
1: +
1: +enum {
1: + IORING_OP_NOP = 0,
1: + IORING_OP_READV = 1,
1: + IORING_OP_WRITEV = 2,
1: + IORING_OP_FSYNC = 3,
1: + IORING_OP_READ_FIXED = 4,
1: + IORING_OP_WRITE_FIXED = 5,
1: + IORING_OP_POLL_ADD = 6,
1: + IORING_OP_POLL_REMOVE = 7,
1: + IORING_OP_SYNC_FILE_RANGE = 8,
1: + IORING_OP_SENDMSG = 9,
1: + IORING_OP_RECVMSG = 10,
1: + IORING_OP_TIMEOUT = 11,
1: + IORING_OP_TIMEOUT_REMOVE = 12,
1: + IORING_OP_ACCEPT = 13,
1: + IORING_OP_ASYNC_CANCEL = 14,
1: + IORING_OP_LINK_TIMEOUT = 15,
1: + IORING_OP_CONNECT = 16,
1: + IORING_OP_FALLOCATE = 17,
1: + IORING_OP_OPENAT = 18,
1: + IORING_OP_CLOSE = 19,
1: + IORING_OP_FILES_UPDATE = 20,
1: + IORING_OP_STATX = 21,
1: + IORING_OP_READ = 22,
1: + IORING_OP_WRITE = 23,
1: + IORING_OP_FADVISE = 24,
1: + IORING_OP_MADVISE = 25,
1: + IORING_OP_SEND = 26,
1: + IORING_OP_RECV = 27,
1: + IORING_OP_OPENAT2 = 28,
1: + IORING_OP_EPOLL_CTL = 29,
1: + IORING_OP_SPLICE = 30,
1: + IORING_OP_PROVIDE_BUFFERS = 31,
1: + IORING_OP_REMOVE_BUFFERS = 32,
1: + IORING_OP_TEE = 33,
1: + IORING_OP_LAST = 34,
1: };
1:
1: struct io_uring_cqe {
1: - __u64 user_data;
1: - __s32 res;
1: - __u32 flags;
1: + __u64 user_data;
1: + __s32 res;
1: + __u32 flags;
1: };
1:
1: enum {
1: - IORING_CQE_BUFFER_SHIFT = 16,
1: + IORING_CQE_BUFFER_SHIFT = 16,
1: };
1:
1: struct io_sqring_offsets {
1: - __u32 head;
1: - __u32 tail;
1: - __u32 ring_mask;
1: - __u32 ring_entries;
1: - __u32 flags;
1: - __u32 dropped;
1: - __u32 array;
1: - __u32 resv1;
1: - __u64 resv2;
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 flags;
1: + __u32 dropped;
1: + __u32 array;
1: + __u32 resv1;
1: + __u64 resv2;
1: };
1:
1: struct io_cqring_offsets {
1: - __u32 head;
1: - __u32 tail;
1: - __u32 ring_mask;
1: - __u32 ring_entries;
1: - __u32 overflow;
1: - __u32 cqes;
1: - __u32 flags;
1: - __u32 resv1;
1: - __u64 resv2;
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 overflow;
1: + __u32 cqes;
1: + __u32 flags;
1: + __u32 resv1;
1: + __u64 resv2;
1: };
1:
1: struct io_uring_params {
1: - __u32 sq_entries;
1: - __u32 cq_entries;
1: - __u32 flags;
1: - __u32 sq_thread_cpu;
1: - __u32 sq_thread_idle;
1: - __u32 features;
1: - __u32 wq_fd;
1: - __u32 resv[3];
1: - struct io_sqring_offsets sq_off;
1: - struct io_cqring_offsets cq_off;
1: -};
1: -
1: -enum {
1: - IORING_REGISTER_BUFFERS = 0,
1: - IORING_UNREGISTER_BUFFERS = 1,
1: - IORING_REGISTER_FILES = 2,
1: - IORING_UNREGISTER_FILES = 3,
1: - IORING_REGISTER_EVENTFD = 4,
1: - IORING_UNREGISTER_EVENTFD = 5,
1: - IORING_REGISTER_FILES_UPDATE = 6,
1: - IORING_REGISTER_EVENTFD_ASYNC = 7,
1: - IORING_REGISTER_PROBE = 8,
1: - IORING_REGISTER_PERSONALITY = 9,
1: - IORING_UNREGISTER_PERSONALITY = 10,
1: - IORING_REGISTER_RESTRICTIONS = 11,
1: - IORING_REGISTER_ENABLE_RINGS = 12,
1: - IORING_REGISTER_LAST = 13,
1: + __u32 sq_entries;
1: + __u32 cq_entries;
1: + __u32 flags;
1: + __u32 sq_thread_cpu;
1: + __u32 sq_thread_idle;
1: + __u32 features;
1: + __u32 wq_fd;
1: + __u32 resv[3];
1: + struct io_sqring_offsets sq_off;
1: + struct io_cqring_offsets cq_off;
1: +};
1: +
1: +enum {
1: + IORING_REGISTER_BUFFERS = 0,
1: + IORING_UNREGISTER_BUFFERS = 1,
1: + IORING_REGISTER_FILES = 2,
1: + IORING_UNREGISTER_FILES = 3,
1: + IORING_REGISTER_EVENTFD = 4,
1: + IORING_UNREGISTER_EVENTFD = 5,
1: + IORING_REGISTER_FILES_UPDATE = 6,
1: + IORING_REGISTER_EVENTFD_ASYNC = 7,
1: + IORING_REGISTER_PROBE = 8,
1: + IORING_REGISTER_PERSONALITY = 9,
1: + IORING_UNREGISTER_PERSONALITY = 10,
1: + IORING_REGISTER_RESTRICTIONS = 11,
1: + IORING_REGISTER_ENABLE_RINGS = 12,
1: + IORING_REGISTER_LAST = 13,
1: };
1:
1: struct io_uring_files_update {
1: - __u32 offset;
1: - __u32 resv;
1: - __u64 fds;
1: + __u32 offset;
1: + __u32 resv;
1: + __u64 fds;
1: };
1:
1: struct io_uring_probe_op {
1: - __u8 op;
1: - __u8 resv;
1: - __u16 flags;
1: - __u32 resv2;
1: + __u8 op;
1: + __u8 resv;
1: + __u16 flags;
1: + __u32 resv2;
1: };
1:
1: struct io_uring_probe {
1: - __u8 last_op;
1: - __u8 ops_len;
1: - __u16 resv;
1: - __u32 resv2[3];
1: - struct io_uring_probe_op ops[0];
1: + __u8 last_op;
1: + __u8 ops_len;
1: + __u16 resv;
1: + __u32 resv2[3];
1: + struct io_uring_probe_op ops[0];
1: };
1:
1: struct io_uring_restriction {
1: - __u16 opcode;
1: - union {
1: - __u8 register_op;
1: - __u8 sqe_op;
1: - __u8 sqe_flags;
1: - };
1: - __u8 resv;
1: - __u32 resv2[3];
1: + __u16 opcode;
1: + union {
1: + __u8 register_op;
1: + __u8 sqe_op;
1: + __u8 sqe_flags;
1: + };
1: + __u8 resv;
1: + __u32 resv2[3];
1: };
1:
1: enum {
1: - IORING_RESTRICTION_REGISTER_OP = 0,
1: - IORING_RESTRICTION_SQE_OP = 1,
1: - IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2,
1: - IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3,
1: - IORING_RESTRICTION_LAST = 4,
1: + IORING_RESTRICTION_REGISTER_OP = 0,
1: + IORING_RESTRICTION_SQE_OP = 1,
1: + IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2,
1: + IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3,
1: + IORING_RESTRICTION_LAST = 4,
1: };
1:
1: enum {
1: - IO_WQ_WORK_CANCEL = 1,
1: - IO_WQ_WORK_HASHED = 2,
1: - IO_WQ_WORK_UNBOUND = 4,
1: - IO_WQ_WORK_NO_CANCEL = 8,
1: - IO_WQ_WORK_CONCURRENT = 16,
1: - IO_WQ_WORK_FILES = 32,
1: - IO_WQ_WORK_FS = 64,
1: - IO_WQ_WORK_MM = 128,
1: - IO_WQ_WORK_CREDS = 256,
1: - IO_WQ_WORK_BLKCG = 512,
1: - IO_WQ_WORK_FSIZE = 1024,
1: - IO_WQ_HASH_SHIFT = 24,
1: + IO_WQ_WORK_CANCEL = 1,
1: + IO_WQ_WORK_HASHED = 2,
1: + IO_WQ_WORK_UNBOUND = 4,
1: + IO_WQ_WORK_NO_CANCEL = 8,
1: + IO_WQ_WORK_CONCURRENT = 16,
1: + IO_WQ_WORK_FILES = 32,
1: + IO_WQ_WORK_FS = 64,
1: + IO_WQ_WORK_MM = 128,
1: + IO_WQ_WORK_CREDS = 256,
1: + IO_WQ_WORK_BLKCG = 512,
1: + IO_WQ_WORK_FSIZE = 1024,
1: + IO_WQ_HASH_SHIFT = 24,
1: };
1:
1: enum io_wq_cancel {
1: - IO_WQ_CANCEL_OK = 0,
1: - IO_WQ_CANCEL_RUNNING = 1,
1: - IO_WQ_CANCEL_NOTFOUND = 2,
1: + IO_WQ_CANCEL_OK = 0,
1: + IO_WQ_CANCEL_RUNNING = 1,
1: + IO_WQ_CANCEL_NOTFOUND = 2,
1: };
1:
1: typedef void free_work_fn(struct io_wq_work *);
1: @@ -39670,93 +40219,93 @@ typedef void free_work_fn(struct io_wq_work *);
1: typedef struct io_wq_work *io_wq_work_fn(struct io_wq_work *);
1:
1: struct io_wq_data {
1: - struct user_struct *user;
1: - io_wq_work_fn *do_work;
1: - free_work_fn *free_work;
1: + struct user_struct *user;
1: + io_wq_work_fn *do_work;
1: + free_work_fn *free_work;
1: };
1:
1: struct io_uring {
1: - u32 head;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u32 tail;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + u32 head;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u32 tail;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct io_rings {
1: - struct io_uring sq;
1: - struct io_uring cq;
1: - u32 sq_ring_mask;
1: - u32 cq_ring_mask;
1: - u32 sq_ring_entries;
1: - u32 cq_ring_entries;
1: - u32 sq_dropped;
1: - u32 sq_flags;
1: - u32 cq_flags;
1: - u32 cq_overflow;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct io_uring_cqe cqes[0];
1: + struct io_uring sq;
1: + struct io_uring cq;
1: + u32 sq_ring_mask;
1: + u32 cq_ring_mask;
1: + u32 sq_ring_entries;
1: + u32 cq_ring_entries;
1: + u32 sq_dropped;
1: + u32 sq_flags;
1: + u32 cq_flags;
1: + u32 cq_overflow;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct io_uring_cqe cqes[0];
1: };
1:
1: struct io_mapped_ubuf {
1: - u64 ubuf;
1: - size_t len;
1: - struct bio_vec *bvec;
1: - unsigned int nr_bvecs;
1: - long unsigned int acct_pages;
1: + u64 ubuf;
1: + size_t len;
1: + struct bio_vec *bvec;
1: + unsigned int nr_bvecs;
1: + long unsigned int acct_pages;
1: };
1:
1: struct fixed_file_table {
1: - struct file **files;
1: + struct file **files;
1: };
1:
1: struct fixed_file_data;
1:
1: struct fixed_file_ref_node {
1: - struct percpu_ref refs;
1: - struct list_head node;
1: - struct list_head file_list;
1: - struct fixed_file_data *file_data;
1: - struct llist_node llist;
1: - bool done;
1: + struct percpu_ref refs;
1: + struct list_head node;
1: + struct list_head file_list;
1: + struct fixed_file_data *file_data;
1: + struct llist_node llist;
1: + bool done;
1: };
1:
1: struct io_ring_ctx;
1:
1: struct fixed_file_data {
1: - struct fixed_file_table *table;
1: - struct io_ring_ctx *ctx;
1: - struct fixed_file_ref_node *node;
1: - struct percpu_ref refs;
1: - struct completion done;
1: - struct list_head ref_list;
1: - spinlock_t lock;
1: + struct fixed_file_table *table;
1: + struct io_ring_ctx *ctx;
1: + struct fixed_file_ref_node *node;
1: + struct percpu_ref refs;
1: + struct completion done;
1: + struct list_head ref_list;
1: + spinlock_t lock;
1: };
1:
1: struct io_wq;
1:
1: struct io_restriction {
1: - long unsigned int register_op[1];
1: - long unsigned int sqe_op[1];
1: - u8 sqe_flags_allowed;
1: - u8 sqe_flags_required;
1: - bool registered;
1: + long unsigned int register_op[1];
1: + long unsigned int sqe_op[1];
1: + u8 sqe_flags_allowed;
1: + u8 sqe_flags_required;
1: + bool registered;
1: };
1:
1: struct io_sq_data;
1: @@ -39764,645 +40313,647 @@ struct io_sq_data;
1: struct io_kiocb;
1:
1: struct io_ring_ctx {
1: - struct {
1: - struct percpu_ref refs;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct {
1: - unsigned int flags;
1: - unsigned int compat: 1;
1: - unsigned int limit_mem: 1;
1: - unsigned int cq_overflow_flushed: 1;
1: - unsigned int drain_next: 1;
1: - unsigned int eventfd_async: 1;
1: - unsigned int restricted: 1;
1: - unsigned int sqo_dead: 1;
1: - u32 *sq_array;
1: - unsigned int cached_sq_head;
1: - unsigned int sq_entries;
1: - unsigned int sq_mask;
1: - unsigned int sq_thread_idle;
1: - unsigned int cached_sq_dropped;
1: - unsigned int cached_cq_overflow;
1: - long unsigned int sq_check_overflow;
1: - struct list_head defer_list;
1: - struct list_head timeout_list;
1: - struct list_head cq_overflow_list;
1: - wait_queue_head_t inflight_wait;
1: - struct io_uring_sqe *sq_sqes;
1: - };
1: - struct io_rings *rings;
1: - struct io_wq *io_wq;
1: - struct task_struct *sqo_task;
1: - struct mm_struct *mm_account;
1: - struct cgroup_subsys_state *sqo_blkcg_css;
1: - struct io_sq_data *sq_data;
1: - struct wait_queue_head sqo_sq_wait;
1: - struct wait_queue_entry sqo_wait_entry;
1: - struct list_head sqd_list;
1: - struct fixed_file_data *file_data;
1: - unsigned int nr_user_files;
1: - unsigned int nr_user_bufs;
1: - struct io_mapped_ubuf *user_bufs;
1: - struct user_struct *user;
1: - const struct cred *creds;
1: - kuid_t loginuid;
1: - unsigned int sessionid;
1: - struct completion ref_comp;
1: - struct completion sq_thread_comp;
1: - struct io_kiocb *fallback_req;
1: - struct socket *ring_sock;
1: - struct idr io_buffer_idr;
1: - struct idr personality_idr;
1: - long: 64;
1: - long: 64;
1: - struct {
1: - unsigned int cached_cq_tail;
1: - unsigned int cq_entries;
1: - unsigned int cq_mask;
1: - atomic_t cq_timeouts;
1: - unsigned int cq_last_tm_flush;
1: - long unsigned int cq_check_overflow;
1: - struct wait_queue_head cq_wait;
1: - struct fasync_struct *cq_fasync;
1: - struct eventfd_ctx *cq_ev_fd;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - struct {
1: - struct mutex uring_lock;
1: - wait_queue_head_t wait;
1: - long: 64;
1: - };
1: - struct {
1: - spinlock_t completion_lock;
1: - struct list_head iopoll_list;
1: - struct hlist_head *cancel_hash;
1: - unsigned int cancel_hash_bits;
1: - bool poll_multi_file;
1: - spinlock_t inflight_lock;
1: - struct list_head inflight_list;
1: - };
1: - struct delayed_work file_put_work;
1: - struct llist_head file_put_llist;
1: - struct work_struct exit_work;
1: - struct io_restriction restrictions;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct {
1: + struct percpu_ref refs;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct {
1: + unsigned int flags;
1: + unsigned int compat : 1;
1: + unsigned int limit_mem : 1;
1: + unsigned int cq_overflow_flushed : 1;
1: + unsigned int drain_next : 1;
1: + unsigned int eventfd_async : 1;
1: + unsigned int restricted : 1;
1: + unsigned int sqo_dead : 1;
1: + u32 *sq_array;
1: + unsigned int cached_sq_head;
1: + unsigned int sq_entries;
1: + unsigned int sq_mask;
1: + unsigned int sq_thread_idle;
1: + unsigned int cached_sq_dropped;
1: + unsigned int cached_cq_overflow;
1: + long unsigned int sq_check_overflow;
1: + struct list_head defer_list;
1: + struct list_head timeout_list;
1: + struct list_head cq_overflow_list;
1: + wait_queue_head_t inflight_wait;
1: + struct io_uring_sqe *sq_sqes;
1: + };
1: + struct io_rings *rings;
1: + struct io_wq *io_wq;
1: + struct task_struct *sqo_task;
1: + struct mm_struct *mm_account;
1: + struct cgroup_subsys_state *sqo_blkcg_css;
1: + struct io_sq_data *sq_data;
1: + struct wait_queue_head sqo_sq_wait;
1: + struct wait_queue_entry sqo_wait_entry;
1: + struct list_head sqd_list;
1: + struct fixed_file_data *file_data;
1: + unsigned int nr_user_files;
1: + unsigned int nr_user_bufs;
1: + struct io_mapped_ubuf *user_bufs;
1: + struct user_struct *user;
1: + const struct cred *creds;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct completion ref_comp;
1: + struct completion sq_thread_comp;
1: + struct io_kiocb *fallback_req;
1: + struct socket *ring_sock;
1: + struct idr io_buffer_idr;
1: + struct idr personality_idr;
1: + long : 64;
1: + long : 64;
1: + struct {
1: + unsigned int cached_cq_tail;
1: + unsigned int cq_entries;
1: + unsigned int cq_mask;
1: + atomic_t cq_timeouts;
1: + unsigned int cq_last_tm_flush;
1: + long unsigned int cq_check_overflow;
1: + struct wait_queue_head cq_wait;
1: + struct fasync_struct *cq_fasync;
1: + struct eventfd_ctx *cq_ev_fd;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + struct {
1: + struct mutex uring_lock;
1: + wait_queue_head_t wait;
1: + long : 64;
1: + };
1: + struct {
1: + spinlock_t completion_lock;
1: + struct list_head iopoll_list;
1: + struct hlist_head *cancel_hash;
1: + unsigned int cancel_hash_bits;
1: + bool poll_multi_file;
1: + spinlock_t inflight_lock;
1: + struct list_head inflight_list;
1: + };
1: + struct delayed_work file_put_work;
1: + struct llist_head file_put_llist;
1: + struct work_struct exit_work;
1: + struct io_restriction restrictions;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct io_buffer {
1: - struct list_head list;
1: - __u64 addr;
1: - __s32 len;
1: - __u16 bid;
1: + struct list_head list;
1: + __u64 addr;
1: + __s32 len;
1: + __u16 bid;
1: };
1:
1: struct io_sq_data {
1: - refcount_t refs;
1: - struct mutex lock;
1: - struct list_head ctx_list;
1: - struct list_head ctx_new_list;
1: - struct mutex ctx_lock;
1: - struct task_struct *thread;
1: - struct wait_queue_head wait;
1: + refcount_t refs;
1: + struct mutex lock;
1: + struct list_head ctx_list;
1: + struct list_head ctx_new_list;
1: + struct mutex ctx_lock;
1: + struct task_struct *thread;
1: + struct wait_queue_head wait;
1: };
1:
1: struct io_rw {
1: - struct kiocb kiocb;
1: - u64 addr;
1: - u64 len;
1: + struct kiocb kiocb;
1: + u64 addr;
1: + u64 len;
1: };
1:
1: struct io_poll_iocb {
1: - struct file *file;
1: - union {
1: - struct wait_queue_head *head;
1: - u64 addr;
1: - };
1: - __poll_t events;
1: - bool done;
1: - bool canceled;
1: - struct wait_queue_entry wait;
1: + struct file *file;
1: + union {
1: + struct wait_queue_head *head;
1: + u64 addr;
1: + };
1: + __poll_t events;
1: + bool done;
1: + bool canceled;
1: + struct wait_queue_entry wait;
1: };
1:
1: struct io_accept {
1: - struct file *file;
1: - struct sockaddr *addr;
1: - int *addr_len;
1: - int flags;
1: - long unsigned int nofile;
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int *addr_len;
1: + int flags;
1: + long unsigned int nofile;
1: };
1:
1: struct io_sync {
1: - struct file *file;
1: - loff_t len;
1: - loff_t off;
1: - int flags;
1: - int mode;
1: + struct file *file;
1: + loff_t len;
1: + loff_t off;
1: + int flags;
1: + int mode;
1: };
1:
1: struct io_cancel {
1: - struct file *file;
1: - u64 addr;
1: + struct file *file;
1: + u64 addr;
1: };
1:
1: struct io_timeout {
1: - struct file *file;
1: - u32 off;
1: - u32 target_seq;
1: - struct list_head list;
1: + struct file *file;
1: + u32 off;
1: + u32 target_seq;
1: + struct list_head list;
1: };
1:
1: struct io_timeout_rem {
1: - struct file *file;
1: - u64 addr;
1: + struct file *file;
1: + u64 addr;
1: };
1:
1: struct io_connect {
1: - struct file *file;
1: - struct sockaddr *addr;
1: - int addr_len;
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int addr_len;
1: };
1:
1: struct io_sr_msg {
1: - struct file *file;
1: - union {
1: - struct user_msghdr *umsg;
1: - void *buf;
1: - };
1: - int msg_flags;
1: - int bgid;
1: - size_t len;
1: - struct io_buffer *kbuf;
1: + struct file *file;
1: + union {
1: + struct user_msghdr *umsg;
1: + void *buf;
1: + };
1: + int msg_flags;
1: + int bgid;
1: + size_t len;
1: + struct io_buffer *kbuf;
1: };
1:
1: struct io_open {
1: - struct file *file;
1: - int dfd;
1: - bool ignore_nonblock;
1: - struct filename *filename;
1: - struct open_how how;
1: - long unsigned int nofile;
1: + struct file *file;
1: + int dfd;
1: + bool ignore_nonblock;
1: + struct filename *filename;
1: + struct open_how how;
1: + long unsigned int nofile;
1: };
1:
1: struct io_close {
1: - struct file *file;
1: - struct file *put_file;
1: - int fd;
1: + struct file *file;
1: + struct file *put_file;
1: + int fd;
1: };
1:
1: struct io_files_update {
1: - struct file *file;
1: - u64 arg;
1: - u32 nr_args;
1: - u32 offset;
1: + struct file *file;
1: + u64 arg;
1: + u32 nr_args;
1: + u32 offset;
1: };
1:
1: struct io_fadvise {
1: - struct file *file;
1: - u64 offset;
1: - u32 len;
1: - u32 advice;
1: + struct file *file;
1: + u64 offset;
1: + u32 len;
1: + u32 advice;
1: };
1:
1: struct io_madvise {
1: - struct file *file;
1: - u64 addr;
1: - u32 len;
1: - u32 advice;
1: + struct file *file;
1: + u64 addr;
1: + u32 len;
1: + u32 advice;
1: };
1:
1: struct io_epoll {
1: - struct file *file;
1: - int epfd;
1: - int op;
1: - int fd;
1: - struct epoll_event event;
1: + struct file *file;
1: + int epfd;
1: + int op;
1: + int fd;
1: + struct epoll_event event;
1: };
1:
1: struct io_splice {
1: - struct file *file_out;
1: - struct file *file_in;
1: - loff_t off_out;
1: - loff_t off_in;
1: - u64 len;
1: - unsigned int flags;
1: + struct file *file_out;
1: + struct file *file_in;
1: + loff_t off_out;
1: + loff_t off_in;
1: + u64 len;
1: + unsigned int flags;
1: };
1:
1: struct io_provide_buf {
1: - struct file *file;
1: - __u64 addr;
1: - __s32 len;
1: - __u32 bgid;
1: - __u16 nbufs;
1: - __u16 bid;
1: + struct file *file;
1: + __u64 addr;
1: + __s32 len;
1: + __u32 bgid;
1: + __u16 nbufs;
1: + __u16 bid;
1: };
1:
1: struct io_statx {
1: - struct file *file;
1: - int dfd;
1: - unsigned int mask;
1: - unsigned int flags;
1: - const char *filename;
1: - struct statx *buffer;
1: + struct file *file;
1: + int dfd;
1: + unsigned int mask;
1: + unsigned int flags;
1: + const char *filename;
1: + struct statx *buffer;
1: };
1:
1: struct io_completion {
1: - struct file *file;
1: - struct list_head list;
1: - int cflags;
1: + struct file *file;
1: + struct list_head list;
1: + int cflags;
1: };
1:
1: struct async_poll;
1:
1: struct io_kiocb {
1: - union {
1: - struct file *file;
1: - struct io_rw rw;
1: - struct io_poll_iocb poll;
1: - struct io_accept accept;
1: - struct io_sync sync;
1: - struct io_cancel cancel;
1: - struct io_timeout timeout;
1: - struct io_timeout_rem timeout_rem;
1: - struct io_connect connect;
1: - struct io_sr_msg sr_msg;
1: - struct io_open open;
1: - struct io_close close;
1: - struct io_files_update files_update;
1: - struct io_fadvise fadvise;
1: - struct io_madvise madvise;
1: - struct io_epoll epoll;
1: - struct io_splice splice;
1: - struct io_provide_buf pbuf;
1: - struct io_statx statx;
1: - struct io_completion compl;
1: - };
1: - void *async_data;
1: - u8 opcode;
1: - u8 iopoll_completed;
1: - u16 buf_index;
1: - u32 result;
1: - struct io_ring_ctx *ctx;
1: - unsigned int flags;
1: - refcount_t refs;
1: - struct task_struct *task;
1: - u64 user_data;
1: - struct list_head link_list;
1: - struct list_head inflight_entry;
1: - struct percpu_ref *fixed_file_refs;
1: - struct callback_head task_work;
1: - struct hlist_node hash_node;
1: - struct async_poll *apoll;
1: - struct io_wq_work work;
1: + union {
1: + struct file *file;
1: + struct io_rw rw;
1: + struct io_poll_iocb poll;
1: + struct io_accept accept;
1: + struct io_sync sync;
1: + struct io_cancel cancel;
1: + struct io_timeout timeout;
1: + struct io_timeout_rem timeout_rem;
1: + struct io_connect connect;
1: + struct io_sr_msg sr_msg;
1: + struct io_open open;
1: + struct io_close close;
1: + struct io_files_update files_update;
1: + struct io_fadvise fadvise;
1: + struct io_madvise madvise;
1: + struct io_epoll epoll;
1: + struct io_splice splice;
1: + struct io_provide_buf pbuf;
1: + struct io_statx statx;
1: + struct io_completion compl;
1: + };
1: + void *async_data;
1: + u8 opcode;
1: + u8 iopoll_completed;
1: + u16 buf_index;
1: + u32 result;
1: + struct io_ring_ctx *ctx;
1: + unsigned int flags;
1: + refcount_t refs;
1: + struct task_struct *task;
1: + u64 user_data;
1: + struct list_head link_list;
1: + struct list_head inflight_entry;
1: + struct percpu_ref *fixed_file_refs;
1: + struct callback_head task_work;
1: + struct hlist_node hash_node;
1: + struct async_poll *apoll;
1: + struct io_wq_work work;
1: };
1:
1: struct io_timeout_data {
1: - struct io_kiocb *req;
1: - struct hrtimer timer;
1: - struct timespec64 ts;
1: - enum hrtimer_mode mode;
1: + struct io_kiocb *req;
1: + struct hrtimer timer;
1: + struct timespec64 ts;
1: + enum hrtimer_mode mode;
1: };
1:
1: struct io_async_connect {
1: - struct __kernel_sockaddr_storage address;
1: + struct __kernel_sockaddr_storage address;
1: };
1:
1: struct io_async_msghdr {
1: - struct iovec fast_iov[8];
1: - struct iovec *iov;
1: - struct sockaddr *uaddr;
1: - struct msghdr msg;
1: - struct __kernel_sockaddr_storage addr;
1: + struct iovec fast_iov[8];
1: + struct iovec *iov;
1: + struct sockaddr *uaddr;
1: + struct msghdr msg;
1: + struct __kernel_sockaddr_storage addr;
1: };
1:
1: struct io_async_rw {
1: - struct iovec fast_iov[8];
1: - const struct iovec *free_iovec;
1: - struct iov_iter iter;
1: - size_t bytes_done;
1: - struct wait_page_queue wpq;
1: -};
1: -
1: -enum {
1: - REQ_F_FIXED_FILE_BIT = 0,
1: - REQ_F_IO_DRAIN_BIT = 1,
1: - REQ_F_LINK_BIT = 2,
1: - REQ_F_HARDLINK_BIT = 3,
1: - REQ_F_FORCE_ASYNC_BIT = 4,
1: - REQ_F_BUFFER_SELECT_BIT = 5,
1: - REQ_F_LINK_HEAD_BIT = 6,
1: - REQ_F_FAIL_LINK_BIT = 7,
1: - REQ_F_INFLIGHT_BIT = 8,
1: - REQ_F_CUR_POS_BIT = 9,
1: - REQ_F_NOWAIT_BIT = 10,
1: - REQ_F_LINK_TIMEOUT_BIT = 11,
1: - REQ_F_ISREG_BIT = 12,
1: - REQ_F_NEED_CLEANUP_BIT = 13,
1: - REQ_F_POLLED_BIT = 14,
1: - REQ_F_BUFFER_SELECTED_BIT = 15,
1: - REQ_F_NO_FILE_TABLE_BIT = 16,
1: - REQ_F_WORK_INITIALIZED_BIT = 17,
1: - REQ_F_LTIMEOUT_ACTIVE_BIT = 18,
1: - __REQ_F_LAST_BIT = 19,
1: -};
1: -
1: -enum {
1: - REQ_F_FIXED_FILE = 1,
1: - REQ_F_IO_DRAIN = 2,
1: - REQ_F_LINK = 4,
1: - REQ_F_HARDLINK = 8,
1: - REQ_F_FORCE_ASYNC = 16,
1: - REQ_F_BUFFER_SELECT = 32,
1: - REQ_F_LINK_HEAD = 64,
1: - REQ_F_FAIL_LINK = 128,
1: - REQ_F_INFLIGHT = 256,
1: - REQ_F_CUR_POS = 512,
1: - REQ_F_NOWAIT = 1024,
1: - REQ_F_LINK_TIMEOUT = 2048,
1: - REQ_F_ISREG = 4096,
1: - REQ_F_NEED_CLEANUP = 8192,
1: - REQ_F_POLLED = 16384,
1: - REQ_F_BUFFER_SELECTED = 32768,
1: - REQ_F_NO_FILE_TABLE = 65536,
1: - REQ_F_WORK_INITIALIZED = 131072,
1: - REQ_F_LTIMEOUT_ACTIVE = 262144,
1: + struct iovec fast_iov[8];
1: + const struct iovec *free_iovec;
1: + struct iov_iter iter;
1: + size_t bytes_done;
1: + struct wait_page_queue wpq;
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE_BIT = 0,
1: + REQ_F_IO_DRAIN_BIT = 1,
1: + REQ_F_LINK_BIT = 2,
1: + REQ_F_HARDLINK_BIT = 3,
1: + REQ_F_FORCE_ASYNC_BIT = 4,
1: + REQ_F_BUFFER_SELECT_BIT = 5,
1: + REQ_F_LINK_HEAD_BIT = 6,
1: + REQ_F_FAIL_LINK_BIT = 7,
1: + REQ_F_INFLIGHT_BIT = 8,
1: + REQ_F_CUR_POS_BIT = 9,
1: + REQ_F_NOWAIT_BIT = 10,
1: + REQ_F_LINK_TIMEOUT_BIT = 11,
1: + REQ_F_ISREG_BIT = 12,
1: + REQ_F_NEED_CLEANUP_BIT = 13,
1: + REQ_F_POLLED_BIT = 14,
1: + REQ_F_BUFFER_SELECTED_BIT = 15,
1: + REQ_F_NO_FILE_TABLE_BIT = 16,
1: + REQ_F_WORK_INITIALIZED_BIT = 17,
1: + REQ_F_LTIMEOUT_ACTIVE_BIT = 18,
1: + __REQ_F_LAST_BIT = 19,
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE = 1,
1: + REQ_F_IO_DRAIN = 2,
1: + REQ_F_LINK = 4,
1: + REQ_F_HARDLINK = 8,
1: + REQ_F_FORCE_ASYNC = 16,
1: + REQ_F_BUFFER_SELECT = 32,
1: + REQ_F_LINK_HEAD = 64,
1: + REQ_F_FAIL_LINK = 128,
1: + REQ_F_INFLIGHT = 256,
1: + REQ_F_CUR_POS = 512,
1: + REQ_F_NOWAIT = 1024,
1: + REQ_F_LINK_TIMEOUT = 2048,
1: + REQ_F_ISREG = 4096,
1: + REQ_F_NEED_CLEANUP = 8192,
1: + REQ_F_POLLED = 16384,
1: + REQ_F_BUFFER_SELECTED = 32768,
1: + REQ_F_NO_FILE_TABLE = 65536,
1: + REQ_F_WORK_INITIALIZED = 131072,
1: + REQ_F_LTIMEOUT_ACTIVE = 262144,
1: };
1:
1: struct async_poll {
1: - struct io_poll_iocb poll;
1: - struct io_poll_iocb *double_poll;
1: + struct io_poll_iocb poll;
1: + struct io_poll_iocb *double_poll;
1: };
1:
1: struct io_defer_entry {
1: - struct list_head list;
1: - struct io_kiocb *req;
1: - u32 seq;
1: + struct list_head list;
1: + struct io_kiocb *req;
1: + u32 seq;
1: };
1:
1: struct io_comp_state {
1: - unsigned int nr;
1: - struct list_head list;
1: - struct io_ring_ctx *ctx;
1: + unsigned int nr;
1: + struct list_head list;
1: + struct io_ring_ctx *ctx;
1: };
1:
1: struct io_submit_state {
1: - struct blk_plug plug;
1: - void *reqs[8];
1: - unsigned int free_reqs;
1: - struct io_comp_state comp;
1: - struct file *file;
1: - unsigned int fd;
1: - unsigned int has_refs;
1: - unsigned int ios_left;
1: + struct blk_plug plug;
1: + void *reqs[8];
1: + unsigned int free_reqs;
1: + struct io_comp_state comp;
1: + struct file *file;
1: + unsigned int fd;
1: + unsigned int has_refs;
1: + unsigned int ios_left;
1: };
1:
1: struct io_op_def {
1: - unsigned int needs_file: 1;
1: - unsigned int needs_file_no_error: 1;
1: - unsigned int hash_reg_file: 1;
1: - unsigned int unbound_nonreg_file: 1;
1: - unsigned int not_supported: 1;
1: - unsigned int pollin: 1;
1: - unsigned int pollout: 1;
1: - unsigned int buffer_select: 1;
1: - unsigned int needs_async_data: 1;
1: - short unsigned int async_size;
1: - unsigned int work_flags;
1: + unsigned int needs_file : 1;
1: + unsigned int needs_file_no_error : 1;
1: + unsigned int hash_reg_file : 1;
1: + unsigned int unbound_nonreg_file : 1;
1: + unsigned int not_supported : 1;
1: + unsigned int pollin : 1;
1: + unsigned int pollout : 1;
1: + unsigned int buffer_select : 1;
1: + unsigned int needs_async_data : 1;
1: + short unsigned int async_size;
1: + unsigned int work_flags;
1: };
1:
1: enum io_mem_account {
1: - ACCT_LOCKED = 0,
1: - ACCT_PINNED = 1,
1: + ACCT_LOCKED = 0,
1: + ACCT_PINNED = 1,
1: };
1:
1: struct req_batch {
1: - void *reqs[8];
1: - int to_free;
1: - struct task_struct *task;
1: - int task_refs;
1: + void *reqs[8];
1: + int to_free;
1: + struct task_struct *task;
1: + int task_refs;
1: };
1:
1: struct io_poll_table {
1: - struct poll_table_struct pt;
1: - struct io_kiocb *req;
1: - int error;
1: + struct poll_table_struct pt;
1: + struct io_kiocb *req;
1: + int error;
1: };
1:
1: enum sq_ret {
1: - SQT_IDLE = 1,
1: - SQT_SPIN = 2,
1: - SQT_DID_WORK = 4,
1: + SQT_IDLE = 1,
1: + SQT_SPIN = 2,
1: + SQT_DID_WORK = 4,
1: };
1:
1: struct io_wait_queue {
1: - struct wait_queue_entry wq;
1: - struct io_ring_ctx *ctx;
1: - unsigned int to_wait;
1: - unsigned int nr_timeouts;
1: + struct wait_queue_entry wq;
1: + struct io_ring_ctx *ctx;
1: + unsigned int to_wait;
1: + unsigned int nr_timeouts;
1: };
1:
1: struct io_file_put {
1: - struct list_head list;
1: - struct file *file;
1: + struct list_head list;
1: + struct file *file;
1: };
1:
1: struct io_wq_work_list {
1: - struct io_wq_work_node *first;
1: - struct io_wq_work_node *last;
1: + struct io_wq_work_node *first;
1: + struct io_wq_work_node *last;
1: };
1:
1: typedef bool work_cancel_fn(struct io_wq_work *, void *);
1:
1: enum {
1: - IO_WORKER_F_UP = 1,
1: - IO_WORKER_F_RUNNING = 2,
1: - IO_WORKER_F_FREE = 4,
1: - IO_WORKER_F_FIXED = 8,
1: - IO_WORKER_F_BOUND = 16,
1: + IO_WORKER_F_UP = 1,
1: + IO_WORKER_F_RUNNING = 2,
1: + IO_WORKER_F_FREE = 4,
1: + IO_WORKER_F_FIXED = 8,
1: + IO_WORKER_F_BOUND = 16,
1: };
1:
1: enum {
1: - IO_WQ_BIT_EXIT = 0,
1: - IO_WQ_BIT_CANCEL = 1,
1: - IO_WQ_BIT_ERROR = 2,
1: + IO_WQ_BIT_EXIT = 0,
1: + IO_WQ_BIT_CANCEL = 1,
1: + IO_WQ_BIT_ERROR = 2,
1: };
1:
1: enum {
1: - IO_WQE_FLAG_STALLED = 1,
1: + IO_WQE_FLAG_STALLED = 1,
1: };
1:
1: struct io_wqe;
1:
1: struct io_worker {
1: - refcount_t ref;
1: - unsigned int flags;
1: - struct hlist_nulls_node nulls_node;
1: - struct list_head all_list;
1: - struct task_struct *task;
1: - struct io_wqe *wqe;
1: - struct io_wq_work *cur_work;
1: - spinlock_t lock;
1: - struct callback_head rcu;
1: - struct mm_struct *mm;
1: - struct cgroup_subsys_state *blkcg_css;
1: - const struct cred *cur_creds;
1: - const struct cred *saved_creds;
1: - struct files_struct *restore_files;
1: - struct nsproxy *restore_nsproxy;
1: - struct fs_struct *restore_fs;
1: + refcount_t ref;
1: + unsigned int flags;
1: + struct hlist_nulls_node nulls_node;
1: + struct list_head all_list;
1: + struct task_struct *task;
1: + struct io_wqe *wqe;
1: + struct io_wq_work *cur_work;
1: + spinlock_t lock;
1: + struct callback_head rcu;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *cur_creds;
1: + const struct cred *saved_creds;
1: + struct files_struct *restore_files;
1: + struct nsproxy *restore_nsproxy;
1: + struct fs_struct *restore_fs;
1: };
1:
1: struct io_wqe_acct {
1: - unsigned int nr_workers;
1: - unsigned int max_workers;
1: - atomic_t nr_running;
1: + unsigned int nr_workers;
1: + unsigned int max_workers;
1: + atomic_t nr_running;
1: };
1:
1: struct io_wq___2;
1:
1: struct io_wqe {
1: - struct {
1: - raw_spinlock_t lock;
1: - struct io_wq_work_list work_list;
1: - long unsigned int hash_map;
1: - unsigned int flags;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - };
1: - int node;
1: - struct io_wqe_acct acct[2];
1: - struct hlist_nulls_head free_list;
1: - struct list_head all_list;
1: - struct io_wq___2 *wq;
1: - struct io_wq_work *hash_tail[64];
1: + struct {
1: + raw_spinlock_t lock;
1: + struct io_wq_work_list work_list;
1: + long unsigned int hash_map;
1: + unsigned int flags;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + };
1: + int node;
1: + struct io_wqe_acct acct[2];
1: + struct hlist_nulls_head free_list;
1: + struct list_head all_list;
1: + struct io_wq___2 *wq;
1: + struct io_wq_work *hash_tail[64];
1: };
1:
1: enum {
1: - IO_WQ_ACCT_BOUND = 0,
1: - IO_WQ_ACCT_UNBOUND = 1,
1: + IO_WQ_ACCT_BOUND = 0,
1: + IO_WQ_ACCT_UNBOUND = 1,
1: };
1:
1: struct io_wq___2 {
1: - struct io_wqe **wqes;
1: - long unsigned int state;
1: - free_work_fn *free_work;
1: - io_wq_work_fn *do_work;
1: - struct task_struct *manager;
1: - struct user_struct *user;
1: - refcount_t refs;
1: - struct completion done;
1: - struct hlist_node cpuhp_node;
1: - refcount_t use_refs;
1: + struct io_wqe **wqes;
1: + long unsigned int state;
1: + free_work_fn *free_work;
1: + io_wq_work_fn *do_work;
1: + struct task_struct *manager;
1: + struct user_struct *user;
1: + refcount_t refs;
1: + struct completion done;
1: + struct hlist_node cpuhp_node;
1: + refcount_t use_refs;
1: };
1:
1: struct io_cb_cancel_data {
1: - work_cancel_fn *fn;
1: - void *data;
1: - int nr_running;
1: - int nr_pending;
1: - bool cancel_all;
1: + work_cancel_fn *fn;
1: + void *data;
1: + int nr_running;
1: + int nr_pending;
1: + bool cancel_all;
1: };
1:
1: struct iomap_ops {
1: - int (*iomap_begin)(struct inode *, loff_t, loff_t, unsigned int, struct iomap___2 *, struct iomap___2 *);
1: - int (*iomap_end)(struct inode *, loff_t, loff_t, ssize_t, unsigned int, struct iomap___2 *);
1: + int (*iomap_begin)(struct inode *, loff_t, loff_t, unsigned int,
1: + struct iomap___2 *, struct iomap___2 *);
1: + int (*iomap_end)(struct inode *, loff_t, loff_t, ssize_t, unsigned int,
1: + struct iomap___2 *);
1: };
1:
1: struct trace_event_raw_dax_pmd_fault_class {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int vm_start;
1: - long unsigned int vm_end;
1: - long unsigned int vm_flags;
1: - long unsigned int address;
1: - long unsigned int pgoff;
1: - long unsigned int max_pgoff;
1: - dev_t dev;
1: - unsigned int flags;
1: - int result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + long unsigned int max_pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_pmd_load_hole_class {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int vm_flags;
1: - long unsigned int address;
1: - struct page *zero_page;
1: - void *radix_entry;
1: - dev_t dev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + struct page *zero_page;
1: + void *radix_entry;
1: + dev_t dev;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_pmd_insert_mapping_class {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int vm_flags;
1: - long unsigned int address;
1: - long int length;
1: - u64 pfn_val;
1: - void *radix_entry;
1: - dev_t dev;
1: - int write;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long int length;
1: + u64 pfn_val;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_pte_fault_class {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int vm_flags;
1: - long unsigned int address;
1: - long unsigned int pgoff;
1: - dev_t dev;
1: - unsigned int flags;
1: - int result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_insert_mapping {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int vm_flags;
1: - long unsigned int address;
1: - void *radix_entry;
1: - dev_t dev;
1: - int write;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_writeback_range_class {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int start_index;
1: - long unsigned int end_index;
1: - dev_t dev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int start_index;
1: + long unsigned int end_index;
1: + dev_t dev;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_dax_writeback_one {
1: - struct trace_entry ent;
1: - long unsigned int ino;
1: - long unsigned int pgoff;
1: - long unsigned int pglen;
1: - dev_t dev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int pgoff;
1: + long unsigned int pglen;
1: + dev_t dev;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_dax_pmd_fault_class {};
1: @@ -40419,42 +40970,66 @@ struct trace_event_data_offsets_dax_writeback_range_class {};
1:
1: struct trace_event_data_offsets_dax_writeback_one {};
1:
1: -typedef void (*btf_trace_dax_pmd_fault)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +typedef void (*btf_trace_dax_pmd_fault)(void *, struct inode *,
1: + struct vm_fault *, long unsigned int,
1: + int);
1:
1: -typedef void (*btf_trace_dax_pmd_fault_done)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +typedef void (*btf_trace_dax_pmd_fault_done)(void *, struct inode *,
1: + struct vm_fault *,
1: + long unsigned int, int);
1:
1: -typedef void (*btf_trace_dax_pmd_load_hole)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +typedef void (*btf_trace_dax_pmd_load_hole)(void *, struct inode *,
1: + struct vm_fault *, struct page *,
1: + void *);
1:
1: -typedef void (*btf_trace_dax_pmd_load_hole_fallback)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +typedef void (*btf_trace_dax_pmd_load_hole_fallback)(void *, struct inode *,
1: + struct vm_fault *,
1: + struct page *, void *);
1:
1: -typedef void (*btf_trace_dax_pmd_insert_mapping)(void *, struct inode *, struct vm_fault *, long int, pfn_t, void *);
1: +typedef void (*btf_trace_dax_pmd_insert_mapping)(void *, struct inode *,
1: + struct vm_fault *, long int,
1: + pfn_t, void *);
1:
1: -typedef void (*btf_trace_dax_pte_fault)(void *, struct inode *, struct vm_fault *, int);
1: +typedef void (*btf_trace_dax_pte_fault)(void *, struct inode *,
1: + struct vm_fault *, int);
1:
1: -typedef void (*btf_trace_dax_pte_fault_done)(void *, struct inode *, struct vm_fault *, int);
1: +typedef void (*btf_trace_dax_pte_fault_done)(void *, struct inode *,
1: + struct vm_fault *, int);
1:
1: -typedef void (*btf_trace_dax_load_hole)(void *, struct inode *, struct vm_fault *, int);
1: +typedef void (*btf_trace_dax_load_hole)(void *, struct inode *,
1: + struct vm_fault *, int);
1:
1: -typedef void (*btf_trace_dax_insert_pfn_mkwrite_no_entry)(void *, struct inode *, struct vm_fault *, int);
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite_no_entry)(void *,
1: + struct inode *,
1: + struct vm_fault *,
1: + int);
1:
1: -typedef void (*btf_trace_dax_insert_pfn_mkwrite)(void *, struct inode *, struct vm_fault *, int);
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite)(void *, struct inode *,
1: + struct vm_fault *, int);
1:
1: -typedef void (*btf_trace_dax_insert_mapping)(void *, struct inode *, struct vm_fault *, void *);
1: +typedef void (*btf_trace_dax_insert_mapping)(void *, struct inode *,
1: + struct vm_fault *, void *);
1:
1: -typedef void (*btf_trace_dax_writeback_range)(void *, struct inode *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_dax_writeback_range)(void *, struct inode *,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_dax_writeback_range_done)(void *, struct inode *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_dax_writeback_range_done)(void *, struct inode *,
1: + long unsigned int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_dax_writeback_one)(void *, struct inode *, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_dax_writeback_one)(void *, struct inode *,
1: + long unsigned int,
1: + long unsigned int);
1:
1: struct exceptional_entry_key {
1: - struct xarray *xa;
1: - long unsigned int entry_start;
1: + struct xarray *xa;
1: + long unsigned int entry_start;
1: };
1:
1: struct wait_exceptional_entry_queue {
1: - wait_queue_entry_t wait;
1: - struct exceptional_entry_key key;
1: + wait_queue_entry_t wait;
1: + struct exceptional_entry_key key;
1: };
1:
1: struct crypto_skcipher;
1: @@ -40462,8 +41037,8 @@ struct crypto_skcipher;
1: struct fscrypt_blk_crypto_key;
1:
1: struct fscrypt_prepared_key {
1: - struct crypto_skcipher *tfm;
1: - struct fscrypt_blk_crypto_key *blk_key;
1: + struct crypto_skcipher *tfm;
1: + struct fscrypt_blk_crypto_key *blk_key;
1: };
1:
1: struct fscrypt_mode;
1: @@ -40471,19 +41046,19 @@ struct fscrypt_mode;
1: struct fscrypt_direct_key;
1:
1: struct fscrypt_info {
1: - struct fscrypt_prepared_key ci_enc_key;
1: - bool ci_owns_key;
1: - bool ci_inlinecrypt;
1: - struct fscrypt_mode *ci_mode;
1: - struct inode *ci_inode;
1: - struct key *ci_master_key;
1: - struct list_head ci_master_key_link;
1: - struct fscrypt_direct_key *ci_direct_key;
1: - siphash_key_t ci_dirhash_key;
1: - bool ci_dirhash_key_initialized;
1: - union fscrypt_policy ci_policy;
1: - u8 ci_nonce[16];
1: - u32 ci_hashed_ino;
1: + struct fscrypt_prepared_key ci_enc_key;
1: + bool ci_owns_key;
1: + bool ci_inlinecrypt;
1: + struct fscrypt_mode *ci_mode;
1: + struct inode *ci_inode;
1: + struct key *ci_master_key;
1: + struct list_head ci_master_key_link;
1: + struct fscrypt_direct_key *ci_direct_key;
1: + siphash_key_t ci_dirhash_key;
1: + bool ci_dirhash_key_initialized;
1: + union fscrypt_policy ci_policy;
1: + u8 ci_nonce[16];
1: + u32 ci_hashed_ino;
1: };
1:
1: struct crypto_async_request;
1: @@ -40491,255 +41066,255 @@ struct crypto_async_request;
1: typedef void (*crypto_completion_t)(struct crypto_async_request *, int);
1:
1: struct crypto_async_request {
1: - struct list_head list;
1: - crypto_completion_t complete;
1: - void *data;
1: - struct crypto_tfm *tfm;
1: - u32 flags;
1: + struct list_head list;
1: + crypto_completion_t complete;
1: + void *data;
1: + struct crypto_tfm *tfm;
1: + u32 flags;
1: };
1:
1: struct crypto_wait {
1: - struct completion completion;
1: - int err;
1: + struct completion completion;
1: + int err;
1: };
1:
1: struct skcipher_request {
1: - unsigned int cryptlen;
1: - u8 *iv;
1: - struct scatterlist *src;
1: - struct scatterlist *dst;
1: - struct crypto_async_request base;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + unsigned int cryptlen;
1: + u8 *iv;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + struct crypto_async_request base;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_skcipher {
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_tfm base;
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_tfm base;
1: };
1:
1: struct fscrypt_mode {
1: - const char *friendly_name;
1: - const char *cipher_str;
1: - int keysize;
1: - int ivsize;
1: - int logged_impl_name;
1: - enum blk_crypto_mode_num blk_crypto_mode;
1: + const char *friendly_name;
1: + const char *cipher_str;
1: + int keysize;
1: + int ivsize;
1: + int logged_impl_name;
1: + enum blk_crypto_mode_num blk_crypto_mode;
1: };
1:
1: typedef enum {
1: - FS_DECRYPT = 0,
1: - FS_ENCRYPT = 1,
1: + FS_DECRYPT = 0,
1: + FS_ENCRYPT = 1,
1: } fscrypt_direction_t;
1:
1: union fscrypt_iv {
1: - struct {
1: - __le64 lblk_num;
1: - u8 nonce[16];
1: - };
1: - u8 raw[32];
1: - __le64 dun[4];
1: + struct {
1: + __le64 lblk_num;
1: + u8 nonce[16];
1: + };
1: + u8 raw[32];
1: + __le64 dun[4];
1: };
1:
1: struct fscrypt_str {
1: - unsigned char *name;
1: - u32 len;
1: + unsigned char *name;
1: + u32 len;
1: };
1:
1: struct fscrypt_name {
1: - const struct qstr *usr_fname;
1: - struct fscrypt_str disk_name;
1: - u32 hash;
1: - u32 minor_hash;
1: - struct fscrypt_str crypto_buf;
1: - bool is_nokey_name;
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + u32 hash;
1: + u32 minor_hash;
1: + struct fscrypt_str crypto_buf;
1: + bool is_nokey_name;
1: };
1:
1: struct fscrypt_nokey_name {
1: - u32 dirhash[2];
1: - u8 bytes[149];
1: - u8 sha256[32];
1: + u32 dirhash[2];
1: + u8 bytes[149];
1: + u8 sha256[32];
1: };
1:
1: struct shash_alg {
1: - int (*init)(struct shash_desc *);
1: - int (*update)(struct shash_desc *, const u8 *, unsigned int);
1: - int (*final)(struct shash_desc *, u8 *);
1: - int (*finup)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: - int (*digest)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: - int (*export)(struct shash_desc *, void *);
1: - int (*import)(struct shash_desc *, const void *);
1: - int (*setkey)(struct crypto_shash *, const u8 *, unsigned int);
1: - int (*init_tfm)(struct crypto_shash *);
1: - void (*exit_tfm)(struct crypto_shash *);
1: - unsigned int descsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - unsigned int digestsize;
1: - unsigned int statesize;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*init)(struct shash_desc *);
1: + int (*update)(struct shash_desc *, const u8 *, unsigned int);
1: + int (*final)(struct shash_desc *, u8 *);
1: + int (*finup)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*digest)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*export)(struct shash_desc *, void *);
1: + int (*import)(struct shash_desc *, const void *);
1: + int (*setkey)(struct crypto_shash *, const u8 *, unsigned int);
1: + int (*init_tfm)(struct crypto_shash *);
1: + void (*exit_tfm)(struct crypto_shash *);
1: + unsigned int descsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct fscrypt_hkdf {
1: - struct crypto_shash *hmac_tfm;
1: + struct crypto_shash *hmac_tfm;
1: };
1:
1: struct fscrypt_key_specifier {
1: - __u32 type;
1: - __u32 __reserved;
1: - union {
1: - __u8 __reserved[32];
1: - __u8 descriptor[8];
1: - __u8 identifier[16];
1: - } u;
1: + __u32 type;
1: + __u32 __reserved;
1: + union {
1: + __u8 __reserved[32];
1: + __u8 descriptor[8];
1: + __u8 identifier[16];
1: + } u;
1: };
1:
1: struct fscrypt_symlink_data {
1: - __le16 len;
1: - char encrypted_path[1];
1: + __le16 len;
1: + char encrypted_path[1];
1: } __attribute__((packed));
1:
1: struct fscrypt_master_key_secret {
1: - struct fscrypt_hkdf hkdf;
1: - u32 size;
1: - u8 raw[64];
1: + struct fscrypt_hkdf hkdf;
1: + u32 size;
1: + u8 raw[64];
1: };
1:
1: struct fscrypt_master_key {
1: - struct fscrypt_master_key_secret mk_secret;
1: - struct rw_semaphore mk_secret_sem;
1: - struct fscrypt_key_specifier mk_spec;
1: - struct key *mk_users;
1: - refcount_t mk_refcount;
1: - struct list_head mk_decrypted_inodes;
1: - spinlock_t mk_decrypted_inodes_lock;
1: - struct fscrypt_prepared_key mk_direct_keys[10];
1: - struct fscrypt_prepared_key mk_iv_ino_lblk_64_keys[10];
1: - struct fscrypt_prepared_key mk_iv_ino_lblk_32_keys[10];
1: - siphash_key_t mk_ino_hash_key;
1: - bool mk_ino_hash_key_initialized;
1: + struct fscrypt_master_key_secret mk_secret;
1: + struct rw_semaphore mk_secret_sem;
1: + struct fscrypt_key_specifier mk_spec;
1: + struct key *mk_users;
1: + refcount_t mk_refcount;
1: + struct list_head mk_decrypted_inodes;
1: + spinlock_t mk_decrypted_inodes_lock;
1: + struct fscrypt_prepared_key mk_direct_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_64_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_32_keys[10];
1: + siphash_key_t mk_ino_hash_key;
1: + bool mk_ino_hash_key_initialized;
1: };
1:
1: enum key_state {
1: - KEY_IS_UNINSTANTIATED = 0,
1: - KEY_IS_POSITIVE = 1,
1: + KEY_IS_UNINSTANTIATED = 0,
1: + KEY_IS_POSITIVE = 1,
1: };
1:
1: struct fscrypt_provisioning_key_payload {
1: - __u32 type;
1: - __u32 __reserved;
1: - __u8 raw[0];
1: + __u32 type;
1: + __u32 __reserved;
1: + __u8 raw[0];
1: };
1:
1: struct fscrypt_add_key_arg {
1: - struct fscrypt_key_specifier key_spec;
1: - __u32 raw_size;
1: - __u32 key_id;
1: - __u32 __reserved[8];
1: - __u8 raw[0];
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 raw_size;
1: + __u32 key_id;
1: + __u32 __reserved[8];
1: + __u8 raw[0];
1: };
1:
1: struct fscrypt_remove_key_arg {
1: - struct fscrypt_key_specifier key_spec;
1: - __u32 removal_status_flags;
1: - __u32 __reserved[5];
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 removal_status_flags;
1: + __u32 __reserved[5];
1: };
1:
1: struct fscrypt_get_key_status_arg {
1: - struct fscrypt_key_specifier key_spec;
1: - __u32 __reserved[6];
1: - __u32 status;
1: - __u32 status_flags;
1: - __u32 user_count;
1: - __u32 __out_reserved[13];
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 __reserved[6];
1: + __u32 status;
1: + __u32 status_flags;
1: + __u32 user_count;
1: + __u32 __out_reserved[13];
1: };
1:
1: struct skcipher_alg {
1: - int (*setkey)(struct crypto_skcipher *, const u8 *, unsigned int);
1: - int (*encrypt)(struct skcipher_request *);
1: - int (*decrypt)(struct skcipher_request *);
1: - int (*init)(struct crypto_skcipher *);
1: - void (*exit)(struct crypto_skcipher *);
1: - unsigned int min_keysize;
1: - unsigned int max_keysize;
1: - unsigned int ivsize;
1: - unsigned int chunksize;
1: - unsigned int walksize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*setkey)(struct crypto_skcipher *, const u8 *, unsigned int);
1: + int (*encrypt)(struct skcipher_request *);
1: + int (*decrypt)(struct skcipher_request *);
1: + int (*init)(struct crypto_skcipher *);
1: + void (*exit)(struct crypto_skcipher *);
1: + unsigned int min_keysize;
1: + unsigned int max_keysize;
1: + unsigned int ivsize;
1: + unsigned int chunksize;
1: + unsigned int walksize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct fscrypt_context_v1 {
1: - u8 version;
1: - u8 contents_encryption_mode;
1: - u8 filenames_encryption_mode;
1: - u8 flags;
1: - u8 master_key_descriptor[8];
1: - u8 nonce[16];
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 master_key_descriptor[8];
1: + u8 nonce[16];
1: };
1:
1: struct fscrypt_context_v2 {
1: - u8 version;
1: - u8 contents_encryption_mode;
1: - u8 filenames_encryption_mode;
1: - u8 flags;
1: - u8 __reserved[4];
1: - u8 master_key_identifier[16];
1: - u8 nonce[16];
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 __reserved[4];
1: + u8 master_key_identifier[16];
1: + u8 nonce[16];
1: };
1:
1: union fscrypt_context {
1: - u8 version;
1: - struct fscrypt_context_v1 v1;
1: - struct fscrypt_context_v2 v2;
1: + u8 version;
1: + struct fscrypt_context_v1 v1;
1: + struct fscrypt_context_v2 v2;
1: };
1:
1: struct crypto_template;
1: @@ -40747,285 +41322,285 @@ struct crypto_template;
1: struct crypto_spawn;
1:
1: struct crypto_instance {
1: - struct crypto_alg alg;
1: - struct crypto_template *tmpl;
1: - union {
1: - struct hlist_node list;
1: - struct crypto_spawn *spawns;
1: - };
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_alg alg;
1: + struct crypto_template *tmpl;
1: + union {
1: + struct hlist_node list;
1: + struct crypto_spawn *spawns;
1: + };
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_spawn {
1: - struct list_head list;
1: - struct crypto_alg *alg;
1: - union {
1: - struct crypto_instance *inst;
1: - struct crypto_spawn *next;
1: - };
1: - const struct crypto_type *frontend;
1: - u32 mask;
1: - bool dead;
1: - bool registered;
1: + struct list_head list;
1: + struct crypto_alg *alg;
1: + union {
1: + struct crypto_instance *inst;
1: + struct crypto_spawn *next;
1: + };
1: + const struct crypto_type *frontend;
1: + u32 mask;
1: + bool dead;
1: + bool registered;
1: };
1:
1: struct rtattr;
1:
1: struct crypto_template {
1: - struct list_head list;
1: - struct hlist_head instances;
1: - struct module *module;
1: - int (*create)(struct crypto_template *, struct rtattr **);
1: - char name[128];
1: + struct list_head list;
1: + struct hlist_head instances;
1: + struct module *module;
1: + int (*create)(struct crypto_template *, struct rtattr **);
1: + char name[128];
1: };
1:
1: struct user_key_payload {
1: - struct callback_head rcu;
1: - short unsigned int datalen;
1: - long: 48;
1: - char data[0];
1: + struct callback_head rcu;
1: + short unsigned int datalen;
1: + long : 48;
1: + char data[0];
1: };
1:
1: struct fscrypt_key {
1: - __u32 mode;
1: - __u8 raw[64];
1: - __u32 size;
1: + __u32 mode;
1: + __u8 raw[64];
1: + __u32 size;
1: };
1:
1: struct fscrypt_direct_key {
1: - struct hlist_node dk_node;
1: - refcount_t dk_refcount;
1: - const struct fscrypt_mode *dk_mode;
1: - struct fscrypt_prepared_key dk_key;
1: - u8 dk_descriptor[8];
1: - u8 dk_raw[64];
1: + struct hlist_node dk_node;
1: + refcount_t dk_refcount;
1: + const struct fscrypt_mode *dk_mode;
1: + struct fscrypt_prepared_key dk_key;
1: + u8 dk_descriptor[8];
1: + u8 dk_raw[64];
1: };
1:
1: struct fscrypt_get_policy_ex_arg {
1: - __u64 policy_size;
1: - union {
1: - __u8 version;
1: - struct fscrypt_policy_v1 v1;
1: - struct fscrypt_policy_v2 v2;
1: - } policy;
1: + __u64 policy_size;
1: + union {
1: + __u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: + } policy;
1: };
1:
1: struct fscrypt_dummy_policy {
1: - const union fscrypt_policy *policy;
1: + const union fscrypt_policy *policy;
1: };
1:
1: struct fscrypt_blk_crypto_key {
1: - struct blk_crypto_key base;
1: - int num_devs;
1: - struct request_queue *devs[0];
1: + struct blk_crypto_key base;
1: + int num_devs;
1: + struct request_queue *devs[0];
1: };
1:
1: struct fsverity_hash_alg;
1:
1: struct merkle_tree_params {
1: - struct fsverity_hash_alg *hash_alg;
1: - const u8 *hashstate;
1: - unsigned int digest_size;
1: - unsigned int block_size;
1: - unsigned int hashes_per_block;
1: - unsigned int log_blocksize;
1: - unsigned int log_arity;
1: - unsigned int num_levels;
1: - u64 tree_size;
1: - long unsigned int level0_blocks;
1: - u64 level_start[8];
1: + struct fsverity_hash_alg *hash_alg;
1: + const u8 *hashstate;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + unsigned int hashes_per_block;
1: + unsigned int log_blocksize;
1: + unsigned int log_arity;
1: + unsigned int num_levels;
1: + u64 tree_size;
1: + long unsigned int level0_blocks;
1: + u64 level_start[8];
1: };
1:
1: struct fsverity_info {
1: - struct merkle_tree_params tree_params;
1: - u8 root_hash[64];
1: - u8 measurement[64];
1: - const struct inode *inode;
1: + struct merkle_tree_params tree_params;
1: + u8 root_hash[64];
1: + u8 measurement[64];
1: + const struct inode *inode;
1: };
1:
1: struct fsverity_enable_arg {
1: - __u32 version;
1: - __u32 hash_algorithm;
1: - __u32 block_size;
1: - __u32 salt_size;
1: - __u64 salt_ptr;
1: - __u32 sig_size;
1: - __u32 __reserved1;
1: - __u64 sig_ptr;
1: - __u64 __reserved2[11];
1: + __u32 version;
1: + __u32 hash_algorithm;
1: + __u32 block_size;
1: + __u32 salt_size;
1: + __u64 salt_ptr;
1: + __u32 sig_size;
1: + __u32 __reserved1;
1: + __u64 sig_ptr;
1: + __u64 __reserved2[11];
1: };
1:
1: struct crypto_ahash;
1:
1: struct fsverity_hash_alg {
1: - struct crypto_ahash *tfm;
1: - const char *name;
1: - unsigned int digest_size;
1: - unsigned int block_size;
1: - mempool_t req_pool;
1: + struct crypto_ahash *tfm;
1: + const char *name;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + mempool_t req_pool;
1: };
1:
1: struct ahash_request;
1:
1: struct crypto_ahash {
1: - int (*init)(struct ahash_request *);
1: - int (*update)(struct ahash_request *);
1: - int (*final)(struct ahash_request *);
1: - int (*finup)(struct ahash_request *);
1: - int (*digest)(struct ahash_request *);
1: - int (*export)(struct ahash_request *, void *);
1: - int (*import)(struct ahash_request *, const void *);
1: - int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_tfm base;
1: + int (*init)(struct ahash_request *);
1: + int (*update)(struct ahash_request *);
1: + int (*final)(struct ahash_request *);
1: + int (*finup)(struct ahash_request *);
1: + int (*digest)(struct ahash_request *);
1: + int (*export)(struct ahash_request *, void *);
1: + int (*import)(struct ahash_request *, const void *);
1: + int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_tfm base;
1: };
1:
1: struct fsverity_descriptor {
1: - __u8 version;
1: - __u8 hash_algorithm;
1: - __u8 log_blocksize;
1: - __u8 salt_size;
1: - __le32 sig_size;
1: - __le64 data_size;
1: - __u8 root_hash[64];
1: - __u8 salt[32];
1: - __u8 __reserved[144];
1: - __u8 signature[0];
1: + __u8 version;
1: + __u8 hash_algorithm;
1: + __u8 log_blocksize;
1: + __u8 salt_size;
1: + __le32 sig_size;
1: + __le64 data_size;
1: + __u8 root_hash[64];
1: + __u8 salt[32];
1: + __u8 __reserved[144];
1: + __u8 signature[0];
1: };
1:
1: struct ahash_request {
1: - struct crypto_async_request base;
1: - unsigned int nbytes;
1: - struct scatterlist *src;
1: - u8 *result;
1: - void *priv;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_async_request base;
1: + unsigned int nbytes;
1: + struct scatterlist *src;
1: + u8 *result;
1: + void *priv;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct hash_alg_common {
1: - unsigned int digestsize;
1: - unsigned int statesize;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct fsverity_digest {
1: - __u16 digest_algorithm;
1: - __u16 digest_size;
1: - __u8 digest[0];
1: + __u16 digest_algorithm;
1: + __u16 digest_size;
1: + __u8 digest[0];
1: };
1:
1: struct flock64 {
1: - short int l_type;
1: - short int l_whence;
1: - __kernel_loff_t l_start;
1: - __kernel_loff_t l_len;
1: - __kernel_pid_t l_pid;
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_loff_t l_start;
1: + __kernel_loff_t l_len;
1: + __kernel_pid_t l_pid;
1: };
1:
1: struct trace_event_raw_locks_get_lock_context {
1: - struct trace_entry ent;
1: - long unsigned int i_ino;
1: - dev_t s_dev;
1: - unsigned char type;
1: - struct file_lock_context *ctx;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + unsigned char type;
1: + struct file_lock_context *ctx;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_filelock_lock {
1: - struct trace_entry ent;
1: - struct file_lock *fl;
1: - long unsigned int i_ino;
1: - dev_t s_dev;
1: - struct file_lock *fl_blocker;
1: - fl_owner_t fl_owner;
1: - unsigned int fl_pid;
1: - unsigned int fl_flags;
1: - unsigned char fl_type;
1: - loff_t fl_start;
1: - loff_t fl_end;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_pid;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_filelock_lease {
1: - struct trace_entry ent;
1: - struct file_lock *fl;
1: - long unsigned int i_ino;
1: - dev_t s_dev;
1: - struct file_lock *fl_blocker;
1: - fl_owner_t fl_owner;
1: - unsigned int fl_flags;
1: - unsigned char fl_type;
1: - long unsigned int fl_break_time;
1: - long unsigned int fl_downgrade_time;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_generic_add_lease {
1: - struct trace_entry ent;
1: - long unsigned int i_ino;
1: - int wcount;
1: - int rcount;
1: - int icount;
1: - dev_t s_dev;
1: - fl_owner_t fl_owner;
1: - unsigned int fl_flags;
1: - unsigned char fl_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + int wcount;
1: + int rcount;
1: + int icount;
1: + dev_t s_dev;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_leases_conflict {
1: - struct trace_entry ent;
1: - void *lease;
1: - void *breaker;
1: - unsigned int l_fl_flags;
1: - unsigned int b_fl_flags;
1: - unsigned char l_fl_type;
1: - unsigned char b_fl_type;
1: - bool conflict;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *lease;
1: + void *breaker;
1: + unsigned int l_fl_flags;
1: + unsigned int b_fl_flags;
1: + unsigned char l_fl_type;
1: + unsigned char b_fl_type;
1: + bool conflict;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_locks_get_lock_context {};
1: @@ -41038,38 +41613,50 @@ struct trace_event_data_offsets_generic_add_lease {};
1:
1: struct trace_event_data_offsets_leases_conflict {};
1:
1: -typedef void (*btf_trace_locks_get_lock_context)(void *, struct inode *, int, struct file_lock_context *);
1: +typedef void (*btf_trace_locks_get_lock_context)(void *, struct inode *, int,
1: + struct file_lock_context *);
1:
1: -typedef void (*btf_trace_posix_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +typedef void (*btf_trace_posix_lock_inode)(void *, struct inode *,
1: + struct file_lock *, int);
1:
1: -typedef void (*btf_trace_fcntl_setlk)(void *, struct inode *, struct file_lock *, int);
1: +typedef void (*btf_trace_fcntl_setlk)(void *, struct inode *,
1: + struct file_lock *, int);
1:
1: -typedef void (*btf_trace_locks_remove_posix)(void *, struct inode *, struct file_lock *, int);
1: +typedef void (*btf_trace_locks_remove_posix)(void *, struct inode *,
1: + struct file_lock *, int);
1:
1: -typedef void (*btf_trace_flock_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +typedef void (*btf_trace_flock_lock_inode)(void *, struct inode *,
1: + struct file_lock *, int);
1:
1: -typedef void (*btf_trace_break_lease_noblock)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_break_lease_noblock)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_break_lease_block)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_break_lease_block)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_break_lease_unblock)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_break_lease_unblock)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_generic_delete_lease)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_generic_delete_lease)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_time_out_leases)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_time_out_leases)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_generic_add_lease)(void *, struct inode *, struct file_lock *);
1: +typedef void (*btf_trace_generic_add_lease)(void *, struct inode *,
1: + struct file_lock *);
1:
1: -typedef void (*btf_trace_leases_conflict)(void *, bool, struct file_lock *, struct file_lock *);
1: +typedef void (*btf_trace_leases_conflict)(void *, bool, struct file_lock *,
1: + struct file_lock *);
1:
1: struct file_lock_list_struct {
1: - spinlock_t lock;
1: - struct hlist_head hlist;
1: + spinlock_t lock;
1: + struct hlist_head hlist;
1: };
1:
1: struct locks_iterator {
1: - int li_cpu;
1: - loff_t li_pos;
1: + int li_cpu;
1: + loff_t li_pos;
1: };
1:
1: typedef unsigned int __kernel_uid_t;
1: @@ -41077,69 +41664,69 @@ typedef unsigned int __kernel_uid_t;
1: typedef unsigned int __kernel_gid_t;
1:
1: struct gnu_property {
1: - u32 pr_type;
1: - u32 pr_datasz;
1: + u32 pr_type;
1: + u32 pr_datasz;
1: };
1:
1: struct elf_prpsinfo {
1: - char pr_state;
1: - char pr_sname;
1: - char pr_zomb;
1: - char pr_nice;
1: - long unsigned int pr_flag;
1: - __kernel_uid_t pr_uid;
1: - __kernel_gid_t pr_gid;
1: - pid_t pr_pid;
1: - pid_t pr_ppid;
1: - pid_t pr_pgrp;
1: - pid_t pr_sid;
1: - char pr_fname[16];
1: - char pr_psargs[80];
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + long unsigned int pr_flag;
1: + __kernel_uid_t pr_uid;
1: + __kernel_gid_t pr_gid;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: };
1:
1: struct core_vma_metadata {
1: - long unsigned int start;
1: - long unsigned int end;
1: - long unsigned int flags;
1: - long unsigned int dump_size;
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int flags;
1: + long unsigned int dump_size;
1: };
1:
1: struct memelfnote {
1: - const char *name;
1: - int type;
1: - unsigned int datasz;
1: - void *data;
1: + const char *name;
1: + int type;
1: + unsigned int datasz;
1: + void *data;
1: };
1:
1: struct elf_thread_core_info {
1: - struct elf_thread_core_info *next;
1: - struct task_struct *task;
1: - struct elf_prstatus prstatus;
1: - struct memelfnote notes[0];
1: + struct elf_thread_core_info *next;
1: + struct task_struct *task;
1: + struct elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: };
1:
1: struct elf_note_info {
1: - struct elf_thread_core_info *thread;
1: - struct memelfnote psinfo;
1: - struct memelfnote signote;
1: - struct memelfnote auxv;
1: - struct memelfnote files;
1: - siginfo_t csigdata;
1: - size_t size;
1: - int thread_notes;
1: + struct elf_thread_core_info *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: };
1:
1: struct elf32_shdr {
1: - Elf32_Word sh_name;
1: - Elf32_Word sh_type;
1: - Elf32_Word sh_flags;
1: - Elf32_Addr sh_addr;
1: - Elf32_Off sh_offset;
1: - Elf32_Word sh_size;
1: - Elf32_Word sh_link;
1: - Elf32_Word sh_info;
1: - Elf32_Word sh_addralign;
1: - Elf32_Word sh_entsize;
1: + Elf32_Word sh_name;
1: + Elf32_Word sh_type;
1: + Elf32_Word sh_flags;
1: + Elf32_Addr sh_addr;
1: + Elf32_Off sh_offset;
1: + Elf32_Word sh_size;
1: + Elf32_Word sh_link;
1: + Elf32_Word sh_info;
1: + Elf32_Word sh_addralign;
1: + Elf32_Word sh_entsize;
1: };
1:
1: typedef u16 __compat_uid_t;
1: @@ -41151,141 +41738,141 @@ typedef unsigned int compat_elf_greg_t;
1: typedef compat_elf_greg_t compat_elf_gregset_t[18];
1:
1: struct compat_elf_siginfo {
1: - compat_int_t si_signo;
1: - compat_int_t si_code;
1: - compat_int_t si_errno;
1: + compat_int_t si_signo;
1: + compat_int_t si_code;
1: + compat_int_t si_errno;
1: };
1:
1: struct compat_elf_prstatus {
1: - struct compat_elf_siginfo pr_info;
1: - short int pr_cursig;
1: - compat_ulong_t pr_sigpend;
1: - compat_ulong_t pr_sighold;
1: - compat_pid_t pr_pid;
1: - compat_pid_t pr_ppid;
1: - compat_pid_t pr_pgrp;
1: - compat_pid_t pr_sid;
1: - struct old_timeval32 pr_utime;
1: - struct old_timeval32 pr_stime;
1: - struct old_timeval32 pr_cutime;
1: - struct old_timeval32 pr_cstime;
1: - compat_elf_gregset_t pr_reg;
1: - compat_int_t pr_fpvalid;
1: + struct compat_elf_siginfo pr_info;
1: + short int pr_cursig;
1: + compat_ulong_t pr_sigpend;
1: + compat_ulong_t pr_sighold;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + struct old_timeval32 pr_utime;
1: + struct old_timeval32 pr_stime;
1: + struct old_timeval32 pr_cutime;
1: + struct old_timeval32 pr_cstime;
1: + compat_elf_gregset_t pr_reg;
1: + compat_int_t pr_fpvalid;
1: };
1:
1: struct compat_elf_prpsinfo {
1: - char pr_state;
1: - char pr_sname;
1: - char pr_zomb;
1: - char pr_nice;
1: - compat_ulong_t pr_flag;
1: - __compat_uid_t pr_uid;
1: - __compat_gid_t pr_gid;
1: - compat_pid_t pr_pid;
1: - compat_pid_t pr_ppid;
1: - compat_pid_t pr_pgrp;
1: - compat_pid_t pr_sid;
1: - char pr_fname[16];
1: - char pr_psargs[80];
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + compat_ulong_t pr_flag;
1: + __compat_uid_t pr_uid;
1: + __compat_gid_t pr_gid;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: };
1:
1: struct elf_thread_core_info___2 {
1: - struct elf_thread_core_info___2 *next;
1: - struct task_struct *task;
1: - struct compat_elf_prstatus prstatus;
1: - struct memelfnote notes[0];
1: + struct elf_thread_core_info___2 *next;
1: + struct task_struct *task;
1: + struct compat_elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: };
1:
1: struct elf_note_info___2 {
1: - struct elf_thread_core_info___2 *thread;
1: - struct memelfnote psinfo;
1: - struct memelfnote signote;
1: - struct memelfnote auxv;
1: - struct memelfnote files;
1: - compat_siginfo_t csigdata;
1: - size_t size;
1: - int thread_notes;
1: + struct elf_thread_core_info___2 *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + compat_siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: };
1:
1: struct mb_cache_entry {
1: - struct list_head e_list;
1: - struct hlist_bl_node e_hash_list;
1: - atomic_t e_refcnt;
1: - u32 e_key;
1: - u32 e_referenced: 1;
1: - u32 e_reusable: 1;
1: - u64 e_value;
1: + struct list_head e_list;
1: + struct hlist_bl_node e_hash_list;
1: + atomic_t e_refcnt;
1: + u32 e_key;
1: + u32 e_referenced : 1;
1: + u32 e_reusable : 1;
1: + u64 e_value;
1: };
1:
1: struct mb_cache {
1: - struct hlist_bl_head *c_hash;
1: - int c_bucket_bits;
1: - long unsigned int c_max_entries;
1: - spinlock_t c_list_lock;
1: - struct list_head c_list;
1: - long unsigned int c_entry_count;
1: - struct shrinker c_shrink;
1: - struct work_struct c_shrink_work;
1: + struct hlist_bl_head *c_hash;
1: + int c_bucket_bits;
1: + long unsigned int c_max_entries;
1: + spinlock_t c_list_lock;
1: + struct list_head c_list;
1: + long unsigned int c_entry_count;
1: + struct shrinker c_shrink;
1: + struct work_struct c_shrink_work;
1: };
1:
1: struct posix_acl_xattr_entry {
1: - __le16 e_tag;
1: - __le16 e_perm;
1: - __le32 e_id;
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: };
1:
1: struct posix_acl_xattr_header {
1: - __le32 a_version;
1: + __le32 a_version;
1: };
1:
1: struct core_name {
1: - char *corename;
1: - int used;
1: - int size;
1: + char *corename;
1: + int used;
1: + int size;
1: };
1:
1: struct trace_event_raw_iomap_readpage_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - u64 ino;
1: - int nr_pages;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + int nr_pages;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iomap_range_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - u64 ino;
1: - loff_t size;
1: - long unsigned int offset;
1: - unsigned int length;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t size;
1: + long unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iomap_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - u64 ino;
1: - u64 addr;
1: - loff_t offset;
1: - u64 length;
1: - u16 type;
1: - u16 flags;
1: - dev_t bdev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + dev_t bdev;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iomap_apply {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - u64 ino;
1: - loff_t pos;
1: - loff_t length;
1: - unsigned int flags;
1: - const void *ops;
1: - void *actor;
1: - long unsigned int caller;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t pos;
1: + loff_t length;
1: + unsigned int flags;
1: + const void *ops;
1: + void *actor;
1: + long unsigned int caller;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_iomap_readpage_class {};
1: @@ -41300,492 +41887,504 @@ typedef void (*btf_trace_iomap_readpage)(void *, struct inode *, int);
1:
1: typedef void (*btf_trace_iomap_readahead)(void *, struct inode *, int);
1:
1: -typedef void (*btf_trace_iomap_writepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +typedef void (*btf_trace_iomap_writepage)(void *, struct inode *,
1: + long unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_iomap_releasepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +typedef void (*btf_trace_iomap_releasepage)(void *, struct inode *,
1: + long unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_iomap_invalidatepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +typedef void (*btf_trace_iomap_invalidatepage)(void *, struct inode *,
1: + long unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_iomap_dio_invalidate_fail)(void *, struct inode *, long unsigned int, unsigned int);
1: +typedef void (*btf_trace_iomap_dio_invalidate_fail)(void *, struct inode *,
1: + long unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_iomap_apply_dstmap)(void *, struct inode *, struct iomap___2 *);
1: +typedef void (*btf_trace_iomap_apply_dstmap)(void *, struct inode *,
1: + struct iomap___2 *);
1:
1: -typedef void (*btf_trace_iomap_apply_srcmap)(void *, struct inode *, struct iomap___2 *);
1: +typedef void (*btf_trace_iomap_apply_srcmap)(void *, struct inode *,
1: + struct iomap___2 *);
1:
1: -typedef void (*btf_trace_iomap_apply)(void *, struct inode *, loff_t, loff_t, unsigned int, const void *, void *, long unsigned int);
1: +typedef void (*btf_trace_iomap_apply)(void *, struct inode *, loff_t, loff_t,
1: + unsigned int, const void *, void *,
1: + long unsigned int);
1:
1: -typedef loff_t (*iomap_actor_t)(struct inode *, loff_t, loff_t, void *, struct iomap___2 *, struct iomap___2 *);
1: +typedef loff_t (*iomap_actor_t)(struct inode *, loff_t, loff_t, void *,
1: + struct iomap___2 *, struct iomap___2 *);
1:
1: struct iomap_ioend {
1: - struct list_head io_list;
1: - u16 io_type;
1: - u16 io_flags;
1: - struct inode *io_inode;
1: - size_t io_size;
1: - loff_t io_offset;
1: - void *io_private;
1: - struct bio *io_bio;
1: - struct bio io_inline_bio;
1: + struct list_head io_list;
1: + u16 io_type;
1: + u16 io_flags;
1: + struct inode *io_inode;
1: + size_t io_size;
1: + loff_t io_offset;
1: + void *io_private;
1: + struct bio *io_bio;
1: + struct bio io_inline_bio;
1: };
1:
1: struct iomap_writepage_ctx;
1:
1: struct iomap_writeback_ops {
1: - int (*map_blocks)(struct iomap_writepage_ctx *, struct inode *, loff_t);
1: - int (*prepare_ioend)(struct iomap_ioend *, int);
1: - void (*discard_page)(struct page *, loff_t);
1: + int (*map_blocks)(struct iomap_writepage_ctx *, struct inode *, loff_t);
1: + int (*prepare_ioend)(struct iomap_ioend *, int);
1: + void (*discard_page)(struct page *, loff_t);
1: };
1:
1: struct iomap_writepage_ctx {
1: - struct iomap___2 iomap;
1: - struct iomap_ioend *ioend;
1: - const struct iomap_writeback_ops *ops;
1: + struct iomap___2 iomap;
1: + struct iomap_ioend *ioend;
1: + const struct iomap_writeback_ops *ops;
1: };
1:
1: struct iomap_page {
1: - atomic_t read_bytes_pending;
1: - atomic_t write_bytes_pending;
1: - spinlock_t uptodate_lock;
1: - long unsigned int uptodate[0];
1: + atomic_t read_bytes_pending;
1: + atomic_t write_bytes_pending;
1: + spinlock_t uptodate_lock;
1: + long unsigned int uptodate[0];
1: };
1:
1: struct iomap_readpage_ctx {
1: - struct page *cur_page;
1: - bool cur_page_in_bio;
1: - struct bio *bio;
1: - struct readahead_control *rac;
1: + struct page *cur_page;
1: + bool cur_page_in_bio;
1: + struct bio *bio;
1: + struct readahead_control *rac;
1: };
1:
1: enum {
1: - IOMAP_WRITE_F_UNSHARE = 1,
1: + IOMAP_WRITE_F_UNSHARE = 1,
1: };
1:
1: struct iomap_dio_ops {
1: - int (*end_io)(struct kiocb *, ssize_t, int, unsigned int);
1: - blk_qc_t (*submit_io)(struct inode *, struct iomap___2 *, struct bio *, loff_t);
1: + int (*end_io)(struct kiocb *, ssize_t, int, unsigned int);
1: + blk_qc_t (*submit_io)(struct inode *, struct iomap___2 *, struct bio *,
1: + loff_t);
1: };
1:
1: struct iomap_dio {
1: - struct kiocb *iocb;
1: - const struct iomap_dio_ops *dops;
1: - loff_t i_size;
1: - loff_t size;
1: - atomic_t ref;
1: - unsigned int flags;
1: - int error;
1: - bool wait_for_completion;
1: - union {
1: - struct {
1: - struct iov_iter *iter;
1: - struct task_struct *waiter;
1: - struct request_queue *last_queue;
1: - blk_qc_t cookie;
1: - } submit;
1: - struct {
1: - struct work_struct work;
1: - } aio;
1: - };
1: + struct kiocb *iocb;
1: + const struct iomap_dio_ops *dops;
1: + loff_t i_size;
1: + loff_t size;
1: + atomic_t ref;
1: + unsigned int flags;
1: + int error;
1: + bool wait_for_completion;
1: + union {
1: + struct {
1: + struct iov_iter *iter;
1: + struct task_struct *waiter;
1: + struct request_queue *last_queue;
1: + blk_qc_t cookie;
1: + } submit;
1: + struct {
1: + struct work_struct work;
1: + } aio;
1: + };
1: };
1:
1: struct fiemap_ctx {
1: - struct fiemap_extent_info *fi;
1: - struct iomap___2 prev;
1: + struct fiemap_extent_info *fi;
1: + struct iomap___2 prev;
1: };
1:
1: struct iomap_swapfile_info {
1: - struct iomap___2 iomap;
1: - struct swap_info_struct *sis;
1: - uint64_t lowest_ppage;
1: - uint64_t highest_ppage;
1: - long unsigned int nr_pages;
1: - int nr_extents;
1: + struct iomap___2 iomap;
1: + struct swap_info_struct *sis;
1: + uint64_t lowest_ppage;
1: + uint64_t highest_ppage;
1: + long unsigned int nr_pages;
1: + int nr_extents;
1: };
1:
1: enum {
1: - QIF_BLIMITS_B = 0,
1: - QIF_SPACE_B = 1,
1: - QIF_ILIMITS_B = 2,
1: - QIF_INODES_B = 3,
1: - QIF_BTIME_B = 4,
1: - QIF_ITIME_B = 5,
1: + QIF_BLIMITS_B = 0,
1: + QIF_SPACE_B = 1,
1: + QIF_ILIMITS_B = 2,
1: + QIF_INODES_B = 3,
1: + QIF_BTIME_B = 4,
1: + QIF_ITIME_B = 5,
1: };
1:
1: typedef __kernel_uid32_t qid_t;
1:
1: enum {
1: - DQF_INFO_DIRTY_B = 17,
1: + DQF_INFO_DIRTY_B = 17,
1: };
1:
1: struct dqstats {
1: - long unsigned int stat[8];
1: - struct percpu_counter counter[8];
1: + long unsigned int stat[8];
1: + struct percpu_counter counter[8];
1: };
1:
1: enum {
1: - _DQUOT_USAGE_ENABLED = 0,
1: - _DQUOT_LIMITS_ENABLED = 1,
1: - _DQUOT_SUSPENDED = 2,
1: - _DQUOT_STATE_FLAGS = 3,
1: + _DQUOT_USAGE_ENABLED = 0,
1: + _DQUOT_LIMITS_ENABLED = 1,
1: + _DQUOT_SUSPENDED = 2,
1: + _DQUOT_STATE_FLAGS = 3,
1: };
1:
1: struct quota_module_name {
1: - int qm_fmt_id;
1: - char *qm_mod_name;
1: + int qm_fmt_id;
1: + char *qm_mod_name;
1: };
1:
1: struct dquot_warn {
1: - struct super_block *w_sb;
1: - struct kqid w_dq_id;
1: - short int w_type;
1: + struct super_block *w_sb;
1: + struct kqid w_dq_id;
1: + short int w_type;
1: };
1:
1: struct fs_disk_quota {
1: - __s8 d_version;
1: - __s8 d_flags;
1: - __u16 d_fieldmask;
1: - __u32 d_id;
1: - __u64 d_blk_hardlimit;
1: - __u64 d_blk_softlimit;
1: - __u64 d_ino_hardlimit;
1: - __u64 d_ino_softlimit;
1: - __u64 d_bcount;
1: - __u64 d_icount;
1: - __s32 d_itimer;
1: - __s32 d_btimer;
1: - __u16 d_iwarns;
1: - __u16 d_bwarns;
1: - __s8 d_itimer_hi;
1: - __s8 d_btimer_hi;
1: - __s8 d_rtbtimer_hi;
1: - __s8 d_padding2;
1: - __u64 d_rtb_hardlimit;
1: - __u64 d_rtb_softlimit;
1: - __u64 d_rtbcount;
1: - __s32 d_rtbtimer;
1: - __u16 d_rtbwarns;
1: - __s16 d_padding3;
1: - char d_padding4[8];
1: + __s8 d_version;
1: + __s8 d_flags;
1: + __u16 d_fieldmask;
1: + __u32 d_id;
1: + __u64 d_blk_hardlimit;
1: + __u64 d_blk_softlimit;
1: + __u64 d_ino_hardlimit;
1: + __u64 d_ino_softlimit;
1: + __u64 d_bcount;
1: + __u64 d_icount;
1: + __s32 d_itimer;
1: + __s32 d_btimer;
1: + __u16 d_iwarns;
1: + __u16 d_bwarns;
1: + __s8 d_itimer_hi;
1: + __s8 d_btimer_hi;
1: + __s8 d_rtbtimer_hi;
1: + __s8 d_padding2;
1: + __u64 d_rtb_hardlimit;
1: + __u64 d_rtb_softlimit;
1: + __u64 d_rtbcount;
1: + __s32 d_rtbtimer;
1: + __u16 d_rtbwarns;
1: + __s16 d_padding3;
1: + char d_padding4[8];
1: };
1:
1: struct fs_qfilestat {
1: - __u64 qfs_ino;
1: - __u64 qfs_nblks;
1: - __u32 qfs_nextents;
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: };
1:
1: typedef struct fs_qfilestat fs_qfilestat_t;
1:
1: struct fs_quota_stat {
1: - __s8 qs_version;
1: - __u16 qs_flags;
1: - __s8 qs_pad;
1: - fs_qfilestat_t qs_uquota;
1: - fs_qfilestat_t qs_gquota;
1: - __u32 qs_incoredqs;
1: - __s32 qs_btimelimit;
1: - __s32 qs_itimelimit;
1: - __s32 qs_rtbtimelimit;
1: - __u16 qs_bwarnlimit;
1: - __u16 qs_iwarnlimit;
1: + __s8 qs_version;
1: + __u16 qs_flags;
1: + __s8 qs_pad;
1: + fs_qfilestat_t qs_uquota;
1: + fs_qfilestat_t qs_gquota;
1: + __u32 qs_incoredqs;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: };
1:
1: struct fs_qfilestatv {
1: - __u64 qfs_ino;
1: - __u64 qfs_nblks;
1: - __u32 qfs_nextents;
1: - __u32 qfs_pad;
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: + __u32 qfs_pad;
1: };
1:
1: struct fs_quota_statv {
1: - __s8 qs_version;
1: - __u8 qs_pad1;
1: - __u16 qs_flags;
1: - __u32 qs_incoredqs;
1: - struct fs_qfilestatv qs_uquota;
1: - struct fs_qfilestatv qs_gquota;
1: - struct fs_qfilestatv qs_pquota;
1: - __s32 qs_btimelimit;
1: - __s32 qs_itimelimit;
1: - __s32 qs_rtbtimelimit;
1: - __u16 qs_bwarnlimit;
1: - __u16 qs_iwarnlimit;
1: - __u64 qs_pad2[8];
1: + __s8 qs_version;
1: + __u8 qs_pad1;
1: + __u16 qs_flags;
1: + __u32 qs_incoredqs;
1: + struct fs_qfilestatv qs_uquota;
1: + struct fs_qfilestatv qs_gquota;
1: + struct fs_qfilestatv qs_pquota;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: + __u64 qs_pad2[8];
1: };
1:
1: struct if_dqblk {
1: - __u64 dqb_bhardlimit;
1: - __u64 dqb_bsoftlimit;
1: - __u64 dqb_curspace;
1: - __u64 dqb_ihardlimit;
1: - __u64 dqb_isoftlimit;
1: - __u64 dqb_curinodes;
1: - __u64 dqb_btime;
1: - __u64 dqb_itime;
1: - __u32 dqb_valid;
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: };
1:
1: struct if_nextdqblk {
1: - __u64 dqb_bhardlimit;
1: - __u64 dqb_bsoftlimit;
1: - __u64 dqb_curspace;
1: - __u64 dqb_ihardlimit;
1: - __u64 dqb_isoftlimit;
1: - __u64 dqb_curinodes;
1: - __u64 dqb_btime;
1: - __u64 dqb_itime;
1: - __u32 dqb_valid;
1: - __u32 dqb_id;
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: + __u32 dqb_id;
1: };
1:
1: struct if_dqinfo {
1: - __u64 dqi_bgrace;
1: - __u64 dqi_igrace;
1: - __u32 dqi_flags;
1: - __u32 dqi_valid;
1: + __u64 dqi_bgrace;
1: + __u64 dqi_igrace;
1: + __u32 dqi_flags;
1: + __u32 dqi_valid;
1: };
1:
1: struct compat_if_dqblk {
1: - compat_u64 dqb_bhardlimit;
1: - compat_u64 dqb_bsoftlimit;
1: - compat_u64 dqb_curspace;
1: - compat_u64 dqb_ihardlimit;
1: - compat_u64 dqb_isoftlimit;
1: - compat_u64 dqb_curinodes;
1: - compat_u64 dqb_btime;
1: - compat_u64 dqb_itime;
1: - compat_uint_t dqb_valid;
1: + compat_u64 dqb_bhardlimit;
1: + compat_u64 dqb_bsoftlimit;
1: + compat_u64 dqb_curspace;
1: + compat_u64 dqb_ihardlimit;
1: + compat_u64 dqb_isoftlimit;
1: + compat_u64 dqb_curinodes;
1: + compat_u64 dqb_btime;
1: + compat_u64 dqb_itime;
1: + compat_uint_t dqb_valid;
1: };
1:
1: enum {
1: - QUOTA_NL_C_UNSPEC = 0,
1: - QUOTA_NL_C_WARNING = 1,
1: - __QUOTA_NL_C_MAX = 2,
1: + QUOTA_NL_C_UNSPEC = 0,
1: + QUOTA_NL_C_WARNING = 1,
1: + __QUOTA_NL_C_MAX = 2,
1: };
1:
1: enum {
1: - QUOTA_NL_A_UNSPEC = 0,
1: - QUOTA_NL_A_QTYPE = 1,
1: - QUOTA_NL_A_EXCESS_ID = 2,
1: - QUOTA_NL_A_WARNING = 3,
1: - QUOTA_NL_A_DEV_MAJOR = 4,
1: - QUOTA_NL_A_DEV_MINOR = 5,
1: - QUOTA_NL_A_CAUSED_ID = 6,
1: - QUOTA_NL_A_PAD = 7,
1: - __QUOTA_NL_A_MAX = 8,
1: + QUOTA_NL_A_UNSPEC = 0,
1: + QUOTA_NL_A_QTYPE = 1,
1: + QUOTA_NL_A_EXCESS_ID = 2,
1: + QUOTA_NL_A_WARNING = 3,
1: + QUOTA_NL_A_DEV_MAJOR = 4,
1: + QUOTA_NL_A_DEV_MINOR = 5,
1: + QUOTA_NL_A_CAUSED_ID = 6,
1: + QUOTA_NL_A_PAD = 7,
1: + __QUOTA_NL_A_MAX = 8,
1: };
1:
1: struct proc_maps_private {
1: - struct inode *inode;
1: - struct task_struct *task;
1: - struct mm_struct *mm;
1: - struct vm_area_struct *tail_vma;
1: - struct mempolicy *task_mempolicy;
1: + struct inode *inode;
1: + struct task_struct *task;
1: + struct mm_struct *mm;
1: + struct vm_area_struct *tail_vma;
1: + struct mempolicy *task_mempolicy;
1: };
1:
1: struct mem_size_stats {
1: - long unsigned int resident;
1: - long unsigned int shared_clean;
1: - long unsigned int shared_dirty;
1: - long unsigned int private_clean;
1: - long unsigned int private_dirty;
1: - long unsigned int referenced;
1: - long unsigned int anonymous;
1: - long unsigned int lazyfree;
1: - long unsigned int anonymous_thp;
1: - long unsigned int shmem_thp;
1: - long unsigned int file_thp;
1: - long unsigned int swap;
1: - long unsigned int shared_hugetlb;
1: - long unsigned int private_hugetlb;
1: - u64 pss;
1: - u64 pss_anon;
1: - u64 pss_file;
1: - u64 pss_shmem;
1: - u64 pss_locked;
1: - u64 swap_pss;
1: - bool check_shmem_swap;
1: + long unsigned int resident;
1: + long unsigned int shared_clean;
1: + long unsigned int shared_dirty;
1: + long unsigned int private_clean;
1: + long unsigned int private_dirty;
1: + long unsigned int referenced;
1: + long unsigned int anonymous;
1: + long unsigned int lazyfree;
1: + long unsigned int anonymous_thp;
1: + long unsigned int shmem_thp;
1: + long unsigned int file_thp;
1: + long unsigned int swap;
1: + long unsigned int shared_hugetlb;
1: + long unsigned int private_hugetlb;
1: + u64 pss;
1: + u64 pss_anon;
1: + u64 pss_file;
1: + u64 pss_shmem;
1: + u64 pss_locked;
1: + u64 swap_pss;
1: + bool check_shmem_swap;
1: };
1:
1: enum clear_refs_types {
1: - CLEAR_REFS_ALL = 1,
1: - CLEAR_REFS_ANON = 2,
1: - CLEAR_REFS_MAPPED = 3,
1: - CLEAR_REFS_SOFT_DIRTY = 4,
1: - CLEAR_REFS_MM_HIWATER_RSS = 5,
1: - CLEAR_REFS_LAST = 6,
1: + CLEAR_REFS_ALL = 1,
1: + CLEAR_REFS_ANON = 2,
1: + CLEAR_REFS_MAPPED = 3,
1: + CLEAR_REFS_SOFT_DIRTY = 4,
1: + CLEAR_REFS_MM_HIWATER_RSS = 5,
1: + CLEAR_REFS_LAST = 6,
1: };
1:
1: struct clear_refs_private {
1: - enum clear_refs_types type;
1: + enum clear_refs_types type;
1: };
1:
1: typedef struct {
1: - u64 pme;
1: + u64 pme;
1: } pagemap_entry_t;
1:
1: struct pagemapread {
1: - int pos;
1: - int len;
1: - pagemap_entry_t *buffer;
1: - bool show_pfn;
1: + int pos;
1: + int len;
1: + pagemap_entry_t *buffer;
1: + bool show_pfn;
1: };
1:
1: struct numa_maps {
1: - long unsigned int pages;
1: - long unsigned int anon;
1: - long unsigned int active;
1: - long unsigned int writeback;
1: - long unsigned int mapcount_max;
1: - long unsigned int dirty;
1: - long unsigned int swapcache;
1: - long unsigned int node[128];
1: + long unsigned int pages;
1: + long unsigned int anon;
1: + long unsigned int active;
1: + long unsigned int writeback;
1: + long unsigned int mapcount_max;
1: + long unsigned int dirty;
1: + long unsigned int swapcache;
1: + long unsigned int node[128];
1: };
1:
1: struct numa_maps_private {
1: - struct proc_maps_private proc_maps;
1: - struct numa_maps md;
1: + struct proc_maps_private proc_maps;
1: + struct numa_maps md;
1: };
1:
1: struct pde_opener {
1: - struct list_head lh;
1: - struct file *file;
1: - bool closing;
1: - struct completion *c;
1: + struct list_head lh;
1: + struct file *file;
1: + bool closing;
1: + struct completion *c;
1: };
1:
1: enum {
1: - BIAS = 2147483648,
1: + BIAS = 2147483648,
1: };
1:
1: struct proc_fs_context {
1: - struct pid_namespace *pid_ns;
1: - unsigned int mask;
1: - enum proc_hidepid hidepid;
1: - int gid;
1: - enum proc_pidonly pidonly;
1: + struct pid_namespace *pid_ns;
1: + unsigned int mask;
1: + enum proc_hidepid hidepid;
1: + int gid;
1: + enum proc_pidonly pidonly;
1: };
1:
1: enum proc_param {
1: - Opt_gid___2 = 0,
1: - Opt_hidepid = 1,
1: - Opt_subset = 2,
1: + Opt_gid___2 = 0,
1: + Opt_hidepid = 1,
1: + Opt_subset = 2,
1: };
1:
1: struct genradix_root;
1:
1: struct __genradix {
1: - struct genradix_root *root;
1: + struct genradix_root *root;
1: };
1:
1: struct syscall_info {
1: - __u64 sp;
1: - struct seccomp_data data;
1: + __u64 sp;
1: + struct seccomp_data data;
1: };
1:
1: -typedef struct dentry *instantiate_t(struct dentry *, struct task_struct *, const void *);
1: +typedef struct dentry *instantiate_t(struct dentry *, struct task_struct *,
1: + const void *);
1:
1: struct pid_entry {
1: - const char *name;
1: - unsigned int len;
1: - umode_t mode;
1: - const struct inode_operations *iop;
1: - const struct file_operations *fop;
1: - union proc_op op;
1: + const char *name;
1: + unsigned int len;
1: + umode_t mode;
1: + const struct inode_operations *iop;
1: + const struct file_operations *fop;
1: + union proc_op op;
1: };
1:
1: struct limit_names {
1: - const char *name;
1: - const char *unit;
1: + const char *name;
1: + const char *unit;
1: };
1:
1: struct map_files_info {
1: - long unsigned int start;
1: - long unsigned int end;
1: - fmode_t mode;
1: + long unsigned int start;
1: + long unsigned int end;
1: + fmode_t mode;
1: };
1:
1: struct timers_private {
1: - struct pid *pid;
1: - struct task_struct *task;
1: - struct sighand_struct *sighand;
1: - struct pid_namespace *ns;
1: - long unsigned int flags;
1: + struct pid *pid;
1: + struct task_struct *task;
1: + struct sighand_struct *sighand;
1: + struct pid_namespace *ns;
1: + long unsigned int flags;
1: };
1:
1: struct tgid_iter {
1: - unsigned int tgid;
1: - struct task_struct *task;
1: + unsigned int tgid;
1: + struct task_struct *task;
1: };
1:
1: struct fd_data {
1: - fmode_t mode;
1: - unsigned int fd;
1: + fmode_t mode;
1: + unsigned int fd;
1: };
1:
1: struct sysctl_alias {
1: - const char *kernel_param;
1: - const char *sysctl_param;
1: + const char *kernel_param;
1: + const char *sysctl_param;
1: };
1:
1: struct seq_net_private {
1: - struct net *net;
1: + struct net *net;
1: };
1:
1: struct bpf_iter_aux_info___2;
1:
1: enum kcore_type {
1: - KCORE_TEXT = 0,
1: - KCORE_VMALLOC = 1,
1: - KCORE_RAM = 2,
1: - KCORE_VMEMMAP = 3,
1: - KCORE_USER = 4,
1: - KCORE_OTHER = 5,
1: - KCORE_REMAP = 6,
1: + KCORE_TEXT = 0,
1: + KCORE_VMALLOC = 1,
1: + KCORE_RAM = 2,
1: + KCORE_VMEMMAP = 3,
1: + KCORE_USER = 4,
1: + KCORE_OTHER = 5,
1: + KCORE_REMAP = 6,
1: };
1:
1: struct kcore_list {
1: - struct list_head list;
1: - long unsigned int addr;
1: - long unsigned int vaddr;
1: - size_t size;
1: - int type;
1: + struct list_head list;
1: + long unsigned int addr;
1: + long unsigned int vaddr;
1: + size_t size;
1: + int type;
1: };
1:
1: struct kernfs_iattrs {
1: - kuid_t ia_uid;
1: - kgid_t ia_gid;
1: - struct timespec64 ia_atime;
1: - struct timespec64 ia_mtime;
1: - struct timespec64 ia_ctime;
1: - struct simple_xattrs xattrs;
1: - atomic_t nr_user_xattrs;
1: - atomic_t user_xattr_size;
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct simple_xattrs xattrs;
1: + atomic_t nr_user_xattrs;
1: + atomic_t user_xattr_size;
1: };
1:
1: struct kernfs_super_info {
1: - struct super_block *sb;
1: - struct kernfs_root *root;
1: - const void *ns;
1: - struct list_head node;
1: + struct super_block *sb;
1: + struct kernfs_root *root;
1: + const void *ns;
1: + struct list_head node;
1: };
1:
1: enum kernfs_node_flag {
1: - KERNFS_ACTIVATED = 16,
1: - KERNFS_NS = 32,
1: - KERNFS_HAS_SEQ_SHOW = 64,
1: - KERNFS_HAS_MMAP = 128,
1: - KERNFS_LOCKDEP = 256,
1: - KERNFS_SUICIDAL = 1024,
1: - KERNFS_SUICIDED = 2048,
1: - KERNFS_EMPTY_DIR = 4096,
1: - KERNFS_HAS_RELEASE = 8192,
1: + KERNFS_ACTIVATED = 16,
1: + KERNFS_NS = 32,
1: + KERNFS_HAS_SEQ_SHOW = 64,
1: + KERNFS_HAS_MMAP = 128,
1: + KERNFS_LOCKDEP = 256,
1: + KERNFS_SUICIDAL = 1024,
1: + KERNFS_SUICIDED = 2048,
1: + KERNFS_EMPTY_DIR = 4096,
1: + KERNFS_HAS_RELEASE = 8192,
1: };
1:
1: struct kernfs_open_node {
1: - atomic_t refcnt;
1: - atomic_t event;
1: - wait_queue_head_t poll;
1: - struct list_head files;
1: + atomic_t refcnt;
1: + atomic_t event;
1: + wait_queue_head_t poll;
1: + struct list_head files;
1: };
1:
1: struct config_group;
1: @@ -41793,24 +42392,24 @@ struct config_group;
1: struct config_item_type;
1:
1: struct config_item {
1: - char *ci_name;
1: - char ci_namebuf[20];
1: - struct kref ci_kref;
1: - struct list_head ci_entry;
1: - struct config_item *ci_parent;
1: - struct config_group *ci_group;
1: - const struct config_item_type *ci_type;
1: - struct dentry *ci_dentry;
1: + char *ci_name;
1: + char ci_namebuf[20];
1: + struct kref ci_kref;
1: + struct list_head ci_entry;
1: + struct config_item *ci_parent;
1: + struct config_group *ci_group;
1: + const struct config_item_type *ci_type;
1: + struct dentry *ci_dentry;
1: };
1:
1: struct configfs_subsystem;
1:
1: struct config_group {
1: - struct config_item cg_item;
1: - struct list_head cg_children;
1: - struct configfs_subsystem *cg_subsys;
1: - struct list_head default_groups;
1: - struct list_head group_entry;
1: + struct config_item cg_item;
1: + struct list_head cg_children;
1: + struct configfs_subsystem *cg_subsys;
1: + struct list_head default_groups;
1: + struct list_head group_entry;
1: };
1:
1: struct configfs_item_operations;
1: @@ -41822,132 +42421,132 @@ struct configfs_attribute;
1: struct configfs_bin_attribute;
1:
1: struct config_item_type {
1: - struct module *ct_owner;
1: - struct configfs_item_operations *ct_item_ops;
1: - struct configfs_group_operations *ct_group_ops;
1: - struct configfs_attribute **ct_attrs;
1: - struct configfs_bin_attribute **ct_bin_attrs;
1: + struct module *ct_owner;
1: + struct configfs_item_operations *ct_item_ops;
1: + struct configfs_group_operations *ct_group_ops;
1: + struct configfs_attribute **ct_attrs;
1: + struct configfs_bin_attribute **ct_bin_attrs;
1: };
1:
1: struct configfs_item_operations {
1: - void (*release)(struct config_item *);
1: - int (*allow_link)(struct config_item *, struct config_item *);
1: - void (*drop_link)(struct config_item *, struct config_item *);
1: + void (*release)(struct config_item *);
1: + int (*allow_link)(struct config_item *, struct config_item *);
1: + void (*drop_link)(struct config_item *, struct config_item *);
1: };
1:
1: struct configfs_group_operations {
1: - struct config_item * (*make_item)(struct config_group *, const char *);
1: - struct config_group * (*make_group)(struct config_group *, const char *);
1: - int (*commit_item)(struct config_item *);
1: - void (*disconnect_notify)(struct config_group *, struct config_item *);
1: - void (*drop_item)(struct config_group *, struct config_item *);
1: + struct config_item *(*make_item)(struct config_group *, const char *);
1: + struct config_group *(*make_group)(struct config_group *, const char *);
1: + int (*commit_item)(struct config_item *);
1: + void (*disconnect_notify)(struct config_group *, struct config_item *);
1: + void (*drop_item)(struct config_group *, struct config_item *);
1: };
1:
1: struct configfs_attribute {
1: - const char *ca_name;
1: - struct module *ca_owner;
1: - umode_t ca_mode;
1: - ssize_t (*show)(struct config_item *, char *);
1: - ssize_t (*store)(struct config_item *, const char *, size_t);
1: + const char *ca_name;
1: + struct module *ca_owner;
1: + umode_t ca_mode;
1: + ssize_t (*show)(struct config_item *, char *);
1: + ssize_t (*store)(struct config_item *, const char *, size_t);
1: };
1:
1: struct configfs_bin_attribute {
1: - struct configfs_attribute cb_attr;
1: - void *cb_private;
1: - size_t cb_max_size;
1: - ssize_t (*read)(struct config_item *, void *, size_t);
1: - ssize_t (*write)(struct config_item *, const void *, size_t);
1: + struct configfs_attribute cb_attr;
1: + void *cb_private;
1: + size_t cb_max_size;
1: + ssize_t (*read)(struct config_item *, void *, size_t);
1: + ssize_t (*write)(struct config_item *, const void *, size_t);
1: };
1:
1: struct configfs_subsystem {
1: - struct config_group su_group;
1: - struct mutex su_mutex;
1: + struct config_group su_group;
1: + struct mutex su_mutex;
1: };
1:
1: struct configfs_fragment {
1: - atomic_t frag_count;
1: - struct rw_semaphore frag_sem;
1: - bool frag_dead;
1: + atomic_t frag_count;
1: + struct rw_semaphore frag_sem;
1: + bool frag_dead;
1: };
1:
1: struct configfs_dirent {
1: - atomic_t s_count;
1: - int s_dependent_count;
1: - struct list_head s_sibling;
1: - struct list_head s_children;
1: - int s_links;
1: - void *s_element;
1: - int s_type;
1: - umode_t s_mode;
1: - struct dentry *s_dentry;
1: - struct iattr *s_iattr;
1: - struct configfs_fragment *s_frag;
1: + atomic_t s_count;
1: + int s_dependent_count;
1: + struct list_head s_sibling;
1: + struct list_head s_children;
1: + int s_links;
1: + void *s_element;
1: + int s_type;
1: + umode_t s_mode;
1: + struct dentry *s_dentry;
1: + struct iattr *s_iattr;
1: + struct configfs_fragment *s_frag;
1: };
1:
1: struct configfs_buffer {
1: - size_t count;
1: - loff_t pos;
1: - char *page;
1: - struct configfs_item_operations *ops;
1: - struct mutex mutex;
1: - int needs_read_fill;
1: - bool read_in_progress;
1: - bool write_in_progress;
1: - char *bin_buffer;
1: - int bin_buffer_size;
1: - int cb_max_size;
1: - struct config_item *item;
1: - struct module *owner;
1: - union {
1: - struct configfs_attribute *attr;
1: - struct configfs_bin_attribute *bin_attr;
1: - };
1: + size_t count;
1: + loff_t pos;
1: + char *page;
1: + struct configfs_item_operations *ops;
1: + struct mutex mutex;
1: + int needs_read_fill;
1: + bool read_in_progress;
1: + bool write_in_progress;
1: + char *bin_buffer;
1: + int bin_buffer_size;
1: + int cb_max_size;
1: + struct config_item *item;
1: + struct module *owner;
1: + union {
1: + struct configfs_attribute *attr;
1: + struct configfs_bin_attribute *bin_attr;
1: + };
1: };
1:
1: struct pts_mount_opts {
1: - int setuid;
1: - int setgid;
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: - umode_t ptmxmode;
1: - int reserve;
1: - int max;
1: + int setuid;
1: + int setgid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + umode_t ptmxmode;
1: + int reserve;
1: + int max;
1: };
1:
1: enum {
1: - Opt_uid___2 = 0,
1: - Opt_gid___3 = 1,
1: - Opt_mode___2 = 2,
1: - Opt_ptmxmode = 3,
1: - Opt_newinstance = 4,
1: - Opt_max = 5,
1: - Opt_err = 6,
1: + Opt_uid___2 = 0,
1: + Opt_gid___3 = 1,
1: + Opt_mode___2 = 2,
1: + Opt_ptmxmode = 3,
1: + Opt_newinstance = 4,
1: + Opt_max = 5,
1: + Opt_err = 6,
1: };
1:
1: struct pts_fs_info {
1: - struct ida allocated_ptys;
1: - struct pts_mount_opts mount_opts;
1: - struct super_block *sb;
1: - struct dentry *ptmx_dentry;
1: + struct ida allocated_ptys;
1: + struct pts_mount_opts mount_opts;
1: + struct super_block *sb;
1: + struct dentry *ptmx_dentry;
1: };
1:
1: struct dcookie_struct {
1: - struct path path;
1: - struct list_head hash_list;
1: + struct path path;
1: + struct list_head hash_list;
1: };
1:
1: struct dcookie_user {
1: - struct list_head next;
1: + struct list_head next;
1: };
1:
1: typedef unsigned int tid_t;
1:
1: struct transaction_chp_stats_s {
1: - long unsigned int cs_chp_time;
1: - __u32 cs_forced_to_close;
1: - __u32 cs_written;
1: - __u32 cs_dropped;
1: + long unsigned int cs_chp_time;
1: + __u32 cs_forced_to_close;
1: + __u32 cs_written;
1: + __u32 cs_dropped;
1: };
1:
1: struct journal_s;
1: @@ -41961,70 +42560,71 @@ struct transaction_s;
1: typedef struct transaction_s transaction_t;
1:
1: struct transaction_s {
1: - journal_t *t_journal;
1: - tid_t t_tid;
1: - enum {
1: - T_RUNNING = 0,
1: - T_LOCKED = 1,
1: - T_SWITCH = 2,
1: - T_FLUSH = 3,
1: - T_COMMIT = 4,
1: - T_COMMIT_DFLUSH = 5,
1: - T_COMMIT_JFLUSH = 6,
1: - T_COMMIT_CALLBACK = 7,
1: - T_FINISHED = 8,
1: - } t_state;
1: - long unsigned int t_log_start;
1: - int t_nr_buffers;
1: - struct journal_head *t_reserved_list;
1: - struct journal_head *t_buffers;
1: - struct journal_head *t_forget;
1: - struct journal_head *t_checkpoint_list;
1: - struct journal_head *t_checkpoint_io_list;
1: - struct journal_head *t_shadow_list;
1: - struct list_head t_inode_list;
1: - spinlock_t t_handle_lock;
1: - long unsigned int t_max_wait;
1: - long unsigned int t_start;
1: - long unsigned int t_requested;
1: - struct transaction_chp_stats_s t_chp_stats;
1: - atomic_t t_updates;
1: - atomic_t t_outstanding_credits;
1: - atomic_t t_outstanding_revokes;
1: - atomic_t t_handle_count;
1: - transaction_t *t_cpnext;
1: - transaction_t *t_cpprev;
1: - long unsigned int t_expires;
1: - ktime_t t_start_time;
1: - unsigned int t_synchronous_commit: 1;
1: - int t_need_data_flush;
1: - struct list_head t_private_list;
1: + journal_t *t_journal;
1: + tid_t t_tid;
1: + enum {
1: + T_RUNNING = 0,
1: + T_LOCKED = 1,
1: + T_SWITCH = 2,
1: + T_FLUSH = 3,
1: + T_COMMIT = 4,
1: + T_COMMIT_DFLUSH = 5,
1: + T_COMMIT_JFLUSH = 6,
1: + T_COMMIT_CALLBACK = 7,
1: + T_FINISHED = 8,
1: + } t_state;
1: + long unsigned int t_log_start;
1: + int t_nr_buffers;
1: + struct journal_head *t_reserved_list;
1: + struct journal_head *t_buffers;
1: + struct journal_head *t_forget;
1: + struct journal_head *t_checkpoint_list;
1: + struct journal_head *t_checkpoint_io_list;
1: + struct journal_head *t_shadow_list;
1: + struct list_head t_inode_list;
1: + spinlock_t t_handle_lock;
1: + long unsigned int t_max_wait;
1: + long unsigned int t_start;
1: + long unsigned int t_requested;
1: + struct transaction_chp_stats_s t_chp_stats;
1: + atomic_t t_updates;
1: + atomic_t t_outstanding_credits;
1: + atomic_t t_outstanding_revokes;
1: + atomic_t t_handle_count;
1: + transaction_t *t_cpnext;
1: + transaction_t *t_cpprev;
1: + long unsigned int t_expires;
1: + ktime_t t_start_time;
1: + unsigned int t_synchronous_commit : 1;
1: + int t_need_data_flush;
1: + struct list_head t_private_list;
1: };
1:
1: struct jbd2_buffer_trigger_type;
1:
1: struct journal_head {
1: - struct buffer_head *b_bh;
1: - spinlock_t b_state_lock;
1: - int b_jcount;
1: - unsigned int b_jlist;
1: - unsigned int b_modified;
1: - char *b_frozen_data;
1: - char *b_committed_data;
1: - transaction_t *b_transaction;
1: - transaction_t *b_next_transaction;
1: - struct journal_head *b_tnext;
1: - struct journal_head *b_tprev;
1: - transaction_t *b_cp_transaction;
1: - struct journal_head *b_cpnext;
1: - struct journal_head *b_cpprev;
1: - struct jbd2_buffer_trigger_type *b_triggers;
1: - struct jbd2_buffer_trigger_type *b_frozen_triggers;
1: + struct buffer_head *b_bh;
1: + spinlock_t b_state_lock;
1: + int b_jcount;
1: + unsigned int b_jlist;
1: + unsigned int b_modified;
1: + char *b_frozen_data;
1: + char *b_committed_data;
1: + transaction_t *b_transaction;
1: + transaction_t *b_next_transaction;
1: + struct journal_head *b_tnext;
1: + struct journal_head *b_tprev;
1: + transaction_t *b_cp_transaction;
1: + struct journal_head *b_cpnext;
1: + struct journal_head *b_cpprev;
1: + struct jbd2_buffer_trigger_type *b_triggers;
1: + struct jbd2_buffer_trigger_type *b_frozen_triggers;
1: };
1:
1: struct jbd2_buffer_trigger_type {
1: - void (*t_frozen)(struct jbd2_buffer_trigger_type *, struct buffer_head *, void *, size_t);
1: - void (*t_abort)(struct jbd2_buffer_trigger_type *, struct buffer_head *);
1: + void (*t_frozen)(struct jbd2_buffer_trigger_type *, struct buffer_head *,
1: + void *, size_t);
1: + void (*t_abort)(struct jbd2_buffer_trigger_type *, struct buffer_head *);
1: };
1:
1: struct jbd2_journal_handle;
1: @@ -42032,49 +42632,49 @@ struct jbd2_journal_handle;
1: typedef struct jbd2_journal_handle handle_t;
1:
1: struct jbd2_journal_handle {
1: - union {
1: - transaction_t *h_transaction;
1: - journal_t *h_journal;
1: - };
1: - handle_t *h_rsv_handle;
1: - int h_total_credits;
1: - int h_revoke_credits;
1: - int h_revoke_credits_requested;
1: - int h_ref;
1: - int h_err;
1: - unsigned int h_sync: 1;
1: - unsigned int h_jdata: 1;
1: - unsigned int h_reserved: 1;
1: - unsigned int h_aborted: 1;
1: - unsigned int h_type: 8;
1: - unsigned int h_line_no: 16;
1: - long unsigned int h_start_jiffies;
1: - unsigned int h_requested_credits;
1: - unsigned int saved_alloc_context;
1: + union {
1: + transaction_t *h_transaction;
1: + journal_t *h_journal;
1: + };
1: + handle_t *h_rsv_handle;
1: + int h_total_credits;
1: + int h_revoke_credits;
1: + int h_revoke_credits_requested;
1: + int h_ref;
1: + int h_err;
1: + unsigned int h_sync : 1;
1: + unsigned int h_jdata : 1;
1: + unsigned int h_reserved : 1;
1: + unsigned int h_aborted : 1;
1: + unsigned int h_type : 8;
1: + unsigned int h_line_no : 16;
1: + long unsigned int h_start_jiffies;
1: + unsigned int h_requested_credits;
1: + unsigned int saved_alloc_context;
1: };
1:
1: struct transaction_run_stats_s {
1: - long unsigned int rs_wait;
1: - long unsigned int rs_request_delay;
1: - long unsigned int rs_running;
1: - long unsigned int rs_locked;
1: - long unsigned int rs_flushing;
1: - long unsigned int rs_logging;
1: - __u32 rs_handle_count;
1: - __u32 rs_blocks;
1: - __u32 rs_blocks_logged;
1: + long unsigned int rs_wait;
1: + long unsigned int rs_request_delay;
1: + long unsigned int rs_running;
1: + long unsigned int rs_locked;
1: + long unsigned int rs_flushing;
1: + long unsigned int rs_logging;
1: + __u32 rs_handle_count;
1: + __u32 rs_blocks;
1: + __u32 rs_blocks_logged;
1: };
1:
1: struct transaction_stats_s {
1: - long unsigned int ts_tid;
1: - long unsigned int ts_requested;
1: - struct transaction_run_stats_s run;
1: + long unsigned int ts_tid;
1: + long unsigned int ts_requested;
1: + struct transaction_run_stats_s run;
1: };
1:
1: enum passtype {
1: - PASS_SCAN = 0,
1: - PASS_REVOKE = 1,
1: - PASS_REPLAY = 2,
1: + PASS_SCAN = 0,
1: + PASS_REVOKE = 1,
1: + PASS_REPLAY = 2,
1: };
1:
1: struct journal_superblock_s;
1: @@ -42086,147 +42686,148 @@ struct jbd2_revoke_table_s;
1: struct jbd2_inode;
1:
1: struct journal_s {
1: - long unsigned int j_flags;
1: - int j_errno;
1: - struct mutex j_abort_mutex;
1: - struct buffer_head *j_sb_buffer;
1: - journal_superblock_t *j_superblock;
1: - int j_format_version;
1: - rwlock_t j_state_lock;
1: - int j_barrier_count;
1: - struct mutex j_barrier;
1: - transaction_t *j_running_transaction;
1: - transaction_t *j_committing_transaction;
1: - transaction_t *j_checkpoint_transactions;
1: - wait_queue_head_t j_wait_transaction_locked;
1: - wait_queue_head_t j_wait_done_commit;
1: - wait_queue_head_t j_wait_commit;
1: - wait_queue_head_t j_wait_updates;
1: - wait_queue_head_t j_wait_reserved;
1: - wait_queue_head_t j_fc_wait;
1: - struct mutex j_checkpoint_mutex;
1: - struct buffer_head *j_chkpt_bhs[64];
1: - long unsigned int j_head;
1: - long unsigned int j_tail;
1: - long unsigned int j_free;
1: - long unsigned int j_first;
1: - long unsigned int j_last;
1: - long unsigned int j_fc_first;
1: - long unsigned int j_fc_off;
1: - long unsigned int j_fc_last;
1: - struct block_device *j_dev;
1: - int j_blocksize;
1: - long long unsigned int j_blk_offset;
1: - char j_devname[56];
1: - struct block_device *j_fs_dev;
1: - unsigned int j_total_len;
1: - atomic_t j_reserved_credits;
1: - spinlock_t j_list_lock;
1: - struct inode *j_inode;
1: - tid_t j_tail_sequence;
1: - tid_t j_transaction_sequence;
1: - tid_t j_commit_sequence;
1: - tid_t j_commit_request;
1: - __u8 j_uuid[16];
1: - struct task_struct *j_task;
1: - int j_max_transaction_buffers;
1: - int j_revoke_records_per_block;
1: - long unsigned int j_commit_interval;
1: - struct timer_list j_commit_timer;
1: - spinlock_t j_revoke_lock;
1: - struct jbd2_revoke_table_s *j_revoke;
1: - struct jbd2_revoke_table_s *j_revoke_table[2];
1: - struct buffer_head **j_wbuf;
1: - struct buffer_head **j_fc_wbuf;
1: - int j_wbufsize;
1: - int j_fc_wbufsize;
1: - pid_t j_last_sync_writer;
1: - u64 j_average_commit_time;
1: - u32 j_min_batch_time;
1: - u32 j_max_batch_time;
1: - void (*j_commit_callback)(journal_t *, transaction_t *);
1: - int (*j_submit_inode_data_buffers)(struct jbd2_inode *);
1: - int (*j_finish_inode_data_buffers)(struct jbd2_inode *);
1: - spinlock_t j_history_lock;
1: - struct proc_dir_entry *j_proc_entry;
1: - struct transaction_stats_s j_stats;
1: - unsigned int j_failed_commit;
1: - void *j_private;
1: - struct crypto_shash *j_chksum_driver;
1: - __u32 j_csum_seed;
1: - void (*j_fc_cleanup_callback)(struct journal_s *, int);
1: - int (*j_fc_replay_callback)(struct journal_s *, struct buffer_head *, enum passtype, int, tid_t);
1: + long unsigned int j_flags;
1: + int j_errno;
1: + struct mutex j_abort_mutex;
1: + struct buffer_head *j_sb_buffer;
1: + journal_superblock_t *j_superblock;
1: + int j_format_version;
1: + rwlock_t j_state_lock;
1: + int j_barrier_count;
1: + struct mutex j_barrier;
1: + transaction_t *j_running_transaction;
1: + transaction_t *j_committing_transaction;
1: + transaction_t *j_checkpoint_transactions;
1: + wait_queue_head_t j_wait_transaction_locked;
1: + wait_queue_head_t j_wait_done_commit;
1: + wait_queue_head_t j_wait_commit;
1: + wait_queue_head_t j_wait_updates;
1: + wait_queue_head_t j_wait_reserved;
1: + wait_queue_head_t j_fc_wait;
1: + struct mutex j_checkpoint_mutex;
1: + struct buffer_head *j_chkpt_bhs[64];
1: + long unsigned int j_head;
1: + long unsigned int j_tail;
1: + long unsigned int j_free;
1: + long unsigned int j_first;
1: + long unsigned int j_last;
1: + long unsigned int j_fc_first;
1: + long unsigned int j_fc_off;
1: + long unsigned int j_fc_last;
1: + struct block_device *j_dev;
1: + int j_blocksize;
1: + long long unsigned int j_blk_offset;
1: + char j_devname[56];
1: + struct block_device *j_fs_dev;
1: + unsigned int j_total_len;
1: + atomic_t j_reserved_credits;
1: + spinlock_t j_list_lock;
1: + struct inode *j_inode;
1: + tid_t j_tail_sequence;
1: + tid_t j_transaction_sequence;
1: + tid_t j_commit_sequence;
1: + tid_t j_commit_request;
1: + __u8 j_uuid[16];
1: + struct task_struct *j_task;
1: + int j_max_transaction_buffers;
1: + int j_revoke_records_per_block;
1: + long unsigned int j_commit_interval;
1: + struct timer_list j_commit_timer;
1: + spinlock_t j_revoke_lock;
1: + struct jbd2_revoke_table_s *j_revoke;
1: + struct jbd2_revoke_table_s *j_revoke_table[2];
1: + struct buffer_head **j_wbuf;
1: + struct buffer_head **j_fc_wbuf;
1: + int j_wbufsize;
1: + int j_fc_wbufsize;
1: + pid_t j_last_sync_writer;
1: + u64 j_average_commit_time;
1: + u32 j_min_batch_time;
1: + u32 j_max_batch_time;
1: + void (*j_commit_callback)(journal_t *, transaction_t *);
1: + int (*j_submit_inode_data_buffers)(struct jbd2_inode *);
1: + int (*j_finish_inode_data_buffers)(struct jbd2_inode *);
1: + spinlock_t j_history_lock;
1: + struct proc_dir_entry *j_proc_entry;
1: + struct transaction_stats_s j_stats;
1: + unsigned int j_failed_commit;
1: + void *j_private;
1: + struct crypto_shash *j_chksum_driver;
1: + __u32 j_csum_seed;
1: + void (*j_fc_cleanup_callback)(struct journal_s *, int);
1: + int (*j_fc_replay_callback)(struct journal_s *, struct buffer_head *,
1: + enum passtype, int, tid_t);
1: };
1:
1: struct journal_header_s {
1: - __be32 h_magic;
1: - __be32 h_blocktype;
1: - __be32 h_sequence;
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: };
1:
1: typedef struct journal_header_s journal_header_t;
1:
1: struct journal_superblock_s {
1: - journal_header_t s_header;
1: - __be32 s_blocksize;
1: - __be32 s_maxlen;
1: - __be32 s_first;
1: - __be32 s_sequence;
1: - __be32 s_start;
1: - __be32 s_errno;
1: - __be32 s_feature_compat;
1: - __be32 s_feature_incompat;
1: - __be32 s_feature_ro_compat;
1: - __u8 s_uuid[16];
1: - __be32 s_nr_users;
1: - __be32 s_dynsuper;
1: - __be32 s_max_transaction;
1: - __be32 s_max_trans_data;
1: - __u8 s_checksum_type;
1: - __u8 s_padding2[3];
1: - __be32 s_num_fc_blks;
1: - __u32 s_padding[41];
1: - __be32 s_checksum;
1: - __u8 s_users[768];
1: + journal_header_t s_header;
1: + __be32 s_blocksize;
1: + __be32 s_maxlen;
1: + __be32 s_first;
1: + __be32 s_sequence;
1: + __be32 s_start;
1: + __be32 s_errno;
1: + __be32 s_feature_compat;
1: + __be32 s_feature_incompat;
1: + __be32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + __be32 s_nr_users;
1: + __be32 s_dynsuper;
1: + __be32 s_max_transaction;
1: + __be32 s_max_trans_data;
1: + __u8 s_checksum_type;
1: + __u8 s_padding2[3];
1: + __be32 s_num_fc_blks;
1: + __u32 s_padding[41];
1: + __be32 s_checksum;
1: + __u8 s_users[768];
1: };
1:
1: enum jbd_state_bits {
1: - BH_JBD = 16,
1: - BH_JWrite = 17,
1: - BH_Freed = 18,
1: - BH_Revoked = 19,
1: - BH_RevokeValid = 20,
1: - BH_JBDDirty = 21,
1: - BH_JournalHead = 22,
1: - BH_Shadow = 23,
1: - BH_Verified = 24,
1: - BH_JBDPrivateStart = 25,
1: + BH_JBD = 16,
1: + BH_JWrite = 17,
1: + BH_Freed = 18,
1: + BH_Revoked = 19,
1: + BH_RevokeValid = 20,
1: + BH_JBDDirty = 21,
1: + BH_JournalHead = 22,
1: + BH_Shadow = 23,
1: + BH_Verified = 24,
1: + BH_JBDPrivateStart = 25,
1: };
1:
1: struct jbd2_inode {
1: - transaction_t *i_transaction;
1: - transaction_t *i_next_transaction;
1: - struct list_head i_list;
1: - struct inode *i_vfs_inode;
1: - long unsigned int i_flags;
1: - loff_t i_dirty_start;
1: - loff_t i_dirty_end;
1: + transaction_t *i_transaction;
1: + transaction_t *i_next_transaction;
1: + struct list_head i_list;
1: + struct inode *i_vfs_inode;
1: + long unsigned int i_flags;
1: + loff_t i_dirty_start;
1: + loff_t i_dirty_end;
1: };
1:
1: struct bgl_lock {
1: - spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct blockgroup_lock {
1: - struct bgl_lock locks[128];
1: + struct bgl_lock locks[128];
1: };
1:
1: typedef int ext4_grpblk_t;
1: @@ -42238,262 +42839,262 @@ typedef __u32 ext4_lblk_t;
1: typedef unsigned int ext4_group_t;
1:
1: struct ext4_allocation_request {
1: - struct inode *inode;
1: - unsigned int len;
1: - ext4_lblk_t logical;
1: - ext4_lblk_t lleft;
1: - ext4_lblk_t lright;
1: - ext4_fsblk_t goal;
1: - ext4_fsblk_t pleft;
1: - ext4_fsblk_t pright;
1: - unsigned int flags;
1: + struct inode *inode;
1: + unsigned int len;
1: + ext4_lblk_t logical;
1: + ext4_lblk_t lleft;
1: + ext4_lblk_t lright;
1: + ext4_fsblk_t goal;
1: + ext4_fsblk_t pleft;
1: + ext4_fsblk_t pright;
1: + unsigned int flags;
1: };
1:
1: struct ext4_system_blocks {
1: - struct rb_root root;
1: - struct callback_head rcu;
1: + struct rb_root root;
1: + struct callback_head rcu;
1: };
1:
1: struct ext4_group_desc {
1: - __le32 bg_block_bitmap_lo;
1: - __le32 bg_inode_bitmap_lo;
1: - __le32 bg_inode_table_lo;
1: - __le16 bg_free_blocks_count_lo;
1: - __le16 bg_free_inodes_count_lo;
1: - __le16 bg_used_dirs_count_lo;
1: - __le16 bg_flags;
1: - __le32 bg_exclude_bitmap_lo;
1: - __le16 bg_block_bitmap_csum_lo;
1: - __le16 bg_inode_bitmap_csum_lo;
1: - __le16 bg_itable_unused_lo;
1: - __le16 bg_checksum;
1: - __le32 bg_block_bitmap_hi;
1: - __le32 bg_inode_bitmap_hi;
1: - __le32 bg_inode_table_hi;
1: - __le16 bg_free_blocks_count_hi;
1: - __le16 bg_free_inodes_count_hi;
1: - __le16 bg_used_dirs_count_hi;
1: - __le16 bg_itable_unused_hi;
1: - __le32 bg_exclude_bitmap_hi;
1: - __le16 bg_block_bitmap_csum_hi;
1: - __le16 bg_inode_bitmap_csum_hi;
1: - __u32 bg_reserved;
1: + __le32 bg_block_bitmap_lo;
1: + __le32 bg_inode_bitmap_lo;
1: + __le32 bg_inode_table_lo;
1: + __le16 bg_free_blocks_count_lo;
1: + __le16 bg_free_inodes_count_lo;
1: + __le16 bg_used_dirs_count_lo;
1: + __le16 bg_flags;
1: + __le32 bg_exclude_bitmap_lo;
1: + __le16 bg_block_bitmap_csum_lo;
1: + __le16 bg_inode_bitmap_csum_lo;
1: + __le16 bg_itable_unused_lo;
1: + __le16 bg_checksum;
1: + __le32 bg_block_bitmap_hi;
1: + __le32 bg_inode_bitmap_hi;
1: + __le32 bg_inode_table_hi;
1: + __le16 bg_free_blocks_count_hi;
1: + __le16 bg_free_inodes_count_hi;
1: + __le16 bg_used_dirs_count_hi;
1: + __le16 bg_itable_unused_hi;
1: + __le32 bg_exclude_bitmap_hi;
1: + __le16 bg_block_bitmap_csum_hi;
1: + __le16 bg_inode_bitmap_csum_hi;
1: + __u32 bg_reserved;
1: };
1:
1: struct flex_groups {
1: - atomic64_t free_clusters;
1: - atomic_t free_inodes;
1: - atomic_t used_dirs;
1: + atomic64_t free_clusters;
1: + atomic_t free_inodes;
1: + atomic_t used_dirs;
1: };
1:
1: struct extent_status {
1: - struct rb_node rb_node;
1: - ext4_lblk_t es_lblk;
1: - ext4_lblk_t es_len;
1: - ext4_fsblk_t es_pblk;
1: + struct rb_node rb_node;
1: + ext4_lblk_t es_lblk;
1: + ext4_lblk_t es_len;
1: + ext4_fsblk_t es_pblk;
1: };
1:
1: struct ext4_es_tree {
1: - struct rb_root root;
1: - struct extent_status *cache_es;
1: + struct rb_root root;
1: + struct extent_status *cache_es;
1: };
1:
1: struct ext4_es_stats {
1: - long unsigned int es_stats_shrunk;
1: - struct percpu_counter es_stats_cache_hits;
1: - struct percpu_counter es_stats_cache_misses;
1: - u64 es_stats_scan_time;
1: - u64 es_stats_max_scan_time;
1: - struct percpu_counter es_stats_all_cnt;
1: - struct percpu_counter es_stats_shk_cnt;
1: + long unsigned int es_stats_shrunk;
1: + struct percpu_counter es_stats_cache_hits;
1: + struct percpu_counter es_stats_cache_misses;
1: + u64 es_stats_scan_time;
1: + u64 es_stats_max_scan_time;
1: + struct percpu_counter es_stats_all_cnt;
1: + struct percpu_counter es_stats_shk_cnt;
1: };
1:
1: struct ext4_pending_tree {
1: - struct rb_root root;
1: + struct rb_root root;
1: };
1:
1: struct ext4_fc_stats {
1: - unsigned int fc_ineligible_reason_count[10];
1: - long unsigned int fc_num_commits;
1: - long unsigned int fc_ineligible_commits;
1: - long unsigned int fc_numblks;
1: + unsigned int fc_ineligible_reason_count[10];
1: + long unsigned int fc_num_commits;
1: + long unsigned int fc_ineligible_commits;
1: + long unsigned int fc_numblks;
1: };
1:
1: struct ext4_fc_alloc_region {
1: - ext4_lblk_t lblk;
1: - ext4_fsblk_t pblk;
1: - int ino;
1: - int len;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + int ino;
1: + int len;
1: };
1:
1: struct ext4_fc_replay_state {
1: - int fc_replay_num_tags;
1: - int fc_replay_expected_off;
1: - int fc_current_pass;
1: - int fc_cur_tag;
1: - int fc_crc;
1: - struct ext4_fc_alloc_region *fc_regions;
1: - int fc_regions_size;
1: - int fc_regions_used;
1: - int fc_regions_valid;
1: - int *fc_modified_inodes;
1: - int fc_modified_inodes_used;
1: - int fc_modified_inodes_size;
1: + int fc_replay_num_tags;
1: + int fc_replay_expected_off;
1: + int fc_current_pass;
1: + int fc_cur_tag;
1: + int fc_crc;
1: + struct ext4_fc_alloc_region *fc_regions;
1: + int fc_regions_size;
1: + int fc_regions_used;
1: + int fc_regions_valid;
1: + int *fc_modified_inodes;
1: + int fc_modified_inodes_used;
1: + int fc_modified_inodes_size;
1: };
1:
1: struct ext4_inode_info {
1: - __le32 i_data[15];
1: - __u32 i_dtime;
1: - ext4_fsblk_t i_file_acl;
1: - ext4_group_t i_block_group;
1: - ext4_lblk_t i_dir_start_lookup;
1: - long unsigned int i_flags;
1: - struct rw_semaphore xattr_sem;
1: - struct list_head i_orphan;
1: - struct list_head i_fc_list;
1: - ext4_lblk_t i_fc_lblk_start;
1: - ext4_lblk_t i_fc_lblk_len;
1: - atomic_t i_fc_updates;
1: - wait_queue_head_t i_fc_wait;
1: - struct mutex i_fc_lock;
1: - loff_t i_disksize;
1: - struct rw_semaphore i_data_sem;
1: - struct rw_semaphore i_mmap_sem;
1: - struct inode vfs_inode;
1: - struct jbd2_inode *jinode;
1: - spinlock_t i_raw_lock;
1: - struct timespec64 i_crtime;
1: - atomic_t i_prealloc_active;
1: - struct list_head i_prealloc_list;
1: - spinlock_t i_prealloc_lock;
1: - struct ext4_es_tree i_es_tree;
1: - rwlock_t i_es_lock;
1: - struct list_head i_es_list;
1: - unsigned int i_es_all_nr;
1: - unsigned int i_es_shk_nr;
1: - ext4_lblk_t i_es_shrink_lblk;
1: - ext4_group_t i_last_alloc_group;
1: - unsigned int i_reserved_data_blocks;
1: - struct ext4_pending_tree i_pending_tree;
1: - __u16 i_extra_isize;
1: - u16 i_inline_off;
1: - u16 i_inline_size;
1: - qsize_t i_reserved_quota;
1: - spinlock_t i_completed_io_lock;
1: - struct list_head i_rsv_conversion_list;
1: - struct work_struct i_rsv_conversion_work;
1: - atomic_t i_unwritten;
1: - spinlock_t i_block_reservation_lock;
1: - tid_t i_sync_tid;
1: - tid_t i_datasync_tid;
1: - struct dquot *i_dquot[3];
1: - __u32 i_csum_seed;
1: - kprojid_t i_projid;
1: + __le32 i_data[15];
1: + __u32 i_dtime;
1: + ext4_fsblk_t i_file_acl;
1: + ext4_group_t i_block_group;
1: + ext4_lblk_t i_dir_start_lookup;
1: + long unsigned int i_flags;
1: + struct rw_semaphore xattr_sem;
1: + struct list_head i_orphan;
1: + struct list_head i_fc_list;
1: + ext4_lblk_t i_fc_lblk_start;
1: + ext4_lblk_t i_fc_lblk_len;
1: + atomic_t i_fc_updates;
1: + wait_queue_head_t i_fc_wait;
1: + struct mutex i_fc_lock;
1: + loff_t i_disksize;
1: + struct rw_semaphore i_data_sem;
1: + struct rw_semaphore i_mmap_sem;
1: + struct inode vfs_inode;
1: + struct jbd2_inode *jinode;
1: + spinlock_t i_raw_lock;
1: + struct timespec64 i_crtime;
1: + atomic_t i_prealloc_active;
1: + struct list_head i_prealloc_list;
1: + spinlock_t i_prealloc_lock;
1: + struct ext4_es_tree i_es_tree;
1: + rwlock_t i_es_lock;
1: + struct list_head i_es_list;
1: + unsigned int i_es_all_nr;
1: + unsigned int i_es_shk_nr;
1: + ext4_lblk_t i_es_shrink_lblk;
1: + ext4_group_t i_last_alloc_group;
1: + unsigned int i_reserved_data_blocks;
1: + struct ext4_pending_tree i_pending_tree;
1: + __u16 i_extra_isize;
1: + u16 i_inline_off;
1: + u16 i_inline_size;
1: + qsize_t i_reserved_quota;
1: + spinlock_t i_completed_io_lock;
1: + struct list_head i_rsv_conversion_list;
1: + struct work_struct i_rsv_conversion_work;
1: + atomic_t i_unwritten;
1: + spinlock_t i_block_reservation_lock;
1: + tid_t i_sync_tid;
1: + tid_t i_datasync_tid;
1: + struct dquot *i_dquot[3];
1: + __u32 i_csum_seed;
1: + kprojid_t i_projid;
1: };
1:
1: struct ext4_super_block {
1: - __le32 s_inodes_count;
1: - __le32 s_blocks_count_lo;
1: - __le32 s_r_blocks_count_lo;
1: - __le32 s_free_blocks_count_lo;
1: - __le32 s_free_inodes_count;
1: - __le32 s_first_data_block;
1: - __le32 s_log_block_size;
1: - __le32 s_log_cluster_size;
1: - __le32 s_blocks_per_group;
1: - __le32 s_clusters_per_group;
1: - __le32 s_inodes_per_group;
1: - __le32 s_mtime;
1: - __le32 s_wtime;
1: - __le16 s_mnt_count;
1: - __le16 s_max_mnt_count;
1: - __le16 s_magic;
1: - __le16 s_state;
1: - __le16 s_errors;
1: - __le16 s_minor_rev_level;
1: - __le32 s_lastcheck;
1: - __le32 s_checkinterval;
1: - __le32 s_creator_os;
1: - __le32 s_rev_level;
1: - __le16 s_def_resuid;
1: - __le16 s_def_resgid;
1: - __le32 s_first_ino;
1: - __le16 s_inode_size;
1: - __le16 s_block_group_nr;
1: - __le32 s_feature_compat;
1: - __le32 s_feature_incompat;
1: - __le32 s_feature_ro_compat;
1: - __u8 s_uuid[16];
1: - char s_volume_name[16];
1: - char s_last_mounted[64];
1: - __le32 s_algorithm_usage_bitmap;
1: - __u8 s_prealloc_blocks;
1: - __u8 s_prealloc_dir_blocks;
1: - __le16 s_reserved_gdt_blocks;
1: - __u8 s_journal_uuid[16];
1: - __le32 s_journal_inum;
1: - __le32 s_journal_dev;
1: - __le32 s_last_orphan;
1: - __le32 s_hash_seed[4];
1: - __u8 s_def_hash_version;
1: - __u8 s_jnl_backup_type;
1: - __le16 s_desc_size;
1: - __le32 s_default_mount_opts;
1: - __le32 s_first_meta_bg;
1: - __le32 s_mkfs_time;
1: - __le32 s_jnl_blocks[17];
1: - __le32 s_blocks_count_hi;
1: - __le32 s_r_blocks_count_hi;
1: - __le32 s_free_blocks_count_hi;
1: - __le16 s_min_extra_isize;
1: - __le16 s_want_extra_isize;
1: - __le32 s_flags;
1: - __le16 s_raid_stride;
1: - __le16 s_mmp_update_interval;
1: - __le64 s_mmp_block;
1: - __le32 s_raid_stripe_width;
1: - __u8 s_log_groups_per_flex;
1: - __u8 s_checksum_type;
1: - __u8 s_encryption_level;
1: - __u8 s_reserved_pad;
1: - __le64 s_kbytes_written;
1: - __le32 s_snapshot_inum;
1: - __le32 s_snapshot_id;
1: - __le64 s_snapshot_r_blocks_count;
1: - __le32 s_snapshot_list;
1: - __le32 s_error_count;
1: - __le32 s_first_error_time;
1: - __le32 s_first_error_ino;
1: - __le64 s_first_error_block;
1: - __u8 s_first_error_func[32];
1: - __le32 s_first_error_line;
1: - __le32 s_last_error_time;
1: - __le32 s_last_error_ino;
1: - __le32 s_last_error_line;
1: - __le64 s_last_error_block;
1: - __u8 s_last_error_func[32];
1: - __u8 s_mount_opts[64];
1: - __le32 s_usr_quota_inum;
1: - __le32 s_grp_quota_inum;
1: - __le32 s_overhead_clusters;
1: - __le32 s_backup_bgs[2];
1: - __u8 s_encrypt_algos[4];
1: - __u8 s_encrypt_pw_salt[16];
1: - __le32 s_lpf_ino;
1: - __le32 s_prj_quota_inum;
1: - __le32 s_checksum_seed;
1: - __u8 s_wtime_hi;
1: - __u8 s_mtime_hi;
1: - __u8 s_mkfs_time_hi;
1: - __u8 s_lastcheck_hi;
1: - __u8 s_first_error_time_hi;
1: - __u8 s_last_error_time_hi;
1: - __u8 s_first_error_errcode;
1: - __u8 s_last_error_errcode;
1: - __le16 s_encoding;
1: - __le16 s_encoding_flags;
1: - __le32 s_reserved[95];
1: - __le32 s_checksum;
1: + __le32 s_inodes_count;
1: + __le32 s_blocks_count_lo;
1: + __le32 s_r_blocks_count_lo;
1: + __le32 s_free_blocks_count_lo;
1: + __le32 s_free_inodes_count;
1: + __le32 s_first_data_block;
1: + __le32 s_log_block_size;
1: + __le32 s_log_cluster_size;
1: + __le32 s_blocks_per_group;
1: + __le32 s_clusters_per_group;
1: + __le32 s_inodes_per_group;
1: + __le32 s_mtime;
1: + __le32 s_wtime;
1: + __le16 s_mnt_count;
1: + __le16 s_max_mnt_count;
1: + __le16 s_magic;
1: + __le16 s_state;
1: + __le16 s_errors;
1: + __le16 s_minor_rev_level;
1: + __le32 s_lastcheck;
1: + __le32 s_checkinterval;
1: + __le32 s_creator_os;
1: + __le32 s_rev_level;
1: + __le16 s_def_resuid;
1: + __le16 s_def_resgid;
1: + __le32 s_first_ino;
1: + __le16 s_inode_size;
1: + __le16 s_block_group_nr;
1: + __le32 s_feature_compat;
1: + __le32 s_feature_incompat;
1: + __le32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + char s_volume_name[16];
1: + char s_last_mounted[64];
1: + __le32 s_algorithm_usage_bitmap;
1: + __u8 s_prealloc_blocks;
1: + __u8 s_prealloc_dir_blocks;
1: + __le16 s_reserved_gdt_blocks;
1: + __u8 s_journal_uuid[16];
1: + __le32 s_journal_inum;
1: + __le32 s_journal_dev;
1: + __le32 s_last_orphan;
1: + __le32 s_hash_seed[4];
1: + __u8 s_def_hash_version;
1: + __u8 s_jnl_backup_type;
1: + __le16 s_desc_size;
1: + __le32 s_default_mount_opts;
1: + __le32 s_first_meta_bg;
1: + __le32 s_mkfs_time;
1: + __le32 s_jnl_blocks[17];
1: + __le32 s_blocks_count_hi;
1: + __le32 s_r_blocks_count_hi;
1: + __le32 s_free_blocks_count_hi;
1: + __le16 s_min_extra_isize;
1: + __le16 s_want_extra_isize;
1: + __le32 s_flags;
1: + __le16 s_raid_stride;
1: + __le16 s_mmp_update_interval;
1: + __le64 s_mmp_block;
1: + __le32 s_raid_stripe_width;
1: + __u8 s_log_groups_per_flex;
1: + __u8 s_checksum_type;
1: + __u8 s_encryption_level;
1: + __u8 s_reserved_pad;
1: + __le64 s_kbytes_written;
1: + __le32 s_snapshot_inum;
1: + __le32 s_snapshot_id;
1: + __le64 s_snapshot_r_blocks_count;
1: + __le32 s_snapshot_list;
1: + __le32 s_error_count;
1: + __le32 s_first_error_time;
1: + __le32 s_first_error_ino;
1: + __le64 s_first_error_block;
1: + __u8 s_first_error_func[32];
1: + __le32 s_first_error_line;
1: + __le32 s_last_error_time;
1: + __le32 s_last_error_ino;
1: + __le32 s_last_error_line;
1: + __le64 s_last_error_block;
1: + __u8 s_last_error_func[32];
1: + __u8 s_mount_opts[64];
1: + __le32 s_usr_quota_inum;
1: + __le32 s_grp_quota_inum;
1: + __le32 s_overhead_clusters;
1: + __le32 s_backup_bgs[2];
1: + __u8 s_encrypt_algos[4];
1: + __u8 s_encrypt_pw_salt[16];
1: + __le32 s_lpf_ino;
1: + __le32 s_prj_quota_inum;
1: + __le32 s_checksum_seed;
1: + __u8 s_wtime_hi;
1: + __u8 s_mtime_hi;
1: + __u8 s_mkfs_time_hi;
1: + __u8 s_lastcheck_hi;
1: + __u8 s_first_error_time_hi;
1: + __u8 s_last_error_time_hi;
1: + __u8 s_first_error_errcode;
1: + __u8 s_last_error_errcode;
1: + __le16 s_encoding;
1: + __le16 s_encoding_flags;
1: + __le32 s_reserved[95];
1: + __le32 s_checksum;
1: };
1:
1: struct mb_cache___2;
1: @@ -42505,450 +43106,451 @@ struct ext4_locality_group;
1: struct ext4_li_request;
1:
1: struct ext4_sb_info {
1: - long unsigned int s_desc_size;
1: - long unsigned int s_inodes_per_block;
1: - long unsigned int s_blocks_per_group;
1: - long unsigned int s_clusters_per_group;
1: - long unsigned int s_inodes_per_group;
1: - long unsigned int s_itb_per_group;
1: - long unsigned int s_gdb_count;
1: - long unsigned int s_desc_per_block;
1: - ext4_group_t s_groups_count;
1: - ext4_group_t s_blockfile_groups;
1: - long unsigned int s_overhead;
1: - unsigned int s_cluster_ratio;
1: - unsigned int s_cluster_bits;
1: - loff_t s_bitmap_maxbytes;
1: - struct buffer_head *s_sbh;
1: - struct ext4_super_block *s_es;
1: - struct buffer_head **s_group_desc;
1: - unsigned int s_mount_opt;
1: - unsigned int s_mount_opt2;
1: - long unsigned int s_mount_flags;
1: - unsigned int s_def_mount_opt;
1: - ext4_fsblk_t s_sb_block;
1: - atomic64_t s_resv_clusters;
1: - kuid_t s_resuid;
1: - kgid_t s_resgid;
1: - short unsigned int s_mount_state;
1: - short unsigned int s_pad;
1: - int s_addr_per_block_bits;
1: - int s_desc_per_block_bits;
1: - int s_inode_size;
1: - int s_first_ino;
1: - unsigned int s_inode_readahead_blks;
1: - unsigned int s_inode_goal;
1: - u32 s_hash_seed[4];
1: - int s_def_hash_version;
1: - int s_hash_unsigned;
1: - struct percpu_counter s_freeclusters_counter;
1: - struct percpu_counter s_freeinodes_counter;
1: - struct percpu_counter s_dirs_counter;
1: - struct percpu_counter s_dirtyclusters_counter;
1: - struct blockgroup_lock *s_blockgroup_lock;
1: - struct proc_dir_entry *s_proc;
1: - struct kobject s_kobj;
1: - struct completion s_kobj_unregister;
1: - struct super_block *s_sb;
1: - struct journal_s *s_journal;
1: - struct list_head s_orphan;
1: - struct mutex s_orphan_lock;
1: - long unsigned int s_ext4_flags;
1: - long unsigned int s_commit_interval;
1: - u32 s_max_batch_time;
1: - u32 s_min_batch_time;
1: - struct block_device *s_journal_bdev;
1: - char *s_qf_names[3];
1: - int s_jquota_fmt;
1: - unsigned int s_want_extra_isize;
1: - struct ext4_system_blocks *s_system_blks;
1: - struct ext4_group_info ***s_group_info;
1: - struct inode *s_buddy_cache;
1: - spinlock_t s_md_lock;
1: - short unsigned int *s_mb_offsets;
1: - unsigned int *s_mb_maxs;
1: - unsigned int s_group_info_size;
1: - unsigned int s_mb_free_pending;
1: - struct list_head s_freed_data_list;
1: - long unsigned int s_stripe;
1: - unsigned int s_mb_stream_request;
1: - unsigned int s_mb_max_to_scan;
1: - unsigned int s_mb_min_to_scan;
1: - unsigned int s_mb_stats;
1: - unsigned int s_mb_order2_reqs;
1: - unsigned int s_mb_group_prealloc;
1: - unsigned int s_mb_max_inode_prealloc;
1: - unsigned int s_max_dir_size_kb;
1: - long unsigned int s_mb_last_group;
1: - long unsigned int s_mb_last_start;
1: - unsigned int s_mb_prefetch;
1: - unsigned int s_mb_prefetch_limit;
1: - atomic_t s_bal_reqs;
1: - atomic_t s_bal_success;
1: - atomic_t s_bal_allocated;
1: - atomic_t s_bal_ex_scanned;
1: - atomic_t s_bal_goals;
1: - atomic_t s_bal_breaks;
1: - atomic_t s_bal_2orders;
1: - spinlock_t s_bal_lock;
1: - long unsigned int s_mb_buddies_generated;
1: - long long unsigned int s_mb_generation_time;
1: - atomic_t s_mb_lost_chunks;
1: - atomic_t s_mb_preallocated;
1: - atomic_t s_mb_discarded;
1: - atomic_t s_lock_busy;
1: - struct ext4_locality_group *s_locality_groups;
1: - long unsigned int s_sectors_written_start;
1: - u64 s_kbytes_written;
1: - unsigned int s_extent_max_zeroout_kb;
1: - unsigned int s_log_groups_per_flex;
1: - struct flex_groups **s_flex_groups;
1: - ext4_group_t s_flex_groups_allocated;
1: - struct workqueue_struct *rsv_conversion_wq;
1: - struct timer_list s_err_report;
1: - struct ext4_li_request *s_li_request;
1: - unsigned int s_li_wait_mult;
1: - struct task_struct *s_mmp_tsk;
1: - atomic_t s_last_trim_minblks;
1: - struct crypto_shash *s_chksum_driver;
1: - __u32 s_csum_seed;
1: - struct shrinker s_es_shrinker;
1: - struct list_head s_es_list;
1: - long int s_es_nr_inode;
1: - struct ext4_es_stats s_es_stats;
1: - struct mb_cache___2 *s_ea_block_cache;
1: - struct mb_cache___2 *s_ea_inode_cache;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t s_es_lock;
1: - struct ratelimit_state s_err_ratelimit_state;
1: - struct ratelimit_state s_warning_ratelimit_state;
1: - struct ratelimit_state s_msg_ratelimit_state;
1: - atomic_t s_warning_count;
1: - atomic_t s_msg_count;
1: - struct fscrypt_dummy_policy s_dummy_enc_policy;
1: - struct percpu_rw_semaphore s_writepages_rwsem;
1: - struct dax_device *s_daxdev;
1: - errseq_t s_bdev_wb_err;
1: - spinlock_t s_bdev_wb_lock;
1: - atomic_t s_fc_subtid;
1: - atomic_t s_fc_ineligible_updates;
1: - struct list_head s_fc_q[2];
1: - struct list_head s_fc_dentry_q[2];
1: - unsigned int s_fc_bytes;
1: - spinlock_t s_fc_lock;
1: - struct buffer_head *s_fc_bh;
1: - struct ext4_fc_stats s_fc_stats;
1: - u64 s_fc_avg_commit_time;
1: - struct ext4_fc_replay_state s_fc_replay_state;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + long unsigned int s_desc_size;
1: + long unsigned int s_inodes_per_block;
1: + long unsigned int s_blocks_per_group;
1: + long unsigned int s_clusters_per_group;
1: + long unsigned int s_inodes_per_group;
1: + long unsigned int s_itb_per_group;
1: + long unsigned int s_gdb_count;
1: + long unsigned int s_desc_per_block;
1: + ext4_group_t s_groups_count;
1: + ext4_group_t s_blockfile_groups;
1: + long unsigned int s_overhead;
1: + unsigned int s_cluster_ratio;
1: + unsigned int s_cluster_bits;
1: + loff_t s_bitmap_maxbytes;
1: + struct buffer_head *s_sbh;
1: + struct ext4_super_block *s_es;
1: + struct buffer_head **s_group_desc;
1: + unsigned int s_mount_opt;
1: + unsigned int s_mount_opt2;
1: + long unsigned int s_mount_flags;
1: + unsigned int s_def_mount_opt;
1: + ext4_fsblk_t s_sb_block;
1: + atomic64_t s_resv_clusters;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + short unsigned int s_mount_state;
1: + short unsigned int s_pad;
1: + int s_addr_per_block_bits;
1: + int s_desc_per_block_bits;
1: + int s_inode_size;
1: + int s_first_ino;
1: + unsigned int s_inode_readahead_blks;
1: + unsigned int s_inode_goal;
1: + u32 s_hash_seed[4];
1: + int s_def_hash_version;
1: + int s_hash_unsigned;
1: + struct percpu_counter s_freeclusters_counter;
1: + struct percpu_counter s_freeinodes_counter;
1: + struct percpu_counter s_dirs_counter;
1: + struct percpu_counter s_dirtyclusters_counter;
1: + struct blockgroup_lock *s_blockgroup_lock;
1: + struct proc_dir_entry *s_proc;
1: + struct kobject s_kobj;
1: + struct completion s_kobj_unregister;
1: + struct super_block *s_sb;
1: + struct journal_s *s_journal;
1: + struct list_head s_orphan;
1: + struct mutex s_orphan_lock;
1: + long unsigned int s_ext4_flags;
1: + long unsigned int s_commit_interval;
1: + u32 s_max_batch_time;
1: + u32 s_min_batch_time;
1: + struct block_device *s_journal_bdev;
1: + char *s_qf_names[3];
1: + int s_jquota_fmt;
1: + unsigned int s_want_extra_isize;
1: + struct ext4_system_blocks *s_system_blks;
1: + struct ext4_group_info ***s_group_info;
1: + struct inode *s_buddy_cache;
1: + spinlock_t s_md_lock;
1: + short unsigned int *s_mb_offsets;
1: + unsigned int *s_mb_maxs;
1: + unsigned int s_group_info_size;
1: + unsigned int s_mb_free_pending;
1: + struct list_head s_freed_data_list;
1: + long unsigned int s_stripe;
1: + unsigned int s_mb_stream_request;
1: + unsigned int s_mb_max_to_scan;
1: + unsigned int s_mb_min_to_scan;
1: + unsigned int s_mb_stats;
1: + unsigned int s_mb_order2_reqs;
1: + unsigned int s_mb_group_prealloc;
1: + unsigned int s_mb_max_inode_prealloc;
1: + unsigned int s_max_dir_size_kb;
1: + long unsigned int s_mb_last_group;
1: + long unsigned int s_mb_last_start;
1: + unsigned int s_mb_prefetch;
1: + unsigned int s_mb_prefetch_limit;
1: + atomic_t s_bal_reqs;
1: + atomic_t s_bal_success;
1: + atomic_t s_bal_allocated;
1: + atomic_t s_bal_ex_scanned;
1: + atomic_t s_bal_goals;
1: + atomic_t s_bal_breaks;
1: + atomic_t s_bal_2orders;
1: + spinlock_t s_bal_lock;
1: + long unsigned int s_mb_buddies_generated;
1: + long long unsigned int s_mb_generation_time;
1: + atomic_t s_mb_lost_chunks;
1: + atomic_t s_mb_preallocated;
1: + atomic_t s_mb_discarded;
1: + atomic_t s_lock_busy;
1: + struct ext4_locality_group *s_locality_groups;
1: + long unsigned int s_sectors_written_start;
1: + u64 s_kbytes_written;
1: + unsigned int s_extent_max_zeroout_kb;
1: + unsigned int s_log_groups_per_flex;
1: + struct flex_groups **s_flex_groups;
1: + ext4_group_t s_flex_groups_allocated;
1: + struct workqueue_struct *rsv_conversion_wq;
1: + struct timer_list s_err_report;
1: + struct ext4_li_request *s_li_request;
1: + unsigned int s_li_wait_mult;
1: + struct task_struct *s_mmp_tsk;
1: + atomic_t s_last_trim_minblks;
1: + struct crypto_shash *s_chksum_driver;
1: + __u32 s_csum_seed;
1: + struct shrinker s_es_shrinker;
1: + struct list_head s_es_list;
1: + long int s_es_nr_inode;
1: + struct ext4_es_stats s_es_stats;
1: + struct mb_cache___2 *s_ea_block_cache;
1: + struct mb_cache___2 *s_ea_inode_cache;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t s_es_lock;
1: + struct ratelimit_state s_err_ratelimit_state;
1: + struct ratelimit_state s_warning_ratelimit_state;
1: + struct ratelimit_state s_msg_ratelimit_state;
1: + atomic_t s_warning_count;
1: + atomic_t s_msg_count;
1: + struct fscrypt_dummy_policy s_dummy_enc_policy;
1: + struct percpu_rw_semaphore s_writepages_rwsem;
1: + struct dax_device *s_daxdev;
1: + errseq_t s_bdev_wb_err;
1: + spinlock_t s_bdev_wb_lock;
1: + atomic_t s_fc_subtid;
1: + atomic_t s_fc_ineligible_updates;
1: + struct list_head s_fc_q[2];
1: + struct list_head s_fc_dentry_q[2];
1: + unsigned int s_fc_bytes;
1: + spinlock_t s_fc_lock;
1: + struct buffer_head *s_fc_bh;
1: + struct ext4_fc_stats s_fc_stats;
1: + u64 s_fc_avg_commit_time;
1: + struct ext4_fc_replay_state s_fc_replay_state;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct ext4_group_info {
1: - long unsigned int bb_state;
1: - struct rb_root bb_free_root;
1: - ext4_grpblk_t bb_first_free;
1: - ext4_grpblk_t bb_free;
1: - ext4_grpblk_t bb_fragments;
1: - ext4_grpblk_t bb_largest_free_order;
1: - struct list_head bb_prealloc_list;
1: - struct rw_semaphore alloc_sem;
1: - ext4_grpblk_t bb_counters[0];
1: + long unsigned int bb_state;
1: + struct rb_root bb_free_root;
1: + ext4_grpblk_t bb_first_free;
1: + ext4_grpblk_t bb_free;
1: + ext4_grpblk_t bb_fragments;
1: + ext4_grpblk_t bb_largest_free_order;
1: + struct list_head bb_prealloc_list;
1: + struct rw_semaphore alloc_sem;
1: + ext4_grpblk_t bb_counters[0];
1: };
1:
1: struct ext4_locality_group {
1: - struct mutex lg_mutex;
1: - struct list_head lg_prealloc_list[10];
1: - spinlock_t lg_prealloc_lock;
1: + struct mutex lg_mutex;
1: + struct list_head lg_prealloc_list[10];
1: + spinlock_t lg_prealloc_lock;
1: };
1:
1: enum ext4_li_mode {
1: - EXT4_LI_MODE_PREFETCH_BBITMAP = 0,
1: - EXT4_LI_MODE_ITABLE = 1,
1: + EXT4_LI_MODE_PREFETCH_BBITMAP = 0,
1: + EXT4_LI_MODE_ITABLE = 1,
1: };
1:
1: struct ext4_li_request {
1: - struct super_block *lr_super;
1: - enum ext4_li_mode lr_mode;
1: - ext4_group_t lr_first_not_zeroed;
1: - ext4_group_t lr_next_group;
1: - struct list_head lr_request;
1: - long unsigned int lr_next_sched;
1: - long unsigned int lr_timeout;
1: + struct super_block *lr_super;
1: + enum ext4_li_mode lr_mode;
1: + ext4_group_t lr_first_not_zeroed;
1: + ext4_group_t lr_next_group;
1: + struct list_head lr_request;
1: + long unsigned int lr_next_sched;
1: + long unsigned int lr_timeout;
1: };
1:
1: struct ext4_map_blocks {
1: - ext4_fsblk_t m_pblk;
1: - ext4_lblk_t m_lblk;
1: - unsigned int m_len;
1: - unsigned int m_flags;
1: + ext4_fsblk_t m_pblk;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + unsigned int m_flags;
1: };
1:
1: struct ext4_system_zone {
1: - struct rb_node node;
1: - ext4_fsblk_t start_blk;
1: - unsigned int count;
1: - u32 ino;
1: -};
1: -
1: -enum {
1: - EXT4_INODE_SECRM = 0,
1: - EXT4_INODE_UNRM = 1,
1: - EXT4_INODE_COMPR = 2,
1: - EXT4_INODE_SYNC = 3,
1: - EXT4_INODE_IMMUTABLE = 4,
1: - EXT4_INODE_APPEND = 5,
1: - EXT4_INODE_NODUMP = 6,
1: - EXT4_INODE_NOATIME = 7,
1: - EXT4_INODE_DIRTY = 8,
1: - EXT4_INODE_COMPRBLK = 9,
1: - EXT4_INODE_NOCOMPR = 10,
1: - EXT4_INODE_ENCRYPT = 11,
1: - EXT4_INODE_INDEX = 12,
1: - EXT4_INODE_IMAGIC = 13,
1: - EXT4_INODE_JOURNAL_DATA = 14,
1: - EXT4_INODE_NOTAIL = 15,
1: - EXT4_INODE_DIRSYNC = 16,
1: - EXT4_INODE_TOPDIR = 17,
1: - EXT4_INODE_HUGE_FILE = 18,
1: - EXT4_INODE_EXTENTS = 19,
1: - EXT4_INODE_VERITY = 20,
1: - EXT4_INODE_EA_INODE = 21,
1: - EXT4_INODE_DAX = 25,
1: - EXT4_INODE_INLINE_DATA = 28,
1: - EXT4_INODE_PROJINHERIT = 29,
1: - EXT4_INODE_CASEFOLD = 30,
1: - EXT4_INODE_RESERVED = 31,
1: -};
1: -
1: -enum {
1: - EXT4_FC_REASON_OK = 0,
1: - EXT4_FC_REASON_INELIGIBLE = 1,
1: - EXT4_FC_REASON_ALREADY_COMMITTED = 2,
1: - EXT4_FC_REASON_FC_START_FAILED = 3,
1: - EXT4_FC_REASON_FC_FAILED = 4,
1: - EXT4_FC_REASON_XATTR = 0,
1: - EXT4_FC_REASON_CROSS_RENAME = 1,
1: - EXT4_FC_REASON_JOURNAL_FLAG_CHANGE = 2,
1: - EXT4_FC_REASON_NOMEM = 3,
1: - EXT4_FC_REASON_SWAP_BOOT = 4,
1: - EXT4_FC_REASON_RESIZE = 5,
1: - EXT4_FC_REASON_RENAME_DIR = 6,
1: - EXT4_FC_REASON_FALLOC_RANGE = 7,
1: - EXT4_FC_REASON_INODE_JOURNAL_DATA = 8,
1: - EXT4_FC_COMMIT_FAILED = 9,
1: - EXT4_FC_REASON_MAX = 10,
1: + struct rb_node node;
1: + ext4_fsblk_t start_blk;
1: + unsigned int count;
1: + u32 ino;
1: +};
1: +
1: +enum {
1: + EXT4_INODE_SECRM = 0,
1: + EXT4_INODE_UNRM = 1,
1: + EXT4_INODE_COMPR = 2,
1: + EXT4_INODE_SYNC = 3,
1: + EXT4_INODE_IMMUTABLE = 4,
1: + EXT4_INODE_APPEND = 5,
1: + EXT4_INODE_NODUMP = 6,
1: + EXT4_INODE_NOATIME = 7,
1: + EXT4_INODE_DIRTY = 8,
1: + EXT4_INODE_COMPRBLK = 9,
1: + EXT4_INODE_NOCOMPR = 10,
1: + EXT4_INODE_ENCRYPT = 11,
1: + EXT4_INODE_INDEX = 12,
1: + EXT4_INODE_IMAGIC = 13,
1: + EXT4_INODE_JOURNAL_DATA = 14,
1: + EXT4_INODE_NOTAIL = 15,
1: + EXT4_INODE_DIRSYNC = 16,
1: + EXT4_INODE_TOPDIR = 17,
1: + EXT4_INODE_HUGE_FILE = 18,
1: + EXT4_INODE_EXTENTS = 19,
1: + EXT4_INODE_VERITY = 20,
1: + EXT4_INODE_EA_INODE = 21,
1: + EXT4_INODE_DAX = 25,
1: + EXT4_INODE_INLINE_DATA = 28,
1: + EXT4_INODE_PROJINHERIT = 29,
1: + EXT4_INODE_CASEFOLD = 30,
1: + EXT4_INODE_RESERVED = 31,
1: +};
1: +
1: +enum {
1: + EXT4_FC_REASON_OK = 0,
1: + EXT4_FC_REASON_INELIGIBLE = 1,
1: + EXT4_FC_REASON_ALREADY_COMMITTED = 2,
1: + EXT4_FC_REASON_FC_START_FAILED = 3,
1: + EXT4_FC_REASON_FC_FAILED = 4,
1: + EXT4_FC_REASON_XATTR = 0,
1: + EXT4_FC_REASON_CROSS_RENAME = 1,
1: + EXT4_FC_REASON_JOURNAL_FLAG_CHANGE = 2,
1: + EXT4_FC_REASON_NOMEM = 3,
1: + EXT4_FC_REASON_SWAP_BOOT = 4,
1: + EXT4_FC_REASON_RESIZE = 5,
1: + EXT4_FC_REASON_RENAME_DIR = 6,
1: + EXT4_FC_REASON_FALLOC_RANGE = 7,
1: + EXT4_FC_REASON_INODE_JOURNAL_DATA = 8,
1: + EXT4_FC_COMMIT_FAILED = 9,
1: + EXT4_FC_REASON_MAX = 10,
1: };
1:
1: struct ext4_dir_entry_2 {
1: - __le32 inode;
1: - __le16 rec_len;
1: - __u8 name_len;
1: - __u8 file_type;
1: - char name[255];
1: + __le32 inode;
1: + __le16 rec_len;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[255];
1: };
1:
1: struct fname;
1:
1: struct dir_private_info {
1: - struct rb_root root;
1: - struct rb_node *curr_node;
1: - struct fname *extra_fname;
1: - loff_t last_pos;
1: - __u32 curr_hash;
1: - __u32 curr_minor_hash;
1: - __u32 next_hash;
1: + struct rb_root root;
1: + struct rb_node *curr_node;
1: + struct fname *extra_fname;
1: + loff_t last_pos;
1: + __u32 curr_hash;
1: + __u32 curr_minor_hash;
1: + __u32 next_hash;
1: };
1:
1: struct fname {
1: - __u32 hash;
1: - __u32 minor_hash;
1: - struct rb_node rb_hash;
1: - struct fname *next;
1: - __u32 inode;
1: - __u8 name_len;
1: - __u8 file_type;
1: - char name[0];
1: + __u32 hash;
1: + __u32 minor_hash;
1: + struct rb_node rb_hash;
1: + struct fname *next;
1: + __u32 inode;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[0];
1: };
1:
1: enum SHIFT_DIRECTION {
1: - SHIFT_LEFT = 0,
1: - SHIFT_RIGHT = 1,
1: + SHIFT_LEFT = 0,
1: + SHIFT_RIGHT = 1,
1: };
1:
1: struct ext4_io_end_vec {
1: - struct list_head list;
1: - loff_t offset;
1: - ssize_t size;
1: + struct list_head list;
1: + loff_t offset;
1: + ssize_t size;
1: };
1:
1: struct ext4_io_end {
1: - struct list_head list;
1: - handle_t *handle;
1: - struct inode *inode;
1: - struct bio *bio;
1: - unsigned int flag;
1: - atomic_t count;
1: - struct list_head list_vec;
1: + struct list_head list;
1: + handle_t *handle;
1: + struct inode *inode;
1: + struct bio *bio;
1: + unsigned int flag;
1: + atomic_t count;
1: + struct list_head list_vec;
1: };
1:
1: typedef struct ext4_io_end ext4_io_end_t;
1:
1: enum {
1: - ES_WRITTEN_B = 0,
1: - ES_UNWRITTEN_B = 1,
1: - ES_DELAYED_B = 2,
1: - ES_HOLE_B = 3,
1: - ES_REFERENCED_B = 4,
1: - ES_FLAGS = 5,
1: + ES_WRITTEN_B = 0,
1: + ES_UNWRITTEN_B = 1,
1: + ES_DELAYED_B = 2,
1: + ES_HOLE_B = 3,
1: + ES_REFERENCED_B = 4,
1: + ES_FLAGS = 5,
1: };
1:
1: enum {
1: - EXT4_STATE_JDATA = 0,
1: - EXT4_STATE_NEW = 1,
1: - EXT4_STATE_XATTR = 2,
1: - EXT4_STATE_NO_EXPAND = 3,
1: - EXT4_STATE_DA_ALLOC_CLOSE = 4,
1: - EXT4_STATE_EXT_MIGRATE = 5,
1: - EXT4_STATE_NEWENTRY = 6,
1: - EXT4_STATE_MAY_INLINE_DATA = 7,
1: - EXT4_STATE_EXT_PRECACHED = 8,
1: - EXT4_STATE_LUSTRE_EA_INODE = 9,
1: - EXT4_STATE_VERITY_IN_PROGRESS = 10,
1: - EXT4_STATE_FC_COMMITTING = 11,
1: + EXT4_STATE_JDATA = 0,
1: + EXT4_STATE_NEW = 1,
1: + EXT4_STATE_XATTR = 2,
1: + EXT4_STATE_NO_EXPAND = 3,
1: + EXT4_STATE_DA_ALLOC_CLOSE = 4,
1: + EXT4_STATE_EXT_MIGRATE = 5,
1: + EXT4_STATE_NEWENTRY = 6,
1: + EXT4_STATE_MAY_INLINE_DATA = 7,
1: + EXT4_STATE_EXT_PRECACHED = 8,
1: + EXT4_STATE_LUSTRE_EA_INODE = 9,
1: + EXT4_STATE_VERITY_IN_PROGRESS = 10,
1: + EXT4_STATE_FC_COMMITTING = 11,
1: };
1:
1: struct ext4_iloc {
1: - struct buffer_head *bh;
1: - long unsigned int offset;
1: - ext4_group_t block_group;
1: + struct buffer_head *bh;
1: + long unsigned int offset;
1: + ext4_group_t block_group;
1: };
1:
1: struct ext4_extent_tail {
1: - __le32 et_checksum;
1: + __le32 et_checksum;
1: };
1:
1: struct ext4_extent {
1: - __le32 ee_block;
1: - __le16 ee_len;
1: - __le16 ee_start_hi;
1: - __le32 ee_start_lo;
1: + __le32 ee_block;
1: + __le16 ee_len;
1: + __le16 ee_start_hi;
1: + __le32 ee_start_lo;
1: };
1:
1: struct ext4_extent_idx {
1: - __le32 ei_block;
1: - __le32 ei_leaf_lo;
1: - __le16 ei_leaf_hi;
1: - __u16 ei_unused;
1: + __le32 ei_block;
1: + __le32 ei_leaf_lo;
1: + __le16 ei_leaf_hi;
1: + __u16 ei_unused;
1: };
1:
1: struct ext4_extent_header {
1: - __le16 eh_magic;
1: - __le16 eh_entries;
1: - __le16 eh_max;
1: - __le16 eh_depth;
1: - __le32 eh_generation;
1: + __le16 eh_magic;
1: + __le16 eh_entries;
1: + __le16 eh_max;
1: + __le16 eh_depth;
1: + __le32 eh_generation;
1: };
1:
1: struct ext4_ext_path {
1: - ext4_fsblk_t p_block;
1: - __u16 p_depth;
1: - __u16 p_maxdepth;
1: - struct ext4_extent *p_ext;
1: - struct ext4_extent_idx *p_idx;
1: - struct ext4_extent_header *p_hdr;
1: - struct buffer_head *p_bh;
1: + ext4_fsblk_t p_block;
1: + __u16 p_depth;
1: + __u16 p_maxdepth;
1: + struct ext4_extent *p_ext;
1: + struct ext4_extent_idx *p_idx;
1: + struct ext4_extent_header *p_hdr;
1: + struct buffer_head *p_bh;
1: };
1:
1: struct partial_cluster {
1: - ext4_fsblk_t pclu;
1: - ext4_lblk_t lblk;
1: - enum {
1: - initial = 0,
1: - tofree = 1,
1: - nofree = 2,
1: - } state;
1: + ext4_fsblk_t pclu;
1: + ext4_lblk_t lblk;
1: + enum {
1: + initial = 0,
1: + tofree = 1,
1: + nofree = 2,
1: + } state;
1: };
1:
1: struct pending_reservation {
1: - struct rb_node rb_node;
1: - ext4_lblk_t lclu;
1: + struct rb_node rb_node;
1: + ext4_lblk_t lclu;
1: };
1:
1: struct rsvd_count {
1: - int ndelonly;
1: - bool first_do_lblk_found;
1: - ext4_lblk_t first_do_lblk;
1: - ext4_lblk_t last_do_lblk;
1: - struct extent_status *left_es;
1: - bool partial;
1: - ext4_lblk_t lclu;
1: + int ndelonly;
1: + bool first_do_lblk_found;
1: + ext4_lblk_t first_do_lblk;
1: + ext4_lblk_t last_do_lblk;
1: + struct extent_status *left_es;
1: + bool partial;
1: + ext4_lblk_t lclu;
1: };
1:
1: enum {
1: - EXT4_MF_MNTDIR_SAMPLED = 0,
1: - EXT4_MF_FS_ABORTED = 1,
1: - EXT4_MF_FC_INELIGIBLE = 2,
1: - EXT4_MF_FC_COMMITTING = 3,
1: + EXT4_MF_MNTDIR_SAMPLED = 0,
1: + EXT4_MF_FS_ABORTED = 1,
1: + EXT4_MF_FC_INELIGIBLE = 2,
1: + EXT4_MF_FC_COMMITTING = 3,
1: };
1:
1: struct fsmap {
1: - __u32 fmr_device;
1: - __u32 fmr_flags;
1: - __u64 fmr_physical;
1: - __u64 fmr_owner;
1: - __u64 fmr_offset;
1: - __u64 fmr_length;
1: - __u64 fmr_reserved[3];
1: + __u32 fmr_device;
1: + __u32 fmr_flags;
1: + __u64 fmr_physical;
1: + __u64 fmr_owner;
1: + __u64 fmr_offset;
1: + __u64 fmr_length;
1: + __u64 fmr_reserved[3];
1: };
1:
1: struct ext4_fsmap {
1: - struct list_head fmr_list;
1: - dev_t fmr_device;
1: - uint32_t fmr_flags;
1: - uint64_t fmr_physical;
1: - uint64_t fmr_owner;
1: - uint64_t fmr_length;
1: + struct list_head fmr_list;
1: + dev_t fmr_device;
1: + uint32_t fmr_flags;
1: + uint64_t fmr_physical;
1: + uint64_t fmr_owner;
1: + uint64_t fmr_length;
1: };
1:
1: struct ext4_fsmap_head {
1: - uint32_t fmh_iflags;
1: - uint32_t fmh_oflags;
1: - unsigned int fmh_count;
1: - unsigned int fmh_entries;
1: - struct ext4_fsmap fmh_keys[2];
1: + uint32_t fmh_iflags;
1: + uint32_t fmh_oflags;
1: + unsigned int fmh_count;
1: + unsigned int fmh_entries;
1: + struct ext4_fsmap fmh_keys[2];
1: };
1:
1: typedef int (*ext4_fsmap_format_t)(struct ext4_fsmap *, void *);
1:
1: struct ext4_getfsmap_info {
1: - struct ext4_fsmap_head *gfi_head;
1: - ext4_fsmap_format_t gfi_formatter;
1: - void *gfi_format_arg;
1: - ext4_fsblk_t gfi_next_fsblk;
1: - u32 gfi_dev;
1: - ext4_group_t gfi_agno;
1: - struct ext4_fsmap gfi_low;
1: - struct ext4_fsmap gfi_high;
1: - struct ext4_fsmap gfi_lastfree;
1: - struct list_head gfi_meta_list;
1: - bool gfi_last;
1: + struct ext4_fsmap_head *gfi_head;
1: + ext4_fsmap_format_t gfi_formatter;
1: + void *gfi_format_arg;
1: + ext4_fsblk_t gfi_next_fsblk;
1: + u32 gfi_dev;
1: + ext4_group_t gfi_agno;
1: + struct ext4_fsmap gfi_low;
1: + struct ext4_fsmap gfi_high;
1: + struct ext4_fsmap gfi_lastfree;
1: + struct list_head gfi_meta_list;
1: + bool gfi_last;
1: };
1:
1: struct ext4_getfsmap_dev {
1: - int (*gfd_fn)(struct super_block *, struct ext4_fsmap *, struct ext4_getfsmap_info *);
1: - u32 gfd_dev;
1: + int (*gfd_fn)(struct super_block *, struct ext4_fsmap *,
1: + struct ext4_getfsmap_info *);
1: + u32 gfd_dev;
1: };
1:
1: struct dx_hash_info {
1: - u32 hash;
1: - u32 minor_hash;
1: - int hash_version;
1: - u32 *seed;
1: + u32 hash;
1: + u32 minor_hash;
1: + int hash_version;
1: + u32 *seed;
1: };
1:
1: typedef unsigned int __kernel_mode_t;
1: @@ -42956,119 +43558,119 @@ typedef unsigned int __kernel_mode_t;
1: typedef __kernel_mode_t mode_t;
1:
1: struct ext4_inode {
1: - __le16 i_mode;
1: - __le16 i_uid;
1: - __le32 i_size_lo;
1: - __le32 i_atime;
1: - __le32 i_ctime;
1: - __le32 i_mtime;
1: - __le32 i_dtime;
1: - __le16 i_gid;
1: - __le16 i_links_count;
1: - __le32 i_blocks_lo;
1: - __le32 i_flags;
1: - union {
1: - struct {
1: - __le32 l_i_version;
1: - } linux1;
1: - struct {
1: - __u32 h_i_translator;
1: - } hurd1;
1: - struct {
1: - __u32 m_i_reserved1;
1: - } masix1;
1: - } osd1;
1: - __le32 i_block[15];
1: - __le32 i_generation;
1: - __le32 i_file_acl_lo;
1: - __le32 i_size_high;
1: - __le32 i_obso_faddr;
1: - union {
1: - struct {
1: - __le16 l_i_blocks_high;
1: - __le16 l_i_file_acl_high;
1: - __le16 l_i_uid_high;
1: - __le16 l_i_gid_high;
1: - __le16 l_i_checksum_lo;
1: - __le16 l_i_reserved;
1: - } linux2;
1: - struct {
1: - __le16 h_i_reserved1;
1: - __u16 h_i_mode_high;
1: - __u16 h_i_uid_high;
1: - __u16 h_i_gid_high;
1: - __u32 h_i_author;
1: - } hurd2;
1: - struct {
1: - __le16 h_i_reserved1;
1: - __le16 m_i_file_acl_high;
1: - __u32 m_i_reserved2[2];
1: - } masix2;
1: - } osd2;
1: - __le16 i_extra_isize;
1: - __le16 i_checksum_hi;
1: - __le32 i_ctime_extra;
1: - __le32 i_mtime_extra;
1: - __le32 i_atime_extra;
1: - __le32 i_crtime;
1: - __le32 i_crtime_extra;
1: - __le32 i_version_hi;
1: - __le32 i_projid;
1: + __le16 i_mode;
1: + __le16 i_uid;
1: + __le32 i_size_lo;
1: + __le32 i_atime;
1: + __le32 i_ctime;
1: + __le32 i_mtime;
1: + __le32 i_dtime;
1: + __le16 i_gid;
1: + __le16 i_links_count;
1: + __le32 i_blocks_lo;
1: + __le32 i_flags;
1: + union {
1: + struct {
1: + __le32 l_i_version;
1: + } linux1;
1: + struct {
1: + __u32 h_i_translator;
1: + } hurd1;
1: + struct {
1: + __u32 m_i_reserved1;
1: + } masix1;
1: + } osd1;
1: + __le32 i_block[15];
1: + __le32 i_generation;
1: + __le32 i_file_acl_lo;
1: + __le32 i_size_high;
1: + __le32 i_obso_faddr;
1: + union {
1: + struct {
1: + __le16 l_i_blocks_high;
1: + __le16 l_i_file_acl_high;
1: + __le16 l_i_uid_high;
1: + __le16 l_i_gid_high;
1: + __le16 l_i_checksum_lo;
1: + __le16 l_i_reserved;
1: + } linux2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __u16 h_i_mode_high;
1: + __u16 h_i_uid_high;
1: + __u16 h_i_gid_high;
1: + __u32 h_i_author;
1: + } hurd2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __le16 m_i_file_acl_high;
1: + __u32 m_i_reserved2[2];
1: + } masix2;
1: + } osd2;
1: + __le16 i_extra_isize;
1: + __le16 i_checksum_hi;
1: + __le32 i_ctime_extra;
1: + __le32 i_mtime_extra;
1: + __le32 i_atime_extra;
1: + __le32 i_crtime;
1: + __le32 i_crtime_extra;
1: + __le32 i_version_hi;
1: + __le32 i_projid;
1: };
1:
1: struct orlov_stats {
1: - __u64 free_clusters;
1: - __u32 free_inodes;
1: - __u32 used_dirs;
1: + __u64 free_clusters;
1: + __u32 free_inodes;
1: + __u32 used_dirs;
1: };
1:
1: typedef struct {
1: - __le32 *p;
1: - __le32 key;
1: - struct buffer_head *bh;
1: + __le32 *p;
1: + __le32 key;
1: + struct buffer_head *bh;
1: } Indirect;
1:
1: struct ext4_filename {
1: - const struct qstr *usr_fname;
1: - struct fscrypt_str disk_name;
1: - struct dx_hash_info hinfo;
1: - struct fscrypt_str crypto_buf;
1: - struct fscrypt_str cf_name;
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + struct dx_hash_info hinfo;
1: + struct fscrypt_str crypto_buf;
1: + struct fscrypt_str cf_name;
1: };
1:
1: struct ext4_xattr_ibody_header {
1: - __le32 h_magic;
1: + __le32 h_magic;
1: };
1:
1: struct ext4_xattr_entry {
1: - __u8 e_name_len;
1: - __u8 e_name_index;
1: - __le16 e_value_offs;
1: - __le32 e_value_inum;
1: - __le32 e_value_size;
1: - __le32 e_hash;
1: - char e_name[0];
1: + __u8 e_name_len;
1: + __u8 e_name_index;
1: + __le16 e_value_offs;
1: + __le32 e_value_inum;
1: + __le32 e_value_size;
1: + __le32 e_hash;
1: + char e_name[0];
1: };
1:
1: struct ext4_xattr_info {
1: - const char *name;
1: - const void *value;
1: - size_t value_len;
1: - int name_index;
1: - int in_inode;
1: + const char *name;
1: + const void *value;
1: + size_t value_len;
1: + int name_index;
1: + int in_inode;
1: };
1:
1: struct ext4_xattr_search {
1: - struct ext4_xattr_entry *first;
1: - void *base;
1: - void *end;
1: - struct ext4_xattr_entry *here;
1: - int not_found;
1: + struct ext4_xattr_entry *first;
1: + void *base;
1: + void *end;
1: + struct ext4_xattr_entry *here;
1: + int not_found;
1: };
1:
1: struct ext4_xattr_ibody_find {
1: - struct ext4_xattr_search s;
1: - struct ext4_iloc iloc;
1: + struct ext4_xattr_search s;
1: + struct ext4_iloc iloc;
1: };
1:
1: typedef short unsigned int __kernel_uid16_t;
1: @@ -43080,1302 +43682,1304 @@ typedef __kernel_uid16_t uid16_t;
1: typedef __kernel_gid16_t gid16_t;
1:
1: struct ext4_io_submit {
1: - struct writeback_control *io_wbc;
1: - struct bio *io_bio;
1: - ext4_io_end_t *io_end;
1: - sector_t io_next_block;
1: + struct writeback_control *io_wbc;
1: + struct bio *io_bio;
1: + ext4_io_end_t *io_end;
1: + sector_t io_next_block;
1: };
1:
1: typedef enum {
1: - EXT4_IGET_NORMAL = 0,
1: - EXT4_IGET_SPECIAL = 1,
1: - EXT4_IGET_HANDLE = 2,
1: + EXT4_IGET_NORMAL = 0,
1: + EXT4_IGET_SPECIAL = 1,
1: + EXT4_IGET_HANDLE = 2,
1: } ext4_iget_flags;
1:
1: struct ext4_xattr_inode_array {
1: - unsigned int count;
1: - struct inode *inodes[0];
1: + unsigned int count;
1: + struct inode *inodes[0];
1: };
1:
1: struct mpage_da_data {
1: - struct inode *inode;
1: - struct writeback_control *wbc;
1: - long unsigned int first_page;
1: - long unsigned int next_page;
1: - long unsigned int last_page;
1: - struct ext4_map_blocks map;
1: - struct ext4_io_submit io_submit;
1: - unsigned int do_map: 1;
1: - unsigned int scanned_until_end: 1;
1: + struct inode *inode;
1: + struct writeback_control *wbc;
1: + long unsigned int first_page;
1: + long unsigned int next_page;
1: + long unsigned int last_page;
1: + struct ext4_map_blocks map;
1: + struct ext4_io_submit io_submit;
1: + unsigned int do_map : 1;
1: + unsigned int scanned_until_end : 1;
1: };
1:
1: struct fstrim_range {
1: - __u64 start;
1: - __u64 len;
1: - __u64 minlen;
1: + __u64 start;
1: + __u64 len;
1: + __u64 minlen;
1: };
1:
1: struct ext4_new_group_input {
1: - __u32 group;
1: - __u64 block_bitmap;
1: - __u64 inode_bitmap;
1: - __u64 inode_table;
1: - __u32 blocks_count;
1: - __u16 reserved_blocks;
1: - __u16 unused;
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 unused;
1: };
1:
1: struct compat_ext4_new_group_input {
1: - u32 group;
1: - compat_u64 block_bitmap;
1: - compat_u64 inode_bitmap;
1: - compat_u64 inode_table;
1: - u32 blocks_count;
1: - u16 reserved_blocks;
1: - u16 unused;
1: + u32 group;
1: + compat_u64 block_bitmap;
1: + compat_u64 inode_bitmap;
1: + compat_u64 inode_table;
1: + u32 blocks_count;
1: + u16 reserved_blocks;
1: + u16 unused;
1: };
1:
1: struct ext4_new_group_data {
1: - __u32 group;
1: - __u64 block_bitmap;
1: - __u64 inode_bitmap;
1: - __u64 inode_table;
1: - __u32 blocks_count;
1: - __u16 reserved_blocks;
1: - __u16 mdata_blocks;
1: - __u32 free_clusters_count;
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 mdata_blocks;
1: + __u32 free_clusters_count;
1: };
1:
1: struct move_extent {
1: - __u32 reserved;
1: - __u32 donor_fd;
1: - __u64 orig_start;
1: - __u64 donor_start;
1: - __u64 len;
1: - __u64 moved_len;
1: + __u32 reserved;
1: + __u32 donor_fd;
1: + __u64 orig_start;
1: + __u64 donor_start;
1: + __u64 len;
1: + __u64 moved_len;
1: };
1:
1: struct fsmap_head {
1: - __u32 fmh_iflags;
1: - __u32 fmh_oflags;
1: - __u32 fmh_count;
1: - __u32 fmh_entries;
1: - __u64 fmh_reserved[6];
1: - struct fsmap fmh_keys[2];
1: - struct fsmap fmh_recs[0];
1: + __u32 fmh_iflags;
1: + __u32 fmh_oflags;
1: + __u32 fmh_count;
1: + __u32 fmh_entries;
1: + __u64 fmh_reserved[6];
1: + struct fsmap fmh_keys[2];
1: + struct fsmap fmh_recs[0];
1: };
1:
1: struct getfsmap_info {
1: - struct super_block *gi_sb;
1: - struct fsmap_head *gi_data;
1: - unsigned int gi_idx;
1: - __u32 gi_last_flags;
1: + struct super_block *gi_sb;
1: + struct fsmap_head *gi_data;
1: + unsigned int gi_idx;
1: + __u32 gi_last_flags;
1: };
1:
1: enum blk_default_limits {
1: - BLK_MAX_SEGMENTS = 128,
1: - BLK_SAFE_MAX_SECTORS = 255,
1: - BLK_DEF_MAX_SECTORS = 2560,
1: - BLK_MAX_SEGMENT_SIZE = 65536,
1: - BLK_SEG_BOUNDARY_MASK = 4294967295,
1: + BLK_MAX_SEGMENTS = 128,
1: + BLK_SAFE_MAX_SECTORS = 255,
1: + BLK_DEF_MAX_SECTORS = 2560,
1: + BLK_MAX_SEGMENT_SIZE = 65536,
1: + BLK_SEG_BOUNDARY_MASK = 4294967295,
1: };
1:
1: struct ext4_free_data {
1: - struct list_head efd_list;
1: - struct rb_node efd_node;
1: - ext4_group_t efd_group;
1: - ext4_grpblk_t efd_start_cluster;
1: - ext4_grpblk_t efd_count;
1: - tid_t efd_tid;
1: + struct list_head efd_list;
1: + struct rb_node efd_node;
1: + ext4_group_t efd_group;
1: + ext4_grpblk_t efd_start_cluster;
1: + ext4_grpblk_t efd_count;
1: + tid_t efd_tid;
1: };
1:
1: struct ext4_prealloc_space {
1: - struct list_head pa_inode_list;
1: - struct list_head pa_group_list;
1: - union {
1: - struct list_head pa_tmp_list;
1: - struct callback_head pa_rcu;
1: - } u;
1: - spinlock_t pa_lock;
1: - atomic_t pa_count;
1: - unsigned int pa_deleted;
1: - ext4_fsblk_t pa_pstart;
1: - ext4_lblk_t pa_lstart;
1: - ext4_grpblk_t pa_len;
1: - ext4_grpblk_t pa_free;
1: - short unsigned int pa_type;
1: - spinlock_t *pa_obj_lock;
1: - struct inode *pa_inode;
1: + struct list_head pa_inode_list;
1: + struct list_head pa_group_list;
1: + union {
1: + struct list_head pa_tmp_list;
1: + struct callback_head pa_rcu;
1: + } u;
1: + spinlock_t pa_lock;
1: + atomic_t pa_count;
1: + unsigned int pa_deleted;
1: + ext4_fsblk_t pa_pstart;
1: + ext4_lblk_t pa_lstart;
1: + ext4_grpblk_t pa_len;
1: + ext4_grpblk_t pa_free;
1: + short unsigned int pa_type;
1: + spinlock_t *pa_obj_lock;
1: + struct inode *pa_inode;
1: };
1:
1: enum {
1: - MB_INODE_PA = 0,
1: - MB_GROUP_PA = 1,
1: + MB_INODE_PA = 0,
1: + MB_GROUP_PA = 1,
1: };
1:
1: struct ext4_free_extent {
1: - ext4_lblk_t fe_logical;
1: - ext4_grpblk_t fe_start;
1: - ext4_group_t fe_group;
1: - ext4_grpblk_t fe_len;
1: + ext4_lblk_t fe_logical;
1: + ext4_grpblk_t fe_start;
1: + ext4_group_t fe_group;
1: + ext4_grpblk_t fe_len;
1: };
1:
1: struct ext4_allocation_context {
1: - struct inode *ac_inode;
1: - struct super_block *ac_sb;
1: - struct ext4_free_extent ac_o_ex;
1: - struct ext4_free_extent ac_g_ex;
1: - struct ext4_free_extent ac_b_ex;
1: - struct ext4_free_extent ac_f_ex;
1: - __u16 ac_groups_scanned;
1: - __u16 ac_found;
1: - __u16 ac_tail;
1: - __u16 ac_buddy;
1: - __u16 ac_flags;
1: - __u8 ac_status;
1: - __u8 ac_criteria;
1: - __u8 ac_2order;
1: - __u8 ac_op;
1: - struct page *ac_bitmap_page;
1: - struct page *ac_buddy_page;
1: - struct ext4_prealloc_space *ac_pa;
1: - struct ext4_locality_group *ac_lg;
1: + struct inode *ac_inode;
1: + struct super_block *ac_sb;
1: + struct ext4_free_extent ac_o_ex;
1: + struct ext4_free_extent ac_g_ex;
1: + struct ext4_free_extent ac_b_ex;
1: + struct ext4_free_extent ac_f_ex;
1: + __u16 ac_groups_scanned;
1: + __u16 ac_found;
1: + __u16 ac_tail;
1: + __u16 ac_buddy;
1: + __u16 ac_flags;
1: + __u8 ac_status;
1: + __u8 ac_criteria;
1: + __u8 ac_2order;
1: + __u8 ac_op;
1: + struct page *ac_bitmap_page;
1: + struct page *ac_buddy_page;
1: + struct ext4_prealloc_space *ac_pa;
1: + struct ext4_locality_group *ac_lg;
1: };
1:
1: struct ext4_buddy {
1: - struct page *bd_buddy_page;
1: - void *bd_buddy;
1: - struct page *bd_bitmap_page;
1: - void *bd_bitmap;
1: - struct ext4_group_info *bd_info;
1: - struct super_block *bd_sb;
1: - __u16 bd_blkbits;
1: - ext4_group_t bd_group;
1: + struct page *bd_buddy_page;
1: + void *bd_buddy;
1: + struct page *bd_bitmap_page;
1: + void *bd_bitmap;
1: + struct ext4_group_info *bd_info;
1: + struct super_block *bd_sb;
1: + __u16 bd_blkbits;
1: + ext4_group_t bd_group;
1: };
1:
1: -typedef int (*ext4_mballoc_query_range_fn)(struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t, void *);
1: +typedef int (*ext4_mballoc_query_range_fn)(struct super_block *, ext4_group_t,
1: + ext4_grpblk_t, ext4_grpblk_t,
1: + void *);
1:
1: struct sg {
1: - struct ext4_group_info info;
1: - ext4_grpblk_t counters[18];
1: + struct ext4_group_info info;
1: + ext4_grpblk_t counters[18];
1: };
1:
1: struct migrate_struct {
1: - ext4_lblk_t first_block;
1: - ext4_lblk_t last_block;
1: - ext4_lblk_t curr_block;
1: - ext4_fsblk_t first_pblock;
1: - ext4_fsblk_t last_pblock;
1: + ext4_lblk_t first_block;
1: + ext4_lblk_t last_block;
1: + ext4_lblk_t curr_block;
1: + ext4_fsblk_t first_pblock;
1: + ext4_fsblk_t last_pblock;
1: };
1:
1: struct mmp_struct {
1: - __le32 mmp_magic;
1: - __le32 mmp_seq;
1: - __le64 mmp_time;
1: - char mmp_nodename[64];
1: - char mmp_bdevname[32];
1: - __le16 mmp_check_interval;
1: - __le16 mmp_pad1;
1: - __le32 mmp_pad2[226];
1: - __le32 mmp_checksum;
1: + __le32 mmp_magic;
1: + __le32 mmp_seq;
1: + __le64 mmp_time;
1: + char mmp_nodename[64];
1: + char mmp_bdevname[32];
1: + __le16 mmp_check_interval;
1: + __le16 mmp_pad1;
1: + __le32 mmp_pad2[226];
1: + __le32 mmp_checksum;
1: };
1:
1: struct mmpd_data {
1: - struct buffer_head *bh;
1: - struct super_block *sb;
1: + struct buffer_head *bh;
1: + struct super_block *sb;
1: };
1:
1: struct ext4_dir_entry {
1: - __le32 inode;
1: - __le16 rec_len;
1: - __le16 name_len;
1: - char name[255];
1: + __le32 inode;
1: + __le16 rec_len;
1: + __le16 name_len;
1: + char name[255];
1: };
1:
1: struct ext4_dir_entry_tail {
1: - __le32 det_reserved_zero1;
1: - __le16 det_rec_len;
1: - __u8 det_reserved_zero2;
1: - __u8 det_reserved_ft;
1: - __le32 det_checksum;
1: + __le32 det_reserved_zero1;
1: + __le16 det_rec_len;
1: + __u8 det_reserved_zero2;
1: + __u8 det_reserved_ft;
1: + __le32 det_checksum;
1: };
1:
1: typedef enum {
1: - EITHER = 0,
1: - INDEX = 1,
1: - DIRENT = 2,
1: - DIRENT_HTREE = 3,
1: + EITHER = 0,
1: + INDEX = 1,
1: + DIRENT = 2,
1: + DIRENT_HTREE = 3,
1: } dirblock_type_t;
1:
1: struct fake_dirent {
1: - __le32 inode;
1: - __le16 rec_len;
1: - u8 name_len;
1: - u8 file_type;
1: + __le32 inode;
1: + __le16 rec_len;
1: + u8 name_len;
1: + u8 file_type;
1: };
1:
1: struct dx_countlimit {
1: - __le16 limit;
1: - __le16 count;
1: + __le16 limit;
1: + __le16 count;
1: };
1:
1: struct dx_entry {
1: - __le32 hash;
1: - __le32 block;
1: + __le32 hash;
1: + __le32 block;
1: };
1:
1: struct dx_root_info {
1: - __le32 reserved_zero;
1: - u8 hash_version;
1: - u8 info_length;
1: - u8 indirect_levels;
1: - u8 unused_flags;
1: + __le32 reserved_zero;
1: + u8 hash_version;
1: + u8 info_length;
1: + u8 indirect_levels;
1: + u8 unused_flags;
1: };
1:
1: struct dx_root {
1: - struct fake_dirent dot;
1: - char dot_name[4];
1: - struct fake_dirent dotdot;
1: - char dotdot_name[4];
1: - struct dx_root_info info;
1: - struct dx_entry entries[0];
1: + struct fake_dirent dot;
1: + char dot_name[4];
1: + struct fake_dirent dotdot;
1: + char dotdot_name[4];
1: + struct dx_root_info info;
1: + struct dx_entry entries[0];
1: };
1:
1: struct dx_node {
1: - struct fake_dirent fake;
1: - struct dx_entry entries[0];
1: + struct fake_dirent fake;
1: + struct dx_entry entries[0];
1: };
1:
1: struct dx_frame {
1: - struct buffer_head *bh;
1: - struct dx_entry *entries;
1: - struct dx_entry *at;
1: + struct buffer_head *bh;
1: + struct dx_entry *entries;
1: + struct dx_entry *at;
1: };
1:
1: struct dx_map_entry {
1: - u32 hash;
1: - u16 offs;
1: - u16 size;
1: + u32 hash;
1: + u16 offs;
1: + u16 size;
1: };
1:
1: struct dx_tail {
1: - u32 dt_reserved;
1: - __le32 dt_checksum;
1: + u32 dt_reserved;
1: + __le32 dt_checksum;
1: };
1:
1: struct ext4_renament {
1: - struct inode *dir;
1: - struct dentry *dentry;
1: - struct inode *inode;
1: - bool is_dir;
1: - int dir_nlink_delta;
1: - struct buffer_head *bh;
1: - struct ext4_dir_entry_2 *de;
1: - int inlined;
1: - struct buffer_head *dir_bh;
1: - struct ext4_dir_entry_2 *parent_de;
1: - int dir_inlined;
1: + struct inode *dir;
1: + struct dentry *dentry;
1: + struct inode *inode;
1: + bool is_dir;
1: + int dir_nlink_delta;
1: + struct buffer_head *bh;
1: + struct ext4_dir_entry_2 *de;
1: + int inlined;
1: + struct buffer_head *dir_bh;
1: + struct ext4_dir_entry_2 *parent_de;
1: + int dir_inlined;
1: };
1:
1: enum bio_post_read_step {
1: - STEP_INITIAL = 0,
1: - STEP_DECRYPT = 1,
1: - STEP_VERITY = 2,
1: - STEP_MAX = 3,
1: + STEP_INITIAL = 0,
1: + STEP_DECRYPT = 1,
1: + STEP_VERITY = 2,
1: + STEP_MAX = 3,
1: };
1:
1: struct bio_post_read_ctx {
1: - struct bio *bio;
1: - struct work_struct work;
1: - unsigned int cur_step;
1: - unsigned int enabled_steps;
1: + struct bio *bio;
1: + struct work_struct work;
1: + unsigned int cur_step;
1: + unsigned int enabled_steps;
1: };
1:
1: enum {
1: - BLOCK_BITMAP = 0,
1: - INODE_BITMAP = 1,
1: - INODE_TABLE = 2,
1: - GROUP_TABLE_COUNT = 3,
1: + BLOCK_BITMAP = 0,
1: + INODE_BITMAP = 1,
1: + INODE_TABLE = 2,
1: + GROUP_TABLE_COUNT = 3,
1: };
1:
1: struct ext4_rcu_ptr {
1: - struct callback_head rcu;
1: - void *ptr;
1: + struct callback_head rcu;
1: + void *ptr;
1: };
1:
1: struct ext4_new_flex_group_data {
1: - struct ext4_new_group_data *groups;
1: - __u16 *bg_flags;
1: - ext4_group_t count;
1: + struct ext4_new_group_data *groups;
1: + __u16 *bg_flags;
1: + ext4_group_t count;
1: };
1:
1: enum stat_group {
1: - STAT_READ = 0,
1: - STAT_WRITE = 1,
1: - STAT_DISCARD = 2,
1: - STAT_FLUSH = 3,
1: - NR_STAT_GROUPS = 4,
1: + STAT_READ = 0,
1: + STAT_WRITE = 1,
1: + STAT_DISCARD = 2,
1: + STAT_FLUSH = 3,
1: + NR_STAT_GROUPS = 4,
1: };
1:
1: enum {
1: - I_DATA_SEM_NORMAL = 0,
1: - I_DATA_SEM_OTHER = 1,
1: - I_DATA_SEM_QUOTA = 2,
1: + I_DATA_SEM_NORMAL = 0,
1: + I_DATA_SEM_OTHER = 1,
1: + I_DATA_SEM_QUOTA = 2,
1: };
1:
1: struct ext4_lazy_init {
1: - long unsigned int li_state;
1: - struct list_head li_request_list;
1: - struct mutex li_list_mtx;
1: + long unsigned int li_state;
1: + struct list_head li_request_list;
1: + struct mutex li_list_mtx;
1: };
1:
1: struct ext4_journal_cb_entry {
1: - struct list_head jce_list;
1: - void (*jce_func)(struct super_block *, struct ext4_journal_cb_entry *, int);
1: + struct list_head jce_list;
1: + void (*jce_func)(struct super_block *, struct ext4_journal_cb_entry *, int);
1: };
1:
1: struct trace_event_raw_ext4_other_inode_update_time {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ino_t orig_ino;
1: - uid_t uid;
1: - gid_t gid;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t orig_ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_free_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - uid_t uid;
1: - gid_t gid;
1: - __u64 blocks;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u64 blocks;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_request_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t dir;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_allocate_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ino_t dir;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_evict_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int nlink;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int nlink;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_drop_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int drop;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int drop;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_nfs_commit_metadata {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mark_inode_dirty {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long unsigned int ip;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int ip;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_begin_ordered_truncate {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t new_size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t new_size;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__write_begin {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t pos;
1: - unsigned int len;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__write_end {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t pos;
1: - unsigned int len;
1: - unsigned int copied;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int copied;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_writepages {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long int nr_to_write;
1: - long int pages_skipped;
1: - loff_t range_start;
1: - loff_t range_end;
1: - long unsigned int writeback_index;
1: - int sync_mode;
1: - char for_kupdate;
1: - char range_cyclic;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char for_kupdate;
1: + char range_cyclic;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_da_write_pages {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long unsigned int first_page;
1: - long int nr_to_write;
1: - int sync_mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int first_page;
1: + long int nr_to_write;
1: + int sync_mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_da_write_pages_extent {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 lblk;
1: - __u32 len;
1: - __u32 flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 lblk;
1: + __u32 len;
1: + __u32 flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_writepages_result {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int ret;
1: - int pages_written;
1: - long int pages_skipped;
1: - long unsigned int writeback_index;
1: - int sync_mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + int pages_written;
1: + long int pages_skipped;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__page_op {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long unsigned int index;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_invalidatepage_op {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - long unsigned int index;
1: - unsigned int offset;
1: - unsigned int length;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_discard_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u64 blk;
1: - __u64 count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 blk;
1: + __u64 count;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__mb_new_pa {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 pa_pstart;
1: - __u64 pa_lstart;
1: - __u32 pa_len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 pa_pstart;
1: + __u64 pa_lstart;
1: + __u32 pa_len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mb_release_inode_pa {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 block;
1: - __u32 count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + __u32 count;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mb_release_group_pa {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u64 pa_pstart;
1: - __u32 pa_len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 pa_pstart;
1: + __u32 pa_len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_discard_preallocations {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - unsigned int len;
1: - unsigned int needed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + unsigned int needed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mb_discard_preallocations {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int needed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int needed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_request_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - unsigned int len;
1: - __u32 logical;
1: - __u32 lleft;
1: - __u32 lright;
1: - __u64 goal;
1: - __u64 pleft;
1: - __u64 pright;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_allocate_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 block;
1: - unsigned int len;
1: - __u32 logical;
1: - __u32 lleft;
1: - __u32 lright;
1: - __u64 goal;
1: - __u64 pleft;
1: - __u64 pright;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_free_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 block;
1: - long unsigned int count;
1: - int flags;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + long unsigned int count;
1: + int flags;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_sync_file_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ino_t parent;
1: - int datasync;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + int datasync;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_sync_file_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_sync_fs {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int wait;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int wait;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_alloc_da_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - unsigned int data_blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int data_blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mballoc_alloc {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u32 orig_logical;
1: - int orig_start;
1: - __u32 orig_group;
1: - int orig_len;
1: - __u32 goal_logical;
1: - int goal_start;
1: - __u32 goal_group;
1: - int goal_len;
1: - __u32 result_logical;
1: - int result_start;
1: - __u32 result_group;
1: - int result_len;
1: - __u16 found;
1: - __u16 groups;
1: - __u16 buddy;
1: - __u16 flags;
1: - __u16 tail;
1: - __u8 cr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 goal_logical;
1: + int goal_start;
1: + __u32 goal_group;
1: + int goal_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + __u16 found;
1: + __u16 groups;
1: + __u16 buddy;
1: + __u16 flags;
1: + __u16 tail;
1: + __u8 cr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_mballoc_prealloc {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u32 orig_logical;
1: - int orig_start;
1: - __u32 orig_group;
1: - int orig_len;
1: - __u32 result_logical;
1: - int result_start;
1: - __u32 result_group;
1: - int result_len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__mballoc {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int result_start;
1: - __u32 result_group;
1: - int result_len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_forget {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 block;
1: - int is_metadata;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + int is_metadata;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_da_update_reserve_space {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 i_blocks;
1: - int used_blocks;
1: - int reserved_data_blocks;
1: - int quota_claim;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int used_blocks;
1: + int reserved_data_blocks;
1: + int quota_claim;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_da_reserve_space {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 i_blocks;
1: - int reserved_data_blocks;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_da_release_space {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 i_blocks;
1: - int freed_blocks;
1: - int reserved_data_blocks;
1: - __u16 mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int freed_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__bitmap_load {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u32 group;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_read_block_bitmap_load {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u32 group;
1: - bool prefetch;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + bool prefetch;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_direct_IO_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t pos;
1: - long unsigned int len;
1: - int rw;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_direct_IO_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t pos;
1: - long unsigned int len;
1: - int rw;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__fallocate_mode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t offset;
1: - loff_t len;
1: - int mode;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + int mode;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fallocate_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t pos;
1: - unsigned int blocks;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int blocks;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_unlink_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ino_t parent;
1: - loff_t size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + loff_t size;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_unlink_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__truncate {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - __u64 blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_convert_to_initialized_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t m_lblk;
1: - unsigned int m_len;
1: - ext4_lblk_t u_lblk;
1: - unsigned int u_len;
1: - ext4_fsblk_t u_pblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_convert_to_initialized_fastpath {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t m_lblk;
1: - unsigned int m_len;
1: - ext4_lblk_t u_lblk;
1: - unsigned int u_len;
1: - ext4_fsblk_t u_pblk;
1: - ext4_lblk_t i_lblk;
1: - unsigned int i_len;
1: - ext4_fsblk_t i_pblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + ext4_lblk_t i_lblk;
1: + unsigned int i_len;
1: + ext4_fsblk_t i_pblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__map_blocks_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - unsigned int len;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__map_blocks_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - unsigned int flags;
1: - ext4_fsblk_t pblk;
1: - ext4_lblk_t lblk;
1: - unsigned int len;
1: - unsigned int mflags;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int flags;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int mflags;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_load_extent {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_fsblk_t pblk;
1: - ext4_lblk_t lblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_load_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_journal_start {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int ip;
1: - int blocks;
1: - int rsv_blocks;
1: - int revoke_creds;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + int rsv_blocks;
1: + int revoke_creds;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_journal_start_reserved {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int ip;
1: - int blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__trim {
1: - struct trace_entry ent;
1: - int dev_major;
1: - int dev_minor;
1: - __u32 group;
1: - int start;
1: - int len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int dev_major;
1: + int dev_minor;
1: + __u32 group;
1: + int start;
1: + int len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_handle_unwritten_extents {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - int flags;
1: - ext4_lblk_t lblk;
1: - ext4_fsblk_t pblk;
1: - unsigned int len;
1: - unsigned int allocated;
1: - ext4_fsblk_t newblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + unsigned int allocated;
1: + ext4_fsblk_t newblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_get_implied_cluster_alloc_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - unsigned int flags;
1: - ext4_lblk_t lblk;
1: - ext4_fsblk_t pblk;
1: - unsigned int len;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_put_in_cache {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - unsigned int len;
1: - ext4_fsblk_t start;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + ext4_fsblk_t start;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_in_cache {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_find_delalloc_range {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t from;
1: - ext4_lblk_t to;
1: - int reverse;
1: - int found;
1: - ext4_lblk_t found_blk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + int reverse;
1: + int found;
1: + ext4_lblk_t found_blk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_get_reserved_cluster_alloc {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - unsigned int len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_show_extent {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_fsblk_t pblk;
1: - ext4_lblk_t lblk;
1: - short unsigned int len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + short unsigned int len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_remove_blocks {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t from;
1: - ext4_lblk_t to;
1: - ext4_fsblk_t ee_pblk;
1: - ext4_lblk_t ee_lblk;
1: - short unsigned int ee_len;
1: - ext4_fsblk_t pc_pclu;
1: - ext4_lblk_t pc_lblk;
1: - int pc_state;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + ext4_fsblk_t ee_pblk;
1: + ext4_lblk_t ee_lblk;
1: + short unsigned int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_rm_leaf {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t start;
1: - ext4_lblk_t ee_lblk;
1: - ext4_fsblk_t ee_pblk;
1: - short int ee_len;
1: - ext4_fsblk_t pc_pclu;
1: - ext4_lblk_t pc_lblk;
1: - int pc_state;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t ee_lblk;
1: + ext4_fsblk_t ee_pblk;
1: + short int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_rm_idx {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_fsblk_t pblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_remove_space {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t start;
1: - ext4_lblk_t end;
1: - int depth;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_ext_remove_space_done {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t start;
1: - ext4_lblk_t end;
1: - int depth;
1: - ext4_fsblk_t pc_pclu;
1: - ext4_lblk_t pc_lblk;
1: - int pc_state;
1: - short unsigned int eh_entries;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + short unsigned int eh_entries;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__es_extent {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - ext4_lblk_t len;
1: - ext4_fsblk_t pblk;
1: - char status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_remove_extent {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t lblk;
1: - loff_t len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t lblk;
1: + loff_t len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_find_extent_range_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_find_extent_range_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - ext4_lblk_t len;
1: - ext4_fsblk_t pblk;
1: - char status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_lookup_extent_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_lookup_extent_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - ext4_lblk_t len;
1: - ext4_fsblk_t pblk;
1: - char status;
1: - int found;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + int found;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4__es_shrink_enter {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int nr_to_scan;
1: - int cache_cnt;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_to_scan;
1: + int cache_cnt;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_shrink_scan_exit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int nr_shrunk;
1: - int cache_cnt;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + int cache_cnt;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_collapse_range {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t offset;
1: - loff_t len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_insert_range {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - loff_t offset;
1: - loff_t len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_shrink {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int nr_shrunk;
1: - long long unsigned int scan_time;
1: - int nr_skipped;
1: - int retried;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + long long unsigned int scan_time;
1: + int nr_skipped;
1: + int retried;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_es_insert_delayed_block {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - ext4_lblk_t lblk;
1: - ext4_lblk_t len;
1: - ext4_fsblk_t pblk;
1: - char status;
1: - bool allocated;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + bool allocated;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fsmap_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - dev_t keydev;
1: - u32 agno;
1: - u64 bno;
1: - u64 len;
1: - u64 owner;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u32 agno;
1: + u64 bno;
1: + u64 len;
1: + u64 owner;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_getfsmap_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - dev_t keydev;
1: - u64 block;
1: - u64 len;
1: - u64 owner;
1: - u64 flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u64 block;
1: + u64 len;
1: + u64 owner;
1: + u64 flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_shutdown {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_error {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - const char *function;
1: - unsigned int line;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + const char *function;
1: + unsigned int line;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_prefetch_bitmaps {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u32 group;
1: - __u32 next;
1: - __u32 ios;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + __u32 next;
1: + __u32 ios;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_lazy_itable_init {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - __u32 group;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_replay_scan {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int error;
1: - int off;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int error;
1: + int off;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_replay {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int tag;
1: - int ino;
1: - int priv1;
1: - int priv2;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int tag;
1: + int ino;
1: + int priv1;
1: + int priv2;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_commit_start {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_commit_stop {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int nblks;
1: - int reason;
1: - int num_fc;
1: - int num_fc_ineligible;
1: - int nblks_agg;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nblks;
1: + int reason;
1: + int num_fc;
1: + int num_fc_ineligible;
1: + int nblks_agg;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_stats {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - struct ext4_sb_info *sbi;
1: - int count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + struct ext4_sb_info *sbi;
1: + int count;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_track_create {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int ino;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_track_link {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int ino;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_track_unlink {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int ino;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_track_inode {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int ino;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_ext4_fc_track_range {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int ino;
1: - long int start;
1: - long int end;
1: - int error;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + long int start;
1: + long int end;
1: + int error;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_ext4_other_inode_update_time {};
1: @@ -44568,13 +45172,15 @@ struct trace_event_data_offsets_ext4_fc_track_inode {};
1:
1: struct trace_event_data_offsets_ext4_fc_track_range {};
1:
1: -typedef void (*btf_trace_ext4_other_inode_update_time)(void *, struct inode *, ino_t);
1: +typedef void (*btf_trace_ext4_other_inode_update_time)(void *, struct inode *,
1: + ino_t);
1:
1: typedef void (*btf_trace_ext4_free_inode)(void *, struct inode *);
1:
1: typedef void (*btf_trace_ext4_request_inode)(void *, struct inode *, int);
1:
1: -typedef void (*btf_trace_ext4_allocate_inode)(void *, struct inode *, struct inode *, int);
1: +typedef void (*btf_trace_ext4_allocate_inode)(void *, struct inode *,
1: + struct inode *, int);
1:
1: typedef void (*btf_trace_ext4_evict_inode)(void *, struct inode *);
1:
1: @@ -44582,27 +45188,41 @@ typedef void (*btf_trace_ext4_drop_inode)(void *, struct inode *, int);
1:
1: typedef void (*btf_trace_ext4_nfs_commit_metadata)(void *, struct inode *);
1:
1: -typedef void (*btf_trace_ext4_mark_inode_dirty)(void *, struct inode *, long unsigned int);
1: +typedef void (*btf_trace_ext4_mark_inode_dirty)(void *, struct inode *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_begin_ordered_truncate)(void *, struct inode *, loff_t);
1: +typedef void (*btf_trace_ext4_begin_ordered_truncate)(void *, struct inode *,
1: + loff_t);
1:
1: -typedef void (*btf_trace_ext4_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_write_begin)(void *, struct inode *, loff_t,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_ext4_da_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_da_write_begin)(void *, struct inode *, loff_t,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_ext4_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_write_end)(void *, struct inode *, loff_t,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_ext4_journalled_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_journalled_write_end)(void *, struct inode *,
1: + loff_t, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_da_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_da_write_end)(void *, struct inode *, loff_t,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_ext4_writepages)(void *, struct inode *, struct writeback_control *);
1: +typedef void (*btf_trace_ext4_writepages)(void *, struct inode *,
1: + struct writeback_control *);
1:
1: -typedef void (*btf_trace_ext4_da_write_pages)(void *, struct inode *, long unsigned int, struct writeback_control *);
1: +typedef void (*btf_trace_ext4_da_write_pages)(void *, struct inode *,
1: + long unsigned int,
1: + struct writeback_control *);
1:
1: -typedef void (*btf_trace_ext4_da_write_pages_extent)(void *, struct inode *, struct ext4_map_blocks *);
1: +typedef void (*btf_trace_ext4_da_write_pages_extent)(void *, struct inode *,
1: + struct ext4_map_blocks *);
1:
1: -typedef void (*btf_trace_ext4_writepages_result)(void *, struct inode *, struct writeback_control *, int, int);
1: +typedef void (*btf_trace_ext4_writepages_result)(void *, struct inode *,
1: + struct writeback_control *,
1: + int, int);
1:
1: typedef void (*btf_trace_ext4_writepage)(void *, struct page *);
1:
1: @@ -44610,29 +45230,50 @@ typedef void (*btf_trace_ext4_readpage)(void *, struct page *);
1:
1: typedef void (*btf_trace_ext4_releasepage)(void *, struct page *);
1:
1: -typedef void (*btf_trace_ext4_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_invalidatepage)(void *, struct page *,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_ext4_journalled_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_journalled_invalidatepage)(void *, struct page *,
1: + unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_discard_blocks)(void *, struct super_block *, long long unsigned int, long long unsigned int);
1: +typedef void (*btf_trace_ext4_discard_blocks)(void *, struct super_block *,
1: + long long unsigned int,
1: + long long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_mb_new_inode_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +typedef void (*btf_trace_ext4_mb_new_inode_pa)(void *,
1: + struct ext4_allocation_context *,
1: + struct ext4_prealloc_space *);
1:
1: -typedef void (*btf_trace_ext4_mb_new_group_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +typedef void (*btf_trace_ext4_mb_new_group_pa)(void *,
1: + struct ext4_allocation_context *,
1: + struct ext4_prealloc_space *);
1:
1: -typedef void (*btf_trace_ext4_mb_release_inode_pa)(void *, struct ext4_prealloc_space *, long long unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_mb_release_inode_pa)(void *,
1: + struct ext4_prealloc_space *,
1: + long long unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_mb_release_group_pa)(void *, struct super_block *, struct ext4_prealloc_space *);
1: +typedef void (*btf_trace_ext4_mb_release_group_pa)(
1: + void *, struct super_block *, struct ext4_prealloc_space *);
1:
1: -typedef void (*btf_trace_ext4_discard_preallocations)(void *, struct inode *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_discard_preallocations)(void *, struct inode *,
1: + unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_mb_discard_preallocations)(void *, struct super_block *, int);
1: +typedef void (*btf_trace_ext4_mb_discard_preallocations)(void *,
1: + struct super_block *,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_request_blocks)(void *, struct ext4_allocation_request *);
1: +typedef void (*btf_trace_ext4_request_blocks)(void *,
1: + struct ext4_allocation_request *);
1:
1: -typedef void (*btf_trace_ext4_allocate_blocks)(void *, struct ext4_allocation_request *, long long unsigned int);
1: +typedef void (*btf_trace_ext4_allocate_blocks)(void *,
1: + struct ext4_allocation_request *,
1: + long long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_free_blocks)(void *, struct inode *, __u64, long unsigned int, int);
1: +typedef void (*btf_trace_ext4_free_blocks)(void *, struct inode *, __u64,
1: + long unsigned int, int);
1:
1: typedef void (*btf_trace_ext4_sync_file_enter)(void *, struct file *, int);
1:
1: @@ -44642,43 +45283,63 @@ typedef void (*btf_trace_ext4_sync_fs)(void *, struct super_block *, int);
1:
1: typedef void (*btf_trace_ext4_alloc_da_blocks)(void *, struct inode *);
1:
1: -typedef void (*btf_trace_ext4_mballoc_alloc)(void *, struct ext4_allocation_context *);
1: +typedef void (*btf_trace_ext4_mballoc_alloc)(void *,
1: + struct ext4_allocation_context *);
1:
1: -typedef void (*btf_trace_ext4_mballoc_prealloc)(void *, struct ext4_allocation_context *);
1: +typedef void (*btf_trace_ext4_mballoc_prealloc)(
1: + void *, struct ext4_allocation_context *);
1:
1: -typedef void (*btf_trace_ext4_mballoc_discard)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +typedef void (*btf_trace_ext4_mballoc_discard)(void *, struct super_block *,
1: + struct inode *, ext4_group_t,
1: + ext4_grpblk_t, ext4_grpblk_t);
1:
1: -typedef void (*btf_trace_ext4_mballoc_free)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +typedef void (*btf_trace_ext4_mballoc_free)(void *, struct super_block *,
1: + struct inode *, ext4_group_t,
1: + ext4_grpblk_t, ext4_grpblk_t);
1:
1: typedef void (*btf_trace_ext4_forget)(void *, struct inode *, int, __u64);
1:
1: -typedef void (*btf_trace_ext4_da_update_reserve_space)(void *, struct inode *, int, int);
1: +typedef void (*btf_trace_ext4_da_update_reserve_space)(void *, struct inode *,
1: + int, int);
1:
1: typedef void (*btf_trace_ext4_da_reserve_space)(void *, struct inode *);
1:
1: typedef void (*btf_trace_ext4_da_release_space)(void *, struct inode *, int);
1:
1: -typedef void (*btf_trace_ext4_mb_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +typedef void (*btf_trace_ext4_mb_bitmap_load)(void *, struct super_block *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_mb_buddy_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +typedef void (*btf_trace_ext4_mb_buddy_bitmap_load)(void *,
1: + struct super_block *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_load_inode_bitmap)(void *, struct super_block *, long unsigned int);
1: +typedef void (*btf_trace_ext4_load_inode_bitmap)(void *, struct super_block *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_read_block_bitmap_load)(void *, struct super_block *, long unsigned int, bool);
1: +typedef void (*btf_trace_ext4_read_block_bitmap_load)(void *,
1: + struct super_block *,
1: + long unsigned int, bool);
1:
1: -typedef void (*btf_trace_ext4_direct_IO_enter)(void *, struct inode *, loff_t, long unsigned int, int);
1: +typedef void (*btf_trace_ext4_direct_IO_enter)(void *, struct inode *, loff_t,
1: + long unsigned int, int);
1:
1: -typedef void (*btf_trace_ext4_direct_IO_exit)(void *, struct inode *, loff_t, long unsigned int, int, int);
1: +typedef void (*btf_trace_ext4_direct_IO_exit)(void *, struct inode *, loff_t,
1: + long unsigned int, int, int);
1:
1: -typedef void (*btf_trace_ext4_fallocate_enter)(void *, struct inode *, loff_t, loff_t, int);
1: +typedef void (*btf_trace_ext4_fallocate_enter)(void *, struct inode *, loff_t,
1: + loff_t, int);
1:
1: -typedef void (*btf_trace_ext4_punch_hole)(void *, struct inode *, loff_t, loff_t, int);
1: +typedef void (*btf_trace_ext4_punch_hole)(void *, struct inode *, loff_t,
1: + loff_t, int);
1:
1: -typedef void (*btf_trace_ext4_zero_range)(void *, struct inode *, loff_t, loff_t, int);
1: +typedef void (*btf_trace_ext4_zero_range)(void *, struct inode *, loff_t,
1: + loff_t, int);
1:
1: -typedef void (*btf_trace_ext4_fallocate_exit)(void *, struct inode *, loff_t, unsigned int, int);
1: +typedef void (*btf_trace_ext4_fallocate_exit)(void *, struct inode *, loff_t,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_ext4_unlink_enter)(void *, struct inode *, struct dentry *);
1: +typedef void (*btf_trace_ext4_unlink_enter)(void *, struct inode *,
1: + struct dentry *);
1:
1: typedef void (*btf_trace_ext4_unlink_exit)(void *, struct dentry *, int);
1:
1: @@ -44686,528 +45347,609 @@ typedef void (*btf_trace_ext4_truncate_enter)(void *, struct inode *);
1:
1: typedef void (*btf_trace_ext4_truncate_exit)(void *, struct inode *);
1:
1: -typedef void (*btf_trace_ext4_ext_convert_to_initialized_enter)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *);
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_enter)(
1: + void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *);
1:
1: -typedef void (*btf_trace_ext4_ext_convert_to_initialized_fastpath)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *, struct ext4_extent *);
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_fastpath)(
1: + void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *,
1: + struct ext4_extent *);
1:
1: -typedef void (*btf_trace_ext4_ext_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_ext_map_blocks_enter)(void *, struct inode *,
1: + ext4_lblk_t, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_ind_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +typedef void (*btf_trace_ext4_ind_map_blocks_enter)(void *, struct inode *,
1: + ext4_lblk_t, unsigned int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_ext_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +typedef void (*btf_trace_ext4_ext_map_blocks_exit)(void *, struct inode *,
1: + unsigned int,
1: + struct ext4_map_blocks *,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_ind_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +typedef void (*btf_trace_ext4_ind_map_blocks_exit)(void *, struct inode *,
1: + unsigned int,
1: + struct ext4_map_blocks *,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_ext_load_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t);
1: +typedef void (*btf_trace_ext4_ext_load_extent)(void *, struct inode *,
1: + ext4_lblk_t, ext4_fsblk_t);
1:
1: -typedef void (*btf_trace_ext4_load_inode)(void *, struct super_block *, long unsigned int);
1: +typedef void (*btf_trace_ext4_load_inode)(void *, struct super_block *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_journal_start)(void *, struct super_block *, int, int, int, long unsigned int);
1: +typedef void (*btf_trace_ext4_journal_start)(void *, struct super_block *, int,
1: + int, int, long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_journal_start_reserved)(void *, struct super_block *, int, long unsigned int);
1: +typedef void (*btf_trace_ext4_journal_start_reserved)(void *,
1: + struct super_block *, int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_trim_extent)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +typedef void (*btf_trace_ext4_trim_extent)(void *, struct super_block *,
1: + ext4_group_t, ext4_grpblk_t,
1: + ext4_grpblk_t);
1:
1: -typedef void (*btf_trace_ext4_trim_all_free)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +typedef void (*btf_trace_ext4_trim_all_free)(void *, struct super_block *,
1: + ext4_group_t, ext4_grpblk_t,
1: + ext4_grpblk_t);
1:
1: -typedef void (*btf_trace_ext4_ext_handle_unwritten_extents)(void *, struct inode *, struct ext4_map_blocks *, int, unsigned int, ext4_fsblk_t);
1: +typedef void (*btf_trace_ext4_ext_handle_unwritten_extents)(
1: + void *, struct inode *, struct ext4_map_blocks *, int, unsigned int,
1: + ext4_fsblk_t);
1:
1: -typedef void (*btf_trace_ext4_get_implied_cluster_alloc_exit)(void *, struct super_block *, struct ext4_map_blocks *, int);
1: +typedef void (*btf_trace_ext4_get_implied_cluster_alloc_exit)(
1: + void *, struct super_block *, struct ext4_map_blocks *, int);
1:
1: -typedef void (*btf_trace_ext4_ext_put_in_cache)(void *, struct inode *, ext4_lblk_t, unsigned int, ext4_fsblk_t);
1: +typedef void (*btf_trace_ext4_ext_put_in_cache)(void *, struct inode *,
1: + ext4_lblk_t, unsigned int,
1: + ext4_fsblk_t);
1:
1: -typedef void (*btf_trace_ext4_ext_in_cache)(void *, struct inode *, ext4_lblk_t, int);
1: +typedef void (*btf_trace_ext4_ext_in_cache)(void *, struct inode *, ext4_lblk_t,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_find_delalloc_range)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, int, ext4_lblk_t);
1: +typedef void (*btf_trace_ext4_find_delalloc_range)(void *, struct inode *,
1: + ext4_lblk_t, ext4_lblk_t,
1: + int, int, ext4_lblk_t);
1:
1: -typedef void (*btf_trace_ext4_get_reserved_cluster_alloc)(void *, struct inode *, ext4_lblk_t, unsigned int);
1: +typedef void (*btf_trace_ext4_get_reserved_cluster_alloc)(void *,
1: + struct inode *,
1: + ext4_lblk_t,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_ext_show_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t, short unsigned int);
1: +typedef void (*btf_trace_ext4_ext_show_extent)(void *, struct inode *,
1: + ext4_lblk_t, ext4_fsblk_t,
1: + short unsigned int);
1:
1: -typedef void (*btf_trace_ext4_remove_blocks)(void *, struct inode *, struct ext4_extent *, ext4_lblk_t, ext4_fsblk_t, struct partial_cluster *);
1: +typedef void (*btf_trace_ext4_remove_blocks)(void *, struct inode *,
1: + struct ext4_extent *, ext4_lblk_t,
1: + ext4_fsblk_t,
1: + struct partial_cluster *);
1:
1: -typedef void (*btf_trace_ext4_ext_rm_leaf)(void *, struct inode *, ext4_lblk_t, struct ext4_extent *, struct partial_cluster *);
1: +typedef void (*btf_trace_ext4_ext_rm_leaf)(void *, struct inode *, ext4_lblk_t,
1: + struct ext4_extent *,
1: + struct partial_cluster *);
1:
1: typedef void (*btf_trace_ext4_ext_rm_idx)(void *, struct inode *, ext4_fsblk_t);
1:
1: -typedef void (*btf_trace_ext4_ext_remove_space)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int);
1: +typedef void (*btf_trace_ext4_ext_remove_space)(void *, struct inode *,
1: + ext4_lblk_t, ext4_lblk_t, int);
1:
1: -typedef void (*btf_trace_ext4_ext_remove_space_done)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, struct partial_cluster *, __le16);
1: +typedef void (*btf_trace_ext4_ext_remove_space_done)(void *, struct inode *,
1: + ext4_lblk_t, ext4_lblk_t,
1: + int,
1: + struct partial_cluster *,
1: + __le16);
1:
1: -typedef void (*btf_trace_ext4_es_insert_extent)(void *, struct inode *, struct extent_status *);
1: +typedef void (*btf_trace_ext4_es_insert_extent)(void *, struct inode *,
1: + struct extent_status *);
1:
1: -typedef void (*btf_trace_ext4_es_cache_extent)(void *, struct inode *, struct extent_status *);
1: +typedef void (*btf_trace_ext4_es_cache_extent)(void *, struct inode *,
1: + struct extent_status *);
1:
1: -typedef void (*btf_trace_ext4_es_remove_extent)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t);
1: +typedef void (*btf_trace_ext4_es_remove_extent)(void *, struct inode *,
1: + ext4_lblk_t, ext4_lblk_t);
1:
1: -typedef void (*btf_trace_ext4_es_find_extent_range_enter)(void *, struct inode *, ext4_lblk_t);
1: +typedef void (*btf_trace_ext4_es_find_extent_range_enter)(void *,
1: + struct inode *,
1: + ext4_lblk_t);
1:
1: -typedef void (*btf_trace_ext4_es_find_extent_range_exit)(void *, struct inode *, struct extent_status *);
1: +typedef void (*btf_trace_ext4_es_find_extent_range_exit)(
1: + void *, struct inode *, struct extent_status *);
1:
1: -typedef void (*btf_trace_ext4_es_lookup_extent_enter)(void *, struct inode *, ext4_lblk_t);
1: +typedef void (*btf_trace_ext4_es_lookup_extent_enter)(void *, struct inode *,
1: + ext4_lblk_t);
1:
1: -typedef void (*btf_trace_ext4_es_lookup_extent_exit)(void *, struct inode *, struct extent_status *, int);
1: +typedef void (*btf_trace_ext4_es_lookup_extent_exit)(void *, struct inode *,
1: + struct extent_status *,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_es_shrink_count)(void *, struct super_block *, int, int);
1: +typedef void (*btf_trace_ext4_es_shrink_count)(void *, struct super_block *,
1: + int, int);
1:
1: -typedef void (*btf_trace_ext4_es_shrink_scan_enter)(void *, struct super_block *, int, int);
1: +typedef void (*btf_trace_ext4_es_shrink_scan_enter)(void *,
1: + struct super_block *, int,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_es_shrink_scan_exit)(void *, struct super_block *, int, int);
1: +typedef void (*btf_trace_ext4_es_shrink_scan_exit)(void *, struct super_block *,
1: + int, int);
1:
1: -typedef void (*btf_trace_ext4_collapse_range)(void *, struct inode *, loff_t, loff_t);
1: +typedef void (*btf_trace_ext4_collapse_range)(void *, struct inode *, loff_t,
1: + loff_t);
1:
1: -typedef void (*btf_trace_ext4_insert_range)(void *, struct inode *, loff_t, loff_t);
1: +typedef void (*btf_trace_ext4_insert_range)(void *, struct inode *, loff_t,
1: + loff_t);
1:
1: -typedef void (*btf_trace_ext4_es_shrink)(void *, struct super_block *, int, u64, int, int);
1: +typedef void (*btf_trace_ext4_es_shrink)(void *, struct super_block *, int, u64,
1: + int, int);
1:
1: -typedef void (*btf_trace_ext4_es_insert_delayed_block)(void *, struct inode *, struct extent_status *, bool);
1: +typedef void (*btf_trace_ext4_es_insert_delayed_block)(void *, struct inode *,
1: + struct extent_status *,
1: + bool);
1:
1: -typedef void (*btf_trace_ext4_fsmap_low_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +typedef void (*btf_trace_ext4_fsmap_low_key)(void *, struct super_block *, u32,
1: + u32, u64, u64, u64);
1:
1: -typedef void (*btf_trace_ext4_fsmap_high_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +typedef void (*btf_trace_ext4_fsmap_high_key)(void *, struct super_block *, u32,
1: + u32, u64, u64, u64);
1:
1: -typedef void (*btf_trace_ext4_fsmap_mapping)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +typedef void (*btf_trace_ext4_fsmap_mapping)(void *, struct super_block *, u32,
1: + u32, u64, u64, u64);
1:
1: -typedef void (*btf_trace_ext4_getfsmap_low_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +typedef void (*btf_trace_ext4_getfsmap_low_key)(void *, struct super_block *,
1: + struct ext4_fsmap *);
1:
1: -typedef void (*btf_trace_ext4_getfsmap_high_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +typedef void (*btf_trace_ext4_getfsmap_high_key)(void *, struct super_block *,
1: + struct ext4_fsmap *);
1:
1: -typedef void (*btf_trace_ext4_getfsmap_mapping)(void *, struct super_block *, struct ext4_fsmap *);
1: +typedef void (*btf_trace_ext4_getfsmap_mapping)(void *, struct super_block *,
1: + struct ext4_fsmap *);
1:
1: -typedef void (*btf_trace_ext4_shutdown)(void *, struct super_block *, long unsigned int);
1: +typedef void (*btf_trace_ext4_shutdown)(void *, struct super_block *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_ext4_error)(void *, struct super_block *, const char *, unsigned int);
1: +typedef void (*btf_trace_ext4_error)(void *, struct super_block *, const char *,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_prefetch_bitmaps)(void *, struct super_block *, ext4_group_t, ext4_group_t, unsigned int);
1: +typedef void (*btf_trace_ext4_prefetch_bitmaps)(void *, struct super_block *,
1: + ext4_group_t, ext4_group_t,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_ext4_lazy_itable_init)(void *, struct super_block *, ext4_group_t);
1: +typedef void (*btf_trace_ext4_lazy_itable_init)(void *, struct super_block *,
1: + ext4_group_t);
1:
1: -typedef void (*btf_trace_ext4_fc_replay_scan)(void *, struct super_block *, int, int);
1: +typedef void (*btf_trace_ext4_fc_replay_scan)(void *, struct super_block *, int,
1: + int);
1:
1: -typedef void (*btf_trace_ext4_fc_replay)(void *, struct super_block *, int, int, int, int);
1: +typedef void (*btf_trace_ext4_fc_replay)(void *, struct super_block *, int, int,
1: + int, int);
1:
1: typedef void (*btf_trace_ext4_fc_commit_start)(void *, struct super_block *);
1:
1: -typedef void (*btf_trace_ext4_fc_commit_stop)(void *, struct super_block *, int, int);
1: +typedef void (*btf_trace_ext4_fc_commit_stop)(void *, struct super_block *, int,
1: + int);
1:
1: typedef void (*btf_trace_ext4_fc_stats)(void *, struct super_block *);
1:
1: -typedef void (*btf_trace_ext4_fc_track_create)(void *, struct inode *, struct dentry *, int);
1: +typedef void (*btf_trace_ext4_fc_track_create)(void *, struct inode *,
1: + struct dentry *, int);
1:
1: -typedef void (*btf_trace_ext4_fc_track_link)(void *, struct inode *, struct dentry *, int);
1: +typedef void (*btf_trace_ext4_fc_track_link)(void *, struct inode *,
1: + struct dentry *, int);
1:
1: -typedef void (*btf_trace_ext4_fc_track_unlink)(void *, struct inode *, struct dentry *, int);
1: +typedef void (*btf_trace_ext4_fc_track_unlink)(void *, struct inode *,
1: + struct dentry *, int);
1:
1: typedef void (*btf_trace_ext4_fc_track_inode)(void *, struct inode *, int);
1:
1: -typedef void (*btf_trace_ext4_fc_track_range)(void *, struct inode *, long int, long int, int);
1: -
1: -enum {
1: - Opt_bsd_df = 0,
1: - Opt_minix_df = 1,
1: - Opt_grpid = 2,
1: - Opt_nogrpid = 3,
1: - Opt_resgid = 4,
1: - Opt_resuid = 5,
1: - Opt_sb = 6,
1: - Opt_err_cont = 7,
1: - Opt_err_panic = 8,
1: - Opt_err_ro = 9,
1: - Opt_nouid32 = 10,
1: - Opt_debug = 11,
1: - Opt_removed = 12,
1: - Opt_user_xattr = 13,
1: - Opt_nouser_xattr = 14,
1: - Opt_acl = 15,
1: - Opt_noacl = 16,
1: - Opt_auto_da_alloc = 17,
1: - Opt_noauto_da_alloc = 18,
1: - Opt_noload = 19,
1: - Opt_commit = 20,
1: - Opt_min_batch_time = 21,
1: - Opt_max_batch_time = 22,
1: - Opt_journal_dev = 23,
1: - Opt_journal_path = 24,
1: - Opt_journal_checksum = 25,
1: - Opt_journal_async_commit = 26,
1: - Opt_abort = 27,
1: - Opt_data_journal = 28,
1: - Opt_data_ordered = 29,
1: - Opt_data_writeback = 30,
1: - Opt_data_err_abort = 31,
1: - Opt_data_err_ignore = 32,
1: - Opt_test_dummy_encryption = 33,
1: - Opt_inlinecrypt = 34,
1: - Opt_usrjquota = 35,
1: - Opt_grpjquota = 36,
1: - Opt_offusrjquota = 37,
1: - Opt_offgrpjquota = 38,
1: - Opt_jqfmt_vfsold = 39,
1: - Opt_jqfmt_vfsv0 = 40,
1: - Opt_jqfmt_vfsv1 = 41,
1: - Opt_quota = 42,
1: - Opt_noquota = 43,
1: - Opt_barrier = 44,
1: - Opt_nobarrier = 45,
1: - Opt_err___2 = 46,
1: - Opt_usrquota = 47,
1: - Opt_grpquota = 48,
1: - Opt_prjquota = 49,
1: - Opt_i_version = 50,
1: - Opt_dax = 51,
1: - Opt_dax_always = 52,
1: - Opt_dax_inode = 53,
1: - Opt_dax_never = 54,
1: - Opt_stripe = 55,
1: - Opt_delalloc = 56,
1: - Opt_nodelalloc = 57,
1: - Opt_warn_on_error = 58,
1: - Opt_nowarn_on_error = 59,
1: - Opt_mblk_io_submit = 60,
1: - Opt_lazytime = 61,
1: - Opt_nolazytime = 62,
1: - Opt_debug_want_extra_isize = 63,
1: - Opt_nomblk_io_submit = 64,
1: - Opt_block_validity = 65,
1: - Opt_noblock_validity = 66,
1: - Opt_inode_readahead_blks = 67,
1: - Opt_journal_ioprio = 68,
1: - Opt_dioread_nolock = 69,
1: - Opt_dioread_lock = 70,
1: - Opt_discard = 71,
1: - Opt_nodiscard = 72,
1: - Opt_init_itable = 73,
1: - Opt_noinit_itable = 74,
1: - Opt_max_dir_size_kb = 75,
1: - Opt_nojournal_checksum = 76,
1: - Opt_nombcache = 77,
1: - Opt_prefetch_block_bitmaps = 78,
1: +typedef void (*btf_trace_ext4_fc_track_range)(void *, struct inode *, long int,
1: + long int, int);
1: +
1: +enum {
1: + Opt_bsd_df = 0,
1: + Opt_minix_df = 1,
1: + Opt_grpid = 2,
1: + Opt_nogrpid = 3,
1: + Opt_resgid = 4,
1: + Opt_resuid = 5,
1: + Opt_sb = 6,
1: + Opt_err_cont = 7,
1: + Opt_err_panic = 8,
1: + Opt_err_ro = 9,
1: + Opt_nouid32 = 10,
1: + Opt_debug = 11,
1: + Opt_removed = 12,
1: + Opt_user_xattr = 13,
1: + Opt_nouser_xattr = 14,
1: + Opt_acl = 15,
1: + Opt_noacl = 16,
1: + Opt_auto_da_alloc = 17,
1: + Opt_noauto_da_alloc = 18,
1: + Opt_noload = 19,
1: + Opt_commit = 20,
1: + Opt_min_batch_time = 21,
1: + Opt_max_batch_time = 22,
1: + Opt_journal_dev = 23,
1: + Opt_journal_path = 24,
1: + Opt_journal_checksum = 25,
1: + Opt_journal_async_commit = 26,
1: + Opt_abort = 27,
1: + Opt_data_journal = 28,
1: + Opt_data_ordered = 29,
1: + Opt_data_writeback = 30,
1: + Opt_data_err_abort = 31,
1: + Opt_data_err_ignore = 32,
1: + Opt_test_dummy_encryption = 33,
1: + Opt_inlinecrypt = 34,
1: + Opt_usrjquota = 35,
1: + Opt_grpjquota = 36,
1: + Opt_offusrjquota = 37,
1: + Opt_offgrpjquota = 38,
1: + Opt_jqfmt_vfsold = 39,
1: + Opt_jqfmt_vfsv0 = 40,
1: + Opt_jqfmt_vfsv1 = 41,
1: + Opt_quota = 42,
1: + Opt_noquota = 43,
1: + Opt_barrier = 44,
1: + Opt_nobarrier = 45,
1: + Opt_err___2 = 46,
1: + Opt_usrquota = 47,
1: + Opt_grpquota = 48,
1: + Opt_prjquota = 49,
1: + Opt_i_version = 50,
1: + Opt_dax = 51,
1: + Opt_dax_always = 52,
1: + Opt_dax_inode = 53,
1: + Opt_dax_never = 54,
1: + Opt_stripe = 55,
1: + Opt_delalloc = 56,
1: + Opt_nodelalloc = 57,
1: + Opt_warn_on_error = 58,
1: + Opt_nowarn_on_error = 59,
1: + Opt_mblk_io_submit = 60,
1: + Opt_lazytime = 61,
1: + Opt_nolazytime = 62,
1: + Opt_debug_want_extra_isize = 63,
1: + Opt_nomblk_io_submit = 64,
1: + Opt_block_validity = 65,
1: + Opt_noblock_validity = 66,
1: + Opt_inode_readahead_blks = 67,
1: + Opt_journal_ioprio = 68,
1: + Opt_dioread_nolock = 69,
1: + Opt_dioread_lock = 70,
1: + Opt_discard = 71,
1: + Opt_nodiscard = 72,
1: + Opt_init_itable = 73,
1: + Opt_noinit_itable = 74,
1: + Opt_max_dir_size_kb = 75,
1: + Opt_nojournal_checksum = 76,
1: + Opt_nombcache = 77,
1: + Opt_prefetch_block_bitmaps = 78,
1: };
1:
1: struct mount_opts {
1: - int token;
1: - int mount_opt;
1: - int flags;
1: + int token;
1: + int mount_opt;
1: + int flags;
1: };
1:
1: struct ext4_sb_encodings {
1: - __u16 magic;
1: - char *name;
1: - char *version;
1: + __u16 magic;
1: + char *name;
1: + char *version;
1: };
1:
1: struct ext4_mount_options {
1: - long unsigned int s_mount_opt;
1: - long unsigned int s_mount_opt2;
1: - kuid_t s_resuid;
1: - kgid_t s_resgid;
1: - long unsigned int s_commit_interval;
1: - u32 s_min_batch_time;
1: - u32 s_max_batch_time;
1: - int s_jquota_fmt;
1: - char *s_qf_names[3];
1: -};
1: -
1: -enum {
1: - attr_noop = 0,
1: - attr_delayed_allocation_blocks = 1,
1: - attr_session_write_kbytes = 2,
1: - attr_lifetime_write_kbytes = 3,
1: - attr_reserved_clusters = 4,
1: - attr_inode_readahead = 5,
1: - attr_trigger_test_error = 6,
1: - attr_first_error_time = 7,
1: - attr_last_error_time = 8,
1: - attr_feature = 9,
1: - attr_pointer_ui = 10,
1: - attr_pointer_ul = 11,
1: - attr_pointer_u64 = 12,
1: - attr_pointer_u8 = 13,
1: - attr_pointer_string = 14,
1: - attr_pointer_atomic = 15,
1: - attr_journal_task = 16,
1: -};
1: -
1: -enum {
1: - ptr_explicit = 0,
1: - ptr_ext4_sb_info_offset = 1,
1: - ptr_ext4_super_block_offset = 2,
1: + long unsigned int s_mount_opt;
1: + long unsigned int s_mount_opt2;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + long unsigned int s_commit_interval;
1: + u32 s_min_batch_time;
1: + u32 s_max_batch_time;
1: + int s_jquota_fmt;
1: + char *s_qf_names[3];
1: +};
1: +
1: +enum {
1: + attr_noop = 0,
1: + attr_delayed_allocation_blocks = 1,
1: + attr_session_write_kbytes = 2,
1: + attr_lifetime_write_kbytes = 3,
1: + attr_reserved_clusters = 4,
1: + attr_inode_readahead = 5,
1: + attr_trigger_test_error = 6,
1: + attr_first_error_time = 7,
1: + attr_last_error_time = 8,
1: + attr_feature = 9,
1: + attr_pointer_ui = 10,
1: + attr_pointer_ul = 11,
1: + attr_pointer_u64 = 12,
1: + attr_pointer_u8 = 13,
1: + attr_pointer_string = 14,
1: + attr_pointer_atomic = 15,
1: + attr_journal_task = 16,
1: +};
1: +
1: +enum {
1: + ptr_explicit = 0,
1: + ptr_ext4_sb_info_offset = 1,
1: + ptr_ext4_super_block_offset = 2,
1: };
1:
1: struct ext4_attr {
1: - struct attribute attr;
1: - short int attr_id;
1: - short int attr_ptr;
1: - short unsigned int attr_size;
1: - union {
1: - int offset;
1: - void *explicit_ptr;
1: - } u;
1: + struct attribute attr;
1: + short int attr_id;
1: + short int attr_ptr;
1: + short unsigned int attr_size;
1: + union {
1: + int offset;
1: + void *explicit_ptr;
1: + } u;
1: };
1:
1: struct ext4_xattr_header {
1: - __le32 h_magic;
1: - __le32 h_refcount;
1: - __le32 h_blocks;
1: - __le32 h_hash;
1: - __le32 h_checksum;
1: - __u32 h_reserved[3];
1: + __le32 h_magic;
1: + __le32 h_refcount;
1: + __le32 h_blocks;
1: + __le32 h_hash;
1: + __le32 h_checksum;
1: + __u32 h_reserved[3];
1: };
1:
1: struct ext4_xattr_block_find {
1: - struct ext4_xattr_search s;
1: - struct buffer_head *bh;
1: + struct ext4_xattr_search s;
1: + struct buffer_head *bh;
1: };
1:
1: struct ext4_fc_tl {
1: - __le16 fc_tag;
1: - __le16 fc_len;
1: + __le16 fc_tag;
1: + __le16 fc_len;
1: };
1:
1: struct ext4_fc_head {
1: - __le32 fc_features;
1: - __le32 fc_tid;
1: + __le32 fc_features;
1: + __le32 fc_tid;
1: };
1:
1: struct ext4_fc_add_range {
1: - __le32 fc_ino;
1: - __u8 fc_ex[12];
1: + __le32 fc_ino;
1: + __u8 fc_ex[12];
1: };
1:
1: struct ext4_fc_del_range {
1: - __le32 fc_ino;
1: - __le32 fc_lblk;
1: - __le32 fc_len;
1: + __le32 fc_ino;
1: + __le32 fc_lblk;
1: + __le32 fc_len;
1: };
1:
1: struct ext4_fc_dentry_info {
1: - __le32 fc_parent_ino;
1: - __le32 fc_ino;
1: - u8 fc_dname[0];
1: + __le32 fc_parent_ino;
1: + __le32 fc_ino;
1: + u8 fc_dname[0];
1: };
1:
1: struct ext4_fc_inode {
1: - __le32 fc_ino;
1: - __u8 fc_raw_inode[0];
1: + __le32 fc_ino;
1: + __u8 fc_raw_inode[0];
1: };
1:
1: struct ext4_fc_tail {
1: - __le32 fc_tid;
1: - __le32 fc_crc;
1: + __le32 fc_tid;
1: + __le32 fc_crc;
1: };
1:
1: struct ext4_fc_dentry_update {
1: - int fcd_op;
1: - int fcd_parent;
1: - int fcd_ino;
1: - struct qstr fcd_name;
1: - unsigned char fcd_iname[32];
1: - struct list_head fcd_list;
1: + int fcd_op;
1: + int fcd_parent;
1: + int fcd_ino;
1: + struct qstr fcd_name;
1: + unsigned char fcd_iname[32];
1: + struct list_head fcd_list;
1: };
1:
1: struct __track_dentry_update_args {
1: - struct dentry *dentry;
1: - int op;
1: + struct dentry *dentry;
1: + int op;
1: };
1:
1: struct __track_range_args {
1: - ext4_lblk_t start;
1: - ext4_lblk_t end;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: };
1:
1: struct dentry_info_args {
1: - int parent_ino;
1: - int dname_len;
1: - int ino;
1: - int inode_len;
1: - char *dname;
1: + int parent_ino;
1: + int dname_len;
1: + int ino;
1: + int inode_len;
1: + char *dname;
1: };
1:
1: typedef struct {
1: - __le16 e_tag;
1: - __le16 e_perm;
1: - __le32 e_id;
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: } ext4_acl_entry;
1:
1: typedef struct {
1: - __le32 a_version;
1: + __le32 a_version;
1: } ext4_acl_header;
1:
1: struct commit_header {
1: - __be32 h_magic;
1: - __be32 h_blocktype;
1: - __be32 h_sequence;
1: - unsigned char h_chksum_type;
1: - unsigned char h_chksum_size;
1: - unsigned char h_padding[2];
1: - __be32 h_chksum[8];
1: - __be64 h_commit_sec;
1: - __be32 h_commit_nsec;
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: + unsigned char h_chksum_type;
1: + unsigned char h_chksum_size;
1: + unsigned char h_padding[2];
1: + __be32 h_chksum[8];
1: + __be64 h_commit_sec;
1: + __be32 h_commit_nsec;
1: };
1:
1: struct journal_block_tag3_s {
1: - __be32 t_blocknr;
1: - __be32 t_flags;
1: - __be32 t_blocknr_high;
1: - __be32 t_checksum;
1: + __be32 t_blocknr;
1: + __be32 t_flags;
1: + __be32 t_blocknr_high;
1: + __be32 t_checksum;
1: };
1:
1: typedef struct journal_block_tag3_s journal_block_tag3_t;
1:
1: struct journal_block_tag_s {
1: - __be32 t_blocknr;
1: - __be16 t_checksum;
1: - __be16 t_flags;
1: - __be32 t_blocknr_high;
1: + __be32 t_blocknr;
1: + __be16 t_checksum;
1: + __be16 t_flags;
1: + __be32 t_blocknr_high;
1: };
1:
1: typedef struct journal_block_tag_s journal_block_tag_t;
1:
1: struct jbd2_journal_block_tail {
1: - __be32 t_checksum;
1: + __be32 t_checksum;
1: };
1:
1: struct jbd2_journal_revoke_header_s {
1: - journal_header_t r_header;
1: - __be32 r_count;
1: + journal_header_t r_header;
1: + __be32 r_count;
1: };
1:
1: typedef struct jbd2_journal_revoke_header_s jbd2_journal_revoke_header_t;
1:
1: struct recovery_info {
1: - tid_t start_transaction;
1: - tid_t end_transaction;
1: - int nr_replays;
1: - int nr_revokes;
1: - int nr_revoke_hits;
1: + tid_t start_transaction;
1: + tid_t end_transaction;
1: + int nr_replays;
1: + int nr_revokes;
1: + int nr_revoke_hits;
1: };
1:
1: struct jbd2_revoke_table_s {
1: - int hash_size;
1: - int hash_shift;
1: - struct list_head *hash_table;
1: + int hash_size;
1: + int hash_shift;
1: + struct list_head *hash_table;
1: };
1:
1: struct jbd2_revoke_record_s {
1: - struct list_head hash;
1: - tid_t sequence;
1: - long long unsigned int blocknr;
1: + struct list_head hash;
1: + tid_t sequence;
1: + long long unsigned int blocknr;
1: };
1:
1: struct trace_event_raw_jbd2_checkpoint {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int result;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_commit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - char sync_commit;
1: - int transaction;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_end_commit {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - char sync_commit;
1: - int transaction;
1: - int head;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + int head;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_submit_inode_data {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - ino_t ino;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_handle_start_class {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int tid;
1: - unsigned int type;
1: - unsigned int line_no;
1: - int requested_blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int requested_blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_handle_extend {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int tid;
1: - unsigned int type;
1: - unsigned int line_no;
1: - int buffer_credits;
1: - int requested_blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int buffer_credits;
1: + int requested_blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_handle_stats {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int tid;
1: - unsigned int type;
1: - unsigned int line_no;
1: - int interval;
1: - int sync;
1: - int requested_blocks;
1: - int dirtied_blocks;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int interval;
1: + int sync;
1: + int requested_blocks;
1: + int dirtied_blocks;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_run_stats {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int tid;
1: - long unsigned int wait;
1: - long unsigned int request_delay;
1: - long unsigned int running;
1: - long unsigned int locked;
1: - long unsigned int flushing;
1: - long unsigned int logging;
1: - __u32 handle_count;
1: - __u32 blocks;
1: - __u32 blocks_logged;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int wait;
1: + long unsigned int request_delay;
1: + long unsigned int running;
1: + long unsigned int locked;
1: + long unsigned int flushing;
1: + long unsigned int logging;
1: + __u32 handle_count;
1: + __u32 blocks;
1: + __u32 blocks_logged;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_checkpoint_stats {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int tid;
1: - long unsigned int chp_time;
1: - __u32 forced_to_close;
1: - __u32 written;
1: - __u32 dropped;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int chp_time;
1: + __u32 forced_to_close;
1: + __u32 written;
1: + __u32 dropped;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_update_log_tail {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - tid_t tail_sequence;
1: - tid_t first_tid;
1: - long unsigned int block_nr;
1: - long unsigned int freed;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + tid_t tail_sequence;
1: + tid_t first_tid;
1: + long unsigned int block_nr;
1: + long unsigned int freed;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_write_superblock {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int write_op;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int write_op;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_jbd2_lock_buffer_stall {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - long unsigned int stall_ms;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int stall_ms;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_jbd2_checkpoint {};
1: @@ -45236,93 +45978,109 @@ struct trace_event_data_offsets_jbd2_lock_buffer_stall {};
1:
1: typedef void (*btf_trace_jbd2_checkpoint)(void *, journal_t *, int);
1:
1: -typedef void (*btf_trace_jbd2_start_commit)(void *, journal_t *, transaction_t *);
1: +typedef void (*btf_trace_jbd2_start_commit)(void *, journal_t *,
1: + transaction_t *);
1:
1: -typedef void (*btf_trace_jbd2_commit_locking)(void *, journal_t *, transaction_t *);
1: +typedef void (*btf_trace_jbd2_commit_locking)(void *, journal_t *,
1: + transaction_t *);
1:
1: -typedef void (*btf_trace_jbd2_commit_flushing)(void *, journal_t *, transaction_t *);
1: +typedef void (*btf_trace_jbd2_commit_flushing)(void *, journal_t *,
1: + transaction_t *);
1:
1: -typedef void (*btf_trace_jbd2_commit_logging)(void *, journal_t *, transaction_t *);
1: +typedef void (*btf_trace_jbd2_commit_logging)(void *, journal_t *,
1: + transaction_t *);
1:
1: -typedef void (*btf_trace_jbd2_drop_transaction)(void *, journal_t *, transaction_t *);
1: +typedef void (*btf_trace_jbd2_drop_transaction)(void *, journal_t *,
1: + transaction_t *);
1:
1: typedef void (*btf_trace_jbd2_end_commit)(void *, journal_t *, transaction_t *);
1:
1: typedef void (*btf_trace_jbd2_submit_inode_data)(void *, struct inode *);
1:
1: -typedef void (*btf_trace_jbd2_handle_start)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +typedef void (*btf_trace_jbd2_handle_start)(void *, dev_t, long unsigned int,
1: + unsigned int, unsigned int, int);
1:
1: -typedef void (*btf_trace_jbd2_handle_restart)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +typedef void (*btf_trace_jbd2_handle_restart)(void *, dev_t, long unsigned int,
1: + unsigned int, unsigned int, int);
1:
1: -typedef void (*btf_trace_jbd2_handle_extend)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int);
1: +typedef void (*btf_trace_jbd2_handle_extend)(void *, dev_t, long unsigned int,
1: + unsigned int, unsigned int, int,
1: + int);
1:
1: -typedef void (*btf_trace_jbd2_handle_stats)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int, int, int);
1: +typedef void (*btf_trace_jbd2_handle_stats)(void *, dev_t, long unsigned int,
1: + unsigned int, unsigned int, int,
1: + int, int, int);
1:
1: -typedef void (*btf_trace_jbd2_run_stats)(void *, dev_t, long unsigned int, struct transaction_run_stats_s *);
1: +typedef void (*btf_trace_jbd2_run_stats)(void *, dev_t, long unsigned int,
1: + struct transaction_run_stats_s *);
1:
1: -typedef void (*btf_trace_jbd2_checkpoint_stats)(void *, dev_t, long unsigned int, struct transaction_chp_stats_s *);
1: +typedef void (*btf_trace_jbd2_checkpoint_stats)(
1: + void *, dev_t, long unsigned int, struct transaction_chp_stats_s *);
1:
1: -typedef void (*btf_trace_jbd2_update_log_tail)(void *, journal_t *, tid_t, long unsigned int, long unsigned int);
1: +typedef void (*btf_trace_jbd2_update_log_tail)(void *, journal_t *, tid_t,
1: + long unsigned int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_jbd2_write_superblock)(void *, journal_t *, int);
1:
1: -typedef void (*btf_trace_jbd2_lock_buffer_stall)(void *, dev_t, long unsigned int);
1: +typedef void (*btf_trace_jbd2_lock_buffer_stall)(void *, dev_t,
1: + long unsigned int);
1:
1: struct jbd2_stats_proc_session {
1: - journal_t *journal;
1: - struct transaction_stats_s *stats;
1: - int start;
1: - int max;
1: + journal_t *journal;
1: + struct transaction_stats_s *stats;
1: + int start;
1: + int max;
1: };
1:
1: struct ramfs_mount_opts {
1: - umode_t mode;
1: + umode_t mode;
1: };
1:
1: struct ramfs_fs_info {
1: - struct ramfs_mount_opts mount_opts;
1: + struct ramfs_mount_opts mount_opts;
1: };
1:
1: enum ramfs_param {
1: - Opt_mode___3 = 0,
1: + Opt_mode___3 = 0,
1: };
1:
1: enum hugetlbfs_size_type {
1: - NO_SIZE = 0,
1: - SIZE_STD = 1,
1: - SIZE_PERCENT = 2,
1: + NO_SIZE = 0,
1: + SIZE_STD = 1,
1: + SIZE_PERCENT = 2,
1: };
1:
1: struct hugetlbfs_fs_context {
1: - struct hstate *hstate;
1: - long long unsigned int max_size_opt;
1: - long long unsigned int min_size_opt;
1: - long int max_hpages;
1: - long int nr_inodes;
1: - long int min_hpages;
1: - enum hugetlbfs_size_type max_val_type;
1: - enum hugetlbfs_size_type min_val_type;
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: + struct hstate *hstate;
1: + long long unsigned int max_size_opt;
1: + long long unsigned int min_size_opt;
1: + long int max_hpages;
1: + long int nr_inodes;
1: + long int min_hpages;
1: + enum hugetlbfs_size_type max_val_type;
1: + enum hugetlbfs_size_type min_val_type;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: };
1:
1: enum hugetlb_param {
1: - Opt_gid___4 = 0,
1: - Opt_min_size = 1,
1: - Opt_mode___4 = 2,
1: - Opt_nr_inodes___2 = 3,
1: - Opt_pagesize = 4,
1: - Opt_size___2 = 5,
1: - Opt_uid___3 = 6,
1: + Opt_gid___4 = 0,
1: + Opt_min_size = 1,
1: + Opt_mode___4 = 2,
1: + Opt_nr_inodes___2 = 3,
1: + Opt_pagesize = 4,
1: + Opt_size___2 = 5,
1: + Opt_uid___3 = 6,
1: };
1:
1: struct getdents_callback___2 {
1: - struct dir_context ctx;
1: - char *name;
1: - u64 ino;
1: - int found;
1: - int sequence;
1: + struct dir_context ctx;
1: + char *name;
1: + u64 ino;
1: + int found;
1: + int sequence;
1: };
1:
1: typedef u16 wchar_t;
1: @@ -45330,289 +46088,289 @@ typedef u16 wchar_t;
1: typedef u32 unicode_t;
1:
1: struct nls_table {
1: - const char *charset;
1: - const char *alias;
1: - int (*uni2char)(wchar_t, unsigned char *, int);
1: - int (*char2uni)(const unsigned char *, int, wchar_t *);
1: - const unsigned char *charset2lower;
1: - const unsigned char *charset2upper;
1: - struct module *owner;
1: - struct nls_table *next;
1: + const char *charset;
1: + const char *alias;
1: + int (*uni2char)(wchar_t, unsigned char *, int);
1: + int (*char2uni)(const unsigned char *, int, wchar_t *);
1: + const unsigned char *charset2lower;
1: + const unsigned char *charset2upper;
1: + struct module *owner;
1: + struct nls_table *next;
1: };
1:
1: enum utf16_endian {
1: - UTF16_HOST_ENDIAN = 0,
1: - UTF16_LITTLE_ENDIAN = 1,
1: - UTF16_BIG_ENDIAN = 2,
1: + UTF16_HOST_ENDIAN = 0,
1: + UTF16_LITTLE_ENDIAN = 1,
1: + UTF16_BIG_ENDIAN = 2,
1: };
1:
1: struct utf8_table {
1: - int cmask;
1: - int cval;
1: - int shift;
1: - long int lmask;
1: - long int lval;
1: + int cmask;
1: + int cval;
1: + int shift;
1: + long int lmask;
1: + long int lval;
1: };
1:
1: struct utf8data;
1:
1: struct utf8cursor {
1: - const struct utf8data *data;
1: - const char *s;
1: - const char *p;
1: - const char *ss;
1: - const char *sp;
1: - unsigned int len;
1: - unsigned int slen;
1: - short int ccc;
1: - short int nccc;
1: - unsigned char hangul[12];
1: + const struct utf8data *data;
1: + const char *s;
1: + const char *p;
1: + const char *ss;
1: + const char *sp;
1: + unsigned int len;
1: + unsigned int slen;
1: + short int ccc;
1: + short int nccc;
1: + unsigned char hangul[12];
1: };
1:
1: struct utf8data {
1: - unsigned int maxage;
1: - unsigned int offset;
1: + unsigned int maxage;
1: + unsigned int offset;
1: };
1:
1: typedef const unsigned char utf8trie_t;
1:
1: typedef const unsigned char utf8leaf_t;
1:
1: -typedef struct vfsmount * (*debugfs_automount_t)(struct dentry *, void *);
1: +typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
1:
1: struct debugfs_fsdata {
1: - const struct file_operations *real_fops;
1: - refcount_t active_users;
1: - struct completion active_users_drained;
1: + const struct file_operations *real_fops;
1: + refcount_t active_users;
1: + struct completion active_users_drained;
1: };
1:
1: struct debugfs_mount_opts {
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: };
1:
1: enum {
1: - Opt_uid___4 = 0,
1: - Opt_gid___5 = 1,
1: - Opt_mode___5 = 2,
1: - Opt_err___3 = 3,
1: + Opt_uid___4 = 0,
1: + Opt_gid___5 = 1,
1: + Opt_mode___5 = 2,
1: + Opt_err___3 = 3,
1: };
1:
1: struct debugfs_fs_info {
1: - struct debugfs_mount_opts mount_opts;
1: + struct debugfs_mount_opts mount_opts;
1: };
1:
1: struct debugfs_blob_wrapper {
1: - void *data;
1: - long unsigned int size;
1: + void *data;
1: + long unsigned int size;
1: };
1:
1: struct debugfs_reg32 {
1: - char *name;
1: - long unsigned int offset;
1: + char *name;
1: + long unsigned int offset;
1: };
1:
1: struct debugfs_regset32 {
1: - const struct debugfs_reg32 *regs;
1: - int nregs;
1: - void *base;
1: - struct device *dev;
1: + const struct debugfs_reg32 *regs;
1: + int nregs;
1: + void *base;
1: + struct device *dev;
1: };
1:
1: struct debugfs_u32_array {
1: - u32 *array;
1: - u32 n_elements;
1: + u32 *array;
1: + u32 n_elements;
1: };
1:
1: struct debugfs_devm_entry {
1: - int (*read)(struct seq_file *, void *);
1: - struct device *dev;
1: + int (*read)(struct seq_file *, void *);
1: + struct device *dev;
1: };
1:
1: struct tracefs_dir_ops {
1: - int (*mkdir)(const char *);
1: - int (*rmdir)(const char *);
1: + int (*mkdir)(const char *);
1: + int (*rmdir)(const char *);
1: };
1:
1: struct tracefs_mount_opts {
1: - kuid_t uid;
1: - kgid_t gid;
1: - umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: };
1:
1: struct tracefs_fs_info {
1: - struct tracefs_mount_opts mount_opts;
1: + struct tracefs_mount_opts mount_opts;
1: };
1:
1: enum pstore_type_id {
1: - PSTORE_TYPE_DMESG = 0,
1: - PSTORE_TYPE_MCE = 1,
1: - PSTORE_TYPE_CONSOLE = 2,
1: - PSTORE_TYPE_FTRACE = 3,
1: - PSTORE_TYPE_PPC_RTAS = 4,
1: - PSTORE_TYPE_PPC_OF = 5,
1: - PSTORE_TYPE_PPC_COMMON = 6,
1: - PSTORE_TYPE_PMSG = 7,
1: - PSTORE_TYPE_PPC_OPAL = 8,
1: - PSTORE_TYPE_MAX = 9,
1: + PSTORE_TYPE_DMESG = 0,
1: + PSTORE_TYPE_MCE = 1,
1: + PSTORE_TYPE_CONSOLE = 2,
1: + PSTORE_TYPE_FTRACE = 3,
1: + PSTORE_TYPE_PPC_RTAS = 4,
1: + PSTORE_TYPE_PPC_OF = 5,
1: + PSTORE_TYPE_PPC_COMMON = 6,
1: + PSTORE_TYPE_PMSG = 7,
1: + PSTORE_TYPE_PPC_OPAL = 8,
1: + PSTORE_TYPE_MAX = 9,
1: };
1:
1: struct pstore_info;
1:
1: struct pstore_record {
1: - struct pstore_info *psi;
1: - enum pstore_type_id type;
1: - u64 id;
1: - struct timespec64 time;
1: - char *buf;
1: - ssize_t size;
1: - ssize_t ecc_notice_size;
1: - int count;
1: - enum kmsg_dump_reason reason;
1: - unsigned int part;
1: - bool compressed;
1: + struct pstore_info *psi;
1: + enum pstore_type_id type;
1: + u64 id;
1: + struct timespec64 time;
1: + char *buf;
1: + ssize_t size;
1: + ssize_t ecc_notice_size;
1: + int count;
1: + enum kmsg_dump_reason reason;
1: + unsigned int part;
1: + bool compressed;
1: };
1:
1: struct pstore_info {
1: - struct module *owner;
1: - const char *name;
1: - struct semaphore buf_lock;
1: - char *buf;
1: - size_t bufsize;
1: - struct mutex read_mutex;
1: - int flags;
1: - int max_reason;
1: - void *data;
1: - int (*open)(struct pstore_info *);
1: - int (*close)(struct pstore_info *);
1: - ssize_t (*read)(struct pstore_record *);
1: - int (*write)(struct pstore_record *);
1: - int (*write_user)(struct pstore_record *, const char *);
1: - int (*erase)(struct pstore_record *);
1: + struct module *owner;
1: + const char *name;
1: + struct semaphore buf_lock;
1: + char *buf;
1: + size_t bufsize;
1: + struct mutex read_mutex;
1: + int flags;
1: + int max_reason;
1: + void *data;
1: + int (*open)(struct pstore_info *);
1: + int (*close)(struct pstore_info *);
1: + ssize_t (*read)(struct pstore_record *);
1: + int (*write)(struct pstore_record *);
1: + int (*write_user)(struct pstore_record *, const char *);
1: + int (*erase)(struct pstore_record *);
1: };
1:
1: struct pstore_ftrace_record {
1: - long unsigned int ip;
1: - long unsigned int parent_ip;
1: - u64 ts;
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: + u64 ts;
1: };
1:
1: struct pstore_private {
1: - struct list_head list;
1: - struct dentry *dentry;
1: - struct pstore_record *record;
1: - size_t total_size;
1: + struct list_head list;
1: + struct dentry *dentry;
1: + struct pstore_record *record;
1: + size_t total_size;
1: };
1:
1: struct pstore_ftrace_seq_data {
1: - const void *ptr;
1: - size_t off;
1: - size_t size;
1: + const void *ptr;
1: + size_t off;
1: + size_t size;
1: };
1:
1: enum {
1: - Opt_kmsg_bytes = 0,
1: - Opt_err___4 = 1,
1: + Opt_kmsg_bytes = 0,
1: + Opt_err___4 = 1,
1: };
1:
1: struct pstore_zbackend {
1: - int (*zbufsize)(size_t);
1: - const char *name;
1: + int (*zbufsize)(size_t);
1: + const char *name;
1: };
1:
1: typedef s32 compat_key_t;
1:
1: struct ipc64_perm {
1: - __kernel_key_t key;
1: - __kernel_uid32_t uid;
1: - __kernel_gid32_t gid;
1: - __kernel_uid32_t cuid;
1: - __kernel_gid32_t cgid;
1: - __kernel_mode_t mode;
1: - unsigned char __pad1[0];
1: - short unsigned int seq;
1: - short unsigned int __pad2;
1: - __kernel_ulong_t __unused1;
1: - __kernel_ulong_t __unused2;
1: + __kernel_key_t key;
1: + __kernel_uid32_t uid;
1: + __kernel_gid32_t gid;
1: + __kernel_uid32_t cuid;
1: + __kernel_gid32_t cgid;
1: + __kernel_mode_t mode;
1: + unsigned char __pad1[0];
1: + short unsigned int seq;
1: + short unsigned int __pad2;
1: + __kernel_ulong_t __unused1;
1: + __kernel_ulong_t __unused2;
1: };
1:
1: typedef u32 __compat_gid32_t;
1:
1: struct compat_ipc64_perm {
1: - compat_key_t key;
1: - __compat_uid32_t uid;
1: - __compat_gid32_t gid;
1: - __compat_uid32_t cuid;
1: - __compat_gid32_t cgid;
1: - short unsigned int mode;
1: - short unsigned int __pad1;
1: - short unsigned int seq;
1: - short unsigned int __pad2;
1: - compat_ulong_t unused1;
1: - compat_ulong_t unused2;
1: + compat_key_t key;
1: + __compat_uid32_t uid;
1: + __compat_gid32_t gid;
1: + __compat_uid32_t cuid;
1: + __compat_gid32_t cgid;
1: + short unsigned int mode;
1: + short unsigned int __pad1;
1: + short unsigned int seq;
1: + short unsigned int __pad2;
1: + compat_ulong_t unused1;
1: + compat_ulong_t unused2;
1: };
1:
1: struct compat_ipc_perm {
1: - key_t key;
1: - __compat_uid_t uid;
1: - __compat_gid_t gid;
1: - __compat_uid_t cuid;
1: - __compat_gid_t cgid;
1: - compat_mode_t mode;
1: - short unsigned int seq;
1: + key_t key;
1: + __compat_uid_t uid;
1: + __compat_gid_t gid;
1: + __compat_uid_t cuid;
1: + __compat_gid_t cgid;
1: + compat_mode_t mode;
1: + short unsigned int seq;
1: };
1:
1: struct ipc_perm {
1: - __kernel_key_t key;
1: - __kernel_uid_t uid;
1: - __kernel_gid_t gid;
1: - __kernel_uid_t cuid;
1: - __kernel_gid_t cgid;
1: - __kernel_mode_t mode;
1: - short unsigned int seq;
1: + __kernel_key_t key;
1: + __kernel_uid_t uid;
1: + __kernel_gid_t gid;
1: + __kernel_uid_t cuid;
1: + __kernel_gid_t cgid;
1: + __kernel_mode_t mode;
1: + short unsigned int seq;
1: };
1:
1: struct ipc_params {
1: - key_t key;
1: - int flg;
1: - union {
1: - size_t size;
1: - int nsems;
1: - } u;
1: + key_t key;
1: + int flg;
1: + union {
1: + size_t size;
1: + int nsems;
1: + } u;
1: };
1:
1: struct ipc_ops {
1: - int (*getnew)(struct ipc_namespace *, struct ipc_params *);
1: - int (*associate)(struct kern_ipc_perm *, int);
1: - int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *);
1: + int (*getnew)(struct ipc_namespace *, struct ipc_params *);
1: + int (*associate)(struct kern_ipc_perm *, int);
1: + int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *);
1: };
1:
1: struct ipc_proc_iface {
1: - const char *path;
1: - const char *header;
1: - int ids;
1: - int (*show)(struct seq_file *, void *);
1: + const char *path;
1: + const char *header;
1: + int ids;
1: + int (*show)(struct seq_file *, void *);
1: };
1:
1: struct ipc_proc_iter {
1: - struct ipc_namespace *ns;
1: - struct pid_namespace *pid_ns;
1: - struct ipc_proc_iface *iface;
1: + struct ipc_namespace *ns;
1: + struct pid_namespace *pid_ns;
1: + struct ipc_proc_iface *iface;
1: };
1:
1: struct msg_msgseg;
1:
1: struct msg_msg {
1: - struct list_head m_list;
1: - long int m_type;
1: - size_t m_ts;
1: - struct msg_msgseg *next;
1: - void *security;
1: + struct list_head m_list;
1: + long int m_type;
1: + size_t m_ts;
1: + struct msg_msgseg *next;
1: + void *security;
1: };
1:
1: struct msg_msgseg {
1: - struct msg_msgseg *next;
1: + struct msg_msgseg *next;
1: };
1:
1: typedef int __kernel_ipc_pid_t;
1: @@ -45620,123 +46378,123 @@ typedef int __kernel_ipc_pid_t;
1: typedef __kernel_long_t __kernel_old_time_t;
1:
1: struct msgbuf {
1: - __kernel_long_t mtype;
1: - char mtext[1];
1: + __kernel_long_t mtype;
1: + char mtext[1];
1: };
1:
1: struct msg;
1:
1: struct msqid_ds {
1: - struct ipc_perm msg_perm;
1: - struct msg *msg_first;
1: - struct msg *msg_last;
1: - __kernel_old_time_t msg_stime;
1: - __kernel_old_time_t msg_rtime;
1: - __kernel_old_time_t msg_ctime;
1: - long unsigned int msg_lcbytes;
1: - long unsigned int msg_lqbytes;
1: - short unsigned int msg_cbytes;
1: - short unsigned int msg_qnum;
1: - short unsigned int msg_qbytes;
1: - __kernel_ipc_pid_t msg_lspid;
1: - __kernel_ipc_pid_t msg_lrpid;
1: + struct ipc_perm msg_perm;
1: + struct msg *msg_first;
1: + struct msg *msg_last;
1: + __kernel_old_time_t msg_stime;
1: + __kernel_old_time_t msg_rtime;
1: + __kernel_old_time_t msg_ctime;
1: + long unsigned int msg_lcbytes;
1: + long unsigned int msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + __kernel_ipc_pid_t msg_lspid;
1: + __kernel_ipc_pid_t msg_lrpid;
1: };
1:
1: struct msqid64_ds {
1: - struct ipc64_perm msg_perm;
1: - long int msg_stime;
1: - long int msg_rtime;
1: - long int msg_ctime;
1: - long unsigned int msg_cbytes;
1: - long unsigned int msg_qnum;
1: - long unsigned int msg_qbytes;
1: - __kernel_pid_t msg_lspid;
1: - __kernel_pid_t msg_lrpid;
1: - long unsigned int __unused4;
1: - long unsigned int __unused5;
1: + struct ipc64_perm msg_perm;
1: + long int msg_stime;
1: + long int msg_rtime;
1: + long int msg_ctime;
1: + long unsigned int msg_cbytes;
1: + long unsigned int msg_qnum;
1: + long unsigned int msg_qbytes;
1: + __kernel_pid_t msg_lspid;
1: + __kernel_pid_t msg_lrpid;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: };
1:
1: struct msginfo {
1: - int msgpool;
1: - int msgmap;
1: - int msgmax;
1: - int msgmnb;
1: - int msgmni;
1: - int msgssz;
1: - int msgtql;
1: - short unsigned int msgseg;
1: + int msgpool;
1: + int msgmap;
1: + int msgmax;
1: + int msgmnb;
1: + int msgmni;
1: + int msgssz;
1: + int msgtql;
1: + short unsigned int msgseg;
1: };
1:
1: typedef u16 compat_ipc_pid_t;
1:
1: struct compat_msqid64_ds {
1: - struct compat_ipc64_perm msg_perm;
1: - compat_ulong_t msg_stime;
1: - compat_ulong_t msg_stime_high;
1: - compat_ulong_t msg_rtime;
1: - compat_ulong_t msg_rtime_high;
1: - compat_ulong_t msg_ctime;
1: - compat_ulong_t msg_ctime_high;
1: - compat_ulong_t msg_cbytes;
1: - compat_ulong_t msg_qnum;
1: - compat_ulong_t msg_qbytes;
1: - compat_pid_t msg_lspid;
1: - compat_pid_t msg_lrpid;
1: - compat_ulong_t __unused4;
1: - compat_ulong_t __unused5;
1: + struct compat_ipc64_perm msg_perm;
1: + compat_ulong_t msg_stime;
1: + compat_ulong_t msg_stime_high;
1: + compat_ulong_t msg_rtime;
1: + compat_ulong_t msg_rtime_high;
1: + compat_ulong_t msg_ctime;
1: + compat_ulong_t msg_ctime_high;
1: + compat_ulong_t msg_cbytes;
1: + compat_ulong_t msg_qnum;
1: + compat_ulong_t msg_qbytes;
1: + compat_pid_t msg_lspid;
1: + compat_pid_t msg_lrpid;
1: + compat_ulong_t __unused4;
1: + compat_ulong_t __unused5;
1: };
1:
1: struct msg_queue {
1: - struct kern_ipc_perm q_perm;
1: - time64_t q_stime;
1: - time64_t q_rtime;
1: - time64_t q_ctime;
1: - long unsigned int q_cbytes;
1: - long unsigned int q_qnum;
1: - long unsigned int q_qbytes;
1: - struct pid *q_lspid;
1: - struct pid *q_lrpid;
1: - struct list_head q_messages;
1: - struct list_head q_receivers;
1: - struct list_head q_senders;
1: - long: 64;
1: - long: 64;
1: + struct kern_ipc_perm q_perm;
1: + time64_t q_stime;
1: + time64_t q_rtime;
1: + time64_t q_ctime;
1: + long unsigned int q_cbytes;
1: + long unsigned int q_qnum;
1: + long unsigned int q_qbytes;
1: + struct pid *q_lspid;
1: + struct pid *q_lrpid;
1: + struct list_head q_messages;
1: + struct list_head q_receivers;
1: + struct list_head q_senders;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct msg_receiver {
1: - struct list_head r_list;
1: - struct task_struct *r_tsk;
1: - int r_mode;
1: - long int r_msgtype;
1: - long int r_maxsize;
1: - struct msg_msg *r_msg;
1: + struct list_head r_list;
1: + struct task_struct *r_tsk;
1: + int r_mode;
1: + long int r_msgtype;
1: + long int r_maxsize;
1: + struct msg_msg *r_msg;
1: };
1:
1: struct msg_sender {
1: - struct list_head list;
1: - struct task_struct *tsk;
1: - size_t msgsz;
1: + struct list_head list;
1: + struct task_struct *tsk;
1: + size_t msgsz;
1: };
1:
1: struct compat_msqid_ds {
1: - struct compat_ipc_perm msg_perm;
1: - compat_uptr_t msg_first;
1: - compat_uptr_t msg_last;
1: - old_time32_t msg_stime;
1: - old_time32_t msg_rtime;
1: - old_time32_t msg_ctime;
1: - compat_ulong_t msg_lcbytes;
1: - compat_ulong_t msg_lqbytes;
1: - short unsigned int msg_cbytes;
1: - short unsigned int msg_qnum;
1: - short unsigned int msg_qbytes;
1: - compat_ipc_pid_t msg_lspid;
1: - compat_ipc_pid_t msg_lrpid;
1: + struct compat_ipc_perm msg_perm;
1: + compat_uptr_t msg_first;
1: + compat_uptr_t msg_last;
1: + old_time32_t msg_stime;
1: + old_time32_t msg_rtime;
1: + old_time32_t msg_ctime;
1: + compat_ulong_t msg_lcbytes;
1: + compat_ulong_t msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + compat_ipc_pid_t msg_lspid;
1: + compat_ipc_pid_t msg_lrpid;
1: };
1:
1: struct compat_msgbuf {
1: - compat_long_t mtype;
1: - char mtext[1];
1: + compat_long_t mtype;
1: + char mtext[1];
1: };
1:
1: struct sem;
1: @@ -45746,1250 +46504,1280 @@ struct sem_queue;
1: struct sem_undo;
1:
1: struct semid_ds {
1: - struct ipc_perm sem_perm;
1: - __kernel_old_time_t sem_otime;
1: - __kernel_old_time_t sem_ctime;
1: - struct sem *sem_base;
1: - struct sem_queue *sem_pending;
1: - struct sem_queue **sem_pending_last;
1: - struct sem_undo *undo;
1: - short unsigned int sem_nsems;
1: + struct ipc_perm sem_perm;
1: + __kernel_old_time_t sem_otime;
1: + __kernel_old_time_t sem_ctime;
1: + struct sem *sem_base;
1: + struct sem_queue *sem_pending;
1: + struct sem_queue **sem_pending_last;
1: + struct sem_undo *undo;
1: + short unsigned int sem_nsems;
1: };
1:
1: struct sem {
1: - int semval;
1: - struct pid *sempid;
1: - spinlock_t lock;
1: - struct list_head pending_alter;
1: - struct list_head pending_const;
1: - time64_t sem_otime;
1: + int semval;
1: + struct pid *sempid;
1: + spinlock_t lock;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + time64_t sem_otime;
1: };
1:
1: struct sem_queue {
1: - struct list_head list;
1: - struct task_struct *sleeper;
1: - struct sem_undo *undo;
1: - struct pid *pid;
1: - int status;
1: - struct sembuf *sops;
1: - struct sembuf *blocking;
1: - int nsops;
1: - bool alter;
1: - bool dupsop;
1: + struct list_head list;
1: + struct task_struct *sleeper;
1: + struct sem_undo *undo;
1: + struct pid *pid;
1: + int status;
1: + struct sembuf *sops;
1: + struct sembuf *blocking;
1: + int nsops;
1: + bool alter;
1: + bool dupsop;
1: };
1:
1: struct sem_undo {
1: - struct list_head list_proc;
1: - struct callback_head rcu;
1: - struct sem_undo_list *ulp;
1: - struct list_head list_id;
1: - int semid;
1: - short int *semadj;
1: + struct list_head list_proc;
1: + struct callback_head rcu;
1: + struct sem_undo_list *ulp;
1: + struct list_head list_id;
1: + int semid;
1: + short int *semadj;
1: };
1:
1: struct semid64_ds {
1: - struct ipc64_perm sem_perm;
1: - long int sem_otime;
1: - long int sem_ctime;
1: - long unsigned int sem_nsems;
1: - long unsigned int __unused3;
1: - long unsigned int __unused4;
1: + struct ipc64_perm sem_perm;
1: + long int sem_otime;
1: + long int sem_ctime;
1: + long unsigned int sem_nsems;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: };
1:
1: struct seminfo {
1: - int semmap;
1: - int semmni;
1: - int semmns;
1: - int semmnu;
1: - int semmsl;
1: - int semopm;
1: - int semume;
1: - int semusz;
1: - int semvmx;
1: - int semaem;
1: + int semmap;
1: + int semmni;
1: + int semmns;
1: + int semmnu;
1: + int semmsl;
1: + int semopm;
1: + int semume;
1: + int semusz;
1: + int semvmx;
1: + int semaem;
1: };
1:
1: struct sem_undo_list {
1: - refcount_t refcnt;
1: - spinlock_t lock;
1: - struct list_head list_proc;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + struct list_head list_proc;
1: };
1:
1: struct compat_semid64_ds {
1: - struct compat_ipc64_perm sem_perm;
1: - compat_ulong_t sem_otime;
1: - compat_ulong_t sem_otime_high;
1: - compat_ulong_t sem_ctime;
1: - compat_ulong_t sem_ctime_high;
1: - compat_ulong_t sem_nsems;
1: - compat_ulong_t __unused3;
1: - compat_ulong_t __unused4;
1: + struct compat_ipc64_perm sem_perm;
1: + compat_ulong_t sem_otime;
1: + compat_ulong_t sem_otime_high;
1: + compat_ulong_t sem_ctime;
1: + compat_ulong_t sem_ctime_high;
1: + compat_ulong_t sem_nsems;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: };
1:
1: struct sem_array {
1: - struct kern_ipc_perm sem_perm;
1: - time64_t sem_ctime;
1: - struct list_head pending_alter;
1: - struct list_head pending_const;
1: - struct list_head list_id;
1: - int sem_nsems;
1: - int complex_count;
1: - unsigned int use_global_lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sem sems[0];
1: + struct kern_ipc_perm sem_perm;
1: + time64_t sem_ctime;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + struct list_head list_id;
1: + int sem_nsems;
1: + int complex_count;
1: + unsigned int use_global_lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sem sems[0];
1: };
1:
1: struct compat_semid_ds {
1: - struct compat_ipc_perm sem_perm;
1: - old_time32_t sem_otime;
1: - old_time32_t sem_ctime;
1: - compat_uptr_t sem_base;
1: - compat_uptr_t sem_pending;
1: - compat_uptr_t sem_pending_last;
1: - compat_uptr_t undo;
1: - short unsigned int sem_nsems;
1: + struct compat_ipc_perm sem_perm;
1: + old_time32_t sem_otime;
1: + old_time32_t sem_ctime;
1: + compat_uptr_t sem_base;
1: + compat_uptr_t sem_pending;
1: + compat_uptr_t sem_pending_last;
1: + compat_uptr_t undo;
1: + short unsigned int sem_nsems;
1: };
1:
1: struct shmid_ds {
1: - struct ipc_perm shm_perm;
1: - int shm_segsz;
1: - __kernel_old_time_t shm_atime;
1: - __kernel_old_time_t shm_dtime;
1: - __kernel_old_time_t shm_ctime;
1: - __kernel_ipc_pid_t shm_cpid;
1: - __kernel_ipc_pid_t shm_lpid;
1: - short unsigned int shm_nattch;
1: - short unsigned int shm_unused;
1: - void *shm_unused2;
1: - void *shm_unused3;
1: + struct ipc_perm shm_perm;
1: + int shm_segsz;
1: + __kernel_old_time_t shm_atime;
1: + __kernel_old_time_t shm_dtime;
1: + __kernel_old_time_t shm_ctime;
1: + __kernel_ipc_pid_t shm_cpid;
1: + __kernel_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + void *shm_unused2;
1: + void *shm_unused3;
1: };
1:
1: struct shmid64_ds {
1: - struct ipc64_perm shm_perm;
1: - size_t shm_segsz;
1: - long int shm_atime;
1: - long int shm_dtime;
1: - long int shm_ctime;
1: - __kernel_pid_t shm_cpid;
1: - __kernel_pid_t shm_lpid;
1: - long unsigned int shm_nattch;
1: - long unsigned int __unused4;
1: - long unsigned int __unused5;
1: + struct ipc64_perm shm_perm;
1: + size_t shm_segsz;
1: + long int shm_atime;
1: + long int shm_dtime;
1: + long int shm_ctime;
1: + __kernel_pid_t shm_cpid;
1: + __kernel_pid_t shm_lpid;
1: + long unsigned int shm_nattch;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: };
1:
1: struct shminfo64 {
1: - long unsigned int shmmax;
1: - long unsigned int shmmin;
1: - long unsigned int shmmni;
1: - long unsigned int shmseg;
1: - long unsigned int shmall;
1: - long unsigned int __unused1;
1: - long unsigned int __unused2;
1: - long unsigned int __unused3;
1: - long unsigned int __unused4;
1: + long unsigned int shmmax;
1: + long unsigned int shmmin;
1: + long unsigned int shmmni;
1: + long unsigned int shmseg;
1: + long unsigned int shmall;
1: + long unsigned int __unused1;
1: + long unsigned int __unused2;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: };
1:
1: struct shminfo {
1: - int shmmax;
1: - int shmmin;
1: - int shmmni;
1: - int shmseg;
1: - int shmall;
1: + int shmmax;
1: + int shmmin;
1: + int shmmni;
1: + int shmseg;
1: + int shmall;
1: };
1:
1: struct shm_info {
1: - int used_ids;
1: - __kernel_ulong_t shm_tot;
1: - __kernel_ulong_t shm_rss;
1: - __kernel_ulong_t shm_swp;
1: - __kernel_ulong_t swap_attempts;
1: - __kernel_ulong_t swap_successes;
1: + int used_ids;
1: + __kernel_ulong_t shm_tot;
1: + __kernel_ulong_t shm_rss;
1: + __kernel_ulong_t shm_swp;
1: + __kernel_ulong_t swap_attempts;
1: + __kernel_ulong_t swap_successes;
1: };
1:
1: struct compat_shmid64_ds {
1: - struct compat_ipc64_perm shm_perm;
1: - compat_size_t shm_segsz;
1: - compat_ulong_t shm_atime;
1: - compat_ulong_t shm_atime_high;
1: - compat_ulong_t shm_dtime;
1: - compat_ulong_t shm_dtime_high;
1: - compat_ulong_t shm_ctime;
1: - compat_ulong_t shm_ctime_high;
1: - compat_pid_t shm_cpid;
1: - compat_pid_t shm_lpid;
1: - compat_ulong_t shm_nattch;
1: - compat_ulong_t __unused4;
1: - compat_ulong_t __unused5;
1: + struct compat_ipc64_perm shm_perm;
1: + compat_size_t shm_segsz;
1: + compat_ulong_t shm_atime;
1: + compat_ulong_t shm_atime_high;
1: + compat_ulong_t shm_dtime;
1: + compat_ulong_t shm_dtime_high;
1: + compat_ulong_t shm_ctime;
1: + compat_ulong_t shm_ctime_high;
1: + compat_pid_t shm_cpid;
1: + compat_pid_t shm_lpid;
1: + compat_ulong_t shm_nattch;
1: + compat_ulong_t __unused4;
1: + compat_ulong_t __unused5;
1: };
1:
1: struct shmid_kernel {
1: - struct kern_ipc_perm shm_perm;
1: - struct file *shm_file;
1: - long unsigned int shm_nattch;
1: - long unsigned int shm_segsz;
1: - time64_t shm_atim;
1: - time64_t shm_dtim;
1: - time64_t shm_ctim;
1: - struct pid *shm_cprid;
1: - struct pid *shm_lprid;
1: - struct user_struct *mlock_user;
1: - struct task_struct *shm_creator;
1: - struct list_head shm_clist;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct kern_ipc_perm shm_perm;
1: + struct file *shm_file;
1: + long unsigned int shm_nattch;
1: + long unsigned int shm_segsz;
1: + time64_t shm_atim;
1: + time64_t shm_dtim;
1: + time64_t shm_ctim;
1: + struct pid *shm_cprid;
1: + struct pid *shm_lprid;
1: + struct user_struct *mlock_user;
1: + struct task_struct *shm_creator;
1: + struct list_head shm_clist;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct shm_file_data {
1: - int id;
1: - struct ipc_namespace *ns;
1: - struct file *file;
1: - const struct vm_operations_struct *vm_ops;
1: + int id;
1: + struct ipc_namespace *ns;
1: + struct file *file;
1: + const struct vm_operations_struct *vm_ops;
1: };
1:
1: struct compat_shmid_ds {
1: - struct compat_ipc_perm shm_perm;
1: - int shm_segsz;
1: - old_time32_t shm_atime;
1: - old_time32_t shm_dtime;
1: - old_time32_t shm_ctime;
1: - compat_ipc_pid_t shm_cpid;
1: - compat_ipc_pid_t shm_lpid;
1: - short unsigned int shm_nattch;
1: - short unsigned int shm_unused;
1: - compat_uptr_t shm_unused2;
1: - compat_uptr_t shm_unused3;
1: + struct compat_ipc_perm shm_perm;
1: + int shm_segsz;
1: + old_time32_t shm_atime;
1: + old_time32_t shm_dtime;
1: + old_time32_t shm_ctime;
1: + compat_ipc_pid_t shm_cpid;
1: + compat_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + compat_uptr_t shm_unused2;
1: + compat_uptr_t shm_unused3;
1: };
1:
1: struct compat_shminfo64 {
1: - compat_ulong_t shmmax;
1: - compat_ulong_t shmmin;
1: - compat_ulong_t shmmni;
1: - compat_ulong_t shmseg;
1: - compat_ulong_t shmall;
1: - compat_ulong_t __unused1;
1: - compat_ulong_t __unused2;
1: - compat_ulong_t __unused3;
1: - compat_ulong_t __unused4;
1: + compat_ulong_t shmmax;
1: + compat_ulong_t shmmin;
1: + compat_ulong_t shmmni;
1: + compat_ulong_t shmseg;
1: + compat_ulong_t shmall;
1: + compat_ulong_t __unused1;
1: + compat_ulong_t __unused2;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: };
1:
1: struct compat_shm_info {
1: - compat_int_t used_ids;
1: - compat_ulong_t shm_tot;
1: - compat_ulong_t shm_rss;
1: - compat_ulong_t shm_swp;
1: - compat_ulong_t swap_attempts;
1: - compat_ulong_t swap_successes;
1: + compat_int_t used_ids;
1: + compat_ulong_t shm_tot;
1: + compat_ulong_t shm_rss;
1: + compat_ulong_t shm_swp;
1: + compat_ulong_t swap_attempts;
1: + compat_ulong_t swap_successes;
1: };
1:
1: struct mqueue_fs_context {
1: - struct ipc_namespace *ipc_ns;
1: + struct ipc_namespace *ipc_ns;
1: };
1:
1: struct posix_msg_tree_node {
1: - struct rb_node rb_node;
1: - struct list_head msg_list;
1: - int priority;
1: + struct rb_node rb_node;
1: + struct list_head msg_list;
1: + int priority;
1: };
1:
1: struct ext_wait_queue {
1: - struct task_struct *task;
1: - struct list_head list;
1: - struct msg_msg *msg;
1: - int state;
1: + struct task_struct *task;
1: + struct list_head list;
1: + struct msg_msg *msg;
1: + int state;
1: };
1:
1: struct mqueue_inode_info {
1: - spinlock_t lock;
1: - struct inode vfs_inode;
1: - wait_queue_head_t wait_q;
1: - struct rb_root msg_tree;
1: - struct rb_node *msg_tree_rightmost;
1: - struct posix_msg_tree_node *node_cache;
1: - struct mq_attr attr;
1: - struct sigevent notify;
1: - struct pid *notify_owner;
1: - u32 notify_self_exec_id;
1: - struct user_namespace *notify_user_ns;
1: - struct user_struct *user;
1: - struct sock *notify_sock;
1: - struct sk_buff *notify_cookie;
1: - struct ext_wait_queue e_wait_q[2];
1: - long unsigned int qsize;
1: + spinlock_t lock;
1: + struct inode vfs_inode;
1: + wait_queue_head_t wait_q;
1: + struct rb_root msg_tree;
1: + struct rb_node *msg_tree_rightmost;
1: + struct posix_msg_tree_node *node_cache;
1: + struct mq_attr attr;
1: + struct sigevent notify;
1: + struct pid *notify_owner;
1: + u32 notify_self_exec_id;
1: + struct user_namespace *notify_user_ns;
1: + struct user_struct *user;
1: + struct sock *notify_sock;
1: + struct sk_buff *notify_cookie;
1: + struct ext_wait_queue e_wait_q[2];
1: + long unsigned int qsize;
1: };
1:
1: struct compat_mq_attr {
1: - compat_long_t mq_flags;
1: - compat_long_t mq_maxmsg;
1: - compat_long_t mq_msgsize;
1: - compat_long_t mq_curmsgs;
1: - compat_long_t __reserved[4];
1: + compat_long_t mq_flags;
1: + compat_long_t mq_maxmsg;
1: + compat_long_t mq_msgsize;
1: + compat_long_t mq_curmsgs;
1: + compat_long_t __reserved[4];
1: };
1:
1: struct key_user {
1: - struct rb_node node;
1: - struct mutex cons_lock;
1: - spinlock_t lock;
1: - refcount_t usage;
1: - atomic_t nkeys;
1: - atomic_t nikeys;
1: - kuid_t uid;
1: - int qnkeys;
1: - int qnbytes;
1: + struct rb_node node;
1: + struct mutex cons_lock;
1: + spinlock_t lock;
1: + refcount_t usage;
1: + atomic_t nkeys;
1: + atomic_t nikeys;
1: + kuid_t uid;
1: + int qnkeys;
1: + int qnbytes;
1: };
1:
1: enum key_notification_subtype {
1: - NOTIFY_KEY_INSTANTIATED = 0,
1: - NOTIFY_KEY_UPDATED = 1,
1: - NOTIFY_KEY_LINKED = 2,
1: - NOTIFY_KEY_UNLINKED = 3,
1: - NOTIFY_KEY_CLEARED = 4,
1: - NOTIFY_KEY_REVOKED = 5,
1: - NOTIFY_KEY_INVALIDATED = 6,
1: - NOTIFY_KEY_SETATTR = 7,
1: + NOTIFY_KEY_INSTANTIATED = 0,
1: + NOTIFY_KEY_UPDATED = 1,
1: + NOTIFY_KEY_LINKED = 2,
1: + NOTIFY_KEY_UNLINKED = 3,
1: + NOTIFY_KEY_CLEARED = 4,
1: + NOTIFY_KEY_REVOKED = 5,
1: + NOTIFY_KEY_INVALIDATED = 6,
1: + NOTIFY_KEY_SETATTR = 7,
1: };
1:
1: struct key_notification {
1: - struct watch_notification watch;
1: - __u32 key_id;
1: - __u32 aux;
1: + struct watch_notification watch;
1: + __u32 key_id;
1: + __u32 aux;
1: };
1:
1: struct assoc_array_edit;
1:
1: struct assoc_array_ops {
1: - long unsigned int (*get_key_chunk)(const void *, int);
1: - long unsigned int (*get_object_key_chunk)(const void *, int);
1: - bool (*compare_object)(const void *, const void *);
1: - int (*diff_objects)(const void *, const void *);
1: - void (*free_object)(void *);
1: + long unsigned int (*get_key_chunk)(const void *, int);
1: + long unsigned int (*get_object_key_chunk)(const void *, int);
1: + bool (*compare_object)(const void *, const void *);
1: + int (*diff_objects)(const void *, const void *);
1: + void (*free_object)(void *);
1: };
1:
1: struct assoc_array_node {
1: - struct assoc_array_ptr *back_pointer;
1: - u8 parent_slot;
1: - struct assoc_array_ptr *slots[16];
1: - long unsigned int nr_leaves_on_branch;
1: + struct assoc_array_ptr *back_pointer;
1: + u8 parent_slot;
1: + struct assoc_array_ptr *slots[16];
1: + long unsigned int nr_leaves_on_branch;
1: };
1:
1: struct assoc_array_shortcut {
1: - struct assoc_array_ptr *back_pointer;
1: - int parent_slot;
1: - int skip_to_level;
1: - struct assoc_array_ptr *next_node;
1: - long unsigned int index_key[0];
1: + struct assoc_array_ptr *back_pointer;
1: + int parent_slot;
1: + int skip_to_level;
1: + struct assoc_array_ptr *next_node;
1: + long unsigned int index_key[0];
1: };
1:
1: struct assoc_array_edit___2 {
1: - struct callback_head rcu;
1: - struct assoc_array *array;
1: - const struct assoc_array_ops *ops;
1: - const struct assoc_array_ops *ops_for_excised_subtree;
1: - struct assoc_array_ptr *leaf;
1: - struct assoc_array_ptr **leaf_p;
1: - struct assoc_array_ptr *dead_leaf;
1: - struct assoc_array_ptr *new_meta[3];
1: - struct assoc_array_ptr *excised_meta[1];
1: - struct assoc_array_ptr *excised_subtree;
1: - struct assoc_array_ptr **set_backpointers[16];
1: - struct assoc_array_ptr *set_backpointers_to;
1: - struct assoc_array_node *adjust_count_on;
1: - long int adjust_count_by;
1: - struct {
1: - struct assoc_array_ptr **ptr;
1: - struct assoc_array_ptr *to;
1: - } set[2];
1: - struct {
1: - u8 *p;
1: - u8 to;
1: - } set_parent_slot[1];
1: - u8 segment_cache[17];
1: + struct callback_head rcu;
1: + struct assoc_array *array;
1: + const struct assoc_array_ops *ops;
1: + const struct assoc_array_ops *ops_for_excised_subtree;
1: + struct assoc_array_ptr *leaf;
1: + struct assoc_array_ptr **leaf_p;
1: + struct assoc_array_ptr *dead_leaf;
1: + struct assoc_array_ptr *new_meta[3];
1: + struct assoc_array_ptr *excised_meta[1];
1: + struct assoc_array_ptr *excised_subtree;
1: + struct assoc_array_ptr **set_backpointers[16];
1: + struct assoc_array_ptr *set_backpointers_to;
1: + struct assoc_array_node *adjust_count_on;
1: + long int adjust_count_by;
1: + struct {
1: + struct assoc_array_ptr **ptr;
1: + struct assoc_array_ptr *to;
1: + } set[2];
1: + struct {
1: + u8 *p;
1: + u8 to;
1: + } set_parent_slot[1];
1: + u8 segment_cache[17];
1: };
1:
1: struct keyring_search_context {
1: - struct keyring_index_key index_key;
1: - const struct cred *cred;
1: - struct key_match_data match_data;
1: - unsigned int flags;
1: - int (*iterator)(const void *, void *);
1: - int skipped_ret;
1: - bool possessed;
1: - key_ref_t result;
1: - time64_t now;
1: + struct keyring_index_key index_key;
1: + const struct cred *cred;
1: + struct key_match_data match_data;
1: + unsigned int flags;
1: + int (*iterator)(const void *, void *);
1: + int skipped_ret;
1: + bool possessed;
1: + key_ref_t result;
1: + time64_t now;
1: };
1:
1: struct keyring_read_iterator_context {
1: - size_t buflen;
1: - size_t count;
1: - key_serial_t *buffer;
1: + size_t buflen;
1: + size_t count;
1: + key_serial_t *buffer;
1: };
1:
1: struct keyctl_dh_params {
1: - union {
1: - __s32 private;
1: - __s32 priv;
1: - };
1: - __s32 prime;
1: - __s32 base;
1: + union {
1: + __s32 private;
1: + __s32 priv;
1: + };
1: + __s32 prime;
1: + __s32 base;
1: };
1:
1: struct keyctl_kdf_params {
1: - char *hashname;
1: - char *otherinfo;
1: - __u32 otherinfolen;
1: - __u32 __spare[8];
1: + char *hashname;
1: + char *otherinfo;
1: + __u32 otherinfolen;
1: + __u32 __spare[8];
1: };
1:
1: struct keyctl_pkey_query {
1: - __u32 supported_ops;
1: - __u32 key_size;
1: - __u16 max_data_size;
1: - __u16 max_sig_size;
1: - __u16 max_enc_size;
1: - __u16 max_dec_size;
1: - __u32 __spare[10];
1: + __u32 supported_ops;
1: + __u32 key_size;
1: + __u16 max_data_size;
1: + __u16 max_sig_size;
1: + __u16 max_enc_size;
1: + __u16 max_dec_size;
1: + __u32 __spare[10];
1: };
1:
1: struct keyctl_pkey_params {
1: - __s32 key_id;
1: - __u32 in_len;
1: - union {
1: - __u32 out_len;
1: - __u32 in2_len;
1: - };
1: - __u32 __spare[7];
1: + __s32 key_id;
1: + __u32 in_len;
1: + union {
1: + __u32 out_len;
1: + __u32 in2_len;
1: + };
1: + __u32 __spare[7];
1: };
1:
1: struct request_key_auth {
1: - struct callback_head rcu;
1: - struct key *target_key;
1: - struct key *dest_keyring;
1: - const struct cred *cred;
1: - void *callout_info;
1: - size_t callout_len;
1: - pid_t pid;
1: - char op[8];
1: + struct callback_head rcu;
1: + struct key *target_key;
1: + struct key *dest_keyring;
1: + const struct cred *cred;
1: + void *callout_info;
1: + size_t callout_len;
1: + pid_t pid;
1: + char op[8];
1: };
1:
1: enum {
1: - Opt_err___5 = 0,
1: - Opt_enc = 1,
1: - Opt_hash = 2,
1: + Opt_err___5 = 0,
1: + Opt_enc = 1,
1: + Opt_hash = 2,
1: };
1:
1: enum hash_algo {
1: - HASH_ALGO_MD4 = 0,
1: - HASH_ALGO_MD5 = 1,
1: - HASH_ALGO_SHA1 = 2,
1: - HASH_ALGO_RIPE_MD_160 = 3,
1: - HASH_ALGO_SHA256 = 4,
1: - HASH_ALGO_SHA384 = 5,
1: - HASH_ALGO_SHA512 = 6,
1: - HASH_ALGO_SHA224 = 7,
1: - HASH_ALGO_RIPE_MD_128 = 8,
1: - HASH_ALGO_RIPE_MD_256 = 9,
1: - HASH_ALGO_RIPE_MD_320 = 10,
1: - HASH_ALGO_WP_256 = 11,
1: - HASH_ALGO_WP_384 = 12,
1: - HASH_ALGO_WP_512 = 13,
1: - HASH_ALGO_TGR_128 = 14,
1: - HASH_ALGO_TGR_160 = 15,
1: - HASH_ALGO_TGR_192 = 16,
1: - HASH_ALGO_SM3_256 = 17,
1: - HASH_ALGO_STREEBOG_256 = 18,
1: - HASH_ALGO_STREEBOG_512 = 19,
1: - HASH_ALGO__LAST = 20,
1: + HASH_ALGO_MD4 = 0,
1: + HASH_ALGO_MD5 = 1,
1: + HASH_ALGO_SHA1 = 2,
1: + HASH_ALGO_RIPE_MD_160 = 3,
1: + HASH_ALGO_SHA256 = 4,
1: + HASH_ALGO_SHA384 = 5,
1: + HASH_ALGO_SHA512 = 6,
1: + HASH_ALGO_SHA224 = 7,
1: + HASH_ALGO_RIPE_MD_128 = 8,
1: + HASH_ALGO_RIPE_MD_256 = 9,
1: + HASH_ALGO_RIPE_MD_320 = 10,
1: + HASH_ALGO_WP_256 = 11,
1: + HASH_ALGO_WP_384 = 12,
1: + HASH_ALGO_WP_512 = 13,
1: + HASH_ALGO_TGR_128 = 14,
1: + HASH_ALGO_TGR_160 = 15,
1: + HASH_ALGO_TGR_192 = 16,
1: + HASH_ALGO_SM3_256 = 17,
1: + HASH_ALGO_STREEBOG_256 = 18,
1: + HASH_ALGO_STREEBOG_512 = 19,
1: + HASH_ALGO__LAST = 20,
1: };
1:
1: enum tpm_duration {
1: - TPM_SHORT = 0,
1: - TPM_MEDIUM = 1,
1: - TPM_LONG = 2,
1: - TPM_LONG_LONG = 3,
1: - TPM_UNDEFINED = 4,
1: - TPM_NUM_DURATIONS = 4,
1: + TPM_SHORT = 0,
1: + TPM_MEDIUM = 1,
1: + TPM_LONG = 2,
1: + TPM_LONG_LONG = 3,
1: + TPM_UNDEFINED = 4,
1: + TPM_NUM_DURATIONS = 4,
1: };
1:
1: struct encrypted_key_payload {
1: - struct callback_head rcu;
1: - char *format;
1: - char *master_desc;
1: - char *datalen;
1: - u8 *iv;
1: - u8 *encrypted_data;
1: - short unsigned int datablob_len;
1: - short unsigned int decrypted_datalen;
1: - short unsigned int payload_datalen;
1: - short unsigned int encrypted_key_format;
1: - u8 *decrypted_data;
1: - u8 payload_data[0];
1: + struct callback_head rcu;
1: + char *format;
1: + char *master_desc;
1: + char *datalen;
1: + u8 *iv;
1: + u8 *encrypted_data;
1: + short unsigned int datablob_len;
1: + short unsigned int decrypted_datalen;
1: + short unsigned int payload_datalen;
1: + short unsigned int encrypted_key_format;
1: + u8 *decrypted_data;
1: + u8 payload_data[0];
1: };
1:
1: struct ecryptfs_session_key {
1: - u32 flags;
1: - u32 encrypted_key_size;
1: - u32 decrypted_key_size;
1: - u8 encrypted_key[512];
1: - u8 decrypted_key[64];
1: + u32 flags;
1: + u32 encrypted_key_size;
1: + u32 decrypted_key_size;
1: + u8 encrypted_key[512];
1: + u8 decrypted_key[64];
1: };
1:
1: struct ecryptfs_password {
1: - u32 password_bytes;
1: - s32 hash_algo;
1: - u32 hash_iterations;
1: - u32 session_key_encryption_key_bytes;
1: - u32 flags;
1: - u8 session_key_encryption_key[64];
1: - u8 signature[17];
1: - u8 salt[8];
1: + u32 password_bytes;
1: + s32 hash_algo;
1: + u32 hash_iterations;
1: + u32 session_key_encryption_key_bytes;
1: + u32 flags;
1: + u8 session_key_encryption_key[64];
1: + u8 signature[17];
1: + u8 salt[8];
1: };
1:
1: struct ecryptfs_private_key {
1: - u32 key_size;
1: - u32 data_len;
1: - u8 signature[17];
1: - char pki_type[17];
1: - u8 data[0];
1: + u32 key_size;
1: + u32 data_len;
1: + u8 signature[17];
1: + char pki_type[17];
1: + u8 data[0];
1: };
1:
1: struct ecryptfs_auth_tok {
1: - u16 version;
1: - u16 token_type;
1: - u32 flags;
1: - struct ecryptfs_session_key session_key;
1: - u8 reserved[32];
1: - union {
1: - struct ecryptfs_password password;
1: - struct ecryptfs_private_key private_key;
1: - } token;
1: + u16 version;
1: + u16 token_type;
1: + u32 flags;
1: + struct ecryptfs_session_key session_key;
1: + u8 reserved[32];
1: + union {
1: + struct ecryptfs_password password;
1: + struct ecryptfs_private_key private_key;
1: + } token;
1: };
1:
1: enum {
1: - Opt_new = 0,
1: - Opt_load = 1,
1: - Opt_update = 2,
1: - Opt_err___6 = 3,
1: + Opt_new = 0,
1: + Opt_load = 1,
1: + Opt_update = 2,
1: + Opt_err___6 = 3,
1: };
1:
1: enum {
1: - Opt_default = 0,
1: - Opt_ecryptfs = 1,
1: - Opt_enc32 = 2,
1: - Opt_error = 3,
1: + Opt_default = 0,
1: + Opt_ecryptfs = 1,
1: + Opt_enc32 = 2,
1: + Opt_error = 3,
1: };
1:
1: enum derived_key_type {
1: - ENC_KEY = 0,
1: - AUTH_KEY = 1,
1: + ENC_KEY = 0,
1: + AUTH_KEY = 1,
1: };
1:
1: enum ecryptfs_token_types {
1: - ECRYPTFS_PASSWORD = 0,
1: - ECRYPTFS_PRIVATE_KEY = 1,
1: + ECRYPTFS_PASSWORD = 0,
1: + ECRYPTFS_PRIVATE_KEY = 1,
1: };
1:
1: struct vfs_cap_data {
1: - __le32 magic_etc;
1: - struct {
1: - __le32 permitted;
1: - __le32 inheritable;
1: - } data[2];
1: + __le32 magic_etc;
1: + struct {
1: + __le32 permitted;
1: + __le32 inheritable;
1: + } data[2];
1: };
1:
1: struct vfs_ns_cap_data {
1: - __le32 magic_etc;
1: - struct {
1: - __le32 permitted;
1: - __le32 inheritable;
1: - } data[2];
1: - __le32 rootid;
1: + __le32 magic_etc;
1: + struct {
1: + __le32 permitted;
1: + __le32 inheritable;
1: + } data[2];
1: + __le32 rootid;
1: };
1:
1: struct sctp_endpoint;
1:
1: union security_list_options {
1: - int (*binder_set_context_mgr)(struct task_struct *);
1: - int (*binder_transaction)(struct task_struct *, struct task_struct *);
1: - int (*binder_transfer_binder)(struct task_struct *, struct task_struct *);
1: - int (*binder_transfer_file)(struct task_struct *, struct task_struct *, struct file *);
1: - int (*ptrace_access_check)(struct task_struct *, unsigned int);
1: - int (*ptrace_traceme)(struct task_struct *);
1: - int (*capget)(struct task_struct *, kernel_cap_t *, kernel_cap_t *, kernel_cap_t *);
1: - int (*capset)(struct cred *, const struct cred *, const kernel_cap_t *, const kernel_cap_t *, const kernel_cap_t *);
1: - int (*capable)(const struct cred *, struct user_namespace *, int, unsigned int);
1: - int (*quotactl)(int, int, int, struct super_block *);
1: - int (*quota_on)(struct dentry *);
1: - int (*syslog)(int);
1: - int (*settime)(const struct timespec64 *, const struct timezone *);
1: - int (*vm_enough_memory)(struct mm_struct *, long int);
1: - int (*bprm_creds_for_exec)(struct linux_binprm *);
1: - int (*bprm_creds_from_file)(struct linux_binprm *, struct file *);
1: - int (*bprm_check_security)(struct linux_binprm *);
1: - void (*bprm_committing_creds)(struct linux_binprm *);
1: - void (*bprm_committed_creds)(struct linux_binprm *);
1: - int (*fs_context_dup)(struct fs_context *, struct fs_context *);
1: - int (*fs_context_parse_param)(struct fs_context *, struct fs_parameter *);
1: - int (*sb_alloc_security)(struct super_block *);
1: - void (*sb_free_security)(struct super_block *);
1: - void (*sb_free_mnt_opts)(void *);
1: - int (*sb_eat_lsm_opts)(char *, void **);
1: - int (*sb_remount)(struct super_block *, void *);
1: - int (*sb_kern_mount)(struct super_block *);
1: - int (*sb_show_options)(struct seq_file *, struct super_block *);
1: - int (*sb_statfs)(struct dentry *);
1: - int (*sb_mount)(const char *, const struct path *, const char *, long unsigned int, void *);
1: - int (*sb_umount)(struct vfsmount *, int);
1: - int (*sb_pivotroot)(const struct path *, const struct path *);
1: - int (*sb_set_mnt_opts)(struct super_block *, void *, long unsigned int, long unsigned int *);
1: - int (*sb_clone_mnt_opts)(const struct super_block *, struct super_block *, long unsigned int, long unsigned int *);
1: - int (*sb_add_mnt_opt)(const char *, const char *, int, void **);
1: - int (*move_mount)(const struct path *, const struct path *);
1: - int (*dentry_init_security)(struct dentry *, int, const struct qstr *, void **, u32 *);
1: - int (*dentry_create_files_as)(struct dentry *, int, struct qstr *, const struct cred *, struct cred *);
1: - int (*path_unlink)(const struct path *, struct dentry *);
1: - int (*path_mkdir)(const struct path *, struct dentry *, umode_t);
1: - int (*path_rmdir)(const struct path *, struct dentry *);
1: - int (*path_mknod)(const struct path *, struct dentry *, umode_t, unsigned int);
1: - int (*path_truncate)(const struct path *);
1: - int (*path_symlink)(const struct path *, struct dentry *, const char *);
1: - int (*path_link)(struct dentry *, const struct path *, struct dentry *);
1: - int (*path_rename)(const struct path *, struct dentry *, const struct path *, struct dentry *);
1: - int (*path_chmod)(const struct path *, umode_t);
1: - int (*path_chown)(const struct path *, kuid_t, kgid_t);
1: - int (*path_chroot)(const struct path *);
1: - int (*path_notify)(const struct path *, u64, unsigned int);
1: - int (*inode_alloc_security)(struct inode *);
1: - void (*inode_free_security)(struct inode *);
1: - int (*inode_init_security)(struct inode *, struct inode *, const struct qstr *, const char **, void **, size_t *);
1: - int (*inode_create)(struct inode *, struct dentry *, umode_t);
1: - int (*inode_link)(struct dentry *, struct inode *, struct dentry *);
1: - int (*inode_unlink)(struct inode *, struct dentry *);
1: - int (*inode_symlink)(struct inode *, struct dentry *, const char *);
1: - int (*inode_mkdir)(struct inode *, struct dentry *, umode_t);
1: - int (*inode_rmdir)(struct inode *, struct dentry *);
1: - int (*inode_mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: - int (*inode_rename)(struct inode *, struct dentry *, struct inode *, struct dentry *);
1: - int (*inode_readlink)(struct dentry *);
1: - int (*inode_follow_link)(struct dentry *, struct inode *, bool);
1: - int (*inode_permission)(struct inode *, int);
1: - int (*inode_setattr)(struct dentry *, struct iattr *);
1: - int (*inode_getattr)(const struct path *);
1: - int (*inode_setxattr)(struct dentry *, const char *, const void *, size_t, int);
1: - void (*inode_post_setxattr)(struct dentry *, const char *, const void *, size_t, int);
1: - int (*inode_getxattr)(struct dentry *, const char *);
1: - int (*inode_listxattr)(struct dentry *);
1: - int (*inode_removexattr)(struct dentry *, const char *);
1: - int (*inode_need_killpriv)(struct dentry *);
1: - int (*inode_killpriv)(struct dentry *);
1: - int (*inode_getsecurity)(struct inode *, const char *, void **, bool);
1: - int (*inode_setsecurity)(struct inode *, const char *, const void *, size_t, int);
1: - int (*inode_listsecurity)(struct inode *, char *, size_t);
1: - void (*inode_getsecid)(struct inode *, u32 *);
1: - int (*inode_copy_up)(struct dentry *, struct cred **);
1: - int (*inode_copy_up_xattr)(const char *);
1: - int (*kernfs_init_security)(struct kernfs_node *, struct kernfs_node *);
1: - int (*file_permission)(struct file *, int);
1: - int (*file_alloc_security)(struct file *);
1: - void (*file_free_security)(struct file *);
1: - int (*file_ioctl)(struct file *, unsigned int, long unsigned int);
1: - int (*mmap_addr)(long unsigned int);
1: - int (*mmap_file)(struct file *, long unsigned int, long unsigned int, long unsigned int);
1: - int (*file_mprotect)(struct vm_area_struct *, long unsigned int, long unsigned int);
1: - int (*file_lock)(struct file *, unsigned int);
1: - int (*file_fcntl)(struct file *, unsigned int, long unsigned int);
1: - void (*file_set_fowner)(struct file *);
1: - int (*file_send_sigiotask)(struct task_struct *, struct fown_struct *, int);
1: - int (*file_receive)(struct file *);
1: - int (*file_open)(struct file *);
1: - int (*task_alloc)(struct task_struct *, long unsigned int);
1: - void (*task_free)(struct task_struct *);
1: - int (*cred_alloc_blank)(struct cred *, gfp_t);
1: - void (*cred_free)(struct cred *);
1: - int (*cred_prepare)(struct cred *, const struct cred *, gfp_t);
1: - void (*cred_transfer)(struct cred *, const struct cred *);
1: - void (*cred_getsecid)(const struct cred *, u32 *);
1: - int (*kernel_act_as)(struct cred *, u32);
1: - int (*kernel_create_files_as)(struct cred *, struct inode *);
1: - int (*kernel_module_request)(char *);
1: - int (*kernel_load_data)(enum kernel_load_data_id, bool);
1: - int (*kernel_post_load_data)(char *, loff_t, enum kernel_load_data_id, char *);
1: - int (*kernel_read_file)(struct file *, enum kernel_read_file_id, bool);
1: - int (*kernel_post_read_file)(struct file *, char *, loff_t, enum kernel_read_file_id);
1: - int (*task_fix_setuid)(struct cred *, const struct cred *, int);
1: - int (*task_fix_setgid)(struct cred *, const struct cred *, int);
1: - int (*task_setpgid)(struct task_struct *, pid_t);
1: - int (*task_getpgid)(struct task_struct *);
1: - int (*task_getsid)(struct task_struct *);
1: - void (*task_getsecid)(struct task_struct *, u32 *);
1: - int (*task_setnice)(struct task_struct *, int);
1: - int (*task_setioprio)(struct task_struct *, int);
1: - int (*task_getioprio)(struct task_struct *);
1: - int (*task_prlimit)(const struct cred *, const struct cred *, unsigned int);
1: - int (*task_setrlimit)(struct task_struct *, unsigned int, struct rlimit *);
1: - int (*task_setscheduler)(struct task_struct *);
1: - int (*task_getscheduler)(struct task_struct *);
1: - int (*task_movememory)(struct task_struct *);
1: - int (*task_kill)(struct task_struct *, struct kernel_siginfo *, int, const struct cred *);
1: - int (*task_prctl)(int, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: - void (*task_to_inode)(struct task_struct *, struct inode *);
1: - int (*ipc_permission)(struct kern_ipc_perm *, short int);
1: - void (*ipc_getsecid)(struct kern_ipc_perm *, u32 *);
1: - int (*msg_msg_alloc_security)(struct msg_msg *);
1: - void (*msg_msg_free_security)(struct msg_msg *);
1: - int (*msg_queue_alloc_security)(struct kern_ipc_perm *);
1: - void (*msg_queue_free_security)(struct kern_ipc_perm *);
1: - int (*msg_queue_associate)(struct kern_ipc_perm *, int);
1: - int (*msg_queue_msgctl)(struct kern_ipc_perm *, int);
1: - int (*msg_queue_msgsnd)(struct kern_ipc_perm *, struct msg_msg *, int);
1: - int (*msg_queue_msgrcv)(struct kern_ipc_perm *, struct msg_msg *, struct task_struct *, long int, int);
1: - int (*shm_alloc_security)(struct kern_ipc_perm *);
1: - void (*shm_free_security)(struct kern_ipc_perm *);
1: - int (*shm_associate)(struct kern_ipc_perm *, int);
1: - int (*shm_shmctl)(struct kern_ipc_perm *, int);
1: - int (*shm_shmat)(struct kern_ipc_perm *, char *, int);
1: - int (*sem_alloc_security)(struct kern_ipc_perm *);
1: - void (*sem_free_security)(struct kern_ipc_perm *);
1: - int (*sem_associate)(struct kern_ipc_perm *, int);
1: - int (*sem_semctl)(struct kern_ipc_perm *, int);
1: - int (*sem_semop)(struct kern_ipc_perm *, struct sembuf *, unsigned int, int);
1: - int (*netlink_send)(struct sock *, struct sk_buff *);
1: - void (*d_instantiate)(struct dentry *, struct inode *);
1: - int (*getprocattr)(struct task_struct *, char *, char **);
1: - int (*setprocattr)(const char *, void *, size_t);
1: - int (*ismaclabel)(const char *);
1: - int (*secid_to_secctx)(u32, char **, u32 *);
1: - int (*secctx_to_secid)(const char *, u32, u32 *);
1: - void (*release_secctx)(char *, u32);
1: - void (*inode_invalidate_secctx)(struct inode *);
1: - int (*inode_notifysecctx)(struct inode *, void *, u32);
1: - int (*inode_setsecctx)(struct dentry *, void *, u32);
1: - int (*inode_getsecctx)(struct inode *, void **, u32 *);
1: - int (*post_notification)(const struct cred *, const struct cred *, struct watch_notification *);
1: - int (*watch_key)(struct key *);
1: - int (*unix_stream_connect)(struct sock *, struct sock *, struct sock *);
1: - int (*unix_may_send)(struct socket *, struct socket *);
1: - int (*socket_create)(int, int, int, int);
1: - int (*socket_post_create)(struct socket *, int, int, int, int);
1: - int (*socket_socketpair)(struct socket *, struct socket *);
1: - int (*socket_bind)(struct socket *, struct sockaddr *, int);
1: - int (*socket_connect)(struct socket *, struct sockaddr *, int);
1: - int (*socket_listen)(struct socket *, int);
1: - int (*socket_accept)(struct socket *, struct socket *);
1: - int (*socket_sendmsg)(struct socket *, struct msghdr *, int);
1: - int (*socket_recvmsg)(struct socket *, struct msghdr *, int, int);
1: - int (*socket_getsockname)(struct socket *);
1: - int (*socket_getpeername)(struct socket *);
1: - int (*socket_getsockopt)(struct socket *, int, int);
1: - int (*socket_setsockopt)(struct socket *, int, int);
1: - int (*socket_shutdown)(struct socket *, int);
1: - int (*socket_sock_rcv_skb)(struct sock *, struct sk_buff *);
1: - int (*socket_getpeersec_stream)(struct socket *, char *, int *, unsigned int);
1: - int (*socket_getpeersec_dgram)(struct socket *, struct sk_buff *, u32 *);
1: - int (*sk_alloc_security)(struct sock *, int, gfp_t);
1: - void (*sk_free_security)(struct sock *);
1: - void (*sk_clone_security)(const struct sock *, struct sock *);
1: - void (*sk_getsecid)(struct sock *, u32 *);
1: - void (*sock_graft)(struct sock *, struct socket *);
1: - int (*inet_conn_request)(struct sock *, struct sk_buff *, struct request_sock *);
1: - void (*inet_csk_clone)(struct sock *, const struct request_sock *);
1: - void (*inet_conn_established)(struct sock *, struct sk_buff *);
1: - int (*secmark_relabel_packet)(u32);
1: - void (*secmark_refcount_inc)();
1: - void (*secmark_refcount_dec)();
1: - void (*req_classify_flow)(const struct request_sock *, struct flowi *);
1: - int (*tun_dev_alloc_security)(void **);
1: - void (*tun_dev_free_security)(void *);
1: - int (*tun_dev_create)();
1: - int (*tun_dev_attach_queue)(void *);
1: - int (*tun_dev_attach)(struct sock *, void *);
1: - int (*tun_dev_open)(void *);
1: - int (*sctp_assoc_request)(struct sctp_endpoint *, struct sk_buff *);
1: - int (*sctp_bind_connect)(struct sock *, int, struct sockaddr *, int);
1: - void (*sctp_sk_clone)(struct sctp_endpoint *, struct sock *, struct sock *);
1: - int (*xfrm_policy_alloc_security)(struct xfrm_sec_ctx **, struct xfrm_user_sec_ctx *, gfp_t);
1: - int (*xfrm_policy_clone_security)(struct xfrm_sec_ctx *, struct xfrm_sec_ctx **);
1: - void (*xfrm_policy_free_security)(struct xfrm_sec_ctx *);
1: - int (*xfrm_policy_delete_security)(struct xfrm_sec_ctx *);
1: - int (*xfrm_state_alloc)(struct xfrm_state *, struct xfrm_user_sec_ctx *);
1: - int (*xfrm_state_alloc_acquire)(struct xfrm_state *, struct xfrm_sec_ctx *, u32);
1: - void (*xfrm_state_free_security)(struct xfrm_state *);
1: - int (*xfrm_state_delete_security)(struct xfrm_state *);
1: - int (*xfrm_policy_lookup)(struct xfrm_sec_ctx *, u32, u8);
1: - int (*xfrm_state_pol_flow_match)(struct xfrm_state *, struct xfrm_policy *, const struct flowi *);
1: - int (*xfrm_decode_session)(struct sk_buff *, u32 *, int);
1: - int (*key_alloc)(struct key *, const struct cred *, long unsigned int);
1: - void (*key_free)(struct key *);
1: - int (*key_permission)(key_ref_t, const struct cred *, enum key_need_perm);
1: - int (*key_getsecurity)(struct key *, char **);
1: - int (*audit_rule_init)(u32, u32, char *, void **);
1: - int (*audit_rule_known)(struct audit_krule *);
1: - int (*audit_rule_match)(u32, u32, u32, void *);
1: - void (*audit_rule_free)(void *);
1: - int (*bpf)(int, union bpf_attr *, unsigned int);
1: - int (*bpf_map)(struct bpf_map *, fmode_t);
1: - int (*bpf_prog)(struct bpf_prog *);
1: - int (*bpf_map_alloc_security)(struct bpf_map *);
1: - void (*bpf_map_free_security)(struct bpf_map *);
1: - int (*bpf_prog_alloc_security)(struct bpf_prog_aux *);
1: - void (*bpf_prog_free_security)(struct bpf_prog_aux *);
1: - int (*locked_down)(enum lockdown_reason);
1: - int (*perf_event_open)(struct perf_event_attr *, int);
1: - int (*perf_event_alloc)(struct perf_event *);
1: - void (*perf_event_free)(struct perf_event *);
1: - int (*perf_event_read)(struct perf_event *);
1: - int (*perf_event_write)(struct perf_event *);
1: + int (*binder_set_context_mgr)(struct task_struct *);
1: + int (*binder_transaction)(struct task_struct *, struct task_struct *);
1: + int (*binder_transfer_binder)(struct task_struct *, struct task_struct *);
1: + int (*binder_transfer_file)(struct task_struct *, struct task_struct *,
1: + struct file *);
1: + int (*ptrace_access_check)(struct task_struct *, unsigned int);
1: + int (*ptrace_traceme)(struct task_struct *);
1: + int (*capget)(struct task_struct *, kernel_cap_t *, kernel_cap_t *,
1: + kernel_cap_t *);
1: + int (*capset)(struct cred *, const struct cred *, const kernel_cap_t *,
1: + const kernel_cap_t *, const kernel_cap_t *);
1: + int (*capable)(const struct cred *, struct user_namespace *, int,
1: + unsigned int);
1: + int (*quotactl)(int, int, int, struct super_block *);
1: + int (*quota_on)(struct dentry *);
1: + int (*syslog)(int);
1: + int (*settime)(const struct timespec64 *, const struct timezone *);
1: + int (*vm_enough_memory)(struct mm_struct *, long int);
1: + int (*bprm_creds_for_exec)(struct linux_binprm *);
1: + int (*bprm_creds_from_file)(struct linux_binprm *, struct file *);
1: + int (*bprm_check_security)(struct linux_binprm *);
1: + void (*bprm_committing_creds)(struct linux_binprm *);
1: + void (*bprm_committed_creds)(struct linux_binprm *);
1: + int (*fs_context_dup)(struct fs_context *, struct fs_context *);
1: + int (*fs_context_parse_param)(struct fs_context *, struct fs_parameter *);
1: + int (*sb_alloc_security)(struct super_block *);
1: + void (*sb_free_security)(struct super_block *);
1: + void (*sb_free_mnt_opts)(void *);
1: + int (*sb_eat_lsm_opts)(char *, void **);
1: + int (*sb_remount)(struct super_block *, void *);
1: + int (*sb_kern_mount)(struct super_block *);
1: + int (*sb_show_options)(struct seq_file *, struct super_block *);
1: + int (*sb_statfs)(struct dentry *);
1: + int (*sb_mount)(const char *, const struct path *, const char *,
1: + long unsigned int, void *);
1: + int (*sb_umount)(struct vfsmount *, int);
1: + int (*sb_pivotroot)(const struct path *, const struct path *);
1: + int (*sb_set_mnt_opts)(struct super_block *, void *, long unsigned int,
1: + long unsigned int *);
1: + int (*sb_clone_mnt_opts)(const struct super_block *, struct super_block *,
1: + long unsigned int, long unsigned int *);
1: + int (*sb_add_mnt_opt)(const char *, const char *, int, void **);
1: + int (*move_mount)(const struct path *, const struct path *);
1: + int (*dentry_init_security)(struct dentry *, int, const struct qstr *,
1: + void **, u32 *);
1: + int (*dentry_create_files_as)(struct dentry *, int, struct qstr *,
1: + const struct cred *, struct cred *);
1: + int (*path_unlink)(const struct path *, struct dentry *);
1: + int (*path_mkdir)(const struct path *, struct dentry *, umode_t);
1: + int (*path_rmdir)(const struct path *, struct dentry *);
1: + int (*path_mknod)(const struct path *, struct dentry *, umode_t,
1: + unsigned int);
1: + int (*path_truncate)(const struct path *);
1: + int (*path_symlink)(const struct path *, struct dentry *, const char *);
1: + int (*path_link)(struct dentry *, const struct path *, struct dentry *);
1: + int (*path_rename)(const struct path *, struct dentry *, const struct path *,
1: + struct dentry *);
1: + int (*path_chmod)(const struct path *, umode_t);
1: + int (*path_chown)(const struct path *, kuid_t, kgid_t);
1: + int (*path_chroot)(const struct path *);
1: + int (*path_notify)(const struct path *, u64, unsigned int);
1: + int (*inode_alloc_security)(struct inode *);
1: + void (*inode_free_security)(struct inode *);
1: + int (*inode_init_security)(struct inode *, struct inode *,
1: + const struct qstr *, const char **, void **,
1: + size_t *);
1: + int (*inode_create)(struct inode *, struct dentry *, umode_t);
1: + int (*inode_link)(struct dentry *, struct inode *, struct dentry *);
1: + int (*inode_unlink)(struct inode *, struct dentry *);
1: + int (*inode_symlink)(struct inode *, struct dentry *, const char *);
1: + int (*inode_mkdir)(struct inode *, struct dentry *, umode_t);
1: + int (*inode_rmdir)(struct inode *, struct dentry *);
1: + int (*inode_mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: + int (*inode_rename)(struct inode *, struct dentry *, struct inode *,
1: + struct dentry *);
1: + int (*inode_readlink)(struct dentry *);
1: + int (*inode_follow_link)(struct dentry *, struct inode *, bool);
1: + int (*inode_permission)(struct inode *, int);
1: + int (*inode_setattr)(struct dentry *, struct iattr *);
1: + int (*inode_getattr)(const struct path *);
1: + int (*inode_setxattr)(struct dentry *, const char *, const void *, size_t,
1: + int);
1: + void (*inode_post_setxattr)(struct dentry *, const char *, const void *,
1: + size_t, int);
1: + int (*inode_getxattr)(struct dentry *, const char *);
1: + int (*inode_listxattr)(struct dentry *);
1: + int (*inode_removexattr)(struct dentry *, const char *);
1: + int (*inode_need_killpriv)(struct dentry *);
1: + int (*inode_killpriv)(struct dentry *);
1: + int (*inode_getsecurity)(struct inode *, const char *, void **, bool);
1: + int (*inode_setsecurity)(struct inode *, const char *, const void *, size_t,
1: + int);
1: + int (*inode_listsecurity)(struct inode *, char *, size_t);
1: + void (*inode_getsecid)(struct inode *, u32 *);
1: + int (*inode_copy_up)(struct dentry *, struct cred **);
1: + int (*inode_copy_up_xattr)(const char *);
1: + int (*kernfs_init_security)(struct kernfs_node *, struct kernfs_node *);
1: + int (*file_permission)(struct file *, int);
1: + int (*file_alloc_security)(struct file *);
1: + void (*file_free_security)(struct file *);
1: + int (*file_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*mmap_addr)(long unsigned int);
1: + int (*mmap_file)(struct file *, long unsigned int, long unsigned int,
1: + long unsigned int);
1: + int (*file_mprotect)(struct vm_area_struct *, long unsigned int,
1: + long unsigned int);
1: + int (*file_lock)(struct file *, unsigned int);
1: + int (*file_fcntl)(struct file *, unsigned int, long unsigned int);
1: + void (*file_set_fowner)(struct file *);
1: + int (*file_send_sigiotask)(struct task_struct *, struct fown_struct *, int);
1: + int (*file_receive)(struct file *);
1: + int (*file_open)(struct file *);
1: + int (*task_alloc)(struct task_struct *, long unsigned int);
1: + void (*task_free)(struct task_struct *);
1: + int (*cred_alloc_blank)(struct cred *, gfp_t);
1: + void (*cred_free)(struct cred *);
1: + int (*cred_prepare)(struct cred *, const struct cred *, gfp_t);
1: + void (*cred_transfer)(struct cred *, const struct cred *);
1: + void (*cred_getsecid)(const struct cred *, u32 *);
1: + int (*kernel_act_as)(struct cred *, u32);
1: + int (*kernel_create_files_as)(struct cred *, struct inode *);
1: + int (*kernel_module_request)(char *);
1: + int (*kernel_load_data)(enum kernel_load_data_id, bool);
1: + int (*kernel_post_load_data)(char *, loff_t, enum kernel_load_data_id,
1: + char *);
1: + int (*kernel_read_file)(struct file *, enum kernel_read_file_id, bool);
1: + int (*kernel_post_read_file)(struct file *, char *, loff_t,
1: + enum kernel_read_file_id);
1: + int (*task_fix_setuid)(struct cred *, const struct cred *, int);
1: + int (*task_fix_setgid)(struct cred *, const struct cred *, int);
1: + int (*task_setpgid)(struct task_struct *, pid_t);
1: + int (*task_getpgid)(struct task_struct *);
1: + int (*task_getsid)(struct task_struct *);
1: + void (*task_getsecid)(struct task_struct *, u32 *);
1: + int (*task_setnice)(struct task_struct *, int);
1: + int (*task_setioprio)(struct task_struct *, int);
1: + int (*task_getioprio)(struct task_struct *);
1: + int (*task_prlimit)(const struct cred *, const struct cred *, unsigned int);
1: + int (*task_setrlimit)(struct task_struct *, unsigned int, struct rlimit *);
1: + int (*task_setscheduler)(struct task_struct *);
1: + int (*task_getscheduler)(struct task_struct *);
1: + int (*task_movememory)(struct task_struct *);
1: + int (*task_kill)(struct task_struct *, struct kernel_siginfo *, int,
1: + const struct cred *);
1: + int (*task_prctl)(int, long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int);
1: + void (*task_to_inode)(struct task_struct *, struct inode *);
1: + int (*ipc_permission)(struct kern_ipc_perm *, short int);
1: + void (*ipc_getsecid)(struct kern_ipc_perm *, u32 *);
1: + int (*msg_msg_alloc_security)(struct msg_msg *);
1: + void (*msg_msg_free_security)(struct msg_msg *);
1: + int (*msg_queue_alloc_security)(struct kern_ipc_perm *);
1: + void (*msg_queue_free_security)(struct kern_ipc_perm *);
1: + int (*msg_queue_associate)(struct kern_ipc_perm *, int);
1: + int (*msg_queue_msgctl)(struct kern_ipc_perm *, int);
1: + int (*msg_queue_msgsnd)(struct kern_ipc_perm *, struct msg_msg *, int);
1: + int (*msg_queue_msgrcv)(struct kern_ipc_perm *, struct msg_msg *,
1: + struct task_struct *, long int, int);
1: + int (*shm_alloc_security)(struct kern_ipc_perm *);
1: + void (*shm_free_security)(struct kern_ipc_perm *);
1: + int (*shm_associate)(struct kern_ipc_perm *, int);
1: + int (*shm_shmctl)(struct kern_ipc_perm *, int);
1: + int (*shm_shmat)(struct kern_ipc_perm *, char *, int);
1: + int (*sem_alloc_security)(struct kern_ipc_perm *);
1: + void (*sem_free_security)(struct kern_ipc_perm *);
1: + int (*sem_associate)(struct kern_ipc_perm *, int);
1: + int (*sem_semctl)(struct kern_ipc_perm *, int);
1: + int (*sem_semop)(struct kern_ipc_perm *, struct sembuf *, unsigned int, int);
1: + int (*netlink_send)(struct sock *, struct sk_buff *);
1: + void (*d_instantiate)(struct dentry *, struct inode *);
1: + int (*getprocattr)(struct task_struct *, char *, char **);
1: + int (*setprocattr)(const char *, void *, size_t);
1: + int (*ismaclabel)(const char *);
1: + int (*secid_to_secctx)(u32, char **, u32 *);
1: + int (*secctx_to_secid)(const char *, u32, u32 *);
1: + void (*release_secctx)(char *, u32);
1: + void (*inode_invalidate_secctx)(struct inode *);
1: + int (*inode_notifysecctx)(struct inode *, void *, u32);
1: + int (*inode_setsecctx)(struct dentry *, void *, u32);
1: + int (*inode_getsecctx)(struct inode *, void **, u32 *);
1: + int (*post_notification)(const struct cred *, const struct cred *,
1: + struct watch_notification *);
1: + int (*watch_key)(struct key *);
1: + int (*unix_stream_connect)(struct sock *, struct sock *, struct sock *);
1: + int (*unix_may_send)(struct socket *, struct socket *);
1: + int (*socket_create)(int, int, int, int);
1: + int (*socket_post_create)(struct socket *, int, int, int, int);
1: + int (*socket_socketpair)(struct socket *, struct socket *);
1: + int (*socket_bind)(struct socket *, struct sockaddr *, int);
1: + int (*socket_connect)(struct socket *, struct sockaddr *, int);
1: + int (*socket_listen)(struct socket *, int);
1: + int (*socket_accept)(struct socket *, struct socket *);
1: + int (*socket_sendmsg)(struct socket *, struct msghdr *, int);
1: + int (*socket_recvmsg)(struct socket *, struct msghdr *, int, int);
1: + int (*socket_getsockname)(struct socket *);
1: + int (*socket_getpeername)(struct socket *);
1: + int (*socket_getsockopt)(struct socket *, int, int);
1: + int (*socket_setsockopt)(struct socket *, int, int);
1: + int (*socket_shutdown)(struct socket *, int);
1: + int (*socket_sock_rcv_skb)(struct sock *, struct sk_buff *);
1: + int (*socket_getpeersec_stream)(struct socket *, char *, int *, unsigned int);
1: + int (*socket_getpeersec_dgram)(struct socket *, struct sk_buff *, u32 *);
1: + int (*sk_alloc_security)(struct sock *, int, gfp_t);
1: + void (*sk_free_security)(struct sock *);
1: + void (*sk_clone_security)(const struct sock *, struct sock *);
1: + void (*sk_getsecid)(struct sock *, u32 *);
1: + void (*sock_graft)(struct sock *, struct socket *);
1: + int (*inet_conn_request)(struct sock *, struct sk_buff *,
1: + struct request_sock *);
1: + void (*inet_csk_clone)(struct sock *, const struct request_sock *);
1: + void (*inet_conn_established)(struct sock *, struct sk_buff *);
1: + int (*secmark_relabel_packet)(u32);
1: + void (*secmark_refcount_inc)();
1: + void (*secmark_refcount_dec)();
1: + void (*req_classify_flow)(const struct request_sock *, struct flowi *);
1: + int (*tun_dev_alloc_security)(void **);
1: + void (*tun_dev_free_security)(void *);
1: + int (*tun_dev_create)();
1: + int (*tun_dev_attach_queue)(void *);
1: + int (*tun_dev_attach)(struct sock *, void *);
1: + int (*tun_dev_open)(void *);
1: + int (*sctp_assoc_request)(struct sctp_endpoint *, struct sk_buff *);
1: + int (*sctp_bind_connect)(struct sock *, int, struct sockaddr *, int);
1: + void (*sctp_sk_clone)(struct sctp_endpoint *, struct sock *, struct sock *);
1: + int (*xfrm_policy_alloc_security)(struct xfrm_sec_ctx **,
1: + struct xfrm_user_sec_ctx *, gfp_t);
1: + int (*xfrm_policy_clone_security)(struct xfrm_sec_ctx *,
1: + struct xfrm_sec_ctx **);
1: + void (*xfrm_policy_free_security)(struct xfrm_sec_ctx *);
1: + int (*xfrm_policy_delete_security)(struct xfrm_sec_ctx *);
1: + int (*xfrm_state_alloc)(struct xfrm_state *, struct xfrm_user_sec_ctx *);
1: + int (*xfrm_state_alloc_acquire)(struct xfrm_state *, struct xfrm_sec_ctx *,
1: + u32);
1: + void (*xfrm_state_free_security)(struct xfrm_state *);
1: + int (*xfrm_state_delete_security)(struct xfrm_state *);
1: + int (*xfrm_policy_lookup)(struct xfrm_sec_ctx *, u32, u8);
1: + int (*xfrm_state_pol_flow_match)(struct xfrm_state *, struct xfrm_policy *,
1: + const struct flowi *);
1: + int (*xfrm_decode_session)(struct sk_buff *, u32 *, int);
1: + int (*key_alloc)(struct key *, const struct cred *, long unsigned int);
1: + void (*key_free)(struct key *);
1: + int (*key_permission)(key_ref_t, const struct cred *, enum key_need_perm);
1: + int (*key_getsecurity)(struct key *, char **);
1: + int (*audit_rule_init)(u32, u32, char *, void **);
1: + int (*audit_rule_known)(struct audit_krule *);
1: + int (*audit_rule_match)(u32, u32, u32, void *);
1: + void (*audit_rule_free)(void *);
1: + int (*bpf)(int, union bpf_attr *, unsigned int);
1: + int (*bpf_map)(struct bpf_map *, fmode_t);
1: + int (*bpf_prog)(struct bpf_prog *);
1: + int (*bpf_map_alloc_security)(struct bpf_map *);
1: + void (*bpf_map_free_security)(struct bpf_map *);
1: + int (*bpf_prog_alloc_security)(struct bpf_prog_aux *);
1: + void (*bpf_prog_free_security)(struct bpf_prog_aux *);
1: + int (*locked_down)(enum lockdown_reason);
1: + int (*perf_event_open)(struct perf_event_attr *, int);
1: + int (*perf_event_alloc)(struct perf_event *);
1: + void (*perf_event_free)(struct perf_event *);
1: + int (*perf_event_read)(struct perf_event *);
1: + int (*perf_event_write)(struct perf_event *);
1: };
1:
1: struct security_hook_heads {
1: - struct hlist_head binder_set_context_mgr;
1: - struct hlist_head binder_transaction;
1: - struct hlist_head binder_transfer_binder;
1: - struct hlist_head binder_transfer_file;
1: - struct hlist_head ptrace_access_check;
1: - struct hlist_head ptrace_traceme;
1: - struct hlist_head capget;
1: - struct hlist_head capset;
1: - struct hlist_head capable;
1: - struct hlist_head quotactl;
1: - struct hlist_head quota_on;
1: - struct hlist_head syslog;
1: - struct hlist_head settime;
1: - struct hlist_head vm_enough_memory;
1: - struct hlist_head bprm_creds_for_exec;
1: - struct hlist_head bprm_creds_from_file;
1: - struct hlist_head bprm_check_security;
1: - struct hlist_head bprm_committing_creds;
1: - struct hlist_head bprm_committed_creds;
1: - struct hlist_head fs_context_dup;
1: - struct hlist_head fs_context_parse_param;
1: - struct hlist_head sb_alloc_security;
1: - struct hlist_head sb_free_security;
1: - struct hlist_head sb_free_mnt_opts;
1: - struct hlist_head sb_eat_lsm_opts;
1: - struct hlist_head sb_remount;
1: - struct hlist_head sb_kern_mount;
1: - struct hlist_head sb_show_options;
1: - struct hlist_head sb_statfs;
1: - struct hlist_head sb_mount;
1: - struct hlist_head sb_umount;
1: - struct hlist_head sb_pivotroot;
1: - struct hlist_head sb_set_mnt_opts;
1: - struct hlist_head sb_clone_mnt_opts;
1: - struct hlist_head sb_add_mnt_opt;
1: - struct hlist_head move_mount;
1: - struct hlist_head dentry_init_security;
1: - struct hlist_head dentry_create_files_as;
1: - struct hlist_head path_unlink;
1: - struct hlist_head path_mkdir;
1: - struct hlist_head path_rmdir;
1: - struct hlist_head path_mknod;
1: - struct hlist_head path_truncate;
1: - struct hlist_head path_symlink;
1: - struct hlist_head path_link;
1: - struct hlist_head path_rename;
1: - struct hlist_head path_chmod;
1: - struct hlist_head path_chown;
1: - struct hlist_head path_chroot;
1: - struct hlist_head path_notify;
1: - struct hlist_head inode_alloc_security;
1: - struct hlist_head inode_free_security;
1: - struct hlist_head inode_init_security;
1: - struct hlist_head inode_create;
1: - struct hlist_head inode_link;
1: - struct hlist_head inode_unlink;
1: - struct hlist_head inode_symlink;
1: - struct hlist_head inode_mkdir;
1: - struct hlist_head inode_rmdir;
1: - struct hlist_head inode_mknod;
1: - struct hlist_head inode_rename;
1: - struct hlist_head inode_readlink;
1: - struct hlist_head inode_follow_link;
1: - struct hlist_head inode_permission;
1: - struct hlist_head inode_setattr;
1: - struct hlist_head inode_getattr;
1: - struct hlist_head inode_setxattr;
1: - struct hlist_head inode_post_setxattr;
1: - struct hlist_head inode_getxattr;
1: - struct hlist_head inode_listxattr;
1: - struct hlist_head inode_removexattr;
1: - struct hlist_head inode_need_killpriv;
1: - struct hlist_head inode_killpriv;
1: - struct hlist_head inode_getsecurity;
1: - struct hlist_head inode_setsecurity;
1: - struct hlist_head inode_listsecurity;
1: - struct hlist_head inode_getsecid;
1: - struct hlist_head inode_copy_up;
1: - struct hlist_head inode_copy_up_xattr;
1: - struct hlist_head kernfs_init_security;
1: - struct hlist_head file_permission;
1: - struct hlist_head file_alloc_security;
1: - struct hlist_head file_free_security;
1: - struct hlist_head file_ioctl;
1: - struct hlist_head mmap_addr;
1: - struct hlist_head mmap_file;
1: - struct hlist_head file_mprotect;
1: - struct hlist_head file_lock;
1: - struct hlist_head file_fcntl;
1: - struct hlist_head file_set_fowner;
1: - struct hlist_head file_send_sigiotask;
1: - struct hlist_head file_receive;
1: - struct hlist_head file_open;
1: - struct hlist_head task_alloc;
1: - struct hlist_head task_free;
1: - struct hlist_head cred_alloc_blank;
1: - struct hlist_head cred_free;
1: - struct hlist_head cred_prepare;
1: - struct hlist_head cred_transfer;
1: - struct hlist_head cred_getsecid;
1: - struct hlist_head kernel_act_as;
1: - struct hlist_head kernel_create_files_as;
1: - struct hlist_head kernel_module_request;
1: - struct hlist_head kernel_load_data;
1: - struct hlist_head kernel_post_load_data;
1: - struct hlist_head kernel_read_file;
1: - struct hlist_head kernel_post_read_file;
1: - struct hlist_head task_fix_setuid;
1: - struct hlist_head task_fix_setgid;
1: - struct hlist_head task_setpgid;
1: - struct hlist_head task_getpgid;
1: - struct hlist_head task_getsid;
1: - struct hlist_head task_getsecid;
1: - struct hlist_head task_setnice;
1: - struct hlist_head task_setioprio;
1: - struct hlist_head task_getioprio;
1: - struct hlist_head task_prlimit;
1: - struct hlist_head task_setrlimit;
1: - struct hlist_head task_setscheduler;
1: - struct hlist_head task_getscheduler;
1: - struct hlist_head task_movememory;
1: - struct hlist_head task_kill;
1: - struct hlist_head task_prctl;
1: - struct hlist_head task_to_inode;
1: - struct hlist_head ipc_permission;
1: - struct hlist_head ipc_getsecid;
1: - struct hlist_head msg_msg_alloc_security;
1: - struct hlist_head msg_msg_free_security;
1: - struct hlist_head msg_queue_alloc_security;
1: - struct hlist_head msg_queue_free_security;
1: - struct hlist_head msg_queue_associate;
1: - struct hlist_head msg_queue_msgctl;
1: - struct hlist_head msg_queue_msgsnd;
1: - struct hlist_head msg_queue_msgrcv;
1: - struct hlist_head shm_alloc_security;
1: - struct hlist_head shm_free_security;
1: - struct hlist_head shm_associate;
1: - struct hlist_head shm_shmctl;
1: - struct hlist_head shm_shmat;
1: - struct hlist_head sem_alloc_security;
1: - struct hlist_head sem_free_security;
1: - struct hlist_head sem_associate;
1: - struct hlist_head sem_semctl;
1: - struct hlist_head sem_semop;
1: - struct hlist_head netlink_send;
1: - struct hlist_head d_instantiate;
1: - struct hlist_head getprocattr;
1: - struct hlist_head setprocattr;
1: - struct hlist_head ismaclabel;
1: - struct hlist_head secid_to_secctx;
1: - struct hlist_head secctx_to_secid;
1: - struct hlist_head release_secctx;
1: - struct hlist_head inode_invalidate_secctx;
1: - struct hlist_head inode_notifysecctx;
1: - struct hlist_head inode_setsecctx;
1: - struct hlist_head inode_getsecctx;
1: - struct hlist_head post_notification;
1: - struct hlist_head watch_key;
1: - struct hlist_head unix_stream_connect;
1: - struct hlist_head unix_may_send;
1: - struct hlist_head socket_create;
1: - struct hlist_head socket_post_create;
1: - struct hlist_head socket_socketpair;
1: - struct hlist_head socket_bind;
1: - struct hlist_head socket_connect;
1: - struct hlist_head socket_listen;
1: - struct hlist_head socket_accept;
1: - struct hlist_head socket_sendmsg;
1: - struct hlist_head socket_recvmsg;
1: - struct hlist_head socket_getsockname;
1: - struct hlist_head socket_getpeername;
1: - struct hlist_head socket_getsockopt;
1: - struct hlist_head socket_setsockopt;
1: - struct hlist_head socket_shutdown;
1: - struct hlist_head socket_sock_rcv_skb;
1: - struct hlist_head socket_getpeersec_stream;
1: - struct hlist_head socket_getpeersec_dgram;
1: - struct hlist_head sk_alloc_security;
1: - struct hlist_head sk_free_security;
1: - struct hlist_head sk_clone_security;
1: - struct hlist_head sk_getsecid;
1: - struct hlist_head sock_graft;
1: - struct hlist_head inet_conn_request;
1: - struct hlist_head inet_csk_clone;
1: - struct hlist_head inet_conn_established;
1: - struct hlist_head secmark_relabel_packet;
1: - struct hlist_head secmark_refcount_inc;
1: - struct hlist_head secmark_refcount_dec;
1: - struct hlist_head req_classify_flow;
1: - struct hlist_head tun_dev_alloc_security;
1: - struct hlist_head tun_dev_free_security;
1: - struct hlist_head tun_dev_create;
1: - struct hlist_head tun_dev_attach_queue;
1: - struct hlist_head tun_dev_attach;
1: - struct hlist_head tun_dev_open;
1: - struct hlist_head sctp_assoc_request;
1: - struct hlist_head sctp_bind_connect;
1: - struct hlist_head sctp_sk_clone;
1: - struct hlist_head xfrm_policy_alloc_security;
1: - struct hlist_head xfrm_policy_clone_security;
1: - struct hlist_head xfrm_policy_free_security;
1: - struct hlist_head xfrm_policy_delete_security;
1: - struct hlist_head xfrm_state_alloc;
1: - struct hlist_head xfrm_state_alloc_acquire;
1: - struct hlist_head xfrm_state_free_security;
1: - struct hlist_head xfrm_state_delete_security;
1: - struct hlist_head xfrm_policy_lookup;
1: - struct hlist_head xfrm_state_pol_flow_match;
1: - struct hlist_head xfrm_decode_session;
1: - struct hlist_head key_alloc;
1: - struct hlist_head key_free;
1: - struct hlist_head key_permission;
1: - struct hlist_head key_getsecurity;
1: - struct hlist_head audit_rule_init;
1: - struct hlist_head audit_rule_known;
1: - struct hlist_head audit_rule_match;
1: - struct hlist_head audit_rule_free;
1: - struct hlist_head bpf;
1: - struct hlist_head bpf_map;
1: - struct hlist_head bpf_prog;
1: - struct hlist_head bpf_map_alloc_security;
1: - struct hlist_head bpf_map_free_security;
1: - struct hlist_head bpf_prog_alloc_security;
1: - struct hlist_head bpf_prog_free_security;
1: - struct hlist_head locked_down;
1: - struct hlist_head perf_event_open;
1: - struct hlist_head perf_event_alloc;
1: - struct hlist_head perf_event_free;
1: - struct hlist_head perf_event_read;
1: - struct hlist_head perf_event_write;
1: + struct hlist_head binder_set_context_mgr;
1: + struct hlist_head binder_transaction;
1: + struct hlist_head binder_transfer_binder;
1: + struct hlist_head binder_transfer_file;
1: + struct hlist_head ptrace_access_check;
1: + struct hlist_head ptrace_traceme;
1: + struct hlist_head capget;
1: + struct hlist_head capset;
1: + struct hlist_head capable;
1: + struct hlist_head quotactl;
1: + struct hlist_head quota_on;
1: + struct hlist_head syslog;
1: + struct hlist_head settime;
1: + struct hlist_head vm_enough_memory;
1: + struct hlist_head bprm_creds_for_exec;
1: + struct hlist_head bprm_creds_from_file;
1: + struct hlist_head bprm_check_security;
1: + struct hlist_head bprm_committing_creds;
1: + struct hlist_head bprm_committed_creds;
1: + struct hlist_head fs_context_dup;
1: + struct hlist_head fs_context_parse_param;
1: + struct hlist_head sb_alloc_security;
1: + struct hlist_head sb_free_security;
1: + struct hlist_head sb_free_mnt_opts;
1: + struct hlist_head sb_eat_lsm_opts;
1: + struct hlist_head sb_remount;
1: + struct hlist_head sb_kern_mount;
1: + struct hlist_head sb_show_options;
1: + struct hlist_head sb_statfs;
1: + struct hlist_head sb_mount;
1: + struct hlist_head sb_umount;
1: + struct hlist_head sb_pivotroot;
1: + struct hlist_head sb_set_mnt_opts;
1: + struct hlist_head sb_clone_mnt_opts;
1: + struct hlist_head sb_add_mnt_opt;
1: + struct hlist_head move_mount;
1: + struct hlist_head dentry_init_security;
1: + struct hlist_head dentry_create_files_as;
1: + struct hlist_head path_unlink;
1: + struct hlist_head path_mkdir;
1: + struct hlist_head path_rmdir;
1: + struct hlist_head path_mknod;
1: + struct hlist_head path_truncate;
1: + struct hlist_head path_symlink;
1: + struct hlist_head path_link;
1: + struct hlist_head path_rename;
1: + struct hlist_head path_chmod;
1: + struct hlist_head path_chown;
1: + struct hlist_head path_chroot;
1: + struct hlist_head path_notify;
1: + struct hlist_head inode_alloc_security;
1: + struct hlist_head inode_free_security;
1: + struct hlist_head inode_init_security;
1: + struct hlist_head inode_create;
1: + struct hlist_head inode_link;
1: + struct hlist_head inode_unlink;
1: + struct hlist_head inode_symlink;
1: + struct hlist_head inode_mkdir;
1: + struct hlist_head inode_rmdir;
1: + struct hlist_head inode_mknod;
1: + struct hlist_head inode_rename;
1: + struct hlist_head inode_readlink;
1: + struct hlist_head inode_follow_link;
1: + struct hlist_head inode_permission;
1: + struct hlist_head inode_setattr;
1: + struct hlist_head inode_getattr;
1: + struct hlist_head inode_setxattr;
1: + struct hlist_head inode_post_setxattr;
1: + struct hlist_head inode_getxattr;
1: + struct hlist_head inode_listxattr;
1: + struct hlist_head inode_removexattr;
1: + struct hlist_head inode_need_killpriv;
1: + struct hlist_head inode_killpriv;
1: + struct hlist_head inode_getsecurity;
1: + struct hlist_head inode_setsecurity;
1: + struct hlist_head inode_listsecurity;
1: + struct hlist_head inode_getsecid;
1: + struct hlist_head inode_copy_up;
1: + struct hlist_head inode_copy_up_xattr;
1: + struct hlist_head kernfs_init_security;
1: + struct hlist_head file_permission;
1: + struct hlist_head file_alloc_security;
1: + struct hlist_head file_free_security;
1: + struct hlist_head file_ioctl;
1: + struct hlist_head mmap_addr;
1: + struct hlist_head mmap_file;
1: + struct hlist_head file_mprotect;
1: + struct hlist_head file_lock;
1: + struct hlist_head file_fcntl;
1: + struct hlist_head file_set_fowner;
1: + struct hlist_head file_send_sigiotask;
1: + struct hlist_head file_receive;
1: + struct hlist_head file_open;
1: + struct hlist_head task_alloc;
1: + struct hlist_head task_free;
1: + struct hlist_head cred_alloc_blank;
1: + struct hlist_head cred_free;
1: + struct hlist_head cred_prepare;
1: + struct hlist_head cred_transfer;
1: + struct hlist_head cred_getsecid;
1: + struct hlist_head kernel_act_as;
1: + struct hlist_head kernel_create_files_as;
1: + struct hlist_head kernel_module_request;
1: + struct hlist_head kernel_load_data;
1: + struct hlist_head kernel_post_load_data;
1: + struct hlist_head kernel_read_file;
1: + struct hlist_head kernel_post_read_file;
1: + struct hlist_head task_fix_setuid;
1: + struct hlist_head task_fix_setgid;
1: + struct hlist_head task_setpgid;
1: + struct hlist_head task_getpgid;
1: + struct hlist_head task_getsid;
1: + struct hlist_head task_getsecid;
1: + struct hlist_head task_setnice;
1: + struct hlist_head task_setioprio;
1: + struct hlist_head task_getioprio;
1: + struct hlist_head task_prlimit;
1: + struct hlist_head task_setrlimit;
1: + struct hlist_head task_setscheduler;
1: + struct hlist_head task_getscheduler;
1: + struct hlist_head task_movememory;
1: + struct hlist_head task_kill;
1: + struct hlist_head task_prctl;
1: + struct hlist_head task_to_inode;
1: + struct hlist_head ipc_permission;
1: + struct hlist_head ipc_getsecid;
1: + struct hlist_head msg_msg_alloc_security;
1: + struct hlist_head msg_msg_free_security;
1: + struct hlist_head msg_queue_alloc_security;
1: + struct hlist_head msg_queue_free_security;
1: + struct hlist_head msg_queue_associate;
1: + struct hlist_head msg_queue_msgctl;
1: + struct hlist_head msg_queue_msgsnd;
1: + struct hlist_head msg_queue_msgrcv;
1: + struct hlist_head shm_alloc_security;
1: + struct hlist_head shm_free_security;
1: + struct hlist_head shm_associate;
1: + struct hlist_head shm_shmctl;
1: + struct hlist_head shm_shmat;
1: + struct hlist_head sem_alloc_security;
1: + struct hlist_head sem_free_security;
1: + struct hlist_head sem_associate;
1: + struct hlist_head sem_semctl;
1: + struct hlist_head sem_semop;
1: + struct hlist_head netlink_send;
1: + struct hlist_head d_instantiate;
1: + struct hlist_head getprocattr;
1: + struct hlist_head setprocattr;
1: + struct hlist_head ismaclabel;
1: + struct hlist_head secid_to_secctx;
1: + struct hlist_head secctx_to_secid;
1: + struct hlist_head release_secctx;
1: + struct hlist_head inode_invalidate_secctx;
1: + struct hlist_head inode_notifysecctx;
1: + struct hlist_head inode_setsecctx;
1: + struct hlist_head inode_getsecctx;
1: + struct hlist_head post_notification;
1: + struct hlist_head watch_key;
1: + struct hlist_head unix_stream_connect;
1: + struct hlist_head unix_may_send;
1: + struct hlist_head socket_create;
1: + struct hlist_head socket_post_create;
1: + struct hlist_head socket_socketpair;
1: + struct hlist_head socket_bind;
1: + struct hlist_head socket_connect;
1: + struct hlist_head socket_listen;
1: + struct hlist_head socket_accept;
1: + struct hlist_head socket_sendmsg;
1: + struct hlist_head socket_recvmsg;
1: + struct hlist_head socket_getsockname;
1: + struct hlist_head socket_getpeername;
1: + struct hlist_head socket_getsockopt;
1: + struct hlist_head socket_setsockopt;
1: + struct hlist_head socket_shutdown;
1: + struct hlist_head socket_sock_rcv_skb;
1: + struct hlist_head socket_getpeersec_stream;
1: + struct hlist_head socket_getpeersec_dgram;
1: + struct hlist_head sk_alloc_security;
1: + struct hlist_head sk_free_security;
1: + struct hlist_head sk_clone_security;
1: + struct hlist_head sk_getsecid;
1: + struct hlist_head sock_graft;
1: + struct hlist_head inet_conn_request;
1: + struct hlist_head inet_csk_clone;
1: + struct hlist_head inet_conn_established;
1: + struct hlist_head secmark_relabel_packet;
1: + struct hlist_head secmark_refcount_inc;
1: + struct hlist_head secmark_refcount_dec;
1: + struct hlist_head req_classify_flow;
1: + struct hlist_head tun_dev_alloc_security;
1: + struct hlist_head tun_dev_free_security;
1: + struct hlist_head tun_dev_create;
1: + struct hlist_head tun_dev_attach_queue;
1: + struct hlist_head tun_dev_attach;
1: + struct hlist_head tun_dev_open;
1: + struct hlist_head sctp_assoc_request;
1: + struct hlist_head sctp_bind_connect;
1: + struct hlist_head sctp_sk_clone;
1: + struct hlist_head xfrm_policy_alloc_security;
1: + struct hlist_head xfrm_policy_clone_security;
1: + struct hlist_head xfrm_policy_free_security;
1: + struct hlist_head xfrm_policy_delete_security;
1: + struct hlist_head xfrm_state_alloc;
1: + struct hlist_head xfrm_state_alloc_acquire;
1: + struct hlist_head xfrm_state_free_security;
1: + struct hlist_head xfrm_state_delete_security;
1: + struct hlist_head xfrm_policy_lookup;
1: + struct hlist_head xfrm_state_pol_flow_match;
1: + struct hlist_head xfrm_decode_session;
1: + struct hlist_head key_alloc;
1: + struct hlist_head key_free;
1: + struct hlist_head key_permission;
1: + struct hlist_head key_getsecurity;
1: + struct hlist_head audit_rule_init;
1: + struct hlist_head audit_rule_known;
1: + struct hlist_head audit_rule_match;
1: + struct hlist_head audit_rule_free;
1: + struct hlist_head bpf;
1: + struct hlist_head bpf_map;
1: + struct hlist_head bpf_prog;
1: + struct hlist_head bpf_map_alloc_security;
1: + struct hlist_head bpf_map_free_security;
1: + struct hlist_head bpf_prog_alloc_security;
1: + struct hlist_head bpf_prog_free_security;
1: + struct hlist_head locked_down;
1: + struct hlist_head perf_event_open;
1: + struct hlist_head perf_event_alloc;
1: + struct hlist_head perf_event_free;
1: + struct hlist_head perf_event_read;
1: + struct hlist_head perf_event_write;
1: };
1:
1: struct security_hook_list {
1: - struct hlist_node list;
1: - struct hlist_head *head;
1: - union security_list_options hook;
1: - char *lsm;
1: + struct hlist_node list;
1: + struct hlist_head *head;
1: + union security_list_options hook;
1: + char *lsm;
1: };
1:
1: enum lsm_order {
1: - LSM_ORDER_FIRST = 4294967295,
1: - LSM_ORDER_MUTABLE = 0,
1: + LSM_ORDER_FIRST = 4294967295,
1: + LSM_ORDER_MUTABLE = 0,
1: };
1:
1: struct lsm_info {
1: - const char *name;
1: - enum lsm_order order;
1: - long unsigned int flags;
1: - int *enabled;
1: - int (*init)();
1: - struct lsm_blob_sizes *blobs;
1: + const char *name;
1: + enum lsm_order order;
1: + long unsigned int flags;
1: + int *enabled;
1: + int (*init)();
1: + struct lsm_blob_sizes *blobs;
1: };
1:
1: enum lsm_event {
1: - LSM_POLICY_CHANGE = 0,
1: + LSM_POLICY_CHANGE = 0,
1: };
1:
1: typedef int (*initxattrs)(struct inode *, const struct xattr *, void *);
1:
1: enum ib_uverbs_write_cmds {
1: - IB_USER_VERBS_CMD_GET_CONTEXT = 0,
1: - IB_USER_VERBS_CMD_QUERY_DEVICE = 1,
1: - IB_USER_VERBS_CMD_QUERY_PORT = 2,
1: - IB_USER_VERBS_CMD_ALLOC_PD = 3,
1: - IB_USER_VERBS_CMD_DEALLOC_PD = 4,
1: - IB_USER_VERBS_CMD_CREATE_AH = 5,
1: - IB_USER_VERBS_CMD_MODIFY_AH = 6,
1: - IB_USER_VERBS_CMD_QUERY_AH = 7,
1: - IB_USER_VERBS_CMD_DESTROY_AH = 8,
1: - IB_USER_VERBS_CMD_REG_MR = 9,
1: - IB_USER_VERBS_CMD_REG_SMR = 10,
1: - IB_USER_VERBS_CMD_REREG_MR = 11,
1: - IB_USER_VERBS_CMD_QUERY_MR = 12,
1: - IB_USER_VERBS_CMD_DEREG_MR = 13,
1: - IB_USER_VERBS_CMD_ALLOC_MW = 14,
1: - IB_USER_VERBS_CMD_BIND_MW = 15,
1: - IB_USER_VERBS_CMD_DEALLOC_MW = 16,
1: - IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL = 17,
1: - IB_USER_VERBS_CMD_CREATE_CQ = 18,
1: - IB_USER_VERBS_CMD_RESIZE_CQ = 19,
1: - IB_USER_VERBS_CMD_DESTROY_CQ = 20,
1: - IB_USER_VERBS_CMD_POLL_CQ = 21,
1: - IB_USER_VERBS_CMD_PEEK_CQ = 22,
1: - IB_USER_VERBS_CMD_REQ_NOTIFY_CQ = 23,
1: - IB_USER_VERBS_CMD_CREATE_QP = 24,
1: - IB_USER_VERBS_CMD_QUERY_QP = 25,
1: - IB_USER_VERBS_CMD_MODIFY_QP = 26,
1: - IB_USER_VERBS_CMD_DESTROY_QP = 27,
1: - IB_USER_VERBS_CMD_POST_SEND = 28,
1: - IB_USER_VERBS_CMD_POST_RECV = 29,
1: - IB_USER_VERBS_CMD_ATTACH_MCAST = 30,
1: - IB_USER_VERBS_CMD_DETACH_MCAST = 31,
1: - IB_USER_VERBS_CMD_CREATE_SRQ = 32,
1: - IB_USER_VERBS_CMD_MODIFY_SRQ = 33,
1: - IB_USER_VERBS_CMD_QUERY_SRQ = 34,
1: - IB_USER_VERBS_CMD_DESTROY_SRQ = 35,
1: - IB_USER_VERBS_CMD_POST_SRQ_RECV = 36,
1: - IB_USER_VERBS_CMD_OPEN_XRCD = 37,
1: - IB_USER_VERBS_CMD_CLOSE_XRCD = 38,
1: - IB_USER_VERBS_CMD_CREATE_XSRQ = 39,
1: - IB_USER_VERBS_CMD_OPEN_QP = 40,
1: + IB_USER_VERBS_CMD_GET_CONTEXT = 0,
1: + IB_USER_VERBS_CMD_QUERY_DEVICE = 1,
1: + IB_USER_VERBS_CMD_QUERY_PORT = 2,
1: + IB_USER_VERBS_CMD_ALLOC_PD = 3,
1: + IB_USER_VERBS_CMD_DEALLOC_PD = 4,
1: + IB_USER_VERBS_CMD_CREATE_AH = 5,
1: + IB_USER_VERBS_CMD_MODIFY_AH = 6,
1: + IB_USER_VERBS_CMD_QUERY_AH = 7,
1: + IB_USER_VERBS_CMD_DESTROY_AH = 8,
1: + IB_USER_VERBS_CMD_REG_MR = 9,
1: + IB_USER_VERBS_CMD_REG_SMR = 10,
1: + IB_USER_VERBS_CMD_REREG_MR = 11,
1: + IB_USER_VERBS_CMD_QUERY_MR = 12,
1: + IB_USER_VERBS_CMD_DEREG_MR = 13,
1: + IB_USER_VERBS_CMD_ALLOC_MW = 14,
1: + IB_USER_VERBS_CMD_BIND_MW = 15,
1: + IB_USER_VERBS_CMD_DEALLOC_MW = 16,
1: + IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL = 17,
1: + IB_USER_VERBS_CMD_CREATE_CQ = 18,
1: + IB_USER_VERBS_CMD_RESIZE_CQ = 19,
1: + IB_USER_VERBS_CMD_DESTROY_CQ = 20,
1: + IB_USER_VERBS_CMD_POLL_CQ = 21,
1: + IB_USER_VERBS_CMD_PEEK_CQ = 22,
1: + IB_USER_VERBS_CMD_REQ_NOTIFY_CQ = 23,
1: + IB_USER_VERBS_CMD_CREATE_QP = 24,
1: + IB_USER_VERBS_CMD_QUERY_QP = 25,
1: + IB_USER_VERBS_CMD_MODIFY_QP = 26,
1: + IB_USER_VERBS_CMD_DESTROY_QP = 27,
1: + IB_USER_VERBS_CMD_POST_SEND = 28,
1: + IB_USER_VERBS_CMD_POST_RECV = 29,
1: + IB_USER_VERBS_CMD_ATTACH_MCAST = 30,
1: + IB_USER_VERBS_CMD_DETACH_MCAST = 31,
1: + IB_USER_VERBS_CMD_CREATE_SRQ = 32,
1: + IB_USER_VERBS_CMD_MODIFY_SRQ = 33,
1: + IB_USER_VERBS_CMD_QUERY_SRQ = 34,
1: + IB_USER_VERBS_CMD_DESTROY_SRQ = 35,
1: + IB_USER_VERBS_CMD_POST_SRQ_RECV = 36,
1: + IB_USER_VERBS_CMD_OPEN_XRCD = 37,
1: + IB_USER_VERBS_CMD_CLOSE_XRCD = 38,
1: + IB_USER_VERBS_CMD_CREATE_XSRQ = 39,
1: + IB_USER_VERBS_CMD_OPEN_QP = 40,
1: };
1:
1: enum ib_uverbs_wc_opcode {
1: - IB_UVERBS_WC_SEND = 0,
1: - IB_UVERBS_WC_RDMA_WRITE = 1,
1: - IB_UVERBS_WC_RDMA_READ = 2,
1: - IB_UVERBS_WC_COMP_SWAP = 3,
1: - IB_UVERBS_WC_FETCH_ADD = 4,
1: - IB_UVERBS_WC_BIND_MW = 5,
1: - IB_UVERBS_WC_LOCAL_INV = 6,
1: - IB_UVERBS_WC_TSO = 7,
1: + IB_UVERBS_WC_SEND = 0,
1: + IB_UVERBS_WC_RDMA_WRITE = 1,
1: + IB_UVERBS_WC_RDMA_READ = 2,
1: + IB_UVERBS_WC_COMP_SWAP = 3,
1: + IB_UVERBS_WC_FETCH_ADD = 4,
1: + IB_UVERBS_WC_BIND_MW = 5,
1: + IB_UVERBS_WC_LOCAL_INV = 6,
1: + IB_UVERBS_WC_TSO = 7,
1: };
1:
1: enum ib_uverbs_create_qp_mask {
1: - IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1,
1: + IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1,
1: };
1:
1: enum ib_uverbs_wr_opcode {
1: - IB_UVERBS_WR_RDMA_WRITE = 0,
1: - IB_UVERBS_WR_RDMA_WRITE_WITH_IMM = 1,
1: - IB_UVERBS_WR_SEND = 2,
1: - IB_UVERBS_WR_SEND_WITH_IMM = 3,
1: - IB_UVERBS_WR_RDMA_READ = 4,
1: - IB_UVERBS_WR_ATOMIC_CMP_AND_SWP = 5,
1: - IB_UVERBS_WR_ATOMIC_FETCH_AND_ADD = 6,
1: - IB_UVERBS_WR_LOCAL_INV = 7,
1: - IB_UVERBS_WR_BIND_MW = 8,
1: - IB_UVERBS_WR_SEND_WITH_INV = 9,
1: - IB_UVERBS_WR_TSO = 10,
1: - IB_UVERBS_WR_RDMA_READ_WITH_INV = 11,
1: - IB_UVERBS_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: - IB_UVERBS_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: + IB_UVERBS_WR_RDMA_WRITE = 0,
1: + IB_UVERBS_WR_RDMA_WRITE_WITH_IMM = 1,
1: + IB_UVERBS_WR_SEND = 2,
1: + IB_UVERBS_WR_SEND_WITH_IMM = 3,
1: + IB_UVERBS_WR_RDMA_READ = 4,
1: + IB_UVERBS_WR_ATOMIC_CMP_AND_SWP = 5,
1: + IB_UVERBS_WR_ATOMIC_FETCH_AND_ADD = 6,
1: + IB_UVERBS_WR_LOCAL_INV = 7,
1: + IB_UVERBS_WR_BIND_MW = 8,
1: + IB_UVERBS_WR_SEND_WITH_INV = 9,
1: + IB_UVERBS_WR_TSO = 10,
1: + IB_UVERBS_WR_RDMA_READ_WITH_INV = 11,
1: + IB_UVERBS_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: + IB_UVERBS_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: };
1:
1: enum ib_uverbs_access_flags {
1: - IB_UVERBS_ACCESS_LOCAL_WRITE = 1,
1: - IB_UVERBS_ACCESS_REMOTE_WRITE = 2,
1: - IB_UVERBS_ACCESS_REMOTE_READ = 4,
1: - IB_UVERBS_ACCESS_REMOTE_ATOMIC = 8,
1: - IB_UVERBS_ACCESS_MW_BIND = 16,
1: - IB_UVERBS_ACCESS_ZERO_BASED = 32,
1: - IB_UVERBS_ACCESS_ON_DEMAND = 64,
1: - IB_UVERBS_ACCESS_HUGETLB = 128,
1: - IB_UVERBS_ACCESS_RELAXED_ORDERING = 1048576,
1: - IB_UVERBS_ACCESS_OPTIONAL_RANGE = 1072693248,
1: + IB_UVERBS_ACCESS_LOCAL_WRITE = 1,
1: + IB_UVERBS_ACCESS_REMOTE_WRITE = 2,
1: + IB_UVERBS_ACCESS_REMOTE_READ = 4,
1: + IB_UVERBS_ACCESS_REMOTE_ATOMIC = 8,
1: + IB_UVERBS_ACCESS_MW_BIND = 16,
1: + IB_UVERBS_ACCESS_ZERO_BASED = 32,
1: + IB_UVERBS_ACCESS_ON_DEMAND = 64,
1: + IB_UVERBS_ACCESS_HUGETLB = 128,
1: + IB_UVERBS_ACCESS_RELAXED_ORDERING = 1048576,
1: + IB_UVERBS_ACCESS_OPTIONAL_RANGE = 1072693248,
1: };
1:
1: enum ib_uverbs_srq_type {
1: - IB_UVERBS_SRQT_BASIC = 0,
1: - IB_UVERBS_SRQT_XRC = 1,
1: - IB_UVERBS_SRQT_TM = 2,
1: + IB_UVERBS_SRQT_BASIC = 0,
1: + IB_UVERBS_SRQT_XRC = 1,
1: + IB_UVERBS_SRQT_TM = 2,
1: };
1:
1: enum ib_uverbs_wq_type {
1: - IB_UVERBS_WQT_RQ = 0,
1: + IB_UVERBS_WQT_RQ = 0,
1: };
1:
1: enum ib_uverbs_wq_flags {
1: - IB_UVERBS_WQ_FLAGS_CVLAN_STRIPPING = 1,
1: - IB_UVERBS_WQ_FLAGS_SCATTER_FCS = 2,
1: - IB_UVERBS_WQ_FLAGS_DELAY_DROP = 4,
1: - IB_UVERBS_WQ_FLAGS_PCI_WRITE_END_PADDING = 8,
1: + IB_UVERBS_WQ_FLAGS_CVLAN_STRIPPING = 1,
1: + IB_UVERBS_WQ_FLAGS_SCATTER_FCS = 2,
1: + IB_UVERBS_WQ_FLAGS_DELAY_DROP = 4,
1: + IB_UVERBS_WQ_FLAGS_PCI_WRITE_END_PADDING = 8,
1: };
1:
1: enum ib_uverbs_qp_type {
1: - IB_UVERBS_QPT_RC = 2,
1: - IB_UVERBS_QPT_UC = 3,
1: - IB_UVERBS_QPT_UD = 4,
1: - IB_UVERBS_QPT_RAW_PACKET = 8,
1: - IB_UVERBS_QPT_XRC_INI = 9,
1: - IB_UVERBS_QPT_XRC_TGT = 10,
1: - IB_UVERBS_QPT_DRIVER = 255,
1: + IB_UVERBS_QPT_RC = 2,
1: + IB_UVERBS_QPT_UC = 3,
1: + IB_UVERBS_QPT_UD = 4,
1: + IB_UVERBS_QPT_RAW_PACKET = 8,
1: + IB_UVERBS_QPT_XRC_INI = 9,
1: + IB_UVERBS_QPT_XRC_TGT = 10,
1: + IB_UVERBS_QPT_DRIVER = 255,
1: };
1:
1: enum ib_uverbs_qp_create_flags {
1: - IB_UVERBS_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 2,
1: - IB_UVERBS_QP_CREATE_SCATTER_FCS = 256,
1: - IB_UVERBS_QP_CREATE_CVLAN_STRIPPING = 512,
1: - IB_UVERBS_QP_CREATE_PCI_WRITE_END_PADDING = 2048,
1: - IB_UVERBS_QP_CREATE_SQ_SIG_ALL = 4096,
1: + IB_UVERBS_QP_CREATE_BLOCK_MULTICAST_LOOPBACK = 2,
1: + IB_UVERBS_QP_CREATE_SCATTER_FCS = 256,
1: + IB_UVERBS_QP_CREATE_CVLAN_STRIPPING = 512,
1: + IB_UVERBS_QP_CREATE_PCI_WRITE_END_PADDING = 2048,
1: + IB_UVERBS_QP_CREATE_SQ_SIG_ALL = 4096,
1: };
1:
1: enum ib_uverbs_gid_type {
1: - IB_UVERBS_GID_TYPE_IB = 0,
1: - IB_UVERBS_GID_TYPE_ROCE_V1 = 1,
1: - IB_UVERBS_GID_TYPE_ROCE_V2 = 2,
1: + IB_UVERBS_GID_TYPE_IB = 0,
1: + IB_UVERBS_GID_TYPE_ROCE_V1 = 1,
1: + IB_UVERBS_GID_TYPE_ROCE_V2 = 2,
1: };
1:
1: enum ib_poll_context {
1: - IB_POLL_SOFTIRQ = 0,
1: - IB_POLL_WORKQUEUE = 1,
1: - IB_POLL_UNBOUND_WORKQUEUE = 2,
1: - IB_POLL_LAST_POOL_TYPE = 2,
1: - IB_POLL_DIRECT = 3,
1: + IB_POLL_SOFTIRQ = 0,
1: + IB_POLL_WORKQUEUE = 1,
1: + IB_POLL_UNBOUND_WORKQUEUE = 2,
1: + IB_POLL_LAST_POOL_TYPE = 2,
1: + IB_POLL_DIRECT = 3,
1: };
1:
1: struct lsm_network_audit {
1: - int netif;
1: - struct sock *sk;
1: - u16 family;
1: - __be16 dport;
1: - __be16 sport;
1: - union {
1: - struct {
1: - __be32 daddr;
1: - __be32 saddr;
1: - } v4;
1: - struct {
1: - struct in6_addr daddr;
1: - struct in6_addr saddr;
1: - } v6;
1: - } fam;
1: + int netif;
1: + struct sock *sk;
1: + u16 family;
1: + __be16 dport;
1: + __be16 sport;
1: + union {
1: + struct {
1: + __be32 daddr;
1: + __be32 saddr;
1: + } v4;
1: + struct {
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + } v6;
1: + } fam;
1: };
1:
1: struct lsm_ioctlop_audit {
1: - struct path path;
1: - u16 cmd;
1: + struct path path;
1: + u16 cmd;
1: };
1:
1: struct lsm_ibpkey_audit {
1: - u64 subnet_prefix;
1: - u16 pkey;
1: + u64 subnet_prefix;
1: + u16 pkey;
1: };
1:
1: struct lsm_ibendport_audit {
1: - char dev_name[64];
1: - u8 port;
1: + char dev_name[64];
1: + u8 port;
1: };
1:
1: struct selinux_state;
1:
1: struct selinux_audit_data {
1: - u32 ssid;
1: - u32 tsid;
1: - u16 tclass;
1: - u32 requested;
1: - u32 audited;
1: - u32 denied;
1: - int result;
1: - struct selinux_state *state;
1: + u32 ssid;
1: + u32 tsid;
1: + u16 tclass;
1: + u32 requested;
1: + u32 audited;
1: + u32 denied;
1: + int result;
1: + struct selinux_state *state;
1: };
1:
1: struct smack_audit_data;
1: @@ -46997,42 +47785,42 @@ struct smack_audit_data;
1: struct apparmor_audit_data;
1:
1: struct common_audit_data {
1: - char type;
1: - union {
1: - struct path path;
1: - struct dentry *dentry;
1: - struct inode *inode;
1: - struct lsm_network_audit *net;
1: - int cap;
1: - int ipc_id;
1: - struct task_struct *tsk;
1: - struct {
1: - key_serial_t key;
1: - char *key_desc;
1: - } key_struct;
1: - char *kmod_name;
1: - struct lsm_ioctlop_audit *op;
1: - struct file *file;
1: - struct lsm_ibpkey_audit *ibpkey;
1: - struct lsm_ibendport_audit *ibendport;
1: - int reason;
1: - } u;
1: - union {
1: - struct smack_audit_data *smack_audit_data;
1: - struct selinux_audit_data *selinux_audit_data;
1: - struct apparmor_audit_data *apparmor_audit_data;
1: - };
1: -};
1: -
1: -enum {
1: - POLICYDB_CAPABILITY_NETPEER = 0,
1: - POLICYDB_CAPABILITY_OPENPERM = 1,
1: - POLICYDB_CAPABILITY_EXTSOCKCLASS = 2,
1: - POLICYDB_CAPABILITY_ALWAYSNETWORK = 3,
1: - POLICYDB_CAPABILITY_CGROUPSECLABEL = 4,
1: - POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION = 5,
1: - POLICYDB_CAPABILITY_GENFS_SECLABEL_SYMLINKS = 6,
1: - __POLICYDB_CAPABILITY_MAX = 7,
1: + char type;
1: + union {
1: + struct path path;
1: + struct dentry *dentry;
1: + struct inode *inode;
1: + struct lsm_network_audit *net;
1: + int cap;
1: + int ipc_id;
1: + struct task_struct *tsk;
1: + struct {
1: + key_serial_t key;
1: + char *key_desc;
1: + } key_struct;
1: + char *kmod_name;
1: + struct lsm_ioctlop_audit *op;
1: + struct file *file;
1: + struct lsm_ibpkey_audit *ibpkey;
1: + struct lsm_ibendport_audit *ibendport;
1: + int reason;
1: + } u;
1: + union {
1: + struct smack_audit_data *smack_audit_data;
1: + struct selinux_audit_data *selinux_audit_data;
1: + struct apparmor_audit_data *apparmor_audit_data;
1: + };
1: +};
1: +
1: +enum {
1: + POLICYDB_CAPABILITY_NETPEER = 0,
1: + POLICYDB_CAPABILITY_OPENPERM = 1,
1: + POLICYDB_CAPABILITY_EXTSOCKCLASS = 2,
1: + POLICYDB_CAPABILITY_ALWAYSNETWORK = 3,
1: + POLICYDB_CAPABILITY_CGROUPSECLABEL = 4,
1: + POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION = 5,
1: + POLICYDB_CAPABILITY_GENFS_SECLABEL_SYMLINKS = 6,
1: + __POLICYDB_CAPABILITY_MAX = 7,
1: };
1:
1: struct selinux_avc;
1: @@ -47040,151 +47828,152 @@ struct selinux_avc;
1: struct selinux_policy;
1:
1: struct selinux_state {
1: - bool disabled;
1: - bool enforcing;
1: - bool checkreqprot;
1: - bool initialized;
1: - bool policycap[7];
1: - struct page *status_page;
1: - struct mutex status_lock;
1: - struct selinux_avc *avc;
1: - struct selinux_policy *policy;
1: - struct mutex policy_mutex;
1: + bool disabled;
1: + bool enforcing;
1: + bool checkreqprot;
1: + bool initialized;
1: + bool policycap[7];
1: + struct page *status_page;
1: + struct mutex status_lock;
1: + struct selinux_avc *avc;
1: + struct selinux_policy *policy;
1: + struct mutex policy_mutex;
1: };
1:
1: struct avc_cache {
1: - struct hlist_head slots[512];
1: - spinlock_t slots_lock[512];
1: - atomic_t lru_hint;
1: - atomic_t active_nodes;
1: - u32 latest_notif;
1: + struct hlist_head slots[512];
1: + spinlock_t slots_lock[512];
1: + atomic_t lru_hint;
1: + atomic_t active_nodes;
1: + u32 latest_notif;
1: };
1:
1: struct selinux_avc {
1: - unsigned int avc_cache_threshold;
1: - struct avc_cache avc_cache;
1: + unsigned int avc_cache_threshold;
1: + struct avc_cache avc_cache;
1: };
1:
1: struct av_decision {
1: - u32 allowed;
1: - u32 auditallow;
1: - u32 auditdeny;
1: - u32 seqno;
1: - u32 flags;
1: + u32 allowed;
1: + u32 auditallow;
1: + u32 auditdeny;
1: + u32 seqno;
1: + u32 flags;
1: };
1:
1: struct extended_perms_data {
1: - u32 p[8];
1: + u32 p[8];
1: };
1:
1: struct extended_perms_decision {
1: - u8 used;
1: - u8 driver;
1: - struct extended_perms_data *allowed;
1: - struct extended_perms_data *auditallow;
1: - struct extended_perms_data *dontaudit;
1: + u8 used;
1: + u8 driver;
1: + struct extended_perms_data *allowed;
1: + struct extended_perms_data *auditallow;
1: + struct extended_perms_data *dontaudit;
1: };
1:
1: struct extended_perms {
1: - u16 len;
1: - struct extended_perms_data drivers;
1: + u16 len;
1: + struct extended_perms_data drivers;
1: };
1:
1: struct avc_cache_stats {
1: - unsigned int lookups;
1: - unsigned int misses;
1: - unsigned int allocations;
1: - unsigned int reclaims;
1: - unsigned int frees;
1: + unsigned int lookups;
1: + unsigned int misses;
1: + unsigned int allocations;
1: + unsigned int reclaims;
1: + unsigned int frees;
1: };
1:
1: struct security_class_mapping {
1: - const char *name;
1: - const char *perms[33];
1: + const char *name;
1: + const char *perms[33];
1: };
1:
1: struct trace_event_raw_selinux_audited {
1: - struct trace_entry ent;
1: - u32 requested;
1: - u32 denied;
1: - u32 audited;
1: - int result;
1: - u32 __data_loc_scontext;
1: - u32 __data_loc_tcontext;
1: - u32 __data_loc_tclass;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 requested;
1: + u32 denied;
1: + u32 audited;
1: + int result;
1: + u32 __data_loc_scontext;
1: + u32 __data_loc_tcontext;
1: + u32 __data_loc_tclass;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_selinux_audited {
1: - u32 scontext;
1: - u32 tcontext;
1: - u32 tclass;
1: + u32 scontext;
1: + u32 tcontext;
1: + u32 tclass;
1: };
1:
1: -typedef void (*btf_trace_selinux_audited)(void *, struct selinux_audit_data *, char *, char *, const char *);
1: +typedef void (*btf_trace_selinux_audited)(void *, struct selinux_audit_data *,
1: + char *, char *, const char *);
1:
1: struct avc_xperms_node;
1:
1: struct avc_entry {
1: - u32 ssid;
1: - u32 tsid;
1: - u16 tclass;
1: - struct av_decision avd;
1: - struct avc_xperms_node *xp_node;
1: + u32 ssid;
1: + u32 tsid;
1: + u16 tclass;
1: + struct av_decision avd;
1: + struct avc_xperms_node *xp_node;
1: };
1:
1: struct avc_xperms_node {
1: - struct extended_perms xp;
1: - struct list_head xpd_head;
1: + struct extended_perms xp;
1: + struct list_head xpd_head;
1: };
1:
1: struct avc_node {
1: - struct avc_entry ae;
1: - struct hlist_node list;
1: - struct callback_head rhead;
1: + struct avc_entry ae;
1: + struct hlist_node list;
1: + struct callback_head rhead;
1: };
1:
1: struct avc_xperms_decision_node {
1: - struct extended_perms_decision xpd;
1: - struct list_head xpd_list;
1: + struct extended_perms_decision xpd;
1: + struct list_head xpd_list;
1: };
1:
1: struct avc_callback_node {
1: - int (*callback)(u32);
1: - u32 events;
1: - struct avc_callback_node *next;
1: + int (*callback)(u32);
1: + u32 events;
1: + struct avc_callback_node *next;
1: };
1:
1: typedef __u16 __sum16;
1:
1: enum sctp_endpoint_type {
1: - SCTP_EP_TYPE_SOCKET = 0,
1: - SCTP_EP_TYPE_ASSOCIATION = 1,
1: + SCTP_EP_TYPE_SOCKET = 0,
1: + SCTP_EP_TYPE_ASSOCIATION = 1,
1: };
1:
1: struct sctp_chunk;
1:
1: struct sctp_inq {
1: - struct list_head in_chunk_list;
1: - struct sctp_chunk *in_progress;
1: - struct work_struct immediate;
1: + struct list_head in_chunk_list;
1: + struct sctp_chunk *in_progress;
1: + struct work_struct immediate;
1: };
1:
1: struct sctp_bind_addr {
1: - __u16 port;
1: - struct list_head address_list;
1: + __u16 port;
1: + struct list_head address_list;
1: };
1:
1: struct sctp_ep_common {
1: - struct hlist_node node;
1: - int hashent;
1: - enum sctp_endpoint_type type;
1: - refcount_t refcnt;
1: - bool dead;
1: - struct sock *sk;
1: - struct net *net;
1: - struct sctp_inq inqueue;
1: - struct sctp_bind_addr bind_addr;
1: + struct hlist_node node;
1: + int hashent;
1: + enum sctp_endpoint_type type;
1: + refcount_t refcnt;
1: + bool dead;
1: + struct sock *sk;
1: + struct net *net;
1: + struct sctp_inq inqueue;
1: + struct sctp_bind_addr bind_addr;
1: };
1:
1: struct crypto_shash___2;
1: @@ -47194,146 +47983,147 @@ struct sctp_hmac_algo_param;
1: struct sctp_chunks_param;
1:
1: struct sctp_endpoint {
1: - struct sctp_ep_common base;
1: - struct list_head asocs;
1: - __u8 secret_key[32];
1: - __u8 *digest;
1: - __u32 sndbuf_policy;
1: - __u32 rcvbuf_policy;
1: - struct crypto_shash___2 **auth_hmacs;
1: - struct sctp_hmac_algo_param *auth_hmacs_list;
1: - struct sctp_chunks_param *auth_chunk_list;
1: - struct list_head endpoint_shared_keys;
1: - __u16 active_key_id;
1: - __u8 ecn_enable: 1;
1: - __u8 auth_enable: 1;
1: - __u8 intl_enable: 1;
1: - __u8 prsctp_enable: 1;
1: - __u8 asconf_enable: 1;
1: - __u8 reconf_enable: 1;
1: - __u8 strreset_enable;
1: - u32 secid;
1: - u32 peer_secid;
1: + struct sctp_ep_common base;
1: + struct list_head asocs;
1: + __u8 secret_key[32];
1: + __u8 *digest;
1: + __u32 sndbuf_policy;
1: + __u32 rcvbuf_policy;
1: + struct crypto_shash___2 **auth_hmacs;
1: + struct sctp_hmac_algo_param *auth_hmacs_list;
1: + struct sctp_chunks_param *auth_chunk_list;
1: + struct list_head endpoint_shared_keys;
1: + __u16 active_key_id;
1: + __u8 ecn_enable : 1;
1: + __u8 auth_enable : 1;
1: + __u8 intl_enable : 1;
1: + __u8 prsctp_enable : 1;
1: + __u8 asconf_enable : 1;
1: + __u8 reconf_enable : 1;
1: + __u8 strreset_enable;
1: + u32 secid;
1: + u32 peer_secid;
1: };
1:
1: struct sockaddr_in6 {
1: - short unsigned int sin6_family;
1: - __be16 sin6_port;
1: - __be32 sin6_flowinfo;
1: - struct in6_addr sin6_addr;
1: - __u32 sin6_scope_id;
1: + short unsigned int sin6_family;
1: + __be16 sin6_port;
1: + __be32 sin6_flowinfo;
1: + struct in6_addr sin6_addr;
1: + __u32 sin6_scope_id;
1: };
1:
1: struct in_addr {
1: - __be32 s_addr;
1: + __be32 s_addr;
1: };
1:
1: struct sockaddr_in {
1: - __kernel_sa_family_t sin_family;
1: - __be16 sin_port;
1: - struct in_addr sin_addr;
1: - unsigned char __pad[8];
1: + __kernel_sa_family_t sin_family;
1: + __be16 sin_port;
1: + struct in_addr sin_addr;
1: + unsigned char __pad[8];
1: };
1:
1: struct nf_hook_state;
1:
1: -typedef unsigned int nf_hookfn(void *, struct sk_buff *, const struct nf_hook_state *);
1: +typedef unsigned int nf_hookfn(void *, struct sk_buff *,
1: + const struct nf_hook_state *);
1:
1: struct nf_hook_entry {
1: - nf_hookfn *hook;
1: - void *priv;
1: + nf_hookfn *hook;
1: + void *priv;
1: };
1:
1: struct nf_hook_entries {
1: - u16 num_hook_entries;
1: - struct nf_hook_entry hooks[0];
1: + u16 num_hook_entries;
1: + struct nf_hook_entry hooks[0];
1: };
1:
1: struct nf_hook_state {
1: - unsigned int hook;
1: - u_int8_t pf;
1: - struct net_device *in;
1: - struct net_device *out;
1: - struct sock *sk;
1: - struct net *net;
1: - int (*okfn)(struct net *, struct sock *, struct sk_buff *);
1: + unsigned int hook;
1: + u_int8_t pf;
1: + struct net_device *in;
1: + struct net_device *out;
1: + struct sock *sk;
1: + struct net *net;
1: + int (*okfn)(struct net *, struct sock *, struct sk_buff *);
1: };
1:
1: struct nf_hook_ops {
1: - nf_hookfn *hook;
1: - struct net_device *dev;
1: - void *priv;
1: - u_int8_t pf;
1: - unsigned int hooknum;
1: - int priority;
1: + nf_hookfn *hook;
1: + struct net_device *dev;
1: + void *priv;
1: + u_int8_t pf;
1: + unsigned int hooknum;
1: + int priority;
1: };
1:
1: enum nf_ip_hook_priorities {
1: - NF_IP_PRI_FIRST = 2147483648,
1: - NF_IP_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: - NF_IP_PRI_CONNTRACK_DEFRAG = 4294966896,
1: - NF_IP_PRI_RAW = 4294966996,
1: - NF_IP_PRI_SELINUX_FIRST = 4294967071,
1: - NF_IP_PRI_CONNTRACK = 4294967096,
1: - NF_IP_PRI_MANGLE = 4294967146,
1: - NF_IP_PRI_NAT_DST = 4294967196,
1: - NF_IP_PRI_FILTER = 0,
1: - NF_IP_PRI_SECURITY = 50,
1: - NF_IP_PRI_NAT_SRC = 100,
1: - NF_IP_PRI_SELINUX_LAST = 225,
1: - NF_IP_PRI_CONNTRACK_HELPER = 300,
1: - NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
1: - NF_IP_PRI_LAST = 2147483647,
1: + NF_IP_PRI_FIRST = 2147483648,
1: + NF_IP_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: + NF_IP_PRI_CONNTRACK_DEFRAG = 4294966896,
1: + NF_IP_PRI_RAW = 4294966996,
1: + NF_IP_PRI_SELINUX_FIRST = 4294967071,
1: + NF_IP_PRI_CONNTRACK = 4294967096,
1: + NF_IP_PRI_MANGLE = 4294967146,
1: + NF_IP_PRI_NAT_DST = 4294967196,
1: + NF_IP_PRI_FILTER = 0,
1: + NF_IP_PRI_SECURITY = 50,
1: + NF_IP_PRI_NAT_SRC = 100,
1: + NF_IP_PRI_SELINUX_LAST = 225,
1: + NF_IP_PRI_CONNTRACK_HELPER = 300,
1: + NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
1: + NF_IP_PRI_LAST = 2147483647,
1: };
1:
1: enum nf_ip6_hook_priorities {
1: - NF_IP6_PRI_FIRST = 2147483648,
1: - NF_IP6_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: - NF_IP6_PRI_CONNTRACK_DEFRAG = 4294966896,
1: - NF_IP6_PRI_RAW = 4294966996,
1: - NF_IP6_PRI_SELINUX_FIRST = 4294967071,
1: - NF_IP6_PRI_CONNTRACK = 4294967096,
1: - NF_IP6_PRI_MANGLE = 4294967146,
1: - NF_IP6_PRI_NAT_DST = 4294967196,
1: - NF_IP6_PRI_FILTER = 0,
1: - NF_IP6_PRI_SECURITY = 50,
1: - NF_IP6_PRI_NAT_SRC = 100,
1: - NF_IP6_PRI_SELINUX_LAST = 225,
1: - NF_IP6_PRI_CONNTRACK_HELPER = 300,
1: - NF_IP6_PRI_LAST = 2147483647,
1: + NF_IP6_PRI_FIRST = 2147483648,
1: + NF_IP6_PRI_RAW_BEFORE_DEFRAG = 4294966846,
1: + NF_IP6_PRI_CONNTRACK_DEFRAG = 4294966896,
1: + NF_IP6_PRI_RAW = 4294966996,
1: + NF_IP6_PRI_SELINUX_FIRST = 4294967071,
1: + NF_IP6_PRI_CONNTRACK = 4294967096,
1: + NF_IP6_PRI_MANGLE = 4294967146,
1: + NF_IP6_PRI_NAT_DST = 4294967196,
1: + NF_IP6_PRI_FILTER = 0,
1: + NF_IP6_PRI_SECURITY = 50,
1: + NF_IP6_PRI_NAT_SRC = 100,
1: + NF_IP6_PRI_SELINUX_LAST = 225,
1: + NF_IP6_PRI_CONNTRACK_HELPER = 300,
1: + NF_IP6_PRI_LAST = 2147483647,
1: };
1:
1: struct socket_alloc {
1: - struct socket socket;
1: - struct inode vfs_inode;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct socket socket;
1: + struct inode vfs_inode;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct ip_options {
1: - __be32 faddr;
1: - __be32 nexthop;
1: - unsigned char optlen;
1: - unsigned char srr;
1: - unsigned char rr;
1: - unsigned char ts;
1: - unsigned char is_strictroute: 1;
1: - unsigned char srr_is_hit: 1;
1: - unsigned char is_changed: 1;
1: - unsigned char rr_needaddr: 1;
1: - unsigned char ts_needtime: 1;
1: - unsigned char ts_needaddr: 1;
1: - unsigned char router_alert;
1: - unsigned char cipso;
1: - unsigned char __pad2;
1: - unsigned char __data[0];
1: + __be32 faddr;
1: + __be32 nexthop;
1: + unsigned char optlen;
1: + unsigned char srr;
1: + unsigned char rr;
1: + unsigned char ts;
1: + unsigned char is_strictroute : 1;
1: + unsigned char srr_is_hit : 1;
1: + unsigned char is_changed : 1;
1: + unsigned char rr_needaddr : 1;
1: + unsigned char ts_needtime : 1;
1: + unsigned char ts_needaddr : 1;
1: + unsigned char router_alert;
1: + unsigned char cipso;
1: + unsigned char __pad2;
1: + unsigned char __data[0];
1: };
1:
1: struct ip_options_rcu {
1: - struct callback_head rcu;
1: - struct ip_options opt;
1: + struct callback_head rcu;
1: + struct ip_options opt;
1: };
1:
1: struct ipv6_opt_hdr;
1: @@ -47341,36 +48131,36 @@ struct ipv6_opt_hdr;
1: struct ipv6_rt_hdr;
1:
1: struct ipv6_txoptions {
1: - refcount_t refcnt;
1: - int tot_len;
1: - __u16 opt_flen;
1: - __u16 opt_nflen;
1: - struct ipv6_opt_hdr *hopopt;
1: - struct ipv6_opt_hdr *dst0opt;
1: - struct ipv6_rt_hdr *srcrt;
1: - struct ipv6_opt_hdr *dst1opt;
1: - struct callback_head rcu;
1: + refcount_t refcnt;
1: + int tot_len;
1: + __u16 opt_flen;
1: + __u16 opt_nflen;
1: + struct ipv6_opt_hdr *hopopt;
1: + struct ipv6_opt_hdr *dst0opt;
1: + struct ipv6_rt_hdr *srcrt;
1: + struct ipv6_opt_hdr *dst1opt;
1: + struct callback_head rcu;
1: };
1:
1: struct inet_cork {
1: - unsigned int flags;
1: - __be32 addr;
1: - struct ip_options *opt;
1: - unsigned int fragsize;
1: - int length;
1: - struct dst_entry *dst;
1: - u8 tx_flags;
1: - __u8 ttl;
1: - __s16 tos;
1: - char priority;
1: - __u16 gso_size;
1: - u64 transmit_time;
1: - u32 mark;
1: + unsigned int flags;
1: + __be32 addr;
1: + struct ip_options *opt;
1: + unsigned int fragsize;
1: + int length;
1: + struct dst_entry *dst;
1: + u8 tx_flags;
1: + __u8 ttl;
1: + __s16 tos;
1: + char priority;
1: + __u16 gso_size;
1: + u64 transmit_time;
1: + u32 mark;
1: };
1:
1: struct inet_cork_full {
1: - struct inet_cork base;
1: - struct flowi fl;
1: + struct inet_cork base;
1: + struct flowi fl;
1: };
1:
1: struct ipv6_pinfo;
1: @@ -47378,48 +48168,48 @@ struct ipv6_pinfo;
1: struct ip_mc_socklist;
1:
1: struct inet_sock {
1: - struct sock sk;
1: - struct ipv6_pinfo *pinet6;
1: - __be32 inet_saddr;
1: - __s16 uc_ttl;
1: - __u16 cmsg_flags;
1: - __be16 inet_sport;
1: - __u16 inet_id;
1: - struct ip_options_rcu *inet_opt;
1: - int rx_dst_ifindex;
1: - __u8 tos;
1: - __u8 min_ttl;
1: - __u8 mc_ttl;
1: - __u8 pmtudisc;
1: - __u8 recverr: 1;
1: - __u8 is_icsk: 1;
1: - __u8 freebind: 1;
1: - __u8 hdrincl: 1;
1: - __u8 mc_loop: 1;
1: - __u8 transparent: 1;
1: - __u8 mc_all: 1;
1: - __u8 nodefrag: 1;
1: - __u8 bind_address_no_port: 1;
1: - __u8 recverr_rfc4884: 1;
1: - __u8 defer_connect: 1;
1: - __u8 rcv_tos;
1: - __u8 convert_csum;
1: - int uc_index;
1: - int mc_index;
1: - __be32 mc_addr;
1: - struct ip_mc_socklist *mc_list;
1: - struct inet_cork_full cork;
1: + struct sock sk;
1: + struct ipv6_pinfo *pinet6;
1: + __be32 inet_saddr;
1: + __s16 uc_ttl;
1: + __u16 cmsg_flags;
1: + __be16 inet_sport;
1: + __u16 inet_id;
1: + struct ip_options_rcu *inet_opt;
1: + int rx_dst_ifindex;
1: + __u8 tos;
1: + __u8 min_ttl;
1: + __u8 mc_ttl;
1: + __u8 pmtudisc;
1: + __u8 recverr : 1;
1: + __u8 is_icsk : 1;
1: + __u8 freebind : 1;
1: + __u8 hdrincl : 1;
1: + __u8 mc_loop : 1;
1: + __u8 transparent : 1;
1: + __u8 mc_all : 1;
1: + __u8 nodefrag : 1;
1: + __u8 bind_address_no_port : 1;
1: + __u8 recverr_rfc4884 : 1;
1: + __u8 defer_connect : 1;
1: + __u8 rcv_tos;
1: + __u8 convert_csum;
1: + int uc_index;
1: + int mc_index;
1: + __be32 mc_addr;
1: + struct ip_mc_socklist *mc_list;
1: + struct inet_cork_full cork;
1: };
1:
1: struct in6_pktinfo {
1: - struct in6_addr ipi6_addr;
1: - int ipi6_ifindex;
1: + struct in6_addr ipi6_addr;
1: + int ipi6_ifindex;
1: };
1:
1: struct inet6_cork {
1: - struct ipv6_txoptions *opt;
1: - u8 hop_limit;
1: - u8 tclass;
1: + struct ipv6_txoptions *opt;
1: + u8 hop_limit;
1: + u8 tclass;
1: };
1:
1: struct ipv6_mc_socklist;
1: @@ -47429,659 +48219,659 @@ struct ipv6_ac_socklist;
1: struct ipv6_fl_socklist;
1:
1: struct ipv6_pinfo {
1: - struct in6_addr saddr;
1: - struct in6_pktinfo sticky_pktinfo;
1: - const struct in6_addr *daddr_cache;
1: - const struct in6_addr *saddr_cache;
1: - __be32 flow_label;
1: - __u32 frag_size;
1: - __u16 __unused_1: 7;
1: - __s16 hop_limit: 9;
1: - __u16 mc_loop: 1;
1: - __u16 __unused_2: 6;
1: - __s16 mcast_hops: 9;
1: - int ucast_oif;
1: - int mcast_oif;
1: - union {
1: - struct {
1: - __u16 srcrt: 1;
1: - __u16 osrcrt: 1;
1: - __u16 rxinfo: 1;
1: - __u16 rxoinfo: 1;
1: - __u16 rxhlim: 1;
1: - __u16 rxohlim: 1;
1: - __u16 hopopts: 1;
1: - __u16 ohopopts: 1;
1: - __u16 dstopts: 1;
1: - __u16 odstopts: 1;
1: - __u16 rxflow: 1;
1: - __u16 rxtclass: 1;
1: - __u16 rxpmtu: 1;
1: - __u16 rxorigdstaddr: 1;
1: - __u16 recvfragsize: 1;
1: - } bits;
1: - __u16 all;
1: - } rxopt;
1: - __u16 recverr: 1;
1: - __u16 sndflow: 1;
1: - __u16 repflow: 1;
1: - __u16 pmtudisc: 3;
1: - __u16 padding: 1;
1: - __u16 srcprefs: 3;
1: - __u16 dontfrag: 1;
1: - __u16 autoflowlabel: 1;
1: - __u16 autoflowlabel_set: 1;
1: - __u16 mc_all: 1;
1: - __u16 recverr_rfc4884: 1;
1: - __u16 rtalert_isolate: 1;
1: - __u8 min_hopcount;
1: - __u8 tclass;
1: - __be32 rcv_flowinfo;
1: - __u32 dst_cookie;
1: - __u32 rx_dst_cookie;
1: - struct ipv6_mc_socklist *ipv6_mc_list;
1: - struct ipv6_ac_socklist *ipv6_ac_list;
1: - struct ipv6_fl_socklist *ipv6_fl_list;
1: - struct ipv6_txoptions *opt;
1: - struct sk_buff *pktoptions;
1: - struct sk_buff *rxpmtu;
1: - struct inet6_cork cork;
1: + struct in6_addr saddr;
1: + struct in6_pktinfo sticky_pktinfo;
1: + const struct in6_addr *daddr_cache;
1: + const struct in6_addr *saddr_cache;
1: + __be32 flow_label;
1: + __u32 frag_size;
1: + __u16 __unused_1 : 7;
1: + __s16 hop_limit : 9;
1: + __u16 mc_loop : 1;
1: + __u16 __unused_2 : 6;
1: + __s16 mcast_hops : 9;
1: + int ucast_oif;
1: + int mcast_oif;
1: + union {
1: + struct {
1: + __u16 srcrt : 1;
1: + __u16 osrcrt : 1;
1: + __u16 rxinfo : 1;
1: + __u16 rxoinfo : 1;
1: + __u16 rxhlim : 1;
1: + __u16 rxohlim : 1;
1: + __u16 hopopts : 1;
1: + __u16 ohopopts : 1;
1: + __u16 dstopts : 1;
1: + __u16 odstopts : 1;
1: + __u16 rxflow : 1;
1: + __u16 rxtclass : 1;
1: + __u16 rxpmtu : 1;
1: + __u16 rxorigdstaddr : 1;
1: + __u16 recvfragsize : 1;
1: + } bits;
1: + __u16 all;
1: + } rxopt;
1: + __u16 recverr : 1;
1: + __u16 sndflow : 1;
1: + __u16 repflow : 1;
1: + __u16 pmtudisc : 3;
1: + __u16 padding : 1;
1: + __u16 srcprefs : 3;
1: + __u16 dontfrag : 1;
1: + __u16 autoflowlabel : 1;
1: + __u16 autoflowlabel_set : 1;
1: + __u16 mc_all : 1;
1: + __u16 recverr_rfc4884 : 1;
1: + __u16 rtalert_isolate : 1;
1: + __u8 min_hopcount;
1: + __u8 tclass;
1: + __be32 rcv_flowinfo;
1: + __u32 dst_cookie;
1: + __u32 rx_dst_cookie;
1: + struct ipv6_mc_socklist *ipv6_mc_list;
1: + struct ipv6_ac_socklist *ipv6_ac_list;
1: + struct ipv6_fl_socklist *ipv6_fl_list;
1: + struct ipv6_txoptions *opt;
1: + struct sk_buff *pktoptions;
1: + struct sk_buff *rxpmtu;
1: + struct inet6_cork cork;
1: };
1:
1: struct tcphdr {
1: - __be16 source;
1: - __be16 dest;
1: - __be32 seq;
1: - __be32 ack_seq;
1: - __u16 res1: 4;
1: - __u16 doff: 4;
1: - __u16 fin: 1;
1: - __u16 syn: 1;
1: - __u16 rst: 1;
1: - __u16 psh: 1;
1: - __u16 ack: 1;
1: - __u16 urg: 1;
1: - __u16 ece: 1;
1: - __u16 cwr: 1;
1: - __be16 window;
1: - __sum16 check;
1: - __be16 urg_ptr;
1: + __be16 source;
1: + __be16 dest;
1: + __be32 seq;
1: + __be32 ack_seq;
1: + __u16 res1 : 4;
1: + __u16 doff : 4;
1: + __u16 fin : 1;
1: + __u16 syn : 1;
1: + __u16 rst : 1;
1: + __u16 psh : 1;
1: + __u16 ack : 1;
1: + __u16 urg : 1;
1: + __u16 ece : 1;
1: + __u16 cwr : 1;
1: + __be16 window;
1: + __sum16 check;
1: + __be16 urg_ptr;
1: };
1:
1: struct iphdr {
1: - __u8 ihl: 4;
1: - __u8 version: 4;
1: - __u8 tos;
1: - __be16 tot_len;
1: - __be16 id;
1: - __be16 frag_off;
1: - __u8 ttl;
1: - __u8 protocol;
1: - __sum16 check;
1: - __be32 saddr;
1: - __be32 daddr;
1: + __u8 ihl : 4;
1: + __u8 version : 4;
1: + __u8 tos;
1: + __be16 tot_len;
1: + __be16 id;
1: + __be16 frag_off;
1: + __u8 ttl;
1: + __u8 protocol;
1: + __sum16 check;
1: + __be32 saddr;
1: + __be32 daddr;
1: };
1:
1: struct ipv6_rt_hdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: - __u8 type;
1: - __u8 segments_left;
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: };
1:
1: struct ipv6_opt_hdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: };
1:
1: struct ipv6hdr {
1: - __u8 priority: 4;
1: - __u8 version: 4;
1: - __u8 flow_lbl[3];
1: - __be16 payload_len;
1: - __u8 nexthdr;
1: - __u8 hop_limit;
1: - struct in6_addr saddr;
1: - struct in6_addr daddr;
1: + __u8 priority : 4;
1: + __u8 version : 4;
1: + __u8 flow_lbl[3];
1: + __be16 payload_len;
1: + __u8 nexthdr;
1: + __u8 hop_limit;
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: };
1:
1: struct udphdr {
1: - __be16 source;
1: - __be16 dest;
1: - __be16 len;
1: - __sum16 check;
1: + __be16 source;
1: + __be16 dest;
1: + __be16 len;
1: + __sum16 check;
1: };
1:
1: struct inet6_skb_parm {
1: - int iif;
1: - __be16 ra;
1: - __u16 dst0;
1: - __u16 srcrt;
1: - __u16 dst1;
1: - __u16 lastopt;
1: - __u16 nhoff;
1: - __u16 flags;
1: - __u16 dsthao;
1: - __u16 frag_max_size;
1: + int iif;
1: + __be16 ra;
1: + __u16 dst0;
1: + __u16 srcrt;
1: + __u16 dst1;
1: + __u16 lastopt;
1: + __u16 nhoff;
1: + __u16 flags;
1: + __u16 dsthao;
1: + __u16 frag_max_size;
1: };
1:
1: struct ip6_sf_socklist;
1:
1: struct ipv6_mc_socklist {
1: - struct in6_addr addr;
1: - int ifindex;
1: - unsigned int sfmode;
1: - struct ipv6_mc_socklist *next;
1: - rwlock_t sflock;
1: - struct ip6_sf_socklist *sflist;
1: - struct callback_head rcu;
1: + struct in6_addr addr;
1: + int ifindex;
1: + unsigned int sfmode;
1: + struct ipv6_mc_socklist *next;
1: + rwlock_t sflock;
1: + struct ip6_sf_socklist *sflist;
1: + struct callback_head rcu;
1: };
1:
1: struct ipv6_ac_socklist {
1: - struct in6_addr acl_addr;
1: - int acl_ifindex;
1: - struct ipv6_ac_socklist *acl_next;
1: + struct in6_addr acl_addr;
1: + int acl_ifindex;
1: + struct ipv6_ac_socklist *acl_next;
1: };
1:
1: struct ip6_flowlabel;
1:
1: struct ipv6_fl_socklist {
1: - struct ipv6_fl_socklist *next;
1: - struct ip6_flowlabel *fl;
1: - struct callback_head rcu;
1: + struct ipv6_fl_socklist *next;
1: + struct ip6_flowlabel *fl;
1: + struct callback_head rcu;
1: };
1:
1: struct ip6_sf_socklist {
1: - unsigned int sl_max;
1: - unsigned int sl_count;
1: - struct in6_addr sl_addr[0];
1: + unsigned int sl_max;
1: + unsigned int sl_count;
1: + struct in6_addr sl_addr[0];
1: };
1:
1: struct ip6_flowlabel {
1: - struct ip6_flowlabel *next;
1: - __be32 label;
1: - atomic_t users;
1: - struct in6_addr dst;
1: - struct ipv6_txoptions *opt;
1: - long unsigned int linger;
1: - struct callback_head rcu;
1: - u8 share;
1: - union {
1: - struct pid *pid;
1: - kuid_t uid;
1: - } owner;
1: - long unsigned int lastuse;
1: - long unsigned int expires;
1: - struct net *fl_net;
1: + struct ip6_flowlabel *next;
1: + __be32 label;
1: + atomic_t users;
1: + struct in6_addr dst;
1: + struct ipv6_txoptions *opt;
1: + long unsigned int linger;
1: + struct callback_head rcu;
1: + u8 share;
1: + union {
1: + struct pid *pid;
1: + kuid_t uid;
1: + } owner;
1: + long unsigned int lastuse;
1: + long unsigned int expires;
1: + struct net *fl_net;
1: };
1:
1: struct inet_skb_parm {
1: - int iif;
1: - struct ip_options opt;
1: - u16 flags;
1: - u16 frag_max_size;
1: + int iif;
1: + struct ip_options opt;
1: + u16 flags;
1: + u16 frag_max_size;
1: };
1:
1: struct tty_file_private {
1: - struct tty_struct *tty;
1: - struct file *file;
1: - struct list_head list;
1: + struct tty_struct *tty;
1: + struct file *file;
1: + struct list_head list;
1: };
1:
1: struct netlbl_lsm_cache {
1: - refcount_t refcount;
1: - void (*free)(const void *);
1: - void *data;
1: + refcount_t refcount;
1: + void (*free)(const void *);
1: + void *data;
1: };
1:
1: struct netlbl_lsm_catmap {
1: - u32 startbit;
1: - u64 bitmap[4];
1: - struct netlbl_lsm_catmap *next;
1: + u32 startbit;
1: + u64 bitmap[4];
1: + struct netlbl_lsm_catmap *next;
1: };
1:
1: struct netlbl_lsm_secattr {
1: - u32 flags;
1: - u32 type;
1: - char *domain;
1: - struct netlbl_lsm_cache *cache;
1: - struct {
1: - struct {
1: - struct netlbl_lsm_catmap *cat;
1: - u32 lvl;
1: - } mls;
1: - u32 secid;
1: - } attr;
1: + u32 flags;
1: + u32 type;
1: + char *domain;
1: + struct netlbl_lsm_cache *cache;
1: + struct {
1: + struct {
1: + struct netlbl_lsm_catmap *cat;
1: + u32 lvl;
1: + } mls;
1: + u32 secid;
1: + } attr;
1: };
1:
1: struct dccp_hdr {
1: - __be16 dccph_sport;
1: - __be16 dccph_dport;
1: - __u8 dccph_doff;
1: - __u8 dccph_cscov: 4;
1: - __u8 dccph_ccval: 4;
1: - __sum16 dccph_checksum;
1: - __u8 dccph_x: 1;
1: - __u8 dccph_type: 4;
1: - __u8 dccph_reserved: 3;
1: - __u8 dccph_seq2;
1: - __be16 dccph_seq;
1: + __be16 dccph_sport;
1: + __be16 dccph_dport;
1: + __u8 dccph_doff;
1: + __u8 dccph_cscov : 4;
1: + __u8 dccph_ccval : 4;
1: + __sum16 dccph_checksum;
1: + __u8 dccph_x : 1;
1: + __u8 dccph_type : 4;
1: + __u8 dccph_reserved : 3;
1: + __u8 dccph_seq2;
1: + __be16 dccph_seq;
1: };
1:
1: enum dccp_state {
1: - DCCP_OPEN = 1,
1: - DCCP_REQUESTING = 2,
1: - DCCP_LISTEN = 10,
1: - DCCP_RESPOND = 3,
1: - DCCP_ACTIVE_CLOSEREQ = 4,
1: - DCCP_PASSIVE_CLOSE = 8,
1: - DCCP_CLOSING = 11,
1: - DCCP_TIME_WAIT = 6,
1: - DCCP_CLOSED = 7,
1: - DCCP_NEW_SYN_RECV = 12,
1: - DCCP_PARTOPEN = 13,
1: - DCCP_PASSIVE_CLOSEREQ = 14,
1: - DCCP_MAX_STATES = 15,
1: + DCCP_OPEN = 1,
1: + DCCP_REQUESTING = 2,
1: + DCCP_LISTEN = 10,
1: + DCCP_RESPOND = 3,
1: + DCCP_ACTIVE_CLOSEREQ = 4,
1: + DCCP_PASSIVE_CLOSE = 8,
1: + DCCP_CLOSING = 11,
1: + DCCP_TIME_WAIT = 6,
1: + DCCP_CLOSED = 7,
1: + DCCP_NEW_SYN_RECV = 12,
1: + DCCP_PARTOPEN = 13,
1: + DCCP_PASSIVE_CLOSEREQ = 14,
1: + DCCP_MAX_STATES = 15,
1: };
1:
1: typedef __s32 sctp_assoc_t;
1:
1: enum sctp_msg_flags {
1: - MSG_NOTIFICATION = 32768,
1: + MSG_NOTIFICATION = 32768,
1: };
1:
1: struct sctp_initmsg {
1: - __u16 sinit_num_ostreams;
1: - __u16 sinit_max_instreams;
1: - __u16 sinit_max_attempts;
1: - __u16 sinit_max_init_timeo;
1: + __u16 sinit_num_ostreams;
1: + __u16 sinit_max_instreams;
1: + __u16 sinit_max_attempts;
1: + __u16 sinit_max_init_timeo;
1: };
1:
1: struct sctp_sndrcvinfo {
1: - __u16 sinfo_stream;
1: - __u16 sinfo_ssn;
1: - __u16 sinfo_flags;
1: - __u32 sinfo_ppid;
1: - __u32 sinfo_context;
1: - __u32 sinfo_timetolive;
1: - __u32 sinfo_tsn;
1: - __u32 sinfo_cumtsn;
1: - sctp_assoc_t sinfo_assoc_id;
1: + __u16 sinfo_stream;
1: + __u16 sinfo_ssn;
1: + __u16 sinfo_flags;
1: + __u32 sinfo_ppid;
1: + __u32 sinfo_context;
1: + __u32 sinfo_timetolive;
1: + __u32 sinfo_tsn;
1: + __u32 sinfo_cumtsn;
1: + sctp_assoc_t sinfo_assoc_id;
1: };
1:
1: struct sctp_rtoinfo {
1: - sctp_assoc_t srto_assoc_id;
1: - __u32 srto_initial;
1: - __u32 srto_max;
1: - __u32 srto_min;
1: + sctp_assoc_t srto_assoc_id;
1: + __u32 srto_initial;
1: + __u32 srto_max;
1: + __u32 srto_min;
1: };
1:
1: struct sctp_assocparams {
1: - sctp_assoc_t sasoc_assoc_id;
1: - __u16 sasoc_asocmaxrxt;
1: - __u16 sasoc_number_peer_destinations;
1: - __u32 sasoc_peer_rwnd;
1: - __u32 sasoc_local_rwnd;
1: - __u32 sasoc_cookie_life;
1: + sctp_assoc_t sasoc_assoc_id;
1: + __u16 sasoc_asocmaxrxt;
1: + __u16 sasoc_number_peer_destinations;
1: + __u32 sasoc_peer_rwnd;
1: + __u32 sasoc_local_rwnd;
1: + __u32 sasoc_cookie_life;
1: };
1:
1: struct sctp_paddrparams {
1: - sctp_assoc_t spp_assoc_id;
1: - struct __kernel_sockaddr_storage spp_address;
1: - __u32 spp_hbinterval;
1: - __u16 spp_pathmaxrxt;
1: - __u32 spp_pathmtu;
1: - __u32 spp_sackdelay;
1: - __u32 spp_flags;
1: - __u32 spp_ipv6_flowlabel;
1: - __u8 spp_dscp;
1: - char: 8;
1: + sctp_assoc_t spp_assoc_id;
1: + struct __kernel_sockaddr_storage spp_address;
1: + __u32 spp_hbinterval;
1: + __u16 spp_pathmaxrxt;
1: + __u32 spp_pathmtu;
1: + __u32 spp_sackdelay;
1: + __u32 spp_flags;
1: + __u32 spp_ipv6_flowlabel;
1: + __u8 spp_dscp;
1: + char : 8;
1: } __attribute__((packed));
1:
1: struct sctphdr {
1: - __be16 source;
1: - __be16 dest;
1: - __be32 vtag;
1: - __le32 checksum;
1: + __be16 source;
1: + __be16 dest;
1: + __be32 vtag;
1: + __le32 checksum;
1: };
1:
1: struct sctp_chunkhdr {
1: - __u8 type;
1: - __u8 flags;
1: - __be16 length;
1: + __u8 type;
1: + __u8 flags;
1: + __be16 length;
1: };
1:
1: enum sctp_cid {
1: - SCTP_CID_DATA = 0,
1: - SCTP_CID_INIT = 1,
1: - SCTP_CID_INIT_ACK = 2,
1: - SCTP_CID_SACK = 3,
1: - SCTP_CID_HEARTBEAT = 4,
1: - SCTP_CID_HEARTBEAT_ACK = 5,
1: - SCTP_CID_ABORT = 6,
1: - SCTP_CID_SHUTDOWN = 7,
1: - SCTP_CID_SHUTDOWN_ACK = 8,
1: - SCTP_CID_ERROR = 9,
1: - SCTP_CID_COOKIE_ECHO = 10,
1: - SCTP_CID_COOKIE_ACK = 11,
1: - SCTP_CID_ECN_ECNE = 12,
1: - SCTP_CID_ECN_CWR = 13,
1: - SCTP_CID_SHUTDOWN_COMPLETE = 14,
1: - SCTP_CID_AUTH = 15,
1: - SCTP_CID_I_DATA = 64,
1: - SCTP_CID_FWD_TSN = 192,
1: - SCTP_CID_ASCONF = 193,
1: - SCTP_CID_I_FWD_TSN = 194,
1: - SCTP_CID_ASCONF_ACK = 128,
1: - SCTP_CID_RECONF = 130,
1: + SCTP_CID_DATA = 0,
1: + SCTP_CID_INIT = 1,
1: + SCTP_CID_INIT_ACK = 2,
1: + SCTP_CID_SACK = 3,
1: + SCTP_CID_HEARTBEAT = 4,
1: + SCTP_CID_HEARTBEAT_ACK = 5,
1: + SCTP_CID_ABORT = 6,
1: + SCTP_CID_SHUTDOWN = 7,
1: + SCTP_CID_SHUTDOWN_ACK = 8,
1: + SCTP_CID_ERROR = 9,
1: + SCTP_CID_COOKIE_ECHO = 10,
1: + SCTP_CID_COOKIE_ACK = 11,
1: + SCTP_CID_ECN_ECNE = 12,
1: + SCTP_CID_ECN_CWR = 13,
1: + SCTP_CID_SHUTDOWN_COMPLETE = 14,
1: + SCTP_CID_AUTH = 15,
1: + SCTP_CID_I_DATA = 64,
1: + SCTP_CID_FWD_TSN = 192,
1: + SCTP_CID_ASCONF = 193,
1: + SCTP_CID_I_FWD_TSN = 194,
1: + SCTP_CID_ASCONF_ACK = 128,
1: + SCTP_CID_RECONF = 130,
1: };
1:
1: struct sctp_paramhdr {
1: - __be16 type;
1: - __be16 length;
1: + __be16 type;
1: + __be16 length;
1: };
1:
1: enum sctp_param {
1: - SCTP_PARAM_HEARTBEAT_INFO = 256,
1: - SCTP_PARAM_IPV4_ADDRESS = 1280,
1: - SCTP_PARAM_IPV6_ADDRESS = 1536,
1: - SCTP_PARAM_STATE_COOKIE = 1792,
1: - SCTP_PARAM_UNRECOGNIZED_PARAMETERS = 2048,
1: - SCTP_PARAM_COOKIE_PRESERVATIVE = 2304,
1: - SCTP_PARAM_HOST_NAME_ADDRESS = 2816,
1: - SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = 3072,
1: - SCTP_PARAM_ECN_CAPABLE = 128,
1: - SCTP_PARAM_RANDOM = 640,
1: - SCTP_PARAM_CHUNKS = 896,
1: - SCTP_PARAM_HMAC_ALGO = 1152,
1: - SCTP_PARAM_SUPPORTED_EXT = 2176,
1: - SCTP_PARAM_FWD_TSN_SUPPORT = 192,
1: - SCTP_PARAM_ADD_IP = 448,
1: - SCTP_PARAM_DEL_IP = 704,
1: - SCTP_PARAM_ERR_CAUSE = 960,
1: - SCTP_PARAM_SET_PRIMARY = 1216,
1: - SCTP_PARAM_SUCCESS_REPORT = 1472,
1: - SCTP_PARAM_ADAPTATION_LAYER_IND = 1728,
1: - SCTP_PARAM_RESET_OUT_REQUEST = 3328,
1: - SCTP_PARAM_RESET_IN_REQUEST = 3584,
1: - SCTP_PARAM_RESET_TSN_REQUEST = 3840,
1: - SCTP_PARAM_RESET_RESPONSE = 4096,
1: - SCTP_PARAM_RESET_ADD_OUT_STREAMS = 4352,
1: - SCTP_PARAM_RESET_ADD_IN_STREAMS = 4608,
1: + SCTP_PARAM_HEARTBEAT_INFO = 256,
1: + SCTP_PARAM_IPV4_ADDRESS = 1280,
1: + SCTP_PARAM_IPV6_ADDRESS = 1536,
1: + SCTP_PARAM_STATE_COOKIE = 1792,
1: + SCTP_PARAM_UNRECOGNIZED_PARAMETERS = 2048,
1: + SCTP_PARAM_COOKIE_PRESERVATIVE = 2304,
1: + SCTP_PARAM_HOST_NAME_ADDRESS = 2816,
1: + SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = 3072,
1: + SCTP_PARAM_ECN_CAPABLE = 128,
1: + SCTP_PARAM_RANDOM = 640,
1: + SCTP_PARAM_CHUNKS = 896,
1: + SCTP_PARAM_HMAC_ALGO = 1152,
1: + SCTP_PARAM_SUPPORTED_EXT = 2176,
1: + SCTP_PARAM_FWD_TSN_SUPPORT = 192,
1: + SCTP_PARAM_ADD_IP = 448,
1: + SCTP_PARAM_DEL_IP = 704,
1: + SCTP_PARAM_ERR_CAUSE = 960,
1: + SCTP_PARAM_SET_PRIMARY = 1216,
1: + SCTP_PARAM_SUCCESS_REPORT = 1472,
1: + SCTP_PARAM_ADAPTATION_LAYER_IND = 1728,
1: + SCTP_PARAM_RESET_OUT_REQUEST = 3328,
1: + SCTP_PARAM_RESET_IN_REQUEST = 3584,
1: + SCTP_PARAM_RESET_TSN_REQUEST = 3840,
1: + SCTP_PARAM_RESET_RESPONSE = 4096,
1: + SCTP_PARAM_RESET_ADD_OUT_STREAMS = 4352,
1: + SCTP_PARAM_RESET_ADD_IN_STREAMS = 4608,
1: };
1:
1: struct sctp_datahdr {
1: - __be32 tsn;
1: - __be16 stream;
1: - __be16 ssn;
1: - __u32 ppid;
1: - __u8 payload[0];
1: + __be32 tsn;
1: + __be16 stream;
1: + __be16 ssn;
1: + __u32 ppid;
1: + __u8 payload[0];
1: };
1:
1: struct sctp_idatahdr {
1: - __be32 tsn;
1: - __be16 stream;
1: - __be16 reserved;
1: - __be32 mid;
1: - union {
1: - __u32 ppid;
1: - __be32 fsn;
1: - };
1: - __u8 payload[0];
1: + __be32 tsn;
1: + __be16 stream;
1: + __be16 reserved;
1: + __be32 mid;
1: + union {
1: + __u32 ppid;
1: + __be32 fsn;
1: + };
1: + __u8 payload[0];
1: };
1:
1: struct sctp_inithdr {
1: - __be32 init_tag;
1: - __be32 a_rwnd;
1: - __be16 num_outbound_streams;
1: - __be16 num_inbound_streams;
1: - __be32 initial_tsn;
1: - __u8 params[0];
1: + __be32 init_tag;
1: + __be32 a_rwnd;
1: + __be16 num_outbound_streams;
1: + __be16 num_inbound_streams;
1: + __be32 initial_tsn;
1: + __u8 params[0];
1: };
1:
1: struct sctp_init_chunk {
1: - struct sctp_chunkhdr chunk_hdr;
1: - struct sctp_inithdr init_hdr;
1: + struct sctp_chunkhdr chunk_hdr;
1: + struct sctp_inithdr init_hdr;
1: };
1:
1: struct sctp_ipv4addr_param {
1: - struct sctp_paramhdr param_hdr;
1: - struct in_addr addr;
1: + struct sctp_paramhdr param_hdr;
1: + struct in_addr addr;
1: };
1:
1: struct sctp_ipv6addr_param {
1: - struct sctp_paramhdr param_hdr;
1: - struct in6_addr addr;
1: + struct sctp_paramhdr param_hdr;
1: + struct in6_addr addr;
1: };
1:
1: struct sctp_cookie_preserve_param {
1: - struct sctp_paramhdr param_hdr;
1: - __be32 lifespan_increment;
1: + struct sctp_paramhdr param_hdr;
1: + __be32 lifespan_increment;
1: };
1:
1: struct sctp_hostname_param {
1: - struct sctp_paramhdr param_hdr;
1: - uint8_t hostname[0];
1: + struct sctp_paramhdr param_hdr;
1: + uint8_t hostname[0];
1: };
1:
1: struct sctp_supported_addrs_param {
1: - struct sctp_paramhdr param_hdr;
1: - __be16 types[0];
1: + struct sctp_paramhdr param_hdr;
1: + __be16 types[0];
1: };
1:
1: struct sctp_adaptation_ind_param {
1: - struct sctp_paramhdr param_hdr;
1: - __be32 adaptation_ind;
1: + struct sctp_paramhdr param_hdr;
1: + __be32 adaptation_ind;
1: };
1:
1: struct sctp_supported_ext_param {
1: - struct sctp_paramhdr param_hdr;
1: - __u8 chunks[0];
1: + struct sctp_paramhdr param_hdr;
1: + __u8 chunks[0];
1: };
1:
1: struct sctp_random_param {
1: - struct sctp_paramhdr param_hdr;
1: - __u8 random_val[0];
1: + struct sctp_paramhdr param_hdr;
1: + __u8 random_val[0];
1: };
1:
1: struct sctp_chunks_param {
1: - struct sctp_paramhdr param_hdr;
1: - __u8 chunks[0];
1: + struct sctp_paramhdr param_hdr;
1: + __u8 chunks[0];
1: };
1:
1: struct sctp_hmac_algo_param {
1: - struct sctp_paramhdr param_hdr;
1: - __be16 hmac_ids[0];
1: + struct sctp_paramhdr param_hdr;
1: + __be16 hmac_ids[0];
1: };
1:
1: struct sctp_cookie_param {
1: - struct sctp_paramhdr p;
1: - __u8 body[0];
1: + struct sctp_paramhdr p;
1: + __u8 body[0];
1: };
1:
1: struct sctp_gap_ack_block {
1: - __be16 start;
1: - __be16 end;
1: + __be16 start;
1: + __be16 end;
1: };
1:
1: union sctp_sack_variable {
1: - struct sctp_gap_ack_block gab;
1: - __be32 dup;
1: + struct sctp_gap_ack_block gab;
1: + __be32 dup;
1: };
1:
1: struct sctp_sackhdr {
1: - __be32 cum_tsn_ack;
1: - __be32 a_rwnd;
1: - __be16 num_gap_ack_blocks;
1: - __be16 num_dup_tsns;
1: - union sctp_sack_variable variable[0];
1: + __be32 cum_tsn_ack;
1: + __be32 a_rwnd;
1: + __be16 num_gap_ack_blocks;
1: + __be16 num_dup_tsns;
1: + union sctp_sack_variable variable[0];
1: };
1:
1: struct sctp_heartbeathdr {
1: - struct sctp_paramhdr info;
1: + struct sctp_paramhdr info;
1: };
1:
1: struct sctp_shutdownhdr {
1: - __be32 cum_tsn_ack;
1: + __be32 cum_tsn_ack;
1: };
1:
1: struct sctp_errhdr {
1: - __be16 cause;
1: - __be16 length;
1: - __u8 variable[0];
1: + __be16 cause;
1: + __be16 length;
1: + __u8 variable[0];
1: };
1:
1: struct sctp_ecnehdr {
1: - __be32 lowest_tsn;
1: + __be32 lowest_tsn;
1: };
1:
1: struct sctp_cwrhdr {
1: - __be32 lowest_tsn;
1: + __be32 lowest_tsn;
1: };
1:
1: struct sctp_fwdtsn_skip {
1: - __be16 stream;
1: - __be16 ssn;
1: + __be16 stream;
1: + __be16 ssn;
1: };
1:
1: struct sctp_fwdtsn_hdr {
1: - __be32 new_cum_tsn;
1: - struct sctp_fwdtsn_skip skip[0];
1: + __be32 new_cum_tsn;
1: + struct sctp_fwdtsn_skip skip[0];
1: };
1:
1: struct sctp_ifwdtsn_skip {
1: - __be16 stream;
1: - __u8 reserved;
1: - __u8 flags;
1: - __be32 mid;
1: + __be16 stream;
1: + __u8 reserved;
1: + __u8 flags;
1: + __be32 mid;
1: };
1:
1: struct sctp_ifwdtsn_hdr {
1: - __be32 new_cum_tsn;
1: - struct sctp_ifwdtsn_skip skip[0];
1: + __be32 new_cum_tsn;
1: + struct sctp_ifwdtsn_skip skip[0];
1: };
1:
1: struct sctp_addip_param {
1: - struct sctp_paramhdr param_hdr;
1: - __be32 crr_id;
1: + struct sctp_paramhdr param_hdr;
1: + __be32 crr_id;
1: };
1:
1: struct sctp_addiphdr {
1: - __be32 serial;
1: - __u8 params[0];
1: + __be32 serial;
1: + __u8 params[0];
1: };
1:
1: struct sctp_authhdr {
1: - __be16 shkey_id;
1: - __be16 hmac_id;
1: - __u8 hmac[0];
1: + __be16 shkey_id;
1: + __be16 hmac_id;
1: + __u8 hmac[0];
1: };
1:
1: union sctp_addr {
1: - struct sockaddr_in v4;
1: - struct sockaddr_in6 v6;
1: - struct sockaddr sa;
1: + struct sockaddr_in v4;
1: + struct sockaddr_in6 v6;
1: + struct sockaddr sa;
1: };
1:
1: struct sctp_cookie {
1: - __u32 my_vtag;
1: - __u32 peer_vtag;
1: - __u32 my_ttag;
1: - __u32 peer_ttag;
1: - ktime_t expiration;
1: - __u16 sinit_num_ostreams;
1: - __u16 sinit_max_instreams;
1: - __u32 initial_tsn;
1: - union sctp_addr peer_addr;
1: - __u16 my_port;
1: - __u8 prsctp_capable;
1: - __u8 padding;
1: - __u32 adaptation_ind;
1: - __u8 auth_random[36];
1: - __u8 auth_hmacs[10];
1: - __u8 auth_chunks[20];
1: - __u32 raw_addr_list_len;
1: - struct sctp_init_chunk peer_init[0];
1: + __u32 my_vtag;
1: + __u32 peer_vtag;
1: + __u32 my_ttag;
1: + __u32 peer_ttag;
1: + ktime_t expiration;
1: + __u16 sinit_num_ostreams;
1: + __u16 sinit_max_instreams;
1: + __u32 initial_tsn;
1: + union sctp_addr peer_addr;
1: + __u16 my_port;
1: + __u8 prsctp_capable;
1: + __u8 padding;
1: + __u32 adaptation_ind;
1: + __u8 auth_random[36];
1: + __u8 auth_hmacs[10];
1: + __u8 auth_chunks[20];
1: + __u32 raw_addr_list_len;
1: + struct sctp_init_chunk peer_init[0];
1: };
1:
1: struct sctp_tsnmap {
1: - long unsigned int *tsn_map;
1: - __u32 base_tsn;
1: - __u32 cumulative_tsn_ack_point;
1: - __u32 max_tsn_seen;
1: - __u16 len;
1: - __u16 pending_data;
1: - __u16 num_dup_tsns;
1: - __be32 dup_tsns[16];
1: + long unsigned int *tsn_map;
1: + __u32 base_tsn;
1: + __u32 cumulative_tsn_ack_point;
1: + __u32 max_tsn_seen;
1: + __u16 len;
1: + __u16 pending_data;
1: + __u16 num_dup_tsns;
1: + __be32 dup_tsns[16];
1: };
1:
1: struct sctp_inithdr_host {
1: - __u32 init_tag;
1: - __u32 a_rwnd;
1: - __u16 num_outbound_streams;
1: - __u16 num_inbound_streams;
1: - __u32 initial_tsn;
1: + __u32 init_tag;
1: + __u32 a_rwnd;
1: + __u16 num_outbound_streams;
1: + __u16 num_inbound_streams;
1: + __u32 initial_tsn;
1: };
1:
1: enum sctp_state {
1: - SCTP_STATE_CLOSED = 0,
1: - SCTP_STATE_COOKIE_WAIT = 1,
1: - SCTP_STATE_COOKIE_ECHOED = 2,
1: - SCTP_STATE_ESTABLISHED = 3,
1: - SCTP_STATE_SHUTDOWN_PENDING = 4,
1: - SCTP_STATE_SHUTDOWN_SENT = 5,
1: - SCTP_STATE_SHUTDOWN_RECEIVED = 6,
1: - SCTP_STATE_SHUTDOWN_ACK_SENT = 7,
1: + SCTP_STATE_CLOSED = 0,
1: + SCTP_STATE_COOKIE_WAIT = 1,
1: + SCTP_STATE_COOKIE_ECHOED = 2,
1: + SCTP_STATE_ESTABLISHED = 3,
1: + SCTP_STATE_SHUTDOWN_PENDING = 4,
1: + SCTP_STATE_SHUTDOWN_SENT = 5,
1: + SCTP_STATE_SHUTDOWN_RECEIVED = 6,
1: + SCTP_STATE_SHUTDOWN_ACK_SENT = 7,
1: };
1:
1: struct sctp_stream_out_ext;
1:
1: struct sctp_stream_out {
1: - union {
1: - __u32 mid;
1: - __u16 ssn;
1: - };
1: - __u32 mid_uo;
1: - struct sctp_stream_out_ext *ext;
1: - __u8 state;
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + __u32 mid_uo;
1: + struct sctp_stream_out_ext *ext;
1: + __u8 state;
1: };
1:
1: struct sctp_stream_in {
1: - union {
1: - __u32 mid;
1: - __u16 ssn;
1: - };
1: - __u32 mid_uo;
1: - __u32 fsn;
1: - __u32 fsn_uo;
1: - char pd_mode;
1: - char pd_mode_uo;
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + __u32 mid_uo;
1: + __u32 fsn;
1: + __u32 fsn_uo;
1: + char pd_mode;
1: + char pd_mode_uo;
1: };
1:
1: struct sctp_stream_interleave;
1:
1: struct sctp_stream {
1: - struct {
1: - struct __genradix tree;
1: - struct sctp_stream_out type[0];
1: - } out;
1: - struct {
1: - struct __genradix tree;
1: - struct sctp_stream_in type[0];
1: - } in;
1: - __u16 outcnt;
1: - __u16 incnt;
1: - struct sctp_stream_out *out_curr;
1: - union {
1: - struct {
1: - struct list_head prio_list;
1: - };
1: - struct {
1: - struct list_head rr_list;
1: - struct sctp_stream_out_ext *rr_next;
1: - };
1: - };
1: - struct sctp_stream_interleave *si;
1: + struct {
1: + struct __genradix tree;
1: + struct sctp_stream_out type[0];
1: + } out;
1: + struct {
1: + struct __genradix tree;
1: + struct sctp_stream_in type[0];
1: + } in;
1: + __u16 outcnt;
1: + __u16 incnt;
1: + struct sctp_stream_out *out_curr;
1: + union {
1: + struct {
1: + struct list_head prio_list;
1: + };
1: + struct {
1: + struct list_head rr_list;
1: + struct sctp_stream_out_ext *rr_next;
1: + };
1: + };
1: + struct sctp_stream_interleave *si;
1: };
1:
1: struct sctp_sched_ops;
1: @@ -48089,45 +48879,45 @@ struct sctp_sched_ops;
1: struct sctp_association;
1:
1: struct sctp_outq {
1: - struct sctp_association *asoc;
1: - struct list_head out_chunk_list;
1: - struct sctp_sched_ops *sched;
1: - unsigned int out_qlen;
1: - unsigned int error;
1: - struct list_head control_chunk_list;
1: - struct list_head sacked;
1: - struct list_head retransmit;
1: - struct list_head abandoned;
1: - __u32 outstanding_bytes;
1: - char fast_rtx;
1: - char cork;
1: + struct sctp_association *asoc;
1: + struct list_head out_chunk_list;
1: + struct sctp_sched_ops *sched;
1: + unsigned int out_qlen;
1: + unsigned int error;
1: + struct list_head control_chunk_list;
1: + struct list_head sacked;
1: + struct list_head retransmit;
1: + struct list_head abandoned;
1: + __u32 outstanding_bytes;
1: + char fast_rtx;
1: + char cork;
1: };
1:
1: struct sctp_ulpq {
1: - char pd_mode;
1: - struct sctp_association *asoc;
1: - struct sk_buff_head reasm;
1: - struct sk_buff_head reasm_uo;
1: - struct sk_buff_head lobby;
1: + char pd_mode;
1: + struct sctp_association *asoc;
1: + struct sk_buff_head reasm;
1: + struct sk_buff_head reasm_uo;
1: + struct sk_buff_head lobby;
1: };
1:
1: struct sctp_priv_assoc_stats {
1: - struct __kernel_sockaddr_storage obs_rto_ipaddr;
1: - __u64 max_obs_rto;
1: - __u64 isacks;
1: - __u64 osacks;
1: - __u64 opackets;
1: - __u64 ipackets;
1: - __u64 rtxchunks;
1: - __u64 outofseqtsns;
1: - __u64 idupchunks;
1: - __u64 gapcnt;
1: - __u64 ouodchunks;
1: - __u64 iuodchunks;
1: - __u64 oodchunks;
1: - __u64 iodchunks;
1: - __u64 octrlchunks;
1: - __u64 ictrlchunks;
1: + struct __kernel_sockaddr_storage obs_rto_ipaddr;
1: + __u64 max_obs_rto;
1: + __u64 isacks;
1: + __u64 osacks;
1: + __u64 opackets;
1: + __u64 ipackets;
1: + __u64 rtxchunks;
1: + __u64 outofseqtsns;
1: + __u64 idupchunks;
1: + __u64 gapcnt;
1: + __u64 ouodchunks;
1: + __u64 iuodchunks;
1: + __u64 oodchunks;
1: + __u64 iodchunks;
1: + __u64 octrlchunks;
1: + __u64 ictrlchunks;
1: };
1:
1: struct sctp_transport;
1: @@ -48137,223 +48927,223 @@ struct sctp_auth_bytes;
1: struct sctp_shared_key;
1:
1: struct sctp_association {
1: - struct sctp_ep_common base;
1: - struct list_head asocs;
1: - sctp_assoc_t assoc_id;
1: - struct sctp_endpoint *ep;
1: - struct sctp_cookie c;
1: - struct {
1: - struct list_head transport_addr_list;
1: - __u32 rwnd;
1: - __u16 transport_count;
1: - __u16 port;
1: - struct sctp_transport *primary_path;
1: - union sctp_addr primary_addr;
1: - struct sctp_transport *active_path;
1: - struct sctp_transport *retran_path;
1: - struct sctp_transport *last_sent_to;
1: - struct sctp_transport *last_data_from;
1: - struct sctp_tsnmap tsn_map;
1: - __be16 addip_disabled_mask;
1: - __u16 ecn_capable: 1;
1: - __u16 ipv4_address: 1;
1: - __u16 ipv6_address: 1;
1: - __u16 hostname_address: 1;
1: - __u16 asconf_capable: 1;
1: - __u16 prsctp_capable: 1;
1: - __u16 reconf_capable: 1;
1: - __u16 intl_capable: 1;
1: - __u16 auth_capable: 1;
1: - __u16 sack_needed: 1;
1: - __u16 sack_generation: 1;
1: - __u16 zero_window_announced: 1;
1: - __u32 sack_cnt;
1: - __u32 adaptation_ind;
1: - struct sctp_inithdr_host i;
1: - void *cookie;
1: - int cookie_len;
1: - __u32 addip_serial;
1: - struct sctp_random_param *peer_random;
1: - struct sctp_chunks_param *peer_chunks;
1: - struct sctp_hmac_algo_param *peer_hmacs;
1: - } peer;
1: - enum sctp_state state;
1: - int overall_error_count;
1: - ktime_t cookie_life;
1: - long unsigned int rto_initial;
1: - long unsigned int rto_max;
1: - long unsigned int rto_min;
1: - int max_burst;
1: - int max_retrans;
1: - __u16 pf_retrans;
1: - __u16 ps_retrans;
1: - __u16 max_init_attempts;
1: - __u16 init_retries;
1: - long unsigned int max_init_timeo;
1: - long unsigned int hbinterval;
1: - __u16 pathmaxrxt;
1: - __u32 flowlabel;
1: - __u8 dscp;
1: - __u8 pmtu_pending;
1: - __u32 pathmtu;
1: - __u32 param_flags;
1: - __u32 sackfreq;
1: - long unsigned int sackdelay;
1: - long unsigned int timeouts[11];
1: - struct timer_list timers[11];
1: - struct sctp_transport *shutdown_last_sent_to;
1: - struct sctp_transport *init_last_sent_to;
1: - int shutdown_retries;
1: - __u32 next_tsn;
1: - __u32 ctsn_ack_point;
1: - __u32 adv_peer_ack_point;
1: - __u32 highest_sacked;
1: - __u32 fast_recovery_exit;
1: - __u8 fast_recovery;
1: - __u16 unack_data;
1: - __u32 rtx_data_chunks;
1: - __u32 rwnd;
1: - __u32 a_rwnd;
1: - __u32 rwnd_over;
1: - __u32 rwnd_press;
1: - int sndbuf_used;
1: - atomic_t rmem_alloc;
1: - wait_queue_head_t wait;
1: - __u32 frag_point;
1: - __u32 user_frag;
1: - int init_err_counter;
1: - int init_cycle;
1: - __u16 default_stream;
1: - __u16 default_flags;
1: - __u32 default_ppid;
1: - __u32 default_context;
1: - __u32 default_timetolive;
1: - __u32 default_rcv_context;
1: - struct sctp_stream stream;
1: - struct sctp_outq outqueue;
1: - struct sctp_ulpq ulpq;
1: - __u32 last_ecne_tsn;
1: - __u32 last_cwr_tsn;
1: - int numduptsns;
1: - struct sctp_chunk *addip_last_asconf;
1: - struct list_head asconf_ack_list;
1: - struct list_head addip_chunk_list;
1: - __u32 addip_serial;
1: - int src_out_of_asoc_ok;
1: - union sctp_addr *asconf_addr_del_pending;
1: - struct sctp_transport *new_transport;
1: - struct list_head endpoint_shared_keys;
1: - struct sctp_auth_bytes *asoc_shared_key;
1: - struct sctp_shared_key *shkey;
1: - __u16 default_hmac_id;
1: - __u16 active_key_id;
1: - __u8 need_ecne: 1;
1: - __u8 temp: 1;
1: - __u8 pf_expose: 2;
1: - __u8 force_delay: 1;
1: - __u8 strreset_enable;
1: - __u8 strreset_outstanding;
1: - __u32 strreset_outseq;
1: - __u32 strreset_inseq;
1: - __u32 strreset_result[2];
1: - struct sctp_chunk *strreset_chunk;
1: - struct sctp_priv_assoc_stats stats;
1: - int sent_cnt_removable;
1: - __u16 subscribe;
1: - __u64 abandoned_unsent[3];
1: - __u64 abandoned_sent[3];
1: - struct callback_head rcu;
1: + struct sctp_ep_common base;
1: + struct list_head asocs;
1: + sctp_assoc_t assoc_id;
1: + struct sctp_endpoint *ep;
1: + struct sctp_cookie c;
1: + struct {
1: + struct list_head transport_addr_list;
1: + __u32 rwnd;
1: + __u16 transport_count;
1: + __u16 port;
1: + struct sctp_transport *primary_path;
1: + union sctp_addr primary_addr;
1: + struct sctp_transport *active_path;
1: + struct sctp_transport *retran_path;
1: + struct sctp_transport *last_sent_to;
1: + struct sctp_transport *last_data_from;
1: + struct sctp_tsnmap tsn_map;
1: + __be16 addip_disabled_mask;
1: + __u16 ecn_capable : 1;
1: + __u16 ipv4_address : 1;
1: + __u16 ipv6_address : 1;
1: + __u16 hostname_address : 1;
1: + __u16 asconf_capable : 1;
1: + __u16 prsctp_capable : 1;
1: + __u16 reconf_capable : 1;
1: + __u16 intl_capable : 1;
1: + __u16 auth_capable : 1;
1: + __u16 sack_needed : 1;
1: + __u16 sack_generation : 1;
1: + __u16 zero_window_announced : 1;
1: + __u32 sack_cnt;
1: + __u32 adaptation_ind;
1: + struct sctp_inithdr_host i;
1: + void *cookie;
1: + int cookie_len;
1: + __u32 addip_serial;
1: + struct sctp_random_param *peer_random;
1: + struct sctp_chunks_param *peer_chunks;
1: + struct sctp_hmac_algo_param *peer_hmacs;
1: + } peer;
1: + enum sctp_state state;
1: + int overall_error_count;
1: + ktime_t cookie_life;
1: + long unsigned int rto_initial;
1: + long unsigned int rto_max;
1: + long unsigned int rto_min;
1: + int max_burst;
1: + int max_retrans;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + __u16 max_init_attempts;
1: + __u16 init_retries;
1: + long unsigned int max_init_timeo;
1: + long unsigned int hbinterval;
1: + __u16 pathmaxrxt;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + __u8 pmtu_pending;
1: + __u32 pathmtu;
1: + __u32 param_flags;
1: + __u32 sackfreq;
1: + long unsigned int sackdelay;
1: + long unsigned int timeouts[11];
1: + struct timer_list timers[11];
1: + struct sctp_transport *shutdown_last_sent_to;
1: + struct sctp_transport *init_last_sent_to;
1: + int shutdown_retries;
1: + __u32 next_tsn;
1: + __u32 ctsn_ack_point;
1: + __u32 adv_peer_ack_point;
1: + __u32 highest_sacked;
1: + __u32 fast_recovery_exit;
1: + __u8 fast_recovery;
1: + __u16 unack_data;
1: + __u32 rtx_data_chunks;
1: + __u32 rwnd;
1: + __u32 a_rwnd;
1: + __u32 rwnd_over;
1: + __u32 rwnd_press;
1: + int sndbuf_used;
1: + atomic_t rmem_alloc;
1: + wait_queue_head_t wait;
1: + __u32 frag_point;
1: + __u32 user_frag;
1: + int init_err_counter;
1: + int init_cycle;
1: + __u16 default_stream;
1: + __u16 default_flags;
1: + __u32 default_ppid;
1: + __u32 default_context;
1: + __u32 default_timetolive;
1: + __u32 default_rcv_context;
1: + struct sctp_stream stream;
1: + struct sctp_outq outqueue;
1: + struct sctp_ulpq ulpq;
1: + __u32 last_ecne_tsn;
1: + __u32 last_cwr_tsn;
1: + int numduptsns;
1: + struct sctp_chunk *addip_last_asconf;
1: + struct list_head asconf_ack_list;
1: + struct list_head addip_chunk_list;
1: + __u32 addip_serial;
1: + int src_out_of_asoc_ok;
1: + union sctp_addr *asconf_addr_del_pending;
1: + struct sctp_transport *new_transport;
1: + struct list_head endpoint_shared_keys;
1: + struct sctp_auth_bytes *asoc_shared_key;
1: + struct sctp_shared_key *shkey;
1: + __u16 default_hmac_id;
1: + __u16 active_key_id;
1: + __u8 need_ecne : 1;
1: + __u8 temp : 1;
1: + __u8 pf_expose : 2;
1: + __u8 force_delay : 1;
1: + __u8 strreset_enable;
1: + __u8 strreset_outstanding;
1: + __u32 strreset_outseq;
1: + __u32 strreset_inseq;
1: + __u32 strreset_result[2];
1: + struct sctp_chunk *strreset_chunk;
1: + struct sctp_priv_assoc_stats stats;
1: + int sent_cnt_removable;
1: + __u16 subscribe;
1: + __u64 abandoned_unsent[3];
1: + __u64 abandoned_sent[3];
1: + struct callback_head rcu;
1: };
1:
1: struct sctp_auth_bytes {
1: - refcount_t refcnt;
1: - __u32 len;
1: - __u8 data[0];
1: + refcount_t refcnt;
1: + __u32 len;
1: + __u8 data[0];
1: };
1:
1: struct sctp_shared_key {
1: - struct list_head key_list;
1: - struct sctp_auth_bytes *key;
1: - refcount_t refcnt;
1: - __u16 key_id;
1: - __u8 deactivated;
1: + struct list_head key_list;
1: + struct sctp_auth_bytes *key;
1: + refcount_t refcnt;
1: + __u16 key_id;
1: + __u8 deactivated;
1: };
1:
1: enum {
1: - SCTP_MAX_STREAM = 65535,
1: + SCTP_MAX_STREAM = 65535,
1: };
1:
1: enum sctp_event_timeout {
1: - SCTP_EVENT_TIMEOUT_NONE = 0,
1: - SCTP_EVENT_TIMEOUT_T1_COOKIE = 1,
1: - SCTP_EVENT_TIMEOUT_T1_INIT = 2,
1: - SCTP_EVENT_TIMEOUT_T2_SHUTDOWN = 3,
1: - SCTP_EVENT_TIMEOUT_T3_RTX = 4,
1: - SCTP_EVENT_TIMEOUT_T4_RTO = 5,
1: - SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD = 6,
1: - SCTP_EVENT_TIMEOUT_HEARTBEAT = 7,
1: - SCTP_EVENT_TIMEOUT_RECONF = 8,
1: - SCTP_EVENT_TIMEOUT_SACK = 9,
1: - SCTP_EVENT_TIMEOUT_AUTOCLOSE = 10,
1: + SCTP_EVENT_TIMEOUT_NONE = 0,
1: + SCTP_EVENT_TIMEOUT_T1_COOKIE = 1,
1: + SCTP_EVENT_TIMEOUT_T1_INIT = 2,
1: + SCTP_EVENT_TIMEOUT_T2_SHUTDOWN = 3,
1: + SCTP_EVENT_TIMEOUT_T3_RTX = 4,
1: + SCTP_EVENT_TIMEOUT_T4_RTO = 5,
1: + SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD = 6,
1: + SCTP_EVENT_TIMEOUT_HEARTBEAT = 7,
1: + SCTP_EVENT_TIMEOUT_RECONF = 8,
1: + SCTP_EVENT_TIMEOUT_SACK = 9,
1: + SCTP_EVENT_TIMEOUT_AUTOCLOSE = 10,
1: };
1:
1: enum {
1: - SCTP_MAX_DUP_TSNS = 16,
1: + SCTP_MAX_DUP_TSNS = 16,
1: };
1:
1: enum sctp_scope {
1: - SCTP_SCOPE_GLOBAL = 0,
1: - SCTP_SCOPE_PRIVATE = 1,
1: - SCTP_SCOPE_LINK = 2,
1: - SCTP_SCOPE_LOOPBACK = 3,
1: - SCTP_SCOPE_UNUSABLE = 4,
1: + SCTP_SCOPE_GLOBAL = 0,
1: + SCTP_SCOPE_PRIVATE = 1,
1: + SCTP_SCOPE_LINK = 2,
1: + SCTP_SCOPE_LOOPBACK = 3,
1: + SCTP_SCOPE_UNUSABLE = 4,
1: };
1:
1: enum {
1: - SCTP_AUTH_HMAC_ID_RESERVED_0 = 0,
1: - SCTP_AUTH_HMAC_ID_SHA1 = 1,
1: - SCTP_AUTH_HMAC_ID_RESERVED_2 = 2,
1: - SCTP_AUTH_HMAC_ID_SHA256 = 3,
1: - __SCTP_AUTH_HMAC_MAX = 4,
1: + SCTP_AUTH_HMAC_ID_RESERVED_0 = 0,
1: + SCTP_AUTH_HMAC_ID_SHA1 = 1,
1: + SCTP_AUTH_HMAC_ID_RESERVED_2 = 2,
1: + SCTP_AUTH_HMAC_ID_SHA256 = 3,
1: + __SCTP_AUTH_HMAC_MAX = 4,
1: };
1:
1: struct sctp_ulpevent {
1: - struct sctp_association *asoc;
1: - struct sctp_chunk *chunk;
1: - unsigned int rmem_len;
1: - union {
1: - __u32 mid;
1: - __u16 ssn;
1: - };
1: - union {
1: - __u32 ppid;
1: - __u32 fsn;
1: - };
1: - __u32 tsn;
1: - __u32 cumtsn;
1: - __u16 stream;
1: - __u16 flags;
1: - __u16 msg_flags;
1: + struct sctp_association *asoc;
1: + struct sctp_chunk *chunk;
1: + unsigned int rmem_len;
1: + union {
1: + __u32 mid;
1: + __u16 ssn;
1: + };
1: + union {
1: + __u32 ppid;
1: + __u32 fsn;
1: + };
1: + __u32 tsn;
1: + __u32 cumtsn;
1: + __u16 stream;
1: + __u16 flags;
1: + __u16 msg_flags;
1: } __attribute__((packed));
1:
1: union sctp_addr_param;
1:
1: union sctp_params {
1: - void *v;
1: - struct sctp_paramhdr *p;
1: - struct sctp_cookie_preserve_param *life;
1: - struct sctp_hostname_param *dns;
1: - struct sctp_cookie_param *cookie;
1: - struct sctp_supported_addrs_param *sat;
1: - struct sctp_ipv4addr_param *v4;
1: - struct sctp_ipv6addr_param *v6;
1: - union sctp_addr_param *addr;
1: - struct sctp_adaptation_ind_param *aind;
1: - struct sctp_supported_ext_param *ext;
1: - struct sctp_random_param *random;
1: - struct sctp_chunks_param *chunks;
1: - struct sctp_hmac_algo_param *hmac_algo;
1: - struct sctp_addip_param *addip;
1: + void *v;
1: + struct sctp_paramhdr *p;
1: + struct sctp_cookie_preserve_param *life;
1: + struct sctp_hostname_param *dns;
1: + struct sctp_cookie_param *cookie;
1: + struct sctp_supported_addrs_param *sat;
1: + struct sctp_ipv4addr_param *v4;
1: + struct sctp_ipv6addr_param *v6;
1: + union sctp_addr_param *addr;
1: + struct sctp_adaptation_ind_param *aind;
1: + struct sctp_supported_ext_param *ext;
1: + struct sctp_random_param *random;
1: + struct sctp_chunks_param *chunks;
1: + struct sctp_hmac_algo_param *hmac_algo;
1: + struct sctp_addip_param *addip;
1: };
1:
1: struct sctp_sender_hb_info;
1: @@ -48363,735 +49153,743 @@ struct sctp_signed_cookie;
1: struct sctp_datamsg;
1:
1: struct sctp_chunk {
1: - struct list_head list;
1: - refcount_t refcnt;
1: - int sent_count;
1: - union {
1: - struct list_head transmitted_list;
1: - struct list_head stream_list;
1: - };
1: - struct list_head frag_list;
1: - struct sk_buff *skb;
1: - union {
1: - struct sk_buff *head_skb;
1: - struct sctp_shared_key *shkey;
1: - };
1: - union sctp_params param_hdr;
1: - union {
1: - __u8 *v;
1: - struct sctp_datahdr *data_hdr;
1: - struct sctp_inithdr *init_hdr;
1: - struct sctp_sackhdr *sack_hdr;
1: - struct sctp_heartbeathdr *hb_hdr;
1: - struct sctp_sender_hb_info *hbs_hdr;
1: - struct sctp_shutdownhdr *shutdown_hdr;
1: - struct sctp_signed_cookie *cookie_hdr;
1: - struct sctp_ecnehdr *ecne_hdr;
1: - struct sctp_cwrhdr *ecn_cwr_hdr;
1: - struct sctp_errhdr *err_hdr;
1: - struct sctp_addiphdr *addip_hdr;
1: - struct sctp_fwdtsn_hdr *fwdtsn_hdr;
1: - struct sctp_authhdr *auth_hdr;
1: - struct sctp_idatahdr *idata_hdr;
1: - struct sctp_ifwdtsn_hdr *ifwdtsn_hdr;
1: - } subh;
1: - __u8 *chunk_end;
1: - struct sctp_chunkhdr *chunk_hdr;
1: - struct sctphdr *sctp_hdr;
1: - struct sctp_sndrcvinfo sinfo;
1: - struct sctp_association *asoc;
1: - struct sctp_ep_common *rcvr;
1: - long unsigned int sent_at;
1: - union sctp_addr source;
1: - union sctp_addr dest;
1: - struct sctp_datamsg *msg;
1: - struct sctp_transport *transport;
1: - struct sk_buff *auth_chunk;
1: - __u16 rtt_in_progress: 1;
1: - __u16 has_tsn: 1;
1: - __u16 has_ssn: 1;
1: - __u16 singleton: 1;
1: - __u16 end_of_packet: 1;
1: - __u16 ecn_ce_done: 1;
1: - __u16 pdiscard: 1;
1: - __u16 tsn_gap_acked: 1;
1: - __u16 data_accepted: 1;
1: - __u16 auth: 1;
1: - __u16 has_asconf: 1;
1: - __u16 tsn_missing_report: 2;
1: - __u16 fast_retransmit: 2;
1: + struct list_head list;
1: + refcount_t refcnt;
1: + int sent_count;
1: + union {
1: + struct list_head transmitted_list;
1: + struct list_head stream_list;
1: + };
1: + struct list_head frag_list;
1: + struct sk_buff *skb;
1: + union {
1: + struct sk_buff *head_skb;
1: + struct sctp_shared_key *shkey;
1: + };
1: + union sctp_params param_hdr;
1: + union {
1: + __u8 *v;
1: + struct sctp_datahdr *data_hdr;
1: + struct sctp_inithdr *init_hdr;
1: + struct sctp_sackhdr *sack_hdr;
1: + struct sctp_heartbeathdr *hb_hdr;
1: + struct sctp_sender_hb_info *hbs_hdr;
1: + struct sctp_shutdownhdr *shutdown_hdr;
1: + struct sctp_signed_cookie *cookie_hdr;
1: + struct sctp_ecnehdr *ecne_hdr;
1: + struct sctp_cwrhdr *ecn_cwr_hdr;
1: + struct sctp_errhdr *err_hdr;
1: + struct sctp_addiphdr *addip_hdr;
1: + struct sctp_fwdtsn_hdr *fwdtsn_hdr;
1: + struct sctp_authhdr *auth_hdr;
1: + struct sctp_idatahdr *idata_hdr;
1: + struct sctp_ifwdtsn_hdr *ifwdtsn_hdr;
1: + } subh;
1: + __u8 *chunk_end;
1: + struct sctp_chunkhdr *chunk_hdr;
1: + struct sctphdr *sctp_hdr;
1: + struct sctp_sndrcvinfo sinfo;
1: + struct sctp_association *asoc;
1: + struct sctp_ep_common *rcvr;
1: + long unsigned int sent_at;
1: + union sctp_addr source;
1: + union sctp_addr dest;
1: + struct sctp_datamsg *msg;
1: + struct sctp_transport *transport;
1: + struct sk_buff *auth_chunk;
1: + __u16 rtt_in_progress : 1;
1: + __u16 has_tsn : 1;
1: + __u16 has_ssn : 1;
1: + __u16 singleton : 1;
1: + __u16 end_of_packet : 1;
1: + __u16 ecn_ce_done : 1;
1: + __u16 pdiscard : 1;
1: + __u16 tsn_gap_acked : 1;
1: + __u16 data_accepted : 1;
1: + __u16 auth : 1;
1: + __u16 has_asconf : 1;
1: + __u16 tsn_missing_report : 2;
1: + __u16 fast_retransmit : 2;
1: };
1:
1: struct sctp_stream_interleave {
1: - __u16 data_chunk_len;
1: - __u16 ftsn_chunk_len;
1: - struct sctp_chunk * (*make_datafrag)(const struct sctp_association *, const struct sctp_sndrcvinfo *, int, __u8, gfp_t);
1: - void (*assign_number)(struct sctp_chunk *);
1: - bool (*validate_data)(struct sctp_chunk *);
1: - int (*ulpevent_data)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: - int (*enqueue_event)(struct sctp_ulpq *, struct sctp_ulpevent *);
1: - void (*renege_events)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: - void (*start_pd)(struct sctp_ulpq *, gfp_t);
1: - void (*abort_pd)(struct sctp_ulpq *, gfp_t);
1: - void (*generate_ftsn)(struct sctp_outq *, __u32);
1: - bool (*validate_ftsn)(struct sctp_chunk *);
1: - void (*report_ftsn)(struct sctp_ulpq *, __u32);
1: - void (*handle_ftsn)(struct sctp_ulpq *, struct sctp_chunk *);
1: + __u16 data_chunk_len;
1: + __u16 ftsn_chunk_len;
1: + struct sctp_chunk *(*make_datafrag)(const struct sctp_association *,
1: + const struct sctp_sndrcvinfo *, int, __u8,
1: + gfp_t);
1: + void (*assign_number)(struct sctp_chunk *);
1: + bool (*validate_data)(struct sctp_chunk *);
1: + int (*ulpevent_data)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: + int (*enqueue_event)(struct sctp_ulpq *, struct sctp_ulpevent *);
1: + void (*renege_events)(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
1: + void (*start_pd)(struct sctp_ulpq *, gfp_t);
1: + void (*abort_pd)(struct sctp_ulpq *, gfp_t);
1: + void (*generate_ftsn)(struct sctp_outq *, __u32);
1: + bool (*validate_ftsn)(struct sctp_chunk *);
1: + void (*report_ftsn)(struct sctp_ulpq *, __u32);
1: + void (*handle_ftsn)(struct sctp_ulpq *, struct sctp_chunk *);
1: };
1:
1: struct sctp_bind_bucket {
1: - short unsigned int port;
1: - signed char fastreuse;
1: - signed char fastreuseport;
1: - kuid_t fastuid;
1: - struct hlist_node node;
1: - struct hlist_head owner;
1: - struct net *net;
1: + short unsigned int port;
1: + signed char fastreuse;
1: + signed char fastreuseport;
1: + kuid_t fastuid;
1: + struct hlist_node node;
1: + struct hlist_head owner;
1: + struct net *net;
1: };
1:
1: enum sctp_socket_type {
1: - SCTP_SOCKET_UDP = 0,
1: - SCTP_SOCKET_UDP_HIGH_BANDWIDTH = 1,
1: - SCTP_SOCKET_TCP = 2,
1: + SCTP_SOCKET_UDP = 0,
1: + SCTP_SOCKET_UDP_HIGH_BANDWIDTH = 1,
1: + SCTP_SOCKET_TCP = 2,
1: };
1:
1: struct sctp_pf;
1:
1: struct sctp_sock {
1: - struct inet_sock inet;
1: - enum sctp_socket_type type;
1: - int: 32;
1: - struct sctp_pf *pf;
1: - struct crypto_shash___2 *hmac;
1: - char *sctp_hmac_alg;
1: - struct sctp_endpoint *ep;
1: - struct sctp_bind_bucket *bind_hash;
1: - __u16 default_stream;
1: - short: 16;
1: - __u32 default_ppid;
1: - __u16 default_flags;
1: - short: 16;
1: - __u32 default_context;
1: - __u32 default_timetolive;
1: - __u32 default_rcv_context;
1: - int max_burst;
1: - __u32 hbinterval;
1: - __u16 pathmaxrxt;
1: - short: 16;
1: - __u32 flowlabel;
1: - __u8 dscp;
1: - char: 8;
1: - __u16 pf_retrans;
1: - __u16 ps_retrans;
1: - short: 16;
1: - __u32 pathmtu;
1: - __u32 sackdelay;
1: - __u32 sackfreq;
1: - __u32 param_flags;
1: - __u32 default_ss;
1: - struct sctp_rtoinfo rtoinfo;
1: - struct sctp_paddrparams paddrparam;
1: - struct sctp_assocparams assocparams;
1: - __u16 subscribe;
1: - struct sctp_initmsg initmsg;
1: - short: 16;
1: - int user_frag;
1: - __u32 autoclose;
1: - __u32 adaptation_ind;
1: - __u32 pd_point;
1: - __u16 nodelay: 1;
1: - __u16 pf_expose: 2;
1: - __u16 reuse: 1;
1: - __u16 disable_fragments: 1;
1: - __u16 v4mapped: 1;
1: - __u16 frag_interleave: 1;
1: - __u16 recvrcvinfo: 1;
1: - __u16 recvnxtinfo: 1;
1: - __u16 data_ready_signalled: 1;
1: - int: 22;
1: - atomic_t pd_mode;
1: - struct sk_buff_head pd_lobby;
1: - struct list_head auto_asconf_list;
1: - int do_auto_asconf;
1: - int: 32;
1: + struct inet_sock inet;
1: + enum sctp_socket_type type;
1: + int : 32;
1: + struct sctp_pf *pf;
1: + struct crypto_shash___2 *hmac;
1: + char *sctp_hmac_alg;
1: + struct sctp_endpoint *ep;
1: + struct sctp_bind_bucket *bind_hash;
1: + __u16 default_stream;
1: + short : 16;
1: + __u32 default_ppid;
1: + __u16 default_flags;
1: + short : 16;
1: + __u32 default_context;
1: + __u32 default_timetolive;
1: + __u32 default_rcv_context;
1: + int max_burst;
1: + __u32 hbinterval;
1: + __u16 pathmaxrxt;
1: + short : 16;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + char : 8;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + short : 16;
1: + __u32 pathmtu;
1: + __u32 sackdelay;
1: + __u32 sackfreq;
1: + __u32 param_flags;
1: + __u32 default_ss;
1: + struct sctp_rtoinfo rtoinfo;
1: + struct sctp_paddrparams paddrparam;
1: + struct sctp_assocparams assocparams;
1: + __u16 subscribe;
1: + struct sctp_initmsg initmsg;
1: + short : 16;
1: + int user_frag;
1: + __u32 autoclose;
1: + __u32 adaptation_ind;
1: + __u32 pd_point;
1: + __u16 nodelay : 1;
1: + __u16 pf_expose : 2;
1: + __u16 reuse : 1;
1: + __u16 disable_fragments : 1;
1: + __u16 v4mapped : 1;
1: + __u16 frag_interleave : 1;
1: + __u16 recvrcvinfo : 1;
1: + __u16 recvnxtinfo : 1;
1: + __u16 data_ready_signalled : 1;
1: + int : 22;
1: + atomic_t pd_mode;
1: + struct sk_buff_head pd_lobby;
1: + struct list_head auto_asconf_list;
1: + int do_auto_asconf;
1: + int : 32;
1: } __attribute__((packed));
1:
1: struct sctp_af;
1:
1: struct sctp_pf {
1: - void (*event_msgname)(struct sctp_ulpevent *, char *, int *);
1: - void (*skb_msgname)(struct sk_buff *, char *, int *);
1: - int (*af_supported)(sa_family_t, struct sctp_sock *);
1: - int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *, struct sctp_sock *);
1: - int (*bind_verify)(struct sctp_sock *, union sctp_addr *);
1: - int (*send_verify)(struct sctp_sock *, union sctp_addr *);
1: - int (*supported_addrs)(const struct sctp_sock *, __be16 *);
1: - struct sock * (*create_accept_sk)(struct sock *, struct sctp_association *, bool);
1: - int (*addr_to_user)(struct sctp_sock *, union sctp_addr *);
1: - void (*to_sk_saddr)(union sctp_addr *, struct sock *);
1: - void (*to_sk_daddr)(union sctp_addr *, struct sock *);
1: - void (*copy_ip_options)(struct sock *, struct sock *);
1: - struct sctp_af *af;
1: + void (*event_msgname)(struct sctp_ulpevent *, char *, int *);
1: + void (*skb_msgname)(struct sk_buff *, char *, int *);
1: + int (*af_supported)(sa_family_t, struct sctp_sock *);
1: + int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *,
1: + struct sctp_sock *);
1: + int (*bind_verify)(struct sctp_sock *, union sctp_addr *);
1: + int (*send_verify)(struct sctp_sock *, union sctp_addr *);
1: + int (*supported_addrs)(const struct sctp_sock *, __be16 *);
1: + struct sock *(*create_accept_sk)(struct sock *, struct sctp_association *,
1: + bool);
1: + int (*addr_to_user)(struct sctp_sock *, union sctp_addr *);
1: + void (*to_sk_saddr)(union sctp_addr *, struct sock *);
1: + void (*to_sk_daddr)(union sctp_addr *, struct sock *);
1: + void (*copy_ip_options)(struct sock *, struct sock *);
1: + struct sctp_af *af;
1: };
1:
1: struct sctp_signed_cookie {
1: - __u8 signature[32];
1: - __u32 __pad;
1: - struct sctp_cookie c;
1: + __u8 signature[32];
1: + __u32 __pad;
1: + struct sctp_cookie c;
1: } __attribute__((packed));
1:
1: union sctp_addr_param {
1: - struct sctp_paramhdr p;
1: - struct sctp_ipv4addr_param v4;
1: - struct sctp_ipv6addr_param v6;
1: + struct sctp_paramhdr p;
1: + struct sctp_ipv4addr_param v4;
1: + struct sctp_ipv6addr_param v6;
1: };
1:
1: struct sctp_sender_hb_info {
1: - struct sctp_paramhdr param_hdr;
1: - union sctp_addr daddr;
1: - long unsigned int sent_at;
1: - __u64 hb_nonce;
1: + struct sctp_paramhdr param_hdr;
1: + union sctp_addr daddr;
1: + long unsigned int sent_at;
1: + __u64 hb_nonce;
1: };
1:
1: struct sctp_af {
1: - int (*sctp_xmit)(struct sk_buff *, struct sctp_transport *);
1: - int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: - int (*getsockopt)(struct sock *, int, int, char *, int *);
1: - void (*get_dst)(struct sctp_transport *, union sctp_addr *, struct flowi *, struct sock *);
1: - void (*get_saddr)(struct sctp_sock *, struct sctp_transport *, struct flowi *);
1: - void (*copy_addrlist)(struct list_head *, struct net_device *);
1: - int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *);
1: - void (*addr_copy)(union sctp_addr *, union sctp_addr *);
1: - void (*from_skb)(union sctp_addr *, struct sk_buff *, int);
1: - void (*from_sk)(union sctp_addr *, struct sock *);
1: - void (*from_addr_param)(union sctp_addr *, union sctp_addr_param *, __be16, int);
1: - int (*to_addr_param)(const union sctp_addr *, union sctp_addr_param *);
1: - int (*addr_valid)(union sctp_addr *, struct sctp_sock *, const struct sk_buff *);
1: - enum sctp_scope (*scope)(union sctp_addr *);
1: - void (*inaddr_any)(union sctp_addr *, __be16);
1: - int (*is_any)(const union sctp_addr *);
1: - int (*available)(union sctp_addr *, struct sctp_sock *);
1: - int (*skb_iif)(const struct sk_buff *);
1: - int (*is_ce)(const struct sk_buff *);
1: - void (*seq_dump_addr)(struct seq_file *, union sctp_addr *);
1: - void (*ecn_capable)(struct sock *);
1: - __u16 net_header_len;
1: - int sockaddr_len;
1: - int (*ip_options_len)(struct sock *);
1: - sa_family_t sa_family;
1: - struct list_head list;
1: + int (*sctp_xmit)(struct sk_buff *, struct sctp_transport *);
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*get_dst)(struct sctp_transport *, union sctp_addr *, struct flowi *,
1: + struct sock *);
1: + void (*get_saddr)(struct sctp_sock *, struct sctp_transport *,
1: + struct flowi *);
1: + void (*copy_addrlist)(struct list_head *, struct net_device *);
1: + int (*cmp_addr)(const union sctp_addr *, const union sctp_addr *);
1: + void (*addr_copy)(union sctp_addr *, union sctp_addr *);
1: + void (*from_skb)(union sctp_addr *, struct sk_buff *, int);
1: + void (*from_sk)(union sctp_addr *, struct sock *);
1: + void (*from_addr_param)(union sctp_addr *, union sctp_addr_param *, __be16,
1: + int);
1: + int (*to_addr_param)(const union sctp_addr *, union sctp_addr_param *);
1: + int (*addr_valid)(union sctp_addr *, struct sctp_sock *,
1: + const struct sk_buff *);
1: + enum sctp_scope (*scope)(union sctp_addr *);
1: + void (*inaddr_any)(union sctp_addr *, __be16);
1: + int (*is_any)(const union sctp_addr *);
1: + int (*available)(union sctp_addr *, struct sctp_sock *);
1: + int (*skb_iif)(const struct sk_buff *);
1: + int (*is_ce)(const struct sk_buff *);
1: + void (*seq_dump_addr)(struct seq_file *, union sctp_addr *);
1: + void (*ecn_capable)(struct sock *);
1: + __u16 net_header_len;
1: + int sockaddr_len;
1: + int (*ip_options_len)(struct sock *);
1: + sa_family_t sa_family;
1: + struct list_head list;
1: };
1:
1: struct sctp_packet {
1: - __u16 source_port;
1: - __u16 destination_port;
1: - __u32 vtag;
1: - struct list_head chunk_list;
1: - size_t overhead;
1: - size_t size;
1: - size_t max_size;
1: - struct sctp_transport *transport;
1: - struct sctp_chunk *auth;
1: - u8 has_cookie_echo: 1;
1: - u8 has_sack: 1;
1: - u8 has_auth: 1;
1: - u8 has_data: 1;
1: - u8 ipfragok: 1;
1: + __u16 source_port;
1: + __u16 destination_port;
1: + __u32 vtag;
1: + struct list_head chunk_list;
1: + size_t overhead;
1: + size_t size;
1: + size_t max_size;
1: + struct sctp_transport *transport;
1: + struct sctp_chunk *auth;
1: + u8 has_cookie_echo : 1;
1: + u8 has_sack : 1;
1: + u8 has_auth : 1;
1: + u8 has_data : 1;
1: + u8 ipfragok : 1;
1: };
1:
1: struct sctp_transport {
1: - struct list_head transports;
1: - struct rhlist_head node;
1: - refcount_t refcnt;
1: - __u32 rto_pending: 1;
1: - __u32 hb_sent: 1;
1: - __u32 pmtu_pending: 1;
1: - __u32 dst_pending_confirm: 1;
1: - __u32 sack_generation: 1;
1: - u32 dst_cookie;
1: - struct flowi fl;
1: - union sctp_addr ipaddr;
1: - struct sctp_af *af_specific;
1: - struct sctp_association *asoc;
1: - long unsigned int rto;
1: - __u32 rtt;
1: - __u32 rttvar;
1: - __u32 srtt;
1: - __u32 cwnd;
1: - __u32 ssthresh;
1: - __u32 partial_bytes_acked;
1: - __u32 flight_size;
1: - __u32 burst_limited;
1: - struct dst_entry *dst;
1: - union sctp_addr saddr;
1: - long unsigned int hbinterval;
1: - long unsigned int sackdelay;
1: - __u32 sackfreq;
1: - atomic_t mtu_info;
1: - ktime_t last_time_heard;
1: - long unsigned int last_time_sent;
1: - long unsigned int last_time_ecne_reduced;
1: - __u16 pathmaxrxt;
1: - __u32 flowlabel;
1: - __u8 dscp;
1: - __u16 pf_retrans;
1: - __u16 ps_retrans;
1: - __u32 pathmtu;
1: - __u32 param_flags;
1: - int init_sent_count;
1: - int state;
1: - short unsigned int error_count;
1: - struct timer_list T3_rtx_timer;
1: - struct timer_list hb_timer;
1: - struct timer_list proto_unreach_timer;
1: - struct timer_list reconf_timer;
1: - struct list_head transmitted;
1: - struct sctp_packet packet;
1: - struct list_head send_ready;
1: - struct {
1: - __u32 next_tsn_at_change;
1: - char changeover_active;
1: - char cycling_changeover;
1: - char cacc_saw_newack;
1: - } cacc;
1: - __u64 hb_nonce;
1: - struct callback_head rcu;
1: + struct list_head transports;
1: + struct rhlist_head node;
1: + refcount_t refcnt;
1: + __u32 rto_pending : 1;
1: + __u32 hb_sent : 1;
1: + __u32 pmtu_pending : 1;
1: + __u32 dst_pending_confirm : 1;
1: + __u32 sack_generation : 1;
1: + u32 dst_cookie;
1: + struct flowi fl;
1: + union sctp_addr ipaddr;
1: + struct sctp_af *af_specific;
1: + struct sctp_association *asoc;
1: + long unsigned int rto;
1: + __u32 rtt;
1: + __u32 rttvar;
1: + __u32 srtt;
1: + __u32 cwnd;
1: + __u32 ssthresh;
1: + __u32 partial_bytes_acked;
1: + __u32 flight_size;
1: + __u32 burst_limited;
1: + struct dst_entry *dst;
1: + union sctp_addr saddr;
1: + long unsigned int hbinterval;
1: + long unsigned int sackdelay;
1: + __u32 sackfreq;
1: + atomic_t mtu_info;
1: + ktime_t last_time_heard;
1: + long unsigned int last_time_sent;
1: + long unsigned int last_time_ecne_reduced;
1: + __u16 pathmaxrxt;
1: + __u32 flowlabel;
1: + __u8 dscp;
1: + __u16 pf_retrans;
1: + __u16 ps_retrans;
1: + __u32 pathmtu;
1: + __u32 param_flags;
1: + int init_sent_count;
1: + int state;
1: + short unsigned int error_count;
1: + struct timer_list T3_rtx_timer;
1: + struct timer_list hb_timer;
1: + struct timer_list proto_unreach_timer;
1: + struct timer_list reconf_timer;
1: + struct list_head transmitted;
1: + struct sctp_packet packet;
1: + struct list_head send_ready;
1: + struct {
1: + __u32 next_tsn_at_change;
1: + char changeover_active;
1: + char cycling_changeover;
1: + char cacc_saw_newack;
1: + } cacc;
1: + __u64 hb_nonce;
1: + struct callback_head rcu;
1: };
1:
1: struct sctp_datamsg {
1: - struct list_head chunks;
1: - refcount_t refcnt;
1: - long unsigned int expires_at;
1: - int send_error;
1: - u8 send_failed: 1;
1: - u8 can_delay: 1;
1: - u8 abandoned: 1;
1: + struct list_head chunks;
1: + refcount_t refcnt;
1: + long unsigned int expires_at;
1: + int send_error;
1: + u8 send_failed : 1;
1: + u8 can_delay : 1;
1: + u8 abandoned : 1;
1: };
1:
1: struct sctp_stream_priorities {
1: - struct list_head prio_sched;
1: - struct list_head active;
1: - struct sctp_stream_out_ext *next;
1: - __u16 prio;
1: + struct list_head prio_sched;
1: + struct list_head active;
1: + struct sctp_stream_out_ext *next;
1: + __u16 prio;
1: };
1:
1: struct sctp_stream_out_ext {
1: - __u64 abandoned_unsent[3];
1: - __u64 abandoned_sent[3];
1: - struct list_head outq;
1: - union {
1: - struct {
1: - struct list_head prio_list;
1: - struct sctp_stream_priorities *prio_head;
1: - };
1: - struct {
1: - struct list_head rr_list;
1: - };
1: - };
1: + __u64 abandoned_unsent[3];
1: + __u64 abandoned_sent[3];
1: + struct list_head outq;
1: + union {
1: + struct {
1: + struct list_head prio_list;
1: + struct sctp_stream_priorities *prio_head;
1: + };
1: + struct {
1: + struct list_head rr_list;
1: + };
1: + };
1: };
1:
1: struct task_security_struct {
1: - u32 osid;
1: - u32 sid;
1: - u32 exec_sid;
1: - u32 create_sid;
1: - u32 keycreate_sid;
1: - u32 sockcreate_sid;
1: + u32 osid;
1: + u32 sid;
1: + u32 exec_sid;
1: + u32 create_sid;
1: + u32 keycreate_sid;
1: + u32 sockcreate_sid;
1: };
1:
1: enum label_initialized {
1: - LABEL_INVALID = 0,
1: - LABEL_INITIALIZED = 1,
1: - LABEL_PENDING = 2,
1: + LABEL_INVALID = 0,
1: + LABEL_INITIALIZED = 1,
1: + LABEL_PENDING = 2,
1: };
1:
1: struct inode_security_struct {
1: - struct inode *inode;
1: - struct list_head list;
1: - u32 task_sid;
1: - u32 sid;
1: - u16 sclass;
1: - unsigned char initialized;
1: - spinlock_t lock;
1: + struct inode *inode;
1: + struct list_head list;
1: + u32 task_sid;
1: + u32 sid;
1: + u16 sclass;
1: + unsigned char initialized;
1: + spinlock_t lock;
1: };
1:
1: struct file_security_struct {
1: - u32 sid;
1: - u32 fown_sid;
1: - u32 isid;
1: - u32 pseqno;
1: + u32 sid;
1: + u32 fown_sid;
1: + u32 isid;
1: + u32 pseqno;
1: };
1:
1: struct superblock_security_struct {
1: - struct super_block *sb;
1: - u32 sid;
1: - u32 def_sid;
1: - u32 mntpoint_sid;
1: - short unsigned int behavior;
1: - short unsigned int flags;
1: - struct mutex lock;
1: - struct list_head isec_head;
1: - spinlock_t isec_lock;
1: + struct super_block *sb;
1: + u32 sid;
1: + u32 def_sid;
1: + u32 mntpoint_sid;
1: + short unsigned int behavior;
1: + short unsigned int flags;
1: + struct mutex lock;
1: + struct list_head isec_head;
1: + spinlock_t isec_lock;
1: };
1:
1: struct msg_security_struct {
1: - u32 sid;
1: + u32 sid;
1: };
1:
1: struct ipc_security_struct {
1: - u16 sclass;
1: - u32 sid;
1: + u16 sclass;
1: + u32 sid;
1: };
1:
1: struct sk_security_struct {
1: - enum {
1: - NLBL_UNSET = 0,
1: - NLBL_REQUIRE = 1,
1: - NLBL_LABELED = 2,
1: - NLBL_REQSKB = 3,
1: - NLBL_CONNLABELED = 4,
1: - } nlbl_state;
1: - struct netlbl_lsm_secattr *nlbl_secattr;
1: - u32 sid;
1: - u32 peer_sid;
1: - u16 sclass;
1: - enum {
1: - SCTP_ASSOC_UNSET = 0,
1: - SCTP_ASSOC_SET = 1,
1: - } sctp_assoc_state;
1: + enum {
1: + NLBL_UNSET = 0,
1: + NLBL_REQUIRE = 1,
1: + NLBL_LABELED = 2,
1: + NLBL_REQSKB = 3,
1: + NLBL_CONNLABELED = 4,
1: + } nlbl_state;
1: + struct netlbl_lsm_secattr *nlbl_secattr;
1: + u32 sid;
1: + u32 peer_sid;
1: + u16 sclass;
1: + enum {
1: + SCTP_ASSOC_UNSET = 0,
1: + SCTP_ASSOC_SET = 1,
1: + } sctp_assoc_state;
1: };
1:
1: struct tun_security_struct {
1: - u32 sid;
1: + u32 sid;
1: };
1:
1: struct key_security_struct {
1: - u32 sid;
1: + u32 sid;
1: };
1:
1: struct bpf_security_struct {
1: - u32 sid;
1: + u32 sid;
1: };
1:
1: struct perf_event_security_struct {
1: - u32 sid;
1: + u32 sid;
1: };
1:
1: struct selinux_mnt_opts {
1: - const char *fscontext;
1: - const char *context;
1: - const char *rootcontext;
1: - const char *defcontext;
1: + const char *fscontext;
1: + const char *context;
1: + const char *rootcontext;
1: + const char *defcontext;
1: };
1:
1: enum {
1: - Opt_error___2 = 4294967295,
1: - Opt_context = 0,
1: - Opt_defcontext = 1,
1: - Opt_fscontext = 2,
1: - Opt_rootcontext = 3,
1: - Opt_seclabel = 4,
1: + Opt_error___2 = 4294967295,
1: + Opt_context = 0,
1: + Opt_defcontext = 1,
1: + Opt_fscontext = 2,
1: + Opt_rootcontext = 3,
1: + Opt_seclabel = 4,
1: };
1:
1: enum sel_inos {
1: - SEL_ROOT_INO = 2,
1: - SEL_LOAD = 3,
1: - SEL_ENFORCE = 4,
1: - SEL_CONTEXT = 5,
1: - SEL_ACCESS = 6,
1: - SEL_CREATE = 7,
1: - SEL_RELABEL = 8,
1: - SEL_USER = 9,
1: - SEL_POLICYVERS = 10,
1: - SEL_COMMIT_BOOLS = 11,
1: - SEL_MLS = 12,
1: - SEL_DISABLE = 13,
1: - SEL_MEMBER = 14,
1: - SEL_CHECKREQPROT = 15,
1: - SEL_COMPAT_NET = 16,
1: - SEL_REJECT_UNKNOWN = 17,
1: - SEL_DENY_UNKNOWN = 18,
1: - SEL_STATUS = 19,
1: - SEL_POLICY = 20,
1: - SEL_VALIDATE_TRANS = 21,
1: - SEL_INO_NEXT = 22,
1: + SEL_ROOT_INO = 2,
1: + SEL_LOAD = 3,
1: + SEL_ENFORCE = 4,
1: + SEL_CONTEXT = 5,
1: + SEL_ACCESS = 6,
1: + SEL_CREATE = 7,
1: + SEL_RELABEL = 8,
1: + SEL_USER = 9,
1: + SEL_POLICYVERS = 10,
1: + SEL_COMMIT_BOOLS = 11,
1: + SEL_MLS = 12,
1: + SEL_DISABLE = 13,
1: + SEL_MEMBER = 14,
1: + SEL_CHECKREQPROT = 15,
1: + SEL_COMPAT_NET = 16,
1: + SEL_REJECT_UNKNOWN = 17,
1: + SEL_DENY_UNKNOWN = 18,
1: + SEL_STATUS = 19,
1: + SEL_POLICY = 20,
1: + SEL_VALIDATE_TRANS = 21,
1: + SEL_INO_NEXT = 22,
1: };
1:
1: struct selinux_fs_info {
1: - struct dentry *bool_dir;
1: - unsigned int bool_num;
1: - char **bool_pending_names;
1: - unsigned int *bool_pending_values;
1: - struct dentry *class_dir;
1: - long unsigned int last_class_ino;
1: - bool policy_opened;
1: - struct dentry *policycap_dir;
1: - long unsigned int last_ino;
1: - struct selinux_state *state;
1: - struct super_block *sb;
1: + struct dentry *bool_dir;
1: + unsigned int bool_num;
1: + char **bool_pending_names;
1: + unsigned int *bool_pending_values;
1: + struct dentry *class_dir;
1: + long unsigned int last_class_ino;
1: + bool policy_opened;
1: + struct dentry *policycap_dir;
1: + long unsigned int last_ino;
1: + struct selinux_state *state;
1: + struct super_block *sb;
1: };
1:
1: struct policy_load_memory {
1: - size_t len;
1: - void *data;
1: + size_t len;
1: + void *data;
1: };
1:
1: enum {
1: - SELNL_MSG_SETENFORCE = 16,
1: - SELNL_MSG_POLICYLOAD = 17,
1: - SELNL_MSG_MAX = 18,
1: + SELNL_MSG_SETENFORCE = 16,
1: + SELNL_MSG_POLICYLOAD = 17,
1: + SELNL_MSG_MAX = 18,
1: };
1:
1: enum selinux_nlgroups {
1: - SELNLGRP_NONE = 0,
1: - SELNLGRP_AVC = 1,
1: - __SELNLGRP_MAX = 2,
1: + SELNLGRP_NONE = 0,
1: + SELNLGRP_AVC = 1,
1: + __SELNLGRP_MAX = 2,
1: };
1:
1: struct selnl_msg_setenforce {
1: - __s32 val;
1: + __s32 val;
1: };
1:
1: struct selnl_msg_policyload {
1: - __u32 seqno;
1: -};
1: -
1: -enum {
1: - XFRM_MSG_BASE = 16,
1: - XFRM_MSG_NEWSA = 16,
1: - XFRM_MSG_DELSA = 17,
1: - XFRM_MSG_GETSA = 18,
1: - XFRM_MSG_NEWPOLICY = 19,
1: - XFRM_MSG_DELPOLICY = 20,
1: - XFRM_MSG_GETPOLICY = 21,
1: - XFRM_MSG_ALLOCSPI = 22,
1: - XFRM_MSG_ACQUIRE = 23,
1: - XFRM_MSG_EXPIRE = 24,
1: - XFRM_MSG_UPDPOLICY = 25,
1: - XFRM_MSG_UPDSA = 26,
1: - XFRM_MSG_POLEXPIRE = 27,
1: - XFRM_MSG_FLUSHSA = 28,
1: - XFRM_MSG_FLUSHPOLICY = 29,
1: - XFRM_MSG_NEWAE = 30,
1: - XFRM_MSG_GETAE = 31,
1: - XFRM_MSG_REPORT = 32,
1: - XFRM_MSG_MIGRATE = 33,
1: - XFRM_MSG_NEWSADINFO = 34,
1: - XFRM_MSG_GETSADINFO = 35,
1: - XFRM_MSG_NEWSPDINFO = 36,
1: - XFRM_MSG_GETSPDINFO = 37,
1: - XFRM_MSG_MAPPING = 38,
1: - __XFRM_MSG_MAX = 39,
1: -};
1: -
1: -enum {
1: - RTM_BASE = 16,
1: - RTM_NEWLINK = 16,
1: - RTM_DELLINK = 17,
1: - RTM_GETLINK = 18,
1: - RTM_SETLINK = 19,
1: - RTM_NEWADDR = 20,
1: - RTM_DELADDR = 21,
1: - RTM_GETADDR = 22,
1: - RTM_NEWROUTE = 24,
1: - RTM_DELROUTE = 25,
1: - RTM_GETROUTE = 26,
1: - RTM_NEWNEIGH = 28,
1: - RTM_DELNEIGH = 29,
1: - RTM_GETNEIGH = 30,
1: - RTM_NEWRULE = 32,
1: - RTM_DELRULE = 33,
1: - RTM_GETRULE = 34,
1: - RTM_NEWQDISC = 36,
1: - RTM_DELQDISC = 37,
1: - RTM_GETQDISC = 38,
1: - RTM_NEWTCLASS = 40,
1: - RTM_DELTCLASS = 41,
1: - RTM_GETTCLASS = 42,
1: - RTM_NEWTFILTER = 44,
1: - RTM_DELTFILTER = 45,
1: - RTM_GETTFILTER = 46,
1: - RTM_NEWACTION = 48,
1: - RTM_DELACTION = 49,
1: - RTM_GETACTION = 50,
1: - RTM_NEWPREFIX = 52,
1: - RTM_GETMULTICAST = 58,
1: - RTM_GETANYCAST = 62,
1: - RTM_NEWNEIGHTBL = 64,
1: - RTM_GETNEIGHTBL = 66,
1: - RTM_SETNEIGHTBL = 67,
1: - RTM_NEWNDUSEROPT = 68,
1: - RTM_NEWADDRLABEL = 72,
1: - RTM_DELADDRLABEL = 73,
1: - RTM_GETADDRLABEL = 74,
1: - RTM_GETDCB = 78,
1: - RTM_SETDCB = 79,
1: - RTM_NEWNETCONF = 80,
1: - RTM_DELNETCONF = 81,
1: - RTM_GETNETCONF = 82,
1: - RTM_NEWMDB = 84,
1: - RTM_DELMDB = 85,
1: - RTM_GETMDB = 86,
1: - RTM_NEWNSID = 88,
1: - RTM_DELNSID = 89,
1: - RTM_GETNSID = 90,
1: - RTM_NEWSTATS = 92,
1: - RTM_GETSTATS = 94,
1: - RTM_NEWCACHEREPORT = 96,
1: - RTM_NEWCHAIN = 100,
1: - RTM_DELCHAIN = 101,
1: - RTM_GETCHAIN = 102,
1: - RTM_NEWNEXTHOP = 104,
1: - RTM_DELNEXTHOP = 105,
1: - RTM_GETNEXTHOP = 106,
1: - RTM_NEWLINKPROP = 108,
1: - RTM_DELLINKPROP = 109,
1: - RTM_GETLINKPROP = 110,
1: - RTM_NEWVLAN = 112,
1: - RTM_DELVLAN = 113,
1: - RTM_GETVLAN = 114,
1: - __RTM_MAX = 115,
1: + __u32 seqno;
1: +};
1: +
1: +enum {
1: + XFRM_MSG_BASE = 16,
1: + XFRM_MSG_NEWSA = 16,
1: + XFRM_MSG_DELSA = 17,
1: + XFRM_MSG_GETSA = 18,
1: + XFRM_MSG_NEWPOLICY = 19,
1: + XFRM_MSG_DELPOLICY = 20,
1: + XFRM_MSG_GETPOLICY = 21,
1: + XFRM_MSG_ALLOCSPI = 22,
1: + XFRM_MSG_ACQUIRE = 23,
1: + XFRM_MSG_EXPIRE = 24,
1: + XFRM_MSG_UPDPOLICY = 25,
1: + XFRM_MSG_UPDSA = 26,
1: + XFRM_MSG_POLEXPIRE = 27,
1: + XFRM_MSG_FLUSHSA = 28,
1: + XFRM_MSG_FLUSHPOLICY = 29,
1: + XFRM_MSG_NEWAE = 30,
1: + XFRM_MSG_GETAE = 31,
1: + XFRM_MSG_REPORT = 32,
1: + XFRM_MSG_MIGRATE = 33,
1: + XFRM_MSG_NEWSADINFO = 34,
1: + XFRM_MSG_GETSADINFO = 35,
1: + XFRM_MSG_NEWSPDINFO = 36,
1: + XFRM_MSG_GETSPDINFO = 37,
1: + XFRM_MSG_MAPPING = 38,
1: + __XFRM_MSG_MAX = 39,
1: +};
1: +
1: +enum {
1: + RTM_BASE = 16,
1: + RTM_NEWLINK = 16,
1: + RTM_DELLINK = 17,
1: + RTM_GETLINK = 18,
1: + RTM_SETLINK = 19,
1: + RTM_NEWADDR = 20,
1: + RTM_DELADDR = 21,
1: + RTM_GETADDR = 22,
1: + RTM_NEWROUTE = 24,
1: + RTM_DELROUTE = 25,
1: + RTM_GETROUTE = 26,
1: + RTM_NEWNEIGH = 28,
1: + RTM_DELNEIGH = 29,
1: + RTM_GETNEIGH = 30,
1: + RTM_NEWRULE = 32,
1: + RTM_DELRULE = 33,
1: + RTM_GETRULE = 34,
1: + RTM_NEWQDISC = 36,
1: + RTM_DELQDISC = 37,
1: + RTM_GETQDISC = 38,
1: + RTM_NEWTCLASS = 40,
1: + RTM_DELTCLASS = 41,
1: + RTM_GETTCLASS = 42,
1: + RTM_NEWTFILTER = 44,
1: + RTM_DELTFILTER = 45,
1: + RTM_GETTFILTER = 46,
1: + RTM_NEWACTION = 48,
1: + RTM_DELACTION = 49,
1: + RTM_GETACTION = 50,
1: + RTM_NEWPREFIX = 52,
1: + RTM_GETMULTICAST = 58,
1: + RTM_GETANYCAST = 62,
1: + RTM_NEWNEIGHTBL = 64,
1: + RTM_GETNEIGHTBL = 66,
1: + RTM_SETNEIGHTBL = 67,
1: + RTM_NEWNDUSEROPT = 68,
1: + RTM_NEWADDRLABEL = 72,
1: + RTM_DELADDRLABEL = 73,
1: + RTM_GETADDRLABEL = 74,
1: + RTM_GETDCB = 78,
1: + RTM_SETDCB = 79,
1: + RTM_NEWNETCONF = 80,
1: + RTM_DELNETCONF = 81,
1: + RTM_GETNETCONF = 82,
1: + RTM_NEWMDB = 84,
1: + RTM_DELMDB = 85,
1: + RTM_GETMDB = 86,
1: + RTM_NEWNSID = 88,
1: + RTM_DELNSID = 89,
1: + RTM_GETNSID = 90,
1: + RTM_NEWSTATS = 92,
1: + RTM_GETSTATS = 94,
1: + RTM_NEWCACHEREPORT = 96,
1: + RTM_NEWCHAIN = 100,
1: + RTM_DELCHAIN = 101,
1: + RTM_GETCHAIN = 102,
1: + RTM_NEWNEXTHOP = 104,
1: + RTM_DELNEXTHOP = 105,
1: + RTM_GETNEXTHOP = 106,
1: + RTM_NEWLINKPROP = 108,
1: + RTM_DELLINKPROP = 109,
1: + RTM_GETLINKPROP = 110,
1: + RTM_NEWVLAN = 112,
1: + RTM_DELVLAN = 113,
1: + RTM_GETVLAN = 114,
1: + __RTM_MAX = 115,
1: };
1:
1: struct nlmsg_perm {
1: - u16 nlmsg_type;
1: - u32 perm;
1: + u16 nlmsg_type;
1: + u32 perm;
1: };
1:
1: struct netif_security_struct {
1: - struct net *ns;
1: - int ifindex;
1: - u32 sid;
1: + struct net *ns;
1: + int ifindex;
1: + u32 sid;
1: };
1:
1: struct sel_netif {
1: - struct list_head list;
1: - struct netif_security_struct nsec;
1: - struct callback_head callback_head;
1: + struct list_head list;
1: + struct netif_security_struct nsec;
1: + struct callback_head callback_head;
1: };
1:
1: struct netnode_security_struct {
1: - union {
1: - __be32 ipv4;
1: - struct in6_addr ipv6;
1: - } addr;
1: - u32 sid;
1: - u16 family;
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } addr;
1: + u32 sid;
1: + u16 family;
1: };
1:
1: struct sel_netnode_bkt {
1: - unsigned int size;
1: - struct list_head list;
1: + unsigned int size;
1: + struct list_head list;
1: };
1:
1: struct sel_netnode {
1: - struct netnode_security_struct nsec;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + struct netnode_security_struct nsec;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct netport_security_struct {
1: - u32 sid;
1: - u16 port;
1: - u8 protocol;
1: + u32 sid;
1: + u16 port;
1: + u8 protocol;
1: };
1:
1: struct sel_netport_bkt {
1: - int size;
1: - struct list_head list;
1: + int size;
1: + struct list_head list;
1: };
1:
1: struct sel_netport {
1: - struct netport_security_struct psec;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + struct netport_security_struct psec;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct selinux_kernel_status {
1: - u32 version;
1: - u32 sequence;
1: - u32 enforcing;
1: - u32 policyload;
1: - u32 deny_unknown;
1: + u32 version;
1: + u32 sequence;
1: + u32 enforcing;
1: + u32 policyload;
1: + u32 deny_unknown;
1: };
1:
1: struct ebitmap_node {
1: - struct ebitmap_node *next;
1: - long unsigned int maps[6];
1: - u32 startbit;
1: + struct ebitmap_node *next;
1: + long unsigned int maps[6];
1: + u32 startbit;
1: };
1:
1: struct ebitmap {
1: - struct ebitmap_node *node;
1: - u32 highbit;
1: + struct ebitmap_node *node;
1: + u32 highbit;
1: };
1:
1: struct policy_file {
1: - char *data;
1: - size_t len;
1: + char *data;
1: + size_t len;
1: };
1:
1: struct hashtab_node {
1: - void *key;
1: - void *datum;
1: - struct hashtab_node *next;
1: + void *key;
1: + void *datum;
1: + struct hashtab_node *next;
1: };
1:
1: struct hashtab {
1: - struct hashtab_node **htable;
1: - u32 size;
1: - u32 nel;
1: + struct hashtab_node **htable;
1: + u32 size;
1: + u32 nel;
1: };
1:
1: struct hashtab_info {
1: - u32 slots_used;
1: - u32 max_chain_len;
1: + u32 slots_used;
1: + u32 max_chain_len;
1: };
1:
1: struct hashtab_key_params {
1: - u32 (*hash)(const void *);
1: - int (*cmp)(const void *, const void *);
1: + u32 (*hash)(const void *);
1: + int (*cmp)(const void *, const void *);
1: };
1:
1: struct symtab {
1: - struct hashtab table;
1: - u32 nprim;
1: + struct hashtab table;
1: + u32 nprim;
1: };
1:
1: struct mls_level {
1: - u32 sens;
1: - struct ebitmap cat;
1: + u32 sens;
1: + struct ebitmap cat;
1: };
1:
1: struct mls_range {
1: - struct mls_level level[2];
1: + struct mls_level level[2];
1: };
1:
1: struct context {
1: - u32 user;
1: - u32 role;
1: - u32 type;
1: - u32 len;
1: - struct mls_range range;
1: - char *str;
1: + u32 user;
1: + u32 role;
1: + u32 type;
1: + u32 len;
1: + struct mls_range range;
1: + char *str;
1: };
1:
1: struct sidtab_str_cache;
1:
1: struct sidtab_entry {
1: - u32 sid;
1: - u32 hash;
1: - struct context context;
1: - struct sidtab_str_cache *cache;
1: - struct hlist_node list;
1: + u32 sid;
1: + u32 hash;
1: + struct context context;
1: + struct sidtab_str_cache *cache;
1: + struct hlist_node list;
1: };
1:
1: struct sidtab_str_cache {
1: - struct callback_head rcu_member;
1: - struct list_head lru_member;
1: - struct sidtab_entry *parent;
1: - u32 len;
1: - char str[0];
1: + struct callback_head rcu_member;
1: + struct list_head lru_member;
1: + struct sidtab_entry *parent;
1: + u32 len;
1: + char str[0];
1: };
1:
1: struct sidtab_node_inner;
1: @@ -49099,342 +49897,342 @@ struct sidtab_node_inner;
1: struct sidtab_node_leaf;
1:
1: union sidtab_entry_inner {
1: - struct sidtab_node_inner *ptr_inner;
1: - struct sidtab_node_leaf *ptr_leaf;
1: + struct sidtab_node_inner *ptr_inner;
1: + struct sidtab_node_leaf *ptr_leaf;
1: };
1:
1: struct sidtab_node_inner {
1: - union sidtab_entry_inner entries[512];
1: + union sidtab_entry_inner entries[512];
1: };
1:
1: struct sidtab_node_leaf {
1: - struct sidtab_entry entries[39];
1: + struct sidtab_entry entries[39];
1: };
1:
1: struct sidtab_isid_entry {
1: - int set;
1: - struct sidtab_entry entry;
1: + int set;
1: + struct sidtab_entry entry;
1: };
1:
1: struct sidtab;
1:
1: struct sidtab_convert_params {
1: - int (*func)(struct context *, struct context *, void *);
1: - void *args;
1: - struct sidtab *target;
1: + int (*func)(struct context *, struct context *, void *);
1: + void *args;
1: + struct sidtab *target;
1: };
1:
1: struct sidtab {
1: - union sidtab_entry_inner roots[4];
1: - u32 count;
1: - struct sidtab_convert_params *convert;
1: - spinlock_t lock;
1: - u32 cache_free_slots;
1: - struct list_head cache_lru_list;
1: - spinlock_t cache_lock;
1: - struct sidtab_isid_entry isids[27];
1: - struct hlist_head context_to_sid[512];
1: + union sidtab_entry_inner roots[4];
1: + u32 count;
1: + struct sidtab_convert_params *convert;
1: + spinlock_t lock;
1: + u32 cache_free_slots;
1: + struct list_head cache_lru_list;
1: + spinlock_t cache_lock;
1: + struct sidtab_isid_entry isids[27];
1: + struct hlist_head context_to_sid[512];
1: };
1:
1: struct avtab_key {
1: - u16 source_type;
1: - u16 target_type;
1: - u16 target_class;
1: - u16 specified;
1: + u16 source_type;
1: + u16 target_type;
1: + u16 target_class;
1: + u16 specified;
1: };
1:
1: struct avtab_extended_perms {
1: - u8 specified;
1: - u8 driver;
1: - struct extended_perms_data perms;
1: + u8 specified;
1: + u8 driver;
1: + struct extended_perms_data perms;
1: };
1:
1: struct avtab_datum {
1: - union {
1: - u32 data;
1: - struct avtab_extended_perms *xperms;
1: - } u;
1: + union {
1: + u32 data;
1: + struct avtab_extended_perms *xperms;
1: + } u;
1: };
1:
1: struct avtab_node {
1: - struct avtab_key key;
1: - struct avtab_datum datum;
1: - struct avtab_node *next;
1: + struct avtab_key key;
1: + struct avtab_datum datum;
1: + struct avtab_node *next;
1: };
1:
1: struct avtab {
1: - struct avtab_node **htable;
1: - u32 nel;
1: - u32 nslot;
1: - u32 mask;
1: + struct avtab_node **htable;
1: + u32 nel;
1: + u32 nslot;
1: + u32 mask;
1: };
1:
1: struct type_set;
1:
1: struct constraint_expr {
1: - u32 expr_type;
1: - u32 attr;
1: - u32 op;
1: - struct ebitmap names;
1: - struct type_set *type_names;
1: - struct constraint_expr *next;
1: + u32 expr_type;
1: + u32 attr;
1: + u32 op;
1: + struct ebitmap names;
1: + struct type_set *type_names;
1: + struct constraint_expr *next;
1: };
1:
1: struct type_set {
1: - struct ebitmap types;
1: - struct ebitmap negset;
1: - u32 flags;
1: + struct ebitmap types;
1: + struct ebitmap negset;
1: + u32 flags;
1: };
1:
1: struct constraint_node {
1: - u32 permissions;
1: - struct constraint_expr *expr;
1: - struct constraint_node *next;
1: + u32 permissions;
1: + struct constraint_expr *expr;
1: + struct constraint_node *next;
1: };
1:
1: struct common_datum {
1: - u32 value;
1: - struct symtab permissions;
1: + u32 value;
1: + struct symtab permissions;
1: };
1:
1: struct class_datum {
1: - u32 value;
1: - char *comkey;
1: - struct common_datum *comdatum;
1: - struct symtab permissions;
1: - struct constraint_node *constraints;
1: - struct constraint_node *validatetrans;
1: - char default_user;
1: - char default_role;
1: - char default_type;
1: - char default_range;
1: + u32 value;
1: + char *comkey;
1: + struct common_datum *comdatum;
1: + struct symtab permissions;
1: + struct constraint_node *constraints;
1: + struct constraint_node *validatetrans;
1: + char default_user;
1: + char default_role;
1: + char default_type;
1: + char default_range;
1: };
1:
1: struct role_datum {
1: - u32 value;
1: - u32 bounds;
1: - struct ebitmap dominates;
1: - struct ebitmap types;
1: + u32 value;
1: + u32 bounds;
1: + struct ebitmap dominates;
1: + struct ebitmap types;
1: };
1:
1: struct role_allow {
1: - u32 role;
1: - u32 new_role;
1: - struct role_allow *next;
1: + u32 role;
1: + u32 new_role;
1: + struct role_allow *next;
1: };
1:
1: struct type_datum {
1: - u32 value;
1: - u32 bounds;
1: - unsigned char primary;
1: - unsigned char attribute;
1: + u32 value;
1: + u32 bounds;
1: + unsigned char primary;
1: + unsigned char attribute;
1: };
1:
1: struct user_datum {
1: - u32 value;
1: - u32 bounds;
1: - struct ebitmap roles;
1: - struct mls_range range;
1: - struct mls_level dfltlevel;
1: + u32 value;
1: + u32 bounds;
1: + struct ebitmap roles;
1: + struct mls_range range;
1: + struct mls_level dfltlevel;
1: };
1:
1: struct cond_bool_datum {
1: - __u32 value;
1: - int state;
1: + __u32 value;
1: + int state;
1: };
1:
1: struct ocontext {
1: - union {
1: - char *name;
1: - struct {
1: - u8 protocol;
1: - u16 low_port;
1: - u16 high_port;
1: - } port;
1: - struct {
1: - u32 addr;
1: - u32 mask;
1: - } node;
1: - struct {
1: - u32 addr[4];
1: - u32 mask[4];
1: - } node6;
1: - struct {
1: - u64 subnet_prefix;
1: - u16 low_pkey;
1: - u16 high_pkey;
1: - } ibpkey;
1: - struct {
1: - char *dev_name;
1: - u8 port;
1: - } ibendport;
1: - } u;
1: - union {
1: - u32 sclass;
1: - u32 behavior;
1: - } v;
1: - struct context context[2];
1: - u32 sid[2];
1: - struct ocontext *next;
1: + union {
1: + char *name;
1: + struct {
1: + u8 protocol;
1: + u16 low_port;
1: + u16 high_port;
1: + } port;
1: + struct {
1: + u32 addr;
1: + u32 mask;
1: + } node;
1: + struct {
1: + u32 addr[4];
1: + u32 mask[4];
1: + } node6;
1: + struct {
1: + u64 subnet_prefix;
1: + u16 low_pkey;
1: + u16 high_pkey;
1: + } ibpkey;
1: + struct {
1: + char *dev_name;
1: + u8 port;
1: + } ibendport;
1: + } u;
1: + union {
1: + u32 sclass;
1: + u32 behavior;
1: + } v;
1: + struct context context[2];
1: + u32 sid[2];
1: + struct ocontext *next;
1: };
1:
1: struct genfs {
1: - char *fstype;
1: - struct ocontext *head;
1: - struct genfs *next;
1: + char *fstype;
1: + struct ocontext *head;
1: + struct genfs *next;
1: };
1:
1: struct cond_node;
1:
1: struct policydb {
1: - int mls_enabled;
1: - struct symtab symtab[8];
1: - char **sym_val_to_name[8];
1: - struct class_datum **class_val_to_struct;
1: - struct role_datum **role_val_to_struct;
1: - struct user_datum **user_val_to_struct;
1: - struct type_datum **type_val_to_struct;
1: - struct avtab te_avtab;
1: - struct hashtab role_tr;
1: - struct ebitmap filename_trans_ttypes;
1: - struct hashtab filename_trans;
1: - u32 compat_filename_trans_count;
1: - struct cond_bool_datum **bool_val_to_struct;
1: - struct avtab te_cond_avtab;
1: - struct cond_node *cond_list;
1: - u32 cond_list_len;
1: - struct role_allow *role_allow;
1: - struct ocontext *ocontexts[9];
1: - struct genfs *genfs;
1: - struct hashtab range_tr;
1: - struct ebitmap *type_attr_map_array;
1: - struct ebitmap policycaps;
1: - struct ebitmap permissive_map;
1: - size_t len;
1: - unsigned int policyvers;
1: - unsigned int reject_unknown: 1;
1: - unsigned int allow_unknown: 1;
1: - u16 process_class;
1: - u32 process_trans_perms;
1: + int mls_enabled;
1: + struct symtab symtab[8];
1: + char **sym_val_to_name[8];
1: + struct class_datum **class_val_to_struct;
1: + struct role_datum **role_val_to_struct;
1: + struct user_datum **user_val_to_struct;
1: + struct type_datum **type_val_to_struct;
1: + struct avtab te_avtab;
1: + struct hashtab role_tr;
1: + struct ebitmap filename_trans_ttypes;
1: + struct hashtab filename_trans;
1: + u32 compat_filename_trans_count;
1: + struct cond_bool_datum **bool_val_to_struct;
1: + struct avtab te_cond_avtab;
1: + struct cond_node *cond_list;
1: + u32 cond_list_len;
1: + struct role_allow *role_allow;
1: + struct ocontext *ocontexts[9];
1: + struct genfs *genfs;
1: + struct hashtab range_tr;
1: + struct ebitmap *type_attr_map_array;
1: + struct ebitmap policycaps;
1: + struct ebitmap permissive_map;
1: + size_t len;
1: + unsigned int policyvers;
1: + unsigned int reject_unknown : 1;
1: + unsigned int allow_unknown : 1;
1: + u16 process_class;
1: + u32 process_trans_perms;
1: };
1:
1: struct perm_datum {
1: - u32 value;
1: + u32 value;
1: };
1:
1: struct role_trans_key {
1: - u32 role;
1: - u32 type;
1: - u32 tclass;
1: + u32 role;
1: + u32 type;
1: + u32 tclass;
1: };
1:
1: struct role_trans_datum {
1: - u32 new_role;
1: + u32 new_role;
1: };
1:
1: struct filename_trans_key {
1: - u32 ttype;
1: - u16 tclass;
1: - const char *name;
1: + u32 ttype;
1: + u16 tclass;
1: + const char *name;
1: };
1:
1: struct filename_trans_datum {
1: - struct ebitmap stypes;
1: - u32 otype;
1: - struct filename_trans_datum *next;
1: + struct ebitmap stypes;
1: + u32 otype;
1: + struct filename_trans_datum *next;
1: };
1:
1: struct level_datum {
1: - struct mls_level *level;
1: - unsigned char isalias;
1: + struct mls_level *level;
1: + unsigned char isalias;
1: };
1:
1: struct cat_datum {
1: - u32 value;
1: - unsigned char isalias;
1: + u32 value;
1: + unsigned char isalias;
1: };
1:
1: struct range_trans {
1: - u32 source_type;
1: - u32 target_type;
1: - u32 target_class;
1: + u32 source_type;
1: + u32 target_type;
1: + u32 target_class;
1: };
1:
1: struct cond_expr_node;
1:
1: struct cond_expr {
1: - struct cond_expr_node *nodes;
1: - u32 len;
1: + struct cond_expr_node *nodes;
1: + u32 len;
1: };
1:
1: struct cond_av_list {
1: - struct avtab_node **nodes;
1: - u32 len;
1: + struct avtab_node **nodes;
1: + u32 len;
1: };
1:
1: struct cond_node {
1: - int cur_state;
1: - struct cond_expr expr;
1: - struct cond_av_list true_list;
1: - struct cond_av_list false_list;
1: + int cur_state;
1: + struct cond_expr expr;
1: + struct cond_av_list true_list;
1: + struct cond_av_list false_list;
1: };
1:
1: struct policy_data {
1: - struct policydb *p;
1: - void *fp;
1: + struct policydb *p;
1: + void *fp;
1: };
1:
1: struct cond_expr_node {
1: - u32 expr_type;
1: - u32 bool;
1: + u32 expr_type;
1: + u32 bool;
1: };
1:
1: struct policydb_compat_info {
1: - int version;
1: - int sym_num;
1: - int ocon_num;
1: + int version;
1: + int sym_num;
1: + int ocon_num;
1: };
1:
1: struct selinux_mapping;
1:
1: struct selinux_map {
1: - struct selinux_mapping *mapping;
1: - u16 size;
1: + struct selinux_mapping *mapping;
1: + u16 size;
1: };
1:
1: struct selinux_policy {
1: - struct sidtab *sidtab;
1: - struct policydb policydb;
1: - struct selinux_map map;
1: - u32 latest_granting;
1: + struct sidtab *sidtab;
1: + struct policydb policydb;
1: + struct selinux_map map;
1: + u32 latest_granting;
1: };
1:
1: struct selinux_mapping {
1: - u16 value;
1: - unsigned int num_perms;
1: - u32 perms[32];
1: + u16 value;
1: + unsigned int num_perms;
1: + u32 perms[32];
1: };
1:
1: struct convert_context_args {
1: - struct selinux_state *state;
1: - struct policydb *oldp;
1: - struct policydb *newp;
1: + struct selinux_state *state;
1: + struct policydb *oldp;
1: + struct policydb *newp;
1: };
1:
1: struct selinux_audit_rule {
1: - u32 au_seqno;
1: - struct context au_ctxt;
1: + u32 au_seqno;
1: + struct context au_ctxt;
1: };
1:
1: struct cond_insertf_data {
1: - struct policydb *p;
1: - struct avtab_node **dst;
1: - struct cond_av_list *other;
1: + struct policydb *p;
1: + struct avtab_node **dst;
1: + struct cond_av_list *other;
1: };
1:
1: struct rt6key {
1: - struct in6_addr addr;
1: - int plen;
1: + struct in6_addr addr;
1: + int plen;
1: };
1:
1: struct rtable;
1: @@ -49442,31 +50240,31 @@ struct rtable;
1: struct fnhe_hash_bucket;
1:
1: struct fib_nh_common {
1: - struct net_device *nhc_dev;
1: - int nhc_oif;
1: - unsigned char nhc_scope;
1: - u8 nhc_family;
1: - u8 nhc_gw_family;
1: - unsigned char nhc_flags;
1: - struct lwtunnel_state *nhc_lwtstate;
1: - union {
1: - __be32 ipv4;
1: - struct in6_addr ipv6;
1: - } nhc_gw;
1: - int nhc_weight;
1: - atomic_t nhc_upper_bound;
1: - struct rtable **nhc_pcpu_rth_output;
1: - struct rtable *nhc_rth_input;
1: - struct fnhe_hash_bucket *nhc_exceptions;
1: + struct net_device *nhc_dev;
1: + int nhc_oif;
1: + unsigned char nhc_scope;
1: + u8 nhc_family;
1: + u8 nhc_gw_family;
1: + unsigned char nhc_flags;
1: + struct lwtunnel_state *nhc_lwtstate;
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } nhc_gw;
1: + int nhc_weight;
1: + atomic_t nhc_upper_bound;
1: + struct rtable **nhc_pcpu_rth_output;
1: + struct rtable *nhc_rth_input;
1: + struct fnhe_hash_bucket *nhc_exceptions;
1: };
1:
1: struct rt6_exception_bucket;
1:
1: struct fib6_nh {
1: - struct fib_nh_common nh_common;
1: - long unsigned int last_probe;
1: - struct rt6_info **rt6i_pcpu;
1: - struct rt6_exception_bucket *rt6i_exception_bucket;
1: + struct fib_nh_common nh_common;
1: + long unsigned int last_probe;
1: + struct rt6_info **rt6i_pcpu;
1: + struct rt6_exception_bucket *rt6i_exception_bucket;
1: };
1:
1: struct fib6_node;
1: @@ -49476,256 +50274,256 @@ struct dst_metrics;
1: struct nexthop;
1:
1: struct fib6_info {
1: - struct fib6_table *fib6_table;
1: - struct fib6_info *fib6_next;
1: - struct fib6_node *fib6_node;
1: - union {
1: - struct list_head fib6_siblings;
1: - struct list_head nh_list;
1: - };
1: - unsigned int fib6_nsiblings;
1: - refcount_t fib6_ref;
1: - long unsigned int expires;
1: - struct dst_metrics *fib6_metrics;
1: - struct rt6key fib6_dst;
1: - u32 fib6_flags;
1: - struct rt6key fib6_src;
1: - struct rt6key fib6_prefsrc;
1: - u32 fib6_metric;
1: - u8 fib6_protocol;
1: - u8 fib6_type;
1: - u8 should_flush: 1;
1: - u8 dst_nocount: 1;
1: - u8 dst_nopolicy: 1;
1: - u8 fib6_destroying: 1;
1: - u8 offload: 1;
1: - u8 trap: 1;
1: - u8 unused: 2;
1: - struct callback_head rcu;
1: - struct nexthop *nh;
1: - struct fib6_nh fib6_nh[0];
1: + struct fib6_table *fib6_table;
1: + struct fib6_info *fib6_next;
1: + struct fib6_node *fib6_node;
1: + union {
1: + struct list_head fib6_siblings;
1: + struct list_head nh_list;
1: + };
1: + unsigned int fib6_nsiblings;
1: + refcount_t fib6_ref;
1: + long unsigned int expires;
1: + struct dst_metrics *fib6_metrics;
1: + struct rt6key fib6_dst;
1: + u32 fib6_flags;
1: + struct rt6key fib6_src;
1: + struct rt6key fib6_prefsrc;
1: + u32 fib6_metric;
1: + u8 fib6_protocol;
1: + u8 fib6_type;
1: + u8 should_flush : 1;
1: + u8 dst_nocount : 1;
1: + u8 dst_nopolicy : 1;
1: + u8 fib6_destroying : 1;
1: + u8 offload : 1;
1: + u8 trap : 1;
1: + u8 unused : 2;
1: + struct callback_head rcu;
1: + struct nexthop *nh;
1: + struct fib6_nh fib6_nh[0];
1: };
1:
1: struct uncached_list;
1:
1: struct rt6_info {
1: - struct dst_entry dst;
1: - struct fib6_info *from;
1: - int sernum;
1: - struct rt6key rt6i_dst;
1: - struct rt6key rt6i_src;
1: - struct in6_addr rt6i_gateway;
1: - struct inet6_dev *rt6i_idev;
1: - u32 rt6i_flags;
1: - struct list_head rt6i_uncached;
1: - struct uncached_list *rt6i_uncached_list;
1: - short unsigned int rt6i_nfheader_len;
1: + struct dst_entry dst;
1: + struct fib6_info *from;
1: + int sernum;
1: + struct rt6key rt6i_dst;
1: + struct rt6key rt6i_src;
1: + struct in6_addr rt6i_gateway;
1: + struct inet6_dev *rt6i_idev;
1: + u32 rt6i_flags;
1: + struct list_head rt6i_uncached;
1: + struct uncached_list *rt6i_uncached_list;
1: + short unsigned int rt6i_nfheader_len;
1: };
1:
1: struct rt6_statistics {
1: - __u32 fib_nodes;
1: - __u32 fib_route_nodes;
1: - __u32 fib_rt_entries;
1: - __u32 fib_rt_cache;
1: - __u32 fib_discarded_routes;
1: - atomic_t fib_rt_alloc;
1: - atomic_t fib_rt_uncache;
1: + __u32 fib_nodes;
1: + __u32 fib_route_nodes;
1: + __u32 fib_rt_entries;
1: + __u32 fib_rt_cache;
1: + __u32 fib_discarded_routes;
1: + atomic_t fib_rt_alloc;
1: + atomic_t fib_rt_uncache;
1: };
1:
1: struct fib6_node {
1: - struct fib6_node *parent;
1: - struct fib6_node *left;
1: - struct fib6_node *right;
1: - struct fib6_node *subtree;
1: - struct fib6_info *leaf;
1: - __u16 fn_bit;
1: - __u16 fn_flags;
1: - int fn_sernum;
1: - struct fib6_info *rr_ptr;
1: - struct callback_head rcu;
1: + struct fib6_node *parent;
1: + struct fib6_node *left;
1: + struct fib6_node *right;
1: + struct fib6_node *subtree;
1: + struct fib6_info *leaf;
1: + __u16 fn_bit;
1: + __u16 fn_flags;
1: + int fn_sernum;
1: + struct fib6_info *rr_ptr;
1: + struct callback_head rcu;
1: };
1:
1: struct fib6_table {
1: - struct hlist_node tb6_hlist;
1: - u32 tb6_id;
1: - spinlock_t tb6_lock;
1: - struct fib6_node tb6_root;
1: - struct inet_peer_base tb6_peers;
1: - unsigned int flags;
1: - unsigned int fib_seq;
1: + struct hlist_node tb6_hlist;
1: + u32 tb6_id;
1: + spinlock_t tb6_lock;
1: + struct fib6_node tb6_root;
1: + struct inet_peer_base tb6_peers;
1: + unsigned int flags;
1: + unsigned int fib_seq;
1: };
1:
1: typedef union {
1: - __be32 a4;
1: - __be32 a6[4];
1: - struct in6_addr in6;
1: + __be32 a4;
1: + __be32 a6[4];
1: + struct in6_addr in6;
1: } xfrm_address_t;
1:
1: struct xfrm_id {
1: - xfrm_address_t daddr;
1: - __be32 spi;
1: - __u8 proto;
1: + xfrm_address_t daddr;
1: + __be32 spi;
1: + __u8 proto;
1: };
1:
1: struct xfrm_selector {
1: - xfrm_address_t daddr;
1: - xfrm_address_t saddr;
1: - __be16 dport;
1: - __be16 dport_mask;
1: - __be16 sport;
1: - __be16 sport_mask;
1: - __u16 family;
1: - __u8 prefixlen_d;
1: - __u8 prefixlen_s;
1: - __u8 proto;
1: - int ifindex;
1: - __kernel_uid32_t user;
1: + xfrm_address_t daddr;
1: + xfrm_address_t saddr;
1: + __be16 dport;
1: + __be16 dport_mask;
1: + __be16 sport;
1: + __be16 sport_mask;
1: + __u16 family;
1: + __u8 prefixlen_d;
1: + __u8 prefixlen_s;
1: + __u8 proto;
1: + int ifindex;
1: + __kernel_uid32_t user;
1: };
1:
1: struct xfrm_lifetime_cfg {
1: - __u64 soft_byte_limit;
1: - __u64 hard_byte_limit;
1: - __u64 soft_packet_limit;
1: - __u64 hard_packet_limit;
1: - __u64 soft_add_expires_seconds;
1: - __u64 hard_add_expires_seconds;
1: - __u64 soft_use_expires_seconds;
1: - __u64 hard_use_expires_seconds;
1: + __u64 soft_byte_limit;
1: + __u64 hard_byte_limit;
1: + __u64 soft_packet_limit;
1: + __u64 hard_packet_limit;
1: + __u64 soft_add_expires_seconds;
1: + __u64 hard_add_expires_seconds;
1: + __u64 soft_use_expires_seconds;
1: + __u64 hard_use_expires_seconds;
1: };
1:
1: struct xfrm_lifetime_cur {
1: - __u64 bytes;
1: - __u64 packets;
1: - __u64 add_time;
1: - __u64 use_time;
1: + __u64 bytes;
1: + __u64 packets;
1: + __u64 add_time;
1: + __u64 use_time;
1: };
1:
1: struct xfrm_replay_state {
1: - __u32 oseq;
1: - __u32 seq;
1: - __u32 bitmap;
1: + __u32 oseq;
1: + __u32 seq;
1: + __u32 bitmap;
1: };
1:
1: struct xfrm_replay_state_esn {
1: - unsigned int bmp_len;
1: - __u32 oseq;
1: - __u32 seq;
1: - __u32 oseq_hi;
1: - __u32 seq_hi;
1: - __u32 replay_window;
1: - __u32 bmp[0];
1: + unsigned int bmp_len;
1: + __u32 oseq;
1: + __u32 seq;
1: + __u32 oseq_hi;
1: + __u32 seq_hi;
1: + __u32 replay_window;
1: + __u32 bmp[0];
1: };
1:
1: struct xfrm_algo {
1: - char alg_name[64];
1: - unsigned int alg_key_len;
1: - char alg_key[0];
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + char alg_key[0];
1: };
1:
1: struct xfrm_algo_auth {
1: - char alg_name[64];
1: - unsigned int alg_key_len;
1: - unsigned int alg_trunc_len;
1: - char alg_key[0];
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + unsigned int alg_trunc_len;
1: + char alg_key[0];
1: };
1:
1: struct xfrm_algo_aead {
1: - char alg_name[64];
1: - unsigned int alg_key_len;
1: - unsigned int alg_icv_len;
1: - char alg_key[0];
1: + char alg_name[64];
1: + unsigned int alg_key_len;
1: + unsigned int alg_icv_len;
1: + char alg_key[0];
1: };
1:
1: struct xfrm_stats {
1: - __u32 replay_window;
1: - __u32 replay;
1: - __u32 integrity_failed;
1: + __u32 replay_window;
1: + __u32 replay;
1: + __u32 integrity_failed;
1: };
1:
1: enum {
1: - XFRM_POLICY_TYPE_MAIN = 0,
1: - XFRM_POLICY_TYPE_SUB = 1,
1: - XFRM_POLICY_TYPE_MAX = 2,
1: - XFRM_POLICY_TYPE_ANY = 255,
1: + XFRM_POLICY_TYPE_MAIN = 0,
1: + XFRM_POLICY_TYPE_SUB = 1,
1: + XFRM_POLICY_TYPE_MAX = 2,
1: + XFRM_POLICY_TYPE_ANY = 255,
1: };
1:
1: struct xfrm_encap_tmpl {
1: - __u16 encap_type;
1: - __be16 encap_sport;
1: - __be16 encap_dport;
1: - xfrm_address_t encap_oa;
1: + __u16 encap_type;
1: + __be16 encap_sport;
1: + __be16 encap_dport;
1: + xfrm_address_t encap_oa;
1: };
1:
1: enum xfrm_attr_type_t {
1: - XFRMA_UNSPEC = 0,
1: - XFRMA_ALG_AUTH = 1,
1: - XFRMA_ALG_CRYPT = 2,
1: - XFRMA_ALG_COMP = 3,
1: - XFRMA_ENCAP = 4,
1: - XFRMA_TMPL = 5,
1: - XFRMA_SA = 6,
1: - XFRMA_POLICY = 7,
1: - XFRMA_SEC_CTX = 8,
1: - XFRMA_LTIME_VAL = 9,
1: - XFRMA_REPLAY_VAL = 10,
1: - XFRMA_REPLAY_THRESH = 11,
1: - XFRMA_ETIMER_THRESH = 12,
1: - XFRMA_SRCADDR = 13,
1: - XFRMA_COADDR = 14,
1: - XFRMA_LASTUSED = 15,
1: - XFRMA_POLICY_TYPE = 16,
1: - XFRMA_MIGRATE = 17,
1: - XFRMA_ALG_AEAD = 18,
1: - XFRMA_KMADDRESS = 19,
1: - XFRMA_ALG_AUTH_TRUNC = 20,
1: - XFRMA_MARK = 21,
1: - XFRMA_TFCPAD = 22,
1: - XFRMA_REPLAY_ESN_VAL = 23,
1: - XFRMA_SA_EXTRA_FLAGS = 24,
1: - XFRMA_PROTO = 25,
1: - XFRMA_ADDRESS_FILTER = 26,
1: - XFRMA_PAD = 27,
1: - XFRMA_OFFLOAD_DEV = 28,
1: - XFRMA_SET_MARK = 29,
1: - XFRMA_SET_MARK_MASK = 30,
1: - XFRMA_IF_ID = 31,
1: - __XFRMA_MAX = 32,
1: + XFRMA_UNSPEC = 0,
1: + XFRMA_ALG_AUTH = 1,
1: + XFRMA_ALG_CRYPT = 2,
1: + XFRMA_ALG_COMP = 3,
1: + XFRMA_ENCAP = 4,
1: + XFRMA_TMPL = 5,
1: + XFRMA_SA = 6,
1: + XFRMA_POLICY = 7,
1: + XFRMA_SEC_CTX = 8,
1: + XFRMA_LTIME_VAL = 9,
1: + XFRMA_REPLAY_VAL = 10,
1: + XFRMA_REPLAY_THRESH = 11,
1: + XFRMA_ETIMER_THRESH = 12,
1: + XFRMA_SRCADDR = 13,
1: + XFRMA_COADDR = 14,
1: + XFRMA_LASTUSED = 15,
1: + XFRMA_POLICY_TYPE = 16,
1: + XFRMA_MIGRATE = 17,
1: + XFRMA_ALG_AEAD = 18,
1: + XFRMA_KMADDRESS = 19,
1: + XFRMA_ALG_AUTH_TRUNC = 20,
1: + XFRMA_MARK = 21,
1: + XFRMA_TFCPAD = 22,
1: + XFRMA_REPLAY_ESN_VAL = 23,
1: + XFRMA_SA_EXTRA_FLAGS = 24,
1: + XFRMA_PROTO = 25,
1: + XFRMA_ADDRESS_FILTER = 26,
1: + XFRMA_PAD = 27,
1: + XFRMA_OFFLOAD_DEV = 28,
1: + XFRMA_SET_MARK = 29,
1: + XFRMA_SET_MARK_MASK = 30,
1: + XFRMA_IF_ID = 31,
1: + __XFRMA_MAX = 32,
1: };
1:
1: struct xfrm_mark {
1: - __u32 v;
1: - __u32 m;
1: + __u32 v;
1: + __u32 m;
1: };
1:
1: struct xfrm_address_filter {
1: - xfrm_address_t saddr;
1: - xfrm_address_t daddr;
1: - __u16 family;
1: - __u8 splen;
1: - __u8 dplen;
1: + xfrm_address_t saddr;
1: + xfrm_address_t daddr;
1: + __u16 family;
1: + __u8 splen;
1: + __u8 dplen;
1: };
1:
1: struct xfrm_state_walk {
1: - struct list_head all;
1: - u8 state;
1: - u8 dying;
1: - u8 proto;
1: - u32 seq;
1: - struct xfrm_address_filter *filter;
1: + struct list_head all;
1: + u8 state;
1: + u8 dying;
1: + u8 proto;
1: + u32 seq;
1: + struct xfrm_address_filter *filter;
1: };
1:
1: struct xfrm_state_offload {
1: - struct net_device *dev;
1: - struct net_device *real_dev;
1: - long unsigned int offload_handle;
1: - unsigned int num_exthdrs;
1: - u8 flags;
1: + struct net_device *dev;
1: + struct net_device *real_dev;
1: + long unsigned int offload_handle;
1: + unsigned int num_exthdrs;
1: + u8 flags;
1: };
1:
1: struct xfrm_mode {
1: - u8 encap;
1: - u8 family;
1: - u8 flags;
1: + u8 encap;
1: + u8 family;
1: + u8 flags;
1: };
1:
1: struct xfrm_replay;
1: @@ -49735,453 +50533,453 @@ struct xfrm_type;
1: struct xfrm_type_offload;
1:
1: struct xfrm_state {
1: - possible_net_t xs_net;
1: - union {
1: - struct hlist_node gclist;
1: - struct hlist_node bydst;
1: - };
1: - struct hlist_node bysrc;
1: - struct hlist_node byspi;
1: - refcount_t refcnt;
1: - spinlock_t lock;
1: - struct xfrm_id id;
1: - struct xfrm_selector sel;
1: - struct xfrm_mark mark;
1: - u32 if_id;
1: - u32 tfcpad;
1: - u32 genid;
1: - struct xfrm_state_walk km;
1: - struct {
1: - u32 reqid;
1: - u8 mode;
1: - u8 replay_window;
1: - u8 aalgo;
1: - u8 ealgo;
1: - u8 calgo;
1: - u8 flags;
1: - u16 family;
1: - xfrm_address_t saddr;
1: - int header_len;
1: - int trailer_len;
1: - u32 extra_flags;
1: - struct xfrm_mark smark;
1: - } props;
1: - struct xfrm_lifetime_cfg lft;
1: - struct xfrm_algo_auth *aalg;
1: - struct xfrm_algo *ealg;
1: - struct xfrm_algo *calg;
1: - struct xfrm_algo_aead *aead;
1: - const char *geniv;
1: - struct xfrm_encap_tmpl *encap;
1: - struct sock *encap_sk;
1: - xfrm_address_t *coaddr;
1: - struct xfrm_state *tunnel;
1: - atomic_t tunnel_users;
1: - struct xfrm_replay_state replay;
1: - struct xfrm_replay_state_esn *replay_esn;
1: - struct xfrm_replay_state preplay;
1: - struct xfrm_replay_state_esn *preplay_esn;
1: - const struct xfrm_replay *repl;
1: - u32 xflags;
1: - u32 replay_maxage;
1: - u32 replay_maxdiff;
1: - struct timer_list rtimer;
1: - struct xfrm_stats stats;
1: - struct xfrm_lifetime_cur curlft;
1: - struct hrtimer mtimer;
1: - struct xfrm_state_offload xso;
1: - long int saved_tmo;
1: - time64_t lastused;
1: - struct page_frag xfrag;
1: - const struct xfrm_type *type;
1: - struct xfrm_mode inner_mode;
1: - struct xfrm_mode inner_mode_iaf;
1: - struct xfrm_mode outer_mode;
1: - const struct xfrm_type_offload *type_offload;
1: - struct xfrm_sec_ctx *security;
1: - void *data;
1: + possible_net_t xs_net;
1: + union {
1: + struct hlist_node gclist;
1: + struct hlist_node bydst;
1: + };
1: + struct hlist_node bysrc;
1: + struct hlist_node byspi;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + struct xfrm_id id;
1: + struct xfrm_selector sel;
1: + struct xfrm_mark mark;
1: + u32 if_id;
1: + u32 tfcpad;
1: + u32 genid;
1: + struct xfrm_state_walk km;
1: + struct {
1: + u32 reqid;
1: + u8 mode;
1: + u8 replay_window;
1: + u8 aalgo;
1: + u8 ealgo;
1: + u8 calgo;
1: + u8 flags;
1: + u16 family;
1: + xfrm_address_t saddr;
1: + int header_len;
1: + int trailer_len;
1: + u32 extra_flags;
1: + struct xfrm_mark smark;
1: + } props;
1: + struct xfrm_lifetime_cfg lft;
1: + struct xfrm_algo_auth *aalg;
1: + struct xfrm_algo *ealg;
1: + struct xfrm_algo *calg;
1: + struct xfrm_algo_aead *aead;
1: + const char *geniv;
1: + struct xfrm_encap_tmpl *encap;
1: + struct sock *encap_sk;
1: + xfrm_address_t *coaddr;
1: + struct xfrm_state *tunnel;
1: + atomic_t tunnel_users;
1: + struct xfrm_replay_state replay;
1: + struct xfrm_replay_state_esn *replay_esn;
1: + struct xfrm_replay_state preplay;
1: + struct xfrm_replay_state_esn *preplay_esn;
1: + const struct xfrm_replay *repl;
1: + u32 xflags;
1: + u32 replay_maxage;
1: + u32 replay_maxdiff;
1: + struct timer_list rtimer;
1: + struct xfrm_stats stats;
1: + struct xfrm_lifetime_cur curlft;
1: + struct hrtimer mtimer;
1: + struct xfrm_state_offload xso;
1: + long int saved_tmo;
1: + time64_t lastused;
1: + struct page_frag xfrag;
1: + const struct xfrm_type *type;
1: + struct xfrm_mode inner_mode;
1: + struct xfrm_mode inner_mode_iaf;
1: + struct xfrm_mode outer_mode;
1: + const struct xfrm_type_offload *type_offload;
1: + struct xfrm_sec_ctx *security;
1: + void *data;
1: };
1:
1: struct dst_metrics {
1: - u32 metrics[17];
1: - refcount_t refcnt;
1: + u32 metrics[17];
1: + refcount_t refcnt;
1: };
1:
1: struct xfrm_policy_walk_entry {
1: - struct list_head all;
1: - u8 dead;
1: + struct list_head all;
1: + u8 dead;
1: };
1:
1: struct xfrm_policy_queue {
1: - struct sk_buff_head hold_queue;
1: - struct timer_list hold_timer;
1: - long unsigned int timeout;
1: + struct sk_buff_head hold_queue;
1: + struct timer_list hold_timer;
1: + long unsigned int timeout;
1: };
1:
1: struct xfrm_tmpl {
1: - struct xfrm_id id;
1: - xfrm_address_t saddr;
1: - short unsigned int encap_family;
1: - u32 reqid;
1: - u8 mode;
1: - u8 share;
1: - u8 optional;
1: - u8 allalgs;
1: - u32 aalgos;
1: - u32 ealgos;
1: - u32 calgos;
1: + struct xfrm_id id;
1: + xfrm_address_t saddr;
1: + short unsigned int encap_family;
1: + u32 reqid;
1: + u8 mode;
1: + u8 share;
1: + u8 optional;
1: + u8 allalgs;
1: + u32 aalgos;
1: + u32 ealgos;
1: + u32 calgos;
1: };
1:
1: struct xfrm_policy {
1: - possible_net_t xp_net;
1: - struct hlist_node bydst;
1: - struct hlist_node byidx;
1: - rwlock_t lock;
1: - refcount_t refcnt;
1: - u32 pos;
1: - struct timer_list timer;
1: - atomic_t genid;
1: - u32 priority;
1: - u32 index;
1: - u32 if_id;
1: - struct xfrm_mark mark;
1: - struct xfrm_selector selector;
1: - struct xfrm_lifetime_cfg lft;
1: - struct xfrm_lifetime_cur curlft;
1: - struct xfrm_policy_walk_entry walk;
1: - struct xfrm_policy_queue polq;
1: - bool bydst_reinsert;
1: - u8 type;
1: - u8 action;
1: - u8 flags;
1: - u8 xfrm_nr;
1: - u16 family;
1: - struct xfrm_sec_ctx *security;
1: - struct xfrm_tmpl xfrm_vec[6];
1: - struct hlist_node bydst_inexact_list;
1: - struct callback_head rcu;
1: + possible_net_t xp_net;
1: + struct hlist_node bydst;
1: + struct hlist_node byidx;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + u32 pos;
1: + struct timer_list timer;
1: + atomic_t genid;
1: + u32 priority;
1: + u32 index;
1: + u32 if_id;
1: + struct xfrm_mark mark;
1: + struct xfrm_selector selector;
1: + struct xfrm_lifetime_cfg lft;
1: + struct xfrm_lifetime_cur curlft;
1: + struct xfrm_policy_walk_entry walk;
1: + struct xfrm_policy_queue polq;
1: + bool bydst_reinsert;
1: + u8 type;
1: + u8 action;
1: + u8 flags;
1: + u8 xfrm_nr;
1: + u16 family;
1: + struct xfrm_sec_ctx *security;
1: + struct xfrm_tmpl xfrm_vec[6];
1: + struct hlist_node bydst_inexact_list;
1: + struct callback_head rcu;
1: };
1:
1: struct udp_hslot;
1:
1: struct udp_table {
1: - struct udp_hslot *hash;
1: - struct udp_hslot *hash2;
1: - unsigned int mask;
1: - unsigned int log;
1: + struct udp_hslot *hash;
1: + struct udp_hslot *hash2;
1: + unsigned int mask;
1: + unsigned int log;
1: };
1:
1: struct fib_nh_exception {
1: - struct fib_nh_exception *fnhe_next;
1: - int fnhe_genid;
1: - __be32 fnhe_daddr;
1: - u32 fnhe_pmtu;
1: - bool fnhe_mtu_locked;
1: - __be32 fnhe_gw;
1: - long unsigned int fnhe_expires;
1: - struct rtable *fnhe_rth_input;
1: - struct rtable *fnhe_rth_output;
1: - long unsigned int fnhe_stamp;
1: - struct callback_head rcu;
1: + struct fib_nh_exception *fnhe_next;
1: + int fnhe_genid;
1: + __be32 fnhe_daddr;
1: + u32 fnhe_pmtu;
1: + bool fnhe_mtu_locked;
1: + __be32 fnhe_gw;
1: + long unsigned int fnhe_expires;
1: + struct rtable *fnhe_rth_input;
1: + struct rtable *fnhe_rth_output;
1: + long unsigned int fnhe_stamp;
1: + struct callback_head rcu;
1: };
1:
1: struct rtable {
1: - struct dst_entry dst;
1: - int rt_genid;
1: - unsigned int rt_flags;
1: - __u16 rt_type;
1: - __u8 rt_is_input;
1: - __u8 rt_uses_gateway;
1: - int rt_iif;
1: - u8 rt_gw_family;
1: - union {
1: - __be32 rt_gw4;
1: - struct in6_addr rt_gw6;
1: - };
1: - u32 rt_mtu_locked: 1;
1: - u32 rt_pmtu: 31;
1: - struct list_head rt_uncached;
1: - struct uncached_list *rt_uncached_list;
1: + struct dst_entry dst;
1: + int rt_genid;
1: + unsigned int rt_flags;
1: + __u16 rt_type;
1: + __u8 rt_is_input;
1: + __u8 rt_uses_gateway;
1: + int rt_iif;
1: + u8 rt_gw_family;
1: + union {
1: + __be32 rt_gw4;
1: + struct in6_addr rt_gw6;
1: + };
1: + u32 rt_mtu_locked : 1;
1: + u32 rt_pmtu : 31;
1: + struct list_head rt_uncached;
1: + struct uncached_list *rt_uncached_list;
1: };
1:
1: struct fnhe_hash_bucket {
1: - struct fib_nh_exception *chain;
1: + struct fib_nh_exception *chain;
1: };
1:
1: struct rt6_exception_bucket {
1: - struct hlist_head chain;
1: - int depth;
1: + struct hlist_head chain;
1: + int depth;
1: };
1:
1: struct xfrm_replay {
1: - void (*advance)(struct xfrm_state *, __be32);
1: - int (*check)(struct xfrm_state *, struct sk_buff *, __be32);
1: - int (*recheck)(struct xfrm_state *, struct sk_buff *, __be32);
1: - void (*notify)(struct xfrm_state *, int);
1: - int (*overflow)(struct xfrm_state *, struct sk_buff *);
1: + void (*advance)(struct xfrm_state *, __be32);
1: + int (*check)(struct xfrm_state *, struct sk_buff *, __be32);
1: + int (*recheck)(struct xfrm_state *, struct sk_buff *, __be32);
1: + void (*notify)(struct xfrm_state *, int);
1: + int (*overflow)(struct xfrm_state *, struct sk_buff *);
1: };
1:
1: struct xfrm_type {
1: - char *description;
1: - struct module *owner;
1: - u8 proto;
1: - u8 flags;
1: - int (*init_state)(struct xfrm_state *);
1: - void (*destructor)(struct xfrm_state *);
1: - int (*input)(struct xfrm_state *, struct sk_buff *);
1: - int (*output)(struct xfrm_state *, struct sk_buff *);
1: - int (*reject)(struct xfrm_state *, struct sk_buff *, const struct flowi *);
1: - int (*hdr_offset)(struct xfrm_state *, struct sk_buff *, u8 **);
1: + char *description;
1: + struct module *owner;
1: + u8 proto;
1: + u8 flags;
1: + int (*init_state)(struct xfrm_state *);
1: + void (*destructor)(struct xfrm_state *);
1: + int (*input)(struct xfrm_state *, struct sk_buff *);
1: + int (*output)(struct xfrm_state *, struct sk_buff *);
1: + int (*reject)(struct xfrm_state *, struct sk_buff *, const struct flowi *);
1: + int (*hdr_offset)(struct xfrm_state *, struct sk_buff *, u8 **);
1: };
1:
1: struct xfrm_type_offload {
1: - char *description;
1: - struct module *owner;
1: - u8 proto;
1: - void (*encap)(struct xfrm_state *, struct sk_buff *);
1: - int (*input_tail)(struct xfrm_state *, struct sk_buff *);
1: - int (*xmit)(struct xfrm_state *, struct sk_buff *, netdev_features_t);
1: + char *description;
1: + struct module *owner;
1: + u8 proto;
1: + void (*encap)(struct xfrm_state *, struct sk_buff *);
1: + int (*input_tail)(struct xfrm_state *, struct sk_buff *);
1: + int (*xmit)(struct xfrm_state *, struct sk_buff *, netdev_features_t);
1: };
1:
1: struct xfrm_dst {
1: - union {
1: - struct dst_entry dst;
1: - struct rtable rt;
1: - struct rt6_info rt6;
1: - } u;
1: - struct dst_entry *route;
1: - struct dst_entry *child;
1: - struct dst_entry *path;
1: - struct xfrm_policy *pols[2];
1: - int num_pols;
1: - int num_xfrms;
1: - u32 xfrm_genid;
1: - u32 policy_genid;
1: - u32 route_mtu_cached;
1: - u32 child_mtu_cached;
1: - u32 route_cookie;
1: - u32 path_cookie;
1: + union {
1: + struct dst_entry dst;
1: + struct rtable rt;
1: + struct rt6_info rt6;
1: + } u;
1: + struct dst_entry *route;
1: + struct dst_entry *child;
1: + struct dst_entry *path;
1: + struct xfrm_policy *pols[2];
1: + int num_pols;
1: + int num_xfrms;
1: + u32 xfrm_genid;
1: + u32 policy_genid;
1: + u32 route_mtu_cached;
1: + u32 child_mtu_cached;
1: + u32 route_cookie;
1: + u32 path_cookie;
1: };
1:
1: struct xfrm_offload {
1: - struct {
1: - __u32 low;
1: - __u32 hi;
1: - } seq;
1: - __u32 flags;
1: - __u32 status;
1: - __u8 proto;
1: + struct {
1: + __u32 low;
1: + __u32 hi;
1: + } seq;
1: + __u32 flags;
1: + __u32 status;
1: + __u8 proto;
1: };
1:
1: struct sec_path {
1: - int len;
1: - int olen;
1: - struct xfrm_state *xvec[6];
1: - struct xfrm_offload ovec[1];
1: + int len;
1: + int olen;
1: + struct xfrm_state *xvec[6];
1: + struct xfrm_offload ovec[1];
1: };
1:
1: struct udp_hslot {
1: - struct hlist_head head;
1: - int count;
1: - spinlock_t lock;
1: + struct hlist_head head;
1: + int count;
1: + spinlock_t lock;
1: };
1:
1: struct smack_audit_data {
1: - const char *function;
1: - char *subject;
1: - char *object;
1: - char *request;
1: - int result;
1: + const char *function;
1: + char *subject;
1: + char *object;
1: + char *request;
1: + int result;
1: };
1:
1: struct smack_known {
1: - struct list_head list;
1: - struct hlist_node smk_hashed;
1: - char *smk_known;
1: - u32 smk_secid;
1: - struct netlbl_lsm_secattr smk_netlabel;
1: - struct list_head smk_rules;
1: - struct mutex smk_rules_lock;
1: + struct list_head list;
1: + struct hlist_node smk_hashed;
1: + char *smk_known;
1: + u32 smk_secid;
1: + struct netlbl_lsm_secattr smk_netlabel;
1: + struct list_head smk_rules;
1: + struct mutex smk_rules_lock;
1: };
1:
1: struct superblock_smack {
1: - struct smack_known *smk_root;
1: - struct smack_known *smk_floor;
1: - struct smack_known *smk_hat;
1: - struct smack_known *smk_default;
1: - int smk_flags;
1: + struct smack_known *smk_root;
1: + struct smack_known *smk_floor;
1: + struct smack_known *smk_hat;
1: + struct smack_known *smk_default;
1: + int smk_flags;
1: };
1:
1: struct socket_smack {
1: - struct smack_known *smk_out;
1: - struct smack_known *smk_in;
1: - struct smack_known *smk_packet;
1: - int smk_state;
1: + struct smack_known *smk_out;
1: + struct smack_known *smk_in;
1: + struct smack_known *smk_packet;
1: + int smk_state;
1: };
1:
1: struct inode_smack {
1: - struct smack_known *smk_inode;
1: - struct smack_known *smk_task;
1: - struct smack_known *smk_mmap;
1: - int smk_flags;
1: + struct smack_known *smk_inode;
1: + struct smack_known *smk_task;
1: + struct smack_known *smk_mmap;
1: + int smk_flags;
1: };
1:
1: struct task_smack {
1: - struct smack_known *smk_task;
1: - struct smack_known *smk_forked;
1: - struct list_head smk_rules;
1: - struct mutex smk_rules_lock;
1: - struct list_head smk_relabel;
1: + struct smack_known *smk_task;
1: + struct smack_known *smk_forked;
1: + struct list_head smk_rules;
1: + struct mutex smk_rules_lock;
1: + struct list_head smk_relabel;
1: };
1:
1: struct smack_rule {
1: - struct list_head list;
1: - struct smack_known *smk_subject;
1: - struct smack_known *smk_object;
1: - int smk_access;
1: + struct list_head list;
1: + struct smack_known *smk_subject;
1: + struct smack_known *smk_object;
1: + int smk_access;
1: };
1:
1: struct smk_net4addr {
1: - struct list_head list;
1: - struct in_addr smk_host;
1: - struct in_addr smk_mask;
1: - int smk_masks;
1: - struct smack_known *smk_label;
1: + struct list_head list;
1: + struct in_addr smk_host;
1: + struct in_addr smk_mask;
1: + int smk_masks;
1: + struct smack_known *smk_label;
1: };
1:
1: struct smk_net6addr {
1: - struct list_head list;
1: - struct in6_addr smk_host;
1: - struct in6_addr smk_mask;
1: - int smk_masks;
1: - struct smack_known *smk_label;
1: + struct list_head list;
1: + struct in6_addr smk_host;
1: + struct in6_addr smk_mask;
1: + int smk_masks;
1: + struct smack_known *smk_label;
1: };
1:
1: struct smack_known_list_elem {
1: - struct list_head list;
1: - struct smack_known *smk_label;
1: + struct list_head list;
1: + struct smack_known *smk_label;
1: };
1:
1: enum {
1: - Opt_error___3 = 4294967295,
1: - Opt_fsdefault = 0,
1: - Opt_fsfloor = 1,
1: - Opt_fshat = 2,
1: - Opt_fsroot = 3,
1: - Opt_fstransmute = 4,
1: + Opt_error___3 = 4294967295,
1: + Opt_fsdefault = 0,
1: + Opt_fsfloor = 1,
1: + Opt_fshat = 2,
1: + Opt_fsroot = 3,
1: + Opt_fstransmute = 4,
1: };
1:
1: struct smk_audit_info {
1: - struct common_audit_data a;
1: - struct smack_audit_data sad;
1: + struct common_audit_data a;
1: + struct smack_audit_data sad;
1: };
1:
1: struct smack_mnt_opts {
1: - const char *fsdefault;
1: - const char *fsfloor;
1: - const char *fshat;
1: - const char *fsroot;
1: - const char *fstransmute;
1: + const char *fsdefault;
1: + const char *fsfloor;
1: + const char *fshat;
1: + const char *fsroot;
1: + const char *fstransmute;
1: };
1:
1: struct netlbl_audit {
1: - u32 secid;
1: - kuid_t loginuid;
1: - unsigned int sessionid;
1: + u32 secid;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: };
1:
1: struct cipso_v4_std_map_tbl {
1: - struct {
1: - u32 *cipso;
1: - u32 *local;
1: - u32 cipso_size;
1: - u32 local_size;
1: - } lvl;
1: - struct {
1: - u32 *cipso;
1: - u32 *local;
1: - u32 cipso_size;
1: - u32 local_size;
1: - } cat;
1: + struct {
1: + u32 *cipso;
1: + u32 *local;
1: + u32 cipso_size;
1: + u32 local_size;
1: + } lvl;
1: + struct {
1: + u32 *cipso;
1: + u32 *local;
1: + u32 cipso_size;
1: + u32 local_size;
1: + } cat;
1: };
1:
1: struct cipso_v4_doi {
1: - u32 doi;
1: - u32 type;
1: - union {
1: - struct cipso_v4_std_map_tbl *std;
1: - } map;
1: - u8 tags[5];
1: - refcount_t refcount;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + u32 doi;
1: + u32 type;
1: + union {
1: + struct cipso_v4_std_map_tbl *std;
1: + } map;
1: + u8 tags[5];
1: + refcount_t refcount;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: enum smk_inos {
1: - SMK_ROOT_INO = 2,
1: - SMK_LOAD = 3,
1: - SMK_CIPSO = 4,
1: - SMK_DOI = 5,
1: - SMK_DIRECT = 6,
1: - SMK_AMBIENT = 7,
1: - SMK_NET4ADDR = 8,
1: - SMK_ONLYCAP = 9,
1: - SMK_LOGGING = 10,
1: - SMK_LOAD_SELF = 11,
1: - SMK_ACCESSES = 12,
1: - SMK_MAPPED = 13,
1: - SMK_LOAD2 = 14,
1: - SMK_LOAD_SELF2 = 15,
1: - SMK_ACCESS2 = 16,
1: - SMK_CIPSO2 = 17,
1: - SMK_REVOKE_SUBJ = 18,
1: - SMK_CHANGE_RULE = 19,
1: - SMK_SYSLOG = 20,
1: - SMK_PTRACE = 21,
1: - SMK_NET6ADDR = 23,
1: - SMK_RELABEL_SELF = 24,
1: + SMK_ROOT_INO = 2,
1: + SMK_LOAD = 3,
1: + SMK_CIPSO = 4,
1: + SMK_DOI = 5,
1: + SMK_DIRECT = 6,
1: + SMK_AMBIENT = 7,
1: + SMK_NET4ADDR = 8,
1: + SMK_ONLYCAP = 9,
1: + SMK_LOGGING = 10,
1: + SMK_LOAD_SELF = 11,
1: + SMK_ACCESSES = 12,
1: + SMK_MAPPED = 13,
1: + SMK_LOAD2 = 14,
1: + SMK_LOAD_SELF2 = 15,
1: + SMK_ACCESS2 = 16,
1: + SMK_CIPSO2 = 17,
1: + SMK_REVOKE_SUBJ = 18,
1: + SMK_CHANGE_RULE = 19,
1: + SMK_SYSLOG = 20,
1: + SMK_PTRACE = 21,
1: + SMK_NET6ADDR = 23,
1: + SMK_RELABEL_SELF = 24,
1: };
1:
1: struct smack_parsed_rule {
1: - struct smack_known *smk_subject;
1: - struct smack_known *smk_object;
1: - int smk_access1;
1: - int smk_access2;
1: + struct smack_known *smk_subject;
1: + struct smack_known *smk_object;
1: + int smk_access1;
1: + int smk_access2;
1: };
1:
1: struct sockaddr_un {
1: - __kernel_sa_family_t sun_family;
1: - char sun_path[108];
1: + __kernel_sa_family_t sun_family;
1: + char sun_path[108];
1: };
1:
1: struct unix_address {
1: - refcount_t refcnt;
1: - int len;
1: - unsigned int hash;
1: - struct sockaddr_un name[0];
1: + refcount_t refcnt;
1: + int len;
1: + unsigned int hash;
1: + struct sockaddr_un name[0];
1: };
1:
1: struct scm_stat {
1: - atomic_t nr_fds;
1: + atomic_t nr_fds;
1: };
1:
1: struct unix_sock {
1: - struct sock sk;
1: - struct unix_address *addr;
1: - struct path path;
1: - struct mutex iolock;
1: - struct mutex bindlock;
1: - struct sock *peer;
1: - struct list_head link;
1: - atomic_long_t inflight;
1: - spinlock_t lock;
1: - long unsigned int gc_flags;
1: - struct socket_wq peer_wq;
1: - wait_queue_entry_t peer_wake;
1: - struct scm_stat scm_stat;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: + struct sock sk;
1: + struct unix_address *addr;
1: + struct path path;
1: + struct mutex iolock;
1: + struct mutex bindlock;
1: + struct sock *peer;
1: + struct list_head link;
1: + atomic_long_t inflight;
1: + spinlock_t lock;
1: + long unsigned int gc_flags;
1: + struct socket_wq peer_wq;
1: + wait_queue_entry_t peer_wake;
1: + struct scm_stat scm_stat;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef unsigned char Byte;
1: @@ -50191,182 +50989,182 @@ typedef long unsigned int uLong;
1: struct internal_state;
1:
1: struct z_stream_s {
1: - const Byte *next_in;
1: - uLong avail_in;
1: - uLong total_in;
1: - Byte *next_out;
1: - uLong avail_out;
1: - uLong total_out;
1: - char *msg;
1: - struct internal_state *state;
1: - void *workspace;
1: - int data_type;
1: - uLong adler;
1: - uLong reserved;
1: + const Byte *next_in;
1: + uLong avail_in;
1: + uLong total_in;
1: + Byte *next_out;
1: + uLong avail_out;
1: + uLong total_out;
1: + char *msg;
1: + struct internal_state *state;
1: + void *workspace;
1: + int data_type;
1: + uLong adler;
1: + uLong reserved;
1: };
1:
1: struct internal_state {
1: - int dummy;
1: + int dummy;
1: };
1:
1: enum audit_mode {
1: - AUDIT_NORMAL = 0,
1: - AUDIT_QUIET_DENIED = 1,
1: - AUDIT_QUIET = 2,
1: - AUDIT_NOQUIET = 3,
1: - AUDIT_ALL = 4,
1: + AUDIT_NORMAL = 0,
1: + AUDIT_QUIET_DENIED = 1,
1: + AUDIT_QUIET = 2,
1: + AUDIT_NOQUIET = 3,
1: + AUDIT_ALL = 4,
1: };
1:
1: enum aa_sfs_type {
1: - AA_SFS_TYPE_BOOLEAN = 0,
1: - AA_SFS_TYPE_STRING = 1,
1: - AA_SFS_TYPE_U64 = 2,
1: - AA_SFS_TYPE_FOPS = 3,
1: - AA_SFS_TYPE_DIR = 4,
1: + AA_SFS_TYPE_BOOLEAN = 0,
1: + AA_SFS_TYPE_STRING = 1,
1: + AA_SFS_TYPE_U64 = 2,
1: + AA_SFS_TYPE_FOPS = 3,
1: + AA_SFS_TYPE_DIR = 4,
1: };
1:
1: struct aa_sfs_entry {
1: - const char *name;
1: - struct dentry *dentry;
1: - umode_t mode;
1: - enum aa_sfs_type v_type;
1: - union {
1: - bool boolean;
1: - char *string;
1: - long unsigned int u64;
1: - struct aa_sfs_entry *files;
1: - } v;
1: - const struct file_operations *file_ops;
1: + const char *name;
1: + struct dentry *dentry;
1: + umode_t mode;
1: + enum aa_sfs_type v_type;
1: + union {
1: + bool boolean;
1: + char *string;
1: + long unsigned int u64;
1: + struct aa_sfs_entry *files;
1: + } v;
1: + const struct file_operations *file_ops;
1: };
1:
1: enum aafs_ns_type {
1: - AAFS_NS_DIR = 0,
1: - AAFS_NS_PROFS = 1,
1: - AAFS_NS_NS = 2,
1: - AAFS_NS_RAW_DATA = 3,
1: - AAFS_NS_LOAD = 4,
1: - AAFS_NS_REPLACE = 5,
1: - AAFS_NS_REMOVE = 6,
1: - AAFS_NS_REVISION = 7,
1: - AAFS_NS_COUNT = 8,
1: - AAFS_NS_MAX_COUNT = 9,
1: - AAFS_NS_SIZE = 10,
1: - AAFS_NS_MAX_SIZE = 11,
1: - AAFS_NS_OWNER = 12,
1: - AAFS_NS_SIZEOF = 13,
1: + AAFS_NS_DIR = 0,
1: + AAFS_NS_PROFS = 1,
1: + AAFS_NS_NS = 2,
1: + AAFS_NS_RAW_DATA = 3,
1: + AAFS_NS_LOAD = 4,
1: + AAFS_NS_REPLACE = 5,
1: + AAFS_NS_REMOVE = 6,
1: + AAFS_NS_REVISION = 7,
1: + AAFS_NS_COUNT = 8,
1: + AAFS_NS_MAX_COUNT = 9,
1: + AAFS_NS_SIZE = 10,
1: + AAFS_NS_MAX_SIZE = 11,
1: + AAFS_NS_OWNER = 12,
1: + AAFS_NS_SIZEOF = 13,
1: };
1:
1: enum aafs_prof_type {
1: - AAFS_PROF_DIR = 0,
1: - AAFS_PROF_PROFS = 1,
1: - AAFS_PROF_NAME = 2,
1: - AAFS_PROF_MODE = 3,
1: - AAFS_PROF_ATTACH = 4,
1: - AAFS_PROF_HASH = 5,
1: - AAFS_PROF_RAW_DATA = 6,
1: - AAFS_PROF_RAW_HASH = 7,
1: - AAFS_PROF_RAW_ABI = 8,
1: - AAFS_PROF_SIZEOF = 9,
1: + AAFS_PROF_DIR = 0,
1: + AAFS_PROF_PROFS = 1,
1: + AAFS_PROF_NAME = 2,
1: + AAFS_PROF_MODE = 3,
1: + AAFS_PROF_ATTACH = 4,
1: + AAFS_PROF_HASH = 5,
1: + AAFS_PROF_RAW_DATA = 6,
1: + AAFS_PROF_RAW_HASH = 7,
1: + AAFS_PROF_RAW_ABI = 8,
1: + AAFS_PROF_SIZEOF = 9,
1: };
1:
1: struct table_header {
1: - u16 td_id;
1: - u16 td_flags;
1: - u32 td_hilen;
1: - u32 td_lolen;
1: - char td_data[0];
1: + u16 td_id;
1: + u16 td_flags;
1: + u32 td_hilen;
1: + u32 td_lolen;
1: + char td_data[0];
1: };
1:
1: struct aa_dfa {
1: - struct kref count;
1: - u16 flags;
1: - u32 max_oob;
1: - struct table_header *tables[8];
1: + struct kref count;
1: + u16 flags;
1: + u32 max_oob;
1: + struct table_header *tables[8];
1: };
1:
1: struct aa_policy {
1: - const char *name;
1: - char *hname;
1: - struct list_head list;
1: - struct list_head profiles;
1: + const char *name;
1: + char *hname;
1: + struct list_head list;
1: + struct list_head profiles;
1: };
1:
1: struct aa_labelset {
1: - rwlock_t lock;
1: - struct rb_root root;
1: + rwlock_t lock;
1: + struct rb_root root;
1: };
1:
1: enum label_flags {
1: - FLAG_HAT = 1,
1: - FLAG_UNCONFINED = 2,
1: - FLAG_NULL = 4,
1: - FLAG_IX_ON_NAME_ERROR = 8,
1: - FLAG_IMMUTIBLE = 16,
1: - FLAG_USER_DEFINED = 32,
1: - FLAG_NO_LIST_REF = 64,
1: - FLAG_NS_COUNT = 128,
1: - FLAG_IN_TREE = 256,
1: - FLAG_PROFILE = 512,
1: - FLAG_EXPLICIT = 1024,
1: - FLAG_STALE = 2048,
1: - FLAG_RENAMED = 4096,
1: - FLAG_REVOKED = 8192,
1: + FLAG_HAT = 1,
1: + FLAG_UNCONFINED = 2,
1: + FLAG_NULL = 4,
1: + FLAG_IX_ON_NAME_ERROR = 8,
1: + FLAG_IMMUTIBLE = 16,
1: + FLAG_USER_DEFINED = 32,
1: + FLAG_NO_LIST_REF = 64,
1: + FLAG_NS_COUNT = 128,
1: + FLAG_IN_TREE = 256,
1: + FLAG_PROFILE = 512,
1: + FLAG_EXPLICIT = 1024,
1: + FLAG_STALE = 2048,
1: + FLAG_RENAMED = 4096,
1: + FLAG_REVOKED = 8192,
1: };
1:
1: struct aa_label;
1:
1: struct aa_proxy {
1: - struct kref count;
1: - struct aa_label *label;
1: + struct kref count;
1: + struct aa_label *label;
1: };
1:
1: struct aa_profile;
1:
1: struct aa_label {
1: - struct kref count;
1: - struct rb_node node;
1: - struct callback_head rcu;
1: - struct aa_proxy *proxy;
1: - char *hname;
1: - long int flags;
1: - u32 secid;
1: - int size;
1: - struct aa_profile *vec[0];
1: + struct kref count;
1: + struct rb_node node;
1: + struct callback_head rcu;
1: + struct aa_proxy *proxy;
1: + char *hname;
1: + long int flags;
1: + u32 secid;
1: + int size;
1: + struct aa_profile *vec[0];
1: };
1:
1: struct label_it {
1: - int i;
1: - int j;
1: + int i;
1: + int j;
1: };
1:
1: struct aa_policydb {
1: - struct aa_dfa *dfa;
1: - unsigned int start[17];
1: + struct aa_dfa *dfa;
1: + unsigned int start[17];
1: };
1:
1: struct aa_domain {
1: - int size;
1: - char **table;
1: + int size;
1: + char **table;
1: };
1:
1: struct aa_file_rules {
1: - unsigned int start;
1: - struct aa_dfa *dfa;
1: - struct aa_domain trans;
1: + unsigned int start;
1: + struct aa_dfa *dfa;
1: + struct aa_domain trans;
1: };
1:
1: struct aa_caps {
1: - kernel_cap_t allow;
1: - kernel_cap_t audit;
1: - kernel_cap_t denied;
1: - kernel_cap_t quiet;
1: - kernel_cap_t kill;
1: - kernel_cap_t extended;
1: + kernel_cap_t allow;
1: + kernel_cap_t audit;
1: + kernel_cap_t denied;
1: + kernel_cap_t quiet;
1: + kernel_cap_t kill;
1: + kernel_cap_t extended;
1: };
1:
1: struct aa_rlimit {
1: - unsigned int mask;
1: - struct rlimit limits[16];
1: + unsigned int mask;
1: + struct rlimit limits[16];
1: };
1:
1: struct aa_ns;
1: @@ -50376,429 +51174,429 @@ struct aa_secmark;
1: struct aa_loaddata;
1:
1: struct aa_profile {
1: - struct aa_policy base;
1: - struct aa_profile *parent;
1: - struct aa_ns *ns;
1: - const char *rename;
1: - const char *attach;
1: - struct aa_dfa *xmatch;
1: - int xmatch_len;
1: - enum audit_mode audit;
1: - long int mode;
1: - u32 path_flags;
1: - const char *disconnected;
1: - int size;
1: - struct aa_policydb policy;
1: - struct aa_file_rules file;
1: - struct aa_caps caps;
1: - int xattr_count;
1: - char **xattrs;
1: - struct aa_rlimit rlimits;
1: - int secmark_count;
1: - struct aa_secmark *secmark;
1: - struct aa_loaddata *rawdata;
1: - unsigned char *hash;
1: - char *dirname;
1: - struct dentry *dents[9];
1: - struct rhashtable *data;
1: - struct aa_label label;
1: + struct aa_policy base;
1: + struct aa_profile *parent;
1: + struct aa_ns *ns;
1: + const char *rename;
1: + const char *attach;
1: + struct aa_dfa *xmatch;
1: + int xmatch_len;
1: + enum audit_mode audit;
1: + long int mode;
1: + u32 path_flags;
1: + const char *disconnected;
1: + int size;
1: + struct aa_policydb policy;
1: + struct aa_file_rules file;
1: + struct aa_caps caps;
1: + int xattr_count;
1: + char **xattrs;
1: + struct aa_rlimit rlimits;
1: + int secmark_count;
1: + struct aa_secmark *secmark;
1: + struct aa_loaddata *rawdata;
1: + unsigned char *hash;
1: + char *dirname;
1: + struct dentry *dents[9];
1: + struct rhashtable *data;
1: + struct aa_label label;
1: };
1:
1: struct aa_perms {
1: - u32 allow;
1: - u32 audit;
1: - u32 deny;
1: - u32 quiet;
1: - u32 kill;
1: - u32 stop;
1: - u32 complain;
1: - u32 cond;
1: - u32 hide;
1: - u32 prompt;
1: - u16 xindex;
1: + u32 allow;
1: + u32 audit;
1: + u32 deny;
1: + u32 quiet;
1: + u32 kill;
1: + u32 stop;
1: + u32 complain;
1: + u32 cond;
1: + u32 hide;
1: + u32 prompt;
1: + u16 xindex;
1: };
1:
1: struct path_cond {
1: - kuid_t uid;
1: - umode_t mode;
1: + kuid_t uid;
1: + umode_t mode;
1: };
1:
1: struct aa_secmark {
1: - u8 audit;
1: - u8 deny;
1: - u32 secid;
1: - char *label;
1: + u8 audit;
1: + u8 deny;
1: + u32 secid;
1: + char *label;
1: };
1:
1: enum profile_mode {
1: - APPARMOR_ENFORCE = 0,
1: - APPARMOR_COMPLAIN = 1,
1: - APPARMOR_KILL = 2,
1: - APPARMOR_UNCONFINED = 3,
1: + APPARMOR_ENFORCE = 0,
1: + APPARMOR_COMPLAIN = 1,
1: + APPARMOR_KILL = 2,
1: + APPARMOR_UNCONFINED = 3,
1: };
1:
1: struct aa_data {
1: - char *key;
1: - u32 size;
1: - char *data;
1: - struct rhash_head head;
1: + char *key;
1: + u32 size;
1: + char *data;
1: + struct rhash_head head;
1: };
1:
1: struct aa_ns_acct {
1: - int max_size;
1: - int max_count;
1: - int size;
1: - int count;
1: + int max_size;
1: + int max_count;
1: + int size;
1: + int count;
1: };
1:
1: struct aa_ns {
1: - struct aa_policy base;
1: - struct aa_ns *parent;
1: - struct mutex lock;
1: - struct aa_ns_acct acct;
1: - struct aa_profile *unconfined;
1: - struct list_head sub_ns;
1: - atomic_t uniq_null;
1: - long int uniq_id;
1: - int level;
1: - long int revision;
1: - wait_queue_head_t wait;
1: - struct aa_labelset labels;
1: - struct list_head rawdata_list;
1: - struct dentry *dents[13];
1: + struct aa_policy base;
1: + struct aa_ns *parent;
1: + struct mutex lock;
1: + struct aa_ns_acct acct;
1: + struct aa_profile *unconfined;
1: + struct list_head sub_ns;
1: + atomic_t uniq_null;
1: + long int uniq_id;
1: + int level;
1: + long int revision;
1: + wait_queue_head_t wait;
1: + struct aa_labelset labels;
1: + struct list_head rawdata_list;
1: + struct dentry *dents[13];
1: };
1:
1: struct aa_loaddata {
1: - struct kref count;
1: - struct list_head list;
1: - struct work_struct work;
1: - struct dentry *dents[6];
1: - struct aa_ns *ns;
1: - char *name;
1: - size_t size;
1: - size_t compressed_size;
1: - long int revision;
1: - int abi;
1: - unsigned char *hash;
1: - char *data;
1: -};
1: -
1: -enum {
1: - AAFS_LOADDATA_ABI = 0,
1: - AAFS_LOADDATA_REVISION = 1,
1: - AAFS_LOADDATA_HASH = 2,
1: - AAFS_LOADDATA_DATA = 3,
1: - AAFS_LOADDATA_COMPRESSED_SIZE = 4,
1: - AAFS_LOADDATA_DIR = 5,
1: - AAFS_LOADDATA_NDENTS = 6,
1: + struct kref count;
1: + struct list_head list;
1: + struct work_struct work;
1: + struct dentry *dents[6];
1: + struct aa_ns *ns;
1: + char *name;
1: + size_t size;
1: + size_t compressed_size;
1: + long int revision;
1: + int abi;
1: + unsigned char *hash;
1: + char *data;
1: +};
1: +
1: +enum {
1: + AAFS_LOADDATA_ABI = 0,
1: + AAFS_LOADDATA_REVISION = 1,
1: + AAFS_LOADDATA_HASH = 2,
1: + AAFS_LOADDATA_DATA = 3,
1: + AAFS_LOADDATA_COMPRESSED_SIZE = 4,
1: + AAFS_LOADDATA_DIR = 5,
1: + AAFS_LOADDATA_NDENTS = 6,
1: };
1:
1: struct rawdata_f_data {
1: - struct aa_loaddata *loaddata;
1: + struct aa_loaddata *loaddata;
1: };
1:
1: struct aa_revision {
1: - struct aa_ns *ns;
1: - long int last_read;
1: + struct aa_ns *ns;
1: + long int last_read;
1: };
1:
1: struct multi_transaction {
1: - struct kref count;
1: - ssize_t size;
1: - char data[0];
1: + struct kref count;
1: + ssize_t size;
1: + char data[0];
1: };
1:
1: struct apparmor_audit_data {
1: - int error;
1: - int type;
1: - const char *op;
1: - struct aa_label *label;
1: - const char *name;
1: - const char *info;
1: - u32 request;
1: - u32 denied;
1: - union {
1: - struct {
1: - struct aa_label *peer;
1: - union {
1: - struct {
1: - const char *target;
1: - kuid_t ouid;
1: - } fs;
1: - struct {
1: - int rlim;
1: - long unsigned int max;
1: - } rlim;
1: - struct {
1: - int signal;
1: - int unmappedsig;
1: - };
1: - struct {
1: - int type;
1: - int protocol;
1: - struct sock *peer_sk;
1: - void *addr;
1: - int addrlen;
1: - } net;
1: - };
1: - };
1: - struct {
1: - struct aa_profile *profile;
1: - const char *ns;
1: - long int pos;
1: - } iface;
1: - struct {
1: - const char *src_name;
1: - const char *type;
1: - const char *trans;
1: - const char *data;
1: - long unsigned int flags;
1: - } mnt;
1: - };
1: + int error;
1: + int type;
1: + const char *op;
1: + struct aa_label *label;
1: + const char *name;
1: + const char *info;
1: + u32 request;
1: + u32 denied;
1: + union {
1: + struct {
1: + struct aa_label *peer;
1: + union {
1: + struct {
1: + const char *target;
1: + kuid_t ouid;
1: + } fs;
1: + struct {
1: + int rlim;
1: + long unsigned int max;
1: + } rlim;
1: + struct {
1: + int signal;
1: + int unmappedsig;
1: + };
1: + struct {
1: + int type;
1: + int protocol;
1: + struct sock *peer_sk;
1: + void *addr;
1: + int addrlen;
1: + } net;
1: + };
1: + };
1: + struct {
1: + struct aa_profile *profile;
1: + const char *ns;
1: + long int pos;
1: + } iface;
1: + struct {
1: + const char *src_name;
1: + const char *type;
1: + const char *trans;
1: + const char *data;
1: + long unsigned int flags;
1: + } mnt;
1: + };
1: };
1:
1: enum audit_type {
1: - AUDIT_APPARMOR_AUDIT = 0,
1: - AUDIT_APPARMOR_ALLOWED = 1,
1: - AUDIT_APPARMOR_DENIED = 2,
1: - AUDIT_APPARMOR_HINT = 3,
1: - AUDIT_APPARMOR_STATUS = 4,
1: - AUDIT_APPARMOR_ERROR = 5,
1: - AUDIT_APPARMOR_KILL = 6,
1: - AUDIT_APPARMOR_AUTO = 7,
1: + AUDIT_APPARMOR_AUDIT = 0,
1: + AUDIT_APPARMOR_ALLOWED = 1,
1: + AUDIT_APPARMOR_DENIED = 2,
1: + AUDIT_APPARMOR_HINT = 3,
1: + AUDIT_APPARMOR_STATUS = 4,
1: + AUDIT_APPARMOR_ERROR = 5,
1: + AUDIT_APPARMOR_KILL = 6,
1: + AUDIT_APPARMOR_AUTO = 7,
1: };
1:
1: struct aa_audit_rule {
1: - struct aa_label *label;
1: + struct aa_label *label;
1: };
1:
1: struct audit_cache {
1: - struct aa_profile *profile;
1: - kernel_cap_t caps;
1: + struct aa_profile *profile;
1: + kernel_cap_t caps;
1: };
1:
1: struct aa_task_ctx {
1: - struct aa_label *nnp;
1: - struct aa_label *onexec;
1: - struct aa_label *previous;
1: - u64 token;
1: + struct aa_label *nnp;
1: + struct aa_label *onexec;
1: + struct aa_label *previous;
1: + u64 token;
1: };
1:
1: struct counted_str {
1: - struct kref count;
1: - char name[0];
1: + struct kref count;
1: + char name[0];
1: };
1:
1: struct match_workbuf {
1: - unsigned int count;
1: - unsigned int pos;
1: - unsigned int len;
1: - unsigned int size;
1: - unsigned int history[24];
1: + unsigned int count;
1: + unsigned int pos;
1: + unsigned int len;
1: + unsigned int size;
1: + unsigned int history[24];
1: };
1:
1: enum path_flags {
1: - PATH_IS_DIR = 1,
1: - PATH_CONNECT_PATH = 4,
1: - PATH_CHROOT_REL = 8,
1: - PATH_CHROOT_NSCONNECT = 16,
1: - PATH_DELEGATE_DELETED = 32768,
1: - PATH_MEDIATE_DELETED = 65536,
1: + PATH_IS_DIR = 1,
1: + PATH_CONNECT_PATH = 4,
1: + PATH_CHROOT_REL = 8,
1: + PATH_CHROOT_NSCONNECT = 16,
1: + PATH_DELEGATE_DELETED = 32768,
1: + PATH_MEDIATE_DELETED = 65536,
1: };
1:
1: struct aa_load_ent {
1: - struct list_head list;
1: - struct aa_profile *new;
1: - struct aa_profile *old;
1: - struct aa_profile *rename;
1: - const char *ns_name;
1: + struct list_head list;
1: + struct aa_profile *new;
1: + struct aa_profile *old;
1: + struct aa_profile *rename;
1: + const char *ns_name;
1: };
1:
1: enum aa_code {
1: - AA_U8 = 0,
1: - AA_U16 = 1,
1: - AA_U32 = 2,
1: - AA_U64 = 3,
1: - AA_NAME = 4,
1: - AA_STRING = 5,
1: - AA_BLOB = 6,
1: - AA_STRUCT = 7,
1: - AA_STRUCTEND = 8,
1: - AA_LIST = 9,
1: - AA_LISTEND = 10,
1: - AA_ARRAY = 11,
1: - AA_ARRAYEND = 12,
1: + AA_U8 = 0,
1: + AA_U16 = 1,
1: + AA_U32 = 2,
1: + AA_U64 = 3,
1: + AA_NAME = 4,
1: + AA_STRING = 5,
1: + AA_BLOB = 6,
1: + AA_STRUCT = 7,
1: + AA_STRUCTEND = 8,
1: + AA_LIST = 9,
1: + AA_LISTEND = 10,
1: + AA_ARRAY = 11,
1: + AA_ARRAYEND = 12,
1: };
1:
1: struct aa_ext {
1: - void *start;
1: - void *end;
1: - void *pos;
1: - u32 version;
1: + void *start;
1: + void *end;
1: + void *pos;
1: + u32 version;
1: };
1:
1: struct aa_file_ctx {
1: - spinlock_t lock;
1: - struct aa_label *label;
1: - u32 allow;
1: + spinlock_t lock;
1: + struct aa_label *label;
1: + u32 allow;
1: };
1:
1: struct aa_sk_ctx {
1: - struct aa_label *label;
1: - struct aa_label *peer;
1: + struct aa_label *label;
1: + struct aa_label *peer;
1: };
1:
1: union aa_buffer {
1: - struct list_head list;
1: - char buffer[1];
1: + struct list_head list;
1: + char buffer[1];
1: };
1:
1: struct ptrace_relation {
1: - struct task_struct *tracer;
1: - struct task_struct *tracee;
1: - bool invalid;
1: - struct list_head node;
1: - struct callback_head rcu;
1: + struct task_struct *tracer;
1: + struct task_struct *tracee;
1: + bool invalid;
1: + struct list_head node;
1: + struct callback_head rcu;
1: };
1:
1: struct access_report_info {
1: - struct callback_head work;
1: - const char *access;
1: - struct task_struct *target;
1: - struct task_struct *agent;
1: + struct callback_head work;
1: + const char *access;
1: + struct task_struct *target;
1: + struct task_struct *agent;
1: };
1:
1: enum sid_policy_type {
1: - SIDPOL_DEFAULT = 0,
1: - SIDPOL_CONSTRAINED = 1,
1: - SIDPOL_ALLOWED = 2,
1: + SIDPOL_DEFAULT = 0,
1: + SIDPOL_CONSTRAINED = 1,
1: + SIDPOL_ALLOWED = 2,
1: };
1:
1: typedef union {
1: - kuid_t uid;
1: - kgid_t gid;
1: + kuid_t uid;
1: + kgid_t gid;
1: } kid_t;
1:
1: enum setid_type {
1: - UID = 0,
1: - GID = 1,
1: + UID = 0,
1: + GID = 1,
1: };
1:
1: struct setid_rule {
1: - struct hlist_node next;
1: - kid_t src_id;
1: - kid_t dst_id;
1: - enum setid_type type;
1: + struct hlist_node next;
1: + kid_t src_id;
1: + kid_t dst_id;
1: + enum setid_type type;
1: };
1:
1: struct setid_ruleset {
1: - struct hlist_head rules[256];
1: - char *policy_str;
1: - struct callback_head rcu;
1: - enum setid_type type;
1: + struct hlist_head rules[256];
1: + char *policy_str;
1: + struct callback_head rcu;
1: + enum setid_type type;
1: };
1:
1: enum devcg_behavior {
1: - DEVCG_DEFAULT_NONE = 0,
1: - DEVCG_DEFAULT_ALLOW = 1,
1: - DEVCG_DEFAULT_DENY = 2,
1: + DEVCG_DEFAULT_NONE = 0,
1: + DEVCG_DEFAULT_ALLOW = 1,
1: + DEVCG_DEFAULT_DENY = 2,
1: };
1:
1: struct dev_exception_item {
1: - u32 major;
1: - u32 minor;
1: - short int type;
1: - short int access;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + u32 major;
1: + u32 minor;
1: + short int type;
1: + short int access;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct dev_cgroup {
1: - struct cgroup_subsys_state css;
1: - struct list_head exceptions;
1: - enum devcg_behavior behavior;
1: + struct cgroup_subsys_state css;
1: + struct list_head exceptions;
1: + enum devcg_behavior behavior;
1: };
1:
1: struct altha_list_struct {
1: - struct path path;
1: - char *spath;
1: - char *spath_p;
1: - struct list_head list;
1: + struct path path;
1: + char *spath;
1: + char *spath_p;
1: + struct list_head list;
1: };
1:
1: struct kiosk_list_struct {
1: - struct path path;
1: - struct list_head list;
1: + struct path path;
1: + struct list_head list;
1: };
1:
1: enum kiosk_cmd {
1: - KIOSK_UNSPEC = 0,
1: - KIOSK_REQUEST = 1,
1: - KIOSK_REPLY = 2,
1: - KIOSK_CMD_LAST = 3,
1: + KIOSK_UNSPEC = 0,
1: + KIOSK_REQUEST = 1,
1: + KIOSK_REPLY = 2,
1: + KIOSK_CMD_LAST = 3,
1: };
1:
1: enum kiosk_mode {
1: - KIOSK_PERMISSIVE = 0,
1: - KIOSK_NONSYSTEM = 1,
1: - KIOSK_MODE_LAST = 2,
1: + KIOSK_PERMISSIVE = 0,
1: + KIOSK_NONSYSTEM = 1,
1: + KIOSK_MODE_LAST = 2,
1: };
1:
1: enum kiosk_action {
1: - KIOSK_SET_MODE = 0,
1: - KIOSK_USERLIST_ADD = 1,
1: - KIOSK_USERLIST_DEL = 2,
1: - KIOSK_USER_LIST = 3,
1: + KIOSK_SET_MODE = 0,
1: + KIOSK_USERLIST_ADD = 1,
1: + KIOSK_USERLIST_DEL = 2,
1: + KIOSK_USER_LIST = 3,
1: };
1:
1: enum kiosk_attrs {
1: - KIOSK_NOATTR = 0,
1: - KIOSK_ACTION = 1,
1: - KIOSK_DATA = 2,
1: - KIOSK_MAX_ATTR = 3,
1: + KIOSK_NOATTR = 0,
1: + KIOSK_ACTION = 1,
1: + KIOSK_DATA = 2,
1: + KIOSK_MAX_ATTR = 3,
1: };
1:
1: enum integrity_status {
1: - INTEGRITY_PASS = 0,
1: - INTEGRITY_PASS_IMMUTABLE = 1,
1: - INTEGRITY_FAIL = 2,
1: - INTEGRITY_NOLABEL = 3,
1: - INTEGRITY_NOXATTRS = 4,
1: - INTEGRITY_UNKNOWN = 5,
1: + INTEGRITY_PASS = 0,
1: + INTEGRITY_PASS_IMMUTABLE = 1,
1: + INTEGRITY_FAIL = 2,
1: + INTEGRITY_NOLABEL = 3,
1: + INTEGRITY_NOXATTRS = 4,
1: + INTEGRITY_UNKNOWN = 5,
1: };
1:
1: struct ima_digest_data {
1: - u8 algo;
1: - u8 length;
1: - union {
1: - struct {
1: - u8 unused;
1: - u8 type;
1: - } sha1;
1: - struct {
1: - u8 type;
1: - u8 algo;
1: - } ng;
1: - u8 data[2];
1: - } xattr;
1: - u8 digest[0];
1: + u8 algo;
1: + u8 length;
1: + union {
1: + struct {
1: + u8 unused;
1: + u8 type;
1: + } sha1;
1: + struct {
1: + u8 type;
1: + u8 algo;
1: + } ng;
1: + u8 data[2];
1: + } xattr;
1: + u8 digest[0];
1: };
1:
1: struct integrity_iint_cache {
1: - struct rb_node rb_node;
1: - struct mutex mutex;
1: - struct inode *inode;
1: - u64 version;
1: - long unsigned int flags;
1: - long unsigned int measured_pcrs;
1: - long unsigned int atomic_flags;
1: - enum integrity_status ima_file_status: 4;
1: - enum integrity_status ima_mmap_status: 4;
1: - enum integrity_status ima_bprm_status: 4;
1: - enum integrity_status ima_read_status: 4;
1: - enum integrity_status ima_creds_status: 4;
1: - enum integrity_status evm_status: 4;
1: - struct ima_digest_data *ima_hash;
1: + struct rb_node rb_node;
1: + struct mutex mutex;
1: + struct inode *inode;
1: + u64 version;
1: + long unsigned int flags;
1: + long unsigned int measured_pcrs;
1: + long unsigned int atomic_flags;
1: + enum integrity_status ima_file_status : 4;
1: + enum integrity_status ima_mmap_status : 4;
1: + enum integrity_status ima_bprm_status : 4;
1: + enum integrity_status ima_read_status : 4;
1: + enum integrity_status ima_creds_status : 4;
1: + enum integrity_status evm_status : 4;
1: + struct ima_digest_data *ima_hash;
1: };
1:
1: struct modsig;
1: @@ -50806,1661 +51604,1667 @@ struct modsig;
1: struct asymmetric_key_id;
1:
1: struct public_key_signature {
1: - struct asymmetric_key_id *auth_ids[2];
1: - u8 *s;
1: - u32 s_size;
1: - u8 *digest;
1: - u8 digest_size;
1: - const char *pkey_algo;
1: - const char *hash_algo;
1: - const char *encoding;
1: - const void *data;
1: - unsigned int data_size;
1: + struct asymmetric_key_id *auth_ids[2];
1: + u8 *s;
1: + u32 s_size;
1: + u8 *digest;
1: + u8 digest_size;
1: + const char *pkey_algo;
1: + const char *hash_algo;
1: + const char *encoding;
1: + const void *data;
1: + unsigned int data_size;
1: };
1:
1: struct asymmetric_key_id {
1: - short unsigned int len;
1: - unsigned char data[0];
1: + short unsigned int len;
1: + unsigned char data[0];
1: };
1:
1: struct signature_v2_hdr {
1: - uint8_t type;
1: - uint8_t version;
1: - uint8_t hash_algo;
1: - __be32 keyid;
1: - __be16 sig_size;
1: - uint8_t sig[0];
1: + uint8_t type;
1: + uint8_t version;
1: + uint8_t hash_algo;
1: + __be32 keyid;
1: + __be16 sig_size;
1: + uint8_t sig[0];
1: } __attribute__((packed));
1:
1: struct tpm_digest {
1: - u16 alg_id;
1: - u8 digest[64];
1: + u16 alg_id;
1: + u8 digest[64];
1: };
1:
1: struct evm_ima_xattr_data {
1: - u8 type;
1: - u8 data[0];
1: + u8 type;
1: + u8 data[0];
1: };
1:
1: enum ima_show_type {
1: - IMA_SHOW_BINARY = 0,
1: - IMA_SHOW_BINARY_NO_FIELD_LEN = 1,
1: - IMA_SHOW_BINARY_OLD_STRING_FMT = 2,
1: - IMA_SHOW_ASCII = 3,
1: + IMA_SHOW_BINARY = 0,
1: + IMA_SHOW_BINARY_NO_FIELD_LEN = 1,
1: + IMA_SHOW_BINARY_OLD_STRING_FMT = 2,
1: + IMA_SHOW_ASCII = 3,
1: };
1:
1: struct ima_event_data {
1: - struct integrity_iint_cache *iint;
1: - struct file *file;
1: - const unsigned char *filename;
1: - struct evm_ima_xattr_data *xattr_value;
1: - int xattr_len;
1: - const struct modsig *modsig;
1: - const char *violation;
1: - const void *buf;
1: - int buf_len;
1: + struct integrity_iint_cache *iint;
1: + struct file *file;
1: + const unsigned char *filename;
1: + struct evm_ima_xattr_data *xattr_value;
1: + int xattr_len;
1: + const struct modsig *modsig;
1: + const char *violation;
1: + const void *buf;
1: + int buf_len;
1: };
1:
1: struct ima_field_data {
1: - u8 *data;
1: - u32 len;
1: + u8 *data;
1: + u32 len;
1: };
1:
1: struct ima_template_field {
1: - const char field_id[16];
1: - int (*field_init)(struct ima_event_data *, struct ima_field_data *);
1: - void (*field_show)(struct seq_file *, enum ima_show_type, struct ima_field_data *);
1: + const char field_id[16];
1: + int (*field_init)(struct ima_event_data *, struct ima_field_data *);
1: + void (*field_show)(struct seq_file *, enum ima_show_type,
1: + struct ima_field_data *);
1: };
1:
1: struct ima_template_desc {
1: - struct list_head list;
1: - char *name;
1: - char *fmt;
1: - int num_fields;
1: - const struct ima_template_field **fields;
1: + struct list_head list;
1: + char *name;
1: + char *fmt;
1: + int num_fields;
1: + const struct ima_template_field **fields;
1: };
1:
1: struct ima_template_entry {
1: - int pcr;
1: - struct tpm_digest *digests;
1: - struct ima_template_desc *template_desc;
1: - u32 template_data_len;
1: - struct ima_field_data template_data[0];
1: + int pcr;
1: + struct tpm_digest *digests;
1: + struct ima_template_desc *template_desc;
1: + u32 template_data_len;
1: + struct ima_field_data template_data[0];
1: };
1:
1: struct ima_queue_entry {
1: - struct hlist_node hnext;
1: - struct list_head later;
1: - struct ima_template_entry *entry;
1: + struct hlist_node hnext;
1: + struct list_head later;
1: + struct ima_template_entry *entry;
1: };
1:
1: struct ima_h_table {
1: - atomic_long_t len;
1: - atomic_long_t violations;
1: - struct hlist_head queue[1024];
1: + atomic_long_t len;
1: + atomic_long_t violations;
1: + struct hlist_head queue[1024];
1: };
1:
1: enum ima_fs_flags {
1: - IMA_FS_BUSY = 0,
1: + IMA_FS_BUSY = 0,
1: };
1:
1: struct hwrng {
1: - const char *name;
1: - int (*init)(struct hwrng *);
1: - void (*cleanup)(struct hwrng *);
1: - int (*data_present)(struct hwrng *, int);
1: - int (*data_read)(struct hwrng *, u32 *);
1: - int (*read)(struct hwrng *, void *, size_t, bool);
1: - long unsigned int priv;
1: - short unsigned int quality;
1: - struct list_head list;
1: - struct kref ref;
1: - struct completion cleanup_done;
1: + const char *name;
1: + int (*init)(struct hwrng *);
1: + void (*cleanup)(struct hwrng *);
1: + int (*data_present)(struct hwrng *, int);
1: + int (*data_read)(struct hwrng *, u32 *);
1: + int (*read)(struct hwrng *, void *, size_t, bool);
1: + long unsigned int priv;
1: + short unsigned int quality;
1: + struct list_head list;
1: + struct kref ref;
1: + struct completion cleanup_done;
1: };
1:
1: struct tpm_bank_info {
1: - u16 alg_id;
1: - u16 digest_size;
1: - u16 crypto_id;
1: + u16 alg_id;
1: + u16 digest_size;
1: + u16 crypto_id;
1: };
1:
1: struct tpm_chip;
1:
1: struct tpm_class_ops {
1: - unsigned int flags;
1: - const u8 req_complete_mask;
1: - const u8 req_complete_val;
1: - bool (*req_canceled)(struct tpm_chip *, u8);
1: - int (*recv)(struct tpm_chip *, u8 *, size_t);
1: - int (*send)(struct tpm_chip *, u8 *, size_t);
1: - void (*cancel)(struct tpm_chip *);
1: - u8 (*status)(struct tpm_chip *);
1: - void (*update_timeouts)(struct tpm_chip *, long unsigned int *);
1: - void (*update_durations)(struct tpm_chip *, long unsigned int *);
1: - int (*go_idle)(struct tpm_chip *);
1: - int (*cmd_ready)(struct tpm_chip *);
1: - int (*request_locality)(struct tpm_chip *, int);
1: - int (*relinquish_locality)(struct tpm_chip *, int);
1: - void (*clk_enable)(struct tpm_chip *, bool);
1: + unsigned int flags;
1: + const u8 req_complete_mask;
1: + const u8 req_complete_val;
1: + bool (*req_canceled)(struct tpm_chip *, u8);
1: + int (*recv)(struct tpm_chip *, u8 *, size_t);
1: + int (*send)(struct tpm_chip *, u8 *, size_t);
1: + void (*cancel)(struct tpm_chip *);
1: + u8 (*status)(struct tpm_chip *);
1: + void (*update_timeouts)(struct tpm_chip *, long unsigned int *);
1: + void (*update_durations)(struct tpm_chip *, long unsigned int *);
1: + int (*go_idle)(struct tpm_chip *);
1: + int (*cmd_ready)(struct tpm_chip *);
1: + int (*request_locality)(struct tpm_chip *, int);
1: + int (*relinquish_locality)(struct tpm_chip *, int);
1: + void (*clk_enable)(struct tpm_chip *, bool);
1: };
1:
1: struct tpm_bios_log {
1: - void *bios_event_log;
1: - void *bios_event_log_end;
1: + void *bios_event_log;
1: + void *bios_event_log_end;
1: };
1:
1: struct tpm_chip_seqops {
1: - struct tpm_chip *chip;
1: - const struct seq_operations *seqops;
1: + struct tpm_chip *chip;
1: + const struct seq_operations *seqops;
1: };
1:
1: struct tpm_space {
1: - u32 context_tbl[3];
1: - u8 *context_buf;
1: - u32 session_tbl[3];
1: - u8 *session_buf;
1: - u32 buf_size;
1: + u32 context_tbl[3];
1: + u8 *context_buf;
1: + u32 session_tbl[3];
1: + u8 *session_buf;
1: + u32 buf_size;
1: };
1:
1: struct tpm_chip {
1: - struct device dev;
1: - struct device devs;
1: - struct cdev cdev;
1: - struct cdev cdevs;
1: - struct rw_semaphore ops_sem;
1: - const struct tpm_class_ops *ops;
1: - struct tpm_bios_log log;
1: - struct tpm_chip_seqops bin_log_seqops;
1: - struct tpm_chip_seqops ascii_log_seqops;
1: - unsigned int flags;
1: - int dev_num;
1: - long unsigned int is_open;
1: - char hwrng_name[64];
1: - struct hwrng hwrng;
1: - struct mutex tpm_mutex;
1: - long unsigned int timeout_a;
1: - long unsigned int timeout_b;
1: - long unsigned int timeout_c;
1: - long unsigned int timeout_d;
1: - bool timeout_adjusted;
1: - long unsigned int duration[4];
1: - bool duration_adjusted;
1: - struct dentry *bios_dir[3];
1: - const struct attribute_group *groups[3];
1: - unsigned int groups_cnt;
1: - u32 nr_allocated_banks;
1: - struct tpm_bank_info *allocated_banks;
1: - acpi_handle acpi_dev_handle;
1: - char ppi_version[4];
1: - struct tpm_space work_space;
1: - u32 last_cc;
1: - u32 nr_commands;
1: - u32 *cc_attrs_tbl;
1: - int locality;
1: + struct device dev;
1: + struct device devs;
1: + struct cdev cdev;
1: + struct cdev cdevs;
1: + struct rw_semaphore ops_sem;
1: + const struct tpm_class_ops *ops;
1: + struct tpm_bios_log log;
1: + struct tpm_chip_seqops bin_log_seqops;
1: + struct tpm_chip_seqops ascii_log_seqops;
1: + unsigned int flags;
1: + int dev_num;
1: + long unsigned int is_open;
1: + char hwrng_name[64];
1: + struct hwrng hwrng;
1: + struct mutex tpm_mutex;
1: + long unsigned int timeout_a;
1: + long unsigned int timeout_b;
1: + long unsigned int timeout_c;
1: + long unsigned int timeout_d;
1: + bool timeout_adjusted;
1: + long unsigned int duration[4];
1: + bool duration_adjusted;
1: + struct dentry *bios_dir[3];
1: + const struct attribute_group *groups[3];
1: + unsigned int groups_cnt;
1: + u32 nr_allocated_banks;
1: + struct tpm_bank_info *allocated_banks;
1: + acpi_handle acpi_dev_handle;
1: + char ppi_version[4];
1: + struct tpm_space work_space;
1: + u32 last_cc;
1: + u32 nr_commands;
1: + u32 *cc_attrs_tbl;
1: + int locality;
1: };
1:
1: enum evm_ima_xattr_type {
1: - IMA_XATTR_DIGEST = 1,
1: - EVM_XATTR_HMAC = 2,
1: - EVM_IMA_XATTR_DIGSIG = 3,
1: - IMA_XATTR_DIGEST_NG = 4,
1: - EVM_XATTR_PORTABLE_DIGSIG = 5,
1: - IMA_XATTR_LAST = 6,
1: + IMA_XATTR_DIGEST = 1,
1: + EVM_XATTR_HMAC = 2,
1: + EVM_IMA_XATTR_DIGSIG = 3,
1: + IMA_XATTR_DIGEST_NG = 4,
1: + EVM_XATTR_PORTABLE_DIGSIG = 5,
1: + IMA_XATTR_LAST = 6,
1: };
1:
1: enum ima_hooks {
1: - NONE = 0,
1: - FILE_CHECK = 1,
1: - MMAP_CHECK = 2,
1: - BPRM_CHECK = 3,
1: - CREDS_CHECK = 4,
1: - POST_SETATTR = 5,
1: - MODULE_CHECK = 6,
1: - FIRMWARE_CHECK = 7,
1: - KEXEC_KERNEL_CHECK = 8,
1: - KEXEC_INITRAMFS_CHECK = 9,
1: - POLICY_CHECK = 10,
1: - KEXEC_CMDLINE = 11,
1: - KEY_CHECK = 12,
1: - MAX_CHECK = 13,
1: + NONE = 0,
1: + FILE_CHECK = 1,
1: + MMAP_CHECK = 2,
1: + BPRM_CHECK = 3,
1: + CREDS_CHECK = 4,
1: + POST_SETATTR = 5,
1: + MODULE_CHECK = 6,
1: + FIRMWARE_CHECK = 7,
1: + KEXEC_KERNEL_CHECK = 8,
1: + KEXEC_INITRAMFS_CHECK = 9,
1: + POLICY_CHECK = 10,
1: + KEXEC_CMDLINE = 11,
1: + KEY_CHECK = 12,
1: + MAX_CHECK = 13,
1: };
1:
1: enum tpm_algorithms {
1: - TPM_ALG_ERROR = 0,
1: - TPM_ALG_SHA1 = 4,
1: - TPM_ALG_KEYEDHASH = 8,
1: - TPM_ALG_SHA256 = 11,
1: - TPM_ALG_SHA384 = 12,
1: - TPM_ALG_SHA512 = 13,
1: - TPM_ALG_NULL = 16,
1: - TPM_ALG_SM3_256 = 18,
1: + TPM_ALG_ERROR = 0,
1: + TPM_ALG_SHA1 = 4,
1: + TPM_ALG_KEYEDHASH = 8,
1: + TPM_ALG_SHA256 = 11,
1: + TPM_ALG_SHA384 = 12,
1: + TPM_ALG_SHA512 = 13,
1: + TPM_ALG_NULL = 16,
1: + TPM_ALG_SM3_256 = 18,
1: };
1:
1: enum tpm_pcrs {
1: - TPM_PCR0 = 0,
1: - TPM_PCR8 = 8,
1: - TPM_PCR10 = 10,
1: + TPM_PCR0 = 0,
1: + TPM_PCR8 = 8,
1: + TPM_PCR10 = 10,
1: };
1:
1: struct ima_algo_desc {
1: - struct crypto_shash *tfm;
1: - enum hash_algo algo;
1: + struct crypto_shash *tfm;
1: + enum hash_algo algo;
1: };
1:
1: enum lsm_rule_types {
1: - LSM_OBJ_USER = 0,
1: - LSM_OBJ_ROLE = 1,
1: - LSM_OBJ_TYPE = 2,
1: - LSM_SUBJ_USER = 3,
1: - LSM_SUBJ_ROLE = 4,
1: - LSM_SUBJ_TYPE = 5,
1: + LSM_OBJ_USER = 0,
1: + LSM_OBJ_ROLE = 1,
1: + LSM_OBJ_TYPE = 2,
1: + LSM_SUBJ_USER = 3,
1: + LSM_SUBJ_ROLE = 4,
1: + LSM_SUBJ_TYPE = 5,
1: };
1:
1: enum policy_types {
1: - ORIGINAL_TCB = 1,
1: - DEFAULT_TCB = 2,
1: + ORIGINAL_TCB = 1,
1: + DEFAULT_TCB = 2,
1: };
1:
1: enum policy_rule_list {
1: - IMA_DEFAULT_POLICY = 1,
1: - IMA_CUSTOM_POLICY = 2,
1: + IMA_DEFAULT_POLICY = 1,
1: + IMA_CUSTOM_POLICY = 2,
1: };
1:
1: struct ima_rule_opt_list {
1: - size_t count;
1: - char *items[0];
1: + size_t count;
1: + char *items[0];
1: };
1:
1: struct ima_rule_entry {
1: - struct list_head list;
1: - int action;
1: - unsigned int flags;
1: - enum ima_hooks func;
1: - int mask;
1: - long unsigned int fsmagic;
1: - uuid_t fsuuid;
1: - kuid_t uid;
1: - kuid_t fowner;
1: - bool (*uid_op)(kuid_t, kuid_t);
1: - bool (*fowner_op)(kuid_t, kuid_t);
1: - int pcr;
1: - struct {
1: - void *rule;
1: - char *args_p;
1: - int type;
1: - } lsm[6];
1: - char *fsname;
1: - struct ima_rule_opt_list *keyrings;
1: - struct ima_template_desc *template;
1: -};
1: -
1: -enum {
1: - Opt_measure = 0,
1: - Opt_dont_measure = 1,
1: - Opt_appraise = 2,
1: - Opt_dont_appraise = 3,
1: - Opt_audit = 4,
1: - Opt_hash___2 = 5,
1: - Opt_dont_hash = 6,
1: - Opt_obj_user = 7,
1: - Opt_obj_role = 8,
1: - Opt_obj_type = 9,
1: - Opt_subj_user = 10,
1: - Opt_subj_role = 11,
1: - Opt_subj_type = 12,
1: - Opt_func = 13,
1: - Opt_mask = 14,
1: - Opt_fsmagic = 15,
1: - Opt_fsname = 16,
1: - Opt_fsuuid = 17,
1: - Opt_uid_eq = 18,
1: - Opt_euid_eq = 19,
1: - Opt_fowner_eq = 20,
1: - Opt_uid_gt = 21,
1: - Opt_euid_gt = 22,
1: - Opt_fowner_gt = 23,
1: - Opt_uid_lt = 24,
1: - Opt_euid_lt = 25,
1: - Opt_fowner_lt = 26,
1: - Opt_appraise_type = 27,
1: - Opt_appraise_flag = 28,
1: - Opt_permit_directio = 29,
1: - Opt_pcr = 30,
1: - Opt_template = 31,
1: - Opt_keyrings = 32,
1: - Opt_err___7 = 33,
1: -};
1: -
1: -enum {
1: - mask_exec = 0,
1: - mask_write = 1,
1: - mask_read = 2,
1: - mask_append = 3,
1: + struct list_head list;
1: + int action;
1: + unsigned int flags;
1: + enum ima_hooks func;
1: + int mask;
1: + long unsigned int fsmagic;
1: + uuid_t fsuuid;
1: + kuid_t uid;
1: + kuid_t fowner;
1: + bool (*uid_op)(kuid_t, kuid_t);
1: + bool (*fowner_op)(kuid_t, kuid_t);
1: + int pcr;
1: + struct {
1: + void *rule;
1: + char *args_p;
1: + int type;
1: + } lsm[6];
1: + char *fsname;
1: + struct ima_rule_opt_list *keyrings;
1: + struct ima_template_desc *template;
1: +};
1: +
1: +enum {
1: + Opt_measure = 0,
1: + Opt_dont_measure = 1,
1: + Opt_appraise = 2,
1: + Opt_dont_appraise = 3,
1: + Opt_audit = 4,
1: + Opt_hash___2 = 5,
1: + Opt_dont_hash = 6,
1: + Opt_obj_user = 7,
1: + Opt_obj_role = 8,
1: + Opt_obj_type = 9,
1: + Opt_subj_user = 10,
1: + Opt_subj_role = 11,
1: + Opt_subj_type = 12,
1: + Opt_func = 13,
1: + Opt_mask = 14,
1: + Opt_fsmagic = 15,
1: + Opt_fsname = 16,
1: + Opt_fsuuid = 17,
1: + Opt_uid_eq = 18,
1: + Opt_euid_eq = 19,
1: + Opt_fowner_eq = 20,
1: + Opt_uid_gt = 21,
1: + Opt_euid_gt = 22,
1: + Opt_fowner_gt = 23,
1: + Opt_uid_lt = 24,
1: + Opt_euid_lt = 25,
1: + Opt_fowner_lt = 26,
1: + Opt_appraise_type = 27,
1: + Opt_appraise_flag = 28,
1: + Opt_permit_directio = 29,
1: + Opt_pcr = 30,
1: + Opt_template = 31,
1: + Opt_keyrings = 32,
1: + Opt_err___7 = 33,
1: +};
1: +
1: +enum {
1: + mask_exec = 0,
1: + mask_write = 1,
1: + mask_read = 2,
1: + mask_append = 3,
1: };
1:
1: struct ima_kexec_hdr {
1: - u16 version;
1: - u16 _reserved0;
1: - u32 _reserved1;
1: - u64 buffer_size;
1: - u64 count;
1: + u16 version;
1: + u16 _reserved0;
1: + u32 _reserved1;
1: + u64 buffer_size;
1: + u64 count;
1: };
1:
1: enum header_fields {
1: - HDR_PCR = 0,
1: - HDR_DIGEST = 1,
1: - HDR_TEMPLATE_NAME = 2,
1: - HDR_TEMPLATE_DATA = 3,
1: - HDR__LAST = 4,
1: + HDR_PCR = 0,
1: + HDR_DIGEST = 1,
1: + HDR_TEMPLATE_NAME = 2,
1: + HDR_TEMPLATE_DATA = 3,
1: + HDR__LAST = 4,
1: };
1:
1: enum data_formats {
1: - DATA_FMT_DIGEST = 0,
1: - DATA_FMT_DIGEST_WITH_ALGO = 1,
1: - DATA_FMT_STRING = 2,
1: - DATA_FMT_HEX = 3,
1: + DATA_FMT_DIGEST = 0,
1: + DATA_FMT_DIGEST_WITH_ALGO = 1,
1: + DATA_FMT_STRING = 2,
1: + DATA_FMT_HEX = 3,
1: };
1:
1: struct ima_key_entry {
1: - struct list_head list;
1: - void *payload;
1: - size_t payload_len;
1: - char *keyring_name;
1: + struct list_head list;
1: + void *payload;
1: + size_t payload_len;
1: + char *keyring_name;
1: };
1:
1: struct evm_xattr {
1: - struct evm_ima_xattr_data data;
1: - u8 digest[20];
1: + struct evm_ima_xattr_data data;
1: + u8 digest[20];
1: };
1:
1: struct xattr_list {
1: - struct list_head list;
1: - char *name;
1: + struct list_head list;
1: + char *name;
1: };
1:
1: struct evm_digest {
1: - struct ima_digest_data hdr;
1: - char digest[64];
1: + struct ima_digest_data hdr;
1: + char digest[64];
1: };
1:
1: struct h_misc {
1: - long unsigned int ino;
1: - __u32 generation;
1: - uid_t uid;
1: - gid_t gid;
1: - umode_t mode;
1: + long unsigned int ino;
1: + __u32 generation;
1: + uid_t uid;
1: + gid_t gid;
1: + umode_t mode;
1: };
1:
1: enum {
1: - CRYPTO_MSG_ALG_REQUEST = 0,
1: - CRYPTO_MSG_ALG_REGISTER = 1,
1: - CRYPTO_MSG_ALG_LOADED = 2,
1: + CRYPTO_MSG_ALG_REQUEST = 0,
1: + CRYPTO_MSG_ALG_REGISTER = 1,
1: + CRYPTO_MSG_ALG_LOADED = 2,
1: };
1:
1: struct crypto_larval {
1: - struct crypto_alg alg;
1: - struct crypto_alg *adult;
1: - struct completion completion;
1: - u32 mask;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct crypto_alg alg;
1: + struct crypto_alg *adult;
1: + struct completion completion;
1: + u32 mask;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct crypto_cipher {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: enum {
1: - CRYPTOA_UNSPEC = 0,
1: - CRYPTOA_ALG = 1,
1: - CRYPTOA_TYPE = 2,
1: - CRYPTOA_U32 = 3,
1: - __CRYPTOA_MAX = 4,
1: + CRYPTOA_UNSPEC = 0,
1: + CRYPTOA_ALG = 1,
1: + CRYPTOA_TYPE = 2,
1: + CRYPTOA_U32 = 3,
1: + __CRYPTOA_MAX = 4,
1: };
1:
1: struct crypto_attr_alg {
1: - char name[128];
1: + char name[128];
1: };
1:
1: struct crypto_attr_type {
1: - u32 type;
1: - u32 mask;
1: + u32 type;
1: + u32 mask;
1: };
1:
1: struct crypto_attr_u32 {
1: - u32 num;
1: + u32 num;
1: };
1:
1: struct rtattr {
1: - short unsigned int rta_len;
1: - short unsigned int rta_type;
1: + short unsigned int rta_len;
1: + short unsigned int rta_type;
1: };
1:
1: struct crypto_queue {
1: - struct list_head list;
1: - struct list_head *backlog;
1: - unsigned int qlen;
1: - unsigned int max_qlen;
1: + struct list_head list;
1: + struct list_head *backlog;
1: + unsigned int qlen;
1: + unsigned int max_qlen;
1: };
1:
1: enum {
1: - NAPI_STATE_SCHED = 0,
1: - NAPI_STATE_MISSED = 1,
1: - NAPI_STATE_DISABLE = 2,
1: - NAPI_STATE_NPSVC = 3,
1: - NAPI_STATE_LISTED = 4,
1: - NAPI_STATE_NO_BUSY_POLL = 5,
1: - NAPI_STATE_IN_BUSY_POLL = 6,
1: + NAPI_STATE_SCHED = 0,
1: + NAPI_STATE_MISSED = 1,
1: + NAPI_STATE_DISABLE = 2,
1: + NAPI_STATE_NPSVC = 3,
1: + NAPI_STATE_LISTED = 4,
1: + NAPI_STATE_NO_BUSY_POLL = 5,
1: + NAPI_STATE_IN_BUSY_POLL = 6,
1: };
1:
1: enum bpf_xdp_mode {
1: - XDP_MODE_SKB = 0,
1: - XDP_MODE_DRV = 1,
1: - XDP_MODE_HW = 2,
1: - __MAX_XDP_MODE = 3,
1: -};
1: -
1: -enum {
1: - NETIF_MSG_DRV_BIT = 0,
1: - NETIF_MSG_PROBE_BIT = 1,
1: - NETIF_MSG_LINK_BIT = 2,
1: - NETIF_MSG_TIMER_BIT = 3,
1: - NETIF_MSG_IFDOWN_BIT = 4,
1: - NETIF_MSG_IFUP_BIT = 5,
1: - NETIF_MSG_RX_ERR_BIT = 6,
1: - NETIF_MSG_TX_ERR_BIT = 7,
1: - NETIF_MSG_TX_QUEUED_BIT = 8,
1: - NETIF_MSG_INTR_BIT = 9,
1: - NETIF_MSG_TX_DONE_BIT = 10,
1: - NETIF_MSG_RX_STATUS_BIT = 11,
1: - NETIF_MSG_PKTDATA_BIT = 12,
1: - NETIF_MSG_HW_BIT = 13,
1: - NETIF_MSG_WOL_BIT = 14,
1: - NETIF_MSG_CLASS_COUNT = 15,
1: + XDP_MODE_SKB = 0,
1: + XDP_MODE_DRV = 1,
1: + XDP_MODE_HW = 2,
1: + __MAX_XDP_MODE = 3,
1: +};
1: +
1: +enum {
1: + NETIF_MSG_DRV_BIT = 0,
1: + NETIF_MSG_PROBE_BIT = 1,
1: + NETIF_MSG_LINK_BIT = 2,
1: + NETIF_MSG_TIMER_BIT = 3,
1: + NETIF_MSG_IFDOWN_BIT = 4,
1: + NETIF_MSG_IFUP_BIT = 5,
1: + NETIF_MSG_RX_ERR_BIT = 6,
1: + NETIF_MSG_TX_ERR_BIT = 7,
1: + NETIF_MSG_TX_QUEUED_BIT = 8,
1: + NETIF_MSG_INTR_BIT = 9,
1: + NETIF_MSG_TX_DONE_BIT = 10,
1: + NETIF_MSG_RX_STATUS_BIT = 11,
1: + NETIF_MSG_PKTDATA_BIT = 12,
1: + NETIF_MSG_HW_BIT = 13,
1: + NETIF_MSG_WOL_BIT = 14,
1: + NETIF_MSG_CLASS_COUNT = 15,
1: };
1:
1: struct scatter_walk {
1: - struct scatterlist *sg;
1: - unsigned int offset;
1: + struct scatterlist *sg;
1: + unsigned int offset;
1: };
1:
1: struct aead_request {
1: - struct crypto_async_request base;
1: - unsigned int assoclen;
1: - unsigned int cryptlen;
1: - u8 *iv;
1: - struct scatterlist *src;
1: - struct scatterlist *dst;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_async_request base;
1: + unsigned int assoclen;
1: + unsigned int cryptlen;
1: + u8 *iv;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_aead;
1:
1: struct aead_alg {
1: - int (*setkey)(struct crypto_aead *, const u8 *, unsigned int);
1: - int (*setauthsize)(struct crypto_aead *, unsigned int);
1: - int (*encrypt)(struct aead_request *);
1: - int (*decrypt)(struct aead_request *);
1: - int (*init)(struct crypto_aead *);
1: - void (*exit)(struct crypto_aead *);
1: - unsigned int ivsize;
1: - unsigned int maxauthsize;
1: - unsigned int chunksize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*setkey)(struct crypto_aead *, const u8 *, unsigned int);
1: + int (*setauthsize)(struct crypto_aead *, unsigned int);
1: + int (*encrypt)(struct aead_request *);
1: + int (*decrypt)(struct aead_request *);
1: + int (*init)(struct crypto_aead *);
1: + void (*exit)(struct crypto_aead *);
1: + unsigned int ivsize;
1: + unsigned int maxauthsize;
1: + unsigned int chunksize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct crypto_aead {
1: - unsigned int authsize;
1: - unsigned int reqsize;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_tfm base;
1: + unsigned int authsize;
1: + unsigned int reqsize;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_tfm base;
1: };
1:
1: struct aead_instance {
1: - void (*free)(struct aead_instance *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct {
1: - char head[128];
1: - struct crypto_instance base;
1: - } s;
1: - struct aead_alg alg;
1: - };
1: + void (*free)(struct aead_instance *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct aead_alg alg;
1: + };
1: };
1:
1: struct crypto_aead_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: enum crypto_attr_type_t {
1: - CRYPTOCFGA_UNSPEC = 0,
1: - CRYPTOCFGA_PRIORITY_VAL = 1,
1: - CRYPTOCFGA_REPORT_LARVAL = 2,
1: - CRYPTOCFGA_REPORT_HASH = 3,
1: - CRYPTOCFGA_REPORT_BLKCIPHER = 4,
1: - CRYPTOCFGA_REPORT_AEAD = 5,
1: - CRYPTOCFGA_REPORT_COMPRESS = 6,
1: - CRYPTOCFGA_REPORT_RNG = 7,
1: - CRYPTOCFGA_REPORT_CIPHER = 8,
1: - CRYPTOCFGA_REPORT_AKCIPHER = 9,
1: - CRYPTOCFGA_REPORT_KPP = 10,
1: - CRYPTOCFGA_REPORT_ACOMP = 11,
1: - CRYPTOCFGA_STAT_LARVAL = 12,
1: - CRYPTOCFGA_STAT_HASH = 13,
1: - CRYPTOCFGA_STAT_BLKCIPHER = 14,
1: - CRYPTOCFGA_STAT_AEAD = 15,
1: - CRYPTOCFGA_STAT_COMPRESS = 16,
1: - CRYPTOCFGA_STAT_RNG = 17,
1: - CRYPTOCFGA_STAT_CIPHER = 18,
1: - CRYPTOCFGA_STAT_AKCIPHER = 19,
1: - CRYPTOCFGA_STAT_KPP = 20,
1: - CRYPTOCFGA_STAT_ACOMP = 21,
1: - __CRYPTOCFGA_MAX = 22,
1: + CRYPTOCFGA_UNSPEC = 0,
1: + CRYPTOCFGA_PRIORITY_VAL = 1,
1: + CRYPTOCFGA_REPORT_LARVAL = 2,
1: + CRYPTOCFGA_REPORT_HASH = 3,
1: + CRYPTOCFGA_REPORT_BLKCIPHER = 4,
1: + CRYPTOCFGA_REPORT_AEAD = 5,
1: + CRYPTOCFGA_REPORT_COMPRESS = 6,
1: + CRYPTOCFGA_REPORT_RNG = 7,
1: + CRYPTOCFGA_REPORT_CIPHER = 8,
1: + CRYPTOCFGA_REPORT_AKCIPHER = 9,
1: + CRYPTOCFGA_REPORT_KPP = 10,
1: + CRYPTOCFGA_REPORT_ACOMP = 11,
1: + CRYPTOCFGA_STAT_LARVAL = 12,
1: + CRYPTOCFGA_STAT_HASH = 13,
1: + CRYPTOCFGA_STAT_BLKCIPHER = 14,
1: + CRYPTOCFGA_STAT_AEAD = 15,
1: + CRYPTOCFGA_STAT_COMPRESS = 16,
1: + CRYPTOCFGA_STAT_RNG = 17,
1: + CRYPTOCFGA_STAT_CIPHER = 18,
1: + CRYPTOCFGA_STAT_AKCIPHER = 19,
1: + CRYPTOCFGA_STAT_KPP = 20,
1: + CRYPTOCFGA_STAT_ACOMP = 21,
1: + __CRYPTOCFGA_MAX = 22,
1: };
1:
1: struct crypto_report_aead {
1: - char type[64];
1: - char geniv[64];
1: - unsigned int blocksize;
1: - unsigned int maxauthsize;
1: - unsigned int ivsize;
1: + char type[64];
1: + char geniv[64];
1: + unsigned int blocksize;
1: + unsigned int maxauthsize;
1: + unsigned int ivsize;
1: };
1:
1: struct crypto_sync_skcipher;
1:
1: struct aead_geniv_ctx {
1: - spinlock_t lock;
1: - struct crypto_aead *child;
1: - struct crypto_sync_skcipher *sknull;
1: - u8 salt[0];
1: + spinlock_t lock;
1: + struct crypto_aead *child;
1: + struct crypto_sync_skcipher *sknull;
1: + u8 salt[0];
1: };
1:
1: struct crypto_rng;
1:
1: struct rng_alg {
1: - int (*generate)(struct crypto_rng *, const u8 *, unsigned int, u8 *, unsigned int);
1: - int (*seed)(struct crypto_rng *, const u8 *, unsigned int);
1: - void (*set_ent)(struct crypto_rng *, const u8 *, unsigned int);
1: - unsigned int seedsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*generate)(struct crypto_rng *, const u8 *, unsigned int, u8 *,
1: + unsigned int);
1: + int (*seed)(struct crypto_rng *, const u8 *, unsigned int);
1: + void (*set_ent)(struct crypto_rng *, const u8 *, unsigned int);
1: + unsigned int seedsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct crypto_rng {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: struct crypto_cipher_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: struct crypto_sync_skcipher {
1: - struct crypto_skcipher base;
1: + struct crypto_skcipher base;
1: };
1:
1: struct skcipher_instance {
1: - void (*free)(struct skcipher_instance *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct {
1: - char head[128];
1: - struct crypto_instance base;
1: - } s;
1: - struct skcipher_alg alg;
1: - };
1: + void (*free)(struct skcipher_instance *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct skcipher_alg alg;
1: + };
1: };
1:
1: struct crypto_skcipher_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: struct skcipher_walk {
1: - union {
1: - struct {
1: - struct page *page;
1: - long unsigned int offset;
1: - } phys;
1: - struct {
1: - u8 *page;
1: - void *addr;
1: - } virt;
1: - } src;
1: - union {
1: - struct {
1: - struct page *page;
1: - long unsigned int offset;
1: - } phys;
1: - struct {
1: - u8 *page;
1: - void *addr;
1: - } virt;
1: - } dst;
1: - struct scatter_walk in;
1: - unsigned int nbytes;
1: - struct scatter_walk out;
1: - unsigned int total;
1: - struct list_head buffers;
1: - u8 *page;
1: - u8 *buffer;
1: - u8 *oiv;
1: - void *iv;
1: - unsigned int ivsize;
1: - int flags;
1: - unsigned int blocksize;
1: - unsigned int stride;
1: - unsigned int alignmask;
1: + union {
1: + struct {
1: + struct page *page;
1: + long unsigned int offset;
1: + } phys;
1: + struct {
1: + u8 *page;
1: + void *addr;
1: + } virt;
1: + } src;
1: + union {
1: + struct {
1: + struct page *page;
1: + long unsigned int offset;
1: + } phys;
1: + struct {
1: + u8 *page;
1: + void *addr;
1: + } virt;
1: + } dst;
1: + struct scatter_walk in;
1: + unsigned int nbytes;
1: + struct scatter_walk out;
1: + unsigned int total;
1: + struct list_head buffers;
1: + u8 *page;
1: + u8 *buffer;
1: + u8 *oiv;
1: + void *iv;
1: + unsigned int ivsize;
1: + int flags;
1: + unsigned int blocksize;
1: + unsigned int stride;
1: + unsigned int alignmask;
1: };
1:
1: struct skcipher_ctx_simple {
1: - struct crypto_cipher *cipher;
1: + struct crypto_cipher *cipher;
1: };
1:
1: struct crypto_report_blkcipher {
1: - char type[64];
1: - char geniv[64];
1: - unsigned int blocksize;
1: - unsigned int min_keysize;
1: - unsigned int max_keysize;
1: - unsigned int ivsize;
1: + char type[64];
1: + char geniv[64];
1: + unsigned int blocksize;
1: + unsigned int min_keysize;
1: + unsigned int max_keysize;
1: + unsigned int ivsize;
1: };
1:
1: enum {
1: - SKCIPHER_WALK_PHYS = 1,
1: - SKCIPHER_WALK_SLOW = 2,
1: - SKCIPHER_WALK_COPY = 4,
1: - SKCIPHER_WALK_DIFF = 8,
1: - SKCIPHER_WALK_SLEEP = 16,
1: + SKCIPHER_WALK_PHYS = 1,
1: + SKCIPHER_WALK_SLOW = 2,
1: + SKCIPHER_WALK_COPY = 4,
1: + SKCIPHER_WALK_DIFF = 8,
1: + SKCIPHER_WALK_SLEEP = 16,
1: };
1:
1: struct skcipher_walk_buffer {
1: - struct list_head entry;
1: - struct scatter_walk dst;
1: - unsigned int len;
1: - u8 *data;
1: - u8 buffer[0];
1: + struct list_head entry;
1: + struct scatter_walk dst;
1: + unsigned int len;
1: + u8 *data;
1: + u8 buffer[0];
1: };
1:
1: struct ahash_alg {
1: - int (*init)(struct ahash_request *);
1: - int (*update)(struct ahash_request *);
1: - int (*final)(struct ahash_request *);
1: - int (*finup)(struct ahash_request *);
1: - int (*digest)(struct ahash_request *);
1: - int (*export)(struct ahash_request *, void *);
1: - int (*import)(struct ahash_request *, const void *);
1: - int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: - int (*init_tfm)(struct crypto_ahash *);
1: - void (*exit_tfm)(struct crypto_ahash *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct hash_alg_common halg;
1: + int (*init)(struct ahash_request *);
1: + int (*update)(struct ahash_request *);
1: + int (*final)(struct ahash_request *);
1: + int (*finup)(struct ahash_request *);
1: + int (*digest)(struct ahash_request *);
1: + int (*export)(struct ahash_request *, void *);
1: + int (*import)(struct ahash_request *, const void *);
1: + int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: + int (*init_tfm)(struct crypto_ahash *);
1: + void (*exit_tfm)(struct crypto_ahash *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct hash_alg_common halg;
1: };
1:
1: struct crypto_hash_walk {
1: - char *data;
1: - unsigned int offset;
1: - unsigned int alignmask;
1: - struct page *pg;
1: - unsigned int entrylen;
1: - unsigned int total;
1: - struct scatterlist *sg;
1: - unsigned int flags;
1: + char *data;
1: + unsigned int offset;
1: + unsigned int alignmask;
1: + struct page *pg;
1: + unsigned int entrylen;
1: + unsigned int total;
1: + struct scatterlist *sg;
1: + unsigned int flags;
1: };
1:
1: struct ahash_instance {
1: - void (*free)(struct ahash_instance *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct {
1: - char head[256];
1: - struct crypto_instance base;
1: - } s;
1: - struct ahash_alg alg;
1: - };
1: + void (*free)(struct ahash_instance *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct {
1: + char head[256];
1: + struct crypto_instance base;
1: + } s;
1: + struct ahash_alg alg;
1: + };
1: };
1:
1: struct crypto_ahash_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: struct crypto_report_hash {
1: - char type[64];
1: - unsigned int blocksize;
1: - unsigned int digestsize;
1: + char type[64];
1: + unsigned int blocksize;
1: + unsigned int digestsize;
1: };
1:
1: struct ahash_request_priv {
1: - crypto_completion_t complete;
1: - void *data;
1: - u8 *result;
1: - u32 flags;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *ubuf[0];
1: + crypto_completion_t complete;
1: + void *data;
1: + u8 *result;
1: + u32 flags;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *ubuf[0];
1: };
1:
1: struct shash_instance {
1: - void (*free)(struct shash_instance *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct {
1: - char head[256];
1: - struct crypto_instance base;
1: - } s;
1: - struct shash_alg alg;
1: - };
1: + void (*free)(struct shash_instance *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct {
1: + char head[256];
1: + struct crypto_instance base;
1: + } s;
1: + struct shash_alg alg;
1: + };
1: };
1:
1: struct crypto_shash_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: struct crypto_report_akcipher {
1: - char type[64];
1: + char type[64];
1: };
1:
1: struct akcipher_request {
1: - struct crypto_async_request base;
1: - struct scatterlist *src;
1: - struct scatterlist *dst;
1: - unsigned int src_len;
1: - unsigned int dst_len;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int src_len;
1: + unsigned int dst_len;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_akcipher {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: struct akcipher_alg {
1: - int (*sign)(struct akcipher_request *);
1: - int (*verify)(struct akcipher_request *);
1: - int (*encrypt)(struct akcipher_request *);
1: - int (*decrypt)(struct akcipher_request *);
1: - int (*set_pub_key)(struct crypto_akcipher *, const void *, unsigned int);
1: - int (*set_priv_key)(struct crypto_akcipher *, const void *, unsigned int);
1: - unsigned int (*max_size)(struct crypto_akcipher *);
1: - int (*init)(struct crypto_akcipher *);
1: - void (*exit)(struct crypto_akcipher *);
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*sign)(struct akcipher_request *);
1: + int (*verify)(struct akcipher_request *);
1: + int (*encrypt)(struct akcipher_request *);
1: + int (*decrypt)(struct akcipher_request *);
1: + int (*set_pub_key)(struct crypto_akcipher *, const void *, unsigned int);
1: + int (*set_priv_key)(struct crypto_akcipher *, const void *, unsigned int);
1: + unsigned int (*max_size)(struct crypto_akcipher *);
1: + int (*init)(struct crypto_akcipher *);
1: + void (*exit)(struct crypto_akcipher *);
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct akcipher_instance {
1: - void (*free)(struct akcipher_instance *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct {
1: - char head[128];
1: - struct crypto_instance base;
1: - } s;
1: - struct akcipher_alg alg;
1: - };
1: + void (*free)(struct akcipher_instance *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct {
1: + char head[128];
1: + struct crypto_instance base;
1: + } s;
1: + struct akcipher_alg alg;
1: + };
1: };
1:
1: struct crypto_akcipher_spawn {
1: - struct crypto_spawn base;
1: + struct crypto_spawn base;
1: };
1:
1: struct crypto_report_kpp {
1: - char type[64];
1: + char type[64];
1: };
1:
1: struct kpp_request {
1: - struct crypto_async_request base;
1: - struct scatterlist *src;
1: - struct scatterlist *dst;
1: - unsigned int src_len;
1: - unsigned int dst_len;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int src_len;
1: + unsigned int dst_len;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_kpp {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: struct kpp_alg {
1: - int (*set_secret)(struct crypto_kpp *, const void *, unsigned int);
1: - int (*generate_public_key)(struct kpp_request *);
1: - int (*compute_shared_secret)(struct kpp_request *);
1: - unsigned int (*max_size)(struct crypto_kpp *);
1: - int (*init)(struct crypto_kpp *);
1: - void (*exit)(struct crypto_kpp *);
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*set_secret)(struct crypto_kpp *, const void *, unsigned int);
1: + int (*generate_public_key)(struct kpp_request *);
1: + int (*compute_shared_secret)(struct kpp_request *);
1: + unsigned int (*max_size)(struct crypto_kpp *);
1: + int (*init)(struct crypto_kpp *);
1: + void (*exit)(struct crypto_kpp *);
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: enum asn1_class {
1: - ASN1_UNIV = 0,
1: - ASN1_APPL = 1,
1: - ASN1_CONT = 2,
1: - ASN1_PRIV = 3,
1: + ASN1_UNIV = 0,
1: + ASN1_APPL = 1,
1: + ASN1_CONT = 2,
1: + ASN1_PRIV = 3,
1: };
1:
1: enum asn1_method {
1: - ASN1_PRIM = 0,
1: - ASN1_CONS = 1,
1: + ASN1_PRIM = 0,
1: + ASN1_CONS = 1,
1: };
1:
1: enum asn1_tag {
1: - ASN1_EOC = 0,
1: - ASN1_BOOL = 1,
1: - ASN1_INT = 2,
1: - ASN1_BTS = 3,
1: - ASN1_OTS = 4,
1: - ASN1_NULL = 5,
1: - ASN1_OID = 6,
1: - ASN1_ODE = 7,
1: - ASN1_EXT = 8,
1: - ASN1_REAL = 9,
1: - ASN1_ENUM = 10,
1: - ASN1_EPDV = 11,
1: - ASN1_UTF8STR = 12,
1: - ASN1_RELOID = 13,
1: - ASN1_SEQ = 16,
1: - ASN1_SET = 17,
1: - ASN1_NUMSTR = 18,
1: - ASN1_PRNSTR = 19,
1: - ASN1_TEXSTR = 20,
1: - ASN1_VIDSTR = 21,
1: - ASN1_IA5STR = 22,
1: - ASN1_UNITIM = 23,
1: - ASN1_GENTIM = 24,
1: - ASN1_GRASTR = 25,
1: - ASN1_VISSTR = 26,
1: - ASN1_GENSTR = 27,
1: - ASN1_UNISTR = 28,
1: - ASN1_CHRSTR = 29,
1: - ASN1_BMPSTR = 30,
1: - ASN1_LONG_TAG = 31,
1: -};
1: -
1: -typedef int (*asn1_action_t)(void *, size_t, unsigned char, const void *, size_t);
1: + ASN1_EOC = 0,
1: + ASN1_BOOL = 1,
1: + ASN1_INT = 2,
1: + ASN1_BTS = 3,
1: + ASN1_OTS = 4,
1: + ASN1_NULL = 5,
1: + ASN1_OID = 6,
1: + ASN1_ODE = 7,
1: + ASN1_EXT = 8,
1: + ASN1_REAL = 9,
1: + ASN1_ENUM = 10,
1: + ASN1_EPDV = 11,
1: + ASN1_UTF8STR = 12,
1: + ASN1_RELOID = 13,
1: + ASN1_SEQ = 16,
1: + ASN1_SET = 17,
1: + ASN1_NUMSTR = 18,
1: + ASN1_PRNSTR = 19,
1: + ASN1_TEXSTR = 20,
1: + ASN1_VIDSTR = 21,
1: + ASN1_IA5STR = 22,
1: + ASN1_UNITIM = 23,
1: + ASN1_GENTIM = 24,
1: + ASN1_GRASTR = 25,
1: + ASN1_VISSTR = 26,
1: + ASN1_GENSTR = 27,
1: + ASN1_UNISTR = 28,
1: + ASN1_CHRSTR = 29,
1: + ASN1_BMPSTR = 30,
1: + ASN1_LONG_TAG = 31,
1: +};
1: +
1: +typedef int (*asn1_action_t)(void *, size_t, unsigned char, const void *,
1: + size_t);
1:
1: struct asn1_decoder {
1: - const unsigned char *machine;
1: - size_t machlen;
1: - const asn1_action_t *actions;
1: + const unsigned char *machine;
1: + size_t machlen;
1: + const asn1_action_t *actions;
1: };
1:
1: enum asn1_opcode {
1: - ASN1_OP_MATCH = 0,
1: - ASN1_OP_MATCH_OR_SKIP = 1,
1: - ASN1_OP_MATCH_ACT = 2,
1: - ASN1_OP_MATCH_ACT_OR_SKIP = 3,
1: - ASN1_OP_MATCH_JUMP = 4,
1: - ASN1_OP_MATCH_JUMP_OR_SKIP = 5,
1: - ASN1_OP_MATCH_ANY = 8,
1: - ASN1_OP_MATCH_ANY_OR_SKIP = 9,
1: - ASN1_OP_MATCH_ANY_ACT = 10,
1: - ASN1_OP_MATCH_ANY_ACT_OR_SKIP = 11,
1: - ASN1_OP_COND_MATCH_OR_SKIP = 17,
1: - ASN1_OP_COND_MATCH_ACT_OR_SKIP = 19,
1: - ASN1_OP_COND_MATCH_JUMP_OR_SKIP = 21,
1: - ASN1_OP_COND_MATCH_ANY = 24,
1: - ASN1_OP_COND_MATCH_ANY_OR_SKIP = 25,
1: - ASN1_OP_COND_MATCH_ANY_ACT = 26,
1: - ASN1_OP_COND_MATCH_ANY_ACT_OR_SKIP = 27,
1: - ASN1_OP_COND_FAIL = 28,
1: - ASN1_OP_COMPLETE = 29,
1: - ASN1_OP_ACT = 30,
1: - ASN1_OP_MAYBE_ACT = 31,
1: - ASN1_OP_END_SEQ = 32,
1: - ASN1_OP_END_SET = 33,
1: - ASN1_OP_END_SEQ_OF = 34,
1: - ASN1_OP_END_SET_OF = 35,
1: - ASN1_OP_END_SEQ_ACT = 36,
1: - ASN1_OP_END_SET_ACT = 37,
1: - ASN1_OP_END_SEQ_OF_ACT = 38,
1: - ASN1_OP_END_SET_OF_ACT = 39,
1: - ASN1_OP_RETURN = 40,
1: - ASN1_OP__NR = 41,
1: + ASN1_OP_MATCH = 0,
1: + ASN1_OP_MATCH_OR_SKIP = 1,
1: + ASN1_OP_MATCH_ACT = 2,
1: + ASN1_OP_MATCH_ACT_OR_SKIP = 3,
1: + ASN1_OP_MATCH_JUMP = 4,
1: + ASN1_OP_MATCH_JUMP_OR_SKIP = 5,
1: + ASN1_OP_MATCH_ANY = 8,
1: + ASN1_OP_MATCH_ANY_OR_SKIP = 9,
1: + ASN1_OP_MATCH_ANY_ACT = 10,
1: + ASN1_OP_MATCH_ANY_ACT_OR_SKIP = 11,
1: + ASN1_OP_COND_MATCH_OR_SKIP = 17,
1: + ASN1_OP_COND_MATCH_ACT_OR_SKIP = 19,
1: + ASN1_OP_COND_MATCH_JUMP_OR_SKIP = 21,
1: + ASN1_OP_COND_MATCH_ANY = 24,
1: + ASN1_OP_COND_MATCH_ANY_OR_SKIP = 25,
1: + ASN1_OP_COND_MATCH_ANY_ACT = 26,
1: + ASN1_OP_COND_MATCH_ANY_ACT_OR_SKIP = 27,
1: + ASN1_OP_COND_FAIL = 28,
1: + ASN1_OP_COMPLETE = 29,
1: + ASN1_OP_ACT = 30,
1: + ASN1_OP_MAYBE_ACT = 31,
1: + ASN1_OP_END_SEQ = 32,
1: + ASN1_OP_END_SET = 33,
1: + ASN1_OP_END_SEQ_OF = 34,
1: + ASN1_OP_END_SET_OF = 35,
1: + ASN1_OP_END_SEQ_ACT = 36,
1: + ASN1_OP_END_SET_ACT = 37,
1: + ASN1_OP_END_SEQ_OF_ACT = 38,
1: + ASN1_OP_END_SET_OF_ACT = 39,
1: + ASN1_OP_RETURN = 40,
1: + ASN1_OP__NR = 41,
1: };
1:
1: enum rsapubkey_actions {
1: - ACT_rsa_get_e = 0,
1: - ACT_rsa_get_n = 1,
1: - NR__rsapubkey_actions = 2,
1: + ACT_rsa_get_e = 0,
1: + ACT_rsa_get_n = 1,
1: + NR__rsapubkey_actions = 2,
1: };
1:
1: enum rsaprivkey_actions {
1: - ACT_rsa_get_d = 0,
1: - ACT_rsa_get_dp = 1,
1: - ACT_rsa_get_dq = 2,
1: - ACT_rsa_get_e___2 = 3,
1: - ACT_rsa_get_n___2 = 4,
1: - ACT_rsa_get_p = 5,
1: - ACT_rsa_get_q = 6,
1: - ACT_rsa_get_qinv = 7,
1: - NR__rsaprivkey_actions = 8,
1: + ACT_rsa_get_d = 0,
1: + ACT_rsa_get_dp = 1,
1: + ACT_rsa_get_dq = 2,
1: + ACT_rsa_get_e___2 = 3,
1: + ACT_rsa_get_n___2 = 4,
1: + ACT_rsa_get_p = 5,
1: + ACT_rsa_get_q = 6,
1: + ACT_rsa_get_qinv = 7,
1: + NR__rsaprivkey_actions = 8,
1: };
1:
1: typedef long unsigned int mpi_limb_t;
1:
1: struct gcry_mpi {
1: - int alloced;
1: - int nlimbs;
1: - int nbits;
1: - int sign;
1: - unsigned int flags;
1: - mpi_limb_t *d;
1: + int alloced;
1: + int nlimbs;
1: + int nbits;
1: + int sign;
1: + unsigned int flags;
1: + mpi_limb_t *d;
1: };
1:
1: typedef struct gcry_mpi *MPI;
1:
1: struct rsa_key {
1: - const u8 *n;
1: - const u8 *e;
1: - const u8 *d;
1: - const u8 *p;
1: - const u8 *q;
1: - const u8 *dp;
1: - const u8 *dq;
1: - const u8 *qinv;
1: - size_t n_sz;
1: - size_t e_sz;
1: - size_t d_sz;
1: - size_t p_sz;
1: - size_t q_sz;
1: - size_t dp_sz;
1: - size_t dq_sz;
1: - size_t qinv_sz;
1: + const u8 *n;
1: + const u8 *e;
1: + const u8 *d;
1: + const u8 *p;
1: + const u8 *q;
1: + const u8 *dp;
1: + const u8 *dq;
1: + const u8 *qinv;
1: + size_t n_sz;
1: + size_t e_sz;
1: + size_t d_sz;
1: + size_t p_sz;
1: + size_t q_sz;
1: + size_t dp_sz;
1: + size_t dq_sz;
1: + size_t qinv_sz;
1: };
1:
1: struct rsa_mpi_key {
1: - MPI n;
1: - MPI e;
1: - MPI d;
1: + MPI n;
1: + MPI e;
1: + MPI d;
1: };
1:
1: struct asn1_decoder___2;
1:
1: struct rsa_asn1_template {
1: - const char *name;
1: - const u8 *data;
1: - size_t size;
1: + const char *name;
1: + const u8 *data;
1: + size_t size;
1: };
1:
1: struct pkcs1pad_ctx {
1: - struct crypto_akcipher *child;
1: - unsigned int key_size;
1: + struct crypto_akcipher *child;
1: + unsigned int key_size;
1: };
1:
1: struct pkcs1pad_inst_ctx {
1: - struct crypto_akcipher_spawn spawn;
1: - const struct rsa_asn1_template *digest_info;
1: + struct crypto_akcipher_spawn spawn;
1: + const struct rsa_asn1_template *digest_info;
1: };
1:
1: struct pkcs1pad_request {
1: - struct scatterlist in_sg[2];
1: - struct scatterlist out_sg[1];
1: - uint8_t *in_buf;
1: - uint8_t *out_buf;
1: - long: 64;
1: - long: 64;
1: - struct akcipher_request child_req;
1: + struct scatterlist in_sg[2];
1: + struct scatterlist out_sg[1];
1: + uint8_t *in_buf;
1: + uint8_t *out_buf;
1: + long : 64;
1: + long : 64;
1: + struct akcipher_request child_req;
1: };
1:
1: struct crypto_report_acomp {
1: - char type[64];
1: + char type[64];
1: };
1:
1: struct acomp_req {
1: - struct crypto_async_request base;
1: - struct scatterlist *src;
1: - struct scatterlist *dst;
1: - unsigned int slen;
1: - unsigned int dlen;
1: - u32 flags;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - void *__ctx[0];
1: + struct crypto_async_request base;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + unsigned int slen;
1: + unsigned int dlen;
1: + u32 flags;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + void *__ctx[0];
1: };
1:
1: struct crypto_acomp {
1: - int (*compress)(struct acomp_req *);
1: - int (*decompress)(struct acomp_req *);
1: - void (*dst_free)(struct scatterlist *);
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_tfm base;
1: + int (*compress)(struct acomp_req *);
1: + int (*decompress)(struct acomp_req *);
1: + void (*dst_free)(struct scatterlist *);
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_tfm base;
1: };
1:
1: struct acomp_alg {
1: - int (*compress)(struct acomp_req *);
1: - int (*decompress)(struct acomp_req *);
1: - void (*dst_free)(struct scatterlist *);
1: - int (*init)(struct crypto_acomp *);
1: - void (*exit)(struct crypto_acomp *);
1: - unsigned int reqsize;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + int (*compress)(struct acomp_req *);
1: + int (*decompress)(struct acomp_req *);
1: + void (*dst_free)(struct scatterlist *);
1: + int (*init)(struct crypto_acomp *);
1: + void (*exit)(struct crypto_acomp *);
1: + unsigned int reqsize;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct crypto_report_comp {
1: - char type[64];
1: + char type[64];
1: };
1:
1: struct crypto_scomp {
1: - struct crypto_tfm base;
1: + struct crypto_tfm base;
1: };
1:
1: struct scomp_alg {
1: - void * (*alloc_ctx)(struct crypto_scomp *);
1: - void (*free_ctx)(struct crypto_scomp *, void *);
1: - int (*compress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *, unsigned int *, void *);
1: - int (*decompress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *, unsigned int *, void *);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct crypto_alg base;
1: + void *(*alloc_ctx)(struct crypto_scomp *);
1: + void (*free_ctx)(struct crypto_scomp *, void *);
1: + int (*compress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *,
1: + unsigned int *, void *);
1: + int (*decompress)(struct crypto_scomp *, const u8 *, unsigned int, u8 *,
1: + unsigned int *, void *);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct crypto_alg base;
1: };
1:
1: struct scomp_scratch {
1: - spinlock_t lock;
1: - void *src;
1: - void *dst;
1: + spinlock_t lock;
1: + void *src;
1: + void *dst;
1: };
1:
1: struct cryptomgr_param {
1: - struct rtattr *tb[34];
1: - struct {
1: - struct rtattr attr;
1: - struct crypto_attr_type data;
1: - } type;
1: - union {
1: - struct rtattr attr;
1: - struct {
1: - struct rtattr attr;
1: - struct crypto_attr_alg data;
1: - } alg;
1: - struct {
1: - struct rtattr attr;
1: - struct crypto_attr_u32 data;
1: - } nu32;
1: - } attrs[32];
1: - char template[128];
1: - struct crypto_larval *larval;
1: - u32 otype;
1: - u32 omask;
1: + struct rtattr *tb[34];
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_type data;
1: + } type;
1: + union {
1: + struct rtattr attr;
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_alg data;
1: + } alg;
1: + struct {
1: + struct rtattr attr;
1: + struct crypto_attr_u32 data;
1: + } nu32;
1: + } attrs[32];
1: + char template[128];
1: + struct crypto_larval *larval;
1: + u32 otype;
1: + u32 omask;
1: };
1:
1: struct crypto_test_param {
1: - char driver[128];
1: - char alg[128];
1: - u32 type;
1: + char driver[128];
1: + char alg[128];
1: + u32 type;
1: };
1:
1: struct hmac_ctx {
1: - struct crypto_shash *hash;
1: + struct crypto_shash *hash;
1: };
1:
1: struct md5_state {
1: - u32 hash[4];
1: - u32 block[16];
1: - u64 byte_count;
1: + u32 hash[4];
1: + u32 block[16];
1: + u64 byte_count;
1: };
1:
1: struct sha1_state {
1: - u32 state[5];
1: - u64 count;
1: - u8 buffer[64];
1: + u32 state[5];
1: + u64 count;
1: + u8 buffer[64];
1: };
1:
1: typedef void sha1_block_fn(struct sha1_state *, const u8 *, int);
1:
1: struct sha256_state {
1: - u32 state[8];
1: - u64 count;
1: - u8 buf[64];
1: + u32 state[8];
1: + u64 count;
1: + u8 buf[64];
1: };
1:
1: struct sha512_state {
1: - u64 state[8];
1: - u64 count[2];
1: - u8 buf[128];
1: + u64 state[8];
1: + u64 count[2];
1: + u8 buf[128];
1: };
1:
1: typedef void sha512_block_fn(struct sha512_state *, const u8 *, int);
1:
1: typedef struct {
1: - u64 a;
1: - u64 b;
1: + u64 a;
1: + u64 b;
1: } u128;
1:
1: typedef struct {
1: - __be64 a;
1: - __be64 b;
1: + __be64 a;
1: + __be64 b;
1: } be128;
1:
1: typedef struct {
1: - __le64 b;
1: - __le64 a;
1: + __le64 b;
1: + __le64 a;
1: } le128;
1:
1: struct gf128mul_4k {
1: - be128 t[256];
1: + be128 t[256];
1: };
1:
1: struct gf128mul_64k {
1: - struct gf128mul_4k *t[16];
1: + struct gf128mul_4k *t[16];
1: };
1:
1: struct crypto_cts_ctx {
1: - struct crypto_skcipher *child;
1: + struct crypto_skcipher *child;
1: };
1:
1: struct crypto_cts_reqctx {
1: - struct scatterlist sg[2];
1: - unsigned int offset;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct skcipher_request subreq;
1: + struct scatterlist sg[2];
1: + unsigned int offset;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct skcipher_request subreq;
1: };
1:
1: struct xts_tfm_ctx {
1: - struct crypto_skcipher *child;
1: - struct crypto_cipher *tweak;
1: + struct crypto_skcipher *child;
1: + struct crypto_cipher *tweak;
1: };
1:
1: struct xts_instance_ctx {
1: - struct crypto_skcipher_spawn spawn;
1: - char name[128];
1: + struct crypto_skcipher_spawn spawn;
1: + char name[128];
1: };
1:
1: struct xts_request_ctx {
1: - le128 t;
1: - struct scatterlist *tail;
1: - struct scatterlist sg[2];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct skcipher_request subreq;
1: + le128 t;
1: + struct scatterlist *tail;
1: + struct scatterlist sg[2];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct skcipher_request subreq;
1: };
1:
1: struct crypto_rfc3686_ctx {
1: - struct crypto_skcipher *child;
1: - u8 nonce[4];
1: + struct crypto_skcipher *child;
1: + u8 nonce[4];
1: };
1:
1: struct crypto_rfc3686_req_ctx {
1: - u8 iv[16];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct skcipher_request subreq;
1: + u8 iv[16];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct skcipher_request subreq;
1: };
1:
1: struct gcm_instance_ctx {
1: - struct crypto_skcipher_spawn ctr;
1: - struct crypto_ahash_spawn ghash;
1: + struct crypto_skcipher_spawn ctr;
1: + struct crypto_ahash_spawn ghash;
1: };
1:
1: struct crypto_gcm_ctx {
1: - struct crypto_skcipher *ctr;
1: - struct crypto_ahash *ghash;
1: + struct crypto_skcipher *ctr;
1: + struct crypto_ahash *ghash;
1: };
1:
1: struct crypto_rfc4106_ctx {
1: - struct crypto_aead *child;
1: - u8 nonce[4];
1: + struct crypto_aead *child;
1: + u8 nonce[4];
1: };
1:
1: struct crypto_rfc4106_req_ctx {
1: - struct scatterlist src[3];
1: - struct scatterlist dst[3];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct aead_request subreq;
1: + struct scatterlist src[3];
1: + struct scatterlist dst[3];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct aead_request subreq;
1: };
1:
1: struct crypto_rfc4543_instance_ctx {
1: - struct crypto_aead_spawn aead;
1: + struct crypto_aead_spawn aead;
1: };
1:
1: struct crypto_rfc4543_ctx {
1: - struct crypto_aead *child;
1: - struct crypto_sync_skcipher *null;
1: - u8 nonce[4];
1: + struct crypto_aead *child;
1: + struct crypto_sync_skcipher *null;
1: + u8 nonce[4];
1: };
1:
1: struct crypto_rfc4543_req_ctx {
1: - struct aead_request subreq;
1: + struct aead_request subreq;
1: };
1:
1: struct crypto_gcm_ghash_ctx {
1: - unsigned int cryptlen;
1: - struct scatterlist *src;
1: - int (*complete)(struct aead_request *, u32);
1: + unsigned int cryptlen;
1: + struct scatterlist *src;
1: + int (*complete)(struct aead_request *, u32);
1: };
1:
1: struct crypto_gcm_req_priv_ctx {
1: - u8 iv[16];
1: - u8 auth_tag[16];
1: - u8 iauth_tag[16];
1: - struct scatterlist src[3];
1: - struct scatterlist dst[3];
1: - struct scatterlist sg;
1: - struct crypto_gcm_ghash_ctx ghash_ctx;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - union {
1: - struct ahash_request ahreq;
1: - struct skcipher_request skreq;
1: - } u;
1: + u8 iv[16];
1: + u8 auth_tag[16];
1: + u8 iauth_tag[16];
1: + struct scatterlist src[3];
1: + struct scatterlist dst[3];
1: + struct scatterlist sg;
1: + struct crypto_gcm_ghash_ctx ghash_ctx;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + union {
1: + struct ahash_request ahreq;
1: + struct skcipher_request skreq;
1: + } u;
1: };
1:
1: struct crypto_aes_ctx {
1: - u32 key_enc[60];
1: - u32 key_dec[60];
1: - u32 key_length;
1: + u32 key_enc[60];
1: + u32 key_dec[60];
1: + u32 key_length;
1: };
1:
1: struct chksum_ctx {
1: - u32 key;
1: + u32 key;
1: };
1:
1: struct chksum_desc_ctx {
1: - u32 crc;
1: + u32 crc;
1: };
1:
1: struct chksum_desc_ctx___2 {
1: - __u16 crc;
1: + __u16 crc;
1: };
1:
1: struct lzo_ctx {
1: - void *lzo_comp_mem;
1: + void *lzo_comp_mem;
1: };
1:
1: struct lzorle_ctx {
1: - void *lzorle_comp_mem;
1: + void *lzorle_comp_mem;
1: };
1:
1: struct crypto_report_rng {
1: - char type[64];
1: - unsigned int seedsize;
1: + char type[64];
1: + unsigned int seedsize;
1: };
1:
1: struct random_ready_callback {
1: - struct list_head list;
1: - void (*func)(struct random_ready_callback *);
1: - struct module *owner;
1: + struct list_head list;
1: + void (*func)(struct random_ready_callback *);
1: + struct module *owner;
1: };
1:
1: struct drbg_string {
1: - const unsigned char *buf;
1: - size_t len;
1: - struct list_head list;
1: + const unsigned char *buf;
1: + size_t len;
1: + struct list_head list;
1: };
1:
1: typedef uint32_t drbg_flag_t;
1:
1: struct drbg_core {
1: - drbg_flag_t flags;
1: - __u8 statelen;
1: - __u8 blocklen_bytes;
1: - char cra_name[128];
1: - char backend_cra_name[128];
1: + drbg_flag_t flags;
1: + __u8 statelen;
1: + __u8 blocklen_bytes;
1: + char cra_name[128];
1: + char backend_cra_name[128];
1: };
1:
1: struct drbg_state;
1:
1: struct drbg_state_ops {
1: - int (*update)(struct drbg_state *, struct list_head *, int);
1: - int (*generate)(struct drbg_state *, unsigned char *, unsigned int, struct list_head *);
1: - int (*crypto_init)(struct drbg_state *);
1: - int (*crypto_fini)(struct drbg_state *);
1: + int (*update)(struct drbg_state *, struct list_head *, int);
1: + int (*generate)(struct drbg_state *, unsigned char *, unsigned int,
1: + struct list_head *);
1: + int (*crypto_init)(struct drbg_state *);
1: + int (*crypto_fini)(struct drbg_state *);
1: };
1:
1: struct drbg_state {
1: - struct mutex drbg_mutex;
1: - unsigned char *V;
1: - unsigned char *Vbuf;
1: - unsigned char *C;
1: - unsigned char *Cbuf;
1: - size_t reseed_ctr;
1: - size_t reseed_threshold;
1: - unsigned char *scratchpad;
1: - unsigned char *scratchpadbuf;
1: - void *priv_data;
1: - struct crypto_skcipher *ctr_handle;
1: - struct skcipher_request *ctr_req;
1: - __u8 *outscratchpadbuf;
1: - __u8 *outscratchpad;
1: - struct crypto_wait ctr_wait;
1: - struct scatterlist sg_in;
1: - struct scatterlist sg_out;
1: - bool seeded;
1: - bool pr;
1: - bool fips_primed;
1: - unsigned char *prev;
1: - struct work_struct seed_work;
1: - struct crypto_rng *jent;
1: - const struct drbg_state_ops *d_ops;
1: - const struct drbg_core *core;
1: - struct drbg_string test_data;
1: - struct random_ready_callback random_ready;
1: + struct mutex drbg_mutex;
1: + unsigned char *V;
1: + unsigned char *Vbuf;
1: + unsigned char *C;
1: + unsigned char *Cbuf;
1: + size_t reseed_ctr;
1: + size_t reseed_threshold;
1: + unsigned char *scratchpad;
1: + unsigned char *scratchpadbuf;
1: + void *priv_data;
1: + struct crypto_skcipher *ctr_handle;
1: + struct skcipher_request *ctr_req;
1: + __u8 *outscratchpadbuf;
1: + __u8 *outscratchpad;
1: + struct crypto_wait ctr_wait;
1: + struct scatterlist sg_in;
1: + struct scatterlist sg_out;
1: + bool seeded;
1: + bool pr;
1: + bool fips_primed;
1: + unsigned char *prev;
1: + struct work_struct seed_work;
1: + struct crypto_rng *jent;
1: + const struct drbg_state_ops *d_ops;
1: + const struct drbg_core *core;
1: + struct drbg_string test_data;
1: + struct random_ready_callback random_ready;
1: };
1:
1: enum drbg_prefixes {
1: - DRBG_PREFIX0 = 0,
1: - DRBG_PREFIX1 = 1,
1: - DRBG_PREFIX2 = 2,
1: - DRBG_PREFIX3 = 3,
1: + DRBG_PREFIX0 = 0,
1: + DRBG_PREFIX1 = 1,
1: + DRBG_PREFIX2 = 2,
1: + DRBG_PREFIX3 = 3,
1: };
1:
1: struct sdesc {
1: - struct shash_desc shash;
1: - char ctx[0];
1: + struct shash_desc shash;
1: + char ctx[0];
1: };
1:
1: struct s {
1: - __be32 conv;
1: + __be32 conv;
1: };
1:
1: struct rand_data {
1: - __u64 data;
1: - __u64 old_data;
1: - __u64 prev_time;
1: - __u64 last_delta;
1: - __s64 last_delta2;
1: - unsigned int osr;
1: - unsigned char *mem;
1: - unsigned int memlocation;
1: - unsigned int memblocks;
1: - unsigned int memblocksize;
1: - unsigned int memaccessloops;
1: - int rct_count;
1: - unsigned int apt_observations;
1: - unsigned int apt_count;
1: - unsigned int apt_base;
1: - unsigned int apt_base_set: 1;
1: - unsigned int health_failure: 1;
1: + __u64 data;
1: + __u64 old_data;
1: + __u64 prev_time;
1: + __u64 last_delta;
1: + __s64 last_delta2;
1: + unsigned int osr;
1: + unsigned char *mem;
1: + unsigned int memlocation;
1: + unsigned int memblocks;
1: + unsigned int memblocksize;
1: + unsigned int memaccessloops;
1: + int rct_count;
1: + unsigned int apt_observations;
1: + unsigned int apt_count;
1: + unsigned int apt_base;
1: + unsigned int apt_base_set : 1;
1: + unsigned int health_failure : 1;
1: };
1:
1: struct rand_data___2;
1:
1: struct jitterentropy {
1: - spinlock_t jent_lock;
1: - struct rand_data___2 *entropy_collector;
1: - unsigned int reset_cnt;
1: + spinlock_t jent_lock;
1: + struct rand_data___2 *entropy_collector;
1: + unsigned int reset_cnt;
1: };
1:
1: struct ghash_ctx {
1: - struct gf128mul_4k *gf128;
1: + struct gf128mul_4k *gf128;
1: };
1:
1: struct ghash_desc_ctx {
1: - u8 buffer[16];
1: - u32 bytes;
1: + u8 buffer[16];
1: + u32 bytes;
1: };
1:
1: typedef enum {
1: - ZSTD_fast = 0,
1: - ZSTD_dfast = 1,
1: - ZSTD_greedy = 2,
1: - ZSTD_lazy = 3,
1: - ZSTD_lazy2 = 4,
1: - ZSTD_btlazy2 = 5,
1: - ZSTD_btopt = 6,
1: - ZSTD_btopt2 = 7,
1: + ZSTD_fast = 0,
1: + ZSTD_dfast = 1,
1: + ZSTD_greedy = 2,
1: + ZSTD_lazy = 3,
1: + ZSTD_lazy2 = 4,
1: + ZSTD_btlazy2 = 5,
1: + ZSTD_btopt = 6,
1: + ZSTD_btopt2 = 7,
1: } ZSTD_strategy;
1:
1: typedef struct {
1: - unsigned int windowLog;
1: - unsigned int chainLog;
1: - unsigned int hashLog;
1: - unsigned int searchLog;
1: - unsigned int searchLength;
1: - unsigned int targetLength;
1: - ZSTD_strategy strategy;
1: + unsigned int windowLog;
1: + unsigned int chainLog;
1: + unsigned int hashLog;
1: + unsigned int searchLog;
1: + unsigned int searchLength;
1: + unsigned int targetLength;
1: + ZSTD_strategy strategy;
1: } ZSTD_compressionParameters;
1:
1: typedef struct {
1: - unsigned int contentSizeFlag;
1: - unsigned int checksumFlag;
1: - unsigned int noDictIDFlag;
1: + unsigned int contentSizeFlag;
1: + unsigned int checksumFlag;
1: + unsigned int noDictIDFlag;
1: } ZSTD_frameParameters;
1:
1: typedef struct {
1: - ZSTD_compressionParameters cParams;
1: - ZSTD_frameParameters fParams;
1: + ZSTD_compressionParameters cParams;
1: + ZSTD_frameParameters fParams;
1: } ZSTD_parameters;
1:
1: struct ZSTD_CCtx_s;
1: @@ -52472,361 +53276,362 @@ struct ZSTD_DCtx_s;
1: typedef struct ZSTD_DCtx_s ZSTD_DCtx;
1:
1: struct zstd_ctx {
1: - ZSTD_CCtx *cctx;
1: - ZSTD_DCtx *dctx;
1: - void *cwksp;
1: - void *dwksp;
1: + ZSTD_CCtx *cctx;
1: + ZSTD_DCtx *dctx;
1: + void *cwksp;
1: + void *dwksp;
1: };
1:
1: enum asymmetric_payload_bits {
1: - asym_crypto = 0,
1: - asym_subtype = 1,
1: - asym_key_ids = 2,
1: - asym_auth = 3,
1: + asym_crypto = 0,
1: + asym_subtype = 1,
1: + asym_key_ids = 2,
1: + asym_auth = 3,
1: };
1:
1: struct asymmetric_key_ids {
1: - void *id[2];
1: + void *id[2];
1: };
1:
1: struct asymmetric_key_subtype {
1: - struct module *owner;
1: - const char *name;
1: - short unsigned int name_len;
1: - void (*describe)(const struct key *, struct seq_file *);
1: - void (*destroy)(void *, void *);
1: - int (*query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: - int (*eds_op)(struct kernel_pkey_params *, const void *, void *);
1: - int (*verify_signature)(const struct key *, const struct public_key_signature *);
1: + struct module *owner;
1: + const char *name;
1: + short unsigned int name_len;
1: + void (*describe)(const struct key *, struct seq_file *);
1: + void (*destroy)(void *, void *);
1: + int (*query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: + int (*eds_op)(struct kernel_pkey_params *, const void *, void *);
1: + int (*verify_signature)(const struct key *,
1: + const struct public_key_signature *);
1: };
1:
1: struct asymmetric_key_parser {
1: - struct list_head link;
1: - struct module *owner;
1: - const char *name;
1: - int (*parse)(struct key_preparsed_payload *);
1: + struct list_head link;
1: + struct module *owner;
1: + const char *name;
1: + int (*parse)(struct key_preparsed_payload *);
1: };
1:
1: enum OID {
1: - OID_id_dsa_with_sha1 = 0,
1: - OID_id_dsa = 1,
1: - OID_id_ecdsa_with_sha1 = 2,
1: - OID_id_ecPublicKey = 3,
1: - OID_rsaEncryption = 4,
1: - OID_md2WithRSAEncryption = 5,
1: - OID_md3WithRSAEncryption = 6,
1: - OID_md4WithRSAEncryption = 7,
1: - OID_sha1WithRSAEncryption = 8,
1: - OID_sha256WithRSAEncryption = 9,
1: - OID_sha384WithRSAEncryption = 10,
1: - OID_sha512WithRSAEncryption = 11,
1: - OID_sha224WithRSAEncryption = 12,
1: - OID_data = 13,
1: - OID_signed_data = 14,
1: - OID_email_address = 15,
1: - OID_contentType = 16,
1: - OID_messageDigest = 17,
1: - OID_signingTime = 18,
1: - OID_smimeCapabilites = 19,
1: - OID_smimeAuthenticatedAttrs = 20,
1: - OID_md2 = 21,
1: - OID_md4 = 22,
1: - OID_md5 = 23,
1: - OID_msIndirectData = 24,
1: - OID_msStatementType = 25,
1: - OID_msSpOpusInfo = 26,
1: - OID_msPeImageDataObjId = 27,
1: - OID_msIndividualSPKeyPurpose = 28,
1: - OID_msOutlookExpress = 29,
1: - OID_certAuthInfoAccess = 30,
1: - OID_sha1 = 31,
1: - OID_sha256 = 32,
1: - OID_sha384 = 33,
1: - OID_sha512 = 34,
1: - OID_sha224 = 35,
1: - OID_commonName = 36,
1: - OID_surname = 37,
1: - OID_countryName = 38,
1: - OID_locality = 39,
1: - OID_stateOrProvinceName = 40,
1: - OID_organizationName = 41,
1: - OID_organizationUnitName = 42,
1: - OID_title = 43,
1: - OID_description = 44,
1: - OID_name = 45,
1: - OID_givenName = 46,
1: - OID_initials = 47,
1: - OID_generationalQualifier = 48,
1: - OID_subjectKeyIdentifier = 49,
1: - OID_keyUsage = 50,
1: - OID_subjectAltName = 51,
1: - OID_issuerAltName = 52,
1: - OID_basicConstraints = 53,
1: - OID_crlDistributionPoints = 54,
1: - OID_certPolicies = 55,
1: - OID_authorityKeyIdentifier = 56,
1: - OID_extKeyUsage = 57,
1: - OID_gostCPSignA = 58,
1: - OID_gostCPSignB = 59,
1: - OID_gostCPSignC = 60,
1: - OID_gost2012PKey256 = 61,
1: - OID_gost2012PKey512 = 62,
1: - OID_gost2012Digest256 = 63,
1: - OID_gost2012Digest512 = 64,
1: - OID_gost2012Signature256 = 65,
1: - OID_gost2012Signature512 = 66,
1: - OID_gostTC26Sign256A = 67,
1: - OID_gostTC26Sign256B = 68,
1: - OID_gostTC26Sign256C = 69,
1: - OID_gostTC26Sign256D = 70,
1: - OID_gostTC26Sign512A = 71,
1: - OID_gostTC26Sign512B = 72,
1: - OID_gostTC26Sign512C = 73,
1: - OID_sm2 = 74,
1: - OID_sm3 = 75,
1: - OID_SM2_with_SM3 = 76,
1: - OID_sm3WithRSAEncryption = 77,
1: - OID__NR = 78,
1: + OID_id_dsa_with_sha1 = 0,
1: + OID_id_dsa = 1,
1: + OID_id_ecdsa_with_sha1 = 2,
1: + OID_id_ecPublicKey = 3,
1: + OID_rsaEncryption = 4,
1: + OID_md2WithRSAEncryption = 5,
1: + OID_md3WithRSAEncryption = 6,
1: + OID_md4WithRSAEncryption = 7,
1: + OID_sha1WithRSAEncryption = 8,
1: + OID_sha256WithRSAEncryption = 9,
1: + OID_sha384WithRSAEncryption = 10,
1: + OID_sha512WithRSAEncryption = 11,
1: + OID_sha224WithRSAEncryption = 12,
1: + OID_data = 13,
1: + OID_signed_data = 14,
1: + OID_email_address = 15,
1: + OID_contentType = 16,
1: + OID_messageDigest = 17,
1: + OID_signingTime = 18,
1: + OID_smimeCapabilites = 19,
1: + OID_smimeAuthenticatedAttrs = 20,
1: + OID_md2 = 21,
1: + OID_md4 = 22,
1: + OID_md5 = 23,
1: + OID_msIndirectData = 24,
1: + OID_msStatementType = 25,
1: + OID_msSpOpusInfo = 26,
1: + OID_msPeImageDataObjId = 27,
1: + OID_msIndividualSPKeyPurpose = 28,
1: + OID_msOutlookExpress = 29,
1: + OID_certAuthInfoAccess = 30,
1: + OID_sha1 = 31,
1: + OID_sha256 = 32,
1: + OID_sha384 = 33,
1: + OID_sha512 = 34,
1: + OID_sha224 = 35,
1: + OID_commonName = 36,
1: + OID_surname = 37,
1: + OID_countryName = 38,
1: + OID_locality = 39,
1: + OID_stateOrProvinceName = 40,
1: + OID_organizationName = 41,
1: + OID_organizationUnitName = 42,
1: + OID_title = 43,
1: + OID_description = 44,
1: + OID_name = 45,
1: + OID_givenName = 46,
1: + OID_initials = 47,
1: + OID_generationalQualifier = 48,
1: + OID_subjectKeyIdentifier = 49,
1: + OID_keyUsage = 50,
1: + OID_subjectAltName = 51,
1: + OID_issuerAltName = 52,
1: + OID_basicConstraints = 53,
1: + OID_crlDistributionPoints = 54,
1: + OID_certPolicies = 55,
1: + OID_authorityKeyIdentifier = 56,
1: + OID_extKeyUsage = 57,
1: + OID_gostCPSignA = 58,
1: + OID_gostCPSignB = 59,
1: + OID_gostCPSignC = 60,
1: + OID_gost2012PKey256 = 61,
1: + OID_gost2012PKey512 = 62,
1: + OID_gost2012Digest256 = 63,
1: + OID_gost2012Digest512 = 64,
1: + OID_gost2012Signature256 = 65,
1: + OID_gost2012Signature512 = 66,
1: + OID_gostTC26Sign256A = 67,
1: + OID_gostTC26Sign256B = 68,
1: + OID_gostTC26Sign256C = 69,
1: + OID_gostTC26Sign256D = 70,
1: + OID_gostTC26Sign512A = 71,
1: + OID_gostTC26Sign512B = 72,
1: + OID_gostTC26Sign512C = 73,
1: + OID_sm2 = 74,
1: + OID_sm3 = 75,
1: + OID_SM2_with_SM3 = 76,
1: + OID_sm3WithRSAEncryption = 77,
1: + OID__NR = 78,
1: };
1:
1: struct public_key {
1: - void *key;
1: - u32 keylen;
1: - enum OID algo;
1: - void *params;
1: - u32 paramlen;
1: - bool key_is_private;
1: - const char *id_type;
1: - const char *pkey_algo;
1: + void *key;
1: + u32 keylen;
1: + enum OID algo;
1: + void *params;
1: + u32 paramlen;
1: + bool key_is_private;
1: + const char *id_type;
1: + const char *pkey_algo;
1: };
1:
1: enum x509_actions {
1: - ACT_x509_extract_key_data = 0,
1: - ACT_x509_extract_name_segment = 1,
1: - ACT_x509_note_OID = 2,
1: - ACT_x509_note_issuer = 3,
1: - ACT_x509_note_not_after = 4,
1: - ACT_x509_note_not_before = 5,
1: - ACT_x509_note_params = 6,
1: - ACT_x509_note_pkey_algo = 7,
1: - ACT_x509_note_serial = 8,
1: - ACT_x509_note_signature = 9,
1: - ACT_x509_note_subject = 10,
1: - ACT_x509_note_tbs_certificate = 11,
1: - ACT_x509_process_extension = 12,
1: - NR__x509_actions = 13,
1: + ACT_x509_extract_key_data = 0,
1: + ACT_x509_extract_name_segment = 1,
1: + ACT_x509_note_OID = 2,
1: + ACT_x509_note_issuer = 3,
1: + ACT_x509_note_not_after = 4,
1: + ACT_x509_note_not_before = 5,
1: + ACT_x509_note_params = 6,
1: + ACT_x509_note_pkey_algo = 7,
1: + ACT_x509_note_serial = 8,
1: + ACT_x509_note_signature = 9,
1: + ACT_x509_note_subject = 10,
1: + ACT_x509_note_tbs_certificate = 11,
1: + ACT_x509_process_extension = 12,
1: + NR__x509_actions = 13,
1: };
1:
1: enum x509_akid_actions {
1: - ACT_x509_akid_note_kid = 0,
1: - ACT_x509_akid_note_name = 1,
1: - ACT_x509_akid_note_serial = 2,
1: - ACT_x509_extract_name_segment___2 = 3,
1: - ACT_x509_note_OID___2 = 4,
1: - NR__x509_akid_actions = 5,
1: + ACT_x509_akid_note_kid = 0,
1: + ACT_x509_akid_note_name = 1,
1: + ACT_x509_akid_note_serial = 2,
1: + ACT_x509_extract_name_segment___2 = 3,
1: + ACT_x509_note_OID___2 = 4,
1: + NR__x509_akid_actions = 5,
1: };
1:
1: struct x509_certificate {
1: - struct x509_certificate *next;
1: - struct x509_certificate *signer;
1: - struct public_key *pub;
1: - struct public_key_signature *sig;
1: - char *issuer;
1: - char *subject;
1: - struct asymmetric_key_id *id;
1: - struct asymmetric_key_id *skid;
1: - time64_t valid_from;
1: - time64_t valid_to;
1: - const void *tbs;
1: - unsigned int tbs_size;
1: - unsigned int raw_sig_size;
1: - const void *raw_sig;
1: - const void *raw_serial;
1: - unsigned int raw_serial_size;
1: - unsigned int raw_issuer_size;
1: - const void *raw_issuer;
1: - const void *raw_subject;
1: - unsigned int raw_subject_size;
1: - unsigned int raw_skid_size;
1: - const void *raw_skid;
1: - unsigned int index;
1: - bool seen;
1: - bool verified;
1: - bool self_signed;
1: - bool unsupported_key;
1: - bool unsupported_sig;
1: - bool blacklisted;
1: + struct x509_certificate *next;
1: + struct x509_certificate *signer;
1: + struct public_key *pub;
1: + struct public_key_signature *sig;
1: + char *issuer;
1: + char *subject;
1: + struct asymmetric_key_id *id;
1: + struct asymmetric_key_id *skid;
1: + time64_t valid_from;
1: + time64_t valid_to;
1: + const void *tbs;
1: + unsigned int tbs_size;
1: + unsigned int raw_sig_size;
1: + const void *raw_sig;
1: + const void *raw_serial;
1: + unsigned int raw_serial_size;
1: + unsigned int raw_issuer_size;
1: + const void *raw_issuer;
1: + const void *raw_subject;
1: + unsigned int raw_subject_size;
1: + unsigned int raw_skid_size;
1: + const void *raw_skid;
1: + unsigned int index;
1: + bool seen;
1: + bool verified;
1: + bool self_signed;
1: + bool unsupported_key;
1: + bool unsupported_sig;
1: + bool blacklisted;
1: };
1:
1: struct x509_parse_context {
1: - struct x509_certificate *cert;
1: - long unsigned int data;
1: - const void *cert_start;
1: - const void *key;
1: - size_t key_size;
1: - const void *params;
1: - size_t params_size;
1: - enum OID key_algo;
1: - enum OID last_oid;
1: - enum OID algo_oid;
1: - unsigned char nr_mpi;
1: - u8 o_size;
1: - u8 cn_size;
1: - u8 email_size;
1: - u16 o_offset;
1: - u16 cn_offset;
1: - u16 email_offset;
1: - unsigned int raw_akid_size;
1: - const void *raw_akid;
1: - const void *akid_raw_issuer;
1: - unsigned int akid_raw_issuer_size;
1: + struct x509_certificate *cert;
1: + long unsigned int data;
1: + const void *cert_start;
1: + const void *key;
1: + size_t key_size;
1: + const void *params;
1: + size_t params_size;
1: + enum OID key_algo;
1: + enum OID last_oid;
1: + enum OID algo_oid;
1: + unsigned char nr_mpi;
1: + u8 o_size;
1: + u8 cn_size;
1: + u8 email_size;
1: + u16 o_offset;
1: + u16 cn_offset;
1: + u16 email_offset;
1: + unsigned int raw_akid_size;
1: + const void *raw_akid;
1: + const void *akid_raw_issuer;
1: + unsigned int akid_raw_issuer_size;
1: };
1:
1: enum pkcs7_actions {
1: - ACT_pkcs7_check_content_type = 0,
1: - ACT_pkcs7_extract_cert = 1,
1: - ACT_pkcs7_note_OID = 2,
1: - ACT_pkcs7_note_certificate_list = 3,
1: - ACT_pkcs7_note_content = 4,
1: - ACT_pkcs7_note_data = 5,
1: - ACT_pkcs7_note_signed_info = 6,
1: - ACT_pkcs7_note_signeddata_version = 7,
1: - ACT_pkcs7_note_signerinfo_version = 8,
1: - ACT_pkcs7_sig_note_authenticated_attr = 9,
1: - ACT_pkcs7_sig_note_digest_algo = 10,
1: - ACT_pkcs7_sig_note_issuer = 11,
1: - ACT_pkcs7_sig_note_pkey_algo = 12,
1: - ACT_pkcs7_sig_note_serial = 13,
1: - ACT_pkcs7_sig_note_set_of_authattrs = 14,
1: - ACT_pkcs7_sig_note_signature = 15,
1: - ACT_pkcs7_sig_note_skid = 16,
1: - NR__pkcs7_actions = 17,
1: + ACT_pkcs7_check_content_type = 0,
1: + ACT_pkcs7_extract_cert = 1,
1: + ACT_pkcs7_note_OID = 2,
1: + ACT_pkcs7_note_certificate_list = 3,
1: + ACT_pkcs7_note_content = 4,
1: + ACT_pkcs7_note_data = 5,
1: + ACT_pkcs7_note_signed_info = 6,
1: + ACT_pkcs7_note_signeddata_version = 7,
1: + ACT_pkcs7_note_signerinfo_version = 8,
1: + ACT_pkcs7_sig_note_authenticated_attr = 9,
1: + ACT_pkcs7_sig_note_digest_algo = 10,
1: + ACT_pkcs7_sig_note_issuer = 11,
1: + ACT_pkcs7_sig_note_pkey_algo = 12,
1: + ACT_pkcs7_sig_note_serial = 13,
1: + ACT_pkcs7_sig_note_set_of_authattrs = 14,
1: + ACT_pkcs7_sig_note_signature = 15,
1: + ACT_pkcs7_sig_note_skid = 16,
1: + NR__pkcs7_actions = 17,
1: };
1:
1: struct pkcs7_signed_info {
1: - struct pkcs7_signed_info *next;
1: - struct x509_certificate *signer;
1: - unsigned int index;
1: - bool unsupported_crypto;
1: - bool blacklisted;
1: - const void *msgdigest;
1: - unsigned int msgdigest_len;
1: - unsigned int authattrs_len;
1: - const void *authattrs;
1: - long unsigned int aa_set;
1: - time64_t signing_time;
1: - struct public_key_signature *sig;
1: + struct pkcs7_signed_info *next;
1: + struct x509_certificate *signer;
1: + unsigned int index;
1: + bool unsupported_crypto;
1: + bool blacklisted;
1: + const void *msgdigest;
1: + unsigned int msgdigest_len;
1: + unsigned int authattrs_len;
1: + const void *authattrs;
1: + long unsigned int aa_set;
1: + time64_t signing_time;
1: + struct public_key_signature *sig;
1: };
1:
1: struct pkcs7_message___2 {
1: - struct x509_certificate *certs;
1: - struct x509_certificate *crl;
1: - struct pkcs7_signed_info *signed_infos;
1: - u8 version;
1: - bool have_authattrs;
1: - enum OID data_type;
1: - size_t data_len;
1: - size_t data_hdrlen;
1: - const void *data;
1: + struct x509_certificate *certs;
1: + struct x509_certificate *crl;
1: + struct pkcs7_signed_info *signed_infos;
1: + u8 version;
1: + bool have_authattrs;
1: + enum OID data_type;
1: + size_t data_len;
1: + size_t data_hdrlen;
1: + const void *data;
1: };
1:
1: struct pkcs7_parse_context {
1: - struct pkcs7_message___2 *msg;
1: - struct pkcs7_signed_info *sinfo;
1: - struct pkcs7_signed_info **ppsinfo;
1: - struct x509_certificate *certs;
1: - struct x509_certificate **ppcerts;
1: - long unsigned int data;
1: - enum OID last_oid;
1: - unsigned int x509_index;
1: - unsigned int sinfo_index;
1: - const void *raw_serial;
1: - unsigned int raw_serial_size;
1: - unsigned int raw_issuer_size;
1: - const void *raw_issuer;
1: - const void *raw_skid;
1: - unsigned int raw_skid_size;
1: - bool expect_skid;
1: + struct pkcs7_message___2 *msg;
1: + struct pkcs7_signed_info *sinfo;
1: + struct pkcs7_signed_info **ppsinfo;
1: + struct x509_certificate *certs;
1: + struct x509_certificate **ppcerts;
1: + long unsigned int data;
1: + enum OID last_oid;
1: + unsigned int x509_index;
1: + unsigned int sinfo_index;
1: + const void *raw_serial;
1: + unsigned int raw_serial_size;
1: + unsigned int raw_issuer_size;
1: + const void *raw_issuer;
1: + const void *raw_skid;
1: + unsigned int raw_skid_size;
1: + bool expect_skid;
1: };
1:
1: struct biovec_slab {
1: - int nr_vecs;
1: - char *name;
1: - struct kmem_cache *slab;
1: + int nr_vecs;
1: + char *name;
1: + struct kmem_cache *slab;
1: };
1:
1: enum rq_qos_id {
1: - RQ_QOS_WBT = 0,
1: - RQ_QOS_LATENCY = 1,
1: - RQ_QOS_COST = 2,
1: + RQ_QOS_WBT = 0,
1: + RQ_QOS_LATENCY = 1,
1: + RQ_QOS_COST = 2,
1: };
1:
1: struct rq_qos_ops;
1:
1: struct rq_qos {
1: - struct rq_qos_ops *ops;
1: - struct request_queue *q;
1: - enum rq_qos_id id;
1: - struct rq_qos *next;
1: + struct rq_qos_ops *ops;
1: + struct request_queue *q;
1: + enum rq_qos_id id;
1: + struct rq_qos *next;
1: };
1:
1: enum hctx_type {
1: - HCTX_TYPE_DEFAULT = 0,
1: - HCTX_TYPE_READ = 1,
1: - HCTX_TYPE_POLL = 2,
1: - HCTX_MAX_TYPES = 3,
1: + HCTX_TYPE_DEFAULT = 0,
1: + HCTX_TYPE_READ = 1,
1: + HCTX_TYPE_POLL = 2,
1: + HCTX_MAX_TYPES = 3,
1: };
1:
1: struct blk_mq_debugfs_attr;
1:
1: struct rq_qos_ops {
1: - void (*throttle)(struct rq_qos *, struct bio *);
1: - void (*track)(struct rq_qos *, struct request *, struct bio *);
1: - void (*merge)(struct rq_qos *, struct request *, struct bio *);
1: - void (*issue)(struct rq_qos *, struct request *);
1: - void (*requeue)(struct rq_qos *, struct request *);
1: - void (*done)(struct rq_qos *, struct request *);
1: - void (*done_bio)(struct rq_qos *, struct bio *);
1: - void (*cleanup)(struct rq_qos *, struct bio *);
1: - void (*queue_depth_changed)(struct rq_qos *);
1: - void (*exit)(struct rq_qos *);
1: - const struct blk_mq_debugfs_attr *debugfs_attrs;
1: + void (*throttle)(struct rq_qos *, struct bio *);
1: + void (*track)(struct rq_qos *, struct request *, struct bio *);
1: + void (*merge)(struct rq_qos *, struct request *, struct bio *);
1: + void (*issue)(struct rq_qos *, struct request *);
1: + void (*requeue)(struct rq_qos *, struct request *);
1: + void (*done)(struct rq_qos *, struct request *);
1: + void (*done_bio)(struct rq_qos *, struct bio *);
1: + void (*cleanup)(struct rq_qos *, struct bio *);
1: + void (*queue_depth_changed)(struct rq_qos *);
1: + void (*exit)(struct rq_qos *);
1: + const struct blk_mq_debugfs_attr *debugfs_attrs;
1: };
1:
1: struct bio_slab {
1: - struct kmem_cache *slab;
1: - unsigned int slab_ref;
1: - unsigned int slab_size;
1: - char name[8];
1: + struct kmem_cache *slab;
1: + unsigned int slab_ref;
1: + unsigned int slab_size;
1: + char name[8];
1: };
1:
1: enum {
1: - BLK_MQ_F_SHOULD_MERGE = 1,
1: - BLK_MQ_F_TAG_QUEUE_SHARED = 2,
1: - BLK_MQ_F_STACKING = 4,
1: - BLK_MQ_F_TAG_HCTX_SHARED = 8,
1: - BLK_MQ_F_BLOCKING = 32,
1: - BLK_MQ_F_NO_SCHED = 64,
1: - BLK_MQ_F_ALLOC_POLICY_START_BIT = 8,
1: - BLK_MQ_F_ALLOC_POLICY_BITS = 1,
1: - BLK_MQ_S_STOPPED = 0,
1: - BLK_MQ_S_TAG_ACTIVE = 1,
1: - BLK_MQ_S_SCHED_RESTART = 2,
1: - BLK_MQ_S_INACTIVE = 3,
1: - BLK_MQ_MAX_DEPTH = 10240,
1: - BLK_MQ_CPU_WORK_BATCH = 8,
1: + BLK_MQ_F_SHOULD_MERGE = 1,
1: + BLK_MQ_F_TAG_QUEUE_SHARED = 2,
1: + BLK_MQ_F_STACKING = 4,
1: + BLK_MQ_F_TAG_HCTX_SHARED = 8,
1: + BLK_MQ_F_BLOCKING = 32,
1: + BLK_MQ_F_NO_SCHED = 64,
1: + BLK_MQ_F_ALLOC_POLICY_START_BIT = 8,
1: + BLK_MQ_F_ALLOC_POLICY_BITS = 1,
1: + BLK_MQ_S_STOPPED = 0,
1: + BLK_MQ_S_TAG_ACTIVE = 1,
1: + BLK_MQ_S_SCHED_RESTART = 2,
1: + BLK_MQ_S_INACTIVE = 3,
1: + BLK_MQ_MAX_DEPTH = 10240,
1: + BLK_MQ_CPU_WORK_BATCH = 8,
1: };
1:
1: enum {
1: - WBT_RWQ_BG = 0,
1: - WBT_RWQ_KSWAPD = 1,
1: - WBT_RWQ_DISCARD = 2,
1: - WBT_NUM_RWQ = 3,
1: + WBT_RWQ_BG = 0,
1: + WBT_RWQ_KSWAPD = 1,
1: + WBT_RWQ_DISCARD = 2,
1: + WBT_NUM_RWQ = 3,
1: };
1:
1: struct req_iterator {
1: - struct bvec_iter iter;
1: - struct bio *bio;
1: + struct bvec_iter iter;
1: + struct bio *bio;
1: };
1:
1: struct blk_plug_cb;
1: @@ -52834,166 +53639,166 @@ struct blk_plug_cb;
1: typedef void (*blk_plug_cb_fn)(struct blk_plug_cb *, bool);
1:
1: struct blk_plug_cb {
1: - struct list_head list;
1: - blk_plug_cb_fn callback;
1: - void *data;
1: + struct list_head list;
1: + blk_plug_cb_fn callback;
1: + void *data;
1: };
1:
1: enum {
1: - BLK_MQ_REQ_NOWAIT = 1,
1: - BLK_MQ_REQ_RESERVED = 2,
1: - BLK_MQ_REQ_PM = 4,
1: + BLK_MQ_REQ_NOWAIT = 1,
1: + BLK_MQ_REQ_RESERVED = 2,
1: + BLK_MQ_REQ_PM = 4,
1: };
1:
1: struct trace_event_raw_block_buffer {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - size_t size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + size_t size;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_rq_requeue {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - char rwbs[8];
1: - u32 __data_loc_cmd;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_rq_complete {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - int error;
1: - char rwbs[8];
1: - u32 __data_loc_cmd;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + int error;
1: + char rwbs[8];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_rq {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - unsigned int bytes;
1: - char rwbs[8];
1: - char comm[16];
1: - u32 __data_loc_cmd;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + unsigned int bytes;
1: + char rwbs[8];
1: + char comm[16];
1: + u32 __data_loc_cmd;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_bio_bounce {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - char rwbs[8];
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_bio_complete {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - int error;
1: - char rwbs[8];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + int error;
1: + char rwbs[8];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_bio_merge {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - char rwbs[8];
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_bio_queue {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - char rwbs[8];
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_get_rq {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - char rwbs[8];
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_plug {
1: - struct trace_entry ent;
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_unplug {
1: - struct trace_entry ent;
1: - int nr_rq;
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nr_rq;
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_split {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - sector_t new_sector;
1: - char rwbs[8];
1: - char comm[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + sector_t new_sector;
1: + char rwbs[8];
1: + char comm[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_bio_remap {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - dev_t old_dev;
1: - sector_t old_sector;
1: - char rwbs[8];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + dev_t old_dev;
1: + sector_t old_sector;
1: + char rwbs[8];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_block_rq_remap {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - sector_t sector;
1: - unsigned int nr_sector;
1: - dev_t old_dev;
1: - sector_t old_sector;
1: - unsigned int nr_bios;
1: - char rwbs[8];
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + sector_t sector;
1: + unsigned int nr_sector;
1: + dev_t old_dev;
1: + sector_t old_sector;
1: + unsigned int nr_bios;
1: + char rwbs[8];
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_block_buffer {};
1:
1: struct trace_event_data_offsets_block_rq_requeue {
1: - u32 cmd;
1: + u32 cmd;
1: };
1:
1: struct trace_event_data_offsets_block_rq_complete {
1: - u32 cmd;
1: + u32 cmd;
1: };
1:
1: struct trace_event_data_offsets_block_rq {
1: - u32 cmd;
1: + u32 cmd;
1: };
1:
1: struct trace_event_data_offsets_block_bio_bounce {};
1: @@ -53020,940 +53825,957 @@ typedef void (*btf_trace_block_touch_buffer)(void *, struct buffer_head *);
1:
1: typedef void (*btf_trace_block_dirty_buffer)(void *, struct buffer_head *);
1:
1: -typedef void (*btf_trace_block_rq_requeue)(void *, struct request_queue *, struct request *);
1: +typedef void (*btf_trace_block_rq_requeue)(void *, struct request_queue *,
1: + struct request *);
1:
1: -typedef void (*btf_trace_block_rq_complete)(void *, struct request *, int, unsigned int);
1: +typedef void (*btf_trace_block_rq_complete)(void *, struct request *, int,
1: + unsigned int);
1:
1: -typedef void (*btf_trace_block_rq_insert)(void *, struct request_queue *, struct request *);
1: +typedef void (*btf_trace_block_rq_insert)(void *, struct request_queue *,
1: + struct request *);
1:
1: -typedef void (*btf_trace_block_rq_issue)(void *, struct request_queue *, struct request *);
1: +typedef void (*btf_trace_block_rq_issue)(void *, struct request_queue *,
1: + struct request *);
1:
1: -typedef void (*btf_trace_block_rq_merge)(void *, struct request_queue *, struct request *);
1: +typedef void (*btf_trace_block_rq_merge)(void *, struct request_queue *,
1: + struct request *);
1:
1: -typedef void (*btf_trace_block_bio_bounce)(void *, struct request_queue *, struct bio *);
1: +typedef void (*btf_trace_block_bio_bounce)(void *, struct request_queue *,
1: + struct bio *);
1:
1: -typedef void (*btf_trace_block_bio_complete)(void *, struct request_queue *, struct bio *);
1: +typedef void (*btf_trace_block_bio_complete)(void *, struct request_queue *,
1: + struct bio *);
1:
1: -typedef void (*btf_trace_block_bio_backmerge)(void *, struct request_queue *, struct request *, struct bio *);
1: +typedef void (*btf_trace_block_bio_backmerge)(void *, struct request_queue *,
1: + struct request *, struct bio *);
1:
1: -typedef void (*btf_trace_block_bio_frontmerge)(void *, struct request_queue *, struct request *, struct bio *);
1: +typedef void (*btf_trace_block_bio_frontmerge)(void *, struct request_queue *,
1: + struct request *, struct bio *);
1:
1: -typedef void (*btf_trace_block_bio_queue)(void *, struct request_queue *, struct bio *);
1: +typedef void (*btf_trace_block_bio_queue)(void *, struct request_queue *,
1: + struct bio *);
1:
1: -typedef void (*btf_trace_block_getrq)(void *, struct request_queue *, struct bio *, int);
1: +typedef void (*btf_trace_block_getrq)(void *, struct request_queue *,
1: + struct bio *, int);
1:
1: -typedef void (*btf_trace_block_sleeprq)(void *, struct request_queue *, struct bio *, int);
1: +typedef void (*btf_trace_block_sleeprq)(void *, struct request_queue *,
1: + struct bio *, int);
1:
1: typedef void (*btf_trace_block_plug)(void *, struct request_queue *);
1:
1: -typedef void (*btf_trace_block_unplug)(void *, struct request_queue *, unsigned int, bool);
1: +typedef void (*btf_trace_block_unplug)(void *, struct request_queue *,
1: + unsigned int, bool);
1:
1: -typedef void (*btf_trace_block_split)(void *, struct request_queue *, struct bio *, unsigned int);
1: +typedef void (*btf_trace_block_split)(void *, struct request_queue *,
1: + struct bio *, unsigned int);
1:
1: -typedef void (*btf_trace_block_bio_remap)(void *, struct request_queue *, struct bio *, dev_t, sector_t);
1: +typedef void (*btf_trace_block_bio_remap)(void *, struct request_queue *,
1: + struct bio *, dev_t, sector_t);
1:
1: -typedef void (*btf_trace_block_rq_remap)(void *, struct request_queue *, struct request *, dev_t, sector_t);
1: +typedef void (*btf_trace_block_rq_remap)(void *, struct request_queue *,
1: + struct request *, dev_t, sector_t);
1:
1: enum {
1: - BLK_MQ_NO_TAG = 4294967295,
1: - BLK_MQ_TAG_MIN = 1,
1: - BLK_MQ_TAG_MAX = 4294967294,
1: + BLK_MQ_NO_TAG = 4294967295,
1: + BLK_MQ_TAG_MIN = 1,
1: + BLK_MQ_TAG_MAX = 4294967294,
1: };
1:
1: struct queue_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct request_queue *, char *);
1: - ssize_t (*store)(struct request_queue *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct request_queue *, char *);
1: + ssize_t (*store)(struct request_queue *, const char *, size_t);
1: };
1:
1: enum {
1: - REQ_FSEQ_PREFLUSH = 1,
1: - REQ_FSEQ_DATA = 2,
1: - REQ_FSEQ_POSTFLUSH = 4,
1: - REQ_FSEQ_DONE = 8,
1: - REQ_FSEQ_ACTIONS = 7,
1: - FLUSH_PENDING_TIMEOUT = 5000,
1: + REQ_FSEQ_PREFLUSH = 1,
1: + REQ_FSEQ_DATA = 2,
1: + REQ_FSEQ_POSTFLUSH = 4,
1: + REQ_FSEQ_DONE = 8,
1: + REQ_FSEQ_ACTIONS = 7,
1: + FLUSH_PENDING_TIMEOUT = 5000,
1: };
1:
1: enum {
1: - ICQ_EXITED = 4,
1: - ICQ_DESTROYED = 8,
1: + ICQ_EXITED = 4,
1: + ICQ_DESTROYED = 8,
1: };
1:
1: struct rq_map_data {
1: - struct page **pages;
1: - int page_order;
1: - int nr_entries;
1: - long unsigned int offset;
1: - int null_mapped;
1: - int from_user;
1: + struct page **pages;
1: + int page_order;
1: + int nr_entries;
1: + long unsigned int offset;
1: + int null_mapped;
1: + int from_user;
1: };
1:
1: struct bio_map_data {
1: - bool is_our_pages: 1;
1: - bool is_null_mapped: 1;
1: - struct iov_iter iter;
1: - struct iovec iov[0];
1: + bool is_our_pages : 1;
1: + bool is_null_mapped : 1;
1: + struct iov_iter iter;
1: + struct iovec iov[0];
1: };
1:
1: enum bio_merge_status {
1: - BIO_MERGE_OK = 0,
1: - BIO_MERGE_NONE = 1,
1: - BIO_MERGE_FAILED = 2,
1: + BIO_MERGE_OK = 0,
1: + BIO_MERGE_NONE = 1,
1: + BIO_MERGE_FAILED = 2,
1: };
1:
1: typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
1:
1: enum {
1: - BLK_MQ_UNIQUE_TAG_BITS = 16,
1: - BLK_MQ_UNIQUE_TAG_MASK = 65535,
1: + BLK_MQ_UNIQUE_TAG_BITS = 16,
1: + BLK_MQ_UNIQUE_TAG_MASK = 65535,
1: };
1:
1: struct mq_inflight {
1: - struct hd_struct *part;
1: - unsigned int inflight[2];
1: + struct hd_struct *part;
1: + unsigned int inflight[2];
1: };
1:
1: struct flush_busy_ctx_data {
1: - struct blk_mq_hw_ctx *hctx;
1: - struct list_head *list;
1: + struct blk_mq_hw_ctx *hctx;
1: + struct list_head *list;
1: };
1:
1: struct dispatch_rq_data {
1: - struct blk_mq_hw_ctx *hctx;
1: - struct request *rq;
1: + struct blk_mq_hw_ctx *hctx;
1: + struct request *rq;
1: };
1:
1: enum prep_dispatch {
1: - PREP_DISPATCH_OK = 0,
1: - PREP_DISPATCH_NO_TAG = 1,
1: - PREP_DISPATCH_NO_BUDGET = 2,
1: + PREP_DISPATCH_OK = 0,
1: + PREP_DISPATCH_NO_TAG = 1,
1: + PREP_DISPATCH_NO_BUDGET = 2,
1: };
1:
1: struct rq_iter_data {
1: - struct blk_mq_hw_ctx *hctx;
1: - bool has_rq;
1: + struct blk_mq_hw_ctx *hctx;
1: + bool has_rq;
1: };
1:
1: struct blk_mq_qe_pair {
1: - struct list_head node;
1: - struct request_queue *q;
1: - struct elevator_type *type;
1: + struct list_head node;
1: + struct request_queue *q;
1: + struct elevator_type *type;
1: };
1:
1: struct sbq_wait {
1: - struct sbitmap_queue *sbq;
1: - struct wait_queue_entry wait;
1: + struct sbitmap_queue *sbq;
1: + struct wait_queue_entry wait;
1: };
1:
1: -typedef bool busy_iter_fn(struct blk_mq_hw_ctx *, struct request *, void *, bool);
1: +typedef bool busy_iter_fn(struct blk_mq_hw_ctx *, struct request *, void *,
1: + bool);
1:
1: typedef bool busy_tag_iter_fn(struct request *, void *, bool);
1:
1: struct bt_iter_data {
1: - struct blk_mq_hw_ctx *hctx;
1: - busy_iter_fn *fn;
1: - void *data;
1: - bool reserved;
1: + struct blk_mq_hw_ctx *hctx;
1: + busy_iter_fn *fn;
1: + void *data;
1: + bool reserved;
1: };
1:
1: struct bt_tags_iter_data {
1: - struct blk_mq_tags *tags;
1: - busy_tag_iter_fn *fn;
1: - void *data;
1: - unsigned int flags;
1: + struct blk_mq_tags *tags;
1: + busy_tag_iter_fn *fn;
1: + void *data;
1: + unsigned int flags;
1: };
1:
1: struct blk_queue_stats {
1: - struct list_head callbacks;
1: - spinlock_t lock;
1: - bool enable_accounting;
1: + struct list_head callbacks;
1: + spinlock_t lock;
1: + bool enable_accounting;
1: };
1:
1: struct blk_mq_ctx_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct blk_mq_ctx *, char *);
1: - ssize_t (*store)(struct blk_mq_ctx *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_mq_ctx *, char *);
1: + ssize_t (*store)(struct blk_mq_ctx *, const char *, size_t);
1: };
1:
1: struct blk_mq_hw_ctx_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct blk_mq_hw_ctx *, char *);
1: - ssize_t (*store)(struct blk_mq_hw_ctx *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_mq_hw_ctx *, char *);
1: + ssize_t (*store)(struct blk_mq_hw_ctx *, const char *, size_t);
1: };
1:
1: typedef u32 compat_caddr_t;
1:
1: struct hd_geometry {
1: - unsigned char heads;
1: - unsigned char sectors;
1: - short unsigned int cylinders;
1: - long unsigned int start;
1: + unsigned char heads;
1: + unsigned char sectors;
1: + short unsigned int cylinders;
1: + long unsigned int start;
1: };
1:
1: struct blkpg_ioctl_arg {
1: - int op;
1: - int flags;
1: - int datalen;
1: - void *data;
1: + int op;
1: + int flags;
1: + int datalen;
1: + void *data;
1: };
1:
1: struct blkpg_partition {
1: - long long int start;
1: - long long int length;
1: - int pno;
1: - char devname[64];
1: - char volname[64];
1: + long long int start;
1: + long long int length;
1: + int pno;
1: + char devname[64];
1: + char volname[64];
1: };
1:
1: struct pr_reservation {
1: - __u64 key;
1: - __u32 type;
1: - __u32 flags;
1: + __u64 key;
1: + __u32 type;
1: + __u32 flags;
1: };
1:
1: struct pr_registration {
1: - __u64 old_key;
1: - __u64 new_key;
1: - __u32 flags;
1: - __u32 __pad;
1: + __u64 old_key;
1: + __u64 new_key;
1: + __u32 flags;
1: + __u32 __pad;
1: };
1:
1: struct pr_preempt {
1: - __u64 old_key;
1: - __u64 new_key;
1: - __u32 type;
1: - __u32 flags;
1: + __u64 old_key;
1: + __u64 new_key;
1: + __u32 type;
1: + __u32 flags;
1: };
1:
1: struct pr_clear {
1: - __u64 key;
1: - __u32 flags;
1: - __u32 __pad;
1: + __u64 key;
1: + __u32 flags;
1: + __u32 __pad;
1: };
1:
1: struct compat_blkpg_ioctl_arg {
1: - compat_int_t op;
1: - compat_int_t flags;
1: - compat_int_t datalen;
1: - compat_caddr_t data;
1: + compat_int_t op;
1: + compat_int_t flags;
1: + compat_int_t datalen;
1: + compat_caddr_t data;
1: };
1:
1: struct compat_hd_geometry {
1: - unsigned char heads;
1: - unsigned char sectors;
1: - short unsigned int cylinders;
1: - u32 start;
1: + unsigned char heads;
1: + unsigned char sectors;
1: + short unsigned int cylinders;
1: + u32 start;
1: };
1:
1: struct klist_node;
1:
1: struct klist {
1: - spinlock_t k_lock;
1: - struct list_head k_list;
1: - void (*get)(struct klist_node *);
1: - void (*put)(struct klist_node *);
1: + spinlock_t k_lock;
1: + struct list_head k_list;
1: + void (*get)(struct klist_node *);
1: + void (*put)(struct klist_node *);
1: };
1:
1: struct klist_node {
1: - void *n_klist;
1: - struct list_head n_node;
1: - struct kref n_ref;
1: + void *n_klist;
1: + struct list_head n_node;
1: + struct kref n_ref;
1: };
1:
1: struct klist_iter {
1: - struct klist *i_klist;
1: - struct klist_node *i_cur;
1: + struct klist *i_klist;
1: + struct klist_node *i_cur;
1: };
1:
1: struct class_dev_iter {
1: - struct klist_iter ki;
1: - const struct device_type *type;
1: + struct klist_iter ki;
1: + const struct device_type *type;
1: };
1:
1: enum {
1: - DISK_EVENT_FLAG_POLL = 1,
1: - DISK_EVENT_FLAG_UEVENT = 2,
1: + DISK_EVENT_FLAG_POLL = 1,
1: + DISK_EVENT_FLAG_UEVENT = 2,
1: };
1:
1: struct disk_events {
1: - struct list_head node;
1: - struct gendisk *disk;
1: - spinlock_t lock;
1: - struct mutex block_mutex;
1: - int block;
1: - unsigned int pending;
1: - unsigned int clearing;
1: - long int poll_msecs;
1: - struct delayed_work dwork;
1: + struct list_head node;
1: + struct gendisk *disk;
1: + spinlock_t lock;
1: + struct mutex block_mutex;
1: + int block;
1: + unsigned int pending;
1: + unsigned int clearing;
1: + long int poll_msecs;
1: + struct delayed_work dwork;
1: };
1:
1: struct badblocks {
1: - struct device *dev;
1: - int count;
1: - int unacked_exist;
1: - int shift;
1: - u64 *page;
1: - int changed;
1: - seqlock_t lock;
1: - sector_t sector;
1: - sector_t size;
1: + struct device *dev;
1: + int count;
1: + int unacked_exist;
1: + int shift;
1: + u64 *page;
1: + int changed;
1: + seqlock_t lock;
1: + sector_t sector;
1: + sector_t size;
1: };
1:
1: struct disk_part_iter {
1: - struct gendisk *disk;
1: - struct hd_struct *part;
1: - int idx;
1: - unsigned int flags;
1: + struct gendisk *disk;
1: + struct hd_struct *part;
1: + int idx;
1: + unsigned int flags;
1: };
1:
1: struct blk_major_name {
1: - struct blk_major_name *next;
1: - int major;
1: - char name[16];
1: + struct blk_major_name *next;
1: + int major;
1: + char name[16];
1: };
1:
1: enum {
1: - IOPRIO_WHO_PROCESS = 1,
1: - IOPRIO_WHO_PGRP = 2,
1: - IOPRIO_WHO_USER = 3,
1: + IOPRIO_WHO_PROCESS = 1,
1: + IOPRIO_WHO_PGRP = 2,
1: + IOPRIO_WHO_USER = 3,
1: };
1:
1: struct parsed_partitions {
1: - struct block_device *bdev;
1: - char name[32];
1: - struct {
1: - sector_t from;
1: - sector_t size;
1: - int flags;
1: - bool has_info;
1: - struct partition_meta_info info;
1: - } *parts;
1: - int next;
1: - int limit;
1: - bool access_beyond_eod;
1: - char *pp_buf;
1: + struct block_device *bdev;
1: + char name[32];
1: + struct {
1: + sector_t from;
1: + sector_t size;
1: + int flags;
1: + bool has_info;
1: + struct partition_meta_info info;
1: + } * parts;
1: + int next;
1: + int limit;
1: + bool access_beyond_eod;
1: + char *pp_buf;
1: };
1:
1: typedef struct {
1: - struct page *v;
1: + struct page *v;
1: } Sector;
1:
1: struct RigidDiskBlock {
1: - __u32 rdb_ID;
1: - __be32 rdb_SummedLongs;
1: - __s32 rdb_ChkSum;
1: - __u32 rdb_HostID;
1: - __be32 rdb_BlockBytes;
1: - __u32 rdb_Flags;
1: - __u32 rdb_BadBlockList;
1: - __be32 rdb_PartitionList;
1: - __u32 rdb_FileSysHeaderList;
1: - __u32 rdb_DriveInit;
1: - __u32 rdb_Reserved1[6];
1: - __u32 rdb_Cylinders;
1: - __u32 rdb_Sectors;
1: - __u32 rdb_Heads;
1: - __u32 rdb_Interleave;
1: - __u32 rdb_Park;
1: - __u32 rdb_Reserved2[3];
1: - __u32 rdb_WritePreComp;
1: - __u32 rdb_ReducedWrite;
1: - __u32 rdb_StepRate;
1: - __u32 rdb_Reserved3[5];
1: - __u32 rdb_RDBBlocksLo;
1: - __u32 rdb_RDBBlocksHi;
1: - __u32 rdb_LoCylinder;
1: - __u32 rdb_HiCylinder;
1: - __u32 rdb_CylBlocks;
1: - __u32 rdb_AutoParkSeconds;
1: - __u32 rdb_HighRDSKBlock;
1: - __u32 rdb_Reserved4;
1: - char rdb_DiskVendor[8];
1: - char rdb_DiskProduct[16];
1: - char rdb_DiskRevision[4];
1: - char rdb_ControllerVendor[8];
1: - char rdb_ControllerProduct[16];
1: - char rdb_ControllerRevision[4];
1: - __u32 rdb_Reserved5[10];
1: + __u32 rdb_ID;
1: + __be32 rdb_SummedLongs;
1: + __s32 rdb_ChkSum;
1: + __u32 rdb_HostID;
1: + __be32 rdb_BlockBytes;
1: + __u32 rdb_Flags;
1: + __u32 rdb_BadBlockList;
1: + __be32 rdb_PartitionList;
1: + __u32 rdb_FileSysHeaderList;
1: + __u32 rdb_DriveInit;
1: + __u32 rdb_Reserved1[6];
1: + __u32 rdb_Cylinders;
1: + __u32 rdb_Sectors;
1: + __u32 rdb_Heads;
1: + __u32 rdb_Interleave;
1: + __u32 rdb_Park;
1: + __u32 rdb_Reserved2[3];
1: + __u32 rdb_WritePreComp;
1: + __u32 rdb_ReducedWrite;
1: + __u32 rdb_StepRate;
1: + __u32 rdb_Reserved3[5];
1: + __u32 rdb_RDBBlocksLo;
1: + __u32 rdb_RDBBlocksHi;
1: + __u32 rdb_LoCylinder;
1: + __u32 rdb_HiCylinder;
1: + __u32 rdb_CylBlocks;
1: + __u32 rdb_AutoParkSeconds;
1: + __u32 rdb_HighRDSKBlock;
1: + __u32 rdb_Reserved4;
1: + char rdb_DiskVendor[8];
1: + char rdb_DiskProduct[16];
1: + char rdb_DiskRevision[4];
1: + char rdb_ControllerVendor[8];
1: + char rdb_ControllerProduct[16];
1: + char rdb_ControllerRevision[4];
1: + __u32 rdb_Reserved5[10];
1: };
1:
1: struct PartitionBlock {
1: - __be32 pb_ID;
1: - __be32 pb_SummedLongs;
1: - __s32 pb_ChkSum;
1: - __u32 pb_HostID;
1: - __be32 pb_Next;
1: - __u32 pb_Flags;
1: - __u32 pb_Reserved1[2];
1: - __u32 pb_DevFlags;
1: - __u8 pb_DriveName[32];
1: - __u32 pb_Reserved2[15];
1: - __be32 pb_Environment[17];
1: - __u32 pb_EReserved[15];
1: + __be32 pb_ID;
1: + __be32 pb_SummedLongs;
1: + __s32 pb_ChkSum;
1: + __u32 pb_HostID;
1: + __be32 pb_Next;
1: + __u32 pb_Flags;
1: + __u32 pb_Reserved1[2];
1: + __u32 pb_DevFlags;
1: + __u8 pb_DriveName[32];
1: + __u32 pb_Reserved2[15];
1: + __be32 pb_Environment[17];
1: + __u32 pb_EReserved[15];
1: };
1:
1: struct partition_info {
1: - u8 flg;
1: - char id[3];
1: - __be32 st;
1: - __be32 siz;
1: + u8 flg;
1: + char id[3];
1: + __be32 st;
1: + __be32 siz;
1: };
1:
1: struct rootsector {
1: - char unused[342];
1: - struct partition_info icdpart[8];
1: - char unused2[12];
1: - u32 hd_siz;
1: - struct partition_info part[4];
1: - u32 bsl_st;
1: - u32 bsl_cnt;
1: - u16 checksum;
1: + char unused[342];
1: + struct partition_info icdpart[8];
1: + char unused2[12];
1: + u32 hd_siz;
1: + struct partition_info part[4];
1: + u32 bsl_st;
1: + u32 bsl_cnt;
1: + u16 checksum;
1: } __attribute__((packed));
1:
1: struct mac_partition {
1: - __be16 signature;
1: - __be16 res1;
1: - __be32 map_count;
1: - __be32 start_block;
1: - __be32 block_count;
1: - char name[32];
1: - char type[32];
1: - __be32 data_start;
1: - __be32 data_count;
1: - __be32 status;
1: - __be32 boot_start;
1: - __be32 boot_size;
1: - __be32 boot_load;
1: - __be32 boot_load2;
1: - __be32 boot_entry;
1: - __be32 boot_entry2;
1: - __be32 boot_cksum;
1: - char processor[16];
1: + __be16 signature;
1: + __be16 res1;
1: + __be32 map_count;
1: + __be32 start_block;
1: + __be32 block_count;
1: + char name[32];
1: + char type[32];
1: + __be32 data_start;
1: + __be32 data_count;
1: + __be32 status;
1: + __be32 boot_start;
1: + __be32 boot_size;
1: + __be32 boot_load;
1: + __be32 boot_load2;
1: + __be32 boot_entry;
1: + __be32 boot_entry2;
1: + __be32 boot_cksum;
1: + char processor[16];
1: };
1:
1: struct mac_driver_desc {
1: - __be16 signature;
1: - __be16 block_size;
1: - __be32 block_count;
1: + __be16 signature;
1: + __be16 block_size;
1: + __be32 block_count;
1: };
1:
1: struct msdos_partition {
1: - u8 boot_ind;
1: - u8 head;
1: - u8 sector;
1: - u8 cyl;
1: - u8 sys_ind;
1: - u8 end_head;
1: - u8 end_sector;
1: - u8 end_cyl;
1: - __le32 start_sect;
1: - __le32 nr_sects;
1: + u8 boot_ind;
1: + u8 head;
1: + u8 sector;
1: + u8 cyl;
1: + u8 sys_ind;
1: + u8 end_head;
1: + u8 end_sector;
1: + u8 end_cyl;
1: + __le32 start_sect;
1: + __le32 nr_sects;
1: };
1:
1: struct frag {
1: - struct list_head list;
1: - u32 group;
1: - u8 num;
1: - u8 rec;
1: - u8 map;
1: - u8 data[0];
1: + struct list_head list;
1: + u32 group;
1: + u8 num;
1: + u8 rec;
1: + u8 map;
1: + u8 data[0];
1: };
1:
1: struct privhead {
1: - u16 ver_major;
1: - u16 ver_minor;
1: - u64 logical_disk_start;
1: - u64 logical_disk_size;
1: - u64 config_start;
1: - u64 config_size;
1: - uuid_t disk_id;
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u64 logical_disk_start;
1: + u64 logical_disk_size;
1: + u64 config_start;
1: + u64 config_size;
1: + uuid_t disk_id;
1: };
1:
1: struct tocblock {
1: - u8 bitmap1_name[16];
1: - u64 bitmap1_start;
1: - u64 bitmap1_size;
1: - u8 bitmap2_name[16];
1: - u64 bitmap2_start;
1: - u64 bitmap2_size;
1: + u8 bitmap1_name[16];
1: + u64 bitmap1_start;
1: + u64 bitmap1_size;
1: + u8 bitmap2_name[16];
1: + u64 bitmap2_start;
1: + u64 bitmap2_size;
1: };
1:
1: struct vmdb {
1: - u16 ver_major;
1: - u16 ver_minor;
1: - u32 vblk_size;
1: - u32 vblk_offset;
1: - u32 last_vblk_seq;
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u32 vblk_size;
1: + u32 vblk_offset;
1: + u32 last_vblk_seq;
1: };
1:
1: struct vblk_comp {
1: - u8 state[16];
1: - u64 parent_id;
1: - u8 type;
1: - u8 children;
1: - u16 chunksize;
1: + u8 state[16];
1: + u64 parent_id;
1: + u8 type;
1: + u8 children;
1: + u16 chunksize;
1: };
1:
1: struct vblk_dgrp {
1: - u8 disk_id[64];
1: + u8 disk_id[64];
1: };
1:
1: struct vblk_disk {
1: - uuid_t disk_id;
1: - u8 alt_name[128];
1: + uuid_t disk_id;
1: + u8 alt_name[128];
1: };
1:
1: struct vblk_part {
1: - u64 start;
1: - u64 size;
1: - u64 volume_offset;
1: - u64 parent_id;
1: - u64 disk_id;
1: - u8 partnum;
1: + u64 start;
1: + u64 size;
1: + u64 volume_offset;
1: + u64 parent_id;
1: + u64 disk_id;
1: + u8 partnum;
1: };
1:
1: struct vblk_volu {
1: - u8 volume_type[16];
1: - u8 volume_state[16];
1: - u8 guid[16];
1: - u8 drive_hint[4];
1: - u64 size;
1: - u8 partition_type;
1: + u8 volume_type[16];
1: + u8 volume_state[16];
1: + u8 guid[16];
1: + u8 drive_hint[4];
1: + u64 size;
1: + u8 partition_type;
1: };
1:
1: struct vblk {
1: - u8 name[64];
1: - u64 obj_id;
1: - u32 sequence;
1: - u8 flags;
1: - u8 type;
1: - union {
1: - struct vblk_comp comp;
1: - struct vblk_dgrp dgrp;
1: - struct vblk_disk disk;
1: - struct vblk_part part;
1: - struct vblk_volu volu;
1: - } vblk;
1: - struct list_head list;
1: + u8 name[64];
1: + u64 obj_id;
1: + u32 sequence;
1: + u8 flags;
1: + u8 type;
1: + union {
1: + struct vblk_comp comp;
1: + struct vblk_dgrp dgrp;
1: + struct vblk_disk disk;
1: + struct vblk_part part;
1: + struct vblk_volu volu;
1: + } vblk;
1: + struct list_head list;
1: };
1:
1: struct ldmdb {
1: - struct privhead ph;
1: - struct tocblock toc;
1: - struct vmdb vm;
1: - struct list_head v_dgrp;
1: - struct list_head v_disk;
1: - struct list_head v_volu;
1: - struct list_head v_comp;
1: - struct list_head v_part;
1: + struct privhead ph;
1: + struct tocblock toc;
1: + struct vmdb vm;
1: + struct list_head v_dgrp;
1: + struct list_head v_disk;
1: + struct list_head v_volu;
1: + struct list_head v_comp;
1: + struct list_head v_part;
1: };
1:
1: struct fat_boot_sector {
1: - __u8 ignored[3];
1: - __u8 system_id[8];
1: - __u8 sector_size[2];
1: - __u8 sec_per_clus;
1: - __le16 reserved;
1: - __u8 fats;
1: - __u8 dir_entries[2];
1: - __u8 sectors[2];
1: - __u8 media;
1: - __le16 fat_length;
1: - __le16 secs_track;
1: - __le16 heads;
1: - __le32 hidden;
1: - __le32 total_sect;
1: - union {
1: - struct {
1: - __u8 drive_number;
1: - __u8 state;
1: - __u8 signature;
1: - __u8 vol_id[4];
1: - __u8 vol_label[11];
1: - __u8 fs_type[8];
1: - } fat16;
1: - struct {
1: - __le32 length;
1: - __le16 flags;
1: - __u8 version[2];
1: - __le32 root_cluster;
1: - __le16 info_sector;
1: - __le16 backup_boot;
1: - __le16 reserved2[6];
1: - __u8 drive_number;
1: - __u8 state;
1: - __u8 signature;
1: - __u8 vol_id[4];
1: - __u8 vol_label[11];
1: - __u8 fs_type[8];
1: - } fat32;
1: - };
1: + __u8 ignored[3];
1: + __u8 system_id[8];
1: + __u8 sector_size[2];
1: + __u8 sec_per_clus;
1: + __le16 reserved;
1: + __u8 fats;
1: + __u8 dir_entries[2];
1: + __u8 sectors[2];
1: + __u8 media;
1: + __le16 fat_length;
1: + __le16 secs_track;
1: + __le16 heads;
1: + __le32 hidden;
1: + __le32 total_sect;
1: + union {
1: + struct {
1: + __u8 drive_number;
1: + __u8 state;
1: + __u8 signature;
1: + __u8 vol_id[4];
1: + __u8 vol_label[11];
1: + __u8 fs_type[8];
1: + } fat16;
1: + struct {
1: + __le32 length;
1: + __le16 flags;
1: + __u8 version[2];
1: + __le32 root_cluster;
1: + __le16 info_sector;
1: + __le16 backup_boot;
1: + __le16 reserved2[6];
1: + __u8 drive_number;
1: + __u8 state;
1: + __u8 signature;
1: + __u8 vol_id[4];
1: + __u8 vol_label[11];
1: + __u8 fs_type[8];
1: + } fat32;
1: + };
1: };
1:
1: enum msdos_sys_ind {
1: - DOS_EXTENDED_PARTITION = 5,
1: - LINUX_EXTENDED_PARTITION = 133,
1: - WIN98_EXTENDED_PARTITION = 15,
1: - LINUX_DATA_PARTITION = 131,
1: - LINUX_LVM_PARTITION = 142,
1: - LINUX_RAID_PARTITION = 253,
1: - SOLARIS_X86_PARTITION = 130,
1: - NEW_SOLARIS_X86_PARTITION = 191,
1: - DM6_AUX1PARTITION = 81,
1: - DM6_AUX3PARTITION = 83,
1: - DM6_PARTITION = 84,
1: - EZD_PARTITION = 85,
1: - FREEBSD_PARTITION = 165,
1: - OPENBSD_PARTITION = 166,
1: - NETBSD_PARTITION = 169,
1: - BSDI_PARTITION = 183,
1: - MINIX_PARTITION = 129,
1: - UNIXWARE_PARTITION = 99,
1: + DOS_EXTENDED_PARTITION = 5,
1: + LINUX_EXTENDED_PARTITION = 133,
1: + WIN98_EXTENDED_PARTITION = 15,
1: + LINUX_DATA_PARTITION = 131,
1: + LINUX_LVM_PARTITION = 142,
1: + LINUX_RAID_PARTITION = 253,
1: + SOLARIS_X86_PARTITION = 130,
1: + NEW_SOLARIS_X86_PARTITION = 191,
1: + DM6_AUX1PARTITION = 81,
1: + DM6_AUX3PARTITION = 83,
1: + DM6_PARTITION = 84,
1: + EZD_PARTITION = 85,
1: + FREEBSD_PARTITION = 165,
1: + OPENBSD_PARTITION = 166,
1: + NETBSD_PARTITION = 169,
1: + BSDI_PARTITION = 183,
1: + MINIX_PARTITION = 129,
1: + UNIXWARE_PARTITION = 99,
1: };
1:
1: struct solaris_x86_slice {
1: - __le16 s_tag;
1: - __le16 s_flag;
1: - __le32 s_start;
1: - __le32 s_size;
1: + __le16 s_tag;
1: + __le16 s_flag;
1: + __le32 s_start;
1: + __le32 s_size;
1: };
1:
1: struct solaris_x86_vtoc {
1: - unsigned int v_bootinfo[3];
1: - __le32 v_sanity;
1: - __le32 v_version;
1: - char v_volume[8];
1: - __le16 v_sectorsz;
1: - __le16 v_nparts;
1: - unsigned int v_reserved[10];
1: - struct solaris_x86_slice v_slice[16];
1: - unsigned int timestamp[16];
1: - char v_asciilabel[128];
1: + unsigned int v_bootinfo[3];
1: + __le32 v_sanity;
1: + __le32 v_version;
1: + char v_volume[8];
1: + __le16 v_sectorsz;
1: + __le16 v_nparts;
1: + unsigned int v_reserved[10];
1: + struct solaris_x86_slice v_slice[16];
1: + unsigned int timestamp[16];
1: + char v_asciilabel[128];
1: };
1:
1: struct bsd_partition {
1: - __le32 p_size;
1: - __le32 p_offset;
1: - __le32 p_fsize;
1: - __u8 p_fstype;
1: - __u8 p_frag;
1: - __le16 p_cpg;
1: + __le32 p_size;
1: + __le32 p_offset;
1: + __le32 p_fsize;
1: + __u8 p_fstype;
1: + __u8 p_frag;
1: + __le16 p_cpg;
1: };
1:
1: struct bsd_disklabel {
1: - __le32 d_magic;
1: - __s16 d_type;
1: - __s16 d_subtype;
1: - char d_typename[16];
1: - char d_packname[16];
1: - __u32 d_secsize;
1: - __u32 d_nsectors;
1: - __u32 d_ntracks;
1: - __u32 d_ncylinders;
1: - __u32 d_secpercyl;
1: - __u32 d_secperunit;
1: - __u16 d_sparespertrack;
1: - __u16 d_sparespercyl;
1: - __u32 d_acylinders;
1: - __u16 d_rpm;
1: - __u16 d_interleave;
1: - __u16 d_trackskew;
1: - __u16 d_cylskew;
1: - __u32 d_headswitch;
1: - __u32 d_trkseek;
1: - __u32 d_flags;
1: - __u32 d_drivedata[5];
1: - __u32 d_spare[5];
1: - __le32 d_magic2;
1: - __le16 d_checksum;
1: - __le16 d_npartitions;
1: - __le32 d_bbsize;
1: - __le32 d_sbsize;
1: - struct bsd_partition d_partitions[16];
1: + __le32 d_magic;
1: + __s16 d_type;
1: + __s16 d_subtype;
1: + char d_typename[16];
1: + char d_packname[16];
1: + __u32 d_secsize;
1: + __u32 d_nsectors;
1: + __u32 d_ntracks;
1: + __u32 d_ncylinders;
1: + __u32 d_secpercyl;
1: + __u32 d_secperunit;
1: + __u16 d_sparespertrack;
1: + __u16 d_sparespercyl;
1: + __u32 d_acylinders;
1: + __u16 d_rpm;
1: + __u16 d_interleave;
1: + __u16 d_trackskew;
1: + __u16 d_cylskew;
1: + __u32 d_headswitch;
1: + __u32 d_trkseek;
1: + __u32 d_flags;
1: + __u32 d_drivedata[5];
1: + __u32 d_spare[5];
1: + __le32 d_magic2;
1: + __le16 d_checksum;
1: + __le16 d_npartitions;
1: + __le32 d_bbsize;
1: + __le32 d_sbsize;
1: + struct bsd_partition d_partitions[16];
1: };
1:
1: struct unixware_slice {
1: - __le16 s_label;
1: - __le16 s_flags;
1: - __le32 start_sect;
1: - __le32 nr_sects;
1: + __le16 s_label;
1: + __le16 s_flags;
1: + __le32 start_sect;
1: + __le32 nr_sects;
1: };
1:
1: struct unixware_vtoc {
1: - __le32 v_magic;
1: - __le32 v_version;
1: - char v_name[8];
1: - __le16 v_nslices;
1: - __le16 v_unknown1;
1: - __le32 v_reserved[10];
1: - struct unixware_slice v_slice[16];
1: + __le32 v_magic;
1: + __le32 v_version;
1: + char v_name[8];
1: + __le16 v_nslices;
1: + __le16 v_unknown1;
1: + __le32 v_reserved[10];
1: + struct unixware_slice v_slice[16];
1: };
1:
1: struct unixware_disklabel {
1: - __le32 d_type;
1: - __le32 d_magic;
1: - __le32 d_version;
1: - char d_serial[12];
1: - __le32 d_ncylinders;
1: - __le32 d_ntracks;
1: - __le32 d_nsectors;
1: - __le32 d_secsize;
1: - __le32 d_part_start;
1: - __le32 d_unknown1[12];
1: - __le32 d_alt_tbl;
1: - __le32 d_alt_len;
1: - __le32 d_phys_cyl;
1: - __le32 d_phys_trk;
1: - __le32 d_phys_sec;
1: - __le32 d_phys_bytes;
1: - __le32 d_unknown2;
1: - __le32 d_unknown3;
1: - __le32 d_pad[8];
1: - struct unixware_vtoc vtoc;
1: + __le32 d_type;
1: + __le32 d_magic;
1: + __le32 d_version;
1: + char d_serial[12];
1: + __le32 d_ncylinders;
1: + __le32 d_ntracks;
1: + __le32 d_nsectors;
1: + __le32 d_secsize;
1: + __le32 d_part_start;
1: + __le32 d_unknown1[12];
1: + __le32 d_alt_tbl;
1: + __le32 d_alt_len;
1: + __le32 d_phys_cyl;
1: + __le32 d_phys_trk;
1: + __le32 d_phys_sec;
1: + __le32 d_phys_bytes;
1: + __le32 d_unknown2;
1: + __le32 d_unknown3;
1: + __le32 d_pad[8];
1: + struct unixware_vtoc vtoc;
1: };
1:
1: struct d_partition {
1: - __le32 p_size;
1: - __le32 p_offset;
1: - __le32 p_fsize;
1: - u8 p_fstype;
1: - u8 p_frag;
1: - __le16 p_cpg;
1: + __le32 p_size;
1: + __le32 p_offset;
1: + __le32 p_fsize;
1: + u8 p_fstype;
1: + u8 p_frag;
1: + __le16 p_cpg;
1: };
1:
1: struct disklabel {
1: - __le32 d_magic;
1: - __le16 d_type;
1: - __le16 d_subtype;
1: - u8 d_typename[16];
1: - u8 d_packname[16];
1: - __le32 d_secsize;
1: - __le32 d_nsectors;
1: - __le32 d_ntracks;
1: - __le32 d_ncylinders;
1: - __le32 d_secpercyl;
1: - __le32 d_secprtunit;
1: - __le16 d_sparespertrack;
1: - __le16 d_sparespercyl;
1: - __le32 d_acylinders;
1: - __le16 d_rpm;
1: - __le16 d_interleave;
1: - __le16 d_trackskew;
1: - __le16 d_cylskew;
1: - __le32 d_headswitch;
1: - __le32 d_trkseek;
1: - __le32 d_flags;
1: - __le32 d_drivedata[5];
1: - __le32 d_spare[5];
1: - __le32 d_magic2;
1: - __le16 d_checksum;
1: - __le16 d_npartitions;
1: - __le32 d_bbsize;
1: - __le32 d_sbsize;
1: - struct d_partition d_partitions[18];
1: -};
1: -
1: -enum {
1: - LINUX_RAID_PARTITION___2 = 253,
1: + __le32 d_magic;
1: + __le16 d_type;
1: + __le16 d_subtype;
1: + u8 d_typename[16];
1: + u8 d_packname[16];
1: + __le32 d_secsize;
1: + __le32 d_nsectors;
1: + __le32 d_ntracks;
1: + __le32 d_ncylinders;
1: + __le32 d_secpercyl;
1: + __le32 d_secprtunit;
1: + __le16 d_sparespertrack;
1: + __le16 d_sparespercyl;
1: + __le32 d_acylinders;
1: + __le16 d_rpm;
1: + __le16 d_interleave;
1: + __le16 d_trackskew;
1: + __le16 d_cylskew;
1: + __le32 d_headswitch;
1: + __le32 d_trkseek;
1: + __le32 d_flags;
1: + __le32 d_drivedata[5];
1: + __le32 d_spare[5];
1: + __le32 d_magic2;
1: + __le16 d_checksum;
1: + __le16 d_npartitions;
1: + __le32 d_bbsize;
1: + __le32 d_sbsize;
1: + struct d_partition d_partitions[18];
1: +};
1: +
1: +enum {
1: + LINUX_RAID_PARTITION___2 = 253,
1: };
1:
1: struct sgi_volume {
1: - s8 name[8];
1: - __be32 block_num;
1: - __be32 num_bytes;
1: + s8 name[8];
1: + __be32 block_num;
1: + __be32 num_bytes;
1: };
1:
1: struct sgi_partition {
1: - __be32 num_blocks;
1: - __be32 first_block;
1: - __be32 type;
1: + __be32 num_blocks;
1: + __be32 first_block;
1: + __be32 type;
1: };
1:
1: struct sgi_disklabel {
1: - __be32 magic_mushroom;
1: - __be16 root_part_num;
1: - __be16 swap_part_num;
1: - s8 boot_file[16];
1: - u8 _unused0[48];
1: - struct sgi_volume volume[15];
1: - struct sgi_partition partitions[16];
1: - __be32 csum;
1: - __be32 _unused1;
1: + __be32 magic_mushroom;
1: + __be16 root_part_num;
1: + __be16 swap_part_num;
1: + s8 boot_file[16];
1: + u8 _unused0[48];
1: + struct sgi_volume volume[15];
1: + struct sgi_partition partitions[16];
1: + __be32 csum;
1: + __be32 _unused1;
1: };
1:
1: enum {
1: - SUN_WHOLE_DISK = 5,
1: - LINUX_RAID_PARTITION___3 = 253,
1: + SUN_WHOLE_DISK = 5,
1: + LINUX_RAID_PARTITION___3 = 253,
1: };
1:
1: struct sun_info {
1: - __be16 id;
1: - __be16 flags;
1: + __be16 id;
1: + __be16 flags;
1: };
1:
1: struct sun_vtoc {
1: - __be32 version;
1: - char volume[8];
1: - __be16 nparts;
1: - struct sun_info infos[8];
1: - __be16 padding;
1: - __be32 bootinfo[3];
1: - __be32 sanity;
1: - __be32 reserved[10];
1: - __be32 timestamp[8];
1: + __be32 version;
1: + char volume[8];
1: + __be16 nparts;
1: + struct sun_info infos[8];
1: + __be16 padding;
1: + __be32 bootinfo[3];
1: + __be32 sanity;
1: + __be32 reserved[10];
1: + __be32 timestamp[8];
1: };
1:
1: struct sun_partition {
1: - __be32 start_cylinder;
1: - __be32 num_sectors;
1: + __be32 start_cylinder;
1: + __be32 num_sectors;
1: };
1:
1: struct sun_disklabel {
1: - unsigned char info[128];
1: - struct sun_vtoc vtoc;
1: - __be32 write_reinstruct;
1: - __be32 read_reinstruct;
1: - unsigned char spare[148];
1: - __be16 rspeed;
1: - __be16 pcylcount;
1: - __be16 sparecyl;
1: - __be16 obs1;
1: - __be16 obs2;
1: - __be16 ilfact;
1: - __be16 ncyl;
1: - __be16 nacyl;
1: - __be16 ntrks;
1: - __be16 nsect;
1: - __be16 obs3;
1: - __be16 obs4;
1: - struct sun_partition partitions[8];
1: - __be16 magic;
1: - __be16 csum;
1: + unsigned char info[128];
1: + struct sun_vtoc vtoc;
1: + __be32 write_reinstruct;
1: + __be32 read_reinstruct;
1: + unsigned char spare[148];
1: + __be16 rspeed;
1: + __be16 pcylcount;
1: + __be16 sparecyl;
1: + __be16 obs1;
1: + __be16 obs2;
1: + __be16 ilfact;
1: + __be16 ncyl;
1: + __be16 nacyl;
1: + __be16 ntrks;
1: + __be16 nsect;
1: + __be16 obs3;
1: + __be16 obs4;
1: + struct sun_partition partitions[8];
1: + __be16 magic;
1: + __be16 csum;
1: };
1:
1: struct pt_info {
1: - s32 pi_nblocks;
1: - u32 pi_blkoff;
1: + s32 pi_nblocks;
1: + u32 pi_blkoff;
1: };
1:
1: struct ultrix_disklabel {
1: - s32 pt_magic;
1: - s32 pt_valid;
1: - struct pt_info pt_part[8];
1: + s32 pt_magic;
1: + s32 pt_valid;
1: + struct pt_info pt_part[8];
1: };
1:
1: struct _gpt_header {
1: - __le64 signature;
1: - __le32 revision;
1: - __le32 header_size;
1: - __le32 header_crc32;
1: - __le32 reserved1;
1: - __le64 my_lba;
1: - __le64 alternate_lba;
1: - __le64 first_usable_lba;
1: - __le64 last_usable_lba;
1: - efi_guid_t disk_guid;
1: - __le64 partition_entry_lba;
1: - __le32 num_partition_entries;
1: - __le32 sizeof_partition_entry;
1: - __le32 partition_entry_array_crc32;
1: + __le64 signature;
1: + __le32 revision;
1: + __le32 header_size;
1: + __le32 header_crc32;
1: + __le32 reserved1;
1: + __le64 my_lba;
1: + __le64 alternate_lba;
1: + __le64 first_usable_lba;
1: + __le64 last_usable_lba;
1: + efi_guid_t disk_guid;
1: + __le64 partition_entry_lba;
1: + __le32 num_partition_entries;
1: + __le32 sizeof_partition_entry;
1: + __le32 partition_entry_array_crc32;
1: } __attribute__((packed));
1:
1: typedef struct _gpt_header gpt_header;
1:
1: struct _gpt_entry_attributes {
1: - u64 required_to_function: 1;
1: - u64 reserved: 47;
1: - u64 type_guid_specific: 16;
1: + u64 required_to_function : 1;
1: + u64 reserved : 47;
1: + u64 type_guid_specific : 16;
1: };
1:
1: typedef struct _gpt_entry_attributes gpt_entry_attributes;
1:
1: struct _gpt_entry {
1: - efi_guid_t partition_type_guid;
1: - efi_guid_t unique_partition_guid;
1: - __le64 starting_lba;
1: - __le64 ending_lba;
1: - gpt_entry_attributes attributes;
1: - __le16 partition_name[36];
1: + efi_guid_t partition_type_guid;
1: + efi_guid_t unique_partition_guid;
1: + __le64 starting_lba;
1: + __le64 ending_lba;
1: + gpt_entry_attributes attributes;
1: + __le16 partition_name[36];
1: };
1:
1: typedef struct _gpt_entry gpt_entry;
1:
1: struct _gpt_mbr_record {
1: - u8 boot_indicator;
1: - u8 start_head;
1: - u8 start_sector;
1: - u8 start_track;
1: - u8 os_type;
1: - u8 end_head;
1: - u8 end_sector;
1: - u8 end_track;
1: - __le32 starting_lba;
1: - __le32 size_in_lba;
1: + u8 boot_indicator;
1: + u8 start_head;
1: + u8 start_sector;
1: + u8 start_track;
1: + u8 os_type;
1: + u8 end_head;
1: + u8 end_sector;
1: + u8 end_track;
1: + __le32 starting_lba;
1: + __le32 size_in_lba;
1: };
1:
1: typedef struct _gpt_mbr_record gpt_mbr_record;
1:
1: struct _legacy_mbr {
1: - u8 boot_code[440];
1: - __le32 unique_mbr_signature;
1: - __le16 unknown;
1: - gpt_mbr_record partition_record[4];
1: - __le16 signature;
1: + u8 boot_code[440];
1: + __le32 unique_mbr_signature;
1: + __le16 unknown;
1: + gpt_mbr_record partition_record[4];
1: + __le16 signature;
1: } __attribute__((packed));
1:
1: typedef struct _legacy_mbr legacy_mbr;
1:
1: struct d_partition___2 {
1: - __le32 p_res;
1: - u8 p_fstype;
1: - u8 p_res2[3];
1: - __le32 p_offset;
1: - __le32 p_size;
1: + __le32 p_res;
1: + u8 p_fstype;
1: + u8 p_res2[3];
1: + __le32 p_offset;
1: + __le32 p_size;
1: };
1:
1: struct disklabel___2 {
1: - u8 d_reserved[270];
1: - struct d_partition___2 d_partitions[2];
1: - u8 d_blank[208];
1: - __le16 d_magic;
1: + u8 d_reserved[270];
1: + struct d_partition___2 d_partitions[2];
1: + u8 d_blank[208];
1: + __le16 d_magic;
1: } __attribute__((packed));
1:
1: struct volumeid {
1: - u8 vid_unused[248];
1: - u8 vid_mac[8];
1: + u8 vid_unused[248];
1: + u8 vid_mac[8];
1: };
1:
1: struct dkconfig {
1: - u8 ios_unused0[128];
1: - __be32 ios_slcblk;
1: - __be16 ios_slccnt;
1: - u8 ios_unused1[122];
1: + u8 ios_unused0[128];
1: + __be32 ios_slcblk;
1: + __be16 ios_slccnt;
1: + u8 ios_unused1[122];
1: };
1:
1: struct dkblk0 {
1: - struct volumeid dk_vid;
1: - struct dkconfig dk_ios;
1: + struct volumeid dk_vid;
1: + struct dkconfig dk_ios;
1: };
1:
1: struct slice {
1: - __be32 nblocks;
1: - __be32 blkoff;
1: + __be32 nblocks;
1: + __be32 blkoff;
1: };
1:
1: struct rq_wait {
1: - wait_queue_head_t wait;
1: - atomic_t inflight;
1: + wait_queue_head_t wait;
1: + atomic_t inflight;
1: };
1:
1: struct rq_depth {
1: - unsigned int max_depth;
1: - int scale_step;
1: - bool scaled_max;
1: - unsigned int queue_depth;
1: - unsigned int default_depth;
1: + unsigned int max_depth;
1: + int scale_step;
1: + bool scaled_max;
1: + unsigned int queue_depth;
1: + unsigned int default_depth;
1: };
1:
1: typedef bool acquire_inflight_cb_t(struct rq_wait *, void *);
1: @@ -53961,248 +54783,249 @@ typedef bool acquire_inflight_cb_t(struct rq_wait *, void *);
1: typedef void cleanup_cb_t(struct rq_wait *, void *);
1:
1: struct rq_qos_wait_data {
1: - struct wait_queue_entry wq;
1: - struct task_struct *task;
1: - struct rq_wait *rqw;
1: - acquire_inflight_cb_t *cb;
1: - void *private_data;
1: - bool got_token;
1: + struct wait_queue_entry wq;
1: + struct task_struct *task;
1: + struct rq_wait *rqw;
1: + acquire_inflight_cb_t *cb;
1: + void *private_data;
1: + bool got_token;
1: };
1:
1: struct cdrom_device_ops;
1:
1: struct cdrom_device_info {
1: - const struct cdrom_device_ops *ops;
1: - struct list_head list;
1: - struct gendisk *disk;
1: - void *handle;
1: - int mask;
1: - int speed;
1: - int capacity;
1: - unsigned int options: 30;
1: - unsigned int mc_flags: 2;
1: - unsigned int vfs_events;
1: - unsigned int ioctl_events;
1: - int use_count;
1: - char name[20];
1: - __u8 sanyo_slot: 2;
1: - __u8 keeplocked: 1;
1: - __u8 reserved: 5;
1: - int cdda_method;
1: - __u8 last_sense;
1: - __u8 media_written;
1: - short unsigned int mmc3_profile;
1: - int for_data;
1: - int (*exit)(struct cdrom_device_info *);
1: - int mrw_mode_page;
1: + const struct cdrom_device_ops *ops;
1: + struct list_head list;
1: + struct gendisk *disk;
1: + void *handle;
1: + int mask;
1: + int speed;
1: + int capacity;
1: + unsigned int options : 30;
1: + unsigned int mc_flags : 2;
1: + unsigned int vfs_events;
1: + unsigned int ioctl_events;
1: + int use_count;
1: + char name[20];
1: + __u8 sanyo_slot : 2;
1: + __u8 keeplocked : 1;
1: + __u8 reserved : 5;
1: + int cdda_method;
1: + __u8 last_sense;
1: + __u8 media_written;
1: + short unsigned int mmc3_profile;
1: + int for_data;
1: + int (*exit)(struct cdrom_device_info *);
1: + int mrw_mode_page;
1: };
1:
1: struct scsi_sense_hdr {
1: - u8 response_code;
1: - u8 sense_key;
1: - u8 asc;
1: - u8 ascq;
1: - u8 byte4;
1: - u8 byte5;
1: - u8 byte6;
1: - u8 additional_length;
1: + u8 response_code;
1: + u8 sense_key;
1: + u8 asc;
1: + u8 ascq;
1: + u8 byte4;
1: + u8 byte5;
1: + u8 byte6;
1: + u8 additional_length;
1: };
1:
1: struct cdrom_msf0 {
1: - __u8 minute;
1: - __u8 second;
1: - __u8 frame;
1: + __u8 minute;
1: + __u8 second;
1: + __u8 frame;
1: };
1:
1: union cdrom_addr {
1: - struct cdrom_msf0 msf;
1: - int lba;
1: + struct cdrom_msf0 msf;
1: + int lba;
1: };
1:
1: struct cdrom_multisession {
1: - union cdrom_addr addr;
1: - __u8 xa_flag;
1: - __u8 addr_format;
1: + union cdrom_addr addr;
1: + __u8 xa_flag;
1: + __u8 addr_format;
1: };
1:
1: struct cdrom_mcn {
1: - __u8 medium_catalog_number[14];
1: + __u8 medium_catalog_number[14];
1: };
1:
1: struct request_sense;
1:
1: struct cdrom_generic_command {
1: - unsigned char cmd[12];
1: - unsigned char *buffer;
1: - unsigned int buflen;
1: - int stat;
1: - struct request_sense *sense;
1: - unsigned char data_direction;
1: - int quiet;
1: - int timeout;
1: - union {
1: - void *reserved[1];
1: - void *unused;
1: - };
1: + unsigned char cmd[12];
1: + unsigned char *buffer;
1: + unsigned int buflen;
1: + int stat;
1: + struct request_sense *sense;
1: + unsigned char data_direction;
1: + int quiet;
1: + int timeout;
1: + union {
1: + void *reserved[1];
1: + void *unused;
1: + };
1: };
1:
1: struct request_sense {
1: - __u8 error_code: 7;
1: - __u8 valid: 1;
1: - __u8 segment_number;
1: - __u8 sense_key: 4;
1: - __u8 reserved2: 1;
1: - __u8 ili: 1;
1: - __u8 reserved1: 2;
1: - __u8 information[4];
1: - __u8 add_sense_len;
1: - __u8 command_info[4];
1: - __u8 asc;
1: - __u8 ascq;
1: - __u8 fruc;
1: - __u8 sks[3];
1: - __u8 asb[46];
1: + __u8 error_code : 7;
1: + __u8 valid : 1;
1: + __u8 segment_number;
1: + __u8 sense_key : 4;
1: + __u8 reserved2 : 1;
1: + __u8 ili : 1;
1: + __u8 reserved1 : 2;
1: + __u8 information[4];
1: + __u8 add_sense_len;
1: + __u8 command_info[4];
1: + __u8 asc;
1: + __u8 ascq;
1: + __u8 fruc;
1: + __u8 sks[3];
1: + __u8 asb[46];
1: };
1:
1: struct packet_command {
1: - unsigned char cmd[12];
1: - unsigned char *buffer;
1: - unsigned int buflen;
1: - int stat;
1: - struct scsi_sense_hdr *sshdr;
1: - unsigned char data_direction;
1: - int quiet;
1: - int timeout;
1: - void *reserved[1];
1: + unsigned char cmd[12];
1: + unsigned char *buffer;
1: + unsigned int buflen;
1: + int stat;
1: + struct scsi_sense_hdr *sshdr;
1: + unsigned char data_direction;
1: + int quiet;
1: + int timeout;
1: + void *reserved[1];
1: };
1:
1: struct cdrom_device_ops {
1: - int (*open)(struct cdrom_device_info *, int);
1: - void (*release)(struct cdrom_device_info *);
1: - int (*drive_status)(struct cdrom_device_info *, int);
1: - unsigned int (*check_events)(struct cdrom_device_info *, unsigned int, int);
1: - int (*tray_move)(struct cdrom_device_info *, int);
1: - int (*lock_door)(struct cdrom_device_info *, int);
1: - int (*select_speed)(struct cdrom_device_info *, int);
1: - int (*select_disc)(struct cdrom_device_info *, int);
1: - int (*get_last_session)(struct cdrom_device_info *, struct cdrom_multisession *);
1: - int (*get_mcn)(struct cdrom_device_info *, struct cdrom_mcn *);
1: - int (*reset)(struct cdrom_device_info *);
1: - int (*audio_ioctl)(struct cdrom_device_info *, unsigned int, void *);
1: - const int capability;
1: - int (*generic_packet)(struct cdrom_device_info *, struct packet_command *);
1: + int (*open)(struct cdrom_device_info *, int);
1: + void (*release)(struct cdrom_device_info *);
1: + int (*drive_status)(struct cdrom_device_info *, int);
1: + unsigned int (*check_events)(struct cdrom_device_info *, unsigned int, int);
1: + int (*tray_move)(struct cdrom_device_info *, int);
1: + int (*lock_door)(struct cdrom_device_info *, int);
1: + int (*select_speed)(struct cdrom_device_info *, int);
1: + int (*select_disc)(struct cdrom_device_info *, int);
1: + int (*get_last_session)(struct cdrom_device_info *,
1: + struct cdrom_multisession *);
1: + int (*get_mcn)(struct cdrom_device_info *, struct cdrom_mcn *);
1: + int (*reset)(struct cdrom_device_info *);
1: + int (*audio_ioctl)(struct cdrom_device_info *, unsigned int, void *);
1: + const int capability;
1: + int (*generic_packet)(struct cdrom_device_info *, struct packet_command *);
1: };
1:
1: struct scsi_ioctl_command {
1: - unsigned int inlen;
1: - unsigned int outlen;
1: - unsigned char data[0];
1: + unsigned int inlen;
1: + unsigned int outlen;
1: + unsigned char data[0];
1: };
1:
1: enum scsi_device_event {
1: - SDEV_EVT_MEDIA_CHANGE = 1,
1: - SDEV_EVT_INQUIRY_CHANGE_REPORTED = 2,
1: - SDEV_EVT_CAPACITY_CHANGE_REPORTED = 3,
1: - SDEV_EVT_SOFT_THRESHOLD_REACHED_REPORTED = 4,
1: - SDEV_EVT_MODE_PARAMETER_CHANGE_REPORTED = 5,
1: - SDEV_EVT_LUN_CHANGE_REPORTED = 6,
1: - SDEV_EVT_ALUA_STATE_CHANGE_REPORTED = 7,
1: - SDEV_EVT_POWER_ON_RESET_OCCURRED = 8,
1: - SDEV_EVT_FIRST = 1,
1: - SDEV_EVT_LAST = 8,
1: - SDEV_EVT_MAXBITS = 9,
1: + SDEV_EVT_MEDIA_CHANGE = 1,
1: + SDEV_EVT_INQUIRY_CHANGE_REPORTED = 2,
1: + SDEV_EVT_CAPACITY_CHANGE_REPORTED = 3,
1: + SDEV_EVT_SOFT_THRESHOLD_REACHED_REPORTED = 4,
1: + SDEV_EVT_MODE_PARAMETER_CHANGE_REPORTED = 5,
1: + SDEV_EVT_LUN_CHANGE_REPORTED = 6,
1: + SDEV_EVT_ALUA_STATE_CHANGE_REPORTED = 7,
1: + SDEV_EVT_POWER_ON_RESET_OCCURRED = 8,
1: + SDEV_EVT_FIRST = 1,
1: + SDEV_EVT_LAST = 8,
1: + SDEV_EVT_MAXBITS = 9,
1: };
1:
1: struct scsi_request {
1: - unsigned char __cmd[16];
1: - unsigned char *cmd;
1: - short unsigned int cmd_len;
1: - int result;
1: - unsigned int sense_len;
1: - unsigned int resid_len;
1: - int retries;
1: - void *sense;
1: + unsigned char __cmd[16];
1: + unsigned char *cmd;
1: + short unsigned int cmd_len;
1: + int result;
1: + unsigned int sense_len;
1: + unsigned int resid_len;
1: + int retries;
1: + void *sense;
1: };
1:
1: struct sg_io_hdr {
1: - int interface_id;
1: - int dxfer_direction;
1: - unsigned char cmd_len;
1: - unsigned char mx_sb_len;
1: - short unsigned int iovec_count;
1: - unsigned int dxfer_len;
1: - void *dxferp;
1: - unsigned char *cmdp;
1: - void *sbp;
1: - unsigned int timeout;
1: - unsigned int flags;
1: - int pack_id;
1: - void *usr_ptr;
1: - unsigned char status;
1: - unsigned char masked_status;
1: - unsigned char msg_status;
1: - unsigned char sb_len_wr;
1: - short unsigned int host_status;
1: - short unsigned int driver_status;
1: - int resid;
1: - unsigned int duration;
1: - unsigned int info;
1: + int interface_id;
1: + int dxfer_direction;
1: + unsigned char cmd_len;
1: + unsigned char mx_sb_len;
1: + short unsigned int iovec_count;
1: + unsigned int dxfer_len;
1: + void *dxferp;
1: + unsigned char *cmdp;
1: + void *sbp;
1: + unsigned int timeout;
1: + unsigned int flags;
1: + int pack_id;
1: + void *usr_ptr;
1: + unsigned char status;
1: + unsigned char masked_status;
1: + unsigned char msg_status;
1: + unsigned char sb_len_wr;
1: + short unsigned int host_status;
1: + short unsigned int driver_status;
1: + int resid;
1: + unsigned int duration;
1: + unsigned int info;
1: };
1:
1: struct compat_sg_io_hdr {
1: - compat_int_t interface_id;
1: - compat_int_t dxfer_direction;
1: - unsigned char cmd_len;
1: - unsigned char mx_sb_len;
1: - short unsigned int iovec_count;
1: - compat_uint_t dxfer_len;
1: - compat_uint_t dxferp;
1: - compat_uptr_t cmdp;
1: - compat_uptr_t sbp;
1: - compat_uint_t timeout;
1: - compat_uint_t flags;
1: - compat_int_t pack_id;
1: - compat_uptr_t usr_ptr;
1: - unsigned char status;
1: - unsigned char masked_status;
1: - unsigned char msg_status;
1: - unsigned char sb_len_wr;
1: - short unsigned int host_status;
1: - short unsigned int driver_status;
1: - compat_int_t resid;
1: - compat_uint_t duration;
1: - compat_uint_t info;
1: + compat_int_t interface_id;
1: + compat_int_t dxfer_direction;
1: + unsigned char cmd_len;
1: + unsigned char mx_sb_len;
1: + short unsigned int iovec_count;
1: + compat_uint_t dxfer_len;
1: + compat_uint_t dxferp;
1: + compat_uptr_t cmdp;
1: + compat_uptr_t sbp;
1: + compat_uint_t timeout;
1: + compat_uint_t flags;
1: + compat_int_t pack_id;
1: + compat_uptr_t usr_ptr;
1: + unsigned char status;
1: + unsigned char masked_status;
1: + unsigned char msg_status;
1: + unsigned char sb_len_wr;
1: + short unsigned int host_status;
1: + short unsigned int driver_status;
1: + compat_int_t resid;
1: + compat_uint_t duration;
1: + compat_uint_t info;
1: };
1:
1: struct blk_cmd_filter {
1: - long unsigned int read_ok[4];
1: - long unsigned int write_ok[4];
1: + long unsigned int read_ok[4];
1: + long unsigned int write_ok[4];
1: };
1:
1: struct compat_cdrom_generic_command {
1: - unsigned char cmd[12];
1: - compat_caddr_t buffer;
1: - compat_uint_t buflen;
1: - compat_int_t stat;
1: - compat_caddr_t sense;
1: - unsigned char data_direction;
1: - unsigned char pad[3];
1: - compat_int_t quiet;
1: - compat_int_t timeout;
1: - compat_caddr_t unused;
1: + unsigned char cmd[12];
1: + compat_caddr_t buffer;
1: + compat_uint_t buflen;
1: + compat_int_t stat;
1: + compat_caddr_t sense;
1: + unsigned char data_direction;
1: + unsigned char pad[3];
1: + compat_int_t quiet;
1: + compat_int_t timeout;
1: + compat_caddr_t unused;
1: };
1:
1: enum {
1: - OMAX_SB_LEN = 16,
1: + OMAX_SB_LEN = 16,
1: };
1:
1: struct bsg_device {
1: - struct request_queue *queue;
1: - spinlock_t lock;
1: - struct hlist_node dev_list;
1: - refcount_t ref_count;
1: - char name[20];
1: - int max_queue;
1: + struct request_queue *queue;
1: + spinlock_t lock;
1: + struct hlist_node dev_list;
1: + refcount_t ref_count;
1: + char name[20];
1: + int max_queue;
1: };
1:
1: struct bsg_job;
1: @@ -54210,34 +55033,34 @@ struct bsg_job;
1: typedef int bsg_job_fn(struct bsg_job *);
1:
1: struct bsg_buffer {
1: - unsigned int payload_len;
1: - int sg_cnt;
1: - struct scatterlist *sg_list;
1: + unsigned int payload_len;
1: + int sg_cnt;
1: + struct scatterlist *sg_list;
1: };
1:
1: struct bsg_job {
1: - struct device *dev;
1: - struct kref kref;
1: - unsigned int timeout;
1: - void *request;
1: - void *reply;
1: - unsigned int request_len;
1: - unsigned int reply_len;
1: - struct bsg_buffer request_payload;
1: - struct bsg_buffer reply_payload;
1: - int result;
1: - unsigned int reply_payload_rcv_len;
1: - struct request *bidi_rq;
1: - struct bio *bidi_bio;
1: - void *dd_data;
1: + struct device *dev;
1: + struct kref kref;
1: + unsigned int timeout;
1: + void *request;
1: + void *reply;
1: + unsigned int request_len;
1: + unsigned int reply_len;
1: + struct bsg_buffer request_payload;
1: + struct bsg_buffer reply_payload;
1: + int result;
1: + unsigned int reply_payload_rcv_len;
1: + struct request *bidi_rq;
1: + struct bio *bidi_bio;
1: + void *dd_data;
1: };
1:
1: typedef enum blk_eh_timer_return bsg_timeout_fn(struct request *);
1:
1: struct bsg_set {
1: - struct blk_mq_tag_set tag_set;
1: - bsg_job_fn *job_fn;
1: - bsg_timeout_fn *timeout_fn;
1: + struct blk_mq_tag_set tag_set;
1: + bsg_job_fn *job_fn;
1: + bsg_timeout_fn *timeout_fn;
1: };
1:
1: typedef struct blkcg_policy_data *blkcg_pol_alloc_cpd_fn(gfp_t);
1: @@ -54248,7 +55071,9 @@ typedef void blkcg_pol_free_cpd_fn(struct blkcg_policy_data *);
1:
1: typedef void blkcg_pol_bind_cpd_fn(struct blkcg_policy_data *);
1:
1: -typedef struct blkg_policy_data *blkcg_pol_alloc_pd_fn(gfp_t, struct request_queue *, struct blkcg *);
1: +typedef struct blkg_policy_data *blkcg_pol_alloc_pd_fn(gfp_t,
1: + struct request_queue *,
1: + struct blkcg *);
1:
1: typedef void blkcg_pol_init_pd_fn(struct blkg_policy_data *);
1:
1: @@ -54263,571 +55088,583 @@ typedef void blkcg_pol_reset_pd_stats_fn(struct blkg_policy_data *);
1: typedef size_t blkcg_pol_stat_pd_fn(struct blkg_policy_data *, char *, size_t);
1:
1: struct blkcg_policy {
1: - int plid;
1: - struct cftype *dfl_cftypes;
1: - struct cftype *legacy_cftypes;
1: - blkcg_pol_alloc_cpd_fn *cpd_alloc_fn;
1: - blkcg_pol_init_cpd_fn *cpd_init_fn;
1: - blkcg_pol_free_cpd_fn *cpd_free_fn;
1: - blkcg_pol_bind_cpd_fn *cpd_bind_fn;
1: - blkcg_pol_alloc_pd_fn *pd_alloc_fn;
1: - blkcg_pol_init_pd_fn *pd_init_fn;
1: - blkcg_pol_online_pd_fn *pd_online_fn;
1: - blkcg_pol_offline_pd_fn *pd_offline_fn;
1: - blkcg_pol_free_pd_fn *pd_free_fn;
1: - blkcg_pol_reset_pd_stats_fn *pd_reset_stats_fn;
1: - blkcg_pol_stat_pd_fn *pd_stat_fn;
1: + int plid;
1: + struct cftype *dfl_cftypes;
1: + struct cftype *legacy_cftypes;
1: + blkcg_pol_alloc_cpd_fn *cpd_alloc_fn;
1: + blkcg_pol_init_cpd_fn *cpd_init_fn;
1: + blkcg_pol_free_cpd_fn *cpd_free_fn;
1: + blkcg_pol_bind_cpd_fn *cpd_bind_fn;
1: + blkcg_pol_alloc_pd_fn *pd_alloc_fn;
1: + blkcg_pol_init_pd_fn *pd_init_fn;
1: + blkcg_pol_online_pd_fn *pd_online_fn;
1: + blkcg_pol_offline_pd_fn *pd_offline_fn;
1: + blkcg_pol_free_pd_fn *pd_free_fn;
1: + blkcg_pol_reset_pd_stats_fn *pd_reset_stats_fn;
1: + blkcg_pol_stat_pd_fn *pd_stat_fn;
1: };
1:
1: struct blkg_conf_ctx {
1: - struct gendisk *disk;
1: - struct blkcg_gq *blkg;
1: - char *body;
1: + struct gendisk *disk;
1: + struct blkcg_gq *blkg;
1: + char *body;
1: };
1:
1: enum blkg_rwstat_type {
1: - BLKG_RWSTAT_READ = 0,
1: - BLKG_RWSTAT_WRITE = 1,
1: - BLKG_RWSTAT_SYNC = 2,
1: - BLKG_RWSTAT_ASYNC = 3,
1: - BLKG_RWSTAT_DISCARD = 4,
1: - BLKG_RWSTAT_NR = 5,
1: - BLKG_RWSTAT_TOTAL = 5,
1: + BLKG_RWSTAT_READ = 0,
1: + BLKG_RWSTAT_WRITE = 1,
1: + BLKG_RWSTAT_SYNC = 2,
1: + BLKG_RWSTAT_ASYNC = 3,
1: + BLKG_RWSTAT_DISCARD = 4,
1: + BLKG_RWSTAT_NR = 5,
1: + BLKG_RWSTAT_TOTAL = 5,
1: };
1:
1: struct blkg_rwstat {
1: - struct percpu_counter cpu_cnt[5];
1: - atomic64_t aux_cnt[5];
1: + struct percpu_counter cpu_cnt[5];
1: + atomic64_t aux_cnt[5];
1: };
1:
1: struct blkg_rwstat_sample {
1: - u64 cnt[5];
1: + u64 cnt[5];
1: };
1:
1: struct throtl_service_queue {
1: - struct throtl_service_queue *parent_sq;
1: - struct list_head queued[2];
1: - unsigned int nr_queued[2];
1: - struct rb_root_cached pending_tree;
1: - unsigned int nr_pending;
1: - long unsigned int first_pending_disptime;
1: - struct timer_list pending_timer;
1: + struct throtl_service_queue *parent_sq;
1: + struct list_head queued[2];
1: + unsigned int nr_queued[2];
1: + struct rb_root_cached pending_tree;
1: + unsigned int nr_pending;
1: + long unsigned int first_pending_disptime;
1: + struct timer_list pending_timer;
1: };
1:
1: struct latency_bucket {
1: - long unsigned int total_latency;
1: - int samples;
1: + long unsigned int total_latency;
1: + int samples;
1: };
1:
1: struct avg_latency_bucket {
1: - long unsigned int latency;
1: - bool valid;
1: + long unsigned int latency;
1: + bool valid;
1: };
1:
1: struct throtl_data {
1: - struct throtl_service_queue service_queue;
1: - struct request_queue *queue;
1: - unsigned int nr_queued[2];
1: - unsigned int throtl_slice;
1: - struct work_struct dispatch_work;
1: - unsigned int limit_index;
1: - bool limit_valid[2];
1: - long unsigned int low_upgrade_time;
1: - long unsigned int low_downgrade_time;
1: - unsigned int scale;
1: - struct latency_bucket tmp_buckets[18];
1: - struct avg_latency_bucket avg_buckets[18];
1: - struct latency_bucket *latency_buckets[2];
1: - long unsigned int last_calculate_time;
1: - long unsigned int filtered_latency;
1: - bool track_bio_latency;
1: + struct throtl_service_queue service_queue;
1: + struct request_queue *queue;
1: + unsigned int nr_queued[2];
1: + unsigned int throtl_slice;
1: + struct work_struct dispatch_work;
1: + unsigned int limit_index;
1: + bool limit_valid[2];
1: + long unsigned int low_upgrade_time;
1: + long unsigned int low_downgrade_time;
1: + unsigned int scale;
1: + struct latency_bucket tmp_buckets[18];
1: + struct avg_latency_bucket avg_buckets[18];
1: + struct latency_bucket *latency_buckets[2];
1: + long unsigned int last_calculate_time;
1: + long unsigned int filtered_latency;
1: + bool track_bio_latency;
1: };
1:
1: struct throtl_grp;
1:
1: struct throtl_qnode {
1: - struct list_head node;
1: - struct bio_list bios;
1: - struct throtl_grp *tg;
1: + struct list_head node;
1: + struct bio_list bios;
1: + struct throtl_grp *tg;
1: };
1:
1: struct throtl_grp {
1: - struct blkg_policy_data pd;
1: - struct rb_node rb_node;
1: - struct throtl_data *td;
1: - struct throtl_service_queue service_queue;
1: - struct throtl_qnode qnode_on_self[2];
1: - struct throtl_qnode qnode_on_parent[2];
1: - long unsigned int disptime;
1: - unsigned int flags;
1: - bool has_rules[2];
1: - uint64_t bps[4];
1: - uint64_t bps_conf[4];
1: - unsigned int iops[4];
1: - unsigned int iops_conf[4];
1: - uint64_t bytes_disp[2];
1: - unsigned int io_disp[2];
1: - long unsigned int last_low_overflow_time[2];
1: - uint64_t last_bytes_disp[2];
1: - unsigned int last_io_disp[2];
1: - long unsigned int last_check_time;
1: - long unsigned int latency_target;
1: - long unsigned int latency_target_conf;
1: - long unsigned int slice_start[2];
1: - long unsigned int slice_end[2];
1: - long unsigned int last_finish_time;
1: - long unsigned int checked_last_finish_time;
1: - long unsigned int avg_idletime;
1: - long unsigned int idletime_threshold;
1: - long unsigned int idletime_threshold_conf;
1: - unsigned int bio_cnt;
1: - unsigned int bad_bio_cnt;
1: - long unsigned int bio_cnt_reset_time;
1: - struct blkg_rwstat stat_bytes;
1: - struct blkg_rwstat stat_ios;
1: + struct blkg_policy_data pd;
1: + struct rb_node rb_node;
1: + struct throtl_data *td;
1: + struct throtl_service_queue service_queue;
1: + struct throtl_qnode qnode_on_self[2];
1: + struct throtl_qnode qnode_on_parent[2];
1: + long unsigned int disptime;
1: + unsigned int flags;
1: + bool has_rules[2];
1: + uint64_t bps[4];
1: + uint64_t bps_conf[4];
1: + unsigned int iops[4];
1: + unsigned int iops_conf[4];
1: + uint64_t bytes_disp[2];
1: + unsigned int io_disp[2];
1: + long unsigned int last_low_overflow_time[2];
1: + uint64_t last_bytes_disp[2];
1: + unsigned int last_io_disp[2];
1: + long unsigned int last_check_time;
1: + long unsigned int latency_target;
1: + long unsigned int latency_target_conf;
1: + long unsigned int slice_start[2];
1: + long unsigned int slice_end[2];
1: + long unsigned int last_finish_time;
1: + long unsigned int checked_last_finish_time;
1: + long unsigned int avg_idletime;
1: + long unsigned int idletime_threshold;
1: + long unsigned int idletime_threshold_conf;
1: + unsigned int bio_cnt;
1: + unsigned int bad_bio_cnt;
1: + long unsigned int bio_cnt_reset_time;
1: + struct blkg_rwstat stat_bytes;
1: + struct blkg_rwstat stat_ios;
1: };
1:
1: enum tg_state_flags {
1: - THROTL_TG_PENDING = 1,
1: - THROTL_TG_WAS_EMPTY = 2,
1: + THROTL_TG_PENDING = 1,
1: + THROTL_TG_WAS_EMPTY = 2,
1: };
1:
1: enum {
1: - LIMIT_LOW = 0,
1: - LIMIT_MAX = 1,
1: - LIMIT_CNT = 2,
1: + LIMIT_LOW = 0,
1: + LIMIT_MAX = 1,
1: + LIMIT_CNT = 2,
1: };
1:
1: struct blk_iolatency {
1: - struct rq_qos rqos;
1: - struct timer_list timer;
1: - atomic_t enabled;
1: + struct rq_qos rqos;
1: + struct timer_list timer;
1: + atomic_t enabled;
1: };
1:
1: struct iolatency_grp;
1:
1: struct child_latency_info {
1: - spinlock_t lock;
1: - u64 last_scale_event;
1: - u64 scale_lat;
1: - u64 nr_samples;
1: - struct iolatency_grp *scale_grp;
1: - atomic_t scale_cookie;
1: + spinlock_t lock;
1: + u64 last_scale_event;
1: + u64 scale_lat;
1: + u64 nr_samples;
1: + struct iolatency_grp *scale_grp;
1: + atomic_t scale_cookie;
1: };
1:
1: struct percentile_stats {
1: - u64 total;
1: - u64 missed;
1: + u64 total;
1: + u64 missed;
1: };
1:
1: struct latency_stat {
1: - union {
1: - struct percentile_stats ps;
1: - struct blk_rq_stat rqs;
1: - };
1: + union {
1: + struct percentile_stats ps;
1: + struct blk_rq_stat rqs;
1: + };
1: };
1:
1: struct iolatency_grp {
1: - struct blkg_policy_data pd;
1: - struct latency_stat *stats;
1: - struct latency_stat cur_stat;
1: - struct blk_iolatency *blkiolat;
1: - struct rq_depth rq_depth;
1: - struct rq_wait rq_wait;
1: - atomic64_t window_start;
1: - atomic_t scale_cookie;
1: - u64 min_lat_nsec;
1: - u64 cur_win_nsec;
1: - u64 lat_avg;
1: - u64 nr_samples;
1: - bool ssd;
1: - struct child_latency_info child_lat;
1: -};
1: -
1: -enum {
1: - MILLION = 1000000,
1: - MIN_PERIOD = 1000,
1: - MAX_PERIOD = 1000000,
1: - MARGIN_MIN_PCT = 10,
1: - MARGIN_LOW_PCT = 20,
1: - MARGIN_TARGET_PCT = 50,
1: - INUSE_ADJ_STEP_PCT = 25,
1: - TIMER_SLACK_PCT = 1,
1: - WEIGHT_ONE = 65536,
1: - VTIME_PER_SEC_SHIFT = 37,
1: - VTIME_PER_SEC = 0,
1: - VTIME_PER_USEC = 137438,
1: - VTIME_PER_NSEC = 137,
1: - VRATE_MIN_PPM = 10000,
1: - VRATE_MAX_PPM = 100000000,
1: - VRATE_MIN = 1374,
1: - VRATE_CLAMP_ADJ_PCT = 4,
1: - RQ_WAIT_BUSY_PCT = 5,
1: - UNBUSY_THR_PCT = 75,
1: - MIN_DELAY_THR_PCT = 500,
1: - MAX_DELAY_THR_PCT = 25000,
1: - MIN_DELAY = 250,
1: - MAX_DELAY = 250000,
1: - DFGV_USAGE_PCT = 50,
1: - DFGV_PERIOD = 100000,
1: - MAX_LAGGING_PERIODS = 10,
1: - AUTOP_CYCLE_NSEC = 1410065408,
1: - IOC_PAGE_SHIFT = 12,
1: - IOC_PAGE_SIZE = 4096,
1: - IOC_SECT_TO_PAGE_SHIFT = 3,
1: - LCOEF_RANDIO_PAGES = 4096,
1: + struct blkg_policy_data pd;
1: + struct latency_stat *stats;
1: + struct latency_stat cur_stat;
1: + struct blk_iolatency *blkiolat;
1: + struct rq_depth rq_depth;
1: + struct rq_wait rq_wait;
1: + atomic64_t window_start;
1: + atomic_t scale_cookie;
1: + u64 min_lat_nsec;
1: + u64 cur_win_nsec;
1: + u64 lat_avg;
1: + u64 nr_samples;
1: + bool ssd;
1: + struct child_latency_info child_lat;
1: +};
1: +
1: +enum {
1: + MILLION = 1000000,
1: + MIN_PERIOD = 1000,
1: + MAX_PERIOD = 1000000,
1: + MARGIN_MIN_PCT = 10,
1: + MARGIN_LOW_PCT = 20,
1: + MARGIN_TARGET_PCT = 50,
1: + INUSE_ADJ_STEP_PCT = 25,
1: + TIMER_SLACK_PCT = 1,
1: + WEIGHT_ONE = 65536,
1: + VTIME_PER_SEC_SHIFT = 37,
1: + VTIME_PER_SEC = 0,
1: + VTIME_PER_USEC = 137438,
1: + VTIME_PER_NSEC = 137,
1: + VRATE_MIN_PPM = 10000,
1: + VRATE_MAX_PPM = 100000000,
1: + VRATE_MIN = 1374,
1: + VRATE_CLAMP_ADJ_PCT = 4,
1: + RQ_WAIT_BUSY_PCT = 5,
1: + UNBUSY_THR_PCT = 75,
1: + MIN_DELAY_THR_PCT = 500,
1: + MAX_DELAY_THR_PCT = 25000,
1: + MIN_DELAY = 250,
1: + MAX_DELAY = 250000,
1: + DFGV_USAGE_PCT = 50,
1: + DFGV_PERIOD = 100000,
1: + MAX_LAGGING_PERIODS = 10,
1: + AUTOP_CYCLE_NSEC = 1410065408,
1: + IOC_PAGE_SHIFT = 12,
1: + IOC_PAGE_SIZE = 4096,
1: + IOC_SECT_TO_PAGE_SHIFT = 3,
1: + LCOEF_RANDIO_PAGES = 4096,
1: };
1:
1: enum ioc_running {
1: - IOC_IDLE = 0,
1: - IOC_RUNNING = 1,
1: - IOC_STOP = 2,
1: + IOC_IDLE = 0,
1: + IOC_RUNNING = 1,
1: + IOC_STOP = 2,
1: };
1:
1: enum {
1: - QOS_ENABLE = 0,
1: - QOS_CTRL = 1,
1: - NR_QOS_CTRL_PARAMS = 2,
1: + QOS_ENABLE = 0,
1: + QOS_CTRL = 1,
1: + NR_QOS_CTRL_PARAMS = 2,
1: };
1:
1: enum {
1: - QOS_RPPM = 0,
1: - QOS_RLAT = 1,
1: - QOS_WPPM = 2,
1: - QOS_WLAT = 3,
1: - QOS_MIN = 4,
1: - QOS_MAX = 5,
1: - NR_QOS_PARAMS = 6,
1: + QOS_RPPM = 0,
1: + QOS_RLAT = 1,
1: + QOS_WPPM = 2,
1: + QOS_WLAT = 3,
1: + QOS_MIN = 4,
1: + QOS_MAX = 5,
1: + NR_QOS_PARAMS = 6,
1: };
1:
1: enum {
1: - COST_CTRL = 0,
1: - COST_MODEL = 1,
1: - NR_COST_CTRL_PARAMS = 2,
1: + COST_CTRL = 0,
1: + COST_MODEL = 1,
1: + NR_COST_CTRL_PARAMS = 2,
1: };
1:
1: enum {
1: - I_LCOEF_RBPS = 0,
1: - I_LCOEF_RSEQIOPS = 1,
1: - I_LCOEF_RRANDIOPS = 2,
1: - I_LCOEF_WBPS = 3,
1: - I_LCOEF_WSEQIOPS = 4,
1: - I_LCOEF_WRANDIOPS = 5,
1: - NR_I_LCOEFS = 6,
1: + I_LCOEF_RBPS = 0,
1: + I_LCOEF_RSEQIOPS = 1,
1: + I_LCOEF_RRANDIOPS = 2,
1: + I_LCOEF_WBPS = 3,
1: + I_LCOEF_WSEQIOPS = 4,
1: + I_LCOEF_WRANDIOPS = 5,
1: + NR_I_LCOEFS = 6,
1: };
1:
1: enum {
1: - LCOEF_RPAGE = 0,
1: - LCOEF_RSEQIO = 1,
1: - LCOEF_RRANDIO = 2,
1: - LCOEF_WPAGE = 3,
1: - LCOEF_WSEQIO = 4,
1: - LCOEF_WRANDIO = 5,
1: - NR_LCOEFS = 6,
1: + LCOEF_RPAGE = 0,
1: + LCOEF_RSEQIO = 1,
1: + LCOEF_RRANDIO = 2,
1: + LCOEF_WPAGE = 3,
1: + LCOEF_WSEQIO = 4,
1: + LCOEF_WRANDIO = 5,
1: + NR_LCOEFS = 6,
1: };
1:
1: enum {
1: - AUTOP_INVALID = 0,
1: - AUTOP_HDD = 1,
1: - AUTOP_SSD_QD1 = 2,
1: - AUTOP_SSD_DFL = 3,
1: - AUTOP_SSD_FAST = 4,
1: + AUTOP_INVALID = 0,
1: + AUTOP_HDD = 1,
1: + AUTOP_SSD_QD1 = 2,
1: + AUTOP_SSD_DFL = 3,
1: + AUTOP_SSD_FAST = 4,
1: };
1:
1: struct ioc_params {
1: - u32 qos[6];
1: - u64 i_lcoefs[6];
1: - u64 lcoefs[6];
1: - u32 too_fast_vrate_pct;
1: - u32 too_slow_vrate_pct;
1: + u32 qos[6];
1: + u64 i_lcoefs[6];
1: + u64 lcoefs[6];
1: + u32 too_fast_vrate_pct;
1: + u32 too_slow_vrate_pct;
1: };
1:
1: struct ioc_margins {
1: - s64 min;
1: - s64 low;
1: - s64 target;
1: + s64 min;
1: + s64 low;
1: + s64 target;
1: };
1:
1: struct ioc_missed {
1: - local_t nr_met;
1: - local_t nr_missed;
1: - u32 last_met;
1: - u32 last_missed;
1: + local_t nr_met;
1: + local_t nr_missed;
1: + u32 last_met;
1: + u32 last_missed;
1: };
1:
1: struct ioc_pcpu_stat {
1: - struct ioc_missed missed[2];
1: - local64_t rq_wait_ns;
1: - u64 last_rq_wait_ns;
1: + struct ioc_missed missed[2];
1: + local64_t rq_wait_ns;
1: + u64 last_rq_wait_ns;
1: };
1:
1: struct ioc {
1: - struct rq_qos rqos;
1: - bool enabled;
1: - struct ioc_params params;
1: - struct ioc_margins margins;
1: - u32 period_us;
1: - u32 timer_slack_ns;
1: - u64 vrate_min;
1: - u64 vrate_max;
1: - spinlock_t lock;
1: - struct timer_list timer;
1: - struct list_head active_iocgs;
1: - struct ioc_pcpu_stat *pcpu_stat;
1: - enum ioc_running running;
1: - atomic64_t vtime_rate;
1: - u64 vtime_base_rate;
1: - s64 vtime_err;
1: - seqcount_spinlock_t period_seqcount;
1: - u64 period_at;
1: - u64 period_at_vtime;
1: - atomic64_t cur_period;
1: - int busy_level;
1: - bool weights_updated;
1: - atomic_t hweight_gen;
1: - u64 dfgv_period_at;
1: - u64 dfgv_period_rem;
1: - u64 dfgv_usage_us_sum;
1: - u64 autop_too_fast_at;
1: - u64 autop_too_slow_at;
1: - int autop_idx;
1: - bool user_qos_params: 1;
1: - bool user_cost_model: 1;
1: + struct rq_qos rqos;
1: + bool enabled;
1: + struct ioc_params params;
1: + struct ioc_margins margins;
1: + u32 period_us;
1: + u32 timer_slack_ns;
1: + u64 vrate_min;
1: + u64 vrate_max;
1: + spinlock_t lock;
1: + struct timer_list timer;
1: + struct list_head active_iocgs;
1: + struct ioc_pcpu_stat *pcpu_stat;
1: + enum ioc_running running;
1: + atomic64_t vtime_rate;
1: + u64 vtime_base_rate;
1: + s64 vtime_err;
1: + seqcount_spinlock_t period_seqcount;
1: + u64 period_at;
1: + u64 period_at_vtime;
1: + atomic64_t cur_period;
1: + int busy_level;
1: + bool weights_updated;
1: + atomic_t hweight_gen;
1: + u64 dfgv_period_at;
1: + u64 dfgv_period_rem;
1: + u64 dfgv_usage_us_sum;
1: + u64 autop_too_fast_at;
1: + u64 autop_too_slow_at;
1: + int autop_idx;
1: + bool user_qos_params : 1;
1: + bool user_cost_model : 1;
1: };
1:
1: struct iocg_pcpu_stat {
1: - local64_t abs_vusage;
1: + local64_t abs_vusage;
1: };
1:
1: struct iocg_stat {
1: - u64 usage_us;
1: - u64 wait_us;
1: - u64 indebt_us;
1: - u64 indelay_us;
1: + u64 usage_us;
1: + u64 wait_us;
1: + u64 indebt_us;
1: + u64 indelay_us;
1: };
1:
1: struct ioc_gq {
1: - struct blkg_policy_data pd;
1: - struct ioc *ioc;
1: - u32 cfg_weight;
1: - u32 weight;
1: - u32 active;
1: - u32 inuse;
1: - u32 last_inuse;
1: - s64 saved_margin;
1: - sector_t cursor;
1: - atomic64_t vtime;
1: - atomic64_t done_vtime;
1: - u64 abs_vdebt;
1: - u64 delay;
1: - u64 delay_at;
1: - atomic64_t active_period;
1: - struct list_head active_list;
1: - u64 child_active_sum;
1: - u64 child_inuse_sum;
1: - u64 child_adjusted_sum;
1: - int hweight_gen;
1: - u32 hweight_active;
1: - u32 hweight_inuse;
1: - u32 hweight_donating;
1: - u32 hweight_after_donation;
1: - struct list_head walk_list;
1: - struct list_head surplus_list;
1: - struct wait_queue_head waitq;
1: - struct hrtimer waitq_timer;
1: - u64 activated_at;
1: - struct iocg_pcpu_stat *pcpu_stat;
1: - struct iocg_stat local_stat;
1: - struct iocg_stat desc_stat;
1: - struct iocg_stat last_stat;
1: - u64 last_stat_abs_vusage;
1: - u64 usage_delta_us;
1: - u64 wait_since;
1: - u64 indebt_since;
1: - u64 indelay_since;
1: - int level;
1: - struct ioc_gq *ancestors[0];
1: + struct blkg_policy_data pd;
1: + struct ioc *ioc;
1: + u32 cfg_weight;
1: + u32 weight;
1: + u32 active;
1: + u32 inuse;
1: + u32 last_inuse;
1: + s64 saved_margin;
1: + sector_t cursor;
1: + atomic64_t vtime;
1: + atomic64_t done_vtime;
1: + u64 abs_vdebt;
1: + u64 delay;
1: + u64 delay_at;
1: + atomic64_t active_period;
1: + struct list_head active_list;
1: + u64 child_active_sum;
1: + u64 child_inuse_sum;
1: + u64 child_adjusted_sum;
1: + int hweight_gen;
1: + u32 hweight_active;
1: + u32 hweight_inuse;
1: + u32 hweight_donating;
1: + u32 hweight_after_donation;
1: + struct list_head walk_list;
1: + struct list_head surplus_list;
1: + struct wait_queue_head waitq;
1: + struct hrtimer waitq_timer;
1: + u64 activated_at;
1: + struct iocg_pcpu_stat *pcpu_stat;
1: + struct iocg_stat local_stat;
1: + struct iocg_stat desc_stat;
1: + struct iocg_stat last_stat;
1: + u64 last_stat_abs_vusage;
1: + u64 usage_delta_us;
1: + u64 wait_since;
1: + u64 indebt_since;
1: + u64 indelay_since;
1: + int level;
1: + struct ioc_gq *ancestors[0];
1: };
1:
1: struct ioc_cgrp {
1: - struct blkcg_policy_data cpd;
1: - unsigned int dfl_weight;
1: + struct blkcg_policy_data cpd;
1: + unsigned int dfl_weight;
1: };
1:
1: struct ioc_now {
1: - u64 now_ns;
1: - u64 now;
1: - u64 vnow;
1: - u64 vrate;
1: + u64 now_ns;
1: + u64 now;
1: + u64 vnow;
1: + u64 vrate;
1: };
1:
1: struct iocg_wait {
1: - struct wait_queue_entry wait;
1: - struct bio *bio;
1: - u64 abs_cost;
1: - bool committed;
1: + struct wait_queue_entry wait;
1: + struct bio *bio;
1: + u64 abs_cost;
1: + bool committed;
1: };
1:
1: struct iocg_wake_ctx {
1: - struct ioc_gq *iocg;
1: - u32 hw_inuse;
1: - s64 vbudget;
1: + struct ioc_gq *iocg;
1: + u32 hw_inuse;
1: + s64 vbudget;
1: };
1:
1: struct trace_event_raw_iocost_iocg_activate {
1: - struct trace_entry ent;
1: - u32 __data_loc_devname;
1: - u32 __data_loc_cgroup;
1: - u64 now;
1: - u64 vnow;
1: - u64 vrate;
1: - u64 last_period;
1: - u64 cur_period;
1: - u64 vtime;
1: - u32 weight;
1: - u32 inuse;
1: - u64 hweight_active;
1: - u64 hweight_inuse;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u64 vnow;
1: + u64 vrate;
1: + u64 last_period;
1: + u64 cur_period;
1: + u64 vtime;
1: + u32 weight;
1: + u32 inuse;
1: + u64 hweight_active;
1: + u64 hweight_inuse;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iocg_inuse_update {
1: - struct trace_entry ent;
1: - u32 __data_loc_devname;
1: - u32 __data_loc_cgroup;
1: - u64 now;
1: - u32 old_inuse;
1: - u32 new_inuse;
1: - u64 old_hweight_inuse;
1: - u64 new_hweight_inuse;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u32 old_inuse;
1: + u32 new_inuse;
1: + u64 old_hweight_inuse;
1: + u64 new_hweight_inuse;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iocost_ioc_vrate_adj {
1: - struct trace_entry ent;
1: - u32 __data_loc_devname;
1: - u64 old_vrate;
1: - u64 new_vrate;
1: - int busy_level;
1: - u32 read_missed_ppm;
1: - u32 write_missed_ppm;
1: - u32 rq_wait_pct;
1: - int nr_lagging;
1: - int nr_shortages;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u64 old_vrate;
1: + u64 new_vrate;
1: + int busy_level;
1: + u32 read_missed_ppm;
1: + u32 write_missed_ppm;
1: + u32 rq_wait_pct;
1: + int nr_lagging;
1: + int nr_shortages;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iocost_iocg_forgive_debt {
1: - struct trace_entry ent;
1: - u32 __data_loc_devname;
1: - u32 __data_loc_cgroup;
1: - u64 now;
1: - u64 vnow;
1: - u32 usage_pct;
1: - u64 old_debt;
1: - u64 new_debt;
1: - u64 old_delay;
1: - u64 new_delay;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_devname;
1: + u32 __data_loc_cgroup;
1: + u64 now;
1: + u64 vnow;
1: + u32 usage_pct;
1: + u64 old_debt;
1: + u64 new_debt;
1: + u64 old_delay;
1: + u64 new_delay;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_iocost_iocg_activate {
1: - u32 devname;
1: - u32 cgroup;
1: + u32 devname;
1: + u32 cgroup;
1: };
1:
1: struct trace_event_data_offsets_iocg_inuse_update {
1: - u32 devname;
1: - u32 cgroup;
1: + u32 devname;
1: + u32 cgroup;
1: };
1:
1: struct trace_event_data_offsets_iocost_ioc_vrate_adj {
1: - u32 devname;
1: + u32 devname;
1: };
1:
1: struct trace_event_data_offsets_iocost_iocg_forgive_debt {
1: - u32 devname;
1: - u32 cgroup;
1: + u32 devname;
1: + u32 cgroup;
1: };
1:
1: -typedef void (*btf_trace_iocost_iocg_activate)(void *, struct ioc_gq *, const char *, struct ioc_now *, u64, u64, u64);
1: +typedef void (*btf_trace_iocost_iocg_activate)(void *, struct ioc_gq *,
1: + const char *, struct ioc_now *,
1: + u64, u64, u64);
1:
1: -typedef void (*btf_trace_iocost_inuse_shortage)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +typedef void (*btf_trace_iocost_inuse_shortage)(void *, struct ioc_gq *,
1: + const char *, struct ioc_now *,
1: + u32, u32, u64, u64);
1:
1: -typedef void (*btf_trace_iocost_inuse_transfer)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +typedef void (*btf_trace_iocost_inuse_transfer)(void *, struct ioc_gq *,
1: + const char *, struct ioc_now *,
1: + u32, u32, u64, u64);
1:
1: -typedef void (*btf_trace_iocost_inuse_adjust)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u32, u64, u64);
1: +typedef void (*btf_trace_iocost_inuse_adjust)(void *, struct ioc_gq *,
1: + const char *, struct ioc_now *,
1: + u32, u32, u64, u64);
1:
1: -typedef void (*btf_trace_iocost_ioc_vrate_adj)(void *, struct ioc *, u64, u32 *, u32, int, int);
1: +typedef void (*btf_trace_iocost_ioc_vrate_adj)(void *, struct ioc *, u64, u32 *,
1: + u32, int, int);
1:
1: -typedef void (*btf_trace_iocost_iocg_forgive_debt)(void *, struct ioc_gq *, const char *, struct ioc_now *, u32, u64, u64, u64, u64);
1: +typedef void (*btf_trace_iocost_iocg_forgive_debt)(void *, struct ioc_gq *,
1: + const char *,
1: + struct ioc_now *, u32, u64,
1: + u64, u64, u64);
1:
1: struct deadline_data {
1: - struct rb_root sort_list[2];
1: - struct list_head fifo_list[2];
1: - struct request *next_rq[2];
1: - unsigned int batching;
1: - unsigned int starved;
1: - int fifo_expire[2];
1: - int fifo_batch;
1: - int writes_starved;
1: - int front_merges;
1: - spinlock_t lock;
1: - spinlock_t zone_lock;
1: - struct list_head dispatch;
1: + struct rb_root sort_list[2];
1: + struct list_head fifo_list[2];
1: + struct request *next_rq[2];
1: + unsigned int batching;
1: + unsigned int starved;
1: + int fifo_expire[2];
1: + int fifo_batch;
1: + int writes_starved;
1: + int front_merges;
1: + spinlock_t lock;
1: + spinlock_t zone_lock;
1: + struct list_head dispatch;
1: };
1:
1: struct bfq_entity;
1:
1: struct bfq_service_tree {
1: - struct rb_root active;
1: - struct rb_root idle;
1: - struct bfq_entity *first_idle;
1: - struct bfq_entity *last_idle;
1: - u64 vtime;
1: - long unsigned int wsum;
1: + struct rb_root active;
1: + struct rb_root idle;
1: + struct bfq_entity *first_idle;
1: + struct bfq_entity *last_idle;
1: + u64 vtime;
1: + long unsigned int wsum;
1: };
1:
1: struct bfq_sched_data;
1:
1: struct bfq_entity {
1: - struct rb_node rb_node;
1: - bool on_st_or_in_serv;
1: - u64 start;
1: - u64 finish;
1: - struct rb_root *tree;
1: - u64 min_start;
1: - int service;
1: - int budget;
1: - int dev_weight;
1: - int weight;
1: - int new_weight;
1: - int orig_weight;
1: - struct bfq_entity *parent;
1: - struct bfq_sched_data *my_sched_data;
1: - struct bfq_sched_data *sched_data;
1: - int prio_changed;
1: - bool in_groups_with_pending_reqs;
1: + struct rb_node rb_node;
1: + bool on_st_or_in_serv;
1: + u64 start;
1: + u64 finish;
1: + struct rb_root *tree;
1: + u64 min_start;
1: + int service;
1: + int budget;
1: + int dev_weight;
1: + int weight;
1: + int new_weight;
1: + int orig_weight;
1: + struct bfq_entity *parent;
1: + struct bfq_sched_data *my_sched_data;
1: + struct bfq_sched_data *sched_data;
1: + int prio_changed;
1: + bool in_groups_with_pending_reqs;
1: };
1:
1: struct bfq_sched_data {
1: - struct bfq_entity *in_service_entity;
1: - struct bfq_entity *next_in_service;
1: - struct bfq_service_tree service_tree[3];
1: - long unsigned int bfq_class_idle_last_service;
1: + struct bfq_entity *in_service_entity;
1: + struct bfq_entity *next_in_service;
1: + struct bfq_service_tree service_tree[3];
1: + long unsigned int bfq_class_idle_last_service;
1: };
1:
1: struct bfq_weight_counter {
1: - unsigned int weight;
1: - unsigned int num_active;
1: - struct rb_node weights_node;
1: + unsigned int weight;
1: + unsigned int num_active;
1: + struct rb_node weights_node;
1: };
1:
1: struct bfq_ttime {
1: - u64 last_end_request;
1: - u64 ttime_total;
1: - long unsigned int ttime_samples;
1: - u64 ttime_mean;
1: + u64 last_end_request;
1: + u64 ttime_total;
1: + long unsigned int ttime_samples;
1: + u64 ttime_mean;
1: };
1:
1: struct bfq_data;
1: @@ -54835,242 +55672,242 @@ struct bfq_data;
1: struct bfq_io_cq;
1:
1: struct bfq_queue {
1: - int ref;
1: - struct bfq_data *bfqd;
1: - short unsigned int ioprio;
1: - short unsigned int ioprio_class;
1: - short unsigned int new_ioprio;
1: - short unsigned int new_ioprio_class;
1: - u64 last_serv_time_ns;
1: - unsigned int inject_limit;
1: - long unsigned int decrease_time_jif;
1: - struct bfq_queue *new_bfqq;
1: - struct rb_node pos_node;
1: - struct rb_root *pos_root;
1: - struct rb_root sort_list;
1: - struct request *next_rq;
1: - int queued[2];
1: - int allocated;
1: - int meta_pending;
1: - struct list_head fifo;
1: - struct bfq_entity entity;
1: - struct bfq_weight_counter *weight_counter;
1: - int max_budget;
1: - long unsigned int budget_timeout;
1: - int dispatched;
1: - long unsigned int flags;
1: - struct list_head bfqq_list;
1: - struct bfq_ttime ttime;
1: - u32 seek_history;
1: - struct hlist_node burst_list_node;
1: - sector_t last_request_pos;
1: - unsigned int requests_within_timer;
1: - pid_t pid;
1: - struct bfq_io_cq *bic;
1: - long unsigned int wr_cur_max_time;
1: - long unsigned int soft_rt_next_start;
1: - long unsigned int last_wr_start_finish;
1: - unsigned int wr_coeff;
1: - long unsigned int last_idle_bklogged;
1: - long unsigned int service_from_backlogged;
1: - long unsigned int service_from_wr;
1: - long unsigned int wr_start_at_switch_to_srt;
1: - long unsigned int split_time;
1: - long unsigned int first_IO_time;
1: - u32 max_service_rate;
1: - struct bfq_queue *waker_bfqq;
1: - struct hlist_node woken_list_node;
1: - struct hlist_head woken_list;
1: + int ref;
1: + struct bfq_data *bfqd;
1: + short unsigned int ioprio;
1: + short unsigned int ioprio_class;
1: + short unsigned int new_ioprio;
1: + short unsigned int new_ioprio_class;
1: + u64 last_serv_time_ns;
1: + unsigned int inject_limit;
1: + long unsigned int decrease_time_jif;
1: + struct bfq_queue *new_bfqq;
1: + struct rb_node pos_node;
1: + struct rb_root *pos_root;
1: + struct rb_root sort_list;
1: + struct request *next_rq;
1: + int queued[2];
1: + int allocated;
1: + int meta_pending;
1: + struct list_head fifo;
1: + struct bfq_entity entity;
1: + struct bfq_weight_counter *weight_counter;
1: + int max_budget;
1: + long unsigned int budget_timeout;
1: + int dispatched;
1: + long unsigned int flags;
1: + struct list_head bfqq_list;
1: + struct bfq_ttime ttime;
1: + u32 seek_history;
1: + struct hlist_node burst_list_node;
1: + sector_t last_request_pos;
1: + unsigned int requests_within_timer;
1: + pid_t pid;
1: + struct bfq_io_cq *bic;
1: + long unsigned int wr_cur_max_time;
1: + long unsigned int soft_rt_next_start;
1: + long unsigned int last_wr_start_finish;
1: + unsigned int wr_coeff;
1: + long unsigned int last_idle_bklogged;
1: + long unsigned int service_from_backlogged;
1: + long unsigned int service_from_wr;
1: + long unsigned int wr_start_at_switch_to_srt;
1: + long unsigned int split_time;
1: + long unsigned int first_IO_time;
1: + u32 max_service_rate;
1: + struct bfq_queue *waker_bfqq;
1: + struct hlist_node woken_list_node;
1: + struct hlist_head woken_list;
1: };
1:
1: struct bfq_group;
1:
1: struct bfq_data {
1: - struct request_queue *queue;
1: - struct list_head dispatch;
1: - struct bfq_group *root_group;
1: - struct rb_root_cached queue_weights_tree;
1: - unsigned int num_groups_with_pending_reqs;
1: - unsigned int busy_queues[3];
1: - int wr_busy_queues;
1: - int queued;
1: - int rq_in_driver;
1: - bool nonrot_with_queueing;
1: - int max_rq_in_driver;
1: - int hw_tag_samples;
1: - int hw_tag;
1: - int budgets_assigned;
1: - struct hrtimer idle_slice_timer;
1: - struct bfq_queue *in_service_queue;
1: - sector_t last_position;
1: - sector_t in_serv_last_pos;
1: - u64 last_completion;
1: - struct bfq_queue *last_completed_rq_bfqq;
1: - u64 last_empty_occupied_ns;
1: - bool wait_dispatch;
1: - struct request *waited_rq;
1: - bool rqs_injected;
1: - u64 first_dispatch;
1: - u64 last_dispatch;
1: - ktime_t last_budget_start;
1: - ktime_t last_idling_start;
1: - long unsigned int last_idling_start_jiffies;
1: - int peak_rate_samples;
1: - u32 sequential_samples;
1: - u64 tot_sectors_dispatched;
1: - u32 last_rq_max_size;
1: - u64 delta_from_first;
1: - u32 peak_rate;
1: - int bfq_max_budget;
1: - struct list_head active_list;
1: - struct list_head idle_list;
1: - u64 bfq_fifo_expire[2];
1: - unsigned int bfq_back_penalty;
1: - unsigned int bfq_back_max;
1: - u32 bfq_slice_idle;
1: - int bfq_user_max_budget;
1: - unsigned int bfq_timeout;
1: - unsigned int bfq_requests_within_timer;
1: - bool strict_guarantees;
1: - long unsigned int last_ins_in_burst;
1: - long unsigned int bfq_burst_interval;
1: - int burst_size;
1: - struct bfq_entity *burst_parent_entity;
1: - long unsigned int bfq_large_burst_thresh;
1: - bool large_burst;
1: - struct hlist_head burst_list;
1: - bool low_latency;
1: - unsigned int bfq_wr_coeff;
1: - unsigned int bfq_wr_max_time;
1: - unsigned int bfq_wr_rt_max_time;
1: - unsigned int bfq_wr_min_idle_time;
1: - long unsigned int bfq_wr_min_inter_arr_async;
1: - unsigned int bfq_wr_max_softrt_rate;
1: - u64 rate_dur_prod;
1: - struct bfq_queue oom_bfqq;
1: - spinlock_t lock;
1: - struct bfq_io_cq *bio_bic;
1: - struct bfq_queue *bio_bfqq;
1: - unsigned int word_depths[4];
1: + struct request_queue *queue;
1: + struct list_head dispatch;
1: + struct bfq_group *root_group;
1: + struct rb_root_cached queue_weights_tree;
1: + unsigned int num_groups_with_pending_reqs;
1: + unsigned int busy_queues[3];
1: + int wr_busy_queues;
1: + int queued;
1: + int rq_in_driver;
1: + bool nonrot_with_queueing;
1: + int max_rq_in_driver;
1: + int hw_tag_samples;
1: + int hw_tag;
1: + int budgets_assigned;
1: + struct hrtimer idle_slice_timer;
1: + struct bfq_queue *in_service_queue;
1: + sector_t last_position;
1: + sector_t in_serv_last_pos;
1: + u64 last_completion;
1: + struct bfq_queue *last_completed_rq_bfqq;
1: + u64 last_empty_occupied_ns;
1: + bool wait_dispatch;
1: + struct request *waited_rq;
1: + bool rqs_injected;
1: + u64 first_dispatch;
1: + u64 last_dispatch;
1: + ktime_t last_budget_start;
1: + ktime_t last_idling_start;
1: + long unsigned int last_idling_start_jiffies;
1: + int peak_rate_samples;
1: + u32 sequential_samples;
1: + u64 tot_sectors_dispatched;
1: + u32 last_rq_max_size;
1: + u64 delta_from_first;
1: + u32 peak_rate;
1: + int bfq_max_budget;
1: + struct list_head active_list;
1: + struct list_head idle_list;
1: + u64 bfq_fifo_expire[2];
1: + unsigned int bfq_back_penalty;
1: + unsigned int bfq_back_max;
1: + u32 bfq_slice_idle;
1: + int bfq_user_max_budget;
1: + unsigned int bfq_timeout;
1: + unsigned int bfq_requests_within_timer;
1: + bool strict_guarantees;
1: + long unsigned int last_ins_in_burst;
1: + long unsigned int bfq_burst_interval;
1: + int burst_size;
1: + struct bfq_entity *burst_parent_entity;
1: + long unsigned int bfq_large_burst_thresh;
1: + bool large_burst;
1: + struct hlist_head burst_list;
1: + bool low_latency;
1: + unsigned int bfq_wr_coeff;
1: + unsigned int bfq_wr_max_time;
1: + unsigned int bfq_wr_rt_max_time;
1: + unsigned int bfq_wr_min_idle_time;
1: + long unsigned int bfq_wr_min_inter_arr_async;
1: + unsigned int bfq_wr_max_softrt_rate;
1: + u64 rate_dur_prod;
1: + struct bfq_queue oom_bfqq;
1: + spinlock_t lock;
1: + struct bfq_io_cq *bio_bic;
1: + struct bfq_queue *bio_bfqq;
1: + unsigned int word_depths[4];
1: };
1:
1: struct bfq_io_cq {
1: - struct io_cq icq;
1: - struct bfq_queue *bfqq[2];
1: - int ioprio;
1: - uint64_t blkcg_serial_nr;
1: - bool saved_has_short_ttime;
1: - bool saved_IO_bound;
1: - bool saved_in_large_burst;
1: - bool was_in_burst_list;
1: - unsigned int saved_weight;
1: - long unsigned int saved_wr_coeff;
1: - long unsigned int saved_last_wr_start_finish;
1: - long unsigned int saved_wr_start_at_switch_to_srt;
1: - unsigned int saved_wr_cur_max_time;
1: - struct bfq_ttime saved_ttime;
1: + struct io_cq icq;
1: + struct bfq_queue *bfqq[2];
1: + int ioprio;
1: + uint64_t blkcg_serial_nr;
1: + bool saved_has_short_ttime;
1: + bool saved_IO_bound;
1: + bool saved_in_large_burst;
1: + bool was_in_burst_list;
1: + unsigned int saved_weight;
1: + long unsigned int saved_wr_coeff;
1: + long unsigned int saved_last_wr_start_finish;
1: + long unsigned int saved_wr_start_at_switch_to_srt;
1: + unsigned int saved_wr_cur_max_time;
1: + struct bfq_ttime saved_ttime;
1: };
1:
1: struct bfqg_stats {
1: - struct blkg_rwstat bytes;
1: - struct blkg_rwstat ios;
1: + struct blkg_rwstat bytes;
1: + struct blkg_rwstat ios;
1: };
1:
1: struct bfq_group {
1: - struct blkg_policy_data pd;
1: - char blkg_path[128];
1: - int ref;
1: - struct bfq_entity entity;
1: - struct bfq_sched_data sched_data;
1: - void *bfqd;
1: - struct bfq_queue *async_bfqq[16];
1: - struct bfq_queue *async_idle_bfqq;
1: - struct bfq_entity *my_entity;
1: - int active_entities;
1: - struct rb_root rq_pos_tree;
1: - struct bfqg_stats stats;
1: + struct blkg_policy_data pd;
1: + char blkg_path[128];
1: + int ref;
1: + struct bfq_entity entity;
1: + struct bfq_sched_data sched_data;
1: + void *bfqd;
1: + struct bfq_queue *async_bfqq[16];
1: + struct bfq_queue *async_idle_bfqq;
1: + struct bfq_entity *my_entity;
1: + int active_entities;
1: + struct rb_root rq_pos_tree;
1: + struct bfqg_stats stats;
1: };
1:
1: enum bfqq_state_flags {
1: - BFQQF_just_created = 0,
1: - BFQQF_busy = 1,
1: - BFQQF_wait_request = 2,
1: - BFQQF_non_blocking_wait_rq = 3,
1: - BFQQF_fifo_expire = 4,
1: - BFQQF_has_short_ttime = 5,
1: - BFQQF_sync = 6,
1: - BFQQF_IO_bound = 7,
1: - BFQQF_in_large_burst = 8,
1: - BFQQF_softrt_update = 9,
1: - BFQQF_coop = 10,
1: - BFQQF_split_coop = 11,
1: - BFQQF_has_waker = 12,
1: + BFQQF_just_created = 0,
1: + BFQQF_busy = 1,
1: + BFQQF_wait_request = 2,
1: + BFQQF_non_blocking_wait_rq = 3,
1: + BFQQF_fifo_expire = 4,
1: + BFQQF_has_short_ttime = 5,
1: + BFQQF_sync = 6,
1: + BFQQF_IO_bound = 7,
1: + BFQQF_in_large_burst = 8,
1: + BFQQF_softrt_update = 9,
1: + BFQQF_coop = 10,
1: + BFQQF_split_coop = 11,
1: + BFQQF_has_waker = 12,
1: };
1:
1: enum bfqq_expiration {
1: - BFQQE_TOO_IDLE = 0,
1: - BFQQE_BUDGET_TIMEOUT = 1,
1: - BFQQE_BUDGET_EXHAUSTED = 2,
1: - BFQQE_NO_MORE_REQUESTS = 3,
1: - BFQQE_PREEMPTED = 4,
1: + BFQQE_TOO_IDLE = 0,
1: + BFQQE_BUDGET_TIMEOUT = 1,
1: + BFQQE_BUDGET_EXHAUSTED = 2,
1: + BFQQE_NO_MORE_REQUESTS = 3,
1: + BFQQE_PREEMPTED = 4,
1: };
1:
1: struct bfq_group_data {
1: - struct blkcg_policy_data pd;
1: - unsigned int weight;
1: + struct blkcg_policy_data pd;
1: + unsigned int weight;
1: };
1:
1: enum bip_flags {
1: - BIP_BLOCK_INTEGRITY = 1,
1: - BIP_MAPPED_INTEGRITY = 2,
1: - BIP_CTRL_NOCHECK = 4,
1: - BIP_DISK_NOCHECK = 8,
1: - BIP_IP_CHECKSUM = 16,
1: + BIP_BLOCK_INTEGRITY = 1,
1: + BIP_MAPPED_INTEGRITY = 2,
1: + BIP_CTRL_NOCHECK = 4,
1: + BIP_DISK_NOCHECK = 8,
1: + BIP_IP_CHECKSUM = 16,
1: };
1:
1: enum blk_integrity_flags {
1: - BLK_INTEGRITY_VERIFY = 1,
1: - BLK_INTEGRITY_GENERATE = 2,
1: - BLK_INTEGRITY_DEVICE_CAPABLE = 4,
1: - BLK_INTEGRITY_IP_CHECKSUM = 8,
1: + BLK_INTEGRITY_VERIFY = 1,
1: + BLK_INTEGRITY_GENERATE = 2,
1: + BLK_INTEGRITY_DEVICE_CAPABLE = 4,
1: + BLK_INTEGRITY_IP_CHECKSUM = 8,
1: };
1:
1: struct integrity_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct blk_integrity *, char *);
1: - ssize_t (*store)(struct blk_integrity *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct blk_integrity *, char *);
1: + ssize_t (*store)(struct blk_integrity *, const char *, size_t);
1: };
1:
1: enum t10_dif_type {
1: - T10_PI_TYPE0_PROTECTION = 0,
1: - T10_PI_TYPE1_PROTECTION = 1,
1: - T10_PI_TYPE2_PROTECTION = 2,
1: - T10_PI_TYPE3_PROTECTION = 3,
1: + T10_PI_TYPE0_PROTECTION = 0,
1: + T10_PI_TYPE1_PROTECTION = 1,
1: + T10_PI_TYPE2_PROTECTION = 2,
1: + T10_PI_TYPE3_PROTECTION = 3,
1: };
1:
1: struct t10_pi_tuple {
1: - __be16 guard_tag;
1: - __be16 app_tag;
1: - __be32 ref_tag;
1: + __be16 guard_tag;
1: + __be16 app_tag;
1: + __be32 ref_tag;
1: };
1:
1: typedef __be16 csum_fn(void *, unsigned int);
1:
1: struct virtio_device_id {
1: - __u32 device;
1: - __u32 vendor;
1: + __u32 device;
1: + __u32 vendor;
1: };
1:
1: struct virtio_device;
1:
1: struct virtqueue {
1: - struct list_head list;
1: - void (*callback)(struct virtqueue *);
1: - const char *name;
1: - struct virtio_device *vdev;
1: - unsigned int index;
1: - unsigned int num_free;
1: - void *priv;
1: + struct list_head list;
1: + void (*callback)(struct virtqueue *);
1: + const char *name;
1: + struct virtio_device *vdev;
1: + unsigned int index;
1: + unsigned int num_free;
1: + void *priv;
1: };
1:
1: struct vringh_config_ops;
1: @@ -55078,18 +55915,18 @@ struct vringh_config_ops;
1: struct virtio_config_ops;
1:
1: struct virtio_device {
1: - int index;
1: - bool failed;
1: - bool config_enabled;
1: - bool config_change_pending;
1: - spinlock_t config_lock;
1: - struct device dev;
1: - struct virtio_device_id id;
1: - const struct virtio_config_ops *config;
1: - const struct vringh_config_ops *vringh_config;
1: - struct list_head vqs;
1: - u64 features;
1: - void *priv;
1: + int index;
1: + bool failed;
1: + bool config_enabled;
1: + bool config_change_pending;
1: + spinlock_t config_lock;
1: + struct device dev;
1: + struct virtio_device_id id;
1: + const struct virtio_config_ops *config;
1: + const struct vringh_config_ops *vringh_config;
1: + struct list_head vqs;
1: + u64 features;
1: + void *priv;
1: };
1:
1: typedef void vq_callback_t(struct virtqueue *);
1: @@ -55099,25 +55936,28 @@ struct irq_affinity___2;
1: struct virtio_shm_region;
1:
1: struct virtio_config_ops {
1: - void (*get)(struct virtio_device *, unsigned int, void *, unsigned int);
1: - void (*set)(struct virtio_device *, unsigned int, const void *, unsigned int);
1: - u32 (*generation)(struct virtio_device *);
1: - u8 (*get_status)(struct virtio_device *);
1: - void (*set_status)(struct virtio_device *, u8);
1: - void (*reset)(struct virtio_device *);
1: - int (*find_vqs)(struct virtio_device *, unsigned int, struct virtqueue **, vq_callback_t **, const char * const *, const bool *, struct irq_affinity___2 *);
1: - void (*del_vqs)(struct virtio_device *);
1: - u64 (*get_features)(struct virtio_device *);
1: - int (*finalize_features)(struct virtio_device *);
1: - const char * (*bus_name)(struct virtio_device *);
1: - int (*set_vq_affinity)(struct virtqueue *, const struct cpumask *);
1: - const struct cpumask * (*get_vq_affinity)(struct virtio_device *, int);
1: - bool (*get_shm_region)(struct virtio_device *, struct virtio_shm_region *, u8);
1: + void (*get)(struct virtio_device *, unsigned int, void *, unsigned int);
1: + void (*set)(struct virtio_device *, unsigned int, const void *, unsigned int);
1: + u32 (*generation)(struct virtio_device *);
1: + u8 (*get_status)(struct virtio_device *);
1: + void (*set_status)(struct virtio_device *, u8);
1: + void (*reset)(struct virtio_device *);
1: + int (*find_vqs)(struct virtio_device *, unsigned int, struct virtqueue **,
1: + vq_callback_t **, const char *const *, const bool *,
1: + struct irq_affinity___2 *);
1: + void (*del_vqs)(struct virtio_device *);
1: + u64 (*get_features)(struct virtio_device *);
1: + int (*finalize_features)(struct virtio_device *);
1: + const char *(*bus_name)(struct virtio_device *);
1: + int (*set_vq_affinity)(struct virtqueue *, const struct cpumask *);
1: + const struct cpumask *(*get_vq_affinity)(struct virtio_device *, int);
1: + bool (*get_shm_region)(struct virtio_device *, struct virtio_shm_region *,
1: + u8);
1: };
1:
1: struct virtio_shm_region {
1: - u64 addr;
1: - u64 len;
1: + u64 addr;
1: + u64 len;
1: };
1:
1: struct irq_poll;
1: @@ -55125,184 +55965,184 @@ struct irq_poll;
1: typedef int irq_poll_fn(struct irq_poll *, int);
1:
1: struct irq_poll {
1: - struct list_head list;
1: - long unsigned int state;
1: - int weight;
1: - irq_poll_fn *poll;
1: + struct list_head list;
1: + long unsigned int state;
1: + int weight;
1: + irq_poll_fn *poll;
1: };
1:
1: struct dim_sample {
1: - ktime_t time;
1: - u32 pkt_ctr;
1: - u32 byte_ctr;
1: - u16 event_ctr;
1: - u32 comp_ctr;
1: + ktime_t time;
1: + u32 pkt_ctr;
1: + u32 byte_ctr;
1: + u16 event_ctr;
1: + u32 comp_ctr;
1: };
1:
1: struct dim_stats {
1: - int ppms;
1: - int bpms;
1: - int epms;
1: - int cpms;
1: - int cpe_ratio;
1: + int ppms;
1: + int bpms;
1: + int epms;
1: + int cpms;
1: + int cpe_ratio;
1: };
1:
1: struct dim {
1: - u8 state;
1: - struct dim_stats prev_stats;
1: - struct dim_sample start_sample;
1: - struct dim_sample measuring_sample;
1: - struct work_struct work;
1: - void *priv;
1: - u8 profile_ix;
1: - u8 mode;
1: - u8 tune_state;
1: - u8 steps_right;
1: - u8 steps_left;
1: - u8 tired;
1: + u8 state;
1: + struct dim_stats prev_stats;
1: + struct dim_sample start_sample;
1: + struct dim_sample measuring_sample;
1: + struct work_struct work;
1: + void *priv;
1: + u8 profile_ix;
1: + u8 mode;
1: + u8 tune_state;
1: + u8 steps_right;
1: + u8 steps_left;
1: + u8 tired;
1: };
1:
1: enum rdma_nl_counter_mode {
1: - RDMA_COUNTER_MODE_NONE = 0,
1: - RDMA_COUNTER_MODE_AUTO = 1,
1: - RDMA_COUNTER_MODE_MANUAL = 2,
1: - RDMA_COUNTER_MODE_MAX = 3,
1: + RDMA_COUNTER_MODE_NONE = 0,
1: + RDMA_COUNTER_MODE_AUTO = 1,
1: + RDMA_COUNTER_MODE_MANUAL = 2,
1: + RDMA_COUNTER_MODE_MAX = 3,
1: };
1:
1: enum rdma_nl_counter_mask {
1: - RDMA_COUNTER_MASK_QP_TYPE = 1,
1: - RDMA_COUNTER_MASK_PID = 2,
1: + RDMA_COUNTER_MASK_QP_TYPE = 1,
1: + RDMA_COUNTER_MASK_PID = 2,
1: };
1:
1: enum rdma_restrack_type {
1: - RDMA_RESTRACK_PD = 0,
1: - RDMA_RESTRACK_CQ = 1,
1: - RDMA_RESTRACK_QP = 2,
1: - RDMA_RESTRACK_CM_ID = 3,
1: - RDMA_RESTRACK_MR = 4,
1: - RDMA_RESTRACK_CTX = 5,
1: - RDMA_RESTRACK_COUNTER = 6,
1: - RDMA_RESTRACK_MAX = 7,
1: + RDMA_RESTRACK_PD = 0,
1: + RDMA_RESTRACK_CQ = 1,
1: + RDMA_RESTRACK_QP = 2,
1: + RDMA_RESTRACK_CM_ID = 3,
1: + RDMA_RESTRACK_MR = 4,
1: + RDMA_RESTRACK_CTX = 5,
1: + RDMA_RESTRACK_COUNTER = 6,
1: + RDMA_RESTRACK_MAX = 7,
1: };
1:
1: struct rdma_restrack_entry {
1: - bool valid;
1: - struct kref kref;
1: - struct completion comp;
1: - struct task_struct *task;
1: - const char *kern_name;
1: - enum rdma_restrack_type type;
1: - bool user;
1: - u32 id;
1: + bool valid;
1: + struct kref kref;
1: + struct completion comp;
1: + struct task_struct *task;
1: + const char *kern_name;
1: + enum rdma_restrack_type type;
1: + bool user;
1: + u32 id;
1: };
1:
1: struct rdma_link_ops {
1: - struct list_head list;
1: - const char *type;
1: - int (*newlink)(const char *, struct net_device *);
1: + struct list_head list;
1: + const char *type;
1: + int (*newlink)(const char *, struct net_device *);
1: };
1:
1: struct auto_mode_param {
1: - int qp_type;
1: + int qp_type;
1: };
1:
1: struct rdma_counter_mode {
1: - enum rdma_nl_counter_mode mode;
1: - enum rdma_nl_counter_mask mask;
1: - struct auto_mode_param param;
1: + enum rdma_nl_counter_mode mode;
1: + enum rdma_nl_counter_mask mask;
1: + struct auto_mode_param param;
1: };
1:
1: struct rdma_hw_stats;
1:
1: struct rdma_port_counter {
1: - struct rdma_counter_mode mode;
1: - struct rdma_hw_stats *hstats;
1: - unsigned int num_counters;
1: - struct mutex lock;
1: + struct rdma_counter_mode mode;
1: + struct rdma_hw_stats *hstats;
1: + unsigned int num_counters;
1: + struct mutex lock;
1: };
1:
1: struct rdma_hw_stats {
1: - struct mutex lock;
1: - long unsigned int timestamp;
1: - long unsigned int lifespan;
1: - const char * const *names;
1: - int num_counters;
1: - u64 value[0];
1: + struct mutex lock;
1: + long unsigned int timestamp;
1: + long unsigned int lifespan;
1: + const char *const *names;
1: + int num_counters;
1: + u64 value[0];
1: };
1:
1: struct ib_device;
1:
1: struct rdma_counter {
1: - struct rdma_restrack_entry res;
1: - struct ib_device *device;
1: - uint32_t id;
1: - struct kref kref;
1: - struct rdma_counter_mode mode;
1: - struct mutex lock;
1: - struct rdma_hw_stats *stats;
1: - u8 port;
1: + struct rdma_restrack_entry res;
1: + struct ib_device *device;
1: + uint32_t id;
1: + struct kref kref;
1: + struct rdma_counter_mode mode;
1: + struct mutex lock;
1: + struct rdma_hw_stats *stats;
1: + u8 port;
1: };
1:
1: enum rdma_driver_id {
1: - RDMA_DRIVER_UNKNOWN = 0,
1: - RDMA_DRIVER_MLX5 = 1,
1: - RDMA_DRIVER_MLX4 = 2,
1: - RDMA_DRIVER_CXGB3 = 3,
1: - RDMA_DRIVER_CXGB4 = 4,
1: - RDMA_DRIVER_MTHCA = 5,
1: - RDMA_DRIVER_BNXT_RE = 6,
1: - RDMA_DRIVER_OCRDMA = 7,
1: - RDMA_DRIVER_NES = 8,
1: - RDMA_DRIVER_I40IW = 9,
1: - RDMA_DRIVER_VMW_PVRDMA = 10,
1: - RDMA_DRIVER_QEDR = 11,
1: - RDMA_DRIVER_HNS = 12,
1: - RDMA_DRIVER_USNIC = 13,
1: - RDMA_DRIVER_RXE = 14,
1: - RDMA_DRIVER_HFI1 = 15,
1: - RDMA_DRIVER_QIB = 16,
1: - RDMA_DRIVER_EFA = 17,
1: - RDMA_DRIVER_SIW = 18,
1: + RDMA_DRIVER_UNKNOWN = 0,
1: + RDMA_DRIVER_MLX5 = 1,
1: + RDMA_DRIVER_MLX4 = 2,
1: + RDMA_DRIVER_CXGB3 = 3,
1: + RDMA_DRIVER_CXGB4 = 4,
1: + RDMA_DRIVER_MTHCA = 5,
1: + RDMA_DRIVER_BNXT_RE = 6,
1: + RDMA_DRIVER_OCRDMA = 7,
1: + RDMA_DRIVER_NES = 8,
1: + RDMA_DRIVER_I40IW = 9,
1: + RDMA_DRIVER_VMW_PVRDMA = 10,
1: + RDMA_DRIVER_QEDR = 11,
1: + RDMA_DRIVER_HNS = 12,
1: + RDMA_DRIVER_USNIC = 13,
1: + RDMA_DRIVER_RXE = 14,
1: + RDMA_DRIVER_HFI1 = 15,
1: + RDMA_DRIVER_QIB = 16,
1: + RDMA_DRIVER_EFA = 17,
1: + RDMA_DRIVER_SIW = 18,
1: };
1:
1: enum ib_cq_notify_flags {
1: - IB_CQ_SOLICITED = 1,
1: - IB_CQ_NEXT_COMP = 2,
1: - IB_CQ_SOLICITED_MASK = 3,
1: - IB_CQ_REPORT_MISSED_EVENTS = 4,
1: + IB_CQ_SOLICITED = 1,
1: + IB_CQ_NEXT_COMP = 2,
1: + IB_CQ_SOLICITED_MASK = 3,
1: + IB_CQ_REPORT_MISSED_EVENTS = 4,
1: };
1:
1: struct ib_mad;
1:
1: enum rdma_link_layer {
1: - IB_LINK_LAYER_UNSPECIFIED = 0,
1: - IB_LINK_LAYER_INFINIBAND = 1,
1: - IB_LINK_LAYER_ETHERNET = 2,
1: + IB_LINK_LAYER_UNSPECIFIED = 0,
1: + IB_LINK_LAYER_INFINIBAND = 1,
1: + IB_LINK_LAYER_ETHERNET = 2,
1: };
1:
1: enum rdma_netdev_t {
1: - RDMA_NETDEV_OPA_VNIC = 0,
1: - RDMA_NETDEV_IPOIB = 1,
1: + RDMA_NETDEV_OPA_VNIC = 0,
1: + RDMA_NETDEV_IPOIB = 1,
1: };
1:
1: enum ib_srq_attr_mask {
1: - IB_SRQ_MAX_WR = 1,
1: - IB_SRQ_LIMIT = 2,
1: + IB_SRQ_MAX_WR = 1,
1: + IB_SRQ_LIMIT = 2,
1: };
1:
1: enum ib_mr_type {
1: - IB_MR_TYPE_MEM_REG = 0,
1: - IB_MR_TYPE_SG_GAPS = 1,
1: - IB_MR_TYPE_DM = 2,
1: - IB_MR_TYPE_USER = 3,
1: - IB_MR_TYPE_DMA = 4,
1: - IB_MR_TYPE_INTEGRITY = 5,
1: + IB_MR_TYPE_MEM_REG = 0,
1: + IB_MR_TYPE_SG_GAPS = 1,
1: + IB_MR_TYPE_DM = 2,
1: + IB_MR_TYPE_USER = 3,
1: + IB_MR_TYPE_DMA = 4,
1: + IB_MR_TYPE_INTEGRITY = 5,
1: };
1:
1: enum ib_uverbs_advise_mr_advice {
1: - IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH = 0,
1: - IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE = 1,
1: - IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT = 2,
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH = 0,
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE = 1,
1: + IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT = 2,
1: };
1:
1: struct uverbs_attr_bundle;
1: @@ -55406,229 +56246,263 @@ struct ib_counters;
1: struct ib_counters_read_attr;
1:
1: struct ib_device_ops {
1: - struct module *owner;
1: - enum rdma_driver_id driver_id;
1: - u32 uverbs_abi_ver;
1: - unsigned int uverbs_no_driver_id_binding: 1;
1: - int (*post_send)(struct ib_qp *, const struct ib_send_wr *, const struct ib_send_wr **);
1: - int (*post_recv)(struct ib_qp *, const struct ib_recv_wr *, const struct ib_recv_wr **);
1: - void (*drain_rq)(struct ib_qp *);
1: - void (*drain_sq)(struct ib_qp *);
1: - int (*poll_cq)(struct ib_cq *, int, struct ib_wc *);
1: - int (*peek_cq)(struct ib_cq *, int);
1: - int (*req_notify_cq)(struct ib_cq *, enum ib_cq_notify_flags);
1: - int (*req_ncomp_notif)(struct ib_cq *, int);
1: - int (*post_srq_recv)(struct ib_srq *, const struct ib_recv_wr *, const struct ib_recv_wr **);
1: - int (*process_mad)(struct ib_device *, int, u8, const struct ib_wc *, const struct ib_grh *, const struct ib_mad *, struct ib_mad *, size_t *, u16 *);
1: - int (*query_device)(struct ib_device *, struct ib_device_attr *, struct ib_udata *);
1: - int (*modify_device)(struct ib_device *, int, struct ib_device_modify *);
1: - void (*get_dev_fw_str)(struct ib_device *, char *);
1: - const struct cpumask * (*get_vector_affinity)(struct ib_device *, int);
1: - int (*query_port)(struct ib_device *, u8, struct ib_port_attr *);
1: - int (*modify_port)(struct ib_device *, u8, int, struct ib_port_modify *);
1: - int (*get_port_immutable)(struct ib_device *, u8, struct ib_port_immutable *);
1: - enum rdma_link_layer (*get_link_layer)(struct ib_device *, u8);
1: - struct net_device * (*get_netdev)(struct ib_device *, u8);
1: - struct net_device * (*alloc_rdma_netdev)(struct ib_device *, u8, enum rdma_netdev_t, const char *, unsigned char, void (*)(struct net_device *));
1: - int (*rdma_netdev_get_params)(struct ib_device *, u8, enum rdma_netdev_t, struct rdma_netdev_alloc_params *);
1: - int (*query_gid)(struct ib_device *, u8, int, union ib_gid *);
1: - int (*add_gid)(const struct ib_gid_attr *, void **);
1: - int (*del_gid)(const struct ib_gid_attr *, void **);
1: - int (*query_pkey)(struct ib_device *, u8, u16, u16 *);
1: - int (*alloc_ucontext)(struct ib_ucontext *, struct ib_udata *);
1: - void (*dealloc_ucontext)(struct ib_ucontext *);
1: - int (*mmap)(struct ib_ucontext *, struct vm_area_struct *);
1: - void (*mmap_free)(struct rdma_user_mmap_entry *);
1: - void (*disassociate_ucontext)(struct ib_ucontext *);
1: - int (*alloc_pd)(struct ib_pd *, struct ib_udata *);
1: - int (*dealloc_pd)(struct ib_pd *, struct ib_udata *);
1: - int (*create_ah)(struct ib_ah *, struct rdma_ah_init_attr *, struct ib_udata *);
1: - int (*modify_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: - int (*query_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: - int (*destroy_ah)(struct ib_ah *, u32);
1: - int (*create_srq)(struct ib_srq *, struct ib_srq_init_attr *, struct ib_udata *);
1: - int (*modify_srq)(struct ib_srq *, struct ib_srq_attr *, enum ib_srq_attr_mask, struct ib_udata *);
1: - int (*query_srq)(struct ib_srq *, struct ib_srq_attr *);
1: - int (*destroy_srq)(struct ib_srq *, struct ib_udata *);
1: - struct ib_qp * (*create_qp)(struct ib_pd *, struct ib_qp_init_attr *, struct ib_udata *);
1: - int (*modify_qp)(struct ib_qp *, struct ib_qp_attr *, int, struct ib_udata *);
1: - int (*query_qp)(struct ib_qp *, struct ib_qp_attr *, int, struct ib_qp_init_attr *);
1: - int (*destroy_qp)(struct ib_qp *, struct ib_udata *);
1: - int (*create_cq)(struct ib_cq *, const struct ib_cq_init_attr *, struct ib_udata *);
1: - int (*modify_cq)(struct ib_cq *, u16, u16);
1: - int (*destroy_cq)(struct ib_cq *, struct ib_udata *);
1: - int (*resize_cq)(struct ib_cq *, int, struct ib_udata *);
1: - struct ib_mr * (*get_dma_mr)(struct ib_pd *, int);
1: - struct ib_mr * (*reg_user_mr)(struct ib_pd *, u64, u64, u64, int, struct ib_udata *);
1: - int (*rereg_user_mr)(struct ib_mr *, int, u64, u64, u64, int, struct ib_pd *, struct ib_udata *);
1: - int (*dereg_mr)(struct ib_mr *, struct ib_udata *);
1: - struct ib_mr * (*alloc_mr)(struct ib_pd *, enum ib_mr_type, u32);
1: - struct ib_mr * (*alloc_mr_integrity)(struct ib_pd *, u32, u32);
1: - int (*advise_mr)(struct ib_pd *, enum ib_uverbs_advise_mr_advice, u32, struct ib_sge *, u32, struct uverbs_attr_bundle *);
1: - int (*map_mr_sg)(struct ib_mr *, struct scatterlist *, int, unsigned int *);
1: - int (*check_mr_status)(struct ib_mr *, u32, struct ib_mr_status *);
1: - int (*alloc_mw)(struct ib_mw *, struct ib_udata *);
1: - int (*dealloc_mw)(struct ib_mw *);
1: - int (*attach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: - int (*detach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: - int (*alloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: - int (*dealloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: - struct ib_flow * (*create_flow)(struct ib_qp *, struct ib_flow_attr *, struct ib_udata *);
1: - int (*destroy_flow)(struct ib_flow *);
1: - struct ib_flow_action * (*create_flow_action_esp)(struct ib_device *, const struct ib_flow_action_attrs_esp *, struct uverbs_attr_bundle *);
1: - int (*destroy_flow_action)(struct ib_flow_action *);
1: - int (*modify_flow_action_esp)(struct ib_flow_action *, const struct ib_flow_action_attrs_esp *, struct uverbs_attr_bundle *);
1: - int (*set_vf_link_state)(struct ib_device *, int, u8, int);
1: - int (*get_vf_config)(struct ib_device *, int, u8, struct ifla_vf_info *);
1: - int (*get_vf_stats)(struct ib_device *, int, u8, struct ifla_vf_stats *);
1: - int (*get_vf_guid)(struct ib_device *, int, u8, struct ifla_vf_guid *, struct ifla_vf_guid *);
1: - int (*set_vf_guid)(struct ib_device *, int, u8, u64, int);
1: - struct ib_wq * (*create_wq)(struct ib_pd *, struct ib_wq_init_attr *, struct ib_udata *);
1: - int (*destroy_wq)(struct ib_wq *, struct ib_udata *);
1: - int (*modify_wq)(struct ib_wq *, struct ib_wq_attr *, u32, struct ib_udata *);
1: - int (*create_rwq_ind_table)(struct ib_rwq_ind_table *, struct ib_rwq_ind_table_init_attr *, struct ib_udata *);
1: - int (*destroy_rwq_ind_table)(struct ib_rwq_ind_table *);
1: - struct ib_dm * (*alloc_dm)(struct ib_device *, struct ib_ucontext *, struct ib_dm_alloc_attr *, struct uverbs_attr_bundle *);
1: - int (*dealloc_dm)(struct ib_dm *, struct uverbs_attr_bundle *);
1: - struct ib_mr * (*reg_dm_mr)(struct ib_pd *, struct ib_dm *, struct ib_dm_mr_attr *, struct uverbs_attr_bundle *);
1: - int (*create_counters)(struct ib_counters *, struct uverbs_attr_bundle *);
1: - int (*destroy_counters)(struct ib_counters *);
1: - int (*read_counters)(struct ib_counters *, struct ib_counters_read_attr *, struct uverbs_attr_bundle *);
1: - int (*map_mr_sg_pi)(struct ib_mr *, struct scatterlist *, int, unsigned int *, struct scatterlist *, int, unsigned int *);
1: - struct rdma_hw_stats * (*alloc_hw_stats)(struct ib_device *, u8);
1: - int (*get_hw_stats)(struct ib_device *, struct rdma_hw_stats *, u8, int);
1: - int (*init_port)(struct ib_device *, u8, struct kobject *);
1: - int (*fill_res_mr_entry)(struct sk_buff *, struct ib_mr *);
1: - int (*fill_res_mr_entry_raw)(struct sk_buff *, struct ib_mr *);
1: - int (*fill_res_cq_entry)(struct sk_buff *, struct ib_cq *);
1: - int (*fill_res_cq_entry_raw)(struct sk_buff *, struct ib_cq *);
1: - int (*fill_res_qp_entry)(struct sk_buff *, struct ib_qp *);
1: - int (*fill_res_qp_entry_raw)(struct sk_buff *, struct ib_qp *);
1: - int (*fill_res_cm_id_entry)(struct sk_buff *, struct rdma_cm_id *);
1: - int (*enable_driver)(struct ib_device *);
1: - void (*dealloc_driver)(struct ib_device *);
1: - void (*iw_add_ref)(struct ib_qp *);
1: - void (*iw_rem_ref)(struct ib_qp *);
1: - struct ib_qp * (*iw_get_qp)(struct ib_device *, int);
1: - int (*iw_connect)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: - int (*iw_accept)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: - int (*iw_reject)(struct iw_cm_id *, const void *, u8);
1: - int (*iw_create_listen)(struct iw_cm_id *, int);
1: - int (*iw_destroy_listen)(struct iw_cm_id *);
1: - int (*counter_bind_qp)(struct rdma_counter *, struct ib_qp *);
1: - int (*counter_unbind_qp)(struct ib_qp *);
1: - int (*counter_dealloc)(struct rdma_counter *);
1: - struct rdma_hw_stats * (*counter_alloc_stats)(struct rdma_counter *);
1: - int (*counter_update_stats)(struct rdma_counter *);
1: - int (*fill_stat_mr_entry)(struct sk_buff *, struct ib_mr *);
1: - int (*query_ucontext)(struct ib_ucontext *, struct uverbs_attr_bundle *);
1: - size_t size_ib_ah;
1: - size_t size_ib_counters;
1: - size_t size_ib_cq;
1: - size_t size_ib_mw;
1: - size_t size_ib_pd;
1: - size_t size_ib_rwq_ind_table;
1: - size_t size_ib_srq;
1: - size_t size_ib_ucontext;
1: - size_t size_ib_xrcd;
1: + struct module *owner;
1: + enum rdma_driver_id driver_id;
1: + u32 uverbs_abi_ver;
1: + unsigned int uverbs_no_driver_id_binding : 1;
1: + int (*post_send)(struct ib_qp *, const struct ib_send_wr *,
1: + const struct ib_send_wr **);
1: + int (*post_recv)(struct ib_qp *, const struct ib_recv_wr *,
1: + const struct ib_recv_wr **);
1: + void (*drain_rq)(struct ib_qp *);
1: + void (*drain_sq)(struct ib_qp *);
1: + int (*poll_cq)(struct ib_cq *, int, struct ib_wc *);
1: + int (*peek_cq)(struct ib_cq *, int);
1: + int (*req_notify_cq)(struct ib_cq *, enum ib_cq_notify_flags);
1: + int (*req_ncomp_notif)(struct ib_cq *, int);
1: + int (*post_srq_recv)(struct ib_srq *, const struct ib_recv_wr *,
1: + const struct ib_recv_wr **);
1: + int (*process_mad)(struct ib_device *, int, u8, const struct ib_wc *,
1: + const struct ib_grh *, const struct ib_mad *,
1: + struct ib_mad *, size_t *, u16 *);
1: + int (*query_device)(struct ib_device *, struct ib_device_attr *,
1: + struct ib_udata *);
1: + int (*modify_device)(struct ib_device *, int, struct ib_device_modify *);
1: + void (*get_dev_fw_str)(struct ib_device *, char *);
1: + const struct cpumask *(*get_vector_affinity)(struct ib_device *, int);
1: + int (*query_port)(struct ib_device *, u8, struct ib_port_attr *);
1: + int (*modify_port)(struct ib_device *, u8, int, struct ib_port_modify *);
1: + int (*get_port_immutable)(struct ib_device *, u8, struct ib_port_immutable *);
1: + enum rdma_link_layer (*get_link_layer)(struct ib_device *, u8);
1: + struct net_device *(*get_netdev)(struct ib_device *, u8);
1: + struct net_device *(*alloc_rdma_netdev)(struct ib_device *, u8,
1: + enum rdma_netdev_t, const char *,
1: + unsigned char,
1: + void (*)(struct net_device *));
1: + int (*rdma_netdev_get_params)(struct ib_device *, u8, enum rdma_netdev_t,
1: + struct rdma_netdev_alloc_params *);
1: + int (*query_gid)(struct ib_device *, u8, int, union ib_gid *);
1: + int (*add_gid)(const struct ib_gid_attr *, void **);
1: + int (*del_gid)(const struct ib_gid_attr *, void **);
1: + int (*query_pkey)(struct ib_device *, u8, u16, u16 *);
1: + int (*alloc_ucontext)(struct ib_ucontext *, struct ib_udata *);
1: + void (*dealloc_ucontext)(struct ib_ucontext *);
1: + int (*mmap)(struct ib_ucontext *, struct vm_area_struct *);
1: + void (*mmap_free)(struct rdma_user_mmap_entry *);
1: + void (*disassociate_ucontext)(struct ib_ucontext *);
1: + int (*alloc_pd)(struct ib_pd *, struct ib_udata *);
1: + int (*dealloc_pd)(struct ib_pd *, struct ib_udata *);
1: + int (*create_ah)(struct ib_ah *, struct rdma_ah_init_attr *,
1: + struct ib_udata *);
1: + int (*modify_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: + int (*query_ah)(struct ib_ah *, struct rdma_ah_attr *);
1: + int (*destroy_ah)(struct ib_ah *, u32);
1: + int (*create_srq)(struct ib_srq *, struct ib_srq_init_attr *,
1: + struct ib_udata *);
1: + int (*modify_srq)(struct ib_srq *, struct ib_srq_attr *,
1: + enum ib_srq_attr_mask, struct ib_udata *);
1: + int (*query_srq)(struct ib_srq *, struct ib_srq_attr *);
1: + int (*destroy_srq)(struct ib_srq *, struct ib_udata *);
1: + struct ib_qp *(*create_qp)(struct ib_pd *, struct ib_qp_init_attr *,
1: + struct ib_udata *);
1: + int (*modify_qp)(struct ib_qp *, struct ib_qp_attr *, int, struct ib_udata *);
1: + int (*query_qp)(struct ib_qp *, struct ib_qp_attr *, int,
1: + struct ib_qp_init_attr *);
1: + int (*destroy_qp)(struct ib_qp *, struct ib_udata *);
1: + int (*create_cq)(struct ib_cq *, const struct ib_cq_init_attr *,
1: + struct ib_udata *);
1: + int (*modify_cq)(struct ib_cq *, u16, u16);
1: + int (*destroy_cq)(struct ib_cq *, struct ib_udata *);
1: + int (*resize_cq)(struct ib_cq *, int, struct ib_udata *);
1: + struct ib_mr *(*get_dma_mr)(struct ib_pd *, int);
1: + struct ib_mr *(*reg_user_mr)(struct ib_pd *, u64, u64, u64, int,
1: + struct ib_udata *);
1: + int (*rereg_user_mr)(struct ib_mr *, int, u64, u64, u64, int, struct ib_pd *,
1: + struct ib_udata *);
1: + int (*dereg_mr)(struct ib_mr *, struct ib_udata *);
1: + struct ib_mr *(*alloc_mr)(struct ib_pd *, enum ib_mr_type, u32);
1: + struct ib_mr *(*alloc_mr_integrity)(struct ib_pd *, u32, u32);
1: + int (*advise_mr)(struct ib_pd *, enum ib_uverbs_advise_mr_advice, u32,
1: + struct ib_sge *, u32, struct uverbs_attr_bundle *);
1: + int (*map_mr_sg)(struct ib_mr *, struct scatterlist *, int, unsigned int *);
1: + int (*check_mr_status)(struct ib_mr *, u32, struct ib_mr_status *);
1: + int (*alloc_mw)(struct ib_mw *, struct ib_udata *);
1: + int (*dealloc_mw)(struct ib_mw *);
1: + int (*attach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: + int (*detach_mcast)(struct ib_qp *, union ib_gid *, u16);
1: + int (*alloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: + int (*dealloc_xrcd)(struct ib_xrcd *, struct ib_udata *);
1: + struct ib_flow *(*create_flow)(struct ib_qp *, struct ib_flow_attr *,
1: + struct ib_udata *);
1: + int (*destroy_flow)(struct ib_flow *);
1: + struct ib_flow_action *(*create_flow_action_esp)(
1: + struct ib_device *, const struct ib_flow_action_attrs_esp *,
1: + struct uverbs_attr_bundle *);
1: + int (*destroy_flow_action)(struct ib_flow_action *);
1: + int (*modify_flow_action_esp)(struct ib_flow_action *,
1: + const struct ib_flow_action_attrs_esp *,
1: + struct uverbs_attr_bundle *);
1: + int (*set_vf_link_state)(struct ib_device *, int, u8, int);
1: + int (*get_vf_config)(struct ib_device *, int, u8, struct ifla_vf_info *);
1: + int (*get_vf_stats)(struct ib_device *, int, u8, struct ifla_vf_stats *);
1: + int (*get_vf_guid)(struct ib_device *, int, u8, struct ifla_vf_guid *,
1: + struct ifla_vf_guid *);
1: + int (*set_vf_guid)(struct ib_device *, int, u8, u64, int);
1: + struct ib_wq *(*create_wq)(struct ib_pd *, struct ib_wq_init_attr *,
1: + struct ib_udata *);
1: + int (*destroy_wq)(struct ib_wq *, struct ib_udata *);
1: + int (*modify_wq)(struct ib_wq *, struct ib_wq_attr *, u32, struct ib_udata *);
1: + int (*create_rwq_ind_table)(struct ib_rwq_ind_table *,
1: + struct ib_rwq_ind_table_init_attr *,
1: + struct ib_udata *);
1: + int (*destroy_rwq_ind_table)(struct ib_rwq_ind_table *);
1: + struct ib_dm *(*alloc_dm)(struct ib_device *, struct ib_ucontext *,
1: + struct ib_dm_alloc_attr *,
1: + struct uverbs_attr_bundle *);
1: + int (*dealloc_dm)(struct ib_dm *, struct uverbs_attr_bundle *);
1: + struct ib_mr *(*reg_dm_mr)(struct ib_pd *, struct ib_dm *,
1: + struct ib_dm_mr_attr *,
1: + struct uverbs_attr_bundle *);
1: + int (*create_counters)(struct ib_counters *, struct uverbs_attr_bundle *);
1: + int (*destroy_counters)(struct ib_counters *);
1: + int (*read_counters)(struct ib_counters *, struct ib_counters_read_attr *,
1: + struct uverbs_attr_bundle *);
1: + int (*map_mr_sg_pi)(struct ib_mr *, struct scatterlist *, int, unsigned int *,
1: + struct scatterlist *, int, unsigned int *);
1: + struct rdma_hw_stats *(*alloc_hw_stats)(struct ib_device *, u8);
1: + int (*get_hw_stats)(struct ib_device *, struct rdma_hw_stats *, u8, int);
1: + int (*init_port)(struct ib_device *, u8, struct kobject *);
1: + int (*fill_res_mr_entry)(struct sk_buff *, struct ib_mr *);
1: + int (*fill_res_mr_entry_raw)(struct sk_buff *, struct ib_mr *);
1: + int (*fill_res_cq_entry)(struct sk_buff *, struct ib_cq *);
1: + int (*fill_res_cq_entry_raw)(struct sk_buff *, struct ib_cq *);
1: + int (*fill_res_qp_entry)(struct sk_buff *, struct ib_qp *);
1: + int (*fill_res_qp_entry_raw)(struct sk_buff *, struct ib_qp *);
1: + int (*fill_res_cm_id_entry)(struct sk_buff *, struct rdma_cm_id *);
1: + int (*enable_driver)(struct ib_device *);
1: + void (*dealloc_driver)(struct ib_device *);
1: + void (*iw_add_ref)(struct ib_qp *);
1: + void (*iw_rem_ref)(struct ib_qp *);
1: + struct ib_qp *(*iw_get_qp)(struct ib_device *, int);
1: + int (*iw_connect)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: + int (*iw_accept)(struct iw_cm_id *, struct iw_cm_conn_param *);
1: + int (*iw_reject)(struct iw_cm_id *, const void *, u8);
1: + int (*iw_create_listen)(struct iw_cm_id *, int);
1: + int (*iw_destroy_listen)(struct iw_cm_id *);
1: + int (*counter_bind_qp)(struct rdma_counter *, struct ib_qp *);
1: + int (*counter_unbind_qp)(struct ib_qp *);
1: + int (*counter_dealloc)(struct rdma_counter *);
1: + struct rdma_hw_stats *(*counter_alloc_stats)(struct rdma_counter *);
1: + int (*counter_update_stats)(struct rdma_counter *);
1: + int (*fill_stat_mr_entry)(struct sk_buff *, struct ib_mr *);
1: + int (*query_ucontext)(struct ib_ucontext *, struct uverbs_attr_bundle *);
1: + size_t size_ib_ah;
1: + size_t size_ib_counters;
1: + size_t size_ib_cq;
1: + size_t size_ib_mw;
1: + size_t size_ib_pd;
1: + size_t size_ib_rwq_ind_table;
1: + size_t size_ib_srq;
1: + size_t size_ib_ucontext;
1: + size_t size_ib_xrcd;
1: };
1:
1: struct ib_core_device {
1: - struct device dev;
1: - possible_net_t rdma_net;
1: - struct kobject *ports_kobj;
1: - struct list_head port_list;
1: - struct ib_device *owner;
1: + struct device dev;
1: + possible_net_t rdma_net;
1: + struct kobject *ports_kobj;
1: + struct list_head port_list;
1: + struct ib_device *owner;
1: };
1:
1: enum ib_atomic_cap {
1: - IB_ATOMIC_NONE = 0,
1: - IB_ATOMIC_HCA = 1,
1: - IB_ATOMIC_GLOB = 2,
1: + IB_ATOMIC_NONE = 0,
1: + IB_ATOMIC_HCA = 1,
1: + IB_ATOMIC_GLOB = 2,
1: };
1:
1: struct ib_odp_caps {
1: - uint64_t general_caps;
1: - struct {
1: - uint32_t rc_odp_caps;
1: - uint32_t uc_odp_caps;
1: - uint32_t ud_odp_caps;
1: - uint32_t xrc_odp_caps;
1: - } per_transport_caps;
1: + uint64_t general_caps;
1: + struct {
1: + uint32_t rc_odp_caps;
1: + uint32_t uc_odp_caps;
1: + uint32_t ud_odp_caps;
1: + uint32_t xrc_odp_caps;
1: + } per_transport_caps;
1: };
1:
1: struct ib_rss_caps {
1: - u32 supported_qpts;
1: - u32 max_rwq_indirection_tables;
1: - u32 max_rwq_indirection_table_size;
1: + u32 supported_qpts;
1: + u32 max_rwq_indirection_tables;
1: + u32 max_rwq_indirection_table_size;
1: };
1:
1: struct ib_tm_caps {
1: - u32 max_rndv_hdr_size;
1: - u32 max_num_tags;
1: - u32 flags;
1: - u32 max_ops;
1: - u32 max_sge;
1: + u32 max_rndv_hdr_size;
1: + u32 max_num_tags;
1: + u32 flags;
1: + u32 max_ops;
1: + u32 max_sge;
1: };
1:
1: struct ib_cq_caps {
1: - u16 max_cq_moderation_count;
1: - u16 max_cq_moderation_period;
1: + u16 max_cq_moderation_count;
1: + u16 max_cq_moderation_period;
1: };
1:
1: struct ib_device_attr {
1: - u64 fw_ver;
1: - __be64 sys_image_guid;
1: - u64 max_mr_size;
1: - u64 page_size_cap;
1: - u32 vendor_id;
1: - u32 vendor_part_id;
1: - u32 hw_ver;
1: - int max_qp;
1: - int max_qp_wr;
1: - u64 device_cap_flags;
1: - int max_send_sge;
1: - int max_recv_sge;
1: - int max_sge_rd;
1: - int max_cq;
1: - int max_cqe;
1: - int max_mr;
1: - int max_pd;
1: - int max_qp_rd_atom;
1: - int max_ee_rd_atom;
1: - int max_res_rd_atom;
1: - int max_qp_init_rd_atom;
1: - int max_ee_init_rd_atom;
1: - enum ib_atomic_cap atomic_cap;
1: - enum ib_atomic_cap masked_atomic_cap;
1: - int max_ee;
1: - int max_rdd;
1: - int max_mw;
1: - int max_raw_ipv6_qp;
1: - int max_raw_ethy_qp;
1: - int max_mcast_grp;
1: - int max_mcast_qp_attach;
1: - int max_total_mcast_qp_attach;
1: - int max_ah;
1: - int max_srq;
1: - int max_srq_wr;
1: - int max_srq_sge;
1: - unsigned int max_fast_reg_page_list_len;
1: - unsigned int max_pi_fast_reg_page_list_len;
1: - u16 max_pkeys;
1: - u8 local_ca_ack_delay;
1: - int sig_prot_cap;
1: - int sig_guard_cap;
1: - struct ib_odp_caps odp_caps;
1: - uint64_t timestamp_mask;
1: - uint64_t hca_core_clock;
1: - struct ib_rss_caps rss_caps;
1: - u32 max_wq_type_rq;
1: - u32 raw_packet_caps;
1: - struct ib_tm_caps tm_caps;
1: - struct ib_cq_caps cq_caps;
1: - u64 max_dm_size;
1: - u32 max_sgl_rd;
1: + u64 fw_ver;
1: + __be64 sys_image_guid;
1: + u64 max_mr_size;
1: + u64 page_size_cap;
1: + u32 vendor_id;
1: + u32 vendor_part_id;
1: + u32 hw_ver;
1: + int max_qp;
1: + int max_qp_wr;
1: + u64 device_cap_flags;
1: + int max_send_sge;
1: + int max_recv_sge;
1: + int max_sge_rd;
1: + int max_cq;
1: + int max_cqe;
1: + int max_mr;
1: + int max_pd;
1: + int max_qp_rd_atom;
1: + int max_ee_rd_atom;
1: + int max_res_rd_atom;
1: + int max_qp_init_rd_atom;
1: + int max_ee_init_rd_atom;
1: + enum ib_atomic_cap atomic_cap;
1: + enum ib_atomic_cap masked_atomic_cap;
1: + int max_ee;
1: + int max_rdd;
1: + int max_mw;
1: + int max_raw_ipv6_qp;
1: + int max_raw_ethy_qp;
1: + int max_mcast_grp;
1: + int max_mcast_qp_attach;
1: + int max_total_mcast_qp_attach;
1: + int max_ah;
1: + int max_srq;
1: + int max_srq_wr;
1: + int max_srq_sge;
1: + unsigned int max_fast_reg_page_list_len;
1: + unsigned int max_pi_fast_reg_page_list_len;
1: + u16 max_pkeys;
1: + u8 local_ca_ack_delay;
1: + int sig_prot_cap;
1: + int sig_guard_cap;
1: + struct ib_odp_caps odp_caps;
1: + uint64_t timestamp_mask;
1: + uint64_t hca_core_clock;
1: + struct ib_rss_caps rss_caps;
1: + u32 max_wq_type_rq;
1: + u32 raw_packet_caps;
1: + struct ib_tm_caps tm_caps;
1: + struct ib_cq_caps cq_caps;
1: + u64 max_dm_size;
1: + u32 max_sgl_rd;
1: };
1:
1: struct rdma_restrack_root;
1: @@ -55638,242 +56512,242 @@ struct uapi_definition;
1: struct ib_port_data;
1:
1: struct ib_device {
1: - struct device *dma_device;
1: - struct ib_device_ops ops;
1: - char name[64];
1: - struct callback_head callback_head;
1: - struct list_head event_handler_list;
1: - struct rw_semaphore event_handler_rwsem;
1: - spinlock_t qp_open_list_lock;
1: - struct rw_semaphore client_data_rwsem;
1: - struct xarray client_data;
1: - struct mutex unregistration_lock;
1: - rwlock_t cache_lock;
1: - struct ib_port_data *port_data;
1: - int num_comp_vectors;
1: - union {
1: - struct device dev;
1: - struct ib_core_device coredev;
1: - };
1: - const struct attribute_group *groups[3];
1: - u64 uverbs_cmd_mask;
1: - u64 uverbs_ex_cmd_mask;
1: - char node_desc[64];
1: - __be64 node_guid;
1: - u32 local_dma_lkey;
1: - u16 is_switch: 1;
1: - u16 kverbs_provider: 1;
1: - u16 use_cq_dim: 1;
1: - u8 node_type;
1: - u8 phys_port_cnt;
1: - struct ib_device_attr attrs;
1: - struct attribute_group *hw_stats_ag;
1: - struct rdma_hw_stats *hw_stats;
1: - u32 index;
1: - spinlock_t cq_pools_lock;
1: - struct list_head cq_pools[3];
1: - struct rdma_restrack_root *res;
1: - const struct uapi_definition *driver_def;
1: - refcount_t refcount;
1: - struct completion unreg_completion;
1: - struct work_struct unregistration_work;
1: - const struct rdma_link_ops *link_ops;
1: - struct mutex compat_devs_mutex;
1: - struct xarray compat_devs;
1: - char iw_ifname[16];
1: - u32 iw_driver_flags;
1: - u32 lag_flags;
1: + struct device *dma_device;
1: + struct ib_device_ops ops;
1: + char name[64];
1: + struct callback_head callback_head;
1: + struct list_head event_handler_list;
1: + struct rw_semaphore event_handler_rwsem;
1: + spinlock_t qp_open_list_lock;
1: + struct rw_semaphore client_data_rwsem;
1: + struct xarray client_data;
1: + struct mutex unregistration_lock;
1: + rwlock_t cache_lock;
1: + struct ib_port_data *port_data;
1: + int num_comp_vectors;
1: + union {
1: + struct device dev;
1: + struct ib_core_device coredev;
1: + };
1: + const struct attribute_group *groups[3];
1: + u64 uverbs_cmd_mask;
1: + u64 uverbs_ex_cmd_mask;
1: + char node_desc[64];
1: + __be64 node_guid;
1: + u32 local_dma_lkey;
1: + u16 is_switch : 1;
1: + u16 kverbs_provider : 1;
1: + u16 use_cq_dim : 1;
1: + u8 node_type;
1: + u8 phys_port_cnt;
1: + struct ib_device_attr attrs;
1: + struct attribute_group *hw_stats_ag;
1: + struct rdma_hw_stats *hw_stats;
1: + u32 index;
1: + spinlock_t cq_pools_lock;
1: + struct list_head cq_pools[3];
1: + struct rdma_restrack_root *res;
1: + const struct uapi_definition *driver_def;
1: + refcount_t refcount;
1: + struct completion unreg_completion;
1: + struct work_struct unregistration_work;
1: + const struct rdma_link_ops *link_ops;
1: + struct mutex compat_devs_mutex;
1: + struct xarray compat_devs;
1: + char iw_ifname[16];
1: + u32 iw_driver_flags;
1: + u32 lag_flags;
1: };
1:
1: enum ib_signature_type {
1: - IB_SIG_TYPE_NONE = 0,
1: - IB_SIG_TYPE_T10_DIF = 1,
1: + IB_SIG_TYPE_NONE = 0,
1: + IB_SIG_TYPE_T10_DIF = 1,
1: };
1:
1: enum ib_t10_dif_bg_type {
1: - IB_T10DIF_CRC = 0,
1: - IB_T10DIF_CSUM = 1,
1: + IB_T10DIF_CRC = 0,
1: + IB_T10DIF_CSUM = 1,
1: };
1:
1: struct ib_t10_dif_domain {
1: - enum ib_t10_dif_bg_type bg_type;
1: - u16 pi_interval;
1: - u16 bg;
1: - u16 app_tag;
1: - u32 ref_tag;
1: - bool ref_remap;
1: - bool app_escape;
1: - bool ref_escape;
1: - u16 apptag_check_mask;
1: + enum ib_t10_dif_bg_type bg_type;
1: + u16 pi_interval;
1: + u16 bg;
1: + u16 app_tag;
1: + u32 ref_tag;
1: + bool ref_remap;
1: + bool app_escape;
1: + bool ref_escape;
1: + u16 apptag_check_mask;
1: };
1:
1: struct ib_sig_domain {
1: - enum ib_signature_type sig_type;
1: - union {
1: - struct ib_t10_dif_domain dif;
1: - } sig;
1: + enum ib_signature_type sig_type;
1: + union {
1: + struct ib_t10_dif_domain dif;
1: + } sig;
1: };
1:
1: struct ib_sig_attrs {
1: - u8 check_mask;
1: - struct ib_sig_domain mem;
1: - struct ib_sig_domain wire;
1: - int meta_length;
1: + u8 check_mask;
1: + struct ib_sig_domain mem;
1: + struct ib_sig_domain wire;
1: + int meta_length;
1: };
1:
1: enum ib_sig_err_type {
1: - IB_SIG_BAD_GUARD = 0,
1: - IB_SIG_BAD_REFTAG = 1,
1: - IB_SIG_BAD_APPTAG = 2,
1: + IB_SIG_BAD_GUARD = 0,
1: + IB_SIG_BAD_REFTAG = 1,
1: + IB_SIG_BAD_APPTAG = 2,
1: };
1:
1: struct ib_sig_err {
1: - enum ib_sig_err_type err_type;
1: - u32 expected;
1: - u32 actual;
1: - u64 sig_err_offset;
1: - u32 key;
1: + enum ib_sig_err_type err_type;
1: + u32 expected;
1: + u32 actual;
1: + u64 sig_err_offset;
1: + u32 key;
1: };
1:
1: enum ib_uverbs_flow_action_esp_keymat {
1: - IB_UVERBS_FLOW_ACTION_ESP_KEYMAT_AES_GCM = 0,
1: + IB_UVERBS_FLOW_ACTION_ESP_KEYMAT_AES_GCM = 0,
1: };
1:
1: struct ib_uverbs_flow_action_esp_keymat_aes_gcm {
1: - __u64 iv;
1: - __u32 iv_algo;
1: - __u32 salt;
1: - __u32 icv_len;
1: - __u32 key_len;
1: - __u32 aes_key[8];
1: + __u64 iv;
1: + __u32 iv_algo;
1: + __u32 salt;
1: + __u32 icv_len;
1: + __u32 key_len;
1: + __u32 aes_key[8];
1: };
1:
1: enum ib_uverbs_flow_action_esp_replay {
1: - IB_UVERBS_FLOW_ACTION_ESP_REPLAY_NONE = 0,
1: - IB_UVERBS_FLOW_ACTION_ESP_REPLAY_BMP = 1,
1: + IB_UVERBS_FLOW_ACTION_ESP_REPLAY_NONE = 0,
1: + IB_UVERBS_FLOW_ACTION_ESP_REPLAY_BMP = 1,
1: };
1:
1: struct ib_uverbs_flow_action_esp_replay_bmp {
1: - __u32 size;
1: + __u32 size;
1: };
1:
1: union ib_gid {
1: - u8 raw[16];
1: - struct {
1: - __be64 subnet_prefix;
1: - __be64 interface_id;
1: - } global;
1: + u8 raw[16];
1: + struct {
1: + __be64 subnet_prefix;
1: + __be64 interface_id;
1: + } global;
1: };
1:
1: enum ib_gid_type {
1: - IB_GID_TYPE_IB = 0,
1: - IB_GID_TYPE_ROCE = 1,
1: - IB_GID_TYPE_ROCE_UDP_ENCAP = 2,
1: - IB_GID_TYPE_SIZE = 3,
1: + IB_GID_TYPE_IB = 0,
1: + IB_GID_TYPE_ROCE = 1,
1: + IB_GID_TYPE_ROCE_UDP_ENCAP = 2,
1: + IB_GID_TYPE_SIZE = 3,
1: };
1:
1: struct ib_gid_attr {
1: - struct net_device *ndev;
1: - struct ib_device *device;
1: - union ib_gid gid;
1: - enum ib_gid_type gid_type;
1: - u16 index;
1: - u8 port_num;
1: + struct net_device *ndev;
1: + struct ib_device *device;
1: + union ib_gid gid;
1: + enum ib_gid_type gid_type;
1: + u16 index;
1: + u8 port_num;
1: };
1:
1: struct ib_cq_init_attr {
1: - unsigned int cqe;
1: - u32 comp_vector;
1: - u32 flags;
1: + unsigned int cqe;
1: + u32 comp_vector;
1: + u32 flags;
1: };
1:
1: struct ib_dm_mr_attr {
1: - u64 length;
1: - u64 offset;
1: - u32 access_flags;
1: + u64 length;
1: + u64 offset;
1: + u32 access_flags;
1: };
1:
1: struct ib_dm_alloc_attr {
1: - u64 length;
1: - u32 alignment;
1: - u32 flags;
1: + u64 length;
1: + u32 alignment;
1: + u32 flags;
1: };
1:
1: enum ib_mtu {
1: - IB_MTU_256 = 1,
1: - IB_MTU_512 = 2,
1: - IB_MTU_1024 = 3,
1: - IB_MTU_2048 = 4,
1: - IB_MTU_4096 = 5,
1: + IB_MTU_256 = 1,
1: + IB_MTU_512 = 2,
1: + IB_MTU_1024 = 3,
1: + IB_MTU_2048 = 4,
1: + IB_MTU_4096 = 5,
1: };
1:
1: enum ib_port_state {
1: - IB_PORT_NOP = 0,
1: - IB_PORT_DOWN = 1,
1: - IB_PORT_INIT = 2,
1: - IB_PORT_ARMED = 3,
1: - IB_PORT_ACTIVE = 4,
1: - IB_PORT_ACTIVE_DEFER = 5,
1: + IB_PORT_NOP = 0,
1: + IB_PORT_DOWN = 1,
1: + IB_PORT_INIT = 2,
1: + IB_PORT_ARMED = 3,
1: + IB_PORT_ACTIVE = 4,
1: + IB_PORT_ACTIVE_DEFER = 5,
1: };
1:
1: struct ib_port_attr {
1: - u64 subnet_prefix;
1: - enum ib_port_state state;
1: - enum ib_mtu max_mtu;
1: - enum ib_mtu active_mtu;
1: - u32 phys_mtu;
1: - int gid_tbl_len;
1: - unsigned int ip_gids: 1;
1: - u32 port_cap_flags;
1: - u32 max_msg_sz;
1: - u32 bad_pkey_cntr;
1: - u32 qkey_viol_cntr;
1: - u16 pkey_tbl_len;
1: - u32 sm_lid;
1: - u32 lid;
1: - u8 lmc;
1: - u8 max_vl_num;
1: - u8 sm_sl;
1: - u8 subnet_timeout;
1: - u8 init_type_reply;
1: - u8 active_width;
1: - u16 active_speed;
1: - u8 phys_state;
1: - u16 port_cap_flags2;
1: + u64 subnet_prefix;
1: + enum ib_port_state state;
1: + enum ib_mtu max_mtu;
1: + enum ib_mtu active_mtu;
1: + u32 phys_mtu;
1: + int gid_tbl_len;
1: + unsigned int ip_gids : 1;
1: + u32 port_cap_flags;
1: + u32 max_msg_sz;
1: + u32 bad_pkey_cntr;
1: + u32 qkey_viol_cntr;
1: + u16 pkey_tbl_len;
1: + u32 sm_lid;
1: + u32 lid;
1: + u8 lmc;
1: + u8 max_vl_num;
1: + u8 sm_sl;
1: + u8 subnet_timeout;
1: + u8 init_type_reply;
1: + u8 active_width;
1: + u16 active_speed;
1: + u8 phys_state;
1: + u16 port_cap_flags2;
1: };
1:
1: struct ib_device_modify {
1: - u64 sys_image_guid;
1: - char node_desc[64];
1: + u64 sys_image_guid;
1: + char node_desc[64];
1: };
1:
1: struct ib_port_modify {
1: - u32 set_port_cap_mask;
1: - u32 clr_port_cap_mask;
1: - u8 init_type;
1: + u32 set_port_cap_mask;
1: + u32 clr_port_cap_mask;
1: + u8 init_type;
1: };
1:
1: enum ib_event_type {
1: - IB_EVENT_CQ_ERR = 0,
1: - IB_EVENT_QP_FATAL = 1,
1: - IB_EVENT_QP_REQ_ERR = 2,
1: - IB_EVENT_QP_ACCESS_ERR = 3,
1: - IB_EVENT_COMM_EST = 4,
1: - IB_EVENT_SQ_DRAINED = 5,
1: - IB_EVENT_PATH_MIG = 6,
1: - IB_EVENT_PATH_MIG_ERR = 7,
1: - IB_EVENT_DEVICE_FATAL = 8,
1: - IB_EVENT_PORT_ACTIVE = 9,
1: - IB_EVENT_PORT_ERR = 10,
1: - IB_EVENT_LID_CHANGE = 11,
1: - IB_EVENT_PKEY_CHANGE = 12,
1: - IB_EVENT_SM_CHANGE = 13,
1: - IB_EVENT_SRQ_ERR = 14,
1: - IB_EVENT_SRQ_LIMIT_REACHED = 15,
1: - IB_EVENT_QP_LAST_WQE_REACHED = 16,
1: - IB_EVENT_CLIENT_REREGISTER = 17,
1: - IB_EVENT_GID_CHANGE = 18,
1: - IB_EVENT_WQ_FATAL = 19,
1: + IB_EVENT_CQ_ERR = 0,
1: + IB_EVENT_QP_FATAL = 1,
1: + IB_EVENT_QP_REQ_ERR = 2,
1: + IB_EVENT_QP_ACCESS_ERR = 3,
1: + IB_EVENT_COMM_EST = 4,
1: + IB_EVENT_SQ_DRAINED = 5,
1: + IB_EVENT_PATH_MIG = 6,
1: + IB_EVENT_PATH_MIG_ERR = 7,
1: + IB_EVENT_DEVICE_FATAL = 8,
1: + IB_EVENT_PORT_ACTIVE = 9,
1: + IB_EVENT_PORT_ERR = 10,
1: + IB_EVENT_LID_CHANGE = 11,
1: + IB_EVENT_PKEY_CHANGE = 12,
1: + IB_EVENT_SM_CHANGE = 13,
1: + IB_EVENT_SRQ_ERR = 14,
1: + IB_EVENT_SRQ_LIMIT_REACHED = 15,
1: + IB_EVENT_QP_LAST_WQE_REACHED = 16,
1: + IB_EVENT_CLIENT_REREGISTER = 17,
1: + IB_EVENT_GID_CHANGE = 18,
1: + IB_EVENT_WQ_FATAL = 19,
1: };
1:
1: struct ib_ucq_object;
1: @@ -55883,501 +56757,501 @@ typedef void (*ib_comp_handler)(struct ib_cq *, void *);
1: struct ib_event;
1:
1: struct ib_cq {
1: - struct ib_device *device;
1: - struct ib_ucq_object *uobject;
1: - ib_comp_handler comp_handler;
1: - void (*event_handler)(struct ib_event *, void *);
1: - void *cq_context;
1: - int cqe;
1: - unsigned int cqe_used;
1: - atomic_t usecnt;
1: - enum ib_poll_context poll_ctx;
1: - struct ib_wc *wc;
1: - struct list_head pool_entry;
1: - union {
1: - struct irq_poll iop;
1: - struct work_struct work;
1: - };
1: - struct workqueue_struct *comp_wq;
1: - struct dim *dim;
1: - ktime_t timestamp;
1: - u8 interrupt: 1;
1: - u8 shared: 1;
1: - unsigned int comp_vector;
1: - struct rdma_restrack_entry res;
1: + struct ib_device *device;
1: + struct ib_ucq_object *uobject;
1: + ib_comp_handler comp_handler;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *cq_context;
1: + int cqe;
1: + unsigned int cqe_used;
1: + atomic_t usecnt;
1: + enum ib_poll_context poll_ctx;
1: + struct ib_wc *wc;
1: + struct list_head pool_entry;
1: + union {
1: + struct irq_poll iop;
1: + struct work_struct work;
1: + };
1: + struct workqueue_struct *comp_wq;
1: + struct dim *dim;
1: + ktime_t timestamp;
1: + u8 interrupt : 1;
1: + u8 shared : 1;
1: + unsigned int comp_vector;
1: + struct rdma_restrack_entry res;
1: };
1:
1: struct ib_uqp_object;
1:
1: enum ib_qp_type {
1: - IB_QPT_SMI = 0,
1: - IB_QPT_GSI = 1,
1: - IB_QPT_RC = 2,
1: - IB_QPT_UC = 3,
1: - IB_QPT_UD = 4,
1: - IB_QPT_RAW_IPV6 = 5,
1: - IB_QPT_RAW_ETHERTYPE = 6,
1: - IB_QPT_RAW_PACKET = 8,
1: - IB_QPT_XRC_INI = 9,
1: - IB_QPT_XRC_TGT = 10,
1: - IB_QPT_MAX = 11,
1: - IB_QPT_DRIVER = 255,
1: - IB_QPT_RESERVED1 = 4096,
1: - IB_QPT_RESERVED2 = 4097,
1: - IB_QPT_RESERVED3 = 4098,
1: - IB_QPT_RESERVED4 = 4099,
1: - IB_QPT_RESERVED5 = 4100,
1: - IB_QPT_RESERVED6 = 4101,
1: - IB_QPT_RESERVED7 = 4102,
1: - IB_QPT_RESERVED8 = 4103,
1: - IB_QPT_RESERVED9 = 4104,
1: - IB_QPT_RESERVED10 = 4105,
1: + IB_QPT_SMI = 0,
1: + IB_QPT_GSI = 1,
1: + IB_QPT_RC = 2,
1: + IB_QPT_UC = 3,
1: + IB_QPT_UD = 4,
1: + IB_QPT_RAW_IPV6 = 5,
1: + IB_QPT_RAW_ETHERTYPE = 6,
1: + IB_QPT_RAW_PACKET = 8,
1: + IB_QPT_XRC_INI = 9,
1: + IB_QPT_XRC_TGT = 10,
1: + IB_QPT_MAX = 11,
1: + IB_QPT_DRIVER = 255,
1: + IB_QPT_RESERVED1 = 4096,
1: + IB_QPT_RESERVED2 = 4097,
1: + IB_QPT_RESERVED3 = 4098,
1: + IB_QPT_RESERVED4 = 4099,
1: + IB_QPT_RESERVED5 = 4100,
1: + IB_QPT_RESERVED6 = 4101,
1: + IB_QPT_RESERVED7 = 4102,
1: + IB_QPT_RESERVED8 = 4103,
1: + IB_QPT_RESERVED9 = 4104,
1: + IB_QPT_RESERVED10 = 4105,
1: };
1:
1: struct ib_qp_security;
1:
1: struct ib_qp {
1: - struct ib_device *device;
1: - struct ib_pd *pd;
1: - struct ib_cq *send_cq;
1: - struct ib_cq *recv_cq;
1: - spinlock_t mr_lock;
1: - int mrs_used;
1: - struct list_head rdma_mrs;
1: - struct list_head sig_mrs;
1: - struct ib_srq *srq;
1: - struct ib_xrcd *xrcd;
1: - struct list_head xrcd_list;
1: - atomic_t usecnt;
1: - struct list_head open_list;
1: - struct ib_qp *real_qp;
1: - struct ib_uqp_object *uobject;
1: - void (*event_handler)(struct ib_event *, void *);
1: - void *qp_context;
1: - const struct ib_gid_attr *av_sgid_attr;
1: - const struct ib_gid_attr *alt_path_sgid_attr;
1: - u32 qp_num;
1: - u32 max_write_sge;
1: - u32 max_read_sge;
1: - enum ib_qp_type qp_type;
1: - struct ib_rwq_ind_table *rwq_ind_tbl;
1: - struct ib_qp_security *qp_sec;
1: - u8 port;
1: - bool integrity_en;
1: - struct rdma_restrack_entry res;
1: - struct rdma_counter *counter;
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_cq *send_cq;
1: + struct ib_cq *recv_cq;
1: + spinlock_t mr_lock;
1: + int mrs_used;
1: + struct list_head rdma_mrs;
1: + struct list_head sig_mrs;
1: + struct ib_srq *srq;
1: + struct ib_xrcd *xrcd;
1: + struct list_head xrcd_list;
1: + atomic_t usecnt;
1: + struct list_head open_list;
1: + struct ib_qp *real_qp;
1: + struct ib_uqp_object *uobject;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *qp_context;
1: + const struct ib_gid_attr *av_sgid_attr;
1: + const struct ib_gid_attr *alt_path_sgid_attr;
1: + u32 qp_num;
1: + u32 max_write_sge;
1: + u32 max_read_sge;
1: + enum ib_qp_type qp_type;
1: + struct ib_rwq_ind_table *rwq_ind_tbl;
1: + struct ib_qp_security *qp_sec;
1: + u8 port;
1: + bool integrity_en;
1: + struct rdma_restrack_entry res;
1: + struct rdma_counter *counter;
1: };
1:
1: struct ib_usrq_object;
1:
1: enum ib_srq_type {
1: - IB_SRQT_BASIC = 0,
1: - IB_SRQT_XRC = 1,
1: - IB_SRQT_TM = 2,
1: + IB_SRQT_BASIC = 0,
1: + IB_SRQT_XRC = 1,
1: + IB_SRQT_TM = 2,
1: };
1:
1: struct ib_srq {
1: - struct ib_device *device;
1: - struct ib_pd *pd;
1: - struct ib_usrq_object *uobject;
1: - void (*event_handler)(struct ib_event *, void *);
1: - void *srq_context;
1: - enum ib_srq_type srq_type;
1: - atomic_t usecnt;
1: - struct {
1: - struct ib_cq *cq;
1: - union {
1: - struct {
1: - struct ib_xrcd *xrcd;
1: - u32 srq_num;
1: - } xrc;
1: - };
1: - } ext;
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_usrq_object *uobject;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *srq_context;
1: + enum ib_srq_type srq_type;
1: + atomic_t usecnt;
1: + struct {
1: + struct ib_cq *cq;
1: + union {
1: + struct {
1: + struct ib_xrcd *xrcd;
1: + u32 srq_num;
1: + } xrc;
1: + };
1: + } ext;
1: };
1:
1: struct ib_uwq_object;
1:
1: enum ib_wq_state {
1: - IB_WQS_RESET = 0,
1: - IB_WQS_RDY = 1,
1: - IB_WQS_ERR = 2,
1: + IB_WQS_RESET = 0,
1: + IB_WQS_RDY = 1,
1: + IB_WQS_ERR = 2,
1: };
1:
1: enum ib_wq_type {
1: - IB_WQT_RQ = 0,
1: + IB_WQT_RQ = 0,
1: };
1:
1: struct ib_wq {
1: - struct ib_device *device;
1: - struct ib_uwq_object *uobject;
1: - void *wq_context;
1: - void (*event_handler)(struct ib_event *, void *);
1: - struct ib_pd *pd;
1: - struct ib_cq *cq;
1: - u32 wq_num;
1: - enum ib_wq_state state;
1: - enum ib_wq_type wq_type;
1: - atomic_t usecnt;
1: + struct ib_device *device;
1: + struct ib_uwq_object *uobject;
1: + void *wq_context;
1: + void (*event_handler)(struct ib_event *, void *);
1: + struct ib_pd *pd;
1: + struct ib_cq *cq;
1: + u32 wq_num;
1: + enum ib_wq_state state;
1: + enum ib_wq_type wq_type;
1: + atomic_t usecnt;
1: };
1:
1: struct ib_event {
1: - struct ib_device *device;
1: - union {
1: - struct ib_cq *cq;
1: - struct ib_qp *qp;
1: - struct ib_srq *srq;
1: - struct ib_wq *wq;
1: - u8 port_num;
1: - } element;
1: - enum ib_event_type event;
1: + struct ib_device *device;
1: + union {
1: + struct ib_cq *cq;
1: + struct ib_qp *qp;
1: + struct ib_srq *srq;
1: + struct ib_wq *wq;
1: + u8 port_num;
1: + } element;
1: + enum ib_event_type event;
1: };
1:
1: struct ib_global_route {
1: - const struct ib_gid_attr *sgid_attr;
1: - union ib_gid dgid;
1: - u32 flow_label;
1: - u8 sgid_index;
1: - u8 hop_limit;
1: - u8 traffic_class;
1: + const struct ib_gid_attr *sgid_attr;
1: + union ib_gid dgid;
1: + u32 flow_label;
1: + u8 sgid_index;
1: + u8 hop_limit;
1: + u8 traffic_class;
1: };
1:
1: struct ib_grh {
1: - __be32 version_tclass_flow;
1: - __be16 paylen;
1: - u8 next_hdr;
1: - u8 hop_limit;
1: - union ib_gid sgid;
1: - union ib_gid dgid;
1: + __be32 version_tclass_flow;
1: + __be16 paylen;
1: + u8 next_hdr;
1: + u8 hop_limit;
1: + union ib_gid sgid;
1: + union ib_gid dgid;
1: };
1:
1: struct ib_mr_status {
1: - u32 fail_status;
1: - struct ib_sig_err sig_err;
1: + u32 fail_status;
1: + struct ib_sig_err sig_err;
1: };
1:
1: struct rdma_ah_init_attr {
1: - struct rdma_ah_attr *ah_attr;
1: - u32 flags;
1: - struct net_device *xmit_slave;
1: + struct rdma_ah_attr *ah_attr;
1: + u32 flags;
1: + struct net_device *xmit_slave;
1: };
1:
1: enum rdma_ah_attr_type {
1: - RDMA_AH_ATTR_TYPE_UNDEFINED = 0,
1: - RDMA_AH_ATTR_TYPE_IB = 1,
1: - RDMA_AH_ATTR_TYPE_ROCE = 2,
1: - RDMA_AH_ATTR_TYPE_OPA = 3,
1: + RDMA_AH_ATTR_TYPE_UNDEFINED = 0,
1: + RDMA_AH_ATTR_TYPE_IB = 1,
1: + RDMA_AH_ATTR_TYPE_ROCE = 2,
1: + RDMA_AH_ATTR_TYPE_OPA = 3,
1: };
1:
1: struct ib_ah_attr {
1: - u16 dlid;
1: - u8 src_path_bits;
1: + u16 dlid;
1: + u8 src_path_bits;
1: };
1:
1: struct roce_ah_attr {
1: - u8 dmac[6];
1: + u8 dmac[6];
1: };
1:
1: struct opa_ah_attr {
1: - u32 dlid;
1: - u8 src_path_bits;
1: - bool make_grd;
1: + u32 dlid;
1: + u8 src_path_bits;
1: + bool make_grd;
1: };
1:
1: struct rdma_ah_attr {
1: - struct ib_global_route grh;
1: - u8 sl;
1: - u8 static_rate;
1: - u8 port_num;
1: - u8 ah_flags;
1: - enum rdma_ah_attr_type type;
1: - union {
1: - struct ib_ah_attr ib;
1: - struct roce_ah_attr roce;
1: - struct opa_ah_attr opa;
1: - };
1: + struct ib_global_route grh;
1: + u8 sl;
1: + u8 static_rate;
1: + u8 port_num;
1: + u8 ah_flags;
1: + enum rdma_ah_attr_type type;
1: + union {
1: + struct ib_ah_attr ib;
1: + struct roce_ah_attr roce;
1: + struct opa_ah_attr opa;
1: + };
1: };
1:
1: enum ib_wc_status {
1: - IB_WC_SUCCESS = 0,
1: - IB_WC_LOC_LEN_ERR = 1,
1: - IB_WC_LOC_QP_OP_ERR = 2,
1: - IB_WC_LOC_EEC_OP_ERR = 3,
1: - IB_WC_LOC_PROT_ERR = 4,
1: - IB_WC_WR_FLUSH_ERR = 5,
1: - IB_WC_MW_BIND_ERR = 6,
1: - IB_WC_BAD_RESP_ERR = 7,
1: - IB_WC_LOC_ACCESS_ERR = 8,
1: - IB_WC_REM_INV_REQ_ERR = 9,
1: - IB_WC_REM_ACCESS_ERR = 10,
1: - IB_WC_REM_OP_ERR = 11,
1: - IB_WC_RETRY_EXC_ERR = 12,
1: - IB_WC_RNR_RETRY_EXC_ERR = 13,
1: - IB_WC_LOC_RDD_VIOL_ERR = 14,
1: - IB_WC_REM_INV_RD_REQ_ERR = 15,
1: - IB_WC_REM_ABORT_ERR = 16,
1: - IB_WC_INV_EECN_ERR = 17,
1: - IB_WC_INV_EEC_STATE_ERR = 18,
1: - IB_WC_FATAL_ERR = 19,
1: - IB_WC_RESP_TIMEOUT_ERR = 20,
1: - IB_WC_GENERAL_ERR = 21,
1: + IB_WC_SUCCESS = 0,
1: + IB_WC_LOC_LEN_ERR = 1,
1: + IB_WC_LOC_QP_OP_ERR = 2,
1: + IB_WC_LOC_EEC_OP_ERR = 3,
1: + IB_WC_LOC_PROT_ERR = 4,
1: + IB_WC_WR_FLUSH_ERR = 5,
1: + IB_WC_MW_BIND_ERR = 6,
1: + IB_WC_BAD_RESP_ERR = 7,
1: + IB_WC_LOC_ACCESS_ERR = 8,
1: + IB_WC_REM_INV_REQ_ERR = 9,
1: + IB_WC_REM_ACCESS_ERR = 10,
1: + IB_WC_REM_OP_ERR = 11,
1: + IB_WC_RETRY_EXC_ERR = 12,
1: + IB_WC_RNR_RETRY_EXC_ERR = 13,
1: + IB_WC_LOC_RDD_VIOL_ERR = 14,
1: + IB_WC_REM_INV_RD_REQ_ERR = 15,
1: + IB_WC_REM_ABORT_ERR = 16,
1: + IB_WC_INV_EECN_ERR = 17,
1: + IB_WC_INV_EEC_STATE_ERR = 18,
1: + IB_WC_FATAL_ERR = 19,
1: + IB_WC_RESP_TIMEOUT_ERR = 20,
1: + IB_WC_GENERAL_ERR = 21,
1: };
1:
1: enum ib_wc_opcode {
1: - IB_WC_SEND = 0,
1: - IB_WC_RDMA_WRITE = 1,
1: - IB_WC_RDMA_READ = 2,
1: - IB_WC_COMP_SWAP = 3,
1: - IB_WC_FETCH_ADD = 4,
1: - IB_WC_BIND_MW = 5,
1: - IB_WC_LOCAL_INV = 6,
1: - IB_WC_LSO = 7,
1: - IB_WC_REG_MR = 8,
1: - IB_WC_MASKED_COMP_SWAP = 9,
1: - IB_WC_MASKED_FETCH_ADD = 10,
1: - IB_WC_RECV = 128,
1: - IB_WC_RECV_RDMA_WITH_IMM = 129,
1: + IB_WC_SEND = 0,
1: + IB_WC_RDMA_WRITE = 1,
1: + IB_WC_RDMA_READ = 2,
1: + IB_WC_COMP_SWAP = 3,
1: + IB_WC_FETCH_ADD = 4,
1: + IB_WC_BIND_MW = 5,
1: + IB_WC_LOCAL_INV = 6,
1: + IB_WC_LSO = 7,
1: + IB_WC_REG_MR = 8,
1: + IB_WC_MASKED_COMP_SWAP = 9,
1: + IB_WC_MASKED_FETCH_ADD = 10,
1: + IB_WC_RECV = 128,
1: + IB_WC_RECV_RDMA_WITH_IMM = 129,
1: };
1:
1: struct ib_cqe {
1: - void (*done)(struct ib_cq *, struct ib_wc *);
1: + void (*done)(struct ib_cq *, struct ib_wc *);
1: };
1:
1: struct ib_wc {
1: - union {
1: - u64 wr_id;
1: - struct ib_cqe *wr_cqe;
1: - };
1: - enum ib_wc_status status;
1: - enum ib_wc_opcode opcode;
1: - u32 vendor_err;
1: - u32 byte_len;
1: - struct ib_qp *qp;
1: - union {
1: - __be32 imm_data;
1: - u32 invalidate_rkey;
1: - } ex;
1: - u32 src_qp;
1: - u32 slid;
1: - int wc_flags;
1: - u16 pkey_index;
1: - u8 sl;
1: - u8 dlid_path_bits;
1: - u8 port_num;
1: - u8 smac[6];
1: - u16 vlan_id;
1: - u8 network_hdr_type;
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + enum ib_wc_status status;
1: + enum ib_wc_opcode opcode;
1: + u32 vendor_err;
1: + u32 byte_len;
1: + struct ib_qp *qp;
1: + union {
1: + __be32 imm_data;
1: + u32 invalidate_rkey;
1: + } ex;
1: + u32 src_qp;
1: + u32 slid;
1: + int wc_flags;
1: + u16 pkey_index;
1: + u8 sl;
1: + u8 dlid_path_bits;
1: + u8 port_num;
1: + u8 smac[6];
1: + u16 vlan_id;
1: + u8 network_hdr_type;
1: };
1:
1: struct ib_srq_attr {
1: - u32 max_wr;
1: - u32 max_sge;
1: - u32 srq_limit;
1: + u32 max_wr;
1: + u32 max_sge;
1: + u32 srq_limit;
1: };
1:
1: struct ib_xrcd {
1: - struct ib_device *device;
1: - atomic_t usecnt;
1: - struct inode *inode;
1: - struct rw_semaphore tgt_qps_rwsem;
1: - struct xarray tgt_qps;
1: + struct ib_device *device;
1: + atomic_t usecnt;
1: + struct inode *inode;
1: + struct rw_semaphore tgt_qps_rwsem;
1: + struct xarray tgt_qps;
1: };
1:
1: struct ib_srq_init_attr {
1: - void (*event_handler)(struct ib_event *, void *);
1: - void *srq_context;
1: - struct ib_srq_attr attr;
1: - enum ib_srq_type srq_type;
1: - struct {
1: - struct ib_cq *cq;
1: - union {
1: - struct {
1: - struct ib_xrcd *xrcd;
1: - } xrc;
1: - struct {
1: - u32 max_num_tags;
1: - } tag_matching;
1: - };
1: - } ext;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *srq_context;
1: + struct ib_srq_attr attr;
1: + enum ib_srq_type srq_type;
1: + struct {
1: + struct ib_cq *cq;
1: + union {
1: + struct {
1: + struct ib_xrcd *xrcd;
1: + } xrc;
1: + struct {
1: + u32 max_num_tags;
1: + } tag_matching;
1: + };
1: + } ext;
1: };
1:
1: struct ib_qp_cap {
1: - u32 max_send_wr;
1: - u32 max_recv_wr;
1: - u32 max_send_sge;
1: - u32 max_recv_sge;
1: - u32 max_inline_data;
1: - u32 max_rdma_ctxs;
1: + u32 max_send_wr;
1: + u32 max_recv_wr;
1: + u32 max_send_sge;
1: + u32 max_recv_sge;
1: + u32 max_inline_data;
1: + u32 max_rdma_ctxs;
1: };
1:
1: enum ib_sig_type {
1: - IB_SIGNAL_ALL_WR = 0,
1: - IB_SIGNAL_REQ_WR = 1,
1: + IB_SIGNAL_ALL_WR = 0,
1: + IB_SIGNAL_REQ_WR = 1,
1: };
1:
1: struct ib_qp_init_attr {
1: - void (*event_handler)(struct ib_event *, void *);
1: - void *qp_context;
1: - struct ib_cq *send_cq;
1: - struct ib_cq *recv_cq;
1: - struct ib_srq *srq;
1: - struct ib_xrcd *xrcd;
1: - struct ib_qp_cap cap;
1: - enum ib_sig_type sq_sig_type;
1: - enum ib_qp_type qp_type;
1: - u32 create_flags;
1: - u8 port_num;
1: - struct ib_rwq_ind_table *rwq_ind_tbl;
1: - u32 source_qpn;
1: + void (*event_handler)(struct ib_event *, void *);
1: + void *qp_context;
1: + struct ib_cq *send_cq;
1: + struct ib_cq *recv_cq;
1: + struct ib_srq *srq;
1: + struct ib_xrcd *xrcd;
1: + struct ib_qp_cap cap;
1: + enum ib_sig_type sq_sig_type;
1: + enum ib_qp_type qp_type;
1: + u32 create_flags;
1: + u8 port_num;
1: + struct ib_rwq_ind_table *rwq_ind_tbl;
1: + u32 source_qpn;
1: };
1:
1: struct ib_uobject;
1:
1: struct ib_rwq_ind_table {
1: - struct ib_device *device;
1: - struct ib_uobject *uobject;
1: - atomic_t usecnt;
1: - u32 ind_tbl_num;
1: - u32 log_ind_tbl_size;
1: - struct ib_wq **ind_tbl;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: + u32 ind_tbl_num;
1: + u32 log_ind_tbl_size;
1: + struct ib_wq **ind_tbl;
1: };
1:
1: enum ib_qp_state {
1: - IB_QPS_RESET = 0,
1: - IB_QPS_INIT = 1,
1: - IB_QPS_RTR = 2,
1: - IB_QPS_RTS = 3,
1: - IB_QPS_SQD = 4,
1: - IB_QPS_SQE = 5,
1: - IB_QPS_ERR = 6,
1: + IB_QPS_RESET = 0,
1: + IB_QPS_INIT = 1,
1: + IB_QPS_RTR = 2,
1: + IB_QPS_RTS = 3,
1: + IB_QPS_SQD = 4,
1: + IB_QPS_SQE = 5,
1: + IB_QPS_ERR = 6,
1: };
1:
1: enum ib_mig_state {
1: - IB_MIG_MIGRATED = 0,
1: - IB_MIG_REARM = 1,
1: - IB_MIG_ARMED = 2,
1: + IB_MIG_MIGRATED = 0,
1: + IB_MIG_REARM = 1,
1: + IB_MIG_ARMED = 2,
1: };
1:
1: enum ib_mw_type {
1: - IB_MW_TYPE_1 = 1,
1: - IB_MW_TYPE_2 = 2,
1: + IB_MW_TYPE_1 = 1,
1: + IB_MW_TYPE_2 = 2,
1: };
1:
1: struct ib_qp_attr {
1: - enum ib_qp_state qp_state;
1: - enum ib_qp_state cur_qp_state;
1: - enum ib_mtu path_mtu;
1: - enum ib_mig_state path_mig_state;
1: - u32 qkey;
1: - u32 rq_psn;
1: - u32 sq_psn;
1: - u32 dest_qp_num;
1: - int qp_access_flags;
1: - struct ib_qp_cap cap;
1: - struct rdma_ah_attr ah_attr;
1: - struct rdma_ah_attr alt_ah_attr;
1: - u16 pkey_index;
1: - u16 alt_pkey_index;
1: - u8 en_sqd_async_notify;
1: - u8 sq_draining;
1: - u8 max_rd_atomic;
1: - u8 max_dest_rd_atomic;
1: - u8 min_rnr_timer;
1: - u8 port_num;
1: - u8 timeout;
1: - u8 retry_cnt;
1: - u8 rnr_retry;
1: - u8 alt_port_num;
1: - u8 alt_timeout;
1: - u32 rate_limit;
1: - struct net_device *xmit_slave;
1: + enum ib_qp_state qp_state;
1: + enum ib_qp_state cur_qp_state;
1: + enum ib_mtu path_mtu;
1: + enum ib_mig_state path_mig_state;
1: + u32 qkey;
1: + u32 rq_psn;
1: + u32 sq_psn;
1: + u32 dest_qp_num;
1: + int qp_access_flags;
1: + struct ib_qp_cap cap;
1: + struct rdma_ah_attr ah_attr;
1: + struct rdma_ah_attr alt_ah_attr;
1: + u16 pkey_index;
1: + u16 alt_pkey_index;
1: + u8 en_sqd_async_notify;
1: + u8 sq_draining;
1: + u8 max_rd_atomic;
1: + u8 max_dest_rd_atomic;
1: + u8 min_rnr_timer;
1: + u8 port_num;
1: + u8 timeout;
1: + u8 retry_cnt;
1: + u8 rnr_retry;
1: + u8 alt_port_num;
1: + u8 alt_timeout;
1: + u32 rate_limit;
1: + struct net_device *xmit_slave;
1: };
1:
1: enum ib_wr_opcode {
1: - IB_WR_RDMA_WRITE = 0,
1: - IB_WR_RDMA_WRITE_WITH_IMM = 1,
1: - IB_WR_SEND = 2,
1: - IB_WR_SEND_WITH_IMM = 3,
1: - IB_WR_RDMA_READ = 4,
1: - IB_WR_ATOMIC_CMP_AND_SWP = 5,
1: - IB_WR_ATOMIC_FETCH_AND_ADD = 6,
1: - IB_WR_BIND_MW = 8,
1: - IB_WR_LSO = 10,
1: - IB_WR_SEND_WITH_INV = 9,
1: - IB_WR_RDMA_READ_WITH_INV = 11,
1: - IB_WR_LOCAL_INV = 7,
1: - IB_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: - IB_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: - IB_WR_REG_MR = 32,
1: - IB_WR_REG_MR_INTEGRITY = 33,
1: - IB_WR_RESERVED1 = 240,
1: - IB_WR_RESERVED2 = 241,
1: - IB_WR_RESERVED3 = 242,
1: - IB_WR_RESERVED4 = 243,
1: - IB_WR_RESERVED5 = 244,
1: - IB_WR_RESERVED6 = 245,
1: - IB_WR_RESERVED7 = 246,
1: - IB_WR_RESERVED8 = 247,
1: - IB_WR_RESERVED9 = 248,
1: - IB_WR_RESERVED10 = 249,
1: + IB_WR_RDMA_WRITE = 0,
1: + IB_WR_RDMA_WRITE_WITH_IMM = 1,
1: + IB_WR_SEND = 2,
1: + IB_WR_SEND_WITH_IMM = 3,
1: + IB_WR_RDMA_READ = 4,
1: + IB_WR_ATOMIC_CMP_AND_SWP = 5,
1: + IB_WR_ATOMIC_FETCH_AND_ADD = 6,
1: + IB_WR_BIND_MW = 8,
1: + IB_WR_LSO = 10,
1: + IB_WR_SEND_WITH_INV = 9,
1: + IB_WR_RDMA_READ_WITH_INV = 11,
1: + IB_WR_LOCAL_INV = 7,
1: + IB_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
1: + IB_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
1: + IB_WR_REG_MR = 32,
1: + IB_WR_REG_MR_INTEGRITY = 33,
1: + IB_WR_RESERVED1 = 240,
1: + IB_WR_RESERVED2 = 241,
1: + IB_WR_RESERVED3 = 242,
1: + IB_WR_RESERVED4 = 243,
1: + IB_WR_RESERVED5 = 244,
1: + IB_WR_RESERVED6 = 245,
1: + IB_WR_RESERVED7 = 246,
1: + IB_WR_RESERVED8 = 247,
1: + IB_WR_RESERVED9 = 248,
1: + IB_WR_RESERVED10 = 249,
1: };
1:
1: struct ib_sge {
1: - u64 addr;
1: - u32 length;
1: - u32 lkey;
1: + u64 addr;
1: + u32 length;
1: + u32 lkey;
1: };
1:
1: struct ib_send_wr {
1: - struct ib_send_wr *next;
1: - union {
1: - u64 wr_id;
1: - struct ib_cqe *wr_cqe;
1: - };
1: - struct ib_sge *sg_list;
1: - int num_sge;
1: - enum ib_wr_opcode opcode;
1: - int send_flags;
1: - union {
1: - __be32 imm_data;
1: - u32 invalidate_rkey;
1: - } ex;
1: + struct ib_send_wr *next;
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + struct ib_sge *sg_list;
1: + int num_sge;
1: + enum ib_wr_opcode opcode;
1: + int send_flags;
1: + union {
1: + __be32 imm_data;
1: + u32 invalidate_rkey;
1: + } ex;
1: };
1:
1: struct ib_ah {
1: - struct ib_device *device;
1: - struct ib_pd *pd;
1: - struct ib_uobject *uobject;
1: - const struct ib_gid_attr *sgid_attr;
1: - enum rdma_ah_attr_type type;
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_uobject *uobject;
1: + const struct ib_gid_attr *sgid_attr;
1: + enum rdma_ah_attr_type type;
1: };
1:
1: struct ib_mr {
1: - struct ib_device *device;
1: - struct ib_pd *pd;
1: - u32 lkey;
1: - u32 rkey;
1: - u64 iova;
1: - u64 length;
1: - unsigned int page_size;
1: - enum ib_mr_type type;
1: - bool need_inval;
1: - union {
1: - struct ib_uobject *uobject;
1: - struct list_head qp_entry;
1: - };
1: - struct ib_dm *dm;
1: - struct ib_sig_attrs *sig_attrs;
1: - struct rdma_restrack_entry res;
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + u32 lkey;
1: + u32 rkey;
1: + u64 iova;
1: + u64 length;
1: + unsigned int page_size;
1: + enum ib_mr_type type;
1: + bool need_inval;
1: + union {
1: + struct ib_uobject *uobject;
1: + struct list_head qp_entry;
1: + };
1: + struct ib_dm *dm;
1: + struct ib_sig_attrs *sig_attrs;
1: + struct rdma_restrack_entry res;
1: };
1:
1: struct ib_recv_wr {
1: - struct ib_recv_wr *next;
1: - union {
1: - u64 wr_id;
1: - struct ib_cqe *wr_cqe;
1: - };
1: - struct ib_sge *sg_list;
1: - int num_sge;
1: + struct ib_recv_wr *next;
1: + union {
1: + u64 wr_id;
1: + struct ib_cqe *wr_cqe;
1: + };
1: + struct ib_sge *sg_list;
1: + int num_sge;
1: };
1:
1: struct ib_rdmacg_object {};
1: @@ -56385,378 +57259,378 @@ struct ib_rdmacg_object {};
1: struct ib_uverbs_file;
1:
1: struct ib_ucontext {
1: - struct ib_device *device;
1: - struct ib_uverbs_file *ufile;
1: - bool cleanup_retryable;
1: - struct ib_rdmacg_object cg_obj;
1: - struct rdma_restrack_entry res;
1: - struct xarray mmap_xa;
1: + struct ib_device *device;
1: + struct ib_uverbs_file *ufile;
1: + bool cleanup_retryable;
1: + struct ib_rdmacg_object cg_obj;
1: + struct rdma_restrack_entry res;
1: + struct xarray mmap_xa;
1: };
1:
1: struct uverbs_api_object;
1:
1: struct ib_uobject {
1: - u64 user_handle;
1: - struct ib_uverbs_file *ufile;
1: - struct ib_ucontext *context;
1: - void *object;
1: - struct list_head list;
1: - struct ib_rdmacg_object cg_obj;
1: - int id;
1: - struct kref ref;
1: - atomic_t usecnt;
1: - struct callback_head rcu;
1: - const struct uverbs_api_object *uapi_object;
1: + u64 user_handle;
1: + struct ib_uverbs_file *ufile;
1: + struct ib_ucontext *context;
1: + void *object;
1: + struct list_head list;
1: + struct ib_rdmacg_object cg_obj;
1: + int id;
1: + struct kref ref;
1: + atomic_t usecnt;
1: + struct callback_head rcu;
1: + const struct uverbs_api_object *uapi_object;
1: };
1:
1: struct ib_udata {
1: - const void *inbuf;
1: - void *outbuf;
1: - size_t inlen;
1: - size_t outlen;
1: + const void *inbuf;
1: + void *outbuf;
1: + size_t inlen;
1: + size_t outlen;
1: };
1:
1: struct ib_pd {
1: - u32 local_dma_lkey;
1: - u32 flags;
1: - struct ib_device *device;
1: - struct ib_uobject *uobject;
1: - atomic_t usecnt;
1: - u32 unsafe_global_rkey;
1: - struct ib_mr *__internal_mr;
1: - struct rdma_restrack_entry res;
1: + u32 local_dma_lkey;
1: + u32 flags;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: + u32 unsafe_global_rkey;
1: + struct ib_mr *__internal_mr;
1: + struct rdma_restrack_entry res;
1: };
1:
1: struct ib_wq_init_attr {
1: - void *wq_context;
1: - enum ib_wq_type wq_type;
1: - u32 max_wr;
1: - u32 max_sge;
1: - struct ib_cq *cq;
1: - void (*event_handler)(struct ib_event *, void *);
1: - u32 create_flags;
1: + void *wq_context;
1: + enum ib_wq_type wq_type;
1: + u32 max_wr;
1: + u32 max_sge;
1: + struct ib_cq *cq;
1: + void (*event_handler)(struct ib_event *, void *);
1: + u32 create_flags;
1: };
1:
1: struct ib_wq_attr {
1: - enum ib_wq_state wq_state;
1: - enum ib_wq_state curr_wq_state;
1: - u32 flags;
1: - u32 flags_mask;
1: + enum ib_wq_state wq_state;
1: + enum ib_wq_state curr_wq_state;
1: + u32 flags;
1: + u32 flags_mask;
1: };
1:
1: struct ib_rwq_ind_table_init_attr {
1: - u32 log_ind_tbl_size;
1: - struct ib_wq **ind_tbl;
1: + u32 log_ind_tbl_size;
1: + struct ib_wq **ind_tbl;
1: };
1:
1: enum port_pkey_state {
1: - IB_PORT_PKEY_NOT_VALID = 0,
1: - IB_PORT_PKEY_VALID = 1,
1: - IB_PORT_PKEY_LISTED = 2,
1: + IB_PORT_PKEY_NOT_VALID = 0,
1: + IB_PORT_PKEY_VALID = 1,
1: + IB_PORT_PKEY_LISTED = 2,
1: };
1:
1: struct ib_port_pkey {
1: - enum port_pkey_state state;
1: - u16 pkey_index;
1: - u8 port_num;
1: - struct list_head qp_list;
1: - struct list_head to_error_list;
1: - struct ib_qp_security *sec;
1: + enum port_pkey_state state;
1: + u16 pkey_index;
1: + u8 port_num;
1: + struct list_head qp_list;
1: + struct list_head to_error_list;
1: + struct ib_qp_security *sec;
1: };
1:
1: struct ib_ports_pkeys;
1:
1: struct ib_qp_security {
1: - struct ib_qp *qp;
1: - struct ib_device *dev;
1: - struct mutex mutex;
1: - struct ib_ports_pkeys *ports_pkeys;
1: - struct list_head shared_qp_list;
1: - void *security;
1: - bool destroying;
1: - atomic_t error_list_count;
1: - struct completion error_complete;
1: - int error_comps_pending;
1: + struct ib_qp *qp;
1: + struct ib_device *dev;
1: + struct mutex mutex;
1: + struct ib_ports_pkeys *ports_pkeys;
1: + struct list_head shared_qp_list;
1: + void *security;
1: + bool destroying;
1: + atomic_t error_list_count;
1: + struct completion error_complete;
1: + int error_comps_pending;
1: };
1:
1: struct ib_ports_pkeys {
1: - struct ib_port_pkey main;
1: - struct ib_port_pkey alt;
1: + struct ib_port_pkey main;
1: + struct ib_port_pkey alt;
1: };
1:
1: struct ib_dm {
1: - struct ib_device *device;
1: - u32 length;
1: - u32 flags;
1: - struct ib_uobject *uobject;
1: - atomic_t usecnt;
1: + struct ib_device *device;
1: + u32 length;
1: + u32 flags;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: };
1:
1: struct ib_mw {
1: - struct ib_device *device;
1: - struct ib_pd *pd;
1: - struct ib_uobject *uobject;
1: - u32 rkey;
1: - enum ib_mw_type type;
1: + struct ib_device *device;
1: + struct ib_pd *pd;
1: + struct ib_uobject *uobject;
1: + u32 rkey;
1: + enum ib_mw_type type;
1: };
1:
1: enum ib_flow_attr_type {
1: - IB_FLOW_ATTR_NORMAL = 0,
1: - IB_FLOW_ATTR_ALL_DEFAULT = 1,
1: - IB_FLOW_ATTR_MC_DEFAULT = 2,
1: - IB_FLOW_ATTR_SNIFFER = 3,
1: + IB_FLOW_ATTR_NORMAL = 0,
1: + IB_FLOW_ATTR_ALL_DEFAULT = 1,
1: + IB_FLOW_ATTR_MC_DEFAULT = 2,
1: + IB_FLOW_ATTR_SNIFFER = 3,
1: };
1:
1: enum ib_flow_spec_type {
1: - IB_FLOW_SPEC_ETH = 32,
1: - IB_FLOW_SPEC_IB = 34,
1: - IB_FLOW_SPEC_IPV4 = 48,
1: - IB_FLOW_SPEC_IPV6 = 49,
1: - IB_FLOW_SPEC_ESP = 52,
1: - IB_FLOW_SPEC_TCP = 64,
1: - IB_FLOW_SPEC_UDP = 65,
1: - IB_FLOW_SPEC_VXLAN_TUNNEL = 80,
1: - IB_FLOW_SPEC_GRE = 81,
1: - IB_FLOW_SPEC_MPLS = 96,
1: - IB_FLOW_SPEC_INNER = 256,
1: - IB_FLOW_SPEC_ACTION_TAG = 4096,
1: - IB_FLOW_SPEC_ACTION_DROP = 4097,
1: - IB_FLOW_SPEC_ACTION_HANDLE = 4098,
1: - IB_FLOW_SPEC_ACTION_COUNT = 4099,
1: + IB_FLOW_SPEC_ETH = 32,
1: + IB_FLOW_SPEC_IB = 34,
1: + IB_FLOW_SPEC_IPV4 = 48,
1: + IB_FLOW_SPEC_IPV6 = 49,
1: + IB_FLOW_SPEC_ESP = 52,
1: + IB_FLOW_SPEC_TCP = 64,
1: + IB_FLOW_SPEC_UDP = 65,
1: + IB_FLOW_SPEC_VXLAN_TUNNEL = 80,
1: + IB_FLOW_SPEC_GRE = 81,
1: + IB_FLOW_SPEC_MPLS = 96,
1: + IB_FLOW_SPEC_INNER = 256,
1: + IB_FLOW_SPEC_ACTION_TAG = 4096,
1: + IB_FLOW_SPEC_ACTION_DROP = 4097,
1: + IB_FLOW_SPEC_ACTION_HANDLE = 4098,
1: + IB_FLOW_SPEC_ACTION_COUNT = 4099,
1: };
1:
1: struct ib_flow_eth_filter {
1: - u8 dst_mac[6];
1: - u8 src_mac[6];
1: - __be16 ether_type;
1: - __be16 vlan_tag;
1: - u8 real_sz[0];
1: + u8 dst_mac[6];
1: + u8 src_mac[6];
1: + __be16 ether_type;
1: + __be16 vlan_tag;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_eth {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_eth_filter val;
1: - struct ib_flow_eth_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_eth_filter val;
1: + struct ib_flow_eth_filter mask;
1: };
1:
1: struct ib_flow_ib_filter {
1: - __be16 dlid;
1: - __u8 sl;
1: - u8 real_sz[0];
1: + __be16 dlid;
1: + __u8 sl;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_ib {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_ib_filter val;
1: - struct ib_flow_ib_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ib_filter val;
1: + struct ib_flow_ib_filter mask;
1: };
1:
1: struct ib_flow_ipv4_filter {
1: - __be32 src_ip;
1: - __be32 dst_ip;
1: - u8 proto;
1: - u8 tos;
1: - u8 ttl;
1: - u8 flags;
1: - u8 real_sz[0];
1: + __be32 src_ip;
1: + __be32 dst_ip;
1: + u8 proto;
1: + u8 tos;
1: + u8 ttl;
1: + u8 flags;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_ipv4 {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_ipv4_filter val;
1: - struct ib_flow_ipv4_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ipv4_filter val;
1: + struct ib_flow_ipv4_filter mask;
1: };
1:
1: struct ib_flow_ipv6_filter {
1: - u8 src_ip[16];
1: - u8 dst_ip[16];
1: - __be32 flow_label;
1: - u8 next_hdr;
1: - u8 traffic_class;
1: - u8 hop_limit;
1: - u8 real_sz[0];
1: + u8 src_ip[16];
1: + u8 dst_ip[16];
1: + __be32 flow_label;
1: + u8 next_hdr;
1: + u8 traffic_class;
1: + u8 hop_limit;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_ipv6 {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_ipv6_filter val;
1: - struct ib_flow_ipv6_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_ipv6_filter val;
1: + struct ib_flow_ipv6_filter mask;
1: };
1:
1: struct ib_flow_tcp_udp_filter {
1: - __be16 dst_port;
1: - __be16 src_port;
1: - u8 real_sz[0];
1: + __be16 dst_port;
1: + __be16 src_port;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_tcp_udp {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_tcp_udp_filter val;
1: - struct ib_flow_tcp_udp_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_tcp_udp_filter val;
1: + struct ib_flow_tcp_udp_filter mask;
1: };
1:
1: struct ib_flow_tunnel_filter {
1: - __be32 tunnel_id;
1: - u8 real_sz[0];
1: + __be32 tunnel_id;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_tunnel {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_tunnel_filter val;
1: - struct ib_flow_tunnel_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_tunnel_filter val;
1: + struct ib_flow_tunnel_filter mask;
1: };
1:
1: struct ib_flow_esp_filter {
1: - __be32 spi;
1: - __be32 seq;
1: - u8 real_sz[0];
1: + __be32 spi;
1: + __be32 seq;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_esp {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_esp_filter val;
1: - struct ib_flow_esp_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_esp_filter val;
1: + struct ib_flow_esp_filter mask;
1: };
1:
1: struct ib_flow_gre_filter {
1: - __be16 c_ks_res0_ver;
1: - __be16 protocol;
1: - __be32 key;
1: - u8 real_sz[0];
1: + __be16 c_ks_res0_ver;
1: + __be16 protocol;
1: + __be32 key;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_gre {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_gre_filter val;
1: - struct ib_flow_gre_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_gre_filter val;
1: + struct ib_flow_gre_filter mask;
1: };
1:
1: struct ib_flow_mpls_filter {
1: - __be32 tag;
1: - u8 real_sz[0];
1: + __be32 tag;
1: + u8 real_sz[0];
1: };
1:
1: struct ib_flow_spec_mpls {
1: - u32 type;
1: - u16 size;
1: - struct ib_flow_mpls_filter val;
1: - struct ib_flow_mpls_filter mask;
1: + u32 type;
1: + u16 size;
1: + struct ib_flow_mpls_filter val;
1: + struct ib_flow_mpls_filter mask;
1: };
1:
1: struct ib_flow_spec_action_tag {
1: - enum ib_flow_spec_type type;
1: - u16 size;
1: - u32 tag_id;
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + u32 tag_id;
1: };
1:
1: struct ib_flow_spec_action_drop {
1: - enum ib_flow_spec_type type;
1: - u16 size;
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: };
1:
1: struct ib_flow_spec_action_handle {
1: - enum ib_flow_spec_type type;
1: - u16 size;
1: - struct ib_flow_action *act;
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + struct ib_flow_action *act;
1: };
1:
1: enum ib_flow_action_type {
1: - IB_FLOW_ACTION_UNSPECIFIED = 0,
1: - IB_FLOW_ACTION_ESP = 1,
1: + IB_FLOW_ACTION_UNSPECIFIED = 0,
1: + IB_FLOW_ACTION_ESP = 1,
1: };
1:
1: struct ib_flow_action {
1: - struct ib_device *device;
1: - struct ib_uobject *uobject;
1: - enum ib_flow_action_type type;
1: - atomic_t usecnt;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + enum ib_flow_action_type type;
1: + atomic_t usecnt;
1: };
1:
1: struct ib_flow_spec_action_count {
1: - enum ib_flow_spec_type type;
1: - u16 size;
1: - struct ib_counters *counters;
1: + enum ib_flow_spec_type type;
1: + u16 size;
1: + struct ib_counters *counters;
1: };
1:
1: struct ib_counters {
1: - struct ib_device *device;
1: - struct ib_uobject *uobject;
1: - atomic_t usecnt;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: + atomic_t usecnt;
1: };
1:
1: union ib_flow_spec {
1: - struct {
1: - u32 type;
1: - u16 size;
1: - };
1: - struct ib_flow_spec_eth eth;
1: - struct ib_flow_spec_ib ib;
1: - struct ib_flow_spec_ipv4 ipv4;
1: - struct ib_flow_spec_tcp_udp tcp_udp;
1: - struct ib_flow_spec_ipv6 ipv6;
1: - struct ib_flow_spec_tunnel tunnel;
1: - struct ib_flow_spec_esp esp;
1: - struct ib_flow_spec_gre gre;
1: - struct ib_flow_spec_mpls mpls;
1: - struct ib_flow_spec_action_tag flow_tag;
1: - struct ib_flow_spec_action_drop drop;
1: - struct ib_flow_spec_action_handle action;
1: - struct ib_flow_spec_action_count flow_count;
1: + struct {
1: + u32 type;
1: + u16 size;
1: + };
1: + struct ib_flow_spec_eth eth;
1: + struct ib_flow_spec_ib ib;
1: + struct ib_flow_spec_ipv4 ipv4;
1: + struct ib_flow_spec_tcp_udp tcp_udp;
1: + struct ib_flow_spec_ipv6 ipv6;
1: + struct ib_flow_spec_tunnel tunnel;
1: + struct ib_flow_spec_esp esp;
1: + struct ib_flow_spec_gre gre;
1: + struct ib_flow_spec_mpls mpls;
1: + struct ib_flow_spec_action_tag flow_tag;
1: + struct ib_flow_spec_action_drop drop;
1: + struct ib_flow_spec_action_handle action;
1: + struct ib_flow_spec_action_count flow_count;
1: };
1:
1: struct ib_flow_attr {
1: - enum ib_flow_attr_type type;
1: - u16 size;
1: - u16 priority;
1: - u32 flags;
1: - u8 num_of_specs;
1: - u8 port;
1: - union ib_flow_spec flows[0];
1: + enum ib_flow_attr_type type;
1: + u16 size;
1: + u16 priority;
1: + u32 flags;
1: + u8 num_of_specs;
1: + u8 port;
1: + union ib_flow_spec flows[0];
1: };
1:
1: struct ib_flow {
1: - struct ib_qp *qp;
1: - struct ib_device *device;
1: - struct ib_uobject *uobject;
1: + struct ib_qp *qp;
1: + struct ib_device *device;
1: + struct ib_uobject *uobject;
1: };
1:
1: struct ib_flow_action_attrs_esp_keymats {
1: - enum ib_uverbs_flow_action_esp_keymat protocol;
1: - union {
1: - struct ib_uverbs_flow_action_esp_keymat_aes_gcm aes_gcm;
1: - } keymat;
1: + enum ib_uverbs_flow_action_esp_keymat protocol;
1: + union {
1: + struct ib_uverbs_flow_action_esp_keymat_aes_gcm aes_gcm;
1: + } keymat;
1: };
1:
1: struct ib_flow_action_attrs_esp_replays {
1: - enum ib_uverbs_flow_action_esp_replay protocol;
1: - union {
1: - struct ib_uverbs_flow_action_esp_replay_bmp bmp;
1: - } replay;
1: + enum ib_uverbs_flow_action_esp_replay protocol;
1: + union {
1: + struct ib_uverbs_flow_action_esp_replay_bmp bmp;
1: + } replay;
1: };
1:
1: struct ib_flow_spec_list {
1: - struct ib_flow_spec_list *next;
1: - union ib_flow_spec spec;
1: + struct ib_flow_spec_list *next;
1: + union ib_flow_spec spec;
1: };
1:
1: struct ib_flow_action_attrs_esp {
1: - struct ib_flow_action_attrs_esp_keymats *keymat;
1: - struct ib_flow_action_attrs_esp_replays *replay;
1: - struct ib_flow_spec_list *encap;
1: - u32 esn;
1: - u32 spi;
1: - u32 seq;
1: - u32 tfc_pad;
1: - u64 flags;
1: - u64 hard_limit_pkts;
1: + struct ib_flow_action_attrs_esp_keymats *keymat;
1: + struct ib_flow_action_attrs_esp_replays *replay;
1: + struct ib_flow_spec_list *encap;
1: + u32 esn;
1: + u32 spi;
1: + u32 seq;
1: + u32 tfc_pad;
1: + u64 flags;
1: + u64 hard_limit_pkts;
1: };
1:
1: struct ib_pkey_cache;
1: @@ -56764,175 +57638,176 @@ struct ib_pkey_cache;
1: struct ib_gid_table;
1:
1: struct ib_port_cache {
1: - u64 subnet_prefix;
1: - struct ib_pkey_cache *pkey;
1: - struct ib_gid_table *gid;
1: - u8 lmc;
1: - enum ib_port_state port_state;
1: + u64 subnet_prefix;
1: + struct ib_pkey_cache *pkey;
1: + struct ib_gid_table *gid;
1: + u8 lmc;
1: + enum ib_port_state port_state;
1: };
1:
1: struct ib_port_immutable {
1: - int pkey_tbl_len;
1: - int gid_tbl_len;
1: - u32 core_cap_flags;
1: - u32 max_mad_size;
1: + int pkey_tbl_len;
1: + int gid_tbl_len;
1: + u32 core_cap_flags;
1: + u32 max_mad_size;
1: };
1:
1: struct ib_port_data {
1: - struct ib_device *ib_dev;
1: - struct ib_port_immutable immutable;
1: - spinlock_t pkey_list_lock;
1: - struct list_head pkey_list;
1: - struct ib_port_cache cache;
1: - spinlock_t netdev_lock;
1: - struct net_device *netdev;
1: - struct hlist_node ndev_hash_link;
1: - struct rdma_port_counter port_counter;
1: - struct rdma_hw_stats *hw_stats;
1: + struct ib_device *ib_dev;
1: + struct ib_port_immutable immutable;
1: + spinlock_t pkey_list_lock;
1: + struct list_head pkey_list;
1: + struct ib_port_cache cache;
1: + spinlock_t netdev_lock;
1: + struct net_device *netdev;
1: + struct hlist_node ndev_hash_link;
1: + struct rdma_port_counter port_counter;
1: + struct rdma_hw_stats *hw_stats;
1: };
1:
1: struct rdma_netdev_alloc_params {
1: - size_t sizeof_priv;
1: - unsigned int txqs;
1: - unsigned int rxqs;
1: - void *param;
1: - int (*initialize_rdma_netdev)(struct ib_device *, u8, struct net_device *, void *);
1: + size_t sizeof_priv;
1: + unsigned int txqs;
1: + unsigned int rxqs;
1: + void *param;
1: + int (*initialize_rdma_netdev)(struct ib_device *, u8, struct net_device *,
1: + void *);
1: };
1:
1: struct ib_counters_read_attr {
1: - u64 *counters_buff;
1: - u32 ncounters;
1: - u32 flags;
1: + u64 *counters_buff;
1: + u32 ncounters;
1: + u32 flags;
1: };
1:
1: struct rdma_user_mmap_entry {
1: - struct kref ref;
1: - struct ib_ucontext *ucontext;
1: - long unsigned int start_pgoff;
1: - size_t npages;
1: - bool driver_removed;
1: + struct kref ref;
1: + struct ib_ucontext *ucontext;
1: + long unsigned int start_pgoff;
1: + size_t npages;
1: + bool driver_removed;
1: };
1:
1: enum blk_zone_type {
1: - BLK_ZONE_TYPE_CONVENTIONAL = 1,
1: - BLK_ZONE_TYPE_SEQWRITE_REQ = 2,
1: - BLK_ZONE_TYPE_SEQWRITE_PREF = 3,
1: + BLK_ZONE_TYPE_CONVENTIONAL = 1,
1: + BLK_ZONE_TYPE_SEQWRITE_REQ = 2,
1: + BLK_ZONE_TYPE_SEQWRITE_PREF = 3,
1: };
1:
1: enum blk_zone_cond {
1: - BLK_ZONE_COND_NOT_WP = 0,
1: - BLK_ZONE_COND_EMPTY = 1,
1: - BLK_ZONE_COND_IMP_OPEN = 2,
1: - BLK_ZONE_COND_EXP_OPEN = 3,
1: - BLK_ZONE_COND_CLOSED = 4,
1: - BLK_ZONE_COND_READONLY = 13,
1: - BLK_ZONE_COND_FULL = 14,
1: - BLK_ZONE_COND_OFFLINE = 15,
1: + BLK_ZONE_COND_NOT_WP = 0,
1: + BLK_ZONE_COND_EMPTY = 1,
1: + BLK_ZONE_COND_IMP_OPEN = 2,
1: + BLK_ZONE_COND_EXP_OPEN = 3,
1: + BLK_ZONE_COND_CLOSED = 4,
1: + BLK_ZONE_COND_READONLY = 13,
1: + BLK_ZONE_COND_FULL = 14,
1: + BLK_ZONE_COND_OFFLINE = 15,
1: };
1:
1: enum blk_zone_report_flags {
1: - BLK_ZONE_REP_CAPACITY = 1,
1: + BLK_ZONE_REP_CAPACITY = 1,
1: };
1:
1: struct blk_zone_report {
1: - __u64 sector;
1: - __u32 nr_zones;
1: - __u32 flags;
1: - struct blk_zone zones[0];
1: + __u64 sector;
1: + __u32 nr_zones;
1: + __u32 flags;
1: + struct blk_zone zones[0];
1: };
1:
1: struct blk_zone_range {
1: - __u64 sector;
1: - __u64 nr_sectors;
1: + __u64 sector;
1: + __u64 nr_sectors;
1: };
1:
1: struct zone_report_args {
1: - struct blk_zone *zones;
1: + struct blk_zone *zones;
1: };
1:
1: struct blk_revalidate_zone_args {
1: - struct gendisk *disk;
1: - long unsigned int *conv_zones_bitmap;
1: - long unsigned int *seq_zones_wlock;
1: - unsigned int nr_zones;
1: - sector_t zone_sectors;
1: - sector_t sector;
1: + struct gendisk *disk;
1: + long unsigned int *conv_zones_bitmap;
1: + long unsigned int *seq_zones_wlock;
1: + unsigned int nr_zones;
1: + sector_t zone_sectors;
1: + sector_t sector;
1: };
1:
1: enum wbt_flags {
1: - WBT_TRACKED = 1,
1: - WBT_READ = 2,
1: - WBT_KSWAPD = 4,
1: - WBT_DISCARD = 8,
1: - WBT_NR_BITS = 4,
1: + WBT_TRACKED = 1,
1: + WBT_READ = 2,
1: + WBT_KSWAPD = 4,
1: + WBT_DISCARD = 8,
1: + WBT_NR_BITS = 4,
1: };
1:
1: enum {
1: - WBT_STATE_ON_DEFAULT = 1,
1: - WBT_STATE_ON_MANUAL = 2,
1: + WBT_STATE_ON_DEFAULT = 1,
1: + WBT_STATE_ON_MANUAL = 2,
1: };
1:
1: struct rq_wb {
1: - unsigned int wb_background;
1: - unsigned int wb_normal;
1: - short int enable_state;
1: - unsigned int unknown_cnt;
1: - u64 win_nsec;
1: - u64 cur_win_nsec;
1: - struct blk_stat_callback *cb;
1: - u64 sync_issue;
1: - void *sync_cookie;
1: - unsigned int wc;
1: - long unsigned int last_issue;
1: - long unsigned int last_comp;
1: - long unsigned int min_lat_nsec;
1: - struct rq_qos rqos;
1: - struct rq_wait rq_wait[3];
1: - struct rq_depth rq_depth;
1: + unsigned int wb_background;
1: + unsigned int wb_normal;
1: + short int enable_state;
1: + unsigned int unknown_cnt;
1: + u64 win_nsec;
1: + u64 cur_win_nsec;
1: + struct blk_stat_callback *cb;
1: + u64 sync_issue;
1: + void *sync_cookie;
1: + unsigned int wc;
1: + long unsigned int last_issue;
1: + long unsigned int last_comp;
1: + long unsigned int min_lat_nsec;
1: + struct rq_qos rqos;
1: + struct rq_wait rq_wait[3];
1: + struct rq_depth rq_depth;
1: };
1:
1: struct trace_event_raw_wbt_stat {
1: - struct trace_entry ent;
1: - char name[32];
1: - s64 rmean;
1: - u64 rmin;
1: - u64 rmax;
1: - s64 rnr_samples;
1: - s64 rtime;
1: - s64 wmean;
1: - u64 wmin;
1: - u64 wmax;
1: - s64 wnr_samples;
1: - s64 wtime;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + s64 rmean;
1: + u64 rmin;
1: + u64 rmax;
1: + s64 rnr_samples;
1: + s64 rtime;
1: + s64 wmean;
1: + u64 wmin;
1: + u64 wmax;
1: + s64 wnr_samples;
1: + s64 wtime;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wbt_lat {
1: - struct trace_entry ent;
1: - char name[32];
1: - long unsigned int lat;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + long unsigned int lat;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wbt_step {
1: - struct trace_entry ent;
1: - char name[32];
1: - const char *msg;
1: - int step;
1: - long unsigned int window;
1: - unsigned int bg;
1: - unsigned int normal;
1: - unsigned int max;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + const char *msg;
1: + int step;
1: + long unsigned int window;
1: + unsigned int bg;
1: + unsigned int normal;
1: + unsigned int max;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_wbt_timer {
1: - struct trace_entry ent;
1: - char name[32];
1: - unsigned int status;
1: - int step;
1: - unsigned int inflight;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + unsigned int status;
1: + int step;
1: + unsigned int inflight;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_wbt_stat {};
1: @@ -56943,91 +57818,98 @@ struct trace_event_data_offsets_wbt_step {};
1:
1: struct trace_event_data_offsets_wbt_timer {};
1:
1: -typedef void (*btf_trace_wbt_stat)(void *, struct backing_dev_info *, struct blk_rq_stat *);
1: +typedef void (*btf_trace_wbt_stat)(void *, struct backing_dev_info *,
1: + struct blk_rq_stat *);
1:
1: -typedef void (*btf_trace_wbt_lat)(void *, struct backing_dev_info *, long unsigned int);
1: +typedef void (*btf_trace_wbt_lat)(void *, struct backing_dev_info *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_wbt_step)(void *, struct backing_dev_info *, const char *, int, long unsigned int, unsigned int, unsigned int, unsigned int);
1: +typedef void (*btf_trace_wbt_step)(void *, struct backing_dev_info *,
1: + const char *, int, long unsigned int,
1: + unsigned int, unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_wbt_timer)(void *, struct backing_dev_info *, unsigned int, int, unsigned int);
1: +typedef void (*btf_trace_wbt_timer)(void *, struct backing_dev_info *,
1: + unsigned int, int, unsigned int);
1:
1: enum {
1: - RWB_DEF_DEPTH = 16,
1: - RWB_WINDOW_NSEC = 100000000,
1: - RWB_MIN_WRITE_SAMPLES = 3,
1: - RWB_UNKNOWN_BUMP = 5,
1: + RWB_DEF_DEPTH = 16,
1: + RWB_WINDOW_NSEC = 100000000,
1: + RWB_MIN_WRITE_SAMPLES = 3,
1: + RWB_UNKNOWN_BUMP = 5,
1: };
1:
1: enum {
1: - LAT_OK = 1,
1: - LAT_UNKNOWN = 2,
1: - LAT_UNKNOWN_WRITES = 3,
1: - LAT_EXCEEDED = 4,
1: + LAT_OK = 1,
1: + LAT_UNKNOWN = 2,
1: + LAT_UNKNOWN_WRITES = 3,
1: + LAT_EXCEEDED = 4,
1: };
1:
1: struct wbt_wait_data {
1: - struct rq_wb *rwb;
1: - enum wbt_flags wb_acct;
1: - long unsigned int rw;
1: + struct rq_wb *rwb;
1: + enum wbt_flags wb_acct;
1: + long unsigned int rw;
1: };
1:
1: struct blk_ksm_keyslot {
1: - atomic_t slot_refs;
1: - struct list_head idle_slot_node;
1: - struct hlist_node hash_node;
1: - const struct blk_crypto_key *key;
1: - struct blk_keyslot_manager *ksm;
1: + atomic_t slot_refs;
1: + struct list_head idle_slot_node;
1: + struct hlist_node hash_node;
1: + const struct blk_crypto_key *key;
1: + struct blk_keyslot_manager *ksm;
1: };
1:
1: struct blk_ksm_ll_ops {
1: - int (*keyslot_program)(struct blk_keyslot_manager *, const struct blk_crypto_key *, unsigned int);
1: - int (*keyslot_evict)(struct blk_keyslot_manager *, const struct blk_crypto_key *, unsigned int);
1: + int (*keyslot_program)(struct blk_keyslot_manager *,
1: + const struct blk_crypto_key *, unsigned int);
1: + int (*keyslot_evict)(struct blk_keyslot_manager *,
1: + const struct blk_crypto_key *, unsigned int);
1: };
1:
1: struct blk_keyslot_manager {
1: - struct blk_ksm_ll_ops ksm_ll_ops;
1: - unsigned int max_dun_bytes_supported;
1: - unsigned int crypto_modes_supported[4];
1: - struct device *dev;
1: - unsigned int num_slots;
1: - struct rw_semaphore lock;
1: - wait_queue_head_t idle_slots_wait_queue;
1: - struct list_head idle_slots;
1: - spinlock_t idle_slots_lock;
1: - struct hlist_head *slot_hashtable;
1: - unsigned int log_slot_ht_size;
1: - struct blk_ksm_keyslot *slots;
1: + struct blk_ksm_ll_ops ksm_ll_ops;
1: + unsigned int max_dun_bytes_supported;
1: + unsigned int crypto_modes_supported[4];
1: + struct device *dev;
1: + unsigned int num_slots;
1: + struct rw_semaphore lock;
1: + wait_queue_head_t idle_slots_wait_queue;
1: + struct list_head idle_slots;
1: + spinlock_t idle_slots_lock;
1: + struct hlist_head *slot_hashtable;
1: + unsigned int log_slot_ht_size;
1: + struct blk_ksm_keyslot *slots;
1: };
1:
1: struct blk_crypto_mode {
1: - const char *cipher_str;
1: - unsigned int keysize;
1: - unsigned int ivsize;
1: + const char *cipher_str;
1: + unsigned int keysize;
1: + unsigned int ivsize;
1: };
1:
1: struct bio_fallback_crypt_ctx {
1: - struct bio_crypt_ctx crypt_ctx;
1: - struct bvec_iter crypt_iter;
1: - union {
1: - struct {
1: - struct work_struct work;
1: - struct bio *bio;
1: - };
1: - struct {
1: - void *bi_private_orig;
1: - bio_end_io_t *bi_end_io_orig;
1: - };
1: - };
1: + struct bio_crypt_ctx crypt_ctx;
1: + struct bvec_iter crypt_iter;
1: + union {
1: + struct {
1: + struct work_struct work;
1: + struct bio *bio;
1: + };
1: + struct {
1: + void *bi_private_orig;
1: + bio_end_io_t *bi_end_io_orig;
1: + };
1: + };
1: };
1:
1: struct blk_crypto_keyslot {
1: - enum blk_crypto_mode_num crypto_mode;
1: - struct crypto_skcipher *tfms[4];
1: + enum blk_crypto_mode_num crypto_mode;
1: + struct crypto_skcipher *tfms[4];
1: };
1:
1: union blk_crypto_iv {
1: - __le64 dun[4];
1: - u8 bytes[32];
1: + __le64 dun[4];
1: + u8 bytes[32];
1: };
1:
1: typedef void (*swap_func_t)(void *, void *, int);
1: @@ -57035,10 +57917,10 @@ typedef void (*swap_func_t)(void *, void *, int);
1: typedef int (*cmp_r_func_t)(const void *, const void *, const void *);
1:
1: struct siprand_state {
1: - long unsigned int v0;
1: - long unsigned int v1;
1: - long unsigned int v2;
1: - long unsigned int v3;
1: + long unsigned int v0;
1: + long unsigned int v1;
1: + long unsigned int v2;
1: + long unsigned int v3;
1: };
1:
1: typedef __kernel_long_t __kernel_ptrdiff_t;
1: @@ -57046,16 +57928,16 @@ typedef __kernel_long_t __kernel_ptrdiff_t;
1: typedef __kernel_ptrdiff_t ptrdiff_t;
1:
1: struct region {
1: - unsigned int start;
1: - unsigned int off;
1: - unsigned int group_len;
1: - unsigned int end;
1: + unsigned int start;
1: + unsigned int off;
1: + unsigned int group_len;
1: + unsigned int end;
1: };
1:
1: enum {
1: - REG_OP_ISFREE = 0,
1: - REG_OP_ALLOC = 1,
1: - REG_OP_RELEASE = 2,
1: + REG_OP_ISFREE = 0,
1: + REG_OP_ALLOC = 1,
1: + REG_OP_RELEASE = 2,
1: };
1:
1: typedef struct scatterlist *sg_alloc_fn(unsigned int, gfp_t);
1: @@ -57063,192 +57945,194 @@ typedef struct scatterlist *sg_alloc_fn(unsigned int, gfp_t);
1: typedef void sg_free_fn(struct scatterlist *, unsigned int);
1:
1: struct sg_page_iter {
1: - struct scatterlist *sg;
1: - unsigned int sg_pgoffset;
1: - unsigned int __nents;
1: - int __pg_advance;
1: + struct scatterlist *sg;
1: + unsigned int sg_pgoffset;
1: + unsigned int __nents;
1: + int __pg_advance;
1: };
1:
1: struct sg_dma_page_iter {
1: - struct sg_page_iter base;
1: + struct sg_page_iter base;
1: };
1:
1: struct sg_mapping_iter {
1: - struct page *page;
1: - void *addr;
1: - size_t length;
1: - size_t consumed;
1: - struct sg_page_iter piter;
1: - unsigned int __offset;
1: - unsigned int __remaining;
1: - unsigned int __flags;
1: + struct page *page;
1: + void *addr;
1: + size_t length;
1: + size_t consumed;
1: + struct sg_page_iter piter;
1: + unsigned int __offset;
1: + unsigned int __remaining;
1: + unsigned int __flags;
1: };
1:
1: -typedef int (*cmp_func)(void *, const struct list_head *, const struct list_head *);
1: +typedef int (*cmp_func)(void *, const struct list_head *,
1: + const struct list_head *);
1:
1: struct rhltable {
1: - struct rhashtable ht;
1: + struct rhashtable ht;
1: };
1:
1: struct rhashtable_walker {
1: - struct list_head list;
1: - struct bucket_table *tbl;
1: + struct list_head list;
1: + struct bucket_table *tbl;
1: };
1:
1: struct rhashtable_iter {
1: - struct rhashtable *ht;
1: - struct rhash_head *p;
1: - struct rhlist_head *list;
1: - struct rhashtable_walker walker;
1: - unsigned int slot;
1: - unsigned int skip;
1: - bool end_of_table;
1: + struct rhashtable *ht;
1: + struct rhash_head *p;
1: + struct rhlist_head *list;
1: + struct rhashtable_walker walker;
1: + unsigned int slot;
1: + unsigned int skip;
1: + bool end_of_table;
1: };
1:
1: union nested_table {
1: - union nested_table *table;
1: - struct rhash_lock_head *bucket;
1: + union nested_table *table;
1: + struct rhash_lock_head *bucket;
1: };
1:
1: struct once_work {
1: - struct work_struct work;
1: - struct static_key_true *key;
1: + struct work_struct work;
1: + struct static_key_true *key;
1: };
1:
1: struct genradix_iter {
1: - size_t offset;
1: - size_t pos;
1: + size_t offset;
1: + size_t pos;
1: };
1:
1: struct genradix_node {
1: - union {
1: - struct genradix_node *children[512];
1: - u8 data[4096];
1: - };
1: + union {
1: + struct genradix_node *children[512];
1: + u8 data[4096];
1: + };
1: };
1:
1: struct reciprocal_value_adv {
1: - u32 m;
1: - u8 sh;
1: - u8 exp;
1: - bool is_wide_m;
1: + u32 m;
1: + u8 sh;
1: + u8 exp;
1: + bool is_wide_m;
1: };
1:
1: enum devm_ioremap_type {
1: - DEVM_IOREMAP = 0,
1: - DEVM_IOREMAP_UC = 1,
1: - DEVM_IOREMAP_WC = 2,
1: + DEVM_IOREMAP = 0,
1: + DEVM_IOREMAP_UC = 1,
1: + DEVM_IOREMAP_WC = 2,
1: };
1:
1: struct pcim_iomap_devres {
1: - void *table[6];
1: + void *table[6];
1: };
1:
1: struct btree_head {
1: - long unsigned int *node;
1: - mempool_t *mempool;
1: - int height;
1: + long unsigned int *node;
1: + mempool_t *mempool;
1: + int height;
1: };
1:
1: struct btree_geo {
1: - int keylen;
1: - int no_pairs;
1: - int no_longs;
1: + int keylen;
1: + int no_pairs;
1: + int no_longs;
1: };
1:
1: typedef void (*visitor128_t)(void *, long unsigned int, u64, u64, size_t);
1:
1: -typedef void (*visitorl_t)(void *, long unsigned int, long unsigned int, size_t);
1: +typedef void (*visitorl_t)(void *, long unsigned int, long unsigned int,
1: + size_t);
1:
1: typedef void (*visitor32_t)(void *, long unsigned int, u32, size_t);
1:
1: typedef void (*visitor64_t)(void *, long unsigned int, u64, size_t);
1:
1: enum assoc_array_walk_status {
1: - assoc_array_walk_tree_empty = 0,
1: - assoc_array_walk_found_terminal_node = 1,
1: - assoc_array_walk_found_wrong_shortcut = 2,
1: + assoc_array_walk_tree_empty = 0,
1: + assoc_array_walk_found_terminal_node = 1,
1: + assoc_array_walk_found_wrong_shortcut = 2,
1: };
1:
1: struct assoc_array_walk_result {
1: - struct {
1: - struct assoc_array_node *node;
1: - int level;
1: - int slot;
1: - } terminal_node;
1: - struct {
1: - struct assoc_array_shortcut *shortcut;
1: - int level;
1: - int sc_level;
1: - long unsigned int sc_segments;
1: - long unsigned int dissimilarity;
1: - } wrong_shortcut;
1: + struct {
1: + struct assoc_array_node *node;
1: + int level;
1: + int slot;
1: + } terminal_node;
1: + struct {
1: + struct assoc_array_shortcut *shortcut;
1: + int level;
1: + int sc_level;
1: + long unsigned int sc_segments;
1: + long unsigned int dissimilarity;
1: + } wrong_shortcut;
1: };
1:
1: struct assoc_array_delete_collapse_context {
1: - struct assoc_array_node *node;
1: - const void *skip_leaf;
1: - int slot;
1: + struct assoc_array_node *node;
1: + const void *skip_leaf;
1: + int slot;
1: };
1:
1: struct linear_range {
1: - unsigned int min;
1: - unsigned int min_sel;
1: - unsigned int max_sel;
1: - unsigned int step;
1: + unsigned int min;
1: + unsigned int min_sel;
1: + unsigned int max_sel;
1: + unsigned int step;
1: };
1:
1: enum packing_op {
1: - PACK = 0,
1: - UNPACK = 1,
1: + PACK = 0,
1: + UNPACK = 1,
1: };
1:
1: struct crc_test {
1: - u32 crc;
1: - u32 start;
1: - u32 length;
1: - u32 crc_le;
1: - u32 crc_be;
1: - u32 crc32c_le;
1: + u32 crc;
1: + u32 start;
1: + u32 length;
1: + u32 crc_le;
1: + u32 crc_be;
1: + u32 crc32c_le;
1: };
1:
1: struct xxh32_state {
1: - uint32_t total_len_32;
1: - uint32_t large_len;
1: - uint32_t v1;
1: - uint32_t v2;
1: - uint32_t v3;
1: - uint32_t v4;
1: - uint32_t mem32[4];
1: - uint32_t memsize;
1: + uint32_t total_len_32;
1: + uint32_t large_len;
1: + uint32_t v1;
1: + uint32_t v2;
1: + uint32_t v3;
1: + uint32_t v4;
1: + uint32_t mem32[4];
1: + uint32_t memsize;
1: };
1:
1: struct xxh64_state {
1: - uint64_t total_len;
1: - uint64_t v1;
1: - uint64_t v2;
1: - uint64_t v3;
1: - uint64_t v4;
1: - uint64_t mem64[4];
1: - uint32_t memsize;
1: + uint64_t total_len;
1: + uint64_t v1;
1: + uint64_t v2;
1: + uint64_t v3;
1: + uint64_t v4;
1: + uint64_t mem64[4];
1: + uint32_t memsize;
1: };
1:
1: struct gen_pool_chunk {
1: - struct list_head next_chunk;
1: - atomic_long_t avail;
1: - phys_addr_t phys_addr;
1: - void *owner;
1: - long unsigned int start_addr;
1: - long unsigned int end_addr;
1: - long unsigned int bits[0];
1: + struct list_head next_chunk;
1: + atomic_long_t avail;
1: + phys_addr_t phys_addr;
1: + void *owner;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + long unsigned int bits[0];
1: };
1:
1: struct genpool_data_align {
1: - int align;
1: + int align;
1: };
1:
1: struct genpool_data_fixed {
1: - long unsigned int offset;
1: + long unsigned int offset;
1: };
1:
1: typedef struct z_stream_s z_stream;
1: @@ -57256,93 +58140,93 @@ typedef struct z_stream_s z_stream;
1: typedef z_stream *z_streamp;
1:
1: typedef struct {
1: - unsigned char op;
1: - unsigned char bits;
1: - short unsigned int val;
1: + unsigned char op;
1: + unsigned char bits;
1: + short unsigned int val;
1: } code;
1:
1: typedef enum {
1: - HEAD = 0,
1: - FLAGS = 1,
1: - TIME = 2,
1: - OS = 3,
1: - EXLEN = 4,
1: - EXTRA = 5,
1: - NAME = 6,
1: - COMMENT = 7,
1: - HCRC = 8,
1: - DICTID = 9,
1: - DICT = 10,
1: - TYPE = 11,
1: - TYPEDO = 12,
1: - STORED = 13,
1: - COPY = 14,
1: - TABLE = 15,
1: - LENLENS = 16,
1: - CODELENS = 17,
1: - LEN = 18,
1: - LENEXT = 19,
1: - DIST = 20,
1: - DISTEXT = 21,
1: - MATCH = 22,
1: - LIT = 23,
1: - CHECK = 24,
1: - LENGTH = 25,
1: - DONE = 26,
1: - BAD = 27,
1: - MEM = 28,
1: - SYNC = 29,
1: + HEAD = 0,
1: + FLAGS = 1,
1: + TIME = 2,
1: + OS = 3,
1: + EXLEN = 4,
1: + EXTRA = 5,
1: + NAME = 6,
1: + COMMENT = 7,
1: + HCRC = 8,
1: + DICTID = 9,
1: + DICT = 10,
1: + TYPE = 11,
1: + TYPEDO = 12,
1: + STORED = 13,
1: + COPY = 14,
1: + TABLE = 15,
1: + LENLENS = 16,
1: + CODELENS = 17,
1: + LEN = 18,
1: + LENEXT = 19,
1: + DIST = 20,
1: + DISTEXT = 21,
1: + MATCH = 22,
1: + LIT = 23,
1: + CHECK = 24,
1: + LENGTH = 25,
1: + DONE = 26,
1: + BAD = 27,
1: + MEM = 28,
1: + SYNC = 29,
1: } inflate_mode;
1:
1: struct inflate_state {
1: - inflate_mode mode;
1: - int last;
1: - int wrap;
1: - int havedict;
1: - int flags;
1: - unsigned int dmax;
1: - long unsigned int check;
1: - long unsigned int total;
1: - unsigned int wbits;
1: - unsigned int wsize;
1: - unsigned int whave;
1: - unsigned int write;
1: - unsigned char *window;
1: - long unsigned int hold;
1: - unsigned int bits;
1: - unsigned int length;
1: - unsigned int offset;
1: - unsigned int extra;
1: - const code *lencode;
1: - const code *distcode;
1: - unsigned int lenbits;
1: - unsigned int distbits;
1: - unsigned int ncode;
1: - unsigned int nlen;
1: - unsigned int ndist;
1: - unsigned int have;
1: - code *next;
1: - short unsigned int lens[320];
1: - short unsigned int work[288];
1: - code codes[2048];
1: + inflate_mode mode;
1: + int last;
1: + int wrap;
1: + int havedict;
1: + int flags;
1: + unsigned int dmax;
1: + long unsigned int check;
1: + long unsigned int total;
1: + unsigned int wbits;
1: + unsigned int wsize;
1: + unsigned int whave;
1: + unsigned int write;
1: + unsigned char *window;
1: + long unsigned int hold;
1: + unsigned int bits;
1: + unsigned int length;
1: + unsigned int offset;
1: + unsigned int extra;
1: + const code *lencode;
1: + const code *distcode;
1: + unsigned int lenbits;
1: + unsigned int distbits;
1: + unsigned int ncode;
1: + unsigned int nlen;
1: + unsigned int ndist;
1: + unsigned int have;
1: + code *next;
1: + short unsigned int lens[320];
1: + short unsigned int work[288];
1: + code codes[2048];
1: };
1:
1: union uu {
1: - short unsigned int us;
1: - unsigned char b[2];
1: + short unsigned int us;
1: + unsigned char b[2];
1: };
1:
1: typedef unsigned int uInt;
1:
1: struct inflate_workspace {
1: - struct inflate_state inflate_state;
1: - unsigned char working_window[32768];
1: + struct inflate_state inflate_state;
1: + unsigned char working_window[32768];
1: };
1:
1: typedef enum {
1: - CODES = 0,
1: - LENS = 1,
1: - DISTS = 2,
1: + CODES = 0,
1: + LENS = 1,
1: + DISTS = 2,
1: } codetype;
1:
1: typedef unsigned char uch;
1: @@ -57352,32 +58236,32 @@ typedef short unsigned int ush;
1: typedef long unsigned int ulg;
1:
1: struct ct_data_s {
1: - union {
1: - ush freq;
1: - ush code;
1: - } fc;
1: - union {
1: - ush dad;
1: - ush len;
1: - } dl;
1: + union {
1: + ush freq;
1: + ush code;
1: + } fc;
1: + union {
1: + ush dad;
1: + ush len;
1: + } dl;
1: };
1:
1: typedef struct ct_data_s ct_data;
1:
1: struct static_tree_desc_s {
1: - const ct_data *static_tree;
1: - const int *extra_bits;
1: - int extra_base;
1: - int elems;
1: - int max_length;
1: + const ct_data *static_tree;
1: + const int *extra_bits;
1: + int extra_base;
1: + int elems;
1: + int max_length;
1: };
1:
1: typedef struct static_tree_desc_s static_tree_desc;
1:
1: struct tree_desc_s {
1: - ct_data *dyn_tree;
1: - int max_code;
1: - static_tree_desc *stat_desc;
1: + ct_data *dyn_tree;
1: + int max_code;
1: + static_tree_desc *stat_desc;
1: };
1:
1: typedef ush Pos;
1: @@ -57385,93 +58269,93 @@ typedef ush Pos;
1: typedef unsigned int IPos;
1:
1: struct deflate_state {
1: - z_streamp strm;
1: - int status;
1: - Byte *pending_buf;
1: - ulg pending_buf_size;
1: - Byte *pending_out;
1: - int pending;
1: - int noheader;
1: - Byte data_type;
1: - Byte method;
1: - int last_flush;
1: - uInt w_size;
1: - uInt w_bits;
1: - uInt w_mask;
1: - Byte *window;
1: - ulg window_size;
1: - Pos *prev;
1: - Pos *head;
1: - uInt ins_h;
1: - uInt hash_size;
1: - uInt hash_bits;
1: - uInt hash_mask;
1: - uInt hash_shift;
1: - long int block_start;
1: - uInt match_length;
1: - IPos prev_match;
1: - int match_available;
1: - uInt strstart;
1: - uInt match_start;
1: - uInt lookahead;
1: - uInt prev_length;
1: - uInt max_chain_length;
1: - uInt max_lazy_match;
1: - int level;
1: - int strategy;
1: - uInt good_match;
1: - int nice_match;
1: - struct ct_data_s dyn_ltree[573];
1: - struct ct_data_s dyn_dtree[61];
1: - struct ct_data_s bl_tree[39];
1: - struct tree_desc_s l_desc;
1: - struct tree_desc_s d_desc;
1: - struct tree_desc_s bl_desc;
1: - ush bl_count[16];
1: - int heap[573];
1: - int heap_len;
1: - int heap_max;
1: - uch depth[573];
1: - uch *l_buf;
1: - uInt lit_bufsize;
1: - uInt last_lit;
1: - ush *d_buf;
1: - ulg opt_len;
1: - ulg static_len;
1: - ulg compressed_len;
1: - uInt matches;
1: - int last_eob_len;
1: - ush bi_buf;
1: - int bi_valid;
1: + z_streamp strm;
1: + int status;
1: + Byte *pending_buf;
1: + ulg pending_buf_size;
1: + Byte *pending_out;
1: + int pending;
1: + int noheader;
1: + Byte data_type;
1: + Byte method;
1: + int last_flush;
1: + uInt w_size;
1: + uInt w_bits;
1: + uInt w_mask;
1: + Byte *window;
1: + ulg window_size;
1: + Pos *prev;
1: + Pos *head;
1: + uInt ins_h;
1: + uInt hash_size;
1: + uInt hash_bits;
1: + uInt hash_mask;
1: + uInt hash_shift;
1: + long int block_start;
1: + uInt match_length;
1: + IPos prev_match;
1: + int match_available;
1: + uInt strstart;
1: + uInt match_start;
1: + uInt lookahead;
1: + uInt prev_length;
1: + uInt max_chain_length;
1: + uInt max_lazy_match;
1: + int level;
1: + int strategy;
1: + uInt good_match;
1: + int nice_match;
1: + struct ct_data_s dyn_ltree[573];
1: + struct ct_data_s dyn_dtree[61];
1: + struct ct_data_s bl_tree[39];
1: + struct tree_desc_s l_desc;
1: + struct tree_desc_s d_desc;
1: + struct tree_desc_s bl_desc;
1: + ush bl_count[16];
1: + int heap[573];
1: + int heap_len;
1: + int heap_max;
1: + uch depth[573];
1: + uch *l_buf;
1: + uInt lit_bufsize;
1: + uInt last_lit;
1: + ush *d_buf;
1: + ulg opt_len;
1: + ulg static_len;
1: + ulg compressed_len;
1: + uInt matches;
1: + int last_eob_len;
1: + ush bi_buf;
1: + int bi_valid;
1: };
1:
1: typedef struct deflate_state deflate_state;
1:
1: typedef enum {
1: - need_more = 0,
1: - block_done = 1,
1: - finish_started = 2,
1: - finish_done = 3,
1: + need_more = 0,
1: + block_done = 1,
1: + finish_started = 2,
1: + finish_done = 3,
1: } block_state;
1:
1: typedef block_state (*compress_func)(deflate_state *, int);
1:
1: struct deflate_workspace {
1: - deflate_state deflate_memory;
1: - Byte *window_memory;
1: - Pos *prev_memory;
1: - Pos *head_memory;
1: - char *overlay_memory;
1: + deflate_state deflate_memory;
1: + Byte *window_memory;
1: + Pos *prev_memory;
1: + Pos *head_memory;
1: + char *overlay_memory;
1: };
1:
1: typedef struct deflate_workspace deflate_workspace;
1:
1: struct config_s {
1: - ush good_length;
1: - ush max_lazy;
1: - ush nice_length;
1: - ush max_chain;
1: - compress_func func;
1: + ush good_length;
1: + ush max_lazy;
1: + ush nice_length;
1: + ush max_chain;
1: + compress_func func;
1: };
1:
1: typedef struct config_s config;
1: @@ -57479,17 +58363,17 @@ typedef struct config_s config;
1: typedef struct tree_desc_s tree_desc;
1:
1: typedef struct {
1: - uint32_t hashTable[4096];
1: - uint32_t currentOffset;
1: - uint32_t initCheck;
1: - const uint8_t *dictionary;
1: - uint8_t *bufferStart;
1: - uint32_t dictSize;
1: + uint32_t hashTable[4096];
1: + uint32_t currentOffset;
1: + uint32_t initCheck;
1: + const uint8_t *dictionary;
1: + uint8_t *bufferStart;
1: + uint32_t dictSize;
1: } LZ4_stream_t_internal;
1:
1: typedef union {
1: - long long unsigned int table[2052];
1: - LZ4_stream_t_internal internal_donotuse;
1: + long long unsigned int table[2052];
1: + LZ4_stream_t_internal internal_donotuse;
1: } LZ4_stream_t;
1:
1: typedef uint8_t BYTE;
1: @@ -57503,128 +58387,128 @@ typedef uint64_t U64;
1: typedef uintptr_t uptrval;
1:
1: typedef enum {
1: - noLimit = 0,
1: - limitedOutput = 1,
1: + noLimit = 0,
1: + limitedOutput = 1,
1: } limitedOutput_directive;
1:
1: typedef enum {
1: - byPtr = 0,
1: - byU32 = 1,
1: - byU16 = 2,
1: + byPtr = 0,
1: + byU32 = 1,
1: + byU16 = 2,
1: } tableType_t;
1:
1: typedef enum {
1: - noDict = 0,
1: - withPrefix64k = 1,
1: - usingExtDict = 2,
1: + noDict = 0,
1: + withPrefix64k = 1,
1: + usingExtDict = 2,
1: } dict_directive;
1:
1: typedef enum {
1: - noDictIssue = 0,
1: - dictSmall = 1,
1: + noDictIssue = 0,
1: + dictSmall = 1,
1: } dictIssue_directive;
1:
1: typedef struct {
1: - const uint8_t *externalDict;
1: - size_t extDictSize;
1: - const uint8_t *prefixEnd;
1: - size_t prefixSize;
1: + const uint8_t *externalDict;
1: + size_t extDictSize;
1: + const uint8_t *prefixEnd;
1: + size_t prefixSize;
1: } LZ4_streamDecode_t_internal;
1:
1: typedef union {
1: - long long unsigned int table[4];
1: - LZ4_streamDecode_t_internal internal_donotuse;
1: + long long unsigned int table[4];
1: + LZ4_streamDecode_t_internal internal_donotuse;
1: } LZ4_streamDecode_t;
1:
1: typedef enum {
1: - endOnOutputSize = 0,
1: - endOnInputSize = 1,
1: + endOnOutputSize = 0,
1: + endOnInputSize = 1,
1: } endCondition_directive;
1:
1: typedef enum {
1: - decode_full_block = 0,
1: - partial_decode = 1,
1: + decode_full_block = 0,
1: + partial_decode = 1,
1: } earlyEnd_directive;
1:
1: typedef struct {
1: - size_t bitContainer;
1: - int bitPos;
1: - char *startPtr;
1: - char *ptr;
1: - char *endPtr;
1: + size_t bitContainer;
1: + int bitPos;
1: + char *startPtr;
1: + char *ptr;
1: + char *endPtr;
1: } BIT_CStream_t;
1:
1: typedef unsigned int FSE_CTable;
1:
1: typedef struct {
1: - ptrdiff_t value;
1: - const void *stateTable;
1: - const void *symbolTT;
1: - unsigned int stateLog;
1: + ptrdiff_t value;
1: + const void *stateTable;
1: + const void *symbolTT;
1: + unsigned int stateLog;
1: } FSE_CState_t;
1:
1: typedef struct {
1: - int deltaFindState;
1: - U32 deltaNbBits;
1: + int deltaFindState;
1: + U32 deltaNbBits;
1: } FSE_symbolCompressionTransform;
1:
1: typedef int16_t S16;
1:
1: struct HUF_CElt_s {
1: - U16 val;
1: - BYTE nbBits;
1: + U16 val;
1: + BYTE nbBits;
1: };
1:
1: typedef struct HUF_CElt_s HUF_CElt;
1:
1: typedef enum {
1: - HUF_repeat_none = 0,
1: - HUF_repeat_check = 1,
1: - HUF_repeat_valid = 2,
1: + HUF_repeat_none = 0,
1: + HUF_repeat_check = 1,
1: + HUF_repeat_valid = 2,
1: } HUF_repeat;
1:
1: struct nodeElt_s {
1: - U32 count;
1: - U16 parent;
1: - BYTE byte;
1: - BYTE nbBits;
1: + U32 count;
1: + U16 parent;
1: + BYTE byte;
1: + BYTE nbBits;
1: };
1:
1: typedef struct nodeElt_s nodeElt;
1:
1: typedef struct {
1: - U32 base;
1: - U32 curr;
1: + U32 base;
1: + U32 curr;
1: } rankPos;
1:
1: typedef enum {
1: - ZSTDcs_created = 0,
1: - ZSTDcs_init = 1,
1: - ZSTDcs_ongoing = 2,
1: - ZSTDcs_ending = 3,
1: + ZSTDcs_created = 0,
1: + ZSTDcs_init = 1,
1: + ZSTDcs_ongoing = 2,
1: + ZSTDcs_ending = 3,
1: } ZSTD_compressionStage_e;
1:
1: -typedef void * (*ZSTD_allocFunction)(void *, size_t);
1: +typedef void *(*ZSTD_allocFunction)(void *, size_t);
1:
1: typedef void (*ZSTD_freeFunction)(void *, void *);
1:
1: typedef struct {
1: - ZSTD_allocFunction customAlloc;
1: - ZSTD_freeFunction customFree;
1: - void *opaque;
1: + ZSTD_allocFunction customAlloc;
1: + ZSTD_freeFunction customFree;
1: + void *opaque;
1: } ZSTD_customMem;
1:
1: typedef struct {
1: - U32 price;
1: - U32 off;
1: - U32 mlen;
1: - U32 litlen;
1: - U32 rep[3];
1: + U32 price;
1: + U32 off;
1: + U32 mlen;
1: + U32 litlen;
1: + U32 rep[3];
1: } ZSTD_optimal_t;
1:
1: typedef struct {
1: - U32 off;
1: - U32 len;
1: + U32 off;
1: + U32 len;
1: } ZSTD_match_t;
1:
1: struct seqDef_s;
1: @@ -57632,36 +58516,36 @@ struct seqDef_s;
1: typedef struct seqDef_s seqDef;
1:
1: typedef struct {
1: - seqDef *sequencesStart;
1: - seqDef *sequences;
1: - BYTE *litStart;
1: - BYTE *lit;
1: - BYTE *llCode;
1: - BYTE *mlCode;
1: - BYTE *ofCode;
1: - U32 longLengthID;
1: - U32 longLengthPos;
1: - ZSTD_optimal_t *priceTable;
1: - ZSTD_match_t *matchTable;
1: - U32 *matchLengthFreq;
1: - U32 *litLengthFreq;
1: - U32 *litFreq;
1: - U32 *offCodeFreq;
1: - U32 matchLengthSum;
1: - U32 matchSum;
1: - U32 litLengthSum;
1: - U32 litSum;
1: - U32 offCodeSum;
1: - U32 log2matchLengthSum;
1: - U32 log2matchSum;
1: - U32 log2litLengthSum;
1: - U32 log2litSum;
1: - U32 log2offCodeSum;
1: - U32 factor;
1: - U32 staticPrices;
1: - U32 cachedPrice;
1: - U32 cachedLitLength;
1: - const BYTE *cachedLiterals;
1: + seqDef *sequencesStart;
1: + seqDef *sequences;
1: + BYTE *litStart;
1: + BYTE *lit;
1: + BYTE *llCode;
1: + BYTE *mlCode;
1: + BYTE *ofCode;
1: + U32 longLengthID;
1: + U32 longLengthPos;
1: + ZSTD_optimal_t *priceTable;
1: + ZSTD_match_t *matchTable;
1: + U32 *matchLengthFreq;
1: + U32 *litLengthFreq;
1: + U32 *litFreq;
1: + U32 *offCodeFreq;
1: + U32 matchLengthSum;
1: + U32 matchSum;
1: + U32 litLengthSum;
1: + U32 litSum;
1: + U32 offCodeSum;
1: + U32 log2matchLengthSum;
1: + U32 log2matchSum;
1: + U32 log2litLengthSum;
1: + U32 log2litSum;
1: + U32 log2offCodeSum;
1: + U32 factor;
1: + U32 staticPrices;
1: + U32 cachedPrice;
1: + U32 cachedLitLength;
1: + const BYTE *cachedLiterals;
1: } seqStore_t;
1:
1: struct HUF_CElt_s___2;
1: @@ -57669,96 +58553,96 @@ struct HUF_CElt_s___2;
1: typedef struct HUF_CElt_s___2 HUF_CElt___2;
1:
1: struct ZSTD_CCtx_s___2 {
1: - const BYTE *nextSrc;
1: - const BYTE *base;
1: - const BYTE *dictBase;
1: - U32 dictLimit;
1: - U32 lowLimit;
1: - U32 nextToUpdate;
1: - U32 nextToUpdate3;
1: - U32 hashLog3;
1: - U32 loadedDictEnd;
1: - U32 forceWindow;
1: - U32 forceRawDict;
1: - ZSTD_compressionStage_e stage;
1: - U32 rep[3];
1: - U32 repToConfirm[3];
1: - U32 dictID;
1: - ZSTD_parameters params;
1: - void *workSpace;
1: - size_t workSpaceSize;
1: - size_t blockSize;
1: - U64 frameContentSize;
1: - struct xxh64_state xxhState;
1: - ZSTD_customMem customMem;
1: - seqStore_t seqStore;
1: - U32 *hashTable;
1: - U32 *hashTable3;
1: - U32 *chainTable;
1: - HUF_CElt___2 *hufTable;
1: - U32 flagStaticTables;
1: - HUF_repeat flagStaticHufTable;
1: - FSE_CTable offcodeCTable[187];
1: - FSE_CTable matchlengthCTable[363];
1: - FSE_CTable litlengthCTable[329];
1: - unsigned int tmpCounters[1536];
1: + const BYTE *nextSrc;
1: + const BYTE *base;
1: + const BYTE *dictBase;
1: + U32 dictLimit;
1: + U32 lowLimit;
1: + U32 nextToUpdate;
1: + U32 nextToUpdate3;
1: + U32 hashLog3;
1: + U32 loadedDictEnd;
1: + U32 forceWindow;
1: + U32 forceRawDict;
1: + ZSTD_compressionStage_e stage;
1: + U32 rep[3];
1: + U32 repToConfirm[3];
1: + U32 dictID;
1: + ZSTD_parameters params;
1: + void *workSpace;
1: + size_t workSpaceSize;
1: + size_t blockSize;
1: + U64 frameContentSize;
1: + struct xxh64_state xxhState;
1: + ZSTD_customMem customMem;
1: + seqStore_t seqStore;
1: + U32 *hashTable;
1: + U32 *hashTable3;
1: + U32 *chainTable;
1: + HUF_CElt___2 *hufTable;
1: + U32 flagStaticTables;
1: + HUF_repeat flagStaticHufTable;
1: + FSE_CTable offcodeCTable[187];
1: + FSE_CTable matchlengthCTable[363];
1: + FSE_CTable litlengthCTable[329];
1: + unsigned int tmpCounters[1536];
1: };
1:
1: typedef struct ZSTD_CCtx_s___2 ZSTD_CCtx___2;
1:
1: struct ZSTD_CDict_s {
1: - void *dictBuffer;
1: - const void *dictContent;
1: - size_t dictContentSize;
1: - ZSTD_CCtx___2 *refContext;
1: + void *dictBuffer;
1: + const void *dictContent;
1: + size_t dictContentSize;
1: + ZSTD_CCtx___2 *refContext;
1: };
1:
1: typedef struct ZSTD_CDict_s ZSTD_CDict;
1:
1: struct ZSTD_inBuffer_s {
1: - const void *src;
1: - size_t size;
1: - size_t pos;
1: + const void *src;
1: + size_t size;
1: + size_t pos;
1: };
1:
1: typedef struct ZSTD_inBuffer_s ZSTD_inBuffer;
1:
1: struct ZSTD_outBuffer_s {
1: - void *dst;
1: - size_t size;
1: - size_t pos;
1: + void *dst;
1: + size_t size;
1: + size_t pos;
1: };
1:
1: typedef struct ZSTD_outBuffer_s ZSTD_outBuffer;
1:
1: typedef enum {
1: - zcss_init = 0,
1: - zcss_load = 1,
1: - zcss_flush = 2,
1: - zcss_final = 3,
1: + zcss_init = 0,
1: + zcss_load = 1,
1: + zcss_flush = 2,
1: + zcss_final = 3,
1: } ZSTD_cStreamStage;
1:
1: struct ZSTD_CStream_s {
1: - ZSTD_CCtx___2 *cctx;
1: - ZSTD_CDict *cdictLocal;
1: - const ZSTD_CDict *cdict;
1: - char *inBuff;
1: - size_t inBuffSize;
1: - size_t inToCompress;
1: - size_t inBuffPos;
1: - size_t inBuffTarget;
1: - size_t blockSize;
1: - char *outBuff;
1: - size_t outBuffSize;
1: - size_t outBuffContentSize;
1: - size_t outBuffFlushedSize;
1: - ZSTD_cStreamStage stage;
1: - U32 checksum;
1: - U32 frameEnded;
1: - U64 pledgedSrcSize;
1: - U64 inputProcessed;
1: - ZSTD_parameters params;
1: - ZSTD_customMem customMem;
1: + ZSTD_CCtx___2 *cctx;
1: + ZSTD_CDict *cdictLocal;
1: + const ZSTD_CDict *cdict;
1: + char *inBuff;
1: + size_t inBuffSize;
1: + size_t inToCompress;
1: + size_t inBuffPos;
1: + size_t inBuffTarget;
1: + size_t blockSize;
1: + char *outBuff;
1: + size_t outBuffSize;
1: + size_t outBuffContentSize;
1: + size_t outBuffFlushedSize;
1: + ZSTD_cStreamStage stage;
1: + U32 checksum;
1: + U32 frameEnded;
1: + U64 pledgedSrcSize;
1: + U64 inputProcessed;
1: + ZSTD_parameters params;
1: + ZSTD_customMem customMem;
1: };
1:
1: typedef struct ZSTD_CStream_s ZSTD_CStream;
1: @@ -57766,292 +58650,293 @@ typedef struct ZSTD_CStream_s ZSTD_CStream;
1: typedef int32_t S32;
1:
1: typedef enum {
1: - set_basic = 0,
1: - set_rle = 1,
1: - set_compressed = 2,
1: - set_repeat = 3,
1: + set_basic = 0,
1: + set_rle = 1,
1: + set_compressed = 2,
1: + set_repeat = 3,
1: } symbolEncodingType_e;
1:
1: struct seqDef_s {
1: - U32 offset;
1: - U16 litLength;
1: - U16 matchLength;
1: + U32 offset;
1: + U16 litLength;
1: + U16 matchLength;
1: };
1:
1: typedef enum {
1: - ZSTDcrp_continue = 0,
1: - ZSTDcrp_noMemset = 1,
1: - ZSTDcrp_fullReset = 2,
1: + ZSTDcrp_continue = 0,
1: + ZSTDcrp_noMemset = 1,
1: + ZSTDcrp_fullReset = 2,
1: } ZSTD_compResetPolicy_e;
1:
1: typedef void (*ZSTD_blockCompressor)(ZSTD_CCtx___2 *, const void *, size_t);
1:
1: typedef enum {
1: - zsf_gather = 0,
1: - zsf_flush = 1,
1: - zsf_end = 2,
1: + zsf_gather = 0,
1: + zsf_flush = 1,
1: + zsf_end = 2,
1: } ZSTD_flush_e;
1:
1: -typedef size_t (*searchMax_f)(ZSTD_CCtx___2 *, const BYTE *, const BYTE *, size_t *, U32, U32);
1: +typedef size_t (*searchMax_f)(ZSTD_CCtx___2 *, const BYTE *, const BYTE *,
1: + size_t *, U32, U32);
1:
1: typedef struct {
1: - size_t bitContainer;
1: - unsigned int bitsConsumed;
1: - const char *ptr;
1: - const char *start;
1: + size_t bitContainer;
1: + unsigned int bitsConsumed;
1: + const char *ptr;
1: + const char *start;
1: } BIT_DStream_t;
1:
1: typedef enum {
1: - BIT_DStream_unfinished = 0,
1: - BIT_DStream_endOfBuffer = 1,
1: - BIT_DStream_completed = 2,
1: - BIT_DStream_overflow = 3,
1: + BIT_DStream_unfinished = 0,
1: + BIT_DStream_endOfBuffer = 1,
1: + BIT_DStream_completed = 2,
1: + BIT_DStream_overflow = 3,
1: } BIT_DStream_status;
1:
1: typedef unsigned int FSE_DTable;
1:
1: typedef struct {
1: - size_t state;
1: - const void *table;
1: + size_t state;
1: + const void *table;
1: } FSE_DState_t;
1:
1: typedef struct {
1: - U16 tableLog;
1: - U16 fastMode;
1: + U16 tableLog;
1: + U16 fastMode;
1: } FSE_DTableHeader;
1:
1: typedef struct {
1: - short unsigned int newState;
1: - unsigned char symbol;
1: - unsigned char nbBits;
1: + short unsigned int newState;
1: + unsigned char symbol;
1: + unsigned char nbBits;
1: } FSE_decode_t;
1:
1: typedef struct {
1: - void *ptr;
1: - const void *end;
1: + void *ptr;
1: + const void *end;
1: } ZSTD_stack;
1:
1: typedef U32 HUF_DTable;
1:
1: typedef struct {
1: - BYTE maxTableLog;
1: - BYTE tableType;
1: - BYTE tableLog;
1: - BYTE reserved;
1: + BYTE maxTableLog;
1: + BYTE tableType;
1: + BYTE tableLog;
1: + BYTE reserved;
1: } DTableDesc;
1:
1: typedef struct {
1: - BYTE byte;
1: - BYTE nbBits;
1: + BYTE byte;
1: + BYTE nbBits;
1: } HUF_DEltX2;
1:
1: typedef struct {
1: - U16 sequence;
1: - BYTE nbBits;
1: - BYTE length;
1: + U16 sequence;
1: + BYTE nbBits;
1: + BYTE length;
1: } HUF_DEltX4;
1:
1: typedef struct {
1: - BYTE symbol;
1: - BYTE weight;
1: + BYTE symbol;
1: + BYTE weight;
1: } sortedSymbol_t;
1:
1: typedef U32 rankValCol_t[13];
1:
1: typedef struct {
1: - U32 tableTime;
1: - U32 decode256Time;
1: + U32 tableTime;
1: + U32 decode256Time;
1: } algo_time_t;
1:
1: typedef struct {
1: - FSE_DTable LLTable[513];
1: - FSE_DTable OFTable[257];
1: - FSE_DTable MLTable[513];
1: - HUF_DTable hufTable[4097];
1: - U64 workspace[384];
1: - U32 rep[3];
1: + FSE_DTable LLTable[513];
1: + FSE_DTable OFTable[257];
1: + FSE_DTable MLTable[513];
1: + HUF_DTable hufTable[4097];
1: + U64 workspace[384];
1: + U32 rep[3];
1: } ZSTD_entropyTables_t;
1:
1: typedef struct {
1: - long long unsigned int frameContentSize;
1: - unsigned int windowSize;
1: - unsigned int dictID;
1: - unsigned int checksumFlag;
1: + long long unsigned int frameContentSize;
1: + unsigned int windowSize;
1: + unsigned int dictID;
1: + unsigned int checksumFlag;
1: } ZSTD_frameParams;
1:
1: typedef enum {
1: - bt_raw = 0,
1: - bt_rle = 1,
1: - bt_compressed = 2,
1: - bt_reserved = 3,
1: + bt_raw = 0,
1: + bt_rle = 1,
1: + bt_compressed = 2,
1: + bt_reserved = 3,
1: } blockType_e;
1:
1: typedef enum {
1: - ZSTDds_getFrameHeaderSize = 0,
1: - ZSTDds_decodeFrameHeader = 1,
1: - ZSTDds_decodeBlockHeader = 2,
1: - ZSTDds_decompressBlock = 3,
1: - ZSTDds_decompressLastBlock = 4,
1: - ZSTDds_checkChecksum = 5,
1: - ZSTDds_decodeSkippableHeader = 6,
1: - ZSTDds_skipFrame = 7,
1: + ZSTDds_getFrameHeaderSize = 0,
1: + ZSTDds_decodeFrameHeader = 1,
1: + ZSTDds_decodeBlockHeader = 2,
1: + ZSTDds_decompressBlock = 3,
1: + ZSTDds_decompressLastBlock = 4,
1: + ZSTDds_checkChecksum = 5,
1: + ZSTDds_decodeSkippableHeader = 6,
1: + ZSTDds_skipFrame = 7,
1: } ZSTD_dStage;
1:
1: struct ZSTD_DCtx_s___2 {
1: - const FSE_DTable *LLTptr;
1: - const FSE_DTable *MLTptr;
1: - const FSE_DTable *OFTptr;
1: - const HUF_DTable *HUFptr;
1: - ZSTD_entropyTables_t entropy;
1: - const void *previousDstEnd;
1: - const void *base;
1: - const void *vBase;
1: - const void *dictEnd;
1: - size_t expected;
1: - ZSTD_frameParams fParams;
1: - blockType_e bType;
1: - ZSTD_dStage stage;
1: - U32 litEntropy;
1: - U32 fseEntropy;
1: - struct xxh64_state xxhState;
1: - size_t headerSize;
1: - U32 dictID;
1: - const BYTE *litPtr;
1: - ZSTD_customMem customMem;
1: - size_t litSize;
1: - size_t rleSize;
1: - BYTE litBuffer[131080];
1: - BYTE headerBuffer[18];
1: + const FSE_DTable *LLTptr;
1: + const FSE_DTable *MLTptr;
1: + const FSE_DTable *OFTptr;
1: + const HUF_DTable *HUFptr;
1: + ZSTD_entropyTables_t entropy;
1: + const void *previousDstEnd;
1: + const void *base;
1: + const void *vBase;
1: + const void *dictEnd;
1: + size_t expected;
1: + ZSTD_frameParams fParams;
1: + blockType_e bType;
1: + ZSTD_dStage stage;
1: + U32 litEntropy;
1: + U32 fseEntropy;
1: + struct xxh64_state xxhState;
1: + size_t headerSize;
1: + U32 dictID;
1: + const BYTE *litPtr;
1: + ZSTD_customMem customMem;
1: + size_t litSize;
1: + size_t rleSize;
1: + BYTE litBuffer[131080];
1: + BYTE headerBuffer[18];
1: };
1:
1: typedef struct ZSTD_DCtx_s___2 ZSTD_DCtx___2;
1:
1: struct ZSTD_DDict_s {
1: - void *dictBuffer;
1: - const void *dictContent;
1: - size_t dictSize;
1: - ZSTD_entropyTables_t entropy;
1: - U32 dictID;
1: - U32 entropyPresent;
1: - ZSTD_customMem cMem;
1: + void *dictBuffer;
1: + const void *dictContent;
1: + size_t dictSize;
1: + ZSTD_entropyTables_t entropy;
1: + U32 dictID;
1: + U32 entropyPresent;
1: + ZSTD_customMem cMem;
1: };
1:
1: typedef struct ZSTD_DDict_s ZSTD_DDict;
1:
1: typedef enum {
1: - zdss_init = 0,
1: - zdss_loadHeader = 1,
1: - zdss_read = 2,
1: - zdss_load = 3,
1: - zdss_flush = 4,
1: + zdss_init = 0,
1: + zdss_loadHeader = 1,
1: + zdss_read = 2,
1: + zdss_load = 3,
1: + zdss_flush = 4,
1: } ZSTD_dStreamStage;
1:
1: struct ZSTD_DStream_s {
1: - ZSTD_DCtx___2 *dctx;
1: - ZSTD_DDict *ddictLocal;
1: - const ZSTD_DDict *ddict;
1: - ZSTD_frameParams fParams;
1: - ZSTD_dStreamStage stage;
1: - char *inBuff;
1: - size_t inBuffSize;
1: - size_t inPos;
1: - size_t maxWindowSize;
1: - char *outBuff;
1: - size_t outBuffSize;
1: - size_t outStart;
1: - size_t outEnd;
1: - size_t blockSize;
1: - BYTE headerBuffer[18];
1: - size_t lhSize;
1: - ZSTD_customMem customMem;
1: - void *legacyContext;
1: - U32 previousLegacyVersion;
1: - U32 legacyVersion;
1: - U32 hostageByte;
1: + ZSTD_DCtx___2 *dctx;
1: + ZSTD_DDict *ddictLocal;
1: + const ZSTD_DDict *ddict;
1: + ZSTD_frameParams fParams;
1: + ZSTD_dStreamStage stage;
1: + char *inBuff;
1: + size_t inBuffSize;
1: + size_t inPos;
1: + size_t maxWindowSize;
1: + char *outBuff;
1: + size_t outBuffSize;
1: + size_t outStart;
1: + size_t outEnd;
1: + size_t blockSize;
1: + BYTE headerBuffer[18];
1: + size_t lhSize;
1: + ZSTD_customMem customMem;
1: + void *legacyContext;
1: + U32 previousLegacyVersion;
1: + U32 legacyVersion;
1: + U32 hostageByte;
1: };
1:
1: typedef struct ZSTD_DStream_s ZSTD_DStream;
1:
1: typedef enum {
1: - ZSTDnit_frameHeader = 0,
1: - ZSTDnit_blockHeader = 1,
1: - ZSTDnit_block = 2,
1: - ZSTDnit_lastBlock = 3,
1: - ZSTDnit_checksum = 4,
1: - ZSTDnit_skippableFrame = 5,
1: + ZSTDnit_frameHeader = 0,
1: + ZSTDnit_blockHeader = 1,
1: + ZSTDnit_block = 2,
1: + ZSTDnit_lastBlock = 3,
1: + ZSTDnit_checksum = 4,
1: + ZSTDnit_skippableFrame = 5,
1: } ZSTD_nextInputType_e;
1:
1: typedef uintptr_t uPtrDiff;
1:
1: typedef struct {
1: - blockType_e blockType;
1: - U32 lastBlock;
1: - U32 origSize;
1: + blockType_e blockType;
1: + U32 lastBlock;
1: + U32 origSize;
1: } blockProperties_t;
1:
1: typedef union {
1: - FSE_decode_t realData;
1: - U32 alignedBy4;
1: + FSE_decode_t realData;
1: + U32 alignedBy4;
1: } FSE_decode_t4;
1:
1: typedef struct {
1: - size_t litLength;
1: - size_t matchLength;
1: - size_t offset;
1: - const BYTE *match;
1: + size_t litLength;
1: + size_t matchLength;
1: + size_t offset;
1: + const BYTE *match;
1: } seq_t;
1:
1: typedef struct {
1: - BIT_DStream_t DStream;
1: - FSE_DState_t stateLL;
1: - FSE_DState_t stateOffb;
1: - FSE_DState_t stateML;
1: - size_t prevOffset[3];
1: - const BYTE *base;
1: - size_t pos;
1: - uPtrDiff gotoDict;
1: + BIT_DStream_t DStream;
1: + FSE_DState_t stateLL;
1: + FSE_DState_t stateOffb;
1: + FSE_DState_t stateML;
1: + size_t prevOffset[3];
1: + const BYTE *base;
1: + size_t pos;
1: + uPtrDiff gotoDict;
1: } seqState_t;
1:
1: enum xz_mode {
1: - XZ_SINGLE = 0,
1: - XZ_PREALLOC = 1,
1: - XZ_DYNALLOC = 2,
1: + XZ_SINGLE = 0,
1: + XZ_PREALLOC = 1,
1: + XZ_DYNALLOC = 2,
1: };
1:
1: enum xz_ret {
1: - XZ_OK = 0,
1: - XZ_STREAM_END = 1,
1: - XZ_UNSUPPORTED_CHECK = 2,
1: - XZ_MEM_ERROR = 3,
1: - XZ_MEMLIMIT_ERROR = 4,
1: - XZ_FORMAT_ERROR = 5,
1: - XZ_OPTIONS_ERROR = 6,
1: - XZ_DATA_ERROR = 7,
1: - XZ_BUF_ERROR = 8,
1: + XZ_OK = 0,
1: + XZ_STREAM_END = 1,
1: + XZ_UNSUPPORTED_CHECK = 2,
1: + XZ_MEM_ERROR = 3,
1: + XZ_MEMLIMIT_ERROR = 4,
1: + XZ_FORMAT_ERROR = 5,
1: + XZ_OPTIONS_ERROR = 6,
1: + XZ_DATA_ERROR = 7,
1: + XZ_BUF_ERROR = 8,
1: };
1:
1: struct xz_buf {
1: - const uint8_t *in;
1: - size_t in_pos;
1: - size_t in_size;
1: - uint8_t *out;
1: - size_t out_pos;
1: - size_t out_size;
1: + const uint8_t *in;
1: + size_t in_pos;
1: + size_t in_size;
1: + uint8_t *out;
1: + size_t out_pos;
1: + size_t out_size;
1: };
1:
1: typedef uint64_t vli_type;
1:
1: enum xz_check {
1: - XZ_CHECK_NONE = 0,
1: - XZ_CHECK_CRC32 = 1,
1: - XZ_CHECK_CRC64 = 4,
1: - XZ_CHECK_SHA256 = 10,
1: + XZ_CHECK_NONE = 0,
1: + XZ_CHECK_CRC32 = 1,
1: + XZ_CHECK_CRC64 = 4,
1: + XZ_CHECK_SHA256 = 10,
1: };
1:
1: struct xz_dec_hash {
1: - vli_type unpadded;
1: - vli_type uncompressed;
1: - uint32_t crc32;
1: + vli_type unpadded;
1: + vli_type uncompressed;
1: + uint32_t crc32;
1: };
1:
1: struct xz_dec_lzma2;
1: @@ -58059,259 +58944,260 @@ struct xz_dec_lzma2;
1: struct xz_dec_bcj;
1:
1: struct xz_dec {
1: - enum {
1: - SEQ_STREAM_HEADER = 0,
1: - SEQ_BLOCK_START = 1,
1: - SEQ_BLOCK_HEADER = 2,
1: - SEQ_BLOCK_UNCOMPRESS = 3,
1: - SEQ_BLOCK_PADDING = 4,
1: - SEQ_BLOCK_CHECK = 5,
1: - SEQ_INDEX = 6,
1: - SEQ_INDEX_PADDING = 7,
1: - SEQ_INDEX_CRC32 = 8,
1: - SEQ_STREAM_FOOTER = 9,
1: - } sequence;
1: - uint32_t pos;
1: - vli_type vli;
1: - size_t in_start;
1: - size_t out_start;
1: - uint32_t crc32;
1: - enum xz_check check_type;
1: - enum xz_mode mode;
1: - bool allow_buf_error;
1: - struct {
1: - vli_type compressed;
1: - vli_type uncompressed;
1: - uint32_t size;
1: - } block_header;
1: - struct {
1: - vli_type compressed;
1: - vli_type uncompressed;
1: - vli_type count;
1: - struct xz_dec_hash hash;
1: - } block;
1: - struct {
1: - enum {
1: - SEQ_INDEX_COUNT = 0,
1: - SEQ_INDEX_UNPADDED = 1,
1: - SEQ_INDEX_UNCOMPRESSED = 2,
1: - } sequence;
1: - vli_type size;
1: - vli_type count;
1: - struct xz_dec_hash hash;
1: - } index;
1: - struct {
1: - size_t pos;
1: - size_t size;
1: - uint8_t buf[1024];
1: - } temp;
1: - struct xz_dec_lzma2 *lzma2;
1: - struct xz_dec_bcj *bcj;
1: - bool bcj_active;
1: + enum {
1: + SEQ_STREAM_HEADER = 0,
1: + SEQ_BLOCK_START = 1,
1: + SEQ_BLOCK_HEADER = 2,
1: + SEQ_BLOCK_UNCOMPRESS = 3,
1: + SEQ_BLOCK_PADDING = 4,
1: + SEQ_BLOCK_CHECK = 5,
1: + SEQ_INDEX = 6,
1: + SEQ_INDEX_PADDING = 7,
1: + SEQ_INDEX_CRC32 = 8,
1: + SEQ_STREAM_FOOTER = 9,
1: + } sequence;
1: + uint32_t pos;
1: + vli_type vli;
1: + size_t in_start;
1: + size_t out_start;
1: + uint32_t crc32;
1: + enum xz_check check_type;
1: + enum xz_mode mode;
1: + bool allow_buf_error;
1: + struct {
1: + vli_type compressed;
1: + vli_type uncompressed;
1: + uint32_t size;
1: + } block_header;
1: + struct {
1: + vli_type compressed;
1: + vli_type uncompressed;
1: + vli_type count;
1: + struct xz_dec_hash hash;
1: + } block;
1: + struct {
1: + enum {
1: + SEQ_INDEX_COUNT = 0,
1: + SEQ_INDEX_UNPADDED = 1,
1: + SEQ_INDEX_UNCOMPRESSED = 2,
1: + } sequence;
1: + vli_type size;
1: + vli_type count;
1: + struct xz_dec_hash hash;
1: + } index;
1: + struct {
1: + size_t pos;
1: + size_t size;
1: + uint8_t buf[1024];
1: + } temp;
1: + struct xz_dec_lzma2 *lzma2;
1: + struct xz_dec_bcj *bcj;
1: + bool bcj_active;
1: };
1:
1: enum lzma_state {
1: - STATE_LIT_LIT = 0,
1: - STATE_MATCH_LIT_LIT = 1,
1: - STATE_REP_LIT_LIT = 2,
1: - STATE_SHORTREP_LIT_LIT = 3,
1: - STATE_MATCH_LIT = 4,
1: - STATE_REP_LIT = 5,
1: - STATE_SHORTREP_LIT = 6,
1: - STATE_LIT_MATCH = 7,
1: - STATE_LIT_LONGREP = 8,
1: - STATE_LIT_SHORTREP = 9,
1: - STATE_NONLIT_MATCH = 10,
1: - STATE_NONLIT_REP = 11,
1: + STATE_LIT_LIT = 0,
1: + STATE_MATCH_LIT_LIT = 1,
1: + STATE_REP_LIT_LIT = 2,
1: + STATE_SHORTREP_LIT_LIT = 3,
1: + STATE_MATCH_LIT = 4,
1: + STATE_REP_LIT = 5,
1: + STATE_SHORTREP_LIT = 6,
1: + STATE_LIT_MATCH = 7,
1: + STATE_LIT_LONGREP = 8,
1: + STATE_LIT_SHORTREP = 9,
1: + STATE_NONLIT_MATCH = 10,
1: + STATE_NONLIT_REP = 11,
1: };
1:
1: struct dictionary {
1: - uint8_t *buf;
1: - size_t start;
1: - size_t pos;
1: - size_t full;
1: - size_t limit;
1: - size_t end;
1: - uint32_t size;
1: - uint32_t size_max;
1: - uint32_t allocated;
1: - enum xz_mode mode;
1: + uint8_t *buf;
1: + size_t start;
1: + size_t pos;
1: + size_t full;
1: + size_t limit;
1: + size_t end;
1: + uint32_t size;
1: + uint32_t size_max;
1: + uint32_t allocated;
1: + enum xz_mode mode;
1: };
1:
1: struct rc_dec {
1: - uint32_t range;
1: - uint32_t code;
1: - uint32_t init_bytes_left;
1: - const uint8_t *in;
1: - size_t in_pos;
1: - size_t in_limit;
1: + uint32_t range;
1: + uint32_t code;
1: + uint32_t init_bytes_left;
1: + const uint8_t *in;
1: + size_t in_pos;
1: + size_t in_limit;
1: };
1:
1: struct lzma_len_dec {
1: - uint16_t choice;
1: - uint16_t choice2;
1: - uint16_t low[128];
1: - uint16_t mid[128];
1: - uint16_t high[256];
1: + uint16_t choice;
1: + uint16_t choice2;
1: + uint16_t low[128];
1: + uint16_t mid[128];
1: + uint16_t high[256];
1: };
1:
1: struct lzma_dec {
1: - uint32_t rep0;
1: - uint32_t rep1;
1: - uint32_t rep2;
1: - uint32_t rep3;
1: - enum lzma_state state;
1: - uint32_t len;
1: - uint32_t lc;
1: - uint32_t literal_pos_mask;
1: - uint32_t pos_mask;
1: - uint16_t is_match[192];
1: - uint16_t is_rep[12];
1: - uint16_t is_rep0[12];
1: - uint16_t is_rep1[12];
1: - uint16_t is_rep2[12];
1: - uint16_t is_rep0_long[192];
1: - uint16_t dist_slot[256];
1: - uint16_t dist_special[114];
1: - uint16_t dist_align[16];
1: - struct lzma_len_dec match_len_dec;
1: - struct lzma_len_dec rep_len_dec;
1: - uint16_t literal[12288];
1: + uint32_t rep0;
1: + uint32_t rep1;
1: + uint32_t rep2;
1: + uint32_t rep3;
1: + enum lzma_state state;
1: + uint32_t len;
1: + uint32_t lc;
1: + uint32_t literal_pos_mask;
1: + uint32_t pos_mask;
1: + uint16_t is_match[192];
1: + uint16_t is_rep[12];
1: + uint16_t is_rep0[12];
1: + uint16_t is_rep1[12];
1: + uint16_t is_rep2[12];
1: + uint16_t is_rep0_long[192];
1: + uint16_t dist_slot[256];
1: + uint16_t dist_special[114];
1: + uint16_t dist_align[16];
1: + struct lzma_len_dec match_len_dec;
1: + struct lzma_len_dec rep_len_dec;
1: + uint16_t literal[12288];
1: };
1:
1: enum lzma2_seq {
1: - SEQ_CONTROL = 0,
1: - SEQ_UNCOMPRESSED_1 = 1,
1: - SEQ_UNCOMPRESSED_2 = 2,
1: - SEQ_COMPRESSED_0 = 3,
1: - SEQ_COMPRESSED_1 = 4,
1: - SEQ_PROPERTIES = 5,
1: - SEQ_LZMA_PREPARE = 6,
1: - SEQ_LZMA_RUN = 7,
1: - SEQ_COPY = 8,
1: + SEQ_CONTROL = 0,
1: + SEQ_UNCOMPRESSED_1 = 1,
1: + SEQ_UNCOMPRESSED_2 = 2,
1: + SEQ_COMPRESSED_0 = 3,
1: + SEQ_COMPRESSED_1 = 4,
1: + SEQ_PROPERTIES = 5,
1: + SEQ_LZMA_PREPARE = 6,
1: + SEQ_LZMA_RUN = 7,
1: + SEQ_COPY = 8,
1: };
1:
1: struct lzma2_dec {
1: - enum lzma2_seq sequence;
1: - enum lzma2_seq next_sequence;
1: - uint32_t uncompressed;
1: - uint32_t compressed;
1: - bool need_dict_reset;
1: - bool need_props;
1: + enum lzma2_seq sequence;
1: + enum lzma2_seq next_sequence;
1: + uint32_t uncompressed;
1: + uint32_t compressed;
1: + bool need_dict_reset;
1: + bool need_props;
1: };
1:
1: struct xz_dec_lzma2___2 {
1: - struct rc_dec rc;
1: - struct dictionary dict;
1: - struct lzma2_dec lzma2;
1: - struct lzma_dec lzma;
1: - struct {
1: - uint32_t size;
1: - uint8_t buf[63];
1: - } temp;
1: + struct rc_dec rc;
1: + struct dictionary dict;
1: + struct lzma2_dec lzma2;
1: + struct lzma_dec lzma;
1: + struct {
1: + uint32_t size;
1: + uint8_t buf[63];
1: + } temp;
1: };
1:
1: struct xz_dec_bcj___2 {
1: - enum {
1: - BCJ_X86 = 4,
1: - BCJ_POWERPC = 5,
1: - BCJ_IA64 = 6,
1: - BCJ_ARM = 7,
1: - BCJ_ARMTHUMB = 8,
1: - BCJ_SPARC = 9,
1: - } type;
1: - enum xz_ret ret;
1: - bool single_call;
1: - uint32_t pos;
1: - uint32_t x86_prev_mask;
1: - uint8_t *out;
1: - size_t out_pos;
1: - size_t out_size;
1: - struct {
1: - size_t filtered;
1: - size_t size;
1: - uint8_t buf[16];
1: - } temp;
1: + enum {
1: + BCJ_X86 = 4,
1: + BCJ_POWERPC = 5,
1: + BCJ_IA64 = 6,
1: + BCJ_ARM = 7,
1: + BCJ_ARMTHUMB = 8,
1: + BCJ_SPARC = 9,
1: + } type;
1: + enum xz_ret ret;
1: + bool single_call;
1: + uint32_t pos;
1: + uint32_t x86_prev_mask;
1: + uint8_t *out;
1: + size_t out_pos;
1: + size_t out_size;
1: + struct {
1: + size_t filtered;
1: + size_t size;
1: + uint8_t buf[16];
1: + } temp;
1: };
1:
1: struct ts_state {
1: - unsigned int offset;
1: - char cb[40];
1: + unsigned int offset;
1: + char cb[40];
1: };
1:
1: struct ts_config;
1:
1: struct ts_ops {
1: - const char *name;
1: - struct ts_config * (*init)(const void *, unsigned int, gfp_t, int);
1: - unsigned int (*find)(struct ts_config *, struct ts_state *);
1: - void (*destroy)(struct ts_config *);
1: - void * (*get_pattern)(struct ts_config *);
1: - unsigned int (*get_pattern_len)(struct ts_config *);
1: - struct module *owner;
1: - struct list_head list;
1: + const char *name;
1: + struct ts_config *(*init)(const void *, unsigned int, gfp_t, int);
1: + unsigned int (*find)(struct ts_config *, struct ts_state *);
1: + void (*destroy)(struct ts_config *);
1: + void *(*get_pattern)(struct ts_config *);
1: + unsigned int (*get_pattern_len)(struct ts_config *);
1: + struct module *owner;
1: + struct list_head list;
1: };
1:
1: struct ts_config {
1: - struct ts_ops *ops;
1: - int flags;
1: - unsigned int (*get_next_block)(unsigned int, const u8 **, struct ts_config *, struct ts_state *);
1: - void (*finish)(struct ts_config *, struct ts_state *);
1: + struct ts_ops *ops;
1: + int flags;
1: + unsigned int (*get_next_block)(unsigned int, const u8 **, struct ts_config *,
1: + struct ts_state *);
1: + void (*finish)(struct ts_config *, struct ts_state *);
1: };
1:
1: struct ts_linear_state {
1: - unsigned int len;
1: - const void *data;
1: + unsigned int len;
1: + const void *data;
1: };
1:
1: struct ei_entry {
1: - struct list_head list;
1: - long unsigned int start_addr;
1: - long unsigned int end_addr;
1: - int etype;
1: - void *priv;
1: + struct list_head list;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + int etype;
1: + void *priv;
1: };
1:
1: struct nla_bitfield32 {
1: - __u32 value;
1: - __u32 selector;
1: + __u32 value;
1: + __u32 selector;
1: };
1:
1: enum nla_policy_validation {
1: - NLA_VALIDATE_NONE = 0,
1: - NLA_VALIDATE_RANGE = 1,
1: - NLA_VALIDATE_RANGE_WARN_TOO_LONG = 2,
1: - NLA_VALIDATE_MIN = 3,
1: - NLA_VALIDATE_MAX = 4,
1: - NLA_VALIDATE_MASK = 5,
1: - NLA_VALIDATE_RANGE_PTR = 6,
1: - NLA_VALIDATE_FUNCTION = 7,
1: + NLA_VALIDATE_NONE = 0,
1: + NLA_VALIDATE_RANGE = 1,
1: + NLA_VALIDATE_RANGE_WARN_TOO_LONG = 2,
1: + NLA_VALIDATE_MIN = 3,
1: + NLA_VALIDATE_MAX = 4,
1: + NLA_VALIDATE_MASK = 5,
1: + NLA_VALIDATE_RANGE_PTR = 6,
1: + NLA_VALIDATE_FUNCTION = 7,
1: };
1:
1: enum netlink_validation {
1: - NL_VALIDATE_LIBERAL = 0,
1: - NL_VALIDATE_TRAILING = 1,
1: - NL_VALIDATE_MAXTYPE = 2,
1: - NL_VALIDATE_UNSPEC = 4,
1: - NL_VALIDATE_STRICT_ATTRS = 8,
1: - NL_VALIDATE_NESTED = 16,
1: + NL_VALIDATE_LIBERAL = 0,
1: + NL_VALIDATE_TRAILING = 1,
1: + NL_VALIDATE_MAXTYPE = 2,
1: + NL_VALIDATE_UNSPEC = 4,
1: + NL_VALIDATE_STRICT_ATTRS = 8,
1: + NL_VALIDATE_NESTED = 16,
1: };
1:
1: struct cpu_rmap {
1: - struct kref refcount;
1: - u16 size;
1: - u16 used;
1: - void **obj;
1: - struct {
1: - u16 index;
1: - u16 dist;
1: - } near[0];
1: + struct kref refcount;
1: + u16 size;
1: + u16 used;
1: + void **obj;
1: + struct {
1: + u16 index;
1: + u16 dist;
1: + } near[0];
1: };
1:
1: struct irq_glue {
1: - struct irq_affinity_notify notify;
1: - struct cpu_rmap *rmap;
1: - u16 index;
1: + struct irq_affinity_notify notify;
1: + struct cpu_rmap *rmap;
1: + u16 index;
1: };
1:
1: typedef mpi_limb_t *mpi_ptr_t;
1: @@ -58323,12 +59209,12 @@ typedef mpi_limb_t UWtype;
1: typedef unsigned int UHWtype;
1:
1: enum gcry_mpi_constants {
1: - MPI_C_ZERO = 0,
1: - MPI_C_ONE = 1,
1: - MPI_C_TWO = 2,
1: - MPI_C_THREE = 3,
1: - MPI_C_FOUR = 4,
1: - MPI_C_EIGHT = 5,
1: + MPI_C_ZERO = 0,
1: + MPI_C_ONE = 1,
1: + MPI_C_TWO = 2,
1: + MPI_C_THREE = 3,
1: + MPI_C_FOUR = 4,
1: + MPI_C_EIGHT = 5,
1: };
1:
1: struct barrett_ctx_s;
1: @@ -58336,73 +59222,73 @@ struct barrett_ctx_s;
1: typedef struct barrett_ctx_s *mpi_barrett_t;
1:
1: struct gcry_mpi_point {
1: - MPI x;
1: - MPI y;
1: - MPI z;
1: + MPI x;
1: + MPI y;
1: + MPI z;
1: };
1:
1: typedef struct gcry_mpi_point *MPI_POINT;
1:
1: enum gcry_mpi_ec_models {
1: - MPI_EC_WEIERSTRASS = 0,
1: - MPI_EC_MONTGOMERY = 1,
1: - MPI_EC_EDWARDS = 2,
1: + MPI_EC_WEIERSTRASS = 0,
1: + MPI_EC_MONTGOMERY = 1,
1: + MPI_EC_EDWARDS = 2,
1: };
1:
1: enum ecc_dialects {
1: - ECC_DIALECT_STANDARD = 0,
1: - ECC_DIALECT_ED25519 = 1,
1: - ECC_DIALECT_SAFECURVE = 2,
1: + ECC_DIALECT_STANDARD = 0,
1: + ECC_DIALECT_ED25519 = 1,
1: + ECC_DIALECT_SAFECURVE = 2,
1: };
1:
1: struct mpi_ec_ctx {
1: - enum gcry_mpi_ec_models model;
1: - enum ecc_dialects dialect;
1: - int flags;
1: - unsigned int nbits;
1: - MPI p;
1: - MPI a;
1: - MPI b;
1: - MPI_POINT G;
1: - MPI n;
1: - unsigned int h;
1: - MPI_POINT Q;
1: - MPI d;
1: - const char *name;
1: - struct {
1: - struct {
1: - unsigned int a_is_pminus3: 1;
1: - unsigned int two_inv_p: 1;
1: - } valid;
1: - int a_is_pminus3;
1: - MPI two_inv_p;
1: - mpi_barrett_t p_barrett;
1: - MPI scratch[11];
1: - } t;
1: - void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: - void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: + enum gcry_mpi_ec_models model;
1: + enum ecc_dialects dialect;
1: + int flags;
1: + unsigned int nbits;
1: + MPI p;
1: + MPI a;
1: + MPI b;
1: + MPI_POINT G;
1: + MPI n;
1: + unsigned int h;
1: + MPI_POINT Q;
1: + MPI d;
1: + const char *name;
1: + struct {
1: + struct {
1: + unsigned int a_is_pminus3 : 1;
1: + unsigned int two_inv_p : 1;
1: + } valid;
1: + int a_is_pminus3;
1: + MPI two_inv_p;
1: + mpi_barrett_t p_barrett;
1: + MPI scratch[11];
1: + } t;
1: + void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: + void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: };
1:
1: struct field_table {
1: - const char *p;
1: - void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: - void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: - void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: + const char *p;
1: + void (*addm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*subm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mulm)(MPI, MPI, MPI, struct mpi_ec_ctx *);
1: + void (*mul2)(MPI, MPI, struct mpi_ec_ctx *);
1: + void (*pow2)(MPI, const MPI, struct mpi_ec_ctx *);
1: };
1:
1: enum gcry_mpi_format {
1: - GCRYMPI_FMT_NONE = 0,
1: - GCRYMPI_FMT_STD = 1,
1: - GCRYMPI_FMT_PGP = 2,
1: - GCRYMPI_FMT_SSH = 3,
1: - GCRYMPI_FMT_HEX = 4,
1: - GCRYMPI_FMT_USG = 5,
1: - GCRYMPI_FMT_OPAQUE = 8,
1: + GCRYMPI_FMT_NONE = 0,
1: + GCRYMPI_FMT_STD = 1,
1: + GCRYMPI_FMT_PGP = 2,
1: + GCRYMPI_FMT_SSH = 3,
1: + GCRYMPI_FMT_HEX = 4,
1: + GCRYMPI_FMT_USG = 5,
1: + GCRYMPI_FMT_OPAQUE = 8,
1: };
1:
1: struct barrett_ctx_s___2;
1: @@ -58410,361 +59296,361 @@ struct barrett_ctx_s___2;
1: typedef struct barrett_ctx_s___2 *mpi_barrett_t___2;
1:
1: struct barrett_ctx_s___2 {
1: - MPI m;
1: - int m_copied;
1: - int k;
1: - MPI y;
1: - MPI r1;
1: - MPI r2;
1: - MPI r3;
1: + MPI m;
1: + int m_copied;
1: + int k;
1: + MPI y;
1: + MPI r1;
1: + MPI r2;
1: + MPI r3;
1: };
1:
1: struct karatsuba_ctx {
1: - struct karatsuba_ctx *next;
1: - mpi_ptr_t tspace;
1: - mpi_size_t tspace_size;
1: - mpi_ptr_t tp;
1: - mpi_size_t tp_size;
1: + struct karatsuba_ctx *next;
1: + mpi_ptr_t tspace;
1: + mpi_size_t tspace_size;
1: + mpi_ptr_t tp;
1: + mpi_size_t tp_size;
1: };
1:
1: typedef long int mpi_limb_signed_t;
1:
1: enum dim_tune_state {
1: - DIM_PARKING_ON_TOP = 0,
1: - DIM_PARKING_TIRED = 1,
1: - DIM_GOING_RIGHT = 2,
1: - DIM_GOING_LEFT = 3,
1: + DIM_PARKING_ON_TOP = 0,
1: + DIM_PARKING_TIRED = 1,
1: + DIM_GOING_RIGHT = 2,
1: + DIM_GOING_LEFT = 3,
1: };
1:
1: struct dim_cq_moder {
1: - u16 usec;
1: - u16 pkts;
1: - u16 comps;
1: - u8 cq_period_mode;
1: + u16 usec;
1: + u16 pkts;
1: + u16 comps;
1: + u8 cq_period_mode;
1: };
1:
1: enum dim_cq_period_mode {
1: - DIM_CQ_PERIOD_MODE_START_FROM_EQE = 0,
1: - DIM_CQ_PERIOD_MODE_START_FROM_CQE = 1,
1: - DIM_CQ_PERIOD_NUM_MODES = 2,
1: + DIM_CQ_PERIOD_MODE_START_FROM_EQE = 0,
1: + DIM_CQ_PERIOD_MODE_START_FROM_CQE = 1,
1: + DIM_CQ_PERIOD_NUM_MODES = 2,
1: };
1:
1: enum dim_state {
1: - DIM_START_MEASURE = 0,
1: - DIM_MEASURE_IN_PROGRESS = 1,
1: - DIM_APPLY_NEW_PROFILE = 2,
1: + DIM_START_MEASURE = 0,
1: + DIM_MEASURE_IN_PROGRESS = 1,
1: + DIM_APPLY_NEW_PROFILE = 2,
1: };
1:
1: enum dim_stats_state {
1: - DIM_STATS_WORSE = 0,
1: - DIM_STATS_SAME = 1,
1: - DIM_STATS_BETTER = 2,
1: + DIM_STATS_WORSE = 0,
1: + DIM_STATS_SAME = 1,
1: + DIM_STATS_BETTER = 2,
1: };
1:
1: enum dim_step_result {
1: - DIM_STEPPED = 0,
1: - DIM_TOO_TIRED = 1,
1: - DIM_ON_EDGE = 2,
1: + DIM_STEPPED = 0,
1: + DIM_TOO_TIRED = 1,
1: + DIM_ON_EDGE = 2,
1: };
1:
1: enum pubkey_algo {
1: - PUBKEY_ALGO_RSA = 0,
1: - PUBKEY_ALGO_MAX = 1,
1: + PUBKEY_ALGO_RSA = 0,
1: + PUBKEY_ALGO_MAX = 1,
1: };
1:
1: struct pubkey_hdr {
1: - uint8_t version;
1: - uint32_t timestamp;
1: - uint8_t algo;
1: - uint8_t nmpi;
1: - char mpi[0];
1: + uint8_t version;
1: + uint32_t timestamp;
1: + uint8_t algo;
1: + uint8_t nmpi;
1: + char mpi[0];
1: } __attribute__((packed));
1:
1: struct signature_hdr {
1: - uint8_t version;
1: - uint32_t timestamp;
1: - uint8_t algo;
1: - uint8_t hash;
1: - uint8_t keyid[8];
1: - uint8_t nmpi;
1: - char mpi[0];
1: + uint8_t version;
1: + uint32_t timestamp;
1: + uint8_t algo;
1: + uint8_t hash;
1: + uint8_t keyid[8];
1: + uint8_t nmpi;
1: + char mpi[0];
1: } __attribute__((packed));
1:
1: struct sg_splitter {
1: - struct scatterlist *in_sg0;
1: - int nents;
1: - off_t skip_sg0;
1: - unsigned int length_last_sg;
1: - struct scatterlist *out_sg;
1: + struct scatterlist *in_sg0;
1: + int nents;
1: + off_t skip_sg0;
1: + unsigned int length_last_sg;
1: + struct scatterlist *out_sg;
1: };
1:
1: struct sg_pool {
1: - size_t size;
1: - char *name;
1: - struct kmem_cache *slab;
1: - mempool_t *pool;
1: + size_t size;
1: + char *name;
1: + struct kmem_cache *slab;
1: + mempool_t *pool;
1: };
1:
1: enum {
1: - IRQ_POLL_F_SCHED = 0,
1: - IRQ_POLL_F_DISABLE = 1,
1: + IRQ_POLL_F_SCHED = 0,
1: + IRQ_POLL_F_DISABLE = 1,
1: };
1:
1: struct font_desc {
1: - int idx;
1: - const char *name;
1: - int width;
1: - int height;
1: - const void *data;
1: - int pref;
1: + int idx;
1: + const char *name;
1: + int width;
1: + int height;
1: + const void *data;
1: + int pref;
1: };
1:
1: struct font_data {
1: - unsigned int extra[4];
1: - const unsigned char data[0];
1: + unsigned int extra[4];
1: + const unsigned char data[0];
1: };
1:
1: typedef u16 ucs2_char_t;
1:
1: struct firmware {
1: - size_t size;
1: - const u8 *data;
1: - void *priv;
1: + size_t size;
1: + const u8 *data;
1: + void *priv;
1: };
1:
1: struct pldmfw_record {
1: - struct list_head entry;
1: - struct list_head descs;
1: - const u8 *version_string;
1: - u8 version_type;
1: - u8 version_len;
1: - u16 package_data_len;
1: - u32 device_update_flags;
1: - const u8 *package_data;
1: - long unsigned int *component_bitmap;
1: - u16 component_bitmap_len;
1: + struct list_head entry;
1: + struct list_head descs;
1: + const u8 *version_string;
1: + u8 version_type;
1: + u8 version_len;
1: + u16 package_data_len;
1: + u32 device_update_flags;
1: + const u8 *package_data;
1: + long unsigned int *component_bitmap;
1: + u16 component_bitmap_len;
1: };
1:
1: struct pldmfw_desc_tlv {
1: - struct list_head entry;
1: - const u8 *data;
1: - u16 type;
1: - u16 size;
1: + struct list_head entry;
1: + const u8 *data;
1: + u16 type;
1: + u16 size;
1: };
1:
1: struct pldmfw_component {
1: - struct list_head entry;
1: - u16 classification;
1: - u16 identifier;
1: - u16 options;
1: - u16 activation_method;
1: - u32 comparison_stamp;
1: - u32 component_size;
1: - const u8 *component_data;
1: - const u8 *version_string;
1: - u8 version_type;
1: - u8 version_len;
1: - u8 index;
1: + struct list_head entry;
1: + u16 classification;
1: + u16 identifier;
1: + u16 options;
1: + u16 activation_method;
1: + u32 comparison_stamp;
1: + u32 component_size;
1: + const u8 *component_data;
1: + const u8 *version_string;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 index;
1: };
1:
1: struct pldmfw_ops;
1:
1: struct pldmfw {
1: - const struct pldmfw_ops *ops;
1: - struct device *dev;
1: + const struct pldmfw_ops *ops;
1: + struct device *dev;
1: };
1:
1: struct pldmfw_ops {
1: - bool (*match_record)(struct pldmfw *, struct pldmfw_record *);
1: - int (*send_package_data)(struct pldmfw *, const u8 *, u16);
1: - int (*send_component_table)(struct pldmfw *, struct pldmfw_component *, u8);
1: - int (*flash_component)(struct pldmfw *, struct pldmfw_component *);
1: - int (*finalize_update)(struct pldmfw *);
1: + bool (*match_record)(struct pldmfw *, struct pldmfw_record *);
1: + int (*send_package_data)(struct pldmfw *, const u8 *, u16);
1: + int (*send_component_table)(struct pldmfw *, struct pldmfw_component *, u8);
1: + int (*flash_component)(struct pldmfw *, struct pldmfw_component *);
1: + int (*finalize_update)(struct pldmfw *);
1: };
1:
1: struct __pldm_timestamp {
1: - u8 b[13];
1: + u8 b[13];
1: };
1:
1: struct __pldm_header {
1: - uuid_t id;
1: - u8 revision;
1: - __le16 size;
1: - struct __pldm_timestamp release_date;
1: - __le16 component_bitmap_len;
1: - u8 version_type;
1: - u8 version_len;
1: - u8 version_string[0];
1: + uuid_t id;
1: + u8 revision;
1: + __le16 size;
1: + struct __pldm_timestamp release_date;
1: + __le16 component_bitmap_len;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 version_string[0];
1: } __attribute__((packed));
1:
1: struct __pldmfw_record_info {
1: - __le16 record_len;
1: - u8 descriptor_count;
1: - __le32 device_update_flags;
1: - u8 version_type;
1: - u8 version_len;
1: - __le16 package_data_len;
1: - u8 variable_record_data[0];
1: + __le16 record_len;
1: + u8 descriptor_count;
1: + __le32 device_update_flags;
1: + u8 version_type;
1: + u8 version_len;
1: + __le16 package_data_len;
1: + u8 variable_record_data[0];
1: } __attribute__((packed));
1:
1: struct __pldmfw_desc_tlv {
1: - __le16 type;
1: - __le16 size;
1: - u8 data[0];
1: + __le16 type;
1: + __le16 size;
1: + u8 data[0];
1: };
1:
1: struct __pldmfw_record_area {
1: - u8 record_count;
1: - u8 records[0];
1: + u8 record_count;
1: + u8 records[0];
1: };
1:
1: struct __pldmfw_component_info {
1: - __le16 classification;
1: - __le16 identifier;
1: - __le32 comparison_stamp;
1: - __le16 options;
1: - __le16 activation_method;
1: - __le32 location_offset;
1: - __le32 size;
1: - u8 version_type;
1: - u8 version_len;
1: - u8 version_string[0];
1: + __le16 classification;
1: + __le16 identifier;
1: + __le32 comparison_stamp;
1: + __le16 options;
1: + __le16 activation_method;
1: + __le32 location_offset;
1: + __le32 size;
1: + u8 version_type;
1: + u8 version_len;
1: + u8 version_string[0];
1: } __attribute__((packed));
1:
1: struct __pldmfw_component_area {
1: - __le16 component_image_count;
1: - u8 components[0];
1: + __le16 component_image_count;
1: + u8 components[0];
1: };
1:
1: struct pldmfw_priv {
1: - struct pldmfw *context;
1: - const struct firmware *fw;
1: - size_t offset;
1: - struct list_head records;
1: - struct list_head components;
1: - const struct __pldm_header *header;
1: - u16 total_header_size;
1: - u16 component_bitmap_len;
1: - u16 bitmap_size;
1: - u16 component_count;
1: - const u8 *component_start;
1: - const u8 *record_start;
1: - u8 record_count;
1: - u32 header_crc;
1: - struct pldmfw_record *matching_record;
1: + struct pldmfw *context;
1: + const struct firmware *fw;
1: + size_t offset;
1: + struct list_head records;
1: + struct list_head components;
1: + const struct __pldm_header *header;
1: + u16 total_header_size;
1: + u16 component_bitmap_len;
1: + u16 bitmap_size;
1: + u16 component_count;
1: + const u8 *component_start;
1: + const u8 *record_start;
1: + u8 record_count;
1: + u32 header_crc;
1: + struct pldmfw_record *matching_record;
1: };
1:
1: struct pldm_pci_record_id {
1: - int vendor;
1: - int device;
1: - int subsystem_vendor;
1: - int subsystem_device;
1: + int vendor;
1: + int device;
1: + int subsystem_vendor;
1: + int subsystem_device;
1: };
1:
1: typedef long unsigned int cycles_t;
1:
1: struct compress_format {
1: - unsigned char magic[2];
1: - const char *name;
1: - decompress_fn decompressor;
1: + unsigned char magic[2];
1: + const char *name;
1: + decompress_fn decompressor;
1: };
1:
1: struct group_data {
1: - int limit[21];
1: - int base[20];
1: - int permute[258];
1: - int minLen;
1: - int maxLen;
1: + int limit[21];
1: + int base[20];
1: + int permute[258];
1: + int minLen;
1: + int maxLen;
1: };
1:
1: struct bunzip_data {
1: - int writeCopies;
1: - int writePos;
1: - int writeRunCountdown;
1: - int writeCount;
1: - int writeCurrent;
1: - long int (*fill)(void *, long unsigned int);
1: - long int inbufCount;
1: - long int inbufPos;
1: - unsigned char *inbuf;
1: - unsigned int inbufBitCount;
1: - unsigned int inbufBits;
1: - unsigned int crc32Table[256];
1: - unsigned int headerCRC;
1: - unsigned int totalCRC;
1: - unsigned int writeCRC;
1: - unsigned int *dbuf;
1: - unsigned int dbufSize;
1: - unsigned char selectors[32768];
1: - struct group_data groups[6];
1: - int io_error;
1: - int byteCount[256];
1: - unsigned char symToByte[256];
1: - unsigned char mtfSymbol[256];
1: + int writeCopies;
1: + int writePos;
1: + int writeRunCountdown;
1: + int writeCount;
1: + int writeCurrent;
1: + long int (*fill)(void *, long unsigned int);
1: + long int inbufCount;
1: + long int inbufPos;
1: + unsigned char *inbuf;
1: + unsigned int inbufBitCount;
1: + unsigned int inbufBits;
1: + unsigned int crc32Table[256];
1: + unsigned int headerCRC;
1: + unsigned int totalCRC;
1: + unsigned int writeCRC;
1: + unsigned int *dbuf;
1: + unsigned int dbufSize;
1: + unsigned char selectors[32768];
1: + struct group_data groups[6];
1: + int io_error;
1: + int byteCount[256];
1: + unsigned char symToByte[256];
1: + unsigned char mtfSymbol[256];
1: };
1:
1: struct rc {
1: - long int (*fill)(void *, long unsigned int);
1: - uint8_t *ptr;
1: - uint8_t *buffer;
1: - uint8_t *buffer_end;
1: - long int buffer_size;
1: - uint32_t code;
1: - uint32_t range;
1: - uint32_t bound;
1: - void (*error)(char *);
1: + long int (*fill)(void *, long unsigned int);
1: + uint8_t *ptr;
1: + uint8_t *buffer;
1: + uint8_t *buffer_end;
1: + long int buffer_size;
1: + uint32_t code;
1: + uint32_t range;
1: + uint32_t bound;
1: + void (*error)(char *);
1: };
1:
1: struct lzma_header {
1: - uint8_t pos;
1: - uint32_t dict_size;
1: - uint64_t dst_size;
1: + uint8_t pos;
1: + uint32_t dict_size;
1: + uint64_t dst_size;
1: } __attribute__((packed));
1:
1: struct writer {
1: - uint8_t *buffer;
1: - uint8_t previous_byte;
1: - size_t buffer_pos;
1: - int bufsize;
1: - size_t global_pos;
1: - long int (*flush)(void *, long unsigned int);
1: - struct lzma_header *header;
1: + uint8_t *buffer;
1: + uint8_t previous_byte;
1: + size_t buffer_pos;
1: + int bufsize;
1: + size_t global_pos;
1: + long int (*flush)(void *, long unsigned int);
1: + struct lzma_header *header;
1: };
1:
1: struct cstate {
1: - int state;
1: - uint32_t rep0;
1: - uint32_t rep1;
1: - uint32_t rep2;
1: - uint32_t rep3;
1: + int state;
1: + uint32_t rep0;
1: + uint32_t rep1;
1: + uint32_t rep2;
1: + uint32_t rep3;
1: };
1:
1: struct xz_dec___2;
1:
1: typedef enum {
1: - ZSTD_error_no_error = 0,
1: - ZSTD_error_GENERIC = 1,
1: - ZSTD_error_prefix_unknown = 2,
1: - ZSTD_error_version_unsupported = 3,
1: - ZSTD_error_parameter_unknown = 4,
1: - ZSTD_error_frameParameter_unsupported = 5,
1: - ZSTD_error_frameParameter_unsupportedBy32bits = 6,
1: - ZSTD_error_frameParameter_windowTooLarge = 7,
1: - ZSTD_error_compressionParameter_unsupported = 8,
1: - ZSTD_error_init_missing = 9,
1: - ZSTD_error_memory_allocation = 10,
1: - ZSTD_error_stage_wrong = 11,
1: - ZSTD_error_dstSize_tooSmall = 12,
1: - ZSTD_error_srcSize_wrong = 13,
1: - ZSTD_error_corruption_detected = 14,
1: - ZSTD_error_checksum_wrong = 15,
1: - ZSTD_error_tableLog_tooLarge = 16,
1: - ZSTD_error_maxSymbolValue_tooLarge = 17,
1: - ZSTD_error_maxSymbolValue_tooSmall = 18,
1: - ZSTD_error_dictionary_corrupted = 19,
1: - ZSTD_error_dictionary_wrong = 20,
1: - ZSTD_error_dictionaryCreation_failed = 21,
1: - ZSTD_error_maxCode = 22,
1: + ZSTD_error_no_error = 0,
1: + ZSTD_error_GENERIC = 1,
1: + ZSTD_error_prefix_unknown = 2,
1: + ZSTD_error_version_unsupported = 3,
1: + ZSTD_error_parameter_unknown = 4,
1: + ZSTD_error_frameParameter_unsupported = 5,
1: + ZSTD_error_frameParameter_unsupportedBy32bits = 6,
1: + ZSTD_error_frameParameter_windowTooLarge = 7,
1: + ZSTD_error_compressionParameter_unsupported = 8,
1: + ZSTD_error_init_missing = 9,
1: + ZSTD_error_memory_allocation = 10,
1: + ZSTD_error_stage_wrong = 11,
1: + ZSTD_error_dstSize_tooSmall = 12,
1: + ZSTD_error_srcSize_wrong = 13,
1: + ZSTD_error_corruption_detected = 14,
1: + ZSTD_error_checksum_wrong = 15,
1: + ZSTD_error_tableLog_tooLarge = 16,
1: + ZSTD_error_maxSymbolValue_tooLarge = 17,
1: + ZSTD_error_maxSymbolValue_tooSmall = 18,
1: + ZSTD_error_dictionary_corrupted = 19,
1: + ZSTD_error_dictionary_wrong = 20,
1: + ZSTD_error_dictionaryCreation_failed = 21,
1: + ZSTD_error_maxCode = 22,
1: } ZSTD_ErrorCode;
1:
1: struct ZSTD_DStream_s___2;
1: @@ -58772,177 +59658,179 @@ struct ZSTD_DStream_s___2;
1: typedef struct ZSTD_DStream_s___2 ZSTD_DStream___2;
1:
1: struct cpio_data {
1: - void *data;
1: - size_t size;
1: - char name[18];
1: + void *data;
1: + size_t size;
1: + char name[18];
1: };
1:
1: enum cpio_fields {
1: - C_MAGIC = 0,
1: - C_INO = 1,
1: - C_MODE = 2,
1: - C_UID = 3,
1: - C_GID = 4,
1: - C_NLINK = 5,
1: - C_MTIME = 6,
1: - C_FILESIZE = 7,
1: - C_MAJ = 8,
1: - C_MIN = 9,
1: - C_RMAJ = 10,
1: - C_RMIN = 11,
1: - C_NAMESIZE = 12,
1: - C_CHKSUM = 13,
1: - C_NFIELDS = 14,
1: -};
1: -
1: -enum {
1: - ASSUME_PERFECT = 255,
1: - ASSUME_VALID_DTB = 1,
1: - ASSUME_VALID_INPUT = 2,
1: - ASSUME_LATEST = 4,
1: - ASSUME_NO_ROLLBACK = 8,
1: - ASSUME_LIBFDT_ORDER = 16,
1: - ASSUME_LIBFDT_FLAWLESS = 32,
1: + C_MAGIC = 0,
1: + C_INO = 1,
1: + C_MODE = 2,
1: + C_UID = 3,
1: + C_GID = 4,
1: + C_NLINK = 5,
1: + C_MTIME = 6,
1: + C_FILESIZE = 7,
1: + C_MAJ = 8,
1: + C_MIN = 9,
1: + C_RMAJ = 10,
1: + C_RMIN = 11,
1: + C_NAMESIZE = 12,
1: + C_CHKSUM = 13,
1: + C_NFIELDS = 14,
1: +};
1: +
1: +enum {
1: + ASSUME_PERFECT = 255,
1: + ASSUME_VALID_DTB = 1,
1: + ASSUME_VALID_INPUT = 2,
1: + ASSUME_LATEST = 4,
1: + ASSUME_NO_ROLLBACK = 8,
1: + ASSUME_LIBFDT_ORDER = 16,
1: + ASSUME_LIBFDT_FLAWLESS = 32,
1: };
1:
1: struct fdt_reserve_entry {
1: - fdt64_t address;
1: - fdt64_t size;
1: + fdt64_t address;
1: + fdt64_t size;
1: };
1:
1: struct fdt_node_header {
1: - fdt32_t tag;
1: - char name[0];
1: + fdt32_t tag;
1: + char name[0];
1: };
1:
1: struct fdt_property {
1: - fdt32_t tag;
1: - fdt32_t len;
1: - fdt32_t nameoff;
1: - char data[0];
1: + fdt32_t tag;
1: + fdt32_t len;
1: + fdt32_t nameoff;
1: + char data[0];
1: };
1:
1: struct fdt_errtabent {
1: - const char *str;
1: + const char *str;
1: };
1:
1: struct fprop_local_single {
1: - long unsigned int events;
1: - unsigned int period;
1: - raw_spinlock_t lock;
1: + long unsigned int events;
1: + unsigned int period;
1: + raw_spinlock_t lock;
1: };
1:
1: struct ida_bitmap {
1: - long unsigned int bitmap[16];
1: + long unsigned int bitmap[16];
1: };
1:
1: struct klist_waiter {
1: - struct list_head list;
1: - struct klist_node *node;
1: - struct task_struct *process;
1: - int woken;
1: + struct list_head list;
1: + struct klist_node *node;
1: + struct task_struct *process;
1: + int woken;
1: };
1:
1: struct uevent_sock {
1: - struct list_head list;
1: - struct sock *sk;
1: + struct list_head list;
1: + struct sock *sk;
1: };
1:
1: enum {
1: - LOGIC_PIO_INDIRECT = 0,
1: - LOGIC_PIO_CPU_MMIO = 1,
1: + LOGIC_PIO_INDIRECT = 0,
1: + LOGIC_PIO_CPU_MMIO = 1,
1: };
1:
1: struct logic_pio_host_ops;
1:
1: struct logic_pio_hwaddr {
1: - struct list_head list;
1: - struct fwnode_handle *fwnode;
1: - resource_size_t hw_start;
1: - resource_size_t io_start;
1: - resource_size_t size;
1: - long unsigned int flags;
1: - void *hostdata;
1: - const struct logic_pio_host_ops *ops;
1: + struct list_head list;
1: + struct fwnode_handle *fwnode;
1: + resource_size_t hw_start;
1: + resource_size_t io_start;
1: + resource_size_t size;
1: + long unsigned int flags;
1: + void *hostdata;
1: + const struct logic_pio_host_ops *ops;
1: };
1:
1: struct logic_pio_host_ops {
1: - u32 (*in)(void *, long unsigned int, size_t);
1: - void (*out)(void *, long unsigned int, u32, size_t);
1: - u32 (*ins)(void *, long unsigned int, void *, size_t, unsigned int);
1: - void (*outs)(void *, long unsigned int, const void *, size_t, unsigned int);
1: + u32 (*in)(void *, long unsigned int, size_t);
1: + void (*out)(void *, long unsigned int, u32, size_t);
1: + u32 (*ins)(void *, long unsigned int, void *, size_t, unsigned int);
1: + void (*outs)(void *, long unsigned int, const void *, size_t, unsigned int);
1: };
1:
1: struct radix_tree_preload {
1: - unsigned int nr;
1: - struct xa_node *nodes;
1: + unsigned int nr;
1: + struct xa_node *nodes;
1: };
1:
1: typedef struct {
1: - long unsigned int key[2];
1: + long unsigned int key[2];
1: } hsiphash_key_t;
1:
1: enum format_type {
1: - FORMAT_TYPE_NONE = 0,
1: - FORMAT_TYPE_WIDTH = 1,
1: - FORMAT_TYPE_PRECISION = 2,
1: - FORMAT_TYPE_CHAR = 3,
1: - FORMAT_TYPE_STR = 4,
1: - FORMAT_TYPE_PTR = 5,
1: - FORMAT_TYPE_PERCENT_CHAR = 6,
1: - FORMAT_TYPE_INVALID = 7,
1: - FORMAT_TYPE_LONG_LONG = 8,
1: - FORMAT_TYPE_ULONG = 9,
1: - FORMAT_TYPE_LONG = 10,
1: - FORMAT_TYPE_UBYTE = 11,
1: - FORMAT_TYPE_BYTE = 12,
1: - FORMAT_TYPE_USHORT = 13,
1: - FORMAT_TYPE_SHORT = 14,
1: - FORMAT_TYPE_UINT = 15,
1: - FORMAT_TYPE_INT = 16,
1: - FORMAT_TYPE_SIZE_T = 17,
1: - FORMAT_TYPE_PTRDIFF = 18,
1: + FORMAT_TYPE_NONE = 0,
1: + FORMAT_TYPE_WIDTH = 1,
1: + FORMAT_TYPE_PRECISION = 2,
1: + FORMAT_TYPE_CHAR = 3,
1: + FORMAT_TYPE_STR = 4,
1: + FORMAT_TYPE_PTR = 5,
1: + FORMAT_TYPE_PERCENT_CHAR = 6,
1: + FORMAT_TYPE_INVALID = 7,
1: + FORMAT_TYPE_LONG_LONG = 8,
1: + FORMAT_TYPE_ULONG = 9,
1: + FORMAT_TYPE_LONG = 10,
1: + FORMAT_TYPE_UBYTE = 11,
1: + FORMAT_TYPE_BYTE = 12,
1: + FORMAT_TYPE_USHORT = 13,
1: + FORMAT_TYPE_SHORT = 14,
1: + FORMAT_TYPE_UINT = 15,
1: + FORMAT_TYPE_INT = 16,
1: + FORMAT_TYPE_SIZE_T = 17,
1: + FORMAT_TYPE_PTRDIFF = 18,
1: };
1:
1: struct printf_spec {
1: - unsigned int type: 8;
1: - int field_width: 24;
1: - unsigned int flags: 8;
1: - unsigned int base: 8;
1: - int precision: 16;
1: + unsigned int type : 8;
1: + int field_width : 24;
1: + unsigned int flags : 8;
1: + unsigned int base : 8;
1: + int precision : 16;
1: };
1:
1: struct minmax_sample {
1: - u32 t;
1: - u32 v;
1: + u32 t;
1: + u32 v;
1: };
1:
1: struct minmax {
1: - struct minmax_sample s[3];
1: + struct minmax_sample s[3];
1: };
1:
1: struct xa_limit {
1: - u32 max;
1: - u32 min;
1: + u32 max;
1: + u32 min;
1: };
1:
1: typedef int (*acpi_tbl_table_handler)(struct acpi_table_header *);
1:
1: -typedef int (*acpi_tbl_entry_handler)(union acpi_subtable_headers *, const long unsigned int);
1: +typedef int (*acpi_tbl_entry_handler)(union acpi_subtable_headers *,
1: + const long unsigned int);
1:
1: struct acpi_probe_entry;
1:
1: -typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, struct acpi_probe_entry *);
1: +typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *,
1: + struct acpi_probe_entry *);
1:
1: struct acpi_probe_entry {
1: - __u8 id[5];
1: - __u8 type;
1: - acpi_probe_entry_validate_subtbl subtable_valid;
1: - union {
1: - acpi_tbl_table_handler probe_table;
1: - acpi_tbl_entry_handler probe_subtbl;
1: - };
1: - kernel_ulong_t driver_data;
1: + __u8 id[5];
1: + __u8 type;
1: + acpi_probe_entry_validate_subtbl subtable_valid;
1: + union {
1: + acpi_tbl_table_handler probe_table;
1: + acpi_tbl_entry_handler probe_subtbl;
1: + };
1: + kernel_ulong_t driver_data;
1: };
1:
1: typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
1: @@ -58950,280 +59838,280 @@ typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
1: typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1:
1: struct armctrl_ic {
1: - void *base;
1: - void *pending[3];
1: - void *enable[3];
1: - void *disable[3];
1: - struct irq_domain *domain;
1: + void *base;
1: + void *pending[3];
1: + void *enable[3];
1: + void *disable[3];
1: + struct irq_domain *domain;
1: };
1:
1: struct bcm2836_arm_irqchip_intc {
1: - struct irq_domain *domain;
1: - void *base;
1: + struct irq_domain *domain;
1: + void *base;
1: };
1:
1: struct tegra_ictlr_soc {
1: - unsigned int num_ictlrs;
1: + unsigned int num_ictlrs;
1: };
1:
1: struct tegra_ictlr_info {
1: - void *base[6];
1: - u32 cop_ier[6];
1: - u32 cop_iep[6];
1: - u32 cpu_ier[6];
1: - u32 cpu_iep[6];
1: - u32 ictlr_wake_mask[6];
1: + void *base[6];
1: + u32 cop_ier[6];
1: + u32 cop_iep[6];
1: + u32 cpu_ier[6];
1: + u32 cpu_iep[6];
1: + u32 ictlr_wake_mask[6];
1: };
1:
1: struct sun4i_irq_chip_data {
1: - void *irq_base;
1: - struct irq_domain *irq_domain;
1: - u32 enable_reg_offset;
1: - u32 mask_reg_offset;
1: + void *irq_base;
1: + struct irq_domain *irq_domain;
1: + u32 enable_reg_offset;
1: + u32 mask_reg_offset;
1: };
1:
1: enum {
1: - SUNXI_SRC_TYPE_LEVEL_LOW = 0,
1: - SUNXI_SRC_TYPE_EDGE_FALLING = 1,
1: - SUNXI_SRC_TYPE_LEVEL_HIGH = 2,
1: - SUNXI_SRC_TYPE_EDGE_RISING = 3,
1: + SUNXI_SRC_TYPE_LEVEL_LOW = 0,
1: + SUNXI_SRC_TYPE_EDGE_FALLING = 1,
1: + SUNXI_SRC_TYPE_LEVEL_HIGH = 2,
1: + SUNXI_SRC_TYPE_EDGE_RISING = 3,
1: };
1:
1: struct sunxi_sc_nmi_reg_offs {
1: - u32 ctrl;
1: - u32 pend;
1: - u32 enable;
1: + u32 ctrl;
1: + u32 pend;
1: + u32 enable;
1: };
1:
1: struct acpi_madt_generic_distributor {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 gic_id;
1: - u64 base_address;
1: - u32 global_irq_base;
1: - u8 version;
1: - u8 reserved2[3];
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 gic_id;
1: + u64 base_address;
1: + u32 global_irq_base;
1: + u8 version;
1: + u8 reserved2[3];
1: };
1:
1: enum acpi_madt_gic_version {
1: - ACPI_MADT_GIC_VERSION_NONE = 0,
1: - ACPI_MADT_GIC_VERSION_V1 = 1,
1: - ACPI_MADT_GIC_VERSION_V2 = 2,
1: - ACPI_MADT_GIC_VERSION_V3 = 3,
1: - ACPI_MADT_GIC_VERSION_V4 = 4,
1: - ACPI_MADT_GIC_VERSION_RESERVED = 5,
1: + ACPI_MADT_GIC_VERSION_NONE = 0,
1: + ACPI_MADT_GIC_VERSION_V1 = 1,
1: + ACPI_MADT_GIC_VERSION_V2 = 2,
1: + ACPI_MADT_GIC_VERSION_V3 = 3,
1: + ACPI_MADT_GIC_VERSION_V4 = 4,
1: + ACPI_MADT_GIC_VERSION_RESERVED = 5,
1: };
1:
1: enum acpi_irq_model_id {
1: - ACPI_IRQ_MODEL_PIC = 0,
1: - ACPI_IRQ_MODEL_IOAPIC = 1,
1: - ACPI_IRQ_MODEL_IOSAPIC = 2,
1: - ACPI_IRQ_MODEL_PLATFORM = 3,
1: - ACPI_IRQ_MODEL_GIC = 4,
1: - ACPI_IRQ_MODEL_COUNT = 5,
1: + ACPI_IRQ_MODEL_PIC = 0,
1: + ACPI_IRQ_MODEL_IOAPIC = 1,
1: + ACPI_IRQ_MODEL_IOSAPIC = 2,
1: + ACPI_IRQ_MODEL_PLATFORM = 3,
1: + ACPI_IRQ_MODEL_GIC = 4,
1: + ACPI_IRQ_MODEL_COUNT = 5,
1: };
1:
1: union gic_base {
1: - void *common_base;
1: - void **percpu_base;
1: + void *common_base;
1: + void **percpu_base;
1: };
1:
1: struct gic_chip_data {
1: - struct irq_chip chip;
1: - union gic_base dist_base;
1: - union gic_base cpu_base;
1: - void *raw_dist_base;
1: - void *raw_cpu_base;
1: - u32 percpu_offset;
1: - u32 saved_spi_enable[32];
1: - u32 saved_spi_active[32];
1: - u32 saved_spi_conf[64];
1: - u32 saved_spi_target[255];
1: - u32 *saved_ppi_enable;
1: - u32 *saved_ppi_active;
1: - u32 *saved_ppi_conf;
1: - struct irq_domain *domain;
1: - unsigned int gic_irqs;
1: + struct irq_chip chip;
1: + union gic_base dist_base;
1: + union gic_base cpu_base;
1: + void *raw_dist_base;
1: + void *raw_cpu_base;
1: + u32 percpu_offset;
1: + u32 saved_spi_enable[32];
1: + u32 saved_spi_active[32];
1: + u32 saved_spi_conf[64];
1: + u32 saved_spi_target[255];
1: + u32 *saved_ppi_enable;
1: + u32 *saved_ppi_active;
1: + u32 *saved_ppi_conf;
1: + struct irq_domain *domain;
1: + unsigned int gic_irqs;
1: };
1:
1: struct gic_quirk {
1: - const char *desc;
1: - const char *compatible;
1: - bool (*init)(void *);
1: - u32 iidr;
1: - u32 mask;
1: + const char *desc;
1: + const char *compatible;
1: + bool (*init)(void *);
1: + u32 iidr;
1: + u32 mask;
1: };
1:
1: struct clk_bulk_data {
1: - const char *id;
1: - struct clk *clk;
1: + const char *id;
1: + struct clk *clk;
1: };
1:
1: struct gic_clk_data {
1: - unsigned int num_clocks;
1: - const char * const *clocks;
1: + unsigned int num_clocks;
1: + const char *const *clocks;
1: };
1:
1: struct gic_chip_data___2;
1:
1: struct gic_chip_pm {
1: - struct gic_chip_data___2 *chip_data;
1: - const struct gic_clk_data *clk_data;
1: - struct clk_bulk_data *clks;
1: + struct gic_chip_data___2 *chip_data;
1: + const struct gic_clk_data *clk_data;
1: + struct clk_bulk_data *clks;
1: };
1:
1: struct acpi_table_madt {
1: - struct acpi_table_header header;
1: - u32 address;
1: - u32 flags;
1: + struct acpi_table_header header;
1: + u32 address;
1: + u32 flags;
1: };
1:
1: struct acpi_madt_generic_msi_frame {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 msi_frame_id;
1: - u64 base_address;
1: - u32 flags;
1: - u16 spi_count;
1: - u16 spi_base;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 msi_frame_id;
1: + u64 base_address;
1: + u32 flags;
1: + u16 spi_count;
1: + u16 spi_base;
1: };
1:
1: struct v2m_data {
1: - struct list_head entry;
1: - struct fwnode_handle *fwnode;
1: - struct resource res;
1: - void *base;
1: - u32 spi_start;
1: - u32 nr_spis;
1: - u32 spi_offset;
1: - long unsigned int *bm;
1: - u32 flags;
1: + struct list_head entry;
1: + struct fwnode_handle *fwnode;
1: + struct resource res;
1: + void *base;
1: + u32 spi_start;
1: + u32 nr_spis;
1: + u32 spi_offset;
1: + long unsigned int *bm;
1: + u32 flags;
1: };
1:
1: struct acpi_madt_generic_redistributor {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u64 base_address;
1: - u32 length;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u64 base_address;
1: + u32 length;
1: } __attribute__((packed));
1:
1: struct rdists {
1: - struct {
1: - raw_spinlock_t rd_lock;
1: - void *rd_base;
1: - struct page *pend_page;
1: - phys_addr_t phys_base;
1: - bool lpi_enabled;
1: - cpumask_t *vpe_table_mask;
1: - void *vpe_l1_base;
1: - } *rdist;
1: - phys_addr_t prop_table_pa;
1: - void *prop_table_va;
1: - u64 flags;
1: - u32 gicd_typer;
1: - u32 gicd_typer2;
1: - bool has_vlpis;
1: - bool has_rvpeid;
1: - bool has_direct_lpi;
1: - bool has_vpend_valid_dirty;
1: + struct {
1: + raw_spinlock_t rd_lock;
1: + void *rd_base;
1: + struct page *pend_page;
1: + phys_addr_t phys_base;
1: + bool lpi_enabled;
1: + cpumask_t *vpe_table_mask;
1: + void *vpe_l1_base;
1: + } * rdist;
1: + phys_addr_t prop_table_pa;
1: + void *prop_table_va;
1: + u64 flags;
1: + u32 gicd_typer;
1: + u32 gicd_typer2;
1: + bool has_vlpis;
1: + bool has_rvpeid;
1: + bool has_direct_lpi;
1: + bool has_vpend_valid_dirty;
1: };
1:
1: struct partition_affinity {
1: - cpumask_t mask;
1: - void *partition_id;
1: + cpumask_t mask;
1: + void *partition_id;
1: };
1:
1: struct redist_region {
1: - void *redist_base;
1: - phys_addr_t phys_base;
1: - bool single_redist;
1: + void *redist_base;
1: + phys_addr_t phys_base;
1: + bool single_redist;
1: };
1:
1: struct partition_desc;
1:
1: struct gic_chip_data___3 {
1: - struct fwnode_handle *fwnode;
1: - void *dist_base;
1: - struct redist_region *redist_regions;
1: - struct rdists rdists;
1: - struct irq_domain *domain;
1: - u64 redist_stride;
1: - u32 nr_redist_regions;
1: - u64 flags;
1: - bool has_rss;
1: - unsigned int ppi_nr;
1: - struct partition_desc **ppi_descs;
1: + struct fwnode_handle *fwnode;
1: + void *dist_base;
1: + struct redist_region *redist_regions;
1: + struct rdists rdists;
1: + struct irq_domain *domain;
1: + u64 redist_stride;
1: + u32 nr_redist_regions;
1: + u64 flags;
1: + bool has_rss;
1: + unsigned int ppi_nr;
1: + struct partition_desc **ppi_descs;
1: };
1:
1: enum gic_intid_range {
1: - SGI_RANGE = 0,
1: - PPI_RANGE = 1,
1: - SPI_RANGE = 2,
1: - EPPI_RANGE = 3,
1: - ESPI_RANGE = 4,
1: - LPI_RANGE = 5,
1: - __INVALID_RANGE__ = 6,
1: + SGI_RANGE = 0,
1: + PPI_RANGE = 1,
1: + SPI_RANGE = 2,
1: + EPPI_RANGE = 3,
1: + ESPI_RANGE = 4,
1: + LPI_RANGE = 5,
1: + __INVALID_RANGE__ = 6,
1: };
1:
1: struct mbi_range {
1: - u32 spi_start;
1: - u32 nr_spis;
1: - long unsigned int *bm;
1: + u32 spi_start;
1: + u32 nr_spis;
1: + long unsigned int *bm;
1: };
1:
1: struct acpi_madt_generic_translator {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 translation_id;
1: - u64 base_address;
1: - u32 reserved2;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 translation_id;
1: + u64 base_address;
1: + u32 reserved2;
1: } __attribute__((packed));
1:
1: struct acpi_srat_gic_its_affinity {
1: - struct acpi_subtable_header header;
1: - u32 proximity_domain;
1: - u16 reserved;
1: - u32 its_id;
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u16 reserved;
1: + u32 its_id;
1: } __attribute__((packed));
1:
1: enum its_vcpu_info_cmd_type {
1: - MAP_VLPI = 0,
1: - GET_VLPI = 1,
1: - PROP_UPDATE_VLPI = 2,
1: - PROP_UPDATE_AND_INV_VLPI = 3,
1: - SCHEDULE_VPE = 4,
1: - DESCHEDULE_VPE = 5,
1: - INVALL_VPE = 6,
1: - PROP_UPDATE_VSGI = 7,
1: + MAP_VLPI = 0,
1: + GET_VLPI = 1,
1: + PROP_UPDATE_VLPI = 2,
1: + PROP_UPDATE_AND_INV_VLPI = 3,
1: + SCHEDULE_VPE = 4,
1: + DESCHEDULE_VPE = 5,
1: + INVALL_VPE = 6,
1: + PROP_UPDATE_VSGI = 7,
1: };
1:
1: struct its_cmd_info {
1: - enum its_vcpu_info_cmd_type cmd_type;
1: - union {
1: - struct its_vlpi_map *map;
1: - u8 config;
1: - bool req_db;
1: - struct {
1: - bool g0en;
1: - bool g1en;
1: - };
1: - struct {
1: - u8 priority;
1: - bool group;
1: - };
1: - };
1: + enum its_vcpu_info_cmd_type cmd_type;
1: + union {
1: + struct its_vlpi_map *map;
1: + u8 config;
1: + bool req_db;
1: + struct {
1: + bool g0en;
1: + bool g1en;
1: + };
1: + struct {
1: + u8 priority;
1: + bool group;
1: + };
1: + };
1: };
1:
1: struct its_collection___2 {
1: - u64 target_address;
1: - u16 col_id;
1: + u64 target_address;
1: + u16 col_id;
1: };
1:
1: struct its_baser {
1: - void *base;
1: - u64 val;
1: - u32 order;
1: - u32 psz;
1: + void *base;
1: + u64 val;
1: + u32 order;
1: + u32 psz;
1: };
1:
1: struct its_cmd_block;
1: @@ -59231,355 +60119,361 @@ struct its_cmd_block;
1: struct its_device___2;
1:
1: struct its_node {
1: - raw_spinlock_t lock;
1: - struct mutex dev_alloc_lock;
1: - struct list_head entry;
1: - void *base;
1: - void *sgir_base;
1: - phys_addr_t phys_base;
1: - struct its_cmd_block *cmd_base;
1: - struct its_cmd_block *cmd_write;
1: - struct its_baser tables[8];
1: - struct its_collection___2 *collections;
1: - struct fwnode_handle *fwnode_handle;
1: - u64 (*get_msi_base)(struct its_device___2 *);
1: - u64 typer;
1: - u64 cbaser_save;
1: - u32 ctlr_save;
1: - u32 mpidr;
1: - struct list_head its_device_list;
1: - u64 flags;
1: - long unsigned int list_nr;
1: - int numa_node;
1: - unsigned int msi_domain_flags;
1: - u32 pre_its_base;
1: - int vlpi_redist_offset;
1: + raw_spinlock_t lock;
1: + struct mutex dev_alloc_lock;
1: + struct list_head entry;
1: + void *base;
1: + void *sgir_base;
1: + phys_addr_t phys_base;
1: + struct its_cmd_block *cmd_base;
1: + struct its_cmd_block *cmd_write;
1: + struct its_baser tables[8];
1: + struct its_collection___2 *collections;
1: + struct fwnode_handle *fwnode_handle;
1: + u64 (*get_msi_base)(struct its_device___2 *);
1: + u64 typer;
1: + u64 cbaser_save;
1: + u32 ctlr_save;
1: + u32 mpidr;
1: + struct list_head its_device_list;
1: + u64 flags;
1: + long unsigned int list_nr;
1: + int numa_node;
1: + unsigned int msi_domain_flags;
1: + u32 pre_its_base;
1: + int vlpi_redist_offset;
1: };
1:
1: struct its_cmd_block {
1: - union {
1: - u64 raw_cmd[4];
1: - __le64 raw_cmd_le[4];
1: - };
1: + union {
1: + u64 raw_cmd[4];
1: + __le64 raw_cmd_le[4];
1: + };
1: };
1:
1: struct event_lpi_map {
1: - long unsigned int *lpi_map;
1: - u16 *col_map;
1: - irq_hw_number_t lpi_base;
1: - int nr_lpis;
1: - raw_spinlock_t vlpi_lock;
1: - struct its_vm *vm;
1: - struct its_vlpi_map *vlpi_maps;
1: - int nr_vlpis;
1: + long unsigned int *lpi_map;
1: + u16 *col_map;
1: + irq_hw_number_t lpi_base;
1: + int nr_lpis;
1: + raw_spinlock_t vlpi_lock;
1: + struct its_vm *vm;
1: + struct its_vlpi_map *vlpi_maps;
1: + int nr_vlpis;
1: };
1:
1: struct its_device___2 {
1: - struct list_head entry;
1: - struct its_node *its;
1: - struct event_lpi_map event_map;
1: - void *itt;
1: - u32 nr_ites;
1: - u32 device_id;
1: - bool shared;
1: + struct list_head entry;
1: + struct its_node *its;
1: + struct event_lpi_map event_map;
1: + void *itt;
1: + u32 nr_ites;
1: + u32 device_id;
1: + bool shared;
1: };
1:
1: struct cpu_lpi_count {
1: - atomic_t managed;
1: - atomic_t unmanaged;
1: + atomic_t managed;
1: + atomic_t unmanaged;
1: };
1:
1: struct its_cmd_desc {
1: - union {
1: - struct {
1: - struct its_device___2 *dev;
1: - u32 event_id;
1: - } its_inv_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - u32 event_id;
1: - } its_clear_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - u32 event_id;
1: - } its_int_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - int valid;
1: - } its_mapd_cmd;
1: - struct {
1: - struct its_collection___2 *col;
1: - int valid;
1: - } its_mapc_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - u32 phys_id;
1: - u32 event_id;
1: - } its_mapti_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - struct its_collection___2 *col;
1: - u32 event_id;
1: - } its_movi_cmd;
1: - struct {
1: - struct its_device___2 *dev;
1: - u32 event_id;
1: - } its_discard_cmd;
1: - struct {
1: - struct its_collection___2 *col;
1: - } its_invall_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - } its_vinvall_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - struct its_collection___2 *col;
1: - bool valid;
1: - } its_vmapp_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - struct its_device___2 *dev;
1: - u32 virt_id;
1: - u32 event_id;
1: - bool db_enabled;
1: - } its_vmapti_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - struct its_device___2 *dev;
1: - u32 event_id;
1: - bool db_enabled;
1: - } its_vmovi_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - struct its_collection___2 *col;
1: - u16 seq_num;
1: - u16 its_list;
1: - } its_vmovp_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - } its_invdb_cmd;
1: - struct {
1: - struct its_vpe *vpe;
1: - u8 sgi;
1: - u8 priority;
1: - bool enable;
1: - bool group;
1: - bool clear;
1: - } its_vsgi_cmd;
1: - };
1: -};
1: -
1: -typedef struct its_collection___2 * (*its_cmd_builder_t)(struct its_node *, struct its_cmd_block *, struct its_cmd_desc *);
1: -
1: -typedef struct its_vpe * (*its_cmd_vbuilder_t)(struct its_node *, struct its_cmd_block *, struct its_cmd_desc *);
1: + union {
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_inv_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_clear_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_int_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + int valid;
1: + } its_mapd_cmd;
1: + struct {
1: + struct its_collection___2 *col;
1: + int valid;
1: + } its_mapc_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 phys_id;
1: + u32 event_id;
1: + } its_mapti_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + struct its_collection___2 *col;
1: + u32 event_id;
1: + } its_movi_cmd;
1: + struct {
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + } its_discard_cmd;
1: + struct {
1: + struct its_collection___2 *col;
1: + } its_invall_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + } its_vinvall_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_collection___2 *col;
1: + bool valid;
1: + } its_vmapp_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_device___2 *dev;
1: + u32 virt_id;
1: + u32 event_id;
1: + bool db_enabled;
1: + } its_vmapti_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_device___2 *dev;
1: + u32 event_id;
1: + bool db_enabled;
1: + } its_vmovi_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + struct its_collection___2 *col;
1: + u16 seq_num;
1: + u16 its_list;
1: + } its_vmovp_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + } its_invdb_cmd;
1: + struct {
1: + struct its_vpe *vpe;
1: + u8 sgi;
1: + u8 priority;
1: + bool enable;
1: + bool group;
1: + bool clear;
1: + } its_vsgi_cmd;
1: + };
1: +};
1: +
1: +typedef struct its_collection___2 *(*its_cmd_builder_t)(struct its_node *,
1: + struct its_cmd_block *,
1: + struct its_cmd_desc *);
1: +
1: +typedef struct its_vpe *(*its_cmd_vbuilder_t)(struct its_node *,
1: + struct its_cmd_block *,
1: + struct its_cmd_desc *);
1:
1: struct lpi_range {
1: - struct list_head entry;
1: - u32 base_id;
1: - u32 span;
1: + struct list_head entry;
1: + u32 base_id;
1: + u32 span;
1: };
1:
1: struct its_srat_map {
1: - u32 numa_node;
1: - u32 its_id;
1: + u32 numa_node;
1: + u32 its_id;
1: };
1:
1: struct msi_controller {
1: - struct module *owner;
1: - struct device *dev;
1: - struct device_node *of_node;
1: - struct list_head list;
1: - int (*setup_irq)(struct msi_controller *, struct pci_dev *, struct msi_desc *);
1: - int (*setup_irqs)(struct msi_controller *, struct pci_dev *, int, int);
1: - void (*teardown_irq)(struct msi_controller *, unsigned int);
1: + struct module *owner;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + struct list_head list;
1: + int (*setup_irq)(struct msi_controller *, struct pci_dev *,
1: + struct msi_desc *);
1: + int (*setup_irqs)(struct msi_controller *, struct pci_dev *, int, int);
1: + void (*teardown_irq)(struct msi_controller *, unsigned int);
1: };
1:
1: struct partition_desc___2 {
1: - int nr_parts;
1: - struct partition_affinity *parts;
1: - struct irq_domain *domain;
1: - struct irq_desc *chained_desc;
1: - long unsigned int *bitmap;
1: - struct irq_domain_ops ops;
1: + int nr_parts;
1: + struct partition_affinity *parts;
1: + struct irq_domain *domain;
1: + struct irq_desc *chained_desc;
1: + long unsigned int *bitmap;
1: + struct irq_domain_ops ops;
1: };
1:
1: struct mbigen_device {
1: - struct platform_device *pdev;
1: - void *base;
1: + struct platform_device *pdev;
1: + void *base;
1: };
1:
1: struct mtk_sysirq_chip_data {
1: - raw_spinlock_t lock;
1: - u32 nr_intpol_bases;
1: - void **intpol_bases;
1: - u32 *intpol_words;
1: - u8 *intpol_idx;
1: - u16 *which_word;
1: + raw_spinlock_t lock;
1: + u32 nr_intpol_bases;
1: + void **intpol_bases;
1: + u32 *intpol_words;
1: + u8 *intpol_idx;
1: + u16 *which_word;
1: };
1:
1: struct mtk_cirq_chip_data {
1: - void *base;
1: - unsigned int ext_irq_start;
1: - unsigned int ext_irq_end;
1: - struct irq_domain *domain;
1: + void *base;
1: + unsigned int ext_irq_start;
1: + unsigned int ext_irq_end;
1: + struct irq_domain *domain;
1: };
1:
1: struct mvebu_gicp_spi_range {
1: - unsigned int start;
1: - unsigned int count;
1: + unsigned int start;
1: + unsigned int count;
1: };
1:
1: struct mvebu_gicp {
1: - struct mvebu_gicp_spi_range *spi_ranges;
1: - unsigned int spi_ranges_cnt;
1: - unsigned int spi_cnt;
1: - long unsigned int *spi_bitmap;
1: - spinlock_t spi_lock;
1: - struct resource *res;
1: - struct device *dev;
1: + struct mvebu_gicp_spi_range *spi_ranges;
1: + unsigned int spi_ranges_cnt;
1: + unsigned int spi_cnt;
1: + long unsigned int *spi_bitmap;
1: + spinlock_t spi_lock;
1: + struct resource *res;
1: + struct device *dev;
1: };
1:
1: struct mvebu_icu_subset_data {
1: - unsigned int icu_group;
1: - unsigned int offset_set_ah;
1: - unsigned int offset_set_al;
1: - unsigned int offset_clr_ah;
1: - unsigned int offset_clr_al;
1: + unsigned int icu_group;
1: + unsigned int offset_set_ah;
1: + unsigned int offset_set_al;
1: + unsigned int offset_clr_ah;
1: + unsigned int offset_clr_al;
1: };
1:
1: struct mvebu_icu {
1: - void *base;
1: - struct device *dev;
1: + void *base;
1: + struct device *dev;
1: };
1:
1: struct mvebu_icu_msi_data {
1: - struct mvebu_icu *icu;
1: - atomic_t initialized;
1: - const struct mvebu_icu_subset_data *subset_data;
1: + struct mvebu_icu *icu;
1: + atomic_t initialized;
1: + const struct mvebu_icu_subset_data *subset_data;
1: };
1:
1: struct mvebu_icu_irq_data {
1: - struct mvebu_icu *icu;
1: - unsigned int icu_group;
1: - unsigned int type;
1: + struct mvebu_icu *icu;
1: + unsigned int icu_group;
1: + unsigned int type;
1: };
1:
1: struct odmi_data {
1: - struct resource res;
1: - void *base;
1: - unsigned int spi_base;
1: + struct resource res;
1: + void *base;
1: + unsigned int spi_base;
1: };
1:
1: struct mvebu_pic {
1: - void *base;
1: - u32 parent_irq;
1: - struct irq_domain *domain;
1: - struct irq_chip irq_chip;
1: + void *base;
1: + u32 parent_irq;
1: + struct irq_domain *domain;
1: + struct irq_chip irq_chip;
1: };
1:
1: struct mvebu_sei_interrupt_range {
1: - u32 first;
1: - u32 size;
1: + u32 first;
1: + u32 size;
1: };
1:
1: struct mvebu_sei_caps {
1: - struct mvebu_sei_interrupt_range ap_range;
1: - struct mvebu_sei_interrupt_range cp_range;
1: + struct mvebu_sei_interrupt_range ap_range;
1: + struct mvebu_sei_interrupt_range cp_range;
1: };
1:
1: struct mvebu_sei {
1: - struct device *dev;
1: - void *base;
1: - struct resource *res;
1: - struct irq_domain *sei_domain;
1: - struct irq_domain *ap_domain;
1: - struct irq_domain *cp_domain;
1: - const struct mvebu_sei_caps *caps;
1: - struct mutex cp_msi_lock;
1: - long unsigned int cp_msi_bitmap[1];
1: - raw_spinlock_t mask_lock;
1: + struct device *dev;
1: + void *base;
1: + struct resource *res;
1: + struct irq_domain *sei_domain;
1: + struct irq_domain *ap_domain;
1: + struct irq_domain *cp_domain;
1: + const struct mvebu_sei_caps *caps;
1: + struct mutex cp_msi_lock;
1: + long unsigned int cp_msi_bitmap[1];
1: + raw_spinlock_t mask_lock;
1: };
1:
1: struct meson_gpio_irq_controller;
1:
1: struct irq_ctl_ops {
1: - void (*gpio_irq_sel_pin)(struct meson_gpio_irq_controller *, unsigned int, long unsigned int);
1: - void (*gpio_irq_init)(struct meson_gpio_irq_controller *);
1: + void (*gpio_irq_sel_pin)(struct meson_gpio_irq_controller *, unsigned int,
1: + long unsigned int);
1: + void (*gpio_irq_init)(struct meson_gpio_irq_controller *);
1: };
1:
1: struct meson_gpio_irq_params;
1:
1: struct meson_gpio_irq_controller {
1: - const struct meson_gpio_irq_params *params;
1: - void *base;
1: - u32 channel_irqs[8];
1: - long unsigned int channel_map[1];
1: - spinlock_t lock;
1: + const struct meson_gpio_irq_params *params;
1: + void *base;
1: + u32 channel_irqs[8];
1: + long unsigned int channel_map[1];
1: + spinlock_t lock;
1: };
1:
1: struct meson_gpio_irq_params {
1: - unsigned int nr_hwirq;
1: - bool support_edge_both;
1: - unsigned int edge_both_offset;
1: - unsigned int edge_single_offset;
1: - unsigned int pol_low_offset;
1: - unsigned int pin_sel_mask;
1: - struct irq_ctl_ops ops;
1: + unsigned int nr_hwirq;
1: + bool support_edge_both;
1: + unsigned int edge_both_offset;
1: + unsigned int edge_single_offset;
1: + unsigned int pol_low_offset;
1: + unsigned int pin_sel_mask;
1: + struct irq_ctl_ops ops;
1: };
1:
1: struct regmap_irq_type {
1: - unsigned int type_reg_offset;
1: - unsigned int type_reg_mask;
1: - unsigned int type_rising_val;
1: - unsigned int type_falling_val;
1: - unsigned int type_level_low_val;
1: - unsigned int type_level_high_val;
1: - unsigned int types_supported;
1: + unsigned int type_reg_offset;
1: + unsigned int type_reg_mask;
1: + unsigned int type_rising_val;
1: + unsigned int type_falling_val;
1: + unsigned int type_level_low_val;
1: + unsigned int type_level_high_val;
1: + unsigned int types_supported;
1: };
1:
1: struct regmap_irq {
1: - unsigned int reg_offset;
1: - unsigned int mask;
1: - struct regmap_irq_type type;
1: + unsigned int reg_offset;
1: + unsigned int mask;
1: + struct regmap_irq_type type;
1: };
1:
1: struct regmap_irq_sub_irq_map {
1: - unsigned int num_regs;
1: - unsigned int *offset;
1: + unsigned int num_regs;
1: + unsigned int *offset;
1: };
1:
1: struct regmap_irq_chip {
1: - const char *name;
1: - unsigned int main_status;
1: - unsigned int num_main_status_bits;
1: - struct regmap_irq_sub_irq_map *sub_reg_offsets;
1: - int num_main_regs;
1: - unsigned int status_base;
1: - unsigned int mask_base;
1: - unsigned int unmask_base;
1: - unsigned int ack_base;
1: - unsigned int wake_base;
1: - unsigned int type_base;
1: - unsigned int irq_reg_stride;
1: - bool mask_writeonly: 1;
1: - bool init_ack_masked: 1;
1: - bool mask_invert: 1;
1: - bool use_ack: 1;
1: - bool ack_invert: 1;
1: - bool clear_ack: 1;
1: - bool wake_invert: 1;
1: - bool runtime_pm: 1;
1: - bool type_invert: 1;
1: - bool type_in_mask: 1;
1: - bool clear_on_unmask: 1;
1: - int num_regs;
1: - const struct regmap_irq *irqs;
1: - int num_irqs;
1: - int num_type_reg;
1: - unsigned int type_reg_stride;
1: - int (*handle_pre_irq)(void *);
1: - int (*handle_post_irq)(void *);
1: - void *irq_drv_data;
1: + const char *name;
1: + unsigned int main_status;
1: + unsigned int num_main_status_bits;
1: + struct regmap_irq_sub_irq_map *sub_reg_offsets;
1: + int num_main_regs;
1: + unsigned int status_base;
1: + unsigned int mask_base;
1: + unsigned int unmask_base;
1: + unsigned int ack_base;
1: + unsigned int wake_base;
1: + unsigned int type_base;
1: + unsigned int irq_reg_stride;
1: + bool mask_writeonly : 1;
1: + bool init_ack_masked : 1;
1: + bool mask_invert : 1;
1: + bool use_ack : 1;
1: + bool ack_invert : 1;
1: + bool clear_ack : 1;
1: + bool wake_invert : 1;
1: + bool runtime_pm : 1;
1: + bool type_invert : 1;
1: + bool type_in_mask : 1;
1: + bool clear_on_unmask : 1;
1: + int num_regs;
1: + const struct regmap_irq *irqs;
1: + int num_irqs;
1: + int num_type_reg;
1: + unsigned int type_reg_stride;
1: + int (*handle_pre_irq)(void *);
1: + int (*handle_post_irq)(void *);
1: + void *irq_drv_data;
1: };
1:
1: struct gpio_desc;
1: @@ -59587,150 +60481,150 @@ struct gpio_desc;
1: struct regulator_init_data;
1:
1: struct arizona_ldo1_pdata {
1: - const struct regulator_init_data *init_data;
1: + const struct regulator_init_data *init_data;
1: };
1:
1: struct regulator_state {
1: - int uV;
1: - int min_uV;
1: - int max_uV;
1: - unsigned int mode;
1: - int enabled;
1: - bool changeable;
1: + int uV;
1: + int min_uV;
1: + int max_uV;
1: + unsigned int mode;
1: + int enabled;
1: + bool changeable;
1: };
1:
1: struct regulation_constraints {
1: - const char *name;
1: - int min_uV;
1: - int max_uV;
1: - int uV_offset;
1: - int min_uA;
1: - int max_uA;
1: - int ilim_uA;
1: - int system_load;
1: - u32 *max_spread;
1: - int max_uV_step;
1: - unsigned int valid_modes_mask;
1: - unsigned int valid_ops_mask;
1: - int input_uV;
1: - struct regulator_state state_disk;
1: - struct regulator_state state_mem;
1: - struct regulator_state state_standby;
1: - suspend_state_t initial_state;
1: - unsigned int initial_mode;
1: - unsigned int ramp_delay;
1: - unsigned int settling_time;
1: - unsigned int settling_time_up;
1: - unsigned int settling_time_down;
1: - unsigned int enable_time;
1: - unsigned int active_discharge;
1: - unsigned int always_on: 1;
1: - unsigned int boot_on: 1;
1: - unsigned int apply_uV: 1;
1: - unsigned int ramp_disable: 1;
1: - unsigned int soft_start: 1;
1: - unsigned int pull_down: 1;
1: - unsigned int over_current_protection: 1;
1: + const char *name;
1: + int min_uV;
1: + int max_uV;
1: + int uV_offset;
1: + int min_uA;
1: + int max_uA;
1: + int ilim_uA;
1: + int system_load;
1: + u32 *max_spread;
1: + int max_uV_step;
1: + unsigned int valid_modes_mask;
1: + unsigned int valid_ops_mask;
1: + int input_uV;
1: + struct regulator_state state_disk;
1: + struct regulator_state state_mem;
1: + struct regulator_state state_standby;
1: + suspend_state_t initial_state;
1: + unsigned int initial_mode;
1: + unsigned int ramp_delay;
1: + unsigned int settling_time;
1: + unsigned int settling_time_up;
1: + unsigned int settling_time_down;
1: + unsigned int enable_time;
1: + unsigned int active_discharge;
1: + unsigned int always_on : 1;
1: + unsigned int boot_on : 1;
1: + unsigned int apply_uV : 1;
1: + unsigned int ramp_disable : 1;
1: + unsigned int soft_start : 1;
1: + unsigned int pull_down : 1;
1: + unsigned int over_current_protection : 1;
1: };
1:
1: struct regulator_consumer_supply;
1:
1: struct regulator_init_data {
1: - const char *supply_regulator;
1: - struct regulation_constraints constraints;
1: - int num_consumer_supplies;
1: - struct regulator_consumer_supply *consumer_supplies;
1: - int (*regulator_init)(void *);
1: - void *driver_data;
1: + const char *supply_regulator;
1: + struct regulation_constraints constraints;
1: + int num_consumer_supplies;
1: + struct regulator_consumer_supply *consumer_supplies;
1: + int (*regulator_init)(void *);
1: + void *driver_data;
1: };
1:
1: struct arizona_micsupp_pdata {
1: - const struct regulator_init_data *init_data;
1: + const struct regulator_init_data *init_data;
1: };
1:
1: struct regulator;
1:
1: struct regulator_bulk_data {
1: - const char *supply;
1: - struct regulator *consumer;
1: - int ret;
1: + const char *supply;
1: + struct regulator *consumer;
1: + int ret;
1: };
1:
1: struct regulator_consumer_supply {
1: - const char *dev_name;
1: - const char *supply;
1: + const char *dev_name;
1: + const char *supply;
1: };
1:
1: struct madera_codec_pdata {
1: - u32 max_channels_clocked[4];
1: - u32 dmic_ref[6];
1: - u32 inmode[24];
1: - bool out_mono[6];
1: - u32 pdm_fmt[2];
1: - u32 pdm_mute[2];
1: + u32 max_channels_clocked[4];
1: + u32 dmic_ref[6];
1: + u32 inmode[24];
1: + bool out_mono[6];
1: + u32 pdm_fmt[2];
1: + u32 pdm_mute[2];
1: };
1:
1: struct pinctrl_map;
1:
1: struct madera_pdata {
1: - struct gpio_desc *reset;
1: - struct arizona_ldo1_pdata ldo1;
1: - struct arizona_micsupp_pdata micvdd;
1: - unsigned int irq_flags;
1: - int gpio_base;
1: - const struct pinctrl_map *gpio_configs;
1: - int n_gpio_configs;
1: - u32 gpsw[2];
1: - struct madera_codec_pdata codec;
1: + struct gpio_desc *reset;
1: + struct arizona_ldo1_pdata ldo1;
1: + struct arizona_micsupp_pdata micvdd;
1: + unsigned int irq_flags;
1: + int gpio_base;
1: + const struct pinctrl_map *gpio_configs;
1: + int n_gpio_configs;
1: + u32 gpsw[2];
1: + struct madera_codec_pdata codec;
1: };
1:
1: enum pinctrl_map_type {
1: - PIN_MAP_TYPE_INVALID = 0,
1: - PIN_MAP_TYPE_DUMMY_STATE = 1,
1: - PIN_MAP_TYPE_MUX_GROUP = 2,
1: - PIN_MAP_TYPE_CONFIGS_PIN = 3,
1: - PIN_MAP_TYPE_CONFIGS_GROUP = 4,
1: + PIN_MAP_TYPE_INVALID = 0,
1: + PIN_MAP_TYPE_DUMMY_STATE = 1,
1: + PIN_MAP_TYPE_MUX_GROUP = 2,
1: + PIN_MAP_TYPE_CONFIGS_PIN = 3,
1: + PIN_MAP_TYPE_CONFIGS_GROUP = 4,
1: };
1:
1: struct pinctrl_map_mux {
1: - const char *group;
1: - const char *function;
1: + const char *group;
1: + const char *function;
1: };
1:
1: struct pinctrl_map_configs {
1: - const char *group_or_pin;
1: - long unsigned int *configs;
1: - unsigned int num_configs;
1: + const char *group_or_pin;
1: + long unsigned int *configs;
1: + unsigned int num_configs;
1: };
1:
1: struct pinctrl_map {
1: - const char *dev_name;
1: - const char *name;
1: - enum pinctrl_map_type type;
1: - const char *ctrl_dev_name;
1: - union {
1: - struct pinctrl_map_mux mux;
1: - struct pinctrl_map_configs configs;
1: - } data;
1: + const char *dev_name;
1: + const char *name;
1: + enum pinctrl_map_type type;
1: + const char *ctrl_dev_name;
1: + union {
1: + struct pinctrl_map_mux mux;
1: + struct pinctrl_map_configs configs;
1: + } data;
1: };
1:
1: enum madera_type {
1: - CS47L35 = 1,
1: - CS47L85 = 2,
1: - CS47L90 = 3,
1: - CS47L91 = 4,
1: - CS47L92 = 5,
1: - CS47L93 = 6,
1: - WM1840 = 7,
1: - CS47L15 = 8,
1: - CS42L92 = 9,
1: + CS47L35 = 1,
1: + CS47L85 = 2,
1: + CS47L90 = 3,
1: + CS47L91 = 4,
1: + CS47L92 = 5,
1: + CS47L93 = 6,
1: + WM1840 = 7,
1: + CS47L15 = 8,
1: + CS42L92 = 9,
1: };
1:
1: enum {
1: - MADERA_MCLK1 = 0,
1: - MADERA_MCLK2 = 1,
1: - MADERA_MCLK3 = 2,
1: - MADERA_NUM_MCLK = 3,
1: + MADERA_MCLK1 = 0,
1: + MADERA_MCLK2 = 1,
1: + MADERA_MCLK3 = 2,
1: + MADERA_NUM_MCLK = 3,
1: };
1:
1: struct regmap;
1: @@ -59740,111 +60634,111 @@ struct regmap_irq_chip_data;
1: struct snd_soc_dapm_context;
1:
1: struct madera {
1: - struct regmap *regmap;
1: - struct regmap *regmap_32bit;
1: - struct device *dev;
1: - enum madera_type type;
1: - unsigned int rev;
1: - const char *type_name;
1: - int num_core_supplies;
1: - struct regulator_bulk_data core_supplies[2];
1: - struct regulator *dcvdd;
1: - bool internal_dcvdd;
1: - struct madera_pdata pdata;
1: - struct device *irq_dev;
1: - struct regmap_irq_chip_data *irq_data;
1: - int irq;
1: - struct clk_bulk_data mclk[3];
1: - unsigned int num_micbias;
1: - unsigned int num_childbias[4];
1: - struct snd_soc_dapm_context *dapm;
1: - struct mutex dapm_ptr_lock;
1: - unsigned int hp_ena;
1: - bool out_clamp[3];
1: - bool out_shorted[3];
1: - struct blocking_notifier_head notifier;
1: + struct regmap *regmap;
1: + struct regmap *regmap_32bit;
1: + struct device *dev;
1: + enum madera_type type;
1: + unsigned int rev;
1: + const char *type_name;
1: + int num_core_supplies;
1: + struct regulator_bulk_data core_supplies[2];
1: + struct regulator *dcvdd;
1: + bool internal_dcvdd;
1: + struct madera_pdata pdata;
1: + struct device *irq_dev;
1: + struct regmap_irq_chip_data *irq_data;
1: + int irq;
1: + struct clk_bulk_data mclk[3];
1: + unsigned int num_micbias;
1: + unsigned int num_childbias[4];
1: + struct snd_soc_dapm_context *dapm;
1: + struct mutex dapm_ptr_lock;
1: + unsigned int hp_ena;
1: + bool out_clamp[3];
1: + bool out_shorted[3];
1: + struct blocking_notifier_head notifier;
1: };
1:
1: struct mst_intc_chip_data {
1: - raw_spinlock_t lock;
1: - unsigned int irq_start;
1: - unsigned int nr_irqs;
1: - void *base;
1: - bool no_eoi;
1: + raw_spinlock_t lock;
1: + unsigned int irq_start;
1: + unsigned int nr_irqs;
1: + void *base;
1: + bool no_eoi;
1: };
1:
1: struct of_dev_auxdata {
1: - char *compatible;
1: - resource_size_t phys_addr;
1: - char *name;
1: - void *platform_data;
1: + char *compatible;
1: + resource_size_t phys_addr;
1: + char *name;
1: + void *platform_data;
1: };
1:
1: struct circ_buf {
1: - char *buf;
1: - int head;
1: - int tail;
1: + char *buf;
1: + int head;
1: + int tail;
1: };
1:
1: struct serial_rs485 {
1: - __u32 flags;
1: - __u32 delay_rts_before_send;
1: - __u32 delay_rts_after_send;
1: - __u32 padding[5];
1: + __u32 flags;
1: + __u32 delay_rts_before_send;
1: + __u32 delay_rts_after_send;
1: + __u32 padding[5];
1: };
1:
1: struct serial_iso7816 {
1: - __u32 flags;
1: - __u32 tg;
1: - __u32 sc_fi;
1: - __u32 sc_di;
1: - __u32 clk;
1: - __u32 reserved[5];
1: + __u32 flags;
1: + __u32 tg;
1: + __u32 sc_fi;
1: + __u32 sc_di;
1: + __u32 clk;
1: + __u32 reserved[5];
1: };
1:
1: struct uart_port;
1:
1: struct uart_ops {
1: - unsigned int (*tx_empty)(struct uart_port *);
1: - void (*set_mctrl)(struct uart_port *, unsigned int);
1: - unsigned int (*get_mctrl)(struct uart_port *);
1: - void (*stop_tx)(struct uart_port *);
1: - void (*start_tx)(struct uart_port *);
1: - void (*throttle)(struct uart_port *);
1: - void (*unthrottle)(struct uart_port *);
1: - void (*send_xchar)(struct uart_port *, char);
1: - void (*stop_rx)(struct uart_port *);
1: - void (*enable_ms)(struct uart_port *);
1: - void (*break_ctl)(struct uart_port *, int);
1: - int (*startup)(struct uart_port *);
1: - void (*shutdown)(struct uart_port *);
1: - void (*flush_buffer)(struct uart_port *);
1: - void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: - void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: - void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: - const char * (*type)(struct uart_port *);
1: - void (*release_port)(struct uart_port *);
1: - int (*request_port)(struct uart_port *);
1: - void (*config_port)(struct uart_port *, int);
1: - int (*verify_port)(struct uart_port *, struct serial_struct *);
1: - int (*ioctl)(struct uart_port *, unsigned int, long unsigned int);
1: - int (*poll_init)(struct uart_port *);
1: - void (*poll_put_char)(struct uart_port *, unsigned char);
1: - int (*poll_get_char)(struct uart_port *);
1: + unsigned int (*tx_empty)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*stop_tx)(struct uart_port *);
1: + void (*start_tx)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + void (*send_xchar)(struct uart_port *, char);
1: + void (*stop_rx)(struct uart_port *);
1: + void (*enable_ms)(struct uart_port *);
1: + void (*break_ctl)(struct uart_port *, int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*flush_buffer)(struct uart_port *);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + const char *(*type)(struct uart_port *);
1: + void (*release_port)(struct uart_port *);
1: + int (*request_port)(struct uart_port *);
1: + void (*config_port)(struct uart_port *, int);
1: + int (*verify_port)(struct uart_port *, struct serial_struct *);
1: + int (*ioctl)(struct uart_port *, unsigned int, long unsigned int);
1: + int (*poll_init)(struct uart_port *);
1: + void (*poll_put_char)(struct uart_port *, unsigned char);
1: + int (*poll_get_char)(struct uart_port *);
1: };
1:
1: struct uart_icount {
1: - __u32 cts;
1: - __u32 dsr;
1: - __u32 rng;
1: - __u32 dcd;
1: - __u32 rx;
1: - __u32 tx;
1: - __u32 frame;
1: - __u32 overrun;
1: - __u32 parity;
1: - __u32 brk;
1: - __u32 buf_overrun;
1: + __u32 cts;
1: + __u32 dsr;
1: + __u32 rng;
1: + __u32 dcd;
1: + __u32 rx;
1: + __u32 tx;
1: + __u32 frame;
1: + __u32 overrun;
1: + __u32 parity;
1: + __u32 brk;
1: + __u32 buf_overrun;
1: };
1:
1: typedef unsigned int upf_t;
1: @@ -59854,154 +60748,155 @@ typedef unsigned int upstat_t;
1: struct uart_state;
1:
1: struct uart_port {
1: - spinlock_t lock;
1: - long unsigned int iobase;
1: - unsigned char *membase;
1: - unsigned int (*serial_in)(struct uart_port *, int);
1: - void (*serial_out)(struct uart_port *, int, int);
1: - void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: - void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: - unsigned int (*get_mctrl)(struct uart_port *);
1: - void (*set_mctrl)(struct uart_port *, unsigned int);
1: - unsigned int (*get_divisor)(struct uart_port *, unsigned int, unsigned int *);
1: - void (*set_divisor)(struct uart_port *, unsigned int, unsigned int, unsigned int);
1: - int (*startup)(struct uart_port *);
1: - void (*shutdown)(struct uart_port *);
1: - void (*throttle)(struct uart_port *);
1: - void (*unthrottle)(struct uart_port *);
1: - int (*handle_irq)(struct uart_port *);
1: - void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: - void (*handle_break)(struct uart_port *);
1: - int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: - int (*iso7816_config)(struct uart_port *, struct serial_iso7816 *);
1: - unsigned int irq;
1: - long unsigned int irqflags;
1: - unsigned int uartclk;
1: - unsigned int fifosize;
1: - unsigned char x_char;
1: - unsigned char regshift;
1: - unsigned char iotype;
1: - unsigned char quirks;
1: - unsigned int read_status_mask;
1: - unsigned int ignore_status_mask;
1: - struct uart_state *state;
1: - struct uart_icount icount;
1: - struct console *cons;
1: - upf_t flags;
1: - upstat_t status;
1: - int hw_stopped;
1: - unsigned int mctrl;
1: - unsigned int timeout;
1: - unsigned int type;
1: - const struct uart_ops *ops;
1: - unsigned int custom_divisor;
1: - unsigned int line;
1: - unsigned int minor;
1: - resource_size_t mapbase;
1: - resource_size_t mapsize;
1: - struct device *dev;
1: - long unsigned int sysrq;
1: - unsigned int sysrq_ch;
1: - unsigned char has_sysrq;
1: - unsigned char sysrq_seq;
1: - unsigned char hub6;
1: - unsigned char suspended;
1: - unsigned char console_reinit;
1: - const char *name;
1: - struct attribute_group *attr_group;
1: - const struct attribute_group **tty_groups;
1: - struct serial_rs485 rs485;
1: - struct gpio_desc *rs485_term_gpio;
1: - struct serial_iso7816 iso7816;
1: - void *private_data;
1: + spinlock_t lock;
1: + long unsigned int iobase;
1: + unsigned char *membase;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_divisor)(struct uart_port *, unsigned int, unsigned int *);
1: + void (*set_divisor)(struct uart_port *, unsigned int, unsigned int,
1: + unsigned int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: + int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: + int (*iso7816_config)(struct uart_port *, struct serial_iso7816 *);
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + unsigned int fifosize;
1: + unsigned char x_char;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char quirks;
1: + unsigned int read_status_mask;
1: + unsigned int ignore_status_mask;
1: + struct uart_state *state;
1: + struct uart_icount icount;
1: + struct console *cons;
1: + upf_t flags;
1: + upstat_t status;
1: + int hw_stopped;
1: + unsigned int mctrl;
1: + unsigned int timeout;
1: + unsigned int type;
1: + const struct uart_ops *ops;
1: + unsigned int custom_divisor;
1: + unsigned int line;
1: + unsigned int minor;
1: + resource_size_t mapbase;
1: + resource_size_t mapsize;
1: + struct device *dev;
1: + long unsigned int sysrq;
1: + unsigned int sysrq_ch;
1: + unsigned char has_sysrq;
1: + unsigned char sysrq_seq;
1: + unsigned char hub6;
1: + unsigned char suspended;
1: + unsigned char console_reinit;
1: + const char *name;
1: + struct attribute_group *attr_group;
1: + const struct attribute_group **tty_groups;
1: + struct serial_rs485 rs485;
1: + struct gpio_desc *rs485_term_gpio;
1: + struct serial_iso7816 iso7816;
1: + void *private_data;
1: };
1:
1: enum uart_pm_state {
1: - UART_PM_STATE_ON = 0,
1: - UART_PM_STATE_OFF = 3,
1: - UART_PM_STATE_UNDEFINED = 4,
1: + UART_PM_STATE_ON = 0,
1: + UART_PM_STATE_OFF = 3,
1: + UART_PM_STATE_UNDEFINED = 4,
1: };
1:
1: struct uart_state {
1: - struct tty_port port;
1: - enum uart_pm_state pm_state;
1: - struct circ_buf xmit;
1: - atomic_t refcount;
1: - wait_queue_head_t remove_wait;
1: - struct uart_port *uart_port;
1: + struct tty_port port;
1: + enum uart_pm_state pm_state;
1: + struct circ_buf xmit;
1: + atomic_t refcount;
1: + wait_queue_head_t remove_wait;
1: + struct uart_port *uart_port;
1: };
1:
1: struct plat_serial8250_port {
1: - long unsigned int iobase;
1: - void *membase;
1: - resource_size_t mapbase;
1: - unsigned int irq;
1: - long unsigned int irqflags;
1: - unsigned int uartclk;
1: - void *private_data;
1: - unsigned char regshift;
1: - unsigned char iotype;
1: - unsigned char hub6;
1: - unsigned char has_sysrq;
1: - upf_t flags;
1: - unsigned int type;
1: - unsigned int (*serial_in)(struct uart_port *, int);
1: - void (*serial_out)(struct uart_port *, int, int);
1: - void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: - void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: - unsigned int (*get_mctrl)(struct uart_port *);
1: - int (*handle_irq)(struct uart_port *);
1: - void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: - void (*handle_break)(struct uart_port *);
1: + long unsigned int iobase;
1: + void *membase;
1: + resource_size_t mapbase;
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + void *private_data;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char hub6;
1: + unsigned char has_sysrq;
1: + upf_t flags;
1: + unsigned int type;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: };
1:
1: struct lpc_cycle_para {
1: - unsigned int opflags;
1: - unsigned int csize;
1: + unsigned int opflags;
1: + unsigned int csize;
1: };
1:
1: struct hisi_lpc_dev {
1: - spinlock_t cycle_lock;
1: - void *membase;
1: - struct logic_pio_hwaddr *io_host;
1: + spinlock_t cycle_lock;
1: + void *membase;
1: + struct logic_pio_hwaddr *io_host;
1: };
1:
1: struct hisi_lpc_acpi_cell {
1: - const char *hid;
1: - const char *name;
1: - void *pdata;
1: - size_t pdata_size;
1: + const char *hid;
1: + const char *name;
1: + void *pdata;
1: + size_t pdata_size;
1: };
1:
1: enum regcache_type {
1: - REGCACHE_NONE = 0,
1: - REGCACHE_RBTREE = 1,
1: - REGCACHE_COMPRESSED = 2,
1: - REGCACHE_FLAT = 3,
1: + REGCACHE_NONE = 0,
1: + REGCACHE_RBTREE = 1,
1: + REGCACHE_COMPRESSED = 2,
1: + REGCACHE_FLAT = 3,
1: };
1:
1: struct reg_default {
1: - unsigned int reg;
1: - unsigned int def;
1: + unsigned int reg;
1: + unsigned int def;
1: };
1:
1: enum regmap_endian {
1: - REGMAP_ENDIAN_DEFAULT = 0,
1: - REGMAP_ENDIAN_BIG = 1,
1: - REGMAP_ENDIAN_LITTLE = 2,
1: - REGMAP_ENDIAN_NATIVE = 3,
1: + REGMAP_ENDIAN_DEFAULT = 0,
1: + REGMAP_ENDIAN_BIG = 1,
1: + REGMAP_ENDIAN_LITTLE = 2,
1: + REGMAP_ENDIAN_NATIVE = 3,
1: };
1:
1: struct regmap_range {
1: - unsigned int range_min;
1: - unsigned int range_max;
1: + unsigned int range_min;
1: + unsigned int range_max;
1: };
1:
1: struct regmap_access_table {
1: - const struct regmap_range *yes_ranges;
1: - unsigned int n_yes_ranges;
1: - const struct regmap_range *no_ranges;
1: - unsigned int n_no_ranges;
1: + const struct regmap_range *yes_ranges;
1: + unsigned int n_yes_ranges;
1: + const struct regmap_range *no_ranges;
1: + unsigned int n_no_ranges;
1: };
1:
1: typedef void (*regmap_lock)(void *);
1: @@ -60011,469 +60906,469 @@ typedef void (*regmap_unlock)(void *);
1: struct regmap_range_cfg;
1:
1: struct regmap_config {
1: - const char *name;
1: - int reg_bits;
1: - int reg_stride;
1: - int pad_bits;
1: - int val_bits;
1: - bool (*writeable_reg)(struct device *, unsigned int);
1: - bool (*readable_reg)(struct device *, unsigned int);
1: - bool (*volatile_reg)(struct device *, unsigned int);
1: - bool (*precious_reg)(struct device *, unsigned int);
1: - bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: - bool (*readable_noinc_reg)(struct device *, unsigned int);
1: - bool disable_locking;
1: - regmap_lock lock;
1: - regmap_unlock unlock;
1: - void *lock_arg;
1: - int (*reg_read)(void *, unsigned int, unsigned int *);
1: - int (*reg_write)(void *, unsigned int, unsigned int);
1: - bool fast_io;
1: - unsigned int max_register;
1: - const struct regmap_access_table *wr_table;
1: - const struct regmap_access_table *rd_table;
1: - const struct regmap_access_table *volatile_table;
1: - const struct regmap_access_table *precious_table;
1: - const struct regmap_access_table *wr_noinc_table;
1: - const struct regmap_access_table *rd_noinc_table;
1: - const struct reg_default *reg_defaults;
1: - unsigned int num_reg_defaults;
1: - enum regcache_type cache_type;
1: - const void *reg_defaults_raw;
1: - unsigned int num_reg_defaults_raw;
1: - long unsigned int read_flag_mask;
1: - long unsigned int write_flag_mask;
1: - bool zero_flag_mask;
1: - bool use_single_read;
1: - bool use_single_write;
1: - bool can_multi_write;
1: - enum regmap_endian reg_format_endian;
1: - enum regmap_endian val_format_endian;
1: - const struct regmap_range_cfg *ranges;
1: - unsigned int num_ranges;
1: - bool use_hwlock;
1: - unsigned int hwlock_id;
1: - unsigned int hwlock_mode;
1: - bool can_sleep;
1: + const char *name;
1: + int reg_bits;
1: + int reg_stride;
1: + int pad_bits;
1: + int val_bits;
1: + bool (*writeable_reg)(struct device *, unsigned int);
1: + bool (*readable_reg)(struct device *, unsigned int);
1: + bool (*volatile_reg)(struct device *, unsigned int);
1: + bool (*precious_reg)(struct device *, unsigned int);
1: + bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: + bool (*readable_noinc_reg)(struct device *, unsigned int);
1: + bool disable_locking;
1: + regmap_lock lock;
1: + regmap_unlock unlock;
1: + void *lock_arg;
1: + int (*reg_read)(void *, unsigned int, unsigned int *);
1: + int (*reg_write)(void *, unsigned int, unsigned int);
1: + bool fast_io;
1: + unsigned int max_register;
1: + const struct regmap_access_table *wr_table;
1: + const struct regmap_access_table *rd_table;
1: + const struct regmap_access_table *volatile_table;
1: + const struct regmap_access_table *precious_table;
1: + const struct regmap_access_table *wr_noinc_table;
1: + const struct regmap_access_table *rd_noinc_table;
1: + const struct reg_default *reg_defaults;
1: + unsigned int num_reg_defaults;
1: + enum regcache_type cache_type;
1: + const void *reg_defaults_raw;
1: + unsigned int num_reg_defaults_raw;
1: + long unsigned int read_flag_mask;
1: + long unsigned int write_flag_mask;
1: + bool zero_flag_mask;
1: + bool use_single_read;
1: + bool use_single_write;
1: + bool can_multi_write;
1: + enum regmap_endian reg_format_endian;
1: + enum regmap_endian val_format_endian;
1: + const struct regmap_range_cfg *ranges;
1: + unsigned int num_ranges;
1: + bool use_hwlock;
1: + unsigned int hwlock_id;
1: + unsigned int hwlock_mode;
1: + bool can_sleep;
1: };
1:
1: struct regmap_range_cfg {
1: - const char *name;
1: - unsigned int range_min;
1: - unsigned int range_max;
1: - unsigned int selector_reg;
1: - unsigned int selector_mask;
1: - int selector_shift;
1: - unsigned int window_start;
1: - unsigned int window_len;
1: + const char *name;
1: + unsigned int range_min;
1: + unsigned int range_max;
1: + unsigned int selector_reg;
1: + unsigned int selector_mask;
1: + int selector_shift;
1: + unsigned int window_start;
1: + unsigned int window_len;
1: };
1:
1: struct vexpress_syscfg {
1: - struct device *dev;
1: - void *base;
1: - struct list_head funcs;
1: + struct device *dev;
1: + void *base;
1: + struct list_head funcs;
1: };
1:
1: struct vexpress_syscfg_func {
1: - struct list_head list;
1: - struct vexpress_syscfg *syscfg;
1: - struct regmap *regmap;
1: - int num_templates;
1: - u32 template[0];
1: + struct list_head list;
1: + struct vexpress_syscfg *syscfg;
1: + struct regmap *regmap;
1: + int num_templates;
1: + u32 template[0];
1: };
1:
1: struct vexpress_config_bridge_ops {
1: - struct regmap * (*regmap_init)(struct device *, void *);
1: - void (*regmap_exit)(struct regmap *, void *);
1: + struct regmap *(*regmap_init)(struct device *, void *);
1: + void (*regmap_exit)(struct regmap *, void *);
1: };
1:
1: struct vexpress_config_bridge {
1: - struct vexpress_config_bridge_ops *ops;
1: - void *context;
1: + struct vexpress_config_bridge_ops *ops;
1: + void *context;
1: };
1:
1: enum device_link_state {
1: - DL_STATE_NONE = 4294967295,
1: - DL_STATE_DORMANT = 0,
1: - DL_STATE_AVAILABLE = 1,
1: - DL_STATE_CONSUMER_PROBE = 2,
1: - DL_STATE_ACTIVE = 3,
1: - DL_STATE_SUPPLIER_UNBIND = 4,
1: + DL_STATE_NONE = 4294967295,
1: + DL_STATE_DORMANT = 0,
1: + DL_STATE_AVAILABLE = 1,
1: + DL_STATE_CONSUMER_PROBE = 2,
1: + DL_STATE_ACTIVE = 3,
1: + DL_STATE_SUPPLIER_UNBIND = 4,
1: };
1:
1: struct device_link {
1: - struct device *supplier;
1: - struct list_head s_node;
1: - struct device *consumer;
1: - struct list_head c_node;
1: - struct device link_dev;
1: - enum device_link_state status;
1: - u32 flags;
1: - refcount_t rpm_active;
1: - struct kref kref;
1: - struct callback_head callback_head;
1: - bool supplier_preactivated;
1: + struct device *supplier;
1: + struct list_head s_node;
1: + struct device *consumer;
1: + struct list_head c_node;
1: + struct device link_dev;
1: + enum device_link_state status;
1: + u32 flags;
1: + refcount_t rpm_active;
1: + struct kref kref;
1: + struct callback_head callback_head;
1: + bool supplier_preactivated;
1: };
1:
1: struct phy_configure_opts_dp {
1: - unsigned int link_rate;
1: - unsigned int lanes;
1: - unsigned int voltage[4];
1: - unsigned int pre[4];
1: - u8 ssc: 1;
1: - u8 set_rate: 1;
1: - u8 set_lanes: 1;
1: - u8 set_voltages: 1;
1: + unsigned int link_rate;
1: + unsigned int lanes;
1: + unsigned int voltage[4];
1: + unsigned int pre[4];
1: + u8 ssc : 1;
1: + u8 set_rate : 1;
1: + u8 set_lanes : 1;
1: + u8 set_voltages : 1;
1: };
1:
1: struct phy_configure_opts_mipi_dphy {
1: - unsigned int clk_miss;
1: - unsigned int clk_post;
1: - unsigned int clk_pre;
1: - unsigned int clk_prepare;
1: - unsigned int clk_settle;
1: - unsigned int clk_term_en;
1: - unsigned int clk_trail;
1: - unsigned int clk_zero;
1: - unsigned int d_term_en;
1: - unsigned int eot;
1: - unsigned int hs_exit;
1: - unsigned int hs_prepare;
1: - unsigned int hs_settle;
1: - unsigned int hs_skip;
1: - unsigned int hs_trail;
1: - unsigned int hs_zero;
1: - unsigned int init;
1: - unsigned int lpx;
1: - unsigned int ta_get;
1: - unsigned int ta_go;
1: - unsigned int ta_sure;
1: - unsigned int wakeup;
1: - long unsigned int hs_clk_rate;
1: - long unsigned int lp_clk_rate;
1: - unsigned char lanes;
1: + unsigned int clk_miss;
1: + unsigned int clk_post;
1: + unsigned int clk_pre;
1: + unsigned int clk_prepare;
1: + unsigned int clk_settle;
1: + unsigned int clk_term_en;
1: + unsigned int clk_trail;
1: + unsigned int clk_zero;
1: + unsigned int d_term_en;
1: + unsigned int eot;
1: + unsigned int hs_exit;
1: + unsigned int hs_prepare;
1: + unsigned int hs_settle;
1: + unsigned int hs_skip;
1: + unsigned int hs_trail;
1: + unsigned int hs_zero;
1: + unsigned int init;
1: + unsigned int lpx;
1: + unsigned int ta_get;
1: + unsigned int ta_go;
1: + unsigned int ta_sure;
1: + unsigned int wakeup;
1: + long unsigned int hs_clk_rate;
1: + long unsigned int lp_clk_rate;
1: + unsigned char lanes;
1: };
1:
1: enum phy_mode {
1: - PHY_MODE_INVALID = 0,
1: - PHY_MODE_USB_HOST = 1,
1: - PHY_MODE_USB_HOST_LS = 2,
1: - PHY_MODE_USB_HOST_FS = 3,
1: - PHY_MODE_USB_HOST_HS = 4,
1: - PHY_MODE_USB_HOST_SS = 5,
1: - PHY_MODE_USB_DEVICE = 6,
1: - PHY_MODE_USB_DEVICE_LS = 7,
1: - PHY_MODE_USB_DEVICE_FS = 8,
1: - PHY_MODE_USB_DEVICE_HS = 9,
1: - PHY_MODE_USB_DEVICE_SS = 10,
1: - PHY_MODE_USB_OTG = 11,
1: - PHY_MODE_UFS_HS_A = 12,
1: - PHY_MODE_UFS_HS_B = 13,
1: - PHY_MODE_PCIE = 14,
1: - PHY_MODE_ETHERNET = 15,
1: - PHY_MODE_MIPI_DPHY = 16,
1: - PHY_MODE_SATA = 17,
1: - PHY_MODE_LVDS = 18,
1: - PHY_MODE_DP = 19,
1: + PHY_MODE_INVALID = 0,
1: + PHY_MODE_USB_HOST = 1,
1: + PHY_MODE_USB_HOST_LS = 2,
1: + PHY_MODE_USB_HOST_FS = 3,
1: + PHY_MODE_USB_HOST_HS = 4,
1: + PHY_MODE_USB_HOST_SS = 5,
1: + PHY_MODE_USB_DEVICE = 6,
1: + PHY_MODE_USB_DEVICE_LS = 7,
1: + PHY_MODE_USB_DEVICE_FS = 8,
1: + PHY_MODE_USB_DEVICE_HS = 9,
1: + PHY_MODE_USB_DEVICE_SS = 10,
1: + PHY_MODE_USB_OTG = 11,
1: + PHY_MODE_UFS_HS_A = 12,
1: + PHY_MODE_UFS_HS_B = 13,
1: + PHY_MODE_PCIE = 14,
1: + PHY_MODE_ETHERNET = 15,
1: + PHY_MODE_MIPI_DPHY = 16,
1: + PHY_MODE_SATA = 17,
1: + PHY_MODE_LVDS = 18,
1: + PHY_MODE_DP = 19,
1: };
1:
1: union phy_configure_opts {
1: - struct phy_configure_opts_mipi_dphy mipi_dphy;
1: - struct phy_configure_opts_dp dp;
1: + struct phy_configure_opts_mipi_dphy mipi_dphy;
1: + struct phy_configure_opts_dp dp;
1: };
1:
1: struct phy;
1:
1: struct phy_ops {
1: - int (*init)(struct phy *);
1: - int (*exit)(struct phy *);
1: - int (*power_on)(struct phy *);
1: - int (*power_off)(struct phy *);
1: - int (*set_mode)(struct phy *, enum phy_mode, int);
1: - int (*configure)(struct phy *, union phy_configure_opts *);
1: - int (*validate)(struct phy *, enum phy_mode, int, union phy_configure_opts *);
1: - int (*reset)(struct phy *);
1: - int (*calibrate)(struct phy *);
1: - void (*release)(struct phy *);
1: - struct module *owner;
1: + int (*init)(struct phy *);
1: + int (*exit)(struct phy *);
1: + int (*power_on)(struct phy *);
1: + int (*power_off)(struct phy *);
1: + int (*set_mode)(struct phy *, enum phy_mode, int);
1: + int (*configure)(struct phy *, union phy_configure_opts *);
1: + int (*validate)(struct phy *, enum phy_mode, int, union phy_configure_opts *);
1: + int (*reset)(struct phy *);
1: + int (*calibrate)(struct phy *);
1: + void (*release)(struct phy *);
1: + struct module *owner;
1: };
1:
1: struct phy_attrs {
1: - u32 bus_width;
1: - u32 max_link_rate;
1: - enum phy_mode mode;
1: + u32 bus_width;
1: + u32 max_link_rate;
1: + enum phy_mode mode;
1: };
1:
1: struct phy {
1: - struct device dev;
1: - int id;
1: - const struct phy_ops *ops;
1: - struct mutex mutex;
1: - int init_count;
1: - int power_count;
1: - struct phy_attrs attrs;
1: - struct regulator *pwr;
1: + struct device dev;
1: + int id;
1: + const struct phy_ops *ops;
1: + struct mutex mutex;
1: + int init_count;
1: + int power_count;
1: + struct phy_attrs attrs;
1: + struct regulator *pwr;
1: };
1:
1: struct phy_provider {
1: - struct device *dev;
1: - struct device_node *children;
1: - struct module *owner;
1: - struct list_head list;
1: - struct phy * (*of_xlate)(struct device *, struct of_phandle_args *);
1: + struct device *dev;
1: + struct device_node *children;
1: + struct module *owner;
1: + struct list_head list;
1: + struct phy *(*of_xlate)(struct device *, struct of_phandle_args *);
1: };
1:
1: struct phy_lookup {
1: - struct list_head node;
1: - const char *dev_id;
1: - const char *con_id;
1: - struct phy *phy;
1: + struct list_head node;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct phy *phy;
1: };
1:
1: enum usb_dr_mode {
1: - USB_DR_MODE_UNKNOWN = 0,
1: - USB_DR_MODE_HOST = 1,
1: - USB_DR_MODE_PERIPHERAL = 2,
1: - USB_DR_MODE_OTG = 3,
1: + USB_DR_MODE_UNKNOWN = 0,
1: + USB_DR_MODE_HOST = 1,
1: + USB_DR_MODE_PERIPHERAL = 2,
1: + USB_DR_MODE_OTG = 3,
1: };
1:
1: struct phy_meson8b_usb2_match_data {
1: - bool host_enable_aca;
1: + bool host_enable_aca;
1: };
1:
1: struct reset_control;
1:
1: struct phy_meson8b_usb2_priv {
1: - struct regmap *regmap;
1: - enum usb_dr_mode dr_mode;
1: - struct clk *clk_usb_general;
1: - struct clk *clk_usb;
1: - struct reset_control *reset;
1: - const struct phy_meson8b_usb2_match_data *match;
1: + struct regmap *regmap;
1: + enum usb_dr_mode dr_mode;
1: + struct clk *clk_usb_general;
1: + struct clk *clk_usb;
1: + struct reset_control *reset;
1: + const struct phy_meson8b_usb2_match_data *match;
1: };
1:
1: struct phy_meson_gxl_usb2_priv {
1: - struct regmap *regmap;
1: - enum phy_mode mode;
1: - int is_enabled;
1: - struct clk *clk;
1: - struct reset_control *reset;
1: + struct regmap *regmap;
1: + enum phy_mode mode;
1: + int is_enabled;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: };
1:
1: enum meson_soc_id {
1: - MESON_SOC_G12A = 0,
1: - MESON_SOC_A1 = 1,
1: + MESON_SOC_G12A = 0,
1: + MESON_SOC_A1 = 1,
1: };
1:
1: struct phy_meson_g12a_usb2_priv {
1: - struct device *dev;
1: - struct regmap *regmap;
1: - struct clk *clk;
1: - struct reset_control *reset;
1: - int soc_id;
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: + int soc_id;
1: };
1:
1: struct phy_g12a_usb3_pcie_priv {
1: - struct regmap *regmap;
1: - struct regmap *regmap_cr;
1: - struct clk *clk_ref;
1: - struct reset_control *reset;
1: - struct phy *phy;
1: - unsigned int mode;
1: + struct regmap *regmap;
1: + struct regmap *regmap_cr;
1: + struct clk *clk_ref;
1: + struct reset_control *reset;
1: + struct phy *phy;
1: + unsigned int mode;
1: };
1:
1: struct phy_axg_pcie_priv {
1: - struct phy *phy;
1: - struct phy *analog;
1: - struct regmap *regmap;
1: - struct reset_control *reset;
1: + struct phy *phy;
1: + struct phy *analog;
1: + struct regmap *regmap;
1: + struct reset_control *reset;
1: };
1:
1: struct phy_axg_mipi_pcie_analog_priv {
1: - struct phy *phy;
1: - unsigned int mode;
1: - struct regmap *regmap;
1: + struct phy *phy;
1: + unsigned int mode;
1: + struct regmap *regmap;
1: };
1:
1: enum ethtool_link_mode_bit_indices {
1: - ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0,
1: - ETHTOOL_LINK_MODE_10baseT_Full_BIT = 1,
1: - ETHTOOL_LINK_MODE_100baseT_Half_BIT = 2,
1: - ETHTOOL_LINK_MODE_100baseT_Full_BIT = 3,
1: - ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 4,
1: - ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 5,
1: - ETHTOOL_LINK_MODE_Autoneg_BIT = 6,
1: - ETHTOOL_LINK_MODE_TP_BIT = 7,
1: - ETHTOOL_LINK_MODE_AUI_BIT = 8,
1: - ETHTOOL_LINK_MODE_MII_BIT = 9,
1: - ETHTOOL_LINK_MODE_FIBRE_BIT = 10,
1: - ETHTOOL_LINK_MODE_BNC_BIT = 11,
1: - ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 12,
1: - ETHTOOL_LINK_MODE_Pause_BIT = 13,
1: - ETHTOOL_LINK_MODE_Asym_Pause_BIT = 14,
1: - ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 15,
1: - ETHTOOL_LINK_MODE_Backplane_BIT = 16,
1: - ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 17,
1: - ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 18,
1: - ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 19,
1: - ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 20,
1: - ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 21,
1: - ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 22,
1: - ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 23,
1: - ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 24,
1: - ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 25,
1: - ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 26,
1: - ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 27,
1: - ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 28,
1: - ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 29,
1: - ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 30,
1: - ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 31,
1: - ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 32,
1: - ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 33,
1: - ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 34,
1: - ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 35,
1: - ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 36,
1: - ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 37,
1: - ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 38,
1: - ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 39,
1: - ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 40,
1: - ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 41,
1: - ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 42,
1: - ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 43,
1: - ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 44,
1: - ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 45,
1: - ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 46,
1: - ETHTOOL_LINK_MODE_2500baseT_Full_BIT = 47,
1: - ETHTOOL_LINK_MODE_5000baseT_Full_BIT = 48,
1: - ETHTOOL_LINK_MODE_FEC_NONE_BIT = 49,
1: - ETHTOOL_LINK_MODE_FEC_RS_BIT = 50,
1: - ETHTOOL_LINK_MODE_FEC_BASER_BIT = 51,
1: - ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 52,
1: - ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 53,
1: - ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 54,
1: - ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 55,
1: - ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 56,
1: - ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 57,
1: - ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 58,
1: - ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 59,
1: - ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 60,
1: - ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 61,
1: - ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 62,
1: - ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 63,
1: - ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64,
1: - ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 65,
1: - ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 66,
1: - ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 67,
1: - ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 68,
1: - ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT = 69,
1: - ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT = 70,
1: - ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT = 71,
1: - ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT = 72,
1: - ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT = 73,
1: - ETHTOOL_LINK_MODE_FEC_LLRS_BIT = 74,
1: - ETHTOOL_LINK_MODE_100000baseKR_Full_BIT = 75,
1: - ETHTOOL_LINK_MODE_100000baseSR_Full_BIT = 76,
1: - ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT = 77,
1: - ETHTOOL_LINK_MODE_100000baseCR_Full_BIT = 78,
1: - ETHTOOL_LINK_MODE_100000baseDR_Full_BIT = 79,
1: - ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT = 80,
1: - ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT = 81,
1: - ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 82,
1: - ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT = 83,
1: - ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT = 84,
1: - ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT = 85,
1: - ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT = 86,
1: - ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 87,
1: - ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT = 88,
1: - ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 89,
1: - ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 90,
1: - ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 91,
1: - __ETHTOOL_LINK_MODE_MASK_NBITS = 92,
1: + ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0,
1: + ETHTOOL_LINK_MODE_10baseT_Full_BIT = 1,
1: + ETHTOOL_LINK_MODE_100baseT_Half_BIT = 2,
1: + ETHTOOL_LINK_MODE_100baseT_Full_BIT = 3,
1: + ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 4,
1: + ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 5,
1: + ETHTOOL_LINK_MODE_Autoneg_BIT = 6,
1: + ETHTOOL_LINK_MODE_TP_BIT = 7,
1: + ETHTOOL_LINK_MODE_AUI_BIT = 8,
1: + ETHTOOL_LINK_MODE_MII_BIT = 9,
1: + ETHTOOL_LINK_MODE_FIBRE_BIT = 10,
1: + ETHTOOL_LINK_MODE_BNC_BIT = 11,
1: + ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 12,
1: + ETHTOOL_LINK_MODE_Pause_BIT = 13,
1: + ETHTOOL_LINK_MODE_Asym_Pause_BIT = 14,
1: + ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 15,
1: + ETHTOOL_LINK_MODE_Backplane_BIT = 16,
1: + ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 17,
1: + ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 18,
1: + ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 19,
1: + ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 20,
1: + ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 21,
1: + ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 22,
1: + ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 23,
1: + ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 24,
1: + ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 25,
1: + ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 26,
1: + ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 27,
1: + ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 28,
1: + ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 29,
1: + ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 30,
1: + ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 31,
1: + ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 32,
1: + ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 33,
1: + ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 34,
1: + ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 35,
1: + ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 36,
1: + ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 37,
1: + ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 38,
1: + ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 39,
1: + ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 40,
1: + ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 41,
1: + ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 42,
1: + ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 43,
1: + ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 44,
1: + ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 45,
1: + ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 46,
1: + ETHTOOL_LINK_MODE_2500baseT_Full_BIT = 47,
1: + ETHTOOL_LINK_MODE_5000baseT_Full_BIT = 48,
1: + ETHTOOL_LINK_MODE_FEC_NONE_BIT = 49,
1: + ETHTOOL_LINK_MODE_FEC_RS_BIT = 50,
1: + ETHTOOL_LINK_MODE_FEC_BASER_BIT = 51,
1: + ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 52,
1: + ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 53,
1: + ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 54,
1: + ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 55,
1: + ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 56,
1: + ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 57,
1: + ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 58,
1: + ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 59,
1: + ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 60,
1: + ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 61,
1: + ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 62,
1: + ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 63,
1: + ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64,
1: + ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 65,
1: + ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 66,
1: + ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 67,
1: + ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 68,
1: + ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT = 69,
1: + ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT = 70,
1: + ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT = 71,
1: + ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT = 72,
1: + ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT = 73,
1: + ETHTOOL_LINK_MODE_FEC_LLRS_BIT = 74,
1: + ETHTOOL_LINK_MODE_100000baseKR_Full_BIT = 75,
1: + ETHTOOL_LINK_MODE_100000baseSR_Full_BIT = 76,
1: + ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT = 77,
1: + ETHTOOL_LINK_MODE_100000baseCR_Full_BIT = 78,
1: + ETHTOOL_LINK_MODE_100000baseDR_Full_BIT = 79,
1: + ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT = 80,
1: + ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT = 81,
1: + ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 82,
1: + ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT = 83,
1: + ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT = 84,
1: + ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT = 85,
1: + ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT = 86,
1: + ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 87,
1: + ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT = 88,
1: + ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 89,
1: + ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 90,
1: + ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 91,
1: + __ETHTOOL_LINK_MODE_MASK_NBITS = 92,
1: };
1:
1: struct mvebu_a3700_comphy_conf {
1: - unsigned int lane;
1: - enum phy_mode mode;
1: - int submode;
1: - unsigned int port;
1: - u32 fw_mode;
1: + unsigned int lane;
1: + enum phy_mode mode;
1: + int submode;
1: + unsigned int port;
1: + u32 fw_mode;
1: };
1:
1: struct mvebu_a3700_comphy_lane {
1: - struct device *dev;
1: - unsigned int id;
1: - enum phy_mode mode;
1: - int submode;
1: - int port;
1: + struct device *dev;
1: + unsigned int id;
1: + enum phy_mode mode;
1: + int submode;
1: + int port;
1: };
1:
1: struct mvebu_a3700_utmi_caps {
1: - int usb32;
1: - const struct phy_ops *ops;
1: + int usb32;
1: + const struct phy_ops *ops;
1: };
1:
1: struct mvebu_a3700_utmi {
1: - void *regs;
1: - struct regmap *usb_misc;
1: - const struct mvebu_a3700_utmi_caps *caps;
1: - struct phy *phy;
1: + void *regs;
1: + struct regmap *usb_misc;
1: + const struct mvebu_a3700_utmi_caps *caps;
1: + struct phy *phy;
1: };
1:
1: struct exynos_dp_video_phy_drvdata {
1: - u32 phy_ctrl_offset;
1: + u32 phy_ctrl_offset;
1: };
1:
1: struct exynos_dp_video_phy {
1: - struct regmap *regs;
1: - const struct exynos_dp_video_phy_drvdata *drvdata;
1: + struct regmap *regs;
1: + const struct exynos_dp_video_phy_drvdata *drvdata;
1: };
1:
1: enum exynos_mipi_phy_id {
1: - EXYNOS_MIPI_PHY_ID_NONE = 4294967295,
1: - EXYNOS_MIPI_PHY_ID_CSIS0 = 0,
1: - EXYNOS_MIPI_PHY_ID_DSIM0 = 1,
1: - EXYNOS_MIPI_PHY_ID_CSIS1 = 2,
1: - EXYNOS_MIPI_PHY_ID_DSIM1 = 3,
1: - EXYNOS_MIPI_PHY_ID_CSIS2 = 4,
1: - EXYNOS_MIPI_PHYS_NUM = 5,
1: + EXYNOS_MIPI_PHY_ID_NONE = 4294967295,
1: + EXYNOS_MIPI_PHY_ID_CSIS0 = 0,
1: + EXYNOS_MIPI_PHY_ID_DSIM0 = 1,
1: + EXYNOS_MIPI_PHY_ID_CSIS1 = 2,
1: + EXYNOS_MIPI_PHY_ID_DSIM1 = 3,
1: + EXYNOS_MIPI_PHY_ID_CSIS2 = 4,
1: + EXYNOS_MIPI_PHYS_NUM = 5,
1: };
1:
1: enum exynos_mipi_phy_regmap_id {
1: - EXYNOS_MIPI_REGMAP_PMU = 0,
1: - EXYNOS_MIPI_REGMAP_DISP = 1,
1: - EXYNOS_MIPI_REGMAP_CAM0 = 2,
1: - EXYNOS_MIPI_REGMAP_CAM1 = 3,
1: - EXYNOS_MIPI_REGMAPS_NUM = 4,
1: + EXYNOS_MIPI_REGMAP_PMU = 0,
1: + EXYNOS_MIPI_REGMAP_DISP = 1,
1: + EXYNOS_MIPI_REGMAP_CAM0 = 2,
1: + EXYNOS_MIPI_REGMAP_CAM1 = 3,
1: + EXYNOS_MIPI_REGMAPS_NUM = 4,
1: };
1:
1: struct exynos_mipi_phy_desc {
1: - enum exynos_mipi_phy_id coupled_phy_id;
1: - u32 enable_val;
1: - unsigned int enable_reg;
1: - enum exynos_mipi_phy_regmap_id enable_map;
1: - u32 resetn_val;
1: - unsigned int resetn_reg;
1: - enum exynos_mipi_phy_regmap_id resetn_map;
1: + enum exynos_mipi_phy_id coupled_phy_id;
1: + u32 enable_val;
1: + unsigned int enable_reg;
1: + enum exynos_mipi_phy_regmap_id enable_map;
1: + u32 resetn_val;
1: + unsigned int resetn_reg;
1: + enum exynos_mipi_phy_regmap_id resetn_map;
1: };
1:
1: struct mipi_phy_device_desc {
1: - int num_phys;
1: - int num_regmaps;
1: - const char *regmap_names[4];
1: - struct exynos_mipi_phy_desc phys[5];
1: + int num_phys;
1: + int num_regmaps;
1: + const char *regmap_names[4];
1: + struct exynos_mipi_phy_desc phys[5];
1: };
1:
1: struct video_phy_desc {
1: - struct phy *phy;
1: - unsigned int index;
1: - const struct exynos_mipi_phy_desc *data;
1: + struct phy *phy;
1: + unsigned int index;
1: + const struct exynos_mipi_phy_desc *data;
1: };
1:
1: struct exynos_mipi_video_phy {
1: - struct regmap *regmaps[4];
1: - int num_phys;
1: - struct video_phy_desc phys[5];
1: - spinlock_t slock;
1: + struct regmap *regmaps[4];
1: + int num_phys;
1: + struct video_phy_desc phys[5];
1: + spinlock_t slock;
1: };
1:
1: struct pinctrl;
1: @@ -60481,152 +61376,159 @@ struct pinctrl;
1: struct pinctrl_state;
1:
1: struct dev_pin_info {
1: - struct pinctrl *p;
1: - struct pinctrl_state *default_state;
1: - struct pinctrl_state *init_state;
1: - struct pinctrl_state *sleep_state;
1: - struct pinctrl_state *idle_state;
1: + struct pinctrl *p;
1: + struct pinctrl_state *default_state;
1: + struct pinctrl_state *init_state;
1: + struct pinctrl_state *sleep_state;
1: + struct pinctrl_state *idle_state;
1: };
1:
1: struct pinctrl {
1: - struct list_head node;
1: - struct device *dev;
1: - struct list_head states;
1: - struct pinctrl_state *state;
1: - struct list_head dt_maps;
1: - struct kref users;
1: + struct list_head node;
1: + struct device *dev;
1: + struct list_head states;
1: + struct pinctrl_state *state;
1: + struct list_head dt_maps;
1: + struct kref users;
1: };
1:
1: struct pinctrl_state {
1: - struct list_head node;
1: - const char *name;
1: - struct list_head settings;
1: + struct list_head node;
1: + const char *name;
1: + struct list_head settings;
1: };
1:
1: struct pinctrl_pin_desc {
1: - unsigned int number;
1: - const char *name;
1: - void *drv_data;
1: + unsigned int number;
1: + const char *name;
1: + void *drv_data;
1: };
1:
1: struct gpio_chip;
1:
1: struct pinctrl_gpio_range {
1: - struct list_head node;
1: - const char *name;
1: - unsigned int id;
1: - unsigned int base;
1: - unsigned int pin_base;
1: - const unsigned int *pins;
1: - unsigned int npins;
1: - struct gpio_chip *gc;
1: + struct list_head node;
1: + const char *name;
1: + unsigned int id;
1: + unsigned int base;
1: + unsigned int pin_base;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: + struct gpio_chip *gc;
1: };
1:
1: struct gpio_irq_chip {
1: - struct irq_chip *chip;
1: - struct irq_domain *domain;
1: - const struct irq_domain_ops *domain_ops;
1: - struct fwnode_handle *fwnode;
1: - struct irq_domain *parent_domain;
1: - int (*child_to_parent_hwirq)(struct gpio_chip *, unsigned int, unsigned int, unsigned int *, unsigned int *);
1: - void * (*populate_parent_alloc_arg)(struct gpio_chip *, unsigned int, unsigned int);
1: - unsigned int (*child_offset_to_irq)(struct gpio_chip *, unsigned int);
1: - struct irq_domain_ops child_irq_domain_ops;
1: - irq_flow_handler_t handler;
1: - unsigned int default_type;
1: - struct lock_class_key *lock_key;
1: - struct lock_class_key *request_key;
1: - irq_flow_handler_t parent_handler;
1: - void *parent_handler_data;
1: - unsigned int num_parents;
1: - unsigned int *parents;
1: - unsigned int *map;
1: - bool threaded;
1: - int (*init_hw)(struct gpio_chip *);
1: - void (*init_valid_mask)(struct gpio_chip *, long unsigned int *, unsigned int);
1: - long unsigned int *valid_mask;
1: - unsigned int first;
1: - void (*irq_enable)(struct irq_data *);
1: - void (*irq_disable)(struct irq_data *);
1: - void (*irq_unmask)(struct irq_data *);
1: - void (*irq_mask)(struct irq_data *);
1: + struct irq_chip *chip;
1: + struct irq_domain *domain;
1: + const struct irq_domain_ops *domain_ops;
1: + struct fwnode_handle *fwnode;
1: + struct irq_domain *parent_domain;
1: + int (*child_to_parent_hwirq)(struct gpio_chip *, unsigned int, unsigned int,
1: + unsigned int *, unsigned int *);
1: + void *(*populate_parent_alloc_arg)(struct gpio_chip *, unsigned int,
1: + unsigned int);
1: + unsigned int (*child_offset_to_irq)(struct gpio_chip *, unsigned int);
1: + struct irq_domain_ops child_irq_domain_ops;
1: + irq_flow_handler_t handler;
1: + unsigned int default_type;
1: + struct lock_class_key *lock_key;
1: + struct lock_class_key *request_key;
1: + irq_flow_handler_t parent_handler;
1: + void *parent_handler_data;
1: + unsigned int num_parents;
1: + unsigned int *parents;
1: + unsigned int *map;
1: + bool threaded;
1: + int (*init_hw)(struct gpio_chip *);
1: + void (*init_valid_mask)(struct gpio_chip *, long unsigned int *,
1: + unsigned int);
1: + long unsigned int *valid_mask;
1: + unsigned int first;
1: + void (*irq_enable)(struct irq_data *);
1: + void (*irq_disable)(struct irq_data *);
1: + void (*irq_unmask)(struct irq_data *);
1: + void (*irq_mask)(struct irq_data *);
1: };
1:
1: struct gpio_device;
1:
1: struct gpio_chip {
1: - const char *label;
1: - struct gpio_device *gpiodev;
1: - struct device *parent;
1: - struct module *owner;
1: - int (*request)(struct gpio_chip *, unsigned int);
1: - void (*free)(struct gpio_chip *, unsigned int);
1: - int (*get_direction)(struct gpio_chip *, unsigned int);
1: - int (*direction_input)(struct gpio_chip *, unsigned int);
1: - int (*direction_output)(struct gpio_chip *, unsigned int, int);
1: - int (*get)(struct gpio_chip *, unsigned int);
1: - int (*get_multiple)(struct gpio_chip *, long unsigned int *, long unsigned int *);
1: - void (*set)(struct gpio_chip *, unsigned int, int);
1: - void (*set_multiple)(struct gpio_chip *, long unsigned int *, long unsigned int *);
1: - int (*set_config)(struct gpio_chip *, unsigned int, long unsigned int);
1: - int (*to_irq)(struct gpio_chip *, unsigned int);
1: - void (*dbg_show)(struct seq_file *, struct gpio_chip *);
1: - int (*init_valid_mask)(struct gpio_chip *, long unsigned int *, unsigned int);
1: - int (*add_pin_ranges)(struct gpio_chip *);
1: - int base;
1: - u16 ngpio;
1: - const char * const *names;
1: - bool can_sleep;
1: - long unsigned int (*read_reg)(void *);
1: - void (*write_reg)(void *, long unsigned int);
1: - bool be_bits;
1: - void *reg_dat;
1: - void *reg_set;
1: - void *reg_clr;
1: - void *reg_dir_out;
1: - void *reg_dir_in;
1: - bool bgpio_dir_unreadable;
1: - int bgpio_bits;
1: - spinlock_t bgpio_lock;
1: - long unsigned int bgpio_data;
1: - long unsigned int bgpio_dir;
1: - struct gpio_irq_chip irq;
1: - long unsigned int *valid_mask;
1: - struct device_node *of_node;
1: - unsigned int of_gpio_n_cells;
1: - int (*of_xlate)(struct gpio_chip *, const struct of_phandle_args *, u32 *);
1: + const char *label;
1: + struct gpio_device *gpiodev;
1: + struct device *parent;
1: + struct module *owner;
1: + int (*request)(struct gpio_chip *, unsigned int);
1: + void (*free)(struct gpio_chip *, unsigned int);
1: + int (*get_direction)(struct gpio_chip *, unsigned int);
1: + int (*direction_input)(struct gpio_chip *, unsigned int);
1: + int (*direction_output)(struct gpio_chip *, unsigned int, int);
1: + int (*get)(struct gpio_chip *, unsigned int);
1: + int (*get_multiple)(struct gpio_chip *, long unsigned int *,
1: + long unsigned int *);
1: + void (*set)(struct gpio_chip *, unsigned int, int);
1: + void (*set_multiple)(struct gpio_chip *, long unsigned int *,
1: + long unsigned int *);
1: + int (*set_config)(struct gpio_chip *, unsigned int, long unsigned int);
1: + int (*to_irq)(struct gpio_chip *, unsigned int);
1: + void (*dbg_show)(struct seq_file *, struct gpio_chip *);
1: + int (*init_valid_mask)(struct gpio_chip *, long unsigned int *, unsigned int);
1: + int (*add_pin_ranges)(struct gpio_chip *);
1: + int base;
1: + u16 ngpio;
1: + const char *const *names;
1: + bool can_sleep;
1: + long unsigned int (*read_reg)(void *);
1: + void (*write_reg)(void *, long unsigned int);
1: + bool be_bits;
1: + void *reg_dat;
1: + void *reg_set;
1: + void *reg_clr;
1: + void *reg_dir_out;
1: + void *reg_dir_in;
1: + bool bgpio_dir_unreadable;
1: + int bgpio_bits;
1: + spinlock_t bgpio_lock;
1: + long unsigned int bgpio_data;
1: + long unsigned int bgpio_dir;
1: + struct gpio_irq_chip irq;
1: + long unsigned int *valid_mask;
1: + struct device_node *of_node;
1: + unsigned int of_gpio_n_cells;
1: + int (*of_xlate)(struct gpio_chip *, const struct of_phandle_args *, u32 *);
1: };
1:
1: struct pinctrl_dev;
1:
1: struct pinctrl_ops {
1: - int (*get_groups_count)(struct pinctrl_dev *);
1: - const char * (*get_group_name)(struct pinctrl_dev *, unsigned int);
1: - int (*get_group_pins)(struct pinctrl_dev *, unsigned int, const unsigned int **, unsigned int *);
1: - void (*pin_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: - int (*dt_node_to_map)(struct pinctrl_dev *, struct device_node *, struct pinctrl_map **, unsigned int *);
1: - void (*dt_free_map)(struct pinctrl_dev *, struct pinctrl_map *, unsigned int);
1: + int (*get_groups_count)(struct pinctrl_dev *);
1: + const char *(*get_group_name)(struct pinctrl_dev *, unsigned int);
1: + int (*get_group_pins)(struct pinctrl_dev *, unsigned int,
1: + const unsigned int **, unsigned int *);
1: + void (*pin_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: + int (*dt_node_to_map)(struct pinctrl_dev *, struct device_node *,
1: + struct pinctrl_map **, unsigned int *);
1: + void (*dt_free_map)(struct pinctrl_dev *, struct pinctrl_map *, unsigned int);
1: };
1:
1: struct pinctrl_desc;
1:
1: struct pinctrl_dev {
1: - struct list_head node;
1: - struct pinctrl_desc *desc;
1: - struct xarray pin_desc_tree;
1: - struct xarray pin_group_tree;
1: - unsigned int num_groups;
1: - struct xarray pin_function_tree;
1: - unsigned int num_functions;
1: - struct list_head gpio_ranges;
1: - struct device *dev;
1: - struct module *owner;
1: - void *driver_data;
1: - struct pinctrl *p;
1: - struct pinctrl_state *hog_default;
1: - struct pinctrl_state *hog_sleep;
1: - struct mutex mutex;
1: - struct dentry *device_root;
1: + struct list_head node;
1: + struct pinctrl_desc *desc;
1: + struct xarray pin_desc_tree;
1: + struct xarray pin_group_tree;
1: + unsigned int num_groups;
1: + struct xarray pin_function_tree;
1: + unsigned int num_functions;
1: + struct list_head gpio_ranges;
1: + struct device *dev;
1: + struct module *owner;
1: + void *driver_data;
1: + struct pinctrl *p;
1: + struct pinctrl_state *hog_default;
1: + struct pinctrl_state *hog_sleep;
1: + struct mutex mutex;
1: + struct dentry *device_root;
1: };
1:
1: struct pinmux_ops;
1: @@ -60638,354 +61540,365 @@ struct pinconf_generic_params;
1: struct pin_config_item;
1:
1: struct pinctrl_desc {
1: - const char *name;
1: - const struct pinctrl_pin_desc *pins;
1: - unsigned int npins;
1: - const struct pinctrl_ops *pctlops;
1: - const struct pinmux_ops *pmxops;
1: - const struct pinconf_ops *confops;
1: - struct module *owner;
1: - unsigned int num_custom_params;
1: - const struct pinconf_generic_params *custom_params;
1: - const struct pin_config_item *custom_conf_items;
1: - bool link_consumers;
1: + const char *name;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + const struct pinctrl_ops *pctlops;
1: + const struct pinmux_ops *pmxops;
1: + const struct pinconf_ops *confops;
1: + struct module *owner;
1: + unsigned int num_custom_params;
1: + const struct pinconf_generic_params *custom_params;
1: + const struct pin_config_item *custom_conf_items;
1: + bool link_consumers;
1: };
1:
1: struct pinmux_ops {
1: - int (*request)(struct pinctrl_dev *, unsigned int);
1: - int (*free)(struct pinctrl_dev *, unsigned int);
1: - int (*get_functions_count)(struct pinctrl_dev *);
1: - const char * (*get_function_name)(struct pinctrl_dev *, unsigned int);
1: - int (*get_function_groups)(struct pinctrl_dev *, unsigned int, const char * const **, unsigned int *);
1: - int (*set_mux)(struct pinctrl_dev *, unsigned int, unsigned int);
1: - int (*gpio_request_enable)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int);
1: - void (*gpio_disable_free)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int);
1: - int (*gpio_set_direction)(struct pinctrl_dev *, struct pinctrl_gpio_range *, unsigned int, bool);
1: - bool strict;
1: + int (*request)(struct pinctrl_dev *, unsigned int);
1: + int (*free)(struct pinctrl_dev *, unsigned int);
1: + int (*get_functions_count)(struct pinctrl_dev *);
1: + const char *(*get_function_name)(struct pinctrl_dev *, unsigned int);
1: + int (*get_function_groups)(struct pinctrl_dev *, unsigned int,
1: + const char *const **, unsigned int *);
1: + int (*set_mux)(struct pinctrl_dev *, unsigned int, unsigned int);
1: + int (*gpio_request_enable)(struct pinctrl_dev *, struct pinctrl_gpio_range *,
1: + unsigned int);
1: + void (*gpio_disable_free)(struct pinctrl_dev *, struct pinctrl_gpio_range *,
1: + unsigned int);
1: + int (*gpio_set_direction)(struct pinctrl_dev *, struct pinctrl_gpio_range *,
1: + unsigned int, bool);
1: + bool strict;
1: };
1:
1: struct pinconf_ops {
1: - bool is_generic;
1: - int (*pin_config_get)(struct pinctrl_dev *, unsigned int, long unsigned int *);
1: - int (*pin_config_set)(struct pinctrl_dev *, unsigned int, long unsigned int *, unsigned int);
1: - int (*pin_config_group_get)(struct pinctrl_dev *, unsigned int, long unsigned int *);
1: - int (*pin_config_group_set)(struct pinctrl_dev *, unsigned int, long unsigned int *, unsigned int);
1: - void (*pin_config_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: - void (*pin_config_group_dbg_show)(struct pinctrl_dev *, struct seq_file *, unsigned int);
1: - void (*pin_config_config_dbg_show)(struct pinctrl_dev *, struct seq_file *, long unsigned int);
1: + bool is_generic;
1: + int (*pin_config_get)(struct pinctrl_dev *, unsigned int,
1: + long unsigned int *);
1: + int (*pin_config_set)(struct pinctrl_dev *, unsigned int, long unsigned int *,
1: + unsigned int);
1: + int (*pin_config_group_get)(struct pinctrl_dev *, unsigned int,
1: + long unsigned int *);
1: + int (*pin_config_group_set)(struct pinctrl_dev *, unsigned int,
1: + long unsigned int *, unsigned int);
1: + void (*pin_config_dbg_show)(struct pinctrl_dev *, struct seq_file *,
1: + unsigned int);
1: + void (*pin_config_group_dbg_show)(struct pinctrl_dev *, struct seq_file *,
1: + unsigned int);
1: + void (*pin_config_config_dbg_show)(struct pinctrl_dev *, struct seq_file *,
1: + long unsigned int);
1: };
1:
1: enum pin_config_param {
1: - PIN_CONFIG_BIAS_BUS_HOLD = 0,
1: - PIN_CONFIG_BIAS_DISABLE = 1,
1: - PIN_CONFIG_BIAS_HIGH_IMPEDANCE = 2,
1: - PIN_CONFIG_BIAS_PULL_DOWN = 3,
1: - PIN_CONFIG_BIAS_PULL_PIN_DEFAULT = 4,
1: - PIN_CONFIG_BIAS_PULL_UP = 5,
1: - PIN_CONFIG_DRIVE_OPEN_DRAIN = 6,
1: - PIN_CONFIG_DRIVE_OPEN_SOURCE = 7,
1: - PIN_CONFIG_DRIVE_PUSH_PULL = 8,
1: - PIN_CONFIG_DRIVE_STRENGTH = 9,
1: - PIN_CONFIG_DRIVE_STRENGTH_UA = 10,
1: - PIN_CONFIG_INPUT_DEBOUNCE = 11,
1: - PIN_CONFIG_INPUT_ENABLE = 12,
1: - PIN_CONFIG_INPUT_SCHMITT = 13,
1: - PIN_CONFIG_INPUT_SCHMITT_ENABLE = 14,
1: - PIN_CONFIG_LOW_POWER_MODE = 15,
1: - PIN_CONFIG_OUTPUT_ENABLE = 16,
1: - PIN_CONFIG_OUTPUT = 17,
1: - PIN_CONFIG_POWER_SOURCE = 18,
1: - PIN_CONFIG_SLEEP_HARDWARE_STATE = 19,
1: - PIN_CONFIG_SLEW_RATE = 20,
1: - PIN_CONFIG_SKEW_DELAY = 21,
1: - PIN_CONFIG_PERSIST_STATE = 22,
1: - PIN_CONFIG_END = 127,
1: - PIN_CONFIG_MAX = 255,
1: + PIN_CONFIG_BIAS_BUS_HOLD = 0,
1: + PIN_CONFIG_BIAS_DISABLE = 1,
1: + PIN_CONFIG_BIAS_HIGH_IMPEDANCE = 2,
1: + PIN_CONFIG_BIAS_PULL_DOWN = 3,
1: + PIN_CONFIG_BIAS_PULL_PIN_DEFAULT = 4,
1: + PIN_CONFIG_BIAS_PULL_UP = 5,
1: + PIN_CONFIG_DRIVE_OPEN_DRAIN = 6,
1: + PIN_CONFIG_DRIVE_OPEN_SOURCE = 7,
1: + PIN_CONFIG_DRIVE_PUSH_PULL = 8,
1: + PIN_CONFIG_DRIVE_STRENGTH = 9,
1: + PIN_CONFIG_DRIVE_STRENGTH_UA = 10,
1: + PIN_CONFIG_INPUT_DEBOUNCE = 11,
1: + PIN_CONFIG_INPUT_ENABLE = 12,
1: + PIN_CONFIG_INPUT_SCHMITT = 13,
1: + PIN_CONFIG_INPUT_SCHMITT_ENABLE = 14,
1: + PIN_CONFIG_LOW_POWER_MODE = 15,
1: + PIN_CONFIG_OUTPUT_ENABLE = 16,
1: + PIN_CONFIG_OUTPUT = 17,
1: + PIN_CONFIG_POWER_SOURCE = 18,
1: + PIN_CONFIG_SLEEP_HARDWARE_STATE = 19,
1: + PIN_CONFIG_SLEW_RATE = 20,
1: + PIN_CONFIG_SKEW_DELAY = 21,
1: + PIN_CONFIG_PERSIST_STATE = 22,
1: + PIN_CONFIG_END = 127,
1: + PIN_CONFIG_MAX = 255,
1: };
1:
1: struct pinconf_generic_params {
1: - const char * const property;
1: - enum pin_config_param param;
1: - u32 default_value;
1: + const char *const property;
1: + enum pin_config_param param;
1: + u32 default_value;
1: };
1:
1: struct pin_config_item {
1: - const enum pin_config_param param;
1: - const char * const display;
1: - const char * const format;
1: - bool has_arg;
1: + const enum pin_config_param param;
1: + const char *const display;
1: + const char *const format;
1: + bool has_arg;
1: };
1:
1: struct gpio_desc___2;
1:
1: struct gpio_device {
1: - int id;
1: - struct device dev;
1: - struct cdev chrdev;
1: - struct device *mockdev;
1: - struct module *owner;
1: - struct gpio_chip *chip;
1: - struct gpio_desc___2 *descs;
1: - int base;
1: - u16 ngpio;
1: - const char *label;
1: - void *data;
1: - struct list_head list;
1: - struct blocking_notifier_head notifier;
1: - struct list_head pin_ranges;
1: + int id;
1: + struct device dev;
1: + struct cdev chrdev;
1: + struct device *mockdev;
1: + struct module *owner;
1: + struct gpio_chip *chip;
1: + struct gpio_desc___2 *descs;
1: + int base;
1: + u16 ngpio;
1: + const char *label;
1: + void *data;
1: + struct list_head list;
1: + struct blocking_notifier_head notifier;
1: + struct list_head pin_ranges;
1: };
1:
1: struct gpio_desc___2 {
1: - struct gpio_device *gdev;
1: - long unsigned int flags;
1: - const char *label;
1: - const char *name;
1: - struct device_node *hog;
1: - unsigned int debounce_period_us;
1: + struct gpio_device *gdev;
1: + long unsigned int flags;
1: + const char *label;
1: + const char *name;
1: + struct device_node *hog;
1: + unsigned int debounce_period_us;
1: };
1:
1: struct pinctrl_setting_mux {
1: - unsigned int group;
1: - unsigned int func;
1: + unsigned int group;
1: + unsigned int func;
1: };
1:
1: struct pinctrl_setting_configs {
1: - unsigned int group_or_pin;
1: - long unsigned int *configs;
1: - unsigned int num_configs;
1: + unsigned int group_or_pin;
1: + long unsigned int *configs;
1: + unsigned int num_configs;
1: };
1:
1: struct pinctrl_setting {
1: - struct list_head node;
1: - enum pinctrl_map_type type;
1: - struct pinctrl_dev *pctldev;
1: - const char *dev_name;
1: - union {
1: - struct pinctrl_setting_mux mux;
1: - struct pinctrl_setting_configs configs;
1: - } data;
1: + struct list_head node;
1: + enum pinctrl_map_type type;
1: + struct pinctrl_dev *pctldev;
1: + const char *dev_name;
1: + union {
1: + struct pinctrl_setting_mux mux;
1: + struct pinctrl_setting_configs configs;
1: + } data;
1: };
1:
1: struct pin_desc {
1: - struct pinctrl_dev *pctldev;
1: - const char *name;
1: - bool dynamic_name;
1: - void *drv_data;
1: - unsigned int mux_usecount;
1: - const char *mux_owner;
1: - const struct pinctrl_setting_mux *mux_setting;
1: - const char *gpio_owner;
1: + struct pinctrl_dev *pctldev;
1: + const char *name;
1: + bool dynamic_name;
1: + void *drv_data;
1: + unsigned int mux_usecount;
1: + const char *mux_owner;
1: + const struct pinctrl_setting_mux *mux_setting;
1: + const char *gpio_owner;
1: };
1:
1: struct pinctrl_maps {
1: - struct list_head node;
1: - const struct pinctrl_map *maps;
1: - unsigned int num_maps;
1: + struct list_head node;
1: + const struct pinctrl_map *maps;
1: + unsigned int num_maps;
1: };
1:
1: struct group_desc {
1: - const char *name;
1: - int *pins;
1: - int num_pins;
1: - void *data;
1: + const char *name;
1: + int *pins;
1: + int num_pins;
1: + void *data;
1: };
1:
1: struct pctldev;
1:
1: struct function_desc {
1: - const char *name;
1: - const char **group_names;
1: - int num_group_names;
1: - void *data;
1: + const char *name;
1: + const char **group_names;
1: + int num_group_names;
1: + void *data;
1: };
1:
1: struct pinctrl_dt_map {
1: - struct list_head node;
1: - struct pinctrl_dev *pctldev;
1: - struct pinctrl_map *map;
1: - unsigned int num_maps;
1: + struct list_head node;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_map *map;
1: + unsigned int num_maps;
1: };
1:
1: struct amd_pingroup {
1: - const char *name;
1: - const unsigned int *pins;
1: - unsigned int npins;
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: };
1:
1: struct amd_gpio {
1: - raw_spinlock_t lock;
1: - void *base;
1: - const struct amd_pingroup *groups;
1: - u32 ngroups;
1: - struct pinctrl_dev *pctrl;
1: - struct gpio_chip gc;
1: - unsigned int hwbank_num;
1: - struct resource *res;
1: - struct platform_device *pdev;
1: - u32 *saved_regs;
1: + raw_spinlock_t lock;
1: + void *base;
1: + const struct amd_pingroup *groups;
1: + u32 ngroups;
1: + struct pinctrl_dev *pctrl;
1: + struct gpio_chip gc;
1: + unsigned int hwbank_num;
1: + struct resource *res;
1: + struct platform_device *pdev;
1: + u32 *saved_regs;
1: };
1:
1: struct meson_pmx_group {
1: - const char *name;
1: - const unsigned int *pins;
1: - unsigned int num_pins;
1: - const void *data;
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int num_pins;
1: + const void *data;
1: };
1:
1: struct meson_pmx_func {
1: - const char *name;
1: - const char * const *groups;
1: - unsigned int num_groups;
1: + const char *name;
1: + const char *const *groups;
1: + unsigned int num_groups;
1: };
1:
1: struct meson_reg_desc {
1: - unsigned int reg;
1: - unsigned int bit;
1: + unsigned int reg;
1: + unsigned int bit;
1: };
1:
1: enum meson_reg_type {
1: - REG_PULLEN = 0,
1: - REG_PULL = 1,
1: - REG_DIR = 2,
1: - REG_OUT = 3,
1: - REG_IN = 4,
1: - REG_DS = 5,
1: - NUM_REG = 6,
1: + REG_PULLEN = 0,
1: + REG_PULL = 1,
1: + REG_DIR = 2,
1: + REG_OUT = 3,
1: + REG_IN = 4,
1: + REG_DS = 5,
1: + NUM_REG = 6,
1: };
1:
1: enum meson_pinconf_drv {
1: - MESON_PINCONF_DRV_500UA = 0,
1: - MESON_PINCONF_DRV_2500UA = 1,
1: - MESON_PINCONF_DRV_3000UA = 2,
1: - MESON_PINCONF_DRV_4000UA = 3,
1: + MESON_PINCONF_DRV_500UA = 0,
1: + MESON_PINCONF_DRV_2500UA = 1,
1: + MESON_PINCONF_DRV_3000UA = 2,
1: + MESON_PINCONF_DRV_4000UA = 3,
1: };
1:
1: struct meson_bank {
1: - const char *name;
1: - unsigned int first;
1: - unsigned int last;
1: - int irq_first;
1: - int irq_last;
1: - struct meson_reg_desc regs[6];
1: + const char *name;
1: + unsigned int first;
1: + unsigned int last;
1: + int irq_first;
1: + int irq_last;
1: + struct meson_reg_desc regs[6];
1: };
1:
1: struct meson_pinctrl;
1:
1: struct meson_pinctrl_data {
1: - const char *name;
1: - const struct pinctrl_pin_desc *pins;
1: - struct meson_pmx_group *groups;
1: - struct meson_pmx_func *funcs;
1: - unsigned int num_pins;
1: - unsigned int num_groups;
1: - unsigned int num_funcs;
1: - struct meson_bank *banks;
1: - unsigned int num_banks;
1: - const struct pinmux_ops *pmx_ops;
1: - void *pmx_data;
1: - int (*parse_dt)(struct meson_pinctrl *);
1: + const char *name;
1: + const struct pinctrl_pin_desc *pins;
1: + struct meson_pmx_group *groups;
1: + struct meson_pmx_func *funcs;
1: + unsigned int num_pins;
1: + unsigned int num_groups;
1: + unsigned int num_funcs;
1: + struct meson_bank *banks;
1: + unsigned int num_banks;
1: + const struct pinmux_ops *pmx_ops;
1: + void *pmx_data;
1: + int (*parse_dt)(struct meson_pinctrl *);
1: };
1:
1: struct meson_pinctrl {
1: - struct device *dev;
1: - struct pinctrl_dev *pcdev;
1: - struct pinctrl_desc desc;
1: - struct meson_pinctrl_data *data;
1: - struct regmap *reg_mux;
1: - struct regmap *reg_pullen;
1: - struct regmap *reg_pull;
1: - struct regmap *reg_gpio;
1: - struct regmap *reg_ds;
1: - struct gpio_chip chip;
1: - struct device_node *of_node;
1: + struct device *dev;
1: + struct pinctrl_dev *pcdev;
1: + struct pinctrl_desc desc;
1: + struct meson_pinctrl_data *data;
1: + struct regmap *reg_mux;
1: + struct regmap *reg_pullen;
1: + struct regmap *reg_pull;
1: + struct regmap *reg_gpio;
1: + struct regmap *reg_ds;
1: + struct gpio_chip chip;
1: + struct device_node *of_node;
1: };
1:
1: struct meson8_pmx_data {
1: - bool is_gpio;
1: - unsigned int reg;
1: - unsigned int bit;
1: + bool is_gpio;
1: + unsigned int reg;
1: + unsigned int bit;
1: };
1:
1: struct meson_pmx_bank {
1: - const char *name;
1: - unsigned int first;
1: - unsigned int last;
1: - unsigned int reg;
1: - unsigned int offset;
1: + const char *name;
1: + unsigned int first;
1: + unsigned int last;
1: + unsigned int reg;
1: + unsigned int offset;
1: };
1:
1: struct meson_axg_pmx_data {
1: - struct meson_pmx_bank *pmx_banks;
1: - unsigned int num_pmx_banks;
1: + struct meson_pmx_bank *pmx_banks;
1: + unsigned int num_pmx_banks;
1: };
1:
1: struct meson_pmx_axg_data {
1: - unsigned int func;
1: + unsigned int func;
1: };
1:
1: enum rockchip_pinctrl_type {
1: - PX30 = 0,
1: - RV1108 = 1,
1: - RK2928 = 2,
1: - RK3066B = 3,
1: - RK3128 = 4,
1: - RK3188 = 5,
1: - RK3288 = 6,
1: - RK3308 = 7,
1: - RK3368 = 8,
1: - RK3399 = 9,
1: + PX30 = 0,
1: + RV1108 = 1,
1: + RK2928 = 2,
1: + RK3066B = 3,
1: + RK3128 = 4,
1: + RK3188 = 5,
1: + RK3288 = 6,
1: + RK3308 = 7,
1: + RK3368 = 8,
1: + RK3399 = 9,
1: };
1:
1: struct rockchip_iomux {
1: - int type;
1: - int offset;
1: + int type;
1: + int offset;
1: };
1:
1: enum rockchip_pin_drv_type {
1: - DRV_TYPE_IO_DEFAULT = 0,
1: - DRV_TYPE_IO_1V8_OR_3V0 = 1,
1: - DRV_TYPE_IO_1V8_ONLY = 2,
1: - DRV_TYPE_IO_1V8_3V0_AUTO = 3,
1: - DRV_TYPE_IO_3V3_ONLY = 4,
1: - DRV_TYPE_MAX = 5,
1: + DRV_TYPE_IO_DEFAULT = 0,
1: + DRV_TYPE_IO_1V8_OR_3V0 = 1,
1: + DRV_TYPE_IO_1V8_ONLY = 2,
1: + DRV_TYPE_IO_1V8_3V0_AUTO = 3,
1: + DRV_TYPE_IO_3V3_ONLY = 4,
1: + DRV_TYPE_MAX = 5,
1: };
1:
1: enum rockchip_pin_pull_type {
1: - PULL_TYPE_IO_DEFAULT = 0,
1: - PULL_TYPE_IO_1V8_ONLY = 1,
1: - PULL_TYPE_MAX = 2,
1: + PULL_TYPE_IO_DEFAULT = 0,
1: + PULL_TYPE_IO_1V8_ONLY = 1,
1: + PULL_TYPE_MAX = 2,
1: };
1:
1: struct rockchip_drv {
1: - enum rockchip_pin_drv_type drv_type;
1: - int offset;
1: + enum rockchip_pin_drv_type drv_type;
1: + int offset;
1: };
1:
1: struct rockchip_pinctrl;
1:
1: struct rockchip_pin_bank {
1: - void *reg_base;
1: - struct regmap *regmap_pull;
1: - struct clk *clk;
1: - int irq;
1: - u32 saved_masks;
1: - u32 pin_base;
1: - u8 nr_pins;
1: - char *name;
1: - u8 bank_num;
1: - struct rockchip_iomux iomux[4];
1: - struct rockchip_drv drv[4];
1: - enum rockchip_pin_pull_type pull_type[4];
1: - bool valid;
1: - struct device_node *of_node;
1: - struct rockchip_pinctrl *drvdata;
1: - struct irq_domain *domain;
1: - struct gpio_chip gpio_chip;
1: - struct pinctrl_gpio_range grange;
1: - raw_spinlock_t slock;
1: - u32 toggle_edge_mode;
1: - u32 recalced_mask;
1: - u32 route_mask;
1: + void *reg_base;
1: + struct regmap *regmap_pull;
1: + struct clk *clk;
1: + int irq;
1: + u32 saved_masks;
1: + u32 pin_base;
1: + u8 nr_pins;
1: + char *name;
1: + u8 bank_num;
1: + struct rockchip_iomux iomux[4];
1: + struct rockchip_drv drv[4];
1: + enum rockchip_pin_pull_type pull_type[4];
1: + bool valid;
1: + struct device_node *of_node;
1: + struct rockchip_pinctrl *drvdata;
1: + struct irq_domain *domain;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_gpio_range grange;
1: + raw_spinlock_t slock;
1: + u32 toggle_edge_mode;
1: + u32 recalced_mask;
1: + u32 route_mask;
1: };
1:
1: struct rockchip_pin_ctrl;
1: @@ -60995,183 +61908,186 @@ struct rockchip_pin_group;
1: struct rockchip_pmx_func;
1:
1: struct rockchip_pinctrl {
1: - struct regmap *regmap_base;
1: - int reg_size;
1: - struct regmap *regmap_pull;
1: - struct regmap *regmap_pmu;
1: - struct device *dev;
1: - struct rockchip_pin_ctrl *ctrl;
1: - struct pinctrl_desc pctl;
1: - struct pinctrl_dev *pctl_dev;
1: - struct rockchip_pin_group *groups;
1: - unsigned int ngroups;
1: - struct rockchip_pmx_func *functions;
1: - unsigned int nfunctions;
1: + struct regmap *regmap_base;
1: + int reg_size;
1: + struct regmap *regmap_pull;
1: + struct regmap *regmap_pmu;
1: + struct device *dev;
1: + struct rockchip_pin_ctrl *ctrl;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + struct rockchip_pin_group *groups;
1: + unsigned int ngroups;
1: + struct rockchip_pmx_func *functions;
1: + unsigned int nfunctions;
1: };
1:
1: struct rockchip_mux_recalced_data {
1: - u8 num;
1: - u8 pin;
1: - u32 reg;
1: - u8 bit;
1: - u8 mask;
1: + u8 num;
1: + u8 pin;
1: + u32 reg;
1: + u8 bit;
1: + u8 mask;
1: };
1:
1: enum rockchip_mux_route_location {
1: - ROCKCHIP_ROUTE_SAME = 0,
1: - ROCKCHIP_ROUTE_PMU = 1,
1: - ROCKCHIP_ROUTE_GRF = 2,
1: + ROCKCHIP_ROUTE_SAME = 0,
1: + ROCKCHIP_ROUTE_PMU = 1,
1: + ROCKCHIP_ROUTE_GRF = 2,
1: };
1:
1: struct rockchip_mux_route_data {
1: - u8 bank_num;
1: - u8 pin;
1: - u8 func;
1: - enum rockchip_mux_route_location route_location;
1: - u32 route_offset;
1: - u32 route_val;
1: + u8 bank_num;
1: + u8 pin;
1: + u8 func;
1: + enum rockchip_mux_route_location route_location;
1: + u32 route_offset;
1: + u32 route_val;
1: };
1:
1: struct rockchip_pin_ctrl {
1: - struct rockchip_pin_bank *pin_banks;
1: - u32 nr_banks;
1: - u32 nr_pins;
1: - char *label;
1: - enum rockchip_pinctrl_type type;
1: - int grf_mux_offset;
1: - int pmu_mux_offset;
1: - int grf_drv_offset;
1: - int pmu_drv_offset;
1: - struct rockchip_mux_recalced_data *iomux_recalced;
1: - u32 niomux_recalced;
1: - struct rockchip_mux_route_data *iomux_routes;
1: - u32 niomux_routes;
1: - void (*pull_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: - void (*drv_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: - int (*schmitt_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *, u8 *);
1: + struct rockchip_pin_bank *pin_banks;
1: + u32 nr_banks;
1: + u32 nr_pins;
1: + char *label;
1: + enum rockchip_pinctrl_type type;
1: + int grf_mux_offset;
1: + int pmu_mux_offset;
1: + int grf_drv_offset;
1: + int pmu_drv_offset;
1: + struct rockchip_mux_recalced_data *iomux_recalced;
1: + u32 niomux_recalced;
1: + struct rockchip_mux_route_data *iomux_routes;
1: + u32 niomux_routes;
1: + void (*pull_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **,
1: + int *, u8 *);
1: + void (*drv_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **, int *,
1: + u8 *);
1: + int (*schmitt_calc_reg)(struct rockchip_pin_bank *, int, struct regmap **,
1: + int *, u8 *);
1: };
1:
1: struct rockchip_pin_config {
1: - unsigned int func;
1: - long unsigned int *configs;
1: - unsigned int nconfigs;
1: + unsigned int func;
1: + long unsigned int *configs;
1: + unsigned int nconfigs;
1: };
1:
1: struct rockchip_pin_group {
1: - const char *name;
1: - unsigned int npins;
1: - unsigned int *pins;
1: - struct rockchip_pin_config *data;
1: + const char *name;
1: + unsigned int npins;
1: + unsigned int *pins;
1: + struct rockchip_pin_config *data;
1: };
1:
1: struct rockchip_pmx_func {
1: - const char *name;
1: - const char **groups;
1: - u8 ngroups;
1: + const char *name;
1: + const char **groups;
1: + u8 ngroups;
1: };
1:
1: struct pcs_pdata {
1: - int irq;
1: - void (*rearm)();
1: + int irq;
1: + void (*rearm)();
1: };
1:
1: struct pcs_func_vals {
1: - void *reg;
1: - unsigned int val;
1: - unsigned int mask;
1: + void *reg;
1: + unsigned int val;
1: + unsigned int mask;
1: };
1:
1: struct pcs_conf_vals {
1: - enum pin_config_param param;
1: - unsigned int val;
1: - unsigned int enable;
1: - unsigned int disable;
1: - unsigned int mask;
1: + enum pin_config_param param;
1: + unsigned int val;
1: + unsigned int enable;
1: + unsigned int disable;
1: + unsigned int mask;
1: };
1:
1: struct pcs_conf_type {
1: - const char *name;
1: - enum pin_config_param param;
1: + const char *name;
1: + enum pin_config_param param;
1: };
1:
1: struct pcs_function {
1: - const char *name;
1: - struct pcs_func_vals *vals;
1: - unsigned int nvals;
1: - const char **pgnames;
1: - int npgnames;
1: - struct pcs_conf_vals *conf;
1: - int nconfs;
1: - struct list_head node;
1: + const char *name;
1: + struct pcs_func_vals *vals;
1: + unsigned int nvals;
1: + const char **pgnames;
1: + int npgnames;
1: + struct pcs_conf_vals *conf;
1: + int nconfs;
1: + struct list_head node;
1: };
1:
1: struct pcs_gpiofunc_range {
1: - unsigned int offset;
1: - unsigned int npins;
1: - unsigned int gpiofunc;
1: - struct list_head node;
1: + unsigned int offset;
1: + unsigned int npins;
1: + unsigned int gpiofunc;
1: + struct list_head node;
1: };
1:
1: struct pcs_data {
1: - struct pinctrl_pin_desc *pa;
1: - int cur;
1: + struct pinctrl_pin_desc *pa;
1: + int cur;
1: };
1:
1: struct pcs_soc_data {
1: - unsigned int flags;
1: - int irq;
1: - unsigned int irq_enable_mask;
1: - unsigned int irq_status_mask;
1: - void (*rearm)();
1: + unsigned int flags;
1: + int irq;
1: + unsigned int irq_enable_mask;
1: + unsigned int irq_status_mask;
1: + void (*rearm)();
1: };
1:
1: struct pcs_device {
1: - struct resource *res;
1: - void *base;
1: - void *saved_vals;
1: - unsigned int size;
1: - struct device *dev;
1: - struct device_node *np;
1: - struct pinctrl_dev *pctl;
1: - unsigned int flags;
1: - struct property *missing_nr_pinctrl_cells;
1: - struct pcs_soc_data socdata;
1: - raw_spinlock_t lock;
1: - struct mutex mutex;
1: - unsigned int width;
1: - unsigned int fmask;
1: - unsigned int fshift;
1: - unsigned int foff;
1: - unsigned int fmax;
1: - bool bits_per_mux;
1: - unsigned int bits_per_pin;
1: - struct pcs_data pins;
1: - struct list_head gpiofuncs;
1: - struct list_head irqs;
1: - struct irq_chip chip;
1: - struct irq_domain *domain;
1: - struct pinctrl_desc desc;
1: - unsigned int (*read)(void *);
1: - void (*write)(unsigned int, void *);
1: + struct resource *res;
1: + void *base;
1: + void *saved_vals;
1: + unsigned int size;
1: + struct device *dev;
1: + struct device_node *np;
1: + struct pinctrl_dev *pctl;
1: + unsigned int flags;
1: + struct property *missing_nr_pinctrl_cells;
1: + struct pcs_soc_data socdata;
1: + raw_spinlock_t lock;
1: + struct mutex mutex;
1: + unsigned int width;
1: + unsigned int fmask;
1: + unsigned int fshift;
1: + unsigned int foff;
1: + unsigned int fmax;
1: + bool bits_per_mux;
1: + unsigned int bits_per_pin;
1: + struct pcs_data pins;
1: + struct list_head gpiofuncs;
1: + struct list_head irqs;
1: + struct irq_chip chip;
1: + struct irq_domain *domain;
1: + struct pinctrl_desc desc;
1: + unsigned int (*read)(void *);
1: + void (*write)(unsigned int, void *);
1: };
1:
1: struct pcs_interrupt {
1: - void *reg;
1: - irq_hw_number_t hwirq;
1: - unsigned int irq;
1: - struct list_head node;
1: + void *reg;
1: + irq_hw_number_t hwirq;
1: + unsigned int irq;
1: + struct list_head node;
1: };
1:
1: struct tegra_pinctrl_soc_data;
1:
1: struct tegra_pmx {
1: - struct device *dev;
1: - struct pinctrl_dev *pctl;
1: - const struct tegra_pinctrl_soc_data *soc;
1: - const char **group_pins;
1: - int nbanks;
1: - void **regs;
1: - u32 *backup_regs;
1: + struct device *dev;
1: + struct pinctrl_dev *pctl;
1: + const struct tegra_pinctrl_soc_data *soc;
1: + const char **group_pins;
1: + int nbanks;
1: + void **regs;
1: + u32 *backup_regs;
1: };
1:
1: struct tegra_function;
1: @@ -61179,1096 +62095,1097 @@ struct tegra_function;
1: struct tegra_pingroup;
1:
1: struct tegra_pinctrl_soc_data {
1: - unsigned int ngpios;
1: - const char *gpio_compatible;
1: - const struct pinctrl_pin_desc *pins;
1: - unsigned int npins;
1: - struct tegra_function *functions;
1: - unsigned int nfunctions;
1: - const struct tegra_pingroup *groups;
1: - unsigned int ngroups;
1: - bool hsm_in_mux;
1: - bool schmitt_in_mux;
1: - bool drvtype_in_mux;
1: - bool sfsel_in_mux;
1: + unsigned int ngpios;
1: + const char *gpio_compatible;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + struct tegra_function *functions;
1: + unsigned int nfunctions;
1: + const struct tegra_pingroup *groups;
1: + unsigned int ngroups;
1: + bool hsm_in_mux;
1: + bool schmitt_in_mux;
1: + bool drvtype_in_mux;
1: + bool sfsel_in_mux;
1: };
1:
1: enum tegra_pinconf_param {
1: - TEGRA_PINCONF_PARAM_PULL = 0,
1: - TEGRA_PINCONF_PARAM_TRISTATE = 1,
1: - TEGRA_PINCONF_PARAM_ENABLE_INPUT = 2,
1: - TEGRA_PINCONF_PARAM_OPEN_DRAIN = 3,
1: - TEGRA_PINCONF_PARAM_LOCK = 4,
1: - TEGRA_PINCONF_PARAM_IORESET = 5,
1: - TEGRA_PINCONF_PARAM_RCV_SEL = 6,
1: - TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE = 7,
1: - TEGRA_PINCONF_PARAM_SCHMITT = 8,
1: - TEGRA_PINCONF_PARAM_LOW_POWER_MODE = 9,
1: - TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH = 10,
1: - TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH = 11,
1: - TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING = 12,
1: - TEGRA_PINCONF_PARAM_SLEW_RATE_RISING = 13,
1: - TEGRA_PINCONF_PARAM_DRIVE_TYPE = 14,
1: + TEGRA_PINCONF_PARAM_PULL = 0,
1: + TEGRA_PINCONF_PARAM_TRISTATE = 1,
1: + TEGRA_PINCONF_PARAM_ENABLE_INPUT = 2,
1: + TEGRA_PINCONF_PARAM_OPEN_DRAIN = 3,
1: + TEGRA_PINCONF_PARAM_LOCK = 4,
1: + TEGRA_PINCONF_PARAM_IORESET = 5,
1: + TEGRA_PINCONF_PARAM_RCV_SEL = 6,
1: + TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE = 7,
1: + TEGRA_PINCONF_PARAM_SCHMITT = 8,
1: + TEGRA_PINCONF_PARAM_LOW_POWER_MODE = 9,
1: + TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH = 10,
1: + TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH = 11,
1: + TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING = 12,
1: + TEGRA_PINCONF_PARAM_SLEW_RATE_RISING = 13,
1: + TEGRA_PINCONF_PARAM_DRIVE_TYPE = 14,
1: };
1:
1: struct tegra_function {
1: - const char *name;
1: - const char **groups;
1: - unsigned int ngroups;
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: };
1:
1: struct tegra_pingroup {
1: - const char *name;
1: - const unsigned int *pins;
1: - u8 npins;
1: - u8 funcs[4];
1: - s32 mux_reg;
1: - s32 pupd_reg;
1: - s32 tri_reg;
1: - s32 drv_reg;
1: - u32 mux_bank: 2;
1: - u32 pupd_bank: 2;
1: - u32 tri_bank: 2;
1: - u32 drv_bank: 2;
1: - s32 mux_bit: 6;
1: - s32 pupd_bit: 6;
1: - s32 tri_bit: 6;
1: - s32 einput_bit: 6;
1: - s32 odrain_bit: 6;
1: - s32 lock_bit: 6;
1: - s32 ioreset_bit: 6;
1: - s32 rcv_sel_bit: 6;
1: - s32 hsm_bit: 6;
1: - char: 2;
1: - s32 sfsel_bit: 6;
1: - s32 schmitt_bit: 6;
1: - s32 lpmd_bit: 6;
1: - s32 drvdn_bit: 6;
1: - s32 drvup_bit: 6;
1: - char: 2;
1: - s32 slwr_bit: 6;
1: - s32 slwf_bit: 6;
1: - s32 drvtype_bit: 6;
1: - s32 drvdn_width: 6;
1: - s32 drvup_width: 6;
1: - char: 2;
1: - s32 slwr_width: 6;
1: - s32 slwf_width: 6;
1: - u32 parked_bitmask;
1: + const char *name;
1: + const unsigned int *pins;
1: + u8 npins;
1: + u8 funcs[4];
1: + s32 mux_reg;
1: + s32 pupd_reg;
1: + s32 tri_reg;
1: + s32 drv_reg;
1: + u32 mux_bank : 2;
1: + u32 pupd_bank : 2;
1: + u32 tri_bank : 2;
1: + u32 drv_bank : 2;
1: + s32 mux_bit : 6;
1: + s32 pupd_bit : 6;
1: + s32 tri_bit : 6;
1: + s32 einput_bit : 6;
1: + s32 odrain_bit : 6;
1: + s32 lock_bit : 6;
1: + s32 ioreset_bit : 6;
1: + s32 rcv_sel_bit : 6;
1: + s32 hsm_bit : 6;
1: + char : 2;
1: + s32 sfsel_bit : 6;
1: + s32 schmitt_bit : 6;
1: + s32 lpmd_bit : 6;
1: + s32 drvdn_bit : 6;
1: + s32 drvup_bit : 6;
1: + char : 2;
1: + s32 slwr_bit : 6;
1: + s32 slwf_bit : 6;
1: + s32 drvtype_bit : 6;
1: + s32 drvdn_width : 6;
1: + s32 drvup_width : 6;
1: + char : 2;
1: + s32 slwr_width : 6;
1: + s32 slwf_width : 6;
1: + u32 parked_bitmask;
1: };
1:
1: struct cfg_param {
1: - const char *property;
1: - enum tegra_pinconf_param param;
1: + const char *property;
1: + enum tegra_pinconf_param param;
1: };
1:
1: enum tegra_mux {
1: - TEGRA_MUX_BLINK = 0,
1: - TEGRA_MUX_CCLA = 1,
1: - TEGRA_MUX_CEC = 2,
1: - TEGRA_MUX_CLDVFS = 3,
1: - TEGRA_MUX_CLK = 4,
1: - TEGRA_MUX_CLK12 = 5,
1: - TEGRA_MUX_CPU = 6,
1: - TEGRA_MUX_CSI = 7,
1: - TEGRA_MUX_DAP = 8,
1: - TEGRA_MUX_DAP1 = 9,
1: - TEGRA_MUX_DAP2 = 10,
1: - TEGRA_MUX_DEV3 = 11,
1: - TEGRA_MUX_DISPLAYA = 12,
1: - TEGRA_MUX_DISPLAYA_ALT = 13,
1: - TEGRA_MUX_DISPLAYB = 14,
1: - TEGRA_MUX_DP = 15,
1: - TEGRA_MUX_DSI_B = 16,
1: - TEGRA_MUX_DTV = 17,
1: - TEGRA_MUX_EXTPERIPH1 = 18,
1: - TEGRA_MUX_EXTPERIPH2 = 19,
1: - TEGRA_MUX_EXTPERIPH3 = 20,
1: - TEGRA_MUX_GMI = 21,
1: - TEGRA_MUX_GMI_ALT = 22,
1: - TEGRA_MUX_HDA = 23,
1: - TEGRA_MUX_HSI = 24,
1: - TEGRA_MUX_I2C1 = 25,
1: - TEGRA_MUX_I2C2 = 26,
1: - TEGRA_MUX_I2C3 = 27,
1: - TEGRA_MUX_I2C4 = 28,
1: - TEGRA_MUX_I2CPWR = 29,
1: - TEGRA_MUX_I2S0 = 30,
1: - TEGRA_MUX_I2S1 = 31,
1: - TEGRA_MUX_I2S2 = 32,
1: - TEGRA_MUX_I2S3 = 33,
1: - TEGRA_MUX_I2S4 = 34,
1: - TEGRA_MUX_IRDA = 35,
1: - TEGRA_MUX_KBC = 36,
1: - TEGRA_MUX_OWR = 37,
1: - TEGRA_MUX_PE = 38,
1: - TEGRA_MUX_PE0 = 39,
1: - TEGRA_MUX_PE1 = 40,
1: - TEGRA_MUX_PMI = 41,
1: - TEGRA_MUX_PWM0 = 42,
1: - TEGRA_MUX_PWM1 = 43,
1: - TEGRA_MUX_PWM2 = 44,
1: - TEGRA_MUX_PWM3 = 45,
1: - TEGRA_MUX_PWRON = 46,
1: - TEGRA_MUX_RESET_OUT_N = 47,
1: - TEGRA_MUX_RSVD1 = 48,
1: - TEGRA_MUX_RSVD2 = 49,
1: - TEGRA_MUX_RSVD3 = 50,
1: - TEGRA_MUX_RSVD4 = 51,
1: - TEGRA_MUX_RTCK = 52,
1: - TEGRA_MUX_SATA = 53,
1: - TEGRA_MUX_SDMMC1 = 54,
1: - TEGRA_MUX_SDMMC2 = 55,
1: - TEGRA_MUX_SDMMC3 = 56,
1: - TEGRA_MUX_SDMMC4 = 57,
1: - TEGRA_MUX_SOC = 58,
1: - TEGRA_MUX_SPDIF = 59,
1: - TEGRA_MUX_SPI1 = 60,
1: - TEGRA_MUX_SPI2 = 61,
1: - TEGRA_MUX_SPI3 = 62,
1: - TEGRA_MUX_SPI4 = 63,
1: - TEGRA_MUX_SPI5 = 64,
1: - TEGRA_MUX_SPI6 = 65,
1: - TEGRA_MUX_SYS = 66,
1: - TEGRA_MUX_TMDS = 67,
1: - TEGRA_MUX_TRACE = 68,
1: - TEGRA_MUX_UARTA = 69,
1: - TEGRA_MUX_UARTB = 70,
1: - TEGRA_MUX_UARTC = 71,
1: - TEGRA_MUX_UARTD = 72,
1: - TEGRA_MUX_ULPI = 73,
1: - TEGRA_MUX_USB = 74,
1: - TEGRA_MUX_VGP1 = 75,
1: - TEGRA_MUX_VGP2 = 76,
1: - TEGRA_MUX_VGP3 = 77,
1: - TEGRA_MUX_VGP4 = 78,
1: - TEGRA_MUX_VGP5 = 79,
1: - TEGRA_MUX_VGP6 = 80,
1: - TEGRA_MUX_VI = 81,
1: - TEGRA_MUX_VI_ALT1 = 82,
1: - TEGRA_MUX_VI_ALT3 = 83,
1: - TEGRA_MUX_VIMCLK2 = 84,
1: - TEGRA_MUX_VIMCLK2_ALT = 85,
1: + TEGRA_MUX_BLINK = 0,
1: + TEGRA_MUX_CCLA = 1,
1: + TEGRA_MUX_CEC = 2,
1: + TEGRA_MUX_CLDVFS = 3,
1: + TEGRA_MUX_CLK = 4,
1: + TEGRA_MUX_CLK12 = 5,
1: + TEGRA_MUX_CPU = 6,
1: + TEGRA_MUX_CSI = 7,
1: + TEGRA_MUX_DAP = 8,
1: + TEGRA_MUX_DAP1 = 9,
1: + TEGRA_MUX_DAP2 = 10,
1: + TEGRA_MUX_DEV3 = 11,
1: + TEGRA_MUX_DISPLAYA = 12,
1: + TEGRA_MUX_DISPLAYA_ALT = 13,
1: + TEGRA_MUX_DISPLAYB = 14,
1: + TEGRA_MUX_DP = 15,
1: + TEGRA_MUX_DSI_B = 16,
1: + TEGRA_MUX_DTV = 17,
1: + TEGRA_MUX_EXTPERIPH1 = 18,
1: + TEGRA_MUX_EXTPERIPH2 = 19,
1: + TEGRA_MUX_EXTPERIPH3 = 20,
1: + TEGRA_MUX_GMI = 21,
1: + TEGRA_MUX_GMI_ALT = 22,
1: + TEGRA_MUX_HDA = 23,
1: + TEGRA_MUX_HSI = 24,
1: + TEGRA_MUX_I2C1 = 25,
1: + TEGRA_MUX_I2C2 = 26,
1: + TEGRA_MUX_I2C3 = 27,
1: + TEGRA_MUX_I2C4 = 28,
1: + TEGRA_MUX_I2CPWR = 29,
1: + TEGRA_MUX_I2S0 = 30,
1: + TEGRA_MUX_I2S1 = 31,
1: + TEGRA_MUX_I2S2 = 32,
1: + TEGRA_MUX_I2S3 = 33,
1: + TEGRA_MUX_I2S4 = 34,
1: + TEGRA_MUX_IRDA = 35,
1: + TEGRA_MUX_KBC = 36,
1: + TEGRA_MUX_OWR = 37,
1: + TEGRA_MUX_PE = 38,
1: + TEGRA_MUX_PE0 = 39,
1: + TEGRA_MUX_PE1 = 40,
1: + TEGRA_MUX_PMI = 41,
1: + TEGRA_MUX_PWM0 = 42,
1: + TEGRA_MUX_PWM1 = 43,
1: + TEGRA_MUX_PWM2 = 44,
1: + TEGRA_MUX_PWM3 = 45,
1: + TEGRA_MUX_PWRON = 46,
1: + TEGRA_MUX_RESET_OUT_N = 47,
1: + TEGRA_MUX_RSVD1 = 48,
1: + TEGRA_MUX_RSVD2 = 49,
1: + TEGRA_MUX_RSVD3 = 50,
1: + TEGRA_MUX_RSVD4 = 51,
1: + TEGRA_MUX_RTCK = 52,
1: + TEGRA_MUX_SATA = 53,
1: + TEGRA_MUX_SDMMC1 = 54,
1: + TEGRA_MUX_SDMMC2 = 55,
1: + TEGRA_MUX_SDMMC3 = 56,
1: + TEGRA_MUX_SDMMC4 = 57,
1: + TEGRA_MUX_SOC = 58,
1: + TEGRA_MUX_SPDIF = 59,
1: + TEGRA_MUX_SPI1 = 60,
1: + TEGRA_MUX_SPI2 = 61,
1: + TEGRA_MUX_SPI3 = 62,
1: + TEGRA_MUX_SPI4 = 63,
1: + TEGRA_MUX_SPI5 = 64,
1: + TEGRA_MUX_SPI6 = 65,
1: + TEGRA_MUX_SYS = 66,
1: + TEGRA_MUX_TMDS = 67,
1: + TEGRA_MUX_TRACE = 68,
1: + TEGRA_MUX_UARTA = 69,
1: + TEGRA_MUX_UARTB = 70,
1: + TEGRA_MUX_UARTC = 71,
1: + TEGRA_MUX_UARTD = 72,
1: + TEGRA_MUX_ULPI = 73,
1: + TEGRA_MUX_USB = 74,
1: + TEGRA_MUX_VGP1 = 75,
1: + TEGRA_MUX_VGP2 = 76,
1: + TEGRA_MUX_VGP3 = 77,
1: + TEGRA_MUX_VGP4 = 78,
1: + TEGRA_MUX_VGP5 = 79,
1: + TEGRA_MUX_VGP6 = 80,
1: + TEGRA_MUX_VI = 81,
1: + TEGRA_MUX_VI_ALT1 = 82,
1: + TEGRA_MUX_VI_ALT3 = 83,
1: + TEGRA_MUX_VIMCLK2 = 84,
1: + TEGRA_MUX_VIMCLK2_ALT = 85,
1: };
1:
1: enum tegra_mux___2 {
1: - TEGRA_MUX_AUD = 0,
1: - TEGRA_MUX_BCL = 1,
1: - TEGRA_MUX_BLINK___2 = 2,
1: - TEGRA_MUX_CCLA___2 = 3,
1: - TEGRA_MUX_CEC___2 = 4,
1: - TEGRA_MUX_CLDVFS___2 = 5,
1: - TEGRA_MUX_CLK___2 = 6,
1: - TEGRA_MUX_CORE = 7,
1: - TEGRA_MUX_CPU___2 = 8,
1: - TEGRA_MUX_DISPLAYA___2 = 9,
1: - TEGRA_MUX_DISPLAYB___2 = 10,
1: - TEGRA_MUX_DMIC1 = 11,
1: - TEGRA_MUX_DMIC2 = 12,
1: - TEGRA_MUX_DMIC3 = 13,
1: - TEGRA_MUX_DP___2 = 14,
1: - TEGRA_MUX_DTV___2 = 15,
1: - TEGRA_MUX_EXTPERIPH3___2 = 16,
1: - TEGRA_MUX_I2C1___2 = 17,
1: - TEGRA_MUX_I2C2___2 = 18,
1: - TEGRA_MUX_I2C3___2 = 19,
1: - TEGRA_MUX_I2CPMU = 20,
1: - TEGRA_MUX_I2CVI = 21,
1: - TEGRA_MUX_I2S1___2 = 22,
1: - TEGRA_MUX_I2S2___2 = 23,
1: - TEGRA_MUX_I2S3___2 = 24,
1: - TEGRA_MUX_I2S4A = 25,
1: - TEGRA_MUX_I2S4B = 26,
1: - TEGRA_MUX_I2S5A = 27,
1: - TEGRA_MUX_I2S5B = 28,
1: - TEGRA_MUX_IQC0 = 29,
1: - TEGRA_MUX_IQC1 = 30,
1: - TEGRA_MUX_JTAG = 31,
1: - TEGRA_MUX_PE___2 = 32,
1: - TEGRA_MUX_PE0___2 = 33,
1: - TEGRA_MUX_PE1___2 = 34,
1: - TEGRA_MUX_PMI___2 = 35,
1: - TEGRA_MUX_PWM0___2 = 36,
1: - TEGRA_MUX_PWM1___2 = 37,
1: - TEGRA_MUX_PWM2___2 = 38,
1: - TEGRA_MUX_PWM3___2 = 39,
1: - TEGRA_MUX_QSPI = 40,
1: - TEGRA_MUX_RSVD0 = 41,
1: - TEGRA_MUX_RSVD1___2 = 42,
1: - TEGRA_MUX_RSVD2___2 = 43,
1: - TEGRA_MUX_RSVD3___2 = 44,
1: - TEGRA_MUX_SATA___2 = 45,
1: - TEGRA_MUX_SDMMC1___2 = 46,
1: - TEGRA_MUX_SDMMC3___2 = 47,
1: - TEGRA_MUX_SHUTDOWN = 48,
1: - TEGRA_MUX_SOC___2 = 49,
1: - TEGRA_MUX_SOR0 = 50,
1: - TEGRA_MUX_SOR1 = 51,
1: - TEGRA_MUX_SPDIF___2 = 52,
1: - TEGRA_MUX_SPI1___2 = 53,
1: - TEGRA_MUX_SPI2___2 = 54,
1: - TEGRA_MUX_SPI3___2 = 55,
1: - TEGRA_MUX_SPI4___2 = 56,
1: - TEGRA_MUX_SYS___2 = 57,
1: - TEGRA_MUX_TOUCH = 58,
1: - TEGRA_MUX_UART = 59,
1: - TEGRA_MUX_UARTA___2 = 60,
1: - TEGRA_MUX_UARTB___2 = 61,
1: - TEGRA_MUX_UARTC___2 = 62,
1: - TEGRA_MUX_UARTD___2 = 63,
1: - TEGRA_MUX_USB___2 = 64,
1: - TEGRA_MUX_VGP1___2 = 65,
1: - TEGRA_MUX_VGP2___2 = 66,
1: - TEGRA_MUX_VGP3___2 = 67,
1: - TEGRA_MUX_VGP4___2 = 68,
1: - TEGRA_MUX_VGP5___2 = 69,
1: - TEGRA_MUX_VGP6___2 = 70,
1: - TEGRA_MUX_VIMCLK = 71,
1: - TEGRA_MUX_VIMCLK2___2 = 72,
1: + TEGRA_MUX_AUD = 0,
1: + TEGRA_MUX_BCL = 1,
1: + TEGRA_MUX_BLINK___2 = 2,
1: + TEGRA_MUX_CCLA___2 = 3,
1: + TEGRA_MUX_CEC___2 = 4,
1: + TEGRA_MUX_CLDVFS___2 = 5,
1: + TEGRA_MUX_CLK___2 = 6,
1: + TEGRA_MUX_CORE = 7,
1: + TEGRA_MUX_CPU___2 = 8,
1: + TEGRA_MUX_DISPLAYA___2 = 9,
1: + TEGRA_MUX_DISPLAYB___2 = 10,
1: + TEGRA_MUX_DMIC1 = 11,
1: + TEGRA_MUX_DMIC2 = 12,
1: + TEGRA_MUX_DMIC3 = 13,
1: + TEGRA_MUX_DP___2 = 14,
1: + TEGRA_MUX_DTV___2 = 15,
1: + TEGRA_MUX_EXTPERIPH3___2 = 16,
1: + TEGRA_MUX_I2C1___2 = 17,
1: + TEGRA_MUX_I2C2___2 = 18,
1: + TEGRA_MUX_I2C3___2 = 19,
1: + TEGRA_MUX_I2CPMU = 20,
1: + TEGRA_MUX_I2CVI = 21,
1: + TEGRA_MUX_I2S1___2 = 22,
1: + TEGRA_MUX_I2S2___2 = 23,
1: + TEGRA_MUX_I2S3___2 = 24,
1: + TEGRA_MUX_I2S4A = 25,
1: + TEGRA_MUX_I2S4B = 26,
1: + TEGRA_MUX_I2S5A = 27,
1: + TEGRA_MUX_I2S5B = 28,
1: + TEGRA_MUX_IQC0 = 29,
1: + TEGRA_MUX_IQC1 = 30,
1: + TEGRA_MUX_JTAG = 31,
1: + TEGRA_MUX_PE___2 = 32,
1: + TEGRA_MUX_PE0___2 = 33,
1: + TEGRA_MUX_PE1___2 = 34,
1: + TEGRA_MUX_PMI___2 = 35,
1: + TEGRA_MUX_PWM0___2 = 36,
1: + TEGRA_MUX_PWM1___2 = 37,
1: + TEGRA_MUX_PWM2___2 = 38,
1: + TEGRA_MUX_PWM3___2 = 39,
1: + TEGRA_MUX_QSPI = 40,
1: + TEGRA_MUX_RSVD0 = 41,
1: + TEGRA_MUX_RSVD1___2 = 42,
1: + TEGRA_MUX_RSVD2___2 = 43,
1: + TEGRA_MUX_RSVD3___2 = 44,
1: + TEGRA_MUX_SATA___2 = 45,
1: + TEGRA_MUX_SDMMC1___2 = 46,
1: + TEGRA_MUX_SDMMC3___2 = 47,
1: + TEGRA_MUX_SHUTDOWN = 48,
1: + TEGRA_MUX_SOC___2 = 49,
1: + TEGRA_MUX_SOR0 = 50,
1: + TEGRA_MUX_SOR1 = 51,
1: + TEGRA_MUX_SPDIF___2 = 52,
1: + TEGRA_MUX_SPI1___2 = 53,
1: + TEGRA_MUX_SPI2___2 = 54,
1: + TEGRA_MUX_SPI3___2 = 55,
1: + TEGRA_MUX_SPI4___2 = 56,
1: + TEGRA_MUX_SYS___2 = 57,
1: + TEGRA_MUX_TOUCH = 58,
1: + TEGRA_MUX_UART = 59,
1: + TEGRA_MUX_UARTA___2 = 60,
1: + TEGRA_MUX_UARTB___2 = 61,
1: + TEGRA_MUX_UARTC___2 = 62,
1: + TEGRA_MUX_UARTD___2 = 63,
1: + TEGRA_MUX_USB___2 = 64,
1: + TEGRA_MUX_VGP1___2 = 65,
1: + TEGRA_MUX_VGP2___2 = 66,
1: + TEGRA_MUX_VGP3___2 = 67,
1: + TEGRA_MUX_VGP4___2 = 68,
1: + TEGRA_MUX_VGP5___2 = 69,
1: + TEGRA_MUX_VGP6___2 = 70,
1: + TEGRA_MUX_VIMCLK = 71,
1: + TEGRA_MUX_VIMCLK2___2 = 72,
1: };
1:
1: struct tegra_xusb_padctl_function {
1: - const char *name;
1: - const char * const *groups;
1: - unsigned int num_groups;
1: + const char *name;
1: + const char *const *groups;
1: + unsigned int num_groups;
1: };
1:
1: struct tegra_xusb_padctl_lane;
1:
1: struct tegra_xusb_padctl_soc {
1: - const struct pinctrl_pin_desc *pins;
1: - unsigned int num_pins;
1: - const struct tegra_xusb_padctl_function *functions;
1: - unsigned int num_functions;
1: - const struct tegra_xusb_padctl_lane *lanes;
1: - unsigned int num_lanes;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int num_pins;
1: + const struct tegra_xusb_padctl_function *functions;
1: + unsigned int num_functions;
1: + const struct tegra_xusb_padctl_lane *lanes;
1: + unsigned int num_lanes;
1: };
1:
1: struct tegra_xusb_padctl_lane {
1: - const char *name;
1: - unsigned int offset;
1: - unsigned int shift;
1: - unsigned int mask;
1: - unsigned int iddq;
1: - const unsigned int *funcs;
1: - unsigned int num_funcs;
1: + const char *name;
1: + unsigned int offset;
1: + unsigned int shift;
1: + unsigned int mask;
1: + unsigned int iddq;
1: + const unsigned int *funcs;
1: + unsigned int num_funcs;
1: };
1:
1: struct tegra_xusb_padctl {
1: - struct device *dev;
1: - void *regs;
1: - struct mutex lock;
1: - struct reset_control *rst;
1: - const struct tegra_xusb_padctl_soc *soc;
1: - struct pinctrl_dev *pinctrl;
1: - struct pinctrl_desc desc;
1: - struct phy_provider *provider;
1: - struct phy *phys[2];
1: - unsigned int enable;
1: + struct device *dev;
1: + void *regs;
1: + struct mutex lock;
1: + struct reset_control *rst;
1: + const struct tegra_xusb_padctl_soc *soc;
1: + struct pinctrl_dev *pinctrl;
1: + struct pinctrl_desc desc;
1: + struct phy_provider *provider;
1: + struct phy *phys[2];
1: + unsigned int enable;
1: };
1:
1: enum tegra_xusb_padctl_param {
1: - TEGRA_XUSB_PADCTL_IDDQ = 0,
1: + TEGRA_XUSB_PADCTL_IDDQ = 0,
1: };
1:
1: struct tegra_xusb_padctl_property {
1: - const char *name;
1: - enum tegra_xusb_padctl_param param;
1: + const char *name;
1: + enum tegra_xusb_padctl_param param;
1: };
1:
1: enum tegra124_function {
1: - TEGRA124_FUNC_SNPS = 0,
1: - TEGRA124_FUNC_XUSB = 1,
1: - TEGRA124_FUNC_UART = 2,
1: - TEGRA124_FUNC_PCIE = 3,
1: - TEGRA124_FUNC_USB3 = 4,
1: - TEGRA124_FUNC_SATA = 5,
1: - TEGRA124_FUNC_RSVD = 6,
1: + TEGRA124_FUNC_SNPS = 0,
1: + TEGRA124_FUNC_XUSB = 1,
1: + TEGRA124_FUNC_UART = 2,
1: + TEGRA124_FUNC_PCIE = 3,
1: + TEGRA124_FUNC_USB3 = 4,
1: + TEGRA124_FUNC_SATA = 5,
1: + TEGRA124_FUNC_RSVD = 6,
1: };
1:
1: struct bcm2835_pinctrl {
1: - struct device *dev;
1: - void *base;
1: - int *wake_irq;
1: - long unsigned int enabled_irq_map[2];
1: - unsigned int irq_type[58];
1: - struct pinctrl_dev *pctl_dev;
1: - struct gpio_chip gpio_chip;
1: - struct pinctrl_desc pctl_desc;
1: - struct pinctrl_gpio_range gpio_range;
1: - raw_spinlock_t irq_lock[2];
1: + struct device *dev;
1: + void *base;
1: + int *wake_irq;
1: + long unsigned int enabled_irq_map[2];
1: + unsigned int irq_type[58];
1: + struct pinctrl_dev *pctl_dev;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_desc pctl_desc;
1: + struct pinctrl_gpio_range gpio_range;
1: + raw_spinlock_t irq_lock[2];
1: };
1:
1: enum bcm2835_fsel {
1: - BCM2835_FSEL_COUNT = 8,
1: - BCM2835_FSEL_MASK = 7,
1: + BCM2835_FSEL_COUNT = 8,
1: + BCM2835_FSEL_MASK = 7,
1: };
1:
1: struct bcm_plat_data {
1: - const struct gpio_chip *gpio_chip;
1: - const struct pinctrl_desc *pctl_desc;
1: - const struct pinctrl_gpio_range *gpio_range;
1: + const struct gpio_chip *gpio_chip;
1: + const struct pinctrl_desc *pctl_desc;
1: + const struct pinctrl_gpio_range *gpio_range;
1: };
1:
1: struct mvebu_mpp_ctrl_data {
1: - union {
1: - void *base;
1: - struct {
1: - struct regmap *map;
1: - u32 offset;
1: - } regmap;
1: - };
1: + union {
1: + void *base;
1: + struct {
1: + struct regmap *map;
1: + u32 offset;
1: + } regmap;
1: + };
1: };
1:
1: struct mvebu_mpp_ctrl {
1: - const char *name;
1: - u8 pid;
1: - u8 npins;
1: - unsigned int *pins;
1: - int (*mpp_get)(struct mvebu_mpp_ctrl_data *, unsigned int, long unsigned int *);
1: - int (*mpp_set)(struct mvebu_mpp_ctrl_data *, unsigned int, long unsigned int);
1: - int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *, unsigned int);
1: - int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *, unsigned int, bool);
1: + const char *name;
1: + u8 pid;
1: + u8 npins;
1: + unsigned int *pins;
1: + int (*mpp_get)(struct mvebu_mpp_ctrl_data *, unsigned int,
1: + long unsigned int *);
1: + int (*mpp_set)(struct mvebu_mpp_ctrl_data *, unsigned int, long unsigned int);
1: + int (*mpp_gpio_req)(struct mvebu_mpp_ctrl_data *, unsigned int);
1: + int (*mpp_gpio_dir)(struct mvebu_mpp_ctrl_data *, unsigned int, bool);
1: };
1:
1: struct mvebu_mpp_ctrl_setting {
1: - u8 val;
1: - const char *name;
1: - const char *subname;
1: - u8 variant;
1: - u8 flags;
1: + u8 val;
1: + const char *name;
1: + const char *subname;
1: + u8 variant;
1: + u8 flags;
1: };
1:
1: struct mvebu_mpp_mode {
1: - u8 pid;
1: - struct mvebu_mpp_ctrl_setting *settings;
1: + u8 pid;
1: + struct mvebu_mpp_ctrl_setting *settings;
1: };
1:
1: struct mvebu_pinctrl_soc_info {
1: - u8 variant;
1: - const struct mvebu_mpp_ctrl *controls;
1: - struct mvebu_mpp_ctrl_data *control_data;
1: - int ncontrols;
1: - struct mvebu_mpp_mode *modes;
1: - int nmodes;
1: - struct pinctrl_gpio_range *gpioranges;
1: - int ngpioranges;
1: + u8 variant;
1: + const struct mvebu_mpp_ctrl *controls;
1: + struct mvebu_mpp_ctrl_data *control_data;
1: + int ncontrols;
1: + struct mvebu_mpp_mode *modes;
1: + int nmodes;
1: + struct pinctrl_gpio_range *gpioranges;
1: + int ngpioranges;
1: };
1:
1: struct mvebu_pinctrl_function {
1: - const char *name;
1: - const char **groups;
1: - unsigned int num_groups;
1: + const char *name;
1: + const char **groups;
1: + unsigned int num_groups;
1: };
1:
1: struct mvebu_pinctrl_group {
1: - const char *name;
1: - const struct mvebu_mpp_ctrl *ctrl;
1: - struct mvebu_mpp_ctrl_data *data;
1: - struct mvebu_mpp_ctrl_setting *settings;
1: - unsigned int num_settings;
1: - unsigned int gid;
1: - unsigned int *pins;
1: - unsigned int npins;
1: + const char *name;
1: + const struct mvebu_mpp_ctrl *ctrl;
1: + struct mvebu_mpp_ctrl_data *data;
1: + struct mvebu_mpp_ctrl_setting *settings;
1: + unsigned int num_settings;
1: + unsigned int gid;
1: + unsigned int *pins;
1: + unsigned int npins;
1: };
1:
1: struct mvebu_pinctrl {
1: - struct device *dev;
1: - struct pinctrl_dev *pctldev;
1: - struct pinctrl_desc desc;
1: - struct mvebu_pinctrl_group *groups;
1: - unsigned int num_groups;
1: - struct mvebu_pinctrl_function *functions;
1: - unsigned int num_functions;
1: - u8 variant;
1: + struct device *dev;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_desc desc;
1: + struct mvebu_pinctrl_group *groups;
1: + unsigned int num_groups;
1: + struct mvebu_pinctrl_function *functions;
1: + unsigned int num_functions;
1: + u8 variant;
1: };
1:
1: enum {
1: - V_ARMADA_7K = 1,
1: - V_ARMADA_8K_CPM = 2,
1: - V_ARMADA_8K_CPS = 4,
1: - V_CP115_STANDALONE = 8,
1: - V_ARMADA_7K_8K_CPM = 3,
1: - V_ARMADA_7K_8K_CPS = 5,
1: + V_ARMADA_7K = 1,
1: + V_ARMADA_8K_CPM = 2,
1: + V_ARMADA_8K_CPS = 4,
1: + V_CP115_STANDALONE = 8,
1: + V_ARMADA_7K_8K_CPM = 3,
1: + V_ARMADA_7K_8K_CPS = 5,
1: };
1:
1: struct armada_37xx_pin_group {
1: - const char *name;
1: - unsigned int start_pin;
1: - unsigned int npins;
1: - u32 reg_mask;
1: - u32 val[3];
1: - unsigned int extra_pin;
1: - unsigned int extra_npins;
1: - const char *funcs[3];
1: - unsigned int *pins;
1: + const char *name;
1: + unsigned int start_pin;
1: + unsigned int npins;
1: + u32 reg_mask;
1: + u32 val[3];
1: + unsigned int extra_pin;
1: + unsigned int extra_npins;
1: + const char *funcs[3];
1: + unsigned int *pins;
1: };
1:
1: struct armada_37xx_pin_data {
1: - u8 nr_pins;
1: - char *name;
1: - struct armada_37xx_pin_group *groups;
1: - int ngroups;
1: + u8 nr_pins;
1: + char *name;
1: + struct armada_37xx_pin_group *groups;
1: + int ngroups;
1: };
1:
1: struct armada_37xx_pmx_func {
1: - const char *name;
1: - const char **groups;
1: - unsigned int ngroups;
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: };
1:
1: struct armada_37xx_pm_state {
1: - u32 out_en_l;
1: - u32 out_en_h;
1: - u32 out_val_l;
1: - u32 out_val_h;
1: - u32 irq_en_l;
1: - u32 irq_en_h;
1: - u32 irq_pol_l;
1: - u32 irq_pol_h;
1: - u32 selection;
1: + u32 out_en_l;
1: + u32 out_en_h;
1: + u32 out_val_l;
1: + u32 out_val_h;
1: + u32 irq_en_l;
1: + u32 irq_en_h;
1: + u32 irq_pol_l;
1: + u32 irq_pol_h;
1: + u32 selection;
1: };
1:
1: struct armada_37xx_pinctrl {
1: - struct regmap *regmap;
1: - void *base;
1: - const struct armada_37xx_pin_data *data;
1: - struct device *dev;
1: - struct gpio_chip gpio_chip;
1: - struct irq_chip irq_chip;
1: - spinlock_t irq_lock;
1: - struct pinctrl_desc pctl;
1: - struct pinctrl_dev *pctl_dev;
1: - struct armada_37xx_pin_group *groups;
1: - unsigned int ngroups;
1: - struct armada_37xx_pmx_func *funcs;
1: - unsigned int nfuncs;
1: - struct armada_37xx_pm_state pm;
1: + struct regmap *regmap;
1: + void *base;
1: + const struct armada_37xx_pin_data *data;
1: + struct device *dev;
1: + struct gpio_chip gpio_chip;
1: + struct irq_chip irq_chip;
1: + spinlock_t irq_lock;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + struct armada_37xx_pin_group *groups;
1: + unsigned int ngroups;
1: + struct armada_37xx_pmx_func *funcs;
1: + unsigned int nfuncs;
1: + struct armada_37xx_pm_state pm;
1: };
1:
1: struct msm_function {
1: - const char *name;
1: - const char * const *groups;
1: - unsigned int ngroups;
1: + const char *name;
1: + const char *const *groups;
1: + unsigned int ngroups;
1: };
1:
1: struct msm_pingroup {
1: - const char *name;
1: - const unsigned int *pins;
1: - unsigned int npins;
1: - unsigned int *funcs;
1: - unsigned int nfuncs;
1: - u32 ctl_reg;
1: - u32 io_reg;
1: - u32 intr_cfg_reg;
1: - u32 intr_status_reg;
1: - u32 intr_target_reg;
1: - unsigned int tile: 2;
1: - unsigned int mux_bit: 5;
1: - unsigned int pull_bit: 5;
1: - unsigned int drv_bit: 5;
1: - unsigned int od_bit: 5;
1: - unsigned int oe_bit: 5;
1: - unsigned int in_bit: 5;
1: - unsigned int out_bit: 5;
1: - unsigned int intr_enable_bit: 5;
1: - unsigned int intr_status_bit: 5;
1: - unsigned int intr_ack_high: 1;
1: - unsigned int intr_target_bit: 5;
1: - unsigned int intr_target_kpss_val: 5;
1: - unsigned int intr_raw_status_bit: 5;
1: - char: 1;
1: - unsigned int intr_polarity_bit: 5;
1: - unsigned int intr_detection_bit: 5;
1: - unsigned int intr_detection_width: 5;
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int npins;
1: + unsigned int *funcs;
1: + unsigned int nfuncs;
1: + u32 ctl_reg;
1: + u32 io_reg;
1: + u32 intr_cfg_reg;
1: + u32 intr_status_reg;
1: + u32 intr_target_reg;
1: + unsigned int tile : 2;
1: + unsigned int mux_bit : 5;
1: + unsigned int pull_bit : 5;
1: + unsigned int drv_bit : 5;
1: + unsigned int od_bit : 5;
1: + unsigned int oe_bit : 5;
1: + unsigned int in_bit : 5;
1: + unsigned int out_bit : 5;
1: + unsigned int intr_enable_bit : 5;
1: + unsigned int intr_status_bit : 5;
1: + unsigned int intr_ack_high : 1;
1: + unsigned int intr_target_bit : 5;
1: + unsigned int intr_target_kpss_val : 5;
1: + unsigned int intr_raw_status_bit : 5;
1: + char : 1;
1: + unsigned int intr_polarity_bit : 5;
1: + unsigned int intr_detection_bit : 5;
1: + unsigned int intr_detection_width : 5;
1: };
1:
1: struct msm_gpio_wakeirq_map {
1: - unsigned int gpio;
1: - unsigned int wakeirq;
1: + unsigned int gpio;
1: + unsigned int wakeirq;
1: };
1:
1: struct msm_pinctrl_soc_data {
1: - const struct pinctrl_pin_desc *pins;
1: - unsigned int npins;
1: - const struct msm_function *functions;
1: - unsigned int nfunctions;
1: - const struct msm_pingroup *groups;
1: - unsigned int ngroups;
1: - unsigned int ngpios;
1: - bool pull_no_keeper;
1: - const char * const *tiles;
1: - unsigned int ntiles;
1: - const int *reserved_gpios;
1: - const struct msm_gpio_wakeirq_map *wakeirq_map;
1: - unsigned int nwakeirq_map;
1: - bool wakeirq_dual_edge_errata;
1: - unsigned int gpio_func;
1: + const struct pinctrl_pin_desc *pins;
1: + unsigned int npins;
1: + const struct msm_function *functions;
1: + unsigned int nfunctions;
1: + const struct msm_pingroup *groups;
1: + unsigned int ngroups;
1: + unsigned int ngpios;
1: + bool pull_no_keeper;
1: + const char *const *tiles;
1: + unsigned int ntiles;
1: + const int *reserved_gpios;
1: + const struct msm_gpio_wakeirq_map *wakeirq_map;
1: + unsigned int nwakeirq_map;
1: + bool wakeirq_dual_edge_errata;
1: + unsigned int gpio_func;
1: };
1:
1: struct msm_pinctrl {
1: - struct device *dev;
1: - struct pinctrl_dev *pctrl;
1: - struct gpio_chip chip;
1: - struct pinctrl_desc desc;
1: - struct notifier_block restart_nb;
1: - struct irq_chip irq_chip;
1: - int irq;
1: - bool intr_target_use_scm;
1: - raw_spinlock_t lock;
1: - long unsigned int dual_edge_irqs[5];
1: - long unsigned int enabled_irqs[5];
1: - long unsigned int skip_wake_irqs[5];
1: - long unsigned int disabled_for_mux[5];
1: - const struct msm_pinctrl_soc_data *soc;
1: - void *regs[4];
1: - u32 phys_base[4];
1: + struct device *dev;
1: + struct pinctrl_dev *pctrl;
1: + struct gpio_chip chip;
1: + struct pinctrl_desc desc;
1: + struct notifier_block restart_nb;
1: + struct irq_chip irq_chip;
1: + int irq;
1: + bool intr_target_use_scm;
1: + raw_spinlock_t lock;
1: + long unsigned int dual_edge_irqs[5];
1: + long unsigned int enabled_irqs[5];
1: + long unsigned int skip_wake_irqs[5];
1: + long unsigned int disabled_for_mux[5];
1: + const struct msm_pinctrl_soc_data *soc;
1: + void *regs[4];
1: + u32 phys_base[4];
1: };
1:
1: enum msm8916_functions {
1: - MSM_MUX_adsp_ext = 0,
1: - MSM_MUX_alsp_int = 1,
1: - MSM_MUX_atest_bbrx0 = 2,
1: - MSM_MUX_atest_bbrx1 = 3,
1: - MSM_MUX_atest_char = 4,
1: - MSM_MUX_atest_char0 = 5,
1: - MSM_MUX_atest_char1 = 6,
1: - MSM_MUX_atest_char2 = 7,
1: - MSM_MUX_atest_char3 = 8,
1: - MSM_MUX_atest_combodac = 9,
1: - MSM_MUX_atest_gpsadc0 = 10,
1: - MSM_MUX_atest_gpsadc1 = 11,
1: - MSM_MUX_atest_tsens = 12,
1: - MSM_MUX_atest_wlan0 = 13,
1: - MSM_MUX_atest_wlan1 = 14,
1: - MSM_MUX_backlight_en = 15,
1: - MSM_MUX_bimc_dte0 = 16,
1: - MSM_MUX_bimc_dte1 = 17,
1: - MSM_MUX_blsp_i2c1 = 18,
1: - MSM_MUX_blsp_i2c2 = 19,
1: - MSM_MUX_blsp_i2c3 = 20,
1: - MSM_MUX_blsp_i2c4 = 21,
1: - MSM_MUX_blsp_i2c5 = 22,
1: - MSM_MUX_blsp_i2c6 = 23,
1: - MSM_MUX_blsp_spi1 = 24,
1: - MSM_MUX_blsp_spi1_cs1 = 25,
1: - MSM_MUX_blsp_spi1_cs2 = 26,
1: - MSM_MUX_blsp_spi1_cs3 = 27,
1: - MSM_MUX_blsp_spi2 = 28,
1: - MSM_MUX_blsp_spi2_cs1 = 29,
1: - MSM_MUX_blsp_spi2_cs2 = 30,
1: - MSM_MUX_blsp_spi2_cs3 = 31,
1: - MSM_MUX_blsp_spi3 = 32,
1: - MSM_MUX_blsp_spi3_cs1 = 33,
1: - MSM_MUX_blsp_spi3_cs2 = 34,
1: - MSM_MUX_blsp_spi3_cs3 = 35,
1: - MSM_MUX_blsp_spi4 = 36,
1: - MSM_MUX_blsp_spi5 = 37,
1: - MSM_MUX_blsp_spi6 = 38,
1: - MSM_MUX_blsp_uart1 = 39,
1: - MSM_MUX_blsp_uart2 = 40,
1: - MSM_MUX_blsp_uim1 = 41,
1: - MSM_MUX_blsp_uim2 = 42,
1: - MSM_MUX_cam1_rst = 43,
1: - MSM_MUX_cam1_standby = 44,
1: - MSM_MUX_cam_mclk0 = 45,
1: - MSM_MUX_cam_mclk1 = 46,
1: - MSM_MUX_cci_async = 47,
1: - MSM_MUX_cci_i2c = 48,
1: - MSM_MUX_cci_timer0 = 49,
1: - MSM_MUX_cci_timer1 = 50,
1: - MSM_MUX_cci_timer2 = 51,
1: - MSM_MUX_cdc_pdm0 = 52,
1: - MSM_MUX_codec_mad = 53,
1: - MSM_MUX_dbg_out = 54,
1: - MSM_MUX_display_5v = 55,
1: - MSM_MUX_dmic0_clk = 56,
1: - MSM_MUX_dmic0_data = 57,
1: - MSM_MUX_dsi_rst = 58,
1: - MSM_MUX_ebi0_wrcdc = 59,
1: - MSM_MUX_euro_us = 60,
1: - MSM_MUX_ext_lpass = 61,
1: - MSM_MUX_flash_strobe = 62,
1: - MSM_MUX_gcc_gp1_clk_a = 63,
1: - MSM_MUX_gcc_gp1_clk_b = 64,
1: - MSM_MUX_gcc_gp2_clk_a = 65,
1: - MSM_MUX_gcc_gp2_clk_b = 66,
1: - MSM_MUX_gcc_gp3_clk_a = 67,
1: - MSM_MUX_gcc_gp3_clk_b = 68,
1: - MSM_MUX_gpio = 69,
1: - MSM_MUX_gsm0_tx0 = 70,
1: - MSM_MUX_gsm0_tx1 = 71,
1: - MSM_MUX_gsm1_tx0 = 72,
1: - MSM_MUX_gsm1_tx1 = 73,
1: - MSM_MUX_gyro_accl = 74,
1: - MSM_MUX_kpsns0 = 75,
1: - MSM_MUX_kpsns1 = 76,
1: - MSM_MUX_kpsns2 = 77,
1: - MSM_MUX_ldo_en = 78,
1: - MSM_MUX_ldo_update = 79,
1: - MSM_MUX_mag_int = 80,
1: - MSM_MUX_mdp_vsync = 81,
1: - MSM_MUX_modem_tsync = 82,
1: - MSM_MUX_m_voc = 83,
1: - MSM_MUX_nav_pps = 84,
1: - MSM_MUX_nav_tsync = 85,
1: - MSM_MUX_pa_indicator = 86,
1: - MSM_MUX_pbs0 = 87,
1: - MSM_MUX_pbs1 = 88,
1: - MSM_MUX_pbs2 = 89,
1: - MSM_MUX_pri_mi2s = 90,
1: - MSM_MUX_pri_mi2s_ws = 91,
1: - MSM_MUX_prng_rosc = 92,
1: - MSM_MUX_pwr_crypto_enabled_a = 93,
1: - MSM_MUX_pwr_crypto_enabled_b = 94,
1: - MSM_MUX_pwr_modem_enabled_a = 95,
1: - MSM_MUX_pwr_modem_enabled_b = 96,
1: - MSM_MUX_pwr_nav_enabled_a = 97,
1: - MSM_MUX_pwr_nav_enabled_b = 98,
1: - MSM_MUX_qdss_ctitrig_in_a0 = 99,
1: - MSM_MUX_qdss_ctitrig_in_a1 = 100,
1: - MSM_MUX_qdss_ctitrig_in_b0 = 101,
1: - MSM_MUX_qdss_ctitrig_in_b1 = 102,
1: - MSM_MUX_qdss_ctitrig_out_a0 = 103,
1: - MSM_MUX_qdss_ctitrig_out_a1 = 104,
1: - MSM_MUX_qdss_ctitrig_out_b0 = 105,
1: - MSM_MUX_qdss_ctitrig_out_b1 = 106,
1: - MSM_MUX_qdss_traceclk_a = 107,
1: - MSM_MUX_qdss_traceclk_b = 108,
1: - MSM_MUX_qdss_tracectl_a = 109,
1: - MSM_MUX_qdss_tracectl_b = 110,
1: - MSM_MUX_qdss_tracedata_a = 111,
1: - MSM_MUX_qdss_tracedata_b = 112,
1: - MSM_MUX_reset_n = 113,
1: - MSM_MUX_sd_card = 114,
1: - MSM_MUX_sd_write = 115,
1: - MSM_MUX_sec_mi2s = 116,
1: - MSM_MUX_smb_int = 117,
1: - MSM_MUX_ssbi_wtr0 = 118,
1: - MSM_MUX_ssbi_wtr1 = 119,
1: - MSM_MUX_uim1 = 120,
1: - MSM_MUX_uim2 = 121,
1: - MSM_MUX_uim3 = 122,
1: - MSM_MUX_uim_batt = 123,
1: - MSM_MUX_wcss_bt = 124,
1: - MSM_MUX_wcss_fm = 125,
1: - MSM_MUX_wcss_wlan = 126,
1: - MSM_MUX_webcam1_rst = 127,
1: - MSM_MUX_NA = 128,
1: + MSM_MUX_adsp_ext = 0,
1: + MSM_MUX_alsp_int = 1,
1: + MSM_MUX_atest_bbrx0 = 2,
1: + MSM_MUX_atest_bbrx1 = 3,
1: + MSM_MUX_atest_char = 4,
1: + MSM_MUX_atest_char0 = 5,
1: + MSM_MUX_atest_char1 = 6,
1: + MSM_MUX_atest_char2 = 7,
1: + MSM_MUX_atest_char3 = 8,
1: + MSM_MUX_atest_combodac = 9,
1: + MSM_MUX_atest_gpsadc0 = 10,
1: + MSM_MUX_atest_gpsadc1 = 11,
1: + MSM_MUX_atest_tsens = 12,
1: + MSM_MUX_atest_wlan0 = 13,
1: + MSM_MUX_atest_wlan1 = 14,
1: + MSM_MUX_backlight_en = 15,
1: + MSM_MUX_bimc_dte0 = 16,
1: + MSM_MUX_bimc_dte1 = 17,
1: + MSM_MUX_blsp_i2c1 = 18,
1: + MSM_MUX_blsp_i2c2 = 19,
1: + MSM_MUX_blsp_i2c3 = 20,
1: + MSM_MUX_blsp_i2c4 = 21,
1: + MSM_MUX_blsp_i2c5 = 22,
1: + MSM_MUX_blsp_i2c6 = 23,
1: + MSM_MUX_blsp_spi1 = 24,
1: + MSM_MUX_blsp_spi1_cs1 = 25,
1: + MSM_MUX_blsp_spi1_cs2 = 26,
1: + MSM_MUX_blsp_spi1_cs3 = 27,
1: + MSM_MUX_blsp_spi2 = 28,
1: + MSM_MUX_blsp_spi2_cs1 = 29,
1: + MSM_MUX_blsp_spi2_cs2 = 30,
1: + MSM_MUX_blsp_spi2_cs3 = 31,
1: + MSM_MUX_blsp_spi3 = 32,
1: + MSM_MUX_blsp_spi3_cs1 = 33,
1: + MSM_MUX_blsp_spi3_cs2 = 34,
1: + MSM_MUX_blsp_spi3_cs3 = 35,
1: + MSM_MUX_blsp_spi4 = 36,
1: + MSM_MUX_blsp_spi5 = 37,
1: + MSM_MUX_blsp_spi6 = 38,
1: + MSM_MUX_blsp_uart1 = 39,
1: + MSM_MUX_blsp_uart2 = 40,
1: + MSM_MUX_blsp_uim1 = 41,
1: + MSM_MUX_blsp_uim2 = 42,
1: + MSM_MUX_cam1_rst = 43,
1: + MSM_MUX_cam1_standby = 44,
1: + MSM_MUX_cam_mclk0 = 45,
1: + MSM_MUX_cam_mclk1 = 46,
1: + MSM_MUX_cci_async = 47,
1: + MSM_MUX_cci_i2c = 48,
1: + MSM_MUX_cci_timer0 = 49,
1: + MSM_MUX_cci_timer1 = 50,
1: + MSM_MUX_cci_timer2 = 51,
1: + MSM_MUX_cdc_pdm0 = 52,
1: + MSM_MUX_codec_mad = 53,
1: + MSM_MUX_dbg_out = 54,
1: + MSM_MUX_display_5v = 55,
1: + MSM_MUX_dmic0_clk = 56,
1: + MSM_MUX_dmic0_data = 57,
1: + MSM_MUX_dsi_rst = 58,
1: + MSM_MUX_ebi0_wrcdc = 59,
1: + MSM_MUX_euro_us = 60,
1: + MSM_MUX_ext_lpass = 61,
1: + MSM_MUX_flash_strobe = 62,
1: + MSM_MUX_gcc_gp1_clk_a = 63,
1: + MSM_MUX_gcc_gp1_clk_b = 64,
1: + MSM_MUX_gcc_gp2_clk_a = 65,
1: + MSM_MUX_gcc_gp2_clk_b = 66,
1: + MSM_MUX_gcc_gp3_clk_a = 67,
1: + MSM_MUX_gcc_gp3_clk_b = 68,
1: + MSM_MUX_gpio = 69,
1: + MSM_MUX_gsm0_tx0 = 70,
1: + MSM_MUX_gsm0_tx1 = 71,
1: + MSM_MUX_gsm1_tx0 = 72,
1: + MSM_MUX_gsm1_tx1 = 73,
1: + MSM_MUX_gyro_accl = 74,
1: + MSM_MUX_kpsns0 = 75,
1: + MSM_MUX_kpsns1 = 76,
1: + MSM_MUX_kpsns2 = 77,
1: + MSM_MUX_ldo_en = 78,
1: + MSM_MUX_ldo_update = 79,
1: + MSM_MUX_mag_int = 80,
1: + MSM_MUX_mdp_vsync = 81,
1: + MSM_MUX_modem_tsync = 82,
1: + MSM_MUX_m_voc = 83,
1: + MSM_MUX_nav_pps = 84,
1: + MSM_MUX_nav_tsync = 85,
1: + MSM_MUX_pa_indicator = 86,
1: + MSM_MUX_pbs0 = 87,
1: + MSM_MUX_pbs1 = 88,
1: + MSM_MUX_pbs2 = 89,
1: + MSM_MUX_pri_mi2s = 90,
1: + MSM_MUX_pri_mi2s_ws = 91,
1: + MSM_MUX_prng_rosc = 92,
1: + MSM_MUX_pwr_crypto_enabled_a = 93,
1: + MSM_MUX_pwr_crypto_enabled_b = 94,
1: + MSM_MUX_pwr_modem_enabled_a = 95,
1: + MSM_MUX_pwr_modem_enabled_b = 96,
1: + MSM_MUX_pwr_nav_enabled_a = 97,
1: + MSM_MUX_pwr_nav_enabled_b = 98,
1: + MSM_MUX_qdss_ctitrig_in_a0 = 99,
1: + MSM_MUX_qdss_ctitrig_in_a1 = 100,
1: + MSM_MUX_qdss_ctitrig_in_b0 = 101,
1: + MSM_MUX_qdss_ctitrig_in_b1 = 102,
1: + MSM_MUX_qdss_ctitrig_out_a0 = 103,
1: + MSM_MUX_qdss_ctitrig_out_a1 = 104,
1: + MSM_MUX_qdss_ctitrig_out_b0 = 105,
1: + MSM_MUX_qdss_ctitrig_out_b1 = 106,
1: + MSM_MUX_qdss_traceclk_a = 107,
1: + MSM_MUX_qdss_traceclk_b = 108,
1: + MSM_MUX_qdss_tracectl_a = 109,
1: + MSM_MUX_qdss_tracectl_b = 110,
1: + MSM_MUX_qdss_tracedata_a = 111,
1: + MSM_MUX_qdss_tracedata_b = 112,
1: + MSM_MUX_reset_n = 113,
1: + MSM_MUX_sd_card = 114,
1: + MSM_MUX_sd_write = 115,
1: + MSM_MUX_sec_mi2s = 116,
1: + MSM_MUX_smb_int = 117,
1: + MSM_MUX_ssbi_wtr0 = 118,
1: + MSM_MUX_ssbi_wtr1 = 119,
1: + MSM_MUX_uim1 = 120,
1: + MSM_MUX_uim2 = 121,
1: + MSM_MUX_uim3 = 122,
1: + MSM_MUX_uim_batt = 123,
1: + MSM_MUX_wcss_bt = 124,
1: + MSM_MUX_wcss_fm = 125,
1: + MSM_MUX_wcss_wlan = 126,
1: + MSM_MUX_webcam1_rst = 127,
1: + MSM_MUX_NA = 128,
1: };
1:
1: enum msm8994_functions {
1: - MSM_MUX_audio_ref_clk = 0,
1: - MSM_MUX_blsp_i2c1___2 = 1,
1: - MSM_MUX_blsp_i2c2___2 = 2,
1: - MSM_MUX_blsp_i2c3___2 = 3,
1: - MSM_MUX_blsp_i2c4___2 = 4,
1: - MSM_MUX_blsp_i2c5___2 = 5,
1: - MSM_MUX_blsp_i2c6___2 = 6,
1: - MSM_MUX_blsp_i2c7 = 7,
1: - MSM_MUX_blsp_i2c8 = 8,
1: - MSM_MUX_blsp_i2c9 = 9,
1: - MSM_MUX_blsp_i2c10 = 10,
1: - MSM_MUX_blsp_i2c11 = 11,
1: - MSM_MUX_blsp_i2c12 = 12,
1: - MSM_MUX_blsp_spi1___2 = 13,
1: - MSM_MUX_blsp_spi1_cs1___2 = 14,
1: - MSM_MUX_blsp_spi1_cs2___2 = 15,
1: - MSM_MUX_blsp_spi1_cs3___2 = 16,
1: - MSM_MUX_blsp_spi2___2 = 17,
1: - MSM_MUX_blsp_spi2_cs1___2 = 18,
1: - MSM_MUX_blsp_spi2_cs2___2 = 19,
1: - MSM_MUX_blsp_spi2_cs3___2 = 20,
1: - MSM_MUX_blsp_spi3___2 = 21,
1: - MSM_MUX_blsp_spi4___2 = 22,
1: - MSM_MUX_blsp_spi5___2 = 23,
1: - MSM_MUX_blsp_spi6___2 = 24,
1: - MSM_MUX_blsp_spi7 = 25,
1: - MSM_MUX_blsp_spi8 = 26,
1: - MSM_MUX_blsp_spi9 = 27,
1: - MSM_MUX_blsp_spi10 = 28,
1: - MSM_MUX_blsp_spi10_cs1 = 29,
1: - MSM_MUX_blsp_spi10_cs2 = 30,
1: - MSM_MUX_blsp_spi10_cs3 = 31,
1: - MSM_MUX_blsp_spi11 = 32,
1: - MSM_MUX_blsp_spi12 = 33,
1: - MSM_MUX_blsp_uart1___2 = 34,
1: - MSM_MUX_blsp_uart2___2 = 35,
1: - MSM_MUX_blsp_uart3 = 36,
1: - MSM_MUX_blsp_uart4 = 37,
1: - MSM_MUX_blsp_uart5 = 38,
1: - MSM_MUX_blsp_uart6 = 39,
1: - MSM_MUX_blsp_uart7 = 40,
1: - MSM_MUX_blsp_uart8 = 41,
1: - MSM_MUX_blsp_uart9 = 42,
1: - MSM_MUX_blsp_uart10 = 43,
1: - MSM_MUX_blsp_uart11 = 44,
1: - MSM_MUX_blsp_uart12 = 45,
1: - MSM_MUX_blsp_uim1___2 = 46,
1: - MSM_MUX_blsp_uim2___2 = 47,
1: - MSM_MUX_blsp_uim3 = 48,
1: - MSM_MUX_blsp_uim4 = 49,
1: - MSM_MUX_blsp_uim5 = 50,
1: - MSM_MUX_blsp_uim6 = 51,
1: - MSM_MUX_blsp_uim7 = 52,
1: - MSM_MUX_blsp_uim8 = 53,
1: - MSM_MUX_blsp_uim9 = 54,
1: - MSM_MUX_blsp_uim10 = 55,
1: - MSM_MUX_blsp_uim11 = 56,
1: - MSM_MUX_blsp_uim12 = 57,
1: - MSM_MUX_blsp11_i2c_scl_b = 58,
1: - MSM_MUX_blsp11_i2c_sda_b = 59,
1: - MSM_MUX_blsp11_uart_rx_b = 60,
1: - MSM_MUX_blsp11_uart_tx_b = 61,
1: - MSM_MUX_cam_mclk0___2 = 62,
1: - MSM_MUX_cam_mclk1___2 = 63,
1: - MSM_MUX_cam_mclk2 = 64,
1: - MSM_MUX_cam_mclk3 = 65,
1: - MSM_MUX_cci_async_in0 = 66,
1: - MSM_MUX_cci_async_in1 = 67,
1: - MSM_MUX_cci_async_in2 = 68,
1: - MSM_MUX_cci_i2c0 = 69,
1: - MSM_MUX_cci_i2c1 = 70,
1: - MSM_MUX_cci_timer0___2 = 71,
1: - MSM_MUX_cci_timer1___2 = 72,
1: - MSM_MUX_cci_timer2___2 = 73,
1: - MSM_MUX_cci_timer3 = 74,
1: - MSM_MUX_cci_timer4 = 75,
1: - MSM_MUX_gcc_gp1_clk_a___2 = 76,
1: - MSM_MUX_gcc_gp1_clk_b___2 = 77,
1: - MSM_MUX_gcc_gp2_clk_a___2 = 78,
1: - MSM_MUX_gcc_gp2_clk_b___2 = 79,
1: - MSM_MUX_gcc_gp3_clk_a___2 = 80,
1: - MSM_MUX_gcc_gp3_clk_b___2 = 81,
1: - MSM_MUX_gp_mn = 82,
1: - MSM_MUX_gp_pdm0 = 83,
1: - MSM_MUX_gp_pdm1 = 84,
1: - MSM_MUX_gp_pdm2 = 85,
1: - MSM_MUX_gp0_clk = 86,
1: - MSM_MUX_gp1_clk = 87,
1: - MSM_MUX_gps_tx = 88,
1: - MSM_MUX_gsm_tx = 89,
1: - MSM_MUX_hdmi_cec = 90,
1: - MSM_MUX_hdmi_ddc = 91,
1: - MSM_MUX_hdmi_hpd = 92,
1: - MSM_MUX_hdmi_rcv = 93,
1: - MSM_MUX_mdp_vsync___2 = 94,
1: - MSM_MUX_mss_lte = 95,
1: - MSM_MUX_nav_pps___2 = 96,
1: - MSM_MUX_nav_tsync___2 = 97,
1: - MSM_MUX_qdss_cti_trig_in_a = 98,
1: - MSM_MUX_qdss_cti_trig_in_b = 99,
1: - MSM_MUX_qdss_cti_trig_in_c = 100,
1: - MSM_MUX_qdss_cti_trig_in_d = 101,
1: - MSM_MUX_qdss_cti_trig_out_a = 102,
1: - MSM_MUX_qdss_cti_trig_out_b = 103,
1: - MSM_MUX_qdss_cti_trig_out_c = 104,
1: - MSM_MUX_qdss_cti_trig_out_d = 105,
1: - MSM_MUX_qdss_traceclk_a___2 = 106,
1: - MSM_MUX_qdss_traceclk_b___2 = 107,
1: - MSM_MUX_qdss_tracectl_a___2 = 108,
1: - MSM_MUX_qdss_tracectl_b___2 = 109,
1: - MSM_MUX_qdss_tracedata_a___2 = 110,
1: - MSM_MUX_qdss_tracedata_b___2 = 111,
1: - MSM_MUX_qua_mi2s = 112,
1: - MSM_MUX_pci_e0 = 113,
1: - MSM_MUX_pci_e1 = 114,
1: - MSM_MUX_pri_mi2s___2 = 115,
1: - MSM_MUX_sdc4 = 116,
1: - MSM_MUX_sec_mi2s___2 = 117,
1: - MSM_MUX_slimbus = 118,
1: - MSM_MUX_spkr_i2s = 119,
1: - MSM_MUX_ter_mi2s = 120,
1: - MSM_MUX_tsif1 = 121,
1: - MSM_MUX_tsif2 = 122,
1: - MSM_MUX_uim1___2 = 123,
1: - MSM_MUX_uim2___2 = 124,
1: - MSM_MUX_uim3___2 = 125,
1: - MSM_MUX_uim4 = 126,
1: - MSM_MUX_uim_batt_alarm = 127,
1: - MSM_MUX_gpio___2 = 128,
1: - MSM_MUX_NA___2 = 129,
1: + MSM_MUX_audio_ref_clk = 0,
1: + MSM_MUX_blsp_i2c1___2 = 1,
1: + MSM_MUX_blsp_i2c2___2 = 2,
1: + MSM_MUX_blsp_i2c3___2 = 3,
1: + MSM_MUX_blsp_i2c4___2 = 4,
1: + MSM_MUX_blsp_i2c5___2 = 5,
1: + MSM_MUX_blsp_i2c6___2 = 6,
1: + MSM_MUX_blsp_i2c7 = 7,
1: + MSM_MUX_blsp_i2c8 = 8,
1: + MSM_MUX_blsp_i2c9 = 9,
1: + MSM_MUX_blsp_i2c10 = 10,
1: + MSM_MUX_blsp_i2c11 = 11,
1: + MSM_MUX_blsp_i2c12 = 12,
1: + MSM_MUX_blsp_spi1___2 = 13,
1: + MSM_MUX_blsp_spi1_cs1___2 = 14,
1: + MSM_MUX_blsp_spi1_cs2___2 = 15,
1: + MSM_MUX_blsp_spi1_cs3___2 = 16,
1: + MSM_MUX_blsp_spi2___2 = 17,
1: + MSM_MUX_blsp_spi2_cs1___2 = 18,
1: + MSM_MUX_blsp_spi2_cs2___2 = 19,
1: + MSM_MUX_blsp_spi2_cs3___2 = 20,
1: + MSM_MUX_blsp_spi3___2 = 21,
1: + MSM_MUX_blsp_spi4___2 = 22,
1: + MSM_MUX_blsp_spi5___2 = 23,
1: + MSM_MUX_blsp_spi6___2 = 24,
1: + MSM_MUX_blsp_spi7 = 25,
1: + MSM_MUX_blsp_spi8 = 26,
1: + MSM_MUX_blsp_spi9 = 27,
1: + MSM_MUX_blsp_spi10 = 28,
1: + MSM_MUX_blsp_spi10_cs1 = 29,
1: + MSM_MUX_blsp_spi10_cs2 = 30,
1: + MSM_MUX_blsp_spi10_cs3 = 31,
1: + MSM_MUX_blsp_spi11 = 32,
1: + MSM_MUX_blsp_spi12 = 33,
1: + MSM_MUX_blsp_uart1___2 = 34,
1: + MSM_MUX_blsp_uart2___2 = 35,
1: + MSM_MUX_blsp_uart3 = 36,
1: + MSM_MUX_blsp_uart4 = 37,
1: + MSM_MUX_blsp_uart5 = 38,
1: + MSM_MUX_blsp_uart6 = 39,
1: + MSM_MUX_blsp_uart7 = 40,
1: + MSM_MUX_blsp_uart8 = 41,
1: + MSM_MUX_blsp_uart9 = 42,
1: + MSM_MUX_blsp_uart10 = 43,
1: + MSM_MUX_blsp_uart11 = 44,
1: + MSM_MUX_blsp_uart12 = 45,
1: + MSM_MUX_blsp_uim1___2 = 46,
1: + MSM_MUX_blsp_uim2___2 = 47,
1: + MSM_MUX_blsp_uim3 = 48,
1: + MSM_MUX_blsp_uim4 = 49,
1: + MSM_MUX_blsp_uim5 = 50,
1: + MSM_MUX_blsp_uim6 = 51,
1: + MSM_MUX_blsp_uim7 = 52,
1: + MSM_MUX_blsp_uim8 = 53,
1: + MSM_MUX_blsp_uim9 = 54,
1: + MSM_MUX_blsp_uim10 = 55,
1: + MSM_MUX_blsp_uim11 = 56,
1: + MSM_MUX_blsp_uim12 = 57,
1: + MSM_MUX_blsp11_i2c_scl_b = 58,
1: + MSM_MUX_blsp11_i2c_sda_b = 59,
1: + MSM_MUX_blsp11_uart_rx_b = 60,
1: + MSM_MUX_blsp11_uart_tx_b = 61,
1: + MSM_MUX_cam_mclk0___2 = 62,
1: + MSM_MUX_cam_mclk1___2 = 63,
1: + MSM_MUX_cam_mclk2 = 64,
1: + MSM_MUX_cam_mclk3 = 65,
1: + MSM_MUX_cci_async_in0 = 66,
1: + MSM_MUX_cci_async_in1 = 67,
1: + MSM_MUX_cci_async_in2 = 68,
1: + MSM_MUX_cci_i2c0 = 69,
1: + MSM_MUX_cci_i2c1 = 70,
1: + MSM_MUX_cci_timer0___2 = 71,
1: + MSM_MUX_cci_timer1___2 = 72,
1: + MSM_MUX_cci_timer2___2 = 73,
1: + MSM_MUX_cci_timer3 = 74,
1: + MSM_MUX_cci_timer4 = 75,
1: + MSM_MUX_gcc_gp1_clk_a___2 = 76,
1: + MSM_MUX_gcc_gp1_clk_b___2 = 77,
1: + MSM_MUX_gcc_gp2_clk_a___2 = 78,
1: + MSM_MUX_gcc_gp2_clk_b___2 = 79,
1: + MSM_MUX_gcc_gp3_clk_a___2 = 80,
1: + MSM_MUX_gcc_gp3_clk_b___2 = 81,
1: + MSM_MUX_gp_mn = 82,
1: + MSM_MUX_gp_pdm0 = 83,
1: + MSM_MUX_gp_pdm1 = 84,
1: + MSM_MUX_gp_pdm2 = 85,
1: + MSM_MUX_gp0_clk = 86,
1: + MSM_MUX_gp1_clk = 87,
1: + MSM_MUX_gps_tx = 88,
1: + MSM_MUX_gsm_tx = 89,
1: + MSM_MUX_hdmi_cec = 90,
1: + MSM_MUX_hdmi_ddc = 91,
1: + MSM_MUX_hdmi_hpd = 92,
1: + MSM_MUX_hdmi_rcv = 93,
1: + MSM_MUX_mdp_vsync___2 = 94,
1: + MSM_MUX_mss_lte = 95,
1: + MSM_MUX_nav_pps___2 = 96,
1: + MSM_MUX_nav_tsync___2 = 97,
1: + MSM_MUX_qdss_cti_trig_in_a = 98,
1: + MSM_MUX_qdss_cti_trig_in_b = 99,
1: + MSM_MUX_qdss_cti_trig_in_c = 100,
1: + MSM_MUX_qdss_cti_trig_in_d = 101,
1: + MSM_MUX_qdss_cti_trig_out_a = 102,
1: + MSM_MUX_qdss_cti_trig_out_b = 103,
1: + MSM_MUX_qdss_cti_trig_out_c = 104,
1: + MSM_MUX_qdss_cti_trig_out_d = 105,
1: + MSM_MUX_qdss_traceclk_a___2 = 106,
1: + MSM_MUX_qdss_traceclk_b___2 = 107,
1: + MSM_MUX_qdss_tracectl_a___2 = 108,
1: + MSM_MUX_qdss_tracectl_b___2 = 109,
1: + MSM_MUX_qdss_tracedata_a___2 = 110,
1: + MSM_MUX_qdss_tracedata_b___2 = 111,
1: + MSM_MUX_qua_mi2s = 112,
1: + MSM_MUX_pci_e0 = 113,
1: + MSM_MUX_pci_e1 = 114,
1: + MSM_MUX_pri_mi2s___2 = 115,
1: + MSM_MUX_sdc4 = 116,
1: + MSM_MUX_sec_mi2s___2 = 117,
1: + MSM_MUX_slimbus = 118,
1: + MSM_MUX_spkr_i2s = 119,
1: + MSM_MUX_ter_mi2s = 120,
1: + MSM_MUX_tsif1 = 121,
1: + MSM_MUX_tsif2 = 122,
1: + MSM_MUX_uim1___2 = 123,
1: + MSM_MUX_uim2___2 = 124,
1: + MSM_MUX_uim3___2 = 125,
1: + MSM_MUX_uim4 = 126,
1: + MSM_MUX_uim_batt_alarm = 127,
1: + MSM_MUX_gpio___2 = 128,
1: + MSM_MUX_NA___2 = 129,
1: };
1:
1: enum msm8996_functions {
1: - msm_mux_adsp_ext = 0,
1: - msm_mux_atest_bbrx0 = 1,
1: - msm_mux_atest_bbrx1 = 2,
1: - msm_mux_atest_char = 3,
1: - msm_mux_atest_char0 = 4,
1: - msm_mux_atest_char1 = 5,
1: - msm_mux_atest_char2 = 6,
1: - msm_mux_atest_char3 = 7,
1: - msm_mux_atest_gpsadc0 = 8,
1: - msm_mux_atest_gpsadc1 = 9,
1: - msm_mux_atest_tsens = 10,
1: - msm_mux_atest_tsens2 = 11,
1: - msm_mux_atest_usb1 = 12,
1: - msm_mux_atest_usb10 = 13,
1: - msm_mux_atest_usb11 = 14,
1: - msm_mux_atest_usb12 = 15,
1: - msm_mux_atest_usb13 = 16,
1: - msm_mux_atest_usb2 = 17,
1: - msm_mux_atest_usb20 = 18,
1: - msm_mux_atest_usb21 = 19,
1: - msm_mux_atest_usb22 = 20,
1: - msm_mux_atest_usb23 = 21,
1: - msm_mux_audio_ref = 22,
1: - msm_mux_bimc_dte0 = 23,
1: - msm_mux_bimc_dte1 = 24,
1: - msm_mux_blsp10_spi = 25,
1: - msm_mux_blsp11_i2c_scl_b = 26,
1: - msm_mux_blsp11_i2c_sda_b = 27,
1: - msm_mux_blsp11_uart_rx_b = 28,
1: - msm_mux_blsp11_uart_tx_b = 29,
1: - msm_mux_blsp1_spi = 30,
1: - msm_mux_blsp2_spi = 31,
1: - msm_mux_blsp_i2c1 = 32,
1: - msm_mux_blsp_i2c10 = 33,
1: - msm_mux_blsp_i2c11 = 34,
1: - msm_mux_blsp_i2c12 = 35,
1: - msm_mux_blsp_i2c2 = 36,
1: - msm_mux_blsp_i2c3 = 37,
1: - msm_mux_blsp_i2c4 = 38,
1: - msm_mux_blsp_i2c5 = 39,
1: - msm_mux_blsp_i2c6 = 40,
1: - msm_mux_blsp_i2c7 = 41,
1: - msm_mux_blsp_i2c8 = 42,
1: - msm_mux_blsp_i2c9 = 43,
1: - msm_mux_blsp_spi1 = 44,
1: - msm_mux_blsp_spi10 = 45,
1: - msm_mux_blsp_spi11 = 46,
1: - msm_mux_blsp_spi12 = 47,
1: - msm_mux_blsp_spi2 = 48,
1: - msm_mux_blsp_spi3 = 49,
1: - msm_mux_blsp_spi4 = 50,
1: - msm_mux_blsp_spi5 = 51,
1: - msm_mux_blsp_spi6 = 52,
1: - msm_mux_blsp_spi7 = 53,
1: - msm_mux_blsp_spi8 = 54,
1: - msm_mux_blsp_spi9 = 55,
1: - msm_mux_blsp_uart1 = 56,
1: - msm_mux_blsp_uart10 = 57,
1: - msm_mux_blsp_uart11 = 58,
1: - msm_mux_blsp_uart12 = 59,
1: - msm_mux_blsp_uart2 = 60,
1: - msm_mux_blsp_uart3 = 61,
1: - msm_mux_blsp_uart4 = 62,
1: - msm_mux_blsp_uart5 = 63,
1: - msm_mux_blsp_uart6 = 64,
1: - msm_mux_blsp_uart7 = 65,
1: - msm_mux_blsp_uart8 = 66,
1: - msm_mux_blsp_uart9 = 67,
1: - msm_mux_blsp_uim1 = 68,
1: - msm_mux_blsp_uim10 = 69,
1: - msm_mux_blsp_uim11 = 70,
1: - msm_mux_blsp_uim12 = 71,
1: - msm_mux_blsp_uim2 = 72,
1: - msm_mux_blsp_uim3 = 73,
1: - msm_mux_blsp_uim4 = 74,
1: - msm_mux_blsp_uim5 = 75,
1: - msm_mux_blsp_uim6 = 76,
1: - msm_mux_blsp_uim7 = 77,
1: - msm_mux_blsp_uim8 = 78,
1: - msm_mux_blsp_uim9 = 79,
1: - msm_mux_btfm_slimbus = 80,
1: - msm_mux_cam_mclk = 81,
1: - msm_mux_cci_async = 82,
1: - msm_mux_cci_i2c = 83,
1: - msm_mux_cci_timer0 = 84,
1: - msm_mux_cci_timer1 = 85,
1: - msm_mux_cci_timer2 = 86,
1: - msm_mux_cci_timer3 = 87,
1: - msm_mux_cci_timer4 = 88,
1: - msm_mux_cri_trng = 89,
1: - msm_mux_cri_trng0 = 90,
1: - msm_mux_cri_trng1 = 91,
1: - msm_mux_dac_calib0 = 92,
1: - msm_mux_dac_calib1 = 93,
1: - msm_mux_dac_calib10 = 94,
1: - msm_mux_dac_calib11 = 95,
1: - msm_mux_dac_calib12 = 96,
1: - msm_mux_dac_calib13 = 97,
1: - msm_mux_dac_calib14 = 98,
1: - msm_mux_dac_calib15 = 99,
1: - msm_mux_dac_calib16 = 100,
1: - msm_mux_dac_calib17 = 101,
1: - msm_mux_dac_calib18 = 102,
1: - msm_mux_dac_calib19 = 103,
1: - msm_mux_dac_calib2 = 104,
1: - msm_mux_dac_calib20 = 105,
1: - msm_mux_dac_calib21 = 106,
1: - msm_mux_dac_calib22 = 107,
1: - msm_mux_dac_calib23 = 108,
1: - msm_mux_dac_calib24 = 109,
1: - msm_mux_dac_calib25 = 110,
1: - msm_mux_dac_calib26 = 111,
1: - msm_mux_dac_calib3 = 112,
1: - msm_mux_dac_calib4 = 113,
1: - msm_mux_dac_calib5 = 114,
1: - msm_mux_dac_calib6 = 115,
1: - msm_mux_dac_calib7 = 116,
1: - msm_mux_dac_calib8 = 117,
1: - msm_mux_dac_calib9 = 118,
1: - msm_mux_dac_gpio = 119,
1: - msm_mux_dbg_out = 120,
1: - msm_mux_ddr_bist = 121,
1: - msm_mux_edp_hot = 122,
1: - msm_mux_edp_lcd = 123,
1: - msm_mux_gcc_gp1_clk_a = 124,
1: - msm_mux_gcc_gp1_clk_b = 125,
1: - msm_mux_gcc_gp2_clk_a = 126,
1: - msm_mux_gcc_gp2_clk_b = 127,
1: - msm_mux_gcc_gp3_clk_a = 128,
1: - msm_mux_gcc_gp3_clk_b = 129,
1: - msm_mux_gsm_tx = 130,
1: - msm_mux_hdmi_cec = 131,
1: - msm_mux_hdmi_ddc = 132,
1: - msm_mux_hdmi_hot = 133,
1: - msm_mux_hdmi_rcv = 134,
1: - msm_mux_isense_dbg = 135,
1: - msm_mux_ldo_en = 136,
1: - msm_mux_ldo_update = 137,
1: - msm_mux_lpass_slimbus = 138,
1: - msm_mux_m_voc = 139,
1: - msm_mux_mdp_vsync = 140,
1: - msm_mux_mdp_vsync_p_b = 141,
1: - msm_mux_mdp_vsync_s_b = 142,
1: - msm_mux_modem_tsync = 143,
1: - msm_mux_mss_lte = 144,
1: - msm_mux_nav_dr = 145,
1: - msm_mux_nav_pps = 146,
1: - msm_mux_pa_indicator = 147,
1: - msm_mux_pci_e0 = 148,
1: - msm_mux_pci_e1 = 149,
1: - msm_mux_pci_e2 = 150,
1: - msm_mux_pll_bypassnl = 151,
1: - msm_mux_pll_reset = 152,
1: - msm_mux_pri_mi2s = 153,
1: - msm_mux_prng_rosc = 154,
1: - msm_mux_pwr_crypto = 155,
1: - msm_mux_pwr_modem = 156,
1: - msm_mux_pwr_nav = 157,
1: - msm_mux_qdss_cti = 158,
1: - msm_mux_qdss_cti_trig_in_a = 159,
1: - msm_mux_qdss_cti_trig_in_b = 160,
1: - msm_mux_qdss_cti_trig_out_a = 161,
1: - msm_mux_qdss_cti_trig_out_b = 162,
1: - msm_mux_qdss_stm0 = 163,
1: - msm_mux_qdss_stm1 = 164,
1: - msm_mux_qdss_stm10 = 165,
1: - msm_mux_qdss_stm11 = 166,
1: - msm_mux_qdss_stm12 = 167,
1: - msm_mux_qdss_stm13 = 168,
1: - msm_mux_qdss_stm14 = 169,
1: - msm_mux_qdss_stm15 = 170,
1: - msm_mux_qdss_stm16 = 171,
1: - msm_mux_qdss_stm17 = 172,
1: - msm_mux_qdss_stm18 = 173,
1: - msm_mux_qdss_stm19 = 174,
1: - msm_mux_qdss_stm2 = 175,
1: - msm_mux_qdss_stm20 = 176,
1: - msm_mux_qdss_stm21 = 177,
1: - msm_mux_qdss_stm22 = 178,
1: - msm_mux_qdss_stm23 = 179,
1: - msm_mux_qdss_stm24 = 180,
1: - msm_mux_qdss_stm25 = 181,
1: - msm_mux_qdss_stm26 = 182,
1: - msm_mux_qdss_stm27 = 183,
1: - msm_mux_qdss_stm28 = 184,
1: - msm_mux_qdss_stm29 = 185,
1: - msm_mux_qdss_stm3 = 186,
1: - msm_mux_qdss_stm30 = 187,
1: - msm_mux_qdss_stm31 = 188,
1: - msm_mux_qdss_stm4 = 189,
1: - msm_mux_qdss_stm5 = 190,
1: - msm_mux_qdss_stm6 = 191,
1: - msm_mux_qdss_stm7 = 192,
1: - msm_mux_qdss_stm8 = 193,
1: - msm_mux_qdss_stm9 = 194,
1: - msm_mux_qdss_traceclk_a = 195,
1: - msm_mux_qdss_traceclk_b = 196,
1: - msm_mux_qdss_tracectl_a = 197,
1: - msm_mux_qdss_tracectl_b = 198,
1: - msm_mux_qdss_tracedata_11 = 199,
1: - msm_mux_qdss_tracedata_12 = 200,
1: - msm_mux_qdss_tracedata_a = 201,
1: - msm_mux_qdss_tracedata_b = 202,
1: - msm_mux_qspi0 = 203,
1: - msm_mux_qspi1 = 204,
1: - msm_mux_qspi2 = 205,
1: - msm_mux_qspi3 = 206,
1: - msm_mux_qspi_clk = 207,
1: - msm_mux_qspi_cs = 208,
1: - msm_mux_qua_mi2s = 209,
1: - msm_mux_sd_card = 210,
1: - msm_mux_sd_write = 211,
1: - msm_mux_sdc40 = 212,
1: - msm_mux_sdc41 = 213,
1: - msm_mux_sdc42 = 214,
1: - msm_mux_sdc43 = 215,
1: - msm_mux_sdc4_clk = 216,
1: - msm_mux_sdc4_cmd = 217,
1: - msm_mux_sec_mi2s = 218,
1: - msm_mux_spkr_i2s = 219,
1: - msm_mux_ssbi1 = 220,
1: - msm_mux_ssbi2 = 221,
1: - msm_mux_ssc_irq = 222,
1: - msm_mux_ter_mi2s = 223,
1: - msm_mux_tsense_pwm1 = 224,
1: - msm_mux_tsense_pwm2 = 225,
1: - msm_mux_tsif1_clk = 226,
1: - msm_mux_tsif1_data = 227,
1: - msm_mux_tsif1_en = 228,
1: - msm_mux_tsif1_error = 229,
1: - msm_mux_tsif1_sync = 230,
1: - msm_mux_tsif2_clk = 231,
1: - msm_mux_tsif2_data = 232,
1: - msm_mux_tsif2_en = 233,
1: - msm_mux_tsif2_error = 234,
1: - msm_mux_tsif2_sync = 235,
1: - msm_mux_uim1 = 236,
1: - msm_mux_uim2 = 237,
1: - msm_mux_uim3 = 238,
1: - msm_mux_uim4 = 239,
1: - msm_mux_uim_batt = 240,
1: - msm_mux_vfr_1 = 241,
1: - msm_mux_gpio = 242,
1: - msm_mux_NA = 243,
1: + msm_mux_adsp_ext = 0,
1: + msm_mux_atest_bbrx0 = 1,
1: + msm_mux_atest_bbrx1 = 2,
1: + msm_mux_atest_char = 3,
1: + msm_mux_atest_char0 = 4,
1: + msm_mux_atest_char1 = 5,
1: + msm_mux_atest_char2 = 6,
1: + msm_mux_atest_char3 = 7,
1: + msm_mux_atest_gpsadc0 = 8,
1: + msm_mux_atest_gpsadc1 = 9,
1: + msm_mux_atest_tsens = 10,
1: + msm_mux_atest_tsens2 = 11,
1: + msm_mux_atest_usb1 = 12,
1: + msm_mux_atest_usb10 = 13,
1: + msm_mux_atest_usb11 = 14,
1: + msm_mux_atest_usb12 = 15,
1: + msm_mux_atest_usb13 = 16,
1: + msm_mux_atest_usb2 = 17,
1: + msm_mux_atest_usb20 = 18,
1: + msm_mux_atest_usb21 = 19,
1: + msm_mux_atest_usb22 = 20,
1: + msm_mux_atest_usb23 = 21,
1: + msm_mux_audio_ref = 22,
1: + msm_mux_bimc_dte0 = 23,
1: + msm_mux_bimc_dte1 = 24,
1: + msm_mux_blsp10_spi = 25,
1: + msm_mux_blsp11_i2c_scl_b = 26,
1: + msm_mux_blsp11_i2c_sda_b = 27,
1: + msm_mux_blsp11_uart_rx_b = 28,
1: + msm_mux_blsp11_uart_tx_b = 29,
1: + msm_mux_blsp1_spi = 30,
1: + msm_mux_blsp2_spi = 31,
1: + msm_mux_blsp_i2c1 = 32,
1: + msm_mux_blsp_i2c10 = 33,
1: + msm_mux_blsp_i2c11 = 34,
1: + msm_mux_blsp_i2c12 = 35,
1: + msm_mux_blsp_i2c2 = 36,
1: + msm_mux_blsp_i2c3 = 37,
1: + msm_mux_blsp_i2c4 = 38,
1: + msm_mux_blsp_i2c5 = 39,
1: + msm_mux_blsp_i2c6 = 40,
1: + msm_mux_blsp_i2c7 = 41,
1: + msm_mux_blsp_i2c8 = 42,
1: + msm_mux_blsp_i2c9 = 43,
1: + msm_mux_blsp_spi1 = 44,
1: + msm_mux_blsp_spi10 = 45,
1: + msm_mux_blsp_spi11 = 46,
1: + msm_mux_blsp_spi12 = 47,
1: + msm_mux_blsp_spi2 = 48,
1: + msm_mux_blsp_spi3 = 49,
1: + msm_mux_blsp_spi4 = 50,
1: + msm_mux_blsp_spi5 = 51,
1: + msm_mux_blsp_spi6 = 52,
1: + msm_mux_blsp_spi7 = 53,
1: + msm_mux_blsp_spi8 = 54,
1: + msm_mux_blsp_spi9 = 55,
1: + msm_mux_blsp_uart1 = 56,
1: + msm_mux_blsp_uart10 = 57,
1: + msm_mux_blsp_uart11 = 58,
1: + msm_mux_blsp_uart12 = 59,
1: + msm_mux_blsp_uart2 = 60,
1: + msm_mux_blsp_uart3 = 61,
1: + msm_mux_blsp_uart4 = 62,
1: + msm_mux_blsp_uart5 = 63,
1: + msm_mux_blsp_uart6 = 64,
1: + msm_mux_blsp_uart7 = 65,
1: + msm_mux_blsp_uart8 = 66,
1: + msm_mux_blsp_uart9 = 67,
1: + msm_mux_blsp_uim1 = 68,
1: + msm_mux_blsp_uim10 = 69,
1: + msm_mux_blsp_uim11 = 70,
1: + msm_mux_blsp_uim12 = 71,
1: + msm_mux_blsp_uim2 = 72,
1: + msm_mux_blsp_uim3 = 73,
1: + msm_mux_blsp_uim4 = 74,
1: + msm_mux_blsp_uim5 = 75,
1: + msm_mux_blsp_uim6 = 76,
1: + msm_mux_blsp_uim7 = 77,
1: + msm_mux_blsp_uim8 = 78,
1: + msm_mux_blsp_uim9 = 79,
1: + msm_mux_btfm_slimbus = 80,
1: + msm_mux_cam_mclk = 81,
1: + msm_mux_cci_async = 82,
1: + msm_mux_cci_i2c = 83,
1: + msm_mux_cci_timer0 = 84,
1: + msm_mux_cci_timer1 = 85,
1: + msm_mux_cci_timer2 = 86,
1: + msm_mux_cci_timer3 = 87,
1: + msm_mux_cci_timer4 = 88,
1: + msm_mux_cri_trng = 89,
1: + msm_mux_cri_trng0 = 90,
1: + msm_mux_cri_trng1 = 91,
1: + msm_mux_dac_calib0 = 92,
1: + msm_mux_dac_calib1 = 93,
1: + msm_mux_dac_calib10 = 94,
1: + msm_mux_dac_calib11 = 95,
1: + msm_mux_dac_calib12 = 96,
1: + msm_mux_dac_calib13 = 97,
1: + msm_mux_dac_calib14 = 98,
1: + msm_mux_dac_calib15 = 99,
1: + msm_mux_dac_calib16 = 100,
1: + msm_mux_dac_calib17 = 101,
1: + msm_mux_dac_calib18 = 102,
1: + msm_mux_dac_calib19 = 103,
1: + msm_mux_dac_calib2 = 104,
1: + msm_mux_dac_calib20 = 105,
1: + msm_mux_dac_calib21 = 106,
1: + msm_mux_dac_calib22 = 107,
1: + msm_mux_dac_calib23 = 108,
1: + msm_mux_dac_calib24 = 109,
1: + msm_mux_dac_calib25 = 110,
1: + msm_mux_dac_calib26 = 111,
1: + msm_mux_dac_calib3 = 112,
1: + msm_mux_dac_calib4 = 113,
1: + msm_mux_dac_calib5 = 114,
1: + msm_mux_dac_calib6 = 115,
1: + msm_mux_dac_calib7 = 116,
1: + msm_mux_dac_calib8 = 117,
1: + msm_mux_dac_calib9 = 118,
1: + msm_mux_dac_gpio = 119,
1: + msm_mux_dbg_out = 120,
1: + msm_mux_ddr_bist = 121,
1: + msm_mux_edp_hot = 122,
1: + msm_mux_edp_lcd = 123,
1: + msm_mux_gcc_gp1_clk_a = 124,
1: + msm_mux_gcc_gp1_clk_b = 125,
1: + msm_mux_gcc_gp2_clk_a = 126,
1: + msm_mux_gcc_gp2_clk_b = 127,
1: + msm_mux_gcc_gp3_clk_a = 128,
1: + msm_mux_gcc_gp3_clk_b = 129,
1: + msm_mux_gsm_tx = 130,
1: + msm_mux_hdmi_cec = 131,
1: + msm_mux_hdmi_ddc = 132,
1: + msm_mux_hdmi_hot = 133,
1: + msm_mux_hdmi_rcv = 134,
1: + msm_mux_isense_dbg = 135,
1: + msm_mux_ldo_en = 136,
1: + msm_mux_ldo_update = 137,
1: + msm_mux_lpass_slimbus = 138,
1: + msm_mux_m_voc = 139,
1: + msm_mux_mdp_vsync = 140,
1: + msm_mux_mdp_vsync_p_b = 141,
1: + msm_mux_mdp_vsync_s_b = 142,
1: + msm_mux_modem_tsync = 143,
1: + msm_mux_mss_lte = 144,
1: + msm_mux_nav_dr = 145,
1: + msm_mux_nav_pps = 146,
1: + msm_mux_pa_indicator = 147,
1: + msm_mux_pci_e0 = 148,
1: + msm_mux_pci_e1 = 149,
1: + msm_mux_pci_e2 = 150,
1: + msm_mux_pll_bypassnl = 151,
1: + msm_mux_pll_reset = 152,
1: + msm_mux_pri_mi2s = 153,
1: + msm_mux_prng_rosc = 154,
1: + msm_mux_pwr_crypto = 155,
1: + msm_mux_pwr_modem = 156,
1: + msm_mux_pwr_nav = 157,
1: + msm_mux_qdss_cti = 158,
1: + msm_mux_qdss_cti_trig_in_a = 159,
1: + msm_mux_qdss_cti_trig_in_b = 160,
1: + msm_mux_qdss_cti_trig_out_a = 161,
1: + msm_mux_qdss_cti_trig_out_b = 162,
1: + msm_mux_qdss_stm0 = 163,
1: + msm_mux_qdss_stm1 = 164,
1: + msm_mux_qdss_stm10 = 165,
1: + msm_mux_qdss_stm11 = 166,
1: + msm_mux_qdss_stm12 = 167,
1: + msm_mux_qdss_stm13 = 168,
1: + msm_mux_qdss_stm14 = 169,
1: + msm_mux_qdss_stm15 = 170,
1: + msm_mux_qdss_stm16 = 171,
1: + msm_mux_qdss_stm17 = 172,
1: + msm_mux_qdss_stm18 = 173,
1: + msm_mux_qdss_stm19 = 174,
1: + msm_mux_qdss_stm2 = 175,
1: + msm_mux_qdss_stm20 = 176,
1: + msm_mux_qdss_stm21 = 177,
1: + msm_mux_qdss_stm22 = 178,
1: + msm_mux_qdss_stm23 = 179,
1: + msm_mux_qdss_stm24 = 180,
1: + msm_mux_qdss_stm25 = 181,
1: + msm_mux_qdss_stm26 = 182,
1: + msm_mux_qdss_stm27 = 183,
1: + msm_mux_qdss_stm28 = 184,
1: + msm_mux_qdss_stm29 = 185,
1: + msm_mux_qdss_stm3 = 186,
1: + msm_mux_qdss_stm30 = 187,
1: + msm_mux_qdss_stm31 = 188,
1: + msm_mux_qdss_stm4 = 189,
1: + msm_mux_qdss_stm5 = 190,
1: + msm_mux_qdss_stm6 = 191,
1: + msm_mux_qdss_stm7 = 192,
1: + msm_mux_qdss_stm8 = 193,
1: + msm_mux_qdss_stm9 = 194,
1: + msm_mux_qdss_traceclk_a = 195,
1: + msm_mux_qdss_traceclk_b = 196,
1: + msm_mux_qdss_tracectl_a = 197,
1: + msm_mux_qdss_tracectl_b = 198,
1: + msm_mux_qdss_tracedata_11 = 199,
1: + msm_mux_qdss_tracedata_12 = 200,
1: + msm_mux_qdss_tracedata_a = 201,
1: + msm_mux_qdss_tracedata_b = 202,
1: + msm_mux_qspi0 = 203,
1: + msm_mux_qspi1 = 204,
1: + msm_mux_qspi2 = 205,
1: + msm_mux_qspi3 = 206,
1: + msm_mux_qspi_clk = 207,
1: + msm_mux_qspi_cs = 208,
1: + msm_mux_qua_mi2s = 209,
1: + msm_mux_sd_card = 210,
1: + msm_mux_sd_write = 211,
1: + msm_mux_sdc40 = 212,
1: + msm_mux_sdc41 = 213,
1: + msm_mux_sdc42 = 214,
1: + msm_mux_sdc43 = 215,
1: + msm_mux_sdc4_clk = 216,
1: + msm_mux_sdc4_cmd = 217,
1: + msm_mux_sec_mi2s = 218,
1: + msm_mux_spkr_i2s = 219,
1: + msm_mux_ssbi1 = 220,
1: + msm_mux_ssbi2 = 221,
1: + msm_mux_ssc_irq = 222,
1: + msm_mux_ter_mi2s = 223,
1: + msm_mux_tsense_pwm1 = 224,
1: + msm_mux_tsense_pwm2 = 225,
1: + msm_mux_tsif1_clk = 226,
1: + msm_mux_tsif1_data = 227,
1: + msm_mux_tsif1_en = 228,
1: + msm_mux_tsif1_error = 229,
1: + msm_mux_tsif1_sync = 230,
1: + msm_mux_tsif2_clk = 231,
1: + msm_mux_tsif2_data = 232,
1: + msm_mux_tsif2_en = 233,
1: + msm_mux_tsif2_error = 234,
1: + msm_mux_tsif2_sync = 235,
1: + msm_mux_uim1 = 236,
1: + msm_mux_uim2 = 237,
1: + msm_mux_uim3 = 238,
1: + msm_mux_uim4 = 239,
1: + msm_mux_uim_batt = 240,
1: + msm_mux_vfr_1 = 241,
1: + msm_mux_gpio = 242,
1: + msm_mux_NA = 243,
1: };
1:
1: enum pincfg_type {
1: - PINCFG_TYPE_FUNC = 0,
1: - PINCFG_TYPE_DAT = 1,
1: - PINCFG_TYPE_PUD = 2,
1: - PINCFG_TYPE_DRV = 3,
1: - PINCFG_TYPE_CON_PDN = 4,
1: - PINCFG_TYPE_PUD_PDN = 5,
1: - PINCFG_TYPE_NUM = 6,
1: + PINCFG_TYPE_FUNC = 0,
1: + PINCFG_TYPE_DAT = 1,
1: + PINCFG_TYPE_PUD = 2,
1: + PINCFG_TYPE_DRV = 3,
1: + PINCFG_TYPE_CON_PDN = 4,
1: + PINCFG_TYPE_PUD_PDN = 5,
1: + PINCFG_TYPE_NUM = 6,
1: };
1:
1: enum eint_type {
1: - EINT_TYPE_NONE = 0,
1: - EINT_TYPE_GPIO = 1,
1: - EINT_TYPE_WKUP = 2,
1: - EINT_TYPE_WKUP_MUX = 3,
1: + EINT_TYPE_NONE = 0,
1: + EINT_TYPE_GPIO = 1,
1: + EINT_TYPE_WKUP = 2,
1: + EINT_TYPE_WKUP_MUX = 3,
1: };
1:
1: struct samsung_pin_bank_type {
1: - u8 fld_width[6];
1: - u8 reg_offset[6];
1: + u8 fld_width[6];
1: + u8 reg_offset[6];
1: };
1:
1: struct samsung_pin_bank_data {
1: - const struct samsung_pin_bank_type *type;
1: - u32 pctl_offset;
1: - u8 pctl_res_idx;
1: - u8 nr_pins;
1: - u8 eint_func;
1: - enum eint_type eint_type;
1: - u32 eint_mask;
1: - u32 eint_offset;
1: - const char *name;
1: + const struct samsung_pin_bank_type *type;
1: + u32 pctl_offset;
1: + u8 pctl_res_idx;
1: + u8 nr_pins;
1: + u8 eint_func;
1: + enum eint_type eint_type;
1: + u32 eint_mask;
1: + u32 eint_offset;
1: + const char *name;
1: };
1:
1: struct samsung_pinctrl_drv_data;
1: @@ -62276,26 +63193,26 @@ struct samsung_pinctrl_drv_data;
1: struct exynos_irq_chip;
1:
1: struct samsung_pin_bank {
1: - const struct samsung_pin_bank_type *type;
1: - void *pctl_base;
1: - u32 pctl_offset;
1: - u8 nr_pins;
1: - void *eint_base;
1: - u8 eint_func;
1: - enum eint_type eint_type;
1: - u32 eint_mask;
1: - u32 eint_offset;
1: - const char *name;
1: - u32 pin_base;
1: - void *soc_priv;
1: - struct device_node *of_node;
1: - struct samsung_pinctrl_drv_data *drvdata;
1: - struct irq_domain *irq_domain;
1: - struct gpio_chip gpio_chip;
1: - struct pinctrl_gpio_range grange;
1: - struct exynos_irq_chip *irq_chip;
1: - spinlock_t slock;
1: - u32 pm_save[7];
1: + const struct samsung_pin_bank_type *type;
1: + void *pctl_base;
1: + u32 pctl_offset;
1: + u8 nr_pins;
1: + void *eint_base;
1: + u8 eint_func;
1: + enum eint_type eint_type;
1: + u32 eint_mask;
1: + u32 eint_offset;
1: + const char *name;
1: + u32 pin_base;
1: + void *soc_priv;
1: + struct device_node *of_node;
1: + struct samsung_pinctrl_drv_data *drvdata;
1: + struct irq_domain *irq_domain;
1: + struct gpio_chip gpio_chip;
1: + struct pinctrl_gpio_range grange;
1: + struct exynos_irq_chip *irq_chip;
1: + spinlock_t slock;
1: + u32 pm_save[7];
1: };
1:
1: struct samsung_pin_group;
1: @@ -62305,574 +63222,589 @@ struct samsung_pmx_func;
1: struct samsung_retention_ctrl;
1:
1: struct samsung_pinctrl_drv_data {
1: - struct list_head node;
1: - void *virt_base;
1: - struct device *dev;
1: - int irq;
1: - struct pinctrl_desc pctl;
1: - struct pinctrl_dev *pctl_dev;
1: - const struct samsung_pin_group *pin_groups;
1: - unsigned int nr_groups;
1: - const struct samsung_pmx_func *pmx_functions;
1: - unsigned int nr_functions;
1: - struct samsung_pin_bank *pin_banks;
1: - unsigned int nr_banks;
1: - unsigned int pin_base;
1: - unsigned int nr_pins;
1: - struct samsung_retention_ctrl *retention_ctrl;
1: - void (*suspend)(struct samsung_pinctrl_drv_data *);
1: - void (*resume)(struct samsung_pinctrl_drv_data *);
1: + struct list_head node;
1: + void *virt_base;
1: + struct device *dev;
1: + int irq;
1: + struct pinctrl_desc pctl;
1: + struct pinctrl_dev *pctl_dev;
1: + const struct samsung_pin_group *pin_groups;
1: + unsigned int nr_groups;
1: + const struct samsung_pmx_func *pmx_functions;
1: + unsigned int nr_functions;
1: + struct samsung_pin_bank *pin_banks;
1: + unsigned int nr_banks;
1: + unsigned int pin_base;
1: + unsigned int nr_pins;
1: + struct samsung_retention_ctrl *retention_ctrl;
1: + void (*suspend)(struct samsung_pinctrl_drv_data *);
1: + void (*resume)(struct samsung_pinctrl_drv_data *);
1: };
1:
1: struct samsung_retention_ctrl {
1: - const u32 *regs;
1: - int nr_regs;
1: - u32 value;
1: - atomic_t *refcnt;
1: - void *priv;
1: - void (*enable)(struct samsung_pinctrl_drv_data *);
1: - void (*disable)(struct samsung_pinctrl_drv_data *);
1: + const u32 *regs;
1: + int nr_regs;
1: + u32 value;
1: + atomic_t *refcnt;
1: + void *priv;
1: + void (*enable)(struct samsung_pinctrl_drv_data *);
1: + void (*disable)(struct samsung_pinctrl_drv_data *);
1: };
1:
1: struct samsung_retention_data {
1: - const u32 *regs;
1: - int nr_regs;
1: - u32 value;
1: - atomic_t *refcnt;
1: - struct samsung_retention_ctrl * (*init)(struct samsung_pinctrl_drv_data *, const struct samsung_retention_data *);
1: + const u32 *regs;
1: + int nr_regs;
1: + u32 value;
1: + atomic_t *refcnt;
1: + struct samsung_retention_ctrl *(*init)(struct samsung_pinctrl_drv_data *,
1: + const struct samsung_retention_data *);
1: };
1:
1: struct samsung_pin_ctrl {
1: - const struct samsung_pin_bank_data *pin_banks;
1: - unsigned int nr_banks;
1: - unsigned int nr_ext_resources;
1: - const struct samsung_retention_data *retention_data;
1: - int (*eint_gpio_init)(struct samsung_pinctrl_drv_data *);
1: - int (*eint_wkup_init)(struct samsung_pinctrl_drv_data *);
1: - void (*suspend)(struct samsung_pinctrl_drv_data *);
1: - void (*resume)(struct samsung_pinctrl_drv_data *);
1: + const struct samsung_pin_bank_data *pin_banks;
1: + unsigned int nr_banks;
1: + unsigned int nr_ext_resources;
1: + const struct samsung_retention_data *retention_data;
1: + int (*eint_gpio_init)(struct samsung_pinctrl_drv_data *);
1: + int (*eint_wkup_init)(struct samsung_pinctrl_drv_data *);
1: + void (*suspend)(struct samsung_pinctrl_drv_data *);
1: + void (*resume)(struct samsung_pinctrl_drv_data *);
1: };
1:
1: struct samsung_pin_group {
1: - const char *name;
1: - const unsigned int *pins;
1: - u8 num_pins;
1: - u8 func;
1: + const char *name;
1: + const unsigned int *pins;
1: + u8 num_pins;
1: + u8 func;
1: };
1:
1: struct samsung_pmx_func {
1: - const char *name;
1: - const char **groups;
1: - u8 num_groups;
1: - u32 val;
1: + const char *name;
1: + const char **groups;
1: + u8 num_groups;
1: + u32 val;
1: };
1:
1: struct samsung_pinctrl_of_match_data {
1: - const struct samsung_pin_ctrl *ctrl;
1: - unsigned int num_ctrl;
1: + const struct samsung_pin_ctrl *ctrl;
1: + unsigned int num_ctrl;
1: };
1:
1: struct pin_config {
1: - const char *property;
1: - enum pincfg_type param;
1: + const char *property;
1: + enum pincfg_type param;
1: };
1:
1: struct exynos_irq_chip {
1: - struct irq_chip chip;
1: - u32 eint_con;
1: - u32 eint_mask;
1: - u32 eint_pend;
1: - u32 *eint_wake_mask_value;
1: - u32 eint_wake_mask_reg;
1: - void (*set_eint_wakeup_mask)(struct samsung_pinctrl_drv_data *, struct exynos_irq_chip *);
1: + struct irq_chip chip;
1: + u32 eint_con;
1: + u32 eint_mask;
1: + u32 eint_pend;
1: + u32 *eint_wake_mask_value;
1: + u32 eint_wake_mask_reg;
1: + void (*set_eint_wakeup_mask)(struct samsung_pinctrl_drv_data *,
1: + struct exynos_irq_chip *);
1: };
1:
1: struct exynos_weint_data {
1: - unsigned int irq;
1: - struct samsung_pin_bank *bank;
1: + unsigned int irq;
1: + struct samsung_pin_bank *bank;
1: };
1:
1: struct exynos_muxed_weint_data {
1: - unsigned int nr_banks;
1: - struct samsung_pin_bank *banks[0];
1: + unsigned int nr_banks;
1: + struct samsung_pin_bank *banks[0];
1: };
1:
1: struct exynos_eint_gpio_save {
1: - u32 eint_con;
1: - u32 eint_fltcon0;
1: - u32 eint_fltcon1;
1: - u32 eint_mask;
1: + u32 eint_con;
1: + u32 eint_fltcon0;
1: + u32 eint_fltcon1;
1: + u32 eint_mask;
1: };
1:
1: enum sunxi_desc_bias_voltage {
1: - BIAS_VOLTAGE_NONE = 0,
1: - BIAS_VOLTAGE_GRP_CONFIG = 1,
1: - BIAS_VOLTAGE_PIO_POW_MODE_SEL = 2,
1: + BIAS_VOLTAGE_NONE = 0,
1: + BIAS_VOLTAGE_GRP_CONFIG = 1,
1: + BIAS_VOLTAGE_PIO_POW_MODE_SEL = 2,
1: };
1:
1: struct sunxi_desc_function {
1: - long unsigned int variant;
1: - const char *name;
1: - u8 muxval;
1: - u8 irqbank;
1: - u8 irqnum;
1: + long unsigned int variant;
1: + const char *name;
1: + u8 muxval;
1: + u8 irqbank;
1: + u8 irqnum;
1: };
1:
1: struct sunxi_desc_pin {
1: - struct pinctrl_pin_desc pin;
1: - long unsigned int variant;
1: - struct sunxi_desc_function *functions;
1: + struct pinctrl_pin_desc pin;
1: + long unsigned int variant;
1: + struct sunxi_desc_function *functions;
1: };
1:
1: struct sunxi_pinctrl_desc {
1: - const struct sunxi_desc_pin *pins;
1: - int npins;
1: - unsigned int pin_base;
1: - unsigned int irq_banks;
1: - const unsigned int *irq_bank_map;
1: - bool irq_read_needs_mux;
1: - bool disable_strict_mode;
1: - enum sunxi_desc_bias_voltage io_bias_cfg_variant;
1: + const struct sunxi_desc_pin *pins;
1: + int npins;
1: + unsigned int pin_base;
1: + unsigned int irq_banks;
1: + const unsigned int *irq_bank_map;
1: + bool irq_read_needs_mux;
1: + bool disable_strict_mode;
1: + enum sunxi_desc_bias_voltage io_bias_cfg_variant;
1: };
1:
1: struct sunxi_pinctrl_function {
1: - const char *name;
1: - const char **groups;
1: - unsigned int ngroups;
1: + const char *name;
1: + const char **groups;
1: + unsigned int ngroups;
1: };
1:
1: struct sunxi_pinctrl_group {
1: - const char *name;
1: - unsigned int pin;
1: + const char *name;
1: + unsigned int pin;
1: };
1:
1: struct sunxi_pinctrl_regulator {
1: - struct regulator *regulator;
1: - refcount_t refcount;
1: + struct regulator *regulator;
1: + refcount_t refcount;
1: };
1:
1: struct sunxi_pinctrl {
1: - void *membase;
1: - struct gpio_chip *chip;
1: - const struct sunxi_pinctrl_desc *desc;
1: - struct device *dev;
1: - struct sunxi_pinctrl_regulator regulators[9];
1: - struct irq_domain *domain;
1: - struct sunxi_pinctrl_function *functions;
1: - unsigned int nfunctions;
1: - struct sunxi_pinctrl_group *groups;
1: - unsigned int ngroups;
1: - int *irq;
1: - unsigned int *irq_array;
1: - raw_spinlock_t lock;
1: - struct pinctrl_dev *pctl_dev;
1: - long unsigned int variant;
1: + void *membase;
1: + struct gpio_chip *chip;
1: + const struct sunxi_pinctrl_desc *desc;
1: + struct device *dev;
1: + struct sunxi_pinctrl_regulator regulators[9];
1: + struct irq_domain *domain;
1: + struct sunxi_pinctrl_function *functions;
1: + unsigned int nfunctions;
1: + struct sunxi_pinctrl_group *groups;
1: + unsigned int ngroups;
1: + int *irq;
1: + unsigned int *irq_array;
1: + raw_spinlock_t lock;
1: + struct pinctrl_dev *pctl_dev;
1: + long unsigned int variant;
1: };
1:
1: struct mtk_eint_regs {
1: - unsigned int stat;
1: - unsigned int ack;
1: - unsigned int mask;
1: - unsigned int mask_set;
1: - unsigned int mask_clr;
1: - unsigned int sens;
1: - unsigned int sens_set;
1: - unsigned int sens_clr;
1: - unsigned int soft;
1: - unsigned int soft_set;
1: - unsigned int soft_clr;
1: - unsigned int pol;
1: - unsigned int pol_set;
1: - unsigned int pol_clr;
1: - unsigned int dom_en;
1: - unsigned int dbnc_ctrl;
1: - unsigned int dbnc_set;
1: - unsigned int dbnc_clr;
1: + unsigned int stat;
1: + unsigned int ack;
1: + unsigned int mask;
1: + unsigned int mask_set;
1: + unsigned int mask_clr;
1: + unsigned int sens;
1: + unsigned int sens_set;
1: + unsigned int sens_clr;
1: + unsigned int soft;
1: + unsigned int soft_set;
1: + unsigned int soft_clr;
1: + unsigned int pol;
1: + unsigned int pol_set;
1: + unsigned int pol_clr;
1: + unsigned int dom_en;
1: + unsigned int dbnc_ctrl;
1: + unsigned int dbnc_set;
1: + unsigned int dbnc_clr;
1: };
1:
1: struct mtk_eint_hw {
1: - u8 port_mask;
1: - u8 ports;
1: - unsigned int ap_num;
1: - unsigned int db_cnt;
1: + u8 port_mask;
1: + u8 ports;
1: + unsigned int ap_num;
1: + unsigned int db_cnt;
1: };
1:
1: struct mtk_eint_xt {
1: - int (*get_gpio_n)(void *, long unsigned int, unsigned int *, struct gpio_chip **);
1: - int (*get_gpio_state)(void *, long unsigned int);
1: - int (*set_gpio_as_eint)(void *, long unsigned int);
1: + int (*get_gpio_n)(void *, long unsigned int, unsigned int *,
1: + struct gpio_chip **);
1: + int (*get_gpio_state)(void *, long unsigned int);
1: + int (*set_gpio_as_eint)(void *, long unsigned int);
1: };
1:
1: struct mtk_eint {
1: - struct device *dev;
1: - void *base;
1: - struct irq_domain *domain;
1: - int irq;
1: - int *dual_edge;
1: - u32 *wake_mask;
1: - u32 *cur_mask;
1: - const struct mtk_eint_hw *hw;
1: - const struct mtk_eint_regs *regs;
1: - void *pctl;
1: - const struct mtk_eint_xt *gpio_xlate;
1: + struct device *dev;
1: + void *base;
1: + struct irq_domain *domain;
1: + int irq;
1: + int *dual_edge;
1: + u32 *wake_mask;
1: + u32 *cur_mask;
1: + const struct mtk_eint_hw *hw;
1: + const struct mtk_eint_regs *regs;
1: + void *pctl;
1: + const struct mtk_eint_xt *gpio_xlate;
1: };
1:
1: struct mtk_desc_function {
1: - const char *name;
1: - unsigned char muxval;
1: + const char *name;
1: + unsigned char muxval;
1: };
1:
1: struct mtk_desc_eint {
1: - unsigned char eintmux;
1: - unsigned char eintnum;
1: + unsigned char eintmux;
1: + unsigned char eintnum;
1: };
1:
1: struct mtk_desc_pin {
1: - struct pinctrl_pin_desc pin;
1: - const struct mtk_desc_eint eint;
1: - const struct mtk_desc_function *functions;
1: + struct pinctrl_pin_desc pin;
1: + const struct mtk_desc_eint eint;
1: + const struct mtk_desc_function *functions;
1: };
1:
1: struct mtk_pinctrl_group {
1: - const char *name;
1: - long unsigned int config;
1: - unsigned int pin;
1: + const char *name;
1: + long unsigned int config;
1: + unsigned int pin;
1: };
1:
1: struct mtk_drv_group_desc {
1: - unsigned char min_drv;
1: - unsigned char max_drv;
1: - unsigned char low_bit;
1: - unsigned char high_bit;
1: - unsigned char step;
1: + unsigned char min_drv;
1: + unsigned char max_drv;
1: + unsigned char low_bit;
1: + unsigned char high_bit;
1: + unsigned char step;
1: };
1:
1: struct mtk_pin_drv_grp {
1: - short unsigned int pin;
1: - short unsigned int offset;
1: - unsigned char bit;
1: - unsigned char grp;
1: + short unsigned int pin;
1: + short unsigned int offset;
1: + unsigned char bit;
1: + unsigned char grp;
1: };
1:
1: struct mtk_pin_spec_pupd_set_samereg {
1: - short unsigned int pin;
1: - short unsigned int offset;
1: - unsigned char pupd_bit;
1: - unsigned char r1_bit;
1: - unsigned char r0_bit;
1: + short unsigned int pin;
1: + short unsigned int offset;
1: + unsigned char pupd_bit;
1: + unsigned char r1_bit;
1: + unsigned char r0_bit;
1: };
1:
1: struct mtk_pin_ies_smt_set {
1: - short unsigned int start;
1: - short unsigned int end;
1: - short unsigned int offset;
1: - unsigned char bit;
1: + short unsigned int start;
1: + short unsigned int end;
1: + short unsigned int offset;
1: + unsigned char bit;
1: };
1:
1: struct mtk_pinctrl_devdata {
1: - const struct mtk_desc_pin *pins;
1: - unsigned int npins;
1: - const struct mtk_drv_group_desc *grp_desc;
1: - unsigned int n_grp_cls;
1: - const struct mtk_pin_drv_grp *pin_drv_grp;
1: - unsigned int n_pin_drv_grps;
1: - int (*spec_pull_set)(struct regmap *, unsigned int, unsigned char, bool, unsigned int);
1: - int (*spec_ies_smt_set)(struct regmap *, unsigned int, unsigned char, int, enum pin_config_param);
1: - void (*spec_pinmux_set)(struct regmap *, unsigned int, unsigned int);
1: - void (*spec_dir_set)(unsigned int *, unsigned int);
1: - unsigned int dir_offset;
1: - unsigned int ies_offset;
1: - unsigned int smt_offset;
1: - unsigned int pullen_offset;
1: - unsigned int pullsel_offset;
1: - unsigned int drv_offset;
1: - unsigned int dout_offset;
1: - unsigned int din_offset;
1: - unsigned int pinmux_offset;
1: - short unsigned int type1_start;
1: - short unsigned int type1_end;
1: - unsigned char port_shf;
1: - unsigned char port_mask;
1: - unsigned char port_align;
1: - struct mtk_eint_hw eint_hw;
1: - struct mtk_eint_regs *eint_regs;
1: + const struct mtk_desc_pin *pins;
1: + unsigned int npins;
1: + const struct mtk_drv_group_desc *grp_desc;
1: + unsigned int n_grp_cls;
1: + const struct mtk_pin_drv_grp *pin_drv_grp;
1: + unsigned int n_pin_drv_grps;
1: + int (*spec_pull_set)(struct regmap *, unsigned int, unsigned char, bool,
1: + unsigned int);
1: + int (*spec_ies_smt_set)(struct regmap *, unsigned int, unsigned char, int,
1: + enum pin_config_param);
1: + void (*spec_pinmux_set)(struct regmap *, unsigned int, unsigned int);
1: + void (*spec_dir_set)(unsigned int *, unsigned int);
1: + unsigned int dir_offset;
1: + unsigned int ies_offset;
1: + unsigned int smt_offset;
1: + unsigned int pullen_offset;
1: + unsigned int pullsel_offset;
1: + unsigned int drv_offset;
1: + unsigned int dout_offset;
1: + unsigned int din_offset;
1: + unsigned int pinmux_offset;
1: + short unsigned int type1_start;
1: + short unsigned int type1_end;
1: + unsigned char port_shf;
1: + unsigned char port_mask;
1: + unsigned char port_align;
1: + struct mtk_eint_hw eint_hw;
1: + struct mtk_eint_regs *eint_regs;
1: };
1:
1: struct mtk_pinctrl {
1: - struct regmap *regmap1;
1: - struct regmap *regmap2;
1: - struct pinctrl_desc pctl_desc;
1: - struct device *dev;
1: - struct gpio_chip *chip;
1: - struct mtk_pinctrl_group *groups;
1: - unsigned int ngroups;
1: - const char **grp_names;
1: - struct pinctrl_dev *pctl_dev;
1: - const struct mtk_pinctrl_devdata *devdata;
1: - struct mtk_eint *eint;
1: -};
1: -
1: -enum {
1: - PINCTRL_PIN_REG_MODE = 0,
1: - PINCTRL_PIN_REG_DIR = 1,
1: - PINCTRL_PIN_REG_DI = 2,
1: - PINCTRL_PIN_REG_DO = 3,
1: - PINCTRL_PIN_REG_SR = 4,
1: - PINCTRL_PIN_REG_SMT = 5,
1: - PINCTRL_PIN_REG_PD = 6,
1: - PINCTRL_PIN_REG_PU = 7,
1: - PINCTRL_PIN_REG_E4 = 8,
1: - PINCTRL_PIN_REG_E8 = 9,
1: - PINCTRL_PIN_REG_TDSEL = 10,
1: - PINCTRL_PIN_REG_RDSEL = 11,
1: - PINCTRL_PIN_REG_DRV = 12,
1: - PINCTRL_PIN_REG_PUPD = 13,
1: - PINCTRL_PIN_REG_R0 = 14,
1: - PINCTRL_PIN_REG_R1 = 15,
1: - PINCTRL_PIN_REG_IES = 16,
1: - PINCTRL_PIN_REG_PULLEN = 17,
1: - PINCTRL_PIN_REG_PULLSEL = 18,
1: - PINCTRL_PIN_REG_DRV_EN = 19,
1: - PINCTRL_PIN_REG_DRV_E0 = 20,
1: - PINCTRL_PIN_REG_DRV_E1 = 21,
1: - PINCTRL_PIN_REG_MAX = 22,
1: -};
1: -
1: -enum {
1: - DRV_FIXED = 0,
1: - DRV_GRP0 = 1,
1: - DRV_GRP1 = 2,
1: - DRV_GRP2 = 3,
1: - DRV_GRP3 = 4,
1: - DRV_GRP4 = 5,
1: - DRV_GRP_MAX = 6,
1: + struct regmap *regmap1;
1: + struct regmap *regmap2;
1: + struct pinctrl_desc pctl_desc;
1: + struct device *dev;
1: + struct gpio_chip *chip;
1: + struct mtk_pinctrl_group *groups;
1: + unsigned int ngroups;
1: + const char **grp_names;
1: + struct pinctrl_dev *pctl_dev;
1: + const struct mtk_pinctrl_devdata *devdata;
1: + struct mtk_eint *eint;
1: +};
1: +
1: +enum {
1: + PINCTRL_PIN_REG_MODE = 0,
1: + PINCTRL_PIN_REG_DIR = 1,
1: + PINCTRL_PIN_REG_DI = 2,
1: + PINCTRL_PIN_REG_DO = 3,
1: + PINCTRL_PIN_REG_SR = 4,
1: + PINCTRL_PIN_REG_SMT = 5,
1: + PINCTRL_PIN_REG_PD = 6,
1: + PINCTRL_PIN_REG_PU = 7,
1: + PINCTRL_PIN_REG_E4 = 8,
1: + PINCTRL_PIN_REG_E8 = 9,
1: + PINCTRL_PIN_REG_TDSEL = 10,
1: + PINCTRL_PIN_REG_RDSEL = 11,
1: + PINCTRL_PIN_REG_DRV = 12,
1: + PINCTRL_PIN_REG_PUPD = 13,
1: + PINCTRL_PIN_REG_R0 = 14,
1: + PINCTRL_PIN_REG_R1 = 15,
1: + PINCTRL_PIN_REG_IES = 16,
1: + PINCTRL_PIN_REG_PULLEN = 17,
1: + PINCTRL_PIN_REG_PULLSEL = 18,
1: + PINCTRL_PIN_REG_DRV_EN = 19,
1: + PINCTRL_PIN_REG_DRV_E0 = 20,
1: + PINCTRL_PIN_REG_DRV_E1 = 21,
1: + PINCTRL_PIN_REG_MAX = 22,
1: +};
1: +
1: +enum {
1: + DRV_FIXED = 0,
1: + DRV_GRP0 = 1,
1: + DRV_GRP1 = 2,
1: + DRV_GRP2 = 3,
1: + DRV_GRP3 = 4,
1: + DRV_GRP4 = 5,
1: + DRV_GRP_MAX = 6,
1: };
1:
1: struct mtk_pin_field {
1: - u8 index;
1: - u32 offset;
1: - u32 mask;
1: - u8 bitpos;
1: - u8 next;
1: + u8 index;
1: + u32 offset;
1: + u32 mask;
1: + u8 bitpos;
1: + u8 next;
1: };
1:
1: struct mtk_pin_field_calc {
1: - u16 s_pin;
1: - u16 e_pin;
1: - u8 i_base;
1: - u32 s_addr;
1: - u8 x_addrs;
1: - u8 s_bit;
1: - u8 x_bits;
1: - u8 sz_reg;
1: - u8 fixed;
1: + u16 s_pin;
1: + u16 e_pin;
1: + u8 i_base;
1: + u32 s_addr;
1: + u8 x_addrs;
1: + u8 s_bit;
1: + u8 x_bits;
1: + u8 sz_reg;
1: + u8 fixed;
1: };
1:
1: struct mtk_pin_reg_calc {
1: - const struct mtk_pin_field_calc *range;
1: - unsigned int nranges;
1: + const struct mtk_pin_field_calc *range;
1: + unsigned int nranges;
1: };
1:
1: struct mtk_func_desc {
1: - const char *name;
1: - u8 muxval;
1: + const char *name;
1: + u8 muxval;
1: };
1:
1: struct mtk_eint_desc {
1: - u16 eint_m;
1: - u16 eint_n;
1: + u16 eint_m;
1: + u16 eint_n;
1: };
1:
1: struct mtk_pin_desc {
1: - unsigned int number;
1: - const char *name;
1: - struct mtk_eint_desc eint;
1: - u8 drv_n;
1: - struct mtk_func_desc *funcs;
1: + unsigned int number;
1: + const char *name;
1: + struct mtk_eint_desc eint;
1: + u8 drv_n;
1: + struct mtk_func_desc *funcs;
1: };
1:
1: struct mtk_pinctrl___2;
1:
1: struct mtk_pin_soc {
1: - const struct mtk_pin_reg_calc *reg_cal;
1: - const struct mtk_pin_desc *pins;
1: - unsigned int npins;
1: - const struct group_desc *grps;
1: - unsigned int ngrps;
1: - const struct function_desc *funcs;
1: - unsigned int nfuncs;
1: - const struct mtk_eint_regs *eint_regs;
1: - const struct mtk_eint_hw *eint_hw;
1: - u8 gpio_m;
1: - bool ies_present;
1: - const char * const *base_names;
1: - unsigned int nbase_names;
1: - int (*bias_disable_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *);
1: - int (*bias_disable_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, int *);
1: - int (*bias_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool);
1: - int (*bias_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, int *);
1: - int (*bias_set_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32, u32);
1: - int (*bias_get_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32 *, u32 *);
1: - int (*drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32);
1: - int (*drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, int *);
1: - int (*adv_pull_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, u32);
1: - int (*adv_pull_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool, u32 *);
1: - int (*adv_drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32);
1: - int (*adv_drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32 *);
1: - void *driver_data;
1: + const struct mtk_pin_reg_calc *reg_cal;
1: + const struct mtk_pin_desc *pins;
1: + unsigned int npins;
1: + const struct group_desc *grps;
1: + unsigned int ngrps;
1: + const struct function_desc *funcs;
1: + unsigned int nfuncs;
1: + const struct mtk_eint_regs *eint_regs;
1: + const struct mtk_eint_hw *eint_hw;
1: + u8 gpio_m;
1: + bool ies_present;
1: + const char *const *base_names;
1: + unsigned int nbase_names;
1: + int (*bias_disable_set)(struct mtk_pinctrl___2 *,
1: + const struct mtk_pin_desc *);
1: + int (*bias_disable_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + int *);
1: + int (*bias_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool);
1: + int (*bias_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, bool,
1: + int *);
1: + int (*bias_set_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + u32, u32);
1: + int (*bias_get_combo)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + u32 *, u32 *);
1: + int (*drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *, u32);
1: + int (*drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + int *);
1: + int (*adv_pull_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + bool, u32);
1: + int (*adv_pull_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + bool, u32 *);
1: + int (*adv_drive_set)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + u32);
1: + int (*adv_drive_get)(struct mtk_pinctrl___2 *, const struct mtk_pin_desc *,
1: + u32 *);
1: + void *driver_data;
1: };
1:
1: struct mtk_pinctrl___2 {
1: - struct pinctrl_dev *pctrl;
1: - void **base;
1: - u8 nbase;
1: - struct device *dev;
1: - struct gpio_chip chip;
1: - const struct mtk_pin_soc *soc;
1: - struct mtk_eint *eint;
1: - struct mtk_pinctrl_group *groups;
1: - const char **grp_names;
1: + struct pinctrl_dev *pctrl;
1: + void **base;
1: + u8 nbase;
1: + struct device *dev;
1: + struct gpio_chip chip;
1: + const struct mtk_pin_soc *soc;
1: + struct mtk_eint *eint;
1: + struct mtk_pinctrl_group *groups;
1: + const char **grp_names;
1: };
1:
1: struct mtk_drive_desc {
1: - u8 min;
1: - u8 max;
1: - u8 step;
1: - u8 scal;
1: + u8 min;
1: + u8 max;
1: + u8 step;
1: + u8 scal;
1: };
1:
1: struct mt6397_chip {
1: - struct device *dev;
1: - struct regmap *regmap;
1: - struct notifier_block pm_nb;
1: - int irq;
1: - struct irq_domain *irq_domain;
1: - struct mutex irqlock;
1: - u16 wake_mask[2];
1: - u16 irq_masks_cur[2];
1: - u16 irq_masks_cache[2];
1: - u16 int_con[2];
1: - u16 int_status[2];
1: - u16 chip_id;
1: - void *irq_data;
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct notifier_block pm_nb;
1: + int irq;
1: + struct irq_domain *irq_domain;
1: + struct mutex irqlock;
1: + u16 wake_mask[2];
1: + u16 irq_masks_cur[2];
1: + u16 irq_masks_cache[2];
1: + u16 int_con[2];
1: + u16 int_status[2];
1: + u16 chip_id;
1: + void *irq_data;
1: };
1:
1: struct madera_pin_groups {
1: - const char *name;
1: - const unsigned int *pins;
1: - unsigned int n_pins;
1: + const char *name;
1: + const unsigned int *pins;
1: + unsigned int n_pins;
1: };
1:
1: struct madera_pin_chip {
1: - unsigned int n_pins;
1: - const struct madera_pin_groups *pin_groups;
1: - unsigned int n_pin_groups;
1: + unsigned int n_pins;
1: + const struct madera_pin_groups *pin_groups;
1: + unsigned int n_pin_groups;
1: };
1:
1: struct madera_pin_private {
1: - struct madera *madera;
1: - const struct madera_pin_chip *chip;
1: - struct device *dev;
1: - struct pinctrl_dev *pctl;
1: + struct madera *madera;
1: + const struct madera_pin_chip *chip;
1: + struct device *dev;
1: + struct pinctrl_dev *pctl;
1: };
1:
1: struct gpio_pin_range {
1: - struct list_head node;
1: - struct pinctrl_dev *pctldev;
1: - struct pinctrl_gpio_range range;
1: + struct list_head node;
1: + struct pinctrl_dev *pctldev;
1: + struct pinctrl_gpio_range range;
1: };
1:
1: struct gpio_array;
1:
1: struct gpio_descs {
1: - struct gpio_array *info;
1: - unsigned int ndescs;
1: - struct gpio_desc___2 *desc[0];
1: + struct gpio_array *info;
1: + unsigned int ndescs;
1: + struct gpio_desc___2 *desc[0];
1: };
1:
1: struct gpio_array {
1: - struct gpio_desc___2 **desc;
1: - unsigned int size;
1: - struct gpio_chip *chip;
1: - long unsigned int *get_mask;
1: - long unsigned int *set_mask;
1: - long unsigned int invert_mask[0];
1: + struct gpio_desc___2 **desc;
1: + unsigned int size;
1: + struct gpio_chip *chip;
1: + long unsigned int *get_mask;
1: + long unsigned int *set_mask;
1: + long unsigned int invert_mask[0];
1: };
1:
1: enum gpiod_flags {
1: - GPIOD_ASIS = 0,
1: - GPIOD_IN = 1,
1: - GPIOD_OUT_LOW = 3,
1: - GPIOD_OUT_HIGH = 7,
1: - GPIOD_OUT_LOW_OPEN_DRAIN = 11,
1: - GPIOD_OUT_HIGH_OPEN_DRAIN = 15,
1: + GPIOD_ASIS = 0,
1: + GPIOD_IN = 1,
1: + GPIOD_OUT_LOW = 3,
1: + GPIOD_OUT_HIGH = 7,
1: + GPIOD_OUT_LOW_OPEN_DRAIN = 11,
1: + GPIOD_OUT_HIGH_OPEN_DRAIN = 15,
1: };
1:
1: enum gpio_lookup_flags {
1: - GPIO_ACTIVE_HIGH = 0,
1: - GPIO_ACTIVE_LOW = 1,
1: - GPIO_OPEN_DRAIN = 2,
1: - GPIO_OPEN_SOURCE = 4,
1: - GPIO_PERSISTENT = 0,
1: - GPIO_TRANSITORY = 8,
1: - GPIO_PULL_UP = 16,
1: - GPIO_PULL_DOWN = 32,
1: - GPIO_LOOKUP_FLAGS_DEFAULT = 0,
1: + GPIO_ACTIVE_HIGH = 0,
1: + GPIO_ACTIVE_LOW = 1,
1: + GPIO_OPEN_DRAIN = 2,
1: + GPIO_OPEN_SOURCE = 4,
1: + GPIO_PERSISTENT = 0,
1: + GPIO_TRANSITORY = 8,
1: + GPIO_PULL_UP = 16,
1: + GPIO_PULL_DOWN = 32,
1: + GPIO_LOOKUP_FLAGS_DEFAULT = 0,
1: };
1:
1: struct gpiod_lookup {
1: - const char *key;
1: - u16 chip_hwnum;
1: - const char *con_id;
1: - unsigned int idx;
1: - long unsigned int flags;
1: + const char *key;
1: + u16 chip_hwnum;
1: + const char *con_id;
1: + unsigned int idx;
1: + long unsigned int flags;
1: };
1:
1: struct gpiod_lookup_table {
1: - struct list_head list;
1: - const char *dev_id;
1: - struct gpiod_lookup table[0];
1: + struct list_head list;
1: + const char *dev_id;
1: + struct gpiod_lookup table[0];
1: };
1:
1: struct gpiod_hog {
1: - struct list_head list;
1: - const char *chip_label;
1: - u16 chip_hwnum;
1: - const char *line_name;
1: - long unsigned int lflags;
1: - int dflags;
1: + struct list_head list;
1: + const char *chip_label;
1: + u16 chip_hwnum;
1: + const char *line_name;
1: + long unsigned int lflags;
1: + int dflags;
1: };
1:
1: enum {
1: - GPIOLINE_CHANGED_REQUESTED = 1,
1: - GPIOLINE_CHANGED_RELEASED = 2,
1: - GPIOLINE_CHANGED_CONFIG = 3,
1: + GPIOLINE_CHANGED_REQUESTED = 1,
1: + GPIOLINE_CHANGED_RELEASED = 2,
1: + GPIOLINE_CHANGED_CONFIG = 3,
1: };
1:
1: struct acpi_gpio_info {
1: - struct acpi_device *adev;
1: - enum gpiod_flags flags;
1: - bool gpioint;
1: - int pin_config;
1: - int polarity;
1: - int triggering;
1: - unsigned int quirks;
1: + struct acpi_device *adev;
1: + enum gpiod_flags flags;
1: + bool gpioint;
1: + int pin_config;
1: + int polarity;
1: + int triggering;
1: + unsigned int quirks;
1: };
1:
1: struct trace_event_raw_gpio_direction {
1: - struct trace_entry ent;
1: - unsigned int gpio;
1: - int in;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int gpio;
1: + int in;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_gpio_value {
1: - struct trace_entry ent;
1: - unsigned int gpio;
1: - int get;
1: - int value;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int gpio;
1: + int get;
1: + int value;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_gpio_direction {};
1: @@ -62886,2230 +63818,2239 @@ typedef void (*btf_trace_gpio_value)(void *, unsigned int, int, int);
1: struct devres;
1:
1: struct gpio {
1: - unsigned int gpio;
1: - long unsigned int flags;
1: - const char *label;
1: + unsigned int gpio;
1: + long unsigned int flags;
1: + const char *label;
1: };
1:
1: struct of_reconfig_data {
1: - struct device_node *dn;
1: - struct property *prop;
1: - struct property *old_prop;
1: + struct device_node *dn;
1: + struct property *prop;
1: + struct property *old_prop;
1: };
1:
1: enum of_reconfig_change {
1: - OF_RECONFIG_NO_CHANGE = 0,
1: - OF_RECONFIG_CHANGE_ADD = 1,
1: - OF_RECONFIG_CHANGE_REMOVE = 2,
1: + OF_RECONFIG_NO_CHANGE = 0,
1: + OF_RECONFIG_CHANGE_ADD = 1,
1: + OF_RECONFIG_CHANGE_REMOVE = 2,
1: };
1:
1: enum of_gpio_flags {
1: - OF_GPIO_ACTIVE_LOW = 1,
1: - OF_GPIO_SINGLE_ENDED = 2,
1: - OF_GPIO_OPEN_DRAIN = 4,
1: - OF_GPIO_TRANSITORY = 8,
1: - OF_GPIO_PULL_UP = 16,
1: - OF_GPIO_PULL_DOWN = 32,
1: + OF_GPIO_ACTIVE_LOW = 1,
1: + OF_GPIO_SINGLE_ENDED = 2,
1: + OF_GPIO_OPEN_DRAIN = 4,
1: + OF_GPIO_TRANSITORY = 8,
1: + OF_GPIO_PULL_UP = 16,
1: + OF_GPIO_PULL_DOWN = 32,
1: };
1:
1: struct of_mm_gpio_chip {
1: - struct gpio_chip gc;
1: - void (*save_regs)(struct of_mm_gpio_chip *);
1: - void *regs;
1: + struct gpio_chip gc;
1: + void (*save_regs)(struct of_mm_gpio_chip *);
1: + void *regs;
1: };
1:
1: struct gpiochip_info {
1: - char name[32];
1: - char label[32];
1: - __u32 lines;
1: + char name[32];
1: + char label[32];
1: + __u32 lines;
1: };
1:
1: enum gpio_v2_line_flag {
1: - GPIO_V2_LINE_FLAG_USED = 1,
1: - GPIO_V2_LINE_FLAG_ACTIVE_LOW = 2,
1: - GPIO_V2_LINE_FLAG_INPUT = 4,
1: - GPIO_V2_LINE_FLAG_OUTPUT = 8,
1: - GPIO_V2_LINE_FLAG_EDGE_RISING = 16,
1: - GPIO_V2_LINE_FLAG_EDGE_FALLING = 32,
1: - GPIO_V2_LINE_FLAG_OPEN_DRAIN = 64,
1: - GPIO_V2_LINE_FLAG_OPEN_SOURCE = 128,
1: - GPIO_V2_LINE_FLAG_BIAS_PULL_UP = 256,
1: - GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN = 512,
1: - GPIO_V2_LINE_FLAG_BIAS_DISABLED = 1024,
1: + GPIO_V2_LINE_FLAG_USED = 1,
1: + GPIO_V2_LINE_FLAG_ACTIVE_LOW = 2,
1: + GPIO_V2_LINE_FLAG_INPUT = 4,
1: + GPIO_V2_LINE_FLAG_OUTPUT = 8,
1: + GPIO_V2_LINE_FLAG_EDGE_RISING = 16,
1: + GPIO_V2_LINE_FLAG_EDGE_FALLING = 32,
1: + GPIO_V2_LINE_FLAG_OPEN_DRAIN = 64,
1: + GPIO_V2_LINE_FLAG_OPEN_SOURCE = 128,
1: + GPIO_V2_LINE_FLAG_BIAS_PULL_UP = 256,
1: + GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN = 512,
1: + GPIO_V2_LINE_FLAG_BIAS_DISABLED = 1024,
1: };
1:
1: struct gpio_v2_line_values {
1: - __u64 bits;
1: - __u64 mask;
1: + __u64 bits;
1: + __u64 mask;
1: };
1:
1: enum gpio_v2_line_attr_id {
1: - GPIO_V2_LINE_ATTR_ID_FLAGS = 1,
1: - GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES = 2,
1: - GPIO_V2_LINE_ATTR_ID_DEBOUNCE = 3,
1: + GPIO_V2_LINE_ATTR_ID_FLAGS = 1,
1: + GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES = 2,
1: + GPIO_V2_LINE_ATTR_ID_DEBOUNCE = 3,
1: };
1:
1: struct gpio_v2_line_attribute {
1: - __u32 id;
1: - __u32 padding;
1: - union {
1: - __u64 flags;
1: - __u64 values;
1: - __u32 debounce_period_us;
1: - };
1: + __u32 id;
1: + __u32 padding;
1: + union {
1: + __u64 flags;
1: + __u64 values;
1: + __u32 debounce_period_us;
1: + };
1: };
1:
1: struct gpio_v2_line_config_attribute {
1: - struct gpio_v2_line_attribute attr;
1: - __u64 mask;
1: + struct gpio_v2_line_attribute attr;
1: + __u64 mask;
1: };
1:
1: struct gpio_v2_line_config {
1: - __u64 flags;
1: - __u32 num_attrs;
1: - __u32 padding[5];
1: - struct gpio_v2_line_config_attribute attrs[10];
1: + __u64 flags;
1: + __u32 num_attrs;
1: + __u32 padding[5];
1: + struct gpio_v2_line_config_attribute attrs[10];
1: };
1:
1: struct gpio_v2_line_request {
1: - __u32 offsets[64];
1: - char consumer[32];
1: - struct gpio_v2_line_config config;
1: - __u32 num_lines;
1: - __u32 event_buffer_size;
1: - __u32 padding[5];
1: - __s32 fd;
1: + __u32 offsets[64];
1: + char consumer[32];
1: + struct gpio_v2_line_config config;
1: + __u32 num_lines;
1: + __u32 event_buffer_size;
1: + __u32 padding[5];
1: + __s32 fd;
1: };
1:
1: struct gpio_v2_line_info {
1: - char name[32];
1: - char consumer[32];
1: - __u32 offset;
1: - __u32 num_attrs;
1: - __u64 flags;
1: - struct gpio_v2_line_attribute attrs[10];
1: - __u32 padding[4];
1: + char name[32];
1: + char consumer[32];
1: + __u32 offset;
1: + __u32 num_attrs;
1: + __u64 flags;
1: + struct gpio_v2_line_attribute attrs[10];
1: + __u32 padding[4];
1: };
1:
1: enum gpio_v2_line_changed_type {
1: - GPIO_V2_LINE_CHANGED_REQUESTED = 1,
1: - GPIO_V2_LINE_CHANGED_RELEASED = 2,
1: - GPIO_V2_LINE_CHANGED_CONFIG = 3,
1: + GPIO_V2_LINE_CHANGED_REQUESTED = 1,
1: + GPIO_V2_LINE_CHANGED_RELEASED = 2,
1: + GPIO_V2_LINE_CHANGED_CONFIG = 3,
1: };
1:
1: struct gpio_v2_line_info_changed {
1: - struct gpio_v2_line_info info;
1: - __u64 timestamp_ns;
1: - __u32 event_type;
1: - __u32 padding[5];
1: + struct gpio_v2_line_info info;
1: + __u64 timestamp_ns;
1: + __u32 event_type;
1: + __u32 padding[5];
1: };
1:
1: enum gpio_v2_line_event_id {
1: - GPIO_V2_LINE_EVENT_RISING_EDGE = 1,
1: - GPIO_V2_LINE_EVENT_FALLING_EDGE = 2,
1: + GPIO_V2_LINE_EVENT_RISING_EDGE = 1,
1: + GPIO_V2_LINE_EVENT_FALLING_EDGE = 2,
1: };
1:
1: struct gpio_v2_line_event {
1: - __u64 timestamp_ns;
1: - __u32 id;
1: - __u32 offset;
1: - __u32 seqno;
1: - __u32 line_seqno;
1: - __u32 padding[6];
1: + __u64 timestamp_ns;
1: + __u32 id;
1: + __u32 offset;
1: + __u32 seqno;
1: + __u32 line_seqno;
1: + __u32 padding[6];
1: };
1:
1: struct gpioline_info {
1: - __u32 line_offset;
1: - __u32 flags;
1: - char name[32];
1: - char consumer[32];
1: + __u32 line_offset;
1: + __u32 flags;
1: + char name[32];
1: + char consumer[32];
1: };
1:
1: struct gpioline_info_changed {
1: - struct gpioline_info info;
1: - __u64 timestamp;
1: - __u32 event_type;
1: - __u32 padding[5];
1: + struct gpioline_info info;
1: + __u64 timestamp;
1: + __u32 event_type;
1: + __u32 padding[5];
1: };
1:
1: struct gpiohandle_request {
1: - __u32 lineoffsets[64];
1: - __u32 flags;
1: - __u8 default_values[64];
1: - char consumer_label[32];
1: - __u32 lines;
1: - int fd;
1: + __u32 lineoffsets[64];
1: + __u32 flags;
1: + __u8 default_values[64];
1: + char consumer_label[32];
1: + __u32 lines;
1: + int fd;
1: };
1:
1: struct gpiohandle_config {
1: - __u32 flags;
1: - __u8 default_values[64];
1: - __u32 padding[4];
1: + __u32 flags;
1: + __u8 default_values[64];
1: + __u32 padding[4];
1: };
1:
1: struct gpiohandle_data {
1: - __u8 values[64];
1: + __u8 values[64];
1: };
1:
1: struct gpioevent_request {
1: - __u32 lineoffset;
1: - __u32 handleflags;
1: - __u32 eventflags;
1: - char consumer_label[32];
1: - int fd;
1: + __u32 lineoffset;
1: + __u32 handleflags;
1: + __u32 eventflags;
1: + char consumer_label[32];
1: + int fd;
1: };
1:
1: struct gpioevent_data {
1: - __u64 timestamp;
1: - __u32 id;
1: + __u64 timestamp;
1: + __u32 id;
1: };
1:
1: struct linehandle_state {
1: - struct gpio_device *gdev;
1: - const char *label;
1: - struct gpio_desc___2 *descs[64];
1: - u32 num_descs;
1: + struct gpio_device *gdev;
1: + const char *label;
1: + struct gpio_desc___2 *descs[64];
1: + u32 num_descs;
1: };
1:
1: struct linereq;
1:
1: struct line {
1: - struct gpio_desc___2 *desc;
1: - struct linereq *req;
1: - unsigned int irq;
1: - u64 eflags;
1: - u64 timestamp_ns;
1: - u32 req_seqno;
1: - u32 line_seqno;
1: - struct delayed_work work;
1: - unsigned int sw_debounced;
1: - unsigned int level;
1: + struct gpio_desc___2 *desc;
1: + struct linereq *req;
1: + unsigned int irq;
1: + u64 eflags;
1: + u64 timestamp_ns;
1: + u32 req_seqno;
1: + u32 line_seqno;
1: + struct delayed_work work;
1: + unsigned int sw_debounced;
1: + unsigned int level;
1: };
1:
1: struct linereq {
1: - struct gpio_device *gdev;
1: - const char *label;
1: - u32 num_lines;
1: - wait_queue_head_t wait;
1: - u32 event_buffer_size;
1: - struct {
1: - union {
1: - struct __kfifo kfifo;
1: - struct gpio_v2_line_event *type;
1: - const struct gpio_v2_line_event *const_type;
1: - char (*rectype)[0];
1: - struct gpio_v2_line_event *ptr;
1: - const struct gpio_v2_line_event *ptr_const;
1: - };
1: - struct gpio_v2_line_event buf[0];
1: - } events;
1: - atomic_t seqno;
1: - struct mutex config_mutex;
1: - struct line lines[0];
1: + struct gpio_device *gdev;
1: + const char *label;
1: + u32 num_lines;
1: + wait_queue_head_t wait;
1: + u32 event_buffer_size;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpio_v2_line_event *type;
1: + const struct gpio_v2_line_event *const_type;
1: + char (*rectype)[0];
1: + struct gpio_v2_line_event *ptr;
1: + const struct gpio_v2_line_event *ptr_const;
1: + };
1: + struct gpio_v2_line_event buf[0];
1: + } events;
1: + atomic_t seqno;
1: + struct mutex config_mutex;
1: + struct line lines[0];
1: };
1:
1: struct lineevent_state {
1: - struct gpio_device *gdev;
1: - const char *label;
1: - struct gpio_desc___2 *desc;
1: - u32 eflags;
1: - int irq;
1: - wait_queue_head_t wait;
1: - struct {
1: - union {
1: - struct __kfifo kfifo;
1: - struct gpioevent_data *type;
1: - const struct gpioevent_data *const_type;
1: - char (*rectype)[0];
1: - struct gpioevent_data *ptr;
1: - const struct gpioevent_data *ptr_const;
1: - };
1: - struct gpioevent_data buf[16];
1: - } events;
1: - u64 timestamp;
1: + struct gpio_device *gdev;
1: + const char *label;
1: + struct gpio_desc___2 *desc;
1: + u32 eflags;
1: + int irq;
1: + wait_queue_head_t wait;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpioevent_data *type;
1: + const struct gpioevent_data *const_type;
1: + char (*rectype)[0];
1: + struct gpioevent_data *ptr;
1: + const struct gpioevent_data *ptr_const;
1: + };
1: + struct gpioevent_data buf[16];
1: + } events;
1: + u64 timestamp;
1: };
1:
1: struct gpio_chardev_data {
1: - struct gpio_device *gdev;
1: - wait_queue_head_t wait;
1: - struct {
1: - union {
1: - struct __kfifo kfifo;
1: - struct gpio_v2_line_info_changed *type;
1: - const struct gpio_v2_line_info_changed *const_type;
1: - char (*rectype)[0];
1: - struct gpio_v2_line_info_changed *ptr;
1: - const struct gpio_v2_line_info_changed *ptr_const;
1: - };
1: - struct gpio_v2_line_info_changed buf[32];
1: - } events;
1: - struct notifier_block lineinfo_changed_nb;
1: - long unsigned int *watched_lines;
1: - atomic_t watch_abi_version;
1: + struct gpio_device *gdev;
1: + wait_queue_head_t wait;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct gpio_v2_line_info_changed *type;
1: + const struct gpio_v2_line_info_changed *const_type;
1: + char (*rectype)[0];
1: + struct gpio_v2_line_info_changed *ptr;
1: + const struct gpio_v2_line_info_changed *ptr_const;
1: + };
1: + struct gpio_v2_line_info_changed buf[32];
1: + } events;
1: + struct notifier_block lineinfo_changed_nb;
1: + long unsigned int *watched_lines;
1: + atomic_t watch_abi_version;
1: };
1:
1: struct class_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct class *, struct class_attribute *, char *);
1: - ssize_t (*store)(struct class *, struct class_attribute *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct class *, struct class_attribute *, char *);
1: + ssize_t (*store)(struct class *, struct class_attribute *, const char *,
1: + size_t);
1: };
1:
1: struct gpiod_data {
1: - struct gpio_desc___2 *desc;
1: - struct mutex mutex;
1: - struct kernfs_node *value_kn;
1: - int irq;
1: - unsigned char irq_flags;
1: - bool direction_can_change;
1: + struct gpio_desc___2 *desc;
1: + struct mutex mutex;
1: + struct kernfs_node *value_kn;
1: + int irq;
1: + unsigned char irq_flags;
1: + bool direction_can_change;
1: };
1:
1: enum dmi_field {
1: - DMI_NONE = 0,
1: - DMI_BIOS_VENDOR = 1,
1: - DMI_BIOS_VERSION = 2,
1: - DMI_BIOS_DATE = 3,
1: - DMI_BIOS_RELEASE = 4,
1: - DMI_EC_FIRMWARE_RELEASE = 5,
1: - DMI_SYS_VENDOR = 6,
1: - DMI_PRODUCT_NAME = 7,
1: - DMI_PRODUCT_VERSION = 8,
1: - DMI_PRODUCT_SERIAL = 9,
1: - DMI_PRODUCT_UUID = 10,
1: - DMI_PRODUCT_SKU = 11,
1: - DMI_PRODUCT_FAMILY = 12,
1: - DMI_BOARD_VENDOR = 13,
1: - DMI_BOARD_NAME = 14,
1: - DMI_BOARD_VERSION = 15,
1: - DMI_BOARD_SERIAL = 16,
1: - DMI_BOARD_ASSET_TAG = 17,
1: - DMI_CHASSIS_VENDOR = 18,
1: - DMI_CHASSIS_TYPE = 19,
1: - DMI_CHASSIS_VERSION = 20,
1: - DMI_CHASSIS_SERIAL = 21,
1: - DMI_CHASSIS_ASSET_TAG = 22,
1: - DMI_STRING_MAX = 23,
1: - DMI_OEM_STRING = 24,
1: + DMI_NONE = 0,
1: + DMI_BIOS_VENDOR = 1,
1: + DMI_BIOS_VERSION = 2,
1: + DMI_BIOS_DATE = 3,
1: + DMI_BIOS_RELEASE = 4,
1: + DMI_EC_FIRMWARE_RELEASE = 5,
1: + DMI_SYS_VENDOR = 6,
1: + DMI_PRODUCT_NAME = 7,
1: + DMI_PRODUCT_VERSION = 8,
1: + DMI_PRODUCT_SERIAL = 9,
1: + DMI_PRODUCT_UUID = 10,
1: + DMI_PRODUCT_SKU = 11,
1: + DMI_PRODUCT_FAMILY = 12,
1: + DMI_BOARD_VENDOR = 13,
1: + DMI_BOARD_NAME = 14,
1: + DMI_BOARD_VERSION = 15,
1: + DMI_BOARD_SERIAL = 16,
1: + DMI_BOARD_ASSET_TAG = 17,
1: + DMI_CHASSIS_VENDOR = 18,
1: + DMI_CHASSIS_TYPE = 19,
1: + DMI_CHASSIS_VERSION = 20,
1: + DMI_CHASSIS_SERIAL = 21,
1: + DMI_CHASSIS_ASSET_TAG = 22,
1: + DMI_STRING_MAX = 23,
1: + DMI_OEM_STRING = 24,
1: };
1:
1: struct dmi_strmatch {
1: - unsigned char slot: 7;
1: - unsigned char exact_match: 1;
1: - char substr[79];
1: + unsigned char slot : 7;
1: + unsigned char exact_match : 1;
1: + char substr[79];
1: };
1:
1: struct dmi_system_id {
1: - int (*callback)(const struct dmi_system_id *);
1: - const char *ident;
1: - struct dmi_strmatch matches[4];
1: - void *driver_data;
1: + int (*callback)(const struct dmi_system_id *);
1: + const char *ident;
1: + struct dmi_strmatch matches[4];
1: + void *driver_data;
1: };
1:
1: typedef u8 acpi_adr_space_type;
1:
1: struct acpi_connection_info {
1: - u8 *connection;
1: - u16 length;
1: - u8 access_length;
1: + u8 *connection;
1: + u16 length;
1: + u8 access_length;
1: };
1:
1: struct acpi_resource_irq {
1: - u8 descriptor_length;
1: - u8 triggering;
1: - u8 polarity;
1: - u8 shareable;
1: - u8 wake_capable;
1: - u8 interrupt_count;
1: - u8 interrupts[1];
1: + u8 descriptor_length;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 interrupt_count;
1: + u8 interrupts[1];
1: };
1:
1: struct acpi_resource_dma {
1: - u8 type;
1: - u8 bus_master;
1: - u8 transfer;
1: - u8 channel_count;
1: - u8 channels[1];
1: + u8 type;
1: + u8 bus_master;
1: + u8 transfer;
1: + u8 channel_count;
1: + u8 channels[1];
1: };
1:
1: struct acpi_resource_start_dependent {
1: - u8 descriptor_length;
1: - u8 compatibility_priority;
1: - u8 performance_robustness;
1: + u8 descriptor_length;
1: + u8 compatibility_priority;
1: + u8 performance_robustness;
1: };
1:
1: struct acpi_resource_io {
1: - u8 io_decode;
1: - u8 alignment;
1: - u8 address_length;
1: - u16 minimum;
1: - u16 maximum;
1: + u8 io_decode;
1: + u8 alignment;
1: + u8 address_length;
1: + u16 minimum;
1: + u16 maximum;
1: } __attribute__((packed));
1:
1: struct acpi_resource_fixed_io {
1: - u16 address;
1: - u8 address_length;
1: + u16 address;
1: + u8 address_length;
1: } __attribute__((packed));
1:
1: struct acpi_resource_fixed_dma {
1: - u16 request_lines;
1: - u16 channels;
1: - u8 width;
1: + u16 request_lines;
1: + u16 channels;
1: + u8 width;
1: } __attribute__((packed));
1:
1: struct acpi_resource_vendor {
1: - u16 byte_length;
1: - u8 byte_data[1];
1: + u16 byte_length;
1: + u8 byte_data[1];
1: } __attribute__((packed));
1:
1: struct acpi_resource_vendor_typed {
1: - u16 byte_length;
1: - u8 uuid_subtype;
1: - u8 uuid[16];
1: - u8 byte_data[1];
1: + u16 byte_length;
1: + u8 uuid_subtype;
1: + u8 uuid[16];
1: + u8 byte_data[1];
1: };
1:
1: struct acpi_resource_end_tag {
1: - u8 checksum;
1: + u8 checksum;
1: };
1:
1: struct acpi_resource_memory24 {
1: - u8 write_protect;
1: - u16 minimum;
1: - u16 maximum;
1: - u16 alignment;
1: - u16 address_length;
1: + u8 write_protect;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 alignment;
1: + u16 address_length;
1: } __attribute__((packed));
1:
1: struct acpi_resource_memory32 {
1: - u8 write_protect;
1: - u32 minimum;
1: - u32 maximum;
1: - u32 alignment;
1: - u32 address_length;
1: + u8 write_protect;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 alignment;
1: + u32 address_length;
1: } __attribute__((packed));
1:
1: struct acpi_resource_fixed_memory32 {
1: - u8 write_protect;
1: - u32 address;
1: - u32 address_length;
1: + u8 write_protect;
1: + u32 address;
1: + u32 address_length;
1: } __attribute__((packed));
1:
1: struct acpi_memory_attribute {
1: - u8 write_protect;
1: - u8 caching;
1: - u8 range_type;
1: - u8 translation;
1: + u8 write_protect;
1: + u8 caching;
1: + u8 range_type;
1: + u8 translation;
1: };
1:
1: struct acpi_io_attribute {
1: - u8 range_type;
1: - u8 translation;
1: - u8 translation_type;
1: - u8 reserved1;
1: + u8 range_type;
1: + u8 translation;
1: + u8 translation_type;
1: + u8 reserved1;
1: };
1:
1: union acpi_resource_attribute {
1: - struct acpi_memory_attribute mem;
1: - struct acpi_io_attribute io;
1: - u8 type_specific;
1: + struct acpi_memory_attribute mem;
1: + struct acpi_io_attribute io;
1: + u8 type_specific;
1: };
1:
1: struct acpi_resource_label {
1: - u16 string_length;
1: - char *string_ptr;
1: + u16 string_length;
1: + char *string_ptr;
1: } __attribute__((packed));
1:
1: struct acpi_resource_source {
1: - u8 index;
1: - u16 string_length;
1: - char *string_ptr;
1: + u8 index;
1: + u16 string_length;
1: + char *string_ptr;
1: } __attribute__((packed));
1:
1: struct acpi_address16_attribute {
1: - u16 granularity;
1: - u16 minimum;
1: - u16 maximum;
1: - u16 translation_offset;
1: - u16 address_length;
1: + u16 granularity;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 translation_offset;
1: + u16 address_length;
1: };
1:
1: struct acpi_address32_attribute {
1: - u32 granularity;
1: - u32 minimum;
1: - u32 maximum;
1: - u32 translation_offset;
1: - u32 address_length;
1: + u32 granularity;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 translation_offset;
1: + u32 address_length;
1: };
1:
1: struct acpi_address64_attribute {
1: - u64 granularity;
1: - u64 minimum;
1: - u64 maximum;
1: - u64 translation_offset;
1: - u64 address_length;
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: };
1:
1: struct acpi_resource_address {
1: - u8 resource_type;
1: - u8 producer_consumer;
1: - u8 decode;
1: - u8 min_address_fixed;
1: - u8 max_address_fixed;
1: - union acpi_resource_attribute info;
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: };
1:
1: struct acpi_resource_address16 {
1: - u8 resource_type;
1: - u8 producer_consumer;
1: - u8 decode;
1: - u8 min_address_fixed;
1: - u8 max_address_fixed;
1: - union acpi_resource_attribute info;
1: - struct acpi_address16_attribute address;
1: - struct acpi_resource_source resource_source;
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address16_attribute address;
1: + struct acpi_resource_source resource_source;
1: } __attribute__((packed));
1:
1: struct acpi_resource_address32 {
1: - u8 resource_type;
1: - u8 producer_consumer;
1: - u8 decode;
1: - u8 min_address_fixed;
1: - u8 max_address_fixed;
1: - union acpi_resource_attribute info;
1: - struct acpi_address32_attribute address;
1: - struct acpi_resource_source resource_source;
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address32_attribute address;
1: + struct acpi_resource_source resource_source;
1: } __attribute__((packed));
1:
1: struct acpi_resource_address64 {
1: - u8 resource_type;
1: - u8 producer_consumer;
1: - u8 decode;
1: - u8 min_address_fixed;
1: - u8 max_address_fixed;
1: - union acpi_resource_attribute info;
1: - struct acpi_address64_attribute address;
1: - struct acpi_resource_source resource_source;
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + struct acpi_address64_attribute address;
1: + struct acpi_resource_source resource_source;
1: } __attribute__((packed));
1:
1: struct acpi_resource_extended_address64 {
1: - u8 resource_type;
1: - u8 producer_consumer;
1: - u8 decode;
1: - u8 min_address_fixed;
1: - u8 max_address_fixed;
1: - union acpi_resource_attribute info;
1: - u8 revision_ID;
1: - struct acpi_address64_attribute address;
1: - u64 type_specific;
1: + u8 resource_type;
1: + u8 producer_consumer;
1: + u8 decode;
1: + u8 min_address_fixed;
1: + u8 max_address_fixed;
1: + union acpi_resource_attribute info;
1: + u8 revision_ID;
1: + struct acpi_address64_attribute address;
1: + u64 type_specific;
1: } __attribute__((packed));
1:
1: struct acpi_resource_extended_irq {
1: - u8 producer_consumer;
1: - u8 triggering;
1: - u8 polarity;
1: - u8 shareable;
1: - u8 wake_capable;
1: - u8 interrupt_count;
1: - struct acpi_resource_source resource_source;
1: - u32 interrupts[1];
1: + u8 producer_consumer;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 interrupt_count;
1: + struct acpi_resource_source resource_source;
1: + u32 interrupts[1];
1: } __attribute__((packed));
1:
1: struct acpi_resource_generic_register {
1: - u8 space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 access_size;
1: - u64 address;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct acpi_resource_gpio {
1: - u8 revision_id;
1: - u8 connection_type;
1: - u8 producer_consumer;
1: - u8 pin_config;
1: - u8 shareable;
1: - u8 wake_capable;
1: - u8 io_restriction;
1: - u8 triggering;
1: - u8 polarity;
1: - u16 drive_strength;
1: - u16 debounce_timeout;
1: - u16 pin_table_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u16 *pin_table;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 connection_type;
1: + u8 producer_consumer;
1: + u8 pin_config;
1: + u8 shareable;
1: + u8 wake_capable;
1: + u8 io_restriction;
1: + u8 triggering;
1: + u8 polarity;
1: + u16 drive_strength;
1: + u16 debounce_timeout;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_common_serialbus {
1: - u8 revision_id;
1: - u8 type;
1: - u8 producer_consumer;
1: - u8 slave_mode;
1: - u8 connection_sharing;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_i2c_serialbus {
1: - u8 revision_id;
1: - u8 type;
1: - u8 producer_consumer;
1: - u8 slave_mode;
1: - u8 connection_sharing;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u8 *vendor_data;
1: - u8 access_mode;
1: - u16 slave_address;
1: - u32 connection_speed;
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 access_mode;
1: + u16 slave_address;
1: + u32 connection_speed;
1: } __attribute__((packed));
1:
1: struct acpi_resource_spi_serialbus {
1: - u8 revision_id;
1: - u8 type;
1: - u8 producer_consumer;
1: - u8 slave_mode;
1: - u8 connection_sharing;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u8 *vendor_data;
1: - u8 wire_mode;
1: - u8 device_polarity;
1: - u8 data_bit_length;
1: - u8 clock_phase;
1: - u8 clock_polarity;
1: - u16 device_selection;
1: - u32 connection_speed;
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 wire_mode;
1: + u8 device_polarity;
1: + u8 data_bit_length;
1: + u8 clock_phase;
1: + u8 clock_polarity;
1: + u16 device_selection;
1: + u32 connection_speed;
1: } __attribute__((packed));
1:
1: struct acpi_resource_uart_serialbus {
1: - u8 revision_id;
1: - u8 type;
1: - u8 producer_consumer;
1: - u8 slave_mode;
1: - u8 connection_sharing;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u8 *vendor_data;
1: - u8 endian;
1: - u8 data_bits;
1: - u8 stop_bits;
1: - u8 flow_control;
1: - u8 parity;
1: - u8 lines_enabled;
1: - u16 rx_fifo_size;
1: - u16 tx_fifo_size;
1: - u32 default_baud_rate;
1: + u8 revision_id;
1: + u8 type;
1: + u8 producer_consumer;
1: + u8 slave_mode;
1: + u8 connection_sharing;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u8 *vendor_data;
1: + u8 endian;
1: + u8 data_bits;
1: + u8 stop_bits;
1: + u8 flow_control;
1: + u8 parity;
1: + u8 lines_enabled;
1: + u16 rx_fifo_size;
1: + u16 tx_fifo_size;
1: + u32 default_baud_rate;
1: } __attribute__((packed));
1:
1: struct acpi_resource_pin_function {
1: - u8 revision_id;
1: - u8 pin_config;
1: - u8 shareable;
1: - u16 function_number;
1: - u16 pin_table_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u16 *pin_table;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 pin_config;
1: + u8 shareable;
1: + u16 function_number;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_pin_config {
1: - u8 revision_id;
1: - u8 producer_consumer;
1: - u8 shareable;
1: - u8 pin_config_type;
1: - u32 pin_config_value;
1: - u16 pin_table_length;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - u16 *pin_table;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + u16 *pin_table;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_pin_group {
1: - u8 revision_id;
1: - u8 producer_consumer;
1: - u16 pin_table_length;
1: - u16 vendor_length;
1: - u16 *pin_table;
1: - struct acpi_resource_label resource_label;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u16 pin_table_length;
1: + u16 vendor_length;
1: + u16 *pin_table;
1: + struct acpi_resource_label resource_label;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_pin_group_function {
1: - u8 revision_id;
1: - u8 producer_consumer;
1: - u8 shareable;
1: - u16 function_number;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - struct acpi_resource_label resource_source_label;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u16 function_number;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + struct acpi_resource_label resource_source_label;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: struct acpi_resource_pin_group_config {
1: - u8 revision_id;
1: - u8 producer_consumer;
1: - u8 shareable;
1: - u8 pin_config_type;
1: - u32 pin_config_value;
1: - u16 vendor_length;
1: - struct acpi_resource_source resource_source;
1: - struct acpi_resource_label resource_source_label;
1: - u8 *vendor_data;
1: + u8 revision_id;
1: + u8 producer_consumer;
1: + u8 shareable;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 vendor_length;
1: + struct acpi_resource_source resource_source;
1: + struct acpi_resource_label resource_source_label;
1: + u8 *vendor_data;
1: } __attribute__((packed));
1:
1: union acpi_resource_data {
1: - struct acpi_resource_irq irq;
1: - struct acpi_resource_dma dma;
1: - struct acpi_resource_start_dependent start_dpf;
1: - struct acpi_resource_io io;
1: - struct acpi_resource_fixed_io fixed_io;
1: - struct acpi_resource_fixed_dma fixed_dma;
1: - struct acpi_resource_vendor vendor;
1: - struct acpi_resource_vendor_typed vendor_typed;
1: - struct acpi_resource_end_tag end_tag;
1: - struct acpi_resource_memory24 memory24;
1: - struct acpi_resource_memory32 memory32;
1: - struct acpi_resource_fixed_memory32 fixed_memory32;
1: - struct acpi_resource_address16 address16;
1: - struct acpi_resource_address32 address32;
1: - struct acpi_resource_address64 address64;
1: - struct acpi_resource_extended_address64 ext_address64;
1: - struct acpi_resource_extended_irq extended_irq;
1: - struct acpi_resource_generic_register generic_reg;
1: - struct acpi_resource_gpio gpio;
1: - struct acpi_resource_i2c_serialbus i2c_serial_bus;
1: - struct acpi_resource_spi_serialbus spi_serial_bus;
1: - struct acpi_resource_uart_serialbus uart_serial_bus;
1: - struct acpi_resource_common_serialbus common_serial_bus;
1: - struct acpi_resource_pin_function pin_function;
1: - struct acpi_resource_pin_config pin_config;
1: - struct acpi_resource_pin_group pin_group;
1: - struct acpi_resource_pin_group_function pin_group_function;
1: - struct acpi_resource_pin_group_config pin_group_config;
1: - struct acpi_resource_address address;
1: + struct acpi_resource_irq irq;
1: + struct acpi_resource_dma dma;
1: + struct acpi_resource_start_dependent start_dpf;
1: + struct acpi_resource_io io;
1: + struct acpi_resource_fixed_io fixed_io;
1: + struct acpi_resource_fixed_dma fixed_dma;
1: + struct acpi_resource_vendor vendor;
1: + struct acpi_resource_vendor_typed vendor_typed;
1: + struct acpi_resource_end_tag end_tag;
1: + struct acpi_resource_memory24 memory24;
1: + struct acpi_resource_memory32 memory32;
1: + struct acpi_resource_fixed_memory32 fixed_memory32;
1: + struct acpi_resource_address16 address16;
1: + struct acpi_resource_address32 address32;
1: + struct acpi_resource_address64 address64;
1: + struct acpi_resource_extended_address64 ext_address64;
1: + struct acpi_resource_extended_irq extended_irq;
1: + struct acpi_resource_generic_register generic_reg;
1: + struct acpi_resource_gpio gpio;
1: + struct acpi_resource_i2c_serialbus i2c_serial_bus;
1: + struct acpi_resource_spi_serialbus spi_serial_bus;
1: + struct acpi_resource_uart_serialbus uart_serial_bus;
1: + struct acpi_resource_common_serialbus common_serial_bus;
1: + struct acpi_resource_pin_function pin_function;
1: + struct acpi_resource_pin_config pin_config;
1: + struct acpi_resource_pin_group pin_group;
1: + struct acpi_resource_pin_group_function pin_group_function;
1: + struct acpi_resource_pin_group_config pin_group_config;
1: + struct acpi_resource_address address;
1: };
1:
1: struct acpi_resource {
1: - u32 type;
1: - u32 length;
1: - union acpi_resource_data data;
1: + u32 type;
1: + u32 length;
1: + union acpi_resource_data data;
1: } __attribute__((packed));
1:
1: struct acpi_gpiolib_dmi_quirk {
1: - bool no_edge_events_on_boot;
1: - char *ignore_wake;
1: + bool no_edge_events_on_boot;
1: + char *ignore_wake;
1: };
1:
1: struct acpi_gpio_event {
1: - struct list_head node;
1: - acpi_handle handle;
1: - irq_handler_t handler;
1: - unsigned int pin;
1: - unsigned int irq;
1: - long unsigned int irqflags;
1: - bool irq_is_wake;
1: - bool irq_requested;
1: - struct gpio_desc___2 *desc;
1: + struct list_head node;
1: + acpi_handle handle;
1: + irq_handler_t handler;
1: + unsigned int pin;
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + bool irq_is_wake;
1: + bool irq_requested;
1: + struct gpio_desc___2 *desc;
1: };
1:
1: struct acpi_gpio_connection {
1: - struct list_head node;
1: - unsigned int pin;
1: - struct gpio_desc___2 *desc;
1: + struct list_head node;
1: + unsigned int pin;
1: + struct gpio_desc___2 *desc;
1: };
1:
1: struct acpi_gpio_chip {
1: - struct acpi_connection_info conn_info;
1: - struct list_head conns;
1: - struct mutex conn_lock;
1: - struct gpio_chip *chip;
1: - struct list_head events;
1: - struct list_head deferred_req_irqs_list_entry;
1: + struct acpi_connection_info conn_info;
1: + struct list_head conns;
1: + struct mutex conn_lock;
1: + struct gpio_chip *chip;
1: + struct list_head events;
1: + struct list_head deferred_req_irqs_list_entry;
1: };
1:
1: struct acpi_gpio_lookup {
1: - struct acpi_gpio_info info;
1: - int index;
1: - int pin_index;
1: - bool active_low;
1: - struct gpio_desc___2 *desc;
1: - int n;
1: + struct acpi_gpio_info info;
1: + int index;
1: + int pin_index;
1: + bool active_low;
1: + struct gpio_desc___2 *desc;
1: + int n;
1: };
1:
1: struct bgpio_pdata {
1: - const char *label;
1: - int base;
1: - int ngpio;
1: + const char *label;
1: + int base;
1: + int ngpio;
1: };
1:
1: enum pwm_polarity {
1: - PWM_POLARITY_NORMAL = 0,
1: - PWM_POLARITY_INVERSED = 1,
1: + PWM_POLARITY_NORMAL = 0,
1: + PWM_POLARITY_INVERSED = 1,
1: };
1:
1: struct pwm_args {
1: - u64 period;
1: - enum pwm_polarity polarity;
1: + u64 period;
1: + enum pwm_polarity polarity;
1: };
1:
1: struct pwm_state {
1: - u64 period;
1: - u64 duty_cycle;
1: - enum pwm_polarity polarity;
1: - bool enabled;
1: + u64 period;
1: + u64 duty_cycle;
1: + enum pwm_polarity polarity;
1: + bool enabled;
1: };
1:
1: struct pwm_chip;
1:
1: struct pwm_device {
1: - const char *label;
1: - long unsigned int flags;
1: - unsigned int hwpwm;
1: - unsigned int pwm;
1: - struct pwm_chip *chip;
1: - void *chip_data;
1: - struct pwm_args args;
1: - struct pwm_state state;
1: - struct pwm_state last;
1: + const char *label;
1: + long unsigned int flags;
1: + unsigned int hwpwm;
1: + unsigned int pwm;
1: + struct pwm_chip *chip;
1: + void *chip_data;
1: + struct pwm_args args;
1: + struct pwm_state state;
1: + struct pwm_state last;
1: };
1:
1: struct pwm_ops;
1:
1: struct pwm_chip {
1: - struct device *dev;
1: - const struct pwm_ops *ops;
1: - int base;
1: - unsigned int npwm;
1: - struct pwm_device * (*of_xlate)(struct pwm_chip *, const struct of_phandle_args *);
1: - unsigned int of_pwm_n_cells;
1: - struct list_head list;
1: - struct pwm_device *pwms;
1: + struct device *dev;
1: + const struct pwm_ops *ops;
1: + int base;
1: + unsigned int npwm;
1: + struct pwm_device *(*of_xlate)(struct pwm_chip *,
1: + const struct of_phandle_args *);
1: + unsigned int of_pwm_n_cells;
1: + struct list_head list;
1: + struct pwm_device *pwms;
1: };
1:
1: struct pwm_capture;
1:
1: struct pwm_ops {
1: - int (*request)(struct pwm_chip *, struct pwm_device *);
1: - void (*free)(struct pwm_chip *, struct pwm_device *);
1: - int (*capture)(struct pwm_chip *, struct pwm_device *, struct pwm_capture *, long unsigned int);
1: - int (*apply)(struct pwm_chip *, struct pwm_device *, const struct pwm_state *);
1: - void (*get_state)(struct pwm_chip *, struct pwm_device *, struct pwm_state *);
1: - struct module *owner;
1: - int (*config)(struct pwm_chip *, struct pwm_device *, int, int);
1: - int (*set_polarity)(struct pwm_chip *, struct pwm_device *, enum pwm_polarity);
1: - int (*enable)(struct pwm_chip *, struct pwm_device *);
1: - void (*disable)(struct pwm_chip *, struct pwm_device *);
1: + int (*request)(struct pwm_chip *, struct pwm_device *);
1: + void (*free)(struct pwm_chip *, struct pwm_device *);
1: + int (*capture)(struct pwm_chip *, struct pwm_device *, struct pwm_capture *,
1: + long unsigned int);
1: + int (*apply)(struct pwm_chip *, struct pwm_device *,
1: + const struct pwm_state *);
1: + void (*get_state)(struct pwm_chip *, struct pwm_device *, struct pwm_state *);
1: + struct module *owner;
1: + int (*config)(struct pwm_chip *, struct pwm_device *, int, int);
1: + int (*set_polarity)(struct pwm_chip *, struct pwm_device *,
1: + enum pwm_polarity);
1: + int (*enable)(struct pwm_chip *, struct pwm_device *);
1: + void (*disable)(struct pwm_chip *, struct pwm_device *);
1: };
1:
1: struct pwm_capture {
1: - unsigned int period;
1: - unsigned int duty_cycle;
1: + unsigned int period;
1: + unsigned int duty_cycle;
1: };
1:
1: struct mvebu_gpio_chip;
1:
1: struct mvebu_pwm {
1: - void *membase;
1: - long unsigned int clk_rate;
1: - struct gpio_desc *gpiod;
1: - struct pwm_chip chip;
1: - spinlock_t lock;
1: - struct mvebu_gpio_chip *mvchip;
1: - u32 blink_select;
1: - u32 blink_on_duration;
1: - u32 blink_off_duration;
1: + void *membase;
1: + long unsigned int clk_rate;
1: + struct gpio_desc *gpiod;
1: + struct pwm_chip chip;
1: + spinlock_t lock;
1: + struct mvebu_gpio_chip *mvchip;
1: + u32 blink_select;
1: + u32 blink_on_duration;
1: + u32 blink_off_duration;
1: };
1:
1: struct mvebu_gpio_chip {
1: - struct gpio_chip chip;
1: - struct regmap *regs;
1: - u32 offset;
1: - struct regmap *percpu_regs;
1: - int irqbase;
1: - struct irq_domain *domain;
1: - int soc_variant;
1: - struct clk *clk;
1: - struct mvebu_pwm *mvpwm;
1: - u32 out_reg;
1: - u32 io_conf_reg;
1: - u32 blink_en_reg;
1: - u32 in_pol_reg;
1: - u32 edge_mask_regs[4];
1: - u32 level_mask_regs[4];
1: + struct gpio_chip chip;
1: + struct regmap *regs;
1: + u32 offset;
1: + struct regmap *percpu_regs;
1: + int irqbase;
1: + struct irq_domain *domain;
1: + int soc_variant;
1: + struct clk *clk;
1: + struct mvebu_pwm *mvpwm;
1: + u32 out_reg;
1: + u32 io_conf_reg;
1: + u32 blink_en_reg;
1: + u32 in_pol_reg;
1: + u32 edge_mask_regs[4];
1: + u32 level_mask_regs[4];
1: };
1:
1: struct amba_id {
1: - unsigned int id;
1: - unsigned int mask;
1: - void *data;
1: + unsigned int id;
1: + unsigned int mask;
1: + void *data;
1: };
1:
1: struct amba_cs_uci_id {
1: - unsigned int devarch;
1: - unsigned int devarch_mask;
1: - unsigned int devtype;
1: - void *data;
1: + unsigned int devarch;
1: + unsigned int devarch_mask;
1: + unsigned int devtype;
1: + void *data;
1: };
1:
1: struct amba_device {
1: - struct device dev;
1: - struct resource res;
1: - struct clk *pclk;
1: - struct device_dma_parameters dma_parms;
1: - unsigned int periphid;
1: - unsigned int cid;
1: - struct amba_cs_uci_id uci;
1: - unsigned int irq[9];
1: - char *driver_override;
1: + struct device dev;
1: + struct resource res;
1: + struct clk *pclk;
1: + struct device_dma_parameters dma_parms;
1: + unsigned int periphid;
1: + unsigned int cid;
1: + struct amba_cs_uci_id uci;
1: + unsigned int irq[9];
1: + char *driver_override;
1: };
1:
1: struct amba_driver {
1: - struct device_driver drv;
1: - int (*probe)(struct amba_device *, const struct amba_id *);
1: - int (*remove)(struct amba_device *);
1: - void (*shutdown)(struct amba_device *);
1: - const struct amba_id *id_table;
1: + struct device_driver drv;
1: + int (*probe)(struct amba_device *, const struct amba_id *);
1: + int (*remove)(struct amba_device *);
1: + void (*shutdown)(struct amba_device *);
1: + const struct amba_id *id_table;
1: };
1:
1: struct pl061_context_save_regs {
1: - u8 gpio_data;
1: - u8 gpio_dir;
1: - u8 gpio_is;
1: - u8 gpio_ibe;
1: - u8 gpio_iev;
1: - u8 gpio_ie;
1: + u8 gpio_data;
1: + u8 gpio_dir;
1: + u8 gpio_is;
1: + u8 gpio_ibe;
1: + u8 gpio_iev;
1: + u8 gpio_ie;
1: };
1:
1: struct pl061 {
1: - raw_spinlock_t lock;
1: - void *base;
1: - struct gpio_chip gc;
1: - struct irq_chip irq_chip;
1: - int parent_irq;
1: - struct pl061_context_save_regs csave_regs;
1: + raw_spinlock_t lock;
1: + void *base;
1: + struct gpio_chip gc;
1: + struct irq_chip irq_chip;
1: + int parent_irq;
1: + struct pl061_context_save_regs csave_regs;
1: };
1:
1: enum rpi_firmware_property_tag {
1: - RPI_FIRMWARE_PROPERTY_END = 0,
1: - RPI_FIRMWARE_GET_FIRMWARE_REVISION = 1,
1: - RPI_FIRMWARE_SET_CURSOR_INFO = 32784,
1: - RPI_FIRMWARE_SET_CURSOR_STATE = 32785,
1: - RPI_FIRMWARE_GET_BOARD_MODEL = 65537,
1: - RPI_FIRMWARE_GET_BOARD_REVISION = 65538,
1: - RPI_FIRMWARE_GET_BOARD_MAC_ADDRESS = 65539,
1: - RPI_FIRMWARE_GET_BOARD_SERIAL = 65540,
1: - RPI_FIRMWARE_GET_ARM_MEMORY = 65541,
1: - RPI_FIRMWARE_GET_VC_MEMORY = 65542,
1: - RPI_FIRMWARE_GET_CLOCKS = 65543,
1: - RPI_FIRMWARE_GET_POWER_STATE = 131073,
1: - RPI_FIRMWARE_GET_TIMING = 131074,
1: - RPI_FIRMWARE_SET_POWER_STATE = 163841,
1: - RPI_FIRMWARE_GET_CLOCK_STATE = 196609,
1: - RPI_FIRMWARE_GET_CLOCK_RATE = 196610,
1: - RPI_FIRMWARE_GET_VOLTAGE = 196611,
1: - RPI_FIRMWARE_GET_MAX_CLOCK_RATE = 196612,
1: - RPI_FIRMWARE_GET_MAX_VOLTAGE = 196613,
1: - RPI_FIRMWARE_GET_TEMPERATURE = 196614,
1: - RPI_FIRMWARE_GET_MIN_CLOCK_RATE = 196615,
1: - RPI_FIRMWARE_GET_MIN_VOLTAGE = 196616,
1: - RPI_FIRMWARE_GET_TURBO = 196617,
1: - RPI_FIRMWARE_GET_MAX_TEMPERATURE = 196618,
1: - RPI_FIRMWARE_GET_STC = 196619,
1: - RPI_FIRMWARE_ALLOCATE_MEMORY = 196620,
1: - RPI_FIRMWARE_LOCK_MEMORY = 196621,
1: - RPI_FIRMWARE_UNLOCK_MEMORY = 196622,
1: - RPI_FIRMWARE_RELEASE_MEMORY = 196623,
1: - RPI_FIRMWARE_EXECUTE_CODE = 196624,
1: - RPI_FIRMWARE_EXECUTE_QPU = 196625,
1: - RPI_FIRMWARE_SET_ENABLE_QPU = 196626,
1: - RPI_FIRMWARE_GET_DISPMANX_RESOURCE_MEM_HANDLE = 196628,
1: - RPI_FIRMWARE_GET_EDID_BLOCK = 196640,
1: - RPI_FIRMWARE_GET_CUSTOMER_OTP = 196641,
1: - RPI_FIRMWARE_GET_DOMAIN_STATE = 196656,
1: - RPI_FIRMWARE_GET_THROTTLED = 196678,
1: - RPI_FIRMWARE_GET_CLOCK_MEASURED = 196679,
1: - RPI_FIRMWARE_NOTIFY_REBOOT = 196680,
1: - RPI_FIRMWARE_SET_CLOCK_STATE = 229377,
1: - RPI_FIRMWARE_SET_CLOCK_RATE = 229378,
1: - RPI_FIRMWARE_SET_VOLTAGE = 229379,
1: - RPI_FIRMWARE_SET_TURBO = 229385,
1: - RPI_FIRMWARE_SET_CUSTOMER_OTP = 229409,
1: - RPI_FIRMWARE_SET_DOMAIN_STATE = 229424,
1: - RPI_FIRMWARE_GET_GPIO_STATE = 196673,
1: - RPI_FIRMWARE_SET_GPIO_STATE = 229441,
1: - RPI_FIRMWARE_SET_SDHOST_CLOCK = 229442,
1: - RPI_FIRMWARE_GET_GPIO_CONFIG = 196675,
1: - RPI_FIRMWARE_SET_GPIO_CONFIG = 229443,
1: - RPI_FIRMWARE_GET_PERIPH_REG = 196677,
1: - RPI_FIRMWARE_SET_PERIPH_REG = 229445,
1: - RPI_FIRMWARE_GET_POE_HAT_VAL = 196681,
1: - RPI_FIRMWARE_SET_POE_HAT_VAL = 196688,
1: - RPI_FIRMWARE_NOTIFY_XHCI_RESET = 196696,
1: - RPI_FIRMWARE_FRAMEBUFFER_ALLOCATE = 262145,
1: - RPI_FIRMWARE_FRAMEBUFFER_BLANK = 262146,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_PHYSICAL_WIDTH_HEIGHT = 262147,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_WIDTH_HEIGHT = 262148,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_DEPTH = 262149,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_PIXEL_ORDER = 262150,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_ALPHA_MODE = 262151,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_PITCH = 262152,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_OFFSET = 262153,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_OVERSCAN = 262154,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_PALETTE = 262155,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_TOUCHBUF = 262159,
1: - RPI_FIRMWARE_FRAMEBUFFER_GET_GPIOVIRTBUF = 262160,
1: - RPI_FIRMWARE_FRAMEBUFFER_RELEASE = 294913,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_PHYSICAL_WIDTH_HEIGHT = 278531,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_WIDTH_HEIGHT = 278532,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_DEPTH = 278533,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_PIXEL_ORDER = 278534,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_ALPHA_MODE = 278535,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_OFFSET = 278537,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_OVERSCAN = 278538,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_PALETTE = 278539,
1: - RPI_FIRMWARE_FRAMEBUFFER_TEST_VSYNC = 278542,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_PHYSICAL_WIDTH_HEIGHT = 294915,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_WIDTH_HEIGHT = 294916,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_DEPTH = 294917,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_PIXEL_ORDER = 294918,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_ALPHA_MODE = 294919,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_OFFSET = 294921,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_OVERSCAN = 294922,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_PALETTE = 294923,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF = 294943,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF = 294944,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_VSYNC = 294926,
1: - RPI_FIRMWARE_FRAMEBUFFER_SET_BACKLIGHT = 294927,
1: - RPI_FIRMWARE_VCHIQ_INIT = 294928,
1: - RPI_FIRMWARE_GET_COMMAND_LINE = 327681,
1: - RPI_FIRMWARE_GET_DMA_CHANNELS = 393217,
1: + RPI_FIRMWARE_PROPERTY_END = 0,
1: + RPI_FIRMWARE_GET_FIRMWARE_REVISION = 1,
1: + RPI_FIRMWARE_SET_CURSOR_INFO = 32784,
1: + RPI_FIRMWARE_SET_CURSOR_STATE = 32785,
1: + RPI_FIRMWARE_GET_BOARD_MODEL = 65537,
1: + RPI_FIRMWARE_GET_BOARD_REVISION = 65538,
1: + RPI_FIRMWARE_GET_BOARD_MAC_ADDRESS = 65539,
1: + RPI_FIRMWARE_GET_BOARD_SERIAL = 65540,
1: + RPI_FIRMWARE_GET_ARM_MEMORY = 65541,
1: + RPI_FIRMWARE_GET_VC_MEMORY = 65542,
1: + RPI_FIRMWARE_GET_CLOCKS = 65543,
1: + RPI_FIRMWARE_GET_POWER_STATE = 131073,
1: + RPI_FIRMWARE_GET_TIMING = 131074,
1: + RPI_FIRMWARE_SET_POWER_STATE = 163841,
1: + RPI_FIRMWARE_GET_CLOCK_STATE = 196609,
1: + RPI_FIRMWARE_GET_CLOCK_RATE = 196610,
1: + RPI_FIRMWARE_GET_VOLTAGE = 196611,
1: + RPI_FIRMWARE_GET_MAX_CLOCK_RATE = 196612,
1: + RPI_FIRMWARE_GET_MAX_VOLTAGE = 196613,
1: + RPI_FIRMWARE_GET_TEMPERATURE = 196614,
1: + RPI_FIRMWARE_GET_MIN_CLOCK_RATE = 196615,
1: + RPI_FIRMWARE_GET_MIN_VOLTAGE = 196616,
1: + RPI_FIRMWARE_GET_TURBO = 196617,
1: + RPI_FIRMWARE_GET_MAX_TEMPERATURE = 196618,
1: + RPI_FIRMWARE_GET_STC = 196619,
1: + RPI_FIRMWARE_ALLOCATE_MEMORY = 196620,
1: + RPI_FIRMWARE_LOCK_MEMORY = 196621,
1: + RPI_FIRMWARE_UNLOCK_MEMORY = 196622,
1: + RPI_FIRMWARE_RELEASE_MEMORY = 196623,
1: + RPI_FIRMWARE_EXECUTE_CODE = 196624,
1: + RPI_FIRMWARE_EXECUTE_QPU = 196625,
1: + RPI_FIRMWARE_SET_ENABLE_QPU = 196626,
1: + RPI_FIRMWARE_GET_DISPMANX_RESOURCE_MEM_HANDLE = 196628,
1: + RPI_FIRMWARE_GET_EDID_BLOCK = 196640,
1: + RPI_FIRMWARE_GET_CUSTOMER_OTP = 196641,
1: + RPI_FIRMWARE_GET_DOMAIN_STATE = 196656,
1: + RPI_FIRMWARE_GET_THROTTLED = 196678,
1: + RPI_FIRMWARE_GET_CLOCK_MEASURED = 196679,
1: + RPI_FIRMWARE_NOTIFY_REBOOT = 196680,
1: + RPI_FIRMWARE_SET_CLOCK_STATE = 229377,
1: + RPI_FIRMWARE_SET_CLOCK_RATE = 229378,
1: + RPI_FIRMWARE_SET_VOLTAGE = 229379,
1: + RPI_FIRMWARE_SET_TURBO = 229385,
1: + RPI_FIRMWARE_SET_CUSTOMER_OTP = 229409,
1: + RPI_FIRMWARE_SET_DOMAIN_STATE = 229424,
1: + RPI_FIRMWARE_GET_GPIO_STATE = 196673,
1: + RPI_FIRMWARE_SET_GPIO_STATE = 229441,
1: + RPI_FIRMWARE_SET_SDHOST_CLOCK = 229442,
1: + RPI_FIRMWARE_GET_GPIO_CONFIG = 196675,
1: + RPI_FIRMWARE_SET_GPIO_CONFIG = 229443,
1: + RPI_FIRMWARE_GET_PERIPH_REG = 196677,
1: + RPI_FIRMWARE_SET_PERIPH_REG = 229445,
1: + RPI_FIRMWARE_GET_POE_HAT_VAL = 196681,
1: + RPI_FIRMWARE_SET_POE_HAT_VAL = 196688,
1: + RPI_FIRMWARE_NOTIFY_XHCI_RESET = 196696,
1: + RPI_FIRMWARE_FRAMEBUFFER_ALLOCATE = 262145,
1: + RPI_FIRMWARE_FRAMEBUFFER_BLANK = 262146,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PHYSICAL_WIDTH_HEIGHT = 262147,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_WIDTH_HEIGHT = 262148,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_DEPTH = 262149,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PIXEL_ORDER = 262150,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_ALPHA_MODE = 262151,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PITCH = 262152,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_VIRTUAL_OFFSET = 262153,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_OVERSCAN = 262154,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_PALETTE = 262155,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_TOUCHBUF = 262159,
1: + RPI_FIRMWARE_FRAMEBUFFER_GET_GPIOVIRTBUF = 262160,
1: + RPI_FIRMWARE_FRAMEBUFFER_RELEASE = 294913,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PHYSICAL_WIDTH_HEIGHT = 278531,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_WIDTH_HEIGHT = 278532,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_DEPTH = 278533,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PIXEL_ORDER = 278534,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_ALPHA_MODE = 278535,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VIRTUAL_OFFSET = 278537,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_OVERSCAN = 278538,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_PALETTE = 278539,
1: + RPI_FIRMWARE_FRAMEBUFFER_TEST_VSYNC = 278542,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PHYSICAL_WIDTH_HEIGHT = 294915,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_WIDTH_HEIGHT = 294916,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_DEPTH = 294917,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PIXEL_ORDER = 294918,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_ALPHA_MODE = 294919,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_OFFSET = 294921,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_OVERSCAN = 294922,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_PALETTE = 294923,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF = 294943,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF = 294944,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_VSYNC = 294926,
1: + RPI_FIRMWARE_FRAMEBUFFER_SET_BACKLIGHT = 294927,
1: + RPI_FIRMWARE_VCHIQ_INIT = 294928,
1: + RPI_FIRMWARE_GET_COMMAND_LINE = 327681,
1: + RPI_FIRMWARE_GET_DMA_CHANNELS = 393217,
1: };
1:
1: struct rpi_firmware;
1:
1: struct rpi_exp_gpio {
1: - struct gpio_chip gc;
1: - struct rpi_firmware *fw;
1: + struct gpio_chip gc;
1: + struct rpi_firmware *fw;
1: };
1:
1: struct gpio_set_config {
1: - u32 gpio;
1: - u32 direction;
1: - u32 polarity;
1: - u32 term_en;
1: - u32 term_pull_up;
1: - u32 state;
1: + u32 gpio;
1: + u32 direction;
1: + u32 polarity;
1: + u32 term_en;
1: + u32 term_pull_up;
1: + u32 state;
1: };
1:
1: struct gpio_get_config {
1: - u32 gpio;
1: - u32 direction;
1: - u32 polarity;
1: - u32 term_en;
1: - u32 term_pull_up;
1: + u32 gpio;
1: + u32 direction;
1: + u32 polarity;
1: + u32 term_en;
1: + u32 term_pull_up;
1: };
1:
1: struct gpio_get_set_state {
1: - u32 gpio;
1: - u32 state;
1: + u32 gpio;
1: + u32 state;
1: };
1:
1: struct tegra_gpio_port {
1: - const char *name;
1: - unsigned int bank;
1: - unsigned int port;
1: - unsigned int pins;
1: + const char *name;
1: + unsigned int bank;
1: + unsigned int port;
1: + unsigned int pins;
1: };
1:
1: struct tegra186_pin_range {
1: - unsigned int offset;
1: - const char *group;
1: + unsigned int offset;
1: + const char *group;
1: };
1:
1: struct tegra_gpio_soc {
1: - const struct tegra_gpio_port *ports;
1: - unsigned int num_ports;
1: - const char *name;
1: - unsigned int instance;
1: - const struct tegra186_pin_range *pin_ranges;
1: - unsigned int num_pin_ranges;
1: - const char *pinmux;
1: + const struct tegra_gpio_port *ports;
1: + unsigned int num_ports;
1: + const char *name;
1: + unsigned int instance;
1: + const struct tegra186_pin_range *pin_ranges;
1: + unsigned int num_pin_ranges;
1: + const char *pinmux;
1: };
1:
1: struct tegra_gpio {
1: - struct gpio_chip gpio;
1: - struct irq_chip intc;
1: - unsigned int num_irq;
1: - unsigned int *irq;
1: - const struct tegra_gpio_soc *soc;
1: - void *secure;
1: - void *base;
1: + struct gpio_chip gpio;
1: + struct irq_chip intc;
1: + unsigned int num_irq;
1: + unsigned int *irq;
1: + const struct tegra_gpio_soc *soc;
1: + void *secure;
1: + void *base;
1: };
1:
1: struct tegra_gpio_info;
1:
1: struct tegra_gpio_bank {
1: - unsigned int bank;
1: - unsigned int irq;
1: - spinlock_t lvl_lock[4];
1: - spinlock_t dbc_lock[4];
1: - u32 cnf[4];
1: - u32 out[4];
1: - u32 oe[4];
1: - u32 int_enb[4];
1: - u32 int_lvl[4];
1: - u32 wake_enb[4];
1: - u32 dbc_enb[4];
1: - u32 dbc_cnt[4];
1: - struct tegra_gpio_info *tgi;
1: + unsigned int bank;
1: + unsigned int irq;
1: + spinlock_t lvl_lock[4];
1: + spinlock_t dbc_lock[4];
1: + u32 cnf[4];
1: + u32 out[4];
1: + u32 oe[4];
1: + u32 int_enb[4];
1: + u32 int_lvl[4];
1: + u32 wake_enb[4];
1: + u32 dbc_enb[4];
1: + u32 dbc_cnt[4];
1: + struct tegra_gpio_info *tgi;
1: };
1:
1: struct tegra_gpio_soc_config;
1:
1: struct tegra_gpio_info {
1: - struct device *dev;
1: - void *regs;
1: - struct irq_domain *irq_domain;
1: - struct tegra_gpio_bank *bank_info;
1: - const struct tegra_gpio_soc_config *soc;
1: - struct gpio_chip gc;
1: - struct irq_chip ic;
1: - u32 bank_count;
1: + struct device *dev;
1: + void *regs;
1: + struct irq_domain *irq_domain;
1: + struct tegra_gpio_bank *bank_info;
1: + const struct tegra_gpio_soc_config *soc;
1: + struct gpio_chip gc;
1: + struct irq_chip ic;
1: + u32 bank_count;
1: };
1:
1: struct tegra_gpio_soc_config {
1: - bool debounce_supported;
1: - u32 bank_stride;
1: - u32 upper_offset;
1: + bool debounce_supported;
1: + u32 bank_stride;
1: + u32 upper_offset;
1: };
1:
1: struct msix_entry {
1: - u32 vector;
1: - u16 entry;
1: + u32 vector;
1: + u16 entry;
1: };
1:
1: struct thunderx_gpio;
1:
1: struct thunderx_line {
1: - struct thunderx_gpio *txgpio;
1: - unsigned int line;
1: - unsigned int fil_bits;
1: + struct thunderx_gpio *txgpio;
1: + unsigned int line;
1: + unsigned int fil_bits;
1: };
1:
1: struct thunderx_gpio {
1: - struct gpio_chip chip;
1: - u8 *register_base;
1: - struct msix_entry *msix_entries;
1: - struct thunderx_line *line_entries;
1: - raw_spinlock_t lock;
1: - long unsigned int invert_mask[2];
1: - long unsigned int od_mask[2];
1: - int base_msi;
1: + struct gpio_chip chip;
1: + u8 *register_base;
1: + struct msix_entry *msix_entries;
1: + struct thunderx_line *line_entries;
1: + raw_spinlock_t lock;
1: + long unsigned int invert_mask[2];
1: + long unsigned int od_mask[2];
1: + int base_msi;
1: };
1:
1: struct xgene_gpio {
1: - struct gpio_chip chip;
1: - void *base;
1: - spinlock_t lock;
1: - u32 set_dr_val[3];
1: + struct gpio_chip chip;
1: + void *base;
1: + spinlock_t lock;
1: + u32 set_dr_val[3];
1: };
1:
1: enum {
1: - PWMF_REQUESTED = 1,
1: - PWMF_EXPORTED = 2,
1: + PWMF_REQUESTED = 1,
1: + PWMF_EXPORTED = 2,
1: };
1:
1: struct pwm_lookup {
1: - struct list_head list;
1: - const char *provider;
1: - unsigned int index;
1: - const char *dev_id;
1: - const char *con_id;
1: - unsigned int period;
1: - enum pwm_polarity polarity;
1: - const char *module;
1: + struct list_head list;
1: + const char *provider;
1: + unsigned int index;
1: + const char *dev_id;
1: + const char *con_id;
1: + unsigned int period;
1: + enum pwm_polarity polarity;
1: + const char *module;
1: };
1:
1: struct trace_event_raw_pwm {
1: - struct trace_entry ent;
1: - struct pwm_device *pwm;
1: - u64 period;
1: - u64 duty_cycle;
1: - enum pwm_polarity polarity;
1: - bool enabled;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct pwm_device *pwm;
1: + u64 period;
1: + u64 duty_cycle;
1: + enum pwm_polarity polarity;
1: + bool enabled;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_pwm {};
1:
1: -typedef void (*btf_trace_pwm_apply)(void *, struct pwm_device *, const struct pwm_state *);
1: +typedef void (*btf_trace_pwm_apply)(void *, struct pwm_device *,
1: + const struct pwm_state *);
1:
1: -typedef void (*btf_trace_pwm_get)(void *, struct pwm_device *, const struct pwm_state *);
1: +typedef void (*btf_trace_pwm_get)(void *, struct pwm_device *,
1: + const struct pwm_state *);
1:
1: struct pwm_export {
1: - struct device child;
1: - struct pwm_device *pwm;
1: - struct mutex lock;
1: - struct pwm_state suspend;
1: + struct device child;
1: + struct pwm_device *pwm;
1: + struct mutex lock;
1: + struct pwm_state suspend;
1: };
1:
1: enum {
1: - pci_channel_io_normal = 1,
1: - pci_channel_io_frozen = 2,
1: - pci_channel_io_perm_failure = 3,
1: + pci_channel_io_normal = 1,
1: + pci_channel_io_frozen = 2,
1: + pci_channel_io_perm_failure = 3,
1: };
1:
1: struct pci_sriov {
1: - int pos;
1: - int nres;
1: - u32 cap;
1: - u16 ctrl;
1: - u16 total_VFs;
1: - u16 initial_VFs;
1: - u16 num_VFs;
1: - u16 offset;
1: - u16 stride;
1: - u16 vf_device;
1: - u32 pgsz;
1: - u8 link;
1: - u8 max_VF_buses;
1: - u16 driver_max_VFs;
1: - struct pci_dev *dev;
1: - struct pci_dev *self;
1: - u32 class;
1: - u8 hdr_type;
1: - u16 subsystem_vendor;
1: - u16 subsystem_device;
1: - resource_size_t barsz[6];
1: - bool drivers_autoprobe;
1: + int pos;
1: + int nres;
1: + u32 cap;
1: + u16 ctrl;
1: + u16 total_VFs;
1: + u16 initial_VFs;
1: + u16 num_VFs;
1: + u16 offset;
1: + u16 stride;
1: + u16 vf_device;
1: + u32 pgsz;
1: + u8 link;
1: + u8 max_VF_buses;
1: + u16 driver_max_VFs;
1: + struct pci_dev *dev;
1: + struct pci_dev *self;
1: + u32 class;
1: + u8 hdr_type;
1: + u16 subsystem_vendor;
1: + u16 subsystem_device;
1: + resource_size_t barsz[6];
1: + bool drivers_autoprobe;
1: };
1:
1: struct pci_bus_resource {
1: - struct list_head list;
1: - struct resource *res;
1: - unsigned int flags;
1: + struct list_head list;
1: + struct resource *res;
1: + unsigned int flags;
1: };
1:
1: typedef u64 pci_bus_addr_t;
1:
1: struct pci_bus_region {
1: - pci_bus_addr_t start;
1: - pci_bus_addr_t end;
1: + pci_bus_addr_t start;
1: + pci_bus_addr_t end;
1: };
1:
1: enum pci_fixup_pass {
1: - pci_fixup_early = 0,
1: - pci_fixup_header = 1,
1: - pci_fixup_final = 2,
1: - pci_fixup_enable = 3,
1: - pci_fixup_resume = 4,
1: - pci_fixup_suspend = 5,
1: - pci_fixup_resume_early = 6,
1: - pci_fixup_suspend_late = 7,
1: + pci_fixup_early = 0,
1: + pci_fixup_header = 1,
1: + pci_fixup_final = 2,
1: + pci_fixup_enable = 3,
1: + pci_fixup_resume = 4,
1: + pci_fixup_suspend = 5,
1: + pci_fixup_resume_early = 6,
1: + pci_fixup_suspend_late = 7,
1: };
1:
1: struct hotplug_slot_ops;
1:
1: struct hotplug_slot {
1: - const struct hotplug_slot_ops *ops;
1: - struct list_head slot_list;
1: - struct pci_slot *pci_slot;
1: - struct module *owner;
1: - const char *mod_name;
1: + const struct hotplug_slot_ops *ops;
1: + struct list_head slot_list;
1: + struct pci_slot *pci_slot;
1: + struct module *owner;
1: + const char *mod_name;
1: };
1:
1: enum pci_dev_flags {
1: - PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG = 1,
1: - PCI_DEV_FLAGS_NO_D3 = 2,
1: - PCI_DEV_FLAGS_ASSIGNED = 4,
1: - PCI_DEV_FLAGS_ACS_ENABLED_QUIRK = 8,
1: - PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS = 32,
1: - PCI_DEV_FLAGS_NO_BUS_RESET = 64,
1: - PCI_DEV_FLAGS_NO_PM_RESET = 128,
1: - PCI_DEV_FLAGS_VPD_REF_F0 = 256,
1: - PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT = 512,
1: - PCI_DEV_FLAGS_NO_FLR_RESET = 1024,
1: - PCI_DEV_FLAGS_NO_RELAXED_ORDERING = 2048,
1: + PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG = 1,
1: + PCI_DEV_FLAGS_NO_D3 = 2,
1: + PCI_DEV_FLAGS_ASSIGNED = 4,
1: + PCI_DEV_FLAGS_ACS_ENABLED_QUIRK = 8,
1: + PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS = 32,
1: + PCI_DEV_FLAGS_NO_BUS_RESET = 64,
1: + PCI_DEV_FLAGS_NO_PM_RESET = 128,
1: + PCI_DEV_FLAGS_VPD_REF_F0 = 256,
1: + PCI_DEV_FLAGS_BRIDGE_XLATE_ROOT = 512,
1: + PCI_DEV_FLAGS_NO_FLR_RESET = 1024,
1: + PCI_DEV_FLAGS_NO_RELAXED_ORDERING = 2048,
1: };
1:
1: enum pci_bus_flags {
1: - PCI_BUS_FLAGS_NO_MSI = 1,
1: - PCI_BUS_FLAGS_NO_MMRBC = 2,
1: - PCI_BUS_FLAGS_NO_AERSID = 4,
1: - PCI_BUS_FLAGS_NO_EXTCFG = 8,
1: + PCI_BUS_FLAGS_NO_MSI = 1,
1: + PCI_BUS_FLAGS_NO_MMRBC = 2,
1: + PCI_BUS_FLAGS_NO_AERSID = 4,
1: + PCI_BUS_FLAGS_NO_EXTCFG = 8,
1: };
1:
1: enum pci_bus_speed {
1: - PCI_SPEED_33MHz = 0,
1: - PCI_SPEED_66MHz = 1,
1: - PCI_SPEED_66MHz_PCIX = 2,
1: - PCI_SPEED_100MHz_PCIX = 3,
1: - PCI_SPEED_133MHz_PCIX = 4,
1: - PCI_SPEED_66MHz_PCIX_ECC = 5,
1: - PCI_SPEED_100MHz_PCIX_ECC = 6,
1: - PCI_SPEED_133MHz_PCIX_ECC = 7,
1: - PCI_SPEED_66MHz_PCIX_266 = 9,
1: - PCI_SPEED_100MHz_PCIX_266 = 10,
1: - PCI_SPEED_133MHz_PCIX_266 = 11,
1: - AGP_UNKNOWN = 12,
1: - AGP_1X = 13,
1: - AGP_2X = 14,
1: - AGP_4X = 15,
1: - AGP_8X = 16,
1: - PCI_SPEED_66MHz_PCIX_533 = 17,
1: - PCI_SPEED_100MHz_PCIX_533 = 18,
1: - PCI_SPEED_133MHz_PCIX_533 = 19,
1: - PCIE_SPEED_2_5GT = 20,
1: - PCIE_SPEED_5_0GT = 21,
1: - PCIE_SPEED_8_0GT = 22,
1: - PCIE_SPEED_16_0GT = 23,
1: - PCIE_SPEED_32_0GT = 24,
1: - PCI_SPEED_UNKNOWN = 255,
1: -};
1: -
1: -enum {
1: - PCI_REASSIGN_ALL_RSRC = 1,
1: - PCI_REASSIGN_ALL_BUS = 2,
1: - PCI_PROBE_ONLY = 4,
1: - PCI_CAN_SKIP_ISA_ALIGN = 8,
1: - PCI_ENABLE_PROC_DOMAINS = 16,
1: - PCI_COMPAT_DOMAIN_0 = 32,
1: - PCI_SCAN_ALL_PCIE_DEVS = 64,
1: + PCI_SPEED_33MHz = 0,
1: + PCI_SPEED_66MHz = 1,
1: + PCI_SPEED_66MHz_PCIX = 2,
1: + PCI_SPEED_100MHz_PCIX = 3,
1: + PCI_SPEED_133MHz_PCIX = 4,
1: + PCI_SPEED_66MHz_PCIX_ECC = 5,
1: + PCI_SPEED_100MHz_PCIX_ECC = 6,
1: + PCI_SPEED_133MHz_PCIX_ECC = 7,
1: + PCI_SPEED_66MHz_PCIX_266 = 9,
1: + PCI_SPEED_100MHz_PCIX_266 = 10,
1: + PCI_SPEED_133MHz_PCIX_266 = 11,
1: + AGP_UNKNOWN = 12,
1: + AGP_1X = 13,
1: + AGP_2X = 14,
1: + AGP_4X = 15,
1: + AGP_8X = 16,
1: + PCI_SPEED_66MHz_PCIX_533 = 17,
1: + PCI_SPEED_100MHz_PCIX_533 = 18,
1: + PCI_SPEED_133MHz_PCIX_533 = 19,
1: + PCIE_SPEED_2_5GT = 20,
1: + PCIE_SPEED_5_0GT = 21,
1: + PCIE_SPEED_8_0GT = 22,
1: + PCIE_SPEED_16_0GT = 23,
1: + PCIE_SPEED_32_0GT = 24,
1: + PCI_SPEED_UNKNOWN = 255,
1: +};
1: +
1: +enum {
1: + PCI_REASSIGN_ALL_RSRC = 1,
1: + PCI_REASSIGN_ALL_BUS = 2,
1: + PCI_PROBE_ONLY = 4,
1: + PCI_CAN_SKIP_ISA_ALIGN = 8,
1: + PCI_ENABLE_PROC_DOMAINS = 16,
1: + PCI_COMPAT_DOMAIN_0 = 32,
1: + PCI_SCAN_ALL_PCIE_DEVS = 64,
1: };
1:
1: enum pcie_bus_config_types {
1: - PCIE_BUS_TUNE_OFF = 0,
1: - PCIE_BUS_DEFAULT = 1,
1: - PCIE_BUS_SAFE = 2,
1: - PCIE_BUS_PERFORMANCE = 3,
1: - PCIE_BUS_PEER2PEER = 4,
1: + PCIE_BUS_TUNE_OFF = 0,
1: + PCIE_BUS_DEFAULT = 1,
1: + PCIE_BUS_SAFE = 2,
1: + PCIE_BUS_PERFORMANCE = 3,
1: + PCIE_BUS_PEER2PEER = 4,
1: };
1:
1: struct hotplug_slot_ops {
1: - int (*enable_slot)(struct hotplug_slot *);
1: - int (*disable_slot)(struct hotplug_slot *);
1: - int (*set_attention_status)(struct hotplug_slot *, u8);
1: - int (*hardware_test)(struct hotplug_slot *, u32);
1: - int (*get_power_status)(struct hotplug_slot *, u8 *);
1: - int (*get_attention_status)(struct hotplug_slot *, u8 *);
1: - int (*get_latch_status)(struct hotplug_slot *, u8 *);
1: - int (*get_adapter_status)(struct hotplug_slot *, u8 *);
1: - int (*reset_slot)(struct hotplug_slot *, int);
1: + int (*enable_slot)(struct hotplug_slot *);
1: + int (*disable_slot)(struct hotplug_slot *);
1: + int (*set_attention_status)(struct hotplug_slot *, u8);
1: + int (*hardware_test)(struct hotplug_slot *, u32);
1: + int (*get_power_status)(struct hotplug_slot *, u8 *);
1: + int (*get_attention_status)(struct hotplug_slot *, u8 *);
1: + int (*get_latch_status)(struct hotplug_slot *, u8 *);
1: + int (*get_adapter_status)(struct hotplug_slot *, u8 *);
1: + int (*reset_slot)(struct hotplug_slot *, int);
1: };
1:
1: enum pci_bar_type {
1: - pci_bar_unknown = 0,
1: - pci_bar_io = 1,
1: - pci_bar_mem32 = 2,
1: - pci_bar_mem64 = 3,
1: + pci_bar_unknown = 0,
1: + pci_bar_io = 1,
1: + pci_bar_mem32 = 2,
1: + pci_bar_mem64 = 3,
1: };
1:
1: struct pci_domain_busn_res {
1: - struct list_head list;
1: - struct resource res;
1: - int domain_nr;
1: + struct list_head list;
1: + struct resource res;
1: + int domain_nr;
1: };
1:
1: struct bus_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct bus_type *, char *);
1: - ssize_t (*store)(struct bus_type *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct bus_type *, char *);
1: + ssize_t (*store)(struct bus_type *, const char *, size_t);
1: };
1:
1: enum pcie_reset_state {
1: - pcie_deassert_reset = 1,
1: - pcie_warm_reset = 2,
1: - pcie_hot_reset = 3,
1: + pcie_deassert_reset = 1,
1: + pcie_warm_reset = 2,
1: + pcie_hot_reset = 3,
1: };
1:
1: enum pcie_link_width {
1: - PCIE_LNK_WIDTH_RESRV = 0,
1: - PCIE_LNK_X1 = 1,
1: - PCIE_LNK_X2 = 2,
1: - PCIE_LNK_X4 = 4,
1: - PCIE_LNK_X8 = 8,
1: - PCIE_LNK_X12 = 12,
1: - PCIE_LNK_X16 = 16,
1: - PCIE_LNK_X32 = 32,
1: - PCIE_LNK_WIDTH_UNKNOWN = 255,
1: + PCIE_LNK_WIDTH_RESRV = 0,
1: + PCIE_LNK_X1 = 1,
1: + PCIE_LNK_X2 = 2,
1: + PCIE_LNK_X4 = 4,
1: + PCIE_LNK_X8 = 8,
1: + PCIE_LNK_X12 = 12,
1: + PCIE_LNK_X16 = 16,
1: + PCIE_LNK_X32 = 32,
1: + PCIE_LNK_WIDTH_UNKNOWN = 255,
1: };
1:
1: struct pci_cap_saved_data {
1: - u16 cap_nr;
1: - bool cap_extended;
1: - unsigned int size;
1: - u32 data[0];
1: + u16 cap_nr;
1: + bool cap_extended;
1: + unsigned int size;
1: + u32 data[0];
1: };
1:
1: struct pci_cap_saved_state {
1: - struct hlist_node next;
1: - struct pci_cap_saved_data cap;
1: + struct hlist_node next;
1: + struct pci_cap_saved_data cap;
1: };
1:
1: typedef int (*arch_set_vga_state_t)(struct pci_dev *, bool, unsigned int, u32);
1:
1: struct pci_platform_pm_ops {
1: - bool (*bridge_d3)(struct pci_dev *);
1: - bool (*is_manageable)(struct pci_dev *);
1: - int (*set_state)(struct pci_dev *, pci_power_t);
1: - pci_power_t (*get_state)(struct pci_dev *);
1: - void (*refresh_state)(struct pci_dev *);
1: - pci_power_t (*choose_state)(struct pci_dev *);
1: - int (*set_wakeup)(struct pci_dev *, bool);
1: - bool (*need_resume)(struct pci_dev *);
1: + bool (*bridge_d3)(struct pci_dev *);
1: + bool (*is_manageable)(struct pci_dev *);
1: + int (*set_state)(struct pci_dev *, pci_power_t);
1: + pci_power_t (*get_state)(struct pci_dev *);
1: + void (*refresh_state)(struct pci_dev *);
1: + pci_power_t (*choose_state)(struct pci_dev *);
1: + int (*set_wakeup)(struct pci_dev *, bool);
1: + bool (*need_resume)(struct pci_dev *);
1: };
1:
1: struct pci_pme_device {
1: - struct list_head list;
1: - struct pci_dev *dev;
1: + struct list_head list;
1: + struct pci_dev *dev;
1: };
1:
1: struct pci_saved_state {
1: - u32 config_space[16];
1: - struct pci_cap_saved_data cap[0];
1: + u32 config_space[16];
1: + struct pci_cap_saved_data cap[0];
1: };
1:
1: struct pci_devres {
1: - unsigned int enabled: 1;
1: - unsigned int pinned: 1;
1: - unsigned int orig_intx: 1;
1: - unsigned int restore_intx: 1;
1: - unsigned int mwi: 1;
1: - u32 region_mask;
1: + unsigned int enabled : 1;
1: + unsigned int pinned : 1;
1: + unsigned int orig_intx : 1;
1: + unsigned int restore_intx : 1;
1: + unsigned int mwi : 1;
1: + u32 region_mask;
1: };
1:
1: struct driver_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct device_driver *, char *);
1: - ssize_t (*store)(struct device_driver *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct device_driver *, char *);
1: + ssize_t (*store)(struct device_driver *, const char *, size_t);
1: };
1:
1: enum pci_ers_result {
1: - PCI_ERS_RESULT_NONE = 1,
1: - PCI_ERS_RESULT_CAN_RECOVER = 2,
1: - PCI_ERS_RESULT_NEED_RESET = 3,
1: - PCI_ERS_RESULT_DISCONNECT = 4,
1: - PCI_ERS_RESULT_RECOVERED = 5,
1: - PCI_ERS_RESULT_NO_AER_DRIVER = 6,
1: + PCI_ERS_RESULT_NONE = 1,
1: + PCI_ERS_RESULT_CAN_RECOVER = 2,
1: + PCI_ERS_RESULT_NEED_RESET = 3,
1: + PCI_ERS_RESULT_DISCONNECT = 4,
1: + PCI_ERS_RESULT_RECOVERED = 5,
1: + PCI_ERS_RESULT_NO_AER_DRIVER = 6,
1: };
1:
1: enum dev_dma_attr {
1: - DEV_DMA_NOT_SUPPORTED = 0,
1: - DEV_DMA_NON_COHERENT = 1,
1: - DEV_DMA_COHERENT = 2,
1: + DEV_DMA_NOT_SUPPORTED = 0,
1: + DEV_DMA_NON_COHERENT = 1,
1: + DEV_DMA_COHERENT = 2,
1: };
1:
1: struct pcie_device {
1: - int irq;
1: - struct pci_dev *port;
1: - u32 service;
1: - void *priv_data;
1: - struct device device;
1: + int irq;
1: + struct pci_dev *port;
1: + u32 service;
1: + void *priv_data;
1: + struct device device;
1: };
1:
1: struct pcie_port_service_driver {
1: - const char *name;
1: - int (*probe)(struct pcie_device *);
1: - void (*remove)(struct pcie_device *);
1: - int (*suspend)(struct pcie_device *);
1: - int (*resume_noirq)(struct pcie_device *);
1: - int (*resume)(struct pcie_device *);
1: - int (*runtime_suspend)(struct pcie_device *);
1: - int (*runtime_resume)(struct pcie_device *);
1: - void (*error_resume)(struct pci_dev *);
1: - int port_type;
1: - u32 service;
1: - struct device_driver driver;
1: + const char *name;
1: + int (*probe)(struct pcie_device *);
1: + void (*remove)(struct pcie_device *);
1: + int (*suspend)(struct pcie_device *);
1: + int (*resume_noirq)(struct pcie_device *);
1: + int (*resume)(struct pcie_device *);
1: + int (*runtime_suspend)(struct pcie_device *);
1: + int (*runtime_resume)(struct pcie_device *);
1: + void (*error_resume)(struct pci_dev *);
1: + int port_type;
1: + u32 service;
1: + struct device_driver driver;
1: };
1:
1: struct pci_dynid {
1: - struct list_head node;
1: - struct pci_device_id id;
1: + struct list_head node;
1: + struct pci_device_id id;
1: };
1:
1: struct drv_dev_and_id {
1: - struct pci_driver *drv;
1: - struct pci_dev *dev;
1: - const struct pci_device_id *id;
1: + struct pci_driver *drv;
1: + struct pci_dev *dev;
1: + const struct pci_device_id *id;
1: };
1:
1: enum pci_mmap_state {
1: - pci_mmap_io = 0,
1: - pci_mmap_mem = 1,
1: + pci_mmap_io = 0,
1: + pci_mmap_mem = 1,
1: };
1:
1: enum pci_mmap_api {
1: - PCI_MMAP_SYSFS = 0,
1: - PCI_MMAP_PROCFS = 1,
1: + PCI_MMAP_SYSFS = 0,
1: + PCI_MMAP_PROCFS = 1,
1: };
1:
1: struct pci_vpd_ops;
1:
1: struct pci_vpd {
1: - const struct pci_vpd_ops *ops;
1: - struct bin_attribute *attr;
1: - struct mutex lock;
1: - unsigned int len;
1: - u16 flag;
1: - u8 cap;
1: - unsigned int busy: 1;
1: - unsigned int valid: 1;
1: + const struct pci_vpd_ops *ops;
1: + struct bin_attribute *attr;
1: + struct mutex lock;
1: + unsigned int len;
1: + u16 flag;
1: + u8 cap;
1: + unsigned int busy : 1;
1: + unsigned int valid : 1;
1: };
1:
1: struct pci_vpd_ops {
1: - ssize_t (*read)(struct pci_dev *, loff_t, size_t, void *);
1: - ssize_t (*write)(struct pci_dev *, loff_t, size_t, const void *);
1: - int (*set_size)(struct pci_dev *, size_t);
1: + ssize_t (*read)(struct pci_dev *, loff_t, size_t, void *);
1: + ssize_t (*write)(struct pci_dev *, loff_t, size_t, const void *);
1: + int (*set_size)(struct pci_dev *, size_t);
1: };
1:
1: struct pci_dev_resource {
1: - struct list_head list;
1: - struct resource *res;
1: - struct pci_dev *dev;
1: - resource_size_t start;
1: - resource_size_t end;
1: - resource_size_t add_size;
1: - resource_size_t min_align;
1: - long unsigned int flags;
1: + struct list_head list;
1: + struct resource *res;
1: + struct pci_dev *dev;
1: + resource_size_t start;
1: + resource_size_t end;
1: + resource_size_t add_size;
1: + resource_size_t min_align;
1: + long unsigned int flags;
1: };
1:
1: enum release_type {
1: - leaf_only = 0,
1: - whole_subtree = 1,
1: + leaf_only = 0,
1: + whole_subtree = 1,
1: };
1:
1: enum enable_type {
1: - undefined = 4294967295,
1: - user_disabled = 0,
1: - auto_disabled = 1,
1: - user_enabled = 2,
1: - auto_enabled = 3,
1: + undefined = 4294967295,
1: + user_disabled = 0,
1: + auto_disabled = 1,
1: + user_enabled = 2,
1: + auto_enabled = 3,
1: };
1:
1: struct portdrv_service_data {
1: - struct pcie_port_service_driver *drv;
1: - struct device *dev;
1: - u32 service;
1: + struct pcie_port_service_driver *drv;
1: + struct device *dev;
1: + u32 service;
1: };
1:
1: typedef int (*pcie_pm_callback_t)(struct pcie_device *);
1:
1: struct aspm_latency {
1: - u32 l0s;
1: - u32 l1;
1: + u32 l0s;
1: + u32 l1;
1: };
1:
1: struct pcie_link_state {
1: - struct pci_dev *pdev;
1: - struct pci_dev *downstream;
1: - struct pcie_link_state *root;
1: - struct pcie_link_state *parent;
1: - struct list_head sibling;
1: - u32 aspm_support: 7;
1: - u32 aspm_enabled: 7;
1: - u32 aspm_capable: 7;
1: - u32 aspm_default: 7;
1: - char: 4;
1: - u32 aspm_disable: 7;
1: - u32 clkpm_capable: 1;
1: - u32 clkpm_enabled: 1;
1: - u32 clkpm_default: 1;
1: - u32 clkpm_disable: 1;
1: - struct aspm_latency latency_up;
1: - struct aspm_latency latency_dw;
1: - struct aspm_latency acceptable[8];
1: -};
1: -
1: -enum {
1: - CPER_SEV_RECOVERABLE = 0,
1: - CPER_SEV_FATAL = 1,
1: - CPER_SEV_CORRECTED = 2,
1: - CPER_SEV_INFORMATIONAL = 3,
1: + struct pci_dev *pdev;
1: + struct pci_dev *downstream;
1: + struct pcie_link_state *root;
1: + struct pcie_link_state *parent;
1: + struct list_head sibling;
1: + u32 aspm_support : 7;
1: + u32 aspm_enabled : 7;
1: + u32 aspm_capable : 7;
1: + u32 aspm_default : 7;
1: + char : 4;
1: + u32 aspm_disable : 7;
1: + u32 clkpm_capable : 1;
1: + u32 clkpm_enabled : 1;
1: + u32 clkpm_default : 1;
1: + u32 clkpm_disable : 1;
1: + struct aspm_latency latency_up;
1: + struct aspm_latency latency_dw;
1: + struct aspm_latency acceptable[8];
1: +};
1: +
1: +enum {
1: + CPER_SEV_RECOVERABLE = 0,
1: + CPER_SEV_FATAL = 1,
1: + CPER_SEV_CORRECTED = 2,
1: + CPER_SEV_INFORMATIONAL = 3,
1: };
1:
1: struct aer_stats {
1: - u64 dev_cor_errs[16];
1: - u64 dev_fatal_errs[27];
1: - u64 dev_nonfatal_errs[27];
1: - u64 dev_total_cor_errs;
1: - u64 dev_total_fatal_errs;
1: - u64 dev_total_nonfatal_errs;
1: - u64 rootport_total_cor_errs;
1: - u64 rootport_total_fatal_errs;
1: - u64 rootport_total_nonfatal_errs;
1: + u64 dev_cor_errs[16];
1: + u64 dev_fatal_errs[27];
1: + u64 dev_nonfatal_errs[27];
1: + u64 dev_total_cor_errs;
1: + u64 dev_total_fatal_errs;
1: + u64 dev_total_nonfatal_errs;
1: + u64 rootport_total_cor_errs;
1: + u64 rootport_total_fatal_errs;
1: + u64 rootport_total_nonfatal_errs;
1: };
1:
1: struct aer_header_log_regs {
1: - unsigned int dw0;
1: - unsigned int dw1;
1: - unsigned int dw2;
1: - unsigned int dw3;
1: + unsigned int dw0;
1: + unsigned int dw1;
1: + unsigned int dw2;
1: + unsigned int dw3;
1: };
1:
1: struct aer_capability_regs {
1: - u32 header;
1: - u32 uncor_status;
1: - u32 uncor_mask;
1: - u32 uncor_severity;
1: - u32 cor_status;
1: - u32 cor_mask;
1: - u32 cap_control;
1: - struct aer_header_log_regs header_log;
1: - u32 root_command;
1: - u32 root_status;
1: - u16 cor_err_source;
1: - u16 uncor_err_source;
1: + u32 header;
1: + u32 uncor_status;
1: + u32 uncor_mask;
1: + u32 uncor_severity;
1: + u32 cor_status;
1: + u32 cor_mask;
1: + u32 cap_control;
1: + struct aer_header_log_regs header_log;
1: + u32 root_command;
1: + u32 root_status;
1: + u16 cor_err_source;
1: + u16 uncor_err_source;
1: };
1:
1: struct aer_err_info {
1: - struct pci_dev *dev[5];
1: - int error_dev_num;
1: - unsigned int id: 16;
1: - unsigned int severity: 2;
1: - unsigned int __pad1: 5;
1: - unsigned int multi_error_valid: 1;
1: - unsigned int first_error: 5;
1: - unsigned int __pad2: 2;
1: - unsigned int tlp_header_valid: 1;
1: - unsigned int status;
1: - unsigned int mask;
1: - struct aer_header_log_regs tlp;
1: + struct pci_dev *dev[5];
1: + int error_dev_num;
1: + unsigned int id : 16;
1: + unsigned int severity : 2;
1: + unsigned int __pad1 : 5;
1: + unsigned int multi_error_valid : 1;
1: + unsigned int first_error : 5;
1: + unsigned int __pad2 : 2;
1: + unsigned int tlp_header_valid : 1;
1: + unsigned int status;
1: + unsigned int mask;
1: + struct aer_header_log_regs tlp;
1: };
1:
1: struct aer_err_source {
1: - unsigned int status;
1: - unsigned int id;
1: + unsigned int status;
1: + unsigned int id;
1: };
1:
1: struct aer_rpc {
1: - struct pci_dev *rpd;
1: - struct {
1: - union {
1: - struct __kfifo kfifo;
1: - struct aer_err_source *type;
1: - const struct aer_err_source *const_type;
1: - char (*rectype)[0];
1: - struct aer_err_source *ptr;
1: - const struct aer_err_source *ptr_const;
1: - };
1: - struct aer_err_source buf[128];
1: - } aer_fifo;
1: + struct pci_dev *rpd;
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct aer_err_source *type;
1: + const struct aer_err_source *const_type;
1: + char (*rectype)[0];
1: + struct aer_err_source *ptr;
1: + const struct aer_err_source *ptr_const;
1: + };
1: + struct aer_err_source buf[128];
1: + } aer_fifo;
1: };
1:
1: struct aer_recover_entry {
1: - u8 bus;
1: - u8 devfn;
1: - u16 domain;
1: - int severity;
1: - struct aer_capability_regs *regs;
1: + u8 bus;
1: + u8 devfn;
1: + u16 domain;
1: + int severity;
1: + struct aer_capability_regs *regs;
1: };
1:
1: struct pcie_pme_service_data {
1: - spinlock_t lock;
1: - struct pcie_device *srv;
1: - struct work_struct work;
1: - bool noirq;
1: + spinlock_t lock;
1: + struct pcie_device *srv;
1: + struct work_struct work;
1: + bool noirq;
1: };
1:
1: struct pci_slot_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct pci_slot *, char *);
1: - ssize_t (*store)(struct pci_slot *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct pci_slot *, char *);
1: + ssize_t (*store)(struct pci_slot *, const char *, size_t);
1: };
1:
1: struct acpi_buffer {
1: - acpi_size length;
1: - void *pointer;
1: + acpi_size length;
1: + void *pointer;
1: };
1:
1: struct acpi_bus_type {
1: - struct list_head list;
1: - const char *name;
1: - bool (*match)(struct device *);
1: - struct acpi_device * (*find_companion)(struct device *);
1: - void (*setup)(struct device *);
1: - void (*cleanup)(struct device *);
1: + struct list_head list;
1: + const char *name;
1: + bool (*match)(struct device *);
1: + struct acpi_device *(*find_companion)(struct device *);
1: + void (*setup)(struct device *);
1: + void (*cleanup)(struct device *);
1: };
1:
1: enum pm_qos_flags_status {
1: - PM_QOS_FLAGS_UNDEFINED = 4294967295,
1: - PM_QOS_FLAGS_NONE = 0,
1: - PM_QOS_FLAGS_SOME = 1,
1: - PM_QOS_FLAGS_ALL = 2,
1: + PM_QOS_FLAGS_UNDEFINED = 4294967295,
1: + PM_QOS_FLAGS_NONE = 0,
1: + PM_QOS_FLAGS_SOME = 1,
1: + PM_QOS_FLAGS_ALL = 2,
1: };
1:
1: struct hpx_type0 {
1: - u32 revision;
1: - u8 cache_line_size;
1: - u8 latency_timer;
1: - u8 enable_serr;
1: - u8 enable_perr;
1: + u32 revision;
1: + u8 cache_line_size;
1: + u8 latency_timer;
1: + u8 enable_serr;
1: + u8 enable_perr;
1: };
1:
1: struct hpx_type1 {
1: - u32 revision;
1: - u8 max_mem_read;
1: - u8 avg_max_split;
1: - u16 tot_max_split;
1: + u32 revision;
1: + u8 max_mem_read;
1: + u8 avg_max_split;
1: + u16 tot_max_split;
1: };
1:
1: struct hpx_type2 {
1: - u32 revision;
1: - u32 unc_err_mask_and;
1: - u32 unc_err_mask_or;
1: - u32 unc_err_sever_and;
1: - u32 unc_err_sever_or;
1: - u32 cor_err_mask_and;
1: - u32 cor_err_mask_or;
1: - u32 adv_err_cap_and;
1: - u32 adv_err_cap_or;
1: - u16 pci_exp_devctl_and;
1: - u16 pci_exp_devctl_or;
1: - u16 pci_exp_lnkctl_and;
1: - u16 pci_exp_lnkctl_or;
1: - u32 sec_unc_err_sever_and;
1: - u32 sec_unc_err_sever_or;
1: - u32 sec_unc_err_mask_and;
1: - u32 sec_unc_err_mask_or;
1: + u32 revision;
1: + u32 unc_err_mask_and;
1: + u32 unc_err_mask_or;
1: + u32 unc_err_sever_and;
1: + u32 unc_err_sever_or;
1: + u32 cor_err_mask_and;
1: + u32 cor_err_mask_or;
1: + u32 adv_err_cap_and;
1: + u32 adv_err_cap_or;
1: + u16 pci_exp_devctl_and;
1: + u16 pci_exp_devctl_or;
1: + u16 pci_exp_lnkctl_and;
1: + u16 pci_exp_lnkctl_or;
1: + u32 sec_unc_err_sever_and;
1: + u32 sec_unc_err_sever_or;
1: + u32 sec_unc_err_mask_and;
1: + u32 sec_unc_err_mask_or;
1: };
1:
1: struct hpx_type3 {
1: - u16 device_type;
1: - u16 function_type;
1: - u16 config_space_location;
1: - u16 pci_exp_cap_id;
1: - u16 pci_exp_cap_ver;
1: - u16 pci_exp_vendor_id;
1: - u16 dvsec_id;
1: - u16 dvsec_rev;
1: - u16 match_offset;
1: - u32 match_mask_and;
1: - u32 match_value;
1: - u16 reg_offset;
1: - u32 reg_mask_and;
1: - u32 reg_mask_or;
1: + u16 device_type;
1: + u16 function_type;
1: + u16 config_space_location;
1: + u16 pci_exp_cap_id;
1: + u16 pci_exp_cap_ver;
1: + u16 pci_exp_vendor_id;
1: + u16 dvsec_id;
1: + u16 dvsec_rev;
1: + u16 match_offset;
1: + u32 match_mask_and;
1: + u32 match_value;
1: + u16 reg_offset;
1: + u32 reg_mask_and;
1: + u32 reg_mask_or;
1: };
1:
1: enum hpx_type3_dev_type {
1: - HPX_TYPE_ENDPOINT = 1,
1: - HPX_TYPE_LEG_END = 2,
1: - HPX_TYPE_RC_END = 4,
1: - HPX_TYPE_RC_EC = 8,
1: - HPX_TYPE_ROOT_PORT = 16,
1: - HPX_TYPE_UPSTREAM = 32,
1: - HPX_TYPE_DOWNSTREAM = 64,
1: - HPX_TYPE_PCI_BRIDGE = 128,
1: - HPX_TYPE_PCIE_BRIDGE = 256,
1: + HPX_TYPE_ENDPOINT = 1,
1: + HPX_TYPE_LEG_END = 2,
1: + HPX_TYPE_RC_END = 4,
1: + HPX_TYPE_RC_EC = 8,
1: + HPX_TYPE_ROOT_PORT = 16,
1: + HPX_TYPE_UPSTREAM = 32,
1: + HPX_TYPE_DOWNSTREAM = 64,
1: + HPX_TYPE_PCI_BRIDGE = 128,
1: + HPX_TYPE_PCIE_BRIDGE = 256,
1: };
1:
1: enum hpx_type3_fn_type {
1: - HPX_FN_NORMAL = 1,
1: - HPX_FN_SRIOV_PHYS = 2,
1: - HPX_FN_SRIOV_VIRT = 4,
1: + HPX_FN_NORMAL = 1,
1: + HPX_FN_SRIOV_PHYS = 2,
1: + HPX_FN_SRIOV_VIRT = 4,
1: };
1:
1: enum hpx_type3_cfg_loc {
1: - HPX_CFG_PCICFG = 0,
1: - HPX_CFG_PCIE_CAP = 1,
1: - HPX_CFG_PCIE_CAP_EXT = 2,
1: - HPX_CFG_VEND_CAP = 3,
1: - HPX_CFG_DVSEC = 4,
1: - HPX_CFG_MAX = 5,
1: + HPX_CFG_PCICFG = 0,
1: + HPX_CFG_PCIE_CAP = 1,
1: + HPX_CFG_PCIE_CAP_EXT = 2,
1: + HPX_CFG_VEND_CAP = 3,
1: + HPX_CFG_DVSEC = 4,
1: + HPX_CFG_MAX = 5,
1: };
1:
1: struct of_bus;
1:
1: struct of_pci_range_parser {
1: - struct device_node *node;
1: - struct of_bus *bus;
1: - const __be32 *range;
1: - const __be32 *end;
1: - int na;
1: - int ns;
1: - int pna;
1: - bool dma;
1: + struct device_node *node;
1: + struct of_bus *bus;
1: + const __be32 *range;
1: + const __be32 *end;
1: + int na;
1: + int ns;
1: + int pna;
1: + bool dma;
1: };
1:
1: struct of_pci_range {
1: - union {
1: - u64 pci_addr;
1: - u64 bus_addr;
1: - };
1: - u64 cpu_addr;
1: - u64 size;
1: - u32 flags;
1: + union {
1: + u64 pci_addr;
1: + u64 bus_addr;
1: + };
1: + u64 cpu_addr;
1: + u64 size;
1: + u32 flags;
1: };
1:
1: struct pci_fixup {
1: - u16 vendor;
1: - u16 device;
1: - u32 class;
1: - unsigned int class_shift;
1: - int hook_offset;
1: -};
1: -
1: -enum {
1: - NVME_REG_CAP = 0,
1: - NVME_REG_VS = 8,
1: - NVME_REG_INTMS = 12,
1: - NVME_REG_INTMC = 16,
1: - NVME_REG_CC = 20,
1: - NVME_REG_CSTS = 28,
1: - NVME_REG_NSSR = 32,
1: - NVME_REG_AQA = 36,
1: - NVME_REG_ASQ = 40,
1: - NVME_REG_ACQ = 48,
1: - NVME_REG_CMBLOC = 56,
1: - NVME_REG_CMBSZ = 60,
1: - NVME_REG_BPINFO = 64,
1: - NVME_REG_BPRSEL = 68,
1: - NVME_REG_BPMBL = 72,
1: - NVME_REG_PMRCAP = 3584,
1: - NVME_REG_PMRCTL = 3588,
1: - NVME_REG_PMRSTS = 3592,
1: - NVME_REG_PMREBS = 3596,
1: - NVME_REG_PMRSWTP = 3600,
1: - NVME_REG_DBS = 4096,
1: -};
1: -
1: -enum {
1: - NVME_CC_ENABLE = 1,
1: - NVME_CC_EN_SHIFT = 0,
1: - NVME_CC_CSS_SHIFT = 4,
1: - NVME_CC_MPS_SHIFT = 7,
1: - NVME_CC_AMS_SHIFT = 11,
1: - NVME_CC_SHN_SHIFT = 14,
1: - NVME_CC_IOSQES_SHIFT = 16,
1: - NVME_CC_IOCQES_SHIFT = 20,
1: - NVME_CC_CSS_NVM = 0,
1: - NVME_CC_CSS_CSI = 96,
1: - NVME_CC_CSS_MASK = 112,
1: - NVME_CC_AMS_RR = 0,
1: - NVME_CC_AMS_WRRU = 2048,
1: - NVME_CC_AMS_VS = 14336,
1: - NVME_CC_SHN_NONE = 0,
1: - NVME_CC_SHN_NORMAL = 16384,
1: - NVME_CC_SHN_ABRUPT = 32768,
1: - NVME_CC_SHN_MASK = 49152,
1: - NVME_CC_IOSQES = 393216,
1: - NVME_CC_IOCQES = 4194304,
1: - NVME_CAP_CSS_NVM = 1,
1: - NVME_CAP_CSS_CSI = 64,
1: - NVME_CSTS_RDY = 1,
1: - NVME_CSTS_CFS = 2,
1: - NVME_CSTS_NSSRO = 16,
1: - NVME_CSTS_PP = 32,
1: - NVME_CSTS_SHST_NORMAL = 0,
1: - NVME_CSTS_SHST_OCCUR = 4,
1: - NVME_CSTS_SHST_CMPLT = 8,
1: - NVME_CSTS_SHST_MASK = 12,
1: -};
1: -
1: -enum {
1: - NVME_AEN_BIT_NS_ATTR = 8,
1: - NVME_AEN_BIT_FW_ACT = 9,
1: - NVME_AEN_BIT_ANA_CHANGE = 11,
1: - NVME_AEN_BIT_DISC_CHANGE = 31,
1: -};
1: -
1: -enum {
1: - SWITCHTEC_GAS_MRPC_OFFSET = 0,
1: - SWITCHTEC_GAS_TOP_CFG_OFFSET = 4096,
1: - SWITCHTEC_GAS_SW_EVENT_OFFSET = 6144,
1: - SWITCHTEC_GAS_SYS_INFO_OFFSET = 8192,
1: - SWITCHTEC_GAS_FLASH_INFO_OFFSET = 8704,
1: - SWITCHTEC_GAS_PART_CFG_OFFSET = 16384,
1: - SWITCHTEC_GAS_NTB_OFFSET = 65536,
1: - SWITCHTEC_GAS_PFF_CSR_OFFSET = 1261568,
1: -};
1: -
1: -enum {
1: - SWITCHTEC_NTB_REG_INFO_OFFSET = 0,
1: - SWITCHTEC_NTB_REG_CTRL_OFFSET = 16384,
1: - SWITCHTEC_NTB_REG_DBMSG_OFFSET = 409600,
1: + u16 vendor;
1: + u16 device;
1: + u32 class;
1: + unsigned int class_shift;
1: + int hook_offset;
1: +};
1: +
1: +enum {
1: + NVME_REG_CAP = 0,
1: + NVME_REG_VS = 8,
1: + NVME_REG_INTMS = 12,
1: + NVME_REG_INTMC = 16,
1: + NVME_REG_CC = 20,
1: + NVME_REG_CSTS = 28,
1: + NVME_REG_NSSR = 32,
1: + NVME_REG_AQA = 36,
1: + NVME_REG_ASQ = 40,
1: + NVME_REG_ACQ = 48,
1: + NVME_REG_CMBLOC = 56,
1: + NVME_REG_CMBSZ = 60,
1: + NVME_REG_BPINFO = 64,
1: + NVME_REG_BPRSEL = 68,
1: + NVME_REG_BPMBL = 72,
1: + NVME_REG_PMRCAP = 3584,
1: + NVME_REG_PMRCTL = 3588,
1: + NVME_REG_PMRSTS = 3592,
1: + NVME_REG_PMREBS = 3596,
1: + NVME_REG_PMRSWTP = 3600,
1: + NVME_REG_DBS = 4096,
1: +};
1: +
1: +enum {
1: + NVME_CC_ENABLE = 1,
1: + NVME_CC_EN_SHIFT = 0,
1: + NVME_CC_CSS_SHIFT = 4,
1: + NVME_CC_MPS_SHIFT = 7,
1: + NVME_CC_AMS_SHIFT = 11,
1: + NVME_CC_SHN_SHIFT = 14,
1: + NVME_CC_IOSQES_SHIFT = 16,
1: + NVME_CC_IOCQES_SHIFT = 20,
1: + NVME_CC_CSS_NVM = 0,
1: + NVME_CC_CSS_CSI = 96,
1: + NVME_CC_CSS_MASK = 112,
1: + NVME_CC_AMS_RR = 0,
1: + NVME_CC_AMS_WRRU = 2048,
1: + NVME_CC_AMS_VS = 14336,
1: + NVME_CC_SHN_NONE = 0,
1: + NVME_CC_SHN_NORMAL = 16384,
1: + NVME_CC_SHN_ABRUPT = 32768,
1: + NVME_CC_SHN_MASK = 49152,
1: + NVME_CC_IOSQES = 393216,
1: + NVME_CC_IOCQES = 4194304,
1: + NVME_CAP_CSS_NVM = 1,
1: + NVME_CAP_CSS_CSI = 64,
1: + NVME_CSTS_RDY = 1,
1: + NVME_CSTS_CFS = 2,
1: + NVME_CSTS_NSSRO = 16,
1: + NVME_CSTS_PP = 32,
1: + NVME_CSTS_SHST_NORMAL = 0,
1: + NVME_CSTS_SHST_OCCUR = 4,
1: + NVME_CSTS_SHST_CMPLT = 8,
1: + NVME_CSTS_SHST_MASK = 12,
1: +};
1: +
1: +enum {
1: + NVME_AEN_BIT_NS_ATTR = 8,
1: + NVME_AEN_BIT_FW_ACT = 9,
1: + NVME_AEN_BIT_ANA_CHANGE = 11,
1: + NVME_AEN_BIT_DISC_CHANGE = 31,
1: +};
1: +
1: +enum {
1: + SWITCHTEC_GAS_MRPC_OFFSET = 0,
1: + SWITCHTEC_GAS_TOP_CFG_OFFSET = 4096,
1: + SWITCHTEC_GAS_SW_EVENT_OFFSET = 6144,
1: + SWITCHTEC_GAS_SYS_INFO_OFFSET = 8192,
1: + SWITCHTEC_GAS_FLASH_INFO_OFFSET = 8704,
1: + SWITCHTEC_GAS_PART_CFG_OFFSET = 16384,
1: + SWITCHTEC_GAS_NTB_OFFSET = 65536,
1: + SWITCHTEC_GAS_PFF_CSR_OFFSET = 1261568,
1: +};
1: +
1: +enum {
1: + SWITCHTEC_NTB_REG_INFO_OFFSET = 0,
1: + SWITCHTEC_NTB_REG_CTRL_OFFSET = 16384,
1: + SWITCHTEC_NTB_REG_DBMSG_OFFSET = 409600,
1: };
1:
1: struct nt_partition_info {
1: - u32 xlink_enabled;
1: - u32 target_part_low;
1: - u32 target_part_high;
1: - u32 reserved;
1: + u32 xlink_enabled;
1: + u32 target_part_low;
1: + u32 target_part_high;
1: + u32 reserved;
1: };
1:
1: struct ntb_info_regs {
1: - u8 partition_count;
1: - u8 partition_id;
1: - u16 reserved1;
1: - u64 ep_map;
1: - u16 requester_id;
1: - u16 reserved2;
1: - u32 reserved3[4];
1: - struct nt_partition_info ntp_info[48];
1: + u8 partition_count;
1: + u8 partition_id;
1: + u16 reserved1;
1: + u64 ep_map;
1: + u16 requester_id;
1: + u16 reserved2;
1: + u32 reserved3[4];
1: + struct nt_partition_info ntp_info[48];
1: } __attribute__((packed));
1:
1: struct ntb_ctrl_regs {
1: - u32 partition_status;
1: - u32 partition_op;
1: - u32 partition_ctrl;
1: - u32 bar_setup;
1: - u32 bar_error;
1: - u16 lut_table_entries;
1: - u16 lut_table_offset;
1: - u32 lut_error;
1: - u16 req_id_table_size;
1: - u16 req_id_table_offset;
1: - u32 req_id_error;
1: - u32 reserved1[7];
1: - struct {
1: - u32 ctl;
1: - u32 win_size;
1: - u64 xlate_addr;
1: - } bar_entry[6];
1: - struct {
1: - u32 win_size;
1: - u32 reserved[3];
1: - } bar_ext_entry[6];
1: - u32 reserved2[192];
1: - u32 req_id_table[512];
1: - u32 reserved3[256];
1: - u64 lut_entry[512];
1: + u32 partition_status;
1: + u32 partition_op;
1: + u32 partition_ctrl;
1: + u32 bar_setup;
1: + u32 bar_error;
1: + u16 lut_table_entries;
1: + u16 lut_table_offset;
1: + u32 lut_error;
1: + u16 req_id_table_size;
1: + u16 req_id_table_offset;
1: + u32 req_id_error;
1: + u32 reserved1[7];
1: + struct {
1: + u32 ctl;
1: + u32 win_size;
1: + u64 xlate_addr;
1: + } bar_entry[6];
1: + struct {
1: + u32 win_size;
1: + u32 reserved[3];
1: + } bar_ext_entry[6];
1: + u32 reserved2[192];
1: + u32 req_id_table[512];
1: + u32 reserved3[256];
1: + u64 lut_entry[512];
1: };
1:
1: struct pci_dev_reset_methods {
1: - u16 vendor;
1: - u16 device;
1: - int (*reset)(struct pci_dev *, int);
1: + u16 vendor;
1: + u16 device;
1: + int (*reset)(struct pci_dev *, int);
1: };
1:
1: struct acs_on_id {
1: - short unsigned int vendor;
1: - short unsigned int device;
1: + short unsigned int vendor;
1: + short unsigned int device;
1: };
1:
1: struct pci_dev_acs_enabled {
1: - u16 vendor;
1: - u16 device;
1: - int (*acs_enabled)(struct pci_dev *, u16);
1: + u16 vendor;
1: + u16 device;
1: + int (*acs_enabled)(struct pci_dev *, u16);
1: };
1:
1: struct pci_dev_acs_ops {
1: - u16 vendor;
1: - u16 device;
1: - int (*enable_acs)(struct pci_dev *);
1: - int (*disable_acs_redir)(struct pci_dev *);
1: + u16 vendor;
1: + u16 device;
1: + int (*enable_acs)(struct pci_dev *);
1: + int (*disable_acs_redir)(struct pci_dev *);
1: };
1:
1: struct slot {
1: - u8 number;
1: - unsigned int devfn;
1: - struct pci_bus *bus;
1: - struct pci_dev *dev;
1: - unsigned int latch_status: 1;
1: - unsigned int adapter_status: 1;
1: - unsigned int extracting;
1: - struct hotplug_slot hotplug_slot;
1: - struct list_head slot_list;
1: + u8 number;
1: + unsigned int devfn;
1: + struct pci_bus *bus;
1: + struct pci_dev *dev;
1: + unsigned int latch_status : 1;
1: + unsigned int adapter_status : 1;
1: + unsigned int extracting;
1: + struct hotplug_slot hotplug_slot;
1: + struct list_head slot_list;
1: };
1:
1: struct cpci_hp_controller_ops {
1: - int (*query_enum)();
1: - int (*enable_irq)();
1: - int (*disable_irq)();
1: - int (*check_irq)(void *);
1: - int (*hardware_test)(struct slot *, u32);
1: - u8 (*get_power)(struct slot *);
1: - int (*set_power)(struct slot *, int);
1: + int (*query_enum)();
1: + int (*enable_irq)();
1: + int (*disable_irq)();
1: + int (*check_irq)(void *);
1: + int (*hardware_test)(struct slot *, u32);
1: + u8 (*get_power)(struct slot *);
1: + int (*set_power)(struct slot *, int);
1: };
1:
1: struct cpci_hp_controller {
1: - unsigned int irq;
1: - long unsigned int irq_flags;
1: - char *devname;
1: - void *dev_id;
1: - char *name;
1: - struct cpci_hp_controller_ops *ops;
1: + unsigned int irq;
1: + long unsigned int irq_flags;
1: + char *devname;
1: + void *dev_id;
1: + char *name;
1: + struct cpci_hp_controller_ops *ops;
1: };
1:
1: struct controller {
1: - struct pcie_device *pcie;
1: - u32 slot_cap;
1: - unsigned int inband_presence_disabled: 1;
1: - u16 slot_ctrl;
1: - struct mutex ctrl_lock;
1: - long unsigned int cmd_started;
1: - unsigned int cmd_busy: 1;
1: - wait_queue_head_t queue;
1: - atomic_t pending_events;
1: - unsigned int notification_enabled: 1;
1: - unsigned int power_fault_detected;
1: - struct task_struct *poll_thread;
1: - u8 state;
1: - struct mutex state_lock;
1: - struct delayed_work button_work;
1: - struct hotplug_slot hotplug_slot;
1: - struct rw_semaphore reset_lock;
1: - unsigned int ist_running;
1: - int request_result;
1: - wait_queue_head_t requester;
1: + struct pcie_device *pcie;
1: + u32 slot_cap;
1: + unsigned int inband_presence_disabled : 1;
1: + u16 slot_ctrl;
1: + struct mutex ctrl_lock;
1: + long unsigned int cmd_started;
1: + unsigned int cmd_busy : 1;
1: + wait_queue_head_t queue;
1: + atomic_t pending_events;
1: + unsigned int notification_enabled : 1;
1: + unsigned int power_fault_detected;
1: + struct task_struct *poll_thread;
1: + u8 state;
1: + struct mutex state_lock;
1: + struct delayed_work button_work;
1: + struct hotplug_slot hotplug_slot;
1: + struct rw_semaphore reset_lock;
1: + unsigned int ist_running;
1: + int request_result;
1: + wait_queue_head_t requester;
1: };
1:
1: struct acpiphp_slot;
1:
1: struct slot___2 {
1: - struct hotplug_slot hotplug_slot;
1: - struct acpiphp_slot *acpi_slot;
1: - unsigned int sun;
1: + struct hotplug_slot hotplug_slot;
1: + struct acpiphp_slot *acpi_slot;
1: + unsigned int sun;
1: };
1:
1: struct acpiphp_slot {
1: - struct list_head node;
1: - struct pci_bus *bus;
1: - struct list_head funcs;
1: - struct slot___2 *slot;
1: - u8 device;
1: - u32 flags;
1: + struct list_head node;
1: + struct pci_bus *bus;
1: + struct list_head funcs;
1: + struct slot___2 *slot;
1: + u8 device;
1: + u32 flags;
1: };
1:
1: struct acpiphp_attention_info {
1: - int (*set_attn)(struct hotplug_slot *, u8);
1: - int (*get_attn)(struct hotplug_slot *, u8 *);
1: - struct module *owner;
1: + int (*set_attn)(struct hotplug_slot *, u8);
1: + int (*get_attn)(struct hotplug_slot *, u8 *);
1: + struct module *owner;
1: };
1:
1: struct acpiphp_context;
1:
1: struct acpiphp_bridge {
1: - struct list_head list;
1: - struct list_head slots;
1: - struct kref ref;
1: - struct acpiphp_context *context;
1: - int nr_slots;
1: - struct pci_bus *pci_bus;
1: - struct pci_dev *pci_dev;
1: - bool is_going_away;
1: + struct list_head list;
1: + struct list_head slots;
1: + struct kref ref;
1: + struct acpiphp_context *context;
1: + int nr_slots;
1: + struct pci_bus *pci_bus;
1: + struct pci_dev *pci_dev;
1: + bool is_going_away;
1: };
1:
1: struct acpiphp_func {
1: - struct acpiphp_bridge *parent;
1: - struct acpiphp_slot *slot;
1: - struct list_head sibling;
1: - u8 function;
1: - u32 flags;
1: + struct acpiphp_bridge *parent;
1: + struct acpiphp_slot *slot;
1: + struct list_head sibling;
1: + u8 function;
1: + u32 flags;
1: };
1:
1: struct acpiphp_context {
1: - struct acpi_hotplug_context hp;
1: - struct acpiphp_func func;
1: - struct acpiphp_bridge *bridge;
1: - unsigned int refcount;
1: + struct acpi_hotplug_context hp;
1: + struct acpiphp_func func;
1: + struct acpiphp_bridge *bridge;
1: + unsigned int refcount;
1: };
1:
1: struct acpiphp_root_context {
1: - struct acpi_hotplug_context hp;
1: - struct acpiphp_bridge *root_bridge;
1: + struct acpi_hotplug_context hp;
1: + struct acpiphp_bridge *root_bridge;
1: };
1:
1: struct pci_bridge_emul_conf {
1: - __le16 vendor;
1: - __le16 device;
1: - __le16 command;
1: - __le16 status;
1: - __le32 class_revision;
1: - u8 cache_line_size;
1: - u8 latency_timer;
1: - u8 header_type;
1: - u8 bist;
1: - __le32 bar[2];
1: - u8 primary_bus;
1: - u8 secondary_bus;
1: - u8 subordinate_bus;
1: - u8 secondary_latency_timer;
1: - u8 iobase;
1: - u8 iolimit;
1: - __le16 secondary_status;
1: - __le16 membase;
1: - __le16 memlimit;
1: - __le16 pref_mem_base;
1: - __le16 pref_mem_limit;
1: - __le32 prefbaseupper;
1: - __le32 preflimitupper;
1: - __le16 iobaseupper;
1: - __le16 iolimitupper;
1: - u8 capabilities_pointer;
1: - u8 reserve[3];
1: - __le32 romaddr;
1: - u8 intline;
1: - u8 intpin;
1: - __le16 bridgectrl;
1: + __le16 vendor;
1: + __le16 device;
1: + __le16 command;
1: + __le16 status;
1: + __le32 class_revision;
1: + u8 cache_line_size;
1: + u8 latency_timer;
1: + u8 header_type;
1: + u8 bist;
1: + __le32 bar[2];
1: + u8 primary_bus;
1: + u8 secondary_bus;
1: + u8 subordinate_bus;
1: + u8 secondary_latency_timer;
1: + u8 iobase;
1: + u8 iolimit;
1: + __le16 secondary_status;
1: + __le16 membase;
1: + __le16 memlimit;
1: + __le16 pref_mem_base;
1: + __le16 pref_mem_limit;
1: + __le32 prefbaseupper;
1: + __le32 preflimitupper;
1: + __le16 iobaseupper;
1: + __le16 iolimitupper;
1: + u8 capabilities_pointer;
1: + u8 reserve[3];
1: + __le32 romaddr;
1: + u8 intline;
1: + u8 intpin;
1: + __le16 bridgectrl;
1: };
1:
1: struct pci_bridge_emul_pcie_conf {
1: - u8 cap_id;
1: - u8 next;
1: - __le16 cap;
1: - __le32 devcap;
1: - __le16 devctl;
1: - __le16 devsta;
1: - __le32 lnkcap;
1: - __le16 lnkctl;
1: - __le16 lnksta;
1: - __le32 slotcap;
1: - __le16 slotctl;
1: - __le16 slotsta;
1: - __le16 rootctl;
1: - __le16 rsvd;
1: - __le32 rootsta;
1: - __le32 devcap2;
1: - __le16 devctl2;
1: - __le16 devsta2;
1: - __le32 lnkcap2;
1: - __le16 lnkctl2;
1: - __le16 lnksta2;
1: - __le32 slotcap2;
1: - __le16 slotctl2;
1: - __le16 slotsta2;
1: + u8 cap_id;
1: + u8 next;
1: + __le16 cap;
1: + __le32 devcap;
1: + __le16 devctl;
1: + __le16 devsta;
1: + __le32 lnkcap;
1: + __le16 lnkctl;
1: + __le16 lnksta;
1: + __le32 slotcap;
1: + __le16 slotctl;
1: + __le16 slotsta;
1: + __le16 rootctl;
1: + __le16 rsvd;
1: + __le32 rootsta;
1: + __le32 devcap2;
1: + __le16 devctl2;
1: + __le16 devsta2;
1: + __le32 lnkcap2;
1: + __le16 lnkctl2;
1: + __le16 lnksta2;
1: + __le32 slotcap2;
1: + __le16 slotctl2;
1: + __le16 slotsta2;
1: };
1:
1: typedef enum {
1: - PCI_BRIDGE_EMUL_HANDLED = 0,
1: - PCI_BRIDGE_EMUL_NOT_HANDLED = 1,
1: + PCI_BRIDGE_EMUL_HANDLED = 0,
1: + PCI_BRIDGE_EMUL_NOT_HANDLED = 1,
1: } pci_bridge_emul_read_status_t;
1:
1: struct pci_bridge_emul;
1:
1: struct pci_bridge_emul_ops {
1: - pci_bridge_emul_read_status_t (*read_base)(struct pci_bridge_emul *, int, u32 *);
1: - pci_bridge_emul_read_status_t (*read_pcie)(struct pci_bridge_emul *, int, u32 *);
1: - void (*write_base)(struct pci_bridge_emul *, int, u32, u32, u32);
1: - void (*write_pcie)(struct pci_bridge_emul *, int, u32, u32, u32);
1: + pci_bridge_emul_read_status_t (*read_base)(struct pci_bridge_emul *, int,
1: + u32 *);
1: + pci_bridge_emul_read_status_t (*read_pcie)(struct pci_bridge_emul *, int,
1: + u32 *);
1: + void (*write_base)(struct pci_bridge_emul *, int, u32, u32, u32);
1: + void (*write_pcie)(struct pci_bridge_emul *, int, u32, u32, u32);
1: };
1:
1: struct pci_bridge_reg_behavior;
1:
1: struct pci_bridge_emul {
1: - struct pci_bridge_emul_conf conf;
1: - struct pci_bridge_emul_pcie_conf pcie_conf;
1: - struct pci_bridge_emul_ops *ops;
1: - struct pci_bridge_reg_behavior *pci_regs_behavior;
1: - struct pci_bridge_reg_behavior *pcie_cap_regs_behavior;
1: - void *data;
1: - bool has_pcie;
1: + struct pci_bridge_emul_conf conf;
1: + struct pci_bridge_emul_pcie_conf pcie_conf;
1: + struct pci_bridge_emul_ops *ops;
1: + struct pci_bridge_reg_behavior *pci_regs_behavior;
1: + struct pci_bridge_reg_behavior *pcie_cap_regs_behavior;
1: + void *data;
1: + bool has_pcie;
1: };
1:
1: struct pci_bridge_reg_behavior {
1: - u32 ro;
1: - u32 rw;
1: - u32 w1c;
1: + u32 ro;
1: + u32 rw;
1: + u32 w1c;
1: };
1:
1: enum {
1: - PCI_BRIDGE_EMUL_NO_PREFETCHABLE_BAR = 1,
1: + PCI_BRIDGE_EMUL_NO_PREFETCHABLE_BAR = 1,
1: };
1:
1: enum dmi_device_type {
1: - DMI_DEV_TYPE_ANY = 0,
1: - DMI_DEV_TYPE_OTHER = 1,
1: - DMI_DEV_TYPE_UNKNOWN = 2,
1: - DMI_DEV_TYPE_VIDEO = 3,
1: - DMI_DEV_TYPE_SCSI = 4,
1: - DMI_DEV_TYPE_ETHERNET = 5,
1: - DMI_DEV_TYPE_TOKENRING = 6,
1: - DMI_DEV_TYPE_SOUND = 7,
1: - DMI_DEV_TYPE_PATA = 8,
1: - DMI_DEV_TYPE_SATA = 9,
1: - DMI_DEV_TYPE_SAS = 10,
1: - DMI_DEV_TYPE_IPMI = 4294967295,
1: - DMI_DEV_TYPE_OEM_STRING = 4294967294,
1: - DMI_DEV_TYPE_DEV_ONBOARD = 4294967293,
1: - DMI_DEV_TYPE_DEV_SLOT = 4294967292,
1: + DMI_DEV_TYPE_ANY = 0,
1: + DMI_DEV_TYPE_OTHER = 1,
1: + DMI_DEV_TYPE_UNKNOWN = 2,
1: + DMI_DEV_TYPE_VIDEO = 3,
1: + DMI_DEV_TYPE_SCSI = 4,
1: + DMI_DEV_TYPE_ETHERNET = 5,
1: + DMI_DEV_TYPE_TOKENRING = 6,
1: + DMI_DEV_TYPE_SOUND = 7,
1: + DMI_DEV_TYPE_PATA = 8,
1: + DMI_DEV_TYPE_SATA = 9,
1: + DMI_DEV_TYPE_SAS = 10,
1: + DMI_DEV_TYPE_IPMI = 4294967295,
1: + DMI_DEV_TYPE_OEM_STRING = 4294967294,
1: + DMI_DEV_TYPE_DEV_ONBOARD = 4294967293,
1: + DMI_DEV_TYPE_DEV_SLOT = 4294967292,
1: };
1:
1: struct dmi_device {
1: - struct list_head list;
1: - int type;
1: - const char *name;
1: - void *device_data;
1: + struct list_head list;
1: + int type;
1: + const char *name;
1: + void *device_data;
1: };
1:
1: struct dmi_dev_onboard {
1: - struct dmi_device dev;
1: - int instance;
1: - int segment;
1: - int bus;
1: - int devfn;
1: + struct dmi_device dev;
1: + int instance;
1: + int segment;
1: + int bus;
1: + int devfn;
1: };
1:
1: enum smbios_attr_enum {
1: - SMBIOS_ATTR_NONE = 0,
1: - SMBIOS_ATTR_LABEL_SHOW = 1,
1: - SMBIOS_ATTR_INSTANCE_SHOW = 2,
1: + SMBIOS_ATTR_NONE = 0,
1: + SMBIOS_ATTR_LABEL_SHOW = 1,
1: + SMBIOS_ATTR_INSTANCE_SHOW = 2,
1: };
1:
1: enum acpi_attr_enum {
1: - ACPI_ATTR_LABEL_SHOW = 0,
1: - ACPI_ATTR_INDEX_SHOW = 1,
1: + ACPI_ATTR_LABEL_SHOW = 0,
1: + ACPI_ATTR_INDEX_SHOW = 1,
1: };
1:
1: struct pci_epf_device_id {
1: - char name[20];
1: - kernel_ulong_t driver_data;
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: };
1:
1: enum pci_interrupt_pin {
1: - PCI_INTERRUPT_UNKNOWN = 0,
1: - PCI_INTERRUPT_INTA = 1,
1: - PCI_INTERRUPT_INTB = 2,
1: - PCI_INTERRUPT_INTC = 3,
1: - PCI_INTERRUPT_INTD = 4,
1: + PCI_INTERRUPT_UNKNOWN = 0,
1: + PCI_INTERRUPT_INTA = 1,
1: + PCI_INTERRUPT_INTB = 2,
1: + PCI_INTERRUPT_INTC = 3,
1: + PCI_INTERRUPT_INTD = 4,
1: };
1:
1: enum pci_barno {
1: - BAR_0 = 0,
1: - BAR_1 = 1,
1: - BAR_2 = 2,
1: - BAR_3 = 3,
1: - BAR_4 = 4,
1: - BAR_5 = 5,
1: + BAR_0 = 0,
1: + BAR_1 = 1,
1: + BAR_2 = 2,
1: + BAR_3 = 3,
1: + BAR_4 = 4,
1: + BAR_5 = 5,
1: };
1:
1: struct pci_epf_header {
1: - u16 vendorid;
1: - u16 deviceid;
1: - u8 revid;
1: - u8 progif_code;
1: - u8 subclass_code;
1: - u8 baseclass_code;
1: - u8 cache_line_size;
1: - u16 subsys_vendor_id;
1: - u16 subsys_id;
1: - enum pci_interrupt_pin interrupt_pin;
1: + u16 vendorid;
1: + u16 deviceid;
1: + u8 revid;
1: + u8 progif_code;
1: + u8 subclass_code;
1: + u8 baseclass_code;
1: + u8 cache_line_size;
1: + u16 subsys_vendor_id;
1: + u16 subsys_id;
1: + enum pci_interrupt_pin interrupt_pin;
1: };
1:
1: struct pci_epf;
1:
1: struct pci_epf_ops {
1: - int (*bind)(struct pci_epf *);
1: - void (*unbind)(struct pci_epf *);
1: + int (*bind)(struct pci_epf *);
1: + void (*unbind)(struct pci_epf *);
1: };
1:
1: struct pci_epf_bar {
1: - dma_addr_t phys_addr;
1: - void *addr;
1: - size_t size;
1: - enum pci_barno barno;
1: - int flags;
1: + dma_addr_t phys_addr;
1: + void *addr;
1: + size_t size;
1: + enum pci_barno barno;
1: + int flags;
1: };
1:
1: struct pci_epc;
1: @@ -65117,28 +66058,28 @@ struct pci_epc;
1: struct pci_epf_driver;
1:
1: struct pci_epf {
1: - struct device dev;
1: - const char *name;
1: - struct pci_epf_header *header;
1: - struct pci_epf_bar bar[6];
1: - u8 msi_interrupts;
1: - u16 msix_interrupts;
1: - u8 func_no;
1: - struct pci_epc *epc;
1: - struct pci_epf_driver *driver;
1: - struct list_head list;
1: - struct notifier_block nb;
1: - struct mutex lock;
1: + struct device dev;
1: + const char *name;
1: + struct pci_epf_header *header;
1: + struct pci_epf_bar bar[6];
1: + u8 msi_interrupts;
1: + u16 msix_interrupts;
1: + u8 func_no;
1: + struct pci_epc *epc;
1: + struct pci_epf_driver *driver;
1: + struct list_head list;
1: + struct notifier_block nb;
1: + struct mutex lock;
1: };
1:
1: struct pci_epf_driver {
1: - int (*probe)(struct pci_epf *);
1: - int (*remove)(struct pci_epf *);
1: - struct device_driver driver;
1: - struct pci_epf_ops *ops;
1: - struct module *owner;
1: - struct list_head epf_group;
1: - const struct pci_epf_device_id *id_table;
1: + int (*probe)(struct pci_epf *);
1: + int (*remove)(struct pci_epf *);
1: + struct device_driver driver;
1: + struct pci_epf_ops *ops;
1: + struct module *owner;
1: + struct list_head epf_group;
1: + const struct pci_epf_device_id *id_table;
1: };
1:
1: struct pci_epc_ops;
1: @@ -65146,770 +66087,770 @@ struct pci_epc_ops;
1: struct pci_epc_mem;
1:
1: struct pci_epc {
1: - struct device dev;
1: - struct list_head pci_epf;
1: - const struct pci_epc_ops *ops;
1: - struct pci_epc_mem **windows;
1: - struct pci_epc_mem *mem;
1: - unsigned int num_windows;
1: - u8 max_functions;
1: - struct config_group *group;
1: - struct mutex lock;
1: - long unsigned int function_num_map;
1: - struct atomic_notifier_head notifier;
1: + struct device dev;
1: + struct list_head pci_epf;
1: + const struct pci_epc_ops *ops;
1: + struct pci_epc_mem **windows;
1: + struct pci_epc_mem *mem;
1: + unsigned int num_windows;
1: + u8 max_functions;
1: + struct config_group *group;
1: + struct mutex lock;
1: + long unsigned int function_num_map;
1: + struct atomic_notifier_head notifier;
1: };
1:
1: enum pci_epc_irq_type {
1: - PCI_EPC_IRQ_UNKNOWN = 0,
1: - PCI_EPC_IRQ_LEGACY = 1,
1: - PCI_EPC_IRQ_MSI = 2,
1: - PCI_EPC_IRQ_MSIX = 3,
1: + PCI_EPC_IRQ_UNKNOWN = 0,
1: + PCI_EPC_IRQ_LEGACY = 1,
1: + PCI_EPC_IRQ_MSI = 2,
1: + PCI_EPC_IRQ_MSIX = 3,
1: };
1:
1: struct pci_epc_features;
1:
1: struct pci_epc_ops {
1: - int (*write_header)(struct pci_epc *, u8, struct pci_epf_header *);
1: - int (*set_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: - void (*clear_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: - int (*map_addr)(struct pci_epc *, u8, phys_addr_t, u64, size_t);
1: - void (*unmap_addr)(struct pci_epc *, u8, phys_addr_t);
1: - int (*set_msi)(struct pci_epc *, u8, u8);
1: - int (*get_msi)(struct pci_epc *, u8);
1: - int (*set_msix)(struct pci_epc *, u8, u16, enum pci_barno, u32);
1: - int (*get_msix)(struct pci_epc *, u8);
1: - int (*raise_irq)(struct pci_epc *, u8, enum pci_epc_irq_type, u16);
1: - int (*start)(struct pci_epc *);
1: - void (*stop)(struct pci_epc *);
1: - const struct pci_epc_features * (*get_features)(struct pci_epc *, u8);
1: - struct module *owner;
1: + int (*write_header)(struct pci_epc *, u8, struct pci_epf_header *);
1: + int (*set_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: + void (*clear_bar)(struct pci_epc *, u8, struct pci_epf_bar *);
1: + int (*map_addr)(struct pci_epc *, u8, phys_addr_t, u64, size_t);
1: + void (*unmap_addr)(struct pci_epc *, u8, phys_addr_t);
1: + int (*set_msi)(struct pci_epc *, u8, u8);
1: + int (*get_msi)(struct pci_epc *, u8);
1: + int (*set_msix)(struct pci_epc *, u8, u16, enum pci_barno, u32);
1: + int (*get_msix)(struct pci_epc *, u8);
1: + int (*raise_irq)(struct pci_epc *, u8, enum pci_epc_irq_type, u16);
1: + int (*start)(struct pci_epc *);
1: + void (*stop)(struct pci_epc *);
1: + const struct pci_epc_features *(*get_features)(struct pci_epc *, u8);
1: + struct module *owner;
1: };
1:
1: struct pci_epc_features {
1: - unsigned int linkup_notifier: 1;
1: - unsigned int core_init_notifier: 1;
1: - unsigned int msi_capable: 1;
1: - unsigned int msix_capable: 1;
1: - u8 reserved_bar;
1: - u8 bar_fixed_64bit;
1: - u64 bar_fixed_size[6];
1: - size_t align;
1: + unsigned int linkup_notifier : 1;
1: + unsigned int core_init_notifier : 1;
1: + unsigned int msi_capable : 1;
1: + unsigned int msix_capable : 1;
1: + u8 reserved_bar;
1: + u8 bar_fixed_64bit;
1: + u64 bar_fixed_size[6];
1: + size_t align;
1: };
1:
1: struct pci_epc_mem_window {
1: - phys_addr_t phys_base;
1: - size_t size;
1: - size_t page_size;
1: + phys_addr_t phys_base;
1: + size_t size;
1: + size_t page_size;
1: };
1:
1: struct pci_epc_mem {
1: - struct pci_epc_mem_window window;
1: - long unsigned int *bitmap;
1: - int pages;
1: - struct mutex lock;
1: + struct pci_epc_mem_window window;
1: + long unsigned int *bitmap;
1: + int pages;
1: + struct mutex lock;
1: };
1:
1: struct pci_epf_group {
1: - struct config_group group;
1: - struct pci_epf *epf;
1: - int index;
1: + struct config_group group;
1: + struct pci_epf *epf;
1: + int index;
1: };
1:
1: struct pci_epc_group {
1: - struct config_group group;
1: - struct pci_epc *epc;
1: - bool start;
1: + struct config_group group;
1: + struct pci_epc *epc;
1: + bool start;
1: };
1:
1: enum pci_notify_event {
1: - CORE_INIT = 0,
1: - LINK_UP = 1,
1: + CORE_INIT = 0,
1: + LINK_UP = 1,
1: };
1:
1: struct advk_pcie {
1: - struct platform_device *pdev;
1: - void *base;
1: - struct irq_domain *irq_domain;
1: - struct irq_chip irq_chip;
1: - struct irq_domain *msi_domain;
1: - struct irq_domain *msi_inner_domain;
1: - struct irq_chip msi_bottom_irq_chip;
1: - struct irq_chip msi_irq_chip;
1: - struct msi_domain_info msi_domain_info;
1: - long unsigned int msi_used[1];
1: - struct mutex msi_used_lock;
1: - u16 msi_msg;
1: - int link_gen;
1: - struct pci_bridge_emul bridge;
1: - struct gpio_desc *reset_gpio;
1: - struct phy *phy;
1: + struct platform_device *pdev;
1: + void *base;
1: + struct irq_domain *irq_domain;
1: + struct irq_chip irq_chip;
1: + struct irq_domain *msi_domain;
1: + struct irq_domain *msi_inner_domain;
1: + struct irq_chip msi_bottom_irq_chip;
1: + struct irq_chip msi_irq_chip;
1: + struct msi_domain_info msi_domain_info;
1: + long unsigned int msi_used[1];
1: + struct mutex msi_used_lock;
1: + u16 msi_msg;
1: + int link_gen;
1: + struct pci_bridge_emul bridge;
1: + struct gpio_desc *reset_gpio;
1: + struct phy *phy;
1: };
1:
1: struct tegra_msi {
1: - struct msi_controller chip;
1: - long unsigned int used[4];
1: - struct irq_domain *domain;
1: - struct mutex lock;
1: - void *virt;
1: - dma_addr_t phys;
1: - int irq;
1: + struct msi_controller chip;
1: + long unsigned int used[4];
1: + struct irq_domain *domain;
1: + struct mutex lock;
1: + void *virt;
1: + dma_addr_t phys;
1: + int irq;
1: };
1:
1: struct tegra_pcie_port_soc {
1: - struct {
1: - u8 turnoff_bit;
1: - u8 ack_bit;
1: - } pme;
1: + struct {
1: + u8 turnoff_bit;
1: + u8 ack_bit;
1: + } pme;
1: };
1:
1: struct tegra_pcie_soc {
1: - unsigned int num_ports;
1: - const struct tegra_pcie_port_soc *ports;
1: - unsigned int msi_base_shift;
1: - long unsigned int afi_pex2_ctrl;
1: - u32 pads_pll_ctl;
1: - u32 tx_ref_sel;
1: - u32 pads_refclk_cfg0;
1: - u32 pads_refclk_cfg1;
1: - u32 update_fc_threshold;
1: - bool has_pex_clkreq_en;
1: - bool has_pex_bias_ctrl;
1: - bool has_intr_prsnt_sense;
1: - bool has_cml_clk;
1: - bool has_gen2;
1: - bool force_pca_enable;
1: - bool program_uphy;
1: - bool update_clamp_threshold;
1: - bool program_deskew_time;
1: - bool update_fc_timer;
1: - bool has_cache_bars;
1: - struct {
1: - struct {
1: - u32 rp_ectl_2_r1;
1: - u32 rp_ectl_4_r1;
1: - u32 rp_ectl_5_r1;
1: - u32 rp_ectl_6_r1;
1: - u32 rp_ectl_2_r2;
1: - u32 rp_ectl_4_r2;
1: - u32 rp_ectl_5_r2;
1: - u32 rp_ectl_6_r2;
1: - } regs;
1: - bool enable;
1: - } ectl;
1: + unsigned int num_ports;
1: + const struct tegra_pcie_port_soc *ports;
1: + unsigned int msi_base_shift;
1: + long unsigned int afi_pex2_ctrl;
1: + u32 pads_pll_ctl;
1: + u32 tx_ref_sel;
1: + u32 pads_refclk_cfg0;
1: + u32 pads_refclk_cfg1;
1: + u32 update_fc_threshold;
1: + bool has_pex_clkreq_en;
1: + bool has_pex_bias_ctrl;
1: + bool has_intr_prsnt_sense;
1: + bool has_cml_clk;
1: + bool has_gen2;
1: + bool force_pca_enable;
1: + bool program_uphy;
1: + bool update_clamp_threshold;
1: + bool program_deskew_time;
1: + bool update_fc_timer;
1: + bool has_cache_bars;
1: + struct {
1: + struct {
1: + u32 rp_ectl_2_r1;
1: + u32 rp_ectl_4_r1;
1: + u32 rp_ectl_5_r1;
1: + u32 rp_ectl_6_r1;
1: + u32 rp_ectl_2_r2;
1: + u32 rp_ectl_4_r2;
1: + u32 rp_ectl_5_r2;
1: + u32 rp_ectl_6_r2;
1: + } regs;
1: + bool enable;
1: + } ectl;
1: };
1:
1: struct tegra_pcie {
1: - struct device *dev;
1: - void *pads;
1: - void *afi;
1: - void *cfg;
1: - int irq;
1: - struct resource cs;
1: - struct clk *pex_clk;
1: - struct clk *afi_clk;
1: - struct clk *pll_e;
1: - struct clk *cml_clk;
1: - struct reset_control *pex_rst;
1: - struct reset_control *afi_rst;
1: - struct reset_control *pcie_xrst;
1: - bool legacy_phy;
1: - struct phy *phy;
1: - struct tegra_msi msi;
1: - struct list_head ports;
1: - u32 xbar_config;
1: - struct regulator_bulk_data *supplies;
1: - unsigned int num_supplies;
1: - const struct tegra_pcie_soc *soc;
1: - struct dentry *debugfs;
1: + struct device *dev;
1: + void *pads;
1: + void *afi;
1: + void *cfg;
1: + int irq;
1: + struct resource cs;
1: + struct clk *pex_clk;
1: + struct clk *afi_clk;
1: + struct clk *pll_e;
1: + struct clk *cml_clk;
1: + struct reset_control *pex_rst;
1: + struct reset_control *afi_rst;
1: + struct reset_control *pcie_xrst;
1: + bool legacy_phy;
1: + struct phy *phy;
1: + struct tegra_msi msi;
1: + struct list_head ports;
1: + u32 xbar_config;
1: + struct regulator_bulk_data *supplies;
1: + unsigned int num_supplies;
1: + const struct tegra_pcie_soc *soc;
1: + struct dentry *debugfs;
1: };
1:
1: struct tegra_pcie_port {
1: - struct tegra_pcie *pcie;
1: - struct device_node *np;
1: - struct list_head list;
1: - struct resource regs;
1: - void *base;
1: - unsigned int index;
1: - unsigned int lanes;
1: - struct phy **phys;
1: - struct gpio_desc *reset_gpio;
1: + struct tegra_pcie *pcie;
1: + struct device_node *np;
1: + struct list_head list;
1: + struct resource regs;
1: + void *base;
1: + unsigned int index;
1: + unsigned int lanes;
1: + struct phy **phys;
1: + struct gpio_desc *reset_gpio;
1: };
1:
1: struct xgene_msi;
1:
1: struct xgene_msi_group {
1: - struct xgene_msi *msi;
1: - int gic_irq;
1: - u32 msi_grp;
1: + struct xgene_msi *msi;
1: + int gic_irq;
1: + u32 msi_grp;
1: };
1:
1: struct xgene_msi {
1: - struct device_node *node;
1: - struct irq_domain *inner_domain;
1: - struct irq_domain *msi_domain;
1: - u64 msi_addr;
1: - void *msi_regs;
1: - long unsigned int *bitmap;
1: - struct mutex bitmap_lock;
1: - struct xgene_msi_group *msi_groups;
1: - int num_cpus;
1: + struct device_node *node;
1: + struct irq_domain *inner_domain;
1: + struct irq_domain *msi_domain;
1: + u64 msi_addr;
1: + void *msi_regs;
1: + long unsigned int *bitmap;
1: + struct mutex bitmap_lock;
1: + struct xgene_msi_group *msi_groups;
1: + int num_cpus;
1: };
1:
1: struct rockchip_pcie {
1: - void *reg_base;
1: - void *apb_base;
1: - bool legacy_phy;
1: - struct phy *phys[4];
1: - struct reset_control *core_rst;
1: - struct reset_control *mgmt_rst;
1: - struct reset_control *mgmt_sticky_rst;
1: - struct reset_control *pipe_rst;
1: - struct reset_control *pm_rst;
1: - struct reset_control *aclk_rst;
1: - struct reset_control *pclk_rst;
1: - struct clk *aclk_pcie;
1: - struct clk *aclk_perf_pcie;
1: - struct clk *hclk_pcie;
1: - struct clk *clk_pcie_pm;
1: - struct regulator *vpcie12v;
1: - struct regulator *vpcie3v3;
1: - struct regulator *vpcie1v8;
1: - struct regulator *vpcie0v9;
1: - struct gpio_desc *ep_gpio;
1: - u32 lanes;
1: - u8 lanes_map;
1: - int link_gen;
1: - struct device *dev;
1: - struct irq_domain *irq_domain;
1: - int offset;
1: - void *msg_region;
1: - phys_addr_t msg_bus_addr;
1: - bool is_rc;
1: - struct resource *mem_res;
1: + void *reg_base;
1: + void *apb_base;
1: + bool legacy_phy;
1: + struct phy *phys[4];
1: + struct reset_control *core_rst;
1: + struct reset_control *mgmt_rst;
1: + struct reset_control *mgmt_sticky_rst;
1: + struct reset_control *pipe_rst;
1: + struct reset_control *pm_rst;
1: + struct reset_control *aclk_rst;
1: + struct reset_control *pclk_rst;
1: + struct clk *aclk_pcie;
1: + struct clk *aclk_perf_pcie;
1: + struct clk *hclk_pcie;
1: + struct clk *clk_pcie_pm;
1: + struct regulator *vpcie12v;
1: + struct regulator *vpcie3v3;
1: + struct regulator *vpcie1v8;
1: + struct regulator *vpcie0v9;
1: + struct gpio_desc *ep_gpio;
1: + u32 lanes;
1: + u8 lanes_map;
1: + int link_gen;
1: + struct device *dev;
1: + struct irq_domain *irq_domain;
1: + int offset;
1: + void *msg_region;
1: + phys_addr_t msg_bus_addr;
1: + bool is_rc;
1: + struct resource *mem_res;
1: };
1:
1: struct rockchip_pcie_ep {
1: - struct rockchip_pcie rockchip;
1: - struct pci_epc *epc;
1: - u32 max_regions;
1: - long unsigned int ob_region_map;
1: - phys_addr_t *ob_addr;
1: - phys_addr_t irq_phys_addr;
1: - void *irq_cpu_addr;
1: - u64 irq_pci_addr;
1: - u8 irq_pci_fn;
1: - u8 irq_pending;
1: + struct rockchip_pcie rockchip;
1: + struct pci_epc *epc;
1: + u32 max_regions;
1: + long unsigned int ob_region_map;
1: + phys_addr_t *ob_addr;
1: + phys_addr_t irq_phys_addr;
1: + void *irq_cpu_addr;
1: + u64 irq_pci_addr;
1: + u8 irq_pci_fn;
1: + u8 irq_pending;
1: };
1:
1: struct mtk_pcie_port;
1:
1: struct mtk_pcie_soc {
1: - bool need_fix_class_id;
1: - bool need_fix_device_id;
1: - unsigned int device_id;
1: - struct pci_ops *ops;
1: - int (*startup)(struct mtk_pcie_port *);
1: - int (*setup_irq)(struct mtk_pcie_port *, struct device_node *);
1: + bool need_fix_class_id;
1: + bool need_fix_device_id;
1: + unsigned int device_id;
1: + struct pci_ops *ops;
1: + int (*startup)(struct mtk_pcie_port *);
1: + int (*setup_irq)(struct mtk_pcie_port *, struct device_node *);
1: };
1:
1: struct mtk_pcie;
1:
1: struct mtk_pcie_port {
1: - void *base;
1: - struct list_head list;
1: - struct mtk_pcie *pcie;
1: - struct reset_control *reset;
1: - struct clk *sys_ck;
1: - struct clk *ahb_ck;
1: - struct clk *axi_ck;
1: - struct clk *aux_ck;
1: - struct clk *obff_ck;
1: - struct clk *pipe_ck;
1: - struct phy *phy;
1: - u32 slot;
1: - int irq;
1: - struct irq_domain *irq_domain;
1: - struct irq_domain *inner_domain;
1: - struct irq_domain *msi_domain;
1: - struct mutex lock;
1: - long unsigned int msi_irq_in_use[1];
1: + void *base;
1: + struct list_head list;
1: + struct mtk_pcie *pcie;
1: + struct reset_control *reset;
1: + struct clk *sys_ck;
1: + struct clk *ahb_ck;
1: + struct clk *axi_ck;
1: + struct clk *aux_ck;
1: + struct clk *obff_ck;
1: + struct clk *pipe_ck;
1: + struct phy *phy;
1: + u32 slot;
1: + int irq;
1: + struct irq_domain *irq_domain;
1: + struct irq_domain *inner_domain;
1: + struct irq_domain *msi_domain;
1: + struct mutex lock;
1: + long unsigned int msi_irq_in_use[1];
1: };
1:
1: struct mtk_pcie {
1: - struct device *dev;
1: - void *base;
1: - struct clk *free_ck;
1: - struct list_head ports;
1: - const struct mtk_pcie_soc *soc;
1: + struct device *dev;
1: + void *base;
1: + struct clk *free_ck;
1: + struct list_head ports;
1: + const struct mtk_pcie_soc *soc;
1: };
1:
1: enum {
1: - RGR1_SW_INIT_1 = 0,
1: - EXT_CFG_INDEX = 1,
1: - EXT_CFG_DATA = 2,
1: + RGR1_SW_INIT_1 = 0,
1: + EXT_CFG_INDEX = 1,
1: + EXT_CFG_DATA = 2,
1: };
1:
1: enum pcie_type {
1: - GENERIC = 0,
1: - BCM7278 = 1,
1: - BCM2711 = 2,
1: + GENERIC = 0,
1: + BCM7278 = 1,
1: + BCM2711 = 2,
1: };
1:
1: struct brcm_pcie;
1:
1: struct pcie_cfg_data {
1: - const int *offsets;
1: - const enum pcie_type type;
1: - void (*perst_set)(struct brcm_pcie *, u32);
1: - void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: + const int *offsets;
1: + const enum pcie_type type;
1: + void (*perst_set)(struct brcm_pcie *, u32);
1: + void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: };
1:
1: struct brcm_msi;
1:
1: struct brcm_pcie {
1: - struct device *dev;
1: - void *base;
1: - struct clk *clk;
1: - struct device_node *np;
1: - bool ssc;
1: - int gen;
1: - u64 msi_target_addr;
1: - struct brcm_msi *msi;
1: - const int *reg_offsets;
1: - enum pcie_type type;
1: - struct reset_control *rescal;
1: - int num_memc;
1: - u64 memc_size[3];
1: - u32 hw_rev;
1: - void (*perst_set)(struct brcm_pcie *, u32);
1: - void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: + struct device *dev;
1: + void *base;
1: + struct clk *clk;
1: + struct device_node *np;
1: + bool ssc;
1: + int gen;
1: + u64 msi_target_addr;
1: + struct brcm_msi *msi;
1: + const int *reg_offsets;
1: + enum pcie_type type;
1: + struct reset_control *rescal;
1: + int num_memc;
1: + u64 memc_size[3];
1: + u32 hw_rev;
1: + void (*perst_set)(struct brcm_pcie *, u32);
1: + void (*bridge_sw_init_set)(struct brcm_pcie *, u32);
1: };
1:
1: struct brcm_msi {
1: - struct device *dev;
1: - void *base;
1: - struct device_node *np;
1: - struct irq_domain *msi_domain;
1: - struct irq_domain *inner_domain;
1: - struct mutex lock;
1: - u64 target_addr;
1: - int irq;
1: - long unsigned int used;
1: - bool legacy;
1: - int legacy_shift;
1: - int nr;
1: - void *intr_base;
1: + struct device *dev;
1: + void *base;
1: + struct device_node *np;
1: + struct irq_domain *msi_domain;
1: + struct irq_domain *inner_domain;
1: + struct mutex lock;
1: + u64 target_addr;
1: + int irq;
1: + long unsigned int used;
1: + bool legacy;
1: + int legacy_shift;
1: + int nr;
1: + void *intr_base;
1: };
1:
1: enum dw_pcie_region_type {
1: - DW_PCIE_REGION_UNKNOWN = 0,
1: - DW_PCIE_REGION_INBOUND = 1,
1: - DW_PCIE_REGION_OUTBOUND = 2,
1: + DW_PCIE_REGION_UNKNOWN = 0,
1: + DW_PCIE_REGION_INBOUND = 1,
1: + DW_PCIE_REGION_OUTBOUND = 2,
1: };
1:
1: struct pcie_port;
1:
1: struct dw_pcie_host_ops {
1: - int (*host_init)(struct pcie_port *);
1: - void (*set_num_vectors)(struct pcie_port *);
1: - int (*msi_host_init)(struct pcie_port *);
1: + int (*host_init)(struct pcie_port *);
1: + void (*set_num_vectors)(struct pcie_port *);
1: + int (*msi_host_init)(struct pcie_port *);
1: };
1:
1: struct pcie_port {
1: - u64 cfg0_base;
1: - void *va_cfg0_base;
1: - u32 cfg0_size;
1: - resource_size_t io_base;
1: - phys_addr_t io_bus_addr;
1: - u32 io_size;
1: - int irq;
1: - const struct dw_pcie_host_ops *ops;
1: - int msi_irq;
1: - struct irq_domain *irq_domain;
1: - struct irq_domain *msi_domain;
1: - u16 msi_msg;
1: - dma_addr_t msi_data;
1: - struct irq_chip *msi_irq_chip;
1: - u32 num_vectors;
1: - u32 irq_mask[8];
1: - struct pci_host_bridge *bridge;
1: - raw_spinlock_t lock;
1: - long unsigned int msi_irq_in_use[4];
1: + u64 cfg0_base;
1: + void *va_cfg0_base;
1: + u32 cfg0_size;
1: + resource_size_t io_base;
1: + phys_addr_t io_bus_addr;
1: + u32 io_size;
1: + int irq;
1: + const struct dw_pcie_host_ops *ops;
1: + int msi_irq;
1: + struct irq_domain *irq_domain;
1: + struct irq_domain *msi_domain;
1: + u16 msi_msg;
1: + dma_addr_t msi_data;
1: + struct irq_chip *msi_irq_chip;
1: + u32 num_vectors;
1: + u32 irq_mask[8];
1: + struct pci_host_bridge *bridge;
1: + raw_spinlock_t lock;
1: + long unsigned int msi_irq_in_use[4];
1: };
1:
1: enum dw_pcie_as_type {
1: - DW_PCIE_AS_UNKNOWN = 0,
1: - DW_PCIE_AS_MEM = 1,
1: - DW_PCIE_AS_IO = 2,
1: + DW_PCIE_AS_UNKNOWN = 0,
1: + DW_PCIE_AS_MEM = 1,
1: + DW_PCIE_AS_IO = 2,
1: };
1:
1: struct dw_pcie_ep;
1:
1: struct dw_pcie_ep_ops {
1: - void (*ep_init)(struct dw_pcie_ep *);
1: - int (*raise_irq)(struct dw_pcie_ep *, u8, enum pci_epc_irq_type, u16);
1: - const struct pci_epc_features * (*get_features)(struct dw_pcie_ep *);
1: - unsigned int (*func_conf_select)(struct dw_pcie_ep *, u8);
1: + void (*ep_init)(struct dw_pcie_ep *);
1: + int (*raise_irq)(struct dw_pcie_ep *, u8, enum pci_epc_irq_type, u16);
1: + const struct pci_epc_features *(*get_features)(struct dw_pcie_ep *);
1: + unsigned int (*func_conf_select)(struct dw_pcie_ep *, u8);
1: };
1:
1: struct dw_pcie_ep {
1: - struct pci_epc *epc;
1: - struct list_head func_list;
1: - const struct dw_pcie_ep_ops *ops;
1: - phys_addr_t phys_base;
1: - size_t addr_size;
1: - size_t page_size;
1: - u8 bar_to_atu[6];
1: - phys_addr_t *outbound_addr;
1: - long unsigned int *ib_window_map;
1: - long unsigned int *ob_window_map;
1: - u32 num_ib_windows;
1: - u32 num_ob_windows;
1: - void *msi_mem;
1: - phys_addr_t msi_mem_phys;
1: - struct pci_epf_bar *epf_bar[6];
1: + struct pci_epc *epc;
1: + struct list_head func_list;
1: + const struct dw_pcie_ep_ops *ops;
1: + phys_addr_t phys_base;
1: + size_t addr_size;
1: + size_t page_size;
1: + u8 bar_to_atu[6];
1: + phys_addr_t *outbound_addr;
1: + long unsigned int *ib_window_map;
1: + long unsigned int *ob_window_map;
1: + u32 num_ib_windows;
1: + u32 num_ob_windows;
1: + void *msi_mem;
1: + phys_addr_t msi_mem_phys;
1: + struct pci_epf_bar *epf_bar[6];
1: };
1:
1: struct dw_pcie;
1:
1: struct dw_pcie_ops {
1: - u64 (*cpu_addr_fixup)(struct dw_pcie *, u64);
1: - u32 (*read_dbi)(struct dw_pcie *, void *, u32, size_t);
1: - void (*write_dbi)(struct dw_pcie *, void *, u32, size_t, u32);
1: - void (*write_dbi2)(struct dw_pcie *, void *, u32, size_t, u32);
1: - int (*link_up)(struct dw_pcie *);
1: - int (*start_link)(struct dw_pcie *);
1: - void (*stop_link)(struct dw_pcie *);
1: + u64 (*cpu_addr_fixup)(struct dw_pcie *, u64);
1: + u32 (*read_dbi)(struct dw_pcie *, void *, u32, size_t);
1: + void (*write_dbi)(struct dw_pcie *, void *, u32, size_t, u32);
1: + void (*write_dbi2)(struct dw_pcie *, void *, u32, size_t, u32);
1: + int (*link_up)(struct dw_pcie *);
1: + int (*start_link)(struct dw_pcie *);
1: + void (*stop_link)(struct dw_pcie *);
1: };
1:
1: struct dw_pcie {
1: - struct device *dev;
1: - void *dbi_base;
1: - void *dbi_base2;
1: - void *atu_base;
1: - u32 num_viewport;
1: - u8 iatu_unroll_enabled;
1: - struct pcie_port pp;
1: - struct dw_pcie_ep ep;
1: - const struct dw_pcie_ops *ops;
1: - unsigned int version;
1: - int num_lanes;
1: - int link_gen;
1: - u8 n_fts[2];
1: + struct device *dev;
1: + void *dbi_base;
1: + void *dbi_base2;
1: + void *atu_base;
1: + u32 num_viewport;
1: + u8 iatu_unroll_enabled;
1: + struct pcie_port pp;
1: + struct dw_pcie_ep ep;
1: + const struct dw_pcie_ops *ops;
1: + unsigned int version;
1: + int num_lanes;
1: + int link_gen;
1: + u8 n_fts[2];
1: };
1:
1: struct pci_epf_msix_tbl {
1: - u64 msg_addr;
1: - u32 msg_data;
1: - u32 vector_ctrl;
1: + u64 msg_addr;
1: + u32 msg_data;
1: + u32 vector_ctrl;
1: };
1:
1: struct dw_pcie_ep_func {
1: - struct list_head list;
1: - u8 func_no;
1: - u8 msi_cap;
1: - u8 msix_cap;
1: + struct list_head list;
1: + u8 func_no;
1: + u8 msi_cap;
1: + u8 msix_cap;
1: };
1:
1: enum dw_pcie_device_mode {
1: - DW_PCIE_UNKNOWN_TYPE = 0,
1: - DW_PCIE_EP_TYPE = 1,
1: - DW_PCIE_LEG_EP_TYPE = 2,
1: - DW_PCIE_RC_TYPE = 3,
1: + DW_PCIE_UNKNOWN_TYPE = 0,
1: + DW_PCIE_EP_TYPE = 1,
1: + DW_PCIE_LEG_EP_TYPE = 2,
1: + DW_PCIE_RC_TYPE = 3,
1: };
1:
1: struct dw_plat_pcie {
1: - struct dw_pcie *pci;
1: - struct regmap *regmap;
1: - enum dw_pcie_device_mode mode;
1: + struct dw_pcie *pci;
1: + struct regmap *regmap;
1: + enum dw_pcie_device_mode mode;
1: };
1:
1: struct dw_plat_pcie_of_data {
1: - enum dw_pcie_device_mode mode;
1: + enum dw_pcie_device_mode mode;
1: };
1:
1: struct qcom_pcie_resources_2_1_0 {
1: - struct clk_bulk_data clks[5];
1: - struct reset_control *pci_reset;
1: - struct reset_control *axi_reset;
1: - struct reset_control *ahb_reset;
1: - struct reset_control *por_reset;
1: - struct reset_control *phy_reset;
1: - struct reset_control *ext_reset;
1: - struct regulator_bulk_data supplies[3];
1: + struct clk_bulk_data clks[5];
1: + struct reset_control *pci_reset;
1: + struct reset_control *axi_reset;
1: + struct reset_control *ahb_reset;
1: + struct reset_control *por_reset;
1: + struct reset_control *phy_reset;
1: + struct reset_control *ext_reset;
1: + struct regulator_bulk_data supplies[3];
1: };
1:
1: struct qcom_pcie_resources_1_0_0 {
1: - struct clk *iface;
1: - struct clk *aux;
1: - struct clk *master_bus;
1: - struct clk *slave_bus;
1: - struct reset_control *core;
1: - struct regulator *vdda;
1: + struct clk *iface;
1: + struct clk *aux;
1: + struct clk *master_bus;
1: + struct clk *slave_bus;
1: + struct reset_control *core;
1: + struct regulator *vdda;
1: };
1:
1: struct qcom_pcie_resources_2_3_2 {
1: - struct clk *aux_clk;
1: - struct clk *master_clk;
1: - struct clk *slave_clk;
1: - struct clk *cfg_clk;
1: - struct clk *pipe_clk;
1: - struct regulator_bulk_data supplies[2];
1: + struct clk *aux_clk;
1: + struct clk *master_clk;
1: + struct clk *slave_clk;
1: + struct clk *cfg_clk;
1: + struct clk *pipe_clk;
1: + struct regulator_bulk_data supplies[2];
1: };
1:
1: struct qcom_pcie_resources_2_4_0 {
1: - struct clk_bulk_data clks[4];
1: - int num_clks;
1: - struct reset_control *axi_m_reset;
1: - struct reset_control *axi_s_reset;
1: - struct reset_control *pipe_reset;
1: - struct reset_control *axi_m_vmid_reset;
1: - struct reset_control *axi_s_xpu_reset;
1: - struct reset_control *parf_reset;
1: - struct reset_control *phy_reset;
1: - struct reset_control *axi_m_sticky_reset;
1: - struct reset_control *pipe_sticky_reset;
1: - struct reset_control *pwr_reset;
1: - struct reset_control *ahb_reset;
1: - struct reset_control *phy_ahb_reset;
1: + struct clk_bulk_data clks[4];
1: + int num_clks;
1: + struct reset_control *axi_m_reset;
1: + struct reset_control *axi_s_reset;
1: + struct reset_control *pipe_reset;
1: + struct reset_control *axi_m_vmid_reset;
1: + struct reset_control *axi_s_xpu_reset;
1: + struct reset_control *parf_reset;
1: + struct reset_control *phy_reset;
1: + struct reset_control *axi_m_sticky_reset;
1: + struct reset_control *pipe_sticky_reset;
1: + struct reset_control *pwr_reset;
1: + struct reset_control *ahb_reset;
1: + struct reset_control *phy_ahb_reset;
1: };
1:
1: struct qcom_pcie_resources_2_3_3 {
1: - struct clk *iface;
1: - struct clk *axi_m_clk;
1: - struct clk *axi_s_clk;
1: - struct clk *ahb_clk;
1: - struct clk *aux_clk;
1: - struct reset_control *rst[7];
1: + struct clk *iface;
1: + struct clk *axi_m_clk;
1: + struct clk *axi_s_clk;
1: + struct clk *ahb_clk;
1: + struct clk *aux_clk;
1: + struct reset_control *rst[7];
1: };
1:
1: struct qcom_pcie_resources_2_7_0 {
1: - struct clk_bulk_data clks[6];
1: - struct regulator_bulk_data supplies[2];
1: - struct reset_control *pci_reset;
1: - struct clk *pipe_clk;
1: + struct clk_bulk_data clks[6];
1: + struct regulator_bulk_data supplies[2];
1: + struct reset_control *pci_reset;
1: + struct clk *pipe_clk;
1: };
1:
1: union qcom_pcie_resources {
1: - struct qcom_pcie_resources_1_0_0 v1_0_0;
1: - struct qcom_pcie_resources_2_1_0 v2_1_0;
1: - struct qcom_pcie_resources_2_3_2 v2_3_2;
1: - struct qcom_pcie_resources_2_3_3 v2_3_3;
1: - struct qcom_pcie_resources_2_4_0 v2_4_0;
1: - struct qcom_pcie_resources_2_7_0 v2_7_0;
1: + struct qcom_pcie_resources_1_0_0 v1_0_0;
1: + struct qcom_pcie_resources_2_1_0 v2_1_0;
1: + struct qcom_pcie_resources_2_3_2 v2_3_2;
1: + struct qcom_pcie_resources_2_3_3 v2_3_3;
1: + struct qcom_pcie_resources_2_4_0 v2_4_0;
1: + struct qcom_pcie_resources_2_7_0 v2_7_0;
1: };
1:
1: struct qcom_pcie;
1:
1: struct qcom_pcie_ops {
1: - int (*get_resources)(struct qcom_pcie *);
1: - int (*init)(struct qcom_pcie *);
1: - int (*post_init)(struct qcom_pcie *);
1: - void (*deinit)(struct qcom_pcie *);
1: - void (*post_deinit)(struct qcom_pcie *);
1: - void (*ltssm_enable)(struct qcom_pcie *);
1: + int (*get_resources)(struct qcom_pcie *);
1: + int (*init)(struct qcom_pcie *);
1: + int (*post_init)(struct qcom_pcie *);
1: + void (*deinit)(struct qcom_pcie *);
1: + void (*post_deinit)(struct qcom_pcie *);
1: + void (*ltssm_enable)(struct qcom_pcie *);
1: };
1:
1: struct qcom_pcie {
1: - struct dw_pcie *pci;
1: - void *parf;
1: - void *elbi;
1: - union qcom_pcie_resources res;
1: - struct phy *phy;
1: - struct gpio_desc *reset;
1: - const struct qcom_pcie_ops *ops;
1: + struct dw_pcie *pci;
1: + void *parf;
1: + void *elbi;
1: + union qcom_pcie_resources res;
1: + struct phy *phy;
1: + struct gpio_desc *reset;
1: + const struct qcom_pcie_ops *ops;
1: };
1:
1: struct armada8k_pcie {
1: - struct dw_pcie *pci;
1: - struct clk *clk;
1: - struct clk *clk_reg;
1: - struct phy *phy[4];
1: - unsigned int phy_count;
1: + struct dw_pcie *pci;
1: + struct clk *clk;
1: + struct clk *clk_reg;
1: + struct phy *phy[4];
1: + unsigned int phy_count;
1: };
1:
1: struct kirin_pcie {
1: - struct dw_pcie *pci;
1: - void *apb_base;
1: - void *phy_base;
1: - struct regmap *crgctrl;
1: - struct regmap *sysctrl;
1: - struct clk *apb_sys_clk;
1: - struct clk *apb_phy_clk;
1: - struct clk *phy_ref_clk;
1: - struct clk *pcie_aclk;
1: - struct clk *pcie_aux_clk;
1: - int gpio_id_reset;
1: + struct dw_pcie *pci;
1: + void *apb_base;
1: + void *phy_base;
1: + struct regmap *crgctrl;
1: + struct regmap *sysctrl;
1: + struct clk *apb_sys_clk;
1: + struct clk *apb_phy_clk;
1: + struct clk *phy_ref_clk;
1: + struct clk *pcie_aclk;
1: + struct clk *pcie_aux_clk;
1: + int gpio_id_reset;
1: };
1:
1: struct histb_pcie {
1: - struct dw_pcie *pci;
1: - struct clk *aux_clk;
1: - struct clk *pipe_clk;
1: - struct clk *sys_clk;
1: - struct clk *bus_clk;
1: - struct phy *phy;
1: - struct reset_control *soft_reset;
1: - struct reset_control *sys_reset;
1: - struct reset_control *bus_reset;
1: - void *ctrl;
1: - int reset_gpio;
1: - struct regulator *vpcie;
1: + struct dw_pcie *pci;
1: + struct clk *aux_clk;
1: + struct clk *pipe_clk;
1: + struct clk *sys_clk;
1: + struct clk *bus_clk;
1: + struct phy *phy;
1: + struct reset_control *soft_reset;
1: + struct reset_control *sys_reset;
1: + struct reset_control *bus_reset;
1: + void *ctrl;
1: + int reset_gpio;
1: + struct regulator *vpcie;
1: };
1:
1: enum pcie_data_rate {
1: - PCIE_GEN1 = 0,
1: - PCIE_GEN2 = 1,
1: - PCIE_GEN3 = 2,
1: - PCIE_GEN4 = 3,
1: + PCIE_GEN1 = 0,
1: + PCIE_GEN2 = 1,
1: + PCIE_GEN3 = 2,
1: + PCIE_GEN4 = 3,
1: };
1:
1: struct meson_pcie_clk_res {
1: - struct clk *clk;
1: - struct clk *port_clk;
1: - struct clk *general_clk;
1: + struct clk *clk;
1: + struct clk *port_clk;
1: + struct clk *general_clk;
1: };
1:
1: struct meson_pcie_rc_reset {
1: - struct reset_control *port;
1: - struct reset_control *apb;
1: + struct reset_control *port;
1: + struct reset_control *apb;
1: };
1:
1: struct meson_pcie {
1: - struct dw_pcie pci;
1: - void *cfg_base;
1: - struct meson_pcie_clk_res clk_res;
1: - struct meson_pcie_rc_reset mrst;
1: - struct gpio_desc *reset_gpio;
1: - struct phy *phy;
1: + struct dw_pcie pci;
1: + void *cfg_base;
1: + struct meson_pcie_clk_res clk_res;
1: + struct meson_pcie_rc_reset mrst;
1: + struct gpio_desc *reset_gpio;
1: + struct phy *phy;
1: };
1:
1: struct al_pcie_acpi {
1: - void *dbi_base;
1: + void *dbi_base;
1: };
1:
1: struct thunder_pem_pci {
1: - u32 ea_entry[3];
1: - void *pem_reg_base;
1: + u32 ea_entry[3];
1: + void *pem_reg_base;
1: };
1:
1: struct xgene_pcie_port {
1: - struct device_node *node;
1: - struct device *dev;
1: - struct clk *clk;
1: - void *csr_base;
1: - void *cfg_base;
1: - long unsigned int cfg_addr;
1: - bool link_up;
1: - u32 version;
1: + struct device_node *node;
1: + struct device *dev;
1: + struct clk *clk;
1: + void *csr_base;
1: + void *cfg_base;
1: + long unsigned int cfg_addr;
1: + bool link_up;
1: + u32 version;
1: };
1:
1: struct rio_device_id {
1: - __u16 did;
1: - __u16 vid;
1: - __u16 asm_did;
1: - __u16 asm_vid;
1: + __u16 did;
1: + __u16 vid;
1: + __u16 asm_did;
1: + __u16 asm_vid;
1: };
1:
1: typedef s32 dma_cookie_t;
1:
1: enum dma_status {
1: - DMA_COMPLETE = 0,
1: - DMA_IN_PROGRESS = 1,
1: - DMA_PAUSED = 2,
1: - DMA_ERROR = 3,
1: - DMA_OUT_OF_ORDER = 4,
1: + DMA_COMPLETE = 0,
1: + DMA_IN_PROGRESS = 1,
1: + DMA_PAUSED = 2,
1: + DMA_ERROR = 3,
1: + DMA_OUT_OF_ORDER = 4,
1: };
1:
1: enum dma_transaction_type {
1: - DMA_MEMCPY = 0,
1: - DMA_XOR = 1,
1: - DMA_PQ = 2,
1: - DMA_XOR_VAL = 3,
1: - DMA_PQ_VAL = 4,
1: - DMA_MEMSET = 5,
1: - DMA_MEMSET_SG = 6,
1: - DMA_INTERRUPT = 7,
1: - DMA_PRIVATE = 8,
1: - DMA_ASYNC_TX = 9,
1: - DMA_SLAVE = 10,
1: - DMA_CYCLIC = 11,
1: - DMA_INTERLEAVE = 12,
1: - DMA_COMPLETION_NO_ORDER = 13,
1: - DMA_REPEAT = 14,
1: - DMA_LOAD_EOT = 15,
1: - DMA_TX_TYPE_END = 16,
1: + DMA_MEMCPY = 0,
1: + DMA_XOR = 1,
1: + DMA_PQ = 2,
1: + DMA_XOR_VAL = 3,
1: + DMA_PQ_VAL = 4,
1: + DMA_MEMSET = 5,
1: + DMA_MEMSET_SG = 6,
1: + DMA_INTERRUPT = 7,
1: + DMA_PRIVATE = 8,
1: + DMA_ASYNC_TX = 9,
1: + DMA_SLAVE = 10,
1: + DMA_CYCLIC = 11,
1: + DMA_INTERLEAVE = 12,
1: + DMA_COMPLETION_NO_ORDER = 13,
1: + DMA_REPEAT = 14,
1: + DMA_LOAD_EOT = 15,
1: + DMA_TX_TYPE_END = 16,
1: };
1:
1: enum dma_transfer_direction {
1: - DMA_MEM_TO_MEM = 0,
1: - DMA_MEM_TO_DEV = 1,
1: - DMA_DEV_TO_MEM = 2,
1: - DMA_DEV_TO_DEV = 3,
1: - DMA_TRANS_NONE = 4,
1: + DMA_MEM_TO_MEM = 0,
1: + DMA_MEM_TO_DEV = 1,
1: + DMA_DEV_TO_MEM = 2,
1: + DMA_DEV_TO_DEV = 3,
1: + DMA_TRANS_NONE = 4,
1: };
1:
1: struct data_chunk {
1: - size_t size;
1: - size_t icg;
1: - size_t dst_icg;
1: - size_t src_icg;
1: + size_t size;
1: + size_t icg;
1: + size_t dst_icg;
1: + size_t src_icg;
1: };
1:
1: struct dma_interleaved_template {
1: - dma_addr_t src_start;
1: - dma_addr_t dst_start;
1: - enum dma_transfer_direction dir;
1: - bool src_inc;
1: - bool dst_inc;
1: - bool src_sgl;
1: - bool dst_sgl;
1: - size_t numf;
1: - size_t frame_size;
1: - struct data_chunk sgl[0];
1: + dma_addr_t src_start;
1: + dma_addr_t dst_start;
1: + enum dma_transfer_direction dir;
1: + bool src_inc;
1: + bool dst_inc;
1: + bool src_sgl;
1: + bool dst_sgl;
1: + size_t numf;
1: + size_t frame_size;
1: + struct data_chunk sgl[0];
1: };
1:
1: enum dma_ctrl_flags {
1: - DMA_PREP_INTERRUPT = 1,
1: - DMA_CTRL_ACK = 2,
1: - DMA_PREP_PQ_DISABLE_P = 4,
1: - DMA_PREP_PQ_DISABLE_Q = 8,
1: - DMA_PREP_CONTINUE = 16,
1: - DMA_PREP_FENCE = 32,
1: - DMA_CTRL_REUSE = 64,
1: - DMA_PREP_CMD = 128,
1: - DMA_PREP_REPEAT = 256,
1: - DMA_PREP_LOAD_EOT = 512,
1: + DMA_PREP_INTERRUPT = 1,
1: + DMA_CTRL_ACK = 2,
1: + DMA_PREP_PQ_DISABLE_P = 4,
1: + DMA_PREP_PQ_DISABLE_Q = 8,
1: + DMA_PREP_CONTINUE = 16,
1: + DMA_PREP_FENCE = 32,
1: + DMA_CTRL_REUSE = 64,
1: + DMA_PREP_CMD = 128,
1: + DMA_PREP_REPEAT = 256,
1: + DMA_PREP_LOAD_EOT = 512,
1: };
1:
1: enum sum_check_bits {
1: - SUM_CHECK_P = 0,
1: - SUM_CHECK_Q = 1,
1: + SUM_CHECK_P = 0,
1: + SUM_CHECK_Q = 1,
1: };
1:
1: enum sum_check_flags {
1: - SUM_CHECK_P_RESULT = 1,
1: - SUM_CHECK_Q_RESULT = 2,
1: + SUM_CHECK_P_RESULT = 1,
1: + SUM_CHECK_Q_RESULT = 2,
1: };
1:
1: typedef struct {
1: - long unsigned int bits[1];
1: + long unsigned int bits[1];
1: } dma_cap_mask_t;
1:
1: enum dma_desc_metadata_mode {
1: - DESC_METADATA_NONE = 0,
1: - DESC_METADATA_CLIENT = 1,
1: - DESC_METADATA_ENGINE = 2,
1: + DESC_METADATA_NONE = 0,
1: + DESC_METADATA_CLIENT = 1,
1: + DESC_METADATA_ENGINE = 2,
1: };
1:
1: struct dma_chan_percpu {
1: - long unsigned int memcpy_count;
1: - long unsigned int bytes_transferred;
1: + long unsigned int memcpy_count;
1: + long unsigned int bytes_transferred;
1: };
1:
1: struct dma_router {
1: - struct device *dev;
1: - void (*route_free)(struct device *, void *);
1: + struct device *dev;
1: + void (*route_free)(struct device *, void *);
1: };
1:
1: struct dma_device;
1: @@ -65917,21 +66858,21 @@ struct dma_device;
1: struct dma_chan_dev;
1:
1: struct dma_chan {
1: - struct dma_device *device;
1: - struct device *slave;
1: - dma_cookie_t cookie;
1: - dma_cookie_t completed_cookie;
1: - int chan_id;
1: - struct dma_chan_dev *dev;
1: - const char *name;
1: - char *dbg_client_name;
1: - struct list_head device_node;
1: - struct dma_chan_percpu *local;
1: - int client_count;
1: - int table_count;
1: - struct dma_router *router;
1: - void *route_data;
1: - void *private;
1: + struct dma_device *device;
1: + struct device *slave;
1: + dma_cookie_t cookie;
1: + dma_cookie_t completed_cookie;
1: + int chan_id;
1: + struct dma_chan_dev *dev;
1: + const char *name;
1: + char *dbg_client_name;
1: + struct list_head device_node;
1: + struct dma_chan_percpu *local;
1: + int client_count;
1: + int table_count;
1: + struct dma_router *router;
1: + void *route_data;
1: + void *private;
1: };
1:
1: typedef bool (*dma_filter_fn)(struct dma_chan *, void *);
1: @@ -65939,25 +66880,25 @@ typedef bool (*dma_filter_fn)(struct dma_chan *, void *);
1: struct dma_slave_map;
1:
1: struct dma_filter {
1: - dma_filter_fn fn;
1: - int mapcnt;
1: - const struct dma_slave_map *map;
1: + dma_filter_fn fn;
1: + int mapcnt;
1: + const struct dma_slave_map *map;
1: };
1:
1: enum dmaengine_alignment {
1: - DMAENGINE_ALIGN_1_BYTE = 0,
1: - DMAENGINE_ALIGN_2_BYTES = 1,
1: - DMAENGINE_ALIGN_4_BYTES = 2,
1: - DMAENGINE_ALIGN_8_BYTES = 3,
1: - DMAENGINE_ALIGN_16_BYTES = 4,
1: - DMAENGINE_ALIGN_32_BYTES = 5,
1: - DMAENGINE_ALIGN_64_BYTES = 6,
1: + DMAENGINE_ALIGN_1_BYTE = 0,
1: + DMAENGINE_ALIGN_2_BYTES = 1,
1: + DMAENGINE_ALIGN_4_BYTES = 2,
1: + DMAENGINE_ALIGN_8_BYTES = 3,
1: + DMAENGINE_ALIGN_16_BYTES = 4,
1: + DMAENGINE_ALIGN_32_BYTES = 5,
1: + DMAENGINE_ALIGN_64_BYTES = 6,
1: };
1:
1: enum dma_residue_granularity {
1: - DMA_RESIDUE_GRANULARITY_DESCRIPTOR = 0,
1: - DMA_RESIDUE_GRANULARITY_SEGMENT = 1,
1: - DMA_RESIDUE_GRANULARITY_BURST = 2,
1: + DMA_RESIDUE_GRANULARITY_DESCRIPTOR = 0,
1: + DMA_RESIDUE_GRANULARITY_SEGMENT = 1,
1: + DMA_RESIDUE_GRANULARITY_BURST = 2,
1: };
1:
1: struct dma_async_tx_descriptor;
1: @@ -65969,168 +66910,195 @@ struct dma_slave_config;
1: struct dma_tx_state;
1:
1: struct dma_device {
1: - struct kref ref;
1: - unsigned int chancnt;
1: - unsigned int privatecnt;
1: - struct list_head channels;
1: - struct list_head global_node;
1: - struct dma_filter filter;
1: - dma_cap_mask_t cap_mask;
1: - enum dma_desc_metadata_mode desc_metadata_modes;
1: - short unsigned int max_xor;
1: - short unsigned int max_pq;
1: - enum dmaengine_alignment copy_align;
1: - enum dmaengine_alignment xor_align;
1: - enum dmaengine_alignment pq_align;
1: - enum dmaengine_alignment fill_align;
1: - int dev_id;
1: - struct device *dev;
1: - struct module *owner;
1: - struct ida chan_ida;
1: - struct mutex chan_mutex;
1: - u32 src_addr_widths;
1: - u32 dst_addr_widths;
1: - u32 directions;
1: - u32 min_burst;
1: - u32 max_burst;
1: - u32 max_sg_burst;
1: - bool descriptor_reuse;
1: - enum dma_residue_granularity residue_granularity;
1: - int (*device_alloc_chan_resources)(struct dma_chan *);
1: - void (*device_free_chan_resources)(struct dma_chan *);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_memcpy)(struct dma_chan *, dma_addr_t, dma_addr_t, size_t, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_xor)(struct dma_chan *, dma_addr_t, dma_addr_t *, unsigned int, size_t, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_xor_val)(struct dma_chan *, dma_addr_t *, unsigned int, size_t, enum sum_check_flags *, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_pq)(struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int, const unsigned char *, size_t, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_pq_val)(struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int, const unsigned char *, size_t, enum sum_check_flags *, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_memset)(struct dma_chan *, dma_addr_t, int, size_t, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_memset_sg)(struct dma_chan *, struct scatterlist *, unsigned int, int, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_interrupt)(struct dma_chan *, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_slave_sg)(struct dma_chan *, struct scatterlist *, unsigned int, enum dma_transfer_direction, long unsigned int, void *);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_cyclic)(struct dma_chan *, dma_addr_t, size_t, size_t, enum dma_transfer_direction, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_interleaved_dma)(struct dma_chan *, struct dma_interleaved_template *, long unsigned int);
1: - struct dma_async_tx_descriptor * (*device_prep_dma_imm_data)(struct dma_chan *, dma_addr_t, u64, long unsigned int);
1: - void (*device_caps)(struct dma_chan *, struct dma_slave_caps *);
1: - int (*device_config)(struct dma_chan *, struct dma_slave_config *);
1: - int (*device_pause)(struct dma_chan *);
1: - int (*device_resume)(struct dma_chan *);
1: - int (*device_terminate_all)(struct dma_chan *);
1: - void (*device_synchronize)(struct dma_chan *);
1: - enum dma_status (*device_tx_status)(struct dma_chan *, dma_cookie_t, struct dma_tx_state *);
1: - void (*device_issue_pending)(struct dma_chan *);
1: - void (*device_release)(struct dma_device *);
1: - void (*dbg_summary_show)(struct seq_file *, struct dma_device *);
1: - struct dentry *dbg_dev_root;
1: + struct kref ref;
1: + unsigned int chancnt;
1: + unsigned int privatecnt;
1: + struct list_head channels;
1: + struct list_head global_node;
1: + struct dma_filter filter;
1: + dma_cap_mask_t cap_mask;
1: + enum dma_desc_metadata_mode desc_metadata_modes;
1: + short unsigned int max_xor;
1: + short unsigned int max_pq;
1: + enum dmaengine_alignment copy_align;
1: + enum dmaengine_alignment xor_align;
1: + enum dmaengine_alignment pq_align;
1: + enum dmaengine_alignment fill_align;
1: + int dev_id;
1: + struct device *dev;
1: + struct module *owner;
1: + struct ida chan_ida;
1: + struct mutex chan_mutex;
1: + u32 src_addr_widths;
1: + u32 dst_addr_widths;
1: + u32 directions;
1: + u32 min_burst;
1: + u32 max_burst;
1: + u32 max_sg_burst;
1: + bool descriptor_reuse;
1: + enum dma_residue_granularity residue_granularity;
1: + int (*device_alloc_chan_resources)(struct dma_chan *);
1: + void (*device_free_chan_resources)(struct dma_chan *);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_memcpy)(struct dma_chan *,
1: + dma_addr_t,
1: + dma_addr_t, size_t,
1: + long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_xor)(struct dma_chan *,
1: + dma_addr_t,
1: + dma_addr_t *,
1: + unsigned int, size_t,
1: + long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_xor_val)(
1: + struct dma_chan *, dma_addr_t *, unsigned int, size_t,
1: + enum sum_check_flags *, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_pq)(
1: + struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int,
1: + const unsigned char *, size_t, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_pq_val)(
1: + struct dma_chan *, dma_addr_t *, dma_addr_t *, unsigned int,
1: + const unsigned char *, size_t, enum sum_check_flags *, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_memset)(struct dma_chan *,
1: + dma_addr_t, int,
1: + size_t,
1: + long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_memset_sg)(
1: + struct dma_chan *, struct scatterlist *, unsigned int, int,
1: + long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_interrupt)(
1: + struct dma_chan *, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_slave_sg)(
1: + struct dma_chan *, struct scatterlist *, unsigned int,
1: + enum dma_transfer_direction, long unsigned int, void *);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_cyclic)(
1: + struct dma_chan *, dma_addr_t, size_t, size_t,
1: + enum dma_transfer_direction, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_interleaved_dma)(
1: + struct dma_chan *, struct dma_interleaved_template *, long unsigned int);
1: + struct dma_async_tx_descriptor *(*device_prep_dma_imm_data)(
1: + struct dma_chan *, dma_addr_t, u64, long unsigned int);
1: + void (*device_caps)(struct dma_chan *, struct dma_slave_caps *);
1: + int (*device_config)(struct dma_chan *, struct dma_slave_config *);
1: + int (*device_pause)(struct dma_chan *);
1: + int (*device_resume)(struct dma_chan *);
1: + int (*device_terminate_all)(struct dma_chan *);
1: + void (*device_synchronize)(struct dma_chan *);
1: + enum dma_status (*device_tx_status)(struct dma_chan *, dma_cookie_t,
1: + struct dma_tx_state *);
1: + void (*device_issue_pending)(struct dma_chan *);
1: + void (*device_release)(struct dma_device *);
1: + void (*dbg_summary_show)(struct seq_file *, struct dma_device *);
1: + struct dentry *dbg_dev_root;
1: };
1:
1: struct dma_chan_dev {
1: - struct dma_chan *chan;
1: - struct device device;
1: - int dev_id;
1: + struct dma_chan *chan;
1: + struct device device;
1: + int dev_id;
1: };
1:
1: enum dma_slave_buswidth {
1: - DMA_SLAVE_BUSWIDTH_UNDEFINED = 0,
1: - DMA_SLAVE_BUSWIDTH_1_BYTE = 1,
1: - DMA_SLAVE_BUSWIDTH_2_BYTES = 2,
1: - DMA_SLAVE_BUSWIDTH_3_BYTES = 3,
1: - DMA_SLAVE_BUSWIDTH_4_BYTES = 4,
1: - DMA_SLAVE_BUSWIDTH_8_BYTES = 8,
1: - DMA_SLAVE_BUSWIDTH_16_BYTES = 16,
1: - DMA_SLAVE_BUSWIDTH_32_BYTES = 32,
1: - DMA_SLAVE_BUSWIDTH_64_BYTES = 64,
1: + DMA_SLAVE_BUSWIDTH_UNDEFINED = 0,
1: + DMA_SLAVE_BUSWIDTH_1_BYTE = 1,
1: + DMA_SLAVE_BUSWIDTH_2_BYTES = 2,
1: + DMA_SLAVE_BUSWIDTH_3_BYTES = 3,
1: + DMA_SLAVE_BUSWIDTH_4_BYTES = 4,
1: + DMA_SLAVE_BUSWIDTH_8_BYTES = 8,
1: + DMA_SLAVE_BUSWIDTH_16_BYTES = 16,
1: + DMA_SLAVE_BUSWIDTH_32_BYTES = 32,
1: + DMA_SLAVE_BUSWIDTH_64_BYTES = 64,
1: };
1:
1: struct dma_slave_config {
1: - enum dma_transfer_direction direction;
1: - phys_addr_t src_addr;
1: - phys_addr_t dst_addr;
1: - enum dma_slave_buswidth src_addr_width;
1: - enum dma_slave_buswidth dst_addr_width;
1: - u32 src_maxburst;
1: - u32 dst_maxburst;
1: - u32 src_port_window_size;
1: - u32 dst_port_window_size;
1: - bool device_fc;
1: - unsigned int slave_id;
1: + enum dma_transfer_direction direction;
1: + phys_addr_t src_addr;
1: + phys_addr_t dst_addr;
1: + enum dma_slave_buswidth src_addr_width;
1: + enum dma_slave_buswidth dst_addr_width;
1: + u32 src_maxburst;
1: + u32 dst_maxburst;
1: + u32 src_port_window_size;
1: + u32 dst_port_window_size;
1: + bool device_fc;
1: + unsigned int slave_id;
1: };
1:
1: struct dma_slave_caps {
1: - u32 src_addr_widths;
1: - u32 dst_addr_widths;
1: - u32 directions;
1: - u32 min_burst;
1: - u32 max_burst;
1: - u32 max_sg_burst;
1: - bool cmd_pause;
1: - bool cmd_resume;
1: - bool cmd_terminate;
1: - enum dma_residue_granularity residue_granularity;
1: - bool descriptor_reuse;
1: + u32 src_addr_widths;
1: + u32 dst_addr_widths;
1: + u32 directions;
1: + u32 min_burst;
1: + u32 max_burst;
1: + u32 max_sg_burst;
1: + bool cmd_pause;
1: + bool cmd_resume;
1: + bool cmd_terminate;
1: + enum dma_residue_granularity residue_granularity;
1: + bool descriptor_reuse;
1: };
1:
1: typedef void (*dma_async_tx_callback)(void *);
1:
1: enum dmaengine_tx_result {
1: - DMA_TRANS_NOERROR = 0,
1: - DMA_TRANS_READ_FAILED = 1,
1: - DMA_TRANS_WRITE_FAILED = 2,
1: - DMA_TRANS_ABORTED = 3,
1: + DMA_TRANS_NOERROR = 0,
1: + DMA_TRANS_READ_FAILED = 1,
1: + DMA_TRANS_WRITE_FAILED = 2,
1: + DMA_TRANS_ABORTED = 3,
1: };
1:
1: struct dmaengine_result {
1: - enum dmaengine_tx_result result;
1: - u32 residue;
1: + enum dmaengine_tx_result result;
1: + u32 residue;
1: };
1:
1: -typedef void (*dma_async_tx_callback_result)(void *, const struct dmaengine_result *);
1: +typedef void (*dma_async_tx_callback_result)(void *,
1: + const struct dmaengine_result *);
1:
1: struct dmaengine_unmap_data {
1: - u16 map_cnt;
1: - u8 to_cnt;
1: - u8 from_cnt;
1: - u8 bidi_cnt;
1: - struct device *dev;
1: - struct kref kref;
1: - size_t len;
1: - dma_addr_t addr[0];
1: + u16 map_cnt;
1: + u8 to_cnt;
1: + u8 from_cnt;
1: + u8 bidi_cnt;
1: + struct device *dev;
1: + struct kref kref;
1: + size_t len;
1: + dma_addr_t addr[0];
1: };
1:
1: struct dma_descriptor_metadata_ops {
1: - int (*attach)(struct dma_async_tx_descriptor *, void *, size_t);
1: - void * (*get_ptr)(struct dma_async_tx_descriptor *, size_t *, size_t *);
1: - int (*set_len)(struct dma_async_tx_descriptor *, size_t);
1: + int (*attach)(struct dma_async_tx_descriptor *, void *, size_t);
1: + void *(*get_ptr)(struct dma_async_tx_descriptor *, size_t *, size_t *);
1: + int (*set_len)(struct dma_async_tx_descriptor *, size_t);
1: };
1:
1: struct dma_async_tx_descriptor {
1: - dma_cookie_t cookie;
1: - enum dma_ctrl_flags flags;
1: - dma_addr_t phys;
1: - struct dma_chan *chan;
1: - dma_cookie_t (*tx_submit)(struct dma_async_tx_descriptor *);
1: - int (*desc_free)(struct dma_async_tx_descriptor *);
1: - dma_async_tx_callback callback;
1: - dma_async_tx_callback_result callback_result;
1: - void *callback_param;
1: - struct dmaengine_unmap_data *unmap;
1: - enum dma_desc_metadata_mode desc_metadata_mode;
1: - struct dma_descriptor_metadata_ops *metadata_ops;
1: - struct dma_async_tx_descriptor *next;
1: - struct dma_async_tx_descriptor *parent;
1: - spinlock_t lock;
1: + dma_cookie_t cookie;
1: + enum dma_ctrl_flags flags;
1: + dma_addr_t phys;
1: + struct dma_chan *chan;
1: + dma_cookie_t (*tx_submit)(struct dma_async_tx_descriptor *);
1: + int (*desc_free)(struct dma_async_tx_descriptor *);
1: + dma_async_tx_callback callback;
1: + dma_async_tx_callback_result callback_result;
1: + void *callback_param;
1: + struct dmaengine_unmap_data *unmap;
1: + enum dma_desc_metadata_mode desc_metadata_mode;
1: + struct dma_descriptor_metadata_ops *metadata_ops;
1: + struct dma_async_tx_descriptor *next;
1: + struct dma_async_tx_descriptor *parent;
1: + spinlock_t lock;
1: };
1:
1: struct dma_tx_state {
1: - dma_cookie_t last;
1: - dma_cookie_t used;
1: - u32 residue;
1: - u32 in_flight_bytes;
1: + dma_cookie_t last;
1: + dma_cookie_t used;
1: + u32 residue;
1: + u32 in_flight_bytes;
1: };
1:
1: struct dma_slave_map {
1: - const char *devname;
1: - const char *slave;
1: - void *param;
1: + const char *devname;
1: + const char *slave;
1: + void *param;
1: };
1:
1: struct rio_switch_ops;
1: @@ -66138,25 +67106,25 @@ struct rio_switch_ops;
1: struct rio_dev;
1:
1: struct rio_switch {
1: - struct list_head node;
1: - u8 *route_table;
1: - u32 port_ok;
1: - struct rio_switch_ops *ops;
1: - spinlock_t lock;
1: - struct rio_dev *nextdev[0];
1: + struct list_head node;
1: + u8 *route_table;
1: + u32 port_ok;
1: + struct rio_switch_ops *ops;
1: + spinlock_t lock;
1: + struct rio_dev *nextdev[0];
1: };
1:
1: struct rio_mport;
1:
1: struct rio_switch_ops {
1: - struct module *owner;
1: - int (*add_entry)(struct rio_mport *, u16, u8, u16, u16, u8);
1: - int (*get_entry)(struct rio_mport *, u16, u8, u16, u16, u8 *);
1: - int (*clr_table)(struct rio_mport *, u16, u8, u16);
1: - int (*set_domain)(struct rio_mport *, u16, u8, u8);
1: - int (*get_domain)(struct rio_mport *, u16, u8, u8 *);
1: - int (*em_init)(struct rio_dev *);
1: - int (*em_handle)(struct rio_dev *, u8);
1: + struct module *owner;
1: + int (*add_entry)(struct rio_mport *, u16, u8, u16, u16, u8);
1: + int (*get_entry)(struct rio_mport *, u16, u8, u16, u16, u8 *);
1: + int (*clr_table)(struct rio_mport *, u16, u8, u16);
1: + int (*set_domain)(struct rio_mport *, u16, u8, u8);
1: + int (*get_domain)(struct rio_mport *, u16, u8, u8 *);
1: + int (*em_init)(struct rio_dev *);
1: + int (*em_handle)(struct rio_dev *, u8);
1: };
1:
1: struct rio_net;
1: @@ -66166,40 +67134,40 @@ struct rio_driver;
1: union rio_pw_msg;
1:
1: struct rio_dev {
1: - struct list_head global_list;
1: - struct list_head net_list;
1: - struct rio_net *net;
1: - bool do_enum;
1: - u16 did;
1: - u16 vid;
1: - u32 device_rev;
1: - u16 asm_did;
1: - u16 asm_vid;
1: - u16 asm_rev;
1: - u16 efptr;
1: - u32 pef;
1: - u32 swpinfo;
1: - u32 src_ops;
1: - u32 dst_ops;
1: - u32 comp_tag;
1: - u32 phys_efptr;
1: - u32 phys_rmap;
1: - u32 em_efptr;
1: - u64 dma_mask;
1: - struct rio_driver *driver;
1: - struct device dev;
1: - struct resource riores[16];
1: - int (*pwcback)(struct rio_dev *, union rio_pw_msg *, int);
1: - u16 destid;
1: - u8 hopcount;
1: - struct rio_dev *prev;
1: - atomic_t state;
1: - struct rio_switch rswitch[0];
1: + struct list_head global_list;
1: + struct list_head net_list;
1: + struct rio_net *net;
1: + bool do_enum;
1: + u16 did;
1: + u16 vid;
1: + u32 device_rev;
1: + u16 asm_did;
1: + u16 asm_vid;
1: + u16 asm_rev;
1: + u16 efptr;
1: + u32 pef;
1: + u32 swpinfo;
1: + u32 src_ops;
1: + u32 dst_ops;
1: + u32 comp_tag;
1: + u32 phys_efptr;
1: + u32 phys_rmap;
1: + u32 em_efptr;
1: + u64 dma_mask;
1: + struct rio_driver *driver;
1: + struct device dev;
1: + struct resource riores[16];
1: + int (*pwcback)(struct rio_dev *, union rio_pw_msg *, int);
1: + u16 destid;
1: + u8 hopcount;
1: + struct rio_dev *prev;
1: + atomic_t state;
1: + struct rio_switch rswitch[0];
1: };
1:
1: struct rio_msg {
1: - struct resource *res;
1: - void (*mcback)(struct rio_mport *, void *, int, int);
1: + struct resource *res;
1: + void (*mcback)(struct rio_mport *, void *, int, int);
1: };
1:
1: struct rio_ops;
1: @@ -66207,740 +67175,741 @@ struct rio_ops;
1: struct rio_scan;
1:
1: struct rio_mport {
1: - struct list_head dbells;
1: - struct list_head pwrites;
1: - struct list_head node;
1: - struct list_head nnode;
1: - struct rio_net *net;
1: - struct mutex lock;
1: - struct resource iores;
1: - struct resource riores[16];
1: - struct rio_msg inb_msg[4];
1: - struct rio_msg outb_msg[4];
1: - int host_deviceid;
1: - struct rio_ops *ops;
1: - unsigned char id;
1: - unsigned char index;
1: - unsigned int sys_size;
1: - u32 phys_efptr;
1: - u32 phys_rmap;
1: - unsigned char name[40];
1: - struct device dev;
1: - void *priv;
1: - struct dma_device dma;
1: - struct rio_scan *nscan;
1: - atomic_t state;
1: - unsigned int pwe_refcnt;
1: + struct list_head dbells;
1: + struct list_head pwrites;
1: + struct list_head node;
1: + struct list_head nnode;
1: + struct rio_net *net;
1: + struct mutex lock;
1: + struct resource iores;
1: + struct resource riores[16];
1: + struct rio_msg inb_msg[4];
1: + struct rio_msg outb_msg[4];
1: + int host_deviceid;
1: + struct rio_ops *ops;
1: + unsigned char id;
1: + unsigned char index;
1: + unsigned int sys_size;
1: + u32 phys_efptr;
1: + u32 phys_rmap;
1: + unsigned char name[40];
1: + struct device dev;
1: + void *priv;
1: + struct dma_device dma;
1: + struct rio_scan *nscan;
1: + atomic_t state;
1: + unsigned int pwe_refcnt;
1: };
1:
1: enum rio_device_state {
1: - RIO_DEVICE_INITIALIZING = 0,
1: - RIO_DEVICE_RUNNING = 1,
1: - RIO_DEVICE_GONE = 2,
1: - RIO_DEVICE_SHUTDOWN = 3,
1: + RIO_DEVICE_INITIALIZING = 0,
1: + RIO_DEVICE_RUNNING = 1,
1: + RIO_DEVICE_GONE = 2,
1: + RIO_DEVICE_SHUTDOWN = 3,
1: };
1:
1: struct rio_net {
1: - struct list_head node;
1: - struct list_head devices;
1: - struct list_head switches;
1: - struct list_head mports;
1: - struct rio_mport *hport;
1: - unsigned char id;
1: - struct device dev;
1: - void *enum_data;
1: - void (*release)(struct rio_net *);
1: + struct list_head node;
1: + struct list_head devices;
1: + struct list_head switches;
1: + struct list_head mports;
1: + struct rio_mport *hport;
1: + unsigned char id;
1: + struct device dev;
1: + void *enum_data;
1: + void (*release)(struct rio_net *);
1: };
1:
1: struct rio_driver {
1: - struct list_head node;
1: - char *name;
1: - const struct rio_device_id *id_table;
1: - int (*probe)(struct rio_dev *, const struct rio_device_id *);
1: - void (*remove)(struct rio_dev *);
1: - void (*shutdown)(struct rio_dev *);
1: - int (*suspend)(struct rio_dev *, u32);
1: - int (*resume)(struct rio_dev *);
1: - int (*enable_wake)(struct rio_dev *, u32, int);
1: - struct device_driver driver;
1: + struct list_head node;
1: + char *name;
1: + const struct rio_device_id *id_table;
1: + int (*probe)(struct rio_dev *, const struct rio_device_id *);
1: + void (*remove)(struct rio_dev *);
1: + void (*shutdown)(struct rio_dev *);
1: + int (*suspend)(struct rio_dev *, u32);
1: + int (*resume)(struct rio_dev *);
1: + int (*enable_wake)(struct rio_dev *, u32, int);
1: + struct device_driver driver;
1: };
1:
1: union rio_pw_msg {
1: - struct {
1: - u32 comptag;
1: - u32 errdetect;
1: - u32 is_port;
1: - u32 ltlerrdet;
1: - u32 padding[12];
1: - } em;
1: - u32 raw[16];
1: + struct {
1: + u32 comptag;
1: + u32 errdetect;
1: + u32 is_port;
1: + u32 ltlerrdet;
1: + u32 padding[12];
1: + } em;
1: + u32 raw[16];
1: };
1:
1: struct rio_dbell {
1: - struct list_head node;
1: - struct resource *res;
1: - void (*dinb)(struct rio_mport *, void *, u16, u16, u16);
1: - void *dev_id;
1: + struct list_head node;
1: + struct resource *res;
1: + void (*dinb)(struct rio_mport *, void *, u16, u16, u16);
1: + void *dev_id;
1: };
1:
1: struct rio_mport_attr;
1:
1: struct rio_ops {
1: - int (*lcread)(struct rio_mport *, int, u32, int, u32 *);
1: - int (*lcwrite)(struct rio_mport *, int, u32, int, u32);
1: - int (*cread)(struct rio_mport *, int, u16, u8, u32, int, u32 *);
1: - int (*cwrite)(struct rio_mport *, int, u16, u8, u32, int, u32);
1: - int (*dsend)(struct rio_mport *, int, u16, u16);
1: - int (*pwenable)(struct rio_mport *, int);
1: - int (*open_outb_mbox)(struct rio_mport *, void *, int, int);
1: - void (*close_outb_mbox)(struct rio_mport *, int);
1: - int (*open_inb_mbox)(struct rio_mport *, void *, int, int);
1: - void (*close_inb_mbox)(struct rio_mport *, int);
1: - int (*add_outb_message)(struct rio_mport *, struct rio_dev *, int, void *, size_t);
1: - int (*add_inb_buffer)(struct rio_mport *, int, void *);
1: - void * (*get_inb_message)(struct rio_mport *, int);
1: - int (*map_inb)(struct rio_mport *, dma_addr_t, u64, u64, u32);
1: - void (*unmap_inb)(struct rio_mport *, dma_addr_t);
1: - int (*query_mport)(struct rio_mport *, struct rio_mport_attr *);
1: - int (*map_outb)(struct rio_mport *, u16, u64, u32, u32, dma_addr_t *);
1: - void (*unmap_outb)(struct rio_mport *, u16, u64);
1: + int (*lcread)(struct rio_mport *, int, u32, int, u32 *);
1: + int (*lcwrite)(struct rio_mport *, int, u32, int, u32);
1: + int (*cread)(struct rio_mport *, int, u16, u8, u32, int, u32 *);
1: + int (*cwrite)(struct rio_mport *, int, u16, u8, u32, int, u32);
1: + int (*dsend)(struct rio_mport *, int, u16, u16);
1: + int (*pwenable)(struct rio_mport *, int);
1: + int (*open_outb_mbox)(struct rio_mport *, void *, int, int);
1: + void (*close_outb_mbox)(struct rio_mport *, int);
1: + int (*open_inb_mbox)(struct rio_mport *, void *, int, int);
1: + void (*close_inb_mbox)(struct rio_mport *, int);
1: + int (*add_outb_message)(struct rio_mport *, struct rio_dev *, int, void *,
1: + size_t);
1: + int (*add_inb_buffer)(struct rio_mport *, int, void *);
1: + void *(*get_inb_message)(struct rio_mport *, int);
1: + int (*map_inb)(struct rio_mport *, dma_addr_t, u64, u64, u32);
1: + void (*unmap_inb)(struct rio_mport *, dma_addr_t);
1: + int (*query_mport)(struct rio_mport *, struct rio_mport_attr *);
1: + int (*map_outb)(struct rio_mport *, u16, u64, u32, u32, dma_addr_t *);
1: + void (*unmap_outb)(struct rio_mport *, u16, u64);
1: };
1:
1: struct rio_scan {
1: - struct module *owner;
1: - int (*enumerate)(struct rio_mport *, u32);
1: - int (*discover)(struct rio_mport *, u32);
1: + struct module *owner;
1: + int (*enumerate)(struct rio_mport *, u32);
1: + int (*discover)(struct rio_mport *, u32);
1: };
1:
1: struct rio_mport_attr {
1: - int flags;
1: - int link_speed;
1: - int link_width;
1: - int dma_max_sge;
1: - int dma_max_size;
1: - int dma_align;
1: + int flags;
1: + int link_speed;
1: + int link_width;
1: + int dma_max_sge;
1: + int dma_max_size;
1: + int dma_align;
1: };
1:
1: enum rio_write_type {
1: - RDW_DEFAULT = 0,
1: - RDW_ALL_NWRITE = 1,
1: - RDW_ALL_NWRITE_R = 2,
1: - RDW_LAST_NWRITE_R = 3,
1: + RDW_DEFAULT = 0,
1: + RDW_ALL_NWRITE = 1,
1: + RDW_ALL_NWRITE_R = 2,
1: + RDW_LAST_NWRITE_R = 3,
1: };
1:
1: struct rio_dma_ext {
1: - u16 destid;
1: - u64 rio_addr;
1: - u8 rio_addr_u;
1: - enum rio_write_type wr_type;
1: + u16 destid;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum rio_write_type wr_type;
1: };
1:
1: struct rio_dma_data {
1: - struct scatterlist *sg;
1: - unsigned int sg_len;
1: - u64 rio_addr;
1: - u8 rio_addr_u;
1: - enum rio_write_type wr_type;
1: + struct scatterlist *sg;
1: + unsigned int sg_len;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum rio_write_type wr_type;
1: };
1:
1: struct rio_scan_node {
1: - int mport_id;
1: - struct list_head node;
1: - struct rio_scan *ops;
1: + int mport_id;
1: + struct list_head node;
1: + struct rio_scan *ops;
1: };
1:
1: struct rio_pwrite {
1: - struct list_head node;
1: - int (*pwcback)(struct rio_mport *, void *, union rio_pw_msg *, int);
1: - void *context;
1: + struct list_head node;
1: + int (*pwcback)(struct rio_mport *, void *, union rio_pw_msg *, int);
1: + void *context;
1: };
1:
1: struct rio_disc_work {
1: - struct work_struct work;
1: - struct rio_mport *mport;
1: + struct work_struct work;
1: + struct rio_mport *mport;
1: };
1:
1: enum rio_link_speed {
1: - RIO_LINK_DOWN = 0,
1: - RIO_LINK_125 = 1,
1: - RIO_LINK_250 = 2,
1: - RIO_LINK_312 = 3,
1: - RIO_LINK_500 = 4,
1: - RIO_LINK_625 = 5,
1: + RIO_LINK_DOWN = 0,
1: + RIO_LINK_125 = 1,
1: + RIO_LINK_250 = 2,
1: + RIO_LINK_312 = 3,
1: + RIO_LINK_500 = 4,
1: + RIO_LINK_625 = 5,
1: };
1:
1: enum rio_mport_flags {
1: - RIO_MPORT_DMA = 1,
1: - RIO_MPORT_DMA_SG = 2,
1: - RIO_MPORT_IBSG = 4,
1: + RIO_MPORT_DMA = 1,
1: + RIO_MPORT_DMA_SG = 2,
1: + RIO_MPORT_IBSG = 4,
1: };
1:
1: struct kfifo {
1: - union {
1: - struct __kfifo kfifo;
1: - unsigned char *type;
1: - const unsigned char *const_type;
1: - char (*rectype)[0];
1: - void *ptr;
1: - const void *ptr_const;
1: - };
1: - unsigned char buf[0];
1: -};
1: -
1: -enum {
1: - DBG_NONE = 0,
1: - DBG_INIT = 1,
1: - DBG_EXIT = 2,
1: - DBG_MPORT = 4,
1: - DBG_MAINT = 8,
1: - DBG_DMA = 16,
1: - DBG_DMAV = 32,
1: - DBG_IBW = 64,
1: - DBG_EVENT = 128,
1: - DBG_OBW = 256,
1: - DBG_DBELL = 512,
1: - DBG_OMSG = 1024,
1: - DBG_IMSG = 2048,
1: - DBG_ALL = 4294967295,
1: + union {
1: + struct __kfifo kfifo;
1: + unsigned char *type;
1: + const unsigned char *const_type;
1: + char (*rectype)[0];
1: + void *ptr;
1: + const void *ptr_const;
1: + };
1: + unsigned char buf[0];
1: +};
1: +
1: +enum {
1: + DBG_NONE = 0,
1: + DBG_INIT = 1,
1: + DBG_EXIT = 2,
1: + DBG_MPORT = 4,
1: + DBG_MAINT = 8,
1: + DBG_DMA = 16,
1: + DBG_DMAV = 32,
1: + DBG_IBW = 64,
1: + DBG_EVENT = 128,
1: + DBG_OBW = 256,
1: + DBG_DBELL = 512,
1: + DBG_OMSG = 1024,
1: + DBG_IMSG = 2048,
1: + DBG_ALL = 4294967295,
1: };
1:
1: struct tsi721_dma_desc {
1: - __le32 type_id;
1: - __le32 bcount;
1: - union {
1: - __le32 raddr_lo;
1: - __le32 next_lo;
1: - };
1: - union {
1: - __le32 raddr_hi;
1: - __le32 next_hi;
1: - };
1: - union {
1: - struct {
1: - __le32 bufptr_lo;
1: - __le32 bufptr_hi;
1: - __le32 s_dist;
1: - __le32 s_size;
1: - } t1;
1: - __le32 data[4];
1: - u32 reserved[4];
1: - };
1: + __le32 type_id;
1: + __le32 bcount;
1: + union {
1: + __le32 raddr_lo;
1: + __le32 next_lo;
1: + };
1: + union {
1: + __le32 raddr_hi;
1: + __le32 next_hi;
1: + };
1: + union {
1: + struct {
1: + __le32 bufptr_lo;
1: + __le32 bufptr_hi;
1: + __le32 s_dist;
1: + __le32 s_size;
1: + } t1;
1: + __le32 data[4];
1: + u32 reserved[4];
1: + };
1: };
1:
1: struct tsi721_imsg_desc {
1: - __le32 type_id;
1: - __le32 msg_info;
1: - __le32 bufptr_lo;
1: - __le32 bufptr_hi;
1: - u32 reserved[12];
1: + __le32 type_id;
1: + __le32 msg_info;
1: + __le32 bufptr_lo;
1: + __le32 bufptr_hi;
1: + u32 reserved[12];
1: };
1:
1: struct tsi721_omsg_desc {
1: - __le32 type_id;
1: - __le32 msg_info;
1: - union {
1: - __le32 bufptr_lo;
1: - __le32 next_lo;
1: - };
1: - union {
1: - __le32 bufptr_hi;
1: - __le32 next_hi;
1: - };
1: + __le32 type_id;
1: + __le32 msg_info;
1: + union {
1: + __le32 bufptr_lo;
1: + __le32 next_lo;
1: + };
1: + union {
1: + __le32 bufptr_hi;
1: + __le32 next_hi;
1: + };
1: };
1:
1: enum dma_dtype {
1: - DTYPE1 = 1,
1: - DTYPE2 = 2,
1: - DTYPE3 = 3,
1: - DTYPE4 = 4,
1: - DTYPE5 = 5,
1: - DTYPE6 = 6,
1: + DTYPE1 = 1,
1: + DTYPE2 = 2,
1: + DTYPE3 = 3,
1: + DTYPE4 = 4,
1: + DTYPE5 = 5,
1: + DTYPE6 = 6,
1: };
1:
1: enum dma_rtype {
1: - NREAD = 0,
1: - LAST_NWRITE_R = 1,
1: - ALL_NWRITE = 2,
1: - ALL_NWRITE_R = 3,
1: - MAINT_RD = 4,
1: - MAINT_WR = 5,
1: + NREAD = 0,
1: + LAST_NWRITE_R = 1,
1: + ALL_NWRITE = 2,
1: + ALL_NWRITE_R = 3,
1: + MAINT_RD = 4,
1: + MAINT_WR = 5,
1: };
1:
1: struct tsi721_tx_desc {
1: - struct dma_async_tx_descriptor txd;
1: - u16 destid;
1: - u64 rio_addr;
1: - u8 rio_addr_u;
1: - enum dma_rtype rtype;
1: - struct list_head desc_node;
1: - struct scatterlist *sg;
1: - unsigned int sg_len;
1: - enum dma_status status;
1: + struct dma_async_tx_descriptor txd;
1: + u16 destid;
1: + u64 rio_addr;
1: + u8 rio_addr_u;
1: + enum dma_rtype rtype;
1: + struct list_head desc_node;
1: + struct scatterlist *sg;
1: + unsigned int sg_len;
1: + enum dma_status status;
1: };
1:
1: struct tsi721_bdma_chan {
1: - int id;
1: - void *regs;
1: - int bd_num;
1: - void *bd_base;
1: - dma_addr_t bd_phys;
1: - void *sts_base;
1: - dma_addr_t sts_phys;
1: - int sts_size;
1: - u32 sts_rdptr;
1: - u32 wr_count;
1: - u32 wr_count_next;
1: - struct dma_chan dchan;
1: - struct tsi721_tx_desc *tx_desc;
1: - spinlock_t lock;
1: - struct tsi721_tx_desc *active_tx;
1: - struct list_head queue;
1: - struct list_head free_list;
1: - struct tasklet_struct tasklet;
1: - bool active;
1: + int id;
1: + void *regs;
1: + int bd_num;
1: + void *bd_base;
1: + dma_addr_t bd_phys;
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + int sts_size;
1: + u32 sts_rdptr;
1: + u32 wr_count;
1: + u32 wr_count_next;
1: + struct dma_chan dchan;
1: + struct tsi721_tx_desc *tx_desc;
1: + spinlock_t lock;
1: + struct tsi721_tx_desc *active_tx;
1: + struct list_head queue;
1: + struct list_head free_list;
1: + struct tasklet_struct tasklet;
1: + bool active;
1: };
1:
1: struct tsi721_bdma_maint {
1: - int ch_id;
1: - int bd_num;
1: - void *bd_base;
1: - dma_addr_t bd_phys;
1: - void *sts_base;
1: - dma_addr_t sts_phys;
1: - int sts_size;
1: + int ch_id;
1: + int bd_num;
1: + void *bd_base;
1: + dma_addr_t bd_phys;
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + int sts_size;
1: };
1:
1: struct tsi721_imsg_ring {
1: - u32 size;
1: - void *buf_base;
1: - dma_addr_t buf_phys;
1: - void *imfq_base;
1: - dma_addr_t imfq_phys;
1: - void *imd_base;
1: - dma_addr_t imd_phys;
1: - void *imq_base[512];
1: - u32 rx_slot;
1: - void *dev_id;
1: - u32 fq_wrptr;
1: - u32 desc_rdptr;
1: - spinlock_t lock;
1: + u32 size;
1: + void *buf_base;
1: + dma_addr_t buf_phys;
1: + void *imfq_base;
1: + dma_addr_t imfq_phys;
1: + void *imd_base;
1: + dma_addr_t imd_phys;
1: + void *imq_base[512];
1: + u32 rx_slot;
1: + void *dev_id;
1: + u32 fq_wrptr;
1: + u32 desc_rdptr;
1: + spinlock_t lock;
1: };
1:
1: struct tsi721_omsg_ring {
1: - u32 size;
1: - void *omd_base;
1: - dma_addr_t omd_phys;
1: - void *omq_base[512];
1: - dma_addr_t omq_phys[512];
1: - void *sts_base;
1: - dma_addr_t sts_phys;
1: - u32 sts_size;
1: - u32 sts_rdptr;
1: - u32 tx_slot;
1: - void *dev_id;
1: - u32 wr_count;
1: - spinlock_t lock;
1: + u32 size;
1: + void *omd_base;
1: + dma_addr_t omd_phys;
1: + void *omq_base[512];
1: + dma_addr_t omq_phys[512];
1: + void *sts_base;
1: + dma_addr_t sts_phys;
1: + u32 sts_size;
1: + u32 sts_rdptr;
1: + u32 tx_slot;
1: + void *dev_id;
1: + u32 wr_count;
1: + spinlock_t lock;
1: };
1:
1: enum tsi721_flags {
1: - TSI721_USING_MSI = 1,
1: - TSI721_USING_MSIX = 2,
1: - TSI721_IMSGID_SET = 4,
1: + TSI721_USING_MSI = 1,
1: + TSI721_USING_MSIX = 2,
1: + TSI721_IMSGID_SET = 4,
1: };
1:
1: enum tsi721_msix_vect {
1: - TSI721_VECT_IDB = 0,
1: - TSI721_VECT_PWRX = 1,
1: - TSI721_VECT_OMB0_DONE = 2,
1: - TSI721_VECT_OMB1_DONE = 3,
1: - TSI721_VECT_OMB2_DONE = 4,
1: - TSI721_VECT_OMB3_DONE = 5,
1: - TSI721_VECT_OMB0_INT = 6,
1: - TSI721_VECT_OMB1_INT = 7,
1: - TSI721_VECT_OMB2_INT = 8,
1: - TSI721_VECT_OMB3_INT = 9,
1: - TSI721_VECT_IMB0_RCV = 10,
1: - TSI721_VECT_IMB1_RCV = 11,
1: - TSI721_VECT_IMB2_RCV = 12,
1: - TSI721_VECT_IMB3_RCV = 13,
1: - TSI721_VECT_IMB0_INT = 14,
1: - TSI721_VECT_IMB1_INT = 15,
1: - TSI721_VECT_IMB2_INT = 16,
1: - TSI721_VECT_IMB3_INT = 17,
1: - TSI721_VECT_DMA0_DONE = 18,
1: - TSI721_VECT_DMA1_DONE = 19,
1: - TSI721_VECT_DMA2_DONE = 20,
1: - TSI721_VECT_DMA3_DONE = 21,
1: - TSI721_VECT_DMA4_DONE = 22,
1: - TSI721_VECT_DMA5_DONE = 23,
1: - TSI721_VECT_DMA6_DONE = 24,
1: - TSI721_VECT_DMA7_DONE = 25,
1: - TSI721_VECT_DMA0_INT = 26,
1: - TSI721_VECT_DMA1_INT = 27,
1: - TSI721_VECT_DMA2_INT = 28,
1: - TSI721_VECT_DMA3_INT = 29,
1: - TSI721_VECT_DMA4_INT = 30,
1: - TSI721_VECT_DMA5_INT = 31,
1: - TSI721_VECT_DMA6_INT = 32,
1: - TSI721_VECT_DMA7_INT = 33,
1: - TSI721_VECT_MAX = 34,
1: + TSI721_VECT_IDB = 0,
1: + TSI721_VECT_PWRX = 1,
1: + TSI721_VECT_OMB0_DONE = 2,
1: + TSI721_VECT_OMB1_DONE = 3,
1: + TSI721_VECT_OMB2_DONE = 4,
1: + TSI721_VECT_OMB3_DONE = 5,
1: + TSI721_VECT_OMB0_INT = 6,
1: + TSI721_VECT_OMB1_INT = 7,
1: + TSI721_VECT_OMB2_INT = 8,
1: + TSI721_VECT_OMB3_INT = 9,
1: + TSI721_VECT_IMB0_RCV = 10,
1: + TSI721_VECT_IMB1_RCV = 11,
1: + TSI721_VECT_IMB2_RCV = 12,
1: + TSI721_VECT_IMB3_RCV = 13,
1: + TSI721_VECT_IMB0_INT = 14,
1: + TSI721_VECT_IMB1_INT = 15,
1: + TSI721_VECT_IMB2_INT = 16,
1: + TSI721_VECT_IMB3_INT = 17,
1: + TSI721_VECT_DMA0_DONE = 18,
1: + TSI721_VECT_DMA1_DONE = 19,
1: + TSI721_VECT_DMA2_DONE = 20,
1: + TSI721_VECT_DMA3_DONE = 21,
1: + TSI721_VECT_DMA4_DONE = 22,
1: + TSI721_VECT_DMA5_DONE = 23,
1: + TSI721_VECT_DMA6_DONE = 24,
1: + TSI721_VECT_DMA7_DONE = 25,
1: + TSI721_VECT_DMA0_INT = 26,
1: + TSI721_VECT_DMA1_INT = 27,
1: + TSI721_VECT_DMA2_INT = 28,
1: + TSI721_VECT_DMA3_INT = 29,
1: + TSI721_VECT_DMA4_INT = 30,
1: + TSI721_VECT_DMA5_INT = 31,
1: + TSI721_VECT_DMA6_INT = 32,
1: + TSI721_VECT_DMA7_INT = 33,
1: + TSI721_VECT_MAX = 34,
1: };
1:
1: struct msix_irq {
1: - u16 vector;
1: - char irq_name[64];
1: + u16 vector;
1: + char irq_name[64];
1: };
1:
1: struct tsi721_ib_win_mapping {
1: - struct list_head node;
1: - dma_addr_t lstart;
1: + struct list_head node;
1: + dma_addr_t lstart;
1: };
1:
1: struct tsi721_ib_win {
1: - u64 rstart;
1: - u32 size;
1: - dma_addr_t lstart;
1: - bool active;
1: - bool xlat;
1: - struct list_head mappings;
1: + u64 rstart;
1: + u32 size;
1: + dma_addr_t lstart;
1: + bool active;
1: + bool xlat;
1: + struct list_head mappings;
1: };
1:
1: struct tsi721_obw_bar {
1: - u64 base;
1: - u64 size;
1: - u64 free;
1: + u64 base;
1: + u64 size;
1: + u64 free;
1: };
1:
1: struct tsi721_ob_win {
1: - u64 base;
1: - u32 size;
1: - u16 destid;
1: - u64 rstart;
1: - bool active;
1: - struct tsi721_obw_bar *pbar;
1: + u64 base;
1: + u32 size;
1: + u16 destid;
1: + u64 rstart;
1: + bool active;
1: + struct tsi721_obw_bar *pbar;
1: };
1:
1: struct tsi721_device {
1: - struct pci_dev *pdev;
1: - struct rio_mport mport;
1: - u32 flags;
1: - void *regs;
1: - struct msix_irq msix[34];
1: - void *odb_base;
1: - void *idb_base;
1: - dma_addr_t idb_dma;
1: - struct work_struct idb_work;
1: - u32 db_discard_count;
1: - struct work_struct pw_work;
1: - struct kfifo pw_fifo;
1: - spinlock_t pw_fifo_lock;
1: - u32 pw_discard_count;
1: - struct tsi721_bdma_maint mdma;
1: - struct tsi721_bdma_chan bdma[8];
1: - int imsg_init[8];
1: - struct tsi721_imsg_ring imsg_ring[8];
1: - int omsg_init[4];
1: - struct tsi721_omsg_ring omsg_ring[4];
1: - struct tsi721_ib_win ib_win[8];
1: - int ibwin_cnt;
1: - struct tsi721_obw_bar p2r_bar[2];
1: - struct tsi721_ob_win ob_win[8];
1: - int obwin_cnt;
1: + struct pci_dev *pdev;
1: + struct rio_mport mport;
1: + u32 flags;
1: + void *regs;
1: + struct msix_irq msix[34];
1: + void *odb_base;
1: + void *idb_base;
1: + dma_addr_t idb_dma;
1: + struct work_struct idb_work;
1: + u32 db_discard_count;
1: + struct work_struct pw_work;
1: + struct kfifo pw_fifo;
1: + spinlock_t pw_fifo_lock;
1: + u32 pw_discard_count;
1: + struct tsi721_bdma_maint mdma;
1: + struct tsi721_bdma_chan bdma[8];
1: + int imsg_init[8];
1: + struct tsi721_imsg_ring imsg_ring[8];
1: + int omsg_init[4];
1: + struct tsi721_omsg_ring omsg_ring[4];
1: + struct tsi721_ib_win ib_win[8];
1: + int ibwin_cnt;
1: + struct tsi721_obw_bar p2r_bar[2];
1: + struct tsi721_ob_win ob_win[8];
1: + int obwin_cnt;
1: };
1:
1: enum hdmi_infoframe_type {
1: - HDMI_INFOFRAME_TYPE_VENDOR = 129,
1: - HDMI_INFOFRAME_TYPE_AVI = 130,
1: - HDMI_INFOFRAME_TYPE_SPD = 131,
1: - HDMI_INFOFRAME_TYPE_AUDIO = 132,
1: - HDMI_INFOFRAME_TYPE_DRM = 135,
1: + HDMI_INFOFRAME_TYPE_VENDOR = 129,
1: + HDMI_INFOFRAME_TYPE_AVI = 130,
1: + HDMI_INFOFRAME_TYPE_SPD = 131,
1: + HDMI_INFOFRAME_TYPE_AUDIO = 132,
1: + HDMI_INFOFRAME_TYPE_DRM = 135,
1: };
1:
1: struct hdmi_any_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: };
1:
1: enum hdmi_colorspace {
1: - HDMI_COLORSPACE_RGB = 0,
1: - HDMI_COLORSPACE_YUV422 = 1,
1: - HDMI_COLORSPACE_YUV444 = 2,
1: - HDMI_COLORSPACE_YUV420 = 3,
1: - HDMI_COLORSPACE_RESERVED4 = 4,
1: - HDMI_COLORSPACE_RESERVED5 = 5,
1: - HDMI_COLORSPACE_RESERVED6 = 6,
1: - HDMI_COLORSPACE_IDO_DEFINED = 7,
1: + HDMI_COLORSPACE_RGB = 0,
1: + HDMI_COLORSPACE_YUV422 = 1,
1: + HDMI_COLORSPACE_YUV444 = 2,
1: + HDMI_COLORSPACE_YUV420 = 3,
1: + HDMI_COLORSPACE_RESERVED4 = 4,
1: + HDMI_COLORSPACE_RESERVED5 = 5,
1: + HDMI_COLORSPACE_RESERVED6 = 6,
1: + HDMI_COLORSPACE_IDO_DEFINED = 7,
1: };
1:
1: enum hdmi_scan_mode {
1: - HDMI_SCAN_MODE_NONE = 0,
1: - HDMI_SCAN_MODE_OVERSCAN = 1,
1: - HDMI_SCAN_MODE_UNDERSCAN = 2,
1: - HDMI_SCAN_MODE_RESERVED = 3,
1: + HDMI_SCAN_MODE_NONE = 0,
1: + HDMI_SCAN_MODE_OVERSCAN = 1,
1: + HDMI_SCAN_MODE_UNDERSCAN = 2,
1: + HDMI_SCAN_MODE_RESERVED = 3,
1: };
1:
1: enum hdmi_colorimetry {
1: - HDMI_COLORIMETRY_NONE = 0,
1: - HDMI_COLORIMETRY_ITU_601 = 1,
1: - HDMI_COLORIMETRY_ITU_709 = 2,
1: - HDMI_COLORIMETRY_EXTENDED = 3,
1: + HDMI_COLORIMETRY_NONE = 0,
1: + HDMI_COLORIMETRY_ITU_601 = 1,
1: + HDMI_COLORIMETRY_ITU_709 = 2,
1: + HDMI_COLORIMETRY_EXTENDED = 3,
1: };
1:
1: enum hdmi_picture_aspect {
1: - HDMI_PICTURE_ASPECT_NONE = 0,
1: - HDMI_PICTURE_ASPECT_4_3 = 1,
1: - HDMI_PICTURE_ASPECT_16_9 = 2,
1: - HDMI_PICTURE_ASPECT_64_27 = 3,
1: - HDMI_PICTURE_ASPECT_256_135 = 4,
1: - HDMI_PICTURE_ASPECT_RESERVED = 5,
1: + HDMI_PICTURE_ASPECT_NONE = 0,
1: + HDMI_PICTURE_ASPECT_4_3 = 1,
1: + HDMI_PICTURE_ASPECT_16_9 = 2,
1: + HDMI_PICTURE_ASPECT_64_27 = 3,
1: + HDMI_PICTURE_ASPECT_256_135 = 4,
1: + HDMI_PICTURE_ASPECT_RESERVED = 5,
1: };
1:
1: enum hdmi_active_aspect {
1: - HDMI_ACTIVE_ASPECT_16_9_TOP = 2,
1: - HDMI_ACTIVE_ASPECT_14_9_TOP = 3,
1: - HDMI_ACTIVE_ASPECT_16_9_CENTER = 4,
1: - HDMI_ACTIVE_ASPECT_PICTURE = 8,
1: - HDMI_ACTIVE_ASPECT_4_3 = 9,
1: - HDMI_ACTIVE_ASPECT_16_9 = 10,
1: - HDMI_ACTIVE_ASPECT_14_9 = 11,
1: - HDMI_ACTIVE_ASPECT_4_3_SP_14_9 = 13,
1: - HDMI_ACTIVE_ASPECT_16_9_SP_14_9 = 14,
1: - HDMI_ACTIVE_ASPECT_16_9_SP_4_3 = 15,
1: + HDMI_ACTIVE_ASPECT_16_9_TOP = 2,
1: + HDMI_ACTIVE_ASPECT_14_9_TOP = 3,
1: + HDMI_ACTIVE_ASPECT_16_9_CENTER = 4,
1: + HDMI_ACTIVE_ASPECT_PICTURE = 8,
1: + HDMI_ACTIVE_ASPECT_4_3 = 9,
1: + HDMI_ACTIVE_ASPECT_16_9 = 10,
1: + HDMI_ACTIVE_ASPECT_14_9 = 11,
1: + HDMI_ACTIVE_ASPECT_4_3_SP_14_9 = 13,
1: + HDMI_ACTIVE_ASPECT_16_9_SP_14_9 = 14,
1: + HDMI_ACTIVE_ASPECT_16_9_SP_4_3 = 15,
1: };
1:
1: enum hdmi_extended_colorimetry {
1: - HDMI_EXTENDED_COLORIMETRY_XV_YCC_601 = 0,
1: - HDMI_EXTENDED_COLORIMETRY_XV_YCC_709 = 1,
1: - HDMI_EXTENDED_COLORIMETRY_S_YCC_601 = 2,
1: - HDMI_EXTENDED_COLORIMETRY_OPYCC_601 = 3,
1: - HDMI_EXTENDED_COLORIMETRY_OPRGB = 4,
1: - HDMI_EXTENDED_COLORIMETRY_BT2020_CONST_LUM = 5,
1: - HDMI_EXTENDED_COLORIMETRY_BT2020 = 6,
1: - HDMI_EXTENDED_COLORIMETRY_RESERVED = 7,
1: + HDMI_EXTENDED_COLORIMETRY_XV_YCC_601 = 0,
1: + HDMI_EXTENDED_COLORIMETRY_XV_YCC_709 = 1,
1: + HDMI_EXTENDED_COLORIMETRY_S_YCC_601 = 2,
1: + HDMI_EXTENDED_COLORIMETRY_OPYCC_601 = 3,
1: + HDMI_EXTENDED_COLORIMETRY_OPRGB = 4,
1: + HDMI_EXTENDED_COLORIMETRY_BT2020_CONST_LUM = 5,
1: + HDMI_EXTENDED_COLORIMETRY_BT2020 = 6,
1: + HDMI_EXTENDED_COLORIMETRY_RESERVED = 7,
1: };
1:
1: enum hdmi_quantization_range {
1: - HDMI_QUANTIZATION_RANGE_DEFAULT = 0,
1: - HDMI_QUANTIZATION_RANGE_LIMITED = 1,
1: - HDMI_QUANTIZATION_RANGE_FULL = 2,
1: - HDMI_QUANTIZATION_RANGE_RESERVED = 3,
1: + HDMI_QUANTIZATION_RANGE_DEFAULT = 0,
1: + HDMI_QUANTIZATION_RANGE_LIMITED = 1,
1: + HDMI_QUANTIZATION_RANGE_FULL = 2,
1: + HDMI_QUANTIZATION_RANGE_RESERVED = 3,
1: };
1:
1: enum hdmi_nups {
1: - HDMI_NUPS_UNKNOWN = 0,
1: - HDMI_NUPS_HORIZONTAL = 1,
1: - HDMI_NUPS_VERTICAL = 2,
1: - HDMI_NUPS_BOTH = 3,
1: + HDMI_NUPS_UNKNOWN = 0,
1: + HDMI_NUPS_HORIZONTAL = 1,
1: + HDMI_NUPS_VERTICAL = 2,
1: + HDMI_NUPS_BOTH = 3,
1: };
1:
1: enum hdmi_ycc_quantization_range {
1: - HDMI_YCC_QUANTIZATION_RANGE_LIMITED = 0,
1: - HDMI_YCC_QUANTIZATION_RANGE_FULL = 1,
1: + HDMI_YCC_QUANTIZATION_RANGE_LIMITED = 0,
1: + HDMI_YCC_QUANTIZATION_RANGE_FULL = 1,
1: };
1:
1: enum hdmi_content_type {
1: - HDMI_CONTENT_TYPE_GRAPHICS = 0,
1: - HDMI_CONTENT_TYPE_PHOTO = 1,
1: - HDMI_CONTENT_TYPE_CINEMA = 2,
1: - HDMI_CONTENT_TYPE_GAME = 3,
1: + HDMI_CONTENT_TYPE_GRAPHICS = 0,
1: + HDMI_CONTENT_TYPE_PHOTO = 1,
1: + HDMI_CONTENT_TYPE_CINEMA = 2,
1: + HDMI_CONTENT_TYPE_GAME = 3,
1: };
1:
1: enum hdmi_metadata_type {
1: - HDMI_STATIC_METADATA_TYPE1 = 1,
1: + HDMI_STATIC_METADATA_TYPE1 = 1,
1: };
1:
1: enum hdmi_eotf {
1: - HDMI_EOTF_TRADITIONAL_GAMMA_SDR = 0,
1: - HDMI_EOTF_TRADITIONAL_GAMMA_HDR = 1,
1: - HDMI_EOTF_SMPTE_ST2084 = 2,
1: - HDMI_EOTF_BT_2100_HLG = 3,
1: + HDMI_EOTF_TRADITIONAL_GAMMA_SDR = 0,
1: + HDMI_EOTF_TRADITIONAL_GAMMA_HDR = 1,
1: + HDMI_EOTF_SMPTE_ST2084 = 2,
1: + HDMI_EOTF_BT_2100_HLG = 3,
1: };
1:
1: struct hdmi_avi_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - enum hdmi_colorspace colorspace;
1: - enum hdmi_scan_mode scan_mode;
1: - enum hdmi_colorimetry colorimetry;
1: - enum hdmi_picture_aspect picture_aspect;
1: - enum hdmi_active_aspect active_aspect;
1: - bool itc;
1: - enum hdmi_extended_colorimetry extended_colorimetry;
1: - enum hdmi_quantization_range quantization_range;
1: - enum hdmi_nups nups;
1: - unsigned char video_code;
1: - enum hdmi_ycc_quantization_range ycc_quantization_range;
1: - enum hdmi_content_type content_type;
1: - unsigned char pixel_repeat;
1: - short unsigned int top_bar;
1: - short unsigned int bottom_bar;
1: - short unsigned int left_bar;
1: - short unsigned int right_bar;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + enum hdmi_colorspace colorspace;
1: + enum hdmi_scan_mode scan_mode;
1: + enum hdmi_colorimetry colorimetry;
1: + enum hdmi_picture_aspect picture_aspect;
1: + enum hdmi_active_aspect active_aspect;
1: + bool itc;
1: + enum hdmi_extended_colorimetry extended_colorimetry;
1: + enum hdmi_quantization_range quantization_range;
1: + enum hdmi_nups nups;
1: + unsigned char video_code;
1: + enum hdmi_ycc_quantization_range ycc_quantization_range;
1: + enum hdmi_content_type content_type;
1: + unsigned char pixel_repeat;
1: + short unsigned int top_bar;
1: + short unsigned int bottom_bar;
1: + short unsigned int left_bar;
1: + short unsigned int right_bar;
1: };
1:
1: struct hdmi_drm_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - enum hdmi_eotf eotf;
1: - enum hdmi_metadata_type metadata_type;
1: - struct {
1: - u16 x;
1: - u16 y;
1: - } display_primaries[3];
1: - struct {
1: - u16 x;
1: - u16 y;
1: - } white_point;
1: - u16 max_display_mastering_luminance;
1: - u16 min_display_mastering_luminance;
1: - u16 max_cll;
1: - u16 max_fall;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + enum hdmi_eotf eotf;
1: + enum hdmi_metadata_type metadata_type;
1: + struct {
1: + u16 x;
1: + u16 y;
1: + } display_primaries[3];
1: + struct {
1: + u16 x;
1: + u16 y;
1: + } white_point;
1: + u16 max_display_mastering_luminance;
1: + u16 min_display_mastering_luminance;
1: + u16 max_cll;
1: + u16 max_fall;
1: };
1:
1: enum hdmi_spd_sdi {
1: - HDMI_SPD_SDI_UNKNOWN = 0,
1: - HDMI_SPD_SDI_DSTB = 1,
1: - HDMI_SPD_SDI_DVDP = 2,
1: - HDMI_SPD_SDI_DVHS = 3,
1: - HDMI_SPD_SDI_HDDVR = 4,
1: - HDMI_SPD_SDI_DVC = 5,
1: - HDMI_SPD_SDI_DSC = 6,
1: - HDMI_SPD_SDI_VCD = 7,
1: - HDMI_SPD_SDI_GAME = 8,
1: - HDMI_SPD_SDI_PC = 9,
1: - HDMI_SPD_SDI_BD = 10,
1: - HDMI_SPD_SDI_SACD = 11,
1: - HDMI_SPD_SDI_HDDVD = 12,
1: - HDMI_SPD_SDI_PMP = 13,
1: + HDMI_SPD_SDI_UNKNOWN = 0,
1: + HDMI_SPD_SDI_DSTB = 1,
1: + HDMI_SPD_SDI_DVDP = 2,
1: + HDMI_SPD_SDI_DVHS = 3,
1: + HDMI_SPD_SDI_HDDVR = 4,
1: + HDMI_SPD_SDI_DVC = 5,
1: + HDMI_SPD_SDI_DSC = 6,
1: + HDMI_SPD_SDI_VCD = 7,
1: + HDMI_SPD_SDI_GAME = 8,
1: + HDMI_SPD_SDI_PC = 9,
1: + HDMI_SPD_SDI_BD = 10,
1: + HDMI_SPD_SDI_SACD = 11,
1: + HDMI_SPD_SDI_HDDVD = 12,
1: + HDMI_SPD_SDI_PMP = 13,
1: };
1:
1: struct hdmi_spd_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - char vendor[8];
1: - char product[16];
1: - enum hdmi_spd_sdi sdi;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + char vendor[8];
1: + char product[16];
1: + enum hdmi_spd_sdi sdi;
1: };
1:
1: enum hdmi_audio_coding_type {
1: - HDMI_AUDIO_CODING_TYPE_STREAM = 0,
1: - HDMI_AUDIO_CODING_TYPE_PCM = 1,
1: - HDMI_AUDIO_CODING_TYPE_AC3 = 2,
1: - HDMI_AUDIO_CODING_TYPE_MPEG1 = 3,
1: - HDMI_AUDIO_CODING_TYPE_MP3 = 4,
1: - HDMI_AUDIO_CODING_TYPE_MPEG2 = 5,
1: - HDMI_AUDIO_CODING_TYPE_AAC_LC = 6,
1: - HDMI_AUDIO_CODING_TYPE_DTS = 7,
1: - HDMI_AUDIO_CODING_TYPE_ATRAC = 8,
1: - HDMI_AUDIO_CODING_TYPE_DSD = 9,
1: - HDMI_AUDIO_CODING_TYPE_EAC3 = 10,
1: - HDMI_AUDIO_CODING_TYPE_DTS_HD = 11,
1: - HDMI_AUDIO_CODING_TYPE_MLP = 12,
1: - HDMI_AUDIO_CODING_TYPE_DST = 13,
1: - HDMI_AUDIO_CODING_TYPE_WMA_PRO = 14,
1: - HDMI_AUDIO_CODING_TYPE_CXT = 15,
1: + HDMI_AUDIO_CODING_TYPE_STREAM = 0,
1: + HDMI_AUDIO_CODING_TYPE_PCM = 1,
1: + HDMI_AUDIO_CODING_TYPE_AC3 = 2,
1: + HDMI_AUDIO_CODING_TYPE_MPEG1 = 3,
1: + HDMI_AUDIO_CODING_TYPE_MP3 = 4,
1: + HDMI_AUDIO_CODING_TYPE_MPEG2 = 5,
1: + HDMI_AUDIO_CODING_TYPE_AAC_LC = 6,
1: + HDMI_AUDIO_CODING_TYPE_DTS = 7,
1: + HDMI_AUDIO_CODING_TYPE_ATRAC = 8,
1: + HDMI_AUDIO_CODING_TYPE_DSD = 9,
1: + HDMI_AUDIO_CODING_TYPE_EAC3 = 10,
1: + HDMI_AUDIO_CODING_TYPE_DTS_HD = 11,
1: + HDMI_AUDIO_CODING_TYPE_MLP = 12,
1: + HDMI_AUDIO_CODING_TYPE_DST = 13,
1: + HDMI_AUDIO_CODING_TYPE_WMA_PRO = 14,
1: + HDMI_AUDIO_CODING_TYPE_CXT = 15,
1: };
1:
1: enum hdmi_audio_sample_size {
1: - HDMI_AUDIO_SAMPLE_SIZE_STREAM = 0,
1: - HDMI_AUDIO_SAMPLE_SIZE_16 = 1,
1: - HDMI_AUDIO_SAMPLE_SIZE_20 = 2,
1: - HDMI_AUDIO_SAMPLE_SIZE_24 = 3,
1: + HDMI_AUDIO_SAMPLE_SIZE_STREAM = 0,
1: + HDMI_AUDIO_SAMPLE_SIZE_16 = 1,
1: + HDMI_AUDIO_SAMPLE_SIZE_20 = 2,
1: + HDMI_AUDIO_SAMPLE_SIZE_24 = 3,
1: };
1:
1: enum hdmi_audio_sample_frequency {
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_STREAM = 0,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_32000 = 1,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_44100 = 2,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_48000 = 3,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_88200 = 4,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_96000 = 5,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_176400 = 6,
1: - HDMI_AUDIO_SAMPLE_FREQUENCY_192000 = 7,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_STREAM = 0,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_32000 = 1,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_44100 = 2,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_48000 = 3,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_88200 = 4,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_96000 = 5,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_176400 = 6,
1: + HDMI_AUDIO_SAMPLE_FREQUENCY_192000 = 7,
1: };
1:
1: enum hdmi_audio_coding_type_ext {
1: - HDMI_AUDIO_CODING_TYPE_EXT_CT = 0,
1: - HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC = 1,
1: - HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC_V2 = 2,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG_SURROUND = 3,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC = 4,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_V2 = 5,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC = 6,
1: - HDMI_AUDIO_CODING_TYPE_EXT_DRA = 7,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_SURROUND = 8,
1: - HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC_SURROUND = 10,
1: + HDMI_AUDIO_CODING_TYPE_EXT_CT = 0,
1: + HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC = 1,
1: + HDMI_AUDIO_CODING_TYPE_EXT_HE_AAC_V2 = 2,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG_SURROUND = 3,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC = 4,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_V2 = 5,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC = 6,
1: + HDMI_AUDIO_CODING_TYPE_EXT_DRA = 7,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_HE_AAC_SURROUND = 8,
1: + HDMI_AUDIO_CODING_TYPE_EXT_MPEG4_AAC_LC_SURROUND = 10,
1: };
1:
1: struct hdmi_audio_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - unsigned char channels;
1: - enum hdmi_audio_coding_type coding_type;
1: - enum hdmi_audio_sample_size sample_size;
1: - enum hdmi_audio_sample_frequency sample_frequency;
1: - enum hdmi_audio_coding_type_ext coding_type_ext;
1: - unsigned char channel_allocation;
1: - unsigned char level_shift_value;
1: - bool downmix_inhibit;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned char channels;
1: + enum hdmi_audio_coding_type coding_type;
1: + enum hdmi_audio_sample_size sample_size;
1: + enum hdmi_audio_sample_frequency sample_frequency;
1: + enum hdmi_audio_coding_type_ext coding_type_ext;
1: + unsigned char channel_allocation;
1: + unsigned char level_shift_value;
1: + bool downmix_inhibit;
1: };
1:
1: enum hdmi_3d_structure {
1: - HDMI_3D_STRUCTURE_INVALID = 4294967295,
1: - HDMI_3D_STRUCTURE_FRAME_PACKING = 0,
1: - HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE = 1,
1: - HDMI_3D_STRUCTURE_LINE_ALTERNATIVE = 2,
1: - HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL = 3,
1: - HDMI_3D_STRUCTURE_L_DEPTH = 4,
1: - HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH = 5,
1: - HDMI_3D_STRUCTURE_TOP_AND_BOTTOM = 6,
1: - HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF = 8,
1: + HDMI_3D_STRUCTURE_INVALID = 4294967295,
1: + HDMI_3D_STRUCTURE_FRAME_PACKING = 0,
1: + HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE = 1,
1: + HDMI_3D_STRUCTURE_LINE_ALTERNATIVE = 2,
1: + HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL = 3,
1: + HDMI_3D_STRUCTURE_L_DEPTH = 4,
1: + HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH = 5,
1: + HDMI_3D_STRUCTURE_TOP_AND_BOTTOM = 6,
1: + HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF = 8,
1: };
1:
1: struct hdmi_vendor_infoframe {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - unsigned int oui;
1: - u8 vic;
1: - enum hdmi_3d_structure s3d_struct;
1: - unsigned int s3d_ext_data;
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned int oui;
1: + u8 vic;
1: + enum hdmi_3d_structure s3d_struct;
1: + unsigned int s3d_ext_data;
1: };
1:
1: union hdmi_vendor_any_infoframe {
1: - struct {
1: - enum hdmi_infoframe_type type;
1: - unsigned char version;
1: - unsigned char length;
1: - unsigned int oui;
1: - } any;
1: - struct hdmi_vendor_infoframe hdmi;
1: + struct {
1: + enum hdmi_infoframe_type type;
1: + unsigned char version;
1: + unsigned char length;
1: + unsigned int oui;
1: + } any;
1: + struct hdmi_vendor_infoframe hdmi;
1: };
1:
1: union hdmi_infoframe {
1: - struct hdmi_any_infoframe any;
1: - struct hdmi_avi_infoframe avi;
1: - struct hdmi_spd_infoframe spd;
1: - union hdmi_vendor_any_infoframe vendor;
1: - struct hdmi_audio_infoframe audio;
1: - struct hdmi_drm_infoframe drm;
1: + struct hdmi_any_infoframe any;
1: + struct hdmi_avi_infoframe avi;
1: + struct hdmi_spd_infoframe spd;
1: + union hdmi_vendor_any_infoframe vendor;
1: + struct hdmi_audio_infoframe audio;
1: + struct hdmi_drm_infoframe drm;
1: };
1:
1: enum con_scroll {
1: - SM_UP = 0,
1: - SM_DOWN = 1,
1: + SM_UP = 0,
1: + SM_DOWN = 1,
1: };
1:
1: enum vc_intensity {
1: - VCI_HALF_BRIGHT = 0,
1: - VCI_NORMAL = 1,
1: - VCI_BOLD = 2,
1: - VCI_MASK = 3,
1: + VCI_HALF_BRIGHT = 0,
1: + VCI_NORMAL = 1,
1: + VCI_BOLD = 2,
1: + VCI_MASK = 3,
1: };
1:
1: struct vc_data;
1: @@ -66948,61 +67917,65 @@ struct vc_data;
1: struct console_font;
1:
1: struct consw {
1: - struct module *owner;
1: - const char * (*con_startup)();
1: - void (*con_init)(struct vc_data *, int);
1: - void (*con_deinit)(struct vc_data *);
1: - void (*con_clear)(struct vc_data *, int, int, int, int);
1: - void (*con_putc)(struct vc_data *, int, int, int);
1: - void (*con_putcs)(struct vc_data *, const short unsigned int *, int, int, int);
1: - void (*con_cursor)(struct vc_data *, int);
1: - bool (*con_scroll)(struct vc_data *, unsigned int, unsigned int, enum con_scroll, unsigned int);
1: - int (*con_switch)(struct vc_data *);
1: - int (*con_blank)(struct vc_data *, int, int);
1: - int (*con_font_set)(struct vc_data *, struct console_font *, unsigned int);
1: - int (*con_font_get)(struct vc_data *, struct console_font *);
1: - int (*con_font_default)(struct vc_data *, struct console_font *, char *);
1: - int (*con_font_copy)(struct vc_data *, int);
1: - int (*con_resize)(struct vc_data *, unsigned int, unsigned int, unsigned int);
1: - void (*con_set_palette)(struct vc_data *, const unsigned char *);
1: - void (*con_scrolldelta)(struct vc_data *, int);
1: - int (*con_set_origin)(struct vc_data *);
1: - void (*con_save_screen)(struct vc_data *);
1: - u8 (*con_build_attr)(struct vc_data *, u8, enum vc_intensity, bool, bool, bool, bool);
1: - void (*con_invert_region)(struct vc_data *, u16 *, int);
1: - u16 * (*con_screen_pos)(const struct vc_data *, int);
1: - long unsigned int (*con_getxy)(struct vc_data *, long unsigned int, int *, int *);
1: - void (*con_flush_scrollback)(struct vc_data *);
1: - int (*con_debug_enter)(struct vc_data *);
1: - int (*con_debug_leave)(struct vc_data *);
1: + struct module *owner;
1: + const char *(*con_startup)();
1: + void (*con_init)(struct vc_data *, int);
1: + void (*con_deinit)(struct vc_data *);
1: + void (*con_clear)(struct vc_data *, int, int, int, int);
1: + void (*con_putc)(struct vc_data *, int, int, int);
1: + void (*con_putcs)(struct vc_data *, const short unsigned int *, int, int,
1: + int);
1: + void (*con_cursor)(struct vc_data *, int);
1: + bool (*con_scroll)(struct vc_data *, unsigned int, unsigned int,
1: + enum con_scroll, unsigned int);
1: + int (*con_switch)(struct vc_data *);
1: + int (*con_blank)(struct vc_data *, int, int);
1: + int (*con_font_set)(struct vc_data *, struct console_font *, unsigned int);
1: + int (*con_font_get)(struct vc_data *, struct console_font *);
1: + int (*con_font_default)(struct vc_data *, struct console_font *, char *);
1: + int (*con_font_copy)(struct vc_data *, int);
1: + int (*con_resize)(struct vc_data *, unsigned int, unsigned int, unsigned int);
1: + void (*con_set_palette)(struct vc_data *, const unsigned char *);
1: + void (*con_scrolldelta)(struct vc_data *, int);
1: + int (*con_set_origin)(struct vc_data *);
1: + void (*con_save_screen)(struct vc_data *);
1: + u8 (*con_build_attr)(struct vc_data *, u8, enum vc_intensity, bool, bool,
1: + bool, bool);
1: + void (*con_invert_region)(struct vc_data *, u16 *, int);
1: + u16 *(*con_screen_pos)(const struct vc_data *, int);
1: + long unsigned int (*con_getxy)(struct vc_data *, long unsigned int, int *,
1: + int *);
1: + void (*con_flush_scrollback)(struct vc_data *);
1: + int (*con_debug_enter)(struct vc_data *);
1: + int (*con_debug_leave)(struct vc_data *);
1: };
1:
1: struct vc_state {
1: - unsigned int x;
1: - unsigned int y;
1: - unsigned char color;
1: - unsigned char Gx_charset[2];
1: - unsigned int charset: 1;
1: - enum vc_intensity intensity;
1: - bool italic;
1: - bool underline;
1: - bool blink;
1: - bool reverse;
1: + unsigned int x;
1: + unsigned int y;
1: + unsigned char color;
1: + unsigned char Gx_charset[2];
1: + unsigned int charset : 1;
1: + enum vc_intensity intensity;
1: + bool italic;
1: + bool underline;
1: + bool blink;
1: + bool reverse;
1: };
1:
1: struct console_font {
1: - unsigned int width;
1: - unsigned int height;
1: - unsigned int charcount;
1: - unsigned char *data;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int charcount;
1: + unsigned char *data;
1: };
1:
1: struct vt_mode {
1: - char mode;
1: - char waitv;
1: - short int relsig;
1: - short int acqsig;
1: - short int frsig;
1: + char mode;
1: + char waitv;
1: + short int relsig;
1: + short int acqsig;
1: + short int frsig;
1: };
1:
1: struct uni_pagedir;
1: @@ -67010,274 +67983,274 @@ struct uni_pagedir;
1: struct uni_screen;
1:
1: struct vc_data {
1: - struct tty_port port;
1: - struct vc_state state;
1: - struct vc_state saved_state;
1: - short unsigned int vc_num;
1: - unsigned int vc_cols;
1: - unsigned int vc_rows;
1: - unsigned int vc_size_row;
1: - unsigned int vc_scan_lines;
1: - long unsigned int vc_origin;
1: - long unsigned int vc_scr_end;
1: - long unsigned int vc_visible_origin;
1: - unsigned int vc_top;
1: - unsigned int vc_bottom;
1: - const struct consw *vc_sw;
1: - short unsigned int *vc_screenbuf;
1: - unsigned int vc_screenbuf_size;
1: - unsigned char vc_mode;
1: - unsigned char vc_attr;
1: - unsigned char vc_def_color;
1: - unsigned char vc_ulcolor;
1: - unsigned char vc_itcolor;
1: - unsigned char vc_halfcolor;
1: - unsigned int vc_cursor_type;
1: - short unsigned int vc_complement_mask;
1: - short unsigned int vc_s_complement_mask;
1: - long unsigned int vc_pos;
1: - short unsigned int vc_hi_font_mask;
1: - struct console_font vc_font;
1: - short unsigned int vc_video_erase_char;
1: - unsigned int vc_state;
1: - unsigned int vc_npar;
1: - unsigned int vc_par[16];
1: - struct vt_mode vt_mode;
1: - struct pid *vt_pid;
1: - int vt_newvt;
1: - wait_queue_head_t paste_wait;
1: - unsigned int vc_disp_ctrl: 1;
1: - unsigned int vc_toggle_meta: 1;
1: - unsigned int vc_decscnm: 1;
1: - unsigned int vc_decom: 1;
1: - unsigned int vc_decawm: 1;
1: - unsigned int vc_deccm: 1;
1: - unsigned int vc_decim: 1;
1: - unsigned int vc_priv: 3;
1: - unsigned int vc_need_wrap: 1;
1: - unsigned int vc_can_do_color: 1;
1: - unsigned int vc_report_mouse: 2;
1: - unsigned char vc_utf: 1;
1: - unsigned char vc_utf_count;
1: - int vc_utf_char;
1: - long unsigned int vc_tab_stop[4];
1: - unsigned char vc_palette[48];
1: - short unsigned int *vc_translate;
1: - unsigned int vc_resize_user;
1: - unsigned int vc_bell_pitch;
1: - unsigned int vc_bell_duration;
1: - short unsigned int vc_cur_blink_ms;
1: - struct vc_data **vc_display_fg;
1: - struct uni_pagedir *vc_uni_pagedir;
1: - struct uni_pagedir **vc_uni_pagedir_loc;
1: - struct uni_screen *vc_uni_screen;
1: + struct tty_port port;
1: + struct vc_state state;
1: + struct vc_state saved_state;
1: + short unsigned int vc_num;
1: + unsigned int vc_cols;
1: + unsigned int vc_rows;
1: + unsigned int vc_size_row;
1: + unsigned int vc_scan_lines;
1: + long unsigned int vc_origin;
1: + long unsigned int vc_scr_end;
1: + long unsigned int vc_visible_origin;
1: + unsigned int vc_top;
1: + unsigned int vc_bottom;
1: + const struct consw *vc_sw;
1: + short unsigned int *vc_screenbuf;
1: + unsigned int vc_screenbuf_size;
1: + unsigned char vc_mode;
1: + unsigned char vc_attr;
1: + unsigned char vc_def_color;
1: + unsigned char vc_ulcolor;
1: + unsigned char vc_itcolor;
1: + unsigned char vc_halfcolor;
1: + unsigned int vc_cursor_type;
1: + short unsigned int vc_complement_mask;
1: + short unsigned int vc_s_complement_mask;
1: + long unsigned int vc_pos;
1: + short unsigned int vc_hi_font_mask;
1: + struct console_font vc_font;
1: + short unsigned int vc_video_erase_char;
1: + unsigned int vc_state;
1: + unsigned int vc_npar;
1: + unsigned int vc_par[16];
1: + struct vt_mode vt_mode;
1: + struct pid *vt_pid;
1: + int vt_newvt;
1: + wait_queue_head_t paste_wait;
1: + unsigned int vc_disp_ctrl : 1;
1: + unsigned int vc_toggle_meta : 1;
1: + unsigned int vc_decscnm : 1;
1: + unsigned int vc_decom : 1;
1: + unsigned int vc_decawm : 1;
1: + unsigned int vc_deccm : 1;
1: + unsigned int vc_decim : 1;
1: + unsigned int vc_priv : 3;
1: + unsigned int vc_need_wrap : 1;
1: + unsigned int vc_can_do_color : 1;
1: + unsigned int vc_report_mouse : 2;
1: + unsigned char vc_utf : 1;
1: + unsigned char vc_utf_count;
1: + int vc_utf_char;
1: + long unsigned int vc_tab_stop[4];
1: + unsigned char vc_palette[48];
1: + short unsigned int *vc_translate;
1: + unsigned int vc_resize_user;
1: + unsigned int vc_bell_pitch;
1: + unsigned int vc_bell_duration;
1: + short unsigned int vc_cur_blink_ms;
1: + struct vc_data **vc_display_fg;
1: + struct uni_pagedir *vc_uni_pagedir;
1: + struct uni_pagedir **vc_uni_pagedir_loc;
1: + struct uni_screen *vc_uni_screen;
1: };
1:
1: struct linux_logo {
1: - int type;
1: - unsigned int width;
1: - unsigned int height;
1: - unsigned int clutsize;
1: - const unsigned char *clut;
1: - const unsigned char *data;
1: + int type;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int clutsize;
1: + const unsigned char *clut;
1: + const unsigned char *data;
1: };
1:
1: struct fb_fix_screeninfo {
1: - char id[16];
1: - long unsigned int smem_start;
1: - __u32 smem_len;
1: - __u32 type;
1: - __u32 type_aux;
1: - __u32 visual;
1: - __u16 xpanstep;
1: - __u16 ypanstep;
1: - __u16 ywrapstep;
1: - __u32 line_length;
1: - long unsigned int mmio_start;
1: - __u32 mmio_len;
1: - __u32 accel;
1: - __u16 capabilities;
1: - __u16 reserved[2];
1: + char id[16];
1: + long unsigned int smem_start;
1: + __u32 smem_len;
1: + __u32 type;
1: + __u32 type_aux;
1: + __u32 visual;
1: + __u16 xpanstep;
1: + __u16 ypanstep;
1: + __u16 ywrapstep;
1: + __u32 line_length;
1: + long unsigned int mmio_start;
1: + __u32 mmio_len;
1: + __u32 accel;
1: + __u16 capabilities;
1: + __u16 reserved[2];
1: };
1:
1: struct fb_bitfield {
1: - __u32 offset;
1: - __u32 length;
1: - __u32 msb_right;
1: + __u32 offset;
1: + __u32 length;
1: + __u32 msb_right;
1: };
1:
1: struct fb_var_screeninfo {
1: - __u32 xres;
1: - __u32 yres;
1: - __u32 xres_virtual;
1: - __u32 yres_virtual;
1: - __u32 xoffset;
1: - __u32 yoffset;
1: - __u32 bits_per_pixel;
1: - __u32 grayscale;
1: - struct fb_bitfield red;
1: - struct fb_bitfield green;
1: - struct fb_bitfield blue;
1: - struct fb_bitfield transp;
1: - __u32 nonstd;
1: - __u32 activate;
1: - __u32 height;
1: - __u32 width;
1: - __u32 accel_flags;
1: - __u32 pixclock;
1: - __u32 left_margin;
1: - __u32 right_margin;
1: - __u32 upper_margin;
1: - __u32 lower_margin;
1: - __u32 hsync_len;
1: - __u32 vsync_len;
1: - __u32 sync;
1: - __u32 vmode;
1: - __u32 rotate;
1: - __u32 colorspace;
1: - __u32 reserved[4];
1: + __u32 xres;
1: + __u32 yres;
1: + __u32 xres_virtual;
1: + __u32 yres_virtual;
1: + __u32 xoffset;
1: + __u32 yoffset;
1: + __u32 bits_per_pixel;
1: + __u32 grayscale;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + __u32 nonstd;
1: + __u32 activate;
1: + __u32 height;
1: + __u32 width;
1: + __u32 accel_flags;
1: + __u32 pixclock;
1: + __u32 left_margin;
1: + __u32 right_margin;
1: + __u32 upper_margin;
1: + __u32 lower_margin;
1: + __u32 hsync_len;
1: + __u32 vsync_len;
1: + __u32 sync;
1: + __u32 vmode;
1: + __u32 rotate;
1: + __u32 colorspace;
1: + __u32 reserved[4];
1: };
1:
1: struct fb_cmap {
1: - __u32 start;
1: - __u32 len;
1: - __u16 *red;
1: - __u16 *green;
1: - __u16 *blue;
1: - __u16 *transp;
1: + __u32 start;
1: + __u32 len;
1: + __u16 *red;
1: + __u16 *green;
1: + __u16 *blue;
1: + __u16 *transp;
1: };
1:
1: enum {
1: - FB_BLANK_UNBLANK = 0,
1: - FB_BLANK_NORMAL = 1,
1: - FB_BLANK_VSYNC_SUSPEND = 2,
1: - FB_BLANK_HSYNC_SUSPEND = 3,
1: - FB_BLANK_POWERDOWN = 4,
1: + FB_BLANK_UNBLANK = 0,
1: + FB_BLANK_NORMAL = 1,
1: + FB_BLANK_VSYNC_SUSPEND = 2,
1: + FB_BLANK_HSYNC_SUSPEND = 3,
1: + FB_BLANK_POWERDOWN = 4,
1: };
1:
1: struct fb_copyarea {
1: - __u32 dx;
1: - __u32 dy;
1: - __u32 width;
1: - __u32 height;
1: - __u32 sx;
1: - __u32 sy;
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 sx;
1: + __u32 sy;
1: };
1:
1: struct fb_fillrect {
1: - __u32 dx;
1: - __u32 dy;
1: - __u32 width;
1: - __u32 height;
1: - __u32 color;
1: - __u32 rop;
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 color;
1: + __u32 rop;
1: };
1:
1: struct fb_image {
1: - __u32 dx;
1: - __u32 dy;
1: - __u32 width;
1: - __u32 height;
1: - __u32 fg_color;
1: - __u32 bg_color;
1: - __u8 depth;
1: - const char *data;
1: - struct fb_cmap cmap;
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 fg_color;
1: + __u32 bg_color;
1: + __u8 depth;
1: + const char *data;
1: + struct fb_cmap cmap;
1: };
1:
1: struct fbcurpos {
1: - __u16 x;
1: - __u16 y;
1: + __u16 x;
1: + __u16 y;
1: };
1:
1: struct fb_cursor {
1: - __u16 set;
1: - __u16 enable;
1: - __u16 rop;
1: - const char *mask;
1: - struct fbcurpos hot;
1: - struct fb_image image;
1: + __u16 set;
1: + __u16 enable;
1: + __u16 rop;
1: + const char *mask;
1: + struct fbcurpos hot;
1: + struct fb_image image;
1: };
1:
1: struct fb_chroma {
1: - __u32 redx;
1: - __u32 greenx;
1: - __u32 bluex;
1: - __u32 whitex;
1: - __u32 redy;
1: - __u32 greeny;
1: - __u32 bluey;
1: - __u32 whitey;
1: + __u32 redx;
1: + __u32 greenx;
1: + __u32 bluex;
1: + __u32 whitex;
1: + __u32 redy;
1: + __u32 greeny;
1: + __u32 bluey;
1: + __u32 whitey;
1: };
1:
1: struct fb_videomode;
1:
1: struct fb_monspecs {
1: - struct fb_chroma chroma;
1: - struct fb_videomode *modedb;
1: - __u8 manufacturer[4];
1: - __u8 monitor[14];
1: - __u8 serial_no[14];
1: - __u8 ascii[14];
1: - __u32 modedb_len;
1: - __u32 model;
1: - __u32 serial;
1: - __u32 year;
1: - __u32 week;
1: - __u32 hfmin;
1: - __u32 hfmax;
1: - __u32 dclkmin;
1: - __u32 dclkmax;
1: - __u16 input;
1: - __u16 dpms;
1: - __u16 signal;
1: - __u16 vfmin;
1: - __u16 vfmax;
1: - __u16 gamma;
1: - __u16 gtf: 1;
1: - __u16 misc;
1: - __u8 version;
1: - __u8 revision;
1: - __u8 max_x;
1: - __u8 max_y;
1: + struct fb_chroma chroma;
1: + struct fb_videomode *modedb;
1: + __u8 manufacturer[4];
1: + __u8 monitor[14];
1: + __u8 serial_no[14];
1: + __u8 ascii[14];
1: + __u32 modedb_len;
1: + __u32 model;
1: + __u32 serial;
1: + __u32 year;
1: + __u32 week;
1: + __u32 hfmin;
1: + __u32 hfmax;
1: + __u32 dclkmin;
1: + __u32 dclkmax;
1: + __u16 input;
1: + __u16 dpms;
1: + __u16 signal;
1: + __u16 vfmin;
1: + __u16 vfmax;
1: + __u16 gamma;
1: + __u16 gtf : 1;
1: + __u16 misc;
1: + __u8 version;
1: + __u8 revision;
1: + __u8 max_x;
1: + __u8 max_y;
1: };
1:
1: struct fb_videomode {
1: - const char *name;
1: - u32 refresh;
1: - u32 xres;
1: - u32 yres;
1: - u32 pixclock;
1: - u32 left_margin;
1: - u32 right_margin;
1: - u32 upper_margin;
1: - u32 lower_margin;
1: - u32 hsync_len;
1: - u32 vsync_len;
1: - u32 sync;
1: - u32 vmode;
1: - u32 flag;
1: + const char *name;
1: + u32 refresh;
1: + u32 xres;
1: + u32 yres;
1: + u32 pixclock;
1: + u32 left_margin;
1: + u32 right_margin;
1: + u32 upper_margin;
1: + u32 lower_margin;
1: + u32 hsync_len;
1: + u32 vsync_len;
1: + u32 sync;
1: + u32 vmode;
1: + u32 flag;
1: };
1:
1: struct fb_info;
1:
1: struct fb_event {
1: - struct fb_info *info;
1: - void *data;
1: + struct fb_info *info;
1: + void *data;
1: };
1:
1: struct fb_pixmap {
1: - u8 *addr;
1: - u32 size;
1: - u32 offset;
1: - u32 buf_align;
1: - u32 scan_align;
1: - u32 access_align;
1: - u32 flags;
1: - u32 blit_x;
1: - u32 blit_y;
1: - void (*writeio)(struct fb_info *, void *, void *, unsigned int);
1: - void (*readio)(struct fb_info *, void *, void *, unsigned int);
1: + u8 *addr;
1: + u32 size;
1: + u32 offset;
1: + u32 buf_align;
1: + u32 scan_align;
1: + u32 access_align;
1: + u32 flags;
1: + u32 blit_x;
1: + u32 blit_y;
1: + void (*writeio)(struct fb_info *, void *, void *, unsigned int);
1: + void (*readio)(struct fb_info *, void *, void *, unsigned int);
1: };
1:
1: struct backlight_device;
1: @@ -67291,334 +68264,336 @@ struct fb_tile_ops;
1: struct apertures_struct;
1:
1: struct fb_info {
1: - atomic_t count;
1: - int node;
1: - int flags;
1: - int fbcon_rotate_hint;
1: - struct mutex lock;
1: - struct mutex mm_lock;
1: - struct fb_var_screeninfo var;
1: - struct fb_fix_screeninfo fix;
1: - struct fb_monspecs monspecs;
1: - struct work_struct queue;
1: - struct fb_pixmap pixmap;
1: - struct fb_pixmap sprite;
1: - struct fb_cmap cmap;
1: - struct list_head modelist;
1: - struct fb_videomode *mode;
1: - struct backlight_device *bl_dev;
1: - struct mutex bl_curve_mutex;
1: - u8 bl_curve[128];
1: - struct delayed_work deferred_work;
1: - struct fb_deferred_io *fbdefio;
1: - const struct fb_ops *fbops;
1: - struct device *device;
1: - struct device *dev;
1: - int class_flag;
1: - struct fb_tile_ops *tileops;
1: - union {
1: - char *screen_base;
1: - char *screen_buffer;
1: - };
1: - long unsigned int screen_size;
1: - void *pseudo_palette;
1: - u32 state;
1: - void *fbcon_par;
1: - void *par;
1: - struct apertures_struct *apertures;
1: - bool skip_vt_switch;
1: + atomic_t count;
1: + int node;
1: + int flags;
1: + int fbcon_rotate_hint;
1: + struct mutex lock;
1: + struct mutex mm_lock;
1: + struct fb_var_screeninfo var;
1: + struct fb_fix_screeninfo fix;
1: + struct fb_monspecs monspecs;
1: + struct work_struct queue;
1: + struct fb_pixmap pixmap;
1: + struct fb_pixmap sprite;
1: + struct fb_cmap cmap;
1: + struct list_head modelist;
1: + struct fb_videomode *mode;
1: + struct backlight_device *bl_dev;
1: + struct mutex bl_curve_mutex;
1: + u8 bl_curve[128];
1: + struct delayed_work deferred_work;
1: + struct fb_deferred_io *fbdefio;
1: + const struct fb_ops *fbops;
1: + struct device *device;
1: + struct device *dev;
1: + int class_flag;
1: + struct fb_tile_ops *tileops;
1: + union {
1: + char *screen_base;
1: + char *screen_buffer;
1: + };
1: + long unsigned int screen_size;
1: + void *pseudo_palette;
1: + u32 state;
1: + void *fbcon_par;
1: + void *par;
1: + struct apertures_struct *apertures;
1: + bool skip_vt_switch;
1: };
1:
1: struct fb_blit_caps {
1: - u32 x;
1: - u32 y;
1: - u32 len;
1: - u32 flags;
1: + u32 x;
1: + u32 y;
1: + u32 len;
1: + u32 flags;
1: };
1:
1: struct fb_deferred_io {
1: - long unsigned int delay;
1: - struct mutex lock;
1: - struct list_head pagelist;
1: - void (*first_io)(struct fb_info *);
1: - void (*deferred_io)(struct fb_info *, struct list_head *);
1: + long unsigned int delay;
1: + struct mutex lock;
1: + struct list_head pagelist;
1: + void (*first_io)(struct fb_info *);
1: + void (*deferred_io)(struct fb_info *, struct list_head *);
1: };
1:
1: struct fb_ops {
1: - struct module *owner;
1: - int (*fb_open)(struct fb_info *, int);
1: - int (*fb_release)(struct fb_info *, int);
1: - ssize_t (*fb_read)(struct fb_info *, char *, size_t, loff_t *);
1: - ssize_t (*fb_write)(struct fb_info *, const char *, size_t, loff_t *);
1: - int (*fb_check_var)(struct fb_var_screeninfo *, struct fb_info *);
1: - int (*fb_set_par)(struct fb_info *);
1: - int (*fb_setcolreg)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, struct fb_info *);
1: - int (*fb_setcmap)(struct fb_cmap *, struct fb_info *);
1: - int (*fb_blank)(int, struct fb_info *);
1: - int (*fb_pan_display)(struct fb_var_screeninfo *, struct fb_info *);
1: - void (*fb_fillrect)(struct fb_info *, const struct fb_fillrect *);
1: - void (*fb_copyarea)(struct fb_info *, const struct fb_copyarea *);
1: - void (*fb_imageblit)(struct fb_info *, const struct fb_image *);
1: - int (*fb_cursor)(struct fb_info *, struct fb_cursor *);
1: - int (*fb_sync)(struct fb_info *);
1: - int (*fb_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: - int (*fb_compat_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: - int (*fb_mmap)(struct fb_info *, struct vm_area_struct *);
1: - void (*fb_get_caps)(struct fb_info *, struct fb_blit_caps *, struct fb_var_screeninfo *);
1: - void (*fb_destroy)(struct fb_info *);
1: - int (*fb_debug_enter)(struct fb_info *);
1: - int (*fb_debug_leave)(struct fb_info *);
1: + struct module *owner;
1: + int (*fb_open)(struct fb_info *, int);
1: + int (*fb_release)(struct fb_info *, int);
1: + ssize_t (*fb_read)(struct fb_info *, char *, size_t, loff_t *);
1: + ssize_t (*fb_write)(struct fb_info *, const char *, size_t, loff_t *);
1: + int (*fb_check_var)(struct fb_var_screeninfo *, struct fb_info *);
1: + int (*fb_set_par)(struct fb_info *);
1: + int (*fb_setcolreg)(unsigned int, unsigned int, unsigned int, unsigned int,
1: + unsigned int, struct fb_info *);
1: + int (*fb_setcmap)(struct fb_cmap *, struct fb_info *);
1: + int (*fb_blank)(int, struct fb_info *);
1: + int (*fb_pan_display)(struct fb_var_screeninfo *, struct fb_info *);
1: + void (*fb_fillrect)(struct fb_info *, const struct fb_fillrect *);
1: + void (*fb_copyarea)(struct fb_info *, const struct fb_copyarea *);
1: + void (*fb_imageblit)(struct fb_info *, const struct fb_image *);
1: + int (*fb_cursor)(struct fb_info *, struct fb_cursor *);
1: + int (*fb_sync)(struct fb_info *);
1: + int (*fb_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: + int (*fb_compat_ioctl)(struct fb_info *, unsigned int, long unsigned int);
1: + int (*fb_mmap)(struct fb_info *, struct vm_area_struct *);
1: + void (*fb_get_caps)(struct fb_info *, struct fb_blit_caps *,
1: + struct fb_var_screeninfo *);
1: + void (*fb_destroy)(struct fb_info *);
1: + int (*fb_debug_enter)(struct fb_info *);
1: + int (*fb_debug_leave)(struct fb_info *);
1: };
1:
1: struct fb_tilemap {
1: - __u32 width;
1: - __u32 height;
1: - __u32 depth;
1: - __u32 length;
1: - const __u8 *data;
1: + __u32 width;
1: + __u32 height;
1: + __u32 depth;
1: + __u32 length;
1: + const __u8 *data;
1: };
1:
1: struct fb_tilerect {
1: - __u32 sx;
1: - __u32 sy;
1: - __u32 width;
1: - __u32 height;
1: - __u32 index;
1: - __u32 fg;
1: - __u32 bg;
1: - __u32 rop;
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 index;
1: + __u32 fg;
1: + __u32 bg;
1: + __u32 rop;
1: };
1:
1: struct fb_tilearea {
1: - __u32 sx;
1: - __u32 sy;
1: - __u32 dx;
1: - __u32 dy;
1: - __u32 width;
1: - __u32 height;
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 dx;
1: + __u32 dy;
1: + __u32 width;
1: + __u32 height;
1: };
1:
1: struct fb_tileblit {
1: - __u32 sx;
1: - __u32 sy;
1: - __u32 width;
1: - __u32 height;
1: - __u32 fg;
1: - __u32 bg;
1: - __u32 length;
1: - __u32 *indices;
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 width;
1: + __u32 height;
1: + __u32 fg;
1: + __u32 bg;
1: + __u32 length;
1: + __u32 *indices;
1: };
1:
1: struct fb_tilecursor {
1: - __u32 sx;
1: - __u32 sy;
1: - __u32 mode;
1: - __u32 shape;
1: - __u32 fg;
1: - __u32 bg;
1: + __u32 sx;
1: + __u32 sy;
1: + __u32 mode;
1: + __u32 shape;
1: + __u32 fg;
1: + __u32 bg;
1: };
1:
1: struct fb_tile_ops {
1: - void (*fb_settile)(struct fb_info *, struct fb_tilemap *);
1: - void (*fb_tilecopy)(struct fb_info *, struct fb_tilearea *);
1: - void (*fb_tilefill)(struct fb_info *, struct fb_tilerect *);
1: - void (*fb_tileblit)(struct fb_info *, struct fb_tileblit *);
1: - void (*fb_tilecursor)(struct fb_info *, struct fb_tilecursor *);
1: - int (*fb_get_tilemax)(struct fb_info *);
1: + void (*fb_settile)(struct fb_info *, struct fb_tilemap *);
1: + void (*fb_tilecopy)(struct fb_info *, struct fb_tilearea *);
1: + void (*fb_tilefill)(struct fb_info *, struct fb_tilerect *);
1: + void (*fb_tileblit)(struct fb_info *, struct fb_tileblit *);
1: + void (*fb_tilecursor)(struct fb_info *, struct fb_tilecursor *);
1: + int (*fb_get_tilemax)(struct fb_info *);
1: };
1:
1: struct aperture {
1: - resource_size_t base;
1: - resource_size_t size;
1: + resource_size_t base;
1: + resource_size_t size;
1: };
1:
1: struct apertures_struct {
1: - unsigned int count;
1: - struct aperture ranges[0];
1: + unsigned int count;
1: + struct aperture ranges[0];
1: };
1:
1: enum backlight_type {
1: - BACKLIGHT_RAW = 1,
1: - BACKLIGHT_PLATFORM = 2,
1: - BACKLIGHT_FIRMWARE = 3,
1: - BACKLIGHT_TYPE_MAX = 4,
1: + BACKLIGHT_RAW = 1,
1: + BACKLIGHT_PLATFORM = 2,
1: + BACKLIGHT_FIRMWARE = 3,
1: + BACKLIGHT_TYPE_MAX = 4,
1: };
1:
1: enum backlight_scale {
1: - BACKLIGHT_SCALE_UNKNOWN = 0,
1: - BACKLIGHT_SCALE_LINEAR = 1,
1: - BACKLIGHT_SCALE_NON_LINEAR = 2,
1: + BACKLIGHT_SCALE_UNKNOWN = 0,
1: + BACKLIGHT_SCALE_LINEAR = 1,
1: + BACKLIGHT_SCALE_NON_LINEAR = 2,
1: };
1:
1: struct backlight_properties {
1: - int brightness;
1: - int max_brightness;
1: - int power;
1: - int fb_blank;
1: - enum backlight_type type;
1: - unsigned int state;
1: - enum backlight_scale scale;
1: + int brightness;
1: + int max_brightness;
1: + int power;
1: + int fb_blank;
1: + enum backlight_type type;
1: + unsigned int state;
1: + enum backlight_scale scale;
1: };
1:
1: struct backlight_ops;
1:
1: struct backlight_device {
1: - struct backlight_properties props;
1: - struct mutex update_lock;
1: - struct mutex ops_lock;
1: - const struct backlight_ops *ops;
1: - struct notifier_block fb_notif;
1: - struct list_head entry;
1: - struct device dev;
1: - bool fb_bl_on[32];
1: - int use_count;
1: + struct backlight_properties props;
1: + struct mutex update_lock;
1: + struct mutex ops_lock;
1: + const struct backlight_ops *ops;
1: + struct notifier_block fb_notif;
1: + struct list_head entry;
1: + struct device dev;
1: + bool fb_bl_on[32];
1: + int use_count;
1: };
1:
1: enum backlight_update_reason {
1: - BACKLIGHT_UPDATE_HOTKEY = 0,
1: - BACKLIGHT_UPDATE_SYSFS = 1,
1: + BACKLIGHT_UPDATE_HOTKEY = 0,
1: + BACKLIGHT_UPDATE_SYSFS = 1,
1: };
1:
1: enum backlight_notification {
1: - BACKLIGHT_REGISTERED = 0,
1: - BACKLIGHT_UNREGISTERED = 1,
1: + BACKLIGHT_REGISTERED = 0,
1: + BACKLIGHT_UNREGISTERED = 1,
1: };
1:
1: struct backlight_ops {
1: - unsigned int options;
1: - int (*update_status)(struct backlight_device *);
1: - int (*get_brightness)(struct backlight_device *);
1: - int (*check_fb)(struct backlight_device *, struct fb_info *);
1: + unsigned int options;
1: + int (*update_status)(struct backlight_device *);
1: + int (*get_brightness)(struct backlight_device *);
1: + int (*check_fb)(struct backlight_device *, struct fb_info *);
1: };
1:
1: struct fb_cmap_user {
1: - __u32 start;
1: - __u32 len;
1: - __u16 *red;
1: - __u16 *green;
1: - __u16 *blue;
1: - __u16 *transp;
1: + __u32 start;
1: + __u32 len;
1: + __u16 *red;
1: + __u16 *green;
1: + __u16 *blue;
1: + __u16 *transp;
1: };
1:
1: struct fb_modelist {
1: - struct list_head list;
1: - struct fb_videomode mode;
1: + struct list_head list;
1: + struct fb_videomode mode;
1: };
1:
1: struct logo_data {
1: - int depth;
1: - int needs_directpalette;
1: - int needs_truepalette;
1: - int needs_cmapreset;
1: - const struct linux_logo *logo;
1: + int depth;
1: + int needs_directpalette;
1: + int needs_truepalette;
1: + int needs_cmapreset;
1: + const struct linux_logo *logo;
1: };
1:
1: struct fb_fix_screeninfo32 {
1: - char id[16];
1: - compat_caddr_t smem_start;
1: - u32 smem_len;
1: - u32 type;
1: - u32 type_aux;
1: - u32 visual;
1: - u16 xpanstep;
1: - u16 ypanstep;
1: - u16 ywrapstep;
1: - u32 line_length;
1: - compat_caddr_t mmio_start;
1: - u32 mmio_len;
1: - u32 accel;
1: - u16 reserved[3];
1: + char id[16];
1: + compat_caddr_t smem_start;
1: + u32 smem_len;
1: + u32 type;
1: + u32 type_aux;
1: + u32 visual;
1: + u16 xpanstep;
1: + u16 ypanstep;
1: + u16 ywrapstep;
1: + u32 line_length;
1: + compat_caddr_t mmio_start;
1: + u32 mmio_len;
1: + u32 accel;
1: + u16 reserved[3];
1: };
1:
1: struct fb_cmap32 {
1: - u32 start;
1: - u32 len;
1: - compat_caddr_t red;
1: - compat_caddr_t green;
1: - compat_caddr_t blue;
1: - compat_caddr_t transp;
1: + u32 start;
1: + u32 len;
1: + compat_caddr_t red;
1: + compat_caddr_t green;
1: + compat_caddr_t blue;
1: + compat_caddr_t transp;
1: };
1:
1: struct dmt_videomode {
1: - u32 dmt_id;
1: - u32 std_2byte_code;
1: - u32 cvt_3byte_code;
1: - const struct fb_videomode *mode;
1: + u32 dmt_id;
1: + u32 std_2byte_code;
1: + u32 cvt_3byte_code;
1: + const struct fb_videomode *mode;
1: };
1:
1: enum display_flags {
1: - DISPLAY_FLAGS_HSYNC_LOW = 1,
1: - DISPLAY_FLAGS_HSYNC_HIGH = 2,
1: - DISPLAY_FLAGS_VSYNC_LOW = 4,
1: - DISPLAY_FLAGS_VSYNC_HIGH = 8,
1: - DISPLAY_FLAGS_DE_LOW = 16,
1: - DISPLAY_FLAGS_DE_HIGH = 32,
1: - DISPLAY_FLAGS_PIXDATA_POSEDGE = 64,
1: - DISPLAY_FLAGS_PIXDATA_NEGEDGE = 128,
1: - DISPLAY_FLAGS_INTERLACED = 256,
1: - DISPLAY_FLAGS_DOUBLESCAN = 512,
1: - DISPLAY_FLAGS_DOUBLECLK = 1024,
1: - DISPLAY_FLAGS_SYNC_POSEDGE = 2048,
1: - DISPLAY_FLAGS_SYNC_NEGEDGE = 4096,
1: + DISPLAY_FLAGS_HSYNC_LOW = 1,
1: + DISPLAY_FLAGS_HSYNC_HIGH = 2,
1: + DISPLAY_FLAGS_VSYNC_LOW = 4,
1: + DISPLAY_FLAGS_VSYNC_HIGH = 8,
1: + DISPLAY_FLAGS_DE_LOW = 16,
1: + DISPLAY_FLAGS_DE_HIGH = 32,
1: + DISPLAY_FLAGS_PIXDATA_POSEDGE = 64,
1: + DISPLAY_FLAGS_PIXDATA_NEGEDGE = 128,
1: + DISPLAY_FLAGS_INTERLACED = 256,
1: + DISPLAY_FLAGS_DOUBLESCAN = 512,
1: + DISPLAY_FLAGS_DOUBLECLK = 1024,
1: + DISPLAY_FLAGS_SYNC_POSEDGE = 2048,
1: + DISPLAY_FLAGS_SYNC_NEGEDGE = 4096,
1: };
1:
1: struct videomode {
1: - long unsigned int pixelclock;
1: - u32 hactive;
1: - u32 hfront_porch;
1: - u32 hback_porch;
1: - u32 hsync_len;
1: - u32 vactive;
1: - u32 vfront_porch;
1: - u32 vback_porch;
1: - u32 vsync_len;
1: - enum display_flags flags;
1: + long unsigned int pixelclock;
1: + u32 hactive;
1: + u32 hfront_porch;
1: + u32 hback_porch;
1: + u32 hsync_len;
1: + u32 vactive;
1: + u32 vfront_porch;
1: + u32 vback_porch;
1: + u32 vsync_len;
1: + enum display_flags flags;
1: };
1:
1: struct broken_edid {
1: - u8 manufacturer[4];
1: - u32 model;
1: - u32 fix;
1: + u8 manufacturer[4];
1: + u32 model;
1: + u32 fix;
1: };
1:
1: struct __fb_timings {
1: - u32 dclk;
1: - u32 hfreq;
1: - u32 vfreq;
1: - u32 hactive;
1: - u32 vactive;
1: - u32 hblank;
1: - u32 vblank;
1: - u32 htotal;
1: - u32 vtotal;
1: + u32 dclk;
1: + u32 hfreq;
1: + u32 vfreq;
1: + u32 hactive;
1: + u32 vactive;
1: + u32 hblank;
1: + u32 vblank;
1: + u32 htotal;
1: + u32 vtotal;
1: };
1:
1: typedef unsigned int u_int;
1:
1: struct fb_cvt_data {
1: - u32 xres;
1: - u32 yres;
1: - u32 refresh;
1: - u32 f_refresh;
1: - u32 pixclock;
1: - u32 hperiod;
1: - u32 hblank;
1: - u32 hfreq;
1: - u32 htotal;
1: - u32 vtotal;
1: - u32 vsync;
1: - u32 hsync;
1: - u32 h_front_porch;
1: - u32 h_back_porch;
1: - u32 v_front_porch;
1: - u32 v_back_porch;
1: - u32 h_margin;
1: - u32 v_margin;
1: - u32 interlace;
1: - u32 aspect_ratio;
1: - u32 active_pixels;
1: - u32 flags;
1: - u32 status;
1: + u32 xres;
1: + u32 yres;
1: + u32 refresh;
1: + u32 f_refresh;
1: + u32 pixclock;
1: + u32 hperiod;
1: + u32 hblank;
1: + u32 hfreq;
1: + u32 htotal;
1: + u32 vtotal;
1: + u32 vsync;
1: + u32 hsync;
1: + u32 h_front_porch;
1: + u32 h_back_porch;
1: + u32 v_front_porch;
1: + u32 v_back_porch;
1: + u32 h_margin;
1: + u32 v_margin;
1: + u32 interlace;
1: + u32 aspect_ratio;
1: + u32 active_pixels;
1: + u32 flags;
1: + u32 status;
1: };
1:
1: typedef unsigned char u_char;
1: @@ -67626,567 +68601,569 @@ typedef unsigned char u_char;
1: typedef short unsigned int u_short;
1:
1: struct fb_con2fbmap {
1: - __u32 console;
1: - __u32 framebuffer;
1: + __u32 console;
1: + __u32 framebuffer;
1: };
1:
1: struct vc {
1: - struct vc_data *d;
1: - struct work_struct SAK_work;
1: + struct vc_data *d;
1: + struct work_struct SAK_work;
1: };
1:
1: struct fbcon_display {
1: - const u_char *fontdata;
1: - int userfont;
1: - u_short scrollmode;
1: - u_short inverse;
1: - short int yscroll;
1: - int vrows;
1: - int cursor_shape;
1: - int con_rotate;
1: - u32 xres_virtual;
1: - u32 yres_virtual;
1: - u32 height;
1: - u32 width;
1: - u32 bits_per_pixel;
1: - u32 grayscale;
1: - u32 nonstd;
1: - u32 accel_flags;
1: - u32 rotate;
1: - struct fb_bitfield red;
1: - struct fb_bitfield green;
1: - struct fb_bitfield blue;
1: - struct fb_bitfield transp;
1: - const struct fb_videomode *mode;
1: + const u_char *fontdata;
1: + int userfont;
1: + u_short scrollmode;
1: + u_short inverse;
1: + short int yscroll;
1: + int vrows;
1: + int cursor_shape;
1: + int con_rotate;
1: + u32 xres_virtual;
1: + u32 yres_virtual;
1: + u32 height;
1: + u32 width;
1: + u32 bits_per_pixel;
1: + u32 grayscale;
1: + u32 nonstd;
1: + u32 accel_flags;
1: + u32 rotate;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + const struct fb_videomode *mode;
1: };
1:
1: struct fbcon_ops {
1: - void (*bmove)(struct vc_data *, struct fb_info *, int, int, int, int, int, int);
1: - void (*clear)(struct vc_data *, struct fb_info *, int, int, int, int);
1: - void (*putcs)(struct vc_data *, struct fb_info *, const short unsigned int *, int, int, int, int, int);
1: - void (*clear_margins)(struct vc_data *, struct fb_info *, int, int);
1: - void (*cursor)(struct vc_data *, struct fb_info *, int, int, int);
1: - int (*update_start)(struct fb_info *);
1: - int (*rotate_font)(struct fb_info *, struct vc_data *);
1: - struct fb_var_screeninfo var;
1: - struct timer_list cursor_timer;
1: - struct fb_cursor cursor_state;
1: - struct fbcon_display *p;
1: - struct fb_info *info;
1: - int currcon;
1: - int cur_blink_jiffies;
1: - int cursor_flash;
1: - int cursor_reset;
1: - int blank_state;
1: - int graphics;
1: - int save_graphics;
1: - int flags;
1: - int rotate;
1: - int cur_rotate;
1: - char *cursor_data;
1: - u8 *fontbuffer;
1: - u8 *fontdata;
1: - u8 *cursor_src;
1: - u32 cursor_size;
1: - u32 fd_size;
1: -};
1: -
1: -enum {
1: - FBCON_LOGO_CANSHOW = 4294967295,
1: - FBCON_LOGO_DRAW = 4294967294,
1: - FBCON_LOGO_DONTSHOW = 4294967293,
1: -};
1: -
1: -enum {
1: - CLCD_CAP_RGB444 = 1,
1: - CLCD_CAP_RGB5551 = 2,
1: - CLCD_CAP_RGB565 = 4,
1: - CLCD_CAP_RGB888 = 8,
1: - CLCD_CAP_BGR444 = 16,
1: - CLCD_CAP_BGR5551 = 32,
1: - CLCD_CAP_BGR565 = 64,
1: - CLCD_CAP_BGR888 = 128,
1: - CLCD_CAP_444 = 17,
1: - CLCD_CAP_5551 = 34,
1: - CLCD_CAP_565 = 68,
1: - CLCD_CAP_888 = 136,
1: - CLCD_CAP_RGB = 15,
1: - CLCD_CAP_BGR = 240,
1: - CLCD_CAP_ALL = 255,
1: + void (*bmove)(struct vc_data *, struct fb_info *, int, int, int, int, int,
1: + int);
1: + void (*clear)(struct vc_data *, struct fb_info *, int, int, int, int);
1: + void (*putcs)(struct vc_data *, struct fb_info *, const short unsigned int *,
1: + int, int, int, int, int);
1: + void (*clear_margins)(struct vc_data *, struct fb_info *, int, int);
1: + void (*cursor)(struct vc_data *, struct fb_info *, int, int, int);
1: + int (*update_start)(struct fb_info *);
1: + int (*rotate_font)(struct fb_info *, struct vc_data *);
1: + struct fb_var_screeninfo var;
1: + struct timer_list cursor_timer;
1: + struct fb_cursor cursor_state;
1: + struct fbcon_display *p;
1: + struct fb_info *info;
1: + int currcon;
1: + int cur_blink_jiffies;
1: + int cursor_flash;
1: + int cursor_reset;
1: + int blank_state;
1: + int graphics;
1: + int save_graphics;
1: + int flags;
1: + int rotate;
1: + int cur_rotate;
1: + char *cursor_data;
1: + u8 *fontbuffer;
1: + u8 *fontdata;
1: + u8 *cursor_src;
1: + u32 cursor_size;
1: + u32 fd_size;
1: +};
1: +
1: +enum {
1: + FBCON_LOGO_CANSHOW = 4294967295,
1: + FBCON_LOGO_DRAW = 4294967294,
1: + FBCON_LOGO_DONTSHOW = 4294967293,
1: +};
1: +
1: +enum {
1: + CLCD_CAP_RGB444 = 1,
1: + CLCD_CAP_RGB5551 = 2,
1: + CLCD_CAP_RGB565 = 4,
1: + CLCD_CAP_RGB888 = 8,
1: + CLCD_CAP_BGR444 = 16,
1: + CLCD_CAP_BGR5551 = 32,
1: + CLCD_CAP_BGR565 = 64,
1: + CLCD_CAP_BGR888 = 128,
1: + CLCD_CAP_444 = 17,
1: + CLCD_CAP_5551 = 34,
1: + CLCD_CAP_565 = 68,
1: + CLCD_CAP_888 = 136,
1: + CLCD_CAP_RGB = 15,
1: + CLCD_CAP_BGR = 240,
1: + CLCD_CAP_ALL = 255,
1: };
1:
1: struct clcd_panel {
1: - struct fb_videomode mode;
1: - short int width;
1: - short int height;
1: - u32 tim2;
1: - u32 tim3;
1: - u32 cntl;
1: - u32 caps;
1: - unsigned int bpp: 8;
1: - unsigned int fixedtimings: 1;
1: - unsigned int grayscale: 1;
1: - unsigned int connector;
1: - struct backlight_device *backlight;
1: - bool bgr_connection;
1: + struct fb_videomode mode;
1: + short int width;
1: + short int height;
1: + u32 tim2;
1: + u32 tim3;
1: + u32 cntl;
1: + u32 caps;
1: + unsigned int bpp : 8;
1: + unsigned int fixedtimings : 1;
1: + unsigned int grayscale : 1;
1: + unsigned int connector;
1: + struct backlight_device *backlight;
1: + bool bgr_connection;
1: };
1:
1: struct clcd_regs {
1: - u32 tim0;
1: - u32 tim1;
1: - u32 tim2;
1: - u32 tim3;
1: - u32 cntl;
1: - long unsigned int pixclock;
1: + u32 tim0;
1: + u32 tim1;
1: + u32 tim2;
1: + u32 tim3;
1: + u32 cntl;
1: + long unsigned int pixclock;
1: };
1:
1: struct clcd_fb;
1:
1: struct clcd_board {
1: - const char *name;
1: - u32 caps;
1: - int (*check)(struct clcd_fb *, struct fb_var_screeninfo *);
1: - void (*decode)(struct clcd_fb *, struct clcd_regs *);
1: - void (*disable)(struct clcd_fb *);
1: - void (*enable)(struct clcd_fb *);
1: - int (*setup)(struct clcd_fb *);
1: - int (*mmap)(struct clcd_fb *, struct vm_area_struct *);
1: - void (*remove)(struct clcd_fb *);
1: + const char *name;
1: + u32 caps;
1: + int (*check)(struct clcd_fb *, struct fb_var_screeninfo *);
1: + void (*decode)(struct clcd_fb *, struct clcd_regs *);
1: + void (*disable)(struct clcd_fb *);
1: + void (*enable)(struct clcd_fb *);
1: + int (*setup)(struct clcd_fb *);
1: + int (*mmap)(struct clcd_fb *, struct vm_area_struct *);
1: + void (*remove)(struct clcd_fb *);
1: };
1:
1: struct clcd_fb {
1: - struct fb_info fb;
1: - struct amba_device *dev;
1: - struct clk *clk;
1: - struct clcd_panel *panel;
1: - struct clcd_board *board;
1: - void *board_data;
1: - void *regs;
1: - u16 off_ienb;
1: - u16 off_cntl;
1: - u32 clcd_cntl;
1: - u32 cmap[16];
1: - bool clk_enabled;
1: + struct fb_info fb;
1: + struct amba_device *dev;
1: + struct clk *clk;
1: + struct clcd_panel *panel;
1: + struct clcd_board *board;
1: + void *board_data;
1: + void *regs;
1: + u16 off_ienb;
1: + u16 off_cntl;
1: + u32 clcd_cntl;
1: + u32 cmap[16];
1: + bool clk_enabled;
1: };
1:
1: struct timing_entry {
1: - u32 min;
1: - u32 typ;
1: - u32 max;
1: + u32 min;
1: + u32 typ;
1: + u32 max;
1: };
1:
1: struct display_timing {
1: - struct timing_entry pixelclock;
1: - struct timing_entry hactive;
1: - struct timing_entry hfront_porch;
1: - struct timing_entry hback_porch;
1: - struct timing_entry hsync_len;
1: - struct timing_entry vactive;
1: - struct timing_entry vfront_porch;
1: - struct timing_entry vback_porch;
1: - struct timing_entry vsync_len;
1: - enum display_flags flags;
1: + struct timing_entry pixelclock;
1: + struct timing_entry hactive;
1: + struct timing_entry hfront_porch;
1: + struct timing_entry hback_porch;
1: + struct timing_entry hsync_len;
1: + struct timing_entry vactive;
1: + struct timing_entry vfront_porch;
1: + struct timing_entry vback_porch;
1: + struct timing_entry vsync_len;
1: + enum display_flags flags;
1: };
1:
1: struct xenfb_update {
1: - uint8_t type;
1: - int32_t x;
1: - int32_t y;
1: - int32_t width;
1: - int32_t height;
1: + uint8_t type;
1: + int32_t x;
1: + int32_t y;
1: + int32_t width;
1: + int32_t height;
1: };
1:
1: struct xenfb_resize {
1: - uint8_t type;
1: - int32_t width;
1: - int32_t height;
1: - int32_t stride;
1: - int32_t depth;
1: - int32_t offset;
1: + uint8_t type;
1: + int32_t width;
1: + int32_t height;
1: + int32_t stride;
1: + int32_t depth;
1: + int32_t offset;
1: };
1:
1: union xenfb_out_event {
1: - uint8_t type;
1: - struct xenfb_update update;
1: - struct xenfb_resize resize;
1: - char pad[40];
1: + uint8_t type;
1: + struct xenfb_update update;
1: + struct xenfb_resize resize;
1: + char pad[40];
1: };
1:
1: struct xenfb_page {
1: - uint32_t in_cons;
1: - uint32_t in_prod;
1: - uint32_t out_cons;
1: - uint32_t out_prod;
1: - int32_t width;
1: - int32_t height;
1: - uint32_t line_length;
1: - uint32_t mem_length;
1: - uint8_t depth;
1: - long unsigned int pd[256];
1: + uint32_t in_cons;
1: + uint32_t in_prod;
1: + uint32_t out_cons;
1: + uint32_t out_prod;
1: + int32_t width;
1: + int32_t height;
1: + uint32_t line_length;
1: + uint32_t mem_length;
1: + uint8_t depth;
1: + long unsigned int pd[256];
1: };
1:
1: enum xenbus_state {
1: - XenbusStateUnknown = 0,
1: - XenbusStateInitialising = 1,
1: - XenbusStateInitWait = 2,
1: - XenbusStateInitialised = 3,
1: - XenbusStateConnected = 4,
1: - XenbusStateClosing = 5,
1: - XenbusStateClosed = 6,
1: - XenbusStateReconfiguring = 7,
1: - XenbusStateReconfigured = 8,
1: + XenbusStateUnknown = 0,
1: + XenbusStateInitialising = 1,
1: + XenbusStateInitWait = 2,
1: + XenbusStateInitialised = 3,
1: + XenbusStateConnected = 4,
1: + XenbusStateClosing = 5,
1: + XenbusStateClosed = 6,
1: + XenbusStateReconfiguring = 7,
1: + XenbusStateReconfigured = 8,
1: };
1:
1: struct xenbus_watch {
1: - struct list_head list;
1: - const char *node;
1: - unsigned int nr_pending;
1: - bool (*will_handle)(struct xenbus_watch *, const char *, const char *);
1: - void (*callback)(struct xenbus_watch *, const char *, const char *);
1: + struct list_head list;
1: + const char *node;
1: + unsigned int nr_pending;
1: + bool (*will_handle)(struct xenbus_watch *, const char *, const char *);
1: + void (*callback)(struct xenbus_watch *, const char *, const char *);
1: };
1:
1: struct xenbus_device {
1: - const char *devicetype;
1: - const char *nodename;
1: - const char *otherend;
1: - int otherend_id;
1: - struct xenbus_watch otherend_watch;
1: - struct device dev;
1: - enum xenbus_state state;
1: - struct completion down;
1: - struct work_struct work;
1: - struct semaphore reclaim_sem;
1: + const char *devicetype;
1: + const char *nodename;
1: + const char *otherend;
1: + int otherend_id;
1: + struct xenbus_watch otherend_watch;
1: + struct device dev;
1: + enum xenbus_state state;
1: + struct completion down;
1: + struct work_struct work;
1: + struct semaphore reclaim_sem;
1: };
1:
1: struct xenbus_device_id {
1: - char devicetype[32];
1: + char devicetype[32];
1: };
1:
1: struct xenbus_driver {
1: - const char *name;
1: - const struct xenbus_device_id *ids;
1: - bool allow_rebind;
1: - int (*probe)(struct xenbus_device *, const struct xenbus_device_id *);
1: - void (*otherend_changed)(struct xenbus_device *, enum xenbus_state);
1: - int (*remove)(struct xenbus_device *);
1: - int (*suspend)(struct xenbus_device *);
1: - int (*resume)(struct xenbus_device *);
1: - int (*uevent)(struct xenbus_device *, struct kobj_uevent_env *);
1: - struct device_driver driver;
1: - int (*read_otherend_details)(struct xenbus_device *);
1: - int (*is_ready)(struct xenbus_device *);
1: - void (*reclaim_memory)(struct xenbus_device *);
1: + const char *name;
1: + const struct xenbus_device_id *ids;
1: + bool allow_rebind;
1: + int (*probe)(struct xenbus_device *, const struct xenbus_device_id *);
1: + void (*otherend_changed)(struct xenbus_device *, enum xenbus_state);
1: + int (*remove)(struct xenbus_device *);
1: + int (*suspend)(struct xenbus_device *);
1: + int (*resume)(struct xenbus_device *);
1: + int (*uevent)(struct xenbus_device *, struct kobj_uevent_env *);
1: + struct device_driver driver;
1: + int (*read_otherend_details)(struct xenbus_device *);
1: + int (*is_ready)(struct xenbus_device *);
1: + void (*reclaim_memory)(struct xenbus_device *);
1: };
1:
1: struct xenbus_transaction {
1: - u32 id;
1: + u32 id;
1: };
1:
1: struct xenfb_info {
1: - unsigned char *fb;
1: - struct fb_info *fb_info;
1: - int x1;
1: - int y1;
1: - int x2;
1: - int y2;
1: - spinlock_t dirty_lock;
1: - int nr_pages;
1: - int irq;
1: - struct xenfb_page *page;
1: - long unsigned int *gfns;
1: - int update_wanted;
1: - int feature_resize;
1: - struct xenfb_resize resize;
1: - int resize_dpy;
1: - spinlock_t resize_lock;
1: - struct xenbus_device *xbdev;
1: -};
1: -
1: -enum {
1: - KPARAM_MEM = 0,
1: - KPARAM_WIDTH = 1,
1: - KPARAM_HEIGHT = 2,
1: - KPARAM_CNT = 3,
1: + unsigned char *fb;
1: + struct fb_info *fb_info;
1: + int x1;
1: + int y1;
1: + int x2;
1: + int y2;
1: + spinlock_t dirty_lock;
1: + int nr_pages;
1: + int irq;
1: + struct xenfb_page *page;
1: + long unsigned int *gfns;
1: + int update_wanted;
1: + int feature_resize;
1: + struct xenfb_resize resize;
1: + int resize_dpy;
1: + spinlock_t resize_lock;
1: + struct xenbus_device *xbdev;
1: +};
1: +
1: +enum {
1: + KPARAM_MEM = 0,
1: + KPARAM_WIDTH = 1,
1: + KPARAM_HEIGHT = 2,
1: + KPARAM_CNT = 3,
1: };
1:
1: struct acpi_table_bgrt {
1: - struct acpi_table_header header;
1: - u16 version;
1: - u8 status;
1: - u8 image_type;
1: - u64 image_address;
1: - u32 image_offset_x;
1: - u32 image_offset_y;
1: + struct acpi_table_header header;
1: + u16 version;
1: + u8 status;
1: + u8 image_type;
1: + u64 image_address;
1: + u32 image_offset_x;
1: + u32 image_offset_y;
1: };
1:
1: enum drm_panel_orientation {
1: - DRM_MODE_PANEL_ORIENTATION_UNKNOWN = 4294967295,
1: - DRM_MODE_PANEL_ORIENTATION_NORMAL = 0,
1: - DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP = 1,
1: - DRM_MODE_PANEL_ORIENTATION_LEFT_UP = 2,
1: - DRM_MODE_PANEL_ORIENTATION_RIGHT_UP = 3,
1: + DRM_MODE_PANEL_ORIENTATION_UNKNOWN = 4294967295,
1: + DRM_MODE_PANEL_ORIENTATION_NORMAL = 0,
1: + DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP = 1,
1: + DRM_MODE_PANEL_ORIENTATION_LEFT_UP = 2,
1: + DRM_MODE_PANEL_ORIENTATION_RIGHT_UP = 3,
1: };
1:
1: struct bmp_file_header {
1: - u16 id;
1: - u32 file_size;
1: - u32 reserved;
1: - u32 bitmap_offset;
1: + u16 id;
1: + u32 file_size;
1: + u32 reserved;
1: + u32 bitmap_offset;
1: } __attribute__((packed));
1:
1: struct bmp_dib_header {
1: - u32 dib_header_size;
1: - s32 width;
1: - s32 height;
1: - u16 planes;
1: - u16 bpp;
1: - u32 compression;
1: - u32 bitmap_size;
1: - u32 horz_resolution;
1: - u32 vert_resolution;
1: - u32 colors_used;
1: - u32 colors_important;
1: + u32 dib_header_size;
1: + s32 width;
1: + s32 height;
1: + u16 planes;
1: + u16 bpp;
1: + u32 compression;
1: + u32 bitmap_size;
1: + u32 horz_resolution;
1: + u32 vert_resolution;
1: + u32 colors_used;
1: + u32 colors_important;
1: };
1:
1: struct simplefb_format {
1: - const char *name;
1: - u32 bits_per_pixel;
1: - struct fb_bitfield red;
1: - struct fb_bitfield green;
1: - struct fb_bitfield blue;
1: - struct fb_bitfield transp;
1: - u32 fourcc;
1: + const char *name;
1: + u32 bits_per_pixel;
1: + struct fb_bitfield red;
1: + struct fb_bitfield green;
1: + struct fb_bitfield blue;
1: + struct fb_bitfield transp;
1: + u32 fourcc;
1: };
1:
1: struct simplefb_platform_data {
1: - u32 width;
1: - u32 height;
1: - u32 stride;
1: - const char *format;
1: + u32 width;
1: + u32 height;
1: + u32 stride;
1: + const char *format;
1: };
1:
1: struct simplefb_params {
1: - u32 width;
1: - u32 height;
1: - u32 stride;
1: - struct simplefb_format *format;
1: + u32 width;
1: + u32 height;
1: + u32 stride;
1: + struct simplefb_format *format;
1: };
1:
1: struct simplefb_par {
1: - u32 palette[16];
1: - bool clks_enabled;
1: - unsigned int clk_count;
1: - struct clk **clks;
1: - bool regulators_enabled;
1: - u32 regulator_count;
1: - struct regulator **regulators;
1: + u32 palette[16];
1: + bool clks_enabled;
1: + unsigned int clk_count;
1: + struct clk **clks;
1: + bool regulators_enabled;
1: + u32 regulator_count;
1: + struct regulator **regulators;
1: };
1:
1: struct display_timings {
1: - unsigned int num_timings;
1: - unsigned int native_mode;
1: - struct display_timing **timings;
1: + unsigned int num_timings;
1: + unsigned int native_mode;
1: + struct display_timing **timings;
1: };
1:
1: enum ipmi_addr_src {
1: - SI_INVALID = 0,
1: - SI_HOTMOD = 1,
1: - SI_HARDCODED = 2,
1: - SI_SPMI = 3,
1: - SI_ACPI = 4,
1: - SI_SMBIOS = 5,
1: - SI_PCI = 6,
1: - SI_DEVICETREE = 7,
1: - SI_PLATFORM = 8,
1: - SI_LAST = 9,
1: + SI_INVALID = 0,
1: + SI_HOTMOD = 1,
1: + SI_HARDCODED = 2,
1: + SI_SPMI = 3,
1: + SI_ACPI = 4,
1: + SI_SMBIOS = 5,
1: + SI_PCI = 6,
1: + SI_DEVICETREE = 7,
1: + SI_PLATFORM = 8,
1: + SI_LAST = 9,
1: };
1:
1: struct dmi_header {
1: - u8 type;
1: - u8 length;
1: - u16 handle;
1: + u8 type;
1: + u8 length;
1: + u16 handle;
1: };
1:
1: enum si_type {
1: - SI_TYPE_INVALID = 0,
1: - SI_KCS = 1,
1: - SI_SMIC = 2,
1: - SI_BT = 3,
1: + SI_TYPE_INVALID = 0,
1: + SI_KCS = 1,
1: + SI_SMIC = 2,
1: + SI_BT = 3,
1: };
1:
1: enum ipmi_addr_space {
1: - IPMI_IO_ADDR_SPACE = 0,
1: - IPMI_MEM_ADDR_SPACE = 1,
1: + IPMI_IO_ADDR_SPACE = 0,
1: + IPMI_MEM_ADDR_SPACE = 1,
1: };
1:
1: enum ipmi_plat_interface_type {
1: - IPMI_PLAT_IF_SI = 0,
1: - IPMI_PLAT_IF_SSIF = 1,
1: + IPMI_PLAT_IF_SI = 0,
1: + IPMI_PLAT_IF_SSIF = 1,
1: };
1:
1: struct ipmi_plat_data {
1: - enum ipmi_plat_interface_type iftype;
1: - unsigned int type;
1: - unsigned int space;
1: - long unsigned int addr;
1: - unsigned int regspacing;
1: - unsigned int regsize;
1: - unsigned int regshift;
1: - unsigned int irq;
1: - unsigned int slave_addr;
1: - enum ipmi_addr_src addr_source;
1: + enum ipmi_plat_interface_type iftype;
1: + unsigned int type;
1: + unsigned int space;
1: + long unsigned int addr;
1: + unsigned int regspacing;
1: + unsigned int regsize;
1: + unsigned int regshift;
1: + unsigned int irq;
1: + unsigned int slave_addr;
1: + enum ipmi_addr_src addr_source;
1: };
1:
1: struct ipmi_dmi_info {
1: - enum si_type si_type;
1: - unsigned int space;
1: - long unsigned int addr;
1: - u8 slave_addr;
1: - struct ipmi_dmi_info *next;
1: + enum si_type si_type;
1: + unsigned int space;
1: + long unsigned int addr;
1: + u8 slave_addr;
1: + struct ipmi_dmi_info *next;
1: };
1:
1: typedef u16 acpi_owner_id;
1:
1: union acpi_name_union {
1: - u32 integer;
1: - char ascii[4];
1: + u32 integer;
1: + char ascii[4];
1: };
1:
1: struct acpi_table_desc {
1: - acpi_physical_address address;
1: - struct acpi_table_header *pointer;
1: - u32 length;
1: - union acpi_name_union signature;
1: - acpi_owner_id owner_id;
1: - u8 flags;
1: - u16 validation_count;
1: + acpi_physical_address address;
1: + struct acpi_table_header *pointer;
1: + u32 length;
1: + union acpi_name_union signature;
1: + acpi_owner_id owner_id;
1: + u8 flags;
1: + u16 validation_count;
1: };
1:
1: struct acpi_madt_local_apic {
1: - struct acpi_subtable_header header;
1: - u8 processor_id;
1: - u8 id;
1: - u32 lapic_flags;
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u8 id;
1: + u32 lapic_flags;
1: };
1:
1: struct acpi_madt_io_apic {
1: - struct acpi_subtable_header header;
1: - u8 id;
1: - u8 reserved;
1: - u32 address;
1: - u32 global_irq_base;
1: + struct acpi_subtable_header header;
1: + u8 id;
1: + u8 reserved;
1: + u32 address;
1: + u32 global_irq_base;
1: };
1:
1: struct acpi_madt_interrupt_override {
1: - struct acpi_subtable_header header;
1: - u8 bus;
1: - u8 source_irq;
1: - u32 global_irq;
1: - u16 inti_flags;
1: + struct acpi_subtable_header header;
1: + u8 bus;
1: + u8 source_irq;
1: + u32 global_irq;
1: + u16 inti_flags;
1: } __attribute__((packed));
1:
1: struct acpi_madt_nmi_source {
1: - struct acpi_subtable_header header;
1: - u16 inti_flags;
1: - u32 global_irq;
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u32 global_irq;
1: };
1:
1: struct acpi_madt_local_apic_nmi {
1: - struct acpi_subtable_header header;
1: - u8 processor_id;
1: - u16 inti_flags;
1: - u8 lint;
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u16 inti_flags;
1: + u8 lint;
1: } __attribute__((packed));
1:
1: struct acpi_madt_local_apic_override {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u64 address;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct acpi_madt_io_sapic {
1: - struct acpi_subtable_header header;
1: - u8 id;
1: - u8 reserved;
1: - u32 global_irq_base;
1: - u64 address;
1: + struct acpi_subtable_header header;
1: + u8 id;
1: + u8 reserved;
1: + u32 global_irq_base;
1: + u64 address;
1: };
1:
1: struct acpi_madt_local_sapic {
1: - struct acpi_subtable_header header;
1: - u8 processor_id;
1: - u8 id;
1: - u8 eid;
1: - u8 reserved[3];
1: - u32 lapic_flags;
1: - u32 uid;
1: - char uid_string[1];
1: + struct acpi_subtable_header header;
1: + u8 processor_id;
1: + u8 id;
1: + u8 eid;
1: + u8 reserved[3];
1: + u32 lapic_flags;
1: + u32 uid;
1: + char uid_string[1];
1: } __attribute__((packed));
1:
1: struct acpi_madt_interrupt_source {
1: - struct acpi_subtable_header header;
1: - u16 inti_flags;
1: - u8 type;
1: - u8 id;
1: - u8 eid;
1: - u8 io_sapic_vector;
1: - u32 global_irq;
1: - u32 flags;
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u8 type;
1: + u8 id;
1: + u8 eid;
1: + u8 io_sapic_vector;
1: + u32 global_irq;
1: + u32 flags;
1: };
1:
1: struct acpi_madt_local_x2apic {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 local_apic_id;
1: - u32 lapic_flags;
1: - u32 uid;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 local_apic_id;
1: + u32 lapic_flags;
1: + u32 uid;
1: };
1:
1: struct acpi_madt_local_x2apic_nmi {
1: - struct acpi_subtable_header header;
1: - u16 inti_flags;
1: - u32 uid;
1: - u8 lint;
1: - u8 reserved[3];
1: + struct acpi_subtable_header header;
1: + u16 inti_flags;
1: + u32 uid;
1: + u8 lint;
1: + u8 reserved[3];
1: };
1:
1: struct acpi_subtable_proc {
1: - int id;
1: - acpi_tbl_entry_handler handler;
1: - int count;
1: + int id;
1: + acpi_tbl_entry_handler handler;
1: + int count;
1: };
1:
1: enum acpi_subtable_type {
1: - ACPI_SUBTABLE_COMMON = 0,
1: - ACPI_SUBTABLE_HMAT = 1,
1: + ACPI_SUBTABLE_COMMON = 0,
1: + ACPI_SUBTABLE_HMAT = 1,
1: };
1:
1: struct acpi_subtable_entry {
1: - union acpi_subtable_headers *hdr;
1: - enum acpi_subtable_type type;
1: + union acpi_subtable_headers *hdr;
1: + enum acpi_subtable_type type;
1: };
1:
1: typedef char *acpi_string;
1:
1: struct acpi_osi_entry {
1: - char string[64];
1: - bool enable;
1: + char string[64];
1: + bool enable;
1: };
1:
1: struct acpi_osi_config {
1: - u8 default_disabling;
1: - unsigned int linux_enable: 1;
1: - unsigned int linux_dmi: 1;
1: - unsigned int linux_cmdline: 1;
1: - unsigned int darwin_enable: 1;
1: - unsigned int darwin_dmi: 1;
1: - unsigned int darwin_cmdline: 1;
1: + u8 default_disabling;
1: + unsigned int linux_enable : 1;
1: + unsigned int linux_dmi : 1;
1: + unsigned int linux_cmdline : 1;
1: + unsigned int darwin_enable : 1;
1: + unsigned int darwin_dmi : 1;
1: + unsigned int darwin_cmdline : 1;
1: };
1:
1: struct acpi_predefined_names {
1: - const char *name;
1: - u8 type;
1: - char *val;
1: + const char *name;
1: + u8 type;
1: + char *val;
1: };
1:
1: typedef u32 (*acpi_osd_handler)(void *);
1: @@ -68199,116 +69176,117 @@ typedef void (*acpi_notify_handler)(acpi_handle, u32, void *);
1:
1: typedef void (*acpi_object_handler)(acpi_handle, void *);
1:
1: -typedef acpi_status (*acpi_adr_space_handler)(u32, acpi_physical_address, u32, u64 *, void *, void *);
1: +typedef acpi_status (*acpi_adr_space_handler)(u32, acpi_physical_address, u32,
1: + u64 *, void *, void *);
1:
1: typedef acpi_status (*acpi_adr_space_setup)(acpi_handle, u32, void *, void **);
1:
1: struct acpi_pci_id {
1: - u16 segment;
1: - u16 bus;
1: - u16 device;
1: - u16 function;
1: + u16 segment;
1: + u16 bus;
1: + u16 device;
1: + u16 function;
1: };
1:
1: struct acpi_mem_mapping {
1: - acpi_physical_address physical_address;
1: - u8 *logical_address;
1: - acpi_size length;
1: - struct acpi_mem_mapping *next_mm;
1: + acpi_physical_address physical_address;
1: + u8 *logical_address;
1: + acpi_size length;
1: + struct acpi_mem_mapping *next_mm;
1: };
1:
1: struct acpi_mem_space_context {
1: - u32 length;
1: - acpi_physical_address address;
1: - struct acpi_mem_mapping *cur_mm;
1: - struct acpi_mem_mapping *first_mm;
1: + u32 length;
1: + acpi_physical_address address;
1: + struct acpi_mem_mapping *cur_mm;
1: + struct acpi_mem_mapping *first_mm;
1: };
1:
1: typedef enum {
1: - OSL_GLOBAL_LOCK_HANDLER = 0,
1: - OSL_NOTIFY_HANDLER = 1,
1: - OSL_GPE_HANDLER = 2,
1: - OSL_DEBUGGER_MAIN_THREAD = 3,
1: - OSL_DEBUGGER_EXEC_THREAD = 4,
1: - OSL_EC_POLL_HANDLER = 5,
1: - OSL_EC_BURST_HANDLER = 6,
1: + OSL_GLOBAL_LOCK_HANDLER = 0,
1: + OSL_NOTIFY_HANDLER = 1,
1: + OSL_GPE_HANDLER = 2,
1: + OSL_DEBUGGER_MAIN_THREAD = 3,
1: + OSL_DEBUGGER_EXEC_THREAD = 4,
1: + OSL_EC_POLL_HANDLER = 5,
1: + OSL_EC_BURST_HANDLER = 6,
1: } acpi_execute_type;
1:
1: union acpi_operand_object;
1:
1: struct acpi_namespace_node {
1: - union acpi_operand_object *object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 flags;
1: - union acpi_name_union name;
1: - struct acpi_namespace_node *parent;
1: - struct acpi_namespace_node *child;
1: - struct acpi_namespace_node *peer;
1: - acpi_owner_id owner_id;
1: + union acpi_operand_object *object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 flags;
1: + union acpi_name_union name;
1: + struct acpi_namespace_node *parent;
1: + struct acpi_namespace_node *child;
1: + struct acpi_namespace_node *peer;
1: + acpi_owner_id owner_id;
1: };
1:
1: struct acpi_object_common {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: };
1:
1: struct acpi_object_integer {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 fill[3];
1: - u64 value;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 fill[3];
1: + u64 value;
1: };
1:
1: struct acpi_object_string {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - char *pointer;
1: - u32 length;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + char *pointer;
1: + u32 length;
1: };
1:
1: struct acpi_object_buffer {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 *pointer;
1: - u32 length;
1: - u32 aml_length;
1: - u8 *aml_start;
1: - struct acpi_namespace_node *node;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 *pointer;
1: + u32 length;
1: + u32 aml_length;
1: + u8 *aml_start;
1: + struct acpi_namespace_node *node;
1: };
1:
1: struct acpi_object_package {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - struct acpi_namespace_node *node;
1: - union acpi_operand_object **elements;
1: - u8 *aml_start;
1: - u32 aml_length;
1: - u32 count;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object **elements;
1: + u8 *aml_start;
1: + u32 aml_length;
1: + u32 count;
1: };
1:
1: struct acpi_object_event {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - void *os_semaphore;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + void *os_semaphore;
1: };
1:
1: struct acpi_walk_state;
1: @@ -68316,319 +69294,319 @@ struct acpi_walk_state;
1: typedef acpi_status (*acpi_internal_method)(struct acpi_walk_state *);
1:
1: struct acpi_object_method {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 info_flags;
1: - u8 param_count;
1: - u8 sync_level;
1: - union acpi_operand_object *mutex;
1: - union acpi_operand_object *node;
1: - u8 *aml_start;
1: - union {
1: - acpi_internal_method implementation;
1: - union acpi_operand_object *handler;
1: - } dispatch;
1: - u32 aml_length;
1: - acpi_owner_id owner_id;
1: - u8 thread_count;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 info_flags;
1: + u8 param_count;
1: + u8 sync_level;
1: + union acpi_operand_object *mutex;
1: + union acpi_operand_object *node;
1: + u8 *aml_start;
1: + union {
1: + acpi_internal_method implementation;
1: + union acpi_operand_object *handler;
1: + } dispatch;
1: + u32 aml_length;
1: + acpi_owner_id owner_id;
1: + u8 thread_count;
1: };
1:
1: struct acpi_thread_state;
1:
1: struct acpi_object_mutex {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 sync_level;
1: - u16 acquisition_depth;
1: - void *os_mutex;
1: - u64 thread_id;
1: - struct acpi_thread_state *owner_thread;
1: - union acpi_operand_object *prev;
1: - union acpi_operand_object *next;
1: - struct acpi_namespace_node *node;
1: - u8 original_sync_level;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 sync_level;
1: + u16 acquisition_depth;
1: + void *os_mutex;
1: + u64 thread_id;
1: + struct acpi_thread_state *owner_thread;
1: + union acpi_operand_object *prev;
1: + union acpi_operand_object *next;
1: + struct acpi_namespace_node *node;
1: + u8 original_sync_level;
1: };
1:
1: struct acpi_object_region {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 space_id;
1: - struct acpi_namespace_node *node;
1: - union acpi_operand_object *handler;
1: - union acpi_operand_object *next;
1: - acpi_physical_address address;
1: - u32 length;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 space_id;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *handler;
1: + union acpi_operand_object *next;
1: + acpi_physical_address address;
1: + u32 length;
1: };
1:
1: struct acpi_object_notify_common {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - union acpi_operand_object *notify_list[2];
1: - union acpi_operand_object *handler;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: };
1:
1: struct acpi_gpe_block_info;
1:
1: struct acpi_object_device {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - union acpi_operand_object *notify_list[2];
1: - union acpi_operand_object *handler;
1: - struct acpi_gpe_block_info *gpe_block;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + struct acpi_gpe_block_info *gpe_block;
1: };
1:
1: struct acpi_object_power_resource {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - union acpi_operand_object *notify_list[2];
1: - union acpi_operand_object *handler;
1: - u32 system_level;
1: - u32 resource_order;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + u32 system_level;
1: + u32 resource_order;
1: };
1:
1: struct acpi_object_processor {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 proc_id;
1: - u8 length;
1: - union acpi_operand_object *notify_list[2];
1: - union acpi_operand_object *handler;
1: - acpi_io_address address;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 proc_id;
1: + u8 length;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: + acpi_io_address address;
1: };
1:
1: struct acpi_object_thermal_zone {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - union acpi_operand_object *notify_list[2];
1: - union acpi_operand_object *handler;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *notify_list[2];
1: + union acpi_operand_object *handler;
1: };
1:
1: struct acpi_object_field_common {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 access_byte_width;
1: - struct acpi_namespace_node *node;
1: - u32 bit_length;
1: - u32 base_byte_offset;
1: - u32 value;
1: - u8 start_field_bit_offset;
1: - u8 access_length;
1: - union acpi_operand_object *region_obj;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *region_obj;
1: };
1:
1: struct acpi_object_region_field {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 access_byte_width;
1: - struct acpi_namespace_node *node;
1: - u32 bit_length;
1: - u32 base_byte_offset;
1: - u32 value;
1: - u8 start_field_bit_offset;
1: - u8 access_length;
1: - u16 resource_length;
1: - union acpi_operand_object *region_obj;
1: - u8 *resource_buffer;
1: - u16 pin_number_index;
1: - u8 *internal_pcc_buffer;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + u16 resource_length;
1: + union acpi_operand_object *region_obj;
1: + u8 *resource_buffer;
1: + u16 pin_number_index;
1: + u8 *internal_pcc_buffer;
1: };
1:
1: struct acpi_object_buffer_field {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 access_byte_width;
1: - struct acpi_namespace_node *node;
1: - u32 bit_length;
1: - u32 base_byte_offset;
1: - u32 value;
1: - u8 start_field_bit_offset;
1: - u8 access_length;
1: - u8 is_create_field;
1: - union acpi_operand_object *buffer_obj;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + u8 is_create_field;
1: + union acpi_operand_object *buffer_obj;
1: };
1:
1: struct acpi_object_bank_field {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 access_byte_width;
1: - struct acpi_namespace_node *node;
1: - u32 bit_length;
1: - u32 base_byte_offset;
1: - u32 value;
1: - u8 start_field_bit_offset;
1: - u8 access_length;
1: - union acpi_operand_object *region_obj;
1: - union acpi_operand_object *bank_obj;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *region_obj;
1: + union acpi_operand_object *bank_obj;
1: };
1:
1: struct acpi_object_index_field {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 access_byte_width;
1: - struct acpi_namespace_node *node;
1: - u32 bit_length;
1: - u32 base_byte_offset;
1: - u32 value;
1: - u8 start_field_bit_offset;
1: - u8 access_length;
1: - union acpi_operand_object *index_obj;
1: - union acpi_operand_object *data_obj;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 access_byte_width;
1: + struct acpi_namespace_node *node;
1: + u32 bit_length;
1: + u32 base_byte_offset;
1: + u32 value;
1: + u8 start_field_bit_offset;
1: + u8 access_length;
1: + union acpi_operand_object *index_obj;
1: + union acpi_operand_object *data_obj;
1: };
1:
1: struct acpi_object_notify_handler {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - struct acpi_namespace_node *node;
1: - u32 handler_type;
1: - acpi_notify_handler handler;
1: - void *context;
1: - union acpi_operand_object *next[2];
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *node;
1: + u32 handler_type;
1: + acpi_notify_handler handler;
1: + void *context;
1: + union acpi_operand_object *next[2];
1: };
1:
1: struct acpi_object_addr_handler {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 space_id;
1: - u8 handler_flags;
1: - acpi_adr_space_handler handler;
1: - struct acpi_namespace_node *node;
1: - void *context;
1: - acpi_adr_space_setup setup;
1: - union acpi_operand_object *region_list;
1: - union acpi_operand_object *next;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 space_id;
1: + u8 handler_flags;
1: + acpi_adr_space_handler handler;
1: + struct acpi_namespace_node *node;
1: + void *context;
1: + acpi_adr_space_setup setup;
1: + union acpi_operand_object *region_list;
1: + union acpi_operand_object *next;
1: };
1:
1: struct acpi_object_reference {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - u8 class;
1: - u8 target_type;
1: - u8 resolved;
1: - void *object;
1: - struct acpi_namespace_node *node;
1: - union acpi_operand_object **where;
1: - u8 *index_pointer;
1: - u8 *aml;
1: - u32 value;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + u8 class;
1: + u8 target_type;
1: + u8 resolved;
1: + void *object;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object **where;
1: + u8 *index_pointer;
1: + u8 *aml;
1: + u32 value;
1: };
1:
1: struct acpi_object_extra {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - struct acpi_namespace_node *method_REG;
1: - struct acpi_namespace_node *scope_node;
1: - void *region_context;
1: - u8 *aml_start;
1: - u32 aml_length;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + struct acpi_namespace_node *method_REG;
1: + struct acpi_namespace_node *scope_node;
1: + void *region_context;
1: + u8 *aml_start;
1: + u32 aml_length;
1: };
1:
1: struct acpi_object_data {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - acpi_object_handler handler;
1: - void *pointer;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + acpi_object_handler handler;
1: + void *pointer;
1: };
1:
1: struct acpi_object_cache_list {
1: - union acpi_operand_object *next_object;
1: - u8 descriptor_type;
1: - u8 type;
1: - u16 reference_count;
1: - u8 flags;
1: - union acpi_operand_object *next;
1: + union acpi_operand_object *next_object;
1: + u8 descriptor_type;
1: + u8 type;
1: + u16 reference_count;
1: + u8 flags;
1: + union acpi_operand_object *next;
1: };
1:
1: union acpi_operand_object {
1: - struct acpi_object_common common;
1: - struct acpi_object_integer integer;
1: - struct acpi_object_string string;
1: - struct acpi_object_buffer buffer;
1: - struct acpi_object_package package;
1: - struct acpi_object_event event;
1: - struct acpi_object_method method;
1: - struct acpi_object_mutex mutex;
1: - struct acpi_object_region region;
1: - struct acpi_object_notify_common common_notify;
1: - struct acpi_object_device device;
1: - struct acpi_object_power_resource power_resource;
1: - struct acpi_object_processor processor;
1: - struct acpi_object_thermal_zone thermal_zone;
1: - struct acpi_object_field_common common_field;
1: - struct acpi_object_region_field field;
1: - struct acpi_object_buffer_field buffer_field;
1: - struct acpi_object_bank_field bank_field;
1: - struct acpi_object_index_field index_field;
1: - struct acpi_object_notify_handler notify;
1: - struct acpi_object_addr_handler address_space;
1: - struct acpi_object_reference reference;
1: - struct acpi_object_extra extra;
1: - struct acpi_object_data data;
1: - struct acpi_object_cache_list cache;
1: - struct acpi_namespace_node node;
1: + struct acpi_object_common common;
1: + struct acpi_object_integer integer;
1: + struct acpi_object_string string;
1: + struct acpi_object_buffer buffer;
1: + struct acpi_object_package package;
1: + struct acpi_object_event event;
1: + struct acpi_object_method method;
1: + struct acpi_object_mutex mutex;
1: + struct acpi_object_region region;
1: + struct acpi_object_notify_common common_notify;
1: + struct acpi_object_device device;
1: + struct acpi_object_power_resource power_resource;
1: + struct acpi_object_processor processor;
1: + struct acpi_object_thermal_zone thermal_zone;
1: + struct acpi_object_field_common common_field;
1: + struct acpi_object_region_field field;
1: + struct acpi_object_buffer_field buffer_field;
1: + struct acpi_object_bank_field bank_field;
1: + struct acpi_object_index_field index_field;
1: + struct acpi_object_notify_handler notify;
1: + struct acpi_object_addr_handler address_space;
1: + struct acpi_object_reference reference;
1: + struct acpi_object_extra extra;
1: + struct acpi_object_data data;
1: + struct acpi_object_cache_list cache;
1: + struct acpi_namespace_node node;
1: };
1:
1: union acpi_parse_object;
1: @@ -68636,1570 +69614,1575 @@ union acpi_parse_object;
1: union acpi_generic_state;
1:
1: struct acpi_parse_state {
1: - u8 *aml_start;
1: - u8 *aml;
1: - u8 *aml_end;
1: - u8 *pkg_start;
1: - u8 *pkg_end;
1: - union acpi_parse_object *start_op;
1: - struct acpi_namespace_node *start_node;
1: - union acpi_generic_state *scope;
1: - union acpi_parse_object *start_scope;
1: - u32 aml_size;
1: + u8 *aml_start;
1: + u8 *aml;
1: + u8 *aml_end;
1: + u8 *pkg_start;
1: + u8 *pkg_end;
1: + union acpi_parse_object *start_op;
1: + struct acpi_namespace_node *start_node;
1: + union acpi_generic_state *scope;
1: + union acpi_parse_object *start_scope;
1: + u32 aml_size;
1: };
1:
1: -typedef acpi_status (*acpi_parse_downwards)(struct acpi_walk_state *, union acpi_parse_object **);
1: +typedef acpi_status (*acpi_parse_downwards)(struct acpi_walk_state *,
1: + union acpi_parse_object **);
1:
1: typedef acpi_status (*acpi_parse_upwards)(struct acpi_walk_state *);
1:
1: struct acpi_opcode_info;
1:
1: struct acpi_walk_state {
1: - struct acpi_walk_state *next;
1: - u8 descriptor_type;
1: - u8 walk_type;
1: - u16 opcode;
1: - u8 next_op_info;
1: - u8 num_operands;
1: - u8 operand_index;
1: - acpi_owner_id owner_id;
1: - u8 last_predicate;
1: - u8 current_result;
1: - u8 return_used;
1: - u8 scope_depth;
1: - u8 pass_number;
1: - u8 namespace_override;
1: - u8 result_size;
1: - u8 result_count;
1: - u8 *aml;
1: - u32 arg_types;
1: - u32 method_breakpoint;
1: - u32 user_breakpoint;
1: - u32 parse_flags;
1: - struct acpi_parse_state parser_state;
1: - u32 prev_arg_types;
1: - u32 arg_count;
1: - u16 method_nesting_depth;
1: - u8 method_is_nested;
1: - struct acpi_namespace_node arguments[7];
1: - struct acpi_namespace_node local_variables[8];
1: - union acpi_operand_object *operands[9];
1: - union acpi_operand_object **params;
1: - u8 *aml_last_while;
1: - union acpi_operand_object **caller_return_desc;
1: - union acpi_generic_state *control_state;
1: - struct acpi_namespace_node *deferred_node;
1: - union acpi_operand_object *implicit_return_obj;
1: - struct acpi_namespace_node *method_call_node;
1: - union acpi_parse_object *method_call_op;
1: - union acpi_operand_object *method_desc;
1: - struct acpi_namespace_node *method_node;
1: - char *method_pathname;
1: - union acpi_parse_object *op;
1: - const struct acpi_opcode_info *op_info;
1: - union acpi_parse_object *origin;
1: - union acpi_operand_object *result_obj;
1: - union acpi_generic_state *results;
1: - union acpi_operand_object *return_desc;
1: - union acpi_generic_state *scope_info;
1: - union acpi_parse_object *prev_op;
1: - union acpi_parse_object *next_op;
1: - struct acpi_thread_state *thread;
1: - acpi_parse_downwards descending_callback;
1: - acpi_parse_upwards ascending_callback;
1: + struct acpi_walk_state *next;
1: + u8 descriptor_type;
1: + u8 walk_type;
1: + u16 opcode;
1: + u8 next_op_info;
1: + u8 num_operands;
1: + u8 operand_index;
1: + acpi_owner_id owner_id;
1: + u8 last_predicate;
1: + u8 current_result;
1: + u8 return_used;
1: + u8 scope_depth;
1: + u8 pass_number;
1: + u8 namespace_override;
1: + u8 result_size;
1: + u8 result_count;
1: + u8 *aml;
1: + u32 arg_types;
1: + u32 method_breakpoint;
1: + u32 user_breakpoint;
1: + u32 parse_flags;
1: + struct acpi_parse_state parser_state;
1: + u32 prev_arg_types;
1: + u32 arg_count;
1: + u16 method_nesting_depth;
1: + u8 method_is_nested;
1: + struct acpi_namespace_node arguments[7];
1: + struct acpi_namespace_node local_variables[8];
1: + union acpi_operand_object *operands[9];
1: + union acpi_operand_object **params;
1: + u8 *aml_last_while;
1: + union acpi_operand_object **caller_return_desc;
1: + union acpi_generic_state *control_state;
1: + struct acpi_namespace_node *deferred_node;
1: + union acpi_operand_object *implicit_return_obj;
1: + struct acpi_namespace_node *method_call_node;
1: + union acpi_parse_object *method_call_op;
1: + union acpi_operand_object *method_desc;
1: + struct acpi_namespace_node *method_node;
1: + char *method_pathname;
1: + union acpi_parse_object *op;
1: + const struct acpi_opcode_info *op_info;
1: + union acpi_parse_object *origin;
1: + union acpi_operand_object *result_obj;
1: + union acpi_generic_state *results;
1: + union acpi_operand_object *return_desc;
1: + union acpi_generic_state *scope_info;
1: + union acpi_parse_object *prev_op;
1: + union acpi_parse_object *next_op;
1: + struct acpi_thread_state *thread;
1: + acpi_parse_downwards descending_callback;
1: + acpi_parse_upwards ascending_callback;
1: };
1:
1: struct acpi_gpe_handler_info {
1: - acpi_gpe_handler address;
1: - void *context;
1: - struct acpi_namespace_node *method_node;
1: - u8 original_flags;
1: - u8 originally_enabled;
1: + acpi_gpe_handler address;
1: + void *context;
1: + struct acpi_namespace_node *method_node;
1: + u8 original_flags;
1: + u8 originally_enabled;
1: };
1:
1: struct acpi_gpe_notify_info {
1: - struct acpi_namespace_node *device_node;
1: - struct acpi_gpe_notify_info *next;
1: + struct acpi_namespace_node *device_node;
1: + struct acpi_gpe_notify_info *next;
1: };
1:
1: union acpi_gpe_dispatch_info {
1: - struct acpi_namespace_node *method_node;
1: - struct acpi_gpe_handler_info *handler;
1: - struct acpi_gpe_notify_info *notify_list;
1: + struct acpi_namespace_node *method_node;
1: + struct acpi_gpe_handler_info *handler;
1: + struct acpi_gpe_notify_info *notify_list;
1: };
1:
1: struct acpi_gpe_register_info;
1:
1: struct acpi_gpe_event_info {
1: - union acpi_gpe_dispatch_info dispatch;
1: - struct acpi_gpe_register_info *register_info;
1: - u8 flags;
1: - u8 gpe_number;
1: - u8 runtime_count;
1: - u8 disable_for_dispatch;
1: + union acpi_gpe_dispatch_info dispatch;
1: + struct acpi_gpe_register_info *register_info;
1: + u8 flags;
1: + u8 gpe_number;
1: + u8 runtime_count;
1: + u8 disable_for_dispatch;
1: };
1:
1: struct acpi_gpe_address {
1: - u8 space_id;
1: - u64 address;
1: + u8 space_id;
1: + u64 address;
1: };
1:
1: struct acpi_gpe_register_info {
1: - struct acpi_gpe_address status_address;
1: - struct acpi_gpe_address enable_address;
1: - u16 base_gpe_number;
1: - u8 enable_for_wake;
1: - u8 enable_for_run;
1: - u8 mask_for_run;
1: - u8 enable_mask;
1: + struct acpi_gpe_address status_address;
1: + struct acpi_gpe_address enable_address;
1: + u16 base_gpe_number;
1: + u8 enable_for_wake;
1: + u8 enable_for_run;
1: + u8 mask_for_run;
1: + u8 enable_mask;
1: };
1:
1: struct acpi_gpe_xrupt_info;
1:
1: struct acpi_gpe_block_info {
1: - struct acpi_namespace_node *node;
1: - struct acpi_gpe_block_info *previous;
1: - struct acpi_gpe_block_info *next;
1: - struct acpi_gpe_xrupt_info *xrupt_block;
1: - struct acpi_gpe_register_info *register_info;
1: - struct acpi_gpe_event_info *event_info;
1: - u64 address;
1: - u32 register_count;
1: - u16 gpe_count;
1: - u16 block_base_number;
1: - u8 space_id;
1: - u8 initialized;
1: + struct acpi_namespace_node *node;
1: + struct acpi_gpe_block_info *previous;
1: + struct acpi_gpe_block_info *next;
1: + struct acpi_gpe_xrupt_info *xrupt_block;
1: + struct acpi_gpe_register_info *register_info;
1: + struct acpi_gpe_event_info *event_info;
1: + u64 address;
1: + u32 register_count;
1: + u16 gpe_count;
1: + u16 block_base_number;
1: + u8 space_id;
1: + u8 initialized;
1: };
1:
1: struct acpi_gpe_xrupt_info {
1: - struct acpi_gpe_xrupt_info *previous;
1: - struct acpi_gpe_xrupt_info *next;
1: - struct acpi_gpe_block_info *gpe_block_list_head;
1: - u32 interrupt_number;
1: + struct acpi_gpe_xrupt_info *previous;
1: + struct acpi_gpe_xrupt_info *next;
1: + struct acpi_gpe_block_info *gpe_block_list_head;
1: + u32 interrupt_number;
1: };
1:
1: struct acpi_common_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: };
1:
1: struct acpi_update_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - union acpi_operand_object *object;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + union acpi_operand_object *object;
1: };
1:
1: struct acpi_pkg_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - u32 index;
1: - union acpi_operand_object *source_object;
1: - union acpi_operand_object *dest_object;
1: - struct acpi_walk_state *walk_state;
1: - void *this_target_obj;
1: - u32 num_packages;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u32 index;
1: + union acpi_operand_object *source_object;
1: + union acpi_operand_object *dest_object;
1: + struct acpi_walk_state *walk_state;
1: + void *this_target_obj;
1: + u32 num_packages;
1: };
1:
1: struct acpi_control_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - u16 opcode;
1: - union acpi_parse_object *predicate_op;
1: - u8 *aml_predicate_start;
1: - u8 *package_end;
1: - u64 loop_timeout;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u16 opcode;
1: + union acpi_parse_object *predicate_op;
1: + u8 *aml_predicate_start;
1: + u8 *package_end;
1: + u64 loop_timeout;
1: };
1:
1: union acpi_parse_value {
1: - u64 integer;
1: - u32 size;
1: - char *string;
1: - u8 *buffer;
1: - char *name;
1: - union acpi_parse_object *arg;
1: + u64 integer;
1: + u32 size;
1: + char *string;
1: + u8 *buffer;
1: + char *name;
1: + union acpi_parse_object *arg;
1: };
1:
1: struct acpi_parse_obj_common {
1: - union acpi_parse_object *parent;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 aml_opcode;
1: - u8 *aml;
1: - union acpi_parse_object *next;
1: - struct acpi_namespace_node *node;
1: - union acpi_parse_value value;
1: - u8 arg_list_length;
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: };
1:
1: struct acpi_parse_obj_named {
1: - union acpi_parse_object *parent;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 aml_opcode;
1: - u8 *aml;
1: - union acpi_parse_object *next;
1: - struct acpi_namespace_node *node;
1: - union acpi_parse_value value;
1: - u8 arg_list_length;
1: - char *path;
1: - u8 *data;
1: - u32 length;
1: - u32 name;
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: + char *path;
1: + u8 *data;
1: + u32 length;
1: + u32 name;
1: };
1:
1: struct acpi_parse_obj_asl {
1: - union acpi_parse_object *parent;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 aml_opcode;
1: - u8 *aml;
1: - union acpi_parse_object *next;
1: - struct acpi_namespace_node *node;
1: - union acpi_parse_value value;
1: - u8 arg_list_length;
1: - union acpi_parse_object *child;
1: - union acpi_parse_object *parent_method;
1: - char *filename;
1: - u8 file_changed;
1: - char *parent_filename;
1: - char *external_name;
1: - char *namepath;
1: - char name_seg[4];
1: - u32 extra_value;
1: - u32 column;
1: - u32 line_number;
1: - u32 logical_line_number;
1: - u32 logical_byte_offset;
1: - u32 end_line;
1: - u32 end_logical_line;
1: - u32 acpi_btype;
1: - u32 aml_length;
1: - u32 aml_subtree_length;
1: - u32 final_aml_length;
1: - u32 final_aml_offset;
1: - u32 compile_flags;
1: - u16 parse_opcode;
1: - u8 aml_opcode_length;
1: - u8 aml_pkg_len_bytes;
1: - u8 extra;
1: - char parse_op_name[20];
1: + union acpi_parse_object *parent;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 aml_opcode;
1: + u8 *aml;
1: + union acpi_parse_object *next;
1: + struct acpi_namespace_node *node;
1: + union acpi_parse_value value;
1: + u8 arg_list_length;
1: + union acpi_parse_object *child;
1: + union acpi_parse_object *parent_method;
1: + char *filename;
1: + u8 file_changed;
1: + char *parent_filename;
1: + char *external_name;
1: + char *namepath;
1: + char name_seg[4];
1: + u32 extra_value;
1: + u32 column;
1: + u32 line_number;
1: + u32 logical_line_number;
1: + u32 logical_byte_offset;
1: + u32 end_line;
1: + u32 end_logical_line;
1: + u32 acpi_btype;
1: + u32 aml_length;
1: + u32 aml_subtree_length;
1: + u32 final_aml_length;
1: + u32 final_aml_offset;
1: + u32 compile_flags;
1: + u16 parse_opcode;
1: + u8 aml_opcode_length;
1: + u8 aml_pkg_len_bytes;
1: + u8 extra;
1: + char parse_op_name[20];
1: };
1:
1: union acpi_parse_object {
1: - struct acpi_parse_obj_common common;
1: - struct acpi_parse_obj_named named;
1: - struct acpi_parse_obj_asl asl;
1: + struct acpi_parse_obj_common common;
1: + struct acpi_parse_obj_named named;
1: + struct acpi_parse_obj_asl asl;
1: };
1:
1: struct acpi_scope_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - struct acpi_namespace_node *node;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + struct acpi_namespace_node *node;
1: };
1:
1: struct acpi_pscope_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - u32 arg_count;
1: - union acpi_parse_object *op;
1: - u8 *arg_end;
1: - u8 *pkg_end;
1: - u32 arg_list;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u32 arg_count;
1: + union acpi_parse_object *op;
1: + u8 *arg_end;
1: + u8 *pkg_end;
1: + u32 arg_list;
1: };
1:
1: struct acpi_thread_state {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - u8 current_sync_level;
1: - struct acpi_walk_state *walk_state_list;
1: - union acpi_operand_object *acquired_mutex_list;
1: - u64 thread_id;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u8 current_sync_level;
1: + struct acpi_walk_state *walk_state_list;
1: + union acpi_operand_object *acquired_mutex_list;
1: + u64 thread_id;
1: };
1:
1: struct acpi_result_values {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - union acpi_operand_object *obj_desc[8];
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + union acpi_operand_object *obj_desc[8];
1: };
1:
1: struct acpi_global_notify_handler {
1: - acpi_notify_handler handler;
1: - void *context;
1: + acpi_notify_handler handler;
1: + void *context;
1: };
1:
1: struct acpi_notify_info {
1: - void *next;
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 value;
1: - u16 state;
1: - u8 handler_list_id;
1: - struct acpi_namespace_node *node;
1: - union acpi_operand_object *handler_list_head;
1: - struct acpi_global_notify_handler *global;
1: + void *next;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 value;
1: + u16 state;
1: + u8 handler_list_id;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *handler_list_head;
1: + struct acpi_global_notify_handler *global;
1: };
1:
1: union acpi_generic_state {
1: - struct acpi_common_state common;
1: - struct acpi_control_state control;
1: - struct acpi_update_state update;
1: - struct acpi_scope_state scope;
1: - struct acpi_pscope_state parse_scope;
1: - struct acpi_pkg_state pkg;
1: - struct acpi_thread_state thread;
1: - struct acpi_result_values results;
1: - struct acpi_notify_info notify;
1: + struct acpi_common_state common;
1: + struct acpi_control_state control;
1: + struct acpi_update_state update;
1: + struct acpi_scope_state scope;
1: + struct acpi_pscope_state parse_scope;
1: + struct acpi_pkg_state pkg;
1: + struct acpi_thread_state thread;
1: + struct acpi_result_values results;
1: + struct acpi_notify_info notify;
1: };
1:
1: struct acpi_opcode_info {
1: - u32 parse_args;
1: - u32 runtime_args;
1: - u16 flags;
1: - u8 object_type;
1: - u8 class;
1: - u8 type;
1: + u32 parse_args;
1: + u32 runtime_args;
1: + u16 flags;
1: + u8 object_type;
1: + u8 class;
1: + u8 type;
1: };
1:
1: struct acpi_os_dpc {
1: - acpi_osd_exec_callback function;
1: - void *context;
1: - struct work_struct work;
1: + acpi_osd_exec_callback function;
1: + void *context;
1: + struct work_struct work;
1: };
1:
1: struct acpi_ioremap {
1: - struct list_head list;
1: - void *virt;
1: - acpi_physical_address phys;
1: - acpi_size size;
1: - union {
1: - long unsigned int refcount;
1: - struct rcu_work rwork;
1: - } track;
1: + struct list_head list;
1: + void *virt;
1: + acpi_physical_address phys;
1: + acpi_size size;
1: + union {
1: + long unsigned int refcount;
1: + struct rcu_work rwork;
1: + } track;
1: };
1:
1: struct acpi_hp_work {
1: - struct work_struct work;
1: - struct acpi_device *adev;
1: - u32 src;
1: + struct work_struct work;
1: + struct acpi_device *adev;
1: + u32 src;
1: };
1:
1: struct acpi_object_list {
1: - u32 count;
1: - union acpi_object *pointer;
1: + u32 count;
1: + union acpi_object *pointer;
1: };
1:
1: struct acpi_pld_info {
1: - u8 revision;
1: - u8 ignore_color;
1: - u8 red;
1: - u8 green;
1: - u8 blue;
1: - u16 width;
1: - u16 height;
1: - u8 user_visible;
1: - u8 dock;
1: - u8 lid;
1: - u8 panel;
1: - u8 vertical_position;
1: - u8 horizontal_position;
1: - u8 shape;
1: - u8 group_orientation;
1: - u8 group_token;
1: - u8 group_position;
1: - u8 bay;
1: - u8 ejectable;
1: - u8 ospm_eject_required;
1: - u8 cabinet_number;
1: - u8 card_cage_number;
1: - u8 reference;
1: - u8 rotation;
1: - u8 order;
1: - u8 reserved;
1: - u16 vertical_offset;
1: - u16 horizontal_offset;
1: + u8 revision;
1: + u8 ignore_color;
1: + u8 red;
1: + u8 green;
1: + u8 blue;
1: + u16 width;
1: + u16 height;
1: + u8 user_visible;
1: + u8 dock;
1: + u8 lid;
1: + u8 panel;
1: + u8 vertical_position;
1: + u8 horizontal_position;
1: + u8 shape;
1: + u8 group_orientation;
1: + u8 group_token;
1: + u8 group_position;
1: + u8 bay;
1: + u8 ejectable;
1: + u8 ospm_eject_required;
1: + u8 cabinet_number;
1: + u8 card_cage_number;
1: + u8 reference;
1: + u8 rotation;
1: + u8 order;
1: + u8 reserved;
1: + u16 vertical_offset;
1: + u16 horizontal_offset;
1: };
1:
1: struct acpi_handle_list {
1: - u32 count;
1: - acpi_handle handles[10];
1: + u32 count;
1: + acpi_handle handles[10];
1: };
1:
1: enum acpi_predicate {
1: - all_versions = 0,
1: - less_than_or_equal = 1,
1: - equal = 2,
1: - greater_than_or_equal = 3,
1: + all_versions = 0,
1: + less_than_or_equal = 1,
1: + equal = 2,
1: + greater_than_or_equal = 3,
1: };
1:
1: struct acpi_platform_list {
1: - char oem_id[7];
1: - char oem_table_id[9];
1: - u32 oem_revision;
1: - char *table;
1: - enum acpi_predicate pred;
1: - char *reason;
1: - u32 data;
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: + char *table;
1: + enum acpi_predicate pred;
1: + char *reason;
1: + u32 data;
1: };
1:
1: struct acpi_device_bus_id {
1: - const char *bus_id;
1: - unsigned int instance_no;
1: - struct list_head node;
1: + const char *bus_id;
1: + unsigned int instance_no;
1: + struct list_head node;
1: };
1:
1: struct acpi_dev_match_info {
1: - struct acpi_device_id hid[2];
1: - const char *uid;
1: - s64 hrv;
1: + struct acpi_device_id hid[2];
1: + const char *uid;
1: + s64 hrv;
1: };
1:
1: struct nvs_region {
1: - __u64 phys_start;
1: - __u64 size;
1: - struct list_head node;
1: + __u64 phys_start;
1: + __u64 size;
1: + struct list_head node;
1: };
1:
1: struct acpi_wakeup_handler {
1: - struct list_head list_node;
1: - bool (*wakeup)(void *);
1: - void *context;
1: + struct list_head list_node;
1: + bool (*wakeup)(void *);
1: + void *context;
1: };
1:
1: struct acpi_hardware_id {
1: - struct list_head list;
1: - const char *id;
1: + struct list_head list;
1: + const char *id;
1: };
1:
1: struct acpi_data_node {
1: - const char *name;
1: - acpi_handle handle;
1: - struct fwnode_handle fwnode;
1: - struct fwnode_handle *parent;
1: - struct acpi_device_data data;
1: - struct list_head sibling;
1: - struct kobject kobj;
1: - struct completion kobj_done;
1: + const char *name;
1: + acpi_handle handle;
1: + struct fwnode_handle fwnode;
1: + struct fwnode_handle *parent;
1: + struct acpi_device_data data;
1: + struct list_head sibling;
1: + struct kobject kobj;
1: + struct completion kobj_done;
1: };
1:
1: struct acpi_data_node_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct acpi_data_node *, char *);
1: - ssize_t (*store)(struct acpi_data_node *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct acpi_data_node *, char *);
1: + ssize_t (*store)(struct acpi_data_node *, const char *, size_t);
1: };
1:
1: struct pm_domain_data {
1: - struct list_head list_node;
1: - struct device *dev;
1: + struct list_head list_node;
1: + struct device *dev;
1: };
1:
1: typedef u32 (*acpi_event_handler)(void *);
1:
1: enum acpi_bus_device_type {
1: - ACPI_BUS_TYPE_DEVICE = 0,
1: - ACPI_BUS_TYPE_POWER = 1,
1: - ACPI_BUS_TYPE_PROCESSOR = 2,
1: - ACPI_BUS_TYPE_THERMAL = 3,
1: - ACPI_BUS_TYPE_POWER_BUTTON = 4,
1: - ACPI_BUS_TYPE_SLEEP_BUTTON = 5,
1: - ACPI_BUS_TYPE_ECDT_EC = 6,
1: - ACPI_BUS_DEVICE_TYPE_COUNT = 7,
1: + ACPI_BUS_TYPE_DEVICE = 0,
1: + ACPI_BUS_TYPE_POWER = 1,
1: + ACPI_BUS_TYPE_PROCESSOR = 2,
1: + ACPI_BUS_TYPE_THERMAL = 3,
1: + ACPI_BUS_TYPE_POWER_BUTTON = 4,
1: + ACPI_BUS_TYPE_SLEEP_BUTTON = 5,
1: + ACPI_BUS_TYPE_ECDT_EC = 6,
1: + ACPI_BUS_DEVICE_TYPE_COUNT = 7,
1: };
1:
1: struct acpi_device_physical_node {
1: - unsigned int node_id;
1: - struct list_head node;
1: - struct device *dev;
1: - bool put_online: 1;
1: + unsigned int node_id;
1: + struct list_head node;
1: + struct device *dev;
1: + bool put_online : 1;
1: };
1:
1: struct acpi_osc_context {
1: - char *uuid_str;
1: - int rev;
1: - struct acpi_buffer cap;
1: - struct acpi_buffer ret;
1: + char *uuid_str;
1: + int rev;
1: + struct acpi_buffer cap;
1: + struct acpi_buffer ret;
1: };
1:
1: struct acpi_pnp_device_id {
1: - u32 length;
1: - char *string;
1: + u32 length;
1: + char *string;
1: };
1:
1: struct acpi_pnp_device_id_list {
1: - u32 count;
1: - u32 list_size;
1: - struct acpi_pnp_device_id ids[0];
1: + u32 count;
1: + u32 list_size;
1: + struct acpi_pnp_device_id ids[0];
1: };
1:
1: struct acpi_device_info {
1: - u32 info_size;
1: - u32 name;
1: - acpi_object_type type;
1: - u8 param_count;
1: - u16 valid;
1: - u8 flags;
1: - u8 highest_dstates[4];
1: - u8 lowest_dstates[5];
1: - u64 address;
1: - struct acpi_pnp_device_id hardware_id;
1: - struct acpi_pnp_device_id unique_id;
1: - struct acpi_pnp_device_id class_code;
1: - struct acpi_pnp_device_id_list compatible_id_list;
1: + u32 info_size;
1: + u32 name;
1: + acpi_object_type type;
1: + u8 param_count;
1: + u16 valid;
1: + u8 flags;
1: + u8 highest_dstates[4];
1: + u8 lowest_dstates[5];
1: + u64 address;
1: + struct acpi_pnp_device_id hardware_id;
1: + struct acpi_pnp_device_id unique_id;
1: + struct acpi_pnp_device_id class_code;
1: + struct acpi_pnp_device_id_list compatible_id_list;
1: };
1:
1: struct acpi_table_spcr {
1: - struct acpi_table_header header;
1: - u8 interface_type;
1: - u8 reserved[3];
1: - struct acpi_generic_address serial_port;
1: - u8 interrupt_type;
1: - u8 pc_interrupt;
1: - u32 interrupt;
1: - u8 baud_rate;
1: - u8 parity;
1: - u8 stop_bits;
1: - u8 flow_control;
1: - u8 terminal_type;
1: - u8 reserved1;
1: - u16 pci_device_id;
1: - u16 pci_vendor_id;
1: - u8 pci_bus;
1: - u8 pci_device;
1: - u8 pci_function;
1: - u32 pci_flags;
1: - u8 pci_segment;
1: - u32 reserved2;
1: + struct acpi_table_header header;
1: + u8 interface_type;
1: + u8 reserved[3];
1: + struct acpi_generic_address serial_port;
1: + u8 interrupt_type;
1: + u8 pc_interrupt;
1: + u32 interrupt;
1: + u8 baud_rate;
1: + u8 parity;
1: + u8 stop_bits;
1: + u8 flow_control;
1: + u8 terminal_type;
1: + u8 reserved1;
1: + u16 pci_device_id;
1: + u16 pci_vendor_id;
1: + u8 pci_bus;
1: + u8 pci_device;
1: + u8 pci_function;
1: + u32 pci_flags;
1: + u8 pci_segment;
1: + u32 reserved2;
1: } __attribute__((packed));
1:
1: struct acpi_table_stao {
1: - struct acpi_table_header header;
1: - u8 ignore_uart;
1: + struct acpi_table_header header;
1: + u8 ignore_uart;
1: } __attribute__((packed));
1:
1: enum acpi_reconfig_event {
1: - ACPI_RECONFIG_DEVICE_ADD = 0,
1: - ACPI_RECONFIG_DEVICE_REMOVE = 1,
1: + ACPI_RECONFIG_DEVICE_ADD = 0,
1: + ACPI_RECONFIG_DEVICE_REMOVE = 1,
1: };
1:
1: struct acpi_dep_data {
1: - struct list_head node;
1: - acpi_handle master;
1: - acpi_handle slave;
1: + struct list_head node;
1: + acpi_handle master;
1: + acpi_handle slave;
1: };
1:
1: struct acpi_table_events_work {
1: - struct work_struct work;
1: - void *table;
1: - u32 event;
1: + struct work_struct work;
1: + void *table;
1: + u32 event;
1: };
1:
1: struct resource_win {
1: - struct resource res;
1: - resource_size_t offset;
1: + struct resource res;
1: + resource_size_t offset;
1: };
1:
1: struct res_proc_context {
1: - struct list_head *list;
1: - int (*preproc)(struct acpi_resource *, void *);
1: - void *preproc_data;
1: - int count;
1: - int error;
1: + struct list_head *list;
1: + int (*preproc)(struct acpi_resource *, void *);
1: + void *preproc_data;
1: + int count;
1: + int error;
1: };
1:
1: struct acpi_processor_errata {
1: - u8 smp;
1: - struct {
1: - u8 throttle: 1;
1: - u8 fdma: 1;
1: - u8 reserved: 6;
1: - u32 bmisx;
1: - } piix4;
1: + u8 smp;
1: + struct {
1: + u8 throttle : 1;
1: + u8 fdma : 1;
1: + u8 reserved : 6;
1: + u32 bmisx;
1: + } piix4;
1: };
1:
1: typedef u32 acpi_event_status;
1:
1: struct acpi_table_ecdt {
1: - struct acpi_table_header header;
1: - struct acpi_generic_address control;
1: - struct acpi_generic_address data;
1: - u32 uid;
1: - u8 gpe;
1: - u8 id[1];
1: + struct acpi_table_header header;
1: + struct acpi_generic_address control;
1: + struct acpi_generic_address data;
1: + u32 uid;
1: + u8 gpe;
1: + u8 id[1];
1: } __attribute__((packed));
1:
1: struct transaction;
1:
1: struct acpi_ec {
1: - acpi_handle handle;
1: - int gpe;
1: - int irq;
1: - long unsigned int command_addr;
1: - long unsigned int data_addr;
1: - bool global_lock;
1: - long unsigned int flags;
1: - long unsigned int reference_count;
1: - struct mutex mutex;
1: - wait_queue_head_t wait;
1: - struct list_head list;
1: - struct transaction *curr;
1: - spinlock_t lock;
1: - struct work_struct work;
1: - long unsigned int timestamp;
1: - long unsigned int nr_pending_queries;
1: - bool busy_polling;
1: - unsigned int polling_guard;
1: + acpi_handle handle;
1: + int gpe;
1: + int irq;
1: + long unsigned int command_addr;
1: + long unsigned int data_addr;
1: + bool global_lock;
1: + long unsigned int flags;
1: + long unsigned int reference_count;
1: + struct mutex mutex;
1: + wait_queue_head_t wait;
1: + struct list_head list;
1: + struct transaction *curr;
1: + spinlock_t lock;
1: + struct work_struct work;
1: + long unsigned int timestamp;
1: + long unsigned int nr_pending_queries;
1: + bool busy_polling;
1: + unsigned int polling_guard;
1: };
1:
1: struct transaction {
1: - const u8 *wdata;
1: - u8 *rdata;
1: - short unsigned int irq_count;
1: - u8 command;
1: - u8 wi;
1: - u8 ri;
1: - u8 wlen;
1: - u8 rlen;
1: - u8 flags;
1: + const u8 *wdata;
1: + u8 *rdata;
1: + short unsigned int irq_count;
1: + u8 command;
1: + u8 wi;
1: + u8 ri;
1: + u8 wlen;
1: + u8 rlen;
1: + u8 flags;
1: };
1:
1: typedef int (*acpi_ec_query_func)(void *);
1:
1: enum ec_command {
1: - ACPI_EC_COMMAND_READ = 128,
1: - ACPI_EC_COMMAND_WRITE = 129,
1: - ACPI_EC_BURST_ENABLE = 130,
1: - ACPI_EC_BURST_DISABLE = 131,
1: - ACPI_EC_COMMAND_QUERY = 132,
1: + ACPI_EC_COMMAND_READ = 128,
1: + ACPI_EC_COMMAND_WRITE = 129,
1: + ACPI_EC_BURST_ENABLE = 130,
1: + ACPI_EC_BURST_DISABLE = 131,
1: + ACPI_EC_COMMAND_QUERY = 132,
1: };
1:
1: enum {
1: - EC_FLAGS_QUERY_ENABLED = 0,
1: - EC_FLAGS_QUERY_PENDING = 1,
1: - EC_FLAGS_QUERY_GUARDING = 2,
1: - EC_FLAGS_EVENT_HANDLER_INSTALLED = 3,
1: - EC_FLAGS_EC_HANDLER_INSTALLED = 4,
1: - EC_FLAGS_QUERY_METHODS_INSTALLED = 5,
1: - EC_FLAGS_STARTED = 6,
1: - EC_FLAGS_STOPPED = 7,
1: - EC_FLAGS_EVENTS_MASKED = 8,
1: + EC_FLAGS_QUERY_ENABLED = 0,
1: + EC_FLAGS_QUERY_PENDING = 1,
1: + EC_FLAGS_QUERY_GUARDING = 2,
1: + EC_FLAGS_EVENT_HANDLER_INSTALLED = 3,
1: + EC_FLAGS_EC_HANDLER_INSTALLED = 4,
1: + EC_FLAGS_QUERY_METHODS_INSTALLED = 5,
1: + EC_FLAGS_STARTED = 6,
1: + EC_FLAGS_STOPPED = 7,
1: + EC_FLAGS_EVENTS_MASKED = 8,
1: };
1:
1: struct acpi_ec_query_handler {
1: - struct list_head node;
1: - acpi_ec_query_func func;
1: - acpi_handle handle;
1: - void *data;
1: - u8 query_bit;
1: - struct kref kref;
1: + struct list_head node;
1: + acpi_ec_query_func func;
1: + acpi_handle handle;
1: + void *data;
1: + u8 query_bit;
1: + struct kref kref;
1: };
1:
1: struct acpi_ec_query {
1: - struct transaction transaction;
1: - struct work_struct work;
1: - struct acpi_ec_query_handler *handler;
1: + struct transaction transaction;
1: + struct work_struct work;
1: + struct acpi_ec_query_handler *handler;
1: };
1:
1: struct dock_station {
1: - acpi_handle handle;
1: - long unsigned int last_dock_time;
1: - u32 flags;
1: - struct list_head dependent_devices;
1: - struct list_head sibling;
1: - struct platform_device *dock_device;
1: + acpi_handle handle;
1: + long unsigned int last_dock_time;
1: + u32 flags;
1: + struct list_head dependent_devices;
1: + struct list_head sibling;
1: + struct platform_device *dock_device;
1: };
1:
1: struct dock_dependent_device {
1: - struct list_head list;
1: - struct acpi_device *adev;
1: + struct list_head list;
1: + struct acpi_device *adev;
1: };
1:
1: enum dock_callback_type {
1: - DOCK_CALL_HANDLER = 0,
1: - DOCK_CALL_FIXUP = 1,
1: - DOCK_CALL_UEVENT = 2,
1: + DOCK_CALL_HANDLER = 0,
1: + DOCK_CALL_FIXUP = 1,
1: + DOCK_CALL_UEVENT = 2,
1: };
1:
1: struct pci_osc_bit_struct {
1: - u32 bit;
1: - char *desc;
1: + u32 bit;
1: + char *desc;
1: };
1:
1: struct acpi_handle_node {
1: - struct list_head node;
1: - acpi_handle handle;
1: + struct list_head node;
1: + acpi_handle handle;
1: };
1:
1: struct acpi_pci_link_irq {
1: - u32 active;
1: - u8 triggering;
1: - u8 polarity;
1: - u8 resource_type;
1: - u8 possible_count;
1: - u32 possible[16];
1: - u8 initialized: 1;
1: - u8 reserved: 7;
1: + u32 active;
1: + u8 triggering;
1: + u8 polarity;
1: + u8 resource_type;
1: + u8 possible_count;
1: + u32 possible[16];
1: + u8 initialized : 1;
1: + u8 reserved : 7;
1: };
1:
1: struct acpi_pci_link {
1: - struct list_head list;
1: - struct acpi_device *device;
1: - struct acpi_pci_link_irq irq;
1: - int refcnt;
1: + struct list_head list;
1: + struct acpi_device *device;
1: + struct acpi_pci_link_irq irq;
1: + int refcnt;
1: };
1:
1: struct acpi_pci_routing_table {
1: - u32 length;
1: - u32 pin;
1: - u64 address;
1: - u32 source_index;
1: - char source[4];
1: + u32 length;
1: + u32 pin;
1: + u64 address;
1: + u32 source_index;
1: + char source[4];
1: };
1:
1: struct acpi_prt_entry {
1: - struct acpi_pci_id id;
1: - u8 pin;
1: - acpi_handle link;
1: - u32 index;
1: + struct acpi_pci_id id;
1: + u8 pin;
1: + acpi_handle link;
1: + u32 index;
1: };
1:
1: struct prt_quirk {
1: - const struct dmi_system_id *system;
1: - unsigned int segment;
1: - unsigned int bus;
1: - unsigned int device;
1: - unsigned char pin;
1: - const char *source;
1: - const char *actual_source;
1: + const struct dmi_system_id *system;
1: + unsigned int segment;
1: + unsigned int bus;
1: + unsigned int device;
1: + unsigned char pin;
1: + const char *source;
1: + const char *actual_source;
1: };
1:
1: struct apd_private_data;
1:
1: struct apd_device_desc {
1: - unsigned int fixed_clk_rate;
1: - struct property_entry *properties;
1: - int (*setup)(struct apd_private_data *);
1: + unsigned int fixed_clk_rate;
1: + struct property_entry *properties;
1: + int (*setup)(struct apd_private_data *);
1: };
1:
1: struct apd_private_data {
1: - struct clk *clk;
1: - struct acpi_device *adev;
1: - const struct apd_device_desc *dev_desc;
1: + struct clk *clk;
1: + struct acpi_device *adev;
1: + const struct apd_device_desc *dev_desc;
1: };
1:
1: struct acpi_power_dependent_device {
1: - struct device *dev;
1: - struct list_head node;
1: + struct device *dev;
1: + struct list_head node;
1: };
1:
1: struct acpi_power_resource {
1: - struct acpi_device device;
1: - struct list_head list_node;
1: - char *name;
1: - u32 system_level;
1: - u32 order;
1: - unsigned int ref_count;
1: - bool wakeup_enabled;
1: - struct mutex resource_lock;
1: - struct list_head dependents;
1: + struct acpi_device device;
1: + struct list_head list_node;
1: + char *name;
1: + u32 system_level;
1: + u32 order;
1: + unsigned int ref_count;
1: + bool wakeup_enabled;
1: + struct mutex resource_lock;
1: + struct list_head dependents;
1: };
1:
1: struct acpi_power_resource_entry {
1: - struct list_head node;
1: - struct acpi_power_resource *resource;
1: + struct list_head node;
1: + struct acpi_power_resource *resource;
1: };
1:
1: struct acpi_bus_event {
1: - struct list_head node;
1: - acpi_device_class device_class;
1: - acpi_bus_id bus_id;
1: - u32 type;
1: - u32 data;
1: + struct list_head node;
1: + acpi_device_class device_class;
1: + acpi_bus_id bus_id;
1: + u32 type;
1: + u32 data;
1: };
1:
1: struct acpi_genl_event {
1: - acpi_device_class device_class;
1: - char bus_id[15];
1: - u32 type;
1: - u32 data;
1: + acpi_device_class device_class;
1: + char bus_id[15];
1: + u32 type;
1: + u32 data;
1: };
1:
1: enum {
1: - ACPI_GENL_ATTR_UNSPEC = 0,
1: - ACPI_GENL_ATTR_EVENT = 1,
1: - __ACPI_GENL_ATTR_MAX = 2,
1: + ACPI_GENL_ATTR_UNSPEC = 0,
1: + ACPI_GENL_ATTR_EVENT = 1,
1: + __ACPI_GENL_ATTR_MAX = 2,
1: };
1:
1: enum {
1: - ACPI_GENL_CMD_UNSPEC = 0,
1: - ACPI_GENL_CMD_EVENT = 1,
1: - __ACPI_GENL_CMD_MAX = 2,
1: + ACPI_GENL_CMD_UNSPEC = 0,
1: + ACPI_GENL_CMD_EVENT = 1,
1: + __ACPI_GENL_CMD_MAX = 2,
1: };
1:
1: struct acpi_ged_device {
1: - struct device *dev;
1: - struct list_head event_list;
1: + struct device *dev;
1: + struct list_head event_list;
1: };
1:
1: struct acpi_ged_event {
1: - struct list_head node;
1: - struct device *dev;
1: - unsigned int gsi;
1: - unsigned int irq;
1: - acpi_handle handle;
1: + struct list_head node;
1: + struct device *dev;
1: + unsigned int gsi;
1: + unsigned int irq;
1: + acpi_handle handle;
1: };
1:
1: typedef void (*acpi_gbl_event_handler)(u32, acpi_handle, u32, void *);
1:
1: struct acpi_table_bert {
1: - struct acpi_table_header header;
1: - u32 region_length;
1: - u64 address;
1: + struct acpi_table_header header;
1: + u32 region_length;
1: + u64 address;
1: };
1:
1: struct acpi_table_attr {
1: - struct bin_attribute attr;
1: - char name[4];
1: - int instance;
1: - char filename[8];
1: - struct list_head node;
1: + struct bin_attribute attr;
1: + char name[4];
1: + int instance;
1: + char filename[8];
1: + struct list_head node;
1: };
1:
1: struct acpi_data_attr {
1: - struct bin_attribute attr;
1: - u64 addr;
1: + struct bin_attribute attr;
1: + u64 addr;
1: };
1:
1: struct acpi_data_obj {
1: - char *name;
1: - int (*fn)(void *, struct acpi_data_attr *);
1: + char *name;
1: + int (*fn)(void *, struct acpi_data_attr *);
1: };
1:
1: struct event_counter {
1: - u32 count;
1: - u32 flags;
1: + u32 count;
1: + u32 flags;
1: };
1:
1: struct acpi_device_properties {
1: - const guid_t *guid;
1: - const union acpi_object *properties;
1: - struct list_head list;
1: + const guid_t *guid;
1: + const union acpi_object *properties;
1: + struct list_head list;
1: };
1:
1: struct acpi_lpat {
1: - int temp;
1: - int raw;
1: + int temp;
1: + int raw;
1: };
1:
1: struct acpi_lpat_conversion_table {
1: - struct acpi_lpat *lpat;
1: - int lpat_count;
1: + struct acpi_lpat *lpat;
1: + int lpat_count;
1: };
1:
1: struct acpi_irq_parse_one_ctx {
1: - int rc;
1: - unsigned int index;
1: - long unsigned int *res_flags;
1: - struct irq_fwspec *fwspec;
1: + int rc;
1: + unsigned int index;
1: + long unsigned int *res_flags;
1: + struct irq_fwspec *fwspec;
1: };
1:
1: enum {
1: - ACPI_REFCLASS_LOCAL = 0,
1: - ACPI_REFCLASS_ARG = 1,
1: - ACPI_REFCLASS_REFOF = 2,
1: - ACPI_REFCLASS_INDEX = 3,
1: - ACPI_REFCLASS_TABLE = 4,
1: - ACPI_REFCLASS_NAME = 5,
1: - ACPI_REFCLASS_DEBUG = 6,
1: - ACPI_REFCLASS_MAX = 6,
1: + ACPI_REFCLASS_LOCAL = 0,
1: + ACPI_REFCLASS_ARG = 1,
1: + ACPI_REFCLASS_REFOF = 2,
1: + ACPI_REFCLASS_INDEX = 3,
1: + ACPI_REFCLASS_TABLE = 4,
1: + ACPI_REFCLASS_NAME = 5,
1: + ACPI_REFCLASS_DEBUG = 6,
1: + ACPI_REFCLASS_MAX = 6,
1: };
1:
1: struct acpi_common_descriptor {
1: - void *common_pointer;
1: - u8 descriptor_type;
1: + void *common_pointer;
1: + u8 descriptor_type;
1: };
1:
1: union acpi_descriptor {
1: - struct acpi_common_descriptor common;
1: - union acpi_operand_object object;
1: - struct acpi_namespace_node node;
1: - union acpi_parse_object op;
1: + struct acpi_common_descriptor common;
1: + union acpi_operand_object object;
1: + struct acpi_namespace_node node;
1: + union acpi_parse_object op;
1: };
1:
1: struct acpi_create_field_info {
1: - struct acpi_namespace_node *region_node;
1: - struct acpi_namespace_node *field_node;
1: - struct acpi_namespace_node *register_node;
1: - struct acpi_namespace_node *data_register_node;
1: - struct acpi_namespace_node *connection_node;
1: - u8 *resource_buffer;
1: - u32 bank_value;
1: - u32 field_bit_position;
1: - u32 field_bit_length;
1: - u16 resource_length;
1: - u16 pin_number_index;
1: - u8 field_flags;
1: - u8 attribute;
1: - u8 field_type;
1: - u8 access_length;
1: + struct acpi_namespace_node *region_node;
1: + struct acpi_namespace_node *field_node;
1: + struct acpi_namespace_node *register_node;
1: + struct acpi_namespace_node *data_register_node;
1: + struct acpi_namespace_node *connection_node;
1: + u8 *resource_buffer;
1: + u32 bank_value;
1: + u32 field_bit_position;
1: + u32 field_bit_length;
1: + u16 resource_length;
1: + u16 pin_number_index;
1: + u8 field_flags;
1: + u8 attribute;
1: + u8 field_type;
1: + u8 access_length;
1: };
1:
1: struct acpi_init_walk_info {
1: - u32 table_index;
1: - u32 object_count;
1: - u32 method_count;
1: - u32 serial_method_count;
1: - u32 non_serial_method_count;
1: - u32 serialized_method_count;
1: - u32 device_count;
1: - u32 op_region_count;
1: - u32 field_count;
1: - u32 buffer_count;
1: - u32 package_count;
1: - u32 op_region_init;
1: - u32 field_init;
1: - u32 buffer_init;
1: - u32 package_init;
1: - acpi_owner_id owner_id;
1: + u32 table_index;
1: + u32 object_count;
1: + u32 method_count;
1: + u32 serial_method_count;
1: + u32 non_serial_method_count;
1: + u32 serialized_method_count;
1: + u32 device_count;
1: + u32 op_region_count;
1: + u32 field_count;
1: + u32 buffer_count;
1: + u32 package_count;
1: + u32 op_region_init;
1: + u32 field_init;
1: + u32 buffer_init;
1: + u32 package_init;
1: + acpi_owner_id owner_id;
1: };
1:
1: typedef u32 acpi_name;
1:
1: -typedef acpi_status (*acpi_exception_handler)(acpi_status, acpi_name, u16, u32, void *);
1: +typedef acpi_status (*acpi_exception_handler)(acpi_status, acpi_name, u16, u32,
1: + void *);
1:
1: struct acpi_name_info {
1: - char name[4];
1: - u16 argument_list;
1: - u8 expected_btypes;
1: + char name[4];
1: + u16 argument_list;
1: + u8 expected_btypes;
1: } __attribute__((packed));
1:
1: struct acpi_package_info {
1: - u8 type;
1: - u8 object_type1;
1: - u8 count1;
1: - u8 object_type2;
1: - u8 count2;
1: - u16 reserved;
1: + u8 type;
1: + u8 object_type1;
1: + u8 count1;
1: + u8 object_type2;
1: + u8 count2;
1: + u16 reserved;
1: } __attribute__((packed));
1:
1: struct acpi_package_info2 {
1: - u8 type;
1: - u8 count;
1: - u8 object_type[4];
1: - u8 reserved;
1: + u8 type;
1: + u8 count;
1: + u8 object_type[4];
1: + u8 reserved;
1: };
1:
1: struct acpi_package_info3 {
1: - u8 type;
1: - u8 count;
1: - u8 object_type[2];
1: - u8 tail_object_type;
1: - u16 reserved;
1: + u8 type;
1: + u8 count;
1: + u8 object_type[2];
1: + u8 tail_object_type;
1: + u16 reserved;
1: } __attribute__((packed));
1:
1: struct acpi_package_info4 {
1: - u8 type;
1: - u8 object_type1;
1: - u8 count1;
1: - u8 sub_object_types;
1: - u8 pkg_count;
1: - u16 reserved;
1: + u8 type;
1: + u8 object_type1;
1: + u8 count1;
1: + u8 sub_object_types;
1: + u8 pkg_count;
1: + u16 reserved;
1: } __attribute__((packed));
1:
1: union acpi_predefined_info {
1: - struct acpi_name_info info;
1: - struct acpi_package_info ret_info;
1: - struct acpi_package_info2 ret_info2;
1: - struct acpi_package_info3 ret_info3;
1: - struct acpi_package_info4 ret_info4;
1: + struct acpi_name_info info;
1: + struct acpi_package_info ret_info;
1: + struct acpi_package_info2 ret_info2;
1: + struct acpi_package_info3 ret_info3;
1: + struct acpi_package_info4 ret_info4;
1: };
1:
1: struct acpi_evaluate_info {
1: - struct acpi_namespace_node *prefix_node;
1: - const char *relative_pathname;
1: - union acpi_operand_object **parameters;
1: - struct acpi_namespace_node *node;
1: - union acpi_operand_object *obj_desc;
1: - char *full_pathname;
1: - const union acpi_predefined_info *predefined;
1: - union acpi_operand_object *return_object;
1: - union acpi_operand_object *parent_package;
1: - u32 return_flags;
1: - u32 return_btype;
1: - u16 param_count;
1: - u16 node_flags;
1: - u8 pass_number;
1: - u8 return_object_type;
1: - u8 flags;
1: -};
1: -
1: -enum {
1: - AML_FIELD_ACCESS_ANY = 0,
1: - AML_FIELD_ACCESS_BYTE = 1,
1: - AML_FIELD_ACCESS_WORD = 2,
1: - AML_FIELD_ACCESS_DWORD = 3,
1: - AML_FIELD_ACCESS_QWORD = 4,
1: - AML_FIELD_ACCESS_BUFFER = 5,
1: + struct acpi_namespace_node *prefix_node;
1: + const char *relative_pathname;
1: + union acpi_operand_object **parameters;
1: + struct acpi_namespace_node *node;
1: + union acpi_operand_object *obj_desc;
1: + char *full_pathname;
1: + const union acpi_predefined_info *predefined;
1: + union acpi_operand_object *return_object;
1: + union acpi_operand_object *parent_package;
1: + u32 return_flags;
1: + u32 return_btype;
1: + u16 param_count;
1: + u16 node_flags;
1: + u8 pass_number;
1: + u8 return_object_type;
1: + u8 flags;
1: +};
1: +
1: +enum {
1: + AML_FIELD_ACCESS_ANY = 0,
1: + AML_FIELD_ACCESS_BYTE = 1,
1: + AML_FIELD_ACCESS_WORD = 2,
1: + AML_FIELD_ACCESS_DWORD = 3,
1: + AML_FIELD_ACCESS_QWORD = 4,
1: + AML_FIELD_ACCESS_BUFFER = 5,
1: };
1:
1: typedef enum {
1: - ACPI_IMODE_LOAD_PASS1 = 1,
1: - ACPI_IMODE_LOAD_PASS2 = 2,
1: - ACPI_IMODE_EXECUTE = 3,
1: + ACPI_IMODE_LOAD_PASS1 = 1,
1: + ACPI_IMODE_LOAD_PASS2 = 2,
1: + ACPI_IMODE_EXECUTE = 3,
1: } acpi_interpreter_mode;
1:
1: typedef acpi_status (*acpi_execute_op)(struct acpi_walk_state *);
1:
1: struct acpi_reg_walk_info {
1: - u32 function;
1: - u32 reg_run_count;
1: - acpi_adr_space_type space_id;
1: + u32 function;
1: + u32 reg_run_count;
1: + acpi_adr_space_type space_id;
1: };
1:
1: enum {
1: - AML_FIELD_UPDATE_PRESERVE = 0,
1: - AML_FIELD_UPDATE_WRITE_AS_ONES = 32,
1: - AML_FIELD_UPDATE_WRITE_AS_ZEROS = 64,
1: + AML_FIELD_UPDATE_PRESERVE = 0,
1: + AML_FIELD_UPDATE_WRITE_AS_ONES = 32,
1: + AML_FIELD_UPDATE_WRITE_AS_ZEROS = 64,
1: };
1:
1: struct acpi_signal_fatal_info {
1: - u32 type;
1: - u32 code;
1: - u32 argument;
1: + u32 type;
1: + u32 code;
1: + u32 argument;
1: };
1:
1: enum {
1: - MATCH_MTR = 0,
1: - MATCH_MEQ = 1,
1: - MATCH_MLE = 2,
1: - MATCH_MLT = 3,
1: - MATCH_MGE = 4,
1: - MATCH_MGT = 5,
1: + MATCH_MTR = 0,
1: + MATCH_MEQ = 1,
1: + MATCH_MLE = 2,
1: + MATCH_MLT = 3,
1: + MATCH_MGE = 4,
1: + MATCH_MGT = 5,
1: };
1:
1: enum {
1: - AML_FIELD_ATTRIB_QUICK = 2,
1: - AML_FIELD_ATTRIB_SEND_RECEIVE = 4,
1: - AML_FIELD_ATTRIB_BYTE = 6,
1: - AML_FIELD_ATTRIB_WORD = 8,
1: - AML_FIELD_ATTRIB_BLOCK = 10,
1: - AML_FIELD_ATTRIB_BYTES = 11,
1: - AML_FIELD_ATTRIB_PROCESS_CALL = 12,
1: - AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL = 13,
1: - AML_FIELD_ATTRIB_RAW_BYTES = 14,
1: - AML_FIELD_ATTRIB_RAW_PROCESS_BYTES = 15,
1: + AML_FIELD_ATTRIB_QUICK = 2,
1: + AML_FIELD_ATTRIB_SEND_RECEIVE = 4,
1: + AML_FIELD_ATTRIB_BYTE = 6,
1: + AML_FIELD_ATTRIB_WORD = 8,
1: + AML_FIELD_ATTRIB_BLOCK = 10,
1: + AML_FIELD_ATTRIB_BYTES = 11,
1: + AML_FIELD_ATTRIB_PROCESS_CALL = 12,
1: + AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL = 13,
1: + AML_FIELD_ATTRIB_RAW_BYTES = 14,
1: + AML_FIELD_ATTRIB_RAW_PROCESS_BYTES = 15,
1: };
1:
1: typedef enum {
1: - ACPI_TRACE_AML_METHOD = 0,
1: - ACPI_TRACE_AML_OPCODE = 1,
1: - ACPI_TRACE_AML_REGION = 2,
1: + ACPI_TRACE_AML_METHOD = 0,
1: + ACPI_TRACE_AML_OPCODE = 1,
1: + ACPI_TRACE_AML_REGION = 2,
1: } acpi_trace_event_type;
1:
1: struct acpi_port_info {
1: - char *name;
1: - u16 start;
1: - u16 end;
1: - u8 osi_dependency;
1: + char *name;
1: + u16 start;
1: + u16 end;
1: + u8 osi_dependency;
1: };
1:
1: struct acpi_pci_device {
1: - acpi_handle device;
1: - struct acpi_pci_device *next;
1: + acpi_handle device;
1: + struct acpi_pci_device *next;
1: };
1:
1: typedef acpi_status (*acpi_init_handler)(acpi_handle, u32);
1:
1: struct acpi_device_walk_info {
1: - struct acpi_table_desc *table_desc;
1: - struct acpi_evaluate_info *evaluate_info;
1: - u32 device_count;
1: - u32 num_STA;
1: - u32 num_INI;
1: + struct acpi_table_desc *table_desc;
1: + struct acpi_evaluate_info *evaluate_info;
1: + u32 device_count;
1: + u32 num_STA;
1: + u32 num_INI;
1: };
1:
1: struct acpi_table_list {
1: - struct acpi_table_desc *tables;
1: - u32 current_table_count;
1: - u32 max_table_count;
1: - u8 flags;
1: + struct acpi_table_desc *tables;
1: + u32 current_table_count;
1: + u32 max_table_count;
1: + u8 flags;
1: };
1:
1: enum acpi_return_package_types {
1: - ACPI_PTYPE1_FIXED = 1,
1: - ACPI_PTYPE1_VAR = 2,
1: - ACPI_PTYPE1_OPTION = 3,
1: - ACPI_PTYPE2 = 4,
1: - ACPI_PTYPE2_COUNT = 5,
1: - ACPI_PTYPE2_PKG_COUNT = 6,
1: - ACPI_PTYPE2_FIXED = 7,
1: - ACPI_PTYPE2_MIN = 8,
1: - ACPI_PTYPE2_REV_FIXED = 9,
1: - ACPI_PTYPE2_FIX_VAR = 10,
1: - ACPI_PTYPE2_VAR_VAR = 11,
1: - ACPI_PTYPE2_UUID_PAIR = 12,
1: - ACPI_PTYPE_CUSTOM = 13,
1: -};
1: -
1: -typedef acpi_status (*acpi_object_converter)(struct acpi_namespace_node *, union acpi_operand_object *, union acpi_operand_object **);
1: + ACPI_PTYPE1_FIXED = 1,
1: + ACPI_PTYPE1_VAR = 2,
1: + ACPI_PTYPE1_OPTION = 3,
1: + ACPI_PTYPE2 = 4,
1: + ACPI_PTYPE2_COUNT = 5,
1: + ACPI_PTYPE2_PKG_COUNT = 6,
1: + ACPI_PTYPE2_FIXED = 7,
1: + ACPI_PTYPE2_MIN = 8,
1: + ACPI_PTYPE2_REV_FIXED = 9,
1: + ACPI_PTYPE2_FIX_VAR = 10,
1: + ACPI_PTYPE2_VAR_VAR = 11,
1: + ACPI_PTYPE2_UUID_PAIR = 12,
1: + ACPI_PTYPE_CUSTOM = 13,
1: +};
1: +
1: +typedef acpi_status (*acpi_object_converter)(struct acpi_namespace_node *,
1: + union acpi_operand_object *,
1: + union acpi_operand_object **);
1:
1: struct acpi_simple_repair_info {
1: - char name[4];
1: - u32 unexpected_btypes;
1: - u32 package_index;
1: - acpi_object_converter object_converter;
1: + char name[4];
1: + u32 unexpected_btypes;
1: + u32 package_index;
1: + acpi_object_converter object_converter;
1: };
1:
1: -typedef acpi_status (*acpi_repair_function)(struct acpi_evaluate_info *, union acpi_operand_object **);
1: +typedef acpi_status (*acpi_repair_function)(struct acpi_evaluate_info *,
1: + union acpi_operand_object **);
1:
1: struct acpi_repair_info {
1: - char name[4];
1: - acpi_repair_function repair_function;
1: + char name[4];
1: + acpi_repair_function repair_function;
1: };
1:
1: struct acpi_namestring_info {
1: - const char *external_name;
1: - const char *next_external_char;
1: - char *internal_name;
1: - u32 length;
1: - u32 num_segments;
1: - u32 num_carats;
1: - u8 fully_qualified;
1: + const char *external_name;
1: + const char *next_external_char;
1: + char *internal_name;
1: + u32 length;
1: + u32 num_segments;
1: + u32 num_carats;
1: + u8 fully_qualified;
1: };
1:
1: typedef acpi_status (*acpi_walk_callback)(acpi_handle, u32, void *, void **);
1:
1: struct acpi_rw_lock {
1: - void *writer_mutex;
1: - void *reader_mutex;
1: - u32 num_readers;
1: + void *writer_mutex;
1: + void *reader_mutex;
1: + u32 num_readers;
1: };
1:
1: struct acpi_get_devices_info {
1: - acpi_walk_callback user_function;
1: - void *context;
1: - const char *hid;
1: + acpi_walk_callback user_function;
1: + void *context;
1: + const char *hid;
1: };
1:
1: struct aml_resource_small_header {
1: - u8 descriptor_type;
1: + u8 descriptor_type;
1: };
1:
1: struct aml_resource_irq {
1: - u8 descriptor_type;
1: - u16 irq_mask;
1: - u8 flags;
1: + u8 descriptor_type;
1: + u16 irq_mask;
1: + u8 flags;
1: } __attribute__((packed));
1:
1: struct aml_resource_dma {
1: - u8 descriptor_type;
1: - u8 dma_channel_mask;
1: - u8 flags;
1: + u8 descriptor_type;
1: + u8 dma_channel_mask;
1: + u8 flags;
1: };
1:
1: struct aml_resource_start_dependent {
1: - u8 descriptor_type;
1: - u8 flags;
1: + u8 descriptor_type;
1: + u8 flags;
1: };
1:
1: struct aml_resource_end_dependent {
1: - u8 descriptor_type;
1: + u8 descriptor_type;
1: };
1:
1: struct aml_resource_io {
1: - u8 descriptor_type;
1: - u8 flags;
1: - u16 minimum;
1: - u16 maximum;
1: - u8 alignment;
1: - u8 address_length;
1: + u8 descriptor_type;
1: + u8 flags;
1: + u16 minimum;
1: + u16 maximum;
1: + u8 alignment;
1: + u8 address_length;
1: };
1:
1: struct aml_resource_fixed_io {
1: - u8 descriptor_type;
1: - u16 address;
1: - u8 address_length;
1: + u8 descriptor_type;
1: + u16 address;
1: + u8 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_vendor_small {
1: - u8 descriptor_type;
1: + u8 descriptor_type;
1: };
1:
1: struct aml_resource_end_tag {
1: - u8 descriptor_type;
1: - u8 checksum;
1: + u8 descriptor_type;
1: + u8 checksum;
1: };
1:
1: struct aml_resource_fixed_dma {
1: - u8 descriptor_type;
1: - u16 request_lines;
1: - u16 channels;
1: - u8 width;
1: + u8 descriptor_type;
1: + u16 request_lines;
1: + u16 channels;
1: + u8 width;
1: } __attribute__((packed));
1:
1: struct aml_resource_large_header {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_memory24 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 flags;
1: - u16 minimum;
1: - u16 maximum;
1: - u16 alignment;
1: - u16 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 alignment;
1: + u16 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_vendor_large {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_memory32 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 flags;
1: - u32 minimum;
1: - u32 maximum;
1: - u32 alignment;
1: - u32 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 alignment;
1: + u32 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_fixed_memory32 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 flags;
1: - u32 address;
1: - u32 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u32 address;
1: + u32 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_address {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 resource_type;
1: - u8 flags;
1: - u8 specific_flags;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: } __attribute__((packed));
1:
1: struct aml_resource_extended_address64 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 resource_type;
1: - u8 flags;
1: - u8 specific_flags;
1: - u8 revision_ID;
1: - u8 reserved;
1: - u64 granularity;
1: - u64 minimum;
1: - u64 maximum;
1: - u64 translation_offset;
1: - u64 address_length;
1: - u64 type_specific;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u8 revision_ID;
1: + u8 reserved;
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: + u64 type_specific;
1: } __attribute__((packed));
1:
1: struct aml_resource_address64 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 resource_type;
1: - u8 flags;
1: - u8 specific_flags;
1: - u64 granularity;
1: - u64 minimum;
1: - u64 maximum;
1: - u64 translation_offset;
1: - u64 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u64 granularity;
1: + u64 minimum;
1: + u64 maximum;
1: + u64 translation_offset;
1: + u64 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_address32 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 resource_type;
1: - u8 flags;
1: - u8 specific_flags;
1: - u32 granularity;
1: - u32 minimum;
1: - u32 maximum;
1: - u32 translation_offset;
1: - u32 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u32 granularity;
1: + u32 minimum;
1: + u32 maximum;
1: + u32 translation_offset;
1: + u32 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_address16 {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 resource_type;
1: - u8 flags;
1: - u8 specific_flags;
1: - u16 granularity;
1: - u16 minimum;
1: - u16 maximum;
1: - u16 translation_offset;
1: - u16 address_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 resource_type;
1: + u8 flags;
1: + u8 specific_flags;
1: + u16 granularity;
1: + u16 minimum;
1: + u16 maximum;
1: + u16 translation_offset;
1: + u16 address_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_extended_irq {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 flags;
1: - u8 interrupt_count;
1: - u32 interrupts[1];
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 flags;
1: + u8 interrupt_count;
1: + u32 interrupts[1];
1: } __attribute__((packed));
1:
1: struct aml_resource_generic_register {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 address_space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 access_size;
1: - u64 address;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 address_space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct aml_resource_gpio {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u8 connection_type;
1: - u16 flags;
1: - u16 int_flags;
1: - u8 pin_config;
1: - u16 drive_strength;
1: - u16 debounce_timeout;
1: - u16 pin_table_offset;
1: - u8 res_source_index;
1: - u16 res_source_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 connection_type;
1: + u16 flags;
1: + u16 int_flags;
1: + u8 pin_config;
1: + u16 drive_strength;
1: + u16 debounce_timeout;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_common_serialbus {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u8 res_source_index;
1: - u8 type;
1: - u8 flags;
1: - u16 type_specific_flags;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_i2c_serialbus {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u8 res_source_index;
1: - u8 type;
1: - u8 flags;
1: - u16 type_specific_flags;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u32 connection_speed;
1: - u16 slave_address;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 connection_speed;
1: + u16 slave_address;
1: } __attribute__((packed));
1:
1: struct aml_resource_spi_serialbus {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u8 res_source_index;
1: - u8 type;
1: - u8 flags;
1: - u16 type_specific_flags;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u32 connection_speed;
1: - u8 data_bit_length;
1: - u8 clock_phase;
1: - u8 clock_polarity;
1: - u16 device_selection;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 connection_speed;
1: + u8 data_bit_length;
1: + u8 clock_phase;
1: + u8 clock_polarity;
1: + u16 device_selection;
1: } __attribute__((packed));
1:
1: struct aml_resource_uart_serialbus {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u8 res_source_index;
1: - u8 type;
1: - u8 flags;
1: - u16 type_specific_flags;
1: - u8 type_revision_id;
1: - u16 type_data_length;
1: - u32 default_baud_rate;
1: - u16 rx_fifo_size;
1: - u16 tx_fifo_size;
1: - u8 parity;
1: - u8 lines_enabled;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u8 res_source_index;
1: + u8 type;
1: + u8 flags;
1: + u16 type_specific_flags;
1: + u8 type_revision_id;
1: + u16 type_data_length;
1: + u32 default_baud_rate;
1: + u16 rx_fifo_size;
1: + u16 tx_fifo_size;
1: + u8 parity;
1: + u8 lines_enabled;
1: } __attribute__((packed));
1:
1: struct aml_resource_pin_function {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u16 flags;
1: - u8 pin_config;
1: - u16 function_number;
1: - u16 pin_table_offset;
1: - u8 res_source_index;
1: - u16 res_source_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config;
1: + u16 function_number;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_pin_config {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u16 flags;
1: - u8 pin_config_type;
1: - u32 pin_config_value;
1: - u16 pin_table_offset;
1: - u8 res_source_index;
1: - u16 res_source_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u16 pin_table_offset;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_pin_group {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u16 flags;
1: - u16 pin_table_offset;
1: - u16 label_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u16 pin_table_offset;
1: + u16 label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_pin_group_function {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u16 flags;
1: - u16 function_number;
1: - u8 res_source_index;
1: - u16 res_source_offset;
1: - u16 res_source_label_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u16 function_number;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 res_source_label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: struct aml_resource_pin_group_config {
1: - u8 descriptor_type;
1: - u16 resource_length;
1: - u8 revision_id;
1: - u16 flags;
1: - u8 pin_config_type;
1: - u32 pin_config_value;
1: - u8 res_source_index;
1: - u16 res_source_offset;
1: - u16 res_source_label_offset;
1: - u16 vendor_offset;
1: - u16 vendor_length;
1: + u8 descriptor_type;
1: + u16 resource_length;
1: + u8 revision_id;
1: + u16 flags;
1: + u8 pin_config_type;
1: + u32 pin_config_value;
1: + u8 res_source_index;
1: + u16 res_source_offset;
1: + u16 res_source_label_offset;
1: + u16 vendor_offset;
1: + u16 vendor_length;
1: } __attribute__((packed));
1:
1: union aml_resource {
1: - u8 descriptor_type;
1: - struct aml_resource_small_header small_header;
1: - struct aml_resource_large_header large_header;
1: - struct aml_resource_irq irq;
1: - struct aml_resource_dma dma;
1: - struct aml_resource_start_dependent start_dpf;
1: - struct aml_resource_end_dependent end_dpf;
1: - struct aml_resource_io io;
1: - struct aml_resource_fixed_io fixed_io;
1: - struct aml_resource_fixed_dma fixed_dma;
1: - struct aml_resource_vendor_small vendor_small;
1: - struct aml_resource_end_tag end_tag;
1: - struct aml_resource_memory24 memory24;
1: - struct aml_resource_generic_register generic_reg;
1: - struct aml_resource_vendor_large vendor_large;
1: - struct aml_resource_memory32 memory32;
1: - struct aml_resource_fixed_memory32 fixed_memory32;
1: - struct aml_resource_address16 address16;
1: - struct aml_resource_address32 address32;
1: - struct aml_resource_address64 address64;
1: - struct aml_resource_extended_address64 ext_address64;
1: - struct aml_resource_extended_irq extended_irq;
1: - struct aml_resource_gpio gpio;
1: - struct aml_resource_i2c_serialbus i2c_serial_bus;
1: - struct aml_resource_spi_serialbus spi_serial_bus;
1: - struct aml_resource_uart_serialbus uart_serial_bus;
1: - struct aml_resource_common_serialbus common_serial_bus;
1: - struct aml_resource_pin_function pin_function;
1: - struct aml_resource_pin_config pin_config;
1: - struct aml_resource_pin_group pin_group;
1: - struct aml_resource_pin_group_function pin_group_function;
1: - struct aml_resource_pin_group_config pin_group_config;
1: - struct aml_resource_address address;
1: - u32 dword_item;
1: - u16 word_item;
1: - u8 byte_item;
1: + u8 descriptor_type;
1: + struct aml_resource_small_header small_header;
1: + struct aml_resource_large_header large_header;
1: + struct aml_resource_irq irq;
1: + struct aml_resource_dma dma;
1: + struct aml_resource_start_dependent start_dpf;
1: + struct aml_resource_end_dependent end_dpf;
1: + struct aml_resource_io io;
1: + struct aml_resource_fixed_io fixed_io;
1: + struct aml_resource_fixed_dma fixed_dma;
1: + struct aml_resource_vendor_small vendor_small;
1: + struct aml_resource_end_tag end_tag;
1: + struct aml_resource_memory24 memory24;
1: + struct aml_resource_generic_register generic_reg;
1: + struct aml_resource_vendor_large vendor_large;
1: + struct aml_resource_memory32 memory32;
1: + struct aml_resource_fixed_memory32 fixed_memory32;
1: + struct aml_resource_address16 address16;
1: + struct aml_resource_address32 address32;
1: + struct aml_resource_address64 address64;
1: + struct aml_resource_extended_address64 ext_address64;
1: + struct aml_resource_extended_irq extended_irq;
1: + struct aml_resource_gpio gpio;
1: + struct aml_resource_i2c_serialbus i2c_serial_bus;
1: + struct aml_resource_spi_serialbus spi_serial_bus;
1: + struct aml_resource_uart_serialbus uart_serial_bus;
1: + struct aml_resource_common_serialbus common_serial_bus;
1: + struct aml_resource_pin_function pin_function;
1: + struct aml_resource_pin_config pin_config;
1: + struct aml_resource_pin_group pin_group;
1: + struct aml_resource_pin_group_function pin_group_function;
1: + struct aml_resource_pin_group_config pin_group_config;
1: + struct aml_resource_address address;
1: + u32 dword_item;
1: + u16 word_item;
1: + u8 byte_item;
1: };
1:
1: struct acpi_rsconvert_info {
1: - u8 opcode;
1: - u8 resource_offset;
1: - u8 aml_offset;
1: - u8 value;
1: -};
1: -
1: -enum {
1: - ACPI_RSC_INITGET = 0,
1: - ACPI_RSC_INITSET = 1,
1: - ACPI_RSC_FLAGINIT = 2,
1: - ACPI_RSC_1BITFLAG = 3,
1: - ACPI_RSC_2BITFLAG = 4,
1: - ACPI_RSC_3BITFLAG = 5,
1: - ACPI_RSC_ADDRESS = 6,
1: - ACPI_RSC_BITMASK = 7,
1: - ACPI_RSC_BITMASK16 = 8,
1: - ACPI_RSC_COUNT = 9,
1: - ACPI_RSC_COUNT16 = 10,
1: - ACPI_RSC_COUNT_GPIO_PIN = 11,
1: - ACPI_RSC_COUNT_GPIO_RES = 12,
1: - ACPI_RSC_COUNT_GPIO_VEN = 13,
1: - ACPI_RSC_COUNT_SERIAL_RES = 14,
1: - ACPI_RSC_COUNT_SERIAL_VEN = 15,
1: - ACPI_RSC_DATA8 = 16,
1: - ACPI_RSC_EXIT_EQ = 17,
1: - ACPI_RSC_EXIT_LE = 18,
1: - ACPI_RSC_EXIT_NE = 19,
1: - ACPI_RSC_LENGTH = 20,
1: - ACPI_RSC_MOVE_GPIO_PIN = 21,
1: - ACPI_RSC_MOVE_GPIO_RES = 22,
1: - ACPI_RSC_MOVE_SERIAL_RES = 23,
1: - ACPI_RSC_MOVE_SERIAL_VEN = 24,
1: - ACPI_RSC_MOVE8 = 25,
1: - ACPI_RSC_MOVE16 = 26,
1: - ACPI_RSC_MOVE32 = 27,
1: - ACPI_RSC_MOVE64 = 28,
1: - ACPI_RSC_SET8 = 29,
1: - ACPI_RSC_SOURCE = 30,
1: - ACPI_RSC_SOURCEX = 31,
1: + u8 opcode;
1: + u8 resource_offset;
1: + u8 aml_offset;
1: + u8 value;
1: +};
1: +
1: +enum {
1: + ACPI_RSC_INITGET = 0,
1: + ACPI_RSC_INITSET = 1,
1: + ACPI_RSC_FLAGINIT = 2,
1: + ACPI_RSC_1BITFLAG = 3,
1: + ACPI_RSC_2BITFLAG = 4,
1: + ACPI_RSC_3BITFLAG = 5,
1: + ACPI_RSC_ADDRESS = 6,
1: + ACPI_RSC_BITMASK = 7,
1: + ACPI_RSC_BITMASK16 = 8,
1: + ACPI_RSC_COUNT = 9,
1: + ACPI_RSC_COUNT16 = 10,
1: + ACPI_RSC_COUNT_GPIO_PIN = 11,
1: + ACPI_RSC_COUNT_GPIO_RES = 12,
1: + ACPI_RSC_COUNT_GPIO_VEN = 13,
1: + ACPI_RSC_COUNT_SERIAL_RES = 14,
1: + ACPI_RSC_COUNT_SERIAL_VEN = 15,
1: + ACPI_RSC_DATA8 = 16,
1: + ACPI_RSC_EXIT_EQ = 17,
1: + ACPI_RSC_EXIT_LE = 18,
1: + ACPI_RSC_EXIT_NE = 19,
1: + ACPI_RSC_LENGTH = 20,
1: + ACPI_RSC_MOVE_GPIO_PIN = 21,
1: + ACPI_RSC_MOVE_GPIO_RES = 22,
1: + ACPI_RSC_MOVE_SERIAL_RES = 23,
1: + ACPI_RSC_MOVE_SERIAL_VEN = 24,
1: + ACPI_RSC_MOVE8 = 25,
1: + ACPI_RSC_MOVE16 = 26,
1: + ACPI_RSC_MOVE32 = 27,
1: + ACPI_RSC_MOVE64 = 28,
1: + ACPI_RSC_SET8 = 29,
1: + ACPI_RSC_SOURCE = 30,
1: + ACPI_RSC_SOURCEX = 31,
1: };
1:
1: typedef u16 acpi_rs_length;
1: @@ -70207,63 +71190,64 @@ typedef u16 acpi_rs_length;
1: typedef u32 acpi_rsdesc_size;
1:
1: struct acpi_vendor_uuid {
1: - u8 subtype;
1: - u8 data[16];
1: + u8 subtype;
1: + u8 data[16];
1: };
1:
1: -typedef acpi_status (*acpi_walk_resource_callback)(struct acpi_resource *, void *);
1: +typedef acpi_status (*acpi_walk_resource_callback)(struct acpi_resource *,
1: + void *);
1:
1: struct acpi_vendor_walk_info {
1: - struct acpi_vendor_uuid *uuid;
1: - struct acpi_buffer *buffer;
1: - acpi_status status;
1: + struct acpi_vendor_uuid *uuid;
1: + struct acpi_buffer *buffer;
1: + acpi_status status;
1: };
1:
1: typedef acpi_status (*acpi_table_handler)(u32, void *, void *);
1:
1: struct acpi_fadt_info {
1: - const char *name;
1: - u16 address64;
1: - u16 address32;
1: - u16 length;
1: - u8 default_length;
1: - u8 flags;
1: + const char *name;
1: + u16 address64;
1: + u16 address32;
1: + u16 length;
1: + u8 default_length;
1: + u8 flags;
1: };
1:
1: struct acpi_fadt_pm_info {
1: - struct acpi_generic_address *target;
1: - u16 source;
1: - u8 register_num;
1: + struct acpi_generic_address *target;
1: + u16 source;
1: + u8 register_num;
1: };
1:
1: struct acpi_table_rsdp {
1: - char signature[8];
1: - u8 checksum;
1: - char oem_id[6];
1: - u8 revision;
1: - u32 rsdt_physical_address;
1: - u32 length;
1: - u64 xsdt_physical_address;
1: - u8 extended_checksum;
1: - u8 reserved[3];
1: + char signature[8];
1: + u8 checksum;
1: + char oem_id[6];
1: + u8 revision;
1: + u32 rsdt_physical_address;
1: + u32 length;
1: + u64 xsdt_physical_address;
1: + u8 extended_checksum;
1: + u8 reserved[3];
1: } __attribute__((packed));
1:
1: struct acpi_address_range {
1: - struct acpi_address_range *next;
1: - struct acpi_namespace_node *region_node;
1: - acpi_physical_address start_address;
1: - acpi_physical_address end_address;
1: + struct acpi_address_range *next;
1: + struct acpi_namespace_node *region_node;
1: + acpi_physical_address start_address;
1: + acpi_physical_address end_address;
1: };
1:
1: struct acpi_pkg_info {
1: - u8 *free_space;
1: - acpi_size length;
1: - u32 object_space;
1: - u32 num_packages;
1: + u8 *free_space;
1: + acpi_size length;
1: + u32 object_space;
1: + u32 num_packages;
1: };
1:
1: struct acpi_exception_info {
1: - char *name;
1: + char *name;
1: };
1:
1: typedef u32 (*acpi_sci_handler)(void *);
1: @@ -70271,290 +71255,291 @@ typedef u32 (*acpi_sci_handler)(void *);
1: typedef u32 (*acpi_interface_handler)(acpi_string, u32);
1:
1: struct acpi_mutex_info {
1: - void *mutex;
1: - u32 use_count;
1: - u64 thread_id;
1: + void *mutex;
1: + u32 use_count;
1: + u64 thread_id;
1: };
1:
1: struct acpi_sci_handler_info {
1: - struct acpi_sci_handler_info *next;
1: - acpi_sci_handler address;
1: - void *context;
1: + struct acpi_sci_handler_info *next;
1: + acpi_sci_handler address;
1: + void *context;
1: };
1:
1: struct acpi_comment_node {
1: - char *comment;
1: - struct acpi_comment_node *next;
1: + char *comment;
1: + struct acpi_comment_node *next;
1: };
1:
1: struct acpi_interface_info {
1: - char *name;
1: - struct acpi_interface_info *next;
1: - u8 flags;
1: - u8 value;
1: + char *name;
1: + struct acpi_interface_info *next;
1: + u8 flags;
1: + u8 value;
1: };
1:
1: -typedef acpi_status (*acpi_pkg_callback)(u8, union acpi_operand_object *, union acpi_generic_state *, void *);
1: +typedef acpi_status (*acpi_pkg_callback)(u8, union acpi_operand_object *,
1: + union acpi_generic_state *, void *);
1:
1: typedef u32 acpi_mutex_handle;
1:
1: typedef acpi_status (*acpi_walk_aml_callback)(u8 *, u32, u32, u8, void **);
1:
1: struct acpi_table_mcfg {
1: - struct acpi_table_header header;
1: - u8 reserved[8];
1: + struct acpi_table_header header;
1: + u8 reserved[8];
1: };
1:
1: struct acpi_mcfg_allocation {
1: - u64 address;
1: - u16 pci_segment;
1: - u8 start_bus_number;
1: - u8 end_bus_number;
1: - u32 reserved;
1: + u64 address;
1: + u16 pci_segment;
1: + u8 start_bus_number;
1: + u8 end_bus_number;
1: + u32 reserved;
1: };
1:
1: struct mcfg_entry {
1: - struct list_head list;
1: - phys_addr_t addr;
1: - u16 segment;
1: - u8 bus_start;
1: - u8 bus_end;
1: + struct list_head list;
1: + phys_addr_t addr;
1: + u16 segment;
1: + u8 bus_start;
1: + u8 bus_end;
1: };
1:
1: struct mcfg_fixup {
1: - char oem_id[7];
1: - char oem_table_id[9];
1: - u32 oem_revision;
1: - u16 segment;
1: - struct resource bus_range;
1: - const struct pci_ecam_ops *ops;
1: - struct resource cfgres;
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: + u16 segment;
1: + struct resource bus_range;
1: + const struct pci_ecam_ops *ops;
1: + struct resource cfgres;
1: };
1:
1: struct acpi_pci_slot {
1: - struct pci_slot *pci_slot;
1: - struct list_head list;
1: + struct pci_slot *pci_slot;
1: + struct list_head list;
1: };
1:
1: struct acpi_power_register {
1: - u8 descriptor;
1: - u16 length;
1: - u8 space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 access_size;
1: - u64 address;
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_size;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct acpi_lpi_states_array {
1: - unsigned int size;
1: - unsigned int composite_states_size;
1: - struct acpi_lpi_state *entries;
1: - struct acpi_lpi_state *composite_states[8];
1: + unsigned int size;
1: + unsigned int composite_states_size;
1: + struct acpi_lpi_state *entries;
1: + struct acpi_lpi_state *composite_states[8];
1: };
1:
1: struct container_dev {
1: - struct device dev;
1: - int (*offline)(struct container_dev *);
1: + struct device dev;
1: + int (*offline)(struct container_dev *);
1: };
1:
1: struct acpi_table_slit {
1: - struct acpi_table_header header;
1: - u64 locality_count;
1: - u8 entry[1];
1: + struct acpi_table_header header;
1: + u64 locality_count;
1: + u8 entry[1];
1: } __attribute__((packed));
1:
1: struct acpi_table_srat {
1: - struct acpi_table_header header;
1: - u32 table_revision;
1: - u64 reserved;
1: + struct acpi_table_header header;
1: + u32 table_revision;
1: + u64 reserved;
1: };
1:
1: struct acpi_srat_cpu_affinity {
1: - struct acpi_subtable_header header;
1: - u8 proximity_domain_lo;
1: - u8 apic_id;
1: - u32 flags;
1: - u8 local_sapic_eid;
1: - u8 proximity_domain_hi[3];
1: - u32 clock_domain;
1: + struct acpi_subtable_header header;
1: + u8 proximity_domain_lo;
1: + u8 apic_id;
1: + u32 flags;
1: + u8 local_sapic_eid;
1: + u8 proximity_domain_hi[3];
1: + u32 clock_domain;
1: };
1:
1: struct acpi_srat_mem_affinity {
1: - struct acpi_subtable_header header;
1: - u32 proximity_domain;
1: - u16 reserved;
1: - u64 base_address;
1: - u64 length;
1: - u32 reserved1;
1: - u32 flags;
1: - u64 reserved2;
1: + struct acpi_subtable_header header;
1: + u32 proximity_domain;
1: + u16 reserved;
1: + u64 base_address;
1: + u64 length;
1: + u32 reserved1;
1: + u32 flags;
1: + u64 reserved2;
1: } __attribute__((packed));
1:
1: struct acpi_srat_x2apic_cpu_affinity {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 proximity_domain;
1: - u32 apic_id;
1: - u32 flags;
1: - u32 clock_domain;
1: - u32 reserved2;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 proximity_domain;
1: + u32 apic_id;
1: + u32 flags;
1: + u32 clock_domain;
1: + u32 reserved2;
1: };
1:
1: struct acpi_srat_generic_affinity {
1: - struct acpi_subtable_header header;
1: - u8 reserved;
1: - u8 device_handle_type;
1: - u32 proximity_domain;
1: - u8 device_handle[16];
1: - u32 flags;
1: - u32 reserved1;
1: + struct acpi_subtable_header header;
1: + u8 reserved;
1: + u8 device_handle_type;
1: + u32 proximity_domain;
1: + u8 device_handle[16];
1: + u32 flags;
1: + u32 reserved1;
1: };
1:
1: enum acpi_hmat_type {
1: - ACPI_HMAT_TYPE_PROXIMITY = 0,
1: - ACPI_HMAT_TYPE_LOCALITY = 1,
1: - ACPI_HMAT_TYPE_CACHE = 2,
1: - ACPI_HMAT_TYPE_RESERVED = 3,
1: + ACPI_HMAT_TYPE_PROXIMITY = 0,
1: + ACPI_HMAT_TYPE_LOCALITY = 1,
1: + ACPI_HMAT_TYPE_CACHE = 2,
1: + ACPI_HMAT_TYPE_RESERVED = 3,
1: };
1:
1: struct acpi_hmat_proximity_domain {
1: - struct acpi_hmat_structure header;
1: - u16 flags;
1: - u16 reserved1;
1: - u32 processor_PD;
1: - u32 memory_PD;
1: - u32 reserved2;
1: - u64 reserved3;
1: - u64 reserved4;
1: + struct acpi_hmat_structure header;
1: + u16 flags;
1: + u16 reserved1;
1: + u32 processor_PD;
1: + u32 memory_PD;
1: + u32 reserved2;
1: + u64 reserved3;
1: + u64 reserved4;
1: };
1:
1: struct acpi_hmat_locality {
1: - struct acpi_hmat_structure header;
1: - u8 flags;
1: - u8 data_type;
1: - u16 reserved1;
1: - u32 number_of_initiator_Pds;
1: - u32 number_of_target_Pds;
1: - u32 reserved2;
1: - u64 entry_base_unit;
1: + struct acpi_hmat_structure header;
1: + u8 flags;
1: + u8 data_type;
1: + u16 reserved1;
1: + u32 number_of_initiator_Pds;
1: + u32 number_of_target_Pds;
1: + u32 reserved2;
1: + u64 entry_base_unit;
1: };
1:
1: struct acpi_hmat_cache {
1: - struct acpi_hmat_structure header;
1: - u32 memory_PD;
1: - u32 reserved1;
1: - u64 cache_size;
1: - u32 cache_attributes;
1: - u16 reserved2;
1: - u16 number_of_SMBIOShandles;
1: + struct acpi_hmat_structure header;
1: + u32 memory_PD;
1: + u32 reserved1;
1: + u64 cache_size;
1: + u32 cache_attributes;
1: + u16 reserved2;
1: + u16 number_of_SMBIOShandles;
1: };
1:
1: struct node_hmem_attrs {
1: - unsigned int read_bandwidth;
1: - unsigned int write_bandwidth;
1: - unsigned int read_latency;
1: - unsigned int write_latency;
1: + unsigned int read_bandwidth;
1: + unsigned int write_bandwidth;
1: + unsigned int read_latency;
1: + unsigned int write_latency;
1: };
1:
1: enum cache_indexing {
1: - NODE_CACHE_DIRECT_MAP = 0,
1: - NODE_CACHE_INDEXED = 1,
1: - NODE_CACHE_OTHER = 2,
1: + NODE_CACHE_DIRECT_MAP = 0,
1: + NODE_CACHE_INDEXED = 1,
1: + NODE_CACHE_OTHER = 2,
1: };
1:
1: enum cache_write_policy {
1: - NODE_CACHE_WRITE_BACK = 0,
1: - NODE_CACHE_WRITE_THROUGH = 1,
1: - NODE_CACHE_WRITE_OTHER = 2,
1: + NODE_CACHE_WRITE_BACK = 0,
1: + NODE_CACHE_WRITE_THROUGH = 1,
1: + NODE_CACHE_WRITE_OTHER = 2,
1: };
1:
1: struct node_cache_attrs {
1: - enum cache_indexing indexing;
1: - enum cache_write_policy write_policy;
1: - u64 size;
1: - u16 line_size;
1: - u8 level;
1: + enum cache_indexing indexing;
1: + enum cache_write_policy write_policy;
1: + u64 size;
1: + u16 line_size;
1: + u8 level;
1: };
1:
1: enum locality_types {
1: - WRITE_LATENCY = 0,
1: - READ_LATENCY = 1,
1: - WRITE_BANDWIDTH = 2,
1: - READ_BANDWIDTH = 3,
1: + WRITE_LATENCY = 0,
1: + READ_LATENCY = 1,
1: + WRITE_BANDWIDTH = 2,
1: + READ_BANDWIDTH = 3,
1: };
1:
1: struct memory_locality {
1: - struct list_head node;
1: - struct acpi_hmat_locality *hmat_loc;
1: + struct list_head node;
1: + struct acpi_hmat_locality *hmat_loc;
1: };
1:
1: struct target_cache {
1: - struct list_head node;
1: - struct node_cache_attrs cache_attrs;
1: + struct list_head node;
1: + struct node_cache_attrs cache_attrs;
1: };
1:
1: struct memory_target {
1: - struct list_head node;
1: - unsigned int memory_pxm;
1: - unsigned int processor_pxm;
1: - struct resource memregions;
1: - struct node_hmem_attrs hmem_attrs[2];
1: - struct list_head caches;
1: - struct node_cache_attrs cache_attrs;
1: - bool registered;
1: + struct list_head node;
1: + unsigned int memory_pxm;
1: + unsigned int processor_pxm;
1: + struct resource memregions;
1: + struct node_hmem_attrs hmem_attrs[2];
1: + struct list_head caches;
1: + struct node_cache_attrs cache_attrs;
1: + bool registered;
1: };
1:
1: struct memory_initiator {
1: - struct list_head node;
1: - unsigned int processor_pxm;
1: - bool has_cpu;
1: + struct list_head node;
1: + unsigned int processor_pxm;
1: + bool has_cpu;
1: };
1:
1: struct acpi_memory_info {
1: - struct list_head list;
1: - u64 start_addr;
1: - u64 length;
1: - short unsigned int caching;
1: - short unsigned int write_protect;
1: - unsigned int enabled: 1;
1: + struct list_head list;
1: + u64 start_addr;
1: + u64 length;
1: + short unsigned int caching;
1: + short unsigned int write_protect;
1: + unsigned int enabled : 1;
1: };
1:
1: struct acpi_memory_device {
1: - struct acpi_device *device;
1: - struct list_head res_list;
1: + struct acpi_device *device;
1: + struct list_head res_list;
1: };
1:
1: struct acpi_pcct_hw_reduced {
1: - struct acpi_subtable_header header;
1: - u32 platform_interrupt;
1: - u8 flags;
1: - u8 reserved;
1: - u64 base_address;
1: - u64 length;
1: - struct acpi_generic_address doorbell_register;
1: - u64 preserve_mask;
1: - u64 write_mask;
1: - u32 latency;
1: - u32 max_access_rate;
1: - u16 min_turnaround_time;
1: + struct acpi_subtable_header header;
1: + u32 platform_interrupt;
1: + u8 flags;
1: + u8 reserved;
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: } __attribute__((packed));
1:
1: struct acpi_pcct_shared_memory {
1: - u32 signature;
1: - u16 command;
1: - u16 status;
1: + u32 signature;
1: + u16 command;
1: + u16 status;
1: };
1:
1: struct mbox_chan;
1:
1: struct mbox_chan_ops {
1: - int (*send_data)(struct mbox_chan *, void *);
1: - int (*flush)(struct mbox_chan *, long unsigned int);
1: - int (*startup)(struct mbox_chan *);
1: - void (*shutdown)(struct mbox_chan *);
1: - bool (*last_tx_done)(struct mbox_chan *);
1: - bool (*peek_data)(struct mbox_chan *);
1: + int (*send_data)(struct mbox_chan *, void *);
1: + int (*flush)(struct mbox_chan *, long unsigned int);
1: + int (*startup)(struct mbox_chan *);
1: + void (*shutdown)(struct mbox_chan *);
1: + bool (*last_tx_done)(struct mbox_chan *);
1: + bool (*peek_data)(struct mbox_chan *);
1: };
1:
1: struct mbox_controller;
1: @@ -70562,702 +71547,705 @@ struct mbox_controller;
1: struct mbox_client;
1:
1: struct mbox_chan {
1: - struct mbox_controller *mbox;
1: - unsigned int txdone_method;
1: - struct mbox_client *cl;
1: - struct completion tx_complete;
1: - void *active_req;
1: - unsigned int msg_count;
1: - unsigned int msg_free;
1: - void *msg_data[20];
1: - spinlock_t lock;
1: - void *con_priv;
1: + struct mbox_controller *mbox;
1: + unsigned int txdone_method;
1: + struct mbox_client *cl;
1: + struct completion tx_complete;
1: + void *active_req;
1: + unsigned int msg_count;
1: + unsigned int msg_free;
1: + void *msg_data[20];
1: + spinlock_t lock;
1: + void *con_priv;
1: };
1:
1: struct mbox_controller {
1: - struct device *dev;
1: - const struct mbox_chan_ops *ops;
1: - struct mbox_chan *chans;
1: - int num_chans;
1: - bool txdone_irq;
1: - bool txdone_poll;
1: - unsigned int txpoll_period;
1: - struct mbox_chan * (*of_xlate)(struct mbox_controller *, const struct of_phandle_args *);
1: - struct hrtimer poll_hrt;
1: - struct list_head node;
1: + struct device *dev;
1: + const struct mbox_chan_ops *ops;
1: + struct mbox_chan *chans;
1: + int num_chans;
1: + bool txdone_irq;
1: + bool txdone_poll;
1: + unsigned int txpoll_period;
1: + struct mbox_chan *(*of_xlate)(struct mbox_controller *,
1: + const struct of_phandle_args *);
1: + struct hrtimer poll_hrt;
1: + struct list_head node;
1: };
1:
1: struct mbox_client {
1: - struct device *dev;
1: - bool tx_block;
1: - long unsigned int tx_tout;
1: - bool knows_txdone;
1: - void (*rx_callback)(struct mbox_client *, void *);
1: - void (*tx_prepare)(struct mbox_client *, void *);
1: - void (*tx_done)(struct mbox_client *, void *, int);
1: + struct device *dev;
1: + bool tx_block;
1: + long unsigned int tx_tout;
1: + bool knows_txdone;
1: + void (*rx_callback)(struct mbox_client *, void *);
1: + void (*tx_prepare)(struct mbox_client *, void *);
1: + void (*tx_done)(struct mbox_client *, void *, int);
1: };
1:
1: struct cpc_reg {
1: - u8 descriptor;
1: - u16 length;
1: - u8 space_id;
1: - u8 bit_width;
1: - u8 bit_offset;
1: - u8 access_width;
1: - u64 address;
1: + u8 descriptor;
1: + u16 length;
1: + u8 space_id;
1: + u8 bit_width;
1: + u8 bit_offset;
1: + u8 access_width;
1: + u64 address;
1: } __attribute__((packed));
1:
1: struct cpc_register_resource {
1: - acpi_object_type type;
1: - u64 *sys_mem_vaddr;
1: - union {
1: - struct cpc_reg reg;
1: - u64 int_value;
1: - } cpc_entry;
1: + acpi_object_type type;
1: + u64 *sys_mem_vaddr;
1: + union {
1: + struct cpc_reg reg;
1: + u64 int_value;
1: + } cpc_entry;
1: };
1:
1: struct cpc_desc {
1: - int num_entries;
1: - int version;
1: - int cpu_id;
1: - int write_cmd_status;
1: - int write_cmd_id;
1: - struct cpc_register_resource cpc_regs[21];
1: - struct acpi_psd_package domain_info;
1: - struct kobject kobj;
1: + int num_entries;
1: + int version;
1: + int cpu_id;
1: + int write_cmd_status;
1: + int write_cmd_id;
1: + struct cpc_register_resource cpc_regs[21];
1: + struct acpi_psd_package domain_info;
1: + struct kobject kobj;
1: };
1:
1: enum cppc_regs {
1: - HIGHEST_PERF = 0,
1: - NOMINAL_PERF = 1,
1: - LOW_NON_LINEAR_PERF = 2,
1: - LOWEST_PERF = 3,
1: - GUARANTEED_PERF = 4,
1: - DESIRED_PERF = 5,
1: - MIN_PERF = 6,
1: - MAX_PERF = 7,
1: - PERF_REDUC_TOLERANCE = 8,
1: - TIME_WINDOW = 9,
1: - CTR_WRAP_TIME = 10,
1: - REFERENCE_CTR = 11,
1: - DELIVERED_CTR = 12,
1: - PERF_LIMITED = 13,
1: - ENABLE = 14,
1: - AUTO_SEL_ENABLE = 15,
1: - AUTO_ACT_WINDOW = 16,
1: - ENERGY_PERF = 17,
1: - REFERENCE_PERF = 18,
1: - LOWEST_FREQ = 19,
1: - NOMINAL_FREQ = 20,
1: + HIGHEST_PERF = 0,
1: + NOMINAL_PERF = 1,
1: + LOW_NON_LINEAR_PERF = 2,
1: + LOWEST_PERF = 3,
1: + GUARANTEED_PERF = 4,
1: + DESIRED_PERF = 5,
1: + MIN_PERF = 6,
1: + MAX_PERF = 7,
1: + PERF_REDUC_TOLERANCE = 8,
1: + TIME_WINDOW = 9,
1: + CTR_WRAP_TIME = 10,
1: + REFERENCE_CTR = 11,
1: + DELIVERED_CTR = 12,
1: + PERF_LIMITED = 13,
1: + ENABLE = 14,
1: + AUTO_SEL_ENABLE = 15,
1: + AUTO_ACT_WINDOW = 16,
1: + ENERGY_PERF = 17,
1: + REFERENCE_PERF = 18,
1: + LOWEST_FREQ = 19,
1: + NOMINAL_FREQ = 20,
1: };
1:
1: struct cppc_perf_caps {
1: - u32 guaranteed_perf;
1: - u32 highest_perf;
1: - u32 nominal_perf;
1: - u32 lowest_perf;
1: - u32 lowest_nonlinear_perf;
1: - u32 lowest_freq;
1: - u32 nominal_freq;
1: + u32 guaranteed_perf;
1: + u32 highest_perf;
1: + u32 nominal_perf;
1: + u32 lowest_perf;
1: + u32 lowest_nonlinear_perf;
1: + u32 lowest_freq;
1: + u32 nominal_freq;
1: };
1:
1: struct cppc_perf_ctrls {
1: - u32 max_perf;
1: - u32 min_perf;
1: - u32 desired_perf;
1: + u32 max_perf;
1: + u32 min_perf;
1: + u32 desired_perf;
1: };
1:
1: struct cppc_perf_fb_ctrs {
1: - u64 reference;
1: - u64 delivered;
1: - u64 reference_perf;
1: - u64 wraparound_time;
1: + u64 reference;
1: + u64 delivered;
1: + u64 reference_perf;
1: + u64 wraparound_time;
1: };
1:
1: struct cppc_cpudata {
1: - int cpu;
1: - struct cppc_perf_caps perf_caps;
1: - struct cppc_perf_ctrls perf_ctrls;
1: - struct cppc_perf_fb_ctrs perf_fb_ctrs;
1: - struct cpufreq_policy *cur_policy;
1: - unsigned int shared_type;
1: - cpumask_var_t shared_cpu_map;
1: + int cpu;
1: + struct cppc_perf_caps perf_caps;
1: + struct cppc_perf_ctrls perf_ctrls;
1: + struct cppc_perf_fb_ctrs perf_fb_ctrs;
1: + struct cpufreq_policy *cur_policy;
1: + unsigned int shared_type;
1: + cpumask_var_t shared_cpu_map;
1: };
1:
1: struct cppc_pcc_data {
1: - struct mbox_chan *pcc_channel;
1: - void *pcc_comm_addr;
1: - bool pcc_channel_acquired;
1: - unsigned int deadline_us;
1: - unsigned int pcc_mpar;
1: - unsigned int pcc_mrtt;
1: - unsigned int pcc_nominal;
1: - bool pending_pcc_write_cmd;
1: - bool platform_owns_pcc;
1: - unsigned int pcc_write_cnt;
1: - struct rw_semaphore pcc_lock;
1: - wait_queue_head_t pcc_write_wait_q;
1: - ktime_t last_cmd_cmpl_time;
1: - ktime_t last_mpar_reset;
1: - int mpar_count;
1: - int refcount;
1: + struct mbox_chan *pcc_channel;
1: + void *pcc_comm_addr;
1: + bool pcc_channel_acquired;
1: + unsigned int deadline_us;
1: + unsigned int pcc_mpar;
1: + unsigned int pcc_mrtt;
1: + unsigned int pcc_nominal;
1: + bool pending_pcc_write_cmd;
1: + bool platform_owns_pcc;
1: + unsigned int pcc_write_cnt;
1: + struct rw_semaphore pcc_lock;
1: + wait_queue_head_t pcc_write_wait_q;
1: + ktime_t last_cmd_cmpl_time;
1: + ktime_t last_mpar_reset;
1: + int mpar_count;
1: + int refcount;
1: };
1:
1: struct cppc_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: - ssize_t (*store)(struct kobject *, struct attribute *, const char *, ssize_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, ssize_t);
1: };
1:
1: enum acpi_pptt_type {
1: - ACPI_PPTT_TYPE_PROCESSOR = 0,
1: - ACPI_PPTT_TYPE_CACHE = 1,
1: - ACPI_PPTT_TYPE_ID = 2,
1: - ACPI_PPTT_TYPE_RESERVED = 3,
1: + ACPI_PPTT_TYPE_PROCESSOR = 0,
1: + ACPI_PPTT_TYPE_CACHE = 1,
1: + ACPI_PPTT_TYPE_ID = 2,
1: + ACPI_PPTT_TYPE_RESERVED = 3,
1: };
1:
1: struct acpi_pptt_processor {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 flags;
1: - u32 parent;
1: - u32 acpi_processor_id;
1: - u32 number_of_priv_resources;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 flags;
1: + u32 parent;
1: + u32 acpi_processor_id;
1: + u32 number_of_priv_resources;
1: };
1:
1: struct acpi_pptt_cache {
1: - struct acpi_subtable_header header;
1: - u16 reserved;
1: - u32 flags;
1: - u32 next_level_of_cache;
1: - u32 size;
1: - u32 number_of_sets;
1: - u8 associativity;
1: - u8 attributes;
1: - u16 line_size;
1: + struct acpi_subtable_header header;
1: + u16 reserved;
1: + u32 flags;
1: + u32 next_level_of_cache;
1: + u32 size;
1: + u32 number_of_sets;
1: + u8 associativity;
1: + u8 attributes;
1: + u16 line_size;
1: };
1:
1: struct acpi_whea_header {
1: - u8 action;
1: - u8 instruction;
1: - u8 flags;
1: - u8 reserved;
1: - struct acpi_generic_address register_region;
1: - u64 value;
1: - u64 mask;
1: + u8 action;
1: + u8 instruction;
1: + u8 flags;
1: + u8 reserved;
1: + struct acpi_generic_address register_region;
1: + u64 value;
1: + u64 mask;
1: } __attribute__((packed));
1:
1: struct acpi_hest_header {
1: - u16 type;
1: - u16 source_id;
1: + u16 type;
1: + u16 source_id;
1: };
1:
1: struct cper_sec_mem_err {
1: - u64 validation_bits;
1: - u64 error_status;
1: - u64 physical_addr;
1: - u64 physical_addr_mask;
1: - u16 node;
1: - u16 card;
1: - u16 module;
1: - u16 bank;
1: - u16 device;
1: - u16 row;
1: - u16 column;
1: - u16 bit_pos;
1: - u64 requestor_id;
1: - u64 responder_id;
1: - u64 target_id;
1: - u8 error_type;
1: - u8 extended;
1: - u16 rank;
1: - u16 mem_array_handle;
1: - u16 mem_dev_handle;
1: + u64 validation_bits;
1: + u64 error_status;
1: + u64 physical_addr;
1: + u64 physical_addr_mask;
1: + u16 node;
1: + u16 card;
1: + u16 module;
1: + u16 bank;
1: + u16 device;
1: + u16 row;
1: + u16 column;
1: + u16 bit_pos;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 target_id;
1: + u8 error_type;
1: + u8 extended;
1: + u16 rank;
1: + u16 mem_array_handle;
1: + u16 mem_dev_handle;
1: };
1:
1: struct apei_exec_context;
1:
1: -typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *, struct acpi_whea_header *);
1: +typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *,
1: + struct acpi_whea_header *);
1:
1: struct apei_exec_ins_type;
1:
1: struct apei_exec_context {
1: - u32 ip;
1: - u64 value;
1: - u64 var1;
1: - u64 var2;
1: - u64 src_base;
1: - u64 dst_base;
1: - struct apei_exec_ins_type *ins_table;
1: - u32 instructions;
1: - struct acpi_whea_header *action_table;
1: - u32 entries;
1: + u32 ip;
1: + u64 value;
1: + u64 var1;
1: + u64 var2;
1: + u64 src_base;
1: + u64 dst_base;
1: + struct apei_exec_ins_type *ins_table;
1: + u32 instructions;
1: + struct acpi_whea_header *action_table;
1: + u32 entries;
1: };
1:
1: struct apei_exec_ins_type {
1: - u32 flags;
1: - apei_exec_ins_func_t run;
1: + u32 flags;
1: + apei_exec_ins_func_t run;
1: };
1:
1: struct apei_resources {
1: - struct list_head iomem;
1: - struct list_head ioport;
1: + struct list_head iomem;
1: + struct list_head ioport;
1: };
1:
1: -typedef int (*apei_exec_entry_func_t)(struct apei_exec_context *, struct acpi_whea_header *, void *);
1: +typedef int (*apei_exec_entry_func_t)(struct apei_exec_context *,
1: + struct acpi_whea_header *, void *);
1:
1: struct apei_res {
1: - struct list_head list;
1: - long unsigned int start;
1: - long unsigned int end;
1: + struct list_head list;
1: + long unsigned int start;
1: + long unsigned int end;
1: };
1:
1: struct acpi_table_hest {
1: - struct acpi_table_header header;
1: - u32 error_source_count;
1: + struct acpi_table_header header;
1: + u32 error_source_count;
1: };
1:
1: enum acpi_hest_types {
1: - ACPI_HEST_TYPE_IA32_CHECK = 0,
1: - ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
1: - ACPI_HEST_TYPE_IA32_NMI = 2,
1: - ACPI_HEST_TYPE_NOT_USED3 = 3,
1: - ACPI_HEST_TYPE_NOT_USED4 = 4,
1: - ACPI_HEST_TYPE_NOT_USED5 = 5,
1: - ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
1: - ACPI_HEST_TYPE_AER_ENDPOINT = 7,
1: - ACPI_HEST_TYPE_AER_BRIDGE = 8,
1: - ACPI_HEST_TYPE_GENERIC_ERROR = 9,
1: - ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,
1: - ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11,
1: - ACPI_HEST_TYPE_RESERVED = 12,
1: + ACPI_HEST_TYPE_IA32_CHECK = 0,
1: + ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
1: + ACPI_HEST_TYPE_IA32_NMI = 2,
1: + ACPI_HEST_TYPE_NOT_USED3 = 3,
1: + ACPI_HEST_TYPE_NOT_USED4 = 4,
1: + ACPI_HEST_TYPE_NOT_USED5 = 5,
1: + ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
1: + ACPI_HEST_TYPE_AER_ENDPOINT = 7,
1: + ACPI_HEST_TYPE_AER_BRIDGE = 8,
1: + ACPI_HEST_TYPE_GENERIC_ERROR = 9,
1: + ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,
1: + ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11,
1: + ACPI_HEST_TYPE_RESERVED = 12,
1: };
1:
1: struct acpi_hest_notify {
1: - u8 type;
1: - u8 length;
1: - u16 config_write_enable;
1: - u32 poll_interval;
1: - u32 vector;
1: - u32 polling_threshold_value;
1: - u32 polling_threshold_window;
1: - u32 error_threshold_value;
1: - u32 error_threshold_window;
1: + u8 type;
1: + u8 length;
1: + u16 config_write_enable;
1: + u32 poll_interval;
1: + u32 vector;
1: + u32 polling_threshold_value;
1: + u32 polling_threshold_window;
1: + u32 error_threshold_value;
1: + u32 error_threshold_window;
1: };
1:
1: struct acpi_hest_ia_machine_check {
1: - struct acpi_hest_header header;
1: - u16 reserved1;
1: - u8 flags;
1: - u8 enabled;
1: - u32 records_to_preallocate;
1: - u32 max_sections_per_record;
1: - u64 global_capability_data;
1: - u64 global_control_data;
1: - u8 num_hardware_banks;
1: - u8 reserved3[7];
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + u64 global_capability_data;
1: + u64 global_control_data;
1: + u8 num_hardware_banks;
1: + u8 reserved3[7];
1: };
1:
1: struct acpi_hest_ia_corrected {
1: - struct acpi_hest_header header;
1: - u16 reserved1;
1: - u8 flags;
1: - u8 enabled;
1: - u32 records_to_preallocate;
1: - u32 max_sections_per_record;
1: - struct acpi_hest_notify notify;
1: - u8 num_hardware_banks;
1: - u8 reserved2[3];
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + struct acpi_hest_notify notify;
1: + u8 num_hardware_banks;
1: + u8 reserved2[3];
1: };
1:
1: struct acpi_hest_ia_deferred_check {
1: - struct acpi_hest_header header;
1: - u16 reserved1;
1: - u8 flags;
1: - u8 enabled;
1: - u32 records_to_preallocate;
1: - u32 max_sections_per_record;
1: - struct acpi_hest_notify notify;
1: - u8 num_hardware_banks;
1: - u8 reserved2[3];
1: + struct acpi_hest_header header;
1: + u16 reserved1;
1: + u8 flags;
1: + u8 enabled;
1: + u32 records_to_preallocate;
1: + u32 max_sections_per_record;
1: + struct acpi_hest_notify notify;
1: + u8 num_hardware_banks;
1: + u8 reserved2[3];
1: };
1:
1: enum hest_status {
1: - HEST_ENABLED = 0,
1: - HEST_DISABLED = 1,
1: - HEST_NOT_FOUND = 2,
1: + HEST_ENABLED = 0,
1: + HEST_DISABLED = 1,
1: + HEST_NOT_FOUND = 2,
1: };
1:
1: typedef int (*apei_hest_func_t)(struct acpi_hest_header *, void *);
1:
1: struct acpi_table_erst {
1: - struct acpi_table_header header;
1: - u32 header_length;
1: - u32 reserved;
1: - u32 entries;
1: + struct acpi_table_header header;
1: + u32 header_length;
1: + u32 reserved;
1: + u32 entries;
1: };
1:
1: enum acpi_erst_actions {
1: - ACPI_ERST_BEGIN_WRITE = 0,
1: - ACPI_ERST_BEGIN_READ = 1,
1: - ACPI_ERST_BEGIN_CLEAR = 2,
1: - ACPI_ERST_END = 3,
1: - ACPI_ERST_SET_RECORD_OFFSET = 4,
1: - ACPI_ERST_EXECUTE_OPERATION = 5,
1: - ACPI_ERST_CHECK_BUSY_STATUS = 6,
1: - ACPI_ERST_GET_COMMAND_STATUS = 7,
1: - ACPI_ERST_GET_RECORD_ID = 8,
1: - ACPI_ERST_SET_RECORD_ID = 9,
1: - ACPI_ERST_GET_RECORD_COUNT = 10,
1: - ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
1: - ACPI_ERST_NOT_USED = 12,
1: - ACPI_ERST_GET_ERROR_RANGE = 13,
1: - ACPI_ERST_GET_ERROR_LENGTH = 14,
1: - ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
1: - ACPI_ERST_EXECUTE_TIMINGS = 16,
1: - ACPI_ERST_ACTION_RESERVED = 17,
1: + ACPI_ERST_BEGIN_WRITE = 0,
1: + ACPI_ERST_BEGIN_READ = 1,
1: + ACPI_ERST_BEGIN_CLEAR = 2,
1: + ACPI_ERST_END = 3,
1: + ACPI_ERST_SET_RECORD_OFFSET = 4,
1: + ACPI_ERST_EXECUTE_OPERATION = 5,
1: + ACPI_ERST_CHECK_BUSY_STATUS = 6,
1: + ACPI_ERST_GET_COMMAND_STATUS = 7,
1: + ACPI_ERST_GET_RECORD_ID = 8,
1: + ACPI_ERST_SET_RECORD_ID = 9,
1: + ACPI_ERST_GET_RECORD_COUNT = 10,
1: + ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
1: + ACPI_ERST_NOT_USED = 12,
1: + ACPI_ERST_GET_ERROR_RANGE = 13,
1: + ACPI_ERST_GET_ERROR_LENGTH = 14,
1: + ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
1: + ACPI_ERST_EXECUTE_TIMINGS = 16,
1: + ACPI_ERST_ACTION_RESERVED = 17,
1: };
1:
1: enum acpi_erst_instructions {
1: - ACPI_ERST_READ_REGISTER = 0,
1: - ACPI_ERST_READ_REGISTER_VALUE = 1,
1: - ACPI_ERST_WRITE_REGISTER = 2,
1: - ACPI_ERST_WRITE_REGISTER_VALUE = 3,
1: - ACPI_ERST_NOOP = 4,
1: - ACPI_ERST_LOAD_VAR1 = 5,
1: - ACPI_ERST_LOAD_VAR2 = 6,
1: - ACPI_ERST_STORE_VAR1 = 7,
1: - ACPI_ERST_ADD = 8,
1: - ACPI_ERST_SUBTRACT = 9,
1: - ACPI_ERST_ADD_VALUE = 10,
1: - ACPI_ERST_SUBTRACT_VALUE = 11,
1: - ACPI_ERST_STALL = 12,
1: - ACPI_ERST_STALL_WHILE_TRUE = 13,
1: - ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
1: - ACPI_ERST_GOTO = 15,
1: - ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
1: - ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
1: - ACPI_ERST_MOVE_DATA = 18,
1: - ACPI_ERST_INSTRUCTION_RESERVED = 19,
1: + ACPI_ERST_READ_REGISTER = 0,
1: + ACPI_ERST_READ_REGISTER_VALUE = 1,
1: + ACPI_ERST_WRITE_REGISTER = 2,
1: + ACPI_ERST_WRITE_REGISTER_VALUE = 3,
1: + ACPI_ERST_NOOP = 4,
1: + ACPI_ERST_LOAD_VAR1 = 5,
1: + ACPI_ERST_LOAD_VAR2 = 6,
1: + ACPI_ERST_STORE_VAR1 = 7,
1: + ACPI_ERST_ADD = 8,
1: + ACPI_ERST_SUBTRACT = 9,
1: + ACPI_ERST_ADD_VALUE = 10,
1: + ACPI_ERST_SUBTRACT_VALUE = 11,
1: + ACPI_ERST_STALL = 12,
1: + ACPI_ERST_STALL_WHILE_TRUE = 13,
1: + ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
1: + ACPI_ERST_GOTO = 15,
1: + ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
1: + ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
1: + ACPI_ERST_MOVE_DATA = 18,
1: + ACPI_ERST_INSTRUCTION_RESERVED = 19,
1: };
1:
1: struct cper_record_header {
1: - char signature[4];
1: - u16 revision;
1: - u32 signature_end;
1: - u16 section_count;
1: - u32 error_severity;
1: - u32 validation_bits;
1: - u32 record_length;
1: - u64 timestamp;
1: - guid_t platform_id;
1: - guid_t partition_id;
1: - guid_t creator_id;
1: - guid_t notification_type;
1: - u64 record_id;
1: - u32 flags;
1: - u64 persistence_information;
1: - u8 reserved[12];
1: + char signature[4];
1: + u16 revision;
1: + u32 signature_end;
1: + u16 section_count;
1: + u32 error_severity;
1: + u32 validation_bits;
1: + u32 record_length;
1: + u64 timestamp;
1: + guid_t platform_id;
1: + guid_t partition_id;
1: + guid_t creator_id;
1: + guid_t notification_type;
1: + u64 record_id;
1: + u32 flags;
1: + u64 persistence_information;
1: + u8 reserved[12];
1: } __attribute__((packed));
1:
1: struct cper_section_descriptor {
1: - u32 section_offset;
1: - u32 section_length;
1: - u16 revision;
1: - u8 validation_bits;
1: - u8 reserved;
1: - u32 flags;
1: - guid_t section_type;
1: - guid_t fru_id;
1: - u32 section_severity;
1: - u8 fru_text[20];
1: + u32 section_offset;
1: + u32 section_length;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 reserved;
1: + u32 flags;
1: + guid_t section_type;
1: + guid_t fru_id;
1: + u32 section_severity;
1: + u8 fru_text[20];
1: };
1:
1: struct erst_erange {
1: - u64 base;
1: - u64 size;
1: - void *vaddr;
1: - u32 attr;
1: + u64 base;
1: + u64 size;
1: + void *vaddr;
1: + u32 attr;
1: };
1:
1: struct erst_record_id_cache {
1: - struct mutex lock;
1: - u64 *entries;
1: - int len;
1: - int size;
1: - int refcount;
1: + struct mutex lock;
1: + u64 *entries;
1: + int len;
1: + int size;
1: + int refcount;
1: };
1:
1: struct cper_pstore_record {
1: - struct cper_record_header hdr;
1: - struct cper_section_descriptor sec_hdr;
1: - char data[0];
1: + struct cper_record_header hdr;
1: + struct cper_section_descriptor sec_hdr;
1: + char data[0];
1: };
1:
1: struct acpi_bert_region {
1: - u32 block_status;
1: - u32 raw_data_offset;
1: - u32 raw_data_length;
1: - u32 data_length;
1: - u32 error_severity;
1: + u32 block_status;
1: + u32 raw_data_offset;
1: + u32 raw_data_length;
1: + u32 data_length;
1: + u32 error_severity;
1: };
1:
1: struct acpi_hest_generic_status {
1: - u32 block_status;
1: - u32 raw_data_offset;
1: - u32 raw_data_length;
1: - u32 data_length;
1: - u32 error_severity;
1: + u32 block_status;
1: + u32 raw_data_offset;
1: + u32 raw_data_length;
1: + u32 data_length;
1: + u32 error_severity;
1: };
1:
1: struct pmic_table {
1: - int address;
1: - int reg;
1: - int bit;
1: + int address;
1: + int reg;
1: + int bit;
1: };
1:
1: struct intel_pmic_opregion_data {
1: - int (*get_power)(struct regmap *, int, int, u64 *);
1: - int (*update_power)(struct regmap *, int, int, bool);
1: - int (*get_raw_temp)(struct regmap *, int);
1: - int (*update_aux)(struct regmap *, int, int);
1: - int (*get_policy)(struct regmap *, int, int, u64 *);
1: - int (*update_policy)(struct regmap *, int, int, int);
1: - int (*exec_mipi_pmic_seq_element)(struct regmap *, u16, u32, u32, u32);
1: - struct pmic_table *power_table;
1: - int power_table_count;
1: - struct pmic_table *thermal_table;
1: - int thermal_table_count;
1: - int pmic_i2c_address;
1: + int (*get_power)(struct regmap *, int, int, u64 *);
1: + int (*update_power)(struct regmap *, int, int, bool);
1: + int (*get_raw_temp)(struct regmap *, int);
1: + int (*update_aux)(struct regmap *, int, int);
1: + int (*get_policy)(struct regmap *, int, int, u64 *);
1: + int (*update_policy)(struct regmap *, int, int, int);
1: + int (*exec_mipi_pmic_seq_element)(struct regmap *, u16, u32, u32, u32);
1: + struct pmic_table *power_table;
1: + int power_table_count;
1: + struct pmic_table *thermal_table;
1: + int thermal_table_count;
1: + int pmic_i2c_address;
1: };
1:
1: struct intel_pmic_regs_handler_ctx {
1: - unsigned int val;
1: - u16 addr;
1: + unsigned int val;
1: + u16 addr;
1: };
1:
1: struct intel_pmic_opregion {
1: - struct mutex lock;
1: - struct acpi_lpat_conversion_table *lpat_table;
1: - struct regmap *regmap;
1: - struct intel_pmic_opregion_data *data;
1: - struct intel_pmic_regs_handler_ctx ctx;
1: + struct mutex lock;
1: + struct acpi_lpat_conversion_table *lpat_table;
1: + struct regmap *regmap;
1: + struct intel_pmic_opregion_data *data;
1: + struct intel_pmic_regs_handler_ctx ctx;
1: };
1:
1: struct acpi_table_iort {
1: - struct acpi_table_header header;
1: - u32 node_count;
1: - u32 node_offset;
1: - u32 reserved;
1: + struct acpi_table_header header;
1: + u32 node_count;
1: + u32 node_offset;
1: + u32 reserved;
1: };
1:
1: struct acpi_iort_node {
1: - u8 type;
1: - u16 length;
1: - u8 revision;
1: - u32 reserved;
1: - u32 mapping_count;
1: - u32 mapping_offset;
1: - char node_data[1];
1: + u8 type;
1: + u16 length;
1: + u8 revision;
1: + u32 reserved;
1: + u32 mapping_count;
1: + u32 mapping_offset;
1: + char node_data[1];
1: } __attribute__((packed));
1:
1: enum acpi_iort_node_type {
1: - ACPI_IORT_NODE_ITS_GROUP = 0,
1: - ACPI_IORT_NODE_NAMED_COMPONENT = 1,
1: - ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 2,
1: - ACPI_IORT_NODE_SMMU = 3,
1: - ACPI_IORT_NODE_SMMU_V3 = 4,
1: - ACPI_IORT_NODE_PMCG = 5,
1: + ACPI_IORT_NODE_ITS_GROUP = 0,
1: + ACPI_IORT_NODE_NAMED_COMPONENT = 1,
1: + ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 2,
1: + ACPI_IORT_NODE_SMMU = 3,
1: + ACPI_IORT_NODE_SMMU_V3 = 4,
1: + ACPI_IORT_NODE_PMCG = 5,
1: };
1:
1: struct acpi_iort_id_mapping {
1: - u32 input_base;
1: - u32 id_count;
1: - u32 output_base;
1: - u32 output_reference;
1: - u32 flags;
1: + u32 input_base;
1: + u32 id_count;
1: + u32 output_base;
1: + u32 output_reference;
1: + u32 flags;
1: };
1:
1: struct acpi_iort_its_group {
1: - u32 its_count;
1: - u32 identifiers[1];
1: + u32 its_count;
1: + u32 identifiers[1];
1: };
1:
1: struct acpi_iort_named_component {
1: - u32 node_flags;
1: - u64 memory_properties;
1: - u8 memory_address_limit;
1: - char device_name[1];
1: + u32 node_flags;
1: + u64 memory_properties;
1: + u8 memory_address_limit;
1: + char device_name[1];
1: } __attribute__((packed));
1:
1: struct acpi_iort_root_complex {
1: - u64 memory_properties;
1: - u32 ats_attribute;
1: - u32 pci_segment_number;
1: - u8 memory_address_limit;
1: - u8 reserved[3];
1: + u64 memory_properties;
1: + u32 ats_attribute;
1: + u32 pci_segment_number;
1: + u8 memory_address_limit;
1: + u8 reserved[3];
1: } __attribute__((packed));
1:
1: struct acpi_iort_smmu {
1: - u64 base_address;
1: - u64 span;
1: - u32 model;
1: - u32 flags;
1: - u32 global_interrupt_offset;
1: - u32 context_interrupt_count;
1: - u32 context_interrupt_offset;
1: - u32 pmu_interrupt_count;
1: - u32 pmu_interrupt_offset;
1: - u64 interrupts[1];
1: + u64 base_address;
1: + u64 span;
1: + u32 model;
1: + u32 flags;
1: + u32 global_interrupt_offset;
1: + u32 context_interrupt_count;
1: + u32 context_interrupt_offset;
1: + u32 pmu_interrupt_count;
1: + u32 pmu_interrupt_offset;
1: + u64 interrupts[1];
1: } __attribute__((packed));
1:
1: struct acpi_iort_smmu_v3 {
1: - u64 base_address;
1: - u32 flags;
1: - u32 reserved;
1: - u64 vatos_address;
1: - u32 model;
1: - u32 event_gsiv;
1: - u32 pri_gsiv;
1: - u32 gerr_gsiv;
1: - u32 sync_gsiv;
1: - u32 pxm;
1: - u32 id_mapping_index;
1: + u64 base_address;
1: + u32 flags;
1: + u32 reserved;
1: + u64 vatos_address;
1: + u32 model;
1: + u32 event_gsiv;
1: + u32 pri_gsiv;
1: + u32 gerr_gsiv;
1: + u32 sync_gsiv;
1: + u32 pxm;
1: + u32 id_mapping_index;
1: } __attribute__((packed));
1:
1: struct acpi_iort_pmcg {
1: - u64 page0_base_address;
1: - u32 overflow_gsiv;
1: - u32 node_reference;
1: - u64 page1_base_address;
1: + u64 page0_base_address;
1: + u32 overflow_gsiv;
1: + u32 node_reference;
1: + u64 page1_base_address;
1: };
1:
1: struct iort_its_msi_chip {
1: - struct list_head list;
1: - struct fwnode_handle *fw_node;
1: - phys_addr_t base_addr;
1: - u32 translation_id;
1: + struct list_head list;
1: + struct fwnode_handle *fw_node;
1: + phys_addr_t base_addr;
1: + u32 translation_id;
1: };
1:
1: struct iort_fwnode {
1: - struct list_head list;
1: - struct acpi_iort_node *iort_node;
1: - struct fwnode_handle *fwnode;
1: + struct list_head list;
1: + struct acpi_iort_node *iort_node;
1: + struct fwnode_handle *fwnode;
1: };
1:
1: typedef acpi_status (*iort_find_node_callback)(struct acpi_iort_node *, void *);
1:
1: struct iort_pci_alias_info {
1: - struct device *dev;
1: - struct acpi_iort_node *node;
1: + struct device *dev;
1: + struct acpi_iort_node *node;
1: };
1:
1: struct iort_dev_config {
1: - const char *name;
1: - int (*dev_init)(struct acpi_iort_node *);
1: - void (*dev_dma_configure)(struct device *, struct acpi_iort_node *);
1: - int (*dev_count_resources)(struct acpi_iort_node *);
1: - void (*dev_init_resources)(struct resource *, struct acpi_iort_node *);
1: - int (*dev_set_proximity)(struct device *, struct acpi_iort_node *);
1: - int (*dev_add_platdata)(struct platform_device *);
1: + const char *name;
1: + int (*dev_init)(struct acpi_iort_node *);
1: + void (*dev_dma_configure)(struct device *, struct acpi_iort_node *);
1: + int (*dev_count_resources)(struct acpi_iort_node *);
1: + void (*dev_init_resources)(struct resource *, struct acpi_iort_node *);
1: + int (*dev_set_proximity)(struct device *, struct acpi_iort_node *);
1: + int (*dev_add_platdata)(struct platform_device *);
1: };
1:
1: enum arch_timer_ppi_nr {
1: - ARCH_TIMER_PHYS_SECURE_PPI = 0,
1: - ARCH_TIMER_PHYS_NONSECURE_PPI = 1,
1: - ARCH_TIMER_VIRT_PPI = 2,
1: - ARCH_TIMER_HYP_PPI = 3,
1: - ARCH_TIMER_MAX_TIMER_PPI = 4,
1: + ARCH_TIMER_PHYS_SECURE_PPI = 0,
1: + ARCH_TIMER_PHYS_NONSECURE_PPI = 1,
1: + ARCH_TIMER_VIRT_PPI = 2,
1: + ARCH_TIMER_HYP_PPI = 3,
1: + ARCH_TIMER_MAX_TIMER_PPI = 4,
1: };
1:
1: struct arch_timer_mem_frame {
1: - bool valid;
1: - phys_addr_t cntbase;
1: - size_t size;
1: - int phys_irq;
1: - int virt_irq;
1: + bool valid;
1: + phys_addr_t cntbase;
1: + size_t size;
1: + int phys_irq;
1: + int virt_irq;
1: };
1:
1: struct arch_timer_mem {
1: - phys_addr_t cntctlbase;
1: - size_t size;
1: - struct arch_timer_mem_frame frame[8];
1: + phys_addr_t cntctlbase;
1: + size_t size;
1: + struct arch_timer_mem_frame frame[8];
1: };
1:
1: struct acpi_table_gtdt {
1: - struct acpi_table_header header;
1: - u64 counter_block_addresss;
1: - u32 reserved;
1: - u32 secure_el1_interrupt;
1: - u32 secure_el1_flags;
1: - u32 non_secure_el1_interrupt;
1: - u32 non_secure_el1_flags;
1: - u32 virtual_timer_interrupt;
1: - u32 virtual_timer_flags;
1: - u32 non_secure_el2_interrupt;
1: - u32 non_secure_el2_flags;
1: - u64 counter_read_block_address;
1: - u32 platform_timer_count;
1: - u32 platform_timer_offset;
1: + struct acpi_table_header header;
1: + u64 counter_block_addresss;
1: + u32 reserved;
1: + u32 secure_el1_interrupt;
1: + u32 secure_el1_flags;
1: + u32 non_secure_el1_interrupt;
1: + u32 non_secure_el1_flags;
1: + u32 virtual_timer_interrupt;
1: + u32 virtual_timer_flags;
1: + u32 non_secure_el2_interrupt;
1: + u32 non_secure_el2_flags;
1: + u64 counter_read_block_address;
1: + u32 platform_timer_count;
1: + u32 platform_timer_offset;
1: } __attribute__((packed));
1:
1: struct acpi_gtdt_header {
1: - u8 type;
1: - u16 length;
1: + u8 type;
1: + u16 length;
1: } __attribute__((packed));
1:
1: enum acpi_gtdt_type {
1: - ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
1: - ACPI_GTDT_TYPE_WATCHDOG = 1,
1: - ACPI_GTDT_TYPE_RESERVED = 2,
1: + ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
1: + ACPI_GTDT_TYPE_WATCHDOG = 1,
1: + ACPI_GTDT_TYPE_RESERVED = 2,
1: };
1:
1: struct acpi_gtdt_timer_block {
1: - struct acpi_gtdt_header header;
1: - u8 reserved;
1: - u64 block_address;
1: - u32 timer_count;
1: - u32 timer_offset;
1: + struct acpi_gtdt_header header;
1: + u8 reserved;
1: + u64 block_address;
1: + u32 timer_count;
1: + u32 timer_offset;
1: } __attribute__((packed));
1:
1: struct acpi_gtdt_timer_entry {
1: - u8 frame_number;
1: - u8 reserved[3];
1: - u64 base_address;
1: - u64 el0_base_address;
1: - u32 timer_interrupt;
1: - u32 timer_flags;
1: - u32 virtual_timer_interrupt;
1: - u32 virtual_timer_flags;
1: - u32 common_flags;
1: + u8 frame_number;
1: + u8 reserved[3];
1: + u64 base_address;
1: + u64 el0_base_address;
1: + u32 timer_interrupt;
1: + u32 timer_flags;
1: + u32 virtual_timer_interrupt;
1: + u32 virtual_timer_flags;
1: + u32 common_flags;
1: } __attribute__((packed));
1:
1: struct acpi_gtdt_watchdog {
1: - struct acpi_gtdt_header header;
1: - u8 reserved;
1: - u64 refresh_frame_address;
1: - u64 control_frame_address;
1: - u32 timer_interrupt;
1: - u32 timer_flags;
1: + struct acpi_gtdt_header header;
1: + u8 reserved;
1: + u64 refresh_frame_address;
1: + u64 control_frame_address;
1: + u32 timer_interrupt;
1: + u32 timer_flags;
1: } __attribute__((packed));
1:
1: struct acpi_gtdt_descriptor {
1: - struct acpi_table_gtdt *gtdt;
1: - void *gtdt_end;
1: - void *platform_timer;
1: + struct acpi_table_gtdt *gtdt;
1: + void *gtdt_end;
1: + void *platform_timer;
1: };
1:
1: struct pnp_device_id {
1: - __u8 id[8];
1: - kernel_ulong_t driver_data;
1: + __u8 id[8];
1: + kernel_ulong_t driver_data;
1: };
1:
1: struct pnp_card_device_id {
1: - __u8 id[8];
1: - kernel_ulong_t driver_data;
1: - struct {
1: - __u8 id[8];
1: - } devs[8];
1: + __u8 id[8];
1: + kernel_ulong_t driver_data;
1: + struct {
1: + __u8 id[8];
1: + } devs[8];
1: };
1:
1: struct pnp_protocol;
1: @@ -71265,202 +72253,202 @@ struct pnp_protocol;
1: struct pnp_id;
1:
1: struct pnp_card {
1: - struct device dev;
1: - unsigned char number;
1: - struct list_head global_list;
1: - struct list_head protocol_list;
1: - struct list_head devices;
1: - struct pnp_protocol *protocol;
1: - struct pnp_id *id;
1: - char name[50];
1: - unsigned char pnpver;
1: - unsigned char productver;
1: - unsigned int serial;
1: - unsigned char checksum;
1: - struct proc_dir_entry *procdir;
1: + struct device dev;
1: + unsigned char number;
1: + struct list_head global_list;
1: + struct list_head protocol_list;
1: + struct list_head devices;
1: + struct pnp_protocol *protocol;
1: + struct pnp_id *id;
1: + char name[50];
1: + unsigned char pnpver;
1: + unsigned char productver;
1: + unsigned int serial;
1: + unsigned char checksum;
1: + struct proc_dir_entry *procdir;
1: };
1:
1: struct pnp_dev;
1:
1: struct pnp_protocol {
1: - struct list_head protocol_list;
1: - char *name;
1: - int (*get)(struct pnp_dev *);
1: - int (*set)(struct pnp_dev *);
1: - int (*disable)(struct pnp_dev *);
1: - bool (*can_wakeup)(struct pnp_dev *);
1: - int (*suspend)(struct pnp_dev *, pm_message_t);
1: - int (*resume)(struct pnp_dev *);
1: - unsigned char number;
1: - struct device dev;
1: - struct list_head cards;
1: - struct list_head devices;
1: + struct list_head protocol_list;
1: + char *name;
1: + int (*get)(struct pnp_dev *);
1: + int (*set)(struct pnp_dev *);
1: + int (*disable)(struct pnp_dev *);
1: + bool (*can_wakeup)(struct pnp_dev *);
1: + int (*suspend)(struct pnp_dev *, pm_message_t);
1: + int (*resume)(struct pnp_dev *);
1: + unsigned char number;
1: + struct device dev;
1: + struct list_head cards;
1: + struct list_head devices;
1: };
1:
1: struct pnp_id {
1: - char id[8];
1: - struct pnp_id *next;
1: + char id[8];
1: + struct pnp_id *next;
1: };
1:
1: struct pnp_card_driver;
1:
1: struct pnp_card_link {
1: - struct pnp_card *card;
1: - struct pnp_card_driver *driver;
1: - void *driver_data;
1: - pm_message_t pm_state;
1: + struct pnp_card *card;
1: + struct pnp_card_driver *driver;
1: + void *driver_data;
1: + pm_message_t pm_state;
1: };
1:
1: struct pnp_driver {
1: - const char *name;
1: - const struct pnp_device_id *id_table;
1: - unsigned int flags;
1: - int (*probe)(struct pnp_dev *, const struct pnp_device_id *);
1: - void (*remove)(struct pnp_dev *);
1: - void (*shutdown)(struct pnp_dev *);
1: - int (*suspend)(struct pnp_dev *, pm_message_t);
1: - int (*resume)(struct pnp_dev *);
1: - struct device_driver driver;
1: + const char *name;
1: + const struct pnp_device_id *id_table;
1: + unsigned int flags;
1: + int (*probe)(struct pnp_dev *, const struct pnp_device_id *);
1: + void (*remove)(struct pnp_dev *);
1: + void (*shutdown)(struct pnp_dev *);
1: + int (*suspend)(struct pnp_dev *, pm_message_t);
1: + int (*resume)(struct pnp_dev *);
1: + struct device_driver driver;
1: };
1:
1: struct pnp_card_driver {
1: - struct list_head global_list;
1: - char *name;
1: - const struct pnp_card_device_id *id_table;
1: - unsigned int flags;
1: - int (*probe)(struct pnp_card_link *, const struct pnp_card_device_id *);
1: - void (*remove)(struct pnp_card_link *);
1: - int (*suspend)(struct pnp_card_link *, pm_message_t);
1: - int (*resume)(struct pnp_card_link *);
1: - struct pnp_driver link;
1: + struct list_head global_list;
1: + char *name;
1: + const struct pnp_card_device_id *id_table;
1: + unsigned int flags;
1: + int (*probe)(struct pnp_card_link *, const struct pnp_card_device_id *);
1: + void (*remove)(struct pnp_card_link *);
1: + int (*suspend)(struct pnp_card_link *, pm_message_t);
1: + int (*resume)(struct pnp_card_link *);
1: + struct pnp_driver link;
1: };
1:
1: struct pnp_dev {
1: - struct device dev;
1: - u64 dma_mask;
1: - unsigned int number;
1: - int status;
1: - struct list_head global_list;
1: - struct list_head protocol_list;
1: - struct list_head card_list;
1: - struct list_head rdev_list;
1: - struct pnp_protocol *protocol;
1: - struct pnp_card *card;
1: - struct pnp_driver *driver;
1: - struct pnp_card_link *card_link;
1: - struct pnp_id *id;
1: - int active;
1: - int capabilities;
1: - unsigned int num_dependent_sets;
1: - struct list_head resources;
1: - struct list_head options;
1: - char name[50];
1: - int flags;
1: - struct proc_dir_entry *procent;
1: - void *data;
1: + struct device dev;
1: + u64 dma_mask;
1: + unsigned int number;
1: + int status;
1: + struct list_head global_list;
1: + struct list_head protocol_list;
1: + struct list_head card_list;
1: + struct list_head rdev_list;
1: + struct pnp_protocol *protocol;
1: + struct pnp_card *card;
1: + struct pnp_driver *driver;
1: + struct pnp_card_link *card_link;
1: + struct pnp_id *id;
1: + int active;
1: + int capabilities;
1: + unsigned int num_dependent_sets;
1: + struct list_head resources;
1: + struct list_head options;
1: + char name[50];
1: + int flags;
1: + struct proc_dir_entry *procent;
1: + void *data;
1: };
1:
1: struct pnp_resource {
1: - struct list_head list;
1: - struct resource res;
1: + struct list_head list;
1: + struct resource res;
1: };
1:
1: struct pnp_port {
1: - resource_size_t min;
1: - resource_size_t max;
1: - resource_size_t align;
1: - resource_size_t size;
1: - unsigned char flags;
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t size;
1: + unsigned char flags;
1: };
1:
1: typedef struct {
1: - long unsigned int bits[4];
1: + long unsigned int bits[4];
1: } pnp_irq_mask_t;
1:
1: struct pnp_irq {
1: - pnp_irq_mask_t map;
1: - unsigned char flags;
1: + pnp_irq_mask_t map;
1: + unsigned char flags;
1: };
1:
1: struct pnp_dma {
1: - unsigned char map;
1: - unsigned char flags;
1: + unsigned char map;
1: + unsigned char flags;
1: };
1:
1: struct pnp_mem {
1: - resource_size_t min;
1: - resource_size_t max;
1: - resource_size_t align;
1: - resource_size_t size;
1: - unsigned char flags;
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t size;
1: + unsigned char flags;
1: };
1:
1: struct pnp_option {
1: - struct list_head list;
1: - unsigned int flags;
1: - long unsigned int type;
1: - union {
1: - struct pnp_port port;
1: - struct pnp_irq irq;
1: - struct pnp_dma dma;
1: - struct pnp_mem mem;
1: - } u;
1: + struct list_head list;
1: + unsigned int flags;
1: + long unsigned int type;
1: + union {
1: + struct pnp_port port;
1: + struct pnp_irq irq;
1: + struct pnp_dma dma;
1: + struct pnp_mem mem;
1: + } u;
1: };
1:
1: struct pnp_info_buffer {
1: - char *buffer;
1: - char *curr;
1: - long unsigned int size;
1: - long unsigned int len;
1: - int stop;
1: - int error;
1: + char *buffer;
1: + char *curr;
1: + long unsigned int size;
1: + long unsigned int len;
1: + int stop;
1: + int error;
1: };
1:
1: typedef struct pnp_info_buffer pnp_info_buffer_t;
1:
1: struct pnp_fixup {
1: - char id[7];
1: - void (*quirk_function)(struct pnp_dev *);
1: + char id[7];
1: + void (*quirk_function)(struct pnp_dev *);
1: };
1:
1: struct acpipnp_parse_option_s {
1: - struct pnp_dev *dev;
1: - unsigned int option_flags;
1: + struct pnp_dev *dev;
1: + unsigned int option_flags;
1: };
1:
1: struct deferred_device {
1: - struct amba_device *dev;
1: - struct resource *parent;
1: - struct list_head node;
1: + struct amba_device *dev;
1: + struct resource *parent;
1: + struct list_head node;
1: };
1:
1: struct find_data {
1: - struct amba_device *dev;
1: - struct device *parent;
1: - const char *busid;
1: - unsigned int id;
1: - unsigned int mask;
1: + struct amba_device *dev;
1: + struct device *parent;
1: + const char *busid;
1: + unsigned int id;
1: + unsigned int mask;
1: };
1:
1: struct tegra_ahb {
1: - void *regs;
1: - struct device *dev;
1: - u32 ctx[0];
1: + void *regs;
1: + struct device *dev;
1: + u32 ctx[0];
1: };
1:
1: struct clk_bulk_devres {
1: - struct clk_bulk_data *clks;
1: - int num_clks;
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: };
1:
1: struct clk_hw;
1:
1: struct clk_lookup {
1: - struct list_head node;
1: - const char *dev_id;
1: - const char *con_id;
1: - struct clk *clk;
1: - struct clk_hw *clk_hw;
1: + struct list_head node;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct clk *clk;
1: + struct clk_hw *clk_hw;
1: };
1:
1: struct clk_core;
1: @@ -71468,208 +72456,210 @@ struct clk_core;
1: struct clk_init_data;
1:
1: struct clk_hw {
1: - struct clk_core *core;
1: - struct clk *clk;
1: - const struct clk_init_data *init;
1: + struct clk_core *core;
1: + struct clk *clk;
1: + const struct clk_init_data *init;
1: };
1:
1: struct clk_rate_request {
1: - long unsigned int rate;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: - long unsigned int best_parent_rate;
1: - struct clk_hw *best_parent_hw;
1: + long unsigned int rate;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int best_parent_rate;
1: + struct clk_hw *best_parent_hw;
1: };
1:
1: struct clk_duty {
1: - unsigned int num;
1: - unsigned int den;
1: + unsigned int num;
1: + unsigned int den;
1: };
1:
1: struct clk_ops {
1: - int (*prepare)(struct clk_hw *);
1: - void (*unprepare)(struct clk_hw *);
1: - int (*is_prepared)(struct clk_hw *);
1: - void (*unprepare_unused)(struct clk_hw *);
1: - int (*enable)(struct clk_hw *);
1: - void (*disable)(struct clk_hw *);
1: - int (*is_enabled)(struct clk_hw *);
1: - void (*disable_unused)(struct clk_hw *);
1: - int (*save_context)(struct clk_hw *);
1: - void (*restore_context)(struct clk_hw *);
1: - long unsigned int (*recalc_rate)(struct clk_hw *, long unsigned int);
1: - long int (*round_rate)(struct clk_hw *, long unsigned int, long unsigned int *);
1: - int (*determine_rate)(struct clk_hw *, struct clk_rate_request *);
1: - int (*set_parent)(struct clk_hw *, u8);
1: - u8 (*get_parent)(struct clk_hw *);
1: - int (*set_rate)(struct clk_hw *, long unsigned int, long unsigned int);
1: - int (*set_rate_and_parent)(struct clk_hw *, long unsigned int, long unsigned int, u8);
1: - long unsigned int (*recalc_accuracy)(struct clk_hw *, long unsigned int);
1: - int (*get_phase)(struct clk_hw *);
1: - int (*set_phase)(struct clk_hw *, int);
1: - int (*get_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: - int (*set_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: - int (*init)(struct clk_hw *);
1: - void (*terminate)(struct clk_hw *);
1: - void (*debug_init)(struct clk_hw *, struct dentry *);
1: + int (*prepare)(struct clk_hw *);
1: + void (*unprepare)(struct clk_hw *);
1: + int (*is_prepared)(struct clk_hw *);
1: + void (*unprepare_unused)(struct clk_hw *);
1: + int (*enable)(struct clk_hw *);
1: + void (*disable)(struct clk_hw *);
1: + int (*is_enabled)(struct clk_hw *);
1: + void (*disable_unused)(struct clk_hw *);
1: + int (*save_context)(struct clk_hw *);
1: + void (*restore_context)(struct clk_hw *);
1: + long unsigned int (*recalc_rate)(struct clk_hw *, long unsigned int);
1: + long int (*round_rate)(struct clk_hw *, long unsigned int,
1: + long unsigned int *);
1: + int (*determine_rate)(struct clk_hw *, struct clk_rate_request *);
1: + int (*set_parent)(struct clk_hw *, u8);
1: + u8 (*get_parent)(struct clk_hw *);
1: + int (*set_rate)(struct clk_hw *, long unsigned int, long unsigned int);
1: + int (*set_rate_and_parent)(struct clk_hw *, long unsigned int,
1: + long unsigned int, u8);
1: + long unsigned int (*recalc_accuracy)(struct clk_hw *, long unsigned int);
1: + int (*get_phase)(struct clk_hw *);
1: + int (*set_phase)(struct clk_hw *, int);
1: + int (*get_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: + int (*set_duty_cycle)(struct clk_hw *, struct clk_duty *);
1: + int (*init)(struct clk_hw *);
1: + void (*terminate)(struct clk_hw *);
1: + void (*debug_init)(struct clk_hw *, struct dentry *);
1: };
1:
1: struct clk_parent_data {
1: - const struct clk_hw *hw;
1: - const char *fw_name;
1: - const char *name;
1: - int index;
1: + const struct clk_hw *hw;
1: + const char *fw_name;
1: + const char *name;
1: + int index;
1: };
1:
1: struct clk_init_data {
1: - const char *name;
1: - const struct clk_ops *ops;
1: - const char * const *parent_names;
1: - const struct clk_parent_data *parent_data;
1: - const struct clk_hw **parent_hws;
1: - u8 num_parents;
1: - long unsigned int flags;
1: + const char *name;
1: + const struct clk_ops *ops;
1: + const char *const *parent_names;
1: + const struct clk_parent_data *parent_data;
1: + const struct clk_hw **parent_hws;
1: + u8 num_parents;
1: + long unsigned int flags;
1: };
1:
1: struct clk_lookup_alloc {
1: - struct clk_lookup cl;
1: - char dev_id[20];
1: - char con_id[16];
1: + struct clk_lookup cl;
1: + char dev_id[20];
1: + char con_id[16];
1: };
1:
1: struct clk_notifier {
1: - struct clk *clk;
1: - struct srcu_notifier_head notifier_head;
1: - struct list_head node;
1: + struct clk *clk;
1: + struct srcu_notifier_head notifier_head;
1: + struct list_head node;
1: };
1:
1: struct clk {
1: - struct clk_core *core;
1: - struct device *dev;
1: - const char *dev_id;
1: - const char *con_id;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: - unsigned int exclusive_count;
1: - struct hlist_node clks_node;
1: + struct clk_core *core;
1: + struct device *dev;
1: + const char *dev_id;
1: + const char *con_id;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + unsigned int exclusive_count;
1: + struct hlist_node clks_node;
1: };
1:
1: struct clk_notifier_data {
1: - struct clk *clk;
1: - long unsigned int old_rate;
1: - long unsigned int new_rate;
1: + struct clk *clk;
1: + long unsigned int old_rate;
1: + long unsigned int new_rate;
1: };
1:
1: struct clk_parent_map;
1:
1: struct clk_core {
1: - const char *name;
1: - const struct clk_ops *ops;
1: - struct clk_hw *hw;
1: - struct module *owner;
1: - struct device *dev;
1: - struct device_node *of_node;
1: - struct clk_core *parent;
1: - struct clk_parent_map *parents;
1: - u8 num_parents;
1: - u8 new_parent_index;
1: - long unsigned int rate;
1: - long unsigned int req_rate;
1: - long unsigned int new_rate;
1: - struct clk_core *new_parent;
1: - struct clk_core *new_child;
1: - long unsigned int flags;
1: - bool orphan;
1: - bool rpm_enabled;
1: - unsigned int enable_count;
1: - unsigned int prepare_count;
1: - unsigned int protect_count;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: - long unsigned int accuracy;
1: - int phase;
1: - struct clk_duty duty;
1: - struct hlist_head children;
1: - struct hlist_node child_node;
1: - struct hlist_head clks;
1: - unsigned int notifier_count;
1: - struct dentry *dentry;
1: - struct hlist_node debug_node;
1: - struct kref ref;
1: + const char *name;
1: + const struct clk_ops *ops;
1: + struct clk_hw *hw;
1: + struct module *owner;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + struct clk_core *parent;
1: + struct clk_parent_map *parents;
1: + u8 num_parents;
1: + u8 new_parent_index;
1: + long unsigned int rate;
1: + long unsigned int req_rate;
1: + long unsigned int new_rate;
1: + struct clk_core *new_parent;
1: + struct clk_core *new_child;
1: + long unsigned int flags;
1: + bool orphan;
1: + bool rpm_enabled;
1: + unsigned int enable_count;
1: + unsigned int prepare_count;
1: + unsigned int protect_count;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int accuracy;
1: + int phase;
1: + struct clk_duty duty;
1: + struct hlist_head children;
1: + struct hlist_node child_node;
1: + struct hlist_head clks;
1: + unsigned int notifier_count;
1: + struct dentry *dentry;
1: + struct hlist_node debug_node;
1: + struct kref ref;
1: };
1:
1: struct clk_onecell_data {
1: - struct clk **clks;
1: - unsigned int clk_num;
1: + struct clk **clks;
1: + unsigned int clk_num;
1: };
1:
1: struct clk_hw_onecell_data {
1: - unsigned int num;
1: - struct clk_hw *hws[0];
1: + unsigned int num;
1: + struct clk_hw *hws[0];
1: };
1:
1: struct clk_parent_map {
1: - const struct clk_hw *hw;
1: - struct clk_core *core;
1: - const char *fw_name;
1: - const char *name;
1: - int index;
1: + const struct clk_hw *hw;
1: + struct clk_core *core;
1: + const char *fw_name;
1: + const char *name;
1: + int index;
1: };
1:
1: struct trace_event_raw_clk {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_clk_rate {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - long unsigned int rate;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + long unsigned int rate;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_clk_parent {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u32 __data_loc_pname;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_pname;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_clk_phase {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - int phase;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int phase;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_clk_duty_cycle {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int num;
1: - unsigned int den;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int num;
1: + unsigned int den;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_clk {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_clk_rate {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_clk_parent {
1: - u32 name;
1: - u32 pname;
1: + u32 name;
1: + u32 pname;
1: };
1:
1: struct trace_event_data_offsets_clk_phase {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_clk_duty_cycle {
1: - u32 name;
1: + u32 name;
1: };
1:
1: typedef void (*btf_trace_clk_enable)(void *, struct clk_core *);
1: @@ -71688,1060 +72678,1069 @@ typedef void (*btf_trace_clk_unprepare)(void *, struct clk_core *);
1:
1: typedef void (*btf_trace_clk_unprepare_complete)(void *, struct clk_core *);
1:
1: -typedef void (*btf_trace_clk_set_rate)(void *, struct clk_core *, long unsigned int);
1: +typedef void (*btf_trace_clk_set_rate)(void *, struct clk_core *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_clk_set_rate_complete)(void *, struct clk_core *, long unsigned int);
1: +typedef void (*btf_trace_clk_set_rate_complete)(void *, struct clk_core *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_clk_set_parent)(void *, struct clk_core *, struct clk_core *);
1: +typedef void (*btf_trace_clk_set_parent)(void *, struct clk_core *,
1: + struct clk_core *);
1:
1: -typedef void (*btf_trace_clk_set_parent_complete)(void *, struct clk_core *, struct clk_core *);
1: +typedef void (*btf_trace_clk_set_parent_complete)(void *, struct clk_core *,
1: + struct clk_core *);
1:
1: typedef void (*btf_trace_clk_set_phase)(void *, struct clk_core *, int);
1:
1: -typedef void (*btf_trace_clk_set_phase_complete)(void *, struct clk_core *, int);
1: +typedef void (*btf_trace_clk_set_phase_complete)(void *, struct clk_core *,
1: + int);
1:
1: -typedef void (*btf_trace_clk_set_duty_cycle)(void *, struct clk_core *, struct clk_duty *);
1: +typedef void (*btf_trace_clk_set_duty_cycle)(void *, struct clk_core *,
1: + struct clk_duty *);
1:
1: -typedef void (*btf_trace_clk_set_duty_cycle_complete)(void *, struct clk_core *, struct clk_duty *);
1: +typedef void (*btf_trace_clk_set_duty_cycle_complete)(void *, struct clk_core *,
1: + struct clk_duty *);
1:
1: struct of_clk_provider {
1: - struct list_head link;
1: - struct device_node *node;
1: - struct clk * (*get)(struct of_phandle_args *, void *);
1: - struct clk_hw * (*get_hw)(struct of_phandle_args *, void *);
1: - void *data;
1: + struct list_head link;
1: + struct device_node *node;
1: + struct clk *(*get)(struct of_phandle_args *, void *);
1: + struct clk_hw *(*get_hw)(struct of_phandle_args *, void *);
1: + void *data;
1: };
1:
1: struct clock_provider {
1: - void (*clk_init_cb)(struct device_node *);
1: - struct device_node *np;
1: - struct list_head node;
1: + void (*clk_init_cb)(struct device_node *);
1: + struct device_node *np;
1: + struct list_head node;
1: };
1:
1: struct clk_div_table {
1: - unsigned int val;
1: - unsigned int div;
1: + unsigned int val;
1: + unsigned int div;
1: };
1:
1: struct clk_divider {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 shift;
1: - u8 width;
1: - u8 flags;
1: - const struct clk_div_table *table;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + const struct clk_div_table *table;
1: + spinlock_t *lock;
1: };
1:
1: typedef void (*of_init_fn_1)(struct device_node *);
1:
1: struct clk_fixed_factor {
1: - struct clk_hw hw;
1: - unsigned int mult;
1: - unsigned int div;
1: + struct clk_hw hw;
1: + unsigned int mult;
1: + unsigned int div;
1: };
1:
1: struct clk_fixed_rate {
1: - struct clk_hw hw;
1: - long unsigned int fixed_rate;
1: - long unsigned int fixed_accuracy;
1: - long unsigned int flags;
1: + struct clk_hw hw;
1: + long unsigned int fixed_rate;
1: + long unsigned int fixed_accuracy;
1: + long unsigned int flags;
1: };
1:
1: struct clk_gate {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 bit_idx;
1: - u8 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 bit_idx;
1: + u8 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct clk_multiplier {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 shift;
1: - u8 width;
1: - u8 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct clk_mux {
1: - struct clk_hw hw;
1: - void *reg;
1: - u32 *table;
1: - u32 mask;
1: - u8 shift;
1: - u8 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u32 *table;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct clk_composite {
1: - struct clk_hw hw;
1: - struct clk_ops ops;
1: - struct clk_hw *mux_hw;
1: - struct clk_hw *rate_hw;
1: - struct clk_hw *gate_hw;
1: - const struct clk_ops *mux_ops;
1: - const struct clk_ops *rate_ops;
1: - const struct clk_ops *gate_ops;
1: + struct clk_hw hw;
1: + struct clk_ops ops;
1: + struct clk_hw *mux_hw;
1: + struct clk_hw *rate_hw;
1: + struct clk_hw *gate_hw;
1: + const struct clk_ops *mux_ops;
1: + const struct clk_ops *rate_ops;
1: + const struct clk_ops *gate_ops;
1: };
1:
1: struct clk_fractional_divider {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 mshift;
1: - u8 mwidth;
1: - u32 mmask;
1: - u8 nshift;
1: - u8 nwidth;
1: - u32 nmask;
1: - u8 flags;
1: - void (*approximation)(struct clk_hw *, long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *);
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 mshift;
1: + u8 mwidth;
1: + u32 mmask;
1: + u8 nshift;
1: + u8 nwidth;
1: + u32 nmask;
1: + u8 flags;
1: + void (*approximation)(struct clk_hw *, long unsigned int, long unsigned int *,
1: + long unsigned int *, long unsigned int *);
1: + spinlock_t *lock;
1: };
1:
1: struct clk_gpio {
1: - struct clk_hw hw;
1: - struct gpio_desc *gpiod;
1: + struct clk_hw hw;
1: + struct gpio_desc *gpiod;
1: };
1:
1: struct ccsr_guts {
1: - u32 porpllsr;
1: - u32 porbmsr;
1: - u32 porimpscr;
1: - u32 pordevsr;
1: - u32 pordbgmsr;
1: - u32 pordevsr2;
1: - u8 res018[8];
1: - u32 porcir;
1: - u8 res024[12];
1: - u32 gpiocr;
1: - u8 res034[12];
1: - u32 gpoutdr;
1: - u8 res044[12];
1: - u32 gpindr;
1: - u8 res054[12];
1: - u32 pmuxcr;
1: - u32 pmuxcr2;
1: - u32 dmuxcr;
1: - u8 res06c[4];
1: - u32 devdisr;
1: - u32 devdisr2;
1: - u8 res078[4];
1: - u32 pmjcr;
1: - u32 powmgtcsr;
1: - u32 pmrccr;
1: - u32 pmpdccr;
1: - u32 pmcdr;
1: - u32 mcpsumr;
1: - u32 rstrscr;
1: - u32 ectrstcr;
1: - u32 autorstsr;
1: - u32 pvr;
1: - u32 svr;
1: - u8 res0a8[8];
1: - u32 rstcr;
1: - u8 res0b4[12];
1: - u32 iovselsr;
1: - u8 res0c4[60];
1: - u32 rcwsr[16];
1: - u8 res140[228];
1: - u32 iodelay1;
1: - u32 iodelay2;
1: - u8 res22c[984];
1: - u32 pamubypenr;
1: - u8 res608[504];
1: - u32 clkdvdr;
1: - u8 res804[252];
1: - u32 ircr;
1: - u8 res904[4];
1: - u32 dmacr;
1: - u8 res90c[8];
1: - u32 elbccr;
1: - u8 res918[520];
1: - u32 ddr1clkdr;
1: - u32 ddr2clkdr;
1: - u32 ddrclkdr;
1: - u8 resb2c[724];
1: - u32 clkocr;
1: - u8 rese04[12];
1: - u32 ddrdllcr;
1: - u8 rese14[12];
1: - u32 lbcdllcr;
1: - u32 cpfor;
1: - u8 rese28[220];
1: - u32 srds1cr0;
1: - u32 srds1cr1;
1: - u8 resf0c[32];
1: - u32 itcr;
1: - u8 resf30[16];
1: - u32 srds2cr0;
1: - u32 srds2cr1;
1: + u32 porpllsr;
1: + u32 porbmsr;
1: + u32 porimpscr;
1: + u32 pordevsr;
1: + u32 pordbgmsr;
1: + u32 pordevsr2;
1: + u8 res018[8];
1: + u32 porcir;
1: + u8 res024[12];
1: + u32 gpiocr;
1: + u8 res034[12];
1: + u32 gpoutdr;
1: + u8 res044[12];
1: + u32 gpindr;
1: + u8 res054[12];
1: + u32 pmuxcr;
1: + u32 pmuxcr2;
1: + u32 dmuxcr;
1: + u8 res06c[4];
1: + u32 devdisr;
1: + u32 devdisr2;
1: + u8 res078[4];
1: + u32 pmjcr;
1: + u32 powmgtcsr;
1: + u32 pmrccr;
1: + u32 pmpdccr;
1: + u32 pmcdr;
1: + u32 mcpsumr;
1: + u32 rstrscr;
1: + u32 ectrstcr;
1: + u32 autorstsr;
1: + u32 pvr;
1: + u32 svr;
1: + u8 res0a8[8];
1: + u32 rstcr;
1: + u8 res0b4[12];
1: + u32 iovselsr;
1: + u8 res0c4[60];
1: + u32 rcwsr[16];
1: + u8 res140[228];
1: + u32 iodelay1;
1: + u32 iodelay2;
1: + u8 res22c[984];
1: + u32 pamubypenr;
1: + u8 res608[504];
1: + u32 clkdvdr;
1: + u8 res804[252];
1: + u32 ircr;
1: + u8 res904[4];
1: + u32 dmacr;
1: + u8 res90c[8];
1: + u32 elbccr;
1: + u8 res918[520];
1: + u32 ddr1clkdr;
1: + u32 ddr2clkdr;
1: + u32 ddrclkdr;
1: + u8 resb2c[724];
1: + u32 clkocr;
1: + u8 rese04[12];
1: + u32 ddrdllcr;
1: + u8 rese14[12];
1: + u32 lbcdllcr;
1: + u32 cpfor;
1: + u8 rese28[220];
1: + u32 srds1cr0;
1: + u32 srds1cr1;
1: + u8 resf0c[32];
1: + u32 itcr;
1: + u8 resf30[16];
1: + u32 srds2cr0;
1: + u32 srds2cr1;
1: };
1:
1: struct clockgen_pll_div {
1: - struct clk *clk;
1: - char name[32];
1: + struct clk *clk;
1: + char name[32];
1: };
1:
1: struct clockgen_pll {
1: - struct clockgen_pll_div div[32];
1: + struct clockgen_pll_div div[32];
1: };
1:
1: struct clockgen_sourceinfo {
1: - u32 flags;
1: - int pll;
1: - int div;
1: + u32 flags;
1: + int pll;
1: + int div;
1: };
1:
1: struct clockgen_muxinfo {
1: - struct clockgen_sourceinfo clksel[16];
1: + struct clockgen_sourceinfo clksel[16];
1: };
1:
1: struct clockgen;
1:
1: struct clockgen_chipinfo {
1: - const char *compat;
1: - const char *guts_compat;
1: - const struct clockgen_muxinfo *cmux_groups[2];
1: - const struct clockgen_muxinfo *hwaccel[5];
1: - void (*init_periph)(struct clockgen *);
1: - int cmux_to_group[9];
1: - u32 pll_mask;
1: - u32 flags;
1: + const char *compat;
1: + const char *guts_compat;
1: + const struct clockgen_muxinfo *cmux_groups[2];
1: + const struct clockgen_muxinfo *hwaccel[5];
1: + void (*init_periph)(struct clockgen *);
1: + int cmux_to_group[9];
1: + u32 pll_mask;
1: + u32 flags;
1: };
1:
1: struct clockgen {
1: - struct device_node *node;
1: - void *regs;
1: - struct clockgen_chipinfo info;
1: - struct clk *sysclk;
1: - struct clk *coreclk;
1: - struct clockgen_pll pll[6];
1: - struct clk *cmux[8];
1: - struct clk *hwaccel[5];
1: - struct clk *fman[2];
1: - struct ccsr_guts *guts;
1: + struct device_node *node;
1: + void *regs;
1: + struct clockgen_chipinfo info;
1: + struct clk *sysclk;
1: + struct clk *coreclk;
1: + struct clockgen_pll pll[6];
1: + struct clk *cmux[8];
1: + struct clk *hwaccel[5];
1: + struct clk *fman[2];
1: + struct ccsr_guts *guts;
1: };
1:
1: struct mux_hwclock {
1: - struct clk_hw hw;
1: - struct clockgen *cg;
1: - const struct clockgen_muxinfo *info;
1: - u32 *reg;
1: - u8 parent_to_clksel[16];
1: - s8 clksel_to_parent[16];
1: - int num_parents;
1: + struct clk_hw hw;
1: + struct clockgen *cg;
1: + const struct clockgen_muxinfo *info;
1: + u32 *reg;
1: + u8 parent_to_clksel[16];
1: + s8 clksel_to_parent[16];
1: + int num_parents;
1: };
1:
1: struct scpi_opp {
1: - u32 freq;
1: - u32 m_volt;
1: + u32 freq;
1: + u32 m_volt;
1: };
1:
1: struct scpi_dvfs_info {
1: - unsigned int count;
1: - unsigned int latency;
1: - struct scpi_opp *opps;
1: + unsigned int count;
1: + unsigned int latency;
1: + struct scpi_opp *opps;
1: };
1:
1: struct scpi_sensor_info {
1: - u16 sensor_id;
1: - u8 class;
1: - u8 trigger_type;
1: - char name[20];
1: + u16 sensor_id;
1: + u8 class;
1: + u8 trigger_type;
1: + char name[20];
1: };
1:
1: struct scpi_ops {
1: - u32 (*get_version)();
1: - int (*clk_get_range)(u16, long unsigned int *, long unsigned int *);
1: - long unsigned int (*clk_get_val)(u16);
1: - int (*clk_set_val)(u16, long unsigned int);
1: - int (*dvfs_get_idx)(u8);
1: - int (*dvfs_set_idx)(u8, u8);
1: - struct scpi_dvfs_info * (*dvfs_get_info)(u8);
1: - int (*device_domain_id)(struct device *);
1: - int (*get_transition_latency)(struct device *);
1: - int (*add_opps_to_device)(struct device *);
1: - int (*sensor_get_capability)(u16 *);
1: - int (*sensor_get_info)(u16, struct scpi_sensor_info *);
1: - int (*sensor_get_value)(u16, u64 *);
1: - int (*device_get_power_state)(u16);
1: - int (*device_set_power_state)(u16, u8);
1: + u32 (*get_version)();
1: + int (*clk_get_range)(u16, long unsigned int *, long unsigned int *);
1: + long unsigned int (*clk_get_val)(u16);
1: + int (*clk_set_val)(u16, long unsigned int);
1: + int (*dvfs_get_idx)(u8);
1: + int (*dvfs_set_idx)(u8, u8);
1: + struct scpi_dvfs_info *(*dvfs_get_info)(u8);
1: + int (*device_domain_id)(struct device *);
1: + int (*get_transition_latency)(struct device *);
1: + int (*add_opps_to_device)(struct device *);
1: + int (*sensor_get_capability)(u16 *);
1: + int (*sensor_get_info)(u16, struct scpi_sensor_info *);
1: + int (*sensor_get_value)(u16, u64 *);
1: + int (*device_get_power_state)(u16);
1: + int (*device_set_power_state)(u16, u8);
1: };
1:
1: struct scpi_clk {
1: - u32 id;
1: - struct clk_hw hw;
1: - struct scpi_dvfs_info *info;
1: - struct scpi_ops *scpi_ops;
1: + u32 id;
1: + struct clk_hw hw;
1: + struct scpi_dvfs_info *info;
1: + struct scpi_ops *scpi_ops;
1: };
1:
1: struct scpi_clk_data {
1: - struct scpi_clk **clk;
1: - unsigned int clk_num;
1: + struct scpi_clk **clk;
1: + unsigned int clk_num;
1: };
1:
1: enum xgene_pll_type {
1: - PLL_TYPE_PCP = 0,
1: - PLL_TYPE_SOC = 1,
1: + PLL_TYPE_PCP = 0,
1: + PLL_TYPE_SOC = 1,
1: };
1:
1: struct xgene_clk_pll {
1: - struct clk_hw hw;
1: - void *reg;
1: - spinlock_t *lock;
1: - u32 pll_offset;
1: - enum xgene_pll_type type;
1: - int version;
1: + struct clk_hw hw;
1: + void *reg;
1: + spinlock_t *lock;
1: + u32 pll_offset;
1: + enum xgene_pll_type type;
1: + int version;
1: };
1:
1: struct xgene_clk_pmd {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 shift;
1: - u32 mask;
1: - u64 denom;
1: - u32 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u32 mask;
1: + u64 denom;
1: + u32 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct xgene_dev_parameters {
1: - void *csr_reg;
1: - u32 reg_clk_offset;
1: - u32 reg_clk_mask;
1: - u32 reg_csr_offset;
1: - u32 reg_csr_mask;
1: - void *divider_reg;
1: - u32 reg_divider_offset;
1: - u32 reg_divider_shift;
1: - u32 reg_divider_width;
1: + void *csr_reg;
1: + u32 reg_clk_offset;
1: + u32 reg_clk_mask;
1: + u32 reg_csr_offset;
1: + u32 reg_csr_mask;
1: + void *divider_reg;
1: + u32 reg_divider_offset;
1: + u32 reg_divider_shift;
1: + u32 reg_divider_width;
1: };
1:
1: struct xgene_clk {
1: - struct clk_hw hw;
1: - spinlock_t *lock;
1: - struct xgene_dev_parameters param;
1: + struct clk_hw hw;
1: + spinlock_t *lock;
1: + struct xgene_dev_parameters param;
1: };
1:
1: struct reset_controller_dev;
1:
1: struct reset_control_ops {
1: - int (*reset)(struct reset_controller_dev *, long unsigned int);
1: - int (*assert)(struct reset_controller_dev *, long unsigned int);
1: - int (*deassert)(struct reset_controller_dev *, long unsigned int);
1: - int (*status)(struct reset_controller_dev *, long unsigned int);
1: + int (*reset)(struct reset_controller_dev *, long unsigned int);
1: + int (*assert)(struct reset_controller_dev *, long unsigned int);
1: + int (*deassert)(struct reset_controller_dev *, long unsigned int);
1: + int (*status)(struct reset_controller_dev *, long unsigned int);
1: };
1:
1: struct reset_controller_dev {
1: - const struct reset_control_ops *ops;
1: - struct module *owner;
1: - struct list_head list;
1: - struct list_head reset_control_head;
1: - struct device *dev;
1: - struct device_node *of_node;
1: - int of_reset_n_cells;
1: - int (*of_xlate)(struct reset_controller_dev *, const struct of_phandle_args *);
1: - unsigned int nr_resets;
1: + const struct reset_control_ops *ops;
1: + struct module *owner;
1: + struct list_head list;
1: + struct list_head reset_control_head;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + int of_reset_n_cells;
1: + int (*of_xlate)(struct reset_controller_dev *,
1: + const struct of_phandle_args *);
1: + unsigned int nr_resets;
1: };
1:
1: struct reset_simple_data {
1: - spinlock_t lock;
1: - void *membase;
1: - struct reset_controller_dev rcdev;
1: - bool active_low;
1: - bool status_active_low;
1: - unsigned int reset_us;
1: + spinlock_t lock;
1: + void *membase;
1: + struct reset_controller_dev rcdev;
1: + bool active_low;
1: + bool status_active_low;
1: + unsigned int reset_us;
1: };
1:
1: struct clk_dvp {
1: - struct clk_hw_onecell_data *data;
1: - struct reset_simple_data reset;
1: + struct clk_hw_onecell_data *data;
1: + struct reset_simple_data reset;
1: };
1:
1: struct bcm2835_cprman {
1: - struct device *dev;
1: - void *regs;
1: - spinlock_t regs_lock;
1: - unsigned int soc;
1: - const char *real_parent_names[7];
1: - struct clk_hw_onecell_data onecell;
1: + struct device *dev;
1: + void *regs;
1: + spinlock_t regs_lock;
1: + unsigned int soc;
1: + const char *real_parent_names[7];
1: + struct clk_hw_onecell_data onecell;
1: };
1:
1: struct cprman_plat_data {
1: - unsigned int soc;
1: + unsigned int soc;
1: };
1:
1: struct bcm2835_pll_ana_bits;
1:
1: struct bcm2835_pll_data {
1: - const char *name;
1: - u32 cm_ctrl_reg;
1: - u32 a2w_ctrl_reg;
1: - u32 frac_reg;
1: - u32 ana_reg_base;
1: - u32 reference_enable_mask;
1: - u32 lock_mask;
1: - u32 flags;
1: - const struct bcm2835_pll_ana_bits *ana;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: - long unsigned int max_fb_rate;
1: + const char *name;
1: + u32 cm_ctrl_reg;
1: + u32 a2w_ctrl_reg;
1: + u32 frac_reg;
1: + u32 ana_reg_base;
1: + u32 reference_enable_mask;
1: + u32 lock_mask;
1: + u32 flags;
1: + const struct bcm2835_pll_ana_bits *ana;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + long unsigned int max_fb_rate;
1: };
1:
1: struct bcm2835_pll_ana_bits {
1: - u32 mask0;
1: - u32 set0;
1: - u32 mask1;
1: - u32 set1;
1: - u32 mask3;
1: - u32 set3;
1: - u32 fb_prediv_mask;
1: + u32 mask0;
1: + u32 set0;
1: + u32 mask1;
1: + u32 set1;
1: + u32 mask3;
1: + u32 set3;
1: + u32 fb_prediv_mask;
1: };
1:
1: struct bcm2835_pll_divider_data {
1: - const char *name;
1: - const char *source_pll;
1: - u32 cm_reg;
1: - u32 a2w_reg;
1: - u32 load_mask;
1: - u32 hold_mask;
1: - u32 fixed_divider;
1: - u32 flags;
1: + const char *name;
1: + const char *source_pll;
1: + u32 cm_reg;
1: + u32 a2w_reg;
1: + u32 load_mask;
1: + u32 hold_mask;
1: + u32 fixed_divider;
1: + u32 flags;
1: };
1:
1: struct bcm2835_clock_data {
1: - const char *name;
1: - const char * const *parents;
1: - int num_mux_parents;
1: - unsigned int set_rate_parent;
1: - u32 ctl_reg;
1: - u32 div_reg;
1: - u32 int_bits;
1: - u32 frac_bits;
1: - u32 flags;
1: - bool is_vpu_clock;
1: - bool is_mash_clock;
1: - bool low_jitter;
1: - u32 tcnt_mux;
1: + const char *name;
1: + const char *const *parents;
1: + int num_mux_parents;
1: + unsigned int set_rate_parent;
1: + u32 ctl_reg;
1: + u32 div_reg;
1: + u32 int_bits;
1: + u32 frac_bits;
1: + u32 flags;
1: + bool is_vpu_clock;
1: + bool is_mash_clock;
1: + bool low_jitter;
1: + u32 tcnt_mux;
1: };
1:
1: struct bcm2835_gate_data {
1: - const char *name;
1: - const char *parent;
1: - u32 ctl_reg;
1: + const char *name;
1: + const char *parent;
1: + u32 ctl_reg;
1: };
1:
1: struct bcm2835_pll {
1: - struct clk_hw hw;
1: - struct bcm2835_cprman *cprman;
1: - const struct bcm2835_pll_data *data;
1: + struct clk_hw hw;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_pll_data *data;
1: };
1:
1: struct bcm2835_pll_divider {
1: - struct clk_divider div;
1: - struct bcm2835_cprman *cprman;
1: - const struct bcm2835_pll_divider_data *data;
1: + struct clk_divider div;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_pll_divider_data *data;
1: };
1:
1: struct bcm2835_clock {
1: - struct clk_hw hw;
1: - struct bcm2835_cprman *cprman;
1: - const struct bcm2835_clock_data *data;
1: + struct clk_hw hw;
1: + struct bcm2835_cprman *cprman;
1: + const struct bcm2835_clock_data *data;
1: };
1:
1: struct bcm2835_clk_desc {
1: - struct clk_hw * (*clk_register)(struct bcm2835_cprman *, const void *);
1: - unsigned int supported;
1: - const void *data;
1: + struct clk_hw *(*clk_register)(struct bcm2835_cprman *, const void *);
1: + unsigned int supported;
1: + const void *data;
1: };
1:
1: struct hisi_clock_data {
1: - struct clk_onecell_data clk_data;
1: - void *base;
1: + struct clk_onecell_data clk_data;
1: + void *base;
1: };
1:
1: struct hisi_fixed_rate_clock {
1: - unsigned int id;
1: - char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int fixed_rate;
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int fixed_rate;
1: };
1:
1: struct hisi_fixed_factor_clock {
1: - unsigned int id;
1: - char *name;
1: - const char *parent_name;
1: - long unsigned int mult;
1: - long unsigned int div;
1: - long unsigned int flags;
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int mult;
1: + long unsigned int div;
1: + long unsigned int flags;
1: };
1:
1: struct hisi_mux_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char * const *parent_names;
1: - u8 num_parents;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u8 mux_flags;
1: - u32 *table;
1: - const char *alias;
1: + unsigned int id;
1: + const char *name;
1: + const char *const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 mux_flags;
1: + u32 *table;
1: + const char *alias;
1: };
1:
1: struct hisi_phase_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_names;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u32 *phase_degrees;
1: - u32 *phase_regvals;
1: - u8 phase_num;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_names;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u32 *phase_degrees;
1: + u32 *phase_regvals;
1: + u8 phase_num;
1: };
1:
1: struct hisi_divider_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u8 div_flags;
1: - struct clk_div_table *table;
1: - const char *alias;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 div_flags;
1: + struct clk_div_table *table;
1: + const char *alias;
1: };
1:
1: struct hi6220_divider_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u32 mask_bit;
1: - const char *alias;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u32 mask_bit;
1: + const char *alias;
1: };
1:
1: struct hisi_gate_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 bit_idx;
1: - u8 gate_flags;
1: - const char *alias;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 bit_idx;
1: + u8 gate_flags;
1: + const char *alias;
1: };
1:
1: struct clkgate_separated {
1: - struct clk_hw hw;
1: - void *enable;
1: - u8 bit_idx;
1: - u8 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *enable;
1: + u8 bit_idx;
1: + u8 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct hi6220_clk_divider {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 shift;
1: - u8 width;
1: - u32 mask;
1: - const struct clk_div_table *table;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 shift;
1: + u8 width;
1: + u32 mask;
1: + const struct clk_div_table *table;
1: + spinlock_t *lock;
1: };
1:
1: struct clk_hisi_phase {
1: - struct clk_hw hw;
1: - void *reg;
1: - u32 *phase_degrees;
1: - u32 *phase_regvals;
1: - u8 phase_num;
1: - u32 mask;
1: - u8 shift;
1: - u8 flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u32 *phase_degrees;
1: + u32 *phase_regvals;
1: + u8 phase_num;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: + spinlock_t *lock;
1: };
1:
1: struct hisi_crg_funcs {
1: - struct hisi_clock_data * (*register_clks)(struct platform_device *);
1: - void (*unregister_clks)(struct platform_device *);
1: + struct hisi_clock_data *(*register_clks)(struct platform_device *);
1: + void (*unregister_clks)(struct platform_device *);
1: };
1:
1: struct hisi_reset_controller;
1:
1: struct hisi_crg_dev {
1: - struct hisi_clock_data *clk_data;
1: - struct hisi_reset_controller *rstc;
1: - const struct hisi_crg_funcs *funcs;
1: + struct hisi_clock_data *clk_data;
1: + struct hisi_reset_controller *rstc;
1: + const struct hisi_crg_funcs *funcs;
1: };
1:
1: struct hi3519_crg_data {
1: - struct hisi_clock_data *clk_data;
1: - struct hisi_reset_controller *rstc;
1: + struct hisi_clock_data *clk_data;
1: + struct hisi_reset_controller *rstc;
1: };
1:
1: struct hisi_reset_controller___2 {
1: - spinlock_t lock;
1: - void *membase;
1: - struct reset_controller_dev rcdev;
1: + spinlock_t lock;
1: + void *membase;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct mbox_chan___2;
1:
1: struct hi6220_stub_clk {
1: - u32 id;
1: - struct device *dev;
1: - struct clk_hw hw;
1: - struct regmap *dfs_map;
1: - struct mbox_client cl;
1: - struct mbox_chan___2 *mbox;
1: + u32 id;
1: + struct device *dev;
1: + struct clk_hw hw;
1: + struct regmap *dfs_map;
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *mbox;
1: };
1:
1: struct hi6220_mbox_msg {
1: - unsigned char type;
1: - unsigned char cmd;
1: - unsigned char obj;
1: - unsigned char src;
1: - unsigned char para[4];
1: + unsigned char type;
1: + unsigned char cmd;
1: + unsigned char obj;
1: + unsigned char src;
1: + unsigned char para[4];
1: };
1:
1: union hi6220_mbox_data {
1: - unsigned int data[8];
1: - struct hi6220_mbox_msg msg;
1: + unsigned int data[8];
1: + struct hi6220_mbox_msg msg;
1: };
1:
1: struct hi3660_stub_clk_chan {
1: - struct mbox_client cl;
1: - struct mbox_chan___2 *mbox;
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *mbox;
1: };
1:
1: struct hi3660_stub_clk {
1: - unsigned int id;
1: - struct clk_hw hw;
1: - unsigned int cmd;
1: - unsigned int msg[8];
1: - unsigned int rate;
1: + unsigned int id;
1: + struct clk_hw hw;
1: + unsigned int cmd;
1: + unsigned int msg[8];
1: + unsigned int rate;
1: };
1:
1: struct mtk_fixed_clk {
1: - int id;
1: - const char *name;
1: - const char *parent;
1: - long unsigned int rate;
1: + int id;
1: + const char *name;
1: + const char *parent;
1: + long unsigned int rate;
1: };
1:
1: struct mtk_fixed_factor {
1: - int id;
1: - const char *name;
1: - const char *parent_name;
1: - int mult;
1: - int div;
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + int mult;
1: + int div;
1: };
1:
1: struct mtk_composite {
1: - int id;
1: - const char *name;
1: - const char * const *parent_names;
1: - const char *parent;
1: - unsigned int flags;
1: - uint32_t mux_reg;
1: - uint32_t divider_reg;
1: - uint32_t gate_reg;
1: - signed char mux_shift;
1: - signed char mux_width;
1: - signed char gate_shift;
1: - signed char divider_shift;
1: - signed char divider_width;
1: - u8 mux_flags;
1: - signed char num_parents;
1: + int id;
1: + const char *name;
1: + const char *const *parent_names;
1: + const char *parent;
1: + unsigned int flags;
1: + uint32_t mux_reg;
1: + uint32_t divider_reg;
1: + uint32_t gate_reg;
1: + signed char mux_shift;
1: + signed char mux_width;
1: + signed char gate_shift;
1: + signed char divider_shift;
1: + signed char divider_width;
1: + u8 mux_flags;
1: + signed char num_parents;
1: };
1:
1: struct mtk_gate_regs {
1: - u32 sta_ofs;
1: - u32 clr_ofs;
1: - u32 set_ofs;
1: + u32 sta_ofs;
1: + u32 clr_ofs;
1: + u32 set_ofs;
1: };
1:
1: struct mtk_gate {
1: - int id;
1: - const char *name;
1: - const char *parent_name;
1: - const struct mtk_gate_regs *regs;
1: - int shift;
1: - const struct clk_ops *ops;
1: - long unsigned int flags;
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + const struct mtk_gate_regs *regs;
1: + int shift;
1: + const struct clk_ops *ops;
1: + long unsigned int flags;
1: };
1:
1: struct mtk_clk_divider {
1: - int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - u32 div_reg;
1: - unsigned char div_shift;
1: - unsigned char div_width;
1: - unsigned char clk_divider_flags;
1: - const struct clk_div_table *clk_div_table;
1: + int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + u32 div_reg;
1: + unsigned char div_shift;
1: + unsigned char div_width;
1: + unsigned char clk_divider_flags;
1: + const struct clk_div_table *clk_div_table;
1: };
1:
1: struct mtk_pll_div_table {
1: - u32 div;
1: - long unsigned int freq;
1: + u32 div;
1: + long unsigned int freq;
1: };
1:
1: struct mtk_pll_data {
1: - int id;
1: - const char *name;
1: - uint32_t reg;
1: - uint32_t pwr_reg;
1: - uint32_t en_mask;
1: - uint32_t pd_reg;
1: - uint32_t tuner_reg;
1: - uint32_t tuner_en_reg;
1: - uint8_t tuner_en_bit;
1: - int pd_shift;
1: - unsigned int flags;
1: - const struct clk_ops *ops;
1: - u32 rst_bar_mask;
1: - long unsigned int fmin;
1: - long unsigned int fmax;
1: - int pcwbits;
1: - int pcwibits;
1: - uint32_t pcw_reg;
1: - int pcw_shift;
1: - uint32_t pcw_chg_reg;
1: - const struct mtk_pll_div_table *div_table;
1: - const char *parent_name;
1: + int id;
1: + const char *name;
1: + uint32_t reg;
1: + uint32_t pwr_reg;
1: + uint32_t en_mask;
1: + uint32_t pd_reg;
1: + uint32_t tuner_reg;
1: + uint32_t tuner_en_reg;
1: + uint8_t tuner_en_bit;
1: + int pd_shift;
1: + unsigned int flags;
1: + const struct clk_ops *ops;
1: + u32 rst_bar_mask;
1: + long unsigned int fmin;
1: + long unsigned int fmax;
1: + int pcwbits;
1: + int pcwibits;
1: + uint32_t pcw_reg;
1: + int pcw_shift;
1: + uint32_t pcw_chg_reg;
1: + const struct mtk_pll_div_table *div_table;
1: + const char *parent_name;
1: };
1:
1: struct mtk_clk_pll {
1: - struct clk_hw hw;
1: - void *base_addr;
1: - void *pd_addr;
1: - void *pwr_addr;
1: - void *tuner_addr;
1: - void *tuner_en_addr;
1: - void *pcw_addr;
1: - void *pcw_chg_addr;
1: - const struct mtk_pll_data *data;
1: + struct clk_hw hw;
1: + void *base_addr;
1: + void *pd_addr;
1: + void *pwr_addr;
1: + void *tuner_addr;
1: + void *tuner_en_addr;
1: + void *pcw_addr;
1: + void *pcw_chg_addr;
1: + const struct mtk_pll_data *data;
1: };
1:
1: struct mtk_clk_gate {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - int set_ofs;
1: - int clr_ofs;
1: - int sta_ofs;
1: - u8 bit;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + int set_ofs;
1: + int clr_ofs;
1: + int sta_ofs;
1: + u8 bit;
1: };
1:
1: struct mtk_ref2usb_tx {
1: - struct clk_hw hw;
1: - void *base_addr;
1: + struct clk_hw hw;
1: + void *base_addr;
1: };
1:
1: struct mtk_clk_cpumux {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - u32 reg;
1: - u32 mask;
1: - u8 shift;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u32 reg;
1: + u32 mask;
1: + u8 shift;
1: };
1:
1: struct mtk_reset {
1: - struct regmap *regmap;
1: - int regofs;
1: - struct reset_controller_dev rcdev;
1: + struct regmap *regmap;
1: + int regofs;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct mtk_mux;
1:
1: struct mtk_clk_mux {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - const struct mtk_mux *data;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + const struct mtk_mux *data;
1: + spinlock_t *lock;
1: };
1:
1: struct mtk_mux {
1: - int id;
1: - const char *name;
1: - const char * const *parent_names;
1: - unsigned int flags;
1: - u32 mux_ofs;
1: - u32 set_ofs;
1: - u32 clr_ofs;
1: - u32 upd_ofs;
1: - u8 mux_shift;
1: - u8 mux_width;
1: - u8 gate_shift;
1: - s8 upd_shift;
1: - const struct clk_ops *ops;
1: - signed char num_parents;
1: + int id;
1: + const char *name;
1: + const char *const *parent_names;
1: + unsigned int flags;
1: + u32 mux_ofs;
1: + u32 set_ofs;
1: + u32 clr_ofs;
1: + u32 upd_ofs;
1: + u8 mux_shift;
1: + u8 mux_width;
1: + u8 gate_shift;
1: + s8 upd_shift;
1: + const struct clk_ops *ops;
1: + signed char num_parents;
1: };
1:
1: struct clk_mt8167_mm_driver_data {
1: - const struct mtk_gate *gates_clk;
1: - int gates_num;
1: + const struct mtk_gate *gates_clk;
1: + int gates_num;
1: };
1:
1: struct mtk_clk_usb {
1: - int id;
1: - const char *name;
1: - const char *parent;
1: - u32 reg_ofs;
1: + int id;
1: + const char *name;
1: + const char *parent;
1: + u32 reg_ofs;
1: };
1:
1: struct clk_mt8173_mm_driver_data {
1: - const struct mtk_gate *gates_clk;
1: - int gates_num;
1: + const struct mtk_gate *gates_clk;
1: + int gates_num;
1: };
1:
1: struct clk_regmap {
1: - struct clk_hw hw;
1: - struct regmap *map;
1: - void *data;
1: + struct clk_hw hw;
1: + struct regmap *map;
1: + void *data;
1: };
1:
1: struct meson_aoclk_data {
1: - const unsigned int reset_reg;
1: - const int num_reset;
1: - const unsigned int *reset;
1: - const int num_clks;
1: - struct clk_regmap **clks;
1: - const struct clk_hw_onecell_data *hw_data;
1: + const unsigned int reset_reg;
1: + const int num_reset;
1: + const unsigned int *reset;
1: + const int num_clks;
1: + struct clk_regmap **clks;
1: + const struct clk_hw_onecell_data *hw_data;
1: };
1:
1: struct meson_aoclk_reset_controller {
1: - struct reset_controller_dev reset;
1: - const struct meson_aoclk_data *data;
1: - struct regmap *regmap;
1: + struct reset_controller_dev reset;
1: + const struct meson_aoclk_data *data;
1: + struct regmap *regmap;
1: };
1:
1: struct parm {
1: - u16 reg_off;
1: - u8 shift;
1: - u8 width;
1: + u16 reg_off;
1: + u8 shift;
1: + u8 width;
1: };
1:
1: struct meson_clk_cpu_dyndiv_data {
1: - struct parm div;
1: - struct parm dyn;
1: + struct parm div;
1: + struct parm dyn;
1: };
1:
1: struct meson_clk_dualdiv_param {
1: - unsigned int n1;
1: - unsigned int n2;
1: - unsigned int m1;
1: - unsigned int m2;
1: - unsigned int dual;
1: + unsigned int n1;
1: + unsigned int n2;
1: + unsigned int m1;
1: + unsigned int m2;
1: + unsigned int dual;
1: };
1:
1: struct meson_clk_dualdiv_data {
1: - struct parm n1;
1: - struct parm n2;
1: - struct parm m1;
1: - struct parm m2;
1: - struct parm dual;
1: - const struct meson_clk_dualdiv_param *table;
1: + struct parm n1;
1: + struct parm n2;
1: + struct parm m1;
1: + struct parm m2;
1: + struct parm dual;
1: + const struct meson_clk_dualdiv_param *table;
1: };
1:
1: struct reg_sequence {
1: - unsigned int reg;
1: - unsigned int def;
1: - unsigned int delay_us;
1: + unsigned int reg;
1: + unsigned int def;
1: + unsigned int delay_us;
1: };
1:
1: struct meson_eeclkc_data {
1: - struct clk_regmap * const *regmap_clks;
1: - unsigned int regmap_clk_num;
1: - const struct reg_sequence *init_regs;
1: - unsigned int init_count;
1: - struct clk_hw_onecell_data *hw_onecell_data;
1: + struct clk_regmap *const *regmap_clks;
1: + unsigned int regmap_clk_num;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + struct clk_hw_onecell_data *hw_onecell_data;
1: };
1:
1: struct meson_clk_mpll_data {
1: - struct parm sdm;
1: - struct parm sdm_en;
1: - struct parm n2;
1: - struct parm ssen;
1: - struct parm misc;
1: - const struct reg_sequence *init_regs;
1: - unsigned int init_count;
1: - spinlock_t *lock;
1: - u8 flags;
1: + struct parm sdm;
1: + struct parm sdm_en;
1: + struct parm n2;
1: + struct parm ssen;
1: + struct parm misc;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + spinlock_t *lock;
1: + u8 flags;
1: };
1:
1: struct pll_params_table {
1: - unsigned int m;
1: - unsigned int n;
1: + unsigned int m;
1: + unsigned int n;
1: };
1:
1: struct pll_mult_range {
1: - unsigned int min;
1: - unsigned int max;
1: + unsigned int min;
1: + unsigned int max;
1: };
1:
1: struct meson_clk_pll_data {
1: - struct parm en;
1: - struct parm m;
1: - struct parm n;
1: - struct parm frac;
1: - struct parm l;
1: - struct parm rst;
1: - const struct reg_sequence *init_regs;
1: - unsigned int init_count;
1: - const struct pll_params_table *table;
1: - const struct pll_mult_range *range;
1: - u8 flags;
1: + struct parm en;
1: + struct parm m;
1: + struct parm n;
1: + struct parm frac;
1: + struct parm l;
1: + struct parm rst;
1: + const struct reg_sequence *init_regs;
1: + unsigned int init_count;
1: + const struct pll_params_table *table;
1: + const struct pll_mult_range *range;
1: + u8 flags;
1: };
1:
1: struct clk_regmap_gate_data {
1: - unsigned int offset;
1: - u8 bit_idx;
1: - u8 flags;
1: + unsigned int offset;
1: + u8 bit_idx;
1: + u8 flags;
1: };
1:
1: struct clk_regmap_div_data {
1: - unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u8 flags;
1: - const struct clk_div_table *table;
1: + unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 flags;
1: + const struct clk_div_table *table;
1: };
1:
1: struct clk_regmap_mux_data {
1: - unsigned int offset;
1: - u32 *table;
1: - u32 mask;
1: - u8 shift;
1: - u8 flags;
1: + unsigned int offset;
1: + u32 *table;
1: + u32 mask;
1: + u8 shift;
1: + u8 flags;
1: };
1:
1: struct meson_vid_pll_div_data {
1: - struct parm val;
1: - struct parm sel;
1: + struct parm val;
1: + struct parm sel;
1: };
1:
1: struct vid_pll_div {
1: - unsigned int shift_val;
1: - unsigned int shift_sel;
1: - unsigned int divider;
1: - unsigned int multiplier;
1: + unsigned int shift_val;
1: + unsigned int shift_sel;
1: + unsigned int divider;
1: + unsigned int multiplier;
1: };
1:
1: struct g12a_cpu_clk_postmux_nb_data {
1: - struct notifier_block nb;
1: - struct clk_hw *xtal;
1: - struct clk_hw *cpu_clk_dyn;
1: - struct clk_hw *cpu_clk_postmux0;
1: - struct clk_hw *cpu_clk_postmux1;
1: - struct clk_hw *cpu_clk_premux1;
1: + struct notifier_block nb;
1: + struct clk_hw *xtal;
1: + struct clk_hw *cpu_clk_dyn;
1: + struct clk_hw *cpu_clk_postmux0;
1: + struct clk_hw *cpu_clk_postmux1;
1: + struct clk_hw *cpu_clk_premux1;
1: };
1:
1: struct g12a_sys_pll_nb_data {
1: - struct notifier_block nb;
1: - struct clk_hw *sys_pll;
1: - struct clk_hw *cpu_clk;
1: - struct clk_hw *cpu_clk_dyn;
1: + struct notifier_block nb;
1: + struct clk_hw *sys_pll;
1: + struct clk_hw *cpu_clk;
1: + struct clk_hw *cpu_clk_dyn;
1: };
1:
1: struct meson_g12a_data {
1: - const struct meson_eeclkc_data eeclkc_data;
1: - int (*dvfs_setup)(struct platform_device *);
1: + const struct meson_eeclkc_data eeclkc_data;
1: + int (*dvfs_setup)(struct platform_device *);
1: };
1:
1: struct tbg_def {
1: - char *name;
1: - u32 refdiv_offset;
1: - u32 fbdiv_offset;
1: - u32 vcodiv_reg;
1: - u32 vcodiv_offset;
1: + char *name;
1: + u32 refdiv_offset;
1: + u32 fbdiv_offset;
1: + u32 vcodiv_reg;
1: + u32 vcodiv_offset;
1: };
1:
1: struct clk_periph_driver_data {
1: - struct clk_hw_onecell_data *hw_data;
1: - spinlock_t lock;
1: - void *reg;
1: - u32 tbg_sel;
1: - u32 div_sel0;
1: - u32 div_sel1;
1: - u32 div_sel2;
1: - u32 clk_sel;
1: - u32 clk_dis;
1: + struct clk_hw_onecell_data *hw_data;
1: + spinlock_t lock;
1: + void *reg;
1: + u32 tbg_sel;
1: + u32 div_sel0;
1: + u32 div_sel1;
1: + u32 div_sel2;
1: + u32 clk_sel;
1: + u32 clk_dis;
1: };
1:
1: struct clk_double_div {
1: - struct clk_hw hw;
1: - void *reg1;
1: - u8 shift1;
1: - void *reg2;
1: - u8 shift2;
1: + struct clk_hw hw;
1: + void *reg1;
1: + u8 shift1;
1: + void *reg2;
1: + u8 shift2;
1: };
1:
1: struct clk_pm_cpu {
1: - struct clk_hw hw;
1: - void *reg_mux;
1: - u8 shift_mux;
1: - u32 mask_mux;
1: - void *reg_div;
1: - u8 shift_div;
1: - struct regmap *nb_pm_base;
1: + struct clk_hw hw;
1: + void *reg_mux;
1: + u8 shift_mux;
1: + u32 mask_mux;
1: + void *reg_div;
1: + u8 shift_div;
1: + struct regmap *nb_pm_base;
1: };
1:
1: struct clk_periph_data {
1: - const char *name;
1: - const char * const *parent_names;
1: - int num_parents;
1: - struct clk_hw *mux_hw;
1: - struct clk_hw *rate_hw;
1: - struct clk_hw *gate_hw;
1: - struct clk_hw *muxrate_hw;
1: - bool is_double_div;
1: + const char *name;
1: + const char *const *parent_names;
1: + int num_parents;
1: + struct clk_hw *mux_hw;
1: + struct clk_hw *rate_hw;
1: + struct clk_hw *gate_hw;
1: + struct clk_hw *muxrate_hw;
1: + bool is_double_div;
1: };
1:
1: struct cpu_dfs_regs {
1: - unsigned int divider_reg;
1: - unsigned int force_reg;
1: - unsigned int ratio_reg;
1: - unsigned int ratio_state_reg;
1: - unsigned int divider_mask;
1: - unsigned int cluster_offset;
1: - unsigned int force_mask;
1: - int divider_offset;
1: - int divider_ratio;
1: - int ratio_offset;
1: - int ratio_state_offset;
1: - int ratio_state_cluster_offset;
1: + unsigned int divider_reg;
1: + unsigned int force_reg;
1: + unsigned int ratio_reg;
1: + unsigned int ratio_state_reg;
1: + unsigned int divider_mask;
1: + unsigned int cluster_offset;
1: + unsigned int force_mask;
1: + int divider_offset;
1: + int divider_ratio;
1: + int ratio_offset;
1: + int ratio_state_offset;
1: + int ratio_state_cluster_offset;
1: };
1:
1: struct ap_cpu_clk {
1: - unsigned int cluster;
1: - const char *clk_name;
1: - struct device *dev;
1: - struct clk_hw hw;
1: - struct regmap *pll_cr_base;
1: - const struct cpu_dfs_regs *pll_regs;
1: + unsigned int cluster;
1: + const char *clk_name;
1: + struct device *dev;
1: + struct clk_hw hw;
1: + struct regmap *pll_cr_base;
1: + const struct cpu_dfs_regs *pll_regs;
1: };
1:
1: enum {
1: - CP110_CLK_TYPE_CORE = 0,
1: - CP110_CLK_TYPE_GATABLE = 1,
1: + CP110_CLK_TYPE_CORE = 0,
1: + CP110_CLK_TYPE_GATABLE = 1,
1: };
1:
1: struct cp110_gate_clk {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - u8 bit_idx;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u8 bit_idx;
1: };
1:
1: struct clk_regmap___2;
1: @@ -72751,33 +73750,33 @@ struct qcom_reset_map;
1: struct gdsc;
1:
1: struct qcom_cc_desc {
1: - const struct regmap_config *config;
1: - struct clk_regmap___2 **clks;
1: - size_t num_clks;
1: - const struct qcom_reset_map *resets;
1: - size_t num_resets;
1: - struct gdsc **gdscs;
1: - size_t num_gdscs;
1: - struct clk_hw **clk_hws;
1: - size_t num_clk_hws;
1: + const struct regmap_config *config;
1: + struct clk_regmap___2 **clks;
1: + size_t num_clks;
1: + const struct qcom_reset_map *resets;
1: + size_t num_resets;
1: + struct gdsc **gdscs;
1: + size_t num_gdscs;
1: + struct clk_hw **clk_hws;
1: + size_t num_clk_hws;
1: };
1:
1: struct clk_regmap___2 {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - unsigned int enable_reg;
1: - unsigned int enable_mask;
1: - bool enable_is_inverted;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + unsigned int enable_reg;
1: + unsigned int enable_mask;
1: + bool enable_is_inverted;
1: };
1:
1: struct qcom_reset_map {
1: - unsigned int reg;
1: - u8 bit;
1: + unsigned int reg;
1: + u8 bit;
1: };
1:
1: enum gpd_status {
1: - GENPD_STATE_ON = 0,
1: - GENPD_STATE_OFF = 1,
1: + GENPD_STATE_ON = 0,
1: + GENPD_STATE_OFF = 1,
1: };
1:
1: struct opp_table;
1: @@ -72785,8 +73784,8 @@ struct opp_table;
1: struct dev_pm_opp;
1:
1: struct gpd_dev_ops {
1: - int (*start)(struct device *);
1: - int (*stop)(struct device *);
1: + int (*start)(struct device *);
1: + int (*stop)(struct device *);
1: };
1:
1: struct dev_power_governor;
1: @@ -72796,1392 +73795,1394 @@ struct genpd_power_state;
1: struct genpd_lock_ops;
1:
1: struct generic_pm_domain {
1: - struct device dev;
1: - struct dev_pm_domain domain;
1: - struct list_head gpd_list_node;
1: - struct list_head parent_links;
1: - struct list_head child_links;
1: - struct list_head dev_list;
1: - struct dev_power_governor *gov;
1: - struct work_struct power_off_work;
1: - struct fwnode_handle *provider;
1: - bool has_provider;
1: - const char *name;
1: - atomic_t sd_count;
1: - enum gpd_status status;
1: - unsigned int device_count;
1: - unsigned int suspended_count;
1: - unsigned int prepared_count;
1: - unsigned int performance_state;
1: - cpumask_var_t cpus;
1: - int (*power_off)(struct generic_pm_domain *);
1: - int (*power_on)(struct generic_pm_domain *);
1: - struct raw_notifier_head power_notifiers;
1: - struct opp_table *opp_table;
1: - unsigned int (*opp_to_performance_state)(struct generic_pm_domain *, struct dev_pm_opp *);
1: - int (*set_performance_state)(struct generic_pm_domain *, unsigned int);
1: - struct gpd_dev_ops dev_ops;
1: - s64 max_off_time_ns;
1: - bool max_off_time_changed;
1: - bool cached_power_down_ok;
1: - bool cached_power_down_state_idx;
1: - int (*attach_dev)(struct generic_pm_domain *, struct device *);
1: - void (*detach_dev)(struct generic_pm_domain *, struct device *);
1: - unsigned int flags;
1: - struct genpd_power_state *states;
1: - void (*free_states)(struct genpd_power_state *, unsigned int);
1: - unsigned int state_count;
1: - unsigned int state_idx;
1: - ktime_t on_time;
1: - ktime_t accounting_time;
1: - const struct genpd_lock_ops *lock_ops;
1: - union {
1: - struct mutex mlock;
1: - struct {
1: - spinlock_t slock;
1: - long unsigned int lock_flags;
1: - };
1: - };
1: + struct device dev;
1: + struct dev_pm_domain domain;
1: + struct list_head gpd_list_node;
1: + struct list_head parent_links;
1: + struct list_head child_links;
1: + struct list_head dev_list;
1: + struct dev_power_governor *gov;
1: + struct work_struct power_off_work;
1: + struct fwnode_handle *provider;
1: + bool has_provider;
1: + const char *name;
1: + atomic_t sd_count;
1: + enum gpd_status status;
1: + unsigned int device_count;
1: + unsigned int suspended_count;
1: + unsigned int prepared_count;
1: + unsigned int performance_state;
1: + cpumask_var_t cpus;
1: + int (*power_off)(struct generic_pm_domain *);
1: + int (*power_on)(struct generic_pm_domain *);
1: + struct raw_notifier_head power_notifiers;
1: + struct opp_table *opp_table;
1: + unsigned int (*opp_to_performance_state)(struct generic_pm_domain *,
1: + struct dev_pm_opp *);
1: + int (*set_performance_state)(struct generic_pm_domain *, unsigned int);
1: + struct gpd_dev_ops dev_ops;
1: + s64 max_off_time_ns;
1: + bool max_off_time_changed;
1: + bool cached_power_down_ok;
1: + bool cached_power_down_state_idx;
1: + int (*attach_dev)(struct generic_pm_domain *, struct device *);
1: + void (*detach_dev)(struct generic_pm_domain *, struct device *);
1: + unsigned int flags;
1: + struct genpd_power_state *states;
1: + void (*free_states)(struct genpd_power_state *, unsigned int);
1: + unsigned int state_count;
1: + unsigned int state_idx;
1: + ktime_t on_time;
1: + ktime_t accounting_time;
1: + const struct genpd_lock_ops *lock_ops;
1: + union {
1: + struct mutex mlock;
1: + struct {
1: + spinlock_t slock;
1: + long unsigned int lock_flags;
1: + };
1: + };
1: };
1:
1: struct gdsc {
1: - struct generic_pm_domain pd;
1: - struct generic_pm_domain *parent;
1: - struct regmap *regmap;
1: - unsigned int gdscr;
1: - unsigned int gds_hw_ctrl;
1: - unsigned int clamp_io_ctrl;
1: - unsigned int *cxcs;
1: - unsigned int cxc_count;
1: - const u8 pwrsts;
1: - const u8 flags;
1: - struct reset_controller_dev *rcdev;
1: - unsigned int *resets;
1: - unsigned int reset_count;
1: - const char *supply;
1: - struct regulator *rsupply;
1: + struct generic_pm_domain pd;
1: + struct generic_pm_domain *parent;
1: + struct regmap *regmap;
1: + unsigned int gdscr;
1: + unsigned int gds_hw_ctrl;
1: + unsigned int clamp_io_ctrl;
1: + unsigned int *cxcs;
1: + unsigned int cxc_count;
1: + const u8 pwrsts;
1: + const u8 flags;
1: + struct reset_controller_dev *rcdev;
1: + unsigned int *resets;
1: + unsigned int reset_count;
1: + const char *supply;
1: + struct regulator *rsupply;
1: };
1:
1: struct parent_map {
1: - u8 src;
1: - u8 cfg;
1: + u8 src;
1: + u8 cfg;
1: };
1:
1: struct freq_tbl {
1: - long unsigned int freq;
1: - u8 src;
1: - u8 pre_div;
1: - u16 m;
1: - u16 n;
1: + long unsigned int freq;
1: + u8 src;
1: + u8 pre_div;
1: + u16 m;
1: + u16 n;
1: };
1:
1: struct qcom_reset_controller {
1: - const struct qcom_reset_map *reset_map;
1: - struct regmap *regmap;
1: - struct reset_controller_dev rcdev;
1: + const struct qcom_reset_map *reset_map;
1: + struct regmap *regmap;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct dev_power_governor {
1: - bool (*power_down_ok)(struct dev_pm_domain *);
1: - bool (*suspend_ok)(struct device *);
1: + bool (*power_down_ok)(struct dev_pm_domain *);
1: + bool (*suspend_ok)(struct device *);
1: };
1:
1: struct genpd_power_state {
1: - s64 power_off_latency_ns;
1: - s64 power_on_latency_ns;
1: - s64 residency_ns;
1: - u64 usage;
1: - u64 rejected;
1: - struct fwnode_handle *fwnode;
1: - ktime_t idle_time;
1: - void *data;
1: + s64 power_off_latency_ns;
1: + s64 power_on_latency_ns;
1: + s64 residency_ns;
1: + u64 usage;
1: + u64 rejected;
1: + struct fwnode_handle *fwnode;
1: + ktime_t idle_time;
1: + void *data;
1: };
1:
1: struct genpd_lock_ops {
1: - void (*lock)(struct generic_pm_domain *);
1: - void (*lock_nested)(struct generic_pm_domain *, int);
1: - int (*lock_interruptible)(struct generic_pm_domain *);
1: - void (*unlock)(struct generic_pm_domain *);
1: + void (*lock)(struct generic_pm_domain *);
1: + void (*lock_nested)(struct generic_pm_domain *, int);
1: + int (*lock_interruptible)(struct generic_pm_domain *);
1: + void (*unlock)(struct generic_pm_domain *);
1: };
1:
1: struct gdsc_desc {
1: - struct device *dev;
1: - struct gdsc **scs;
1: - size_t num;
1: + struct device *dev;
1: + struct gdsc **scs;
1: + size_t num;
1: };
1:
1: struct qcom_cc {
1: - struct qcom_reset_controller reset;
1: - struct clk_regmap___2 **rclks;
1: - size_t num_rclks;
1: -};
1: -
1: -enum {
1: - CLK_ALPHA_PLL_TYPE_DEFAULT = 0,
1: - CLK_ALPHA_PLL_TYPE_HUAYRA = 1,
1: - CLK_ALPHA_PLL_TYPE_BRAMMO = 2,
1: - CLK_ALPHA_PLL_TYPE_FABIA = 3,
1: - CLK_ALPHA_PLL_TYPE_TRION = 4,
1: - CLK_ALPHA_PLL_TYPE_LUCID = 4,
1: - CLK_ALPHA_PLL_TYPE_MAX = 5,
1: -};
1: -
1: -enum {
1: - PLL_OFF_L_VAL = 0,
1: - PLL_OFF_CAL_L_VAL = 1,
1: - PLL_OFF_ALPHA_VAL = 2,
1: - PLL_OFF_ALPHA_VAL_U = 3,
1: - PLL_OFF_USER_CTL = 4,
1: - PLL_OFF_USER_CTL_U = 5,
1: - PLL_OFF_USER_CTL_U1 = 6,
1: - PLL_OFF_CONFIG_CTL = 7,
1: - PLL_OFF_CONFIG_CTL_U = 8,
1: - PLL_OFF_CONFIG_CTL_U1 = 9,
1: - PLL_OFF_TEST_CTL = 10,
1: - PLL_OFF_TEST_CTL_U = 11,
1: - PLL_OFF_TEST_CTL_U1 = 12,
1: - PLL_OFF_STATUS = 13,
1: - PLL_OFF_OPMODE = 14,
1: - PLL_OFF_FRAC = 15,
1: - PLL_OFF_CAL_VAL = 16,
1: - PLL_OFF_MAX_REGS = 17,
1: + struct qcom_reset_controller reset;
1: + struct clk_regmap___2 **rclks;
1: + size_t num_rclks;
1: +};
1: +
1: +enum {
1: + CLK_ALPHA_PLL_TYPE_DEFAULT = 0,
1: + CLK_ALPHA_PLL_TYPE_HUAYRA = 1,
1: + CLK_ALPHA_PLL_TYPE_BRAMMO = 2,
1: + CLK_ALPHA_PLL_TYPE_FABIA = 3,
1: + CLK_ALPHA_PLL_TYPE_TRION = 4,
1: + CLK_ALPHA_PLL_TYPE_LUCID = 4,
1: + CLK_ALPHA_PLL_TYPE_MAX = 5,
1: +};
1: +
1: +enum {
1: + PLL_OFF_L_VAL = 0,
1: + PLL_OFF_CAL_L_VAL = 1,
1: + PLL_OFF_ALPHA_VAL = 2,
1: + PLL_OFF_ALPHA_VAL_U = 3,
1: + PLL_OFF_USER_CTL = 4,
1: + PLL_OFF_USER_CTL_U = 5,
1: + PLL_OFF_USER_CTL_U1 = 6,
1: + PLL_OFF_CONFIG_CTL = 7,
1: + PLL_OFF_CONFIG_CTL_U = 8,
1: + PLL_OFF_CONFIG_CTL_U1 = 9,
1: + PLL_OFF_TEST_CTL = 10,
1: + PLL_OFF_TEST_CTL_U = 11,
1: + PLL_OFF_TEST_CTL_U1 = 12,
1: + PLL_OFF_STATUS = 13,
1: + PLL_OFF_OPMODE = 14,
1: + PLL_OFF_FRAC = 15,
1: + PLL_OFF_CAL_VAL = 16,
1: + PLL_OFF_MAX_REGS = 17,
1: };
1:
1: struct pll_vco {
1: - long unsigned int min_freq;
1: - long unsigned int max_freq;
1: - u32 val;
1: + long unsigned int min_freq;
1: + long unsigned int max_freq;
1: + u32 val;
1: };
1:
1: struct clk_alpha_pll {
1: - u32 offset;
1: - const u8 *regs;
1: - const struct pll_vco *vco_table;
1: - size_t num_vco;
1: - u8 flags;
1: - struct clk_regmap___2 clkr;
1: + u32 offset;
1: + const u8 *regs;
1: + const struct pll_vco *vco_table;
1: + size_t num_vco;
1: + u8 flags;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct clk_alpha_pll_postdiv {
1: - u32 offset;
1: - u8 width;
1: - const u8 *regs;
1: - struct clk_regmap___2 clkr;
1: - int post_div_shift;
1: - const struct clk_div_table *post_div_table;
1: - size_t num_post_div;
1: + u32 offset;
1: + u8 width;
1: + const u8 *regs;
1: + struct clk_regmap___2 clkr;
1: + int post_div_shift;
1: + const struct clk_div_table *post_div_table;
1: + size_t num_post_div;
1: };
1:
1: struct alpha_pll_config {
1: - u32 l;
1: - u32 alpha;
1: - u32 alpha_hi;
1: - u32 config_ctl_val;
1: - u32 config_ctl_hi_val;
1: - u32 config_ctl_hi1_val;
1: - u32 user_ctl_val;
1: - u32 user_ctl_hi_val;
1: - u32 user_ctl_hi1_val;
1: - u32 test_ctl_val;
1: - u32 test_ctl_hi_val;
1: - u32 test_ctl_hi1_val;
1: - u32 main_output_mask;
1: - u32 aux_output_mask;
1: - u32 aux2_output_mask;
1: - u32 early_output_mask;
1: - u32 alpha_en_mask;
1: - u32 alpha_mode_mask;
1: - u32 pre_div_val;
1: - u32 pre_div_mask;
1: - u32 post_div_val;
1: - u32 post_div_mask;
1: - u32 vco_val;
1: - u32 vco_mask;
1: + u32 l;
1: + u32 alpha;
1: + u32 alpha_hi;
1: + u32 config_ctl_val;
1: + u32 config_ctl_hi_val;
1: + u32 config_ctl_hi1_val;
1: + u32 user_ctl_val;
1: + u32 user_ctl_hi_val;
1: + u32 user_ctl_hi1_val;
1: + u32 test_ctl_val;
1: + u32 test_ctl_hi_val;
1: + u32 test_ctl_hi1_val;
1: + u32 main_output_mask;
1: + u32 aux_output_mask;
1: + u32 aux2_output_mask;
1: + u32 early_output_mask;
1: + u32 alpha_en_mask;
1: + u32 alpha_mode_mask;
1: + u32 pre_div_val;
1: + u32 pre_div_mask;
1: + u32 post_div_val;
1: + u32 post_div_mask;
1: + u32 vco_val;
1: + u32 vco_mask;
1: };
1:
1: struct pll_freq_tbl {
1: - long unsigned int freq;
1: - u16 l;
1: - u16 m;
1: - u16 n;
1: - u32 ibits;
1: + long unsigned int freq;
1: + u16 l;
1: + u16 m;
1: + u16 n;
1: + u32 ibits;
1: };
1:
1: struct clk_pll {
1: - u32 l_reg;
1: - u32 m_reg;
1: - u32 n_reg;
1: - u32 config_reg;
1: - u32 mode_reg;
1: - u32 status_reg;
1: - u8 status_bit;
1: - u8 post_div_width;
1: - u8 post_div_shift;
1: - const struct pll_freq_tbl *freq_tbl;
1: - struct clk_regmap___2 clkr;
1: + u32 l_reg;
1: + u32 m_reg;
1: + u32 n_reg;
1: + u32 config_reg;
1: + u32 mode_reg;
1: + u32 status_reg;
1: + u8 status_bit;
1: + u8 post_div_width;
1: + u8 post_div_shift;
1: + const struct pll_freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct pll_config {
1: - u16 l;
1: - u32 m;
1: - u32 n;
1: - u32 vco_val;
1: - u32 vco_mask;
1: - u32 pre_div_val;
1: - u32 pre_div_mask;
1: - u32 post_div_val;
1: - u32 post_div_mask;
1: - u32 mn_ena_mask;
1: - u32 main_output_mask;
1: - u32 aux_output_mask;
1: + u16 l;
1: + u32 m;
1: + u32 n;
1: + u32 vco_val;
1: + u32 vco_mask;
1: + u32 pre_div_val;
1: + u32 pre_div_mask;
1: + u32 post_div_val;
1: + u32 post_div_mask;
1: + u32 mn_ena_mask;
1: + u32 main_output_mask;
1: + u32 aux_output_mask;
1: };
1:
1: struct mn {
1: - u8 mnctr_en_bit;
1: - u8 mnctr_reset_bit;
1: - u8 mnctr_mode_shift;
1: - u8 n_val_shift;
1: - u8 m_val_shift;
1: - u8 width;
1: - bool reset_in_cc;
1: + u8 mnctr_en_bit;
1: + u8 mnctr_reset_bit;
1: + u8 mnctr_mode_shift;
1: + u8 n_val_shift;
1: + u8 m_val_shift;
1: + u8 width;
1: + bool reset_in_cc;
1: };
1:
1: struct pre_div {
1: - u8 pre_div_shift;
1: - u8 pre_div_width;
1: + u8 pre_div_shift;
1: + u8 pre_div_width;
1: };
1:
1: struct src_sel {
1: - u8 src_sel_shift;
1: - const struct parent_map *parent_map;
1: + u8 src_sel_shift;
1: + const struct parent_map *parent_map;
1: };
1:
1: struct clk_rcg {
1: - u32 ns_reg;
1: - u32 md_reg;
1: - struct mn mn;
1: - struct pre_div p;
1: - struct src_sel s;
1: - const struct freq_tbl *freq_tbl;
1: - struct clk_regmap___2 clkr;
1: + u32 ns_reg;
1: + u32 md_reg;
1: + struct mn mn;
1: + struct pre_div p;
1: + struct src_sel s;
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct clk_dyn_rcg {
1: - u32 ns_reg[2];
1: - u32 md_reg[2];
1: - u32 bank_reg;
1: - u8 mux_sel_bit;
1: - struct mn mn[2];
1: - struct pre_div p[2];
1: - struct src_sel s[2];
1: - const struct freq_tbl *freq_tbl;
1: - struct clk_regmap___2 clkr;
1: + u32 ns_reg[2];
1: + u32 md_reg[2];
1: + u32 bank_reg;
1: + u8 mux_sel_bit;
1: + struct mn mn[2];
1: + struct pre_div p[2];
1: + struct src_sel s[2];
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct frac_entry {
1: - int num;
1: - int den;
1: + int num;
1: + int den;
1: };
1:
1: struct clk_rcg2 {
1: - u32 cmd_rcgr;
1: - u8 mnd_width;
1: - u8 hid_width;
1: - u8 safe_src_index;
1: - const struct parent_map *parent_map;
1: - const struct freq_tbl *freq_tbl;
1: - struct clk_regmap___2 clkr;
1: - u8 cfg_off;
1: + u32 cmd_rcgr;
1: + u8 mnd_width;
1: + u8 hid_width;
1: + u8 safe_src_index;
1: + const struct parent_map *parent_map;
1: + const struct freq_tbl *freq_tbl;
1: + struct clk_regmap___2 clkr;
1: + u8 cfg_off;
1: };
1:
1: struct clk_rcg_dfs_data {
1: - struct clk_rcg2 *rcg;
1: - struct clk_init_data *init;
1: + struct clk_rcg2 *rcg;
1: + struct clk_init_data *init;
1: };
1:
1: enum freq_policy {
1: - FLOOR = 0,
1: - CEIL = 1,
1: + FLOOR = 0,
1: + CEIL = 1,
1: };
1:
1: struct clk_branch {
1: - u32 hwcg_reg;
1: - u32 halt_reg;
1: - u8 hwcg_bit;
1: - u8 halt_bit;
1: - u8 halt_check;
1: - struct clk_regmap___2 clkr;
1: + u32 hwcg_reg;
1: + u32 halt_reg;
1: + u8 hwcg_bit;
1: + u8 halt_bit;
1: + u8 halt_check;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct clk_regmap_div {
1: - u32 reg;
1: - u32 shift;
1: - u32 width;
1: - struct clk_regmap___2 clkr;
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct clk_regmap_mux {
1: - u32 reg;
1: - u32 shift;
1: - u32 width;
1: - const struct parent_map *parent_map;
1: - struct clk_regmap___2 clkr;
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + const struct parent_map *parent_map;
1: + struct clk_regmap___2 clkr;
1: };
1:
1: struct clk_regmap_mux_div {
1: - u32 reg_offset;
1: - u32 hid_width;
1: - u32 hid_shift;
1: - u32 src_width;
1: - u32 src_shift;
1: - u32 div;
1: - u32 src;
1: - const u32 *parent_map;
1: - struct clk_regmap___2 clkr;
1: - struct clk *pclk;
1: - struct notifier_block clk_nb;
1: + u32 reg_offset;
1: + u32 hid_width;
1: + u32 hid_shift;
1: + u32 src_width;
1: + u32 src_shift;
1: + u32 div;
1: + u32 src;
1: + const u32 *parent_map;
1: + struct clk_regmap___2 clkr;
1: + struct clk *pclk;
1: + struct notifier_block clk_nb;
1: };
1:
1: struct hfpll_data {
1: - u32 mode_reg;
1: - u32 l_reg;
1: - u32 m_reg;
1: - u32 n_reg;
1: - u32 user_reg;
1: - u32 droop_reg;
1: - u32 config_reg;
1: - u32 status_reg;
1: - u8 lock_bit;
1: - u32 droop_val;
1: - u32 config_val;
1: - u32 user_val;
1: - u32 user_vco_mask;
1: - long unsigned int low_vco_max_rate;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: + u32 mode_reg;
1: + u32 l_reg;
1: + u32 m_reg;
1: + u32 n_reg;
1: + u32 user_reg;
1: + u32 droop_reg;
1: + u32 config_reg;
1: + u32 status_reg;
1: + u8 lock_bit;
1: + u32 droop_val;
1: + u32 config_val;
1: + u32 user_val;
1: + u32 user_vco_mask;
1: + long unsigned int low_vco_max_rate;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: };
1:
1: struct clk_hfpll {
1: - const struct hfpll_data *d;
1: - int init_done;
1: - struct clk_regmap___2 clkr;
1: - spinlock_t lock;
1: + const struct hfpll_data *d;
1: + int init_done;
1: + struct clk_regmap___2 clkr;
1: + spinlock_t lock;
1: };
1:
1: -typedef struct generic_pm_domain * (*genpd_xlate_t)(struct of_phandle_args *, void *);
1: +typedef struct generic_pm_domain *(*genpd_xlate_t)(struct of_phandle_args *,
1: + void *);
1:
1: struct genpd_onecell_data {
1: - struct generic_pm_domain **domains;
1: - unsigned int num_domains;
1: - genpd_xlate_t xlate;
1: + struct generic_pm_domain **domains;
1: + unsigned int num_domains;
1: + genpd_xlate_t xlate;
1: };
1:
1: enum gdsc_status {
1: - GDSC_OFF = 0,
1: - GDSC_ON = 1,
1: -};
1: -
1: -enum {
1: - P_XO = 0,
1: - P_GPLL0 = 1,
1: - P_GPLL0_AUX = 2,
1: - P_BIMC = 3,
1: - P_GPLL1 = 4,
1: - P_GPLL1_AUX = 5,
1: - P_GPLL2 = 6,
1: - P_GPLL2_AUX = 7,
1: - P_SLEEP_CLK = 8,
1: - P_DSI0_PHYPLL_BYTE = 9,
1: - P_DSI0_PHYPLL_DSI = 10,
1: - P_EXT_PRI_I2S = 11,
1: - P_EXT_SEC_I2S = 12,
1: - P_EXT_MCLK = 13,
1: -};
1: -
1: -enum {
1: - P_XO___2 = 0,
1: - P_GPLL0___2 = 1,
1: - P_GPLL4 = 2,
1: -};
1: -
1: -enum {
1: - P_XO___3 = 0,
1: - P_GPLL0___3 = 1,
1: - P_GPLL2___2 = 2,
1: - P_GPLL3 = 3,
1: - P_GPLL1___2 = 4,
1: - P_GPLL2_EARLY = 5,
1: - P_GPLL0_EARLY_DIV = 6,
1: - P_SLEEP_CLK___2 = 7,
1: - P_GPLL4___2 = 8,
1: - P_AUD_REF_CLK = 9,
1: - P_GPLL1_EARLY_DIV = 10,
1: -};
1: -
1: -enum {
1: - P_XO___4 = 0,
1: - P_MMPLL0 = 1,
1: - P_GPLL0___4 = 2,
1: - P_GPLL0_DIV = 3,
1: - P_MMPLL1 = 4,
1: - P_MMPLL9 = 5,
1: - P_MMPLL2 = 6,
1: - P_MMPLL8 = 7,
1: - P_MMPLL3 = 8,
1: - P_DSI0PLL = 9,
1: - P_DSI1PLL = 10,
1: - P_MMPLL5 = 11,
1: - P_HDMIPLL = 12,
1: - P_DSI0PLL_BYTE = 13,
1: - P_DSI1PLL_BYTE = 14,
1: - P_MMPLL4 = 15,
1: + GDSC_OFF = 0,
1: + GDSC_ON = 1,
1: +};
1: +
1: +enum {
1: + P_XO = 0,
1: + P_GPLL0 = 1,
1: + P_GPLL0_AUX = 2,
1: + P_BIMC = 3,
1: + P_GPLL1 = 4,
1: + P_GPLL1_AUX = 5,
1: + P_GPLL2 = 6,
1: + P_GPLL2_AUX = 7,
1: + P_SLEEP_CLK = 8,
1: + P_DSI0_PHYPLL_BYTE = 9,
1: + P_DSI0_PHYPLL_DSI = 10,
1: + P_EXT_PRI_I2S = 11,
1: + P_EXT_SEC_I2S = 12,
1: + P_EXT_MCLK = 13,
1: +};
1: +
1: +enum {
1: + P_XO___2 = 0,
1: + P_GPLL0___2 = 1,
1: + P_GPLL4 = 2,
1: +};
1: +
1: +enum {
1: + P_XO___3 = 0,
1: + P_GPLL0___3 = 1,
1: + P_GPLL2___2 = 2,
1: + P_GPLL3 = 3,
1: + P_GPLL1___2 = 4,
1: + P_GPLL2_EARLY = 5,
1: + P_GPLL0_EARLY_DIV = 6,
1: + P_SLEEP_CLK___2 = 7,
1: + P_GPLL4___2 = 8,
1: + P_AUD_REF_CLK = 9,
1: + P_GPLL1_EARLY_DIV = 10,
1: +};
1: +
1: +enum {
1: + P_XO___4 = 0,
1: + P_MMPLL0 = 1,
1: + P_GPLL0___4 = 2,
1: + P_GPLL0_DIV = 3,
1: + P_MMPLL1 = 4,
1: + P_MMPLL9 = 5,
1: + P_MMPLL2 = 6,
1: + P_MMPLL8 = 7,
1: + P_MMPLL3 = 8,
1: + P_DSI0PLL = 9,
1: + P_DSI1PLL = 10,
1: + P_MMPLL5 = 11,
1: + P_HDMIPLL = 12,
1: + P_DSI0PLL_BYTE = 13,
1: + P_DSI1PLL_BYTE = 14,
1: + P_MMPLL4 = 15,
1: };
1:
1: enum rockchip_pll_type {
1: - pll_rk3036 = 0,
1: - pll_rk3066 = 1,
1: - pll_rk3328 = 2,
1: - pll_rk3399 = 3,
1: + pll_rk3036 = 0,
1: + pll_rk3066 = 1,
1: + pll_rk3328 = 2,
1: + pll_rk3399 = 3,
1: };
1:
1: struct rockchip_clk_provider {
1: - void *reg_base;
1: - struct clk_onecell_data clk_data;
1: - struct device_node *cru_node;
1: - struct regmap *grf;
1: - spinlock_t lock;
1: + void *reg_base;
1: + struct clk_onecell_data clk_data;
1: + struct device_node *cru_node;
1: + struct regmap *grf;
1: + spinlock_t lock;
1: };
1:
1: struct rockchip_pll_rate_table {
1: - long unsigned int rate;
1: - unsigned int nr;
1: - unsigned int nf;
1: - unsigned int no;
1: - unsigned int nb;
1: - unsigned int fbdiv;
1: - unsigned int postdiv1;
1: - unsigned int refdiv;
1: - unsigned int postdiv2;
1: - unsigned int dsmpd;
1: - unsigned int frac;
1: + long unsigned int rate;
1: + unsigned int nr;
1: + unsigned int nf;
1: + unsigned int no;
1: + unsigned int nb;
1: + unsigned int fbdiv;
1: + unsigned int postdiv1;
1: + unsigned int refdiv;
1: + unsigned int postdiv2;
1: + unsigned int dsmpd;
1: + unsigned int frac;
1: };
1:
1: struct rockchip_pll_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char * const *parent_names;
1: - u8 num_parents;
1: - long unsigned int flags;
1: - int con_offset;
1: - int mode_offset;
1: - int mode_shift;
1: - int lock_shift;
1: - enum rockchip_pll_type type;
1: - u8 pll_flags;
1: - struct rockchip_pll_rate_table *rate_table;
1: + unsigned int id;
1: + const char *name;
1: + const char *const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + int con_offset;
1: + int mode_offset;
1: + int mode_shift;
1: + int lock_shift;
1: + enum rockchip_pll_type type;
1: + u8 pll_flags;
1: + struct rockchip_pll_rate_table *rate_table;
1: };
1:
1: struct rockchip_cpuclk_clksel {
1: - int reg;
1: - u32 val;
1: + int reg;
1: + u32 val;
1: };
1:
1: struct rockchip_cpuclk_rate_table {
1: - long unsigned int prate;
1: - struct rockchip_cpuclk_clksel divs[2];
1: + long unsigned int prate;
1: + struct rockchip_cpuclk_clksel divs[2];
1: };
1:
1: struct rockchip_cpuclk_reg_data {
1: - int core_reg;
1: - u8 div_core_shift;
1: - u32 div_core_mask;
1: - u8 mux_core_alt;
1: - u8 mux_core_main;
1: - u8 mux_core_shift;
1: - u32 mux_core_mask;
1: + int core_reg;
1: + u8 div_core_shift;
1: + u32 div_core_mask;
1: + u8 mux_core_alt;
1: + u8 mux_core_main;
1: + u8 mux_core_shift;
1: + u32 mux_core_mask;
1: };
1:
1: enum rockchip_clk_branch_type {
1: - branch_composite = 0,
1: - branch_mux = 1,
1: - branch_muxgrf = 2,
1: - branch_divider = 3,
1: - branch_fraction_divider = 4,
1: - branch_gate = 5,
1: - branch_mmc = 6,
1: - branch_inverter = 7,
1: - branch_factor = 8,
1: - branch_ddrclk = 9,
1: - branch_half_divider = 10,
1: + branch_composite = 0,
1: + branch_mux = 1,
1: + branch_muxgrf = 2,
1: + branch_divider = 3,
1: + branch_fraction_divider = 4,
1: + branch_gate = 5,
1: + branch_mmc = 6,
1: + branch_inverter = 7,
1: + branch_factor = 8,
1: + branch_ddrclk = 9,
1: + branch_half_divider = 10,
1: };
1:
1: struct rockchip_clk_branch {
1: - unsigned int id;
1: - enum rockchip_clk_branch_type branch_type;
1: - const char *name;
1: - const char * const *parent_names;
1: - u8 num_parents;
1: - long unsigned int flags;
1: - int muxdiv_offset;
1: - u8 mux_shift;
1: - u8 mux_width;
1: - u8 mux_flags;
1: - int div_offset;
1: - u8 div_shift;
1: - u8 div_width;
1: - u8 div_flags;
1: - struct clk_div_table *div_table;
1: - int gate_offset;
1: - u8 gate_shift;
1: - u8 gate_flags;
1: - struct rockchip_clk_branch *child;
1: + unsigned int id;
1: + enum rockchip_clk_branch_type branch_type;
1: + const char *name;
1: + const char *const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + int muxdiv_offset;
1: + u8 mux_shift;
1: + u8 mux_width;
1: + u8 mux_flags;
1: + int div_offset;
1: + u8 div_shift;
1: + u8 div_width;
1: + u8 div_flags;
1: + struct clk_div_table *div_table;
1: + int gate_offset;
1: + u8 gate_shift;
1: + u8 gate_flags;
1: + struct rockchip_clk_branch *child;
1: };
1:
1: struct rockchip_clk_frac {
1: - struct notifier_block clk_nb;
1: - struct clk_fractional_divider div;
1: - struct clk_gate gate;
1: - struct clk_mux mux;
1: - const struct clk_ops *mux_ops;
1: - int mux_frac_idx;
1: - bool rate_change_remuxed;
1: - int rate_change_idx;
1: + struct notifier_block clk_nb;
1: + struct clk_fractional_divider div;
1: + struct clk_gate gate;
1: + struct clk_mux mux;
1: + const struct clk_ops *mux_ops;
1: + int mux_frac_idx;
1: + bool rate_change_remuxed;
1: + int rate_change_idx;
1: };
1:
1: struct rockchip_clk_pll {
1: - struct clk_hw hw;
1: - struct clk_mux pll_mux;
1: - const struct clk_ops *pll_mux_ops;
1: - struct notifier_block clk_nb;
1: - void *reg_base;
1: - int lock_offset;
1: - unsigned int lock_shift;
1: - enum rockchip_pll_type type;
1: - u8 flags;
1: - const struct rockchip_pll_rate_table *rate_table;
1: - unsigned int rate_count;
1: - spinlock_t *lock;
1: - struct rockchip_clk_provider *ctx;
1: + struct clk_hw hw;
1: + struct clk_mux pll_mux;
1: + const struct clk_ops *pll_mux_ops;
1: + struct notifier_block clk_nb;
1: + void *reg_base;
1: + int lock_offset;
1: + unsigned int lock_shift;
1: + enum rockchip_pll_type type;
1: + u8 flags;
1: + const struct rockchip_pll_rate_table *rate_table;
1: + unsigned int rate_count;
1: + spinlock_t *lock;
1: + struct rockchip_clk_provider *ctx;
1: };
1:
1: struct rockchip_cpuclk {
1: - struct clk_hw hw;
1: - struct clk_mux cpu_mux;
1: - const struct clk_ops *cpu_mux_ops;
1: - struct clk *alt_parent;
1: - void *reg_base;
1: - struct notifier_block clk_nb;
1: - unsigned int rate_count;
1: - struct rockchip_cpuclk_rate_table *rate_table;
1: - const struct rockchip_cpuclk_reg_data *reg_data;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + struct clk_mux cpu_mux;
1: + const struct clk_ops *cpu_mux_ops;
1: + struct clk *alt_parent;
1: + void *reg_base;
1: + struct notifier_block clk_nb;
1: + unsigned int rate_count;
1: + struct rockchip_cpuclk_rate_table *rate_table;
1: + const struct rockchip_cpuclk_reg_data *reg_data;
1: + spinlock_t *lock;
1: };
1:
1: struct rockchip_inv_clock {
1: - struct clk_hw hw;
1: - void *reg;
1: - int shift;
1: - int flags;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + int shift;
1: + int flags;
1: + spinlock_t *lock;
1: };
1:
1: struct rockchip_mmc_clock {
1: - struct clk_hw hw;
1: - void *reg;
1: - int id;
1: - int shift;
1: - int cached_phase;
1: - struct notifier_block clk_rate_change_nb;
1: + struct clk_hw hw;
1: + void *reg;
1: + int id;
1: + int shift;
1: + int cached_phase;
1: + struct notifier_block clk_rate_change_nb;
1: };
1:
1: struct rockchip_muxgrf_clock {
1: - struct clk_hw hw;
1: - struct regmap *regmap;
1: - u32 reg;
1: - u32 shift;
1: - u32 width;
1: - int flags;
1: + struct clk_hw hw;
1: + struct regmap *regmap;
1: + u32 reg;
1: + u32 shift;
1: + u32 width;
1: + int flags;
1: };
1:
1: struct rockchip_ddrclk {
1: - struct clk_hw hw;
1: - void *reg_base;
1: - int mux_offset;
1: - int mux_shift;
1: - int mux_width;
1: - int div_shift;
1: - int div_width;
1: - int ddr_flag;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg_base;
1: + int mux_offset;
1: + int mux_shift;
1: + int mux_width;
1: + int div_shift;
1: + int div_width;
1: + int ddr_flag;
1: + spinlock_t *lock;
1: };
1:
1: struct rockchip_softrst {
1: - struct reset_controller_dev rcdev;
1: - void *reg_base;
1: - int num_regs;
1: - int num_per_reg;
1: - u8 flags;
1: - spinlock_t lock;
1: + struct reset_controller_dev rcdev;
1: + void *reg_base;
1: + int num_regs;
1: + int num_per_reg;
1: + u8 flags;
1: + spinlock_t lock;
1: };
1:
1: enum px30_plls {
1: - apll = 0,
1: - dpll = 1,
1: - cpll = 2,
1: - npll = 3,
1: - apll_b_h = 4,
1: - apll_b_l = 5,
1: + apll = 0,
1: + dpll = 1,
1: + cpll = 2,
1: + npll = 3,
1: + apll_b_h = 4,
1: + apll_b_l = 5,
1: };
1:
1: enum px30_pmu_plls {
1: - gpll = 0,
1: + gpll = 0,
1: };
1:
1: enum rv1108_plls {
1: - apll___2 = 0,
1: - dpll___2 = 1,
1: - gpll___2 = 2,
1: + apll___2 = 0,
1: + dpll___2 = 1,
1: + gpll___2 = 2,
1: };
1:
1: enum rk3036_plls {
1: - apll___3 = 0,
1: - dpll___3 = 1,
1: - gpll___3 = 2,
1: + apll___3 = 0,
1: + dpll___3 = 1,
1: + gpll___3 = 2,
1: };
1:
1: enum rk3128_plls {
1: - apll___4 = 0,
1: - dpll___4 = 1,
1: - cpll___2 = 2,
1: - gpll___4 = 3,
1: + apll___4 = 0,
1: + dpll___4 = 1,
1: + cpll___2 = 2,
1: + gpll___4 = 3,
1: };
1:
1: enum rk3188_plls {
1: - apll___5 = 0,
1: - cpll___3 = 1,
1: - dpll___5 = 2,
1: - gpll___5 = 3,
1: + apll___5 = 0,
1: + cpll___3 = 1,
1: + dpll___5 = 2,
1: + gpll___5 = 3,
1: };
1:
1: enum rk3228_plls {
1: - apll___6 = 0,
1: - dpll___6 = 1,
1: - cpll___4 = 2,
1: - gpll___6 = 3,
1: + apll___6 = 0,
1: + dpll___6 = 1,
1: + cpll___4 = 2,
1: + gpll___6 = 3,
1: };
1:
1: enum rk3308_plls {
1: - apll___7 = 0,
1: - dpll___7 = 1,
1: - vpll0 = 2,
1: - vpll1 = 3,
1: + apll___7 = 0,
1: + dpll___7 = 1,
1: + vpll0 = 2,
1: + vpll1 = 3,
1: };
1:
1: enum rk3328_plls {
1: - apll___8 = 0,
1: - dpll___8 = 1,
1: - cpll___5 = 2,
1: - gpll___7 = 3,
1: - npll___2 = 4,
1: + apll___8 = 0,
1: + dpll___8 = 1,
1: + cpll___5 = 2,
1: + gpll___7 = 3,
1: + npll___2 = 4,
1: };
1:
1: enum rk3368_plls {
1: - apllb = 0,
1: - aplll = 1,
1: - dpll___9 = 2,
1: - cpll___6 = 3,
1: - gpll___8 = 4,
1: - npll___3 = 5,
1: + apllb = 0,
1: + aplll = 1,
1: + dpll___9 = 2,
1: + cpll___6 = 3,
1: + gpll___8 = 4,
1: + npll___3 = 5,
1: };
1:
1: enum rk3399_plls {
1: - lpll = 0,
1: - bpll = 1,
1: - dpll___10 = 2,
1: - cpll___7 = 3,
1: - gpll___9 = 4,
1: - npll___4 = 5,
1: - vpll = 6,
1: + lpll = 0,
1: + bpll = 1,
1: + dpll___10 = 2,
1: + cpll___7 = 3,
1: + gpll___9 = 4,
1: + npll___4 = 5,
1: + vpll = 6,
1: };
1:
1: enum rk3399_pmu_plls {
1: - ppll = 0,
1: + ppll = 0,
1: };
1:
1: struct clk_rk3399_inits {
1: - void (*inits)(struct device_node *);
1: + void (*inits)(struct device_node *);
1: };
1:
1: enum samsung_pll_type {
1: - pll_2126 = 0,
1: - pll_3000 = 1,
1: - pll_35xx = 2,
1: - pll_36xx = 3,
1: - pll_2550 = 4,
1: - pll_2650 = 5,
1: - pll_4500 = 6,
1: - pll_4502 = 7,
1: - pll_4508 = 8,
1: - pll_4600 = 9,
1: - pll_4650 = 10,
1: - pll_4650c = 11,
1: - pll_6552 = 12,
1: - pll_6552_s3c2416 = 13,
1: - pll_6553 = 14,
1: - pll_s3c2410_mpll = 15,
1: - pll_s3c2410_upll = 16,
1: - pll_s3c2440_mpll = 17,
1: - pll_2550x = 18,
1: - pll_2550xx = 19,
1: - pll_2650x = 20,
1: - pll_2650xx = 21,
1: - pll_1450x = 22,
1: - pll_1451x = 23,
1: - pll_1452x = 24,
1: - pll_1460x = 25,
1: + pll_2126 = 0,
1: + pll_3000 = 1,
1: + pll_35xx = 2,
1: + pll_36xx = 3,
1: + pll_2550 = 4,
1: + pll_2650 = 5,
1: + pll_4500 = 6,
1: + pll_4502 = 7,
1: + pll_4508 = 8,
1: + pll_4600 = 9,
1: + pll_4650 = 10,
1: + pll_4650c = 11,
1: + pll_6552 = 12,
1: + pll_6552_s3c2416 = 13,
1: + pll_6553 = 14,
1: + pll_s3c2410_mpll = 15,
1: + pll_s3c2410_upll = 16,
1: + pll_s3c2440_mpll = 17,
1: + pll_2550x = 18,
1: + pll_2550xx = 19,
1: + pll_2650x = 20,
1: + pll_2650xx = 21,
1: + pll_1450x = 22,
1: + pll_1451x = 23,
1: + pll_1452x = 24,
1: + pll_1460x = 25,
1: };
1:
1: struct samsung_pll_rate_table {
1: - unsigned int rate;
1: - unsigned int pdiv;
1: - unsigned int mdiv;
1: - unsigned int sdiv;
1: - unsigned int kdiv;
1: - unsigned int afc;
1: - unsigned int mfr;
1: - unsigned int mrr;
1: - unsigned int vsel;
1: + unsigned int rate;
1: + unsigned int pdiv;
1: + unsigned int mdiv;
1: + unsigned int sdiv;
1: + unsigned int kdiv;
1: + unsigned int afc;
1: + unsigned int mfr;
1: + unsigned int mrr;
1: + unsigned int vsel;
1: };
1:
1: struct samsung_clk_provider {
1: - void *reg_base;
1: - struct device *dev;
1: - spinlock_t lock;
1: - struct clk_hw_onecell_data clk_data;
1: + void *reg_base;
1: + struct device *dev;
1: + spinlock_t lock;
1: + struct clk_hw_onecell_data clk_data;
1: };
1:
1: struct samsung_clock_alias {
1: - unsigned int id;
1: - const char *dev_name;
1: - const char *alias;
1: + unsigned int id;
1: + const char *dev_name;
1: + const char *alias;
1: };
1:
1: struct samsung_fixed_rate_clock {
1: - unsigned int id;
1: - char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int fixed_rate;
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int fixed_rate;
1: };
1:
1: struct samsung_fixed_factor_clock {
1: - unsigned int id;
1: - char *name;
1: - const char *parent_name;
1: - long unsigned int mult;
1: - long unsigned int div;
1: - long unsigned int flags;
1: + unsigned int id;
1: + char *name;
1: + const char *parent_name;
1: + long unsigned int mult;
1: + long unsigned int div;
1: + long unsigned int flags;
1: };
1:
1: struct samsung_mux_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char * const *parent_names;
1: - u8 num_parents;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u8 mux_flags;
1: + unsigned int id;
1: + const char *name;
1: + const char *const *parent_names;
1: + u8 num_parents;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 mux_flags;
1: };
1:
1: struct samsung_div_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 shift;
1: - u8 width;
1: - u8 div_flags;
1: - struct clk_div_table *table;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 shift;
1: + u8 width;
1: + u8 div_flags;
1: + struct clk_div_table *table;
1: };
1:
1: struct samsung_gate_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - long unsigned int offset;
1: - u8 bit_idx;
1: - u8 gate_flags;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + long unsigned int offset;
1: + u8 bit_idx;
1: + u8 gate_flags;
1: };
1:
1: struct samsung_clk_reg_dump {
1: - u32 offset;
1: - u32 value;
1: + u32 offset;
1: + u32 value;
1: };
1:
1: struct samsung_pll_clock {
1: - unsigned int id;
1: - const char *name;
1: - const char *parent_name;
1: - long unsigned int flags;
1: - int con_offset;
1: - int lock_offset;
1: - enum samsung_pll_type type;
1: - const struct samsung_pll_rate_table *rate_table;
1: + unsigned int id;
1: + const char *name;
1: + const char *parent_name;
1: + long unsigned int flags;
1: + int con_offset;
1: + int lock_offset;
1: + enum samsung_pll_type type;
1: + const struct samsung_pll_rate_table *rate_table;
1: };
1:
1: struct samsung_clock_reg_cache {
1: - struct list_head node;
1: - void *reg_base;
1: - struct samsung_clk_reg_dump *rdump;
1: - unsigned int rd_num;
1: - const struct samsung_clk_reg_dump *rsuspend;
1: - unsigned int rsuspend_num;
1: + struct list_head node;
1: + void *reg_base;
1: + struct samsung_clk_reg_dump *rdump;
1: + unsigned int rd_num;
1: + const struct samsung_clk_reg_dump *rsuspend;
1: + unsigned int rsuspend_num;
1: };
1:
1: struct samsung_cmu_info {
1: - const struct samsung_pll_clock *pll_clks;
1: - unsigned int nr_pll_clks;
1: - const struct samsung_mux_clock *mux_clks;
1: - unsigned int nr_mux_clks;
1: - const struct samsung_div_clock *div_clks;
1: - unsigned int nr_div_clks;
1: - const struct samsung_gate_clock *gate_clks;
1: - unsigned int nr_gate_clks;
1: - const struct samsung_fixed_rate_clock *fixed_clks;
1: - unsigned int nr_fixed_clks;
1: - const struct samsung_fixed_factor_clock *fixed_factor_clks;
1: - unsigned int nr_fixed_factor_clks;
1: - unsigned int nr_clk_ids;
1: - const long unsigned int *clk_regs;
1: - unsigned int nr_clk_regs;
1: - const struct samsung_clk_reg_dump *suspend_regs;
1: - unsigned int nr_suspend_regs;
1: - const char *clk_name;
1: + const struct samsung_pll_clock *pll_clks;
1: + unsigned int nr_pll_clks;
1: + const struct samsung_mux_clock *mux_clks;
1: + unsigned int nr_mux_clks;
1: + const struct samsung_div_clock *div_clks;
1: + unsigned int nr_div_clks;
1: + const struct samsung_gate_clock *gate_clks;
1: + unsigned int nr_gate_clks;
1: + const struct samsung_fixed_rate_clock *fixed_clks;
1: + unsigned int nr_fixed_clks;
1: + const struct samsung_fixed_factor_clock *fixed_factor_clks;
1: + unsigned int nr_fixed_factor_clks;
1: + unsigned int nr_clk_ids;
1: + const long unsigned int *clk_regs;
1: + unsigned int nr_clk_regs;
1: + const struct samsung_clk_reg_dump *suspend_regs;
1: + unsigned int nr_suspend_regs;
1: + const char *clk_name;
1: };
1:
1: struct samsung_clk_pll {
1: - struct clk_hw hw;
1: - void *lock_reg;
1: - void *con_reg;
1: - short unsigned int enable_offs;
1: - short unsigned int lock_offs;
1: - enum samsung_pll_type type;
1: - unsigned int rate_count;
1: - const struct samsung_pll_rate_table *rate_table;
1: + struct clk_hw hw;
1: + void *lock_reg;
1: + void *con_reg;
1: + short unsigned int enable_offs;
1: + short unsigned int lock_offs;
1: + enum samsung_pll_type type;
1: + unsigned int rate_count;
1: + const struct samsung_pll_rate_table *rate_table;
1: };
1:
1: struct exynos_cpuclk_cfg_data {
1: - long unsigned int prate;
1: - long unsigned int div0;
1: - long unsigned int div1;
1: + long unsigned int prate;
1: + long unsigned int div0;
1: + long unsigned int div1;
1: };
1:
1: struct exynos_cpuclk {
1: - struct clk_hw hw;
1: - const struct clk_hw *alt_parent;
1: - void *ctrl_base;
1: - spinlock_t *lock;
1: - const struct exynos_cpuclk_cfg_data *cfg;
1: - const long unsigned int num_cfgs;
1: - struct notifier_block clk_nb;
1: - long unsigned int flags;
1: + struct clk_hw hw;
1: + const struct clk_hw *alt_parent;
1: + void *ctrl_base;
1: + spinlock_t *lock;
1: + const struct exynos_cpuclk_cfg_data *cfg;
1: + const long unsigned int num_cfgs;
1: + struct notifier_block clk_nb;
1: + long unsigned int flags;
1: };
1:
1: struct exynos5433_cmu_data {
1: - struct samsung_clk_reg_dump *clk_save;
1: - unsigned int nr_clk_save;
1: - const struct samsung_clk_reg_dump *clk_suspend;
1: - unsigned int nr_clk_suspend;
1: - struct clk *clk;
1: - struct clk **pclks;
1: - int nr_pclks;
1: - struct samsung_clk_provider ctx;
1: + struct samsung_clk_reg_dump *clk_save;
1: + unsigned int nr_clk_save;
1: + const struct samsung_clk_reg_dump *clk_suspend;
1: + unsigned int nr_clk_suspend;
1: + struct clk *clk;
1: + struct clk **pclks;
1: + int nr_pclks;
1: + struct samsung_clk_provider ctx;
1: };
1:
1: struct exynos_audss_clk_drvdata {
1: - unsigned int has_adma_clk: 1;
1: - unsigned int has_mst_clk: 1;
1: - unsigned int enable_epll: 1;
1: - unsigned int num_clks;
1: + unsigned int has_adma_clk : 1;
1: + unsigned int has_mst_clk : 1;
1: + unsigned int enable_epll : 1;
1: + unsigned int num_clks;
1: };
1:
1: struct exynos_clkout {
1: - struct clk_gate gate;
1: - struct clk_mux mux;
1: - spinlock_t slock;
1: - void *reg;
1: - u32 pmu_debug_save;
1: - struct clk_hw_onecell_data data;
1: + struct clk_gate gate;
1: + struct clk_mux mux;
1: + spinlock_t slock;
1: + void *reg;
1: + u32 pmu_debug_save;
1: + struct clk_hw_onecell_data data;
1: };
1:
1: struct clk_factors_config {
1: - u8 nshift;
1: - u8 nwidth;
1: - u8 kshift;
1: - u8 kwidth;
1: - u8 mshift;
1: - u8 mwidth;
1: - u8 pshift;
1: - u8 pwidth;
1: - u8 n_start;
1: + u8 nshift;
1: + u8 nwidth;
1: + u8 kshift;
1: + u8 kwidth;
1: + u8 mshift;
1: + u8 mwidth;
1: + u8 pshift;
1: + u8 pwidth;
1: + u8 n_start;
1: };
1:
1: struct factors_request {
1: - long unsigned int rate;
1: - long unsigned int parent_rate;
1: - u8 parent_index;
1: - u8 n;
1: - u8 k;
1: - u8 m;
1: - u8 p;
1: + long unsigned int rate;
1: + long unsigned int parent_rate;
1: + u8 parent_index;
1: + u8 n;
1: + u8 k;
1: + u8 m;
1: + u8 p;
1: };
1:
1: struct factors_data {
1: - int enable;
1: - int mux;
1: - int muxmask;
1: - const struct clk_factors_config *table;
1: - void (*getter)(struct factors_request *);
1: - void (*recalc)(struct factors_request *);
1: - const char *name;
1: + int enable;
1: + int mux;
1: + int muxmask;
1: + const struct clk_factors_config *table;
1: + void (*getter)(struct factors_request *);
1: + void (*recalc)(struct factors_request *);
1: + const char *name;
1: };
1:
1: struct clk_factors {
1: - struct clk_hw hw;
1: - void *reg;
1: - const struct clk_factors_config *config;
1: - void (*get_factors)(struct factors_request *);
1: - void (*recalc)(struct factors_request *);
1: - spinlock_t *lock;
1: - struct clk_mux *mux;
1: - struct clk_gate *gate;
1: + struct clk_hw hw;
1: + void *reg;
1: + const struct clk_factors_config *config;
1: + void (*get_factors)(struct factors_request *);
1: + void (*recalc)(struct factors_request *);
1: + spinlock_t *lock;
1: + struct clk_mux *mux;
1: + struct clk_gate *gate;
1: };
1:
1: struct mux_data {
1: - u8 shift;
1: + u8 shift;
1: };
1:
1: struct div_data {
1: - u8 shift;
1: - u8 pow;
1: - u8 width;
1: - const struct clk_div_table *table;
1: + u8 shift;
1: + u8 pow;
1: + u8 width;
1: + const struct clk_div_table *table;
1: };
1:
1: struct divs_data {
1: - const struct factors_data *factors;
1: - int ndivs;
1: - struct {
1: - u8 self;
1: - u8 fixed;
1: - struct clk_div_table *table;
1: - u8 shift;
1: - u8 pow;
1: - u8 gate;
1: - bool critical;
1: - } div[4];
1: + const struct factors_data *factors;
1: + int ndivs;
1: + struct {
1: + u8 self;
1: + u8 fixed;
1: + struct clk_div_table *table;
1: + u8 shift;
1: + u8 pow;
1: + u8 gate;
1: + bool critical;
1: + } div[4];
1: };
1:
1: struct ve_reset_data {
1: - void *reg;
1: - spinlock_t *lock;
1: - struct reset_controller_dev rcdev;
1: + void *reg;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct mmc_phase {
1: - struct clk_hw hw;
1: - u8 offset;
1: - void *reg;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + u8 offset;
1: + void *reg;
1: + spinlock_t *lock;
1: };
1:
1: struct sun4i_a10_display_clk_data {
1: - bool has_div;
1: - u8 num_rst;
1: - u8 parents;
1: - u8 offset_en;
1: - u8 offset_div;
1: - u8 offset_mux;
1: - u8 offset_rst;
1: - u8 width_div;
1: - u8 width_mux;
1: - u32 flags;
1: + bool has_div;
1: + u8 num_rst;
1: + u8 parents;
1: + u8 offset_en;
1: + u8 offset_div;
1: + u8 offset_mux;
1: + u8 offset_rst;
1: + u8 width_div;
1: + u8 width_mux;
1: + u32 flags;
1: };
1:
1: struct reset_data {
1: - void *reg;
1: - spinlock_t *lock;
1: - struct reset_controller_dev rcdev;
1: - u8 offset;
1: + void *reg;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: + u8 offset;
1: };
1:
1: struct tcon_ch1_clk {
1: - struct clk_hw hw;
1: - spinlock_t lock;
1: - void *reg;
1: + struct clk_hw hw;
1: + spinlock_t lock;
1: + void *reg;
1: };
1:
1: enum {
1: - AHB1 = 0,
1: - AHB2 = 1,
1: - APB1 = 2,
1: - APB2 = 3,
1: - PARENT_MAX = 4,
1: + AHB1 = 0,
1: + AHB2 = 1,
1: + APB1 = 2,
1: + APB2 = 3,
1: + PARENT_MAX = 4,
1: };
1:
1: struct sun9i_mmc_clk_data {
1: - spinlock_t lock;
1: - void *membase;
1: - struct clk *clk;
1: - struct reset_control *reset;
1: - struct clk_onecell_data clk_data;
1: - struct reset_controller_dev rcdev;
1: + spinlock_t lock;
1: + void *membase;
1: + struct clk *clk;
1: + struct reset_control *reset;
1: + struct clk_onecell_data clk_data;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct usb_reset_data {
1: - void *reg;
1: - spinlock_t *lock;
1: - struct clk *clk;
1: - struct reset_controller_dev rcdev;
1: + void *reg;
1: + spinlock_t *lock;
1: + struct clk *clk;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct usb_clk_data {
1: - u32 clk_mask;
1: - u32 reset_mask;
1: - bool reset_needs_clk;
1: + u32 clk_mask;
1: + u32 reset_mask;
1: + bool reset_needs_clk;
1: };
1:
1: struct sun9i_a80_cpus_clk {
1: - struct clk_hw hw;
1: - void *reg;
1: + struct clk_hw hw;
1: + void *reg;
1: };
1:
1: struct gates_data {
1: - long unsigned int mask[1];
1: + long unsigned int mask[1];
1: };
1:
1: struct ccu_common {
1: - void *base;
1: - u16 reg;
1: - u16 lock_reg;
1: - u32 prediv;
1: - long unsigned int features;
1: - spinlock_t *lock;
1: - struct clk_hw hw;
1: + void *base;
1: + u16 reg;
1: + u16 lock_reg;
1: + u32 prediv;
1: + long unsigned int features;
1: + spinlock_t *lock;
1: + struct clk_hw hw;
1: };
1:
1: struct ccu_reset_map;
1:
1: struct sunxi_ccu_desc {
1: - struct ccu_common **ccu_clks;
1: - long unsigned int num_ccu_clks;
1: - struct clk_hw_onecell_data *hw_clks;
1: - struct ccu_reset_map *resets;
1: - long unsigned int num_resets;
1: + struct ccu_common **ccu_clks;
1: + long unsigned int num_ccu_clks;
1: + struct clk_hw_onecell_data *hw_clks;
1: + struct ccu_reset_map *resets;
1: + long unsigned int num_resets;
1: };
1:
1: struct ccu_reset_map {
1: - u16 reg;
1: - u32 bit;
1: + u16 reg;
1: + u32 bit;
1: };
1:
1: struct ccu_pll_nb {
1: - struct notifier_block clk_nb;
1: - struct ccu_common *common;
1: - u32 enable;
1: - u32 lock;
1: + struct notifier_block clk_nb;
1: + struct ccu_common *common;
1: + u32 enable;
1: + u32 lock;
1: };
1:
1: struct ccu_reset {
1: - void *base;
1: - struct ccu_reset_map *reset_map;
1: - spinlock_t *lock;
1: - struct reset_controller_dev rcdev;
1: + void *base;
1: + struct ccu_reset_map *reset_map;
1: + spinlock_t *lock;
1: + struct reset_controller_dev rcdev;
1: };
1:
1: struct ccu_mux_fixed_prediv {
1: - u8 index;
1: - u16 div;
1: + u8 index;
1: + u16 div;
1: };
1:
1: struct ccu_mux_var_prediv {
1: - u8 index;
1: - u8 shift;
1: - u8 width;
1: + u8 index;
1: + u8 shift;
1: + u8 width;
1: };
1:
1: struct ccu_mux_internal {
1: - u8 shift;
1: - u8 width;
1: - const u8 *table;
1: - const struct ccu_mux_fixed_prediv *fixed_predivs;
1: - u8 n_predivs;
1: - const struct ccu_mux_var_prediv *var_predivs;
1: - u8 n_var_predivs;
1: + u8 shift;
1: + u8 width;
1: + const u8 *table;
1: + const struct ccu_mux_fixed_prediv *fixed_predivs;
1: + u8 n_predivs;
1: + const struct ccu_mux_var_prediv *var_predivs;
1: + u8 n_var_predivs;
1: };
1:
1: struct ccu_div_internal {
1: - u8 shift;
1: - u8 width;
1: - u32 max;
1: - u32 offset;
1: - u32 flags;
1: - struct clk_div_table *table;
1: + u8 shift;
1: + u8 width;
1: + u32 max;
1: + u32 offset;
1: + u32 flags;
1: + struct clk_div_table *table;
1: };
1:
1: struct ccu_div {
1: - u32 enable;
1: - struct ccu_div_internal div;
1: - struct ccu_mux_internal mux;
1: - struct ccu_common common;
1: - unsigned int fixed_post_div;
1: + u32 enable;
1: + struct ccu_div_internal div;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: + unsigned int fixed_post_div;
1: };
1:
1: struct ccu_frac_internal {
1: - u32 enable;
1: - u32 select;
1: - long unsigned int rates[2];
1: + u32 enable;
1: + u32 select;
1: + long unsigned int rates[2];
1: };
1:
1: struct ccu_gate {
1: - u32 enable;
1: - struct ccu_common common;
1: + u32 enable;
1: + struct ccu_common common;
1: };
1:
1: struct ccu_mux {
1: - u16 reg;
1: - u32 enable;
1: - struct ccu_mux_internal mux;
1: - struct ccu_common common;
1: + u16 reg;
1: + u32 enable;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: };
1:
1: struct ccu_mux_nb {
1: - struct notifier_block clk_nb;
1: - struct ccu_common *common;
1: - struct ccu_mux_internal *cm;
1: - u32 delay_us;
1: - u8 bypass_index;
1: - u8 original_index;
1: + struct notifier_block clk_nb;
1: + struct ccu_common *common;
1: + struct ccu_mux_internal *cm;
1: + u32 delay_us;
1: + u8 bypass_index;
1: + u8 original_index;
1: };
1:
1: struct ccu_mult_internal {
1: - u8 offset;
1: - u8 shift;
1: - u8 width;
1: - u8 min;
1: - u8 max;
1: + u8 offset;
1: + u8 shift;
1: + u8 width;
1: + u8 min;
1: + u8 max;
1: };
1:
1: struct ccu_mult {
1: - u32 enable;
1: - u32 lock;
1: - struct ccu_frac_internal frac;
1: - struct ccu_mult_internal mult;
1: - struct ccu_mux_internal mux;
1: - struct ccu_common common;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_frac_internal frac;
1: + struct ccu_mult_internal mult;
1: + struct ccu_mux_internal mux;
1: + struct ccu_common common;
1: };
1:
1: struct _ccu_mult {
1: - long unsigned int mult;
1: - long unsigned int min;
1: - long unsigned int max;
1: + long unsigned int mult;
1: + long unsigned int min;
1: + long unsigned int max;
1: };
1:
1: struct ccu_phase {
1: - u8 shift;
1: - u8 width;
1: - struct ccu_common common;
1: + u8 shift;
1: + u8 width;
1: + struct ccu_common common;
1: };
1:
1: struct ccu_sdm_setting {
1: - long unsigned int rate;
1: - u32 pattern;
1: - u32 m;
1: - u32 n;
1: + long unsigned int rate;
1: + u32 pattern;
1: + u32 m;
1: + u32 n;
1: };
1:
1: struct ccu_sdm_internal {
1: - struct ccu_sdm_setting *table;
1: - u32 table_size;
1: - u32 enable;
1: - u32 tuning_enable;
1: - u16 tuning_reg;
1: + struct ccu_sdm_setting *table;
1: + u32 table_size;
1: + u32 enable;
1: + u32 tuning_enable;
1: + u16 tuning_reg;
1: };
1:
1: struct ccu_nk {
1: - u16 reg;
1: - u32 enable;
1: - u32 lock;
1: - struct ccu_mult_internal n;
1: - struct ccu_mult_internal k;
1: - unsigned int fixed_post_div;
1: - struct ccu_common common;
1: + u16 reg;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: };
1:
1: struct _ccu_nk {
1: - long unsigned int n;
1: - long unsigned int min_n;
1: - long unsigned int max_n;
1: - long unsigned int k;
1: - long unsigned int min_k;
1: - long unsigned int max_k;
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: };
1:
1: struct ccu_nkm {
1: - u32 enable;
1: - u32 lock;
1: - struct ccu_mult_internal n;
1: - struct ccu_mult_internal k;
1: - struct ccu_div_internal m;
1: - struct ccu_mux_internal mux;
1: - unsigned int fixed_post_div;
1: - struct ccu_common common;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + struct ccu_div_internal m;
1: + struct ccu_mux_internal mux;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: };
1:
1: struct _ccu_nkm {
1: - long unsigned int n;
1: - long unsigned int min_n;
1: - long unsigned int max_n;
1: - long unsigned int k;
1: - long unsigned int min_k;
1: - long unsigned int max_k;
1: - long unsigned int m;
1: - long unsigned int min_m;
1: - long unsigned int max_m;
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: };
1:
1: struct ccu_nkmp {
1: - u32 enable;
1: - u32 lock;
1: - struct ccu_mult_internal n;
1: - struct ccu_mult_internal k;
1: - struct ccu_div_internal m;
1: - struct ccu_div_internal p;
1: - unsigned int fixed_post_div;
1: - unsigned int max_rate;
1: - struct ccu_common common;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_mult_internal k;
1: + struct ccu_div_internal m;
1: + struct ccu_div_internal p;
1: + unsigned int fixed_post_div;
1: + unsigned int max_rate;
1: + struct ccu_common common;
1: };
1:
1: struct _ccu_nkmp {
1: - long unsigned int n;
1: - long unsigned int min_n;
1: - long unsigned int max_n;
1: - long unsigned int k;
1: - long unsigned int min_k;
1: - long unsigned int max_k;
1: - long unsigned int m;
1: - long unsigned int min_m;
1: - long unsigned int max_m;
1: - long unsigned int p;
1: - long unsigned int min_p;
1: - long unsigned int max_p;
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int k;
1: + long unsigned int min_k;
1: + long unsigned int max_k;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: + long unsigned int p;
1: + long unsigned int min_p;
1: + long unsigned int max_p;
1: };
1:
1: struct ccu_nm {
1: - u32 enable;
1: - u32 lock;
1: - struct ccu_mult_internal n;
1: - struct ccu_div_internal m;
1: - struct ccu_frac_internal frac;
1: - struct ccu_sdm_internal sdm;
1: - unsigned int fixed_post_div;
1: - unsigned int min_rate;
1: - unsigned int max_rate;
1: - struct ccu_common common;
1: + u32 enable;
1: + u32 lock;
1: + struct ccu_mult_internal n;
1: + struct ccu_div_internal m;
1: + struct ccu_frac_internal frac;
1: + struct ccu_sdm_internal sdm;
1: + unsigned int fixed_post_div;
1: + unsigned int min_rate;
1: + unsigned int max_rate;
1: + struct ccu_common common;
1: };
1:
1: struct _ccu_nm {
1: - long unsigned int n;
1: - long unsigned int min_n;
1: - long unsigned int max_n;
1: - long unsigned int m;
1: - long unsigned int min_m;
1: - long unsigned int max_m;
1: + long unsigned int n;
1: + long unsigned int min_n;
1: + long unsigned int max_n;
1: + long unsigned int m;
1: + long unsigned int min_m;
1: + long unsigned int max_m;
1: };
1:
1: struct ccu_mp {
1: - u32 enable;
1: - struct ccu_div_internal m;
1: - struct ccu_div_internal p;
1: - struct ccu_mux_internal mux;
1: - unsigned int fixed_post_div;
1: - struct ccu_common common;
1: + u32 enable;
1: + struct ccu_div_internal m;
1: + struct ccu_div_internal p;
1: + struct ccu_mux_internal mux;
1: + unsigned int fixed_post_div;
1: + struct ccu_common common;
1: };
1:
1: struct tegra_cpu_car_ops {
1: - void (*wait_for_reset)(u32);
1: - void (*put_in_reset)(u32);
1: - void (*out_of_reset)(u32);
1: - void (*enable_clock)(u32);
1: - void (*disable_clock)(u32);
1: - bool (*rail_off_ready)();
1: - void (*suspend)();
1: - void (*resume)();
1: + void (*wait_for_reset)(u32);
1: + void (*put_in_reset)(u32);
1: + void (*out_of_reset)(u32);
1: + void (*enable_clock)(u32);
1: + void (*disable_clock)(u32);
1: + bool (*rail_off_ready)();
1: + void (*suspend)();
1: + void (*resume)();
1: };
1:
1: struct tegra_clk_periph_regs {
1: - u32 enb_reg;
1: - u32 enb_set_reg;
1: - u32 enb_clr_reg;
1: - u32 rst_reg;
1: - u32 rst_set_reg;
1: - u32 rst_clr_reg;
1: + u32 enb_reg;
1: + u32 enb_set_reg;
1: + u32 enb_clr_reg;
1: + u32 rst_reg;
1: + u32 rst_set_reg;
1: + u32 rst_clr_reg;
1: };
1:
1: struct tegra_clk_init_table {
1: - unsigned int clk_id;
1: - unsigned int parent_id;
1: - long unsigned int rate;
1: - int state;
1: + unsigned int clk_id;
1: + unsigned int parent_id;
1: + long unsigned int rate;
1: + int state;
1: };
1:
1: struct tegra_clk_duplicate {
1: - int clk_id;
1: - struct clk_lookup lookup;
1: + int clk_id;
1: + struct clk_lookup lookup;
1: };
1:
1: struct tegra_clk {
1: - int dt_id;
1: - bool present;
1: + int dt_id;
1: + bool present;
1: };
1:
1: struct tegra_devclk {
1: - int dt_id;
1: - char *dev_id;
1: - char *con_id;
1: + int dt_id;
1: + char *dev_id;
1: + char *con_id;
1: };
1:
1: typedef void (*tegra_clk_apply_init_table_func)();
1:
1: struct tegra_clk_sync_source {
1: - struct clk_hw hw;
1: - long unsigned int rate;
1: - long unsigned int max_rate;
1: + struct clk_hw hw;
1: + long unsigned int rate;
1: + long unsigned int max_rate;
1: };
1:
1: struct i2c_msg {
1: - __u16 addr;
1: - __u16 flags;
1: - __u16 len;
1: - __u8 *buf;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + __u8 *buf;
1: };
1:
1: union i2c_smbus_data {
1: - __u8 byte;
1: - __u16 word;
1: - __u8 block[34];
1: + __u8 byte;
1: + __u16 word;
1: + __u8 block[34];
1: };
1:
1: enum i2c_slave_event {
1: - I2C_SLAVE_READ_REQUESTED = 0,
1: - I2C_SLAVE_WRITE_REQUESTED = 1,
1: - I2C_SLAVE_READ_PROCESSED = 2,
1: - I2C_SLAVE_WRITE_RECEIVED = 3,
1: - I2C_SLAVE_STOP = 4,
1: + I2C_SLAVE_READ_REQUESTED = 0,
1: + I2C_SLAVE_WRITE_REQUESTED = 1,
1: + I2C_SLAVE_READ_PROCESSED = 2,
1: + I2C_SLAVE_WRITE_RECEIVED = 3,
1: + I2C_SLAVE_STOP = 4,
1: };
1:
1: struct i2c_client;
1: @@ -74191,15 +75192,15 @@ typedef int (*i2c_slave_cb_t)(struct i2c_client *, enum i2c_slave_event, u8 *);
1: struct i2c_adapter;
1:
1: struct i2c_client {
1: - short unsigned int flags;
1: - short unsigned int addr;
1: - char name[20];
1: - struct i2c_adapter *adapter;
1: - struct device dev;
1: - int init_irq;
1: - int irq;
1: - struct list_head detected;
1: - i2c_slave_cb_t slave_cb;
1: + short unsigned int flags;
1: + short unsigned int addr;
1: + char name[20];
1: + struct i2c_adapter *adapter;
1: + struct device dev;
1: + int init_irq;
1: + int irq;
1: + struct list_head detected;
1: + i2c_slave_cb_t slave_cb;
1: };
1:
1: struct i2c_algorithm;
1: @@ -74211,882 +75212,886 @@ struct i2c_bus_recovery_info;
1: struct i2c_adapter_quirks;
1:
1: struct i2c_adapter {
1: - struct module *owner;
1: - unsigned int class;
1: - const struct i2c_algorithm *algo;
1: - void *algo_data;
1: - const struct i2c_lock_operations *lock_ops;
1: - struct rt_mutex bus_lock;
1: - struct rt_mutex mux_lock;
1: - int timeout;
1: - int retries;
1: - struct device dev;
1: - long unsigned int locked_flags;
1: - int nr;
1: - char name[48];
1: - struct completion dev_released;
1: - struct mutex userspace_clients_lock;
1: - struct list_head userspace_clients;
1: - struct i2c_bus_recovery_info *bus_recovery_info;
1: - const struct i2c_adapter_quirks *quirks;
1: - struct irq_domain *host_notify_domain;
1: + struct module *owner;
1: + unsigned int class;
1: + const struct i2c_algorithm *algo;
1: + void *algo_data;
1: + const struct i2c_lock_operations *lock_ops;
1: + struct rt_mutex bus_lock;
1: + struct rt_mutex mux_lock;
1: + int timeout;
1: + int retries;
1: + struct device dev;
1: + long unsigned int locked_flags;
1: + int nr;
1: + char name[48];
1: + struct completion dev_released;
1: + struct mutex userspace_clients_lock;
1: + struct list_head userspace_clients;
1: + struct i2c_bus_recovery_info *bus_recovery_info;
1: + const struct i2c_adapter_quirks *quirks;
1: + struct irq_domain *host_notify_domain;
1: };
1:
1: struct i2c_algorithm {
1: - int (*master_xfer)(struct i2c_adapter *, struct i2c_msg *, int);
1: - int (*master_xfer_atomic)(struct i2c_adapter *, struct i2c_msg *, int);
1: - int (*smbus_xfer)(struct i2c_adapter *, u16, short unsigned int, char, u8, int, union i2c_smbus_data *);
1: - int (*smbus_xfer_atomic)(struct i2c_adapter *, u16, short unsigned int, char, u8, int, union i2c_smbus_data *);
1: - u32 (*functionality)(struct i2c_adapter *);
1: - int (*reg_slave)(struct i2c_client *);
1: - int (*unreg_slave)(struct i2c_client *);
1: + int (*master_xfer)(struct i2c_adapter *, struct i2c_msg *, int);
1: + int (*master_xfer_atomic)(struct i2c_adapter *, struct i2c_msg *, int);
1: + int (*smbus_xfer)(struct i2c_adapter *, u16, short unsigned int, char, u8,
1: + int, union i2c_smbus_data *);
1: + int (*smbus_xfer_atomic)(struct i2c_adapter *, u16, short unsigned int, char,
1: + u8, int, union i2c_smbus_data *);
1: + u32 (*functionality)(struct i2c_adapter *);
1: + int (*reg_slave)(struct i2c_client *);
1: + int (*unreg_slave)(struct i2c_client *);
1: };
1:
1: struct i2c_lock_operations {
1: - void (*lock_bus)(struct i2c_adapter *, unsigned int);
1: - int (*trylock_bus)(struct i2c_adapter *, unsigned int);
1: - void (*unlock_bus)(struct i2c_adapter *, unsigned int);
1: + void (*lock_bus)(struct i2c_adapter *, unsigned int);
1: + int (*trylock_bus)(struct i2c_adapter *, unsigned int);
1: + void (*unlock_bus)(struct i2c_adapter *, unsigned int);
1: };
1:
1: struct i2c_bus_recovery_info {
1: - int (*recover_bus)(struct i2c_adapter *);
1: - int (*get_scl)(struct i2c_adapter *);
1: - void (*set_scl)(struct i2c_adapter *, int);
1: - int (*get_sda)(struct i2c_adapter *);
1: - void (*set_sda)(struct i2c_adapter *, int);
1: - int (*get_bus_free)(struct i2c_adapter *);
1: - void (*prepare_recovery)(struct i2c_adapter *);
1: - void (*unprepare_recovery)(struct i2c_adapter *);
1: - struct gpio_desc *scl_gpiod;
1: - struct gpio_desc *sda_gpiod;
1: - struct pinctrl *pinctrl;
1: - struct pinctrl_state *pins_default;
1: - struct pinctrl_state *pins_gpio;
1: + int (*recover_bus)(struct i2c_adapter *);
1: + int (*get_scl)(struct i2c_adapter *);
1: + void (*set_scl)(struct i2c_adapter *, int);
1: + int (*get_sda)(struct i2c_adapter *);
1: + void (*set_sda)(struct i2c_adapter *, int);
1: + int (*get_bus_free)(struct i2c_adapter *);
1: + void (*prepare_recovery)(struct i2c_adapter *);
1: + void (*unprepare_recovery)(struct i2c_adapter *);
1: + struct gpio_desc *scl_gpiod;
1: + struct gpio_desc *sda_gpiod;
1: + struct pinctrl *pinctrl;
1: + struct pinctrl_state *pins_default;
1: + struct pinctrl_state *pins_gpio;
1: };
1:
1: struct i2c_adapter_quirks {
1: - u64 flags;
1: - int max_num_msgs;
1: - u16 max_write_len;
1: - u16 max_read_len;
1: - u16 max_comb_1st_msg_len;
1: - u16 max_comb_2nd_msg_len;
1: + u64 flags;
1: + int max_num_msgs;
1: + u16 max_write_len;
1: + u16 max_read_len;
1: + u16 max_comb_1st_msg_len;
1: + u16 max_comb_2nd_msg_len;
1: };
1:
1: struct rail_alignment {
1: - int offset_uv;
1: - int step_uv;
1: + int offset_uv;
1: + int step_uv;
1: };
1:
1: struct cvb_coefficients {
1: - int c0;
1: - int c1;
1: - int c2;
1: + int c0;
1: + int c1;
1: + int c2;
1: };
1:
1: struct cvb_table_freq_entry {
1: - long unsigned int freq;
1: - struct cvb_coefficients coefficients;
1: + long unsigned int freq;
1: + struct cvb_coefficients coefficients;
1: };
1:
1: struct cvb_cpu_dfll_data {
1: - u32 tune0_low;
1: - u32 tune0_high;
1: - u32 tune1;
1: - unsigned int tune_high_min_millivolts;
1: + u32 tune0_low;
1: + u32 tune0_high;
1: + u32 tune1;
1: + unsigned int tune_high_min_millivolts;
1: };
1:
1: struct cvb_table {
1: - int speedo_id;
1: - int process_id;
1: - int min_millivolts;
1: - int max_millivolts;
1: - int speedo_scale;
1: - int voltage_scale;
1: - struct cvb_table_freq_entry entries[40];
1: - struct cvb_cpu_dfll_data cpu_dfll_data;
1: + int speedo_id;
1: + int process_id;
1: + int min_millivolts;
1: + int max_millivolts;
1: + int speedo_scale;
1: + int voltage_scale;
1: + struct cvb_table_freq_entry entries[40];
1: + struct cvb_cpu_dfll_data cpu_dfll_data;
1: };
1:
1: struct tegra_dfll_soc_data {
1: - struct device *dev;
1: - long unsigned int max_freq;
1: - const struct cvb_table *cvb;
1: - struct rail_alignment alignment;
1: - void (*init_clock_trimmers)();
1: - void (*set_clock_trimmers_high)();
1: - void (*set_clock_trimmers_low)();
1: + struct device *dev;
1: + long unsigned int max_freq;
1: + const struct cvb_table *cvb;
1: + struct rail_alignment alignment;
1: + void (*init_clock_trimmers)();
1: + void (*set_clock_trimmers_high)();
1: + void (*set_clock_trimmers_low)();
1: };
1:
1: enum dfll_ctrl_mode {
1: - DFLL_UNINITIALIZED = 0,
1: - DFLL_DISABLED = 1,
1: - DFLL_OPEN_LOOP = 2,
1: - DFLL_CLOSED_LOOP = 3,
1: + DFLL_UNINITIALIZED = 0,
1: + DFLL_DISABLED = 1,
1: + DFLL_OPEN_LOOP = 2,
1: + DFLL_CLOSED_LOOP = 3,
1: };
1:
1: enum dfll_tune_range {
1: - DFLL_TUNE_UNINITIALIZED = 0,
1: - DFLL_TUNE_LOW = 1,
1: + DFLL_TUNE_UNINITIALIZED = 0,
1: + DFLL_TUNE_LOW = 1,
1: };
1:
1: enum tegra_dfll_pmu_if {
1: - TEGRA_DFLL_PMU_I2C = 0,
1: - TEGRA_DFLL_PMU_PWM = 1,
1: + TEGRA_DFLL_PMU_I2C = 0,
1: + TEGRA_DFLL_PMU_PWM = 1,
1: };
1:
1: struct dfll_rate_req {
1: - long unsigned int rate;
1: - long unsigned int dvco_target_rate;
1: - int lut_index;
1: - u8 mult_bits;
1: - u8 scale_bits;
1: + long unsigned int rate;
1: + long unsigned int dvco_target_rate;
1: + int lut_index;
1: + u8 mult_bits;
1: + u8 scale_bits;
1: };
1:
1: struct tegra_dfll {
1: - struct device *dev;
1: - struct tegra_dfll_soc_data *soc;
1: - void *base;
1: - void *i2c_base;
1: - void *i2c_controller_base;
1: - void *lut_base;
1: - struct regulator *vdd_reg;
1: - struct clk *soc_clk;
1: - struct clk *ref_clk;
1: - struct clk *i2c_clk;
1: - struct clk *dfll_clk;
1: - struct reset_control *dvco_rst;
1: - long unsigned int ref_rate;
1: - long unsigned int i2c_clk_rate;
1: - long unsigned int dvco_rate_min;
1: - enum dfll_ctrl_mode mode;
1: - enum dfll_tune_range tune_range;
1: - struct dentry *debugfs_dir;
1: - struct clk_hw dfll_clk_hw;
1: - const char *output_clock_name;
1: - struct dfll_rate_req last_req;
1: - long unsigned int last_unrounded_rate;
1: - u32 droop_ctrl;
1: - u32 sample_rate;
1: - u32 force_mode;
1: - u32 cf;
1: - u32 ci;
1: - u32 cg;
1: - bool cg_scale;
1: - u32 i2c_fs_rate;
1: - u32 i2c_reg;
1: - u32 i2c_slave_addr;
1: - unsigned int lut[33];
1: - long unsigned int lut_uv[33];
1: - int lut_size;
1: - u8 lut_bottom;
1: - u8 lut_min;
1: - u8 lut_max;
1: - u8 lut_safe;
1: - enum tegra_dfll_pmu_if pmu_if;
1: - long unsigned int pwm_rate;
1: - struct pinctrl *pwm_pin;
1: - struct pinctrl_state *pwm_enable_state;
1: - struct pinctrl_state *pwm_disable_state;
1: - u32 reg_init_uV;
1: + struct device *dev;
1: + struct tegra_dfll_soc_data *soc;
1: + void *base;
1: + void *i2c_base;
1: + void *i2c_controller_base;
1: + void *lut_base;
1: + struct regulator *vdd_reg;
1: + struct clk *soc_clk;
1: + struct clk *ref_clk;
1: + struct clk *i2c_clk;
1: + struct clk *dfll_clk;
1: + struct reset_control *dvco_rst;
1: + long unsigned int ref_rate;
1: + long unsigned int i2c_clk_rate;
1: + long unsigned int dvco_rate_min;
1: + enum dfll_ctrl_mode mode;
1: + enum dfll_tune_range tune_range;
1: + struct dentry *debugfs_dir;
1: + struct clk_hw dfll_clk_hw;
1: + const char *output_clock_name;
1: + struct dfll_rate_req last_req;
1: + long unsigned int last_unrounded_rate;
1: + u32 droop_ctrl;
1: + u32 sample_rate;
1: + u32 force_mode;
1: + u32 cf;
1: + u32 ci;
1: + u32 cg;
1: + bool cg_scale;
1: + u32 i2c_fs_rate;
1: + u32 i2c_reg;
1: + u32 i2c_slave_addr;
1: + unsigned int lut[33];
1: + long unsigned int lut_uv[33];
1: + int lut_size;
1: + u8 lut_bottom;
1: + u8 lut_min;
1: + u8 lut_max;
1: + u8 lut_safe;
1: + enum tegra_dfll_pmu_if pmu_if;
1: + long unsigned int pwm_rate;
1: + struct pinctrl *pwm_pin;
1: + struct pinctrl_state *pwm_enable_state;
1: + struct pinctrl_state *pwm_disable_state;
1: + u32 reg_init_uV;
1: };
1:
1: struct tegra_clk_frac_div {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 flags;
1: - u8 shift;
1: - u8 width;
1: - u8 frac_width;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 flags;
1: + u8 shift;
1: + u8 width;
1: + u8 frac_width;
1: + spinlock_t *lock;
1: };
1:
1: struct tegra_clk_periph_gate {
1: - u32 magic;
1: - struct clk_hw hw;
1: - void *clk_base;
1: - u8 flags;
1: - int clk_num;
1: - int *enable_refcnt;
1: - const struct tegra_clk_periph_regs *regs;
1: + u32 magic;
1: + struct clk_hw hw;
1: + void *clk_base;
1: + u8 flags;
1: + int clk_num;
1: + int *enable_refcnt;
1: + const struct tegra_clk_periph_regs *regs;
1: };
1:
1: struct tegra_clk_periph {
1: - u32 magic;
1: - struct clk_hw hw;
1: - struct clk_mux mux;
1: - struct tegra_clk_frac_div divider;
1: - struct tegra_clk_periph_gate gate;
1: - const struct clk_ops *mux_ops;
1: - const struct clk_ops *div_ops;
1: - const struct clk_ops *gate_ops;
1: + u32 magic;
1: + struct clk_hw hw;
1: + struct clk_mux mux;
1: + struct tegra_clk_frac_div divider;
1: + struct tegra_clk_periph_gate gate;
1: + const struct clk_ops *mux_ops;
1: + const struct clk_ops *div_ops;
1: + const struct clk_ops *gate_ops;
1: };
1:
1: struct tegra_periph_init_data {
1: - const char *name;
1: - int clk_id;
1: - union {
1: - const char * const *parent_names;
1: - const char *parent_name;
1: - } p;
1: - int num_parents;
1: - struct tegra_clk_periph periph;
1: - u32 offset;
1: - const char *con_id;
1: - const char *dev_id;
1: - long unsigned int flags;
1: + const char *name;
1: + int clk_id;
1: + union {
1: + const char *const *parent_names;
1: + const char *parent_name;
1: + } p;
1: + int num_parents;
1: + struct tegra_clk_periph periph;
1: + u32 offset;
1: + const char *con_id;
1: + const char *dev_id;
1: + long unsigned int flags;
1: };
1:
1: struct tegra_clk_periph_fixed {
1: - struct clk_hw hw;
1: - void *base;
1: - const struct tegra_clk_periph_regs *regs;
1: - unsigned int mul;
1: - unsigned int div;
1: - unsigned int num;
1: + struct clk_hw hw;
1: + void *base;
1: + const struct tegra_clk_periph_regs *regs;
1: + unsigned int mul;
1: + unsigned int div;
1: + unsigned int num;
1: };
1:
1: struct tegra_clk_pll_freq_table {
1: - long unsigned int input_rate;
1: - long unsigned int output_rate;
1: - u32 n;
1: - u32 m;
1: - u8 p;
1: - u8 cpcon;
1: - u16 sdm_data;
1: + long unsigned int input_rate;
1: + long unsigned int output_rate;
1: + u32 n;
1: + u32 m;
1: + u8 p;
1: + u8 cpcon;
1: + u16 sdm_data;
1: };
1:
1: struct pdiv_map {
1: - u8 pdiv;
1: - u8 hw_val;
1: + u8 pdiv;
1: + u8 hw_val;
1: };
1:
1: struct div_nmp {
1: - u8 divn_shift;
1: - u8 divn_width;
1: - u8 divm_shift;
1: - u8 divm_width;
1: - u8 divp_shift;
1: - u8 divp_width;
1: - u8 override_divn_shift;
1: - u8 override_divm_shift;
1: - u8 override_divp_shift;
1: + u8 divn_shift;
1: + u8 divn_width;
1: + u8 divm_shift;
1: + u8 divm_width;
1: + u8 divp_shift;
1: + u8 divp_width;
1: + u8 override_divn_shift;
1: + u8 override_divm_shift;
1: + u8 override_divp_shift;
1: };
1:
1: struct tegra_clk_pll;
1:
1: struct tegra_clk_pll_params {
1: - long unsigned int input_min;
1: - long unsigned int input_max;
1: - long unsigned int cf_min;
1: - long unsigned int cf_max;
1: - long unsigned int vco_min;
1: - long unsigned int vco_max;
1: - u32 base_reg;
1: - u32 misc_reg;
1: - u32 lock_reg;
1: - u32 lock_mask;
1: - u32 lock_enable_bit_idx;
1: - u32 iddq_reg;
1: - u32 iddq_bit_idx;
1: - u32 reset_reg;
1: - u32 reset_bit_idx;
1: - u32 sdm_din_reg;
1: - u32 sdm_din_mask;
1: - u32 sdm_ctrl_reg;
1: - u32 sdm_ctrl_en_mask;
1: - u32 ssc_ctrl_reg;
1: - u32 ssc_ctrl_en_mask;
1: - u32 aux_reg;
1: - u32 dyn_ramp_reg;
1: - u32 ext_misc_reg[6];
1: - u32 pmc_divnm_reg;
1: - u32 pmc_divp_reg;
1: - u32 flags;
1: - int stepa_shift;
1: - int stepb_shift;
1: - int lock_delay;
1: - int max_p;
1: - bool defaults_set;
1: - const struct pdiv_map *pdiv_tohw;
1: - struct div_nmp *div_nmp;
1: - struct tegra_clk_pll_freq_table *freq_table;
1: - long unsigned int fixed_rate;
1: - u16 mdiv_default;
1: - u32 (*round_p_to_pdiv)(u32, u32 *);
1: - void (*set_gain)(struct tegra_clk_pll_freq_table *);
1: - int (*calc_rate)(struct clk_hw *, struct tegra_clk_pll_freq_table *, long unsigned int, long unsigned int);
1: - long unsigned int (*adjust_vco)(struct tegra_clk_pll_params *, long unsigned int);
1: - void (*set_defaults)(struct tegra_clk_pll *);
1: - int (*dyn_ramp)(struct tegra_clk_pll *, struct tegra_clk_pll_freq_table *);
1: - int (*pre_rate_change)();
1: - void (*post_rate_change)();
1: + long unsigned int input_min;
1: + long unsigned int input_max;
1: + long unsigned int cf_min;
1: + long unsigned int cf_max;
1: + long unsigned int vco_min;
1: + long unsigned int vco_max;
1: + u32 base_reg;
1: + u32 misc_reg;
1: + u32 lock_reg;
1: + u32 lock_mask;
1: + u32 lock_enable_bit_idx;
1: + u32 iddq_reg;
1: + u32 iddq_bit_idx;
1: + u32 reset_reg;
1: + u32 reset_bit_idx;
1: + u32 sdm_din_reg;
1: + u32 sdm_din_mask;
1: + u32 sdm_ctrl_reg;
1: + u32 sdm_ctrl_en_mask;
1: + u32 ssc_ctrl_reg;
1: + u32 ssc_ctrl_en_mask;
1: + u32 aux_reg;
1: + u32 dyn_ramp_reg;
1: + u32 ext_misc_reg[6];
1: + u32 pmc_divnm_reg;
1: + u32 pmc_divp_reg;
1: + u32 flags;
1: + int stepa_shift;
1: + int stepb_shift;
1: + int lock_delay;
1: + int max_p;
1: + bool defaults_set;
1: + const struct pdiv_map *pdiv_tohw;
1: + struct div_nmp *div_nmp;
1: + struct tegra_clk_pll_freq_table *freq_table;
1: + long unsigned int fixed_rate;
1: + u16 mdiv_default;
1: + u32 (*round_p_to_pdiv)(u32, u32 *);
1: + void (*set_gain)(struct tegra_clk_pll_freq_table *);
1: + int (*calc_rate)(struct clk_hw *, struct tegra_clk_pll_freq_table *,
1: + long unsigned int, long unsigned int);
1: + long unsigned int (*adjust_vco)(struct tegra_clk_pll_params *,
1: + long unsigned int);
1: + void (*set_defaults)(struct tegra_clk_pll *);
1: + int (*dyn_ramp)(struct tegra_clk_pll *, struct tegra_clk_pll_freq_table *);
1: + int (*pre_rate_change)();
1: + void (*post_rate_change)();
1: };
1:
1: struct tegra_clk_pll {
1: - struct clk_hw hw;
1: - void *clk_base;
1: - void *pmc;
1: - spinlock_t *lock;
1: - struct tegra_clk_pll_params *params;
1: + struct clk_hw hw;
1: + void *clk_base;
1: + void *pmc;
1: + spinlock_t *lock;
1: + struct tegra_clk_pll_params *params;
1: };
1:
1: struct utmi_clk_param {
1: - u32 osc_frequency;
1: - u8 enable_delay_count;
1: - u8 stable_count;
1: - u8 active_delay_count;
1: - u8 xtal_freq_count;
1: + u32 osc_frequency;
1: + u8 enable_delay_count;
1: + u8 stable_count;
1: + u8 active_delay_count;
1: + u8 xtal_freq_count;
1: };
1:
1: struct tegra_clk_pll_out {
1: - struct clk_hw hw;
1: - void *reg;
1: - u8 enb_bit_idx;
1: - u8 rst_bit_idx;
1: - spinlock_t *lock;
1: - u8 flags;
1: + struct clk_hw hw;
1: + void *reg;
1: + u8 enb_bit_idx;
1: + u8 rst_bit_idx;
1: + spinlock_t *lock;
1: + u8 flags;
1: };
1:
1: struct tegra_sdmmc_mux {
1: - struct clk_hw hw;
1: - void *reg;
1: - spinlock_t *lock;
1: - const struct clk_ops *gate_ops;
1: - struct tegra_clk_periph_gate gate;
1: - u8 div_flags;
1: + struct clk_hw hw;
1: + void *reg;
1: + spinlock_t *lock;
1: + const struct clk_ops *gate_ops;
1: + struct tegra_clk_periph_gate gate;
1: + u8 div_flags;
1: };
1:
1: struct tegra_clk_super_mux {
1: - struct clk_hw hw;
1: - void *reg;
1: - struct tegra_clk_frac_div frac_div;
1: - const struct clk_ops *div_ops;
1: - u8 width;
1: - u8 flags;
1: - u8 div2_index;
1: - u8 pllx_index;
1: - spinlock_t *lock;
1: + struct clk_hw hw;
1: + void *reg;
1: + struct tegra_clk_frac_div frac_div;
1: + const struct clk_ops *div_ops;
1: + u8 width;
1: + u8 flags;
1: + u8 div2_index;
1: + u8 pllx_index;
1: + spinlock_t *lock;
1: };
1:
1: struct tegra_audio_clk_info {
1: - char *name;
1: - struct tegra_clk_pll_params *pll_params;
1: - int clk_id;
1: - char *parent;
1: + char *name;
1: + struct tegra_clk_pll_params *pll_params;
1: + int clk_id;
1: + char *parent;
1: };
1:
1: enum clk_id {
1: - tegra_clk_actmon = 0,
1: - tegra_clk_adx = 1,
1: - tegra_clk_adx1 = 2,
1: - tegra_clk_afi = 3,
1: - tegra_clk_amx = 4,
1: - tegra_clk_amx1 = 5,
1: - tegra_clk_apb2ape = 6,
1: - tegra_clk_ahbdma = 7,
1: - tegra_clk_apbdma = 8,
1: - tegra_clk_apbif = 9,
1: - tegra_clk_ape = 10,
1: - tegra_clk_audio0 = 11,
1: - tegra_clk_audio0_2x = 12,
1: - tegra_clk_audio0_mux = 13,
1: - tegra_clk_audio1 = 14,
1: - tegra_clk_audio1_2x = 15,
1: - tegra_clk_audio1_mux = 16,
1: - tegra_clk_audio2 = 17,
1: - tegra_clk_audio2_2x = 18,
1: - tegra_clk_audio2_mux = 19,
1: - tegra_clk_audio3 = 20,
1: - tegra_clk_audio3_2x = 21,
1: - tegra_clk_audio3_mux = 22,
1: - tegra_clk_audio4 = 23,
1: - tegra_clk_audio4_2x = 24,
1: - tegra_clk_audio4_mux = 25,
1: - tegra_clk_bsea = 26,
1: - tegra_clk_bsev = 27,
1: - tegra_clk_cclk_g = 28,
1: - tegra_clk_cclk_lp = 29,
1: - tegra_clk_cilab = 30,
1: - tegra_clk_cilcd = 31,
1: - tegra_clk_cile = 32,
1: - tegra_clk_clk_32k = 33,
1: - tegra_clk_clk72Mhz = 34,
1: - tegra_clk_clk72Mhz_8 = 35,
1: - tegra_clk_clk_m = 36,
1: - tegra_clk_osc = 37,
1: - tegra_clk_osc_div2 = 38,
1: - tegra_clk_osc_div4 = 39,
1: - tegra_clk_cml0 = 40,
1: - tegra_clk_cml1 = 41,
1: - tegra_clk_csi = 42,
1: - tegra_clk_csite = 43,
1: - tegra_clk_csite_8 = 44,
1: - tegra_clk_csus = 45,
1: - tegra_clk_cve = 46,
1: - tegra_clk_dam0 = 47,
1: - tegra_clk_dam1 = 48,
1: - tegra_clk_dam2 = 49,
1: - tegra_clk_d_audio = 50,
1: - tegra_clk_dbgapb = 51,
1: - tegra_clk_dds = 52,
1: - tegra_clk_dfll_ref = 53,
1: - tegra_clk_dfll_soc = 54,
1: - tegra_clk_disp1 = 55,
1: - tegra_clk_disp1_8 = 56,
1: - tegra_clk_disp2 = 57,
1: - tegra_clk_disp2_8 = 58,
1: - tegra_clk_dp2 = 59,
1: - tegra_clk_dpaux = 60,
1: - tegra_clk_dpaux1 = 61,
1: - tegra_clk_dsialp = 62,
1: - tegra_clk_dsia_mux = 63,
1: - tegra_clk_dsiblp = 64,
1: - tegra_clk_dsib_mux = 65,
1: - tegra_clk_dtv = 66,
1: - tegra_clk_emc = 67,
1: - tegra_clk_entropy = 68,
1: - tegra_clk_entropy_8 = 69,
1: - tegra_clk_epp = 70,
1: - tegra_clk_epp_8 = 71,
1: - tegra_clk_extern1 = 72,
1: - tegra_clk_extern2 = 73,
1: - tegra_clk_extern3 = 74,
1: - tegra_clk_fuse = 75,
1: - tegra_clk_fuse_burn = 76,
1: - tegra_clk_gpu = 77,
1: - tegra_clk_gr2d = 78,
1: - tegra_clk_gr2d_8 = 79,
1: - tegra_clk_gr3d = 80,
1: - tegra_clk_gr3d_8 = 81,
1: - tegra_clk_hclk = 82,
1: - tegra_clk_hda = 83,
1: - tegra_clk_hda_8 = 84,
1: - tegra_clk_hda2codec_2x = 85,
1: - tegra_clk_hda2codec_2x_8 = 86,
1: - tegra_clk_hda2hdmi = 87,
1: - tegra_clk_hdmi = 88,
1: - tegra_clk_hdmi_audio = 89,
1: - tegra_clk_host1x = 90,
1: - tegra_clk_host1x_8 = 91,
1: - tegra_clk_host1x_9 = 92,
1: - tegra_clk_hsic_trk = 93,
1: - tegra_clk_i2c1 = 94,
1: - tegra_clk_i2c2 = 95,
1: - tegra_clk_i2c3 = 96,
1: - tegra_clk_i2c4 = 97,
1: - tegra_clk_i2c5 = 98,
1: - tegra_clk_i2c6 = 99,
1: - tegra_clk_i2cslow = 100,
1: - tegra_clk_i2s0 = 101,
1: - tegra_clk_i2s0_sync = 102,
1: - tegra_clk_i2s1 = 103,
1: - tegra_clk_i2s1_sync = 104,
1: - tegra_clk_i2s2 = 105,
1: - tegra_clk_i2s2_sync = 106,
1: - tegra_clk_i2s3 = 107,
1: - tegra_clk_i2s3_sync = 108,
1: - tegra_clk_i2s4 = 109,
1: - tegra_clk_i2s4_sync = 110,
1: - tegra_clk_isp = 111,
1: - tegra_clk_isp_8 = 112,
1: - tegra_clk_isp_9 = 113,
1: - tegra_clk_ispb = 114,
1: - tegra_clk_kbc = 115,
1: - tegra_clk_kfuse = 116,
1: - tegra_clk_la = 117,
1: - tegra_clk_maud = 118,
1: - tegra_clk_mipi = 119,
1: - tegra_clk_mipibif = 120,
1: - tegra_clk_mipi_cal = 121,
1: - tegra_clk_mpe = 122,
1: - tegra_clk_mselect = 123,
1: - tegra_clk_msenc = 124,
1: - tegra_clk_ndflash = 125,
1: - tegra_clk_ndflash_8 = 126,
1: - tegra_clk_ndspeed = 127,
1: - tegra_clk_ndspeed_8 = 128,
1: - tegra_clk_nor = 129,
1: - tegra_clk_nvdec = 130,
1: - tegra_clk_nvenc = 131,
1: - tegra_clk_nvjpg = 132,
1: - tegra_clk_owr = 133,
1: - tegra_clk_owr_8 = 134,
1: - tegra_clk_pcie = 135,
1: - tegra_clk_pclk = 136,
1: - tegra_clk_pll_a = 137,
1: - tegra_clk_pll_a_out0 = 138,
1: - tegra_clk_pll_a1 = 139,
1: - tegra_clk_pll_c = 140,
1: - tegra_clk_pll_c2 = 141,
1: - tegra_clk_pll_c3 = 142,
1: - tegra_clk_pll_c4 = 143,
1: - tegra_clk_pll_c4_out0 = 144,
1: - tegra_clk_pll_c4_out1 = 145,
1: - tegra_clk_pll_c4_out2 = 146,
1: - tegra_clk_pll_c4_out3 = 147,
1: - tegra_clk_pll_c_out1 = 148,
1: - tegra_clk_pll_d = 149,
1: - tegra_clk_pll_d2 = 150,
1: - tegra_clk_pll_d2_out0 = 151,
1: - tegra_clk_pll_d_out0 = 152,
1: - tegra_clk_pll_dp = 153,
1: - tegra_clk_pll_e_out0 = 154,
1: - tegra_clk_pll_g_ref = 155,
1: - tegra_clk_pll_m = 156,
1: - tegra_clk_pll_m_out1 = 157,
1: - tegra_clk_pll_mb = 158,
1: - tegra_clk_pll_p = 159,
1: - tegra_clk_pll_p_out1 = 160,
1: - tegra_clk_pll_p_out2 = 161,
1: - tegra_clk_pll_p_out2_int = 162,
1: - tegra_clk_pll_p_out3 = 163,
1: - tegra_clk_pll_p_out4 = 164,
1: - tegra_clk_pll_p_out4_cpu = 165,
1: - tegra_clk_pll_p_out5 = 166,
1: - tegra_clk_pll_p_out_hsio = 167,
1: - tegra_clk_pll_p_out_xusb = 168,
1: - tegra_clk_pll_p_out_cpu = 169,
1: - tegra_clk_pll_p_out_adsp = 170,
1: - tegra_clk_pll_ref = 171,
1: - tegra_clk_pll_re_out = 172,
1: - tegra_clk_pll_re_vco = 173,
1: - tegra_clk_pll_u = 174,
1: - tegra_clk_pll_u_out = 175,
1: - tegra_clk_pll_u_out1 = 176,
1: - tegra_clk_pll_u_out2 = 177,
1: - tegra_clk_pll_u_12m = 178,
1: - tegra_clk_pll_u_480m = 179,
1: - tegra_clk_pll_u_48m = 180,
1: - tegra_clk_pll_u_60m = 181,
1: - tegra_clk_pll_x = 182,
1: - tegra_clk_pll_x_out0 = 183,
1: - tegra_clk_pwm = 184,
1: - tegra_clk_qspi = 185,
1: - tegra_clk_rtc = 186,
1: - tegra_clk_sata = 187,
1: - tegra_clk_sata_8 = 188,
1: - tegra_clk_sata_cold = 189,
1: - tegra_clk_sata_oob = 190,
1: - tegra_clk_sata_oob_8 = 191,
1: - tegra_clk_sbc1 = 192,
1: - tegra_clk_sbc1_8 = 193,
1: - tegra_clk_sbc1_9 = 194,
1: - tegra_clk_sbc2 = 195,
1: - tegra_clk_sbc2_8 = 196,
1: - tegra_clk_sbc2_9 = 197,
1: - tegra_clk_sbc3 = 198,
1: - tegra_clk_sbc3_8 = 199,
1: - tegra_clk_sbc3_9 = 200,
1: - tegra_clk_sbc4 = 201,
1: - tegra_clk_sbc4_8 = 202,
1: - tegra_clk_sbc4_9 = 203,
1: - tegra_clk_sbc5 = 204,
1: - tegra_clk_sbc5_8 = 205,
1: - tegra_clk_sbc6 = 206,
1: - tegra_clk_sbc6_8 = 207,
1: - tegra_clk_sclk = 208,
1: - tegra_clk_sdmmc_legacy = 209,
1: - tegra_clk_sdmmc1 = 210,
1: - tegra_clk_sdmmc1_8 = 211,
1: - tegra_clk_sdmmc1_9 = 212,
1: - tegra_clk_sdmmc2 = 213,
1: - tegra_clk_sdmmc2_8 = 214,
1: - tegra_clk_sdmmc3 = 215,
1: - tegra_clk_sdmmc3_8 = 216,
1: - tegra_clk_sdmmc3_9 = 217,
1: - tegra_clk_sdmmc4 = 218,
1: - tegra_clk_sdmmc4_8 = 219,
1: - tegra_clk_se = 220,
1: - tegra_clk_se_10 = 221,
1: - tegra_clk_soc_therm = 222,
1: - tegra_clk_soc_therm_8 = 223,
1: - tegra_clk_sor0 = 224,
1: - tegra_clk_sor0_out = 225,
1: - tegra_clk_sor1 = 226,
1: - tegra_clk_sor1_out = 227,
1: - tegra_clk_spdif = 228,
1: - tegra_clk_spdif_2x = 229,
1: - tegra_clk_spdif_in = 230,
1: - tegra_clk_spdif_in_8 = 231,
1: - tegra_clk_spdif_in_sync = 232,
1: - tegra_clk_spdif_mux = 233,
1: - tegra_clk_spdif_out = 234,
1: - tegra_clk_timer = 235,
1: - tegra_clk_trace = 236,
1: - tegra_clk_tsec = 237,
1: - tegra_clk_tsec_8 = 238,
1: - tegra_clk_tsecb = 239,
1: - tegra_clk_tsensor = 240,
1: - tegra_clk_tvdac = 241,
1: - tegra_clk_tvo = 242,
1: - tegra_clk_uarta = 243,
1: - tegra_clk_uarta_8 = 244,
1: - tegra_clk_uartb = 245,
1: - tegra_clk_uartb_8 = 246,
1: - tegra_clk_uartc = 247,
1: - tegra_clk_uartc_8 = 248,
1: - tegra_clk_uartd = 249,
1: - tegra_clk_uartd_8 = 250,
1: - tegra_clk_uarte = 251,
1: - tegra_clk_uarte_8 = 252,
1: - tegra_clk_uartape = 253,
1: - tegra_clk_usb2 = 254,
1: - tegra_clk_usb2_hsic_trk = 255,
1: - tegra_clk_usb2_trk = 256,
1: - tegra_clk_usb3 = 257,
1: - tegra_clk_usbd = 258,
1: - tegra_clk_vcp = 259,
1: - tegra_clk_vde = 260,
1: - tegra_clk_vde_8 = 261,
1: - tegra_clk_vfir = 262,
1: - tegra_clk_vi = 263,
1: - tegra_clk_vi_8 = 264,
1: - tegra_clk_vi_9 = 265,
1: - tegra_clk_vi_10 = 266,
1: - tegra_clk_vi_i2c = 267,
1: - tegra_clk_vic03 = 268,
1: - tegra_clk_vic03_8 = 269,
1: - tegra_clk_vim2_clk = 270,
1: - tegra_clk_vimclk_sync = 271,
1: - tegra_clk_vi_sensor = 272,
1: - tegra_clk_vi_sensor_8 = 273,
1: - tegra_clk_vi_sensor_9 = 274,
1: - tegra_clk_vi_sensor2 = 275,
1: - tegra_clk_vi_sensor2_8 = 276,
1: - tegra_clk_xusb_dev = 277,
1: - tegra_clk_xusb_dev_src = 278,
1: - tegra_clk_xusb_dev_src_8 = 279,
1: - tegra_clk_xusb_falcon_src = 280,
1: - tegra_clk_xusb_falcon_src_8 = 281,
1: - tegra_clk_xusb_fs_src = 282,
1: - tegra_clk_xusb_gate = 283,
1: - tegra_clk_xusb_host = 284,
1: - tegra_clk_xusb_host_src = 285,
1: - tegra_clk_xusb_host_src_8 = 286,
1: - tegra_clk_xusb_hs_src = 287,
1: - tegra_clk_xusb_hs_src_4 = 288,
1: - tegra_clk_xusb_ss = 289,
1: - tegra_clk_xusb_ss_src = 290,
1: - tegra_clk_xusb_ss_src_8 = 291,
1: - tegra_clk_xusb_ss_div2 = 292,
1: - tegra_clk_xusb_ssp_src = 293,
1: - tegra_clk_sclk_mux = 294,
1: - tegra_clk_sor_safe = 295,
1: - tegra_clk_cec = 296,
1: - tegra_clk_ispa = 297,
1: - tegra_clk_dmic1 = 298,
1: - tegra_clk_dmic2 = 299,
1: - tegra_clk_dmic3 = 300,
1: - tegra_clk_dmic1_sync_clk = 301,
1: - tegra_clk_dmic2_sync_clk = 302,
1: - tegra_clk_dmic3_sync_clk = 303,
1: - tegra_clk_dmic1_sync_clk_mux = 304,
1: - tegra_clk_dmic2_sync_clk_mux = 305,
1: - tegra_clk_dmic3_sync_clk_mux = 306,
1: - tegra_clk_iqc1 = 307,
1: - tegra_clk_iqc2 = 308,
1: - tegra_clk_pll_a_out_adsp = 309,
1: - tegra_clk_pll_a_out0_out_adsp = 310,
1: - tegra_clk_adsp = 311,
1: - tegra_clk_adsp_neon = 312,
1: - tegra_clk_max = 313,
1: + tegra_clk_actmon = 0,
1: + tegra_clk_adx = 1,
1: + tegra_clk_adx1 = 2,
1: + tegra_clk_afi = 3,
1: + tegra_clk_amx = 4,
1: + tegra_clk_amx1 = 5,
1: + tegra_clk_apb2ape = 6,
1: + tegra_clk_ahbdma = 7,
1: + tegra_clk_apbdma = 8,
1: + tegra_clk_apbif = 9,
1: + tegra_clk_ape = 10,
1: + tegra_clk_audio0 = 11,
1: + tegra_clk_audio0_2x = 12,
1: + tegra_clk_audio0_mux = 13,
1: + tegra_clk_audio1 = 14,
1: + tegra_clk_audio1_2x = 15,
1: + tegra_clk_audio1_mux = 16,
1: + tegra_clk_audio2 = 17,
1: + tegra_clk_audio2_2x = 18,
1: + tegra_clk_audio2_mux = 19,
1: + tegra_clk_audio3 = 20,
1: + tegra_clk_audio3_2x = 21,
1: + tegra_clk_audio3_mux = 22,
1: + tegra_clk_audio4 = 23,
1: + tegra_clk_audio4_2x = 24,
1: + tegra_clk_audio4_mux = 25,
1: + tegra_clk_bsea = 26,
1: + tegra_clk_bsev = 27,
1: + tegra_clk_cclk_g = 28,
1: + tegra_clk_cclk_lp = 29,
1: + tegra_clk_cilab = 30,
1: + tegra_clk_cilcd = 31,
1: + tegra_clk_cile = 32,
1: + tegra_clk_clk_32k = 33,
1: + tegra_clk_clk72Mhz = 34,
1: + tegra_clk_clk72Mhz_8 = 35,
1: + tegra_clk_clk_m = 36,
1: + tegra_clk_osc = 37,
1: + tegra_clk_osc_div2 = 38,
1: + tegra_clk_osc_div4 = 39,
1: + tegra_clk_cml0 = 40,
1: + tegra_clk_cml1 = 41,
1: + tegra_clk_csi = 42,
1: + tegra_clk_csite = 43,
1: + tegra_clk_csite_8 = 44,
1: + tegra_clk_csus = 45,
1: + tegra_clk_cve = 46,
1: + tegra_clk_dam0 = 47,
1: + tegra_clk_dam1 = 48,
1: + tegra_clk_dam2 = 49,
1: + tegra_clk_d_audio = 50,
1: + tegra_clk_dbgapb = 51,
1: + tegra_clk_dds = 52,
1: + tegra_clk_dfll_ref = 53,
1: + tegra_clk_dfll_soc = 54,
1: + tegra_clk_disp1 = 55,
1: + tegra_clk_disp1_8 = 56,
1: + tegra_clk_disp2 = 57,
1: + tegra_clk_disp2_8 = 58,
1: + tegra_clk_dp2 = 59,
1: + tegra_clk_dpaux = 60,
1: + tegra_clk_dpaux1 = 61,
1: + tegra_clk_dsialp = 62,
1: + tegra_clk_dsia_mux = 63,
1: + tegra_clk_dsiblp = 64,
1: + tegra_clk_dsib_mux = 65,
1: + tegra_clk_dtv = 66,
1: + tegra_clk_emc = 67,
1: + tegra_clk_entropy = 68,
1: + tegra_clk_entropy_8 = 69,
1: + tegra_clk_epp = 70,
1: + tegra_clk_epp_8 = 71,
1: + tegra_clk_extern1 = 72,
1: + tegra_clk_extern2 = 73,
1: + tegra_clk_extern3 = 74,
1: + tegra_clk_fuse = 75,
1: + tegra_clk_fuse_burn = 76,
1: + tegra_clk_gpu = 77,
1: + tegra_clk_gr2d = 78,
1: + tegra_clk_gr2d_8 = 79,
1: + tegra_clk_gr3d = 80,
1: + tegra_clk_gr3d_8 = 81,
1: + tegra_clk_hclk = 82,
1: + tegra_clk_hda = 83,
1: + tegra_clk_hda_8 = 84,
1: + tegra_clk_hda2codec_2x = 85,
1: + tegra_clk_hda2codec_2x_8 = 86,
1: + tegra_clk_hda2hdmi = 87,
1: + tegra_clk_hdmi = 88,
1: + tegra_clk_hdmi_audio = 89,
1: + tegra_clk_host1x = 90,
1: + tegra_clk_host1x_8 = 91,
1: + tegra_clk_host1x_9 = 92,
1: + tegra_clk_hsic_trk = 93,
1: + tegra_clk_i2c1 = 94,
1: + tegra_clk_i2c2 = 95,
1: + tegra_clk_i2c3 = 96,
1: + tegra_clk_i2c4 = 97,
1: + tegra_clk_i2c5 = 98,
1: + tegra_clk_i2c6 = 99,
1: + tegra_clk_i2cslow = 100,
1: + tegra_clk_i2s0 = 101,
1: + tegra_clk_i2s0_sync = 102,
1: + tegra_clk_i2s1 = 103,
1: + tegra_clk_i2s1_sync = 104,
1: + tegra_clk_i2s2 = 105,
1: + tegra_clk_i2s2_sync = 106,
1: + tegra_clk_i2s3 = 107,
1: + tegra_clk_i2s3_sync = 108,
1: + tegra_clk_i2s4 = 109,
1: + tegra_clk_i2s4_sync = 110,
1: + tegra_clk_isp = 111,
1: + tegra_clk_isp_8 = 112,
1: + tegra_clk_isp_9 = 113,
1: + tegra_clk_ispb = 114,
1: + tegra_clk_kbc = 115,
1: + tegra_clk_kfuse = 116,
1: + tegra_clk_la = 117,
1: + tegra_clk_maud = 118,
1: + tegra_clk_mipi = 119,
1: + tegra_clk_mipibif = 120,
1: + tegra_clk_mipi_cal = 121,
1: + tegra_clk_mpe = 122,
1: + tegra_clk_mselect = 123,
1: + tegra_clk_msenc = 124,
1: + tegra_clk_ndflash = 125,
1: + tegra_clk_ndflash_8 = 126,
1: + tegra_clk_ndspeed = 127,
1: + tegra_clk_ndspeed_8 = 128,
1: + tegra_clk_nor = 129,
1: + tegra_clk_nvdec = 130,
1: + tegra_clk_nvenc = 131,
1: + tegra_clk_nvjpg = 132,
1: + tegra_clk_owr = 133,
1: + tegra_clk_owr_8 = 134,
1: + tegra_clk_pcie = 135,
1: + tegra_clk_pclk = 136,
1: + tegra_clk_pll_a = 137,
1: + tegra_clk_pll_a_out0 = 138,
1: + tegra_clk_pll_a1 = 139,
1: + tegra_clk_pll_c = 140,
1: + tegra_clk_pll_c2 = 141,
1: + tegra_clk_pll_c3 = 142,
1: + tegra_clk_pll_c4 = 143,
1: + tegra_clk_pll_c4_out0 = 144,
1: + tegra_clk_pll_c4_out1 = 145,
1: + tegra_clk_pll_c4_out2 = 146,
1: + tegra_clk_pll_c4_out3 = 147,
1: + tegra_clk_pll_c_out1 = 148,
1: + tegra_clk_pll_d = 149,
1: + tegra_clk_pll_d2 = 150,
1: + tegra_clk_pll_d2_out0 = 151,
1: + tegra_clk_pll_d_out0 = 152,
1: + tegra_clk_pll_dp = 153,
1: + tegra_clk_pll_e_out0 = 154,
1: + tegra_clk_pll_g_ref = 155,
1: + tegra_clk_pll_m = 156,
1: + tegra_clk_pll_m_out1 = 157,
1: + tegra_clk_pll_mb = 158,
1: + tegra_clk_pll_p = 159,
1: + tegra_clk_pll_p_out1 = 160,
1: + tegra_clk_pll_p_out2 = 161,
1: + tegra_clk_pll_p_out2_int = 162,
1: + tegra_clk_pll_p_out3 = 163,
1: + tegra_clk_pll_p_out4 = 164,
1: + tegra_clk_pll_p_out4_cpu = 165,
1: + tegra_clk_pll_p_out5 = 166,
1: + tegra_clk_pll_p_out_hsio = 167,
1: + tegra_clk_pll_p_out_xusb = 168,
1: + tegra_clk_pll_p_out_cpu = 169,
1: + tegra_clk_pll_p_out_adsp = 170,
1: + tegra_clk_pll_ref = 171,
1: + tegra_clk_pll_re_out = 172,
1: + tegra_clk_pll_re_vco = 173,
1: + tegra_clk_pll_u = 174,
1: + tegra_clk_pll_u_out = 175,
1: + tegra_clk_pll_u_out1 = 176,
1: + tegra_clk_pll_u_out2 = 177,
1: + tegra_clk_pll_u_12m = 178,
1: + tegra_clk_pll_u_480m = 179,
1: + tegra_clk_pll_u_48m = 180,
1: + tegra_clk_pll_u_60m = 181,
1: + tegra_clk_pll_x = 182,
1: + tegra_clk_pll_x_out0 = 183,
1: + tegra_clk_pwm = 184,
1: + tegra_clk_qspi = 185,
1: + tegra_clk_rtc = 186,
1: + tegra_clk_sata = 187,
1: + tegra_clk_sata_8 = 188,
1: + tegra_clk_sata_cold = 189,
1: + tegra_clk_sata_oob = 190,
1: + tegra_clk_sata_oob_8 = 191,
1: + tegra_clk_sbc1 = 192,
1: + tegra_clk_sbc1_8 = 193,
1: + tegra_clk_sbc1_9 = 194,
1: + tegra_clk_sbc2 = 195,
1: + tegra_clk_sbc2_8 = 196,
1: + tegra_clk_sbc2_9 = 197,
1: + tegra_clk_sbc3 = 198,
1: + tegra_clk_sbc3_8 = 199,
1: + tegra_clk_sbc3_9 = 200,
1: + tegra_clk_sbc4 = 201,
1: + tegra_clk_sbc4_8 = 202,
1: + tegra_clk_sbc4_9 = 203,
1: + tegra_clk_sbc5 = 204,
1: + tegra_clk_sbc5_8 = 205,
1: + tegra_clk_sbc6 = 206,
1: + tegra_clk_sbc6_8 = 207,
1: + tegra_clk_sclk = 208,
1: + tegra_clk_sdmmc_legacy = 209,
1: + tegra_clk_sdmmc1 = 210,
1: + tegra_clk_sdmmc1_8 = 211,
1: + tegra_clk_sdmmc1_9 = 212,
1: + tegra_clk_sdmmc2 = 213,
1: + tegra_clk_sdmmc2_8 = 214,
1: + tegra_clk_sdmmc3 = 215,
1: + tegra_clk_sdmmc3_8 = 216,
1: + tegra_clk_sdmmc3_9 = 217,
1: + tegra_clk_sdmmc4 = 218,
1: + tegra_clk_sdmmc4_8 = 219,
1: + tegra_clk_se = 220,
1: + tegra_clk_se_10 = 221,
1: + tegra_clk_soc_therm = 222,
1: + tegra_clk_soc_therm_8 = 223,
1: + tegra_clk_sor0 = 224,
1: + tegra_clk_sor0_out = 225,
1: + tegra_clk_sor1 = 226,
1: + tegra_clk_sor1_out = 227,
1: + tegra_clk_spdif = 228,
1: + tegra_clk_spdif_2x = 229,
1: + tegra_clk_spdif_in = 230,
1: + tegra_clk_spdif_in_8 = 231,
1: + tegra_clk_spdif_in_sync = 232,
1: + tegra_clk_spdif_mux = 233,
1: + tegra_clk_spdif_out = 234,
1: + tegra_clk_timer = 235,
1: + tegra_clk_trace = 236,
1: + tegra_clk_tsec = 237,
1: + tegra_clk_tsec_8 = 238,
1: + tegra_clk_tsecb = 239,
1: + tegra_clk_tsensor = 240,
1: + tegra_clk_tvdac = 241,
1: + tegra_clk_tvo = 242,
1: + tegra_clk_uarta = 243,
1: + tegra_clk_uarta_8 = 244,
1: + tegra_clk_uartb = 245,
1: + tegra_clk_uartb_8 = 246,
1: + tegra_clk_uartc = 247,
1: + tegra_clk_uartc_8 = 248,
1: + tegra_clk_uartd = 249,
1: + tegra_clk_uartd_8 = 250,
1: + tegra_clk_uarte = 251,
1: + tegra_clk_uarte_8 = 252,
1: + tegra_clk_uartape = 253,
1: + tegra_clk_usb2 = 254,
1: + tegra_clk_usb2_hsic_trk = 255,
1: + tegra_clk_usb2_trk = 256,
1: + tegra_clk_usb3 = 257,
1: + tegra_clk_usbd = 258,
1: + tegra_clk_vcp = 259,
1: + tegra_clk_vde = 260,
1: + tegra_clk_vde_8 = 261,
1: + tegra_clk_vfir = 262,
1: + tegra_clk_vi = 263,
1: + tegra_clk_vi_8 = 264,
1: + tegra_clk_vi_9 = 265,
1: + tegra_clk_vi_10 = 266,
1: + tegra_clk_vi_i2c = 267,
1: + tegra_clk_vic03 = 268,
1: + tegra_clk_vic03_8 = 269,
1: + tegra_clk_vim2_clk = 270,
1: + tegra_clk_vimclk_sync = 271,
1: + tegra_clk_vi_sensor = 272,
1: + tegra_clk_vi_sensor_8 = 273,
1: + tegra_clk_vi_sensor_9 = 274,
1: + tegra_clk_vi_sensor2 = 275,
1: + tegra_clk_vi_sensor2_8 = 276,
1: + tegra_clk_xusb_dev = 277,
1: + tegra_clk_xusb_dev_src = 278,
1: + tegra_clk_xusb_dev_src_8 = 279,
1: + tegra_clk_xusb_falcon_src = 280,
1: + tegra_clk_xusb_falcon_src_8 = 281,
1: + tegra_clk_xusb_fs_src = 282,
1: + tegra_clk_xusb_gate = 283,
1: + tegra_clk_xusb_host = 284,
1: + tegra_clk_xusb_host_src = 285,
1: + tegra_clk_xusb_host_src_8 = 286,
1: + tegra_clk_xusb_hs_src = 287,
1: + tegra_clk_xusb_hs_src_4 = 288,
1: + tegra_clk_xusb_ss = 289,
1: + tegra_clk_xusb_ss_src = 290,
1: + tegra_clk_xusb_ss_src_8 = 291,
1: + tegra_clk_xusb_ss_div2 = 292,
1: + tegra_clk_xusb_ssp_src = 293,
1: + tegra_clk_sclk_mux = 294,
1: + tegra_clk_sor_safe = 295,
1: + tegra_clk_cec = 296,
1: + tegra_clk_ispa = 297,
1: + tegra_clk_dmic1 = 298,
1: + tegra_clk_dmic2 = 299,
1: + tegra_clk_dmic3 = 300,
1: + tegra_clk_dmic1_sync_clk = 301,
1: + tegra_clk_dmic2_sync_clk = 302,
1: + tegra_clk_dmic3_sync_clk = 303,
1: + tegra_clk_dmic1_sync_clk_mux = 304,
1: + tegra_clk_dmic2_sync_clk_mux = 305,
1: + tegra_clk_dmic3_sync_clk_mux = 306,
1: + tegra_clk_iqc1 = 307,
1: + tegra_clk_iqc2 = 308,
1: + tegra_clk_pll_a_out_adsp = 309,
1: + tegra_clk_pll_a_out0_out_adsp = 310,
1: + tegra_clk_adsp = 311,
1: + tegra_clk_adsp_neon = 312,
1: + tegra_clk_max = 313,
1: };
1:
1: struct tegra_sync_source_initdata {
1: - char *name;
1: - long unsigned int rate;
1: - long unsigned int max_rate;
1: - int clk_id;
1: + char *name;
1: + long unsigned int rate;
1: + long unsigned int max_rate;
1: + int clk_id;
1: };
1:
1: struct tegra_audio_clk_initdata {
1: - char *gate_name;
1: - char *mux_name;
1: - u32 offset;
1: - int gate_clk_id;
1: - int mux_clk_id;
1: + char *gate_name;
1: + char *mux_name;
1: + u32 offset;
1: + int gate_clk_id;
1: + int mux_clk_id;
1: };
1:
1: struct tegra_audio2x_clk_initdata {
1: - char *parent;
1: - char *gate_name;
1: - char *name_2x;
1: - char *div_name;
1: - int clk_id;
1: - int clk_num;
1: - u8 div_offset;
1: + char *parent;
1: + char *gate_name;
1: + char *name_2x;
1: + char *div_name;
1: + int clk_id;
1: + int clk_num;
1: + u8 div_offset;
1: };
1:
1: struct pll_out_data {
1: - char *div_name;
1: - char *pll_out_name;
1: - u32 offset;
1: - int clk_id;
1: - u8 div_shift;
1: - u8 div_flags;
1: - u8 rst_shift;
1: - spinlock_t *lock;
1: + char *div_name;
1: + char *pll_out_name;
1: + u32 offset;
1: + int clk_id;
1: + u8 div_shift;
1: + u8 div_flags;
1: + u8 rst_shift;
1: + spinlock_t *lock;
1: };
1:
1: enum tegra_super_gen {
1: - gen4 = 4,
1: - gen5 = 5,
1: + gen4 = 4,
1: + gen5 = 5,
1: };
1:
1: struct tegra_super_gen_info {
1: - enum tegra_super_gen gen;
1: - const char **sclk_parents;
1: - const char **cclk_g_parents;
1: - const char **cclk_lp_parents;
1: - int num_sclk_parents;
1: - int num_cclk_g_parents;
1: - int num_cclk_lp_parents;
1: + enum tegra_super_gen gen;
1: + const char **sclk_parents;
1: + const char **cclk_g_parents;
1: + const char **cclk_lp_parents;
1: + int num_sclk_parents;
1: + int num_cclk_g_parents;
1: + int num_cclk_lp_parents;
1: };
1:
1: enum tegra_revision {
1: - TEGRA_REVISION_UNKNOWN = 0,
1: - TEGRA_REVISION_A01 = 1,
1: - TEGRA_REVISION_A02 = 2,
1: - TEGRA_REVISION_A03 = 3,
1: - TEGRA_REVISION_A03p = 4,
1: - TEGRA_REVISION_A04 = 5,
1: - TEGRA_REVISION_MAX = 6,
1: + TEGRA_REVISION_UNKNOWN = 0,
1: + TEGRA_REVISION_A01 = 1,
1: + TEGRA_REVISION_A02 = 2,
1: + TEGRA_REVISION_A03 = 3,
1: + TEGRA_REVISION_A03p = 4,
1: + TEGRA_REVISION_A04 = 5,
1: + TEGRA_REVISION_MAX = 6,
1: };
1:
1: struct tegra_sku_info {
1: - int sku_id;
1: - int cpu_process_id;
1: - int cpu_speedo_id;
1: - int cpu_speedo_value;
1: - int cpu_iddq_value;
1: - int soc_process_id;
1: - int soc_speedo_id;
1: - int soc_speedo_value;
1: - int gpu_process_id;
1: - int gpu_speedo_id;
1: - int gpu_speedo_value;
1: - enum tegra_revision revision;
1: + int sku_id;
1: + int cpu_process_id;
1: + int cpu_speedo_id;
1: + int cpu_speedo_value;
1: + int cpu_iddq_value;
1: + int soc_process_id;
1: + int soc_speedo_id;
1: + int soc_speedo_value;
1: + int gpu_process_id;
1: + int gpu_speedo_id;
1: + int gpu_speedo_value;
1: + enum tegra_revision revision;
1: };
1:
1: struct dfll_fcpu_data {
1: - const long unsigned int *cpu_max_freq_table;
1: - unsigned int cpu_max_freq_table_size;
1: - const struct cvb_table *cpu_cvb_tables;
1: - unsigned int cpu_cvb_tables_size;
1: + const long unsigned int *cpu_max_freq_table;
1: + unsigned int cpu_max_freq_table_size;
1: + const struct cvb_table *cpu_cvb_tables;
1: + unsigned int cpu_cvb_tables_size;
1: };
1:
1: struct cpu_clk_suspend_context {
1: - u32 clk_csite_src;
1: - u32 cclkg_burst;
1: - u32 cclkg_divider;
1: + u32 clk_csite_src;
1: + u32 cclkg_burst;
1: + u32 cclkg_divider;
1: };
1:
1: enum {
1: - DOWN___2 = 0,
1: - UP___2 = 1,
1: + DOWN___2 = 0,
1: + UP___2 = 1,
1: };
1:
1: struct cpu_clk_suspend_context___2 {
1: - u32 clk_csite_src;
1: + u32 clk_csite_src;
1: };
1:
1: struct tegra210_domain_mbist_war {
1: - void (*handle_lvl2_ovr)(struct tegra210_domain_mbist_war *);
1: - const u32 lvl2_offset;
1: - const u32 lvl2_mask;
1: - const unsigned int num_clks;
1: - const unsigned int *clk_init_data;
1: - struct clk_bulk_data *clks;
1: + void (*handle_lvl2_ovr)(struct tegra210_domain_mbist_war *);
1: + const u32 lvl2_offset;
1: + const u32 lvl2_mask;
1: + const unsigned int num_clks;
1: + const unsigned int *clk_init_data;
1: + struct clk_bulk_data *clks;
1: };
1:
1: struct utmi_clk_param___2 {
1: - u32 osc_frequency;
1: - u8 enable_delay_count;
1: - u16 stable_count;
1: - u8 active_delay_count;
1: - u16 xtal_freq_count;
1: + u32 osc_frequency;
1: + u8 enable_delay_count;
1: + u16 stable_count;
1: + u8 active_delay_count;
1: + u16 xtal_freq_count;
1: };
1:
1: struct tegra210_clk_emc_config {
1: - long unsigned int rate;
1: - bool same_freq;
1: - u32 value;
1: - long unsigned int parent_rate;
1: - u8 parent;
1: + long unsigned int rate;
1: + bool same_freq;
1: + u32 value;
1: + long unsigned int parent_rate;
1: + u8 parent;
1: };
1:
1: struct tegra210_clk_emc_provider {
1: - struct module *owner;
1: - struct device *dev;
1: - struct tegra210_clk_emc_config *configs;
1: - unsigned int num_configs;
1: - int (*set_rate)(struct device *, const struct tegra210_clk_emc_config *);
1: + struct module *owner;
1: + struct device *dev;
1: + struct tegra210_clk_emc_config *configs;
1: + unsigned int num_configs;
1: + int (*set_rate)(struct device *, const struct tegra210_clk_emc_config *);
1: };
1:
1: struct tegra210_clk_emc {
1: - struct clk_hw hw;
1: - void *regs;
1: - struct tegra210_clk_emc_provider *provider;
1: - struct clk *parents[8];
1: + struct clk_hw hw;
1: + void *regs;
1: + struct tegra210_clk_emc_provider *provider;
1: + struct clk *parents[8];
1: };
1:
1: enum {
1: - CMD_CLK_GET_RATE = 1,
1: - CMD_CLK_SET_RATE = 2,
1: - CMD_CLK_ROUND_RATE = 3,
1: - CMD_CLK_GET_PARENT = 4,
1: - CMD_CLK_SET_PARENT = 5,
1: - CMD_CLK_IS_ENABLED = 6,
1: - CMD_CLK_ENABLE = 7,
1: - CMD_CLK_DISABLE = 8,
1: - CMD_CLK_GET_ALL_INFO = 14,
1: - CMD_CLK_GET_MAX_CLK_ID = 15,
1: - CMD_CLK_GET_FMAX_AT_VMIN = 16,
1: - CMD_CLK_MAX = 17,
1: + CMD_CLK_GET_RATE = 1,
1: + CMD_CLK_SET_RATE = 2,
1: + CMD_CLK_ROUND_RATE = 3,
1: + CMD_CLK_GET_PARENT = 4,
1: + CMD_CLK_SET_PARENT = 5,
1: + CMD_CLK_IS_ENABLED = 6,
1: + CMD_CLK_ENABLE = 7,
1: + CMD_CLK_DISABLE = 8,
1: + CMD_CLK_GET_ALL_INFO = 14,
1: + CMD_CLK_GET_MAX_CLK_ID = 15,
1: + CMD_CLK_GET_FMAX_AT_VMIN = 16,
1: + CMD_CLK_MAX = 17,
1: };
1:
1: struct cmd_clk_get_rate_request {};
1:
1: struct cmd_clk_get_rate_response {
1: - int64_t rate;
1: + int64_t rate;
1: };
1:
1: struct cmd_clk_set_rate_request {
1: - int32_t unused;
1: - int64_t rate;
1: + int32_t unused;
1: + int64_t rate;
1: } __attribute__((packed));
1:
1: struct cmd_clk_set_rate_response {
1: - int64_t rate;
1: + int64_t rate;
1: };
1:
1: struct cmd_clk_round_rate_request {
1: - int32_t unused;
1: - int64_t rate;
1: + int32_t unused;
1: + int64_t rate;
1: } __attribute__((packed));
1:
1: struct cmd_clk_round_rate_response {
1: - int64_t rate;
1: + int64_t rate;
1: };
1:
1: struct cmd_clk_get_parent_request {};
1:
1: struct cmd_clk_get_parent_response {
1: - uint32_t parent_id;
1: + uint32_t parent_id;
1: };
1:
1: struct cmd_clk_set_parent_request {
1: - uint32_t parent_id;
1: + uint32_t parent_id;
1: };
1:
1: struct cmd_clk_set_parent_response {
1: - uint32_t parent_id;
1: + uint32_t parent_id;
1: };
1:
1: struct cmd_clk_is_enabled_request {};
1:
1: struct cmd_clk_is_enabled_response {
1: - int32_t state;
1: + int32_t state;
1: };
1:
1: struct cmd_clk_enable_request {};
1: @@ -75096,60 +76101,60 @@ struct cmd_clk_disable_request {};
1: struct cmd_clk_get_all_info_request {};
1:
1: struct cmd_clk_get_all_info_response {
1: - uint32_t flags;
1: - uint32_t parent;
1: - uint32_t parents[16];
1: - uint8_t num_parents;
1: - uint8_t name[40];
1: + uint32_t flags;
1: + uint32_t parent;
1: + uint32_t parents[16];
1: + uint8_t num_parents;
1: + uint8_t name[40];
1: } __attribute__((packed));
1:
1: struct cmd_clk_get_max_clk_id_request {};
1:
1: struct cmd_clk_get_max_clk_id_response {
1: - uint32_t max_id;
1: + uint32_t max_id;
1: };
1:
1: struct cmd_clk_get_fmax_at_vmin_request {};
1:
1: struct mrq_clk_request {
1: - uint32_t cmd_and_id;
1: - union {
1: - struct cmd_clk_get_rate_request clk_get_rate;
1: - struct cmd_clk_set_rate_request clk_set_rate;
1: - struct cmd_clk_round_rate_request clk_round_rate;
1: - struct cmd_clk_get_parent_request clk_get_parent;
1: - struct cmd_clk_set_parent_request clk_set_parent;
1: - struct cmd_clk_enable_request clk_enable;
1: - struct cmd_clk_disable_request clk_disable;
1: - struct cmd_clk_is_enabled_request clk_is_enabled;
1: - struct cmd_clk_get_all_info_request clk_get_all_info;
1: - struct cmd_clk_get_max_clk_id_request clk_get_max_clk_id;
1: - struct cmd_clk_get_fmax_at_vmin_request clk_get_fmax_at_vmin;
1: - };
1: + uint32_t cmd_and_id;
1: + union {
1: + struct cmd_clk_get_rate_request clk_get_rate;
1: + struct cmd_clk_set_rate_request clk_set_rate;
1: + struct cmd_clk_round_rate_request clk_round_rate;
1: + struct cmd_clk_get_parent_request clk_get_parent;
1: + struct cmd_clk_set_parent_request clk_set_parent;
1: + struct cmd_clk_enable_request clk_enable;
1: + struct cmd_clk_disable_request clk_disable;
1: + struct cmd_clk_is_enabled_request clk_is_enabled;
1: + struct cmd_clk_get_all_info_request clk_get_all_info;
1: + struct cmd_clk_get_max_clk_id_request clk_get_max_clk_id;
1: + struct cmd_clk_get_fmax_at_vmin_request clk_get_fmax_at_vmin;
1: + };
1: } __attribute__((packed));
1:
1: struct tegra_bpmp_ops;
1:
1: struct tegra_bpmp_soc {
1: - struct {
1: - struct {
1: - unsigned int offset;
1: - unsigned int count;
1: - unsigned int timeout;
1: - } cpu_tx;
1: - struct {
1: - unsigned int offset;
1: - unsigned int count;
1: - unsigned int timeout;
1: - } thread;
1: - struct {
1: - unsigned int offset;
1: - unsigned int count;
1: - unsigned int timeout;
1: - } cpu_rx;
1: - } channels;
1: - const struct tegra_bpmp_ops *ops;
1: - unsigned int num_resets;
1: + struct {
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } cpu_tx;
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } thread;
1: + struct {
1: + unsigned int offset;
1: + unsigned int count;
1: + unsigned int timeout;
1: + } cpu_rx;
1: + } channels;
1: + const struct tegra_bpmp_ops *ops;
1: + unsigned int num_resets;
1: };
1:
1: struct tegra_bpmp;
1: @@ -75157,847 +76162,847 @@ struct tegra_bpmp;
1: struct tegra_bpmp_channel;
1:
1: struct tegra_bpmp_ops {
1: - int (*init)(struct tegra_bpmp *);
1: - void (*deinit)(struct tegra_bpmp *);
1: - bool (*is_response_ready)(struct tegra_bpmp_channel *);
1: - bool (*is_request_ready)(struct tegra_bpmp_channel *);
1: - int (*ack_response)(struct tegra_bpmp_channel *);
1: - int (*ack_request)(struct tegra_bpmp_channel *);
1: - bool (*is_response_channel_free)(struct tegra_bpmp_channel *);
1: - bool (*is_request_channel_free)(struct tegra_bpmp_channel *);
1: - int (*post_response)(struct tegra_bpmp_channel *);
1: - int (*post_request)(struct tegra_bpmp_channel *);
1: - int (*ring_doorbell)(struct tegra_bpmp *);
1: - int (*resume)(struct tegra_bpmp *);
1: + int (*init)(struct tegra_bpmp *);
1: + void (*deinit)(struct tegra_bpmp *);
1: + bool (*is_response_ready)(struct tegra_bpmp_channel *);
1: + bool (*is_request_ready)(struct tegra_bpmp_channel *);
1: + int (*ack_response)(struct tegra_bpmp_channel *);
1: + int (*ack_request)(struct tegra_bpmp_channel *);
1: + bool (*is_response_channel_free)(struct tegra_bpmp_channel *);
1: + bool (*is_request_channel_free)(struct tegra_bpmp_channel *);
1: + int (*post_response)(struct tegra_bpmp_channel *);
1: + int (*post_request)(struct tegra_bpmp_channel *);
1: + int (*ring_doorbell)(struct tegra_bpmp *);
1: + int (*resume)(struct tegra_bpmp *);
1: };
1:
1: struct tegra_bpmp_mb_data {
1: - u32 code;
1: - u32 flags;
1: - u8 data[120];
1: + u32 code;
1: + u32 flags;
1: + u8 data[120];
1: };
1:
1: struct tegra_ivc;
1:
1: struct tegra_bpmp_channel {
1: - struct tegra_bpmp *bpmp;
1: - struct tegra_bpmp_mb_data *ib;
1: - struct tegra_bpmp_mb_data *ob;
1: - struct completion completion;
1: - struct tegra_ivc *ivc;
1: - unsigned int index;
1: + struct tegra_bpmp *bpmp;
1: + struct tegra_bpmp_mb_data *ib;
1: + struct tegra_bpmp_mb_data *ob;
1: + struct completion completion;
1: + struct tegra_ivc *ivc;
1: + unsigned int index;
1: };
1:
1: struct tegra_bpmp_clk;
1:
1: struct tegra_bpmp {
1: - const struct tegra_bpmp_soc *soc;
1: - struct device *dev;
1: - void *priv;
1: - struct {
1: - struct mbox_client client;
1: - struct mbox_chan___2 *channel;
1: - } mbox;
1: - spinlock_t atomic_tx_lock;
1: - struct tegra_bpmp_channel *tx_channel;
1: - struct tegra_bpmp_channel *rx_channel;
1: - struct tegra_bpmp_channel *threaded_channels;
1: - struct {
1: - long unsigned int *allocated;
1: - long unsigned int *busy;
1: - unsigned int count;
1: - struct semaphore lock;
1: - } threaded;
1: - struct list_head mrqs;
1: - spinlock_t lock;
1: - struct tegra_bpmp_clk **clocks;
1: - unsigned int num_clocks;
1: - struct reset_controller_dev rstc;
1: - struct genpd_onecell_data genpd;
1: - struct dentry *debugfs_mirror;
1: + const struct tegra_bpmp_soc *soc;
1: + struct device *dev;
1: + void *priv;
1: + struct {
1: + struct mbox_client client;
1: + struct mbox_chan___2 *channel;
1: + } mbox;
1: + spinlock_t atomic_tx_lock;
1: + struct tegra_bpmp_channel *tx_channel;
1: + struct tegra_bpmp_channel *rx_channel;
1: + struct tegra_bpmp_channel *threaded_channels;
1: + struct {
1: + long unsigned int *allocated;
1: + long unsigned int *busy;
1: + unsigned int count;
1: + struct semaphore lock;
1: + } threaded;
1: + struct list_head mrqs;
1: + spinlock_t lock;
1: + struct tegra_bpmp_clk **clocks;
1: + unsigned int num_clocks;
1: + struct reset_controller_dev rstc;
1: + struct genpd_onecell_data genpd;
1: + struct dentry *debugfs_mirror;
1: };
1:
1: struct tegra_bpmp_clk {
1: - struct clk_hw hw;
1: - struct tegra_bpmp *bpmp;
1: - unsigned int id;
1: - unsigned int num_parents;
1: - unsigned int *parents;
1: + struct clk_hw hw;
1: + struct tegra_bpmp *bpmp;
1: + unsigned int id;
1: + unsigned int num_parents;
1: + unsigned int *parents;
1: };
1:
1: struct tegra_bpmp_message {
1: - unsigned int mrq;
1: - struct {
1: - const void *data;
1: - size_t size;
1: - } tx;
1: - struct {
1: - void *data;
1: - size_t size;
1: - int ret;
1: - } rx;
1: + unsigned int mrq;
1: + struct {
1: + const void *data;
1: + size_t size;
1: + } tx;
1: + struct {
1: + void *data;
1: + size_t size;
1: + int ret;
1: + } rx;
1: };
1:
1: struct tegra_bpmp_clk_info {
1: - unsigned int id;
1: - char name[40];
1: - unsigned int parents[16];
1: - unsigned int num_parents;
1: - long unsigned int flags;
1: + unsigned int id;
1: + char name[40];
1: + unsigned int parents[16];
1: + unsigned int num_parents;
1: + long unsigned int flags;
1: };
1:
1: struct tegra_bpmp_clk_message {
1: - unsigned int cmd;
1: - unsigned int id;
1: - struct {
1: - const void *data;
1: - size_t size;
1: - } tx;
1: - struct {
1: - void *data;
1: - size_t size;
1: - int ret;
1: - } rx;
1: + unsigned int cmd;
1: + unsigned int id;
1: + struct {
1: + const void *data;
1: + size_t size;
1: + } tx;
1: + struct {
1: + void *data;
1: + size_t size;
1: + int ret;
1: + } rx;
1: };
1:
1: struct clk_sp810;
1:
1: struct clk_sp810_timerclken {
1: - struct clk_hw hw;
1: - struct clk *clk;
1: - struct clk_sp810 *sp810;
1: - int channel;
1: + struct clk_hw hw;
1: + struct clk *clk;
1: + struct clk_sp810 *sp810;
1: + int channel;
1: };
1:
1: struct clk_sp810 {
1: - struct device_node *node;
1: - void *base;
1: - spinlock_t lock;
1: - struct clk_sp810_timerclken timerclken[4];
1: + struct device_node *node;
1: + void *base;
1: + spinlock_t lock;
1: + struct clk_sp810_timerclken timerclken[4];
1: };
1:
1: struct vexpress_osc {
1: - struct regmap *reg;
1: - struct clk_hw hw;
1: - long unsigned int rate_min;
1: - long unsigned int rate_max;
1: + struct regmap *reg;
1: + struct clk_hw hw;
1: + long unsigned int rate_min;
1: + long unsigned int rate_max;
1: };
1:
1: struct dma_chan_tbl_ent {
1: - struct dma_chan *chan;
1: + struct dma_chan *chan;
1: };
1:
1: struct dmaengine_unmap_pool {
1: - struct kmem_cache *cache;
1: - const char *name;
1: - mempool_t *pool;
1: - size_t size;
1: + struct kmem_cache *cache;
1: + const char *name;
1: + mempool_t *pool;
1: + size_t size;
1: };
1:
1: struct dmaengine_desc_callback {
1: - dma_async_tx_callback callback;
1: - dma_async_tx_callback_result callback_result;
1: - void *callback_param;
1: + dma_async_tx_callback callback;
1: + dma_async_tx_callback_result callback_result;
1: + void *callback_param;
1: };
1:
1: struct virt_dma_desc {
1: - struct dma_async_tx_descriptor tx;
1: - struct dmaengine_result tx_result;
1: - struct list_head node;
1: + struct dma_async_tx_descriptor tx;
1: + struct dmaengine_result tx_result;
1: + struct list_head node;
1: };
1:
1: struct virt_dma_chan {
1: - struct dma_chan chan;
1: - struct tasklet_struct task;
1: - void (*desc_free)(struct virt_dma_desc *);
1: - spinlock_t lock;
1: - struct list_head desc_allocated;
1: - struct list_head desc_submitted;
1: - struct list_head desc_issued;
1: - struct list_head desc_completed;
1: - struct list_head desc_terminated;
1: - struct virt_dma_desc *cyclic;
1: + struct dma_chan chan;
1: + struct tasklet_struct task;
1: + void (*desc_free)(struct virt_dma_desc *);
1: + spinlock_t lock;
1: + struct list_head desc_allocated;
1: + struct list_head desc_submitted;
1: + struct list_head desc_issued;
1: + struct list_head desc_completed;
1: + struct list_head desc_terminated;
1: + struct virt_dma_desc *cyclic;
1: };
1:
1: struct acpi_table_csrt {
1: - struct acpi_table_header header;
1: + struct acpi_table_header header;
1: };
1:
1: struct acpi_csrt_group {
1: - u32 length;
1: - u32 vendor_id;
1: - u32 subvendor_id;
1: - u16 device_id;
1: - u16 subdevice_id;
1: - u16 revision;
1: - u16 reserved;
1: - u32 shared_info_length;
1: + u32 length;
1: + u32 vendor_id;
1: + u32 subvendor_id;
1: + u16 device_id;
1: + u16 subdevice_id;
1: + u16 revision;
1: + u16 reserved;
1: + u32 shared_info_length;
1: };
1:
1: struct acpi_csrt_shared_info {
1: - u16 major_version;
1: - u16 minor_version;
1: - u32 mmio_base_low;
1: - u32 mmio_base_high;
1: - u32 gsi_interrupt;
1: - u8 interrupt_polarity;
1: - u8 interrupt_mode;
1: - u8 num_channels;
1: - u8 dma_address_width;
1: - u16 base_request_line;
1: - u16 num_handshake_signals;
1: - u32 max_block_size;
1: + u16 major_version;
1: + u16 minor_version;
1: + u32 mmio_base_low;
1: + u32 mmio_base_high;
1: + u32 gsi_interrupt;
1: + u8 interrupt_polarity;
1: + u8 interrupt_mode;
1: + u8 num_channels;
1: + u8 dma_address_width;
1: + u16 base_request_line;
1: + u16 num_handshake_signals;
1: + u32 max_block_size;
1: };
1:
1: struct acpi_dma_spec {
1: - int chan_id;
1: - int slave_id;
1: - struct device *dev;
1: + int chan_id;
1: + int slave_id;
1: + struct device *dev;
1: };
1:
1: struct acpi_dma {
1: - struct list_head dma_controllers;
1: - struct device *dev;
1: - struct dma_chan * (*acpi_dma_xlate)(struct acpi_dma_spec *, struct acpi_dma *);
1: - void *data;
1: - short unsigned int base_request_line;
1: - short unsigned int end_request_line;
1: + struct list_head dma_controllers;
1: + struct device *dev;
1: + struct dma_chan *(*acpi_dma_xlate)(struct acpi_dma_spec *, struct acpi_dma *);
1: + void *data;
1: + short unsigned int base_request_line;
1: + short unsigned int end_request_line;
1: };
1:
1: struct acpi_dma_filter_info {
1: - dma_cap_mask_t dma_cap;
1: - dma_filter_fn filter_fn;
1: + dma_cap_mask_t dma_cap;
1: + dma_filter_fn filter_fn;
1: };
1:
1: struct acpi_dma_parser_data {
1: - struct acpi_dma_spec dma_spec;
1: - size_t index;
1: - size_t n;
1: + struct acpi_dma_spec dma_spec;
1: + size_t index;
1: + size_t n;
1: };
1:
1: struct of_dma {
1: - struct list_head of_dma_controllers;
1: - struct device_node *of_node;
1: - struct dma_chan * (*of_dma_xlate)(struct of_phandle_args *, struct of_dma *);
1: - void * (*of_dma_route_allocate)(struct of_phandle_args *, struct of_dma *);
1: - struct dma_router *dma_router;
1: - void *of_dma_data;
1: + struct list_head of_dma_controllers;
1: + struct device_node *of_node;
1: + struct dma_chan *(*of_dma_xlate)(struct of_phandle_args *, struct of_dma *);
1: + void *(*of_dma_route_allocate)(struct of_phandle_args *, struct of_dma *);
1: + struct dma_router *dma_router;
1: + void *of_dma_data;
1: };
1:
1: struct of_dma_filter_info {
1: - dma_cap_mask_t dma_cap;
1: - dma_filter_fn filter_fn;
1: + dma_cap_mask_t dma_cap;
1: + dma_filter_fn filter_fn;
1: };
1:
1: struct mv_xor_v2_descriptor {
1: - u16 desc_id;
1: - u16 flags;
1: - u32 crc32_result;
1: - u32 desc_ctrl;
1: - u32 buff_size;
1: - u32 fill_pattern_src_addr[4];
1: - u32 data_buff_addr[12];
1: - u32 reserved[12];
1: + u16 desc_id;
1: + u16 flags;
1: + u32 crc32_result;
1: + u32 desc_ctrl;
1: + u32 buff_size;
1: + u32 fill_pattern_src_addr[4];
1: + u32 data_buff_addr[12];
1: + u32 reserved[12];
1: };
1:
1: struct mv_xor_v2_sw_desc;
1:
1: struct mv_xor_v2_device {
1: - spinlock_t lock;
1: - void *dma_base;
1: - void *glob_base;
1: - struct clk *clk;
1: - struct clk *reg_clk;
1: - struct tasklet_struct irq_tasklet;
1: - struct list_head free_sw_desc;
1: - struct dma_device dmadev;
1: - struct dma_chan dmachan;
1: - dma_addr_t hw_desq;
1: - struct mv_xor_v2_descriptor *hw_desq_virt;
1: - struct mv_xor_v2_sw_desc *sw_desq;
1: - int desc_size;
1: - unsigned int npendings;
1: - unsigned int hw_queue_idx;
1: - struct msi_desc *msi_desc;
1: + spinlock_t lock;
1: + void *dma_base;
1: + void *glob_base;
1: + struct clk *clk;
1: + struct clk *reg_clk;
1: + struct tasklet_struct irq_tasklet;
1: + struct list_head free_sw_desc;
1: + struct dma_device dmadev;
1: + struct dma_chan dmachan;
1: + dma_addr_t hw_desq;
1: + struct mv_xor_v2_descriptor *hw_desq_virt;
1: + struct mv_xor_v2_sw_desc *sw_desq;
1: + int desc_size;
1: + unsigned int npendings;
1: + unsigned int hw_queue_idx;
1: + struct msi_desc *msi_desc;
1: };
1:
1: struct mv_xor_v2_sw_desc {
1: - int idx;
1: - struct dma_async_tx_descriptor async_tx;
1: - struct mv_xor_v2_descriptor hw_desc;
1: - struct list_head free_list;
1: + int idx;
1: + struct dma_async_tx_descriptor async_tx;
1: + struct mv_xor_v2_descriptor hw_desc;
1: + struct list_head free_list;
1: };
1:
1: struct bam_desc_hw {
1: - __le32 addr;
1: - __le16 size;
1: - __le16 flags;
1: + __le32 addr;
1: + __le16 size;
1: + __le16 flags;
1: };
1:
1: struct bam_async_desc {
1: - struct virt_dma_desc vd;
1: - u32 num_desc;
1: - u32 xfer_len;
1: - u16 flags;
1: - struct bam_desc_hw *curr_desc;
1: - struct list_head desc_node;
1: - enum dma_transfer_direction dir;
1: - size_t length;
1: - struct bam_desc_hw desc[0];
1: + struct virt_dma_desc vd;
1: + u32 num_desc;
1: + u32 xfer_len;
1: + u16 flags;
1: + struct bam_desc_hw *curr_desc;
1: + struct list_head desc_node;
1: + enum dma_transfer_direction dir;
1: + size_t length;
1: + struct bam_desc_hw desc[0];
1: };
1:
1: enum bam_reg {
1: - BAM_CTRL = 0,
1: - BAM_REVISION = 1,
1: - BAM_NUM_PIPES = 2,
1: - BAM_DESC_CNT_TRSHLD = 3,
1: - BAM_IRQ_SRCS = 4,
1: - BAM_IRQ_SRCS_MSK = 5,
1: - BAM_IRQ_SRCS_UNMASKED = 6,
1: - BAM_IRQ_STTS = 7,
1: - BAM_IRQ_CLR = 8,
1: - BAM_IRQ_EN = 9,
1: - BAM_CNFG_BITS = 10,
1: - BAM_IRQ_SRCS_EE = 11,
1: - BAM_IRQ_SRCS_MSK_EE = 12,
1: - BAM_P_CTRL = 13,
1: - BAM_P_RST = 14,
1: - BAM_P_HALT = 15,
1: - BAM_P_IRQ_STTS = 16,
1: - BAM_P_IRQ_CLR = 17,
1: - BAM_P_IRQ_EN = 18,
1: - BAM_P_EVNT_DEST_ADDR = 19,
1: - BAM_P_EVNT_REG = 20,
1: - BAM_P_SW_OFSTS = 21,
1: - BAM_P_DATA_FIFO_ADDR = 22,
1: - BAM_P_DESC_FIFO_ADDR = 23,
1: - BAM_P_EVNT_GEN_TRSHLD = 24,
1: - BAM_P_FIFO_SIZES = 25,
1: + BAM_CTRL = 0,
1: + BAM_REVISION = 1,
1: + BAM_NUM_PIPES = 2,
1: + BAM_DESC_CNT_TRSHLD = 3,
1: + BAM_IRQ_SRCS = 4,
1: + BAM_IRQ_SRCS_MSK = 5,
1: + BAM_IRQ_SRCS_UNMASKED = 6,
1: + BAM_IRQ_STTS = 7,
1: + BAM_IRQ_CLR = 8,
1: + BAM_IRQ_EN = 9,
1: + BAM_CNFG_BITS = 10,
1: + BAM_IRQ_SRCS_EE = 11,
1: + BAM_IRQ_SRCS_MSK_EE = 12,
1: + BAM_P_CTRL = 13,
1: + BAM_P_RST = 14,
1: + BAM_P_HALT = 15,
1: + BAM_P_IRQ_STTS = 16,
1: + BAM_P_IRQ_CLR = 17,
1: + BAM_P_IRQ_EN = 18,
1: + BAM_P_EVNT_DEST_ADDR = 19,
1: + BAM_P_EVNT_REG = 20,
1: + BAM_P_SW_OFSTS = 21,
1: + BAM_P_DATA_FIFO_ADDR = 22,
1: + BAM_P_DESC_FIFO_ADDR = 23,
1: + BAM_P_EVNT_GEN_TRSHLD = 24,
1: + BAM_P_FIFO_SIZES = 25,
1: };
1:
1: struct reg_offset_data {
1: - u32 base_offset;
1: - unsigned int pipe_mult;
1: - unsigned int evnt_mult;
1: - unsigned int ee_mult;
1: + u32 base_offset;
1: + unsigned int pipe_mult;
1: + unsigned int evnt_mult;
1: + unsigned int ee_mult;
1: };
1:
1: struct bam_device;
1:
1: struct bam_chan {
1: - struct virt_dma_chan vc;
1: - struct bam_device *bdev;
1: - u32 id;
1: - struct dma_slave_config slave;
1: - struct bam_desc_hw *fifo_virt;
1: - dma_addr_t fifo_phys;
1: - short unsigned int head;
1: - short unsigned int tail;
1: - unsigned int initialized;
1: - unsigned int paused;
1: - unsigned int reconfigure;
1: - struct list_head desc_list;
1: - struct list_head node;
1: + struct virt_dma_chan vc;
1: + struct bam_device *bdev;
1: + u32 id;
1: + struct dma_slave_config slave;
1: + struct bam_desc_hw *fifo_virt;
1: + dma_addr_t fifo_phys;
1: + short unsigned int head;
1: + short unsigned int tail;
1: + unsigned int initialized;
1: + unsigned int paused;
1: + unsigned int reconfigure;
1: + struct list_head desc_list;
1: + struct list_head node;
1: };
1:
1: struct bam_device {
1: - void *regs;
1: - struct device *dev;
1: - struct dma_device common;
1: - struct bam_chan *channels;
1: - u32 num_channels;
1: - u32 num_ees;
1: - u32 ee;
1: - bool controlled_remotely;
1: - const struct reg_offset_data *layout;
1: - struct clk *bamclk;
1: - int irq;
1: - struct tasklet_struct task;
1: + void *regs;
1: + struct device *dev;
1: + struct dma_device common;
1: + struct bam_chan *channels;
1: + u32 num_channels;
1: + u32 num_ees;
1: + u32 ee;
1: + bool controlled_remotely;
1: + const struct reg_offset_data *layout;
1: + struct clk *bamclk;
1: + int irq;
1: + struct tasklet_struct task;
1: };
1:
1: struct bcm2835_pm {
1: - struct device *dev;
1: - void *base;
1: - void *asb;
1: + struct device *dev;
1: + void *base;
1: + void *asb;
1: };
1:
1: struct bcm2835_power;
1:
1: struct bcm2835_power_domain {
1: - struct generic_pm_domain base;
1: - struct bcm2835_power *power;
1: - u32 domain;
1: - struct clk *clk;
1: + struct generic_pm_domain base;
1: + struct bcm2835_power *power;
1: + u32 domain;
1: + struct clk *clk;
1: };
1:
1: struct bcm2835_power {
1: - struct device *dev;
1: - void *base;
1: - void *asb;
1: - struct genpd_onecell_data pd_xlate;
1: - struct bcm2835_power_domain domains[13];
1: - struct reset_controller_dev reset;
1: + struct device *dev;
1: + void *base;
1: + void *asb;
1: + struct genpd_onecell_data pd_xlate;
1: + struct bcm2835_power_domain domains[13];
1: + struct reset_controller_dev reset;
1: };
1:
1: struct rpi_power_domain {
1: - u32 domain;
1: - bool enabled;
1: - bool old_interface;
1: - struct generic_pm_domain base;
1: - struct rpi_firmware *fw;
1: + u32 domain;
1: + bool enabled;
1: + bool old_interface;
1: + struct generic_pm_domain base;
1: + struct rpi_firmware *fw;
1: };
1:
1: struct rpi_power_domains {
1: - bool has_new_interface;
1: - struct genpd_onecell_data xlate;
1: - struct rpi_firmware *fw;
1: - struct rpi_power_domain domains[23];
1: + bool has_new_interface;
1: + struct genpd_onecell_data xlate;
1: + struct rpi_firmware *fw;
1: + struct rpi_power_domain domains[23];
1: };
1:
1: struct rpi_power_domain_packet {
1: - u32 domain;
1: - u32 on;
1: + u32 domain;
1: + u32 on;
1: };
1:
1: struct soc_device_attribute {
1: - const char *machine;
1: - const char *family;
1: - const char *revision;
1: - const char *serial_number;
1: - const char *soc_id;
1: - const void *data;
1: - const struct attribute_group *custom_attr_group;
1: + const char *machine;
1: + const char *family;
1: + const char *revision;
1: + const char *serial_number;
1: + const char *soc_id;
1: + const void *data;
1: + const struct attribute_group *custom_attr_group;
1: };
1:
1: struct soc_device;
1:
1: enum cpubiuctrl_regs {
1: - CPU_CREDIT_REG = 0,
1: - CPU_MCP_FLOW_REG = 1,
1: - CPU_WRITEBACK_CTRL_REG = 2,
1: - RAC_CONFIG0_REG = 3,
1: - RAC_CONFIG1_REG = 4,
1: - NUM_CPU_BIUCTRL_REGS = 5,
1: + CPU_CREDIT_REG = 0,
1: + CPU_MCP_FLOW_REG = 1,
1: + CPU_WRITEBACK_CTRL_REG = 2,
1: + RAC_CONFIG0_REG = 3,
1: + RAC_CONFIG1_REG = 4,
1: + NUM_CPU_BIUCTRL_REGS = 5,
1: };
1:
1: enum mtk_ddp_comp_id {
1: - DDP_COMPONENT_AAL0 = 0,
1: - DDP_COMPONENT_AAL1 = 1,
1: - DDP_COMPONENT_BLS = 2,
1: - DDP_COMPONENT_CCORR = 3,
1: - DDP_COMPONENT_COLOR0 = 4,
1: - DDP_COMPONENT_COLOR1 = 5,
1: - DDP_COMPONENT_DITHER = 6,
1: - DDP_COMPONENT_DPI0 = 7,
1: - DDP_COMPONENT_DPI1 = 8,
1: - DDP_COMPONENT_DSI0 = 9,
1: - DDP_COMPONENT_DSI1 = 10,
1: - DDP_COMPONENT_DSI2 = 11,
1: - DDP_COMPONENT_DSI3 = 12,
1: - DDP_COMPONENT_GAMMA = 13,
1: - DDP_COMPONENT_OD0 = 14,
1: - DDP_COMPONENT_OD1 = 15,
1: - DDP_COMPONENT_OVL0 = 16,
1: - DDP_COMPONENT_OVL_2L0 = 17,
1: - DDP_COMPONENT_OVL_2L1 = 18,
1: - DDP_COMPONENT_OVL1 = 19,
1: - DDP_COMPONENT_PWM0 = 20,
1: - DDP_COMPONENT_PWM1 = 21,
1: - DDP_COMPONENT_PWM2 = 22,
1: - DDP_COMPONENT_RDMA0 = 23,
1: - DDP_COMPONENT_RDMA1 = 24,
1: - DDP_COMPONENT_RDMA2 = 25,
1: - DDP_COMPONENT_UFOE = 26,
1: - DDP_COMPONENT_WDMA0 = 27,
1: - DDP_COMPONENT_WDMA1 = 28,
1: - DDP_COMPONENT_ID_MAX = 29,
1: + DDP_COMPONENT_AAL0 = 0,
1: + DDP_COMPONENT_AAL1 = 1,
1: + DDP_COMPONENT_BLS = 2,
1: + DDP_COMPONENT_CCORR = 3,
1: + DDP_COMPONENT_COLOR0 = 4,
1: + DDP_COMPONENT_COLOR1 = 5,
1: + DDP_COMPONENT_DITHER = 6,
1: + DDP_COMPONENT_DPI0 = 7,
1: + DDP_COMPONENT_DPI1 = 8,
1: + DDP_COMPONENT_DSI0 = 9,
1: + DDP_COMPONENT_DSI1 = 10,
1: + DDP_COMPONENT_DSI2 = 11,
1: + DDP_COMPONENT_DSI3 = 12,
1: + DDP_COMPONENT_GAMMA = 13,
1: + DDP_COMPONENT_OD0 = 14,
1: + DDP_COMPONENT_OD1 = 15,
1: + DDP_COMPONENT_OVL0 = 16,
1: + DDP_COMPONENT_OVL_2L0 = 17,
1: + DDP_COMPONENT_OVL_2L1 = 18,
1: + DDP_COMPONENT_OVL1 = 19,
1: + DDP_COMPONENT_PWM0 = 20,
1: + DDP_COMPONENT_PWM1 = 21,
1: + DDP_COMPONENT_PWM2 = 22,
1: + DDP_COMPONENT_RDMA0 = 23,
1: + DDP_COMPONENT_RDMA1 = 24,
1: + DDP_COMPONENT_RDMA2 = 25,
1: + DDP_COMPONENT_UFOE = 26,
1: + DDP_COMPONENT_WDMA0 = 27,
1: + DDP_COMPONENT_WDMA1 = 28,
1: + DDP_COMPONENT_ID_MAX = 29,
1: };
1:
1: struct mtk_mmsys_driver_data {
1: - const char *clk_driver;
1: + const char *clk_driver;
1: };
1:
1: struct meson_msr;
1:
1: struct meson_msr_id {
1: - struct meson_msr *priv;
1: - unsigned int id;
1: - const char *name;
1: + struct meson_msr *priv;
1: + unsigned int id;
1: + const char *name;
1: };
1:
1: struct meson_msr {
1: - struct regmap *regmap;
1: - struct meson_msr_id msr_table[128];
1: + struct regmap *regmap;
1: + struct meson_msr_id msr_table[128];
1: };
1:
1: struct meson_gx_soc_id {
1: - const char *name;
1: - unsigned int id;
1: + const char *name;
1: + unsigned int id;
1: };
1:
1: struct meson_gx_package_id {
1: - const char *name;
1: - unsigned int major_id;
1: - unsigned int pack_id;
1: - unsigned int pack_mask;
1: + const char *name;
1: + unsigned int major_id;
1: + unsigned int pack_id;
1: + unsigned int pack_mask;
1: };
1:
1: struct meson_gx_pwrc_vpu {
1: - struct generic_pm_domain genpd;
1: - struct regmap *regmap_ao;
1: - struct regmap *regmap_hhi;
1: - struct reset_control *rstc;
1: - struct clk *vpu_clk;
1: - struct clk *vapb_clk;
1: + struct generic_pm_domain genpd;
1: + struct regmap *regmap_ao;
1: + struct regmap *regmap_hhi;
1: + struct reset_control *rstc;
1: + struct clk *vpu_clk;
1: + struct clk *vapb_clk;
1: };
1:
1: struct meson_ee_pwrc_mem_domain {
1: - unsigned int reg;
1: - unsigned int mask;
1: + unsigned int reg;
1: + unsigned int mask;
1: };
1:
1: struct meson_ee_pwrc_top_domain {
1: - unsigned int sleep_reg;
1: - unsigned int sleep_mask;
1: - unsigned int iso_reg;
1: - unsigned int iso_mask;
1: + unsigned int sleep_reg;
1: + unsigned int sleep_mask;
1: + unsigned int iso_reg;
1: + unsigned int iso_mask;
1: };
1:
1: struct meson_ee_pwrc_domain;
1:
1: struct meson_ee_pwrc_domain_desc {
1: - char *name;
1: - unsigned int reset_names_count;
1: - unsigned int clk_names_count;
1: - struct meson_ee_pwrc_top_domain *top_pd;
1: - unsigned int mem_pd_count;
1: - struct meson_ee_pwrc_mem_domain *mem_pd;
1: - bool (*get_power)(struct meson_ee_pwrc_domain *);
1: + char *name;
1: + unsigned int reset_names_count;
1: + unsigned int clk_names_count;
1: + struct meson_ee_pwrc_top_domain *top_pd;
1: + unsigned int mem_pd_count;
1: + struct meson_ee_pwrc_mem_domain *mem_pd;
1: + bool (*get_power)(struct meson_ee_pwrc_domain *);
1: };
1:
1: struct meson_ee_pwrc;
1:
1: struct meson_ee_pwrc_domain {
1: - struct generic_pm_domain base;
1: - bool enabled;
1: - struct meson_ee_pwrc *pwrc;
1: - struct meson_ee_pwrc_domain_desc desc;
1: - struct clk_bulk_data *clks;
1: - int num_clks;
1: - struct reset_control *rstc;
1: - int num_rstc;
1: + struct generic_pm_domain base;
1: + bool enabled;
1: + struct meson_ee_pwrc *pwrc;
1: + struct meson_ee_pwrc_domain_desc desc;
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: + struct reset_control *rstc;
1: + int num_rstc;
1: };
1:
1: struct meson_ee_pwrc_domain_data {
1: - unsigned int count;
1: - struct meson_ee_pwrc_domain_desc *domains;
1: + unsigned int count;
1: + struct meson_ee_pwrc_domain_desc *domains;
1: };
1:
1: struct meson_ee_pwrc {
1: - struct regmap *regmap_ao;
1: - struct regmap *regmap_hhi;
1: - struct meson_ee_pwrc_domain *domains;
1: - struct genpd_onecell_data xlate;
1: + struct regmap *regmap_ao;
1: + struct regmap *regmap_hhi;
1: + struct meson_ee_pwrc_domain *domains;
1: + struct genpd_onecell_data xlate;
1: };
1:
1: enum {
1: - SM_EFUSE_READ = 0,
1: - SM_EFUSE_WRITE = 1,
1: - SM_EFUSE_USER_MAX = 2,
1: - SM_GET_CHIP_ID = 3,
1: - SM_A1_PWRC_SET = 4,
1: - SM_A1_PWRC_GET = 5,
1: + SM_EFUSE_READ = 0,
1: + SM_EFUSE_WRITE = 1,
1: + SM_EFUSE_USER_MAX = 2,
1: + SM_GET_CHIP_ID = 3,
1: + SM_A1_PWRC_SET = 4,
1: + SM_A1_PWRC_GET = 5,
1: };
1:
1: struct meson_secure_pwrc;
1:
1: struct meson_secure_pwrc_domain {
1: - struct generic_pm_domain base;
1: - unsigned int index;
1: - struct meson_secure_pwrc *pwrc;
1: + struct generic_pm_domain base;
1: + unsigned int index;
1: + struct meson_secure_pwrc *pwrc;
1: };
1:
1: struct meson_sm_firmware;
1:
1: struct meson_secure_pwrc {
1: - struct meson_secure_pwrc_domain *domains;
1: - struct genpd_onecell_data xlate;
1: - struct meson_sm_firmware *fw;
1: + struct meson_secure_pwrc_domain *domains;
1: + struct genpd_onecell_data xlate;
1: + struct meson_sm_firmware *fw;
1: };
1:
1: struct meson_secure_pwrc_domain_desc {
1: - unsigned int index;
1: - unsigned int flags;
1: - char *name;
1: - bool (*is_off)(struct meson_secure_pwrc_domain *);
1: + unsigned int index;
1: + unsigned int flags;
1: + char *name;
1: + bool (*is_off)(struct meson_secure_pwrc_domain *);
1: };
1:
1: struct meson_secure_pwrc_domain_data {
1: - unsigned int count;
1: - struct meson_secure_pwrc_domain_desc *domains;
1: + unsigned int count;
1: + struct meson_secure_pwrc_domain_desc *domains;
1: };
1:
1: enum cmd_db_hw_type {
1: - CMD_DB_HW_INVALID = 0,
1: - CMD_DB_HW_MIN = 3,
1: - CMD_DB_HW_ARC = 3,
1: - CMD_DB_HW_VRM = 4,
1: - CMD_DB_HW_BCM = 5,
1: - CMD_DB_HW_MAX = 5,
1: - CMD_DB_HW_ALL = 255,
1: + CMD_DB_HW_INVALID = 0,
1: + CMD_DB_HW_MIN = 3,
1: + CMD_DB_HW_ARC = 3,
1: + CMD_DB_HW_VRM = 4,
1: + CMD_DB_HW_BCM = 5,
1: + CMD_DB_HW_MAX = 5,
1: + CMD_DB_HW_ALL = 255,
1: };
1:
1: struct entry_header {
1: - u8 id[8];
1: - __le32 priority[2];
1: - __le32 addr;
1: - __le16 len;
1: - __le16 offset;
1: + u8 id[8];
1: + __le32 priority[2];
1: + __le32 addr;
1: + __le16 len;
1: + __le16 offset;
1: };
1:
1: struct rsc_hdr {
1: - __le16 slv_id;
1: - __le16 header_offset;
1: - __le16 data_offset;
1: - __le16 cnt;
1: - __le16 version;
1: - __le16 reserved[3];
1: + __le16 slv_id;
1: + __le16 header_offset;
1: + __le16 data_offset;
1: + __le16 cnt;
1: + __le16 version;
1: + __le16 reserved[3];
1: };
1:
1: struct cmd_db_header {
1: - __le32 version;
1: - u8 magic[4];
1: - struct rsc_hdr header[8];
1: - __le32 checksum;
1: - __le32 reserved;
1: - u8 data[0];
1: + __le32 version;
1: + u8 magic[4];
1: + struct rsc_hdr header[8];
1: + __le32 checksum;
1: + __le32 reserved;
1: + u8 data[0];
1: };
1:
1: struct smem_proc_comm {
1: - __le32 command;
1: - __le32 status;
1: - __le32 params[2];
1: + __le32 command;
1: + __le32 status;
1: + __le32 params[2];
1: };
1:
1: struct smem_global_entry {
1: - __le32 allocated;
1: - __le32 offset;
1: - __le32 size;
1: - __le32 aux_base;
1: + __le32 allocated;
1: + __le32 offset;
1: + __le32 size;
1: + __le32 aux_base;
1: };
1:
1: struct smem_header {
1: - struct smem_proc_comm proc_comm[4];
1: - __le32 version[32];
1: - __le32 initialized;
1: - __le32 free_offset;
1: - __le32 available;
1: - __le32 reserved;
1: - struct smem_global_entry toc[512];
1: + struct smem_proc_comm proc_comm[4];
1: + __le32 version[32];
1: + __le32 initialized;
1: + __le32 free_offset;
1: + __le32 available;
1: + __le32 reserved;
1: + struct smem_global_entry toc[512];
1: };
1:
1: struct smem_ptable_entry {
1: - __le32 offset;
1: - __le32 size;
1: - __le32 flags;
1: - __le16 host0;
1: - __le16 host1;
1: - __le32 cacheline;
1: - __le32 reserved[7];
1: + __le32 offset;
1: + __le32 size;
1: + __le32 flags;
1: + __le16 host0;
1: + __le16 host1;
1: + __le32 cacheline;
1: + __le32 reserved[7];
1: };
1:
1: struct smem_ptable {
1: - u8 magic[4];
1: - __le32 version;
1: - __le32 num_entries;
1: - __le32 reserved[5];
1: - struct smem_ptable_entry entry[0];
1: + u8 magic[4];
1: + __le32 version;
1: + __le32 num_entries;
1: + __le32 reserved[5];
1: + struct smem_ptable_entry entry[0];
1: };
1:
1: struct smem_partition_header {
1: - u8 magic[4];
1: - __le16 host0;
1: - __le16 host1;
1: - __le32 size;
1: - __le32 offset_free_uncached;
1: - __le32 offset_free_cached;
1: - __le32 reserved[3];
1: + u8 magic[4];
1: + __le16 host0;
1: + __le16 host1;
1: + __le32 size;
1: + __le32 offset_free_uncached;
1: + __le32 offset_free_cached;
1: + __le32 reserved[3];
1: };
1:
1: struct smem_private_entry {
1: - u16 canary;
1: - __le16 item;
1: - __le32 size;
1: - __le16 padding_data;
1: - __le16 padding_hdr;
1: - __le32 reserved;
1: + u16 canary;
1: + __le16 item;
1: + __le32 size;
1: + __le16 padding_data;
1: + __le16 padding_hdr;
1: + __le32 reserved;
1: };
1:
1: struct smem_info {
1: - u8 magic[4];
1: - __le32 size;
1: - __le32 base_addr;
1: - __le32 reserved;
1: - __le16 num_items;
1: + u8 magic[4];
1: + __le32 size;
1: + __le32 base_addr;
1: + __le32 reserved;
1: + __le16 num_items;
1: };
1:
1: struct smem_region {
1: - u32 aux_base;
1: - void *virt_base;
1: - size_t size;
1: + u32 aux_base;
1: + void *virt_base;
1: + size_t size;
1: };
1:
1: struct hwspinlock;
1:
1: struct qcom_smem {
1: - struct device *dev;
1: - struct hwspinlock *hwlock;
1: - struct smem_partition_header *global_partition;
1: - size_t global_cacheline;
1: - struct smem_partition_header *partitions[11];
1: - size_t cacheline[11];
1: - u32 item_count;
1: - struct platform_device *socinfo;
1: - unsigned int num_regions;
1: - struct smem_region regions[0];
1: + struct device *dev;
1: + struct hwspinlock *hwlock;
1: + struct smem_partition_header *global_partition;
1: + size_t global_cacheline;
1: + struct smem_partition_header *partitions[11];
1: + size_t cacheline[11];
1: + u32 item_count;
1: + struct platform_device *socinfo;
1: + unsigned int num_regions;
1: + struct smem_region regions[0];
1: };
1:
1: struct rockchip_grf_value {
1: - const char *desc;
1: - u32 reg;
1: - u32 val;
1: + const char *desc;
1: + u32 reg;
1: + u32 val;
1: };
1:
1: struct rockchip_grf_info {
1: - const struct rockchip_grf_value *values;
1: - int num_values;
1: + const struct rockchip_grf_value *values;
1: + int num_values;
1: };
1:
1: struct rockchip_domain_info {
1: - int pwr_mask;
1: - int status_mask;
1: - int req_mask;
1: - int idle_mask;
1: - int ack_mask;
1: - bool active_wakeup;
1: - int pwr_w_mask;
1: - int req_w_mask;
1: + int pwr_mask;
1: + int status_mask;
1: + int req_mask;
1: + int idle_mask;
1: + int ack_mask;
1: + bool active_wakeup;
1: + int pwr_w_mask;
1: + int req_w_mask;
1: };
1:
1: struct rockchip_pmu_info {
1: - u32 pwr_offset;
1: - u32 status_offset;
1: - u32 req_offset;
1: - u32 idle_offset;
1: - u32 ack_offset;
1: - u32 core_pwrcnt_offset;
1: - u32 gpu_pwrcnt_offset;
1: - unsigned int core_power_transition_time;
1: - unsigned int gpu_power_transition_time;
1: - int num_domains;
1: - const struct rockchip_domain_info *domain_info;
1: + u32 pwr_offset;
1: + u32 status_offset;
1: + u32 req_offset;
1: + u32 idle_offset;
1: + u32 ack_offset;
1: + u32 core_pwrcnt_offset;
1: + u32 gpu_pwrcnt_offset;
1: + unsigned int core_power_transition_time;
1: + unsigned int gpu_power_transition_time;
1: + int num_domains;
1: + const struct rockchip_domain_info *domain_info;
1: };
1:
1: struct rockchip_pmu;
1:
1: struct rockchip_pm_domain {
1: - struct generic_pm_domain genpd;
1: - const struct rockchip_domain_info *info;
1: - struct rockchip_pmu *pmu;
1: - int num_qos;
1: - struct regmap **qos_regmap;
1: - u32 *qos_save_regs[5];
1: - int num_clks;
1: - struct clk_bulk_data *clks;
1: + struct generic_pm_domain genpd;
1: + const struct rockchip_domain_info *info;
1: + struct rockchip_pmu *pmu;
1: + int num_qos;
1: + struct regmap **qos_regmap;
1: + u32 *qos_save_regs[5];
1: + int num_clks;
1: + struct clk_bulk_data *clks;
1: };
1:
1: struct rockchip_pmu {
1: - struct device *dev;
1: - struct regmap *regmap;
1: - const struct rockchip_pmu_info *info;
1: - struct mutex mutex;
1: - struct genpd_onecell_data genpd_data;
1: - struct generic_pm_domain *domains[0];
1: + struct device *dev;
1: + struct regmap *regmap;
1: + const struct rockchip_pmu_info *info;
1: + struct mutex mutex;
1: + struct genpd_onecell_data genpd_data;
1: + struct generic_pm_domain *domains[0];
1: };
1:
1: struct exynos_soc_id {
1: - const char *name;
1: - unsigned int id;
1: + const char *name;
1: + unsigned int id;
1: };
1:
1: enum sys_powerdown {
1: - SYS_AFTR = 0,
1: - SYS_LPA = 1,
1: - SYS_SLEEP = 2,
1: - NUM_SYS_POWERDOWN = 3,
1: + SYS_AFTR = 0,
1: + SYS_LPA = 1,
1: + SYS_SLEEP = 2,
1: + NUM_SYS_POWERDOWN = 3,
1: };
1:
1: struct exynos_pmu_conf {
1: - unsigned int offset;
1: - u8 val[3];
1: + unsigned int offset;
1: + u8 val[3];
1: };
1:
1: struct exynos_pmu_data {
1: - const struct exynos_pmu_conf *pmu_config;
1: - void (*pmu_init)();
1: - void (*powerdown_conf)(enum sys_powerdown);
1: - void (*powerdown_conf_extra)(enum sys_powerdown);
1: + const struct exynos_pmu_conf *pmu_config;
1: + void (*pmu_init)();
1: + void (*powerdown_conf)(enum sys_powerdown);
1: + void (*powerdown_conf_extra)(enum sys_powerdown);
1: };
1:
1: struct exynos_pmu_context {
1: - struct device *dev;
1: - const struct exynos_pmu_data *pmu_data;
1: + struct device *dev;
1: + const struct exynos_pmu_data *pmu_data;
1: };
1:
1: struct exynos_pm_domain_config {
1: - u32 local_pwr_cfg;
1: + u32 local_pwr_cfg;
1: };
1:
1: struct exynos_pm_domain {
1: - void *base;
1: - bool is_off;
1: - struct generic_pm_domain pd;
1: - u32 local_pwr_cfg;
1: + void *base;
1: + bool is_off;
1: + struct generic_pm_domain pd;
1: + u32 local_pwr_cfg;
1: };
1:
1: struct sunxi_sram_func {
1: - char *func;
1: - u8 val;
1: - u32 reg_val;
1: + char *func;
1: + u8 val;
1: + u32 reg_val;
1: };
1:
1: struct sunxi_sram_data {
1: - char *name;
1: - u8 reg;
1: - u8 offset;
1: - u8 width;
1: - struct sunxi_sram_func *func;
1: - struct list_head list;
1: + char *name;
1: + u8 reg;
1: + u8 offset;
1: + u8 width;
1: + struct sunxi_sram_func *func;
1: + struct list_head list;
1: };
1:
1: struct sunxi_sram_desc {
1: - struct sunxi_sram_data data;
1: - bool claimed;
1: + struct sunxi_sram_data data;
1: + bool claimed;
1: };
1:
1: struct sunxi_sramc_variant {
1: - bool has_emac_clock;
1: + bool has_emac_clock;
1: };
1:
1: struct nvmem_cell_info {
1: - const char *name;
1: - unsigned int offset;
1: - unsigned int bytes;
1: - unsigned int bit_offset;
1: - unsigned int nbits;
1: + const char *name;
1: + unsigned int offset;
1: + unsigned int bytes;
1: + unsigned int bit_offset;
1: + unsigned int nbits;
1: };
1:
1: struct nvmem_cell_lookup {
1: - const char *nvmem_name;
1: - const char *cell_name;
1: - const char *dev_id;
1: - const char *con_id;
1: - struct list_head node;
1: + const char *nvmem_name;
1: + const char *cell_name;
1: + const char *dev_id;
1: + const char *con_id;
1: + struct list_head node;
1: };
1:
1: typedef int (*nvmem_reg_read_t)(void *, unsigned int, void *, size_t);
1: @@ -76005,40 +77010,40 @@ typedef int (*nvmem_reg_read_t)(void *, unsigned int, void *, size_t);
1: typedef int (*nvmem_reg_write_t)(void *, unsigned int, void *, size_t);
1:
1: enum nvmem_type {
1: - NVMEM_TYPE_UNKNOWN = 0,
1: - NVMEM_TYPE_EEPROM = 1,
1: - NVMEM_TYPE_OTP = 2,
1: - NVMEM_TYPE_BATTERY_BACKED = 3,
1: + NVMEM_TYPE_UNKNOWN = 0,
1: + NVMEM_TYPE_EEPROM = 1,
1: + NVMEM_TYPE_OTP = 2,
1: + NVMEM_TYPE_BATTERY_BACKED = 3,
1: };
1:
1: struct nvmem_config {
1: - struct device *dev;
1: - const char *name;
1: - int id;
1: - struct module *owner;
1: - struct gpio_desc *wp_gpio;
1: - const struct nvmem_cell_info *cells;
1: - int ncells;
1: - enum nvmem_type type;
1: - bool read_only;
1: - bool root_only;
1: - bool no_of_node;
1: - nvmem_reg_read_t reg_read;
1: - nvmem_reg_write_t reg_write;
1: - int size;
1: - int word_size;
1: - int stride;
1: - void *priv;
1: - bool compat;
1: - struct device *base_dev;
1: + struct device *dev;
1: + const char *name;
1: + int id;
1: + struct module *owner;
1: + struct gpio_desc *wp_gpio;
1: + const struct nvmem_cell_info *cells;
1: + int ncells;
1: + enum nvmem_type type;
1: + bool read_only;
1: + bool root_only;
1: + bool no_of_node;
1: + nvmem_reg_read_t reg_read;
1: + nvmem_reg_write_t reg_write;
1: + int size;
1: + int word_size;
1: + int stride;
1: + void *priv;
1: + bool compat;
1: + struct device *base_dev;
1: };
1:
1: struct tegra_fuse;
1:
1: struct tegra_fuse_info {
1: - u32 (*read)(struct tegra_fuse *, unsigned int);
1: - unsigned int size;
1: - unsigned int spare;
1: + u32 (*read)(struct tegra_fuse *, unsigned int);
1: + unsigned int size;
1: + unsigned int spare;
1: };
1:
1: struct nvmem_device;
1: @@ -76046,411 +77051,411 @@ struct nvmem_device;
1: struct tegra_fuse_soc;
1:
1: struct tegra_fuse {
1: - struct device *dev;
1: - void *base;
1: - phys_addr_t phys;
1: - struct clk *clk;
1: - u32 (*read_early)(struct tegra_fuse *, unsigned int);
1: - u32 (*read)(struct tegra_fuse *, unsigned int);
1: - const struct tegra_fuse_soc *soc;
1: - struct {
1: - struct mutex lock;
1: - struct completion wait;
1: - struct dma_chan *chan;
1: - struct dma_slave_config config;
1: - dma_addr_t phys;
1: - u32 *virt;
1: - } apbdma;
1: - struct nvmem_device *nvmem;
1: - struct nvmem_cell_lookup *lookups;
1: + struct device *dev;
1: + void *base;
1: + phys_addr_t phys;
1: + struct clk *clk;
1: + u32 (*read_early)(struct tegra_fuse *, unsigned int);
1: + u32 (*read)(struct tegra_fuse *, unsigned int);
1: + const struct tegra_fuse_soc *soc;
1: + struct {
1: + struct mutex lock;
1: + struct completion wait;
1: + struct dma_chan *chan;
1: + struct dma_slave_config config;
1: + dma_addr_t phys;
1: + u32 *virt;
1: + } apbdma;
1: + struct nvmem_device *nvmem;
1: + struct nvmem_cell_lookup *lookups;
1: };
1:
1: struct tegra_fuse_soc {
1: - void (*init)(struct tegra_fuse *);
1: - void (*speedo_init)(struct tegra_sku_info *);
1: - int (*probe)(struct tegra_fuse *);
1: - const struct tegra_fuse_info *info;
1: - const struct nvmem_cell_lookup *lookups;
1: - unsigned int num_lookups;
1: - const struct attribute_group *soc_attr_group;
1: + void (*init)(struct tegra_fuse *);
1: + void (*speedo_init)(struct tegra_sku_info *);
1: + int (*probe)(struct tegra_fuse *);
1: + const struct tegra_fuse_info *info;
1: + const struct nvmem_cell_lookup *lookups;
1: + unsigned int num_lookups;
1: + const struct attribute_group *soc_attr_group;
1: };
1:
1: enum {
1: - THRESHOLD_INDEX_0 = 0,
1: - THRESHOLD_INDEX_1 = 1,
1: - THRESHOLD_INDEX_COUNT = 2,
1: + THRESHOLD_INDEX_0 = 0,
1: + THRESHOLD_INDEX_1 = 1,
1: + THRESHOLD_INDEX_COUNT = 2,
1: };
1:
1: enum tegra_suspend_mode {
1: - TEGRA_SUSPEND_NONE = 0,
1: - TEGRA_SUSPEND_LP2 = 1,
1: - TEGRA_SUSPEND_LP1 = 2,
1: - TEGRA_SUSPEND_LP0 = 3,
1: - TEGRA_MAX_SUSPEND_MODE = 4,
1: + TEGRA_SUSPEND_NONE = 0,
1: + TEGRA_SUSPEND_LP2 = 1,
1: + TEGRA_SUSPEND_LP1 = 2,
1: + TEGRA_SUSPEND_LP0 = 3,
1: + TEGRA_MAX_SUSPEND_MODE = 4,
1: };
1:
1: enum tegra_io_pad {
1: - TEGRA_IO_PAD_AUDIO = 0,
1: - TEGRA_IO_PAD_AUDIO_HV = 1,
1: - TEGRA_IO_PAD_BB = 2,
1: - TEGRA_IO_PAD_CAM = 3,
1: - TEGRA_IO_PAD_COMP = 4,
1: - TEGRA_IO_PAD_CONN = 5,
1: - TEGRA_IO_PAD_CSIA = 6,
1: - TEGRA_IO_PAD_CSIB = 7,
1: - TEGRA_IO_PAD_CSIC = 8,
1: - TEGRA_IO_PAD_CSID = 9,
1: - TEGRA_IO_PAD_CSIE = 10,
1: - TEGRA_IO_PAD_CSIF = 11,
1: - TEGRA_IO_PAD_CSIG = 12,
1: - TEGRA_IO_PAD_CSIH = 13,
1: - TEGRA_IO_PAD_DAP3 = 14,
1: - TEGRA_IO_PAD_DAP5 = 15,
1: - TEGRA_IO_PAD_DBG = 16,
1: - TEGRA_IO_PAD_DEBUG_NONAO = 17,
1: - TEGRA_IO_PAD_DMIC = 18,
1: - TEGRA_IO_PAD_DMIC_HV = 19,
1: - TEGRA_IO_PAD_DP = 20,
1: - TEGRA_IO_PAD_DSI = 21,
1: - TEGRA_IO_PAD_DSIB = 22,
1: - TEGRA_IO_PAD_DSIC = 23,
1: - TEGRA_IO_PAD_DSID = 24,
1: - TEGRA_IO_PAD_EDP = 25,
1: - TEGRA_IO_PAD_EMMC = 26,
1: - TEGRA_IO_PAD_EMMC2 = 27,
1: - TEGRA_IO_PAD_EQOS = 28,
1: - TEGRA_IO_PAD_GPIO = 29,
1: - TEGRA_IO_PAD_GP_PWM2 = 30,
1: - TEGRA_IO_PAD_GP_PWM3 = 31,
1: - TEGRA_IO_PAD_HDMI = 32,
1: - TEGRA_IO_PAD_HDMI_DP0 = 33,
1: - TEGRA_IO_PAD_HDMI_DP1 = 34,
1: - TEGRA_IO_PAD_HDMI_DP2 = 35,
1: - TEGRA_IO_PAD_HDMI_DP3 = 36,
1: - TEGRA_IO_PAD_HSIC = 37,
1: - TEGRA_IO_PAD_HV = 38,
1: - TEGRA_IO_PAD_LVDS = 39,
1: - TEGRA_IO_PAD_MIPI_BIAS = 40,
1: - TEGRA_IO_PAD_NAND = 41,
1: - TEGRA_IO_PAD_PEX_BIAS = 42,
1: - TEGRA_IO_PAD_PEX_CLK_BIAS = 43,
1: - TEGRA_IO_PAD_PEX_CLK1 = 44,
1: - TEGRA_IO_PAD_PEX_CLK2 = 45,
1: - TEGRA_IO_PAD_PEX_CLK3 = 46,
1: - TEGRA_IO_PAD_PEX_CLK_2_BIAS = 47,
1: - TEGRA_IO_PAD_PEX_CLK_2 = 48,
1: - TEGRA_IO_PAD_PEX_CNTRL = 49,
1: - TEGRA_IO_PAD_PEX_CTL2 = 50,
1: - TEGRA_IO_PAD_PEX_L0_RST_N = 51,
1: - TEGRA_IO_PAD_PEX_L1_RST_N = 52,
1: - TEGRA_IO_PAD_PEX_L5_RST_N = 53,
1: - TEGRA_IO_PAD_PWR_CTL = 54,
1: - TEGRA_IO_PAD_SDMMC1 = 55,
1: - TEGRA_IO_PAD_SDMMC1_HV = 56,
1: - TEGRA_IO_PAD_SDMMC2 = 57,
1: - TEGRA_IO_PAD_SDMMC2_HV = 58,
1: - TEGRA_IO_PAD_SDMMC3 = 59,
1: - TEGRA_IO_PAD_SDMMC3_HV = 60,
1: - TEGRA_IO_PAD_SDMMC4 = 61,
1: - TEGRA_IO_PAD_SOC_GPIO10 = 62,
1: - TEGRA_IO_PAD_SOC_GPIO12 = 63,
1: - TEGRA_IO_PAD_SOC_GPIO13 = 64,
1: - TEGRA_IO_PAD_SOC_GPIO53 = 65,
1: - TEGRA_IO_PAD_SPI = 66,
1: - TEGRA_IO_PAD_SPI_HV = 67,
1: - TEGRA_IO_PAD_SYS_DDC = 68,
1: - TEGRA_IO_PAD_UART = 69,
1: - TEGRA_IO_PAD_UART4 = 70,
1: - TEGRA_IO_PAD_UART5 = 71,
1: - TEGRA_IO_PAD_UFS = 72,
1: - TEGRA_IO_PAD_USB0 = 73,
1: - TEGRA_IO_PAD_USB1 = 74,
1: - TEGRA_IO_PAD_USB2 = 75,
1: - TEGRA_IO_PAD_USB3 = 76,
1: - TEGRA_IO_PAD_USB_BIAS = 77,
1: - TEGRA_IO_PAD_AO_HV = 78,
1: + TEGRA_IO_PAD_AUDIO = 0,
1: + TEGRA_IO_PAD_AUDIO_HV = 1,
1: + TEGRA_IO_PAD_BB = 2,
1: + TEGRA_IO_PAD_CAM = 3,
1: + TEGRA_IO_PAD_COMP = 4,
1: + TEGRA_IO_PAD_CONN = 5,
1: + TEGRA_IO_PAD_CSIA = 6,
1: + TEGRA_IO_PAD_CSIB = 7,
1: + TEGRA_IO_PAD_CSIC = 8,
1: + TEGRA_IO_PAD_CSID = 9,
1: + TEGRA_IO_PAD_CSIE = 10,
1: + TEGRA_IO_PAD_CSIF = 11,
1: + TEGRA_IO_PAD_CSIG = 12,
1: + TEGRA_IO_PAD_CSIH = 13,
1: + TEGRA_IO_PAD_DAP3 = 14,
1: + TEGRA_IO_PAD_DAP5 = 15,
1: + TEGRA_IO_PAD_DBG = 16,
1: + TEGRA_IO_PAD_DEBUG_NONAO = 17,
1: + TEGRA_IO_PAD_DMIC = 18,
1: + TEGRA_IO_PAD_DMIC_HV = 19,
1: + TEGRA_IO_PAD_DP = 20,
1: + TEGRA_IO_PAD_DSI = 21,
1: + TEGRA_IO_PAD_DSIB = 22,
1: + TEGRA_IO_PAD_DSIC = 23,
1: + TEGRA_IO_PAD_DSID = 24,
1: + TEGRA_IO_PAD_EDP = 25,
1: + TEGRA_IO_PAD_EMMC = 26,
1: + TEGRA_IO_PAD_EMMC2 = 27,
1: + TEGRA_IO_PAD_EQOS = 28,
1: + TEGRA_IO_PAD_GPIO = 29,
1: + TEGRA_IO_PAD_GP_PWM2 = 30,
1: + TEGRA_IO_PAD_GP_PWM3 = 31,
1: + TEGRA_IO_PAD_HDMI = 32,
1: + TEGRA_IO_PAD_HDMI_DP0 = 33,
1: + TEGRA_IO_PAD_HDMI_DP1 = 34,
1: + TEGRA_IO_PAD_HDMI_DP2 = 35,
1: + TEGRA_IO_PAD_HDMI_DP3 = 36,
1: + TEGRA_IO_PAD_HSIC = 37,
1: + TEGRA_IO_PAD_HV = 38,
1: + TEGRA_IO_PAD_LVDS = 39,
1: + TEGRA_IO_PAD_MIPI_BIAS = 40,
1: + TEGRA_IO_PAD_NAND = 41,
1: + TEGRA_IO_PAD_PEX_BIAS = 42,
1: + TEGRA_IO_PAD_PEX_CLK_BIAS = 43,
1: + TEGRA_IO_PAD_PEX_CLK1 = 44,
1: + TEGRA_IO_PAD_PEX_CLK2 = 45,
1: + TEGRA_IO_PAD_PEX_CLK3 = 46,
1: + TEGRA_IO_PAD_PEX_CLK_2_BIAS = 47,
1: + TEGRA_IO_PAD_PEX_CLK_2 = 48,
1: + TEGRA_IO_PAD_PEX_CNTRL = 49,
1: + TEGRA_IO_PAD_PEX_CTL2 = 50,
1: + TEGRA_IO_PAD_PEX_L0_RST_N = 51,
1: + TEGRA_IO_PAD_PEX_L1_RST_N = 52,
1: + TEGRA_IO_PAD_PEX_L5_RST_N = 53,
1: + TEGRA_IO_PAD_PWR_CTL = 54,
1: + TEGRA_IO_PAD_SDMMC1 = 55,
1: + TEGRA_IO_PAD_SDMMC1_HV = 56,
1: + TEGRA_IO_PAD_SDMMC2 = 57,
1: + TEGRA_IO_PAD_SDMMC2_HV = 58,
1: + TEGRA_IO_PAD_SDMMC3 = 59,
1: + TEGRA_IO_PAD_SDMMC3_HV = 60,
1: + TEGRA_IO_PAD_SDMMC4 = 61,
1: + TEGRA_IO_PAD_SOC_GPIO10 = 62,
1: + TEGRA_IO_PAD_SOC_GPIO12 = 63,
1: + TEGRA_IO_PAD_SOC_GPIO13 = 64,
1: + TEGRA_IO_PAD_SOC_GPIO53 = 65,
1: + TEGRA_IO_PAD_SPI = 66,
1: + TEGRA_IO_PAD_SPI_HV = 67,
1: + TEGRA_IO_PAD_SYS_DDC = 68,
1: + TEGRA_IO_PAD_UART = 69,
1: + TEGRA_IO_PAD_UART4 = 70,
1: + TEGRA_IO_PAD_UART5 = 71,
1: + TEGRA_IO_PAD_UFS = 72,
1: + TEGRA_IO_PAD_USB0 = 73,
1: + TEGRA_IO_PAD_USB1 = 74,
1: + TEGRA_IO_PAD_USB2 = 75,
1: + TEGRA_IO_PAD_USB3 = 76,
1: + TEGRA_IO_PAD_USB_BIAS = 77,
1: + TEGRA_IO_PAD_AO_HV = 78,
1: };
1:
1: struct pmc_clk {
1: - struct clk_hw hw;
1: - long unsigned int offs;
1: - u32 mux_shift;
1: - u32 force_en_shift;
1: + struct clk_hw hw;
1: + long unsigned int offs;
1: + u32 mux_shift;
1: + u32 force_en_shift;
1: };
1:
1: struct pmc_clk_gate {
1: - struct clk_hw hw;
1: - long unsigned int offs;
1: - u32 shift;
1: + struct clk_hw hw;
1: + long unsigned int offs;
1: + u32 shift;
1: };
1:
1: struct pmc_clk_init_data {
1: - char *name;
1: - const char * const *parents;
1: - int num_parents;
1: - int clk_id;
1: - u8 mux_shift;
1: - u8 force_en_shift;
1: + char *name;
1: + const char *const *parents;
1: + int num_parents;
1: + int clk_id;
1: + u8 mux_shift;
1: + u8 force_en_shift;
1: };
1:
1: struct tegra_pmc;
1:
1: struct tegra_powergate {
1: - struct generic_pm_domain genpd;
1: - struct tegra_pmc *pmc;
1: - unsigned int id;
1: - struct clk **clks;
1: - unsigned int num_clks;
1: - struct reset_control *reset;
1: + struct generic_pm_domain genpd;
1: + struct tegra_pmc *pmc;
1: + unsigned int id;
1: + struct clk **clks;
1: + unsigned int num_clks;
1: + struct reset_control *reset;
1: };
1:
1: struct tegra_pmc_soc;
1:
1: struct tegra_pmc {
1: - struct device *dev;
1: - void *base;
1: - void *wake;
1: - void *aotag;
1: - void *scratch;
1: - struct clk *clk;
1: - struct dentry *debugfs;
1: - const struct tegra_pmc_soc *soc;
1: - bool tz_only;
1: - long unsigned int rate;
1: - enum tegra_suspend_mode suspend_mode;
1: - u32 cpu_good_time;
1: - u32 cpu_off_time;
1: - u32 core_osc_time;
1: - u32 core_pmu_time;
1: - u32 core_off_time;
1: - bool corereq_high;
1: - bool sysclkreq_high;
1: - bool combined_req;
1: - bool cpu_pwr_good_en;
1: - u32 lp0_vec_phys;
1: - u32 lp0_vec_size;
1: - long unsigned int powergates_available[1];
1: - struct mutex powergates_lock;
1: - struct pinctrl_dev *pctl_dev;
1: - struct irq_domain *domain;
1: - struct irq_chip irq;
1: - struct notifier_block clk_nb;
1: + struct device *dev;
1: + void *base;
1: + void *wake;
1: + void *aotag;
1: + void *scratch;
1: + struct clk *clk;
1: + struct dentry *debugfs;
1: + const struct tegra_pmc_soc *soc;
1: + bool tz_only;
1: + long unsigned int rate;
1: + enum tegra_suspend_mode suspend_mode;
1: + u32 cpu_good_time;
1: + u32 cpu_off_time;
1: + u32 core_osc_time;
1: + u32 core_pmu_time;
1: + u32 core_off_time;
1: + bool corereq_high;
1: + bool sysclkreq_high;
1: + bool combined_req;
1: + bool cpu_pwr_good_en;
1: + u32 lp0_vec_phys;
1: + u32 lp0_vec_size;
1: + long unsigned int powergates_available[1];
1: + struct mutex powergates_lock;
1: + struct pinctrl_dev *pctl_dev;
1: + struct irq_domain *domain;
1: + struct irq_chip irq;
1: + struct notifier_block clk_nb;
1: };
1:
1: struct tegra_io_pad_soc {
1: - enum tegra_io_pad id;
1: - unsigned int dpd;
1: - unsigned int voltage;
1: - const char *name;
1: + enum tegra_io_pad id;
1: + unsigned int dpd;
1: + unsigned int voltage;
1: + const char *name;
1: };
1:
1: struct tegra_pmc_regs {
1: - unsigned int scratch0;
1: - unsigned int dpd_req;
1: - unsigned int dpd_status;
1: - unsigned int dpd2_req;
1: - unsigned int dpd2_status;
1: - unsigned int rst_status;
1: - unsigned int rst_source_shift;
1: - unsigned int rst_source_mask;
1: - unsigned int rst_level_shift;
1: - unsigned int rst_level_mask;
1: + unsigned int scratch0;
1: + unsigned int dpd_req;
1: + unsigned int dpd_status;
1: + unsigned int dpd2_req;
1: + unsigned int dpd2_status;
1: + unsigned int rst_status;
1: + unsigned int rst_source_shift;
1: + unsigned int rst_source_mask;
1: + unsigned int rst_level_shift;
1: + unsigned int rst_level_mask;
1: };
1:
1: struct tegra_wake_event {
1: - const char *name;
1: - unsigned int id;
1: - unsigned int irq;
1: - struct {
1: - unsigned int instance;
1: - unsigned int pin;
1: - } gpio;
1: + const char *name;
1: + unsigned int id;
1: + unsigned int irq;
1: + struct {
1: + unsigned int instance;
1: + unsigned int pin;
1: + } gpio;
1: };
1:
1: struct tegra_pmc_soc {
1: - unsigned int num_powergates;
1: - const char * const *powergates;
1: - unsigned int num_cpu_powergates;
1: - const u8 *cpu_powergates;
1: - bool has_tsense_reset;
1: - bool has_gpu_clamps;
1: - bool needs_mbist_war;
1: - bool has_impl_33v_pwr;
1: - bool maybe_tz_only;
1: - const struct tegra_io_pad_soc *io_pads;
1: - unsigned int num_io_pads;
1: - const struct pinctrl_pin_desc *pin_descs;
1: - unsigned int num_pin_descs;
1: - const struct tegra_pmc_regs *regs;
1: - void (*init)(struct tegra_pmc *);
1: - void (*setup_irq_polarity)(struct tegra_pmc *, struct device_node *, bool);
1: - int (*irq_set_wake)(struct irq_data *, unsigned int);
1: - int (*irq_set_type)(struct irq_data *, unsigned int);
1: - const char * const *reset_sources;
1: - unsigned int num_reset_sources;
1: - const char * const *reset_levels;
1: - unsigned int num_reset_levels;
1: - const struct tegra_wake_event *wake_events;
1: - unsigned int num_wake_events;
1: - const struct pmc_clk_init_data *pmc_clks_data;
1: - unsigned int num_pmc_clks;
1: - bool has_blink_output;
1: + unsigned int num_powergates;
1: + const char *const *powergates;
1: + unsigned int num_cpu_powergates;
1: + const u8 *cpu_powergates;
1: + bool has_tsense_reset;
1: + bool has_gpu_clamps;
1: + bool needs_mbist_war;
1: + bool has_impl_33v_pwr;
1: + bool maybe_tz_only;
1: + const struct tegra_io_pad_soc *io_pads;
1: + unsigned int num_io_pads;
1: + const struct pinctrl_pin_desc *pin_descs;
1: + unsigned int num_pin_descs;
1: + const struct tegra_pmc_regs *regs;
1: + void (*init)(struct tegra_pmc *);
1: + void (*setup_irq_polarity)(struct tegra_pmc *, struct device_node *, bool);
1: + int (*irq_set_wake)(struct irq_data *, unsigned int);
1: + int (*irq_set_type)(struct irq_data *, unsigned int);
1: + const char *const *reset_sources;
1: + unsigned int num_reset_sources;
1: + const char *const *reset_levels;
1: + unsigned int num_reset_levels;
1: + const struct tegra_wake_event *wake_events;
1: + unsigned int num_wake_events;
1: + const struct pmc_clk_init_data *pmc_clks_data;
1: + unsigned int num_pmc_clks;
1: + bool has_blink_output;
1: };
1:
1: enum mrq_pg_cmd {
1: - CMD_PG_QUERY_ABI = 0,
1: - CMD_PG_SET_STATE = 1,
1: - CMD_PG_GET_STATE = 2,
1: - CMD_PG_GET_NAME = 3,
1: - CMD_PG_GET_MAX_ID = 4,
1: + CMD_PG_QUERY_ABI = 0,
1: + CMD_PG_SET_STATE = 1,
1: + CMD_PG_GET_STATE = 2,
1: + CMD_PG_GET_NAME = 3,
1: + CMD_PG_GET_MAX_ID = 4,
1: };
1:
1: enum pg_states {
1: - PG_STATE_OFF = 0,
1: - PG_STATE_ON = 1,
1: - PG_STATE_RUNNING = 2,
1: + PG_STATE_OFF = 0,
1: + PG_STATE_ON = 1,
1: + PG_STATE_RUNNING = 2,
1: };
1:
1: struct cmd_pg_query_abi_request {
1: - uint32_t type;
1: + uint32_t type;
1: };
1:
1: struct cmd_pg_set_state_request {
1: - uint32_t state;
1: + uint32_t state;
1: };
1:
1: struct cmd_pg_get_state_response {
1: - uint32_t state;
1: + uint32_t state;
1: };
1:
1: struct cmd_pg_get_name_response {
1: - uint8_t name[40];
1: + uint8_t name[40];
1: };
1:
1: struct cmd_pg_get_max_id_response {
1: - uint32_t max_id;
1: + uint32_t max_id;
1: };
1:
1: struct mrq_pg_request {
1: - uint32_t cmd;
1: - uint32_t id;
1: - union {
1: - struct cmd_pg_query_abi_request query_abi;
1: - struct cmd_pg_set_state_request set_state;
1: - };
1: + uint32_t cmd;
1: + uint32_t id;
1: + union {
1: + struct cmd_pg_query_abi_request query_abi;
1: + struct cmd_pg_set_state_request set_state;
1: + };
1: };
1:
1: struct mrq_pg_response {
1: - union {
1: - struct cmd_pg_get_state_response get_state;
1: - struct cmd_pg_get_name_response get_name;
1: - struct cmd_pg_get_max_id_response get_max_id;
1: - };
1: + union {
1: + struct cmd_pg_get_state_response get_state;
1: + struct cmd_pg_get_name_response get_name;
1: + struct cmd_pg_get_max_id_response get_max_id;
1: + };
1: };
1:
1: struct tegra_powergate_info {
1: - unsigned int id;
1: - char *name;
1: + unsigned int id;
1: + char *name;
1: };
1:
1: struct tegra_powergate___2 {
1: - struct generic_pm_domain genpd;
1: - struct tegra_bpmp *bpmp;
1: - unsigned int id;
1: + struct generic_pm_domain genpd;
1: + struct tegra_bpmp *bpmp;
1: + unsigned int id;
1: };
1:
1: typedef struct {
1: - union {
1: - xen_pfn_t *p;
1: - uint64_t q;
1: - };
1: + union {
1: + xen_pfn_t *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_xen_pfn_t;
1:
1: struct grant_entry_v1 {
1: - uint16_t flags;
1: - domid_t domid;
1: - uint32_t frame;
1: + uint16_t flags;
1: + domid_t domid;
1: + uint32_t frame;
1: };
1:
1: struct grant_entry_header {
1: - uint16_t flags;
1: - domid_t domid;
1: + uint16_t flags;
1: + domid_t domid;
1: };
1:
1: union grant_entry_v2 {
1: - struct grant_entry_header hdr;
1: - struct {
1: - struct grant_entry_header hdr;
1: - uint32_t pad0;
1: - uint64_t frame;
1: - } full_page;
1: - struct {
1: - struct grant_entry_header hdr;
1: - uint16_t page_off;
1: - uint16_t length;
1: - uint64_t frame;
1: - } sub_page;
1: - struct {
1: - struct grant_entry_header hdr;
1: - domid_t trans_domid;
1: - uint16_t pad0;
1: - grant_ref_t gref;
1: - } transitive;
1: - uint32_t __spacer[4];
1: + struct grant_entry_header hdr;
1: + struct {
1: + struct grant_entry_header hdr;
1: + uint32_t pad0;
1: + uint64_t frame;
1: + } full_page;
1: + struct {
1: + struct grant_entry_header hdr;
1: + uint16_t page_off;
1: + uint16_t length;
1: + uint64_t frame;
1: + } sub_page;
1: + struct {
1: + struct grant_entry_header hdr;
1: + domid_t trans_domid;
1: + uint16_t pad0;
1: + grant_ref_t gref;
1: + } transitive;
1: + uint32_t __spacer[4];
1: };
1:
1: struct gnttab_setup_table {
1: - domid_t dom;
1: - uint32_t nr_frames;
1: - int16_t status;
1: - __guest_handle_xen_pfn_t frame_list;
1: + domid_t dom;
1: + uint32_t nr_frames;
1: + int16_t status;
1: + __guest_handle_xen_pfn_t frame_list;
1: };
1:
1: struct gnttab_copy {
1: - struct {
1: - union {
1: - grant_ref_t ref;
1: - xen_pfn_t gmfn;
1: - } u;
1: - domid_t domid;
1: - uint16_t offset;
1: - } source;
1: - struct {
1: - union {
1: - grant_ref_t ref;
1: - xen_pfn_t gmfn;
1: - } u;
1: - domid_t domid;
1: - uint16_t offset;
1: - } dest;
1: - uint16_t len;
1: - uint16_t flags;
1: - int16_t status;
1: + struct {
1: + union {
1: + grant_ref_t ref;
1: + xen_pfn_t gmfn;
1: + } u;
1: + domid_t domid;
1: + uint16_t offset;
1: + } source;
1: + struct {
1: + union {
1: + grant_ref_t ref;
1: + xen_pfn_t gmfn;
1: + } u;
1: + domid_t domid;
1: + uint16_t offset;
1: + } dest;
1: + uint16_t len;
1: + uint16_t flags;
1: + int16_t status;
1: };
1:
1: struct gnttab_query_size {
1: - domid_t dom;
1: - uint32_t nr_frames;
1: - uint32_t max_nr_frames;
1: - int16_t status;
1: + domid_t dom;
1: + uint32_t nr_frames;
1: + uint32_t max_nr_frames;
1: + int16_t status;
1: };
1:
1: struct gnttab_set_version {
1: - uint32_t version;
1: + uint32_t version;
1: };
1:
1: struct gnttab_get_status_frames {
1: - uint32_t nr_frames;
1: - domid_t dom;
1: - int16_t status;
1: - __guest_handle_uint64_t frame_list;
1: + uint32_t nr_frames;
1: + domid_t dom;
1: + int16_t status;
1: + __guest_handle_uint64_t frame_list;
1: };
1:
1: struct gnttab_free_callback {
1: - struct gnttab_free_callback *next;
1: - void (*fn)(void *);
1: - void *arg;
1: - u16 count;
1: + struct gnttab_free_callback *next;
1: + void (*fn)(void *);
1: + void *arg;
1: + u16 count;
1: };
1:
1: struct gntab_unmap_queue_data;
1: @@ -76458,802 +77463,805 @@ struct gntab_unmap_queue_data;
1: typedef void (*gnttab_unmap_refs_done)(int, struct gntab_unmap_queue_data *);
1:
1: struct gntab_unmap_queue_data {
1: - struct delayed_work gnttab_work;
1: - void *data;
1: - gnttab_unmap_refs_done done;
1: - struct gnttab_unmap_grant_ref *unmap_ops;
1: - struct gnttab_unmap_grant_ref *kunmap_ops;
1: - struct page **pages;
1: - unsigned int count;
1: - unsigned int age;
1: + struct delayed_work gnttab_work;
1: + void *data;
1: + gnttab_unmap_refs_done done;
1: + struct gnttab_unmap_grant_ref *unmap_ops;
1: + struct gnttab_unmap_grant_ref *kunmap_ops;
1: + struct page **pages;
1: + unsigned int count;
1: + unsigned int age;
1: };
1:
1: struct gnttab_page_cache {
1: - spinlock_t lock;
1: - struct list_head pages;
1: - unsigned int num_pages;
1: + spinlock_t lock;
1: + struct list_head pages;
1: + unsigned int num_pages;
1: };
1:
1: struct xen_page_foreign {
1: - domid_t domid;
1: - grant_ref_t gref;
1: + domid_t domid;
1: + grant_ref_t gref;
1: };
1:
1: -typedef void (*xen_grant_fn_t)(long unsigned int, unsigned int, unsigned int, void *);
1: +typedef void (*xen_grant_fn_t)(long unsigned int, unsigned int, unsigned int,
1: + void *);
1:
1: struct gnttab_ops {
1: - unsigned int version;
1: - unsigned int grefs_per_grant_frame;
1: - int (*map_frames)(xen_pfn_t *, unsigned int);
1: - void (*unmap_frames)();
1: - void (*update_entry)(grant_ref_t, domid_t, long unsigned int, unsigned int);
1: - int (*end_foreign_access_ref)(grant_ref_t, int);
1: - long unsigned int (*end_foreign_transfer_ref)(grant_ref_t);
1: - int (*query_foreign_access)(grant_ref_t);
1: + unsigned int version;
1: + unsigned int grefs_per_grant_frame;
1: + int (*map_frames)(xen_pfn_t *, unsigned int);
1: + void (*unmap_frames)();
1: + void (*update_entry)(grant_ref_t, domid_t, long unsigned int, unsigned int);
1: + int (*end_foreign_access_ref)(grant_ref_t, int);
1: + long unsigned int (*end_foreign_transfer_ref)(grant_ref_t);
1: + int (*query_foreign_access)(grant_ref_t);
1: };
1:
1: struct unmap_refs_callback_data {
1: - struct completion completion;
1: - int result;
1: + struct completion completion;
1: + int result;
1: };
1:
1: struct deferred_entry {
1: - struct list_head list;
1: - grant_ref_t ref;
1: - bool ro;
1: - uint16_t warn_delay;
1: - struct page *page;
1: + struct list_head list;
1: + grant_ref_t ref;
1: + bool ro;
1: + uint16_t warn_delay;
1: + struct page *page;
1: };
1:
1: struct xen_feature_info {
1: - unsigned int submap_idx;
1: - uint32_t submap;
1: + unsigned int submap_idx;
1: + uint32_t submap;
1: };
1:
1: struct balloon_stats {
1: - long unsigned int current_pages;
1: - long unsigned int target_pages;
1: - long unsigned int target_unpopulated;
1: - long unsigned int balloon_low;
1: - long unsigned int balloon_high;
1: - long unsigned int total_pages;
1: - long unsigned int schedule_delay;
1: - long unsigned int max_schedule_delay;
1: - long unsigned int retry_count;
1: - long unsigned int max_retry_count;
1: + long unsigned int current_pages;
1: + long unsigned int target_pages;
1: + long unsigned int target_unpopulated;
1: + long unsigned int balloon_low;
1: + long unsigned int balloon_high;
1: + long unsigned int total_pages;
1: + long unsigned int schedule_delay;
1: + long unsigned int max_schedule_delay;
1: + long unsigned int retry_count;
1: + long unsigned int max_retry_count;
1: };
1:
1: enum bp_state {
1: - BP_DONE = 0,
1: - BP_WAIT = 1,
1: - BP_EAGAIN = 2,
1: - BP_ECANCELED = 3,
1: + BP_DONE = 0,
1: + BP_WAIT = 1,
1: + BP_EAGAIN = 2,
1: + BP_ECANCELED = 3,
1: };
1:
1: enum shutdown_state {
1: - SHUTDOWN_INVALID = 4294967295,
1: - SHUTDOWN_POWEROFF = 0,
1: - SHUTDOWN_SUSPEND = 2,
1: - SHUTDOWN_HALT = 4,
1: + SHUTDOWN_INVALID = 4294967295,
1: + SHUTDOWN_POWEROFF = 0,
1: + SHUTDOWN_SUSPEND = 2,
1: + SHUTDOWN_HALT = 4,
1: };
1:
1: struct suspend_info {
1: - int cancelled;
1: + int cancelled;
1: };
1:
1: struct shutdown_handler {
1: - const char command[11];
1: - bool flag;
1: - void (*cb)();
1: + const char command[11];
1: + bool flag;
1: + void (*cb)();
1: };
1:
1: struct vcpu_runstate_info {
1: - int state;
1: - uint64_t state_entry_time;
1: - uint64_t time[4];
1: + int state;
1: + uint64_t state_entry_time;
1: + uint64_t time[4];
1: };
1:
1: typedef struct {
1: - union {
1: - struct vcpu_runstate_info *p;
1: - uint64_t q;
1: - };
1: + union {
1: + struct vcpu_runstate_info *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_vcpu_runstate_info;
1:
1: struct vcpu_register_runstate_memory_area {
1: - union {
1: - __guest_handle_vcpu_runstate_info h;
1: - struct vcpu_runstate_info *v;
1: - uint64_t p;
1: - } addr;
1: + union {
1: + __guest_handle_vcpu_runstate_info h;
1: + struct vcpu_runstate_info *v;
1: + uint64_t p;
1: + } addr;
1: };
1:
1: struct xen_memory_reservation {
1: - __guest_handle_xen_pfn_t extent_start;
1: - xen_ulong_t nr_extents;
1: - unsigned int extent_order;
1: - unsigned int address_bits;
1: - domid_t domid;
1: + __guest_handle_xen_pfn_t extent_start;
1: + xen_ulong_t nr_extents;
1: + unsigned int extent_order;
1: + unsigned int address_bits;
1: + domid_t domid;
1: };
1:
1: typedef uint32_t evtchn_port_t;
1:
1: typedef struct {
1: - union {
1: - evtchn_port_t *p;
1: - uint64_t q;
1: - };
1: + union {
1: + evtchn_port_t *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_evtchn_port_t;
1:
1: struct evtchn_bind_interdomain {
1: - domid_t remote_dom;
1: - evtchn_port_t remote_port;
1: - evtchn_port_t local_port;
1: + domid_t remote_dom;
1: + evtchn_port_t remote_port;
1: + evtchn_port_t local_port;
1: };
1:
1: struct evtchn_bind_virq {
1: - uint32_t virq;
1: - uint32_t vcpu;
1: - evtchn_port_t port;
1: + uint32_t virq;
1: + uint32_t vcpu;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_bind_pirq {
1: - uint32_t pirq;
1: - uint32_t flags;
1: - evtchn_port_t port;
1: + uint32_t pirq;
1: + uint32_t flags;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_bind_ipi {
1: - uint32_t vcpu;
1: - evtchn_port_t port;
1: + uint32_t vcpu;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_close {
1: - evtchn_port_t port;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_send {
1: - evtchn_port_t port;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_status {
1: - domid_t dom;
1: - evtchn_port_t port;
1: - uint32_t status;
1: - uint32_t vcpu;
1: - union {
1: - struct {
1: - domid_t dom;
1: - } unbound;
1: - struct {
1: - domid_t dom;
1: - evtchn_port_t port;
1: - } interdomain;
1: - uint32_t pirq;
1: - uint32_t virq;
1: - } u;
1: + domid_t dom;
1: + evtchn_port_t port;
1: + uint32_t status;
1: + uint32_t vcpu;
1: + union {
1: + struct {
1: + domid_t dom;
1: + } unbound;
1: + struct {
1: + domid_t dom;
1: + evtchn_port_t port;
1: + } interdomain;
1: + uint32_t pirq;
1: + uint32_t virq;
1: + } u;
1: };
1:
1: struct evtchn_bind_vcpu {
1: - evtchn_port_t port;
1: - uint32_t vcpu;
1: + evtchn_port_t port;
1: + uint32_t vcpu;
1: };
1:
1: struct evtchn_set_priority {
1: - evtchn_port_t port;
1: - uint32_t priority;
1: + evtchn_port_t port;
1: + uint32_t priority;
1: };
1:
1: struct sched_poll {
1: - __guest_handle_evtchn_port_t ports;
1: - unsigned int nr_ports;
1: - uint64_t timeout;
1: + __guest_handle_evtchn_port_t ports;
1: + unsigned int nr_ports;
1: + uint64_t timeout;
1: };
1:
1: enum ipi_vector {
1: - XEN_PLACEHOLDER_VECTOR = 0,
1: - XEN_NR_IPIS = 1,
1: + XEN_PLACEHOLDER_VECTOR = 0,
1: + XEN_NR_IPIS = 1,
1: };
1:
1: struct physdev_eoi {
1: - uint32_t irq;
1: + uint32_t irq;
1: };
1:
1: struct physdev_irq_status_query {
1: - uint32_t irq;
1: - uint32_t flags;
1: + uint32_t irq;
1: + uint32_t flags;
1: };
1:
1: struct physdev_irq {
1: - uint32_t irq;
1: - uint32_t vector;
1: + uint32_t irq;
1: + uint32_t vector;
1: };
1:
1: struct physdev_map_pirq {
1: - domid_t domid;
1: - int type;
1: - int index;
1: - int pirq;
1: - int bus;
1: - int devfn;
1: - int entry_nr;
1: - uint64_t table_base;
1: + domid_t domid;
1: + int type;
1: + int index;
1: + int pirq;
1: + int bus;
1: + int devfn;
1: + int entry_nr;
1: + uint64_t table_base;
1: };
1:
1: struct physdev_unmap_pirq {
1: - domid_t domid;
1: - int pirq;
1: + domid_t domid;
1: + int pirq;
1: };
1:
1: struct physdev_get_free_pirq {
1: - int type;
1: - uint32_t pirq;
1: + int type;
1: + uint32_t pirq;
1: };
1:
1: struct evtchn_loop_ctrl;
1:
1: struct evtchn_ops {
1: - unsigned int (*max_channels)();
1: - unsigned int (*nr_channels)();
1: - int (*setup)(evtchn_port_t);
1: - void (*bind_to_cpu)(evtchn_port_t, unsigned int, unsigned int);
1: - void (*clear_pending)(evtchn_port_t);
1: - void (*set_pending)(evtchn_port_t);
1: - bool (*is_pending)(evtchn_port_t);
1: - bool (*test_and_set_mask)(evtchn_port_t);
1: - void (*mask)(evtchn_port_t);
1: - void (*unmask)(evtchn_port_t);
1: - void (*handle_events)(unsigned int, struct evtchn_loop_ctrl *);
1: - void (*resume)();
1: - int (*percpu_init)(unsigned int);
1: - int (*percpu_deinit)(unsigned int);
1: + unsigned int (*max_channels)();
1: + unsigned int (*nr_channels)();
1: + int (*setup)(evtchn_port_t);
1: + void (*bind_to_cpu)(evtchn_port_t, unsigned int, unsigned int);
1: + void (*clear_pending)(evtchn_port_t);
1: + void (*set_pending)(evtchn_port_t);
1: + bool (*is_pending)(evtchn_port_t);
1: + bool (*test_and_set_mask)(evtchn_port_t);
1: + void (*mask)(evtchn_port_t);
1: + void (*unmask)(evtchn_port_t);
1: + void (*handle_events)(unsigned int, struct evtchn_loop_ctrl *);
1: + void (*resume)();
1: + int (*percpu_init)(unsigned int);
1: + int (*percpu_deinit)(unsigned int);
1: };
1:
1: struct evtchn_loop_ctrl {
1: - ktime_t timeout;
1: - unsigned int count;
1: - bool defer_eoi;
1: + ktime_t timeout;
1: + unsigned int count;
1: + bool defer_eoi;
1: };
1:
1: enum xen_irq_type {
1: - IRQT_UNBOUND = 0,
1: - IRQT_PIRQ = 1,
1: - IRQT_VIRQ = 2,
1: - IRQT_IPI = 3,
1: - IRQT_EVTCHN = 4,
1: + IRQT_UNBOUND = 0,
1: + IRQT_PIRQ = 1,
1: + IRQT_VIRQ = 2,
1: + IRQT_IPI = 3,
1: + IRQT_EVTCHN = 4,
1: };
1:
1: struct irq_info {
1: - struct list_head list;
1: - struct list_head eoi_list;
1: - short int refcnt;
1: - short int spurious_cnt;
1: - enum xen_irq_type type;
1: - unsigned int irq;
1: - evtchn_port_t evtchn;
1: - short unsigned int cpu;
1: - short unsigned int eoi_cpu;
1: - unsigned int irq_epoch;
1: - u64 eoi_time;
1: - union {
1: - short unsigned int virq;
1: - enum ipi_vector ipi;
1: - struct {
1: - short unsigned int pirq;
1: - short unsigned int gsi;
1: - unsigned char vector;
1: - unsigned char flags;
1: - uint16_t domid;
1: - } pirq;
1: - } u;
1: + struct list_head list;
1: + struct list_head eoi_list;
1: + short int refcnt;
1: + short int spurious_cnt;
1: + enum xen_irq_type type;
1: + unsigned int irq;
1: + evtchn_port_t evtchn;
1: + short unsigned int cpu;
1: + short unsigned int eoi_cpu;
1: + unsigned int irq_epoch;
1: + u64 eoi_time;
1: + union {
1: + short unsigned int virq;
1: + enum ipi_vector ipi;
1: + struct {
1: + short unsigned int pirq;
1: + short unsigned int gsi;
1: + unsigned char vector;
1: + unsigned char flags;
1: + uint16_t domid;
1: + } pirq;
1: + } u;
1: };
1:
1: struct lateeoi_work {
1: - struct delayed_work delayed;
1: - spinlock_t eoi_list_lock;
1: - struct list_head eoi_list;
1: + struct delayed_work delayed;
1: + spinlock_t eoi_list_lock;
1: + struct list_head eoi_list;
1: };
1:
1: struct evtchn_unmask {
1: - evtchn_port_t port;
1: + evtchn_port_t port;
1: };
1:
1: struct evtchn_init_control {
1: - uint64_t control_gfn;
1: - uint32_t offset;
1: - uint32_t vcpu;
1: - uint8_t link_bits;
1: - uint8_t _pad[7];
1: + uint64_t control_gfn;
1: + uint32_t offset;
1: + uint32_t vcpu;
1: + uint8_t link_bits;
1: + uint8_t _pad[7];
1: };
1:
1: struct evtchn_expand_array {
1: - uint64_t array_gfn;
1: + uint64_t array_gfn;
1: };
1:
1: typedef uint32_t event_word_t;
1:
1: struct evtchn_fifo_control_block {
1: - uint32_t ready;
1: - uint32_t _rsvd;
1: - event_word_t head[16];
1: + uint32_t ready;
1: + uint32_t _rsvd;
1: + event_word_t head[16];
1: };
1:
1: struct evtchn_fifo_queue {
1: - uint32_t head[16];
1: + uint32_t head[16];
1: };
1:
1: struct evtchn_alloc_unbound {
1: - domid_t dom;
1: - domid_t remote_dom;
1: - evtchn_port_t port;
1: + domid_t dom;
1: + domid_t remote_dom;
1: + evtchn_port_t port;
1: };
1:
1: struct xenbus_map_node {
1: - struct list_head next;
1: - union {
1: - struct {
1: - struct vm_struct *area;
1: - } pv;
1: - struct {
1: - struct page *pages[16];
1: - long unsigned int addrs[16];
1: - void *addr;
1: - } hvm;
1: - };
1: - grant_handle_t handles[16];
1: - unsigned int nr_handles;
1: + struct list_head next;
1: + union {
1: + struct {
1: + struct vm_struct *area;
1: + } pv;
1: + struct {
1: + struct page *pages[16];
1: + long unsigned int addrs[16];
1: + void *addr;
1: + } hvm;
1: + };
1: + grant_handle_t handles[16];
1: + unsigned int nr_handles;
1: };
1:
1: struct map_ring_valloc {
1: - struct xenbus_map_node *node;
1: - long unsigned int addrs[16];
1: - phys_addr_t phys_addrs[16];
1: - struct gnttab_map_grant_ref map[16];
1: - struct gnttab_unmap_grant_ref unmap[16];
1: - unsigned int idx;
1: + struct xenbus_map_node *node;
1: + long unsigned int addrs[16];
1: + phys_addr_t phys_addrs[16];
1: + struct gnttab_map_grant_ref map[16];
1: + struct gnttab_unmap_grant_ref unmap[16];
1: + unsigned int idx;
1: };
1:
1: struct xenbus_ring_ops {
1: - int (*map)(struct xenbus_device *, struct map_ring_valloc *, grant_ref_t *, unsigned int, void **);
1: - int (*unmap)(struct xenbus_device *, void *);
1: + int (*map)(struct xenbus_device *, struct map_ring_valloc *, grant_ref_t *,
1: + unsigned int, void **);
1: + int (*unmap)(struct xenbus_device *, void *);
1: };
1:
1: struct unmap_ring_hvm {
1: - unsigned int idx;
1: - long unsigned int addrs[16];
1: + unsigned int idx;
1: + long unsigned int addrs[16];
1: };
1:
1: enum xsd_sockmsg_type {
1: - XS_DEBUG = 0,
1: - XS_DIRECTORY = 1,
1: - XS_READ = 2,
1: - XS_GET_PERMS = 3,
1: - XS_WATCH = 4,
1: - XS_UNWATCH = 5,
1: - XS_TRANSACTION_START = 6,
1: - XS_TRANSACTION_END = 7,
1: - XS_INTRODUCE = 8,
1: - XS_RELEASE = 9,
1: - XS_GET_DOMAIN_PATH = 10,
1: - XS_WRITE = 11,
1: - XS_MKDIR = 12,
1: - XS_RM = 13,
1: - XS_SET_PERMS = 14,
1: - XS_WATCH_EVENT = 15,
1: - XS_ERROR = 16,
1: - XS_IS_DOMAIN_INTRODUCED = 17,
1: - XS_RESUME = 18,
1: - XS_SET_TARGET = 19,
1: - XS_RESTRICT = 20,
1: - XS_RESET_WATCHES = 21,
1: + XS_DEBUG = 0,
1: + XS_DIRECTORY = 1,
1: + XS_READ = 2,
1: + XS_GET_PERMS = 3,
1: + XS_WATCH = 4,
1: + XS_UNWATCH = 5,
1: + XS_TRANSACTION_START = 6,
1: + XS_TRANSACTION_END = 7,
1: + XS_INTRODUCE = 8,
1: + XS_RELEASE = 9,
1: + XS_GET_DOMAIN_PATH = 10,
1: + XS_WRITE = 11,
1: + XS_MKDIR = 12,
1: + XS_RM = 13,
1: + XS_SET_PERMS = 14,
1: + XS_WATCH_EVENT = 15,
1: + XS_ERROR = 16,
1: + XS_IS_DOMAIN_INTRODUCED = 17,
1: + XS_RESUME = 18,
1: + XS_SET_TARGET = 19,
1: + XS_RESTRICT = 20,
1: + XS_RESET_WATCHES = 21,
1: };
1:
1: struct xsd_sockmsg {
1: - uint32_t type;
1: - uint32_t req_id;
1: - uint32_t tx_id;
1: - uint32_t len;
1: + uint32_t type;
1: + uint32_t req_id;
1: + uint32_t tx_id;
1: + uint32_t len;
1: };
1:
1: typedef uint32_t XENSTORE_RING_IDX;
1:
1: struct xenstore_domain_interface {
1: - char req[1024];
1: - char rsp[1024];
1: - XENSTORE_RING_IDX req_cons;
1: - XENSTORE_RING_IDX req_prod;
1: - XENSTORE_RING_IDX rsp_cons;
1: - XENSTORE_RING_IDX rsp_prod;
1: + char req[1024];
1: + char rsp[1024];
1: + XENSTORE_RING_IDX req_cons;
1: + XENSTORE_RING_IDX req_prod;
1: + XENSTORE_RING_IDX rsp_cons;
1: + XENSTORE_RING_IDX rsp_prod;
1: };
1:
1: struct xs_watch_event {
1: - struct list_head list;
1: - unsigned int len;
1: - struct xenbus_watch *handle;
1: - const char *path;
1: - const char *token;
1: - char body[0];
1: + struct list_head list;
1: + unsigned int len;
1: + struct xenbus_watch *handle;
1: + const char *path;
1: + const char *token;
1: + char body[0];
1: };
1:
1: enum xb_req_state {
1: - xb_req_state_queued = 0,
1: - xb_req_state_wait_reply = 1,
1: - xb_req_state_got_reply = 2,
1: - xb_req_state_aborted = 3,
1: + xb_req_state_queued = 0,
1: + xb_req_state_wait_reply = 1,
1: + xb_req_state_got_reply = 2,
1: + xb_req_state_aborted = 3,
1: };
1:
1: struct xb_req_data {
1: - struct list_head list;
1: - wait_queue_head_t wq;
1: - struct xsd_sockmsg msg;
1: - uint32_t caller_req_id;
1: - enum xsd_sockmsg_type type;
1: - char *body;
1: - const struct kvec *vec;
1: - int num_vecs;
1: - int err;
1: - enum xb_req_state state;
1: - bool user_req;
1: - void (*cb)(struct xb_req_data *);
1: - void *par;
1: + struct list_head list;
1: + wait_queue_head_t wq;
1: + struct xsd_sockmsg msg;
1: + uint32_t caller_req_id;
1: + enum xsd_sockmsg_type type;
1: + char *body;
1: + const struct kvec *vec;
1: + int num_vecs;
1: + int err;
1: + enum xb_req_state state;
1: + bool user_req;
1: + void (*cb)(struct xb_req_data *);
1: + void *par;
1: };
1:
1: enum xenstore_init {
1: - XS_UNKNOWN = 0,
1: - XS_PV = 1,
1: - XS_HVM = 2,
1: - XS_LOCAL = 3,
1: + XS_UNKNOWN = 0,
1: + XS_PV = 1,
1: + XS_HVM = 2,
1: + XS_LOCAL = 3,
1: };
1:
1: struct xen_bus_type {
1: - char *root;
1: - unsigned int levels;
1: - int (*get_bus_id)(char *, const char *);
1: - int (*probe)(struct xen_bus_type *, const char *, const char *);
1: - bool (*otherend_will_handle)(struct xenbus_watch *, const char *, const char *);
1: - void (*otherend_changed)(struct xenbus_watch *, const char *, const char *);
1: - struct bus_type bus;
1: + char *root;
1: + unsigned int levels;
1: + int (*get_bus_id)(char *, const char *);
1: + int (*probe)(struct xen_bus_type *, const char *, const char *);
1: + bool (*otherend_will_handle)(struct xenbus_watch *, const char *,
1: + const char *);
1: + void (*otherend_changed)(struct xenbus_watch *, const char *, const char *);
1: + struct bus_type bus;
1: };
1:
1: struct xb_find_info {
1: - struct xenbus_device *dev;
1: - const char *nodename;
1: + struct xenbus_device *dev;
1: + const char *nodename;
1: };
1:
1: struct xenbus_transaction_holder {
1: - struct list_head list;
1: - struct xenbus_transaction handle;
1: - unsigned int generation_id;
1: + struct list_head list;
1: + struct xenbus_transaction handle;
1: + unsigned int generation_id;
1: };
1:
1: struct read_buffer {
1: - struct list_head list;
1: - unsigned int cons;
1: - unsigned int len;
1: - char msg[0];
1: + struct list_head list;
1: + unsigned int cons;
1: + unsigned int len;
1: + char msg[0];
1: };
1:
1: struct xenbus_file_priv {
1: - struct mutex msgbuffer_mutex;
1: - struct list_head transactions;
1: - struct list_head watches;
1: - unsigned int len;
1: - union {
1: - struct xsd_sockmsg msg;
1: - char buffer[4096];
1: - } u;
1: - struct mutex reply_mutex;
1: - struct list_head read_buffers;
1: - wait_queue_head_t read_waitq;
1: - struct kref kref;
1: - struct work_struct wq;
1: + struct mutex msgbuffer_mutex;
1: + struct list_head transactions;
1: + struct list_head watches;
1: + unsigned int len;
1: + union {
1: + struct xsd_sockmsg msg;
1: + char buffer[4096];
1: + } u;
1: + struct mutex reply_mutex;
1: + struct list_head read_buffers;
1: + wait_queue_head_t read_waitq;
1: + struct kref kref;
1: + struct work_struct wq;
1: };
1:
1: struct watch_adapter {
1: - struct list_head list;
1: - struct xenbus_watch watch;
1: - struct xenbus_file_priv *dev_data;
1: - char *token;
1: + struct list_head list;
1: + struct xenbus_watch watch;
1: + struct xenbus_file_priv *dev_data;
1: + char *token;
1: };
1:
1: typedef struct {
1: - union {
1: - int *p;
1: - uint64_t q;
1: - };
1: + union {
1: + int *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_int;
1:
1: typedef struct {
1: - union {
1: - xen_ulong_t *p;
1: - uint64_t q;
1: - };
1: + union {
1: + xen_ulong_t *p;
1: + uint64_t q;
1: + };
1: } __guest_handle_xen_ulong_t;
1:
1: struct xen_add_to_physmap_range {
1: - domid_t domid;
1: - uint16_t space;
1: - uint16_t size;
1: - domid_t foreign_domid;
1: - __guest_handle_xen_ulong_t idxs;
1: - __guest_handle_xen_pfn_t gpfns;
1: - __guest_handle_int errs;
1: + domid_t domid;
1: + uint16_t space;
1: + uint16_t size;
1: + domid_t foreign_domid;
1: + __guest_handle_xen_ulong_t idxs;
1: + __guest_handle_xen_pfn_t gpfns;
1: + __guest_handle_int errs;
1: };
1:
1: struct xen_remove_from_physmap {
1: - domid_t domid;
1: - xen_pfn_t gpfn;
1: + domid_t domid;
1: + xen_pfn_t gpfn;
1: };
1:
1: struct physdev_manage_pci {
1: - uint8_t bus;
1: - uint8_t devfn;
1: + uint8_t bus;
1: + uint8_t devfn;
1: };
1:
1: struct physdev_manage_pci_ext {
1: - uint8_t bus;
1: - uint8_t devfn;
1: - unsigned int is_extfn;
1: - unsigned int is_virtfn;
1: - struct {
1: - uint8_t bus;
1: - uint8_t devfn;
1: - } physfn;
1: + uint8_t bus;
1: + uint8_t devfn;
1: + unsigned int is_extfn;
1: + unsigned int is_virtfn;
1: + struct {
1: + uint8_t bus;
1: + uint8_t devfn;
1: + } physfn;
1: };
1:
1: struct physdev_pci_device_add {
1: - uint16_t seg;
1: - uint8_t bus;
1: - uint8_t devfn;
1: - uint32_t flags;
1: - struct {
1: - uint8_t bus;
1: - uint8_t devfn;
1: - } physfn;
1: - uint32_t optarr[0];
1: + uint16_t seg;
1: + uint8_t bus;
1: + uint8_t devfn;
1: + uint32_t flags;
1: + struct {
1: + uint8_t bus;
1: + uint8_t devfn;
1: + } physfn;
1: + uint32_t optarr[0];
1: };
1:
1: struct physdev_pci_device {
1: - uint16_t seg;
1: - uint8_t bus;
1: - uint8_t devfn;
1: + uint16_t seg;
1: + uint8_t bus;
1: + uint8_t devfn;
1: };
1:
1: struct usb_device_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __le16 bcdUSB;
1: - __u8 bDeviceClass;
1: - __u8 bDeviceSubClass;
1: - __u8 bDeviceProtocol;
1: - __u8 bMaxPacketSize0;
1: - __le16 idVendor;
1: - __le16 idProduct;
1: - __le16 bcdDevice;
1: - __u8 iManufacturer;
1: - __u8 iProduct;
1: - __u8 iSerialNumber;
1: - __u8 bNumConfigurations;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 bcdUSB;
1: + __u8 bDeviceClass;
1: + __u8 bDeviceSubClass;
1: + __u8 bDeviceProtocol;
1: + __u8 bMaxPacketSize0;
1: + __le16 idVendor;
1: + __le16 idProduct;
1: + __le16 bcdDevice;
1: + __u8 iManufacturer;
1: + __u8 iProduct;
1: + __u8 iSerialNumber;
1: + __u8 bNumConfigurations;
1: };
1:
1: struct usb_config_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __le16 wTotalLength;
1: - __u8 bNumInterfaces;
1: - __u8 bConfigurationValue;
1: - __u8 iConfiguration;
1: - __u8 bmAttributes;
1: - __u8 bMaxPower;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wTotalLength;
1: + __u8 bNumInterfaces;
1: + __u8 bConfigurationValue;
1: + __u8 iConfiguration;
1: + __u8 bmAttributes;
1: + __u8 bMaxPower;
1: } __attribute__((packed));
1:
1: struct usb_interface_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bInterfaceNumber;
1: - __u8 bAlternateSetting;
1: - __u8 bNumEndpoints;
1: - __u8 bInterfaceClass;
1: - __u8 bInterfaceSubClass;
1: - __u8 bInterfaceProtocol;
1: - __u8 iInterface;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bInterfaceNumber;
1: + __u8 bAlternateSetting;
1: + __u8 bNumEndpoints;
1: + __u8 bInterfaceClass;
1: + __u8 bInterfaceSubClass;
1: + __u8 bInterfaceProtocol;
1: + __u8 iInterface;
1: };
1:
1: struct usb_endpoint_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bEndpointAddress;
1: - __u8 bmAttributes;
1: - __le16 wMaxPacketSize;
1: - __u8 bInterval;
1: - __u8 bRefresh;
1: - __u8 bSynchAddress;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bEndpointAddress;
1: + __u8 bmAttributes;
1: + __le16 wMaxPacketSize;
1: + __u8 bInterval;
1: + __u8 bRefresh;
1: + __u8 bSynchAddress;
1: } __attribute__((packed));
1:
1: struct usb_ssp_isoc_ep_comp_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __le16 wReseved;
1: - __le32 dwBytesPerInterval;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wReseved;
1: + __le32 dwBytesPerInterval;
1: };
1:
1: struct usb_ss_ep_comp_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bMaxBurst;
1: - __u8 bmAttributes;
1: - __le16 wBytesPerInterval;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bMaxBurst;
1: + __u8 bmAttributes;
1: + __le16 wBytesPerInterval;
1: };
1:
1: struct usb_interface_assoc_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bFirstInterface;
1: - __u8 bInterfaceCount;
1: - __u8 bFunctionClass;
1: - __u8 bFunctionSubClass;
1: - __u8 bFunctionProtocol;
1: - __u8 iFunction;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bFirstInterface;
1: + __u8 bInterfaceCount;
1: + __u8 bFunctionClass;
1: + __u8 bFunctionSubClass;
1: + __u8 bFunctionProtocol;
1: + __u8 iFunction;
1: };
1:
1: struct usb_bos_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __le16 wTotalLength;
1: - __u8 bNumDeviceCaps;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __le16 wTotalLength;
1: + __u8 bNumDeviceCaps;
1: } __attribute__((packed));
1:
1: struct usb_ext_cap_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bDevCapabilityType;
1: - __le32 bmAttributes;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __le32 bmAttributes;
1: } __attribute__((packed));
1:
1: struct usb_ss_cap_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bDevCapabilityType;
1: - __u8 bmAttributes;
1: - __le16 wSpeedSupported;
1: - __u8 bFunctionalitySupport;
1: - __u8 bU1devExitLat;
1: - __le16 bU2DevExitLat;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bmAttributes;
1: + __le16 wSpeedSupported;
1: + __u8 bFunctionalitySupport;
1: + __u8 bU1devExitLat;
1: + __le16 bU2DevExitLat;
1: };
1:
1: struct usb_ss_container_id_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bDevCapabilityType;
1: - __u8 bReserved;
1: - __u8 ContainerID[16];
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bReserved;
1: + __u8 ContainerID[16];
1: };
1:
1: struct usb_ssp_cap_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bDevCapabilityType;
1: - __u8 bReserved;
1: - __le32 bmAttributes;
1: - __le16 wFunctionalitySupport;
1: - __le16 wReserved;
1: - __le32 bmSublinkSpeedAttr[1];
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: + __u8 bReserved;
1: + __le32 bmAttributes;
1: + __le16 wFunctionalitySupport;
1: + __le16 wReserved;
1: + __le32 bmSublinkSpeedAttr[1];
1: };
1:
1: struct usb_ptm_cap_descriptor {
1: - __u8 bLength;
1: - __u8 bDescriptorType;
1: - __u8 bDevCapabilityType;
1: + __u8 bLength;
1: + __u8 bDescriptorType;
1: + __u8 bDevCapabilityType;
1: };
1:
1: enum usb_device_speed {
1: - USB_SPEED_UNKNOWN = 0,
1: - USB_SPEED_LOW = 1,
1: - USB_SPEED_FULL = 2,
1: - USB_SPEED_HIGH = 3,
1: - USB_SPEED_WIRELESS = 4,
1: - USB_SPEED_SUPER = 5,
1: - USB_SPEED_SUPER_PLUS = 6,
1: + USB_SPEED_UNKNOWN = 0,
1: + USB_SPEED_LOW = 1,
1: + USB_SPEED_FULL = 2,
1: + USB_SPEED_HIGH = 3,
1: + USB_SPEED_WIRELESS = 4,
1: + USB_SPEED_SUPER = 5,
1: + USB_SPEED_SUPER_PLUS = 6,
1: };
1:
1: enum usb_device_state {
1: - USB_STATE_NOTATTACHED = 0,
1: - USB_STATE_ATTACHED = 1,
1: - USB_STATE_POWERED = 2,
1: - USB_STATE_RECONNECTING = 3,
1: - USB_STATE_UNAUTHENTICATED = 4,
1: - USB_STATE_DEFAULT = 5,
1: - USB_STATE_ADDRESS = 6,
1: - USB_STATE_CONFIGURED = 7,
1: - USB_STATE_SUSPENDED = 8,
1: + USB_STATE_NOTATTACHED = 0,
1: + USB_STATE_ATTACHED = 1,
1: + USB_STATE_POWERED = 2,
1: + USB_STATE_RECONNECTING = 3,
1: + USB_STATE_UNAUTHENTICATED = 4,
1: + USB_STATE_DEFAULT = 5,
1: + USB_STATE_ADDRESS = 6,
1: + USB_STATE_CONFIGURED = 7,
1: + USB_STATE_SUSPENDED = 8,
1: };
1:
1: enum usb3_link_state {
1: - USB3_LPM_U0 = 0,
1: - USB3_LPM_U1 = 1,
1: - USB3_LPM_U2 = 2,
1: - USB3_LPM_U3 = 3,
1: + USB3_LPM_U0 = 0,
1: + USB3_LPM_U1 = 1,
1: + USB3_LPM_U2 = 2,
1: + USB3_LPM_U3 = 3,
1: };
1:
1: struct ep_device;
1:
1: struct usb_host_endpoint {
1: - struct usb_endpoint_descriptor desc;
1: - struct usb_ss_ep_comp_descriptor ss_ep_comp;
1: - struct usb_ssp_isoc_ep_comp_descriptor ssp_isoc_ep_comp;
1: - char: 8;
1: - struct list_head urb_list;
1: - void *hcpriv;
1: - struct ep_device *ep_dev;
1: - unsigned char *extra;
1: - int extralen;
1: - int enabled;
1: - int streams;
1: - int: 32;
1: + struct usb_endpoint_descriptor desc;
1: + struct usb_ss_ep_comp_descriptor ss_ep_comp;
1: + struct usb_ssp_isoc_ep_comp_descriptor ssp_isoc_ep_comp;
1: + char : 8;
1: + struct list_head urb_list;
1: + void *hcpriv;
1: + struct ep_device *ep_dev;
1: + unsigned char *extra;
1: + int extralen;
1: + int enabled;
1: + int streams;
1: + int : 32;
1: } __attribute__((packed));
1:
1: struct usb_host_interface {
1: - struct usb_interface_descriptor desc;
1: - int extralen;
1: - unsigned char *extra;
1: - struct usb_host_endpoint *endpoint;
1: - char *string;
1: + struct usb_interface_descriptor desc;
1: + int extralen;
1: + unsigned char *extra;
1: + struct usb_host_endpoint *endpoint;
1: + char *string;
1: };
1:
1: enum usb_interface_condition {
1: - USB_INTERFACE_UNBOUND = 0,
1: - USB_INTERFACE_BINDING = 1,
1: - USB_INTERFACE_BOUND = 2,
1: - USB_INTERFACE_UNBINDING = 3,
1: + USB_INTERFACE_UNBOUND = 0,
1: + USB_INTERFACE_BINDING = 1,
1: + USB_INTERFACE_BOUND = 2,
1: + USB_INTERFACE_UNBINDING = 3,
1: };
1:
1: struct usb_interface {
1: - struct usb_host_interface *altsetting;
1: - struct usb_host_interface *cur_altsetting;
1: - unsigned int num_altsetting;
1: - struct usb_interface_assoc_descriptor *intf_assoc;
1: - int minor;
1: - enum usb_interface_condition condition;
1: - unsigned int sysfs_files_created: 1;
1: - unsigned int ep_devs_created: 1;
1: - unsigned int unregistering: 1;
1: - unsigned int needs_remote_wakeup: 1;
1: - unsigned int needs_altsetting0: 1;
1: - unsigned int needs_binding: 1;
1: - unsigned int resetting_device: 1;
1: - unsigned int authorized: 1;
1: - struct device dev;
1: - struct device *usb_dev;
1: - struct work_struct reset_ws;
1: + struct usb_host_interface *altsetting;
1: + struct usb_host_interface *cur_altsetting;
1: + unsigned int num_altsetting;
1: + struct usb_interface_assoc_descriptor *intf_assoc;
1: + int minor;
1: + enum usb_interface_condition condition;
1: + unsigned int sysfs_files_created : 1;
1: + unsigned int ep_devs_created : 1;
1: + unsigned int unregistering : 1;
1: + unsigned int needs_remote_wakeup : 1;
1: + unsigned int needs_altsetting0 : 1;
1: + unsigned int needs_binding : 1;
1: + unsigned int resetting_device : 1;
1: + unsigned int authorized : 1;
1: + struct device dev;
1: + struct device *usb_dev;
1: + struct work_struct reset_ws;
1: };
1:
1: struct usb_interface_cache {
1: - unsigned int num_altsetting;
1: - struct kref ref;
1: - struct usb_host_interface altsetting[0];
1: + unsigned int num_altsetting;
1: + struct kref ref;
1: + struct usb_host_interface altsetting[0];
1: };
1:
1: struct usb_host_config {
1: - struct usb_config_descriptor desc;
1: - char *string;
1: - struct usb_interface_assoc_descriptor *intf_assoc[16];
1: - struct usb_interface *interface[32];
1: - struct usb_interface_cache *intf_cache[32];
1: - unsigned char *extra;
1: - int extralen;
1: + struct usb_config_descriptor desc;
1: + char *string;
1: + struct usb_interface_assoc_descriptor *intf_assoc[16];
1: + struct usb_interface *interface[32];
1: + struct usb_interface_cache *intf_cache[32];
1: + unsigned char *extra;
1: + int extralen;
1: };
1:
1: struct usb_host_bos {
1: - struct usb_bos_descriptor *desc;
1: - struct usb_ext_cap_descriptor *ext_cap;
1: - struct usb_ss_cap_descriptor *ss_cap;
1: - struct usb_ssp_cap_descriptor *ssp_cap;
1: - struct usb_ss_container_id_descriptor *ss_id;
1: - struct usb_ptm_cap_descriptor *ptm_cap;
1: + struct usb_bos_descriptor *desc;
1: + struct usb_ext_cap_descriptor *ext_cap;
1: + struct usb_ss_cap_descriptor *ss_cap;
1: + struct usb_ssp_cap_descriptor *ssp_cap;
1: + struct usb_ss_container_id_descriptor *ss_id;
1: + struct usb_ptm_cap_descriptor *ptm_cap;
1: };
1:
1: struct usb_devmap {
1: - long unsigned int devicemap[2];
1: + long unsigned int devicemap[2];
1: };
1:
1: struct mon_bus;
1: @@ -77261,138 +78269,138 @@ struct mon_bus;
1: struct usb_device;
1:
1: struct usb_bus {
1: - struct device *controller;
1: - struct device *sysdev;
1: - int busnum;
1: - const char *bus_name;
1: - u8 uses_pio_for_control;
1: - u8 otg_port;
1: - unsigned int is_b_host: 1;
1: - unsigned int b_hnp_enable: 1;
1: - unsigned int no_stop_on_short: 1;
1: - unsigned int no_sg_constraint: 1;
1: - unsigned int sg_tablesize;
1: - int devnum_next;
1: - struct mutex devnum_next_mutex;
1: - struct usb_devmap devmap;
1: - struct usb_device *root_hub;
1: - struct usb_bus *hs_companion;
1: - int bandwidth_allocated;
1: - int bandwidth_int_reqs;
1: - int bandwidth_isoc_reqs;
1: - unsigned int resuming_ports;
1: - struct mon_bus *mon_bus;
1: - int monitored;
1: + struct device *controller;
1: + struct device *sysdev;
1: + int busnum;
1: + const char *bus_name;
1: + u8 uses_pio_for_control;
1: + u8 otg_port;
1: + unsigned int is_b_host : 1;
1: + unsigned int b_hnp_enable : 1;
1: + unsigned int no_stop_on_short : 1;
1: + unsigned int no_sg_constraint : 1;
1: + unsigned int sg_tablesize;
1: + int devnum_next;
1: + struct mutex devnum_next_mutex;
1: + struct usb_devmap devmap;
1: + struct usb_device *root_hub;
1: + struct usb_bus *hs_companion;
1: + int bandwidth_allocated;
1: + int bandwidth_int_reqs;
1: + int bandwidth_isoc_reqs;
1: + unsigned int resuming_ports;
1: + struct mon_bus *mon_bus;
1: + int monitored;
1: };
1:
1: struct wusb_dev;
1:
1: enum usb_device_removable {
1: - USB_DEVICE_REMOVABLE_UNKNOWN = 0,
1: - USB_DEVICE_REMOVABLE = 1,
1: - USB_DEVICE_FIXED = 2,
1: + USB_DEVICE_REMOVABLE_UNKNOWN = 0,
1: + USB_DEVICE_REMOVABLE = 1,
1: + USB_DEVICE_FIXED = 2,
1: };
1:
1: struct usb2_lpm_parameters {
1: - unsigned int besl;
1: - int timeout;
1: + unsigned int besl;
1: + int timeout;
1: };
1:
1: struct usb3_lpm_parameters {
1: - unsigned int mel;
1: - unsigned int pel;
1: - unsigned int sel;
1: - int timeout;
1: + unsigned int mel;
1: + unsigned int pel;
1: + unsigned int sel;
1: + int timeout;
1: };
1:
1: struct usb_tt;
1:
1: struct usb_device {
1: - int devnum;
1: - char devpath[16];
1: - u32 route;
1: - enum usb_device_state state;
1: - enum usb_device_speed speed;
1: - unsigned int rx_lanes;
1: - unsigned int tx_lanes;
1: - struct usb_tt *tt;
1: - int ttport;
1: - unsigned int toggle[2];
1: - struct usb_device *parent;
1: - struct usb_bus *bus;
1: - struct usb_host_endpoint ep0;
1: - struct device dev;
1: - struct usb_device_descriptor descriptor;
1: - struct usb_host_bos *bos;
1: - struct usb_host_config *config;
1: - struct usb_host_config *actconfig;
1: - struct usb_host_endpoint *ep_in[16];
1: - struct usb_host_endpoint *ep_out[16];
1: - char **rawdescriptors;
1: - short unsigned int bus_mA;
1: - u8 portnum;
1: - u8 level;
1: - u8 devaddr;
1: - unsigned int can_submit: 1;
1: - unsigned int persist_enabled: 1;
1: - unsigned int have_langid: 1;
1: - unsigned int authorized: 1;
1: - unsigned int authenticated: 1;
1: - unsigned int wusb: 1;
1: - unsigned int lpm_capable: 1;
1: - unsigned int usb2_hw_lpm_capable: 1;
1: - unsigned int usb2_hw_lpm_besl_capable: 1;
1: - unsigned int usb2_hw_lpm_enabled: 1;
1: - unsigned int usb2_hw_lpm_allowed: 1;
1: - unsigned int usb3_lpm_u1_enabled: 1;
1: - unsigned int usb3_lpm_u2_enabled: 1;
1: - int string_langid;
1: - char *product;
1: - char *manufacturer;
1: - char *serial;
1: - struct list_head filelist;
1: - int maxchild;
1: - u32 quirks;
1: - atomic_t urbnum;
1: - long unsigned int active_duration;
1: - long unsigned int connect_time;
1: - unsigned int do_remote_wakeup: 1;
1: - unsigned int reset_resume: 1;
1: - unsigned int port_is_suspended: 1;
1: - struct wusb_dev *wusb_dev;
1: - int slot_id;
1: - enum usb_device_removable removable;
1: - struct usb2_lpm_parameters l1_params;
1: - struct usb3_lpm_parameters u1_params;
1: - struct usb3_lpm_parameters u2_params;
1: - unsigned int lpm_disable_count;
1: - u16 hub_delay;
1: - unsigned int use_generic_driver: 1;
1: + int devnum;
1: + char devpath[16];
1: + u32 route;
1: + enum usb_device_state state;
1: + enum usb_device_speed speed;
1: + unsigned int rx_lanes;
1: + unsigned int tx_lanes;
1: + struct usb_tt *tt;
1: + int ttport;
1: + unsigned int toggle[2];
1: + struct usb_device *parent;
1: + struct usb_bus *bus;
1: + struct usb_host_endpoint ep0;
1: + struct device dev;
1: + struct usb_device_descriptor descriptor;
1: + struct usb_host_bos *bos;
1: + struct usb_host_config *config;
1: + struct usb_host_config *actconfig;
1: + struct usb_host_endpoint *ep_in[16];
1: + struct usb_host_endpoint *ep_out[16];
1: + char **rawdescriptors;
1: + short unsigned int bus_mA;
1: + u8 portnum;
1: + u8 level;
1: + u8 devaddr;
1: + unsigned int can_submit : 1;
1: + unsigned int persist_enabled : 1;
1: + unsigned int have_langid : 1;
1: + unsigned int authorized : 1;
1: + unsigned int authenticated : 1;
1: + unsigned int wusb : 1;
1: + unsigned int lpm_capable : 1;
1: + unsigned int usb2_hw_lpm_capable : 1;
1: + unsigned int usb2_hw_lpm_besl_capable : 1;
1: + unsigned int usb2_hw_lpm_enabled : 1;
1: + unsigned int usb2_hw_lpm_allowed : 1;
1: + unsigned int usb3_lpm_u1_enabled : 1;
1: + unsigned int usb3_lpm_u2_enabled : 1;
1: + int string_langid;
1: + char *product;
1: + char *manufacturer;
1: + char *serial;
1: + struct list_head filelist;
1: + int maxchild;
1: + u32 quirks;
1: + atomic_t urbnum;
1: + long unsigned int active_duration;
1: + long unsigned int connect_time;
1: + unsigned int do_remote_wakeup : 1;
1: + unsigned int reset_resume : 1;
1: + unsigned int port_is_suspended : 1;
1: + struct wusb_dev *wusb_dev;
1: + int slot_id;
1: + enum usb_device_removable removable;
1: + struct usb2_lpm_parameters l1_params;
1: + struct usb3_lpm_parameters u1_params;
1: + struct usb3_lpm_parameters u2_params;
1: + unsigned int lpm_disable_count;
1: + u16 hub_delay;
1: + unsigned int use_generic_driver : 1;
1: };
1:
1: struct usb_tt {
1: - struct usb_device *hub;
1: - int multi;
1: - unsigned int think_time;
1: - void *hcpriv;
1: - spinlock_t lock;
1: - struct list_head clear_list;
1: - struct work_struct clear_work;
1: + struct usb_device *hub;
1: + int multi;
1: + unsigned int think_time;
1: + void *hcpriv;
1: + spinlock_t lock;
1: + struct list_head clear_list;
1: + struct work_struct clear_work;
1: };
1:
1: struct usb_iso_packet_descriptor {
1: - unsigned int offset;
1: - unsigned int length;
1: - unsigned int actual_length;
1: - int status;
1: + unsigned int offset;
1: + unsigned int length;
1: + unsigned int actual_length;
1: + int status;
1: };
1:
1: struct usb_anchor {
1: - struct list_head urb_list;
1: - wait_queue_head_t wait;
1: - spinlock_t lock;
1: - atomic_t suspend_wakeups;
1: - unsigned int poisoned: 1;
1: + struct list_head urb_list;
1: + wait_queue_head_t wait;
1: + spinlock_t lock;
1: + atomic_t suspend_wakeups;
1: + unsigned int poisoned : 1;
1: };
1:
1: struct urb;
1: @@ -77400,50 +78408,50 @@ struct urb;
1: typedef void (*usb_complete_t)(struct urb *);
1:
1: struct urb {
1: - struct kref kref;
1: - int unlinked;
1: - void *hcpriv;
1: - atomic_t use_count;
1: - atomic_t reject;
1: - struct list_head urb_list;
1: - struct list_head anchor_list;
1: - struct usb_anchor *anchor;
1: - struct usb_device *dev;
1: - struct usb_host_endpoint *ep;
1: - unsigned int pipe;
1: - unsigned int stream_id;
1: - int status;
1: - unsigned int transfer_flags;
1: - void *transfer_buffer;
1: - dma_addr_t transfer_dma;
1: - struct scatterlist *sg;
1: - int num_mapped_sgs;
1: - int num_sgs;
1: - u32 transfer_buffer_length;
1: - u32 actual_length;
1: - unsigned char *setup_packet;
1: - dma_addr_t setup_dma;
1: - int start_frame;
1: - int number_of_packets;
1: - int interval;
1: - int error_count;
1: - void *context;
1: - usb_complete_t complete;
1: - struct usb_iso_packet_descriptor iso_frame_desc[0];
1: + struct kref kref;
1: + int unlinked;
1: + void *hcpriv;
1: + atomic_t use_count;
1: + atomic_t reject;
1: + struct list_head urb_list;
1: + struct list_head anchor_list;
1: + struct usb_anchor *anchor;
1: + struct usb_device *dev;
1: + struct usb_host_endpoint *ep;
1: + unsigned int pipe;
1: + unsigned int stream_id;
1: + int status;
1: + unsigned int transfer_flags;
1: + void *transfer_buffer;
1: + dma_addr_t transfer_dma;
1: + struct scatterlist *sg;
1: + int num_mapped_sgs;
1: + int num_sgs;
1: + u32 transfer_buffer_length;
1: + u32 actual_length;
1: + unsigned char *setup_packet;
1: + dma_addr_t setup_dma;
1: + int start_frame;
1: + int number_of_packets;
1: + int interval;
1: + int error_count;
1: + void *context;
1: + usb_complete_t complete;
1: + struct usb_iso_packet_descriptor iso_frame_desc[0];
1: };
1:
1: struct giveback_urb_bh {
1: - bool running;
1: - spinlock_t lock;
1: - struct list_head head;
1: - struct tasklet_struct bh;
1: - struct usb_host_endpoint *completing_ep;
1: + bool running;
1: + spinlock_t lock;
1: + struct list_head head;
1: + struct tasklet_struct bh;
1: + struct usb_host_endpoint *completing_ep;
1: };
1:
1: enum usb_dev_authorize_policy {
1: - USB_DEVICE_AUTHORIZE_NONE = 0,
1: - USB_DEVICE_AUTHORIZE_ALL = 1,
1: - USB_DEVICE_AUTHORIZE_INTERNAL = 2,
1: + USB_DEVICE_AUTHORIZE_NONE = 0,
1: + USB_DEVICE_AUTHORIZE_ALL = 1,
1: + USB_DEVICE_AUTHORIZE_INTERNAL = 2,
1: };
1:
1: struct usb_phy;
1: @@ -77457,188 +78465,197 @@ struct gen_pool___2;
1: struct hc_driver;
1:
1: struct usb_hcd {
1: - struct usb_bus self;
1: - struct kref kref;
1: - const char *product_desc;
1: - int speed;
1: - char irq_descr[24];
1: - struct timer_list rh_timer;
1: - struct urb *status_urb;
1: - struct work_struct wakeup_work;
1: - struct work_struct died_work;
1: - const struct hc_driver *driver;
1: - struct usb_phy *usb_phy;
1: - struct usb_phy_roothub *phy_roothub;
1: - long unsigned int flags;
1: - enum usb_dev_authorize_policy dev_policy;
1: - unsigned int rh_registered: 1;
1: - unsigned int rh_pollable: 1;
1: - unsigned int msix_enabled: 1;
1: - unsigned int msi_enabled: 1;
1: - unsigned int skip_phy_initialization: 1;
1: - unsigned int uses_new_polling: 1;
1: - unsigned int wireless: 1;
1: - unsigned int has_tt: 1;
1: - unsigned int amd_resume_bug: 1;
1: - unsigned int can_do_streams: 1;
1: - unsigned int tpl_support: 1;
1: - unsigned int cant_recv_wakeups: 1;
1: - unsigned int irq;
1: - void *regs;
1: - resource_size_t rsrc_start;
1: - resource_size_t rsrc_len;
1: - unsigned int power_budget;
1: - struct giveback_urb_bh high_prio_bh;
1: - struct giveback_urb_bh low_prio_bh;
1: - struct mutex *address0_mutex;
1: - struct mutex *bandwidth_mutex;
1: - struct usb_hcd *shared_hcd;
1: - struct usb_hcd *primary_hcd;
1: - struct dma_pool___2 *pool[4];
1: - int state;
1: - struct gen_pool___2 *localmem_pool;
1: - long unsigned int hcd_priv[0];
1: + struct usb_bus self;
1: + struct kref kref;
1: + const char *product_desc;
1: + int speed;
1: + char irq_descr[24];
1: + struct timer_list rh_timer;
1: + struct urb *status_urb;
1: + struct work_struct wakeup_work;
1: + struct work_struct died_work;
1: + const struct hc_driver *driver;
1: + struct usb_phy *usb_phy;
1: + struct usb_phy_roothub *phy_roothub;
1: + long unsigned int flags;
1: + enum usb_dev_authorize_policy dev_policy;
1: + unsigned int rh_registered : 1;
1: + unsigned int rh_pollable : 1;
1: + unsigned int msix_enabled : 1;
1: + unsigned int msi_enabled : 1;
1: + unsigned int skip_phy_initialization : 1;
1: + unsigned int uses_new_polling : 1;
1: + unsigned int wireless : 1;
1: + unsigned int has_tt : 1;
1: + unsigned int amd_resume_bug : 1;
1: + unsigned int can_do_streams : 1;
1: + unsigned int tpl_support : 1;
1: + unsigned int cant_recv_wakeups : 1;
1: + unsigned int irq;
1: + void *regs;
1: + resource_size_t rsrc_start;
1: + resource_size_t rsrc_len;
1: + unsigned int power_budget;
1: + struct giveback_urb_bh high_prio_bh;
1: + struct giveback_urb_bh low_prio_bh;
1: + struct mutex *address0_mutex;
1: + struct mutex *bandwidth_mutex;
1: + struct usb_hcd *shared_hcd;
1: + struct usb_hcd *primary_hcd;
1: + struct dma_pool___2 *pool[4];
1: + int state;
1: + struct gen_pool___2 *localmem_pool;
1: + long unsigned int hcd_priv[0];
1: };
1:
1: struct hc_driver {
1: - const char *description;
1: - const char *product_desc;
1: - size_t hcd_priv_size;
1: - irqreturn_t (*irq)(struct usb_hcd *);
1: - int flags;
1: - int (*reset)(struct usb_hcd *);
1: - int (*start)(struct usb_hcd *);
1: - int (*pci_suspend)(struct usb_hcd *, bool);
1: - int (*pci_resume)(struct usb_hcd *, bool);
1: - void (*stop)(struct usb_hcd *);
1: - void (*shutdown)(struct usb_hcd *);
1: - int (*get_frame_number)(struct usb_hcd *);
1: - int (*urb_enqueue)(struct usb_hcd *, struct urb *, gfp_t);
1: - int (*urb_dequeue)(struct usb_hcd *, struct urb *, int);
1: - int (*map_urb_for_dma)(struct usb_hcd *, struct urb *, gfp_t);
1: - void (*unmap_urb_for_dma)(struct usb_hcd *, struct urb *);
1: - void (*endpoint_disable)(struct usb_hcd *, struct usb_host_endpoint *);
1: - void (*endpoint_reset)(struct usb_hcd *, struct usb_host_endpoint *);
1: - int (*hub_status_data)(struct usb_hcd *, char *);
1: - int (*hub_control)(struct usb_hcd *, u16, u16, u16, char *, u16);
1: - int (*bus_suspend)(struct usb_hcd *);
1: - int (*bus_resume)(struct usb_hcd *);
1: - int (*start_port_reset)(struct usb_hcd *, unsigned int);
1: - long unsigned int (*get_resuming_ports)(struct usb_hcd *);
1: - void (*relinquish_port)(struct usb_hcd *, int);
1: - int (*port_handed_over)(struct usb_hcd *, int);
1: - void (*clear_tt_buffer_complete)(struct usb_hcd *, struct usb_host_endpoint *);
1: - int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
1: - void (*free_dev)(struct usb_hcd *, struct usb_device *);
1: - int (*alloc_streams)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint **, unsigned int, unsigned int, gfp_t);
1: - int (*free_streams)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint **, unsigned int, gfp_t);
1: - int (*add_endpoint)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint *);
1: - int (*drop_endpoint)(struct usb_hcd *, struct usb_device *, struct usb_host_endpoint *);
1: - int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
1: - void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
1: - int (*address_device)(struct usb_hcd *, struct usb_device *);
1: - int (*enable_device)(struct usb_hcd *, struct usb_device *);
1: - int (*update_hub_device)(struct usb_hcd *, struct usb_device *, struct usb_tt *, gfp_t);
1: - int (*reset_device)(struct usb_hcd *, struct usb_device *);
1: - int (*update_device)(struct usb_hcd *, struct usb_device *);
1: - int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
1: - int (*enable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *, enum usb3_link_state);
1: - int (*disable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *, enum usb3_link_state);
1: - int (*find_raw_port_number)(struct usb_hcd *, int);
1: - int (*port_power)(struct usb_hcd *, int, bool);
1: + const char *description;
1: + const char *product_desc;
1: + size_t hcd_priv_size;
1: + irqreturn_t (*irq)(struct usb_hcd *);
1: + int flags;
1: + int (*reset)(struct usb_hcd *);
1: + int (*start)(struct usb_hcd *);
1: + int (*pci_suspend)(struct usb_hcd *, bool);
1: + int (*pci_resume)(struct usb_hcd *, bool);
1: + void (*stop)(struct usb_hcd *);
1: + void (*shutdown)(struct usb_hcd *);
1: + int (*get_frame_number)(struct usb_hcd *);
1: + int (*urb_enqueue)(struct usb_hcd *, struct urb *, gfp_t);
1: + int (*urb_dequeue)(struct usb_hcd *, struct urb *, int);
1: + int (*map_urb_for_dma)(struct usb_hcd *, struct urb *, gfp_t);
1: + void (*unmap_urb_for_dma)(struct usb_hcd *, struct urb *);
1: + void (*endpoint_disable)(struct usb_hcd *, struct usb_host_endpoint *);
1: + void (*endpoint_reset)(struct usb_hcd *, struct usb_host_endpoint *);
1: + int (*hub_status_data)(struct usb_hcd *, char *);
1: + int (*hub_control)(struct usb_hcd *, u16, u16, u16, char *, u16);
1: + int (*bus_suspend)(struct usb_hcd *);
1: + int (*bus_resume)(struct usb_hcd *);
1: + int (*start_port_reset)(struct usb_hcd *, unsigned int);
1: + long unsigned int (*get_resuming_ports)(struct usb_hcd *);
1: + void (*relinquish_port)(struct usb_hcd *, int);
1: + int (*port_handed_over)(struct usb_hcd *, int);
1: + void (*clear_tt_buffer_complete)(struct usb_hcd *,
1: + struct usb_host_endpoint *);
1: + int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
1: + void (*free_dev)(struct usb_hcd *, struct usb_device *);
1: + int (*alloc_streams)(struct usb_hcd *, struct usb_device *,
1: + struct usb_host_endpoint **, unsigned int, unsigned int,
1: + gfp_t);
1: + int (*free_streams)(struct usb_hcd *, struct usb_device *,
1: + struct usb_host_endpoint **, unsigned int, gfp_t);
1: + int (*add_endpoint)(struct usb_hcd *, struct usb_device *,
1: + struct usb_host_endpoint *);
1: + int (*drop_endpoint)(struct usb_hcd *, struct usb_device *,
1: + struct usb_host_endpoint *);
1: + int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
1: + void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
1: + int (*address_device)(struct usb_hcd *, struct usb_device *);
1: + int (*enable_device)(struct usb_hcd *, struct usb_device *);
1: + int (*update_hub_device)(struct usb_hcd *, struct usb_device *,
1: + struct usb_tt *, gfp_t);
1: + int (*reset_device)(struct usb_hcd *, struct usb_device *);
1: + int (*update_device)(struct usb_hcd *, struct usb_device *);
1: + int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
1: + int (*enable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *,
1: + enum usb3_link_state);
1: + int (*disable_usb3_lpm_timeout)(struct usb_hcd *, struct usb_device *,
1: + enum usb3_link_state);
1: + int (*find_raw_port_number)(struct usb_hcd *, int);
1: + int (*port_power)(struct usb_hcd *, int, bool);
1: };
1:
1: struct physdev_dbgp_op {
1: - uint8_t op;
1: - uint8_t bus;
1: - union {
1: - struct physdev_pci_device pci;
1: - } u;
1: + uint8_t op;
1: + uint8_t bus;
1: + union {
1: + struct physdev_pci_device pci;
1: + } u;
1: };
1:
1: struct dev_ext_attribute {
1: - struct device_attribute attr;
1: - void *var;
1: + struct device_attribute attr;
1: + void *var;
1: };
1:
1: struct ioctl_evtchn_bind_virq {
1: - unsigned int virq;
1: + unsigned int virq;
1: };
1:
1: struct ioctl_evtchn_bind_interdomain {
1: - unsigned int remote_domain;
1: - unsigned int remote_port;
1: + unsigned int remote_domain;
1: + unsigned int remote_port;
1: };
1:
1: struct ioctl_evtchn_bind_unbound_port {
1: - unsigned int remote_domain;
1: + unsigned int remote_domain;
1: };
1:
1: struct ioctl_evtchn_unbind {
1: - unsigned int port;
1: + unsigned int port;
1: };
1:
1: struct ioctl_evtchn_notify {
1: - unsigned int port;
1: + unsigned int port;
1: };
1:
1: struct ioctl_evtchn_restrict_domid {
1: - domid_t domid;
1: + domid_t domid;
1: };
1:
1: struct per_user_data {
1: - struct mutex bind_mutex;
1: - struct rb_root evtchns;
1: - unsigned int nr_evtchns;
1: - unsigned int ring_size;
1: - evtchn_port_t *ring;
1: - unsigned int ring_cons;
1: - unsigned int ring_prod;
1: - unsigned int ring_overflow;
1: - struct mutex ring_cons_mutex;
1: - spinlock_t ring_prod_lock;
1: - wait_queue_head_t evtchn_wait;
1: - struct fasync_struct *evtchn_async_queue;
1: - const char *name;
1: - domid_t restrict_domid;
1: + struct mutex bind_mutex;
1: + struct rb_root evtchns;
1: + unsigned int nr_evtchns;
1: + unsigned int ring_size;
1: + evtchn_port_t *ring;
1: + unsigned int ring_cons;
1: + unsigned int ring_prod;
1: + unsigned int ring_overflow;
1: + struct mutex ring_cons_mutex;
1: + spinlock_t ring_prod_lock;
1: + wait_queue_head_t evtchn_wait;
1: + struct fasync_struct *evtchn_async_queue;
1: + const char *name;
1: + domid_t restrict_domid;
1: };
1:
1: struct user_evtchn {
1: - struct rb_node node;
1: - struct per_user_data *user;
1: - evtchn_port_t port;
1: - bool enabled;
1: + struct rb_node node;
1: + struct per_user_data *user;
1: + evtchn_port_t port;
1: + bool enabled;
1: };
1:
1: typedef uint8_t xen_domain_handle_t[16];
1:
1: struct xen_compile_info {
1: - char compiler[64];
1: - char compile_by[16];
1: - char compile_domain[32];
1: - char compile_date[32];
1: + char compiler[64];
1: + char compile_by[16];
1: + char compile_domain[32];
1: + char compile_date[32];
1: };
1:
1: struct xen_platform_parameters {
1: - xen_ulong_t virt_start;
1: + xen_ulong_t virt_start;
1: };
1:
1: struct xen_build_id {
1: - uint32_t len;
1: - unsigned char buf[0];
1: + uint32_t len;
1: + unsigned char buf[0];
1: };
1:
1: struct hyp_sysfs_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct hyp_sysfs_attr *, char *);
1: - ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
1: - void *hyp_attr_data;
1: + struct attribute attr;
1: + ssize_t (*show)(struct hyp_sysfs_attr *, char *);
1: + ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
1: + void *hyp_attr_data;
1: };
1:
1: enum xen_swiotlb_err {
1: - XEN_SWIOTLB_UNKNOWN = 0,
1: - XEN_SWIOTLB_ENOMEM = 1,
1: - XEN_SWIOTLB_EFIXUP = 2,
1: + XEN_SWIOTLB_UNKNOWN = 0,
1: + XEN_SWIOTLB_ENOMEM = 1,
1: + XEN_SWIOTLB_EFIXUP = 2,
1: };
1:
1: typedef void (*xen_gfn_fn_t)(long unsigned int, void *);
1: @@ -77646,68 +78663,70 @@ typedef void (*xen_gfn_fn_t)(long unsigned int, void *);
1: struct xen_remap_gfn_info;
1:
1: struct remap_data {
1: - xen_pfn_t *fgfn;
1: - int nr_fgfn;
1: - pgprot_t prot;
1: - domid_t domid;
1: - struct vm_area_struct *vma;
1: - int index;
1: - struct page **pages;
1: - struct xen_remap_gfn_info *info;
1: - int *err_ptr;
1: - int mapped;
1: - int h_errs[1];
1: - xen_ulong_t h_idxs[1];
1: - xen_pfn_t h_gpfns[1];
1: - int h_iter;
1: + xen_pfn_t *fgfn;
1: + int nr_fgfn;
1: + pgprot_t prot;
1: + domid_t domid;
1: + struct vm_area_struct *vma;
1: + int index;
1: + struct page **pages;
1: + struct xen_remap_gfn_info *info;
1: + int *err_ptr;
1: + int mapped;
1: + int h_errs[1];
1: + xen_ulong_t h_idxs[1];
1: + xen_pfn_t h_gpfns[1];
1: + int h_iter;
1: };
1:
1: struct map_balloon_pages {
1: - xen_pfn_t *pfns;
1: - unsigned int idx;
1: + xen_pfn_t *pfns;
1: + unsigned int idx;
1: };
1:
1: struct remap_pfn {
1: - struct mm_struct *mm;
1: - struct page **pages;
1: - pgprot_t prot;
1: - long unsigned int i;
1: + struct mm_struct *mm;
1: + struct page **pages;
1: + pgprot_t prot;
1: + long unsigned int i;
1: };
1:
1: struct fastopen_queue {
1: - struct request_sock *rskq_rst_head;
1: - struct request_sock *rskq_rst_tail;
1: - spinlock_t lock;
1: - int qlen;
1: - int max_qlen;
1: - struct tcp_fastopen_context *ctx;
1: + struct request_sock *rskq_rst_head;
1: + struct request_sock *rskq_rst_tail;
1: + spinlock_t lock;
1: + int qlen;
1: + int max_qlen;
1: + struct tcp_fastopen_context *ctx;
1: };
1:
1: struct request_sock_queue {
1: - spinlock_t rskq_lock;
1: - u8 rskq_defer_accept;
1: - u32 synflood_warned;
1: - atomic_t qlen;
1: - atomic_t young;
1: - struct request_sock *rskq_accept_head;
1: - struct request_sock *rskq_accept_tail;
1: - struct fastopen_queue fastopenq;
1: + spinlock_t rskq_lock;
1: + u8 rskq_defer_accept;
1: + u32 synflood_warned;
1: + atomic_t qlen;
1: + atomic_t young;
1: + struct request_sock *rskq_accept_head;
1: + struct request_sock *rskq_accept_tail;
1: + struct fastopen_queue fastopenq;
1: };
1:
1: struct inet_connection_sock_af_ops {
1: - int (*queue_xmit)(struct sock *, struct sk_buff *, struct flowi *);
1: - void (*send_check)(struct sock *, struct sk_buff *);
1: - int (*rebuild_header)(struct sock *);
1: - void (*sk_rx_dst_set)(struct sock *, const struct sk_buff *);
1: - int (*conn_request)(struct sock *, struct sk_buff *);
1: - struct sock * (*syn_recv_sock)(const struct sock *, struct sk_buff *, struct request_sock *, struct dst_entry *, struct request_sock *, bool *);
1: - u16 net_header_len;
1: - u16 net_frag_header_len;
1: - u16 sockaddr_len;
1: - int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: - int (*getsockopt)(struct sock *, int, int, char *, int *);
1: - void (*addr2sockaddr)(struct sock *, struct sockaddr *);
1: - void (*mtu_reduced)(struct sock *);
1: + int (*queue_xmit)(struct sock *, struct sk_buff *, struct flowi *);
1: + void (*send_check)(struct sock *, struct sk_buff *);
1: + int (*rebuild_header)(struct sock *);
1: + void (*sk_rx_dst_set)(struct sock *, const struct sk_buff *);
1: + int (*conn_request)(struct sock *, struct sk_buff *);
1: + struct sock *(*syn_recv_sock)(const struct sock *, struct sk_buff *,
1: + struct request_sock *, struct dst_entry *,
1: + struct request_sock *, bool *);
1: + u16 net_header_len;
1: + u16 net_frag_header_len;
1: + u16 sockaddr_len;
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*addr2sockaddr)(struct sock *, struct sockaddr *);
1: + void (*mtu_reduced)(struct sock *);
1: };
1:
1: struct inet_bind_bucket;
1: @@ -77715,288 +78734,288 @@ struct inet_bind_bucket;
1: struct tcp_ulp_ops;
1:
1: struct inet_connection_sock {
1: - struct inet_sock icsk_inet;
1: - struct request_sock_queue icsk_accept_queue;
1: - struct inet_bind_bucket *icsk_bind_hash;
1: - long unsigned int icsk_timeout;
1: - struct timer_list icsk_retransmit_timer;
1: - struct timer_list icsk_delack_timer;
1: - __u32 icsk_rto;
1: - __u32 icsk_rto_min;
1: - __u32 icsk_delack_max;
1: - __u32 icsk_pmtu_cookie;
1: - const struct tcp_congestion_ops *icsk_ca_ops;
1: - const struct inet_connection_sock_af_ops *icsk_af_ops;
1: - const struct tcp_ulp_ops *icsk_ulp_ops;
1: - void *icsk_ulp_data;
1: - void (*icsk_clean_acked)(struct sock *, u32);
1: - struct hlist_node icsk_listen_portaddr_node;
1: - unsigned int (*icsk_sync_mss)(struct sock *, u32);
1: - __u8 icsk_ca_state: 5;
1: - __u8 icsk_ca_initialized: 1;
1: - __u8 icsk_ca_setsockopt: 1;
1: - __u8 icsk_ca_dst_locked: 1;
1: - __u8 icsk_retransmits;
1: - __u8 icsk_pending;
1: - __u8 icsk_backoff;
1: - __u8 icsk_syn_retries;
1: - __u8 icsk_probes_out;
1: - __u16 icsk_ext_hdr_len;
1: - struct {
1: - __u8 pending;
1: - __u8 quick;
1: - __u8 pingpong;
1: - __u8 retry;
1: - __u32 ato;
1: - long unsigned int timeout;
1: - __u32 lrcvtime;
1: - __u16 last_seg_size;
1: - __u16 rcv_mss;
1: - } icsk_ack;
1: - struct {
1: - int enabled;
1: - int search_high;
1: - int search_low;
1: - int probe_size;
1: - u32 probe_timestamp;
1: - } icsk_mtup;
1: - u32 icsk_probes_tstamp;
1: - u32 icsk_user_timeout;
1: - u64 icsk_ca_priv[13];
1: + struct inet_sock icsk_inet;
1: + struct request_sock_queue icsk_accept_queue;
1: + struct inet_bind_bucket *icsk_bind_hash;
1: + long unsigned int icsk_timeout;
1: + struct timer_list icsk_retransmit_timer;
1: + struct timer_list icsk_delack_timer;
1: + __u32 icsk_rto;
1: + __u32 icsk_rto_min;
1: + __u32 icsk_delack_max;
1: + __u32 icsk_pmtu_cookie;
1: + const struct tcp_congestion_ops *icsk_ca_ops;
1: + const struct inet_connection_sock_af_ops *icsk_af_ops;
1: + const struct tcp_ulp_ops *icsk_ulp_ops;
1: + void *icsk_ulp_data;
1: + void (*icsk_clean_acked)(struct sock *, u32);
1: + struct hlist_node icsk_listen_portaddr_node;
1: + unsigned int (*icsk_sync_mss)(struct sock *, u32);
1: + __u8 icsk_ca_state : 5;
1: + __u8 icsk_ca_initialized : 1;
1: + __u8 icsk_ca_setsockopt : 1;
1: + __u8 icsk_ca_dst_locked : 1;
1: + __u8 icsk_retransmits;
1: + __u8 icsk_pending;
1: + __u8 icsk_backoff;
1: + __u8 icsk_syn_retries;
1: + __u8 icsk_probes_out;
1: + __u16 icsk_ext_hdr_len;
1: + struct {
1: + __u8 pending;
1: + __u8 quick;
1: + __u8 pingpong;
1: + __u8 retry;
1: + __u32 ato;
1: + long unsigned int timeout;
1: + __u32 lrcvtime;
1: + __u16 last_seg_size;
1: + __u16 rcv_mss;
1: + } icsk_ack;
1: + struct {
1: + int enabled;
1: + int search_high;
1: + int search_low;
1: + int probe_size;
1: + u32 probe_timestamp;
1: + } icsk_mtup;
1: + u32 icsk_probes_tstamp;
1: + u32 icsk_user_timeout;
1: + u64 icsk_ca_priv[13];
1: };
1:
1: struct tcp_ulp_ops {
1: - struct list_head list;
1: - int (*init)(struct sock *);
1: - void (*update)(struct sock *, struct proto *, void (*)(struct sock *));
1: - void (*release)(struct sock *);
1: - int (*get_info)(const struct sock *, struct sk_buff *);
1: - size_t (*get_info_size)(const struct sock *);
1: - void (*clone)(const struct request_sock *, struct sock *, const gfp_t);
1: - char name[16];
1: - struct module *owner;
1: + struct list_head list;
1: + int (*init)(struct sock *);
1: + void (*update)(struct sock *, struct proto *, void (*)(struct sock *));
1: + void (*release)(struct sock *);
1: + int (*get_info)(const struct sock *, struct sk_buff *);
1: + size_t (*get_info_size)(const struct sock *);
1: + void (*clone)(const struct request_sock *, struct sock *, const gfp_t);
1: + char name[16];
1: + struct module *owner;
1: };
1:
1: typedef unsigned int RING_IDX;
1:
1: struct pvcalls_data_intf {
1: - RING_IDX in_cons;
1: - RING_IDX in_prod;
1: - RING_IDX in_error;
1: - uint8_t pad1[52];
1: - RING_IDX out_cons;
1: - RING_IDX out_prod;
1: - RING_IDX out_error;
1: - uint8_t pad2[52];
1: - RING_IDX ring_order;
1: - grant_ref_t ref[0];
1: + RING_IDX in_cons;
1: + RING_IDX in_prod;
1: + RING_IDX in_error;
1: + uint8_t pad1[52];
1: + RING_IDX out_cons;
1: + RING_IDX out_prod;
1: + RING_IDX out_error;
1: + uint8_t pad2[52];
1: + RING_IDX ring_order;
1: + grant_ref_t ref[0];
1: };
1:
1: struct pvcalls_data {
1: - unsigned char *in;
1: - unsigned char *out;
1: + unsigned char *in;
1: + unsigned char *out;
1: };
1:
1: struct xen_pvcalls_socket {
1: - uint64_t id;
1: - uint32_t domain;
1: - uint32_t type;
1: - uint32_t protocol;
1: + uint64_t id;
1: + uint32_t domain;
1: + uint32_t type;
1: + uint32_t protocol;
1: };
1:
1: struct xen_pvcalls_connect {
1: - uint64_t id;
1: - uint8_t addr[28];
1: - uint32_t len;
1: - uint32_t flags;
1: - grant_ref_t ref;
1: - uint32_t evtchn;
1: + uint64_t id;
1: + uint8_t addr[28];
1: + uint32_t len;
1: + uint32_t flags;
1: + grant_ref_t ref;
1: + uint32_t evtchn;
1: };
1:
1: struct xen_pvcalls_release {
1: - uint64_t id;
1: - uint8_t reuse;
1: + uint64_t id;
1: + uint8_t reuse;
1: };
1:
1: struct xen_pvcalls_bind {
1: - uint64_t id;
1: - uint8_t addr[28];
1: - uint32_t len;
1: + uint64_t id;
1: + uint8_t addr[28];
1: + uint32_t len;
1: };
1:
1: struct xen_pvcalls_listen {
1: - uint64_t id;
1: - uint32_t backlog;
1: + uint64_t id;
1: + uint32_t backlog;
1: };
1:
1: struct xen_pvcalls_accept {
1: - uint64_t id;
1: - uint64_t id_new;
1: - grant_ref_t ref;
1: - uint32_t evtchn;
1: + uint64_t id;
1: + uint64_t id_new;
1: + grant_ref_t ref;
1: + uint32_t evtchn;
1: };
1:
1: struct xen_pvcalls_poll {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct xen_pvcalls_dummy {
1: - uint8_t dummy[56];
1: + uint8_t dummy[56];
1: };
1:
1: struct xen_pvcalls_request {
1: - uint32_t req_id;
1: - uint32_t cmd;
1: - union {
1: - struct xen_pvcalls_socket socket;
1: - struct xen_pvcalls_connect connect;
1: - struct xen_pvcalls_release release;
1: - struct xen_pvcalls_bind bind;
1: - struct xen_pvcalls_listen listen;
1: - struct xen_pvcalls_accept accept;
1: - struct xen_pvcalls_poll poll;
1: - struct xen_pvcalls_dummy dummy;
1: - } u;
1: + uint32_t req_id;
1: + uint32_t cmd;
1: + union {
1: + struct xen_pvcalls_socket socket;
1: + struct xen_pvcalls_connect connect;
1: + struct xen_pvcalls_release release;
1: + struct xen_pvcalls_bind bind;
1: + struct xen_pvcalls_listen listen;
1: + struct xen_pvcalls_accept accept;
1: + struct xen_pvcalls_poll poll;
1: + struct xen_pvcalls_dummy dummy;
1: + } u;
1: };
1:
1: struct _xen_pvcalls_socket {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_connect {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_release {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_bind {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_listen {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_accept {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_poll {
1: - uint64_t id;
1: + uint64_t id;
1: };
1:
1: struct _xen_pvcalls_dummy {
1: - uint8_t dummy[8];
1: + uint8_t dummy[8];
1: };
1:
1: struct xen_pvcalls_response {
1: - uint32_t req_id;
1: - uint32_t cmd;
1: - int32_t ret;
1: - uint32_t pad;
1: - union {
1: - struct _xen_pvcalls_socket socket;
1: - struct _xen_pvcalls_connect connect;
1: - struct _xen_pvcalls_release release;
1: - struct _xen_pvcalls_bind bind;
1: - struct _xen_pvcalls_listen listen;
1: - struct _xen_pvcalls_accept accept;
1: - struct _xen_pvcalls_poll poll;
1: - struct _xen_pvcalls_dummy dummy;
1: - } u;
1: + uint32_t req_id;
1: + uint32_t cmd;
1: + int32_t ret;
1: + uint32_t pad;
1: + union {
1: + struct _xen_pvcalls_socket socket;
1: + struct _xen_pvcalls_connect connect;
1: + struct _xen_pvcalls_release release;
1: + struct _xen_pvcalls_bind bind;
1: + struct _xen_pvcalls_listen listen;
1: + struct _xen_pvcalls_accept accept;
1: + struct _xen_pvcalls_poll poll;
1: + struct _xen_pvcalls_dummy dummy;
1: + } u;
1: };
1:
1: union xen_pvcalls_sring_entry {
1: - struct xen_pvcalls_request req;
1: - struct xen_pvcalls_response rsp;
1: + struct xen_pvcalls_request req;
1: + struct xen_pvcalls_response rsp;
1: };
1:
1: struct xen_pvcalls_sring {
1: - RING_IDX req_prod;
1: - RING_IDX req_event;
1: - RING_IDX rsp_prod;
1: - RING_IDX rsp_event;
1: - uint8_t pad[48];
1: - union xen_pvcalls_sring_entry ring[1];
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_pvcalls_sring_entry ring[1];
1: };
1:
1: struct xen_pvcalls_back_ring {
1: - RING_IDX rsp_prod_pvt;
1: - RING_IDX req_cons;
1: - unsigned int nr_ents;
1: - struct xen_pvcalls_sring *sring;
1: + RING_IDX rsp_prod_pvt;
1: + RING_IDX req_cons;
1: + unsigned int nr_ents;
1: + struct xen_pvcalls_sring *sring;
1: };
1:
1: struct pvcalls_back_global {
1: - struct list_head frontends;
1: - struct semaphore frontends_lock;
1: + struct list_head frontends;
1: + struct semaphore frontends_lock;
1: };
1:
1: struct pvcalls_fedata {
1: - struct list_head list;
1: - struct xenbus_device *dev;
1: - struct xen_pvcalls_sring *sring;
1: - struct xen_pvcalls_back_ring ring;
1: - int irq;
1: - struct list_head socket_mappings;
1: - struct xarray socketpass_mappings;
1: - struct semaphore socket_lock;
1: + struct list_head list;
1: + struct xenbus_device *dev;
1: + struct xen_pvcalls_sring *sring;
1: + struct xen_pvcalls_back_ring ring;
1: + int irq;
1: + struct list_head socket_mappings;
1: + struct xarray socketpass_mappings;
1: + struct semaphore socket_lock;
1: };
1:
1: struct pvcalls_ioworker {
1: - struct work_struct register_work;
1: - struct workqueue_struct *wq;
1: + struct work_struct register_work;
1: + struct workqueue_struct *wq;
1: };
1:
1: struct sockpass_mapping;
1:
1: struct sock_mapping {
1: - struct list_head list;
1: - struct pvcalls_fedata *fedata;
1: - struct sockpass_mapping *sockpass;
1: - struct socket *sock;
1: - uint64_t id;
1: - grant_ref_t ref;
1: - struct pvcalls_data_intf *ring;
1: - void *bytes;
1: - struct pvcalls_data data;
1: - uint32_t ring_order;
1: - int irq;
1: - atomic_t read;
1: - atomic_t write;
1: - atomic_t io;
1: - atomic_t release;
1: - atomic_t eoi;
1: - void (*saved_data_ready)(struct sock *);
1: - struct pvcalls_ioworker ioworker;
1: + struct list_head list;
1: + struct pvcalls_fedata *fedata;
1: + struct sockpass_mapping *sockpass;
1: + struct socket *sock;
1: + uint64_t id;
1: + grant_ref_t ref;
1: + struct pvcalls_data_intf *ring;
1: + void *bytes;
1: + struct pvcalls_data data;
1: + uint32_t ring_order;
1: + int irq;
1: + atomic_t read;
1: + atomic_t write;
1: + atomic_t io;
1: + atomic_t release;
1: + atomic_t eoi;
1: + void (*saved_data_ready)(struct sock *);
1: + struct pvcalls_ioworker ioworker;
1: };
1:
1: struct sockpass_mapping {
1: - struct list_head list;
1: - struct pvcalls_fedata *fedata;
1: - struct socket *sock;
1: - uint64_t id;
1: - struct xen_pvcalls_request reqcopy;
1: - spinlock_t copy_lock;
1: - struct workqueue_struct *wq;
1: - struct work_struct register_work;
1: - void (*saved_data_ready)(struct sock *);
1: + struct list_head list;
1: + struct pvcalls_fedata *fedata;
1: + struct socket *sock;
1: + uint64_t id;
1: + struct xen_pvcalls_request reqcopy;
1: + spinlock_t copy_lock;
1: + struct workqueue_struct *wq;
1: + struct work_struct register_work;
1: + void (*saved_data_ready)(struct sock *);
1: };
1:
1: struct ww_class {
1: - atomic_long_t stamp;
1: - struct lock_class_key acquire_key;
1: - struct lock_class_key mutex_key;
1: - const char *acquire_name;
1: - const char *mutex_name;
1: - unsigned int is_wait_die;
1: + atomic_long_t stamp;
1: + struct lock_class_key acquire_key;
1: + struct lock_class_key mutex_key;
1: + const char *acquire_name;
1: + const char *mutex_name;
1: + unsigned int is_wait_die;
1: };
1:
1: enum regulator_type {
1: - REGULATOR_VOLTAGE = 0,
1: - REGULATOR_CURRENT = 1,
1: + REGULATOR_VOLTAGE = 0,
1: + REGULATOR_CURRENT = 1,
1: };
1:
1: struct regulator_config;
1: @@ -78004,238 +79023,241 @@ struct regulator_config;
1: struct regulator_ops;
1:
1: struct regulator_desc {
1: - const char *name;
1: - const char *supply_name;
1: - const char *of_match;
1: - const char *regulators_node;
1: - int (*of_parse_cb)(struct device_node *, const struct regulator_desc *, struct regulator_config *);
1: - int id;
1: - unsigned int continuous_voltage_range: 1;
1: - unsigned int n_voltages;
1: - unsigned int n_current_limits;
1: - const struct regulator_ops *ops;
1: - int irq;
1: - enum regulator_type type;
1: - struct module *owner;
1: - unsigned int min_uV;
1: - unsigned int uV_step;
1: - unsigned int linear_min_sel;
1: - int fixed_uV;
1: - unsigned int ramp_delay;
1: - int min_dropout_uV;
1: - const struct linear_range *linear_ranges;
1: - const unsigned int *linear_range_selectors;
1: - int n_linear_ranges;
1: - const unsigned int *volt_table;
1: - const unsigned int *curr_table;
1: - unsigned int vsel_range_reg;
1: - unsigned int vsel_range_mask;
1: - unsigned int vsel_reg;
1: - unsigned int vsel_mask;
1: - unsigned int vsel_step;
1: - unsigned int csel_reg;
1: - unsigned int csel_mask;
1: - unsigned int apply_reg;
1: - unsigned int apply_bit;
1: - unsigned int enable_reg;
1: - unsigned int enable_mask;
1: - unsigned int enable_val;
1: - unsigned int disable_val;
1: - bool enable_is_inverted;
1: - unsigned int bypass_reg;
1: - unsigned int bypass_mask;
1: - unsigned int bypass_val_on;
1: - unsigned int bypass_val_off;
1: - unsigned int active_discharge_on;
1: - unsigned int active_discharge_off;
1: - unsigned int active_discharge_mask;
1: - unsigned int active_discharge_reg;
1: - unsigned int soft_start_reg;
1: - unsigned int soft_start_mask;
1: - unsigned int soft_start_val_on;
1: - unsigned int pull_down_reg;
1: - unsigned int pull_down_mask;
1: - unsigned int pull_down_val_on;
1: - unsigned int enable_time;
1: - unsigned int off_on_delay;
1: - unsigned int poll_enabled_time;
1: - unsigned int (*of_map_mode)(unsigned int);
1: + const char *name;
1: + const char *supply_name;
1: + const char *of_match;
1: + const char *regulators_node;
1: + int (*of_parse_cb)(struct device_node *, const struct regulator_desc *,
1: + struct regulator_config *);
1: + int id;
1: + unsigned int continuous_voltage_range : 1;
1: + unsigned int n_voltages;
1: + unsigned int n_current_limits;
1: + const struct regulator_ops *ops;
1: + int irq;
1: + enum regulator_type type;
1: + struct module *owner;
1: + unsigned int min_uV;
1: + unsigned int uV_step;
1: + unsigned int linear_min_sel;
1: + int fixed_uV;
1: + unsigned int ramp_delay;
1: + int min_dropout_uV;
1: + const struct linear_range *linear_ranges;
1: + const unsigned int *linear_range_selectors;
1: + int n_linear_ranges;
1: + const unsigned int *volt_table;
1: + const unsigned int *curr_table;
1: + unsigned int vsel_range_reg;
1: + unsigned int vsel_range_mask;
1: + unsigned int vsel_reg;
1: + unsigned int vsel_mask;
1: + unsigned int vsel_step;
1: + unsigned int csel_reg;
1: + unsigned int csel_mask;
1: + unsigned int apply_reg;
1: + unsigned int apply_bit;
1: + unsigned int enable_reg;
1: + unsigned int enable_mask;
1: + unsigned int enable_val;
1: + unsigned int disable_val;
1: + bool enable_is_inverted;
1: + unsigned int bypass_reg;
1: + unsigned int bypass_mask;
1: + unsigned int bypass_val_on;
1: + unsigned int bypass_val_off;
1: + unsigned int active_discharge_on;
1: + unsigned int active_discharge_off;
1: + unsigned int active_discharge_mask;
1: + unsigned int active_discharge_reg;
1: + unsigned int soft_start_reg;
1: + unsigned int soft_start_mask;
1: + unsigned int soft_start_val_on;
1: + unsigned int pull_down_reg;
1: + unsigned int pull_down_mask;
1: + unsigned int pull_down_val_on;
1: + unsigned int enable_time;
1: + unsigned int off_on_delay;
1: + unsigned int poll_enabled_time;
1: + unsigned int (*of_map_mode)(unsigned int);
1: };
1:
1: struct pre_voltage_change_data {
1: - long unsigned int old_uV;
1: - long unsigned int min_uV;
1: - long unsigned int max_uV;
1: + long unsigned int old_uV;
1: + long unsigned int min_uV;
1: + long unsigned int max_uV;
1: };
1:
1: struct regulator_voltage {
1: - int min_uV;
1: - int max_uV;
1: + int min_uV;
1: + int max_uV;
1: };
1:
1: struct regulator_dev;
1:
1: struct regulator {
1: - struct device *dev;
1: - struct list_head list;
1: - unsigned int always_on: 1;
1: - unsigned int bypass: 1;
1: - unsigned int device_link: 1;
1: - int uA_load;
1: - unsigned int enable_count;
1: - unsigned int deferred_disables;
1: - struct regulator_voltage voltage[5];
1: - const char *supply_name;
1: - struct device_attribute dev_attr;
1: - struct regulator_dev *rdev;
1: - struct dentry *debugfs;
1: + struct device *dev;
1: + struct list_head list;
1: + unsigned int always_on : 1;
1: + unsigned int bypass : 1;
1: + unsigned int device_link : 1;
1: + int uA_load;
1: + unsigned int enable_count;
1: + unsigned int deferred_disables;
1: + struct regulator_voltage voltage[5];
1: + const char *supply_name;
1: + struct device_attribute dev_attr;
1: + struct regulator_dev *rdev;
1: + struct dentry *debugfs;
1: };
1:
1: struct regulator_coupler {
1: - struct list_head list;
1: - int (*attach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: - int (*detach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: - int (*balance_voltage)(struct regulator_coupler *, struct regulator_dev *, suspend_state_t);
1: + struct list_head list;
1: + int (*attach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: + int (*detach_regulator)(struct regulator_coupler *, struct regulator_dev *);
1: + int (*balance_voltage)(struct regulator_coupler *, struct regulator_dev *,
1: + suspend_state_t);
1: };
1:
1: struct coupling_desc {
1: - struct regulator_dev **coupled_rdevs;
1: - struct regulator_coupler *coupler;
1: - int n_resolved;
1: - int n_coupled;
1: + struct regulator_dev **coupled_rdevs;
1: + struct regulator_coupler *coupler;
1: + int n_resolved;
1: + int n_coupled;
1: };
1:
1: struct regulator_enable_gpio;
1:
1: struct regulator_dev {
1: - const struct regulator_desc *desc;
1: - int exclusive;
1: - u32 use_count;
1: - u32 open_count;
1: - u32 bypass_count;
1: - struct list_head list;
1: - struct list_head consumer_list;
1: - struct coupling_desc coupling_desc;
1: - struct blocking_notifier_head notifier;
1: - struct ww_mutex mutex;
1: - struct task_struct *mutex_owner;
1: - int ref_cnt;
1: - struct module *owner;
1: - struct device dev;
1: - struct regulation_constraints *constraints;
1: - struct regulator *supply;
1: - const char *supply_name;
1: - struct regmap *regmap;
1: - struct delayed_work disable_work;
1: - void *reg_data;
1: - struct dentry *debugfs;
1: - struct regulator_enable_gpio *ena_pin;
1: - unsigned int ena_gpio_state: 1;
1: - unsigned int is_switch: 1;
1: - long unsigned int last_off_jiffy;
1: + const struct regulator_desc *desc;
1: + int exclusive;
1: + u32 use_count;
1: + u32 open_count;
1: + u32 bypass_count;
1: + struct list_head list;
1: + struct list_head consumer_list;
1: + struct coupling_desc coupling_desc;
1: + struct blocking_notifier_head notifier;
1: + struct ww_mutex mutex;
1: + struct task_struct *mutex_owner;
1: + int ref_cnt;
1: + struct module *owner;
1: + struct device dev;
1: + struct regulation_constraints *constraints;
1: + struct regulator *supply;
1: + const char *supply_name;
1: + struct regmap *regmap;
1: + struct delayed_work disable_work;
1: + void *reg_data;
1: + struct dentry *debugfs;
1: + struct regulator_enable_gpio *ena_pin;
1: + unsigned int ena_gpio_state : 1;
1: + unsigned int is_switch : 1;
1: + long unsigned int last_off_jiffy;
1: };
1:
1: enum regulator_status {
1: - REGULATOR_STATUS_OFF = 0,
1: - REGULATOR_STATUS_ON = 1,
1: - REGULATOR_STATUS_ERROR = 2,
1: - REGULATOR_STATUS_FAST = 3,
1: - REGULATOR_STATUS_NORMAL = 4,
1: - REGULATOR_STATUS_IDLE = 5,
1: - REGULATOR_STATUS_STANDBY = 6,
1: - REGULATOR_STATUS_BYPASS = 7,
1: - REGULATOR_STATUS_UNDEFINED = 8,
1: + REGULATOR_STATUS_OFF = 0,
1: + REGULATOR_STATUS_ON = 1,
1: + REGULATOR_STATUS_ERROR = 2,
1: + REGULATOR_STATUS_FAST = 3,
1: + REGULATOR_STATUS_NORMAL = 4,
1: + REGULATOR_STATUS_IDLE = 5,
1: + REGULATOR_STATUS_STANDBY = 6,
1: + REGULATOR_STATUS_BYPASS = 7,
1: + REGULATOR_STATUS_UNDEFINED = 8,
1: };
1:
1: struct regulator_ops {
1: - int (*list_voltage)(struct regulator_dev *, unsigned int);
1: - int (*set_voltage)(struct regulator_dev *, int, int, unsigned int *);
1: - int (*map_voltage)(struct regulator_dev *, int, int);
1: - int (*set_voltage_sel)(struct regulator_dev *, unsigned int);
1: - int (*get_voltage)(struct regulator_dev *);
1: - int (*get_voltage_sel)(struct regulator_dev *);
1: - int (*set_current_limit)(struct regulator_dev *, int, int);
1: - int (*get_current_limit)(struct regulator_dev *);
1: - int (*set_input_current_limit)(struct regulator_dev *, int);
1: - int (*set_over_current_protection)(struct regulator_dev *);
1: - int (*set_active_discharge)(struct regulator_dev *, bool);
1: - int (*enable)(struct regulator_dev *);
1: - int (*disable)(struct regulator_dev *);
1: - int (*is_enabled)(struct regulator_dev *);
1: - int (*set_mode)(struct regulator_dev *, unsigned int);
1: - unsigned int (*get_mode)(struct regulator_dev *);
1: - int (*get_error_flags)(struct regulator_dev *, unsigned int *);
1: - int (*enable_time)(struct regulator_dev *);
1: - int (*set_ramp_delay)(struct regulator_dev *, int);
1: - int (*set_voltage_time)(struct regulator_dev *, int, int);
1: - int (*set_voltage_time_sel)(struct regulator_dev *, unsigned int, unsigned int);
1: - int (*set_soft_start)(struct regulator_dev *);
1: - int (*get_status)(struct regulator_dev *);
1: - unsigned int (*get_optimum_mode)(struct regulator_dev *, int, int, int);
1: - int (*set_load)(struct regulator_dev *, int);
1: - int (*set_bypass)(struct regulator_dev *, bool);
1: - int (*get_bypass)(struct regulator_dev *, bool *);
1: - int (*set_suspend_voltage)(struct regulator_dev *, int);
1: - int (*set_suspend_enable)(struct regulator_dev *);
1: - int (*set_suspend_disable)(struct regulator_dev *);
1: - int (*set_suspend_mode)(struct regulator_dev *, unsigned int);
1: - int (*resume)(struct regulator_dev *);
1: - int (*set_pull_down)(struct regulator_dev *);
1: + int (*list_voltage)(struct regulator_dev *, unsigned int);
1: + int (*set_voltage)(struct regulator_dev *, int, int, unsigned int *);
1: + int (*map_voltage)(struct regulator_dev *, int, int);
1: + int (*set_voltage_sel)(struct regulator_dev *, unsigned int);
1: + int (*get_voltage)(struct regulator_dev *);
1: + int (*get_voltage_sel)(struct regulator_dev *);
1: + int (*set_current_limit)(struct regulator_dev *, int, int);
1: + int (*get_current_limit)(struct regulator_dev *);
1: + int (*set_input_current_limit)(struct regulator_dev *, int);
1: + int (*set_over_current_protection)(struct regulator_dev *);
1: + int (*set_active_discharge)(struct regulator_dev *, bool);
1: + int (*enable)(struct regulator_dev *);
1: + int (*disable)(struct regulator_dev *);
1: + int (*is_enabled)(struct regulator_dev *);
1: + int (*set_mode)(struct regulator_dev *, unsigned int);
1: + unsigned int (*get_mode)(struct regulator_dev *);
1: + int (*get_error_flags)(struct regulator_dev *, unsigned int *);
1: + int (*enable_time)(struct regulator_dev *);
1: + int (*set_ramp_delay)(struct regulator_dev *, int);
1: + int (*set_voltage_time)(struct regulator_dev *, int, int);
1: + int (*set_voltage_time_sel)(struct regulator_dev *, unsigned int,
1: + unsigned int);
1: + int (*set_soft_start)(struct regulator_dev *);
1: + int (*get_status)(struct regulator_dev *);
1: + unsigned int (*get_optimum_mode)(struct regulator_dev *, int, int, int);
1: + int (*set_load)(struct regulator_dev *, int);
1: + int (*set_bypass)(struct regulator_dev *, bool);
1: + int (*get_bypass)(struct regulator_dev *, bool *);
1: + int (*set_suspend_voltage)(struct regulator_dev *, int);
1: + int (*set_suspend_enable)(struct regulator_dev *);
1: + int (*set_suspend_disable)(struct regulator_dev *);
1: + int (*set_suspend_mode)(struct regulator_dev *, unsigned int);
1: + int (*resume)(struct regulator_dev *);
1: + int (*set_pull_down)(struct regulator_dev *);
1: };
1:
1: struct regulator_config {
1: - struct device *dev;
1: - const struct regulator_init_data *init_data;
1: - void *driver_data;
1: - struct device_node *of_node;
1: - struct regmap *regmap;
1: - struct gpio_desc *ena_gpiod;
1: + struct device *dev;
1: + const struct regulator_init_data *init_data;
1: + void *driver_data;
1: + struct device_node *of_node;
1: + struct regmap *regmap;
1: + struct gpio_desc *ena_gpiod;
1: };
1:
1: struct regulator_enable_gpio {
1: - struct list_head list;
1: - struct gpio_desc *gpiod;
1: - u32 enable_count;
1: - u32 request_count;
1: + struct list_head list;
1: + struct gpio_desc *gpiod;
1: + u32 enable_count;
1: + u32 request_count;
1: };
1:
1: enum regulator_active_discharge {
1: - REGULATOR_ACTIVE_DISCHARGE_DEFAULT = 0,
1: - REGULATOR_ACTIVE_DISCHARGE_DISABLE = 1,
1: - REGULATOR_ACTIVE_DISCHARGE_ENABLE = 2,
1: + REGULATOR_ACTIVE_DISCHARGE_DEFAULT = 0,
1: + REGULATOR_ACTIVE_DISCHARGE_DISABLE = 1,
1: + REGULATOR_ACTIVE_DISCHARGE_ENABLE = 2,
1: };
1:
1: struct trace_event_raw_regulator_basic {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regulator_range {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - int min;
1: - int max;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int min;
1: + int max;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regulator_value {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int val;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int val;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_regulator_basic {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regulator_range {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regulator_value {
1: - u32 name;
1: + u32 name;
1: };
1:
1: typedef void (*btf_trace_regulator_enable)(void *, const char *);
1: @@ -78250,427 +79272,430 @@ typedef void (*btf_trace_regulator_disable_complete)(void *, const char *);
1:
1: typedef void (*btf_trace_regulator_bypass_enable)(void *, const char *);
1:
1: -typedef void (*btf_trace_regulator_bypass_enable_complete)(void *, const char *);
1: +typedef void (*btf_trace_regulator_bypass_enable_complete)(void *,
1: + const char *);
1:
1: typedef void (*btf_trace_regulator_bypass_disable)(void *, const char *);
1:
1: -typedef void (*btf_trace_regulator_bypass_disable_complete)(void *, const char *);
1: +typedef void (*btf_trace_regulator_bypass_disable_complete)(void *,
1: + const char *);
1:
1: typedef void (*btf_trace_regulator_set_voltage)(void *, const char *, int, int);
1:
1: -typedef void (*btf_trace_regulator_set_voltage_complete)(void *, const char *, unsigned int);
1: +typedef void (*btf_trace_regulator_set_voltage_complete)(void *, const char *,
1: + unsigned int);
1:
1: enum regulator_get_type {
1: - NORMAL_GET = 0,
1: - EXCLUSIVE_GET = 1,
1: - OPTIONAL_GET = 2,
1: - MAX_GET_TYPE = 3,
1: + NORMAL_GET = 0,
1: + EXCLUSIVE_GET = 1,
1: + OPTIONAL_GET = 2,
1: + MAX_GET_TYPE = 3,
1: };
1:
1: struct regulator_map {
1: - struct list_head list;
1: - const char *dev_name;
1: - const char *supply;
1: - struct regulator_dev *regulator;
1: + struct list_head list;
1: + const char *dev_name;
1: + const char *supply;
1: + struct regulator_dev *regulator;
1: };
1:
1: struct regulator_supply_alias {
1: - struct list_head list;
1: - struct device *src_dev;
1: - const char *src_supply;
1: - struct device *alias_dev;
1: - const char *alias_supply;
1: + struct list_head list;
1: + struct device *src_dev;
1: + const char *src_supply;
1: + struct device *alias_dev;
1: + const char *alias_supply;
1: };
1:
1: struct summary_data {
1: - struct seq_file *s;
1: - struct regulator_dev *parent;
1: - int level;
1: + struct seq_file *s;
1: + struct regulator_dev *parent;
1: + int level;
1: };
1:
1: struct summary_lock_data {
1: - struct ww_acquire_ctx *ww_ctx;
1: - struct regulator_dev **new_contended_rdev;
1: - struct regulator_dev **old_contended_rdev;
1: + struct ww_acquire_ctx *ww_ctx;
1: + struct regulator_dev **new_contended_rdev;
1: + struct regulator_dev **old_contended_rdev;
1: };
1:
1: struct fixed_voltage_config {
1: - const char *supply_name;
1: - const char *input_supply;
1: - int microvolts;
1: - unsigned int startup_delay;
1: - unsigned int off_on_delay;
1: - unsigned int enabled_at_boot: 1;
1: - struct regulator_init_data *init_data;
1: + const char *supply_name;
1: + const char *input_supply;
1: + int microvolts;
1: + unsigned int startup_delay;
1: + unsigned int off_on_delay;
1: + unsigned int enabled_at_boot : 1;
1: + struct regulator_init_data *init_data;
1: };
1:
1: struct fixed_regulator_data {
1: - struct fixed_voltage_config cfg;
1: - struct regulator_init_data init_data;
1: - struct platform_device pdev;
1: + struct fixed_voltage_config cfg;
1: + struct regulator_init_data init_data;
1: + struct platform_device pdev;
1: };
1:
1: struct regulator_bulk_devres {
1: - struct regulator_bulk_data *consumers;
1: - int num_consumers;
1: + struct regulator_bulk_data *consumers;
1: + int num_consumers;
1: };
1:
1: struct regulator_supply_alias_match {
1: - struct device *dev;
1: - const char *id;
1: + struct device *dev;
1: + const char *id;
1: };
1:
1: struct regulator_notifier_match {
1: - struct regulator *regulator;
1: - struct notifier_block *nb;
1: + struct regulator *regulator;
1: + struct notifier_block *nb;
1: };
1:
1: struct of_regulator_match {
1: - const char *name;
1: - void *driver_data;
1: - struct regulator_init_data *init_data;
1: - struct device_node *of_node;
1: - const struct regulator_desc *desc;
1: + const char *name;
1: + void *driver_data;
1: + struct regulator_init_data *init_data;
1: + struct device_node *of_node;
1: + const struct regulator_desc *desc;
1: };
1:
1: struct devm_of_regulator_matches {
1: - struct of_regulator_match *matches;
1: - unsigned int num_matches;
1: + struct of_regulator_match *matches;
1: + unsigned int num_matches;
1: };
1:
1: struct fixed_voltage_data {
1: - struct regulator_desc desc;
1: - struct regulator_dev *dev;
1: - struct clk *enable_clock;
1: - unsigned int clk_enable_counter;
1: + struct regulator_desc desc;
1: + struct regulator_dev *dev;
1: + struct clk *enable_clock;
1: + unsigned int clk_enable_counter;
1: };
1:
1: struct fixed_dev_type {
1: - bool has_enable_clock;
1: + bool has_enable_clock;
1: };
1:
1: struct gpio_regulator_state {
1: - int value;
1: - int gpios;
1: + int value;
1: + int gpios;
1: };
1:
1: struct gpio_regulator_config {
1: - const char *supply_name;
1: - unsigned int enabled_at_boot: 1;
1: - unsigned int startup_delay;
1: - enum gpiod_flags *gflags;
1: - int ngpios;
1: - struct gpio_regulator_state *states;
1: - int nr_states;
1: - enum regulator_type type;
1: - struct regulator_init_data *init_data;
1: + const char *supply_name;
1: + unsigned int enabled_at_boot : 1;
1: + unsigned int startup_delay;
1: + enum gpiod_flags *gflags;
1: + int ngpios;
1: + struct gpio_regulator_state *states;
1: + int nr_states;
1: + enum regulator_type type;
1: + struct regulator_init_data *init_data;
1: };
1:
1: struct gpio_regulator_data {
1: - struct regulator_desc desc;
1: - struct gpio_desc **gpiods;
1: - int nr_gpios;
1: - struct gpio_regulator_state *states;
1: - int nr_states;
1: - int state;
1: + struct regulator_desc desc;
1: + struct gpio_desc **gpiods;
1: + int nr_gpios;
1: + struct gpio_regulator_state *states;
1: + int nr_states;
1: + int state;
1: };
1:
1: struct reset_control_lookup {
1: - struct list_head list;
1: - const char *provider;
1: - unsigned int index;
1: - const char *dev_id;
1: - const char *con_id;
1: + struct list_head list;
1: + const char *provider;
1: + unsigned int index;
1: + const char *dev_id;
1: + const char *con_id;
1: };
1:
1: struct reset_control___2 {
1: - struct reset_controller_dev *rcdev;
1: - struct list_head list;
1: - unsigned int id;
1: - struct kref refcnt;
1: - bool acquired;
1: - bool shared;
1: - bool array;
1: - atomic_t deassert_count;
1: - atomic_t triggered_count;
1: + struct reset_controller_dev *rcdev;
1: + struct list_head list;
1: + unsigned int id;
1: + struct kref refcnt;
1: + bool acquired;
1: + bool shared;
1: + bool array;
1: + atomic_t deassert_count;
1: + atomic_t triggered_count;
1: };
1:
1: struct reset_control_array {
1: - struct reset_control___2 base;
1: - unsigned int num_rstcs;
1: - struct reset_control___2 *rstc[0];
1: + struct reset_control___2 base;
1: + unsigned int num_rstcs;
1: + struct reset_control___2 *rstc[0];
1: };
1:
1: enum hi6220_reset_ctrl_type {
1: - PERIPHERAL = 0,
1: - MEDIA = 1,
1: - AO = 2,
1: + PERIPHERAL = 0,
1: + MEDIA = 1,
1: + AO = 2,
1: };
1:
1: struct hi6220_reset_data {
1: - struct reset_controller_dev rc_dev;
1: - struct regmap *regmap;
1: + struct reset_controller_dev rc_dev;
1: + struct regmap *regmap;
1: };
1:
1: struct hi3660_reset_controller {
1: - struct reset_controller_dev rst;
1: - struct regmap *map;
1: + struct reset_controller_dev rst;
1: + struct regmap *map;
1: };
1:
1: enum mrq_reset_commands {
1: - CMD_RESET_ASSERT = 1,
1: - CMD_RESET_DEASSERT = 2,
1: - CMD_RESET_MODULE = 3,
1: - CMD_RESET_GET_MAX_ID = 4,
1: - CMD_RESET_MAX = 5,
1: + CMD_RESET_ASSERT = 1,
1: + CMD_RESET_DEASSERT = 2,
1: + CMD_RESET_MODULE = 3,
1: + CMD_RESET_GET_MAX_ID = 4,
1: + CMD_RESET_MAX = 5,
1: };
1:
1: struct mrq_reset_request {
1: - uint32_t cmd;
1: - uint32_t reset_id;
1: + uint32_t cmd;
1: + uint32_t reset_id;
1: };
1:
1: struct meson_reset_param {
1: - int reg_count;
1: - int level_offset;
1: + int reg_count;
1: + int level_offset;
1: };
1:
1: struct meson_reset {
1: - void *reg_base;
1: - const struct meson_reset_param *param;
1: - struct reset_controller_dev rcdev;
1: - spinlock_t lock;
1: + void *reg_base;
1: + const struct meson_reset_param *param;
1: + struct reset_controller_dev rcdev;
1: + spinlock_t lock;
1: };
1:
1: struct reset_simple_devdata {
1: - u32 reg_offset;
1: - u32 nr_resets;
1: - bool active_low;
1: - bool status_active_low;
1: + u32 reg_offset;
1: + u32 nr_resets;
1: + bool active_low;
1: + bool status_active_low;
1: };
1:
1: struct serial_struct32 {
1: - compat_int_t type;
1: - compat_int_t line;
1: - compat_uint_t port;
1: - compat_int_t irq;
1: - compat_int_t flags;
1: - compat_int_t xmit_fifo_size;
1: - compat_int_t custom_divisor;
1: - compat_int_t baud_base;
1: - short unsigned int close_delay;
1: - char io_type;
1: - char reserved_char;
1: - compat_int_t hub6;
1: - short unsigned int closing_wait;
1: - short unsigned int closing_wait2;
1: - compat_uint_t iomem_base;
1: - short unsigned int iomem_reg_shift;
1: - unsigned int port_high;
1: - compat_int_t reserved;
1: + compat_int_t type;
1: + compat_int_t line;
1: + compat_uint_t port;
1: + compat_int_t irq;
1: + compat_int_t flags;
1: + compat_int_t xmit_fifo_size;
1: + compat_int_t custom_divisor;
1: + compat_int_t baud_base;
1: + short unsigned int close_delay;
1: + char io_type;
1: + char reserved_char;
1: + compat_int_t hub6;
1: + short unsigned int closing_wait;
1: + short unsigned int closing_wait2;
1: + compat_uint_t iomem_base;
1: + short unsigned int iomem_reg_shift;
1: + unsigned int port_high;
1: + compat_int_t reserved;
1: };
1:
1: struct n_tty_data {
1: - size_t read_head;
1: - size_t commit_head;
1: - size_t canon_head;
1: - size_t echo_head;
1: - size_t echo_commit;
1: - size_t echo_mark;
1: - long unsigned int char_map[4];
1: - long unsigned int overrun_time;
1: - int num_overrun;
1: - bool no_room;
1: - unsigned char lnext: 1;
1: - unsigned char erasing: 1;
1: - unsigned char raw: 1;
1: - unsigned char real_raw: 1;
1: - unsigned char icanon: 1;
1: - unsigned char push: 1;
1: - char read_buf[4096];
1: - long unsigned int read_flags[64];
1: - unsigned char echo_buf[4096];
1: - size_t read_tail;
1: - size_t line_start;
1: - unsigned int column;
1: - unsigned int canon_column;
1: - size_t echo_tail;
1: - struct mutex atomic_read_lock;
1: - struct mutex output_lock;
1: -};
1: -
1: -enum {
1: - ERASE = 0,
1: - WERASE = 1,
1: - KILL = 2,
1: + size_t read_head;
1: + size_t commit_head;
1: + size_t canon_head;
1: + size_t echo_head;
1: + size_t echo_commit;
1: + size_t echo_mark;
1: + long unsigned int char_map[4];
1: + long unsigned int overrun_time;
1: + int num_overrun;
1: + bool no_room;
1: + unsigned char lnext : 1;
1: + unsigned char erasing : 1;
1: + unsigned char raw : 1;
1: + unsigned char real_raw : 1;
1: + unsigned char icanon : 1;
1: + unsigned char push : 1;
1: + char read_buf[4096];
1: + long unsigned int read_flags[64];
1: + unsigned char echo_buf[4096];
1: + size_t read_tail;
1: + size_t line_start;
1: + unsigned int column;
1: + unsigned int canon_column;
1: + size_t echo_tail;
1: + struct mutex atomic_read_lock;
1: + struct mutex output_lock;
1: +};
1: +
1: +enum {
1: + ERASE = 0,
1: + WERASE = 1,
1: + KILL = 2,
1: };
1:
1: struct termios {
1: - tcflag_t c_iflag;
1: - tcflag_t c_oflag;
1: - tcflag_t c_cflag;
1: - tcflag_t c_lflag;
1: - cc_t c_line;
1: - cc_t c_cc[19];
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: };
1:
1: struct termios2 {
1: - tcflag_t c_iflag;
1: - tcflag_t c_oflag;
1: - tcflag_t c_cflag;
1: - tcflag_t c_lflag;
1: - cc_t c_line;
1: - cc_t c_cc[19];
1: - speed_t c_ispeed;
1: - speed_t c_ospeed;
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_line;
1: + cc_t c_cc[19];
1: + speed_t c_ispeed;
1: + speed_t c_ospeed;
1: };
1:
1: struct termio {
1: - short unsigned int c_iflag;
1: - short unsigned int c_oflag;
1: - short unsigned int c_cflag;
1: - short unsigned int c_lflag;
1: - unsigned char c_line;
1: - unsigned char c_cc[8];
1: + short unsigned int c_iflag;
1: + short unsigned int c_oflag;
1: + short unsigned int c_cflag;
1: + short unsigned int c_lflag;
1: + unsigned char c_line;
1: + unsigned char c_cc[8];
1: };
1:
1: struct ldsem_waiter {
1: - struct list_head list;
1: - struct task_struct *task;
1: + struct list_head list;
1: + struct task_struct *task;
1: };
1:
1: struct pts_fs_info___2;
1:
1: struct tty_audit_buf {
1: - struct mutex mutex;
1: - dev_t dev;
1: - unsigned int icanon: 1;
1: - size_t valid;
1: - unsigned char *data;
1: + struct mutex mutex;
1: + dev_t dev;
1: + unsigned int icanon : 1;
1: + size_t valid;
1: + unsigned char *data;
1: };
1:
1: struct input_id {
1: - __u16 bustype;
1: - __u16 vendor;
1: - __u16 product;
1: - __u16 version;
1: + __u16 bustype;
1: + __u16 vendor;
1: + __u16 product;
1: + __u16 version;
1: };
1:
1: struct input_absinfo {
1: - __s32 value;
1: - __s32 minimum;
1: - __s32 maximum;
1: - __s32 fuzz;
1: - __s32 flat;
1: - __s32 resolution;
1: + __s32 value;
1: + __s32 minimum;
1: + __s32 maximum;
1: + __s32 fuzz;
1: + __s32 flat;
1: + __s32 resolution;
1: };
1:
1: struct input_keymap_entry {
1: - __u8 flags;
1: - __u8 len;
1: - __u16 index;
1: - __u32 keycode;
1: - __u8 scancode[32];
1: + __u8 flags;
1: + __u8 len;
1: + __u16 index;
1: + __u32 keycode;
1: + __u8 scancode[32];
1: };
1:
1: struct ff_replay {
1: - __u16 length;
1: - __u16 delay;
1: + __u16 length;
1: + __u16 delay;
1: };
1:
1: struct ff_trigger {
1: - __u16 button;
1: - __u16 interval;
1: + __u16 button;
1: + __u16 interval;
1: };
1:
1: struct ff_envelope {
1: - __u16 attack_length;
1: - __u16 attack_level;
1: - __u16 fade_length;
1: - __u16 fade_level;
1: + __u16 attack_length;
1: + __u16 attack_level;
1: + __u16 fade_length;
1: + __u16 fade_level;
1: };
1:
1: struct ff_constant_effect {
1: - __s16 level;
1: - struct ff_envelope envelope;
1: + __s16 level;
1: + struct ff_envelope envelope;
1: };
1:
1: struct ff_ramp_effect {
1: - __s16 start_level;
1: - __s16 end_level;
1: - struct ff_envelope envelope;
1: + __s16 start_level;
1: + __s16 end_level;
1: + struct ff_envelope envelope;
1: };
1:
1: struct ff_condition_effect {
1: - __u16 right_saturation;
1: - __u16 left_saturation;
1: - __s16 right_coeff;
1: - __s16 left_coeff;
1: - __u16 deadband;
1: - __s16 center;
1: + __u16 right_saturation;
1: + __u16 left_saturation;
1: + __s16 right_coeff;
1: + __s16 left_coeff;
1: + __u16 deadband;
1: + __s16 center;
1: };
1:
1: struct ff_periodic_effect {
1: - __u16 waveform;
1: - __u16 period;
1: - __s16 magnitude;
1: - __s16 offset;
1: - __u16 phase;
1: - struct ff_envelope envelope;
1: - __u32 custom_len;
1: - __s16 *custom_data;
1: + __u16 waveform;
1: + __u16 period;
1: + __s16 magnitude;
1: + __s16 offset;
1: + __u16 phase;
1: + struct ff_envelope envelope;
1: + __u32 custom_len;
1: + __s16 *custom_data;
1: };
1:
1: struct ff_rumble_effect {
1: - __u16 strong_magnitude;
1: - __u16 weak_magnitude;
1: + __u16 strong_magnitude;
1: + __u16 weak_magnitude;
1: };
1:
1: struct ff_effect {
1: - __u16 type;
1: - __s16 id;
1: - __u16 direction;
1: - struct ff_trigger trigger;
1: - struct ff_replay replay;
1: - union {
1: - struct ff_constant_effect constant;
1: - struct ff_ramp_effect ramp;
1: - struct ff_periodic_effect periodic;
1: - struct ff_condition_effect condition[2];
1: - struct ff_rumble_effect rumble;
1: - } u;
1: + __u16 type;
1: + __s16 id;
1: + __u16 direction;
1: + struct ff_trigger trigger;
1: + struct ff_replay replay;
1: + union {
1: + struct ff_constant_effect constant;
1: + struct ff_ramp_effect ramp;
1: + struct ff_periodic_effect periodic;
1: + struct ff_condition_effect condition[2];
1: + struct ff_rumble_effect rumble;
1: + } u;
1: };
1:
1: struct input_device_id {
1: - kernel_ulong_t flags;
1: - __u16 bustype;
1: - __u16 vendor;
1: - __u16 product;
1: - __u16 version;
1: - kernel_ulong_t evbit[1];
1: - kernel_ulong_t keybit[12];
1: - kernel_ulong_t relbit[1];
1: - kernel_ulong_t absbit[1];
1: - kernel_ulong_t mscbit[1];
1: - kernel_ulong_t ledbit[1];
1: - kernel_ulong_t sndbit[1];
1: - kernel_ulong_t ffbit[2];
1: - kernel_ulong_t swbit[1];
1: - kernel_ulong_t propbit[1];
1: - kernel_ulong_t driver_info;
1: + kernel_ulong_t flags;
1: + __u16 bustype;
1: + __u16 vendor;
1: + __u16 product;
1: + __u16 version;
1: + kernel_ulong_t evbit[1];
1: + kernel_ulong_t keybit[12];
1: + kernel_ulong_t relbit[1];
1: + kernel_ulong_t absbit[1];
1: + kernel_ulong_t mscbit[1];
1: + kernel_ulong_t ledbit[1];
1: + kernel_ulong_t sndbit[1];
1: + kernel_ulong_t ffbit[2];
1: + kernel_ulong_t swbit[1];
1: + kernel_ulong_t propbit[1];
1: + kernel_ulong_t driver_info;
1: };
1:
1: struct input_value {
1: - __u16 type;
1: - __u16 code;
1: - __s32 value;
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: };
1:
1: enum input_clock_type {
1: - INPUT_CLK_REAL = 0,
1: - INPUT_CLK_MONO = 1,
1: - INPUT_CLK_BOOT = 2,
1: - INPUT_CLK_MAX = 3,
1: + INPUT_CLK_REAL = 0,
1: + INPUT_CLK_MONO = 1,
1: + INPUT_CLK_BOOT = 2,
1: + INPUT_CLK_MAX = 3,
1: };
1:
1: struct ff_device;
1: @@ -78682,254 +79707,257 @@ struct input_mt;
1: struct input_handle;
1:
1: struct input_dev {
1: - const char *name;
1: - const char *phys;
1: - const char *uniq;
1: - struct input_id id;
1: - long unsigned int propbit[1];
1: - long unsigned int evbit[1];
1: - long unsigned int keybit[12];
1: - long unsigned int relbit[1];
1: - long unsigned int absbit[1];
1: - long unsigned int mscbit[1];
1: - long unsigned int ledbit[1];
1: - long unsigned int sndbit[1];
1: - long unsigned int ffbit[2];
1: - long unsigned int swbit[1];
1: - unsigned int hint_events_per_packet;
1: - unsigned int keycodemax;
1: - unsigned int keycodesize;
1: - void *keycode;
1: - int (*setkeycode)(struct input_dev *, const struct input_keymap_entry *, unsigned int *);
1: - int (*getkeycode)(struct input_dev *, struct input_keymap_entry *);
1: - struct ff_device *ff;
1: - struct input_dev_poller *poller;
1: - unsigned int repeat_key;
1: - struct timer_list timer;
1: - int rep[2];
1: - struct input_mt *mt;
1: - struct input_absinfo *absinfo;
1: - long unsigned int key[12];
1: - long unsigned int led[1];
1: - long unsigned int snd[1];
1: - long unsigned int sw[1];
1: - int (*open)(struct input_dev *);
1: - void (*close)(struct input_dev *);
1: - int (*flush)(struct input_dev *, struct file *);
1: - int (*event)(struct input_dev *, unsigned int, unsigned int, int);
1: - struct input_handle *grab;
1: - spinlock_t event_lock;
1: - struct mutex mutex;
1: - unsigned int users;
1: - bool going_away;
1: - struct device dev;
1: - struct list_head h_list;
1: - struct list_head node;
1: - unsigned int num_vals;
1: - unsigned int max_vals;
1: - struct input_value *vals;
1: - bool devres_managed;
1: - ktime_t timestamp[3];
1: + const char *name;
1: + const char *phys;
1: + const char *uniq;
1: + struct input_id id;
1: + long unsigned int propbit[1];
1: + long unsigned int evbit[1];
1: + long unsigned int keybit[12];
1: + long unsigned int relbit[1];
1: + long unsigned int absbit[1];
1: + long unsigned int mscbit[1];
1: + long unsigned int ledbit[1];
1: + long unsigned int sndbit[1];
1: + long unsigned int ffbit[2];
1: + long unsigned int swbit[1];
1: + unsigned int hint_events_per_packet;
1: + unsigned int keycodemax;
1: + unsigned int keycodesize;
1: + void *keycode;
1: + int (*setkeycode)(struct input_dev *, const struct input_keymap_entry *,
1: + unsigned int *);
1: + int (*getkeycode)(struct input_dev *, struct input_keymap_entry *);
1: + struct ff_device *ff;
1: + struct input_dev_poller *poller;
1: + unsigned int repeat_key;
1: + struct timer_list timer;
1: + int rep[2];
1: + struct input_mt *mt;
1: + struct input_absinfo *absinfo;
1: + long unsigned int key[12];
1: + long unsigned int led[1];
1: + long unsigned int snd[1];
1: + long unsigned int sw[1];
1: + int (*open)(struct input_dev *);
1: + void (*close)(struct input_dev *);
1: + int (*flush)(struct input_dev *, struct file *);
1: + int (*event)(struct input_dev *, unsigned int, unsigned int, int);
1: + struct input_handle *grab;
1: + spinlock_t event_lock;
1: + struct mutex mutex;
1: + unsigned int users;
1: + bool going_away;
1: + struct device dev;
1: + struct list_head h_list;
1: + struct list_head node;
1: + unsigned int num_vals;
1: + unsigned int max_vals;
1: + struct input_value *vals;
1: + bool devres_managed;
1: + ktime_t timestamp[3];
1: };
1:
1: struct ff_device {
1: - int (*upload)(struct input_dev *, struct ff_effect *, struct ff_effect *);
1: - int (*erase)(struct input_dev *, int);
1: - int (*playback)(struct input_dev *, int, int);
1: - void (*set_gain)(struct input_dev *, u16);
1: - void (*set_autocenter)(struct input_dev *, u16);
1: - void (*destroy)(struct ff_device *);
1: - void *private;
1: - long unsigned int ffbit[2];
1: - struct mutex mutex;
1: - int max_effects;
1: - struct ff_effect *effects;
1: - struct file *effect_owners[0];
1: + int (*upload)(struct input_dev *, struct ff_effect *, struct ff_effect *);
1: + int (*erase)(struct input_dev *, int);
1: + int (*playback)(struct input_dev *, int, int);
1: + void (*set_gain)(struct input_dev *, u16);
1: + void (*set_autocenter)(struct input_dev *, u16);
1: + void (*destroy)(struct ff_device *);
1: + void *private;
1: + long unsigned int ffbit[2];
1: + struct mutex mutex;
1: + int max_effects;
1: + struct ff_effect *effects;
1: + struct file *effect_owners[0];
1: };
1:
1: struct input_handler;
1:
1: struct input_handle {
1: - void *private;
1: - int open;
1: - const char *name;
1: - struct input_dev *dev;
1: - struct input_handler *handler;
1: - struct list_head d_node;
1: - struct list_head h_node;
1: + void *private;
1: + int open;
1: + const char *name;
1: + struct input_dev *dev;
1: + struct input_handler *handler;
1: + struct list_head d_node;
1: + struct list_head h_node;
1: };
1:
1: struct input_handler {
1: - void *private;
1: - void (*event)(struct input_handle *, unsigned int, unsigned int, int);
1: - void (*events)(struct input_handle *, const struct input_value *, unsigned int);
1: - bool (*filter)(struct input_handle *, unsigned int, unsigned int, int);
1: - bool (*match)(struct input_handler *, struct input_dev *);
1: - int (*connect)(struct input_handler *, struct input_dev *, const struct input_device_id *);
1: - void (*disconnect)(struct input_handle *);
1: - void (*start)(struct input_handle *);
1: - bool legacy_minors;
1: - int minor;
1: - const char *name;
1: - const struct input_device_id *id_table;
1: - struct list_head h_list;
1: - struct list_head node;
1: + void *private;
1: + void (*event)(struct input_handle *, unsigned int, unsigned int, int);
1: + void (*events)(struct input_handle *, const struct input_value *,
1: + unsigned int);
1: + bool (*filter)(struct input_handle *, unsigned int, unsigned int, int);
1: + bool (*match)(struct input_handler *, struct input_dev *);
1: + int (*connect)(struct input_handler *, struct input_dev *,
1: + const struct input_device_id *);
1: + void (*disconnect)(struct input_handle *);
1: + void (*start)(struct input_handle *);
1: + bool legacy_minors;
1: + int minor;
1: + const char *name;
1: + const struct input_device_id *id_table;
1: + struct list_head h_list;
1: + struct list_head node;
1: };
1:
1: struct sysrq_state {
1: - struct input_handle handle;
1: - struct work_struct reinject_work;
1: - long unsigned int key_down[12];
1: - unsigned int alt;
1: - unsigned int alt_use;
1: - unsigned int shift;
1: - unsigned int shift_use;
1: - bool active;
1: - bool need_reinject;
1: - bool reinjecting;
1: - bool reset_canceled;
1: - bool reset_requested;
1: - long unsigned int reset_keybit[12];
1: - int reset_seq_len;
1: - int reset_seq_cnt;
1: - int reset_seq_version;
1: - struct timer_list keyreset_timer;
1: + struct input_handle handle;
1: + struct work_struct reinject_work;
1: + long unsigned int key_down[12];
1: + unsigned int alt;
1: + unsigned int alt_use;
1: + unsigned int shift;
1: + unsigned int shift_use;
1: + bool active;
1: + bool need_reinject;
1: + bool reinjecting;
1: + bool reset_canceled;
1: + bool reset_requested;
1: + long unsigned int reset_keybit[12];
1: + int reset_seq_len;
1: + int reset_seq_cnt;
1: + int reset_seq_version;
1: + struct timer_list keyreset_timer;
1: };
1:
1: struct consolefontdesc {
1: - short unsigned int charcount;
1: - short unsigned int charheight;
1: - char *chardata;
1: + short unsigned int charcount;
1: + short unsigned int charheight;
1: + char *chardata;
1: };
1:
1: struct unipair {
1: - short unsigned int unicode;
1: - short unsigned int fontpos;
1: + short unsigned int unicode;
1: + short unsigned int fontpos;
1: };
1:
1: struct unimapdesc {
1: - short unsigned int entry_ct;
1: - struct unipair *entries;
1: + short unsigned int entry_ct;
1: + struct unipair *entries;
1: };
1:
1: struct kbd_repeat {
1: - int delay;
1: - int period;
1: + int delay;
1: + int period;
1: };
1:
1: struct console_font_op {
1: - unsigned int op;
1: - unsigned int flags;
1: - unsigned int width;
1: - unsigned int height;
1: - unsigned int charcount;
1: - unsigned char *data;
1: + unsigned int op;
1: + unsigned int flags;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int charcount;
1: + unsigned char *data;
1: };
1:
1: struct vt_stat {
1: - short unsigned int v_active;
1: - short unsigned int v_signal;
1: - short unsigned int v_state;
1: + short unsigned int v_active;
1: + short unsigned int v_signal;
1: + short unsigned int v_state;
1: };
1:
1: struct vt_sizes {
1: - short unsigned int v_rows;
1: - short unsigned int v_cols;
1: - short unsigned int v_scrollsize;
1: + short unsigned int v_rows;
1: + short unsigned int v_cols;
1: + short unsigned int v_scrollsize;
1: };
1:
1: struct vt_consize {
1: - short unsigned int v_rows;
1: - short unsigned int v_cols;
1: - short unsigned int v_vlin;
1: - short unsigned int v_clin;
1: - short unsigned int v_vcol;
1: - short unsigned int v_ccol;
1: + short unsigned int v_rows;
1: + short unsigned int v_cols;
1: + short unsigned int v_vlin;
1: + short unsigned int v_clin;
1: + short unsigned int v_vcol;
1: + short unsigned int v_ccol;
1: };
1:
1: struct vt_event {
1: - unsigned int event;
1: - unsigned int oldev;
1: - unsigned int newev;
1: - unsigned int pad[4];
1: + unsigned int event;
1: + unsigned int oldev;
1: + unsigned int newev;
1: + unsigned int pad[4];
1: };
1:
1: struct vt_setactivate {
1: - unsigned int console;
1: - struct vt_mode mode;
1: + unsigned int console;
1: + struct vt_mode mode;
1: };
1:
1: struct vt_spawn_console {
1: - spinlock_t lock;
1: - struct pid *pid;
1: - int sig;
1: + spinlock_t lock;
1: + struct pid *pid;
1: + int sig;
1: };
1:
1: struct vt_event_wait {
1: - struct list_head list;
1: - struct vt_event event;
1: - int done;
1: + struct list_head list;
1: + struct vt_event event;
1: + int done;
1: };
1:
1: struct compat_consolefontdesc {
1: - short unsigned int charcount;
1: - short unsigned int charheight;
1: - compat_caddr_t chardata;
1: + short unsigned int charcount;
1: + short unsigned int charheight;
1: + compat_caddr_t chardata;
1: };
1:
1: struct compat_console_font_op {
1: - compat_uint_t op;
1: - compat_uint_t flags;
1: - compat_uint_t width;
1: - compat_uint_t height;
1: - compat_uint_t charcount;
1: - compat_caddr_t data;
1: + compat_uint_t op;
1: + compat_uint_t flags;
1: + compat_uint_t width;
1: + compat_uint_t height;
1: + compat_uint_t charcount;
1: + compat_caddr_t data;
1: };
1:
1: struct compat_unimapdesc {
1: - short unsigned int entry_ct;
1: - compat_caddr_t entries;
1: + short unsigned int entry_ct;
1: + compat_caddr_t entries;
1: };
1:
1: struct vt_notifier_param {
1: - struct vc_data *vc;
1: - unsigned int c;
1: + struct vc_data *vc;
1: + unsigned int c;
1: };
1:
1: struct vcs_poll_data {
1: - struct notifier_block notifier;
1: - unsigned int cons_num;
1: - int event;
1: - wait_queue_head_t waitq;
1: - struct fasync_struct *fasync;
1: + struct notifier_block notifier;
1: + unsigned int cons_num;
1: + int event;
1: + wait_queue_head_t waitq;
1: + struct fasync_struct *fasync;
1: };
1:
1: struct tiocl_selection {
1: - short unsigned int xs;
1: - short unsigned int ys;
1: - short unsigned int xe;
1: - short unsigned int ye;
1: - short unsigned int sel_mode;
1: + short unsigned int xs;
1: + short unsigned int ys;
1: + short unsigned int xe;
1: + short unsigned int ye;
1: + short unsigned int sel_mode;
1: };
1:
1: struct vc_selection {
1: - struct mutex lock;
1: - struct vc_data *cons;
1: - char *buffer;
1: - unsigned int buf_len;
1: - volatile int start;
1: - int end;
1: + struct mutex lock;
1: + struct vc_data *cons;
1: + char *buffer;
1: + unsigned int buf_len;
1: + volatile int start;
1: + int end;
1: };
1:
1: enum led_brightness {
1: - LED_OFF = 0,
1: - LED_ON = 1,
1: - LED_HALF = 127,
1: - LED_FULL = 255,
1: + LED_OFF = 0,
1: + LED_ON = 1,
1: + LED_HALF = 127,
1: + LED_FULL = 255,
1: };
1:
1: struct led_hw_trigger_type {
1: - int dummy;
1: + int dummy;
1: };
1:
1: struct led_pattern;
1: @@ -78937,110 +79965,111 @@ struct led_pattern;
1: struct led_trigger;
1:
1: struct led_classdev {
1: - const char *name;
1: - enum led_brightness brightness;
1: - enum led_brightness max_brightness;
1: - int flags;
1: - long unsigned int work_flags;
1: - void (*brightness_set)(struct led_classdev *, enum led_brightness);
1: - int (*brightness_set_blocking)(struct led_classdev *, enum led_brightness);
1: - enum led_brightness (*brightness_get)(struct led_classdev *);
1: - int (*blink_set)(struct led_classdev *, long unsigned int *, long unsigned int *);
1: - int (*pattern_set)(struct led_classdev *, struct led_pattern *, u32, int);
1: - int (*pattern_clear)(struct led_classdev *);
1: - struct device *dev;
1: - const struct attribute_group **groups;
1: - struct list_head node;
1: - const char *default_trigger;
1: - long unsigned int blink_delay_on;
1: - long unsigned int blink_delay_off;
1: - struct timer_list blink_timer;
1: - int blink_brightness;
1: - int new_blink_brightness;
1: - void (*flash_resume)(struct led_classdev *);
1: - struct work_struct set_brightness_work;
1: - int delayed_set_value;
1: - struct rw_semaphore trigger_lock;
1: - struct led_trigger *trigger;
1: - struct list_head trig_list;
1: - void *trigger_data;
1: - bool activated;
1: - struct led_hw_trigger_type *trigger_type;
1: - struct mutex led_access;
1: + const char *name;
1: + enum led_brightness brightness;
1: + enum led_brightness max_brightness;
1: + int flags;
1: + long unsigned int work_flags;
1: + void (*brightness_set)(struct led_classdev *, enum led_brightness);
1: + int (*brightness_set_blocking)(struct led_classdev *, enum led_brightness);
1: + enum led_brightness (*brightness_get)(struct led_classdev *);
1: + int (*blink_set)(struct led_classdev *, long unsigned int *,
1: + long unsigned int *);
1: + int (*pattern_set)(struct led_classdev *, struct led_pattern *, u32, int);
1: + int (*pattern_clear)(struct led_classdev *);
1: + struct device *dev;
1: + const struct attribute_group **groups;
1: + struct list_head node;
1: + const char *default_trigger;
1: + long unsigned int blink_delay_on;
1: + long unsigned int blink_delay_off;
1: + struct timer_list blink_timer;
1: + int blink_brightness;
1: + int new_blink_brightness;
1: + void (*flash_resume)(struct led_classdev *);
1: + struct work_struct set_brightness_work;
1: + int delayed_set_value;
1: + struct rw_semaphore trigger_lock;
1: + struct led_trigger *trigger;
1: + struct list_head trig_list;
1: + void *trigger_data;
1: + bool activated;
1: + struct led_hw_trigger_type *trigger_type;
1: + struct mutex led_access;
1: };
1:
1: struct led_pattern {
1: - u32 delta_t;
1: - int brightness;
1: + u32 delta_t;
1: + int brightness;
1: };
1:
1: struct led_trigger {
1: - const char *name;
1: - int (*activate)(struct led_classdev *);
1: - void (*deactivate)(struct led_classdev *);
1: - struct led_hw_trigger_type *trigger_type;
1: - rwlock_t leddev_list_lock;
1: - struct list_head led_cdevs;
1: - struct list_head next_trig;
1: - const struct attribute_group **groups;
1: + const char *name;
1: + int (*activate)(struct led_classdev *);
1: + void (*deactivate)(struct led_classdev *);
1: + struct led_hw_trigger_type *trigger_type;
1: + rwlock_t leddev_list_lock;
1: + struct list_head led_cdevs;
1: + struct list_head next_trig;
1: + const struct attribute_group **groups;
1: };
1:
1: struct keyboard_notifier_param {
1: - struct vc_data *vc;
1: - int down;
1: - int shift;
1: - int ledstate;
1: - unsigned int value;
1: + struct vc_data *vc;
1: + int down;
1: + int shift;
1: + int ledstate;
1: + unsigned int value;
1: };
1:
1: struct kbd_struct {
1: - unsigned char lockstate;
1: - unsigned char slockstate;
1: - unsigned char ledmode: 1;
1: - unsigned char ledflagstate: 4;
1: - char: 3;
1: - unsigned char default_ledflagstate: 4;
1: - unsigned char kbdmode: 3;
1: - char: 1;
1: - unsigned char modeflags: 5;
1: + unsigned char lockstate;
1: + unsigned char slockstate;
1: + unsigned char ledmode : 1;
1: + unsigned char ledflagstate : 4;
1: + char : 3;
1: + unsigned char default_ledflagstate : 4;
1: + unsigned char kbdmode : 3;
1: + char : 1;
1: + unsigned char modeflags : 5;
1: };
1:
1: struct kbentry {
1: - unsigned char kb_table;
1: - unsigned char kb_index;
1: - short unsigned int kb_value;
1: + unsigned char kb_table;
1: + unsigned char kb_index;
1: + short unsigned int kb_value;
1: };
1:
1: struct kbsentry {
1: - unsigned char kb_func;
1: - unsigned char kb_string[512];
1: + unsigned char kb_func;
1: + unsigned char kb_string[512];
1: };
1:
1: struct kbdiacr {
1: - unsigned char diacr;
1: - unsigned char base;
1: - unsigned char result;
1: + unsigned char diacr;
1: + unsigned char base;
1: + unsigned char result;
1: };
1:
1: struct kbdiacrs {
1: - unsigned int kb_cnt;
1: - struct kbdiacr kbdiacr[256];
1: + unsigned int kb_cnt;
1: + struct kbdiacr kbdiacr[256];
1: };
1:
1: struct kbdiacruc {
1: - unsigned int diacr;
1: - unsigned int base;
1: - unsigned int result;
1: + unsigned int diacr;
1: + unsigned int base;
1: + unsigned int result;
1: };
1:
1: struct kbdiacrsuc {
1: - unsigned int kb_cnt;
1: - struct kbdiacruc kbdiacruc[256];
1: + unsigned int kb_cnt;
1: + struct kbdiacruc kbdiacruc[256];
1: };
1:
1: struct kbkeycode {
1: - unsigned int scancode;
1: - unsigned int keycode;
1: + unsigned int scancode;
1: + unsigned int keycode;
1: };
1:
1: typedef void k_handler_fn(struct vc_data *, unsigned char, char);
1: @@ -79048,200 +80077,200 @@ typedef void k_handler_fn(struct vc_data *, unsigned char, char);
1: typedef void fn_handler_fn(struct vc_data *);
1:
1: struct getset_keycode_data {
1: - struct input_keymap_entry ke;
1: - int error;
1: + struct input_keymap_entry ke;
1: + int error;
1: };
1:
1: struct kbd_led_trigger {
1: - struct led_trigger trigger;
1: - unsigned int mask;
1: + struct led_trigger trigger;
1: + unsigned int mask;
1: };
1:
1: struct uni_pagedir {
1: - u16 **uni_pgdir[32];
1: - long unsigned int refcount;
1: - long unsigned int sum;
1: - unsigned char *inverse_translations[4];
1: - u16 *inverse_trans_unicode;
1: + u16 **uni_pgdir[32];
1: + long unsigned int refcount;
1: + long unsigned int sum;
1: + unsigned char *inverse_translations[4];
1: + u16 *inverse_trans_unicode;
1: };
1:
1: typedef uint32_t char32_t;
1:
1: struct uni_screen {
1: - char32_t *lines[0];
1: + char32_t *lines[0];
1: };
1:
1: struct con_driver {
1: - const struct consw *con;
1: - const char *desc;
1: - struct device *dev;
1: - int node;
1: - int first;
1: - int last;
1: - int flag;
1: + const struct consw *con;
1: + const char *desc;
1: + struct device *dev;
1: + int node;
1: + int first;
1: + int last;
1: + int flag;
1: };
1:
1: enum {
1: - blank_off = 0,
1: - blank_normal_wait = 1,
1: - blank_vesa_wait = 2,
1: + blank_off = 0,
1: + blank_normal_wait = 1,
1: + blank_vesa_wait = 2,
1: };
1:
1: enum {
1: - EPecma = 0,
1: - EPdec = 1,
1: - EPeq = 2,
1: - EPgt = 3,
1: - EPlt = 4,
1: + EPecma = 0,
1: + EPdec = 1,
1: + EPeq = 2,
1: + EPgt = 3,
1: + EPlt = 4,
1: };
1:
1: struct rgb {
1: - u8 r;
1: - u8 g;
1: - u8 b;
1: + u8 r;
1: + u8 g;
1: + u8 b;
1: };
1:
1: enum {
1: - ESnormal = 0,
1: - ESesc = 1,
1: - ESsquare = 2,
1: - ESgetpars = 3,
1: - ESfunckey = 4,
1: - EShash = 5,
1: - ESsetG0 = 6,
1: - ESsetG1 = 7,
1: - ESpercent = 8,
1: - EScsiignore = 9,
1: - ESnonstd = 10,
1: - ESpalette = 11,
1: - ESosc = 12,
1: + ESnormal = 0,
1: + ESesc = 1,
1: + ESsquare = 2,
1: + ESgetpars = 3,
1: + ESfunckey = 4,
1: + EShash = 5,
1: + ESsetG0 = 6,
1: + ESsetG1 = 7,
1: + ESpercent = 8,
1: + EScsiignore = 9,
1: + ESnonstd = 10,
1: + ESpalette = 11,
1: + ESosc = 12,
1: };
1:
1: struct interval {
1: - uint32_t first;
1: - uint32_t last;
1: + uint32_t first;
1: + uint32_t last;
1: };
1:
1: struct vc_draw_region {
1: - long unsigned int from;
1: - long unsigned int to;
1: - int x;
1: + long unsigned int from;
1: + long unsigned int to;
1: + int x;
1: };
1:
1: struct hv_ops;
1:
1: struct hvc_struct {
1: - struct tty_port port;
1: - spinlock_t lock;
1: - int index;
1: - int do_wakeup;
1: - char *outbuf;
1: - int outbuf_size;
1: - int n_outbuf;
1: - uint32_t vtermno;
1: - const struct hv_ops *ops;
1: - int irq_requested;
1: - int data;
1: - struct winsize ws;
1: - struct work_struct tty_resize;
1: - struct list_head next;
1: - long unsigned int flags;
1: + struct tty_port port;
1: + spinlock_t lock;
1: + int index;
1: + int do_wakeup;
1: + char *outbuf;
1: + int outbuf_size;
1: + int n_outbuf;
1: + uint32_t vtermno;
1: + const struct hv_ops *ops;
1: + int irq_requested;
1: + int data;
1: + struct winsize ws;
1: + struct work_struct tty_resize;
1: + struct list_head next;
1: + long unsigned int flags;
1: };
1:
1: struct hv_ops {
1: - int (*get_chars)(uint32_t, char *, int);
1: - int (*put_chars)(uint32_t, const char *, int);
1: - int (*flush)(uint32_t, bool);
1: - int (*notifier_add)(struct hvc_struct *, int);
1: - void (*notifier_del)(struct hvc_struct *, int);
1: - void (*notifier_hangup)(struct hvc_struct *, int);
1: - int (*tiocmget)(struct hvc_struct *);
1: - int (*tiocmset)(struct hvc_struct *, unsigned int, unsigned int);
1: - void (*dtr_rts)(struct hvc_struct *, int);
1: + int (*get_chars)(uint32_t, char *, int);
1: + int (*put_chars)(uint32_t, const char *, int);
1: + int (*flush)(uint32_t, bool);
1: + int (*notifier_add)(struct hvc_struct *, int);
1: + void (*notifier_del)(struct hvc_struct *, int);
1: + void (*notifier_hangup)(struct hvc_struct *, int);
1: + int (*tiocmget)(struct hvc_struct *);
1: + int (*tiocmset)(struct hvc_struct *, unsigned int, unsigned int);
1: + void (*dtr_rts)(struct hvc_struct *, int);
1: };
1:
1: struct earlycon_device {
1: - struct console *con;
1: - struct uart_port port;
1: - char options[16];
1: - unsigned int baud;
1: + struct console *con;
1: + struct uart_port port;
1: + char options[16];
1: + unsigned int baud;
1: };
1:
1: struct earlycon_id {
1: - char name[15];
1: - char name_term;
1: - char compatible[128];
1: - int (*setup)(struct earlycon_device *, const char *);
1: + char name[15];
1: + char name_term;
1: + char compatible[128];
1: + int (*setup)(struct earlycon_device *, const char *);
1: };
1:
1: typedef uint32_t XENCONS_RING_IDX;
1:
1: struct xencons_interface {
1: - char in[1024];
1: - char out[2048];
1: - XENCONS_RING_IDX in_cons;
1: - XENCONS_RING_IDX in_prod;
1: - XENCONS_RING_IDX out_cons;
1: - XENCONS_RING_IDX out_prod;
1: + char in[1024];
1: + char out[2048];
1: + XENCONS_RING_IDX in_cons;
1: + XENCONS_RING_IDX in_prod;
1: + XENCONS_RING_IDX out_cons;
1: + XENCONS_RING_IDX out_prod;
1: };
1:
1: struct xencons_info {
1: - struct list_head list;
1: - struct xenbus_device *xbdev;
1: - struct xencons_interface *intf;
1: - unsigned int evtchn;
1: - struct hvc_struct *hvc;
1: - int irq;
1: - int vtermno;
1: - grant_ref_t gntref;
1: + struct list_head list;
1: + struct xenbus_device *xbdev;
1: + struct xencons_interface *intf;
1: + unsigned int evtchn;
1: + struct hvc_struct *hvc;
1: + int irq;
1: + int vtermno;
1: + grant_ref_t gntref;
1: };
1:
1: struct uart_driver {
1: - struct module *owner;
1: - const char *driver_name;
1: - const char *dev_name;
1: - int major;
1: - int minor;
1: - int nr;
1: - struct console *cons;
1: - struct uart_state *state;
1: - struct tty_driver *tty_driver;
1: + struct module *owner;
1: + const char *driver_name;
1: + const char *dev_name;
1: + int major;
1: + int minor;
1: + int nr;
1: + struct console *cons;
1: + struct uart_state *state;
1: + struct tty_driver *tty_driver;
1: };
1:
1: struct uart_match {
1: - struct uart_port *port;
1: - struct uart_driver *driver;
1: + struct uart_port *port;
1: + struct uart_driver *driver;
1: };
1:
1: enum hwparam_type {
1: - hwparam_ioport = 0,
1: - hwparam_iomem = 1,
1: - hwparam_ioport_or_iomem = 2,
1: - hwparam_irq = 3,
1: - hwparam_dma = 4,
1: - hwparam_dma_addr = 5,
1: - hwparam_other = 6,
1: + hwparam_ioport = 0,
1: + hwparam_iomem = 1,
1: + hwparam_ioport_or_iomem = 2,
1: + hwparam_irq = 3,
1: + hwparam_dma = 4,
1: + hwparam_dma_addr = 5,
1: + hwparam_other = 6,
1: };
1:
1: enum {
1: - PLAT8250_DEV_LEGACY = 4294967295,
1: - PLAT8250_DEV_PLATFORM = 0,
1: - PLAT8250_DEV_PLATFORM1 = 1,
1: - PLAT8250_DEV_PLATFORM2 = 2,
1: - PLAT8250_DEV_FOURPORT = 3,
1: - PLAT8250_DEV_ACCENT = 4,
1: - PLAT8250_DEV_BOCA = 5,
1: - PLAT8250_DEV_EXAR_ST16C554 = 6,
1: - PLAT8250_DEV_HUB6 = 7,
1: - PLAT8250_DEV_AU1X00 = 8,
1: - PLAT8250_DEV_SM501 = 9,
1: + PLAT8250_DEV_LEGACY = 4294967295,
1: + PLAT8250_DEV_PLATFORM = 0,
1: + PLAT8250_DEV_PLATFORM1 = 1,
1: + PLAT8250_DEV_PLATFORM2 = 2,
1: + PLAT8250_DEV_FOURPORT = 3,
1: + PLAT8250_DEV_ACCENT = 4,
1: + PLAT8250_DEV_BOCA = 5,
1: + PLAT8250_DEV_EXAR_ST16C554 = 6,
1: + PLAT8250_DEV_HUB6 = 7,
1: + PLAT8250_DEV_AU1X00 = 8,
1: + PLAT8250_DEV_SM501 = 9,
1: };
1:
1: struct uart_8250_port;
1:
1: struct uart_8250_ops {
1: - int (*setup_irq)(struct uart_8250_port *);
1: - void (*release_irq)(struct uart_8250_port *);
1: + int (*setup_irq)(struct uart_8250_port *);
1: + void (*release_irq)(struct uart_8250_port *);
1: };
1:
1: struct mctrl_gpios;
1: @@ -79251,825 +80280,827 @@ struct uart_8250_dma;
1: struct uart_8250_em485;
1:
1: struct uart_8250_port {
1: - struct uart_port port;
1: - struct timer_list timer;
1: - struct list_head list;
1: - u32 capabilities;
1: - short unsigned int bugs;
1: - bool fifo_bug;
1: - unsigned int tx_loadsz;
1: - unsigned char acr;
1: - unsigned char fcr;
1: - unsigned char ier;
1: - unsigned char lcr;
1: - unsigned char mcr;
1: - unsigned char mcr_mask;
1: - unsigned char mcr_force;
1: - unsigned char cur_iotype;
1: - unsigned int rpm_tx_active;
1: - unsigned char canary;
1: - unsigned char probe;
1: - struct mctrl_gpios *gpios;
1: - unsigned char lsr_saved_flags;
1: - unsigned char msr_saved_flags;
1: - struct uart_8250_dma *dma;
1: - const struct uart_8250_ops *ops;
1: - int (*dl_read)(struct uart_8250_port *);
1: - void (*dl_write)(struct uart_8250_port *, int);
1: - struct uart_8250_em485 *em485;
1: - void (*rs485_start_tx)(struct uart_8250_port *);
1: - void (*rs485_stop_tx)(struct uart_8250_port *);
1: - struct delayed_work overrun_backoff;
1: - u32 overrun_backoff_time_ms;
1: + struct uart_port port;
1: + struct timer_list timer;
1: + struct list_head list;
1: + u32 capabilities;
1: + short unsigned int bugs;
1: + bool fifo_bug;
1: + unsigned int tx_loadsz;
1: + unsigned char acr;
1: + unsigned char fcr;
1: + unsigned char ier;
1: + unsigned char lcr;
1: + unsigned char mcr;
1: + unsigned char mcr_mask;
1: + unsigned char mcr_force;
1: + unsigned char cur_iotype;
1: + unsigned int rpm_tx_active;
1: + unsigned char canary;
1: + unsigned char probe;
1: + struct mctrl_gpios *gpios;
1: + unsigned char lsr_saved_flags;
1: + unsigned char msr_saved_flags;
1: + struct uart_8250_dma *dma;
1: + const struct uart_8250_ops *ops;
1: + int (*dl_read)(struct uart_8250_port *);
1: + void (*dl_write)(struct uart_8250_port *, int);
1: + struct uart_8250_em485 *em485;
1: + void (*rs485_start_tx)(struct uart_8250_port *);
1: + void (*rs485_stop_tx)(struct uart_8250_port *);
1: + struct delayed_work overrun_backoff;
1: + u32 overrun_backoff_time_ms;
1: };
1:
1: struct uart_8250_em485 {
1: - struct hrtimer start_tx_timer;
1: - struct hrtimer stop_tx_timer;
1: - struct hrtimer *active_timer;
1: - struct uart_8250_port *port;
1: - unsigned int tx_stopped: 1;
1: + struct hrtimer start_tx_timer;
1: + struct hrtimer stop_tx_timer;
1: + struct hrtimer *active_timer;
1: + struct uart_8250_port *port;
1: + unsigned int tx_stopped : 1;
1: };
1:
1: struct uart_8250_dma {
1: - int (*tx_dma)(struct uart_8250_port *);
1: - int (*rx_dma)(struct uart_8250_port *);
1: - dma_filter_fn fn;
1: - void *rx_param;
1: - void *tx_param;
1: - struct dma_slave_config rxconf;
1: - struct dma_slave_config txconf;
1: - struct dma_chan *rxchan;
1: - struct dma_chan *txchan;
1: - phys_addr_t rx_dma_addr;
1: - phys_addr_t tx_dma_addr;
1: - dma_addr_t rx_addr;
1: - dma_addr_t tx_addr;
1: - dma_cookie_t rx_cookie;
1: - dma_cookie_t tx_cookie;
1: - void *rx_buf;
1: - size_t rx_size;
1: - size_t tx_size;
1: - unsigned char tx_running;
1: - unsigned char tx_err;
1: - unsigned char rx_running;
1: + int (*tx_dma)(struct uart_8250_port *);
1: + int (*rx_dma)(struct uart_8250_port *);
1: + dma_filter_fn fn;
1: + void *rx_param;
1: + void *tx_param;
1: + struct dma_slave_config rxconf;
1: + struct dma_slave_config txconf;
1: + struct dma_chan *rxchan;
1: + struct dma_chan *txchan;
1: + phys_addr_t rx_dma_addr;
1: + phys_addr_t tx_dma_addr;
1: + dma_addr_t rx_addr;
1: + dma_addr_t tx_addr;
1: + dma_cookie_t rx_cookie;
1: + dma_cookie_t tx_cookie;
1: + void *rx_buf;
1: + size_t rx_size;
1: + size_t tx_size;
1: + unsigned char tx_running;
1: + unsigned char tx_err;
1: + unsigned char rx_running;
1: };
1:
1: struct old_serial_port {
1: - unsigned int uart;
1: - unsigned int baud_base;
1: - unsigned int port;
1: - unsigned int irq;
1: - upf_t flags;
1: - unsigned char io_type;
1: - unsigned char *iomem_base;
1: - short unsigned int iomem_reg_shift;
1: + unsigned int uart;
1: + unsigned int baud_base;
1: + unsigned int port;
1: + unsigned int irq;
1: + upf_t flags;
1: + unsigned char io_type;
1: + unsigned char *iomem_base;
1: + short unsigned int iomem_reg_shift;
1: };
1:
1: struct irq_info___2 {
1: - struct hlist_node node;
1: - int irq;
1: - spinlock_t lock;
1: - struct list_head *head;
1: + struct hlist_node node;
1: + int irq;
1: + spinlock_t lock;
1: + struct list_head *head;
1: };
1:
1: struct serial8250_config {
1: - const char *name;
1: - short unsigned int fifo_size;
1: - short unsigned int tx_loadsz;
1: - unsigned char fcr;
1: - unsigned char rxtrig_bytes[4];
1: - unsigned int flags;
1: + const char *name;
1: + short unsigned int fifo_size;
1: + short unsigned int tx_loadsz;
1: + unsigned char fcr;
1: + unsigned char rxtrig_bytes[4];
1: + unsigned int flags;
1: };
1:
1: struct dw8250_port_data {
1: - int line;
1: - struct uart_8250_dma dma;
1: - u8 dlf_size;
1: + int line;
1: + struct uart_8250_dma dma;
1: + u8 dlf_size;
1: };
1:
1: struct pciserial_board {
1: - unsigned int flags;
1: - unsigned int num_ports;
1: - unsigned int base_baud;
1: - unsigned int uart_offset;
1: - unsigned int reg_shift;
1: - unsigned int first_offset;
1: + unsigned int flags;
1: + unsigned int num_ports;
1: + unsigned int base_baud;
1: + unsigned int uart_offset;
1: + unsigned int reg_shift;
1: + unsigned int first_offset;
1: };
1:
1: struct serial_private;
1:
1: struct pci_serial_quirk {
1: - u32 vendor;
1: - u32 device;
1: - u32 subvendor;
1: - u32 subdevice;
1: - int (*probe)(struct pci_dev *);
1: - int (*init)(struct pci_dev *);
1: - int (*setup)(struct serial_private *, const struct pciserial_board *, struct uart_8250_port *, int);
1: - void (*exit)(struct pci_dev *);
1: + u32 vendor;
1: + u32 device;
1: + u32 subvendor;
1: + u32 subdevice;
1: + int (*probe)(struct pci_dev *);
1: + int (*init)(struct pci_dev *);
1: + int (*setup)(struct serial_private *, const struct pciserial_board *,
1: + struct uart_8250_port *, int);
1: + void (*exit)(struct pci_dev *);
1: };
1:
1: struct serial_private {
1: - struct pci_dev *dev;
1: - unsigned int nr;
1: - struct pci_serial_quirk *quirk;
1: - const struct pciserial_board *board;
1: - int line[0];
1: + struct pci_dev *dev;
1: + unsigned int nr;
1: + struct pci_serial_quirk *quirk;
1: + const struct pciserial_board *board;
1: + int line[0];
1: };
1:
1: struct f815xxa_data {
1: - spinlock_t lock;
1: - int idx;
1: + spinlock_t lock;
1: + int idx;
1: };
1:
1: struct timedia_struct {
1: - int num;
1: - const short unsigned int *ids;
1: + int num;
1: + const short unsigned int *ids;
1: };
1:
1: struct quatech_feature {
1: - u16 devid;
1: - bool amcc;
1: + u16 devid;
1: + bool amcc;
1: };
1:
1: enum pci_board_num_t {
1: - pbn_default = 0,
1: - pbn_b0_1_115200 = 1,
1: - pbn_b0_2_115200 = 2,
1: - pbn_b0_4_115200 = 3,
1: - pbn_b0_5_115200 = 4,
1: - pbn_b0_8_115200 = 5,
1: - pbn_b0_1_921600 = 6,
1: - pbn_b0_2_921600 = 7,
1: - pbn_b0_4_921600 = 8,
1: - pbn_b0_2_1130000 = 9,
1: - pbn_b0_4_1152000 = 10,
1: - pbn_b0_4_1250000 = 11,
1: - pbn_b0_2_1843200 = 12,
1: - pbn_b0_4_1843200 = 13,
1: - pbn_b0_1_4000000 = 14,
1: - pbn_b0_bt_1_115200 = 15,
1: - pbn_b0_bt_2_115200 = 16,
1: - pbn_b0_bt_4_115200 = 17,
1: - pbn_b0_bt_8_115200 = 18,
1: - pbn_b0_bt_1_460800 = 19,
1: - pbn_b0_bt_2_460800 = 20,
1: - pbn_b0_bt_4_460800 = 21,
1: - pbn_b0_bt_1_921600 = 22,
1: - pbn_b0_bt_2_921600 = 23,
1: - pbn_b0_bt_4_921600 = 24,
1: - pbn_b0_bt_8_921600 = 25,
1: - pbn_b1_1_115200 = 26,
1: - pbn_b1_2_115200 = 27,
1: - pbn_b1_4_115200 = 28,
1: - pbn_b1_8_115200 = 29,
1: - pbn_b1_16_115200 = 30,
1: - pbn_b1_1_921600 = 31,
1: - pbn_b1_2_921600 = 32,
1: - pbn_b1_4_921600 = 33,
1: - pbn_b1_8_921600 = 34,
1: - pbn_b1_2_1250000 = 35,
1: - pbn_b1_bt_1_115200 = 36,
1: - pbn_b1_bt_2_115200 = 37,
1: - pbn_b1_bt_4_115200 = 38,
1: - pbn_b1_bt_2_921600 = 39,
1: - pbn_b1_1_1382400 = 40,
1: - pbn_b1_2_1382400 = 41,
1: - pbn_b1_4_1382400 = 42,
1: - pbn_b1_8_1382400 = 43,
1: - pbn_b2_1_115200 = 44,
1: - pbn_b2_2_115200 = 45,
1: - pbn_b2_4_115200 = 46,
1: - pbn_b2_8_115200 = 47,
1: - pbn_b2_1_460800 = 48,
1: - pbn_b2_4_460800 = 49,
1: - pbn_b2_8_460800 = 50,
1: - pbn_b2_16_460800 = 51,
1: - pbn_b2_1_921600 = 52,
1: - pbn_b2_4_921600 = 53,
1: - pbn_b2_8_921600 = 54,
1: - pbn_b2_8_1152000 = 55,
1: - pbn_b2_bt_1_115200 = 56,
1: - pbn_b2_bt_2_115200 = 57,
1: - pbn_b2_bt_4_115200 = 58,
1: - pbn_b2_bt_2_921600 = 59,
1: - pbn_b2_bt_4_921600 = 60,
1: - pbn_b3_2_115200 = 61,
1: - pbn_b3_4_115200 = 62,
1: - pbn_b3_8_115200 = 63,
1: - pbn_b4_bt_2_921600 = 64,
1: - pbn_b4_bt_4_921600 = 65,
1: - pbn_b4_bt_8_921600 = 66,
1: - pbn_panacom = 67,
1: - pbn_panacom2 = 68,
1: - pbn_panacom4 = 69,
1: - pbn_plx_romulus = 70,
1: - pbn_endrun_2_4000000 = 71,
1: - pbn_oxsemi = 72,
1: - pbn_oxsemi_1_4000000 = 73,
1: - pbn_oxsemi_2_4000000 = 74,
1: - pbn_oxsemi_4_4000000 = 75,
1: - pbn_oxsemi_8_4000000 = 76,
1: - pbn_intel_i960 = 77,
1: - pbn_sgi_ioc3 = 78,
1: - pbn_computone_4 = 79,
1: - pbn_computone_6 = 80,
1: - pbn_computone_8 = 81,
1: - pbn_sbsxrsio = 82,
1: - pbn_pasemi_1682M = 83,
1: - pbn_ni8430_2 = 84,
1: - pbn_ni8430_4 = 85,
1: - pbn_ni8430_8 = 86,
1: - pbn_ni8430_16 = 87,
1: - pbn_ADDIDATA_PCIe_1_3906250 = 88,
1: - pbn_ADDIDATA_PCIe_2_3906250 = 89,
1: - pbn_ADDIDATA_PCIe_4_3906250 = 90,
1: - pbn_ADDIDATA_PCIe_8_3906250 = 91,
1: - pbn_ce4100_1_115200 = 92,
1: - pbn_omegapci = 93,
1: - pbn_NETMOS9900_2s_115200 = 94,
1: - pbn_brcm_trumanage = 95,
1: - pbn_fintek_4 = 96,
1: - pbn_fintek_8 = 97,
1: - pbn_fintek_12 = 98,
1: - pbn_fintek_F81504A = 99,
1: - pbn_fintek_F81508A = 100,
1: - pbn_fintek_F81512A = 101,
1: - pbn_wch382_2 = 102,
1: - pbn_wch384_4 = 103,
1: - pbn_wch384_8 = 104,
1: - pbn_pericom_PI7C9X7951 = 105,
1: - pbn_pericom_PI7C9X7952 = 106,
1: - pbn_pericom_PI7C9X7954 = 107,
1: - pbn_pericom_PI7C9X7958 = 108,
1: - pbn_sunix_pci_1s = 109,
1: - pbn_sunix_pci_2s = 110,
1: - pbn_sunix_pci_4s = 111,
1: - pbn_sunix_pci_8s = 112,
1: - pbn_sunix_pci_16s = 113,
1: - pbn_moxa8250_2p = 114,
1: - pbn_moxa8250_4p = 115,
1: - pbn_moxa8250_8p = 116,
1: + pbn_default = 0,
1: + pbn_b0_1_115200 = 1,
1: + pbn_b0_2_115200 = 2,
1: + pbn_b0_4_115200 = 3,
1: + pbn_b0_5_115200 = 4,
1: + pbn_b0_8_115200 = 5,
1: + pbn_b0_1_921600 = 6,
1: + pbn_b0_2_921600 = 7,
1: + pbn_b0_4_921600 = 8,
1: + pbn_b0_2_1130000 = 9,
1: + pbn_b0_4_1152000 = 10,
1: + pbn_b0_4_1250000 = 11,
1: + pbn_b0_2_1843200 = 12,
1: + pbn_b0_4_1843200 = 13,
1: + pbn_b0_1_4000000 = 14,
1: + pbn_b0_bt_1_115200 = 15,
1: + pbn_b0_bt_2_115200 = 16,
1: + pbn_b0_bt_4_115200 = 17,
1: + pbn_b0_bt_8_115200 = 18,
1: + pbn_b0_bt_1_460800 = 19,
1: + pbn_b0_bt_2_460800 = 20,
1: + pbn_b0_bt_4_460800 = 21,
1: + pbn_b0_bt_1_921600 = 22,
1: + pbn_b0_bt_2_921600 = 23,
1: + pbn_b0_bt_4_921600 = 24,
1: + pbn_b0_bt_8_921600 = 25,
1: + pbn_b1_1_115200 = 26,
1: + pbn_b1_2_115200 = 27,
1: + pbn_b1_4_115200 = 28,
1: + pbn_b1_8_115200 = 29,
1: + pbn_b1_16_115200 = 30,
1: + pbn_b1_1_921600 = 31,
1: + pbn_b1_2_921600 = 32,
1: + pbn_b1_4_921600 = 33,
1: + pbn_b1_8_921600 = 34,
1: + pbn_b1_2_1250000 = 35,
1: + pbn_b1_bt_1_115200 = 36,
1: + pbn_b1_bt_2_115200 = 37,
1: + pbn_b1_bt_4_115200 = 38,
1: + pbn_b1_bt_2_921600 = 39,
1: + pbn_b1_1_1382400 = 40,
1: + pbn_b1_2_1382400 = 41,
1: + pbn_b1_4_1382400 = 42,
1: + pbn_b1_8_1382400 = 43,
1: + pbn_b2_1_115200 = 44,
1: + pbn_b2_2_115200 = 45,
1: + pbn_b2_4_115200 = 46,
1: + pbn_b2_8_115200 = 47,
1: + pbn_b2_1_460800 = 48,
1: + pbn_b2_4_460800 = 49,
1: + pbn_b2_8_460800 = 50,
1: + pbn_b2_16_460800 = 51,
1: + pbn_b2_1_921600 = 52,
1: + pbn_b2_4_921600 = 53,
1: + pbn_b2_8_921600 = 54,
1: + pbn_b2_8_1152000 = 55,
1: + pbn_b2_bt_1_115200 = 56,
1: + pbn_b2_bt_2_115200 = 57,
1: + pbn_b2_bt_4_115200 = 58,
1: + pbn_b2_bt_2_921600 = 59,
1: + pbn_b2_bt_4_921600 = 60,
1: + pbn_b3_2_115200 = 61,
1: + pbn_b3_4_115200 = 62,
1: + pbn_b3_8_115200 = 63,
1: + pbn_b4_bt_2_921600 = 64,
1: + pbn_b4_bt_4_921600 = 65,
1: + pbn_b4_bt_8_921600 = 66,
1: + pbn_panacom = 67,
1: + pbn_panacom2 = 68,
1: + pbn_panacom4 = 69,
1: + pbn_plx_romulus = 70,
1: + pbn_endrun_2_4000000 = 71,
1: + pbn_oxsemi = 72,
1: + pbn_oxsemi_1_4000000 = 73,
1: + pbn_oxsemi_2_4000000 = 74,
1: + pbn_oxsemi_4_4000000 = 75,
1: + pbn_oxsemi_8_4000000 = 76,
1: + pbn_intel_i960 = 77,
1: + pbn_sgi_ioc3 = 78,
1: + pbn_computone_4 = 79,
1: + pbn_computone_6 = 80,
1: + pbn_computone_8 = 81,
1: + pbn_sbsxrsio = 82,
1: + pbn_pasemi_1682M = 83,
1: + pbn_ni8430_2 = 84,
1: + pbn_ni8430_4 = 85,
1: + pbn_ni8430_8 = 86,
1: + pbn_ni8430_16 = 87,
1: + pbn_ADDIDATA_PCIe_1_3906250 = 88,
1: + pbn_ADDIDATA_PCIe_2_3906250 = 89,
1: + pbn_ADDIDATA_PCIe_4_3906250 = 90,
1: + pbn_ADDIDATA_PCIe_8_3906250 = 91,
1: + pbn_ce4100_1_115200 = 92,
1: + pbn_omegapci = 93,
1: + pbn_NETMOS9900_2s_115200 = 94,
1: + pbn_brcm_trumanage = 95,
1: + pbn_fintek_4 = 96,
1: + pbn_fintek_8 = 97,
1: + pbn_fintek_12 = 98,
1: + pbn_fintek_F81504A = 99,
1: + pbn_fintek_F81508A = 100,
1: + pbn_fintek_F81512A = 101,
1: + pbn_wch382_2 = 102,
1: + pbn_wch384_4 = 103,
1: + pbn_wch384_8 = 104,
1: + pbn_pericom_PI7C9X7951 = 105,
1: + pbn_pericom_PI7C9X7952 = 106,
1: + pbn_pericom_PI7C9X7954 = 107,
1: + pbn_pericom_PI7C9X7958 = 108,
1: + pbn_sunix_pci_1s = 109,
1: + pbn_sunix_pci_2s = 110,
1: + pbn_sunix_pci_4s = 111,
1: + pbn_sunix_pci_8s = 112,
1: + pbn_sunix_pci_16s = 113,
1: + pbn_moxa8250_2p = 114,
1: + pbn_moxa8250_4p = 115,
1: + pbn_moxa8250_8p = 116,
1: };
1:
1: struct exar8250_platform {
1: - int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: - int (*register_gpio)(struct pci_dev *, struct uart_8250_port *);
1: + int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: + int (*register_gpio)(struct pci_dev *, struct uart_8250_port *);
1: };
1:
1: struct exar8250;
1:
1: struct exar8250_board {
1: - unsigned int num_ports;
1: - unsigned int reg_shift;
1: - int (*setup)(struct exar8250 *, struct pci_dev *, struct uart_8250_port *, int);
1: - void (*exit)(struct pci_dev *);
1: + unsigned int num_ports;
1: + unsigned int reg_shift;
1: + int (*setup)(struct exar8250 *, struct pci_dev *, struct uart_8250_port *,
1: + int);
1: + void (*exit)(struct pci_dev *);
1: };
1:
1: struct exar8250 {
1: - unsigned int nr;
1: - struct exar8250_board *board;
1: - void *virt;
1: - int line[0];
1: + unsigned int nr;
1: + struct exar8250_board *board;
1: + void *virt;
1: + int line[0];
1: };
1:
1: struct bcm2835aux_data {
1: - struct clk *clk;
1: - int line;
1: - u32 cntl;
1: + struct clk *clk;
1: + int line;
1: + u32 cntl;
1: };
1:
1: struct fsl8250_data {
1: - int line;
1: + int line;
1: };
1:
1: enum dma_rx_status {
1: - DMA_RX_START = 0,
1: - DMA_RX_RUNNING = 1,
1: - DMA_RX_SHUTDOWN = 2,
1: + DMA_RX_START = 0,
1: + DMA_RX_RUNNING = 1,
1: + DMA_RX_SHUTDOWN = 2,
1: };
1:
1: struct mtk8250_data {
1: - int line;
1: - unsigned int rx_pos;
1: - unsigned int clk_count;
1: - struct clk *uart_clk;
1: - struct clk *bus_clk;
1: - struct uart_8250_dma *dma;
1: - enum dma_rx_status rx_status;
1: - int rx_wakeup_irq;
1: + int line;
1: + unsigned int rx_pos;
1: + unsigned int clk_count;
1: + struct clk *uart_clk;
1: + struct clk *bus_clk;
1: + struct uart_8250_dma *dma;
1: + enum dma_rx_status rx_status;
1: + int rx_wakeup_irq;
1: };
1:
1: enum {
1: - MTK_UART_FC_NONE = 0,
1: - MTK_UART_FC_SW = 1,
1: - MTK_UART_FC_HW = 2,
1: + MTK_UART_FC_NONE = 0,
1: + MTK_UART_FC_SW = 1,
1: + MTK_UART_FC_HW = 2,
1: };
1:
1: struct tegra_uart {
1: - struct clk *clk;
1: - struct reset_control *rst;
1: - int line;
1: + struct clk *clk;
1: + struct reset_control *rst;
1: + int line;
1: };
1:
1: struct of_serial_info {
1: - struct clk *clk;
1: - struct reset_control *rst;
1: - int type;
1: - int line;
1: + struct clk *clk;
1: + struct reset_control *rst;
1: + int type;
1: + int line;
1: };
1:
1: enum amba_vendor {
1: - AMBA_VENDOR_ARM = 65,
1: - AMBA_VENDOR_ST = 128,
1: - AMBA_VENDOR_QCOM = 81,
1: - AMBA_VENDOR_LSI = 182,
1: - AMBA_VENDOR_LINUX = 254,
1: + AMBA_VENDOR_ARM = 65,
1: + AMBA_VENDOR_ST = 128,
1: + AMBA_VENDOR_QCOM = 81,
1: + AMBA_VENDOR_LSI = 182,
1: + AMBA_VENDOR_LINUX = 254,
1: };
1:
1: struct amba_pl011_data {
1: - bool (*dma_filter)(struct dma_chan *, void *);
1: - void *dma_rx_param;
1: - void *dma_tx_param;
1: - bool dma_rx_poll_enable;
1: - unsigned int dma_rx_poll_rate;
1: - unsigned int dma_rx_poll_timeout;
1: - void (*init)();
1: - void (*exit)();
1: -};
1: -
1: -enum {
1: - REG_DR = 0,
1: - REG_ST_DMAWM = 1,
1: - REG_ST_TIMEOUT = 2,
1: - REG_FR = 3,
1: - REG_LCRH_RX = 4,
1: - REG_LCRH_TX = 5,
1: - REG_IBRD = 6,
1: - REG_FBRD = 7,
1: - REG_CR = 8,
1: - REG_IFLS = 9,
1: - REG_IMSC = 10,
1: - REG_RIS = 11,
1: - REG_MIS = 12,
1: - REG_ICR = 13,
1: - REG_DMACR = 14,
1: - REG_ST_XFCR = 15,
1: - REG_ST_XON1 = 16,
1: - REG_ST_XON2 = 17,
1: - REG_ST_XOFF1 = 18,
1: - REG_ST_XOFF2 = 19,
1: - REG_ST_ITCR = 20,
1: - REG_ST_ITIP = 21,
1: - REG_ST_ABCR = 22,
1: - REG_ST_ABIMSC = 23,
1: - REG_ARRAY_SIZE = 24,
1: + bool (*dma_filter)(struct dma_chan *, void *);
1: + void *dma_rx_param;
1: + void *dma_tx_param;
1: + bool dma_rx_poll_enable;
1: + unsigned int dma_rx_poll_rate;
1: + unsigned int dma_rx_poll_timeout;
1: + void (*init)();
1: + void (*exit)();
1: +};
1: +
1: +enum {
1: + REG_DR = 0,
1: + REG_ST_DMAWM = 1,
1: + REG_ST_TIMEOUT = 2,
1: + REG_FR = 3,
1: + REG_LCRH_RX = 4,
1: + REG_LCRH_TX = 5,
1: + REG_IBRD = 6,
1: + REG_FBRD = 7,
1: + REG_CR = 8,
1: + REG_IFLS = 9,
1: + REG_IMSC = 10,
1: + REG_RIS = 11,
1: + REG_MIS = 12,
1: + REG_ICR = 13,
1: + REG_DMACR = 14,
1: + REG_ST_XFCR = 15,
1: + REG_ST_XON1 = 16,
1: + REG_ST_XON2 = 17,
1: + REG_ST_XOFF1 = 18,
1: + REG_ST_XOFF2 = 19,
1: + REG_ST_ITCR = 20,
1: + REG_ST_ITIP = 21,
1: + REG_ST_ABCR = 22,
1: + REG_ST_ABIMSC = 23,
1: + REG_ARRAY_SIZE = 24,
1: };
1:
1: struct vendor_data {
1: - const u16 *reg_offset;
1: - unsigned int ifls;
1: - unsigned int fr_busy;
1: - unsigned int fr_dsr;
1: - unsigned int fr_cts;
1: - unsigned int fr_ri;
1: - unsigned int inv_fr;
1: - bool access_32b;
1: - bool oversampling;
1: - bool dma_threshold;
1: - bool cts_event_workaround;
1: - bool always_enabled;
1: - bool fixed_options;
1: - unsigned int (*get_fifosize)(struct amba_device *);
1: + const u16 *reg_offset;
1: + unsigned int ifls;
1: + unsigned int fr_busy;
1: + unsigned int fr_dsr;
1: + unsigned int fr_cts;
1: + unsigned int fr_ri;
1: + unsigned int inv_fr;
1: + bool access_32b;
1: + bool oversampling;
1: + bool dma_threshold;
1: + bool cts_event_workaround;
1: + bool always_enabled;
1: + bool fixed_options;
1: + unsigned int (*get_fifosize)(struct amba_device *);
1: };
1:
1: struct pl011_sgbuf {
1: - struct scatterlist sg;
1: - char *buf;
1: + struct scatterlist sg;
1: + char *buf;
1: };
1:
1: struct pl011_dmarx_data {
1: - struct dma_chan *chan;
1: - struct completion complete;
1: - bool use_buf_b;
1: - struct pl011_sgbuf sgbuf_a;
1: - struct pl011_sgbuf sgbuf_b;
1: - dma_cookie_t cookie;
1: - bool running;
1: - struct timer_list timer;
1: - unsigned int last_residue;
1: - long unsigned int last_jiffies;
1: - bool auto_poll_rate;
1: - unsigned int poll_rate;
1: - unsigned int poll_timeout;
1: + struct dma_chan *chan;
1: + struct completion complete;
1: + bool use_buf_b;
1: + struct pl011_sgbuf sgbuf_a;
1: + struct pl011_sgbuf sgbuf_b;
1: + dma_cookie_t cookie;
1: + bool running;
1: + struct timer_list timer;
1: + unsigned int last_residue;
1: + long unsigned int last_jiffies;
1: + bool auto_poll_rate;
1: + unsigned int poll_rate;
1: + unsigned int poll_timeout;
1: };
1:
1: struct pl011_dmatx_data {
1: - struct dma_chan *chan;
1: - struct scatterlist sg;
1: - char *buf;
1: - bool queued;
1: + struct dma_chan *chan;
1: + struct scatterlist sg;
1: + char *buf;
1: + bool queued;
1: };
1:
1: struct uart_amba_port {
1: - struct uart_port port;
1: - const u16 *reg_offset;
1: - struct clk *clk;
1: - const struct vendor_data *vendor;
1: - unsigned int dmacr;
1: - unsigned int im;
1: - unsigned int old_status;
1: - unsigned int fifosize;
1: - unsigned int old_cr;
1: - unsigned int fixed_baud;
1: - char type[12];
1: - bool using_tx_dma;
1: - bool using_rx_dma;
1: - struct pl011_dmarx_data dmarx;
1: - struct pl011_dmatx_data dmatx;
1: - bool dma_probed;
1: + struct uart_port port;
1: + const u16 *reg_offset;
1: + struct clk *clk;
1: + const struct vendor_data *vendor;
1: + unsigned int dmacr;
1: + unsigned int im;
1: + unsigned int old_status;
1: + unsigned int fifosize;
1: + unsigned int old_cr;
1: + unsigned int fixed_baud;
1: + char type[12];
1: + bool using_tx_dma;
1: + bool using_rx_dma;
1: + struct pl011_dmarx_data dmarx;
1: + struct pl011_dmatx_data dmatx;
1: + bool dma_probed;
1: };
1:
1: struct s3c2410_uartcfg {
1: - unsigned char hwport;
1: - unsigned char unused;
1: - short unsigned int flags;
1: - upf_t uart_flags;
1: - unsigned int clk_sel;
1: - unsigned int has_fracval;
1: - long unsigned int ucon;
1: - long unsigned int ulcon;
1: - long unsigned int ufcon;
1: + unsigned char hwport;
1: + unsigned char unused;
1: + short unsigned int flags;
1: + upf_t uart_flags;
1: + unsigned int clk_sel;
1: + unsigned int has_fracval;
1: + long unsigned int ucon;
1: + long unsigned int ulcon;
1: + long unsigned int ufcon;
1: };
1:
1: struct s3c24xx_uart_info {
1: - char *name;
1: - unsigned int type;
1: - unsigned int fifosize;
1: - long unsigned int rx_fifomask;
1: - long unsigned int rx_fifoshift;
1: - long unsigned int rx_fifofull;
1: - long unsigned int tx_fifomask;
1: - long unsigned int tx_fifoshift;
1: - long unsigned int tx_fifofull;
1: - unsigned int def_clk_sel;
1: - long unsigned int num_clks;
1: - long unsigned int clksel_mask;
1: - long unsigned int clksel_shift;
1: - unsigned int has_divslot: 1;
1: + char *name;
1: + unsigned int type;
1: + unsigned int fifosize;
1: + long unsigned int rx_fifomask;
1: + long unsigned int rx_fifoshift;
1: + long unsigned int rx_fifofull;
1: + long unsigned int tx_fifomask;
1: + long unsigned int tx_fifoshift;
1: + long unsigned int tx_fifofull;
1: + unsigned int def_clk_sel;
1: + long unsigned int num_clks;
1: + long unsigned int clksel_mask;
1: + long unsigned int clksel_shift;
1: + unsigned int has_divslot : 1;
1: };
1:
1: struct s3c24xx_serial_drv_data {
1: - struct s3c24xx_uart_info *info;
1: - struct s3c2410_uartcfg *def_cfg;
1: - unsigned int fifosize[4];
1: + struct s3c24xx_uart_info *info;
1: + struct s3c2410_uartcfg *def_cfg;
1: + unsigned int fifosize[4];
1: };
1:
1: struct s3c24xx_uart_dma {
1: - unsigned int rx_chan_id;
1: - unsigned int tx_chan_id;
1: - struct dma_slave_config rx_conf;
1: - struct dma_slave_config tx_conf;
1: - struct dma_chan *rx_chan;
1: - struct dma_chan *tx_chan;
1: - dma_addr_t rx_addr;
1: - dma_addr_t tx_addr;
1: - dma_cookie_t rx_cookie;
1: - dma_cookie_t tx_cookie;
1: - char *rx_buf;
1: - dma_addr_t tx_transfer_addr;
1: - size_t rx_size;
1: - size_t tx_size;
1: - struct dma_async_tx_descriptor *tx_desc;
1: - struct dma_async_tx_descriptor *rx_desc;
1: - int tx_bytes_requested;
1: - int rx_bytes_requested;
1: + unsigned int rx_chan_id;
1: + unsigned int tx_chan_id;
1: + struct dma_slave_config rx_conf;
1: + struct dma_slave_config tx_conf;
1: + struct dma_chan *rx_chan;
1: + struct dma_chan *tx_chan;
1: + dma_addr_t rx_addr;
1: + dma_addr_t tx_addr;
1: + dma_cookie_t rx_cookie;
1: + dma_cookie_t tx_cookie;
1: + char *rx_buf;
1: + dma_addr_t tx_transfer_addr;
1: + size_t rx_size;
1: + size_t tx_size;
1: + struct dma_async_tx_descriptor *tx_desc;
1: + struct dma_async_tx_descriptor *rx_desc;
1: + int tx_bytes_requested;
1: + int rx_bytes_requested;
1: };
1:
1: struct s3c24xx_uart_port {
1: - unsigned char rx_claimed;
1: - unsigned char tx_claimed;
1: - unsigned char rx_enabled;
1: - unsigned char tx_enabled;
1: - unsigned int pm_level;
1: - long unsigned int baudclk_rate;
1: - unsigned int min_dma_size;
1: - unsigned int rx_irq;
1: - unsigned int tx_irq;
1: - unsigned int tx_in_progress;
1: - unsigned int tx_mode;
1: - unsigned int rx_mode;
1: - struct s3c24xx_uart_info *info;
1: - struct clk *clk;
1: - struct clk *baudclk;
1: - struct uart_port port;
1: - struct s3c24xx_serial_drv_data *drv_data;
1: - struct s3c2410_uartcfg *cfg;
1: - struct s3c24xx_uart_dma *dma;
1: + unsigned char rx_claimed;
1: + unsigned char tx_claimed;
1: + unsigned char rx_enabled;
1: + unsigned char tx_enabled;
1: + unsigned int pm_level;
1: + long unsigned int baudclk_rate;
1: + unsigned int min_dma_size;
1: + unsigned int rx_irq;
1: + unsigned int tx_irq;
1: + unsigned int tx_in_progress;
1: + unsigned int tx_mode;
1: + unsigned int rx_mode;
1: + struct s3c24xx_uart_info *info;
1: + struct clk *clk;
1: + struct clk *baudclk;
1: + struct uart_port port;
1: + struct s3c24xx_serial_drv_data *drv_data;
1: + struct s3c2410_uartcfg *cfg;
1: + struct s3c24xx_uart_dma *dma;
1: };
1:
1: struct samsung_early_console_data {
1: - u32 txfull_mask;
1: + u32 txfull_mask;
1: };
1:
1: enum {
1: - UARTDM_1P1 = 1,
1: - UARTDM_1P2 = 2,
1: - UARTDM_1P3 = 3,
1: - UARTDM_1P4 = 4,
1: + UARTDM_1P1 = 1,
1: + UARTDM_1P2 = 2,
1: + UARTDM_1P3 = 3,
1: + UARTDM_1P4 = 4,
1: };
1:
1: struct msm_dma {
1: - struct dma_chan *chan;
1: - enum dma_data_direction dir;
1: - dma_addr_t phys;
1: - unsigned char *virt;
1: - dma_cookie_t cookie;
1: - u32 enable_bit;
1: - unsigned int count;
1: - struct dma_async_tx_descriptor *desc;
1: + struct dma_chan *chan;
1: + enum dma_data_direction dir;
1: + dma_addr_t phys;
1: + unsigned char *virt;
1: + dma_cookie_t cookie;
1: + u32 enable_bit;
1: + unsigned int count;
1: + struct dma_async_tx_descriptor *desc;
1: };
1:
1: struct msm_port {
1: - struct uart_port uart;
1: - char name[16];
1: - struct clk *clk;
1: - struct clk *pclk;
1: - unsigned int imr;
1: - int is_uartdm;
1: - unsigned int old_snap_state;
1: - bool break_detected;
1: - struct msm_dma tx_dma;
1: - struct msm_dma rx_dma;
1: + struct uart_port uart;
1: + char name[16];
1: + struct clk *clk;
1: + struct clk *pclk;
1: + unsigned int imr;
1: + int is_uartdm;
1: + unsigned int old_snap_state;
1: + bool break_detected;
1: + struct msm_dma tx_dma;
1: + struct msm_dma rx_dma;
1: };
1:
1: struct msm_baud_map {
1: - u16 divisor;
1: - u8 code;
1: - u8 rxstale;
1: + u16 divisor;
1: + u8 code;
1: + u8 rxstale;
1: };
1:
1: struct cdns_uart {
1: - struct uart_port *port;
1: - struct clk *uartclk;
1: - struct clk *pclk;
1: - struct uart_driver *cdns_uart_driver;
1: - unsigned int baud;
1: - struct notifier_block clk_rate_change_nb;
1: - u32 quirks;
1: - bool cts_override;
1: + struct uart_port *port;
1: + struct clk *uartclk;
1: + struct clk *pclk;
1: + struct uart_driver *cdns_uart_driver;
1: + unsigned int baud;
1: + struct notifier_block clk_rate_change_nb;
1: + u32 quirks;
1: + bool cts_override;
1: };
1:
1: struct cdns_platform_data {
1: - u32 quirks;
1: + u32 quirks;
1: };
1:
1: enum {
1: - UART_IRQ_SUM = 0,
1: - UART_RX_IRQ = 0,
1: - UART_TX_IRQ = 1,
1: - UART_IRQ_COUNT = 2,
1: + UART_IRQ_SUM = 0,
1: + UART_RX_IRQ = 0,
1: + UART_TX_IRQ = 1,
1: + UART_IRQ_COUNT = 2,
1: };
1:
1: struct uart_regs_layout {
1: - unsigned int rbr;
1: - unsigned int tsh;
1: - unsigned int ctrl;
1: - unsigned int intr;
1: + unsigned int rbr;
1: + unsigned int tsh;
1: + unsigned int ctrl;
1: + unsigned int intr;
1: };
1:
1: struct uart_flags {
1: - unsigned int ctrl_tx_rdy_int;
1: - unsigned int ctrl_rx_rdy_int;
1: - unsigned int stat_tx_rdy;
1: - unsigned int stat_rx_rdy;
1: + unsigned int ctrl_tx_rdy_int;
1: + unsigned int ctrl_rx_rdy_int;
1: + unsigned int stat_tx_rdy;
1: + unsigned int stat_rx_rdy;
1: };
1:
1: struct mvebu_uart_driver_data {
1: - bool is_ext;
1: - struct uart_regs_layout regs;
1: - struct uart_flags flags;
1: + bool is_ext;
1: + struct uart_regs_layout regs;
1: + struct uart_flags flags;
1: };
1:
1: struct mvebu_uart_pm_regs {
1: - unsigned int rbr;
1: - unsigned int tsh;
1: - unsigned int ctrl;
1: - unsigned int intr;
1: - unsigned int stat;
1: - unsigned int brdv;
1: - unsigned int osamp;
1: + unsigned int rbr;
1: + unsigned int tsh;
1: + unsigned int ctrl;
1: + unsigned int intr;
1: + unsigned int stat;
1: + unsigned int brdv;
1: + unsigned int osamp;
1: };
1:
1: struct mvebu_uart {
1: - struct uart_port *port;
1: - struct clk *clk;
1: - int irq[2];
1: - unsigned char *nb;
1: - struct mvebu_uart_driver_data *data;
1: - struct mvebu_uart_pm_regs pm_regs;
1: + struct uart_port *port;
1: + struct clk *clk;
1: + int irq[2];
1: + unsigned char *nb;
1: + struct mvebu_uart_driver_data *data;
1: + struct mvebu_uart_pm_regs pm_regs;
1: };
1:
1: enum mctrl_gpio_idx {
1: - UART_GPIO_CTS = 0,
1: - UART_GPIO_DSR = 1,
1: - UART_GPIO_DCD = 2,
1: - UART_GPIO_RNG = 3,
1: - UART_GPIO_RI = 3,
1: - UART_GPIO_RTS = 4,
1: - UART_GPIO_DTR = 5,
1: - UART_GPIO_MAX = 6,
1: + UART_GPIO_CTS = 0,
1: + UART_GPIO_DSR = 1,
1: + UART_GPIO_DCD = 2,
1: + UART_GPIO_RNG = 3,
1: + UART_GPIO_RI = 3,
1: + UART_GPIO_RTS = 4,
1: + UART_GPIO_DTR = 5,
1: + UART_GPIO_MAX = 6,
1: };
1:
1: struct mctrl_gpios___2 {
1: - struct uart_port *port;
1: - struct gpio_desc *gpio[6];
1: - int irq[6];
1: - unsigned int mctrl_prev;
1: - bool mctrl_on;
1: + struct uart_port *port;
1: + struct gpio_desc *gpio[6];
1: + int irq[6];
1: + unsigned int mctrl_prev;
1: + bool mctrl_on;
1: };
1:
1: struct serdev_device;
1:
1: struct serdev_device_ops {
1: - int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
1: - void (*write_wakeup)(struct serdev_device *);
1: + int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
1: + void (*write_wakeup)(struct serdev_device *);
1: };
1:
1: struct serdev_controller;
1:
1: struct serdev_device {
1: - struct device dev;
1: - int nr;
1: - struct serdev_controller *ctrl;
1: - const struct serdev_device_ops *ops;
1: - struct completion write_comp;
1: - struct mutex write_lock;
1: + struct device dev;
1: + int nr;
1: + struct serdev_controller *ctrl;
1: + const struct serdev_device_ops *ops;
1: + struct completion write_comp;
1: + struct mutex write_lock;
1: };
1:
1: struct serdev_controller_ops;
1:
1: struct serdev_controller {
1: - struct device dev;
1: - unsigned int nr;
1: - struct serdev_device *serdev;
1: - const struct serdev_controller_ops *ops;
1: + struct device dev;
1: + unsigned int nr;
1: + struct serdev_device *serdev;
1: + const struct serdev_controller_ops *ops;
1: };
1:
1: struct serdev_device_driver {
1: - struct device_driver driver;
1: - int (*probe)(struct serdev_device *);
1: - void (*remove)(struct serdev_device *);
1: + struct device_driver driver;
1: + int (*probe)(struct serdev_device *);
1: + void (*remove)(struct serdev_device *);
1: };
1:
1: enum serdev_parity {
1: - SERDEV_PARITY_NONE = 0,
1: - SERDEV_PARITY_EVEN = 1,
1: - SERDEV_PARITY_ODD = 2,
1: + SERDEV_PARITY_NONE = 0,
1: + SERDEV_PARITY_EVEN = 1,
1: + SERDEV_PARITY_ODD = 2,
1: };
1:
1: struct serdev_controller_ops {
1: - int (*write_buf)(struct serdev_controller *, const unsigned char *, size_t);
1: - void (*write_flush)(struct serdev_controller *);
1: - int (*write_room)(struct serdev_controller *);
1: - int (*open)(struct serdev_controller *);
1: - void (*close)(struct serdev_controller *);
1: - void (*set_flow_control)(struct serdev_controller *, bool);
1: - int (*set_parity)(struct serdev_controller *, enum serdev_parity);
1: - unsigned int (*set_baudrate)(struct serdev_controller *, unsigned int);
1: - void (*wait_until_sent)(struct serdev_controller *, long int);
1: - int (*get_tiocm)(struct serdev_controller *);
1: - int (*set_tiocm)(struct serdev_controller *, unsigned int, unsigned int);
1: + int (*write_buf)(struct serdev_controller *, const unsigned char *, size_t);
1: + void (*write_flush)(struct serdev_controller *);
1: + int (*write_room)(struct serdev_controller *);
1: + int (*open)(struct serdev_controller *);
1: + void (*close)(struct serdev_controller *);
1: + void (*set_flow_control)(struct serdev_controller *, bool);
1: + int (*set_parity)(struct serdev_controller *, enum serdev_parity);
1: + unsigned int (*set_baudrate)(struct serdev_controller *, unsigned int);
1: + void (*wait_until_sent)(struct serdev_controller *, long int);
1: + int (*get_tiocm)(struct serdev_controller *);
1: + int (*set_tiocm)(struct serdev_controller *, unsigned int, unsigned int);
1: };
1:
1: struct acpi_serdev_lookup {
1: - acpi_handle device_handle;
1: - acpi_handle controller_handle;
1: - int n;
1: - int index;
1: + acpi_handle device_handle;
1: + acpi_handle controller_handle;
1: + int n;
1: + int index;
1: };
1:
1: struct serport {
1: - struct tty_port *port;
1: - struct tty_struct *tty;
1: - struct tty_driver *tty_drv;
1: - int tty_idx;
1: - long unsigned int flags;
1: + struct tty_port *port;
1: + struct tty_struct *tty;
1: + struct tty_driver *tty_drv;
1: + int tty_idx;
1: + long unsigned int flags;
1: };
1:
1: struct memdev {
1: - const char *name;
1: - umode_t mode;
1: - const struct file_operations *fops;
1: - fmode_t fmode;
1: + const char *name;
1: + umode_t mode;
1: + const struct file_operations *fops;
1: + fmode_t fmode;
1: };
1:
1: struct timer_rand_state {
1: - cycles_t last_time;
1: - long int last_delta;
1: - long int last_delta2;
1: + cycles_t last_time;
1: + long int last_delta;
1: + long int last_delta2;
1: };
1:
1: struct trace_event_raw_add_device_randomness {
1: - struct trace_entry ent;
1: - int bytes;
1: - long unsigned int IP;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int bytes;
1: + long unsigned int IP;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_random__mix_pool_bytes {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int bytes;
1: - long unsigned int IP;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int bytes;
1: + long unsigned int IP;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_credit_entropy_bits {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int bits;
1: - int entropy_count;
1: - long unsigned int IP;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int bits;
1: + int entropy_count;
1: + long unsigned int IP;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_push_to_pool {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int pool_bits;
1: - int input_bits;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int pool_bits;
1: + int input_bits;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_debit_entropy {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int debit_bits;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int debit_bits;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_add_input_randomness {
1: - struct trace_entry ent;
1: - int input_bits;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int input_bits;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_add_disk_randomness {
1: - struct trace_entry ent;
1: - dev_t dev;
1: - int input_bits;
1: - char __data[0];
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int input_bits;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_xfer_secondary_pool {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int xfer_bits;
1: - int request_bits;
1: - int pool_entropy;
1: - int input_entropy;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int xfer_bits;
1: + int request_bits;
1: + int pool_entropy;
1: + int input_entropy;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_random__get_random_bytes {
1: - struct trace_entry ent;
1: - int nbytes;
1: - long unsigned int IP;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int nbytes;
1: + long unsigned int IP;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_random__extract_entropy {
1: - struct trace_entry ent;
1: - const char *pool_name;
1: - int nbytes;
1: - int entropy_count;
1: - long unsigned int IP;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const char *pool_name;
1: + int nbytes;
1: + int entropy_count;
1: + long unsigned int IP;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_random_read {
1: - struct trace_entry ent;
1: - int got_bits;
1: - int need_bits;
1: - int pool_left;
1: - int input_left;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int got_bits;
1: + int need_bits;
1: + int pool_left;
1: + int input_left;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_urandom_read {
1: - struct trace_entry ent;
1: - int got_bits;
1: - int pool_left;
1: - int input_left;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int got_bits;
1: + int pool_left;
1: + int input_left;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_prandom_u32 {
1: - struct trace_entry ent;
1: - unsigned int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_add_device_randomness {};
1: @@ -80100,11 +81131,14 @@ struct trace_event_data_offsets_prandom_u32 {};
1:
1: typedef void (*btf_trace_add_device_randomness)(void *, int, long unsigned int);
1:
1: -typedef void (*btf_trace_mix_pool_bytes)(void *, const char *, int, long unsigned int);
1: +typedef void (*btf_trace_mix_pool_bytes)(void *, const char *, int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_mix_pool_bytes_nolock)(void *, const char *, int, long unsigned int);
1: +typedef void (*btf_trace_mix_pool_bytes_nolock)(void *, const char *, int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_credit_entropy_bits)(void *, const char *, int, int, long unsigned int);
1: +typedef void (*btf_trace_credit_entropy_bits)(void *, const char *, int, int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_push_to_pool)(void *, const char *, int, int);
1:
1: @@ -80114,15 +81148,18 @@ typedef void (*btf_trace_add_input_randomness)(void *, int);
1:
1: typedef void (*btf_trace_add_disk_randomness)(void *, dev_t, int);
1:
1: -typedef void (*btf_trace_xfer_secondary_pool)(void *, const char *, int, int, int, int);
1: +typedef void (*btf_trace_xfer_secondary_pool)(void *, const char *, int, int,
1: + int, int);
1:
1: typedef void (*btf_trace_get_random_bytes)(void *, int, long unsigned int);
1:
1: typedef void (*btf_trace_get_random_bytes_arch)(void *, int, long unsigned int);
1:
1: -typedef void (*btf_trace_extract_entropy)(void *, const char *, int, int, long unsigned int);
1: +typedef void (*btf_trace_extract_entropy)(void *, const char *, int, int,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_extract_entropy_user)(void *, const char *, int, int, long unsigned int);
1: +typedef void (*btf_trace_extract_entropy_user)(void *, const char *, int, int,
1: + long unsigned int);
1:
1: typedef void (*btf_trace_random_read)(void *, int, int, int, int);
1:
1: @@ -80131,787 +81168,790 @@ typedef void (*btf_trace_urandom_read)(void *, int, int, int);
1: typedef void (*btf_trace_prandom_u32)(void *, unsigned int);
1:
1: struct poolinfo {
1: - int poolbitshift;
1: - int poolwords;
1: - int poolbytes;
1: - int poolfracbits;
1: - int tap1;
1: - int tap2;
1: - int tap3;
1: - int tap4;
1: - int tap5;
1: + int poolbitshift;
1: + int poolwords;
1: + int poolbytes;
1: + int poolfracbits;
1: + int tap1;
1: + int tap2;
1: + int tap3;
1: + int tap4;
1: + int tap5;
1: };
1:
1: struct crng_state {
1: - __u32 state[16];
1: - long unsigned int init_time;
1: - spinlock_t lock;
1: + __u32 state[16];
1: + long unsigned int init_time;
1: + spinlock_t lock;
1: };
1:
1: struct entropy_store {
1: - const struct poolinfo *poolinfo;
1: - __u32 *pool;
1: - const char *name;
1: - spinlock_t lock;
1: - short unsigned int add_ptr;
1: - short unsigned int input_rotate;
1: - int entropy_count;
1: - unsigned int initialized: 1;
1: - unsigned int last_data_init: 1;
1: - __u8 last_data[10];
1: + const struct poolinfo *poolinfo;
1: + __u32 *pool;
1: + const char *name;
1: + spinlock_t lock;
1: + short unsigned int add_ptr;
1: + short unsigned int input_rotate;
1: + int entropy_count;
1: + unsigned int initialized : 1;
1: + unsigned int last_data_init : 1;
1: + __u8 last_data[10];
1: };
1:
1: struct fast_pool {
1: - __u32 pool[4];
1: - long unsigned int last;
1: - short unsigned int reg_idx;
1: - unsigned char count;
1: + __u32 pool[4];
1: + long unsigned int last;
1: + short unsigned int reg_idx;
1: + unsigned char count;
1: };
1:
1: struct batched_entropy {
1: - union {
1: - u64 entropy_u64[8];
1: - u32 entropy_u32[16];
1: - };
1: - unsigned int position;
1: - spinlock_t batch_lock;
1: + union {
1: + u64 entropy_u64[8];
1: + u32 entropy_u32[16];
1: + };
1: + unsigned int position;
1: + spinlock_t batch_lock;
1: };
1:
1: struct ttyprintk_port {
1: - struct tty_port port;
1: - spinlock_t spinlock;
1: + struct tty_port port;
1: + spinlock_t spinlock;
1: };
1:
1: enum tpm2_startup_types {
1: - TPM2_SU_CLEAR = 0,
1: - TPM2_SU_STATE = 1,
1: + TPM2_SU_CLEAR = 0,
1: + TPM2_SU_STATE = 1,
1: };
1:
1: enum tpm_chip_flags {
1: - TPM_CHIP_FLAG_TPM2 = 2,
1: - TPM_CHIP_FLAG_IRQ = 4,
1: - TPM_CHIP_FLAG_VIRTUAL = 8,
1: - TPM_CHIP_FLAG_HAVE_TIMEOUTS = 16,
1: - TPM_CHIP_FLAG_ALWAYS_POWERED = 32,
1: - TPM_CHIP_FLAG_FIRMWARE_POWER_MANAGED = 64,
1: + TPM_CHIP_FLAG_TPM2 = 2,
1: + TPM_CHIP_FLAG_IRQ = 4,
1: + TPM_CHIP_FLAG_VIRTUAL = 8,
1: + TPM_CHIP_FLAG_HAVE_TIMEOUTS = 16,
1: + TPM_CHIP_FLAG_ALWAYS_POWERED = 32,
1: + TPM_CHIP_FLAG_FIRMWARE_POWER_MANAGED = 64,
1: };
1:
1: enum tpm2_structures {
1: - TPM2_ST_NO_SESSIONS = 32769,
1: - TPM2_ST_SESSIONS = 32770,
1: + TPM2_ST_NO_SESSIONS = 32769,
1: + TPM2_ST_SESSIONS = 32770,
1: };
1:
1: enum tpm2_return_codes {
1: - TPM2_RC_SUCCESS = 0,
1: - TPM2_RC_HASH = 131,
1: - TPM2_RC_HANDLE = 139,
1: - TPM2_RC_INITIALIZE = 256,
1: - TPM2_RC_FAILURE = 257,
1: - TPM2_RC_DISABLED = 288,
1: - TPM2_RC_COMMAND_CODE = 323,
1: - TPM2_RC_TESTING = 2314,
1: - TPM2_RC_REFERENCE_H0 = 2320,
1: - TPM2_RC_RETRY = 2338,
1: + TPM2_RC_SUCCESS = 0,
1: + TPM2_RC_HASH = 131,
1: + TPM2_RC_HANDLE = 139,
1: + TPM2_RC_INITIALIZE = 256,
1: + TPM2_RC_FAILURE = 257,
1: + TPM2_RC_DISABLED = 288,
1: + TPM2_RC_COMMAND_CODE = 323,
1: + TPM2_RC_TESTING = 2314,
1: + TPM2_RC_REFERENCE_H0 = 2320,
1: + TPM2_RC_RETRY = 2338,
1: };
1:
1: struct tpm_header {
1: - __be16 tag;
1: - __be32 length;
1: - union {
1: - __be32 ordinal;
1: - __be32 return_code;
1: - };
1: + __be16 tag;
1: + __be32 length;
1: + union {
1: + __be32 ordinal;
1: + __be32 return_code;
1: + };
1: } __attribute__((packed));
1:
1: struct file_priv {
1: - struct tpm_chip *chip;
1: - struct tpm_space *space;
1: - struct mutex buffer_mutex;
1: - struct timer_list user_read_timer;
1: - struct work_struct timeout_work;
1: - struct work_struct async_work;
1: - wait_queue_head_t async_wait;
1: - ssize_t response_length;
1: - bool response_read;
1: - bool command_enqueued;
1: - u8 data_buffer[4096];
1: + struct tpm_chip *chip;
1: + struct tpm_space *space;
1: + struct mutex buffer_mutex;
1: + struct timer_list user_read_timer;
1: + struct work_struct timeout_work;
1: + struct work_struct async_work;
1: + wait_queue_head_t async_wait;
1: + ssize_t response_length;
1: + bool response_read;
1: + bool command_enqueued;
1: + u8 data_buffer[4096];
1: };
1:
1: enum TPM_OPS_FLAGS {
1: - TPM_OPS_AUTO_STARTUP = 1,
1: + TPM_OPS_AUTO_STARTUP = 1,
1: };
1:
1: enum tpm2_timeouts {
1: - TPM2_TIMEOUT_A = 750,
1: - TPM2_TIMEOUT_B = 2000,
1: - TPM2_TIMEOUT_C = 200,
1: - TPM2_TIMEOUT_D = 30,
1: - TPM2_DURATION_SHORT = 20,
1: - TPM2_DURATION_MEDIUM = 750,
1: - TPM2_DURATION_LONG = 2000,
1: - TPM2_DURATION_LONG_LONG = 300000,
1: - TPM2_DURATION_DEFAULT = 120000,
1: + TPM2_TIMEOUT_A = 750,
1: + TPM2_TIMEOUT_B = 2000,
1: + TPM2_TIMEOUT_C = 200,
1: + TPM2_TIMEOUT_D = 30,
1: + TPM2_DURATION_SHORT = 20,
1: + TPM2_DURATION_MEDIUM = 750,
1: + TPM2_DURATION_LONG = 2000,
1: + TPM2_DURATION_LONG_LONG = 300000,
1: + TPM2_DURATION_DEFAULT = 120000,
1: };
1:
1: enum tpm2_command_codes {
1: - TPM2_CC_FIRST = 287,
1: - TPM2_CC_HIERARCHY_CONTROL = 289,
1: - TPM2_CC_HIERARCHY_CHANGE_AUTH = 297,
1: - TPM2_CC_CREATE_PRIMARY = 305,
1: - TPM2_CC_SEQUENCE_COMPLETE = 318,
1: - TPM2_CC_SELF_TEST = 323,
1: - TPM2_CC_STARTUP = 324,
1: - TPM2_CC_SHUTDOWN = 325,
1: - TPM2_CC_NV_READ = 334,
1: - TPM2_CC_CREATE = 339,
1: - TPM2_CC_LOAD = 343,
1: - TPM2_CC_SEQUENCE_UPDATE = 348,
1: - TPM2_CC_UNSEAL = 350,
1: - TPM2_CC_CONTEXT_LOAD = 353,
1: - TPM2_CC_CONTEXT_SAVE = 354,
1: - TPM2_CC_FLUSH_CONTEXT = 357,
1: - TPM2_CC_VERIFY_SIGNATURE = 375,
1: - TPM2_CC_GET_CAPABILITY = 378,
1: - TPM2_CC_GET_RANDOM = 379,
1: - TPM2_CC_PCR_READ = 382,
1: - TPM2_CC_PCR_EXTEND = 386,
1: - TPM2_CC_EVENT_SEQUENCE_COMPLETE = 389,
1: - TPM2_CC_HASH_SEQUENCE_START = 390,
1: - TPM2_CC_CREATE_LOADED = 401,
1: - TPM2_CC_LAST = 403,
1: + TPM2_CC_FIRST = 287,
1: + TPM2_CC_HIERARCHY_CONTROL = 289,
1: + TPM2_CC_HIERARCHY_CHANGE_AUTH = 297,
1: + TPM2_CC_CREATE_PRIMARY = 305,
1: + TPM2_CC_SEQUENCE_COMPLETE = 318,
1: + TPM2_CC_SELF_TEST = 323,
1: + TPM2_CC_STARTUP = 324,
1: + TPM2_CC_SHUTDOWN = 325,
1: + TPM2_CC_NV_READ = 334,
1: + TPM2_CC_CREATE = 339,
1: + TPM2_CC_LOAD = 343,
1: + TPM2_CC_SEQUENCE_UPDATE = 348,
1: + TPM2_CC_UNSEAL = 350,
1: + TPM2_CC_CONTEXT_LOAD = 353,
1: + TPM2_CC_CONTEXT_SAVE = 354,
1: + TPM2_CC_FLUSH_CONTEXT = 357,
1: + TPM2_CC_VERIFY_SIGNATURE = 375,
1: + TPM2_CC_GET_CAPABILITY = 378,
1: + TPM2_CC_GET_RANDOM = 379,
1: + TPM2_CC_PCR_READ = 382,
1: + TPM2_CC_PCR_EXTEND = 386,
1: + TPM2_CC_EVENT_SEQUENCE_COMPLETE = 389,
1: + TPM2_CC_HASH_SEQUENCE_START = 390,
1: + TPM2_CC_CREATE_LOADED = 401,
1: + TPM2_CC_LAST = 403,
1: };
1:
1: struct tpm_buf {
1: - unsigned int flags;
1: - u8 *data;
1: + unsigned int flags;
1: + u8 *data;
1: };
1:
1: enum tpm_timeout {
1: - TPM_TIMEOUT = 5,
1: - TPM_TIMEOUT_RETRY = 100,
1: - TPM_TIMEOUT_RANGE_US = 300,
1: - TPM_TIMEOUT_POLL = 1,
1: - TPM_TIMEOUT_USECS_MIN = 100,
1: - TPM_TIMEOUT_USECS_MAX = 500,
1: + TPM_TIMEOUT = 5,
1: + TPM_TIMEOUT_RETRY = 100,
1: + TPM_TIMEOUT_RANGE_US = 300,
1: + TPM_TIMEOUT_POLL = 1,
1: + TPM_TIMEOUT_USECS_MIN = 100,
1: + TPM_TIMEOUT_USECS_MAX = 500,
1: };
1:
1: enum tpm_buf_flags {
1: - TPM_BUF_OVERFLOW = 1,
1: + TPM_BUF_OVERFLOW = 1,
1: };
1:
1: struct stclear_flags_t {
1: - __be16 tag;
1: - u8 deactivated;
1: - u8 disableForceClear;
1: - u8 physicalPresence;
1: - u8 physicalPresenceLock;
1: - u8 bGlobalLock;
1: + __be16 tag;
1: + u8 deactivated;
1: + u8 disableForceClear;
1: + u8 physicalPresence;
1: + u8 physicalPresenceLock;
1: + u8 bGlobalLock;
1: } __attribute__((packed));
1:
1: struct tpm1_version {
1: - u8 major;
1: - u8 minor;
1: - u8 rev_major;
1: - u8 rev_minor;
1: + u8 major;
1: + u8 minor;
1: + u8 rev_major;
1: + u8 rev_minor;
1: };
1:
1: struct tpm1_version2 {
1: - __be16 tag;
1: - struct tpm1_version version;
1: + __be16 tag;
1: + struct tpm1_version version;
1: };
1:
1: struct timeout_t {
1: - __be32 a;
1: - __be32 b;
1: - __be32 c;
1: - __be32 d;
1: + __be32 a;
1: + __be32 b;
1: + __be32 c;
1: + __be32 d;
1: };
1:
1: struct duration_t {
1: - __be32 tpm_short;
1: - __be32 tpm_medium;
1: - __be32 tpm_long;
1: + __be32 tpm_short;
1: + __be32 tpm_medium;
1: + __be32 tpm_long;
1: };
1:
1: struct permanent_flags_t {
1: - __be16 tag;
1: - u8 disable;
1: - u8 ownership;
1: - u8 deactivated;
1: - u8 readPubek;
1: - u8 disableOwnerClear;
1: - u8 allowMaintenance;
1: - u8 physicalPresenceLifetimeLock;
1: - u8 physicalPresenceHWEnable;
1: - u8 physicalPresenceCMDEnable;
1: - u8 CEKPUsed;
1: - u8 TPMpost;
1: - u8 TPMpostLock;
1: - u8 FIPS;
1: - u8 operator;
1: - u8 enableRevokeEK;
1: - u8 nvLocked;
1: - u8 readSRKPub;
1: - u8 tpmEstablished;
1: - u8 maintenanceDone;
1: - u8 disableFullDALogicInfo;
1: + __be16 tag;
1: + u8 disable;
1: + u8 ownership;
1: + u8 deactivated;
1: + u8 readPubek;
1: + u8 disableOwnerClear;
1: + u8 allowMaintenance;
1: + u8 physicalPresenceLifetimeLock;
1: + u8 physicalPresenceHWEnable;
1: + u8 physicalPresenceCMDEnable;
1: + u8 CEKPUsed;
1: + u8 TPMpost;
1: + u8 TPMpostLock;
1: + u8 FIPS;
1: + u8 operator;
1: + u8 enableRevokeEK;
1: + u8 nvLocked;
1: + u8 readSRKPub;
1: + u8 tpmEstablished;
1: + u8 maintenanceDone;
1: + u8 disableFullDALogicInfo;
1: };
1:
1: typedef union {
1: - struct permanent_flags_t perm_flags;
1: - struct stclear_flags_t stclear_flags;
1: - __u8 owned;
1: - __be32 num_pcrs;
1: - struct tpm1_version version1;
1: - struct tpm1_version2 version2;
1: - __be32 manufacturer_id;
1: - struct timeout_t timeout;
1: - struct duration_t duration;
1: + struct permanent_flags_t perm_flags;
1: + struct stclear_flags_t stclear_flags;
1: + __u8 owned;
1: + __be32 num_pcrs;
1: + struct tpm1_version version1;
1: + struct tpm1_version2 version2;
1: + __be32 manufacturer_id;
1: + struct timeout_t timeout;
1: + struct duration_t duration;
1: } cap_t;
1:
1: enum tpm_capabilities {
1: - TPM_CAP_FLAG = 4,
1: - TPM_CAP_PROP = 5,
1: - TPM_CAP_VERSION_1_1 = 6,
1: - TPM_CAP_VERSION_1_2 = 26,
1: + TPM_CAP_FLAG = 4,
1: + TPM_CAP_PROP = 5,
1: + TPM_CAP_VERSION_1_1 = 6,
1: + TPM_CAP_VERSION_1_2 = 26,
1: };
1:
1: enum tpm_sub_capabilities {
1: - TPM_CAP_PROP_PCR = 257,
1: - TPM_CAP_PROP_MANUFACTURER = 259,
1: - TPM_CAP_FLAG_PERM = 264,
1: - TPM_CAP_FLAG_VOL = 265,
1: - TPM_CAP_PROP_OWNER = 273,
1: - TPM_CAP_PROP_TIS_TIMEOUT = 277,
1: - TPM_CAP_PROP_TIS_DURATION = 288,
1: + TPM_CAP_PROP_PCR = 257,
1: + TPM_CAP_PROP_MANUFACTURER = 259,
1: + TPM_CAP_FLAG_PERM = 264,
1: + TPM_CAP_FLAG_VOL = 265,
1: + TPM_CAP_PROP_OWNER = 273,
1: + TPM_CAP_PROP_TIS_TIMEOUT = 277,
1: + TPM_CAP_PROP_TIS_DURATION = 288,
1: };
1:
1: struct tpm1_get_random_out {
1: - __be32 rng_data_len;
1: - u8 rng_data[128];
1: + __be32 rng_data_len;
1: + u8 rng_data[128];
1: };
1:
1: enum tpm2_const {
1: - TPM2_PLATFORM_PCR = 24,
1: - TPM2_PCR_SELECT_MIN = 3,
1: + TPM2_PLATFORM_PCR = 24,
1: + TPM2_PCR_SELECT_MIN = 3,
1: };
1:
1: enum tpm2_permanent_handles {
1: - TPM2_RS_PW = 1073741833,
1: + TPM2_RS_PW = 1073741833,
1: };
1:
1: enum tpm2_capabilities {
1: - TPM2_CAP_HANDLES = 1,
1: - TPM2_CAP_COMMANDS = 2,
1: - TPM2_CAP_PCRS = 5,
1: - TPM2_CAP_TPM_PROPERTIES = 6,
1: + TPM2_CAP_HANDLES = 1,
1: + TPM2_CAP_COMMANDS = 2,
1: + TPM2_CAP_PCRS = 5,
1: + TPM2_CAP_TPM_PROPERTIES = 6,
1: };
1:
1: enum tpm2_properties {
1: - TPM_PT_TOTAL_COMMANDS = 297,
1: + TPM_PT_TOTAL_COMMANDS = 297,
1: };
1:
1: enum tpm2_cc_attrs {
1: - TPM2_CC_ATTR_CHANDLES = 25,
1: - TPM2_CC_ATTR_RHANDLE = 28,
1: + TPM2_CC_ATTR_CHANDLES = 25,
1: + TPM2_CC_ATTR_RHANDLE = 28,
1: };
1:
1: struct tpm2_hash {
1: - unsigned int crypto_id;
1: - unsigned int tpm_id;
1: + unsigned int crypto_id;
1: + unsigned int tpm_id;
1: };
1:
1: struct tpm2_pcr_read_out {
1: - __be32 update_cnt;
1: - __be32 pcr_selects_cnt;
1: - __be16 hash_alg;
1: - u8 pcr_select_size;
1: - u8 pcr_select[3];
1: - __be32 digests_cnt;
1: - __be16 digest_size;
1: - u8 digest[0];
1: + __be32 update_cnt;
1: + __be32 pcr_selects_cnt;
1: + __be16 hash_alg;
1: + u8 pcr_select_size;
1: + u8 pcr_select[3];
1: + __be32 digests_cnt;
1: + __be16 digest_size;
1: + u8 digest[0];
1: } __attribute__((packed));
1:
1: struct tpm2_null_auth_area {
1: - __be32 handle;
1: - __be16 nonce_size;
1: - u8 attributes;
1: - __be16 auth_size;
1: + __be32 handle;
1: + __be16 nonce_size;
1: + u8 attributes;
1: + __be16 auth_size;
1: } __attribute__((packed));
1:
1: struct tpm2_get_random_out {
1: - __be16 size;
1: - u8 buffer[128];
1: + __be16 size;
1: + u8 buffer[128];
1: };
1:
1: struct tpm2_get_cap_out {
1: - u8 more_data;
1: - __be32 subcap_id;
1: - __be32 property_cnt;
1: - __be32 property_id;
1: - __be32 value;
1: + u8 more_data;
1: + __be32 subcap_id;
1: + __be32 property_cnt;
1: + __be32 property_id;
1: + __be32 value;
1: } __attribute__((packed));
1:
1: struct tpm2_pcr_selection {
1: - __be16 hash_alg;
1: - u8 size_of_select;
1: - u8 pcr_select[3];
1: + __be16 hash_alg;
1: + u8 size_of_select;
1: + u8 pcr_select[3];
1: };
1:
1: struct tpmrm_priv {
1: - struct file_priv priv;
1: - struct tpm_space space;
1: + struct file_priv priv;
1: + struct tpm_space space;
1: };
1:
1: enum tpm2_handle_types {
1: - TPM2_HT_HMAC_SESSION = 33554432,
1: - TPM2_HT_POLICY_SESSION = 50331648,
1: - TPM2_HT_TRANSIENT = 2147483648,
1: + TPM2_HT_HMAC_SESSION = 33554432,
1: + TPM2_HT_POLICY_SESSION = 50331648,
1: + TPM2_HT_TRANSIENT = 2147483648,
1: };
1:
1: struct tpm2_context {
1: - __be64 sequence;
1: - __be32 saved_handle;
1: - __be32 hierarchy;
1: - __be16 blob_size;
1: + __be64 sequence;
1: + __be32 saved_handle;
1: + __be32 hierarchy;
1: + __be16 blob_size;
1: } __attribute__((packed));
1:
1: struct tpm2_cap_handles {
1: - u8 more_data;
1: - __be32 capability;
1: - __be32 count;
1: - __be32 handles[0];
1: + u8 more_data;
1: + __be32 capability;
1: + __be32 count;
1: + __be32 handles[0];
1: } __attribute__((packed));
1:
1: struct tpm_readpubek_out {
1: - u8 algorithm[4];
1: - u8 encscheme[2];
1: - u8 sigscheme[2];
1: - __be32 paramsize;
1: - u8 parameters[12];
1: - __be32 keysize;
1: - u8 modulus[256];
1: - u8 checksum[20];
1: + u8 algorithm[4];
1: + u8 encscheme[2];
1: + u8 sigscheme[2];
1: + __be32 paramsize;
1: + u8 parameters[12];
1: + __be32 keysize;
1: + u8 modulus[256];
1: + u8 checksum[20];
1: };
1:
1: struct tcpa_event {
1: - u32 pcr_index;
1: - u32 event_type;
1: - u8 pcr_value[20];
1: - u32 event_size;
1: - u8 event_data[0];
1: + u32 pcr_index;
1: + u32 event_type;
1: + u8 pcr_value[20];
1: + u32 event_size;
1: + u8 event_data[0];
1: };
1:
1: enum tcpa_event_types {
1: - PREBOOT = 0,
1: - POST_CODE = 1,
1: - UNUSED = 2,
1: - NO_ACTION = 3,
1: - SEPARATOR = 4,
1: - ACTION = 5,
1: - EVENT_TAG = 6,
1: - SCRTM_CONTENTS = 7,
1: - SCRTM_VERSION = 8,
1: - CPU_MICROCODE = 9,
1: - PLATFORM_CONFIG_FLAGS = 10,
1: - TABLE_OF_DEVICES = 11,
1: - COMPACT_HASH = 12,
1: - IPL = 13,
1: - IPL_PARTITION_DATA = 14,
1: - NONHOST_CODE = 15,
1: - NONHOST_CONFIG = 16,
1: - NONHOST_INFO = 17,
1: + PREBOOT = 0,
1: + POST_CODE = 1,
1: + UNUSED = 2,
1: + NO_ACTION = 3,
1: + SEPARATOR = 4,
1: + ACTION = 5,
1: + EVENT_TAG = 6,
1: + SCRTM_CONTENTS = 7,
1: + SCRTM_VERSION = 8,
1: + CPU_MICROCODE = 9,
1: + PLATFORM_CONFIG_FLAGS = 10,
1: + TABLE_OF_DEVICES = 11,
1: + COMPACT_HASH = 12,
1: + IPL = 13,
1: + IPL_PARTITION_DATA = 14,
1: + NONHOST_CODE = 15,
1: + NONHOST_CONFIG = 16,
1: + NONHOST_INFO = 17,
1: };
1:
1: struct tcpa_pc_event {
1: - u32 event_id;
1: - u32 event_size;
1: - u8 event_data[0];
1: + u32 event_id;
1: + u32 event_size;
1: + u8 event_data[0];
1: };
1:
1: enum tcpa_pc_event_ids {
1: - SMBIOS = 1,
1: - BIS_CERT = 2,
1: - POST_BIOS_ROM = 3,
1: - ESCD = 4,
1: - CMOS = 5,
1: - NVRAM = 6,
1: - OPTION_ROM_EXEC = 7,
1: - OPTION_ROM_CONFIG = 8,
1: - OPTION_ROM_MICROCODE = 10,
1: - S_CRTM_VERSION = 11,
1: - S_CRTM_CONTENTS = 12,
1: - POST_CONTENTS = 13,
1: - HOST_TABLE_OF_DEVICES = 14,
1: + SMBIOS = 1,
1: + BIS_CERT = 2,
1: + POST_BIOS_ROM = 3,
1: + ESCD = 4,
1: + CMOS = 5,
1: + NVRAM = 6,
1: + OPTION_ROM_EXEC = 7,
1: + OPTION_ROM_CONFIG = 8,
1: + OPTION_ROM_MICROCODE = 10,
1: + S_CRTM_VERSION = 11,
1: + S_CRTM_CONTENTS = 12,
1: + POST_CONTENTS = 13,
1: + HOST_TABLE_OF_DEVICES = 14,
1: };
1:
1: struct tcg_efi_specid_event_algs {
1: - u16 alg_id;
1: - u16 digest_size;
1: + u16 alg_id;
1: + u16 digest_size;
1: };
1:
1: struct tcg_efi_specid_event_head {
1: - u8 signature[16];
1: - u32 platform_class;
1: - u8 spec_version_minor;
1: - u8 spec_version_major;
1: - u8 spec_errata;
1: - u8 uintnsize;
1: - u32 num_algs;
1: - struct tcg_efi_specid_event_algs digest_sizes[0];
1: + u8 signature[16];
1: + u32 platform_class;
1: + u8 spec_version_minor;
1: + u8 spec_version_major;
1: + u8 spec_errata;
1: + u8 uintnsize;
1: + u32 num_algs;
1: + struct tcg_efi_specid_event_algs digest_sizes[0];
1: };
1:
1: struct tcg_pcr_event {
1: - u32 pcr_idx;
1: - u32 event_type;
1: - u8 digest[20];
1: - u32 event_size;
1: - u8 event[0];
1: + u32 pcr_idx;
1: + u32 event_type;
1: + u8 digest[20];
1: + u32 event_size;
1: + u8 event[0];
1: };
1:
1: struct tcg_event_field {
1: - u32 event_size;
1: - u8 event[0];
1: + u32 event_size;
1: + u8 event[0];
1: };
1:
1: struct tcg_pcr_event2_head {
1: - u32 pcr_idx;
1: - u32 event_type;
1: - u32 count;
1: - struct tpm_digest digests[0];
1: + u32 pcr_idx;
1: + u32 event_type;
1: + u32 count;
1: + struct tpm_digest digests[0];
1: };
1:
1: struct acpi_table_tpm2 {
1: - struct acpi_table_header header;
1: - u16 platform_class;
1: - u16 reserved;
1: - u64 control_address;
1: - u32 start_method;
1: + struct acpi_table_header header;
1: + u16 platform_class;
1: + u16 reserved;
1: + u64 control_address;
1: + u32 start_method;
1: } __attribute__((packed));
1:
1: struct acpi_tpm2_phy {
1: - u8 start_method_specific[12];
1: - u32 log_area_minimum_length;
1: - u64 log_area_start_address;
1: + u8 start_method_specific[12];
1: + u32 log_area_minimum_length;
1: + u64 log_area_start_address;
1: };
1:
1: enum bios_platform_class {
1: - BIOS_CLIENT = 0,
1: - BIOS_SERVER = 1,
1: + BIOS_CLIENT = 0,
1: + BIOS_SERVER = 1,
1: };
1:
1: struct client_hdr {
1: - u32 log_max_len;
1: - u64 log_start_addr;
1: + u32 log_max_len;
1: + u64 log_start_addr;
1: } __attribute__((packed));
1:
1: struct server_hdr {
1: - u16 reserved;
1: - u64 log_max_len;
1: - u64 log_start_addr;
1: + u16 reserved;
1: + u64 log_max_len;
1: + u64 log_start_addr;
1: } __attribute__((packed));
1:
1: struct acpi_tcpa {
1: - struct acpi_table_header hdr;
1: - u16 platform_class;
1: - union {
1: - struct client_hdr client;
1: - struct server_hdr server;
1: - };
1: + struct acpi_table_header hdr;
1: + u16 platform_class;
1: + union {
1: + struct client_hdr client;
1: + struct server_hdr server;
1: + };
1: } __attribute__((packed));
1:
1: struct linux_efi_tpm_eventlog {
1: - u32 size;
1: - u32 final_events_preboot_size;
1: - u8 version;
1: - u8 log[0];
1: + u32 size;
1: + u32 final_events_preboot_size;
1: + u8 version;
1: + u8 log[0];
1: };
1:
1: struct efi_tcg2_final_events_table {
1: - u64 version;
1: - u64 nr_events;
1: - u8 events[0];
1: + u64 version;
1: + u64 nr_events;
1: + u8 events[0];
1: };
1:
1: enum tis_access {
1: - TPM_ACCESS_VALID = 128,
1: - TPM_ACCESS_ACTIVE_LOCALITY = 32,
1: - TPM_ACCESS_REQUEST_PENDING = 4,
1: - TPM_ACCESS_REQUEST_USE = 2,
1: + TPM_ACCESS_VALID = 128,
1: + TPM_ACCESS_ACTIVE_LOCALITY = 32,
1: + TPM_ACCESS_REQUEST_PENDING = 4,
1: + TPM_ACCESS_REQUEST_USE = 2,
1: };
1:
1: enum tis_status {
1: - TPM_STS_VALID = 128,
1: - TPM_STS_COMMAND_READY = 64,
1: - TPM_STS_GO = 32,
1: - TPM_STS_DATA_AVAIL = 16,
1: - TPM_STS_DATA_EXPECT = 8,
1: - TPM_STS_READ_ZERO = 35,
1: + TPM_STS_VALID = 128,
1: + TPM_STS_COMMAND_READY = 64,
1: + TPM_STS_GO = 32,
1: + TPM_STS_DATA_AVAIL = 16,
1: + TPM_STS_DATA_EXPECT = 8,
1: + TPM_STS_READ_ZERO = 35,
1: };
1:
1: enum tis_int_flags {
1: - TPM_GLOBAL_INT_ENABLE = 2147483648,
1: - TPM_INTF_BURST_COUNT_STATIC = 256,
1: - TPM_INTF_CMD_READY_INT = 128,
1: - TPM_INTF_INT_EDGE_FALLING = 64,
1: - TPM_INTF_INT_EDGE_RISING = 32,
1: - TPM_INTF_INT_LEVEL_LOW = 16,
1: - TPM_INTF_INT_LEVEL_HIGH = 8,
1: - TPM_INTF_LOCALITY_CHANGE_INT = 4,
1: - TPM_INTF_STS_VALID_INT = 2,
1: - TPM_INTF_DATA_AVAIL_INT = 1,
1: + TPM_GLOBAL_INT_ENABLE = 2147483648,
1: + TPM_INTF_BURST_COUNT_STATIC = 256,
1: + TPM_INTF_CMD_READY_INT = 128,
1: + TPM_INTF_INT_EDGE_FALLING = 64,
1: + TPM_INTF_INT_EDGE_RISING = 32,
1: + TPM_INTF_INT_LEVEL_LOW = 16,
1: + TPM_INTF_INT_LEVEL_HIGH = 8,
1: + TPM_INTF_LOCALITY_CHANGE_INT = 4,
1: + TPM_INTF_STS_VALID_INT = 2,
1: + TPM_INTF_DATA_AVAIL_INT = 1,
1: };
1:
1: enum tis_defaults {
1: - TIS_MEM_LEN = 20480,
1: - TIS_SHORT_TIMEOUT = 750,
1: - TIS_LONG_TIMEOUT = 2000,
1: + TIS_MEM_LEN = 20480,
1: + TIS_SHORT_TIMEOUT = 750,
1: + TIS_LONG_TIMEOUT = 2000,
1: };
1:
1: enum tpm_tis_flags {
1: - TPM_TIS_ITPM_WORKAROUND = 1,
1: + TPM_TIS_ITPM_WORKAROUND = 1,
1: };
1:
1: struct tpm_tis_phy_ops;
1:
1: struct tpm_tis_data {
1: - u16 manufacturer_id;
1: - int locality;
1: - int irq;
1: - bool irq_tested;
1: - unsigned int flags;
1: - void *ilb_base_addr;
1: - u16 clkrun_enabled;
1: - wait_queue_head_t int_queue;
1: - wait_queue_head_t read_queue;
1: - const struct tpm_tis_phy_ops *phy_ops;
1: - short unsigned int rng_quality;
1: + u16 manufacturer_id;
1: + int locality;
1: + int irq;
1: + bool irq_tested;
1: + unsigned int flags;
1: + void *ilb_base_addr;
1: + u16 clkrun_enabled;
1: + wait_queue_head_t int_queue;
1: + wait_queue_head_t read_queue;
1: + const struct tpm_tis_phy_ops *phy_ops;
1: + short unsigned int rng_quality;
1: };
1:
1: struct tpm_tis_phy_ops {
1: - int (*read_bytes)(struct tpm_tis_data *, u32, u16, u8 *);
1: - int (*write_bytes)(struct tpm_tis_data *, u32, u16, const u8 *);
1: - int (*read16)(struct tpm_tis_data *, u32, u16 *);
1: - int (*read32)(struct tpm_tis_data *, u32, u32 *);
1: - int (*write32)(struct tpm_tis_data *, u32, u32);
1: + int (*read_bytes)(struct tpm_tis_data *, u32, u16, u8 *);
1: + int (*write_bytes)(struct tpm_tis_data *, u32, u16, const u8 *);
1: + int (*read16)(struct tpm_tis_data *, u32, u16 *);
1: + int (*read32)(struct tpm_tis_data *, u32, u32 *);
1: + int (*write32)(struct tpm_tis_data *, u32, u32);
1: };
1:
1: struct tis_vendor_durations_override {
1: - u32 did_vid;
1: - struct tpm1_version version;
1: - long unsigned int durations[3];
1: + u32 did_vid;
1: + struct tpm1_version version;
1: + long unsigned int durations[3];
1: };
1:
1: struct tis_vendor_timeout_override {
1: - u32 did_vid;
1: - long unsigned int timeout_us[4];
1: + u32 did_vid;
1: + long unsigned int timeout_us[4];
1: };
1:
1: struct tpm_info {
1: - struct resource res;
1: - int irq;
1: + struct resource res;
1: + int irq;
1: };
1:
1: struct tpm_tis_tcg_phy {
1: - struct tpm_tis_data priv;
1: - void *iobase;
1: + struct tpm_tis_data priv;
1: + void *iobase;
1: };
1:
1: enum crb_defaults {
1: - CRB_ACPI_START_REVISION_ID = 1,
1: - CRB_ACPI_START_INDEX = 1,
1: + CRB_ACPI_START_REVISION_ID = 1,
1: + CRB_ACPI_START_INDEX = 1,
1: };
1:
1: enum crb_loc_ctrl {
1: - CRB_LOC_CTRL_REQUEST_ACCESS = 1,
1: - CRB_LOC_CTRL_RELINQUISH = 2,
1: + CRB_LOC_CTRL_REQUEST_ACCESS = 1,
1: + CRB_LOC_CTRL_RELINQUISH = 2,
1: };
1:
1: enum crb_loc_state {
1: - CRB_LOC_STATE_LOC_ASSIGNED = 2,
1: - CRB_LOC_STATE_TPM_REG_VALID_STS = 128,
1: + CRB_LOC_STATE_LOC_ASSIGNED = 2,
1: + CRB_LOC_STATE_TPM_REG_VALID_STS = 128,
1: };
1:
1: enum crb_ctrl_req {
1: - CRB_CTRL_REQ_CMD_READY = 1,
1: - CRB_CTRL_REQ_GO_IDLE = 2,
1: + CRB_CTRL_REQ_CMD_READY = 1,
1: + CRB_CTRL_REQ_GO_IDLE = 2,
1: };
1:
1: enum crb_ctrl_sts {
1: - CRB_CTRL_STS_ERROR = 1,
1: - CRB_CTRL_STS_TPM_IDLE = 2,
1: + CRB_CTRL_STS_ERROR = 1,
1: + CRB_CTRL_STS_TPM_IDLE = 2,
1: };
1:
1: enum crb_start {
1: - CRB_START_INVOKE = 1,
1: + CRB_START_INVOKE = 1,
1: };
1:
1: enum crb_cancel {
1: - CRB_CANCEL_INVOKE = 1,
1: + CRB_CANCEL_INVOKE = 1,
1: };
1:
1: struct crb_regs_head {
1: - u32 loc_state;
1: - u32 reserved1;
1: - u32 loc_ctrl;
1: - u32 loc_sts;
1: - u8 reserved2[32];
1: - u64 intf_id;
1: - u64 ctrl_ext;
1: + u32 loc_state;
1: + u32 reserved1;
1: + u32 loc_ctrl;
1: + u32 loc_sts;
1: + u8 reserved2[32];
1: + u64 intf_id;
1: + u64 ctrl_ext;
1: };
1:
1: struct crb_regs_tail {
1: - u32 ctrl_req;
1: - u32 ctrl_sts;
1: - u32 ctrl_cancel;
1: - u32 ctrl_start;
1: - u32 ctrl_int_enable;
1: - u32 ctrl_int_sts;
1: - u32 ctrl_cmd_size;
1: - u32 ctrl_cmd_pa_low;
1: - u32 ctrl_cmd_pa_high;
1: - u32 ctrl_rsp_size;
1: - u64 ctrl_rsp_pa;
1: + u32 ctrl_req;
1: + u32 ctrl_sts;
1: + u32 ctrl_cancel;
1: + u32 ctrl_start;
1: + u32 ctrl_int_enable;
1: + u32 ctrl_int_sts;
1: + u32 ctrl_cmd_size;
1: + u32 ctrl_cmd_pa_low;
1: + u32 ctrl_cmd_pa_high;
1: + u32 ctrl_rsp_size;
1: + u64 ctrl_rsp_pa;
1: };
1:
1: enum crb_status {
1: - CRB_DRV_STS_COMPLETE = 1,
1: + CRB_DRV_STS_COMPLETE = 1,
1: };
1:
1: struct crb_priv {
1: - u32 sm;
1: - const char *hid;
1: - struct crb_regs_head *regs_h;
1: - struct crb_regs_tail *regs_t;
1: - u8 *cmd;
1: - u8 *rsp;
1: - u32 cmd_size;
1: - u32 smc_func_id;
1: + u32 sm;
1: + const char *hid;
1: + struct crb_regs_head *regs_h;
1: + struct crb_regs_tail *regs_t;
1: + u8 *cmd;
1: + u8 *rsp;
1: + u32 cmd_size;
1: + u32 smc_func_id;
1: };
1:
1: struct tpm2_crb_smc {
1: - u32 interrupt;
1: - u8 interrupt_flags;
1: - u8 op_flags;
1: - u16 reserved2;
1: - u32 smc_func_id;
1: + u32 interrupt;
1: + u8 interrupt_flags;
1: + u8 op_flags;
1: + u16 reserved2;
1: + u32 smc_func_id;
1: };
1:
1: enum io_pgtable_fmt {
1: - ARM_32_LPAE_S1 = 0,
1: - ARM_32_LPAE_S2 = 1,
1: - ARM_64_LPAE_S1 = 2,
1: - ARM_64_LPAE_S2 = 3,
1: - ARM_V7S = 4,
1: - ARM_MALI_LPAE = 5,
1: - IO_PGTABLE_NUM_FMTS = 6,
1: + ARM_32_LPAE_S1 = 0,
1: + ARM_32_LPAE_S2 = 1,
1: + ARM_64_LPAE_S1 = 2,
1: + ARM_64_LPAE_S2 = 3,
1: + ARM_V7S = 4,
1: + ARM_MALI_LPAE = 5,
1: + IO_PGTABLE_NUM_FMTS = 6,
1: };
1:
1: struct iommu_flush_ops {
1: - void (*tlb_flush_all)(void *);
1: - void (*tlb_flush_walk)(long unsigned int, size_t, size_t, void *);
1: - void (*tlb_flush_leaf)(long unsigned int, size_t, size_t, void *);
1: - void (*tlb_add_page)(struct iommu_iotlb_gather *, long unsigned int, size_t, void *);
1: + void (*tlb_flush_all)(void *);
1: + void (*tlb_flush_walk)(long unsigned int, size_t, size_t, void *);
1: + void (*tlb_flush_leaf)(long unsigned int, size_t, size_t, void *);
1: + void (*tlb_add_page)(struct iommu_iotlb_gather *, long unsigned int, size_t,
1: + void *);
1: };
1:
1: struct io_pgtable_cfg {
1: - long unsigned int quirks;
1: - long unsigned int pgsize_bitmap;
1: - unsigned int ias;
1: - unsigned int oas;
1: - bool coherent_walk;
1: - const struct iommu_flush_ops *tlb;
1: - struct device *iommu_dev;
1: - union {
1: - struct {
1: - u64 ttbr;
1: - struct {
1: - u32 ips: 3;
1: - u32 tg: 2;
1: - u32 sh: 2;
1: - u32 orgn: 2;
1: - u32 irgn: 2;
1: - u32 tsz: 6;
1: - } tcr;
1: - u64 mair;
1: - } arm_lpae_s1_cfg;
1: - struct {
1: - u64 vttbr;
1: - struct {
1: - u32 ps: 3;
1: - u32 tg: 2;
1: - u32 sh: 2;
1: - u32 orgn: 2;
1: - u32 irgn: 2;
1: - u32 sl: 2;
1: - u32 tsz: 6;
1: - } vtcr;
1: - } arm_lpae_s2_cfg;
1: - struct {
1: - u32 ttbr;
1: - u32 tcr;
1: - u32 nmrr;
1: - u32 prrr;
1: - } arm_v7s_cfg;
1: - struct {
1: - u64 transtab;
1: - u64 memattr;
1: - } arm_mali_lpae_cfg;
1: - };
1: + long unsigned int quirks;
1: + long unsigned int pgsize_bitmap;
1: + unsigned int ias;
1: + unsigned int oas;
1: + bool coherent_walk;
1: + const struct iommu_flush_ops *tlb;
1: + struct device *iommu_dev;
1: + union {
1: + struct {
1: + u64 ttbr;
1: + struct {
1: + u32 ips : 3;
1: + u32 tg : 2;
1: + u32 sh : 2;
1: + u32 orgn : 2;
1: + u32 irgn : 2;
1: + u32 tsz : 6;
1: + } tcr;
1: + u64 mair;
1: + } arm_lpae_s1_cfg;
1: + struct {
1: + u64 vttbr;
1: + struct {
1: + u32 ps : 3;
1: + u32 tg : 2;
1: + u32 sh : 2;
1: + u32 orgn : 2;
1: + u32 irgn : 2;
1: + u32 sl : 2;
1: + u32 tsz : 6;
1: + } vtcr;
1: + } arm_lpae_s2_cfg;
1: + struct {
1: + u32 ttbr;
1: + u32 tcr;
1: + u32 nmrr;
1: + u32 prrr;
1: + } arm_v7s_cfg;
1: + struct {
1: + u64 transtab;
1: + u64 memattr;
1: + } arm_mali_lpae_cfg;
1: + };
1: };
1:
1: struct io_pgtable_ops {
1: - int (*map)(struct io_pgtable_ops *, long unsigned int, phys_addr_t, size_t, int, gfp_t);
1: - size_t (*unmap)(struct io_pgtable_ops *, long unsigned int, size_t, struct iommu_iotlb_gather *);
1: - phys_addr_t (*iova_to_phys)(struct io_pgtable_ops *, long unsigned int);
1: + int (*map)(struct io_pgtable_ops *, long unsigned int, phys_addr_t, size_t,
1: + int, gfp_t);
1: + size_t (*unmap)(struct io_pgtable_ops *, long unsigned int, size_t,
1: + struct iommu_iotlb_gather *);
1: + phys_addr_t (*iova_to_phys)(struct io_pgtable_ops *, long unsigned int);
1: };
1:
1: enum arm_smmu_s2cr_privcfg {
1: - S2CR_PRIVCFG_DEFAULT = 0,
1: - S2CR_PRIVCFG_DIPAN = 1,
1: - S2CR_PRIVCFG_UNPRIV = 2,
1: - S2CR_PRIVCFG_PRIV = 3,
1: + S2CR_PRIVCFG_DEFAULT = 0,
1: + S2CR_PRIVCFG_DIPAN = 1,
1: + S2CR_PRIVCFG_UNPRIV = 2,
1: + S2CR_PRIVCFG_PRIV = 3,
1: };
1:
1: enum arm_smmu_s2cr_type {
1: - S2CR_TYPE_TRANS = 0,
1: - S2CR_TYPE_BYPASS = 1,
1: - S2CR_TYPE_FAULT = 2,
1: + S2CR_TYPE_TRANS = 0,
1: + S2CR_TYPE_BYPASS = 1,
1: + S2CR_TYPE_FAULT = 2,
1: };
1:
1: enum arm_smmu_cbar_type {
1: - CBAR_TYPE_S2_TRANS = 0,
1: - CBAR_TYPE_S1_TRANS_S2_BYPASS = 1,
1: - CBAR_TYPE_S1_TRANS_S2_FAULT = 2,
1: - CBAR_TYPE_S1_TRANS_S2_TRANS = 3,
1: + CBAR_TYPE_S2_TRANS = 0,
1: + CBAR_TYPE_S1_TRANS_S2_BYPASS = 1,
1: + CBAR_TYPE_S1_TRANS_S2_FAULT = 2,
1: + CBAR_TYPE_S1_TRANS_S2_TRANS = 3,
1: };
1:
1: enum arm_smmu_arch_version {
1: - ARM_SMMU_V1 = 0,
1: - ARM_SMMU_V1_64K = 1,
1: - ARM_SMMU_V2 = 2,
1: + ARM_SMMU_V1 = 0,
1: + ARM_SMMU_V1_64K = 1,
1: + ARM_SMMU_V2 = 2,
1: };
1:
1: enum arm_smmu_implementation {
1: - GENERIC_SMMU = 0,
1: - ARM_MMU500 = 1,
1: - CAVIUM_SMMUV2 = 2,
1: - QCOM_SMMUV2 = 3,
1: + GENERIC_SMMU = 0,
1: + ARM_MMU500 = 1,
1: + CAVIUM_SMMUV2 = 2,
1: + QCOM_SMMUV2 = 3,
1: };
1:
1: struct arm_smmu_s2cr {
1: - struct iommu_group *group;
1: - int count;
1: - enum arm_smmu_s2cr_type type;
1: - enum arm_smmu_s2cr_privcfg privcfg;
1: - u8 cbndx;
1: + struct iommu_group *group;
1: + int count;
1: + enum arm_smmu_s2cr_type type;
1: + enum arm_smmu_s2cr_privcfg privcfg;
1: + u8 cbndx;
1: };
1:
1: struct arm_smmu_smr {
1: - u16 mask;
1: - u16 id;
1: - bool valid;
1: - bool pinned;
1: + u16 mask;
1: + u16 id;
1: + bool valid;
1: + bool pinned;
1: };
1:
1: struct arm_smmu_impl;
1: @@ -80919,424 +81959,426 @@ struct arm_smmu_impl;
1: struct arm_smmu_cb;
1:
1: struct arm_smmu_device {
1: - struct device *dev;
1: - void *base;
1: - unsigned int numpage;
1: - unsigned int pgshift;
1: - u32 features;
1: - enum arm_smmu_arch_version version;
1: - enum arm_smmu_implementation model;
1: - const struct arm_smmu_impl *impl;
1: - u32 num_context_banks;
1: - u32 num_s2_context_banks;
1: - long unsigned int context_map[2];
1: - struct arm_smmu_cb *cbs;
1: - atomic_t irptndx;
1: - u32 num_mapping_groups;
1: - u16 streamid_mask;
1: - u16 smr_mask_mask;
1: - struct arm_smmu_smr *smrs;
1: - struct arm_smmu_s2cr *s2crs;
1: - struct mutex stream_map_mutex;
1: - long unsigned int va_size;
1: - long unsigned int ipa_size;
1: - long unsigned int pa_size;
1: - long unsigned int pgsize_bitmap;
1: - u32 num_global_irqs;
1: - u32 num_context_irqs;
1: - unsigned int *irqs;
1: - struct clk_bulk_data *clks;
1: - int num_clks;
1: - spinlock_t global_sync_lock;
1: - struct iommu_device iommu;
1: + struct device *dev;
1: + void *base;
1: + unsigned int numpage;
1: + unsigned int pgshift;
1: + u32 features;
1: + enum arm_smmu_arch_version version;
1: + enum arm_smmu_implementation model;
1: + const struct arm_smmu_impl *impl;
1: + u32 num_context_banks;
1: + u32 num_s2_context_banks;
1: + long unsigned int context_map[2];
1: + struct arm_smmu_cb *cbs;
1: + atomic_t irptndx;
1: + u32 num_mapping_groups;
1: + u16 streamid_mask;
1: + u16 smr_mask_mask;
1: + struct arm_smmu_smr *smrs;
1: + struct arm_smmu_s2cr *s2crs;
1: + struct mutex stream_map_mutex;
1: + long unsigned int va_size;
1: + long unsigned int ipa_size;
1: + long unsigned int pa_size;
1: + long unsigned int pgsize_bitmap;
1: + u32 num_global_irqs;
1: + u32 num_context_irqs;
1: + unsigned int *irqs;
1: + struct clk_bulk_data *clks;
1: + int num_clks;
1: + spinlock_t global_sync_lock;
1: + struct iommu_device iommu;
1: };
1:
1: struct arm_smmu_domain;
1:
1: struct arm_smmu_impl {
1: - u32 (*read_reg)(struct arm_smmu_device *, int, int);
1: - void (*write_reg)(struct arm_smmu_device *, int, int, u32);
1: - u64 (*read_reg64)(struct arm_smmu_device *, int, int);
1: - void (*write_reg64)(struct arm_smmu_device *, int, int, u64);
1: - int (*cfg_probe)(struct arm_smmu_device *);
1: - int (*reset)(struct arm_smmu_device *);
1: - int (*init_context)(struct arm_smmu_domain *, struct io_pgtable_cfg *, struct device *);
1: - void (*tlb_sync)(struct arm_smmu_device *, int, int, int);
1: - int (*def_domain_type)(struct device *);
1: - irqreturn_t (*global_fault)(int, void *);
1: - irqreturn_t (*context_fault)(int, void *);
1: - int (*alloc_context_bank)(struct arm_smmu_domain *, struct arm_smmu_device *, struct device *, int);
1: - void (*write_s2cr)(struct arm_smmu_device *, int);
1: + u32 (*read_reg)(struct arm_smmu_device *, int, int);
1: + void (*write_reg)(struct arm_smmu_device *, int, int, u32);
1: + u64 (*read_reg64)(struct arm_smmu_device *, int, int);
1: + void (*write_reg64)(struct arm_smmu_device *, int, int, u64);
1: + int (*cfg_probe)(struct arm_smmu_device *);
1: + int (*reset)(struct arm_smmu_device *);
1: + int (*init_context)(struct arm_smmu_domain *, struct io_pgtable_cfg *,
1: + struct device *);
1: + void (*tlb_sync)(struct arm_smmu_device *, int, int, int);
1: + int (*def_domain_type)(struct device *);
1: + irqreturn_t (*global_fault)(int, void *);
1: + irqreturn_t (*context_fault)(int, void *);
1: + int (*alloc_context_bank)(struct arm_smmu_domain *, struct arm_smmu_device *,
1: + struct device *, int);
1: + void (*write_s2cr)(struct arm_smmu_device *, int);
1: };
1:
1: struct arm_smmu_cfg;
1:
1: struct arm_smmu_cb {
1: - u64 ttbr[2];
1: - u32 tcr[2];
1: - u32 mair[2];
1: - struct arm_smmu_cfg *cfg;
1: + u64 ttbr[2];
1: + u32 tcr[2];
1: + u32 mair[2];
1: + struct arm_smmu_cfg *cfg;
1: };
1:
1: enum arm_smmu_context_fmt {
1: - ARM_SMMU_CTX_FMT_NONE = 0,
1: - ARM_SMMU_CTX_FMT_AARCH64 = 1,
1: - ARM_SMMU_CTX_FMT_AARCH32_L = 2,
1: - ARM_SMMU_CTX_FMT_AARCH32_S = 3,
1: + ARM_SMMU_CTX_FMT_NONE = 0,
1: + ARM_SMMU_CTX_FMT_AARCH64 = 1,
1: + ARM_SMMU_CTX_FMT_AARCH32_L = 2,
1: + ARM_SMMU_CTX_FMT_AARCH32_S = 3,
1: };
1:
1: struct arm_smmu_cfg {
1: - u8 cbndx;
1: - u8 irptndx;
1: - union {
1: - u16 asid;
1: - u16 vmid;
1: - };
1: - enum arm_smmu_cbar_type cbar;
1: - enum arm_smmu_context_fmt fmt;
1: + u8 cbndx;
1: + u8 irptndx;
1: + union {
1: + u16 asid;
1: + u16 vmid;
1: + };
1: + enum arm_smmu_cbar_type cbar;
1: + enum arm_smmu_context_fmt fmt;
1: };
1:
1: enum arm_smmu_domain_stage {
1: - ARM_SMMU_DOMAIN_S1 = 0,
1: - ARM_SMMU_DOMAIN_S2 = 1,
1: - ARM_SMMU_DOMAIN_NESTED = 2,
1: - ARM_SMMU_DOMAIN_BYPASS = 3,
1: + ARM_SMMU_DOMAIN_S1 = 0,
1: + ARM_SMMU_DOMAIN_S2 = 1,
1: + ARM_SMMU_DOMAIN_NESTED = 2,
1: + ARM_SMMU_DOMAIN_BYPASS = 3,
1: };
1:
1: struct arm_smmu_domain {
1: - struct arm_smmu_device *smmu;
1: - struct io_pgtable_ops *pgtbl_ops;
1: - const struct iommu_flush_ops *flush_ops;
1: - struct arm_smmu_cfg cfg;
1: - enum arm_smmu_domain_stage stage;
1: - bool non_strict;
1: - struct mutex init_mutex;
1: - spinlock_t cb_lock;
1: - struct iommu_domain domain;
1: + struct arm_smmu_device *smmu;
1: + struct io_pgtable_ops *pgtbl_ops;
1: + const struct iommu_flush_ops *flush_ops;
1: + struct arm_smmu_cfg cfg;
1: + enum arm_smmu_domain_stage stage;
1: + bool non_strict;
1: + struct mutex init_mutex;
1: + spinlock_t cb_lock;
1: + struct iommu_domain domain;
1: };
1:
1: struct arm_smmu_master_cfg {
1: - struct arm_smmu_device *smmu;
1: - s16 smendx[0];
1: + struct arm_smmu_device *smmu;
1: + s16 smendx[0];
1: };
1:
1: struct arm_smmu_match_data {
1: - enum arm_smmu_arch_version version;
1: - enum arm_smmu_implementation model;
1: + enum arm_smmu_arch_version version;
1: + enum arm_smmu_implementation model;
1: };
1:
1: struct cavium_smmu {
1: - struct arm_smmu_device smmu;
1: - u32 id_base;
1: + struct arm_smmu_device smmu;
1: + u32 id_base;
1: };
1:
1: struct nvidia_smmu {
1: - struct arm_smmu_device smmu;
1: - void *bases[2];
1: + struct arm_smmu_device smmu;
1: + void *bases[2];
1: };
1:
1: struct qcom_smmu {
1: - struct arm_smmu_device smmu;
1: - bool bypass_quirk;
1: - u8 bypass_cbndx;
1: + struct arm_smmu_device smmu;
1: + bool bypass_quirk;
1: + u8 bypass_cbndx;
1: };
1:
1: enum pri_resp {
1: - PRI_RESP_DENY = 0,
1: - PRI_RESP_FAIL = 1,
1: - PRI_RESP_SUCC = 2,
1: + PRI_RESP_DENY = 0,
1: + PRI_RESP_FAIL = 1,
1: + PRI_RESP_SUCC = 2,
1: };
1:
1: struct arm_smmu_cmdq_ent {
1: - u8 opcode;
1: - bool substream_valid;
1: - union {
1: - struct {
1: - u32 sid;
1: - u8 size;
1: - u64 addr;
1: - } prefetch;
1: - struct {
1: - u32 sid;
1: - u32 ssid;
1: - union {
1: - bool leaf;
1: - u8 span;
1: - };
1: - } cfgi;
1: - struct {
1: - u8 num;
1: - u8 scale;
1: - u16 asid;
1: - u16 vmid;
1: - bool leaf;
1: - u8 ttl;
1: - u8 tg;
1: - u64 addr;
1: - } tlbi;
1: - struct {
1: - u32 sid;
1: - u32 ssid;
1: - u64 addr;
1: - u8 size;
1: - bool global;
1: - } atc;
1: - struct {
1: - u32 sid;
1: - u32 ssid;
1: - u16 grpid;
1: - enum pri_resp resp;
1: - } pri;
1: - struct {
1: - u64 msiaddr;
1: - } sync;
1: - };
1: + u8 opcode;
1: + bool substream_valid;
1: + union {
1: + struct {
1: + u32 sid;
1: + u8 size;
1: + u64 addr;
1: + } prefetch;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + union {
1: + bool leaf;
1: + u8 span;
1: + };
1: + } cfgi;
1: + struct {
1: + u8 num;
1: + u8 scale;
1: + u16 asid;
1: + u16 vmid;
1: + bool leaf;
1: + u8 ttl;
1: + u8 tg;
1: + u64 addr;
1: + } tlbi;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + u64 addr;
1: + u8 size;
1: + bool global;
1: + } atc;
1: + struct {
1: + u32 sid;
1: + u32 ssid;
1: + u16 grpid;
1: + enum pri_resp resp;
1: + } pri;
1: + struct {
1: + u64 msiaddr;
1: + } sync;
1: + };
1: };
1:
1: struct arm_smmu_ll_queue {
1: - union {
1: - u64 val;
1: - struct {
1: - u32 prod;
1: - u32 cons;
1: - };
1: - struct {
1: - atomic_t prod;
1: - atomic_t cons;
1: - } atomic;
1: - u8 __pad[64];
1: - };
1: - u32 max_n_shift;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + union {
1: + u64 val;
1: + struct {
1: + u32 prod;
1: + u32 cons;
1: + };
1: + struct {
1: + atomic_t prod;
1: + atomic_t cons;
1: + } atomic;
1: + u8 __pad[64];
1: + };
1: + u32 max_n_shift;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct arm_smmu_queue {
1: - struct arm_smmu_ll_queue llq;
1: - int irq;
1: - __le64 *base;
1: - dma_addr_t base_dma;
1: - u64 q_base;
1: - size_t ent_dwords;
1: - u32 *prod_reg;
1: - u32 *cons_reg;
1: - long: 64;
1: + struct arm_smmu_ll_queue llq;
1: + int irq;
1: + __le64 *base;
1: + dma_addr_t base_dma;
1: + u64 q_base;
1: + size_t ent_dwords;
1: + u32 *prod_reg;
1: + u32 *cons_reg;
1: + long : 64;
1: };
1:
1: struct arm_smmu_queue_poll {
1: - ktime_t timeout;
1: - unsigned int delay;
1: - unsigned int spin_cnt;
1: - bool wfe;
1: + ktime_t timeout;
1: + unsigned int delay;
1: + unsigned int spin_cnt;
1: + bool wfe;
1: };
1:
1: struct arm_smmu_cmdq {
1: - struct arm_smmu_queue q;
1: - atomic_long_t *valid_map;
1: - atomic_t owner_prod;
1: - atomic_t lock;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct arm_smmu_queue q;
1: + atomic_long_t *valid_map;
1: + atomic_t owner_prod;
1: + atomic_t lock;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct arm_smmu_cmdq_batch {
1: - u64 cmds[128];
1: - int num;
1: + u64 cmds[128];
1: + int num;
1: };
1:
1: struct arm_smmu_evtq {
1: - struct arm_smmu_queue q;
1: - u32 max_stalls;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct arm_smmu_queue q;
1: + u32 max_stalls;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct arm_smmu_priq {
1: - struct arm_smmu_queue q;
1: + struct arm_smmu_queue q;
1: };
1:
1: struct arm_smmu_strtab_l1_desc {
1: - u8 span;
1: - __le64 *l2ptr;
1: - dma_addr_t l2ptr_dma;
1: + u8 span;
1: + __le64 *l2ptr;
1: + dma_addr_t l2ptr_dma;
1: };
1:
1: struct arm_smmu_ctx_desc {
1: - u16 asid;
1: - u64 ttbr;
1: - u64 tcr;
1: - u64 mair;
1: - refcount_t refs;
1: - struct mm_struct *mm;
1: + u16 asid;
1: + u64 ttbr;
1: + u64 tcr;
1: + u64 mair;
1: + refcount_t refs;
1: + struct mm_struct *mm;
1: };
1:
1: struct arm_smmu_l1_ctx_desc {
1: - __le64 *l2ptr;
1: - dma_addr_t l2ptr_dma;
1: + __le64 *l2ptr;
1: + dma_addr_t l2ptr_dma;
1: };
1:
1: struct arm_smmu_ctx_desc_cfg {
1: - __le64 *cdtab;
1: - dma_addr_t cdtab_dma;
1: - struct arm_smmu_l1_ctx_desc *l1_desc;
1: - unsigned int num_l1_ents;
1: + __le64 *cdtab;
1: + dma_addr_t cdtab_dma;
1: + struct arm_smmu_l1_ctx_desc *l1_desc;
1: + unsigned int num_l1_ents;
1: };
1:
1: struct arm_smmu_s1_cfg {
1: - struct arm_smmu_ctx_desc_cfg cdcfg;
1: - struct arm_smmu_ctx_desc cd;
1: - u8 s1fmt;
1: - u8 s1cdmax;
1: + struct arm_smmu_ctx_desc_cfg cdcfg;
1: + struct arm_smmu_ctx_desc cd;
1: + u8 s1fmt;
1: + u8 s1cdmax;
1: };
1:
1: struct arm_smmu_s2_cfg {
1: - u16 vmid;
1: - u64 vttbr;
1: - u64 vtcr;
1: + u16 vmid;
1: + u64 vttbr;
1: + u64 vtcr;
1: };
1:
1: struct arm_smmu_strtab_cfg {
1: - __le64 *strtab;
1: - dma_addr_t strtab_dma;
1: - struct arm_smmu_strtab_l1_desc *l1_desc;
1: - unsigned int num_l1_ents;
1: - u64 strtab_base;
1: - u32 strtab_base_cfg;
1: + __le64 *strtab;
1: + dma_addr_t strtab_dma;
1: + struct arm_smmu_strtab_l1_desc *l1_desc;
1: + unsigned int num_l1_ents;
1: + u64 strtab_base;
1: + u32 strtab_base_cfg;
1: };
1:
1: struct arm_smmu_device___2 {
1: - struct device *dev;
1: - void *base;
1: - void *page1;
1: - u32 features;
1: - u32 options;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct arm_smmu_cmdq cmdq;
1: - struct arm_smmu_evtq evtq;
1: - struct arm_smmu_priq priq;
1: - int gerr_irq;
1: - int combined_irq;
1: - long unsigned int ias;
1: - long unsigned int oas;
1: - long unsigned int pgsize_bitmap;
1: - unsigned int asid_bits;
1: - unsigned int vmid_bits;
1: - long unsigned int vmid_map[1024];
1: - unsigned int ssid_bits;
1: - unsigned int sid_bits;
1: - struct arm_smmu_strtab_cfg strtab_cfg;
1: - struct iommu_device iommu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct device *dev;
1: + void *base;
1: + void *page1;
1: + u32 features;
1: + u32 options;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct arm_smmu_cmdq cmdq;
1: + struct arm_smmu_evtq evtq;
1: + struct arm_smmu_priq priq;
1: + int gerr_irq;
1: + int combined_irq;
1: + long unsigned int ias;
1: + long unsigned int oas;
1: + long unsigned int pgsize_bitmap;
1: + unsigned int asid_bits;
1: + unsigned int vmid_bits;
1: + long unsigned int vmid_map[1024];
1: + unsigned int ssid_bits;
1: + unsigned int sid_bits;
1: + struct arm_smmu_strtab_cfg strtab_cfg;
1: + struct iommu_device iommu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct arm_smmu_domain___2;
1:
1: struct arm_smmu_master {
1: - struct arm_smmu_device___2 *smmu;
1: - struct device *dev;
1: - struct arm_smmu_domain___2 *domain;
1: - struct list_head domain_head;
1: - u32 *sids;
1: - unsigned int num_sids;
1: - bool ats_enabled;
1: - bool sva_enabled;
1: - struct list_head bonds;
1: - unsigned int ssid_bits;
1: + struct arm_smmu_device___2 *smmu;
1: + struct device *dev;
1: + struct arm_smmu_domain___2 *domain;
1: + struct list_head domain_head;
1: + u32 *sids;
1: + unsigned int num_sids;
1: + bool ats_enabled;
1: + bool sva_enabled;
1: + struct list_head bonds;
1: + unsigned int ssid_bits;
1: };
1:
1: struct arm_smmu_domain___2 {
1: - struct arm_smmu_device___2 *smmu;
1: - struct mutex init_mutex;
1: - struct io_pgtable_ops *pgtbl_ops;
1: - bool non_strict;
1: - atomic_t nr_ats_masters;
1: - enum arm_smmu_domain_stage stage;
1: - union {
1: - struct arm_smmu_s1_cfg s1_cfg;
1: - struct arm_smmu_s2_cfg s2_cfg;
1: - };
1: - struct iommu_domain domain;
1: - struct list_head devices;
1: - spinlock_t devices_lock;
1: + struct arm_smmu_device___2 *smmu;
1: + struct mutex init_mutex;
1: + struct io_pgtable_ops *pgtbl_ops;
1: + bool non_strict;
1: + atomic_t nr_ats_masters;
1: + enum arm_smmu_domain_stage stage;
1: + union {
1: + struct arm_smmu_s1_cfg s1_cfg;
1: + struct arm_smmu_s2_cfg s2_cfg;
1: + };
1: + struct iommu_domain domain;
1: + struct list_head devices;
1: + spinlock_t devices_lock;
1: };
1:
1: enum arm_smmu_msi_index {
1: - EVTQ_MSI_INDEX = 0,
1: - GERROR_MSI_INDEX = 1,
1: - PRIQ_MSI_INDEX = 2,
1: - ARM_SMMU_MAX_MSIS = 3,
1: + EVTQ_MSI_INDEX = 0,
1: + GERROR_MSI_INDEX = 1,
1: + PRIQ_MSI_INDEX = 2,
1: + ARM_SMMU_MAX_MSIS = 3,
1: };
1:
1: struct arm_smmu_option_prop {
1: - u32 opt;
1: - const char *prop;
1: + u32 opt;
1: + const char *prop;
1: };
1:
1: struct iommu_group {
1: - struct kobject kobj;
1: - struct kobject *devices_kobj;
1: - struct list_head devices;
1: - struct mutex mutex;
1: - struct blocking_notifier_head notifier;
1: - void *iommu_data;
1: - void (*iommu_data_release)(void *);
1: - char *name;
1: - int id;
1: - struct iommu_domain *default_domain;
1: - struct iommu_domain *domain;
1: - struct list_head entry;
1: + struct kobject kobj;
1: + struct kobject *devices_kobj;
1: + struct list_head devices;
1: + struct mutex mutex;
1: + struct blocking_notifier_head notifier;
1: + void *iommu_data;
1: + void (*iommu_data_release)(void *);
1: + char *name;
1: + int id;
1: + struct iommu_domain *default_domain;
1: + struct iommu_domain *domain;
1: + struct list_head entry;
1: };
1:
1: typedef unsigned int ioasid_t;
1:
1: enum iommu_fault_type {
1: - IOMMU_FAULT_DMA_UNRECOV = 1,
1: - IOMMU_FAULT_PAGE_REQ = 2,
1: + IOMMU_FAULT_DMA_UNRECOV = 1,
1: + IOMMU_FAULT_PAGE_REQ = 2,
1: };
1:
1: enum iommu_inv_granularity {
1: - IOMMU_INV_GRANU_DOMAIN = 0,
1: - IOMMU_INV_GRANU_PASID = 1,
1: - IOMMU_INV_GRANU_ADDR = 2,
1: - IOMMU_INV_GRANU_NR = 3,
1: + IOMMU_INV_GRANU_DOMAIN = 0,
1: + IOMMU_INV_GRANU_PASID = 1,
1: + IOMMU_INV_GRANU_ADDR = 2,
1: + IOMMU_INV_GRANU_NR = 3,
1: };
1:
1: struct fsl_mc_obj_desc {
1: - char type[16];
1: - int id;
1: - u16 vendor;
1: - u16 ver_major;
1: - u16 ver_minor;
1: - u8 irq_count;
1: - u8 region_count;
1: - u32 state;
1: - char label[16];
1: - u16 flags;
1: + char type[16];
1: + int id;
1: + u16 vendor;
1: + u16 ver_major;
1: + u16 ver_minor;
1: + u8 irq_count;
1: + u8 region_count;
1: + u32 state;
1: + char label[16];
1: + u16 flags;
1: };
1:
1: struct fsl_mc_io;
1: @@ -81346,124 +82388,124 @@ struct fsl_mc_device_irq;
1: struct fsl_mc_resource;
1:
1: struct fsl_mc_device {
1: - struct device dev;
1: - u64 dma_mask;
1: - u16 flags;
1: - u32 icid;
1: - u16 mc_handle;
1: - struct fsl_mc_io *mc_io;
1: - struct fsl_mc_obj_desc obj_desc;
1: - struct resource *regions;
1: - struct fsl_mc_device_irq **irqs;
1: - struct fsl_mc_resource *resource;
1: - struct device_link *consumer_link;
1: - char *driver_override;
1: + struct device dev;
1: + u64 dma_mask;
1: + u16 flags;
1: + u32 icid;
1: + u16 mc_handle;
1: + struct fsl_mc_io *mc_io;
1: + struct fsl_mc_obj_desc obj_desc;
1: + struct resource *regions;
1: + struct fsl_mc_device_irq **irqs;
1: + struct fsl_mc_resource *resource;
1: + struct device_link *consumer_link;
1: + char *driver_override;
1: };
1:
1: enum fsl_mc_pool_type {
1: - FSL_MC_POOL_DPMCP = 0,
1: - FSL_MC_POOL_DPBP = 1,
1: - FSL_MC_POOL_DPCON = 2,
1: - FSL_MC_POOL_IRQ = 3,
1: - FSL_MC_NUM_POOL_TYPES = 4,
1: + FSL_MC_POOL_DPMCP = 0,
1: + FSL_MC_POOL_DPBP = 1,
1: + FSL_MC_POOL_DPCON = 2,
1: + FSL_MC_POOL_IRQ = 3,
1: + FSL_MC_NUM_POOL_TYPES = 4,
1: };
1:
1: struct fsl_mc_resource_pool;
1:
1: struct fsl_mc_resource {
1: - enum fsl_mc_pool_type type;
1: - s32 id;
1: - void *data;
1: - struct fsl_mc_resource_pool *parent_pool;
1: - struct list_head node;
1: + enum fsl_mc_pool_type type;
1: + s32 id;
1: + void *data;
1: + struct fsl_mc_resource_pool *parent_pool;
1: + struct list_head node;
1: };
1:
1: struct fsl_mc_device_irq {
1: - struct msi_desc *msi_desc;
1: - struct fsl_mc_device *mc_dev;
1: - u8 dev_irq_index;
1: - struct fsl_mc_resource resource;
1: + struct msi_desc *msi_desc;
1: + struct fsl_mc_device *mc_dev;
1: + u8 dev_irq_index;
1: + struct fsl_mc_resource resource;
1: };
1:
1: struct fsl_mc_io {
1: - struct device *dev;
1: - u16 flags;
1: - u32 portal_size;
1: - phys_addr_t portal_phys_addr;
1: - void *portal_virt_addr;
1: - struct fsl_mc_device *dpmcp_dev;
1: - union {
1: - struct mutex mutex;
1: - raw_spinlock_t spinlock;
1: - };
1: + struct device *dev;
1: + u16 flags;
1: + u32 portal_size;
1: + phys_addr_t portal_phys_addr;
1: + void *portal_virt_addr;
1: + struct fsl_mc_device *dpmcp_dev;
1: + union {
1: + struct mutex mutex;
1: + raw_spinlock_t spinlock;
1: + };
1: };
1:
1: struct group_device {
1: - struct list_head list;
1: - struct device *dev;
1: - char *name;
1: + struct list_head list;
1: + struct device *dev;
1: + char *name;
1: };
1:
1: struct iommu_group_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct iommu_group *, char *);
1: - ssize_t (*store)(struct iommu_group *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct iommu_group *, char *);
1: + ssize_t (*store)(struct iommu_group *, const char *, size_t);
1: };
1:
1: struct group_for_pci_data {
1: - struct pci_dev *pdev;
1: - struct iommu_group *group;
1: + struct pci_dev *pdev;
1: + struct iommu_group *group;
1: };
1:
1: struct __group_domain_type {
1: - struct device *dev;
1: - unsigned int type;
1: + struct device *dev;
1: + unsigned int type;
1: };
1:
1: struct trace_event_raw_iommu_group_event {
1: - struct trace_entry ent;
1: - int gid;
1: - u32 __data_loc_device;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int gid;
1: + u32 __data_loc_device;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iommu_device_event {
1: - struct trace_entry ent;
1: - u32 __data_loc_device;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_map {
1: - struct trace_entry ent;
1: - u64 iova;
1: - u64 paddr;
1: - size_t size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u64 iova;
1: + u64 paddr;
1: + size_t size;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_unmap {
1: - struct trace_entry ent;
1: - u64 iova;
1: - size_t size;
1: - size_t unmapped_size;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u64 iova;
1: + size_t size;
1: + size_t unmapped_size;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_iommu_error {
1: - struct trace_entry ent;
1: - u32 __data_loc_device;
1: - u32 __data_loc_driver;
1: - u64 iova;
1: - int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + u64 iova;
1: + int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_iommu_group_event {
1: - u32 device;
1: + u32 device;
1: };
1:
1: struct trace_event_data_offsets_iommu_device_event {
1: - u32 device;
1: + u32 device;
1: };
1:
1: struct trace_event_data_offsets_map {};
1: @@ -81471,13 +82513,14 @@ struct trace_event_data_offsets_map {};
1: struct trace_event_data_offsets_unmap {};
1:
1: struct trace_event_data_offsets_iommu_error {
1: - u32 device;
1: - u32 driver;
1: + u32 device;
1: + u32 driver;
1: };
1:
1: typedef void (*btf_trace_add_device_to_group)(void *, int, struct device *);
1:
1: -typedef void (*btf_trace_remove_device_from_group)(void *, int, struct device *);
1: +typedef void (*btf_trace_remove_device_from_group)(void *, int,
1: + struct device *);
1:
1: typedef void (*btf_trace_attach_device_to_domain)(void *, struct device *);
1:
1: @@ -81487,12 +82530,13 @@ typedef void (*btf_trace_map)(void *, long unsigned int, phys_addr_t, size_t);
1:
1: typedef void (*btf_trace_unmap)(void *, long unsigned int, size_t, size_t);
1:
1: -typedef void (*btf_trace_io_page_fault)(void *, struct device *, long unsigned int, int);
1: +typedef void (*btf_trace_io_page_fault)(void *, struct device *,
1: + long unsigned int, int);
1:
1: struct iova {
1: - struct rb_node node;
1: - long unsigned int pfn_hi;
1: - long unsigned int pfn_lo;
1: + struct rb_node node;
1: + long unsigned int pfn_hi;
1: + long unsigned int pfn_lo;
1: };
1:
1: struct iova_magazine;
1: @@ -81500,10 +82544,10 @@ struct iova_magazine;
1: struct iova_cpu_rcache;
1:
1: struct iova_rcache {
1: - spinlock_t lock;
1: - long unsigned int depot_size;
1: - struct iova_magazine *depot[32];
1: - struct iova_cpu_rcache *cpu_rcaches;
1: + spinlock_t lock;
1: + long unsigned int depot_size;
1: + struct iova_magazine *depot[32];
1: + struct iova_cpu_rcache *cpu_rcaches;
1: };
1:
1: struct iova_domain;
1: @@ -81515,195 +82559,195 @@ typedef void (*iova_entry_dtor)(long unsigned int);
1: struct iova_fq;
1:
1: struct iova_domain {
1: - spinlock_t iova_rbtree_lock;
1: - struct rb_root rbroot;
1: - struct rb_node *cached_node;
1: - struct rb_node *cached32_node;
1: - long unsigned int granule;
1: - long unsigned int start_pfn;
1: - long unsigned int dma_32bit_pfn;
1: - long unsigned int max32_alloc_size;
1: - struct iova_fq *fq;
1: - atomic64_t fq_flush_start_cnt;
1: - atomic64_t fq_flush_finish_cnt;
1: - struct iova anchor;
1: - struct iova_rcache rcaches[6];
1: - iova_flush_cb flush_cb;
1: - iova_entry_dtor entry_dtor;
1: - struct timer_list fq_timer;
1: - atomic_t fq_timer_on;
1: + spinlock_t iova_rbtree_lock;
1: + struct rb_root rbroot;
1: + struct rb_node *cached_node;
1: + struct rb_node *cached32_node;
1: + long unsigned int granule;
1: + long unsigned int start_pfn;
1: + long unsigned int dma_32bit_pfn;
1: + long unsigned int max32_alloc_size;
1: + struct iova_fq *fq;
1: + atomic64_t fq_flush_start_cnt;
1: + atomic64_t fq_flush_finish_cnt;
1: + struct iova anchor;
1: + struct iova_rcache rcaches[6];
1: + iova_flush_cb flush_cb;
1: + iova_entry_dtor entry_dtor;
1: + struct timer_list fq_timer;
1: + atomic_t fq_timer_on;
1: };
1:
1: struct iova_fq_entry {
1: - long unsigned int iova_pfn;
1: - long unsigned int pages;
1: - long unsigned int data;
1: - u64 counter;
1: + long unsigned int iova_pfn;
1: + long unsigned int pages;
1: + long unsigned int data;
1: + u64 counter;
1: };
1:
1: struct iova_fq {
1: - struct iova_fq_entry entries[256];
1: - unsigned int head;
1: - unsigned int tail;
1: - spinlock_t lock;
1: + struct iova_fq_entry entries[256];
1: + unsigned int head;
1: + unsigned int tail;
1: + spinlock_t lock;
1: };
1:
1: struct iommu_dma_msi_page {
1: - struct list_head list;
1: - dma_addr_t iova;
1: - phys_addr_t phys;
1: + struct list_head list;
1: + dma_addr_t iova;
1: + phys_addr_t phys;
1: };
1:
1: enum iommu_dma_cookie_type {
1: - IOMMU_DMA_IOVA_COOKIE = 0,
1: - IOMMU_DMA_MSI_COOKIE = 1,
1: + IOMMU_DMA_IOVA_COOKIE = 0,
1: + IOMMU_DMA_MSI_COOKIE = 1,
1: };
1:
1: struct iommu_dma_cookie {
1: - enum iommu_dma_cookie_type type;
1: - union {
1: - struct iova_domain iovad;
1: - dma_addr_t msi_iova;
1: - };
1: - struct list_head msi_page_list;
1: - struct iommu_domain *fq_domain;
1: + enum iommu_dma_cookie_type type;
1: + union {
1: + struct iova_domain iovad;
1: + dma_addr_t msi_iova;
1: + };
1: + struct list_head msi_page_list;
1: + struct iommu_domain *fq_domain;
1: };
1:
1: struct io_pgtable {
1: - enum io_pgtable_fmt fmt;
1: - void *cookie;
1: - struct io_pgtable_cfg cfg;
1: - struct io_pgtable_ops ops;
1: + enum io_pgtable_fmt fmt;
1: + void *cookie;
1: + struct io_pgtable_cfg cfg;
1: + struct io_pgtable_ops ops;
1: };
1:
1: struct io_pgtable_init_fns {
1: - struct io_pgtable * (*alloc)(struct io_pgtable_cfg *, void *);
1: - void (*free)(struct io_pgtable *);
1: + struct io_pgtable *(*alloc)(struct io_pgtable_cfg *, void *);
1: + void (*free)(struct io_pgtable *);
1: };
1:
1: struct arm_lpae_io_pgtable {
1: - struct io_pgtable iop;
1: - int pgd_bits;
1: - int start_level;
1: - int bits_per_level;
1: - void *pgd;
1: + struct io_pgtable iop;
1: + int pgd_bits;
1: + int start_level;
1: + int bits_per_level;
1: + void *pgd;
1: };
1:
1: typedef u64 arm_lpae_iopte;
1:
1: struct iova_magazine {
1: - long unsigned int size;
1: - long unsigned int pfns[128];
1: + long unsigned int size;
1: + long unsigned int pfns[128];
1: };
1:
1: struct iova_cpu_rcache {
1: - spinlock_t lock;
1: - struct iova_magazine *loaded;
1: - struct iova_magazine *prev;
1: + spinlock_t lock;
1: + struct iova_magazine *loaded;
1: + struct iova_magazine *prev;
1: };
1:
1: struct of_pci_iommu_alias_info {
1: - struct device *dev;
1: - struct device_node *np;
1: + struct device *dev;
1: + struct device_node *np;
1: };
1:
1: struct rk_iommu_domain {
1: - struct list_head iommus;
1: - u32 *dt;
1: - dma_addr_t dt_dma;
1: - spinlock_t iommus_lock;
1: - spinlock_t dt_lock;
1: - struct iommu_domain domain;
1: + struct list_head iommus;
1: + u32 *dt;
1: + dma_addr_t dt_dma;
1: + spinlock_t iommus_lock;
1: + spinlock_t dt_lock;
1: + struct iommu_domain domain;
1: };
1:
1: struct rk_iommu {
1: - struct device *dev;
1: - void **bases;
1: - int num_mmu;
1: - int num_irq;
1: - struct clk_bulk_data *clocks;
1: - int num_clocks;
1: - bool reset_disabled;
1: - struct iommu_device iommu;
1: - struct list_head node;
1: - struct iommu_domain *domain;
1: - struct iommu_group *group;
1: + struct device *dev;
1: + void **bases;
1: + int num_mmu;
1: + int num_irq;
1: + struct clk_bulk_data *clocks;
1: + int num_clocks;
1: + bool reset_disabled;
1: + struct iommu_device iommu;
1: + struct list_head node;
1: + struct iommu_domain *domain;
1: + struct iommu_group *group;
1: };
1:
1: struct rk_iommudata {
1: - struct device_link *link;
1: - struct rk_iommu *iommu;
1: + struct device_link *link;
1: + struct rk_iommu *iommu;
1: };
1:
1: struct tegra_smmu_enable {
1: - unsigned int reg;
1: - unsigned int bit;
1: + unsigned int reg;
1: + unsigned int bit;
1: };
1:
1: struct tegra_mc_timing {
1: - long unsigned int rate;
1: - u32 *emem_data;
1: + long unsigned int rate;
1: + u32 *emem_data;
1: };
1:
1: struct tegra_mc_la {
1: - unsigned int reg;
1: - unsigned int shift;
1: - unsigned int mask;
1: - unsigned int def;
1: + unsigned int reg;
1: + unsigned int shift;
1: + unsigned int mask;
1: + unsigned int def;
1: };
1:
1: struct tegra_mc_client {
1: - unsigned int id;
1: - const char *name;
1: - unsigned int swgroup;
1: - unsigned int fifo_size;
1: - struct tegra_smmu_enable smmu;
1: - struct tegra_mc_la la;
1: + unsigned int id;
1: + const char *name;
1: + unsigned int swgroup;
1: + unsigned int fifo_size;
1: + struct tegra_smmu_enable smmu;
1: + struct tegra_mc_la la;
1: };
1:
1: struct tegra_smmu_swgroup {
1: - const char *name;
1: - unsigned int swgroup;
1: - unsigned int reg;
1: + const char *name;
1: + unsigned int swgroup;
1: + unsigned int reg;
1: };
1:
1: struct tegra_smmu_group_soc {
1: - const char *name;
1: - const unsigned int *swgroups;
1: - unsigned int num_swgroups;
1: + const char *name;
1: + const unsigned int *swgroups;
1: + unsigned int num_swgroups;
1: };
1:
1: struct tegra_smmu_soc {
1: - const struct tegra_mc_client *clients;
1: - unsigned int num_clients;
1: - const struct tegra_smmu_swgroup *swgroups;
1: - unsigned int num_swgroups;
1: - const struct tegra_smmu_group_soc *groups;
1: - unsigned int num_groups;
1: - bool supports_round_robin_arbitration;
1: - bool supports_request_limit;
1: - unsigned int num_tlb_lines;
1: - unsigned int num_asids;
1: + const struct tegra_mc_client *clients;
1: + unsigned int num_clients;
1: + const struct tegra_smmu_swgroup *swgroups;
1: + unsigned int num_swgroups;
1: + const struct tegra_smmu_group_soc *groups;
1: + unsigned int num_groups;
1: + bool supports_round_robin_arbitration;
1: + bool supports_request_limit;
1: + unsigned int num_tlb_lines;
1: + unsigned int num_asids;
1: };
1:
1: struct tegra_mc_reset {
1: - const char *name;
1: - long unsigned int id;
1: - unsigned int control;
1: - unsigned int status;
1: - unsigned int reset;
1: - unsigned int bit;
1: + const char *name;
1: + long unsigned int id;
1: + unsigned int control;
1: + unsigned int status;
1: + unsigned int reset;
1: + unsigned int bit;
1: };
1:
1: struct tegra_mc;
1:
1: struct tegra_mc_reset_ops {
1: - int (*hotreset_assert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: - int (*hotreset_deassert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: - int (*block_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: - bool (*dma_idling)(struct tegra_mc *, const struct tegra_mc_reset *);
1: - int (*unblock_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: - int (*reset_status)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*hotreset_assert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*hotreset_deassert)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*block_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + bool (*dma_idling)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*unblock_dma)(struct tegra_mc *, const struct tegra_mc_reset *);
1: + int (*reset_status)(struct tegra_mc *, const struct tegra_mc_reset *);
1: };
1:
1: struct gart_device;
1: @@ -81713,86 +82757,86 @@ struct tegra_smmu;
1: struct tegra_mc_soc;
1:
1: struct tegra_mc {
1: - struct device *dev;
1: - struct tegra_smmu *smmu;
1: - struct gart_device *gart;
1: - void *regs;
1: - struct clk *clk;
1: - int irq;
1: - const struct tegra_mc_soc *soc;
1: - long unsigned int tick;
1: - struct tegra_mc_timing *timings;
1: - unsigned int num_timings;
1: - struct reset_controller_dev reset;
1: - spinlock_t lock;
1: + struct device *dev;
1: + struct tegra_smmu *smmu;
1: + struct gart_device *gart;
1: + void *regs;
1: + struct clk *clk;
1: + int irq;
1: + const struct tegra_mc_soc *soc;
1: + long unsigned int tick;
1: + struct tegra_mc_timing *timings;
1: + unsigned int num_timings;
1: + struct reset_controller_dev reset;
1: + spinlock_t lock;
1: };
1:
1: struct tegra_mc_soc {
1: - const struct tegra_mc_client *clients;
1: - unsigned int num_clients;
1: - const long unsigned int *emem_regs;
1: - unsigned int num_emem_regs;
1: - unsigned int num_address_bits;
1: - unsigned int atom_size;
1: - u8 client_id_mask;
1: - const struct tegra_smmu_soc *smmu;
1: - u32 intmask;
1: - const struct tegra_mc_reset_ops *reset_ops;
1: - const struct tegra_mc_reset *resets;
1: - unsigned int num_resets;
1: + const struct tegra_mc_client *clients;
1: + unsigned int num_clients;
1: + const long unsigned int *emem_regs;
1: + unsigned int num_emem_regs;
1: + unsigned int num_address_bits;
1: + unsigned int atom_size;
1: + u8 client_id_mask;
1: + const struct tegra_smmu_soc *smmu;
1: + u32 intmask;
1: + const struct tegra_mc_reset_ops *reset_ops;
1: + const struct tegra_mc_reset *resets;
1: + unsigned int num_resets;
1: };
1:
1: struct tegra_smmu {
1: - void *regs;
1: - struct device *dev;
1: - struct tegra_mc *mc;
1: - const struct tegra_smmu_soc *soc;
1: - struct list_head groups;
1: - long unsigned int pfn_mask;
1: - long unsigned int tlb_mask;
1: - long unsigned int *asids;
1: - struct mutex lock;
1: - struct list_head list;
1: - struct dentry *debugfs;
1: - struct iommu_device iommu;
1: + void *regs;
1: + struct device *dev;
1: + struct tegra_mc *mc;
1: + const struct tegra_smmu_soc *soc;
1: + struct list_head groups;
1: + long unsigned int pfn_mask;
1: + long unsigned int tlb_mask;
1: + long unsigned int *asids;
1: + struct mutex lock;
1: + struct list_head list;
1: + struct dentry *debugfs;
1: + struct iommu_device iommu;
1: };
1:
1: struct tegra_smmu_group {
1: - struct list_head list;
1: - struct tegra_smmu *smmu;
1: - const struct tegra_smmu_group_soc *soc;
1: - struct iommu_group *group;
1: - unsigned int swgroup;
1: + struct list_head list;
1: + struct tegra_smmu *smmu;
1: + const struct tegra_smmu_group_soc *soc;
1: + struct iommu_group *group;
1: + unsigned int swgroup;
1: };
1:
1: struct tegra_smmu_as {
1: - struct iommu_domain domain;
1: - struct tegra_smmu *smmu;
1: - unsigned int use_count;
1: - spinlock_t lock;
1: - u32 *count;
1: - struct page **pts;
1: - struct page *pd;
1: - dma_addr_t pd_dma;
1: - unsigned int id;
1: - u32 attr;
1: + struct iommu_domain domain;
1: + struct tegra_smmu *smmu;
1: + unsigned int use_count;
1: + spinlock_t lock;
1: + u32 *count;
1: + struct page **pts;
1: + struct page *pd;
1: + dma_addr_t pd_dma;
1: + unsigned int id;
1: + u32 attr;
1: };
1:
1: struct mipi_dsi_msg {
1: - u8 channel;
1: - u8 type;
1: - u16 flags;
1: - size_t tx_len;
1: - const void *tx_buf;
1: - size_t rx_len;
1: - void *rx_buf;
1: + u8 channel;
1: + u8 type;
1: + u16 flags;
1: + size_t tx_len;
1: + const void *tx_buf;
1: + size_t rx_len;
1: + void *rx_buf;
1: };
1:
1: struct mipi_dsi_packet {
1: - size_t size;
1: - u8 header[4];
1: - size_t payload_length;
1: - const u8 *payload;
1: + size_t size;
1: + u8 header[4];
1: + size_t payload_length;
1: + const u8 *payload;
1: };
1:
1: struct mipi_dsi_host;
1: @@ -81800,511 +82844,511 @@ struct mipi_dsi_host;
1: struct mipi_dsi_device;
1:
1: struct mipi_dsi_host_ops {
1: - int (*attach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: - int (*detach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: - ssize_t (*transfer)(struct mipi_dsi_host *, const struct mipi_dsi_msg *);
1: + int (*attach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: + int (*detach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
1: + ssize_t (*transfer)(struct mipi_dsi_host *, const struct mipi_dsi_msg *);
1: };
1:
1: struct mipi_dsi_host {
1: - struct device *dev;
1: - const struct mipi_dsi_host_ops *ops;
1: - struct list_head list;
1: + struct device *dev;
1: + const struct mipi_dsi_host_ops *ops;
1: + struct list_head list;
1: };
1:
1: enum mipi_dsi_pixel_format {
1: - MIPI_DSI_FMT_RGB888 = 0,
1: - MIPI_DSI_FMT_RGB666 = 1,
1: - MIPI_DSI_FMT_RGB666_PACKED = 2,
1: - MIPI_DSI_FMT_RGB565 = 3,
1: + MIPI_DSI_FMT_RGB888 = 0,
1: + MIPI_DSI_FMT_RGB666 = 1,
1: + MIPI_DSI_FMT_RGB666_PACKED = 2,
1: + MIPI_DSI_FMT_RGB565 = 3,
1: };
1:
1: struct mipi_dsi_device {
1: - struct mipi_dsi_host *host;
1: - struct device dev;
1: - char name[20];
1: - unsigned int channel;
1: - unsigned int lanes;
1: - enum mipi_dsi_pixel_format format;
1: - long unsigned int mode_flags;
1: - long unsigned int hs_rate;
1: - long unsigned int lp_rate;
1: + struct mipi_dsi_host *host;
1: + struct device dev;
1: + char name[20];
1: + unsigned int channel;
1: + unsigned int lanes;
1: + enum mipi_dsi_pixel_format format;
1: + long unsigned int mode_flags;
1: + long unsigned int hs_rate;
1: + long unsigned int lp_rate;
1: };
1:
1: struct mipi_dsi_device_info {
1: - char type[20];
1: - u32 channel;
1: - struct device_node *node;
1: + char type[20];
1: + u32 channel;
1: + struct device_node *node;
1: };
1:
1: enum mipi_dsi_dcs_tear_mode {
1: - MIPI_DSI_DCS_TEAR_MODE_VBLANK = 0,
1: - MIPI_DSI_DCS_TEAR_MODE_VHBLANK = 1,
1: + MIPI_DSI_DCS_TEAR_MODE_VBLANK = 0,
1: + MIPI_DSI_DCS_TEAR_MODE_VHBLANK = 1,
1: };
1:
1: struct mipi_dsi_driver {
1: - struct device_driver driver;
1: - int (*probe)(struct mipi_dsi_device *);
1: - int (*remove)(struct mipi_dsi_device *);
1: - void (*shutdown)(struct mipi_dsi_device *);
1: + struct device_driver driver;
1: + int (*probe)(struct mipi_dsi_device *);
1: + int (*remove)(struct mipi_dsi_device *);
1: + void (*shutdown)(struct mipi_dsi_device *);
1: };
1:
1: struct drm_dsc_picture_parameter_set {
1: - u8 dsc_version;
1: - u8 pps_identifier;
1: - u8 pps_reserved;
1: - u8 pps_3;
1: - u8 pps_4;
1: - u8 bits_per_pixel_low;
1: - __be16 pic_height;
1: - __be16 pic_width;
1: - __be16 slice_height;
1: - __be16 slice_width;
1: - __be16 chunk_size;
1: - u8 initial_xmit_delay_high;
1: - u8 initial_xmit_delay_low;
1: - __be16 initial_dec_delay;
1: - u8 pps20_reserved;
1: - u8 initial_scale_value;
1: - __be16 scale_increment_interval;
1: - u8 scale_decrement_interval_high;
1: - u8 scale_decrement_interval_low;
1: - u8 pps26_reserved;
1: - u8 first_line_bpg_offset;
1: - __be16 nfl_bpg_offset;
1: - __be16 slice_bpg_offset;
1: - __be16 initial_offset;
1: - __be16 final_offset;
1: - u8 flatness_min_qp;
1: - u8 flatness_max_qp;
1: - __be16 rc_model_size;
1: - u8 rc_edge_factor;
1: - u8 rc_quant_incr_limit0;
1: - u8 rc_quant_incr_limit1;
1: - u8 rc_tgt_offset;
1: - u8 rc_buf_thresh[14];
1: - __be16 rc_range_parameters[15];
1: - u8 native_422_420;
1: - u8 second_line_bpg_offset;
1: - __be16 nsl_bpg_offset;
1: - __be16 second_line_offset_adj;
1: - u32 pps_long_94_reserved;
1: - u32 pps_long_98_reserved;
1: - u32 pps_long_102_reserved;
1: - u32 pps_long_106_reserved;
1: - u32 pps_long_110_reserved;
1: - u32 pps_long_114_reserved;
1: - u32 pps_long_118_reserved;
1: - u32 pps_long_122_reserved;
1: - __be16 pps_short_126_reserved;
1: + u8 dsc_version;
1: + u8 pps_identifier;
1: + u8 pps_reserved;
1: + u8 pps_3;
1: + u8 pps_4;
1: + u8 bits_per_pixel_low;
1: + __be16 pic_height;
1: + __be16 pic_width;
1: + __be16 slice_height;
1: + __be16 slice_width;
1: + __be16 chunk_size;
1: + u8 initial_xmit_delay_high;
1: + u8 initial_xmit_delay_low;
1: + __be16 initial_dec_delay;
1: + u8 pps20_reserved;
1: + u8 initial_scale_value;
1: + __be16 scale_increment_interval;
1: + u8 scale_decrement_interval_high;
1: + u8 scale_decrement_interval_low;
1: + u8 pps26_reserved;
1: + u8 first_line_bpg_offset;
1: + __be16 nfl_bpg_offset;
1: + __be16 slice_bpg_offset;
1: + __be16 initial_offset;
1: + __be16 final_offset;
1: + u8 flatness_min_qp;
1: + u8 flatness_max_qp;
1: + __be16 rc_model_size;
1: + u8 rc_edge_factor;
1: + u8 rc_quant_incr_limit0;
1: + u8 rc_quant_incr_limit1;
1: + u8 rc_tgt_offset;
1: + u8 rc_buf_thresh[14];
1: + __be16 rc_range_parameters[15];
1: + u8 native_422_420;
1: + u8 second_line_bpg_offset;
1: + __be16 nsl_bpg_offset;
1: + __be16 second_line_offset_adj;
1: + u32 pps_long_94_reserved;
1: + u32 pps_long_98_reserved;
1: + u32 pps_long_102_reserved;
1: + u32 pps_long_106_reserved;
1: + u32 pps_long_110_reserved;
1: + u32 pps_long_114_reserved;
1: + u32 pps_long_118_reserved;
1: + u32 pps_long_122_reserved;
1: + __be16 pps_short_126_reserved;
1: } __attribute__((packed));
1:
1: enum {
1: - MIPI_DSI_V_SYNC_START = 1,
1: - MIPI_DSI_V_SYNC_END = 17,
1: - MIPI_DSI_H_SYNC_START = 33,
1: - MIPI_DSI_H_SYNC_END = 49,
1: - MIPI_DSI_COMPRESSION_MODE = 7,
1: - MIPI_DSI_END_OF_TRANSMISSION = 8,
1: - MIPI_DSI_COLOR_MODE_OFF = 2,
1: - MIPI_DSI_COLOR_MODE_ON = 18,
1: - MIPI_DSI_SHUTDOWN_PERIPHERAL = 34,
1: - MIPI_DSI_TURN_ON_PERIPHERAL = 50,
1: - MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM = 3,
1: - MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM = 19,
1: - MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM = 35,
1: - MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM = 4,
1: - MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM = 20,
1: - MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM = 36,
1: - MIPI_DSI_DCS_SHORT_WRITE = 5,
1: - MIPI_DSI_DCS_SHORT_WRITE_PARAM = 21,
1: - MIPI_DSI_DCS_READ = 6,
1: - MIPI_DSI_EXECUTE_QUEUE = 22,
1: - MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 55,
1: - MIPI_DSI_NULL_PACKET = 9,
1: - MIPI_DSI_BLANKING_PACKET = 25,
1: - MIPI_DSI_GENERIC_LONG_WRITE = 41,
1: - MIPI_DSI_DCS_LONG_WRITE = 57,
1: - MIPI_DSI_PICTURE_PARAMETER_SET = 10,
1: - MIPI_DSI_COMPRESSED_PIXEL_STREAM = 11,
1: - MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 = 12,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 = 28,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 = 44,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_30 = 13,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_36 = 29,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12 = 61,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_16 = 14,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_18 = 30,
1: - MIPI_DSI_PIXEL_STREAM_3BYTE_18 = 46,
1: - MIPI_DSI_PACKED_PIXEL_STREAM_24 = 62,
1: -};
1: -
1: -enum {
1: - MIPI_DCS_NOP = 0,
1: - MIPI_DCS_SOFT_RESET = 1,
1: - MIPI_DCS_GET_COMPRESSION_MODE = 3,
1: - MIPI_DCS_GET_DISPLAY_ID = 4,
1: - MIPI_DCS_GET_ERROR_COUNT_ON_DSI = 5,
1: - MIPI_DCS_GET_RED_CHANNEL = 6,
1: - MIPI_DCS_GET_GREEN_CHANNEL = 7,
1: - MIPI_DCS_GET_BLUE_CHANNEL = 8,
1: - MIPI_DCS_GET_DISPLAY_STATUS = 9,
1: - MIPI_DCS_GET_POWER_MODE = 10,
1: - MIPI_DCS_GET_ADDRESS_MODE = 11,
1: - MIPI_DCS_GET_PIXEL_FORMAT = 12,
1: - MIPI_DCS_GET_DISPLAY_MODE = 13,
1: - MIPI_DCS_GET_SIGNAL_MODE = 14,
1: - MIPI_DCS_GET_DIAGNOSTIC_RESULT = 15,
1: - MIPI_DCS_ENTER_SLEEP_MODE = 16,
1: - MIPI_DCS_EXIT_SLEEP_MODE = 17,
1: - MIPI_DCS_ENTER_PARTIAL_MODE = 18,
1: - MIPI_DCS_ENTER_NORMAL_MODE = 19,
1: - MIPI_DCS_GET_IMAGE_CHECKSUM_RGB = 20,
1: - MIPI_DCS_GET_IMAGE_CHECKSUM_CT = 21,
1: - MIPI_DCS_EXIT_INVERT_MODE = 32,
1: - MIPI_DCS_ENTER_INVERT_MODE = 33,
1: - MIPI_DCS_SET_GAMMA_CURVE = 38,
1: - MIPI_DCS_SET_DISPLAY_OFF = 40,
1: - MIPI_DCS_SET_DISPLAY_ON = 41,
1: - MIPI_DCS_SET_COLUMN_ADDRESS = 42,
1: - MIPI_DCS_SET_PAGE_ADDRESS = 43,
1: - MIPI_DCS_WRITE_MEMORY_START = 44,
1: - MIPI_DCS_WRITE_LUT = 45,
1: - MIPI_DCS_READ_MEMORY_START = 46,
1: - MIPI_DCS_SET_PARTIAL_ROWS = 48,
1: - MIPI_DCS_SET_PARTIAL_COLUMNS = 49,
1: - MIPI_DCS_SET_SCROLL_AREA = 51,
1: - MIPI_DCS_SET_TEAR_OFF = 52,
1: - MIPI_DCS_SET_TEAR_ON = 53,
1: - MIPI_DCS_SET_ADDRESS_MODE = 54,
1: - MIPI_DCS_SET_SCROLL_START = 55,
1: - MIPI_DCS_EXIT_IDLE_MODE = 56,
1: - MIPI_DCS_ENTER_IDLE_MODE = 57,
1: - MIPI_DCS_SET_PIXEL_FORMAT = 58,
1: - MIPI_DCS_WRITE_MEMORY_CONTINUE = 60,
1: - MIPI_DCS_SET_3D_CONTROL = 61,
1: - MIPI_DCS_READ_MEMORY_CONTINUE = 62,
1: - MIPI_DCS_GET_3D_CONTROL = 63,
1: - MIPI_DCS_SET_VSYNC_TIMING = 64,
1: - MIPI_DCS_SET_TEAR_SCANLINE = 68,
1: - MIPI_DCS_GET_SCANLINE = 69,
1: - MIPI_DCS_SET_DISPLAY_BRIGHTNESS = 81,
1: - MIPI_DCS_GET_DISPLAY_BRIGHTNESS = 82,
1: - MIPI_DCS_WRITE_CONTROL_DISPLAY = 83,
1: - MIPI_DCS_GET_CONTROL_DISPLAY = 84,
1: - MIPI_DCS_WRITE_POWER_SAVE = 85,
1: - MIPI_DCS_GET_POWER_SAVE = 86,
1: - MIPI_DCS_SET_CABC_MIN_BRIGHTNESS = 94,
1: - MIPI_DCS_GET_CABC_MIN_BRIGHTNESS = 95,
1: - MIPI_DCS_READ_DDB_START = 161,
1: - MIPI_DCS_READ_PPS_START = 162,
1: - MIPI_DCS_READ_DDB_CONTINUE = 168,
1: - MIPI_DCS_READ_PPS_CONTINUE = 169,
1: + MIPI_DSI_V_SYNC_START = 1,
1: + MIPI_DSI_V_SYNC_END = 17,
1: + MIPI_DSI_H_SYNC_START = 33,
1: + MIPI_DSI_H_SYNC_END = 49,
1: + MIPI_DSI_COMPRESSION_MODE = 7,
1: + MIPI_DSI_END_OF_TRANSMISSION = 8,
1: + MIPI_DSI_COLOR_MODE_OFF = 2,
1: + MIPI_DSI_COLOR_MODE_ON = 18,
1: + MIPI_DSI_SHUTDOWN_PERIPHERAL = 34,
1: + MIPI_DSI_TURN_ON_PERIPHERAL = 50,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM = 3,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM = 19,
1: + MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM = 35,
1: + MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM = 4,
1: + MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM = 20,
1: + MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM = 36,
1: + MIPI_DSI_DCS_SHORT_WRITE = 5,
1: + MIPI_DSI_DCS_SHORT_WRITE_PARAM = 21,
1: + MIPI_DSI_DCS_READ = 6,
1: + MIPI_DSI_EXECUTE_QUEUE = 22,
1: + MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 55,
1: + MIPI_DSI_NULL_PACKET = 9,
1: + MIPI_DSI_BLANKING_PACKET = 25,
1: + MIPI_DSI_GENERIC_LONG_WRITE = 41,
1: + MIPI_DSI_DCS_LONG_WRITE = 57,
1: + MIPI_DSI_PICTURE_PARAMETER_SET = 10,
1: + MIPI_DSI_COMPRESSED_PIXEL_STREAM = 11,
1: + MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 = 12,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 = 28,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 = 44,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_30 = 13,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_36 = 29,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12 = 61,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_16 = 14,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_18 = 30,
1: + MIPI_DSI_PIXEL_STREAM_3BYTE_18 = 46,
1: + MIPI_DSI_PACKED_PIXEL_STREAM_24 = 62,
1: +};
1: +
1: +enum {
1: + MIPI_DCS_NOP = 0,
1: + MIPI_DCS_SOFT_RESET = 1,
1: + MIPI_DCS_GET_COMPRESSION_MODE = 3,
1: + MIPI_DCS_GET_DISPLAY_ID = 4,
1: + MIPI_DCS_GET_ERROR_COUNT_ON_DSI = 5,
1: + MIPI_DCS_GET_RED_CHANNEL = 6,
1: + MIPI_DCS_GET_GREEN_CHANNEL = 7,
1: + MIPI_DCS_GET_BLUE_CHANNEL = 8,
1: + MIPI_DCS_GET_DISPLAY_STATUS = 9,
1: + MIPI_DCS_GET_POWER_MODE = 10,
1: + MIPI_DCS_GET_ADDRESS_MODE = 11,
1: + MIPI_DCS_GET_PIXEL_FORMAT = 12,
1: + MIPI_DCS_GET_DISPLAY_MODE = 13,
1: + MIPI_DCS_GET_SIGNAL_MODE = 14,
1: + MIPI_DCS_GET_DIAGNOSTIC_RESULT = 15,
1: + MIPI_DCS_ENTER_SLEEP_MODE = 16,
1: + MIPI_DCS_EXIT_SLEEP_MODE = 17,
1: + MIPI_DCS_ENTER_PARTIAL_MODE = 18,
1: + MIPI_DCS_ENTER_NORMAL_MODE = 19,
1: + MIPI_DCS_GET_IMAGE_CHECKSUM_RGB = 20,
1: + MIPI_DCS_GET_IMAGE_CHECKSUM_CT = 21,
1: + MIPI_DCS_EXIT_INVERT_MODE = 32,
1: + MIPI_DCS_ENTER_INVERT_MODE = 33,
1: + MIPI_DCS_SET_GAMMA_CURVE = 38,
1: + MIPI_DCS_SET_DISPLAY_OFF = 40,
1: + MIPI_DCS_SET_DISPLAY_ON = 41,
1: + MIPI_DCS_SET_COLUMN_ADDRESS = 42,
1: + MIPI_DCS_SET_PAGE_ADDRESS = 43,
1: + MIPI_DCS_WRITE_MEMORY_START = 44,
1: + MIPI_DCS_WRITE_LUT = 45,
1: + MIPI_DCS_READ_MEMORY_START = 46,
1: + MIPI_DCS_SET_PARTIAL_ROWS = 48,
1: + MIPI_DCS_SET_PARTIAL_COLUMNS = 49,
1: + MIPI_DCS_SET_SCROLL_AREA = 51,
1: + MIPI_DCS_SET_TEAR_OFF = 52,
1: + MIPI_DCS_SET_TEAR_ON = 53,
1: + MIPI_DCS_SET_ADDRESS_MODE = 54,
1: + MIPI_DCS_SET_SCROLL_START = 55,
1: + MIPI_DCS_EXIT_IDLE_MODE = 56,
1: + MIPI_DCS_ENTER_IDLE_MODE = 57,
1: + MIPI_DCS_SET_PIXEL_FORMAT = 58,
1: + MIPI_DCS_WRITE_MEMORY_CONTINUE = 60,
1: + MIPI_DCS_SET_3D_CONTROL = 61,
1: + MIPI_DCS_READ_MEMORY_CONTINUE = 62,
1: + MIPI_DCS_GET_3D_CONTROL = 63,
1: + MIPI_DCS_SET_VSYNC_TIMING = 64,
1: + MIPI_DCS_SET_TEAR_SCANLINE = 68,
1: + MIPI_DCS_GET_SCANLINE = 69,
1: + MIPI_DCS_SET_DISPLAY_BRIGHTNESS = 81,
1: + MIPI_DCS_GET_DISPLAY_BRIGHTNESS = 82,
1: + MIPI_DCS_WRITE_CONTROL_DISPLAY = 83,
1: + MIPI_DCS_GET_CONTROL_DISPLAY = 84,
1: + MIPI_DCS_WRITE_POWER_SAVE = 85,
1: + MIPI_DCS_GET_POWER_SAVE = 86,
1: + MIPI_DCS_SET_CABC_MIN_BRIGHTNESS = 94,
1: + MIPI_DCS_GET_CABC_MIN_BRIGHTNESS = 95,
1: + MIPI_DCS_READ_DDB_START = 161,
1: + MIPI_DCS_READ_PPS_START = 162,
1: + MIPI_DCS_READ_DDB_CONTINUE = 168,
1: + MIPI_DCS_READ_PPS_CONTINUE = 169,
1: };
1:
1: struct drm_dmi_panel_orientation_data {
1: - int width;
1: - int height;
1: - const char * const *bios_dates;
1: - int orientation;
1: + int width;
1: + int height;
1: + const char *const *bios_dates;
1: + int orientation;
1: };
1:
1: struct vga_device {
1: - struct list_head list;
1: - struct pci_dev *pdev;
1: - unsigned int decodes;
1: - unsigned int owns;
1: - unsigned int locks;
1: - unsigned int io_lock_cnt;
1: - unsigned int mem_lock_cnt;
1: - unsigned int io_norm_cnt;
1: - unsigned int mem_norm_cnt;
1: - bool bridge_has_one_vga;
1: - void *cookie;
1: - void (*irq_set_state)(void *, bool);
1: - unsigned int (*set_vga_decode)(void *, bool);
1: + struct list_head list;
1: + struct pci_dev *pdev;
1: + unsigned int decodes;
1: + unsigned int owns;
1: + unsigned int locks;
1: + unsigned int io_lock_cnt;
1: + unsigned int mem_lock_cnt;
1: + unsigned int io_norm_cnt;
1: + unsigned int mem_norm_cnt;
1: + bool bridge_has_one_vga;
1: + void *cookie;
1: + void (*irq_set_state)(void *, bool);
1: + unsigned int (*set_vga_decode)(void *, bool);
1: };
1:
1: struct vga_arb_user_card {
1: - struct pci_dev *pdev;
1: - unsigned int mem_cnt;
1: - unsigned int io_cnt;
1: + struct pci_dev *pdev;
1: + unsigned int mem_cnt;
1: + unsigned int io_cnt;
1: };
1:
1: struct vga_arb_private {
1: - struct list_head list;
1: - struct pci_dev *target;
1: - struct vga_arb_user_card cards[16];
1: - spinlock_t lock;
1: + struct list_head list;
1: + struct pci_dev *target;
1: + struct vga_arb_user_card cards[16];
1: + spinlock_t lock;
1: };
1:
1: struct cb_id {
1: - __u32 idx;
1: - __u32 val;
1: + __u32 idx;
1: + __u32 val;
1: };
1:
1: struct cn_msg {
1: - struct cb_id id;
1: - __u32 seq;
1: - __u32 ack;
1: - __u16 len;
1: - __u16 flags;
1: - __u8 data[0];
1: + struct cb_id id;
1: + __u32 seq;
1: + __u32 ack;
1: + __u16 len;
1: + __u16 flags;
1: + __u8 data[0];
1: };
1:
1: struct cn_queue_dev {
1: - atomic_t refcnt;
1: - unsigned char name[32];
1: - struct list_head queue_list;
1: - spinlock_t queue_lock;
1: - struct sock *nls;
1: + atomic_t refcnt;
1: + unsigned char name[32];
1: + struct list_head queue_list;
1: + spinlock_t queue_lock;
1: + struct sock *nls;
1: };
1:
1: struct cn_callback_id {
1: - unsigned char name[32];
1: - struct cb_id id;
1: + unsigned char name[32];
1: + struct cb_id id;
1: };
1:
1: struct cn_callback_entry {
1: - struct list_head callback_entry;
1: - refcount_t refcnt;
1: - struct cn_queue_dev *pdev;
1: - struct cn_callback_id id;
1: - void (*callback)(struct cn_msg *, struct netlink_skb_parms *);
1: - u32 seq;
1: - u32 group;
1: + struct list_head callback_entry;
1: + refcount_t refcnt;
1: + struct cn_queue_dev *pdev;
1: + struct cn_callback_id id;
1: + void (*callback)(struct cn_msg *, struct netlink_skb_parms *);
1: + u32 seq;
1: + u32 group;
1: };
1:
1: struct cn_dev {
1: - struct cb_id id;
1: - u32 seq;
1: - u32 groups;
1: - struct sock *nls;
1: - struct cn_queue_dev *cbdev;
1: + struct cb_id id;
1: + u32 seq;
1: + u32 groups;
1: + struct sock *nls;
1: + struct cn_queue_dev *cbdev;
1: };
1:
1: enum proc_cn_mcast_op {
1: - PROC_CN_MCAST_LISTEN = 1,
1: - PROC_CN_MCAST_IGNORE = 2,
1: + PROC_CN_MCAST_LISTEN = 1,
1: + PROC_CN_MCAST_IGNORE = 2,
1: };
1:
1: struct fork_proc_event {
1: - __kernel_pid_t parent_pid;
1: - __kernel_pid_t parent_tgid;
1: - __kernel_pid_t child_pid;
1: - __kernel_pid_t child_tgid;
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: + __kernel_pid_t child_pid;
1: + __kernel_pid_t child_tgid;
1: };
1:
1: struct exec_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: };
1:
1: struct id_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: - union {
1: - __u32 ruid;
1: - __u32 rgid;
1: - } r;
1: - union {
1: - __u32 euid;
1: - __u32 egid;
1: - } e;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + union {
1: + __u32 ruid;
1: + __u32 rgid;
1: + } r;
1: + union {
1: + __u32 euid;
1: + __u32 egid;
1: + } e;
1: };
1:
1: struct sid_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: };
1:
1: struct ptrace_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: - __kernel_pid_t tracer_pid;
1: - __kernel_pid_t tracer_tgid;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __kernel_pid_t tracer_pid;
1: + __kernel_pid_t tracer_tgid;
1: };
1:
1: struct comm_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: - char comm[16];
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + char comm[16];
1: };
1:
1: struct coredump_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: - __kernel_pid_t parent_pid;
1: - __kernel_pid_t parent_tgid;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: };
1:
1: struct exit_proc_event {
1: - __kernel_pid_t process_pid;
1: - __kernel_pid_t process_tgid;
1: - __u32 exit_code;
1: - __u32 exit_signal;
1: - __kernel_pid_t parent_pid;
1: - __kernel_pid_t parent_tgid;
1: + __kernel_pid_t process_pid;
1: + __kernel_pid_t process_tgid;
1: + __u32 exit_code;
1: + __u32 exit_signal;
1: + __kernel_pid_t parent_pid;
1: + __kernel_pid_t parent_tgid;
1: };
1:
1: struct proc_event {
1: - enum what what;
1: - __u32 cpu;
1: - __u64 timestamp_ns;
1: - union {
1: - struct {
1: - __u32 err;
1: - } ack;
1: - struct fork_proc_event fork;
1: - struct exec_proc_event exec;
1: - struct id_proc_event id;
1: - struct sid_proc_event sid;
1: - struct ptrace_proc_event ptrace;
1: - struct comm_proc_event comm;
1: - struct coredump_proc_event coredump;
1: - struct exit_proc_event exit;
1: - } event_data;
1: + enum what what;
1: + __u32 cpu;
1: + __u64 timestamp_ns;
1: + union {
1: + struct {
1: + __u32 err;
1: + } ack;
1: + struct fork_proc_event fork;
1: + struct exec_proc_event exec;
1: + struct id_proc_event id;
1: + struct sid_proc_event sid;
1: + struct ptrace_proc_event ptrace;
1: + struct comm_proc_event comm;
1: + struct coredump_proc_event coredump;
1: + struct exit_proc_event exit;
1: + } event_data;
1: };
1:
1: struct local_event {
1: - local_lock_t lock;
1: - __u32 count;
1: + local_lock_t lock;
1: + __u32 count;
1: };
1:
1: struct nvm_ioctl_info_tgt {
1: - __u32 version[3];
1: - __u32 reserved;
1: - char tgtname[48];
1: + __u32 version[3];
1: + __u32 reserved;
1: + char tgtname[48];
1: };
1:
1: struct nvm_ioctl_info {
1: - __u32 version[3];
1: - __u16 tgtsize;
1: - __u16 reserved16;
1: - __u32 reserved[12];
1: - struct nvm_ioctl_info_tgt tgts[63];
1: + __u32 version[3];
1: + __u16 tgtsize;
1: + __u16 reserved16;
1: + __u32 reserved[12];
1: + struct nvm_ioctl_info_tgt tgts[63];
1: };
1:
1: struct nvm_ioctl_device_info {
1: - char devname[32];
1: - char bmname[48];
1: - __u32 bmversion[3];
1: - __u32 flags;
1: - __u32 reserved[8];
1: + char devname[32];
1: + char bmname[48];
1: + __u32 bmversion[3];
1: + __u32 flags;
1: + __u32 reserved[8];
1: };
1:
1: struct nvm_ioctl_get_devices {
1: - __u32 nr_devices;
1: - __u32 reserved[31];
1: - struct nvm_ioctl_device_info info[31];
1: + __u32 nr_devices;
1: + __u32 reserved[31];
1: + struct nvm_ioctl_device_info info[31];
1: };
1:
1: struct nvm_ioctl_create_simple {
1: - __u32 lun_begin;
1: - __u32 lun_end;
1: + __u32 lun_begin;
1: + __u32 lun_end;
1: };
1:
1: struct nvm_ioctl_create_extended {
1: - __u16 lun_begin;
1: - __u16 lun_end;
1: - __u16 op;
1: - __u16 rsv;
1: + __u16 lun_begin;
1: + __u16 lun_end;
1: + __u16 op;
1: + __u16 rsv;
1: };
1:
1: enum {
1: - NVM_CONFIG_TYPE_SIMPLE = 0,
1: - NVM_CONFIG_TYPE_EXTENDED = 1,
1: + NVM_CONFIG_TYPE_SIMPLE = 0,
1: + NVM_CONFIG_TYPE_EXTENDED = 1,
1: };
1:
1: struct nvm_ioctl_create_conf {
1: - __u32 type;
1: - union {
1: - struct nvm_ioctl_create_simple s;
1: - struct nvm_ioctl_create_extended e;
1: - };
1: + __u32 type;
1: + union {
1: + struct nvm_ioctl_create_simple s;
1: + struct nvm_ioctl_create_extended e;
1: + };
1: };
1:
1: enum {
1: - NVM_TARGET_FACTORY = 1,
1: + NVM_TARGET_FACTORY = 1,
1: };
1:
1: struct nvm_ioctl_create {
1: - char dev[32];
1: - char tgttype[48];
1: - char tgtname[32];
1: - __u32 flags;
1: - struct nvm_ioctl_create_conf conf;
1: + char dev[32];
1: + char tgttype[48];
1: + char tgtname[32];
1: + __u32 flags;
1: + struct nvm_ioctl_create_conf conf;
1: };
1:
1: struct nvm_ioctl_remove {
1: - char tgtname[32];
1: - __u32 flags;
1: + char tgtname[32];
1: + __u32 flags;
1: };
1:
1: struct nvm_ioctl_dev_init {
1: - char dev[32];
1: - char mmtype[8];
1: - __u32 flags;
1: + char dev[32];
1: + char mmtype[8];
1: + __u32 flags;
1: };
1:
1: enum {
1: - NVM_FACTORY_ERASE_ONLY_USER = 1,
1: - NVM_FACTORY_RESET_HOST_BLKS = 2,
1: - NVM_FACTORY_RESET_GRWN_BBLKS = 4,
1: - NVM_FACTORY_NR_BITS = 8,
1: + NVM_FACTORY_ERASE_ONLY_USER = 1,
1: + NVM_FACTORY_RESET_HOST_BLKS = 2,
1: + NVM_FACTORY_RESET_GRWN_BBLKS = 4,
1: + NVM_FACTORY_NR_BITS = 8,
1: };
1:
1: struct nvm_ioctl_dev_factory {
1: - char dev[32];
1: - __u32 flags;
1: + char dev[32];
1: + __u32 flags;
1: };
1:
1: enum {
1: - NVM_INFO_CMD = 32,
1: - NVM_GET_DEVICES_CMD = 33,
1: - NVM_DEV_CREATE_CMD = 34,
1: - NVM_DEV_REMOVE_CMD = 35,
1: - NVM_DEV_INIT_CMD = 36,
1: - NVM_DEV_FACTORY_CMD = 37,
1: - NVM_DEV_VIO_ADMIN_CMD = 65,
1: - NVM_DEV_VIO_CMD = 66,
1: - NVM_DEV_VIO_USER_CMD = 67,
1: + NVM_INFO_CMD = 32,
1: + NVM_GET_DEVICES_CMD = 33,
1: + NVM_DEV_CREATE_CMD = 34,
1: + NVM_DEV_REMOVE_CMD = 35,
1: + NVM_DEV_INIT_CMD = 36,
1: + NVM_DEV_FACTORY_CMD = 37,
1: + NVM_DEV_VIO_ADMIN_CMD = 65,
1: + NVM_DEV_VIO_CMD = 66,
1: + NVM_DEV_VIO_USER_CMD = 67,
1: };
1:
1: enum {
1: - NVM_OCSSD_SPEC_12 = 12,
1: - NVM_OCSSD_SPEC_20 = 20,
1: + NVM_OCSSD_SPEC_12 = 12,
1: + NVM_OCSSD_SPEC_20 = 20,
1: };
1:
1: struct ppa_addr {
1: - union {
1: - struct {
1: - u64 ch: 8;
1: - u64 lun: 8;
1: - u64 blk: 16;
1: - u64 reserved: 32;
1: - } a;
1: - struct {
1: - u64 ch: 8;
1: - u64 lun: 8;
1: - u64 blk: 16;
1: - u64 pg: 16;
1: - u64 pl: 4;
1: - u64 sec: 4;
1: - u64 reserved: 8;
1: - } g;
1: - struct {
1: - u64 grp: 8;
1: - u64 pu: 8;
1: - u64 chk: 16;
1: - u64 sec: 24;
1: - u64 reserved: 8;
1: - } m;
1: - struct {
1: - u64 line: 63;
1: - u64 is_cached: 1;
1: - } c;
1: - u64 ppa;
1: - };
1: + union {
1: + struct {
1: + u64 ch : 8;
1: + u64 lun : 8;
1: + u64 blk : 16;
1: + u64 reserved : 32;
1: + } a;
1: + struct {
1: + u64 ch : 8;
1: + u64 lun : 8;
1: + u64 blk : 16;
1: + u64 pg : 16;
1: + u64 pl : 4;
1: + u64 sec : 4;
1: + u64 reserved : 8;
1: + } g;
1: + struct {
1: + u64 grp : 8;
1: + u64 pu : 8;
1: + u64 chk : 16;
1: + u64 sec : 24;
1: + u64 reserved : 8;
1: + } m;
1: + struct {
1: + u64 line : 63;
1: + u64 is_cached : 1;
1: + } c;
1: + u64 ppa;
1: + };
1: };
1:
1: struct nvm_dev;
1: @@ -82312,82 +83356,82 @@ struct nvm_dev;
1: typedef int nvm_id_fn(struct nvm_dev *);
1:
1: struct nvm_addrf {
1: - u8 ch_len;
1: - u8 lun_len;
1: - u8 chk_len;
1: - u8 sec_len;
1: - u8 rsv_len[2];
1: - u8 ch_offset;
1: - u8 lun_offset;
1: - u8 chk_offset;
1: - u8 sec_offset;
1: - u8 rsv_off[2];
1: - u64 ch_mask;
1: - u64 lun_mask;
1: - u64 chk_mask;
1: - u64 sec_mask;
1: - u64 rsv_mask[2];
1: + u8 ch_len;
1: + u8 lun_len;
1: + u8 chk_len;
1: + u8 sec_len;
1: + u8 rsv_len[2];
1: + u8 ch_offset;
1: + u8 lun_offset;
1: + u8 chk_offset;
1: + u8 sec_offset;
1: + u8 rsv_off[2];
1: + u64 ch_mask;
1: + u64 lun_mask;
1: + u64 chk_mask;
1: + u64 sec_mask;
1: + u64 rsv_mask[2];
1: };
1:
1: struct nvm_geo {
1: - u8 major_ver_id;
1: - u8 minor_ver_id;
1: - u8 version;
1: - int num_ch;
1: - int num_lun;
1: - int all_luns;
1: - int all_chunks;
1: - int op;
1: - sector_t total_secs;
1: - u32 num_chk;
1: - u32 clba;
1: - u16 csecs;
1: - u16 sos;
1: - bool ext;
1: - u32 mdts;
1: - u32 ws_min;
1: - u32 ws_opt;
1: - u32 mw_cunits;
1: - u32 maxoc;
1: - u32 maxocpu;
1: - u32 mccap;
1: - u32 trdt;
1: - u32 trdm;
1: - u32 tprt;
1: - u32 tprm;
1: - u32 tbet;
1: - u32 tbem;
1: - struct nvm_addrf addrf;
1: - u8 vmnt;
1: - u32 cap;
1: - u32 dom;
1: - u8 mtype;
1: - u8 fmtype;
1: - u16 cpar;
1: - u32 mpos;
1: - u8 num_pln;
1: - u8 pln_mode;
1: - u16 num_pg;
1: - u16 fpg_sz;
1: + u8 major_ver_id;
1: + u8 minor_ver_id;
1: + u8 version;
1: + int num_ch;
1: + int num_lun;
1: + int all_luns;
1: + int all_chunks;
1: + int op;
1: + sector_t total_secs;
1: + u32 num_chk;
1: + u32 clba;
1: + u16 csecs;
1: + u16 sos;
1: + bool ext;
1: + u32 mdts;
1: + u32 ws_min;
1: + u32 ws_opt;
1: + u32 mw_cunits;
1: + u32 maxoc;
1: + u32 maxocpu;
1: + u32 mccap;
1: + u32 trdt;
1: + u32 trdm;
1: + u32 tprt;
1: + u32 tprm;
1: + u32 tbet;
1: + u32 tbem;
1: + struct nvm_addrf addrf;
1: + u8 vmnt;
1: + u32 cap;
1: + u32 dom;
1: + u8 mtype;
1: + u8 fmtype;
1: + u16 cpar;
1: + u32 mpos;
1: + u8 num_pln;
1: + u8 pln_mode;
1: + u16 num_pg;
1: + u16 fpg_sz;
1: };
1:
1: struct nvm_dev_ops;
1:
1: struct nvm_dev {
1: - struct nvm_dev_ops *ops;
1: - struct list_head devices;
1: - struct nvm_geo geo;
1: - long unsigned int *lun_map;
1: - void *dma_pool;
1: - struct request_queue *q;
1: - char name[32];
1: - void *private_data;
1: - struct kref ref;
1: - void *rmap;
1: - struct mutex mlock;
1: - spinlock_t lock;
1: - struct list_head area_list;
1: - struct list_head targets;
1: + struct nvm_dev_ops *ops;
1: + struct list_head devices;
1: + struct nvm_geo geo;
1: + long unsigned int *lun_map;
1: + void *dma_pool;
1: + struct request_queue *q;
1: + char name[32];
1: + void *private_data;
1: + struct kref ref;
1: + void *rmap;
1: + struct mutex mlock;
1: + spinlock_t lock;
1: + struct list_head area_list;
1: + struct list_head targets;
1: };
1:
1: typedef int nvm_op_bb_tbl_fn(struct nvm_dev *, struct ppa_addr, u8 *);
1: @@ -82396,16 +83440,17 @@ typedef int nvm_op_set_bb_fn(struct nvm_dev *, struct ppa_addr *, int, int);
1:
1: struct nvm_chk_meta;
1:
1: -typedef int nvm_get_chk_meta_fn(struct nvm_dev *, sector_t, int, struct nvm_chk_meta *);
1: +typedef int nvm_get_chk_meta_fn(struct nvm_dev *, sector_t, int,
1: + struct nvm_chk_meta *);
1:
1: struct nvm_chk_meta {
1: - u8 state;
1: - u8 type;
1: - u8 wi;
1: - u8 rsvd[5];
1: - u64 slba;
1: - u64 cnlb;
1: - u64 wp;
1: + u8 state;
1: + u8 type;
1: + u8 wi;
1: + u8 rsvd[5];
1: + u64 slba;
1: + u64 cnlb;
1: + u64 wp;
1: };
1:
1: struct nvm_rq;
1: @@ -82417,130 +83462,131 @@ typedef void nvm_end_io_fn(struct nvm_rq *);
1: struct nvm_tgt_dev;
1:
1: struct nvm_rq {
1: - struct nvm_tgt_dev *dev;
1: - struct bio *bio;
1: - union {
1: - struct ppa_addr ppa_addr;
1: - dma_addr_t dma_ppa_list;
1: - };
1: - struct ppa_addr *ppa_list;
1: - void *meta_list;
1: - dma_addr_t dma_meta_list;
1: - nvm_end_io_fn *end_io;
1: - uint8_t opcode;
1: - uint16_t nr_ppas;
1: - uint16_t flags;
1: - u64 ppa_status;
1: - int error;
1: - int is_seq;
1: - void *private;
1: + struct nvm_tgt_dev *dev;
1: + struct bio *bio;
1: + union {
1: + struct ppa_addr ppa_addr;
1: + dma_addr_t dma_ppa_list;
1: + };
1: + struct ppa_addr *ppa_list;
1: + void *meta_list;
1: + dma_addr_t dma_meta_list;
1: + nvm_end_io_fn *end_io;
1: + uint8_t opcode;
1: + uint16_t nr_ppas;
1: + uint16_t flags;
1: + u64 ppa_status;
1: + int error;
1: + int is_seq;
1: + void *private;
1: };
1:
1: typedef void *nvm_create_dma_pool_fn(struct nvm_dev *, char *, int);
1:
1: typedef void nvm_destroy_dma_pool_fn(void *);
1:
1: -typedef void *nvm_dev_dma_alloc_fn(struct nvm_dev *, void *, gfp_t, dma_addr_t *);
1: +typedef void *nvm_dev_dma_alloc_fn(struct nvm_dev *, void *, gfp_t,
1: + dma_addr_t *);
1:
1: typedef void nvm_dev_dma_free_fn(void *, void *, dma_addr_t);
1:
1: struct nvm_dev_ops {
1: - nvm_id_fn *identity;
1: - nvm_op_bb_tbl_fn *get_bb_tbl;
1: - nvm_op_set_bb_fn *set_bb_tbl;
1: - nvm_get_chk_meta_fn *get_chk_meta;
1: - nvm_submit_io_fn *submit_io;
1: - nvm_create_dma_pool_fn *create_dma_pool;
1: - nvm_destroy_dma_pool_fn *destroy_dma_pool;
1: - nvm_dev_dma_alloc_fn *dev_dma_alloc;
1: - nvm_dev_dma_free_fn *dev_dma_free;
1: -};
1: -
1: -enum {
1: - NVM_RSP_L2P = 1,
1: - NVM_RSP_ECC = 2,
1: - NVM_ADDRMODE_LINEAR = 0,
1: - NVM_ADDRMODE_CHANNEL = 1,
1: - NVM_PLANE_SINGLE = 1,
1: - NVM_PLANE_DOUBLE = 2,
1: - NVM_PLANE_QUAD = 4,
1: - NVM_RSP_SUCCESS = 0,
1: - NVM_RSP_NOT_CHANGEABLE = 1,
1: - NVM_RSP_ERR_FAILWRITE = 16639,
1: - NVM_RSP_ERR_EMPTYPAGE = 17151,
1: - NVM_RSP_ERR_FAILECC = 17025,
1: - NVM_RSP_ERR_FAILCRC = 16388,
1: - NVM_RSP_WARN_HIGHECC = 18176,
1: - NVM_OP_PWRITE = 145,
1: - NVM_OP_PREAD = 146,
1: - NVM_OP_ERASE = 144,
1: - NVM_IO_SNGL_ACCESS = 0,
1: - NVM_IO_DUAL_ACCESS = 1,
1: - NVM_IO_QUAD_ACCESS = 2,
1: - NVM_IO_SUSPEND = 128,
1: - NVM_IO_SLC_MODE = 256,
1: - NVM_IO_SCRAMBLE_ENABLE = 512,
1: - NVM_BLK_T_FREE = 0,
1: - NVM_BLK_T_BAD = 1,
1: - NVM_BLK_T_GRWN_BAD = 2,
1: - NVM_BLK_T_DEV = 4,
1: - NVM_BLK_T_HOST = 8,
1: - NVM_ID_CAP_SLC = 1,
1: - NVM_ID_CAP_CMD_SUSPEND = 2,
1: - NVM_ID_CAP_SCRAMBLE = 4,
1: - NVM_ID_CAP_ENCRYPT = 8,
1: - NVM_ID_FMTYPE_SLC = 0,
1: - NVM_ID_FMTYPE_MLC = 1,
1: - NVM_ID_DCAP_BBLKMGMT = 1,
1: - NVM_UD_DCAP_ECC = 2,
1: + nvm_id_fn *identity;
1: + nvm_op_bb_tbl_fn *get_bb_tbl;
1: + nvm_op_set_bb_fn *set_bb_tbl;
1: + nvm_get_chk_meta_fn *get_chk_meta;
1: + nvm_submit_io_fn *submit_io;
1: + nvm_create_dma_pool_fn *create_dma_pool;
1: + nvm_destroy_dma_pool_fn *destroy_dma_pool;
1: + nvm_dev_dma_alloc_fn *dev_dma_alloc;
1: + nvm_dev_dma_free_fn *dev_dma_free;
1: +};
1: +
1: +enum {
1: + NVM_RSP_L2P = 1,
1: + NVM_RSP_ECC = 2,
1: + NVM_ADDRMODE_LINEAR = 0,
1: + NVM_ADDRMODE_CHANNEL = 1,
1: + NVM_PLANE_SINGLE = 1,
1: + NVM_PLANE_DOUBLE = 2,
1: + NVM_PLANE_QUAD = 4,
1: + NVM_RSP_SUCCESS = 0,
1: + NVM_RSP_NOT_CHANGEABLE = 1,
1: + NVM_RSP_ERR_FAILWRITE = 16639,
1: + NVM_RSP_ERR_EMPTYPAGE = 17151,
1: + NVM_RSP_ERR_FAILECC = 17025,
1: + NVM_RSP_ERR_FAILCRC = 16388,
1: + NVM_RSP_WARN_HIGHECC = 18176,
1: + NVM_OP_PWRITE = 145,
1: + NVM_OP_PREAD = 146,
1: + NVM_OP_ERASE = 144,
1: + NVM_IO_SNGL_ACCESS = 0,
1: + NVM_IO_DUAL_ACCESS = 1,
1: + NVM_IO_QUAD_ACCESS = 2,
1: + NVM_IO_SUSPEND = 128,
1: + NVM_IO_SLC_MODE = 256,
1: + NVM_IO_SCRAMBLE_ENABLE = 512,
1: + NVM_BLK_T_FREE = 0,
1: + NVM_BLK_T_BAD = 1,
1: + NVM_BLK_T_GRWN_BAD = 2,
1: + NVM_BLK_T_DEV = 4,
1: + NVM_BLK_T_HOST = 8,
1: + NVM_ID_CAP_SLC = 1,
1: + NVM_ID_CAP_CMD_SUSPEND = 2,
1: + NVM_ID_CAP_SCRAMBLE = 4,
1: + NVM_ID_CAP_ENCRYPT = 8,
1: + NVM_ID_FMTYPE_SLC = 0,
1: + NVM_ID_FMTYPE_MLC = 1,
1: + NVM_ID_DCAP_BBLKMGMT = 1,
1: + NVM_UD_DCAP_ECC = 2,
1: };
1:
1: struct nvm_addrf_12 {
1: - u8 ch_len;
1: - u8 lun_len;
1: - u8 blk_len;
1: - u8 pg_len;
1: - u8 pln_len;
1: - u8 sec_len;
1: - u8 ch_offset;
1: - u8 lun_offset;
1: - u8 blk_offset;
1: - u8 pg_offset;
1: - u8 pln_offset;
1: - u8 sec_offset;
1: - u64 ch_mask;
1: - u64 lun_mask;
1: - u64 blk_mask;
1: - u64 pg_mask;
1: - u64 pln_mask;
1: - u64 sec_mask;
1: -};
1: -
1: -enum {
1: - NVM_CHK_ST_FREE = 1,
1: - NVM_CHK_ST_CLOSED = 2,
1: - NVM_CHK_ST_OPEN = 4,
1: - NVM_CHK_ST_OFFLINE = 8,
1: - NVM_CHK_TP_W_SEQ = 1,
1: - NVM_CHK_TP_W_RAN = 2,
1: - NVM_CHK_TP_SZ_SPEC = 16,
1: + u8 ch_len;
1: + u8 lun_len;
1: + u8 blk_len;
1: + u8 pg_len;
1: + u8 pln_len;
1: + u8 sec_len;
1: + u8 ch_offset;
1: + u8 lun_offset;
1: + u8 blk_offset;
1: + u8 pg_offset;
1: + u8 pln_offset;
1: + u8 sec_offset;
1: + u64 ch_mask;
1: + u64 lun_mask;
1: + u64 blk_mask;
1: + u64 pg_mask;
1: + u64 pln_mask;
1: + u64 sec_mask;
1: +};
1: +
1: +enum {
1: + NVM_CHK_ST_FREE = 1,
1: + NVM_CHK_ST_CLOSED = 2,
1: + NVM_CHK_ST_OPEN = 4,
1: + NVM_CHK_ST_OFFLINE = 8,
1: + NVM_CHK_TP_W_SEQ = 1,
1: + NVM_CHK_TP_W_RAN = 2,
1: + NVM_CHK_TP_SZ_SPEC = 16,
1: };
1:
1: struct nvm_tgt_type;
1:
1: struct nvm_target {
1: - struct list_head list;
1: - struct nvm_tgt_dev *dev;
1: - struct nvm_tgt_type *type;
1: - struct gendisk *disk;
1: + struct list_head list;
1: + struct nvm_tgt_dev *dev;
1: + struct nvm_tgt_type *type;
1: + struct gendisk *disk;
1: };
1:
1: struct nvm_tgt_dev {
1: - struct nvm_geo geo;
1: - struct ppa_addr *luns;
1: - struct request_queue *q;
1: - struct nvm_dev *parent;
1: - void *map;
1: + struct nvm_geo geo;
1: + struct ppa_addr *luns;
1: + struct request_queue *q;
1: + struct nvm_dev *parent;
1: + void *map;
1: };
1:
1: typedef sector_t nvm_tgt_capacity_fn(void *);
1: @@ -82554,342 +83600,344 @@ typedef int nvm_tgt_sysfs_init_fn(struct gendisk *);
1: typedef void nvm_tgt_sysfs_exit_fn(struct gendisk *);
1:
1: struct nvm_tgt_type {
1: - const char *name;
1: - unsigned int version[3];
1: - int flags;
1: - const struct block_device_operations *bops;
1: - nvm_tgt_capacity_fn *capacity;
1: - nvm_tgt_init_fn *init;
1: - nvm_tgt_exit_fn *exit;
1: - nvm_tgt_sysfs_init_fn *sysfs_init;
1: - nvm_tgt_sysfs_exit_fn *sysfs_exit;
1: - struct list_head list;
1: - struct module *owner;
1: + const char *name;
1: + unsigned int version[3];
1: + int flags;
1: + const struct block_device_operations *bops;
1: + nvm_tgt_capacity_fn *capacity;
1: + nvm_tgt_init_fn *init;
1: + nvm_tgt_exit_fn *exit;
1: + nvm_tgt_sysfs_init_fn *sysfs_init;
1: + nvm_tgt_sysfs_exit_fn *sysfs_exit;
1: + struct list_head list;
1: + struct module *owner;
1: };
1:
1: enum {
1: - NVM_TGT_F_DEV_L2P = 0,
1: - NVM_TGT_F_HOST_L2P = 1,
1: + NVM_TGT_F_DEV_L2P = 0,
1: + NVM_TGT_F_HOST_L2P = 1,
1: };
1:
1: struct nvm_ch_map {
1: - int ch_off;
1: - int num_lun;
1: - int *lun_offs;
1: + int ch_off;
1: + int num_lun;
1: + int *lun_offs;
1: };
1:
1: struct nvm_dev_map {
1: - struct nvm_ch_map *chnls;
1: - int num_ch;
1: + struct nvm_ch_map *chnls;
1: + int num_ch;
1: };
1:
1: struct component_ops {
1: - int (*bind)(struct device *, struct device *, void *);
1: - void (*unbind)(struct device *, struct device *, void *);
1: + int (*bind)(struct device *, struct device *, void *);
1: + void (*unbind)(struct device *, struct device *, void *);
1: };
1:
1: struct component_master_ops {
1: - int (*bind)(struct device *);
1: - void (*unbind)(struct device *);
1: + int (*bind)(struct device *);
1: + void (*unbind)(struct device *);
1: };
1:
1: struct component;
1:
1: struct component_match_array {
1: - void *data;
1: - int (*compare)(struct device *, void *);
1: - int (*compare_typed)(struct device *, int, void *);
1: - void (*release)(struct device *, void *);
1: - struct component *component;
1: - bool duplicate;
1: + void *data;
1: + int (*compare)(struct device *, void *);
1: + int (*compare_typed)(struct device *, int, void *);
1: + void (*release)(struct device *, void *);
1: + struct component *component;
1: + bool duplicate;
1: };
1:
1: struct master;
1:
1: struct component {
1: - struct list_head node;
1: - struct master *master;
1: - bool bound;
1: - const struct component_ops *ops;
1: - int subcomponent;
1: - struct device *dev;
1: + struct list_head node;
1: + struct master *master;
1: + bool bound;
1: + const struct component_ops *ops;
1: + int subcomponent;
1: + struct device *dev;
1: };
1:
1: struct component_match {
1: - size_t alloc;
1: - size_t num;
1: - struct component_match_array *compare;
1: + size_t alloc;
1: + size_t num;
1: + struct component_match_array *compare;
1: };
1:
1: struct master {
1: - struct list_head node;
1: - bool bound;
1: - const struct component_master_ops *ops;
1: - struct device *dev;
1: - struct component_match *match;
1: - struct dentry *dentry;
1: + struct list_head node;
1: + bool bound;
1: + const struct component_master_ops *ops;
1: + struct device *dev;
1: + struct component_match *match;
1: + struct dentry *dentry;
1: };
1:
1: struct wake_irq {
1: - struct device *dev;
1: - unsigned int status;
1: - int irq;
1: - const char *name;
1: + struct device *dev;
1: + unsigned int status;
1: + int irq;
1: + const char *name;
1: };
1:
1: enum dpm_order {
1: - DPM_ORDER_NONE = 0,
1: - DPM_ORDER_DEV_AFTER_PARENT = 1,
1: - DPM_ORDER_PARENT_BEFORE_DEV = 2,
1: - DPM_ORDER_DEV_LAST = 3,
1: + DPM_ORDER_NONE = 0,
1: + DPM_ORDER_DEV_AFTER_PARENT = 1,
1: + DPM_ORDER_PARENT_BEFORE_DEV = 2,
1: + DPM_ORDER_DEV_LAST = 3,
1: };
1:
1: struct subsys_private {
1: - struct kset subsys;
1: - struct kset *devices_kset;
1: - struct list_head interfaces;
1: - struct mutex mutex;
1: - struct kset *drivers_kset;
1: - struct klist klist_devices;
1: - struct klist klist_drivers;
1: - struct blocking_notifier_head bus_notifier;
1: - unsigned int drivers_autoprobe: 1;
1: - struct bus_type *bus;
1: - struct kset glue_dirs;
1: - struct class *class;
1: + struct kset subsys;
1: + struct kset *devices_kset;
1: + struct list_head interfaces;
1: + struct mutex mutex;
1: + struct kset *drivers_kset;
1: + struct klist klist_devices;
1: + struct klist klist_drivers;
1: + struct blocking_notifier_head bus_notifier;
1: + unsigned int drivers_autoprobe : 1;
1: + struct bus_type *bus;
1: + struct kset glue_dirs;
1: + struct class *class;
1: };
1:
1: struct driver_private {
1: - struct kobject kobj;
1: - struct klist klist_devices;
1: - struct klist_node knode_bus;
1: - struct module_kobject *mkobj;
1: - struct device_driver *driver;
1: + struct kobject kobj;
1: + struct klist klist_devices;
1: + struct klist_node knode_bus;
1: + struct module_kobject *mkobj;
1: + struct device_driver *driver;
1: };
1:
1: struct device_private {
1: - struct klist klist_children;
1: - struct klist_node knode_parent;
1: - struct klist_node knode_driver;
1: - struct klist_node knode_bus;
1: - struct klist_node knode_class;
1: - struct list_head deferred_probe;
1: - struct device_driver *async_driver;
1: - char *deferred_probe_reason;
1: - struct device *device;
1: - u8 dead: 1;
1: + struct klist klist_children;
1: + struct klist_node knode_parent;
1: + struct klist_node knode_driver;
1: + struct klist_node knode_bus;
1: + struct klist_node knode_class;
1: + struct list_head deferred_probe;
1: + struct device_driver *async_driver;
1: + char *deferred_probe_reason;
1: + struct device *device;
1: + u8 dead : 1;
1: };
1:
1: union device_attr_group_devres {
1: - const struct attribute_group *group;
1: - const struct attribute_group **groups;
1: + const struct attribute_group *group;
1: + const struct attribute_group **groups;
1: };
1:
1: struct class_dir {
1: - struct kobject kobj;
1: - struct class *class;
1: + struct kobject kobj;
1: + struct class *class;
1: };
1:
1: struct root_device {
1: - struct device dev;
1: - struct module *owner;
1: + struct device dev;
1: + struct module *owner;
1: };
1:
1: struct subsys_dev_iter {
1: - struct klist_iter ki;
1: - const struct device_type *type;
1: + struct klist_iter ki;
1: + const struct device_type *type;
1: };
1:
1: struct subsys_interface {
1: - const char *name;
1: - struct bus_type *subsys;
1: - struct list_head node;
1: - int (*add_dev)(struct device *, struct subsys_interface *);
1: - void (*remove_dev)(struct device *, struct subsys_interface *);
1: + const char *name;
1: + struct bus_type *subsys;
1: + struct list_head node;
1: + int (*add_dev)(struct device *, struct subsys_interface *);
1: + void (*remove_dev)(struct device *, struct subsys_interface *);
1: };
1:
1: struct device_attach_data {
1: - struct device *dev;
1: - bool check_async;
1: - bool want_async;
1: - bool have_async;
1: + struct device *dev;
1: + bool check_async;
1: + bool want_async;
1: + bool have_async;
1: };
1:
1: struct class_attribute_string {
1: - struct class_attribute attr;
1: - char *str;
1: + struct class_attribute attr;
1: + char *str;
1: };
1:
1: struct class_compat {
1: - struct kobject *kobj;
1: + struct kobject *kobj;
1: };
1:
1: struct platform_object {
1: - struct platform_device pdev;
1: - char name[0];
1: + struct platform_device pdev;
1: + char name[0];
1: };
1:
1: struct cpu_attr {
1: - struct device_attribute attr;
1: - const struct cpumask * const map;
1: + struct device_attribute attr;
1: + const struct cpumask *const map;
1: };
1:
1: typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
1:
1: struct probe {
1: - struct probe *next;
1: - dev_t dev;
1: - long unsigned int range;
1: - struct module *owner;
1: - kobj_probe_t *get;
1: - int (*lock)(dev_t, void *);
1: - void *data;
1: + struct probe *next;
1: + dev_t dev;
1: + long unsigned int range;
1: + struct module *owner;
1: + kobj_probe_t *get;
1: + int (*lock)(dev_t, void *);
1: + void *data;
1: };
1:
1: struct kobj_map___2 {
1: - struct probe *probes[255];
1: - struct mutex *lock;
1: + struct probe *probes[255];
1: + struct mutex *lock;
1: };
1:
1: typedef int (*dr_match_t)(struct device *, void *, void *);
1:
1: struct devres_node {
1: - struct list_head entry;
1: - dr_release_t release;
1: + struct list_head entry;
1: + dr_release_t release;
1: };
1:
1: struct devres___2 {
1: - struct devres_node node;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u8 data[0];
1: + struct devres_node node;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u8 data[0];
1: };
1:
1: struct devres_group {
1: - struct devres_node node[2];
1: - void *id;
1: - int color;
1: + struct devres_node node[2];
1: + void *id;
1: + int color;
1: };
1:
1: struct action_devres {
1: - void *data;
1: - void (*action)(void *);
1: + void *data;
1: + void (*action)(void *);
1: };
1:
1: struct pages_devres {
1: - long unsigned int addr;
1: - unsigned int order;
1: + long unsigned int addr;
1: + unsigned int order;
1: };
1:
1: struct attribute_container {
1: - struct list_head node;
1: - struct klist containers;
1: - struct class *class;
1: - const struct attribute_group *grp;
1: - struct device_attribute **attrs;
1: - int (*match)(struct attribute_container *, struct device *);
1: - long unsigned int flags;
1: + struct list_head node;
1: + struct klist containers;
1: + struct class *class;
1: + const struct attribute_group *grp;
1: + struct device_attribute **attrs;
1: + int (*match)(struct attribute_container *, struct device *);
1: + long unsigned int flags;
1: };
1:
1: struct internal_container {
1: - struct klist_node node;
1: - struct attribute_container *cont;
1: - struct device classdev;
1: + struct klist_node node;
1: + struct attribute_container *cont;
1: + struct device classdev;
1: };
1:
1: struct transport_container;
1:
1: struct transport_class {
1: - struct class class;
1: - int (*setup)(struct transport_container *, struct device *, struct device *);
1: - int (*configure)(struct transport_container *, struct device *, struct device *);
1: - int (*remove)(struct transport_container *, struct device *, struct device *);
1: + struct class class;
1: + int (*setup)(struct transport_container *, struct device *, struct device *);
1: + int (*configure)(struct transport_container *, struct device *,
1: + struct device *);
1: + int (*remove)(struct transport_container *, struct device *, struct device *);
1: };
1:
1: struct transport_container {
1: - struct attribute_container ac;
1: - const struct attribute_group *statistics;
1: + struct attribute_container ac;
1: + const struct attribute_group *statistics;
1: };
1:
1: struct anon_transport_class {
1: - struct transport_class tclass;
1: - struct attribute_container container;
1: + struct transport_class tclass;
1: + struct attribute_container container;
1: };
1:
1: -typedef void * (*devcon_match_fn_t)(struct fwnode_handle *, const char *, void *);
1: +typedef void *(*devcon_match_fn_t)(struct fwnode_handle *, const char *,
1: + void *);
1:
1: struct mii_bus;
1:
1: struct mdio_device {
1: - struct device dev;
1: - struct mii_bus *bus;
1: - char modalias[32];
1: - int (*bus_match)(struct device *, struct device_driver *);
1: - void (*device_free)(struct mdio_device *);
1: - void (*device_remove)(struct mdio_device *);
1: - int addr;
1: - int flags;
1: - struct gpio_desc *reset_gpio;
1: - struct reset_control *reset_ctrl;
1: - unsigned int reset_assert_delay;
1: - unsigned int reset_deassert_delay;
1: + struct device dev;
1: + struct mii_bus *bus;
1: + char modalias[32];
1: + int (*bus_match)(struct device *, struct device_driver *);
1: + void (*device_free)(struct mdio_device *);
1: + void (*device_remove)(struct mdio_device *);
1: + int addr;
1: + int flags;
1: + struct gpio_desc *reset_gpio;
1: + struct reset_control *reset_ctrl;
1: + unsigned int reset_assert_delay;
1: + unsigned int reset_deassert_delay;
1: };
1:
1: struct phy_c45_device_ids {
1: - u32 devices_in_package;
1: - u32 mmds_present;
1: - u32 device_ids[32];
1: + u32 devices_in_package;
1: + u32 mmds_present;
1: + u32 device_ids[32];
1: };
1:
1: enum phy_state {
1: - PHY_DOWN = 0,
1: - PHY_READY = 1,
1: - PHY_HALTED = 2,
1: - PHY_UP = 3,
1: - PHY_RUNNING = 4,
1: - PHY_NOLINK = 5,
1: - PHY_CABLETEST = 6,
1: + PHY_DOWN = 0,
1: + PHY_READY = 1,
1: + PHY_HALTED = 2,
1: + PHY_UP = 3,
1: + PHY_RUNNING = 4,
1: + PHY_NOLINK = 5,
1: + PHY_CABLETEST = 6,
1: };
1:
1: typedef enum {
1: - PHY_INTERFACE_MODE_NA = 0,
1: - PHY_INTERFACE_MODE_INTERNAL = 1,
1: - PHY_INTERFACE_MODE_MII = 2,
1: - PHY_INTERFACE_MODE_GMII = 3,
1: - PHY_INTERFACE_MODE_SGMII = 4,
1: - PHY_INTERFACE_MODE_TBI = 5,
1: - PHY_INTERFACE_MODE_REVMII = 6,
1: - PHY_INTERFACE_MODE_RMII = 7,
1: - PHY_INTERFACE_MODE_RGMII = 8,
1: - PHY_INTERFACE_MODE_RGMII_ID = 9,
1: - PHY_INTERFACE_MODE_RGMII_RXID = 10,
1: - PHY_INTERFACE_MODE_RGMII_TXID = 11,
1: - PHY_INTERFACE_MODE_RTBI = 12,
1: - PHY_INTERFACE_MODE_SMII = 13,
1: - PHY_INTERFACE_MODE_XGMII = 14,
1: - PHY_INTERFACE_MODE_XLGMII = 15,
1: - PHY_INTERFACE_MODE_MOCA = 16,
1: - PHY_INTERFACE_MODE_QSGMII = 17,
1: - PHY_INTERFACE_MODE_TRGMII = 18,
1: - PHY_INTERFACE_MODE_1000BASEX = 19,
1: - PHY_INTERFACE_MODE_2500BASEX = 20,
1: - PHY_INTERFACE_MODE_RXAUI = 21,
1: - PHY_INTERFACE_MODE_XAUI = 22,
1: - PHY_INTERFACE_MODE_10GBASER = 23,
1: - PHY_INTERFACE_MODE_USXGMII = 24,
1: - PHY_INTERFACE_MODE_10GKR = 25,
1: - PHY_INTERFACE_MODE_MAX = 26,
1: + PHY_INTERFACE_MODE_NA = 0,
1: + PHY_INTERFACE_MODE_INTERNAL = 1,
1: + PHY_INTERFACE_MODE_MII = 2,
1: + PHY_INTERFACE_MODE_GMII = 3,
1: + PHY_INTERFACE_MODE_SGMII = 4,
1: + PHY_INTERFACE_MODE_TBI = 5,
1: + PHY_INTERFACE_MODE_REVMII = 6,
1: + PHY_INTERFACE_MODE_RMII = 7,
1: + PHY_INTERFACE_MODE_RGMII = 8,
1: + PHY_INTERFACE_MODE_RGMII_ID = 9,
1: + PHY_INTERFACE_MODE_RGMII_RXID = 10,
1: + PHY_INTERFACE_MODE_RGMII_TXID = 11,
1: + PHY_INTERFACE_MODE_RTBI = 12,
1: + PHY_INTERFACE_MODE_SMII = 13,
1: + PHY_INTERFACE_MODE_XGMII = 14,
1: + PHY_INTERFACE_MODE_XLGMII = 15,
1: + PHY_INTERFACE_MODE_MOCA = 16,
1: + PHY_INTERFACE_MODE_QSGMII = 17,
1: + PHY_INTERFACE_MODE_TRGMII = 18,
1: + PHY_INTERFACE_MODE_1000BASEX = 19,
1: + PHY_INTERFACE_MODE_2500BASEX = 20,
1: + PHY_INTERFACE_MODE_RXAUI = 21,
1: + PHY_INTERFACE_MODE_XAUI = 22,
1: + PHY_INTERFACE_MODE_10GBASER = 23,
1: + PHY_INTERFACE_MODE_USXGMII = 24,
1: + PHY_INTERFACE_MODE_10GKR = 25,
1: + PHY_INTERFACE_MODE_MAX = 26,
1: } phy_interface_t;
1:
1: struct phylink;
1: @@ -82901,372 +83949,374 @@ struct phy_package_shared;
1: struct mii_timestamper;
1:
1: struct phy_device {
1: - struct mdio_device mdio;
1: - struct phy_driver *drv;
1: - u32 phy_id;
1: - struct phy_c45_device_ids c45_ids;
1: - unsigned int is_c45: 1;
1: - unsigned int is_internal: 1;
1: - unsigned int is_pseudo_fixed_link: 1;
1: - unsigned int is_gigabit_capable: 1;
1: - unsigned int has_fixups: 1;
1: - unsigned int suspended: 1;
1: - unsigned int suspended_by_mdio_bus: 1;
1: - unsigned int sysfs_links: 1;
1: - unsigned int loopback_enabled: 1;
1: - unsigned int downshifted_rate: 1;
1: - unsigned int autoneg: 1;
1: - unsigned int link: 1;
1: - unsigned int autoneg_complete: 1;
1: - unsigned int interrupts: 1;
1: - enum phy_state state;
1: - u32 dev_flags;
1: - phy_interface_t interface;
1: - int speed;
1: - int duplex;
1: - int pause;
1: - int asym_pause;
1: - u8 master_slave_get;
1: - u8 master_slave_set;
1: - u8 master_slave_state;
1: - long unsigned int supported[2];
1: - long unsigned int advertising[2];
1: - long unsigned int lp_advertising[2];
1: - long unsigned int adv_old[2];
1: - u32 eee_broken_modes;
1: - int irq;
1: - void *priv;
1: - struct phy_package_shared *shared;
1: - struct sk_buff *skb;
1: - void *ehdr;
1: - struct nlattr *nest;
1: - struct delayed_work state_queue;
1: - struct mutex lock;
1: - bool sfp_bus_attached;
1: - struct sfp_bus *sfp_bus;
1: - struct phylink *phylink;
1: - struct net_device *attached_dev;
1: - struct mii_timestamper *mii_ts;
1: - u8 mdix;
1: - u8 mdix_ctrl;
1: - void (*phy_link_change)(struct phy_device *, bool);
1: - void (*adjust_link)(struct net_device *);
1: - const struct macsec_ops *macsec_ops;
1: + struct mdio_device mdio;
1: + struct phy_driver *drv;
1: + u32 phy_id;
1: + struct phy_c45_device_ids c45_ids;
1: + unsigned int is_c45 : 1;
1: + unsigned int is_internal : 1;
1: + unsigned int is_pseudo_fixed_link : 1;
1: + unsigned int is_gigabit_capable : 1;
1: + unsigned int has_fixups : 1;
1: + unsigned int suspended : 1;
1: + unsigned int suspended_by_mdio_bus : 1;
1: + unsigned int sysfs_links : 1;
1: + unsigned int loopback_enabled : 1;
1: + unsigned int downshifted_rate : 1;
1: + unsigned int autoneg : 1;
1: + unsigned int link : 1;
1: + unsigned int autoneg_complete : 1;
1: + unsigned int interrupts : 1;
1: + enum phy_state state;
1: + u32 dev_flags;
1: + phy_interface_t interface;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + int asym_pause;
1: + u8 master_slave_get;
1: + u8 master_slave_set;
1: + u8 master_slave_state;
1: + long unsigned int supported[2];
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + long unsigned int adv_old[2];
1: + u32 eee_broken_modes;
1: + int irq;
1: + void *priv;
1: + struct phy_package_shared *shared;
1: + struct sk_buff *skb;
1: + void *ehdr;
1: + struct nlattr *nest;
1: + struct delayed_work state_queue;
1: + struct mutex lock;
1: + bool sfp_bus_attached;
1: + struct sfp_bus *sfp_bus;
1: + struct phylink *phylink;
1: + struct net_device *attached_dev;
1: + struct mii_timestamper *mii_ts;
1: + u8 mdix;
1: + u8 mdix_ctrl;
1: + void (*phy_link_change)(struct phy_device *, bool);
1: + void (*adjust_link)(struct net_device *);
1: + const struct macsec_ops *macsec_ops;
1: };
1:
1: struct phy_tdr_config {
1: - u32 first;
1: - u32 last;
1: - u32 step;
1: - s8 pair;
1: + u32 first;
1: + u32 last;
1: + u32 step;
1: + s8 pair;
1: };
1:
1: struct mdio_bus_stats {
1: - u64_stats_t transfers;
1: - u64_stats_t errors;
1: - u64_stats_t writes;
1: - u64_stats_t reads;
1: - struct u64_stats_sync syncp;
1: + u64_stats_t transfers;
1: + u64_stats_t errors;
1: + u64_stats_t writes;
1: + u64_stats_t reads;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct mii_bus {
1: - struct module *owner;
1: - const char *name;
1: - char id[61];
1: - void *priv;
1: - int (*read)(struct mii_bus *, int, int);
1: - int (*write)(struct mii_bus *, int, int, u16);
1: - int (*reset)(struct mii_bus *);
1: - struct mdio_bus_stats stats[32];
1: - struct mutex mdio_lock;
1: - struct device *parent;
1: - enum {
1: - MDIOBUS_ALLOCATED = 1,
1: - MDIOBUS_REGISTERED = 2,
1: - MDIOBUS_UNREGISTERED = 3,
1: - MDIOBUS_RELEASED = 4,
1: - } state;
1: - struct device dev;
1: - struct mdio_device *mdio_map[32];
1: - u32 phy_mask;
1: - u32 phy_ignore_ta_mask;
1: - int irq[32];
1: - int reset_delay_us;
1: - int reset_post_delay_us;
1: - struct gpio_desc *reset_gpiod;
1: - enum {
1: - MDIOBUS_NO_CAP = 0,
1: - MDIOBUS_C22 = 1,
1: - MDIOBUS_C45 = 2,
1: - MDIOBUS_C22_C45 = 3,
1: - } probe_capabilities;
1: - struct mutex shared_lock;
1: - struct phy_package_shared *shared[32];
1: + struct module *owner;
1: + const char *name;
1: + char id[61];
1: + void *priv;
1: + int (*read)(struct mii_bus *, int, int);
1: + int (*write)(struct mii_bus *, int, int, u16);
1: + int (*reset)(struct mii_bus *);
1: + struct mdio_bus_stats stats[32];
1: + struct mutex mdio_lock;
1: + struct device *parent;
1: + enum {
1: + MDIOBUS_ALLOCATED = 1,
1: + MDIOBUS_REGISTERED = 2,
1: + MDIOBUS_UNREGISTERED = 3,
1: + MDIOBUS_RELEASED = 4,
1: + } state;
1: + struct device dev;
1: + struct mdio_device *mdio_map[32];
1: + u32 phy_mask;
1: + u32 phy_ignore_ta_mask;
1: + int irq[32];
1: + int reset_delay_us;
1: + int reset_post_delay_us;
1: + struct gpio_desc *reset_gpiod;
1: + enum {
1: + MDIOBUS_NO_CAP = 0,
1: + MDIOBUS_C22 = 1,
1: + MDIOBUS_C45 = 2,
1: + MDIOBUS_C22_C45 = 3,
1: + } probe_capabilities;
1: + struct mutex shared_lock;
1: + struct phy_package_shared *shared[32];
1: };
1:
1: struct mdio_driver_common {
1: - struct device_driver driver;
1: - int flags;
1: + struct device_driver driver;
1: + int flags;
1: };
1:
1: struct mii_timestamper {
1: - bool (*rxtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: - void (*txtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: - int (*hwtstamp)(struct mii_timestamper *, struct ifreq *);
1: - void (*link_state)(struct mii_timestamper *, struct phy_device *);
1: - int (*ts_info)(struct mii_timestamper *, struct ethtool_ts_info *);
1: - struct device *device;
1: + bool (*rxtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: + void (*txtstamp)(struct mii_timestamper *, struct sk_buff *, int);
1: + int (*hwtstamp)(struct mii_timestamper *, struct ifreq *);
1: + void (*link_state)(struct mii_timestamper *, struct phy_device *);
1: + int (*ts_info)(struct mii_timestamper *, struct ethtool_ts_info *);
1: + struct device *device;
1: };
1:
1: struct phy_package_shared {
1: - int addr;
1: - refcount_t refcnt;
1: - long unsigned int flags;
1: - size_t priv_size;
1: - void *priv;
1: + int addr;
1: + refcount_t refcnt;
1: + long unsigned int flags;
1: + size_t priv_size;
1: + void *priv;
1: };
1:
1: struct phy_driver {
1: - struct mdio_driver_common mdiodrv;
1: - u32 phy_id;
1: - char *name;
1: - u32 phy_id_mask;
1: - const long unsigned int * const features;
1: - u32 flags;
1: - const void *driver_data;
1: - int (*soft_reset)(struct phy_device *);
1: - int (*config_init)(struct phy_device *);
1: - int (*probe)(struct phy_device *);
1: - int (*get_features)(struct phy_device *);
1: - int (*suspend)(struct phy_device *);
1: - int (*resume)(struct phy_device *);
1: - int (*config_aneg)(struct phy_device *);
1: - int (*aneg_done)(struct phy_device *);
1: - int (*read_status)(struct phy_device *);
1: - int (*ack_interrupt)(struct phy_device *);
1: - int (*config_intr)(struct phy_device *);
1: - int (*did_interrupt)(struct phy_device *);
1: - irqreturn_t (*handle_interrupt)(struct phy_device *);
1: - void (*remove)(struct phy_device *);
1: - int (*match_phy_device)(struct phy_device *);
1: - int (*set_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: - void (*get_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: - void (*link_change_notify)(struct phy_device *);
1: - int (*read_mmd)(struct phy_device *, int, u16);
1: - int (*write_mmd)(struct phy_device *, int, u16, u16);
1: - int (*read_page)(struct phy_device *);
1: - int (*write_page)(struct phy_device *, int);
1: - int (*module_info)(struct phy_device *, struct ethtool_modinfo *);
1: - int (*module_eeprom)(struct phy_device *, struct ethtool_eeprom *, u8 *);
1: - int (*cable_test_start)(struct phy_device *);
1: - int (*cable_test_tdr_start)(struct phy_device *, const struct phy_tdr_config *);
1: - int (*cable_test_get_status)(struct phy_device *, bool *);
1: - int (*get_sset_count)(struct phy_device *);
1: - void (*get_strings)(struct phy_device *, u8 *);
1: - void (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: - int (*get_tunable)(struct phy_device *, struct ethtool_tunable *, void *);
1: - int (*set_tunable)(struct phy_device *, struct ethtool_tunable *, const void *);
1: - int (*set_loopback)(struct phy_device *, bool);
1: - int (*get_sqi)(struct phy_device *);
1: - int (*get_sqi_max)(struct phy_device *);
1: + struct mdio_driver_common mdiodrv;
1: + u32 phy_id;
1: + char *name;
1: + u32 phy_id_mask;
1: + const long unsigned int *const features;
1: + u32 flags;
1: + const void *driver_data;
1: + int (*soft_reset)(struct phy_device *);
1: + int (*config_init)(struct phy_device *);
1: + int (*probe)(struct phy_device *);
1: + int (*get_features)(struct phy_device *);
1: + int (*suspend)(struct phy_device *);
1: + int (*resume)(struct phy_device *);
1: + int (*config_aneg)(struct phy_device *);
1: + int (*aneg_done)(struct phy_device *);
1: + int (*read_status)(struct phy_device *);
1: + int (*ack_interrupt)(struct phy_device *);
1: + int (*config_intr)(struct phy_device *);
1: + int (*did_interrupt)(struct phy_device *);
1: + irqreturn_t (*handle_interrupt)(struct phy_device *);
1: + void (*remove)(struct phy_device *);
1: + int (*match_phy_device)(struct phy_device *);
1: + int (*set_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: + void (*get_wol)(struct phy_device *, struct ethtool_wolinfo *);
1: + void (*link_change_notify)(struct phy_device *);
1: + int (*read_mmd)(struct phy_device *, int, u16);
1: + int (*write_mmd)(struct phy_device *, int, u16, u16);
1: + int (*read_page)(struct phy_device *);
1: + int (*write_page)(struct phy_device *, int);
1: + int (*module_info)(struct phy_device *, struct ethtool_modinfo *);
1: + int (*module_eeprom)(struct phy_device *, struct ethtool_eeprom *, u8 *);
1: + int (*cable_test_start)(struct phy_device *);
1: + int (*cable_test_tdr_start)(struct phy_device *,
1: + const struct phy_tdr_config *);
1: + int (*cable_test_get_status)(struct phy_device *, bool *);
1: + int (*get_sset_count)(struct phy_device *);
1: + void (*get_strings)(struct phy_device *, u8 *);
1: + void (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: + int (*get_tunable)(struct phy_device *, struct ethtool_tunable *, void *);
1: + int (*set_tunable)(struct phy_device *, struct ethtool_tunable *,
1: + const void *);
1: + int (*set_loopback)(struct phy_device *, bool);
1: + int (*get_sqi)(struct phy_device *);
1: + int (*get_sqi_max)(struct phy_device *);
1: };
1:
1: struct cache_type_info {
1: - const char *size_prop;
1: - const char *line_size_props[2];
1: - const char *nr_sets_prop;
1: + const char *size_prop;
1: + const char *line_size_props[2];
1: + const char *nr_sets_prop;
1: };
1:
1: struct software_node;
1:
1: struct software_node_ref_args {
1: - const struct software_node *node;
1: - unsigned int nargs;
1: - u64 args[8];
1: + const struct software_node *node;
1: + unsigned int nargs;
1: + u64 args[8];
1: };
1:
1: struct software_node {
1: - const char *name;
1: - const struct software_node *parent;
1: - const struct property_entry *properties;
1: + const char *name;
1: + const struct software_node *parent;
1: + const struct property_entry *properties;
1: };
1:
1: struct swnode {
1: - int id;
1: - struct kobject kobj;
1: - struct fwnode_handle fwnode;
1: - const struct software_node *node;
1: - struct ida child_ids;
1: - struct list_head entry;
1: - struct list_head children;
1: - struct swnode *parent;
1: - unsigned int allocated: 1;
1: + int id;
1: + struct kobject kobj;
1: + struct fwnode_handle fwnode;
1: + const struct software_node *node;
1: + struct ida child_ids;
1: + struct list_head entry;
1: + struct list_head children;
1: + struct swnode *parent;
1: + unsigned int allocated : 1;
1: };
1:
1: struct req {
1: - struct req *next;
1: - struct completion done;
1: - int err;
1: - const char *name;
1: - umode_t mode;
1: - kuid_t uid;
1: - kgid_t gid;
1: - struct device *dev;
1: + struct req *next;
1: + struct completion done;
1: + int err;
1: + const char *name;
1: + umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct device *dev;
1: };
1:
1: typedef int (*pm_callback_t)(struct device *);
1:
1: struct of_phandle_iterator {
1: - const char *cells_name;
1: - int cell_count;
1: - const struct device_node *parent;
1: - const __be32 *list_end;
1: - const __be32 *phandle_end;
1: - const __be32 *cur;
1: - uint32_t cur_count;
1: - phandle phandle;
1: - struct device_node *node;
1: + const char *cells_name;
1: + int cell_count;
1: + const struct device_node *parent;
1: + const __be32 *list_end;
1: + const __be32 *phandle_end;
1: + const __be32 *cur;
1: + uint32_t cur_count;
1: + phandle phandle;
1: + struct device_node *node;
1: };
1:
1: enum genpd_notication {
1: - GENPD_NOTIFY_PRE_OFF = 0,
1: - GENPD_NOTIFY_OFF = 1,
1: - GENPD_NOTIFY_PRE_ON = 2,
1: - GENPD_NOTIFY_ON = 3,
1: + GENPD_NOTIFY_PRE_OFF = 0,
1: + GENPD_NOTIFY_OFF = 1,
1: + GENPD_NOTIFY_PRE_ON = 2,
1: + GENPD_NOTIFY_ON = 3,
1: };
1:
1: struct gpd_link {
1: - struct generic_pm_domain *parent;
1: - struct list_head parent_node;
1: - struct generic_pm_domain *child;
1: - struct list_head child_node;
1: - unsigned int performance_state;
1: - unsigned int prev_performance_state;
1: + struct generic_pm_domain *parent;
1: + struct list_head parent_node;
1: + struct generic_pm_domain *child;
1: + struct list_head child_node;
1: + unsigned int performance_state;
1: + unsigned int prev_performance_state;
1: };
1:
1: struct gpd_timing_data {
1: - s64 suspend_latency_ns;
1: - s64 resume_latency_ns;
1: - s64 effective_constraint_ns;
1: - bool constraint_changed;
1: - bool cached_suspend_ok;
1: + s64 suspend_latency_ns;
1: + s64 resume_latency_ns;
1: + s64 effective_constraint_ns;
1: + bool constraint_changed;
1: + bool cached_suspend_ok;
1: };
1:
1: struct generic_pm_domain_data {
1: - struct pm_domain_data base;
1: - struct gpd_timing_data td;
1: - struct notifier_block nb;
1: - struct notifier_block *power_nb;
1: - int cpu;
1: - unsigned int performance_state;
1: - void *data;
1: + struct pm_domain_data base;
1: + struct gpd_timing_data td;
1: + struct notifier_block nb;
1: + struct notifier_block *power_nb;
1: + int cpu;
1: + unsigned int performance_state;
1: + void *data;
1: };
1:
1: struct of_genpd_provider {
1: - struct list_head link;
1: - struct device_node *node;
1: - genpd_xlate_t xlate;
1: - void *data;
1: + struct list_head link;
1: + struct device_node *node;
1: + genpd_xlate_t xlate;
1: + void *data;
1: };
1:
1: struct pm_clk_notifier_block {
1: - struct notifier_block nb;
1: - struct dev_pm_domain *pm_domain;
1: - char *con_ids[0];
1: + struct notifier_block nb;
1: + struct dev_pm_domain *pm_domain;
1: + char *con_ids[0];
1: };
1:
1: enum pce_status {
1: - PCE_STATUS_NONE = 0,
1: - PCE_STATUS_ACQUIRED = 1,
1: - PCE_STATUS_ENABLED = 2,
1: - PCE_STATUS_ERROR = 3,
1: + PCE_STATUS_NONE = 0,
1: + PCE_STATUS_ACQUIRED = 1,
1: + PCE_STATUS_ENABLED = 2,
1: + PCE_STATUS_ERROR = 3,
1: };
1:
1: struct pm_clock_entry {
1: - struct list_head node;
1: - char *con_id;
1: - struct clk *clk;
1: - enum pce_status status;
1: + struct list_head node;
1: + char *con_id;
1: + struct clk *clk;
1: + enum pce_status status;
1: };
1:
1: struct firmware_fallback_config {
1: - unsigned int force_sysfs_fallback;
1: - unsigned int ignore_sysfs_fallback;
1: - int old_timeout;
1: - int loading_timeout;
1: + unsigned int force_sysfs_fallback;
1: + unsigned int ignore_sysfs_fallback;
1: + int old_timeout;
1: + int loading_timeout;
1: };
1:
1: struct builtin_fw {
1: - char *name;
1: - void *data;
1: - long unsigned int size;
1: + char *name;
1: + void *data;
1: + long unsigned int size;
1: };
1:
1: enum fw_opt {
1: - FW_OPT_UEVENT = 1,
1: - FW_OPT_NOWAIT = 2,
1: - FW_OPT_USERHELPER = 4,
1: - FW_OPT_NO_WARN = 8,
1: - FW_OPT_NOCACHE = 16,
1: - FW_OPT_NOFALLBACK_SYSFS = 32,
1: - FW_OPT_FALLBACK_PLATFORM = 64,
1: - FW_OPT_PARTIAL = 128,
1: + FW_OPT_UEVENT = 1,
1: + FW_OPT_NOWAIT = 2,
1: + FW_OPT_USERHELPER = 4,
1: + FW_OPT_NO_WARN = 8,
1: + FW_OPT_NOCACHE = 16,
1: + FW_OPT_NOFALLBACK_SYSFS = 32,
1: + FW_OPT_FALLBACK_PLATFORM = 64,
1: + FW_OPT_PARTIAL = 128,
1: };
1:
1: enum fw_status {
1: - FW_STATUS_UNKNOWN = 0,
1: - FW_STATUS_LOADING = 1,
1: - FW_STATUS_DONE = 2,
1: - FW_STATUS_ABORTED = 3,
1: + FW_STATUS_UNKNOWN = 0,
1: + FW_STATUS_LOADING = 1,
1: + FW_STATUS_DONE = 2,
1: + FW_STATUS_ABORTED = 3,
1: };
1:
1: struct fw_state {
1: - struct completion completion;
1: - enum fw_status status;
1: + struct completion completion;
1: + enum fw_status status;
1: };
1:
1: struct firmware_cache;
1:
1: struct fw_priv {
1: - struct kref ref;
1: - struct list_head list;
1: - struct firmware_cache *fwc;
1: - struct fw_state fw_st;
1: - void *data;
1: - size_t size;
1: - size_t allocated_size;
1: - size_t offset;
1: - u32 opt_flags;
1: - bool is_paged_buf;
1: - struct page **pages;
1: - int nr_pages;
1: - int page_array_size;
1: - bool need_uevent;
1: - struct list_head pending_list;
1: - const char *fw_name;
1: + struct kref ref;
1: + struct list_head list;
1: + struct firmware_cache *fwc;
1: + struct fw_state fw_st;
1: + void *data;
1: + size_t size;
1: + size_t allocated_size;
1: + size_t offset;
1: + u32 opt_flags;
1: + bool is_paged_buf;
1: + struct page **pages;
1: + int nr_pages;
1: + int page_array_size;
1: + bool need_uevent;
1: + struct list_head pending_list;
1: + const char *fw_name;
1: };
1:
1: struct firmware_cache {
1: - spinlock_t lock;
1: - struct list_head head;
1: - int state;
1: + spinlock_t lock;
1: + struct list_head head;
1: + int state;
1: };
1:
1: struct firmware_work {
1: - struct work_struct work;
1: - struct module *module;
1: - const char *name;
1: - struct device *device;
1: - void *context;
1: - void (*cont)(const struct firmware *, void *);
1: - u32 opt_flags;
1: + struct work_struct work;
1: + struct module *module;
1: + const char *name;
1: + struct device *device;
1: + void *context;
1: + void (*cont)(const struct firmware *, void *);
1: + u32 opt_flags;
1: };
1:
1: struct fw_sysfs {
1: - bool nowait;
1: - struct device dev;
1: - struct fw_priv *fw_priv;
1: - struct firmware *fw;
1: + bool nowait;
1: + struct device dev;
1: + struct fw_priv *fw_priv;
1: + struct firmware *fw;
1: };
1:
1: typedef void (*node_registration_func_t)(struct node___2 *);
1: @@ -83274,42 +84324,44 @@ typedef void (*node_registration_func_t)(struct node___2 *);
1: typedef int (*walk_memory_blocks_func_t)(struct memory_block *, void *);
1:
1: struct node_access_nodes {
1: - struct device dev;
1: - struct list_head list_node;
1: - unsigned int access;
1: - struct node_hmem_attrs hmem_attrs;
1: + struct device dev;
1: + struct list_head list_node;
1: + unsigned int access;
1: + struct node_hmem_attrs hmem_attrs;
1: };
1:
1: struct node_cache_info {
1: - struct device dev;
1: - struct list_head node;
1: - struct node_cache_attrs cache_attrs;
1: + struct device dev;
1: + struct list_head node;
1: + struct node_cache_attrs cache_attrs;
1: };
1:
1: struct node_attr {
1: - struct device_attribute attr;
1: - enum node_states state;
1: + struct device_attribute attr;
1: + enum node_states state;
1: };
1:
1: struct for_each_memory_block_cb_data {
1: - walk_memory_blocks_func_t func;
1: - void *arg;
1: + walk_memory_blocks_func_t func;
1: + void *arg;
1: };
1:
1: typedef int (*regmap_hw_write)(void *, const void *, size_t);
1:
1: -typedef int (*regmap_hw_gather_write)(void *, const void *, size_t, const void *, size_t);
1: +typedef int (*regmap_hw_gather_write)(void *, const void *, size_t,
1: + const void *, size_t);
1:
1: struct regmap_async;
1:
1: -typedef int (*regmap_hw_async_write)(void *, const void *, size_t, const void *, size_t, struct regmap_async *);
1: +typedef int (*regmap_hw_async_write)(void *, const void *, size_t, const void *,
1: + size_t, struct regmap_async *);
1:
1: struct regmap___2;
1:
1: struct regmap_async {
1: - struct list_head list;
1: - struct regmap___2 *map;
1: - void *work_buf;
1: + struct list_head list;
1: + struct regmap___2 *map;
1: + void *work_buf;
1: };
1:
1: typedef int (*regmap_hw_read)(void *, const void *, size_t, void *, size_t);
1: @@ -83318,341 +84370,355 @@ typedef int (*regmap_hw_reg_read)(void *, unsigned int, unsigned int *);
1:
1: typedef int (*regmap_hw_reg_write)(void *, unsigned int, unsigned int);
1:
1: -typedef int (*regmap_hw_reg_update_bits)(void *, unsigned int, unsigned int, unsigned int);
1: +typedef int (*regmap_hw_reg_update_bits)(void *, unsigned int, unsigned int,
1: + unsigned int);
1:
1: -typedef struct regmap_async * (*regmap_hw_async_alloc)();
1: +typedef struct regmap_async *(*regmap_hw_async_alloc)();
1:
1: typedef void (*regmap_hw_free_context)(void *);
1:
1: struct regmap_bus {
1: - bool fast_io;
1: - regmap_hw_write write;
1: - regmap_hw_gather_write gather_write;
1: - regmap_hw_async_write async_write;
1: - regmap_hw_reg_write reg_write;
1: - regmap_hw_reg_update_bits reg_update_bits;
1: - regmap_hw_read read;
1: - regmap_hw_reg_read reg_read;
1: - regmap_hw_free_context free_context;
1: - regmap_hw_async_alloc async_alloc;
1: - u8 read_flag_mask;
1: - enum regmap_endian reg_format_endian_default;
1: - enum regmap_endian val_format_endian_default;
1: - size_t max_raw_read;
1: - size_t max_raw_write;
1: + bool fast_io;
1: + regmap_hw_write write;
1: + regmap_hw_gather_write gather_write;
1: + regmap_hw_async_write async_write;
1: + regmap_hw_reg_write reg_write;
1: + regmap_hw_reg_update_bits reg_update_bits;
1: + regmap_hw_read read;
1: + regmap_hw_reg_read reg_read;
1: + regmap_hw_free_context free_context;
1: + regmap_hw_async_alloc async_alloc;
1: + u8 read_flag_mask;
1: + enum regmap_endian reg_format_endian_default;
1: + enum regmap_endian val_format_endian_default;
1: + size_t max_raw_read;
1: + size_t max_raw_write;
1: };
1:
1: struct reg_field {
1: - unsigned int reg;
1: - unsigned int lsb;
1: - unsigned int msb;
1: - unsigned int id_size;
1: - unsigned int id_offset;
1: + unsigned int reg;
1: + unsigned int lsb;
1: + unsigned int msb;
1: + unsigned int id_size;
1: + unsigned int id_offset;
1: };
1:
1: struct regmap_format {
1: - size_t buf_size;
1: - size_t reg_bytes;
1: - size_t pad_bytes;
1: - size_t val_bytes;
1: - void (*format_write)(struct regmap___2 *, unsigned int, unsigned int);
1: - void (*format_reg)(void *, unsigned int, unsigned int);
1: - void (*format_val)(void *, unsigned int, unsigned int);
1: - unsigned int (*parse_val)(const void *);
1: - void (*parse_inplace)(void *);
1: + size_t buf_size;
1: + size_t reg_bytes;
1: + size_t pad_bytes;
1: + size_t val_bytes;
1: + void (*format_write)(struct regmap___2 *, unsigned int, unsigned int);
1: + void (*format_reg)(void *, unsigned int, unsigned int);
1: + void (*format_val)(void *, unsigned int, unsigned int);
1: + unsigned int (*parse_val)(const void *);
1: + void (*parse_inplace)(void *);
1: };
1:
1: struct regcache_ops;
1:
1: struct regmap___2 {
1: - union {
1: - struct mutex mutex;
1: - struct {
1: - spinlock_t spinlock;
1: - long unsigned int spinlock_flags;
1: - };
1: - };
1: - regmap_lock lock;
1: - regmap_unlock unlock;
1: - void *lock_arg;
1: - gfp_t alloc_flags;
1: - struct device *dev;
1: - void *work_buf;
1: - struct regmap_format format;
1: - const struct regmap_bus *bus;
1: - void *bus_context;
1: - const char *name;
1: - bool async;
1: - spinlock_t async_lock;
1: - wait_queue_head_t async_waitq;
1: - struct list_head async_list;
1: - struct list_head async_free;
1: - int async_ret;
1: - bool debugfs_disable;
1: - struct dentry *debugfs;
1: - const char *debugfs_name;
1: - unsigned int debugfs_reg_len;
1: - unsigned int debugfs_val_len;
1: - unsigned int debugfs_tot_len;
1: - struct list_head debugfs_off_cache;
1: - struct mutex cache_lock;
1: - unsigned int max_register;
1: - bool (*writeable_reg)(struct device *, unsigned int);
1: - bool (*readable_reg)(struct device *, unsigned int);
1: - bool (*volatile_reg)(struct device *, unsigned int);
1: - bool (*precious_reg)(struct device *, unsigned int);
1: - bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: - bool (*readable_noinc_reg)(struct device *, unsigned int);
1: - const struct regmap_access_table *wr_table;
1: - const struct regmap_access_table *rd_table;
1: - const struct regmap_access_table *volatile_table;
1: - const struct regmap_access_table *precious_table;
1: - const struct regmap_access_table *wr_noinc_table;
1: - const struct regmap_access_table *rd_noinc_table;
1: - int (*reg_read)(void *, unsigned int, unsigned int *);
1: - int (*reg_write)(void *, unsigned int, unsigned int);
1: - int (*reg_update_bits)(void *, unsigned int, unsigned int, unsigned int);
1: - bool defer_caching;
1: - long unsigned int read_flag_mask;
1: - long unsigned int write_flag_mask;
1: - int reg_shift;
1: - int reg_stride;
1: - int reg_stride_order;
1: - const struct regcache_ops *cache_ops;
1: - enum regcache_type cache_type;
1: - unsigned int cache_size_raw;
1: - unsigned int cache_word_size;
1: - unsigned int num_reg_defaults;
1: - unsigned int num_reg_defaults_raw;
1: - bool cache_only;
1: - bool cache_bypass;
1: - bool cache_free;
1: - struct reg_default *reg_defaults;
1: - const void *reg_defaults_raw;
1: - void *cache;
1: - bool cache_dirty;
1: - bool no_sync_defaults;
1: - struct reg_sequence *patch;
1: - int patch_regs;
1: - bool use_single_read;
1: - bool use_single_write;
1: - bool can_multi_write;
1: - size_t max_raw_read;
1: - size_t max_raw_write;
1: - struct rb_root range_tree;
1: - void *selector_work_buf;
1: - struct hwspinlock *hwlock;
1: - bool can_sleep;
1: + union {
1: + struct mutex mutex;
1: + struct {
1: + spinlock_t spinlock;
1: + long unsigned int spinlock_flags;
1: + };
1: + };
1: + regmap_lock lock;
1: + regmap_unlock unlock;
1: + void *lock_arg;
1: + gfp_t alloc_flags;
1: + struct device *dev;
1: + void *work_buf;
1: + struct regmap_format format;
1: + const struct regmap_bus *bus;
1: + void *bus_context;
1: + const char *name;
1: + bool async;
1: + spinlock_t async_lock;
1: + wait_queue_head_t async_waitq;
1: + struct list_head async_list;
1: + struct list_head async_free;
1: + int async_ret;
1: + bool debugfs_disable;
1: + struct dentry *debugfs;
1: + const char *debugfs_name;
1: + unsigned int debugfs_reg_len;
1: + unsigned int debugfs_val_len;
1: + unsigned int debugfs_tot_len;
1: + struct list_head debugfs_off_cache;
1: + struct mutex cache_lock;
1: + unsigned int max_register;
1: + bool (*writeable_reg)(struct device *, unsigned int);
1: + bool (*readable_reg)(struct device *, unsigned int);
1: + bool (*volatile_reg)(struct device *, unsigned int);
1: + bool (*precious_reg)(struct device *, unsigned int);
1: + bool (*writeable_noinc_reg)(struct device *, unsigned int);
1: + bool (*readable_noinc_reg)(struct device *, unsigned int);
1: + const struct regmap_access_table *wr_table;
1: + const struct regmap_access_table *rd_table;
1: + const struct regmap_access_table *volatile_table;
1: + const struct regmap_access_table *precious_table;
1: + const struct regmap_access_table *wr_noinc_table;
1: + const struct regmap_access_table *rd_noinc_table;
1: + int (*reg_read)(void *, unsigned int, unsigned int *);
1: + int (*reg_write)(void *, unsigned int, unsigned int);
1: + int (*reg_update_bits)(void *, unsigned int, unsigned int, unsigned int);
1: + bool defer_caching;
1: + long unsigned int read_flag_mask;
1: + long unsigned int write_flag_mask;
1: + int reg_shift;
1: + int reg_stride;
1: + int reg_stride_order;
1: + const struct regcache_ops *cache_ops;
1: + enum regcache_type cache_type;
1: + unsigned int cache_size_raw;
1: + unsigned int cache_word_size;
1: + unsigned int num_reg_defaults;
1: + unsigned int num_reg_defaults_raw;
1: + bool cache_only;
1: + bool cache_bypass;
1: + bool cache_free;
1: + struct reg_default *reg_defaults;
1: + const void *reg_defaults_raw;
1: + void *cache;
1: + bool cache_dirty;
1: + bool no_sync_defaults;
1: + struct reg_sequence *patch;
1: + int patch_regs;
1: + bool use_single_read;
1: + bool use_single_write;
1: + bool can_multi_write;
1: + size_t max_raw_read;
1: + size_t max_raw_write;
1: + struct rb_root range_tree;
1: + void *selector_work_buf;
1: + struct hwspinlock *hwlock;
1: + bool can_sleep;
1: };
1:
1: struct regcache_ops {
1: - const char *name;
1: - enum regcache_type type;
1: - int (*init)(struct regmap___2 *);
1: - int (*exit)(struct regmap___2 *);
1: - void (*debugfs_init)(struct regmap___2 *);
1: - int (*read)(struct regmap___2 *, unsigned int, unsigned int *);
1: - int (*write)(struct regmap___2 *, unsigned int, unsigned int);
1: - int (*sync)(struct regmap___2 *, unsigned int, unsigned int);
1: - int (*drop)(struct regmap___2 *, unsigned int, unsigned int);
1: + const char *name;
1: + enum regcache_type type;
1: + int (*init)(struct regmap___2 *);
1: + int (*exit)(struct regmap___2 *);
1: + void (*debugfs_init)(struct regmap___2 *);
1: + int (*read)(struct regmap___2 *, unsigned int, unsigned int *);
1: + int (*write)(struct regmap___2 *, unsigned int, unsigned int);
1: + int (*sync)(struct regmap___2 *, unsigned int, unsigned int);
1: + int (*drop)(struct regmap___2 *, unsigned int, unsigned int);
1: };
1:
1: struct regmap_range_node {
1: - struct rb_node node;
1: - const char *name;
1: - struct regmap___2 *map;
1: - unsigned int range_min;
1: - unsigned int range_max;
1: - unsigned int selector_reg;
1: - unsigned int selector_mask;
1: - int selector_shift;
1: - unsigned int window_start;
1: - unsigned int window_len;
1: + struct rb_node node;
1: + const char *name;
1: + struct regmap___2 *map;
1: + unsigned int range_min;
1: + unsigned int range_max;
1: + unsigned int selector_reg;
1: + unsigned int selector_mask;
1: + int selector_shift;
1: + unsigned int window_start;
1: + unsigned int window_len;
1: };
1:
1: struct regmap_field {
1: - struct regmap___2 *regmap;
1: - unsigned int mask;
1: - unsigned int shift;
1: - unsigned int reg;
1: - unsigned int id_size;
1: - unsigned int id_offset;
1: + struct regmap___2 *regmap;
1: + unsigned int mask;
1: + unsigned int shift;
1: + unsigned int reg;
1: + unsigned int id_size;
1: + unsigned int id_offset;
1: };
1:
1: struct trace_event_raw_regmap_reg {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int reg;
1: - unsigned int val;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int reg;
1: + unsigned int val;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regmap_block {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int reg;
1: - int count;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int reg;
1: + int count;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regcache_sync {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u32 __data_loc_status;
1: - u32 __data_loc_type;
1: - int type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_status;
1: + u32 __data_loc_type;
1: + int type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regmap_bool {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - int flag;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int flag;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regmap_async {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_regcache_drop_region {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int from;
1: - unsigned int to;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int from;
1: + unsigned int to;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_regmap_reg {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regmap_block {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regcache_sync {
1: - u32 name;
1: - u32 status;
1: - u32 type;
1: + u32 name;
1: + u32 status;
1: + u32 type;
1: };
1:
1: struct trace_event_data_offsets_regmap_bool {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regmap_async {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_regcache_drop_region {
1: - u32 name;
1: + u32 name;
1: };
1:
1: -typedef void (*btf_trace_regmap_reg_write)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_regmap_reg_write)(void *, struct regmap___2 *,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_regmap_reg_read)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_regmap_reg_read)(void *, struct regmap___2 *,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_regmap_reg_read_cache)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_regmap_reg_read_cache)(void *, struct regmap___2 *,
1: + unsigned int, unsigned int);
1:
1: -typedef void (*btf_trace_regmap_hw_read_start)(void *, struct regmap___2 *, unsigned int, int);
1: +typedef void (*btf_trace_regmap_hw_read_start)(void *, struct regmap___2 *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_regmap_hw_read_done)(void *, struct regmap___2 *, unsigned int, int);
1: +typedef void (*btf_trace_regmap_hw_read_done)(void *, struct regmap___2 *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_regmap_hw_write_start)(void *, struct regmap___2 *, unsigned int, int);
1: +typedef void (*btf_trace_regmap_hw_write_start)(void *, struct regmap___2 *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_regmap_hw_write_done)(void *, struct regmap___2 *, unsigned int, int);
1: +typedef void (*btf_trace_regmap_hw_write_done)(void *, struct regmap___2 *,
1: + unsigned int, int);
1:
1: -typedef void (*btf_trace_regcache_sync)(void *, struct regmap___2 *, const char *, const char *);
1: +typedef void (*btf_trace_regcache_sync)(void *, struct regmap___2 *,
1: + const char *, const char *);
1:
1: typedef void (*btf_trace_regmap_cache_only)(void *, struct regmap___2 *, bool);
1:
1: -typedef void (*btf_trace_regmap_cache_bypass)(void *, struct regmap___2 *, bool);
1: +typedef void (*btf_trace_regmap_cache_bypass)(void *, struct regmap___2 *,
1: + bool);
1:
1: -typedef void (*btf_trace_regmap_async_write_start)(void *, struct regmap___2 *, unsigned int, int);
1: +typedef void (*btf_trace_regmap_async_write_start)(void *, struct regmap___2 *,
1: + unsigned int, int);
1:
1: typedef void (*btf_trace_regmap_async_io_complete)(void *, struct regmap___2 *);
1:
1: -typedef void (*btf_trace_regmap_async_complete_start)(void *, struct regmap___2 *);
1: +typedef void (*btf_trace_regmap_async_complete_start)(void *,
1: + struct regmap___2 *);
1:
1: -typedef void (*btf_trace_regmap_async_complete_done)(void *, struct regmap___2 *);
1: +typedef void (*btf_trace_regmap_async_complete_done)(void *,
1: + struct regmap___2 *);
1:
1: -typedef void (*btf_trace_regcache_drop_region)(void *, struct regmap___2 *, unsigned int, unsigned int);
1: +typedef void (*btf_trace_regcache_drop_region)(void *, struct regmap___2 *,
1: + unsigned int, unsigned int);
1:
1: struct regcache_rbtree_node {
1: - void *block;
1: - long int *cache_present;
1: - unsigned int base_reg;
1: - unsigned int blklen;
1: - struct rb_node node;
1: + void *block;
1: + long int *cache_present;
1: + unsigned int base_reg;
1: + unsigned int blklen;
1: + struct rb_node node;
1: };
1:
1: struct regcache_rbtree_ctx {
1: - struct rb_root root;
1: - struct regcache_rbtree_node *cached_rbnode;
1: + struct rb_root root;
1: + struct regcache_rbtree_node *cached_rbnode;
1: };
1:
1: struct regmap_debugfs_off_cache {
1: - struct list_head list;
1: - off_t min;
1: - off_t max;
1: - unsigned int base_reg;
1: - unsigned int max_reg;
1: + struct list_head list;
1: + off_t min;
1: + off_t max;
1: + unsigned int base_reg;
1: + unsigned int max_reg;
1: };
1:
1: struct regmap_debugfs_node {
1: - struct regmap___2 *map;
1: - struct list_head link;
1: + struct regmap___2 *map;
1: + struct list_head link;
1: };
1:
1: struct ptp_system_timestamp {
1: - struct timespec64 pre_ts;
1: - struct timespec64 post_ts;
1: + struct timespec64 pre_ts;
1: + struct timespec64 post_ts;
1: };
1:
1: struct spi_statistics {
1: - spinlock_t lock;
1: - long unsigned int messages;
1: - long unsigned int transfers;
1: - long unsigned int errors;
1: - long unsigned int timedout;
1: - long unsigned int spi_sync;
1: - long unsigned int spi_sync_immediate;
1: - long unsigned int spi_async;
1: - long long unsigned int bytes;
1: - long long unsigned int bytes_rx;
1: - long long unsigned int bytes_tx;
1: - long unsigned int transfer_bytes_histo[17];
1: - long unsigned int transfers_split_maxsize;
1: + spinlock_t lock;
1: + long unsigned int messages;
1: + long unsigned int transfers;
1: + long unsigned int errors;
1: + long unsigned int timedout;
1: + long unsigned int spi_sync;
1: + long unsigned int spi_sync_immediate;
1: + long unsigned int spi_async;
1: + long long unsigned int bytes;
1: + long long unsigned int bytes_rx;
1: + long long unsigned int bytes_tx;
1: + long unsigned int transfer_bytes_histo[17];
1: + long unsigned int transfers_split_maxsize;
1: };
1:
1: struct spi_delay {
1: - u16 value;
1: - u8 unit;
1: + u16 value;
1: + u8 unit;
1: };
1:
1: struct spi_controller;
1:
1: struct spi_device {
1: - struct device dev;
1: - struct spi_controller *controller;
1: - struct spi_controller *master;
1: - u32 max_speed_hz;
1: - u8 chip_select;
1: - u8 bits_per_word;
1: - bool rt;
1: - u32 mode;
1: - int irq;
1: - void *controller_state;
1: - void *controller_data;
1: - char modalias[32];
1: - const char *driver_override;
1: - int cs_gpio;
1: - struct gpio_desc *cs_gpiod;
1: - struct spi_delay word_delay;
1: - struct spi_statistics statistics;
1: + struct device dev;
1: + struct spi_controller *controller;
1: + struct spi_controller *master;
1: + u32 max_speed_hz;
1: + u8 chip_select;
1: + u8 bits_per_word;
1: + bool rt;
1: + u32 mode;
1: + int irq;
1: + void *controller_state;
1: + void *controller_data;
1: + char modalias[32];
1: + const char *driver_override;
1: + int cs_gpio;
1: + struct gpio_desc *cs_gpiod;
1: + struct spi_delay word_delay;
1: + struct spi_statistics statistics;
1: };
1:
1: struct spi_message;
1: @@ -83662,113 +84728,116 @@ struct spi_transfer;
1: struct spi_controller_mem_ops;
1:
1: struct spi_controller {
1: - struct device dev;
1: - struct list_head list;
1: - s16 bus_num;
1: - u16 num_chipselect;
1: - u16 dma_alignment;
1: - u32 mode_bits;
1: - u32 buswidth_override_bits;
1: - u32 bits_per_word_mask;
1: - u32 min_speed_hz;
1: - u32 max_speed_hz;
1: - u16 flags;
1: - bool slave;
1: - size_t (*max_transfer_size)(struct spi_device *);
1: - size_t (*max_message_size)(struct spi_device *);
1: - struct mutex io_mutex;
1: - spinlock_t bus_lock_spinlock;
1: - struct mutex bus_lock_mutex;
1: - bool bus_lock_flag;
1: - int (*setup)(struct spi_device *);
1: - int (*set_cs_timing)(struct spi_device *, struct spi_delay *, struct spi_delay *, struct spi_delay *);
1: - int (*transfer)(struct spi_device *, struct spi_message *);
1: - void (*cleanup)(struct spi_device *);
1: - bool (*can_dma)(struct spi_controller *, struct spi_device *, struct spi_transfer *);
1: - bool queued;
1: - struct kthread_worker *kworker;
1: - struct kthread_work pump_messages;
1: - spinlock_t queue_lock;
1: - struct list_head queue;
1: - struct spi_message *cur_msg;
1: - bool idling;
1: - bool busy;
1: - bool running;
1: - bool rt;
1: - bool auto_runtime_pm;
1: - bool cur_msg_prepared;
1: - bool cur_msg_mapped;
1: - bool last_cs_enable;
1: - bool last_cs_mode_high;
1: - bool fallback;
1: - struct completion xfer_completion;
1: - size_t max_dma_len;
1: - int (*prepare_transfer_hardware)(struct spi_controller *);
1: - int (*transfer_one_message)(struct spi_controller *, struct spi_message *);
1: - int (*unprepare_transfer_hardware)(struct spi_controller *);
1: - int (*prepare_message)(struct spi_controller *, struct spi_message *);
1: - int (*unprepare_message)(struct spi_controller *, struct spi_message *);
1: - int (*slave_abort)(struct spi_controller *);
1: - void (*set_cs)(struct spi_device *, bool);
1: - int (*transfer_one)(struct spi_controller *, struct spi_device *, struct spi_transfer *);
1: - void (*handle_err)(struct spi_controller *, struct spi_message *);
1: - const struct spi_controller_mem_ops *mem_ops;
1: - struct spi_delay cs_setup;
1: - struct spi_delay cs_hold;
1: - struct spi_delay cs_inactive;
1: - int *cs_gpios;
1: - struct gpio_desc **cs_gpiods;
1: - bool use_gpio_descriptors;
1: - u8 unused_native_cs;
1: - u8 max_native_cs;
1: - struct spi_statistics statistics;
1: - struct dma_chan *dma_tx;
1: - struct dma_chan *dma_rx;
1: - void *dummy_rx;
1: - void *dummy_tx;
1: - int (*fw_translate_cs)(struct spi_controller *, unsigned int);
1: - bool ptp_sts_supported;
1: - long unsigned int irq_flags;
1: + struct device dev;
1: + struct list_head list;
1: + s16 bus_num;
1: + u16 num_chipselect;
1: + u16 dma_alignment;
1: + u32 mode_bits;
1: + u32 buswidth_override_bits;
1: + u32 bits_per_word_mask;
1: + u32 min_speed_hz;
1: + u32 max_speed_hz;
1: + u16 flags;
1: + bool slave;
1: + size_t (*max_transfer_size)(struct spi_device *);
1: + size_t (*max_message_size)(struct spi_device *);
1: + struct mutex io_mutex;
1: + spinlock_t bus_lock_spinlock;
1: + struct mutex bus_lock_mutex;
1: + bool bus_lock_flag;
1: + int (*setup)(struct spi_device *);
1: + int (*set_cs_timing)(struct spi_device *, struct spi_delay *,
1: + struct spi_delay *, struct spi_delay *);
1: + int (*transfer)(struct spi_device *, struct spi_message *);
1: + void (*cleanup)(struct spi_device *);
1: + bool (*can_dma)(struct spi_controller *, struct spi_device *,
1: + struct spi_transfer *);
1: + bool queued;
1: + struct kthread_worker *kworker;
1: + struct kthread_work pump_messages;
1: + spinlock_t queue_lock;
1: + struct list_head queue;
1: + struct spi_message *cur_msg;
1: + bool idling;
1: + bool busy;
1: + bool running;
1: + bool rt;
1: + bool auto_runtime_pm;
1: + bool cur_msg_prepared;
1: + bool cur_msg_mapped;
1: + bool last_cs_enable;
1: + bool last_cs_mode_high;
1: + bool fallback;
1: + struct completion xfer_completion;
1: + size_t max_dma_len;
1: + int (*prepare_transfer_hardware)(struct spi_controller *);
1: + int (*transfer_one_message)(struct spi_controller *, struct spi_message *);
1: + int (*unprepare_transfer_hardware)(struct spi_controller *);
1: + int (*prepare_message)(struct spi_controller *, struct spi_message *);
1: + int (*unprepare_message)(struct spi_controller *, struct spi_message *);
1: + int (*slave_abort)(struct spi_controller *);
1: + void (*set_cs)(struct spi_device *, bool);
1: + int (*transfer_one)(struct spi_controller *, struct spi_device *,
1: + struct spi_transfer *);
1: + void (*handle_err)(struct spi_controller *, struct spi_message *);
1: + const struct spi_controller_mem_ops *mem_ops;
1: + struct spi_delay cs_setup;
1: + struct spi_delay cs_hold;
1: + struct spi_delay cs_inactive;
1: + int *cs_gpios;
1: + struct gpio_desc **cs_gpiods;
1: + bool use_gpio_descriptors;
1: + u8 unused_native_cs;
1: + u8 max_native_cs;
1: + struct spi_statistics statistics;
1: + struct dma_chan *dma_tx;
1: + struct dma_chan *dma_rx;
1: + void *dummy_rx;
1: + void *dummy_tx;
1: + int (*fw_translate_cs)(struct spi_controller *, unsigned int);
1: + bool ptp_sts_supported;
1: + long unsigned int irq_flags;
1: };
1:
1: struct spi_message {
1: - struct list_head transfers;
1: - struct spi_device *spi;
1: - unsigned int is_dma_mapped: 1;
1: - void (*complete)(void *);
1: - void *context;
1: - unsigned int frame_length;
1: - unsigned int actual_length;
1: - int status;
1: - struct list_head queue;
1: - void *state;
1: - struct list_head resources;
1: + struct list_head transfers;
1: + struct spi_device *spi;
1: + unsigned int is_dma_mapped : 1;
1: + void (*complete)(void *);
1: + void *context;
1: + unsigned int frame_length;
1: + unsigned int actual_length;
1: + int status;
1: + struct list_head queue;
1: + void *state;
1: + struct list_head resources;
1: };
1:
1: struct spi_transfer {
1: - const void *tx_buf;
1: - void *rx_buf;
1: - unsigned int len;
1: - dma_addr_t tx_dma;
1: - dma_addr_t rx_dma;
1: - struct sg_table tx_sg;
1: - struct sg_table rx_sg;
1: - unsigned int cs_change: 1;
1: - unsigned int tx_nbits: 3;
1: - unsigned int rx_nbits: 3;
1: - u8 bits_per_word;
1: - u16 delay_usecs;
1: - struct spi_delay delay;
1: - struct spi_delay cs_change_delay;
1: - struct spi_delay word_delay;
1: - u32 speed_hz;
1: - u32 effective_speed_hz;
1: - unsigned int ptp_sts_word_pre;
1: - unsigned int ptp_sts_word_post;
1: - struct ptp_system_timestamp *ptp_sts;
1: - bool timestamped;
1: - struct list_head transfer_list;
1: - u16 error;
1: + const void *tx_buf;
1: + void *rx_buf;
1: + unsigned int len;
1: + dma_addr_t tx_dma;
1: + dma_addr_t rx_dma;
1: + struct sg_table tx_sg;
1: + struct sg_table rx_sg;
1: + unsigned int cs_change : 1;
1: + unsigned int tx_nbits : 3;
1: + unsigned int rx_nbits : 3;
1: + u8 bits_per_word;
1: + u16 delay_usecs;
1: + struct spi_delay delay;
1: + struct spi_delay cs_change_delay;
1: + struct spi_delay word_delay;
1: + u32 speed_hz;
1: + u32 effective_speed_hz;
1: + unsigned int ptp_sts_word_pre;
1: + unsigned int ptp_sts_word_post;
1: + struct ptp_system_timestamp *ptp_sts;
1: + bool timestamped;
1: + struct list_head transfer_list;
1: + u16 error;
1: };
1:
1: struct spi_mem;
1: @@ -83778,206 +84847,209 @@ struct spi_mem_op;
1: struct spi_mem_dirmap_desc;
1:
1: struct spi_controller_mem_ops {
1: - int (*adjust_op_size)(struct spi_mem *, struct spi_mem_op *);
1: - bool (*supports_op)(struct spi_mem *, const struct spi_mem_op *);
1: - int (*exec_op)(struct spi_mem *, const struct spi_mem_op *);
1: - const char * (*get_name)(struct spi_mem *);
1: - int (*dirmap_create)(struct spi_mem_dirmap_desc *);
1: - void (*dirmap_destroy)(struct spi_mem_dirmap_desc *);
1: - ssize_t (*dirmap_read)(struct spi_mem_dirmap_desc *, u64, size_t, void *);
1: - ssize_t (*dirmap_write)(struct spi_mem_dirmap_desc *, u64, size_t, const void *);
1: + int (*adjust_op_size)(struct spi_mem *, struct spi_mem_op *);
1: + bool (*supports_op)(struct spi_mem *, const struct spi_mem_op *);
1: + int (*exec_op)(struct spi_mem *, const struct spi_mem_op *);
1: + const char *(*get_name)(struct spi_mem *);
1: + int (*dirmap_create)(struct spi_mem_dirmap_desc *);
1: + void (*dirmap_destroy)(struct spi_mem_dirmap_desc *);
1: + ssize_t (*dirmap_read)(struct spi_mem_dirmap_desc *, u64, size_t, void *);
1: + ssize_t (*dirmap_write)(struct spi_mem_dirmap_desc *, u64, size_t,
1: + const void *);
1: };
1:
1: struct regmap_async_spi {
1: - struct regmap_async core;
1: - struct spi_message m;
1: - struct spi_transfer t[2];
1: + struct regmap_async core;
1: + struct spi_message m;
1: + struct spi_transfer t[2];
1: };
1:
1: struct regmap_mmio_context {
1: - void *regs;
1: - unsigned int val_bytes;
1: - bool attached_clk;
1: - struct clk *clk;
1: - void (*reg_write)(struct regmap_mmio_context *, unsigned int, unsigned int);
1: - unsigned int (*reg_read)(struct regmap_mmio_context *, unsigned int);
1: + void *regs;
1: + unsigned int val_bytes;
1: + bool attached_clk;
1: + struct clk *clk;
1: + void (*reg_write)(struct regmap_mmio_context *, unsigned int, unsigned int);
1: + unsigned int (*reg_read)(struct regmap_mmio_context *, unsigned int);
1: };
1:
1: struct regmap_irq_chip_data___2 {
1: - struct mutex lock;
1: - struct irq_chip irq_chip;
1: - struct regmap___2 *map;
1: - const struct regmap_irq_chip *chip;
1: - int irq_base;
1: - struct irq_domain *domain;
1: - int irq;
1: - int wake_count;
1: - void *status_reg_buf;
1: - unsigned int *main_status_buf;
1: - unsigned int *status_buf;
1: - unsigned int *mask_buf;
1: - unsigned int *mask_buf_def;
1: - unsigned int *wake_buf;
1: - unsigned int *type_buf;
1: - unsigned int *type_buf_def;
1: - unsigned int irq_reg_stride;
1: - unsigned int type_reg_stride;
1: - bool clear_status: 1;
1: + struct mutex lock;
1: + struct irq_chip irq_chip;
1: + struct regmap___2 *map;
1: + const struct regmap_irq_chip *chip;
1: + int irq_base;
1: + struct irq_domain *domain;
1: + int irq;
1: + int wake_count;
1: + void *status_reg_buf;
1: + unsigned int *main_status_buf;
1: + unsigned int *status_buf;
1: + unsigned int *mask_buf;
1: + unsigned int *mask_buf_def;
1: + unsigned int *wake_buf;
1: + unsigned int *type_buf;
1: + unsigned int *type_buf_def;
1: + unsigned int irq_reg_stride;
1: + unsigned int type_reg_stride;
1: + bool clear_status : 1;
1: };
1:
1: struct soc_device___2 {
1: - struct device dev;
1: - struct soc_device_attribute *attr;
1: - int soc_dev_num;
1: + struct device dev;
1: + struct soc_device_attribute *attr;
1: + int soc_dev_num;
1: };
1:
1: struct devcd_entry {
1: - struct device devcd_dev;
1: - void *data;
1: - size_t datalen;
1: - struct module *owner;
1: - ssize_t (*read)(char *, loff_t, size_t, void *, size_t);
1: - void (*free)(void *);
1: - struct delayed_work del_wk;
1: - struct device *failing_dev;
1: + struct device devcd_dev;
1: + void *data;
1: + size_t datalen;
1: + struct module *owner;
1: + ssize_t (*read)(char *, loff_t, size_t, void *, size_t);
1: + void (*free)(void *);
1: + struct delayed_work del_wk;
1: + struct device *failing_dev;
1: };
1:
1: typedef void (*irq_write_msi_msg_t)(struct msi_desc *, struct msi_msg *);
1:
1: struct platform_msi_priv_data {
1: - struct device *dev;
1: - void *host_data;
1: - msi_alloc_info_t arg;
1: - irq_write_msi_msg_t write_msg;
1: - int devid;
1: + struct device *dev;
1: + void *host_data;
1: + msi_alloc_info_t arg;
1: + irq_write_msi_msg_t write_msg;
1: + int devid;
1: };
1:
1: struct brd_device {
1: - int brd_number;
1: - struct request_queue *brd_queue;
1: - struct gendisk *brd_disk;
1: - struct list_head brd_list;
1: - spinlock_t brd_lock;
1: - struct xarray brd_pages;
1: + int brd_number;
1: + struct request_queue *brd_queue;
1: + struct gendisk *brd_disk;
1: + struct list_head brd_list;
1: + spinlock_t brd_lock;
1: + struct xarray brd_pages;
1: };
1:
1: typedef unsigned int __kernel_old_dev_t;
1:
1: enum {
1: - LO_FLAGS_READ_ONLY = 1,
1: - LO_FLAGS_AUTOCLEAR = 4,
1: - LO_FLAGS_PARTSCAN = 8,
1: - LO_FLAGS_DIRECT_IO = 16,
1: + LO_FLAGS_READ_ONLY = 1,
1: + LO_FLAGS_AUTOCLEAR = 4,
1: + LO_FLAGS_PARTSCAN = 8,
1: + LO_FLAGS_DIRECT_IO = 16,
1: };
1:
1: struct loop_info {
1: - int lo_number;
1: - __kernel_old_dev_t lo_device;
1: - long unsigned int lo_inode;
1: - __kernel_old_dev_t lo_rdevice;
1: - int lo_offset;
1: - int lo_encrypt_type;
1: - int lo_encrypt_key_size;
1: - int lo_flags;
1: - char lo_name[64];
1: - unsigned char lo_encrypt_key[32];
1: - long unsigned int lo_init[2];
1: - char reserved[4];
1: + int lo_number;
1: + __kernel_old_dev_t lo_device;
1: + long unsigned int lo_inode;
1: + __kernel_old_dev_t lo_rdevice;
1: + int lo_offset;
1: + int lo_encrypt_type;
1: + int lo_encrypt_key_size;
1: + int lo_flags;
1: + char lo_name[64];
1: + unsigned char lo_encrypt_key[32];
1: + long unsigned int lo_init[2];
1: + char reserved[4];
1: };
1:
1: struct loop_info64 {
1: - __u64 lo_device;
1: - __u64 lo_inode;
1: - __u64 lo_rdevice;
1: - __u64 lo_offset;
1: - __u64 lo_sizelimit;
1: - __u32 lo_number;
1: - __u32 lo_encrypt_type;
1: - __u32 lo_encrypt_key_size;
1: - __u32 lo_flags;
1: - __u8 lo_file_name[64];
1: - __u8 lo_crypt_name[64];
1: - __u8 lo_encrypt_key[32];
1: - __u64 lo_init[2];
1: + __u64 lo_device;
1: + __u64 lo_inode;
1: + __u64 lo_rdevice;
1: + __u64 lo_offset;
1: + __u64 lo_sizelimit;
1: + __u32 lo_number;
1: + __u32 lo_encrypt_type;
1: + __u32 lo_encrypt_key_size;
1: + __u32 lo_flags;
1: + __u8 lo_file_name[64];
1: + __u8 lo_crypt_name[64];
1: + __u8 lo_encrypt_key[32];
1: + __u64 lo_init[2];
1: };
1:
1: struct loop_config {
1: - __u32 fd;
1: - __u32 block_size;
1: - struct loop_info64 info;
1: - __u64 __reserved[8];
1: + __u32 fd;
1: + __u32 block_size;
1: + struct loop_info64 info;
1: + __u64 __reserved[8];
1: };
1:
1: enum {
1: - Lo_unbound = 0,
1: - Lo_bound = 1,
1: - Lo_rundown = 2,
1: + Lo_unbound = 0,
1: + Lo_bound = 1,
1: + Lo_rundown = 2,
1: };
1:
1: struct loop_func_table;
1:
1: struct loop_device {
1: - int lo_number;
1: - atomic_t lo_refcnt;
1: - loff_t lo_offset;
1: - loff_t lo_sizelimit;
1: - int lo_flags;
1: - int (*transfer)(struct loop_device *, int, struct page *, unsigned int, struct page *, unsigned int, int, sector_t);
1: - char lo_file_name[64];
1: - char lo_crypt_name[64];
1: - char lo_encrypt_key[32];
1: - int lo_encrypt_key_size;
1: - struct loop_func_table *lo_encryption;
1: - __u32 lo_init[2];
1: - kuid_t lo_key_owner;
1: - int (*ioctl)(struct loop_device *, int, long unsigned int);
1: - struct file *lo_backing_file;
1: - struct block_device *lo_device;
1: - void *key_data;
1: - gfp_t old_gfp_mask;
1: - spinlock_t lo_lock;
1: - int lo_state;
1: - struct kthread_worker worker;
1: - struct task_struct *worker_task;
1: - bool use_dio;
1: - bool sysfs_inited;
1: - struct request_queue *lo_queue;
1: - struct blk_mq_tag_set tag_set;
1: - struct gendisk *lo_disk;
1: + int lo_number;
1: + atomic_t lo_refcnt;
1: + loff_t lo_offset;
1: + loff_t lo_sizelimit;
1: + int lo_flags;
1: + int (*transfer)(struct loop_device *, int, struct page *, unsigned int,
1: + struct page *, unsigned int, int, sector_t);
1: + char lo_file_name[64];
1: + char lo_crypt_name[64];
1: + char lo_encrypt_key[32];
1: + int lo_encrypt_key_size;
1: + struct loop_func_table *lo_encryption;
1: + __u32 lo_init[2];
1: + kuid_t lo_key_owner;
1: + int (*ioctl)(struct loop_device *, int, long unsigned int);
1: + struct file *lo_backing_file;
1: + struct block_device *lo_device;
1: + void *key_data;
1: + gfp_t old_gfp_mask;
1: + spinlock_t lo_lock;
1: + int lo_state;
1: + struct kthread_worker worker;
1: + struct task_struct *worker_task;
1: + bool use_dio;
1: + bool sysfs_inited;
1: + struct request_queue *lo_queue;
1: + struct blk_mq_tag_set tag_set;
1: + struct gendisk *lo_disk;
1: };
1:
1: struct loop_func_table {
1: - int number;
1: - int (*transfer)(struct loop_device *, int, struct page *, unsigned int, struct page *, unsigned int, int, sector_t);
1: - int (*init)(struct loop_device *, const struct loop_info64 *);
1: - int (*release)(struct loop_device *);
1: - int (*ioctl)(struct loop_device *, int, long unsigned int);
1: - struct module *owner;
1: + int number;
1: + int (*transfer)(struct loop_device *, int, struct page *, unsigned int,
1: + struct page *, unsigned int, int, sector_t);
1: + int (*init)(struct loop_device *, const struct loop_info64 *);
1: + int (*release)(struct loop_device *);
1: + int (*ioctl)(struct loop_device *, int, long unsigned int);
1: + struct module *owner;
1: };
1:
1: struct loop_cmd {
1: - struct kthread_work work;
1: - bool use_aio;
1: - atomic_t ref;
1: - long int ret;
1: - struct kiocb iocb;
1: - struct bio_vec *bvec;
1: - struct cgroup_subsys_state *css;
1: + struct kthread_work work;
1: + bool use_aio;
1: + atomic_t ref;
1: + long int ret;
1: + struct kiocb iocb;
1: + struct bio_vec *bvec;
1: + struct cgroup_subsys_state *css;
1: };
1:
1: struct compat_loop_info {
1: - compat_int_t lo_number;
1: - compat_dev_t lo_device;
1: - compat_ulong_t lo_inode;
1: - compat_dev_t lo_rdevice;
1: - compat_int_t lo_offset;
1: - compat_int_t lo_encrypt_type;
1: - compat_int_t lo_encrypt_key_size;
1: - compat_int_t lo_flags;
1: - char lo_name[64];
1: - unsigned char lo_encrypt_key[32];
1: - compat_ulong_t lo_init[2];
1: - char reserved[4];
1: + compat_int_t lo_number;
1: + compat_dev_t lo_device;
1: + compat_ulong_t lo_inode;
1: + compat_dev_t lo_rdevice;
1: + compat_int_t lo_offset;
1: + compat_int_t lo_encrypt_type;
1: + compat_int_t lo_encrypt_key_size;
1: + compat_int_t lo_flags;
1: + char lo_name[64];
1: + unsigned char lo_encrypt_key[32];
1: + compat_ulong_t lo_init[2];
1: + char reserved[4];
1: };
1:
1: typedef uint16_t blkif_vdev_t;
1: @@ -83985,576 +85057,580 @@ typedef uint16_t blkif_vdev_t;
1: typedef uint64_t blkif_sector_t;
1:
1: struct blkif_request_segment {
1: - grant_ref_t gref;
1: - uint8_t first_sect;
1: - uint8_t last_sect;
1: + grant_ref_t gref;
1: + uint8_t first_sect;
1: + uint8_t last_sect;
1: };
1:
1: struct blkif_request_rw {
1: - uint8_t nr_segments;
1: - blkif_vdev_t handle;
1: - uint32_t _pad1;
1: - uint64_t id;
1: - blkif_sector_t sector_number;
1: - struct blkif_request_segment seg[11];
1: + uint8_t nr_segments;
1: + blkif_vdev_t handle;
1: + uint32_t _pad1;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + struct blkif_request_segment seg[11];
1: } __attribute__((packed));
1:
1: struct blkif_request_discard {
1: - uint8_t flag;
1: - blkif_vdev_t _pad1;
1: - uint32_t _pad2;
1: - uint64_t id;
1: - blkif_sector_t sector_number;
1: - uint64_t nr_sectors;
1: - uint8_t _pad3;
1: + uint8_t flag;
1: + blkif_vdev_t _pad1;
1: + uint32_t _pad2;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + uint64_t nr_sectors;
1: + uint8_t _pad3;
1: } __attribute__((packed));
1:
1: struct blkif_request_other {
1: - uint8_t _pad1;
1: - blkif_vdev_t _pad2;
1: - uint32_t _pad3;
1: - uint64_t id;
1: + uint8_t _pad1;
1: + blkif_vdev_t _pad2;
1: + uint32_t _pad3;
1: + uint64_t id;
1: } __attribute__((packed));
1:
1: struct blkif_request_indirect {
1: - uint8_t indirect_op;
1: - uint16_t nr_segments;
1: - uint32_t _pad1;
1: - uint64_t id;
1: - blkif_sector_t sector_number;
1: - blkif_vdev_t handle;
1: - uint16_t _pad2;
1: - grant_ref_t indirect_grefs[8];
1: - uint32_t _pad3;
1: + uint8_t indirect_op;
1: + uint16_t nr_segments;
1: + uint32_t _pad1;
1: + uint64_t id;
1: + blkif_sector_t sector_number;
1: + blkif_vdev_t handle;
1: + uint16_t _pad2;
1: + grant_ref_t indirect_grefs[8];
1: + uint32_t _pad3;
1: } __attribute__((packed));
1:
1: struct blkif_request {
1: - uint8_t operation;
1: - union {
1: - struct blkif_request_rw rw;
1: - struct blkif_request_discard discard;
1: - struct blkif_request_other other;
1: - struct blkif_request_indirect indirect;
1: - } u;
1: + uint8_t operation;
1: + union {
1: + struct blkif_request_rw rw;
1: + struct blkif_request_discard discard;
1: + struct blkif_request_other other;
1: + struct blkif_request_indirect indirect;
1: + } u;
1: } __attribute__((packed));
1:
1: struct blkif_response {
1: - uint64_t id;
1: - uint8_t operation;
1: - int16_t status;
1: + uint64_t id;
1: + uint8_t operation;
1: + int16_t status;
1: };
1:
1: union blkif_sring_entry {
1: - struct blkif_request req;
1: - struct blkif_response rsp;
1: + struct blkif_request req;
1: + struct blkif_response rsp;
1: };
1:
1: struct blkif_sring {
1: - RING_IDX req_prod;
1: - RING_IDX req_event;
1: - RING_IDX rsp_prod;
1: - RING_IDX rsp_event;
1: - uint8_t pad[48];
1: - union blkif_sring_entry ring[1];
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union blkif_sring_entry ring[1];
1: };
1:
1: struct blkif_front_ring {
1: - RING_IDX req_prod_pvt;
1: - RING_IDX rsp_cons;
1: - unsigned int nr_ents;
1: - struct blkif_sring *sring;
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct blkif_sring *sring;
1: };
1:
1: enum blkif_state {
1: - BLKIF_STATE_DISCONNECTED = 0,
1: - BLKIF_STATE_CONNECTED = 1,
1: - BLKIF_STATE_SUSPENDED = 2,
1: + BLKIF_STATE_DISCONNECTED = 0,
1: + BLKIF_STATE_CONNECTED = 1,
1: + BLKIF_STATE_SUSPENDED = 2,
1: };
1:
1: struct grant {
1: - grant_ref_t gref;
1: - struct page *page;
1: - struct list_head node;
1: + grant_ref_t gref;
1: + struct page *page;
1: + struct list_head node;
1: };
1:
1: enum blk_req_status {
1: - REQ_WAITING = 0,
1: - REQ_DONE = 1,
1: - REQ_ERROR = 2,
1: - REQ_EOPNOTSUPP = 3,
1: + REQ_WAITING = 0,
1: + REQ_DONE = 1,
1: + REQ_ERROR = 2,
1: + REQ_EOPNOTSUPP = 3,
1: };
1:
1: struct blk_shadow {
1: - struct blkif_request req;
1: - struct request *request;
1: - struct grant **grants_used;
1: - struct grant **indirect_grants;
1: - struct scatterlist *sg;
1: - unsigned int num_sg;
1: - enum blk_req_status status;
1: - long unsigned int associated_id;
1: + struct blkif_request req;
1: + struct request *request;
1: + struct grant **grants_used;
1: + struct grant **indirect_grants;
1: + struct scatterlist *sg;
1: + unsigned int num_sg;
1: + enum blk_req_status status;
1: + long unsigned int associated_id;
1: };
1:
1: struct blkif_req {
1: - blk_status_t error;
1: + blk_status_t error;
1: };
1:
1: struct blkfront_info;
1:
1: struct blkfront_ring_info {
1: - spinlock_t ring_lock;
1: - struct blkif_front_ring ring;
1: - unsigned int ring_ref[16];
1: - unsigned int evtchn;
1: - unsigned int irq;
1: - struct work_struct work;
1: - struct gnttab_free_callback callback;
1: - struct list_head indirect_pages;
1: - struct list_head grants;
1: - unsigned int persistent_gnts_c;
1: - long unsigned int shadow_free;
1: - struct blkfront_info *dev_info;
1: - struct blk_shadow shadow[0];
1: + spinlock_t ring_lock;
1: + struct blkif_front_ring ring;
1: + unsigned int ring_ref[16];
1: + unsigned int evtchn;
1: + unsigned int irq;
1: + struct work_struct work;
1: + struct gnttab_free_callback callback;
1: + struct list_head indirect_pages;
1: + struct list_head grants;
1: + unsigned int persistent_gnts_c;
1: + long unsigned int shadow_free;
1: + struct blkfront_info *dev_info;
1: + struct blk_shadow shadow[0];
1: };
1:
1: struct blkfront_info {
1: - struct mutex mutex;
1: - struct xenbus_device *xbdev;
1: - struct gendisk *gd;
1: - u16 sector_size;
1: - unsigned int physical_sector_size;
1: - int vdevice;
1: - blkif_vdev_t handle;
1: - enum blkif_state connected;
1: - unsigned int nr_ring_pages;
1: - struct request_queue *rq;
1: - unsigned int feature_flush: 1;
1: - unsigned int feature_fua: 1;
1: - unsigned int feature_discard: 1;
1: - unsigned int feature_secdiscard: 1;
1: - unsigned int feature_persistent: 1;
1: - unsigned int discard_granularity;
1: - unsigned int discard_alignment;
1: - unsigned int max_indirect_segments;
1: - int is_ready;
1: - struct blk_mq_tag_set tag_set;
1: - struct blkfront_ring_info *rinfo;
1: - unsigned int nr_rings;
1: - unsigned int rinfo_size;
1: - struct list_head requests;
1: - struct bio_list bio_list;
1: - struct list_head info_list;
1: + struct mutex mutex;
1: + struct xenbus_device *xbdev;
1: + struct gendisk *gd;
1: + u16 sector_size;
1: + unsigned int physical_sector_size;
1: + int vdevice;
1: + blkif_vdev_t handle;
1: + enum blkif_state connected;
1: + unsigned int nr_ring_pages;
1: + struct request_queue *rq;
1: + unsigned int feature_flush : 1;
1: + unsigned int feature_fua : 1;
1: + unsigned int feature_discard : 1;
1: + unsigned int feature_secdiscard : 1;
1: + unsigned int feature_persistent : 1;
1: + unsigned int discard_granularity;
1: + unsigned int discard_alignment;
1: + unsigned int max_indirect_segments;
1: + int is_ready;
1: + struct blk_mq_tag_set tag_set;
1: + struct blkfront_ring_info *rinfo;
1: + unsigned int nr_rings;
1: + unsigned int rinfo_size;
1: + struct list_head requests;
1: + struct bio_list bio_list;
1: + struct list_head info_list;
1: };
1:
1: struct setup_rw_req {
1: - unsigned int grant_idx;
1: - struct blkif_request_segment *segments;
1: - struct blkfront_ring_info *rinfo;
1: - struct blkif_request *ring_req;
1: - grant_ref_t gref_head;
1: - unsigned int id;
1: - bool need_copy;
1: - unsigned int bvec_off;
1: - char *bvec_data;
1: - bool require_extra_req;
1: - struct blkif_request *extra_ring_req;
1: + unsigned int grant_idx;
1: + struct blkif_request_segment *segments;
1: + struct blkfront_ring_info *rinfo;
1: + struct blkif_request *ring_req;
1: + grant_ref_t gref_head;
1: + unsigned int id;
1: + bool need_copy;
1: + unsigned int bvec_off;
1: + char *bvec_data;
1: + bool require_extra_req;
1: + struct blkif_request *extra_ring_req;
1: };
1:
1: struct copy_from_grant {
1: - const struct blk_shadow *s;
1: - unsigned int grant_idx;
1: - unsigned int bvec_offset;
1: - char *bvec_data;
1: + const struct blk_shadow *s;
1: + unsigned int grant_idx;
1: + unsigned int bvec_offset;
1: + char *bvec_data;
1: };
1:
1: struct test_struct {
1: - char *get;
1: - char *put;
1: - void (*get_handler)(char *);
1: - int (*put_handler)(char *, char *);
1: + char *get;
1: + char *put;
1: + void (*get_handler)(char *);
1: + int (*put_handler)(char *, char *);
1: };
1:
1: struct test_state {
1: - char *name;
1: - struct test_struct *tst;
1: - int idx;
1: - int (*run_test)(int, int);
1: - int (*validate_put)(char *);
1: + char *name;
1: + struct test_struct *tst;
1: + int idx;
1: + int (*run_test)(int, int);
1: + int (*validate_put)(char *);
1: };
1:
1: struct sram_partition {
1: - void *base;
1: - struct gen_pool *pool;
1: - struct bin_attribute battr;
1: - struct mutex lock;
1: - struct list_head list;
1: + void *base;
1: + struct gen_pool *pool;
1: + struct bin_attribute battr;
1: + struct mutex lock;
1: + struct list_head list;
1: };
1:
1: struct sram_dev {
1: - struct device *dev;
1: - void *virt_base;
1: - struct gen_pool *pool;
1: - struct clk *clk;
1: - struct sram_partition *partition;
1: - u32 partitions;
1: + struct device *dev;
1: + void *virt_base;
1: + struct gen_pool *pool;
1: + struct clk *clk;
1: + struct sram_partition *partition;
1: + u32 partitions;
1: };
1:
1: struct sram_reserve {
1: - struct list_head list;
1: - u32 start;
1: - u32 size;
1: - bool export;
1: - bool pool;
1: - bool protect_exec;
1: - const char *label;
1: + struct list_head list;
1: + u32 start;
1: + u32 size;
1: + bool export;
1: + bool pool;
1: + bool protect_exec;
1: + const char *label;
1: };
1:
1: struct mfd_cell_acpi_match;
1:
1: struct mfd_cell {
1: - const char *name;
1: - int id;
1: - int level;
1: - int (*enable)(struct platform_device *);
1: - int (*disable)(struct platform_device *);
1: - int (*suspend)(struct platform_device *);
1: - int (*resume)(struct platform_device *);
1: - void *platform_data;
1: - size_t pdata_size;
1: - const struct property_entry *properties;
1: - const char *of_compatible;
1: - const u64 of_reg;
1: - bool use_of_reg;
1: - const struct mfd_cell_acpi_match *acpi_match;
1: - int num_resources;
1: - const struct resource *resources;
1: - bool ignore_resource_conflicts;
1: - bool pm_runtime_no_callbacks;
1: - const char * const *parent_supplies;
1: - int num_parent_supplies;
1: + const char *name;
1: + int id;
1: + int level;
1: + int (*enable)(struct platform_device *);
1: + int (*disable)(struct platform_device *);
1: + int (*suspend)(struct platform_device *);
1: + int (*resume)(struct platform_device *);
1: + void *platform_data;
1: + size_t pdata_size;
1: + const struct property_entry *properties;
1: + const char *of_compatible;
1: + const u64 of_reg;
1: + bool use_of_reg;
1: + const struct mfd_cell_acpi_match *acpi_match;
1: + int num_resources;
1: + const struct resource *resources;
1: + bool ignore_resource_conflicts;
1: + bool pm_runtime_no_callbacks;
1: + const char *const *parent_supplies;
1: + int num_parent_supplies;
1: };
1:
1: struct mfd_cell_acpi_match {
1: - const char *pnpid;
1: - const long long unsigned int adr;
1: + const char *pnpid;
1: + const long long unsigned int adr;
1: };
1:
1: struct prcm_data {
1: - int nsubdevs;
1: - const struct mfd_cell *subdevs;
1: + int nsubdevs;
1: + const struct mfd_cell *subdevs;
1: };
1:
1: struct arizona_micbias {
1: - int mV;
1: - unsigned int ext_cap: 1;
1: - unsigned int discharge: 1;
1: - unsigned int soft_start: 1;
1: - unsigned int bypass: 1;
1: + int mV;
1: + unsigned int ext_cap : 1;
1: + unsigned int discharge : 1;
1: + unsigned int soft_start : 1;
1: + unsigned int bypass : 1;
1: };
1:
1: struct arizona_micd_config {
1: - unsigned int src;
1: - unsigned int bias;
1: - bool gpio;
1: + unsigned int src;
1: + unsigned int bias;
1: + bool gpio;
1: };
1:
1: struct arizona_micd_range {
1: - int max;
1: - int key;
1: + int max;
1: + int key;
1: };
1:
1: struct arizona_pdata {
1: - struct gpio_desc *reset;
1: - struct arizona_micsupp_pdata micvdd;
1: - struct arizona_ldo1_pdata ldo1;
1: - int clk32k_src;
1: - unsigned int irq_flags;
1: - int gpio_base;
1: - unsigned int gpio_defaults[5];
1: - unsigned int max_channels_clocked[3];
1: - bool jd_gpio5;
1: - bool jd_gpio5_nopull;
1: - bool jd_invert;
1: - bool hpdet_acc_id;
1: - bool hpdet_acc_id_line;
1: - int hpdet_id_gpio;
1: - unsigned int hpdet_channel;
1: - bool micd_software_compare;
1: - unsigned int micd_detect_debounce;
1: - int micd_pol_gpio;
1: - unsigned int micd_bias_start_time;
1: - unsigned int micd_rate;
1: - unsigned int micd_dbtime;
1: - unsigned int micd_timeout;
1: - bool micd_force_micbias;
1: - const struct arizona_micd_range *micd_ranges;
1: - int num_micd_ranges;
1: - struct arizona_micd_config *micd_configs;
1: - int num_micd_configs;
1: - int dmic_ref[4];
1: - struct arizona_micbias micbias[3];
1: - int inmode[4];
1: - int out_mono[6];
1: - unsigned int out_vol_limit[12];
1: - unsigned int spk_mute[2];
1: - unsigned int spk_fmt[2];
1: - unsigned int hap_act;
1: - int irq_gpio;
1: - unsigned int gpsw;
1: -};
1: -
1: -enum {
1: - ARIZONA_MCLK1 = 0,
1: - ARIZONA_MCLK2 = 1,
1: - ARIZONA_NUM_MCLK = 2,
1: + struct gpio_desc *reset;
1: + struct arizona_micsupp_pdata micvdd;
1: + struct arizona_ldo1_pdata ldo1;
1: + int clk32k_src;
1: + unsigned int irq_flags;
1: + int gpio_base;
1: + unsigned int gpio_defaults[5];
1: + unsigned int max_channels_clocked[3];
1: + bool jd_gpio5;
1: + bool jd_gpio5_nopull;
1: + bool jd_invert;
1: + bool hpdet_acc_id;
1: + bool hpdet_acc_id_line;
1: + int hpdet_id_gpio;
1: + unsigned int hpdet_channel;
1: + bool micd_software_compare;
1: + unsigned int micd_detect_debounce;
1: + int micd_pol_gpio;
1: + unsigned int micd_bias_start_time;
1: + unsigned int micd_rate;
1: + unsigned int micd_dbtime;
1: + unsigned int micd_timeout;
1: + bool micd_force_micbias;
1: + const struct arizona_micd_range *micd_ranges;
1: + int num_micd_ranges;
1: + struct arizona_micd_config *micd_configs;
1: + int num_micd_configs;
1: + int dmic_ref[4];
1: + struct arizona_micbias micbias[3];
1: + int inmode[4];
1: + int out_mono[6];
1: + unsigned int out_vol_limit[12];
1: + unsigned int spk_mute[2];
1: + unsigned int spk_fmt[2];
1: + unsigned int hap_act;
1: + int irq_gpio;
1: + unsigned int gpsw;
1: +};
1: +
1: +enum {
1: + ARIZONA_MCLK1 = 0,
1: + ARIZONA_MCLK2 = 1,
1: + ARIZONA_NUM_MCLK = 2,
1: };
1:
1: enum arizona_type {
1: - WM5102 = 1,
1: - WM5110 = 2,
1: - WM8997 = 3,
1: - WM8280 = 4,
1: - WM8998 = 5,
1: - WM1814 = 6,
1: - WM1831 = 7,
1: - CS47L24 = 8,
1: + WM5102 = 1,
1: + WM5110 = 2,
1: + WM8997 = 3,
1: + WM8280 = 4,
1: + WM8998 = 5,
1: + WM1814 = 6,
1: + WM1831 = 7,
1: + CS47L24 = 8,
1: };
1:
1: struct arizona {
1: - struct regmap *regmap;
1: - struct device *dev;
1: - enum arizona_type type;
1: - unsigned int rev;
1: - int num_core_supplies;
1: - struct regulator_bulk_data core_supplies[2];
1: - struct regulator *dcvdd;
1: - bool has_fully_powered_off;
1: - struct arizona_pdata pdata;
1: - unsigned int external_dcvdd: 1;
1: - int irq;
1: - struct irq_domain *virq;
1: - struct regmap_irq_chip_data *aod_irq_chip;
1: - struct regmap_irq_chip_data *irq_chip;
1: - bool hpdet_clamp;
1: - unsigned int hp_ena;
1: - struct mutex clk_lock;
1: - int clk32k_ref;
1: - struct clk *mclk[2];
1: - bool ctrlif_error;
1: - struct snd_soc_dapm_context *dapm;
1: - int tdm_width[3];
1: - int tdm_slots[3];
1: - uint16_t dac_comp_coeff;
1: - uint8_t dac_comp_enabled;
1: - struct mutex dac_comp_lock;
1: - struct blocking_notifier_head notifier;
1: + struct regmap *regmap;
1: + struct device *dev;
1: + enum arizona_type type;
1: + unsigned int rev;
1: + int num_core_supplies;
1: + struct regulator_bulk_data core_supplies[2];
1: + struct regulator *dcvdd;
1: + bool has_fully_powered_off;
1: + struct arizona_pdata pdata;
1: + unsigned int external_dcvdd : 1;
1: + int irq;
1: + struct irq_domain *virq;
1: + struct regmap_irq_chip_data *aod_irq_chip;
1: + struct regmap_irq_chip_data *irq_chip;
1: + bool hpdet_clamp;
1: + unsigned int hp_ena;
1: + struct mutex clk_lock;
1: + int clk32k_ref;
1: + struct clk *mclk[2];
1: + bool ctrlif_error;
1: + struct snd_soc_dapm_context *dapm;
1: + int tdm_width[3];
1: + int tdm_slots[3];
1: + uint16_t dac_comp_coeff;
1: + uint8_t dac_comp_enabled;
1: + struct mutex dac_comp_lock;
1: + struct blocking_notifier_head notifier;
1: };
1:
1: struct arizona_sysclk_state {
1: - unsigned int fll;
1: - unsigned int sysclk;
1: + unsigned int fll;
1: + unsigned int sysclk;
1: };
1:
1: enum tps65912_irqs {
1: - TPS65912_IRQ_PWRHOLD_F = 0,
1: - TPS65912_IRQ_VMON = 1,
1: - TPS65912_IRQ_PWRON = 2,
1: - TPS65912_IRQ_PWRON_LP = 3,
1: - TPS65912_IRQ_PWRHOLD_R = 4,
1: - TPS65912_IRQ_HOTDIE = 5,
1: - TPS65912_IRQ_GPIO1_R = 6,
1: - TPS65912_IRQ_GPIO1_F = 7,
1: - TPS65912_IRQ_GPIO2_R = 8,
1: - TPS65912_IRQ_GPIO2_F = 9,
1: - TPS65912_IRQ_GPIO3_R = 10,
1: - TPS65912_IRQ_GPIO3_F = 11,
1: - TPS65912_IRQ_GPIO4_R = 12,
1: - TPS65912_IRQ_GPIO4_F = 13,
1: - TPS65912_IRQ_GPIO5_R = 14,
1: - TPS65912_IRQ_GPIO5_F = 15,
1: - TPS65912_IRQ_PGOOD_DCDC1 = 16,
1: - TPS65912_IRQ_PGOOD_DCDC2 = 17,
1: - TPS65912_IRQ_PGOOD_DCDC3 = 18,
1: - TPS65912_IRQ_PGOOD_DCDC4 = 19,
1: - TPS65912_IRQ_PGOOD_LDO1 = 20,
1: - TPS65912_IRQ_PGOOD_LDO2 = 21,
1: - TPS65912_IRQ_PGOOD_LDO3 = 22,
1: - TPS65912_IRQ_PGOOD_LDO4 = 23,
1: - TPS65912_IRQ_PGOOD_LDO5 = 24,
1: - TPS65912_IRQ_PGOOD_LDO6 = 25,
1: - TPS65912_IRQ_PGOOD_LDO7 = 26,
1: - TPS65912_IRQ_PGOOD_LDO8 = 27,
1: - TPS65912_IRQ_PGOOD_LDO9 = 28,
1: - TPS65912_IRQ_PGOOD_LDO10 = 29,
1: + TPS65912_IRQ_PWRHOLD_F = 0,
1: + TPS65912_IRQ_VMON = 1,
1: + TPS65912_IRQ_PWRON = 2,
1: + TPS65912_IRQ_PWRON_LP = 3,
1: + TPS65912_IRQ_PWRHOLD_R = 4,
1: + TPS65912_IRQ_HOTDIE = 5,
1: + TPS65912_IRQ_GPIO1_R = 6,
1: + TPS65912_IRQ_GPIO1_F = 7,
1: + TPS65912_IRQ_GPIO2_R = 8,
1: + TPS65912_IRQ_GPIO2_F = 9,
1: + TPS65912_IRQ_GPIO3_R = 10,
1: + TPS65912_IRQ_GPIO3_F = 11,
1: + TPS65912_IRQ_GPIO4_R = 12,
1: + TPS65912_IRQ_GPIO4_F = 13,
1: + TPS65912_IRQ_GPIO5_R = 14,
1: + TPS65912_IRQ_GPIO5_F = 15,
1: + TPS65912_IRQ_PGOOD_DCDC1 = 16,
1: + TPS65912_IRQ_PGOOD_DCDC2 = 17,
1: + TPS65912_IRQ_PGOOD_DCDC3 = 18,
1: + TPS65912_IRQ_PGOOD_DCDC4 = 19,
1: + TPS65912_IRQ_PGOOD_LDO1 = 20,
1: + TPS65912_IRQ_PGOOD_LDO2 = 21,
1: + TPS65912_IRQ_PGOOD_LDO3 = 22,
1: + TPS65912_IRQ_PGOOD_LDO4 = 23,
1: + TPS65912_IRQ_PGOOD_LDO5 = 24,
1: + TPS65912_IRQ_PGOOD_LDO6 = 25,
1: + TPS65912_IRQ_PGOOD_LDO7 = 26,
1: + TPS65912_IRQ_PGOOD_LDO8 = 27,
1: + TPS65912_IRQ_PGOOD_LDO9 = 28,
1: + TPS65912_IRQ_PGOOD_LDO10 = 29,
1: };
1:
1: struct tps65912 {
1: - struct device *dev;
1: - struct regmap *regmap;
1: - int irq;
1: - struct regmap_irq_chip_data *irq_data;
1: + struct device *dev;
1: + struct regmap *regmap;
1: + int irq;
1: + struct regmap_irq_chip_data *irq_data;
1: };
1:
1: struct spi_device_id {
1: - char name[32];
1: - kernel_ulong_t driver_data;
1: + char name[32];
1: + kernel_ulong_t driver_data;
1: };
1:
1: struct spi_driver {
1: - const struct spi_device_id *id_table;
1: - int (*probe)(struct spi_device *);
1: - int (*remove)(struct spi_device *);
1: - void (*shutdown)(struct spi_device *);
1: - struct device_driver driver;
1: + const struct spi_device_id *id_table;
1: + int (*probe)(struct spi_device *);
1: + int (*remove)(struct spi_device *);
1: + void (*shutdown)(struct spi_device *);
1: + struct device_driver driver;
1: };
1:
1: struct mfd_of_node_entry {
1: - struct list_head list;
1: - struct device *dev;
1: - struct device_node *np;
1: + struct list_head list;
1: + struct device *dev;
1: + struct device_node *np;
1: };
1:
1: struct da9052 {
1: - struct device *dev;
1: - struct regmap *regmap;
1: - struct mutex auxadc_lock;
1: - struct completion done;
1: - int irq_base;
1: - struct regmap_irq_chip_data *irq_data;
1: - u8 chip_id;
1: - int chip_irq;
1: - int (*fix_io)(struct da9052 *, unsigned char);
1: + struct device *dev;
1: + struct regmap *regmap;
1: + struct mutex auxadc_lock;
1: + struct completion done;
1: + int irq_base;
1: + struct regmap_irq_chip_data *irq_data;
1: + u8 chip_id;
1: + int chip_irq;
1: + int (*fix_io)(struct da9052 *, unsigned char);
1: };
1:
1: struct led_platform_data;
1:
1: struct da9052_pdata {
1: - struct led_platform_data *pled;
1: - int (*init)(struct da9052 *);
1: - int irq_base;
1: - int gpio_base;
1: - int use_for_apm;
1: - struct regulator_init_data *regulators[14];
1: + struct led_platform_data *pled;
1: + int (*init)(struct da9052 *);
1: + int irq_base;
1: + int gpio_base;
1: + int use_for_apm;
1: + struct regulator_init_data *regulators[14];
1: };
1:
1: enum da9052_chip_id {
1: - DA9052 = 0,
1: - DA9053_AA = 1,
1: - DA9053_BA = 2,
1: - DA9053_BB = 3,
1: - DA9053_BC = 4,
1: + DA9052 = 0,
1: + DA9053_AA = 1,
1: + DA9053_BA = 2,
1: + DA9053_BB = 3,
1: + DA9053_BC = 4,
1: };
1:
1: struct syscon_platform_data {
1: - const char *label;
1: + const char *label;
1: };
1:
1: struct syscon {
1: - struct device_node *np;
1: - struct regmap *regmap;
1: - struct list_head list;
1: + struct device_node *np;
1: + struct regmap *regmap;
1: + struct list_head list;
1: };
1:
1: struct dax_device___2;
1:
1: struct dax_operations {
1: - long int (*direct_access)(struct dax_device___2 *, long unsigned int, long int, void **, pfn_t *);
1: - bool (*dax_supported)(struct dax_device___2 *, struct block_device *, int, sector_t, sector_t);
1: - size_t (*copy_from_iter)(struct dax_device___2 *, long unsigned int, void *, size_t, struct iov_iter *);
1: - size_t (*copy_to_iter)(struct dax_device___2 *, long unsigned int, void *, size_t, struct iov_iter *);
1: - int (*zero_page_range)(struct dax_device___2 *, long unsigned int, size_t);
1: + long int (*direct_access)(struct dax_device___2 *, long unsigned int,
1: + long int, void **, pfn_t *);
1: + bool (*dax_supported)(struct dax_device___2 *, struct block_device *, int,
1: + sector_t, sector_t);
1: + size_t (*copy_from_iter)(struct dax_device___2 *, long unsigned int, void *,
1: + size_t, struct iov_iter *);
1: + size_t (*copy_to_iter)(struct dax_device___2 *, long unsigned int, void *,
1: + size_t, struct iov_iter *);
1: + int (*zero_page_range)(struct dax_device___2 *, long unsigned int, size_t);
1: };
1:
1: struct dax_device___2 {
1: - struct hlist_node list;
1: - struct inode inode;
1: - struct cdev cdev;
1: - const char *host;
1: - void *private;
1: - long unsigned int flags;
1: - const struct dax_operations *ops;
1: + struct hlist_node list;
1: + struct inode inode;
1: + struct cdev cdev;
1: + const char *host;
1: + void *private;
1: + long unsigned int flags;
1: + const struct dax_operations *ops;
1: };
1:
1: enum dax_device_flags {
1: - DAXDEV_ALIVE = 0,
1: - DAXDEV_WRITE_CACHE = 1,
1: - DAXDEV_SYNC = 2,
1: + DAXDEV_ALIVE = 0,
1: + DAXDEV_WRITE_CACHE = 1,
1: + DAXDEV_SYNC = 2,
1: };
1:
1: struct dax_region {
1: - int id;
1: - int target_node;
1: - struct kref kref;
1: - struct device *dev;
1: - unsigned int align;
1: - struct ida ida;
1: - struct resource res;
1: - struct device *seed;
1: - struct device *youngest;
1: + int id;
1: + int target_node;
1: + struct kref kref;
1: + struct device *dev;
1: + unsigned int align;
1: + struct ida ida;
1: + struct resource res;
1: + struct device *seed;
1: + struct device *youngest;
1: };
1:
1: struct dax_mapping {
1: - struct device dev;
1: - int range_id;
1: - int id;
1: + struct device dev;
1: + int range_id;
1: + int id;
1: };
1:
1: struct dev_dax_range {
1: - long unsigned int pgoff;
1: - struct range range;
1: - struct dax_mapping *mapping;
1: + long unsigned int pgoff;
1: + struct range range;
1: + struct dax_mapping *mapping;
1: };
1:
1: struct dev_dax {
1: - struct dax_region *region;
1: - struct dax_device *dax_dev;
1: - unsigned int align;
1: - int target_node;
1: - int id;
1: - struct ida ida;
1: - struct device dev;
1: - struct dev_pagemap *pgmap;
1: - int nr_range;
1: - struct dev_dax_range *ranges;
1: + struct dax_region *region;
1: + struct dax_device *dax_dev;
1: + unsigned int align;
1: + int target_node;
1: + int id;
1: + struct ida ida;
1: + struct device dev;
1: + struct dev_pagemap *pgmap;
1: + int nr_range;
1: + struct dev_dax_range *ranges;
1: };
1:
1: enum dev_dax_subsys {
1: - DEV_DAX_BUS = 0,
1: - DEV_DAX_CLASS = 1,
1: + DEV_DAX_BUS = 0,
1: + DEV_DAX_CLASS = 1,
1: };
1:
1: struct dev_dax_data {
1: - struct dax_region *dax_region;
1: - struct dev_pagemap *pgmap;
1: - enum dev_dax_subsys subsys;
1: - resource_size_t size;
1: - int id;
1: + struct dax_region *dax_region;
1: + struct dev_pagemap *pgmap;
1: + enum dev_dax_subsys subsys;
1: + resource_size_t size;
1: + int id;
1: };
1:
1: struct dax_device_driver {
1: - struct device_driver drv;
1: - struct list_head ids;
1: - int match_always;
1: - int (*probe)(struct dev_dax *);
1: - int (*remove)(struct dev_dax *);
1: + struct device_driver drv;
1: + struct list_head ids;
1: + int match_always;
1: + int (*probe)(struct dev_dax *);
1: + int (*remove)(struct dev_dax *);
1: };
1:
1: struct dax_id {
1: - struct list_head list;
1: - char dev_name[30];
1: + struct list_head list;
1: + char dev_name[30];
1: };
1:
1: enum id_action {
1: - ID_REMOVE = 0,
1: - ID_ADD = 1,
1: + ID_REMOVE = 0,
1: + ID_ADD = 1,
1: };
1:
1: struct memregion_info {
1: - int target_node;
1: + int target_node;
1: };
1:
1: struct seqcount_ww_mutex {
1: - seqcount_t seqcount;
1: + seqcount_t seqcount;
1: };
1:
1: typedef struct seqcount_ww_mutex seqcount_ww_mutex_t;
1: @@ -84562,37 +85638,37 @@ typedef struct seqcount_ww_mutex seqcount_ww_mutex_t;
1: struct dma_fence_ops;
1:
1: struct dma_fence {
1: - spinlock_t *lock;
1: - const struct dma_fence_ops *ops;
1: - union {
1: - struct list_head cb_list;
1: - ktime_t timestamp;
1: - struct callback_head rcu;
1: - };
1: - u64 context;
1: - u64 seqno;
1: - long unsigned int flags;
1: - struct kref refcount;
1: - int error;
1: + spinlock_t *lock;
1: + const struct dma_fence_ops *ops;
1: + union {
1: + struct list_head cb_list;
1: + ktime_t timestamp;
1: + struct callback_head rcu;
1: + };
1: + u64 context;
1: + u64 seqno;
1: + long unsigned int flags;
1: + struct kref refcount;
1: + int error;
1: };
1:
1: struct dma_fence_ops {
1: - bool use_64bit_seqno;
1: - const char * (*get_driver_name)(struct dma_fence *);
1: - const char * (*get_timeline_name)(struct dma_fence *);
1: - bool (*enable_signaling)(struct dma_fence *);
1: - bool (*signaled)(struct dma_fence *);
1: - long int (*wait)(struct dma_fence *, bool, long int);
1: - void (*release)(struct dma_fence *);
1: - void (*fence_value_str)(struct dma_fence *, char *, int);
1: - void (*timeline_value_str)(struct dma_fence *, char *, int);
1: + bool use_64bit_seqno;
1: + const char *(*get_driver_name)(struct dma_fence *);
1: + const char *(*get_timeline_name)(struct dma_fence *);
1: + bool (*enable_signaling)(struct dma_fence *);
1: + bool (*signaled)(struct dma_fence *);
1: + long int (*wait)(struct dma_fence *, bool, long int);
1: + void (*release)(struct dma_fence *);
1: + void (*fence_value_str)(struct dma_fence *, char *, int);
1: + void (*timeline_value_str)(struct dma_fence *, char *, int);
1: };
1:
1: enum dma_fence_flag_bits {
1: - DMA_FENCE_FLAG_SIGNALED_BIT = 0,
1: - DMA_FENCE_FLAG_TIMESTAMP_BIT = 1,
1: - DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT = 2,
1: - DMA_FENCE_FLAG_USER_BITS = 3,
1: + DMA_FENCE_FLAG_SIGNALED_BIT = 0,
1: + DMA_FENCE_FLAG_TIMESTAMP_BIT = 1,
1: + DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT = 2,
1: + DMA_FENCE_FLAG_USER_BITS = 3,
1: };
1:
1: struct dma_fence_cb;
1: @@ -84600,8 +85676,8 @@ struct dma_fence_cb;
1: typedef void (*dma_fence_func_t)(struct dma_fence *, struct dma_fence_cb *);
1:
1: struct dma_fence_cb {
1: - struct list_head node;
1: - dma_fence_func_t func;
1: + struct list_head node;
1: + dma_fence_func_t func;
1: };
1:
1: struct dma_buf;
1: @@ -84609,115 +85685,117 @@ struct dma_buf;
1: struct dma_buf_attachment;
1:
1: struct dma_buf_ops {
1: - bool cache_sgt_mapping;
1: - int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
1: - void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
1: - int (*pin)(struct dma_buf_attachment *);
1: - void (*unpin)(struct dma_buf_attachment *);
1: - struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *, enum dma_data_direction);
1: - void (*unmap_dma_buf)(struct dma_buf_attachment *, struct sg_table *, enum dma_data_direction);
1: - void (*release)(struct dma_buf *);
1: - int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: - int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: - int (*mmap)(struct dma_buf *, struct vm_area_struct *);
1: - void * (*vmap)(struct dma_buf *);
1: - void (*vunmap)(struct dma_buf *, void *);
1: + bool cache_sgt_mapping;
1: + int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
1: + void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
1: + int (*pin)(struct dma_buf_attachment *);
1: + void (*unpin)(struct dma_buf_attachment *);
1: + struct sg_table *(*map_dma_buf)(struct dma_buf_attachment *,
1: + enum dma_data_direction);
1: + void (*unmap_dma_buf)(struct dma_buf_attachment *, struct sg_table *,
1: + enum dma_data_direction);
1: + void (*release)(struct dma_buf *);
1: + int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: + int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
1: + int (*mmap)(struct dma_buf *, struct vm_area_struct *);
1: + void *(*vmap)(struct dma_buf *);
1: + void (*vunmap)(struct dma_buf *, void *);
1: };
1:
1: struct dma_buf_poll_cb_t {
1: - struct dma_fence_cb cb;
1: - wait_queue_head_t *poll;
1: - __poll_t active;
1: + struct dma_fence_cb cb;
1: + wait_queue_head_t *poll;
1: + __poll_t active;
1: };
1:
1: struct dma_resv;
1:
1: struct dma_buf {
1: - size_t size;
1: - struct file *file;
1: - struct list_head attachments;
1: - const struct dma_buf_ops *ops;
1: - struct mutex lock;
1: - unsigned int vmapping_counter;
1: - void *vmap_ptr;
1: - const char *exp_name;
1: - const char *name;
1: - spinlock_t name_lock;
1: - struct module *owner;
1: - struct list_head list_node;
1: - void *priv;
1: - struct dma_resv *resv;
1: - wait_queue_head_t poll;
1: - struct dma_buf_poll_cb_t cb_excl;
1: - struct dma_buf_poll_cb_t cb_shared;
1: + size_t size;
1: + struct file *file;
1: + struct list_head attachments;
1: + const struct dma_buf_ops *ops;
1: + struct mutex lock;
1: + unsigned int vmapping_counter;
1: + void *vmap_ptr;
1: + const char *exp_name;
1: + const char *name;
1: + spinlock_t name_lock;
1: + struct module *owner;
1: + struct list_head list_node;
1: + void *priv;
1: + struct dma_resv *resv;
1: + wait_queue_head_t poll;
1: + struct dma_buf_poll_cb_t cb_excl;
1: + struct dma_buf_poll_cb_t cb_shared;
1: };
1:
1: struct dma_buf_attach_ops;
1:
1: struct dma_buf_attachment {
1: - struct dma_buf *dmabuf;
1: - struct device *dev;
1: - struct list_head node;
1: - struct sg_table *sgt;
1: - enum dma_data_direction dir;
1: - bool peer2peer;
1: - const struct dma_buf_attach_ops *importer_ops;
1: - void *importer_priv;
1: - void *priv;
1: + struct dma_buf *dmabuf;
1: + struct device *dev;
1: + struct list_head node;
1: + struct sg_table *sgt;
1: + enum dma_data_direction dir;
1: + bool peer2peer;
1: + const struct dma_buf_attach_ops *importer_ops;
1: + void *importer_priv;
1: + void *priv;
1: };
1:
1: struct dma_resv_list;
1:
1: struct dma_resv {
1: - struct ww_mutex lock;
1: - seqcount_ww_mutex_t seq;
1: - struct dma_fence *fence_excl;
1: - struct dma_resv_list *fence;
1: + struct ww_mutex lock;
1: + seqcount_ww_mutex_t seq;
1: + struct dma_fence *fence_excl;
1: + struct dma_resv_list *fence;
1: };
1:
1: struct dma_buf_attach_ops {
1: - bool allow_peer2peer;
1: - void (*move_notify)(struct dma_buf_attachment *);
1: + bool allow_peer2peer;
1: + void (*move_notify)(struct dma_buf_attachment *);
1: };
1:
1: struct dma_buf_export_info {
1: - const char *exp_name;
1: - struct module *owner;
1: - const struct dma_buf_ops *ops;
1: - size_t size;
1: - int flags;
1: - struct dma_resv *resv;
1: - void *priv;
1: + const char *exp_name;
1: + struct module *owner;
1: + const struct dma_buf_ops *ops;
1: + size_t size;
1: + int flags;
1: + struct dma_resv *resv;
1: + void *priv;
1: };
1:
1: struct dma_resv_list {
1: - struct callback_head rcu;
1: - u32 shared_count;
1: - u32 shared_max;
1: - struct dma_fence *shared[0];
1: + struct callback_head rcu;
1: + u32 shared_count;
1: + u32 shared_max;
1: + struct dma_fence *shared[0];
1: };
1:
1: struct dma_buf_sync {
1: - __u64 flags;
1: + __u64 flags;
1: };
1:
1: struct dma_buf_list {
1: - struct list_head head;
1: - struct mutex lock;
1: + struct list_head head;
1: + struct mutex lock;
1: };
1:
1: struct trace_event_raw_dma_fence {
1: - struct trace_entry ent;
1: - u32 __data_loc_driver;
1: - u32 __data_loc_timeline;
1: - unsigned int context;
1: - unsigned int seqno;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_driver;
1: + u32 __data_loc_timeline;
1: + unsigned int context;
1: + unsigned int seqno;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_dma_fence {
1: - u32 driver;
1: - u32 timeline;
1: + u32 driver;
1: + u32 timeline;
1: };
1:
1: typedef void (*btf_trace_dma_fence_emit)(void *, struct dma_fence *);
1: @@ -84735,1117 +85813,1117 @@ typedef void (*btf_trace_dma_fence_wait_start)(void *, struct dma_fence *);
1: typedef void (*btf_trace_dma_fence_wait_end)(void *, struct dma_fence *);
1:
1: struct default_wait_cb {
1: - struct dma_fence_cb base;
1: - struct task_struct *task;
1: + struct dma_fence_cb base;
1: + struct task_struct *task;
1: };
1:
1: struct dma_fence_array;
1:
1: struct dma_fence_array_cb {
1: - struct dma_fence_cb cb;
1: - struct dma_fence_array *array;
1: + struct dma_fence_cb cb;
1: + struct dma_fence_array *array;
1: };
1:
1: struct dma_fence_array {
1: - struct dma_fence base;
1: - spinlock_t lock;
1: - unsigned int num_fences;
1: - atomic_t num_pending;
1: - struct dma_fence **fences;
1: - struct irq_work work;
1: + struct dma_fence base;
1: + spinlock_t lock;
1: + unsigned int num_fences;
1: + atomic_t num_pending;
1: + struct dma_fence **fences;
1: + struct irq_work work;
1: };
1:
1: struct dma_fence_chain {
1: - struct dma_fence base;
1: - spinlock_t lock;
1: - struct dma_fence *prev;
1: - u64 prev_seqno;
1: - struct dma_fence *fence;
1: - struct dma_fence_cb cb;
1: - struct irq_work work;
1: + struct dma_fence base;
1: + spinlock_t lock;
1: + struct dma_fence *prev;
1: + u64 prev_seqno;
1: + struct dma_fence *fence;
1: + struct dma_fence_cb cb;
1: + struct irq_work work;
1: };
1:
1: enum seqno_fence_condition {
1: - SEQNO_FENCE_WAIT_GEQUAL = 0,
1: - SEQNO_FENCE_WAIT_NONZERO = 1,
1: + SEQNO_FENCE_WAIT_GEQUAL = 0,
1: + SEQNO_FENCE_WAIT_NONZERO = 1,
1: };
1:
1: struct seqno_fence {
1: - struct dma_fence base;
1: - const struct dma_fence_ops *ops;
1: - struct dma_buf *sync_buf;
1: - uint32_t seqno_ofs;
1: - enum seqno_fence_condition condition;
1: + struct dma_fence base;
1: + const struct dma_fence_ops *ops;
1: + struct dma_buf *sync_buf;
1: + uint32_t seqno_ofs;
1: + enum seqno_fence_condition condition;
1: };
1:
1: struct sync_file {
1: - struct file *file;
1: - char user_name[32];
1: - struct list_head sync_file_list;
1: - wait_queue_head_t wq;
1: - long unsigned int flags;
1: - struct dma_fence *fence;
1: - struct dma_fence_cb cb;
1: + struct file *file;
1: + char user_name[32];
1: + struct list_head sync_file_list;
1: + wait_queue_head_t wq;
1: + long unsigned int flags;
1: + struct dma_fence *fence;
1: + struct dma_fence_cb cb;
1: };
1:
1: struct sync_merge_data {
1: - char name[32];
1: - __s32 fd2;
1: - __s32 fence;
1: - __u32 flags;
1: - __u32 pad;
1: + char name[32];
1: + __s32 fd2;
1: + __s32 fence;
1: + __u32 flags;
1: + __u32 pad;
1: };
1:
1: struct sync_fence_info {
1: - char obj_name[32];
1: - char driver_name[32];
1: - __s32 status;
1: - __u32 flags;
1: - __u64 timestamp_ns;
1: + char obj_name[32];
1: + char driver_name[32];
1: + __s32 status;
1: + __u32 flags;
1: + __u64 timestamp_ns;
1: };
1:
1: struct sync_file_info {
1: - char name[32];
1: - __s32 status;
1: - __u32 flags;
1: - __u32 num_fences;
1: - __u32 pad;
1: - __u64 sync_fence_info;
1: + char name[32];
1: + __s32 status;
1: + __u32 flags;
1: + __u32 num_fences;
1: + __u32 pad;
1: + __u64 sync_fence_info;
1: };
1:
1: struct scsi_lun {
1: - __u8 scsi_lun[8];
1: + __u8 scsi_lun[8];
1: };
1:
1: struct nvme_user_io {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 control;
1: - __u16 nblocks;
1: - __u16 rsvd;
1: - __u64 metadata;
1: - __u64 addr;
1: - __u64 slba;
1: - __u32 dsmgmt;
1: - __u32 reftag;
1: - __u16 apptag;
1: - __u16 appmask;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 control;
1: + __u16 nblocks;
1: + __u16 rsvd;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u64 slba;
1: + __u32 dsmgmt;
1: + __u32 reftag;
1: + __u16 apptag;
1: + __u16 appmask;
1: };
1:
1: struct nvme_passthru_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 rsvd1;
1: - __u32 nsid;
1: - __u32 cdw2;
1: - __u32 cdw3;
1: - __u64 metadata;
1: - __u64 addr;
1: - __u32 metadata_len;
1: - __u32 data_len;
1: - __u32 cdw10;
1: - __u32 cdw11;
1: - __u32 cdw12;
1: - __u32 cdw13;
1: - __u32 cdw14;
1: - __u32 cdw15;
1: - __u32 timeout_ms;
1: - __u32 result;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 rsvd1;
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u32 cdw10;
1: + __u32 cdw11;
1: + __u32 cdw12;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u32 timeout_ms;
1: + __u32 result;
1: };
1:
1: struct nvme_passthru_cmd64 {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 rsvd1;
1: - __u32 nsid;
1: - __u32 cdw2;
1: - __u32 cdw3;
1: - __u64 metadata;
1: - __u64 addr;
1: - __u32 metadata_len;
1: - __u32 data_len;
1: - __u32 cdw10;
1: - __u32 cdw11;
1: - __u32 cdw12;
1: - __u32 cdw13;
1: - __u32 cdw14;
1: - __u32 cdw15;
1: - __u32 timeout_ms;
1: - __u32 rsvd2;
1: - __u64 result;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 rsvd1;
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u32 cdw10;
1: + __u32 cdw11;
1: + __u32 cdw12;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u32 timeout_ms;
1: + __u32 rsvd2;
1: + __u64 result;
1: };
1:
1: struct nvme_id_power_state {
1: - __le16 max_power;
1: - __u8 rsvd2;
1: - __u8 flags;
1: - __le32 entry_lat;
1: - __le32 exit_lat;
1: - __u8 read_tput;
1: - __u8 read_lat;
1: - __u8 write_tput;
1: - __u8 write_lat;
1: - __le16 idle_power;
1: - __u8 idle_scale;
1: - __u8 rsvd19;
1: - __le16 active_power;
1: - __u8 active_work_scale;
1: - __u8 rsvd23[9];
1: + __le16 max_power;
1: + __u8 rsvd2;
1: + __u8 flags;
1: + __le32 entry_lat;
1: + __le32 exit_lat;
1: + __u8 read_tput;
1: + __u8 read_lat;
1: + __u8 write_tput;
1: + __u8 write_lat;
1: + __le16 idle_power;
1: + __u8 idle_scale;
1: + __u8 rsvd19;
1: + __le16 active_power;
1: + __u8 active_work_scale;
1: + __u8 rsvd23[9];
1: };
1:
1: enum {
1: - NVME_PS_FLAGS_MAX_POWER_SCALE = 1,
1: - NVME_PS_FLAGS_NON_OP_STATE = 2,
1: + NVME_PS_FLAGS_MAX_POWER_SCALE = 1,
1: + NVME_PS_FLAGS_NON_OP_STATE = 2,
1: };
1:
1: enum nvme_ctrl_attr {
1: - NVME_CTRL_ATTR_HID_128_BIT = 1,
1: - NVME_CTRL_ATTR_TBKAS = 64,
1: + NVME_CTRL_ATTR_HID_128_BIT = 1,
1: + NVME_CTRL_ATTR_TBKAS = 64,
1: };
1:
1: struct nvme_id_ctrl {
1: - __le16 vid;
1: - __le16 ssvid;
1: - char sn[20];
1: - char mn[40];
1: - char fr[8];
1: - __u8 rab;
1: - __u8 ieee[3];
1: - __u8 cmic;
1: - __u8 mdts;
1: - __le16 cntlid;
1: - __le32 ver;
1: - __le32 rtd3r;
1: - __le32 rtd3e;
1: - __le32 oaes;
1: - __le32 ctratt;
1: - __u8 rsvd100[28];
1: - __le16 crdt1;
1: - __le16 crdt2;
1: - __le16 crdt3;
1: - __u8 rsvd134[122];
1: - __le16 oacs;
1: - __u8 acl;
1: - __u8 aerl;
1: - __u8 frmw;
1: - __u8 lpa;
1: - __u8 elpe;
1: - __u8 npss;
1: - __u8 avscc;
1: - __u8 apsta;
1: - __le16 wctemp;
1: - __le16 cctemp;
1: - __le16 mtfa;
1: - __le32 hmpre;
1: - __le32 hmmin;
1: - __u8 tnvmcap[16];
1: - __u8 unvmcap[16];
1: - __le32 rpmbs;
1: - __le16 edstt;
1: - __u8 dsto;
1: - __u8 fwug;
1: - __le16 kas;
1: - __le16 hctma;
1: - __le16 mntmt;
1: - __le16 mxtmt;
1: - __le32 sanicap;
1: - __le32 hmminds;
1: - __le16 hmmaxd;
1: - __u8 rsvd338[4];
1: - __u8 anatt;
1: - __u8 anacap;
1: - __le32 anagrpmax;
1: - __le32 nanagrpid;
1: - __u8 rsvd352[160];
1: - __u8 sqes;
1: - __u8 cqes;
1: - __le16 maxcmd;
1: - __le32 nn;
1: - __le16 oncs;
1: - __le16 fuses;
1: - __u8 fna;
1: - __u8 vwc;
1: - __le16 awun;
1: - __le16 awupf;
1: - __u8 nvscc;
1: - __u8 nwpc;
1: - __le16 acwu;
1: - __u8 rsvd534[2];
1: - __le32 sgls;
1: - __le32 mnan;
1: - __u8 rsvd544[224];
1: - char subnqn[256];
1: - __u8 rsvd1024[768];
1: - __le32 ioccsz;
1: - __le32 iorcsz;
1: - __le16 icdoff;
1: - __u8 ctrattr;
1: - __u8 msdbd;
1: - __u8 rsvd1804[244];
1: - struct nvme_id_power_state psd[32];
1: - __u8 vs[1024];
1: -};
1: -
1: -enum {
1: - NVME_CTRL_CMIC_MULTI_CTRL = 2,
1: - NVME_CTRL_CMIC_ANA = 8,
1: - NVME_CTRL_ONCS_COMPARE = 1,
1: - NVME_CTRL_ONCS_WRITE_UNCORRECTABLE = 2,
1: - NVME_CTRL_ONCS_DSM = 4,
1: - NVME_CTRL_ONCS_WRITE_ZEROES = 8,
1: - NVME_CTRL_ONCS_RESERVATIONS = 32,
1: - NVME_CTRL_ONCS_TIMESTAMP = 64,
1: - NVME_CTRL_VWC_PRESENT = 1,
1: - NVME_CTRL_OACS_SEC_SUPP = 1,
1: - NVME_CTRL_OACS_DIRECTIVES = 32,
1: - NVME_CTRL_OACS_DBBUF_SUPP = 256,
1: - NVME_CTRL_LPA_CMD_EFFECTS_LOG = 2,
1: - NVME_CTRL_CTRATT_128_ID = 1,
1: - NVME_CTRL_CTRATT_NON_OP_PSP = 2,
1: - NVME_CTRL_CTRATT_NVM_SETS = 4,
1: - NVME_CTRL_CTRATT_READ_RECV_LVLS = 8,
1: - NVME_CTRL_CTRATT_ENDURANCE_GROUPS = 16,
1: - NVME_CTRL_CTRATT_PREDICTABLE_LAT = 32,
1: - NVME_CTRL_CTRATT_NAMESPACE_GRANULARITY = 128,
1: - NVME_CTRL_CTRATT_UUID_LIST = 512,
1: + __le16 vid;
1: + __le16 ssvid;
1: + char sn[20];
1: + char mn[40];
1: + char fr[8];
1: + __u8 rab;
1: + __u8 ieee[3];
1: + __u8 cmic;
1: + __u8 mdts;
1: + __le16 cntlid;
1: + __le32 ver;
1: + __le32 rtd3r;
1: + __le32 rtd3e;
1: + __le32 oaes;
1: + __le32 ctratt;
1: + __u8 rsvd100[28];
1: + __le16 crdt1;
1: + __le16 crdt2;
1: + __le16 crdt3;
1: + __u8 rsvd134[122];
1: + __le16 oacs;
1: + __u8 acl;
1: + __u8 aerl;
1: + __u8 frmw;
1: + __u8 lpa;
1: + __u8 elpe;
1: + __u8 npss;
1: + __u8 avscc;
1: + __u8 apsta;
1: + __le16 wctemp;
1: + __le16 cctemp;
1: + __le16 mtfa;
1: + __le32 hmpre;
1: + __le32 hmmin;
1: + __u8 tnvmcap[16];
1: + __u8 unvmcap[16];
1: + __le32 rpmbs;
1: + __le16 edstt;
1: + __u8 dsto;
1: + __u8 fwug;
1: + __le16 kas;
1: + __le16 hctma;
1: + __le16 mntmt;
1: + __le16 mxtmt;
1: + __le32 sanicap;
1: + __le32 hmminds;
1: + __le16 hmmaxd;
1: + __u8 rsvd338[4];
1: + __u8 anatt;
1: + __u8 anacap;
1: + __le32 anagrpmax;
1: + __le32 nanagrpid;
1: + __u8 rsvd352[160];
1: + __u8 sqes;
1: + __u8 cqes;
1: + __le16 maxcmd;
1: + __le32 nn;
1: + __le16 oncs;
1: + __le16 fuses;
1: + __u8 fna;
1: + __u8 vwc;
1: + __le16 awun;
1: + __le16 awupf;
1: + __u8 nvscc;
1: + __u8 nwpc;
1: + __le16 acwu;
1: + __u8 rsvd534[2];
1: + __le32 sgls;
1: + __le32 mnan;
1: + __u8 rsvd544[224];
1: + char subnqn[256];
1: + __u8 rsvd1024[768];
1: + __le32 ioccsz;
1: + __le32 iorcsz;
1: + __le16 icdoff;
1: + __u8 ctrattr;
1: + __u8 msdbd;
1: + __u8 rsvd1804[244];
1: + struct nvme_id_power_state psd[32];
1: + __u8 vs[1024];
1: +};
1: +
1: +enum {
1: + NVME_CTRL_CMIC_MULTI_CTRL = 2,
1: + NVME_CTRL_CMIC_ANA = 8,
1: + NVME_CTRL_ONCS_COMPARE = 1,
1: + NVME_CTRL_ONCS_WRITE_UNCORRECTABLE = 2,
1: + NVME_CTRL_ONCS_DSM = 4,
1: + NVME_CTRL_ONCS_WRITE_ZEROES = 8,
1: + NVME_CTRL_ONCS_RESERVATIONS = 32,
1: + NVME_CTRL_ONCS_TIMESTAMP = 64,
1: + NVME_CTRL_VWC_PRESENT = 1,
1: + NVME_CTRL_OACS_SEC_SUPP = 1,
1: + NVME_CTRL_OACS_DIRECTIVES = 32,
1: + NVME_CTRL_OACS_DBBUF_SUPP = 256,
1: + NVME_CTRL_LPA_CMD_EFFECTS_LOG = 2,
1: + NVME_CTRL_CTRATT_128_ID = 1,
1: + NVME_CTRL_CTRATT_NON_OP_PSP = 2,
1: + NVME_CTRL_CTRATT_NVM_SETS = 4,
1: + NVME_CTRL_CTRATT_READ_RECV_LVLS = 8,
1: + NVME_CTRL_CTRATT_ENDURANCE_GROUPS = 16,
1: + NVME_CTRL_CTRATT_PREDICTABLE_LAT = 32,
1: + NVME_CTRL_CTRATT_NAMESPACE_GRANULARITY = 128,
1: + NVME_CTRL_CTRATT_UUID_LIST = 512,
1: };
1:
1: struct nvme_lbaf {
1: - __le16 ms;
1: - __u8 ds;
1: - __u8 rp;
1: + __le16 ms;
1: + __u8 ds;
1: + __u8 rp;
1: };
1:
1: struct nvme_id_ns {
1: - __le64 nsze;
1: - __le64 ncap;
1: - __le64 nuse;
1: - __u8 nsfeat;
1: - __u8 nlbaf;
1: - __u8 flbas;
1: - __u8 mc;
1: - __u8 dpc;
1: - __u8 dps;
1: - __u8 nmic;
1: - __u8 rescap;
1: - __u8 fpi;
1: - __u8 dlfeat;
1: - __le16 nawun;
1: - __le16 nawupf;
1: - __le16 nacwu;
1: - __le16 nabsn;
1: - __le16 nabo;
1: - __le16 nabspf;
1: - __le16 noiob;
1: - __u8 nvmcap[16];
1: - __le16 npwg;
1: - __le16 npwa;
1: - __le16 npdg;
1: - __le16 npda;
1: - __le16 nows;
1: - __u8 rsvd74[18];
1: - __le32 anagrpid;
1: - __u8 rsvd96[3];
1: - __u8 nsattr;
1: - __le16 nvmsetid;
1: - __le16 endgid;
1: - __u8 nguid[16];
1: - __u8 eui64[8];
1: - struct nvme_lbaf lbaf[16];
1: - __u8 rsvd192[192];
1: - __u8 vs[3712];
1: -};
1: -
1: -enum {
1: - NVME_ID_CNS_NS = 0,
1: - NVME_ID_CNS_CTRL = 1,
1: - NVME_ID_CNS_NS_ACTIVE_LIST = 2,
1: - NVME_ID_CNS_NS_DESC_LIST = 3,
1: - NVME_ID_CNS_CS_NS = 5,
1: - NVME_ID_CNS_CS_CTRL = 6,
1: - NVME_ID_CNS_NS_PRESENT_LIST = 16,
1: - NVME_ID_CNS_NS_PRESENT = 17,
1: - NVME_ID_CNS_CTRL_NS_LIST = 18,
1: - NVME_ID_CNS_CTRL_LIST = 19,
1: - NVME_ID_CNS_SCNDRY_CTRL_LIST = 21,
1: - NVME_ID_CNS_NS_GRANULARITY = 22,
1: - NVME_ID_CNS_UUID_LIST = 23,
1: -};
1: -
1: -enum {
1: - NVME_CSI_NVM = 0,
1: - NVME_CSI_ZNS = 2,
1: -};
1: -
1: -enum {
1: - NVME_DIR_IDENTIFY = 0,
1: - NVME_DIR_STREAMS = 1,
1: - NVME_DIR_SND_ID_OP_ENABLE = 1,
1: - NVME_DIR_SND_ST_OP_REL_ID = 1,
1: - NVME_DIR_SND_ST_OP_REL_RSC = 2,
1: - NVME_DIR_RCV_ID_OP_PARAM = 1,
1: - NVME_DIR_RCV_ST_OP_PARAM = 1,
1: - NVME_DIR_RCV_ST_OP_STATUS = 2,
1: - NVME_DIR_RCV_ST_OP_RESOURCE = 3,
1: - NVME_DIR_ENDIR = 1,
1: -};
1: -
1: -enum {
1: - NVME_NS_FEAT_THIN = 1,
1: - NVME_NS_FEAT_ATOMICS = 2,
1: - NVME_NS_FEAT_IO_OPT = 16,
1: - NVME_NS_ATTR_RO = 1,
1: - NVME_NS_FLBAS_LBA_MASK = 15,
1: - NVME_NS_FLBAS_META_EXT = 16,
1: - NVME_NS_NMIC_SHARED = 1,
1: - NVME_LBAF_RP_BEST = 0,
1: - NVME_LBAF_RP_BETTER = 1,
1: - NVME_LBAF_RP_GOOD = 2,
1: - NVME_LBAF_RP_DEGRADED = 3,
1: - NVME_NS_DPC_PI_LAST = 16,
1: - NVME_NS_DPC_PI_FIRST = 8,
1: - NVME_NS_DPC_PI_TYPE3 = 4,
1: - NVME_NS_DPC_PI_TYPE2 = 2,
1: - NVME_NS_DPC_PI_TYPE1 = 1,
1: - NVME_NS_DPS_PI_FIRST = 8,
1: - NVME_NS_DPS_PI_MASK = 7,
1: - NVME_NS_DPS_PI_TYPE1 = 1,
1: - NVME_NS_DPS_PI_TYPE2 = 2,
1: - NVME_NS_DPS_PI_TYPE3 = 3,
1: + __le64 nsze;
1: + __le64 ncap;
1: + __le64 nuse;
1: + __u8 nsfeat;
1: + __u8 nlbaf;
1: + __u8 flbas;
1: + __u8 mc;
1: + __u8 dpc;
1: + __u8 dps;
1: + __u8 nmic;
1: + __u8 rescap;
1: + __u8 fpi;
1: + __u8 dlfeat;
1: + __le16 nawun;
1: + __le16 nawupf;
1: + __le16 nacwu;
1: + __le16 nabsn;
1: + __le16 nabo;
1: + __le16 nabspf;
1: + __le16 noiob;
1: + __u8 nvmcap[16];
1: + __le16 npwg;
1: + __le16 npwa;
1: + __le16 npdg;
1: + __le16 npda;
1: + __le16 nows;
1: + __u8 rsvd74[18];
1: + __le32 anagrpid;
1: + __u8 rsvd96[3];
1: + __u8 nsattr;
1: + __le16 nvmsetid;
1: + __le16 endgid;
1: + __u8 nguid[16];
1: + __u8 eui64[8];
1: + struct nvme_lbaf lbaf[16];
1: + __u8 rsvd192[192];
1: + __u8 vs[3712];
1: +};
1: +
1: +enum {
1: + NVME_ID_CNS_NS = 0,
1: + NVME_ID_CNS_CTRL = 1,
1: + NVME_ID_CNS_NS_ACTIVE_LIST = 2,
1: + NVME_ID_CNS_NS_DESC_LIST = 3,
1: + NVME_ID_CNS_CS_NS = 5,
1: + NVME_ID_CNS_CS_CTRL = 6,
1: + NVME_ID_CNS_NS_PRESENT_LIST = 16,
1: + NVME_ID_CNS_NS_PRESENT = 17,
1: + NVME_ID_CNS_CTRL_NS_LIST = 18,
1: + NVME_ID_CNS_CTRL_LIST = 19,
1: + NVME_ID_CNS_SCNDRY_CTRL_LIST = 21,
1: + NVME_ID_CNS_NS_GRANULARITY = 22,
1: + NVME_ID_CNS_UUID_LIST = 23,
1: +};
1: +
1: +enum {
1: + NVME_CSI_NVM = 0,
1: + NVME_CSI_ZNS = 2,
1: +};
1: +
1: +enum {
1: + NVME_DIR_IDENTIFY = 0,
1: + NVME_DIR_STREAMS = 1,
1: + NVME_DIR_SND_ID_OP_ENABLE = 1,
1: + NVME_DIR_SND_ST_OP_REL_ID = 1,
1: + NVME_DIR_SND_ST_OP_REL_RSC = 2,
1: + NVME_DIR_RCV_ID_OP_PARAM = 1,
1: + NVME_DIR_RCV_ST_OP_PARAM = 1,
1: + NVME_DIR_RCV_ST_OP_STATUS = 2,
1: + NVME_DIR_RCV_ST_OP_RESOURCE = 3,
1: + NVME_DIR_ENDIR = 1,
1: +};
1: +
1: +enum {
1: + NVME_NS_FEAT_THIN = 1,
1: + NVME_NS_FEAT_ATOMICS = 2,
1: + NVME_NS_FEAT_IO_OPT = 16,
1: + NVME_NS_ATTR_RO = 1,
1: + NVME_NS_FLBAS_LBA_MASK = 15,
1: + NVME_NS_FLBAS_META_EXT = 16,
1: + NVME_NS_NMIC_SHARED = 1,
1: + NVME_LBAF_RP_BEST = 0,
1: + NVME_LBAF_RP_BETTER = 1,
1: + NVME_LBAF_RP_GOOD = 2,
1: + NVME_LBAF_RP_DEGRADED = 3,
1: + NVME_NS_DPC_PI_LAST = 16,
1: + NVME_NS_DPC_PI_FIRST = 8,
1: + NVME_NS_DPC_PI_TYPE3 = 4,
1: + NVME_NS_DPC_PI_TYPE2 = 2,
1: + NVME_NS_DPC_PI_TYPE1 = 1,
1: + NVME_NS_DPS_PI_FIRST = 8,
1: + NVME_NS_DPS_PI_MASK = 7,
1: + NVME_NS_DPS_PI_TYPE1 = 1,
1: + NVME_NS_DPS_PI_TYPE2 = 2,
1: + NVME_NS_DPS_PI_TYPE3 = 3,
1: };
1:
1: struct nvme_ns_id_desc {
1: - __u8 nidt;
1: - __u8 nidl;
1: - __le16 reserved;
1: + __u8 nidt;
1: + __u8 nidl;
1: + __le16 reserved;
1: };
1:
1: enum {
1: - NVME_NIDT_EUI64 = 1,
1: - NVME_NIDT_NGUID = 2,
1: - NVME_NIDT_UUID = 3,
1: - NVME_NIDT_CSI = 4,
1: + NVME_NIDT_EUI64 = 1,
1: + NVME_NIDT_NGUID = 2,
1: + NVME_NIDT_UUID = 3,
1: + NVME_NIDT_CSI = 4,
1: };
1:
1: struct nvme_fw_slot_info_log {
1: - __u8 afi;
1: - __u8 rsvd1[7];
1: - __le64 frs[7];
1: - __u8 rsvd64[448];
1: + __u8 afi;
1: + __u8 rsvd1[7];
1: + __le64 frs[7];
1: + __u8 rsvd64[448];
1: };
1:
1: enum {
1: - NVME_CMD_EFFECTS_CSUPP = 1,
1: - NVME_CMD_EFFECTS_LBCC = 2,
1: - NVME_CMD_EFFECTS_NCC = 4,
1: - NVME_CMD_EFFECTS_NIC = 8,
1: - NVME_CMD_EFFECTS_CCC = 16,
1: - NVME_CMD_EFFECTS_CSE_MASK = 196608,
1: - NVME_CMD_EFFECTS_UUID_SEL = 524288,
1: + NVME_CMD_EFFECTS_CSUPP = 1,
1: + NVME_CMD_EFFECTS_LBCC = 2,
1: + NVME_CMD_EFFECTS_NCC = 4,
1: + NVME_CMD_EFFECTS_NIC = 8,
1: + NVME_CMD_EFFECTS_CCC = 16,
1: + NVME_CMD_EFFECTS_CSE_MASK = 196608,
1: + NVME_CMD_EFFECTS_UUID_SEL = 524288,
1: };
1:
1: struct nvme_effects_log {
1: - __le32 acs[256];
1: - __le32 iocs[256];
1: - __u8 resv[2048];
1: + __le32 acs[256];
1: + __le32 iocs[256];
1: + __u8 resv[2048];
1: };
1:
1: enum {
1: - NVME_AER_ERROR = 0,
1: - NVME_AER_SMART = 1,
1: - NVME_AER_NOTICE = 2,
1: - NVME_AER_CSS = 6,
1: - NVME_AER_VS = 7,
1: + NVME_AER_ERROR = 0,
1: + NVME_AER_SMART = 1,
1: + NVME_AER_NOTICE = 2,
1: + NVME_AER_CSS = 6,
1: + NVME_AER_VS = 7,
1: };
1:
1: enum {
1: - NVME_AER_NOTICE_NS_CHANGED = 0,
1: - NVME_AER_NOTICE_FW_ACT_STARTING = 1,
1: - NVME_AER_NOTICE_ANA = 3,
1: - NVME_AER_NOTICE_DISC_CHANGED = 240,
1: + NVME_AER_NOTICE_NS_CHANGED = 0,
1: + NVME_AER_NOTICE_FW_ACT_STARTING = 1,
1: + NVME_AER_NOTICE_ANA = 3,
1: + NVME_AER_NOTICE_DISC_CHANGED = 240,
1: };
1:
1: enum {
1: - NVME_AEN_CFG_NS_ATTR = 256,
1: - NVME_AEN_CFG_FW_ACT = 512,
1: - NVME_AEN_CFG_ANA_CHANGE = 2048,
1: - NVME_AEN_CFG_DISC_CHANGE = 2147483648,
1: + NVME_AEN_CFG_NS_ATTR = 256,
1: + NVME_AEN_CFG_FW_ACT = 512,
1: + NVME_AEN_CFG_ANA_CHANGE = 2048,
1: + NVME_AEN_CFG_DISC_CHANGE = 2147483648,
1: };
1:
1: enum nvme_opcode {
1: - nvme_cmd_flush = 0,
1: - nvme_cmd_write = 1,
1: - nvme_cmd_read = 2,
1: - nvme_cmd_write_uncor = 4,
1: - nvme_cmd_compare = 5,
1: - nvme_cmd_write_zeroes = 8,
1: - nvme_cmd_dsm = 9,
1: - nvme_cmd_verify = 12,
1: - nvme_cmd_resv_register = 13,
1: - nvme_cmd_resv_report = 14,
1: - nvme_cmd_resv_acquire = 17,
1: - nvme_cmd_resv_release = 21,
1: - nvme_cmd_zone_mgmt_send = 121,
1: - nvme_cmd_zone_mgmt_recv = 122,
1: - nvme_cmd_zone_append = 125,
1: + nvme_cmd_flush = 0,
1: + nvme_cmd_write = 1,
1: + nvme_cmd_read = 2,
1: + nvme_cmd_write_uncor = 4,
1: + nvme_cmd_compare = 5,
1: + nvme_cmd_write_zeroes = 8,
1: + nvme_cmd_dsm = 9,
1: + nvme_cmd_verify = 12,
1: + nvme_cmd_resv_register = 13,
1: + nvme_cmd_resv_report = 14,
1: + nvme_cmd_resv_acquire = 17,
1: + nvme_cmd_resv_release = 21,
1: + nvme_cmd_zone_mgmt_send = 121,
1: + nvme_cmd_zone_mgmt_recv = 122,
1: + nvme_cmd_zone_append = 125,
1: };
1:
1: struct nvme_sgl_desc {
1: - __le64 addr;
1: - __le32 length;
1: - __u8 rsvd[3];
1: - __u8 type;
1: + __le64 addr;
1: + __le32 length;
1: + __u8 rsvd[3];
1: + __u8 type;
1: };
1:
1: struct nvme_keyed_sgl_desc {
1: - __le64 addr;
1: - __u8 length[3];
1: - __u8 key[4];
1: - __u8 type;
1: + __le64 addr;
1: + __u8 length[3];
1: + __u8 key[4];
1: + __u8 type;
1: };
1:
1: union nvme_data_ptr {
1: - struct {
1: - __le64 prp1;
1: - __le64 prp2;
1: - };
1: - struct nvme_sgl_desc sgl;
1: - struct nvme_keyed_sgl_desc ksgl;
1: + struct {
1: + __le64 prp1;
1: + __le64 prp2;
1: + };
1: + struct nvme_sgl_desc sgl;
1: + struct nvme_keyed_sgl_desc ksgl;
1: };
1:
1: enum {
1: - NVME_CMD_FUSE_FIRST = 1,
1: - NVME_CMD_FUSE_SECOND = 2,
1: - NVME_CMD_SGL_METABUF = 64,
1: - NVME_CMD_SGL_METASEG = 128,
1: - NVME_CMD_SGL_ALL = 192,
1: + NVME_CMD_FUSE_FIRST = 1,
1: + NVME_CMD_FUSE_SECOND = 2,
1: + NVME_CMD_SGL_METABUF = 64,
1: + NVME_CMD_SGL_METASEG = 128,
1: + NVME_CMD_SGL_ALL = 192,
1: };
1:
1: struct nvme_common_command {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __le32 cdw2[2];
1: - __le64 metadata;
1: - union nvme_data_ptr dptr;
1: - __le32 cdw10;
1: - __le32 cdw11;
1: - __le32 cdw12;
1: - __le32 cdw13;
1: - __le32 cdw14;
1: - __le32 cdw15;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le32 cdw2[2];
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le32 cdw10;
1: + __le32 cdw11;
1: + __le32 cdw12;
1: + __le32 cdw13;
1: + __le32 cdw14;
1: + __le32 cdw15;
1: };
1:
1: struct nvme_rw_command {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2;
1: - __le64 metadata;
1: - union nvme_data_ptr dptr;
1: - __le64 slba;
1: - __le16 length;
1: - __le16 control;
1: - __le32 dsmgmt;
1: - __le32 reftag;
1: - __le16 apptag;
1: - __le16 appmask;
1: -};
1: -
1: -enum {
1: - NVME_RW_LR = 32768,
1: - NVME_RW_FUA = 16384,
1: - NVME_RW_APPEND_PIREMAP = 512,
1: - NVME_RW_DSM_FREQ_UNSPEC = 0,
1: - NVME_RW_DSM_FREQ_TYPICAL = 1,
1: - NVME_RW_DSM_FREQ_RARE = 2,
1: - NVME_RW_DSM_FREQ_READS = 3,
1: - NVME_RW_DSM_FREQ_WRITES = 4,
1: - NVME_RW_DSM_FREQ_RW = 5,
1: - NVME_RW_DSM_FREQ_ONCE = 6,
1: - NVME_RW_DSM_FREQ_PREFETCH = 7,
1: - NVME_RW_DSM_FREQ_TEMP = 8,
1: - NVME_RW_DSM_LATENCY_NONE = 0,
1: - NVME_RW_DSM_LATENCY_IDLE = 16,
1: - NVME_RW_DSM_LATENCY_NORM = 32,
1: - NVME_RW_DSM_LATENCY_LOW = 48,
1: - NVME_RW_DSM_SEQ_REQ = 64,
1: - NVME_RW_DSM_COMPRESSED = 128,
1: - NVME_RW_PRINFO_PRCHK_REF = 1024,
1: - NVME_RW_PRINFO_PRCHK_APP = 2048,
1: - NVME_RW_PRINFO_PRCHK_GUARD = 4096,
1: - NVME_RW_PRINFO_PRACT = 8192,
1: - NVME_RW_DTYPE_STREAMS = 16,
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le32 reftag;
1: + __le16 apptag;
1: + __le16 appmask;
1: +};
1: +
1: +enum {
1: + NVME_RW_LR = 32768,
1: + NVME_RW_FUA = 16384,
1: + NVME_RW_APPEND_PIREMAP = 512,
1: + NVME_RW_DSM_FREQ_UNSPEC = 0,
1: + NVME_RW_DSM_FREQ_TYPICAL = 1,
1: + NVME_RW_DSM_FREQ_RARE = 2,
1: + NVME_RW_DSM_FREQ_READS = 3,
1: + NVME_RW_DSM_FREQ_WRITES = 4,
1: + NVME_RW_DSM_FREQ_RW = 5,
1: + NVME_RW_DSM_FREQ_ONCE = 6,
1: + NVME_RW_DSM_FREQ_PREFETCH = 7,
1: + NVME_RW_DSM_FREQ_TEMP = 8,
1: + NVME_RW_DSM_LATENCY_NONE = 0,
1: + NVME_RW_DSM_LATENCY_IDLE = 16,
1: + NVME_RW_DSM_LATENCY_NORM = 32,
1: + NVME_RW_DSM_LATENCY_LOW = 48,
1: + NVME_RW_DSM_SEQ_REQ = 64,
1: + NVME_RW_DSM_COMPRESSED = 128,
1: + NVME_RW_PRINFO_PRCHK_REF = 1024,
1: + NVME_RW_PRINFO_PRCHK_APP = 2048,
1: + NVME_RW_PRINFO_PRCHK_GUARD = 4096,
1: + NVME_RW_PRINFO_PRACT = 8192,
1: + NVME_RW_DTYPE_STREAMS = 16,
1: };
1:
1: struct nvme_dsm_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __le32 nr;
1: - __le32 attributes;
1: - __u32 rsvd12[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 nr;
1: + __le32 attributes;
1: + __u32 rsvd12[4];
1: };
1:
1: enum {
1: - NVME_DSMGMT_IDR = 1,
1: - NVME_DSMGMT_IDW = 2,
1: - NVME_DSMGMT_AD = 4,
1: + NVME_DSMGMT_IDR = 1,
1: + NVME_DSMGMT_IDW = 2,
1: + NVME_DSMGMT_AD = 4,
1: };
1:
1: struct nvme_dsm_range {
1: - __le32 cattr;
1: - __le32 nlb;
1: - __le64 slba;
1: + __le32 cattr;
1: + __le32 nlb;
1: + __le64 slba;
1: };
1:
1: struct nvme_write_zeroes_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2;
1: - __le64 metadata;
1: - union nvme_data_ptr dptr;
1: - __le64 slba;
1: - __le16 length;
1: - __le16 control;
1: - __le32 dsmgmt;
1: - __le32 reftag;
1: - __le16 apptag;
1: - __le16 appmask;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le32 reftag;
1: + __le16 apptag;
1: + __le16 appmask;
1: };
1:
1: enum nvme_zone_mgmt_action {
1: - NVME_ZONE_CLOSE = 1,
1: - NVME_ZONE_FINISH = 2,
1: - NVME_ZONE_OPEN = 3,
1: - NVME_ZONE_RESET = 4,
1: - NVME_ZONE_OFFLINE = 5,
1: - NVME_ZONE_SET_DESC_EXT = 16,
1: + NVME_ZONE_CLOSE = 1,
1: + NVME_ZONE_FINISH = 2,
1: + NVME_ZONE_OPEN = 3,
1: + NVME_ZONE_RESET = 4,
1: + NVME_ZONE_OFFLINE = 5,
1: + NVME_ZONE_SET_DESC_EXT = 16,
1: };
1:
1: struct nvme_zone_mgmt_send_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __le32 cdw2[2];
1: - __le64 metadata;
1: - union nvme_data_ptr dptr;
1: - __le64 slba;
1: - __le32 cdw12;
1: - __u8 zsa;
1: - __u8 select_all;
1: - __u8 rsvd13[2];
1: - __le32 cdw14[2];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le32 cdw2[2];
1: + __le64 metadata;
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le32 cdw12;
1: + __u8 zsa;
1: + __u8 select_all;
1: + __u8 rsvd13[2];
1: + __le32 cdw14[2];
1: };
1:
1: struct nvme_zone_mgmt_recv_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __le64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __le64 slba;
1: - __le32 numd;
1: - __u8 zra;
1: - __u8 zrasf;
1: - __u8 pr;
1: - __u8 rsvd13;
1: - __le32 cdw14[2];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le64 slba;
1: + __le32 numd;
1: + __u8 zra;
1: + __u8 zrasf;
1: + __u8 pr;
1: + __u8 rsvd13;
1: + __le32 cdw14[2];
1: };
1:
1: struct nvme_feat_auto_pst {
1: - __le64 entries[32];
1: + __le64 entries[32];
1: };
1:
1: struct nvme_feat_host_behavior {
1: - __u8 acre;
1: - __u8 resv1[511];
1: + __u8 acre;
1: + __u8 resv1[511];
1: };
1:
1: enum {
1: - NVME_ENABLE_ACRE = 1,
1: + NVME_ENABLE_ACRE = 1,
1: };
1:
1: enum nvme_admin_opcode {
1: - nvme_admin_delete_sq = 0,
1: - nvme_admin_create_sq = 1,
1: - nvme_admin_get_log_page = 2,
1: - nvme_admin_delete_cq = 4,
1: - nvme_admin_create_cq = 5,
1: - nvme_admin_identify = 6,
1: - nvme_admin_abort_cmd = 8,
1: - nvme_admin_set_features = 9,
1: - nvme_admin_get_features = 10,
1: - nvme_admin_async_event = 12,
1: - nvme_admin_ns_mgmt = 13,
1: - nvme_admin_activate_fw = 16,
1: - nvme_admin_download_fw = 17,
1: - nvme_admin_dev_self_test = 20,
1: - nvme_admin_ns_attach = 21,
1: - nvme_admin_keep_alive = 24,
1: - nvme_admin_directive_send = 25,
1: - nvme_admin_directive_recv = 26,
1: - nvme_admin_virtual_mgmt = 28,
1: - nvme_admin_nvme_mi_send = 29,
1: - nvme_admin_nvme_mi_recv = 30,
1: - nvme_admin_dbbuf = 124,
1: - nvme_admin_format_nvm = 128,
1: - nvme_admin_security_send = 129,
1: - nvme_admin_security_recv = 130,
1: - nvme_admin_sanitize_nvm = 132,
1: - nvme_admin_get_lba_status = 134,
1: - nvme_admin_vendor_start = 192,
1: -};
1: -
1: -enum {
1: - NVME_QUEUE_PHYS_CONTIG = 1,
1: - NVME_CQ_IRQ_ENABLED = 2,
1: - NVME_SQ_PRIO_URGENT = 0,
1: - NVME_SQ_PRIO_HIGH = 2,
1: - NVME_SQ_PRIO_MEDIUM = 4,
1: - NVME_SQ_PRIO_LOW = 6,
1: - NVME_FEAT_ARBITRATION = 1,
1: - NVME_FEAT_POWER_MGMT = 2,
1: - NVME_FEAT_LBA_RANGE = 3,
1: - NVME_FEAT_TEMP_THRESH = 4,
1: - NVME_FEAT_ERR_RECOVERY = 5,
1: - NVME_FEAT_VOLATILE_WC = 6,
1: - NVME_FEAT_NUM_QUEUES = 7,
1: - NVME_FEAT_IRQ_COALESCE = 8,
1: - NVME_FEAT_IRQ_CONFIG = 9,
1: - NVME_FEAT_WRITE_ATOMIC = 10,
1: - NVME_FEAT_ASYNC_EVENT = 11,
1: - NVME_FEAT_AUTO_PST = 12,
1: - NVME_FEAT_HOST_MEM_BUF = 13,
1: - NVME_FEAT_TIMESTAMP = 14,
1: - NVME_FEAT_KATO = 15,
1: - NVME_FEAT_HCTM = 16,
1: - NVME_FEAT_NOPSC = 17,
1: - NVME_FEAT_RRL = 18,
1: - NVME_FEAT_PLM_CONFIG = 19,
1: - NVME_FEAT_PLM_WINDOW = 20,
1: - NVME_FEAT_HOST_BEHAVIOR = 22,
1: - NVME_FEAT_SANITIZE = 23,
1: - NVME_FEAT_SW_PROGRESS = 128,
1: - NVME_FEAT_HOST_ID = 129,
1: - NVME_FEAT_RESV_MASK = 130,
1: - NVME_FEAT_RESV_PERSIST = 131,
1: - NVME_FEAT_WRITE_PROTECT = 132,
1: - NVME_FEAT_VENDOR_START = 192,
1: - NVME_FEAT_VENDOR_END = 255,
1: - NVME_LOG_ERROR = 1,
1: - NVME_LOG_SMART = 2,
1: - NVME_LOG_FW_SLOT = 3,
1: - NVME_LOG_CHANGED_NS = 4,
1: - NVME_LOG_CMD_EFFECTS = 5,
1: - NVME_LOG_DEVICE_SELF_TEST = 6,
1: - NVME_LOG_TELEMETRY_HOST = 7,
1: - NVME_LOG_TELEMETRY_CTRL = 8,
1: - NVME_LOG_ENDURANCE_GROUP = 9,
1: - NVME_LOG_ANA = 12,
1: - NVME_LOG_DISC = 112,
1: - NVME_LOG_RESERVATION = 128,
1: - NVME_FWACT_REPL = 0,
1: - NVME_FWACT_REPL_ACTV = 8,
1: - NVME_FWACT_ACTV = 16,
1: + nvme_admin_delete_sq = 0,
1: + nvme_admin_create_sq = 1,
1: + nvme_admin_get_log_page = 2,
1: + nvme_admin_delete_cq = 4,
1: + nvme_admin_create_cq = 5,
1: + nvme_admin_identify = 6,
1: + nvme_admin_abort_cmd = 8,
1: + nvme_admin_set_features = 9,
1: + nvme_admin_get_features = 10,
1: + nvme_admin_async_event = 12,
1: + nvme_admin_ns_mgmt = 13,
1: + nvme_admin_activate_fw = 16,
1: + nvme_admin_download_fw = 17,
1: + nvme_admin_dev_self_test = 20,
1: + nvme_admin_ns_attach = 21,
1: + nvme_admin_keep_alive = 24,
1: + nvme_admin_directive_send = 25,
1: + nvme_admin_directive_recv = 26,
1: + nvme_admin_virtual_mgmt = 28,
1: + nvme_admin_nvme_mi_send = 29,
1: + nvme_admin_nvme_mi_recv = 30,
1: + nvme_admin_dbbuf = 124,
1: + nvme_admin_format_nvm = 128,
1: + nvme_admin_security_send = 129,
1: + nvme_admin_security_recv = 130,
1: + nvme_admin_sanitize_nvm = 132,
1: + nvme_admin_get_lba_status = 134,
1: + nvme_admin_vendor_start = 192,
1: +};
1: +
1: +enum {
1: + NVME_QUEUE_PHYS_CONTIG = 1,
1: + NVME_CQ_IRQ_ENABLED = 2,
1: + NVME_SQ_PRIO_URGENT = 0,
1: + NVME_SQ_PRIO_HIGH = 2,
1: + NVME_SQ_PRIO_MEDIUM = 4,
1: + NVME_SQ_PRIO_LOW = 6,
1: + NVME_FEAT_ARBITRATION = 1,
1: + NVME_FEAT_POWER_MGMT = 2,
1: + NVME_FEAT_LBA_RANGE = 3,
1: + NVME_FEAT_TEMP_THRESH = 4,
1: + NVME_FEAT_ERR_RECOVERY = 5,
1: + NVME_FEAT_VOLATILE_WC = 6,
1: + NVME_FEAT_NUM_QUEUES = 7,
1: + NVME_FEAT_IRQ_COALESCE = 8,
1: + NVME_FEAT_IRQ_CONFIG = 9,
1: + NVME_FEAT_WRITE_ATOMIC = 10,
1: + NVME_FEAT_ASYNC_EVENT = 11,
1: + NVME_FEAT_AUTO_PST = 12,
1: + NVME_FEAT_HOST_MEM_BUF = 13,
1: + NVME_FEAT_TIMESTAMP = 14,
1: + NVME_FEAT_KATO = 15,
1: + NVME_FEAT_HCTM = 16,
1: + NVME_FEAT_NOPSC = 17,
1: + NVME_FEAT_RRL = 18,
1: + NVME_FEAT_PLM_CONFIG = 19,
1: + NVME_FEAT_PLM_WINDOW = 20,
1: + NVME_FEAT_HOST_BEHAVIOR = 22,
1: + NVME_FEAT_SANITIZE = 23,
1: + NVME_FEAT_SW_PROGRESS = 128,
1: + NVME_FEAT_HOST_ID = 129,
1: + NVME_FEAT_RESV_MASK = 130,
1: + NVME_FEAT_RESV_PERSIST = 131,
1: + NVME_FEAT_WRITE_PROTECT = 132,
1: + NVME_FEAT_VENDOR_START = 192,
1: + NVME_FEAT_VENDOR_END = 255,
1: + NVME_LOG_ERROR = 1,
1: + NVME_LOG_SMART = 2,
1: + NVME_LOG_FW_SLOT = 3,
1: + NVME_LOG_CHANGED_NS = 4,
1: + NVME_LOG_CMD_EFFECTS = 5,
1: + NVME_LOG_DEVICE_SELF_TEST = 6,
1: + NVME_LOG_TELEMETRY_HOST = 7,
1: + NVME_LOG_TELEMETRY_CTRL = 8,
1: + NVME_LOG_ENDURANCE_GROUP = 9,
1: + NVME_LOG_ANA = 12,
1: + NVME_LOG_DISC = 112,
1: + NVME_LOG_RESERVATION = 128,
1: + NVME_FWACT_REPL = 0,
1: + NVME_FWACT_REPL_ACTV = 8,
1: + NVME_FWACT_ACTV = 16,
1: };
1:
1: struct nvme_identify {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __u8 cns;
1: - __u8 rsvd3;
1: - __le16 ctrlid;
1: - __u8 rsvd11[3];
1: - __u8 csi;
1: - __u32 rsvd12[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __u8 cns;
1: + __u8 rsvd3;
1: + __le16 ctrlid;
1: + __u8 rsvd11[3];
1: + __u8 csi;
1: + __u32 rsvd12[4];
1: };
1:
1: struct nvme_features {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __le32 fid;
1: - __le32 dword11;
1: - __le32 dword12;
1: - __le32 dword13;
1: - __le32 dword14;
1: - __le32 dword15;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 fid;
1: + __le32 dword11;
1: + __le32 dword12;
1: + __le32 dword13;
1: + __le32 dword14;
1: + __le32 dword15;
1: };
1:
1: struct nvme_create_cq {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[5];
1: - __le64 prp1;
1: - __u64 rsvd8;
1: - __le16 cqid;
1: - __le16 qsize;
1: - __le16 cq_flags;
1: - __le16 irq_vector;
1: - __u32 rsvd12[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __u64 rsvd8;
1: + __le16 cqid;
1: + __le16 qsize;
1: + __le16 cq_flags;
1: + __le16 irq_vector;
1: + __u32 rsvd12[4];
1: };
1:
1: struct nvme_create_sq {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[5];
1: - __le64 prp1;
1: - __u64 rsvd8;
1: - __le16 sqid;
1: - __le16 qsize;
1: - __le16 sq_flags;
1: - __le16 cqid;
1: - __u32 rsvd12[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __u64 rsvd8;
1: + __le16 sqid;
1: + __le16 qsize;
1: + __le16 sq_flags;
1: + __le16 cqid;
1: + __u32 rsvd12[4];
1: };
1:
1: struct nvme_delete_queue {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[9];
1: - __le16 qid;
1: - __u16 rsvd10;
1: - __u32 rsvd11[5];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[9];
1: + __le16 qid;
1: + __u16 rsvd10;
1: + __u32 rsvd11[5];
1: };
1:
1: struct nvme_abort_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[9];
1: - __le16 sqid;
1: - __u16 cid;
1: - __u32 rsvd11[5];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[9];
1: + __le16 sqid;
1: + __u16 cid;
1: + __u32 rsvd11[5];
1: };
1:
1: struct nvme_download_firmware {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[5];
1: - union nvme_data_ptr dptr;
1: - __le32 numd;
1: - __le32 offset;
1: - __u32 rsvd12[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + union nvme_data_ptr dptr;
1: + __le32 numd;
1: + __le32 offset;
1: + __u32 rsvd12[4];
1: };
1:
1: struct nvme_format_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[4];
1: - __le32 cdw10;
1: - __u32 rsvd11[5];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[4];
1: + __le32 cdw10;
1: + __u32 rsvd11[5];
1: };
1:
1: struct nvme_get_log_page_command {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __u8 lid;
1: - __u8 lsp;
1: - __le16 numdl;
1: - __le16 numdu;
1: - __u16 rsvd11;
1: - union {
1: - struct {
1: - __le32 lpol;
1: - __le32 lpou;
1: - };
1: - __le64 lpo;
1: - };
1: - __u8 rsvd14[3];
1: - __u8 csi;
1: - __u32 rsvd15;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __u8 lid;
1: + __u8 lsp;
1: + __le16 numdl;
1: + __le16 numdu;
1: + __u16 rsvd11;
1: + union {
1: + struct {
1: + __le32 lpol;
1: + __le32 lpou;
1: + };
1: + __le64 lpo;
1: + };
1: + __u8 rsvd14[3];
1: + __u8 csi;
1: + __u32 rsvd15;
1: };
1:
1: struct nvme_directive_cmd {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2[2];
1: - union nvme_data_ptr dptr;
1: - __le32 numd;
1: - __u8 doper;
1: - __u8 dtype;
1: - __le16 dspec;
1: - __u8 endir;
1: - __u8 tdtype;
1: - __u16 rsvd15;
1: - __u32 rsvd16[3];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2[2];
1: + union nvme_data_ptr dptr;
1: + __le32 numd;
1: + __u8 doper;
1: + __u8 dtype;
1: + __le16 dspec;
1: + __u8 endir;
1: + __u8 tdtype;
1: + __u16 rsvd15;
1: + __u32 rsvd16[3];
1: };
1:
1: enum nvmf_fabrics_opcode {
1: - nvme_fabrics_command = 127,
1: + nvme_fabrics_command = 127,
1: };
1:
1: enum nvmf_capsule_command {
1: - nvme_fabrics_type_property_set = 0,
1: - nvme_fabrics_type_connect = 1,
1: - nvme_fabrics_type_property_get = 4,
1: + nvme_fabrics_type_property_set = 0,
1: + nvme_fabrics_type_connect = 1,
1: + nvme_fabrics_type_property_get = 4,
1: };
1:
1: struct nvmf_common_command {
1: - __u8 opcode;
1: - __u8 resv1;
1: - __u16 command_id;
1: - __u8 fctype;
1: - __u8 resv2[35];
1: - __u8 ts[24];
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 ts[24];
1: };
1:
1: struct nvmf_connect_command {
1: - __u8 opcode;
1: - __u8 resv1;
1: - __u16 command_id;
1: - __u8 fctype;
1: - __u8 resv2[19];
1: - union nvme_data_ptr dptr;
1: - __le16 recfmt;
1: - __le16 qid;
1: - __le16 sqsize;
1: - __u8 cattr;
1: - __u8 resv3;
1: - __le32 kato;
1: - __u8 resv4[12];
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[19];
1: + union nvme_data_ptr dptr;
1: + __le16 recfmt;
1: + __le16 qid;
1: + __le16 sqsize;
1: + __u8 cattr;
1: + __u8 resv3;
1: + __le32 kato;
1: + __u8 resv4[12];
1: };
1:
1: struct nvmf_property_set_command {
1: - __u8 opcode;
1: - __u8 resv1;
1: - __u16 command_id;
1: - __u8 fctype;
1: - __u8 resv2[35];
1: - __u8 attrib;
1: - __u8 resv3[3];
1: - __le32 offset;
1: - __le64 value;
1: - __u8 resv4[8];
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 attrib;
1: + __u8 resv3[3];
1: + __le32 offset;
1: + __le64 value;
1: + __u8 resv4[8];
1: };
1:
1: struct nvmf_property_get_command {
1: - __u8 opcode;
1: - __u8 resv1;
1: - __u16 command_id;
1: - __u8 fctype;
1: - __u8 resv2[35];
1: - __u8 attrib;
1: - __u8 resv3[3];
1: - __le32 offset;
1: - __u8 resv4[16];
1: + __u8 opcode;
1: + __u8 resv1;
1: + __u16 command_id;
1: + __u8 fctype;
1: + __u8 resv2[35];
1: + __u8 attrib;
1: + __u8 resv3[3];
1: + __le32 offset;
1: + __u8 resv4[16];
1: };
1:
1: struct nvme_dbbuf {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __u32 rsvd1[5];
1: - __le64 prp1;
1: - __le64 prp2;
1: - __u32 rsvd12[6];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __u32 rsvd1[5];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __u32 rsvd12[6];
1: };
1:
1: struct streams_directive_params {
1: - __le16 msl;
1: - __le16 nssa;
1: - __le16 nsso;
1: - __u8 rsvd[10];
1: - __le32 sws;
1: - __le16 sgs;
1: - __le16 nsa;
1: - __le16 nso;
1: - __u8 rsvd2[6];
1: + __le16 msl;
1: + __le16 nssa;
1: + __le16 nsso;
1: + __u8 rsvd[10];
1: + __le32 sws;
1: + __le16 sgs;
1: + __le16 nsa;
1: + __le16 nso;
1: + __u8 rsvd2[6];
1: };
1:
1: struct nvme_command {
1: - union {
1: - struct nvme_common_command common;
1: - struct nvme_rw_command rw;
1: - struct nvme_identify identify;
1: - struct nvme_features features;
1: - struct nvme_create_cq create_cq;
1: - struct nvme_create_sq create_sq;
1: - struct nvme_delete_queue delete_queue;
1: - struct nvme_download_firmware dlfw;
1: - struct nvme_format_cmd format;
1: - struct nvme_dsm_cmd dsm;
1: - struct nvme_write_zeroes_cmd write_zeroes;
1: - struct nvme_zone_mgmt_send_cmd zms;
1: - struct nvme_zone_mgmt_recv_cmd zmr;
1: - struct nvme_abort_cmd abort;
1: - struct nvme_get_log_page_command get_log_page;
1: - struct nvmf_common_command fabrics;
1: - struct nvmf_connect_command connect;
1: - struct nvmf_property_set_command prop_set;
1: - struct nvmf_property_get_command prop_get;
1: - struct nvme_dbbuf dbbuf;
1: - struct nvme_directive_cmd directive;
1: - };
1: -};
1: -
1: -enum {
1: - NVME_SC_SUCCESS = 0,
1: - NVME_SC_INVALID_OPCODE = 1,
1: - NVME_SC_INVALID_FIELD = 2,
1: - NVME_SC_CMDID_CONFLICT = 3,
1: - NVME_SC_DATA_XFER_ERROR = 4,
1: - NVME_SC_POWER_LOSS = 5,
1: - NVME_SC_INTERNAL = 6,
1: - NVME_SC_ABORT_REQ = 7,
1: - NVME_SC_ABORT_QUEUE = 8,
1: - NVME_SC_FUSED_FAIL = 9,
1: - NVME_SC_FUSED_MISSING = 10,
1: - NVME_SC_INVALID_NS = 11,
1: - NVME_SC_CMD_SEQ_ERROR = 12,
1: - NVME_SC_SGL_INVALID_LAST = 13,
1: - NVME_SC_SGL_INVALID_COUNT = 14,
1: - NVME_SC_SGL_INVALID_DATA = 15,
1: - NVME_SC_SGL_INVALID_METADATA = 16,
1: - NVME_SC_SGL_INVALID_TYPE = 17,
1: - NVME_SC_SGL_INVALID_OFFSET = 22,
1: - NVME_SC_SGL_INVALID_SUBTYPE = 23,
1: - NVME_SC_SANITIZE_FAILED = 28,
1: - NVME_SC_SANITIZE_IN_PROGRESS = 29,
1: - NVME_SC_NS_WRITE_PROTECTED = 32,
1: - NVME_SC_CMD_INTERRUPTED = 33,
1: - NVME_SC_LBA_RANGE = 128,
1: - NVME_SC_CAP_EXCEEDED = 129,
1: - NVME_SC_NS_NOT_READY = 130,
1: - NVME_SC_RESERVATION_CONFLICT = 131,
1: - NVME_SC_CQ_INVALID = 256,
1: - NVME_SC_QID_INVALID = 257,
1: - NVME_SC_QUEUE_SIZE = 258,
1: - NVME_SC_ABORT_LIMIT = 259,
1: - NVME_SC_ABORT_MISSING = 260,
1: - NVME_SC_ASYNC_LIMIT = 261,
1: - NVME_SC_FIRMWARE_SLOT = 262,
1: - NVME_SC_FIRMWARE_IMAGE = 263,
1: - NVME_SC_INVALID_VECTOR = 264,
1: - NVME_SC_INVALID_LOG_PAGE = 265,
1: - NVME_SC_INVALID_FORMAT = 266,
1: - NVME_SC_FW_NEEDS_CONV_RESET = 267,
1: - NVME_SC_INVALID_QUEUE = 268,
1: - NVME_SC_FEATURE_NOT_SAVEABLE = 269,
1: - NVME_SC_FEATURE_NOT_CHANGEABLE = 270,
1: - NVME_SC_FEATURE_NOT_PER_NS = 271,
1: - NVME_SC_FW_NEEDS_SUBSYS_RESET = 272,
1: - NVME_SC_FW_NEEDS_RESET = 273,
1: - NVME_SC_FW_NEEDS_MAX_TIME = 274,
1: - NVME_SC_FW_ACTIVATE_PROHIBITED = 275,
1: - NVME_SC_OVERLAPPING_RANGE = 276,
1: - NVME_SC_NS_INSUFFICIENT_CAP = 277,
1: - NVME_SC_NS_ID_UNAVAILABLE = 278,
1: - NVME_SC_NS_ALREADY_ATTACHED = 280,
1: - NVME_SC_NS_IS_PRIVATE = 281,
1: - NVME_SC_NS_NOT_ATTACHED = 282,
1: - NVME_SC_THIN_PROV_NOT_SUPP = 283,
1: - NVME_SC_CTRL_LIST_INVALID = 284,
1: - NVME_SC_BP_WRITE_PROHIBITED = 286,
1: - NVME_SC_PMR_SAN_PROHIBITED = 291,
1: - NVME_SC_BAD_ATTRIBUTES = 384,
1: - NVME_SC_INVALID_PI = 385,
1: - NVME_SC_READ_ONLY = 386,
1: - NVME_SC_ONCS_NOT_SUPPORTED = 387,
1: - NVME_SC_CONNECT_FORMAT = 384,
1: - NVME_SC_CONNECT_CTRL_BUSY = 385,
1: - NVME_SC_CONNECT_INVALID_PARAM = 386,
1: - NVME_SC_CONNECT_RESTART_DISC = 387,
1: - NVME_SC_CONNECT_INVALID_HOST = 388,
1: - NVME_SC_DISCOVERY_RESTART = 400,
1: - NVME_SC_AUTH_REQUIRED = 401,
1: - NVME_SC_ZONE_BOUNDARY_ERROR = 440,
1: - NVME_SC_ZONE_FULL = 441,
1: - NVME_SC_ZONE_READ_ONLY = 442,
1: - NVME_SC_ZONE_OFFLINE = 443,
1: - NVME_SC_ZONE_INVALID_WRITE = 444,
1: - NVME_SC_ZONE_TOO_MANY_ACTIVE = 445,
1: - NVME_SC_ZONE_TOO_MANY_OPEN = 446,
1: - NVME_SC_ZONE_INVALID_TRANSITION = 447,
1: - NVME_SC_WRITE_FAULT = 640,
1: - NVME_SC_READ_ERROR = 641,
1: - NVME_SC_GUARD_CHECK = 642,
1: - NVME_SC_APPTAG_CHECK = 643,
1: - NVME_SC_REFTAG_CHECK = 644,
1: - NVME_SC_COMPARE_FAILED = 645,
1: - NVME_SC_ACCESS_DENIED = 646,
1: - NVME_SC_UNWRITTEN_BLOCK = 647,
1: - NVME_SC_ANA_PERSISTENT_LOSS = 769,
1: - NVME_SC_ANA_INACCESSIBLE = 770,
1: - NVME_SC_ANA_TRANSITION = 771,
1: - NVME_SC_HOST_PATH_ERROR = 880,
1: - NVME_SC_HOST_ABORTED_CMD = 881,
1: - NVME_SC_CRD = 6144,
1: - NVME_SC_DNR = 16384,
1: + union {
1: + struct nvme_common_command common;
1: + struct nvme_rw_command rw;
1: + struct nvme_identify identify;
1: + struct nvme_features features;
1: + struct nvme_create_cq create_cq;
1: + struct nvme_create_sq create_sq;
1: + struct nvme_delete_queue delete_queue;
1: + struct nvme_download_firmware dlfw;
1: + struct nvme_format_cmd format;
1: + struct nvme_dsm_cmd dsm;
1: + struct nvme_write_zeroes_cmd write_zeroes;
1: + struct nvme_zone_mgmt_send_cmd zms;
1: + struct nvme_zone_mgmt_recv_cmd zmr;
1: + struct nvme_abort_cmd abort;
1: + struct nvme_get_log_page_command get_log_page;
1: + struct nvmf_common_command fabrics;
1: + struct nvmf_connect_command connect;
1: + struct nvmf_property_set_command prop_set;
1: + struct nvmf_property_get_command prop_get;
1: + struct nvme_dbbuf dbbuf;
1: + struct nvme_directive_cmd directive;
1: + };
1: +};
1: +
1: +enum {
1: + NVME_SC_SUCCESS = 0,
1: + NVME_SC_INVALID_OPCODE = 1,
1: + NVME_SC_INVALID_FIELD = 2,
1: + NVME_SC_CMDID_CONFLICT = 3,
1: + NVME_SC_DATA_XFER_ERROR = 4,
1: + NVME_SC_POWER_LOSS = 5,
1: + NVME_SC_INTERNAL = 6,
1: + NVME_SC_ABORT_REQ = 7,
1: + NVME_SC_ABORT_QUEUE = 8,
1: + NVME_SC_FUSED_FAIL = 9,
1: + NVME_SC_FUSED_MISSING = 10,
1: + NVME_SC_INVALID_NS = 11,
1: + NVME_SC_CMD_SEQ_ERROR = 12,
1: + NVME_SC_SGL_INVALID_LAST = 13,
1: + NVME_SC_SGL_INVALID_COUNT = 14,
1: + NVME_SC_SGL_INVALID_DATA = 15,
1: + NVME_SC_SGL_INVALID_METADATA = 16,
1: + NVME_SC_SGL_INVALID_TYPE = 17,
1: + NVME_SC_SGL_INVALID_OFFSET = 22,
1: + NVME_SC_SGL_INVALID_SUBTYPE = 23,
1: + NVME_SC_SANITIZE_FAILED = 28,
1: + NVME_SC_SANITIZE_IN_PROGRESS = 29,
1: + NVME_SC_NS_WRITE_PROTECTED = 32,
1: + NVME_SC_CMD_INTERRUPTED = 33,
1: + NVME_SC_LBA_RANGE = 128,
1: + NVME_SC_CAP_EXCEEDED = 129,
1: + NVME_SC_NS_NOT_READY = 130,
1: + NVME_SC_RESERVATION_CONFLICT = 131,
1: + NVME_SC_CQ_INVALID = 256,
1: + NVME_SC_QID_INVALID = 257,
1: + NVME_SC_QUEUE_SIZE = 258,
1: + NVME_SC_ABORT_LIMIT = 259,
1: + NVME_SC_ABORT_MISSING = 260,
1: + NVME_SC_ASYNC_LIMIT = 261,
1: + NVME_SC_FIRMWARE_SLOT = 262,
1: + NVME_SC_FIRMWARE_IMAGE = 263,
1: + NVME_SC_INVALID_VECTOR = 264,
1: + NVME_SC_INVALID_LOG_PAGE = 265,
1: + NVME_SC_INVALID_FORMAT = 266,
1: + NVME_SC_FW_NEEDS_CONV_RESET = 267,
1: + NVME_SC_INVALID_QUEUE = 268,
1: + NVME_SC_FEATURE_NOT_SAVEABLE = 269,
1: + NVME_SC_FEATURE_NOT_CHANGEABLE = 270,
1: + NVME_SC_FEATURE_NOT_PER_NS = 271,
1: + NVME_SC_FW_NEEDS_SUBSYS_RESET = 272,
1: + NVME_SC_FW_NEEDS_RESET = 273,
1: + NVME_SC_FW_NEEDS_MAX_TIME = 274,
1: + NVME_SC_FW_ACTIVATE_PROHIBITED = 275,
1: + NVME_SC_OVERLAPPING_RANGE = 276,
1: + NVME_SC_NS_INSUFFICIENT_CAP = 277,
1: + NVME_SC_NS_ID_UNAVAILABLE = 278,
1: + NVME_SC_NS_ALREADY_ATTACHED = 280,
1: + NVME_SC_NS_IS_PRIVATE = 281,
1: + NVME_SC_NS_NOT_ATTACHED = 282,
1: + NVME_SC_THIN_PROV_NOT_SUPP = 283,
1: + NVME_SC_CTRL_LIST_INVALID = 284,
1: + NVME_SC_BP_WRITE_PROHIBITED = 286,
1: + NVME_SC_PMR_SAN_PROHIBITED = 291,
1: + NVME_SC_BAD_ATTRIBUTES = 384,
1: + NVME_SC_INVALID_PI = 385,
1: + NVME_SC_READ_ONLY = 386,
1: + NVME_SC_ONCS_NOT_SUPPORTED = 387,
1: + NVME_SC_CONNECT_FORMAT = 384,
1: + NVME_SC_CONNECT_CTRL_BUSY = 385,
1: + NVME_SC_CONNECT_INVALID_PARAM = 386,
1: + NVME_SC_CONNECT_RESTART_DISC = 387,
1: + NVME_SC_CONNECT_INVALID_HOST = 388,
1: + NVME_SC_DISCOVERY_RESTART = 400,
1: + NVME_SC_AUTH_REQUIRED = 401,
1: + NVME_SC_ZONE_BOUNDARY_ERROR = 440,
1: + NVME_SC_ZONE_FULL = 441,
1: + NVME_SC_ZONE_READ_ONLY = 442,
1: + NVME_SC_ZONE_OFFLINE = 443,
1: + NVME_SC_ZONE_INVALID_WRITE = 444,
1: + NVME_SC_ZONE_TOO_MANY_ACTIVE = 445,
1: + NVME_SC_ZONE_TOO_MANY_OPEN = 446,
1: + NVME_SC_ZONE_INVALID_TRANSITION = 447,
1: + NVME_SC_WRITE_FAULT = 640,
1: + NVME_SC_READ_ERROR = 641,
1: + NVME_SC_GUARD_CHECK = 642,
1: + NVME_SC_APPTAG_CHECK = 643,
1: + NVME_SC_REFTAG_CHECK = 644,
1: + NVME_SC_COMPARE_FAILED = 645,
1: + NVME_SC_ACCESS_DENIED = 646,
1: + NVME_SC_UNWRITTEN_BLOCK = 647,
1: + NVME_SC_ANA_PERSISTENT_LOSS = 769,
1: + NVME_SC_ANA_INACCESSIBLE = 770,
1: + NVME_SC_ANA_TRANSITION = 771,
1: + NVME_SC_HOST_PATH_ERROR = 880,
1: + NVME_SC_HOST_ABORTED_CMD = 881,
1: + NVME_SC_CRD = 6144,
1: + NVME_SC_DNR = 16384,
1: };
1:
1: union nvme_result {
1: - __le16 u16;
1: - __le32 u32;
1: - __le64 u64;
1: + __le16 u16;
1: + __le32 u32;
1: + __le64 u64;
1: };
1:
1: enum nvme_quirks {
1: - NVME_QUIRK_STRIPE_SIZE = 1,
1: - NVME_QUIRK_IDENTIFY_CNS = 2,
1: - NVME_QUIRK_DEALLOCATE_ZEROES = 4,
1: - NVME_QUIRK_DELAY_BEFORE_CHK_RDY = 8,
1: - NVME_QUIRK_NO_APST = 16,
1: - NVME_QUIRK_NO_DEEPEST_PS = 32,
1: - NVME_QUIRK_LIGHTNVM = 64,
1: - NVME_QUIRK_MEDIUM_PRIO_SQ = 128,
1: - NVME_QUIRK_IGNORE_DEV_SUBNQN = 256,
1: - NVME_QUIRK_DISABLE_WRITE_ZEROES = 512,
1: - NVME_QUIRK_SIMPLE_SUSPEND = 1024,
1: - NVME_QUIRK_SINGLE_VECTOR = 2048,
1: - NVME_QUIRK_128_BYTES_SQES = 4096,
1: - NVME_QUIRK_SHARED_TAGS = 8192,
1: - NVME_QUIRK_NO_TEMP_THRESH_CHANGE = 16384,
1: - NVME_QUIRK_NO_NS_DESC_LIST = 32768,
1: + NVME_QUIRK_STRIPE_SIZE = 1,
1: + NVME_QUIRK_IDENTIFY_CNS = 2,
1: + NVME_QUIRK_DEALLOCATE_ZEROES = 4,
1: + NVME_QUIRK_DELAY_BEFORE_CHK_RDY = 8,
1: + NVME_QUIRK_NO_APST = 16,
1: + NVME_QUIRK_NO_DEEPEST_PS = 32,
1: + NVME_QUIRK_LIGHTNVM = 64,
1: + NVME_QUIRK_MEDIUM_PRIO_SQ = 128,
1: + NVME_QUIRK_IGNORE_DEV_SUBNQN = 256,
1: + NVME_QUIRK_DISABLE_WRITE_ZEROES = 512,
1: + NVME_QUIRK_SIMPLE_SUSPEND = 1024,
1: + NVME_QUIRK_SINGLE_VECTOR = 2048,
1: + NVME_QUIRK_128_BYTES_SQES = 4096,
1: + NVME_QUIRK_SHARED_TAGS = 8192,
1: + NVME_QUIRK_NO_TEMP_THRESH_CHANGE = 16384,
1: + NVME_QUIRK_NO_NS_DESC_LIST = 32768,
1: };
1:
1: struct nvme_ctrl;
1:
1: struct nvme_request {
1: - struct nvme_command *cmd;
1: - union nvme_result result;
1: - u8 retries;
1: - u8 flags;
1: - u16 status;
1: - struct nvme_ctrl *ctrl;
1: + struct nvme_command *cmd;
1: + union nvme_result result;
1: + u8 retries;
1: + u8 flags;
1: + u16 status;
1: + struct nvme_ctrl *ctrl;
1: };
1:
1: enum nvme_ctrl_state {
1: - NVME_CTRL_NEW = 0,
1: - NVME_CTRL_LIVE = 1,
1: - NVME_CTRL_RESETTING = 2,
1: - NVME_CTRL_CONNECTING = 3,
1: - NVME_CTRL_DELETING = 4,
1: - NVME_CTRL_DELETING_NOIO = 5,
1: - NVME_CTRL_DEAD = 6,
1: + NVME_CTRL_NEW = 0,
1: + NVME_CTRL_LIVE = 1,
1: + NVME_CTRL_RESETTING = 2,
1: + NVME_CTRL_CONNECTING = 3,
1: + NVME_CTRL_DELETING = 4,
1: + NVME_CTRL_DELETING_NOIO = 5,
1: + NVME_CTRL_DEAD = 6,
1: };
1:
1: struct opal_dev;
1: @@ -85859,246 +86937,246 @@ struct nvme_subsystem;
1: struct nvmf_ctrl_options;
1:
1: struct nvme_ctrl {
1: - bool comp_seen;
1: - enum nvme_ctrl_state state;
1: - bool identified;
1: - spinlock_t lock;
1: - struct mutex scan_lock;
1: - const struct nvme_ctrl_ops *ops;
1: - struct request_queue *admin_q;
1: - struct request_queue *connect_q;
1: - struct request_queue *fabrics_q;
1: - struct device *dev;
1: - int instance;
1: - int numa_node;
1: - struct blk_mq_tag_set *tagset;
1: - struct blk_mq_tag_set *admin_tagset;
1: - struct list_head namespaces;
1: - struct rw_semaphore namespaces_rwsem;
1: - struct device ctrl_device;
1: - struct device *device;
1: - struct cdev cdev;
1: - struct work_struct reset_work;
1: - struct work_struct delete_work;
1: - wait_queue_head_t state_wq;
1: - struct nvme_subsystem *subsys;
1: - struct list_head subsys_entry;
1: - struct opal_dev *opal_dev;
1: - char name[12];
1: - u16 cntlid;
1: - u32 ctrl_config;
1: - u16 mtfa;
1: - u32 queue_count;
1: - u64 cap;
1: - u32 max_hw_sectors;
1: - u32 max_segments;
1: - u32 max_integrity_segments;
1: - u32 max_zone_append;
1: - u16 crdt[3];
1: - u16 oncs;
1: - u16 oacs;
1: - u16 nssa;
1: - u16 nr_streams;
1: - u16 sqsize;
1: - u32 max_namespaces;
1: - atomic_t abort_limit;
1: - u8 vwc;
1: - u32 vs;
1: - u32 sgls;
1: - u16 kas;
1: - u8 npss;
1: - u8 apsta;
1: - u16 wctemp;
1: - u16 cctemp;
1: - u32 oaes;
1: - u32 aen_result;
1: - u32 ctratt;
1: - unsigned int shutdown_timeout;
1: - unsigned int kato;
1: - bool subsystem;
1: - long unsigned int quirks;
1: - struct nvme_id_power_state psd[32];
1: - struct nvme_effects_log *effects;
1: - struct xarray cels;
1: - struct work_struct scan_work;
1: - struct work_struct async_event_work;
1: - struct delayed_work ka_work;
1: - struct nvme_command ka_cmd;
1: - struct work_struct fw_act_work;
1: - long unsigned int events;
1: - u64 ps_max_latency_us;
1: - bool apst_enabled;
1: - u32 hmpre;
1: - u32 hmmin;
1: - u32 hmminds;
1: - u16 hmmaxd;
1: - u32 ioccsz;
1: - u32 iorcsz;
1: - u16 icdoff;
1: - u16 maxcmd;
1: - int nr_reconnects;
1: - struct nvmf_ctrl_options *opts;
1: - struct page *discard_page;
1: - long unsigned int discard_page_busy;
1: - struct nvme_fault_inject fault_inject;
1: -};
1: -
1: -enum {
1: - NVME_REQ_CANCELLED = 1,
1: - NVME_REQ_USERCMD = 2,
1: + bool comp_seen;
1: + enum nvme_ctrl_state state;
1: + bool identified;
1: + spinlock_t lock;
1: + struct mutex scan_lock;
1: + const struct nvme_ctrl_ops *ops;
1: + struct request_queue *admin_q;
1: + struct request_queue *connect_q;
1: + struct request_queue *fabrics_q;
1: + struct device *dev;
1: + int instance;
1: + int numa_node;
1: + struct blk_mq_tag_set *tagset;
1: + struct blk_mq_tag_set *admin_tagset;
1: + struct list_head namespaces;
1: + struct rw_semaphore namespaces_rwsem;
1: + struct device ctrl_device;
1: + struct device *device;
1: + struct cdev cdev;
1: + struct work_struct reset_work;
1: + struct work_struct delete_work;
1: + wait_queue_head_t state_wq;
1: + struct nvme_subsystem *subsys;
1: + struct list_head subsys_entry;
1: + struct opal_dev *opal_dev;
1: + char name[12];
1: + u16 cntlid;
1: + u32 ctrl_config;
1: + u16 mtfa;
1: + u32 queue_count;
1: + u64 cap;
1: + u32 max_hw_sectors;
1: + u32 max_segments;
1: + u32 max_integrity_segments;
1: + u32 max_zone_append;
1: + u16 crdt[3];
1: + u16 oncs;
1: + u16 oacs;
1: + u16 nssa;
1: + u16 nr_streams;
1: + u16 sqsize;
1: + u32 max_namespaces;
1: + atomic_t abort_limit;
1: + u8 vwc;
1: + u32 vs;
1: + u32 sgls;
1: + u16 kas;
1: + u8 npss;
1: + u8 apsta;
1: + u16 wctemp;
1: + u16 cctemp;
1: + u32 oaes;
1: + u32 aen_result;
1: + u32 ctratt;
1: + unsigned int shutdown_timeout;
1: + unsigned int kato;
1: + bool subsystem;
1: + long unsigned int quirks;
1: + struct nvme_id_power_state psd[32];
1: + struct nvme_effects_log *effects;
1: + struct xarray cels;
1: + struct work_struct scan_work;
1: + struct work_struct async_event_work;
1: + struct delayed_work ka_work;
1: + struct nvme_command ka_cmd;
1: + struct work_struct fw_act_work;
1: + long unsigned int events;
1: + u64 ps_max_latency_us;
1: + bool apst_enabled;
1: + u32 hmpre;
1: + u32 hmmin;
1: + u32 hmminds;
1: + u16 hmmaxd;
1: + u32 ioccsz;
1: + u32 iorcsz;
1: + u16 icdoff;
1: + u16 maxcmd;
1: + int nr_reconnects;
1: + struct nvmf_ctrl_options *opts;
1: + struct page *discard_page;
1: + long unsigned int discard_page_busy;
1: + struct nvme_fault_inject fault_inject;
1: +};
1: +
1: +enum {
1: + NVME_REQ_CANCELLED = 1,
1: + NVME_REQ_USERCMD = 2,
1: };
1:
1: struct nvme_ctrl_ops {
1: - const char *name;
1: - struct module *module;
1: - unsigned int flags;
1: - int (*reg_read32)(struct nvme_ctrl *, u32, u32 *);
1: - int (*reg_write32)(struct nvme_ctrl *, u32, u32);
1: - int (*reg_read64)(struct nvme_ctrl *, u32, u64 *);
1: - void (*free_ctrl)(struct nvme_ctrl *);
1: - void (*submit_async_event)(struct nvme_ctrl *);
1: - void (*delete_ctrl)(struct nvme_ctrl *);
1: - int (*get_address)(struct nvme_ctrl *, char *, int);
1: + const char *name;
1: + struct module *module;
1: + unsigned int flags;
1: + int (*reg_read32)(struct nvme_ctrl *, u32, u32 *);
1: + int (*reg_write32)(struct nvme_ctrl *, u32, u32);
1: + int (*reg_read64)(struct nvme_ctrl *, u32, u64 *);
1: + void (*free_ctrl)(struct nvme_ctrl *);
1: + void (*submit_async_event)(struct nvme_ctrl *);
1: + void (*delete_ctrl)(struct nvme_ctrl *);
1: + int (*get_address)(struct nvme_ctrl *, char *, int);
1: };
1:
1: struct nvme_subsystem {
1: - int instance;
1: - struct device dev;
1: - struct kref ref;
1: - struct list_head entry;
1: - struct mutex lock;
1: - struct list_head ctrls;
1: - struct list_head nsheads;
1: - char subnqn[223];
1: - char serial[20];
1: - char model[40];
1: - char firmware_rev[8];
1: - u8 cmic;
1: - u16 vendor_id;
1: - u16 awupf;
1: - struct ida ns_ida;
1: + int instance;
1: + struct device dev;
1: + struct kref ref;
1: + struct list_head entry;
1: + struct mutex lock;
1: + struct list_head ctrls;
1: + struct list_head nsheads;
1: + char subnqn[223];
1: + char serial[20];
1: + char model[40];
1: + char firmware_rev[8];
1: + u8 cmic;
1: + u16 vendor_id;
1: + u16 awupf;
1: + struct ida ns_ida;
1: };
1:
1: struct nvmf_host;
1:
1: struct nvmf_ctrl_options {
1: - unsigned int mask;
1: - char *transport;
1: - char *subsysnqn;
1: - char *traddr;
1: - char *trsvcid;
1: - char *host_traddr;
1: - size_t queue_size;
1: - unsigned int nr_io_queues;
1: - unsigned int reconnect_delay;
1: - bool discovery_nqn;
1: - bool duplicate_connect;
1: - unsigned int kato;
1: - struct nvmf_host *host;
1: - int max_reconnects;
1: - bool disable_sqflow;
1: - bool hdr_digest;
1: - bool data_digest;
1: - unsigned int nr_write_queues;
1: - unsigned int nr_poll_queues;
1: - int tos;
1: + unsigned int mask;
1: + char *transport;
1: + char *subsysnqn;
1: + char *traddr;
1: + char *trsvcid;
1: + char *host_traddr;
1: + size_t queue_size;
1: + unsigned int nr_io_queues;
1: + unsigned int reconnect_delay;
1: + bool discovery_nqn;
1: + bool duplicate_connect;
1: + unsigned int kato;
1: + struct nvmf_host *host;
1: + int max_reconnects;
1: + bool disable_sqflow;
1: + bool hdr_digest;
1: + bool data_digest;
1: + unsigned int nr_write_queues;
1: + unsigned int nr_poll_queues;
1: + int tos;
1: };
1:
1: struct nvme_ns_ids {
1: - u8 eui64[8];
1: - u8 nguid[16];
1: - uuid_t uuid;
1: - u8 csi;
1: + u8 eui64[8];
1: + u8 nguid[16];
1: + uuid_t uuid;
1: + u8 csi;
1: };
1:
1: struct nvme_ns_head {
1: - struct list_head list;
1: - struct srcu_struct srcu;
1: - struct nvme_subsystem *subsys;
1: - unsigned int ns_id;
1: - struct nvme_ns_ids ids;
1: - struct list_head entry;
1: - struct kref ref;
1: - bool shared;
1: - int instance;
1: - struct nvme_effects_log *effects;
1: + struct list_head list;
1: + struct srcu_struct srcu;
1: + struct nvme_subsystem *subsys;
1: + unsigned int ns_id;
1: + struct nvme_ns_ids ids;
1: + struct list_head entry;
1: + struct kref ref;
1: + bool shared;
1: + int instance;
1: + struct nvme_effects_log *effects;
1: };
1:
1: enum nvme_ns_features {
1: - NVME_NS_EXT_LBAS = 1,
1: - NVME_NS_METADATA_SUPPORTED = 2,
1: + NVME_NS_EXT_LBAS = 1,
1: + NVME_NS_METADATA_SUPPORTED = 2,
1: };
1:
1: struct nvme_ns {
1: - struct list_head list;
1: - struct nvme_ctrl *ctrl;
1: - struct request_queue *queue;
1: - struct gendisk *disk;
1: - struct list_head siblings;
1: - struct nvm_dev *ndev;
1: - struct kref kref;
1: - struct nvme_ns_head *head;
1: - int lba_shift;
1: - u16 ms;
1: - u16 sgs;
1: - u32 sws;
1: - u8 pi_type;
1: - u64 zsze;
1: - long unsigned int features;
1: - long unsigned int flags;
1: - struct nvme_fault_inject fault_inject;
1: + struct list_head list;
1: + struct nvme_ctrl *ctrl;
1: + struct request_queue *queue;
1: + struct gendisk *disk;
1: + struct list_head siblings;
1: + struct nvm_dev *ndev;
1: + struct kref kref;
1: + struct nvme_ns_head *head;
1: + int lba_shift;
1: + u16 ms;
1: + u16 sgs;
1: + u32 sws;
1: + u8 pi_type;
1: + u64 zsze;
1: + long unsigned int features;
1: + long unsigned int flags;
1: + struct nvme_fault_inject fault_inject;
1: };
1:
1: struct nvmf_host {
1: - struct kref ref;
1: - struct list_head list;
1: - char nqn[223];
1: - uuid_t id;
1: + struct kref ref;
1: + struct list_head list;
1: + char nqn[223];
1: + uuid_t id;
1: };
1:
1: struct trace_event_raw_nvme_setup_cmd {
1: - struct trace_entry ent;
1: - char disk[32];
1: - int ctrl_id;
1: - int qid;
1: - u8 opcode;
1: - u8 flags;
1: - u8 fctype;
1: - u16 cid;
1: - u32 nsid;
1: - u64 metadata;
1: - u8 cdw10[24];
1: - char __data[0];
1: + struct trace_entry ent;
1: + char disk[32];
1: + int ctrl_id;
1: + int qid;
1: + u8 opcode;
1: + u8 flags;
1: + u8 fctype;
1: + u16 cid;
1: + u32 nsid;
1: + u64 metadata;
1: + u8 cdw10[24];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_nvme_complete_rq {
1: - struct trace_entry ent;
1: - char disk[32];
1: - int ctrl_id;
1: - int qid;
1: - int cid;
1: - u64 result;
1: - u8 retries;
1: - u8 flags;
1: - u16 status;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char disk[32];
1: + int ctrl_id;
1: + int qid;
1: + int cid;
1: + u64 result;
1: + u8 retries;
1: + u8 flags;
1: + u16 status;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_nvme_async_event {
1: - struct trace_entry ent;
1: - int ctrl_id;
1: - u32 result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ctrl_id;
1: + u32 result;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_nvme_sq {
1: - struct trace_entry ent;
1: - int ctrl_id;
1: - char disk[32];
1: - int qid;
1: - u16 sq_head;
1: - u16 sq_tail;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ctrl_id;
1: + char disk[32];
1: + int qid;
1: + u16 sq_head;
1: + u16 sq_tail;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_nvme_setup_cmd {};
1: @@ -86109,7 +87187,8 @@ struct trace_event_data_offsets_nvme_async_event {};
1:
1: struct trace_event_data_offsets_nvme_sq {};
1:
1: -typedef void (*btf_trace_nvme_setup_cmd)(void *, struct request *, struct nvme_command *);
1: +typedef void (*btf_trace_nvme_setup_cmd)(void *, struct request *,
1: + struct nvme_command *);
1:
1: typedef void (*btf_trace_nvme_complete_rq)(void *, struct request *);
1:
1: @@ -86118,561 +87197,564 @@ typedef void (*btf_trace_nvme_async_event)(void *, struct nvme_ctrl *, u32);
1: typedef void (*btf_trace_nvme_sq)(void *, struct request *, __le16, int);
1:
1: enum nvme_disposition {
1: - COMPLETE = 0,
1: - RETRY = 1,
1: - FAILOVER = 2,
1: + COMPLETE = 0,
1: + RETRY = 1,
1: + FAILOVER = 2,
1: };
1:
1: struct nvme_core_quirk_entry {
1: - u16 vid;
1: - const char *mn;
1: - const char *fr;
1: - long unsigned int quirks;
1: + u16 vid;
1: + const char *mn;
1: + const char *fr;
1: + long unsigned int quirks;
1: };
1:
1: struct nvm_user_vio {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 control;
1: - __u16 nppas;
1: - __u16 rsvd;
1: - __u64 metadata;
1: - __u64 addr;
1: - __u64 ppa_list;
1: - __u32 metadata_len;
1: - __u32 data_len;
1: - __u64 status;
1: - __u32 result;
1: - __u32 rsvd3[3];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 control;
1: + __u16 nppas;
1: + __u16 rsvd;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u64 ppa_list;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u64 status;
1: + __u32 result;
1: + __u32 rsvd3[3];
1: };
1:
1: struct nvm_passthru_vio {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u8 rsvd[2];
1: - __u32 nsid;
1: - __u32 cdw2;
1: - __u32 cdw3;
1: - __u64 metadata;
1: - __u64 addr;
1: - __u32 metadata_len;
1: - __u32 data_len;
1: - __u64 ppa_list;
1: - __u16 nppas;
1: - __u16 control;
1: - __u32 cdw13;
1: - __u32 cdw14;
1: - __u32 cdw15;
1: - __u64 status;
1: - __u32 result;
1: - __u32 timeout_ms;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u8 rsvd[2];
1: + __u32 nsid;
1: + __u32 cdw2;
1: + __u32 cdw3;
1: + __u64 metadata;
1: + __u64 addr;
1: + __u32 metadata_len;
1: + __u32 data_len;
1: + __u64 ppa_list;
1: + __u16 nppas;
1: + __u16 control;
1: + __u32 cdw13;
1: + __u32 cdw14;
1: + __u32 cdw15;
1: + __u64 status;
1: + __u32 result;
1: + __u32 timeout_ms;
1: };
1:
1: enum nvme_nvm_admin_opcode {
1: - nvme_nvm_admin_identity = 226,
1: - nvme_nvm_admin_get_bb_tbl = 242,
1: - nvme_nvm_admin_set_bb_tbl = 241,
1: + nvme_nvm_admin_identity = 226,
1: + nvme_nvm_admin_get_bb_tbl = 242,
1: + nvme_nvm_admin_set_bb_tbl = 241,
1: };
1:
1: enum nvme_nvm_log_page {
1: - NVME_NVM_LOG_REPORT_CHUNK = 202,
1: + NVME_NVM_LOG_REPORT_CHUNK = 202,
1: };
1:
1: struct nvme_nvm_ph_rw {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd2;
1: - __le64 metadata;
1: - __le64 prp1;
1: - __le64 prp2;
1: - __le64 spba;
1: - __le16 length;
1: - __le16 control;
1: - __le32 dsmgmt;
1: - __le64 resv;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd2;
1: + __le64 metadata;
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le64 resv;
1: };
1:
1: struct nvme_nvm_erase_blk {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd[2];
1: - __le64 prp1;
1: - __le64 prp2;
1: - __le64 spba;
1: - __le16 length;
1: - __le16 control;
1: - __le32 dsmgmt;
1: - __le64 resv;
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 length;
1: + __le16 control;
1: + __le32 dsmgmt;
1: + __le64 resv;
1: };
1:
1: struct nvme_nvm_identity {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd[2];
1: - __le64 prp1;
1: - __le64 prp2;
1: - __u32 rsvd11[6];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __u32 rsvd11[6];
1: };
1:
1: struct nvme_nvm_getbbtbl {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __u64 rsvd[2];
1: - __le64 prp1;
1: - __le64 prp2;
1: - __le64 spba;
1: - __u32 rsvd4[4];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __u64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __u32 rsvd4[4];
1: };
1:
1: struct nvme_nvm_setbbtbl {
1: - __u8 opcode;
1: - __u8 flags;
1: - __u16 command_id;
1: - __le32 nsid;
1: - __le64 rsvd[2];
1: - __le64 prp1;
1: - __le64 prp2;
1: - __le64 spba;
1: - __le16 nlb;
1: - __u8 value;
1: - __u8 rsvd3;
1: - __u32 rsvd4[3];
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 command_id;
1: + __le32 nsid;
1: + __le64 rsvd[2];
1: + __le64 prp1;
1: + __le64 prp2;
1: + __le64 spba;
1: + __le16 nlb;
1: + __u8 value;
1: + __u8 rsvd3;
1: + __u32 rsvd4[3];
1: };
1:
1: struct nvme_nvm_command {
1: - union {
1: - struct nvme_common_command common;
1: - struct nvme_nvm_ph_rw ph_rw;
1: - struct nvme_nvm_erase_blk erase;
1: - struct nvme_nvm_identity identity;
1: - struct nvme_nvm_getbbtbl get_bb;
1: - struct nvme_nvm_setbbtbl set_bb;
1: - };
1: + union {
1: + struct nvme_common_command common;
1: + struct nvme_nvm_ph_rw ph_rw;
1: + struct nvme_nvm_erase_blk erase;
1: + struct nvme_nvm_identity identity;
1: + struct nvme_nvm_getbbtbl get_bb;
1: + struct nvme_nvm_setbbtbl set_bb;
1: + };
1: };
1:
1: struct nvme_nvm_id12_grp {
1: - __u8 mtype;
1: - __u8 fmtype;
1: - __le16 res16;
1: - __u8 num_ch;
1: - __u8 num_lun;
1: - __u8 num_pln;
1: - __u8 rsvd1;
1: - __le16 num_chk;
1: - __le16 num_pg;
1: - __le16 fpg_sz;
1: - __le16 csecs;
1: - __le16 sos;
1: - __le16 rsvd2;
1: - __le32 trdt;
1: - __le32 trdm;
1: - __le32 tprt;
1: - __le32 tprm;
1: - __le32 tbet;
1: - __le32 tbem;
1: - __le32 mpos;
1: - __le32 mccap;
1: - __le16 cpar;
1: - __u8 reserved[906];
1: + __u8 mtype;
1: + __u8 fmtype;
1: + __le16 res16;
1: + __u8 num_ch;
1: + __u8 num_lun;
1: + __u8 num_pln;
1: + __u8 rsvd1;
1: + __le16 num_chk;
1: + __le16 num_pg;
1: + __le16 fpg_sz;
1: + __le16 csecs;
1: + __le16 sos;
1: + __le16 rsvd2;
1: + __le32 trdt;
1: + __le32 trdm;
1: + __le32 tprt;
1: + __le32 tprm;
1: + __le32 tbet;
1: + __le32 tbem;
1: + __le32 mpos;
1: + __le32 mccap;
1: + __le16 cpar;
1: + __u8 reserved[906];
1: };
1:
1: struct nvme_nvm_id12_addrf {
1: - __u8 ch_offset;
1: - __u8 ch_len;
1: - __u8 lun_offset;
1: - __u8 lun_len;
1: - __u8 pln_offset;
1: - __u8 pln_len;
1: - __u8 blk_offset;
1: - __u8 blk_len;
1: - __u8 pg_offset;
1: - __u8 pg_len;
1: - __u8 sec_offset;
1: - __u8 sec_len;
1: - __u8 res[4];
1: + __u8 ch_offset;
1: + __u8 ch_len;
1: + __u8 lun_offset;
1: + __u8 lun_len;
1: + __u8 pln_offset;
1: + __u8 pln_len;
1: + __u8 blk_offset;
1: + __u8 blk_len;
1: + __u8 pg_offset;
1: + __u8 pg_len;
1: + __u8 sec_offset;
1: + __u8 sec_len;
1: + __u8 res[4];
1: };
1:
1: struct nvme_nvm_id12 {
1: - __u8 ver_id;
1: - __u8 vmnt;
1: - __u8 cgrps;
1: - __u8 res;
1: - __le32 cap;
1: - __le32 dom;
1: - struct nvme_nvm_id12_addrf ppaf;
1: - __u8 resv[228];
1: - struct nvme_nvm_id12_grp grp;
1: - __u8 resv2[2880];
1: + __u8 ver_id;
1: + __u8 vmnt;
1: + __u8 cgrps;
1: + __u8 res;
1: + __le32 cap;
1: + __le32 dom;
1: + struct nvme_nvm_id12_addrf ppaf;
1: + __u8 resv[228];
1: + struct nvme_nvm_id12_grp grp;
1: + __u8 resv2[2880];
1: };
1:
1: struct nvme_nvm_bb_tbl {
1: - __u8 tblid[4];
1: - __le16 verid;
1: - __le16 revid;
1: - __le32 rvsd1;
1: - __le32 tblks;
1: - __le32 tfact;
1: - __le32 tgrown;
1: - __le32 tdresv;
1: - __le32 thresv;
1: - __le32 rsvd2[8];
1: - __u8 blk[0];
1: + __u8 tblid[4];
1: + __le16 verid;
1: + __le16 revid;
1: + __le32 rvsd1;
1: + __le32 tblks;
1: + __le32 tfact;
1: + __le32 tgrown;
1: + __le32 tdresv;
1: + __le32 thresv;
1: + __le32 rsvd2[8];
1: + __u8 blk[0];
1: };
1:
1: struct nvme_nvm_id20_addrf {
1: - __u8 grp_len;
1: - __u8 pu_len;
1: - __u8 chk_len;
1: - __u8 lba_len;
1: - __u8 resv[4];
1: + __u8 grp_len;
1: + __u8 pu_len;
1: + __u8 chk_len;
1: + __u8 lba_len;
1: + __u8 resv[4];
1: };
1:
1: struct nvme_nvm_id20 {
1: - __u8 mjr;
1: - __u8 mnr;
1: - __u8 resv[6];
1: - struct nvme_nvm_id20_addrf lbaf;
1: - __le32 mccap;
1: - __u8 resv2[12];
1: - __u8 wit;
1: - __u8 resv3[31];
1: - __le16 num_grp;
1: - __le16 num_pu;
1: - __le32 num_chk;
1: - __le32 clba;
1: - __u8 resv4[52];
1: - __le32 ws_min;
1: - __le32 ws_opt;
1: - __le32 mw_cunits;
1: - __le32 maxoc;
1: - __le32 maxocpu;
1: - __u8 resv5[44];
1: - __le32 trdt;
1: - __le32 trdm;
1: - __le32 twrt;
1: - __le32 twrm;
1: - __le32 tcrst;
1: - __le32 tcrsm;
1: - __u8 resv6[40];
1: - __u8 resv7[2816];
1: - __u8 vs[1024];
1: + __u8 mjr;
1: + __u8 mnr;
1: + __u8 resv[6];
1: + struct nvme_nvm_id20_addrf lbaf;
1: + __le32 mccap;
1: + __u8 resv2[12];
1: + __u8 wit;
1: + __u8 resv3[31];
1: + __le16 num_grp;
1: + __le16 num_pu;
1: + __le32 num_chk;
1: + __le32 clba;
1: + __u8 resv4[52];
1: + __le32 ws_min;
1: + __le32 ws_opt;
1: + __le32 mw_cunits;
1: + __le32 maxoc;
1: + __le32 maxocpu;
1: + __u8 resv5[44];
1: + __le32 trdt;
1: + __le32 trdm;
1: + __le32 twrt;
1: + __le32 twrm;
1: + __le32 tcrst;
1: + __le32 tcrsm;
1: + __u8 resv6[40];
1: + __u8 resv7[2816];
1: + __u8 vs[1024];
1: };
1:
1: struct nvme_nvm_chk_meta {
1: - __u8 state;
1: - __u8 type;
1: - __u8 wi;
1: - __u8 rsvd[5];
1: - __le64 slba;
1: - __le64 cnlb;
1: - __le64 wp;
1: + __u8 state;
1: + __u8 type;
1: + __u8 wi;
1: + __u8 rsvd[5];
1: + __le64 slba;
1: + __le64 cnlb;
1: + __le64 wp;
1: };
1:
1: struct nvme_zns_lbafe {
1: - __le64 zsze;
1: - __u8 zdes;
1: - __u8 rsvd9[7];
1: + __le64 zsze;
1: + __u8 zdes;
1: + __u8 rsvd9[7];
1: };
1:
1: struct nvme_id_ns_zns {
1: - __le16 zoc;
1: - __le16 ozcs;
1: - __le32 mar;
1: - __le32 mor;
1: - __le32 rrl;
1: - __le32 frl;
1: - __u8 rsvd20[2796];
1: - struct nvme_zns_lbafe lbafe[16];
1: - __u8 rsvd3072[768];
1: - __u8 vs[256];
1: + __le16 zoc;
1: + __le16 ozcs;
1: + __le32 mar;
1: + __le32 mor;
1: + __le32 rrl;
1: + __le32 frl;
1: + __u8 rsvd20[2796];
1: + struct nvme_zns_lbafe lbafe[16];
1: + __u8 rsvd3072[768];
1: + __u8 vs[256];
1: };
1:
1: struct nvme_id_ctrl_zns {
1: - __u8 zasl;
1: - __u8 rsvd1[4095];
1: + __u8 zasl;
1: + __u8 rsvd1[4095];
1: };
1:
1: struct nvme_zone_descriptor {
1: - __u8 zt;
1: - __u8 zs;
1: - __u8 za;
1: - __u8 rsvd3[5];
1: - __le64 zcap;
1: - __le64 zslba;
1: - __le64 wp;
1: - __u8 rsvd32[32];
1: + __u8 zt;
1: + __u8 zs;
1: + __u8 za;
1: + __u8 rsvd3[5];
1: + __le64 zcap;
1: + __le64 zslba;
1: + __le64 wp;
1: + __u8 rsvd32[32];
1: };
1:
1: enum {
1: - NVME_ZONE_TYPE_SEQWRITE_REQ = 2,
1: + NVME_ZONE_TYPE_SEQWRITE_REQ = 2,
1: };
1:
1: struct nvme_zone_report {
1: - __le64 nr_zones;
1: - __u8 resv8[56];
1: - struct nvme_zone_descriptor entries[0];
1: + __le64 nr_zones;
1: + __u8 resv8[56];
1: + struct nvme_zone_descriptor entries[0];
1: };
1:
1: enum {
1: - NVME_ZRA_ZONE_REPORT = 0,
1: - NVME_ZRASF_ZONE_REPORT_ALL = 0,
1: - NVME_REPORT_ZONE_PARTIAL = 1,
1: + NVME_ZRA_ZONE_REPORT = 0,
1: + NVME_ZRASF_ZONE_REPORT_ALL = 0,
1: + NVME_REPORT_ZONE_PARTIAL = 1,
1: };
1:
1: enum {
1: - NVME_CMBSZ_SQS = 1,
1: - NVME_CMBSZ_CQS = 2,
1: - NVME_CMBSZ_LISTS = 4,
1: - NVME_CMBSZ_RDS = 8,
1: - NVME_CMBSZ_WDS = 16,
1: - NVME_CMBSZ_SZ_SHIFT = 12,
1: - NVME_CMBSZ_SZ_MASK = 1048575,
1: - NVME_CMBSZ_SZU_SHIFT = 8,
1: - NVME_CMBSZ_SZU_MASK = 15,
1: + NVME_CMBSZ_SQS = 1,
1: + NVME_CMBSZ_CQS = 2,
1: + NVME_CMBSZ_LISTS = 4,
1: + NVME_CMBSZ_RDS = 8,
1: + NVME_CMBSZ_WDS = 16,
1: + NVME_CMBSZ_SZ_SHIFT = 12,
1: + NVME_CMBSZ_SZ_MASK = 1048575,
1: + NVME_CMBSZ_SZU_SHIFT = 8,
1: + NVME_CMBSZ_SZU_MASK = 15,
1: };
1:
1: enum {
1: - NVME_SGL_FMT_DATA_DESC = 0,
1: - NVME_SGL_FMT_SEG_DESC = 2,
1: - NVME_SGL_FMT_LAST_SEG_DESC = 3,
1: - NVME_KEY_SGL_FMT_DATA_DESC = 4,
1: - NVME_TRANSPORT_SGL_DATA_DESC = 5,
1: + NVME_SGL_FMT_DATA_DESC = 0,
1: + NVME_SGL_FMT_SEG_DESC = 2,
1: + NVME_SGL_FMT_LAST_SEG_DESC = 3,
1: + NVME_KEY_SGL_FMT_DATA_DESC = 4,
1: + NVME_TRANSPORT_SGL_DATA_DESC = 5,
1: };
1:
1: enum {
1: - NVME_HOST_MEM_ENABLE = 1,
1: - NVME_HOST_MEM_RETURN = 2,
1: + NVME_HOST_MEM_ENABLE = 1,
1: + NVME_HOST_MEM_RETURN = 2,
1: };
1:
1: struct nvme_host_mem_buf_desc {
1: - __le64 addr;
1: - __le32 size;
1: - __u32 rsvd;
1: + __le64 addr;
1: + __le32 size;
1: + __u32 rsvd;
1: };
1:
1: struct nvme_completion {
1: - union nvme_result result;
1: - __le16 sq_head;
1: - __le16 sq_id;
1: - __u16 command_id;
1: - __le16 status;
1: + union nvme_result result;
1: + __le16 sq_head;
1: + __le16 sq_id;
1: + __u16 command_id;
1: + __le16 status;
1: };
1:
1: struct nvme_queue;
1:
1: struct nvme_dev {
1: - struct nvme_queue *queues;
1: - struct blk_mq_tag_set tagset;
1: - struct blk_mq_tag_set admin_tagset;
1: - u32 *dbs;
1: - struct device *dev;
1: - struct dma_pool___2 *prp_page_pool;
1: - struct dma_pool___2 *prp_small_pool;
1: - unsigned int online_queues;
1: - unsigned int max_qid;
1: - unsigned int io_queues[3];
1: - unsigned int num_vecs;
1: - u32 q_depth;
1: - int io_sqes;
1: - u32 db_stride;
1: - void *bar;
1: - long unsigned int bar_mapped_size;
1: - struct work_struct remove_work;
1: - struct mutex shutdown_lock;
1: - bool subsystem;
1: - u64 cmb_size;
1: - bool cmb_use_sqes;
1: - u32 cmbsz;
1: - u32 cmbloc;
1: - struct nvme_ctrl ctrl;
1: - u32 last_ps;
1: - mempool_t *iod_mempool;
1: - u32 *dbbuf_dbs;
1: - dma_addr_t dbbuf_dbs_dma_addr;
1: - u32 *dbbuf_eis;
1: - dma_addr_t dbbuf_eis_dma_addr;
1: - u64 host_mem_size;
1: - u32 nr_host_mem_descs;
1: - dma_addr_t host_mem_descs_dma;
1: - struct nvme_host_mem_buf_desc *host_mem_descs;
1: - void **host_mem_desc_bufs;
1: - unsigned int nr_allocated_queues;
1: - unsigned int nr_write_queues;
1: - unsigned int nr_poll_queues;
1: + struct nvme_queue *queues;
1: + struct blk_mq_tag_set tagset;
1: + struct blk_mq_tag_set admin_tagset;
1: + u32 *dbs;
1: + struct device *dev;
1: + struct dma_pool___2 *prp_page_pool;
1: + struct dma_pool___2 *prp_small_pool;
1: + unsigned int online_queues;
1: + unsigned int max_qid;
1: + unsigned int io_queues[3];
1: + unsigned int num_vecs;
1: + u32 q_depth;
1: + int io_sqes;
1: + u32 db_stride;
1: + void *bar;
1: + long unsigned int bar_mapped_size;
1: + struct work_struct remove_work;
1: + struct mutex shutdown_lock;
1: + bool subsystem;
1: + u64 cmb_size;
1: + bool cmb_use_sqes;
1: + u32 cmbsz;
1: + u32 cmbloc;
1: + struct nvme_ctrl ctrl;
1: + u32 last_ps;
1: + mempool_t *iod_mempool;
1: + u32 *dbbuf_dbs;
1: + dma_addr_t dbbuf_dbs_dma_addr;
1: + u32 *dbbuf_eis;
1: + dma_addr_t dbbuf_eis_dma_addr;
1: + u64 host_mem_size;
1: + u32 nr_host_mem_descs;
1: + dma_addr_t host_mem_descs_dma;
1: + struct nvme_host_mem_buf_desc *host_mem_descs;
1: + void **host_mem_desc_bufs;
1: + unsigned int nr_allocated_queues;
1: + unsigned int nr_write_queues;
1: + unsigned int nr_poll_queues;
1: };
1:
1: struct nvme_queue {
1: - struct nvme_dev *dev;
1: - spinlock_t sq_lock;
1: - void *sq_cmds;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t cq_poll_lock;
1: - struct nvme_completion *cqes;
1: - dma_addr_t sq_dma_addr;
1: - dma_addr_t cq_dma_addr;
1: - u32 *q_db;
1: - u32 q_depth;
1: - u16 cq_vector;
1: - u16 sq_tail;
1: - u16 last_sq_tail;
1: - u16 cq_head;
1: - u16 qid;
1: - u8 cq_phase;
1: - u8 sqes;
1: - long unsigned int flags;
1: - u32 *dbbuf_sq_db;
1: - u32 *dbbuf_cq_db;
1: - u32 *dbbuf_sq_ei;
1: - u32 *dbbuf_cq_ei;
1: - struct completion delete_done;
1: + struct nvme_dev *dev;
1: + spinlock_t sq_lock;
1: + void *sq_cmds;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t cq_poll_lock;
1: + struct nvme_completion *cqes;
1: + dma_addr_t sq_dma_addr;
1: + dma_addr_t cq_dma_addr;
1: + u32 *q_db;
1: + u32 q_depth;
1: + u16 cq_vector;
1: + u16 sq_tail;
1: + u16 last_sq_tail;
1: + u16 cq_head;
1: + u16 qid;
1: + u8 cq_phase;
1: + u8 sqes;
1: + long unsigned int flags;
1: + u32 *dbbuf_sq_db;
1: + u32 *dbbuf_cq_db;
1: + u32 *dbbuf_sq_ei;
1: + u32 *dbbuf_cq_ei;
1: + struct completion delete_done;
1: };
1:
1: struct nvme_iod {
1: - struct nvme_request req;
1: - struct nvme_queue *nvmeq;
1: - bool use_sgl;
1: - int aborted;
1: - int npages;
1: - int nents;
1: - dma_addr_t first_dma;
1: - unsigned int dma_len;
1: - dma_addr_t meta_dma;
1: - struct scatterlist *sg;
1: + struct nvme_request req;
1: + struct nvme_queue *nvmeq;
1: + bool use_sgl;
1: + int aborted;
1: + int npages;
1: + int nents;
1: + dma_addr_t first_dma;
1: + unsigned int dma_len;
1: + dma_addr_t meta_dma;
1: + struct scatterlist *sg;
1: };
1:
1: -typedef void (*spi_res_release_t)(struct spi_controller *, struct spi_message *, void *);
1: +typedef void (*spi_res_release_t)(struct spi_controller *, struct spi_message *,
1: + void *);
1:
1: struct spi_res {
1: - struct list_head entry;
1: - spi_res_release_t release;
1: - long long unsigned int data[0];
1: + struct list_head entry;
1: + spi_res_release_t release;
1: + long long unsigned int data[0];
1: };
1:
1: struct spi_replaced_transfers;
1:
1: -typedef void (*spi_replaced_release_t)(struct spi_controller *, struct spi_message *, struct spi_replaced_transfers *);
1: +typedef void (*spi_replaced_release_t)(struct spi_controller *,
1: + struct spi_message *,
1: + struct spi_replaced_transfers *);
1:
1: struct spi_replaced_transfers {
1: - spi_replaced_release_t release;
1: - void *extradata;
1: - struct list_head replaced_transfers;
1: - struct list_head *replaced_after;
1: - size_t inserted;
1: - struct spi_transfer inserted_transfers[0];
1: + spi_replaced_release_t release;
1: + void *extradata;
1: + struct list_head replaced_transfers;
1: + struct list_head *replaced_after;
1: + size_t inserted;
1: + struct spi_transfer inserted_transfers[0];
1: };
1:
1: struct spi_board_info {
1: - char modalias[32];
1: - const void *platform_data;
1: - const struct property_entry *properties;
1: - void *controller_data;
1: - int irq;
1: - u32 max_speed_hz;
1: - u16 bus_num;
1: - u16 chip_select;
1: - u32 mode;
1: + char modalias[32];
1: + const void *platform_data;
1: + const struct property_entry *properties;
1: + void *controller_data;
1: + int irq;
1: + u32 max_speed_hz;
1: + u16 bus_num;
1: + u16 chip_select;
1: + u32 mode;
1: };
1:
1: enum spi_mem_data_dir {
1: - SPI_MEM_NO_DATA = 0,
1: - SPI_MEM_DATA_IN = 1,
1: - SPI_MEM_DATA_OUT = 2,
1: + SPI_MEM_NO_DATA = 0,
1: + SPI_MEM_DATA_IN = 1,
1: + SPI_MEM_DATA_OUT = 2,
1: };
1:
1: struct spi_mem_op {
1: - struct {
1: - u8 nbytes;
1: - u8 buswidth;
1: - u8 dtr: 1;
1: - u16 opcode;
1: - } cmd;
1: - struct {
1: - u8 nbytes;
1: - u8 buswidth;
1: - u8 dtr: 1;
1: - u64 val;
1: - } addr;
1: - struct {
1: - u8 nbytes;
1: - u8 buswidth;
1: - u8 dtr: 1;
1: - } dummy;
1: - struct {
1: - u8 buswidth;
1: - u8 dtr: 1;
1: - enum spi_mem_data_dir dir;
1: - unsigned int nbytes;
1: - union {
1: - void *in;
1: - const void *out;
1: - } buf;
1: - } data;
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr : 1;
1: + u16 opcode;
1: + } cmd;
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr : 1;
1: + u64 val;
1: + } addr;
1: + struct {
1: + u8 nbytes;
1: + u8 buswidth;
1: + u8 dtr : 1;
1: + } dummy;
1: + struct {
1: + u8 buswidth;
1: + u8 dtr : 1;
1: + enum spi_mem_data_dir dir;
1: + unsigned int nbytes;
1: + union {
1: + void *in;
1: + const void *out;
1: + } buf;
1: + } data;
1: };
1:
1: struct spi_mem_dirmap_info {
1: - struct spi_mem_op op_tmpl;
1: - u64 offset;
1: - u64 length;
1: + struct spi_mem_op op_tmpl;
1: + u64 offset;
1: + u64 length;
1: };
1:
1: struct spi_mem_dirmap_desc {
1: - struct spi_mem *mem;
1: - struct spi_mem_dirmap_info info;
1: - unsigned int nodirmap;
1: - void *priv;
1: + struct spi_mem *mem;
1: + struct spi_mem_dirmap_info info;
1: + unsigned int nodirmap;
1: + void *priv;
1: };
1:
1: struct spi_mem {
1: - struct spi_device *spi;
1: - void *drvpriv;
1: - const char *name;
1: + struct spi_device *spi;
1: + void *drvpriv;
1: + const char *name;
1: };
1:
1: struct trace_event_raw_spi_controller {
1: - struct trace_entry ent;
1: - int bus_num;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int bus_num;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_spi_message {
1: - struct trace_entry ent;
1: - int bus_num;
1: - int chip_select;
1: - struct spi_message *msg;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_message *msg;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_spi_message_done {
1: - struct trace_entry ent;
1: - int bus_num;
1: - int chip_select;
1: - struct spi_message *msg;
1: - unsigned int frame;
1: - unsigned int actual;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_message *msg;
1: + unsigned int frame;
1: + unsigned int actual;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_spi_transfer {
1: - struct trace_entry ent;
1: - int bus_num;
1: - int chip_select;
1: - struct spi_transfer *xfer;
1: - int len;
1: - u32 __data_loc_rx_buf;
1: - u32 __data_loc_tx_buf;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int bus_num;
1: + int chip_select;
1: + struct spi_transfer *xfer;
1: + int len;
1: + u32 __data_loc_rx_buf;
1: + u32 __data_loc_tx_buf;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_spi_controller {};
1: @@ -86682,8 +87764,8 @@ struct trace_event_data_offsets_spi_message {};
1: struct trace_event_data_offsets_spi_message_done {};
1:
1: struct trace_event_data_offsets_spi_transfer {
1: - u32 rx_buf;
1: - u32 tx_buf;
1: + u32 rx_buf;
1: + u32 tx_buf;
1: };
1:
1: typedef void (*btf_trace_spi_controller_idle)(void *, struct spi_controller *);
1: @@ -86696,795 +87778,799 @@ typedef void (*btf_trace_spi_message_start)(void *, struct spi_message *);
1:
1: typedef void (*btf_trace_spi_message_done)(void *, struct spi_message *);
1:
1: -typedef void (*btf_trace_spi_transfer_start)(void *, struct spi_message *, struct spi_transfer *);
1: +typedef void (*btf_trace_spi_transfer_start)(void *, struct spi_message *,
1: + struct spi_transfer *);
1:
1: -typedef void (*btf_trace_spi_transfer_stop)(void *, struct spi_message *, struct spi_transfer *);
1: +typedef void (*btf_trace_spi_transfer_stop)(void *, struct spi_message *,
1: + struct spi_transfer *);
1:
1: struct boardinfo {
1: - struct list_head list;
1: - struct spi_board_info board_info;
1: + struct list_head list;
1: + struct spi_board_info board_info;
1: };
1:
1: struct acpi_spi_lookup {
1: - struct spi_controller *ctlr;
1: - u32 max_speed_hz;
1: - u32 mode;
1: - int irq;
1: - u8 bits_per_word;
1: - u8 chip_select;
1: + struct spi_controller *ctlr;
1: + u32 max_speed_hz;
1: + u32 mode;
1: + int irq;
1: + u8 bits_per_word;
1: + u8 chip_select;
1: };
1:
1: struct spi_mem_driver {
1: - struct spi_driver spidrv;
1: - int (*probe)(struct spi_mem *);
1: - int (*remove)(struct spi_mem *);
1: - void (*shutdown)(struct spi_mem *);
1: + struct spi_driver spidrv;
1: + int (*probe)(struct spi_mem *);
1: + int (*remove)(struct spi_mem *);
1: + void (*shutdown)(struct spi_mem *);
1: };
1:
1: struct meson_spifc {
1: - struct spi_controller *master;
1: - struct regmap *regmap;
1: - struct clk *clk;
1: - struct device *dev;
1: + struct spi_controller *master;
1: + struct regmap *regmap;
1: + struct clk *clk;
1: + struct device *dev;
1: };
1:
1: enum orion_spi_type {
1: - ORION_SPI = 0,
1: - ARMADA_SPI = 1,
1: + ORION_SPI = 0,
1: + ARMADA_SPI = 1,
1: };
1:
1: struct orion_spi_dev {
1: - enum orion_spi_type typ;
1: - long unsigned int max_hz;
1: - unsigned int min_divisor;
1: - unsigned int max_divisor;
1: - u32 prescale_mask;
1: - bool is_errata_50mhz_ac;
1: + enum orion_spi_type typ;
1: + long unsigned int max_hz;
1: + unsigned int min_divisor;
1: + unsigned int max_divisor;
1: + u32 prescale_mask;
1: + bool is_errata_50mhz_ac;
1: };
1:
1: struct orion_direct_acc {
1: - void *vaddr;
1: - u32 size;
1: + void *vaddr;
1: + u32 size;
1: };
1:
1: struct orion_child_options {
1: - struct orion_direct_acc direct_access;
1: + struct orion_direct_acc direct_access;
1: };
1:
1: struct orion_spi {
1: - struct spi_controller *master;
1: - void *base;
1: - struct clk *clk;
1: - struct clk *axi_clk;
1: - const struct orion_spi_dev *devdata;
1: - struct orion_child_options child[8];
1: + struct spi_controller *master;
1: + void *base;
1: + struct clk *clk;
1: + struct clk *axi_clk;
1: + const struct orion_spi_dev *devdata;
1: + struct orion_child_options child[8];
1: };
1:
1: enum ssp_loopback {
1: - LOOPBACK_DISABLED = 0,
1: - LOOPBACK_ENABLED = 1,
1: + LOOPBACK_DISABLED = 0,
1: + LOOPBACK_ENABLED = 1,
1: };
1:
1: enum ssp_interface {
1: - SSP_INTERFACE_MOTOROLA_SPI = 0,
1: - SSP_INTERFACE_TI_SYNC_SERIAL = 1,
1: - SSP_INTERFACE_NATIONAL_MICROWIRE = 2,
1: - SSP_INTERFACE_UNIDIRECTIONAL = 3,
1: + SSP_INTERFACE_MOTOROLA_SPI = 0,
1: + SSP_INTERFACE_TI_SYNC_SERIAL = 1,
1: + SSP_INTERFACE_NATIONAL_MICROWIRE = 2,
1: + SSP_INTERFACE_UNIDIRECTIONAL = 3,
1: };
1:
1: enum ssp_hierarchy {
1: - SSP_MASTER = 0,
1: - SSP_SLAVE = 1,
1: + SSP_MASTER = 0,
1: + SSP_SLAVE = 1,
1: };
1:
1: struct ssp_clock_params {
1: - u8 cpsdvsr;
1: - u8 scr;
1: + u8 cpsdvsr;
1: + u8 scr;
1: };
1:
1: enum ssp_rx_endian {
1: - SSP_RX_MSB = 0,
1: - SSP_RX_LSB = 1,
1: + SSP_RX_MSB = 0,
1: + SSP_RX_LSB = 1,
1: };
1:
1: enum ssp_tx_endian {
1: - SSP_TX_MSB = 0,
1: - SSP_TX_LSB = 1,
1: + SSP_TX_MSB = 0,
1: + SSP_TX_LSB = 1,
1: };
1:
1: enum ssp_data_size {
1: - SSP_DATA_BITS_4 = 3,
1: - SSP_DATA_BITS_5 = 4,
1: - SSP_DATA_BITS_6 = 5,
1: - SSP_DATA_BITS_7 = 6,
1: - SSP_DATA_BITS_8 = 7,
1: - SSP_DATA_BITS_9 = 8,
1: - SSP_DATA_BITS_10 = 9,
1: - SSP_DATA_BITS_11 = 10,
1: - SSP_DATA_BITS_12 = 11,
1: - SSP_DATA_BITS_13 = 12,
1: - SSP_DATA_BITS_14 = 13,
1: - SSP_DATA_BITS_15 = 14,
1: - SSP_DATA_BITS_16 = 15,
1: - SSP_DATA_BITS_17 = 16,
1: - SSP_DATA_BITS_18 = 17,
1: - SSP_DATA_BITS_19 = 18,
1: - SSP_DATA_BITS_20 = 19,
1: - SSP_DATA_BITS_21 = 20,
1: - SSP_DATA_BITS_22 = 21,
1: - SSP_DATA_BITS_23 = 22,
1: - SSP_DATA_BITS_24 = 23,
1: - SSP_DATA_BITS_25 = 24,
1: - SSP_DATA_BITS_26 = 25,
1: - SSP_DATA_BITS_27 = 26,
1: - SSP_DATA_BITS_28 = 27,
1: - SSP_DATA_BITS_29 = 28,
1: - SSP_DATA_BITS_30 = 29,
1: - SSP_DATA_BITS_31 = 30,
1: - SSP_DATA_BITS_32 = 31,
1: + SSP_DATA_BITS_4 = 3,
1: + SSP_DATA_BITS_5 = 4,
1: + SSP_DATA_BITS_6 = 5,
1: + SSP_DATA_BITS_7 = 6,
1: + SSP_DATA_BITS_8 = 7,
1: + SSP_DATA_BITS_9 = 8,
1: + SSP_DATA_BITS_10 = 9,
1: + SSP_DATA_BITS_11 = 10,
1: + SSP_DATA_BITS_12 = 11,
1: + SSP_DATA_BITS_13 = 12,
1: + SSP_DATA_BITS_14 = 13,
1: + SSP_DATA_BITS_15 = 14,
1: + SSP_DATA_BITS_16 = 15,
1: + SSP_DATA_BITS_17 = 16,
1: + SSP_DATA_BITS_18 = 17,
1: + SSP_DATA_BITS_19 = 18,
1: + SSP_DATA_BITS_20 = 19,
1: + SSP_DATA_BITS_21 = 20,
1: + SSP_DATA_BITS_22 = 21,
1: + SSP_DATA_BITS_23 = 22,
1: + SSP_DATA_BITS_24 = 23,
1: + SSP_DATA_BITS_25 = 24,
1: + SSP_DATA_BITS_26 = 25,
1: + SSP_DATA_BITS_27 = 26,
1: + SSP_DATA_BITS_28 = 27,
1: + SSP_DATA_BITS_29 = 28,
1: + SSP_DATA_BITS_30 = 29,
1: + SSP_DATA_BITS_31 = 30,
1: + SSP_DATA_BITS_32 = 31,
1: };
1:
1: enum ssp_mode {
1: - INTERRUPT_TRANSFER = 0,
1: - POLLING_TRANSFER = 1,
1: - DMA_TRANSFER = 2,
1: + INTERRUPT_TRANSFER = 0,
1: + POLLING_TRANSFER = 1,
1: + DMA_TRANSFER = 2,
1: };
1:
1: enum ssp_rx_level_trig {
1: - SSP_RX_1_OR_MORE_ELEM = 0,
1: - SSP_RX_4_OR_MORE_ELEM = 1,
1: - SSP_RX_8_OR_MORE_ELEM = 2,
1: - SSP_RX_16_OR_MORE_ELEM = 3,
1: - SSP_RX_32_OR_MORE_ELEM = 4,
1: + SSP_RX_1_OR_MORE_ELEM = 0,
1: + SSP_RX_4_OR_MORE_ELEM = 1,
1: + SSP_RX_8_OR_MORE_ELEM = 2,
1: + SSP_RX_16_OR_MORE_ELEM = 3,
1: + SSP_RX_32_OR_MORE_ELEM = 4,
1: };
1:
1: enum ssp_tx_level_trig {
1: - SSP_TX_1_OR_MORE_EMPTY_LOC = 0,
1: - SSP_TX_4_OR_MORE_EMPTY_LOC = 1,
1: - SSP_TX_8_OR_MORE_EMPTY_LOC = 2,
1: - SSP_TX_16_OR_MORE_EMPTY_LOC = 3,
1: - SSP_TX_32_OR_MORE_EMPTY_LOC = 4,
1: + SSP_TX_1_OR_MORE_EMPTY_LOC = 0,
1: + SSP_TX_4_OR_MORE_EMPTY_LOC = 1,
1: + SSP_TX_8_OR_MORE_EMPTY_LOC = 2,
1: + SSP_TX_16_OR_MORE_EMPTY_LOC = 3,
1: + SSP_TX_32_OR_MORE_EMPTY_LOC = 4,
1: };
1:
1: enum ssp_spi_clk_phase {
1: - SSP_CLK_FIRST_EDGE = 0,
1: - SSP_CLK_SECOND_EDGE = 1,
1: + SSP_CLK_FIRST_EDGE = 0,
1: + SSP_CLK_SECOND_EDGE = 1,
1: };
1:
1: enum ssp_spi_clk_pol {
1: - SSP_CLK_POL_IDLE_LOW = 0,
1: - SSP_CLK_POL_IDLE_HIGH = 1,
1: + SSP_CLK_POL_IDLE_LOW = 0,
1: + SSP_CLK_POL_IDLE_HIGH = 1,
1: };
1:
1: enum ssp_microwire_ctrl_len {
1: - SSP_BITS_4 = 3,
1: - SSP_BITS_5 = 4,
1: - SSP_BITS_6 = 5,
1: - SSP_BITS_7 = 6,
1: - SSP_BITS_8 = 7,
1: - SSP_BITS_9 = 8,
1: - SSP_BITS_10 = 9,
1: - SSP_BITS_11 = 10,
1: - SSP_BITS_12 = 11,
1: - SSP_BITS_13 = 12,
1: - SSP_BITS_14 = 13,
1: - SSP_BITS_15 = 14,
1: - SSP_BITS_16 = 15,
1: - SSP_BITS_17 = 16,
1: - SSP_BITS_18 = 17,
1: - SSP_BITS_19 = 18,
1: - SSP_BITS_20 = 19,
1: - SSP_BITS_21 = 20,
1: - SSP_BITS_22 = 21,
1: - SSP_BITS_23 = 22,
1: - SSP_BITS_24 = 23,
1: - SSP_BITS_25 = 24,
1: - SSP_BITS_26 = 25,
1: - SSP_BITS_27 = 26,
1: - SSP_BITS_28 = 27,
1: - SSP_BITS_29 = 28,
1: - SSP_BITS_30 = 29,
1: - SSP_BITS_31 = 30,
1: - SSP_BITS_32 = 31,
1: + SSP_BITS_4 = 3,
1: + SSP_BITS_5 = 4,
1: + SSP_BITS_6 = 5,
1: + SSP_BITS_7 = 6,
1: + SSP_BITS_8 = 7,
1: + SSP_BITS_9 = 8,
1: + SSP_BITS_10 = 9,
1: + SSP_BITS_11 = 10,
1: + SSP_BITS_12 = 11,
1: + SSP_BITS_13 = 12,
1: + SSP_BITS_14 = 13,
1: + SSP_BITS_15 = 14,
1: + SSP_BITS_16 = 15,
1: + SSP_BITS_17 = 16,
1: + SSP_BITS_18 = 17,
1: + SSP_BITS_19 = 18,
1: + SSP_BITS_20 = 19,
1: + SSP_BITS_21 = 20,
1: + SSP_BITS_22 = 21,
1: + SSP_BITS_23 = 22,
1: + SSP_BITS_24 = 23,
1: + SSP_BITS_25 = 24,
1: + SSP_BITS_26 = 25,
1: + SSP_BITS_27 = 26,
1: + SSP_BITS_28 = 27,
1: + SSP_BITS_29 = 28,
1: + SSP_BITS_30 = 29,
1: + SSP_BITS_31 = 30,
1: + SSP_BITS_32 = 31,
1: };
1:
1: enum ssp_microwire_wait_state {
1: - SSP_MWIRE_WAIT_ZERO = 0,
1: - SSP_MWIRE_WAIT_ONE = 1,
1: + SSP_MWIRE_WAIT_ZERO = 0,
1: + SSP_MWIRE_WAIT_ONE = 1,
1: };
1:
1: enum ssp_duplex {
1: - SSP_MICROWIRE_CHANNEL_FULL_DUPLEX = 0,
1: - SSP_MICROWIRE_CHANNEL_HALF_DUPLEX = 1,
1: + SSP_MICROWIRE_CHANNEL_FULL_DUPLEX = 0,
1: + SSP_MICROWIRE_CHANNEL_HALF_DUPLEX = 1,
1: };
1:
1: enum ssp_clkdelay {
1: - SSP_FEEDBACK_CLK_DELAY_NONE = 0,
1: - SSP_FEEDBACK_CLK_DELAY_1T = 1,
1: - SSP_FEEDBACK_CLK_DELAY_2T = 2,
1: - SSP_FEEDBACK_CLK_DELAY_3T = 3,
1: - SSP_FEEDBACK_CLK_DELAY_4T = 4,
1: - SSP_FEEDBACK_CLK_DELAY_5T = 5,
1: - SSP_FEEDBACK_CLK_DELAY_6T = 6,
1: - SSP_FEEDBACK_CLK_DELAY_7T = 7,
1: + SSP_FEEDBACK_CLK_DELAY_NONE = 0,
1: + SSP_FEEDBACK_CLK_DELAY_1T = 1,
1: + SSP_FEEDBACK_CLK_DELAY_2T = 2,
1: + SSP_FEEDBACK_CLK_DELAY_3T = 3,
1: + SSP_FEEDBACK_CLK_DELAY_4T = 4,
1: + SSP_FEEDBACK_CLK_DELAY_5T = 5,
1: + SSP_FEEDBACK_CLK_DELAY_6T = 6,
1: + SSP_FEEDBACK_CLK_DELAY_7T = 7,
1: };
1:
1: enum ssp_chip_select {
1: - SSP_CHIP_SELECT = 0,
1: - SSP_CHIP_DESELECT = 1,
1: + SSP_CHIP_SELECT = 0,
1: + SSP_CHIP_DESELECT = 1,
1: };
1:
1: struct pl022_ssp_controller {
1: - u16 bus_id;
1: - u8 num_chipselect;
1: - u8 enable_dma: 1;
1: - bool (*dma_filter)(struct dma_chan *, void *);
1: - void *dma_rx_param;
1: - void *dma_tx_param;
1: - int autosuspend_delay;
1: - bool rt;
1: - int *chipselects;
1: + u16 bus_id;
1: + u8 num_chipselect;
1: + u8 enable_dma : 1;
1: + bool (*dma_filter)(struct dma_chan *, void *);
1: + void *dma_rx_param;
1: + void *dma_tx_param;
1: + int autosuspend_delay;
1: + bool rt;
1: + int *chipselects;
1: };
1:
1: struct pl022_config_chip {
1: - enum ssp_interface iface;
1: - enum ssp_hierarchy hierarchy;
1: - bool slave_tx_disable;
1: - struct ssp_clock_params clk_freq;
1: - enum ssp_mode com_mode;
1: - enum ssp_rx_level_trig rx_lev_trig;
1: - enum ssp_tx_level_trig tx_lev_trig;
1: - enum ssp_microwire_ctrl_len ctrl_len;
1: - enum ssp_microwire_wait_state wait_state;
1: - enum ssp_duplex duplex;
1: - enum ssp_clkdelay clkdelay;
1: - void (*cs_control)(u32);
1: + enum ssp_interface iface;
1: + enum ssp_hierarchy hierarchy;
1: + bool slave_tx_disable;
1: + struct ssp_clock_params clk_freq;
1: + enum ssp_mode com_mode;
1: + enum ssp_rx_level_trig rx_lev_trig;
1: + enum ssp_tx_level_trig tx_lev_trig;
1: + enum ssp_microwire_ctrl_len ctrl_len;
1: + enum ssp_microwire_wait_state wait_state;
1: + enum ssp_duplex duplex;
1: + enum ssp_clkdelay clkdelay;
1: + void (*cs_control)(u32);
1: };
1:
1: enum ssp_reading {
1: - READING_NULL = 0,
1: - READING_U8 = 1,
1: - READING_U16 = 2,
1: - READING_U32 = 3,
1: + READING_NULL = 0,
1: + READING_U8 = 1,
1: + READING_U16 = 2,
1: + READING_U32 = 3,
1: };
1:
1: enum ssp_writing {
1: - WRITING_NULL = 0,
1: - WRITING_U8 = 1,
1: - WRITING_U16 = 2,
1: - WRITING_U32 = 3,
1: + WRITING_NULL = 0,
1: + WRITING_U8 = 1,
1: + WRITING_U16 = 2,
1: + WRITING_U32 = 3,
1: };
1:
1: struct vendor_data___2 {
1: - int fifodepth;
1: - int max_bpw;
1: - bool unidir;
1: - bool extended_cr;
1: - bool pl023;
1: - bool loopback;
1: - bool internal_cs_ctrl;
1: + int fifodepth;
1: + int max_bpw;
1: + bool unidir;
1: + bool extended_cr;
1: + bool pl023;
1: + bool loopback;
1: + bool internal_cs_ctrl;
1: };
1:
1: struct chip_data;
1:
1: struct pl022 {
1: - struct amba_device *adev;
1: - struct vendor_data___2 *vendor;
1: - resource_size_t phybase;
1: - void *virtbase;
1: - struct clk *clk;
1: - struct spi_controller *master;
1: - struct pl022_ssp_controller *master_info;
1: - struct tasklet_struct pump_transfers;
1: - struct spi_message *cur_msg;
1: - struct spi_transfer *cur_transfer;
1: - struct chip_data *cur_chip;
1: - bool next_msg_cs_active;
1: - void *tx;
1: - void *tx_end;
1: - void *rx;
1: - void *rx_end;
1: - enum ssp_reading read;
1: - enum ssp_writing write;
1: - u32 exp_fifo_level;
1: - enum ssp_rx_level_trig rx_lev_trig;
1: - enum ssp_tx_level_trig tx_lev_trig;
1: - struct dma_chan *dma_rx_channel;
1: - struct dma_chan *dma_tx_channel;
1: - struct sg_table sgt_rx;
1: - struct sg_table sgt_tx;
1: - char *dummypage;
1: - bool dma_running;
1: - int cur_cs;
1: - int *chipselects;
1: + struct amba_device *adev;
1: + struct vendor_data___2 *vendor;
1: + resource_size_t phybase;
1: + void *virtbase;
1: + struct clk *clk;
1: + struct spi_controller *master;
1: + struct pl022_ssp_controller *master_info;
1: + struct tasklet_struct pump_transfers;
1: + struct spi_message *cur_msg;
1: + struct spi_transfer *cur_transfer;
1: + struct chip_data *cur_chip;
1: + bool next_msg_cs_active;
1: + void *tx;
1: + void *tx_end;
1: + void *rx;
1: + void *rx_end;
1: + enum ssp_reading read;
1: + enum ssp_writing write;
1: + u32 exp_fifo_level;
1: + enum ssp_rx_level_trig rx_lev_trig;
1: + enum ssp_tx_level_trig tx_lev_trig;
1: + struct dma_chan *dma_rx_channel;
1: + struct dma_chan *dma_tx_channel;
1: + struct sg_table sgt_rx;
1: + struct sg_table sgt_tx;
1: + char *dummypage;
1: + bool dma_running;
1: + int cur_cs;
1: + int *chipselects;
1: };
1:
1: struct chip_data {
1: - u32 cr0;
1: - u16 cr1;
1: - u16 dmacr;
1: - u16 cpsr;
1: - u8 n_bytes;
1: - bool enable_dma;
1: - enum ssp_reading read;
1: - enum ssp_writing write;
1: - void (*cs_control)(u32);
1: - int xfer_type;
1: + u32 cr0;
1: + u16 cr1;
1: + u16 dmacr;
1: + u16 cpsr;
1: + u8 n_bytes;
1: + bool enable_dma;
1: + enum ssp_reading read;
1: + enum ssp_writing write;
1: + void (*cs_control)(u32);
1: + int xfer_type;
1: };
1:
1: struct spi_qup {
1: - void *base;
1: - struct device *dev;
1: - struct clk *cclk;
1: - struct clk *iclk;
1: - int irq;
1: - spinlock_t lock;
1: - int in_fifo_sz;
1: - int out_fifo_sz;
1: - int in_blk_sz;
1: - int out_blk_sz;
1: - struct spi_transfer *xfer;
1: - struct completion done;
1: - int error;
1: - int w_size;
1: - int n_words;
1: - int tx_bytes;
1: - int rx_bytes;
1: - const u8 *tx_buf;
1: - u8 *rx_buf;
1: - int qup_v1;
1: - int mode;
1: - struct dma_slave_config rx_conf;
1: - struct dma_slave_config tx_conf;
1: + void *base;
1: + struct device *dev;
1: + struct clk *cclk;
1: + struct clk *iclk;
1: + int irq;
1: + spinlock_t lock;
1: + int in_fifo_sz;
1: + int out_fifo_sz;
1: + int in_blk_sz;
1: + int out_blk_sz;
1: + struct spi_transfer *xfer;
1: + struct completion done;
1: + int error;
1: + int w_size;
1: + int n_words;
1: + int tx_bytes;
1: + int rx_bytes;
1: + const u8 *tx_buf;
1: + u8 *rx_buf;
1: + int qup_v1;
1: + int mode;
1: + struct dma_slave_config rx_conf;
1: + struct dma_slave_config tx_conf;
1: };
1:
1: struct rockchip_spi {
1: - struct device *dev;
1: - struct clk *spiclk;
1: - struct clk *apb_pclk;
1: - void *regs;
1: - dma_addr_t dma_addr_rx;
1: - dma_addr_t dma_addr_tx;
1: - const void *tx;
1: - void *rx;
1: - unsigned int tx_left;
1: - unsigned int rx_left;
1: - atomic_t state;
1: - u32 fifo_len;
1: - u32 freq;
1: - u8 n_bytes;
1: - u8 rsd;
1: - bool cs_asserted[2];
1: - bool slave_abort;
1: + struct device *dev;
1: + struct clk *spiclk;
1: + struct clk *apb_pclk;
1: + void *regs;
1: + dma_addr_t dma_addr_rx;
1: + dma_addr_t dma_addr_tx;
1: + const void *tx;
1: + void *rx;
1: + unsigned int tx_left;
1: + unsigned int rx_left;
1: + atomic_t state;
1: + u32 fifo_len;
1: + u32 freq;
1: + u8 n_bytes;
1: + u8 rsd;
1: + bool cs_asserted[2];
1: + bool slave_abort;
1: };
1:
1: struct s3c64xx_spi_csinfo {
1: - u8 fb_delay;
1: - unsigned int line;
1: + u8 fb_delay;
1: + unsigned int line;
1: };
1:
1: struct s3c64xx_spi_info {
1: - int src_clk_nr;
1: - int num_cs;
1: - bool no_cs;
1: - int (*cfg_gpio)();
1: + int src_clk_nr;
1: + int num_cs;
1: + bool no_cs;
1: + int (*cfg_gpio)();
1: };
1:
1: struct s3c64xx_spi_dma_data {
1: - struct dma_chan *ch;
1: - dma_cookie_t cookie;
1: - enum dma_transfer_direction direction;
1: + struct dma_chan *ch;
1: + dma_cookie_t cookie;
1: + enum dma_transfer_direction direction;
1: };
1:
1: struct s3c64xx_spi_port_config {
1: - int fifo_lvl_mask[6];
1: - int rx_lvl_offset;
1: - int tx_st_done;
1: - int quirks;
1: - bool high_speed;
1: - bool clk_from_cmu;
1: - bool clk_ioclk;
1: + int fifo_lvl_mask[6];
1: + int rx_lvl_offset;
1: + int tx_st_done;
1: + int quirks;
1: + bool high_speed;
1: + bool clk_from_cmu;
1: + bool clk_ioclk;
1: };
1:
1: struct s3c64xx_spi_driver_data {
1: - void *regs;
1: - struct clk *clk;
1: - struct clk *src_clk;
1: - struct clk *ioclk;
1: - struct platform_device *pdev;
1: - struct spi_controller *master;
1: - struct s3c64xx_spi_info *cntrlr_info;
1: - spinlock_t lock;
1: - long unsigned int sfr_start;
1: - struct completion xfer_completion;
1: - unsigned int state;
1: - unsigned int cur_mode;
1: - unsigned int cur_bpw;
1: - unsigned int cur_speed;
1: - struct s3c64xx_spi_dma_data rx_dma;
1: - struct s3c64xx_spi_dma_data tx_dma;
1: - struct s3c64xx_spi_port_config *port_conf;
1: - unsigned int port_id;
1: + void *regs;
1: + struct clk *clk;
1: + struct clk *src_clk;
1: + struct clk *ioclk;
1: + struct platform_device *pdev;
1: + struct spi_controller *master;
1: + struct s3c64xx_spi_info *cntrlr_info;
1: + spinlock_t lock;
1: + long unsigned int sfr_start;
1: + struct completion xfer_completion;
1: + unsigned int state;
1: + unsigned int cur_mode;
1: + unsigned int cur_bpw;
1: + unsigned int cur_speed;
1: + struct s3c64xx_spi_dma_data rx_dma;
1: + struct s3c64xx_spi_dma_data tx_dma;
1: + struct s3c64xx_spi_port_config *port_conf;
1: + unsigned int port_id;
1: };
1:
1: struct devprobe2 {
1: - struct net_device * (*probe)(int);
1: - int status;
1: -};
1: -
1: -enum {
1: - NETIF_F_SG_BIT = 0,
1: - NETIF_F_IP_CSUM_BIT = 1,
1: - __UNUSED_NETIF_F_1 = 2,
1: - NETIF_F_HW_CSUM_BIT = 3,
1: - NETIF_F_IPV6_CSUM_BIT = 4,
1: - NETIF_F_HIGHDMA_BIT = 5,
1: - NETIF_F_FRAGLIST_BIT = 6,
1: - NETIF_F_HW_VLAN_CTAG_TX_BIT = 7,
1: - NETIF_F_HW_VLAN_CTAG_RX_BIT = 8,
1: - NETIF_F_HW_VLAN_CTAG_FILTER_BIT = 9,
1: - NETIF_F_VLAN_CHALLENGED_BIT = 10,
1: - NETIF_F_GSO_BIT = 11,
1: - NETIF_F_LLTX_BIT = 12,
1: - NETIF_F_NETNS_LOCAL_BIT = 13,
1: - NETIF_F_GRO_BIT = 14,
1: - NETIF_F_LRO_BIT = 15,
1: - NETIF_F_GSO_SHIFT = 16,
1: - NETIF_F_TSO_BIT = 16,
1: - NETIF_F_GSO_ROBUST_BIT = 17,
1: - NETIF_F_TSO_ECN_BIT = 18,
1: - NETIF_F_TSO_MANGLEID_BIT = 19,
1: - NETIF_F_TSO6_BIT = 20,
1: - NETIF_F_FSO_BIT = 21,
1: - NETIF_F_GSO_GRE_BIT = 22,
1: - NETIF_F_GSO_GRE_CSUM_BIT = 23,
1: - NETIF_F_GSO_IPXIP4_BIT = 24,
1: - NETIF_F_GSO_IPXIP6_BIT = 25,
1: - NETIF_F_GSO_UDP_TUNNEL_BIT = 26,
1: - NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT = 27,
1: - NETIF_F_GSO_PARTIAL_BIT = 28,
1: - NETIF_F_GSO_TUNNEL_REMCSUM_BIT = 29,
1: - NETIF_F_GSO_SCTP_BIT = 30,
1: - NETIF_F_GSO_ESP_BIT = 31,
1: - NETIF_F_GSO_UDP_BIT = 32,
1: - NETIF_F_GSO_UDP_L4_BIT = 33,
1: - NETIF_F_GSO_FRAGLIST_BIT = 34,
1: - NETIF_F_GSO_LAST = 34,
1: - NETIF_F_FCOE_CRC_BIT = 35,
1: - NETIF_F_SCTP_CRC_BIT = 36,
1: - NETIF_F_FCOE_MTU_BIT = 37,
1: - NETIF_F_NTUPLE_BIT = 38,
1: - NETIF_F_RXHASH_BIT = 39,
1: - NETIF_F_RXCSUM_BIT = 40,
1: - NETIF_F_NOCACHE_COPY_BIT = 41,
1: - NETIF_F_LOOPBACK_BIT = 42,
1: - NETIF_F_RXFCS_BIT = 43,
1: - NETIF_F_RXALL_BIT = 44,
1: - NETIF_F_HW_VLAN_STAG_TX_BIT = 45,
1: - NETIF_F_HW_VLAN_STAG_RX_BIT = 46,
1: - NETIF_F_HW_VLAN_STAG_FILTER_BIT = 47,
1: - NETIF_F_HW_L2FW_DOFFLOAD_BIT = 48,
1: - NETIF_F_HW_TC_BIT = 49,
1: - NETIF_F_HW_ESP_BIT = 50,
1: - NETIF_F_HW_ESP_TX_CSUM_BIT = 51,
1: - NETIF_F_RX_UDP_TUNNEL_PORT_BIT = 52,
1: - NETIF_F_HW_TLS_TX_BIT = 53,
1: - NETIF_F_HW_TLS_RX_BIT = 54,
1: - NETIF_F_GRO_HW_BIT = 55,
1: - NETIF_F_HW_TLS_RECORD_BIT = 56,
1: - NETIF_F_GRO_FRAGLIST_BIT = 57,
1: - NETIF_F_HW_MACSEC_BIT = 58,
1: - NETDEV_FEATURE_COUNT = 59,
1: -};
1: -
1: -enum {
1: - SKBTX_HW_TSTAMP = 1,
1: - SKBTX_SW_TSTAMP = 2,
1: - SKBTX_IN_PROGRESS = 4,
1: - SKBTX_DEV_ZEROCOPY = 8,
1: - SKBTX_WIFI_STATUS = 16,
1: - SKBTX_SHARED_FRAG = 32,
1: - SKBTX_SCHED_TSTAMP = 64,
1: + struct net_device *(*probe)(int);
1: + int status;
1: +};
1: +
1: +enum {
1: + NETIF_F_SG_BIT = 0,
1: + NETIF_F_IP_CSUM_BIT = 1,
1: + __UNUSED_NETIF_F_1 = 2,
1: + NETIF_F_HW_CSUM_BIT = 3,
1: + NETIF_F_IPV6_CSUM_BIT = 4,
1: + NETIF_F_HIGHDMA_BIT = 5,
1: + NETIF_F_FRAGLIST_BIT = 6,
1: + NETIF_F_HW_VLAN_CTAG_TX_BIT = 7,
1: + NETIF_F_HW_VLAN_CTAG_RX_BIT = 8,
1: + NETIF_F_HW_VLAN_CTAG_FILTER_BIT = 9,
1: + NETIF_F_VLAN_CHALLENGED_BIT = 10,
1: + NETIF_F_GSO_BIT = 11,
1: + NETIF_F_LLTX_BIT = 12,
1: + NETIF_F_NETNS_LOCAL_BIT = 13,
1: + NETIF_F_GRO_BIT = 14,
1: + NETIF_F_LRO_BIT = 15,
1: + NETIF_F_GSO_SHIFT = 16,
1: + NETIF_F_TSO_BIT = 16,
1: + NETIF_F_GSO_ROBUST_BIT = 17,
1: + NETIF_F_TSO_ECN_BIT = 18,
1: + NETIF_F_TSO_MANGLEID_BIT = 19,
1: + NETIF_F_TSO6_BIT = 20,
1: + NETIF_F_FSO_BIT = 21,
1: + NETIF_F_GSO_GRE_BIT = 22,
1: + NETIF_F_GSO_GRE_CSUM_BIT = 23,
1: + NETIF_F_GSO_IPXIP4_BIT = 24,
1: + NETIF_F_GSO_IPXIP6_BIT = 25,
1: + NETIF_F_GSO_UDP_TUNNEL_BIT = 26,
1: + NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT = 27,
1: + NETIF_F_GSO_PARTIAL_BIT = 28,
1: + NETIF_F_GSO_TUNNEL_REMCSUM_BIT = 29,
1: + NETIF_F_GSO_SCTP_BIT = 30,
1: + NETIF_F_GSO_ESP_BIT = 31,
1: + NETIF_F_GSO_UDP_BIT = 32,
1: + NETIF_F_GSO_UDP_L4_BIT = 33,
1: + NETIF_F_GSO_FRAGLIST_BIT = 34,
1: + NETIF_F_GSO_LAST = 34,
1: + NETIF_F_FCOE_CRC_BIT = 35,
1: + NETIF_F_SCTP_CRC_BIT = 36,
1: + NETIF_F_FCOE_MTU_BIT = 37,
1: + NETIF_F_NTUPLE_BIT = 38,
1: + NETIF_F_RXHASH_BIT = 39,
1: + NETIF_F_RXCSUM_BIT = 40,
1: + NETIF_F_NOCACHE_COPY_BIT = 41,
1: + NETIF_F_LOOPBACK_BIT = 42,
1: + NETIF_F_RXFCS_BIT = 43,
1: + NETIF_F_RXALL_BIT = 44,
1: + NETIF_F_HW_VLAN_STAG_TX_BIT = 45,
1: + NETIF_F_HW_VLAN_STAG_RX_BIT = 46,
1: + NETIF_F_HW_VLAN_STAG_FILTER_BIT = 47,
1: + NETIF_F_HW_L2FW_DOFFLOAD_BIT = 48,
1: + NETIF_F_HW_TC_BIT = 49,
1: + NETIF_F_HW_ESP_BIT = 50,
1: + NETIF_F_HW_ESP_TX_CSUM_BIT = 51,
1: + NETIF_F_RX_UDP_TUNNEL_PORT_BIT = 52,
1: + NETIF_F_HW_TLS_TX_BIT = 53,
1: + NETIF_F_HW_TLS_RX_BIT = 54,
1: + NETIF_F_GRO_HW_BIT = 55,
1: + NETIF_F_HW_TLS_RECORD_BIT = 56,
1: + NETIF_F_GRO_FRAGLIST_BIT = 57,
1: + NETIF_F_HW_MACSEC_BIT = 58,
1: + NETDEV_FEATURE_COUNT = 59,
1: +};
1: +
1: +enum {
1: + SKBTX_HW_TSTAMP = 1,
1: + SKBTX_SW_TSTAMP = 2,
1: + SKBTX_IN_PROGRESS = 4,
1: + SKBTX_DEV_ZEROCOPY = 8,
1: + SKBTX_WIFI_STATUS = 16,
1: + SKBTX_SHARED_FRAG = 32,
1: + SKBTX_SCHED_TSTAMP = 64,
1: };
1:
1: enum netdev_priv_flags {
1: - IFF_802_1Q_VLAN = 1,
1: - IFF_EBRIDGE = 2,
1: - IFF_BONDING = 4,
1: - IFF_ISATAP = 8,
1: - IFF_WAN_HDLC = 16,
1: - IFF_XMIT_DST_RELEASE = 32,
1: - IFF_DONT_BRIDGE = 64,
1: - IFF_DISABLE_NETPOLL = 128,
1: - IFF_MACVLAN_PORT = 256,
1: - IFF_BRIDGE_PORT = 512,
1: - IFF_OVS_DATAPATH = 1024,
1: - IFF_TX_SKB_SHARING = 2048,
1: - IFF_UNICAST_FLT = 4096,
1: - IFF_TEAM_PORT = 8192,
1: - IFF_SUPP_NOFCS = 16384,
1: - IFF_LIVE_ADDR_CHANGE = 32768,
1: - IFF_MACVLAN = 65536,
1: - IFF_XMIT_DST_RELEASE_PERM = 131072,
1: - IFF_L3MDEV_MASTER = 262144,
1: - IFF_NO_QUEUE = 524288,
1: - IFF_OPENVSWITCH = 1048576,
1: - IFF_L3MDEV_SLAVE = 2097152,
1: - IFF_TEAM = 4194304,
1: - IFF_RXFH_CONFIGURED = 8388608,
1: - IFF_PHONY_HEADROOM = 16777216,
1: - IFF_MACSEC = 33554432,
1: - IFF_NO_RX_HANDLER = 67108864,
1: - IFF_FAILOVER = 134217728,
1: - IFF_FAILOVER_SLAVE = 268435456,
1: - IFF_L3MDEV_RX_HANDLER = 536870912,
1: - IFF_LIVE_RENAME_OK = 1073741824,
1: + IFF_802_1Q_VLAN = 1,
1: + IFF_EBRIDGE = 2,
1: + IFF_BONDING = 4,
1: + IFF_ISATAP = 8,
1: + IFF_WAN_HDLC = 16,
1: + IFF_XMIT_DST_RELEASE = 32,
1: + IFF_DONT_BRIDGE = 64,
1: + IFF_DISABLE_NETPOLL = 128,
1: + IFF_MACVLAN_PORT = 256,
1: + IFF_BRIDGE_PORT = 512,
1: + IFF_OVS_DATAPATH = 1024,
1: + IFF_TX_SKB_SHARING = 2048,
1: + IFF_UNICAST_FLT = 4096,
1: + IFF_TEAM_PORT = 8192,
1: + IFF_SUPP_NOFCS = 16384,
1: + IFF_LIVE_ADDR_CHANGE = 32768,
1: + IFF_MACVLAN = 65536,
1: + IFF_XMIT_DST_RELEASE_PERM = 131072,
1: + IFF_L3MDEV_MASTER = 262144,
1: + IFF_NO_QUEUE = 524288,
1: + IFF_OPENVSWITCH = 1048576,
1: + IFF_L3MDEV_SLAVE = 2097152,
1: + IFF_TEAM = 4194304,
1: + IFF_RXFH_CONFIGURED = 8388608,
1: + IFF_PHONY_HEADROOM = 16777216,
1: + IFF_MACSEC = 33554432,
1: + IFF_NO_RX_HANDLER = 67108864,
1: + IFF_FAILOVER = 134217728,
1: + IFF_FAILOVER_SLAVE = 268435456,
1: + IFF_L3MDEV_RX_HANDLER = 536870912,
1: + IFF_LIVE_RENAME_OK = 1073741824,
1: };
1:
1: struct mdio_board_info {
1: - const char *bus_id;
1: - char modalias[32];
1: - int mdio_addr;
1: - const void *platform_data;
1: + const char *bus_id;
1: + char modalias[32];
1: + int mdio_addr;
1: + const void *platform_data;
1: };
1:
1: struct mdio_board_entry {
1: - struct list_head list;
1: - struct mdio_board_info board_info;
1: + struct list_head list;
1: + struct mdio_board_info board_info;
1: };
1:
1: struct mdiobus_devres {
1: - struct mii_bus *mii;
1: + struct mii_bus *mii;
1: };
1:
1: enum netdev_state_t {
1: - __LINK_STATE_START = 0,
1: - __LINK_STATE_PRESENT = 1,
1: - __LINK_STATE_NOCARRIER = 2,
1: - __LINK_STATE_LINKWATCH_PENDING = 3,
1: - __LINK_STATE_DORMANT = 4,
1: - __LINK_STATE_TESTING = 5,
1: + __LINK_STATE_START = 0,
1: + __LINK_STATE_PRESENT = 1,
1: + __LINK_STATE_NOCARRIER = 2,
1: + __LINK_STATE_LINKWATCH_PENDING = 3,
1: + __LINK_STATE_DORMANT = 4,
1: + __LINK_STATE_TESTING = 5,
1: };
1:
1: struct mii_ioctl_data {
1: - __u16 phy_id;
1: - __u16 reg_num;
1: - __u16 val_in;
1: - __u16 val_out;
1: -};
1: -
1: -enum {
1: - ETHTOOL_MSG_KERNEL_NONE = 0,
1: - ETHTOOL_MSG_STRSET_GET_REPLY = 1,
1: - ETHTOOL_MSG_LINKINFO_GET_REPLY = 2,
1: - ETHTOOL_MSG_LINKINFO_NTF = 3,
1: - ETHTOOL_MSG_LINKMODES_GET_REPLY = 4,
1: - ETHTOOL_MSG_LINKMODES_NTF = 5,
1: - ETHTOOL_MSG_LINKSTATE_GET_REPLY = 6,
1: - ETHTOOL_MSG_DEBUG_GET_REPLY = 7,
1: - ETHTOOL_MSG_DEBUG_NTF = 8,
1: - ETHTOOL_MSG_WOL_GET_REPLY = 9,
1: - ETHTOOL_MSG_WOL_NTF = 10,
1: - ETHTOOL_MSG_FEATURES_GET_REPLY = 11,
1: - ETHTOOL_MSG_FEATURES_SET_REPLY = 12,
1: - ETHTOOL_MSG_FEATURES_NTF = 13,
1: - ETHTOOL_MSG_PRIVFLAGS_GET_REPLY = 14,
1: - ETHTOOL_MSG_PRIVFLAGS_NTF = 15,
1: - ETHTOOL_MSG_RINGS_GET_REPLY = 16,
1: - ETHTOOL_MSG_RINGS_NTF = 17,
1: - ETHTOOL_MSG_CHANNELS_GET_REPLY = 18,
1: - ETHTOOL_MSG_CHANNELS_NTF = 19,
1: - ETHTOOL_MSG_COALESCE_GET_REPLY = 20,
1: - ETHTOOL_MSG_COALESCE_NTF = 21,
1: - ETHTOOL_MSG_PAUSE_GET_REPLY = 22,
1: - ETHTOOL_MSG_PAUSE_NTF = 23,
1: - ETHTOOL_MSG_EEE_GET_REPLY = 24,
1: - ETHTOOL_MSG_EEE_NTF = 25,
1: - ETHTOOL_MSG_TSINFO_GET_REPLY = 26,
1: - ETHTOOL_MSG_CABLE_TEST_NTF = 27,
1: - ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 28,
1: - ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 29,
1: - __ETHTOOL_MSG_KERNEL_CNT = 30,
1: - ETHTOOL_MSG_KERNEL_MAX = 29,
1: + __u16 phy_id;
1: + __u16 reg_num;
1: + __u16 val_in;
1: + __u16 val_out;
1: +};
1: +
1: +enum {
1: + ETHTOOL_MSG_KERNEL_NONE = 0,
1: + ETHTOOL_MSG_STRSET_GET_REPLY = 1,
1: + ETHTOOL_MSG_LINKINFO_GET_REPLY = 2,
1: + ETHTOOL_MSG_LINKINFO_NTF = 3,
1: + ETHTOOL_MSG_LINKMODES_GET_REPLY = 4,
1: + ETHTOOL_MSG_LINKMODES_NTF = 5,
1: + ETHTOOL_MSG_LINKSTATE_GET_REPLY = 6,
1: + ETHTOOL_MSG_DEBUG_GET_REPLY = 7,
1: + ETHTOOL_MSG_DEBUG_NTF = 8,
1: + ETHTOOL_MSG_WOL_GET_REPLY = 9,
1: + ETHTOOL_MSG_WOL_NTF = 10,
1: + ETHTOOL_MSG_FEATURES_GET_REPLY = 11,
1: + ETHTOOL_MSG_FEATURES_SET_REPLY = 12,
1: + ETHTOOL_MSG_FEATURES_NTF = 13,
1: + ETHTOOL_MSG_PRIVFLAGS_GET_REPLY = 14,
1: + ETHTOOL_MSG_PRIVFLAGS_NTF = 15,
1: + ETHTOOL_MSG_RINGS_GET_REPLY = 16,
1: + ETHTOOL_MSG_RINGS_NTF = 17,
1: + ETHTOOL_MSG_CHANNELS_GET_REPLY = 18,
1: + ETHTOOL_MSG_CHANNELS_NTF = 19,
1: + ETHTOOL_MSG_COALESCE_GET_REPLY = 20,
1: + ETHTOOL_MSG_COALESCE_NTF = 21,
1: + ETHTOOL_MSG_PAUSE_GET_REPLY = 22,
1: + ETHTOOL_MSG_PAUSE_NTF = 23,
1: + ETHTOOL_MSG_EEE_GET_REPLY = 24,
1: + ETHTOOL_MSG_EEE_NTF = 25,
1: + ETHTOOL_MSG_TSINFO_GET_REPLY = 26,
1: + ETHTOOL_MSG_CABLE_TEST_NTF = 27,
1: + ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 28,
1: + ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 29,
1: + __ETHTOOL_MSG_KERNEL_CNT = 30,
1: + ETHTOOL_MSG_KERNEL_MAX = 29,
1: };
1:
1: struct phy_setting {
1: - u32 speed;
1: - u8 duplex;
1: - u8 bit;
1: + u32 speed;
1: + u8 duplex;
1: + u8 bit;
1: };
1:
1: struct ethtool_phy_ops {
1: - int (*get_sset_count)(struct phy_device *);
1: - int (*get_strings)(struct phy_device *, u8 *);
1: - int (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: - int (*start_cable_test)(struct phy_device *, struct netlink_ext_ack *);
1: - int (*start_cable_test_tdr)(struct phy_device *, struct netlink_ext_ack *, const struct phy_tdr_config *);
1: + int (*get_sset_count)(struct phy_device *);
1: + int (*get_strings)(struct phy_device *, u8 *);
1: + int (*get_stats)(struct phy_device *, struct ethtool_stats *, u64 *);
1: + int (*start_cable_test)(struct phy_device *, struct netlink_ext_ack *);
1: + int (*start_cable_test_tdr)(struct phy_device *, struct netlink_ext_ack *,
1: + const struct phy_tdr_config *);
1: };
1:
1: struct phy_fixup {
1: - struct list_head list;
1: - char bus_id[64];
1: - u32 phy_uid;
1: - u32 phy_uid_mask;
1: - int (*run)(struct phy_device *);
1: + struct list_head list;
1: + char bus_id[64];
1: + u32 phy_uid;
1: + u32 phy_uid_mask;
1: + int (*run)(struct phy_device *);
1: };
1:
1: struct sfp_eeprom_base {
1: - u8 phys_id;
1: - u8 phys_ext_id;
1: - u8 connector;
1: - u8 if_1x_copper_passive: 1;
1: - u8 if_1x_copper_active: 1;
1: - u8 if_1x_lx: 1;
1: - u8 if_1x_sx: 1;
1: - u8 e10g_base_sr: 1;
1: - u8 e10g_base_lr: 1;
1: - u8 e10g_base_lrm: 1;
1: - u8 e10g_base_er: 1;
1: - u8 sonet_oc3_short_reach: 1;
1: - u8 sonet_oc3_smf_intermediate_reach: 1;
1: - u8 sonet_oc3_smf_long_reach: 1;
1: - u8 unallocated_5_3: 1;
1: - u8 sonet_oc12_short_reach: 1;
1: - u8 sonet_oc12_smf_intermediate_reach: 1;
1: - u8 sonet_oc12_smf_long_reach: 1;
1: - u8 unallocated_5_7: 1;
1: - u8 sonet_oc48_short_reach: 1;
1: - u8 sonet_oc48_intermediate_reach: 1;
1: - u8 sonet_oc48_long_reach: 1;
1: - u8 sonet_reach_bit2: 1;
1: - u8 sonet_reach_bit1: 1;
1: - u8 sonet_oc192_short_reach: 1;
1: - u8 escon_smf_1310_laser: 1;
1: - u8 escon_mmf_1310_led: 1;
1: - u8 e1000_base_sx: 1;
1: - u8 e1000_base_lx: 1;
1: - u8 e1000_base_cx: 1;
1: - u8 e1000_base_t: 1;
1: - u8 e100_base_lx: 1;
1: - u8 e100_base_fx: 1;
1: - u8 e_base_bx10: 1;
1: - u8 e_base_px: 1;
1: - u8 fc_tech_electrical_inter_enclosure: 1;
1: - u8 fc_tech_lc: 1;
1: - u8 fc_tech_sa: 1;
1: - u8 fc_ll_m: 1;
1: - u8 fc_ll_l: 1;
1: - u8 fc_ll_i: 1;
1: - u8 fc_ll_s: 1;
1: - u8 fc_ll_v: 1;
1: - u8 unallocated_8_0: 1;
1: - u8 unallocated_8_1: 1;
1: - u8 sfp_ct_passive: 1;
1: - u8 sfp_ct_active: 1;
1: - u8 fc_tech_ll: 1;
1: - u8 fc_tech_sl: 1;
1: - u8 fc_tech_sn: 1;
1: - u8 fc_tech_electrical_intra_enclosure: 1;
1: - u8 fc_media_sm: 1;
1: - u8 unallocated_9_1: 1;
1: - u8 fc_media_m5: 1;
1: - u8 fc_media_m6: 1;
1: - u8 fc_media_tv: 1;
1: - u8 fc_media_mi: 1;
1: - u8 fc_media_tp: 1;
1: - u8 fc_media_tw: 1;
1: - u8 fc_speed_100: 1;
1: - u8 unallocated_10_1: 1;
1: - u8 fc_speed_200: 1;
1: - u8 fc_speed_3200: 1;
1: - u8 fc_speed_400: 1;
1: - u8 fc_speed_1600: 1;
1: - u8 fc_speed_800: 1;
1: - u8 fc_speed_1200: 1;
1: - u8 encoding;
1: - u8 br_nominal;
1: - u8 rate_id;
1: - u8 link_len[6];
1: - char vendor_name[16];
1: - u8 extended_cc;
1: - char vendor_oui[3];
1: - char vendor_pn[16];
1: - char vendor_rev[4];
1: - union {
1: - __be16 optical_wavelength;
1: - __be16 cable_compliance;
1: - struct {
1: - u8 sff8431_app_e: 1;
1: - u8 fc_pi_4_app_h: 1;
1: - u8 reserved60_2: 6;
1: - u8 reserved61: 8;
1: - } passive;
1: - struct {
1: - u8 sff8431_app_e: 1;
1: - u8 fc_pi_4_app_h: 1;
1: - u8 sff8431_lim: 1;
1: - u8 fc_pi_4_lim: 1;
1: - u8 reserved60_4: 4;
1: - u8 reserved61: 8;
1: - } active;
1: - };
1: - u8 reserved62;
1: - u8 cc_base;
1: + u8 phys_id;
1: + u8 phys_ext_id;
1: + u8 connector;
1: + u8 if_1x_copper_passive : 1;
1: + u8 if_1x_copper_active : 1;
1: + u8 if_1x_lx : 1;
1: + u8 if_1x_sx : 1;
1: + u8 e10g_base_sr : 1;
1: + u8 e10g_base_lr : 1;
1: + u8 e10g_base_lrm : 1;
1: + u8 e10g_base_er : 1;
1: + u8 sonet_oc3_short_reach : 1;
1: + u8 sonet_oc3_smf_intermediate_reach : 1;
1: + u8 sonet_oc3_smf_long_reach : 1;
1: + u8 unallocated_5_3 : 1;
1: + u8 sonet_oc12_short_reach : 1;
1: + u8 sonet_oc12_smf_intermediate_reach : 1;
1: + u8 sonet_oc12_smf_long_reach : 1;
1: + u8 unallocated_5_7 : 1;
1: + u8 sonet_oc48_short_reach : 1;
1: + u8 sonet_oc48_intermediate_reach : 1;
1: + u8 sonet_oc48_long_reach : 1;
1: + u8 sonet_reach_bit2 : 1;
1: + u8 sonet_reach_bit1 : 1;
1: + u8 sonet_oc192_short_reach : 1;
1: + u8 escon_smf_1310_laser : 1;
1: + u8 escon_mmf_1310_led : 1;
1: + u8 e1000_base_sx : 1;
1: + u8 e1000_base_lx : 1;
1: + u8 e1000_base_cx : 1;
1: + u8 e1000_base_t : 1;
1: + u8 e100_base_lx : 1;
1: + u8 e100_base_fx : 1;
1: + u8 e_base_bx10 : 1;
1: + u8 e_base_px : 1;
1: + u8 fc_tech_electrical_inter_enclosure : 1;
1: + u8 fc_tech_lc : 1;
1: + u8 fc_tech_sa : 1;
1: + u8 fc_ll_m : 1;
1: + u8 fc_ll_l : 1;
1: + u8 fc_ll_i : 1;
1: + u8 fc_ll_s : 1;
1: + u8 fc_ll_v : 1;
1: + u8 unallocated_8_0 : 1;
1: + u8 unallocated_8_1 : 1;
1: + u8 sfp_ct_passive : 1;
1: + u8 sfp_ct_active : 1;
1: + u8 fc_tech_ll : 1;
1: + u8 fc_tech_sl : 1;
1: + u8 fc_tech_sn : 1;
1: + u8 fc_tech_electrical_intra_enclosure : 1;
1: + u8 fc_media_sm : 1;
1: + u8 unallocated_9_1 : 1;
1: + u8 fc_media_m5 : 1;
1: + u8 fc_media_m6 : 1;
1: + u8 fc_media_tv : 1;
1: + u8 fc_media_mi : 1;
1: + u8 fc_media_tp : 1;
1: + u8 fc_media_tw : 1;
1: + u8 fc_speed_100 : 1;
1: + u8 unallocated_10_1 : 1;
1: + u8 fc_speed_200 : 1;
1: + u8 fc_speed_3200 : 1;
1: + u8 fc_speed_400 : 1;
1: + u8 fc_speed_1600 : 1;
1: + u8 fc_speed_800 : 1;
1: + u8 fc_speed_1200 : 1;
1: + u8 encoding;
1: + u8 br_nominal;
1: + u8 rate_id;
1: + u8 link_len[6];
1: + char vendor_name[16];
1: + u8 extended_cc;
1: + char vendor_oui[3];
1: + char vendor_pn[16];
1: + char vendor_rev[4];
1: + union {
1: + __be16 optical_wavelength;
1: + __be16 cable_compliance;
1: + struct {
1: + u8 sff8431_app_e : 1;
1: + u8 fc_pi_4_app_h : 1;
1: + u8 reserved60_2 : 6;
1: + u8 reserved61 : 8;
1: + } passive;
1: + struct {
1: + u8 sff8431_app_e : 1;
1: + u8 fc_pi_4_app_h : 1;
1: + u8 sff8431_lim : 1;
1: + u8 fc_pi_4_lim : 1;
1: + u8 reserved60_4 : 4;
1: + u8 reserved61 : 8;
1: + } active;
1: + };
1: + u8 reserved62;
1: + u8 cc_base;
1: };
1:
1: struct sfp_eeprom_ext {
1: - __be16 options;
1: - u8 br_max;
1: - u8 br_min;
1: - char vendor_sn[16];
1: - char datecode[8];
1: - u8 diagmon;
1: - u8 enhopts;
1: - u8 sff8472_compliance;
1: - u8 cc_ext;
1: + __be16 options;
1: + u8 br_max;
1: + u8 br_min;
1: + char vendor_sn[16];
1: + char datecode[8];
1: + u8 diagmon;
1: + u8 enhopts;
1: + u8 sff8472_compliance;
1: + u8 cc_ext;
1: };
1:
1: struct sfp_eeprom_id {
1: - struct sfp_eeprom_base base;
1: - struct sfp_eeprom_ext ext;
1: + struct sfp_eeprom_base base;
1: + struct sfp_eeprom_ext ext;
1: };
1:
1: struct sfp_upstream_ops {
1: - void (*attach)(void *, struct sfp_bus *);
1: - void (*detach)(void *, struct sfp_bus *);
1: - int (*module_insert)(void *, const struct sfp_eeprom_id *);
1: - void (*module_remove)(void *);
1: - int (*module_start)(void *);
1: - void (*module_stop)(void *);
1: - void (*link_down)(void *);
1: - void (*link_up)(void *);
1: - int (*connect_phy)(void *, struct phy_device *);
1: - void (*disconnect_phy)(void *);
1: + void (*attach)(void *, struct sfp_bus *);
1: + void (*detach)(void *, struct sfp_bus *);
1: + int (*module_insert)(void *, const struct sfp_eeprom_id *);
1: + void (*module_remove)(void *);
1: + int (*module_start)(void *);
1: + void (*module_stop)(void *);
1: + void (*link_down)(void *);
1: + void (*link_up)(void *);
1: + int (*connect_phy)(void *, struct phy_device *);
1: + void (*disconnect_phy)(void *);
1: };
1:
1: struct trace_event_raw_mdio_access {
1: - struct trace_entry ent;
1: - char busid[61];
1: - char read;
1: - u8 addr;
1: - u16 val;
1: - unsigned int regnum;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char busid[61];
1: + char read;
1: + u8 addr;
1: + u16 val;
1: + unsigned int regnum;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mdio_access {};
1:
1: -typedef void (*btf_trace_mdio_access)(void *, struct mii_bus *, char, u8, unsigned int, u16, int);
1: +typedef void (*btf_trace_mdio_access)(void *, struct mii_bus *, char, u8,
1: + unsigned int, u16, int);
1:
1: struct mdio_bus_stat_attr {
1: - int addr;
1: - unsigned int field_offset;
1: + int addr;
1: + unsigned int field_offset;
1: };
1:
1: struct mdio_driver {
1: - struct mdio_driver_common mdiodrv;
1: - int (*probe)(struct mdio_device *);
1: - void (*remove)(struct mdio_device *);
1: + struct mdio_driver_common mdiodrv;
1: + int (*probe)(struct mdio_device *);
1: + void (*remove)(struct mdio_device *);
1: };
1:
1: struct fixed_phy_status {
1: - int link;
1: - int speed;
1: - int duplex;
1: - int pause;
1: - int asym_pause;
1: + int link;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + int asym_pause;
1: };
1:
1: struct swmii_regs {
1: - u16 bmsr;
1: - u16 lpa;
1: - u16 lpagb;
1: - u16 estat;
1: + u16 bmsr;
1: + u16 lpa;
1: + u16 lpagb;
1: + u16 estat;
1: };
1:
1: enum {
1: - SWMII_SPEED_10 = 0,
1: - SWMII_SPEED_100 = 1,
1: - SWMII_SPEED_1000 = 2,
1: - SWMII_DUPLEX_HALF = 0,
1: - SWMII_DUPLEX_FULL = 1,
1: + SWMII_SPEED_10 = 0,
1: + SWMII_SPEED_100 = 1,
1: + SWMII_SPEED_1000 = 2,
1: + SWMII_DUPLEX_HALF = 0,
1: + SWMII_DUPLEX_FULL = 1,
1: };
1:
1: struct sfp;
1: @@ -87494,195 +88580,195 @@ struct sfp_socket_ops;
1: struct sfp_quirk;
1:
1: struct sfp_bus {
1: - struct kref kref;
1: - struct list_head node;
1: - struct fwnode_handle *fwnode;
1: - const struct sfp_socket_ops *socket_ops;
1: - struct device *sfp_dev;
1: - struct sfp *sfp;
1: - const struct sfp_quirk *sfp_quirk;
1: - const struct sfp_upstream_ops *upstream_ops;
1: - void *upstream;
1: - struct phy_device *phydev;
1: - bool registered;
1: - bool started;
1: -};
1: -
1: -enum {
1: - SFF8024_ID_UNK = 0,
1: - SFF8024_ID_SFF_8472 = 2,
1: - SFF8024_ID_SFP = 3,
1: - SFF8024_ID_DWDM_SFP = 11,
1: - SFF8024_ID_QSFP_8438 = 12,
1: - SFF8024_ID_QSFP_8436_8636 = 13,
1: - SFF8024_ID_QSFP28_8636 = 17,
1: - SFF8024_ENCODING_UNSPEC = 0,
1: - SFF8024_ENCODING_8B10B = 1,
1: - SFF8024_ENCODING_4B5B = 2,
1: - SFF8024_ENCODING_NRZ = 3,
1: - SFF8024_ENCODING_8472_MANCHESTER = 4,
1: - SFF8024_ENCODING_8472_SONET = 5,
1: - SFF8024_ENCODING_8472_64B66B = 6,
1: - SFF8024_ENCODING_8436_MANCHESTER = 6,
1: - SFF8024_ENCODING_8436_SONET = 4,
1: - SFF8024_ENCODING_8436_64B66B = 5,
1: - SFF8024_ENCODING_256B257B = 7,
1: - SFF8024_ENCODING_PAM4 = 8,
1: - SFF8024_CONNECTOR_UNSPEC = 0,
1: - SFF8024_CONNECTOR_SC = 1,
1: - SFF8024_CONNECTOR_FIBERJACK = 6,
1: - SFF8024_CONNECTOR_LC = 7,
1: - SFF8024_CONNECTOR_MT_RJ = 8,
1: - SFF8024_CONNECTOR_MU = 9,
1: - SFF8024_CONNECTOR_SG = 10,
1: - SFF8024_CONNECTOR_OPTICAL_PIGTAIL = 11,
1: - SFF8024_CONNECTOR_MPO_1X12 = 12,
1: - SFF8024_CONNECTOR_MPO_2X16 = 13,
1: - SFF8024_CONNECTOR_HSSDC_II = 32,
1: - SFF8024_CONNECTOR_COPPER_PIGTAIL = 33,
1: - SFF8024_CONNECTOR_RJ45 = 34,
1: - SFF8024_CONNECTOR_NOSEPARATE = 35,
1: - SFF8024_CONNECTOR_MXC_2X16 = 36,
1: - SFF8024_ECC_UNSPEC = 0,
1: - SFF8024_ECC_100G_25GAUI_C2M_AOC = 1,
1: - SFF8024_ECC_100GBASE_SR4_25GBASE_SR = 2,
1: - SFF8024_ECC_100GBASE_LR4_25GBASE_LR = 3,
1: - SFF8024_ECC_100GBASE_ER4_25GBASE_ER = 4,
1: - SFF8024_ECC_100GBASE_SR10 = 5,
1: - SFF8024_ECC_100GBASE_CR4 = 11,
1: - SFF8024_ECC_25GBASE_CR_S = 12,
1: - SFF8024_ECC_25GBASE_CR_N = 13,
1: - SFF8024_ECC_10GBASE_T_SFI = 22,
1: - SFF8024_ECC_10GBASE_T_SR = 28,
1: - SFF8024_ECC_5GBASE_T = 29,
1: - SFF8024_ECC_2_5GBASE_T = 30,
1: + struct kref kref;
1: + struct list_head node;
1: + struct fwnode_handle *fwnode;
1: + const struct sfp_socket_ops *socket_ops;
1: + struct device *sfp_dev;
1: + struct sfp *sfp;
1: + const struct sfp_quirk *sfp_quirk;
1: + const struct sfp_upstream_ops *upstream_ops;
1: + void *upstream;
1: + struct phy_device *phydev;
1: + bool registered;
1: + bool started;
1: +};
1: +
1: +enum {
1: + SFF8024_ID_UNK = 0,
1: + SFF8024_ID_SFF_8472 = 2,
1: + SFF8024_ID_SFP = 3,
1: + SFF8024_ID_DWDM_SFP = 11,
1: + SFF8024_ID_QSFP_8438 = 12,
1: + SFF8024_ID_QSFP_8436_8636 = 13,
1: + SFF8024_ID_QSFP28_8636 = 17,
1: + SFF8024_ENCODING_UNSPEC = 0,
1: + SFF8024_ENCODING_8B10B = 1,
1: + SFF8024_ENCODING_4B5B = 2,
1: + SFF8024_ENCODING_NRZ = 3,
1: + SFF8024_ENCODING_8472_MANCHESTER = 4,
1: + SFF8024_ENCODING_8472_SONET = 5,
1: + SFF8024_ENCODING_8472_64B66B = 6,
1: + SFF8024_ENCODING_8436_MANCHESTER = 6,
1: + SFF8024_ENCODING_8436_SONET = 4,
1: + SFF8024_ENCODING_8436_64B66B = 5,
1: + SFF8024_ENCODING_256B257B = 7,
1: + SFF8024_ENCODING_PAM4 = 8,
1: + SFF8024_CONNECTOR_UNSPEC = 0,
1: + SFF8024_CONNECTOR_SC = 1,
1: + SFF8024_CONNECTOR_FIBERJACK = 6,
1: + SFF8024_CONNECTOR_LC = 7,
1: + SFF8024_CONNECTOR_MT_RJ = 8,
1: + SFF8024_CONNECTOR_MU = 9,
1: + SFF8024_CONNECTOR_SG = 10,
1: + SFF8024_CONNECTOR_OPTICAL_PIGTAIL = 11,
1: + SFF8024_CONNECTOR_MPO_1X12 = 12,
1: + SFF8024_CONNECTOR_MPO_2X16 = 13,
1: + SFF8024_CONNECTOR_HSSDC_II = 32,
1: + SFF8024_CONNECTOR_COPPER_PIGTAIL = 33,
1: + SFF8024_CONNECTOR_RJ45 = 34,
1: + SFF8024_CONNECTOR_NOSEPARATE = 35,
1: + SFF8024_CONNECTOR_MXC_2X16 = 36,
1: + SFF8024_ECC_UNSPEC = 0,
1: + SFF8024_ECC_100G_25GAUI_C2M_AOC = 1,
1: + SFF8024_ECC_100GBASE_SR4_25GBASE_SR = 2,
1: + SFF8024_ECC_100GBASE_LR4_25GBASE_LR = 3,
1: + SFF8024_ECC_100GBASE_ER4_25GBASE_ER = 4,
1: + SFF8024_ECC_100GBASE_SR10 = 5,
1: + SFF8024_ECC_100GBASE_CR4 = 11,
1: + SFF8024_ECC_25GBASE_CR_S = 12,
1: + SFF8024_ECC_25GBASE_CR_N = 13,
1: + SFF8024_ECC_10GBASE_T_SFI = 22,
1: + SFF8024_ECC_10GBASE_T_SR = 28,
1: + SFF8024_ECC_5GBASE_T = 29,
1: + SFF8024_ECC_2_5GBASE_T = 30,
1: };
1:
1: struct sfp_socket_ops {
1: - void (*attach)(struct sfp *);
1: - void (*detach)(struct sfp *);
1: - void (*start)(struct sfp *);
1: - void (*stop)(struct sfp *);
1: - int (*module_info)(struct sfp *, struct ethtool_modinfo *);
1: - int (*module_eeprom)(struct sfp *, struct ethtool_eeprom *, u8 *);
1: + void (*attach)(struct sfp *);
1: + void (*detach)(struct sfp *);
1: + void (*start)(struct sfp *);
1: + void (*stop)(struct sfp *);
1: + int (*module_info)(struct sfp *, struct ethtool_modinfo *);
1: + int (*module_eeprom)(struct sfp *, struct ethtool_eeprom *, u8 *);
1: };
1:
1: struct sfp_quirk {
1: - const char *vendor;
1: - const char *part;
1: - void (*modes)(const struct sfp_eeprom_id *, long unsigned int *);
1: + const char *vendor;
1: + const char *part;
1: + void (*modes)(const struct sfp_eeprom_id *, long unsigned int *);
1: };
1:
1: struct mdio_device_id {
1: - __u32 phy_id;
1: - __u32 phy_id_mask;
1: + __u32 phy_id;
1: + __u32 phy_id_mask;
1: };
1:
1: enum {
1: - MDIO_AN_C22 = 65504,
1: + MDIO_AN_C22 = 65504,
1: };
1:
1: struct fixed_mdio_bus {
1: - struct mii_bus *mii_bus;
1: - struct list_head phys;
1: + struct mii_bus *mii_bus;
1: + struct list_head phys;
1: };
1:
1: struct fixed_phy {
1: - int addr;
1: - struct phy_device *phydev;
1: - struct fixed_phy_status status;
1: - bool no_carrier;
1: - int (*link_update)(struct net_device *, struct fixed_phy_status *);
1: - struct list_head node;
1: - struct gpio_desc *link_gpiod;
1: + int addr;
1: + struct phy_device *phydev;
1: + struct fixed_phy_status status;
1: + bool no_carrier;
1: + int (*link_update)(struct net_device *, struct fixed_phy_status *);
1: + struct list_head node;
1: + struct gpio_desc *link_gpiod;
1: };
1:
1: struct mdio_mux_child_bus;
1:
1: struct mdio_mux_parent_bus {
1: - struct mii_bus *mii_bus;
1: - int current_child;
1: - int parent_id;
1: - void *switch_data;
1: - int (*switch_fn)(int, int, void *);
1: - struct mdio_mux_child_bus *children;
1: + struct mii_bus *mii_bus;
1: + int current_child;
1: + int parent_id;
1: + void *switch_data;
1: + int (*switch_fn)(int, int, void *);
1: + struct mdio_mux_child_bus *children;
1: };
1:
1: struct mdio_mux_child_bus {
1: - struct mii_bus *mii_bus;
1: - struct mdio_mux_parent_bus *parent;
1: - struct mdio_mux_child_bus *next;
1: - int bus_number;
1: + struct mii_bus *mii_bus;
1: + struct mdio_mux_parent_bus *parent;
1: + struct mdio_mux_child_bus *next;
1: + int bus_number;
1: };
1:
1: struct mdio_mux_mmioreg_state {
1: - void *mux_handle;
1: - phys_addr_t phys;
1: - unsigned int iosize;
1: - unsigned int mask;
1: + void *mux_handle;
1: + phys_addr_t phys;
1: + unsigned int iosize;
1: + unsigned int mask;
1: };
1:
1: struct flow_dissector {
1: - unsigned int used_keys;
1: - short unsigned int offset[28];
1: + unsigned int used_keys;
1: + short unsigned int offset[28];
1: };
1:
1: struct flow_match {
1: - struct flow_dissector *dissector;
1: - void *mask;
1: - void *key;
1: + struct flow_dissector *dissector;
1: + void *mask;
1: + void *key;
1: };
1:
1: enum flow_action_id {
1: - FLOW_ACTION_ACCEPT = 0,
1: - FLOW_ACTION_DROP = 1,
1: - FLOW_ACTION_TRAP = 2,
1: - FLOW_ACTION_GOTO = 3,
1: - FLOW_ACTION_REDIRECT = 4,
1: - FLOW_ACTION_MIRRED = 5,
1: - FLOW_ACTION_REDIRECT_INGRESS = 6,
1: - FLOW_ACTION_MIRRED_INGRESS = 7,
1: - FLOW_ACTION_VLAN_PUSH = 8,
1: - FLOW_ACTION_VLAN_POP = 9,
1: - FLOW_ACTION_VLAN_MANGLE = 10,
1: - FLOW_ACTION_TUNNEL_ENCAP = 11,
1: - FLOW_ACTION_TUNNEL_DECAP = 12,
1: - FLOW_ACTION_MANGLE = 13,
1: - FLOW_ACTION_ADD = 14,
1: - FLOW_ACTION_CSUM = 15,
1: - FLOW_ACTION_MARK = 16,
1: - FLOW_ACTION_PTYPE = 17,
1: - FLOW_ACTION_PRIORITY = 18,
1: - FLOW_ACTION_WAKE = 19,
1: - FLOW_ACTION_QUEUE = 20,
1: - FLOW_ACTION_SAMPLE = 21,
1: - FLOW_ACTION_POLICE = 22,
1: - FLOW_ACTION_CT = 23,
1: - FLOW_ACTION_CT_METADATA = 24,
1: - FLOW_ACTION_MPLS_PUSH = 25,
1: - FLOW_ACTION_MPLS_POP = 26,
1: - FLOW_ACTION_MPLS_MANGLE = 27,
1: - FLOW_ACTION_GATE = 28,
1: - NUM_FLOW_ACTIONS = 29,
1: + FLOW_ACTION_ACCEPT = 0,
1: + FLOW_ACTION_DROP = 1,
1: + FLOW_ACTION_TRAP = 2,
1: + FLOW_ACTION_GOTO = 3,
1: + FLOW_ACTION_REDIRECT = 4,
1: + FLOW_ACTION_MIRRED = 5,
1: + FLOW_ACTION_REDIRECT_INGRESS = 6,
1: + FLOW_ACTION_MIRRED_INGRESS = 7,
1: + FLOW_ACTION_VLAN_PUSH = 8,
1: + FLOW_ACTION_VLAN_POP = 9,
1: + FLOW_ACTION_VLAN_MANGLE = 10,
1: + FLOW_ACTION_TUNNEL_ENCAP = 11,
1: + FLOW_ACTION_TUNNEL_DECAP = 12,
1: + FLOW_ACTION_MANGLE = 13,
1: + FLOW_ACTION_ADD = 14,
1: + FLOW_ACTION_CSUM = 15,
1: + FLOW_ACTION_MARK = 16,
1: + FLOW_ACTION_PTYPE = 17,
1: + FLOW_ACTION_PRIORITY = 18,
1: + FLOW_ACTION_WAKE = 19,
1: + FLOW_ACTION_QUEUE = 20,
1: + FLOW_ACTION_SAMPLE = 21,
1: + FLOW_ACTION_POLICE = 22,
1: + FLOW_ACTION_CT = 23,
1: + FLOW_ACTION_CT_METADATA = 24,
1: + FLOW_ACTION_MPLS_PUSH = 25,
1: + FLOW_ACTION_MPLS_POP = 26,
1: + FLOW_ACTION_MPLS_MANGLE = 27,
1: + FLOW_ACTION_GATE = 28,
1: + NUM_FLOW_ACTIONS = 29,
1: };
1:
1: enum flow_action_hw_stats {
1: - FLOW_ACTION_HW_STATS_IMMEDIATE = 1,
1: - FLOW_ACTION_HW_STATS_DELAYED = 2,
1: - FLOW_ACTION_HW_STATS_ANY = 3,
1: - FLOW_ACTION_HW_STATS_DISABLED = 4,
1: - FLOW_ACTION_HW_STATS_DONT_CARE = 7,
1: + FLOW_ACTION_HW_STATS_IMMEDIATE = 1,
1: + FLOW_ACTION_HW_STATS_DELAYED = 2,
1: + FLOW_ACTION_HW_STATS_ANY = 3,
1: + FLOW_ACTION_HW_STATS_DISABLED = 4,
1: + FLOW_ACTION_HW_STATS_DONT_CARE = 7,
1: };
1:
1: typedef void (*action_destr)(void *);
1:
1: enum flow_action_mangle_base {
1: - FLOW_ACT_MANGLE_UNSPEC = 0,
1: - FLOW_ACT_MANGLE_HDR_TYPE_ETH = 1,
1: - FLOW_ACT_MANGLE_HDR_TYPE_IP4 = 2,
1: - FLOW_ACT_MANGLE_HDR_TYPE_IP6 = 3,
1: - FLOW_ACT_MANGLE_HDR_TYPE_TCP = 4,
1: - FLOW_ACT_MANGLE_HDR_TYPE_UDP = 5,
1: + FLOW_ACT_MANGLE_UNSPEC = 0,
1: + FLOW_ACT_MANGLE_HDR_TYPE_ETH = 1,
1: + FLOW_ACT_MANGLE_HDR_TYPE_IP4 = 2,
1: + FLOW_ACT_MANGLE_HDR_TYPE_IP6 = 3,
1: + FLOW_ACT_MANGLE_HDR_TYPE_TCP = 4,
1: + FLOW_ACT_MANGLE_HDR_TYPE_UDP = 5,
1: };
1:
1: struct nf_flowtable;
1: @@ -87696,205 +88782,205 @@ struct action_gate_entry;
1: struct flow_action_cookie;
1:
1: struct flow_action_entry {
1: - enum flow_action_id id;
1: - enum flow_action_hw_stats hw_stats;
1: - action_destr destructor;
1: - void *destructor_priv;
1: - union {
1: - u32 chain_index;
1: - struct net_device *dev;
1: - struct {
1: - u16 vid;
1: - __be16 proto;
1: - u8 prio;
1: - } vlan;
1: - struct {
1: - enum flow_action_mangle_base htype;
1: - u32 offset;
1: - u32 mask;
1: - u32 val;
1: - } mangle;
1: - struct ip_tunnel_info *tunnel;
1: - u32 csum_flags;
1: - u32 mark;
1: - u16 ptype;
1: - u32 priority;
1: - struct {
1: - u32 ctx;
1: - u32 index;
1: - u8 vf;
1: - } queue;
1: - struct {
1: - struct psample_group *psample_group;
1: - u32 rate;
1: - u32 trunc_size;
1: - bool truncate;
1: - } sample;
1: - struct {
1: - u32 index;
1: - u32 burst;
1: - u64 rate_bytes_ps;
1: - u32 mtu;
1: - } police;
1: - struct {
1: - int action;
1: - u16 zone;
1: - struct nf_flowtable *flow_table;
1: - } ct;
1: - struct {
1: - long unsigned int cookie;
1: - u32 mark;
1: - u32 labels[4];
1: - } ct_metadata;
1: - struct {
1: - u32 label;
1: - __be16 proto;
1: - u8 tc;
1: - u8 bos;
1: - u8 ttl;
1: - } mpls_push;
1: - struct {
1: - __be16 proto;
1: - } mpls_pop;
1: - struct {
1: - u32 label;
1: - u8 tc;
1: - u8 bos;
1: - u8 ttl;
1: - } mpls_mangle;
1: - struct {
1: - u32 index;
1: - s32 prio;
1: - u64 basetime;
1: - u64 cycletime;
1: - u64 cycletimeext;
1: - u32 num_entries;
1: - struct action_gate_entry *entries;
1: - } gate;
1: - };
1: - struct flow_action_cookie *cookie;
1: + enum flow_action_id id;
1: + enum flow_action_hw_stats hw_stats;
1: + action_destr destructor;
1: + void *destructor_priv;
1: + union {
1: + u32 chain_index;
1: + struct net_device *dev;
1: + struct {
1: + u16 vid;
1: + __be16 proto;
1: + u8 prio;
1: + } vlan;
1: + struct {
1: + enum flow_action_mangle_base htype;
1: + u32 offset;
1: + u32 mask;
1: + u32 val;
1: + } mangle;
1: + struct ip_tunnel_info *tunnel;
1: + u32 csum_flags;
1: + u32 mark;
1: + u16 ptype;
1: + u32 priority;
1: + struct {
1: + u32 ctx;
1: + u32 index;
1: + u8 vf;
1: + } queue;
1: + struct {
1: + struct psample_group *psample_group;
1: + u32 rate;
1: + u32 trunc_size;
1: + bool truncate;
1: + } sample;
1: + struct {
1: + u32 index;
1: + u32 burst;
1: + u64 rate_bytes_ps;
1: + u32 mtu;
1: + } police;
1: + struct {
1: + int action;
1: + u16 zone;
1: + struct nf_flowtable *flow_table;
1: + } ct;
1: + struct {
1: + long unsigned int cookie;
1: + u32 mark;
1: + u32 labels[4];
1: + } ct_metadata;
1: + struct {
1: + u32 label;
1: + __be16 proto;
1: + u8 tc;
1: + u8 bos;
1: + u8 ttl;
1: + } mpls_push;
1: + struct {
1: + __be16 proto;
1: + } mpls_pop;
1: + struct {
1: + u32 label;
1: + u8 tc;
1: + u8 bos;
1: + u8 ttl;
1: + } mpls_mangle;
1: + struct {
1: + u32 index;
1: + s32 prio;
1: + u64 basetime;
1: + u64 cycletime;
1: + u64 cycletimeext;
1: + u32 num_entries;
1: + struct action_gate_entry *entries;
1: + } gate;
1: + };
1: + struct flow_action_cookie *cookie;
1: };
1:
1: struct flow_action {
1: - unsigned int num_entries;
1: - struct flow_action_entry entries[0];
1: + unsigned int num_entries;
1: + struct flow_action_entry entries[0];
1: };
1:
1: struct flow_rule {
1: - struct flow_match match;
1: - struct flow_action action;
1: + struct flow_match match;
1: + struct flow_action action;
1: };
1:
1: struct dsa_chip_data {
1: - struct device *host_dev;
1: - int sw_addr;
1: - struct device *netdev[12];
1: - int eeprom_len;
1: - struct device_node *of_node;
1: - char *port_names[12];
1: - struct device_node *port_dn[12];
1: - s8 rtable[4];
1: + struct device *host_dev;
1: + int sw_addr;
1: + struct device *netdev[12];
1: + int eeprom_len;
1: + struct device_node *of_node;
1: + char *port_names[12];
1: + struct device_node *port_dn[12];
1: + s8 rtable[4];
1: };
1:
1: struct dsa_platform_data {
1: - struct device *netdev;
1: - struct net_device *of_netdev;
1: - int nr_chips;
1: - struct dsa_chip_data *chip;
1: + struct device *netdev;
1: + struct net_device *of_netdev;
1: + int nr_chips;
1: + struct dsa_chip_data *chip;
1: };
1:
1: struct phylink_link_state {
1: - long unsigned int advertising[2];
1: - long unsigned int lp_advertising[2];
1: - phy_interface_t interface;
1: - int speed;
1: - int duplex;
1: - int pause;
1: - unsigned int link: 1;
1: - unsigned int an_enabled: 1;
1: - unsigned int an_complete: 1;
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + phy_interface_t interface;
1: + int speed;
1: + int duplex;
1: + int pause;
1: + unsigned int link : 1;
1: + unsigned int an_enabled : 1;
1: + unsigned int an_complete : 1;
1: };
1:
1: enum phylink_op_type {
1: - PHYLINK_NETDEV = 0,
1: - PHYLINK_DEV = 1,
1: + PHYLINK_NETDEV = 0,
1: + PHYLINK_DEV = 1,
1: };
1:
1: struct phylink_config {
1: - struct device *dev;
1: - enum phylink_op_type type;
1: - bool pcs_poll;
1: - bool poll_fixed_state;
1: - void (*get_fixed_state)(struct phylink_config *, struct phylink_link_state *);
1: + struct device *dev;
1: + enum phylink_op_type type;
1: + bool pcs_poll;
1: + bool poll_fixed_state;
1: + void (*get_fixed_state)(struct phylink_config *, struct phylink_link_state *);
1: };
1:
1: enum devlink_port_type {
1: - DEVLINK_PORT_TYPE_NOTSET = 0,
1: - DEVLINK_PORT_TYPE_AUTO = 1,
1: - DEVLINK_PORT_TYPE_ETH = 2,
1: - DEVLINK_PORT_TYPE_IB = 3,
1: + DEVLINK_PORT_TYPE_NOTSET = 0,
1: + DEVLINK_PORT_TYPE_AUTO = 1,
1: + DEVLINK_PORT_TYPE_ETH = 2,
1: + DEVLINK_PORT_TYPE_IB = 3,
1: };
1:
1: enum devlink_port_flavour {
1: - DEVLINK_PORT_FLAVOUR_PHYSICAL = 0,
1: - DEVLINK_PORT_FLAVOUR_CPU = 1,
1: - DEVLINK_PORT_FLAVOUR_DSA = 2,
1: - DEVLINK_PORT_FLAVOUR_PCI_PF = 3,
1: - DEVLINK_PORT_FLAVOUR_PCI_VF = 4,
1: - DEVLINK_PORT_FLAVOUR_VIRTUAL = 5,
1: - DEVLINK_PORT_FLAVOUR_UNUSED = 6,
1: + DEVLINK_PORT_FLAVOUR_PHYSICAL = 0,
1: + DEVLINK_PORT_FLAVOUR_CPU = 1,
1: + DEVLINK_PORT_FLAVOUR_DSA = 2,
1: + DEVLINK_PORT_FLAVOUR_PCI_PF = 3,
1: + DEVLINK_PORT_FLAVOUR_PCI_VF = 4,
1: + DEVLINK_PORT_FLAVOUR_VIRTUAL = 5,
1: + DEVLINK_PORT_FLAVOUR_UNUSED = 6,
1: };
1:
1: struct devlink_port_phys_attrs {
1: - u32 port_number;
1: - u32 split_subport_number;
1: + u32 port_number;
1: + u32 split_subport_number;
1: };
1:
1: struct devlink_port_pci_pf_attrs {
1: - u32 controller;
1: - u16 pf;
1: - u8 external: 1;
1: + u32 controller;
1: + u16 pf;
1: + u8 external : 1;
1: };
1:
1: struct devlink_port_pci_vf_attrs {
1: - u32 controller;
1: - u16 pf;
1: - u16 vf;
1: - u8 external: 1;
1: + u32 controller;
1: + u16 pf;
1: + u16 vf;
1: + u8 external : 1;
1: };
1:
1: struct devlink_port_attrs {
1: - u8 split: 1;
1: - u8 splittable: 1;
1: - u32 lanes;
1: - enum devlink_port_flavour flavour;
1: - struct netdev_phys_item_id switch_id;
1: - union {
1: - struct devlink_port_phys_attrs phys;
1: - struct devlink_port_pci_pf_attrs pci_pf;
1: - struct devlink_port_pci_vf_attrs pci_vf;
1: - };
1: + u8 split : 1;
1: + u8 splittable : 1;
1: + u32 lanes;
1: + enum devlink_port_flavour flavour;
1: + struct netdev_phys_item_id switch_id;
1: + union {
1: + struct devlink_port_phys_attrs phys;
1: + struct devlink_port_pci_pf_attrs pci_pf;
1: + struct devlink_port_pci_vf_attrs pci_vf;
1: + };
1: };
1:
1: struct devlink;
1:
1: struct devlink_port {
1: - struct list_head list;
1: - struct list_head param_list;
1: - struct list_head region_list;
1: - struct devlink *devlink;
1: - unsigned int index;
1: - bool registered;
1: - spinlock_t type_lock;
1: - enum devlink_port_type type;
1: - enum devlink_port_type desired_type;
1: - void *type_dev;
1: - struct devlink_port_attrs attrs;
1: - u8 attrs_set: 1;
1: - u8 switch_port: 1;
1: - struct delayed_work type_warn_dw;
1: - struct list_head reporter_list;
1: - struct mutex reporters_lock;
1: + struct list_head list;
1: + struct list_head param_list;
1: + struct list_head region_list;
1: + struct devlink *devlink;
1: + unsigned int index;
1: + bool registered;
1: + spinlock_t type_lock;
1: + enum devlink_port_type type;
1: + enum devlink_port_type desired_type;
1: + void *type_dev;
1: + struct devlink_port_attrs attrs;
1: + u8 attrs_set : 1;
1: + u8 switch_port : 1;
1: + struct delayed_work type_warn_dw;
1: + struct list_head reporter_list;
1: + struct mutex reporters_lock;
1: };
1:
1: struct dsa_device_ops;
1: @@ -87908,148 +88994,151 @@ struct dsa_switch;
1: struct dsa_netdevice_ops;
1:
1: struct dsa_port {
1: - union {
1: - struct net_device *master;
1: - struct net_device *slave;
1: - };
1: - const struct dsa_device_ops *tag_ops;
1: - struct dsa_switch_tree *dst;
1: - struct sk_buff * (*rcv)(struct sk_buff *, struct net_device *, struct packet_type *);
1: - bool (*filter)(const struct sk_buff *, struct net_device *);
1: - enum {
1: - DSA_PORT_TYPE_UNUSED = 0,
1: - DSA_PORT_TYPE_CPU = 1,
1: - DSA_PORT_TYPE_DSA = 2,
1: - DSA_PORT_TYPE_USER = 3,
1: - } type;
1: - struct dsa_switch *ds;
1: - unsigned int index;
1: - const char *name;
1: - struct dsa_port *cpu_dp;
1: - const char *mac;
1: - struct device_node *dn;
1: - unsigned int ageing_time;
1: - bool vlan_filtering;
1: - u8 stp_state;
1: - struct net_device *bridge_dev;
1: - struct devlink_port devlink_port;
1: - bool devlink_port_setup;
1: - struct phylink *pl;
1: - struct phylink_config pl_config;
1: - struct list_head list;
1: - void *priv;
1: - const struct ethtool_ops *orig_ethtool_ops;
1: - const struct dsa_netdevice_ops *netdev_ops;
1: - bool setup;
1: + union {
1: + struct net_device *master;
1: + struct net_device *slave;
1: + };
1: + const struct dsa_device_ops *tag_ops;
1: + struct dsa_switch_tree *dst;
1: + struct sk_buff *(*rcv)(struct sk_buff *, struct net_device *,
1: + struct packet_type *);
1: + bool (*filter)(const struct sk_buff *, struct net_device *);
1: + enum {
1: + DSA_PORT_TYPE_UNUSED = 0,
1: + DSA_PORT_TYPE_CPU = 1,
1: + DSA_PORT_TYPE_DSA = 2,
1: + DSA_PORT_TYPE_USER = 3,
1: + } type;
1: + struct dsa_switch *ds;
1: + unsigned int index;
1: + const char *name;
1: + struct dsa_port *cpu_dp;
1: + const char *mac;
1: + struct device_node *dn;
1: + unsigned int ageing_time;
1: + bool vlan_filtering;
1: + u8 stp_state;
1: + struct net_device *bridge_dev;
1: + struct devlink_port devlink_port;
1: + bool devlink_port_setup;
1: + struct phylink *pl;
1: + struct phylink_config pl_config;
1: + struct list_head list;
1: + void *priv;
1: + const struct ethtool_ops *orig_ethtool_ops;
1: + const struct dsa_netdevice_ops *netdev_ops;
1: + bool setup;
1: };
1:
1: struct packet_type {
1: - __be16 type;
1: - bool ignore_outgoing;
1: - struct net_device *dev;
1: - int (*func)(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *);
1: - void (*list_func)(struct list_head *, struct packet_type *, struct net_device *);
1: - bool (*id_match)(struct packet_type *, struct sock *);
1: - void *af_packet_priv;
1: - struct list_head list;
1: + __be16 type;
1: + bool ignore_outgoing;
1: + struct net_device *dev;
1: + int (*func)(struct sk_buff *, struct net_device *, struct packet_type *,
1: + struct net_device *);
1: + void (*list_func)(struct list_head *, struct packet_type *,
1: + struct net_device *);
1: + bool (*id_match)(struct packet_type *, struct sock *);
1: + void *af_packet_priv;
1: + struct list_head list;
1: };
1:
1: struct flow_action_cookie {
1: - u32 cookie_len;
1: - u8 cookie[0];
1: + u32 cookie_len;
1: + u8 cookie[0];
1: };
1:
1: struct flow_stats {
1: - u64 pkts;
1: - u64 bytes;
1: - u64 drops;
1: - u64 lastused;
1: - enum flow_action_hw_stats used_hw_stats;
1: - bool used_hw_stats_valid;
1: + u64 pkts;
1: + u64 bytes;
1: + u64 drops;
1: + u64 lastused;
1: + enum flow_action_hw_stats used_hw_stats;
1: + bool used_hw_stats_valid;
1: };
1:
1: enum flow_cls_command {
1: - FLOW_CLS_REPLACE = 0,
1: - FLOW_CLS_DESTROY = 1,
1: - FLOW_CLS_STATS = 2,
1: - FLOW_CLS_TMPLT_CREATE = 3,
1: - FLOW_CLS_TMPLT_DESTROY = 4,
1: + FLOW_CLS_REPLACE = 0,
1: + FLOW_CLS_DESTROY = 1,
1: + FLOW_CLS_STATS = 2,
1: + FLOW_CLS_TMPLT_CREATE = 3,
1: + FLOW_CLS_TMPLT_DESTROY = 4,
1: };
1:
1: struct flow_cls_common_offload {
1: - u32 chain_index;
1: - __be16 protocol;
1: - u32 prio;
1: - struct netlink_ext_ack *extack;
1: + u32 chain_index;
1: + __be16 protocol;
1: + u32 prio;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct flow_cls_offload {
1: - struct flow_cls_common_offload common;
1: - enum flow_cls_command command;
1: - long unsigned int cookie;
1: - struct flow_rule *rule;
1: - struct flow_stats stats;
1: - u32 classid;
1: + struct flow_cls_common_offload common;
1: + enum flow_cls_command command;
1: + long unsigned int cookie;
1: + struct flow_rule *rule;
1: + struct flow_stats stats;
1: + u32 classid;
1: };
1:
1: enum devlink_sb_pool_type {
1: - DEVLINK_SB_POOL_TYPE_INGRESS = 0,
1: - DEVLINK_SB_POOL_TYPE_EGRESS = 1,
1: + DEVLINK_SB_POOL_TYPE_INGRESS = 0,
1: + DEVLINK_SB_POOL_TYPE_EGRESS = 1,
1: };
1:
1: enum devlink_sb_threshold_type {
1: - DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0,
1: - DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1,
1: + DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0,
1: + DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1,
1: };
1:
1: enum devlink_eswitch_encap_mode {
1: - DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0,
1: - DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 1,
1: + DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0,
1: + DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 1,
1: };
1:
1: enum devlink_param_cmode {
1: - DEVLINK_PARAM_CMODE_RUNTIME = 0,
1: - DEVLINK_PARAM_CMODE_DRIVERINIT = 1,
1: - DEVLINK_PARAM_CMODE_PERMANENT = 2,
1: - __DEVLINK_PARAM_CMODE_MAX = 3,
1: - DEVLINK_PARAM_CMODE_MAX = 2,
1: + DEVLINK_PARAM_CMODE_RUNTIME = 0,
1: + DEVLINK_PARAM_CMODE_DRIVERINIT = 1,
1: + DEVLINK_PARAM_CMODE_PERMANENT = 2,
1: + __DEVLINK_PARAM_CMODE_MAX = 3,
1: + DEVLINK_PARAM_CMODE_MAX = 2,
1: };
1:
1: enum devlink_trap_action {
1: - DEVLINK_TRAP_ACTION_DROP = 0,
1: - DEVLINK_TRAP_ACTION_TRAP = 1,
1: - DEVLINK_TRAP_ACTION_MIRROR = 2,
1: + DEVLINK_TRAP_ACTION_DROP = 0,
1: + DEVLINK_TRAP_ACTION_TRAP = 1,
1: + DEVLINK_TRAP_ACTION_MIRROR = 2,
1: };
1:
1: enum devlink_trap_type {
1: - DEVLINK_TRAP_TYPE_DROP = 0,
1: - DEVLINK_TRAP_TYPE_EXCEPTION = 1,
1: - DEVLINK_TRAP_TYPE_CONTROL = 2,
1: + DEVLINK_TRAP_TYPE_DROP = 0,
1: + DEVLINK_TRAP_TYPE_EXCEPTION = 1,
1: + DEVLINK_TRAP_TYPE_CONTROL = 2,
1: };
1:
1: enum devlink_reload_action {
1: - DEVLINK_RELOAD_ACTION_UNSPEC = 0,
1: - DEVLINK_RELOAD_ACTION_DRIVER_REINIT = 1,
1: - DEVLINK_RELOAD_ACTION_FW_ACTIVATE = 2,
1: - __DEVLINK_RELOAD_ACTION_MAX = 3,
1: - DEVLINK_RELOAD_ACTION_MAX = 2,
1: + DEVLINK_RELOAD_ACTION_UNSPEC = 0,
1: + DEVLINK_RELOAD_ACTION_DRIVER_REINIT = 1,
1: + DEVLINK_RELOAD_ACTION_FW_ACTIVATE = 2,
1: + __DEVLINK_RELOAD_ACTION_MAX = 3,
1: + DEVLINK_RELOAD_ACTION_MAX = 2,
1: };
1:
1: enum devlink_reload_limit {
1: - DEVLINK_RELOAD_LIMIT_UNSPEC = 0,
1: - DEVLINK_RELOAD_LIMIT_NO_RESET = 1,
1: - __DEVLINK_RELOAD_LIMIT_MAX = 2,
1: - DEVLINK_RELOAD_LIMIT_MAX = 1,
1: + DEVLINK_RELOAD_LIMIT_UNSPEC = 0,
1: + DEVLINK_RELOAD_LIMIT_NO_RESET = 1,
1: + __DEVLINK_RELOAD_LIMIT_MAX = 2,
1: + DEVLINK_RELOAD_LIMIT_MAX = 1,
1: };
1:
1: enum devlink_dpipe_field_mapping_type {
1: - DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0,
1: - DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 1,
1: + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0,
1: + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 1,
1: };
1:
1: struct devlink_dev_stats {
1: - u32 reload_stats[6];
1: - u32 remote_reload_stats[6];
1: + u32 reload_stats[6];
1: + u32 remote_reload_stats[6];
1: };
1:
1: struct devlink_dpipe_headers;
1: @@ -88057,38 +89146,38 @@ struct devlink_dpipe_headers;
1: struct devlink_ops;
1:
1: struct devlink {
1: - struct list_head list;
1: - struct list_head port_list;
1: - struct list_head sb_list;
1: - struct list_head dpipe_table_list;
1: - struct list_head resource_list;
1: - struct list_head param_list;
1: - struct list_head region_list;
1: - struct list_head reporter_list;
1: - struct mutex reporters_lock;
1: - struct devlink_dpipe_headers *dpipe_headers;
1: - struct list_head trap_list;
1: - struct list_head trap_group_list;
1: - struct list_head trap_policer_list;
1: - const struct devlink_ops *ops;
1: - struct xarray snapshot_ids;
1: - struct devlink_dev_stats stats;
1: - struct device *dev;
1: - possible_net_t _net;
1: - struct mutex lock;
1: - u8 reload_failed: 1;
1: - u8 reload_enabled: 1;
1: - u8 registered: 1;
1: - long: 61;
1: - long: 64;
1: - char priv[0];
1: + struct list_head list;
1: + struct list_head port_list;
1: + struct list_head sb_list;
1: + struct list_head dpipe_table_list;
1: + struct list_head resource_list;
1: + struct list_head param_list;
1: + struct list_head region_list;
1: + struct list_head reporter_list;
1: + struct mutex reporters_lock;
1: + struct devlink_dpipe_headers *dpipe_headers;
1: + struct list_head trap_list;
1: + struct list_head trap_group_list;
1: + struct list_head trap_policer_list;
1: + const struct devlink_ops *ops;
1: + struct xarray snapshot_ids;
1: + struct devlink_dev_stats stats;
1: + struct device *dev;
1: + possible_net_t _net;
1: + struct mutex lock;
1: + u8 reload_failed : 1;
1: + u8 reload_enabled : 1;
1: + u8 registered : 1;
1: + long : 61;
1: + long : 64;
1: + char priv[0];
1: };
1:
1: struct devlink_dpipe_header;
1:
1: struct devlink_dpipe_headers {
1: - struct devlink_dpipe_header **headers;
1: - unsigned int headers_count;
1: + struct devlink_dpipe_header **headers;
1: + unsigned int headers_count;
1: };
1:
1: struct devlink_sb_pool_info;
1: @@ -88104,235 +89193,265 @@ struct devlink_trap_group;
1: struct devlink_trap_policer;
1:
1: struct devlink_ops {
1: - u32 supported_flash_update_params;
1: - long unsigned int reload_actions;
1: - long unsigned int reload_limits;
1: - int (*reload_down)(struct devlink *, bool, enum devlink_reload_action, enum devlink_reload_limit, struct netlink_ext_ack *);
1: - int (*reload_up)(struct devlink *, enum devlink_reload_action, enum devlink_reload_limit, u32 *, struct netlink_ext_ack *);
1: - int (*port_type_set)(struct devlink_port *, enum devlink_port_type);
1: - int (*port_split)(struct devlink *, unsigned int, unsigned int, struct netlink_ext_ack *);
1: - int (*port_unsplit)(struct devlink *, unsigned int, struct netlink_ext_ack *);
1: - int (*sb_pool_get)(struct devlink *, unsigned int, u16, struct devlink_sb_pool_info *);
1: - int (*sb_pool_set)(struct devlink *, unsigned int, u16, u32, enum devlink_sb_threshold_type, struct netlink_ext_ack *);
1: - int (*sb_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *);
1: - int (*sb_port_pool_set)(struct devlink_port *, unsigned int, u16, u32, struct netlink_ext_ack *);
1: - int (*sb_tc_pool_bind_get)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u16 *, u32 *);
1: - int (*sb_tc_pool_bind_set)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u16, u32, struct netlink_ext_ack *);
1: - int (*sb_occ_snapshot)(struct devlink *, unsigned int);
1: - int (*sb_occ_max_clear)(struct devlink *, unsigned int);
1: - int (*sb_occ_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *, u32 *);
1: - int (*sb_occ_tc_port_bind_get)(struct devlink_port *, unsigned int, u16, enum devlink_sb_pool_type, u32 *, u32 *);
1: - int (*eswitch_mode_get)(struct devlink *, u16 *);
1: - int (*eswitch_mode_set)(struct devlink *, u16, struct netlink_ext_ack *);
1: - int (*eswitch_inline_mode_get)(struct devlink *, u8 *);
1: - int (*eswitch_inline_mode_set)(struct devlink *, u8, struct netlink_ext_ack *);
1: - int (*eswitch_encap_mode_get)(struct devlink *, enum devlink_eswitch_encap_mode *);
1: - int (*eswitch_encap_mode_set)(struct devlink *, enum devlink_eswitch_encap_mode, struct netlink_ext_ack *);
1: - int (*info_get)(struct devlink *, struct devlink_info_req *, struct netlink_ext_ack *);
1: - int (*flash_update)(struct devlink *, struct devlink_flash_update_params *, struct netlink_ext_ack *);
1: - int (*trap_init)(struct devlink *, const struct devlink_trap *, void *);
1: - void (*trap_fini)(struct devlink *, const struct devlink_trap *, void *);
1: - int (*trap_action_set)(struct devlink *, const struct devlink_trap *, enum devlink_trap_action, struct netlink_ext_ack *);
1: - int (*trap_group_init)(struct devlink *, const struct devlink_trap_group *);
1: - int (*trap_group_set)(struct devlink *, const struct devlink_trap_group *, const struct devlink_trap_policer *, struct netlink_ext_ack *);
1: - int (*trap_group_action_set)(struct devlink *, const struct devlink_trap_group *, enum devlink_trap_action, struct netlink_ext_ack *);
1: - int (*trap_policer_init)(struct devlink *, const struct devlink_trap_policer *);
1: - void (*trap_policer_fini)(struct devlink *, const struct devlink_trap_policer *);
1: - int (*trap_policer_set)(struct devlink *, const struct devlink_trap_policer *, u64, u64, struct netlink_ext_ack *);
1: - int (*trap_policer_counter_get)(struct devlink *, const struct devlink_trap_policer *, u64 *);
1: - int (*port_function_hw_addr_get)(struct devlink *, struct devlink_port *, u8 *, int *, struct netlink_ext_ack *);
1: - int (*port_function_hw_addr_set)(struct devlink *, struct devlink_port *, const u8 *, int, struct netlink_ext_ack *);
1: + u32 supported_flash_update_params;
1: + long unsigned int reload_actions;
1: + long unsigned int reload_limits;
1: + int (*reload_down)(struct devlink *, bool, enum devlink_reload_action,
1: + enum devlink_reload_limit, struct netlink_ext_ack *);
1: + int (*reload_up)(struct devlink *, enum devlink_reload_action,
1: + enum devlink_reload_limit, u32 *, struct netlink_ext_ack *);
1: + int (*port_type_set)(struct devlink_port *, enum devlink_port_type);
1: + int (*port_split)(struct devlink *, unsigned int, unsigned int,
1: + struct netlink_ext_ack *);
1: + int (*port_unsplit)(struct devlink *, unsigned int, struct netlink_ext_ack *);
1: + int (*sb_pool_get)(struct devlink *, unsigned int, u16,
1: + struct devlink_sb_pool_info *);
1: + int (*sb_pool_set)(struct devlink *, unsigned int, u16, u32,
1: + enum devlink_sb_threshold_type, struct netlink_ext_ack *);
1: + int (*sb_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *);
1: + int (*sb_port_pool_set)(struct devlink_port *, unsigned int, u16, u32,
1: + struct netlink_ext_ack *);
1: + int (*sb_tc_pool_bind_get)(struct devlink_port *, unsigned int, u16,
1: + enum devlink_sb_pool_type, u16 *, u32 *);
1: + int (*sb_tc_pool_bind_set)(struct devlink_port *, unsigned int, u16,
1: + enum devlink_sb_pool_type, u16, u32,
1: + struct netlink_ext_ack *);
1: + int (*sb_occ_snapshot)(struct devlink *, unsigned int);
1: + int (*sb_occ_max_clear)(struct devlink *, unsigned int);
1: + int (*sb_occ_port_pool_get)(struct devlink_port *, unsigned int, u16, u32 *,
1: + u32 *);
1: + int (*sb_occ_tc_port_bind_get)(struct devlink_port *, unsigned int, u16,
1: + enum devlink_sb_pool_type, u32 *, u32 *);
1: + int (*eswitch_mode_get)(struct devlink *, u16 *);
1: + int (*eswitch_mode_set)(struct devlink *, u16, struct netlink_ext_ack *);
1: + int (*eswitch_inline_mode_get)(struct devlink *, u8 *);
1: + int (*eswitch_inline_mode_set)(struct devlink *, u8,
1: + struct netlink_ext_ack *);
1: + int (*eswitch_encap_mode_get)(struct devlink *,
1: + enum devlink_eswitch_encap_mode *);
1: + int (*eswitch_encap_mode_set)(struct devlink *,
1: + enum devlink_eswitch_encap_mode,
1: + struct netlink_ext_ack *);
1: + int (*info_get)(struct devlink *, struct devlink_info_req *,
1: + struct netlink_ext_ack *);
1: + int (*flash_update)(struct devlink *, struct devlink_flash_update_params *,
1: + struct netlink_ext_ack *);
1: + int (*trap_init)(struct devlink *, const struct devlink_trap *, void *);
1: + void (*trap_fini)(struct devlink *, const struct devlink_trap *, void *);
1: + int (*trap_action_set)(struct devlink *, const struct devlink_trap *,
1: + enum devlink_trap_action, struct netlink_ext_ack *);
1: + int (*trap_group_init)(struct devlink *, const struct devlink_trap_group *);
1: + int (*trap_group_set)(struct devlink *, const struct devlink_trap_group *,
1: + const struct devlink_trap_policer *,
1: + struct netlink_ext_ack *);
1: + int (*trap_group_action_set)(struct devlink *,
1: + const struct devlink_trap_group *,
1: + enum devlink_trap_action,
1: + struct netlink_ext_ack *);
1: + int (*trap_policer_init)(struct devlink *,
1: + const struct devlink_trap_policer *);
1: + void (*trap_policer_fini)(struct devlink *,
1: + const struct devlink_trap_policer *);
1: + int (*trap_policer_set)(struct devlink *, const struct devlink_trap_policer *,
1: + u64, u64, struct netlink_ext_ack *);
1: + int (*trap_policer_counter_get)(struct devlink *,
1: + const struct devlink_trap_policer *, u64 *);
1: + int (*port_function_hw_addr_get)(struct devlink *, struct devlink_port *,
1: + u8 *, int *, struct netlink_ext_ack *);
1: + int (*port_function_hw_addr_set)(struct devlink *, struct devlink_port *,
1: + const u8 *, int, struct netlink_ext_ack *);
1: };
1:
1: struct devlink_sb_pool_info {
1: - enum devlink_sb_pool_type pool_type;
1: - u32 size;
1: - enum devlink_sb_threshold_type threshold_type;
1: - u32 cell_size;
1: + enum devlink_sb_pool_type pool_type;
1: + u32 size;
1: + enum devlink_sb_threshold_type threshold_type;
1: + u32 cell_size;
1: };
1:
1: struct devlink_dpipe_field {
1: - const char *name;
1: - unsigned int id;
1: - unsigned int bitwidth;
1: - enum devlink_dpipe_field_mapping_type mapping_type;
1: + const char *name;
1: + unsigned int id;
1: + unsigned int bitwidth;
1: + enum devlink_dpipe_field_mapping_type mapping_type;
1: };
1:
1: struct devlink_dpipe_header {
1: - const char *name;
1: - unsigned int id;
1: - struct devlink_dpipe_field *fields;
1: - unsigned int fields_count;
1: - bool global;
1: + const char *name;
1: + unsigned int id;
1: + struct devlink_dpipe_field *fields;
1: + unsigned int fields_count;
1: + bool global;
1: };
1:
1: union devlink_param_value {
1: - u8 vu8;
1: - u16 vu16;
1: - u32 vu32;
1: - char vstr[32];
1: - bool vbool;
1: + u8 vu8;
1: + u16 vu16;
1: + u32 vu32;
1: + char vstr[32];
1: + bool vbool;
1: };
1:
1: struct devlink_param_gset_ctx {
1: - union devlink_param_value val;
1: - enum devlink_param_cmode cmode;
1: + union devlink_param_value val;
1: + enum devlink_param_cmode cmode;
1: };
1:
1: struct devlink_flash_update_params {
1: - const char *file_name;
1: - const char *component;
1: - u32 overwrite_mask;
1: + const char *file_name;
1: + const char *component;
1: + u32 overwrite_mask;
1: };
1:
1: struct devlink_trap_policer {
1: - u32 id;
1: - u64 init_rate;
1: - u64 init_burst;
1: - u64 max_rate;
1: - u64 min_rate;
1: - u64 max_burst;
1: - u64 min_burst;
1: + u32 id;
1: + u64 init_rate;
1: + u64 init_burst;
1: + u64 max_rate;
1: + u64 min_rate;
1: + u64 max_burst;
1: + u64 min_burst;
1: };
1:
1: struct devlink_trap_group {
1: - const char *name;
1: - u16 id;
1: - bool generic;
1: - u32 init_policer_id;
1: + const char *name;
1: + u16 id;
1: + bool generic;
1: + u32 init_policer_id;
1: };
1:
1: struct devlink_trap {
1: - enum devlink_trap_type type;
1: - enum devlink_trap_action init_action;
1: - bool generic;
1: - u16 id;
1: - const char *name;
1: - u16 init_group_id;
1: - u32 metadata_cap;
1: + enum devlink_trap_type type;
1: + enum devlink_trap_action init_action;
1: + bool generic;
1: + u16 id;
1: + const char *name;
1: + u16 init_group_id;
1: + u32 metadata_cap;
1: };
1:
1: struct switchdev_trans {
1: - bool ph_prepare;
1: + bool ph_prepare;
1: };
1:
1: enum switchdev_obj_id {
1: - SWITCHDEV_OBJ_ID_UNDEFINED = 0,
1: - SWITCHDEV_OBJ_ID_PORT_VLAN = 1,
1: - SWITCHDEV_OBJ_ID_PORT_MDB = 2,
1: - SWITCHDEV_OBJ_ID_HOST_MDB = 3,
1: - SWITCHDEV_OBJ_ID_MRP = 4,
1: - SWITCHDEV_OBJ_ID_RING_TEST_MRP = 5,
1: - SWITCHDEV_OBJ_ID_RING_ROLE_MRP = 6,
1: - SWITCHDEV_OBJ_ID_RING_STATE_MRP = 7,
1: - SWITCHDEV_OBJ_ID_IN_TEST_MRP = 8,
1: - SWITCHDEV_OBJ_ID_IN_ROLE_MRP = 9,
1: - SWITCHDEV_OBJ_ID_IN_STATE_MRP = 10,
1: + SWITCHDEV_OBJ_ID_UNDEFINED = 0,
1: + SWITCHDEV_OBJ_ID_PORT_VLAN = 1,
1: + SWITCHDEV_OBJ_ID_PORT_MDB = 2,
1: + SWITCHDEV_OBJ_ID_HOST_MDB = 3,
1: + SWITCHDEV_OBJ_ID_MRP = 4,
1: + SWITCHDEV_OBJ_ID_RING_TEST_MRP = 5,
1: + SWITCHDEV_OBJ_ID_RING_ROLE_MRP = 6,
1: + SWITCHDEV_OBJ_ID_RING_STATE_MRP = 7,
1: + SWITCHDEV_OBJ_ID_IN_TEST_MRP = 8,
1: + SWITCHDEV_OBJ_ID_IN_ROLE_MRP = 9,
1: + SWITCHDEV_OBJ_ID_IN_STATE_MRP = 10,
1: };
1:
1: struct switchdev_obj {
1: - struct net_device *orig_dev;
1: - enum switchdev_obj_id id;
1: - u32 flags;
1: - void *complete_priv;
1: - void (*complete)(struct net_device *, int, void *);
1: + struct net_device *orig_dev;
1: + enum switchdev_obj_id id;
1: + u32 flags;
1: + void *complete_priv;
1: + void (*complete)(struct net_device *, int, void *);
1: };
1:
1: struct switchdev_obj_port_vlan {
1: - struct switchdev_obj obj;
1: - u16 flags;
1: - u16 vid_begin;
1: - u16 vid_end;
1: + struct switchdev_obj obj;
1: + u16 flags;
1: + u16 vid_begin;
1: + u16 vid_end;
1: };
1:
1: struct switchdev_obj_port_mdb {
1: - struct switchdev_obj obj;
1: - unsigned char addr[6];
1: - u16 vid;
1: + struct switchdev_obj obj;
1: + unsigned char addr[6];
1: + u16 vid;
1: };
1:
1: enum dsa_tag_protocol {
1: - DSA_TAG_PROTO_NONE = 0,
1: - DSA_TAG_PROTO_BRCM = 1,
1: - DSA_TAG_PROTO_BRCM_PREPEND = 2,
1: - DSA_TAG_PROTO_DSA = 3,
1: - DSA_TAG_PROTO_EDSA = 4,
1: - DSA_TAG_PROTO_GSWIP = 5,
1: - DSA_TAG_PROTO_KSZ9477 = 6,
1: - DSA_TAG_PROTO_KSZ9893 = 7,
1: - DSA_TAG_PROTO_LAN9303 = 8,
1: - DSA_TAG_PROTO_MTK = 9,
1: - DSA_TAG_PROTO_QCA = 10,
1: - DSA_TAG_PROTO_TRAILER = 11,
1: - DSA_TAG_PROTO_8021Q = 12,
1: - DSA_TAG_PROTO_SJA1105 = 13,
1: - DSA_TAG_PROTO_KSZ8795 = 14,
1: - DSA_TAG_PROTO_OCELOT = 15,
1: - DSA_TAG_PROTO_AR9331 = 16,
1: - DSA_TAG_PROTO_RTL4_A = 17,
1: + DSA_TAG_PROTO_NONE = 0,
1: + DSA_TAG_PROTO_BRCM = 1,
1: + DSA_TAG_PROTO_BRCM_PREPEND = 2,
1: + DSA_TAG_PROTO_DSA = 3,
1: + DSA_TAG_PROTO_EDSA = 4,
1: + DSA_TAG_PROTO_GSWIP = 5,
1: + DSA_TAG_PROTO_KSZ9477 = 6,
1: + DSA_TAG_PROTO_KSZ9893 = 7,
1: + DSA_TAG_PROTO_LAN9303 = 8,
1: + DSA_TAG_PROTO_MTK = 9,
1: + DSA_TAG_PROTO_QCA = 10,
1: + DSA_TAG_PROTO_TRAILER = 11,
1: + DSA_TAG_PROTO_8021Q = 12,
1: + DSA_TAG_PROTO_SJA1105 = 13,
1: + DSA_TAG_PROTO_KSZ8795 = 14,
1: + DSA_TAG_PROTO_OCELOT = 15,
1: + DSA_TAG_PROTO_AR9331 = 16,
1: + DSA_TAG_PROTO_RTL4_A = 17,
1: };
1:
1: struct dsa_device_ops {
1: - struct sk_buff * (*xmit)(struct sk_buff *, struct net_device *);
1: - struct sk_buff * (*rcv)(struct sk_buff *, struct net_device *, struct packet_type *);
1: - void (*flow_dissect)(const struct sk_buff *, __be16 *, int *);
1: - bool (*filter)(const struct sk_buff *, struct net_device *);
1: - unsigned int overhead;
1: - const char *name;
1: - enum dsa_tag_protocol proto;
1: - bool promisc_on_master;
1: - bool tail_tag;
1: + struct sk_buff *(*xmit)(struct sk_buff *, struct net_device *);
1: + struct sk_buff *(*rcv)(struct sk_buff *, struct net_device *,
1: + struct packet_type *);
1: + void (*flow_dissect)(const struct sk_buff *, __be16 *, int *);
1: + bool (*filter)(const struct sk_buff *, struct net_device *);
1: + unsigned int overhead;
1: + const char *name;
1: + enum dsa_tag_protocol proto;
1: + bool promisc_on_master;
1: + bool tail_tag;
1: };
1:
1: struct dsa_netdevice_ops {
1: - int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: + int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: };
1:
1: struct dsa_switch_tree {
1: - struct list_head list;
1: - struct raw_notifier_head nh;
1: - unsigned int index;
1: - struct kref refcount;
1: - bool setup;
1: - struct dsa_platform_data *pd;
1: - struct list_head ports;
1: - struct list_head rtable;
1: + struct list_head list;
1: + struct raw_notifier_head nh;
1: + unsigned int index;
1: + struct kref refcount;
1: + bool setup;
1: + struct dsa_platform_data *pd;
1: + struct list_head ports;
1: + struct list_head rtable;
1: };
1:
1: struct dsa_mall_mirror_tc_entry {
1: - u8 to_local_port;
1: - bool ingress;
1: + u8 to_local_port;
1: + bool ingress;
1: };
1:
1: struct dsa_mall_policer_tc_entry {
1: - u32 burst;
1: - u64 rate_bytes_per_sec;
1: + u32 burst;
1: + u64 rate_bytes_per_sec;
1: };
1:
1: struct dsa_switch_ops;
1:
1: struct dsa_switch {
1: - bool setup;
1: - struct device *dev;
1: - struct dsa_switch_tree *dst;
1: - unsigned int index;
1: - struct notifier_block nb;
1: - void *priv;
1: - struct dsa_chip_data *cd;
1: - const struct dsa_switch_ops *ops;
1: - u32 phys_mii_mask;
1: - struct mii_bus *slave_mii_bus;
1: - unsigned int ageing_time_min;
1: - unsigned int ageing_time_max;
1: - struct devlink *devlink;
1: - unsigned int num_tx_queues;
1: - bool vlan_filtering_is_global;
1: - bool configure_vlan_while_not_filtering;
1: - bool untag_bridge_pvid;
1: - bool vlan_filtering;
1: - bool pcs_poll;
1: - bool mtu_enforcement_ingress;
1: - size_t num_ports;
1: + bool setup;
1: + struct device *dev;
1: + struct dsa_switch_tree *dst;
1: + unsigned int index;
1: + struct notifier_block nb;
1: + void *priv;
1: + struct dsa_chip_data *cd;
1: + const struct dsa_switch_ops *ops;
1: + u32 phys_mii_mask;
1: + struct mii_bus *slave_mii_bus;
1: + unsigned int ageing_time_min;
1: + unsigned int ageing_time_max;
1: + struct devlink *devlink;
1: + unsigned int num_tx_queues;
1: + bool vlan_filtering_is_global;
1: + bool configure_vlan_while_not_filtering;
1: + bool untag_bridge_pvid;
1: + bool vlan_filtering;
1: + bool pcs_poll;
1: + bool mtu_enforcement_ingress;
1: + size_t num_ports;
1: };
1:
1: struct fixed_phy_status___2;
1: @@ -88340,238 +89459,271 @@ struct fixed_phy_status___2;
1: typedef int dsa_fdb_dump_cb_t(const unsigned char *, u16, bool, void *);
1:
1: struct dsa_switch_ops {
1: - enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *, int, enum dsa_tag_protocol);
1: - int (*setup)(struct dsa_switch *);
1: - void (*teardown)(struct dsa_switch *);
1: - u32 (*get_phy_flags)(struct dsa_switch *, int);
1: - int (*phy_read)(struct dsa_switch *, int, int);
1: - int (*phy_write)(struct dsa_switch *, int, int, u16);
1: - void (*adjust_link)(struct dsa_switch *, int, struct phy_device *);
1: - void (*fixed_link_update)(struct dsa_switch *, int, struct fixed_phy_status___2 *);
1: - void (*phylink_validate)(struct dsa_switch *, int, long unsigned int *, struct phylink_link_state *);
1: - int (*phylink_mac_link_state)(struct dsa_switch *, int, struct phylink_link_state *);
1: - void (*phylink_mac_config)(struct dsa_switch *, int, unsigned int, const struct phylink_link_state *);
1: - void (*phylink_mac_an_restart)(struct dsa_switch *, int);
1: - void (*phylink_mac_link_down)(struct dsa_switch *, int, unsigned int, phy_interface_t);
1: - void (*phylink_mac_link_up)(struct dsa_switch *, int, unsigned int, phy_interface_t, struct phy_device *, int, int, bool, bool);
1: - void (*phylink_fixed_state)(struct dsa_switch *, int, struct phylink_link_state *);
1: - void (*get_strings)(struct dsa_switch *, int, u32, uint8_t *);
1: - void (*get_ethtool_stats)(struct dsa_switch *, int, uint64_t *);
1: - int (*get_sset_count)(struct dsa_switch *, int, int);
1: - void (*get_ethtool_phy_stats)(struct dsa_switch *, int, uint64_t *);
1: - void (*get_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: - int (*set_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: - int (*get_ts_info)(struct dsa_switch *, int, struct ethtool_ts_info *);
1: - int (*suspend)(struct dsa_switch *);
1: - int (*resume)(struct dsa_switch *);
1: - int (*port_enable)(struct dsa_switch *, int, struct phy_device *);
1: - void (*port_disable)(struct dsa_switch *, int);
1: - int (*set_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: - int (*get_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: - int (*get_eeprom_len)(struct dsa_switch *);
1: - int (*get_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: - int (*set_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: - int (*get_regs_len)(struct dsa_switch *, int);
1: - void (*get_regs)(struct dsa_switch *, int, struct ethtool_regs *, void *);
1: - int (*set_ageing_time)(struct dsa_switch *, unsigned int);
1: - int (*port_bridge_join)(struct dsa_switch *, int, struct net_device *);
1: - void (*port_bridge_leave)(struct dsa_switch *, int, struct net_device *);
1: - void (*port_stp_state_set)(struct dsa_switch *, int, u8);
1: - void (*port_fast_age)(struct dsa_switch *, int);
1: - int (*port_egress_floods)(struct dsa_switch *, int, bool, bool);
1: - int (*port_vlan_filtering)(struct dsa_switch *, int, bool, struct switchdev_trans *);
1: - int (*port_vlan_prepare)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: - void (*port_vlan_add)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: - int (*port_vlan_del)(struct dsa_switch *, int, const struct switchdev_obj_port_vlan *);
1: - int (*port_fdb_add)(struct dsa_switch *, int, const unsigned char *, u16);
1: - int (*port_fdb_del)(struct dsa_switch *, int, const unsigned char *, u16);
1: - int (*port_fdb_dump)(struct dsa_switch *, int, dsa_fdb_dump_cb_t *, void *);
1: - int (*port_mdb_prepare)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: - void (*port_mdb_add)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: - int (*port_mdb_del)(struct dsa_switch *, int, const struct switchdev_obj_port_mdb *);
1: - int (*get_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *, u32 *);
1: - int (*set_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *);
1: - int (*cls_flower_add)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: - int (*cls_flower_del)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: - int (*cls_flower_stats)(struct dsa_switch *, int, struct flow_cls_offload *, bool);
1: - int (*port_mirror_add)(struct dsa_switch *, int, struct dsa_mall_mirror_tc_entry *, bool);
1: - void (*port_mirror_del)(struct dsa_switch *, int, struct dsa_mall_mirror_tc_entry *);
1: - int (*port_policer_add)(struct dsa_switch *, int, struct dsa_mall_policer_tc_entry *);
1: - void (*port_policer_del)(struct dsa_switch *, int);
1: - int (*port_setup_tc)(struct dsa_switch *, int, enum tc_setup_type, void *);
1: - int (*crosschip_bridge_join)(struct dsa_switch *, int, int, int, struct net_device *);
1: - void (*crosschip_bridge_leave)(struct dsa_switch *, int, int, int, struct net_device *);
1: - int (*port_hwtstamp_get)(struct dsa_switch *, int, struct ifreq *);
1: - int (*port_hwtstamp_set)(struct dsa_switch *, int, struct ifreq *);
1: - bool (*port_txtstamp)(struct dsa_switch *, int, struct sk_buff *, unsigned int);
1: - bool (*port_rxtstamp)(struct dsa_switch *, int, struct sk_buff *, unsigned int);
1: - int (*devlink_param_get)(struct dsa_switch *, u32, struct devlink_param_gset_ctx *);
1: - int (*devlink_param_set)(struct dsa_switch *, u32, struct devlink_param_gset_ctx *);
1: - int (*devlink_info_get)(struct dsa_switch *, struct devlink_info_req *, struct netlink_ext_ack *);
1: - int (*port_change_mtu)(struct dsa_switch *, int, int);
1: - int (*port_max_mtu)(struct dsa_switch *, int);
1: + enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *, int,
1: + enum dsa_tag_protocol);
1: + int (*setup)(struct dsa_switch *);
1: + void (*teardown)(struct dsa_switch *);
1: + u32 (*get_phy_flags)(struct dsa_switch *, int);
1: + int (*phy_read)(struct dsa_switch *, int, int);
1: + int (*phy_write)(struct dsa_switch *, int, int, u16);
1: + void (*adjust_link)(struct dsa_switch *, int, struct phy_device *);
1: + void (*fixed_link_update)(struct dsa_switch *, int,
1: + struct fixed_phy_status___2 *);
1: + void (*phylink_validate)(struct dsa_switch *, int, long unsigned int *,
1: + struct phylink_link_state *);
1: + int (*phylink_mac_link_state)(struct dsa_switch *, int,
1: + struct phylink_link_state *);
1: + void (*phylink_mac_config)(struct dsa_switch *, int, unsigned int,
1: + const struct phylink_link_state *);
1: + void (*phylink_mac_an_restart)(struct dsa_switch *, int);
1: + void (*phylink_mac_link_down)(struct dsa_switch *, int, unsigned int,
1: + phy_interface_t);
1: + void (*phylink_mac_link_up)(struct dsa_switch *, int, unsigned int,
1: + phy_interface_t, struct phy_device *, int, int,
1: + bool, bool);
1: + void (*phylink_fixed_state)(struct dsa_switch *, int,
1: + struct phylink_link_state *);
1: + void (*get_strings)(struct dsa_switch *, int, u32, uint8_t *);
1: + void (*get_ethtool_stats)(struct dsa_switch *, int, uint64_t *);
1: + int (*get_sset_count)(struct dsa_switch *, int, int);
1: + void (*get_ethtool_phy_stats)(struct dsa_switch *, int, uint64_t *);
1: + void (*get_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: + int (*set_wol)(struct dsa_switch *, int, struct ethtool_wolinfo *);
1: + int (*get_ts_info)(struct dsa_switch *, int, struct ethtool_ts_info *);
1: + int (*suspend)(struct dsa_switch *);
1: + int (*resume)(struct dsa_switch *);
1: + int (*port_enable)(struct dsa_switch *, int, struct phy_device *);
1: + void (*port_disable)(struct dsa_switch *, int);
1: + int (*set_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: + int (*get_mac_eee)(struct dsa_switch *, int, struct ethtool_eee *);
1: + int (*get_eeprom_len)(struct dsa_switch *);
1: + int (*get_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: + int (*set_eeprom)(struct dsa_switch *, struct ethtool_eeprom *, u8 *);
1: + int (*get_regs_len)(struct dsa_switch *, int);
1: + void (*get_regs)(struct dsa_switch *, int, struct ethtool_regs *, void *);
1: + int (*set_ageing_time)(struct dsa_switch *, unsigned int);
1: + int (*port_bridge_join)(struct dsa_switch *, int, struct net_device *);
1: + void (*port_bridge_leave)(struct dsa_switch *, int, struct net_device *);
1: + void (*port_stp_state_set)(struct dsa_switch *, int, u8);
1: + void (*port_fast_age)(struct dsa_switch *, int);
1: + int (*port_egress_floods)(struct dsa_switch *, int, bool, bool);
1: + int (*port_vlan_filtering)(struct dsa_switch *, int, bool,
1: + struct switchdev_trans *);
1: + int (*port_vlan_prepare)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_vlan *);
1: + void (*port_vlan_add)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_vlan *);
1: + int (*port_vlan_del)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_vlan *);
1: + int (*port_fdb_add)(struct dsa_switch *, int, const unsigned char *, u16);
1: + int (*port_fdb_del)(struct dsa_switch *, int, const unsigned char *, u16);
1: + int (*port_fdb_dump)(struct dsa_switch *, int, dsa_fdb_dump_cb_t *, void *);
1: + int (*port_mdb_prepare)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_mdb *);
1: + void (*port_mdb_add)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_mdb *);
1: + int (*port_mdb_del)(struct dsa_switch *, int,
1: + const struct switchdev_obj_port_mdb *);
1: + int (*get_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *, u32 *);
1: + int (*set_rxnfc)(struct dsa_switch *, int, struct ethtool_rxnfc *);
1: + int (*cls_flower_add)(struct dsa_switch *, int, struct flow_cls_offload *,
1: + bool);
1: + int (*cls_flower_del)(struct dsa_switch *, int, struct flow_cls_offload *,
1: + bool);
1: + int (*cls_flower_stats)(struct dsa_switch *, int, struct flow_cls_offload *,
1: + bool);
1: + int (*port_mirror_add)(struct dsa_switch *, int,
1: + struct dsa_mall_mirror_tc_entry *, bool);
1: + void (*port_mirror_del)(struct dsa_switch *, int,
1: + struct dsa_mall_mirror_tc_entry *);
1: + int (*port_policer_add)(struct dsa_switch *, int,
1: + struct dsa_mall_policer_tc_entry *);
1: + void (*port_policer_del)(struct dsa_switch *, int);
1: + int (*port_setup_tc)(struct dsa_switch *, int, enum tc_setup_type, void *);
1: + int (*crosschip_bridge_join)(struct dsa_switch *, int, int, int,
1: + struct net_device *);
1: + void (*crosschip_bridge_leave)(struct dsa_switch *, int, int, int,
1: + struct net_device *);
1: + int (*port_hwtstamp_get)(struct dsa_switch *, int, struct ifreq *);
1: + int (*port_hwtstamp_set)(struct dsa_switch *, int, struct ifreq *);
1: + bool (*port_txtstamp)(struct dsa_switch *, int, struct sk_buff *,
1: + unsigned int);
1: + bool (*port_rxtstamp)(struct dsa_switch *, int, struct sk_buff *,
1: + unsigned int);
1: + int (*devlink_param_get)(struct dsa_switch *, u32,
1: + struct devlink_param_gset_ctx *);
1: + int (*devlink_param_set)(struct dsa_switch *, u32,
1: + struct devlink_param_gset_ctx *);
1: + int (*devlink_info_get)(struct dsa_switch *, struct devlink_info_req *,
1: + struct netlink_ext_ack *);
1: + int (*port_change_mtu)(struct dsa_switch *, int, int);
1: + int (*port_max_mtu)(struct dsa_switch *, int);
1: };
1:
1: struct dsa_loop_pdata {
1: - struct dsa_chip_data cd;
1: - const char *name;
1: - unsigned int enabled_ports;
1: - const char *netdev;
1: + struct dsa_chip_data cd;
1: + const char *name;
1: + unsigned int enabled_ports;
1: + const char *netdev;
1: };
1:
1: struct ptp_clock_time {
1: - __s64 sec;
1: - __u32 nsec;
1: - __u32 reserved;
1: + __s64 sec;
1: + __u32 nsec;
1: + __u32 reserved;
1: };
1:
1: struct ptp_extts_request {
1: - unsigned int index;
1: - unsigned int flags;
1: - unsigned int rsv[2];
1: + unsigned int index;
1: + unsigned int flags;
1: + unsigned int rsv[2];
1: };
1:
1: struct ptp_perout_request {
1: - union {
1: - struct ptp_clock_time start;
1: - struct ptp_clock_time phase;
1: - };
1: - struct ptp_clock_time period;
1: - unsigned int index;
1: - unsigned int flags;
1: - union {
1: - struct ptp_clock_time on;
1: - unsigned int rsv[4];
1: - };
1: + union {
1: + struct ptp_clock_time start;
1: + struct ptp_clock_time phase;
1: + };
1: + struct ptp_clock_time period;
1: + unsigned int index;
1: + unsigned int flags;
1: + union {
1: + struct ptp_clock_time on;
1: + unsigned int rsv[4];
1: + };
1: };
1:
1: enum ptp_pin_function {
1: - PTP_PF_NONE = 0,
1: - PTP_PF_EXTTS = 1,
1: - PTP_PF_PEROUT = 2,
1: - PTP_PF_PHYSYNC = 3,
1: + PTP_PF_NONE = 0,
1: + PTP_PF_EXTTS = 1,
1: + PTP_PF_PEROUT = 2,
1: + PTP_PF_PHYSYNC = 3,
1: };
1:
1: struct ptp_pin_desc {
1: - char name[64];
1: - unsigned int index;
1: - unsigned int func;
1: - unsigned int chan;
1: - unsigned int rsv[5];
1: + char name[64];
1: + unsigned int index;
1: + unsigned int func;
1: + unsigned int chan;
1: + unsigned int rsv[5];
1: };
1:
1: struct ptp_clock_request {
1: - enum {
1: - PTP_CLK_REQ_EXTTS = 0,
1: - PTP_CLK_REQ_PEROUT = 1,
1: - PTP_CLK_REQ_PPS = 2,
1: - } type;
1: - union {
1: - struct ptp_extts_request extts;
1: - struct ptp_perout_request perout;
1: - };
1: + enum {
1: + PTP_CLK_REQ_EXTTS = 0,
1: + PTP_CLK_REQ_PEROUT = 1,
1: + PTP_CLK_REQ_PPS = 2,
1: + } type;
1: + union {
1: + struct ptp_extts_request extts;
1: + struct ptp_perout_request perout;
1: + };
1: };
1:
1: struct ptp_clock_info {
1: - struct module *owner;
1: - char name[16];
1: - s32 max_adj;
1: - int n_alarm;
1: - int n_ext_ts;
1: - int n_per_out;
1: - int n_pins;
1: - int pps;
1: - struct ptp_pin_desc *pin_config;
1: - int (*adjfine)(struct ptp_clock_info *, long int);
1: - int (*adjfreq)(struct ptp_clock_info *, s32);
1: - int (*adjphase)(struct ptp_clock_info *, s32);
1: - int (*adjtime)(struct ptp_clock_info *, s64);
1: - int (*gettime64)(struct ptp_clock_info *, struct timespec64 *);
1: - int (*gettimex64)(struct ptp_clock_info *, struct timespec64 *, struct ptp_system_timestamp *);
1: - int (*getcrosststamp)(struct ptp_clock_info *, struct system_device_crosststamp *);
1: - int (*settime64)(struct ptp_clock_info *, const struct timespec64 *);
1: - int (*enable)(struct ptp_clock_info *, struct ptp_clock_request *, int);
1: - int (*verify)(struct ptp_clock_info *, unsigned int, enum ptp_pin_function, unsigned int);
1: - long int (*do_aux_work)(struct ptp_clock_info *);
1: + struct module *owner;
1: + char name[16];
1: + s32 max_adj;
1: + int n_alarm;
1: + int n_ext_ts;
1: + int n_per_out;
1: + int n_pins;
1: + int pps;
1: + struct ptp_pin_desc *pin_config;
1: + int (*adjfine)(struct ptp_clock_info *, long int);
1: + int (*adjfreq)(struct ptp_clock_info *, s32);
1: + int (*adjphase)(struct ptp_clock_info *, s32);
1: + int (*adjtime)(struct ptp_clock_info *, s64);
1: + int (*gettime64)(struct ptp_clock_info *, struct timespec64 *);
1: + int (*gettimex64)(struct ptp_clock_info *, struct timespec64 *,
1: + struct ptp_system_timestamp *);
1: + int (*getcrosststamp)(struct ptp_clock_info *,
1: + struct system_device_crosststamp *);
1: + int (*settime64)(struct ptp_clock_info *, const struct timespec64 *);
1: + int (*enable)(struct ptp_clock_info *, struct ptp_clock_request *, int);
1: + int (*verify)(struct ptp_clock_info *, unsigned int, enum ptp_pin_function,
1: + unsigned int);
1: + long int (*do_aux_work)(struct ptp_clock_info *);
1: };
1:
1: struct ptp_clock;
1:
1: struct cavium_ptp {
1: - struct pci_dev *pdev;
1: - spinlock_t spin_lock;
1: - struct cyclecounter cycle_counter;
1: - struct timecounter time_counter;
1: - void *reg_base;
1: - u32 clock_rate;
1: - struct ptp_clock_info ptp_info;
1: - struct ptp_clock *ptp_clock;
1: + struct pci_dev *pdev;
1: + spinlock_t spin_lock;
1: + struct cyclecounter cycle_counter;
1: + struct timecounter time_counter;
1: + void *reg_base;
1: + u32 clock_rate;
1: + struct ptp_clock_info ptp_info;
1: + struct ptp_clock *ptp_clock;
1: };
1:
1: struct mlxfw_dev_ops;
1:
1: struct mlxfw_dev {
1: - const struct mlxfw_dev_ops *ops;
1: - const char *psid;
1: - u16 psid_size;
1: - struct devlink *devlink;
1: + const struct mlxfw_dev_ops *ops;
1: + const char *psid;
1: + u16 psid_size;
1: + struct devlink *devlink;
1: };
1:
1: enum mlxfw_fsm_state {
1: - MLXFW_FSM_STATE_IDLE = 0,
1: - MLXFW_FSM_STATE_LOCKED = 1,
1: - MLXFW_FSM_STATE_INITIALIZE = 2,
1: - MLXFW_FSM_STATE_DOWNLOAD = 3,
1: - MLXFW_FSM_STATE_VERIFY = 4,
1: - MLXFW_FSM_STATE_APPLY = 5,
1: - MLXFW_FSM_STATE_ACTIVATE = 6,
1: + MLXFW_FSM_STATE_IDLE = 0,
1: + MLXFW_FSM_STATE_LOCKED = 1,
1: + MLXFW_FSM_STATE_INITIALIZE = 2,
1: + MLXFW_FSM_STATE_DOWNLOAD = 3,
1: + MLXFW_FSM_STATE_VERIFY = 4,
1: + MLXFW_FSM_STATE_APPLY = 5,
1: + MLXFW_FSM_STATE_ACTIVATE = 6,
1: };
1:
1: enum mlxfw_fsm_state_err {
1: - MLXFW_FSM_STATE_ERR_OK = 0,
1: - MLXFW_FSM_STATE_ERR_ERROR = 1,
1: - MLXFW_FSM_STATE_ERR_REJECTED_DIGEST_ERR = 2,
1: - MLXFW_FSM_STATE_ERR_REJECTED_NOT_APPLICABLE = 3,
1: - MLXFW_FSM_STATE_ERR_REJECTED_UNKNOWN_KEY = 4,
1: - MLXFW_FSM_STATE_ERR_REJECTED_AUTH_FAILED = 5,
1: - MLXFW_FSM_STATE_ERR_REJECTED_UNSIGNED = 6,
1: - MLXFW_FSM_STATE_ERR_REJECTED_KEY_NOT_APPLICABLE = 7,
1: - MLXFW_FSM_STATE_ERR_REJECTED_BAD_FORMAT = 8,
1: - MLXFW_FSM_STATE_ERR_BLOCKED_PENDING_RESET = 9,
1: - MLXFW_FSM_STATE_ERR_MAX = 10,
1: + MLXFW_FSM_STATE_ERR_OK = 0,
1: + MLXFW_FSM_STATE_ERR_ERROR = 1,
1: + MLXFW_FSM_STATE_ERR_REJECTED_DIGEST_ERR = 2,
1: + MLXFW_FSM_STATE_ERR_REJECTED_NOT_APPLICABLE = 3,
1: + MLXFW_FSM_STATE_ERR_REJECTED_UNKNOWN_KEY = 4,
1: + MLXFW_FSM_STATE_ERR_REJECTED_AUTH_FAILED = 5,
1: + MLXFW_FSM_STATE_ERR_REJECTED_UNSIGNED = 6,
1: + MLXFW_FSM_STATE_ERR_REJECTED_KEY_NOT_APPLICABLE = 7,
1: + MLXFW_FSM_STATE_ERR_REJECTED_BAD_FORMAT = 8,
1: + MLXFW_FSM_STATE_ERR_BLOCKED_PENDING_RESET = 9,
1: + MLXFW_FSM_STATE_ERR_MAX = 10,
1: };
1:
1: struct mlxfw_dev_ops {
1: - int (*component_query)(struct mlxfw_dev *, u16, u32 *, u8 *, u16 *);
1: - int (*fsm_lock)(struct mlxfw_dev *, u32 *);
1: - int (*fsm_component_update)(struct mlxfw_dev *, u32, u16, u32);
1: - int (*fsm_block_download)(struct mlxfw_dev *, u32, u8 *, u16, u32);
1: - int (*fsm_component_verify)(struct mlxfw_dev *, u32, u16);
1: - int (*fsm_activate)(struct mlxfw_dev *, u32);
1: - int (*fsm_reactivate)(struct mlxfw_dev *, u8 *);
1: - int (*fsm_query_state)(struct mlxfw_dev *, u32, enum mlxfw_fsm_state *, enum mlxfw_fsm_state_err *);
1: - void (*fsm_cancel)(struct mlxfw_dev *, u32);
1: - void (*fsm_release)(struct mlxfw_dev *, u32);
1: + int (*component_query)(struct mlxfw_dev *, u16, u32 *, u8 *, u16 *);
1: + int (*fsm_lock)(struct mlxfw_dev *, u32 *);
1: + int (*fsm_component_update)(struct mlxfw_dev *, u32, u16, u32);
1: + int (*fsm_block_download)(struct mlxfw_dev *, u32, u8 *, u16, u32);
1: + int (*fsm_component_verify)(struct mlxfw_dev *, u32, u16);
1: + int (*fsm_activate)(struct mlxfw_dev *, u32);
1: + int (*fsm_reactivate)(struct mlxfw_dev *, u8 *);
1: + int (*fsm_query_state)(struct mlxfw_dev *, u32, enum mlxfw_fsm_state *,
1: + enum mlxfw_fsm_state_err *);
1: + void (*fsm_cancel)(struct mlxfw_dev *, u32);
1: + void (*fsm_release)(struct mlxfw_dev *, u32);
1: };
1:
1: enum mlxfw_fsm_reactivate_status {
1: - MLXFW_FSM_REACTIVATE_STATUS_OK = 0,
1: - MLXFW_FSM_REACTIVATE_STATUS_BUSY = 1,
1: - MLXFW_FSM_REACTIVATE_STATUS_PROHIBITED_FW_VER_ERR = 2,
1: - MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_COPY_FAILED = 3,
1: - MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_ERASE_FAILED = 4,
1: - MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_RESTORE_FAILED = 5,
1: - MLXFW_FSM_REACTIVATE_STATUS_CANDIDATE_FW_DEACTIVATION_FAILED = 6,
1: - MLXFW_FSM_REACTIVATE_STATUS_FW_ALREADY_ACTIVATED = 7,
1: - MLXFW_FSM_REACTIVATE_STATUS_ERR_DEVICE_RESET_REQUIRED = 8,
1: - MLXFW_FSM_REACTIVATE_STATUS_ERR_FW_PROGRAMMING_NEEDED = 9,
1: - MLXFW_FSM_REACTIVATE_STATUS_MAX = 10,
1: + MLXFW_FSM_REACTIVATE_STATUS_OK = 0,
1: + MLXFW_FSM_REACTIVATE_STATUS_BUSY = 1,
1: + MLXFW_FSM_REACTIVATE_STATUS_PROHIBITED_FW_VER_ERR = 2,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_COPY_FAILED = 3,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_ERASE_FAILED = 4,
1: + MLXFW_FSM_REACTIVATE_STATUS_FIRST_PAGE_RESTORE_FAILED = 5,
1: + MLXFW_FSM_REACTIVATE_STATUS_CANDIDATE_FW_DEACTIVATION_FAILED = 6,
1: + MLXFW_FSM_REACTIVATE_STATUS_FW_ALREADY_ACTIVATED = 7,
1: + MLXFW_FSM_REACTIVATE_STATUS_ERR_DEVICE_RESET_REQUIRED = 8,
1: + MLXFW_FSM_REACTIVATE_STATUS_ERR_FW_PROGRAMMING_NEEDED = 9,
1: + MLXFW_FSM_REACTIVATE_STATUS_MAX = 10,
1: };
1:
1: struct mlxfw_mfa2_component {
1: - u16 index;
1: - u32 data_size;
1: - u8 *data;
1: + u16 index;
1: + u32 data_size;
1: + u8 *data;
1: };
1:
1: struct mlxfw_mfa2_file;
1: @@ -88579,937 +89731,937 @@ struct mlxfw_mfa2_file;
1: struct mlxfw_mfa2_tlv;
1:
1: struct mlxfw_mfa2_file___2 {
1: - const struct firmware *fw;
1: - const struct mlxfw_mfa2_tlv *first_dev;
1: - u16 dev_count;
1: - const struct mlxfw_mfa2_tlv *first_component;
1: - u16 component_count;
1: - const void *cb;
1: - u32 cb_archive_size;
1: + const struct firmware *fw;
1: + const struct mlxfw_mfa2_tlv *first_dev;
1: + u16 dev_count;
1: + const struct mlxfw_mfa2_tlv *first_component;
1: + u16 component_count;
1: + const void *cb;
1: + u32 cb_archive_size;
1: };
1:
1: struct mlxfw_mfa2_tlv {
1: - u8 version;
1: - u8 type;
1: - __be16 len;
1: - u8 data[0];
1: + u8 version;
1: + u8 type;
1: + __be16 len;
1: + u8 data[0];
1: };
1:
1: enum mlxfw_mfa2_tlv_type {
1: - MLXFW_MFA2_TLV_MULTI_PART = 1,
1: - MLXFW_MFA2_TLV_PACKAGE_DESCRIPTOR = 2,
1: - MLXFW_MFA2_TLV_COMPONENT_DESCRIPTOR = 4,
1: - MLXFW_MFA2_TLV_COMPONENT_PTR = 34,
1: - MLXFW_MFA2_TLV_PSID = 42,
1: + MLXFW_MFA2_TLV_MULTI_PART = 1,
1: + MLXFW_MFA2_TLV_PACKAGE_DESCRIPTOR = 2,
1: + MLXFW_MFA2_TLV_COMPONENT_DESCRIPTOR = 4,
1: + MLXFW_MFA2_TLV_COMPONENT_PTR = 34,
1: + MLXFW_MFA2_TLV_PSID = 42,
1: };
1:
1: struct mlxfw_mfa2_tlv_multi {
1: - __be16 num_extensions;
1: - __be16 total_len;
1: + __be16 num_extensions;
1: + __be16 total_len;
1: };
1:
1: struct mlxfw_mfa2_tlv_package_descriptor {
1: - __be16 num_components;
1: - __be16 num_devices;
1: - __be32 cb_offset;
1: - __be32 cb_archive_size;
1: - __be32 cb_size_h;
1: - __be32 cb_size_l;
1: - u8 padding[3];
1: - u8 cv_compression;
1: - __be32 user_data_offset;
1: + __be16 num_components;
1: + __be16 num_devices;
1: + __be32 cb_offset;
1: + __be32 cb_archive_size;
1: + __be32 cb_size_h;
1: + __be32 cb_size_l;
1: + u8 padding[3];
1: + u8 cv_compression;
1: + __be32 user_data_offset;
1: };
1:
1: struct mlxfw_mfa2_tlv_psid {
1: - u8 psid[0];
1: + u8 psid[0];
1: };
1:
1: struct mlxfw_mfa2_tlv_component_ptr {
1: - __be16 storage_id;
1: - __be16 component_index;
1: - __be32 storage_address;
1: + __be16 storage_id;
1: + __be16 component_index;
1: + __be32 storage_address;
1: };
1:
1: struct mlxfw_mfa2_tlv_component_descriptor {
1: - __be16 pldm_classification;
1: - __be16 identifier;
1: - __be32 cb_offset_h;
1: - __be32 cb_offset_l;
1: - __be32 size;
1: + __be16 pldm_classification;
1: + __be16 identifier;
1: + __be32 cb_offset_h;
1: + __be32 cb_offset_l;
1: + __be32 size;
1: };
1:
1: struct mlxfw_mfa2_comp_data {
1: - struct mlxfw_mfa2_component comp;
1: - u8 buff[0];
1: + struct mlxfw_mfa2_component comp;
1: + u8 buff[0];
1: };
1:
1: struct wl1251_platform_data {
1: - int power_gpio;
1: - int irq;
1: - bool use_eeprom;
1: -};
1: -
1: -enum {
1: - SKB_GSO_TCPV4 = 1,
1: - SKB_GSO_DODGY = 2,
1: - SKB_GSO_TCP_ECN = 4,
1: - SKB_GSO_TCP_FIXEDID = 8,
1: - SKB_GSO_TCPV6 = 16,
1: - SKB_GSO_FCOE = 32,
1: - SKB_GSO_GRE = 64,
1: - SKB_GSO_GRE_CSUM = 128,
1: - SKB_GSO_IPXIP4 = 256,
1: - SKB_GSO_IPXIP6 = 512,
1: - SKB_GSO_UDP_TUNNEL = 1024,
1: - SKB_GSO_UDP_TUNNEL_CSUM = 2048,
1: - SKB_GSO_PARTIAL = 4096,
1: - SKB_GSO_TUNNEL_REMCSUM = 8192,
1: - SKB_GSO_SCTP = 16384,
1: - SKB_GSO_ESP = 32768,
1: - SKB_GSO_UDP = 65536,
1: - SKB_GSO_UDP_L4 = 131072,
1: - SKB_GSO_FRAGLIST = 262144,
1: + int power_gpio;
1: + int irq;
1: + bool use_eeprom;
1: +};
1: +
1: +enum {
1: + SKB_GSO_TCPV4 = 1,
1: + SKB_GSO_DODGY = 2,
1: + SKB_GSO_TCP_ECN = 4,
1: + SKB_GSO_TCP_FIXEDID = 8,
1: + SKB_GSO_TCPV6 = 16,
1: + SKB_GSO_FCOE = 32,
1: + SKB_GSO_GRE = 64,
1: + SKB_GSO_GRE_CSUM = 128,
1: + SKB_GSO_IPXIP4 = 256,
1: + SKB_GSO_IPXIP6 = 512,
1: + SKB_GSO_UDP_TUNNEL = 1024,
1: + SKB_GSO_UDP_TUNNEL_CSUM = 2048,
1: + SKB_GSO_PARTIAL = 4096,
1: + SKB_GSO_TUNNEL_REMCSUM = 8192,
1: + SKB_GSO_SCTP = 16384,
1: + SKB_GSO_ESP = 32768,
1: + SKB_GSO_UDP = 65536,
1: + SKB_GSO_UDP_L4 = 131072,
1: + SKB_GSO_FRAGLIST = 262144,
1: };
1:
1: enum ethtool_stringset {
1: - ETH_SS_TEST = 0,
1: - ETH_SS_STATS = 1,
1: - ETH_SS_PRIV_FLAGS = 2,
1: - ETH_SS_NTUPLE_FILTERS = 3,
1: - ETH_SS_FEATURES = 4,
1: - ETH_SS_RSS_HASH_FUNCS = 5,
1: - ETH_SS_TUNABLES = 6,
1: - ETH_SS_PHY_STATS = 7,
1: - ETH_SS_PHY_TUNABLES = 8,
1: - ETH_SS_LINK_MODES = 9,
1: - ETH_SS_MSG_CLASSES = 10,
1: - ETH_SS_WOL_MODES = 11,
1: - ETH_SS_SOF_TIMESTAMPING = 12,
1: - ETH_SS_TS_TX_TYPES = 13,
1: - ETH_SS_TS_RX_FILTERS = 14,
1: - ETH_SS_UDP_TUNNEL_TYPES = 15,
1: - ETH_SS_COUNT = 16,
1: + ETH_SS_TEST = 0,
1: + ETH_SS_STATS = 1,
1: + ETH_SS_PRIV_FLAGS = 2,
1: + ETH_SS_NTUPLE_FILTERS = 3,
1: + ETH_SS_FEATURES = 4,
1: + ETH_SS_RSS_HASH_FUNCS = 5,
1: + ETH_SS_TUNABLES = 6,
1: + ETH_SS_PHY_STATS = 7,
1: + ETH_SS_PHY_TUNABLES = 8,
1: + ETH_SS_LINK_MODES = 9,
1: + ETH_SS_MSG_CLASSES = 10,
1: + ETH_SS_WOL_MODES = 11,
1: + ETH_SS_SOF_TIMESTAMPING = 12,
1: + ETH_SS_TS_TX_TYPES = 13,
1: + ETH_SS_TS_RX_FILTERS = 14,
1: + ETH_SS_UDP_TUNNEL_TYPES = 15,
1: + ETH_SS_COUNT = 16,
1: };
1:
1: struct gro_list {
1: - struct list_head list;
1: - int count;
1: + struct list_head list;
1: + int count;
1: };
1:
1: struct napi_struct {
1: - struct list_head poll_list;
1: - long unsigned int state;
1: - int weight;
1: - int defer_hard_irqs_count;
1: - long unsigned int gro_bitmask;
1: - int (*poll)(struct napi_struct *, int);
1: - int poll_owner;
1: - struct net_device *dev;
1: - struct gro_list gro_hash[8];
1: - struct sk_buff *skb;
1: - struct list_head rx_list;
1: - int rx_count;
1: - struct hrtimer timer;
1: - struct list_head dev_list;
1: - struct hlist_node napi_hash_node;
1: - unsigned int napi_id;
1: + struct list_head poll_list;
1: + long unsigned int state;
1: + int weight;
1: + int defer_hard_irqs_count;
1: + long unsigned int gro_bitmask;
1: + int (*poll)(struct napi_struct *, int);
1: + int poll_owner;
1: + struct net_device *dev;
1: + struct gro_list gro_hash[8];
1: + struct sk_buff *skb;
1: + struct list_head rx_list;
1: + int rx_count;
1: + struct hrtimer timer;
1: + struct list_head dev_list;
1: + struct hlist_node napi_hash_node;
1: + unsigned int napi_id;
1: };
1:
1: enum netdev_queue_state_t {
1: - __QUEUE_STATE_DRV_XOFF = 0,
1: - __QUEUE_STATE_STACK_XOFF = 1,
1: - __QUEUE_STATE_FROZEN = 2,
1: + __QUEUE_STATE_DRV_XOFF = 0,
1: + __QUEUE_STATE_STACK_XOFF = 1,
1: + __QUEUE_STATE_FROZEN = 2,
1: };
1:
1: enum skb_free_reason {
1: - SKB_REASON_CONSUMED = 0,
1: - SKB_REASON_DROPPED = 1,
1: + SKB_REASON_CONSUMED = 0,
1: + SKB_REASON_DROPPED = 1,
1: };
1:
1: struct pp_alloc_cache {
1: - u32 count;
1: - void *cache[128];
1: + u32 count;
1: + void *cache[128];
1: };
1:
1: struct page_pool_params {
1: - unsigned int flags;
1: - unsigned int order;
1: - unsigned int pool_size;
1: - int nid;
1: - struct device *dev;
1: - enum dma_data_direction dma_dir;
1: - unsigned int max_len;
1: - unsigned int offset;
1: + unsigned int flags;
1: + unsigned int order;
1: + unsigned int pool_size;
1: + int nid;
1: + struct device *dev;
1: + enum dma_data_direction dma_dir;
1: + unsigned int max_len;
1: + unsigned int offset;
1: };
1:
1: struct page_pool {
1: - struct page_pool_params p;
1: - struct delayed_work release_dw;
1: - void (*disconnect)(void *);
1: - long unsigned int defer_start;
1: - long unsigned int defer_warn;
1: - u32 pages_state_hold_cnt;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct pp_alloc_cache alloc;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct ptr_ring ring;
1: - atomic_t pages_state_release_cnt;
1: - refcount_t user_cnt;
1: - u64 destroy_cnt;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct page_pool_params p;
1: + struct delayed_work release_dw;
1: + void (*disconnect)(void *);
1: + long unsigned int defer_start;
1: + long unsigned int defer_warn;
1: + u32 pages_state_hold_cnt;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct pp_alloc_cache alloc;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct ptr_ring ring;
1: + atomic_t pages_state_release_cnt;
1: + refcount_t user_cnt;
1: + u64 destroy_cnt;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xen_netif_tx_request {
1: - grant_ref_t gref;
1: - uint16_t offset;
1: - uint16_t flags;
1: - uint16_t id;
1: - uint16_t size;
1: + grant_ref_t gref;
1: + uint16_t offset;
1: + uint16_t flags;
1: + uint16_t id;
1: + uint16_t size;
1: };
1:
1: struct xen_netif_extra_info {
1: - uint8_t type;
1: - uint8_t flags;
1: - union {
1: - struct {
1: - uint16_t size;
1: - uint8_t type;
1: - uint8_t pad;
1: - uint16_t features;
1: - } gso;
1: - struct {
1: - uint8_t addr[6];
1: - } mcast;
1: - struct {
1: - uint8_t type;
1: - uint8_t algorithm;
1: - uint8_t value[4];
1: - } hash;
1: - struct {
1: - uint16_t headroom;
1: - uint16_t pad[2];
1: - } xdp;
1: - uint16_t pad[3];
1: - } u;
1: + uint8_t type;
1: + uint8_t flags;
1: + union {
1: + struct {
1: + uint16_t size;
1: + uint8_t type;
1: + uint8_t pad;
1: + uint16_t features;
1: + } gso;
1: + struct {
1: + uint8_t addr[6];
1: + } mcast;
1: + struct {
1: + uint8_t type;
1: + uint8_t algorithm;
1: + uint8_t value[4];
1: + } hash;
1: + struct {
1: + uint16_t headroom;
1: + uint16_t pad[2];
1: + } xdp;
1: + uint16_t pad[3];
1: + } u;
1: };
1:
1: struct xen_netif_tx_response {
1: - uint16_t id;
1: - int16_t status;
1: + uint16_t id;
1: + int16_t status;
1: };
1:
1: struct xen_netif_rx_request {
1: - uint16_t id;
1: - uint16_t pad;
1: - grant_ref_t gref;
1: + uint16_t id;
1: + uint16_t pad;
1: + grant_ref_t gref;
1: };
1:
1: struct xen_netif_rx_response {
1: - uint16_t id;
1: - uint16_t offset;
1: - uint16_t flags;
1: - int16_t status;
1: + uint16_t id;
1: + uint16_t offset;
1: + uint16_t flags;
1: + int16_t status;
1: };
1:
1: union xen_netif_tx_sring_entry {
1: - struct xen_netif_tx_request req;
1: - struct xen_netif_tx_response rsp;
1: + struct xen_netif_tx_request req;
1: + struct xen_netif_tx_response rsp;
1: };
1:
1: struct xen_netif_tx_sring {
1: - RING_IDX req_prod;
1: - RING_IDX req_event;
1: - RING_IDX rsp_prod;
1: - RING_IDX rsp_event;
1: - uint8_t pad[48];
1: - union xen_netif_tx_sring_entry ring[1];
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_netif_tx_sring_entry ring[1];
1: };
1:
1: struct xen_netif_tx_front_ring {
1: - RING_IDX req_prod_pvt;
1: - RING_IDX rsp_cons;
1: - unsigned int nr_ents;
1: - struct xen_netif_tx_sring *sring;
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct xen_netif_tx_sring *sring;
1: };
1:
1: union xen_netif_rx_sring_entry {
1: - struct xen_netif_rx_request req;
1: - struct xen_netif_rx_response rsp;
1: + struct xen_netif_rx_request req;
1: + struct xen_netif_rx_response rsp;
1: };
1:
1: struct xen_netif_rx_sring {
1: - RING_IDX req_prod;
1: - RING_IDX req_event;
1: - RING_IDX rsp_prod;
1: - RING_IDX rsp_event;
1: - uint8_t pad[48];
1: - union xen_netif_rx_sring_entry ring[1];
1: + RING_IDX req_prod;
1: + RING_IDX req_event;
1: + RING_IDX rsp_prod;
1: + RING_IDX rsp_event;
1: + uint8_t pad[48];
1: + union xen_netif_rx_sring_entry ring[1];
1: };
1:
1: struct xen_netif_rx_front_ring {
1: - RING_IDX req_prod_pvt;
1: - RING_IDX rsp_cons;
1: - unsigned int nr_ents;
1: - struct xen_netif_rx_sring *sring;
1: + RING_IDX req_prod_pvt;
1: + RING_IDX rsp_cons;
1: + unsigned int nr_ents;
1: + struct xen_netif_rx_sring *sring;
1: };
1:
1: struct netfront_cb {
1: - int pull_to;
1: + int pull_to;
1: };
1:
1: struct netfront_stats {
1: - u64 packets;
1: - u64 bytes;
1: - struct u64_stats_sync syncp;
1: + u64 packets;
1: + u64 bytes;
1: + struct u64_stats_sync syncp;
1: };
1:
1: union skb_entry {
1: - struct sk_buff *skb;
1: - long unsigned int link;
1: + struct sk_buff *skb;
1: + long unsigned int link;
1: };
1:
1: struct netfront_info;
1:
1: struct netfront_queue {
1: - unsigned int id;
1: - char name[22];
1: - struct netfront_info *info;
1: - struct bpf_prog *xdp_prog;
1: - struct napi_struct napi;
1: - unsigned int tx_evtchn;
1: - unsigned int rx_evtchn;
1: - unsigned int tx_irq;
1: - unsigned int rx_irq;
1: - char tx_irq_name[25];
1: - char rx_irq_name[25];
1: - spinlock_t tx_lock;
1: - struct xen_netif_tx_front_ring tx;
1: - int tx_ring_ref;
1: - union skb_entry tx_skbs[256];
1: - grant_ref_t gref_tx_head;
1: - grant_ref_t grant_tx_ref[256];
1: - struct page *grant_tx_page[256];
1: - unsigned int tx_skb_freelist;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - spinlock_t rx_lock;
1: - struct xen_netif_rx_front_ring rx;
1: - int rx_ring_ref;
1: - struct timer_list rx_refill_timer;
1: - struct sk_buff *rx_skbs[256];
1: - grant_ref_t gref_rx_head;
1: - grant_ref_t grant_rx_ref[256];
1: - struct page_pool *page_pool;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct xdp_rxq_info xdp_rxq;
1: + unsigned int id;
1: + char name[22];
1: + struct netfront_info *info;
1: + struct bpf_prog *xdp_prog;
1: + struct napi_struct napi;
1: + unsigned int tx_evtchn;
1: + unsigned int rx_evtchn;
1: + unsigned int tx_irq;
1: + unsigned int rx_irq;
1: + char tx_irq_name[25];
1: + char rx_irq_name[25];
1: + spinlock_t tx_lock;
1: + struct xen_netif_tx_front_ring tx;
1: + int tx_ring_ref;
1: + union skb_entry tx_skbs[256];
1: + grant_ref_t gref_tx_head;
1: + grant_ref_t grant_tx_ref[256];
1: + struct page *grant_tx_page[256];
1: + unsigned int tx_skb_freelist;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + spinlock_t rx_lock;
1: + struct xen_netif_rx_front_ring rx;
1: + int rx_ring_ref;
1: + struct timer_list rx_refill_timer;
1: + struct sk_buff *rx_skbs[256];
1: + grant_ref_t gref_rx_head;
1: + grant_ref_t grant_rx_ref[256];
1: + struct page_pool *page_pool;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct xdp_rxq_info xdp_rxq;
1: };
1:
1: struct netfront_info {
1: - struct list_head list;
1: - struct net_device *netdev;
1: - struct xenbus_device *xbdev;
1: - struct netfront_queue *queues;
1: - struct netfront_stats *rx_stats;
1: - struct netfront_stats *tx_stats;
1: - bool netback_has_xdp_headroom;
1: - bool netfront_xdp_enabled;
1: - atomic_t rx_gso_checksum_fixup;
1: + struct list_head list;
1: + struct net_device *netdev;
1: + struct xenbus_device *xbdev;
1: + struct netfront_queue *queues;
1: + struct netfront_stats *rx_stats;
1: + struct netfront_stats *tx_stats;
1: + bool netback_has_xdp_headroom;
1: + bool netfront_xdp_enabled;
1: + atomic_t rx_gso_checksum_fixup;
1: };
1:
1: struct netfront_rx_info {
1: - struct xen_netif_rx_response rx;
1: - struct xen_netif_extra_info extras[5];
1: + struct xen_netif_rx_response rx;
1: + struct xen_netif_extra_info extras[5];
1: };
1:
1: struct xennet_gnttab_make_txreq {
1: - struct netfront_queue *queue;
1: - struct sk_buff *skb;
1: - struct page *page;
1: - struct xen_netif_tx_request *tx;
1: - unsigned int size;
1: + struct netfront_queue *queue;
1: + struct sk_buff *skb;
1: + struct page *page;
1: + struct xen_netif_tx_request *tx;
1: + unsigned int size;
1: };
1:
1: struct xennet_stat {
1: - char name[32];
1: - u16 offset;
1: + char name[32];
1: + u16 offset;
1: };
1:
1: enum usb_otg_state {
1: - OTG_STATE_UNDEFINED = 0,
1: - OTG_STATE_B_IDLE = 1,
1: - OTG_STATE_B_SRP_INIT = 2,
1: - OTG_STATE_B_PERIPHERAL = 3,
1: - OTG_STATE_B_WAIT_ACON = 4,
1: - OTG_STATE_B_HOST = 5,
1: - OTG_STATE_A_IDLE = 6,
1: - OTG_STATE_A_WAIT_VRISE = 7,
1: - OTG_STATE_A_WAIT_BCON = 8,
1: - OTG_STATE_A_HOST = 9,
1: - OTG_STATE_A_SUSPEND = 10,
1: - OTG_STATE_A_PERIPHERAL = 11,
1: - OTG_STATE_A_WAIT_VFALL = 12,
1: - OTG_STATE_A_VBUS_ERR = 13,
1: + OTG_STATE_UNDEFINED = 0,
1: + OTG_STATE_B_IDLE = 1,
1: + OTG_STATE_B_SRP_INIT = 2,
1: + OTG_STATE_B_PERIPHERAL = 3,
1: + OTG_STATE_B_WAIT_ACON = 4,
1: + OTG_STATE_B_HOST = 5,
1: + OTG_STATE_A_IDLE = 6,
1: + OTG_STATE_A_WAIT_VRISE = 7,
1: + OTG_STATE_A_WAIT_BCON = 8,
1: + OTG_STATE_A_HOST = 9,
1: + OTG_STATE_A_SUSPEND = 10,
1: + OTG_STATE_A_PERIPHERAL = 11,
1: + OTG_STATE_A_WAIT_VFALL = 12,
1: + OTG_STATE_A_VBUS_ERR = 13,
1: };
1:
1: struct usb_otg_caps {
1: - u16 otg_rev;
1: - bool hnp_support;
1: - bool srp_support;
1: - bool adp_support;
1: + u16 otg_rev;
1: + bool hnp_support;
1: + bool srp_support;
1: + bool adp_support;
1: };
1:
1: struct extcon_dev;
1:
1: enum usb_charger_type {
1: - UNKNOWN_TYPE = 0,
1: - SDP_TYPE = 1,
1: - DCP_TYPE = 2,
1: - CDP_TYPE = 3,
1: - ACA_TYPE = 4,
1: + UNKNOWN_TYPE = 0,
1: + SDP_TYPE = 1,
1: + DCP_TYPE = 2,
1: + CDP_TYPE = 3,
1: + ACA_TYPE = 4,
1: };
1:
1: enum usb_charger_state {
1: - USB_CHARGER_DEFAULT = 0,
1: - USB_CHARGER_PRESENT = 1,
1: - USB_CHARGER_ABSENT = 2,
1: + USB_CHARGER_DEFAULT = 0,
1: + USB_CHARGER_PRESENT = 1,
1: + USB_CHARGER_ABSENT = 2,
1: };
1:
1: enum usb_phy_events {
1: - USB_EVENT_NONE = 0,
1: - USB_EVENT_VBUS = 1,
1: - USB_EVENT_ID = 2,
1: - USB_EVENT_CHARGER = 3,
1: - USB_EVENT_ENUMERATED = 4,
1: + USB_EVENT_NONE = 0,
1: + USB_EVENT_VBUS = 1,
1: + USB_EVENT_ID = 2,
1: + USB_EVENT_CHARGER = 3,
1: + USB_EVENT_ENUMERATED = 4,
1: };
1:
1: enum usb_phy_type {
1: - USB_PHY_TYPE_UNDEFINED = 0,
1: - USB_PHY_TYPE_USB2 = 1,
1: - USB_PHY_TYPE_USB3 = 2,
1: + USB_PHY_TYPE_UNDEFINED = 0,
1: + USB_PHY_TYPE_USB2 = 1,
1: + USB_PHY_TYPE_USB3 = 2,
1: };
1:
1: struct usb_phy___2;
1:
1: struct usb_phy_io_ops {
1: - int (*read)(struct usb_phy___2 *, u32);
1: - int (*write)(struct usb_phy___2 *, u32, u32);
1: + int (*read)(struct usb_phy___2 *, u32);
1: + int (*write)(struct usb_phy___2 *, u32, u32);
1: };
1:
1: struct usb_charger_current {
1: - unsigned int sdp_min;
1: - unsigned int sdp_max;
1: - unsigned int dcp_min;
1: - unsigned int dcp_max;
1: - unsigned int cdp_min;
1: - unsigned int cdp_max;
1: - unsigned int aca_min;
1: - unsigned int aca_max;
1: + unsigned int sdp_min;
1: + unsigned int sdp_max;
1: + unsigned int dcp_min;
1: + unsigned int dcp_max;
1: + unsigned int cdp_min;
1: + unsigned int cdp_max;
1: + unsigned int aca_min;
1: + unsigned int aca_max;
1: };
1:
1: struct usb_otg;
1:
1: struct usb_phy___2 {
1: - struct device *dev;
1: - const char *label;
1: - unsigned int flags;
1: - enum usb_phy_type type;
1: - enum usb_phy_events last_event;
1: - struct usb_otg *otg;
1: - struct device *io_dev;
1: - struct usb_phy_io_ops *io_ops;
1: - void *io_priv;
1: - struct extcon_dev *edev;
1: - struct extcon_dev *id_edev;
1: - struct notifier_block vbus_nb;
1: - struct notifier_block id_nb;
1: - struct notifier_block type_nb;
1: - enum usb_charger_type chg_type;
1: - enum usb_charger_state chg_state;
1: - struct usb_charger_current chg_cur;
1: - struct work_struct chg_work;
1: - struct atomic_notifier_head notifier;
1: - u16 port_status;
1: - u16 port_change;
1: - struct list_head head;
1: - int (*init)(struct usb_phy___2 *);
1: - void (*shutdown)(struct usb_phy___2 *);
1: - int (*set_vbus)(struct usb_phy___2 *, int);
1: - int (*set_power)(struct usb_phy___2 *, unsigned int);
1: - int (*set_suspend)(struct usb_phy___2 *, int);
1: - int (*set_wakeup)(struct usb_phy___2 *, bool);
1: - int (*notify_connect)(struct usb_phy___2 *, enum usb_device_speed);
1: - int (*notify_disconnect)(struct usb_phy___2 *, enum usb_device_speed);
1: - enum usb_charger_type (*charger_detect)(struct usb_phy___2 *);
1: + struct device *dev;
1: + const char *label;
1: + unsigned int flags;
1: + enum usb_phy_type type;
1: + enum usb_phy_events last_event;
1: + struct usb_otg *otg;
1: + struct device *io_dev;
1: + struct usb_phy_io_ops *io_ops;
1: + void *io_priv;
1: + struct extcon_dev *edev;
1: + struct extcon_dev *id_edev;
1: + struct notifier_block vbus_nb;
1: + struct notifier_block id_nb;
1: + struct notifier_block type_nb;
1: + enum usb_charger_type chg_type;
1: + enum usb_charger_state chg_state;
1: + struct usb_charger_current chg_cur;
1: + struct work_struct chg_work;
1: + struct atomic_notifier_head notifier;
1: + u16 port_status;
1: + u16 port_change;
1: + struct list_head head;
1: + int (*init)(struct usb_phy___2 *);
1: + void (*shutdown)(struct usb_phy___2 *);
1: + int (*set_vbus)(struct usb_phy___2 *, int);
1: + int (*set_power)(struct usb_phy___2 *, unsigned int);
1: + int (*set_suspend)(struct usb_phy___2 *, int);
1: + int (*set_wakeup)(struct usb_phy___2 *, bool);
1: + int (*notify_connect)(struct usb_phy___2 *, enum usb_device_speed);
1: + int (*notify_disconnect)(struct usb_phy___2 *, enum usb_device_speed);
1: + enum usb_charger_type (*charger_detect)(struct usb_phy___2 *);
1: };
1:
1: struct phy_devm {
1: - struct usb_phy___2 *phy;
1: - struct notifier_block *nb;
1: + struct usb_phy___2 *phy;
1: + struct notifier_block *nb;
1: };
1:
1: enum usb_phy_interface {
1: - USBPHY_INTERFACE_MODE_UNKNOWN = 0,
1: - USBPHY_INTERFACE_MODE_UTMI = 1,
1: - USBPHY_INTERFACE_MODE_UTMIW = 2,
1: - USBPHY_INTERFACE_MODE_ULPI = 3,
1: - USBPHY_INTERFACE_MODE_SERIAL = 4,
1: - USBPHY_INTERFACE_MODE_HSIC = 5,
1: + USBPHY_INTERFACE_MODE_UNKNOWN = 0,
1: + USBPHY_INTERFACE_MODE_UTMI = 1,
1: + USBPHY_INTERFACE_MODE_UTMIW = 2,
1: + USBPHY_INTERFACE_MODE_ULPI = 3,
1: + USBPHY_INTERFACE_MODE_SERIAL = 4,
1: + USBPHY_INTERFACE_MODE_HSIC = 5,
1: };
1:
1: struct usb_gadget;
1:
1: struct usb_otg {
1: - u8 default_a;
1: - struct phy *phy;
1: - struct usb_phy___2 *usb_phy;
1: - struct usb_bus *host;
1: - struct usb_gadget *gadget;
1: - enum usb_otg_state state;
1: - int (*set_host)(struct usb_otg *, struct usb_bus *);
1: - int (*set_peripheral)(struct usb_otg *, struct usb_gadget *);
1: - int (*set_vbus)(struct usb_otg *, bool);
1: - int (*start_srp)(struct usb_otg *);
1: - int (*start_hnp)(struct usb_otg *);
1: + u8 default_a;
1: + struct phy *phy;
1: + struct usb_phy___2 *usb_phy;
1: + struct usb_bus *host;
1: + struct usb_gadget *gadget;
1: + enum usb_otg_state state;
1: + int (*set_host)(struct usb_otg *, struct usb_bus *);
1: + int (*set_peripheral)(struct usb_otg *, struct usb_gadget *);
1: + int (*set_vbus)(struct usb_otg *, bool);
1: + int (*start_srp)(struct usb_otg *);
1: + int (*start_hnp)(struct usb_otg *);
1: };
1:
1: struct ulpi_info {
1: - unsigned int id;
1: - char *name;
1: + unsigned int id;
1: + char *name;
1: };
1:
1: enum amd_chipset_gen {
1: - NOT_AMD_CHIPSET = 0,
1: - AMD_CHIPSET_SB600 = 1,
1: - AMD_CHIPSET_SB700 = 2,
1: - AMD_CHIPSET_SB800 = 3,
1: - AMD_CHIPSET_HUDSON2 = 4,
1: - AMD_CHIPSET_BOLTON = 5,
1: - AMD_CHIPSET_YANGTZE = 6,
1: - AMD_CHIPSET_TAISHAN = 7,
1: - AMD_CHIPSET_UNKNOWN = 8,
1: + NOT_AMD_CHIPSET = 0,
1: + AMD_CHIPSET_SB600 = 1,
1: + AMD_CHIPSET_SB700 = 2,
1: + AMD_CHIPSET_SB800 = 3,
1: + AMD_CHIPSET_HUDSON2 = 4,
1: + AMD_CHIPSET_BOLTON = 5,
1: + AMD_CHIPSET_YANGTZE = 6,
1: + AMD_CHIPSET_TAISHAN = 7,
1: + AMD_CHIPSET_UNKNOWN = 8,
1: };
1:
1: struct amd_chipset_type {
1: - enum amd_chipset_gen gen;
1: - u8 rev;
1: + enum amd_chipset_gen gen;
1: + u8 rev;
1: };
1:
1: struct amd_chipset_info {
1: - struct pci_dev *nb_dev;
1: - struct pci_dev *smbus_dev;
1: - int nb_type;
1: - struct amd_chipset_type sb_type;
1: - int isoc_reqs;
1: - int probe_count;
1: - bool need_pll_quirk;
1: + struct pci_dev *nb_dev;
1: + struct pci_dev *smbus_dev;
1: + int nb_type;
1: + struct amd_chipset_type sb_type;
1: + int isoc_reqs;
1: + int probe_count;
1: + bool need_pll_quirk;
1: };
1:
1: struct serio_device_id {
1: - __u8 type;
1: - __u8 extra;
1: - __u8 id;
1: - __u8 proto;
1: + __u8 type;
1: + __u8 extra;
1: + __u8 id;
1: + __u8 proto;
1: };
1:
1: struct serio_driver;
1:
1: struct serio {
1: - void *port_data;
1: - char name[32];
1: - char phys[32];
1: - char firmware_id[128];
1: - bool manual_bind;
1: - struct serio_device_id id;
1: - spinlock_t lock;
1: - int (*write)(struct serio *, unsigned char);
1: - int (*open)(struct serio *);
1: - void (*close)(struct serio *);
1: - int (*start)(struct serio *);
1: - void (*stop)(struct serio *);
1: - struct serio *parent;
1: - struct list_head child_node;
1: - struct list_head children;
1: - unsigned int depth;
1: - struct serio_driver *drv;
1: - struct mutex drv_mutex;
1: - struct device dev;
1: - struct list_head node;
1: - struct mutex *ps2_cmd_mutex;
1: + void *port_data;
1: + char name[32];
1: + char phys[32];
1: + char firmware_id[128];
1: + bool manual_bind;
1: + struct serio_device_id id;
1: + spinlock_t lock;
1: + int (*write)(struct serio *, unsigned char);
1: + int (*open)(struct serio *);
1: + void (*close)(struct serio *);
1: + int (*start)(struct serio *);
1: + void (*stop)(struct serio *);
1: + struct serio *parent;
1: + struct list_head child_node;
1: + struct list_head children;
1: + unsigned int depth;
1: + struct serio_driver *drv;
1: + struct mutex drv_mutex;
1: + struct device dev;
1: + struct list_head node;
1: + struct mutex *ps2_cmd_mutex;
1: };
1:
1: struct serio_driver {
1: - const char *description;
1: - const struct serio_device_id *id_table;
1: - bool manual_bind;
1: - void (*write_wakeup)(struct serio *);
1: - irqreturn_t (*interrupt)(struct serio *, unsigned char, unsigned int);
1: - int (*connect)(struct serio *, struct serio_driver *);
1: - int (*reconnect)(struct serio *);
1: - int (*fast_reconnect)(struct serio *);
1: - void (*disconnect)(struct serio *);
1: - void (*cleanup)(struct serio *);
1: - struct device_driver driver;
1: + const char *description;
1: + const struct serio_device_id *id_table;
1: + bool manual_bind;
1: + void (*write_wakeup)(struct serio *);
1: + irqreturn_t (*interrupt)(struct serio *, unsigned char, unsigned int);
1: + int (*connect)(struct serio *, struct serio_driver *);
1: + int (*reconnect)(struct serio *);
1: + int (*fast_reconnect)(struct serio *);
1: + void (*disconnect)(struct serio *);
1: + void (*cleanup)(struct serio *);
1: + struct device_driver driver;
1: };
1:
1: enum serio_event_type {
1: - SERIO_RESCAN_PORT = 0,
1: - SERIO_RECONNECT_PORT = 1,
1: - SERIO_RECONNECT_SUBTREE = 2,
1: - SERIO_REGISTER_PORT = 3,
1: - SERIO_ATTACH_DRIVER = 4,
1: + SERIO_RESCAN_PORT = 0,
1: + SERIO_RECONNECT_PORT = 1,
1: + SERIO_RECONNECT_SUBTREE = 2,
1: + SERIO_REGISTER_PORT = 3,
1: + SERIO_ATTACH_DRIVER = 4,
1: };
1:
1: struct serio_event {
1: - enum serio_event_type type;
1: - void *object;
1: - struct module *owner;
1: - struct list_head node;
1: + enum serio_event_type type;
1: + void *object;
1: + struct module *owner;
1: + struct list_head node;
1: };
1:
1: struct amba_kmi_port {
1: - struct serio *io;
1: - struct clk *clk;
1: - void *base;
1: - unsigned int irq;
1: - unsigned int divisor;
1: - unsigned int open;
1: + struct serio *io;
1: + struct clk *clk;
1: + void *base;
1: + unsigned int irq;
1: + unsigned int divisor;
1: + unsigned int open;
1: };
1:
1: struct ps2dev {
1: - struct serio *serio;
1: - struct mutex cmd_mutex;
1: - wait_queue_head_t wait;
1: - long unsigned int flags;
1: - u8 cmdbuf[8];
1: - u8 cmdcnt;
1: - u8 nak;
1: + struct serio *serio;
1: + struct mutex cmd_mutex;
1: + wait_queue_head_t wait;
1: + long unsigned int flags;
1: + u8 cmdbuf[8];
1: + u8 cmdcnt;
1: + u8 nak;
1: };
1:
1: struct input_mt_slot {
1: - int abs[14];
1: - unsigned int frame;
1: - unsigned int key;
1: + int abs[14];
1: + unsigned int frame;
1: + unsigned int key;
1: };
1:
1: struct input_mt {
1: - int trkid;
1: - int num_slots;
1: - int slot;
1: - unsigned int flags;
1: - unsigned int frame;
1: - int *red;
1: - struct input_mt_slot slots[0];
1: + int trkid;
1: + int num_slots;
1: + int slot;
1: + unsigned int flags;
1: + unsigned int frame;
1: + int *red;
1: + struct input_mt_slot slots[0];
1: };
1:
1: union input_seq_state {
1: - struct {
1: - short unsigned int pos;
1: - bool mutex_acquired;
1: - };
1: - void *p;
1: + struct {
1: + short unsigned int pos;
1: + bool mutex_acquired;
1: + };
1: + void *p;
1: };
1:
1: struct input_devres {
1: - struct input_dev *input;
1: + struct input_dev *input;
1: };
1:
1: struct input_event {
1: - __kernel_ulong_t __sec;
1: - __kernel_ulong_t __usec;
1: - __u16 type;
1: - __u16 code;
1: - __s32 value;
1: + __kernel_ulong_t __sec;
1: + __kernel_ulong_t __usec;
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: };
1:
1: struct input_event_compat {
1: - compat_ulong_t sec;
1: - compat_ulong_t usec;
1: - __u16 type;
1: - __u16 code;
1: - __s32 value;
1: + compat_ulong_t sec;
1: + compat_ulong_t usec;
1: + __u16 type;
1: + __u16 code;
1: + __s32 value;
1: };
1:
1: struct ff_periodic_effect_compat {
1: - __u16 waveform;
1: - __u16 period;
1: - __s16 magnitude;
1: - __s16 offset;
1: - __u16 phase;
1: - struct ff_envelope envelope;
1: - __u32 custom_len;
1: - compat_uptr_t custom_data;
1: + __u16 waveform;
1: + __u16 period;
1: + __s16 magnitude;
1: + __s16 offset;
1: + __u16 phase;
1: + struct ff_envelope envelope;
1: + __u32 custom_len;
1: + compat_uptr_t custom_data;
1: };
1:
1: struct ff_effect_compat {
1: - __u16 type;
1: - __s16 id;
1: - __u16 direction;
1: - struct ff_trigger trigger;
1: - struct ff_replay replay;
1: - union {
1: - struct ff_constant_effect constant;
1: - struct ff_ramp_effect ramp;
1: - struct ff_periodic_effect_compat periodic;
1: - struct ff_condition_effect condition[2];
1: - struct ff_rumble_effect rumble;
1: - } u;
1: + __u16 type;
1: + __s16 id;
1: + __u16 direction;
1: + struct ff_trigger trigger;
1: + struct ff_replay replay;
1: + union {
1: + struct ff_constant_effect constant;
1: + struct ff_ramp_effect ramp;
1: + struct ff_periodic_effect_compat periodic;
1: + struct ff_condition_effect condition[2];
1: + struct ff_rumble_effect rumble;
1: + } u;
1: };
1:
1: struct input_mt_pos {
1: - s16 x;
1: - s16 y;
1: + s16 x;
1: + s16 y;
1: };
1:
1: struct input_dev_poller {
1: - void (*poll)(struct input_dev *);
1: - unsigned int poll_interval;
1: - unsigned int poll_interval_max;
1: - unsigned int poll_interval_min;
1: - struct input_dev *input;
1: - struct delayed_work work;
1: + void (*poll)(struct input_dev *);
1: + unsigned int poll_interval;
1: + unsigned int poll_interval_max;
1: + unsigned int poll_interval_min;
1: + struct input_dev *input;
1: + struct delayed_work work;
1: };
1:
1: struct mousedev_hw_data {
1: - int dx;
1: - int dy;
1: - int dz;
1: - int x;
1: - int y;
1: - int abs_event;
1: - long unsigned int buttons;
1: + int dx;
1: + int dy;
1: + int dz;
1: + int x;
1: + int y;
1: + int abs_event;
1: + long unsigned int buttons;
1: };
1:
1: struct mousedev {
1: - int open;
1: - struct input_handle handle;
1: - wait_queue_head_t wait;
1: - struct list_head client_list;
1: - spinlock_t client_lock;
1: - struct mutex mutex;
1: - struct device dev;
1: - struct cdev cdev;
1: - bool exist;
1: - struct list_head mixdev_node;
1: - bool opened_by_mixdev;
1: - struct mousedev_hw_data packet;
1: - unsigned int pkt_count;
1: - int old_x[4];
1: - int old_y[4];
1: - int frac_dx;
1: - int frac_dy;
1: - long unsigned int touch;
1: - int (*open_device)(struct mousedev *);
1: - void (*close_device)(struct mousedev *);
1: + int open;
1: + struct input_handle handle;
1: + wait_queue_head_t wait;
1: + struct list_head client_list;
1: + spinlock_t client_lock;
1: + struct mutex mutex;
1: + struct device dev;
1: + struct cdev cdev;
1: + bool exist;
1: + struct list_head mixdev_node;
1: + bool opened_by_mixdev;
1: + struct mousedev_hw_data packet;
1: + unsigned int pkt_count;
1: + int old_x[4];
1: + int old_y[4];
1: + int frac_dx;
1: + int frac_dy;
1: + long unsigned int touch;
1: + int (*open_device)(struct mousedev *);
1: + void (*close_device)(struct mousedev *);
1: };
1:
1: enum mousedev_emul {
1: - MOUSEDEV_EMUL_PS2 = 0,
1: - MOUSEDEV_EMUL_IMPS = 1,
1: - MOUSEDEV_EMUL_EXPS = 2,
1: + MOUSEDEV_EMUL_PS2 = 0,
1: + MOUSEDEV_EMUL_IMPS = 1,
1: + MOUSEDEV_EMUL_EXPS = 2,
1: };
1:
1: struct mousedev_motion {
1: - int dx;
1: - int dy;
1: - int dz;
1: - long unsigned int buttons;
1: + int dx;
1: + int dy;
1: + int dz;
1: + long unsigned int buttons;
1: };
1:
1: struct mousedev_client {
1: - struct fasync_struct *fasync;
1: - struct mousedev *mousedev;
1: - struct list_head node;
1: - struct mousedev_motion packets[16];
1: - unsigned int head;
1: - unsigned int tail;
1: - spinlock_t packet_lock;
1: - int pos_x;
1: - int pos_y;
1: - u8 ps2[6];
1: - unsigned char ready;
1: - unsigned char buffer;
1: - unsigned char bufsiz;
1: - unsigned char imexseq;
1: - unsigned char impsseq;
1: - enum mousedev_emul mode;
1: - long unsigned int last_buttons;
1: + struct fasync_struct *fasync;
1: + struct mousedev *mousedev;
1: + struct list_head node;
1: + struct mousedev_motion packets[16];
1: + unsigned int head;
1: + unsigned int tail;
1: + spinlock_t packet_lock;
1: + int pos_x;
1: + int pos_y;
1: + u8 ps2[6];
1: + unsigned char ready;
1: + unsigned char buffer;
1: + unsigned char bufsiz;
1: + unsigned char imexseq;
1: + unsigned char impsseq;
1: + enum mousedev_emul mode;
1: + long unsigned int last_buttons;
1: };
1:
1: enum {
1: - FRACTION_DENOM = 128,
1: + FRACTION_DENOM = 128,
1: };
1:
1: struct atkbd {
1: - struct ps2dev ps2dev;
1: - struct input_dev *dev;
1: - char name[64];
1: - char phys[32];
1: - short unsigned int id;
1: - short unsigned int keycode[512];
1: - long unsigned int force_release_mask[8];
1: - unsigned char set;
1: - bool translated;
1: - bool extra;
1: - bool write;
1: - bool softrepeat;
1: - bool softraw;
1: - bool scroll;
1: - bool enabled;
1: - unsigned char emul;
1: - bool resend;
1: - bool release;
1: - long unsigned int xl_bit;
1: - unsigned int last;
1: - long unsigned int time;
1: - long unsigned int err_count;
1: - struct delayed_work event_work;
1: - long unsigned int event_jiffies;
1: - long unsigned int event_mask;
1: - struct mutex mutex;
1: - u32 function_row_physmap[24];
1: - int num_function_row_keys;
1: + struct ps2dev ps2dev;
1: + struct input_dev *dev;
1: + char name[64];
1: + char phys[32];
1: + short unsigned int id;
1: + short unsigned int keycode[512];
1: + long unsigned int force_release_mask[8];
1: + unsigned char set;
1: + bool translated;
1: + bool extra;
1: + bool write;
1: + bool softrepeat;
1: + bool softraw;
1: + bool scroll;
1: + bool enabled;
1: + unsigned char emul;
1: + bool resend;
1: + bool release;
1: + long unsigned int xl_bit;
1: + unsigned int last;
1: + long unsigned int time;
1: + long unsigned int err_count;
1: + struct delayed_work event_work;
1: + long unsigned int event_jiffies;
1: + long unsigned int event_mask;
1: + struct mutex mutex;
1: + u32 function_row_physmap[24];
1: + int num_function_row_keys;
1: };
1:
1: struct touchscreen_properties {
1: - unsigned int max_x;
1: - unsigned int max_y;
1: - bool invert_x;
1: - bool invert_y;
1: - bool swap_x_y;
1: + unsigned int max_x;
1: + unsigned int max_y;
1: + bool invert_x;
1: + bool invert_y;
1: + bool swap_x_y;
1: };
1:
1: struct xenkbd_motion {
1: - uint8_t type;
1: - int32_t rel_x;
1: - int32_t rel_y;
1: - int32_t rel_z;
1: + uint8_t type;
1: + int32_t rel_x;
1: + int32_t rel_y;
1: + int32_t rel_z;
1: };
1:
1: struct xenkbd_key {
1: - uint8_t type;
1: - uint8_t pressed;
1: - uint32_t keycode;
1: + uint8_t type;
1: + uint8_t pressed;
1: + uint32_t keycode;
1: };
1:
1: struct xenkbd_position {
1: - uint8_t type;
1: - int32_t abs_x;
1: - int32_t abs_y;
1: - int32_t rel_z;
1: + uint8_t type;
1: + int32_t abs_x;
1: + int32_t abs_y;
1: + int32_t rel_z;
1: };
1:
1: struct xenkbd_mtouch {
1: - uint8_t type;
1: - uint8_t event_type;
1: - uint8_t contact_id;
1: - uint8_t reserved[5];
1: - union {
1: - struct {
1: - int32_t abs_x;
1: - int32_t abs_y;
1: - } pos;
1: - struct {
1: - uint32_t major;
1: - uint32_t minor;
1: - } shape;
1: - int16_t orientation;
1: - } u;
1: + uint8_t type;
1: + uint8_t event_type;
1: + uint8_t contact_id;
1: + uint8_t reserved[5];
1: + union {
1: + struct {
1: + int32_t abs_x;
1: + int32_t abs_y;
1: + } pos;
1: + struct {
1: + uint32_t major;
1: + uint32_t minor;
1: + } shape;
1: + int16_t orientation;
1: + } u;
1: };
1:
1: union xenkbd_in_event {
1: - uint8_t type;
1: - struct xenkbd_motion motion;
1: - struct xenkbd_key key;
1: - struct xenkbd_position pos;
1: - struct xenkbd_mtouch mtouch;
1: - char pad[40];
1: + uint8_t type;
1: + struct xenkbd_motion motion;
1: + struct xenkbd_key key;
1: + struct xenkbd_position pos;
1: + struct xenkbd_mtouch mtouch;
1: + char pad[40];
1: };
1:
1: struct xenkbd_page {
1: - uint32_t in_cons;
1: - uint32_t in_prod;
1: - uint32_t out_cons;
1: - uint32_t out_prod;
1: + uint32_t in_cons;
1: + uint32_t in_prod;
1: + uint32_t out_cons;
1: + uint32_t out_prod;
1: };
1:
1: struct xenkbd_info {
1: - struct input_dev *kbd;
1: - struct input_dev *ptr;
1: - struct input_dev *mtouch;
1: - struct xenkbd_page *page;
1: - int gref;
1: - int irq;
1: - struct xenbus_device *xbdev;
1: - char phys[32];
1: - int mtouch_cur_contact_id;
1: + struct input_dev *kbd;
1: + struct input_dev *ptr;
1: + struct input_dev *mtouch;
1: + struct xenkbd_page *page;
1: + int gref;
1: + int irq;
1: + struct xenbus_device *xbdev;
1: + char phys[32];
1: + int mtouch_cur_contact_id;
1: };
1:
1: enum {
1: - KPARAM_X = 0,
1: - KPARAM_Y = 1,
1: - KPARAM_CNT___2 = 2,
1: + KPARAM_X = 0,
1: + KPARAM_Y = 1,
1: + KPARAM_CNT___2 = 2,
1: };
1:
1: struct trace_event_raw_rtc_time_alarm_class {
1: - struct trace_entry ent;
1: - time64_t secs;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + time64_t secs;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rtc_irq_set_freq {
1: - struct trace_entry ent;
1: - int freq;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int freq;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rtc_irq_set_state {
1: - struct trace_entry ent;
1: - int enabled;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int enabled;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rtc_alarm_irq_enable {
1: - struct trace_entry ent;
1: - unsigned int enabled;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int enabled;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rtc_offset_class {
1: - struct trace_entry ent;
1: - long int offset;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long int offset;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_rtc_timer_class {
1: - struct trace_entry ent;
1: - struct rtc_timer *timer;
1: - ktime_t expires;
1: - ktime_t period;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct rtc_timer *timer;
1: + ktime_t expires;
1: + ktime_t period;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_rtc_time_alarm_class {};
1: @@ -89549,240 +90701,244 @@ typedef void (*btf_trace_rtc_timer_dequeue)(void *, struct rtc_timer *);
1: typedef void (*btf_trace_rtc_timer_fired)(void *, struct rtc_timer *);
1:
1: enum {
1: - none = 0,
1: - day = 1,
1: - month = 2,
1: - year = 3,
1: + none = 0,
1: + day = 1,
1: + month = 2,
1: + year = 3,
1: };
1:
1: struct pl031_vendor_data {
1: - struct rtc_class_ops ops;
1: - bool clockwatch;
1: - bool st_weekday;
1: - long unsigned int irqflags;
1: - time64_t range_min;
1: - timeu64_t range_max;
1: + struct rtc_class_ops ops;
1: + bool clockwatch;
1: + bool st_weekday;
1: + long unsigned int irqflags;
1: + time64_t range_min;
1: + timeu64_t range_max;
1: };
1:
1: struct pl031_local {
1: - struct pl031_vendor_data *vendor;
1: - struct rtc_device *rtc;
1: - void *base;
1: + struct pl031_vendor_data *vendor;
1: + struct rtc_device *rtc;
1: + void *base;
1: };
1:
1: struct sun6i_rtc_clk_data {
1: - long unsigned int rc_osc_rate;
1: - unsigned int fixed_prescaler: 16;
1: - unsigned int has_prescaler: 1;
1: - unsigned int has_out_clk: 1;
1: - unsigned int export_iosc: 1;
1: - unsigned int has_losc_en: 1;
1: - unsigned int has_auto_swt: 1;
1: + long unsigned int rc_osc_rate;
1: + unsigned int fixed_prescaler : 16;
1: + unsigned int has_prescaler : 1;
1: + unsigned int has_out_clk : 1;
1: + unsigned int export_iosc : 1;
1: + unsigned int has_losc_en : 1;
1: + unsigned int has_auto_swt : 1;
1: };
1:
1: struct sun6i_rtc_dev {
1: - struct rtc_device *rtc;
1: - const struct sun6i_rtc_clk_data *data;
1: - void *base;
1: - int irq;
1: - long unsigned int alarm;
1: - struct clk_hw hw;
1: - struct clk_hw *int_osc;
1: - struct clk *losc;
1: - struct clk *ext_losc;
1: - spinlock_t lock;
1: + struct rtc_device *rtc;
1: + const struct sun6i_rtc_clk_data *data;
1: + void *base;
1: + int irq;
1: + long unsigned int alarm;
1: + struct clk_hw hw;
1: + struct clk_hw *int_osc;
1: + struct clk *losc;
1: + struct clk *ext_losc;
1: + spinlock_t lock;
1: };
1:
1: struct xgene_rtc_dev {
1: - struct rtc_device *rtc;
1: - void *csr_base;
1: - struct clk *clk;
1: - unsigned int irq_wake;
1: - unsigned int irq_enabled;
1: + struct rtc_device *rtc;
1: + void *csr_base;
1: + struct clk *clk;
1: + unsigned int irq_wake;
1: + unsigned int irq_enabled;
1: };
1:
1: struct i2c_board_info {
1: - char type[20];
1: - short unsigned int flags;
1: - short unsigned int addr;
1: - const char *dev_name;
1: - void *platform_data;
1: - struct device_node *of_node;
1: - struct fwnode_handle *fwnode;
1: - const struct property_entry *properties;
1: - const struct resource *resources;
1: - unsigned int num_resources;
1: - int irq;
1: + char type[20];
1: + short unsigned int flags;
1: + short unsigned int addr;
1: + const char *dev_name;
1: + void *platform_data;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + const struct property_entry *properties;
1: + const struct resource *resources;
1: + unsigned int num_resources;
1: + int irq;
1: };
1:
1: struct i2c_devinfo {
1: - struct list_head list;
1: - int busnum;
1: - struct i2c_board_info board_info;
1: + struct list_head list;
1: + int busnum;
1: + struct i2c_board_info board_info;
1: };
1:
1: struct i2c_device_id {
1: - char name[20];
1: - kernel_ulong_t driver_data;
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: };
1:
1: struct i2c_device_identity {
1: - u16 manufacturer_id;
1: - u16 part_id;
1: - u8 die_revision;
1: + u16 manufacturer_id;
1: + u16 part_id;
1: + u8 die_revision;
1: };
1:
1: enum i2c_alert_protocol {
1: - I2C_PROTOCOL_SMBUS_ALERT = 0,
1: - I2C_PROTOCOL_SMBUS_HOST_NOTIFY = 1,
1: + I2C_PROTOCOL_SMBUS_ALERT = 0,
1: + I2C_PROTOCOL_SMBUS_HOST_NOTIFY = 1,
1: };
1:
1: struct i2c_driver {
1: - unsigned int class;
1: - int (*probe)(struct i2c_client *, const struct i2c_device_id *);
1: - int (*remove)(struct i2c_client *);
1: - int (*probe_new)(struct i2c_client *);
1: - void (*shutdown)(struct i2c_client *);
1: - void (*alert)(struct i2c_client *, enum i2c_alert_protocol, unsigned int);
1: - int (*command)(struct i2c_client *, unsigned int, void *);
1: - struct device_driver driver;
1: - const struct i2c_device_id *id_table;
1: - int (*detect)(struct i2c_client *, struct i2c_board_info *);
1: - const short unsigned int *address_list;
1: - struct list_head clients;
1: + unsigned int class;
1: + int (*probe)(struct i2c_client *, const struct i2c_device_id *);
1: + int (*remove)(struct i2c_client *);
1: + int (*probe_new)(struct i2c_client *);
1: + void (*shutdown)(struct i2c_client *);
1: + void (*alert)(struct i2c_client *, enum i2c_alert_protocol, unsigned int);
1: + int (*command)(struct i2c_client *, unsigned int, void *);
1: + struct device_driver driver;
1: + const struct i2c_device_id *id_table;
1: + int (*detect)(struct i2c_client *, struct i2c_board_info *);
1: + const short unsigned int *address_list;
1: + struct list_head clients;
1: };
1:
1: struct i2c_timings {
1: - u32 bus_freq_hz;
1: - u32 scl_rise_ns;
1: - u32 scl_fall_ns;
1: - u32 scl_int_delay_ns;
1: - u32 sda_fall_ns;
1: - u32 sda_hold_ns;
1: - u32 digital_filter_width_ns;
1: - u32 analog_filter_cutoff_freq_hz;
1: + u32 bus_freq_hz;
1: + u32 scl_rise_ns;
1: + u32 scl_fall_ns;
1: + u32 scl_int_delay_ns;
1: + u32 sda_fall_ns;
1: + u32 sda_hold_ns;
1: + u32 digital_filter_width_ns;
1: + u32 analog_filter_cutoff_freq_hz;
1: };
1:
1: struct trace_event_raw_i2c_write {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 msg_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u16 len;
1: - u32 __data_loc_buf;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_i2c_read {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 msg_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u16 len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_i2c_reply {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 msg_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u16 len;
1: - u32 __data_loc_buf;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 msg_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u16 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_i2c_result {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 nr_msgs;
1: - __s16 ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 nr_msgs;
1: + __s16 ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_i2c_write {
1: - u32 buf;
1: + u32 buf;
1: };
1:
1: struct trace_event_data_offsets_i2c_read {};
1:
1: struct trace_event_data_offsets_i2c_reply {
1: - u32 buf;
1: + u32 buf;
1: };
1:
1: struct trace_event_data_offsets_i2c_result {};
1:
1: -typedef void (*btf_trace_i2c_write)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +typedef void (*btf_trace_i2c_write)(void *, const struct i2c_adapter *,
1: + const struct i2c_msg *, int);
1:
1: -typedef void (*btf_trace_i2c_read)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +typedef void (*btf_trace_i2c_read)(void *, const struct i2c_adapter *,
1: + const struct i2c_msg *, int);
1:
1: -typedef void (*btf_trace_i2c_reply)(void *, const struct i2c_adapter *, const struct i2c_msg *, int);
1: +typedef void (*btf_trace_i2c_reply)(void *, const struct i2c_adapter *,
1: + const struct i2c_msg *, int);
1:
1: -typedef void (*btf_trace_i2c_result)(void *, const struct i2c_adapter *, int, int);
1: +typedef void (*btf_trace_i2c_result)(void *, const struct i2c_adapter *, int,
1: + int);
1:
1: struct i2c_dummy_devres {
1: - struct i2c_client *client;
1: + struct i2c_client *client;
1: };
1:
1: struct class_compat___2;
1:
1: struct i2c_cmd_arg {
1: - unsigned int cmd;
1: - void *arg;
1: + unsigned int cmd;
1: + void *arg;
1: };
1:
1: struct i2c_smbus_alert_setup {
1: - int irq;
1: + int irq;
1: };
1:
1: struct trace_event_raw_smbus_write {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u8 command;
1: - __u8 len;
1: - __u32 protocol;
1: - __u8 buf[34];
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 command;
1: + __u8 len;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_smbus_read {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 flags;
1: - __u16 addr;
1: - __u8 command;
1: - __u32 protocol;
1: - __u8 buf[34];
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 flags;
1: + __u16 addr;
1: + __u8 command;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_smbus_reply {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u8 command;
1: - __u8 len;
1: - __u32 protocol;
1: - __u8 buf[34];
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 command;
1: + __u8 len;
1: + __u32 protocol;
1: + __u8 buf[34];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_smbus_result {
1: - struct trace_entry ent;
1: - int adapter_nr;
1: - __u16 addr;
1: - __u16 flags;
1: - __u8 read_write;
1: - __u8 command;
1: - __s16 res;
1: - __u32 protocol;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int adapter_nr;
1: + __u16 addr;
1: + __u16 flags;
1: + __u8 read_write;
1: + __u8 command;
1: + __s16 res;
1: + __u32 protocol;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_smbus_write {};
1: @@ -89793,551 +90949,560 @@ struct trace_event_data_offsets_smbus_reply {};
1:
1: struct trace_event_data_offsets_smbus_result {};
1:
1: -typedef void (*btf_trace_smbus_write)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, const union i2c_smbus_data *);
1: +typedef void (*btf_trace_smbus_write)(void *, const struct i2c_adapter *, u16,
1: + short unsigned int, char, u8, int,
1: + const union i2c_smbus_data *);
1:
1: -typedef void (*btf_trace_smbus_read)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int);
1: +typedef void (*btf_trace_smbus_read)(void *, const struct i2c_adapter *, u16,
1: + short unsigned int, char, u8, int);
1:
1: -typedef void (*btf_trace_smbus_reply)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, const union i2c_smbus_data *, int);
1: +typedef void (*btf_trace_smbus_reply)(void *, const struct i2c_adapter *, u16,
1: + short unsigned int, char, u8, int,
1: + const union i2c_smbus_data *, int);
1:
1: -typedef void (*btf_trace_smbus_result)(void *, const struct i2c_adapter *, u16, short unsigned int, char, u8, int, int);
1: +typedef void (*btf_trace_smbus_result)(void *, const struct i2c_adapter *, u16,
1: + short unsigned int, char, u8, int, int);
1:
1: struct i2c_acpi_handler_data {
1: - struct acpi_connection_info info;
1: - struct i2c_adapter *adapter;
1: + struct acpi_connection_info info;
1: + struct i2c_adapter *adapter;
1: };
1:
1: struct gsb_buffer {
1: - u8 status;
1: - u8 len;
1: - union {
1: - u16 wdata;
1: - u8 bdata;
1: - u8 data[0];
1: - };
1: + u8 status;
1: + u8 len;
1: + union {
1: + u16 wdata;
1: + u8 bdata;
1: + u8 data[0];
1: + };
1: };
1:
1: struct i2c_acpi_lookup {
1: - struct i2c_board_info *info;
1: - acpi_handle adapter_handle;
1: - acpi_handle device_handle;
1: - acpi_handle search_handle;
1: - int n;
1: - int index;
1: - u32 speed;
1: - u32 min_speed;
1: - u32 force_speed;
1: + struct i2c_board_info *info;
1: + acpi_handle adapter_handle;
1: + acpi_handle device_handle;
1: + acpi_handle search_handle;
1: + int n;
1: + int index;
1: + u32 speed;
1: + u32 min_speed;
1: + u32 force_speed;
1: };
1:
1: struct dw_i2c_dev {
1: - struct device *dev;
1: - struct regmap *map;
1: - struct regmap *sysmap;
1: - void *base;
1: - void *ext;
1: - struct completion cmd_complete;
1: - struct clk *clk;
1: - struct clk *pclk;
1: - struct reset_control *rst;
1: - struct i2c_client *slave;
1: - u32 (*get_clk_rate_khz)(struct dw_i2c_dev *);
1: - int cmd_err;
1: - struct i2c_msg *msgs;
1: - int msgs_num;
1: - int msg_write_idx;
1: - u32 tx_buf_len;
1: - u8 *tx_buf;
1: - int msg_read_idx;
1: - u32 rx_buf_len;
1: - u8 *rx_buf;
1: - int msg_err;
1: - unsigned int status;
1: - u32 abort_source;
1: - int irq;
1: - u32 flags;
1: - struct i2c_adapter adapter;
1: - u32 functionality;
1: - u32 master_cfg;
1: - u32 slave_cfg;
1: - unsigned int tx_fifo_depth;
1: - unsigned int rx_fifo_depth;
1: - int rx_outstanding;
1: - struct i2c_timings timings;
1: - u32 sda_hold_time;
1: - u16 ss_hcnt;
1: - u16 ss_lcnt;
1: - u16 fs_hcnt;
1: - u16 fs_lcnt;
1: - u16 fp_hcnt;
1: - u16 fp_lcnt;
1: - u16 hs_hcnt;
1: - u16 hs_lcnt;
1: - int (*acquire_lock)();
1: - void (*release_lock)();
1: - bool shared_with_punit;
1: - void (*disable)(struct dw_i2c_dev *);
1: - void (*disable_int)(struct dw_i2c_dev *);
1: - int (*init)(struct dw_i2c_dev *);
1: - int (*set_sda_hold_time)(struct dw_i2c_dev *);
1: - int mode;
1: - struct i2c_bus_recovery_info rinfo;
1: - bool suspended;
1: + struct device *dev;
1: + struct regmap *map;
1: + struct regmap *sysmap;
1: + void *base;
1: + void *ext;
1: + struct completion cmd_complete;
1: + struct clk *clk;
1: + struct clk *pclk;
1: + struct reset_control *rst;
1: + struct i2c_client *slave;
1: + u32 (*get_clk_rate_khz)(struct dw_i2c_dev *);
1: + int cmd_err;
1: + struct i2c_msg *msgs;
1: + int msgs_num;
1: + int msg_write_idx;
1: + u32 tx_buf_len;
1: + u8 *tx_buf;
1: + int msg_read_idx;
1: + u32 rx_buf_len;
1: + u8 *rx_buf;
1: + int msg_err;
1: + unsigned int status;
1: + u32 abort_source;
1: + int irq;
1: + u32 flags;
1: + struct i2c_adapter adapter;
1: + u32 functionality;
1: + u32 master_cfg;
1: + u32 slave_cfg;
1: + unsigned int tx_fifo_depth;
1: + unsigned int rx_fifo_depth;
1: + int rx_outstanding;
1: + struct i2c_timings timings;
1: + u32 sda_hold_time;
1: + u16 ss_hcnt;
1: + u16 ss_lcnt;
1: + u16 fs_hcnt;
1: + u16 fs_lcnt;
1: + u16 fp_hcnt;
1: + u16 fp_lcnt;
1: + u16 hs_hcnt;
1: + u16 hs_lcnt;
1: + int (*acquire_lock)();
1: + void (*release_lock)();
1: + bool shared_with_punit;
1: + void (*disable)(struct dw_i2c_dev *);
1: + void (*disable_int)(struct dw_i2c_dev *);
1: + int (*init)(struct dw_i2c_dev *);
1: + int (*set_sda_hold_time)(struct dw_i2c_dev *);
1: + int mode;
1: + struct i2c_bus_recovery_info rinfo;
1: + bool suspended;
1: };
1:
1: struct dw_i2c_platform_data {
1: - unsigned int i2c_scl_freq;
1: + unsigned int i2c_scl_freq;
1: };
1:
1: struct bsc_regs {
1: - u32 chip_address;
1: - u32 data_in[8];
1: - u32 cnt_reg;
1: - u32 ctl_reg;
1: - u32 iic_enable;
1: - u32 data_out[8];
1: - u32 ctlhi_reg;
1: - u32 scl_param;
1: + u32 chip_address;
1: + u32 data_in[8];
1: + u32 cnt_reg;
1: + u32 ctl_reg;
1: + u32 iic_enable;
1: + u32 data_out[8];
1: + u32 ctlhi_reg;
1: + u32 scl_param;
1: };
1:
1: struct bsc_clk_param {
1: - u32 hz;
1: - u32 scl_mask;
1: - u32 div_mask;
1: + u32 hz;
1: + u32 scl_mask;
1: + u32 div_mask;
1: };
1:
1: enum bsc_xfer_cmd {
1: - CMD_WR = 0,
1: - CMD_RD = 1,
1: - CMD_WR_NOACK = 2,
1: - CMD_RD_NOACK = 3,
1: + CMD_WR = 0,
1: + CMD_RD = 1,
1: + CMD_WR_NOACK = 2,
1: + CMD_RD_NOACK = 3,
1: };
1:
1: enum bus_speeds {
1: - SPD_375K = 0,
1: - SPD_390K = 1,
1: - SPD_187K = 2,
1: - SPD_200K = 3,
1: - SPD_93K = 4,
1: - SPD_97K = 5,
1: - SPD_46K = 6,
1: - SPD_50K = 7,
1: + SPD_375K = 0,
1: + SPD_390K = 1,
1: + SPD_187K = 2,
1: + SPD_200K = 3,
1: + SPD_93K = 4,
1: + SPD_97K = 5,
1: + SPD_46K = 6,
1: + SPD_50K = 7,
1: };
1:
1: struct brcmstb_i2c_dev {
1: - struct device *device;
1: - void *base;
1: - int irq;
1: - struct bsc_regs *bsc_regmap;
1: - struct i2c_adapter adapter;
1: - struct completion done;
1: - u32 clk_freq_hz;
1: - int data_regsz;
1: + struct device *device;
1: + void *base;
1: + int irq;
1: + struct bsc_regs *bsc_regmap;
1: + struct i2c_adapter adapter;
1: + struct completion done;
1: + u32 clk_freq_hz;
1: + int data_regsz;
1: };
1:
1: struct pps_ktime {
1: - __s64 sec;
1: - __s32 nsec;
1: - __u32 flags;
1: + __s64 sec;
1: + __s32 nsec;
1: + __u32 flags;
1: };
1:
1: struct pps_ktime_compat {
1: - __s64 sec;
1: - __s32 nsec;
1: - __u32 flags;
1: + __s64 sec;
1: + __s32 nsec;
1: + __u32 flags;
1: };
1:
1: struct pps_kinfo {
1: - __u32 assert_sequence;
1: - __u32 clear_sequence;
1: - struct pps_ktime assert_tu;
1: - struct pps_ktime clear_tu;
1: - int current_mode;
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime assert_tu;
1: + struct pps_ktime clear_tu;
1: + int current_mode;
1: };
1:
1: struct pps_kinfo_compat {
1: - __u32 assert_sequence;
1: - __u32 clear_sequence;
1: - struct pps_ktime_compat assert_tu;
1: - struct pps_ktime_compat clear_tu;
1: - int current_mode;
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime_compat assert_tu;
1: + struct pps_ktime_compat clear_tu;
1: + int current_mode;
1: } __attribute__((packed));
1:
1: struct pps_kparams {
1: - int api_version;
1: - int mode;
1: - struct pps_ktime assert_off_tu;
1: - struct pps_ktime clear_off_tu;
1: + int api_version;
1: + int mode;
1: + struct pps_ktime assert_off_tu;
1: + struct pps_ktime clear_off_tu;
1: };
1:
1: struct pps_fdata {
1: - struct pps_kinfo info;
1: - struct pps_ktime timeout;
1: + struct pps_kinfo info;
1: + struct pps_ktime timeout;
1: };
1:
1: struct pps_fdata_compat {
1: - struct pps_kinfo_compat info;
1: - struct pps_ktime_compat timeout;
1: + struct pps_kinfo_compat info;
1: + struct pps_ktime_compat timeout;
1: } __attribute__((packed));
1:
1: struct pps_bind_args {
1: - int tsformat;
1: - int edge;
1: - int consumer;
1: + int tsformat;
1: + int edge;
1: + int consumer;
1: };
1:
1: struct pps_device;
1:
1: struct pps_source_info {
1: - char name[32];
1: - char path[32];
1: - int mode;
1: - void (*echo)(struct pps_device *, int, void *);
1: - struct module *owner;
1: - struct device *dev;
1: + char name[32];
1: + char path[32];
1: + int mode;
1: + void (*echo)(struct pps_device *, int, void *);
1: + struct module *owner;
1: + struct device *dev;
1: };
1:
1: struct pps_device {
1: - struct pps_source_info info;
1: - struct pps_kparams params;
1: - __u32 assert_sequence;
1: - __u32 clear_sequence;
1: - struct pps_ktime assert_tu;
1: - struct pps_ktime clear_tu;
1: - int current_mode;
1: - unsigned int last_ev;
1: - wait_queue_head_t queue;
1: - unsigned int id;
1: - const void *lookup_cookie;
1: - struct cdev cdev;
1: - struct device *dev;
1: - struct fasync_struct *async_queue;
1: - spinlock_t lock;
1: + struct pps_source_info info;
1: + struct pps_kparams params;
1: + __u32 assert_sequence;
1: + __u32 clear_sequence;
1: + struct pps_ktime assert_tu;
1: + struct pps_ktime clear_tu;
1: + int current_mode;
1: + unsigned int last_ev;
1: + wait_queue_head_t queue;
1: + unsigned int id;
1: + const void *lookup_cookie;
1: + struct cdev cdev;
1: + struct device *dev;
1: + struct fasync_struct *async_queue;
1: + spinlock_t lock;
1: };
1:
1: struct pps_event_time {
1: - struct timespec64 ts_real;
1: + struct timespec64 ts_real;
1: };
1:
1: struct ptp_extts_event {
1: - struct ptp_clock_time t;
1: - unsigned int index;
1: - unsigned int flags;
1: - unsigned int rsv[2];
1: + struct ptp_clock_time t;
1: + unsigned int index;
1: + unsigned int flags;
1: + unsigned int rsv[2];
1: };
1:
1: enum ptp_clock_events {
1: - PTP_CLOCK_ALARM = 0,
1: - PTP_CLOCK_EXTTS = 1,
1: - PTP_CLOCK_PPS = 2,
1: - PTP_CLOCK_PPSUSR = 3,
1: + PTP_CLOCK_ALARM = 0,
1: + PTP_CLOCK_EXTTS = 1,
1: + PTP_CLOCK_PPS = 2,
1: + PTP_CLOCK_PPSUSR = 3,
1: };
1:
1: struct ptp_clock_event {
1: - int type;
1: - int index;
1: - union {
1: - u64 timestamp;
1: - struct pps_event_time pps_times;
1: - };
1: + int type;
1: + int index;
1: + union {
1: + u64 timestamp;
1: + struct pps_event_time pps_times;
1: + };
1: };
1:
1: struct timestamp_event_queue {
1: - struct ptp_extts_event buf[128];
1: - int head;
1: - int tail;
1: - spinlock_t lock;
1: + struct ptp_extts_event buf[128];
1: + int head;
1: + int tail;
1: + spinlock_t lock;
1: };
1:
1: struct ptp_clock___2 {
1: - struct posix_clock clock;
1: - struct device dev;
1: - struct ptp_clock_info *info;
1: - dev_t devid;
1: - int index;
1: - struct pps_device *pps_source;
1: - long int dialed_frequency;
1: - struct timestamp_event_queue tsevq;
1: - struct mutex tsevq_mux;
1: - struct mutex pincfg_mux;
1: - wait_queue_head_t tsev_wq;
1: - int defunct;
1: - struct device_attribute *pin_dev_attr;
1: - struct attribute **pin_attr;
1: - struct attribute_group pin_attr_group;
1: - const struct attribute_group *pin_attr_groups[2];
1: - struct kthread_worker *kworker;
1: - struct kthread_delayed_work aux_work;
1: + struct posix_clock clock;
1: + struct device dev;
1: + struct ptp_clock_info *info;
1: + dev_t devid;
1: + int index;
1: + struct pps_device *pps_source;
1: + long int dialed_frequency;
1: + struct timestamp_event_queue tsevq;
1: + struct mutex tsevq_mux;
1: + struct mutex pincfg_mux;
1: + wait_queue_head_t tsev_wq;
1: + int defunct;
1: + struct device_attribute *pin_dev_attr;
1: + struct attribute **pin_attr;
1: + struct attribute_group pin_attr_group;
1: + const struct attribute_group *pin_attr_groups[2];
1: + struct kthread_worker *kworker;
1: + struct kthread_delayed_work aux_work;
1: };
1:
1: struct ptp_clock_caps {
1: - int max_adj;
1: - int n_alarm;
1: - int n_ext_ts;
1: - int n_per_out;
1: - int pps;
1: - int n_pins;
1: - int cross_timestamping;
1: - int adjust_phase;
1: - int rsv[12];
1: + int max_adj;
1: + int n_alarm;
1: + int n_ext_ts;
1: + int n_per_out;
1: + int pps;
1: + int n_pins;
1: + int cross_timestamping;
1: + int adjust_phase;
1: + int rsv[12];
1: };
1:
1: struct ptp_sys_offset {
1: - unsigned int n_samples;
1: - unsigned int rsv[3];
1: - struct ptp_clock_time ts[51];
1: + unsigned int n_samples;
1: + unsigned int rsv[3];
1: + struct ptp_clock_time ts[51];
1: };
1:
1: struct ptp_sys_offset_extended {
1: - unsigned int n_samples;
1: - unsigned int rsv[3];
1: - struct ptp_clock_time ts[75];
1: + unsigned int n_samples;
1: + unsigned int rsv[3];
1: + struct ptp_clock_time ts[75];
1: };
1:
1: struct ptp_sys_offset_precise {
1: - struct ptp_clock_time device;
1: - struct ptp_clock_time sys_realtime;
1: - struct ptp_clock_time sys_monoraw;
1: - unsigned int rsv[4];
1: + struct ptp_clock_time device;
1: + struct ptp_clock_time sys_realtime;
1: + struct ptp_clock_time sys_monoraw;
1: + unsigned int rsv[4];
1: };
1:
1: struct gpio_restart {
1: - struct gpio_desc *reset_gpio;
1: - struct notifier_block restart_handler;
1: - u32 active_delay_ms;
1: - u32 inactive_delay_ms;
1: - u32 wait_delay_ms;
1: + struct gpio_desc *reset_gpio;
1: + struct notifier_block restart_handler;
1: + u32 active_delay_ms;
1: + u32 inactive_delay_ms;
1: + u32 wait_delay_ms;
1: };
1:
1: enum vexpress_reset_func {
1: - FUNC_RESET = 0,
1: - FUNC_SHUTDOWN = 1,
1: - FUNC_REBOOT = 2,
1: + FUNC_RESET = 0,
1: + FUNC_SHUTDOWN = 1,
1: + FUNC_REBOOT = 2,
1: };
1:
1: struct xgene_reboot_context {
1: - struct device *dev;
1: - void *csr;
1: - u32 mask;
1: - struct notifier_block restart_handler;
1: + struct device *dev;
1: + void *csr;
1: + u32 mask;
1: + struct notifier_block restart_handler;
1: };
1:
1: struct syscon_reboot_context {
1: - struct regmap *map;
1: - u32 offset;
1: - u32 value;
1: - u32 mask;
1: - struct notifier_block restart_handler;
1: + struct regmap *map;
1: + u32 offset;
1: + u32 value;
1: + u32 mask;
1: + struct notifier_block restart_handler;
1: };
1:
1: struct reboot_mode_driver {
1: - struct device *dev;
1: - struct list_head head;
1: - int (*write)(struct reboot_mode_driver *, unsigned int);
1: - struct notifier_block reboot_notifier;
1: + struct device *dev;
1: + struct list_head head;
1: + int (*write)(struct reboot_mode_driver *, unsigned int);
1: + struct notifier_block reboot_notifier;
1: };
1:
1: struct mode_info {
1: - const char *mode;
1: - u32 magic;
1: - struct list_head list;
1: + const char *mode;
1: + u32 magic;
1: + struct list_head list;
1: };
1:
1: struct syscon_reboot_mode {
1: - struct regmap *map;
1: - struct reboot_mode_driver reboot;
1: - u32 offset;
1: - u32 mask;
1: + struct regmap *map;
1: + struct reboot_mode_driver reboot;
1: + u32 offset;
1: + u32 mask;
1: };
1:
1: enum power_supply_property {
1: - POWER_SUPPLY_PROP_STATUS = 0,
1: - POWER_SUPPLY_PROP_CHARGE_TYPE = 1,
1: - POWER_SUPPLY_PROP_HEALTH = 2,
1: - POWER_SUPPLY_PROP_PRESENT = 3,
1: - POWER_SUPPLY_PROP_ONLINE = 4,
1: - POWER_SUPPLY_PROP_AUTHENTIC = 5,
1: - POWER_SUPPLY_PROP_TECHNOLOGY = 6,
1: - POWER_SUPPLY_PROP_CYCLE_COUNT = 7,
1: - POWER_SUPPLY_PROP_VOLTAGE_MAX = 8,
1: - POWER_SUPPLY_PROP_VOLTAGE_MIN = 9,
1: - POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN = 10,
1: - POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN = 11,
1: - POWER_SUPPLY_PROP_VOLTAGE_NOW = 12,
1: - POWER_SUPPLY_PROP_VOLTAGE_AVG = 13,
1: - POWER_SUPPLY_PROP_VOLTAGE_OCV = 14,
1: - POWER_SUPPLY_PROP_VOLTAGE_BOOT = 15,
1: - POWER_SUPPLY_PROP_CURRENT_MAX = 16,
1: - POWER_SUPPLY_PROP_CURRENT_NOW = 17,
1: - POWER_SUPPLY_PROP_CURRENT_AVG = 18,
1: - POWER_SUPPLY_PROP_CURRENT_BOOT = 19,
1: - POWER_SUPPLY_PROP_POWER_NOW = 20,
1: - POWER_SUPPLY_PROP_POWER_AVG = 21,
1: - POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN = 22,
1: - POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN = 23,
1: - POWER_SUPPLY_PROP_CHARGE_FULL = 24,
1: - POWER_SUPPLY_PROP_CHARGE_EMPTY = 25,
1: - POWER_SUPPLY_PROP_CHARGE_NOW = 26,
1: - POWER_SUPPLY_PROP_CHARGE_AVG = 27,
1: - POWER_SUPPLY_PROP_CHARGE_COUNTER = 28,
1: - POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT = 29,
1: - POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX = 30,
1: - POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE = 31,
1: - POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX = 32,
1: - POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT = 33,
1: - POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT_MAX = 34,
1: - POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD = 35,
1: - POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD = 36,
1: - POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT = 37,
1: - POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT = 38,
1: - POWER_SUPPLY_PROP_INPUT_POWER_LIMIT = 39,
1: - POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN = 40,
1: - POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN = 41,
1: - POWER_SUPPLY_PROP_ENERGY_FULL = 42,
1: - POWER_SUPPLY_PROP_ENERGY_EMPTY = 43,
1: - POWER_SUPPLY_PROP_ENERGY_NOW = 44,
1: - POWER_SUPPLY_PROP_ENERGY_AVG = 45,
1: - POWER_SUPPLY_PROP_CAPACITY = 46,
1: - POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN = 47,
1: - POWER_SUPPLY_PROP_CAPACITY_ALERT_MAX = 48,
1: - POWER_SUPPLY_PROP_CAPACITY_ERROR_MARGIN = 49,
1: - POWER_SUPPLY_PROP_CAPACITY_LEVEL = 50,
1: - POWER_SUPPLY_PROP_TEMP = 51,
1: - POWER_SUPPLY_PROP_TEMP_MAX = 52,
1: - POWER_SUPPLY_PROP_TEMP_MIN = 53,
1: - POWER_SUPPLY_PROP_TEMP_ALERT_MIN = 54,
1: - POWER_SUPPLY_PROP_TEMP_ALERT_MAX = 55,
1: - POWER_SUPPLY_PROP_TEMP_AMBIENT = 56,
1: - POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MIN = 57,
1: - POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MAX = 58,
1: - POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW = 59,
1: - POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG = 60,
1: - POWER_SUPPLY_PROP_TIME_TO_FULL_NOW = 61,
1: - POWER_SUPPLY_PROP_TIME_TO_FULL_AVG = 62,
1: - POWER_SUPPLY_PROP_TYPE = 63,
1: - POWER_SUPPLY_PROP_USB_TYPE = 64,
1: - POWER_SUPPLY_PROP_SCOPE = 65,
1: - POWER_SUPPLY_PROP_PRECHARGE_CURRENT = 66,
1: - POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT = 67,
1: - POWER_SUPPLY_PROP_CALIBRATE = 68,
1: - POWER_SUPPLY_PROP_MANUFACTURE_YEAR = 69,
1: - POWER_SUPPLY_PROP_MANUFACTURE_MONTH = 70,
1: - POWER_SUPPLY_PROP_MANUFACTURE_DAY = 71,
1: - POWER_SUPPLY_PROP_MODEL_NAME = 72,
1: - POWER_SUPPLY_PROP_MANUFACTURER = 73,
1: - POWER_SUPPLY_PROP_SERIAL_NUMBER = 74,
1: + POWER_SUPPLY_PROP_STATUS = 0,
1: + POWER_SUPPLY_PROP_CHARGE_TYPE = 1,
1: + POWER_SUPPLY_PROP_HEALTH = 2,
1: + POWER_SUPPLY_PROP_PRESENT = 3,
1: + POWER_SUPPLY_PROP_ONLINE = 4,
1: + POWER_SUPPLY_PROP_AUTHENTIC = 5,
1: + POWER_SUPPLY_PROP_TECHNOLOGY = 6,
1: + POWER_SUPPLY_PROP_CYCLE_COUNT = 7,
1: + POWER_SUPPLY_PROP_VOLTAGE_MAX = 8,
1: + POWER_SUPPLY_PROP_VOLTAGE_MIN = 9,
1: + POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN = 10,
1: + POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN = 11,
1: + POWER_SUPPLY_PROP_VOLTAGE_NOW = 12,
1: + POWER_SUPPLY_PROP_VOLTAGE_AVG = 13,
1: + POWER_SUPPLY_PROP_VOLTAGE_OCV = 14,
1: + POWER_SUPPLY_PROP_VOLTAGE_BOOT = 15,
1: + POWER_SUPPLY_PROP_CURRENT_MAX = 16,
1: + POWER_SUPPLY_PROP_CURRENT_NOW = 17,
1: + POWER_SUPPLY_PROP_CURRENT_AVG = 18,
1: + POWER_SUPPLY_PROP_CURRENT_BOOT = 19,
1: + POWER_SUPPLY_PROP_POWER_NOW = 20,
1: + POWER_SUPPLY_PROP_POWER_AVG = 21,
1: + POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN = 22,
1: + POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN = 23,
1: + POWER_SUPPLY_PROP_CHARGE_FULL = 24,
1: + POWER_SUPPLY_PROP_CHARGE_EMPTY = 25,
1: + POWER_SUPPLY_PROP_CHARGE_NOW = 26,
1: + POWER_SUPPLY_PROP_CHARGE_AVG = 27,
1: + POWER_SUPPLY_PROP_CHARGE_COUNTER = 28,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT = 29,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX = 30,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE = 31,
1: + POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX = 32,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT = 33,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT_MAX = 34,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD = 35,
1: + POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD = 36,
1: + POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT = 37,
1: + POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT = 38,
1: + POWER_SUPPLY_PROP_INPUT_POWER_LIMIT = 39,
1: + POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN = 40,
1: + POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN = 41,
1: + POWER_SUPPLY_PROP_ENERGY_FULL = 42,
1: + POWER_SUPPLY_PROP_ENERGY_EMPTY = 43,
1: + POWER_SUPPLY_PROP_ENERGY_NOW = 44,
1: + POWER_SUPPLY_PROP_ENERGY_AVG = 45,
1: + POWER_SUPPLY_PROP_CAPACITY = 46,
1: + POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN = 47,
1: + POWER_SUPPLY_PROP_CAPACITY_ALERT_MAX = 48,
1: + POWER_SUPPLY_PROP_CAPACITY_ERROR_MARGIN = 49,
1: + POWER_SUPPLY_PROP_CAPACITY_LEVEL = 50,
1: + POWER_SUPPLY_PROP_TEMP = 51,
1: + POWER_SUPPLY_PROP_TEMP_MAX = 52,
1: + POWER_SUPPLY_PROP_TEMP_MIN = 53,
1: + POWER_SUPPLY_PROP_TEMP_ALERT_MIN = 54,
1: + POWER_SUPPLY_PROP_TEMP_ALERT_MAX = 55,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT = 56,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MIN = 57,
1: + POWER_SUPPLY_PROP_TEMP_AMBIENT_ALERT_MAX = 58,
1: + POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW = 59,
1: + POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG = 60,
1: + POWER_SUPPLY_PROP_TIME_TO_FULL_NOW = 61,
1: + POWER_SUPPLY_PROP_TIME_TO_FULL_AVG = 62,
1: + POWER_SUPPLY_PROP_TYPE = 63,
1: + POWER_SUPPLY_PROP_USB_TYPE = 64,
1: + POWER_SUPPLY_PROP_SCOPE = 65,
1: + POWER_SUPPLY_PROP_PRECHARGE_CURRENT = 66,
1: + POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT = 67,
1: + POWER_SUPPLY_PROP_CALIBRATE = 68,
1: + POWER_SUPPLY_PROP_MANUFACTURE_YEAR = 69,
1: + POWER_SUPPLY_PROP_MANUFACTURE_MONTH = 70,
1: + POWER_SUPPLY_PROP_MANUFACTURE_DAY = 71,
1: + POWER_SUPPLY_PROP_MODEL_NAME = 72,
1: + POWER_SUPPLY_PROP_MANUFACTURER = 73,
1: + POWER_SUPPLY_PROP_SERIAL_NUMBER = 74,
1: };
1:
1: enum power_supply_type {
1: - POWER_SUPPLY_TYPE_UNKNOWN = 0,
1: - POWER_SUPPLY_TYPE_BATTERY = 1,
1: - POWER_SUPPLY_TYPE_UPS = 2,
1: - POWER_SUPPLY_TYPE_MAINS = 3,
1: - POWER_SUPPLY_TYPE_USB = 4,
1: - POWER_SUPPLY_TYPE_USB_DCP = 5,
1: - POWER_SUPPLY_TYPE_USB_CDP = 6,
1: - POWER_SUPPLY_TYPE_USB_ACA = 7,
1: - POWER_SUPPLY_TYPE_USB_TYPE_C = 8,
1: - POWER_SUPPLY_TYPE_USB_PD = 9,
1: - POWER_SUPPLY_TYPE_USB_PD_DRP = 10,
1: - POWER_SUPPLY_TYPE_APPLE_BRICK_ID = 11,
1: - POWER_SUPPLY_TYPE_WIRELESS = 12,
1: + POWER_SUPPLY_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_TYPE_BATTERY = 1,
1: + POWER_SUPPLY_TYPE_UPS = 2,
1: + POWER_SUPPLY_TYPE_MAINS = 3,
1: + POWER_SUPPLY_TYPE_USB = 4,
1: + POWER_SUPPLY_TYPE_USB_DCP = 5,
1: + POWER_SUPPLY_TYPE_USB_CDP = 6,
1: + POWER_SUPPLY_TYPE_USB_ACA = 7,
1: + POWER_SUPPLY_TYPE_USB_TYPE_C = 8,
1: + POWER_SUPPLY_TYPE_USB_PD = 9,
1: + POWER_SUPPLY_TYPE_USB_PD_DRP = 10,
1: + POWER_SUPPLY_TYPE_APPLE_BRICK_ID = 11,
1: + POWER_SUPPLY_TYPE_WIRELESS = 12,
1: };
1:
1: enum power_supply_usb_type {
1: - POWER_SUPPLY_USB_TYPE_UNKNOWN = 0,
1: - POWER_SUPPLY_USB_TYPE_SDP = 1,
1: - POWER_SUPPLY_USB_TYPE_DCP = 2,
1: - POWER_SUPPLY_USB_TYPE_CDP = 3,
1: - POWER_SUPPLY_USB_TYPE_ACA = 4,
1: - POWER_SUPPLY_USB_TYPE_C = 5,
1: - POWER_SUPPLY_USB_TYPE_PD = 6,
1: - POWER_SUPPLY_USB_TYPE_PD_DRP = 7,
1: - POWER_SUPPLY_USB_TYPE_PD_PPS = 8,
1: - POWER_SUPPLY_USB_TYPE_APPLE_BRICK_ID = 9,
1: + POWER_SUPPLY_USB_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_USB_TYPE_SDP = 1,
1: + POWER_SUPPLY_USB_TYPE_DCP = 2,
1: + POWER_SUPPLY_USB_TYPE_CDP = 3,
1: + POWER_SUPPLY_USB_TYPE_ACA = 4,
1: + POWER_SUPPLY_USB_TYPE_C = 5,
1: + POWER_SUPPLY_USB_TYPE_PD = 6,
1: + POWER_SUPPLY_USB_TYPE_PD_DRP = 7,
1: + POWER_SUPPLY_USB_TYPE_PD_PPS = 8,
1: + POWER_SUPPLY_USB_TYPE_APPLE_BRICK_ID = 9,
1: };
1:
1: enum power_supply_notifier_events {
1: - PSY_EVENT_PROP_CHANGED = 0,
1: + PSY_EVENT_PROP_CHANGED = 0,
1: };
1:
1: union power_supply_propval {
1: - int intval;
1: - const char *strval;
1: + int intval;
1: + const char *strval;
1: };
1:
1: struct power_supply_config {
1: - struct device_node *of_node;
1: - struct fwnode_handle *fwnode;
1: - void *drv_data;
1: - const struct attribute_group **attr_grp;
1: - char **supplied_to;
1: - size_t num_supplicants;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + void *drv_data;
1: + const struct attribute_group **attr_grp;
1: + char **supplied_to;
1: + size_t num_supplicants;
1: };
1:
1: struct power_supply;
1:
1: struct power_supply_desc {
1: - const char *name;
1: - enum power_supply_type type;
1: - const enum power_supply_usb_type *usb_types;
1: - size_t num_usb_types;
1: - const enum power_supply_property *properties;
1: - size_t num_properties;
1: - int (*get_property)(struct power_supply *, enum power_supply_property, union power_supply_propval *);
1: - int (*set_property)(struct power_supply *, enum power_supply_property, const union power_supply_propval *);
1: - int (*property_is_writeable)(struct power_supply *, enum power_supply_property);
1: - void (*external_power_changed)(struct power_supply *);
1: - void (*set_charged)(struct power_supply *);
1: - bool no_thermal;
1: - int use_for_apm;
1: + const char *name;
1: + enum power_supply_type type;
1: + const enum power_supply_usb_type *usb_types;
1: + size_t num_usb_types;
1: + const enum power_supply_property *properties;
1: + size_t num_properties;
1: + int (*get_property)(struct power_supply *, enum power_supply_property,
1: + union power_supply_propval *);
1: + int (*set_property)(struct power_supply *, enum power_supply_property,
1: + const union power_supply_propval *);
1: + int (*property_is_writeable)(struct power_supply *,
1: + enum power_supply_property);
1: + void (*external_power_changed)(struct power_supply *);
1: + void (*set_charged)(struct power_supply *);
1: + bool no_thermal;
1: + int use_for_apm;
1: };
1:
1: struct thermal_zone_device;
1:
1: struct power_supply {
1: - const struct power_supply_desc *desc;
1: - char **supplied_to;
1: - size_t num_supplicants;
1: - char **supplied_from;
1: - size_t num_supplies;
1: - struct device_node *of_node;
1: - void *drv_data;
1: - struct device dev;
1: - struct work_struct changed_work;
1: - struct delayed_work deferred_register_work;
1: - spinlock_t changed_lock;
1: - bool changed;
1: - bool initialized;
1: - bool removing;
1: - atomic_t use_cnt;
1: - struct thermal_zone_device *tzd;
1: - struct thermal_cooling_device *tcd;
1: - struct led_trigger *charging_full_trig;
1: - char *charging_full_trig_name;
1: - struct led_trigger *charging_trig;
1: - char *charging_trig_name;
1: - struct led_trigger *full_trig;
1: - char *full_trig_name;
1: - struct led_trigger *online_trig;
1: - char *online_trig_name;
1: - struct led_trigger *charging_blink_full_solid_trig;
1: - char *charging_blink_full_solid_trig_name;
1: + const struct power_supply_desc *desc;
1: + char **supplied_to;
1: + size_t num_supplicants;
1: + char **supplied_from;
1: + size_t num_supplies;
1: + struct device_node *of_node;
1: + void *drv_data;
1: + struct device dev;
1: + struct work_struct changed_work;
1: + struct delayed_work deferred_register_work;
1: + spinlock_t changed_lock;
1: + bool changed;
1: + bool initialized;
1: + bool removing;
1: + atomic_t use_cnt;
1: + struct thermal_zone_device *tzd;
1: + struct thermal_cooling_device *tcd;
1: + struct led_trigger *charging_full_trig;
1: + char *charging_full_trig_name;
1: + struct led_trigger *charging_trig;
1: + char *charging_trig_name;
1: + struct led_trigger *full_trig;
1: + char *full_trig_name;
1: + struct led_trigger *online_trig;
1: + char *online_trig_name;
1: + struct led_trigger *charging_blink_full_solid_trig;
1: + char *charging_blink_full_solid_trig_name;
1: };
1:
1: enum thermal_device_mode {
1: - THERMAL_DEVICE_DISABLED = 0,
1: - THERMAL_DEVICE_ENABLED = 1,
1: + THERMAL_DEVICE_DISABLED = 0,
1: + THERMAL_DEVICE_ENABLED = 1,
1: };
1:
1: enum thermal_notify_event {
1: - THERMAL_EVENT_UNSPECIFIED = 0,
1: - THERMAL_EVENT_TEMP_SAMPLE = 1,
1: - THERMAL_TRIP_VIOLATED = 2,
1: - THERMAL_TRIP_CHANGED = 3,
1: - THERMAL_DEVICE_DOWN = 4,
1: - THERMAL_DEVICE_UP = 5,
1: - THERMAL_DEVICE_POWER_CAPABILITY_CHANGED = 6,
1: - THERMAL_TABLE_CHANGED = 7,
1: - THERMAL_EVENT_KEEP_ALIVE = 8,
1: + THERMAL_EVENT_UNSPECIFIED = 0,
1: + THERMAL_EVENT_TEMP_SAMPLE = 1,
1: + THERMAL_TRIP_VIOLATED = 2,
1: + THERMAL_TRIP_CHANGED = 3,
1: + THERMAL_DEVICE_DOWN = 4,
1: + THERMAL_DEVICE_UP = 5,
1: + THERMAL_DEVICE_POWER_CAPABILITY_CHANGED = 6,
1: + THERMAL_TABLE_CHANGED = 7,
1: + THERMAL_EVENT_KEEP_ALIVE = 8,
1: };
1:
1: struct thermal_attr;
1: @@ -90349,233 +91514,234 @@ struct thermal_zone_params;
1: struct thermal_governor;
1:
1: struct thermal_zone_device {
1: - int id;
1: - char type[20];
1: - struct device device;
1: - struct attribute_group trips_attribute_group;
1: - struct thermal_attr *trip_temp_attrs;
1: - struct thermal_attr *trip_type_attrs;
1: - struct thermal_attr *trip_hyst_attrs;
1: - enum thermal_device_mode mode;
1: - void *devdata;
1: - int trips;
1: - long unsigned int trips_disabled;
1: - int passive_delay;
1: - int polling_delay;
1: - int temperature;
1: - int last_temperature;
1: - int emul_temperature;
1: - int passive;
1: - int prev_low_trip;
1: - int prev_high_trip;
1: - unsigned int forced_passive;
1: - atomic_t need_update;
1: - struct thermal_zone_device_ops *ops;
1: - struct thermal_zone_params *tzp;
1: - struct thermal_governor *governor;
1: - void *governor_data;
1: - struct list_head thermal_instances;
1: - struct ida ida;
1: - struct mutex lock;
1: - struct list_head node;
1: - struct delayed_work poll_queue;
1: - enum thermal_notify_event notify_event;
1: + int id;
1: + char type[20];
1: + struct device device;
1: + struct attribute_group trips_attribute_group;
1: + struct thermal_attr *trip_temp_attrs;
1: + struct thermal_attr *trip_type_attrs;
1: + struct thermal_attr *trip_hyst_attrs;
1: + enum thermal_device_mode mode;
1: + void *devdata;
1: + int trips;
1: + long unsigned int trips_disabled;
1: + int passive_delay;
1: + int polling_delay;
1: + int temperature;
1: + int last_temperature;
1: + int emul_temperature;
1: + int passive;
1: + int prev_low_trip;
1: + int prev_high_trip;
1: + unsigned int forced_passive;
1: + atomic_t need_update;
1: + struct thermal_zone_device_ops *ops;
1: + struct thermal_zone_params *tzp;
1: + struct thermal_governor *governor;
1: + void *governor_data;
1: + struct list_head thermal_instances;
1: + struct ida ida;
1: + struct mutex lock;
1: + struct list_head node;
1: + struct delayed_work poll_queue;
1: + enum thermal_notify_event notify_event;
1: };
1:
1: struct power_supply_battery_ocv_table {
1: - int ocv;
1: - int capacity;
1: + int ocv;
1: + int capacity;
1: };
1:
1: struct power_supply_resistance_temp_table {
1: - int temp;
1: - int resistance;
1: + int temp;
1: + int resistance;
1: };
1:
1: struct power_supply_battery_info {
1: - int energy_full_design_uwh;
1: - int charge_full_design_uah;
1: - int voltage_min_design_uv;
1: - int voltage_max_design_uv;
1: - int tricklecharge_current_ua;
1: - int precharge_current_ua;
1: - int precharge_voltage_max_uv;
1: - int charge_term_current_ua;
1: - int charge_restart_voltage_uv;
1: - int overvoltage_limit_uv;
1: - int constant_charge_current_max_ua;
1: - int constant_charge_voltage_max_uv;
1: - int factory_internal_resistance_uohm;
1: - int ocv_temp[20];
1: - int temp_ambient_alert_min;
1: - int temp_ambient_alert_max;
1: - int temp_alert_min;
1: - int temp_alert_max;
1: - int temp_min;
1: - int temp_max;
1: - struct power_supply_battery_ocv_table *ocv_table[20];
1: - int ocv_table_size[20];
1: - struct power_supply_resistance_temp_table *resist_table;
1: - int resist_table_size;
1: + int energy_full_design_uwh;
1: + int charge_full_design_uah;
1: + int voltage_min_design_uv;
1: + int voltage_max_design_uv;
1: + int tricklecharge_current_ua;
1: + int precharge_current_ua;
1: + int precharge_voltage_max_uv;
1: + int charge_term_current_ua;
1: + int charge_restart_voltage_uv;
1: + int overvoltage_limit_uv;
1: + int constant_charge_current_max_ua;
1: + int constant_charge_voltage_max_uv;
1: + int factory_internal_resistance_uohm;
1: + int ocv_temp[20];
1: + int temp_ambient_alert_min;
1: + int temp_ambient_alert_max;
1: + int temp_alert_min;
1: + int temp_alert_max;
1: + int temp_min;
1: + int temp_max;
1: + struct power_supply_battery_ocv_table *ocv_table[20];
1: + int ocv_table_size[20];
1: + struct power_supply_resistance_temp_table *resist_table;
1: + int resist_table_size;
1: };
1:
1: enum thermal_trip_type {
1: - THERMAL_TRIP_ACTIVE = 0,
1: - THERMAL_TRIP_PASSIVE = 1,
1: - THERMAL_TRIP_HOT = 2,
1: - THERMAL_TRIP_CRITICAL = 3,
1: + THERMAL_TRIP_ACTIVE = 0,
1: + THERMAL_TRIP_PASSIVE = 1,
1: + THERMAL_TRIP_HOT = 2,
1: + THERMAL_TRIP_CRITICAL = 3,
1: };
1:
1: enum thermal_trend {
1: - THERMAL_TREND_STABLE = 0,
1: - THERMAL_TREND_RAISING = 1,
1: - THERMAL_TREND_DROPPING = 2,
1: - THERMAL_TREND_RAISE_FULL = 3,
1: - THERMAL_TREND_DROP_FULL = 4,
1: + THERMAL_TREND_STABLE = 0,
1: + THERMAL_TREND_RAISING = 1,
1: + THERMAL_TREND_DROPPING = 2,
1: + THERMAL_TREND_RAISE_FULL = 3,
1: + THERMAL_TREND_DROP_FULL = 4,
1: };
1:
1: struct thermal_zone_device_ops {
1: - int (*bind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: - int (*unbind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: - int (*get_temp)(struct thermal_zone_device *, int *);
1: - int (*set_trips)(struct thermal_zone_device *, int, int);
1: - int (*change_mode)(struct thermal_zone_device *, enum thermal_device_mode);
1: - int (*get_trip_type)(struct thermal_zone_device *, int, enum thermal_trip_type *);
1: - int (*get_trip_temp)(struct thermal_zone_device *, int, int *);
1: - int (*set_trip_temp)(struct thermal_zone_device *, int, int);
1: - int (*get_trip_hyst)(struct thermal_zone_device *, int, int *);
1: - int (*set_trip_hyst)(struct thermal_zone_device *, int, int);
1: - int (*get_crit_temp)(struct thermal_zone_device *, int *);
1: - int (*set_emul_temp)(struct thermal_zone_device *, int);
1: - int (*get_trend)(struct thermal_zone_device *, int, enum thermal_trend *);
1: - int (*notify)(struct thermal_zone_device *, int, enum thermal_trip_type);
1: + int (*bind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: + int (*unbind)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: + int (*get_temp)(struct thermal_zone_device *, int *);
1: + int (*set_trips)(struct thermal_zone_device *, int, int);
1: + int (*change_mode)(struct thermal_zone_device *, enum thermal_device_mode);
1: + int (*get_trip_type)(struct thermal_zone_device *, int,
1: + enum thermal_trip_type *);
1: + int (*get_trip_temp)(struct thermal_zone_device *, int, int *);
1: + int (*set_trip_temp)(struct thermal_zone_device *, int, int);
1: + int (*get_trip_hyst)(struct thermal_zone_device *, int, int *);
1: + int (*set_trip_hyst)(struct thermal_zone_device *, int, int);
1: + int (*get_crit_temp)(struct thermal_zone_device *, int *);
1: + int (*set_emul_temp)(struct thermal_zone_device *, int);
1: + int (*get_trend)(struct thermal_zone_device *, int, enum thermal_trend *);
1: + int (*notify)(struct thermal_zone_device *, int, enum thermal_trip_type);
1: };
1:
1: struct thermal_bind_params;
1:
1: struct thermal_zone_params {
1: - char governor_name[20];
1: - bool no_hwmon;
1: - int num_tbps;
1: - struct thermal_bind_params *tbp;
1: - u32 sustainable_power;
1: - s32 k_po;
1: - s32 k_pu;
1: - s32 k_i;
1: - s32 k_d;
1: - s32 integral_cutoff;
1: - int slope;
1: - int offset;
1: + char governor_name[20];
1: + bool no_hwmon;
1: + int num_tbps;
1: + struct thermal_bind_params *tbp;
1: + u32 sustainable_power;
1: + s32 k_po;
1: + s32 k_pu;
1: + s32 k_i;
1: + s32 k_d;
1: + s32 integral_cutoff;
1: + int slope;
1: + int offset;
1: };
1:
1: struct thermal_governor {
1: - char name[20];
1: - int (*bind_to_tz)(struct thermal_zone_device *);
1: - void (*unbind_from_tz)(struct thermal_zone_device *);
1: - int (*throttle)(struct thermal_zone_device *, int);
1: - struct list_head governor_list;
1: + char name[20];
1: + int (*bind_to_tz)(struct thermal_zone_device *);
1: + void (*unbind_from_tz)(struct thermal_zone_device *);
1: + int (*throttle)(struct thermal_zone_device *, int);
1: + struct list_head governor_list;
1: };
1:
1: struct thermal_bind_params {
1: - struct thermal_cooling_device *cdev;
1: - int weight;
1: - int trip_mask;
1: - long unsigned int *binding_limits;
1: - int (*match)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: + struct thermal_cooling_device *cdev;
1: + int weight;
1: + int trip_mask;
1: + long unsigned int *binding_limits;
1: + int (*match)(struct thermal_zone_device *, struct thermal_cooling_device *);
1: };
1:
1: struct psy_am_i_supplied_data {
1: - struct power_supply *psy;
1: - unsigned int count;
1: + struct power_supply *psy;
1: + unsigned int count;
1: };
1:
1: enum {
1: - POWER_SUPPLY_STATUS_UNKNOWN = 0,
1: - POWER_SUPPLY_STATUS_CHARGING = 1,
1: - POWER_SUPPLY_STATUS_DISCHARGING = 2,
1: - POWER_SUPPLY_STATUS_NOT_CHARGING = 3,
1: - POWER_SUPPLY_STATUS_FULL = 4,
1: + POWER_SUPPLY_STATUS_UNKNOWN = 0,
1: + POWER_SUPPLY_STATUS_CHARGING = 1,
1: + POWER_SUPPLY_STATUS_DISCHARGING = 2,
1: + POWER_SUPPLY_STATUS_NOT_CHARGING = 3,
1: + POWER_SUPPLY_STATUS_FULL = 4,
1: };
1:
1: enum {
1: - POWER_SUPPLY_CHARGE_TYPE_UNKNOWN = 0,
1: - POWER_SUPPLY_CHARGE_TYPE_NONE = 1,
1: - POWER_SUPPLY_CHARGE_TYPE_TRICKLE = 2,
1: - POWER_SUPPLY_CHARGE_TYPE_FAST = 3,
1: - POWER_SUPPLY_CHARGE_TYPE_STANDARD = 4,
1: - POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE = 5,
1: - POWER_SUPPLY_CHARGE_TYPE_CUSTOM = 6,
1: - POWER_SUPPLY_CHARGE_TYPE_LONGLIFE = 7,
1: + POWER_SUPPLY_CHARGE_TYPE_UNKNOWN = 0,
1: + POWER_SUPPLY_CHARGE_TYPE_NONE = 1,
1: + POWER_SUPPLY_CHARGE_TYPE_TRICKLE = 2,
1: + POWER_SUPPLY_CHARGE_TYPE_FAST = 3,
1: + POWER_SUPPLY_CHARGE_TYPE_STANDARD = 4,
1: + POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE = 5,
1: + POWER_SUPPLY_CHARGE_TYPE_CUSTOM = 6,
1: + POWER_SUPPLY_CHARGE_TYPE_LONGLIFE = 7,
1: };
1:
1: enum {
1: - POWER_SUPPLY_HEALTH_UNKNOWN = 0,
1: - POWER_SUPPLY_HEALTH_GOOD = 1,
1: - POWER_SUPPLY_HEALTH_OVERHEAT = 2,
1: - POWER_SUPPLY_HEALTH_DEAD = 3,
1: - POWER_SUPPLY_HEALTH_OVERVOLTAGE = 4,
1: - POWER_SUPPLY_HEALTH_UNSPEC_FAILURE = 5,
1: - POWER_SUPPLY_HEALTH_COLD = 6,
1: - POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE = 7,
1: - POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE = 8,
1: - POWER_SUPPLY_HEALTH_OVERCURRENT = 9,
1: - POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED = 10,
1: - POWER_SUPPLY_HEALTH_WARM = 11,
1: - POWER_SUPPLY_HEALTH_COOL = 12,
1: - POWER_SUPPLY_HEALTH_HOT = 13,
1: + POWER_SUPPLY_HEALTH_UNKNOWN = 0,
1: + POWER_SUPPLY_HEALTH_GOOD = 1,
1: + POWER_SUPPLY_HEALTH_OVERHEAT = 2,
1: + POWER_SUPPLY_HEALTH_DEAD = 3,
1: + POWER_SUPPLY_HEALTH_OVERVOLTAGE = 4,
1: + POWER_SUPPLY_HEALTH_UNSPEC_FAILURE = 5,
1: + POWER_SUPPLY_HEALTH_COLD = 6,
1: + POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE = 7,
1: + POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE = 8,
1: + POWER_SUPPLY_HEALTH_OVERCURRENT = 9,
1: + POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED = 10,
1: + POWER_SUPPLY_HEALTH_WARM = 11,
1: + POWER_SUPPLY_HEALTH_COOL = 12,
1: + POWER_SUPPLY_HEALTH_HOT = 13,
1: };
1:
1: enum {
1: - POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0,
1: - POWER_SUPPLY_TECHNOLOGY_NiMH = 1,
1: - POWER_SUPPLY_TECHNOLOGY_LION = 2,
1: - POWER_SUPPLY_TECHNOLOGY_LIPO = 3,
1: - POWER_SUPPLY_TECHNOLOGY_LiFe = 4,
1: - POWER_SUPPLY_TECHNOLOGY_NiCd = 5,
1: - POWER_SUPPLY_TECHNOLOGY_LiMn = 6,
1: + POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0,
1: + POWER_SUPPLY_TECHNOLOGY_NiMH = 1,
1: + POWER_SUPPLY_TECHNOLOGY_LION = 2,
1: + POWER_SUPPLY_TECHNOLOGY_LIPO = 3,
1: + POWER_SUPPLY_TECHNOLOGY_LiFe = 4,
1: + POWER_SUPPLY_TECHNOLOGY_NiCd = 5,
1: + POWER_SUPPLY_TECHNOLOGY_LiMn = 6,
1: };
1:
1: enum {
1: - POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
1: - POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL = 1,
1: - POWER_SUPPLY_CAPACITY_LEVEL_LOW = 2,
1: - POWER_SUPPLY_CAPACITY_LEVEL_NORMAL = 3,
1: - POWER_SUPPLY_CAPACITY_LEVEL_HIGH = 4,
1: - POWER_SUPPLY_CAPACITY_LEVEL_FULL = 5,
1: + POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
1: + POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL = 1,
1: + POWER_SUPPLY_CAPACITY_LEVEL_LOW = 2,
1: + POWER_SUPPLY_CAPACITY_LEVEL_NORMAL = 3,
1: + POWER_SUPPLY_CAPACITY_LEVEL_HIGH = 4,
1: + POWER_SUPPLY_CAPACITY_LEVEL_FULL = 5,
1: };
1:
1: enum {
1: - POWER_SUPPLY_SCOPE_UNKNOWN = 0,
1: - POWER_SUPPLY_SCOPE_SYSTEM = 1,
1: - POWER_SUPPLY_SCOPE_DEVICE = 2,
1: + POWER_SUPPLY_SCOPE_UNKNOWN = 0,
1: + POWER_SUPPLY_SCOPE_SYSTEM = 1,
1: + POWER_SUPPLY_SCOPE_DEVICE = 2,
1: };
1:
1: struct power_supply_attr {
1: - const char *prop_name;
1: - char attr_name[31];
1: - struct device_attribute dev_attr;
1: - const char * const *text_values;
1: - int text_values_len;
1: + const char *prop_name;
1: + char attr_name[31];
1: + struct device_attribute dev_attr;
1: + const char *const *text_values;
1: + int text_values_len;
1: };
1:
1: enum data_source {
1: - CM_BATTERY_PRESENT = 0,
1: - CM_NO_BATTERY = 1,
1: - CM_FUEL_GAUGE = 2,
1: - CM_CHARGER_STAT = 3,
1: + CM_BATTERY_PRESENT = 0,
1: + CM_NO_BATTERY = 1,
1: + CM_FUEL_GAUGE = 2,
1: + CM_CHARGER_STAT = 3,
1: };
1:
1: enum polling_modes {
1: - CM_POLL_DISABLE = 0,
1: - CM_POLL_ALWAYS = 1,
1: - CM_POLL_EXTERNAL_POWER_ONLY = 2,
1: - CM_POLL_CHARGING_ONLY = 3,
1: + CM_POLL_DISABLE = 0,
1: + CM_POLL_ALWAYS = 1,
1: + CM_POLL_EXTERNAL_POWER_ONLY = 2,
1: + CM_POLL_CHARGING_ONLY = 3,
1: };
1:
1: enum cm_batt_temp {
1: - CM_BATT_OK = 0,
1: - CM_BATT_OVERHEAT = 1,
1: - CM_BATT_COLD = 2,
1: + CM_BATT_OK = 0,
1: + CM_BATT_OVERHEAT = 1,
1: + CM_BATT_COLD = 2,
1: };
1:
1: struct charger_regulator;
1: @@ -90583,475 +91749,491 @@ struct charger_regulator;
1: struct charger_manager;
1:
1: struct charger_cable {
1: - const char *extcon_name;
1: - const char *name;
1: - struct extcon_dev *extcon_dev;
1: - u64 extcon_type;
1: - struct work_struct wq;
1: - struct notifier_block nb;
1: - bool attached;
1: - struct charger_regulator *charger;
1: - int min_uA;
1: - int max_uA;
1: - struct charger_manager *cm;
1: + const char *extcon_name;
1: + const char *name;
1: + struct extcon_dev *extcon_dev;
1: + u64 extcon_type;
1: + struct work_struct wq;
1: + struct notifier_block nb;
1: + bool attached;
1: + struct charger_regulator *charger;
1: + int min_uA;
1: + int max_uA;
1: + struct charger_manager *cm;
1: };
1:
1: struct charger_regulator {
1: - const char *regulator_name;
1: - struct regulator *consumer;
1: - int externally_control;
1: - struct charger_cable *cables;
1: - int num_cables;
1: - struct attribute_group attr_grp;
1: - struct device_attribute attr_name;
1: - struct device_attribute attr_state;
1: - struct device_attribute attr_externally_control;
1: - struct attribute *attrs[4];
1: - struct charger_manager *cm;
1: + const char *regulator_name;
1: + struct regulator *consumer;
1: + int externally_control;
1: + struct charger_cable *cables;
1: + int num_cables;
1: + struct attribute_group attr_grp;
1: + struct device_attribute attr_name;
1: + struct device_attribute attr_state;
1: + struct device_attribute attr_externally_control;
1: + struct attribute *attrs[4];
1: + struct charger_manager *cm;
1: };
1:
1: struct charger_desc;
1:
1: struct charger_manager {
1: - struct list_head entry;
1: - struct device *dev;
1: - struct charger_desc *desc;
1: - struct thermal_zone_device *tzd_batt;
1: - bool charger_enabled;
1: - int emergency_stop;
1: - char psy_name_buf[31];
1: - struct power_supply_desc charger_psy_desc;
1: - struct power_supply *charger_psy;
1: - u64 charging_start_time;
1: - u64 charging_end_time;
1: - int battery_status;
1: + struct list_head entry;
1: + struct device *dev;
1: + struct charger_desc *desc;
1: + struct thermal_zone_device *tzd_batt;
1: + bool charger_enabled;
1: + int emergency_stop;
1: + char psy_name_buf[31];
1: + struct power_supply_desc charger_psy_desc;
1: + struct power_supply *charger_psy;
1: + u64 charging_start_time;
1: + u64 charging_end_time;
1: + int battery_status;
1: };
1:
1: struct charger_desc {
1: - const char *psy_name;
1: - enum polling_modes polling_mode;
1: - unsigned int polling_interval_ms;
1: - unsigned int fullbatt_vchkdrop_uV;
1: - unsigned int fullbatt_uV;
1: - unsigned int fullbatt_soc;
1: - unsigned int fullbatt_full_capacity;
1: - enum data_source battery_present;
1: - const char **psy_charger_stat;
1: - int num_charger_regulators;
1: - struct charger_regulator *charger_regulators;
1: - const struct attribute_group **sysfs_groups;
1: - const char *psy_fuel_gauge;
1: - const char *thermal_zone;
1: - int temp_min;
1: - int temp_max;
1: - int temp_diff;
1: - bool measure_battery_temp;
1: - u32 charging_max_duration_ms;
1: - u32 discharging_max_duration_ms;
1: + const char *psy_name;
1: + enum polling_modes polling_mode;
1: + unsigned int polling_interval_ms;
1: + unsigned int fullbatt_vchkdrop_uV;
1: + unsigned int fullbatt_uV;
1: + unsigned int fullbatt_soc;
1: + unsigned int fullbatt_full_capacity;
1: + enum data_source battery_present;
1: + const char **psy_charger_stat;
1: + int num_charger_regulators;
1: + struct charger_regulator *charger_regulators;
1: + const struct attribute_group **sysfs_groups;
1: + const char *psy_fuel_gauge;
1: + const char *thermal_zone;
1: + int temp_min;
1: + int temp_max;
1: + int temp_diff;
1: + bool measure_battery_temp;
1: + u32 charging_max_duration_ms;
1: + u32 discharging_max_duration_ms;
1: };
1:
1: struct thermal_attr {
1: - struct device_attribute attr;
1: - char name[20];
1: + struct device_attribute attr;
1: + char name[20];
1: };
1:
1: struct devfreq_dev_status {
1: - long unsigned int total_time;
1: - long unsigned int busy_time;
1: - long unsigned int current_frequency;
1: - void *private_data;
1: + long unsigned int total_time;
1: + long unsigned int busy_time;
1: + long unsigned int current_frequency;
1: + void *private_data;
1: };
1:
1: struct trace_event_raw_thermal_temperature {
1: - struct trace_entry ent;
1: - u32 __data_loc_thermal_zone;
1: - int id;
1: - int temp_prev;
1: - int temp;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_thermal_zone;
1: + int id;
1: + int temp_prev;
1: + int temp;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cdev_update {
1: - struct trace_entry ent;
1: - u32 __data_loc_type;
1: - long unsigned int target;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + long unsigned int target;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_thermal_zone_trip {
1: - struct trace_entry ent;
1: - u32 __data_loc_thermal_zone;
1: - int id;
1: - int trip;
1: - enum thermal_trip_type trip_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_thermal_zone;
1: + int id;
1: + int trip;
1: + enum thermal_trip_type trip_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_thermal_power_cpu_get_power {
1: - struct trace_entry ent;
1: - u32 __data_loc_cpumask;
1: - long unsigned int freq;
1: - u32 __data_loc_load;
1: - size_t load_len;
1: - u32 dynamic_power;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_cpumask;
1: + long unsigned int freq;
1: + u32 __data_loc_load;
1: + size_t load_len;
1: + u32 dynamic_power;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_thermal_power_cpu_limit {
1: - struct trace_entry ent;
1: - u32 __data_loc_cpumask;
1: - unsigned int freq;
1: - long unsigned int cdev_state;
1: - u32 power;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_cpumask;
1: + unsigned int freq;
1: + long unsigned int cdev_state;
1: + u32 power;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_thermal_power_devfreq_get_power {
1: - struct trace_entry ent;
1: - u32 __data_loc_type;
1: - long unsigned int freq;
1: - u32 load;
1: - u32 dynamic_power;
1: - u32 static_power;
1: - u32 power;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + long unsigned int freq;
1: + u32 load;
1: + u32 dynamic_power;
1: + u32 static_power;
1: + u32 power;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_thermal_power_devfreq_limit {
1: - struct trace_entry ent;
1: - u32 __data_loc_type;
1: - unsigned int freq;
1: - long unsigned int cdev_state;
1: - u32 power;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_type;
1: + unsigned int freq;
1: + long unsigned int cdev_state;
1: + u32 power;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_thermal_temperature {
1: - u32 thermal_zone;
1: + u32 thermal_zone;
1: };
1:
1: struct trace_event_data_offsets_cdev_update {
1: - u32 type;
1: + u32 type;
1: };
1:
1: struct trace_event_data_offsets_thermal_zone_trip {
1: - u32 thermal_zone;
1: + u32 thermal_zone;
1: };
1:
1: struct trace_event_data_offsets_thermal_power_cpu_get_power {
1: - u32 cpumask;
1: - u32 load;
1: + u32 cpumask;
1: + u32 load;
1: };
1:
1: struct trace_event_data_offsets_thermal_power_cpu_limit {
1: - u32 cpumask;
1: + u32 cpumask;
1: };
1:
1: struct trace_event_data_offsets_thermal_power_devfreq_get_power {
1: - u32 type;
1: + u32 type;
1: };
1:
1: struct trace_event_data_offsets_thermal_power_devfreq_limit {
1: - u32 type;
1: + u32 type;
1: };
1:
1: -typedef void (*btf_trace_thermal_temperature)(void *, struct thermal_zone_device *);
1: +typedef void (*btf_trace_thermal_temperature)(void *,
1: + struct thermal_zone_device *);
1:
1: -typedef void (*btf_trace_cdev_update)(void *, struct thermal_cooling_device *, long unsigned int);
1: +typedef void (*btf_trace_cdev_update)(void *, struct thermal_cooling_device *,
1: + long unsigned int);
1:
1: -typedef void (*btf_trace_thermal_zone_trip)(void *, struct thermal_zone_device *, int, enum thermal_trip_type);
1: +typedef void (*btf_trace_thermal_zone_trip)(void *,
1: + struct thermal_zone_device *, int,
1: + enum thermal_trip_type);
1:
1: -typedef void (*btf_trace_thermal_power_cpu_get_power)(void *, const struct cpumask *, long unsigned int, u32 *, size_t, u32);
1: +typedef void (*btf_trace_thermal_power_cpu_get_power)(void *,
1: + const struct cpumask *,
1: + long unsigned int, u32 *,
1: + size_t, u32);
1:
1: -typedef void (*btf_trace_thermal_power_cpu_limit)(void *, const struct cpumask *, unsigned int, long unsigned int, u32);
1: +typedef void (*btf_trace_thermal_power_cpu_limit)(void *,
1: + const struct cpumask *,
1: + unsigned int,
1: + long unsigned int, u32);
1:
1: -typedef void (*btf_trace_thermal_power_devfreq_get_power)(void *, struct thermal_cooling_device *, struct devfreq_dev_status *, long unsigned int, u32, u32, u32);
1: +typedef void (*btf_trace_thermal_power_devfreq_get_power)(
1: + void *, struct thermal_cooling_device *, struct devfreq_dev_status *,
1: + long unsigned int, u32, u32, u32);
1:
1: -typedef void (*btf_trace_thermal_power_devfreq_limit)(void *, struct thermal_cooling_device *, long unsigned int, long unsigned int, u32);
1: +typedef void (*btf_trace_thermal_power_devfreq_limit)(
1: + void *, struct thermal_cooling_device *, long unsigned int,
1: + long unsigned int, u32);
1:
1: struct thermal_instance {
1: - int id;
1: - char name[20];
1: - struct thermal_zone_device *tz;
1: - struct thermal_cooling_device *cdev;
1: - int trip;
1: - bool initialized;
1: - long unsigned int upper;
1: - long unsigned int lower;
1: - long unsigned int target;
1: - char attr_name[20];
1: - struct device_attribute attr;
1: - char weight_attr_name[20];
1: - struct device_attribute weight_attr;
1: - struct list_head tz_node;
1: - struct list_head cdev_node;
1: - unsigned int weight;
1: + int id;
1: + char name[20];
1: + struct thermal_zone_device *tz;
1: + struct thermal_cooling_device *cdev;
1: + int trip;
1: + bool initialized;
1: + long unsigned int upper;
1: + long unsigned int lower;
1: + long unsigned int target;
1: + char attr_name[20];
1: + struct device_attribute attr;
1: + char weight_attr_name[20];
1: + struct device_attribute weight_attr;
1: + struct list_head tz_node;
1: + struct list_head cdev_node;
1: + unsigned int weight;
1: };
1:
1: struct genl_dumpit_info {
1: - const struct genl_family *family;
1: - struct genl_ops op;
1: - struct nlattr **attrs;
1: + const struct genl_family *family;
1: + struct genl_ops op;
1: + struct nlattr **attrs;
1: };
1:
1: enum thermal_genl_attr {
1: - THERMAL_GENL_ATTR_UNSPEC = 0,
1: - THERMAL_GENL_ATTR_TZ = 1,
1: - THERMAL_GENL_ATTR_TZ_ID = 2,
1: - THERMAL_GENL_ATTR_TZ_TEMP = 3,
1: - THERMAL_GENL_ATTR_TZ_TRIP = 4,
1: - THERMAL_GENL_ATTR_TZ_TRIP_ID = 5,
1: - THERMAL_GENL_ATTR_TZ_TRIP_TYPE = 6,
1: - THERMAL_GENL_ATTR_TZ_TRIP_TEMP = 7,
1: - THERMAL_GENL_ATTR_TZ_TRIP_HYST = 8,
1: - THERMAL_GENL_ATTR_TZ_MODE = 9,
1: - THERMAL_GENL_ATTR_TZ_NAME = 10,
1: - THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT = 11,
1: - THERMAL_GENL_ATTR_TZ_GOV = 12,
1: - THERMAL_GENL_ATTR_TZ_GOV_NAME = 13,
1: - THERMAL_GENL_ATTR_CDEV = 14,
1: - THERMAL_GENL_ATTR_CDEV_ID = 15,
1: - THERMAL_GENL_ATTR_CDEV_CUR_STATE = 16,
1: - THERMAL_GENL_ATTR_CDEV_MAX_STATE = 17,
1: - THERMAL_GENL_ATTR_CDEV_NAME = 18,
1: - THERMAL_GENL_ATTR_GOV_NAME = 19,
1: - __THERMAL_GENL_ATTR_MAX = 20,
1: + THERMAL_GENL_ATTR_UNSPEC = 0,
1: + THERMAL_GENL_ATTR_TZ = 1,
1: + THERMAL_GENL_ATTR_TZ_ID = 2,
1: + THERMAL_GENL_ATTR_TZ_TEMP = 3,
1: + THERMAL_GENL_ATTR_TZ_TRIP = 4,
1: + THERMAL_GENL_ATTR_TZ_TRIP_ID = 5,
1: + THERMAL_GENL_ATTR_TZ_TRIP_TYPE = 6,
1: + THERMAL_GENL_ATTR_TZ_TRIP_TEMP = 7,
1: + THERMAL_GENL_ATTR_TZ_TRIP_HYST = 8,
1: + THERMAL_GENL_ATTR_TZ_MODE = 9,
1: + THERMAL_GENL_ATTR_TZ_NAME = 10,
1: + THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT = 11,
1: + THERMAL_GENL_ATTR_TZ_GOV = 12,
1: + THERMAL_GENL_ATTR_TZ_GOV_NAME = 13,
1: + THERMAL_GENL_ATTR_CDEV = 14,
1: + THERMAL_GENL_ATTR_CDEV_ID = 15,
1: + THERMAL_GENL_ATTR_CDEV_CUR_STATE = 16,
1: + THERMAL_GENL_ATTR_CDEV_MAX_STATE = 17,
1: + THERMAL_GENL_ATTR_CDEV_NAME = 18,
1: + THERMAL_GENL_ATTR_GOV_NAME = 19,
1: + __THERMAL_GENL_ATTR_MAX = 20,
1: };
1:
1: enum thermal_genl_sampling {
1: - THERMAL_GENL_SAMPLING_TEMP = 0,
1: - __THERMAL_GENL_SAMPLING_MAX = 1,
1: + THERMAL_GENL_SAMPLING_TEMP = 0,
1: + __THERMAL_GENL_SAMPLING_MAX = 1,
1: };
1:
1: enum thermal_genl_event {
1: - THERMAL_GENL_EVENT_UNSPEC = 0,
1: - THERMAL_GENL_EVENT_TZ_CREATE = 1,
1: - THERMAL_GENL_EVENT_TZ_DELETE = 2,
1: - THERMAL_GENL_EVENT_TZ_DISABLE = 3,
1: - THERMAL_GENL_EVENT_TZ_ENABLE = 4,
1: - THERMAL_GENL_EVENT_TZ_TRIP_UP = 5,
1: - THERMAL_GENL_EVENT_TZ_TRIP_DOWN = 6,
1: - THERMAL_GENL_EVENT_TZ_TRIP_CHANGE = 7,
1: - THERMAL_GENL_EVENT_TZ_TRIP_ADD = 8,
1: - THERMAL_GENL_EVENT_TZ_TRIP_DELETE = 9,
1: - THERMAL_GENL_EVENT_CDEV_ADD = 10,
1: - THERMAL_GENL_EVENT_CDEV_DELETE = 11,
1: - THERMAL_GENL_EVENT_CDEV_STATE_UPDATE = 12,
1: - THERMAL_GENL_EVENT_TZ_GOV_CHANGE = 13,
1: - __THERMAL_GENL_EVENT_MAX = 14,
1: + THERMAL_GENL_EVENT_UNSPEC = 0,
1: + THERMAL_GENL_EVENT_TZ_CREATE = 1,
1: + THERMAL_GENL_EVENT_TZ_DELETE = 2,
1: + THERMAL_GENL_EVENT_TZ_DISABLE = 3,
1: + THERMAL_GENL_EVENT_TZ_ENABLE = 4,
1: + THERMAL_GENL_EVENT_TZ_TRIP_UP = 5,
1: + THERMAL_GENL_EVENT_TZ_TRIP_DOWN = 6,
1: + THERMAL_GENL_EVENT_TZ_TRIP_CHANGE = 7,
1: + THERMAL_GENL_EVENT_TZ_TRIP_ADD = 8,
1: + THERMAL_GENL_EVENT_TZ_TRIP_DELETE = 9,
1: + THERMAL_GENL_EVENT_CDEV_ADD = 10,
1: + THERMAL_GENL_EVENT_CDEV_DELETE = 11,
1: + THERMAL_GENL_EVENT_CDEV_STATE_UPDATE = 12,
1: + THERMAL_GENL_EVENT_TZ_GOV_CHANGE = 13,
1: + __THERMAL_GENL_EVENT_MAX = 14,
1: };
1:
1: enum thermal_genl_cmd {
1: - THERMAL_GENL_CMD_UNSPEC = 0,
1: - THERMAL_GENL_CMD_TZ_GET_ID = 1,
1: - THERMAL_GENL_CMD_TZ_GET_TRIP = 2,
1: - THERMAL_GENL_CMD_TZ_GET_TEMP = 3,
1: - THERMAL_GENL_CMD_TZ_GET_GOV = 4,
1: - THERMAL_GENL_CMD_TZ_GET_MODE = 5,
1: - THERMAL_GENL_CMD_CDEV_GET = 6,
1: - __THERMAL_GENL_CMD_MAX = 7,
1: + THERMAL_GENL_CMD_UNSPEC = 0,
1: + THERMAL_GENL_CMD_TZ_GET_ID = 1,
1: + THERMAL_GENL_CMD_TZ_GET_TRIP = 2,
1: + THERMAL_GENL_CMD_TZ_GET_TEMP = 3,
1: + THERMAL_GENL_CMD_TZ_GET_GOV = 4,
1: + THERMAL_GENL_CMD_TZ_GET_MODE = 5,
1: + THERMAL_GENL_CMD_CDEV_GET = 6,
1: + __THERMAL_GENL_CMD_MAX = 7,
1: };
1:
1: struct param {
1: - struct nlattr **attrs;
1: - struct sk_buff *msg;
1: - const char *name;
1: - int tz_id;
1: - int cdev_id;
1: - int trip_id;
1: - int trip_temp;
1: - int trip_type;
1: - int trip_hyst;
1: - int temp;
1: - int cdev_state;
1: - int cdev_max_state;
1: + struct nlattr **attrs;
1: + struct sk_buff *msg;
1: + const char *name;
1: + int tz_id;
1: + int cdev_id;
1: + int trip_id;
1: + int trip_temp;
1: + int trip_type;
1: + int trip_hyst;
1: + int temp;
1: + int cdev_state;
1: + int cdev_max_state;
1: };
1:
1: typedef int (*cb_t)(struct param *);
1:
1: struct thermal_zone_of_device_ops {
1: - int (*get_temp)(void *, int *);
1: - int (*get_trend)(void *, int, enum thermal_trend *);
1: - int (*set_trips)(void *, int, int);
1: - int (*set_emul_temp)(void *, int);
1: - int (*set_trip_temp)(void *, int, int);
1: + int (*get_temp)(void *, int *);
1: + int (*get_trend)(void *, int, enum thermal_trend *);
1: + int (*set_trips)(void *, int, int);
1: + int (*set_emul_temp)(void *, int);
1: + int (*set_trip_temp)(void *, int, int);
1: };
1:
1: struct thermal_trip {
1: - struct device_node *np;
1: - int temperature;
1: - int hysteresis;
1: - enum thermal_trip_type type;
1: + struct device_node *np;
1: + int temperature;
1: + int hysteresis;
1: + enum thermal_trip_type type;
1: };
1:
1: struct __thermal_cooling_bind_param {
1: - struct device_node *cooling_device;
1: - long unsigned int min;
1: - long unsigned int max;
1: + struct device_node *cooling_device;
1: + long unsigned int min;
1: + long unsigned int max;
1: };
1:
1: struct __thermal_bind_params {
1: - struct __thermal_cooling_bind_param *tcbp;
1: - unsigned int count;
1: - unsigned int trip_id;
1: - unsigned int usage;
1: + struct __thermal_cooling_bind_param *tcbp;
1: + unsigned int count;
1: + unsigned int trip_id;
1: + unsigned int usage;
1: };
1:
1: struct __thermal_zone {
1: - int passive_delay;
1: - int polling_delay;
1: - int slope;
1: - int offset;
1: - int ntrips;
1: - struct thermal_trip *trips;
1: - int num_tbps;
1: - struct __thermal_bind_params *tbps;
1: - void *sensor_data;
1: - const struct thermal_zone_of_device_ops *ops;
1: + int passive_delay;
1: + int polling_delay;
1: + int slope;
1: + int offset;
1: + int ntrips;
1: + struct thermal_trip *trips;
1: + int num_tbps;
1: + struct __thermal_bind_params *tbps;
1: + void *sensor_data;
1: + const struct thermal_zone_of_device_ops *ops;
1: };
1:
1: struct time_in_idle {
1: - u64 time;
1: - u64 timestamp;
1: + u64 time;
1: + u64 timestamp;
1: };
1:
1: struct cpufreq_cooling_device {
1: - int id;
1: - u32 last_load;
1: - unsigned int cpufreq_state;
1: - unsigned int max_level;
1: - struct em_perf_domain *em;
1: - struct cpufreq_policy *policy;
1: - struct list_head node;
1: - struct time_in_idle *idle_time;
1: - struct freq_qos_request qos_req;
1: + int id;
1: + u32 last_load;
1: + unsigned int cpufreq_state;
1: + unsigned int max_level;
1: + struct em_perf_domain *em;
1: + struct cpufreq_policy *policy;
1: + struct list_head node;
1: + struct time_in_idle *idle_time;
1: + struct freq_qos_request qos_req;
1: };
1:
1: enum devfreq_timer {
1: - DEVFREQ_TIMER_DEFERRABLE = 0,
1: - DEVFREQ_TIMER_DELAYED = 1,
1: - DEVFREQ_TIMER_NUM = 2,
1: + DEVFREQ_TIMER_DEFERRABLE = 0,
1: + DEVFREQ_TIMER_DELAYED = 1,
1: + DEVFREQ_TIMER_NUM = 2,
1: };
1:
1: struct devfreq_dev_profile {
1: - long unsigned int initial_freq;
1: - unsigned int polling_ms;
1: - enum devfreq_timer timer;
1: - int (*target)(struct device *, long unsigned int *, u32);
1: - int (*get_dev_status)(struct device *, struct devfreq_dev_status *);
1: - int (*get_cur_freq)(struct device *, long unsigned int *);
1: - void (*exit)(struct device *);
1: - long unsigned int *freq_table;
1: - unsigned int max_state;
1: + long unsigned int initial_freq;
1: + unsigned int polling_ms;
1: + enum devfreq_timer timer;
1: + int (*target)(struct device *, long unsigned int *, u32);
1: + int (*get_dev_status)(struct device *, struct devfreq_dev_status *);
1: + int (*get_cur_freq)(struct device *, long unsigned int *);
1: + void (*exit)(struct device *);
1: + long unsigned int *freq_table;
1: + unsigned int max_state;
1: };
1:
1: struct devfreq_stats {
1: - unsigned int total_trans;
1: - unsigned int *trans_table;
1: - u64 *time_in_state;
1: - u64 last_update;
1: + unsigned int total_trans;
1: + unsigned int *trans_table;
1: + u64 *time_in_state;
1: + u64 last_update;
1: };
1:
1: struct devfreq_governor;
1:
1: struct devfreq {
1: - struct list_head node;
1: - struct mutex lock;
1: - struct device dev;
1: - struct devfreq_dev_profile *profile;
1: - const struct devfreq_governor *governor;
1: - char governor_name[16];
1: - struct notifier_block nb;
1: - struct delayed_work work;
1: - long unsigned int previous_freq;
1: - struct devfreq_dev_status last_status;
1: - void *data;
1: - struct dev_pm_qos_request user_min_freq_req;
1: - struct dev_pm_qos_request user_max_freq_req;
1: - long unsigned int scaling_min_freq;
1: - long unsigned int scaling_max_freq;
1: - bool stop_polling;
1: - long unsigned int suspend_freq;
1: - long unsigned int resume_freq;
1: - atomic_t suspend_count;
1: - struct devfreq_stats stats;
1: - struct srcu_notifier_head transition_notifier_list;
1: - struct notifier_block nb_min;
1: - struct notifier_block nb_max;
1: + struct list_head node;
1: + struct mutex lock;
1: + struct device dev;
1: + struct devfreq_dev_profile *profile;
1: + const struct devfreq_governor *governor;
1: + char governor_name[16];
1: + struct notifier_block nb;
1: + struct delayed_work work;
1: + long unsigned int previous_freq;
1: + struct devfreq_dev_status last_status;
1: + void *data;
1: + struct dev_pm_qos_request user_min_freq_req;
1: + struct dev_pm_qos_request user_max_freq_req;
1: + long unsigned int scaling_min_freq;
1: + long unsigned int scaling_max_freq;
1: + bool stop_polling;
1: + long unsigned int suspend_freq;
1: + long unsigned int resume_freq;
1: + atomic_t suspend_count;
1: + struct devfreq_stats stats;
1: + struct srcu_notifier_head transition_notifier_list;
1: + struct notifier_block nb_min;
1: + struct notifier_block nb_max;
1: };
1:
1: struct devfreq_governor {
1: - struct list_head node;
1: - const char name[16];
1: - const unsigned int immutable;
1: - const unsigned int interrupt_driven;
1: - int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: - int (*event_handler)(struct devfreq *, unsigned int, void *);
1: + struct list_head node;
1: + const char name[16];
1: + const unsigned int immutable;
1: + const unsigned int interrupt_driven;
1: + int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: + int (*event_handler)(struct devfreq *, unsigned int, void *);
1: };
1:
1: struct devfreq_cooling_power {
1: - long unsigned int (*get_static_power)(struct devfreq *, long unsigned int);
1: - long unsigned int (*get_dynamic_power)(struct devfreq *, long unsigned int, long unsigned int);
1: - int (*get_real_power)(struct devfreq *, u32 *, long unsigned int, long unsigned int);
1: - long unsigned int dyn_power_coeff;
1: + long unsigned int (*get_static_power)(struct devfreq *, long unsigned int);
1: + long unsigned int (*get_dynamic_power)(struct devfreq *, long unsigned int,
1: + long unsigned int);
1: + int (*get_real_power)(struct devfreq *, u32 *, long unsigned int,
1: + long unsigned int);
1: + long unsigned int dyn_power_coeff;
1: };
1:
1: struct devfreq_cooling_device {
1: - int id;
1: - struct thermal_cooling_device *cdev;
1: - struct devfreq *devfreq;
1: - long unsigned int cooling_state;
1: - u32 *power_table;
1: - u32 *freq_table;
1: - size_t freq_table_size;
1: - struct devfreq_cooling_power *power_ops;
1: - u32 res_util;
1: - int capped_state;
1: - struct dev_pm_qos_request req_max_freq;
1: + int id;
1: + struct thermal_cooling_device *cdev;
1: + struct devfreq *devfreq;
1: + long unsigned int cooling_state;
1: + u32 *power_table;
1: + u32 *freq_table;
1: + size_t freq_table_size;
1: + struct devfreq_cooling_power *power_ops;
1: + u32 res_util;
1: + int capped_state;
1: + struct dev_pm_qos_request req_max_freq;
1: };
1:
1: struct amlogic_thermal_soc_calib_data {
1: - int A;
1: - int B;
1: - int m;
1: - int n;
1: + int A;
1: + int B;
1: + int m;
1: + int n;
1: };
1:
1: struct amlogic_thermal_data {
1: - int u_efuse_off;
1: - const struct amlogic_thermal_soc_calib_data *calibration_parameters;
1: - const struct regmap_config *regmap_config;
1: + int u_efuse_off;
1: + const struct amlogic_thermal_soc_calib_data *calibration_parameters;
1: + const struct regmap_config *regmap_config;
1: };
1:
1: struct amlogic_thermal {
1: - struct platform_device *pdev;
1: - const struct amlogic_thermal_data *data;
1: - struct regmap *regmap;
1: - struct regmap *sec_ao_map;
1: - struct clk *clk;
1: - struct thermal_zone_device *tzd;
1: - u32 trim_info;
1: + struct platform_device *pdev;
1: + const struct amlogic_thermal_data *data;
1: + struct regmap *regmap;
1: + struct regmap *sec_ao_map;
1: + struct clk *clk;
1: + struct thermal_zone_device *tzd;
1: + u32 trim_info;
1: };
1:
1: struct watchdog_info {
1: - __u32 options;
1: - __u32 firmware_version;
1: - __u8 identity[32];
1: + __u32 options;
1: + __u32 firmware_version;
1: + __u8 identity[32];
1: };
1:
1: struct watchdog_device;
1:
1: struct watchdog_ops {
1: - struct module *owner;
1: - int (*start)(struct watchdog_device *);
1: - int (*stop)(struct watchdog_device *);
1: - int (*ping)(struct watchdog_device *);
1: - unsigned int (*status)(struct watchdog_device *);
1: - int (*set_timeout)(struct watchdog_device *, unsigned int);
1: - int (*set_pretimeout)(struct watchdog_device *, unsigned int);
1: - unsigned int (*get_timeleft)(struct watchdog_device *);
1: - int (*restart)(struct watchdog_device *, long unsigned int, void *);
1: - long int (*ioctl)(struct watchdog_device *, unsigned int, long unsigned int);
1: + struct module *owner;
1: + int (*start)(struct watchdog_device *);
1: + int (*stop)(struct watchdog_device *);
1: + int (*ping)(struct watchdog_device *);
1: + unsigned int (*status)(struct watchdog_device *);
1: + int (*set_timeout)(struct watchdog_device *, unsigned int);
1: + int (*set_pretimeout)(struct watchdog_device *, unsigned int);
1: + unsigned int (*get_timeleft)(struct watchdog_device *);
1: + int (*restart)(struct watchdog_device *, long unsigned int, void *);
1: + long int (*ioctl)(struct watchdog_device *, unsigned int, long unsigned int);
1: };
1:
1: struct watchdog_governor;
1: @@ -91059,196 +92241,196 @@ struct watchdog_governor;
1: struct watchdog_core_data;
1:
1: struct watchdog_device {
1: - int id;
1: - struct device *parent;
1: - const struct attribute_group **groups;
1: - const struct watchdog_info *info;
1: - const struct watchdog_ops *ops;
1: - const struct watchdog_governor *gov;
1: - unsigned int bootstatus;
1: - unsigned int timeout;
1: - unsigned int pretimeout;
1: - unsigned int min_timeout;
1: - unsigned int max_timeout;
1: - unsigned int min_hw_heartbeat_ms;
1: - unsigned int max_hw_heartbeat_ms;
1: - struct notifier_block reboot_nb;
1: - struct notifier_block restart_nb;
1: - void *driver_data;
1: - struct watchdog_core_data *wd_data;
1: - long unsigned int status;
1: - struct list_head deferred;
1: + int id;
1: + struct device *parent;
1: + const struct attribute_group **groups;
1: + const struct watchdog_info *info;
1: + const struct watchdog_ops *ops;
1: + const struct watchdog_governor *gov;
1: + unsigned int bootstatus;
1: + unsigned int timeout;
1: + unsigned int pretimeout;
1: + unsigned int min_timeout;
1: + unsigned int max_timeout;
1: + unsigned int min_hw_heartbeat_ms;
1: + unsigned int max_hw_heartbeat_ms;
1: + struct notifier_block reboot_nb;
1: + struct notifier_block restart_nb;
1: + void *driver_data;
1: + struct watchdog_core_data *wd_data;
1: + long unsigned int status;
1: + struct list_head deferred;
1: };
1:
1: struct watchdog_governor {
1: - const char name[20];
1: - void (*pretimeout)(struct watchdog_device *);
1: + const char name[20];
1: + void (*pretimeout)(struct watchdog_device *);
1: };
1:
1: struct watchdog_core_data {
1: - struct device dev;
1: - struct cdev cdev;
1: - struct watchdog_device *wdd;
1: - struct mutex lock;
1: - ktime_t last_keepalive;
1: - ktime_t last_hw_keepalive;
1: - ktime_t open_deadline;
1: - struct hrtimer timer;
1: - struct kthread_work work;
1: - long unsigned int status;
1: + struct device dev;
1: + struct cdev cdev;
1: + struct watchdog_device *wdd;
1: + struct mutex lock;
1: + ktime_t last_keepalive;
1: + ktime_t last_hw_keepalive;
1: + ktime_t open_deadline;
1: + struct hrtimer timer;
1: + struct kthread_work work;
1: + long unsigned int status;
1: };
1:
1: struct mdp_device_descriptor_s {
1: - __u32 number;
1: - __u32 major;
1: - __u32 minor;
1: - __u32 raid_disk;
1: - __u32 state;
1: - __u32 reserved[27];
1: + __u32 number;
1: + __u32 major;
1: + __u32 minor;
1: + __u32 raid_disk;
1: + __u32 state;
1: + __u32 reserved[27];
1: };
1:
1: typedef struct mdp_device_descriptor_s mdp_disk_t;
1:
1: struct mdp_superblock_s {
1: - __u32 md_magic;
1: - __u32 major_version;
1: - __u32 minor_version;
1: - __u32 patch_version;
1: - __u32 gvalid_words;
1: - __u32 set_uuid0;
1: - __u32 ctime;
1: - __u32 level;
1: - __u32 size;
1: - __u32 nr_disks;
1: - __u32 raid_disks;
1: - __u32 md_minor;
1: - __u32 not_persistent;
1: - __u32 set_uuid1;
1: - __u32 set_uuid2;
1: - __u32 set_uuid3;
1: - __u32 gstate_creserved[16];
1: - __u32 utime;
1: - __u32 state;
1: - __u32 active_disks;
1: - __u32 working_disks;
1: - __u32 failed_disks;
1: - __u32 spare_disks;
1: - __u32 sb_csum;
1: - __u32 events_lo;
1: - __u32 events_hi;
1: - __u32 cp_events_lo;
1: - __u32 cp_events_hi;
1: - __u32 recovery_cp;
1: - __u64 reshape_position;
1: - __u32 new_level;
1: - __u32 delta_disks;
1: - __u32 new_layout;
1: - __u32 new_chunk;
1: - __u32 gstate_sreserved[14];
1: - __u32 layout;
1: - __u32 chunk_size;
1: - __u32 root_pv;
1: - __u32 root_block;
1: - __u32 pstate_reserved[60];
1: - mdp_disk_t disks[27];
1: - __u32 reserved[0];
1: - mdp_disk_t this_disk;
1: + __u32 md_magic;
1: + __u32 major_version;
1: + __u32 minor_version;
1: + __u32 patch_version;
1: + __u32 gvalid_words;
1: + __u32 set_uuid0;
1: + __u32 ctime;
1: + __u32 level;
1: + __u32 size;
1: + __u32 nr_disks;
1: + __u32 raid_disks;
1: + __u32 md_minor;
1: + __u32 not_persistent;
1: + __u32 set_uuid1;
1: + __u32 set_uuid2;
1: + __u32 set_uuid3;
1: + __u32 gstate_creserved[16];
1: + __u32 utime;
1: + __u32 state;
1: + __u32 active_disks;
1: + __u32 working_disks;
1: + __u32 failed_disks;
1: + __u32 spare_disks;
1: + __u32 sb_csum;
1: + __u32 events_lo;
1: + __u32 events_hi;
1: + __u32 cp_events_lo;
1: + __u32 cp_events_hi;
1: + __u32 recovery_cp;
1: + __u64 reshape_position;
1: + __u32 new_level;
1: + __u32 delta_disks;
1: + __u32 new_layout;
1: + __u32 new_chunk;
1: + __u32 gstate_sreserved[14];
1: + __u32 layout;
1: + __u32 chunk_size;
1: + __u32 root_pv;
1: + __u32 root_block;
1: + __u32 pstate_reserved[60];
1: + mdp_disk_t disks[27];
1: + __u32 reserved[0];
1: + mdp_disk_t this_disk;
1: };
1:
1: typedef struct mdp_superblock_s mdp_super_t;
1:
1: struct mdp_superblock_1 {
1: - __le32 magic;
1: - __le32 major_version;
1: - __le32 feature_map;
1: - __le32 pad0;
1: - __u8 set_uuid[16];
1: - char set_name[32];
1: - __le64 ctime;
1: - __le32 level;
1: - __le32 layout;
1: - __le64 size;
1: - __le32 chunksize;
1: - __le32 raid_disks;
1: - union {
1: - __le32 bitmap_offset;
1: - struct {
1: - __le16 offset;
1: - __le16 size;
1: - } ppl;
1: - };
1: - __le32 new_level;
1: - __le64 reshape_position;
1: - __le32 delta_disks;
1: - __le32 new_layout;
1: - __le32 new_chunk;
1: - __le32 new_offset;
1: - __le64 data_offset;
1: - __le64 data_size;
1: - __le64 super_offset;
1: - union {
1: - __le64 recovery_offset;
1: - __le64 journal_tail;
1: - };
1: - __le32 dev_number;
1: - __le32 cnt_corrected_read;
1: - __u8 device_uuid[16];
1: - __u8 devflags;
1: - __u8 bblog_shift;
1: - __le16 bblog_size;
1: - __le32 bblog_offset;
1: - __le64 utime;
1: - __le64 events;
1: - __le64 resync_offset;
1: - __le32 sb_csum;
1: - __le32 max_dev;
1: - __u8 pad3[32];
1: - __le16 dev_roles[0];
1: + __le32 magic;
1: + __le32 major_version;
1: + __le32 feature_map;
1: + __le32 pad0;
1: + __u8 set_uuid[16];
1: + char set_name[32];
1: + __le64 ctime;
1: + __le32 level;
1: + __le32 layout;
1: + __le64 size;
1: + __le32 chunksize;
1: + __le32 raid_disks;
1: + union {
1: + __le32 bitmap_offset;
1: + struct {
1: + __le16 offset;
1: + __le16 size;
1: + } ppl;
1: + };
1: + __le32 new_level;
1: + __le64 reshape_position;
1: + __le32 delta_disks;
1: + __le32 new_layout;
1: + __le32 new_chunk;
1: + __le32 new_offset;
1: + __le64 data_offset;
1: + __le64 data_size;
1: + __le64 super_offset;
1: + union {
1: + __le64 recovery_offset;
1: + __le64 journal_tail;
1: + };
1: + __le32 dev_number;
1: + __le32 cnt_corrected_read;
1: + __u8 device_uuid[16];
1: + __u8 devflags;
1: + __u8 bblog_shift;
1: + __le16 bblog_size;
1: + __le32 bblog_offset;
1: + __le64 utime;
1: + __le64 events;
1: + __le64 resync_offset;
1: + __le32 sb_csum;
1: + __le32 max_dev;
1: + __u8 pad3[32];
1: + __le16 dev_roles[0];
1: };
1:
1: struct mdu_version_s {
1: - int major;
1: - int minor;
1: - int patchlevel;
1: + int major;
1: + int minor;
1: + int patchlevel;
1: };
1:
1: typedef struct mdu_version_s mdu_version_t;
1:
1: struct mdu_array_info_s {
1: - int major_version;
1: - int minor_version;
1: - int patch_version;
1: - unsigned int ctime;
1: - int level;
1: - int size;
1: - int nr_disks;
1: - int raid_disks;
1: - int md_minor;
1: - int not_persistent;
1: - unsigned int utime;
1: - int state;
1: - int active_disks;
1: - int working_disks;
1: - int failed_disks;
1: - int spare_disks;
1: - int layout;
1: - int chunk_size;
1: + int major_version;
1: + int minor_version;
1: + int patch_version;
1: + unsigned int ctime;
1: + int level;
1: + int size;
1: + int nr_disks;
1: + int raid_disks;
1: + int md_minor;
1: + int not_persistent;
1: + unsigned int utime;
1: + int state;
1: + int active_disks;
1: + int working_disks;
1: + int failed_disks;
1: + int spare_disks;
1: + int layout;
1: + int chunk_size;
1: };
1:
1: typedef struct mdu_array_info_s mdu_array_info_t;
1:
1: struct mdu_disk_info_s {
1: - int number;
1: - int major;
1: - int minor;
1: - int raid_disk;
1: - int state;
1: + int number;
1: + int major;
1: + int minor;
1: + int raid_disk;
1: + int state;
1: };
1:
1: typedef struct mdu_disk_info_s mdu_disk_info_t;
1:
1: struct mdu_bitmap_file_s {
1: - char pathname[4096];
1: + char pathname[4096];
1: };
1:
1: typedef struct mdu_bitmap_file_s mdu_bitmap_file_t;
1: @@ -91258,27 +92440,27 @@ struct mddev;
1: struct md_rdev;
1:
1: struct md_cluster_operations {
1: - int (*join)(struct mddev *, int);
1: - int (*leave)(struct mddev *);
1: - int (*slot_number)(struct mddev *);
1: - int (*resync_info_update)(struct mddev *, sector_t, sector_t);
1: - void (*resync_info_get)(struct mddev *, sector_t *, sector_t *);
1: - int (*metadata_update_start)(struct mddev *);
1: - int (*metadata_update_finish)(struct mddev *);
1: - void (*metadata_update_cancel)(struct mddev *);
1: - int (*resync_start)(struct mddev *);
1: - int (*resync_finish)(struct mddev *);
1: - int (*area_resyncing)(struct mddev *, int, sector_t, sector_t);
1: - int (*add_new_disk)(struct mddev *, struct md_rdev *);
1: - void (*add_new_disk_cancel)(struct mddev *);
1: - int (*new_disk_ack)(struct mddev *, bool);
1: - int (*remove_disk)(struct mddev *, struct md_rdev *);
1: - void (*load_bitmaps)(struct mddev *, int);
1: - int (*gather_bitmaps)(struct md_rdev *);
1: - int (*resize_bitmaps)(struct mddev *, sector_t, sector_t);
1: - int (*lock_all_bitmaps)(struct mddev *);
1: - void (*unlock_all_bitmaps)(struct mddev *);
1: - void (*update_size)(struct mddev *, sector_t);
1: + int (*join)(struct mddev *, int);
1: + int (*leave)(struct mddev *);
1: + int (*slot_number)(struct mddev *);
1: + int (*resync_info_update)(struct mddev *, sector_t, sector_t);
1: + void (*resync_info_get)(struct mddev *, sector_t *, sector_t *);
1: + int (*metadata_update_start)(struct mddev *);
1: + int (*metadata_update_finish)(struct mddev *);
1: + void (*metadata_update_cancel)(struct mddev *);
1: + int (*resync_start)(struct mddev *);
1: + int (*resync_finish)(struct mddev *);
1: + int (*area_resyncing)(struct mddev *, int, sector_t, sector_t);
1: + int (*add_new_disk)(struct mddev *, struct md_rdev *);
1: + void (*add_new_disk_cancel)(struct mddev *);
1: + int (*new_disk_ack)(struct mddev *, bool);
1: + int (*remove_disk)(struct mddev *, struct md_rdev *);
1: + void (*load_bitmaps)(struct mddev *, int);
1: + int (*gather_bitmaps)(struct md_rdev *);
1: + int (*resize_bitmaps)(struct mddev *, sector_t, sector_t);
1: + int (*lock_all_bitmaps)(struct mddev *);
1: + void (*unlock_all_bitmaps)(struct mddev *);
1: + void (*update_size)(struct mddev *, sector_t);
1: };
1:
1: struct md_cluster_info;
1: @@ -91290,741 +92472,742 @@ struct md_thread;
1: struct bitmap;
1:
1: struct mddev {
1: - void *private;
1: - struct md_personality *pers;
1: - dev_t unit;
1: - int md_minor;
1: - struct list_head disks;
1: - long unsigned int flags;
1: - long unsigned int sb_flags;
1: - int suspended;
1: - atomic_t active_io;
1: - int ro;
1: - int sysfs_active;
1: - struct gendisk *gendisk;
1: - struct kobject kobj;
1: - int hold_active;
1: - int major_version;
1: - int minor_version;
1: - int patch_version;
1: - int persistent;
1: - int external;
1: - char metadata_type[17];
1: - int chunk_sectors;
1: - time64_t ctime;
1: - time64_t utime;
1: - int level;
1: - int layout;
1: - char clevel[16];
1: - int raid_disks;
1: - int max_disks;
1: - sector_t dev_sectors;
1: - sector_t array_sectors;
1: - int external_size;
1: - __u64 events;
1: - int can_decrease_events;
1: - char uuid[16];
1: - sector_t reshape_position;
1: - int delta_disks;
1: - int new_level;
1: - int new_layout;
1: - int new_chunk_sectors;
1: - int reshape_backwards;
1: - struct md_thread *thread;
1: - struct md_thread *sync_thread;
1: - char *last_sync_action;
1: - sector_t curr_resync;
1: - sector_t curr_resync_completed;
1: - long unsigned int resync_mark;
1: - sector_t resync_mark_cnt;
1: - sector_t curr_mark_cnt;
1: - sector_t resync_max_sectors;
1: - atomic64_t resync_mismatches;
1: - sector_t suspend_lo;
1: - sector_t suspend_hi;
1: - int sync_speed_min;
1: - int sync_speed_max;
1: - int parallel_resync;
1: - int ok_start_degraded;
1: - long unsigned int recovery;
1: - int recovery_disabled;
1: - int in_sync;
1: - struct mutex open_mutex;
1: - struct mutex reconfig_mutex;
1: - atomic_t active;
1: - atomic_t openers;
1: - int changed;
1: - int degraded;
1: - atomic_t recovery_active;
1: - wait_queue_head_t recovery_wait;
1: - sector_t recovery_cp;
1: - sector_t resync_min;
1: - sector_t resync_max;
1: - struct kernfs_node *sysfs_state;
1: - struct kernfs_node *sysfs_action;
1: - struct kernfs_node *sysfs_completed;
1: - struct kernfs_node *sysfs_degraded;
1: - struct kernfs_node *sysfs_level;
1: - struct work_struct del_work;
1: - spinlock_t lock;
1: - wait_queue_head_t sb_wait;
1: - atomic_t pending_writes;
1: - unsigned int safemode;
1: - unsigned int safemode_delay;
1: - struct timer_list safemode_timer;
1: - struct percpu_ref writes_pending;
1: - int sync_checkers;
1: - struct request_queue *queue;
1: - struct bitmap *bitmap;
1: - struct {
1: - struct file *file;
1: - loff_t offset;
1: - long unsigned int space;
1: - loff_t default_offset;
1: - long unsigned int default_space;
1: - struct mutex mutex;
1: - long unsigned int chunksize;
1: - long unsigned int daemon_sleep;
1: - long unsigned int max_write_behind;
1: - int external;
1: - int nodes;
1: - char cluster_name[64];
1: - } bitmap_info;
1: - atomic_t max_corr_read_errors;
1: - struct list_head all_mddevs;
1: - struct attribute_group *to_remove;
1: - struct bio_set bio_set;
1: - struct bio_set sync_set;
1: - mempool_t md_io_pool;
1: - struct bio *flush_bio;
1: - atomic_t flush_pending;
1: - ktime_t start_flush;
1: - ktime_t last_flush;
1: - struct work_struct flush_work;
1: - struct work_struct event_work;
1: - mempool_t *serial_info_pool;
1: - void (*sync_super)(struct mddev *, struct md_rdev *);
1: - struct md_cluster_info *cluster_info;
1: - unsigned int good_device_nr;
1: - unsigned int noio_flag;
1: - bool has_superblocks: 1;
1: - bool fail_last_dev: 1;
1: - bool serialize_policy: 1;
1: + void *private;
1: + struct md_personality *pers;
1: + dev_t unit;
1: + int md_minor;
1: + struct list_head disks;
1: + long unsigned int flags;
1: + long unsigned int sb_flags;
1: + int suspended;
1: + atomic_t active_io;
1: + int ro;
1: + int sysfs_active;
1: + struct gendisk *gendisk;
1: + struct kobject kobj;
1: + int hold_active;
1: + int major_version;
1: + int minor_version;
1: + int patch_version;
1: + int persistent;
1: + int external;
1: + char metadata_type[17];
1: + int chunk_sectors;
1: + time64_t ctime;
1: + time64_t utime;
1: + int level;
1: + int layout;
1: + char clevel[16];
1: + int raid_disks;
1: + int max_disks;
1: + sector_t dev_sectors;
1: + sector_t array_sectors;
1: + int external_size;
1: + __u64 events;
1: + int can_decrease_events;
1: + char uuid[16];
1: + sector_t reshape_position;
1: + int delta_disks;
1: + int new_level;
1: + int new_layout;
1: + int new_chunk_sectors;
1: + int reshape_backwards;
1: + struct md_thread *thread;
1: + struct md_thread *sync_thread;
1: + char *last_sync_action;
1: + sector_t curr_resync;
1: + sector_t curr_resync_completed;
1: + long unsigned int resync_mark;
1: + sector_t resync_mark_cnt;
1: + sector_t curr_mark_cnt;
1: + sector_t resync_max_sectors;
1: + atomic64_t resync_mismatches;
1: + sector_t suspend_lo;
1: + sector_t suspend_hi;
1: + int sync_speed_min;
1: + int sync_speed_max;
1: + int parallel_resync;
1: + int ok_start_degraded;
1: + long unsigned int recovery;
1: + int recovery_disabled;
1: + int in_sync;
1: + struct mutex open_mutex;
1: + struct mutex reconfig_mutex;
1: + atomic_t active;
1: + atomic_t openers;
1: + int changed;
1: + int degraded;
1: + atomic_t recovery_active;
1: + wait_queue_head_t recovery_wait;
1: + sector_t recovery_cp;
1: + sector_t resync_min;
1: + sector_t resync_max;
1: + struct kernfs_node *sysfs_state;
1: + struct kernfs_node *sysfs_action;
1: + struct kernfs_node *sysfs_completed;
1: + struct kernfs_node *sysfs_degraded;
1: + struct kernfs_node *sysfs_level;
1: + struct work_struct del_work;
1: + spinlock_t lock;
1: + wait_queue_head_t sb_wait;
1: + atomic_t pending_writes;
1: + unsigned int safemode;
1: + unsigned int safemode_delay;
1: + struct timer_list safemode_timer;
1: + struct percpu_ref writes_pending;
1: + int sync_checkers;
1: + struct request_queue *queue;
1: + struct bitmap *bitmap;
1: + struct {
1: + struct file *file;
1: + loff_t offset;
1: + long unsigned int space;
1: + loff_t default_offset;
1: + long unsigned int default_space;
1: + struct mutex mutex;
1: + long unsigned int chunksize;
1: + long unsigned int daemon_sleep;
1: + long unsigned int max_write_behind;
1: + int external;
1: + int nodes;
1: + char cluster_name[64];
1: + } bitmap_info;
1: + atomic_t max_corr_read_errors;
1: + struct list_head all_mddevs;
1: + struct attribute_group *to_remove;
1: + struct bio_set bio_set;
1: + struct bio_set sync_set;
1: + mempool_t md_io_pool;
1: + struct bio *flush_bio;
1: + atomic_t flush_pending;
1: + ktime_t start_flush;
1: + ktime_t last_flush;
1: + struct work_struct flush_work;
1: + struct work_struct event_work;
1: + mempool_t *serial_info_pool;
1: + void (*sync_super)(struct mddev *, struct md_rdev *);
1: + struct md_cluster_info *cluster_info;
1: + unsigned int good_device_nr;
1: + unsigned int noio_flag;
1: + bool has_superblocks : 1;
1: + bool fail_last_dev : 1;
1: + bool serialize_policy : 1;
1: };
1:
1: struct serial_in_rdev;
1:
1: struct md_rdev {
1: - struct list_head same_set;
1: - sector_t sectors;
1: - struct mddev *mddev;
1: - int last_events;
1: - struct block_device *meta_bdev;
1: - struct block_device *bdev;
1: - struct page *sb_page;
1: - struct page *bb_page;
1: - int sb_loaded;
1: - __u64 sb_events;
1: - sector_t data_offset;
1: - sector_t new_data_offset;
1: - sector_t sb_start;
1: - int sb_size;
1: - int preferred_minor;
1: - struct kobject kobj;
1: - long unsigned int flags;
1: - wait_queue_head_t blocked_wait;
1: - int desc_nr;
1: - int raid_disk;
1: - int new_raid_disk;
1: - int saved_raid_disk;
1: - union {
1: - sector_t recovery_offset;
1: - sector_t journal_tail;
1: - };
1: - atomic_t nr_pending;
1: - atomic_t read_errors;
1: - time64_t last_read_error;
1: - atomic_t corrected_errors;
1: - struct serial_in_rdev *serial;
1: - struct work_struct del_work;
1: - struct kernfs_node *sysfs_state;
1: - struct kernfs_node *sysfs_unack_badblocks;
1: - struct kernfs_node *sysfs_badblocks;
1: - struct badblocks badblocks;
1: - struct {
1: - short int offset;
1: - unsigned int size;
1: - sector_t sector;
1: - } ppl;
1: + struct list_head same_set;
1: + sector_t sectors;
1: + struct mddev *mddev;
1: + int last_events;
1: + struct block_device *meta_bdev;
1: + struct block_device *bdev;
1: + struct page *sb_page;
1: + struct page *bb_page;
1: + int sb_loaded;
1: + __u64 sb_events;
1: + sector_t data_offset;
1: + sector_t new_data_offset;
1: + sector_t sb_start;
1: + int sb_size;
1: + int preferred_minor;
1: + struct kobject kobj;
1: + long unsigned int flags;
1: + wait_queue_head_t blocked_wait;
1: + int desc_nr;
1: + int raid_disk;
1: + int new_raid_disk;
1: + int saved_raid_disk;
1: + union {
1: + sector_t recovery_offset;
1: + sector_t journal_tail;
1: + };
1: + atomic_t nr_pending;
1: + atomic_t read_errors;
1: + time64_t last_read_error;
1: + atomic_t corrected_errors;
1: + struct serial_in_rdev *serial;
1: + struct work_struct del_work;
1: + struct kernfs_node *sysfs_state;
1: + struct kernfs_node *sysfs_unack_badblocks;
1: + struct kernfs_node *sysfs_badblocks;
1: + struct badblocks badblocks;
1: + struct {
1: + short int offset;
1: + unsigned int size;
1: + sector_t sector;
1: + } ppl;
1: };
1:
1: struct serial_in_rdev {
1: - struct rb_root_cached serial_rb;
1: - spinlock_t serial_lock;
1: - wait_queue_head_t serial_io_wait;
1: + struct rb_root_cached serial_rb;
1: + spinlock_t serial_lock;
1: + wait_queue_head_t serial_io_wait;
1: };
1:
1: enum flag_bits {
1: - Faulty = 0,
1: - In_sync = 1,
1: - Bitmap_sync = 2,
1: - WriteMostly = 3,
1: - AutoDetected = 4,
1: - Blocked = 5,
1: - WriteErrorSeen = 6,
1: - FaultRecorded = 7,
1: - BlockedBadBlocks = 8,
1: - WantReplacement = 9,
1: - Replacement = 10,
1: - Candidate = 11,
1: - Journal = 12,
1: - ClusterRemove = 13,
1: - RemoveSynchronized = 14,
1: - ExternalBbl = 15,
1: - FailFast = 16,
1: - LastDev = 17,
1: - CollisionCheck = 18,
1: + Faulty = 0,
1: + In_sync = 1,
1: + Bitmap_sync = 2,
1: + WriteMostly = 3,
1: + AutoDetected = 4,
1: + Blocked = 5,
1: + WriteErrorSeen = 6,
1: + FaultRecorded = 7,
1: + BlockedBadBlocks = 8,
1: + WantReplacement = 9,
1: + Replacement = 10,
1: + Candidate = 11,
1: + Journal = 12,
1: + ClusterRemove = 13,
1: + RemoveSynchronized = 14,
1: + ExternalBbl = 15,
1: + FailFast = 16,
1: + LastDev = 17,
1: + CollisionCheck = 18,
1: };
1:
1: enum mddev_flags {
1: - MD_ARRAY_FIRST_USE = 0,
1: - MD_CLOSING = 1,
1: - MD_JOURNAL_CLEAN = 2,
1: - MD_HAS_JOURNAL = 3,
1: - MD_CLUSTER_RESYNC_LOCKED = 4,
1: - MD_FAILFAST_SUPPORTED = 5,
1: - MD_HAS_PPL = 6,
1: - MD_HAS_MULTIPLE_PPLS = 7,
1: - MD_ALLOW_SB_UPDATE = 8,
1: - MD_UPDATING_SB = 9,
1: - MD_NOT_READY = 10,
1: - MD_BROKEN = 11,
1: + MD_ARRAY_FIRST_USE = 0,
1: + MD_CLOSING = 1,
1: + MD_JOURNAL_CLEAN = 2,
1: + MD_HAS_JOURNAL = 3,
1: + MD_CLUSTER_RESYNC_LOCKED = 4,
1: + MD_FAILFAST_SUPPORTED = 5,
1: + MD_HAS_PPL = 6,
1: + MD_HAS_MULTIPLE_PPLS = 7,
1: + MD_ALLOW_SB_UPDATE = 8,
1: + MD_UPDATING_SB = 9,
1: + MD_NOT_READY = 10,
1: + MD_BROKEN = 11,
1: };
1:
1: enum mddev_sb_flags {
1: - MD_SB_CHANGE_DEVS = 0,
1: - MD_SB_CHANGE_CLEAN = 1,
1: - MD_SB_CHANGE_PENDING = 2,
1: - MD_SB_NEED_REWRITE = 3,
1: + MD_SB_CHANGE_DEVS = 0,
1: + MD_SB_CHANGE_CLEAN = 1,
1: + MD_SB_CHANGE_PENDING = 2,
1: + MD_SB_NEED_REWRITE = 3,
1: };
1:
1: struct md_personality {
1: - char *name;
1: - int level;
1: - struct list_head list;
1: - struct module *owner;
1: - bool (*make_request)(struct mddev *, struct bio *);
1: - int (*run)(struct mddev *);
1: - int (*start)(struct mddev *);
1: - void (*free)(struct mddev *, void *);
1: - void (*status)(struct seq_file *, struct mddev *);
1: - void (*error_handler)(struct mddev *, struct md_rdev *);
1: - int (*hot_add_disk)(struct mddev *, struct md_rdev *);
1: - int (*hot_remove_disk)(struct mddev *, struct md_rdev *);
1: - int (*spare_active)(struct mddev *);
1: - sector_t (*sync_request)(struct mddev *, sector_t, int *);
1: - int (*resize)(struct mddev *, sector_t);
1: - sector_t (*size)(struct mddev *, sector_t, int);
1: - int (*check_reshape)(struct mddev *);
1: - int (*start_reshape)(struct mddev *);
1: - void (*finish_reshape)(struct mddev *);
1: - void (*update_reshape_pos)(struct mddev *);
1: - void (*quiesce)(struct mddev *, int);
1: - void * (*takeover)(struct mddev *);
1: - int (*change_consistency_policy)(struct mddev *, const char *);
1: + char *name;
1: + int level;
1: + struct list_head list;
1: + struct module *owner;
1: + bool (*make_request)(struct mddev *, struct bio *);
1: + int (*run)(struct mddev *);
1: + int (*start)(struct mddev *);
1: + void (*free)(struct mddev *, void *);
1: + void (*status)(struct seq_file *, struct mddev *);
1: + void (*error_handler)(struct mddev *, struct md_rdev *);
1: + int (*hot_add_disk)(struct mddev *, struct md_rdev *);
1: + int (*hot_remove_disk)(struct mddev *, struct md_rdev *);
1: + int (*spare_active)(struct mddev *);
1: + sector_t (*sync_request)(struct mddev *, sector_t, int *);
1: + int (*resize)(struct mddev *, sector_t);
1: + sector_t (*size)(struct mddev *, sector_t, int);
1: + int (*check_reshape)(struct mddev *);
1: + int (*start_reshape)(struct mddev *);
1: + void (*finish_reshape)(struct mddev *);
1: + void (*update_reshape_pos)(struct mddev *);
1: + void (*quiesce)(struct mddev *, int);
1: + void *(*takeover)(struct mddev *);
1: + int (*change_consistency_policy)(struct mddev *, const char *);
1: };
1:
1: struct md_thread {
1: - void (*run)(struct md_thread *);
1: - struct mddev *mddev;
1: - wait_queue_head_t wqueue;
1: - long unsigned int flags;
1: - struct task_struct *tsk;
1: - long unsigned int timeout;
1: - void *private;
1: + void (*run)(struct md_thread *);
1: + struct mddev *mddev;
1: + wait_queue_head_t wqueue;
1: + long unsigned int flags;
1: + struct task_struct *tsk;
1: + long unsigned int timeout;
1: + void *private;
1: };
1:
1: struct bitmap_page;
1:
1: struct bitmap_counts {
1: - spinlock_t lock;
1: - struct bitmap_page *bp;
1: - long unsigned int pages;
1: - long unsigned int missing_pages;
1: - long unsigned int chunkshift;
1: - long unsigned int chunks;
1: + spinlock_t lock;
1: + struct bitmap_page *bp;
1: + long unsigned int pages;
1: + long unsigned int missing_pages;
1: + long unsigned int chunkshift;
1: + long unsigned int chunks;
1: };
1:
1: struct bitmap_storage {
1: - struct file *file;
1: - struct page *sb_page;
1: - struct page **filemap;
1: - long unsigned int *filemap_attr;
1: - long unsigned int file_pages;
1: - long unsigned int bytes;
1: + struct file *file;
1: + struct page *sb_page;
1: + struct page **filemap;
1: + long unsigned int *filemap_attr;
1: + long unsigned int file_pages;
1: + long unsigned int bytes;
1: };
1:
1: struct bitmap {
1: - struct bitmap_counts counts;
1: - struct mddev *mddev;
1: - __u64 events_cleared;
1: - int need_sync;
1: - struct bitmap_storage storage;
1: - long unsigned int flags;
1: - int allclean;
1: - atomic_t behind_writes;
1: - long unsigned int behind_writes_used;
1: - long unsigned int daemon_lastrun;
1: - long unsigned int last_end_sync;
1: - atomic_t pending_writes;
1: - wait_queue_head_t write_wait;
1: - wait_queue_head_t overflow_wait;
1: - wait_queue_head_t behind_wait;
1: - struct kernfs_node *sysfs_can_clear;
1: - int cluster_slot;
1: + struct bitmap_counts counts;
1: + struct mddev *mddev;
1: + __u64 events_cleared;
1: + int need_sync;
1: + struct bitmap_storage storage;
1: + long unsigned int flags;
1: + int allclean;
1: + atomic_t behind_writes;
1: + long unsigned int behind_writes_used;
1: + long unsigned int daemon_lastrun;
1: + long unsigned int last_end_sync;
1: + atomic_t pending_writes;
1: + wait_queue_head_t write_wait;
1: + wait_queue_head_t overflow_wait;
1: + wait_queue_head_t behind_wait;
1: + struct kernfs_node *sysfs_can_clear;
1: + int cluster_slot;
1: };
1:
1: enum recovery_flags {
1: - MD_RECOVERY_RUNNING = 0,
1: - MD_RECOVERY_SYNC = 1,
1: - MD_RECOVERY_RECOVER = 2,
1: - MD_RECOVERY_INTR = 3,
1: - MD_RECOVERY_DONE = 4,
1: - MD_RECOVERY_NEEDED = 5,
1: - MD_RECOVERY_REQUESTED = 6,
1: - MD_RECOVERY_CHECK = 7,
1: - MD_RECOVERY_RESHAPE = 8,
1: - MD_RECOVERY_FROZEN = 9,
1: - MD_RECOVERY_ERROR = 10,
1: - MD_RECOVERY_WAIT = 11,
1: - MD_RESYNCING_REMOTE = 12,
1: + MD_RECOVERY_RUNNING = 0,
1: + MD_RECOVERY_SYNC = 1,
1: + MD_RECOVERY_RECOVER = 2,
1: + MD_RECOVERY_INTR = 3,
1: + MD_RECOVERY_DONE = 4,
1: + MD_RECOVERY_NEEDED = 5,
1: + MD_RECOVERY_REQUESTED = 6,
1: + MD_RECOVERY_CHECK = 7,
1: + MD_RECOVERY_RESHAPE = 8,
1: + MD_RECOVERY_FROZEN = 9,
1: + MD_RECOVERY_ERROR = 10,
1: + MD_RECOVERY_WAIT = 11,
1: + MD_RESYNCING_REMOTE = 12,
1: };
1:
1: struct md_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct mddev *, char *);
1: - ssize_t (*store)(struct mddev *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct mddev *, char *);
1: + ssize_t (*store)(struct mddev *, const char *, size_t);
1: };
1:
1: struct bitmap_page {
1: - char *map;
1: - unsigned int hijacked: 1;
1: - unsigned int pending: 1;
1: - unsigned int count: 30;
1: + char *map;
1: + unsigned int hijacked : 1;
1: + unsigned int pending : 1;
1: + unsigned int count : 30;
1: };
1:
1: struct md_io {
1: - struct mddev *mddev;
1: - bio_end_io_t *orig_bi_end_io;
1: - void *orig_bi_private;
1: - long unsigned int start_time;
1: - struct hd_struct *part;
1: + struct mddev *mddev;
1: + bio_end_io_t *orig_bi_end_io;
1: + void *orig_bi_private;
1: + long unsigned int start_time;
1: + struct hd_struct *part;
1: };
1:
1: struct super_type {
1: - char *name;
1: - struct module *owner;
1: - int (*load_super)(struct md_rdev *, struct md_rdev *, int);
1: - int (*validate_super)(struct mddev *, struct md_rdev *);
1: - void (*sync_super)(struct mddev *, struct md_rdev *);
1: - long long unsigned int (*rdev_size_change)(struct md_rdev *, sector_t);
1: - int (*allow_new_offset)(struct md_rdev *, long long unsigned int);
1: + char *name;
1: + struct module *owner;
1: + int (*load_super)(struct md_rdev *, struct md_rdev *, int);
1: + int (*validate_super)(struct mddev *, struct md_rdev *);
1: + void (*sync_super)(struct mddev *, struct md_rdev *);
1: + long long unsigned int (*rdev_size_change)(struct md_rdev *, sector_t);
1: + int (*allow_new_offset)(struct md_rdev *, long long unsigned int);
1: };
1:
1: struct rdev_sysfs_entry {
1: - struct attribute attr;
1: - ssize_t (*show)(struct md_rdev *, char *);
1: - ssize_t (*store)(struct md_rdev *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct md_rdev *, char *);
1: + ssize_t (*store)(struct md_rdev *, const char *, size_t);
1: };
1:
1: enum array_state {
1: - clear = 0,
1: - inactive = 1,
1: - suspended = 2,
1: - readonly = 3,
1: - read_auto = 4,
1: - clean = 5,
1: - active = 6,
1: - write_pending = 7,
1: - active_idle = 8,
1: - broken = 9,
1: - bad_word = 10,
1: + clear = 0,
1: + inactive = 1,
1: + suspended = 2,
1: + readonly = 3,
1: + read_auto = 4,
1: + clean = 5,
1: + active = 6,
1: + write_pending = 7,
1: + active_idle = 8,
1: + broken = 9,
1: + bad_word = 10,
1: };
1:
1: struct detected_devices_node {
1: - struct list_head list;
1: - dev_t dev;
1: + struct list_head list;
1: + dev_t dev;
1: };
1:
1: typedef __u16 bitmap_counter_t;
1:
1: enum bitmap_state {
1: - BITMAP_STALE = 1,
1: - BITMAP_WRITE_ERROR = 2,
1: - BITMAP_HOSTENDIAN = 15,
1: + BITMAP_STALE = 1,
1: + BITMAP_WRITE_ERROR = 2,
1: + BITMAP_HOSTENDIAN = 15,
1: };
1:
1: struct bitmap_super_s {
1: - __le32 magic;
1: - __le32 version;
1: - __u8 uuid[16];
1: - __le64 events;
1: - __le64 events_cleared;
1: - __le64 sync_size;
1: - __le32 state;
1: - __le32 chunksize;
1: - __le32 daemon_sleep;
1: - __le32 write_behind;
1: - __le32 sectors_reserved;
1: - __le32 nodes;
1: - __u8 cluster_name[64];
1: - __u8 pad[120];
1: + __le32 magic;
1: + __le32 version;
1: + __u8 uuid[16];
1: + __le64 events;
1: + __le64 events_cleared;
1: + __le64 sync_size;
1: + __le32 state;
1: + __le32 chunksize;
1: + __le32 daemon_sleep;
1: + __le32 write_behind;
1: + __le32 sectors_reserved;
1: + __le32 nodes;
1: + __u8 cluster_name[64];
1: + __u8 pad[120];
1: };
1:
1: typedef struct bitmap_super_s bitmap_super_t;
1:
1: enum bitmap_page_attr {
1: - BITMAP_PAGE_DIRTY = 0,
1: - BITMAP_PAGE_PENDING = 1,
1: - BITMAP_PAGE_NEEDWRITE = 2,
1: + BITMAP_PAGE_DIRTY = 0,
1: + BITMAP_PAGE_PENDING = 1,
1: + BITMAP_PAGE_NEEDWRITE = 2,
1: };
1:
1: struct md_setup_args {
1: - int minor;
1: - int partitioned;
1: - int level;
1: - int chunk;
1: - char *device_names;
1: + int minor;
1: + int partitioned;
1: + int level;
1: + int chunk;
1: + char *device_names;
1: };
1:
1: struct dm_kobject_holder {
1: - struct kobject kobj;
1: - struct completion completion;
1: + struct kobject kobj;
1: + struct completion completion;
1: };
1:
1: enum dev_type {
1: - DEV_UNKNOWN = 0,
1: - DEV_X1 = 1,
1: - DEV_X2 = 2,
1: - DEV_X4 = 3,
1: - DEV_X8 = 4,
1: - DEV_X16 = 5,
1: - DEV_X32 = 6,
1: - DEV_X64 = 7,
1: + DEV_UNKNOWN = 0,
1: + DEV_X1 = 1,
1: + DEV_X2 = 2,
1: + DEV_X4 = 3,
1: + DEV_X8 = 4,
1: + DEV_X16 = 5,
1: + DEV_X32 = 6,
1: + DEV_X64 = 7,
1: };
1:
1: enum hw_event_mc_err_type {
1: - HW_EVENT_ERR_CORRECTED = 0,
1: - HW_EVENT_ERR_UNCORRECTED = 1,
1: - HW_EVENT_ERR_DEFERRED = 2,
1: - HW_EVENT_ERR_FATAL = 3,
1: - HW_EVENT_ERR_INFO = 4,
1: + HW_EVENT_ERR_CORRECTED = 0,
1: + HW_EVENT_ERR_UNCORRECTED = 1,
1: + HW_EVENT_ERR_DEFERRED = 2,
1: + HW_EVENT_ERR_FATAL = 3,
1: + HW_EVENT_ERR_INFO = 4,
1: };
1:
1: enum mem_type {
1: - MEM_EMPTY = 0,
1: - MEM_RESERVED = 1,
1: - MEM_UNKNOWN = 2,
1: - MEM_FPM = 3,
1: - MEM_EDO = 4,
1: - MEM_BEDO = 5,
1: - MEM_SDR = 6,
1: - MEM_RDR = 7,
1: - MEM_DDR = 8,
1: - MEM_RDDR = 9,
1: - MEM_RMBS = 10,
1: - MEM_DDR2 = 11,
1: - MEM_FB_DDR2 = 12,
1: - MEM_RDDR2 = 13,
1: - MEM_XDR = 14,
1: - MEM_DDR3 = 15,
1: - MEM_RDDR3 = 16,
1: - MEM_LRDDR3 = 17,
1: - MEM_DDR4 = 18,
1: - MEM_RDDR4 = 19,
1: - MEM_LRDDR4 = 20,
1: - MEM_NVDIMM = 21,
1: + MEM_EMPTY = 0,
1: + MEM_RESERVED = 1,
1: + MEM_UNKNOWN = 2,
1: + MEM_FPM = 3,
1: + MEM_EDO = 4,
1: + MEM_BEDO = 5,
1: + MEM_SDR = 6,
1: + MEM_RDR = 7,
1: + MEM_DDR = 8,
1: + MEM_RDDR = 9,
1: + MEM_RMBS = 10,
1: + MEM_DDR2 = 11,
1: + MEM_FB_DDR2 = 12,
1: + MEM_RDDR2 = 13,
1: + MEM_XDR = 14,
1: + MEM_DDR3 = 15,
1: + MEM_RDDR3 = 16,
1: + MEM_LRDDR3 = 17,
1: + MEM_DDR4 = 18,
1: + MEM_RDDR4 = 19,
1: + MEM_LRDDR4 = 20,
1: + MEM_NVDIMM = 21,
1: };
1:
1: enum edac_type {
1: - EDAC_UNKNOWN = 0,
1: - EDAC_NONE = 1,
1: - EDAC_RESERVED = 2,
1: - EDAC_PARITY = 3,
1: - EDAC_EC = 4,
1: - EDAC_SECDED = 5,
1: - EDAC_S2ECD2ED = 6,
1: - EDAC_S4ECD4ED = 7,
1: - EDAC_S8ECD8ED = 8,
1: - EDAC_S16ECD16ED = 9,
1: + EDAC_UNKNOWN = 0,
1: + EDAC_NONE = 1,
1: + EDAC_RESERVED = 2,
1: + EDAC_PARITY = 3,
1: + EDAC_EC = 4,
1: + EDAC_SECDED = 5,
1: + EDAC_S2ECD2ED = 6,
1: + EDAC_S4ECD4ED = 7,
1: + EDAC_S8ECD8ED = 8,
1: + EDAC_S16ECD16ED = 9,
1: };
1:
1: enum scrub_type {
1: - SCRUB_UNKNOWN = 0,
1: - SCRUB_NONE = 1,
1: - SCRUB_SW_PROG = 2,
1: - SCRUB_SW_SRC = 3,
1: - SCRUB_SW_PROG_SRC = 4,
1: - SCRUB_SW_TUNABLE = 5,
1: - SCRUB_HW_PROG = 6,
1: - SCRUB_HW_SRC = 7,
1: - SCRUB_HW_PROG_SRC = 8,
1: - SCRUB_HW_TUNABLE = 9,
1: + SCRUB_UNKNOWN = 0,
1: + SCRUB_NONE = 1,
1: + SCRUB_SW_PROG = 2,
1: + SCRUB_SW_SRC = 3,
1: + SCRUB_SW_PROG_SRC = 4,
1: + SCRUB_SW_TUNABLE = 5,
1: + SCRUB_HW_PROG = 6,
1: + SCRUB_HW_SRC = 7,
1: + SCRUB_HW_PROG_SRC = 8,
1: + SCRUB_HW_TUNABLE = 9,
1: };
1:
1: enum edac_mc_layer_type {
1: - EDAC_MC_LAYER_BRANCH = 0,
1: - EDAC_MC_LAYER_CHANNEL = 1,
1: - EDAC_MC_LAYER_SLOT = 2,
1: - EDAC_MC_LAYER_CHIP_SELECT = 3,
1: - EDAC_MC_LAYER_ALL_MEM = 4,
1: + EDAC_MC_LAYER_BRANCH = 0,
1: + EDAC_MC_LAYER_CHANNEL = 1,
1: + EDAC_MC_LAYER_SLOT = 2,
1: + EDAC_MC_LAYER_CHIP_SELECT = 3,
1: + EDAC_MC_LAYER_ALL_MEM = 4,
1: };
1:
1: struct edac_mc_layer {
1: - enum edac_mc_layer_type type;
1: - unsigned int size;
1: - bool is_virt_csrow;
1: + enum edac_mc_layer_type type;
1: + unsigned int size;
1: + bool is_virt_csrow;
1: };
1:
1: struct mem_ctl_info;
1:
1: struct dimm_info {
1: - struct device dev;
1: - char label[32];
1: - unsigned int location[3];
1: - struct mem_ctl_info *mci;
1: - unsigned int idx;
1: - u32 grain;
1: - enum dev_type dtype;
1: - enum mem_type mtype;
1: - enum edac_type edac_mode;
1: - u32 nr_pages;
1: - unsigned int csrow;
1: - unsigned int cschannel;
1: - u16 smbios_handle;
1: - u32 ce_count;
1: - u32 ue_count;
1: + struct device dev;
1: + char label[32];
1: + unsigned int location[3];
1: + struct mem_ctl_info *mci;
1: + unsigned int idx;
1: + u32 grain;
1: + enum dev_type dtype;
1: + enum mem_type mtype;
1: + enum edac_type edac_mode;
1: + u32 nr_pages;
1: + unsigned int csrow;
1: + unsigned int cschannel;
1: + u16 smbios_handle;
1: + u32 ce_count;
1: + u32 ue_count;
1: };
1:
1: struct mcidev_sysfs_attribute;
1:
1: struct edac_raw_error_desc {
1: - char location[256];
1: - char label[296];
1: - long int grain;
1: - u16 error_count;
1: - enum hw_event_mc_err_type type;
1: - int top_layer;
1: - int mid_layer;
1: - int low_layer;
1: - long unsigned int page_frame_number;
1: - long unsigned int offset_in_page;
1: - long unsigned int syndrome;
1: - const char *msg;
1: - const char *other_detail;
1: + char location[256];
1: + char label[296];
1: + long int grain;
1: + u16 error_count;
1: + enum hw_event_mc_err_type type;
1: + int top_layer;
1: + int mid_layer;
1: + int low_layer;
1: + long unsigned int page_frame_number;
1: + long unsigned int offset_in_page;
1: + long unsigned int syndrome;
1: + const char *msg;
1: + const char *other_detail;
1: };
1:
1: struct csrow_info;
1:
1: struct mem_ctl_info {
1: - struct device dev;
1: - struct bus_type *bus;
1: - struct list_head link;
1: - struct module *owner;
1: - long unsigned int mtype_cap;
1: - long unsigned int edac_ctl_cap;
1: - long unsigned int edac_cap;
1: - long unsigned int scrub_cap;
1: - enum scrub_type scrub_mode;
1: - int (*set_sdram_scrub_rate)(struct mem_ctl_info *, u32);
1: - int (*get_sdram_scrub_rate)(struct mem_ctl_info *);
1: - void (*edac_check)(struct mem_ctl_info *);
1: - long unsigned int (*ctl_page_to_phys)(struct mem_ctl_info *, long unsigned int);
1: - int mc_idx;
1: - struct csrow_info **csrows;
1: - unsigned int nr_csrows;
1: - unsigned int num_cschannel;
1: - unsigned int n_layers;
1: - struct edac_mc_layer *layers;
1: - bool csbased;
1: - unsigned int tot_dimms;
1: - struct dimm_info **dimms;
1: - struct device *pdev;
1: - const char *mod_name;
1: - const char *ctl_name;
1: - const char *dev_name;
1: - void *pvt_info;
1: - long unsigned int start_time;
1: - u32 ce_noinfo_count;
1: - u32 ue_noinfo_count;
1: - u32 ue_mc;
1: - u32 ce_mc;
1: - struct completion complete;
1: - const struct mcidev_sysfs_attribute *mc_driver_sysfs_attributes;
1: - struct delayed_work work;
1: - struct edac_raw_error_desc error_desc;
1: - int op_state;
1: - struct dentry *debugfs;
1: - u8 fake_inject_layer[3];
1: - bool fake_inject_ue;
1: - u16 fake_inject_count;
1: + struct device dev;
1: + struct bus_type *bus;
1: + struct list_head link;
1: + struct module *owner;
1: + long unsigned int mtype_cap;
1: + long unsigned int edac_ctl_cap;
1: + long unsigned int edac_cap;
1: + long unsigned int scrub_cap;
1: + enum scrub_type scrub_mode;
1: + int (*set_sdram_scrub_rate)(struct mem_ctl_info *, u32);
1: + int (*get_sdram_scrub_rate)(struct mem_ctl_info *);
1: + void (*edac_check)(struct mem_ctl_info *);
1: + long unsigned int (*ctl_page_to_phys)(struct mem_ctl_info *,
1: + long unsigned int);
1: + int mc_idx;
1: + struct csrow_info **csrows;
1: + unsigned int nr_csrows;
1: + unsigned int num_cschannel;
1: + unsigned int n_layers;
1: + struct edac_mc_layer *layers;
1: + bool csbased;
1: + unsigned int tot_dimms;
1: + struct dimm_info **dimms;
1: + struct device *pdev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + u32 ce_noinfo_count;
1: + u32 ue_noinfo_count;
1: + u32 ue_mc;
1: + u32 ce_mc;
1: + struct completion complete;
1: + const struct mcidev_sysfs_attribute *mc_driver_sysfs_attributes;
1: + struct delayed_work work;
1: + struct edac_raw_error_desc error_desc;
1: + int op_state;
1: + struct dentry *debugfs;
1: + u8 fake_inject_layer[3];
1: + bool fake_inject_ue;
1: + u16 fake_inject_count;
1: };
1:
1: struct rank_info {
1: - int chan_idx;
1: - struct csrow_info *csrow;
1: - struct dimm_info *dimm;
1: - u32 ce_count;
1: + int chan_idx;
1: + struct csrow_info *csrow;
1: + struct dimm_info *dimm;
1: + u32 ce_count;
1: };
1:
1: struct csrow_info {
1: - struct device dev;
1: - long unsigned int first_page;
1: - long unsigned int last_page;
1: - long unsigned int page_mask;
1: - int csrow_idx;
1: - u32 ue_count;
1: - u32 ce_count;
1: - struct mem_ctl_info *mci;
1: - u32 nr_channels;
1: - struct rank_info **channels;
1: + struct device dev;
1: + long unsigned int first_page;
1: + long unsigned int last_page;
1: + long unsigned int page_mask;
1: + int csrow_idx;
1: + u32 ue_count;
1: + u32 ce_count;
1: + struct mem_ctl_info *mci;
1: + u32 nr_channels;
1: + struct rank_info **channels;
1: };
1:
1: struct edac_device_counter {
1: - u32 ue_count;
1: - u32 ce_count;
1: + u32 ue_count;
1: + u32 ce_count;
1: };
1:
1: struct edac_device_ctl_info;
1:
1: struct edac_dev_sysfs_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: - ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: };
1:
1: struct edac_device_instance;
1:
1: struct edac_device_ctl_info {
1: - struct list_head link;
1: - struct module *owner;
1: - int dev_idx;
1: - int log_ue;
1: - int log_ce;
1: - int panic_on_ue;
1: - unsigned int poll_msec;
1: - long unsigned int delay;
1: - struct edac_dev_sysfs_attribute *sysfs_attributes;
1: - struct bus_type *edac_subsys;
1: - int op_state;
1: - struct delayed_work work;
1: - void (*edac_check)(struct edac_device_ctl_info *);
1: - struct device *dev;
1: - const char *mod_name;
1: - const char *ctl_name;
1: - const char *dev_name;
1: - void *pvt_info;
1: - long unsigned int start_time;
1: - struct completion removal_complete;
1: - char name[32];
1: - u32 nr_instances;
1: - struct edac_device_instance *instances;
1: - struct edac_device_counter counters;
1: - struct kobject kobj;
1: + struct list_head link;
1: + struct module *owner;
1: + int dev_idx;
1: + int log_ue;
1: + int log_ce;
1: + int panic_on_ue;
1: + unsigned int poll_msec;
1: + long unsigned int delay;
1: + struct edac_dev_sysfs_attribute *sysfs_attributes;
1: + struct bus_type *edac_subsys;
1: + int op_state;
1: + struct delayed_work work;
1: + void (*edac_check)(struct edac_device_ctl_info *);
1: + struct device *dev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + struct completion removal_complete;
1: + char name[32];
1: + u32 nr_instances;
1: + struct edac_device_instance *instances;
1: + struct edac_device_counter counters;
1: + struct kobject kobj;
1: };
1:
1: struct edac_device_block;
1:
1: struct edac_dev_sysfs_block_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: - ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: - struct edac_device_block *block;
1: - unsigned int value;
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: + struct edac_device_block *block;
1: + unsigned int value;
1: };
1:
1: struct edac_device_block {
1: - struct edac_device_instance *instance;
1: - char name[32];
1: - struct edac_device_counter counters;
1: - int nr_attribs;
1: - struct edac_dev_sysfs_block_attribute *block_attributes;
1: - struct kobject kobj;
1: + struct edac_device_instance *instance;
1: + char name[32];
1: + struct edac_device_counter counters;
1: + int nr_attribs;
1: + struct edac_dev_sysfs_block_attribute *block_attributes;
1: + struct kobject kobj;
1: };
1:
1: struct edac_device_instance {
1: - struct edac_device_ctl_info *ctl;
1: - char name[35];
1: - struct edac_device_counter counters;
1: - u32 nr_blocks;
1: - struct edac_device_block *blocks;
1: - struct kobject kobj;
1: + struct edac_device_ctl_info *ctl;
1: + char name[35];
1: + struct edac_device_counter counters;
1: + u32 nr_blocks;
1: + struct edac_device_block *blocks;
1: + struct kobject kobj;
1: };
1:
1: struct dev_ch_attribute {
1: - struct device_attribute attr;
1: - unsigned int channel;
1: + struct device_attribute attr;
1: + unsigned int channel;
1: };
1:
1: struct ctl_info_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: - ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_device_ctl_info *, const char *, size_t);
1: };
1:
1: struct instance_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct edac_device_instance *, char *);
1: - ssize_t (*store)(struct edac_device_instance *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_device_instance *, char *);
1: + ssize_t (*store)(struct edac_device_instance *, const char *, size_t);
1: };
1:
1: struct edac_pci_counter {
1: - atomic_t pe_count;
1: - atomic_t npe_count;
1: + atomic_t pe_count;
1: + atomic_t npe_count;
1: };
1:
1: struct edac_pci_ctl_info {
1: - struct list_head link;
1: - int pci_idx;
1: - struct bus_type *edac_subsys;
1: - int op_state;
1: - struct delayed_work work;
1: - void (*edac_check)(struct edac_pci_ctl_info *);
1: - struct device *dev;
1: - const char *mod_name;
1: - const char *ctl_name;
1: - const char *dev_name;
1: - void *pvt_info;
1: - long unsigned int start_time;
1: - struct completion complete;
1: - char name[32];
1: - struct edac_pci_counter counters;
1: - struct kobject kobj;
1: + struct list_head link;
1: + int pci_idx;
1: + struct bus_type *edac_subsys;
1: + int op_state;
1: + struct delayed_work work;
1: + void (*edac_check)(struct edac_pci_ctl_info *);
1: + struct device *dev;
1: + const char *mod_name;
1: + const char *ctl_name;
1: + const char *dev_name;
1: + void *pvt_info;
1: + long unsigned int start_time;
1: + struct completion complete;
1: + char name[32];
1: + struct edac_pci_counter counters;
1: + struct kobject kobj;
1: };
1:
1: struct edac_pci_gen_data {
1: - int edac_idx;
1: + int edac_idx;
1: };
1:
1: struct instance_attribute___2 {
1: - struct attribute attr;
1: - ssize_t (*show)(struct edac_pci_ctl_info *, char *);
1: - ssize_t (*store)(struct edac_pci_ctl_info *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct edac_pci_ctl_info *, char *);
1: + ssize_t (*store)(struct edac_pci_ctl_info *, const char *, size_t);
1: };
1:
1: struct edac_pci_dev_attribute {
1: - struct attribute attr;
1: - void *value;
1: - ssize_t (*show)(void *, char *);
1: - ssize_t (*store)(void *, const char *, size_t);
1: + struct attribute attr;
1: + void *value;
1: + ssize_t (*show)(void *, char *);
1: + ssize_t (*store)(void *, const char *, size_t);
1: };
1:
1: typedef void (*pci_parity_check_fn_t)(struct pci_dev *);
1:
1: enum opp_table_access {
1: - OPP_TABLE_ACCESS_UNKNOWN = 0,
1: - OPP_TABLE_ACCESS_EXCLUSIVE = 1,
1: - OPP_TABLE_ACCESS_SHARED = 2,
1: + OPP_TABLE_ACCESS_UNKNOWN = 0,
1: + OPP_TABLE_ACCESS_EXCLUSIVE = 1,
1: + OPP_TABLE_ACCESS_SHARED = 2,
1: };
1:
1: struct icc_path;
1: @@ -92034,37 +93217,37 @@ struct dev_pm_opp___2;
1: struct dev_pm_set_opp_data;
1:
1: struct opp_table___2 {
1: - struct list_head node;
1: - struct blocking_notifier_head head;
1: - struct list_head dev_list;
1: - struct list_head opp_list;
1: - struct kref kref;
1: - struct mutex lock;
1: - struct device_node *np;
1: - long unsigned int clock_latency_ns_max;
1: - unsigned int voltage_tolerance_v1;
1: - unsigned int parsed_static_opps;
1: - enum opp_table_access shared_opp;
1: - struct dev_pm_opp___2 *suspend_opp;
1: - struct mutex genpd_virt_dev_lock;
1: - struct device **genpd_virt_devs;
1: - struct opp_table___2 **required_opp_tables;
1: - unsigned int required_opp_count;
1: - unsigned int *supported_hw;
1: - unsigned int supported_hw_count;
1: - const char *prop_name;
1: - struct clk *clk;
1: - struct regulator **regulators;
1: - int regulator_count;
1: - struct icc_path **paths;
1: - unsigned int path_count;
1: - bool enabled;
1: - bool genpd_performance_state;
1: - bool is_genpd;
1: - int (*set_opp)(struct dev_pm_set_opp_data *);
1: - struct dev_pm_set_opp_data *set_opp_data;
1: - struct dentry *dentry;
1: - char dentry_name[255];
1: + struct list_head node;
1: + struct blocking_notifier_head head;
1: + struct list_head dev_list;
1: + struct list_head opp_list;
1: + struct kref kref;
1: + struct mutex lock;
1: + struct device_node *np;
1: + long unsigned int clock_latency_ns_max;
1: + unsigned int voltage_tolerance_v1;
1: + unsigned int parsed_static_opps;
1: + enum opp_table_access shared_opp;
1: + struct dev_pm_opp___2 *suspend_opp;
1: + struct mutex genpd_virt_dev_lock;
1: + struct device **genpd_virt_devs;
1: + struct opp_table___2 **required_opp_tables;
1: + unsigned int required_opp_count;
1: + unsigned int *supported_hw;
1: + unsigned int supported_hw_count;
1: + const char *prop_name;
1: + struct clk *clk;
1: + struct regulator **regulators;
1: + int regulator_count;
1: + struct icc_path **paths;
1: + unsigned int path_count;
1: + bool enabled;
1: + bool genpd_performance_state;
1: + bool is_genpd;
1: + int (*set_opp)(struct dev_pm_set_opp_data *);
1: + struct dev_pm_set_opp_data *set_opp_data;
1: + struct dentry *dentry;
1: + char dentry_name[255];
1: };
1:
1: struct dev_pm_opp_supply;
1: @@ -92072,859 +93255,860 @@ struct dev_pm_opp_supply;
1: struct dev_pm_opp_icc_bw;
1:
1: struct dev_pm_opp___2 {
1: - struct list_head node;
1: - struct kref kref;
1: - bool available;
1: - bool dynamic;
1: - bool turbo;
1: - bool suspend;
1: - unsigned int pstate;
1: - long unsigned int rate;
1: - unsigned int level;
1: - struct dev_pm_opp_supply *supplies;
1: - struct dev_pm_opp_icc_bw *bandwidth;
1: - long unsigned int clock_latency_ns;
1: - struct dev_pm_opp___2 **required_opps;
1: - struct opp_table___2 *opp_table;
1: - struct device_node *np;
1: - struct dentry *dentry;
1: + struct list_head node;
1: + struct kref kref;
1: + bool available;
1: + bool dynamic;
1: + bool turbo;
1: + bool suspend;
1: + unsigned int pstate;
1: + long unsigned int rate;
1: + unsigned int level;
1: + struct dev_pm_opp_supply *supplies;
1: + struct dev_pm_opp_icc_bw *bandwidth;
1: + long unsigned int clock_latency_ns;
1: + struct dev_pm_opp___2 **required_opps;
1: + struct opp_table___2 *opp_table;
1: + struct device_node *np;
1: + struct dentry *dentry;
1: };
1:
1: enum dev_pm_opp_event {
1: - OPP_EVENT_ADD = 0,
1: - OPP_EVENT_REMOVE = 1,
1: - OPP_EVENT_ENABLE = 2,
1: - OPP_EVENT_DISABLE = 3,
1: - OPP_EVENT_ADJUST_VOLTAGE = 4,
1: + OPP_EVENT_ADD = 0,
1: + OPP_EVENT_REMOVE = 1,
1: + OPP_EVENT_ENABLE = 2,
1: + OPP_EVENT_DISABLE = 3,
1: + OPP_EVENT_ADJUST_VOLTAGE = 4,
1: };
1:
1: struct dev_pm_opp_supply {
1: - long unsigned int u_volt;
1: - long unsigned int u_volt_min;
1: - long unsigned int u_volt_max;
1: - long unsigned int u_amp;
1: + long unsigned int u_volt;
1: + long unsigned int u_volt_min;
1: + long unsigned int u_volt_max;
1: + long unsigned int u_amp;
1: };
1:
1: struct dev_pm_opp_icc_bw {
1: - u32 avg;
1: - u32 peak;
1: + u32 avg;
1: + u32 peak;
1: };
1:
1: struct dev_pm_opp_info {
1: - long unsigned int rate;
1: - struct dev_pm_opp_supply *supplies;
1: + long unsigned int rate;
1: + struct dev_pm_opp_supply *supplies;
1: };
1:
1: struct dev_pm_set_opp_data {
1: - struct dev_pm_opp_info old_opp;
1: - struct dev_pm_opp_info new_opp;
1: - struct regulator **regulators;
1: - unsigned int regulator_count;
1: - struct clk *clk;
1: - struct device *dev;
1: + struct dev_pm_opp_info old_opp;
1: + struct dev_pm_opp_info new_opp;
1: + struct regulator **regulators;
1: + unsigned int regulator_count;
1: + struct clk *clk;
1: + struct device *dev;
1: };
1:
1: struct opp_device {
1: - struct list_head node;
1: - const struct device *dev;
1: - struct dentry *dentry;
1: + struct list_head node;
1: + const struct device *dev;
1: + struct dentry *dentry;
1: };
1:
1: struct cpufreq_policy_data {
1: - struct cpufreq_cpuinfo cpuinfo;
1: - struct cpufreq_frequency_table *freq_table;
1: - unsigned int cpu;
1: - unsigned int min;
1: - unsigned int max;
1: + struct cpufreq_cpuinfo cpuinfo;
1: + struct cpufreq_frequency_table *freq_table;
1: + unsigned int cpu;
1: + unsigned int min;
1: + unsigned int max;
1: };
1:
1: struct cpufreq_freqs {
1: - struct cpufreq_policy *policy;
1: - unsigned int old;
1: - unsigned int new;
1: - u8 flags;
1: + struct cpufreq_policy *policy;
1: + unsigned int old;
1: + unsigned int new;
1: + u8 flags;
1: };
1:
1: struct freq_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct cpufreq_policy *, char *);
1: - ssize_t (*store)(struct cpufreq_policy *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpufreq_policy *, char *);
1: + ssize_t (*store)(struct cpufreq_policy *, const char *, size_t);
1: };
1:
1: struct cpufreq_driver {
1: - char name[16];
1: - u16 flags;
1: - void *driver_data;
1: - int (*init)(struct cpufreq_policy *);
1: - int (*verify)(struct cpufreq_policy_data *);
1: - int (*setpolicy)(struct cpufreq_policy *);
1: - int (*target)(struct cpufreq_policy *, unsigned int, unsigned int);
1: - int (*target_index)(struct cpufreq_policy *, unsigned int);
1: - unsigned int (*fast_switch)(struct cpufreq_policy *, unsigned int);
1: - unsigned int (*resolve_freq)(struct cpufreq_policy *, unsigned int);
1: - unsigned int (*get_intermediate)(struct cpufreq_policy *, unsigned int);
1: - int (*target_intermediate)(struct cpufreq_policy *, unsigned int);
1: - unsigned int (*get)(unsigned int);
1: - void (*update_limits)(unsigned int);
1: - int (*bios_limit)(int, unsigned int *);
1: - int (*online)(struct cpufreq_policy *);
1: - int (*offline)(struct cpufreq_policy *);
1: - int (*exit)(struct cpufreq_policy *);
1: - void (*stop_cpu)(struct cpufreq_policy *);
1: - int (*suspend)(struct cpufreq_policy *);
1: - int (*resume)(struct cpufreq_policy *);
1: - void (*ready)(struct cpufreq_policy *);
1: - struct freq_attr **attr;
1: - bool boost_enabled;
1: - int (*set_boost)(struct cpufreq_policy *, int);
1: + char name[16];
1: + u16 flags;
1: + void *driver_data;
1: + int (*init)(struct cpufreq_policy *);
1: + int (*verify)(struct cpufreq_policy_data *);
1: + int (*setpolicy)(struct cpufreq_policy *);
1: + int (*target)(struct cpufreq_policy *, unsigned int, unsigned int);
1: + int (*target_index)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*fast_switch)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*resolve_freq)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*get_intermediate)(struct cpufreq_policy *, unsigned int);
1: + int (*target_intermediate)(struct cpufreq_policy *, unsigned int);
1: + unsigned int (*get)(unsigned int);
1: + void (*update_limits)(unsigned int);
1: + int (*bios_limit)(int, unsigned int *);
1: + int (*online)(struct cpufreq_policy *);
1: + int (*offline)(struct cpufreq_policy *);
1: + int (*exit)(struct cpufreq_policy *);
1: + void (*stop_cpu)(struct cpufreq_policy *);
1: + int (*suspend)(struct cpufreq_policy *);
1: + int (*resume)(struct cpufreq_policy *);
1: + void (*ready)(struct cpufreq_policy *);
1: + struct freq_attr **attr;
1: + bool boost_enabled;
1: + int (*set_boost)(struct cpufreq_policy *, int);
1: };
1:
1: struct cpufreq_stats {
1: - unsigned int total_trans;
1: - long long unsigned int last_time;
1: - unsigned int max_state;
1: - unsigned int state_num;
1: - unsigned int last_index;
1: - u64 *time_in_state;
1: - unsigned int *freq_table;
1: - unsigned int *trans_table;
1: - unsigned int reset_pending;
1: - long long unsigned int reset_time;
1: + unsigned int total_trans;
1: + long long unsigned int last_time;
1: + unsigned int max_state;
1: + unsigned int state_num;
1: + unsigned int last_index;
1: + u64 *time_in_state;
1: + unsigned int *freq_table;
1: + unsigned int *trans_table;
1: + unsigned int reset_pending;
1: + long long unsigned int reset_time;
1: };
1:
1: struct dbs_data {
1: - struct gov_attr_set attr_set;
1: - void *tuners;
1: - unsigned int ignore_nice_load;
1: - unsigned int sampling_rate;
1: - unsigned int sampling_down_factor;
1: - unsigned int up_threshold;
1: - unsigned int io_is_busy;
1: + struct gov_attr_set attr_set;
1: + void *tuners;
1: + unsigned int ignore_nice_load;
1: + unsigned int sampling_rate;
1: + unsigned int sampling_down_factor;
1: + unsigned int up_threshold;
1: + unsigned int io_is_busy;
1: };
1:
1: struct policy_dbs_info {
1: - struct cpufreq_policy *policy;
1: - struct mutex update_mutex;
1: - u64 last_sample_time;
1: - s64 sample_delay_ns;
1: - atomic_t work_count;
1: - struct irq_work irq_work;
1: - struct work_struct work;
1: - struct dbs_data *dbs_data;
1: - struct list_head list;
1: - unsigned int rate_mult;
1: - unsigned int idle_periods;
1: - bool is_shared;
1: - bool work_in_progress;
1: + struct cpufreq_policy *policy;
1: + struct mutex update_mutex;
1: + u64 last_sample_time;
1: + s64 sample_delay_ns;
1: + atomic_t work_count;
1: + struct irq_work irq_work;
1: + struct work_struct work;
1: + struct dbs_data *dbs_data;
1: + struct list_head list;
1: + unsigned int rate_mult;
1: + unsigned int idle_periods;
1: + bool is_shared;
1: + bool work_in_progress;
1: };
1:
1: struct cpu_dbs_info {
1: - u64 prev_cpu_idle;
1: - u64 prev_update_time;
1: - u64 prev_cpu_nice;
1: - unsigned int prev_load;
1: - struct update_util_data update_util;
1: - struct policy_dbs_info *policy_dbs;
1: + u64 prev_cpu_idle;
1: + u64 prev_update_time;
1: + u64 prev_cpu_nice;
1: + unsigned int prev_load;
1: + struct update_util_data update_util;
1: + struct policy_dbs_info *policy_dbs;
1: };
1:
1: struct dbs_governor {
1: - struct cpufreq_governor gov;
1: - struct kobj_type kobj_type;
1: - struct dbs_data *gdbs_data;
1: - unsigned int (*gov_dbs_update)(struct cpufreq_policy *);
1: - struct policy_dbs_info * (*alloc)();
1: - void (*free)(struct policy_dbs_info *);
1: - int (*init)(struct dbs_data *);
1: - void (*exit)(struct dbs_data *);
1: - void (*start)(struct cpufreq_policy *);
1: + struct cpufreq_governor gov;
1: + struct kobj_type kobj_type;
1: + struct dbs_data *gdbs_data;
1: + unsigned int (*gov_dbs_update)(struct cpufreq_policy *);
1: + struct policy_dbs_info *(*alloc)();
1: + void (*free)(struct policy_dbs_info *);
1: + int (*init)(struct dbs_data *);
1: + void (*exit)(struct dbs_data *);
1: + void (*start)(struct cpufreq_policy *);
1: };
1:
1: struct cpufreq_policy___2;
1:
1: struct cpufreq_dt_platform_data {
1: - bool have_governor_per_policy;
1: - unsigned int (*get_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: - int (*target_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: - int (*suspend)(struct cpufreq_policy___2 *);
1: - int (*resume)(struct cpufreq_policy___2 *);
1: + bool have_governor_per_policy;
1: + unsigned int (*get_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: + int (*target_intermediate)(struct cpufreq_policy___2 *, unsigned int);
1: + int (*suspend)(struct cpufreq_policy___2 *);
1: + int (*resume)(struct cpufreq_policy___2 *);
1: };
1:
1: struct tegra124_cpufreq_priv {
1: - struct clk *cpu_clk;
1: - struct clk *pllp_clk;
1: - struct clk *pllx_clk;
1: - struct clk *dfll_clk;
1: - struct platform_device *cpufreq_dt_pdev;
1: + struct clk *cpu_clk;
1: + struct clk *pllp_clk;
1: + struct clk *pllx_clk;
1: + struct clk *dfll_clk;
1: + struct platform_device *cpufreq_dt_pdev;
1: };
1:
1: struct cpuidle_governor {
1: - char name[16];
1: - struct list_head governor_list;
1: - unsigned int rating;
1: - int (*enable)(struct cpuidle_driver *, struct cpuidle_device *);
1: - void (*disable)(struct cpuidle_driver *, struct cpuidle_device *);
1: - int (*select)(struct cpuidle_driver *, struct cpuidle_device *, bool *);
1: - void (*reflect)(struct cpuidle_device *, int);
1: + char name[16];
1: + struct list_head governor_list;
1: + unsigned int rating;
1: + int (*enable)(struct cpuidle_driver *, struct cpuidle_device *);
1: + void (*disable)(struct cpuidle_driver *, struct cpuidle_device *);
1: + int (*select)(struct cpuidle_driver *, struct cpuidle_device *, bool *);
1: + void (*reflect)(struct cpuidle_device *, int);
1: };
1:
1: struct cpuidle_state_kobj {
1: - struct cpuidle_state *state;
1: - struct cpuidle_state_usage *state_usage;
1: - struct completion kobj_unregister;
1: - struct kobject kobj;
1: - struct cpuidle_device *device;
1: + struct cpuidle_state *state;
1: + struct cpuidle_state_usage *state_usage;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: + struct cpuidle_device *device;
1: };
1:
1: struct cpuidle_driver_kobj {
1: - struct cpuidle_driver *drv;
1: - struct completion kobj_unregister;
1: - struct kobject kobj;
1: + struct cpuidle_driver *drv;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: };
1:
1: struct cpuidle_device_kobj {
1: - struct cpuidle_device *dev;
1: - struct completion kobj_unregister;
1: - struct kobject kobj;
1: + struct cpuidle_device *dev;
1: + struct completion kobj_unregister;
1: + struct kobject kobj;
1: };
1:
1: struct cpuidle_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct cpuidle_device *, char *);
1: - ssize_t (*store)(struct cpuidle_device *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_device *, char *);
1: + ssize_t (*store)(struct cpuidle_device *, const char *, size_t);
1: };
1:
1: struct cpuidle_state_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct cpuidle_state *, struct cpuidle_state_usage *, char *);
1: - ssize_t (*store)(struct cpuidle_state *, struct cpuidle_state_usage *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_state *, struct cpuidle_state_usage *, char *);
1: + ssize_t (*store)(struct cpuidle_state *, struct cpuidle_state_usage *,
1: + const char *, size_t);
1: };
1:
1: struct cpuidle_driver_attr {
1: - struct attribute attr;
1: - ssize_t (*show)(struct cpuidle_driver *, char *);
1: - ssize_t (*store)(struct cpuidle_driver *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct cpuidle_driver *, char *);
1: + ssize_t (*store)(struct cpuidle_driver *, const char *, size_t);
1: };
1:
1: struct ladder_device_state {
1: - struct {
1: - u32 promotion_count;
1: - u32 demotion_count;
1: - u64 promotion_time_ns;
1: - u64 demotion_time_ns;
1: - } threshold;
1: - struct {
1: - int promotion_count;
1: - int demotion_count;
1: - } stats;
1: + struct {
1: + u32 promotion_count;
1: + u32 demotion_count;
1: + u64 promotion_time_ns;
1: + u64 demotion_time_ns;
1: + } threshold;
1: + struct {
1: + int promotion_count;
1: + int demotion_count;
1: + } stats;
1: };
1:
1: struct ladder_device {
1: - struct ladder_device_state states[10];
1: + struct ladder_device_state states[10];
1: };
1:
1: struct menu_device {
1: - int needs_update;
1: - int tick_wakeup;
1: - u64 next_timer_ns;
1: - unsigned int bucket;
1: - unsigned int correction_factor[12];
1: - unsigned int intervals[8];
1: - int interval_ptr;
1: + int needs_update;
1: + int tick_wakeup;
1: + u64 next_timer_ns;
1: + unsigned int bucket;
1: + unsigned int correction_factor[12];
1: + unsigned int intervals[8];
1: + int interval_ptr;
1: };
1:
1: struct teo_idle_state {
1: - unsigned int early_hits;
1: - unsigned int hits;
1: - unsigned int misses;
1: + unsigned int early_hits;
1: + unsigned int hits;
1: + unsigned int misses;
1: };
1:
1: struct teo_cpu {
1: - u64 time_span_ns;
1: - u64 sleep_length_ns;
1: - struct teo_idle_state states[10];
1: - int interval_idx;
1: - u64 intervals[8];
1: + u64 time_span_ns;
1: + u64 sleep_length_ns;
1: + struct teo_idle_state states[10];
1: + int interval_idx;
1: + u64 intervals[8];
1: };
1:
1: struct pci_dev___2;
1:
1: struct sdhci_pci_data {
1: - struct pci_dev___2 *pdev;
1: - int slotno;
1: - int rst_n_gpio;
1: - int cd_gpio;
1: - int (*setup)(struct sdhci_pci_data *);
1: - void (*cleanup)(struct sdhci_pci_data *);
1: + struct pci_dev___2 *pdev;
1: + int slotno;
1: + int rst_n_gpio;
1: + int cd_gpio;
1: + int (*setup)(struct sdhci_pci_data *);
1: + void (*cleanup)(struct sdhci_pci_data *);
1: };
1:
1: struct led_init_data {
1: - struct fwnode_handle *fwnode;
1: - const char *default_label;
1: - const char *devicename;
1: - bool devname_mandatory;
1: + struct fwnode_handle *fwnode;
1: + const char *default_label;
1: + const char *devicename;
1: + bool devname_mandatory;
1: };
1:
1: struct led_properties {
1: - u32 color;
1: - bool color_present;
1: - const char *function;
1: - u32 func_enum;
1: - bool func_enum_present;
1: - const char *label;
1: + u32 color;
1: + bool color_present;
1: + const char *function;
1: + u32 func_enum;
1: + bool func_enum_present;
1: + const char *label;
1: };
1:
1: enum cpu_led_event {
1: - CPU_LED_IDLE_START = 0,
1: - CPU_LED_IDLE_END = 1,
1: - CPU_LED_START = 2,
1: - CPU_LED_STOP = 3,
1: - CPU_LED_HALTED = 4,
1: + CPU_LED_IDLE_START = 0,
1: + CPU_LED_IDLE_END = 1,
1: + CPU_LED_START = 2,
1: + CPU_LED_STOP = 3,
1: + CPU_LED_HALTED = 4,
1: };
1:
1: struct led_trigger_cpu {
1: - bool is_active;
1: - char name[8];
1: - struct led_trigger *_trig;
1: + bool is_active;
1: + char name[8];
1: + struct led_trigger *_trig;
1: };
1:
1: enum scpi_error_codes {
1: - SCPI_SUCCESS = 0,
1: - SCPI_ERR_PARAM = 1,
1: - SCPI_ERR_ALIGN = 2,
1: - SCPI_ERR_SIZE = 3,
1: - SCPI_ERR_HANDLER = 4,
1: - SCPI_ERR_ACCESS = 5,
1: - SCPI_ERR_RANGE = 6,
1: - SCPI_ERR_TIMEOUT = 7,
1: - SCPI_ERR_NOMEM = 8,
1: - SCPI_ERR_PWRSTATE = 9,
1: - SCPI_ERR_SUPPORT = 10,
1: - SCPI_ERR_DEVICE = 11,
1: - SCPI_ERR_BUSY = 12,
1: - SCPI_ERR_MAX = 13,
1: + SCPI_SUCCESS = 0,
1: + SCPI_ERR_PARAM = 1,
1: + SCPI_ERR_ALIGN = 2,
1: + SCPI_ERR_SIZE = 3,
1: + SCPI_ERR_HANDLER = 4,
1: + SCPI_ERR_ACCESS = 5,
1: + SCPI_ERR_RANGE = 6,
1: + SCPI_ERR_TIMEOUT = 7,
1: + SCPI_ERR_NOMEM = 8,
1: + SCPI_ERR_PWRSTATE = 9,
1: + SCPI_ERR_SUPPORT = 10,
1: + SCPI_ERR_DEVICE = 11,
1: + SCPI_ERR_BUSY = 12,
1: + SCPI_ERR_MAX = 13,
1: };
1:
1: enum scpi_std_cmd {
1: - SCPI_CMD_INVALID = 0,
1: - SCPI_CMD_SCPI_READY = 1,
1: - SCPI_CMD_SCPI_CAPABILITIES = 2,
1: - SCPI_CMD_SET_CSS_PWR_STATE = 3,
1: - SCPI_CMD_GET_CSS_PWR_STATE = 4,
1: - SCPI_CMD_SET_SYS_PWR_STATE = 5,
1: - SCPI_CMD_SET_CPU_TIMER = 6,
1: - SCPI_CMD_CANCEL_CPU_TIMER = 7,
1: - SCPI_CMD_DVFS_CAPABILITIES = 8,
1: - SCPI_CMD_GET_DVFS_INFO = 9,
1: - SCPI_CMD_SET_DVFS = 10,
1: - SCPI_CMD_GET_DVFS = 11,
1: - SCPI_CMD_GET_DVFS_STAT = 12,
1: - SCPI_CMD_CLOCK_CAPABILITIES = 13,
1: - SCPI_CMD_GET_CLOCK_INFO = 14,
1: - SCPI_CMD_SET_CLOCK_VALUE = 15,
1: - SCPI_CMD_GET_CLOCK_VALUE = 16,
1: - SCPI_CMD_PSU_CAPABILITIES = 17,
1: - SCPI_CMD_GET_PSU_INFO = 18,
1: - SCPI_CMD_SET_PSU = 19,
1: - SCPI_CMD_GET_PSU = 20,
1: - SCPI_CMD_SENSOR_CAPABILITIES = 21,
1: - SCPI_CMD_SENSOR_INFO = 22,
1: - SCPI_CMD_SENSOR_VALUE = 23,
1: - SCPI_CMD_SENSOR_CFG_PERIODIC = 24,
1: - SCPI_CMD_SENSOR_CFG_BOUNDS = 25,
1: - SCPI_CMD_SENSOR_ASYNC_VALUE = 26,
1: - SCPI_CMD_SET_DEVICE_PWR_STATE = 27,
1: - SCPI_CMD_GET_DEVICE_PWR_STATE = 28,
1: - SCPI_CMD_COUNT = 29,
1: + SCPI_CMD_INVALID = 0,
1: + SCPI_CMD_SCPI_READY = 1,
1: + SCPI_CMD_SCPI_CAPABILITIES = 2,
1: + SCPI_CMD_SET_CSS_PWR_STATE = 3,
1: + SCPI_CMD_GET_CSS_PWR_STATE = 4,
1: + SCPI_CMD_SET_SYS_PWR_STATE = 5,
1: + SCPI_CMD_SET_CPU_TIMER = 6,
1: + SCPI_CMD_CANCEL_CPU_TIMER = 7,
1: + SCPI_CMD_DVFS_CAPABILITIES = 8,
1: + SCPI_CMD_GET_DVFS_INFO = 9,
1: + SCPI_CMD_SET_DVFS = 10,
1: + SCPI_CMD_GET_DVFS = 11,
1: + SCPI_CMD_GET_DVFS_STAT = 12,
1: + SCPI_CMD_CLOCK_CAPABILITIES = 13,
1: + SCPI_CMD_GET_CLOCK_INFO = 14,
1: + SCPI_CMD_SET_CLOCK_VALUE = 15,
1: + SCPI_CMD_GET_CLOCK_VALUE = 16,
1: + SCPI_CMD_PSU_CAPABILITIES = 17,
1: + SCPI_CMD_GET_PSU_INFO = 18,
1: + SCPI_CMD_SET_PSU = 19,
1: + SCPI_CMD_GET_PSU = 20,
1: + SCPI_CMD_SENSOR_CAPABILITIES = 21,
1: + SCPI_CMD_SENSOR_INFO = 22,
1: + SCPI_CMD_SENSOR_VALUE = 23,
1: + SCPI_CMD_SENSOR_CFG_PERIODIC = 24,
1: + SCPI_CMD_SENSOR_CFG_BOUNDS = 25,
1: + SCPI_CMD_SENSOR_ASYNC_VALUE = 26,
1: + SCPI_CMD_SET_DEVICE_PWR_STATE = 27,
1: + SCPI_CMD_GET_DEVICE_PWR_STATE = 28,
1: + SCPI_CMD_COUNT = 29,
1: };
1:
1: enum legacy_scpi_std_cmd {
1: - LEGACY_SCPI_CMD_INVALID = 0,
1: - LEGACY_SCPI_CMD_SCPI_READY = 1,
1: - LEGACY_SCPI_CMD_SCPI_CAPABILITIES = 2,
1: - LEGACY_SCPI_CMD_EVENT = 3,
1: - LEGACY_SCPI_CMD_SET_CSS_PWR_STATE = 4,
1: - LEGACY_SCPI_CMD_GET_CSS_PWR_STATE = 5,
1: - LEGACY_SCPI_CMD_CFG_PWR_STATE_STAT = 6,
1: - LEGACY_SCPI_CMD_GET_PWR_STATE_STAT = 7,
1: - LEGACY_SCPI_CMD_SYS_PWR_STATE = 8,
1: - LEGACY_SCPI_CMD_L2_READY = 9,
1: - LEGACY_SCPI_CMD_SET_AP_TIMER = 10,
1: - LEGACY_SCPI_CMD_CANCEL_AP_TIME = 11,
1: - LEGACY_SCPI_CMD_DVFS_CAPABILITIES = 12,
1: - LEGACY_SCPI_CMD_GET_DVFS_INFO = 13,
1: - LEGACY_SCPI_CMD_SET_DVFS = 14,
1: - LEGACY_SCPI_CMD_GET_DVFS = 15,
1: - LEGACY_SCPI_CMD_GET_DVFS_STAT = 16,
1: - LEGACY_SCPI_CMD_SET_RTC = 17,
1: - LEGACY_SCPI_CMD_GET_RTC = 18,
1: - LEGACY_SCPI_CMD_CLOCK_CAPABILITIES = 19,
1: - LEGACY_SCPI_CMD_SET_CLOCK_INDEX = 20,
1: - LEGACY_SCPI_CMD_SET_CLOCK_VALUE = 21,
1: - LEGACY_SCPI_CMD_GET_CLOCK_VALUE = 22,
1: - LEGACY_SCPI_CMD_PSU_CAPABILITIES = 23,
1: - LEGACY_SCPI_CMD_SET_PSU = 24,
1: - LEGACY_SCPI_CMD_GET_PSU = 25,
1: - LEGACY_SCPI_CMD_SENSOR_CAPABILITIES = 26,
1: - LEGACY_SCPI_CMD_SENSOR_INFO = 27,
1: - LEGACY_SCPI_CMD_SENSOR_VALUE = 28,
1: - LEGACY_SCPI_CMD_SENSOR_CFG_PERIODIC = 29,
1: - LEGACY_SCPI_CMD_SENSOR_CFG_BOUNDS = 30,
1: - LEGACY_SCPI_CMD_SENSOR_ASYNC_VALUE = 31,
1: - LEGACY_SCPI_CMD_COUNT = 32,
1: + LEGACY_SCPI_CMD_INVALID = 0,
1: + LEGACY_SCPI_CMD_SCPI_READY = 1,
1: + LEGACY_SCPI_CMD_SCPI_CAPABILITIES = 2,
1: + LEGACY_SCPI_CMD_EVENT = 3,
1: + LEGACY_SCPI_CMD_SET_CSS_PWR_STATE = 4,
1: + LEGACY_SCPI_CMD_GET_CSS_PWR_STATE = 5,
1: + LEGACY_SCPI_CMD_CFG_PWR_STATE_STAT = 6,
1: + LEGACY_SCPI_CMD_GET_PWR_STATE_STAT = 7,
1: + LEGACY_SCPI_CMD_SYS_PWR_STATE = 8,
1: + LEGACY_SCPI_CMD_L2_READY = 9,
1: + LEGACY_SCPI_CMD_SET_AP_TIMER = 10,
1: + LEGACY_SCPI_CMD_CANCEL_AP_TIME = 11,
1: + LEGACY_SCPI_CMD_DVFS_CAPABILITIES = 12,
1: + LEGACY_SCPI_CMD_GET_DVFS_INFO = 13,
1: + LEGACY_SCPI_CMD_SET_DVFS = 14,
1: + LEGACY_SCPI_CMD_GET_DVFS = 15,
1: + LEGACY_SCPI_CMD_GET_DVFS_STAT = 16,
1: + LEGACY_SCPI_CMD_SET_RTC = 17,
1: + LEGACY_SCPI_CMD_GET_RTC = 18,
1: + LEGACY_SCPI_CMD_CLOCK_CAPABILITIES = 19,
1: + LEGACY_SCPI_CMD_SET_CLOCK_INDEX = 20,
1: + LEGACY_SCPI_CMD_SET_CLOCK_VALUE = 21,
1: + LEGACY_SCPI_CMD_GET_CLOCK_VALUE = 22,
1: + LEGACY_SCPI_CMD_PSU_CAPABILITIES = 23,
1: + LEGACY_SCPI_CMD_SET_PSU = 24,
1: + LEGACY_SCPI_CMD_GET_PSU = 25,
1: + LEGACY_SCPI_CMD_SENSOR_CAPABILITIES = 26,
1: + LEGACY_SCPI_CMD_SENSOR_INFO = 27,
1: + LEGACY_SCPI_CMD_SENSOR_VALUE = 28,
1: + LEGACY_SCPI_CMD_SENSOR_CFG_PERIODIC = 29,
1: + LEGACY_SCPI_CMD_SENSOR_CFG_BOUNDS = 30,
1: + LEGACY_SCPI_CMD_SENSOR_ASYNC_VALUE = 31,
1: + LEGACY_SCPI_CMD_COUNT = 32,
1: };
1:
1: enum scpi_drv_cmds {
1: - CMD_SCPI_CAPABILITIES = 0,
1: - CMD_GET_CLOCK_INFO = 1,
1: - CMD_GET_CLOCK_VALUE = 2,
1: - CMD_SET_CLOCK_VALUE = 3,
1: - CMD_GET_DVFS = 4,
1: - CMD_SET_DVFS = 5,
1: - CMD_GET_DVFS_INFO = 6,
1: - CMD_SENSOR_CAPABILITIES = 7,
1: - CMD_SENSOR_INFO = 8,
1: - CMD_SENSOR_VALUE = 9,
1: - CMD_SET_DEVICE_PWR_STATE = 10,
1: - CMD_GET_DEVICE_PWR_STATE = 11,
1: - CMD_MAX_COUNT = 12,
1: + CMD_SCPI_CAPABILITIES = 0,
1: + CMD_GET_CLOCK_INFO = 1,
1: + CMD_GET_CLOCK_VALUE = 2,
1: + CMD_SET_CLOCK_VALUE = 3,
1: + CMD_GET_DVFS = 4,
1: + CMD_SET_DVFS = 5,
1: + CMD_GET_DVFS_INFO = 6,
1: + CMD_SENSOR_CAPABILITIES = 7,
1: + CMD_SENSOR_INFO = 8,
1: + CMD_SENSOR_VALUE = 9,
1: + CMD_SET_DEVICE_PWR_STATE = 10,
1: + CMD_GET_DEVICE_PWR_STATE = 11,
1: + CMD_MAX_COUNT = 12,
1: };
1:
1: struct scpi_xfer {
1: - u32 slot;
1: - u32 cmd;
1: - u32 status;
1: - const void *tx_buf;
1: - void *rx_buf;
1: - unsigned int tx_len;
1: - unsigned int rx_len;
1: - struct list_head node;
1: - struct completion done;
1: + u32 slot;
1: + u32 cmd;
1: + u32 status;
1: + const void *tx_buf;
1: + void *rx_buf;
1: + unsigned int tx_len;
1: + unsigned int rx_len;
1: + struct list_head node;
1: + struct completion done;
1: };
1:
1: struct scpi_chan {
1: - struct mbox_client cl;
1: - struct mbox_chan___2 *chan;
1: - void *tx_payload;
1: - void *rx_payload;
1: - struct list_head rx_pending;
1: - struct list_head xfers_list;
1: - struct scpi_xfer *xfers;
1: - spinlock_t rx_lock;
1: - struct mutex xfers_lock;
1: - u8 token;
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *chan;
1: + void *tx_payload;
1: + void *rx_payload;
1: + struct list_head rx_pending;
1: + struct list_head xfers_list;
1: + struct scpi_xfer *xfers;
1: + spinlock_t rx_lock;
1: + struct mutex xfers_lock;
1: + u8 token;
1: };
1:
1: struct scpi_drvinfo {
1: - u32 protocol_version;
1: - u32 firmware_version;
1: - bool is_legacy;
1: - int num_chans;
1: - int *commands;
1: - long unsigned int cmd_priority[1];
1: - atomic_t next_chan;
1: - struct scpi_ops *scpi_ops;
1: - struct scpi_chan *channels;
1: - struct scpi_dvfs_info *dvfs[8];
1: + u32 protocol_version;
1: + u32 firmware_version;
1: + bool is_legacy;
1: + int num_chans;
1: + int *commands;
1: + long unsigned int cmd_priority[1];
1: + atomic_t next_chan;
1: + struct scpi_ops *scpi_ops;
1: + struct scpi_chan *channels;
1: + struct scpi_dvfs_info *dvfs[8];
1: };
1:
1: struct scpi_shared_mem {
1: - __le32 command;
1: - __le32 status;
1: - u8 payload[0];
1: + __le32 command;
1: + __le32 status;
1: + u8 payload[0];
1: };
1:
1: struct legacy_scpi_shared_mem {
1: - __le32 status;
1: - u8 payload[0];
1: + __le32 status;
1: + u8 payload[0];
1: };
1:
1: struct scp_capabilities {
1: - __le32 protocol_version;
1: - __le32 event_version;
1: - __le32 platform_version;
1: - __le32 commands[4];
1: + __le32 protocol_version;
1: + __le32 event_version;
1: + __le32 platform_version;
1: + __le32 commands[4];
1: };
1:
1: struct clk_get_info {
1: - __le16 id;
1: - __le16 flags;
1: - __le32 min_rate;
1: - __le32 max_rate;
1: - u8 name[20];
1: + __le16 id;
1: + __le16 flags;
1: + __le32 min_rate;
1: + __le32 max_rate;
1: + u8 name[20];
1: };
1:
1: struct clk_set_value {
1: - __le16 id;
1: - __le16 reserved;
1: - __le32 rate;
1: + __le16 id;
1: + __le16 reserved;
1: + __le32 rate;
1: };
1:
1: struct legacy_clk_set_value {
1: - __le32 rate;
1: - __le16 id;
1: - __le16 reserved;
1: + __le32 rate;
1: + __le16 id;
1: + __le16 reserved;
1: };
1:
1: struct dvfs_info {
1: - u8 domain;
1: - u8 opp_count;
1: - __le16 latency;
1: - struct {
1: - __le32 freq;
1: - __le32 m_volt;
1: - } opps[16];
1: + u8 domain;
1: + u8 opp_count;
1: + __le16 latency;
1: + struct {
1: + __le32 freq;
1: + __le32 m_volt;
1: + } opps[16];
1: };
1:
1: struct dvfs_set {
1: - u8 domain;
1: - u8 index;
1: + u8 domain;
1: + u8 index;
1: };
1:
1: struct _scpi_sensor_info {
1: - __le16 sensor_id;
1: - u8 class;
1: - u8 trigger_type;
1: - char name[20];
1: + __le16 sensor_id;
1: + u8 class;
1: + u8 trigger_type;
1: + char name[20];
1: };
1:
1: struct dev_pstate_set {
1: - __le16 dev_id;
1: - u8 pstate;
1: + __le16 dev_id;
1: + u8 pstate;
1: } __attribute__((packed));
1:
1: struct scpi_pm_domain {
1: - struct generic_pm_domain genpd;
1: - struct scpi_ops *ops;
1: - u32 domain;
1: - char name[30];
1: + struct generic_pm_domain genpd;
1: + struct scpi_ops *ops;
1: + u32 domain;
1: + char name[30];
1: };
1:
1: enum scpi_power_domain_state {
1: - SCPI_PD_STATE_ON = 0,
1: - SCPI_PD_STATE_OFF = 3,
1: + SCPI_PD_STATE_ON = 0,
1: + SCPI_PD_STATE_OFF = 3,
1: };
1:
1: enum dmi_entry_type {
1: - DMI_ENTRY_BIOS = 0,
1: - DMI_ENTRY_SYSTEM = 1,
1: - DMI_ENTRY_BASEBOARD = 2,
1: - DMI_ENTRY_CHASSIS = 3,
1: - DMI_ENTRY_PROCESSOR = 4,
1: - DMI_ENTRY_MEM_CONTROLLER = 5,
1: - DMI_ENTRY_MEM_MODULE = 6,
1: - DMI_ENTRY_CACHE = 7,
1: - DMI_ENTRY_PORT_CONNECTOR = 8,
1: - DMI_ENTRY_SYSTEM_SLOT = 9,
1: - DMI_ENTRY_ONBOARD_DEVICE = 10,
1: - DMI_ENTRY_OEMSTRINGS = 11,
1: - DMI_ENTRY_SYSCONF = 12,
1: - DMI_ENTRY_BIOS_LANG = 13,
1: - DMI_ENTRY_GROUP_ASSOC = 14,
1: - DMI_ENTRY_SYSTEM_EVENT_LOG = 15,
1: - DMI_ENTRY_PHYS_MEM_ARRAY = 16,
1: - DMI_ENTRY_MEM_DEVICE = 17,
1: - DMI_ENTRY_32_MEM_ERROR = 18,
1: - DMI_ENTRY_MEM_ARRAY_MAPPED_ADDR = 19,
1: - DMI_ENTRY_MEM_DEV_MAPPED_ADDR = 20,
1: - DMI_ENTRY_BUILTIN_POINTING_DEV = 21,
1: - DMI_ENTRY_PORTABLE_BATTERY = 22,
1: - DMI_ENTRY_SYSTEM_RESET = 23,
1: - DMI_ENTRY_HW_SECURITY = 24,
1: - DMI_ENTRY_SYSTEM_POWER_CONTROLS = 25,
1: - DMI_ENTRY_VOLTAGE_PROBE = 26,
1: - DMI_ENTRY_COOLING_DEV = 27,
1: - DMI_ENTRY_TEMP_PROBE = 28,
1: - DMI_ENTRY_ELECTRICAL_CURRENT_PROBE = 29,
1: - DMI_ENTRY_OOB_REMOTE_ACCESS = 30,
1: - DMI_ENTRY_BIS_ENTRY = 31,
1: - DMI_ENTRY_SYSTEM_BOOT = 32,
1: - DMI_ENTRY_MGMT_DEV = 33,
1: - DMI_ENTRY_MGMT_DEV_COMPONENT = 34,
1: - DMI_ENTRY_MGMT_DEV_THRES = 35,
1: - DMI_ENTRY_MEM_CHANNEL = 36,
1: - DMI_ENTRY_IPMI_DEV = 37,
1: - DMI_ENTRY_SYS_POWER_SUPPLY = 38,
1: - DMI_ENTRY_ADDITIONAL = 39,
1: - DMI_ENTRY_ONBOARD_DEV_EXT = 40,
1: - DMI_ENTRY_MGMT_CONTROLLER_HOST = 41,
1: - DMI_ENTRY_INACTIVE = 126,
1: - DMI_ENTRY_END_OF_TABLE = 127,
1: + DMI_ENTRY_BIOS = 0,
1: + DMI_ENTRY_SYSTEM = 1,
1: + DMI_ENTRY_BASEBOARD = 2,
1: + DMI_ENTRY_CHASSIS = 3,
1: + DMI_ENTRY_PROCESSOR = 4,
1: + DMI_ENTRY_MEM_CONTROLLER = 5,
1: + DMI_ENTRY_MEM_MODULE = 6,
1: + DMI_ENTRY_CACHE = 7,
1: + DMI_ENTRY_PORT_CONNECTOR = 8,
1: + DMI_ENTRY_SYSTEM_SLOT = 9,
1: + DMI_ENTRY_ONBOARD_DEVICE = 10,
1: + DMI_ENTRY_OEMSTRINGS = 11,
1: + DMI_ENTRY_SYSCONF = 12,
1: + DMI_ENTRY_BIOS_LANG = 13,
1: + DMI_ENTRY_GROUP_ASSOC = 14,
1: + DMI_ENTRY_SYSTEM_EVENT_LOG = 15,
1: + DMI_ENTRY_PHYS_MEM_ARRAY = 16,
1: + DMI_ENTRY_MEM_DEVICE = 17,
1: + DMI_ENTRY_32_MEM_ERROR = 18,
1: + DMI_ENTRY_MEM_ARRAY_MAPPED_ADDR = 19,
1: + DMI_ENTRY_MEM_DEV_MAPPED_ADDR = 20,
1: + DMI_ENTRY_BUILTIN_POINTING_DEV = 21,
1: + DMI_ENTRY_PORTABLE_BATTERY = 22,
1: + DMI_ENTRY_SYSTEM_RESET = 23,
1: + DMI_ENTRY_HW_SECURITY = 24,
1: + DMI_ENTRY_SYSTEM_POWER_CONTROLS = 25,
1: + DMI_ENTRY_VOLTAGE_PROBE = 26,
1: + DMI_ENTRY_COOLING_DEV = 27,
1: + DMI_ENTRY_TEMP_PROBE = 28,
1: + DMI_ENTRY_ELECTRICAL_CURRENT_PROBE = 29,
1: + DMI_ENTRY_OOB_REMOTE_ACCESS = 30,
1: + DMI_ENTRY_BIS_ENTRY = 31,
1: + DMI_ENTRY_SYSTEM_BOOT = 32,
1: + DMI_ENTRY_MGMT_DEV = 33,
1: + DMI_ENTRY_MGMT_DEV_COMPONENT = 34,
1: + DMI_ENTRY_MGMT_DEV_THRES = 35,
1: + DMI_ENTRY_MEM_CHANNEL = 36,
1: + DMI_ENTRY_IPMI_DEV = 37,
1: + DMI_ENTRY_SYS_POWER_SUPPLY = 38,
1: + DMI_ENTRY_ADDITIONAL = 39,
1: + DMI_ENTRY_ONBOARD_DEV_EXT = 40,
1: + DMI_ENTRY_MGMT_CONTROLLER_HOST = 41,
1: + DMI_ENTRY_INACTIVE = 126,
1: + DMI_ENTRY_END_OF_TABLE = 127,
1: };
1:
1: struct dmi_memdev_info {
1: - const char *device;
1: - const char *bank;
1: - u64 size;
1: - u16 handle;
1: - u8 type;
1: + const char *device;
1: + const char *bank;
1: + u64 size;
1: + u16 handle;
1: + u8 type;
1: };
1:
1: struct dmi_device_attribute {
1: - struct device_attribute dev_attr;
1: - int field;
1: + struct device_attribute dev_attr;
1: + int field;
1: };
1:
1: struct mafield {
1: - const char *prefix;
1: - int field;
1: + const char *prefix;
1: + int field;
1: };
1:
1: struct firmware_map_entry {
1: - u64 start;
1: - u64 end;
1: - const char *type;
1: - struct list_head list;
1: - struct kobject kobj;
1: + u64 start;
1: + u64 end;
1: + const char *type;
1: + struct list_head list;
1: + struct kobject kobj;
1: };
1:
1: struct memmap_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct firmware_map_entry *, char *);
1: + struct attribute attr;
1: + ssize_t (*show)(struct firmware_map_entry *, char *);
1: };
1:
1: enum rpi_firmware_property_status {
1: - RPI_FIRMWARE_STATUS_REQUEST = 0,
1: - RPI_FIRMWARE_STATUS_SUCCESS = 2147483648,
1: - RPI_FIRMWARE_STATUS_ERROR = 2147483649,
1: + RPI_FIRMWARE_STATUS_REQUEST = 0,
1: + RPI_FIRMWARE_STATUS_SUCCESS = 2147483648,
1: + RPI_FIRMWARE_STATUS_ERROR = 2147483649,
1: };
1:
1: struct rpi_firmware_property_tag_header {
1: - u32 tag;
1: - u32 buf_size;
1: - u32 req_resp_size;
1: + u32 tag;
1: + u32 buf_size;
1: + u32 req_resp_size;
1: };
1:
1: struct rpi_firmware___2 {
1: - struct mbox_client cl;
1: - struct mbox_chan___2 *chan;
1: - struct completion c;
1: - u32 enabled;
1: + struct mbox_client cl;
1: + struct mbox_chan___2 *chan;
1: + struct completion c;
1: + u32 enabled;
1: };
1:
1: struct qcom_scm_hdcp_req {
1: - u32 addr;
1: - u32 val;
1: + u32 addr;
1: + u32 val;
1: };
1:
1: struct qcom_scm_vmperm {
1: - int vmid;
1: - int perm;
1: + int vmid;
1: + int perm;
1: };
1:
1: enum qcom_scm_ocmem_client {
1: - QCOM_SCM_OCMEM_UNUSED_ID = 0,
1: - QCOM_SCM_OCMEM_GRAPHICS_ID = 1,
1: - QCOM_SCM_OCMEM_VIDEO_ID = 2,
1: - QCOM_SCM_OCMEM_LP_AUDIO_ID = 3,
1: - QCOM_SCM_OCMEM_SENSORS_ID = 4,
1: - QCOM_SCM_OCMEM_OTHER_OS_ID = 5,
1: - QCOM_SCM_OCMEM_DEBUG_ID = 6,
1: + QCOM_SCM_OCMEM_UNUSED_ID = 0,
1: + QCOM_SCM_OCMEM_GRAPHICS_ID = 1,
1: + QCOM_SCM_OCMEM_VIDEO_ID = 2,
1: + QCOM_SCM_OCMEM_LP_AUDIO_ID = 3,
1: + QCOM_SCM_OCMEM_SENSORS_ID = 4,
1: + QCOM_SCM_OCMEM_OTHER_OS_ID = 5,
1: + QCOM_SCM_OCMEM_DEBUG_ID = 6,
1: };
1:
1: enum qcom_scm_ice_cipher {
1: - QCOM_SCM_ICE_CIPHER_AES_128_XTS = 0,
1: - QCOM_SCM_ICE_CIPHER_AES_128_CBC = 1,
1: - QCOM_SCM_ICE_CIPHER_AES_256_XTS = 3,
1: - QCOM_SCM_ICE_CIPHER_AES_256_CBC = 4,
1: + QCOM_SCM_ICE_CIPHER_AES_128_XTS = 0,
1: + QCOM_SCM_ICE_CIPHER_AES_128_CBC = 1,
1: + QCOM_SCM_ICE_CIPHER_AES_256_XTS = 3,
1: + QCOM_SCM_ICE_CIPHER_AES_256_CBC = 4,
1: };
1:
1: enum qcom_scm_convention {
1: - SMC_CONVENTION_UNKNOWN = 0,
1: - SMC_CONVENTION_LEGACY = 1,
1: - SMC_CONVENTION_ARM_32 = 2,
1: - SMC_CONVENTION_ARM_64 = 3,
1: + SMC_CONVENTION_UNKNOWN = 0,
1: + SMC_CONVENTION_LEGACY = 1,
1: + SMC_CONVENTION_ARM_32 = 2,
1: + SMC_CONVENTION_ARM_64 = 3,
1: };
1:
1: enum qcom_scm_arg_types {
1: - QCOM_SCM_VAL = 0,
1: - QCOM_SCM_RO = 1,
1: - QCOM_SCM_RW = 2,
1: - QCOM_SCM_BUFVAL = 3,
1: + QCOM_SCM_VAL = 0,
1: + QCOM_SCM_RO = 1,
1: + QCOM_SCM_RW = 2,
1: + QCOM_SCM_BUFVAL = 3,
1: };
1:
1: struct qcom_scm_desc {
1: - u32 svc;
1: - u32 cmd;
1: - u32 arginfo;
1: - u64 args[10];
1: - u32 owner;
1: + u32 svc;
1: + u32 cmd;
1: + u32 arginfo;
1: + u64 args[10];
1: + u32 owner;
1: };
1:
1: struct qcom_scm_res {
1: - u64 result[3];
1: + u64 result[3];
1: };
1:
1: struct qcom_scm {
1: - struct device *dev;
1: - struct clk *core_clk;
1: - struct clk *iface_clk;
1: - struct clk *bus_clk;
1: - struct reset_controller_dev reset;
1: - u64 dload_mode_addr;
1: + struct device *dev;
1: + struct clk *core_clk;
1: + struct clk *iface_clk;
1: + struct clk *bus_clk;
1: + struct reset_controller_dev reset;
1: + u64 dload_mode_addr;
1: };
1:
1: struct qcom_scm_current_perm_info {
1: - __le32 vmid;
1: - __le32 perm;
1: - __le64 ctx;
1: - __le32 ctx_size;
1: - __le32 unused;
1: + __le32 vmid;
1: + __le32 perm;
1: + __le64 ctx;
1: + __le32 ctx_size;
1: + __le32 unused;
1: };
1:
1: struct qcom_scm_mem_map_info {
1: - __le64 mem_addr;
1: - __le64 mem_size;
1: + __le64 mem_addr;
1: + __le64 mem_size;
1: };
1:
1: struct qcom_scm_wb_entry {
1: - int flag;
1: - void *entry;
1: + int flag;
1: + void *entry;
1: };
1:
1: struct arm_smccc_quirk {
1: - int id;
1: - union {
1: - long unsigned int a6;
1: - } state;
1: + int id;
1: + union {
1: + long unsigned int a6;
1: + } state;
1: };
1:
1: struct arm_smccc_args {
1: - long unsigned int args[8];
1: + long unsigned int args[8];
1: };
1:
1: struct scm_legacy_command {
1: - __le32 len;
1: - __le32 buf_offset;
1: - __le32 resp_hdr_offset;
1: - __le32 id;
1: - __le32 buf[0];
1: + __le32 len;
1: + __le32 buf_offset;
1: + __le32 resp_hdr_offset;
1: + __le32 id;
1: + __le32 buf[0];
1: };
1:
1: struct scm_legacy_response {
1: - __le32 len;
1: - __le32 buf_offset;
1: - __le32 is_complete;
1: + __le32 len;
1: + __le32 buf_offset;
1: + __le32 is_complete;
1: };
1:
1: struct meson_sm_cmd {
1: - unsigned int index;
1: - u32 smc_id;
1: + unsigned int index;
1: + u32 smc_id;
1: };
1:
1: struct meson_sm_chip {
1: - unsigned int shmem_size;
1: - u32 cmd_shmem_in_base;
1: - u32 cmd_shmem_out_base;
1: - struct meson_sm_cmd cmd[0];
1: + unsigned int shmem_size;
1: + u32 cmd_shmem_in_base;
1: + u32 cmd_shmem_out_base;
1: + struct meson_sm_cmd cmd[0];
1: };
1:
1: struct meson_sm_firmware___2 {
1: - const struct meson_sm_chip *chip;
1: - void *sm_shmem_in_base;
1: - void *sm_shmem_out_base;
1: + const struct meson_sm_chip *chip;
1: + void *sm_shmem_in_base;
1: + void *sm_shmem_out_base;
1: };
1:
1: struct bmp_header {
1: - u16 id;
1: - u32 size;
1: + u16 id;
1: + u32 size;
1: } __attribute__((packed));
1:
1: typedef efi_status_t efi_query_variable_store_t(u32, long unsigned int, bool);
1:
1: typedef struct {
1: - efi_guid_t guid;
1: - u64 table;
1: + efi_guid_t guid;
1: + u64 table;
1: } efi_config_table_64_t;
1:
1: typedef struct {
1: - efi_guid_t guid;
1: - u32 table;
1: + efi_guid_t guid;
1: + u32 table;
1: } efi_config_table_32_t;
1:
1: typedef union {
1: - struct {
1: - efi_guid_t guid;
1: - void *table;
1: - };
1: - efi_config_table_32_t mixed_mode;
1: + struct {
1: + efi_guid_t guid;
1: + void *table;
1: + };
1: + efi_config_table_32_t mixed_mode;
1: } efi_config_table_t;
1:
1: typedef struct {
1: - efi_guid_t guid;
1: - long unsigned int *ptr;
1: - const char name[16];
1: + efi_guid_t guid;
1: + long unsigned int *ptr;
1: + const char name[16];
1: } efi_config_table_type_t;
1:
1: typedef struct {
1: - u16 version;
1: - u16 length;
1: - u32 runtime_services_supported;
1: + u16 version;
1: + u16 length;
1: + u32 runtime_services_supported;
1: } efi_rt_properties_table_t;
1:
1: struct efivar_operations {
1: - efi_get_variable_t *get_variable;
1: - efi_get_next_variable_t *get_next_variable;
1: - efi_set_variable_t *set_variable;
1: - efi_set_variable_t *set_variable_nonblocking;
1: - efi_query_variable_store_t *query_variable_store;
1: + efi_get_variable_t *get_variable;
1: + efi_get_next_variable_t *get_next_variable;
1: + efi_set_variable_t *set_variable;
1: + efi_set_variable_t *set_variable_nonblocking;
1: + efi_query_variable_store_t *query_variable_store;
1: };
1:
1: struct efivars {
1: - struct kset *kset;
1: - struct kobject *kobject;
1: - const struct efivar_operations *ops;
1: + struct kset *kset;
1: + struct kobject *kobject;
1: + const struct efivar_operations *ops;
1: };
1:
1: struct efi_variable {
1: - efi_char16_t VariableName[512];
1: - efi_guid_t VendorGuid;
1: - long unsigned int DataSize;
1: - __u8 Data[1024];
1: - efi_status_t Status;
1: - __u32 Attributes;
1: + efi_char16_t VariableName[512];
1: + efi_guid_t VendorGuid;
1: + long unsigned int DataSize;
1: + __u8 Data[1024];
1: + efi_status_t Status;
1: + __u32 Attributes;
1: } __attribute__((packed));
1:
1: struct efivar_entry {
1: - struct efi_variable var;
1: - struct list_head list;
1: - struct kobject kobj;
1: - bool scanning;
1: - bool deleting;
1: + struct efi_variable var;
1: + struct list_head list;
1: + struct kobject kobj;
1: + bool scanning;
1: + bool deleting;
1: };
1:
1: struct linux_efi_random_seed {
1: - u32 size;
1: - u8 bits[0];
1: + u32 size;
1: + u8 bits[0];
1: };
1:
1: struct linux_efi_memreserve {
1: - int size;
1: - atomic_t count;
1: - phys_addr_t next;
1: - struct {
1: - phys_addr_t base;
1: - phys_addr_t size;
1: - } entry[0];
1: + int size;
1: + atomic_t count;
1: + phys_addr_t next;
1: + struct {
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + } entry[0];
1: };
1:
1: struct efi_generic_dev_path {
1: - u8 type;
1: - u8 sub_type;
1: - u16 length;
1: + u8 type;
1: + u8 sub_type;
1: + u16 length;
1: };
1:
1: struct variable_validate {
1: - efi_guid_t vendor;
1: - char *name;
1: - bool (*validate)(efi_char16_t *, int, u8 *, long unsigned int);
1: + efi_guid_t vendor;
1: + char *name;
1: + bool (*validate)(efi_char16_t *, int, u8 *, long unsigned int);
1: };
1:
1: typedef struct {
1: - u32 version;
1: - u32 num_entries;
1: - u32 desc_size;
1: - u32 reserved;
1: - efi_memory_desc_t entry[0];
1: + u32 version;
1: + u32 num_entries;
1: + u32 desc_size;
1: + u32 reserved;
1: + efi_memory_desc_t entry[0];
1: } efi_memory_attributes_table_t;
1:
1: typedef int (*efi_memattr_perm_setter)(struct mm_struct *, efi_memory_desc_t *);
1: @@ -92932,205 +94116,205 @@ typedef int (*efi_memattr_perm_setter)(struct mm_struct *, efi_memory_desc_t *);
1: typedef u64 efi_physical_addr_t;
1:
1: typedef struct {
1: - u64 length;
1: - u64 data;
1: + u64 length;
1: + u64 data;
1: } efi_capsule_block_desc_t;
1:
1: struct efi_memory_map_data {
1: - phys_addr_t phys_map;
1: - long unsigned int size;
1: - long unsigned int desc_version;
1: - long unsigned int desc_size;
1: - long unsigned int flags;
1: + phys_addr_t phys_map;
1: + long unsigned int size;
1: + long unsigned int desc_version;
1: + long unsigned int desc_size;
1: + long unsigned int flags;
1: };
1:
1: struct efi_mem_range {
1: - struct range range;
1: - u64 attribute;
1: + struct range range;
1: + u64 attribute;
1: };
1:
1: enum {
1: - SYSTAB = 0,
1: - MMBASE = 1,
1: - MMSIZE = 2,
1: - DCSIZE = 3,
1: - DCVERS = 4,
1: - PARAMCOUNT = 5,
1: + SYSTAB = 0,
1: + MMBASE = 1,
1: + MMSIZE = 2,
1: + DCSIZE = 3,
1: + DCVERS = 4,
1: + PARAMCOUNT = 5,
1: };
1:
1: struct efi_system_resource_entry_v1 {
1: - efi_guid_t fw_class;
1: - u32 fw_type;
1: - u32 fw_version;
1: - u32 lowest_supported_fw_version;
1: - u32 capsule_flags;
1: - u32 last_attempt_version;
1: - u32 last_attempt_status;
1: + efi_guid_t fw_class;
1: + u32 fw_type;
1: + u32 fw_version;
1: + u32 lowest_supported_fw_version;
1: + u32 capsule_flags;
1: + u32 last_attempt_version;
1: + u32 last_attempt_status;
1: };
1:
1: struct efi_system_resource_table {
1: - u32 fw_resource_count;
1: - u32 fw_resource_count_max;
1: - u64 fw_resource_version;
1: - u8 entries[0];
1: + u32 fw_resource_count;
1: + u32 fw_resource_count_max;
1: + u64 fw_resource_version;
1: + u8 entries[0];
1: };
1:
1: struct esre_entry {
1: - union {
1: - struct efi_system_resource_entry_v1 *esre1;
1: - } esre;
1: - struct kobject kobj;
1: - struct list_head list;
1: + union {
1: + struct efi_system_resource_entry_v1 *esre1;
1: + } esre;
1: + struct kobject kobj;
1: + struct list_head list;
1: };
1:
1: struct esre_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct esre_entry *, char *);
1: - ssize_t (*store)(struct esre_entry *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct esre_entry *, char *);
1: + ssize_t (*store)(struct esre_entry *, const char *, size_t);
1: };
1:
1: struct cper_sec_proc_generic {
1: - u64 validation_bits;
1: - u8 proc_type;
1: - u8 proc_isa;
1: - u8 proc_error_type;
1: - u8 operation;
1: - u8 flags;
1: - u8 level;
1: - u16 reserved;
1: - u64 cpu_version;
1: - char cpu_brand[128];
1: - u64 proc_id;
1: - u64 target_addr;
1: - u64 requestor_id;
1: - u64 responder_id;
1: - u64 ip;
1: + u64 validation_bits;
1: + u8 proc_type;
1: + u8 proc_isa;
1: + u8 proc_error_type;
1: + u8 operation;
1: + u8 flags;
1: + u8 level;
1: + u16 reserved;
1: + u64 cpu_version;
1: + char cpu_brand[128];
1: + u64 proc_id;
1: + u64 target_addr;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 ip;
1: };
1:
1: struct cper_sec_proc_arm {
1: - u32 validation_bits;
1: - u16 err_info_num;
1: - u16 context_info_num;
1: - u32 section_length;
1: - u8 affinity_level;
1: - u8 reserved[3];
1: - u64 mpidr;
1: - u64 midr;
1: - u32 running_state;
1: - u32 psci_state;
1: + u32 validation_bits;
1: + u16 err_info_num;
1: + u16 context_info_num;
1: + u32 section_length;
1: + u8 affinity_level;
1: + u8 reserved[3];
1: + u64 mpidr;
1: + u64 midr;
1: + u32 running_state;
1: + u32 psci_state;
1: };
1:
1: struct cper_mem_err_compact {
1: - u64 validation_bits;
1: - u16 node;
1: - u16 card;
1: - u16 module;
1: - u16 bank;
1: - u16 device;
1: - u16 row;
1: - u16 column;
1: - u16 bit_pos;
1: - u64 requestor_id;
1: - u64 responder_id;
1: - u64 target_id;
1: - u16 rank;
1: - u16 mem_array_handle;
1: - u16 mem_dev_handle;
1: - u8 extended;
1: + u64 validation_bits;
1: + u16 node;
1: + u16 card;
1: + u16 module;
1: + u16 bank;
1: + u16 device;
1: + u16 row;
1: + u16 column;
1: + u16 bit_pos;
1: + u64 requestor_id;
1: + u64 responder_id;
1: + u64 target_id;
1: + u16 rank;
1: + u16 mem_array_handle;
1: + u16 mem_dev_handle;
1: + u8 extended;
1: } __attribute__((packed));
1:
1: struct cper_sec_pcie {
1: - u64 validation_bits;
1: - u32 port_type;
1: - struct {
1: - u8 minor;
1: - u8 major;
1: - u8 reserved[2];
1: - } version;
1: - u16 command;
1: - u16 status;
1: - u32 reserved;
1: - struct {
1: - u16 vendor_id;
1: - u16 device_id;
1: - u8 class_code[3];
1: - u8 function;
1: - u8 device;
1: - u16 segment;
1: - u8 bus;
1: - u8 secondary_bus;
1: - u16 slot;
1: - u8 reserved;
1: - } __attribute__((packed)) device_id;
1: - struct {
1: - u32 lower;
1: - u32 upper;
1: - } serial_number;
1: - struct {
1: - u16 secondary_status;
1: - u16 control;
1: - } bridge;
1: - u8 capability[60];
1: - u8 aer_info[96];
1: + u64 validation_bits;
1: + u32 port_type;
1: + struct {
1: + u8 minor;
1: + u8 major;
1: + u8 reserved[2];
1: + } version;
1: + u16 command;
1: + u16 status;
1: + u32 reserved;
1: + struct {
1: + u16 vendor_id;
1: + u16 device_id;
1: + u8 class_code[3];
1: + u8 function;
1: + u8 device;
1: + u16 segment;
1: + u8 bus;
1: + u8 secondary_bus;
1: + u16 slot;
1: + u8 reserved;
1: + } __attribute__((packed)) device_id;
1: + struct {
1: + u32 lower;
1: + u32 upper;
1: + } serial_number;
1: + struct {
1: + u16 secondary_status;
1: + u16 control;
1: + } bridge;
1: + u8 capability[60];
1: + u8 aer_info[96];
1: };
1:
1: struct cper_sec_fw_err_rec_ref {
1: - u8 record_type;
1: - u8 revision;
1: - u8 reserved[6];
1: - u64 record_identifier;
1: - guid_t record_identifier_guid;
1: + u8 record_type;
1: + u8 revision;
1: + u8 reserved[6];
1: + u64 record_identifier;
1: + guid_t record_identifier_guid;
1: };
1:
1: struct acpi_hest_generic_data {
1: - u8 section_type[16];
1: - u32 error_severity;
1: - u16 revision;
1: - u8 validation_bits;
1: - u8 flags;
1: - u32 error_data_length;
1: - u8 fru_id[16];
1: - u8 fru_text[20];
1: + u8 section_type[16];
1: + u32 error_severity;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 flags;
1: + u32 error_data_length;
1: + u8 fru_id[16];
1: + u8 fru_text[20];
1: };
1:
1: struct acpi_hest_generic_data_v300 {
1: - u8 section_type[16];
1: - u32 error_severity;
1: - u16 revision;
1: - u8 validation_bits;
1: - u8 flags;
1: - u32 error_data_length;
1: - u8 fru_id[16];
1: - u8 fru_text[20];
1: - u64 time_stamp;
1: + u8 section_type[16];
1: + u32 error_severity;
1: + u16 revision;
1: + u8 validation_bits;
1: + u8 flags;
1: + u32 error_data_length;
1: + u8 fru_id[16];
1: + u8 fru_text[20];
1: + u64 time_stamp;
1: };
1:
1: enum efi_rts_ids {
1: - EFI_NONE = 0,
1: - EFI_GET_TIME = 1,
1: - EFI_SET_TIME = 2,
1: - EFI_GET_WAKEUP_TIME = 3,
1: - EFI_SET_WAKEUP_TIME = 4,
1: - EFI_GET_VARIABLE = 5,
1: - EFI_GET_NEXT_VARIABLE = 6,
1: - EFI_SET_VARIABLE = 7,
1: - EFI_QUERY_VARIABLE_INFO = 8,
1: - EFI_GET_NEXT_HIGH_MONO_COUNT = 9,
1: - EFI_RESET_SYSTEM = 10,
1: - EFI_UPDATE_CAPSULE = 11,
1: - EFI_QUERY_CAPSULE_CAPS = 12,
1: + EFI_NONE = 0,
1: + EFI_GET_TIME = 1,
1: + EFI_SET_TIME = 2,
1: + EFI_GET_WAKEUP_TIME = 3,
1: + EFI_SET_WAKEUP_TIME = 4,
1: + EFI_GET_VARIABLE = 5,
1: + EFI_GET_NEXT_VARIABLE = 6,
1: + EFI_SET_VARIABLE = 7,
1: + EFI_QUERY_VARIABLE_INFO = 8,
1: + EFI_GET_NEXT_HIGH_MONO_COUNT = 9,
1: + EFI_RESET_SYSTEM = 10,
1: + EFI_UPDATE_CAPSULE = 11,
1: + EFI_QUERY_CAPSULE_CAPS = 12,
1: };
1:
1: struct efi_runtime_work {
1: - void *arg1;
1: - void *arg2;
1: - void *arg3;
1: - void *arg4;
1: - void *arg5;
1: - efi_status_t status;
1: - struct work_struct work;
1: - enum efi_rts_ids efi_rts_id;
1: - struct completion efi_rts_comp;
1: + void *arg1;
1: + void *arg2;
1: + void *arg3;
1: + void *arg4;
1: + void *arg5;
1: + efi_status_t status;
1: + struct work_struct work;
1: + enum efi_rts_ids efi_rts_id;
1: + struct completion efi_rts_comp;
1: };
1:
1: typedef void *efi_event_t;
1: @@ -93138,9 +94322,9 @@ typedef void *efi_event_t;
1: typedef void (*efi_event_notify_t)(efi_event_t, void *);
1:
1: typedef enum {
1: - EfiTimerCancel = 0,
1: - EfiTimerPeriodic = 1,
1: - EfiTimerRelative = 2,
1: + EfiTimerCancel = 0,
1: + EfiTimerPeriodic = 1,
1: + EfiTimerRelative = 2,
1: } EFI_TIMER_DELAY;
1:
1: typedef void *efi_handle_t;
1: @@ -93148,123 +94332,133 @@ typedef void *efi_handle_t;
1: typedef struct efi_generic_dev_path efi_device_path_protocol_t;
1:
1: union efi_boot_services {
1: - struct {
1: - efi_table_hdr_t hdr;
1: - void *raise_tpl;
1: - void *restore_tpl;
1: - efi_status_t (*allocate_pages)(int, int, long unsigned int, efi_physical_addr_t *);
1: - efi_status_t (*free_pages)(efi_physical_addr_t, long unsigned int);
1: - efi_status_t (*get_memory_map)(long unsigned int *, void *, long unsigned int *, long unsigned int *, u32 *);
1: - efi_status_t (*allocate_pool)(int, long unsigned int, void **);
1: - efi_status_t (*free_pool)(void *);
1: - efi_status_t (*create_event)(u32, long unsigned int, efi_event_notify_t, void *, efi_event_t *);
1: - efi_status_t (*set_timer)(efi_event_t, EFI_TIMER_DELAY, u64);
1: - efi_status_t (*wait_for_event)(long unsigned int, efi_event_t *, long unsigned int *);
1: - void *signal_event;
1: - efi_status_t (*close_event)(efi_event_t);
1: - void *check_event;
1: - void *install_protocol_interface;
1: - void *reinstall_protocol_interface;
1: - void *uninstall_protocol_interface;
1: - efi_status_t (*handle_protocol)(efi_handle_t, efi_guid_t *, void **);
1: - void *__reserved;
1: - void *register_protocol_notify;
1: - efi_status_t (*locate_handle)(int, efi_guid_t *, void *, long unsigned int *, efi_handle_t *);
1: - efi_status_t (*locate_device_path)(efi_guid_t *, efi_device_path_protocol_t **, efi_handle_t *);
1: - efi_status_t (*install_configuration_table)(efi_guid_t *, void *);
1: - void *load_image;
1: - void *start_image;
1: - efi_status_t (*exit)(efi_handle_t, efi_status_t, long unsigned int, efi_char16_t *);
1: - void *unload_image;
1: - efi_status_t (*exit_boot_services)(efi_handle_t, long unsigned int);
1: - void *get_next_monotonic_count;
1: - efi_status_t (*stall)(long unsigned int);
1: - void *set_watchdog_timer;
1: - void *connect_controller;
1: - efi_status_t (*disconnect_controller)(efi_handle_t, efi_handle_t, efi_handle_t);
1: - void *open_protocol;
1: - void *close_protocol;
1: - void *open_protocol_information;
1: - void *protocols_per_handle;
1: - void *locate_handle_buffer;
1: - efi_status_t (*locate_protocol)(efi_guid_t *, void *, void **);
1: - void *install_multiple_protocol_interfaces;
1: - void *uninstall_multiple_protocol_interfaces;
1: - void *calculate_crc32;
1: - void *copy_mem;
1: - void *set_mem;
1: - void *create_event_ex;
1: - };
1: - struct {
1: - efi_table_hdr_t hdr;
1: - u32 raise_tpl;
1: - u32 restore_tpl;
1: - u32 allocate_pages;
1: - u32 free_pages;
1: - u32 get_memory_map;
1: - u32 allocate_pool;
1: - u32 free_pool;
1: - u32 create_event;
1: - u32 set_timer;
1: - u32 wait_for_event;
1: - u32 signal_event;
1: - u32 close_event;
1: - u32 check_event;
1: - u32 install_protocol_interface;
1: - u32 reinstall_protocol_interface;
1: - u32 uninstall_protocol_interface;
1: - u32 handle_protocol;
1: - u32 __reserved;
1: - u32 register_protocol_notify;
1: - u32 locate_handle;
1: - u32 locate_device_path;
1: - u32 install_configuration_table;
1: - u32 load_image;
1: - u32 start_image;
1: - u32 exit;
1: - u32 unload_image;
1: - u32 exit_boot_services;
1: - u32 get_next_monotonic_count;
1: - u32 stall;
1: - u32 set_watchdog_timer;
1: - u32 connect_controller;
1: - u32 disconnect_controller;
1: - u32 open_protocol;
1: - u32 close_protocol;
1: - u32 open_protocol_information;
1: - u32 protocols_per_handle;
1: - u32 locate_handle_buffer;
1: - u32 locate_protocol;
1: - u32 install_multiple_protocol_interfaces;
1: - u32 uninstall_multiple_protocol_interfaces;
1: - u32 calculate_crc32;
1: - u32 copy_mem;
1: - u32 set_mem;
1: - u32 create_event_ex;
1: - } mixed_mode;
1: + struct {
1: + efi_table_hdr_t hdr;
1: + void *raise_tpl;
1: + void *restore_tpl;
1: + efi_status_t (*allocate_pages)(int, int, long unsigned int,
1: + efi_physical_addr_t *);
1: + efi_status_t (*free_pages)(efi_physical_addr_t, long unsigned int);
1: + efi_status_t (*get_memory_map)(long unsigned int *, void *,
1: + long unsigned int *, long unsigned int *,
1: + u32 *);
1: + efi_status_t (*allocate_pool)(int, long unsigned int, void **);
1: + efi_status_t (*free_pool)(void *);
1: + efi_status_t (*create_event)(u32, long unsigned int, efi_event_notify_t,
1: + void *, efi_event_t *);
1: + efi_status_t (*set_timer)(efi_event_t, EFI_TIMER_DELAY, u64);
1: + efi_status_t (*wait_for_event)(long unsigned int, efi_event_t *,
1: + long unsigned int *);
1: + void *signal_event;
1: + efi_status_t (*close_event)(efi_event_t);
1: + void *check_event;
1: + void *install_protocol_interface;
1: + void *reinstall_protocol_interface;
1: + void *uninstall_protocol_interface;
1: + efi_status_t (*handle_protocol)(efi_handle_t, efi_guid_t *, void **);
1: + void *__reserved;
1: + void *register_protocol_notify;
1: + efi_status_t (*locate_handle)(int, efi_guid_t *, void *,
1: + long unsigned int *, efi_handle_t *);
1: + efi_status_t (*locate_device_path)(efi_guid_t *,
1: + efi_device_path_protocol_t **,
1: + efi_handle_t *);
1: + efi_status_t (*install_configuration_table)(efi_guid_t *, void *);
1: + void *load_image;
1: + void *start_image;
1: + efi_status_t (*exit)(efi_handle_t, efi_status_t, long unsigned int,
1: + efi_char16_t *);
1: + void *unload_image;
1: + efi_status_t (*exit_boot_services)(efi_handle_t, long unsigned int);
1: + void *get_next_monotonic_count;
1: + efi_status_t (*stall)(long unsigned int);
1: + void *set_watchdog_timer;
1: + void *connect_controller;
1: + efi_status_t (*disconnect_controller)(efi_handle_t, efi_handle_t,
1: + efi_handle_t);
1: + void *open_protocol;
1: + void *close_protocol;
1: + void *open_protocol_information;
1: + void *protocols_per_handle;
1: + void *locate_handle_buffer;
1: + efi_status_t (*locate_protocol)(efi_guid_t *, void *, void **);
1: + void *install_multiple_protocol_interfaces;
1: + void *uninstall_multiple_protocol_interfaces;
1: + void *calculate_crc32;
1: + void *copy_mem;
1: + void *set_mem;
1: + void *create_event_ex;
1: + };
1: + struct {
1: + efi_table_hdr_t hdr;
1: + u32 raise_tpl;
1: + u32 restore_tpl;
1: + u32 allocate_pages;
1: + u32 free_pages;
1: + u32 get_memory_map;
1: + u32 allocate_pool;
1: + u32 free_pool;
1: + u32 create_event;
1: + u32 set_timer;
1: + u32 wait_for_event;
1: + u32 signal_event;
1: + u32 close_event;
1: + u32 check_event;
1: + u32 install_protocol_interface;
1: + u32 reinstall_protocol_interface;
1: + u32 uninstall_protocol_interface;
1: + u32 handle_protocol;
1: + u32 __reserved;
1: + u32 register_protocol_notify;
1: + u32 locate_handle;
1: + u32 locate_device_path;
1: + u32 install_configuration_table;
1: + u32 load_image;
1: + u32 start_image;
1: + u32 exit;
1: + u32 unload_image;
1: + u32 exit_boot_services;
1: + u32 get_next_monotonic_count;
1: + u32 stall;
1: + u32 set_watchdog_timer;
1: + u32 connect_controller;
1: + u32 disconnect_controller;
1: + u32 open_protocol;
1: + u32 close_protocol;
1: + u32 open_protocol_information;
1: + u32 protocols_per_handle;
1: + u32 locate_handle_buffer;
1: + u32 locate_protocol;
1: + u32 install_multiple_protocol_interfaces;
1: + u32 uninstall_multiple_protocol_interfaces;
1: + u32 calculate_crc32;
1: + u32 copy_mem;
1: + u32 set_mem;
1: + u32 create_event_ex;
1: + } mixed_mode;
1: };
1:
1: typedef union efi_boot_services efi_boot_services_t;
1:
1: typedef struct {
1: - efi_table_hdr_t hdr;
1: - u32 fw_vendor;
1: - u32 fw_revision;
1: - u32 con_in_handle;
1: - u32 con_in;
1: - u32 con_out_handle;
1: - u32 con_out;
1: - u32 stderr_handle;
1: - u32 stderr;
1: - u32 runtime;
1: - u32 boottime;
1: - u32 nr_tables;
1: - u32 tables;
1: + efi_table_hdr_t hdr;
1: + u32 fw_vendor;
1: + u32 fw_revision;
1: + u32 con_in_handle;
1: + u32 con_in;
1: + u32 con_out_handle;
1: + u32 con_out;
1: + u32 stderr_handle;
1: + u32 stderr;
1: + u32 runtime;
1: + u32 boottime;
1: + u32 nr_tables;
1: + u32 tables;
1: } efi_system_table_32_t;
1:
1: typedef struct {
1: - u16 scan_code;
1: - efi_char16_t unicode_char;
1: + u16 scan_code;
1: + efi_char16_t unicode_char;
1: } efi_input_key_t;
1:
1: union efi_simple_text_input_protocol;
1: @@ -93272,16 +94466,17 @@ union efi_simple_text_input_protocol;
1: typedef union efi_simple_text_input_protocol efi_simple_text_input_protocol_t;
1:
1: union efi_simple_text_input_protocol {
1: - struct {
1: - void *reset;
1: - efi_status_t (*read_keystroke)(efi_simple_text_input_protocol_t *, efi_input_key_t *);
1: - efi_event_t wait_for_key;
1: - };
1: - struct {
1: - u32 reset;
1: - u32 read_keystroke;
1: - u32 wait_for_key;
1: - } mixed_mode;
1: + struct {
1: + void *reset;
1: + efi_status_t (*read_keystroke)(efi_simple_text_input_protocol_t *,
1: + efi_input_key_t *);
1: + efi_event_t wait_for_key;
1: + };
1: + struct {
1: + u32 reset;
1: + u32 read_keystroke;
1: + u32 wait_for_key;
1: + } mixed_mode;
1: };
1:
1: union efi_simple_text_output_protocol;
1: @@ -93289,665 +94484,671 @@ union efi_simple_text_output_protocol;
1: typedef union efi_simple_text_output_protocol efi_simple_text_output_protocol_t;
1:
1: union efi_simple_text_output_protocol {
1: - struct {
1: - void *reset;
1: - efi_status_t (*output_string)(efi_simple_text_output_protocol_t *, efi_char16_t *);
1: - void *test_string;
1: - };
1: - struct {
1: - u32 reset;
1: - u32 output_string;
1: - u32 test_string;
1: - } mixed_mode;
1: + struct {
1: + void *reset;
1: + efi_status_t (*output_string)(efi_simple_text_output_protocol_t *,
1: + efi_char16_t *);
1: + void *test_string;
1: + };
1: + struct {
1: + u32 reset;
1: + u32 output_string;
1: + u32 test_string;
1: + } mixed_mode;
1: };
1:
1: typedef union {
1: - struct {
1: - efi_table_hdr_t hdr;
1: - long unsigned int fw_vendor;
1: - u32 fw_revision;
1: - long unsigned int con_in_handle;
1: - efi_simple_text_input_protocol_t *con_in;
1: - long unsigned int con_out_handle;
1: - efi_simple_text_output_protocol_t *con_out;
1: - long unsigned int stderr_handle;
1: - long unsigned int stderr;
1: - efi_runtime_services_t *runtime;
1: - efi_boot_services_t *boottime;
1: - long unsigned int nr_tables;
1: - long unsigned int tables;
1: - };
1: - efi_system_table_32_t mixed_mode;
1: + struct {
1: + efi_table_hdr_t hdr;
1: + long unsigned int fw_vendor;
1: + u32 fw_revision;
1: + long unsigned int con_in_handle;
1: + efi_simple_text_input_protocol_t *con_in;
1: + long unsigned int con_out_handle;
1: + efi_simple_text_output_protocol_t *con_out;
1: + long unsigned int stderr_handle;
1: + long unsigned int stderr;
1: + efi_runtime_services_t *runtime;
1: + efi_boot_services_t *boottime;
1: + long unsigned int nr_tables;
1: + long unsigned int tables;
1: + };
1: + efi_system_table_32_t mixed_mode;
1: } efi_system_table_t;
1:
1: struct cper_arm_err_info {
1: - u8 version;
1: - u8 length;
1: - u16 validation_bits;
1: - u8 type;
1: - u16 multiple_error;
1: - u8 flags;
1: - u64 error_info;
1: - u64 virt_fault_addr;
1: - u64 physical_fault_addr;
1: + u8 version;
1: + u8 length;
1: + u16 validation_bits;
1: + u8 type;
1: + u16 multiple_error;
1: + u8 flags;
1: + u64 error_info;
1: + u64 virt_fault_addr;
1: + u64 physical_fault_addr;
1: } __attribute__((packed));
1:
1: struct cper_arm_ctx_info {
1: - u16 version;
1: - u16 type;
1: - u32 size;
1: + u16 version;
1: + u16 type;
1: + u32 size;
1: };
1:
1: -typedef long unsigned int psci_fn(long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +typedef long unsigned int psci_fn(long unsigned int, long unsigned int,
1: + long unsigned int, long unsigned int);
1:
1: enum psci_function {
1: - PSCI_FN_CPU_SUSPEND = 0,
1: - PSCI_FN_CPU_ON = 1,
1: - PSCI_FN_CPU_OFF = 2,
1: - PSCI_FN_MIGRATE = 3,
1: - PSCI_FN_MAX = 4,
1: + PSCI_FN_CPU_SUSPEND = 0,
1: + PSCI_FN_CPU_ON = 1,
1: + PSCI_FN_CPU_OFF = 2,
1: + PSCI_FN_MIGRATE = 3,
1: + PSCI_FN_MAX = 4,
1: };
1:
1: typedef int (*psci_initcall_t)(const struct device_node *);
1:
1: struct mrq_ping_request {
1: - uint32_t challenge;
1: + uint32_t challenge;
1: };
1:
1: struct mrq_ping_response {
1: - uint32_t reply;
1: + uint32_t reply;
1: };
1:
1: struct mrq_query_tag_request {
1: - uint32_t addr;
1: + uint32_t addr;
1: };
1:
1: struct mrq_query_fw_tag_response {
1: - uint8_t tag[32];
1: + uint8_t tag[32];
1: };
1:
1: struct mrq_query_abi_request {
1: - uint32_t mrq;
1: + uint32_t mrq;
1: };
1:
1: struct mrq_query_abi_response {
1: - int32_t status;
1: + int32_t status;
1: };
1:
1: struct tegra_ivc_header;
1:
1: struct tegra_ivc {
1: - struct device *peer;
1: - struct {
1: - struct tegra_ivc_header *channel;
1: - unsigned int position;
1: - dma_addr_t phys;
1: - } rx;
1: - struct {
1: - struct tegra_ivc_header *channel;
1: - unsigned int position;
1: - dma_addr_t phys;
1: - } tx;
1: - void (*notify)(struct tegra_ivc *, void *);
1: - void *notify_data;
1: - unsigned int num_frames;
1: - size_t frame_size;
1: -};
1: -
1: -typedef void (*tegra_bpmp_mrq_handler_t)(unsigned int, struct tegra_bpmp_channel *, void *);
1: + struct device *peer;
1: + struct {
1: + struct tegra_ivc_header *channel;
1: + unsigned int position;
1: + dma_addr_t phys;
1: + } rx;
1: + struct {
1: + struct tegra_ivc_header *channel;
1: + unsigned int position;
1: + dma_addr_t phys;
1: + } tx;
1: + void (*notify)(struct tegra_ivc *, void *);
1: + void *notify_data;
1: + unsigned int num_frames;
1: + size_t frame_size;
1: +};
1: +
1: +typedef void (*tegra_bpmp_mrq_handler_t)(unsigned int,
1: + struct tegra_bpmp_channel *, void *);
1:
1: struct tegra_bpmp_mrq {
1: - struct list_head list;
1: - unsigned int mrq;
1: - tegra_bpmp_mrq_handler_t handler;
1: - void *data;
1: + struct list_head list;
1: + unsigned int mrq;
1: + tegra_bpmp_mrq_handler_t handler;
1: + void *data;
1: };
1:
1: struct tegra210_bpmp {
1: - void *atomics;
1: - void *arb_sema;
1: - struct irq_data *tx_irq_data;
1: + void *atomics;
1: + void *arb_sema;
1: + struct irq_data *tx_irq_data;
1: };
1:
1: struct tegra186_bpmp {
1: - struct tegra_bpmp *parent;
1: - struct {
1: - struct gen_pool *pool;
1: - dma_addr_t phys;
1: - void *virt;
1: - } tx;
1: - struct {
1: - struct gen_pool *pool;
1: - dma_addr_t phys;
1: - void *virt;
1: - } rx;
1: - struct {
1: - struct mbox_client client;
1: - struct mbox_chan___2 *channel;
1: - } mbox;
1: + struct tegra_bpmp *parent;
1: + struct {
1: + struct gen_pool *pool;
1: + dma_addr_t phys;
1: + void *virt;
1: + } tx;
1: + struct {
1: + struct gen_pool *pool;
1: + dma_addr_t phys;
1: + void *virt;
1: + } rx;
1: + struct {
1: + struct mbox_client client;
1: + struct mbox_chan___2 *channel;
1: + } mbox;
1: };
1:
1: enum mrq_debugfs_commands {
1: - CMD_DEBUGFS_READ = 1,
1: - CMD_DEBUGFS_WRITE = 2,
1: - CMD_DEBUGFS_DUMPDIR = 3,
1: - CMD_DEBUGFS_MAX = 4,
1: + CMD_DEBUGFS_READ = 1,
1: + CMD_DEBUGFS_WRITE = 2,
1: + CMD_DEBUGFS_DUMPDIR = 3,
1: + CMD_DEBUGFS_MAX = 4,
1: };
1:
1: struct cmd_debugfs_fileop_request {
1: - uint32_t fnameaddr;
1: - uint32_t fnamelen;
1: - uint32_t dataaddr;
1: - uint32_t datalen;
1: + uint32_t fnameaddr;
1: + uint32_t fnamelen;
1: + uint32_t dataaddr;
1: + uint32_t datalen;
1: };
1:
1: struct cmd_debugfs_dumpdir_request {
1: - uint32_t dataaddr;
1: - uint32_t datalen;
1: + uint32_t dataaddr;
1: + uint32_t datalen;
1: };
1:
1: struct cmd_debugfs_fileop_response {
1: - uint32_t reserved;
1: - uint32_t nbytes;
1: + uint32_t reserved;
1: + uint32_t nbytes;
1: };
1:
1: struct cmd_debugfs_dumpdir_response {
1: - uint32_t reserved;
1: - uint32_t nbytes;
1: + uint32_t reserved;
1: + uint32_t nbytes;
1: };
1:
1: struct mrq_debugfs_request {
1: - uint32_t cmd;
1: - union {
1: - struct cmd_debugfs_fileop_request fop;
1: - struct cmd_debugfs_dumpdir_request dumpdir;
1: - };
1: + uint32_t cmd;
1: + union {
1: + struct cmd_debugfs_fileop_request fop;
1: + struct cmd_debugfs_dumpdir_request dumpdir;
1: + };
1: };
1:
1: struct mrq_debugfs_response {
1: - int32_t reserved;
1: - union {
1: - struct cmd_debugfs_fileop_response fop;
1: - struct cmd_debugfs_dumpdir_response dumpdir;
1: - };
1: + int32_t reserved;
1: + union {
1: + struct cmd_debugfs_fileop_response fop;
1: + struct cmd_debugfs_dumpdir_response dumpdir;
1: + };
1: };
1:
1: enum mrq_debug_commands {
1: - CMD_DEBUG_OPEN_RO = 0,
1: - CMD_DEBUG_OPEN_WO = 1,
1: - CMD_DEBUG_READ = 2,
1: - CMD_DEBUG_WRITE = 3,
1: - CMD_DEBUG_CLOSE = 4,
1: - CMD_DEBUG_MAX = 5,
1: + CMD_DEBUG_OPEN_RO = 0,
1: + CMD_DEBUG_OPEN_WO = 1,
1: + CMD_DEBUG_READ = 2,
1: + CMD_DEBUG_WRITE = 3,
1: + CMD_DEBUG_CLOSE = 4,
1: + CMD_DEBUG_MAX = 5,
1: };
1:
1: struct cmd_debug_fopen_request {
1: - char name[116];
1: + char name[116];
1: };
1:
1: struct cmd_debug_fopen_response {
1: - uint32_t fd;
1: - uint32_t datalen;
1: + uint32_t fd;
1: + uint32_t datalen;
1: };
1:
1: struct cmd_debug_fread_request {
1: - uint32_t fd;
1: + uint32_t fd;
1: };
1:
1: struct cmd_debug_fread_response {
1: - uint32_t readlen;
1: - char data[116];
1: + uint32_t readlen;
1: + char data[116];
1: };
1:
1: struct cmd_debug_fwrite_request {
1: - uint32_t fd;
1: - uint32_t datalen;
1: - char data[108];
1: + uint32_t fd;
1: + uint32_t datalen;
1: + char data[108];
1: };
1:
1: struct cmd_debug_fclose_request {
1: - uint32_t fd;
1: + uint32_t fd;
1: };
1:
1: struct mrq_debug_request {
1: - uint32_t cmd;
1: - union {
1: - struct cmd_debug_fopen_request fop;
1: - struct cmd_debug_fread_request frd;
1: - struct cmd_debug_fwrite_request fwr;
1: - struct cmd_debug_fclose_request fcl;
1: - };
1: + uint32_t cmd;
1: + union {
1: + struct cmd_debug_fopen_request fop;
1: + struct cmd_debug_fread_request frd;
1: + struct cmd_debug_fwrite_request fwr;
1: + struct cmd_debug_fclose_request fcl;
1: + };
1: };
1:
1: struct mrq_debug_response {
1: - union {
1: - struct cmd_debug_fopen_response fop;
1: - struct cmd_debug_fread_response frd;
1: - };
1: + union {
1: + struct cmd_debug_fopen_response fop;
1: + struct cmd_debug_fread_response frd;
1: + };
1: };
1:
1: struct seqbuf {
1: - char *buf;
1: - size_t pos;
1: - size_t size;
1: + char *buf;
1: + size_t pos;
1: + size_t size;
1: };
1:
1: struct tegra_ivc_header {
1: - union {
1: - struct {
1: - u32 count;
1: - u32 state;
1: - };
1: - u8 pad[64];
1: - } tx;
1: - union {
1: - u32 count;
1: - u8 pad[64];
1: - } rx;
1: + union {
1: + struct {
1: + u32 count;
1: + u32 state;
1: + };
1: + u8 pad[64];
1: + } tx;
1: + union {
1: + u32 count;
1: + u8 pad[64];
1: + } rx;
1: };
1:
1: enum tegra_ivc_state {
1: - TEGRA_IVC_STATE_ESTABLISHED = 0,
1: - TEGRA_IVC_STATE_SYNC = 1,
1: - TEGRA_IVC_STATE_ACK = 2,
1: + TEGRA_IVC_STATE_ESTABLISHED = 0,
1: + TEGRA_IVC_STATE_SYNC = 1,
1: + TEGRA_IVC_STATE_ACK = 2,
1: };
1:
1: struct of_timer_irq {
1: - int irq;
1: - int index;
1: - int percpu;
1: - const char *name;
1: - long unsigned int flags;
1: - irq_handler_t handler;
1: + int irq;
1: + int index;
1: + int percpu;
1: + const char *name;
1: + long unsigned int flags;
1: + irq_handler_t handler;
1: };
1:
1: struct of_timer_base {
1: - void *base;
1: - const char *name;
1: - int index;
1: + void *base;
1: + const char *name;
1: + int index;
1: };
1:
1: struct of_timer_clk {
1: - struct clk *clk;
1: - const char *name;
1: - int index;
1: - long unsigned int rate;
1: - long unsigned int period;
1: + struct clk *clk;
1: + const char *name;
1: + int index;
1: + long unsigned int rate;
1: + long unsigned int period;
1: };
1:
1: struct timer_of {
1: - unsigned int flags;
1: - struct device_node *np;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct clock_event_device clkevt;
1: - struct of_timer_base of_base;
1: - struct of_timer_irq of_irq;
1: - struct of_timer_clk of_clk;
1: - void *private_data;
1: - long: 64;
1: - long: 64;
1: + unsigned int flags;
1: + struct device_node *np;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct clock_event_device clkevt;
1: + struct of_timer_base of_base;
1: + struct of_timer_irq of_irq;
1: + struct of_timer_clk of_clk;
1: + void *private_data;
1: + long : 64;
1: + long : 64;
1: };
1:
1: typedef int (*of_init_fn_1_ret)(struct device_node *);
1:
1: struct clocksource_mmio {
1: - void *reg;
1: - struct clocksource clksrc;
1: + void *reg;
1: + struct clocksource clksrc;
1: };
1:
1: struct rk_timer {
1: - void *base;
1: - void *ctrl;
1: - struct clk *clk;
1: - struct clk *pclk;
1: - u32 freq;
1: - int irq;
1: + void *base;
1: + void *ctrl;
1: + struct clk *clk;
1: + struct clk *pclk;
1: + u32 freq;
1: + int irq;
1: };
1:
1: struct rk_clkevt {
1: - struct clock_event_device ce;
1: - struct rk_timer timer;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct clock_event_device ce;
1: + struct rk_timer timer;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum arch_timer_reg {
1: - ARCH_TIMER_REG_CTRL = 0,
1: - ARCH_TIMER_REG_TVAL = 1,
1: + ARCH_TIMER_REG_CTRL = 0,
1: + ARCH_TIMER_REG_TVAL = 1,
1: };
1:
1: enum arch_timer_spi_nr {
1: - ARCH_TIMER_PHYS_SPI = 0,
1: - ARCH_TIMER_VIRT_SPI = 1,
1: - ARCH_TIMER_MAX_TIMER_SPI = 2,
1: + ARCH_TIMER_PHYS_SPI = 0,
1: + ARCH_TIMER_VIRT_SPI = 1,
1: + ARCH_TIMER_MAX_TIMER_SPI = 2,
1: };
1:
1: enum arch_timer_erratum_match_type {
1: - ate_match_dt = 0,
1: - ate_match_local_cap_id = 1,
1: - ate_match_acpi_oem_info = 2,
1: + ate_match_dt = 0,
1: + ate_match_local_cap_id = 1,
1: + ate_match_acpi_oem_info = 2,
1: };
1:
1: struct arch_timer_erratum_workaround {
1: - enum arch_timer_erratum_match_type match_type;
1: - const void *id;
1: - const char *desc;
1: - u32 (*read_cntp_tval_el0)();
1: - u32 (*read_cntv_tval_el0)();
1: - u64 (*read_cntpct_el0)();
1: - u64 (*read_cntvct_el0)();
1: - int (*set_next_event_phys)(long unsigned int, struct clock_event_device *);
1: - int (*set_next_event_virt)(long unsigned int, struct clock_event_device *);
1: - bool disable_compat_vdso;
1: + enum arch_timer_erratum_match_type match_type;
1: + const void *id;
1: + const char *desc;
1: + u32 (*read_cntp_tval_el0)();
1: + u32 (*read_cntv_tval_el0)();
1: + u64 (*read_cntpct_el0)();
1: + u64 (*read_cntvct_el0)();
1: + int (*set_next_event_phys)(long unsigned int, struct clock_event_device *);
1: + int (*set_next_event_virt)(long unsigned int, struct clock_event_device *);
1: + bool disable_compat_vdso;
1: };
1:
1: struct arch_timer {
1: - void *base;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct clock_event_device evt;
1: + void *base;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct clock_event_device evt;
1: };
1:
1: struct ate_acpi_oem_info {
1: - char oem_id[7];
1: - char oem_table_id[9];
1: - u32 oem_revision;
1: + char oem_id[7];
1: + char oem_table_id[9];
1: + u32 oem_revision;
1: };
1:
1: -typedef bool (*ate_match_fn_t)(const struct arch_timer_erratum_workaround *, const void *);
1: +typedef bool (*ate_match_fn_t)(const struct arch_timer_erratum_workaround *,
1: + const void *);
1:
1: struct sp804_timer {
1: - int load;
1: - int load_h;
1: - int value;
1: - int value_h;
1: - int ctrl;
1: - int intclr;
1: - int ris;
1: - int mis;
1: - int bgload;
1: - int bgload_h;
1: - int timer_base[2];
1: - int width;
1: + int load;
1: + int load_h;
1: + int value;
1: + int value_h;
1: + int ctrl;
1: + int intclr;
1: + int ris;
1: + int mis;
1: + int bgload;
1: + int bgload_h;
1: + int timer_base[2];
1: + int width;
1: };
1:
1: struct sp804_clkevt {
1: - void *base;
1: - void *load;
1: - void *load_h;
1: - void *value;
1: - void *value_h;
1: - void *ctrl;
1: - void *intclr;
1: - void *ris;
1: - void *mis;
1: - void *bgload;
1: - void *bgload_h;
1: - long unsigned int reload;
1: - int width;
1: + void *base;
1: + void *load;
1: + void *load_h;
1: + void *value;
1: + void *value_h;
1: + void *ctrl;
1: + void *intclr;
1: + void *ris;
1: + void *mis;
1: + void *bgload;
1: + void *bgload_h;
1: + long unsigned int reload;
1: + int width;
1: };
1:
1: struct alias_prop {
1: - struct list_head link;
1: - const char *alias;
1: - struct device_node *np;
1: - int id;
1: - char stem[0];
1: + struct list_head link;
1: + const char *alias;
1: + struct device_node *np;
1: + int id;
1: + char stem[0];
1: };
1:
1: struct of_endpoint {
1: - unsigned int port;
1: - unsigned int id;
1: - const struct device_node *local_node;
1: + unsigned int port;
1: + unsigned int id;
1: + const struct device_node *local_node;
1: };
1:
1: struct supplier_bindings {
1: - struct device_node * (*parse_prop)(struct device_node *, const char *, int);
1: + struct device_node *(*parse_prop)(struct device_node *, const char *, int);
1: };
1:
1: struct of_changeset_entry {
1: - struct list_head node;
1: - long unsigned int action;
1: - struct device_node *np;
1: - struct property *prop;
1: - struct property *old_prop;
1: + struct list_head node;
1: + long unsigned int action;
1: + struct device_node *np;
1: + struct property *prop;
1: + struct property *old_prop;
1: };
1:
1: struct of_changeset {
1: - struct list_head entries;
1: + struct list_head entries;
1: };
1:
1: struct of_bus___2 {
1: - void (*count_cells)(const void *, int, int *, int *);
1: - u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: - int (*translate)(__be32 *, u64, int);
1: + void (*count_cells)(const void *, int, int *, int *);
1: + u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: + int (*translate)(__be32 *, u64, int);
1: };
1:
1: struct of_bus {
1: - const char *name;
1: - const char *addresses;
1: - int (*match)(struct device_node *);
1: - void (*count_cells)(struct device_node *, int *, int *);
1: - u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: - int (*translate)(__be32 *, u64, int);
1: - bool has_flags;
1: - unsigned int (*get_flags)(const __be32 *);
1: + const char *name;
1: + const char *addresses;
1: + int (*match)(struct device_node *);
1: + void (*count_cells)(struct device_node *, int *, int *);
1: + u64 (*map)(__be32 *, const __be32 *, int, int, int);
1: + int (*translate)(__be32 *, u64, int);
1: + bool has_flags;
1: + unsigned int (*get_flags)(const __be32 *);
1: };
1:
1: struct of_intc_desc {
1: - struct list_head list;
1: - of_irq_init_cb_t irq_init_cb;
1: - struct device_node *dev;
1: - struct device_node *interrupt_parent;
1: + struct list_head list;
1: + of_irq_init_cb_t irq_init_cb;
1: + struct device_node *dev;
1: + struct device_node *interrupt_parent;
1: };
1:
1: struct rmem_assigned_device {
1: - struct device *dev;
1: - struct reserved_mem *rmem;
1: - struct list_head list;
1: + struct device *dev;
1: + struct reserved_mem *rmem;
1: + struct list_head list;
1: };
1:
1: enum of_overlay_notify_action {
1: - OF_OVERLAY_PRE_APPLY = 0,
1: - OF_OVERLAY_POST_APPLY = 1,
1: - OF_OVERLAY_PRE_REMOVE = 2,
1: - OF_OVERLAY_POST_REMOVE = 3,
1: + OF_OVERLAY_PRE_APPLY = 0,
1: + OF_OVERLAY_POST_APPLY = 1,
1: + OF_OVERLAY_PRE_REMOVE = 2,
1: + OF_OVERLAY_POST_REMOVE = 3,
1: };
1:
1: struct of_overlay_notify_data {
1: - struct device_node *overlay;
1: - struct device_node *target;
1: + struct device_node *overlay;
1: + struct device_node *target;
1: };
1:
1: struct target {
1: - struct device_node *np;
1: - bool in_livetree;
1: + struct device_node *np;
1: + bool in_livetree;
1: };
1:
1: struct fragment {
1: - struct device_node *overlay;
1: - struct device_node *target;
1: + struct device_node *overlay;
1: + struct device_node *target;
1: };
1:
1: struct overlay_changeset {
1: - int id;
1: - struct list_head ovcs_list;
1: - const void *fdt;
1: - struct device_node *overlay_tree;
1: - int count;
1: - struct fragment *fragments;
1: - bool symbols_fragment;
1: - struct of_changeset cset;
1: + int id;
1: + struct list_head ovcs_list;
1: + const void *fdt;
1: + struct device_node *overlay_tree;
1: + int count;
1: + struct fragment *fragments;
1: + bool symbols_fragment;
1: + struct of_changeset cset;
1: };
1:
1: enum vchiq_reason {
1: - VCHIQ_SERVICE_OPENED = 0,
1: - VCHIQ_SERVICE_CLOSED = 1,
1: - VCHIQ_MESSAGE_AVAILABLE = 2,
1: - VCHIQ_BULK_TRANSMIT_DONE = 3,
1: - VCHIQ_BULK_RECEIVE_DONE = 4,
1: - VCHIQ_BULK_TRANSMIT_ABORTED = 5,
1: - VCHIQ_BULK_RECEIVE_ABORTED = 6,
1: + VCHIQ_SERVICE_OPENED = 0,
1: + VCHIQ_SERVICE_CLOSED = 1,
1: + VCHIQ_MESSAGE_AVAILABLE = 2,
1: + VCHIQ_BULK_TRANSMIT_DONE = 3,
1: + VCHIQ_BULK_RECEIVE_DONE = 4,
1: + VCHIQ_BULK_TRANSMIT_ABORTED = 5,
1: + VCHIQ_BULK_RECEIVE_ABORTED = 6,
1: };
1:
1: enum vchiq_status {
1: - VCHIQ_ERROR = 4294967295,
1: - VCHIQ_SUCCESS = 0,
1: - VCHIQ_RETRY = 1,
1: + VCHIQ_ERROR = 4294967295,
1: + VCHIQ_SUCCESS = 0,
1: + VCHIQ_RETRY = 1,
1: };
1:
1: enum vchiq_bulk_mode {
1: - VCHIQ_BULK_MODE_CALLBACK = 0,
1: - VCHIQ_BULK_MODE_BLOCKING = 1,
1: - VCHIQ_BULK_MODE_NOCALLBACK = 2,
1: - VCHIQ_BULK_MODE_WAITING = 3,
1: + VCHIQ_BULK_MODE_CALLBACK = 0,
1: + VCHIQ_BULK_MODE_BLOCKING = 1,
1: + VCHIQ_BULK_MODE_NOCALLBACK = 2,
1: + VCHIQ_BULK_MODE_WAITING = 3,
1: };
1:
1: enum vchiq_service_option {
1: - VCHIQ_SERVICE_OPTION_AUTOCLOSE = 0,
1: - VCHIQ_SERVICE_OPTION_SLOT_QUOTA = 1,
1: - VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA = 2,
1: - VCHIQ_SERVICE_OPTION_SYNCHRONOUS = 3,
1: - VCHIQ_SERVICE_OPTION_TRACE = 4,
1: + VCHIQ_SERVICE_OPTION_AUTOCLOSE = 0,
1: + VCHIQ_SERVICE_OPTION_SLOT_QUOTA = 1,
1: + VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA = 2,
1: + VCHIQ_SERVICE_OPTION_SYNCHRONOUS = 3,
1: + VCHIQ_SERVICE_OPTION_TRACE = 4,
1: };
1:
1: struct vchiq_header {
1: - int msgid;
1: - unsigned int size;
1: - char data[0];
1: + int msgid;
1: + unsigned int size;
1: + char data[0];
1: };
1:
1: struct vchiq_service_base {
1: - int fourcc;
1: - enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: - void *userdata;
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *,
1: + unsigned int, void *);
1: + void *userdata;
1: };
1:
1: struct vchiq_service_params_kernel {
1: - int fourcc;
1: - enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: - void *userdata;
1: - short int version;
1: - short int version_min;
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *,
1: + unsigned int, void *);
1: + void *userdata;
1: + short int version;
1: + short int version_min;
1: };
1:
1: typedef uint32_t BITSET_T;
1:
1: enum {
1: - DEBUG_ENTRIES = 0,
1: - DEBUG_SLOT_HANDLER_COUNT = 1,
1: - DEBUG_SLOT_HANDLER_LINE = 2,
1: - DEBUG_PARSE_LINE = 3,
1: - DEBUG_PARSE_HEADER = 4,
1: - DEBUG_PARSE_MSGID = 5,
1: - DEBUG_AWAIT_COMPLETION_LINE = 6,
1: - DEBUG_DEQUEUE_MESSAGE_LINE = 7,
1: - DEBUG_SERVICE_CALLBACK_LINE = 8,
1: - DEBUG_MSG_QUEUE_FULL_COUNT = 9,
1: - DEBUG_COMPLETION_QUEUE_FULL_COUNT = 10,
1: - DEBUG_MAX = 11,
1: + DEBUG_ENTRIES = 0,
1: + DEBUG_SLOT_HANDLER_COUNT = 1,
1: + DEBUG_SLOT_HANDLER_LINE = 2,
1: + DEBUG_PARSE_LINE = 3,
1: + DEBUG_PARSE_HEADER = 4,
1: + DEBUG_PARSE_MSGID = 5,
1: + DEBUG_AWAIT_COMPLETION_LINE = 6,
1: + DEBUG_DEQUEUE_MESSAGE_LINE = 7,
1: + DEBUG_SERVICE_CALLBACK_LINE = 8,
1: + DEBUG_MSG_QUEUE_FULL_COUNT = 9,
1: + DEBUG_COMPLETION_QUEUE_FULL_COUNT = 10,
1: + DEBUG_MAX = 11,
1: };
1:
1: enum vchiq_connstate {
1: - VCHIQ_CONNSTATE_DISCONNECTED = 0,
1: - VCHIQ_CONNSTATE_CONNECTING = 1,
1: - VCHIQ_CONNSTATE_CONNECTED = 2,
1: - VCHIQ_CONNSTATE_PAUSING = 3,
1: - VCHIQ_CONNSTATE_PAUSE_SENT = 4,
1: - VCHIQ_CONNSTATE_PAUSED = 5,
1: - VCHIQ_CONNSTATE_RESUMING = 6,
1: - VCHIQ_CONNSTATE_PAUSE_TIMEOUT = 7,
1: - VCHIQ_CONNSTATE_RESUME_TIMEOUT = 8,
1: + VCHIQ_CONNSTATE_DISCONNECTED = 0,
1: + VCHIQ_CONNSTATE_CONNECTING = 1,
1: + VCHIQ_CONNSTATE_CONNECTED = 2,
1: + VCHIQ_CONNSTATE_PAUSING = 3,
1: + VCHIQ_CONNSTATE_PAUSE_SENT = 4,
1: + VCHIQ_CONNSTATE_PAUSED = 5,
1: + VCHIQ_CONNSTATE_RESUMING = 6,
1: + VCHIQ_CONNSTATE_PAUSE_TIMEOUT = 7,
1: + VCHIQ_CONNSTATE_RESUME_TIMEOUT = 8,
1: };
1:
1: enum {
1: - VCHIQ_SRVSTATE_FREE = 0,
1: - VCHIQ_SRVSTATE_HIDDEN = 1,
1: - VCHIQ_SRVSTATE_LISTENING = 2,
1: - VCHIQ_SRVSTATE_OPENING = 3,
1: - VCHIQ_SRVSTATE_OPEN = 4,
1: - VCHIQ_SRVSTATE_OPENSYNC = 5,
1: - VCHIQ_SRVSTATE_CLOSESENT = 6,
1: - VCHIQ_SRVSTATE_CLOSERECVD = 7,
1: - VCHIQ_SRVSTATE_CLOSEWAIT = 8,
1: - VCHIQ_SRVSTATE_CLOSED = 9,
1: + VCHIQ_SRVSTATE_FREE = 0,
1: + VCHIQ_SRVSTATE_HIDDEN = 1,
1: + VCHIQ_SRVSTATE_LISTENING = 2,
1: + VCHIQ_SRVSTATE_OPENING = 3,
1: + VCHIQ_SRVSTATE_OPEN = 4,
1: + VCHIQ_SRVSTATE_OPENSYNC = 5,
1: + VCHIQ_SRVSTATE_CLOSESENT = 6,
1: + VCHIQ_SRVSTATE_CLOSERECVD = 7,
1: + VCHIQ_SRVSTATE_CLOSEWAIT = 8,
1: + VCHIQ_SRVSTATE_CLOSED = 9,
1: };
1:
1: enum {
1: - VCHIQ_POLL_TERMINATE = 0,
1: - VCHIQ_POLL_REMOVE = 1,
1: - VCHIQ_POLL_TXNOTIFY = 2,
1: - VCHIQ_POLL_RXNOTIFY = 3,
1: - VCHIQ_POLL_COUNT = 4,
1: + VCHIQ_POLL_TERMINATE = 0,
1: + VCHIQ_POLL_REMOVE = 1,
1: + VCHIQ_POLL_TXNOTIFY = 2,
1: + VCHIQ_POLL_RXNOTIFY = 3,
1: + VCHIQ_POLL_COUNT = 4,
1: };
1:
1: enum vchiq_bulk_dir {
1: - VCHIQ_BULK_TRANSMIT = 0,
1: - VCHIQ_BULK_RECEIVE = 1,
1: + VCHIQ_BULK_TRANSMIT = 0,
1: + VCHIQ_BULK_RECEIVE = 1,
1: };
1:
1: typedef void (*vchiq_userdata_term)(void *);
1:
1: struct vchiq_bulk {
1: - short int mode;
1: - short int dir;
1: - void *userdata;
1: - dma_addr_t data;
1: - int size;
1: - void *remote_data;
1: - int remote_size;
1: - int actual;
1: + short int mode;
1: + short int dir;
1: + void *userdata;
1: + dma_addr_t data;
1: + int size;
1: + void *remote_data;
1: + int remote_size;
1: + int actual;
1: };
1:
1: struct vchiq_bulk_queue {
1: - int local_insert;
1: - int remote_insert;
1: - int process;
1: - int remote_notify;
1: - int remove;
1: - struct vchiq_bulk bulks[4];
1: + int local_insert;
1: + int remote_insert;
1: + int process;
1: + int remote_notify;
1: + int remove;
1: + struct vchiq_bulk bulks[4];
1: };
1:
1: struct remote_event {
1: - int armed;
1: - int fired;
1: - u32 __unused;
1: + int armed;
1: + int fired;
1: + u32 __unused;
1: };
1:
1: struct vchiq_slot {
1: - char data[4096];
1: + char data[4096];
1: };
1:
1: struct vchiq_slot_info {
1: - short int use_count;
1: - short int release_count;
1: + short int use_count;
1: + short int release_count;
1: };
1:
1: struct service_stats_struct {
1: - int quota_stalls;
1: - int slot_stalls;
1: - int bulk_stalls;
1: - int error_count;
1: - int ctrl_tx_count;
1: - int ctrl_rx_count;
1: - int bulk_tx_count;
1: - int bulk_rx_count;
1: - int bulk_aborted_count;
1: - uint64_t ctrl_tx_bytes;
1: - uint64_t ctrl_rx_bytes;
1: - uint64_t bulk_tx_bytes;
1: - uint64_t bulk_rx_bytes;
1: + int quota_stalls;
1: + int slot_stalls;
1: + int bulk_stalls;
1: + int error_count;
1: + int ctrl_tx_count;
1: + int ctrl_rx_count;
1: + int bulk_tx_count;
1: + int bulk_rx_count;
1: + int bulk_aborted_count;
1: + uint64_t ctrl_tx_bytes;
1: + uint64_t ctrl_rx_bytes;
1: + uint64_t bulk_tx_bytes;
1: + uint64_t bulk_rx_bytes;
1: };
1:
1: struct vchiq_state;
1: @@ -93955,55 +95156,55 @@ struct vchiq_state;
1: struct vchiq_instance;
1:
1: struct vchiq_service {
1: - struct vchiq_service_base base;
1: - unsigned int handle;
1: - struct kref ref_count;
1: - struct callback_head rcu;
1: - int srvstate;
1: - vchiq_userdata_term userdata_term;
1: - unsigned int localport;
1: - unsigned int remoteport;
1: - int public_fourcc;
1: - int client_id;
1: - char auto_close;
1: - char sync;
1: - char closing;
1: - char trace;
1: - atomic_t poll_flags;
1: - short int version;
1: - short int version_min;
1: - short int peer_version;
1: - struct vchiq_state *state;
1: - struct vchiq_instance *instance;
1: - int service_use_count;
1: - struct vchiq_bulk_queue bulk_tx;
1: - struct vchiq_bulk_queue bulk_rx;
1: - struct completion remove_event;
1: - struct completion bulk_remove_event;
1: - struct mutex bulk_mutex;
1: - struct service_stats_struct stats;
1: - int msg_queue_read;
1: - int msg_queue_write;
1: - struct completion msg_queue_pop;
1: - struct completion msg_queue_push;
1: - struct vchiq_header *msg_queue[128];
1: + struct vchiq_service_base base;
1: + unsigned int handle;
1: + struct kref ref_count;
1: + struct callback_head rcu;
1: + int srvstate;
1: + vchiq_userdata_term userdata_term;
1: + unsigned int localport;
1: + unsigned int remoteport;
1: + int public_fourcc;
1: + int client_id;
1: + char auto_close;
1: + char sync;
1: + char closing;
1: + char trace;
1: + atomic_t poll_flags;
1: + short int version;
1: + short int version_min;
1: + short int peer_version;
1: + struct vchiq_state *state;
1: + struct vchiq_instance *instance;
1: + int service_use_count;
1: + struct vchiq_bulk_queue bulk_tx;
1: + struct vchiq_bulk_queue bulk_rx;
1: + struct completion remove_event;
1: + struct completion bulk_remove_event;
1: + struct mutex bulk_mutex;
1: + struct service_stats_struct stats;
1: + int msg_queue_read;
1: + int msg_queue_write;
1: + struct completion msg_queue_pop;
1: + struct completion msg_queue_push;
1: + struct vchiq_header *msg_queue[128];
1: };
1:
1: struct state_stats_struct {
1: - int slot_stalls;
1: - int data_stalls;
1: - int ctrl_tx_count;
1: - int ctrl_rx_count;
1: - int error_count;
1: + int slot_stalls;
1: + int data_stalls;
1: + int ctrl_tx_count;
1: + int ctrl_rx_count;
1: + int error_count;
1: };
1:
1: struct vchiq_service_quota {
1: - short unsigned int slot_quota;
1: - short unsigned int slot_use_count;
1: - short unsigned int message_quota;
1: - short unsigned int message_use_count;
1: - struct completion quota_event;
1: - int previous_tx_index;
1: + short unsigned int slot_quota;
1: + short unsigned int slot_use_count;
1: + short unsigned int message_quota;
1: + short unsigned int message_use_count;
1: + struct completion quota_event;
1: + int previous_tx_index;
1: };
1:
1: struct opaque_platform_state;
1: @@ -94011,944 +95212,948 @@ struct opaque_platform_state;
1: struct vchiq_shared_state;
1:
1: struct vchiq_state {
1: - int id;
1: - int initialised;
1: - enum vchiq_connstate conn_state;
1: - short int version_common;
1: - struct vchiq_shared_state *local;
1: - struct vchiq_shared_state *remote;
1: - struct vchiq_slot *slot_data;
1: - short unsigned int default_slot_quota;
1: - short unsigned int default_message_quota;
1: - struct completion connect;
1: - struct mutex mutex;
1: - struct vchiq_instance **instance;
1: - struct task_struct *slot_handler_thread;
1: - struct task_struct *recycle_thread;
1: - struct task_struct *sync_thread;
1: - wait_queue_head_t trigger_event;
1: - wait_queue_head_t recycle_event;
1: - wait_queue_head_t sync_trigger_event;
1: - wait_queue_head_t sync_release_event;
1: - char *tx_data;
1: - char *rx_data;
1: - struct vchiq_slot_info *rx_info;
1: - struct mutex slot_mutex;
1: - struct mutex recycle_mutex;
1: - struct mutex sync_mutex;
1: - struct mutex bulk_transfer_mutex;
1: - int rx_pos;
1: - int local_tx_pos;
1: - int slot_queue_available;
1: - int poll_needed;
1: - int previous_data_index;
1: - short unsigned int data_use_count;
1: - short unsigned int data_quota;
1: - atomic_t poll_services[128];
1: - int unused_service;
1: - struct completion slot_available_event;
1: - struct completion slot_remove_event;
1: - struct completion data_quota_event;
1: - struct state_stats_struct stats;
1: - struct vchiq_service *services[4096];
1: - struct vchiq_service_quota service_quotas[4096];
1: - struct vchiq_slot_info slot_info[128];
1: - struct opaque_platform_state *platform_state;
1: + int id;
1: + int initialised;
1: + enum vchiq_connstate conn_state;
1: + short int version_common;
1: + struct vchiq_shared_state *local;
1: + struct vchiq_shared_state *remote;
1: + struct vchiq_slot *slot_data;
1: + short unsigned int default_slot_quota;
1: + short unsigned int default_message_quota;
1: + struct completion connect;
1: + struct mutex mutex;
1: + struct vchiq_instance **instance;
1: + struct task_struct *slot_handler_thread;
1: + struct task_struct *recycle_thread;
1: + struct task_struct *sync_thread;
1: + wait_queue_head_t trigger_event;
1: + wait_queue_head_t recycle_event;
1: + wait_queue_head_t sync_trigger_event;
1: + wait_queue_head_t sync_release_event;
1: + char *tx_data;
1: + char *rx_data;
1: + struct vchiq_slot_info *rx_info;
1: + struct mutex slot_mutex;
1: + struct mutex recycle_mutex;
1: + struct mutex sync_mutex;
1: + struct mutex bulk_transfer_mutex;
1: + int rx_pos;
1: + int local_tx_pos;
1: + int slot_queue_available;
1: + int poll_needed;
1: + int previous_data_index;
1: + short unsigned int data_use_count;
1: + short unsigned int data_quota;
1: + atomic_t poll_services[128];
1: + int unused_service;
1: + struct completion slot_available_event;
1: + struct completion slot_remove_event;
1: + struct completion data_quota_event;
1: + struct state_stats_struct stats;
1: + struct vchiq_service *services[4096];
1: + struct vchiq_service_quota service_quotas[4096];
1: + struct vchiq_slot_info slot_info[128];
1: + struct opaque_platform_state *platform_state;
1: };
1:
1: struct vchiq_shared_state {
1: - int initialised;
1: - int slot_first;
1: - int slot_last;
1: - int slot_sync;
1: - struct remote_event trigger;
1: - int tx_pos;
1: - struct remote_event recycle;
1: - int slot_queue_recycle;
1: - struct remote_event sync_trigger;
1: - struct remote_event sync_release;
1: - int slot_queue[64];
1: - int debug[11];
1: + int initialised;
1: + int slot_first;
1: + int slot_last;
1: + int slot_sync;
1: + struct remote_event trigger;
1: + int tx_pos;
1: + struct remote_event recycle;
1: + int slot_queue_recycle;
1: + struct remote_event sync_trigger;
1: + struct remote_event sync_release;
1: + int slot_queue[64];
1: + int debug[11];
1: };
1:
1: struct vchiq_slot_zero {
1: - int magic;
1: - short int version;
1: - short int version_min;
1: - int slot_zero_size;
1: - int slot_size;
1: - int max_slots;
1: - int max_slots_per_side;
1: - int platform_data[2];
1: - struct vchiq_shared_state master;
1: - struct vchiq_shared_state slave;
1: - struct vchiq_slot_info slots[128];
1: + int magic;
1: + short int version;
1: + short int version_min;
1: + int slot_zero_size;
1: + int slot_size;
1: + int max_slots;
1: + int max_slots_per_side;
1: + int platform_data[2];
1: + struct vchiq_shared_state master;
1: + struct vchiq_shared_state slave;
1: + struct vchiq_slot_info slots[128];
1: };
1:
1: struct bulk_waiter {
1: - struct vchiq_bulk *bulk;
1: - struct completion event;
1: - int actual;
1: + struct vchiq_bulk *bulk;
1: + struct completion event;
1: + int actual;
1: };
1:
1: struct vchiq_config {
1: - unsigned int max_msg_size;
1: - unsigned int bulk_threshold;
1: - unsigned int max_outstanding_bulks;
1: - unsigned int max_services;
1: - short int version;
1: - short int version_min;
1: + unsigned int max_msg_size;
1: + unsigned int bulk_threshold;
1: + unsigned int max_outstanding_bulks;
1: + unsigned int max_services;
1: + short int version;
1: + short int version_min;
1: };
1:
1: struct vchiq_open_payload {
1: - int fourcc;
1: - int client_id;
1: - short int version;
1: - short int version_min;
1: + int fourcc;
1: + int client_id;
1: + short int version;
1: + short int version_min;
1: };
1:
1: struct vchiq_openack_payload {
1: - short int version;
1: + short int version;
1: };
1:
1: enum {
1: - QMFLAGS_IS_BLOCKING = 1,
1: - QMFLAGS_NO_MUTEX_LOCK = 2,
1: - QMFLAGS_NO_MUTEX_UNLOCK = 4,
1: + QMFLAGS_IS_BLOCKING = 1,
1: + QMFLAGS_NO_MUTEX_LOCK = 2,
1: + QMFLAGS_NO_MUTEX_UNLOCK = 4,
1: };
1:
1: struct vchiq_element {
1: - const void *data;
1: - unsigned int size;
1: + const void *data;
1: + unsigned int size;
1: };
1:
1: struct vchiq_completion_data_kernel {
1: - enum vchiq_reason reason;
1: - struct vchiq_header *header;
1: - void *service_userdata;
1: - void *bulk_userdata;
1: + enum vchiq_reason reason;
1: + struct vchiq_header *header;
1: + void *service_userdata;
1: + void *bulk_userdata;
1: };
1:
1: struct vchiq_debugfs_node {
1: - struct dentry *dentry;
1: + struct dentry *dentry;
1: };
1:
1: struct vchiq_instance {
1: - struct vchiq_state *state;
1: - struct vchiq_completion_data_kernel completions[128];
1: - int completion_insert;
1: - int completion_remove;
1: - struct completion insert_event;
1: - struct completion remove_event;
1: - struct mutex completion_mutex;
1: - int connected;
1: - int closing;
1: - int pid;
1: - int mark;
1: - int use_close_delivered;
1: - int trace;
1: - struct list_head bulk_waiter_list;
1: - struct mutex bulk_waiter_list_mutex;
1: - struct vchiq_debugfs_node debugfs_node;
1: + struct vchiq_state *state;
1: + struct vchiq_completion_data_kernel completions[128];
1: + int completion_insert;
1: + int completion_remove;
1: + struct completion insert_event;
1: + struct completion remove_event;
1: + struct mutex completion_mutex;
1: + int connected;
1: + int closing;
1: + int pid;
1: + int mark;
1: + int use_close_delivered;
1: + int trace;
1: + struct list_head bulk_waiter_list;
1: + struct mutex bulk_waiter_list_mutex;
1: + struct vchiq_debugfs_node debugfs_node;
1: };
1:
1: struct vchiq_service_params {
1: - int fourcc;
1: - enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *, unsigned int, void *);
1: - void *userdata;
1: - short int version;
1: - short int version_min;
1: + int fourcc;
1: + enum vchiq_status (*callback)(enum vchiq_reason, struct vchiq_header *,
1: + unsigned int, void *);
1: + void *userdata;
1: + short int version;
1: + short int version_min;
1: };
1:
1: struct vchiq_create_service {
1: - struct vchiq_service_params params;
1: - int is_open;
1: - int is_vchi;
1: - unsigned int handle;
1: + struct vchiq_service_params params;
1: + int is_open;
1: + int is_vchi;
1: + unsigned int handle;
1: };
1:
1: struct vchiq_queue_message {
1: - unsigned int handle;
1: - unsigned int count;
1: - const struct vchiq_element *elements;
1: + unsigned int handle;
1: + unsigned int count;
1: + const struct vchiq_element *elements;
1: };
1:
1: struct vchiq_queue_bulk_transfer {
1: - unsigned int handle;
1: - void *data;
1: - unsigned int size;
1: - void *userdata;
1: - enum vchiq_bulk_mode mode;
1: + unsigned int handle;
1: + void *data;
1: + unsigned int size;
1: + void *userdata;
1: + enum vchiq_bulk_mode mode;
1: };
1:
1: struct vchiq_completion_data {
1: - enum vchiq_reason reason;
1: - struct vchiq_header *header;
1: - void *service_userdata;
1: - void *bulk_userdata;
1: + enum vchiq_reason reason;
1: + struct vchiq_header *header;
1: + void *service_userdata;
1: + void *bulk_userdata;
1: };
1:
1: struct vchiq_await_completion {
1: - unsigned int count;
1: - struct vchiq_completion_data *buf;
1: - unsigned int msgbufsize;
1: - unsigned int msgbufcount;
1: - void **msgbufs;
1: + unsigned int count;
1: + struct vchiq_completion_data *buf;
1: + unsigned int msgbufsize;
1: + unsigned int msgbufcount;
1: + void **msgbufs;
1: };
1:
1: struct vchiq_dequeue_message {
1: - unsigned int handle;
1: - int blocking;
1: - unsigned int bufsize;
1: - void *buf;
1: + unsigned int handle;
1: + int blocking;
1: + unsigned int bufsize;
1: + void *buf;
1: };
1:
1: struct vchiq_get_config {
1: - unsigned int config_size;
1: - struct vchiq_config *pconfig;
1: + unsigned int config_size;
1: + struct vchiq_config *pconfig;
1: };
1:
1: struct vchiq_set_service_option {
1: - unsigned int handle;
1: - enum vchiq_service_option option;
1: - int value;
1: + unsigned int handle;
1: + enum vchiq_service_option option;
1: + int value;
1: };
1:
1: enum USE_TYPE_E {
1: - USE_TYPE_SERVICE = 0,
1: - USE_TYPE_VCHIQ = 1,
1: + USE_TYPE_SERVICE = 0,
1: + USE_TYPE_VCHIQ = 1,
1: };
1:
1: struct vchiq_arm_state {
1: - struct task_struct *ka_thread;
1: - struct completion ka_evt;
1: - atomic_t ka_use_count;
1: - atomic_t ka_use_ack_count;
1: - atomic_t ka_release_count;
1: - rwlock_t susp_res_lock;
1: - struct vchiq_state *state;
1: - int videocore_use_count;
1: - int peer_use_count;
1: - int first_connect;
1: + struct task_struct *ka_thread;
1: + struct completion ka_evt;
1: + atomic_t ka_use_count;
1: + atomic_t ka_use_ack_count;
1: + atomic_t ka_release_count;
1: + rwlock_t susp_res_lock;
1: + struct vchiq_state *state;
1: + int videocore_use_count;
1: + int peer_use_count;
1: + int first_connect;
1: };
1:
1: struct vchiq_drvdata {
1: - const unsigned int cache_line_size;
1: - struct rpi_firmware *fw;
1: + const unsigned int cache_line_size;
1: + struct rpi_firmware *fw;
1: };
1:
1: struct user_service {
1: - struct vchiq_service *service;
1: - void *userdata;
1: - struct vchiq_instance *instance;
1: - char is_vchi;
1: - char dequeue_pending;
1: - char close_pending;
1: - int message_available_pos;
1: - int msg_insert;
1: - int msg_remove;
1: - struct completion insert_event;
1: - struct completion remove_event;
1: - struct completion close_event;
1: - struct vchiq_header *msg_queue[128];
1: + struct vchiq_service *service;
1: + void *userdata;
1: + struct vchiq_instance *instance;
1: + char is_vchi;
1: + char dequeue_pending;
1: + char close_pending;
1: + int message_available_pos;
1: + int msg_insert;
1: + int msg_remove;
1: + struct completion insert_event;
1: + struct completion remove_event;
1: + struct completion close_event;
1: + struct vchiq_header *msg_queue[128];
1: };
1:
1: struct bulk_waiter_node {
1: - struct bulk_waiter bulk_waiter;
1: - int pid;
1: - struct list_head list;
1: + struct bulk_waiter bulk_waiter;
1: + int pid;
1: + struct list_head list;
1: };
1:
1: struct dump_context {
1: - char *buf;
1: - size_t actual;
1: - size_t space;
1: - loff_t offset;
1: + char *buf;
1: + size_t actual;
1: + size_t space;
1: + loff_t offset;
1: };
1:
1: struct vchiq_io_copy_callback_context {
1: - struct vchiq_element *element;
1: - size_t element_offset;
1: - long unsigned int elements_to_go;
1: + struct vchiq_element *element;
1: + size_t element_offset;
1: + long unsigned int elements_to_go;
1: };
1:
1: struct vchiq_completion_data32 {
1: - enum vchiq_reason reason;
1: - compat_uptr_t header;
1: - compat_uptr_t service_userdata;
1: - compat_uptr_t bulk_userdata;
1: + enum vchiq_reason reason;
1: + compat_uptr_t header;
1: + compat_uptr_t service_userdata;
1: + compat_uptr_t bulk_userdata;
1: };
1:
1: struct vchiq_service_params32 {
1: - int fourcc;
1: - compat_uptr_t callback;
1: - compat_uptr_t userdata;
1: - short int version;
1: - short int version_min;
1: + int fourcc;
1: + compat_uptr_t callback;
1: + compat_uptr_t userdata;
1: + short int version;
1: + short int version_min;
1: };
1:
1: struct vchiq_create_service32 {
1: - struct vchiq_service_params32 params;
1: - int is_open;
1: - int is_vchi;
1: - unsigned int handle;
1: + struct vchiq_service_params32 params;
1: + int is_open;
1: + int is_vchi;
1: + unsigned int handle;
1: };
1:
1: struct vchiq_element32 {
1: - compat_uptr_t data;
1: - unsigned int size;
1: + compat_uptr_t data;
1: + unsigned int size;
1: };
1:
1: struct vchiq_queue_message32 {
1: - unsigned int handle;
1: - unsigned int count;
1: - compat_uptr_t elements;
1: + unsigned int handle;
1: + unsigned int count;
1: + compat_uptr_t elements;
1: };
1:
1: struct vchiq_queue_bulk_transfer32 {
1: - unsigned int handle;
1: - compat_uptr_t data;
1: - unsigned int size;
1: - compat_uptr_t userdata;
1: - enum vchiq_bulk_mode mode;
1: + unsigned int handle;
1: + compat_uptr_t data;
1: + unsigned int size;
1: + compat_uptr_t userdata;
1: + enum vchiq_bulk_mode mode;
1: };
1:
1: struct vchiq_await_completion32 {
1: - unsigned int count;
1: - compat_uptr_t buf;
1: - unsigned int msgbufsize;
1: - unsigned int msgbufcount;
1: - compat_uptr_t msgbufs;
1: + unsigned int count;
1: + compat_uptr_t buf;
1: + unsigned int msgbufsize;
1: + unsigned int msgbufcount;
1: + compat_uptr_t msgbufs;
1: };
1:
1: struct vchiq_dequeue_message32 {
1: - unsigned int handle;
1: - int blocking;
1: - unsigned int bufsize;
1: - compat_uptr_t buf;
1: + unsigned int handle;
1: + int blocking;
1: + unsigned int bufsize;
1: + compat_uptr_t buf;
1: };
1:
1: struct vchiq_get_config32 {
1: - unsigned int config_size;
1: - compat_uptr_t pconfig;
1: + unsigned int config_size;
1: + compat_uptr_t pconfig;
1: };
1:
1: struct service_data_struct {
1: - int fourcc;
1: - int clientid;
1: - int use_count;
1: + int fourcc;
1: + int clientid;
1: + int use_count;
1: };
1:
1: struct pagelist {
1: - u32 length;
1: - u16 type;
1: - u16 offset;
1: - u32 addrs[1];
1: + u32 length;
1: + u16 type;
1: + u16 offset;
1: + u32 addrs[1];
1: };
1:
1: struct vchiq_2835_state {
1: - int inited;
1: - struct vchiq_arm_state arm_state;
1: + int inited;
1: + struct vchiq_arm_state arm_state;
1: };
1:
1: struct vchiq_pagelist_info {
1: - struct pagelist *pagelist;
1: - size_t pagelist_buffer_size;
1: - dma_addr_t dma_addr;
1: - enum dma_data_direction dma_dir;
1: - unsigned int num_pages;
1: - unsigned int pages_need_release;
1: - struct page **pages;
1: - struct scatterlist *scatterlist;
1: - unsigned int scatterlist_mapped;
1: + struct pagelist *pagelist;
1: + size_t pagelist_buffer_size;
1: + dma_addr_t dma_addr;
1: + enum dma_data_direction dma_dir;
1: + unsigned int num_pages;
1: + unsigned int pages_need_release;
1: + struct page **pages;
1: + struct scatterlist *scatterlist;
1: + unsigned int scatterlist_mapped;
1: };
1:
1: struct vchiq_debugfs_log_entry {
1: - const char *name;
1: - void *plevel;
1: + const char *name;
1: + void *plevel;
1: };
1:
1: typedef void (*VCHIQ_CONNECTED_CALLBACK_T)();
1:
1: enum ec_status {
1: - EC_RES_SUCCESS = 0,
1: - EC_RES_INVALID_COMMAND = 1,
1: - EC_RES_ERROR = 2,
1: - EC_RES_INVALID_PARAM = 3,
1: - EC_RES_ACCESS_DENIED = 4,
1: - EC_RES_INVALID_RESPONSE = 5,
1: - EC_RES_INVALID_VERSION = 6,
1: - EC_RES_INVALID_CHECKSUM = 7,
1: - EC_RES_IN_PROGRESS = 8,
1: - EC_RES_UNAVAILABLE = 9,
1: - EC_RES_TIMEOUT = 10,
1: - EC_RES_OVERFLOW = 11,
1: - EC_RES_INVALID_HEADER = 12,
1: - EC_RES_REQUEST_TRUNCATED = 13,
1: - EC_RES_RESPONSE_TOO_BIG = 14,
1: - EC_RES_BUS_ERROR = 15,
1: - EC_RES_BUSY = 16,
1: - EC_RES_INVALID_HEADER_VERSION = 17,
1: - EC_RES_INVALID_HEADER_CRC = 18,
1: - EC_RES_INVALID_DATA_CRC = 19,
1: - EC_RES_DUP_UNAVAILABLE = 20,
1: + EC_RES_SUCCESS = 0,
1: + EC_RES_INVALID_COMMAND = 1,
1: + EC_RES_ERROR = 2,
1: + EC_RES_INVALID_PARAM = 3,
1: + EC_RES_ACCESS_DENIED = 4,
1: + EC_RES_INVALID_RESPONSE = 5,
1: + EC_RES_INVALID_VERSION = 6,
1: + EC_RES_INVALID_CHECKSUM = 7,
1: + EC_RES_IN_PROGRESS = 8,
1: + EC_RES_UNAVAILABLE = 9,
1: + EC_RES_TIMEOUT = 10,
1: + EC_RES_OVERFLOW = 11,
1: + EC_RES_INVALID_HEADER = 12,
1: + EC_RES_REQUEST_TRUNCATED = 13,
1: + EC_RES_RESPONSE_TOO_BIG = 14,
1: + EC_RES_BUS_ERROR = 15,
1: + EC_RES_BUSY = 16,
1: + EC_RES_INVALID_HEADER_VERSION = 17,
1: + EC_RES_INVALID_HEADER_CRC = 18,
1: + EC_RES_INVALID_DATA_CRC = 19,
1: + EC_RES_DUP_UNAVAILABLE = 20,
1: };
1:
1: enum host_event_code {
1: - EC_HOST_EVENT_LID_CLOSED = 1,
1: - EC_HOST_EVENT_LID_OPEN = 2,
1: - EC_HOST_EVENT_POWER_BUTTON = 3,
1: - EC_HOST_EVENT_AC_CONNECTED = 4,
1: - EC_HOST_EVENT_AC_DISCONNECTED = 5,
1: - EC_HOST_EVENT_BATTERY_LOW = 6,
1: - EC_HOST_EVENT_BATTERY_CRITICAL = 7,
1: - EC_HOST_EVENT_BATTERY = 8,
1: - EC_HOST_EVENT_THERMAL_THRESHOLD = 9,
1: - EC_HOST_EVENT_DEVICE = 10,
1: - EC_HOST_EVENT_THERMAL = 11,
1: - EC_HOST_EVENT_USB_CHARGER = 12,
1: - EC_HOST_EVENT_KEY_PRESSED = 13,
1: - EC_HOST_EVENT_INTERFACE_READY = 14,
1: - EC_HOST_EVENT_KEYBOARD_RECOVERY = 15,
1: - EC_HOST_EVENT_THERMAL_SHUTDOWN = 16,
1: - EC_HOST_EVENT_BATTERY_SHUTDOWN = 17,
1: - EC_HOST_EVENT_THROTTLE_START = 18,
1: - EC_HOST_EVENT_THROTTLE_STOP = 19,
1: - EC_HOST_EVENT_HANG_DETECT = 20,
1: - EC_HOST_EVENT_HANG_REBOOT = 21,
1: - EC_HOST_EVENT_PD_MCU = 22,
1: - EC_HOST_EVENT_BATTERY_STATUS = 23,
1: - EC_HOST_EVENT_PANIC = 24,
1: - EC_HOST_EVENT_KEYBOARD_FASTBOOT = 25,
1: - EC_HOST_EVENT_RTC = 26,
1: - EC_HOST_EVENT_MKBP = 27,
1: - EC_HOST_EVENT_USB_MUX = 28,
1: - EC_HOST_EVENT_MODE_CHANGE = 29,
1: - EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT = 30,
1: - EC_HOST_EVENT_WOV = 31,
1: - EC_HOST_EVENT_INVALID = 32,
1: + EC_HOST_EVENT_LID_CLOSED = 1,
1: + EC_HOST_EVENT_LID_OPEN = 2,
1: + EC_HOST_EVENT_POWER_BUTTON = 3,
1: + EC_HOST_EVENT_AC_CONNECTED = 4,
1: + EC_HOST_EVENT_AC_DISCONNECTED = 5,
1: + EC_HOST_EVENT_BATTERY_LOW = 6,
1: + EC_HOST_EVENT_BATTERY_CRITICAL = 7,
1: + EC_HOST_EVENT_BATTERY = 8,
1: + EC_HOST_EVENT_THERMAL_THRESHOLD = 9,
1: + EC_HOST_EVENT_DEVICE = 10,
1: + EC_HOST_EVENT_THERMAL = 11,
1: + EC_HOST_EVENT_USB_CHARGER = 12,
1: + EC_HOST_EVENT_KEY_PRESSED = 13,
1: + EC_HOST_EVENT_INTERFACE_READY = 14,
1: + EC_HOST_EVENT_KEYBOARD_RECOVERY = 15,
1: + EC_HOST_EVENT_THERMAL_SHUTDOWN = 16,
1: + EC_HOST_EVENT_BATTERY_SHUTDOWN = 17,
1: + EC_HOST_EVENT_THROTTLE_START = 18,
1: + EC_HOST_EVENT_THROTTLE_STOP = 19,
1: + EC_HOST_EVENT_HANG_DETECT = 20,
1: + EC_HOST_EVENT_HANG_REBOOT = 21,
1: + EC_HOST_EVENT_PD_MCU = 22,
1: + EC_HOST_EVENT_BATTERY_STATUS = 23,
1: + EC_HOST_EVENT_PANIC = 24,
1: + EC_HOST_EVENT_KEYBOARD_FASTBOOT = 25,
1: + EC_HOST_EVENT_RTC = 26,
1: + EC_HOST_EVENT_MKBP = 27,
1: + EC_HOST_EVENT_USB_MUX = 28,
1: + EC_HOST_EVENT_MODE_CHANGE = 29,
1: + EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT = 30,
1: + EC_HOST_EVENT_WOV = 31,
1: + EC_HOST_EVENT_INVALID = 32,
1: };
1:
1: struct ec_host_request {
1: - uint8_t struct_version;
1: - uint8_t checksum;
1: - uint16_t command;
1: - uint8_t command_version;
1: - uint8_t reserved;
1: - uint16_t data_len;
1: + uint8_t struct_version;
1: + uint8_t checksum;
1: + uint16_t command;
1: + uint8_t command_version;
1: + uint8_t reserved;
1: + uint16_t data_len;
1: };
1:
1: struct ec_params_hello {
1: - uint32_t in_data;
1: + uint32_t in_data;
1: };
1:
1: struct ec_response_hello {
1: - uint32_t out_data;
1: + uint32_t out_data;
1: };
1:
1: struct ec_params_get_cmd_versions {
1: - uint8_t cmd;
1: + uint8_t cmd;
1: };
1:
1: struct ec_response_get_cmd_versions {
1: - uint32_t version_mask;
1: + uint32_t version_mask;
1: };
1:
1: enum ec_comms_status {
1: - EC_COMMS_STATUS_PROCESSING = 1,
1: + EC_COMMS_STATUS_PROCESSING = 1,
1: };
1:
1: struct ec_response_get_comms_status {
1: - uint32_t flags;
1: + uint32_t flags;
1: };
1:
1: struct ec_response_get_protocol_info {
1: - uint32_t protocol_versions;
1: - uint16_t max_request_packet_size;
1: - uint16_t max_response_packet_size;
1: - uint32_t flags;
1: + uint32_t protocol_versions;
1: + uint16_t max_request_packet_size;
1: + uint16_t max_response_packet_size;
1: + uint32_t flags;
1: };
1:
1: enum ec_led_colors {
1: - EC_LED_COLOR_RED = 0,
1: - EC_LED_COLOR_GREEN = 1,
1: - EC_LED_COLOR_BLUE = 2,
1: - EC_LED_COLOR_YELLOW = 3,
1: - EC_LED_COLOR_WHITE = 4,
1: - EC_LED_COLOR_AMBER = 5,
1: - EC_LED_COLOR_COUNT = 6,
1: + EC_LED_COLOR_RED = 0,
1: + EC_LED_COLOR_GREEN = 1,
1: + EC_LED_COLOR_BLUE = 2,
1: + EC_LED_COLOR_YELLOW = 3,
1: + EC_LED_COLOR_WHITE = 4,
1: + EC_LED_COLOR_AMBER = 5,
1: + EC_LED_COLOR_COUNT = 6,
1: };
1:
1: enum motionsense_command {
1: - MOTIONSENSE_CMD_DUMP = 0,
1: - MOTIONSENSE_CMD_INFO = 1,
1: - MOTIONSENSE_CMD_EC_RATE = 2,
1: - MOTIONSENSE_CMD_SENSOR_ODR = 3,
1: - MOTIONSENSE_CMD_SENSOR_RANGE = 4,
1: - MOTIONSENSE_CMD_KB_WAKE_ANGLE = 5,
1: - MOTIONSENSE_CMD_DATA = 6,
1: - MOTIONSENSE_CMD_FIFO_INFO = 7,
1: - MOTIONSENSE_CMD_FIFO_FLUSH = 8,
1: - MOTIONSENSE_CMD_FIFO_READ = 9,
1: - MOTIONSENSE_CMD_PERFORM_CALIB = 10,
1: - MOTIONSENSE_CMD_SENSOR_OFFSET = 11,
1: - MOTIONSENSE_CMD_LIST_ACTIVITIES = 12,
1: - MOTIONSENSE_CMD_SET_ACTIVITY = 13,
1: - MOTIONSENSE_CMD_LID_ANGLE = 14,
1: - MOTIONSENSE_CMD_FIFO_INT_ENABLE = 15,
1: - MOTIONSENSE_CMD_SPOOF = 16,
1: - MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE = 17,
1: - MOTIONSENSE_CMD_SENSOR_SCALE = 18,
1: - MOTIONSENSE_NUM_CMDS = 19,
1: + MOTIONSENSE_CMD_DUMP = 0,
1: + MOTIONSENSE_CMD_INFO = 1,
1: + MOTIONSENSE_CMD_EC_RATE = 2,
1: + MOTIONSENSE_CMD_SENSOR_ODR = 3,
1: + MOTIONSENSE_CMD_SENSOR_RANGE = 4,
1: + MOTIONSENSE_CMD_KB_WAKE_ANGLE = 5,
1: + MOTIONSENSE_CMD_DATA = 6,
1: + MOTIONSENSE_CMD_FIFO_INFO = 7,
1: + MOTIONSENSE_CMD_FIFO_FLUSH = 8,
1: + MOTIONSENSE_CMD_FIFO_READ = 9,
1: + MOTIONSENSE_CMD_PERFORM_CALIB = 10,
1: + MOTIONSENSE_CMD_SENSOR_OFFSET = 11,
1: + MOTIONSENSE_CMD_LIST_ACTIVITIES = 12,
1: + MOTIONSENSE_CMD_SET_ACTIVITY = 13,
1: + MOTIONSENSE_CMD_LID_ANGLE = 14,
1: + MOTIONSENSE_CMD_FIFO_INT_ENABLE = 15,
1: + MOTIONSENSE_CMD_SPOOF = 16,
1: + MOTIONSENSE_CMD_TABLET_MODE_LID_ANGLE = 17,
1: + MOTIONSENSE_CMD_SENSOR_SCALE = 18,
1: + MOTIONSENSE_NUM_CMDS = 19,
1: };
1:
1: struct ec_response_motion_sensor_data {
1: - uint8_t flags;
1: - uint8_t sensor_num;
1: - union {
1: - int16_t data[3];
1: - struct {
1: - uint16_t reserved;
1: - uint32_t timestamp;
1: - } __attribute__((packed));
1: - struct {
1: - uint8_t activity;
1: - uint8_t state;
1: - int16_t add_info[2];
1: - };
1: - };
1: + uint8_t flags;
1: + uint8_t sensor_num;
1: + union {
1: + int16_t data[3];
1: + struct {
1: + uint16_t reserved;
1: + uint32_t timestamp;
1: + } __attribute__((packed));
1: + struct {
1: + uint8_t activity;
1: + uint8_t state;
1: + int16_t add_info[2];
1: + };
1: + };
1: } __attribute__((packed));
1:
1: struct ec_response_motion_sense_fifo_info {
1: - uint16_t size;
1: - uint16_t count;
1: - uint32_t timestamp;
1: - uint16_t total_lost;
1: - uint16_t lost[0];
1: + uint16_t size;
1: + uint16_t count;
1: + uint32_t timestamp;
1: + uint16_t total_lost;
1: + uint16_t lost[0];
1: } __attribute__((packed));
1:
1: struct ec_response_motion_sense_fifo_data {
1: - uint32_t number_data;
1: - struct ec_response_motion_sensor_data data[0];
1: + uint32_t number_data;
1: + struct ec_response_motion_sensor_data data[0];
1: };
1:
1: struct ec_motion_sense_activity {
1: - uint8_t sensor_num;
1: - uint8_t activity;
1: - uint8_t enable;
1: - uint8_t reserved;
1: - uint16_t parameters[3];
1: + uint8_t sensor_num;
1: + uint8_t activity;
1: + uint8_t enable;
1: + uint8_t reserved;
1: + uint16_t parameters[3];
1: };
1:
1: struct ec_params_motion_sense {
1: - uint8_t cmd;
1: - union {
1: - struct {
1: - uint8_t max_sensor_count;
1: - } dump;
1: - struct {
1: - int16_t data;
1: - } kb_wake_angle;
1: - struct {
1: - uint8_t sensor_num;
1: - } info;
1: - struct {
1: - uint8_t sensor_num;
1: - } info_3;
1: - struct {
1: - uint8_t sensor_num;
1: - } data;
1: - struct {
1: - uint8_t sensor_num;
1: - } fifo_flush;
1: - struct {
1: - uint8_t sensor_num;
1: - } perform_calib;
1: - struct {
1: - uint8_t sensor_num;
1: - } list_activities;
1: - struct {
1: - uint8_t sensor_num;
1: - uint8_t roundup;
1: - uint16_t reserved;
1: - int32_t data;
1: - } ec_rate;
1: - struct {
1: - uint8_t sensor_num;
1: - uint8_t roundup;
1: - uint16_t reserved;
1: - int32_t data;
1: - } sensor_odr;
1: - struct {
1: - uint8_t sensor_num;
1: - uint8_t roundup;
1: - uint16_t reserved;
1: - int32_t data;
1: - } sensor_range;
1: - struct {
1: - uint8_t sensor_num;
1: - uint16_t flags;
1: - int16_t temp;
1: - int16_t offset[3];
1: - } __attribute__((packed)) sensor_offset;
1: - struct {
1: - uint8_t sensor_num;
1: - uint16_t flags;
1: - int16_t temp;
1: - uint16_t scale[3];
1: - } __attribute__((packed)) sensor_scale;
1: - struct {
1: - uint32_t max_data_vector;
1: - } fifo_read;
1: - struct ec_motion_sense_activity set_activity;
1: - struct {
1: - int8_t enable;
1: - } fifo_int_enable;
1: - struct {
1: - uint8_t sensor_id;
1: - uint8_t spoof_enable;
1: - uint8_t reserved;
1: - int16_t components[3];
1: - } __attribute__((packed)) spoof;
1: - struct {
1: - int16_t lid_angle;
1: - int16_t hys_degree;
1: - } tablet_mode_threshold;
1: - };
1: + uint8_t cmd;
1: + union {
1: + struct {
1: + uint8_t max_sensor_count;
1: + } dump;
1: + struct {
1: + int16_t data;
1: + } kb_wake_angle;
1: + struct {
1: + uint8_t sensor_num;
1: + } info;
1: + struct {
1: + uint8_t sensor_num;
1: + } info_3;
1: + struct {
1: + uint8_t sensor_num;
1: + } data;
1: + struct {
1: + uint8_t sensor_num;
1: + } fifo_flush;
1: + struct {
1: + uint8_t sensor_num;
1: + } perform_calib;
1: + struct {
1: + uint8_t sensor_num;
1: + } list_activities;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } ec_rate;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } sensor_odr;
1: + struct {
1: + uint8_t sensor_num;
1: + uint8_t roundup;
1: + uint16_t reserved;
1: + int32_t data;
1: + } sensor_range;
1: + struct {
1: + uint8_t sensor_num;
1: + uint16_t flags;
1: + int16_t temp;
1: + int16_t offset[3];
1: + } __attribute__((packed)) sensor_offset;
1: + struct {
1: + uint8_t sensor_num;
1: + uint16_t flags;
1: + int16_t temp;
1: + uint16_t scale[3];
1: + } __attribute__((packed)) sensor_scale;
1: + struct {
1: + uint32_t max_data_vector;
1: + } fifo_read;
1: + struct ec_motion_sense_activity set_activity;
1: + struct {
1: + int8_t enable;
1: + } fifo_int_enable;
1: + struct {
1: + uint8_t sensor_id;
1: + uint8_t spoof_enable;
1: + uint8_t reserved;
1: + int16_t components[3];
1: + } __attribute__((packed)) spoof;
1: + struct {
1: + int16_t lid_angle;
1: + int16_t hys_degree;
1: + } tablet_mode_threshold;
1: + };
1: } __attribute__((packed));
1:
1: struct ec_response_motion_sense {
1: - union {
1: - struct {
1: - uint8_t module_flags;
1: - uint8_t sensor_count;
1: - struct ec_response_motion_sensor_data sensor[0];
1: - } __attribute__((packed)) dump;
1: - struct {
1: - uint8_t type;
1: - uint8_t location;
1: - uint8_t chip;
1: - } info;
1: - struct {
1: - uint8_t type;
1: - uint8_t location;
1: - uint8_t chip;
1: - uint32_t min_frequency;
1: - uint32_t max_frequency;
1: - uint32_t fifo_max_event_count;
1: - } info_3;
1: - struct ec_response_motion_sensor_data data;
1: - struct {
1: - int32_t ret;
1: - } ec_rate;
1: - struct {
1: - int32_t ret;
1: - } sensor_odr;
1: - struct {
1: - int32_t ret;
1: - } sensor_range;
1: - struct {
1: - int32_t ret;
1: - } kb_wake_angle;
1: - struct {
1: - int32_t ret;
1: - } fifo_int_enable;
1: - struct {
1: - int32_t ret;
1: - } spoof;
1: - struct {
1: - int16_t temp;
1: - int16_t offset[3];
1: - } sensor_offset;
1: - struct {
1: - int16_t temp;
1: - int16_t offset[3];
1: - } perform_calib;
1: - struct {
1: - int16_t temp;
1: - uint16_t scale[3];
1: - } sensor_scale;
1: - struct ec_response_motion_sense_fifo_info fifo_info;
1: - struct ec_response_motion_sense_fifo_info fifo_flush;
1: - struct ec_response_motion_sense_fifo_data fifo_read;
1: - struct {
1: - uint16_t reserved;
1: - uint32_t enabled;
1: - uint32_t disabled;
1: - } __attribute__((packed)) list_activities;
1: - struct {
1: - uint16_t value;
1: - } lid_angle;
1: - struct {
1: - uint16_t lid_angle;
1: - uint16_t hys_degree;
1: - } tablet_mode_threshold;
1: - };
1: + union {
1: + struct {
1: + uint8_t module_flags;
1: + uint8_t sensor_count;
1: + struct ec_response_motion_sensor_data sensor[0];
1: + } __attribute__((packed)) dump;
1: + struct {
1: + uint8_t type;
1: + uint8_t location;
1: + uint8_t chip;
1: + } info;
1: + struct {
1: + uint8_t type;
1: + uint8_t location;
1: + uint8_t chip;
1: + uint32_t min_frequency;
1: + uint32_t max_frequency;
1: + uint32_t fifo_max_event_count;
1: + } info_3;
1: + struct ec_response_motion_sensor_data data;
1: + struct {
1: + int32_t ret;
1: + } ec_rate;
1: + struct {
1: + int32_t ret;
1: + } sensor_odr;
1: + struct {
1: + int32_t ret;
1: + } sensor_range;
1: + struct {
1: + int32_t ret;
1: + } kb_wake_angle;
1: + struct {
1: + int32_t ret;
1: + } fifo_int_enable;
1: + struct {
1: + int32_t ret;
1: + } spoof;
1: + struct {
1: + int16_t temp;
1: + int16_t offset[3];
1: + } sensor_offset;
1: + struct {
1: + int16_t temp;
1: + int16_t offset[3];
1: + } perform_calib;
1: + struct {
1: + int16_t temp;
1: + uint16_t scale[3];
1: + } sensor_scale;
1: + struct ec_response_motion_sense_fifo_info fifo_info;
1: + struct ec_response_motion_sense_fifo_info fifo_flush;
1: + struct ec_response_motion_sense_fifo_data fifo_read;
1: + struct {
1: + uint16_t reserved;
1: + uint32_t enabled;
1: + uint32_t disabled;
1: + } __attribute__((packed)) list_activities;
1: + struct {
1: + uint16_t value;
1: + } lid_angle;
1: + struct {
1: + uint16_t lid_angle;
1: + uint16_t hys_degree;
1: + } tablet_mode_threshold;
1: + };
1: };
1:
1: enum ec_temp_thresholds {
1: - EC_TEMP_THRESH_WARN = 0,
1: - EC_TEMP_THRESH_HIGH = 1,
1: - EC_TEMP_THRESH_HALT = 2,
1: - EC_TEMP_THRESH_COUNT = 3,
1: + EC_TEMP_THRESH_WARN = 0,
1: + EC_TEMP_THRESH_HIGH = 1,
1: + EC_TEMP_THRESH_HALT = 2,
1: + EC_TEMP_THRESH_COUNT = 3,
1: };
1:
1: enum ec_mkbp_event {
1: - EC_MKBP_EVENT_KEY_MATRIX = 0,
1: - EC_MKBP_EVENT_HOST_EVENT = 1,
1: - EC_MKBP_EVENT_SENSOR_FIFO = 2,
1: - EC_MKBP_EVENT_BUTTON = 3,
1: - EC_MKBP_EVENT_SWITCH = 4,
1: - EC_MKBP_EVENT_FINGERPRINT = 5,
1: - EC_MKBP_EVENT_SYSRQ = 6,
1: - EC_MKBP_EVENT_HOST_EVENT64 = 7,
1: - EC_MKBP_EVENT_CEC_EVENT = 8,
1: - EC_MKBP_EVENT_CEC_MESSAGE = 9,
1: - EC_MKBP_EVENT_COUNT = 10,
1: + EC_MKBP_EVENT_KEY_MATRIX = 0,
1: + EC_MKBP_EVENT_HOST_EVENT = 1,
1: + EC_MKBP_EVENT_SENSOR_FIFO = 2,
1: + EC_MKBP_EVENT_BUTTON = 3,
1: + EC_MKBP_EVENT_SWITCH = 4,
1: + EC_MKBP_EVENT_FINGERPRINT = 5,
1: + EC_MKBP_EVENT_SYSRQ = 6,
1: + EC_MKBP_EVENT_HOST_EVENT64 = 7,
1: + EC_MKBP_EVENT_CEC_EVENT = 8,
1: + EC_MKBP_EVENT_CEC_MESSAGE = 9,
1: + EC_MKBP_EVENT_COUNT = 10,
1: };
1:
1: union ec_response_get_next_data_v1 {
1: - uint8_t key_matrix[16];
1: - uint32_t host_event;
1: - uint64_t host_event64;
1: - struct {
1: - uint8_t reserved[3];
1: - struct ec_response_motion_sense_fifo_info info;
1: - } __attribute__((packed)) sensor_fifo;
1: - uint32_t buttons;
1: - uint32_t switches;
1: - uint32_t fp_events;
1: - uint32_t sysrq;
1: - uint32_t cec_events;
1: - uint8_t cec_message[16];
1: + uint8_t key_matrix[16];
1: + uint32_t host_event;
1: + uint64_t host_event64;
1: + struct {
1: + uint8_t reserved[3];
1: + struct ec_response_motion_sense_fifo_info info;
1: + } __attribute__((packed)) sensor_fifo;
1: + uint32_t buttons;
1: + uint32_t switches;
1: + uint32_t fp_events;
1: + uint32_t sysrq;
1: + uint32_t cec_events;
1: + uint8_t cec_message[16];
1: };
1:
1: struct ec_response_get_next_event_v1 {
1: - uint8_t event_type;
1: - union ec_response_get_next_data_v1 data;
1: + uint8_t event_type;
1: + union ec_response_get_next_data_v1 data;
1: } __attribute__((packed));
1:
1: struct ec_response_host_event_mask {
1: - uint32_t mask;
1: + uint32_t mask;
1: };
1:
1: enum {
1: - EC_MSG_TX_HEADER_BYTES = 3,
1: - EC_MSG_TX_TRAILER_BYTES = 1,
1: - EC_MSG_TX_PROTO_BYTES = 4,
1: - EC_MSG_RX_PROTO_BYTES = 3,
1: - EC_PROTO2_MSG_BYTES = 256,
1: - EC_MAX_MSG_BYTES = 65536,
1: + EC_MSG_TX_HEADER_BYTES = 3,
1: + EC_MSG_TX_TRAILER_BYTES = 1,
1: + EC_MSG_TX_PROTO_BYTES = 4,
1: + EC_MSG_RX_PROTO_BYTES = 3,
1: + EC_PROTO2_MSG_BYTES = 256,
1: + EC_MAX_MSG_BYTES = 65536,
1: };
1:
1: struct cros_ec_command {
1: - uint32_t version;
1: - uint32_t command;
1: - uint32_t outsize;
1: - uint32_t insize;
1: - uint32_t result;
1: - uint8_t data[0];
1: + uint32_t version;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + uint32_t result;
1: + uint8_t data[0];
1: };
1:
1: struct platform_device___2;
1:
1: struct cros_ec_device {
1: - const char *phys_name;
1: - struct device *dev;
1: - bool was_wake_device;
1: - struct class *cros_class;
1: - int (*cmd_readmem)(struct cros_ec_device *, unsigned int, unsigned int, void *);
1: - u16 max_request;
1: - u16 max_response;
1: - u16 max_passthru;
1: - u16 proto_version;
1: - void *priv;
1: - int irq;
1: - u8 *din;
1: - u8 *dout;
1: - int din_size;
1: - int dout_size;
1: - bool wake_enabled;
1: - bool suspended;
1: - int (*cmd_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: - int (*pkt_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: - struct mutex lock;
1: - u8 mkbp_event_supported;
1: - bool host_sleep_v1;
1: - struct blocking_notifier_head event_notifier;
1: - struct ec_response_get_next_event_v1 event_data;
1: - int event_size;
1: - u32 host_event_wake_mask;
1: - u32 last_resume_result;
1: - ktime_t last_event_time;
1: - struct notifier_block notifier_ready;
1: - struct platform_device___2 *ec;
1: - struct platform_device___2 *pd;
1: + const char *phys_name;
1: + struct device *dev;
1: + bool was_wake_device;
1: + struct class *cros_class;
1: + int (*cmd_readmem)(struct cros_ec_device *, unsigned int, unsigned int,
1: + void *);
1: + u16 max_request;
1: + u16 max_response;
1: + u16 max_passthru;
1: + u16 proto_version;
1: + void *priv;
1: + int irq;
1: + u8 *din;
1: + u8 *dout;
1: + int din_size;
1: + int dout_size;
1: + bool wake_enabled;
1: + bool suspended;
1: + int (*cmd_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: + int (*pkt_xfer)(struct cros_ec_device *, struct cros_ec_command *);
1: + struct mutex lock;
1: + u8 mkbp_event_supported;
1: + bool host_sleep_v1;
1: + struct blocking_notifier_head event_notifier;
1: + struct ec_response_get_next_event_v1 event_data;
1: + int event_size;
1: + u32 host_event_wake_mask;
1: + u32 last_resume_result;
1: + ktime_t last_event_time;
1: + struct notifier_block notifier_ready;
1: + struct platform_device___2 *ec;
1: + struct platform_device___2 *pd;
1: };
1:
1: struct cros_ec_debugfs;
1:
1: struct cros_ec_dev {
1: - struct device class_dev;
1: - struct cros_ec_device *ec_dev;
1: - struct device *dev;
1: - struct cros_ec_debugfs *debug_info;
1: - bool has_kb_wake_angle;
1: - u16 cmd_offset;
1: - u32 features[2];
1: + struct device class_dev;
1: + struct cros_ec_device *ec_dev;
1: + struct device *dev;
1: + struct cros_ec_debugfs *debug_info;
1: + bool has_kb_wake_angle;
1: + u16 cmd_offset;
1: + u32 features[2];
1: };
1:
1: struct trace_event_raw_cros_ec_request_start {
1: - struct trace_entry ent;
1: - uint32_t version;
1: - uint32_t offset;
1: - uint32_t command;
1: - uint32_t outsize;
1: - uint32_t insize;
1: - char __data[0];
1: + struct trace_entry ent;
1: + uint32_t version;
1: + uint32_t offset;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_cros_ec_request_done {
1: - struct trace_entry ent;
1: - uint32_t version;
1: - uint32_t offset;
1: - uint32_t command;
1: - uint32_t outsize;
1: - uint32_t insize;
1: - uint32_t result;
1: - int retval;
1: - char __data[0];
1: + struct trace_entry ent;
1: + uint32_t version;
1: + uint32_t offset;
1: + uint32_t command;
1: + uint32_t outsize;
1: + uint32_t insize;
1: + uint32_t result;
1: + int retval;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_cros_ec_request_start {};
1:
1: struct trace_event_data_offsets_cros_ec_request_done {};
1:
1: -typedef void (*btf_trace_cros_ec_request_start)(void *, struct cros_ec_command *);
1: +typedef void (*btf_trace_cros_ec_request_start)(void *,
1: + struct cros_ec_command *);
1:
1: -typedef void (*btf_trace_cros_ec_request_done)(void *, struct cros_ec_command *, int);
1: +typedef void (*btf_trace_cros_ec_request_done)(void *, struct cros_ec_command *,
1: + int);
1:
1: struct platform_mhu_link {
1: - int irq;
1: - void *tx_reg;
1: - void *rx_reg;
1: + int irq;
1: + void *tx_reg;
1: + void *rx_reg;
1: };
1:
1: struct platform_mhu {
1: - void *base;
1: - struct platform_mhu_link mlink[3];
1: - struct mbox_chan chan[3];
1: - struct mbox_controller mbox;
1: + void *base;
1: + struct platform_mhu_link mlink[3];
1: + struct mbox_chan chan[3];
1: + struct mbox_controller mbox;
1: };
1:
1: struct acpi_table_pcct {
1: - struct acpi_table_header header;
1: - u32 flags;
1: - u64 reserved;
1: + struct acpi_table_header header;
1: + u32 flags;
1: + u64 reserved;
1: };
1:
1: enum acpi_pcct_type {
1: - ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
1: - ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
1: - ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2,
1: - ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE = 3,
1: - ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE = 4,
1: - ACPI_PCCT_TYPE_RESERVED = 5,
1: + ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0,
1: + ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1,
1: + ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2,
1: + ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE = 3,
1: + ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE = 4,
1: + ACPI_PCCT_TYPE_RESERVED = 5,
1: };
1:
1: struct acpi_pcct_subspace {
1: - struct acpi_subtable_header header;
1: - u8 reserved[6];
1: - u64 base_address;
1: - u64 length;
1: - struct acpi_generic_address doorbell_register;
1: - u64 preserve_mask;
1: - u64 write_mask;
1: - u32 latency;
1: - u32 max_access_rate;
1: - u16 min_turnaround_time;
1: + struct acpi_subtable_header header;
1: + u8 reserved[6];
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: } __attribute__((packed));
1:
1: struct acpi_pcct_hw_reduced_type2 {
1: - struct acpi_subtable_header header;
1: - u32 platform_interrupt;
1: - u8 flags;
1: - u8 reserved;
1: - u64 base_address;
1: - u64 length;
1: - struct acpi_generic_address doorbell_register;
1: - u64 preserve_mask;
1: - u64 write_mask;
1: - u32 latency;
1: - u32 max_access_rate;
1: - u16 min_turnaround_time;
1: - struct acpi_generic_address platform_ack_register;
1: - u64 ack_preserve_mask;
1: - u64 ack_write_mask;
1: + struct acpi_subtable_header header;
1: + u32 platform_interrupt;
1: + u8 flags;
1: + u8 reserved;
1: + u64 base_address;
1: + u64 length;
1: + struct acpi_generic_address doorbell_register;
1: + u64 preserve_mask;
1: + u64 write_mask;
1: + u32 latency;
1: + u32 max_access_rate;
1: + u16 min_turnaround_time;
1: + struct acpi_generic_address platform_ack_register;
1: + u64 ack_preserve_mask;
1: + u64 ack_write_mask;
1: } __attribute__((packed));
1:
1: struct bcm2835_mbox {
1: - void *regs;
1: - spinlock_t lock;
1: - struct mbox_controller controller;
1: + void *regs;
1: + spinlock_t lock;
1: + struct mbox_controller controller;
1: };
1:
1: struct slimpro_mbox_chan {
1: - struct device *dev;
1: - struct mbox_chan *chan;
1: - void *reg;
1: - int irq;
1: - u32 rx_msg[3];
1: + struct device *dev;
1: + struct mbox_chan *chan;
1: + void *reg;
1: + int irq;
1: + u32 rx_msg[3];
1: };
1:
1: struct slimpro_mbox {
1: - struct mbox_controller mb_ctrl;
1: - struct slimpro_mbox_chan mc[8];
1: - struct mbox_chan chans[8];
1: + struct mbox_controller mb_ctrl;
1: + struct slimpro_mbox_chan mc[8];
1: + struct mbox_chan chans[8];
1: };
1:
1: struct hi3660_chan_info {
1: - unsigned int dst_irq;
1: - unsigned int ack_irq;
1: + unsigned int dst_irq;
1: + unsigned int ack_irq;
1: };
1:
1: struct hi3660_mbox {
1: - struct device *dev;
1: - void *base;
1: - struct mbox_chan chan[32];
1: - struct hi3660_chan_info mchan[32];
1: - struct mbox_controller controller;
1: + struct device *dev;
1: + void *base;
1: + struct mbox_chan chan[32];
1: + struct hi3660_chan_info mchan[32];
1: + struct mbox_controller controller;
1: };
1:
1: struct hi6220_mbox;
1:
1: struct hi6220_mbox_chan {
1: - unsigned int dir;
1: - unsigned int dst_irq;
1: - unsigned int ack_irq;
1: - unsigned int slot;
1: - struct hi6220_mbox *parent;
1: + unsigned int dir;
1: + unsigned int dst_irq;
1: + unsigned int ack_irq;
1: + unsigned int slot;
1: + struct hi6220_mbox *parent;
1: };
1:
1: struct hi6220_mbox {
1: - struct device *dev;
1: - int irq;
1: - bool tx_irq_mode;
1: - void *ipc;
1: - void *base;
1: - unsigned int chan_num;
1: - struct hi6220_mbox_chan *mchan;
1: - void *irq_map_chan[32];
1: - struct mbox_chan *chan;
1: - struct mbox_controller controller;
1: + struct device *dev;
1: + int irq;
1: + bool tx_irq_mode;
1: + void *ipc;
1: + void *base;
1: + unsigned int chan_num;
1: + struct hi6220_mbox_chan *mchan;
1: + void *irq_map_chan[32];
1: + struct mbox_chan *chan;
1: + struct mbox_controller controller;
1: };
1:
1: struct tegra_hsp;
1:
1: struct tegra_hsp_channel {
1: - struct tegra_hsp *hsp;
1: - struct mbox_chan *chan;
1: - void *regs;
1: + struct tegra_hsp *hsp;
1: + struct mbox_chan *chan;
1: + void *regs;
1: };
1:
1: struct tegra_hsp_soc;
1: @@ -94956,341 +96161,341 @@ struct tegra_hsp_soc;
1: struct tegra_hsp_mailbox;
1:
1: struct tegra_hsp {
1: - struct device *dev;
1: - const struct tegra_hsp_soc *soc;
1: - struct mbox_controller mbox_db;
1: - struct mbox_controller mbox_sm;
1: - void *regs;
1: - unsigned int doorbell_irq;
1: - unsigned int *shared_irqs;
1: - unsigned int shared_irq;
1: - unsigned int num_sm;
1: - unsigned int num_as;
1: - unsigned int num_ss;
1: - unsigned int num_db;
1: - unsigned int num_si;
1: - spinlock_t lock;
1: - struct list_head doorbells;
1: - struct tegra_hsp_mailbox *mailboxes;
1: - long unsigned int mask;
1: + struct device *dev;
1: + const struct tegra_hsp_soc *soc;
1: + struct mbox_controller mbox_db;
1: + struct mbox_controller mbox_sm;
1: + void *regs;
1: + unsigned int doorbell_irq;
1: + unsigned int *shared_irqs;
1: + unsigned int shared_irq;
1: + unsigned int num_sm;
1: + unsigned int num_as;
1: + unsigned int num_ss;
1: + unsigned int num_db;
1: + unsigned int num_si;
1: + spinlock_t lock;
1: + struct list_head doorbells;
1: + struct tegra_hsp_mailbox *mailboxes;
1: + long unsigned int mask;
1: };
1:
1: struct tegra_hsp_doorbell {
1: - struct tegra_hsp_channel channel;
1: - struct list_head list;
1: - const char *name;
1: - unsigned int master;
1: - unsigned int index;
1: + struct tegra_hsp_channel channel;
1: + struct list_head list;
1: + const char *name;
1: + unsigned int master;
1: + unsigned int index;
1: };
1:
1: struct tegra_hsp_mailbox {
1: - struct tegra_hsp_channel channel;
1: - unsigned int index;
1: - bool producer;
1: + struct tegra_hsp_channel channel;
1: + unsigned int index;
1: + bool producer;
1: };
1:
1: struct tegra_hsp_db_map {
1: - const char *name;
1: - unsigned int master;
1: - unsigned int index;
1: + const char *name;
1: + unsigned int master;
1: + unsigned int index;
1: };
1:
1: struct tegra_hsp_soc {
1: - const struct tegra_hsp_db_map *map;
1: - bool has_per_mb_ie;
1: + const struct tegra_hsp_db_map *map;
1: + bool has_per_mb_ie;
1: };
1:
1: struct sun6i_msgbox {
1: - struct mbox_controller controller;
1: - struct clk *clk;
1: - spinlock_t lock;
1: - void *regs;
1: + struct mbox_controller controller;
1: + struct clk *clk;
1: + spinlock_t lock;
1: + void *regs;
1: };
1:
1: struct hwspinlock___2;
1:
1: struct hwspinlock_ops {
1: - int (*trylock)(struct hwspinlock___2 *);
1: - void (*unlock)(struct hwspinlock___2 *);
1: - void (*relax)(struct hwspinlock___2 *);
1: + int (*trylock)(struct hwspinlock___2 *);
1: + void (*unlock)(struct hwspinlock___2 *);
1: + void (*relax)(struct hwspinlock___2 *);
1: };
1:
1: struct hwspinlock_device;
1:
1: struct hwspinlock___2 {
1: - struct hwspinlock_device *bank;
1: - spinlock_t lock;
1: - void *priv;
1: + struct hwspinlock_device *bank;
1: + spinlock_t lock;
1: + void *priv;
1: };
1:
1: struct hwspinlock_device {
1: - struct device *dev;
1: - const struct hwspinlock_ops *ops;
1: - int base_id;
1: - int num_locks;
1: - struct hwspinlock___2 lock[0];
1: + struct device *dev;
1: + const struct hwspinlock_ops *ops;
1: + int base_id;
1: + int num_locks;
1: + struct hwspinlock___2 lock[0];
1: };
1:
1: struct regmap_field___2;
1:
1: struct devfreq_freqs {
1: - long unsigned int old;
1: - long unsigned int new;
1: + long unsigned int old;
1: + long unsigned int new;
1: };
1:
1: struct devfreq_passive_data {
1: - struct devfreq *parent;
1: - int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: - struct devfreq *this;
1: - struct notifier_block nb;
1: + struct devfreq *parent;
1: + int (*get_target_freq)(struct devfreq *, long unsigned int *);
1: + struct devfreq *this;
1: + struct notifier_block nb;
1: };
1:
1: struct trace_event_raw_devfreq_monitor {
1: - struct trace_entry ent;
1: - long unsigned int freq;
1: - long unsigned int busy_time;
1: - long unsigned int total_time;
1: - unsigned int polling_ms;
1: - u32 __data_loc_dev_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int freq;
1: + long unsigned int busy_time;
1: + long unsigned int total_time;
1: + unsigned int polling_ms;
1: + u32 __data_loc_dev_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_devfreq_monitor {
1: - u32 dev_name;
1: + u32 dev_name;
1: };
1:
1: typedef void (*btf_trace_devfreq_monitor)(void *, struct devfreq *);
1:
1: struct devfreq_notifier_devres {
1: - struct devfreq *devfreq;
1: - struct notifier_block *nb;
1: - unsigned int list;
1: + struct devfreq *devfreq;
1: + struct notifier_block *nb;
1: + unsigned int list;
1: };
1:
1: struct devfreq_event_desc;
1:
1: struct devfreq_event_dev {
1: - struct list_head node;
1: - struct device dev;
1: - struct mutex lock;
1: - u32 enable_count;
1: - const struct devfreq_event_desc *desc;
1: + struct list_head node;
1: + struct device dev;
1: + struct mutex lock;
1: + u32 enable_count;
1: + const struct devfreq_event_desc *desc;
1: };
1:
1: struct devfreq_event_ops;
1:
1: struct devfreq_event_desc {
1: - const char *name;
1: - u32 event_type;
1: - void *driver_data;
1: - const struct devfreq_event_ops *ops;
1: + const char *name;
1: + u32 event_type;
1: + void *driver_data;
1: + const struct devfreq_event_ops *ops;
1: };
1:
1: struct devfreq_event_data {
1: - long unsigned int load_count;
1: - long unsigned int total_count;
1: + long unsigned int load_count;
1: + long unsigned int total_count;
1: };
1:
1: struct devfreq_event_ops {
1: - int (*enable)(struct devfreq_event_dev *);
1: - int (*disable)(struct devfreq_event_dev *);
1: - int (*reset)(struct devfreq_event_dev *);
1: - int (*set_event)(struct devfreq_event_dev *);
1: - int (*get_event)(struct devfreq_event_dev *, struct devfreq_event_data *);
1: + int (*enable)(struct devfreq_event_dev *);
1: + int (*disable)(struct devfreq_event_dev *);
1: + int (*reset)(struct devfreq_event_dev *);
1: + int (*set_event)(struct devfreq_event_dev *);
1: + int (*get_event)(struct devfreq_event_dev *, struct devfreq_event_data *);
1: };
1:
1: struct devfreq_simple_ondemand_data {
1: - unsigned int upthreshold;
1: - unsigned int downdifferential;
1: + unsigned int upthreshold;
1: + unsigned int downdifferential;
1: };
1:
1: struct userspace_data {
1: - long unsigned int user_frequency;
1: - bool valid;
1: + long unsigned int user_frequency;
1: + bool valid;
1: };
1:
1: union extcon_property_value {
1: - int intval;
1: + int intval;
1: };
1:
1: struct extcon_cable;
1:
1: struct extcon_dev___2 {
1: - const char *name;
1: - const unsigned int *supported_cable;
1: - const u32 *mutually_exclusive;
1: - struct device dev;
1: - struct raw_notifier_head nh_all;
1: - struct raw_notifier_head *nh;
1: - struct list_head entry;
1: - int max_supported;
1: - spinlock_t lock;
1: - u32 state;
1: - struct device_type extcon_dev_type;
1: - struct extcon_cable *cables;
1: - struct attribute_group attr_g_muex;
1: - struct attribute **attrs_muex;
1: - struct device_attribute *d_attrs_muex;
1: + const char *name;
1: + const unsigned int *supported_cable;
1: + const u32 *mutually_exclusive;
1: + struct device dev;
1: + struct raw_notifier_head nh_all;
1: + struct raw_notifier_head *nh;
1: + struct list_head entry;
1: + int max_supported;
1: + spinlock_t lock;
1: + u32 state;
1: + struct device_type extcon_dev_type;
1: + struct extcon_cable *cables;
1: + struct attribute_group attr_g_muex;
1: + struct attribute **attrs_muex;
1: + struct device_attribute *d_attrs_muex;
1: };
1:
1: struct extcon_cable {
1: - struct extcon_dev___2 *edev;
1: - int cable_index;
1: - struct attribute_group attr_g;
1: - struct device_attribute attr_name;
1: - struct device_attribute attr_state;
1: - struct attribute *attrs[3];
1: - union extcon_property_value usb_propval[3];
1: - union extcon_property_value chg_propval[1];
1: - union extcon_property_value jack_propval[1];
1: - union extcon_property_value disp_propval[2];
1: - long unsigned int usb_bits[1];
1: - long unsigned int chg_bits[1];
1: - long unsigned int jack_bits[1];
1: - long unsigned int disp_bits[1];
1: + struct extcon_dev___2 *edev;
1: + int cable_index;
1: + struct attribute_group attr_g;
1: + struct device_attribute attr_name;
1: + struct device_attribute attr_state;
1: + struct attribute *attrs[3];
1: + union extcon_property_value usb_propval[3];
1: + union extcon_property_value chg_propval[1];
1: + union extcon_property_value jack_propval[1];
1: + union extcon_property_value disp_propval[2];
1: + long unsigned int usb_bits[1];
1: + long unsigned int chg_bits[1];
1: + long unsigned int jack_bits[1];
1: + long unsigned int disp_bits[1];
1: };
1:
1: struct __extcon_info {
1: - unsigned int type;
1: - unsigned int id;
1: - const char *name;
1: + unsigned int type;
1: + unsigned int id;
1: + const char *name;
1: };
1:
1: struct extcon_dev_notifier_devres {
1: - struct extcon_dev___2 *edev;
1: - unsigned int id;
1: - struct notifier_block *nb;
1: + struct extcon_dev___2 *edev;
1: + unsigned int id;
1: + struct notifier_block *nb;
1: };
1:
1: struct mtk_smi_larb_iommu {
1: - struct device *dev;
1: - unsigned int mmu;
1: + struct device *dev;
1: + unsigned int mmu;
1: };
1:
1: enum mtk_smi_gen {
1: - MTK_SMI_GEN1 = 0,
1: - MTK_SMI_GEN2 = 1,
1: + MTK_SMI_GEN1 = 0,
1: + MTK_SMI_GEN2 = 1,
1: };
1:
1: struct mtk_smi_common_plat {
1: - enum mtk_smi_gen gen;
1: - bool has_gals;
1: - u32 bus_sel;
1: + enum mtk_smi_gen gen;
1: + bool has_gals;
1: + u32 bus_sel;
1: };
1:
1: struct mtk_smi_larb_gen {
1: - int port_in_larb[17];
1: - void (*config_port)(struct device *);
1: - unsigned int larb_direct_to_common_mask;
1: - bool has_gals;
1: + int port_in_larb[17];
1: + void (*config_port)(struct device *);
1: + unsigned int larb_direct_to_common_mask;
1: + bool has_gals;
1: };
1:
1: struct mtk_smi {
1: - struct device *dev;
1: - struct clk *clk_apb;
1: - struct clk *clk_smi;
1: - struct clk *clk_gals0;
1: - struct clk *clk_gals1;
1: - struct clk *clk_async;
1: - union {
1: - void *smi_ao_base;
1: - void *base;
1: - };
1: - const struct mtk_smi_common_plat *plat;
1: + struct device *dev;
1: + struct clk *clk_apb;
1: + struct clk *clk_smi;
1: + struct clk *clk_gals0;
1: + struct clk *clk_gals1;
1: + struct clk *clk_async;
1: + union {
1: + void *smi_ao_base;
1: + void *base;
1: + };
1: + const struct mtk_smi_common_plat *plat;
1: };
1:
1: struct mtk_smi_larb {
1: - struct mtk_smi smi;
1: - void *base;
1: - struct device *smi_common_dev;
1: - const struct mtk_smi_larb_gen *larb_gen;
1: - int larbid;
1: - u32 *mmu;
1: + struct mtk_smi smi;
1: + void *base;
1: + struct device *smi_common_dev;
1: + const struct mtk_smi_larb_gen *larb_gen;
1: + int larbid;
1: + u32 *mmu;
1: };
1:
1: struct tegra186_mc_client {
1: - const char *name;
1: - unsigned int sid;
1: - struct {
1: - unsigned int override;
1: - unsigned int security;
1: - } regs;
1: + const char *name;
1: + unsigned int sid;
1: + struct {
1: + unsigned int override;
1: + unsigned int security;
1: + } regs;
1: };
1:
1: struct tegra186_mc_soc {
1: - const struct tegra186_mc_client *clients;
1: - unsigned int num_clients;
1: + const struct tegra186_mc_client *clients;
1: + unsigned int num_clients;
1: };
1:
1: struct tegra186_mc {
1: - struct device *dev;
1: - void *regs;
1: - const struct tegra186_mc_soc *soc;
1: + struct device *dev;
1: + void *regs;
1: + const struct tegra186_mc_soc *soc;
1: };
1:
1: struct emc_dvfs_latency {
1: - uint32_t freq;
1: - uint32_t latency;
1: + uint32_t freq;
1: + uint32_t latency;
1: };
1:
1: struct mrq_emc_dvfs_latency_response {
1: - uint32_t num_pairs;
1: - struct emc_dvfs_latency pairs[14];
1: + uint32_t num_pairs;
1: + struct emc_dvfs_latency pairs[14];
1: };
1:
1: struct tegra186_emc_dvfs {
1: - long unsigned int latency;
1: - long unsigned int rate;
1: + long unsigned int latency;
1: + long unsigned int rate;
1: };
1:
1: struct tegra186_emc {
1: - struct tegra_bpmp *bpmp;
1: - struct device *dev;
1: - struct clk *clk;
1: - struct tegra186_emc_dvfs *dvfs;
1: - unsigned int num_dvfs;
1: - struct {
1: - struct dentry *root;
1: - long unsigned int min_rate;
1: - long unsigned int max_rate;
1: - } debugfs;
1: + struct tegra_bpmp *bpmp;
1: + struct device *dev;
1: + struct clk *clk;
1: + struct tegra186_emc_dvfs *dvfs;
1: + unsigned int num_dvfs;
1: + struct {
1: + struct dentry *root;
1: + long unsigned int min_rate;
1: + long unsigned int max_rate;
1: + } debugfs;
1: };
1:
1: enum vme_resource_type {
1: - VME_MASTER = 0,
1: - VME_SLAVE = 1,
1: - VME_DMA = 2,
1: - VME_LM = 3,
1: + VME_MASTER = 0,
1: + VME_SLAVE = 1,
1: + VME_DMA = 2,
1: + VME_LM = 3,
1: };
1:
1: struct vme_dma_attr {
1: - u32 type;
1: - void *private;
1: + u32 type;
1: + void *private;
1: };
1:
1: struct vme_resource {
1: - enum vme_resource_type type;
1: - struct list_head *entry;
1: + enum vme_resource_type type;
1: + struct list_head *entry;
1: };
1:
1: struct vme_bridge;
1:
1: struct vme_dev {
1: - int num;
1: - struct vme_bridge *bridge;
1: - struct device dev;
1: - struct list_head drv_list;
1: - struct list_head bridge_list;
1: + int num;
1: + struct vme_bridge *bridge;
1: + struct device dev;
1: + struct list_head drv_list;
1: + struct list_head bridge_list;
1: };
1:
1: struct vme_callback {
1: - void (*func)(int, int, void *);
1: - void *priv_data;
1: + void (*func)(int, int, void *);
1: + void *priv_data;
1: };
1:
1: struct vme_irq {
1: - int count;
1: - struct vme_callback callback[256];
1: + int count;
1: + struct vme_callback callback[256];
1: };
1:
1: struct vme_slave_resource;
1: @@ -95302,692 +96507,708 @@ struct vme_dma_list;
1: struct vme_lm_resource;
1:
1: struct vme_bridge {
1: - char name[16];
1: - int num;
1: - struct list_head master_resources;
1: - struct list_head slave_resources;
1: - struct list_head dma_resources;
1: - struct list_head lm_resources;
1: - struct list_head vme_error_handlers;
1: - struct list_head devices;
1: - struct device *parent;
1: - void *driver_priv;
1: - struct list_head bus_list;
1: - struct vme_irq irq[7];
1: - struct mutex irq_mtx;
1: - int (*slave_get)(struct vme_slave_resource *, int *, long long unsigned int *, long long unsigned int *, dma_addr_t *, u32 *, u32 *);
1: - int (*slave_set)(struct vme_slave_resource *, int, long long unsigned int, long long unsigned int, dma_addr_t, u32, u32);
1: - int (*master_get)(struct vme_master_resource *, int *, long long unsigned int *, long long unsigned int *, u32 *, u32 *, u32 *);
1: - int (*master_set)(struct vme_master_resource *, int, long long unsigned int, long long unsigned int, u32, u32, u32);
1: - ssize_t (*master_read)(struct vme_master_resource *, void *, size_t, loff_t);
1: - ssize_t (*master_write)(struct vme_master_resource *, void *, size_t, loff_t);
1: - unsigned int (*master_rmw)(struct vme_master_resource *, unsigned int, unsigned int, unsigned int, loff_t);
1: - int (*dma_list_add)(struct vme_dma_list *, struct vme_dma_attr *, struct vme_dma_attr *, size_t);
1: - int (*dma_list_exec)(struct vme_dma_list *);
1: - int (*dma_list_empty)(struct vme_dma_list *);
1: - void (*irq_set)(struct vme_bridge *, int, int, int);
1: - int (*irq_generate)(struct vme_bridge *, int, int);
1: - int (*lm_set)(struct vme_lm_resource *, long long unsigned int, u32, u32);
1: - int (*lm_get)(struct vme_lm_resource *, long long unsigned int *, u32 *, u32 *);
1: - int (*lm_attach)(struct vme_lm_resource *, int, void (*)(void *), void *);
1: - int (*lm_detach)(struct vme_lm_resource *, int);
1: - int (*slot_get)(struct vme_bridge *);
1: - void * (*alloc_consistent)(struct device *, size_t, dma_addr_t *);
1: - void (*free_consistent)(struct device *, size_t, void *, dma_addr_t);
1: + char name[16];
1: + int num;
1: + struct list_head master_resources;
1: + struct list_head slave_resources;
1: + struct list_head dma_resources;
1: + struct list_head lm_resources;
1: + struct list_head vme_error_handlers;
1: + struct list_head devices;
1: + struct device *parent;
1: + void *driver_priv;
1: + struct list_head bus_list;
1: + struct vme_irq irq[7];
1: + struct mutex irq_mtx;
1: + int (*slave_get)(struct vme_slave_resource *, int *, long long unsigned int *,
1: + long long unsigned int *, dma_addr_t *, u32 *, u32 *);
1: + int (*slave_set)(struct vme_slave_resource *, int, long long unsigned int,
1: + long long unsigned int, dma_addr_t, u32, u32);
1: + int (*master_get)(struct vme_master_resource *, int *,
1: + long long unsigned int *, long long unsigned int *, u32 *,
1: + u32 *, u32 *);
1: + int (*master_set)(struct vme_master_resource *, int, long long unsigned int,
1: + long long unsigned int, u32, u32, u32);
1: + ssize_t (*master_read)(struct vme_master_resource *, void *, size_t, loff_t);
1: + ssize_t (*master_write)(struct vme_master_resource *, void *, size_t, loff_t);
1: + unsigned int (*master_rmw)(struct vme_master_resource *, unsigned int,
1: + unsigned int, unsigned int, loff_t);
1: + int (*dma_list_add)(struct vme_dma_list *, struct vme_dma_attr *,
1: + struct vme_dma_attr *, size_t);
1: + int (*dma_list_exec)(struct vme_dma_list *);
1: + int (*dma_list_empty)(struct vme_dma_list *);
1: + void (*irq_set)(struct vme_bridge *, int, int, int);
1: + int (*irq_generate)(struct vme_bridge *, int, int);
1: + int (*lm_set)(struct vme_lm_resource *, long long unsigned int, u32, u32);
1: + int (*lm_get)(struct vme_lm_resource *, long long unsigned int *, u32 *,
1: + u32 *);
1: + int (*lm_attach)(struct vme_lm_resource *, int, void (*)(void *), void *);
1: + int (*lm_detach)(struct vme_lm_resource *, int);
1: + int (*slot_get)(struct vme_bridge *);
1: + void *(*alloc_consistent)(struct device *, size_t, dma_addr_t *);
1: + void (*free_consistent)(struct device *, size_t, void *, dma_addr_t);
1: };
1:
1: struct vme_driver {
1: - const char *name;
1: - int (*match)(struct vme_dev *);
1: - int (*probe)(struct vme_dev *);
1: - int (*remove)(struct vme_dev *);
1: - struct device_driver driver;
1: - struct list_head devices;
1: + const char *name;
1: + int (*match)(struct vme_dev *);
1: + int (*probe)(struct vme_dev *);
1: + int (*remove)(struct vme_dev *);
1: + struct device_driver driver;
1: + struct list_head devices;
1: };
1:
1: struct vme_master_resource {
1: - struct list_head list;
1: - struct vme_bridge *parent;
1: - spinlock_t lock;
1: - int locked;
1: - int number;
1: - u32 address_attr;
1: - u32 cycle_attr;
1: - u32 width_attr;
1: - struct resource bus_resource;
1: - void *kern_base;
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + spinlock_t lock;
1: + int locked;
1: + int number;
1: + u32 address_attr;
1: + u32 cycle_attr;
1: + u32 width_attr;
1: + struct resource bus_resource;
1: + void *kern_base;
1: };
1:
1: struct vme_slave_resource {
1: - struct list_head list;
1: - struct vme_bridge *parent;
1: - struct mutex mtx;
1: - int locked;
1: - int number;
1: - u32 address_attr;
1: - u32 cycle_attr;
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + u32 address_attr;
1: + u32 cycle_attr;
1: };
1:
1: struct vme_dma_pattern {
1: - u32 pattern;
1: - u32 type;
1: + u32 pattern;
1: + u32 type;
1: };
1:
1: struct vme_dma_pci {
1: - dma_addr_t address;
1: + dma_addr_t address;
1: };
1:
1: struct vme_dma_vme {
1: - long long unsigned int address;
1: - u32 aspace;
1: - u32 cycle;
1: - u32 dwidth;
1: + long long unsigned int address;
1: + u32 aspace;
1: + u32 cycle;
1: + u32 dwidth;
1: };
1:
1: struct vme_dma_resource;
1:
1: struct vme_dma_list {
1: - struct list_head list;
1: - struct vme_dma_resource *parent;
1: - struct list_head entries;
1: - struct mutex mtx;
1: + struct list_head list;
1: + struct vme_dma_resource *parent;
1: + struct list_head entries;
1: + struct mutex mtx;
1: };
1:
1: struct vme_dma_resource {
1: - struct list_head list;
1: - struct vme_bridge *parent;
1: - struct mutex mtx;
1: - int locked;
1: - int number;
1: - struct list_head pending;
1: - struct list_head running;
1: - u32 route_attr;
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + struct list_head pending;
1: + struct list_head running;
1: + u32 route_attr;
1: };
1:
1: struct vme_lm_resource {
1: - struct list_head list;
1: - struct vme_bridge *parent;
1: - struct mutex mtx;
1: - int locked;
1: - int number;
1: - int monitors;
1: + struct list_head list;
1: + struct vme_bridge *parent;
1: + struct mutex mtx;
1: + int locked;
1: + int number;
1: + int monitors;
1: };
1:
1: struct vme_error_handler {
1: - struct list_head list;
1: - long long unsigned int start;
1: - long long unsigned int end;
1: - long long unsigned int first_error;
1: - u32 aspace;
1: - unsigned int num_errors;
1: + struct list_head list;
1: + long long unsigned int start;
1: + long long unsigned int end;
1: + long long unsigned int first_error;
1: + u32 aspace;
1: + unsigned int num_errors;
1: };
1:
1: struct powercap_control_type;
1:
1: struct powercap_control_type_ops {
1: - int (*set_enable)(struct powercap_control_type *, bool);
1: - int (*get_enable)(struct powercap_control_type *, bool *);
1: - int (*release)(struct powercap_control_type *);
1: + int (*set_enable)(struct powercap_control_type *, bool);
1: + int (*get_enable)(struct powercap_control_type *, bool *);
1: + int (*release)(struct powercap_control_type *);
1: };
1:
1: struct powercap_control_type {
1: - struct device dev;
1: - struct idr idr;
1: - int nr_zones;
1: - const struct powercap_control_type_ops *ops;
1: - struct mutex lock;
1: - bool allocated;
1: - struct list_head node;
1: + struct device dev;
1: + struct idr idr;
1: + int nr_zones;
1: + const struct powercap_control_type_ops *ops;
1: + struct mutex lock;
1: + bool allocated;
1: + struct list_head node;
1: };
1:
1: struct powercap_zone;
1:
1: struct powercap_zone_ops {
1: - int (*get_max_energy_range_uj)(struct powercap_zone *, u64 *);
1: - int (*get_energy_uj)(struct powercap_zone *, u64 *);
1: - int (*reset_energy_uj)(struct powercap_zone *);
1: - int (*get_max_power_range_uw)(struct powercap_zone *, u64 *);
1: - int (*get_power_uw)(struct powercap_zone *, u64 *);
1: - int (*set_enable)(struct powercap_zone *, bool);
1: - int (*get_enable)(struct powercap_zone *, bool *);
1: - int (*release)(struct powercap_zone *);
1: + int (*get_max_energy_range_uj)(struct powercap_zone *, u64 *);
1: + int (*get_energy_uj)(struct powercap_zone *, u64 *);
1: + int (*reset_energy_uj)(struct powercap_zone *);
1: + int (*get_max_power_range_uw)(struct powercap_zone *, u64 *);
1: + int (*get_power_uw)(struct powercap_zone *, u64 *);
1: + int (*set_enable)(struct powercap_zone *, bool);
1: + int (*get_enable)(struct powercap_zone *, bool *);
1: + int (*release)(struct powercap_zone *);
1: };
1:
1: struct powercap_zone_constraint;
1:
1: struct powercap_zone {
1: - int id;
1: - char *name;
1: - void *control_type_inst;
1: - const struct powercap_zone_ops *ops;
1: - struct device dev;
1: - int const_id_cnt;
1: - struct idr idr;
1: - struct idr *parent_idr;
1: - void *private_data;
1: - struct attribute **zone_dev_attrs;
1: - int zone_attr_count;
1: - struct attribute_group dev_zone_attr_group;
1: - const struct attribute_group *dev_attr_groups[2];
1: - bool allocated;
1: - struct powercap_zone_constraint *constraints;
1: + int id;
1: + char *name;
1: + void *control_type_inst;
1: + const struct powercap_zone_ops *ops;
1: + struct device dev;
1: + int const_id_cnt;
1: + struct idr idr;
1: + struct idr *parent_idr;
1: + void *private_data;
1: + struct attribute **zone_dev_attrs;
1: + int zone_attr_count;
1: + struct attribute_group dev_zone_attr_group;
1: + const struct attribute_group *dev_attr_groups[2];
1: + bool allocated;
1: + struct powercap_zone_constraint *constraints;
1: };
1:
1: struct powercap_zone_constraint_ops;
1:
1: struct powercap_zone_constraint {
1: - int id;
1: - struct powercap_zone *power_zone;
1: - const struct powercap_zone_constraint_ops *ops;
1: + int id;
1: + struct powercap_zone *power_zone;
1: + const struct powercap_zone_constraint_ops *ops;
1: };
1:
1: struct powercap_zone_constraint_ops {
1: - int (*set_power_limit_uw)(struct powercap_zone *, int, u64);
1: - int (*get_power_limit_uw)(struct powercap_zone *, int, u64 *);
1: - int (*set_time_window_us)(struct powercap_zone *, int, u64);
1: - int (*get_time_window_us)(struct powercap_zone *, int, u64 *);
1: - int (*get_max_power_uw)(struct powercap_zone *, int, u64 *);
1: - int (*get_min_power_uw)(struct powercap_zone *, int, u64 *);
1: - int (*get_max_time_window_us)(struct powercap_zone *, int, u64 *);
1: - int (*get_min_time_window_us)(struct powercap_zone *, int, u64 *);
1: - const char * (*get_name)(struct powercap_zone *, int);
1: + int (*set_power_limit_uw)(struct powercap_zone *, int, u64);
1: + int (*get_power_limit_uw)(struct powercap_zone *, int, u64 *);
1: + int (*set_time_window_us)(struct powercap_zone *, int, u64);
1: + int (*get_time_window_us)(struct powercap_zone *, int, u64 *);
1: + int (*get_max_power_uw)(struct powercap_zone *, int, u64 *);
1: + int (*get_min_power_uw)(struct powercap_zone *, int, u64 *);
1: + int (*get_max_time_window_us)(struct powercap_zone *, int, u64 *);
1: + int (*get_min_time_window_us)(struct powercap_zone *, int, u64 *);
1: + const char *(*get_name)(struct powercap_zone *, int);
1: };
1:
1: struct powercap_constraint_attr {
1: - struct device_attribute power_limit_attr;
1: - struct device_attribute time_window_attr;
1: - struct device_attribute max_power_attr;
1: - struct device_attribute min_power_attr;
1: - struct device_attribute max_time_window_attr;
1: - struct device_attribute min_time_window_attr;
1: - struct device_attribute name_attr;
1: + struct device_attribute power_limit_attr;
1: + struct device_attribute time_window_attr;
1: + struct device_attribute max_power_attr;
1: + struct device_attribute min_power_attr;
1: + struct device_attribute max_time_window_attr;
1: + struct device_attribute min_time_window_attr;
1: + struct device_attribute name_attr;
1: };
1:
1: enum {
1: - CCI_IF_SLAVE = 0,
1: - CCI_IF_MASTER = 1,
1: - CCI_IF_MAX = 2,
1: + CCI_IF_SLAVE = 0,
1: + CCI_IF_MASTER = 1,
1: + CCI_IF_MAX = 2,
1: };
1:
1: struct event_range {
1: - u32 min;
1: - u32 max;
1: + u32 min;
1: + u32 max;
1: };
1:
1: struct cci_pmu_hw_events {
1: - struct perf_event **events;
1: - long unsigned int *used_mask;
1: - raw_spinlock_t pmu_lock;
1: + struct perf_event **events;
1: + long unsigned int *used_mask;
1: + raw_spinlock_t pmu_lock;
1: };
1:
1: struct cci_pmu;
1:
1: struct cci_pmu_model {
1: - char *name;
1: - u32 fixed_hw_cntrs;
1: - u32 num_hw_cntrs;
1: - u32 cntr_size;
1: - struct attribute **format_attrs;
1: - struct attribute **event_attrs;
1: - struct event_range event_ranges[2];
1: - int (*validate_hw_event)(struct cci_pmu *, long unsigned int);
1: - int (*get_event_idx)(struct cci_pmu *, struct cci_pmu_hw_events *, long unsigned int);
1: - void (*write_counters)(struct cci_pmu *, long unsigned int *);
1: + char *name;
1: + u32 fixed_hw_cntrs;
1: + u32 num_hw_cntrs;
1: + u32 cntr_size;
1: + struct attribute **format_attrs;
1: + struct attribute **event_attrs;
1: + struct event_range event_ranges[2];
1: + int (*validate_hw_event)(struct cci_pmu *, long unsigned int);
1: + int (*get_event_idx)(struct cci_pmu *, struct cci_pmu_hw_events *,
1: + long unsigned int);
1: + void (*write_counters)(struct cci_pmu *, long unsigned int *);
1: };
1:
1: struct cci_pmu {
1: - void *base;
1: - void *ctrl_base;
1: - struct pmu pmu;
1: - int cpu;
1: - int nr_irqs;
1: - int *irqs;
1: - long unsigned int active_irqs;
1: - const struct cci_pmu_model *model;
1: - struct cci_pmu_hw_events hw_events;
1: - struct platform_device *plat_device;
1: - int num_cntrs;
1: - atomic_t active_events;
1: - struct mutex reserve_mutex;
1: + void *base;
1: + void *ctrl_base;
1: + struct pmu pmu;
1: + int cpu;
1: + int nr_irqs;
1: + int *irqs;
1: + long unsigned int active_irqs;
1: + const struct cci_pmu_model *model;
1: + struct cci_pmu_hw_events hw_events;
1: + struct platform_device *plat_device;
1: + int num_cntrs;
1: + atomic_t active_events;
1: + struct mutex reserve_mutex;
1: };
1:
1: enum cci_models {
1: - CCI400_R0 = 0,
1: - CCI400_R1 = 1,
1: - CCI_MODEL_MAX = 2,
1: + CCI400_R0 = 0,
1: + CCI400_R1 = 1,
1: + CCI_MODEL_MAX = 2,
1: };
1:
1: enum cci400_perf_events {
1: - CCI400_PMU_CYCLES = 255,
1: + CCI400_PMU_CYCLES = 255,
1: };
1:
1: struct arm_ccn_component {
1: - void *base;
1: - u32 type;
1: - long unsigned int pmu_events_mask[1];
1: - union {
1: - struct {
1: - long unsigned int dt_cmp_mask[1];
1: - } xp;
1: - };
1: + void *base;
1: + u32 type;
1: + long unsigned int pmu_events_mask[1];
1: + union {
1: + struct {
1: + long unsigned int dt_cmp_mask[1];
1: + } xp;
1: + };
1: };
1:
1: struct arm_ccn_dt {
1: - int id;
1: - void *base;
1: - spinlock_t config_lock;
1: - long unsigned int pmu_counters_mask[1];
1: - struct {
1: - struct arm_ccn_component *source;
1: - struct perf_event *event;
1: - } pmu_counters[9];
1: - struct {
1: - u64 l;
1: - u64 h;
1: - } cmp_mask[12];
1: - struct hrtimer hrtimer;
1: - unsigned int cpu;
1: - struct hlist_node node;
1: - struct pmu pmu;
1: + int id;
1: + void *base;
1: + spinlock_t config_lock;
1: + long unsigned int pmu_counters_mask[1];
1: + struct {
1: + struct arm_ccn_component *source;
1: + struct perf_event *event;
1: + } pmu_counters[9];
1: + struct {
1: + u64 l;
1: + u64 h;
1: + } cmp_mask[12];
1: + struct hrtimer hrtimer;
1: + unsigned int cpu;
1: + struct hlist_node node;
1: + struct pmu pmu;
1: };
1:
1: struct arm_ccn {
1: - struct device *dev;
1: - void *base;
1: - unsigned int irq;
1: - unsigned int sbas_present: 1;
1: - unsigned int sbsx_present: 1;
1: - int num_nodes;
1: - struct arm_ccn_component *node;
1: - int num_xps;
1: - struct arm_ccn_component *xp;
1: - struct arm_ccn_dt dt;
1: - int mn_id;
1: + struct device *dev;
1: + void *base;
1: + unsigned int irq;
1: + unsigned int sbas_present : 1;
1: + unsigned int sbsx_present : 1;
1: + int num_nodes;
1: + struct arm_ccn_component *node;
1: + int num_xps;
1: + struct arm_ccn_component *xp;
1: + struct arm_ccn_dt dt;
1: + int mn_id;
1: };
1:
1: struct arm_ccn_pmu_event {
1: - struct device_attribute attr;
1: - u32 type;
1: - u32 event;
1: - int num_ports;
1: - int num_vcs;
1: - const char *def;
1: - int mask;
1: + struct device_attribute attr;
1: + u32 type;
1: + u32 event;
1: + int num_ports;
1: + int num_vcs;
1: + const char *def;
1: + int mask;
1: };
1:
1: struct pmu_irq_ops {
1: - void (*enable_pmuirq)(unsigned int);
1: - void (*disable_pmuirq)(unsigned int);
1: - void (*free_pmuirq)(unsigned int, int, void *);
1: + void (*enable_pmuirq)(unsigned int);
1: + void (*disable_pmuirq)(unsigned int);
1: + void (*free_pmuirq)(unsigned int, int, void *);
1: };
1:
1: typedef int (*armpmu_init_fn)(struct arm_pmu *);
1:
1: struct pmu_probe_info {
1: - unsigned int cpuid;
1: - unsigned int mask;
1: - armpmu_init_fn init;
1: + unsigned int cpuid;
1: + unsigned int mask;
1: + armpmu_init_fn init;
1: };
1:
1: struct hisi_pmu;
1:
1: struct hisi_uncore_ops {
1: - void (*write_evtype)(struct hisi_pmu *, int, u32);
1: - int (*get_event_idx)(struct perf_event *);
1: - u64 (*read_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: - void (*write_counter)(struct hisi_pmu *, struct hw_perf_event *, u64);
1: - void (*enable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: - void (*disable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: - void (*enable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: - void (*disable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: - void (*start_counters)(struct hisi_pmu *);
1: - void (*stop_counters)(struct hisi_pmu *);
1: + void (*write_evtype)(struct hisi_pmu *, int, u32);
1: + int (*get_event_idx)(struct perf_event *);
1: + u64 (*read_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*write_counter)(struct hisi_pmu *, struct hw_perf_event *, u64);
1: + void (*enable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*disable_counter)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*enable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*disable_counter_int)(struct hisi_pmu *, struct hw_perf_event *);
1: + void (*start_counters)(struct hisi_pmu *);
1: + void (*stop_counters)(struct hisi_pmu *);
1: };
1:
1: struct hisi_pmu_hwevents {
1: - struct perf_event *hw_events[16];
1: - long unsigned int used_mask[1];
1: + struct perf_event *hw_events[16];
1: + long unsigned int used_mask[1];
1: };
1:
1: struct hisi_pmu {
1: - struct pmu pmu;
1: - const struct hisi_uncore_ops *ops;
1: - struct hisi_pmu_hwevents pmu_events;
1: - cpumask_t associated_cpus;
1: - int on_cpu;
1: - int irq;
1: - struct device *dev;
1: - struct hlist_node node;
1: - int sccl_id;
1: - int ccl_id;
1: - void *base;
1: - u32 index_id;
1: - int num_counters;
1: - int counter_bits;
1: - int check_event;
1: + struct pmu pmu;
1: + const struct hisi_uncore_ops *ops;
1: + struct hisi_pmu_hwevents pmu_events;
1: + cpumask_t associated_cpus;
1: + int on_cpu;
1: + int irq;
1: + struct device *dev;
1: + struct hlist_node node;
1: + int sccl_id;
1: + int ccl_id;
1: + void *base;
1: + u32 index_id;
1: + int num_counters;
1: + int counter_bits;
1: + int check_event;
1: };
1:
1: struct hw_pmu_info {
1: - u32 type;
1: - u32 enable_mask;
1: - void *csr;
1: + u32 type;
1: + u32 enable_mask;
1: + void *csr;
1: };
1:
1: struct xgene_pmu;
1:
1: struct xgene_pmu_dev {
1: - struct hw_pmu_info *inf;
1: - struct xgene_pmu *parent;
1: - struct pmu pmu;
1: - u8 max_counters;
1: - long unsigned int cntr_assign_mask[1];
1: - u64 max_period;
1: - const struct attribute_group **attr_groups;
1: - struct perf_event *pmu_counter_event[4];
1: + struct hw_pmu_info *inf;
1: + struct xgene_pmu *parent;
1: + struct pmu pmu;
1: + u8 max_counters;
1: + long unsigned int cntr_assign_mask[1];
1: + u64 max_period;
1: + const struct attribute_group **attr_groups;
1: + struct perf_event *pmu_counter_event[4];
1: };
1:
1: struct xgene_pmu_ops;
1:
1: struct xgene_pmu {
1: - struct device *dev;
1: - struct hlist_node node;
1: - int version;
1: - void *pcppmu_csr;
1: - u32 mcb_active_mask;
1: - u32 mc_active_mask;
1: - u32 l3c_active_mask;
1: - cpumask_t cpu;
1: - int irq;
1: - raw_spinlock_t lock;
1: - const struct xgene_pmu_ops *ops;
1: - struct list_head l3cpmus;
1: - struct list_head iobpmus;
1: - struct list_head mcbpmus;
1: - struct list_head mcpmus;
1: + struct device *dev;
1: + struct hlist_node node;
1: + int version;
1: + void *pcppmu_csr;
1: + u32 mcb_active_mask;
1: + u32 mc_active_mask;
1: + u32 l3c_active_mask;
1: + cpumask_t cpu;
1: + int irq;
1: + raw_spinlock_t lock;
1: + const struct xgene_pmu_ops *ops;
1: + struct list_head l3cpmus;
1: + struct list_head iobpmus;
1: + struct list_head mcbpmus;
1: + struct list_head mcpmus;
1: };
1:
1: struct xgene_pmu_ops {
1: - void (*mask_int)(struct xgene_pmu *);
1: - void (*unmask_int)(struct xgene_pmu *);
1: - u64 (*read_counter)(struct xgene_pmu_dev *, int);
1: - void (*write_counter)(struct xgene_pmu_dev *, int, u64);
1: - void (*write_evttype)(struct xgene_pmu_dev *, int, u32);
1: - void (*write_agentmsk)(struct xgene_pmu_dev *, u32);
1: - void (*write_agent1msk)(struct xgene_pmu_dev *, u32);
1: - void (*enable_counter)(struct xgene_pmu_dev *, int);
1: - void (*disable_counter)(struct xgene_pmu_dev *, int);
1: - void (*enable_counter_int)(struct xgene_pmu_dev *, int);
1: - void (*disable_counter_int)(struct xgene_pmu_dev *, int);
1: - void (*reset_counters)(struct xgene_pmu_dev *);
1: - void (*start_counters)(struct xgene_pmu_dev *);
1: - void (*stop_counters)(struct xgene_pmu_dev *);
1: + void (*mask_int)(struct xgene_pmu *);
1: + void (*unmask_int)(struct xgene_pmu *);
1: + u64 (*read_counter)(struct xgene_pmu_dev *, int);
1: + void (*write_counter)(struct xgene_pmu_dev *, int, u64);
1: + void (*write_evttype)(struct xgene_pmu_dev *, int, u32);
1: + void (*write_agentmsk)(struct xgene_pmu_dev *, u32);
1: + void (*write_agent1msk)(struct xgene_pmu_dev *, u32);
1: + void (*enable_counter)(struct xgene_pmu_dev *, int);
1: + void (*disable_counter)(struct xgene_pmu_dev *, int);
1: + void (*enable_counter_int)(struct xgene_pmu_dev *, int);
1: + void (*disable_counter_int)(struct xgene_pmu_dev *, int);
1: + void (*reset_counters)(struct xgene_pmu_dev *);
1: + void (*start_counters)(struct xgene_pmu_dev *);
1: + void (*stop_counters)(struct xgene_pmu_dev *);
1: };
1:
1: struct xgene_pmu_dev_ctx {
1: - char *name;
1: - struct list_head next;
1: - struct xgene_pmu_dev *pmu_dev;
1: - struct hw_pmu_info inf;
1: + char *name;
1: + struct list_head next;
1: + struct xgene_pmu_dev *pmu_dev;
1: + struct hw_pmu_info inf;
1: };
1:
1: struct xgene_pmu_data {
1: - int id;
1: - u32 data;
1: + int id;
1: + u32 data;
1: };
1:
1: enum xgene_pmu_version {
1: - PCP_PMU_V1 = 1,
1: - PCP_PMU_V2 = 2,
1: - PCP_PMU_V3 = 3,
1: + PCP_PMU_V1 = 1,
1: + PCP_PMU_V2 = 2,
1: + PCP_PMU_V3 = 3,
1: };
1:
1: enum xgene_pmu_dev_type {
1: - PMU_TYPE_L3C = 0,
1: - PMU_TYPE_IOB = 1,
1: - PMU_TYPE_IOB_SLOW = 2,
1: - PMU_TYPE_MCB = 3,
1: - PMU_TYPE_MC = 4,
1: + PMU_TYPE_L3C = 0,
1: + PMU_TYPE_IOB = 1,
1: + PMU_TYPE_IOB_SLOW = 2,
1: + PMU_TYPE_MCB = 3,
1: + PMU_TYPE_MC = 4,
1: };
1:
1: struct trace_event_raw_mc_event {
1: - struct trace_entry ent;
1: - unsigned int error_type;
1: - u32 __data_loc_msg;
1: - u32 __data_loc_label;
1: - u16 error_count;
1: - u8 mc_index;
1: - s8 top_layer;
1: - s8 middle_layer;
1: - s8 lower_layer;
1: - long int address;
1: - u8 grain_bits;
1: - long int syndrome;
1: - u32 __data_loc_driver_detail;
1: - char __data[0];
1: + struct trace_entry ent;
1: + unsigned int error_type;
1: + u32 __data_loc_msg;
1: + u32 __data_loc_label;
1: + u16 error_count;
1: + u8 mc_index;
1: + s8 top_layer;
1: + s8 middle_layer;
1: + s8 lower_layer;
1: + long int address;
1: + u8 grain_bits;
1: + long int syndrome;
1: + u32 __data_loc_driver_detail;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_arm_event {
1: - struct trace_entry ent;
1: - u64 mpidr;
1: - u64 midr;
1: - u32 running_state;
1: - u32 psci_state;
1: - u8 affinity;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u64 mpidr;
1: + u64 midr;
1: + u32 running_state;
1: + u32 psci_state;
1: + u8 affinity;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_non_standard_event {
1: - struct trace_entry ent;
1: - char sec_type[16];
1: - char fru_id[16];
1: - u32 __data_loc_fru_text;
1: - u8 sev;
1: - u32 len;
1: - u32 __data_loc_buf;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char sec_type[16];
1: + char fru_id[16];
1: + u32 __data_loc_fru_text;
1: + u8 sev;
1: + u32 len;
1: + u32 __data_loc_buf;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_aer_event {
1: - struct trace_entry ent;
1: - u32 __data_loc_dev_name;
1: - u32 status;
1: - u8 severity;
1: - u8 tlp_header_valid;
1: - u32 tlp_header[4];
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_dev_name;
1: + u32 status;
1: + u8 severity;
1: + u8 tlp_header_valid;
1: + u32 tlp_header[4];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_memory_failure_event {
1: - struct trace_entry ent;
1: - long unsigned int pfn;
1: - int type;
1: - int result;
1: - char __data[0];
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int type;
1: + int result;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_mc_event {
1: - u32 msg;
1: - u32 label;
1: - u32 driver_detail;
1: + u32 msg;
1: + u32 label;
1: + u32 driver_detail;
1: };
1:
1: struct trace_event_data_offsets_arm_event {};
1:
1: struct trace_event_data_offsets_non_standard_event {
1: - u32 fru_text;
1: - u32 buf;
1: + u32 fru_text;
1: + u32 buf;
1: };
1:
1: struct trace_event_data_offsets_aer_event {
1: - u32 dev_name;
1: + u32 dev_name;
1: };
1:
1: struct trace_event_data_offsets_memory_failure_event {};
1:
1: -typedef void (*btf_trace_mc_event)(void *, const unsigned int, const char *, const char *, const int, const u8, const s8, const s8, const s8, long unsigned int, const u8, long unsigned int, const char *);
1: +typedef void (*btf_trace_mc_event)(void *, const unsigned int, const char *,
1: + const char *, const int, const u8, const s8,
1: + const s8, const s8, long unsigned int,
1: + const u8, long unsigned int, const char *);
1:
1: typedef void (*btf_trace_arm_event)(void *, const struct cper_sec_proc_arm *);
1:
1: -typedef void (*btf_trace_non_standard_event)(void *, const guid_t *, const guid_t *, const char *, const u8, const u8 *, const u32);
1: +typedef void (*btf_trace_non_standard_event)(void *, const guid_t *,
1: + const guid_t *, const char *,
1: + const u8, const u8 *, const u32);
1:
1: -typedef void (*btf_trace_aer_event)(void *, const char *, const u32, const u8, const u8, struct aer_header_log_regs *);
1: +typedef void (*btf_trace_aer_event)(void *, const char *, const u32, const u8,
1: + const u8, struct aer_header_log_regs *);
1:
1: -typedef void (*btf_trace_memory_failure_event)(void *, long unsigned int, int, int);
1: +typedef void (*btf_trace_memory_failure_event)(void *, long unsigned int, int,
1: + int);
1:
1: enum {
1: - NVMEM_ADD = 1,
1: - NVMEM_REMOVE = 2,
1: - NVMEM_CELL_ADD = 3,
1: - NVMEM_CELL_REMOVE = 4,
1: + NVMEM_ADD = 1,
1: + NVMEM_REMOVE = 2,
1: + NVMEM_CELL_ADD = 3,
1: + NVMEM_CELL_REMOVE = 4,
1: };
1:
1: struct nvmem_cell_table {
1: - const char *nvmem_name;
1: - const struct nvmem_cell_info *cells;
1: - size_t ncells;
1: - struct list_head node;
1: + const char *nvmem_name;
1: + const struct nvmem_cell_info *cells;
1: + size_t ncells;
1: + struct list_head node;
1: };
1:
1: struct nvmem_device___2 {
1: - struct module *owner;
1: - struct device dev;
1: - int stride;
1: - int word_size;
1: - int id;
1: - struct kref refcnt;
1: - size_t size;
1: - bool read_only;
1: - bool root_only;
1: - int flags;
1: - enum nvmem_type type;
1: - struct bin_attribute eeprom;
1: - struct device *base_dev;
1: - struct list_head cells;
1: - nvmem_reg_read_t reg_read;
1: - nvmem_reg_write_t reg_write;
1: - struct gpio_desc *wp_gpio;
1: - void *priv;
1: + struct module *owner;
1: + struct device dev;
1: + int stride;
1: + int word_size;
1: + int id;
1: + struct kref refcnt;
1: + size_t size;
1: + bool read_only;
1: + bool root_only;
1: + int flags;
1: + enum nvmem_type type;
1: + struct bin_attribute eeprom;
1: + struct device *base_dev;
1: + struct list_head cells;
1: + nvmem_reg_read_t reg_read;
1: + nvmem_reg_write_t reg_write;
1: + struct gpio_desc *wp_gpio;
1: + void *priv;
1: };
1:
1: struct nvmem_cell {
1: - const char *name;
1: - int offset;
1: - int bytes;
1: - int bit_offset;
1: - int nbits;
1: - struct device_node *np;
1: - struct nvmem_device___2 *nvmem;
1: - struct list_head node;
1: + const char *name;
1: + int offset;
1: + int bytes;
1: + int bit_offset;
1: + int nbits;
1: + struct device_node *np;
1: + struct nvmem_device___2 *nvmem;
1: + struct list_head node;
1: };
1:
1: struct net_device_devres {
1: - struct net_device *ndev;
1: + struct net_device *ndev;
1: };
1:
1: struct __kernel_old_timespec {
1: - __kernel_old_time_t tv_sec;
1: - long int tv_nsec;
1: + __kernel_old_time_t tv_sec;
1: + long int tv_nsec;
1: };
1:
1: struct __kernel_sock_timeval {
1: - __s64 tv_sec;
1: - __s64 tv_usec;
1: + __s64 tv_sec;
1: + __s64 tv_usec;
1: };
1:
1: struct mmsghdr {
1: - struct user_msghdr msg_hdr;
1: - unsigned int msg_len;
1: + struct user_msghdr msg_hdr;
1: + unsigned int msg_len;
1: };
1:
1: struct scm_timestamping_internal {
1: - struct timespec64 ts[3];
1: + struct timespec64 ts[3];
1: };
1:
1: enum sock_shutdown_cmd {
1: - SHUT_RD = 0,
1: - SHUT_WR = 1,
1: - SHUT_RDWR = 2,
1: + SHUT_RD = 0,
1: + SHUT_WR = 1,
1: + SHUT_RDWR = 2,
1: };
1:
1: struct net_proto_family {
1: - int family;
1: - int (*create)(struct net *, struct socket *, int, int);
1: - struct module *owner;
1: + int family;
1: + int (*create)(struct net *, struct socket *, int, int);
1: + struct module *owner;
1: };
1:
1: enum {
1: - SOCK_WAKE_IO = 0,
1: - SOCK_WAKE_WAITD = 1,
1: - SOCK_WAKE_SPACE = 2,
1: - SOCK_WAKE_URG = 3,
1: + SOCK_WAKE_IO = 0,
1: + SOCK_WAKE_WAITD = 1,
1: + SOCK_WAKE_SPACE = 2,
1: + SOCK_WAKE_URG = 3,
1: };
1:
1: struct ifconf {
1: - int ifc_len;
1: - union {
1: - char *ifcu_buf;
1: - struct ifreq *ifcu_req;
1: - } ifc_ifcu;
1: + int ifc_len;
1: + union {
1: + char *ifcu_buf;
1: + struct ifreq *ifcu_req;
1: + } ifc_ifcu;
1: };
1:
1: struct compat_ifmap {
1: - compat_ulong_t mem_start;
1: - compat_ulong_t mem_end;
1: - short unsigned int base_addr;
1: - unsigned char irq;
1: - unsigned char dma;
1: - unsigned char port;
1: + compat_ulong_t mem_start;
1: + compat_ulong_t mem_end;
1: + short unsigned int base_addr;
1: + unsigned char irq;
1: + unsigned char dma;
1: + unsigned char port;
1: };
1:
1: struct compat_if_settings {
1: - unsigned int type;
1: - unsigned int size;
1: - compat_uptr_t ifs_ifsu;
1: + unsigned int type;
1: + unsigned int size;
1: + compat_uptr_t ifs_ifsu;
1: };
1:
1: struct compat_ifreq {
1: - union {
1: - char ifrn_name[16];
1: - } ifr_ifrn;
1: - union {
1: - struct sockaddr ifru_addr;
1: - struct sockaddr ifru_dstaddr;
1: - struct sockaddr ifru_broadaddr;
1: - struct sockaddr ifru_netmask;
1: - struct sockaddr ifru_hwaddr;
1: - short int ifru_flags;
1: - compat_int_t ifru_ivalue;
1: - compat_int_t ifru_mtu;
1: - struct compat_ifmap ifru_map;
1: - char ifru_slave[16];
1: - char ifru_newname[16];
1: - compat_caddr_t ifru_data;
1: - struct compat_if_settings ifru_settings;
1: - } ifr_ifru;
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union {
1: + struct sockaddr ifru_addr;
1: + struct sockaddr ifru_dstaddr;
1: + struct sockaddr ifru_broadaddr;
1: + struct sockaddr ifru_netmask;
1: + struct sockaddr ifru_hwaddr;
1: + short int ifru_flags;
1: + compat_int_t ifru_ivalue;
1: + compat_int_t ifru_mtu;
1: + struct compat_ifmap ifru_map;
1: + char ifru_slave[16];
1: + char ifru_newname[16];
1: + compat_caddr_t ifru_data;
1: + struct compat_if_settings ifru_settings;
1: + } ifr_ifru;
1: };
1:
1: struct compat_ifconf {
1: - compat_int_t ifc_len;
1: - compat_caddr_t ifcbuf;
1: + compat_int_t ifc_len;
1: + compat_caddr_t ifcbuf;
1: };
1:
1: struct compat_ethtool_rx_flow_spec {
1: - u32 flow_type;
1: - union ethtool_flow_union h_u;
1: - struct ethtool_flow_ext h_ext;
1: - union ethtool_flow_union m_u;
1: - struct ethtool_flow_ext m_ext;
1: - compat_u64 ring_cookie;
1: - u32 location;
1: + u32 flow_type;
1: + union ethtool_flow_union h_u;
1: + struct ethtool_flow_ext h_ext;
1: + union ethtool_flow_union m_u;
1: + struct ethtool_flow_ext m_ext;
1: + compat_u64 ring_cookie;
1: + u32 location;
1: };
1:
1: struct compat_ethtool_rxnfc {
1: - u32 cmd;
1: - u32 flow_type;
1: - compat_u64 data;
1: - struct compat_ethtool_rx_flow_spec fs;
1: - u32 rule_cnt;
1: - u32 rule_locs[0];
1: + u32 cmd;
1: + u32 flow_type;
1: + compat_u64 data;
1: + struct compat_ethtool_rx_flow_spec fs;
1: + u32 rule_cnt;
1: + u32 rule_locs[0];
1: };
1:
1: struct libipw_device;
1: @@ -95995,340 +97216,340 @@ struct libipw_device;
1: struct iw_spy_data;
1:
1: struct iw_public_data {
1: - struct iw_spy_data *spy_data;
1: - struct libipw_device *libipw;
1: + struct iw_spy_data *spy_data;
1: + struct libipw_device *libipw;
1: };
1:
1: struct iw_param {
1: - __s32 value;
1: - __u8 fixed;
1: - __u8 disabled;
1: - __u16 flags;
1: + __s32 value;
1: + __u8 fixed;
1: + __u8 disabled;
1: + __u16 flags;
1: };
1:
1: struct iw_point {
1: - void *pointer;
1: - __u16 length;
1: - __u16 flags;
1: + void *pointer;
1: + __u16 length;
1: + __u16 flags;
1: };
1:
1: struct iw_freq {
1: - __s32 m;
1: - __s16 e;
1: - __u8 i;
1: - __u8 flags;
1: + __s32 m;
1: + __s16 e;
1: + __u8 i;
1: + __u8 flags;
1: };
1:
1: struct iw_quality {
1: - __u8 qual;
1: - __u8 level;
1: - __u8 noise;
1: - __u8 updated;
1: + __u8 qual;
1: + __u8 level;
1: + __u8 noise;
1: + __u8 updated;
1: };
1:
1: struct iw_discarded {
1: - __u32 nwid;
1: - __u32 code;
1: - __u32 fragment;
1: - __u32 retries;
1: - __u32 misc;
1: + __u32 nwid;
1: + __u32 code;
1: + __u32 fragment;
1: + __u32 retries;
1: + __u32 misc;
1: };
1:
1: struct iw_missed {
1: - __u32 beacon;
1: + __u32 beacon;
1: };
1:
1: struct iw_statistics {
1: - __u16 status;
1: - struct iw_quality qual;
1: - struct iw_discarded discard;
1: - struct iw_missed miss;
1: + __u16 status;
1: + struct iw_quality qual;
1: + struct iw_discarded discard;
1: + struct iw_missed miss;
1: };
1:
1: union iwreq_data {
1: - char name[16];
1: - struct iw_point essid;
1: - struct iw_param nwid;
1: - struct iw_freq freq;
1: - struct iw_param sens;
1: - struct iw_param bitrate;
1: - struct iw_param txpower;
1: - struct iw_param rts;
1: - struct iw_param frag;
1: - __u32 mode;
1: - struct iw_param retry;
1: - struct iw_point encoding;
1: - struct iw_param power;
1: - struct iw_quality qual;
1: - struct sockaddr ap_addr;
1: - struct sockaddr addr;
1: - struct iw_param param;
1: - struct iw_point data;
1: + char name[16];
1: + struct iw_point essid;
1: + struct iw_param nwid;
1: + struct iw_freq freq;
1: + struct iw_param sens;
1: + struct iw_param bitrate;
1: + struct iw_param txpower;
1: + struct iw_param rts;
1: + struct iw_param frag;
1: + __u32 mode;
1: + struct iw_param retry;
1: + struct iw_point encoding;
1: + struct iw_param power;
1: + struct iw_quality qual;
1: + struct sockaddr ap_addr;
1: + struct sockaddr addr;
1: + struct iw_param param;
1: + struct iw_point data;
1: };
1:
1: struct iw_priv_args {
1: - __u32 cmd;
1: - __u16 set_args;
1: - __u16 get_args;
1: - char name[16];
1: + __u32 cmd;
1: + __u16 set_args;
1: + __u16 get_args;
1: + char name[16];
1: };
1:
1: struct compat_mmsghdr {
1: - struct compat_msghdr msg_hdr;
1: - compat_uint_t msg_len;
1: + struct compat_msghdr msg_hdr;
1: + compat_uint_t msg_len;
1: };
1:
1: struct iw_request_info {
1: - __u16 cmd;
1: - __u16 flags;
1: + __u16 cmd;
1: + __u16 flags;
1: };
1:
1: struct iw_spy_data {
1: - int spy_number;
1: - u_char spy_address[48];
1: - struct iw_quality spy_stat[8];
1: - struct iw_quality spy_thr_low;
1: - struct iw_quality spy_thr_high;
1: - u_char spy_thr_under[8];
1: -};
1: -
1: -enum {
1: - SOF_TIMESTAMPING_TX_HARDWARE = 1,
1: - SOF_TIMESTAMPING_TX_SOFTWARE = 2,
1: - SOF_TIMESTAMPING_RX_HARDWARE = 4,
1: - SOF_TIMESTAMPING_RX_SOFTWARE = 8,
1: - SOF_TIMESTAMPING_SOFTWARE = 16,
1: - SOF_TIMESTAMPING_SYS_HARDWARE = 32,
1: - SOF_TIMESTAMPING_RAW_HARDWARE = 64,
1: - SOF_TIMESTAMPING_OPT_ID = 128,
1: - SOF_TIMESTAMPING_TX_SCHED = 256,
1: - SOF_TIMESTAMPING_TX_ACK = 512,
1: - SOF_TIMESTAMPING_OPT_CMSG = 1024,
1: - SOF_TIMESTAMPING_OPT_TSONLY = 2048,
1: - SOF_TIMESTAMPING_OPT_STATS = 4096,
1: - SOF_TIMESTAMPING_OPT_PKTINFO = 8192,
1: - SOF_TIMESTAMPING_OPT_TX_SWHW = 16384,
1: - SOF_TIMESTAMPING_LAST = 16384,
1: - SOF_TIMESTAMPING_MASK = 32767,
1: + int spy_number;
1: + u_char spy_address[48];
1: + struct iw_quality spy_stat[8];
1: + struct iw_quality spy_thr_low;
1: + struct iw_quality spy_thr_high;
1: + u_char spy_thr_under[8];
1: +};
1: +
1: +enum {
1: + SOF_TIMESTAMPING_TX_HARDWARE = 1,
1: + SOF_TIMESTAMPING_TX_SOFTWARE = 2,
1: + SOF_TIMESTAMPING_RX_HARDWARE = 4,
1: + SOF_TIMESTAMPING_RX_SOFTWARE = 8,
1: + SOF_TIMESTAMPING_SOFTWARE = 16,
1: + SOF_TIMESTAMPING_SYS_HARDWARE = 32,
1: + SOF_TIMESTAMPING_RAW_HARDWARE = 64,
1: + SOF_TIMESTAMPING_OPT_ID = 128,
1: + SOF_TIMESTAMPING_TX_SCHED = 256,
1: + SOF_TIMESTAMPING_TX_ACK = 512,
1: + SOF_TIMESTAMPING_OPT_CMSG = 1024,
1: + SOF_TIMESTAMPING_OPT_TSONLY = 2048,
1: + SOF_TIMESTAMPING_OPT_STATS = 4096,
1: + SOF_TIMESTAMPING_OPT_PKTINFO = 8192,
1: + SOF_TIMESTAMPING_OPT_TX_SWHW = 16384,
1: + SOF_TIMESTAMPING_LAST = 16384,
1: + SOF_TIMESTAMPING_MASK = 32767,
1: };
1:
1: struct scm_ts_pktinfo {
1: - __u32 if_index;
1: - __u32 pkt_length;
1: - __u32 reserved[2];
1: + __u32 if_index;
1: + __u32 pkt_length;
1: + __u32 reserved[2];
1: };
1:
1: struct sock_skb_cb {
1: - u32 dropcount;
1: + u32 dropcount;
1: };
1:
1: struct sock_ee_data_rfc4884 {
1: - __u16 len;
1: - __u8 flags;
1: - __u8 reserved;
1: + __u16 len;
1: + __u8 flags;
1: + __u8 reserved;
1: };
1:
1: struct sock_extended_err {
1: - __u32 ee_errno;
1: - __u8 ee_origin;
1: - __u8 ee_type;
1: - __u8 ee_code;
1: - __u8 ee_pad;
1: - __u32 ee_info;
1: - union {
1: - __u32 ee_data;
1: - struct sock_ee_data_rfc4884 ee_rfc4884;
1: - };
1: + __u32 ee_errno;
1: + __u8 ee_origin;
1: + __u8 ee_type;
1: + __u8 ee_code;
1: + __u8 ee_pad;
1: + __u32 ee_info;
1: + union {
1: + __u32 ee_data;
1: + struct sock_ee_data_rfc4884 ee_rfc4884;
1: + };
1: };
1:
1: struct sock_exterr_skb {
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - } header;
1: - struct sock_extended_err ee;
1: - u16 addr_offset;
1: - __be16 port;
1: - u8 opt_stats: 1;
1: - u8 unused: 7;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + struct sock_extended_err ee;
1: + u16 addr_offset;
1: + __be16 port;
1: + u8 opt_stats : 1;
1: + u8 unused : 7;
1: };
1:
1: struct used_address {
1: - struct __kernel_sockaddr_storage name;
1: - unsigned int name_len;
1: + struct __kernel_sockaddr_storage name;
1: + unsigned int name_len;
1: };
1:
1: struct linger {
1: - int l_onoff;
1: - int l_linger;
1: + int l_onoff;
1: + int l_linger;
1: };
1:
1: struct cmsghdr {
1: - __kernel_size_t cmsg_len;
1: - int cmsg_level;
1: - int cmsg_type;
1: + __kernel_size_t cmsg_len;
1: + int cmsg_level;
1: + int cmsg_type;
1: };
1:
1: struct ucred {
1: - __u32 pid;
1: - __u32 uid;
1: - __u32 gid;
1: + __u32 pid;
1: + __u32 uid;
1: + __u32 gid;
1: };
1:
1: struct mmpin {
1: - struct user_struct *user;
1: - unsigned int num_pg;
1: + struct user_struct *user;
1: + unsigned int num_pg;
1: };
1:
1: struct ubuf_info {
1: - void (*callback)(struct ubuf_info *, bool);
1: - union {
1: - struct {
1: - long unsigned int desc;
1: - void *ctx;
1: - };
1: - struct {
1: - u32 id;
1: - u16 len;
1: - u16 zerocopy: 1;
1: - u32 bytelen;
1: - };
1: - };
1: - refcount_t refcnt;
1: - struct mmpin mmp;
1: + void (*callback)(struct ubuf_info *, bool);
1: + union {
1: + struct {
1: + long unsigned int desc;
1: + void *ctx;
1: + };
1: + struct {
1: + u32 id;
1: + u16 len;
1: + u16 zerocopy : 1;
1: + u32 bytelen;
1: + };
1: + };
1: + refcount_t refcnt;
1: + struct mmpin mmp;
1: };
1:
1: struct prot_inuse {
1: - int val[64];
1: + int val[64];
1: };
1:
1: struct sd_flow_limit {
1: - u64 count;
1: - unsigned int num_buckets;
1: - unsigned int history_head;
1: - u16 history[128];
1: - u8 buckets[0];
1: + u64 count;
1: + unsigned int num_buckets;
1: + unsigned int history_head;
1: + u16 history[128];
1: + u8 buckets[0];
1: };
1:
1: struct softnet_data {
1: - struct list_head poll_list;
1: - struct sk_buff_head process_queue;
1: - unsigned int processed;
1: - unsigned int time_squeeze;
1: - unsigned int received_rps;
1: - struct softnet_data *rps_ipi_list;
1: - struct sd_flow_limit *flow_limit;
1: - struct Qdisc *output_queue;
1: - struct Qdisc **output_queue_tailp;
1: - struct sk_buff *completion_queue;
1: - struct sk_buff_head xfrm_backlog;
1: - struct {
1: - u16 recursion;
1: - u8 more;
1: - } xmit;
1: - int: 32;
1: - unsigned int input_queue_head;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - call_single_data_t csd;
1: - struct softnet_data *rps_ipi_next;
1: - unsigned int cpu;
1: - unsigned int input_queue_tail;
1: - unsigned int dropped;
1: - struct sk_buff_head input_pkt_queue;
1: - struct napi_struct backlog;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct list_head poll_list;
1: + struct sk_buff_head process_queue;
1: + unsigned int processed;
1: + unsigned int time_squeeze;
1: + unsigned int received_rps;
1: + struct softnet_data *rps_ipi_list;
1: + struct sd_flow_limit *flow_limit;
1: + struct Qdisc *output_queue;
1: + struct Qdisc **output_queue_tailp;
1: + struct sk_buff *completion_queue;
1: + struct sk_buff_head xfrm_backlog;
1: + struct {
1: + u16 recursion;
1: + u8 more;
1: + } xmit;
1: + int : 32;
1: + unsigned int input_queue_head;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + call_single_data_t csd;
1: + struct softnet_data *rps_ipi_next;
1: + unsigned int cpu;
1: + unsigned int input_queue_tail;
1: + unsigned int dropped;
1: + struct sk_buff_head input_pkt_queue;
1: + struct napi_struct backlog;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum txtime_flags {
1: - SOF_TXTIME_DEADLINE_MODE = 1,
1: - SOF_TXTIME_REPORT_ERRORS = 2,
1: - SOF_TXTIME_FLAGS_LAST = 2,
1: - SOF_TXTIME_FLAGS_MASK = 3,
1: + SOF_TXTIME_DEADLINE_MODE = 1,
1: + SOF_TXTIME_REPORT_ERRORS = 2,
1: + SOF_TXTIME_FLAGS_LAST = 2,
1: + SOF_TXTIME_FLAGS_MASK = 3,
1: };
1:
1: struct sock_txtime {
1: - __kernel_clockid_t clockid;
1: - __u32 flags;
1: + __kernel_clockid_t clockid;
1: + __u32 flags;
1: };
1:
1: enum sk_pacing {
1: - SK_PACING_NONE = 0,
1: - SK_PACING_NEEDED = 1,
1: - SK_PACING_FQ = 2,
1: + SK_PACING_NONE = 0,
1: + SK_PACING_NEEDED = 1,
1: + SK_PACING_FQ = 2,
1: };
1:
1: struct sockcm_cookie {
1: - u64 transmit_time;
1: - u32 mark;
1: - u16 tsflags;
1: + u64 transmit_time;
1: + u32 mark;
1: + u16 tsflags;
1: };
1:
1: struct inet_bind_bucket {
1: - possible_net_t ib_net;
1: - int l3mdev;
1: - short unsigned int port;
1: - signed char fastreuse;
1: - signed char fastreuseport;
1: - kuid_t fastuid;
1: - struct in6_addr fast_v6_rcv_saddr;
1: - __be32 fast_rcv_saddr;
1: - short unsigned int fast_sk_family;
1: - bool fast_ipv6_only;
1: - struct hlist_node node;
1: - struct hlist_head owners;
1: + possible_net_t ib_net;
1: + int l3mdev;
1: + short unsigned int port;
1: + signed char fastreuse;
1: + signed char fastreuseport;
1: + kuid_t fastuid;
1: + struct in6_addr fast_v6_rcv_saddr;
1: + __be32 fast_rcv_saddr;
1: + short unsigned int fast_sk_family;
1: + bool fast_ipv6_only;
1: + struct hlist_node node;
1: + struct hlist_head owners;
1: };
1:
1: struct tcp_fastopen_cookie {
1: - __le64 val[2];
1: - s8 len;
1: - bool exp;
1: + __le64 val[2];
1: + s8 len;
1: + bool exp;
1: };
1:
1: struct tcp_sack_block {
1: - u32 start_seq;
1: - u32 end_seq;
1: + u32 start_seq;
1: + u32 end_seq;
1: };
1:
1: struct tcp_options_received {
1: - int ts_recent_stamp;
1: - u32 ts_recent;
1: - u32 rcv_tsval;
1: - u32 rcv_tsecr;
1: - u16 saw_tstamp: 1;
1: - u16 tstamp_ok: 1;
1: - u16 dsack: 1;
1: - u16 wscale_ok: 1;
1: - u16 sack_ok: 3;
1: - u16 smc_ok: 1;
1: - u16 snd_wscale: 4;
1: - u16 rcv_wscale: 4;
1: - u8 saw_unknown: 1;
1: - u8 unused: 7;
1: - u8 num_sacks;
1: - u16 user_mss;
1: - u16 mss_clamp;
1: + int ts_recent_stamp;
1: + u32 ts_recent;
1: + u32 rcv_tsval;
1: + u32 rcv_tsecr;
1: + u16 saw_tstamp : 1;
1: + u16 tstamp_ok : 1;
1: + u16 dsack : 1;
1: + u16 wscale_ok : 1;
1: + u16 sack_ok : 3;
1: + u16 smc_ok : 1;
1: + u16 snd_wscale : 4;
1: + u16 rcv_wscale : 4;
1: + u8 saw_unknown : 1;
1: + u8 unused : 7;
1: + u8 num_sacks;
1: + u16 user_mss;
1: + u16 mss_clamp;
1: };
1:
1: struct tcp_rack {
1: - u64 mstamp;
1: - u32 rtt_us;
1: - u32 end_seq;
1: - u32 last_delivered;
1: - u8 reo_wnd_steps;
1: - u8 reo_wnd_persist: 5;
1: - u8 dsack_seen: 1;
1: - u8 advanced: 1;
1: + u64 mstamp;
1: + u32 rtt_us;
1: + u32 end_seq;
1: + u32 last_delivered;
1: + u8 reo_wnd_steps;
1: + u8 reo_wnd_persist : 5;
1: + u8 dsack_seen : 1;
1: + u8 advanced : 1;
1: };
1:
1: struct tcp_sock_af_ops;
1: @@ -96338,571 +97559,579 @@ struct tcp_md5sig_info;
1: struct tcp_fastopen_request;
1:
1: struct tcp_sock {
1: - struct inet_connection_sock inet_conn;
1: - u16 tcp_header_len;
1: - u16 gso_segs;
1: - __be32 pred_flags;
1: - u64 bytes_received;
1: - u32 segs_in;
1: - u32 data_segs_in;
1: - u32 rcv_nxt;
1: - u32 copied_seq;
1: - u32 rcv_wup;
1: - u32 snd_nxt;
1: - u32 segs_out;
1: - u32 data_segs_out;
1: - u64 bytes_sent;
1: - u64 bytes_acked;
1: - u32 dsack_dups;
1: - u32 snd_una;
1: - u32 snd_sml;
1: - u32 rcv_tstamp;
1: - u32 lsndtime;
1: - u32 last_oow_ack_time;
1: - u32 compressed_ack_rcv_nxt;
1: - u32 tsoffset;
1: - struct list_head tsq_node;
1: - struct list_head tsorted_sent_queue;
1: - u32 snd_wl1;
1: - u32 snd_wnd;
1: - u32 max_window;
1: - u32 mss_cache;
1: - u32 window_clamp;
1: - u32 rcv_ssthresh;
1: - struct tcp_rack rack;
1: - u16 advmss;
1: - u8 compressed_ack;
1: - u8 dup_ack_counter: 2;
1: - u8 tlp_retrans: 1;
1: - u8 unused: 5;
1: - u32 chrono_start;
1: - u32 chrono_stat[3];
1: - u8 chrono_type: 2;
1: - u8 rate_app_limited: 1;
1: - u8 fastopen_connect: 1;
1: - u8 fastopen_no_cookie: 1;
1: - u8 is_sack_reneg: 1;
1: - u8 fastopen_client_fail: 2;
1: - u8 nonagle: 4;
1: - u8 thin_lto: 1;
1: - u8 recvmsg_inq: 1;
1: - u8 repair: 1;
1: - u8 frto: 1;
1: - u8 repair_queue;
1: - u8 save_syn: 2;
1: - u8 syn_data: 1;
1: - u8 syn_fastopen: 1;
1: - u8 syn_fastopen_exp: 1;
1: - u8 syn_fastopen_ch: 1;
1: - u8 syn_data_acked: 1;
1: - u8 is_cwnd_limited: 1;
1: - u32 tlp_high_seq;
1: - u32 tcp_tx_delay;
1: - u64 tcp_wstamp_ns;
1: - u64 tcp_clock_cache;
1: - u64 tcp_mstamp;
1: - u32 srtt_us;
1: - u32 mdev_us;
1: - u32 mdev_max_us;
1: - u32 rttvar_us;
1: - u32 rtt_seq;
1: - struct minmax rtt_min;
1: - u32 packets_out;
1: - u32 retrans_out;
1: - u32 max_packets_out;
1: - u32 max_packets_seq;
1: - u16 urg_data;
1: - u8 ecn_flags;
1: - u8 keepalive_probes;
1: - u32 reordering;
1: - u32 reord_seen;
1: - u32 snd_up;
1: - struct tcp_options_received rx_opt;
1: - u32 snd_ssthresh;
1: - u32 snd_cwnd;
1: - u32 snd_cwnd_cnt;
1: - u32 snd_cwnd_clamp;
1: - u32 snd_cwnd_used;
1: - u32 snd_cwnd_stamp;
1: - u32 prior_cwnd;
1: - u32 prr_delivered;
1: - u32 prr_out;
1: - u32 delivered;
1: - u32 delivered_ce;
1: - u32 lost;
1: - u32 app_limited;
1: - u64 first_tx_mstamp;
1: - u64 delivered_mstamp;
1: - u32 rate_delivered;
1: - u32 rate_interval_us;
1: - u32 rcv_wnd;
1: - u32 write_seq;
1: - u32 notsent_lowat;
1: - u32 pushed_seq;
1: - u32 lost_out;
1: - u32 sacked_out;
1: - struct hrtimer pacing_timer;
1: - struct hrtimer compressed_ack_timer;
1: - struct sk_buff *lost_skb_hint;
1: - struct sk_buff *retransmit_skb_hint;
1: - struct rb_root out_of_order_queue;
1: - struct sk_buff *ooo_last_skb;
1: - struct tcp_sack_block duplicate_sack[1];
1: - struct tcp_sack_block selective_acks[4];
1: - struct tcp_sack_block recv_sack_cache[4];
1: - struct sk_buff *highest_sack;
1: - int lost_cnt_hint;
1: - u32 prior_ssthresh;
1: - u32 high_seq;
1: - u32 retrans_stamp;
1: - u32 undo_marker;
1: - int undo_retrans;
1: - u64 bytes_retrans;
1: - u32 total_retrans;
1: - u32 urg_seq;
1: - unsigned int keepalive_time;
1: - unsigned int keepalive_intvl;
1: - int linger2;
1: - u8 bpf_sock_ops_cb_flags;
1: - u16 timeout_rehash;
1: - u32 rcv_ooopack;
1: - u32 rcv_rtt_last_tsecr;
1: - struct {
1: - u32 rtt_us;
1: - u32 seq;
1: - u64 time;
1: - } rcv_rtt_est;
1: - struct {
1: - u32 space;
1: - u32 seq;
1: - u64 time;
1: - } rcvq_space;
1: - struct {
1: - u32 probe_seq_start;
1: - u32 probe_seq_end;
1: - } mtu_probe;
1: - u32 mtu_info;
1: - bool is_mptcp;
1: - bool syn_smc;
1: - const struct tcp_sock_af_ops *af_specific;
1: - struct tcp_md5sig_info *md5sig_info;
1: - struct tcp_fastopen_request *fastopen_req;
1: - struct request_sock *fastopen_rsk;
1: - struct saved_syn *saved_syn;
1: + struct inet_connection_sock inet_conn;
1: + u16 tcp_header_len;
1: + u16 gso_segs;
1: + __be32 pred_flags;
1: + u64 bytes_received;
1: + u32 segs_in;
1: + u32 data_segs_in;
1: + u32 rcv_nxt;
1: + u32 copied_seq;
1: + u32 rcv_wup;
1: + u32 snd_nxt;
1: + u32 segs_out;
1: + u32 data_segs_out;
1: + u64 bytes_sent;
1: + u64 bytes_acked;
1: + u32 dsack_dups;
1: + u32 snd_una;
1: + u32 snd_sml;
1: + u32 rcv_tstamp;
1: + u32 lsndtime;
1: + u32 last_oow_ack_time;
1: + u32 compressed_ack_rcv_nxt;
1: + u32 tsoffset;
1: + struct list_head tsq_node;
1: + struct list_head tsorted_sent_queue;
1: + u32 snd_wl1;
1: + u32 snd_wnd;
1: + u32 max_window;
1: + u32 mss_cache;
1: + u32 window_clamp;
1: + u32 rcv_ssthresh;
1: + struct tcp_rack rack;
1: + u16 advmss;
1: + u8 compressed_ack;
1: + u8 dup_ack_counter : 2;
1: + u8 tlp_retrans : 1;
1: + u8 unused : 5;
1: + u32 chrono_start;
1: + u32 chrono_stat[3];
1: + u8 chrono_type : 2;
1: + u8 rate_app_limited : 1;
1: + u8 fastopen_connect : 1;
1: + u8 fastopen_no_cookie : 1;
1: + u8 is_sack_reneg : 1;
1: + u8 fastopen_client_fail : 2;
1: + u8 nonagle : 4;
1: + u8 thin_lto : 1;
1: + u8 recvmsg_inq : 1;
1: + u8 repair : 1;
1: + u8 frto : 1;
1: + u8 repair_queue;
1: + u8 save_syn : 2;
1: + u8 syn_data : 1;
1: + u8 syn_fastopen : 1;
1: + u8 syn_fastopen_exp : 1;
1: + u8 syn_fastopen_ch : 1;
1: + u8 syn_data_acked : 1;
1: + u8 is_cwnd_limited : 1;
1: + u32 tlp_high_seq;
1: + u32 tcp_tx_delay;
1: + u64 tcp_wstamp_ns;
1: + u64 tcp_clock_cache;
1: + u64 tcp_mstamp;
1: + u32 srtt_us;
1: + u32 mdev_us;
1: + u32 mdev_max_us;
1: + u32 rttvar_us;
1: + u32 rtt_seq;
1: + struct minmax rtt_min;
1: + u32 packets_out;
1: + u32 retrans_out;
1: + u32 max_packets_out;
1: + u32 max_packets_seq;
1: + u16 urg_data;
1: + u8 ecn_flags;
1: + u8 keepalive_probes;
1: + u32 reordering;
1: + u32 reord_seen;
1: + u32 snd_up;
1: + struct tcp_options_received rx_opt;
1: + u32 snd_ssthresh;
1: + u32 snd_cwnd;
1: + u32 snd_cwnd_cnt;
1: + u32 snd_cwnd_clamp;
1: + u32 snd_cwnd_used;
1: + u32 snd_cwnd_stamp;
1: + u32 prior_cwnd;
1: + u32 prr_delivered;
1: + u32 prr_out;
1: + u32 delivered;
1: + u32 delivered_ce;
1: + u32 lost;
1: + u32 app_limited;
1: + u64 first_tx_mstamp;
1: + u64 delivered_mstamp;
1: + u32 rate_delivered;
1: + u32 rate_interval_us;
1: + u32 rcv_wnd;
1: + u32 write_seq;
1: + u32 notsent_lowat;
1: + u32 pushed_seq;
1: + u32 lost_out;
1: + u32 sacked_out;
1: + struct hrtimer pacing_timer;
1: + struct hrtimer compressed_ack_timer;
1: + struct sk_buff *lost_skb_hint;
1: + struct sk_buff *retransmit_skb_hint;
1: + struct rb_root out_of_order_queue;
1: + struct sk_buff *ooo_last_skb;
1: + struct tcp_sack_block duplicate_sack[1];
1: + struct tcp_sack_block selective_acks[4];
1: + struct tcp_sack_block recv_sack_cache[4];
1: + struct sk_buff *highest_sack;
1: + int lost_cnt_hint;
1: + u32 prior_ssthresh;
1: + u32 high_seq;
1: + u32 retrans_stamp;
1: + u32 undo_marker;
1: + int undo_retrans;
1: + u64 bytes_retrans;
1: + u32 total_retrans;
1: + u32 urg_seq;
1: + unsigned int keepalive_time;
1: + unsigned int keepalive_intvl;
1: + int linger2;
1: + u8 bpf_sock_ops_cb_flags;
1: + u16 timeout_rehash;
1: + u32 rcv_ooopack;
1: + u32 rcv_rtt_last_tsecr;
1: + struct {
1: + u32 rtt_us;
1: + u32 seq;
1: + u64 time;
1: + } rcv_rtt_est;
1: + struct {
1: + u32 space;
1: + u32 seq;
1: + u64 time;
1: + } rcvq_space;
1: + struct {
1: + u32 probe_seq_start;
1: + u32 probe_seq_end;
1: + } mtu_probe;
1: + u32 mtu_info;
1: + bool is_mptcp;
1: + bool syn_smc;
1: + const struct tcp_sock_af_ops *af_specific;
1: + struct tcp_md5sig_info *md5sig_info;
1: + struct tcp_fastopen_request *fastopen_req;
1: + struct request_sock *fastopen_rsk;
1: + struct saved_syn *saved_syn;
1: };
1:
1: struct tcp_md5sig_key;
1:
1: struct tcp_sock_af_ops {
1: - struct tcp_md5sig_key * (*md5_lookup)(const struct sock *, const struct sock *);
1: - int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *, const struct sock *, const struct sk_buff *);
1: - int (*md5_parse)(struct sock *, int, sockptr_t, int);
1: + struct tcp_md5sig_key *(*md5_lookup)(const struct sock *,
1: + const struct sock *);
1: + int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *,
1: + const struct sock *, const struct sk_buff *);
1: + int (*md5_parse)(struct sock *, int, sockptr_t, int);
1: };
1:
1: struct tcp_md5sig_info {
1: - struct hlist_head head;
1: - struct callback_head rcu;
1: + struct hlist_head head;
1: + struct callback_head rcu;
1: };
1:
1: struct tcp_fastopen_request {
1: - struct tcp_fastopen_cookie cookie;
1: - struct msghdr *data;
1: - size_t size;
1: - int copied;
1: - struct ubuf_info *uarg;
1: + struct tcp_fastopen_cookie cookie;
1: + struct msghdr *data;
1: + size_t size;
1: + int copied;
1: + struct ubuf_info *uarg;
1: };
1:
1: union tcp_md5_addr {
1: - struct in_addr a4;
1: - struct in6_addr a6;
1: + struct in_addr a4;
1: + struct in6_addr a6;
1: };
1:
1: struct tcp_md5sig_key {
1: - struct hlist_node node;
1: - u8 keylen;
1: - u8 family;
1: - u8 prefixlen;
1: - union tcp_md5_addr addr;
1: - int l3index;
1: - u8 key[80];
1: - struct callback_head rcu;
1: + struct hlist_node node;
1: + u8 keylen;
1: + u8 family;
1: + u8 prefixlen;
1: + union tcp_md5_addr addr;
1: + int l3index;
1: + u8 key[80];
1: + struct callback_head rcu;
1: };
1:
1: struct net_protocol {
1: - int (*early_demux)(struct sk_buff *);
1: - int (*early_demux_handler)(struct sk_buff *);
1: - int (*handler)(struct sk_buff *);
1: - int (*err_handler)(struct sk_buff *, u32);
1: - unsigned int no_policy: 1;
1: - unsigned int netns_ok: 1;
1: - unsigned int icmp_strict_tag_validation: 1;
1: + int (*early_demux)(struct sk_buff *);
1: + int (*early_demux_handler)(struct sk_buff *);
1: + int (*handler)(struct sk_buff *);
1: + int (*err_handler)(struct sk_buff *, u32);
1: + unsigned int no_policy : 1;
1: + unsigned int netns_ok : 1;
1: + unsigned int icmp_strict_tag_validation : 1;
1: };
1:
1: struct cgroup_cls_state {
1: - struct cgroup_subsys_state css;
1: - u32 classid;
1: + struct cgroup_subsys_state css;
1: + u32 classid;
1: };
1:
1: enum {
1: - SK_MEMINFO_RMEM_ALLOC = 0,
1: - SK_MEMINFO_RCVBUF = 1,
1: - SK_MEMINFO_WMEM_ALLOC = 2,
1: - SK_MEMINFO_SNDBUF = 3,
1: - SK_MEMINFO_FWD_ALLOC = 4,
1: - SK_MEMINFO_WMEM_QUEUED = 5,
1: - SK_MEMINFO_OPTMEM = 6,
1: - SK_MEMINFO_BACKLOG = 7,
1: - SK_MEMINFO_DROPS = 8,
1: - SK_MEMINFO_VARS = 9,
1: + SK_MEMINFO_RMEM_ALLOC = 0,
1: + SK_MEMINFO_RCVBUF = 1,
1: + SK_MEMINFO_WMEM_ALLOC = 2,
1: + SK_MEMINFO_SNDBUF = 3,
1: + SK_MEMINFO_FWD_ALLOC = 4,
1: + SK_MEMINFO_WMEM_QUEUED = 5,
1: + SK_MEMINFO_OPTMEM = 6,
1: + SK_MEMINFO_BACKLOG = 7,
1: + SK_MEMINFO_DROPS = 8,
1: + SK_MEMINFO_VARS = 9,
1: };
1:
1: enum sknetlink_groups {
1: - SKNLGRP_NONE = 0,
1: - SKNLGRP_INET_TCP_DESTROY = 1,
1: - SKNLGRP_INET_UDP_DESTROY = 2,
1: - SKNLGRP_INET6_TCP_DESTROY = 3,
1: - SKNLGRP_INET6_UDP_DESTROY = 4,
1: - __SKNLGRP_MAX = 5,
1: + SKNLGRP_NONE = 0,
1: + SKNLGRP_INET_TCP_DESTROY = 1,
1: + SKNLGRP_INET_UDP_DESTROY = 2,
1: + SKNLGRP_INET6_TCP_DESTROY = 3,
1: + SKNLGRP_INET6_UDP_DESTROY = 4,
1: + __SKNLGRP_MAX = 5,
1: };
1:
1: struct inet_request_sock {
1: - struct request_sock req;
1: - u16 snd_wscale: 4;
1: - u16 rcv_wscale: 4;
1: - u16 tstamp_ok: 1;
1: - u16 sack_ok: 1;
1: - u16 wscale_ok: 1;
1: - u16 ecn_ok: 1;
1: - u16 acked: 1;
1: - u16 no_srccheck: 1;
1: - u16 smc_ok: 1;
1: - u32 ir_mark;
1: - union {
1: - struct ip_options_rcu *ireq_opt;
1: - struct {
1: - struct ipv6_txoptions *ipv6_opt;
1: - struct sk_buff *pktopts;
1: - };
1: - };
1: + struct request_sock req;
1: + u16 snd_wscale : 4;
1: + u16 rcv_wscale : 4;
1: + u16 tstamp_ok : 1;
1: + u16 sack_ok : 1;
1: + u16 wscale_ok : 1;
1: + u16 ecn_ok : 1;
1: + u16 acked : 1;
1: + u16 no_srccheck : 1;
1: + u16 smc_ok : 1;
1: + u32 ir_mark;
1: + union {
1: + struct ip_options_rcu *ireq_opt;
1: + struct {
1: + struct ipv6_txoptions *ipv6_opt;
1: + struct sk_buff *pktopts;
1: + };
1: + };
1: };
1:
1: struct tcp_request_sock_ops;
1:
1: struct tcp_request_sock {
1: - struct inet_request_sock req;
1: - const struct tcp_request_sock_ops *af_specific;
1: - u64 snt_synack;
1: - bool tfo_listener;
1: - bool is_mptcp;
1: - bool drop_req;
1: - u32 txhash;
1: - u32 rcv_isn;
1: - u32 snt_isn;
1: - u32 ts_off;
1: - u32 last_oow_ack_time;
1: - u32 rcv_nxt;
1: - u8 syn_tos;
1: + struct inet_request_sock req;
1: + const struct tcp_request_sock_ops *af_specific;
1: + u64 snt_synack;
1: + bool tfo_listener;
1: + bool is_mptcp;
1: + bool drop_req;
1: + u32 txhash;
1: + u32 rcv_isn;
1: + u32 snt_isn;
1: + u32 ts_off;
1: + u32 last_oow_ack_time;
1: + u32 rcv_nxt;
1: + u8 syn_tos;
1: };
1:
1: enum tcp_synack_type {
1: - TCP_SYNACK_NORMAL = 0,
1: - TCP_SYNACK_FASTOPEN = 1,
1: - TCP_SYNACK_COOKIE = 2,
1: + TCP_SYNACK_NORMAL = 0,
1: + TCP_SYNACK_FASTOPEN = 1,
1: + TCP_SYNACK_COOKIE = 2,
1: };
1:
1: struct tcp_request_sock_ops {
1: - u16 mss_clamp;
1: - struct tcp_md5sig_key * (*req_md5_lookup)(const struct sock *, const struct sock *);
1: - int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *, const struct sock *, const struct sk_buff *);
1: - void (*init_req)(struct request_sock *, const struct sock *, struct sk_buff *);
1: - __u32 (*cookie_init_seq)(const struct sk_buff *, __u16 *);
1: - struct dst_entry * (*route_req)(const struct sock *, struct flowi *, const struct request_sock *);
1: - u32 (*init_seq)(const struct sk_buff *);
1: - u32 (*init_ts_off)(const struct net *, const struct sk_buff *);
1: - int (*send_synack)(const struct sock *, struct dst_entry *, struct flowi *, struct request_sock *, struct tcp_fastopen_cookie *, enum tcp_synack_type, struct sk_buff *);
1: + u16 mss_clamp;
1: + struct tcp_md5sig_key *(*req_md5_lookup)(const struct sock *,
1: + const struct sock *);
1: + int (*calc_md5_hash)(char *, const struct tcp_md5sig_key *,
1: + const struct sock *, const struct sk_buff *);
1: + void (*init_req)(struct request_sock *, const struct sock *,
1: + struct sk_buff *);
1: + __u32 (*cookie_init_seq)(const struct sk_buff *, __u16 *);
1: + struct dst_entry *(*route_req)(const struct sock *, struct flowi *,
1: + const struct request_sock *);
1: + u32 (*init_seq)(const struct sk_buff *);
1: + u32 (*init_ts_off)(const struct net *, const struct sk_buff *);
1: + int (*send_synack)(const struct sock *, struct dst_entry *, struct flowi *,
1: + struct request_sock *, struct tcp_fastopen_cookie *,
1: + enum tcp_synack_type, struct sk_buff *);
1: };
1:
1: struct nf_conntrack {
1: - atomic_t use;
1: + atomic_t use;
1: };
1:
1: enum {
1: - SKB_FCLONE_UNAVAILABLE = 0,
1: - SKB_FCLONE_ORIG = 1,
1: - SKB_FCLONE_CLONE = 2,
1: + SKB_FCLONE_UNAVAILABLE = 0,
1: + SKB_FCLONE_ORIG = 1,
1: + SKB_FCLONE_CLONE = 2,
1: };
1:
1: struct sk_buff_fclones {
1: - struct sk_buff skb1;
1: - struct sk_buff skb2;
1: - refcount_t fclone_ref;
1: + struct sk_buff skb1;
1: + struct sk_buff skb2;
1: + refcount_t fclone_ref;
1: };
1:
1: struct skb_seq_state {
1: - __u32 lower_offset;
1: - __u32 upper_offset;
1: - __u32 frag_idx;
1: - __u32 stepped_offset;
1: - struct sk_buff *root_skb;
1: - struct sk_buff *cur_skb;
1: - __u8 *frag_data;
1: + __u32 lower_offset;
1: + __u32 upper_offset;
1: + __u32 frag_idx;
1: + __u32 stepped_offset;
1: + struct sk_buff *root_skb;
1: + struct sk_buff *cur_skb;
1: + __u8 *frag_data;
1: };
1:
1: struct skb_checksum_ops {
1: - __wsum (*update)(const void *, int, __wsum);
1: - __wsum (*combine)(__wsum, __wsum, int, int);
1: + __wsum (*update)(const void *, int, __wsum);
1: + __wsum (*combine)(__wsum, __wsum, int, int);
1: };
1:
1: struct skb_gso_cb {
1: - union {
1: - int mac_offset;
1: - int data_offset;
1: - };
1: - int encap_level;
1: - __wsum csum;
1: - __u16 csum_start;
1: + union {
1: + int mac_offset;
1: + int data_offset;
1: + };
1: + int encap_level;
1: + __wsum csum;
1: + __u16 csum_start;
1: };
1:
1: struct napi_gro_cb {
1: - void *frag0;
1: - unsigned int frag0_len;
1: - int data_offset;
1: - u16 flush;
1: - u16 flush_id;
1: - u16 count;
1: - u16 gro_remcsum_start;
1: - long unsigned int age;
1: - u16 proto;
1: - u8 same_flow: 1;
1: - u8 encap_mark: 1;
1: - u8 csum_valid: 1;
1: - u8 csum_cnt: 3;
1: - u8 free: 2;
1: - u8 is_ipv6: 1;
1: - u8 is_fou: 1;
1: - u8 is_atomic: 1;
1: - u8 recursion_counter: 4;
1: - u8 is_flist: 1;
1: - __wsum csum;
1: - struct sk_buff *last;
1: + void *frag0;
1: + unsigned int frag0_len;
1: + int data_offset;
1: + u16 flush;
1: + u16 flush_id;
1: + u16 count;
1: + u16 gro_remcsum_start;
1: + long unsigned int age;
1: + u16 proto;
1: + u8 same_flow : 1;
1: + u8 encap_mark : 1;
1: + u8 csum_valid : 1;
1: + u8 csum_cnt : 3;
1: + u8 free : 2;
1: + u8 is_ipv6 : 1;
1: + u8 is_fou : 1;
1: + u8 is_atomic : 1;
1: + u8 recursion_counter : 4;
1: + u8 is_flist : 1;
1: + __wsum csum;
1: + struct sk_buff *last;
1: };
1:
1: struct vlan_hdr {
1: - __be16 h_vlan_TCI;
1: - __be16 h_vlan_encapsulated_proto;
1: + __be16 h_vlan_TCI;
1: + __be16 h_vlan_encapsulated_proto;
1: };
1:
1: struct vlan_ethhdr {
1: - unsigned char h_dest[6];
1: - unsigned char h_source[6];
1: - __be16 h_vlan_proto;
1: - __be16 h_vlan_TCI;
1: - __be16 h_vlan_encapsulated_proto;
1: + unsigned char h_dest[6];
1: + unsigned char h_source[6];
1: + __be16 h_vlan_proto;
1: + __be16 h_vlan_TCI;
1: + __be16 h_vlan_encapsulated_proto;
1: };
1:
1: struct qdisc_walker {
1: - int stop;
1: - int skip;
1: - int count;
1: - int (*fn)(struct Qdisc *, long unsigned int, struct qdisc_walker *);
1: + int stop;
1: + int skip;
1: + int count;
1: + int (*fn)(struct Qdisc *, long unsigned int, struct qdisc_walker *);
1: };
1:
1: struct ip_auth_hdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: - __be16 reserved;
1: - __be32 spi;
1: - __be32 seq_no;
1: - __u8 auth_data[0];
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __be16 reserved;
1: + __be32 spi;
1: + __be32 seq_no;
1: + __u8 auth_data[0];
1: };
1:
1: struct frag_hdr {
1: - __u8 nexthdr;
1: - __u8 reserved;
1: - __be16 frag_off;
1: - __be32 identification;
1: + __u8 nexthdr;
1: + __u8 reserved;
1: + __be16 frag_off;
1: + __be32 identification;
1: };
1:
1: enum {
1: - SCM_TSTAMP_SND = 0,
1: - SCM_TSTAMP_SCHED = 1,
1: - SCM_TSTAMP_ACK = 2,
1: + SCM_TSTAMP_SND = 0,
1: + SCM_TSTAMP_SCHED = 1,
1: + SCM_TSTAMP_ACK = 2,
1: };
1:
1: struct mpls_shim_hdr {
1: - __be32 label_stack_entry;
1: + __be32 label_stack_entry;
1: };
1:
1: struct napi_alloc_cache {
1: - struct page_frag_cache page;
1: - unsigned int skb_count;
1: - void *skb_cache[64];
1: + struct page_frag_cache page;
1: + unsigned int skb_count;
1: + void *skb_cache[64];
1: };
1:
1: struct ahash_request___2;
1:
1: struct scm_cookie {
1: - struct pid *pid;
1: - struct scm_fp_list *fp;
1: - struct scm_creds creds;
1: - u32 secid;
1: + struct pid *pid;
1: + struct scm_fp_list *fp;
1: + struct scm_creds creds;
1: + u32 secid;
1: };
1:
1: struct scm_timestamping {
1: - struct __kernel_old_timespec ts[3];
1: + struct __kernel_old_timespec ts[3];
1: };
1:
1: struct scm_timestamping64 {
1: - struct __kernel_timespec ts[3];
1: + struct __kernel_timespec ts[3];
1: };
1:
1: enum {
1: - TCA_STATS_UNSPEC = 0,
1: - TCA_STATS_BASIC = 1,
1: - TCA_STATS_RATE_EST = 2,
1: - TCA_STATS_QUEUE = 3,
1: - TCA_STATS_APP = 4,
1: - TCA_STATS_RATE_EST64 = 5,
1: - TCA_STATS_PAD = 6,
1: - TCA_STATS_BASIC_HW = 7,
1: - TCA_STATS_PKT64 = 8,
1: - __TCA_STATS_MAX = 9,
1: + TCA_STATS_UNSPEC = 0,
1: + TCA_STATS_BASIC = 1,
1: + TCA_STATS_RATE_EST = 2,
1: + TCA_STATS_QUEUE = 3,
1: + TCA_STATS_APP = 4,
1: + TCA_STATS_RATE_EST64 = 5,
1: + TCA_STATS_PAD = 6,
1: + TCA_STATS_BASIC_HW = 7,
1: + TCA_STATS_PKT64 = 8,
1: + __TCA_STATS_MAX = 9,
1: };
1:
1: struct gnet_stats_basic {
1: - __u64 bytes;
1: - __u32 packets;
1: + __u64 bytes;
1: + __u32 packets;
1: };
1:
1: struct gnet_stats_rate_est {
1: - __u32 bps;
1: - __u32 pps;
1: + __u32 bps;
1: + __u32 pps;
1: };
1:
1: struct gnet_stats_rate_est64 {
1: - __u64 bps;
1: - __u64 pps;
1: + __u64 bps;
1: + __u64 pps;
1: };
1:
1: struct gnet_estimator {
1: - signed char interval;
1: - unsigned char ewma_log;
1: + signed char interval;
1: + unsigned char ewma_log;
1: };
1:
1: struct net_rate_estimator {
1: - struct gnet_stats_basic_packed *bstats;
1: - spinlock_t *stats_lock;
1: - seqcount_t *running;
1: - struct gnet_stats_basic_cpu *cpu_bstats;
1: - u8 ewma_log;
1: - u8 intvl_log;
1: - seqcount_t seq;
1: - u64 last_packets;
1: - u64 last_bytes;
1: - u64 avpps;
1: - u64 avbps;
1: - long unsigned int next_jiffies;
1: - struct timer_list timer;
1: - struct callback_head rcu;
1: + struct gnet_stats_basic_packed *bstats;
1: + spinlock_t *stats_lock;
1: + seqcount_t *running;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + u8 ewma_log;
1: + u8 intvl_log;
1: + seqcount_t seq;
1: + u64 last_packets;
1: + u64 last_bytes;
1: + u64 avpps;
1: + u64 avbps;
1: + long unsigned int next_jiffies;
1: + struct timer_list timer;
1: + struct callback_head rcu;
1: };
1:
1: struct rtgenmsg {
1: - unsigned char rtgen_family;
1: + unsigned char rtgen_family;
1: };
1:
1: enum rtnetlink_groups {
1: - RTNLGRP_NONE = 0,
1: - RTNLGRP_LINK = 1,
1: - RTNLGRP_NOTIFY = 2,
1: - RTNLGRP_NEIGH = 3,
1: - RTNLGRP_TC = 4,
1: - RTNLGRP_IPV4_IFADDR = 5,
1: - RTNLGRP_IPV4_MROUTE = 6,
1: - RTNLGRP_IPV4_ROUTE = 7,
1: - RTNLGRP_IPV4_RULE = 8,
1: - RTNLGRP_IPV6_IFADDR = 9,
1: - RTNLGRP_IPV6_MROUTE = 10,
1: - RTNLGRP_IPV6_ROUTE = 11,
1: - RTNLGRP_IPV6_IFINFO = 12,
1: - RTNLGRP_DECnet_IFADDR = 13,
1: - RTNLGRP_NOP2 = 14,
1: - RTNLGRP_DECnet_ROUTE = 15,
1: - RTNLGRP_DECnet_RULE = 16,
1: - RTNLGRP_NOP4 = 17,
1: - RTNLGRP_IPV6_PREFIX = 18,
1: - RTNLGRP_IPV6_RULE = 19,
1: - RTNLGRP_ND_USEROPT = 20,
1: - RTNLGRP_PHONET_IFADDR = 21,
1: - RTNLGRP_PHONET_ROUTE = 22,
1: - RTNLGRP_DCB = 23,
1: - RTNLGRP_IPV4_NETCONF = 24,
1: - RTNLGRP_IPV6_NETCONF = 25,
1: - RTNLGRP_MDB = 26,
1: - RTNLGRP_MPLS_ROUTE = 27,
1: - RTNLGRP_NSID = 28,
1: - RTNLGRP_MPLS_NETCONF = 29,
1: - RTNLGRP_IPV4_MROUTE_R = 30,
1: - RTNLGRP_IPV6_MROUTE_R = 31,
1: - RTNLGRP_NEXTHOP = 32,
1: - RTNLGRP_BRVLAN = 33,
1: - __RTNLGRP_MAX = 34,
1: -};
1: -
1: -enum {
1: - NETNSA_NONE = 0,
1: - NETNSA_NSID = 1,
1: - NETNSA_PID = 2,
1: - NETNSA_FD = 3,
1: - NETNSA_TARGET_NSID = 4,
1: - NETNSA_CURRENT_NSID = 5,
1: - __NETNSA_MAX = 6,
1: + RTNLGRP_NONE = 0,
1: + RTNLGRP_LINK = 1,
1: + RTNLGRP_NOTIFY = 2,
1: + RTNLGRP_NEIGH = 3,
1: + RTNLGRP_TC = 4,
1: + RTNLGRP_IPV4_IFADDR = 5,
1: + RTNLGRP_IPV4_MROUTE = 6,
1: + RTNLGRP_IPV4_ROUTE = 7,
1: + RTNLGRP_IPV4_RULE = 8,
1: + RTNLGRP_IPV6_IFADDR = 9,
1: + RTNLGRP_IPV6_MROUTE = 10,
1: + RTNLGRP_IPV6_ROUTE = 11,
1: + RTNLGRP_IPV6_IFINFO = 12,
1: + RTNLGRP_DECnet_IFADDR = 13,
1: + RTNLGRP_NOP2 = 14,
1: + RTNLGRP_DECnet_ROUTE = 15,
1: + RTNLGRP_DECnet_RULE = 16,
1: + RTNLGRP_NOP4 = 17,
1: + RTNLGRP_IPV6_PREFIX = 18,
1: + RTNLGRP_IPV6_RULE = 19,
1: + RTNLGRP_ND_USEROPT = 20,
1: + RTNLGRP_PHONET_IFADDR = 21,
1: + RTNLGRP_PHONET_ROUTE = 22,
1: + RTNLGRP_DCB = 23,
1: + RTNLGRP_IPV4_NETCONF = 24,
1: + RTNLGRP_IPV6_NETCONF = 25,
1: + RTNLGRP_MDB = 26,
1: + RTNLGRP_MPLS_ROUTE = 27,
1: + RTNLGRP_NSID = 28,
1: + RTNLGRP_MPLS_NETCONF = 29,
1: + RTNLGRP_IPV4_MROUTE_R = 30,
1: + RTNLGRP_IPV6_MROUTE_R = 31,
1: + RTNLGRP_NEXTHOP = 32,
1: + RTNLGRP_BRVLAN = 33,
1: + __RTNLGRP_MAX = 34,
1: +};
1: +
1: +enum {
1: + NETNSA_NONE = 0,
1: + NETNSA_NSID = 1,
1: + NETNSA_PID = 2,
1: + NETNSA_FD = 3,
1: + NETNSA_TARGET_NSID = 4,
1: + NETNSA_CURRENT_NSID = 5,
1: + __NETNSA_MAX = 6,
1: };
1:
1: struct pcpu_gen_cookie {
1: - local_t nesting;
1: - u64 last;
1: + local_t nesting;
1: + u64 last;
1: };
1:
1: struct gen_cookie {
1: - struct pcpu_gen_cookie *local;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - atomic64_t forward_last;
1: - atomic64_t reverse_last;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct pcpu_gen_cookie *local;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + atomic64_t forward_last;
1: + atomic64_t reverse_last;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: enum rtnl_link_flags {
1: - RTNL_FLAG_DOIT_UNLOCKED = 1,
1: + RTNL_FLAG_DOIT_UNLOCKED = 1,
1: };
1:
1: struct net_fill_args {
1: - u32 portid;
1: - u32 seq;
1: - int flags;
1: - int cmd;
1: - int nsid;
1: - bool add_ref;
1: - int ref_nsid;
1: + u32 portid;
1: + u32 seq;
1: + int flags;
1: + int cmd;
1: + int nsid;
1: + bool add_ref;
1: + int ref_nsid;
1: };
1:
1: struct rtnl_net_dump_cb {
1: - struct net *tgt_net;
1: - struct net *ref_net;
1: - struct sk_buff *skb;
1: - struct net_fill_args fillargs;
1: - int idx;
1: - int s_idx;
1: + struct net *tgt_net;
1: + struct net *ref_net;
1: + struct sk_buff *skb;
1: + struct net_fill_args fillargs;
1: + int idx;
1: + int s_idx;
1: };
1:
1: typedef u16 u_int16_t;
1: @@ -96912,386 +98141,386 @@ typedef u32 u_int32_t;
1: typedef u64 u_int64_t;
1:
1: struct flow_dissector_key_control {
1: - u16 thoff;
1: - u16 addr_type;
1: - u32 flags;
1: + u16 thoff;
1: + u16 addr_type;
1: + u32 flags;
1: };
1:
1: enum flow_dissect_ret {
1: - FLOW_DISSECT_RET_OUT_GOOD = 0,
1: - FLOW_DISSECT_RET_OUT_BAD = 1,
1: - FLOW_DISSECT_RET_PROTO_AGAIN = 2,
1: - FLOW_DISSECT_RET_IPPROTO_AGAIN = 3,
1: - FLOW_DISSECT_RET_CONTINUE = 4,
1: + FLOW_DISSECT_RET_OUT_GOOD = 0,
1: + FLOW_DISSECT_RET_OUT_BAD = 1,
1: + FLOW_DISSECT_RET_PROTO_AGAIN = 2,
1: + FLOW_DISSECT_RET_IPPROTO_AGAIN = 3,
1: + FLOW_DISSECT_RET_CONTINUE = 4,
1: };
1:
1: struct flow_dissector_key_basic {
1: - __be16 n_proto;
1: - u8 ip_proto;
1: - u8 padding;
1: + __be16 n_proto;
1: + u8 ip_proto;
1: + u8 padding;
1: };
1:
1: struct flow_dissector_key_tags {
1: - u32 flow_label;
1: + u32 flow_label;
1: };
1:
1: struct flow_dissector_key_vlan {
1: - union {
1: - struct {
1: - u16 vlan_id: 12;
1: - u16 vlan_dei: 1;
1: - u16 vlan_priority: 3;
1: - };
1: - __be16 vlan_tci;
1: - };
1: - __be16 vlan_tpid;
1: + union {
1: + struct {
1: + u16 vlan_id : 12;
1: + u16 vlan_dei : 1;
1: + u16 vlan_priority : 3;
1: + };
1: + __be16 vlan_tci;
1: + };
1: + __be16 vlan_tpid;
1: };
1:
1: struct flow_dissector_mpls_lse {
1: - u32 mpls_ttl: 8;
1: - u32 mpls_bos: 1;
1: - u32 mpls_tc: 3;
1: - u32 mpls_label: 20;
1: + u32 mpls_ttl : 8;
1: + u32 mpls_bos : 1;
1: + u32 mpls_tc : 3;
1: + u32 mpls_label : 20;
1: };
1:
1: struct flow_dissector_key_mpls {
1: - struct flow_dissector_mpls_lse ls[7];
1: - u8 used_lses;
1: + struct flow_dissector_mpls_lse ls[7];
1: + u8 used_lses;
1: };
1:
1: struct flow_dissector_key_enc_opts {
1: - u8 data[255];
1: - u8 len;
1: - __be16 dst_opt_type;
1: + u8 data[255];
1: + u8 len;
1: + __be16 dst_opt_type;
1: };
1:
1: struct flow_dissector_key_keyid {
1: - __be32 keyid;
1: + __be32 keyid;
1: };
1:
1: struct flow_dissector_key_ipv4_addrs {
1: - __be32 src;
1: - __be32 dst;
1: + __be32 src;
1: + __be32 dst;
1: };
1:
1: struct flow_dissector_key_ipv6_addrs {
1: - struct in6_addr src;
1: - struct in6_addr dst;
1: + struct in6_addr src;
1: + struct in6_addr dst;
1: };
1:
1: struct flow_dissector_key_tipc {
1: - __be32 key;
1: + __be32 key;
1: };
1:
1: struct flow_dissector_key_addrs {
1: - union {
1: - struct flow_dissector_key_ipv4_addrs v4addrs;
1: - struct flow_dissector_key_ipv6_addrs v6addrs;
1: - struct flow_dissector_key_tipc tipckey;
1: - };
1: + union {
1: + struct flow_dissector_key_ipv4_addrs v4addrs;
1: + struct flow_dissector_key_ipv6_addrs v6addrs;
1: + struct flow_dissector_key_tipc tipckey;
1: + };
1: };
1:
1: struct flow_dissector_key_arp {
1: - __u32 sip;
1: - __u32 tip;
1: - __u8 op;
1: - unsigned char sha[6];
1: - unsigned char tha[6];
1: + __u32 sip;
1: + __u32 tip;
1: + __u8 op;
1: + unsigned char sha[6];
1: + unsigned char tha[6];
1: };
1:
1: struct flow_dissector_key_ports {
1: - union {
1: - __be32 ports;
1: - struct {
1: - __be16 src;
1: - __be16 dst;
1: - };
1: - };
1: + union {
1: + __be32 ports;
1: + struct {
1: + __be16 src;
1: + __be16 dst;
1: + };
1: + };
1: };
1:
1: struct flow_dissector_key_icmp {
1: - struct {
1: - u8 type;
1: - u8 code;
1: - };
1: - u16 id;
1: + struct {
1: + u8 type;
1: + u8 code;
1: + };
1: + u16 id;
1: };
1:
1: struct flow_dissector_key_eth_addrs {
1: - unsigned char dst[6];
1: - unsigned char src[6];
1: + unsigned char dst[6];
1: + unsigned char src[6];
1: };
1:
1: struct flow_dissector_key_tcp {
1: - __be16 flags;
1: + __be16 flags;
1: };
1:
1: struct flow_dissector_key_ip {
1: - __u8 tos;
1: - __u8 ttl;
1: + __u8 tos;
1: + __u8 ttl;
1: };
1:
1: struct flow_dissector_key_meta {
1: - int ingress_ifindex;
1: - u16 ingress_iftype;
1: + int ingress_ifindex;
1: + u16 ingress_iftype;
1: };
1:
1: struct flow_dissector_key_ct {
1: - u16 ct_state;
1: - u16 ct_zone;
1: - u32 ct_mark;
1: - u32 ct_labels[4];
1: + u16 ct_state;
1: + u16 ct_zone;
1: + u32 ct_mark;
1: + u32 ct_labels[4];
1: };
1:
1: struct flow_dissector_key_hash {
1: - u32 hash;
1: + u32 hash;
1: };
1:
1: struct flow_dissector_key {
1: - enum flow_dissector_key_id key_id;
1: - size_t offset;
1: + enum flow_dissector_key_id key_id;
1: + size_t offset;
1: };
1:
1: struct flow_keys_basic {
1: - struct flow_dissector_key_control control;
1: - struct flow_dissector_key_basic basic;
1: + struct flow_dissector_key_control control;
1: + struct flow_dissector_key_basic basic;
1: };
1:
1: struct flow_keys {
1: - struct flow_dissector_key_control control;
1: - struct flow_dissector_key_basic basic;
1: - struct flow_dissector_key_tags tags;
1: - struct flow_dissector_key_vlan vlan;
1: - struct flow_dissector_key_vlan cvlan;
1: - struct flow_dissector_key_keyid keyid;
1: - struct flow_dissector_key_ports ports;
1: - struct flow_dissector_key_icmp icmp;
1: - struct flow_dissector_key_addrs addrs;
1: - int: 32;
1: + struct flow_dissector_key_control control;
1: + struct flow_dissector_key_basic basic;
1: + struct flow_dissector_key_tags tags;
1: + struct flow_dissector_key_vlan vlan;
1: + struct flow_dissector_key_vlan cvlan;
1: + struct flow_dissector_key_keyid keyid;
1: + struct flow_dissector_key_ports ports;
1: + struct flow_dissector_key_icmp icmp;
1: + struct flow_dissector_key_addrs addrs;
1: + int : 32;
1: };
1:
1: struct flow_keys_digest {
1: - u8 data[16];
1: + u8 data[16];
1: };
1:
1: enum ip_conntrack_info {
1: - IP_CT_ESTABLISHED = 0,
1: - IP_CT_RELATED = 1,
1: - IP_CT_NEW = 2,
1: - IP_CT_IS_REPLY = 3,
1: - IP_CT_ESTABLISHED_REPLY = 3,
1: - IP_CT_RELATED_REPLY = 4,
1: - IP_CT_NUMBER = 5,
1: - IP_CT_UNTRACKED = 7,
1: + IP_CT_ESTABLISHED = 0,
1: + IP_CT_RELATED = 1,
1: + IP_CT_NEW = 2,
1: + IP_CT_IS_REPLY = 3,
1: + IP_CT_ESTABLISHED_REPLY = 3,
1: + IP_CT_RELATED_REPLY = 4,
1: + IP_CT_NUMBER = 5,
1: + IP_CT_UNTRACKED = 7,
1: };
1:
1: struct xt_table_info;
1:
1: struct xt_table {
1: - struct list_head list;
1: - unsigned int valid_hooks;
1: - struct xt_table_info *private;
1: - struct module *me;
1: - u_int8_t af;
1: - int priority;
1: - int (*table_init)(struct net *);
1: - const char name[32];
1: + struct list_head list;
1: + unsigned int valid_hooks;
1: + struct xt_table_info *private;
1: + struct module *me;
1: + u_int8_t af;
1: + int priority;
1: + int (*table_init)(struct net *);
1: + const char name[32];
1: };
1:
1: union nf_inet_addr {
1: - __u32 all[4];
1: - __be32 ip;
1: - __be32 ip6[4];
1: - struct in_addr in;
1: - struct in6_addr in6;
1: + __u32 all[4];
1: + __be32 ip;
1: + __be32 ip6[4];
1: + struct in_addr in;
1: + struct in6_addr in6;
1: };
1:
1: struct ip_ct_tcp_state {
1: - u_int32_t td_end;
1: - u_int32_t td_maxend;
1: - u_int32_t td_maxwin;
1: - u_int32_t td_maxack;
1: - u_int8_t td_scale;
1: - u_int8_t flags;
1: + u_int32_t td_end;
1: + u_int32_t td_maxend;
1: + u_int32_t td_maxwin;
1: + u_int32_t td_maxack;
1: + u_int8_t td_scale;
1: + u_int8_t flags;
1: };
1:
1: struct ip_ct_tcp {
1: - struct ip_ct_tcp_state seen[2];
1: - u_int8_t state;
1: - u_int8_t last_dir;
1: - u_int8_t retrans;
1: - u_int8_t last_index;
1: - u_int32_t last_seq;
1: - u_int32_t last_ack;
1: - u_int32_t last_end;
1: - u_int16_t last_win;
1: - u_int8_t last_wscale;
1: - u_int8_t last_flags;
1: + struct ip_ct_tcp_state seen[2];
1: + u_int8_t state;
1: + u_int8_t last_dir;
1: + u_int8_t retrans;
1: + u_int8_t last_index;
1: + u_int32_t last_seq;
1: + u_int32_t last_ack;
1: + u_int32_t last_end;
1: + u_int16_t last_win;
1: + u_int8_t last_wscale;
1: + u_int8_t last_flags;
1: };
1:
1: union nf_conntrack_man_proto {
1: - __be16 all;
1: - struct {
1: - __be16 port;
1: - } tcp;
1: - struct {
1: - __be16 port;
1: - } udp;
1: - struct {
1: - __be16 id;
1: - } icmp;
1: - struct {
1: - __be16 port;
1: - } dccp;
1: - struct {
1: - __be16 port;
1: - } sctp;
1: - struct {
1: - __be16 key;
1: - } gre;
1: + __be16 all;
1: + struct {
1: + __be16 port;
1: + } tcp;
1: + struct {
1: + __be16 port;
1: + } udp;
1: + struct {
1: + __be16 id;
1: + } icmp;
1: + struct {
1: + __be16 port;
1: + } dccp;
1: + struct {
1: + __be16 port;
1: + } sctp;
1: + struct {
1: + __be16 key;
1: + } gre;
1: };
1:
1: struct nf_ct_dccp {
1: - u_int8_t role[2];
1: - u_int8_t state;
1: - u_int8_t last_pkt;
1: - u_int8_t last_dir;
1: - u_int64_t handshake_seq;
1: + u_int8_t role[2];
1: + u_int8_t state;
1: + u_int8_t last_pkt;
1: + u_int8_t last_dir;
1: + u_int64_t handshake_seq;
1: };
1:
1: struct ip_ct_sctp {
1: - enum sctp_conntrack state;
1: - __be32 vtag[2];
1: - u8 last_dir;
1: - u8 flags;
1: + enum sctp_conntrack state;
1: + __be32 vtag[2];
1: + u8 last_dir;
1: + u8 flags;
1: };
1:
1: struct nf_ct_event;
1:
1: struct nf_ct_event_notifier {
1: - int (*fcn)(unsigned int, struct nf_ct_event *);
1: + int (*fcn)(unsigned int, struct nf_ct_event *);
1: };
1:
1: struct nf_exp_event;
1:
1: struct nf_exp_event_notifier {
1: - int (*fcn)(unsigned int, struct nf_exp_event *);
1: + int (*fcn)(unsigned int, struct nf_exp_event *);
1: };
1:
1: enum bpf_ret_code {
1: - BPF_OK = 0,
1: - BPF_DROP = 2,
1: - BPF_REDIRECT = 7,
1: - BPF_LWT_REROUTE = 128,
1: + BPF_OK = 0,
1: + BPF_DROP = 2,
1: + BPF_REDIRECT = 7,
1: + BPF_LWT_REROUTE = 128,
1: };
1:
1: enum {
1: - BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 1,
1: - BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 2,
1: - BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 4,
1: + BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 1,
1: + BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 2,
1: + BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 4,
1: };
1:
1: struct ip_tunnel_parm {
1: - char name[16];
1: - int link;
1: - __be16 i_flags;
1: - __be16 o_flags;
1: - __be32 i_key;
1: - __be32 o_key;
1: - struct iphdr iph;
1: + char name[16];
1: + int link;
1: + __be16 i_flags;
1: + __be16 o_flags;
1: + __be32 i_key;
1: + __be32 o_key;
1: + struct iphdr iph;
1: };
1:
1: struct ip_tunnel_key {
1: - __be64 tun_id;
1: - union {
1: - struct {
1: - __be32 src;
1: - __be32 dst;
1: - } ipv4;
1: - struct {
1: - struct in6_addr src;
1: - struct in6_addr dst;
1: - } ipv6;
1: - } u;
1: - __be16 tun_flags;
1: - u8 tos;
1: - u8 ttl;
1: - __be32 label;
1: - __be16 tp_src;
1: - __be16 tp_dst;
1: + __be64 tun_id;
1: + union {
1: + struct {
1: + __be32 src;
1: + __be32 dst;
1: + } ipv4;
1: + struct {
1: + struct in6_addr src;
1: + struct in6_addr dst;
1: + } ipv6;
1: + } u;
1: + __be16 tun_flags;
1: + u8 tos;
1: + u8 ttl;
1: + __be32 label;
1: + __be16 tp_src;
1: + __be16 tp_dst;
1: };
1:
1: struct dst_cache_pcpu;
1:
1: struct dst_cache {
1: - struct dst_cache_pcpu *cache;
1: - long unsigned int reset_ts;
1: + struct dst_cache_pcpu *cache;
1: + long unsigned int reset_ts;
1: };
1:
1: struct ip_tunnel_info {
1: - struct ip_tunnel_key key;
1: - struct dst_cache dst_cache;
1: - u8 options_len;
1: - u8 mode;
1: + struct ip_tunnel_key key;
1: + struct dst_cache dst_cache;
1: + u8 options_len;
1: + u8 mode;
1: };
1:
1: struct lwtunnel_state {
1: - __u16 type;
1: - __u16 flags;
1: - __u16 headroom;
1: - atomic_t refcnt;
1: - int (*orig_output)(struct net *, struct sock *, struct sk_buff *);
1: - int (*orig_input)(struct sk_buff *);
1: - struct callback_head rcu;
1: - __u8 data[0];
1: + __u16 type;
1: + __u16 flags;
1: + __u16 headroom;
1: + atomic_t refcnt;
1: + int (*orig_output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*orig_input)(struct sk_buff *);
1: + struct callback_head rcu;
1: + __u8 data[0];
1: };
1:
1: union tcp_word_hdr {
1: - struct tcphdr hdr;
1: - __be32 words[5];
1: + struct tcphdr hdr;
1: + __be32 words[5];
1: };
1:
1: struct arphdr {
1: - __be16 ar_hrd;
1: - __be16 ar_pro;
1: - unsigned char ar_hln;
1: - unsigned char ar_pln;
1: - __be16 ar_op;
1: + __be16 ar_hrd;
1: + __be16 ar_pro;
1: + unsigned char ar_hln;
1: + unsigned char ar_pln;
1: + __be16 ar_op;
1: };
1:
1: struct fib_info;
1:
1: struct fib_nh {
1: - struct fib_nh_common nh_common;
1: - struct hlist_node nh_hash;
1: - struct fib_info *nh_parent;
1: - __u32 nh_tclassid;
1: - __be32 nh_saddr;
1: - int nh_saddr_genid;
1: + struct fib_nh_common nh_common;
1: + struct hlist_node nh_hash;
1: + struct fib_info *nh_parent;
1: + __u32 nh_tclassid;
1: + __be32 nh_saddr;
1: + int nh_saddr_genid;
1: };
1:
1: struct fib_info {
1: - struct hlist_node fib_hash;
1: - struct hlist_node fib_lhash;
1: - struct list_head nh_list;
1: - struct net *fib_net;
1: - int fib_treeref;
1: - refcount_t fib_clntref;
1: - unsigned int fib_flags;
1: - unsigned char fib_dead;
1: - unsigned char fib_protocol;
1: - unsigned char fib_scope;
1: - unsigned char fib_type;
1: - __be32 fib_prefsrc;
1: - u32 fib_tb_id;
1: - u32 fib_priority;
1: - struct dst_metrics *fib_metrics;
1: - int fib_nhs;
1: - bool fib_nh_is_v6;
1: - bool nh_updated;
1: - struct nexthop *nh;
1: - struct callback_head rcu;
1: - struct fib_nh fib_nh[0];
1: + struct hlist_node fib_hash;
1: + struct hlist_node fib_lhash;
1: + struct list_head nh_list;
1: + struct net *fib_net;
1: + int fib_treeref;
1: + refcount_t fib_clntref;
1: + unsigned int fib_flags;
1: + unsigned char fib_dead;
1: + unsigned char fib_protocol;
1: + unsigned char fib_scope;
1: + unsigned char fib_type;
1: + __be32 fib_prefsrc;
1: + u32 fib_tb_id;
1: + u32 fib_priority;
1: + struct dst_metrics *fib_metrics;
1: + int fib_nhs;
1: + bool fib_nh_is_v6;
1: + bool nh_updated;
1: + struct nexthop *nh;
1: + struct callback_head rcu;
1: + struct fib_nh fib_nh[0];
1: };
1:
1: struct nh_info;
1: @@ -97299,436 +98528,437 @@ struct nh_info;
1: struct nh_group;
1:
1: struct nexthop {
1: - struct rb_node rb_node;
1: - struct list_head fi_list;
1: - struct list_head f6i_list;
1: - struct list_head fdb_list;
1: - struct list_head grp_list;
1: - struct net *net;
1: - u32 id;
1: - u8 protocol;
1: - u8 nh_flags;
1: - bool is_group;
1: - refcount_t refcnt;
1: - struct callback_head rcu;
1: - union {
1: - struct nh_info *nh_info;
1: - struct nh_group *nh_grp;
1: - };
1: + struct rb_node rb_node;
1: + struct list_head fi_list;
1: + struct list_head f6i_list;
1: + struct list_head fdb_list;
1: + struct list_head grp_list;
1: + struct net *net;
1: + u32 id;
1: + u8 protocol;
1: + u8 nh_flags;
1: + bool is_group;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + union {
1: + struct nh_info *nh_info;
1: + struct nh_group *nh_grp;
1: + };
1: };
1:
1: struct nh_info {
1: - struct hlist_node dev_hash;
1: - struct nexthop *nh_parent;
1: - u8 family;
1: - bool reject_nh;
1: - bool fdb_nh;
1: - union {
1: - struct fib_nh_common fib_nhc;
1: - struct fib_nh fib_nh;
1: - struct fib6_nh fib6_nh;
1: - };
1: + struct hlist_node dev_hash;
1: + struct nexthop *nh_parent;
1: + u8 family;
1: + bool reject_nh;
1: + bool fdb_nh;
1: + union {
1: + struct fib_nh_common fib_nhc;
1: + struct fib_nh fib_nh;
1: + struct fib6_nh fib6_nh;
1: + };
1: };
1:
1: struct nh_grp_entry {
1: - struct nexthop *nh;
1: - u8 weight;
1: - atomic_t upper_bound;
1: - struct list_head nh_list;
1: - struct nexthop *nh_parent;
1: + struct nexthop *nh;
1: + u8 weight;
1: + atomic_t upper_bound;
1: + struct list_head nh_list;
1: + struct nexthop *nh_parent;
1: };
1:
1: struct nh_group {
1: - struct nh_group *spare;
1: - u16 num_nh;
1: - bool mpath;
1: - bool fdb_nh;
1: - bool has_v4;
1: - struct nh_grp_entry nh_entries[0];
1: + struct nh_group *spare;
1: + u16 num_nh;
1: + bool mpath;
1: + bool fdb_nh;
1: + bool has_v4;
1: + struct nh_grp_entry nh_entries[0];
1: };
1:
1: enum metadata_type {
1: - METADATA_IP_TUNNEL = 0,
1: - METADATA_HW_PORT_MUX = 1,
1: + METADATA_IP_TUNNEL = 0,
1: + METADATA_HW_PORT_MUX = 1,
1: };
1:
1: struct hw_port_info {
1: - struct net_device *lower_dev;
1: - u32 port_id;
1: + struct net_device *lower_dev;
1: + u32 port_id;
1: };
1:
1: struct metadata_dst {
1: - struct dst_entry dst;
1: - enum metadata_type type;
1: - union {
1: - struct ip_tunnel_info tun_info;
1: - struct hw_port_info port_info;
1: - } u;
1: + struct dst_entry dst;
1: + enum metadata_type type;
1: + union {
1: + struct ip_tunnel_info tun_info;
1: + struct hw_port_info port_info;
1: + } u;
1: };
1:
1: struct gre_base_hdr {
1: - __be16 flags;
1: - __be16 protocol;
1: + __be16 flags;
1: + __be16 protocol;
1: };
1:
1: struct gre_full_hdr {
1: - struct gre_base_hdr fixed_header;
1: - __be16 csum;
1: - __be16 reserved1;
1: - __be32 key;
1: - __be32 seq;
1: + struct gre_base_hdr fixed_header;
1: + __be16 csum;
1: + __be16 reserved1;
1: + __be32 key;
1: + __be32 seq;
1: };
1:
1: struct pptp_gre_header {
1: - struct gre_base_hdr gre_hd;
1: - __be16 payload_len;
1: - __be16 call_id;
1: - __be32 seq;
1: - __be32 ack;
1: + struct gre_base_hdr gre_hd;
1: + __be16 payload_len;
1: + __be16 call_id;
1: + __be32 seq;
1: + __be32 ack;
1: };
1:
1: struct tipc_basic_hdr {
1: - __be32 w[4];
1: + __be32 w[4];
1: };
1:
1: struct icmphdr {
1: - __u8 type;
1: - __u8 code;
1: - __sum16 checksum;
1: - union {
1: - struct {
1: - __be16 id;
1: - __be16 sequence;
1: - } echo;
1: - __be32 gateway;
1: - struct {
1: - __be16 __unused;
1: - __be16 mtu;
1: - } frag;
1: - __u8 reserved[4];
1: - } un;
1: + __u8 type;
1: + __u8 code;
1: + __sum16 checksum;
1: + union {
1: + struct {
1: + __be16 id;
1: + __be16 sequence;
1: + } echo;
1: + __be32 gateway;
1: + struct {
1: + __be16 __unused;
1: + __be16 mtu;
1: + } frag;
1: + __u8 reserved[4];
1: + } un;
1: };
1:
1: enum l2tp_debug_flags {
1: - L2TP_MSG_DEBUG = 1,
1: - L2TP_MSG_CONTROL = 2,
1: - L2TP_MSG_SEQ = 4,
1: - L2TP_MSG_DATA = 8,
1: + L2TP_MSG_DEBUG = 1,
1: + L2TP_MSG_CONTROL = 2,
1: + L2TP_MSG_SEQ = 4,
1: + L2TP_MSG_DATA = 8,
1: };
1:
1: struct pppoe_tag {
1: - __be16 tag_type;
1: - __be16 tag_len;
1: - char tag_data[0];
1: + __be16 tag_type;
1: + __be16 tag_len;
1: + char tag_data[0];
1: };
1:
1: struct pppoe_hdr {
1: - __u8 type: 4;
1: - __u8 ver: 4;
1: - __u8 code;
1: - __be16 sid;
1: - __be16 length;
1: - struct pppoe_tag tag[0];
1: + __u8 type : 4;
1: + __u8 ver : 4;
1: + __u8 code;
1: + __be16 sid;
1: + __be16 length;
1: + struct pppoe_tag tag[0];
1: };
1:
1: struct mpls_label {
1: - __be32 entry;
1: + __be32 entry;
1: };
1:
1: enum batadv_packettype {
1: - BATADV_IV_OGM = 0,
1: - BATADV_BCAST = 1,
1: - BATADV_CODED = 2,
1: - BATADV_ELP = 3,
1: - BATADV_OGM2 = 4,
1: - BATADV_UNICAST = 64,
1: - BATADV_UNICAST_FRAG = 65,
1: - BATADV_UNICAST_4ADDR = 66,
1: - BATADV_ICMP = 67,
1: - BATADV_UNICAST_TVLV = 68,
1: + BATADV_IV_OGM = 0,
1: + BATADV_BCAST = 1,
1: + BATADV_CODED = 2,
1: + BATADV_ELP = 3,
1: + BATADV_OGM2 = 4,
1: + BATADV_UNICAST = 64,
1: + BATADV_UNICAST_FRAG = 65,
1: + BATADV_UNICAST_4ADDR = 66,
1: + BATADV_ICMP = 67,
1: + BATADV_UNICAST_TVLV = 68,
1: };
1:
1: struct batadv_unicast_packet {
1: - __u8 packet_type;
1: - __u8 version;
1: - __u8 ttl;
1: - __u8 ttvn;
1: - __u8 dest[6];
1: + __u8 packet_type;
1: + __u8 version;
1: + __u8 ttl;
1: + __u8 ttvn;
1: + __u8 dest[6];
1: };
1:
1: struct nf_conntrack_zone {
1: - u16 id;
1: - u8 flags;
1: - u8 dir;
1: + u16 id;
1: + u8 flags;
1: + u8 dir;
1: };
1:
1: struct nf_conntrack_man {
1: - union nf_inet_addr u3;
1: - union nf_conntrack_man_proto u;
1: - u_int16_t l3num;
1: + union nf_inet_addr u3;
1: + union nf_conntrack_man_proto u;
1: + u_int16_t l3num;
1: };
1:
1: struct nf_conntrack_tuple {
1: - struct nf_conntrack_man src;
1: - struct {
1: - union nf_inet_addr u3;
1: - union {
1: - __be16 all;
1: - struct {
1: - __be16 port;
1: - } tcp;
1: - struct {
1: - __be16 port;
1: - } udp;
1: - struct {
1: - u_int8_t type;
1: - u_int8_t code;
1: - } icmp;
1: - struct {
1: - __be16 port;
1: - } dccp;
1: - struct {
1: - __be16 port;
1: - } sctp;
1: - struct {
1: - __be16 key;
1: - } gre;
1: - } u;
1: - u_int8_t protonum;
1: - u_int8_t dir;
1: - } dst;
1: + struct nf_conntrack_man src;
1: + struct {
1: + union nf_inet_addr u3;
1: + union {
1: + __be16 all;
1: + struct {
1: + __be16 port;
1: + } tcp;
1: + struct {
1: + __be16 port;
1: + } udp;
1: + struct {
1: + u_int8_t type;
1: + u_int8_t code;
1: + } icmp;
1: + struct {
1: + __be16 port;
1: + } dccp;
1: + struct {
1: + __be16 port;
1: + } sctp;
1: + struct {
1: + __be16 key;
1: + } gre;
1: + } u;
1: + u_int8_t protonum;
1: + u_int8_t dir;
1: + } dst;
1: };
1:
1: struct nf_conntrack_tuple_hash {
1: - struct hlist_nulls_node hnnode;
1: - struct nf_conntrack_tuple tuple;
1: + struct hlist_nulls_node hnnode;
1: + struct nf_conntrack_tuple tuple;
1: };
1:
1: struct nf_ct_udp {
1: - long unsigned int stream_ts;
1: + long unsigned int stream_ts;
1: };
1:
1: struct nf_ct_gre {
1: - unsigned int stream_timeout;
1: - unsigned int timeout;
1: + unsigned int stream_timeout;
1: + unsigned int timeout;
1: };
1:
1: union nf_conntrack_proto {
1: - struct nf_ct_dccp dccp;
1: - struct ip_ct_sctp sctp;
1: - struct ip_ct_tcp tcp;
1: - struct nf_ct_udp udp;
1: - struct nf_ct_gre gre;
1: - unsigned int tmpl_padto;
1: + struct nf_ct_dccp dccp;
1: + struct ip_ct_sctp sctp;
1: + struct ip_ct_tcp tcp;
1: + struct nf_ct_udp udp;
1: + struct nf_ct_gre gre;
1: + unsigned int tmpl_padto;
1: };
1:
1: struct nf_ct_ext;
1:
1: struct nf_conn {
1: - struct nf_conntrack ct_general;
1: - spinlock_t lock;
1: - u32 timeout;
1: - struct nf_conntrack_zone zone;
1: - struct nf_conntrack_tuple_hash tuplehash[2];
1: - long unsigned int status;
1: - u16 cpu;
1: - possible_net_t ct_net;
1: - struct hlist_node nat_bysource;
1: - struct { } __nfct_init_offset;
1: - struct nf_conn *master;
1: - u_int32_t mark;
1: - u_int32_t secmark;
1: - struct nf_ct_ext *ext;
1: - union nf_conntrack_proto proto;
1: + struct nf_conntrack ct_general;
1: + spinlock_t lock;
1: + u32 timeout;
1: + struct nf_conntrack_zone zone;
1: + struct nf_conntrack_tuple_hash tuplehash[2];
1: + long unsigned int status;
1: + u16 cpu;
1: + possible_net_t ct_net;
1: + struct hlist_node nat_bysource;
1: + struct {
1: + } __nfct_init_offset;
1: + struct nf_conn *master;
1: + u_int32_t mark;
1: + u_int32_t secmark;
1: + struct nf_ct_ext *ext;
1: + union nf_conntrack_proto proto;
1: };
1:
1: struct xt_table_info {
1: - unsigned int size;
1: - unsigned int number;
1: - unsigned int initial_entries;
1: - unsigned int hook_entry[5];
1: - unsigned int underflow[5];
1: - unsigned int stacksize;
1: - void ***jumpstack;
1: - unsigned char entries[0];
1: + unsigned int size;
1: + unsigned int number;
1: + unsigned int initial_entries;
1: + unsigned int hook_entry[5];
1: + unsigned int underflow[5];
1: + unsigned int stacksize;
1: + void ***jumpstack;
1: + unsigned char entries[0];
1: };
1:
1: struct nf_conntrack_tuple_mask {
1: - struct {
1: - union nf_inet_addr u3;
1: - union nf_conntrack_man_proto u;
1: - } src;
1: + struct {
1: + union nf_inet_addr u3;
1: + union nf_conntrack_man_proto u;
1: + } src;
1: };
1:
1: struct nf_ct_ext {
1: - u8 offset[9];
1: - u8 len;
1: - char data[0];
1: + u8 offset[9];
1: + u8 len;
1: + char data[0];
1: };
1:
1: struct nf_conntrack_helper;
1:
1: struct nf_conntrack_expect {
1: - struct hlist_node lnode;
1: - struct hlist_node hnode;
1: - struct nf_conntrack_tuple tuple;
1: - struct nf_conntrack_tuple_mask mask;
1: - void (*expectfn)(struct nf_conn *, struct nf_conntrack_expect *);
1: - struct nf_conntrack_helper *helper;
1: - struct nf_conn *master;
1: - struct timer_list timeout;
1: - refcount_t use;
1: - unsigned int flags;
1: - unsigned int class;
1: - union nf_inet_addr saved_addr;
1: - union nf_conntrack_man_proto saved_proto;
1: - enum ip_conntrack_dir dir;
1: - struct callback_head rcu;
1: + struct hlist_node lnode;
1: + struct hlist_node hnode;
1: + struct nf_conntrack_tuple tuple;
1: + struct nf_conntrack_tuple_mask mask;
1: + void (*expectfn)(struct nf_conn *, struct nf_conntrack_expect *);
1: + struct nf_conntrack_helper *helper;
1: + struct nf_conn *master;
1: + struct timer_list timeout;
1: + refcount_t use;
1: + unsigned int flags;
1: + unsigned int class;
1: + union nf_inet_addr saved_addr;
1: + union nf_conntrack_man_proto saved_proto;
1: + enum ip_conntrack_dir dir;
1: + struct callback_head rcu;
1: };
1:
1: enum nf_ct_ext_id {
1: - NF_CT_EXT_HELPER = 0,
1: - NF_CT_EXT_NAT = 1,
1: - NF_CT_EXT_SEQADJ = 2,
1: - NF_CT_EXT_ACCT = 3,
1: - NF_CT_EXT_ECACHE = 4,
1: - NF_CT_EXT_TSTAMP = 5,
1: - NF_CT_EXT_TIMEOUT = 6,
1: - NF_CT_EXT_LABELS = 7,
1: - NF_CT_EXT_SYNPROXY = 8,
1: - NF_CT_EXT_NUM = 9,
1: + NF_CT_EXT_HELPER = 0,
1: + NF_CT_EXT_NAT = 1,
1: + NF_CT_EXT_SEQADJ = 2,
1: + NF_CT_EXT_ACCT = 3,
1: + NF_CT_EXT_ECACHE = 4,
1: + NF_CT_EXT_TSTAMP = 5,
1: + NF_CT_EXT_TIMEOUT = 6,
1: + NF_CT_EXT_LABELS = 7,
1: + NF_CT_EXT_SYNPROXY = 8,
1: + NF_CT_EXT_NUM = 9,
1: };
1:
1: struct nf_ct_event {
1: - struct nf_conn *ct;
1: - u32 portid;
1: - int report;
1: + struct nf_conn *ct;
1: + u32 portid;
1: + int report;
1: };
1:
1: struct nf_exp_event {
1: - struct nf_conntrack_expect *exp;
1: - u32 portid;
1: - int report;
1: + struct nf_conntrack_expect *exp;
1: + u32 portid;
1: + int report;
1: };
1:
1: struct nf_conn_labels {
1: - long unsigned int bits[2];
1: + long unsigned int bits[2];
1: };
1:
1: struct _flow_keys_digest_data {
1: - __be16 n_proto;
1: - u8 ip_proto;
1: - u8 padding;
1: - __be32 ports;
1: - __be32 src;
1: - __be32 dst;
1: + __be16 n_proto;
1: + u8 ip_proto;
1: + u8 padding;
1: + __be32 ports;
1: + __be32 src;
1: + __be32 dst;
1: };
1:
1: struct rps_sock_flow_table {
1: - u32 mask;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u32 ents[0];
1: + u32 mask;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u32 ents[0];
1: };
1:
1: enum {
1: - IF_OPER_UNKNOWN = 0,
1: - IF_OPER_NOTPRESENT = 1,
1: - IF_OPER_DOWN = 2,
1: - IF_OPER_LOWERLAYERDOWN = 3,
1: - IF_OPER_TESTING = 4,
1: - IF_OPER_DORMANT = 5,
1: - IF_OPER_UP = 6,
1: + IF_OPER_UNKNOWN = 0,
1: + IF_OPER_NOTPRESENT = 1,
1: + IF_OPER_DOWN = 2,
1: + IF_OPER_LOWERLAYERDOWN = 3,
1: + IF_OPER_TESTING = 4,
1: + IF_OPER_DORMANT = 5,
1: + IF_OPER_UP = 6,
1: };
1:
1: struct ipv4_devconf {
1: - void *sysctl;
1: - int data[32];
1: - long unsigned int state[1];
1: + void *sysctl;
1: + int data[32];
1: + long unsigned int state[1];
1: };
1:
1: enum nf_dev_hooks {
1: - NF_NETDEV_INGRESS = 0,
1: - NF_NETDEV_NUMHOOKS = 1,
1: + NF_NETDEV_INGRESS = 0,
1: + NF_NETDEV_NUMHOOKS = 1,
1: };
1:
1: struct ifbond {
1: - __s32 bond_mode;
1: - __s32 num_slaves;
1: - __s32 miimon;
1: + __s32 bond_mode;
1: + __s32 num_slaves;
1: + __s32 miimon;
1: };
1:
1: typedef struct ifbond ifbond;
1:
1: struct ifslave {
1: - __s32 slave_id;
1: - char slave_name[16];
1: - __s8 link;
1: - __s8 state;
1: - __u32 link_failure_count;
1: + __s32 slave_id;
1: + char slave_name[16];
1: + __s8 link;
1: + __s8 state;
1: + __u32 link_failure_count;
1: };
1:
1: typedef struct ifslave ifslave;
1:
1: struct netdev_boot_setup {
1: - char name[16];
1: - struct ifmap map;
1: + char name[16];
1: + struct ifmap map;
1: };
1:
1: enum {
1: - NAPIF_STATE_SCHED = 1,
1: - NAPIF_STATE_MISSED = 2,
1: - NAPIF_STATE_DISABLE = 4,
1: - NAPIF_STATE_NPSVC = 8,
1: - NAPIF_STATE_LISTED = 16,
1: - NAPIF_STATE_NO_BUSY_POLL = 32,
1: - NAPIF_STATE_IN_BUSY_POLL = 64,
1: + NAPIF_STATE_SCHED = 1,
1: + NAPIF_STATE_MISSED = 2,
1: + NAPIF_STATE_DISABLE = 4,
1: + NAPIF_STATE_NPSVC = 8,
1: + NAPIF_STATE_LISTED = 16,
1: + NAPIF_STATE_NO_BUSY_POLL = 32,
1: + NAPIF_STATE_IN_BUSY_POLL = 64,
1: };
1:
1: enum gro_result {
1: - GRO_MERGED = 0,
1: - GRO_MERGED_FREE = 1,
1: - GRO_HELD = 2,
1: - GRO_NORMAL = 3,
1: - GRO_DROP = 4,
1: - GRO_CONSUMED = 5,
1: + GRO_MERGED = 0,
1: + GRO_MERGED_FREE = 1,
1: + GRO_HELD = 2,
1: + GRO_NORMAL = 3,
1: + GRO_DROP = 4,
1: + GRO_CONSUMED = 5,
1: };
1:
1: typedef enum gro_result gro_result_t;
1:
1: struct bpf_xdp_link {
1: - struct bpf_link link;
1: - struct net_device *dev;
1: - int flags;
1: + struct bpf_link link;
1: + struct net_device *dev;
1: + int flags;
1: };
1:
1: struct netdev_net_notifier {
1: - struct list_head list;
1: - struct notifier_block *nb;
1: + struct list_head list;
1: + struct notifier_block *nb;
1: };
1:
1: struct netpoll;
1:
1: struct netpoll_info {
1: - refcount_t refcnt;
1: - struct semaphore dev_lock;
1: - struct sk_buff_head txq;
1: - struct delayed_work tx_work;
1: - struct netpoll *netpoll;
1: - struct callback_head rcu;
1: + refcount_t refcnt;
1: + struct semaphore dev_lock;
1: + struct sk_buff_head txq;
1: + struct delayed_work tx_work;
1: + struct netpoll *netpoll;
1: + struct callback_head rcu;
1: };
1:
1: struct udp_tunnel_info {
1: - short unsigned int type;
1: - sa_family_t sa_family;
1: - __be16 port;
1: - u8 hw_priv;
1: + short unsigned int type;
1: + sa_family_t sa_family;
1: + __be16 port;
1: + u8 hw_priv;
1: };
1:
1: struct in_ifaddr;
1: @@ -97736,1151 +98966,1154 @@ struct in_ifaddr;
1: struct ip_mc_list;
1:
1: struct in_device {
1: - struct net_device *dev;
1: - refcount_t refcnt;
1: - int dead;
1: - struct in_ifaddr *ifa_list;
1: - struct ip_mc_list *mc_list;
1: - struct ip_mc_list **mc_hash;
1: - int mc_count;
1: - spinlock_t mc_tomb_lock;
1: - struct ip_mc_list *mc_tomb;
1: - long unsigned int mr_v1_seen;
1: - long unsigned int mr_v2_seen;
1: - long unsigned int mr_maxdelay;
1: - long unsigned int mr_qi;
1: - long unsigned int mr_qri;
1: - unsigned char mr_qrv;
1: - unsigned char mr_gq_running;
1: - unsigned char mr_ifc_count;
1: - struct timer_list mr_gq_timer;
1: - struct timer_list mr_ifc_timer;
1: - struct neigh_parms *arp_parms;
1: - struct ipv4_devconf cnf;
1: - struct callback_head callback_head;
1: + struct net_device *dev;
1: + refcount_t refcnt;
1: + int dead;
1: + struct in_ifaddr *ifa_list;
1: + struct ip_mc_list *mc_list;
1: + struct ip_mc_list **mc_hash;
1: + int mc_count;
1: + spinlock_t mc_tomb_lock;
1: + struct ip_mc_list *mc_tomb;
1: + long unsigned int mr_v1_seen;
1: + long unsigned int mr_v2_seen;
1: + long unsigned int mr_maxdelay;
1: + long unsigned int mr_qi;
1: + long unsigned int mr_qri;
1: + unsigned char mr_qrv;
1: + unsigned char mr_gq_running;
1: + unsigned char mr_ifc_count;
1: + struct timer_list mr_gq_timer;
1: + struct timer_list mr_ifc_timer;
1: + struct neigh_parms *arp_parms;
1: + struct ipv4_devconf cnf;
1: + struct callback_head callback_head;
1: };
1:
1: struct offload_callbacks {
1: - struct sk_buff * (*gso_segment)(struct sk_buff *, netdev_features_t);
1: - struct sk_buff * (*gro_receive)(struct list_head *, struct sk_buff *);
1: - int (*gro_complete)(struct sk_buff *, int);
1: + struct sk_buff *(*gso_segment)(struct sk_buff *, netdev_features_t);
1: + struct sk_buff *(*gro_receive)(struct list_head *, struct sk_buff *);
1: + int (*gro_complete)(struct sk_buff *, int);
1: };
1:
1: struct packet_offload {
1: - __be16 type;
1: - u16 priority;
1: - struct offload_callbacks callbacks;
1: - struct list_head list;
1: + __be16 type;
1: + u16 priority;
1: + struct offload_callbacks callbacks;
1: + struct list_head list;
1: };
1:
1: struct netdev_notifier_info_ext {
1: - struct netdev_notifier_info info;
1: - union {
1: - u32 mtu;
1: - } ext;
1: + struct netdev_notifier_info info;
1: + union {
1: + u32 mtu;
1: + } ext;
1: };
1:
1: struct netdev_notifier_change_info {
1: - struct netdev_notifier_info info;
1: - unsigned int flags_changed;
1: + struct netdev_notifier_info info;
1: + unsigned int flags_changed;
1: };
1:
1: struct netdev_notifier_changeupper_info {
1: - struct netdev_notifier_info info;
1: - struct net_device *upper_dev;
1: - bool master;
1: - bool linking;
1: - void *upper_info;
1: + struct netdev_notifier_info info;
1: + struct net_device *upper_dev;
1: + bool master;
1: + bool linking;
1: + void *upper_info;
1: };
1:
1: struct netdev_notifier_changelowerstate_info {
1: - struct netdev_notifier_info info;
1: - void *lower_state_info;
1: + struct netdev_notifier_info info;
1: + void *lower_state_info;
1: };
1:
1: struct netdev_notifier_pre_changeaddr_info {
1: - struct netdev_notifier_info info;
1: - const unsigned char *dev_addr;
1: + struct netdev_notifier_info info;
1: + const unsigned char *dev_addr;
1: };
1:
1: typedef int (*bpf_op_t)(struct net_device *, struct netdev_bpf *);
1:
1: enum {
1: - NESTED_SYNC_IMM_BIT = 0,
1: - NESTED_SYNC_TODO_BIT = 1,
1: + NESTED_SYNC_IMM_BIT = 0,
1: + NESTED_SYNC_TODO_BIT = 1,
1: };
1:
1: struct netdev_nested_priv {
1: - unsigned char flags;
1: - void *data;
1: + unsigned char flags;
1: + void *data;
1: };
1:
1: struct netdev_bonding_info {
1: - ifslave slave;
1: - ifbond master;
1: + ifslave slave;
1: + ifbond master;
1: };
1:
1: struct netdev_notifier_bonding_info {
1: - struct netdev_notifier_info info;
1: - struct netdev_bonding_info bonding_info;
1: + struct netdev_notifier_info info;
1: + struct netdev_bonding_info bonding_info;
1: };
1:
1: union inet_addr {
1: - __u32 all[4];
1: - __be32 ip;
1: - __be32 ip6[4];
1: - struct in_addr in;
1: - struct in6_addr in6;
1: + __u32 all[4];
1: + __be32 ip;
1: + __be32 ip6[4];
1: + struct in_addr in;
1: + struct in6_addr in6;
1: };
1:
1: struct netpoll {
1: - struct net_device *dev;
1: - char dev_name[16];
1: - const char *name;
1: - union inet_addr local_ip;
1: - union inet_addr remote_ip;
1: - bool ipv6;
1: - u16 local_port;
1: - u16 remote_port;
1: - u8 remote_mac[6];
1: + struct net_device *dev;
1: + char dev_name[16];
1: + const char *name;
1: + union inet_addr local_ip;
1: + union inet_addr remote_ip;
1: + bool ipv6;
1: + u16 local_port;
1: + u16 remote_port;
1: + u8 remote_mac[6];
1: };
1:
1: enum qdisc_state_t {
1: - __QDISC_STATE_SCHED = 0,
1: - __QDISC_STATE_DEACTIVATED = 1,
1: + __QDISC_STATE_SCHED = 0,
1: + __QDISC_STATE_DEACTIVATED = 1,
1: };
1:
1: struct tcf_walker {
1: - int stop;
1: - int skip;
1: - int count;
1: - bool nonempty;
1: - long unsigned int cookie;
1: - int (*fn)(struct tcf_proto *, void *, struct tcf_walker *);
1: -};
1: -
1: -enum {
1: - IPV4_DEVCONF_FORWARDING = 1,
1: - IPV4_DEVCONF_MC_FORWARDING = 2,
1: - IPV4_DEVCONF_PROXY_ARP = 3,
1: - IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1: - IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1: - IPV4_DEVCONF_SEND_REDIRECTS = 6,
1: - IPV4_DEVCONF_SHARED_MEDIA = 7,
1: - IPV4_DEVCONF_RP_FILTER = 8,
1: - IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1: - IPV4_DEVCONF_BOOTP_RELAY = 10,
1: - IPV4_DEVCONF_LOG_MARTIANS = 11,
1: - IPV4_DEVCONF_TAG = 12,
1: - IPV4_DEVCONF_ARPFILTER = 13,
1: - IPV4_DEVCONF_MEDIUM_ID = 14,
1: - IPV4_DEVCONF_NOXFRM = 15,
1: - IPV4_DEVCONF_NOPOLICY = 16,
1: - IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1: - IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1: - IPV4_DEVCONF_ARP_IGNORE = 19,
1: - IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1: - IPV4_DEVCONF_ARP_ACCEPT = 21,
1: - IPV4_DEVCONF_ARP_NOTIFY = 22,
1: - IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1: - IPV4_DEVCONF_SRC_VMARK = 24,
1: - IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1: - IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1: - IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1: - IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1: - IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1: - IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1: - IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1: - IPV4_DEVCONF_BC_FORWARDING = 32,
1: - __IPV4_DEVCONF_MAX = 33,
1: + int stop;
1: + int skip;
1: + int count;
1: + bool nonempty;
1: + long unsigned int cookie;
1: + int (*fn)(struct tcf_proto *, void *, struct tcf_walker *);
1: +};
1: +
1: +enum {
1: + IPV4_DEVCONF_FORWARDING = 1,
1: + IPV4_DEVCONF_MC_FORWARDING = 2,
1: + IPV4_DEVCONF_PROXY_ARP = 3,
1: + IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1: + IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1: + IPV4_DEVCONF_SEND_REDIRECTS = 6,
1: + IPV4_DEVCONF_SHARED_MEDIA = 7,
1: + IPV4_DEVCONF_RP_FILTER = 8,
1: + IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1: + IPV4_DEVCONF_BOOTP_RELAY = 10,
1: + IPV4_DEVCONF_LOG_MARTIANS = 11,
1: + IPV4_DEVCONF_TAG = 12,
1: + IPV4_DEVCONF_ARPFILTER = 13,
1: + IPV4_DEVCONF_MEDIUM_ID = 14,
1: + IPV4_DEVCONF_NOXFRM = 15,
1: + IPV4_DEVCONF_NOPOLICY = 16,
1: + IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1: + IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1: + IPV4_DEVCONF_ARP_IGNORE = 19,
1: + IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1: + IPV4_DEVCONF_ARP_ACCEPT = 21,
1: + IPV4_DEVCONF_ARP_NOTIFY = 22,
1: + IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1: + IPV4_DEVCONF_SRC_VMARK = 24,
1: + IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1: + IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1: + IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1: + IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1: + IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1: + IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1: + IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1: + IPV4_DEVCONF_BC_FORWARDING = 32,
1: + __IPV4_DEVCONF_MAX = 33,
1: };
1:
1: struct in_ifaddr {
1: - struct hlist_node hash;
1: - struct in_ifaddr *ifa_next;
1: - struct in_device *ifa_dev;
1: - struct callback_head callback_head;
1: - __be32 ifa_local;
1: - __be32 ifa_address;
1: - __be32 ifa_mask;
1: - __u32 ifa_rt_priority;
1: - __be32 ifa_broadcast;
1: - unsigned char ifa_scope;
1: - unsigned char ifa_prefixlen;
1: - __u32 ifa_flags;
1: - char ifa_label[16];
1: - __u32 ifa_valid_lft;
1: - __u32 ifa_preferred_lft;
1: - long unsigned int ifa_cstamp;
1: - long unsigned int ifa_tstamp;
1: + struct hlist_node hash;
1: + struct in_ifaddr *ifa_next;
1: + struct in_device *ifa_dev;
1: + struct callback_head callback_head;
1: + __be32 ifa_local;
1: + __be32 ifa_address;
1: + __be32 ifa_mask;
1: + __u32 ifa_rt_priority;
1: + __be32 ifa_broadcast;
1: + unsigned char ifa_scope;
1: + unsigned char ifa_prefixlen;
1: + __u32 ifa_flags;
1: + char ifa_label[16];
1: + __u32 ifa_valid_lft;
1: + __u32 ifa_preferred_lft;
1: + long unsigned int ifa_cstamp;
1: + long unsigned int ifa_tstamp;
1: };
1:
1: struct udp_tunnel_nic_shared {
1: - struct udp_tunnel_nic *udp_tunnel_nic_info;
1: - struct list_head devices;
1: + struct udp_tunnel_nic *udp_tunnel_nic_info;
1: + struct list_head devices;
1: };
1:
1: struct dev_kfree_skb_cb {
1: - enum skb_free_reason reason;
1: + enum skb_free_reason reason;
1: };
1:
1: struct netdev_adjacent {
1: - struct net_device *dev;
1: - bool master;
1: - bool ignore;
1: - u16 ref_nr;
1: - void *private;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + struct net_device *dev;
1: + bool master;
1: + bool ignore;
1: + u16 ref_nr;
1: + void *private;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct netdev_hw_addr {
1: - struct list_head list;
1: - unsigned char addr[32];
1: - unsigned char type;
1: - bool global_use;
1: - int sync_cnt;
1: - int refcount;
1: - int synced;
1: - struct callback_head callback_head;
1: -};
1: -
1: -enum {
1: - NDA_UNSPEC = 0,
1: - NDA_DST = 1,
1: - NDA_LLADDR = 2,
1: - NDA_CACHEINFO = 3,
1: - NDA_PROBES = 4,
1: - NDA_VLAN = 5,
1: - NDA_PORT = 6,
1: - NDA_VNI = 7,
1: - NDA_IFINDEX = 8,
1: - NDA_MASTER = 9,
1: - NDA_LINK_NETNSID = 10,
1: - NDA_SRC_VNI = 11,
1: - NDA_PROTOCOL = 12,
1: - NDA_NH_ID = 13,
1: - NDA_FDB_EXT_ATTRS = 14,
1: - __NDA_MAX = 15,
1: + struct list_head list;
1: + unsigned char addr[32];
1: + unsigned char type;
1: + bool global_use;
1: + int sync_cnt;
1: + int refcount;
1: + int synced;
1: + struct callback_head callback_head;
1: +};
1: +
1: +enum {
1: + NDA_UNSPEC = 0,
1: + NDA_DST = 1,
1: + NDA_LLADDR = 2,
1: + NDA_CACHEINFO = 3,
1: + NDA_PROBES = 4,
1: + NDA_VLAN = 5,
1: + NDA_PORT = 6,
1: + NDA_VNI = 7,
1: + NDA_IFINDEX = 8,
1: + NDA_MASTER = 9,
1: + NDA_LINK_NETNSID = 10,
1: + NDA_SRC_VNI = 11,
1: + NDA_PROTOCOL = 12,
1: + NDA_NH_ID = 13,
1: + NDA_FDB_EXT_ATTRS = 14,
1: + __NDA_MAX = 15,
1: };
1:
1: struct nda_cacheinfo {
1: - __u32 ndm_confirmed;
1: - __u32 ndm_used;
1: - __u32 ndm_updated;
1: - __u32 ndm_refcnt;
1: + __u32 ndm_confirmed;
1: + __u32 ndm_used;
1: + __u32 ndm_updated;
1: + __u32 ndm_refcnt;
1: };
1:
1: struct ndt_stats {
1: - __u64 ndts_allocs;
1: - __u64 ndts_destroys;
1: - __u64 ndts_hash_grows;
1: - __u64 ndts_res_failed;
1: - __u64 ndts_lookups;
1: - __u64 ndts_hits;
1: - __u64 ndts_rcv_probes_mcast;
1: - __u64 ndts_rcv_probes_ucast;
1: - __u64 ndts_periodic_gc_runs;
1: - __u64 ndts_forced_gc_runs;
1: - __u64 ndts_table_fulls;
1: -};
1: -
1: -enum {
1: - NDTPA_UNSPEC = 0,
1: - NDTPA_IFINDEX = 1,
1: - NDTPA_REFCNT = 2,
1: - NDTPA_REACHABLE_TIME = 3,
1: - NDTPA_BASE_REACHABLE_TIME = 4,
1: - NDTPA_RETRANS_TIME = 5,
1: - NDTPA_GC_STALETIME = 6,
1: - NDTPA_DELAY_PROBE_TIME = 7,
1: - NDTPA_QUEUE_LEN = 8,
1: - NDTPA_APP_PROBES = 9,
1: - NDTPA_UCAST_PROBES = 10,
1: - NDTPA_MCAST_PROBES = 11,
1: - NDTPA_ANYCAST_DELAY = 12,
1: - NDTPA_PROXY_DELAY = 13,
1: - NDTPA_PROXY_QLEN = 14,
1: - NDTPA_LOCKTIME = 15,
1: - NDTPA_QUEUE_LENBYTES = 16,
1: - NDTPA_MCAST_REPROBES = 17,
1: - NDTPA_PAD = 18,
1: - __NDTPA_MAX = 19,
1: + __u64 ndts_allocs;
1: + __u64 ndts_destroys;
1: + __u64 ndts_hash_grows;
1: + __u64 ndts_res_failed;
1: + __u64 ndts_lookups;
1: + __u64 ndts_hits;
1: + __u64 ndts_rcv_probes_mcast;
1: + __u64 ndts_rcv_probes_ucast;
1: + __u64 ndts_periodic_gc_runs;
1: + __u64 ndts_forced_gc_runs;
1: + __u64 ndts_table_fulls;
1: +};
1: +
1: +enum {
1: + NDTPA_UNSPEC = 0,
1: + NDTPA_IFINDEX = 1,
1: + NDTPA_REFCNT = 2,
1: + NDTPA_REACHABLE_TIME = 3,
1: + NDTPA_BASE_REACHABLE_TIME = 4,
1: + NDTPA_RETRANS_TIME = 5,
1: + NDTPA_GC_STALETIME = 6,
1: + NDTPA_DELAY_PROBE_TIME = 7,
1: + NDTPA_QUEUE_LEN = 8,
1: + NDTPA_APP_PROBES = 9,
1: + NDTPA_UCAST_PROBES = 10,
1: + NDTPA_MCAST_PROBES = 11,
1: + NDTPA_ANYCAST_DELAY = 12,
1: + NDTPA_PROXY_DELAY = 13,
1: + NDTPA_PROXY_QLEN = 14,
1: + NDTPA_LOCKTIME = 15,
1: + NDTPA_QUEUE_LENBYTES = 16,
1: + NDTPA_MCAST_REPROBES = 17,
1: + NDTPA_PAD = 18,
1: + __NDTPA_MAX = 19,
1: };
1:
1: struct ndtmsg {
1: - __u8 ndtm_family;
1: - __u8 ndtm_pad1;
1: - __u16 ndtm_pad2;
1: + __u8 ndtm_family;
1: + __u8 ndtm_pad1;
1: + __u16 ndtm_pad2;
1: };
1:
1: struct ndt_config {
1: - __u16 ndtc_key_len;
1: - __u16 ndtc_entry_size;
1: - __u32 ndtc_entries;
1: - __u32 ndtc_last_flush;
1: - __u32 ndtc_last_rand;
1: - __u32 ndtc_hash_rnd;
1: - __u32 ndtc_hash_mask;
1: - __u32 ndtc_hash_chain_gc;
1: - __u32 ndtc_proxy_qlen;
1: -};
1: -
1: -enum {
1: - NDTA_UNSPEC = 0,
1: - NDTA_NAME = 1,
1: - NDTA_THRESH1 = 2,
1: - NDTA_THRESH2 = 3,
1: - NDTA_THRESH3 = 4,
1: - NDTA_CONFIG = 5,
1: - NDTA_PARMS = 6,
1: - NDTA_STATS = 7,
1: - NDTA_GC_INTERVAL = 8,
1: - NDTA_PAD = 9,
1: - __NDTA_MAX = 10,
1: -};
1: -
1: -enum {
1: - RTN_UNSPEC = 0,
1: - RTN_UNICAST = 1,
1: - RTN_LOCAL = 2,
1: - RTN_BROADCAST = 3,
1: - RTN_ANYCAST = 4,
1: - RTN_MULTICAST = 5,
1: - RTN_BLACKHOLE = 6,
1: - RTN_UNREACHABLE = 7,
1: - RTN_PROHIBIT = 8,
1: - RTN_THROW = 9,
1: - RTN_NAT = 10,
1: - RTN_XRESOLVE = 11,
1: - __RTN_MAX = 12,
1: -};
1: -
1: -enum {
1: - NEIGH_ARP_TABLE = 0,
1: - NEIGH_ND_TABLE = 1,
1: - NEIGH_DN_TABLE = 2,
1: - NEIGH_NR_TABLES = 3,
1: - NEIGH_LINK_TABLE = 3,
1: + __u16 ndtc_key_len;
1: + __u16 ndtc_entry_size;
1: + __u32 ndtc_entries;
1: + __u32 ndtc_last_flush;
1: + __u32 ndtc_last_rand;
1: + __u32 ndtc_hash_rnd;
1: + __u32 ndtc_hash_mask;
1: + __u32 ndtc_hash_chain_gc;
1: + __u32 ndtc_proxy_qlen;
1: +};
1: +
1: +enum {
1: + NDTA_UNSPEC = 0,
1: + NDTA_NAME = 1,
1: + NDTA_THRESH1 = 2,
1: + NDTA_THRESH2 = 3,
1: + NDTA_THRESH3 = 4,
1: + NDTA_CONFIG = 5,
1: + NDTA_PARMS = 6,
1: + NDTA_STATS = 7,
1: + NDTA_GC_INTERVAL = 8,
1: + NDTA_PAD = 9,
1: + __NDTA_MAX = 10,
1: +};
1: +
1: +enum {
1: + RTN_UNSPEC = 0,
1: + RTN_UNICAST = 1,
1: + RTN_LOCAL = 2,
1: + RTN_BROADCAST = 3,
1: + RTN_ANYCAST = 4,
1: + RTN_MULTICAST = 5,
1: + RTN_BLACKHOLE = 6,
1: + RTN_UNREACHABLE = 7,
1: + RTN_PROHIBIT = 8,
1: + RTN_THROW = 9,
1: + RTN_NAT = 10,
1: + RTN_XRESOLVE = 11,
1: + __RTN_MAX = 12,
1: +};
1: +
1: +enum {
1: + NEIGH_ARP_TABLE = 0,
1: + NEIGH_ND_TABLE = 1,
1: + NEIGH_DN_TABLE = 2,
1: + NEIGH_NR_TABLES = 3,
1: + NEIGH_LINK_TABLE = 3,
1: };
1:
1: struct neigh_seq_state {
1: - struct seq_net_private p;
1: - struct neigh_table *tbl;
1: - struct neigh_hash_table *nht;
1: - void * (*neigh_sub_iter)(struct neigh_seq_state *, struct neighbour *, loff_t *);
1: - unsigned int bucket;
1: - unsigned int flags;
1: + struct seq_net_private p;
1: + struct neigh_table *tbl;
1: + struct neigh_hash_table *nht;
1: + void *(*neigh_sub_iter)(struct neigh_seq_state *, struct neighbour *,
1: + loff_t *);
1: + unsigned int bucket;
1: + unsigned int flags;
1: };
1:
1: struct neighbour_cb {
1: - long unsigned int sched_next;
1: - unsigned int flags;
1: + long unsigned int sched_next;
1: + unsigned int flags;
1: };
1:
1: enum netevent_notif_type {
1: - NETEVENT_NEIGH_UPDATE = 1,
1: - NETEVENT_REDIRECT = 2,
1: - NETEVENT_DELAY_PROBE_TIME_UPDATE = 3,
1: - NETEVENT_IPV4_MPATH_HASH_UPDATE = 4,
1: - NETEVENT_IPV6_MPATH_HASH_UPDATE = 5,
1: - NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE = 6,
1: + NETEVENT_NEIGH_UPDATE = 1,
1: + NETEVENT_REDIRECT = 2,
1: + NETEVENT_DELAY_PROBE_TIME_UPDATE = 3,
1: + NETEVENT_IPV4_MPATH_HASH_UPDATE = 4,
1: + NETEVENT_IPV6_MPATH_HASH_UPDATE = 5,
1: + NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE = 6,
1: };
1:
1: struct neigh_dump_filter {
1: - int master_idx;
1: - int dev_idx;
1: + int master_idx;
1: + int dev_idx;
1: };
1:
1: struct neigh_sysctl_table {
1: - struct ctl_table_header *sysctl_header;
1: - struct ctl_table neigh_vars[21];
1: + struct ctl_table_header *sysctl_header;
1: + struct ctl_table neigh_vars[21];
1: };
1:
1: struct netlink_dump_control {
1: - int (*start)(struct netlink_callback *);
1: - int (*dump)(struct sk_buff *, struct netlink_callback *);
1: - int (*done)(struct netlink_callback *);
1: - void *data;
1: - struct module *module;
1: - u32 min_dump_alloc;
1: + int (*start)(struct netlink_callback *);
1: + int (*dump)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + void *data;
1: + struct module *module;
1: + u32 min_dump_alloc;
1: };
1:
1: struct rtnl_link_stats {
1: - __u32 rx_packets;
1: - __u32 tx_packets;
1: - __u32 rx_bytes;
1: - __u32 tx_bytes;
1: - __u32 rx_errors;
1: - __u32 tx_errors;
1: - __u32 rx_dropped;
1: - __u32 tx_dropped;
1: - __u32 multicast;
1: - __u32 collisions;
1: - __u32 rx_length_errors;
1: - __u32 rx_over_errors;
1: - __u32 rx_crc_errors;
1: - __u32 rx_frame_errors;
1: - __u32 rx_fifo_errors;
1: - __u32 rx_missed_errors;
1: - __u32 tx_aborted_errors;
1: - __u32 tx_carrier_errors;
1: - __u32 tx_fifo_errors;
1: - __u32 tx_heartbeat_errors;
1: - __u32 tx_window_errors;
1: - __u32 rx_compressed;
1: - __u32 tx_compressed;
1: - __u32 rx_nohandler;
1: + __u32 rx_packets;
1: + __u32 tx_packets;
1: + __u32 rx_bytes;
1: + __u32 tx_bytes;
1: + __u32 rx_errors;
1: + __u32 tx_errors;
1: + __u32 rx_dropped;
1: + __u32 tx_dropped;
1: + __u32 multicast;
1: + __u32 collisions;
1: + __u32 rx_length_errors;
1: + __u32 rx_over_errors;
1: + __u32 rx_crc_errors;
1: + __u32 rx_frame_errors;
1: + __u32 rx_fifo_errors;
1: + __u32 rx_missed_errors;
1: + __u32 tx_aborted_errors;
1: + __u32 tx_carrier_errors;
1: + __u32 tx_fifo_errors;
1: + __u32 tx_heartbeat_errors;
1: + __u32 tx_window_errors;
1: + __u32 rx_compressed;
1: + __u32 tx_compressed;
1: + __u32 rx_nohandler;
1: };
1:
1: struct rtnl_link_ifmap {
1: - __u64 mem_start;
1: - __u64 mem_end;
1: - __u64 base_addr;
1: - __u16 irq;
1: - __u8 dma;
1: - __u8 port;
1: -};
1: -
1: -enum {
1: - IFLA_UNSPEC = 0,
1: - IFLA_ADDRESS = 1,
1: - IFLA_BROADCAST = 2,
1: - IFLA_IFNAME = 3,
1: - IFLA_MTU = 4,
1: - IFLA_LINK = 5,
1: - IFLA_QDISC = 6,
1: - IFLA_STATS = 7,
1: - IFLA_COST = 8,
1: - IFLA_PRIORITY = 9,
1: - IFLA_MASTER = 10,
1: - IFLA_WIRELESS = 11,
1: - IFLA_PROTINFO = 12,
1: - IFLA_TXQLEN = 13,
1: - IFLA_MAP = 14,
1: - IFLA_WEIGHT = 15,
1: - IFLA_OPERSTATE = 16,
1: - IFLA_LINKMODE = 17,
1: - IFLA_LINKINFO = 18,
1: - IFLA_NET_NS_PID = 19,
1: - IFLA_IFALIAS = 20,
1: - IFLA_NUM_VF = 21,
1: - IFLA_VFINFO_LIST = 22,
1: - IFLA_STATS64 = 23,
1: - IFLA_VF_PORTS = 24,
1: - IFLA_PORT_SELF = 25,
1: - IFLA_AF_SPEC = 26,
1: - IFLA_GROUP = 27,
1: - IFLA_NET_NS_FD = 28,
1: - IFLA_EXT_MASK = 29,
1: - IFLA_PROMISCUITY = 30,
1: - IFLA_NUM_TX_QUEUES = 31,
1: - IFLA_NUM_RX_QUEUES = 32,
1: - IFLA_CARRIER = 33,
1: - IFLA_PHYS_PORT_ID = 34,
1: - IFLA_CARRIER_CHANGES = 35,
1: - IFLA_PHYS_SWITCH_ID = 36,
1: - IFLA_LINK_NETNSID = 37,
1: - IFLA_PHYS_PORT_NAME = 38,
1: - IFLA_PROTO_DOWN = 39,
1: - IFLA_GSO_MAX_SEGS = 40,
1: - IFLA_GSO_MAX_SIZE = 41,
1: - IFLA_PAD = 42,
1: - IFLA_XDP = 43,
1: - IFLA_EVENT = 44,
1: - IFLA_NEW_NETNSID = 45,
1: - IFLA_IF_NETNSID = 46,
1: - IFLA_TARGET_NETNSID = 46,
1: - IFLA_CARRIER_UP_COUNT = 47,
1: - IFLA_CARRIER_DOWN_COUNT = 48,
1: - IFLA_NEW_IFINDEX = 49,
1: - IFLA_MIN_MTU = 50,
1: - IFLA_MAX_MTU = 51,
1: - IFLA_PROP_LIST = 52,
1: - IFLA_ALT_IFNAME = 53,
1: - IFLA_PERM_ADDRESS = 54,
1: - IFLA_PROTO_DOWN_REASON = 55,
1: - __IFLA_MAX = 56,
1: -};
1: -
1: -enum {
1: - IFLA_PROTO_DOWN_REASON_UNSPEC = 0,
1: - IFLA_PROTO_DOWN_REASON_MASK = 1,
1: - IFLA_PROTO_DOWN_REASON_VALUE = 2,
1: - __IFLA_PROTO_DOWN_REASON_CNT = 3,
1: - IFLA_PROTO_DOWN_REASON_MAX = 2,
1: -};
1: -
1: -enum {
1: - IFLA_BRPORT_UNSPEC = 0,
1: - IFLA_BRPORT_STATE = 1,
1: - IFLA_BRPORT_PRIORITY = 2,
1: - IFLA_BRPORT_COST = 3,
1: - IFLA_BRPORT_MODE = 4,
1: - IFLA_BRPORT_GUARD = 5,
1: - IFLA_BRPORT_PROTECT = 6,
1: - IFLA_BRPORT_FAST_LEAVE = 7,
1: - IFLA_BRPORT_LEARNING = 8,
1: - IFLA_BRPORT_UNICAST_FLOOD = 9,
1: - IFLA_BRPORT_PROXYARP = 10,
1: - IFLA_BRPORT_LEARNING_SYNC = 11,
1: - IFLA_BRPORT_PROXYARP_WIFI = 12,
1: - IFLA_BRPORT_ROOT_ID = 13,
1: - IFLA_BRPORT_BRIDGE_ID = 14,
1: - IFLA_BRPORT_DESIGNATED_PORT = 15,
1: - IFLA_BRPORT_DESIGNATED_COST = 16,
1: - IFLA_BRPORT_ID = 17,
1: - IFLA_BRPORT_NO = 18,
1: - IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19,
1: - IFLA_BRPORT_CONFIG_PENDING = 20,
1: - IFLA_BRPORT_MESSAGE_AGE_TIMER = 21,
1: - IFLA_BRPORT_FORWARD_DELAY_TIMER = 22,
1: - IFLA_BRPORT_HOLD_TIMER = 23,
1: - IFLA_BRPORT_FLUSH = 24,
1: - IFLA_BRPORT_MULTICAST_ROUTER = 25,
1: - IFLA_BRPORT_PAD = 26,
1: - IFLA_BRPORT_MCAST_FLOOD = 27,
1: - IFLA_BRPORT_MCAST_TO_UCAST = 28,
1: - IFLA_BRPORT_VLAN_TUNNEL = 29,
1: - IFLA_BRPORT_BCAST_FLOOD = 30,
1: - IFLA_BRPORT_GROUP_FWD_MASK = 31,
1: - IFLA_BRPORT_NEIGH_SUPPRESS = 32,
1: - IFLA_BRPORT_ISOLATED = 33,
1: - IFLA_BRPORT_BACKUP_PORT = 34,
1: - IFLA_BRPORT_MRP_RING_OPEN = 35,
1: - IFLA_BRPORT_MRP_IN_OPEN = 36,
1: - __IFLA_BRPORT_MAX = 37,
1: -};
1: -
1: -enum {
1: - IFLA_INFO_UNSPEC = 0,
1: - IFLA_INFO_KIND = 1,
1: - IFLA_INFO_DATA = 2,
1: - IFLA_INFO_XSTATS = 3,
1: - IFLA_INFO_SLAVE_KIND = 4,
1: - IFLA_INFO_SLAVE_DATA = 5,
1: - __IFLA_INFO_MAX = 6,
1: -};
1: -
1: -enum {
1: - IFLA_VF_INFO_UNSPEC = 0,
1: - IFLA_VF_INFO = 1,
1: - __IFLA_VF_INFO_MAX = 2,
1: -};
1: -
1: -enum {
1: - IFLA_VF_UNSPEC = 0,
1: - IFLA_VF_MAC = 1,
1: - IFLA_VF_VLAN = 2,
1: - IFLA_VF_TX_RATE = 3,
1: - IFLA_VF_SPOOFCHK = 4,
1: - IFLA_VF_LINK_STATE = 5,
1: - IFLA_VF_RATE = 6,
1: - IFLA_VF_RSS_QUERY_EN = 7,
1: - IFLA_VF_STATS = 8,
1: - IFLA_VF_TRUST = 9,
1: - IFLA_VF_IB_NODE_GUID = 10,
1: - IFLA_VF_IB_PORT_GUID = 11,
1: - IFLA_VF_VLAN_LIST = 12,
1: - IFLA_VF_BROADCAST = 13,
1: - __IFLA_VF_MAX = 14,
1: + __u64 mem_start;
1: + __u64 mem_end;
1: + __u64 base_addr;
1: + __u16 irq;
1: + __u8 dma;
1: + __u8 port;
1: +};
1: +
1: +enum {
1: + IFLA_UNSPEC = 0,
1: + IFLA_ADDRESS = 1,
1: + IFLA_BROADCAST = 2,
1: + IFLA_IFNAME = 3,
1: + IFLA_MTU = 4,
1: + IFLA_LINK = 5,
1: + IFLA_QDISC = 6,
1: + IFLA_STATS = 7,
1: + IFLA_COST = 8,
1: + IFLA_PRIORITY = 9,
1: + IFLA_MASTER = 10,
1: + IFLA_WIRELESS = 11,
1: + IFLA_PROTINFO = 12,
1: + IFLA_TXQLEN = 13,
1: + IFLA_MAP = 14,
1: + IFLA_WEIGHT = 15,
1: + IFLA_OPERSTATE = 16,
1: + IFLA_LINKMODE = 17,
1: + IFLA_LINKINFO = 18,
1: + IFLA_NET_NS_PID = 19,
1: + IFLA_IFALIAS = 20,
1: + IFLA_NUM_VF = 21,
1: + IFLA_VFINFO_LIST = 22,
1: + IFLA_STATS64 = 23,
1: + IFLA_VF_PORTS = 24,
1: + IFLA_PORT_SELF = 25,
1: + IFLA_AF_SPEC = 26,
1: + IFLA_GROUP = 27,
1: + IFLA_NET_NS_FD = 28,
1: + IFLA_EXT_MASK = 29,
1: + IFLA_PROMISCUITY = 30,
1: + IFLA_NUM_TX_QUEUES = 31,
1: + IFLA_NUM_RX_QUEUES = 32,
1: + IFLA_CARRIER = 33,
1: + IFLA_PHYS_PORT_ID = 34,
1: + IFLA_CARRIER_CHANGES = 35,
1: + IFLA_PHYS_SWITCH_ID = 36,
1: + IFLA_LINK_NETNSID = 37,
1: + IFLA_PHYS_PORT_NAME = 38,
1: + IFLA_PROTO_DOWN = 39,
1: + IFLA_GSO_MAX_SEGS = 40,
1: + IFLA_GSO_MAX_SIZE = 41,
1: + IFLA_PAD = 42,
1: + IFLA_XDP = 43,
1: + IFLA_EVENT = 44,
1: + IFLA_NEW_NETNSID = 45,
1: + IFLA_IF_NETNSID = 46,
1: + IFLA_TARGET_NETNSID = 46,
1: + IFLA_CARRIER_UP_COUNT = 47,
1: + IFLA_CARRIER_DOWN_COUNT = 48,
1: + IFLA_NEW_IFINDEX = 49,
1: + IFLA_MIN_MTU = 50,
1: + IFLA_MAX_MTU = 51,
1: + IFLA_PROP_LIST = 52,
1: + IFLA_ALT_IFNAME = 53,
1: + IFLA_PERM_ADDRESS = 54,
1: + IFLA_PROTO_DOWN_REASON = 55,
1: + __IFLA_MAX = 56,
1: +};
1: +
1: +enum {
1: + IFLA_PROTO_DOWN_REASON_UNSPEC = 0,
1: + IFLA_PROTO_DOWN_REASON_MASK = 1,
1: + IFLA_PROTO_DOWN_REASON_VALUE = 2,
1: + __IFLA_PROTO_DOWN_REASON_CNT = 3,
1: + IFLA_PROTO_DOWN_REASON_MAX = 2,
1: +};
1: +
1: +enum {
1: + IFLA_BRPORT_UNSPEC = 0,
1: + IFLA_BRPORT_STATE = 1,
1: + IFLA_BRPORT_PRIORITY = 2,
1: + IFLA_BRPORT_COST = 3,
1: + IFLA_BRPORT_MODE = 4,
1: + IFLA_BRPORT_GUARD = 5,
1: + IFLA_BRPORT_PROTECT = 6,
1: + IFLA_BRPORT_FAST_LEAVE = 7,
1: + IFLA_BRPORT_LEARNING = 8,
1: + IFLA_BRPORT_UNICAST_FLOOD = 9,
1: + IFLA_BRPORT_PROXYARP = 10,
1: + IFLA_BRPORT_LEARNING_SYNC = 11,
1: + IFLA_BRPORT_PROXYARP_WIFI = 12,
1: + IFLA_BRPORT_ROOT_ID = 13,
1: + IFLA_BRPORT_BRIDGE_ID = 14,
1: + IFLA_BRPORT_DESIGNATED_PORT = 15,
1: + IFLA_BRPORT_DESIGNATED_COST = 16,
1: + IFLA_BRPORT_ID = 17,
1: + IFLA_BRPORT_NO = 18,
1: + IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19,
1: + IFLA_BRPORT_CONFIG_PENDING = 20,
1: + IFLA_BRPORT_MESSAGE_AGE_TIMER = 21,
1: + IFLA_BRPORT_FORWARD_DELAY_TIMER = 22,
1: + IFLA_BRPORT_HOLD_TIMER = 23,
1: + IFLA_BRPORT_FLUSH = 24,
1: + IFLA_BRPORT_MULTICAST_ROUTER = 25,
1: + IFLA_BRPORT_PAD = 26,
1: + IFLA_BRPORT_MCAST_FLOOD = 27,
1: + IFLA_BRPORT_MCAST_TO_UCAST = 28,
1: + IFLA_BRPORT_VLAN_TUNNEL = 29,
1: + IFLA_BRPORT_BCAST_FLOOD = 30,
1: + IFLA_BRPORT_GROUP_FWD_MASK = 31,
1: + IFLA_BRPORT_NEIGH_SUPPRESS = 32,
1: + IFLA_BRPORT_ISOLATED = 33,
1: + IFLA_BRPORT_BACKUP_PORT = 34,
1: + IFLA_BRPORT_MRP_RING_OPEN = 35,
1: + IFLA_BRPORT_MRP_IN_OPEN = 36,
1: + __IFLA_BRPORT_MAX = 37,
1: +};
1: +
1: +enum {
1: + IFLA_INFO_UNSPEC = 0,
1: + IFLA_INFO_KIND = 1,
1: + IFLA_INFO_DATA = 2,
1: + IFLA_INFO_XSTATS = 3,
1: + IFLA_INFO_SLAVE_KIND = 4,
1: + IFLA_INFO_SLAVE_DATA = 5,
1: + __IFLA_INFO_MAX = 6,
1: +};
1: +
1: +enum {
1: + IFLA_VF_INFO_UNSPEC = 0,
1: + IFLA_VF_INFO = 1,
1: + __IFLA_VF_INFO_MAX = 2,
1: +};
1: +
1: +enum {
1: + IFLA_VF_UNSPEC = 0,
1: + IFLA_VF_MAC = 1,
1: + IFLA_VF_VLAN = 2,
1: + IFLA_VF_TX_RATE = 3,
1: + IFLA_VF_SPOOFCHK = 4,
1: + IFLA_VF_LINK_STATE = 5,
1: + IFLA_VF_RATE = 6,
1: + IFLA_VF_RSS_QUERY_EN = 7,
1: + IFLA_VF_STATS = 8,
1: + IFLA_VF_TRUST = 9,
1: + IFLA_VF_IB_NODE_GUID = 10,
1: + IFLA_VF_IB_PORT_GUID = 11,
1: + IFLA_VF_VLAN_LIST = 12,
1: + IFLA_VF_BROADCAST = 13,
1: + __IFLA_VF_MAX = 14,
1: };
1:
1: struct ifla_vf_mac {
1: - __u32 vf;
1: - __u8 mac[32];
1: + __u32 vf;
1: + __u8 mac[32];
1: };
1:
1: struct ifla_vf_broadcast {
1: - __u8 broadcast[32];
1: + __u8 broadcast[32];
1: };
1:
1: struct ifla_vf_vlan {
1: - __u32 vf;
1: - __u32 vlan;
1: - __u32 qos;
1: + __u32 vf;
1: + __u32 vlan;
1: + __u32 qos;
1: };
1:
1: enum {
1: - IFLA_VF_VLAN_INFO_UNSPEC = 0,
1: - IFLA_VF_VLAN_INFO = 1,
1: - __IFLA_VF_VLAN_INFO_MAX = 2,
1: + IFLA_VF_VLAN_INFO_UNSPEC = 0,
1: + IFLA_VF_VLAN_INFO = 1,
1: + __IFLA_VF_VLAN_INFO_MAX = 2,
1: };
1:
1: struct ifla_vf_vlan_info {
1: - __u32 vf;
1: - __u32 vlan;
1: - __u32 qos;
1: - __be16 vlan_proto;
1: + __u32 vf;
1: + __u32 vlan;
1: + __u32 qos;
1: + __be16 vlan_proto;
1: };
1:
1: struct ifla_vf_tx_rate {
1: - __u32 vf;
1: - __u32 rate;
1: + __u32 vf;
1: + __u32 rate;
1: };
1:
1: struct ifla_vf_rate {
1: - __u32 vf;
1: - __u32 min_tx_rate;
1: - __u32 max_tx_rate;
1: + __u32 vf;
1: + __u32 min_tx_rate;
1: + __u32 max_tx_rate;
1: };
1:
1: struct ifla_vf_spoofchk {
1: - __u32 vf;
1: - __u32 setting;
1: + __u32 vf;
1: + __u32 setting;
1: };
1:
1: struct ifla_vf_link_state {
1: - __u32 vf;
1: - __u32 link_state;
1: + __u32 vf;
1: + __u32 link_state;
1: };
1:
1: struct ifla_vf_rss_query_en {
1: - __u32 vf;
1: - __u32 setting;
1: + __u32 vf;
1: + __u32 setting;
1: };
1:
1: enum {
1: - IFLA_VF_STATS_RX_PACKETS = 0,
1: - IFLA_VF_STATS_TX_PACKETS = 1,
1: - IFLA_VF_STATS_RX_BYTES = 2,
1: - IFLA_VF_STATS_TX_BYTES = 3,
1: - IFLA_VF_STATS_BROADCAST = 4,
1: - IFLA_VF_STATS_MULTICAST = 5,
1: - IFLA_VF_STATS_PAD = 6,
1: - IFLA_VF_STATS_RX_DROPPED = 7,
1: - IFLA_VF_STATS_TX_DROPPED = 8,
1: - __IFLA_VF_STATS_MAX = 9,
1: + IFLA_VF_STATS_RX_PACKETS = 0,
1: + IFLA_VF_STATS_TX_PACKETS = 1,
1: + IFLA_VF_STATS_RX_BYTES = 2,
1: + IFLA_VF_STATS_TX_BYTES = 3,
1: + IFLA_VF_STATS_BROADCAST = 4,
1: + IFLA_VF_STATS_MULTICAST = 5,
1: + IFLA_VF_STATS_PAD = 6,
1: + IFLA_VF_STATS_RX_DROPPED = 7,
1: + IFLA_VF_STATS_TX_DROPPED = 8,
1: + __IFLA_VF_STATS_MAX = 9,
1: };
1:
1: struct ifla_vf_trust {
1: - __u32 vf;
1: - __u32 setting;
1: + __u32 vf;
1: + __u32 setting;
1: };
1:
1: enum {
1: - IFLA_VF_PORT_UNSPEC = 0,
1: - IFLA_VF_PORT = 1,
1: - __IFLA_VF_PORT_MAX = 2,
1: + IFLA_VF_PORT_UNSPEC = 0,
1: + IFLA_VF_PORT = 1,
1: + __IFLA_VF_PORT_MAX = 2,
1: };
1:
1: enum {
1: - IFLA_PORT_UNSPEC = 0,
1: - IFLA_PORT_VF = 1,
1: - IFLA_PORT_PROFILE = 2,
1: - IFLA_PORT_VSI_TYPE = 3,
1: - IFLA_PORT_INSTANCE_UUID = 4,
1: - IFLA_PORT_HOST_UUID = 5,
1: - IFLA_PORT_REQUEST = 6,
1: - IFLA_PORT_RESPONSE = 7,
1: - __IFLA_PORT_MAX = 8,
1: + IFLA_PORT_UNSPEC = 0,
1: + IFLA_PORT_VF = 1,
1: + IFLA_PORT_PROFILE = 2,
1: + IFLA_PORT_VSI_TYPE = 3,
1: + IFLA_PORT_INSTANCE_UUID = 4,
1: + IFLA_PORT_HOST_UUID = 5,
1: + IFLA_PORT_REQUEST = 6,
1: + IFLA_PORT_RESPONSE = 7,
1: + __IFLA_PORT_MAX = 8,
1: };
1:
1: struct if_stats_msg {
1: - __u8 family;
1: - __u8 pad1;
1: - __u16 pad2;
1: - __u32 ifindex;
1: - __u32 filter_mask;
1: + __u8 family;
1: + __u8 pad1;
1: + __u16 pad2;
1: + __u32 ifindex;
1: + __u32 filter_mask;
1: };
1:
1: enum {
1: - IFLA_STATS_UNSPEC = 0,
1: - IFLA_STATS_LINK_64 = 1,
1: - IFLA_STATS_LINK_XSTATS = 2,
1: - IFLA_STATS_LINK_XSTATS_SLAVE = 3,
1: - IFLA_STATS_LINK_OFFLOAD_XSTATS = 4,
1: - IFLA_STATS_AF_SPEC = 5,
1: - __IFLA_STATS_MAX = 6,
1: + IFLA_STATS_UNSPEC = 0,
1: + IFLA_STATS_LINK_64 = 1,
1: + IFLA_STATS_LINK_XSTATS = 2,
1: + IFLA_STATS_LINK_XSTATS_SLAVE = 3,
1: + IFLA_STATS_LINK_OFFLOAD_XSTATS = 4,
1: + IFLA_STATS_AF_SPEC = 5,
1: + __IFLA_STATS_MAX = 6,
1: };
1:
1: enum {
1: - IFLA_OFFLOAD_XSTATS_UNSPEC = 0,
1: - IFLA_OFFLOAD_XSTATS_CPU_HIT = 1,
1: - __IFLA_OFFLOAD_XSTATS_MAX = 2,
1: + IFLA_OFFLOAD_XSTATS_UNSPEC = 0,
1: + IFLA_OFFLOAD_XSTATS_CPU_HIT = 1,
1: + __IFLA_OFFLOAD_XSTATS_MAX = 2,
1: };
1:
1: enum {
1: - XDP_ATTACHED_NONE = 0,
1: - XDP_ATTACHED_DRV = 1,
1: - XDP_ATTACHED_SKB = 2,
1: - XDP_ATTACHED_HW = 3,
1: - XDP_ATTACHED_MULTI = 4,
1: + XDP_ATTACHED_NONE = 0,
1: + XDP_ATTACHED_DRV = 1,
1: + XDP_ATTACHED_SKB = 2,
1: + XDP_ATTACHED_HW = 3,
1: + XDP_ATTACHED_MULTI = 4,
1: };
1:
1: enum {
1: - IFLA_XDP_UNSPEC = 0,
1: - IFLA_XDP_FD = 1,
1: - IFLA_XDP_ATTACHED = 2,
1: - IFLA_XDP_FLAGS = 3,
1: - IFLA_XDP_PROG_ID = 4,
1: - IFLA_XDP_DRV_PROG_ID = 5,
1: - IFLA_XDP_SKB_PROG_ID = 6,
1: - IFLA_XDP_HW_PROG_ID = 7,
1: - IFLA_XDP_EXPECTED_FD = 8,
1: - __IFLA_XDP_MAX = 9,
1: + IFLA_XDP_UNSPEC = 0,
1: + IFLA_XDP_FD = 1,
1: + IFLA_XDP_ATTACHED = 2,
1: + IFLA_XDP_FLAGS = 3,
1: + IFLA_XDP_PROG_ID = 4,
1: + IFLA_XDP_DRV_PROG_ID = 5,
1: + IFLA_XDP_SKB_PROG_ID = 6,
1: + IFLA_XDP_HW_PROG_ID = 7,
1: + IFLA_XDP_EXPECTED_FD = 8,
1: + __IFLA_XDP_MAX = 9,
1: };
1:
1: enum {
1: - IFLA_EVENT_NONE = 0,
1: - IFLA_EVENT_REBOOT = 1,
1: - IFLA_EVENT_FEATURES = 2,
1: - IFLA_EVENT_BONDING_FAILOVER = 3,
1: - IFLA_EVENT_NOTIFY_PEERS = 4,
1: - IFLA_EVENT_IGMP_RESEND = 5,
1: - IFLA_EVENT_BONDING_OPTIONS = 6,
1: + IFLA_EVENT_NONE = 0,
1: + IFLA_EVENT_REBOOT = 1,
1: + IFLA_EVENT_FEATURES = 2,
1: + IFLA_EVENT_BONDING_FAILOVER = 3,
1: + IFLA_EVENT_NOTIFY_PEERS = 4,
1: + IFLA_EVENT_IGMP_RESEND = 5,
1: + IFLA_EVENT_BONDING_OPTIONS = 6,
1: };
1:
1: enum {
1: - IFLA_BRIDGE_FLAGS = 0,
1: - IFLA_BRIDGE_MODE = 1,
1: - IFLA_BRIDGE_VLAN_INFO = 2,
1: - IFLA_BRIDGE_VLAN_TUNNEL_INFO = 3,
1: - IFLA_BRIDGE_MRP = 4,
1: - __IFLA_BRIDGE_MAX = 5,
1: + IFLA_BRIDGE_FLAGS = 0,
1: + IFLA_BRIDGE_MODE = 1,
1: + IFLA_BRIDGE_VLAN_INFO = 2,
1: + IFLA_BRIDGE_VLAN_TUNNEL_INFO = 3,
1: + IFLA_BRIDGE_MRP = 4,
1: + __IFLA_BRIDGE_MAX = 5,
1: };
1:
1: enum {
1: - BR_MCAST_DIR_RX = 0,
1: - BR_MCAST_DIR_TX = 1,
1: - BR_MCAST_DIR_SIZE = 2,
1: + BR_MCAST_DIR_RX = 0,
1: + BR_MCAST_DIR_TX = 1,
1: + BR_MCAST_DIR_SIZE = 2,
1: };
1:
1: enum rtattr_type_t {
1: - RTA_UNSPEC = 0,
1: - RTA_DST = 1,
1: - RTA_SRC = 2,
1: - RTA_IIF = 3,
1: - RTA_OIF = 4,
1: - RTA_GATEWAY = 5,
1: - RTA_PRIORITY = 6,
1: - RTA_PREFSRC = 7,
1: - RTA_METRICS = 8,
1: - RTA_MULTIPATH = 9,
1: - RTA_PROTOINFO = 10,
1: - RTA_FLOW = 11,
1: - RTA_CACHEINFO = 12,
1: - RTA_SESSION = 13,
1: - RTA_MP_ALGO = 14,
1: - RTA_TABLE = 15,
1: - RTA_MARK = 16,
1: - RTA_MFC_STATS = 17,
1: - RTA_VIA = 18,
1: - RTA_NEWDST = 19,
1: - RTA_PREF = 20,
1: - RTA_ENCAP_TYPE = 21,
1: - RTA_ENCAP = 22,
1: - RTA_EXPIRES = 23,
1: - RTA_PAD = 24,
1: - RTA_UID = 25,
1: - RTA_TTL_PROPAGATE = 26,
1: - RTA_IP_PROTO = 27,
1: - RTA_SPORT = 28,
1: - RTA_DPORT = 29,
1: - RTA_NH_ID = 30,
1: - __RTA_MAX = 31,
1: + RTA_UNSPEC = 0,
1: + RTA_DST = 1,
1: + RTA_SRC = 2,
1: + RTA_IIF = 3,
1: + RTA_OIF = 4,
1: + RTA_GATEWAY = 5,
1: + RTA_PRIORITY = 6,
1: + RTA_PREFSRC = 7,
1: + RTA_METRICS = 8,
1: + RTA_MULTIPATH = 9,
1: + RTA_PROTOINFO = 10,
1: + RTA_FLOW = 11,
1: + RTA_CACHEINFO = 12,
1: + RTA_SESSION = 13,
1: + RTA_MP_ALGO = 14,
1: + RTA_TABLE = 15,
1: + RTA_MARK = 16,
1: + RTA_MFC_STATS = 17,
1: + RTA_VIA = 18,
1: + RTA_NEWDST = 19,
1: + RTA_PREF = 20,
1: + RTA_ENCAP_TYPE = 21,
1: + RTA_ENCAP = 22,
1: + RTA_EXPIRES = 23,
1: + RTA_PAD = 24,
1: + RTA_UID = 25,
1: + RTA_TTL_PROPAGATE = 26,
1: + RTA_IP_PROTO = 27,
1: + RTA_SPORT = 28,
1: + RTA_DPORT = 29,
1: + RTA_NH_ID = 30,
1: + __RTA_MAX = 31,
1: };
1:
1: struct rta_cacheinfo {
1: - __u32 rta_clntref;
1: - __u32 rta_lastuse;
1: - __s32 rta_expires;
1: - __u32 rta_error;
1: - __u32 rta_used;
1: - __u32 rta_id;
1: - __u32 rta_ts;
1: - __u32 rta_tsage;
1: + __u32 rta_clntref;
1: + __u32 rta_lastuse;
1: + __s32 rta_expires;
1: + __u32 rta_error;
1: + __u32 rta_used;
1: + __u32 rta_id;
1: + __u32 rta_ts;
1: + __u32 rta_tsage;
1: };
1:
1: struct ifinfomsg {
1: - unsigned char ifi_family;
1: - unsigned char __ifi_pad;
1: - short unsigned int ifi_type;
1: - int ifi_index;
1: - unsigned int ifi_flags;
1: - unsigned int ifi_change;
1: + unsigned char ifi_family;
1: + unsigned char __ifi_pad;
1: + short unsigned int ifi_type;
1: + int ifi_index;
1: + unsigned int ifi_flags;
1: + unsigned int ifi_change;
1: };
1:
1: -typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, struct netlink_ext_ack *);
1: +typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
1: + struct netlink_ext_ack *);
1:
1: typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
1:
1: struct rtnl_af_ops {
1: - struct list_head list;
1: - int family;
1: - int (*fill_link_af)(struct sk_buff *, const struct net_device *, u32);
1: - size_t (*get_link_af_size)(const struct net_device *, u32);
1: - int (*validate_link_af)(const struct net_device *, const struct nlattr *);
1: - int (*set_link_af)(struct net_device *, const struct nlattr *);
1: - int (*fill_stats_af)(struct sk_buff *, const struct net_device *);
1: - size_t (*get_stats_af_size)(const struct net_device *);
1: + struct list_head list;
1: + int family;
1: + int (*fill_link_af)(struct sk_buff *, const struct net_device *, u32);
1: + size_t (*get_link_af_size)(const struct net_device *, u32);
1: + int (*validate_link_af)(const struct net_device *, const struct nlattr *);
1: + int (*set_link_af)(struct net_device *, const struct nlattr *);
1: + int (*fill_stats_af)(struct sk_buff *, const struct net_device *);
1: + size_t (*get_stats_af_size)(const struct net_device *);
1: };
1:
1: struct rtnl_link {
1: - rtnl_doit_func doit;
1: - rtnl_dumpit_func dumpit;
1: - struct module *owner;
1: - unsigned int flags;
1: - struct callback_head rcu;
1: + rtnl_doit_func doit;
1: + rtnl_dumpit_func dumpit;
1: + struct module *owner;
1: + unsigned int flags;
1: + struct callback_head rcu;
1: };
1:
1: enum {
1: - IF_LINK_MODE_DEFAULT = 0,
1: - IF_LINK_MODE_DORMANT = 1,
1: - IF_LINK_MODE_TESTING = 2,
1: + IF_LINK_MODE_DEFAULT = 0,
1: + IF_LINK_MODE_DORMANT = 1,
1: + IF_LINK_MODE_TESTING = 2,
1: };
1:
1: enum lw_bits {
1: - LW_URGENT = 0,
1: + LW_URGENT = 0,
1: };
1:
1: struct seg6_pernet_data {
1: - struct mutex lock;
1: - struct in6_addr *tun_src;
1: + struct mutex lock;
1: + struct in6_addr *tun_src;
1: };
1:
1: enum {
1: - BPF_F_RECOMPUTE_CSUM = 1,
1: - BPF_F_INVALIDATE_HASH = 2,
1: + BPF_F_RECOMPUTE_CSUM = 1,
1: + BPF_F_INVALIDATE_HASH = 2,
1: };
1:
1: enum {
1: - BPF_F_HDR_FIELD_MASK = 15,
1: + BPF_F_HDR_FIELD_MASK = 15,
1: };
1:
1: enum {
1: - BPF_F_PSEUDO_HDR = 16,
1: - BPF_F_MARK_MANGLED_0 = 32,
1: - BPF_F_MARK_ENFORCE = 64,
1: + BPF_F_PSEUDO_HDR = 16,
1: + BPF_F_MARK_MANGLED_0 = 32,
1: + BPF_F_MARK_ENFORCE = 64,
1: };
1:
1: enum {
1: - BPF_F_INGRESS = 1,
1: + BPF_F_INGRESS = 1,
1: };
1:
1: enum {
1: - BPF_F_TUNINFO_IPV6 = 1,
1: + BPF_F_TUNINFO_IPV6 = 1,
1: };
1:
1: enum {
1: - BPF_F_ZERO_CSUM_TX = 2,
1: - BPF_F_DONT_FRAGMENT = 4,
1: - BPF_F_SEQ_NUMBER = 8,
1: + BPF_F_ZERO_CSUM_TX = 2,
1: + BPF_F_DONT_FRAGMENT = 4,
1: + BPF_F_SEQ_NUMBER = 8,
1: };
1:
1: enum {
1: - BPF_CSUM_LEVEL_QUERY = 0,
1: - BPF_CSUM_LEVEL_INC = 1,
1: - BPF_CSUM_LEVEL_DEC = 2,
1: - BPF_CSUM_LEVEL_RESET = 3,
1: + BPF_CSUM_LEVEL_QUERY = 0,
1: + BPF_CSUM_LEVEL_INC = 1,
1: + BPF_CSUM_LEVEL_DEC = 2,
1: + BPF_CSUM_LEVEL_RESET = 3,
1: };
1:
1: enum {
1: - BPF_F_ADJ_ROOM_FIXED_GSO = 1,
1: - BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 2,
1: - BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 4,
1: - BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 8,
1: - BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 16,
1: - BPF_F_ADJ_ROOM_NO_CSUM_RESET = 32,
1: + BPF_F_ADJ_ROOM_FIXED_GSO = 1,
1: + BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 2,
1: + BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 4,
1: + BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 8,
1: + BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 16,
1: + BPF_F_ADJ_ROOM_NO_CSUM_RESET = 32,
1: };
1:
1: enum {
1: - BPF_ADJ_ROOM_ENCAP_L2_MASK = 255,
1: - BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 56,
1: + BPF_ADJ_ROOM_ENCAP_L2_MASK = 255,
1: + BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 56,
1: };
1:
1: enum {
1: - BPF_SK_LOOKUP_F_REPLACE = 1,
1: - BPF_SK_LOOKUP_F_NO_REUSEPORT = 2,
1: + BPF_SK_LOOKUP_F_REPLACE = 1,
1: + BPF_SK_LOOKUP_F_NO_REUSEPORT = 2,
1: };
1:
1: enum bpf_adj_room_mode {
1: - BPF_ADJ_ROOM_NET = 0,
1: - BPF_ADJ_ROOM_MAC = 1,
1: + BPF_ADJ_ROOM_NET = 0,
1: + BPF_ADJ_ROOM_MAC = 1,
1: };
1:
1: enum bpf_hdr_start_off {
1: - BPF_HDR_START_MAC = 0,
1: - BPF_HDR_START_NET = 1,
1: + BPF_HDR_START_MAC = 0,
1: + BPF_HDR_START_NET = 1,
1: };
1:
1: enum bpf_lwt_encap_mode {
1: - BPF_LWT_ENCAP_SEG6 = 0,
1: - BPF_LWT_ENCAP_SEG6_INLINE = 1,
1: - BPF_LWT_ENCAP_IP = 2,
1: + BPF_LWT_ENCAP_SEG6 = 0,
1: + BPF_LWT_ENCAP_SEG6_INLINE = 1,
1: + BPF_LWT_ENCAP_IP = 2,
1: };
1:
1: struct bpf_tunnel_key {
1: - __u32 tunnel_id;
1: - union {
1: - __u32 remote_ipv4;
1: - __u32 remote_ipv6[4];
1: - };
1: - __u8 tunnel_tos;
1: - __u8 tunnel_ttl;
1: - __u16 tunnel_ext;
1: - __u32 tunnel_label;
1: + __u32 tunnel_id;
1: + union {
1: + __u32 remote_ipv4;
1: + __u32 remote_ipv6[4];
1: + };
1: + __u8 tunnel_tos;
1: + __u8 tunnel_ttl;
1: + __u16 tunnel_ext;
1: + __u32 tunnel_label;
1: };
1:
1: struct bpf_xfrm_state {
1: - __u32 reqid;
1: - __u32 spi;
1: - __u16 family;
1: - __u16 ext;
1: - union {
1: - __u32 remote_ipv4;
1: - __u32 remote_ipv6[4];
1: - };
1: + __u32 reqid;
1: + __u32 spi;
1: + __u16 family;
1: + __u16 ext;
1: + union {
1: + __u32 remote_ipv4;
1: + __u32 remote_ipv6[4];
1: + };
1: };
1:
1: struct bpf_tcp_sock {
1: - __u32 snd_cwnd;
1: - __u32 srtt_us;
1: - __u32 rtt_min;
1: - __u32 snd_ssthresh;
1: - __u32 rcv_nxt;
1: - __u32 snd_nxt;
1: - __u32 snd_una;
1: - __u32 mss_cache;
1: - __u32 ecn_flags;
1: - __u32 rate_delivered;
1: - __u32 rate_interval_us;
1: - __u32 packets_out;
1: - __u32 retrans_out;
1: - __u32 total_retrans;
1: - __u32 segs_in;
1: - __u32 data_segs_in;
1: - __u32 segs_out;
1: - __u32 data_segs_out;
1: - __u32 lost_out;
1: - __u32 sacked_out;
1: - __u64 bytes_received;
1: - __u64 bytes_acked;
1: - __u32 dsack_dups;
1: - __u32 delivered;
1: - __u32 delivered_ce;
1: - __u32 icsk_retransmits;
1: + __u32 snd_cwnd;
1: + __u32 srtt_us;
1: + __u32 rtt_min;
1: + __u32 snd_ssthresh;
1: + __u32 rcv_nxt;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 mss_cache;
1: + __u32 ecn_flags;
1: + __u32 rate_delivered;
1: + __u32 rate_interval_us;
1: + __u32 packets_out;
1: + __u32 retrans_out;
1: + __u32 total_retrans;
1: + __u32 segs_in;
1: + __u32 data_segs_in;
1: + __u32 segs_out;
1: + __u32 data_segs_out;
1: + __u32 lost_out;
1: + __u32 sacked_out;
1: + __u64 bytes_received;
1: + __u64 bytes_acked;
1: + __u32 dsack_dups;
1: + __u32 delivered;
1: + __u32 delivered_ce;
1: + __u32 icsk_retransmits;
1: };
1:
1: struct bpf_sock_tuple {
1: - union {
1: - struct {
1: - __be32 saddr;
1: - __be32 daddr;
1: - __be16 sport;
1: - __be16 dport;
1: - } ipv4;
1: - struct {
1: - __be32 saddr[4];
1: - __be32 daddr[4];
1: - __be16 sport;
1: - __be16 dport;
1: - } ipv6;
1: - };
1: + union {
1: + struct {
1: + __be32 saddr;
1: + __be32 daddr;
1: + __be16 sport;
1: + __be16 dport;
1: + } ipv4;
1: + struct {
1: + __be32 saddr[4];
1: + __be32 daddr[4];
1: + __be16 sport;
1: + __be16 dport;
1: + } ipv6;
1: + };
1: };
1:
1: struct bpf_xdp_sock {
1: - __u32 queue_id;
1: + __u32 queue_id;
1: };
1:
1: enum {
1: - BPF_SOCK_OPS_RTO_CB_FLAG = 1,
1: - BPF_SOCK_OPS_RETRANS_CB_FLAG = 2,
1: - BPF_SOCK_OPS_STATE_CB_FLAG = 4,
1: - BPF_SOCK_OPS_RTT_CB_FLAG = 8,
1: - BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG = 16,
1: - BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 32,
1: - BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 64,
1: - BPF_SOCK_OPS_ALL_CB_FLAGS = 127,
1: + BPF_SOCK_OPS_RTO_CB_FLAG = 1,
1: + BPF_SOCK_OPS_RETRANS_CB_FLAG = 2,
1: + BPF_SOCK_OPS_STATE_CB_FLAG = 4,
1: + BPF_SOCK_OPS_RTT_CB_FLAG = 8,
1: + BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG = 16,
1: + BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 32,
1: + BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 64,
1: + BPF_SOCK_OPS_ALL_CB_FLAGS = 127,
1: };
1:
1: enum {
1: - BPF_SOCK_OPS_VOID = 0,
1: - BPF_SOCK_OPS_TIMEOUT_INIT = 1,
1: - BPF_SOCK_OPS_RWND_INIT = 2,
1: - BPF_SOCK_OPS_TCP_CONNECT_CB = 3,
1: - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 4,
1: - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 5,
1: - BPF_SOCK_OPS_NEEDS_ECN = 6,
1: - BPF_SOCK_OPS_BASE_RTT = 7,
1: - BPF_SOCK_OPS_RTO_CB = 8,
1: - BPF_SOCK_OPS_RETRANS_CB = 9,
1: - BPF_SOCK_OPS_STATE_CB = 10,
1: - BPF_SOCK_OPS_TCP_LISTEN_CB = 11,
1: - BPF_SOCK_OPS_RTT_CB = 12,
1: - BPF_SOCK_OPS_PARSE_HDR_OPT_CB = 13,
1: - BPF_SOCK_OPS_HDR_OPT_LEN_CB = 14,
1: - BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 15,
1: + BPF_SOCK_OPS_VOID = 0,
1: + BPF_SOCK_OPS_TIMEOUT_INIT = 1,
1: + BPF_SOCK_OPS_RWND_INIT = 2,
1: + BPF_SOCK_OPS_TCP_CONNECT_CB = 3,
1: + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 4,
1: + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 5,
1: + BPF_SOCK_OPS_NEEDS_ECN = 6,
1: + BPF_SOCK_OPS_BASE_RTT = 7,
1: + BPF_SOCK_OPS_RTO_CB = 8,
1: + BPF_SOCK_OPS_RETRANS_CB = 9,
1: + BPF_SOCK_OPS_STATE_CB = 10,
1: + BPF_SOCK_OPS_TCP_LISTEN_CB = 11,
1: + BPF_SOCK_OPS_RTT_CB = 12,
1: + BPF_SOCK_OPS_PARSE_HDR_OPT_CB = 13,
1: + BPF_SOCK_OPS_HDR_OPT_LEN_CB = 14,
1: + BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 15,
1: };
1:
1: enum {
1: - TCP_BPF_IW = 1001,
1: - TCP_BPF_SNDCWND_CLAMP = 1002,
1: - TCP_BPF_DELACK_MAX = 1003,
1: - TCP_BPF_RTO_MIN = 1004,
1: - TCP_BPF_SYN = 1005,
1: - TCP_BPF_SYN_IP = 1006,
1: - TCP_BPF_SYN_MAC = 1007,
1: + TCP_BPF_IW = 1001,
1: + TCP_BPF_SNDCWND_CLAMP = 1002,
1: + TCP_BPF_DELACK_MAX = 1003,
1: + TCP_BPF_RTO_MIN = 1004,
1: + TCP_BPF_SYN = 1005,
1: + TCP_BPF_SYN_IP = 1006,
1: + TCP_BPF_SYN_MAC = 1007,
1: };
1:
1: enum {
1: - BPF_LOAD_HDR_OPT_TCP_SYN = 1,
1: + BPF_LOAD_HDR_OPT_TCP_SYN = 1,
1: };
1:
1: enum {
1: - BPF_FIB_LOOKUP_DIRECT = 1,
1: - BPF_FIB_LOOKUP_OUTPUT = 2,
1: + BPF_FIB_LOOKUP_DIRECT = 1,
1: + BPF_FIB_LOOKUP_OUTPUT = 2,
1: };
1:
1: enum {
1: - BPF_FIB_LKUP_RET_SUCCESS = 0,
1: - BPF_FIB_LKUP_RET_BLACKHOLE = 1,
1: - BPF_FIB_LKUP_RET_UNREACHABLE = 2,
1: - BPF_FIB_LKUP_RET_PROHIBIT = 3,
1: - BPF_FIB_LKUP_RET_NOT_FWDED = 4,
1: - BPF_FIB_LKUP_RET_FWD_DISABLED = 5,
1: - BPF_FIB_LKUP_RET_UNSUPP_LWT = 6,
1: - BPF_FIB_LKUP_RET_NO_NEIGH = 7,
1: - BPF_FIB_LKUP_RET_FRAG_NEEDED = 8,
1: + BPF_FIB_LKUP_RET_SUCCESS = 0,
1: + BPF_FIB_LKUP_RET_BLACKHOLE = 1,
1: + BPF_FIB_LKUP_RET_UNREACHABLE = 2,
1: + BPF_FIB_LKUP_RET_PROHIBIT = 3,
1: + BPF_FIB_LKUP_RET_NOT_FWDED = 4,
1: + BPF_FIB_LKUP_RET_FWD_DISABLED = 5,
1: + BPF_FIB_LKUP_RET_UNSUPP_LWT = 6,
1: + BPF_FIB_LKUP_RET_NO_NEIGH = 7,
1: + BPF_FIB_LKUP_RET_FRAG_NEEDED = 8,
1: };
1:
1: struct bpf_fib_lookup {
1: - __u8 family;
1: - __u8 l4_protocol;
1: - __be16 sport;
1: - __be16 dport;
1: - __u16 tot_len;
1: - __u32 ifindex;
1: - union {
1: - __u8 tos;
1: - __be32 flowinfo;
1: - __u32 rt_metric;
1: - };
1: - union {
1: - __be32 ipv4_src;
1: - __u32 ipv6_src[4];
1: - };
1: - union {
1: - __be32 ipv4_dst;
1: - __u32 ipv6_dst[4];
1: - };
1: - __be16 h_vlan_proto;
1: - __be16 h_vlan_TCI;
1: - __u8 smac[6];
1: - __u8 dmac[6];
1: + __u8 family;
1: + __u8 l4_protocol;
1: + __be16 sport;
1: + __be16 dport;
1: + __u16 tot_len;
1: + __u32 ifindex;
1: + union {
1: + __u8 tos;
1: + __be32 flowinfo;
1: + __u32 rt_metric;
1: + };
1: + union {
1: + __be32 ipv4_src;
1: + __u32 ipv6_src[4];
1: + };
1: + union {
1: + __be32 ipv4_dst;
1: + __u32 ipv6_dst[4];
1: + };
1: + __be16 h_vlan_proto;
1: + __be16 h_vlan_TCI;
1: + __u8 smac[6];
1: + __u8 dmac[6];
1: };
1:
1: struct bpf_redir_neigh {
1: - __u32 nh_family;
1: - union {
1: - __be32 ipv4_nh;
1: - __u32 ipv6_nh[4];
1: - };
1: + __u32 nh_family;
1: + union {
1: + __be32 ipv4_nh;
1: + __u32 ipv6_nh[4];
1: + };
1: };
1:
1: enum rt_scope_t {
1: - RT_SCOPE_UNIVERSE = 0,
1: - RT_SCOPE_SITE = 200,
1: - RT_SCOPE_LINK = 253,
1: - RT_SCOPE_HOST = 254,
1: - RT_SCOPE_NOWHERE = 255,
1: + RT_SCOPE_UNIVERSE = 0,
1: + RT_SCOPE_SITE = 200,
1: + RT_SCOPE_LINK = 253,
1: + RT_SCOPE_HOST = 254,
1: + RT_SCOPE_NOWHERE = 255,
1: };
1:
1: enum rt_class_t {
1: - RT_TABLE_UNSPEC = 0,
1: - RT_TABLE_COMPAT = 252,
1: - RT_TABLE_DEFAULT = 253,
1: - RT_TABLE_MAIN = 254,
1: - RT_TABLE_LOCAL = 255,
1: - RT_TABLE_MAX = 4294967295,
1: + RT_TABLE_UNSPEC = 0,
1: + RT_TABLE_COMPAT = 252,
1: + RT_TABLE_DEFAULT = 253,
1: + RT_TABLE_MAIN = 254,
1: + RT_TABLE_LOCAL = 255,
1: + RT_TABLE_MAX = 4294967295,
1: };
1:
1: struct nl_info {
1: - struct nlmsghdr *nlh;
1: - struct net *nl_net;
1: - u32 portid;
1: - u8 skip_notify: 1;
1: - u8 skip_notify_kernel: 1;
1: + struct nlmsghdr *nlh;
1: + struct net *nl_net;
1: + u32 portid;
1: + u8 skip_notify : 1;
1: + u8 skip_notify_kernel : 1;
1: };
1:
1: typedef int (*bpf_aux_classic_check_t)(struct sock_filter *, unsigned int);
1:
1: struct inet_timewait_sock {
1: - struct sock_common __tw_common;
1: - __u32 tw_mark;
1: - volatile unsigned char tw_substate;
1: - unsigned char tw_rcv_wscale;
1: - __be16 tw_sport;
1: - unsigned int tw_kill: 1;
1: - unsigned int tw_transparent: 1;
1: - unsigned int tw_flowlabel: 20;
1: - unsigned int tw_pad: 2;
1: - unsigned int tw_tos: 8;
1: - u32 tw_txhash;
1: - u32 tw_priority;
1: - struct timer_list tw_timer;
1: - struct inet_bind_bucket *tw_tb;
1: + struct sock_common __tw_common;
1: + __u32 tw_mark;
1: + volatile unsigned char tw_substate;
1: + unsigned char tw_rcv_wscale;
1: + __be16 tw_sport;
1: + unsigned int tw_kill : 1;
1: + unsigned int tw_transparent : 1;
1: + unsigned int tw_flowlabel : 20;
1: + unsigned int tw_pad : 2;
1: + unsigned int tw_tos : 8;
1: + u32 tw_txhash;
1: + u32 tw_priority;
1: + struct timer_list tw_timer;
1: + struct inet_bind_bucket *tw_tb;
1: };
1:
1: struct tcp_timewait_sock {
1: - struct inet_timewait_sock tw_sk;
1: - u32 tw_rcv_wnd;
1: - u32 tw_ts_offset;
1: - u32 tw_ts_recent;
1: - u32 tw_last_oow_ack_time;
1: - int tw_ts_recent_stamp;
1: - u32 tw_tx_delay;
1: - struct tcp_md5sig_key *tw_md5_key;
1: + struct inet_timewait_sock tw_sk;
1: + u32 tw_rcv_wnd;
1: + u32 tw_ts_offset;
1: + u32 tw_ts_recent;
1: + u32 tw_last_oow_ack_time;
1: + int tw_ts_recent_stamp;
1: + u32 tw_tx_delay;
1: + struct tcp_md5sig_key *tw_md5_key;
1: };
1:
1: struct udp_sock {
1: - struct inet_sock inet;
1: - int pending;
1: - unsigned int corkflag;
1: - __u8 encap_type;
1: - unsigned char no_check6_tx: 1;
1: - unsigned char no_check6_rx: 1;
1: - unsigned char encap_enabled: 1;
1: - unsigned char gro_enabled: 1;
1: - __u16 len;
1: - __u16 gso_size;
1: - __u16 pcslen;
1: - __u16 pcrlen;
1: - __u8 pcflag;
1: - __u8 unused[3];
1: - int (*encap_rcv)(struct sock *, struct sk_buff *);
1: - int (*encap_err_lookup)(struct sock *, struct sk_buff *);
1: - void (*encap_destroy)(struct sock *);
1: - struct sk_buff * (*gro_receive)(struct sock *, struct list_head *, struct sk_buff *);
1: - int (*gro_complete)(struct sock *, struct sk_buff *, int);
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct sk_buff_head reader_queue;
1: - int forward_deficit;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct inet_sock inet;
1: + int pending;
1: + unsigned int corkflag;
1: + __u8 encap_type;
1: + unsigned char no_check6_tx : 1;
1: + unsigned char no_check6_rx : 1;
1: + unsigned char encap_enabled : 1;
1: + unsigned char gro_enabled : 1;
1: + __u16 len;
1: + __u16 gso_size;
1: + __u16 pcslen;
1: + __u16 pcrlen;
1: + __u8 pcflag;
1: + __u8 unused[3];
1: + int (*encap_rcv)(struct sock *, struct sk_buff *);
1: + int (*encap_err_lookup)(struct sock *, struct sk_buff *);
1: + void (*encap_destroy)(struct sock *);
1: + struct sk_buff *(*gro_receive)(struct sock *, struct list_head *,
1: + struct sk_buff *);
1: + int (*gro_complete)(struct sock *, struct sk_buff *, int);
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct sk_buff_head reader_queue;
1: + int forward_deficit;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct udp6_sock {
1: - struct udp_sock udp;
1: - struct ipv6_pinfo inet6;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct udp_sock udp;
1: + struct ipv6_pinfo inet6;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct tcp6_sock {
1: - struct tcp_sock tcp;
1: - struct ipv6_pinfo inet6;
1: + struct tcp_sock tcp;
1: + struct ipv6_pinfo inet6;
1: };
1:
1: struct fib6_result;
1: @@ -98888,358 +100121,370 @@ struct fib6_result;
1: struct fib6_config;
1:
1: struct ipv6_stub {
1: - int (*ipv6_sock_mc_join)(struct sock *, int, const struct in6_addr *);
1: - int (*ipv6_sock_mc_drop)(struct sock *, int, const struct in6_addr *);
1: - struct dst_entry * (*ipv6_dst_lookup_flow)(struct net *, const struct sock *, struct flowi6 *, const struct in6_addr *);
1: - int (*ipv6_route_input)(struct sk_buff *);
1: - struct fib6_table * (*fib6_get_table)(struct net *, u32);
1: - int (*fib6_lookup)(struct net *, int, struct flowi6 *, struct fib6_result *, int);
1: - int (*fib6_table_lookup)(struct net *, struct fib6_table *, int, struct flowi6 *, struct fib6_result *, int);
1: - void (*fib6_select_path)(const struct net *, struct fib6_result *, struct flowi6 *, int, bool, const struct sk_buff *, int);
1: - u32 (*ip6_mtu_from_fib6)(const struct fib6_result *, const struct in6_addr *, const struct in6_addr *);
1: - int (*fib6_nh_init)(struct net *, struct fib6_nh *, struct fib6_config *, gfp_t, struct netlink_ext_ack *);
1: - void (*fib6_nh_release)(struct fib6_nh *);
1: - void (*fib6_update_sernum)(struct net *, struct fib6_info *);
1: - int (*ip6_del_rt)(struct net *, struct fib6_info *, bool);
1: - void (*fib6_rt_update)(struct net *, struct fib6_info *, struct nl_info *);
1: - void (*udpv6_encap_enable)();
1: - void (*ndisc_send_na)(struct net_device *, const struct in6_addr *, const struct in6_addr *, bool, bool, bool, bool);
1: - void (*xfrm6_local_rxpmtu)(struct sk_buff *, u32);
1: - int (*xfrm6_udp_encap_rcv)(struct sock *, struct sk_buff *);
1: - int (*xfrm6_rcv_encap)(struct sk_buff *, int, __be32, int);
1: - struct neigh_table *nd_tbl;
1: - int (*ipv6_fragment)(struct net *, struct sock *, struct sk_buff *, int (*)(struct net *, struct sock *, struct sk_buff *));
1: + int (*ipv6_sock_mc_join)(struct sock *, int, const struct in6_addr *);
1: + int (*ipv6_sock_mc_drop)(struct sock *, int, const struct in6_addr *);
1: + struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *, const struct sock *,
1: + struct flowi6 *,
1: + const struct in6_addr *);
1: + int (*ipv6_route_input)(struct sk_buff *);
1: + struct fib6_table *(*fib6_get_table)(struct net *, u32);
1: + int (*fib6_lookup)(struct net *, int, struct flowi6 *, struct fib6_result *,
1: + int);
1: + int (*fib6_table_lookup)(struct net *, struct fib6_table *, int,
1: + struct flowi6 *, struct fib6_result *, int);
1: + void (*fib6_select_path)(const struct net *, struct fib6_result *,
1: + struct flowi6 *, int, bool, const struct sk_buff *,
1: + int);
1: + u32 (*ip6_mtu_from_fib6)(const struct fib6_result *, const struct in6_addr *,
1: + const struct in6_addr *);
1: + int (*fib6_nh_init)(struct net *, struct fib6_nh *, struct fib6_config *,
1: + gfp_t, struct netlink_ext_ack *);
1: + void (*fib6_nh_release)(struct fib6_nh *);
1: + void (*fib6_update_sernum)(struct net *, struct fib6_info *);
1: + int (*ip6_del_rt)(struct net *, struct fib6_info *, bool);
1: + void (*fib6_rt_update)(struct net *, struct fib6_info *, struct nl_info *);
1: + void (*udpv6_encap_enable)();
1: + void (*ndisc_send_na)(struct net_device *, const struct in6_addr *,
1: + const struct in6_addr *, bool, bool, bool, bool);
1: + void (*xfrm6_local_rxpmtu)(struct sk_buff *, u32);
1: + int (*xfrm6_udp_encap_rcv)(struct sock *, struct sk_buff *);
1: + int (*xfrm6_rcv_encap)(struct sk_buff *, int, __be32, int);
1: + struct neigh_table *nd_tbl;
1: + int (*ipv6_fragment)(struct net *, struct sock *, struct sk_buff *,
1: + int (*)(struct net *, struct sock *, struct sk_buff *));
1: };
1:
1: struct fib6_result {
1: - struct fib6_nh *nh;
1: - struct fib6_info *f6i;
1: - u32 fib6_flags;
1: - u8 fib6_type;
1: - struct rt6_info *rt6;
1: + struct fib6_nh *nh;
1: + struct fib6_info *f6i;
1: + u32 fib6_flags;
1: + u8 fib6_type;
1: + struct rt6_info *rt6;
1: };
1:
1: struct fib6_config {
1: - u32 fc_table;
1: - u32 fc_metric;
1: - int fc_dst_len;
1: - int fc_src_len;
1: - int fc_ifindex;
1: - u32 fc_flags;
1: - u32 fc_protocol;
1: - u16 fc_type;
1: - u16 fc_delete_all_nh: 1;
1: - u16 fc_ignore_dev_down: 1;
1: - u16 __unused: 14;
1: - u32 fc_nh_id;
1: - struct in6_addr fc_dst;
1: - struct in6_addr fc_src;
1: - struct in6_addr fc_prefsrc;
1: - struct in6_addr fc_gateway;
1: - long unsigned int fc_expires;
1: - struct nlattr *fc_mx;
1: - int fc_mx_len;
1: - int fc_mp_len;
1: - struct nlattr *fc_mp;
1: - struct nl_info fc_nlinfo;
1: - struct nlattr *fc_encap;
1: - u16 fc_encap_type;
1: - bool fc_is_fdb;
1: + u32 fc_table;
1: + u32 fc_metric;
1: + int fc_dst_len;
1: + int fc_src_len;
1: + int fc_ifindex;
1: + u32 fc_flags;
1: + u32 fc_protocol;
1: + u16 fc_type;
1: + u16 fc_delete_all_nh : 1;
1: + u16 fc_ignore_dev_down : 1;
1: + u16 __unused : 14;
1: + u32 fc_nh_id;
1: + struct in6_addr fc_dst;
1: + struct in6_addr fc_src;
1: + struct in6_addr fc_prefsrc;
1: + struct in6_addr fc_gateway;
1: + long unsigned int fc_expires;
1: + struct nlattr *fc_mx;
1: + int fc_mx_len;
1: + int fc_mp_len;
1: + struct nlattr *fc_mp;
1: + struct nl_info fc_nlinfo;
1: + struct nlattr *fc_encap;
1: + u16 fc_encap_type;
1: + bool fc_is_fdb;
1: };
1:
1: struct ipv6_bpf_stub {
1: - int (*inet6_bind)(struct sock *, struct sockaddr *, int, u32);
1: - struct sock * (*udp6_lib_lookup)(struct net *, const struct in6_addr *, __be16, const struct in6_addr *, __be16, int, int, struct udp_table *, struct sk_buff *);
1: + int (*inet6_bind)(struct sock *, struct sockaddr *, int, u32);
1: + struct sock *(*udp6_lib_lookup)(struct net *, const struct in6_addr *, __be16,
1: + const struct in6_addr *, __be16, int, int,
1: + struct udp_table *, struct sk_buff *);
1: };
1:
1: struct fib_result {
1: - __be32 prefix;
1: - unsigned char prefixlen;
1: - unsigned char nh_sel;
1: - unsigned char type;
1: - unsigned char scope;
1: - u32 tclassid;
1: - struct fib_nh_common *nhc;
1: - struct fib_info *fi;
1: - struct fib_table *table;
1: - struct hlist_head *fa_head;
1: + __be32 prefix;
1: + unsigned char prefixlen;
1: + unsigned char nh_sel;
1: + unsigned char type;
1: + unsigned char scope;
1: + u32 tclassid;
1: + struct fib_nh_common *nhc;
1: + struct fib_info *fi;
1: + struct fib_table *table;
1: + struct hlist_head *fa_head;
1: };
1:
1: enum {
1: - INET_ECN_NOT_ECT = 0,
1: - INET_ECN_ECT_1 = 1,
1: - INET_ECN_ECT_0 = 2,
1: - INET_ECN_CE = 3,
1: - INET_ECN_MASK = 3,
1: + INET_ECN_NOT_ECT = 0,
1: + INET_ECN_ECT_1 = 1,
1: + INET_ECN_ECT_0 = 2,
1: + INET_ECN_CE = 3,
1: + INET_ECN_MASK = 3,
1: };
1:
1: struct tcp_skb_cb {
1: - __u32 seq;
1: - __u32 end_seq;
1: - union {
1: - __u32 tcp_tw_isn;
1: - struct {
1: - u16 tcp_gso_segs;
1: - u16 tcp_gso_size;
1: - };
1: - };
1: - __u8 tcp_flags;
1: - __u8 sacked;
1: - __u8 ip_dsfield;
1: - __u8 txstamp_ack: 1;
1: - __u8 eor: 1;
1: - __u8 has_rxtstamp: 1;
1: - __u8 unused: 5;
1: - __u32 ack_seq;
1: - union {
1: - struct {
1: - __u32 in_flight: 30;
1: - __u32 is_app_limited: 1;
1: - __u32 unused: 1;
1: - __u32 delivered;
1: - u64 first_tx_mstamp;
1: - u64 delivered_mstamp;
1: - } tx;
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - } header;
1: - struct {
1: - __u32 flags;
1: - struct sock *sk_redir;
1: - void *data_end;
1: - } bpf;
1: - };
1: + __u32 seq;
1: + __u32 end_seq;
1: + union {
1: + __u32 tcp_tw_isn;
1: + struct {
1: + u16 tcp_gso_segs;
1: + u16 tcp_gso_size;
1: + };
1: + };
1: + __u8 tcp_flags;
1: + __u8 sacked;
1: + __u8 ip_dsfield;
1: + __u8 txstamp_ack : 1;
1: + __u8 eor : 1;
1: + __u8 has_rxtstamp : 1;
1: + __u8 unused : 5;
1: + __u32 ack_seq;
1: + union {
1: + struct {
1: + __u32 in_flight : 30;
1: + __u32 is_app_limited : 1;
1: + __u32 unused : 1;
1: + __u32 delivered;
1: + u64 first_tx_mstamp;
1: + u64 delivered_mstamp;
1: + } tx;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + struct {
1: + __u32 flags;
1: + struct sock *sk_redir;
1: + void *data_end;
1: + } bpf;
1: + };
1: };
1:
1: struct strp_stats {
1: - long long unsigned int msgs;
1: - long long unsigned int bytes;
1: - unsigned int mem_fail;
1: - unsigned int need_more_hdr;
1: - unsigned int msg_too_big;
1: - unsigned int msg_timeouts;
1: - unsigned int bad_hdr_len;
1: + long long unsigned int msgs;
1: + long long unsigned int bytes;
1: + unsigned int mem_fail;
1: + unsigned int need_more_hdr;
1: + unsigned int msg_too_big;
1: + unsigned int msg_timeouts;
1: + unsigned int bad_hdr_len;
1: };
1:
1: struct strparser;
1:
1: struct strp_callbacks {
1: - int (*parse_msg)(struct strparser *, struct sk_buff *);
1: - void (*rcv_msg)(struct strparser *, struct sk_buff *);
1: - int (*read_sock_done)(struct strparser *, int);
1: - void (*abort_parser)(struct strparser *, int);
1: - void (*lock)(struct strparser *);
1: - void (*unlock)(struct strparser *);
1: + int (*parse_msg)(struct strparser *, struct sk_buff *);
1: + void (*rcv_msg)(struct strparser *, struct sk_buff *);
1: + int (*read_sock_done)(struct strparser *, int);
1: + void (*abort_parser)(struct strparser *, int);
1: + void (*lock)(struct strparser *);
1: + void (*unlock)(struct strparser *);
1: };
1:
1: struct strparser {
1: - struct sock *sk;
1: - u32 stopped: 1;
1: - u32 paused: 1;
1: - u32 aborted: 1;
1: - u32 interrupted: 1;
1: - u32 unrecov_intr: 1;
1: - struct sk_buff **skb_nextp;
1: - struct sk_buff *skb_head;
1: - unsigned int need_bytes;
1: - struct delayed_work msg_timer_work;
1: - struct work_struct work;
1: - struct strp_stats stats;
1: - struct strp_callbacks cb;
1: + struct sock *sk;
1: + u32 stopped : 1;
1: + u32 paused : 1;
1: + u32 aborted : 1;
1: + u32 interrupted : 1;
1: + u32 unrecov_intr : 1;
1: + struct sk_buff **skb_nextp;
1: + struct sk_buff *skb_head;
1: + unsigned int need_bytes;
1: + struct delayed_work msg_timer_work;
1: + struct work_struct work;
1: + struct strp_stats stats;
1: + struct strp_callbacks cb;
1: };
1:
1: struct strp_msg {
1: - int full_len;
1: - int offset;
1: + int full_len;
1: + int offset;
1: };
1:
1: struct xdp_umem {
1: - void *addrs;
1: - u64 size;
1: - u32 headroom;
1: - u32 chunk_size;
1: - u32 chunks;
1: - u32 npgs;
1: - struct user_struct *user;
1: - refcount_t users;
1: - u8 flags;
1: - bool zc;
1: - struct page **pgs;
1: - int id;
1: - struct list_head xsk_dma_list;
1: - struct work_struct work;
1: + void *addrs;
1: + u64 size;
1: + u32 headroom;
1: + u32 chunk_size;
1: + u32 chunks;
1: + u32 npgs;
1: + struct user_struct *user;
1: + refcount_t users;
1: + u8 flags;
1: + bool zc;
1: + struct page **pgs;
1: + int id;
1: + struct list_head xsk_dma_list;
1: + struct work_struct work;
1: };
1:
1: struct xdp_sock;
1:
1: struct xsk_map {
1: - struct bpf_map map;
1: - spinlock_t lock;
1: - struct xdp_sock *xsk_map[0];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + spinlock_t lock;
1: + struct xdp_sock *xsk_map[0];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xsk_queue;
1:
1: struct xdp_sock {
1: - struct sock sk;
1: - long: 64;
1: - struct xsk_queue *rx;
1: - struct net_device *dev;
1: - struct xdp_umem *umem;
1: - struct list_head flush_node;
1: - struct xsk_buff_pool *pool;
1: - u16 queue_id;
1: - bool zc;
1: - enum {
1: - XSK_READY = 0,
1: - XSK_BOUND = 1,
1: - XSK_UNBOUND = 2,
1: - } state;
1: - long: 64;
1: - struct xsk_queue *tx;
1: - struct list_head tx_list;
1: - spinlock_t rx_lock;
1: - u64 rx_dropped;
1: - u64 rx_queue_full;
1: - struct list_head map_list;
1: - spinlock_t map_list_lock;
1: - struct mutex mutex;
1: - struct xsk_queue *fq_tmp;
1: - struct xsk_queue *cq_tmp;
1: - long: 64;
1: + struct sock sk;
1: + long : 64;
1: + struct xsk_queue *rx;
1: + struct net_device *dev;
1: + struct xdp_umem *umem;
1: + struct list_head flush_node;
1: + struct xsk_buff_pool *pool;
1: + u16 queue_id;
1: + bool zc;
1: + enum {
1: + XSK_READY = 0,
1: + XSK_BOUND = 1,
1: + XSK_UNBOUND = 2,
1: + } state;
1: + long : 64;
1: + struct xsk_queue *tx;
1: + struct list_head tx_list;
1: + spinlock_t rx_lock;
1: + u64 rx_dropped;
1: + u64 rx_queue_full;
1: + struct list_head map_list;
1: + spinlock_t map_list_lock;
1: + struct mutex mutex;
1: + struct xsk_queue *fq_tmp;
1: + struct xsk_queue *cq_tmp;
1: + long : 64;
1: };
1:
1: struct ipv6_sr_hdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: - __u8 type;
1: - __u8 segments_left;
1: - __u8 first_segment;
1: - __u8 flags;
1: - __u16 tag;
1: - struct in6_addr segments[0];
1: -};
1: -
1: -enum {
1: - SEG6_LOCAL_ACTION_UNSPEC = 0,
1: - SEG6_LOCAL_ACTION_END = 1,
1: - SEG6_LOCAL_ACTION_END_X = 2,
1: - SEG6_LOCAL_ACTION_END_T = 3,
1: - SEG6_LOCAL_ACTION_END_DX2 = 4,
1: - SEG6_LOCAL_ACTION_END_DX6 = 5,
1: - SEG6_LOCAL_ACTION_END_DX4 = 6,
1: - SEG6_LOCAL_ACTION_END_DT6 = 7,
1: - SEG6_LOCAL_ACTION_END_DT4 = 8,
1: - SEG6_LOCAL_ACTION_END_B6 = 9,
1: - SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
1: - SEG6_LOCAL_ACTION_END_BM = 11,
1: - SEG6_LOCAL_ACTION_END_S = 12,
1: - SEG6_LOCAL_ACTION_END_AS = 13,
1: - SEG6_LOCAL_ACTION_END_AM = 14,
1: - SEG6_LOCAL_ACTION_END_BPF = 15,
1: - __SEG6_LOCAL_ACTION_MAX = 16,
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: + __u8 first_segment;
1: + __u8 flags;
1: + __u16 tag;
1: + struct in6_addr segments[0];
1: +};
1: +
1: +enum {
1: + SEG6_LOCAL_ACTION_UNSPEC = 0,
1: + SEG6_LOCAL_ACTION_END = 1,
1: + SEG6_LOCAL_ACTION_END_X = 2,
1: + SEG6_LOCAL_ACTION_END_T = 3,
1: + SEG6_LOCAL_ACTION_END_DX2 = 4,
1: + SEG6_LOCAL_ACTION_END_DX6 = 5,
1: + SEG6_LOCAL_ACTION_END_DX4 = 6,
1: + SEG6_LOCAL_ACTION_END_DT6 = 7,
1: + SEG6_LOCAL_ACTION_END_DT4 = 8,
1: + SEG6_LOCAL_ACTION_END_B6 = 9,
1: + SEG6_LOCAL_ACTION_END_B6_ENCAP = 10,
1: + SEG6_LOCAL_ACTION_END_BM = 11,
1: + SEG6_LOCAL_ACTION_END_S = 12,
1: + SEG6_LOCAL_ACTION_END_AS = 13,
1: + SEG6_LOCAL_ACTION_END_AM = 14,
1: + SEG6_LOCAL_ACTION_END_BPF = 15,
1: + __SEG6_LOCAL_ACTION_MAX = 16,
1: };
1:
1: struct seg6_bpf_srh_state {
1: - struct ipv6_sr_hdr *srh;
1: - u16 hdrlen;
1: - bool valid;
1: + struct ipv6_sr_hdr *srh;
1: + u16 hdrlen;
1: + bool valid;
1: };
1:
1: struct tls_crypto_info {
1: - __u16 version;
1: - __u16 cipher_type;
1: + __u16 version;
1: + __u16 cipher_type;
1: };
1:
1: struct tls12_crypto_info_aes_gcm_128 {
1: - struct tls_crypto_info info;
1: - unsigned char iv[8];
1: - unsigned char key[16];
1: - unsigned char salt[4];
1: - unsigned char rec_seq[8];
1: + struct tls_crypto_info info;
1: + unsigned char iv[8];
1: + unsigned char key[16];
1: + unsigned char salt[4];
1: + unsigned char rec_seq[8];
1: };
1:
1: struct tls12_crypto_info_aes_gcm_256 {
1: - struct tls_crypto_info info;
1: - unsigned char iv[8];
1: - unsigned char key[32];
1: - unsigned char salt[4];
1: - unsigned char rec_seq[8];
1: + struct tls_crypto_info info;
1: + unsigned char iv[8];
1: + unsigned char key[32];
1: + unsigned char salt[4];
1: + unsigned char rec_seq[8];
1: };
1:
1: struct tls_sw_context_rx {
1: - struct crypto_aead *aead_recv;
1: - struct crypto_wait async_wait;
1: - struct strparser strp;
1: - struct sk_buff_head rx_list;
1: - void (*saved_data_ready)(struct sock *);
1: - struct sk_buff *recv_pkt;
1: - u8 control;
1: - u8 async_capable: 1;
1: - u8 decrypted: 1;
1: - atomic_t decrypt_pending;
1: - spinlock_t decrypt_compl_lock;
1: - bool async_notify;
1: + struct crypto_aead *aead_recv;
1: + struct crypto_wait async_wait;
1: + struct strparser strp;
1: + struct sk_buff_head rx_list;
1: + void (*saved_data_ready)(struct sock *);
1: + struct sk_buff *recv_pkt;
1: + u8 control;
1: + u8 async_capable : 1;
1: + u8 decrypted : 1;
1: + atomic_t decrypt_pending;
1: + spinlock_t decrypt_compl_lock;
1: + bool async_notify;
1: };
1:
1: struct cipher_context {
1: - char *iv;
1: - char *rec_seq;
1: + char *iv;
1: + char *rec_seq;
1: };
1:
1: union tls_crypto_context {
1: - struct tls_crypto_info info;
1: - union {
1: - struct tls12_crypto_info_aes_gcm_128 aes_gcm_128;
1: - struct tls12_crypto_info_aes_gcm_256 aes_gcm_256;
1: - };
1: + struct tls_crypto_info info;
1: + union {
1: + struct tls12_crypto_info_aes_gcm_128 aes_gcm_128;
1: + struct tls12_crypto_info_aes_gcm_256 aes_gcm_256;
1: + };
1: };
1:
1: struct tls_prot_info {
1: - u16 version;
1: - u16 cipher_type;
1: - u16 prepend_size;
1: - u16 tag_size;
1: - u16 overhead_size;
1: - u16 iv_size;
1: - u16 salt_size;
1: - u16 rec_seq_size;
1: - u16 aad_size;
1: - u16 tail_size;
1: + u16 version;
1: + u16 cipher_type;
1: + u16 prepend_size;
1: + u16 tag_size;
1: + u16 overhead_size;
1: + u16 iv_size;
1: + u16 salt_size;
1: + u16 rec_seq_size;
1: + u16 aad_size;
1: + u16 tail_size;
1: };
1:
1: struct tls_context {
1: - struct tls_prot_info prot_info;
1: - u8 tx_conf: 3;
1: - u8 rx_conf: 3;
1: - int (*push_pending_record)(struct sock *, int);
1: - void (*sk_write_space)(struct sock *);
1: - void *priv_ctx_tx;
1: - void *priv_ctx_rx;
1: - struct net_device *netdev;
1: - struct cipher_context tx;
1: - struct cipher_context rx;
1: - struct scatterlist *partially_sent_record;
1: - u16 partially_sent_offset;
1: - bool in_tcp_sendpages;
1: - bool pending_open_record_frags;
1: - struct mutex tx_lock;
1: - long unsigned int flags;
1: - struct proto *sk_proto;
1: - void (*sk_destruct)(struct sock *);
1: - union tls_crypto_context crypto_send;
1: - union tls_crypto_context crypto_recv;
1: - struct list_head list;
1: - refcount_t refcount;
1: - struct callback_head rcu;
1: + struct tls_prot_info prot_info;
1: + u8 tx_conf : 3;
1: + u8 rx_conf : 3;
1: + int (*push_pending_record)(struct sock *, int);
1: + void (*sk_write_space)(struct sock *);
1: + void *priv_ctx_tx;
1: + void *priv_ctx_rx;
1: + struct net_device *netdev;
1: + struct cipher_context tx;
1: + struct cipher_context rx;
1: + struct scatterlist *partially_sent_record;
1: + u16 partially_sent_offset;
1: + bool in_tcp_sendpages;
1: + bool pending_open_record_frags;
1: + struct mutex tx_lock;
1: + long unsigned int flags;
1: + struct proto *sk_proto;
1: + void (*sk_destruct)(struct sock *);
1: + union tls_crypto_context crypto_send;
1: + union tls_crypto_context crypto_recv;
1: + struct list_head list;
1: + refcount_t refcount;
1: + struct callback_head rcu;
1: };
1:
1: typedef u64 (*btf_bpf_skb_get_pay_offset)(struct sk_buff *);
1: @@ -99248,32 +100493,38 @@ typedef u64 (*btf_bpf_skb_get_nlattr)(struct sk_buff *, u32, u32);
1:
1: typedef u64 (*btf_bpf_skb_get_nlattr_nest)(struct sk_buff *, u32, u32);
1:
1: -typedef u64 (*btf_bpf_skb_load_helper_8)(const struct sk_buff *, const void *, int, int);
1: +typedef u64 (*btf_bpf_skb_load_helper_8)(const struct sk_buff *, const void *,
1: + int, int);
1:
1: typedef u64 (*btf_bpf_skb_load_helper_8_no_cache)(const struct sk_buff *, int);
1:
1: -typedef u64 (*btf_bpf_skb_load_helper_16)(const struct sk_buff *, const void *, int, int);
1: +typedef u64 (*btf_bpf_skb_load_helper_16)(const struct sk_buff *, const void *,
1: + int, int);
1:
1: typedef u64 (*btf_bpf_skb_load_helper_16_no_cache)(const struct sk_buff *, int);
1:
1: -typedef u64 (*btf_bpf_skb_load_helper_32)(const struct sk_buff *, const void *, int, int);
1: +typedef u64 (*btf_bpf_skb_load_helper_32)(const struct sk_buff *, const void *,
1: + int, int);
1:
1: typedef u64 (*btf_bpf_skb_load_helper_32_no_cache)(const struct sk_buff *, int);
1:
1: struct bpf_scratchpad {
1: - union {
1: - __be32 diff[128];
1: - u8 buff[512];
1: - };
1: + union {
1: + __be32 diff[128];
1: + u8 buff[512];
1: + };
1: };
1:
1: -typedef u64 (*btf_bpf_skb_store_bytes)(struct sk_buff *, u32, const void *, u32, u64);
1: +typedef u64 (*btf_bpf_skb_store_bytes)(struct sk_buff *, u32, const void *, u32,
1: + u64);
1:
1: typedef u64 (*btf_bpf_skb_load_bytes)(const struct sk_buff *, u32, void *, u32);
1:
1: -typedef u64 (*btf_bpf_flow_dissector_load_bytes)(const struct bpf_flow_dissector *, u32, void *, u32);
1: +typedef u64 (*btf_bpf_flow_dissector_load_bytes)(
1: + const struct bpf_flow_dissector *, u32, void *, u32);
1:
1: -typedef u64 (*btf_bpf_skb_load_bytes_relative)(const struct sk_buff *, u32, void *, u32, u32);
1: +typedef u64 (*btf_bpf_skb_load_bytes_relative)(const struct sk_buff *, u32,
1: + void *, u32, u32);
1:
1: typedef u64 (*btf_bpf_skb_pull_data)(struct sk_buff *, u32);
1:
1: @@ -99292,9 +100543,9 @@ typedef u64 (*btf_bpf_csum_update)(struct sk_buff *, __wsum);
1: typedef u64 (*btf_bpf_csum_level)(struct sk_buff *, u64);
1:
1: enum {
1: - BPF_F_NEIGH = 2,
1: - BPF_F_PEER = 4,
1: - BPF_F_NEXTHOP = 8,
1: + BPF_F_NEIGH = 2,
1: + BPF_F_PEER = 4,
1: + BPF_F_NEXTHOP = 8,
1: };
1:
1: typedef u64 (*btf_bpf_clone_redirect)(struct sk_buff *, u32, u64);
1: @@ -99359,17 +100610,22 @@ typedef u64 (*btf_bpf_xdp_redirect)(u32, u64);
1:
1: typedef u64 (*btf_bpf_xdp_redirect_map)(struct bpf_map *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_skb_event_output)(struct sk_buff *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_skb_event_output)(struct sk_buff *, struct bpf_map *, u64,
1: + void *, u64);
1:
1: -typedef u64 (*btf_bpf_skb_get_tunnel_key)(struct sk_buff *, struct bpf_tunnel_key *, u32, u64);
1: +typedef u64 (*btf_bpf_skb_get_tunnel_key)(struct sk_buff *,
1: + struct bpf_tunnel_key *, u32, u64);
1:
1: typedef u64 (*btf_bpf_skb_get_tunnel_opt)(struct sk_buff *, u8 *, u32);
1:
1: -typedef u64 (*btf_bpf_skb_set_tunnel_key)(struct sk_buff *, const struct bpf_tunnel_key *, u32, u64);
1: +typedef u64 (*btf_bpf_skb_set_tunnel_key)(struct sk_buff *,
1: + const struct bpf_tunnel_key *, u32,
1: + u64);
1:
1: typedef u64 (*btf_bpf_skb_set_tunnel_opt)(struct sk_buff *, const u8 *, u32);
1:
1: -typedef u64 (*btf_bpf_skb_under_cgroup)(struct sk_buff *, struct bpf_map *, u32);
1: +typedef u64 (*btf_bpf_skb_under_cgroup)(struct sk_buff *, struct bpf_map *,
1: + u32);
1:
1: typedef u64 (*btf_bpf_skb_cgroup_id)(const struct sk_buff *);
1:
1: @@ -99379,7 +100635,8 @@ typedef u64 (*btf_bpf_sk_cgroup_id)(struct sock *);
1:
1: typedef u64 (*btf_bpf_sk_ancestor_cgroup_id)(struct sock *, int);
1:
1: -typedef u64 (*btf_bpf_xdp_event_output)(struct xdp_buff *, struct bpf_map *, u64, void *, u64);
1: +typedef u64 (*btf_bpf_xdp_event_output)(struct xdp_buff *, struct bpf_map *,
1: + u64, void *, u64);
1:
1: typedef u64 (*btf_bpf_get_socket_cookie)(struct sk_buff *);
1:
1: @@ -99395,53 +100652,77 @@ typedef u64 (*btf_bpf_get_netns_cookie_sock_addr)(struct bpf_sock_addr_kern *);
1:
1: typedef u64 (*btf_bpf_get_socket_uid)(struct sk_buff *);
1:
1: -typedef u64 (*btf_bpf_sock_addr_setsockopt)(struct bpf_sock_addr_kern *, int, int, char *, int);
1: +typedef u64 (*btf_bpf_sock_addr_setsockopt)(struct bpf_sock_addr_kern *, int,
1: + int, char *, int);
1:
1: -typedef u64 (*btf_bpf_sock_addr_getsockopt)(struct bpf_sock_addr_kern *, int, int, char *, int);
1: +typedef u64 (*btf_bpf_sock_addr_getsockopt)(struct bpf_sock_addr_kern *, int,
1: + int, char *, int);
1:
1: -typedef u64 (*btf_bpf_sock_ops_setsockopt)(struct bpf_sock_ops_kern *, int, int, char *, int);
1: +typedef u64 (*btf_bpf_sock_ops_setsockopt)(struct bpf_sock_ops_kern *, int, int,
1: + char *, int);
1:
1: -typedef u64 (*btf_bpf_sock_ops_getsockopt)(struct bpf_sock_ops_kern *, int, int, char *, int);
1: +typedef u64 (*btf_bpf_sock_ops_getsockopt)(struct bpf_sock_ops_kern *, int, int,
1: + char *, int);
1:
1: typedef u64 (*btf_bpf_sock_ops_cb_flags_set)(struct bpf_sock_ops_kern *, int);
1:
1: -typedef u64 (*btf_bpf_bind)(struct bpf_sock_addr_kern *, struct sockaddr *, int);
1: +typedef u64 (*btf_bpf_bind)(struct bpf_sock_addr_kern *, struct sockaddr *,
1: + int);
1:
1: -typedef u64 (*btf_bpf_skb_get_xfrm_state)(struct sk_buff *, u32, struct bpf_xfrm_state *, u32, u64);
1: +typedef u64 (*btf_bpf_skb_get_xfrm_state)(struct sk_buff *, u32,
1: + struct bpf_xfrm_state *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_xdp_fib_lookup)(struct xdp_buff *, struct bpf_fib_lookup *, int, u32);
1: +typedef u64 (*btf_bpf_xdp_fib_lookup)(struct xdp_buff *,
1: + struct bpf_fib_lookup *, int, u32);
1:
1: -typedef u64 (*btf_bpf_skb_fib_lookup)(struct sk_buff *, struct bpf_fib_lookup *, int, u32);
1: +typedef u64 (*btf_bpf_skb_fib_lookup)(struct sk_buff *, struct bpf_fib_lookup *,
1: + int, u32);
1:
1: typedef u64 (*btf_bpf_lwt_in_push_encap)(struct sk_buff *, u32, void *, u32);
1:
1: typedef u64 (*btf_bpf_lwt_xmit_push_encap)(struct sk_buff *, u32, void *, u32);
1:
1: -typedef u64 (*btf_bpf_lwt_seg6_store_bytes)(struct sk_buff *, u32, const void *, u32);
1: +typedef u64 (*btf_bpf_lwt_seg6_store_bytes)(struct sk_buff *, u32, const void *,
1: + u32);
1:
1: typedef u64 (*btf_bpf_lwt_seg6_action)(struct sk_buff *, u32, void *, u32);
1:
1: typedef u64 (*btf_bpf_lwt_seg6_adjust_srh)(struct sk_buff *, u32, s32);
1:
1: -typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_skc_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *,
1: + u32, u64, u64);
1:
1: -typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_sk_lookup_tcp)(struct sk_buff *, struct bpf_sock_tuple *,
1: + u32, u64, u64);
1:
1: -typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_sk_lookup_udp)(struct sk_buff *, struct bpf_sock_tuple *,
1: + u32, u64, u64);
1:
1: typedef u64 (*btf_bpf_sk_release)(struct sock *);
1:
1: -typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +typedef u64 (*btf_bpf_xdp_sk_lookup_udp)(struct xdp_buff *,
1: + struct bpf_sock_tuple *, u32, u32,
1: + u64);
1:
1: -typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +typedef u64 (*btf_bpf_xdp_skc_lookup_tcp)(struct xdp_buff *,
1: + struct bpf_sock_tuple *, u32, u32,
1: + u64);
1:
1: -typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *, struct bpf_sock_tuple *, u32, u32, u64);
1: +typedef u64 (*btf_bpf_xdp_sk_lookup_tcp)(struct xdp_buff *,
1: + struct bpf_sock_tuple *, u32, u32,
1: + u64);
1:
1: -typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_sock_addr_skc_lookup_tcp)(struct bpf_sock_addr_kern *,
1: + struct bpf_sock_tuple *, u32,
1: + u64, u64);
1:
1: -typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_sock_addr_sk_lookup_tcp)(struct bpf_sock_addr_kern *,
1: + struct bpf_sock_tuple *, u32,
1: + u64, u64);
1:
1: -typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *, struct bpf_sock_tuple *, u32, u64, u64);
1: +typedef u64 (*btf_bpf_sock_addr_sk_lookup_udp)(struct bpf_sock_addr_kern *,
1: + struct bpf_sock_tuple *, u32,
1: + u64, u64);
1:
1: typedef u64 (*btf_bpf_tcp_sock)(struct sock *);
1:
1: @@ -99449,25 +100730,34 @@ typedef u64 (*btf_bpf_get_listener_sock)(struct sock *);
1:
1: typedef u64 (*btf_bpf_skb_ecn_set_ce)(struct sk_buff *);
1:
1: -typedef u64 (*btf_bpf_tcp_check_syncookie)(struct sock *, void *, u32, struct tcphdr *, u32);
1: +typedef u64 (*btf_bpf_tcp_check_syncookie)(struct sock *, void *, u32,
1: + struct tcphdr *, u32);
1:
1: -typedef u64 (*btf_bpf_tcp_gen_syncookie)(struct sock *, void *, u32, struct tcphdr *, u32);
1: +typedef u64 (*btf_bpf_tcp_gen_syncookie)(struct sock *, void *, u32,
1: + struct tcphdr *, u32);
1:
1: typedef u64 (*btf_bpf_sk_assign)(struct sk_buff *, struct sock *, u64);
1:
1: -typedef u64 (*btf_bpf_sock_ops_load_hdr_opt)(struct bpf_sock_ops_kern *, void *, u32, u64);
1: +typedef u64 (*btf_bpf_sock_ops_load_hdr_opt)(struct bpf_sock_ops_kern *, void *,
1: + u32, u64);
1:
1: -typedef u64 (*btf_bpf_sock_ops_store_hdr_opt)(struct bpf_sock_ops_kern *, const void *, u32, u64);
1: +typedef u64 (*btf_bpf_sock_ops_store_hdr_opt)(struct bpf_sock_ops_kern *,
1: + const void *, u32, u64);
1:
1: -typedef u64 (*btf_bpf_sock_ops_reserve_hdr_opt)(struct bpf_sock_ops_kern *, u32, u64);
1: +typedef u64 (*btf_bpf_sock_ops_reserve_hdr_opt)(struct bpf_sock_ops_kern *, u32,
1: + u64);
1:
1: -typedef u64 (*btf_sk_select_reuseport)(struct sk_reuseport_kern *, struct bpf_map *, void *, u32);
1: +typedef u64 (*btf_sk_select_reuseport)(struct sk_reuseport_kern *,
1: + struct bpf_map *, void *, u32);
1:
1: -typedef u64 (*btf_sk_reuseport_load_bytes)(const struct sk_reuseport_kern *, u32, void *, u32);
1: +typedef u64 (*btf_sk_reuseport_load_bytes)(const struct sk_reuseport_kern *,
1: + u32, void *, u32);
1:
1: -typedef u64 (*btf_sk_reuseport_load_bytes_relative)(const struct sk_reuseport_kern *, u32, void *, u32, u32);
1: +typedef u64 (*btf_sk_reuseport_load_bytes_relative)(
1: + const struct sk_reuseport_kern *, u32, void *, u32, u32);
1:
1: -typedef u64 (*btf_bpf_sk_lookup_assign)(struct bpf_sk_lookup_kern *, struct sock *, u64);
1: +typedef u64 (*btf_bpf_sk_lookup_assign)(struct bpf_sk_lookup_kern *,
1: + struct sock *, u64);
1:
1: typedef u64 (*btf_bpf_skc_to_tcp6_sock)(struct sock *);
1:
1: @@ -99482,464 +100772,466 @@ typedef u64 (*btf_bpf_skc_to_udp6_sock)(struct sock *);
1: struct bpf_dtab_netdev___2;
1:
1: enum {
1: - INET_DIAG_REQ_NONE = 0,
1: - INET_DIAG_REQ_BYTECODE = 1,
1: - INET_DIAG_REQ_SK_BPF_STORAGES = 2,
1: - INET_DIAG_REQ_PROTOCOL = 3,
1: - __INET_DIAG_REQ_MAX = 4,
1: + INET_DIAG_REQ_NONE = 0,
1: + INET_DIAG_REQ_BYTECODE = 1,
1: + INET_DIAG_REQ_SK_BPF_STORAGES = 2,
1: + INET_DIAG_REQ_PROTOCOL = 3,
1: + __INET_DIAG_REQ_MAX = 4,
1: };
1:
1: struct sock_diag_req {
1: - __u8 sdiag_family;
1: - __u8 sdiag_protocol;
1: + __u8 sdiag_family;
1: + __u8 sdiag_protocol;
1: };
1:
1: struct sock_diag_handler {
1: - __u8 family;
1: - int (*dump)(struct sk_buff *, struct nlmsghdr *);
1: - int (*get_info)(struct sk_buff *, struct sock *);
1: - int (*destroy)(struct sk_buff *, struct nlmsghdr *);
1: + __u8 family;
1: + int (*dump)(struct sk_buff *, struct nlmsghdr *);
1: + int (*get_info)(struct sk_buff *, struct sock *);
1: + int (*destroy)(struct sk_buff *, struct nlmsghdr *);
1: };
1:
1: struct broadcast_sk {
1: - struct sock *sk;
1: - struct work_struct work;
1: + struct sock *sk;
1: + struct work_struct work;
1: };
1:
1: typedef int gifconf_func_t(struct net_device *, char *, int, int);
1:
1: struct hwtstamp_config {
1: - int flags;
1: - int tx_type;
1: - int rx_filter;
1: + int flags;
1: + int tx_type;
1: + int rx_filter;
1: };
1:
1: enum hwtstamp_tx_types {
1: - HWTSTAMP_TX_OFF = 0,
1: - HWTSTAMP_TX_ON = 1,
1: - HWTSTAMP_TX_ONESTEP_SYNC = 2,
1: - HWTSTAMP_TX_ONESTEP_P2P = 3,
1: - __HWTSTAMP_TX_CNT = 4,
1: + HWTSTAMP_TX_OFF = 0,
1: + HWTSTAMP_TX_ON = 1,
1: + HWTSTAMP_TX_ONESTEP_SYNC = 2,
1: + HWTSTAMP_TX_ONESTEP_P2P = 3,
1: + __HWTSTAMP_TX_CNT = 4,
1: };
1:
1: enum hwtstamp_rx_filters {
1: - HWTSTAMP_FILTER_NONE = 0,
1: - HWTSTAMP_FILTER_ALL = 1,
1: - HWTSTAMP_FILTER_SOME = 2,
1: - HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3,
1: - HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4,
1: - HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5,
1: - HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6,
1: - HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7,
1: - HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8,
1: - HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9,
1: - HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10,
1: - HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11,
1: - HWTSTAMP_FILTER_PTP_V2_EVENT = 12,
1: - HWTSTAMP_FILTER_PTP_V2_SYNC = 13,
1: - HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14,
1: - HWTSTAMP_FILTER_NTP_ALL = 15,
1: - __HWTSTAMP_FILTER_CNT = 16,
1: + HWTSTAMP_FILTER_NONE = 0,
1: + HWTSTAMP_FILTER_ALL = 1,
1: + HWTSTAMP_FILTER_SOME = 2,
1: + HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3,
1: + HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4,
1: + HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5,
1: + HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6,
1: + HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7,
1: + HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8,
1: + HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9,
1: + HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10,
1: + HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11,
1: + HWTSTAMP_FILTER_PTP_V2_EVENT = 12,
1: + HWTSTAMP_FILTER_PTP_V2_SYNC = 13,
1: + HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14,
1: + HWTSTAMP_FILTER_NTP_ALL = 15,
1: + __HWTSTAMP_FILTER_CNT = 16,
1: };
1:
1: struct tso_t {
1: - int next_frag_idx;
1: - int size;
1: - void *data;
1: - u16 ip_id;
1: - u8 tlen;
1: - bool ipv6;
1: - u32 tcp_seq;
1: + int next_frag_idx;
1: + int size;
1: + void *data;
1: + u16 ip_id;
1: + u8 tlen;
1: + bool ipv6;
1: + u32 tcp_seq;
1: };
1:
1: struct fib_notifier_info {
1: - int family;
1: - struct netlink_ext_ack *extack;
1: + int family;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: enum fib_event_type {
1: - FIB_EVENT_ENTRY_REPLACE = 0,
1: - FIB_EVENT_ENTRY_APPEND = 1,
1: - FIB_EVENT_ENTRY_ADD = 2,
1: - FIB_EVENT_ENTRY_DEL = 3,
1: - FIB_EVENT_RULE_ADD = 4,
1: - FIB_EVENT_RULE_DEL = 5,
1: - FIB_EVENT_NH_ADD = 6,
1: - FIB_EVENT_NH_DEL = 7,
1: - FIB_EVENT_VIF_ADD = 8,
1: - FIB_EVENT_VIF_DEL = 9,
1: + FIB_EVENT_ENTRY_REPLACE = 0,
1: + FIB_EVENT_ENTRY_APPEND = 1,
1: + FIB_EVENT_ENTRY_ADD = 2,
1: + FIB_EVENT_ENTRY_DEL = 3,
1: + FIB_EVENT_RULE_ADD = 4,
1: + FIB_EVENT_RULE_DEL = 5,
1: + FIB_EVENT_NH_ADD = 6,
1: + FIB_EVENT_NH_DEL = 7,
1: + FIB_EVENT_VIF_ADD = 8,
1: + FIB_EVENT_VIF_DEL = 9,
1: };
1:
1: struct fib_notifier_net {
1: - struct list_head fib_notifier_ops;
1: - struct atomic_notifier_head fib_chain;
1: + struct list_head fib_notifier_ops;
1: + struct atomic_notifier_head fib_chain;
1: };
1:
1: struct xdp_attachment_info {
1: - struct bpf_prog *prog;
1: - u32 flags;
1: + struct bpf_prog *prog;
1: + u32 flags;
1: };
1:
1: struct xdp_buff_xsk;
1:
1: struct xsk_buff_pool {
1: - struct device *dev;
1: - struct net_device *netdev;
1: - struct list_head xsk_tx_list;
1: - spinlock_t xsk_tx_list_lock;
1: - refcount_t users;
1: - struct xdp_umem *umem;
1: - struct work_struct work;
1: - struct list_head free_list;
1: - u32 heads_cnt;
1: - u16 queue_id;
1: - long: 16;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - struct xsk_queue *fq;
1: - struct xsk_queue *cq;
1: - dma_addr_t *dma_pages;
1: - struct xdp_buff_xsk *heads;
1: - u64 chunk_mask;
1: - u64 addrs_cnt;
1: - u32 free_list_cnt;
1: - u32 dma_pages_cnt;
1: - u32 free_heads_cnt;
1: - u32 headroom;
1: - u32 chunk_size;
1: - u32 frame_len;
1: - u8 cached_need_wakeup;
1: - bool uses_need_wakeup;
1: - bool dma_need_sync;
1: - bool unaligned;
1: - void *addrs;
1: - spinlock_t cq_lock;
1: - struct xdp_buff_xsk *free_heads[0];
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct device *dev;
1: + struct net_device *netdev;
1: + struct list_head xsk_tx_list;
1: + spinlock_t xsk_tx_list_lock;
1: + refcount_t users;
1: + struct xdp_umem *umem;
1: + struct work_struct work;
1: + struct list_head free_list;
1: + u32 heads_cnt;
1: + u16 queue_id;
1: + long : 16;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + struct xsk_queue *fq;
1: + struct xsk_queue *cq;
1: + dma_addr_t *dma_pages;
1: + struct xdp_buff_xsk *heads;
1: + u64 chunk_mask;
1: + u64 addrs_cnt;
1: + u32 free_list_cnt;
1: + u32 dma_pages_cnt;
1: + u32 free_heads_cnt;
1: + u32 headroom;
1: + u32 chunk_size;
1: + u32 frame_len;
1: + u8 cached_need_wakeup;
1: + bool uses_need_wakeup;
1: + bool dma_need_sync;
1: + bool unaligned;
1: + void *addrs;
1: + spinlock_t cq_lock;
1: + struct xdp_buff_xsk *free_heads[0];
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xdp_buff_xsk {
1: - struct xdp_buff xdp;
1: - dma_addr_t dma;
1: - dma_addr_t frame_dma;
1: - struct xsk_buff_pool *pool;
1: - bool unaligned;
1: - u64 orig_addr;
1: - struct list_head free_list_node;
1: + struct xdp_buff xdp;
1: + dma_addr_t dma;
1: + dma_addr_t frame_dma;
1: + struct xsk_buff_pool *pool;
1: + bool unaligned;
1: + u64 orig_addr;
1: + struct list_head free_list_node;
1: };
1:
1: struct flow_match_meta {
1: - struct flow_dissector_key_meta *key;
1: - struct flow_dissector_key_meta *mask;
1: + struct flow_dissector_key_meta *key;
1: + struct flow_dissector_key_meta *mask;
1: };
1:
1: struct flow_match_basic {
1: - struct flow_dissector_key_basic *key;
1: - struct flow_dissector_key_basic *mask;
1: + struct flow_dissector_key_basic *key;
1: + struct flow_dissector_key_basic *mask;
1: };
1:
1: struct flow_match_control {
1: - struct flow_dissector_key_control *key;
1: - struct flow_dissector_key_control *mask;
1: + struct flow_dissector_key_control *key;
1: + struct flow_dissector_key_control *mask;
1: };
1:
1: struct flow_match_eth_addrs {
1: - struct flow_dissector_key_eth_addrs *key;
1: - struct flow_dissector_key_eth_addrs *mask;
1: + struct flow_dissector_key_eth_addrs *key;
1: + struct flow_dissector_key_eth_addrs *mask;
1: };
1:
1: struct flow_match_vlan {
1: - struct flow_dissector_key_vlan *key;
1: - struct flow_dissector_key_vlan *mask;
1: + struct flow_dissector_key_vlan *key;
1: + struct flow_dissector_key_vlan *mask;
1: };
1:
1: struct flow_match_ipv4_addrs {
1: - struct flow_dissector_key_ipv4_addrs *key;
1: - struct flow_dissector_key_ipv4_addrs *mask;
1: + struct flow_dissector_key_ipv4_addrs *key;
1: + struct flow_dissector_key_ipv4_addrs *mask;
1: };
1:
1: struct flow_match_ipv6_addrs {
1: - struct flow_dissector_key_ipv6_addrs *key;
1: - struct flow_dissector_key_ipv6_addrs *mask;
1: + struct flow_dissector_key_ipv6_addrs *key;
1: + struct flow_dissector_key_ipv6_addrs *mask;
1: };
1:
1: struct flow_match_ip {
1: - struct flow_dissector_key_ip *key;
1: - struct flow_dissector_key_ip *mask;
1: + struct flow_dissector_key_ip *key;
1: + struct flow_dissector_key_ip *mask;
1: };
1:
1: struct flow_match_ports {
1: - struct flow_dissector_key_ports *key;
1: - struct flow_dissector_key_ports *mask;
1: + struct flow_dissector_key_ports *key;
1: + struct flow_dissector_key_ports *mask;
1: };
1:
1: struct flow_match_icmp {
1: - struct flow_dissector_key_icmp *key;
1: - struct flow_dissector_key_icmp *mask;
1: + struct flow_dissector_key_icmp *key;
1: + struct flow_dissector_key_icmp *mask;
1: };
1:
1: struct flow_match_tcp {
1: - struct flow_dissector_key_tcp *key;
1: - struct flow_dissector_key_tcp *mask;
1: + struct flow_dissector_key_tcp *key;
1: + struct flow_dissector_key_tcp *mask;
1: };
1:
1: struct flow_match_mpls {
1: - struct flow_dissector_key_mpls *key;
1: - struct flow_dissector_key_mpls *mask;
1: + struct flow_dissector_key_mpls *key;
1: + struct flow_dissector_key_mpls *mask;
1: };
1:
1: struct flow_match_enc_keyid {
1: - struct flow_dissector_key_keyid *key;
1: - struct flow_dissector_key_keyid *mask;
1: + struct flow_dissector_key_keyid *key;
1: + struct flow_dissector_key_keyid *mask;
1: };
1:
1: struct flow_match_enc_opts {
1: - struct flow_dissector_key_enc_opts *key;
1: - struct flow_dissector_key_enc_opts *mask;
1: + struct flow_dissector_key_enc_opts *key;
1: + struct flow_dissector_key_enc_opts *mask;
1: };
1:
1: struct flow_match_ct {
1: - struct flow_dissector_key_ct *key;
1: - struct flow_dissector_key_ct *mask;
1: + struct flow_dissector_key_ct *key;
1: + struct flow_dissector_key_ct *mask;
1: };
1:
1: enum flow_block_command {
1: - FLOW_BLOCK_BIND = 0,
1: - FLOW_BLOCK_UNBIND = 1,
1: + FLOW_BLOCK_BIND = 0,
1: + FLOW_BLOCK_UNBIND = 1,
1: };
1:
1: enum flow_block_binder_type {
1: - FLOW_BLOCK_BINDER_TYPE_UNSPEC = 0,
1: - FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS = 1,
1: - FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS = 2,
1: - FLOW_BLOCK_BINDER_TYPE_RED_EARLY_DROP = 3,
1: - FLOW_BLOCK_BINDER_TYPE_RED_MARK = 4,
1: + FLOW_BLOCK_BINDER_TYPE_UNSPEC = 0,
1: + FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS = 1,
1: + FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS = 2,
1: + FLOW_BLOCK_BINDER_TYPE_RED_EARLY_DROP = 3,
1: + FLOW_BLOCK_BINDER_TYPE_RED_MARK = 4,
1: };
1:
1: struct flow_block_offload {
1: - enum flow_block_command command;
1: - enum flow_block_binder_type binder_type;
1: - bool block_shared;
1: - bool unlocked_driver_cb;
1: - struct net *net;
1: - struct flow_block *block;
1: - struct list_head cb_list;
1: - struct list_head *driver_block_list;
1: - struct netlink_ext_ack *extack;
1: - struct Qdisc *sch;
1: + enum flow_block_command command;
1: + enum flow_block_binder_type binder_type;
1: + bool block_shared;
1: + bool unlocked_driver_cb;
1: + struct net *net;
1: + struct flow_block *block;
1: + struct list_head cb_list;
1: + struct list_head *driver_block_list;
1: + struct netlink_ext_ack *extack;
1: + struct Qdisc *sch;
1: };
1:
1: struct flow_block_cb;
1:
1: struct flow_block_indr {
1: - struct list_head list;
1: - struct net_device *dev;
1: - struct Qdisc *sch;
1: - enum flow_block_binder_type binder_type;
1: - void *data;
1: - void *cb_priv;
1: - void (*cleanup)(struct flow_block_cb *);
1: + struct list_head list;
1: + struct net_device *dev;
1: + struct Qdisc *sch;
1: + enum flow_block_binder_type binder_type;
1: + void *data;
1: + void *cb_priv;
1: + void (*cleanup)(struct flow_block_cb *);
1: };
1:
1: struct flow_block_cb {
1: - struct list_head driver_list;
1: - struct list_head list;
1: - flow_setup_cb_t *cb;
1: - void *cb_ident;
1: - void *cb_priv;
1: - void (*release)(void *);
1: - struct flow_block_indr indr;
1: - unsigned int refcnt;
1: + struct list_head driver_list;
1: + struct list_head list;
1: + flow_setup_cb_t *cb;
1: + void *cb_ident;
1: + void *cb_priv;
1: + void (*release)(void *);
1: + struct flow_block_indr indr;
1: + unsigned int refcnt;
1: };
1:
1: -typedef int flow_indr_block_bind_cb_t(struct net_device *, struct Qdisc *, void *, enum tc_setup_type, void *, void *, void (*)(struct flow_block_cb *));
1: +typedef int flow_indr_block_bind_cb_t(struct net_device *, struct Qdisc *,
1: + void *, enum tc_setup_type, void *,
1: + void *, void (*)(struct flow_block_cb *));
1:
1: struct flow_indr_dev {
1: - struct list_head list;
1: - flow_indr_block_bind_cb_t *cb;
1: - void *cb_priv;
1: - refcount_t refcnt;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + flow_indr_block_bind_cb_t *cb;
1: + void *cb_priv;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: };
1:
1: struct rx_queue_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct netdev_rx_queue *, char *);
1: - ssize_t (*store)(struct netdev_rx_queue *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct netdev_rx_queue *, char *);
1: + ssize_t (*store)(struct netdev_rx_queue *, const char *, size_t);
1: };
1:
1: struct netdev_queue_attribute {
1: - struct attribute attr;
1: - ssize_t (*show)(struct netdev_queue *, char *);
1: - ssize_t (*store)(struct netdev_queue *, const char *, size_t);
1: + struct attribute attr;
1: + ssize_t (*show)(struct netdev_queue *, char *);
1: + ssize_t (*store)(struct netdev_queue *, const char *, size_t);
1: };
1:
1: enum __sk_action {
1: - __SK_DROP = 0,
1: - __SK_PASS = 1,
1: - __SK_REDIRECT = 2,
1: - __SK_NONE = 3,
1: + __SK_DROP = 0,
1: + __SK_PASS = 1,
1: + __SK_REDIRECT = 2,
1: + __SK_NONE = 3,
1: };
1:
1: struct sk_psock_progs {
1: - struct bpf_prog *msg_parser;
1: - struct bpf_prog *skb_parser;
1: - struct bpf_prog *skb_verdict;
1: + struct bpf_prog *msg_parser;
1: + struct bpf_prog *skb_parser;
1: + struct bpf_prog *skb_verdict;
1: };
1:
1: enum sk_psock_state_bits {
1: - SK_PSOCK_TX_ENABLED = 0,
1: + SK_PSOCK_TX_ENABLED = 0,
1: };
1:
1: struct sk_psock_link {
1: - struct list_head list;
1: - struct bpf_map *map;
1: - void *link_raw;
1: + struct list_head list;
1: + struct bpf_map *map;
1: + void *link_raw;
1: };
1:
1: struct sk_psock_parser {
1: - struct strparser strp;
1: - bool enabled;
1: - void (*saved_data_ready)(struct sock *);
1: + struct strparser strp;
1: + bool enabled;
1: + void (*saved_data_ready)(struct sock *);
1: };
1:
1: struct sk_psock_work_state {
1: - struct sk_buff *skb;
1: - u32 len;
1: - u32 off;
1: + struct sk_buff *skb;
1: + u32 len;
1: + u32 off;
1: };
1:
1: struct sk_psock {
1: - struct sock *sk;
1: - struct sock *sk_redir;
1: - u32 apply_bytes;
1: - u32 cork_bytes;
1: - u32 eval;
1: - struct sk_msg *cork;
1: - struct sk_psock_progs progs;
1: - struct sk_psock_parser parser;
1: - struct sk_buff_head ingress_skb;
1: - struct list_head ingress_msg;
1: - long unsigned int state;
1: - struct list_head link;
1: - spinlock_t link_lock;
1: - refcount_t refcnt;
1: - void (*saved_unhash)(struct sock *);
1: - void (*saved_close)(struct sock *, long int);
1: - void (*saved_write_space)(struct sock *);
1: - struct proto *sk_proto;
1: - struct sk_psock_work_state work_state;
1: - struct work_struct work;
1: - union {
1: - struct callback_head rcu;
1: - struct work_struct gc;
1: - };
1: + struct sock *sk;
1: + struct sock *sk_redir;
1: + u32 apply_bytes;
1: + u32 cork_bytes;
1: + u32 eval;
1: + struct sk_msg *cork;
1: + struct sk_psock_progs progs;
1: + struct sk_psock_parser parser;
1: + struct sk_buff_head ingress_skb;
1: + struct list_head ingress_msg;
1: + long unsigned int state;
1: + struct list_head link;
1: + spinlock_t link_lock;
1: + refcount_t refcnt;
1: + void (*saved_unhash)(struct sock *);
1: + void (*saved_close)(struct sock *, long int);
1: + void (*saved_write_space)(struct sock *);
1: + struct proto *sk_proto;
1: + struct sk_psock_work_state work_state;
1: + struct work_struct work;
1: + union {
1: + struct callback_head rcu;
1: + struct work_struct gc;
1: + };
1: };
1:
1: struct inet6_ifaddr {
1: - struct in6_addr addr;
1: - __u32 prefix_len;
1: - __u32 rt_priority;
1: - __u32 valid_lft;
1: - __u32 prefered_lft;
1: - refcount_t refcnt;
1: - spinlock_t lock;
1: - int state;
1: - __u32 flags;
1: - __u8 dad_probes;
1: - __u8 stable_privacy_retry;
1: - __u16 scope;
1: - __u64 dad_nonce;
1: - long unsigned int cstamp;
1: - long unsigned int tstamp;
1: - struct delayed_work dad_work;
1: - struct inet6_dev *idev;
1: - struct fib6_info *rt;
1: - struct hlist_node addr_lst;
1: - struct list_head if_list;
1: - struct list_head tmp_list;
1: - struct inet6_ifaddr *ifpub;
1: - int regen_count;
1: - bool tokenized;
1: - struct callback_head rcu;
1: - struct in6_addr peer_addr;
1: + struct in6_addr addr;
1: + __u32 prefix_len;
1: + __u32 rt_priority;
1: + __u32 valid_lft;
1: + __u32 prefered_lft;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + int state;
1: + __u32 flags;
1: + __u8 dad_probes;
1: + __u8 stable_privacy_retry;
1: + __u16 scope;
1: + __u64 dad_nonce;
1: + long unsigned int cstamp;
1: + long unsigned int tstamp;
1: + struct delayed_work dad_work;
1: + struct inet6_dev *idev;
1: + struct fib6_info *rt;
1: + struct hlist_node addr_lst;
1: + struct list_head if_list;
1: + struct list_head tmp_list;
1: + struct inet6_ifaddr *ifpub;
1: + int regen_count;
1: + bool tokenized;
1: + struct callback_head rcu;
1: + struct in6_addr peer_addr;
1: };
1:
1: struct fib_rule_uid_range {
1: - __u32 start;
1: - __u32 end;
1: -};
1: -
1: -enum {
1: - FRA_UNSPEC = 0,
1: - FRA_DST = 1,
1: - FRA_SRC = 2,
1: - FRA_IIFNAME = 3,
1: - FRA_GOTO = 4,
1: - FRA_UNUSED2 = 5,
1: - FRA_PRIORITY = 6,
1: - FRA_UNUSED3 = 7,
1: - FRA_UNUSED4 = 8,
1: - FRA_UNUSED5 = 9,
1: - FRA_FWMARK = 10,
1: - FRA_FLOW = 11,
1: - FRA_TUN_ID = 12,
1: - FRA_SUPPRESS_IFGROUP = 13,
1: - FRA_SUPPRESS_PREFIXLEN = 14,
1: - FRA_TABLE = 15,
1: - FRA_FWMASK = 16,
1: - FRA_OIFNAME = 17,
1: - FRA_PAD = 18,
1: - FRA_L3MDEV = 19,
1: - FRA_UID_RANGE = 20,
1: - FRA_PROTOCOL = 21,
1: - FRA_IP_PROTO = 22,
1: - FRA_SPORT_RANGE = 23,
1: - FRA_DPORT_RANGE = 24,
1: - __FRA_MAX = 25,
1: -};
1: -
1: -enum {
1: - FR_ACT_UNSPEC = 0,
1: - FR_ACT_TO_TBL = 1,
1: - FR_ACT_GOTO = 2,
1: - FR_ACT_NOP = 3,
1: - FR_ACT_RES3 = 4,
1: - FR_ACT_RES4 = 5,
1: - FR_ACT_BLACKHOLE = 6,
1: - FR_ACT_UNREACHABLE = 7,
1: - FR_ACT_PROHIBIT = 8,
1: - __FR_ACT_MAX = 9,
1: + __u32 start;
1: + __u32 end;
1: +};
1: +
1: +enum {
1: + FRA_UNSPEC = 0,
1: + FRA_DST = 1,
1: + FRA_SRC = 2,
1: + FRA_IIFNAME = 3,
1: + FRA_GOTO = 4,
1: + FRA_UNUSED2 = 5,
1: + FRA_PRIORITY = 6,
1: + FRA_UNUSED3 = 7,
1: + FRA_UNUSED4 = 8,
1: + FRA_UNUSED5 = 9,
1: + FRA_FWMARK = 10,
1: + FRA_FLOW = 11,
1: + FRA_TUN_ID = 12,
1: + FRA_SUPPRESS_IFGROUP = 13,
1: + FRA_SUPPRESS_PREFIXLEN = 14,
1: + FRA_TABLE = 15,
1: + FRA_FWMASK = 16,
1: + FRA_OIFNAME = 17,
1: + FRA_PAD = 18,
1: + FRA_L3MDEV = 19,
1: + FRA_UID_RANGE = 20,
1: + FRA_PROTOCOL = 21,
1: + FRA_IP_PROTO = 22,
1: + FRA_SPORT_RANGE = 23,
1: + FRA_DPORT_RANGE = 24,
1: + __FRA_MAX = 25,
1: +};
1: +
1: +enum {
1: + FR_ACT_UNSPEC = 0,
1: + FR_ACT_TO_TBL = 1,
1: + FR_ACT_GOTO = 2,
1: + FR_ACT_NOP = 3,
1: + FR_ACT_RES3 = 4,
1: + FR_ACT_RES4 = 5,
1: + FR_ACT_BLACKHOLE = 6,
1: + FR_ACT_UNREACHABLE = 7,
1: + FR_ACT_PROHIBIT = 8,
1: + __FR_ACT_MAX = 9,
1: };
1:
1: struct fib_rule_notifier_info {
1: - struct fib_notifier_info info;
1: - struct fib_rule *rule;
1: + struct fib_notifier_info info;
1: + struct fib_rule *rule;
1: };
1:
1: struct trace_event_raw_kfree_skb {
1: - struct trace_entry ent;
1: - void *skbaddr;
1: - void *location;
1: - short unsigned int protocol;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + void *location;
1: + short unsigned int protocol;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_consume_skb {
1: - struct trace_entry ent;
1: - void *skbaddr;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_skb_copy_datagram_iovec {
1: - struct trace_entry ent;
1: - const void *skbaddr;
1: - int len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const void *skbaddr;
1: + int len;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_kfree_skb {};
1: @@ -99952,113 +101244,117 @@ typedef void (*btf_trace_kfree_skb)(void *, struct sk_buff *, void *);
1:
1: typedef void (*btf_trace_consume_skb)(void *, struct sk_buff *);
1:
1: -typedef void (*btf_trace_skb_copy_datagram_iovec)(void *, const struct sk_buff *, int);
1: +typedef void (*btf_trace_skb_copy_datagram_iovec)(void *,
1: + const struct sk_buff *, int);
1:
1: struct trace_event_raw_net_dev_start_xmit {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u16 queue_mapping;
1: - const void *skbaddr;
1: - bool vlan_tagged;
1: - u16 vlan_proto;
1: - u16 vlan_tci;
1: - u16 protocol;
1: - u8 ip_summed;
1: - unsigned int len;
1: - unsigned int data_len;
1: - int network_offset;
1: - bool transport_offset_valid;
1: - int transport_offset;
1: - u8 tx_flags;
1: - u16 gso_size;
1: - u16 gso_segs;
1: - u16 gso_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u16 queue_mapping;
1: + const void *skbaddr;
1: + bool vlan_tagged;
1: + u16 vlan_proto;
1: + u16 vlan_tci;
1: + u16 protocol;
1: + u8 ip_summed;
1: + unsigned int len;
1: + unsigned int data_len;
1: + int network_offset;
1: + bool transport_offset_valid;
1: + int transport_offset;
1: + u8 tx_flags;
1: + u16 gso_size;
1: + u16 gso_segs;
1: + u16 gso_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_net_dev_xmit {
1: - struct trace_entry ent;
1: - void *skbaddr;
1: - unsigned int len;
1: - int rc;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + unsigned int len;
1: + int rc;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_net_dev_xmit_timeout {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - u32 __data_loc_driver;
1: - int queue_index;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u32 __data_loc_driver;
1: + int queue_index;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_net_dev_template {
1: - struct trace_entry ent;
1: - void *skbaddr;
1: - unsigned int len;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + void *skbaddr;
1: + unsigned int len;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_net_dev_rx_verbose_template {
1: - struct trace_entry ent;
1: - u32 __data_loc_name;
1: - unsigned int napi_id;
1: - u16 queue_mapping;
1: - const void *skbaddr;
1: - bool vlan_tagged;
1: - u16 vlan_proto;
1: - u16 vlan_tci;
1: - u16 protocol;
1: - u8 ip_summed;
1: - u32 hash;
1: - bool l4_hash;
1: - unsigned int len;
1: - unsigned int data_len;
1: - unsigned int truesize;
1: - bool mac_header_valid;
1: - int mac_header;
1: - unsigned char nr_frags;
1: - u16 gso_size;
1: - u16 gso_type;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + unsigned int napi_id;
1: + u16 queue_mapping;
1: + const void *skbaddr;
1: + bool vlan_tagged;
1: + u16 vlan_proto;
1: + u16 vlan_tci;
1: + u16 protocol;
1: + u8 ip_summed;
1: + u32 hash;
1: + bool l4_hash;
1: + unsigned int len;
1: + unsigned int data_len;
1: + unsigned int truesize;
1: + bool mac_header_valid;
1: + int mac_header;
1: + unsigned char nr_frags;
1: + u16 gso_size;
1: + u16 gso_type;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_net_dev_rx_exit_template {
1: - struct trace_entry ent;
1: - int ret;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int ret;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_net_dev_start_xmit {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_net_dev_xmit {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_net_dev_xmit_timeout {
1: - u32 name;
1: - u32 driver;
1: + u32 name;
1: + u32 driver;
1: };
1:
1: struct trace_event_data_offsets_net_dev_template {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_net_dev_rx_verbose_template {
1: - u32 name;
1: + u32 name;
1: };
1:
1: struct trace_event_data_offsets_net_dev_rx_exit_template {};
1:
1: -typedef void (*btf_trace_net_dev_start_xmit)(void *, const struct sk_buff *, const struct net_device *);
1: +typedef void (*btf_trace_net_dev_start_xmit)(void *, const struct sk_buff *,
1: + const struct net_device *);
1:
1: -typedef void (*btf_trace_net_dev_xmit)(void *, struct sk_buff *, int, struct net_device *, unsigned int);
1: +typedef void (*btf_trace_net_dev_xmit)(void *, struct sk_buff *, int,
1: + struct net_device *, unsigned int);
1:
1: -typedef void (*btf_trace_net_dev_xmit_timeout)(void *, struct net_device *, int);
1: +typedef void (*btf_trace_net_dev_xmit_timeout)(void *, struct net_device *,
1: + int);
1:
1: typedef void (*btf_trace_net_dev_queue)(void *, struct sk_buff *);
1:
1: @@ -100068,11 +101364,14 @@ typedef void (*btf_trace_netif_rx)(void *, struct sk_buff *);
1:
1: typedef void (*btf_trace_napi_gro_frags_entry)(void *, const struct sk_buff *);
1:
1: -typedef void (*btf_trace_napi_gro_receive_entry)(void *, const struct sk_buff *);
1: +typedef void (*btf_trace_napi_gro_receive_entry)(void *,
1: + const struct sk_buff *);
1:
1: -typedef void (*btf_trace_netif_receive_skb_entry)(void *, const struct sk_buff *);
1: +typedef void (*btf_trace_netif_receive_skb_entry)(void *,
1: + const struct sk_buff *);
1:
1: -typedef void (*btf_trace_netif_receive_skb_list_entry)(void *, const struct sk_buff *);
1: +typedef void (*btf_trace_netif_receive_skb_list_entry)(void *,
1: + const struct sk_buff *);
1:
1: typedef void (*btf_trace_netif_rx_entry)(void *, const struct sk_buff *);
1:
1: @@ -100091,64 +101390,64 @@ typedef void (*btf_trace_netif_rx_ni_exit)(void *, int);
1: typedef void (*btf_trace_netif_receive_skb_list_exit)(void *, int);
1:
1: struct trace_event_raw_napi_poll {
1: - struct trace_entry ent;
1: - struct napi_struct *napi;
1: - u32 __data_loc_dev_name;
1: - int work;
1: - int budget;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct napi_struct *napi;
1: + u32 __data_loc_dev_name;
1: + int work;
1: + int budget;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_napi_poll {
1: - u32 dev_name;
1: + u32 dev_name;
1: };
1:
1: typedef void (*btf_trace_napi_poll)(void *, struct napi_struct *, int, int);
1:
1: enum tcp_ca_state {
1: - TCP_CA_Open = 0,
1: - TCP_CA_Disorder = 1,
1: - TCP_CA_CWR = 2,
1: - TCP_CA_Recovery = 3,
1: - TCP_CA_Loss = 4,
1: + TCP_CA_Open = 0,
1: + TCP_CA_Disorder = 1,
1: + TCP_CA_CWR = 2,
1: + TCP_CA_Recovery = 3,
1: + TCP_CA_Loss = 4,
1: };
1:
1: struct trace_event_raw_sock_rcvqueue_full {
1: - struct trace_entry ent;
1: - int rmem_alloc;
1: - unsigned int truesize;
1: - int sk_rcvbuf;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int rmem_alloc;
1: + unsigned int truesize;
1: + int sk_rcvbuf;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_sock_exceed_buf_limit {
1: - struct trace_entry ent;
1: - char name[32];
1: - long int *sysctl_mem;
1: - long int allocated;
1: - int sysctl_rmem;
1: - int rmem_alloc;
1: - int sysctl_wmem;
1: - int wmem_alloc;
1: - int wmem_queued;
1: - int kind;
1: - char __data[0];
1: + struct trace_entry ent;
1: + char name[32];
1: + long int *sysctl_mem;
1: + long int allocated;
1: + int sysctl_rmem;
1: + int rmem_alloc;
1: + int sysctl_wmem;
1: + int wmem_alloc;
1: + int wmem_queued;
1: + int kind;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_inet_sock_set_state {
1: - struct trace_entry ent;
1: - const void *skaddr;
1: - int oldstate;
1: - int newstate;
1: - __u16 sport;
1: - __u16 dport;
1: - __u16 family;
1: - __u16 protocol;
1: - __u8 saddr[4];
1: - __u8 daddr[4];
1: - __u8 saddr_v6[16];
1: - __u8 daddr_v6[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + int oldstate;
1: + int newstate;
1: + __u16 sport;
1: + __u16 dport;
1: + __u16 family;
1: + __u16 protocol;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_sock_rcvqueue_full {};
1: @@ -100157,17 +101456,20 @@ struct trace_event_data_offsets_sock_exceed_buf_limit {};
1:
1: struct trace_event_data_offsets_inet_sock_set_state {};
1:
1: -typedef void (*btf_trace_sock_rcvqueue_full)(void *, struct sock *, struct sk_buff *);
1: +typedef void (*btf_trace_sock_rcvqueue_full)(void *, struct sock *,
1: + struct sk_buff *);
1:
1: -typedef void (*btf_trace_sock_exceed_buf_limit)(void *, struct sock *, struct proto *, long int, int);
1: +typedef void (*btf_trace_sock_exceed_buf_limit)(void *, struct sock *,
1: + struct proto *, long int, int);
1:
1: -typedef void (*btf_trace_inet_sock_set_state)(void *, const struct sock *, const int, const int);
1: +typedef void (*btf_trace_inet_sock_set_state)(void *, const struct sock *,
1: + const int, const int);
1:
1: struct trace_event_raw_udp_fail_queue_rcv_skb {
1: - struct trace_entry ent;
1: - int rc;
1: - __u16 lport;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int rc;
1: + __u16 lport;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_udp_fail_queue_rcv_skb {};
1: @@ -100175,62 +101477,62 @@ struct trace_event_data_offsets_udp_fail_queue_rcv_skb {};
1: typedef void (*btf_trace_udp_fail_queue_rcv_skb)(void *, int, struct sock *);
1:
1: struct trace_event_raw_tcp_event_sk_skb {
1: - struct trace_entry ent;
1: - const void *skbaddr;
1: - const void *skaddr;
1: - int state;
1: - __u16 sport;
1: - __u16 dport;
1: - __u8 saddr[4];
1: - __u8 daddr[4];
1: - __u8 saddr_v6[16];
1: - __u8 daddr_v6[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + const void *skbaddr;
1: + const void *skaddr;
1: + int state;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_tcp_event_sk {
1: - struct trace_entry ent;
1: - const void *skaddr;
1: - __u16 sport;
1: - __u16 dport;
1: - __u8 saddr[4];
1: - __u8 daddr[4];
1: - __u8 saddr_v6[16];
1: - __u8 daddr_v6[16];
1: - __u64 sock_cookie;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + __u64 sock_cookie;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_tcp_retransmit_synack {
1: - struct trace_entry ent;
1: - const void *skaddr;
1: - const void *req;
1: - __u16 sport;
1: - __u16 dport;
1: - __u8 saddr[4];
1: - __u8 daddr[4];
1: - __u8 saddr_v6[16];
1: - __u8 daddr_v6[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + const void *skaddr;
1: + const void *req;
1: + __u16 sport;
1: + __u16 dport;
1: + __u8 saddr[4];
1: + __u8 daddr[4];
1: + __u8 saddr_v6[16];
1: + __u8 daddr_v6[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_tcp_probe {
1: - struct trace_entry ent;
1: - __u8 saddr[28];
1: - __u8 daddr[28];
1: - __u16 sport;
1: - __u16 dport;
1: - __u32 mark;
1: - __u16 data_len;
1: - __u32 snd_nxt;
1: - __u32 snd_una;
1: - __u32 snd_cwnd;
1: - __u32 ssthresh;
1: - __u32 snd_wnd;
1: - __u32 srtt;
1: - __u32 rcv_wnd;
1: - __u64 sock_cookie;
1: - char __data[0];
1: + struct trace_entry ent;
1: + __u8 saddr[28];
1: + __u8 daddr[28];
1: + __u16 sport;
1: + __u16 dport;
1: + __u32 mark;
1: + __u16 data_len;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 snd_cwnd;
1: + __u32 ssthresh;
1: + __u32 snd_wnd;
1: + __u32 srtt;
1: + __u32 rcv_wnd;
1: + __u64 sock_cookie;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_tcp_event_sk_skb {};
1: @@ -100241,9 +101543,11 @@ struct trace_event_data_offsets_tcp_retransmit_synack {};
1:
1: struct trace_event_data_offsets_tcp_probe {};
1:
1: -typedef void (*btf_trace_tcp_retransmit_skb)(void *, const struct sock *, const struct sk_buff *);
1: +typedef void (*btf_trace_tcp_retransmit_skb)(void *, const struct sock *,
1: + const struct sk_buff *);
1:
1: -typedef void (*btf_trace_tcp_send_reset)(void *, const struct sock *, const struct sk_buff *);
1: +typedef void (*btf_trace_tcp_send_reset)(void *, const struct sock *,
1: + const struct sk_buff *);
1:
1: typedef void (*btf_trace_tcp_receive_reset)(void *, struct sock *);
1:
1: @@ -100251,150 +101555,155 @@ typedef void (*btf_trace_tcp_destroy_sock)(void *, struct sock *);
1:
1: typedef void (*btf_trace_tcp_rcv_space_adjust)(void *, struct sock *);
1:
1: -typedef void (*btf_trace_tcp_retransmit_synack)(void *, const struct sock *, const struct request_sock *);
1: +typedef void (*btf_trace_tcp_retransmit_synack)(void *, const struct sock *,
1: + const struct request_sock *);
1:
1: typedef void (*btf_trace_tcp_probe)(void *, struct sock *, struct sk_buff *);
1:
1: struct trace_event_raw_fib_table_lookup {
1: - struct trace_entry ent;
1: - u32 tb_id;
1: - int err;
1: - int oif;
1: - int iif;
1: - u8 proto;
1: - __u8 tos;
1: - __u8 scope;
1: - __u8 flags;
1: - __u8 src[4];
1: - __u8 dst[4];
1: - __u8 gw4[4];
1: - __u8 gw6[16];
1: - u16 sport;
1: - u16 dport;
1: - u32 __data_loc_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 tb_id;
1: + int err;
1: + int oif;
1: + int iif;
1: + u8 proto;
1: + __u8 tos;
1: + __u8 scope;
1: + __u8 flags;
1: + __u8 src[4];
1: + __u8 dst[4];
1: + __u8 gw4[4];
1: + __u8 gw6[16];
1: + u16 sport;
1: + u16 dport;
1: + u32 __data_loc_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_fib_table_lookup {
1: - u32 name;
1: + u32 name;
1: };
1:
1: -typedef void (*btf_trace_fib_table_lookup)(void *, u32, const struct flowi4 *, const struct fib_nh_common *, int);
1: +typedef void (*btf_trace_fib_table_lookup)(void *, u32, const struct flowi4 *,
1: + const struct fib_nh_common *, int);
1:
1: struct trace_event_raw_qdisc_dequeue {
1: - struct trace_entry ent;
1: - struct Qdisc *qdisc;
1: - const struct netdev_queue *txq;
1: - int packets;
1: - void *skbaddr;
1: - int ifindex;
1: - u32 handle;
1: - u32 parent;
1: - long unsigned int txq_state;
1: - char __data[0];
1: + struct trace_entry ent;
1: + struct Qdisc *qdisc;
1: + const struct netdev_queue *txq;
1: + int packets;
1: + void *skbaddr;
1: + int ifindex;
1: + u32 handle;
1: + u32 parent;
1: + long unsigned int txq_state;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_qdisc_reset {
1: - struct trace_entry ent;
1: - u32 __data_loc_dev;
1: - u32 __data_loc_kind;
1: - u32 parent;
1: - u32 handle;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + u32 handle;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_qdisc_destroy {
1: - struct trace_entry ent;
1: - u32 __data_loc_dev;
1: - u32 __data_loc_kind;
1: - u32 parent;
1: - u32 handle;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + u32 handle;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_qdisc_create {
1: - struct trace_entry ent;
1: - u32 __data_loc_dev;
1: - u32 __data_loc_kind;
1: - u32 parent;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_dev;
1: + u32 __data_loc_kind;
1: + u32 parent;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_qdisc_dequeue {};
1:
1: struct trace_event_data_offsets_qdisc_reset {
1: - u32 dev;
1: - u32 kind;
1: + u32 dev;
1: + u32 kind;
1: };
1:
1: struct trace_event_data_offsets_qdisc_destroy {
1: - u32 dev;
1: - u32 kind;
1: + u32 dev;
1: + u32 kind;
1: };
1:
1: struct trace_event_data_offsets_qdisc_create {
1: - u32 dev;
1: - u32 kind;
1: + u32 dev;
1: + u32 kind;
1: };
1:
1: -typedef void (*btf_trace_qdisc_dequeue)(void *, struct Qdisc *, const struct netdev_queue *, int, struct sk_buff *);
1: +typedef void (*btf_trace_qdisc_dequeue)(void *, struct Qdisc *,
1: + const struct netdev_queue *, int,
1: + struct sk_buff *);
1:
1: typedef void (*btf_trace_qdisc_reset)(void *, struct Qdisc *);
1:
1: typedef void (*btf_trace_qdisc_destroy)(void *, struct Qdisc *);
1:
1: -typedef void (*btf_trace_qdisc_create)(void *, const struct Qdisc_ops *, struct net_device *, u32);
1: +typedef void (*btf_trace_qdisc_create)(void *, const struct Qdisc_ops *,
1: + struct net_device *, u32);
1:
1: struct bridge_stp_xstats {
1: - __u64 transition_blk;
1: - __u64 transition_fwd;
1: - __u64 rx_bpdu;
1: - __u64 tx_bpdu;
1: - __u64 rx_tcn;
1: - __u64 tx_tcn;
1: + __u64 transition_blk;
1: + __u64 transition_fwd;
1: + __u64 rx_bpdu;
1: + __u64 tx_bpdu;
1: + __u64 rx_tcn;
1: + __u64 tx_tcn;
1: };
1:
1: struct br_mcast_stats {
1: - __u64 igmp_v1queries[2];
1: - __u64 igmp_v2queries[2];
1: - __u64 igmp_v3queries[2];
1: - __u64 igmp_leaves[2];
1: - __u64 igmp_v1reports[2];
1: - __u64 igmp_v2reports[2];
1: - __u64 igmp_v3reports[2];
1: - __u64 igmp_parse_errors;
1: - __u64 mld_v1queries[2];
1: - __u64 mld_v2queries[2];
1: - __u64 mld_leaves[2];
1: - __u64 mld_v1reports[2];
1: - __u64 mld_v2reports[2];
1: - __u64 mld_parse_errors;
1: - __u64 mcast_bytes[2];
1: - __u64 mcast_packets[2];
1: + __u64 igmp_v1queries[2];
1: + __u64 igmp_v2queries[2];
1: + __u64 igmp_v3queries[2];
1: + __u64 igmp_leaves[2];
1: + __u64 igmp_v1reports[2];
1: + __u64 igmp_v2reports[2];
1: + __u64 igmp_v3reports[2];
1: + __u64 igmp_parse_errors;
1: + __u64 mld_v1queries[2];
1: + __u64 mld_v2queries[2];
1: + __u64 mld_leaves[2];
1: + __u64 mld_v1reports[2];
1: + __u64 mld_v2reports[2];
1: + __u64 mld_parse_errors;
1: + __u64 mcast_bytes[2];
1: + __u64 mcast_packets[2];
1: };
1:
1: struct br_ip {
1: - union {
1: - __be32 ip4;
1: - struct in6_addr ip6;
1: - } src;
1: - union {
1: - __be32 ip4;
1: - struct in6_addr ip6;
1: - } dst;
1: - __be16 proto;
1: - __u16 vid;
1: + union {
1: + __be32 ip4;
1: + struct in6_addr ip6;
1: + } src;
1: + union {
1: + __be32 ip4;
1: + struct in6_addr ip6;
1: + } dst;
1: + __be16 proto;
1: + __u16 vid;
1: };
1:
1: struct bridge_id {
1: - unsigned char prio[2];
1: - unsigned char addr[6];
1: + unsigned char prio[2];
1: + unsigned char addr[6];
1: };
1:
1: typedef struct bridge_id bridge_id;
1:
1: struct mac_addr {
1: - unsigned char addr[6];
1: + unsigned char addr[6];
1: };
1:
1: typedef struct mac_addr mac_addr;
1: @@ -100402,20 +101711,20 @@ typedef struct mac_addr mac_addr;
1: typedef __u16 port_id;
1:
1: struct bridge_mcast_own_query {
1: - struct timer_list timer;
1: - u32 startup_sent;
1: + struct timer_list timer;
1: + u32 startup_sent;
1: };
1:
1: struct bridge_mcast_other_query {
1: - struct timer_list timer;
1: - long unsigned int delay_time;
1: + struct timer_list timer;
1: + long unsigned int delay_time;
1: };
1:
1: struct net_bridge_port;
1:
1: struct bridge_mcast_querier {
1: - struct br_ip addr;
1: - struct net_bridge_port *port;
1: + struct br_ip addr;
1: + struct net_bridge_port *port;
1: };
1:
1: struct net_bridge;
1: @@ -100425,254 +101734,262 @@ struct net_bridge_vlan_group;
1: struct bridge_mcast_stats;
1:
1: struct net_bridge_port {
1: - struct net_bridge *br;
1: - struct net_device *dev;
1: - struct list_head list;
1: - long unsigned int flags;
1: - struct net_bridge_vlan_group *vlgrp;
1: - struct net_bridge_port *backup_port;
1: - u8 priority;
1: - u8 state;
1: - u16 port_no;
1: - unsigned char topology_change_ack;
1: - unsigned char config_pending;
1: - port_id port_id;
1: - port_id designated_port;
1: - bridge_id designated_root;
1: - bridge_id designated_bridge;
1: - u32 path_cost;
1: - u32 designated_cost;
1: - long unsigned int designated_age;
1: - struct timer_list forward_delay_timer;
1: - struct timer_list hold_timer;
1: - struct timer_list message_age_timer;
1: - struct kobject kobj;
1: - struct callback_head rcu;
1: - struct bridge_mcast_own_query ip4_own_query;
1: - struct bridge_mcast_own_query ip6_own_query;
1: - unsigned char multicast_router;
1: - struct bridge_mcast_stats *mcast_stats;
1: - struct timer_list multicast_router_timer;
1: - struct hlist_head mglist;
1: - struct hlist_node rlist;
1: - char sysfs_name[16];
1: - struct netpoll *np;
1: - int offload_fwd_mark;
1: - u16 group_fwd_mask;
1: - u16 backup_redirected_cnt;
1: - struct bridge_stp_xstats stp_xstats;
1: + struct net_bridge *br;
1: + struct net_device *dev;
1: + struct list_head list;
1: + long unsigned int flags;
1: + struct net_bridge_vlan_group *vlgrp;
1: + struct net_bridge_port *backup_port;
1: + u8 priority;
1: + u8 state;
1: + u16 port_no;
1: + unsigned char topology_change_ack;
1: + unsigned char config_pending;
1: + port_id port_id;
1: + port_id designated_port;
1: + bridge_id designated_root;
1: + bridge_id designated_bridge;
1: + u32 path_cost;
1: + u32 designated_cost;
1: + long unsigned int designated_age;
1: + struct timer_list forward_delay_timer;
1: + struct timer_list hold_timer;
1: + struct timer_list message_age_timer;
1: + struct kobject kobj;
1: + struct callback_head rcu;
1: + struct bridge_mcast_own_query ip4_own_query;
1: + struct bridge_mcast_own_query ip6_own_query;
1: + unsigned char multicast_router;
1: + struct bridge_mcast_stats *mcast_stats;
1: + struct timer_list multicast_router_timer;
1: + struct hlist_head mglist;
1: + struct hlist_node rlist;
1: + char sysfs_name[16];
1: + struct netpoll *np;
1: + int offload_fwd_mark;
1: + u16 group_fwd_mask;
1: + u16 backup_redirected_cnt;
1: + struct bridge_stp_xstats stp_xstats;
1: };
1:
1: struct bridge_mcast_stats {
1: - struct br_mcast_stats mstats;
1: - struct u64_stats_sync syncp;
1: + struct br_mcast_stats mstats;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct net_bridge {
1: - spinlock_t lock;
1: - spinlock_t hash_lock;
1: - struct list_head port_list;
1: - struct net_device *dev;
1: - struct pcpu_sw_netstats *stats;
1: - long unsigned int options;
1: - __be16 vlan_proto;
1: - u16 default_pvid;
1: - struct net_bridge_vlan_group *vlgrp;
1: - struct rhashtable fdb_hash_tbl;
1: - union {
1: - struct rtable fake_rtable;
1: - struct rt6_info fake_rt6_info;
1: - };
1: - u16 group_fwd_mask;
1: - u16 group_fwd_mask_required;
1: - bridge_id designated_root;
1: - bridge_id bridge_id;
1: - unsigned char topology_change;
1: - unsigned char topology_change_detected;
1: - u16 root_port;
1: - long unsigned int max_age;
1: - long unsigned int hello_time;
1: - long unsigned int forward_delay;
1: - long unsigned int ageing_time;
1: - long unsigned int bridge_max_age;
1: - long unsigned int bridge_hello_time;
1: - long unsigned int bridge_forward_delay;
1: - long unsigned int bridge_ageing_time;
1: - u32 root_path_cost;
1: - u8 group_addr[6];
1: - enum {
1: - BR_NO_STP = 0,
1: - BR_KERNEL_STP = 1,
1: - BR_USER_STP = 2,
1: - } stp_enabled;
1: - u32 hash_max;
1: - u32 multicast_last_member_count;
1: - u32 multicast_startup_query_count;
1: - u8 multicast_igmp_version;
1: - u8 multicast_router;
1: - u8 multicast_mld_version;
1: - spinlock_t multicast_lock;
1: - long unsigned int multicast_last_member_interval;
1: - long unsigned int multicast_membership_interval;
1: - long unsigned int multicast_querier_interval;
1: - long unsigned int multicast_query_interval;
1: - long unsigned int multicast_query_response_interval;
1: - long unsigned int multicast_startup_query_interval;
1: - struct rhashtable mdb_hash_tbl;
1: - struct rhashtable sg_port_tbl;
1: - struct hlist_head mcast_gc_list;
1: - struct hlist_head mdb_list;
1: - struct hlist_head router_list;
1: - struct timer_list multicast_router_timer;
1: - struct bridge_mcast_other_query ip4_other_query;
1: - struct bridge_mcast_own_query ip4_own_query;
1: - struct bridge_mcast_querier ip4_querier;
1: - struct bridge_mcast_stats *mcast_stats;
1: - struct bridge_mcast_other_query ip6_other_query;
1: - struct bridge_mcast_own_query ip6_own_query;
1: - struct bridge_mcast_querier ip6_querier;
1: - struct work_struct mcast_gc_work;
1: - struct timer_list hello_timer;
1: - struct timer_list tcn_timer;
1: - struct timer_list topology_change_timer;
1: - struct delayed_work gc_work;
1: - struct kobject *ifobj;
1: - u32 auto_cnt;
1: - int offload_fwd_mark;
1: - struct hlist_head fdb_list;
1: - struct list_head mrp_list;
1: + spinlock_t lock;
1: + spinlock_t hash_lock;
1: + struct list_head port_list;
1: + struct net_device *dev;
1: + struct pcpu_sw_netstats *stats;
1: + long unsigned int options;
1: + __be16 vlan_proto;
1: + u16 default_pvid;
1: + struct net_bridge_vlan_group *vlgrp;
1: + struct rhashtable fdb_hash_tbl;
1: + union {
1: + struct rtable fake_rtable;
1: + struct rt6_info fake_rt6_info;
1: + };
1: + u16 group_fwd_mask;
1: + u16 group_fwd_mask_required;
1: + bridge_id designated_root;
1: + bridge_id bridge_id;
1: + unsigned char topology_change;
1: + unsigned char topology_change_detected;
1: + u16 root_port;
1: + long unsigned int max_age;
1: + long unsigned int hello_time;
1: + long unsigned int forward_delay;
1: + long unsigned int ageing_time;
1: + long unsigned int bridge_max_age;
1: + long unsigned int bridge_hello_time;
1: + long unsigned int bridge_forward_delay;
1: + long unsigned int bridge_ageing_time;
1: + u32 root_path_cost;
1: + u8 group_addr[6];
1: + enum {
1: + BR_NO_STP = 0,
1: + BR_KERNEL_STP = 1,
1: + BR_USER_STP = 2,
1: + } stp_enabled;
1: + u32 hash_max;
1: + u32 multicast_last_member_count;
1: + u32 multicast_startup_query_count;
1: + u8 multicast_igmp_version;
1: + u8 multicast_router;
1: + u8 multicast_mld_version;
1: + spinlock_t multicast_lock;
1: + long unsigned int multicast_last_member_interval;
1: + long unsigned int multicast_membership_interval;
1: + long unsigned int multicast_querier_interval;
1: + long unsigned int multicast_query_interval;
1: + long unsigned int multicast_query_response_interval;
1: + long unsigned int multicast_startup_query_interval;
1: + struct rhashtable mdb_hash_tbl;
1: + struct rhashtable sg_port_tbl;
1: + struct hlist_head mcast_gc_list;
1: + struct hlist_head mdb_list;
1: + struct hlist_head router_list;
1: + struct timer_list multicast_router_timer;
1: + struct bridge_mcast_other_query ip4_other_query;
1: + struct bridge_mcast_own_query ip4_own_query;
1: + struct bridge_mcast_querier ip4_querier;
1: + struct bridge_mcast_stats *mcast_stats;
1: + struct bridge_mcast_other_query ip6_other_query;
1: + struct bridge_mcast_own_query ip6_own_query;
1: + struct bridge_mcast_querier ip6_querier;
1: + struct work_struct mcast_gc_work;
1: + struct timer_list hello_timer;
1: + struct timer_list tcn_timer;
1: + struct timer_list topology_change_timer;
1: + struct delayed_work gc_work;
1: + struct kobject *ifobj;
1: + u32 auto_cnt;
1: + int offload_fwd_mark;
1: + struct hlist_head fdb_list;
1: + struct list_head mrp_list;
1: };
1:
1: struct net_bridge_vlan_group {
1: - struct rhashtable vlan_hash;
1: - struct rhashtable tunnel_hash;
1: - struct list_head vlan_list;
1: - u16 num_vlans;
1: - u16 pvid;
1: - u8 pvid_state;
1: + struct rhashtable vlan_hash;
1: + struct rhashtable tunnel_hash;
1: + struct list_head vlan_list;
1: + u16 num_vlans;
1: + u16 pvid;
1: + u8 pvid_state;
1: };
1:
1: struct net_bridge_fdb_key {
1: - mac_addr addr;
1: - u16 vlan_id;
1: + mac_addr addr;
1: + u16 vlan_id;
1: };
1:
1: struct net_bridge_fdb_entry {
1: - struct rhash_head rhnode;
1: - struct net_bridge_port *dst;
1: - struct net_bridge_fdb_key key;
1: - struct hlist_node fdb_node;
1: - long unsigned int flags;
1: - long: 64;
1: - long: 64;
1: - long unsigned int updated;
1: - long unsigned int used;
1: - struct callback_head rcu;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct rhash_head rhnode;
1: + struct net_bridge_port *dst;
1: + struct net_bridge_fdb_key key;
1: + struct hlist_node fdb_node;
1: + long unsigned int flags;
1: + long : 64;
1: + long : 64;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + struct callback_head rcu;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct trace_event_raw_br_fdb_add {
1: - struct trace_entry ent;
1: - u8 ndm_flags;
1: - u32 __data_loc_dev;
1: - unsigned char addr[6];
1: - u16 vid;
1: - u16 nlh_flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u8 ndm_flags;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + u16 nlh_flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_br_fdb_external_learn_add {
1: - struct trace_entry ent;
1: - u32 __data_loc_br_dev;
1: - u32 __data_loc_dev;
1: - unsigned char addr[6];
1: - u16 vid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_fdb_delete {
1: - struct trace_entry ent;
1: - u32 __data_loc_br_dev;
1: - u32 __data_loc_dev;
1: - unsigned char addr[6];
1: - u16 vid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_br_fdb_update {
1: - struct trace_entry ent;
1: - u32 __data_loc_br_dev;
1: - u32 __data_loc_dev;
1: - unsigned char addr[6];
1: - u16 vid;
1: - long unsigned int flags;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_br_dev;
1: + u32 __data_loc_dev;
1: + unsigned char addr[6];
1: + u16 vid;
1: + long unsigned int flags;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_br_fdb_add {
1: - u32 dev;
1: + u32 dev;
1: };
1:
1: struct trace_event_data_offsets_br_fdb_external_learn_add {
1: - u32 br_dev;
1: - u32 dev;
1: + u32 br_dev;
1: + u32 dev;
1: };
1:
1: struct trace_event_data_offsets_fdb_delete {
1: - u32 br_dev;
1: - u32 dev;
1: + u32 br_dev;
1: + u32 dev;
1: };
1:
1: struct trace_event_data_offsets_br_fdb_update {
1: - u32 br_dev;
1: - u32 dev;
1: + u32 br_dev;
1: + u32 dev;
1: };
1:
1: -typedef void (*btf_trace_br_fdb_add)(void *, struct ndmsg *, struct net_device *, const unsigned char *, u16, u16);
1: +typedef void (*btf_trace_br_fdb_add)(void *, struct ndmsg *,
1: + struct net_device *, const unsigned char *,
1: + u16, u16);
1:
1: -typedef void (*btf_trace_br_fdb_external_learn_add)(void *, struct net_bridge *, struct net_bridge_port *, const unsigned char *, u16);
1: +typedef void (*btf_trace_br_fdb_external_learn_add)(void *, struct net_bridge *,
1: + struct net_bridge_port *,
1: + const unsigned char *, u16);
1:
1: -typedef void (*btf_trace_fdb_delete)(void *, struct net_bridge *, struct net_bridge_fdb_entry *);
1: +typedef void (*btf_trace_fdb_delete)(void *, struct net_bridge *,
1: + struct net_bridge_fdb_entry *);
1:
1: -typedef void (*btf_trace_br_fdb_update)(void *, struct net_bridge *, struct net_bridge_port *, const unsigned char *, u16, long unsigned int);
1: +typedef void (*btf_trace_br_fdb_update)(void *, struct net_bridge *,
1: + struct net_bridge_port *,
1: + const unsigned char *, u16,
1: + long unsigned int);
1:
1: struct trace_event_raw_page_pool_release {
1: - struct trace_entry ent;
1: - const struct page_pool *pool;
1: - s32 inflight;
1: - u32 hold;
1: - u32 release;
1: - u64 cnt;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + s32 inflight;
1: + u32 hold;
1: + u32 release;
1: + u64 cnt;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_page_pool_state_release {
1: - struct trace_entry ent;
1: - const struct page_pool *pool;
1: - const struct page *page;
1: - u32 release;
1: - long unsigned int pfn;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + const struct page *page;
1: + u32 release;
1: + long unsigned int pfn;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_page_pool_state_hold {
1: - struct trace_entry ent;
1: - const struct page_pool *pool;
1: - const struct page *page;
1: - u32 hold;
1: - long unsigned int pfn;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + const struct page *page;
1: + u32 hold;
1: + long unsigned int pfn;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_page_pool_update_nid {
1: - struct trace_entry ent;
1: - const struct page_pool *pool;
1: - int pool_nid;
1: - int new_nid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + const struct page_pool *pool;
1: + int pool_nid;
1: + int new_nid;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_page_pool_release {};
1: @@ -100683,742 +102000,763 @@ struct trace_event_data_offsets_page_pool_state_hold {};
1:
1: struct trace_event_data_offsets_page_pool_update_nid {};
1:
1: -typedef void (*btf_trace_page_pool_release)(void *, const struct page_pool *, s32, u32, u32);
1: +typedef void (*btf_trace_page_pool_release)(void *, const struct page_pool *,
1: + s32, u32, u32);
1:
1: -typedef void (*btf_trace_page_pool_state_release)(void *, const struct page_pool *, const struct page *, u32);
1: +typedef void (*btf_trace_page_pool_state_release)(void *,
1: + const struct page_pool *,
1: + const struct page *, u32);
1:
1: -typedef void (*btf_trace_page_pool_state_hold)(void *, const struct page_pool *, const struct page *, u32);
1: +typedef void (*btf_trace_page_pool_state_hold)(void *, const struct page_pool *,
1: + const struct page *, u32);
1:
1: -typedef void (*btf_trace_page_pool_update_nid)(void *, const struct page_pool *, int);
1: +typedef void (*btf_trace_page_pool_update_nid)(void *, const struct page_pool *,
1: + int);
1:
1: struct trace_event_raw_neigh_create {
1: - struct trace_entry ent;
1: - u32 family;
1: - u32 __data_loc_dev;
1: - int entries;
1: - u8 created;
1: - u8 gc_exempt;
1: - u8 primary_key4[4];
1: - u8 primary_key6[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + int entries;
1: + u8 created;
1: + u8 gc_exempt;
1: + u8 primary_key4[4];
1: + u8 primary_key6[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_neigh_update {
1: - struct trace_entry ent;
1: - u32 family;
1: - u32 __data_loc_dev;
1: - u8 lladdr[32];
1: - u8 lladdr_len;
1: - u8 flags;
1: - u8 nud_state;
1: - u8 type;
1: - u8 dead;
1: - int refcnt;
1: - __u8 primary_key4[4];
1: - __u8 primary_key6[16];
1: - long unsigned int confirmed;
1: - long unsigned int updated;
1: - long unsigned int used;
1: - u8 new_lladdr[32];
1: - u8 new_state;
1: - u32 update_flags;
1: - u32 pid;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + u8 lladdr[32];
1: + u8 lladdr_len;
1: + u8 flags;
1: + u8 nud_state;
1: + u8 type;
1: + u8 dead;
1: + int refcnt;
1: + __u8 primary_key4[4];
1: + __u8 primary_key6[16];
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + u8 new_lladdr[32];
1: + u8 new_state;
1: + u32 update_flags;
1: + u32 pid;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_neigh__update {
1: - struct trace_entry ent;
1: - u32 family;
1: - u32 __data_loc_dev;
1: - u8 lladdr[32];
1: - u8 lladdr_len;
1: - u8 flags;
1: - u8 nud_state;
1: - u8 type;
1: - u8 dead;
1: - int refcnt;
1: - __u8 primary_key4[4];
1: - __u8 primary_key6[16];
1: - long unsigned int confirmed;
1: - long unsigned int updated;
1: - long unsigned int used;
1: - u32 err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 family;
1: + u32 __data_loc_dev;
1: + u8 lladdr[32];
1: + u8 lladdr_len;
1: + u8 flags;
1: + u8 nud_state;
1: + u8 type;
1: + u8 dead;
1: + int refcnt;
1: + __u8 primary_key4[4];
1: + __u8 primary_key6[16];
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + long unsigned int used;
1: + u32 err;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_neigh_create {
1: - u32 dev;
1: + u32 dev;
1: };
1:
1: struct trace_event_data_offsets_neigh_update {
1: - u32 dev;
1: + u32 dev;
1: };
1:
1: struct trace_event_data_offsets_neigh__update {
1: - u32 dev;
1: + u32 dev;
1: };
1:
1: -typedef void (*btf_trace_neigh_create)(void *, struct neigh_table *, struct net_device *, const void *, const struct neighbour *, bool);
1: +typedef void (*btf_trace_neigh_create)(void *, struct neigh_table *,
1: + struct net_device *, const void *,
1: + const struct neighbour *, bool);
1:
1: -typedef void (*btf_trace_neigh_update)(void *, struct neighbour *, const u8 *, u8, u32, u32);
1: +typedef void (*btf_trace_neigh_update)(void *, struct neighbour *, const u8 *,
1: + u8, u32, u32);
1:
1: typedef void (*btf_trace_neigh_update_done)(void *, struct neighbour *, int);
1:
1: typedef void (*btf_trace_neigh_timer_handler)(void *, struct neighbour *, int);
1:
1: -typedef void (*btf_trace_neigh_event_send_done)(void *, struct neighbour *, int);
1: +typedef void (*btf_trace_neigh_event_send_done)(void *, struct neighbour *,
1: + int);
1:
1: -typedef void (*btf_trace_neigh_event_send_dead)(void *, struct neighbour *, int);
1: +typedef void (*btf_trace_neigh_event_send_dead)(void *, struct neighbour *,
1: + int);
1:
1: -typedef void (*btf_trace_neigh_cleanup_and_release)(void *, struct neighbour *, int);
1: +typedef void (*btf_trace_neigh_cleanup_and_release)(void *, struct neighbour *,
1: + int);
1:
1: struct clock_identity {
1: - u8 id[8];
1: + u8 id[8];
1: };
1:
1: struct port_identity {
1: - struct clock_identity clock_identity;
1: - __be16 port_number;
1: + struct clock_identity clock_identity;
1: + __be16 port_number;
1: };
1:
1: struct ptp_header {
1: - u8 tsmt;
1: - u8 ver;
1: - __be16 message_length;
1: - u8 domain_number;
1: - u8 reserved1;
1: - u8 flag_field[2];
1: - __be64 correction;
1: - __be32 reserved2;
1: - struct port_identity source_port_identity;
1: - __be16 sequence_id;
1: - u8 control;
1: - u8 log_message_interval;
1: + u8 tsmt;
1: + u8 ver;
1: + __be16 message_length;
1: + u8 domain_number;
1: + u8 reserved1;
1: + u8 flag_field[2];
1: + __be64 correction;
1: + __be32 reserved2;
1: + struct port_identity source_port_identity;
1: + __be16 sequence_id;
1: + u8 control;
1: + u8 log_message_interval;
1: } __attribute__((packed));
1:
1: struct update_classid_context {
1: - u32 classid;
1: - unsigned int batch;
1: + u32 classid;
1: + unsigned int batch;
1: };
1:
1: enum lwtunnel_encap_types {
1: - LWTUNNEL_ENCAP_NONE = 0,
1: - LWTUNNEL_ENCAP_MPLS = 1,
1: - LWTUNNEL_ENCAP_IP = 2,
1: - LWTUNNEL_ENCAP_ILA = 3,
1: - LWTUNNEL_ENCAP_IP6 = 4,
1: - LWTUNNEL_ENCAP_SEG6 = 5,
1: - LWTUNNEL_ENCAP_BPF = 6,
1: - LWTUNNEL_ENCAP_SEG6_LOCAL = 7,
1: - LWTUNNEL_ENCAP_RPL = 8,
1: - __LWTUNNEL_ENCAP_MAX = 9,
1: + LWTUNNEL_ENCAP_NONE = 0,
1: + LWTUNNEL_ENCAP_MPLS = 1,
1: + LWTUNNEL_ENCAP_IP = 2,
1: + LWTUNNEL_ENCAP_ILA = 3,
1: + LWTUNNEL_ENCAP_IP6 = 4,
1: + LWTUNNEL_ENCAP_SEG6 = 5,
1: + LWTUNNEL_ENCAP_BPF = 6,
1: + LWTUNNEL_ENCAP_SEG6_LOCAL = 7,
1: + LWTUNNEL_ENCAP_RPL = 8,
1: + __LWTUNNEL_ENCAP_MAX = 9,
1: };
1:
1: struct rtnexthop {
1: - short unsigned int rtnh_len;
1: - unsigned char rtnh_flags;
1: - unsigned char rtnh_hops;
1: - int rtnh_ifindex;
1: + short unsigned int rtnh_len;
1: + unsigned char rtnh_flags;
1: + unsigned char rtnh_hops;
1: + int rtnh_ifindex;
1: };
1:
1: struct lwtunnel_encap_ops {
1: - int (*build_state)(struct net *, struct nlattr *, unsigned int, const void *, struct lwtunnel_state **, struct netlink_ext_ack *);
1: - void (*destroy_state)(struct lwtunnel_state *);
1: - int (*output)(struct net *, struct sock *, struct sk_buff *);
1: - int (*input)(struct sk_buff *);
1: - int (*fill_encap)(struct sk_buff *, struct lwtunnel_state *);
1: - int (*get_encap_size)(struct lwtunnel_state *);
1: - int (*cmp_encap)(struct lwtunnel_state *, struct lwtunnel_state *);
1: - int (*xmit)(struct sk_buff *);
1: - struct module *owner;
1: + int (*build_state)(struct net *, struct nlattr *, unsigned int, const void *,
1: + struct lwtunnel_state **, struct netlink_ext_ack *);
1: + void (*destroy_state)(struct lwtunnel_state *);
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*input)(struct sk_buff *);
1: + int (*fill_encap)(struct sk_buff *, struct lwtunnel_state *);
1: + int (*get_encap_size)(struct lwtunnel_state *);
1: + int (*cmp_encap)(struct lwtunnel_state *, struct lwtunnel_state *);
1: + int (*xmit)(struct sk_buff *);
1: + struct module *owner;
1: };
1:
1: enum {
1: - LWT_BPF_PROG_UNSPEC = 0,
1: - LWT_BPF_PROG_FD = 1,
1: - LWT_BPF_PROG_NAME = 2,
1: - __LWT_BPF_PROG_MAX = 3,
1: + LWT_BPF_PROG_UNSPEC = 0,
1: + LWT_BPF_PROG_FD = 1,
1: + LWT_BPF_PROG_NAME = 2,
1: + __LWT_BPF_PROG_MAX = 3,
1: };
1:
1: enum {
1: - LWT_BPF_UNSPEC = 0,
1: - LWT_BPF_IN = 1,
1: - LWT_BPF_OUT = 2,
1: - LWT_BPF_XMIT = 3,
1: - LWT_BPF_XMIT_HEADROOM = 4,
1: - __LWT_BPF_MAX = 5,
1: + LWT_BPF_UNSPEC = 0,
1: + LWT_BPF_IN = 1,
1: + LWT_BPF_OUT = 2,
1: + LWT_BPF_XMIT = 3,
1: + LWT_BPF_XMIT_HEADROOM = 4,
1: + __LWT_BPF_MAX = 5,
1: };
1:
1: enum {
1: - LWTUNNEL_XMIT_DONE = 0,
1: - LWTUNNEL_XMIT_CONTINUE = 1,
1: + LWTUNNEL_XMIT_DONE = 0,
1: + LWTUNNEL_XMIT_CONTINUE = 1,
1: };
1:
1: struct bpf_lwt_prog {
1: - struct bpf_prog *prog;
1: - char *name;
1: + struct bpf_prog *prog;
1: + char *name;
1: };
1:
1: struct bpf_lwt {
1: - struct bpf_lwt_prog in;
1: - struct bpf_lwt_prog out;
1: - struct bpf_lwt_prog xmit;
1: - int family;
1: + struct bpf_lwt_prog in;
1: + struct bpf_lwt_prog out;
1: + struct bpf_lwt_prog xmit;
1: + int family;
1: };
1:
1: struct bpf_stab {
1: - struct bpf_map map;
1: - struct sock **sks;
1: - struct sk_psock_progs progs;
1: - raw_spinlock_t lock;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct sock **sks;
1: + struct sk_psock_progs progs;
1: + raw_spinlock_t lock;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: -typedef u64 (*btf_bpf_sock_map_update)(struct bpf_sock_ops_kern *, struct bpf_map *, void *, u64);
1: +typedef u64 (*btf_bpf_sock_map_update)(struct bpf_sock_ops_kern *,
1: + struct bpf_map *, void *, u64);
1:
1: -typedef u64 (*btf_bpf_sk_redirect_map)(struct sk_buff *, struct bpf_map *, u32, u64);
1: +typedef u64 (*btf_bpf_sk_redirect_map)(struct sk_buff *, struct bpf_map *, u32,
1: + u64);
1:
1: -typedef u64 (*btf_bpf_msg_redirect_map)(struct sk_msg *, struct bpf_map *, u32, u64);
1: +typedef u64 (*btf_bpf_msg_redirect_map)(struct sk_msg *, struct bpf_map *, u32,
1: + u64);
1:
1: struct sock_map_seq_info {
1: - struct bpf_map *map;
1: - struct sock *sk;
1: - u32 index;
1: + struct bpf_map *map;
1: + struct sock *sk;
1: + u32 index;
1: };
1:
1: struct bpf_iter__sockmap {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct bpf_map *map;
1: - };
1: - union {
1: - void *key;
1: - };
1: - union {
1: - struct sock *sk;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + void *key;
1: + };
1: + union {
1: + struct sock *sk;
1: + };
1: };
1:
1: struct bpf_shtab_elem {
1: - struct callback_head rcu;
1: - u32 hash;
1: - struct sock *sk;
1: - struct hlist_node node;
1: - u8 key[0];
1: + struct callback_head rcu;
1: + u32 hash;
1: + struct sock *sk;
1: + struct hlist_node node;
1: + u8 key[0];
1: };
1:
1: struct bpf_shtab_bucket {
1: - struct hlist_head head;
1: - raw_spinlock_t lock;
1: + struct hlist_head head;
1: + raw_spinlock_t lock;
1: };
1:
1: struct bpf_shtab {
1: - struct bpf_map map;
1: - struct bpf_shtab_bucket *buckets;
1: - u32 buckets_num;
1: - u32 elem_size;
1: - struct sk_psock_progs progs;
1: - atomic_t count;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: + struct bpf_map map;
1: + struct bpf_shtab_bucket *buckets;
1: + u32 buckets_num;
1: + u32 elem_size;
1: + struct sk_psock_progs progs;
1: + atomic_t count;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: };
1:
1: -typedef u64 (*btf_bpf_sock_hash_update)(struct bpf_sock_ops_kern *, struct bpf_map *, void *, u64);
1: +typedef u64 (*btf_bpf_sock_hash_update)(struct bpf_sock_ops_kern *,
1: + struct bpf_map *, void *, u64);
1:
1: -typedef u64 (*btf_bpf_sk_redirect_hash)(struct sk_buff *, struct bpf_map *, void *, u64);
1: +typedef u64 (*btf_bpf_sk_redirect_hash)(struct sk_buff *, struct bpf_map *,
1: + void *, u64);
1:
1: -typedef u64 (*btf_bpf_msg_redirect_hash)(struct sk_msg *, struct bpf_map *, void *, u64);
1: +typedef u64 (*btf_bpf_msg_redirect_hash)(struct sk_msg *, struct bpf_map *,
1: + void *, u64);
1:
1: struct sock_hash_seq_info {
1: - struct bpf_map *map;
1: - struct bpf_shtab *htab;
1: - u32 bucket_id;
1: + struct bpf_map *map;
1: + struct bpf_shtab *htab;
1: + u32 bucket_id;
1: };
1:
1: struct dst_cache_pcpu {
1: - long unsigned int refresh_ts;
1: - struct dst_entry *dst;
1: - u32 cookie;
1: - union {
1: - struct in_addr in_saddr;
1: - struct in6_addr in6_saddr;
1: - };
1: + long unsigned int refresh_ts;
1: + struct dst_entry *dst;
1: + u32 cookie;
1: + union {
1: + struct in_addr in_saddr;
1: + struct in6_addr in6_saddr;
1: + };
1: };
1:
1: enum devlink_command {
1: - DEVLINK_CMD_UNSPEC = 0,
1: - DEVLINK_CMD_GET = 1,
1: - DEVLINK_CMD_SET = 2,
1: - DEVLINK_CMD_NEW = 3,
1: - DEVLINK_CMD_DEL = 4,
1: - DEVLINK_CMD_PORT_GET = 5,
1: - DEVLINK_CMD_PORT_SET = 6,
1: - DEVLINK_CMD_PORT_NEW = 7,
1: - DEVLINK_CMD_PORT_DEL = 8,
1: - DEVLINK_CMD_PORT_SPLIT = 9,
1: - DEVLINK_CMD_PORT_UNSPLIT = 10,
1: - DEVLINK_CMD_SB_GET = 11,
1: - DEVLINK_CMD_SB_SET = 12,
1: - DEVLINK_CMD_SB_NEW = 13,
1: - DEVLINK_CMD_SB_DEL = 14,
1: - DEVLINK_CMD_SB_POOL_GET = 15,
1: - DEVLINK_CMD_SB_POOL_SET = 16,
1: - DEVLINK_CMD_SB_POOL_NEW = 17,
1: - DEVLINK_CMD_SB_POOL_DEL = 18,
1: - DEVLINK_CMD_SB_PORT_POOL_GET = 19,
1: - DEVLINK_CMD_SB_PORT_POOL_SET = 20,
1: - DEVLINK_CMD_SB_PORT_POOL_NEW = 21,
1: - DEVLINK_CMD_SB_PORT_POOL_DEL = 22,
1: - DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23,
1: - DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24,
1: - DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 25,
1: - DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 26,
1: - DEVLINK_CMD_SB_OCC_SNAPSHOT = 27,
1: - DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28,
1: - DEVLINK_CMD_ESWITCH_GET = 29,
1: - DEVLINK_CMD_ESWITCH_SET = 30,
1: - DEVLINK_CMD_DPIPE_TABLE_GET = 31,
1: - DEVLINK_CMD_DPIPE_ENTRIES_GET = 32,
1: - DEVLINK_CMD_DPIPE_HEADERS_GET = 33,
1: - DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 34,
1: - DEVLINK_CMD_RESOURCE_SET = 35,
1: - DEVLINK_CMD_RESOURCE_DUMP = 36,
1: - DEVLINK_CMD_RELOAD = 37,
1: - DEVLINK_CMD_PARAM_GET = 38,
1: - DEVLINK_CMD_PARAM_SET = 39,
1: - DEVLINK_CMD_PARAM_NEW = 40,
1: - DEVLINK_CMD_PARAM_DEL = 41,
1: - DEVLINK_CMD_REGION_GET = 42,
1: - DEVLINK_CMD_REGION_SET = 43,
1: - DEVLINK_CMD_REGION_NEW = 44,
1: - DEVLINK_CMD_REGION_DEL = 45,
1: - DEVLINK_CMD_REGION_READ = 46,
1: - DEVLINK_CMD_PORT_PARAM_GET = 47,
1: - DEVLINK_CMD_PORT_PARAM_SET = 48,
1: - DEVLINK_CMD_PORT_PARAM_NEW = 49,
1: - DEVLINK_CMD_PORT_PARAM_DEL = 50,
1: - DEVLINK_CMD_INFO_GET = 51,
1: - DEVLINK_CMD_HEALTH_REPORTER_GET = 52,
1: - DEVLINK_CMD_HEALTH_REPORTER_SET = 53,
1: - DEVLINK_CMD_HEALTH_REPORTER_RECOVER = 54,
1: - DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE = 55,
1: - DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET = 56,
1: - DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR = 57,
1: - DEVLINK_CMD_FLASH_UPDATE = 58,
1: - DEVLINK_CMD_FLASH_UPDATE_END = 59,
1: - DEVLINK_CMD_FLASH_UPDATE_STATUS = 60,
1: - DEVLINK_CMD_TRAP_GET = 61,
1: - DEVLINK_CMD_TRAP_SET = 62,
1: - DEVLINK_CMD_TRAP_NEW = 63,
1: - DEVLINK_CMD_TRAP_DEL = 64,
1: - DEVLINK_CMD_TRAP_GROUP_GET = 65,
1: - DEVLINK_CMD_TRAP_GROUP_SET = 66,
1: - DEVLINK_CMD_TRAP_GROUP_NEW = 67,
1: - DEVLINK_CMD_TRAP_GROUP_DEL = 68,
1: - DEVLINK_CMD_TRAP_POLICER_GET = 69,
1: - DEVLINK_CMD_TRAP_POLICER_SET = 70,
1: - DEVLINK_CMD_TRAP_POLICER_NEW = 71,
1: - DEVLINK_CMD_TRAP_POLICER_DEL = 72,
1: - DEVLINK_CMD_HEALTH_REPORTER_TEST = 73,
1: - __DEVLINK_CMD_MAX = 74,
1: - DEVLINK_CMD_MAX = 73,
1: + DEVLINK_CMD_UNSPEC = 0,
1: + DEVLINK_CMD_GET = 1,
1: + DEVLINK_CMD_SET = 2,
1: + DEVLINK_CMD_NEW = 3,
1: + DEVLINK_CMD_DEL = 4,
1: + DEVLINK_CMD_PORT_GET = 5,
1: + DEVLINK_CMD_PORT_SET = 6,
1: + DEVLINK_CMD_PORT_NEW = 7,
1: + DEVLINK_CMD_PORT_DEL = 8,
1: + DEVLINK_CMD_PORT_SPLIT = 9,
1: + DEVLINK_CMD_PORT_UNSPLIT = 10,
1: + DEVLINK_CMD_SB_GET = 11,
1: + DEVLINK_CMD_SB_SET = 12,
1: + DEVLINK_CMD_SB_NEW = 13,
1: + DEVLINK_CMD_SB_DEL = 14,
1: + DEVLINK_CMD_SB_POOL_GET = 15,
1: + DEVLINK_CMD_SB_POOL_SET = 16,
1: + DEVLINK_CMD_SB_POOL_NEW = 17,
1: + DEVLINK_CMD_SB_POOL_DEL = 18,
1: + DEVLINK_CMD_SB_PORT_POOL_GET = 19,
1: + DEVLINK_CMD_SB_PORT_POOL_SET = 20,
1: + DEVLINK_CMD_SB_PORT_POOL_NEW = 21,
1: + DEVLINK_CMD_SB_PORT_POOL_DEL = 22,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 25,
1: + DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 26,
1: + DEVLINK_CMD_SB_OCC_SNAPSHOT = 27,
1: + DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28,
1: + DEVLINK_CMD_ESWITCH_GET = 29,
1: + DEVLINK_CMD_ESWITCH_SET = 30,
1: + DEVLINK_CMD_DPIPE_TABLE_GET = 31,
1: + DEVLINK_CMD_DPIPE_ENTRIES_GET = 32,
1: + DEVLINK_CMD_DPIPE_HEADERS_GET = 33,
1: + DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 34,
1: + DEVLINK_CMD_RESOURCE_SET = 35,
1: + DEVLINK_CMD_RESOURCE_DUMP = 36,
1: + DEVLINK_CMD_RELOAD = 37,
1: + DEVLINK_CMD_PARAM_GET = 38,
1: + DEVLINK_CMD_PARAM_SET = 39,
1: + DEVLINK_CMD_PARAM_NEW = 40,
1: + DEVLINK_CMD_PARAM_DEL = 41,
1: + DEVLINK_CMD_REGION_GET = 42,
1: + DEVLINK_CMD_REGION_SET = 43,
1: + DEVLINK_CMD_REGION_NEW = 44,
1: + DEVLINK_CMD_REGION_DEL = 45,
1: + DEVLINK_CMD_REGION_READ = 46,
1: + DEVLINK_CMD_PORT_PARAM_GET = 47,
1: + DEVLINK_CMD_PORT_PARAM_SET = 48,
1: + DEVLINK_CMD_PORT_PARAM_NEW = 49,
1: + DEVLINK_CMD_PORT_PARAM_DEL = 50,
1: + DEVLINK_CMD_INFO_GET = 51,
1: + DEVLINK_CMD_HEALTH_REPORTER_GET = 52,
1: + DEVLINK_CMD_HEALTH_REPORTER_SET = 53,
1: + DEVLINK_CMD_HEALTH_REPORTER_RECOVER = 54,
1: + DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE = 55,
1: + DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET = 56,
1: + DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR = 57,
1: + DEVLINK_CMD_FLASH_UPDATE = 58,
1: + DEVLINK_CMD_FLASH_UPDATE_END = 59,
1: + DEVLINK_CMD_FLASH_UPDATE_STATUS = 60,
1: + DEVLINK_CMD_TRAP_GET = 61,
1: + DEVLINK_CMD_TRAP_SET = 62,
1: + DEVLINK_CMD_TRAP_NEW = 63,
1: + DEVLINK_CMD_TRAP_DEL = 64,
1: + DEVLINK_CMD_TRAP_GROUP_GET = 65,
1: + DEVLINK_CMD_TRAP_GROUP_SET = 66,
1: + DEVLINK_CMD_TRAP_GROUP_NEW = 67,
1: + DEVLINK_CMD_TRAP_GROUP_DEL = 68,
1: + DEVLINK_CMD_TRAP_POLICER_GET = 69,
1: + DEVLINK_CMD_TRAP_POLICER_SET = 70,
1: + DEVLINK_CMD_TRAP_POLICER_NEW = 71,
1: + DEVLINK_CMD_TRAP_POLICER_DEL = 72,
1: + DEVLINK_CMD_HEALTH_REPORTER_TEST = 73,
1: + __DEVLINK_CMD_MAX = 74,
1: + DEVLINK_CMD_MAX = 73,
1: };
1:
1: enum devlink_eswitch_mode {
1: - DEVLINK_ESWITCH_MODE_LEGACY = 0,
1: - DEVLINK_ESWITCH_MODE_SWITCHDEV = 1,
1: + DEVLINK_ESWITCH_MODE_LEGACY = 0,
1: + DEVLINK_ESWITCH_MODE_SWITCHDEV = 1,
1: };
1:
1: enum {
1: - DEVLINK_ATTR_STATS_RX_PACKETS = 0,
1: - DEVLINK_ATTR_STATS_RX_BYTES = 1,
1: - DEVLINK_ATTR_STATS_RX_DROPPED = 2,
1: - __DEVLINK_ATTR_STATS_MAX = 3,
1: - DEVLINK_ATTR_STATS_MAX = 2,
1: + DEVLINK_ATTR_STATS_RX_PACKETS = 0,
1: + DEVLINK_ATTR_STATS_RX_BYTES = 1,
1: + DEVLINK_ATTR_STATS_RX_DROPPED = 2,
1: + __DEVLINK_ATTR_STATS_MAX = 3,
1: + DEVLINK_ATTR_STATS_MAX = 2,
1: };
1:
1: enum {
1: - DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT = 0,
1: - DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT = 1,
1: - __DEVLINK_FLASH_OVERWRITE_MAX_BIT = 2,
1: - DEVLINK_FLASH_OVERWRITE_MAX_BIT = 1,
1: + DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT = 0,
1: + DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT = 1,
1: + __DEVLINK_FLASH_OVERWRITE_MAX_BIT = 2,
1: + DEVLINK_FLASH_OVERWRITE_MAX_BIT = 1,
1: };
1:
1: enum {
1: - DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT = 0,
1: - DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE = 1,
1: + DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT = 0,
1: + DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE = 1,
1: };
1:
1: enum devlink_attr {
1: - DEVLINK_ATTR_UNSPEC = 0,
1: - DEVLINK_ATTR_BUS_NAME = 1,
1: - DEVLINK_ATTR_DEV_NAME = 2,
1: - DEVLINK_ATTR_PORT_INDEX = 3,
1: - DEVLINK_ATTR_PORT_TYPE = 4,
1: - DEVLINK_ATTR_PORT_DESIRED_TYPE = 5,
1: - DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 6,
1: - DEVLINK_ATTR_PORT_NETDEV_NAME = 7,
1: - DEVLINK_ATTR_PORT_IBDEV_NAME = 8,
1: - DEVLINK_ATTR_PORT_SPLIT_COUNT = 9,
1: - DEVLINK_ATTR_PORT_SPLIT_GROUP = 10,
1: - DEVLINK_ATTR_SB_INDEX = 11,
1: - DEVLINK_ATTR_SB_SIZE = 12,
1: - DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 13,
1: - DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 14,
1: - DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 15,
1: - DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 16,
1: - DEVLINK_ATTR_SB_POOL_INDEX = 17,
1: - DEVLINK_ATTR_SB_POOL_TYPE = 18,
1: - DEVLINK_ATTR_SB_POOL_SIZE = 19,
1: - DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20,
1: - DEVLINK_ATTR_SB_THRESHOLD = 21,
1: - DEVLINK_ATTR_SB_TC_INDEX = 22,
1: - DEVLINK_ATTR_SB_OCC_CUR = 23,
1: - DEVLINK_ATTR_SB_OCC_MAX = 24,
1: - DEVLINK_ATTR_ESWITCH_MODE = 25,
1: - DEVLINK_ATTR_ESWITCH_INLINE_MODE = 26,
1: - DEVLINK_ATTR_DPIPE_TABLES = 27,
1: - DEVLINK_ATTR_DPIPE_TABLE = 28,
1: - DEVLINK_ATTR_DPIPE_TABLE_NAME = 29,
1: - DEVLINK_ATTR_DPIPE_TABLE_SIZE = 30,
1: - DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 31,
1: - DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 32,
1: - DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 33,
1: - DEVLINK_ATTR_DPIPE_ENTRIES = 34,
1: - DEVLINK_ATTR_DPIPE_ENTRY = 35,
1: - DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 36,
1: - DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 37,
1: - DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 38,
1: - DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 39,
1: - DEVLINK_ATTR_DPIPE_MATCH = 40,
1: - DEVLINK_ATTR_DPIPE_MATCH_VALUE = 41,
1: - DEVLINK_ATTR_DPIPE_MATCH_TYPE = 42,
1: - DEVLINK_ATTR_DPIPE_ACTION = 43,
1: - DEVLINK_ATTR_DPIPE_ACTION_VALUE = 44,
1: - DEVLINK_ATTR_DPIPE_ACTION_TYPE = 45,
1: - DEVLINK_ATTR_DPIPE_VALUE = 46,
1: - DEVLINK_ATTR_DPIPE_VALUE_MASK = 47,
1: - DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 48,
1: - DEVLINK_ATTR_DPIPE_HEADERS = 49,
1: - DEVLINK_ATTR_DPIPE_HEADER = 50,
1: - DEVLINK_ATTR_DPIPE_HEADER_NAME = 51,
1: - DEVLINK_ATTR_DPIPE_HEADER_ID = 52,
1: - DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 53,
1: - DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 54,
1: - DEVLINK_ATTR_DPIPE_HEADER_INDEX = 55,
1: - DEVLINK_ATTR_DPIPE_FIELD = 56,
1: - DEVLINK_ATTR_DPIPE_FIELD_NAME = 57,
1: - DEVLINK_ATTR_DPIPE_FIELD_ID = 58,
1: - DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 59,
1: - DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 60,
1: - DEVLINK_ATTR_PAD = 61,
1: - DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 62,
1: - DEVLINK_ATTR_RESOURCE_LIST = 63,
1: - DEVLINK_ATTR_RESOURCE = 64,
1: - DEVLINK_ATTR_RESOURCE_NAME = 65,
1: - DEVLINK_ATTR_RESOURCE_ID = 66,
1: - DEVLINK_ATTR_RESOURCE_SIZE = 67,
1: - DEVLINK_ATTR_RESOURCE_SIZE_NEW = 68,
1: - DEVLINK_ATTR_RESOURCE_SIZE_VALID = 69,
1: - DEVLINK_ATTR_RESOURCE_SIZE_MIN = 70,
1: - DEVLINK_ATTR_RESOURCE_SIZE_MAX = 71,
1: - DEVLINK_ATTR_RESOURCE_SIZE_GRAN = 72,
1: - DEVLINK_ATTR_RESOURCE_UNIT = 73,
1: - DEVLINK_ATTR_RESOURCE_OCC = 74,
1: - DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID = 75,
1: - DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS = 76,
1: - DEVLINK_ATTR_PORT_FLAVOUR = 77,
1: - DEVLINK_ATTR_PORT_NUMBER = 78,
1: - DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER = 79,
1: - DEVLINK_ATTR_PARAM = 80,
1: - DEVLINK_ATTR_PARAM_NAME = 81,
1: - DEVLINK_ATTR_PARAM_GENERIC = 82,
1: - DEVLINK_ATTR_PARAM_TYPE = 83,
1: - DEVLINK_ATTR_PARAM_VALUES_LIST = 84,
1: - DEVLINK_ATTR_PARAM_VALUE = 85,
1: - DEVLINK_ATTR_PARAM_VALUE_DATA = 86,
1: - DEVLINK_ATTR_PARAM_VALUE_CMODE = 87,
1: - DEVLINK_ATTR_REGION_NAME = 88,
1: - DEVLINK_ATTR_REGION_SIZE = 89,
1: - DEVLINK_ATTR_REGION_SNAPSHOTS = 90,
1: - DEVLINK_ATTR_REGION_SNAPSHOT = 91,
1: - DEVLINK_ATTR_REGION_SNAPSHOT_ID = 92,
1: - DEVLINK_ATTR_REGION_CHUNKS = 93,
1: - DEVLINK_ATTR_REGION_CHUNK = 94,
1: - DEVLINK_ATTR_REGION_CHUNK_DATA = 95,
1: - DEVLINK_ATTR_REGION_CHUNK_ADDR = 96,
1: - DEVLINK_ATTR_REGION_CHUNK_LEN = 97,
1: - DEVLINK_ATTR_INFO_DRIVER_NAME = 98,
1: - DEVLINK_ATTR_INFO_SERIAL_NUMBER = 99,
1: - DEVLINK_ATTR_INFO_VERSION_FIXED = 100,
1: - DEVLINK_ATTR_INFO_VERSION_RUNNING = 101,
1: - DEVLINK_ATTR_INFO_VERSION_STORED = 102,
1: - DEVLINK_ATTR_INFO_VERSION_NAME = 103,
1: - DEVLINK_ATTR_INFO_VERSION_VALUE = 104,
1: - DEVLINK_ATTR_SB_POOL_CELL_SIZE = 105,
1: - DEVLINK_ATTR_FMSG = 106,
1: - DEVLINK_ATTR_FMSG_OBJ_NEST_START = 107,
1: - DEVLINK_ATTR_FMSG_PAIR_NEST_START = 108,
1: - DEVLINK_ATTR_FMSG_ARR_NEST_START = 109,
1: - DEVLINK_ATTR_FMSG_NEST_END = 110,
1: - DEVLINK_ATTR_FMSG_OBJ_NAME = 111,
1: - DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE = 112,
1: - DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA = 113,
1: - DEVLINK_ATTR_HEALTH_REPORTER = 114,
1: - DEVLINK_ATTR_HEALTH_REPORTER_NAME = 115,
1: - DEVLINK_ATTR_HEALTH_REPORTER_STATE = 116,
1: - DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT = 117,
1: - DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT = 118,
1: - DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS = 119,
1: - DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD = 120,
1: - DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER = 121,
1: - DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME = 122,
1: - DEVLINK_ATTR_FLASH_UPDATE_COMPONENT = 123,
1: - DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG = 124,
1: - DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE = 125,
1: - DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL = 126,
1: - DEVLINK_ATTR_PORT_PCI_PF_NUMBER = 127,
1: - DEVLINK_ATTR_PORT_PCI_VF_NUMBER = 128,
1: - DEVLINK_ATTR_STATS = 129,
1: - DEVLINK_ATTR_TRAP_NAME = 130,
1: - DEVLINK_ATTR_TRAP_ACTION = 131,
1: - DEVLINK_ATTR_TRAP_TYPE = 132,
1: - DEVLINK_ATTR_TRAP_GENERIC = 133,
1: - DEVLINK_ATTR_TRAP_METADATA = 134,
1: - DEVLINK_ATTR_TRAP_GROUP_NAME = 135,
1: - DEVLINK_ATTR_RELOAD_FAILED = 136,
1: - DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS = 137,
1: - DEVLINK_ATTR_NETNS_FD = 138,
1: - DEVLINK_ATTR_NETNS_PID = 139,
1: - DEVLINK_ATTR_NETNS_ID = 140,
1: - DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP = 141,
1: - DEVLINK_ATTR_TRAP_POLICER_ID = 142,
1: - DEVLINK_ATTR_TRAP_POLICER_RATE = 143,
1: - DEVLINK_ATTR_TRAP_POLICER_BURST = 144,
1: - DEVLINK_ATTR_PORT_FUNCTION = 145,
1: - DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER = 146,
1: - DEVLINK_ATTR_PORT_LANES = 147,
1: - DEVLINK_ATTR_PORT_SPLITTABLE = 148,
1: - DEVLINK_ATTR_PORT_EXTERNAL = 149,
1: - DEVLINK_ATTR_PORT_CONTROLLER_NUMBER = 150,
1: - DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT = 151,
1: - DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK = 152,
1: - DEVLINK_ATTR_RELOAD_ACTION = 153,
1: - DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED = 154,
1: - DEVLINK_ATTR_RELOAD_LIMITS = 155,
1: - DEVLINK_ATTR_DEV_STATS = 156,
1: - DEVLINK_ATTR_RELOAD_STATS = 157,
1: - DEVLINK_ATTR_RELOAD_STATS_ENTRY = 158,
1: - DEVLINK_ATTR_RELOAD_STATS_LIMIT = 159,
1: - DEVLINK_ATTR_RELOAD_STATS_VALUE = 160,
1: - DEVLINK_ATTR_REMOTE_RELOAD_STATS = 161,
1: - DEVLINK_ATTR_RELOAD_ACTION_INFO = 162,
1: - DEVLINK_ATTR_RELOAD_ACTION_STATS = 163,
1: - __DEVLINK_ATTR_MAX = 164,
1: - DEVLINK_ATTR_MAX = 163,
1: + DEVLINK_ATTR_UNSPEC = 0,
1: + DEVLINK_ATTR_BUS_NAME = 1,
1: + DEVLINK_ATTR_DEV_NAME = 2,
1: + DEVLINK_ATTR_PORT_INDEX = 3,
1: + DEVLINK_ATTR_PORT_TYPE = 4,
1: + DEVLINK_ATTR_PORT_DESIRED_TYPE = 5,
1: + DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 6,
1: + DEVLINK_ATTR_PORT_NETDEV_NAME = 7,
1: + DEVLINK_ATTR_PORT_IBDEV_NAME = 8,
1: + DEVLINK_ATTR_PORT_SPLIT_COUNT = 9,
1: + DEVLINK_ATTR_PORT_SPLIT_GROUP = 10,
1: + DEVLINK_ATTR_SB_INDEX = 11,
1: + DEVLINK_ATTR_SB_SIZE = 12,
1: + DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 13,
1: + DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 14,
1: + DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 15,
1: + DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 16,
1: + DEVLINK_ATTR_SB_POOL_INDEX = 17,
1: + DEVLINK_ATTR_SB_POOL_TYPE = 18,
1: + DEVLINK_ATTR_SB_POOL_SIZE = 19,
1: + DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20,
1: + DEVLINK_ATTR_SB_THRESHOLD = 21,
1: + DEVLINK_ATTR_SB_TC_INDEX = 22,
1: + DEVLINK_ATTR_SB_OCC_CUR = 23,
1: + DEVLINK_ATTR_SB_OCC_MAX = 24,
1: + DEVLINK_ATTR_ESWITCH_MODE = 25,
1: + DEVLINK_ATTR_ESWITCH_INLINE_MODE = 26,
1: + DEVLINK_ATTR_DPIPE_TABLES = 27,
1: + DEVLINK_ATTR_DPIPE_TABLE = 28,
1: + DEVLINK_ATTR_DPIPE_TABLE_NAME = 29,
1: + DEVLINK_ATTR_DPIPE_TABLE_SIZE = 30,
1: + DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 31,
1: + DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 32,
1: + DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 33,
1: + DEVLINK_ATTR_DPIPE_ENTRIES = 34,
1: + DEVLINK_ATTR_DPIPE_ENTRY = 35,
1: + DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 36,
1: + DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 37,
1: + DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 38,
1: + DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 39,
1: + DEVLINK_ATTR_DPIPE_MATCH = 40,
1: + DEVLINK_ATTR_DPIPE_MATCH_VALUE = 41,
1: + DEVLINK_ATTR_DPIPE_MATCH_TYPE = 42,
1: + DEVLINK_ATTR_DPIPE_ACTION = 43,
1: + DEVLINK_ATTR_DPIPE_ACTION_VALUE = 44,
1: + DEVLINK_ATTR_DPIPE_ACTION_TYPE = 45,
1: + DEVLINK_ATTR_DPIPE_VALUE = 46,
1: + DEVLINK_ATTR_DPIPE_VALUE_MASK = 47,
1: + DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 48,
1: + DEVLINK_ATTR_DPIPE_HEADERS = 49,
1: + DEVLINK_ATTR_DPIPE_HEADER = 50,
1: + DEVLINK_ATTR_DPIPE_HEADER_NAME = 51,
1: + DEVLINK_ATTR_DPIPE_HEADER_ID = 52,
1: + DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 53,
1: + DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 54,
1: + DEVLINK_ATTR_DPIPE_HEADER_INDEX = 55,
1: + DEVLINK_ATTR_DPIPE_FIELD = 56,
1: + DEVLINK_ATTR_DPIPE_FIELD_NAME = 57,
1: + DEVLINK_ATTR_DPIPE_FIELD_ID = 58,
1: + DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 59,
1: + DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 60,
1: + DEVLINK_ATTR_PAD = 61,
1: + DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 62,
1: + DEVLINK_ATTR_RESOURCE_LIST = 63,
1: + DEVLINK_ATTR_RESOURCE = 64,
1: + DEVLINK_ATTR_RESOURCE_NAME = 65,
1: + DEVLINK_ATTR_RESOURCE_ID = 66,
1: + DEVLINK_ATTR_RESOURCE_SIZE = 67,
1: + DEVLINK_ATTR_RESOURCE_SIZE_NEW = 68,
1: + DEVLINK_ATTR_RESOURCE_SIZE_VALID = 69,
1: + DEVLINK_ATTR_RESOURCE_SIZE_MIN = 70,
1: + DEVLINK_ATTR_RESOURCE_SIZE_MAX = 71,
1: + DEVLINK_ATTR_RESOURCE_SIZE_GRAN = 72,
1: + DEVLINK_ATTR_RESOURCE_UNIT = 73,
1: + DEVLINK_ATTR_RESOURCE_OCC = 74,
1: + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID = 75,
1: + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS = 76,
1: + DEVLINK_ATTR_PORT_FLAVOUR = 77,
1: + DEVLINK_ATTR_PORT_NUMBER = 78,
1: + DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER = 79,
1: + DEVLINK_ATTR_PARAM = 80,
1: + DEVLINK_ATTR_PARAM_NAME = 81,
1: + DEVLINK_ATTR_PARAM_GENERIC = 82,
1: + DEVLINK_ATTR_PARAM_TYPE = 83,
1: + DEVLINK_ATTR_PARAM_VALUES_LIST = 84,
1: + DEVLINK_ATTR_PARAM_VALUE = 85,
1: + DEVLINK_ATTR_PARAM_VALUE_DATA = 86,
1: + DEVLINK_ATTR_PARAM_VALUE_CMODE = 87,
1: + DEVLINK_ATTR_REGION_NAME = 88,
1: + DEVLINK_ATTR_REGION_SIZE = 89,
1: + DEVLINK_ATTR_REGION_SNAPSHOTS = 90,
1: + DEVLINK_ATTR_REGION_SNAPSHOT = 91,
1: + DEVLINK_ATTR_REGION_SNAPSHOT_ID = 92,
1: + DEVLINK_ATTR_REGION_CHUNKS = 93,
1: + DEVLINK_ATTR_REGION_CHUNK = 94,
1: + DEVLINK_ATTR_REGION_CHUNK_DATA = 95,
1: + DEVLINK_ATTR_REGION_CHUNK_ADDR = 96,
1: + DEVLINK_ATTR_REGION_CHUNK_LEN = 97,
1: + DEVLINK_ATTR_INFO_DRIVER_NAME = 98,
1: + DEVLINK_ATTR_INFO_SERIAL_NUMBER = 99,
1: + DEVLINK_ATTR_INFO_VERSION_FIXED = 100,
1: + DEVLINK_ATTR_INFO_VERSION_RUNNING = 101,
1: + DEVLINK_ATTR_INFO_VERSION_STORED = 102,
1: + DEVLINK_ATTR_INFO_VERSION_NAME = 103,
1: + DEVLINK_ATTR_INFO_VERSION_VALUE = 104,
1: + DEVLINK_ATTR_SB_POOL_CELL_SIZE = 105,
1: + DEVLINK_ATTR_FMSG = 106,
1: + DEVLINK_ATTR_FMSG_OBJ_NEST_START = 107,
1: + DEVLINK_ATTR_FMSG_PAIR_NEST_START = 108,
1: + DEVLINK_ATTR_FMSG_ARR_NEST_START = 109,
1: + DEVLINK_ATTR_FMSG_NEST_END = 110,
1: + DEVLINK_ATTR_FMSG_OBJ_NAME = 111,
1: + DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE = 112,
1: + DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA = 113,
1: + DEVLINK_ATTR_HEALTH_REPORTER = 114,
1: + DEVLINK_ATTR_HEALTH_REPORTER_NAME = 115,
1: + DEVLINK_ATTR_HEALTH_REPORTER_STATE = 116,
1: + DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT = 117,
1: + DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT = 118,
1: + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS = 119,
1: + DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD = 120,
1: + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER = 121,
1: + DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME = 122,
1: + DEVLINK_ATTR_FLASH_UPDATE_COMPONENT = 123,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG = 124,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE = 125,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL = 126,
1: + DEVLINK_ATTR_PORT_PCI_PF_NUMBER = 127,
1: + DEVLINK_ATTR_PORT_PCI_VF_NUMBER = 128,
1: + DEVLINK_ATTR_STATS = 129,
1: + DEVLINK_ATTR_TRAP_NAME = 130,
1: + DEVLINK_ATTR_TRAP_ACTION = 131,
1: + DEVLINK_ATTR_TRAP_TYPE = 132,
1: + DEVLINK_ATTR_TRAP_GENERIC = 133,
1: + DEVLINK_ATTR_TRAP_METADATA = 134,
1: + DEVLINK_ATTR_TRAP_GROUP_NAME = 135,
1: + DEVLINK_ATTR_RELOAD_FAILED = 136,
1: + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS = 137,
1: + DEVLINK_ATTR_NETNS_FD = 138,
1: + DEVLINK_ATTR_NETNS_PID = 139,
1: + DEVLINK_ATTR_NETNS_ID = 140,
1: + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP = 141,
1: + DEVLINK_ATTR_TRAP_POLICER_ID = 142,
1: + DEVLINK_ATTR_TRAP_POLICER_RATE = 143,
1: + DEVLINK_ATTR_TRAP_POLICER_BURST = 144,
1: + DEVLINK_ATTR_PORT_FUNCTION = 145,
1: + DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER = 146,
1: + DEVLINK_ATTR_PORT_LANES = 147,
1: + DEVLINK_ATTR_PORT_SPLITTABLE = 148,
1: + DEVLINK_ATTR_PORT_EXTERNAL = 149,
1: + DEVLINK_ATTR_PORT_CONTROLLER_NUMBER = 150,
1: + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT = 151,
1: + DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK = 152,
1: + DEVLINK_ATTR_RELOAD_ACTION = 153,
1: + DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED = 154,
1: + DEVLINK_ATTR_RELOAD_LIMITS = 155,
1: + DEVLINK_ATTR_DEV_STATS = 156,
1: + DEVLINK_ATTR_RELOAD_STATS = 157,
1: + DEVLINK_ATTR_RELOAD_STATS_ENTRY = 158,
1: + DEVLINK_ATTR_RELOAD_STATS_LIMIT = 159,
1: + DEVLINK_ATTR_RELOAD_STATS_VALUE = 160,
1: + DEVLINK_ATTR_REMOTE_RELOAD_STATS = 161,
1: + DEVLINK_ATTR_RELOAD_ACTION_INFO = 162,
1: + DEVLINK_ATTR_RELOAD_ACTION_STATS = 163,
1: + __DEVLINK_ATTR_MAX = 164,
1: + DEVLINK_ATTR_MAX = 163,
1: };
1:
1: enum devlink_dpipe_match_type {
1: - DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0,
1: + DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0,
1: };
1:
1: enum devlink_dpipe_action_type {
1: - DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0,
1: + DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0,
1: };
1:
1: enum devlink_dpipe_field_ethernet_id {
1: - DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0,
1: + DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0,
1: };
1:
1: enum devlink_dpipe_field_ipv4_id {
1: - DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0,
1: + DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0,
1: };
1:
1: enum devlink_dpipe_field_ipv6_id {
1: - DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0,
1: + DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0,
1: };
1:
1: enum devlink_dpipe_header_id {
1: - DEVLINK_DPIPE_HEADER_ETHERNET = 0,
1: - DEVLINK_DPIPE_HEADER_IPV4 = 1,
1: - DEVLINK_DPIPE_HEADER_IPV6 = 2,
1: + DEVLINK_DPIPE_HEADER_ETHERNET = 0,
1: + DEVLINK_DPIPE_HEADER_IPV4 = 1,
1: + DEVLINK_DPIPE_HEADER_IPV6 = 2,
1: };
1:
1: enum devlink_resource_unit {
1: - DEVLINK_RESOURCE_UNIT_ENTRY = 0,
1: + DEVLINK_RESOURCE_UNIT_ENTRY = 0,
1: };
1:
1: enum devlink_port_function_attr {
1: - DEVLINK_PORT_FUNCTION_ATTR_UNSPEC = 0,
1: - DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 1,
1: - __DEVLINK_PORT_FUNCTION_ATTR_MAX = 2,
1: - DEVLINK_PORT_FUNCTION_ATTR_MAX = 1,
1: + DEVLINK_PORT_FUNCTION_ATTR_UNSPEC = 0,
1: + DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 1,
1: + __DEVLINK_PORT_FUNCTION_ATTR_MAX = 2,
1: + DEVLINK_PORT_FUNCTION_ATTR_MAX = 1,
1: };
1:
1: struct devlink_dpipe_match {
1: - enum devlink_dpipe_match_type type;
1: - unsigned int header_index;
1: - struct devlink_dpipe_header *header;
1: - unsigned int field_id;
1: + enum devlink_dpipe_match_type type;
1: + unsigned int header_index;
1: + struct devlink_dpipe_header *header;
1: + unsigned int field_id;
1: };
1:
1: struct devlink_dpipe_action {
1: - enum devlink_dpipe_action_type type;
1: - unsigned int header_index;
1: - struct devlink_dpipe_header *header;
1: - unsigned int field_id;
1: + enum devlink_dpipe_action_type type;
1: + unsigned int header_index;
1: + struct devlink_dpipe_header *header;
1: + unsigned int field_id;
1: };
1:
1: struct devlink_dpipe_value {
1: - union {
1: - struct devlink_dpipe_action *action;
1: - struct devlink_dpipe_match *match;
1: - };
1: - unsigned int mapping_value;
1: - bool mapping_valid;
1: - unsigned int value_size;
1: - void *value;
1: - void *mask;
1: + union {
1: + struct devlink_dpipe_action *action;
1: + struct devlink_dpipe_match *match;
1: + };
1: + unsigned int mapping_value;
1: + bool mapping_valid;
1: + unsigned int value_size;
1: + void *value;
1: + void *mask;
1: };
1:
1: struct devlink_dpipe_entry {
1: - u64 index;
1: - struct devlink_dpipe_value *match_values;
1: - unsigned int match_values_count;
1: - struct devlink_dpipe_value *action_values;
1: - unsigned int action_values_count;
1: - u64 counter;
1: - bool counter_valid;
1: + u64 index;
1: + struct devlink_dpipe_value *match_values;
1: + unsigned int match_values_count;
1: + struct devlink_dpipe_value *action_values;
1: + unsigned int action_values_count;
1: + u64 counter;
1: + bool counter_valid;
1: };
1:
1: struct devlink_dpipe_dump_ctx {
1: - struct genl_info *info;
1: - enum devlink_command cmd;
1: - struct sk_buff *skb;
1: - struct nlattr *nest;
1: - void *hdr;
1: + struct genl_info *info;
1: + enum devlink_command cmd;
1: + struct sk_buff *skb;
1: + struct nlattr *nest;
1: + void *hdr;
1: };
1:
1: struct devlink_dpipe_table_ops;
1:
1: struct devlink_dpipe_table {
1: - void *priv;
1: - struct list_head list;
1: - const char *name;
1: - bool counters_enabled;
1: - bool counter_control_extern;
1: - bool resource_valid;
1: - u64 resource_id;
1: - u64 resource_units;
1: - struct devlink_dpipe_table_ops *table_ops;
1: - struct callback_head rcu;
1: + void *priv;
1: + struct list_head list;
1: + const char *name;
1: + bool counters_enabled;
1: + bool counter_control_extern;
1: + bool resource_valid;
1: + u64 resource_id;
1: + u64 resource_units;
1: + struct devlink_dpipe_table_ops *table_ops;
1: + struct callback_head rcu;
1: };
1:
1: struct devlink_dpipe_table_ops {
1: - int (*actions_dump)(void *, struct sk_buff *);
1: - int (*matches_dump)(void *, struct sk_buff *);
1: - int (*entries_dump)(void *, bool, struct devlink_dpipe_dump_ctx *);
1: - int (*counters_set_update)(void *, bool);
1: - u64 (*size_get)(void *);
1: + int (*actions_dump)(void *, struct sk_buff *);
1: + int (*matches_dump)(void *, struct sk_buff *);
1: + int (*entries_dump)(void *, bool, struct devlink_dpipe_dump_ctx *);
1: + int (*counters_set_update)(void *, bool);
1: + u64 (*size_get)(void *);
1: };
1:
1: struct devlink_resource_size_params {
1: - u64 size_min;
1: - u64 size_max;
1: - u64 size_granularity;
1: - enum devlink_resource_unit unit;
1: + u64 size_min;
1: + u64 size_max;
1: + u64 size_granularity;
1: + enum devlink_resource_unit unit;
1: };
1:
1: typedef u64 devlink_resource_occ_get_t(void *);
1:
1: struct devlink_resource {
1: - const char *name;
1: - u64 id;
1: - u64 size;
1: - u64 size_new;
1: - bool size_valid;
1: - struct devlink_resource *parent;
1: - struct devlink_resource_size_params size_params;
1: - struct list_head list;
1: - struct list_head resource_list;
1: - devlink_resource_occ_get_t *occ_get;
1: - void *occ_get_priv;
1: + const char *name;
1: + u64 id;
1: + u64 size;
1: + u64 size_new;
1: + bool size_valid;
1: + struct devlink_resource *parent;
1: + struct devlink_resource_size_params size_params;
1: + struct list_head list;
1: + struct list_head resource_list;
1: + devlink_resource_occ_get_t *occ_get;
1: + void *occ_get_priv;
1: };
1:
1: enum devlink_param_type {
1: - DEVLINK_PARAM_TYPE_U8 = 0,
1: - DEVLINK_PARAM_TYPE_U16 = 1,
1: - DEVLINK_PARAM_TYPE_U32 = 2,
1: - DEVLINK_PARAM_TYPE_STRING = 3,
1: - DEVLINK_PARAM_TYPE_BOOL = 4,
1: + DEVLINK_PARAM_TYPE_U8 = 0,
1: + DEVLINK_PARAM_TYPE_U16 = 1,
1: + DEVLINK_PARAM_TYPE_U32 = 2,
1: + DEVLINK_PARAM_TYPE_STRING = 3,
1: + DEVLINK_PARAM_TYPE_BOOL = 4,
1: };
1:
1: struct devlink_flash_notify {
1: - const char *status_msg;
1: - const char *component;
1: - long unsigned int done;
1: - long unsigned int total;
1: - long unsigned int timeout;
1: + const char *status_msg;
1: + const char *component;
1: + long unsigned int done;
1: + long unsigned int total;
1: + long unsigned int timeout;
1: };
1:
1: struct devlink_param {
1: - u32 id;
1: - const char *name;
1: - bool generic;
1: - enum devlink_param_type type;
1: - long unsigned int supported_cmodes;
1: - int (*get)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: - int (*set)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: - int (*validate)(struct devlink *, u32, union devlink_param_value, struct netlink_ext_ack *);
1: + u32 id;
1: + const char *name;
1: + bool generic;
1: + enum devlink_param_type type;
1: + long unsigned int supported_cmodes;
1: + int (*get)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: + int (*set)(struct devlink *, u32, struct devlink_param_gset_ctx *);
1: + int (*validate)(struct devlink *, u32, union devlink_param_value,
1: + struct netlink_ext_ack *);
1: };
1:
1: struct devlink_param_item {
1: - struct list_head list;
1: - const struct devlink_param *param;
1: - union devlink_param_value driverinit_value;
1: - bool driverinit_value_valid;
1: - bool published;
1: + struct list_head list;
1: + const struct devlink_param *param;
1: + union devlink_param_value driverinit_value;
1: + bool driverinit_value_valid;
1: + bool published;
1: };
1:
1: enum devlink_param_generic_id {
1: - DEVLINK_PARAM_GENERIC_ID_INT_ERR_RESET = 0,
1: - DEVLINK_PARAM_GENERIC_ID_MAX_MACS = 1,
1: - DEVLINK_PARAM_GENERIC_ID_ENABLE_SRIOV = 2,
1: - DEVLINK_PARAM_GENERIC_ID_REGION_SNAPSHOT = 3,
1: - DEVLINK_PARAM_GENERIC_ID_IGNORE_ARI = 4,
1: - DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX = 5,
1: - DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN = 6,
1: - DEVLINK_PARAM_GENERIC_ID_FW_LOAD_POLICY = 7,
1: - DEVLINK_PARAM_GENERIC_ID_RESET_DEV_ON_DRV_PROBE = 8,
1: - DEVLINK_PARAM_GENERIC_ID_ENABLE_ROCE = 9,
1: - DEVLINK_PARAM_GENERIC_ID_ENABLE_REMOTE_DEV_RESET = 10,
1: - __DEVLINK_PARAM_GENERIC_ID_MAX = 11,
1: - DEVLINK_PARAM_GENERIC_ID_MAX = 10,
1: + DEVLINK_PARAM_GENERIC_ID_INT_ERR_RESET = 0,
1: + DEVLINK_PARAM_GENERIC_ID_MAX_MACS = 1,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_SRIOV = 2,
1: + DEVLINK_PARAM_GENERIC_ID_REGION_SNAPSHOT = 3,
1: + DEVLINK_PARAM_GENERIC_ID_IGNORE_ARI = 4,
1: + DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MAX = 5,
1: + DEVLINK_PARAM_GENERIC_ID_MSIX_VEC_PER_PF_MIN = 6,
1: + DEVLINK_PARAM_GENERIC_ID_FW_LOAD_POLICY = 7,
1: + DEVLINK_PARAM_GENERIC_ID_RESET_DEV_ON_DRV_PROBE = 8,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_ROCE = 9,
1: + DEVLINK_PARAM_GENERIC_ID_ENABLE_REMOTE_DEV_RESET = 10,
1: + __DEVLINK_PARAM_GENERIC_ID_MAX = 11,
1: + DEVLINK_PARAM_GENERIC_ID_MAX = 10,
1: };
1:
1: struct devlink_region_ops {
1: - const char *name;
1: - void (*destructor)(const void *);
1: - int (*snapshot)(struct devlink *, const struct devlink_region_ops *, struct netlink_ext_ack *, u8 **);
1: - void *priv;
1: + const char *name;
1: + void (*destructor)(const void *);
1: + int (*snapshot)(struct devlink *, const struct devlink_region_ops *,
1: + struct netlink_ext_ack *, u8 **);
1: + void *priv;
1: };
1:
1: struct devlink_port_region_ops {
1: - const char *name;
1: - void (*destructor)(const void *);
1: - int (*snapshot)(struct devlink_port *, const struct devlink_port_region_ops *, struct netlink_ext_ack *, u8 **);
1: - void *priv;
1: + const char *name;
1: + void (*destructor)(const void *);
1: + int (*snapshot)(struct devlink_port *, const struct devlink_port_region_ops *,
1: + struct netlink_ext_ack *, u8 **);
1: + void *priv;
1: };
1:
1: enum devlink_health_reporter_state {
1: - DEVLINK_HEALTH_REPORTER_STATE_HEALTHY = 0,
1: - DEVLINK_HEALTH_REPORTER_STATE_ERROR = 1,
1: + DEVLINK_HEALTH_REPORTER_STATE_HEALTHY = 0,
1: + DEVLINK_HEALTH_REPORTER_STATE_ERROR = 1,
1: };
1:
1: struct devlink_health_reporter;
1: @@ -101426,813 +102764,826 @@ struct devlink_health_reporter;
1: struct devlink_fmsg;
1:
1: struct devlink_health_reporter_ops {
1: - char *name;
1: - int (*recover)(struct devlink_health_reporter *, void *, struct netlink_ext_ack *);
1: - int (*dump)(struct devlink_health_reporter *, struct devlink_fmsg *, void *, struct netlink_ext_ack *);
1: - int (*diagnose)(struct devlink_health_reporter *, struct devlink_fmsg *, struct netlink_ext_ack *);
1: - int (*test)(struct devlink_health_reporter *, struct netlink_ext_ack *);
1: + char *name;
1: + int (*recover)(struct devlink_health_reporter *, void *,
1: + struct netlink_ext_ack *);
1: + int (*dump)(struct devlink_health_reporter *, struct devlink_fmsg *, void *,
1: + struct netlink_ext_ack *);
1: + int (*diagnose)(struct devlink_health_reporter *, struct devlink_fmsg *,
1: + struct netlink_ext_ack *);
1: + int (*test)(struct devlink_health_reporter *, struct netlink_ext_ack *);
1: };
1:
1: struct devlink_health_reporter {
1: - struct list_head list;
1: - void *priv;
1: - const struct devlink_health_reporter_ops *ops;
1: - struct devlink *devlink;
1: - struct devlink_port *devlink_port;
1: - struct devlink_fmsg *dump_fmsg;
1: - struct mutex dump_lock;
1: - u64 graceful_period;
1: - bool auto_recover;
1: - bool auto_dump;
1: - u8 health_state;
1: - u64 dump_ts;
1: - u64 dump_real_ts;
1: - u64 error_count;
1: - u64 recovery_count;
1: - u64 last_recovery_ts;
1: - refcount_t refcount;
1: + struct list_head list;
1: + void *priv;
1: + const struct devlink_health_reporter_ops *ops;
1: + struct devlink *devlink;
1: + struct devlink_port *devlink_port;
1: + struct devlink_fmsg *dump_fmsg;
1: + struct mutex dump_lock;
1: + u64 graceful_period;
1: + bool auto_recover;
1: + bool auto_dump;
1: + u8 health_state;
1: + u64 dump_ts;
1: + u64 dump_real_ts;
1: + u64 error_count;
1: + u64 recovery_count;
1: + u64 last_recovery_ts;
1: + refcount_t refcount;
1: };
1:
1: struct devlink_fmsg {
1: - struct list_head item_list;
1: - bool putting_binary;
1: + struct list_head item_list;
1: + bool putting_binary;
1: };
1:
1: struct devlink_trap_metadata {
1: - const char *trap_name;
1: - const char *trap_group_name;
1: - struct net_device *input_dev;
1: - const struct flow_action_cookie *fa_cookie;
1: - enum devlink_trap_type trap_type;
1: + const char *trap_name;
1: + const char *trap_group_name;
1: + struct net_device *input_dev;
1: + const struct flow_action_cookie *fa_cookie;
1: + enum devlink_trap_type trap_type;
1: };
1:
1: enum devlink_trap_generic_id {
1: - DEVLINK_TRAP_GENERIC_ID_SMAC_MC = 0,
1: - DEVLINK_TRAP_GENERIC_ID_VLAN_TAG_MISMATCH = 1,
1: - DEVLINK_TRAP_GENERIC_ID_INGRESS_VLAN_FILTER = 2,
1: - DEVLINK_TRAP_GENERIC_ID_INGRESS_STP_FILTER = 3,
1: - DEVLINK_TRAP_GENERIC_ID_EMPTY_TX_LIST = 4,
1: - DEVLINK_TRAP_GENERIC_ID_PORT_LOOPBACK_FILTER = 5,
1: - DEVLINK_TRAP_GENERIC_ID_BLACKHOLE_ROUTE = 6,
1: - DEVLINK_TRAP_GENERIC_ID_TTL_ERROR = 7,
1: - DEVLINK_TRAP_GENERIC_ID_TAIL_DROP = 8,
1: - DEVLINK_TRAP_GENERIC_ID_NON_IP_PACKET = 9,
1: - DEVLINK_TRAP_GENERIC_ID_UC_DIP_MC_DMAC = 10,
1: - DEVLINK_TRAP_GENERIC_ID_DIP_LB = 11,
1: - DEVLINK_TRAP_GENERIC_ID_SIP_MC = 12,
1: - DEVLINK_TRAP_GENERIC_ID_SIP_LB = 13,
1: - DEVLINK_TRAP_GENERIC_ID_CORRUPTED_IP_HDR = 14,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_SIP_BC = 15,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_RESERVED_SCOPE = 16,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_INTERFACE_LOCAL_SCOPE = 17,
1: - DEVLINK_TRAP_GENERIC_ID_MTU_ERROR = 18,
1: - DEVLINK_TRAP_GENERIC_ID_UNRESOLVED_NEIGH = 19,
1: - DEVLINK_TRAP_GENERIC_ID_RPF = 20,
1: - DEVLINK_TRAP_GENERIC_ID_REJECT_ROUTE = 21,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_LPM_UNICAST_MISS = 22,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_LPM_UNICAST_MISS = 23,
1: - DEVLINK_TRAP_GENERIC_ID_NON_ROUTABLE = 24,
1: - DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR = 25,
1: - DEVLINK_TRAP_GENERIC_ID_OVERLAY_SMAC_MC = 26,
1: - DEVLINK_TRAP_GENERIC_ID_INGRESS_FLOW_ACTION_DROP = 27,
1: - DEVLINK_TRAP_GENERIC_ID_EGRESS_FLOW_ACTION_DROP = 28,
1: - DEVLINK_TRAP_GENERIC_ID_STP = 29,
1: - DEVLINK_TRAP_GENERIC_ID_LACP = 30,
1: - DEVLINK_TRAP_GENERIC_ID_LLDP = 31,
1: - DEVLINK_TRAP_GENERIC_ID_IGMP_QUERY = 32,
1: - DEVLINK_TRAP_GENERIC_ID_IGMP_V1_REPORT = 33,
1: - DEVLINK_TRAP_GENERIC_ID_IGMP_V2_REPORT = 34,
1: - DEVLINK_TRAP_GENERIC_ID_IGMP_V3_REPORT = 35,
1: - DEVLINK_TRAP_GENERIC_ID_IGMP_V2_LEAVE = 36,
1: - DEVLINK_TRAP_GENERIC_ID_MLD_QUERY = 37,
1: - DEVLINK_TRAP_GENERIC_ID_MLD_V1_REPORT = 38,
1: - DEVLINK_TRAP_GENERIC_ID_MLD_V2_REPORT = 39,
1: - DEVLINK_TRAP_GENERIC_ID_MLD_V1_DONE = 40,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_DHCP = 41,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_DHCP = 42,
1: - DEVLINK_TRAP_GENERIC_ID_ARP_REQUEST = 43,
1: - DEVLINK_TRAP_GENERIC_ID_ARP_RESPONSE = 44,
1: - DEVLINK_TRAP_GENERIC_ID_ARP_OVERLAY = 45,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_SOLICIT = 46,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_ADVERT = 47,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_BFD = 48,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_BFD = 49,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_OSPF = 50,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_OSPF = 51,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_BGP = 52,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_BGP = 53,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_VRRP = 54,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_VRRP = 55,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_PIM = 56,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_PIM = 57,
1: - DEVLINK_TRAP_GENERIC_ID_UC_LB = 58,
1: - DEVLINK_TRAP_GENERIC_ID_LOCAL_ROUTE = 59,
1: - DEVLINK_TRAP_GENERIC_ID_EXTERNAL_ROUTE = 60,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_UC_DIP_LINK_LOCAL_SCOPE = 61,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_NODES = 62,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_ROUTERS = 63,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_SOLICIT = 64,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ADVERT = 65,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_REDIRECT = 66,
1: - DEVLINK_TRAP_GENERIC_ID_IPV4_ROUTER_ALERT = 67,
1: - DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ALERT = 68,
1: - DEVLINK_TRAP_GENERIC_ID_PTP_EVENT = 69,
1: - DEVLINK_TRAP_GENERIC_ID_PTP_GENERAL = 70,
1: - DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_SAMPLE = 71,
1: - DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_TRAP = 72,
1: - DEVLINK_TRAP_GENERIC_ID_EARLY_DROP = 73,
1: - DEVLINK_TRAP_GENERIC_ID_VXLAN_PARSING = 74,
1: - DEVLINK_TRAP_GENERIC_ID_LLC_SNAP_PARSING = 75,
1: - DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING = 76,
1: - DEVLINK_TRAP_GENERIC_ID_PPPOE_PPP_PARSING = 77,
1: - DEVLINK_TRAP_GENERIC_ID_MPLS_PARSING = 78,
1: - DEVLINK_TRAP_GENERIC_ID_ARP_PARSING = 79,
1: - DEVLINK_TRAP_GENERIC_ID_IP_1_PARSING = 80,
1: - DEVLINK_TRAP_GENERIC_ID_IP_N_PARSING = 81,
1: - DEVLINK_TRAP_GENERIC_ID_GRE_PARSING = 82,
1: - DEVLINK_TRAP_GENERIC_ID_UDP_PARSING = 83,
1: - DEVLINK_TRAP_GENERIC_ID_TCP_PARSING = 84,
1: - DEVLINK_TRAP_GENERIC_ID_IPSEC_PARSING = 85,
1: - DEVLINK_TRAP_GENERIC_ID_SCTP_PARSING = 86,
1: - DEVLINK_TRAP_GENERIC_ID_DCCP_PARSING = 87,
1: - DEVLINK_TRAP_GENERIC_ID_GTP_PARSING = 88,
1: - DEVLINK_TRAP_GENERIC_ID_ESP_PARSING = 89,
1: - __DEVLINK_TRAP_GENERIC_ID_MAX = 90,
1: - DEVLINK_TRAP_GENERIC_ID_MAX = 89,
1: + DEVLINK_TRAP_GENERIC_ID_SMAC_MC = 0,
1: + DEVLINK_TRAP_GENERIC_ID_VLAN_TAG_MISMATCH = 1,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_VLAN_FILTER = 2,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_STP_FILTER = 3,
1: + DEVLINK_TRAP_GENERIC_ID_EMPTY_TX_LIST = 4,
1: + DEVLINK_TRAP_GENERIC_ID_PORT_LOOPBACK_FILTER = 5,
1: + DEVLINK_TRAP_GENERIC_ID_BLACKHOLE_ROUTE = 6,
1: + DEVLINK_TRAP_GENERIC_ID_TTL_ERROR = 7,
1: + DEVLINK_TRAP_GENERIC_ID_TAIL_DROP = 8,
1: + DEVLINK_TRAP_GENERIC_ID_NON_IP_PACKET = 9,
1: + DEVLINK_TRAP_GENERIC_ID_UC_DIP_MC_DMAC = 10,
1: + DEVLINK_TRAP_GENERIC_ID_DIP_LB = 11,
1: + DEVLINK_TRAP_GENERIC_ID_SIP_MC = 12,
1: + DEVLINK_TRAP_GENERIC_ID_SIP_LB = 13,
1: + DEVLINK_TRAP_GENERIC_ID_CORRUPTED_IP_HDR = 14,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_SIP_BC = 15,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_RESERVED_SCOPE = 16,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_MC_DIP_INTERFACE_LOCAL_SCOPE = 17,
1: + DEVLINK_TRAP_GENERIC_ID_MTU_ERROR = 18,
1: + DEVLINK_TRAP_GENERIC_ID_UNRESOLVED_NEIGH = 19,
1: + DEVLINK_TRAP_GENERIC_ID_RPF = 20,
1: + DEVLINK_TRAP_GENERIC_ID_REJECT_ROUTE = 21,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_LPM_UNICAST_MISS = 22,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_LPM_UNICAST_MISS = 23,
1: + DEVLINK_TRAP_GENERIC_ID_NON_ROUTABLE = 24,
1: + DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR = 25,
1: + DEVLINK_TRAP_GENERIC_ID_OVERLAY_SMAC_MC = 26,
1: + DEVLINK_TRAP_GENERIC_ID_INGRESS_FLOW_ACTION_DROP = 27,
1: + DEVLINK_TRAP_GENERIC_ID_EGRESS_FLOW_ACTION_DROP = 28,
1: + DEVLINK_TRAP_GENERIC_ID_STP = 29,
1: + DEVLINK_TRAP_GENERIC_ID_LACP = 30,
1: + DEVLINK_TRAP_GENERIC_ID_LLDP = 31,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_QUERY = 32,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V1_REPORT = 33,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V2_REPORT = 34,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V3_REPORT = 35,
1: + DEVLINK_TRAP_GENERIC_ID_IGMP_V2_LEAVE = 36,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_QUERY = 37,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V1_REPORT = 38,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V2_REPORT = 39,
1: + DEVLINK_TRAP_GENERIC_ID_MLD_V1_DONE = 40,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_DHCP = 41,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DHCP = 42,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_REQUEST = 43,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_RESPONSE = 44,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_OVERLAY = 45,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_SOLICIT = 46,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_NEIGH_ADVERT = 47,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_BFD = 48,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_BFD = 49,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_OSPF = 50,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_OSPF = 51,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_BGP = 52,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_BGP = 53,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_VRRP = 54,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_VRRP = 55,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_PIM = 56,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_PIM = 57,
1: + DEVLINK_TRAP_GENERIC_ID_UC_LB = 58,
1: + DEVLINK_TRAP_GENERIC_ID_LOCAL_ROUTE = 59,
1: + DEVLINK_TRAP_GENERIC_ID_EXTERNAL_ROUTE = 60,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_UC_DIP_LINK_LOCAL_SCOPE = 61,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_NODES = 62,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_DIP_ALL_ROUTERS = 63,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_SOLICIT = 64,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ADVERT = 65,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_REDIRECT = 66,
1: + DEVLINK_TRAP_GENERIC_ID_IPV4_ROUTER_ALERT = 67,
1: + DEVLINK_TRAP_GENERIC_ID_IPV6_ROUTER_ALERT = 68,
1: + DEVLINK_TRAP_GENERIC_ID_PTP_EVENT = 69,
1: + DEVLINK_TRAP_GENERIC_ID_PTP_GENERAL = 70,
1: + DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_SAMPLE = 71,
1: + DEVLINK_TRAP_GENERIC_ID_FLOW_ACTION_TRAP = 72,
1: + DEVLINK_TRAP_GENERIC_ID_EARLY_DROP = 73,
1: + DEVLINK_TRAP_GENERIC_ID_VXLAN_PARSING = 74,
1: + DEVLINK_TRAP_GENERIC_ID_LLC_SNAP_PARSING = 75,
1: + DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING = 76,
1: + DEVLINK_TRAP_GENERIC_ID_PPPOE_PPP_PARSING = 77,
1: + DEVLINK_TRAP_GENERIC_ID_MPLS_PARSING = 78,
1: + DEVLINK_TRAP_GENERIC_ID_ARP_PARSING = 79,
1: + DEVLINK_TRAP_GENERIC_ID_IP_1_PARSING = 80,
1: + DEVLINK_TRAP_GENERIC_ID_IP_N_PARSING = 81,
1: + DEVLINK_TRAP_GENERIC_ID_GRE_PARSING = 82,
1: + DEVLINK_TRAP_GENERIC_ID_UDP_PARSING = 83,
1: + DEVLINK_TRAP_GENERIC_ID_TCP_PARSING = 84,
1: + DEVLINK_TRAP_GENERIC_ID_IPSEC_PARSING = 85,
1: + DEVLINK_TRAP_GENERIC_ID_SCTP_PARSING = 86,
1: + DEVLINK_TRAP_GENERIC_ID_DCCP_PARSING = 87,
1: + DEVLINK_TRAP_GENERIC_ID_GTP_PARSING = 88,
1: + DEVLINK_TRAP_GENERIC_ID_ESP_PARSING = 89,
1: + __DEVLINK_TRAP_GENERIC_ID_MAX = 90,
1: + DEVLINK_TRAP_GENERIC_ID_MAX = 89,
1: };
1:
1: enum devlink_trap_group_generic_id {
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS = 0,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_L3_DROPS = 1,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_L3_EXCEPTIONS = 2,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_BUFFER_DROPS = 3,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_TUNNEL_DROPS = 4,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_DROPS = 5,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_STP = 6,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_LACP = 7,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_LLDP = 8,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_MC_SNOOPING = 9,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_DHCP = 10,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_NEIGH_DISCOVERY = 11,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_BFD = 12,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_OSPF = 13,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_BGP = 14,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_VRRP = 15,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_PIM = 16,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_UC_LB = 17,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_LOCAL_DELIVERY = 18,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_EXTERNAL_DELIVERY = 19,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_IPV6 = 20,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_EVENT = 21,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_GENERAL = 22,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_SAMPLE = 23,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_TRAP = 24,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_PARSER_ERROR_DROPS = 25,
1: - __DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 26,
1: - DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 25,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS = 0,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L3_DROPS = 1,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_L3_EXCEPTIONS = 2,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BUFFER_DROPS = 3,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_TUNNEL_DROPS = 4,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_DROPS = 5,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_STP = 6,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LACP = 7,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LLDP = 8,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_MC_SNOOPING = 9,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_DHCP = 10,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_NEIGH_DISCOVERY = 11,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BFD = 12,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_OSPF = 13,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_BGP = 14,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_VRRP = 15,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PIM = 16,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_UC_LB = 17,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_LOCAL_DELIVERY = 18,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_EXTERNAL_DELIVERY = 19,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_IPV6 = 20,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_EVENT = 21,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PTP_GENERAL = 22,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_SAMPLE = 23,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_ACL_TRAP = 24,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_PARSER_ERROR_DROPS = 25,
1: + __DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 26,
1: + DEVLINK_TRAP_GROUP_GENERIC_ID_MAX = 25,
1: };
1:
1: struct devlink_info_req {
1: - struct sk_buff *msg;
1: + struct sk_buff *msg;
1: };
1:
1: struct trace_event_raw_devlink_hwmsg {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - bool incoming;
1: - long unsigned int type;
1: - u32 __data_loc_buf;
1: - size_t len;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + bool incoming;
1: + long unsigned int type;
1: + u32 __data_loc_buf;
1: + size_t len;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_devlink_hwerr {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - int err;
1: - u32 __data_loc_msg;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + int err;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_devlink_health_report {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - u32 __data_loc_reporter_name;
1: - u32 __data_loc_msg;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_devlink_health_recover_aborted {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - u32 __data_loc_reporter_name;
1: - bool health_state;
1: - u64 time_since_last_recover;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + bool health_state;
1: + u64 time_since_last_recover;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_devlink_health_reporter_state_update {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - u32 __data_loc_reporter_name;
1: - u8 new_state;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_reporter_name;
1: + u8 new_state;
1: + char __data[0];
1: };
1:
1: struct trace_event_raw_devlink_trap_report {
1: - struct trace_entry ent;
1: - u32 __data_loc_bus_name;
1: - u32 __data_loc_dev_name;
1: - u32 __data_loc_driver_name;
1: - u32 __data_loc_trap_name;
1: - u32 __data_loc_trap_group_name;
1: - u32 __data_loc_input_dev_name;
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 __data_loc_bus_name;
1: + u32 __data_loc_dev_name;
1: + u32 __data_loc_driver_name;
1: + u32 __data_loc_trap_name;
1: + u32 __data_loc_trap_group_name;
1: + u32 __data_loc_input_dev_name;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_devlink_hwmsg {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 buf;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 buf;
1: };
1:
1: struct trace_event_data_offsets_devlink_hwerr {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 msg;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 msg;
1: };
1:
1: struct trace_event_data_offsets_devlink_health_report {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 reporter_name;
1: - u32 msg;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: + u32 msg;
1: };
1:
1: struct trace_event_data_offsets_devlink_health_recover_aborted {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 reporter_name;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: };
1:
1: struct trace_event_data_offsets_devlink_health_reporter_state_update {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 reporter_name;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 reporter_name;
1: };
1:
1: struct trace_event_data_offsets_devlink_trap_report {
1: - u32 bus_name;
1: - u32 dev_name;
1: - u32 driver_name;
1: - u32 trap_name;
1: - u32 trap_group_name;
1: - u32 input_dev_name;
1: + u32 bus_name;
1: + u32 dev_name;
1: + u32 driver_name;
1: + u32 trap_name;
1: + u32 trap_group_name;
1: + u32 input_dev_name;
1: };
1:
1: -typedef void (*btf_trace_devlink_hwmsg)(void *, const struct devlink *, bool, long unsigned int, const u8 *, size_t);
1: +typedef void (*btf_trace_devlink_hwmsg)(void *, const struct devlink *, bool,
1: + long unsigned int, const u8 *, size_t);
1:
1: -typedef void (*btf_trace_devlink_hwerr)(void *, const struct devlink *, int, const char *);
1: +typedef void (*btf_trace_devlink_hwerr)(void *, const struct devlink *, int,
1: + const char *);
1:
1: -typedef void (*btf_trace_devlink_health_report)(void *, const struct devlink *, const char *, const char *);
1: +typedef void (*btf_trace_devlink_health_report)(void *, const struct devlink *,
1: + const char *, const char *);
1:
1: -typedef void (*btf_trace_devlink_health_recover_aborted)(void *, const struct devlink *, const char *, bool, u64);
1: +typedef void (*btf_trace_devlink_health_recover_aborted)(void *,
1: + const struct devlink *,
1: + const char *, bool,
1: + u64);
1:
1: -typedef void (*btf_trace_devlink_health_reporter_state_update)(void *, const struct devlink *, const char *, bool);
1: +typedef void (*btf_trace_devlink_health_reporter_state_update)(
1: + void *, const struct devlink *, const char *, bool);
1:
1: -typedef void (*btf_trace_devlink_trap_report)(void *, const struct devlink *, struct sk_buff *, const struct devlink_trap_metadata *);
1: +typedef void (*btf_trace_devlink_trap_report)(
1: + void *, const struct devlink *, struct sk_buff *,
1: + const struct devlink_trap_metadata *);
1:
1: struct devlink_sb {
1: - struct list_head list;
1: - unsigned int index;
1: - u32 size;
1: - u16 ingress_pools_count;
1: - u16 egress_pools_count;
1: - u16 ingress_tc_count;
1: - u16 egress_tc_count;
1: + struct list_head list;
1: + unsigned int index;
1: + u32 size;
1: + u16 ingress_pools_count;
1: + u16 egress_pools_count;
1: + u16 ingress_tc_count;
1: + u16 egress_tc_count;
1: };
1:
1: struct devlink_region {
1: - struct devlink *devlink;
1: - struct devlink_port *port;
1: - struct list_head list;
1: - union {
1: - const struct devlink_region_ops *ops;
1: - const struct devlink_port_region_ops *port_ops;
1: - };
1: - struct list_head snapshot_list;
1: - u32 max_snapshots;
1: - u32 cur_snapshots;
1: - u64 size;
1: + struct devlink *devlink;
1: + struct devlink_port *port;
1: + struct list_head list;
1: + union {
1: + const struct devlink_region_ops *ops;
1: + const struct devlink_port_region_ops *port_ops;
1: + };
1: + struct list_head snapshot_list;
1: + u32 max_snapshots;
1: + u32 cur_snapshots;
1: + u64 size;
1: };
1:
1: struct devlink_snapshot {
1: - struct list_head list;
1: - struct devlink_region *region;
1: - u8 *data;
1: - u32 id;
1: + struct list_head list;
1: + struct devlink_region *region;
1: + u8 *data;
1: + u32 id;
1: };
1:
1: enum devlink_multicast_groups {
1: - DEVLINK_MCGRP_CONFIG = 0,
1: + DEVLINK_MCGRP_CONFIG = 0,
1: };
1:
1: struct devlink_reload_combination {
1: - enum devlink_reload_action action;
1: - enum devlink_reload_limit limit;
1: + enum devlink_reload_action action;
1: + enum devlink_reload_limit limit;
1: };
1:
1: struct devlink_fmsg_item {
1: - struct list_head list;
1: - int attrtype;
1: - u8 nla_type;
1: - u16 len;
1: - int value[0];
1: + struct list_head list;
1: + int attrtype;
1: + u8 nla_type;
1: + u16 len;
1: + int value[0];
1: };
1:
1: struct devlink_stats {
1: - u64 rx_bytes;
1: - u64 rx_packets;
1: - struct u64_stats_sync syncp;
1: + u64 rx_bytes;
1: + u64 rx_packets;
1: + struct u64_stats_sync syncp;
1: };
1:
1: struct devlink_trap_policer_item {
1: - const struct devlink_trap_policer *policer;
1: - u64 rate;
1: - u64 burst;
1: - struct list_head list;
1: + const struct devlink_trap_policer *policer;
1: + u64 rate;
1: + u64 burst;
1: + struct list_head list;
1: };
1:
1: struct devlink_trap_group_item {
1: - const struct devlink_trap_group *group;
1: - struct devlink_trap_policer_item *policer_item;
1: - struct list_head list;
1: - struct devlink_stats *stats;
1: + const struct devlink_trap_group *group;
1: + struct devlink_trap_policer_item *policer_item;
1: + struct list_head list;
1: + struct devlink_stats *stats;
1: };
1:
1: struct devlink_trap_item {
1: - const struct devlink_trap *trap;
1: - struct devlink_trap_group_item *group_item;
1: - struct list_head list;
1: - enum devlink_trap_action action;
1: - struct devlink_stats *stats;
1: - void *priv;
1: + const struct devlink_trap *trap;
1: + struct devlink_trap_group_item *group_item;
1: + struct list_head list;
1: + enum devlink_trap_action action;
1: + struct devlink_stats *stats;
1: + void *priv;
1: };
1:
1: struct gro_cell;
1:
1: struct gro_cells {
1: - struct gro_cell *cells;
1: + struct gro_cell *cells;
1: };
1:
1: struct gro_cell {
1: - struct sk_buff_head napi_skbs;
1: - struct napi_struct napi;
1: + struct sk_buff_head napi_skbs;
1: + struct napi_struct napi;
1: };
1:
1: enum {
1: - SK_DIAG_BPF_STORAGE_REQ_NONE = 0,
1: - SK_DIAG_BPF_STORAGE_REQ_MAP_FD = 1,
1: - __SK_DIAG_BPF_STORAGE_REQ_MAX = 2,
1: + SK_DIAG_BPF_STORAGE_REQ_NONE = 0,
1: + SK_DIAG_BPF_STORAGE_REQ_MAP_FD = 1,
1: + __SK_DIAG_BPF_STORAGE_REQ_MAX = 2,
1: };
1:
1: enum {
1: - SK_DIAG_BPF_STORAGE_REP_NONE = 0,
1: - SK_DIAG_BPF_STORAGE = 1,
1: - __SK_DIAG_BPF_STORAGE_REP_MAX = 2,
1: + SK_DIAG_BPF_STORAGE_REP_NONE = 0,
1: + SK_DIAG_BPF_STORAGE = 1,
1: + __SK_DIAG_BPF_STORAGE_REP_MAX = 2,
1: };
1:
1: enum {
1: - SK_DIAG_BPF_STORAGE_NONE = 0,
1: - SK_DIAG_BPF_STORAGE_PAD = 1,
1: - SK_DIAG_BPF_STORAGE_MAP_ID = 2,
1: - SK_DIAG_BPF_STORAGE_MAP_VALUE = 3,
1: - __SK_DIAG_BPF_STORAGE_MAX = 4,
1: + SK_DIAG_BPF_STORAGE_NONE = 0,
1: + SK_DIAG_BPF_STORAGE_PAD = 1,
1: + SK_DIAG_BPF_STORAGE_MAP_ID = 2,
1: + SK_DIAG_BPF_STORAGE_MAP_VALUE = 3,
1: + __SK_DIAG_BPF_STORAGE_MAX = 4,
1: };
1:
1: -typedef u64 (*btf_bpf_sk_storage_get)(struct bpf_map *, struct sock *, void *, u64);
1: +typedef u64 (*btf_bpf_sk_storage_get)(struct bpf_map *, struct sock *, void *,
1: + u64);
1:
1: typedef u64 (*btf_bpf_sk_storage_delete)(struct bpf_map *, struct sock *);
1:
1: struct bpf_sk_storage_diag {
1: - u32 nr_maps;
1: - struct bpf_map *maps[0];
1: + u32 nr_maps;
1: + struct bpf_map *maps[0];
1: };
1:
1: struct bpf_iter_seq_sk_storage_map_info {
1: - struct bpf_map *map;
1: - unsigned int bucket_id;
1: - unsigned int skip_elems;
1: + struct bpf_map *map;
1: + unsigned int bucket_id;
1: + unsigned int skip_elems;
1: };
1:
1: struct bpf_iter__bpf_sk_storage_map {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct bpf_map *map;
1: - };
1: - union {
1: - struct sock *sk;
1: - };
1: - union {
1: - void *value;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + struct sock *sk;
1: + };
1: + union {
1: + void *value;
1: + };
1: };
1:
1: struct compat_cmsghdr {
1: - compat_size_t cmsg_len;
1: - compat_int_t cmsg_level;
1: - compat_int_t cmsg_type;
1: + compat_size_t cmsg_len;
1: + compat_int_t cmsg_level;
1: + compat_int_t cmsg_type;
1: };
1:
1: -typedef struct sk_buff * (*gro_receive_t)(struct list_head *, struct sk_buff *);
1: +typedef struct sk_buff *(*gro_receive_t)(struct list_head *, struct sk_buff *);
1:
1: struct nvmem_cell___2;
1:
1: struct fch_hdr {
1: - __u8 daddr[6];
1: - __u8 saddr[6];
1: + __u8 daddr[6];
1: + __u8 saddr[6];
1: };
1:
1: struct fcllc {
1: - __u8 dsap;
1: - __u8 ssap;
1: - __u8 llc;
1: - __u8 protid[3];
1: - __be16 ethertype;
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 llc;
1: + __u8 protid[3];
1: + __be16 ethertype;
1: };
1:
1: struct fddi_8022_1_hdr {
1: - __u8 dsap;
1: - __u8 ssap;
1: - __u8 ctrl;
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: };
1:
1: struct fddi_8022_2_hdr {
1: - __u8 dsap;
1: - __u8 ssap;
1: - __u8 ctrl_1;
1: - __u8 ctrl_2;
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl_1;
1: + __u8 ctrl_2;
1: };
1:
1: struct fddi_snap_hdr {
1: - __u8 dsap;
1: - __u8 ssap;
1: - __u8 ctrl;
1: - __u8 oui[3];
1: - __be16 ethertype;
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: + __u8 oui[3];
1: + __be16 ethertype;
1: };
1:
1: struct fddihdr {
1: - __u8 fc;
1: - __u8 daddr[6];
1: - __u8 saddr[6];
1: - union {
1: - struct fddi_8022_1_hdr llc_8022_1;
1: - struct fddi_8022_2_hdr llc_8022_2;
1: - struct fddi_snap_hdr llc_snap;
1: - } hdr;
1: + __u8 fc;
1: + __u8 daddr[6];
1: + __u8 saddr[6];
1: + union {
1: + struct fddi_8022_1_hdr llc_8022_1;
1: + struct fddi_8022_2_hdr llc_8022_2;
1: + struct fddi_snap_hdr llc_snap;
1: + } hdr;
1: } __attribute__((packed));
1:
1: struct hippi_fp_hdr {
1: - __be32 fixed;
1: - __be32 d2_size;
1: + __be32 fixed;
1: + __be32 d2_size;
1: };
1:
1: struct hippi_le_hdr {
1: - __u8 message_type: 4;
1: - __u8 double_wide: 1;
1: - __u8 fc: 3;
1: - __u8 dest_switch_addr[3];
1: - __u8 src_addr_type: 4;
1: - __u8 dest_addr_type: 4;
1: - __u8 src_switch_addr[3];
1: - __u16 reserved;
1: - __u8 daddr[6];
1: - __u16 locally_administered;
1: - __u8 saddr[6];
1: + __u8 message_type : 4;
1: + __u8 double_wide : 1;
1: + __u8 fc : 3;
1: + __u8 dest_switch_addr[3];
1: + __u8 src_addr_type : 4;
1: + __u8 dest_addr_type : 4;
1: + __u8 src_switch_addr[3];
1: + __u16 reserved;
1: + __u8 daddr[6];
1: + __u16 locally_administered;
1: + __u8 saddr[6];
1: };
1:
1: struct hippi_snap_hdr {
1: - __u8 dsap;
1: - __u8 ssap;
1: - __u8 ctrl;
1: - __u8 oui[3];
1: - __be16 ethertype;
1: + __u8 dsap;
1: + __u8 ssap;
1: + __u8 ctrl;
1: + __u8 oui[3];
1: + __be16 ethertype;
1: };
1:
1: struct hippi_hdr {
1: - struct hippi_fp_hdr fp;
1: - struct hippi_le_hdr le;
1: - struct hippi_snap_hdr snap;
1: + struct hippi_fp_hdr fp;
1: + struct hippi_le_hdr le;
1: + struct hippi_snap_hdr snap;
1: };
1:
1: struct hippi_cb {
1: - __u32 ifield;
1: + __u32 ifield;
1: };
1:
1: enum macvlan_mode {
1: - MACVLAN_MODE_PRIVATE = 1,
1: - MACVLAN_MODE_VEPA = 2,
1: - MACVLAN_MODE_BRIDGE = 4,
1: - MACVLAN_MODE_PASSTHRU = 8,
1: - MACVLAN_MODE_SOURCE = 16,
1: + MACVLAN_MODE_PRIVATE = 1,
1: + MACVLAN_MODE_VEPA = 2,
1: + MACVLAN_MODE_BRIDGE = 4,
1: + MACVLAN_MODE_PASSTHRU = 8,
1: + MACVLAN_MODE_SOURCE = 16,
1: };
1:
1: struct tc_ratespec {
1: - unsigned char cell_log;
1: - __u8 linklayer;
1: - short unsigned int overhead;
1: - short int cell_align;
1: - short unsigned int mpu;
1: - __u32 rate;
1: + unsigned char cell_log;
1: + __u8 linklayer;
1: + short unsigned int overhead;
1: + short int cell_align;
1: + short unsigned int mpu;
1: + __u32 rate;
1: };
1:
1: struct tc_prio_qopt {
1: - int bands;
1: - __u8 priomap[16];
1: -};
1: -
1: -enum {
1: - TCA_UNSPEC = 0,
1: - TCA_KIND = 1,
1: - TCA_OPTIONS = 2,
1: - TCA_STATS = 3,
1: - TCA_XSTATS = 4,
1: - TCA_RATE = 5,
1: - TCA_FCNT = 6,
1: - TCA_STATS2 = 7,
1: - TCA_STAB = 8,
1: - TCA_PAD = 9,
1: - TCA_DUMP_INVISIBLE = 10,
1: - TCA_CHAIN = 11,
1: - TCA_HW_OFFLOAD = 12,
1: - TCA_INGRESS_BLOCK = 13,
1: - TCA_EGRESS_BLOCK = 14,
1: - TCA_DUMP_FLAGS = 15,
1: - __TCA_MAX = 16,
1: + int bands;
1: + __u8 priomap[16];
1: +};
1: +
1: +enum {
1: + TCA_UNSPEC = 0,
1: + TCA_KIND = 1,
1: + TCA_OPTIONS = 2,
1: + TCA_STATS = 3,
1: + TCA_XSTATS = 4,
1: + TCA_RATE = 5,
1: + TCA_FCNT = 6,
1: + TCA_STATS2 = 7,
1: + TCA_STAB = 8,
1: + TCA_PAD = 9,
1: + TCA_DUMP_INVISIBLE = 10,
1: + TCA_CHAIN = 11,
1: + TCA_HW_OFFLOAD = 12,
1: + TCA_INGRESS_BLOCK = 13,
1: + TCA_EGRESS_BLOCK = 14,
1: + TCA_DUMP_FLAGS = 15,
1: + __TCA_MAX = 16,
1: };
1:
1: struct vlan_pcpu_stats {
1: - u64 rx_packets;
1: - u64 rx_bytes;
1: - u64 rx_multicast;
1: - u64 tx_packets;
1: - u64 tx_bytes;
1: - struct u64_stats_sync syncp;
1: - u32 rx_errors;
1: - u32 tx_dropped;
1: + u64 rx_packets;
1: + u64 rx_bytes;
1: + u64 rx_multicast;
1: + u64 tx_packets;
1: + u64 tx_bytes;
1: + struct u64_stats_sync syncp;
1: + u32 rx_errors;
1: + u32 tx_dropped;
1: };
1:
1: struct netpoll___2;
1:
1: struct skb_array {
1: - struct ptr_ring ring;
1: + struct ptr_ring ring;
1: };
1:
1: struct macvlan_port;
1:
1: struct macvlan_dev {
1: - struct net_device *dev;
1: - struct list_head list;
1: - struct hlist_node hlist;
1: - struct macvlan_port *port;
1: - struct net_device *lowerdev;
1: - void *accel_priv;
1: - struct vlan_pcpu_stats *pcpu_stats;
1: - long unsigned int mc_filter[4];
1: - netdev_features_t set_features;
1: - enum macvlan_mode mode;
1: - u16 flags;
1: - unsigned int macaddr_count;
1: - struct netpoll___2 *netpoll;
1: + struct net_device *dev;
1: + struct list_head list;
1: + struct hlist_node hlist;
1: + struct macvlan_port *port;
1: + struct net_device *lowerdev;
1: + void *accel_priv;
1: + struct vlan_pcpu_stats *pcpu_stats;
1: + long unsigned int mc_filter[4];
1: + netdev_features_t set_features;
1: + enum macvlan_mode mode;
1: + u16 flags;
1: + unsigned int macaddr_count;
1: + struct netpoll___2 *netpoll;
1: };
1:
1: struct psched_ratecfg {
1: - u64 rate_bytes_ps;
1: - u32 mult;
1: - u16 overhead;
1: - u8 linklayer;
1: - u8 shift;
1: + u64 rate_bytes_ps;
1: + u32 mult;
1: + u16 overhead;
1: + u8 linklayer;
1: + u8 shift;
1: };
1:
1: struct mini_Qdisc_pair {
1: - struct mini_Qdisc miniq1;
1: - struct mini_Qdisc miniq2;
1: - struct mini_Qdisc **p_miniq;
1: + struct mini_Qdisc miniq1;
1: + struct mini_Qdisc miniq2;
1: + struct mini_Qdisc **p_miniq;
1: };
1:
1: struct pfifo_fast_priv {
1: - struct skb_array q[3];
1: + struct skb_array q[3];
1: };
1:
1: struct tc_qopt_offload_stats {
1: - struct gnet_stats_basic_packed *bstats;
1: - struct gnet_stats_queue *qstats;
1: + struct gnet_stats_basic_packed *bstats;
1: + struct gnet_stats_queue *qstats;
1: };
1:
1: enum tc_mq_command {
1: - TC_MQ_CREATE = 0,
1: - TC_MQ_DESTROY = 1,
1: - TC_MQ_STATS = 2,
1: - TC_MQ_GRAFT = 3,
1: + TC_MQ_CREATE = 0,
1: + TC_MQ_DESTROY = 1,
1: + TC_MQ_STATS = 2,
1: + TC_MQ_GRAFT = 3,
1: };
1:
1: struct tc_mq_opt_offload_graft_params {
1: - long unsigned int queue;
1: - u32 child_handle;
1: + long unsigned int queue;
1: + u32 child_handle;
1: };
1:
1: struct tc_mq_qopt_offload {
1: - enum tc_mq_command command;
1: - u32 handle;
1: - union {
1: - struct tc_qopt_offload_stats stats;
1: - struct tc_mq_opt_offload_graft_params graft_params;
1: - };
1: + enum tc_mq_command command;
1: + u32 handle;
1: + union {
1: + struct tc_qopt_offload_stats stats;
1: + struct tc_mq_opt_offload_graft_params graft_params;
1: + };
1: };
1:
1: struct mq_sched {
1: - struct Qdisc **qdiscs;
1: + struct Qdisc **qdiscs;
1: };
1:
1: enum tc_link_layer {
1: - TC_LINKLAYER_UNAWARE = 0,
1: - TC_LINKLAYER_ETHERNET = 1,
1: - TC_LINKLAYER_ATM = 2,
1: + TC_LINKLAYER_UNAWARE = 0,
1: + TC_LINKLAYER_ETHERNET = 1,
1: + TC_LINKLAYER_ATM = 2,
1: };
1:
1: enum {
1: - TCA_STAB_UNSPEC = 0,
1: - TCA_STAB_BASE = 1,
1: - TCA_STAB_DATA = 2,
1: - __TCA_STAB_MAX = 3,
1: + TCA_STAB_UNSPEC = 0,
1: + TCA_STAB_BASE = 1,
1: + TCA_STAB_DATA = 2,
1: + __TCA_STAB_MAX = 3,
1: };
1:
1: struct qdisc_rate_table {
1: - struct tc_ratespec rate;
1: - u32 data[256];
1: - struct qdisc_rate_table *next;
1: - int refcnt;
1: + struct tc_ratespec rate;
1: + u32 data[256];
1: + struct qdisc_rate_table *next;
1: + int refcnt;
1: };
1:
1: struct Qdisc_class_common {
1: - u32 classid;
1: - struct hlist_node hnode;
1: + u32 classid;
1: + struct hlist_node hnode;
1: };
1:
1: struct Qdisc_class_hash {
1: - struct hlist_head *hash;
1: - unsigned int hashsize;
1: - unsigned int hashmask;
1: - unsigned int hashelems;
1: + struct hlist_head *hash;
1: + unsigned int hashsize;
1: + unsigned int hashmask;
1: + unsigned int hashelems;
1: };
1:
1: struct qdisc_watchdog {
1: - u64 last_expires;
1: - struct hrtimer timer;
1: - struct Qdisc *qdisc;
1: + u64 last_expires;
1: + struct hrtimer timer;
1: + struct Qdisc *qdisc;
1: };
1:
1: enum tc_root_command {
1: - TC_ROOT_GRAFT = 0,
1: + TC_ROOT_GRAFT = 0,
1: };
1:
1: struct tc_root_qopt_offload {
1: - enum tc_root_command command;
1: - u32 handle;
1: - bool ingress;
1: + enum tc_root_command command;
1: + u32 handle;
1: + bool ingress;
1: };
1:
1: struct check_loop_arg {
1: - struct qdisc_walker w;
1: - struct Qdisc *p;
1: - int depth;
1: + struct qdisc_walker w;
1: + struct Qdisc *p;
1: + int depth;
1: };
1:
1: struct tcf_bind_args {
1: - struct tcf_walker w;
1: - long unsigned int base;
1: - long unsigned int cl;
1: - u32 classid;
1: + struct tcf_walker w;
1: + long unsigned int base;
1: + long unsigned int cl;
1: + u32 classid;
1: };
1:
1: struct tc_bind_class_args {
1: - struct qdisc_walker w;
1: - long unsigned int new_cl;
1: - u32 portid;
1: - u32 clid;
1: + struct qdisc_walker w;
1: + long unsigned int new_cl;
1: + u32 portid;
1: + u32 clid;
1: };
1:
1: struct qdisc_dump_args {
1: - struct qdisc_walker w;
1: - struct sk_buff *skb;
1: - struct netlink_callback *cb;
1: + struct qdisc_walker w;
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: };
1:
1: enum net_xmit_qdisc_t {
1: - __NET_XMIT_STOLEN = 65536,
1: - __NET_XMIT_BYPASS = 131072,
1: + __NET_XMIT_STOLEN = 65536,
1: + __NET_XMIT_BYPASS = 131072,
1: };
1:
1: struct tc_skb_ext {
1: - __u32 chain;
1: - __u16 mru;
1: + __u32 chain;
1: + __u16 mru;
1: };
1:
1: enum {
1: - TCA_ACT_UNSPEC = 0,
1: - TCA_ACT_KIND = 1,
1: - TCA_ACT_OPTIONS = 2,
1: - TCA_ACT_INDEX = 3,
1: - TCA_ACT_STATS = 4,
1: - TCA_ACT_PAD = 5,
1: - TCA_ACT_COOKIE = 6,
1: - TCA_ACT_FLAGS = 7,
1: - TCA_ACT_HW_STATS = 8,
1: - TCA_ACT_USED_HW_STATS = 9,
1: - __TCA_ACT_MAX = 10,
1: + TCA_ACT_UNSPEC = 0,
1: + TCA_ACT_KIND = 1,
1: + TCA_ACT_OPTIONS = 2,
1: + TCA_ACT_INDEX = 3,
1: + TCA_ACT_STATS = 4,
1: + TCA_ACT_PAD = 5,
1: + TCA_ACT_COOKIE = 6,
1: + TCA_ACT_FLAGS = 7,
1: + TCA_ACT_HW_STATS = 8,
1: + TCA_ACT_USED_HW_STATS = 9,
1: + __TCA_ACT_MAX = 10,
1: };
1:
1: enum tca_id {
1: - TCA_ID_UNSPEC = 0,
1: - TCA_ID_POLICE = 1,
1: - TCA_ID_GACT = 5,
1: - TCA_ID_IPT = 6,
1: - TCA_ID_PEDIT = 7,
1: - TCA_ID_MIRRED = 8,
1: - TCA_ID_NAT = 9,
1: - TCA_ID_XT = 10,
1: - TCA_ID_SKBEDIT = 11,
1: - TCA_ID_VLAN = 12,
1: - TCA_ID_BPF = 13,
1: - TCA_ID_CONNMARK = 14,
1: - TCA_ID_SKBMOD = 15,
1: - TCA_ID_CSUM = 16,
1: - TCA_ID_TUNNEL_KEY = 17,
1: - TCA_ID_SIMP = 22,
1: - TCA_ID_IFE = 25,
1: - TCA_ID_SAMPLE = 26,
1: - TCA_ID_CTINFO = 27,
1: - TCA_ID_MPLS = 28,
1: - TCA_ID_CT = 29,
1: - TCA_ID_GATE = 30,
1: - __TCA_ID_MAX = 255,
1: + TCA_ID_UNSPEC = 0,
1: + TCA_ID_POLICE = 1,
1: + TCA_ID_GACT = 5,
1: + TCA_ID_IPT = 6,
1: + TCA_ID_PEDIT = 7,
1: + TCA_ID_MIRRED = 8,
1: + TCA_ID_NAT = 9,
1: + TCA_ID_XT = 10,
1: + TCA_ID_SKBEDIT = 11,
1: + TCA_ID_VLAN = 12,
1: + TCA_ID_BPF = 13,
1: + TCA_ID_CONNMARK = 14,
1: + TCA_ID_SKBMOD = 15,
1: + TCA_ID_CSUM = 16,
1: + TCA_ID_TUNNEL_KEY = 17,
1: + TCA_ID_SIMP = 22,
1: + TCA_ID_IFE = 25,
1: + TCA_ID_SAMPLE = 26,
1: + TCA_ID_CTINFO = 27,
1: + TCA_ID_MPLS = 28,
1: + TCA_ID_CT = 29,
1: + TCA_ID_GATE = 30,
1: + __TCA_ID_MAX = 255,
1: };
1:
1: struct tcf_t {
1: - __u64 install;
1: - __u64 lastuse;
1: - __u64 expires;
1: - __u64 firstuse;
1: + __u64 install;
1: + __u64 lastuse;
1: + __u64 expires;
1: + __u64 firstuse;
1: };
1:
1: struct psample_group {
1: - struct list_head list;
1: - struct net *net;
1: - u32 group_num;
1: - u32 refcount;
1: - u32 seq;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + struct net *net;
1: + u32 group_num;
1: + u32 refcount;
1: + u32 seq;
1: + struct callback_head rcu;
1: };
1:
1: struct action_gate_entry {
1: - u8 gate_state;
1: - u32 interval;
1: - s32 ipv;
1: - s32 maxoctets;
1: + u8 gate_state;
1: + u32 interval;
1: + s32 ipv;
1: + s32 maxoctets;
1: };
1:
1: enum qdisc_class_ops_flags {
1: - QDISC_CLASS_OPS_DOIT_UNLOCKED = 1,
1: + QDISC_CLASS_OPS_DOIT_UNLOCKED = 1,
1: };
1:
1: enum tcf_proto_ops_flags {
1: - TCF_PROTO_OPS_DOIT_UNLOCKED = 1,
1: + TCF_PROTO_OPS_DOIT_UNLOCKED = 1,
1: };
1:
1: typedef void tcf_chain_head_change_t(struct tcf_proto *, void *);
1:
1: struct tcf_idrinfo {
1: - struct mutex lock;
1: - struct idr action_idr;
1: - struct net *net;
1: + struct mutex lock;
1: + struct idr action_idr;
1: + struct net *net;
1: };
1:
1: struct tc_action_ops;
1: @@ -102240,802 +103591,807 @@ struct tc_action_ops;
1: struct tc_cookie;
1:
1: struct tc_action {
1: - const struct tc_action_ops *ops;
1: - __u32 type;
1: - struct tcf_idrinfo *idrinfo;
1: - u32 tcfa_index;
1: - refcount_t tcfa_refcnt;
1: - atomic_t tcfa_bindcnt;
1: - int tcfa_action;
1: - struct tcf_t tcfa_tm;
1: - struct gnet_stats_basic_packed tcfa_bstats;
1: - struct gnet_stats_basic_packed tcfa_bstats_hw;
1: - struct gnet_stats_queue tcfa_qstats;
1: - struct net_rate_estimator *tcfa_rate_est;
1: - spinlock_t tcfa_lock;
1: - struct gnet_stats_basic_cpu *cpu_bstats;
1: - struct gnet_stats_basic_cpu *cpu_bstats_hw;
1: - struct gnet_stats_queue *cpu_qstats;
1: - struct tc_cookie *act_cookie;
1: - struct tcf_chain *goto_chain;
1: - u32 tcfa_flags;
1: - u8 hw_stats;
1: - u8 used_hw_stats;
1: - bool used_hw_stats_valid;
1: + const struct tc_action_ops *ops;
1: + __u32 type;
1: + struct tcf_idrinfo *idrinfo;
1: + u32 tcfa_index;
1: + refcount_t tcfa_refcnt;
1: + atomic_t tcfa_bindcnt;
1: + int tcfa_action;
1: + struct tcf_t tcfa_tm;
1: + struct gnet_stats_basic_packed tcfa_bstats;
1: + struct gnet_stats_basic_packed tcfa_bstats_hw;
1: + struct gnet_stats_queue tcfa_qstats;
1: + struct net_rate_estimator *tcfa_rate_est;
1: + spinlock_t tcfa_lock;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_basic_cpu *cpu_bstats_hw;
1: + struct gnet_stats_queue *cpu_qstats;
1: + struct tc_cookie *act_cookie;
1: + struct tcf_chain *goto_chain;
1: + u32 tcfa_flags;
1: + u8 hw_stats;
1: + u8 used_hw_stats;
1: + bool used_hw_stats_valid;
1: };
1:
1: typedef void (*tc_action_priv_destructor)(void *);
1:
1: struct tc_action_ops {
1: - struct list_head head;
1: - char kind[16];
1: - enum tca_id id;
1: - size_t size;
1: - struct module *owner;
1: - int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
1: - int (*dump)(struct sk_buff *, struct tc_action *, int, int);
1: - void (*cleanup)(struct tc_action *);
1: - int (*lookup)(struct net *, struct tc_action **, u32);
1: - int (*init)(struct net *, struct nlattr *, struct nlattr *, struct tc_action **, int, int, bool, struct tcf_proto *, u32, struct netlink_ext_ack *);
1: - int (*walk)(struct net *, struct sk_buff *, struct netlink_callback *, int, const struct tc_action_ops *, struct netlink_ext_ack *);
1: - void (*stats_update)(struct tc_action *, u64, u64, u64, u64, bool);
1: - size_t (*get_fill_size)(const struct tc_action *);
1: - struct net_device * (*get_dev)(const struct tc_action *, tc_action_priv_destructor *);
1: - struct psample_group * (*get_psample_group)(const struct tc_action *, tc_action_priv_destructor *);
1: + struct list_head head;
1: + char kind[16];
1: + enum tca_id id;
1: + size_t size;
1: + struct module *owner;
1: + int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
1: + int (*dump)(struct sk_buff *, struct tc_action *, int, int);
1: + void (*cleanup)(struct tc_action *);
1: + int (*lookup)(struct net *, struct tc_action **, u32);
1: + int (*init)(struct net *, struct nlattr *, struct nlattr *,
1: + struct tc_action **, int, int, bool, struct tcf_proto *, u32,
1: + struct netlink_ext_ack *);
1: + int (*walk)(struct net *, struct sk_buff *, struct netlink_callback *, int,
1: + const struct tc_action_ops *, struct netlink_ext_ack *);
1: + void (*stats_update)(struct tc_action *, u64, u64, u64, u64, bool);
1: + size_t (*get_fill_size)(const struct tc_action *);
1: + struct net_device *(*get_dev)(const struct tc_action *,
1: + tc_action_priv_destructor *);
1: + struct psample_group *(*get_psample_group)(const struct tc_action *,
1: + tc_action_priv_destructor *);
1: };
1:
1: struct tc_cookie {
1: - u8 *data;
1: - u32 len;
1: - struct callback_head rcu;
1: + u8 *data;
1: + u32 len;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_block_ext_info {
1: - enum flow_block_binder_type binder_type;
1: - tcf_chain_head_change_t *chain_head_change;
1: - void *chain_head_change_priv;
1: - u32 block_index;
1: + enum flow_block_binder_type binder_type;
1: + tcf_chain_head_change_t *chain_head_change;
1: + void *chain_head_change_priv;
1: + u32 block_index;
1: };
1:
1: struct tcf_qevent {
1: - struct tcf_block *block;
1: - struct tcf_block_ext_info info;
1: - struct tcf_proto *filter_chain;
1: + struct tcf_block *block;
1: + struct tcf_block_ext_info info;
1: + struct tcf_proto *filter_chain;
1: };
1:
1: struct tcf_exts {
1: - __u32 type;
1: - int nr_actions;
1: - struct tc_action **actions;
1: - struct net *net;
1: - int action;
1: - int police;
1: + __u32 type;
1: + int nr_actions;
1: + struct tc_action **actions;
1: + struct net *net;
1: + int action;
1: + int police;
1: };
1:
1: enum pedit_header_type {
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK = 0,
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_ETH = 1,
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_IP4 = 2,
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_IP6 = 3,
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_TCP = 4,
1: - TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
1: - __PEDIT_HDR_TYPE_MAX = 6,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK = 0,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_ETH = 1,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_IP4 = 2,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_IP6 = 3,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_TCP = 4,
1: + TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
1: + __PEDIT_HDR_TYPE_MAX = 6,
1: };
1:
1: enum pedit_cmd {
1: - TCA_PEDIT_KEY_EX_CMD_SET = 0,
1: - TCA_PEDIT_KEY_EX_CMD_ADD = 1,
1: - __PEDIT_CMD_MAX = 2,
1: + TCA_PEDIT_KEY_EX_CMD_SET = 0,
1: + TCA_PEDIT_KEY_EX_CMD_ADD = 1,
1: + __PEDIT_CMD_MAX = 2,
1: };
1:
1: struct tc_pedit_key {
1: - __u32 mask;
1: - __u32 val;
1: - __u32 off;
1: - __u32 at;
1: - __u32 offmask;
1: - __u32 shift;
1: + __u32 mask;
1: + __u32 val;
1: + __u32 off;
1: + __u32 at;
1: + __u32 offmask;
1: + __u32 shift;
1: };
1:
1: struct tcf_pedit_key_ex {
1: - enum pedit_header_type htype;
1: - enum pedit_cmd cmd;
1: + enum pedit_header_type htype;
1: + enum pedit_cmd cmd;
1: };
1:
1: struct tcf_pedit {
1: - struct tc_action common;
1: - unsigned char tcfp_nkeys;
1: - unsigned char tcfp_flags;
1: - struct tc_pedit_key *tcfp_keys;
1: - struct tcf_pedit_key_ex *tcfp_keys_ex;
1: + struct tc_action common;
1: + unsigned char tcfp_nkeys;
1: + unsigned char tcfp_flags;
1: + struct tc_pedit_key *tcfp_keys;
1: + struct tcf_pedit_key_ex *tcfp_keys_ex;
1: };
1:
1: struct tcf_mirred {
1: - struct tc_action common;
1: - int tcfm_eaction;
1: - bool tcfm_mac_header_xmit;
1: - struct net_device *tcfm_dev;
1: - struct list_head tcfm_list;
1: + struct tc_action common;
1: + int tcfm_eaction;
1: + bool tcfm_mac_header_xmit;
1: + struct net_device *tcfm_dev;
1: + struct list_head tcfm_list;
1: };
1:
1: struct tcf_vlan_params {
1: - int tcfv_action;
1: - unsigned char tcfv_push_dst[6];
1: - unsigned char tcfv_push_src[6];
1: - u16 tcfv_push_vid;
1: - __be16 tcfv_push_proto;
1: - u8 tcfv_push_prio;
1: - struct callback_head rcu;
1: + int tcfv_action;
1: + unsigned char tcfv_push_dst[6];
1: + unsigned char tcfv_push_src[6];
1: + u16 tcfv_push_vid;
1: + __be16 tcfv_push_proto;
1: + u8 tcfv_push_prio;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_vlan {
1: - struct tc_action common;
1: - struct tcf_vlan_params *vlan_p;
1: + struct tc_action common;
1: + struct tcf_vlan_params *vlan_p;
1: };
1:
1: struct tcf_tunnel_key_params {
1: - struct callback_head rcu;
1: - int tcft_action;
1: - struct metadata_dst *tcft_enc_metadata;
1: + struct callback_head rcu;
1: + int tcft_action;
1: + struct metadata_dst *tcft_enc_metadata;
1: };
1:
1: struct tcf_tunnel_key {
1: - struct tc_action common;
1: - struct tcf_tunnel_key_params *params;
1: + struct tc_action common;
1: + struct tcf_tunnel_key_params *params;
1: };
1:
1: struct tcf_csum_params {
1: - u32 update_flags;
1: - struct callback_head rcu;
1: + u32 update_flags;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_csum {
1: - struct tc_action common;
1: - struct tcf_csum_params *params;
1: + struct tc_action common;
1: + struct tcf_csum_params *params;
1: };
1:
1: struct tcf_gact {
1: - struct tc_action common;
1: - u16 tcfg_ptype;
1: - u16 tcfg_pval;
1: - int tcfg_paction;
1: - atomic_t packets;
1: + struct tc_action common;
1: + u16 tcfg_ptype;
1: + u16 tcfg_pval;
1: + int tcfg_paction;
1: + atomic_t packets;
1: };
1:
1: struct tcf_police_params {
1: - int tcfp_result;
1: - u32 tcfp_ewma_rate;
1: - s64 tcfp_burst;
1: - u32 tcfp_mtu;
1: - s64 tcfp_mtu_ptoks;
1: - struct psched_ratecfg rate;
1: - bool rate_present;
1: - struct psched_ratecfg peak;
1: - bool peak_present;
1: - struct callback_head rcu;
1: + int tcfp_result;
1: + u32 tcfp_ewma_rate;
1: + s64 tcfp_burst;
1: + u32 tcfp_mtu;
1: + s64 tcfp_mtu_ptoks;
1: + struct psched_ratecfg rate;
1: + bool rate_present;
1: + struct psched_ratecfg peak;
1: + bool peak_present;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_police {
1: - struct tc_action common;
1: - struct tcf_police_params *params;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - spinlock_t tcfp_lock;
1: - s64 tcfp_toks;
1: - s64 tcfp_ptoks;
1: - s64 tcfp_t_c;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + struct tc_action common;
1: + struct tcf_police_params *params;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + spinlock_t tcfp_lock;
1: + s64 tcfp_toks;
1: + s64 tcfp_ptoks;
1: + s64 tcfp_t_c;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct tcf_sample {
1: - struct tc_action common;
1: - u32 rate;
1: - bool truncate;
1: - u32 trunc_size;
1: - struct psample_group *psample_group;
1: - u32 psample_group_num;
1: - struct list_head tcfm_list;
1: + struct tc_action common;
1: + u32 rate;
1: + bool truncate;
1: + u32 trunc_size;
1: + struct psample_group *psample_group;
1: + u32 psample_group_num;
1: + struct list_head tcfm_list;
1: };
1:
1: struct tcf_skbedit_params {
1: - u32 flags;
1: - u32 priority;
1: - u32 mark;
1: - u32 mask;
1: - u16 queue_mapping;
1: - u16 ptype;
1: - struct callback_head rcu;
1: + u32 flags;
1: + u32 priority;
1: + u32 mark;
1: + u32 mask;
1: + u16 queue_mapping;
1: + u16 ptype;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_skbedit {
1: - struct tc_action common;
1: - struct tcf_skbedit_params *params;
1: + struct tc_action common;
1: + struct tcf_skbedit_params *params;
1: };
1:
1: struct nf_nat_range2 {
1: - unsigned int flags;
1: - union nf_inet_addr min_addr;
1: - union nf_inet_addr max_addr;
1: - union nf_conntrack_man_proto min_proto;
1: - union nf_conntrack_man_proto max_proto;
1: - union nf_conntrack_man_proto base_proto;
1: + unsigned int flags;
1: + union nf_inet_addr min_addr;
1: + union nf_inet_addr max_addr;
1: + union nf_conntrack_man_proto min_proto;
1: + union nf_conntrack_man_proto max_proto;
1: + union nf_conntrack_man_proto base_proto;
1: };
1:
1: struct tcf_ct_flow_table;
1:
1: struct tcf_ct_params {
1: - struct nf_conn *tmpl;
1: - u16 zone;
1: - u32 mark;
1: - u32 mark_mask;
1: - u32 labels[4];
1: - u32 labels_mask[4];
1: - struct nf_nat_range2 range;
1: - bool ipv4_range;
1: - u16 ct_action;
1: - struct callback_head rcu;
1: - struct tcf_ct_flow_table *ct_ft;
1: - struct nf_flowtable *nf_ft;
1: + struct nf_conn *tmpl;
1: + u16 zone;
1: + u32 mark;
1: + u32 mark_mask;
1: + u32 labels[4];
1: + u32 labels_mask[4];
1: + struct nf_nat_range2 range;
1: + bool ipv4_range;
1: + u16 ct_action;
1: + struct callback_head rcu;
1: + struct tcf_ct_flow_table *ct_ft;
1: + struct nf_flowtable *nf_ft;
1: };
1:
1: struct tcf_ct {
1: - struct tc_action common;
1: - struct tcf_ct_params *params;
1: + struct tc_action common;
1: + struct tcf_ct_params *params;
1: };
1:
1: struct tcf_mpls_params {
1: - int tcfm_action;
1: - u32 tcfm_label;
1: - u8 tcfm_tc;
1: - u8 tcfm_ttl;
1: - u8 tcfm_bos;
1: - __be16 tcfm_proto;
1: - struct callback_head rcu;
1: + int tcfm_action;
1: + u32 tcfm_label;
1: + u8 tcfm_tc;
1: + u8 tcfm_ttl;
1: + u8 tcfm_bos;
1: + __be16 tcfm_proto;
1: + struct callback_head rcu;
1: };
1:
1: struct tcf_mpls {
1: - struct tc_action common;
1: - struct tcf_mpls_params *mpls_p;
1: + struct tc_action common;
1: + struct tcf_mpls_params *mpls_p;
1: };
1:
1: struct tcfg_gate_entry {
1: - int index;
1: - u8 gate_state;
1: - u32 interval;
1: - s32 ipv;
1: - s32 maxoctets;
1: - struct list_head list;
1: + int index;
1: + u8 gate_state;
1: + u32 interval;
1: + s32 ipv;
1: + s32 maxoctets;
1: + struct list_head list;
1: };
1:
1: struct tcf_gate_params {
1: - s32 tcfg_priority;
1: - u64 tcfg_basetime;
1: - u64 tcfg_cycletime;
1: - u64 tcfg_cycletime_ext;
1: - u32 tcfg_flags;
1: - s32 tcfg_clockid;
1: - size_t num_entries;
1: - struct list_head entries;
1: + s32 tcfg_priority;
1: + u64 tcfg_basetime;
1: + u64 tcfg_cycletime;
1: + u64 tcfg_cycletime_ext;
1: + u32 tcfg_flags;
1: + s32 tcfg_clockid;
1: + size_t num_entries;
1: + struct list_head entries;
1: };
1:
1: struct tcf_gate {
1: - struct tc_action common;
1: - struct tcf_gate_params param;
1: - u8 current_gate_status;
1: - ktime_t current_close_time;
1: - u32 current_entry_octets;
1: - s32 current_max_octets;
1: - struct tcfg_gate_entry *next_entry;
1: - struct hrtimer hitimer;
1: - enum tk_offsets tk_offset;
1: + struct tc_action common;
1: + struct tcf_gate_params param;
1: + u8 current_gate_status;
1: + ktime_t current_close_time;
1: + u32 current_entry_octets;
1: + s32 current_max_octets;
1: + struct tcfg_gate_entry *next_entry;
1: + struct hrtimer hitimer;
1: + enum tk_offsets tk_offset;
1: };
1:
1: struct tcf_filter_chain_list_item {
1: - struct list_head list;
1: - tcf_chain_head_change_t *chain_head_change;
1: - void *chain_head_change_priv;
1: + struct list_head list;
1: + tcf_chain_head_change_t *chain_head_change;
1: + void *chain_head_change_priv;
1: };
1:
1: struct tcf_net {
1: - spinlock_t idr_lock;
1: - struct idr idr;
1: + spinlock_t idr_lock;
1: + struct idr idr;
1: };
1:
1: struct tcf_block_owner_item {
1: - struct list_head list;
1: - struct Qdisc *q;
1: - enum flow_block_binder_type binder_type;
1: + struct list_head list;
1: + struct Qdisc *q;
1: + enum flow_block_binder_type binder_type;
1: };
1:
1: struct tcf_chain_info {
1: - struct tcf_proto **pprev;
1: - struct tcf_proto *next;
1: + struct tcf_proto **pprev;
1: + struct tcf_proto *next;
1: };
1:
1: struct tcf_dump_args {
1: - struct tcf_walker w;
1: - struct sk_buff *skb;
1: - struct netlink_callback *cb;
1: - struct tcf_block *block;
1: - struct Qdisc *q;
1: - u32 parent;
1: - bool terse_dump;
1: + struct tcf_walker w;
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: + struct tcf_block *block;
1: + struct Qdisc *q;
1: + u32 parent;
1: + bool terse_dump;
1: };
1:
1: struct tcamsg {
1: - unsigned char tca_family;
1: - unsigned char tca__pad1;
1: - short unsigned int tca__pad2;
1: + unsigned char tca_family;
1: + unsigned char tca__pad1;
1: + short unsigned int tca__pad2;
1: };
1:
1: enum {
1: - TCA_ROOT_UNSPEC = 0,
1: - TCA_ROOT_TAB = 1,
1: - TCA_ROOT_FLAGS = 2,
1: - TCA_ROOT_COUNT = 3,
1: - TCA_ROOT_TIME_DELTA = 4,
1: - __TCA_ROOT_MAX = 5,
1: + TCA_ROOT_UNSPEC = 0,
1: + TCA_ROOT_TAB = 1,
1: + TCA_ROOT_FLAGS = 2,
1: + TCA_ROOT_COUNT = 3,
1: + TCA_ROOT_TIME_DELTA = 4,
1: + __TCA_ROOT_MAX = 5,
1: };
1:
1: struct tc_action_net {
1: - struct tcf_idrinfo *idrinfo;
1: - const struct tc_action_ops *ops;
1: + struct tcf_idrinfo *idrinfo;
1: + const struct tc_action_ops *ops;
1: };
1:
1: struct tc_act_bpf {
1: - __u32 index;
1: - __u32 capab;
1: - int action;
1: - int refcnt;
1: - int bindcnt;
1: + __u32 index;
1: + __u32 capab;
1: + int action;
1: + int refcnt;
1: + int bindcnt;
1: };
1:
1: enum {
1: - TCA_ACT_BPF_UNSPEC = 0,
1: - TCA_ACT_BPF_TM = 1,
1: - TCA_ACT_BPF_PARMS = 2,
1: - TCA_ACT_BPF_OPS_LEN = 3,
1: - TCA_ACT_BPF_OPS = 4,
1: - TCA_ACT_BPF_FD = 5,
1: - TCA_ACT_BPF_NAME = 6,
1: - TCA_ACT_BPF_PAD = 7,
1: - TCA_ACT_BPF_TAG = 8,
1: - TCA_ACT_BPF_ID = 9,
1: - __TCA_ACT_BPF_MAX = 10,
1: + TCA_ACT_BPF_UNSPEC = 0,
1: + TCA_ACT_BPF_TM = 1,
1: + TCA_ACT_BPF_PARMS = 2,
1: + TCA_ACT_BPF_OPS_LEN = 3,
1: + TCA_ACT_BPF_OPS = 4,
1: + TCA_ACT_BPF_FD = 5,
1: + TCA_ACT_BPF_NAME = 6,
1: + TCA_ACT_BPF_PAD = 7,
1: + TCA_ACT_BPF_TAG = 8,
1: + TCA_ACT_BPF_ID = 9,
1: + __TCA_ACT_BPF_MAX = 10,
1: };
1:
1: struct tcf_bpf {
1: - struct tc_action common;
1: - struct bpf_prog *filter;
1: - union {
1: - u32 bpf_fd;
1: - u16 bpf_num_ops;
1: - };
1: - struct sock_filter *bpf_ops;
1: - const char *bpf_name;
1: + struct tc_action common;
1: + struct bpf_prog *filter;
1: + union {
1: + u32 bpf_fd;
1: + u16 bpf_num_ops;
1: + };
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: };
1:
1: struct tcf_bpf_cfg {
1: - struct bpf_prog *filter;
1: - struct sock_filter *bpf_ops;
1: - const char *bpf_name;
1: - u16 bpf_num_ops;
1: - bool is_ebpf;
1: + struct bpf_prog *filter;
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: + u16 bpf_num_ops;
1: + bool is_ebpf;
1: };
1:
1: struct tc_fifo_qopt {
1: - __u32 limit;
1: + __u32 limit;
1: };
1:
1: enum tc_fifo_command {
1: - TC_FIFO_REPLACE = 0,
1: - TC_FIFO_DESTROY = 1,
1: - TC_FIFO_STATS = 2,
1: + TC_FIFO_REPLACE = 0,
1: + TC_FIFO_DESTROY = 1,
1: + TC_FIFO_STATS = 2,
1: };
1:
1: struct tc_fifo_qopt_offload {
1: - enum tc_fifo_command command;
1: - u32 handle;
1: - u32 parent;
1: - union {
1: - struct tc_qopt_offload_stats stats;
1: - };
1: + enum tc_fifo_command command;
1: + u32 handle;
1: + u32 parent;
1: + union {
1: + struct tc_qopt_offload_stats stats;
1: + };
1: };
1:
1: enum {
1: - TCA_CGROUP_UNSPEC = 0,
1: - TCA_CGROUP_ACT = 1,
1: - TCA_CGROUP_POLICE = 2,
1: - TCA_CGROUP_EMATCHES = 3,
1: - __TCA_CGROUP_MAX = 4,
1: + TCA_CGROUP_UNSPEC = 0,
1: + TCA_CGROUP_ACT = 1,
1: + TCA_CGROUP_POLICE = 2,
1: + TCA_CGROUP_EMATCHES = 3,
1: + __TCA_CGROUP_MAX = 4,
1: };
1:
1: struct tcf_ematch_tree_hdr {
1: - __u16 nmatches;
1: - __u16 progid;
1: + __u16 nmatches;
1: + __u16 progid;
1: };
1:
1: struct tcf_pkt_info {
1: - unsigned char *ptr;
1: - int nexthdr;
1: + unsigned char *ptr;
1: + int nexthdr;
1: };
1:
1: struct tcf_ematch_ops;
1:
1: struct tcf_ematch {
1: - struct tcf_ematch_ops *ops;
1: - long unsigned int data;
1: - unsigned int datalen;
1: - u16 matchid;
1: - u16 flags;
1: - struct net *net;
1: + struct tcf_ematch_ops *ops;
1: + long unsigned int data;
1: + unsigned int datalen;
1: + u16 matchid;
1: + u16 flags;
1: + struct net *net;
1: };
1:
1: struct tcf_ematch_ops {
1: - int kind;
1: - int datalen;
1: - int (*change)(struct net *, void *, int, struct tcf_ematch *);
1: - int (*match)(struct sk_buff *, struct tcf_ematch *, struct tcf_pkt_info *);
1: - void (*destroy)(struct tcf_ematch *);
1: - int (*dump)(struct sk_buff *, struct tcf_ematch *);
1: - struct module *owner;
1: - struct list_head link;
1: + int kind;
1: + int datalen;
1: + int (*change)(struct net *, void *, int, struct tcf_ematch *);
1: + int (*match)(struct sk_buff *, struct tcf_ematch *, struct tcf_pkt_info *);
1: + void (*destroy)(struct tcf_ematch *);
1: + int (*dump)(struct sk_buff *, struct tcf_ematch *);
1: + struct module *owner;
1: + struct list_head link;
1: };
1:
1: struct tcf_ematch_tree {
1: - struct tcf_ematch_tree_hdr hdr;
1: - struct tcf_ematch *matches;
1: + struct tcf_ematch_tree_hdr hdr;
1: + struct tcf_ematch *matches;
1: };
1:
1: struct cls_cgroup_head {
1: - u32 handle;
1: - struct tcf_exts exts;
1: - struct tcf_ematch_tree ematches;
1: - struct tcf_proto *tp;
1: - struct rcu_work rwork;
1: + u32 handle;
1: + struct tcf_exts exts;
1: + struct tcf_ematch_tree ematches;
1: + struct tcf_proto *tp;
1: + struct rcu_work rwork;
1: };
1:
1: enum {
1: - TCA_BPF_UNSPEC = 0,
1: - TCA_BPF_ACT = 1,
1: - TCA_BPF_POLICE = 2,
1: - TCA_BPF_CLASSID = 3,
1: - TCA_BPF_OPS_LEN = 4,
1: - TCA_BPF_OPS = 5,
1: - TCA_BPF_FD = 6,
1: - TCA_BPF_NAME = 7,
1: - TCA_BPF_FLAGS = 8,
1: - TCA_BPF_FLAGS_GEN = 9,
1: - TCA_BPF_TAG = 10,
1: - TCA_BPF_ID = 11,
1: - __TCA_BPF_MAX = 12,
1: + TCA_BPF_UNSPEC = 0,
1: + TCA_BPF_ACT = 1,
1: + TCA_BPF_POLICE = 2,
1: + TCA_BPF_CLASSID = 3,
1: + TCA_BPF_OPS_LEN = 4,
1: + TCA_BPF_OPS = 5,
1: + TCA_BPF_FD = 6,
1: + TCA_BPF_NAME = 7,
1: + TCA_BPF_FLAGS = 8,
1: + TCA_BPF_FLAGS_GEN = 9,
1: + TCA_BPF_TAG = 10,
1: + TCA_BPF_ID = 11,
1: + __TCA_BPF_MAX = 12,
1: };
1:
1: enum tc_clsbpf_command {
1: - TC_CLSBPF_OFFLOAD = 0,
1: - TC_CLSBPF_STATS = 1,
1: + TC_CLSBPF_OFFLOAD = 0,
1: + TC_CLSBPF_STATS = 1,
1: };
1:
1: struct tc_cls_bpf_offload {
1: - struct flow_cls_common_offload common;
1: - enum tc_clsbpf_command command;
1: - struct tcf_exts *exts;
1: - struct bpf_prog *prog;
1: - struct bpf_prog *oldprog;
1: - const char *name;
1: - bool exts_integrated;
1: + struct flow_cls_common_offload common;
1: + enum tc_clsbpf_command command;
1: + struct tcf_exts *exts;
1: + struct bpf_prog *prog;
1: + struct bpf_prog *oldprog;
1: + const char *name;
1: + bool exts_integrated;
1: };
1:
1: struct cls_bpf_head {
1: - struct list_head plist;
1: - struct idr handle_idr;
1: - struct callback_head rcu;
1: + struct list_head plist;
1: + struct idr handle_idr;
1: + struct callback_head rcu;
1: };
1:
1: struct cls_bpf_prog {
1: - struct bpf_prog *filter;
1: - struct list_head link;
1: - struct tcf_result res;
1: - bool exts_integrated;
1: - u32 gen_flags;
1: - unsigned int in_hw_count;
1: - struct tcf_exts exts;
1: - u32 handle;
1: - u16 bpf_num_ops;
1: - struct sock_filter *bpf_ops;
1: - const char *bpf_name;
1: - struct tcf_proto *tp;
1: - struct rcu_work rwork;
1: + struct bpf_prog *filter;
1: + struct list_head link;
1: + struct tcf_result res;
1: + bool exts_integrated;
1: + u32 gen_flags;
1: + unsigned int in_hw_count;
1: + struct tcf_exts exts;
1: + u32 handle;
1: + u16 bpf_num_ops;
1: + struct sock_filter *bpf_ops;
1: + const char *bpf_name;
1: + struct tcf_proto *tp;
1: + struct rcu_work rwork;
1: };
1:
1: enum {
1: - TCA_EMATCH_TREE_UNSPEC = 0,
1: - TCA_EMATCH_TREE_HDR = 1,
1: - TCA_EMATCH_TREE_LIST = 2,
1: - __TCA_EMATCH_TREE_MAX = 3,
1: + TCA_EMATCH_TREE_UNSPEC = 0,
1: + TCA_EMATCH_TREE_HDR = 1,
1: + TCA_EMATCH_TREE_LIST = 2,
1: + __TCA_EMATCH_TREE_MAX = 3,
1: };
1:
1: struct tcf_ematch_hdr {
1: - __u16 matchid;
1: - __u16 kind;
1: - __u16 flags;
1: - __u16 pad;
1: + __u16 matchid;
1: + __u16 kind;
1: + __u16 flags;
1: + __u16 pad;
1: };
1:
1: struct sockaddr_nl {
1: - __kernel_sa_family_t nl_family;
1: - short unsigned int nl_pad;
1: - __u32 nl_pid;
1: - __u32 nl_groups;
1: + __kernel_sa_family_t nl_family;
1: + short unsigned int nl_pad;
1: + __u32 nl_pid;
1: + __u32 nl_groups;
1: };
1:
1: struct nlmsgerr {
1: - int error;
1: - struct nlmsghdr msg;
1: + int error;
1: + struct nlmsghdr msg;
1: };
1:
1: enum nlmsgerr_attrs {
1: - NLMSGERR_ATTR_UNUSED = 0,
1: - NLMSGERR_ATTR_MSG = 1,
1: - NLMSGERR_ATTR_OFFS = 2,
1: - NLMSGERR_ATTR_COOKIE = 3,
1: - NLMSGERR_ATTR_POLICY = 4,
1: - __NLMSGERR_ATTR_MAX = 5,
1: - NLMSGERR_ATTR_MAX = 4,
1: + NLMSGERR_ATTR_UNUSED = 0,
1: + NLMSGERR_ATTR_MSG = 1,
1: + NLMSGERR_ATTR_OFFS = 2,
1: + NLMSGERR_ATTR_COOKIE = 3,
1: + NLMSGERR_ATTR_POLICY = 4,
1: + __NLMSGERR_ATTR_MAX = 5,
1: + NLMSGERR_ATTR_MAX = 4,
1: };
1:
1: struct nl_pktinfo {
1: - __u32 group;
1: + __u32 group;
1: };
1:
1: enum {
1: - NETLINK_UNCONNECTED = 0,
1: - NETLINK_CONNECTED = 1,
1: + NETLINK_UNCONNECTED = 0,
1: + NETLINK_CONNECTED = 1,
1: };
1:
1: enum netlink_skb_flags {
1: - NETLINK_SKB_DST = 8,
1: + NETLINK_SKB_DST = 8,
1: };
1:
1: struct netlink_notify {
1: - struct net *net;
1: - u32 portid;
1: - int protocol;
1: + struct net *net;
1: + u32 portid;
1: + int protocol;
1: };
1:
1: struct netlink_tap {
1: - struct net_device *dev;
1: - struct module *module;
1: - struct list_head list;
1: + struct net_device *dev;
1: + struct module *module;
1: + struct list_head list;
1: };
1:
1: struct netlink_sock {
1: - struct sock sk;
1: - u32 portid;
1: - u32 dst_portid;
1: - u32 dst_group;
1: - u32 flags;
1: - u32 subscriptions;
1: - u32 ngroups;
1: - long unsigned int *groups;
1: - long unsigned int state;
1: - size_t max_recvmsg_len;
1: - wait_queue_head_t wait;
1: - bool bound;
1: - bool cb_running;
1: - int dump_done_errno;
1: - struct netlink_callback cb;
1: - struct mutex *cb_mutex;
1: - struct mutex cb_def_mutex;
1: - void (*netlink_rcv)(struct sk_buff *);
1: - int (*netlink_bind)(struct net *, int);
1: - void (*netlink_unbind)(struct net *, int);
1: - struct module *module;
1: - struct rhash_head node;
1: - struct callback_head rcu;
1: - struct work_struct work;
1: + struct sock sk;
1: + u32 portid;
1: + u32 dst_portid;
1: + u32 dst_group;
1: + u32 flags;
1: + u32 subscriptions;
1: + u32 ngroups;
1: + long unsigned int *groups;
1: + long unsigned int state;
1: + size_t max_recvmsg_len;
1: + wait_queue_head_t wait;
1: + bool bound;
1: + bool cb_running;
1: + int dump_done_errno;
1: + struct netlink_callback cb;
1: + struct mutex *cb_mutex;
1: + struct mutex cb_def_mutex;
1: + void (*netlink_rcv)(struct sk_buff *);
1: + int (*netlink_bind)(struct net *, int);
1: + void (*netlink_unbind)(struct net *, int);
1: + struct module *module;
1: + struct rhash_head node;
1: + struct callback_head rcu;
1: + struct work_struct work;
1: };
1:
1: struct listeners;
1:
1: struct netlink_table {
1: - struct rhashtable hash;
1: - struct hlist_head mc_list;
1: - struct listeners *listeners;
1: - unsigned int flags;
1: - unsigned int groups;
1: - struct mutex *cb_mutex;
1: - struct module *module;
1: - int (*bind)(struct net *, int);
1: - void (*unbind)(struct net *, int);
1: - bool (*compare)(struct net *, struct sock *);
1: - int registered;
1: + struct rhashtable hash;
1: + struct hlist_head mc_list;
1: + struct listeners *listeners;
1: + unsigned int flags;
1: + unsigned int groups;
1: + struct mutex *cb_mutex;
1: + struct module *module;
1: + int (*bind)(struct net *, int);
1: + void (*unbind)(struct net *, int);
1: + bool (*compare)(struct net *, struct sock *);
1: + int registered;
1: };
1:
1: struct listeners {
1: - struct callback_head rcu;
1: - long unsigned int masks[0];
1: + struct callback_head rcu;
1: + long unsigned int masks[0];
1: };
1:
1: struct netlink_tap_net {
1: - struct list_head netlink_tap_all;
1: - struct mutex netlink_tap_lock;
1: + struct list_head netlink_tap_all;
1: + struct mutex netlink_tap_lock;
1: };
1:
1: struct netlink_compare_arg {
1: - possible_net_t pnet;
1: - u32 portid;
1: + possible_net_t pnet;
1: + u32 portid;
1: };
1:
1: struct netlink_broadcast_data {
1: - struct sock *exclude_sk;
1: - struct net *net;
1: - u32 portid;
1: - u32 group;
1: - int failure;
1: - int delivery_failure;
1: - int congested;
1: - int delivered;
1: - gfp_t allocation;
1: - struct sk_buff *skb;
1: - struct sk_buff *skb2;
1: - int (*tx_filter)(struct sock *, struct sk_buff *, void *);
1: - void *tx_data;
1: + struct sock *exclude_sk;
1: + struct net *net;
1: + u32 portid;
1: + u32 group;
1: + int failure;
1: + int delivery_failure;
1: + int congested;
1: + int delivered;
1: + gfp_t allocation;
1: + struct sk_buff *skb;
1: + struct sk_buff *skb2;
1: + int (*tx_filter)(struct sock *, struct sk_buff *, void *);
1: + void *tx_data;
1: };
1:
1: struct netlink_set_err_data {
1: - struct sock *exclude_sk;
1: - u32 portid;
1: - u32 group;
1: - int code;
1: + struct sock *exclude_sk;
1: + u32 portid;
1: + u32 group;
1: + int code;
1: };
1:
1: struct nl_seq_iter {
1: - struct seq_net_private p;
1: - struct rhashtable_iter hti;
1: - int link;
1: + struct seq_net_private p;
1: + struct rhashtable_iter hti;
1: + int link;
1: };
1:
1: struct bpf_iter__netlink {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct netlink_sock *sk;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct netlink_sock *sk;
1: + };
1: };
1:
1: enum {
1: - CTRL_CMD_UNSPEC = 0,
1: - CTRL_CMD_NEWFAMILY = 1,
1: - CTRL_CMD_DELFAMILY = 2,
1: - CTRL_CMD_GETFAMILY = 3,
1: - CTRL_CMD_NEWOPS = 4,
1: - CTRL_CMD_DELOPS = 5,
1: - CTRL_CMD_GETOPS = 6,
1: - CTRL_CMD_NEWMCAST_GRP = 7,
1: - CTRL_CMD_DELMCAST_GRP = 8,
1: - CTRL_CMD_GETMCAST_GRP = 9,
1: - CTRL_CMD_GETPOLICY = 10,
1: - __CTRL_CMD_MAX = 11,
1: + CTRL_CMD_UNSPEC = 0,
1: + CTRL_CMD_NEWFAMILY = 1,
1: + CTRL_CMD_DELFAMILY = 2,
1: + CTRL_CMD_GETFAMILY = 3,
1: + CTRL_CMD_NEWOPS = 4,
1: + CTRL_CMD_DELOPS = 5,
1: + CTRL_CMD_GETOPS = 6,
1: + CTRL_CMD_NEWMCAST_GRP = 7,
1: + CTRL_CMD_DELMCAST_GRP = 8,
1: + CTRL_CMD_GETMCAST_GRP = 9,
1: + CTRL_CMD_GETPOLICY = 10,
1: + __CTRL_CMD_MAX = 11,
1: };
1:
1: enum {
1: - CTRL_ATTR_UNSPEC = 0,
1: - CTRL_ATTR_FAMILY_ID = 1,
1: - CTRL_ATTR_FAMILY_NAME = 2,
1: - CTRL_ATTR_VERSION = 3,
1: - CTRL_ATTR_HDRSIZE = 4,
1: - CTRL_ATTR_MAXATTR = 5,
1: - CTRL_ATTR_OPS = 6,
1: - CTRL_ATTR_MCAST_GROUPS = 7,
1: - CTRL_ATTR_POLICY = 8,
1: - CTRL_ATTR_OP_POLICY = 9,
1: - CTRL_ATTR_OP = 10,
1: - __CTRL_ATTR_MAX = 11,
1: + CTRL_ATTR_UNSPEC = 0,
1: + CTRL_ATTR_FAMILY_ID = 1,
1: + CTRL_ATTR_FAMILY_NAME = 2,
1: + CTRL_ATTR_VERSION = 3,
1: + CTRL_ATTR_HDRSIZE = 4,
1: + CTRL_ATTR_MAXATTR = 5,
1: + CTRL_ATTR_OPS = 6,
1: + CTRL_ATTR_MCAST_GROUPS = 7,
1: + CTRL_ATTR_POLICY = 8,
1: + CTRL_ATTR_OP_POLICY = 9,
1: + CTRL_ATTR_OP = 10,
1: + __CTRL_ATTR_MAX = 11,
1: };
1:
1: enum {
1: - CTRL_ATTR_OP_UNSPEC = 0,
1: - CTRL_ATTR_OP_ID = 1,
1: - CTRL_ATTR_OP_FLAGS = 2,
1: - __CTRL_ATTR_OP_MAX = 3,
1: + CTRL_ATTR_OP_UNSPEC = 0,
1: + CTRL_ATTR_OP_ID = 1,
1: + CTRL_ATTR_OP_FLAGS = 2,
1: + __CTRL_ATTR_OP_MAX = 3,
1: };
1:
1: enum {
1: - CTRL_ATTR_MCAST_GRP_UNSPEC = 0,
1: - CTRL_ATTR_MCAST_GRP_NAME = 1,
1: - CTRL_ATTR_MCAST_GRP_ID = 2,
1: - __CTRL_ATTR_MCAST_GRP_MAX = 3,
1: + CTRL_ATTR_MCAST_GRP_UNSPEC = 0,
1: + CTRL_ATTR_MCAST_GRP_NAME = 1,
1: + CTRL_ATTR_MCAST_GRP_ID = 2,
1: + __CTRL_ATTR_MCAST_GRP_MAX = 3,
1: };
1:
1: enum {
1: - CTRL_ATTR_POLICY_UNSPEC = 0,
1: - CTRL_ATTR_POLICY_DO = 1,
1: - CTRL_ATTR_POLICY_DUMP = 2,
1: - __CTRL_ATTR_POLICY_DUMP_MAX = 3,
1: - CTRL_ATTR_POLICY_DUMP_MAX = 2,
1: + CTRL_ATTR_POLICY_UNSPEC = 0,
1: + CTRL_ATTR_POLICY_DO = 1,
1: + CTRL_ATTR_POLICY_DUMP = 2,
1: + __CTRL_ATTR_POLICY_DUMP_MAX = 3,
1: + CTRL_ATTR_POLICY_DUMP_MAX = 2,
1: };
1:
1: struct genl_start_context {
1: - const struct genl_family *family;
1: - struct nlmsghdr *nlh;
1: - struct netlink_ext_ack *extack;
1: - const struct genl_ops *ops;
1: - int hdrlen;
1: + const struct genl_family *family;
1: + struct nlmsghdr *nlh;
1: + struct netlink_ext_ack *extack;
1: + const struct genl_ops *ops;
1: + int hdrlen;
1: };
1:
1: struct netlink_policy_dump_state;
1:
1: struct ctrl_dump_policy_ctx {
1: - struct netlink_policy_dump_state *state;
1: - const struct genl_family *rt;
1: - unsigned int opidx;
1: - u32 op;
1: - u16 fam_id;
1: - u8 policies: 1;
1: - u8 single_op: 1;
1: + struct netlink_policy_dump_state *state;
1: + const struct genl_family *rt;
1: + unsigned int opidx;
1: + u32 op;
1: + u16 fam_id;
1: + u8 policies : 1;
1: + u8 single_op : 1;
1: };
1:
1: enum netlink_attribute_type {
1: - NL_ATTR_TYPE_INVALID = 0,
1: - NL_ATTR_TYPE_FLAG = 1,
1: - NL_ATTR_TYPE_U8 = 2,
1: - NL_ATTR_TYPE_U16 = 3,
1: - NL_ATTR_TYPE_U32 = 4,
1: - NL_ATTR_TYPE_U64 = 5,
1: - NL_ATTR_TYPE_S8 = 6,
1: - NL_ATTR_TYPE_S16 = 7,
1: - NL_ATTR_TYPE_S32 = 8,
1: - NL_ATTR_TYPE_S64 = 9,
1: - NL_ATTR_TYPE_BINARY = 10,
1: - NL_ATTR_TYPE_STRING = 11,
1: - NL_ATTR_TYPE_NUL_STRING = 12,
1: - NL_ATTR_TYPE_NESTED = 13,
1: - NL_ATTR_TYPE_NESTED_ARRAY = 14,
1: - NL_ATTR_TYPE_BITFIELD32 = 15,
1: + NL_ATTR_TYPE_INVALID = 0,
1: + NL_ATTR_TYPE_FLAG = 1,
1: + NL_ATTR_TYPE_U8 = 2,
1: + NL_ATTR_TYPE_U16 = 3,
1: + NL_ATTR_TYPE_U32 = 4,
1: + NL_ATTR_TYPE_U64 = 5,
1: + NL_ATTR_TYPE_S8 = 6,
1: + NL_ATTR_TYPE_S16 = 7,
1: + NL_ATTR_TYPE_S32 = 8,
1: + NL_ATTR_TYPE_S64 = 9,
1: + NL_ATTR_TYPE_BINARY = 10,
1: + NL_ATTR_TYPE_STRING = 11,
1: + NL_ATTR_TYPE_NUL_STRING = 12,
1: + NL_ATTR_TYPE_NESTED = 13,
1: + NL_ATTR_TYPE_NESTED_ARRAY = 14,
1: + NL_ATTR_TYPE_BITFIELD32 = 15,
1: };
1:
1: enum netlink_policy_type_attr {
1: - NL_POLICY_TYPE_ATTR_UNSPEC = 0,
1: - NL_POLICY_TYPE_ATTR_TYPE = 1,
1: - NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2,
1: - NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3,
1: - NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4,
1: - NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5,
1: - NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6,
1: - NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7,
1: - NL_POLICY_TYPE_ATTR_POLICY_IDX = 8,
1: - NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9,
1: - NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10,
1: - NL_POLICY_TYPE_ATTR_PAD = 11,
1: - NL_POLICY_TYPE_ATTR_MASK = 12,
1: - __NL_POLICY_TYPE_ATTR_MAX = 13,
1: - NL_POLICY_TYPE_ATTR_MAX = 12,
1: + NL_POLICY_TYPE_ATTR_UNSPEC = 0,
1: + NL_POLICY_TYPE_ATTR_TYPE = 1,
1: + NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2,
1: + NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3,
1: + NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4,
1: + NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5,
1: + NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6,
1: + NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7,
1: + NL_POLICY_TYPE_ATTR_POLICY_IDX = 8,
1: + NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9,
1: + NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10,
1: + NL_POLICY_TYPE_ATTR_PAD = 11,
1: + NL_POLICY_TYPE_ATTR_MASK = 12,
1: + __NL_POLICY_TYPE_ATTR_MAX = 13,
1: + NL_POLICY_TYPE_ATTR_MAX = 12,
1: };
1:
1: struct netlink_policy_dump_state___2 {
1: - unsigned int policy_idx;
1: - unsigned int attr_idx;
1: - unsigned int n_alloc;
1: - struct {
1: - const struct nla_policy *policy;
1: - unsigned int maxtype;
1: - } policies[0];
1: + unsigned int policy_idx;
1: + unsigned int attr_idx;
1: + unsigned int n_alloc;
1: + struct {
1: + const struct nla_policy *policy;
1: + unsigned int maxtype;
1: + } policies[0];
1: };
1:
1: struct trace_event_raw_bpf_test_finish {
1: - struct trace_entry ent;
1: - int err;
1: - char __data[0];
1: + struct trace_entry ent;
1: + int err;
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_bpf_test_finish {};
1: @@ -103043,796 +104399,802 @@ struct trace_event_data_offsets_bpf_test_finish {};
1: typedef void (*btf_trace_bpf_test_finish)(void *, int *);
1:
1: struct bpf_fentry_test_t {
1: - struct bpf_fentry_test_t *a;
1: + struct bpf_fentry_test_t *a;
1: };
1:
1: struct bpf_raw_tp_test_run_info {
1: - struct bpf_prog *prog;
1: - void *ctx;
1: - u32 retval;
1: + struct bpf_prog *prog;
1: + void *ctx;
1: + u32 retval;
1: };
1:
1: struct ethtool_cmd {
1: - __u32 cmd;
1: - __u32 supported;
1: - __u32 advertising;
1: - __u16 speed;
1: - __u8 duplex;
1: - __u8 port;
1: - __u8 phy_address;
1: - __u8 transceiver;
1: - __u8 autoneg;
1: - __u8 mdio_support;
1: - __u32 maxtxpkt;
1: - __u32 maxrxpkt;
1: - __u16 speed_hi;
1: - __u8 eth_tp_mdix;
1: - __u8 eth_tp_mdix_ctrl;
1: - __u32 lp_advertising;
1: - __u32 reserved[2];
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 advertising;
1: + __u16 speed;
1: + __u8 duplex;
1: + __u8 port;
1: + __u8 phy_address;
1: + __u8 transceiver;
1: + __u8 autoneg;
1: + __u8 mdio_support;
1: + __u32 maxtxpkt;
1: + __u32 maxrxpkt;
1: + __u16 speed_hi;
1: + __u8 eth_tp_mdix;
1: + __u8 eth_tp_mdix_ctrl;
1: + __u32 lp_advertising;
1: + __u32 reserved[2];
1: };
1:
1: struct ethtool_value {
1: - __u32 cmd;
1: - __u32 data;
1: + __u32 cmd;
1: + __u32 data;
1: };
1:
1: enum tunable_id {
1: - ETHTOOL_ID_UNSPEC = 0,
1: - ETHTOOL_RX_COPYBREAK = 1,
1: - ETHTOOL_TX_COPYBREAK = 2,
1: - ETHTOOL_PFC_PREVENTION_TOUT = 3,
1: - __ETHTOOL_TUNABLE_COUNT = 4,
1: + ETHTOOL_ID_UNSPEC = 0,
1: + ETHTOOL_RX_COPYBREAK = 1,
1: + ETHTOOL_TX_COPYBREAK = 2,
1: + ETHTOOL_PFC_PREVENTION_TOUT = 3,
1: + __ETHTOOL_TUNABLE_COUNT = 4,
1: };
1:
1: enum tunable_type_id {
1: - ETHTOOL_TUNABLE_UNSPEC = 0,
1: - ETHTOOL_TUNABLE_U8 = 1,
1: - ETHTOOL_TUNABLE_U16 = 2,
1: - ETHTOOL_TUNABLE_U32 = 3,
1: - ETHTOOL_TUNABLE_U64 = 4,
1: - ETHTOOL_TUNABLE_STRING = 5,
1: - ETHTOOL_TUNABLE_S8 = 6,
1: - ETHTOOL_TUNABLE_S16 = 7,
1: - ETHTOOL_TUNABLE_S32 = 8,
1: - ETHTOOL_TUNABLE_S64 = 9,
1: + ETHTOOL_TUNABLE_UNSPEC = 0,
1: + ETHTOOL_TUNABLE_U8 = 1,
1: + ETHTOOL_TUNABLE_U16 = 2,
1: + ETHTOOL_TUNABLE_U32 = 3,
1: + ETHTOOL_TUNABLE_U64 = 4,
1: + ETHTOOL_TUNABLE_STRING = 5,
1: + ETHTOOL_TUNABLE_S8 = 6,
1: + ETHTOOL_TUNABLE_S16 = 7,
1: + ETHTOOL_TUNABLE_S32 = 8,
1: + ETHTOOL_TUNABLE_S64 = 9,
1: };
1:
1: enum phy_tunable_id {
1: - ETHTOOL_PHY_ID_UNSPEC = 0,
1: - ETHTOOL_PHY_DOWNSHIFT = 1,
1: - ETHTOOL_PHY_FAST_LINK_DOWN = 2,
1: - ETHTOOL_PHY_EDPD = 3,
1: - __ETHTOOL_PHY_TUNABLE_COUNT = 4,
1: + ETHTOOL_PHY_ID_UNSPEC = 0,
1: + ETHTOOL_PHY_DOWNSHIFT = 1,
1: + ETHTOOL_PHY_FAST_LINK_DOWN = 2,
1: + ETHTOOL_PHY_EDPD = 3,
1: + __ETHTOOL_PHY_TUNABLE_COUNT = 4,
1: };
1:
1: struct ethtool_gstrings {
1: - __u32 cmd;
1: - __u32 string_set;
1: - __u32 len;
1: - __u8 data[0];
1: + __u32 cmd;
1: + __u32 string_set;
1: + __u32 len;
1: + __u8 data[0];
1: };
1:
1: struct ethtool_sset_info {
1: - __u32 cmd;
1: - __u32 reserved;
1: - __u64 sset_mask;
1: - __u32 data[0];
1: + __u32 cmd;
1: + __u32 reserved;
1: + __u64 sset_mask;
1: + __u32 data[0];
1: };
1:
1: struct ethtool_perm_addr {
1: - __u32 cmd;
1: - __u32 size;
1: - __u8 data[0];
1: + __u32 cmd;
1: + __u32 size;
1: + __u8 data[0];
1: };
1:
1: enum ethtool_flags {
1: - ETH_FLAG_TXVLAN = 128,
1: - ETH_FLAG_RXVLAN = 256,
1: - ETH_FLAG_LRO = 32768,
1: - ETH_FLAG_NTUPLE = 134217728,
1: - ETH_FLAG_RXHASH = 268435456,
1: + ETH_FLAG_TXVLAN = 128,
1: + ETH_FLAG_RXVLAN = 256,
1: + ETH_FLAG_LRO = 32768,
1: + ETH_FLAG_NTUPLE = 134217728,
1: + ETH_FLAG_RXHASH = 268435456,
1: };
1:
1: struct ethtool_rxfh {
1: - __u32 cmd;
1: - __u32 rss_context;
1: - __u32 indir_size;
1: - __u32 key_size;
1: - __u8 hfunc;
1: - __u8 rsvd8[3];
1: - __u32 rsvd32;
1: - __u32 rss_config[0];
1: + __u32 cmd;
1: + __u32 rss_context;
1: + __u32 indir_size;
1: + __u32 key_size;
1: + __u8 hfunc;
1: + __u8 rsvd8[3];
1: + __u32 rsvd32;
1: + __u32 rss_config[0];
1: };
1:
1: struct ethtool_get_features_block {
1: - __u32 available;
1: - __u32 requested;
1: - __u32 active;
1: - __u32 never_changed;
1: + __u32 available;
1: + __u32 requested;
1: + __u32 active;
1: + __u32 never_changed;
1: };
1:
1: struct ethtool_gfeatures {
1: - __u32 cmd;
1: - __u32 size;
1: - struct ethtool_get_features_block features[0];
1: + __u32 cmd;
1: + __u32 size;
1: + struct ethtool_get_features_block features[0];
1: };
1:
1: struct ethtool_set_features_block {
1: - __u32 valid;
1: - __u32 requested;
1: + __u32 valid;
1: + __u32 requested;
1: };
1:
1: struct ethtool_sfeatures {
1: - __u32 cmd;
1: - __u32 size;
1: - struct ethtool_set_features_block features[0];
1: + __u32 cmd;
1: + __u32 size;
1: + struct ethtool_set_features_block features[0];
1: };
1:
1: enum ethtool_sfeatures_retval_bits {
1: - ETHTOOL_F_UNSUPPORTED__BIT = 0,
1: - ETHTOOL_F_WISH__BIT = 1,
1: - ETHTOOL_F_COMPAT__BIT = 2,
1: + ETHTOOL_F_UNSUPPORTED__BIT = 0,
1: + ETHTOOL_F_WISH__BIT = 1,
1: + ETHTOOL_F_COMPAT__BIT = 2,
1: };
1:
1: struct ethtool_per_queue_op {
1: - __u32 cmd;
1: - __u32 sub_command;
1: - __u32 queue_mask[128];
1: - char data[0];
1: + __u32 cmd;
1: + __u32 sub_command;
1: + __u32 queue_mask[128];
1: + char data[0];
1: };
1:
1: enum {
1: - ETH_RSS_HASH_TOP_BIT = 0,
1: - ETH_RSS_HASH_XOR_BIT = 1,
1: - ETH_RSS_HASH_CRC32_BIT = 2,
1: - ETH_RSS_HASH_FUNCS_COUNT = 3,
1: + ETH_RSS_HASH_TOP_BIT = 0,
1: + ETH_RSS_HASH_XOR_BIT = 1,
1: + ETH_RSS_HASH_CRC32_BIT = 2,
1: + ETH_RSS_HASH_FUNCS_COUNT = 3,
1: };
1:
1: struct ethtool_rx_flow_rule {
1: - struct flow_rule *rule;
1: - long unsigned int priv[0];
1: + struct flow_rule *rule;
1: + long unsigned int priv[0];
1: };
1:
1: struct ethtool_rx_flow_spec_input {
1: - const struct ethtool_rx_flow_spec *fs;
1: - u32 rss_ctx;
1: + const struct ethtool_rx_flow_spec *fs;
1: + u32 rss_ctx;
1: };
1:
1: struct ethtool_link_usettings {
1: - struct ethtool_link_settings base;
1: - struct {
1: - __u32 supported[3];
1: - __u32 advertising[3];
1: - __u32 lp_advertising[3];
1: - } link_modes;
1: + struct ethtool_link_settings base;
1: + struct {
1: + __u32 supported[3];
1: + __u32 advertising[3];
1: + __u32 lp_advertising[3];
1: + } link_modes;
1: };
1:
1: struct ethtool_rx_flow_key {
1: - struct flow_dissector_key_basic basic;
1: - union {
1: - struct flow_dissector_key_ipv4_addrs ipv4;
1: - struct flow_dissector_key_ipv6_addrs ipv6;
1: - };
1: - struct flow_dissector_key_ports tp;
1: - struct flow_dissector_key_ip ip;
1: - struct flow_dissector_key_vlan vlan;
1: - struct flow_dissector_key_eth_addrs eth_addrs;
1: - long: 48;
1: + struct flow_dissector_key_basic basic;
1: + union {
1: + struct flow_dissector_key_ipv4_addrs ipv4;
1: + struct flow_dissector_key_ipv6_addrs ipv6;
1: + };
1: + struct flow_dissector_key_ports tp;
1: + struct flow_dissector_key_ip ip;
1: + struct flow_dissector_key_vlan vlan;
1: + struct flow_dissector_key_eth_addrs eth_addrs;
1: + long : 48;
1: };
1:
1: struct ethtool_rx_flow_match {
1: - struct flow_dissector dissector;
1: - int: 32;
1: - struct ethtool_rx_flow_key key;
1: - struct ethtool_rx_flow_key mask;
1: -};
1: -
1: -enum {
1: - ETHTOOL_UDP_TUNNEL_TYPE_VXLAN = 0,
1: - ETHTOOL_UDP_TUNNEL_TYPE_GENEVE = 1,
1: - ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE = 2,
1: - __ETHTOOL_UDP_TUNNEL_TYPE_CNT = 3,
1: -};
1: -
1: -enum {
1: - ETHTOOL_MSG_USER_NONE = 0,
1: - ETHTOOL_MSG_STRSET_GET = 1,
1: - ETHTOOL_MSG_LINKINFO_GET = 2,
1: - ETHTOOL_MSG_LINKINFO_SET = 3,
1: - ETHTOOL_MSG_LINKMODES_GET = 4,
1: - ETHTOOL_MSG_LINKMODES_SET = 5,
1: - ETHTOOL_MSG_LINKSTATE_GET = 6,
1: - ETHTOOL_MSG_DEBUG_GET = 7,
1: - ETHTOOL_MSG_DEBUG_SET = 8,
1: - ETHTOOL_MSG_WOL_GET = 9,
1: - ETHTOOL_MSG_WOL_SET = 10,
1: - ETHTOOL_MSG_FEATURES_GET = 11,
1: - ETHTOOL_MSG_FEATURES_SET = 12,
1: - ETHTOOL_MSG_PRIVFLAGS_GET = 13,
1: - ETHTOOL_MSG_PRIVFLAGS_SET = 14,
1: - ETHTOOL_MSG_RINGS_GET = 15,
1: - ETHTOOL_MSG_RINGS_SET = 16,
1: - ETHTOOL_MSG_CHANNELS_GET = 17,
1: - ETHTOOL_MSG_CHANNELS_SET = 18,
1: - ETHTOOL_MSG_COALESCE_GET = 19,
1: - ETHTOOL_MSG_COALESCE_SET = 20,
1: - ETHTOOL_MSG_PAUSE_GET = 21,
1: - ETHTOOL_MSG_PAUSE_SET = 22,
1: - ETHTOOL_MSG_EEE_GET = 23,
1: - ETHTOOL_MSG_EEE_SET = 24,
1: - ETHTOOL_MSG_TSINFO_GET = 25,
1: - ETHTOOL_MSG_CABLE_TEST_ACT = 26,
1: - ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 27,
1: - ETHTOOL_MSG_TUNNEL_INFO_GET = 28,
1: - __ETHTOOL_MSG_USER_CNT = 29,
1: - ETHTOOL_MSG_USER_MAX = 28,
1: + struct flow_dissector dissector;
1: + int : 32;
1: + struct ethtool_rx_flow_key key;
1: + struct ethtool_rx_flow_key mask;
1: +};
1: +
1: +enum {
1: + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN = 0,
1: + ETHTOOL_UDP_TUNNEL_TYPE_GENEVE = 1,
1: + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE = 2,
1: + __ETHTOOL_UDP_TUNNEL_TYPE_CNT = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_MSG_USER_NONE = 0,
1: + ETHTOOL_MSG_STRSET_GET = 1,
1: + ETHTOOL_MSG_LINKINFO_GET = 2,
1: + ETHTOOL_MSG_LINKINFO_SET = 3,
1: + ETHTOOL_MSG_LINKMODES_GET = 4,
1: + ETHTOOL_MSG_LINKMODES_SET = 5,
1: + ETHTOOL_MSG_LINKSTATE_GET = 6,
1: + ETHTOOL_MSG_DEBUG_GET = 7,
1: + ETHTOOL_MSG_DEBUG_SET = 8,
1: + ETHTOOL_MSG_WOL_GET = 9,
1: + ETHTOOL_MSG_WOL_SET = 10,
1: + ETHTOOL_MSG_FEATURES_GET = 11,
1: + ETHTOOL_MSG_FEATURES_SET = 12,
1: + ETHTOOL_MSG_PRIVFLAGS_GET = 13,
1: + ETHTOOL_MSG_PRIVFLAGS_SET = 14,
1: + ETHTOOL_MSG_RINGS_GET = 15,
1: + ETHTOOL_MSG_RINGS_SET = 16,
1: + ETHTOOL_MSG_CHANNELS_GET = 17,
1: + ETHTOOL_MSG_CHANNELS_SET = 18,
1: + ETHTOOL_MSG_COALESCE_GET = 19,
1: + ETHTOOL_MSG_COALESCE_SET = 20,
1: + ETHTOOL_MSG_PAUSE_GET = 21,
1: + ETHTOOL_MSG_PAUSE_SET = 22,
1: + ETHTOOL_MSG_EEE_GET = 23,
1: + ETHTOOL_MSG_EEE_SET = 24,
1: + ETHTOOL_MSG_TSINFO_GET = 25,
1: + ETHTOOL_MSG_CABLE_TEST_ACT = 26,
1: + ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 27,
1: + ETHTOOL_MSG_TUNNEL_INFO_GET = 28,
1: + __ETHTOOL_MSG_USER_CNT = 29,
1: + ETHTOOL_MSG_USER_MAX = 28,
1: };
1:
1: -enum {
1: - ETHTOOL_A_HEADER_UNSPEC = 0,
1: - ETHTOOL_A_HEADER_DEV_INDEX = 1,
1: - ETHTOOL_A_HEADER_DEV_NAME = 2,
1: - ETHTOOL_A_HEADER_FLAGS = 3,
1: - __ETHTOOL_A_HEADER_CNT = 4,
1: - ETHTOOL_A_HEADER_MAX = 3,
1: +enum {
1: + ETHTOOL_A_HEADER_UNSPEC = 0,
1: + ETHTOOL_A_HEADER_DEV_INDEX = 1,
1: + ETHTOOL_A_HEADER_DEV_NAME = 2,
1: + ETHTOOL_A_HEADER_FLAGS = 3,
1: + __ETHTOOL_A_HEADER_CNT = 4,
1: + ETHTOOL_A_HEADER_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_STRSET_UNSPEC = 0,
1: - ETHTOOL_A_STRSET_HEADER = 1,
1: - ETHTOOL_A_STRSET_STRINGSETS = 2,
1: - ETHTOOL_A_STRSET_COUNTS_ONLY = 3,
1: - __ETHTOOL_A_STRSET_CNT = 4,
1: - ETHTOOL_A_STRSET_MAX = 3,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_LINKINFO_UNSPEC = 0,
1: - ETHTOOL_A_LINKINFO_HEADER = 1,
1: - ETHTOOL_A_LINKINFO_PORT = 2,
1: - ETHTOOL_A_LINKINFO_PHYADDR = 3,
1: - ETHTOOL_A_LINKINFO_TP_MDIX = 4,
1: - ETHTOOL_A_LINKINFO_TP_MDIX_CTRL = 5,
1: - ETHTOOL_A_LINKINFO_TRANSCEIVER = 6,
1: - __ETHTOOL_A_LINKINFO_CNT = 7,
1: - ETHTOOL_A_LINKINFO_MAX = 6,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_LINKMODES_UNSPEC = 0,
1: - ETHTOOL_A_LINKMODES_HEADER = 1,
1: - ETHTOOL_A_LINKMODES_AUTONEG = 2,
1: - ETHTOOL_A_LINKMODES_OURS = 3,
1: - ETHTOOL_A_LINKMODES_PEER = 4,
1: - ETHTOOL_A_LINKMODES_SPEED = 5,
1: - ETHTOOL_A_LINKMODES_DUPLEX = 6,
1: - ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG = 7,
1: - ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE = 8,
1: - __ETHTOOL_A_LINKMODES_CNT = 9,
1: - ETHTOOL_A_LINKMODES_MAX = 8,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_LINKSTATE_UNSPEC = 0,
1: - ETHTOOL_A_LINKSTATE_HEADER = 1,
1: - ETHTOOL_A_LINKSTATE_LINK = 2,
1: - ETHTOOL_A_LINKSTATE_SQI = 3,
1: - ETHTOOL_A_LINKSTATE_SQI_MAX = 4,
1: - ETHTOOL_A_LINKSTATE_EXT_STATE = 5,
1: - ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 6,
1: - __ETHTOOL_A_LINKSTATE_CNT = 7,
1: - ETHTOOL_A_LINKSTATE_MAX = 6,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_DEBUG_UNSPEC = 0,
1: - ETHTOOL_A_DEBUG_HEADER = 1,
1: - ETHTOOL_A_DEBUG_MSGMASK = 2,
1: - __ETHTOOL_A_DEBUG_CNT = 3,
1: - ETHTOOL_A_DEBUG_MAX = 2,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_WOL_UNSPEC = 0,
1: - ETHTOOL_A_WOL_HEADER = 1,
1: - ETHTOOL_A_WOL_MODES = 2,
1: - ETHTOOL_A_WOL_SOPASS = 3,
1: - __ETHTOOL_A_WOL_CNT = 4,
1: - ETHTOOL_A_WOL_MAX = 3,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_FEATURES_UNSPEC = 0,
1: - ETHTOOL_A_FEATURES_HEADER = 1,
1: - ETHTOOL_A_FEATURES_HW = 2,
1: - ETHTOOL_A_FEATURES_WANTED = 3,
1: - ETHTOOL_A_FEATURES_ACTIVE = 4,
1: - ETHTOOL_A_FEATURES_NOCHANGE = 5,
1: - __ETHTOOL_A_FEATURES_CNT = 6,
1: - ETHTOOL_A_FEATURES_MAX = 5,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_PRIVFLAGS_UNSPEC = 0,
1: - ETHTOOL_A_PRIVFLAGS_HEADER = 1,
1: - ETHTOOL_A_PRIVFLAGS_FLAGS = 2,
1: - __ETHTOOL_A_PRIVFLAGS_CNT = 3,
1: - ETHTOOL_A_PRIVFLAGS_MAX = 2,
1: -};
1: -
1: + ETHTOOL_A_STRSET_UNSPEC = 0,
1: + ETHTOOL_A_STRSET_HEADER = 1,
1: + ETHTOOL_A_STRSET_STRINGSETS = 2,
1: + ETHTOOL_A_STRSET_COUNTS_ONLY = 3,
1: + __ETHTOOL_A_STRSET_CNT = 4,
1: + ETHTOOL_A_STRSET_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKINFO_UNSPEC = 0,
1: + ETHTOOL_A_LINKINFO_HEADER = 1,
1: + ETHTOOL_A_LINKINFO_PORT = 2,
1: + ETHTOOL_A_LINKINFO_PHYADDR = 3,
1: + ETHTOOL_A_LINKINFO_TP_MDIX = 4,
1: + ETHTOOL_A_LINKINFO_TP_MDIX_CTRL = 5,
1: + ETHTOOL_A_LINKINFO_TRANSCEIVER = 6,
1: + __ETHTOOL_A_LINKINFO_CNT = 7,
1: + ETHTOOL_A_LINKINFO_MAX = 6,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKMODES_UNSPEC = 0,
1: + ETHTOOL_A_LINKMODES_HEADER = 1,
1: + ETHTOOL_A_LINKMODES_AUTONEG = 2,
1: + ETHTOOL_A_LINKMODES_OURS = 3,
1: + ETHTOOL_A_LINKMODES_PEER = 4,
1: + ETHTOOL_A_LINKMODES_SPEED = 5,
1: + ETHTOOL_A_LINKMODES_DUPLEX = 6,
1: + ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG = 7,
1: + ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE = 8,
1: + __ETHTOOL_A_LINKMODES_CNT = 9,
1: + ETHTOOL_A_LINKMODES_MAX = 8,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_LINKSTATE_UNSPEC = 0,
1: + ETHTOOL_A_LINKSTATE_HEADER = 1,
1: + ETHTOOL_A_LINKSTATE_LINK = 2,
1: + ETHTOOL_A_LINKSTATE_SQI = 3,
1: + ETHTOOL_A_LINKSTATE_SQI_MAX = 4,
1: + ETHTOOL_A_LINKSTATE_EXT_STATE = 5,
1: + ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 6,
1: + __ETHTOOL_A_LINKSTATE_CNT = 7,
1: + ETHTOOL_A_LINKSTATE_MAX = 6,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_DEBUG_UNSPEC = 0,
1: + ETHTOOL_A_DEBUG_HEADER = 1,
1: + ETHTOOL_A_DEBUG_MSGMASK = 2,
1: + __ETHTOOL_A_DEBUG_CNT = 3,
1: + ETHTOOL_A_DEBUG_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_WOL_UNSPEC = 0,
1: + ETHTOOL_A_WOL_HEADER = 1,
1: + ETHTOOL_A_WOL_MODES = 2,
1: + ETHTOOL_A_WOL_SOPASS = 3,
1: + __ETHTOOL_A_WOL_CNT = 4,
1: + ETHTOOL_A_WOL_MAX = 3,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_FEATURES_UNSPEC = 0,
1: + ETHTOOL_A_FEATURES_HEADER = 1,
1: + ETHTOOL_A_FEATURES_HW = 2,
1: + ETHTOOL_A_FEATURES_WANTED = 3,
1: + ETHTOOL_A_FEATURES_ACTIVE = 4,
1: + ETHTOOL_A_FEATURES_NOCHANGE = 5,
1: + __ETHTOOL_A_FEATURES_CNT = 6,
1: + ETHTOOL_A_FEATURES_MAX = 5,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_PRIVFLAGS_UNSPEC = 0,
1: + ETHTOOL_A_PRIVFLAGS_HEADER = 1,
1: + ETHTOOL_A_PRIVFLAGS_FLAGS = 2,
1: + __ETHTOOL_A_PRIVFLAGS_CNT = 3,
1: + ETHTOOL_A_PRIVFLAGS_MAX = 2,
1: +};
1: +
1: enum {
1: - ETHTOOL_A_RINGS_UNSPEC = 0,
1: - ETHTOOL_A_RINGS_HEADER = 1,
1: - ETHTOOL_A_RINGS_RX_MAX = 2,
1: - ETHTOOL_A_RINGS_RX_MINI_MAX = 3,
1: - ETHTOOL_A_RINGS_RX_JUMBO_MAX = 4,
1: - ETHTOOL_A_RINGS_TX_MAX = 5,
1: - ETHTOOL_A_RINGS_RX = 6,
1: - ETHTOOL_A_RINGS_RX_MINI = 7,
1: - ETHTOOL_A_RINGS_RX_JUMBO = 8,
1: - ETHTOOL_A_RINGS_TX = 9,
1: - __ETHTOOL_A_RINGS_CNT = 10,
1: - ETHTOOL_A_RINGS_MAX = 9,
1: + ETHTOOL_A_RINGS_UNSPEC = 0,
1: + ETHTOOL_A_RINGS_HEADER = 1,
1: + ETHTOOL_A_RINGS_RX_MAX = 2,
1: + ETHTOOL_A_RINGS_RX_MINI_MAX = 3,
1: + ETHTOOL_A_RINGS_RX_JUMBO_MAX = 4,
1: + ETHTOOL_A_RINGS_TX_MAX = 5,
1: + ETHTOOL_A_RINGS_RX = 6,
1: + ETHTOOL_A_RINGS_RX_MINI = 7,
1: + ETHTOOL_A_RINGS_RX_JUMBO = 8,
1: + ETHTOOL_A_RINGS_TX = 9,
1: + __ETHTOOL_A_RINGS_CNT = 10,
1: + ETHTOOL_A_RINGS_MAX = 9,
1: };
1:
1: enum {
1: - ETHTOOL_A_CHANNELS_UNSPEC = 0,
1: - ETHTOOL_A_CHANNELS_HEADER = 1,
1: - ETHTOOL_A_CHANNELS_RX_MAX = 2,
1: - ETHTOOL_A_CHANNELS_TX_MAX = 3,
1: - ETHTOOL_A_CHANNELS_OTHER_MAX = 4,
1: - ETHTOOL_A_CHANNELS_COMBINED_MAX = 5,
1: - ETHTOOL_A_CHANNELS_RX_COUNT = 6,
1: - ETHTOOL_A_CHANNELS_TX_COUNT = 7,
1: - ETHTOOL_A_CHANNELS_OTHER_COUNT = 8,
1: - ETHTOOL_A_CHANNELS_COMBINED_COUNT = 9,
1: - __ETHTOOL_A_CHANNELS_CNT = 10,
1: - ETHTOOL_A_CHANNELS_MAX = 9,
1: + ETHTOOL_A_CHANNELS_UNSPEC = 0,
1: + ETHTOOL_A_CHANNELS_HEADER = 1,
1: + ETHTOOL_A_CHANNELS_RX_MAX = 2,
1: + ETHTOOL_A_CHANNELS_TX_MAX = 3,
1: + ETHTOOL_A_CHANNELS_OTHER_MAX = 4,
1: + ETHTOOL_A_CHANNELS_COMBINED_MAX = 5,
1: + ETHTOOL_A_CHANNELS_RX_COUNT = 6,
1: + ETHTOOL_A_CHANNELS_TX_COUNT = 7,
1: + ETHTOOL_A_CHANNELS_OTHER_COUNT = 8,
1: + ETHTOOL_A_CHANNELS_COMBINED_COUNT = 9,
1: + __ETHTOOL_A_CHANNELS_CNT = 10,
1: + ETHTOOL_A_CHANNELS_MAX = 9,
1: };
1:
1: enum {
1: - ETHTOOL_A_COALESCE_UNSPEC = 0,
1: - ETHTOOL_A_COALESCE_HEADER = 1,
1: - ETHTOOL_A_COALESCE_RX_USECS = 2,
1: - ETHTOOL_A_COALESCE_RX_MAX_FRAMES = 3,
1: - ETHTOOL_A_COALESCE_RX_USECS_IRQ = 4,
1: - ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ = 5,
1: - ETHTOOL_A_COALESCE_TX_USECS = 6,
1: - ETHTOOL_A_COALESCE_TX_MAX_FRAMES = 7,
1: - ETHTOOL_A_COALESCE_TX_USECS_IRQ = 8,
1: - ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ = 9,
1: - ETHTOOL_A_COALESCE_STATS_BLOCK_USECS = 10,
1: - ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX = 11,
1: - ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX = 12,
1: - ETHTOOL_A_COALESCE_PKT_RATE_LOW = 13,
1: - ETHTOOL_A_COALESCE_RX_USECS_LOW = 14,
1: - ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW = 15,
1: - ETHTOOL_A_COALESCE_TX_USECS_LOW = 16,
1: - ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW = 17,
1: - ETHTOOL_A_COALESCE_PKT_RATE_HIGH = 18,
1: - ETHTOOL_A_COALESCE_RX_USECS_HIGH = 19,
1: - ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH = 20,
1: - ETHTOOL_A_COALESCE_TX_USECS_HIGH = 21,
1: - ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH = 22,
1: - ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 23,
1: - __ETHTOOL_A_COALESCE_CNT = 24,
1: - ETHTOOL_A_COALESCE_MAX = 23,
1: + ETHTOOL_A_COALESCE_UNSPEC = 0,
1: + ETHTOOL_A_COALESCE_HEADER = 1,
1: + ETHTOOL_A_COALESCE_RX_USECS = 2,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES = 3,
1: + ETHTOOL_A_COALESCE_RX_USECS_IRQ = 4,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ = 5,
1: + ETHTOOL_A_COALESCE_TX_USECS = 6,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES = 7,
1: + ETHTOOL_A_COALESCE_TX_USECS_IRQ = 8,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ = 9,
1: + ETHTOOL_A_COALESCE_STATS_BLOCK_USECS = 10,
1: + ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX = 11,
1: + ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX = 12,
1: + ETHTOOL_A_COALESCE_PKT_RATE_LOW = 13,
1: + ETHTOOL_A_COALESCE_RX_USECS_LOW = 14,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW = 15,
1: + ETHTOOL_A_COALESCE_TX_USECS_LOW = 16,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW = 17,
1: + ETHTOOL_A_COALESCE_PKT_RATE_HIGH = 18,
1: + ETHTOOL_A_COALESCE_RX_USECS_HIGH = 19,
1: + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH = 20,
1: + ETHTOOL_A_COALESCE_TX_USECS_HIGH = 21,
1: + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH = 22,
1: + ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 23,
1: + __ETHTOOL_A_COALESCE_CNT = 24,
1: + ETHTOOL_A_COALESCE_MAX = 23,
1: };
1:
1: enum {
1: - ETHTOOL_A_PAUSE_UNSPEC = 0,
1: - ETHTOOL_A_PAUSE_HEADER = 1,
1: - ETHTOOL_A_PAUSE_AUTONEG = 2,
1: - ETHTOOL_A_PAUSE_RX = 3,
1: - ETHTOOL_A_PAUSE_TX = 4,
1: - ETHTOOL_A_PAUSE_STATS = 5,
1: - __ETHTOOL_A_PAUSE_CNT = 6,
1: - ETHTOOL_A_PAUSE_MAX = 5,
1: + ETHTOOL_A_PAUSE_UNSPEC = 0,
1: + ETHTOOL_A_PAUSE_HEADER = 1,
1: + ETHTOOL_A_PAUSE_AUTONEG = 2,
1: + ETHTOOL_A_PAUSE_RX = 3,
1: + ETHTOOL_A_PAUSE_TX = 4,
1: + ETHTOOL_A_PAUSE_STATS = 5,
1: + __ETHTOOL_A_PAUSE_CNT = 6,
1: + ETHTOOL_A_PAUSE_MAX = 5,
1: };
1:
1: enum {
1: - ETHTOOL_A_EEE_UNSPEC = 0,
1: - ETHTOOL_A_EEE_HEADER = 1,
1: - ETHTOOL_A_EEE_MODES_OURS = 2,
1: - ETHTOOL_A_EEE_MODES_PEER = 3,
1: - ETHTOOL_A_EEE_ACTIVE = 4,
1: - ETHTOOL_A_EEE_ENABLED = 5,
1: - ETHTOOL_A_EEE_TX_LPI_ENABLED = 6,
1: - ETHTOOL_A_EEE_TX_LPI_TIMER = 7,
1: - __ETHTOOL_A_EEE_CNT = 8,
1: - ETHTOOL_A_EEE_MAX = 7,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_TSINFO_UNSPEC = 0,
1: - ETHTOOL_A_TSINFO_HEADER = 1,
1: - ETHTOOL_A_TSINFO_TIMESTAMPING = 2,
1: - ETHTOOL_A_TSINFO_TX_TYPES = 3,
1: - ETHTOOL_A_TSINFO_RX_FILTERS = 4,
1: - ETHTOOL_A_TSINFO_PHC_INDEX = 5,
1: - __ETHTOOL_A_TSINFO_CNT = 6,
1: - ETHTOOL_A_TSINFO_MAX = 5,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_CABLE_TEST_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TEST_HEADER = 1,
1: - __ETHTOOL_A_CABLE_TEST_CNT = 2,
1: - ETHTOOL_A_CABLE_TEST_MAX = 1,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_CABLE_TEST_TDR_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TEST_TDR_HEADER = 1,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG = 2,
1: - __ETHTOOL_A_CABLE_TEST_TDR_CNT = 3,
1: - ETHTOOL_A_CABLE_TEST_TDR_MAX = 2,
1: -};
1: -
1: -enum {
1: - ETHTOOL_A_TUNNEL_INFO_UNSPEC = 0,
1: - ETHTOOL_A_TUNNEL_INFO_HEADER = 1,
1: - ETHTOOL_A_TUNNEL_INFO_UDP_PORTS = 2,
1: - __ETHTOOL_A_TUNNEL_INFO_CNT = 3,
1: - ETHTOOL_A_TUNNEL_INFO_MAX = 2,
1: + ETHTOOL_A_EEE_UNSPEC = 0,
1: + ETHTOOL_A_EEE_HEADER = 1,
1: + ETHTOOL_A_EEE_MODES_OURS = 2,
1: + ETHTOOL_A_EEE_MODES_PEER = 3,
1: + ETHTOOL_A_EEE_ACTIVE = 4,
1: + ETHTOOL_A_EEE_ENABLED = 5,
1: + ETHTOOL_A_EEE_TX_LPI_ENABLED = 6,
1: + ETHTOOL_A_EEE_TX_LPI_TIMER = 7,
1: + __ETHTOOL_A_EEE_CNT = 8,
1: + ETHTOOL_A_EEE_MAX = 7,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TSINFO_UNSPEC = 0,
1: + ETHTOOL_A_TSINFO_HEADER = 1,
1: + ETHTOOL_A_TSINFO_TIMESTAMPING = 2,
1: + ETHTOOL_A_TSINFO_TX_TYPES = 3,
1: + ETHTOOL_A_TSINFO_RX_FILTERS = 4,
1: + ETHTOOL_A_TSINFO_PHC_INDEX = 5,
1: + __ETHTOOL_A_TSINFO_CNT = 6,
1: + ETHTOOL_A_TSINFO_MAX = 5,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_HEADER = 1,
1: + __ETHTOOL_A_CABLE_TEST_CNT = 2,
1: + ETHTOOL_A_CABLE_TEST_MAX = 1,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_CABLE_TEST_TDR_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_TDR_HEADER = 1,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG = 2,
1: + __ETHTOOL_A_CABLE_TEST_TDR_CNT = 3,
1: + ETHTOOL_A_CABLE_TEST_TDR_MAX = 2,
1: +};
1: +
1: +enum {
1: + ETHTOOL_A_TUNNEL_INFO_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_INFO_HEADER = 1,
1: + ETHTOOL_A_TUNNEL_INFO_UDP_PORTS = 2,
1: + __ETHTOOL_A_TUNNEL_INFO_CNT = 3,
1: + ETHTOOL_A_TUNNEL_INFO_MAX = 2,
1: };
1:
1: enum ethtool_multicast_groups {
1: - ETHNL_MCGRP_MONITOR = 0,
1: + ETHNL_MCGRP_MONITOR = 0,
1: };
1:
1: struct ethnl_req_info {
1: - struct net_device *dev;
1: - u32 flags;
1: + struct net_device *dev;
1: + u32 flags;
1: };
1:
1: struct ethnl_reply_data {
1: - struct net_device *dev;
1: + struct net_device *dev;
1: };
1:
1: struct ethnl_request_ops {
1: - u8 request_cmd;
1: - u8 reply_cmd;
1: - u16 hdr_attr;
1: - unsigned int req_info_size;
1: - unsigned int reply_data_size;
1: - bool allow_nodev_do;
1: - int (*parse_request)(struct ethnl_req_info *, struct nlattr **, struct netlink_ext_ack *);
1: - int (*prepare_data)(const struct ethnl_req_info *, struct ethnl_reply_data *, struct genl_info *);
1: - int (*reply_size)(const struct ethnl_req_info *, const struct ethnl_reply_data *);
1: - int (*fill_reply)(struct sk_buff *, const struct ethnl_req_info *, const struct ethnl_reply_data *);
1: - void (*cleanup_data)(struct ethnl_reply_data *);
1: + u8 request_cmd;
1: + u8 reply_cmd;
1: + u16 hdr_attr;
1: + unsigned int req_info_size;
1: + unsigned int reply_data_size;
1: + bool allow_nodev_do;
1: + int (*parse_request)(struct ethnl_req_info *, struct nlattr **,
1: + struct netlink_ext_ack *);
1: + int (*prepare_data)(const struct ethnl_req_info *, struct ethnl_reply_data *,
1: + struct genl_info *);
1: + int (*reply_size)(const struct ethnl_req_info *,
1: + const struct ethnl_reply_data *);
1: + int (*fill_reply)(struct sk_buff *, const struct ethnl_req_info *,
1: + const struct ethnl_reply_data *);
1: + void (*cleanup_data)(struct ethnl_reply_data *);
1: };
1:
1: struct ethnl_dump_ctx {
1: - const struct ethnl_request_ops *ops;
1: - struct ethnl_req_info *req_info;
1: - struct ethnl_reply_data *reply_data;
1: - int pos_hash;
1: - int pos_idx;
1: + const struct ethnl_request_ops *ops;
1: + struct ethnl_req_info *req_info;
1: + struct ethnl_reply_data *reply_data;
1: + int pos_hash;
1: + int pos_idx;
1: };
1:
1: -typedef void (*ethnl_notify_handler_t)(struct net_device *, unsigned int, const void *);
1: +typedef void (*ethnl_notify_handler_t)(struct net_device *, unsigned int,
1: + const void *);
1:
1: enum {
1: - ETHTOOL_A_BITSET_BIT_UNSPEC = 0,
1: - ETHTOOL_A_BITSET_BIT_INDEX = 1,
1: - ETHTOOL_A_BITSET_BIT_NAME = 2,
1: - ETHTOOL_A_BITSET_BIT_VALUE = 3,
1: - __ETHTOOL_A_BITSET_BIT_CNT = 4,
1: - ETHTOOL_A_BITSET_BIT_MAX = 3,
1: + ETHTOOL_A_BITSET_BIT_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_BIT_INDEX = 1,
1: + ETHTOOL_A_BITSET_BIT_NAME = 2,
1: + ETHTOOL_A_BITSET_BIT_VALUE = 3,
1: + __ETHTOOL_A_BITSET_BIT_CNT = 4,
1: + ETHTOOL_A_BITSET_BIT_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_BITSET_BITS_UNSPEC = 0,
1: - ETHTOOL_A_BITSET_BITS_BIT = 1,
1: - __ETHTOOL_A_BITSET_BITS_CNT = 2,
1: - ETHTOOL_A_BITSET_BITS_MAX = 1,
1: + ETHTOOL_A_BITSET_BITS_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_BITS_BIT = 1,
1: + __ETHTOOL_A_BITSET_BITS_CNT = 2,
1: + ETHTOOL_A_BITSET_BITS_MAX = 1,
1: };
1:
1: enum {
1: - ETHTOOL_A_BITSET_UNSPEC = 0,
1: - ETHTOOL_A_BITSET_NOMASK = 1,
1: - ETHTOOL_A_BITSET_SIZE = 2,
1: - ETHTOOL_A_BITSET_BITS = 3,
1: - ETHTOOL_A_BITSET_VALUE = 4,
1: - ETHTOOL_A_BITSET_MASK = 5,
1: - __ETHTOOL_A_BITSET_CNT = 6,
1: - ETHTOOL_A_BITSET_MAX = 5,
1: + ETHTOOL_A_BITSET_UNSPEC = 0,
1: + ETHTOOL_A_BITSET_NOMASK = 1,
1: + ETHTOOL_A_BITSET_SIZE = 2,
1: + ETHTOOL_A_BITSET_BITS = 3,
1: + ETHTOOL_A_BITSET_VALUE = 4,
1: + ETHTOOL_A_BITSET_MASK = 5,
1: + __ETHTOOL_A_BITSET_CNT = 6,
1: + ETHTOOL_A_BITSET_MAX = 5,
1: };
1:
1: -typedef const char (* const ethnl_string_array_t)[32];
1: +typedef const char (*const ethnl_string_array_t)[32];
1:
1: enum {
1: - ETHTOOL_A_STRING_UNSPEC = 0,
1: - ETHTOOL_A_STRING_INDEX = 1,
1: - ETHTOOL_A_STRING_VALUE = 2,
1: - __ETHTOOL_A_STRING_CNT = 3,
1: - ETHTOOL_A_STRING_MAX = 2,
1: + ETHTOOL_A_STRING_UNSPEC = 0,
1: + ETHTOOL_A_STRING_INDEX = 1,
1: + ETHTOOL_A_STRING_VALUE = 2,
1: + __ETHTOOL_A_STRING_CNT = 3,
1: + ETHTOOL_A_STRING_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_STRINGS_UNSPEC = 0,
1: - ETHTOOL_A_STRINGS_STRING = 1,
1: - __ETHTOOL_A_STRINGS_CNT = 2,
1: - ETHTOOL_A_STRINGS_MAX = 1,
1: + ETHTOOL_A_STRINGS_UNSPEC = 0,
1: + ETHTOOL_A_STRINGS_STRING = 1,
1: + __ETHTOOL_A_STRINGS_CNT = 2,
1: + ETHTOOL_A_STRINGS_MAX = 1,
1: };
1:
1: enum {
1: - ETHTOOL_A_STRINGSET_UNSPEC = 0,
1: - ETHTOOL_A_STRINGSET_ID = 1,
1: - ETHTOOL_A_STRINGSET_COUNT = 2,
1: - ETHTOOL_A_STRINGSET_STRINGS = 3,
1: - __ETHTOOL_A_STRINGSET_CNT = 4,
1: - ETHTOOL_A_STRINGSET_MAX = 3,
1: + ETHTOOL_A_STRINGSET_UNSPEC = 0,
1: + ETHTOOL_A_STRINGSET_ID = 1,
1: + ETHTOOL_A_STRINGSET_COUNT = 2,
1: + ETHTOOL_A_STRINGSET_STRINGS = 3,
1: + __ETHTOOL_A_STRINGSET_CNT = 4,
1: + ETHTOOL_A_STRINGSET_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_STRINGSETS_UNSPEC = 0,
1: - ETHTOOL_A_STRINGSETS_STRINGSET = 1,
1: - __ETHTOOL_A_STRINGSETS_CNT = 2,
1: - ETHTOOL_A_STRINGSETS_MAX = 1,
1: + ETHTOOL_A_STRINGSETS_UNSPEC = 0,
1: + ETHTOOL_A_STRINGSETS_STRINGSET = 1,
1: + __ETHTOOL_A_STRINGSETS_CNT = 2,
1: + ETHTOOL_A_STRINGSETS_MAX = 1,
1: };
1:
1: struct strset_info {
1: - bool per_dev;
1: - bool free_strings;
1: - unsigned int count;
1: - const char (*strings)[32];
1: + bool per_dev;
1: + bool free_strings;
1: + unsigned int count;
1: + const char (*strings)[32];
1: };
1:
1: struct strset_req_info {
1: - struct ethnl_req_info base;
1: - u32 req_ids;
1: - bool counts_only;
1: + struct ethnl_req_info base;
1: + u32 req_ids;
1: + bool counts_only;
1: };
1:
1: struct strset_reply_data {
1: - struct ethnl_reply_data base;
1: - struct strset_info sets[16];
1: + struct ethnl_reply_data base;
1: + struct strset_info sets[16];
1: };
1:
1: struct linkinfo_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_link_ksettings ksettings;
1: - struct ethtool_link_settings *lsettings;
1: + struct ethnl_reply_data base;
1: + struct ethtool_link_ksettings ksettings;
1: + struct ethtool_link_settings *lsettings;
1: };
1:
1: struct linkmodes_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_link_ksettings ksettings;
1: - struct ethtool_link_settings *lsettings;
1: - bool peer_empty;
1: + struct ethnl_reply_data base;
1: + struct ethtool_link_ksettings ksettings;
1: + struct ethtool_link_settings *lsettings;
1: + bool peer_empty;
1: };
1:
1: struct link_mode_info {
1: - int speed;
1: - u8 duplex;
1: + int speed;
1: + u8 duplex;
1: };
1:
1: struct linkstate_reply_data {
1: - struct ethnl_reply_data base;
1: - int link;
1: - int sqi;
1: - int sqi_max;
1: - bool link_ext_state_provided;
1: - struct ethtool_link_ext_state_info ethtool_link_ext_state_info;
1: + struct ethnl_reply_data base;
1: + int link;
1: + int sqi;
1: + int sqi_max;
1: + bool link_ext_state_provided;
1: + struct ethtool_link_ext_state_info ethtool_link_ext_state_info;
1: };
1:
1: struct debug_reply_data {
1: - struct ethnl_reply_data base;
1: - u32 msg_mask;
1: + struct ethnl_reply_data base;
1: + u32 msg_mask;
1: };
1:
1: struct wol_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_wolinfo wol;
1: - bool show_sopass;
1: + struct ethnl_reply_data base;
1: + struct ethtool_wolinfo wol;
1: + bool show_sopass;
1: };
1:
1: struct features_reply_data {
1: - struct ethnl_reply_data base;
1: - u32 hw[2];
1: - u32 wanted[2];
1: - u32 active[2];
1: - u32 nochange[2];
1: - u32 all[2];
1: + struct ethnl_reply_data base;
1: + u32 hw[2];
1: + u32 wanted[2];
1: + u32 active[2];
1: + u32 nochange[2];
1: + u32 all[2];
1: };
1:
1: struct privflags_reply_data {
1: - struct ethnl_reply_data base;
1: - const char (*priv_flag_names)[32];
1: - unsigned int n_priv_flags;
1: - u32 priv_flags;
1: + struct ethnl_reply_data base;
1: + const char (*priv_flag_names)[32];
1: + unsigned int n_priv_flags;
1: + u32 priv_flags;
1: };
1:
1: struct rings_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_ringparam ringparam;
1: + struct ethnl_reply_data base;
1: + struct ethtool_ringparam ringparam;
1: };
1:
1: struct channels_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_channels channels;
1: + struct ethnl_reply_data base;
1: + struct ethtool_channels channels;
1: };
1:
1: struct coalesce_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_coalesce coalesce;
1: - u32 supported_params;
1: + struct ethnl_reply_data base;
1: + struct ethtool_coalesce coalesce;
1: + u32 supported_params;
1: };
1:
1: enum {
1: - ETHTOOL_A_PAUSE_STAT_UNSPEC = 0,
1: - ETHTOOL_A_PAUSE_STAT_PAD = 1,
1: - ETHTOOL_A_PAUSE_STAT_TX_FRAMES = 2,
1: - ETHTOOL_A_PAUSE_STAT_RX_FRAMES = 3,
1: - __ETHTOOL_A_PAUSE_STAT_CNT = 4,
1: - ETHTOOL_A_PAUSE_STAT_MAX = 3,
1: + ETHTOOL_A_PAUSE_STAT_UNSPEC = 0,
1: + ETHTOOL_A_PAUSE_STAT_PAD = 1,
1: + ETHTOOL_A_PAUSE_STAT_TX_FRAMES = 2,
1: + ETHTOOL_A_PAUSE_STAT_RX_FRAMES = 3,
1: + __ETHTOOL_A_PAUSE_STAT_CNT = 4,
1: + ETHTOOL_A_PAUSE_STAT_MAX = 3,
1: };
1:
1: struct pause_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_pauseparam pauseparam;
1: - struct ethtool_pause_stats pausestat;
1: + struct ethnl_reply_data base;
1: + struct ethtool_pauseparam pauseparam;
1: + struct ethtool_pause_stats pausestat;
1: };
1:
1: struct eee_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_eee eee;
1: + struct ethnl_reply_data base;
1: + struct ethtool_eee eee;
1: };
1:
1: struct tsinfo_reply_data {
1: - struct ethnl_reply_data base;
1: - struct ethtool_ts_info ts_info;
1: + struct ethnl_reply_data base;
1: + struct ethtool_ts_info ts_info;
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_PAIR_A = 0,
1: - ETHTOOL_A_CABLE_PAIR_B = 1,
1: - ETHTOOL_A_CABLE_PAIR_C = 2,
1: - ETHTOOL_A_CABLE_PAIR_D = 3,
1: + ETHTOOL_A_CABLE_PAIR_A = 0,
1: + ETHTOOL_A_CABLE_PAIR_B = 1,
1: + ETHTOOL_A_CABLE_PAIR_C = 2,
1: + ETHTOOL_A_CABLE_PAIR_D = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_RESULT_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_RESULT_PAIR = 1,
1: - ETHTOOL_A_CABLE_RESULT_CODE = 2,
1: - __ETHTOOL_A_CABLE_RESULT_CNT = 3,
1: - ETHTOOL_A_CABLE_RESULT_MAX = 2,
1: + ETHTOOL_A_CABLE_RESULT_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_RESULT_PAIR = 1,
1: + ETHTOOL_A_CABLE_RESULT_CODE = 2,
1: + __ETHTOOL_A_CABLE_RESULT_CNT = 3,
1: + ETHTOOL_A_CABLE_RESULT_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR = 1,
1: - ETHTOOL_A_CABLE_FAULT_LENGTH_CM = 2,
1: - __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT = 3,
1: - ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = 2,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR = 1,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_CM = 2,
1: + __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT = 3,
1: + ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED = 1,
1: - ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 2,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED = 1,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_NEST_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_NEST_RESULT = 1,
1: - ETHTOOL_A_CABLE_NEST_FAULT_LENGTH = 2,
1: - __ETHTOOL_A_CABLE_NEST_CNT = 3,
1: - ETHTOOL_A_CABLE_NEST_MAX = 2,
1: + ETHTOOL_A_CABLE_NEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_NEST_RESULT = 1,
1: + ETHTOOL_A_CABLE_NEST_FAULT_LENGTH = 2,
1: + __ETHTOOL_A_CABLE_NEST_CNT = 3,
1: + ETHTOOL_A_CABLE_NEST_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_TEST_NTF_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TEST_NTF_HEADER = 1,
1: - ETHTOOL_A_CABLE_TEST_NTF_STATUS = 2,
1: - ETHTOOL_A_CABLE_TEST_NTF_NEST = 3,
1: - __ETHTOOL_A_CABLE_TEST_NTF_CNT = 4,
1: - ETHTOOL_A_CABLE_TEST_NTF_MAX = 3,
1: + ETHTOOL_A_CABLE_TEST_NTF_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_NTF_HEADER = 1,
1: + ETHTOOL_A_CABLE_TEST_NTF_STATUS = 2,
1: + ETHTOOL_A_CABLE_TEST_NTF_NEST = 3,
1: + __ETHTOOL_A_CABLE_TEST_NTF_CNT = 4,
1: + ETHTOOL_A_CABLE_TEST_NTF_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST = 1,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST = 2,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP = 3,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR = 4,
1: - __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT = 5,
1: - ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = 4,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST = 1,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST = 2,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP = 3,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR = 4,
1: + __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT = 5,
1: + ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = 4,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_AMPLITUDE_PAIR = 1,
1: - ETHTOOL_A_CABLE_AMPLITUDE_mV = 2,
1: - __ETHTOOL_A_CABLE_AMPLITUDE_CNT = 3,
1: - ETHTOOL_A_CABLE_AMPLITUDE_MAX = 2,
1: + ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_AMPLITUDE_PAIR = 1,
1: + ETHTOOL_A_CABLE_AMPLITUDE_mV = 2,
1: + __ETHTOOL_A_CABLE_AMPLITUDE_CNT = 3,
1: + ETHTOOL_A_CABLE_AMPLITUDE_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_PULSE_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_PULSE_mV = 1,
1: - __ETHTOOL_A_CABLE_PULSE_CNT = 2,
1: - ETHTOOL_A_CABLE_PULSE_MAX = 1,
1: + ETHTOOL_A_CABLE_PULSE_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_PULSE_mV = 1,
1: + __ETHTOOL_A_CABLE_PULSE_CNT = 2,
1: + ETHTOOL_A_CABLE_PULSE_MAX = 1,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_STEP_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE = 1,
1: - ETHTOOL_A_CABLE_STEP_LAST_DISTANCE = 2,
1: - ETHTOOL_A_CABLE_STEP_STEP_DISTANCE = 3,
1: - __ETHTOOL_A_CABLE_STEP_CNT = 4,
1: - ETHTOOL_A_CABLE_STEP_MAX = 3,
1: + ETHTOOL_A_CABLE_STEP_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE = 1,
1: + ETHTOOL_A_CABLE_STEP_LAST_DISTANCE = 2,
1: + ETHTOOL_A_CABLE_STEP_STEP_DISTANCE = 3,
1: + __ETHTOOL_A_CABLE_STEP_CNT = 4,
1: + ETHTOOL_A_CABLE_STEP_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_CABLE_TDR_NEST_UNSPEC = 0,
1: - ETHTOOL_A_CABLE_TDR_NEST_STEP = 1,
1: - ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE = 2,
1: - ETHTOOL_A_CABLE_TDR_NEST_PULSE = 3,
1: - __ETHTOOL_A_CABLE_TDR_NEST_CNT = 4,
1: - ETHTOOL_A_CABLE_TDR_NEST_MAX = 3,
1: + ETHTOOL_A_CABLE_TDR_NEST_UNSPEC = 0,
1: + ETHTOOL_A_CABLE_TDR_NEST_STEP = 1,
1: + ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE = 2,
1: + ETHTOOL_A_CABLE_TDR_NEST_PULSE = 3,
1: + __ETHTOOL_A_CABLE_TDR_NEST_CNT = 4,
1: + ETHTOOL_A_CABLE_TDR_NEST_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC = 0,
1: - ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT = 1,
1: - ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE = 2,
1: - __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT = 3,
1: - ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = 2,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT = 1,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE = 2,
1: + __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT = 3,
1: + ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = 2,
1: };
1:
1: enum {
1: - ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC = 0,
1: - ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE = 1,
1: - ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES = 2,
1: - ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY = 3,
1: - __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT = 4,
1: - ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = 3,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE = 1,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES = 2,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY = 3,
1: + __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT = 4,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = 3,
1: };
1:
1: enum {
1: - ETHTOOL_A_TUNNEL_UDP_UNSPEC = 0,
1: - ETHTOOL_A_TUNNEL_UDP_TABLE = 1,
1: - __ETHTOOL_A_TUNNEL_UDP_CNT = 2,
1: - ETHTOOL_A_TUNNEL_UDP_MAX = 1,
1: + ETHTOOL_A_TUNNEL_UDP_UNSPEC = 0,
1: + ETHTOOL_A_TUNNEL_UDP_TABLE = 1,
1: + __ETHTOOL_A_TUNNEL_UDP_CNT = 2,
1: + ETHTOOL_A_TUNNEL_UDP_MAX = 1,
1: };
1:
1: enum udp_parsable_tunnel_type {
1: - UDP_TUNNEL_TYPE_VXLAN = 1,
1: - UDP_TUNNEL_TYPE_GENEVE = 2,
1: - UDP_TUNNEL_TYPE_VXLAN_GPE = 4,
1: + UDP_TUNNEL_TYPE_VXLAN = 1,
1: + UDP_TUNNEL_TYPE_GENEVE = 2,
1: + UDP_TUNNEL_TYPE_VXLAN_GPE = 4,
1: };
1:
1: enum udp_tunnel_nic_info_flags {
1: - UDP_TUNNEL_NIC_INFO_MAY_SLEEP = 1,
1: - UDP_TUNNEL_NIC_INFO_OPEN_ONLY = 2,
1: - UDP_TUNNEL_NIC_INFO_IPV4_ONLY = 4,
1: - UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN = 8,
1: + UDP_TUNNEL_NIC_INFO_MAY_SLEEP = 1,
1: + UDP_TUNNEL_NIC_INFO_OPEN_ONLY = 2,
1: + UDP_TUNNEL_NIC_INFO_IPV4_ONLY = 4,
1: + UDP_TUNNEL_NIC_INFO_STATIC_IANA_VXLAN = 8,
1: };
1:
1: struct udp_tunnel_nic_ops {
1: - void (*get_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: - void (*set_port_priv)(struct net_device *, unsigned int, unsigned int, u8);
1: - void (*add_port)(struct net_device *, struct udp_tunnel_info *);
1: - void (*del_port)(struct net_device *, struct udp_tunnel_info *);
1: - void (*reset_ntf)(struct net_device *);
1: - size_t (*dump_size)(struct net_device *, unsigned int);
1: - int (*dump_write)(struct net_device *, unsigned int, struct sk_buff *);
1: + void (*get_port)(struct net_device *, unsigned int, unsigned int,
1: + struct udp_tunnel_info *);
1: + void (*set_port_priv)(struct net_device *, unsigned int, unsigned int, u8);
1: + void (*add_port)(struct net_device *, struct udp_tunnel_info *);
1: + void (*del_port)(struct net_device *, struct udp_tunnel_info *);
1: + void (*reset_ntf)(struct net_device *);
1: + size_t (*dump_size)(struct net_device *, unsigned int);
1: + int (*dump_write)(struct net_device *, unsigned int, struct sk_buff *);
1: };
1:
1: struct ethnl_tunnel_info_dump_ctx {
1: - struct ethnl_req_info req_info;
1: - int pos_hash;
1: - int pos_idx;
1: + struct ethnl_req_info req_info;
1: + int pos_hash;
1: + int pos_idx;
1: };
1:
1: struct nf_hook_entries_rcu_head {
1: - struct callback_head head;
1: - void *allocation;
1: + struct callback_head head;
1: + void *allocation;
1: };
1:
1: struct nf_conn___2;
1: @@ -103840,2015 +105202,2033 @@ struct nf_conn___2;
1: enum nf_nat_manip_type;
1:
1: struct nf_nat_hook {
1: - int (*parse_nat_setup)(struct nf_conn___2 *, enum nf_nat_manip_type, const struct nlattr *);
1: - void (*decode_session)(struct sk_buff *, struct flowi *);
1: - unsigned int (*manip_pkt)(struct sk_buff *, struct nf_conn___2 *, enum nf_nat_manip_type, enum ip_conntrack_dir);
1: + int (*parse_nat_setup)(struct nf_conn___2 *, enum nf_nat_manip_type,
1: + const struct nlattr *);
1: + void (*decode_session)(struct sk_buff *, struct flowi *);
1: + unsigned int (*manip_pkt)(struct sk_buff *, struct nf_conn___2 *,
1: + enum nf_nat_manip_type, enum ip_conntrack_dir);
1: };
1:
1: struct nf_conntrack_tuple___2;
1:
1: struct nf_ct_hook {
1: - int (*update)(struct net *, struct sk_buff *);
1: - void (*destroy)(struct nf_conntrack *);
1: - bool (*get_tuple_skb)(struct nf_conntrack_tuple___2 *, const struct sk_buff *);
1: + int (*update)(struct net *, struct sk_buff *);
1: + void (*destroy)(struct nf_conntrack *);
1: + bool (*get_tuple_skb)(struct nf_conntrack_tuple___2 *,
1: + const struct sk_buff *);
1: };
1:
1: struct nfnl_ct_hook {
1: - struct nf_conn___2 * (*get_ct)(const struct sk_buff *, enum ip_conntrack_info *);
1: - size_t (*build_size)(const struct nf_conn___2 *);
1: - int (*build)(struct sk_buff *, struct nf_conn___2 *, enum ip_conntrack_info, u_int16_t, u_int16_t);
1: - int (*parse)(const struct nlattr *, struct nf_conn___2 *);
1: - int (*attach_expect)(const struct nlattr *, struct nf_conn___2 *, u32, u32);
1: - void (*seq_adjust)(struct sk_buff *, struct nf_conn___2 *, enum ip_conntrack_info, s32);
1: + struct nf_conn___2 *(*get_ct)(const struct sk_buff *,
1: + enum ip_conntrack_info *);
1: + size_t (*build_size)(const struct nf_conn___2 *);
1: + int (*build)(struct sk_buff *, struct nf_conn___2 *, enum ip_conntrack_info,
1: + u_int16_t, u_int16_t);
1: + int (*parse)(const struct nlattr *, struct nf_conn___2 *);
1: + int (*attach_expect)(const struct nlattr *, struct nf_conn___2 *, u32, u32);
1: + void (*seq_adjust)(struct sk_buff *, struct nf_conn___2 *,
1: + enum ip_conntrack_info, s32);
1: };
1:
1: struct nf_ipv6_ops {
1: - void (*route_input)(struct sk_buff *);
1: - int (*fragment)(struct net *, struct sock *, struct sk_buff *, int (*)(struct net *, struct sock *, struct sk_buff *));
1: - int (*reroute)(struct sk_buff *, const struct nf_queue_entry *);
1: + void (*route_input)(struct sk_buff *);
1: + int (*fragment)(struct net *, struct sock *, struct sk_buff *,
1: + int (*)(struct net *, struct sock *, struct sk_buff *));
1: + int (*reroute)(struct sk_buff *, const struct nf_queue_entry *);
1: };
1:
1: struct nf_queue_entry {
1: - struct list_head list;
1: - struct sk_buff *skb;
1: - unsigned int id;
1: - unsigned int hook_index;
1: - struct net_device *physin;
1: - struct net_device *physout;
1: - struct nf_hook_state state;
1: - u16 size;
1: + struct list_head list;
1: + struct sk_buff *skb;
1: + unsigned int id;
1: + unsigned int hook_index;
1: + struct net_device *physin;
1: + struct net_device *physout;
1: + struct nf_hook_state state;
1: + u16 size;
1: };
1:
1: struct nf_loginfo {
1: - u_int8_t type;
1: - union {
1: - struct {
1: - u_int32_t copy_len;
1: - u_int16_t group;
1: - u_int16_t qthreshold;
1: - u_int16_t flags;
1: - } ulog;
1: - struct {
1: - u_int8_t level;
1: - u_int8_t logflags;
1: - } log;
1: - } u;
1: + u_int8_t type;
1: + union {
1: + struct {
1: + u_int32_t copy_len;
1: + u_int16_t group;
1: + u_int16_t qthreshold;
1: + u_int16_t flags;
1: + } ulog;
1: + struct {
1: + u_int8_t level;
1: + u_int8_t logflags;
1: + } log;
1: + } u;
1: };
1:
1: struct nf_log_buf {
1: - unsigned int count;
1: - char buf[1020];
1: + unsigned int count;
1: + char buf[1020];
1: };
1:
1: struct nf_bridge_info {
1: - enum {
1: - BRNF_PROTO_UNCHANGED = 0,
1: - BRNF_PROTO_8021Q = 1,
1: - BRNF_PROTO_PPPOE = 2,
1: - } orig_proto: 8;
1: - u8 pkt_otherhost: 1;
1: - u8 in_prerouting: 1;
1: - u8 bridged_dnat: 1;
1: - __u16 frag_max_size;
1: - struct net_device *physindev;
1: - struct net_device *physoutdev;
1: - union {
1: - __be32 ipv4_daddr;
1: - struct in6_addr ipv6_daddr;
1: - char neigh_header[8];
1: - };
1: + enum {
1: + BRNF_PROTO_UNCHANGED = 0,
1: + BRNF_PROTO_8021Q = 1,
1: + BRNF_PROTO_PPPOE = 2,
1: + } orig_proto : 8;
1: + u8 pkt_otherhost : 1;
1: + u8 in_prerouting : 1;
1: + u8 bridged_dnat : 1;
1: + __u16 frag_max_size;
1: + struct net_device *physindev;
1: + struct net_device *physoutdev;
1: + union {
1: + __be32 ipv4_daddr;
1: + struct in6_addr ipv6_daddr;
1: + char neigh_header[8];
1: + };
1: };
1:
1: struct ip_rt_info {
1: - __be32 daddr;
1: - __be32 saddr;
1: - u_int8_t tos;
1: - u_int32_t mark;
1: + __be32 daddr;
1: + __be32 saddr;
1: + u_int8_t tos;
1: + u_int32_t mark;
1: };
1:
1: struct ip6_rt_info {
1: - struct in6_addr daddr;
1: - struct in6_addr saddr;
1: - u_int32_t mark;
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + u_int32_t mark;
1: };
1:
1: struct nf_sockopt_ops {
1: - struct list_head list;
1: - u_int8_t pf;
1: - int set_optmin;
1: - int set_optmax;
1: - int (*set)(struct sock *, int, sockptr_t, unsigned int);
1: - int get_optmin;
1: - int get_optmax;
1: - int (*get)(struct sock *, int, void *, int *);
1: - struct module *owner;
1: + struct list_head list;
1: + u_int8_t pf;
1: + int set_optmin;
1: + int set_optmax;
1: + int (*set)(struct sock *, int, sockptr_t, unsigned int);
1: + int get_optmin;
1: + int get_optmax;
1: + int (*get)(struct sock *, int, void *, int *);
1: + struct module *owner;
1: };
1:
1: struct ip_mreqn {
1: - struct in_addr imr_multiaddr;
1: - struct in_addr imr_address;
1: - int imr_ifindex;
1: + struct in_addr imr_multiaddr;
1: + struct in_addr imr_address;
1: + int imr_ifindex;
1: };
1:
1: struct rtmsg {
1: - unsigned char rtm_family;
1: - unsigned char rtm_dst_len;
1: - unsigned char rtm_src_len;
1: - unsigned char rtm_tos;
1: - unsigned char rtm_table;
1: - unsigned char rtm_protocol;
1: - unsigned char rtm_scope;
1: - unsigned char rtm_type;
1: - unsigned int rtm_flags;
1: + unsigned char rtm_family;
1: + unsigned char rtm_dst_len;
1: + unsigned char rtm_src_len;
1: + unsigned char rtm_tos;
1: + unsigned char rtm_table;
1: + unsigned char rtm_protocol;
1: + unsigned char rtm_scope;
1: + unsigned char rtm_type;
1: + unsigned int rtm_flags;
1: };
1:
1: struct rtvia {
1: - __kernel_sa_family_t rtvia_family;
1: - __u8 rtvia_addr[0];
1: + __kernel_sa_family_t rtvia_family;
1: + __u8 rtvia_addr[0];
1: };
1:
1: struct ip_sf_list;
1:
1: struct ip_mc_list {
1: - struct in_device *interface;
1: - __be32 multiaddr;
1: - unsigned int sfmode;
1: - struct ip_sf_list *sources;
1: - struct ip_sf_list *tomb;
1: - long unsigned int sfcount[2];
1: - union {
1: - struct ip_mc_list *next;
1: - struct ip_mc_list *next_rcu;
1: - };
1: - struct ip_mc_list *next_hash;
1: - struct timer_list timer;
1: - int users;
1: - refcount_t refcnt;
1: - spinlock_t lock;
1: - char tm_running;
1: - char reporter;
1: - char unsolicit_count;
1: - char loaded;
1: - unsigned char gsquery;
1: - unsigned char crcount;
1: - struct callback_head rcu;
1: + struct in_device *interface;
1: + __be32 multiaddr;
1: + unsigned int sfmode;
1: + struct ip_sf_list *sources;
1: + struct ip_sf_list *tomb;
1: + long unsigned int sfcount[2];
1: + union {
1: + struct ip_mc_list *next;
1: + struct ip_mc_list *next_rcu;
1: + };
1: + struct ip_mc_list *next_hash;
1: + struct timer_list timer;
1: + int users;
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + char tm_running;
1: + char reporter;
1: + char unsolicit_count;
1: + char loaded;
1: + unsigned char gsquery;
1: + unsigned char crcount;
1: + struct callback_head rcu;
1: };
1:
1: struct ip_sf_socklist {
1: - unsigned int sl_max;
1: - unsigned int sl_count;
1: - struct callback_head rcu;
1: - __be32 sl_addr[0];
1: + unsigned int sl_max;
1: + unsigned int sl_count;
1: + struct callback_head rcu;
1: + __be32 sl_addr[0];
1: };
1:
1: struct ip_mc_socklist {
1: - struct ip_mc_socklist *next_rcu;
1: - struct ip_mreqn multi;
1: - unsigned int sfmode;
1: - struct ip_sf_socklist *sflist;
1: - struct callback_head rcu;
1: + struct ip_mc_socklist *next_rcu;
1: + struct ip_mreqn multi;
1: + unsigned int sfmode;
1: + struct ip_sf_socklist *sflist;
1: + struct callback_head rcu;
1: };
1:
1: struct ip_sf_list {
1: - struct ip_sf_list *sf_next;
1: - long unsigned int sf_count[2];
1: - __be32 sf_inaddr;
1: - unsigned char sf_gsresp;
1: - unsigned char sf_oldin;
1: - unsigned char sf_crcount;
1: + struct ip_sf_list *sf_next;
1: + long unsigned int sf_count[2];
1: + __be32 sf_inaddr;
1: + unsigned char sf_gsresp;
1: + unsigned char sf_oldin;
1: + unsigned char sf_crcount;
1: };
1:
1: struct ipv4_addr_key {
1: - __be32 addr;
1: - int vif;
1: + __be32 addr;
1: + int vif;
1: };
1:
1: struct inetpeer_addr {
1: - union {
1: - struct ipv4_addr_key a4;
1: - struct in6_addr a6;
1: - u32 key[4];
1: - };
1: - __u16 family;
1: + union {
1: + struct ipv4_addr_key a4;
1: + struct in6_addr a6;
1: + u32 key[4];
1: + };
1: + __u16 family;
1: };
1:
1: struct inet_peer {
1: - struct rb_node rb_node;
1: - struct inetpeer_addr daddr;
1: - u32 metrics[17];
1: - u32 rate_tokens;
1: - u32 n_redirects;
1: - long unsigned int rate_last;
1: - union {
1: - struct {
1: - atomic_t rid;
1: - };
1: - struct callback_head rcu;
1: - };
1: - __u32 dtime;
1: - refcount_t refcnt;
1: + struct rb_node rb_node;
1: + struct inetpeer_addr daddr;
1: + u32 metrics[17];
1: + u32 rate_tokens;
1: + u32 n_redirects;
1: + long unsigned int rate_last;
1: + union {
1: + struct {
1: + atomic_t rid;
1: + };
1: + struct callback_head rcu;
1: + };
1: + __u32 dtime;
1: + refcount_t refcnt;
1: };
1:
1: struct fib_rt_info {
1: - struct fib_info *fi;
1: - u32 tb_id;
1: - __be32 dst;
1: - int dst_len;
1: - u8 tos;
1: - u8 type;
1: - u8 offload: 1;
1: - u8 trap: 1;
1: - u8 unused: 6;
1: + struct fib_info *fi;
1: + u32 tb_id;
1: + __be32 dst;
1: + int dst_len;
1: + u8 tos;
1: + u8 type;
1: + u8 offload : 1;
1: + u8 trap : 1;
1: + u8 unused : 6;
1: };
1:
1: struct uncached_list {
1: - spinlock_t lock;
1: - struct list_head head;
1: + spinlock_t lock;
1: + struct list_head head;
1: };
1:
1: struct ip_rt_acct {
1: - __u32 o_bytes;
1: - __u32 o_packets;
1: - __u32 i_bytes;
1: - __u32 i_packets;
1: + __u32 o_bytes;
1: + __u32 o_packets;
1: + __u32 i_bytes;
1: + __u32 i_packets;
1: };
1:
1: struct rt_cache_stat {
1: - unsigned int in_slow_tot;
1: - unsigned int in_slow_mc;
1: - unsigned int in_no_route;
1: - unsigned int in_brd;
1: - unsigned int in_martian_dst;
1: - unsigned int in_martian_src;
1: - unsigned int out_slow_tot;
1: - unsigned int out_slow_mc;
1: + unsigned int in_slow_tot;
1: + unsigned int in_slow_mc;
1: + unsigned int in_no_route;
1: + unsigned int in_brd;
1: + unsigned int in_martian_dst;
1: + unsigned int in_martian_src;
1: + unsigned int out_slow_tot;
1: + unsigned int out_slow_mc;
1: };
1:
1: struct fib_alias {
1: - struct hlist_node fa_list;
1: - struct fib_info *fa_info;
1: - u8 fa_tos;
1: - u8 fa_type;
1: - u8 fa_state;
1: - u8 fa_slen;
1: - u32 tb_id;
1: - s16 fa_default;
1: - u8 offload: 1;
1: - u8 trap: 1;
1: - u8 unused: 6;
1: - struct callback_head rcu;
1: + struct hlist_node fa_list;
1: + struct fib_info *fa_info;
1: + u8 fa_tos;
1: + u8 fa_type;
1: + u8 fa_state;
1: + u8 fa_slen;
1: + u32 tb_id;
1: + s16 fa_default;
1: + u8 offload : 1;
1: + u8 trap : 1;
1: + u8 unused : 6;
1: + struct callback_head rcu;
1: };
1:
1: struct fib_prop {
1: - int error;
1: - u8 scope;
1: + int error;
1: + u8 scope;
1: };
1:
1: struct net_offload {
1: - struct offload_callbacks callbacks;
1: - unsigned int flags;
1: + struct offload_callbacks callbacks;
1: + unsigned int flags;
1: };
1:
1: struct raw_hashinfo {
1: - rwlock_t lock;
1: - struct hlist_head ht[256];
1: + rwlock_t lock;
1: + struct hlist_head ht[256];
1: };
1:
1: enum ip_defrag_users {
1: - IP_DEFRAG_LOCAL_DELIVER = 0,
1: - IP_DEFRAG_CALL_RA_CHAIN = 1,
1: - IP_DEFRAG_CONNTRACK_IN = 2,
1: - __IP_DEFRAG_CONNTRACK_IN_END = 65537,
1: - IP_DEFRAG_CONNTRACK_OUT = 65538,
1: - __IP_DEFRAG_CONNTRACK_OUT_END = 131073,
1: - IP_DEFRAG_CONNTRACK_BRIDGE_IN = 131074,
1: - __IP_DEFRAG_CONNTRACK_BRIDGE_IN = 196609,
1: - IP_DEFRAG_VS_IN = 196610,
1: - IP_DEFRAG_VS_OUT = 196611,
1: - IP_DEFRAG_VS_FWD = 196612,
1: - IP_DEFRAG_AF_PACKET = 196613,
1: - IP_DEFRAG_MACVLAN = 196614,
1: + IP_DEFRAG_LOCAL_DELIVER = 0,
1: + IP_DEFRAG_CALL_RA_CHAIN = 1,
1: + IP_DEFRAG_CONNTRACK_IN = 2,
1: + __IP_DEFRAG_CONNTRACK_IN_END = 65537,
1: + IP_DEFRAG_CONNTRACK_OUT = 65538,
1: + __IP_DEFRAG_CONNTRACK_OUT_END = 131073,
1: + IP_DEFRAG_CONNTRACK_BRIDGE_IN = 131074,
1: + __IP_DEFRAG_CONNTRACK_BRIDGE_IN = 196609,
1: + IP_DEFRAG_VS_IN = 196610,
1: + IP_DEFRAG_VS_OUT = 196611,
1: + IP_DEFRAG_VS_FWD = 196612,
1: + IP_DEFRAG_AF_PACKET = 196613,
1: + IP_DEFRAG_MACVLAN = 196614,
1: };
1:
1: enum {
1: - INET_FRAG_FIRST_IN = 1,
1: - INET_FRAG_LAST_IN = 2,
1: - INET_FRAG_COMPLETE = 4,
1: - INET_FRAG_HASH_DEAD = 8,
1: + INET_FRAG_FIRST_IN = 1,
1: + INET_FRAG_LAST_IN = 2,
1: + INET_FRAG_COMPLETE = 4,
1: + INET_FRAG_HASH_DEAD = 8,
1: };
1:
1: struct ipq {
1: - struct inet_frag_queue q;
1: - u8 ecn;
1: - u16 max_df_size;
1: - int iif;
1: - unsigned int rid;
1: - struct inet_peer *peer;
1: + struct inet_frag_queue q;
1: + u8 ecn;
1: + u16 max_df_size;
1: + int iif;
1: + unsigned int rid;
1: + struct inet_peer *peer;
1: };
1:
1: struct ip_options_data {
1: - struct ip_options_rcu opt;
1: - char data[40];
1: + struct ip_options_rcu opt;
1: + char data[40];
1: };
1:
1: struct ipcm_cookie {
1: - struct sockcm_cookie sockc;
1: - __be32 addr;
1: - int oif;
1: - struct ip_options_rcu *opt;
1: - __u8 ttl;
1: - __s16 tos;
1: - char priority;
1: - __u16 gso_size;
1: + struct sockcm_cookie sockc;
1: + __be32 addr;
1: + int oif;
1: + struct ip_options_rcu *opt;
1: + __u8 ttl;
1: + __s16 tos;
1: + char priority;
1: + __u16 gso_size;
1: };
1:
1: struct ip_fraglist_iter {
1: - struct sk_buff *frag;
1: - struct iphdr *iph;
1: - int offset;
1: - unsigned int hlen;
1: + struct sk_buff *frag;
1: + struct iphdr *iph;
1: + int offset;
1: + unsigned int hlen;
1: };
1:
1: struct ip_frag_state {
1: - bool DF;
1: - unsigned int hlen;
1: - unsigned int ll_rs;
1: - unsigned int mtu;
1: - unsigned int left;
1: - int offset;
1: - int ptr;
1: - __be16 not_last_frag;
1: + bool DF;
1: + unsigned int hlen;
1: + unsigned int ll_rs;
1: + unsigned int mtu;
1: + unsigned int left;
1: + int offset;
1: + int ptr;
1: + __be16 not_last_frag;
1: };
1:
1: struct ip_reply_arg {
1: - struct kvec iov[1];
1: - int flags;
1: - __wsum csum;
1: - int csumoffset;
1: - int bound_dev_if;
1: - u8 tos;
1: - kuid_t uid;
1: + struct kvec iov[1];
1: + int flags;
1: + __wsum csum;
1: + int csumoffset;
1: + int bound_dev_if;
1: + u8 tos;
1: + kuid_t uid;
1: };
1:
1: struct ip_mreq_source {
1: - __be32 imr_multiaddr;
1: - __be32 imr_interface;
1: - __be32 imr_sourceaddr;
1: + __be32 imr_multiaddr;
1: + __be32 imr_interface;
1: + __be32 imr_sourceaddr;
1: };
1:
1: struct ip_msfilter {
1: - __be32 imsf_multiaddr;
1: - __be32 imsf_interface;
1: - __u32 imsf_fmode;
1: - __u32 imsf_numsrc;
1: - __be32 imsf_slist[1];
1: + __be32 imsf_multiaddr;
1: + __be32 imsf_interface;
1: + __u32 imsf_fmode;
1: + __u32 imsf_numsrc;
1: + __be32 imsf_slist[1];
1: };
1:
1: struct group_req {
1: - __u32 gr_interface;
1: - struct __kernel_sockaddr_storage gr_group;
1: + __u32 gr_interface;
1: + struct __kernel_sockaddr_storage gr_group;
1: };
1:
1: struct group_source_req {
1: - __u32 gsr_interface;
1: - struct __kernel_sockaddr_storage gsr_group;
1: - struct __kernel_sockaddr_storage gsr_source;
1: + __u32 gsr_interface;
1: + struct __kernel_sockaddr_storage gsr_group;
1: + struct __kernel_sockaddr_storage gsr_source;
1: };
1:
1: struct group_filter {
1: - __u32 gf_interface;
1: - struct __kernel_sockaddr_storage gf_group;
1: - __u32 gf_fmode;
1: - __u32 gf_numsrc;
1: - struct __kernel_sockaddr_storage gf_slist[1];
1: + __u32 gf_interface;
1: + struct __kernel_sockaddr_storage gf_group;
1: + __u32 gf_fmode;
1: + __u32 gf_numsrc;
1: + struct __kernel_sockaddr_storage gf_slist[1];
1: };
1:
1: struct in_pktinfo {
1: - int ipi_ifindex;
1: - struct in_addr ipi_spec_dst;
1: - struct in_addr ipi_addr;
1: + int ipi_ifindex;
1: + struct in_addr ipi_spec_dst;
1: + struct in_addr ipi_addr;
1: };
1:
1: struct compat_group_req {
1: - __u32 gr_interface;
1: - struct __kernel_sockaddr_storage gr_group;
1: + __u32 gr_interface;
1: + struct __kernel_sockaddr_storage gr_group;
1: } __attribute__((packed));
1:
1: struct compat_group_source_req {
1: - __u32 gsr_interface;
1: - struct __kernel_sockaddr_storage gsr_group;
1: - struct __kernel_sockaddr_storage gsr_source;
1: + __u32 gsr_interface;
1: + struct __kernel_sockaddr_storage gsr_group;
1: + struct __kernel_sockaddr_storage gsr_source;
1: } __attribute__((packed));
1:
1: struct compat_group_filter {
1: - __u32 gf_interface;
1: - struct __kernel_sockaddr_storage gf_group;
1: - __u32 gf_fmode;
1: - __u32 gf_numsrc;
1: - struct __kernel_sockaddr_storage gf_slist[1];
1: + __u32 gf_interface;
1: + struct __kernel_sockaddr_storage gf_group;
1: + __u32 gf_fmode;
1: + __u32 gf_numsrc;
1: + struct __kernel_sockaddr_storage gf_slist[1];
1: } __attribute__((packed));
1:
1: enum {
1: - BPFILTER_IPT_SO_SET_REPLACE = 64,
1: - BPFILTER_IPT_SO_SET_ADD_COUNTERS = 65,
1: - BPFILTER_IPT_SET_MAX = 66,
1: + BPFILTER_IPT_SO_SET_REPLACE = 64,
1: + BPFILTER_IPT_SO_SET_ADD_COUNTERS = 65,
1: + BPFILTER_IPT_SET_MAX = 66,
1: };
1:
1: enum {
1: - BPFILTER_IPT_SO_GET_INFO = 64,
1: - BPFILTER_IPT_SO_GET_ENTRIES = 65,
1: - BPFILTER_IPT_SO_GET_REVISION_MATCH = 66,
1: - BPFILTER_IPT_SO_GET_REVISION_TARGET = 67,
1: - BPFILTER_IPT_GET_MAX = 68,
1: + BPFILTER_IPT_SO_GET_INFO = 64,
1: + BPFILTER_IPT_SO_GET_ENTRIES = 65,
1: + BPFILTER_IPT_SO_GET_REVISION_MATCH = 66,
1: + BPFILTER_IPT_SO_GET_REVISION_TARGET = 67,
1: + BPFILTER_IPT_GET_MAX = 68,
1: };
1:
1: struct tcpvegas_info {
1: - __u32 tcpv_enabled;
1: - __u32 tcpv_rttcnt;
1: - __u32 tcpv_rtt;
1: - __u32 tcpv_minrtt;
1: + __u32 tcpv_enabled;
1: + __u32 tcpv_rttcnt;
1: + __u32 tcpv_rtt;
1: + __u32 tcpv_minrtt;
1: };
1:
1: struct tcp_dctcp_info {
1: - __u16 dctcp_enabled;
1: - __u16 dctcp_ce_state;
1: - __u32 dctcp_alpha;
1: - __u32 dctcp_ab_ecn;
1: - __u32 dctcp_ab_tot;
1: + __u16 dctcp_enabled;
1: + __u16 dctcp_ce_state;
1: + __u32 dctcp_alpha;
1: + __u32 dctcp_ab_ecn;
1: + __u32 dctcp_ab_tot;
1: };
1:
1: struct tcp_bbr_info {
1: - __u32 bbr_bw_lo;
1: - __u32 bbr_bw_hi;
1: - __u32 bbr_min_rtt;
1: - __u32 bbr_pacing_gain;
1: - __u32 bbr_cwnd_gain;
1: + __u32 bbr_bw_lo;
1: + __u32 bbr_bw_hi;
1: + __u32 bbr_min_rtt;
1: + __u32 bbr_pacing_gain;
1: + __u32 bbr_cwnd_gain;
1: };
1:
1: union tcp_cc_info {
1: - struct tcpvegas_info vegas;
1: - struct tcp_dctcp_info dctcp;
1: - struct tcp_bbr_info bbr;
1: + struct tcpvegas_info vegas;
1: + struct tcp_dctcp_info dctcp;
1: + struct tcp_bbr_info bbr;
1: };
1:
1: enum {
1: - BPF_TCP_ESTABLISHED = 1,
1: - BPF_TCP_SYN_SENT = 2,
1: - BPF_TCP_SYN_RECV = 3,
1: - BPF_TCP_FIN_WAIT1 = 4,
1: - BPF_TCP_FIN_WAIT2 = 5,
1: - BPF_TCP_TIME_WAIT = 6,
1: - BPF_TCP_CLOSE = 7,
1: - BPF_TCP_CLOSE_WAIT = 8,
1: - BPF_TCP_LAST_ACK = 9,
1: - BPF_TCP_LISTEN = 10,
1: - BPF_TCP_CLOSING = 11,
1: - BPF_TCP_NEW_SYN_RECV = 12,
1: - BPF_TCP_MAX_STATES = 13,
1: + BPF_TCP_ESTABLISHED = 1,
1: + BPF_TCP_SYN_SENT = 2,
1: + BPF_TCP_SYN_RECV = 3,
1: + BPF_TCP_FIN_WAIT1 = 4,
1: + BPF_TCP_FIN_WAIT2 = 5,
1: + BPF_TCP_TIME_WAIT = 6,
1: + BPF_TCP_CLOSE = 7,
1: + BPF_TCP_CLOSE_WAIT = 8,
1: + BPF_TCP_LAST_ACK = 9,
1: + BPF_TCP_LISTEN = 10,
1: + BPF_TCP_CLOSING = 11,
1: + BPF_TCP_NEW_SYN_RECV = 12,
1: + BPF_TCP_MAX_STATES = 13,
1: };
1:
1: enum inet_csk_ack_state_t {
1: - ICSK_ACK_SCHED = 1,
1: - ICSK_ACK_TIMER = 2,
1: - ICSK_ACK_PUSHED = 4,
1: - ICSK_ACK_PUSHED2 = 8,
1: - ICSK_ACK_NOW = 16,
1: + ICSK_ACK_SCHED = 1,
1: + ICSK_ACK_TIMER = 2,
1: + ICSK_ACK_PUSHED = 4,
1: + ICSK_ACK_PUSHED2 = 8,
1: + ICSK_ACK_NOW = 16,
1: };
1:
1: enum {
1: - TCP_FLAG_CWR = 32768,
1: - TCP_FLAG_ECE = 16384,
1: - TCP_FLAG_URG = 8192,
1: - TCP_FLAG_ACK = 4096,
1: - TCP_FLAG_PSH = 2048,
1: - TCP_FLAG_RST = 1024,
1: - TCP_FLAG_SYN = 512,
1: - TCP_FLAG_FIN = 256,
1: - TCP_RESERVED_BITS = 15,
1: - TCP_DATA_OFFSET = 240,
1: + TCP_FLAG_CWR = 32768,
1: + TCP_FLAG_ECE = 16384,
1: + TCP_FLAG_URG = 8192,
1: + TCP_FLAG_ACK = 4096,
1: + TCP_FLAG_PSH = 2048,
1: + TCP_FLAG_RST = 1024,
1: + TCP_FLAG_SYN = 512,
1: + TCP_FLAG_FIN = 256,
1: + TCP_RESERVED_BITS = 15,
1: + TCP_DATA_OFFSET = 240,
1: };
1:
1: struct tcp_repair_opt {
1: - __u32 opt_code;
1: - __u32 opt_val;
1: + __u32 opt_code;
1: + __u32 opt_val;
1: };
1:
1: struct tcp_repair_window {
1: - __u32 snd_wl1;
1: - __u32 snd_wnd;
1: - __u32 max_window;
1: - __u32 rcv_wnd;
1: - __u32 rcv_wup;
1: + __u32 snd_wl1;
1: + __u32 snd_wnd;
1: + __u32 max_window;
1: + __u32 rcv_wnd;
1: + __u32 rcv_wup;
1: };
1:
1: enum {
1: - TCP_NO_QUEUE = 0,
1: - TCP_RECV_QUEUE = 1,
1: - TCP_SEND_QUEUE = 2,
1: - TCP_QUEUES_NR = 3,
1: + TCP_NO_QUEUE = 0,
1: + TCP_RECV_QUEUE = 1,
1: + TCP_SEND_QUEUE = 2,
1: + TCP_QUEUES_NR = 3,
1: };
1:
1: struct tcp_info {
1: - __u8 tcpi_state;
1: - __u8 tcpi_ca_state;
1: - __u8 tcpi_retransmits;
1: - __u8 tcpi_probes;
1: - __u8 tcpi_backoff;
1: - __u8 tcpi_options;
1: - __u8 tcpi_snd_wscale: 4;
1: - __u8 tcpi_rcv_wscale: 4;
1: - __u8 tcpi_delivery_rate_app_limited: 1;
1: - __u8 tcpi_fastopen_client_fail: 2;
1: - __u32 tcpi_rto;
1: - __u32 tcpi_ato;
1: - __u32 tcpi_snd_mss;
1: - __u32 tcpi_rcv_mss;
1: - __u32 tcpi_unacked;
1: - __u32 tcpi_sacked;
1: - __u32 tcpi_lost;
1: - __u32 tcpi_retrans;
1: - __u32 tcpi_fackets;
1: - __u32 tcpi_last_data_sent;
1: - __u32 tcpi_last_ack_sent;
1: - __u32 tcpi_last_data_recv;
1: - __u32 tcpi_last_ack_recv;
1: - __u32 tcpi_pmtu;
1: - __u32 tcpi_rcv_ssthresh;
1: - __u32 tcpi_rtt;
1: - __u32 tcpi_rttvar;
1: - __u32 tcpi_snd_ssthresh;
1: - __u32 tcpi_snd_cwnd;
1: - __u32 tcpi_advmss;
1: - __u32 tcpi_reordering;
1: - __u32 tcpi_rcv_rtt;
1: - __u32 tcpi_rcv_space;
1: - __u32 tcpi_total_retrans;
1: - __u64 tcpi_pacing_rate;
1: - __u64 tcpi_max_pacing_rate;
1: - __u64 tcpi_bytes_acked;
1: - __u64 tcpi_bytes_received;
1: - __u32 tcpi_segs_out;
1: - __u32 tcpi_segs_in;
1: - __u32 tcpi_notsent_bytes;
1: - __u32 tcpi_min_rtt;
1: - __u32 tcpi_data_segs_in;
1: - __u32 tcpi_data_segs_out;
1: - __u64 tcpi_delivery_rate;
1: - __u64 tcpi_busy_time;
1: - __u64 tcpi_rwnd_limited;
1: - __u64 tcpi_sndbuf_limited;
1: - __u32 tcpi_delivered;
1: - __u32 tcpi_delivered_ce;
1: - __u64 tcpi_bytes_sent;
1: - __u64 tcpi_bytes_retrans;
1: - __u32 tcpi_dsack_dups;
1: - __u32 tcpi_reord_seen;
1: - __u32 tcpi_rcv_ooopack;
1: - __u32 tcpi_snd_wnd;
1: -};
1: -
1: -enum {
1: - TCP_NLA_PAD = 0,
1: - TCP_NLA_BUSY = 1,
1: - TCP_NLA_RWND_LIMITED = 2,
1: - TCP_NLA_SNDBUF_LIMITED = 3,
1: - TCP_NLA_DATA_SEGS_OUT = 4,
1: - TCP_NLA_TOTAL_RETRANS = 5,
1: - TCP_NLA_PACING_RATE = 6,
1: - TCP_NLA_DELIVERY_RATE = 7,
1: - TCP_NLA_SND_CWND = 8,
1: - TCP_NLA_REORDERING = 9,
1: - TCP_NLA_MIN_RTT = 10,
1: - TCP_NLA_RECUR_RETRANS = 11,
1: - TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
1: - TCP_NLA_SNDQ_SIZE = 13,
1: - TCP_NLA_CA_STATE = 14,
1: - TCP_NLA_SND_SSTHRESH = 15,
1: - TCP_NLA_DELIVERED = 16,
1: - TCP_NLA_DELIVERED_CE = 17,
1: - TCP_NLA_BYTES_SENT = 18,
1: - TCP_NLA_BYTES_RETRANS = 19,
1: - TCP_NLA_DSACK_DUPS = 20,
1: - TCP_NLA_REORD_SEEN = 21,
1: - TCP_NLA_SRTT = 22,
1: - TCP_NLA_TIMEOUT_REHASH = 23,
1: - TCP_NLA_BYTES_NOTSENT = 24,
1: - TCP_NLA_EDT = 25,
1: + __u8 tcpi_state;
1: + __u8 tcpi_ca_state;
1: + __u8 tcpi_retransmits;
1: + __u8 tcpi_probes;
1: + __u8 tcpi_backoff;
1: + __u8 tcpi_options;
1: + __u8 tcpi_snd_wscale : 4;
1: + __u8 tcpi_rcv_wscale : 4;
1: + __u8 tcpi_delivery_rate_app_limited : 1;
1: + __u8 tcpi_fastopen_client_fail : 2;
1: + __u32 tcpi_rto;
1: + __u32 tcpi_ato;
1: + __u32 tcpi_snd_mss;
1: + __u32 tcpi_rcv_mss;
1: + __u32 tcpi_unacked;
1: + __u32 tcpi_sacked;
1: + __u32 tcpi_lost;
1: + __u32 tcpi_retrans;
1: + __u32 tcpi_fackets;
1: + __u32 tcpi_last_data_sent;
1: + __u32 tcpi_last_ack_sent;
1: + __u32 tcpi_last_data_recv;
1: + __u32 tcpi_last_ack_recv;
1: + __u32 tcpi_pmtu;
1: + __u32 tcpi_rcv_ssthresh;
1: + __u32 tcpi_rtt;
1: + __u32 tcpi_rttvar;
1: + __u32 tcpi_snd_ssthresh;
1: + __u32 tcpi_snd_cwnd;
1: + __u32 tcpi_advmss;
1: + __u32 tcpi_reordering;
1: + __u32 tcpi_rcv_rtt;
1: + __u32 tcpi_rcv_space;
1: + __u32 tcpi_total_retrans;
1: + __u64 tcpi_pacing_rate;
1: + __u64 tcpi_max_pacing_rate;
1: + __u64 tcpi_bytes_acked;
1: + __u64 tcpi_bytes_received;
1: + __u32 tcpi_segs_out;
1: + __u32 tcpi_segs_in;
1: + __u32 tcpi_notsent_bytes;
1: + __u32 tcpi_min_rtt;
1: + __u32 tcpi_data_segs_in;
1: + __u32 tcpi_data_segs_out;
1: + __u64 tcpi_delivery_rate;
1: + __u64 tcpi_busy_time;
1: + __u64 tcpi_rwnd_limited;
1: + __u64 tcpi_sndbuf_limited;
1: + __u32 tcpi_delivered;
1: + __u32 tcpi_delivered_ce;
1: + __u64 tcpi_bytes_sent;
1: + __u64 tcpi_bytes_retrans;
1: + __u32 tcpi_dsack_dups;
1: + __u32 tcpi_reord_seen;
1: + __u32 tcpi_rcv_ooopack;
1: + __u32 tcpi_snd_wnd;
1: +};
1: +
1: +enum {
1: + TCP_NLA_PAD = 0,
1: + TCP_NLA_BUSY = 1,
1: + TCP_NLA_RWND_LIMITED = 2,
1: + TCP_NLA_SNDBUF_LIMITED = 3,
1: + TCP_NLA_DATA_SEGS_OUT = 4,
1: + TCP_NLA_TOTAL_RETRANS = 5,
1: + TCP_NLA_PACING_RATE = 6,
1: + TCP_NLA_DELIVERY_RATE = 7,
1: + TCP_NLA_SND_CWND = 8,
1: + TCP_NLA_REORDERING = 9,
1: + TCP_NLA_MIN_RTT = 10,
1: + TCP_NLA_RECUR_RETRANS = 11,
1: + TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
1: + TCP_NLA_SNDQ_SIZE = 13,
1: + TCP_NLA_CA_STATE = 14,
1: + TCP_NLA_SND_SSTHRESH = 15,
1: + TCP_NLA_DELIVERED = 16,
1: + TCP_NLA_DELIVERED_CE = 17,
1: + TCP_NLA_BYTES_SENT = 18,
1: + TCP_NLA_BYTES_RETRANS = 19,
1: + TCP_NLA_DSACK_DUPS = 20,
1: + TCP_NLA_REORD_SEEN = 21,
1: + TCP_NLA_SRTT = 22,
1: + TCP_NLA_TIMEOUT_REHASH = 23,
1: + TCP_NLA_BYTES_NOTSENT = 24,
1: + TCP_NLA_EDT = 25,
1: };
1:
1: struct tcp_zerocopy_receive {
1: - __u64 address;
1: - __u32 length;
1: - __u32 recv_skip_hint;
1: - __u32 inq;
1: - __s32 err;
1: + __u64 address;
1: + __u32 length;
1: + __u32 recv_skip_hint;
1: + __u32 inq;
1: + __s32 err;
1: };
1:
1: struct tcp_md5sig_pool {
1: - struct ahash_request *md5_req;
1: - void *scratch;
1: + struct ahash_request *md5_req;
1: + void *scratch;
1: };
1:
1: enum tcp_chrono {
1: - TCP_CHRONO_UNSPEC = 0,
1: - TCP_CHRONO_BUSY = 1,
1: - TCP_CHRONO_RWND_LIMITED = 2,
1: - TCP_CHRONO_SNDBUF_LIMITED = 3,
1: - __TCP_CHRONO_MAX = 4,
1: + TCP_CHRONO_UNSPEC = 0,
1: + TCP_CHRONO_BUSY = 1,
1: + TCP_CHRONO_RWND_LIMITED = 2,
1: + TCP_CHRONO_SNDBUF_LIMITED = 3,
1: + __TCP_CHRONO_MAX = 4,
1: };
1:
1: struct tcp_splice_state {
1: - struct pipe_inode_info *pipe;
1: - size_t len;
1: - unsigned int flags;
1: + struct pipe_inode_info *pipe;
1: + size_t len;
1: + unsigned int flags;
1: };
1:
1: enum tcp_fastopen_client_fail {
1: - TFO_STATUS_UNSPEC = 0,
1: - TFO_COOKIE_UNAVAILABLE = 1,
1: - TFO_DATA_NOT_ACKED = 2,
1: - TFO_SYN_RETRANSMITTED = 3,
1: + TFO_STATUS_UNSPEC = 0,
1: + TFO_COOKIE_UNAVAILABLE = 1,
1: + TFO_DATA_NOT_ACKED = 2,
1: + TFO_SYN_RETRANSMITTED = 3,
1: };
1:
1: struct tcp_sack_block_wire {
1: - __be32 start_seq;
1: - __be32 end_seq;
1: + __be32 start_seq;
1: + __be32 end_seq;
1: };
1:
1: struct static_key_false_deferred {
1: - struct static_key_false key;
1: - long unsigned int timeout;
1: - struct delayed_work work;
1: + struct static_key_false key;
1: + long unsigned int timeout;
1: + struct delayed_work work;
1: };
1:
1: struct mptcp_ext {
1: - union {
1: - u64 data_ack;
1: - u32 data_ack32;
1: - };
1: - u64 data_seq;
1: - u32 subflow_seq;
1: - u16 data_len;
1: - u8 use_map: 1;
1: - u8 dsn64: 1;
1: - u8 data_fin: 1;
1: - u8 use_ack: 1;
1: - u8 ack64: 1;
1: - u8 mpc_map: 1;
1: - u8 __unused: 2;
1: + union {
1: + u64 data_ack;
1: + u32 data_ack32;
1: + };
1: + u64 data_seq;
1: + u32 subflow_seq;
1: + u16 data_len;
1: + u8 use_map : 1;
1: + u8 dsn64 : 1;
1: + u8 data_fin : 1;
1: + u8 use_ack : 1;
1: + u8 ack64 : 1;
1: + u8 mpc_map : 1;
1: + u8 __unused : 2;
1: };
1:
1: enum tcp_queue {
1: - TCP_FRAG_IN_WRITE_QUEUE = 0,
1: - TCP_FRAG_IN_RTX_QUEUE = 1,
1: + TCP_FRAG_IN_WRITE_QUEUE = 0,
1: + TCP_FRAG_IN_RTX_QUEUE = 1,
1: };
1:
1: enum tcp_ca_ack_event_flags {
1: - CA_ACK_SLOWPATH = 1,
1: - CA_ACK_WIN_UPDATE = 2,
1: - CA_ACK_ECE = 4,
1: + CA_ACK_SLOWPATH = 1,
1: + CA_ACK_WIN_UPDATE = 2,
1: + CA_ACK_ECE = 4,
1: };
1:
1: struct tcp_sacktag_state {
1: - u64 first_sackt;
1: - u64 last_sackt;
1: - u32 reord;
1: - u32 sack_delivered;
1: - int flag;
1: - unsigned int mss_now;
1: - struct rate_sample *rate;
1: + u64 first_sackt;
1: + u64 last_sackt;
1: + u32 reord;
1: + u32 sack_delivered;
1: + int flag;
1: + unsigned int mss_now;
1: + struct rate_sample *rate;
1: };
1:
1: enum pkt_hash_types {
1: - PKT_HASH_TYPE_NONE = 0,
1: - PKT_HASH_TYPE_L2 = 1,
1: - PKT_HASH_TYPE_L3 = 2,
1: - PKT_HASH_TYPE_L4 = 3,
1: + PKT_HASH_TYPE_NONE = 0,
1: + PKT_HASH_TYPE_L2 = 1,
1: + PKT_HASH_TYPE_L3 = 2,
1: + PKT_HASH_TYPE_L4 = 3,
1: };
1:
1: enum {
1: - BPF_WRITE_HDR_TCP_CURRENT_MSS = 1,
1: - BPF_WRITE_HDR_TCP_SYNACK_COOKIE = 2,
1: + BPF_WRITE_HDR_TCP_CURRENT_MSS = 1,
1: + BPF_WRITE_HDR_TCP_SYNACK_COOKIE = 2,
1: };
1:
1: enum tsq_flags {
1: - TSQF_THROTTLED = 1,
1: - TSQF_QUEUED = 2,
1: - TCPF_TSQ_DEFERRED = 4,
1: - TCPF_WRITE_TIMER_DEFERRED = 8,
1: - TCPF_DELACK_TIMER_DEFERRED = 16,
1: - TCPF_MTU_REDUCED_DEFERRED = 32,
1: + TSQF_THROTTLED = 1,
1: + TSQF_QUEUED = 2,
1: + TCPF_TSQ_DEFERRED = 4,
1: + TCPF_WRITE_TIMER_DEFERRED = 8,
1: + TCPF_DELACK_TIMER_DEFERRED = 16,
1: + TCPF_MTU_REDUCED_DEFERRED = 32,
1: };
1:
1: struct mptcp_out_options {
1: - u16 suboptions;
1: - u64 sndr_key;
1: - u64 rcvr_key;
1: - union {
1: - struct in_addr addr;
1: - struct in6_addr addr6;
1: - };
1: - u8 addr_id;
1: - u64 ahmac;
1: - u8 rm_id;
1: - u8 join_id;
1: - u8 backup;
1: - u32 nonce;
1: - u64 thmac;
1: - u32 token;
1: - u8 hmac[20];
1: - struct mptcp_ext ext_copy;
1: + u16 suboptions;
1: + u64 sndr_key;
1: + u64 rcvr_key;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: + u8 addr_id;
1: + u64 ahmac;
1: + u8 rm_id;
1: + u8 join_id;
1: + u8 backup;
1: + u32 nonce;
1: + u64 thmac;
1: + u32 token;
1: + u8 hmac[20];
1: + struct mptcp_ext ext_copy;
1: };
1:
1: struct tcp_out_options {
1: - u16 options;
1: - u16 mss;
1: - u8 ws;
1: - u8 num_sack_blocks;
1: - u8 hash_size;
1: - u8 bpf_opt_len;
1: - __u8 *hash_location;
1: - __u32 tsval;
1: - __u32 tsecr;
1: - struct tcp_fastopen_cookie *fastopen_cookie;
1: - struct mptcp_out_options mptcp;
1: + u16 options;
1: + u16 mss;
1: + u8 ws;
1: + u8 num_sack_blocks;
1: + u8 hash_size;
1: + u8 bpf_opt_len;
1: + __u8 *hash_location;
1: + __u32 tsval;
1: + __u32 tsecr;
1: + struct tcp_fastopen_cookie *fastopen_cookie;
1: + struct mptcp_out_options mptcp;
1: };
1:
1: struct tsq_tasklet {
1: - struct tasklet_struct tasklet;
1: - struct list_head head;
1: + struct tasklet_struct tasklet;
1: + struct list_head head;
1: };
1:
1: struct tcp_md5sig {
1: - struct __kernel_sockaddr_storage tcpm_addr;
1: - __u8 tcpm_flags;
1: - __u8 tcpm_prefixlen;
1: - __u16 tcpm_keylen;
1: - int tcpm_ifindex;
1: - __u8 tcpm_key[80];
1: + struct __kernel_sockaddr_storage tcpm_addr;
1: + __u8 tcpm_flags;
1: + __u8 tcpm_prefixlen;
1: + __u16 tcpm_keylen;
1: + int tcpm_ifindex;
1: + __u8 tcpm_key[80];
1: };
1:
1: struct icmp_err {
1: - int errno;
1: - unsigned int fatal: 1;
1: + int errno;
1: + unsigned int fatal : 1;
1: };
1:
1: enum tcp_tw_status {
1: - TCP_TW_SUCCESS = 0,
1: - TCP_TW_RST = 1,
1: - TCP_TW_ACK = 2,
1: - TCP_TW_SYN = 3,
1: + TCP_TW_SUCCESS = 0,
1: + TCP_TW_RST = 1,
1: + TCP_TW_ACK = 2,
1: + TCP_TW_SYN = 3,
1: };
1:
1: struct tcp4_pseudohdr {
1: - __be32 saddr;
1: - __be32 daddr;
1: - __u8 pad;
1: - __u8 protocol;
1: - __be16 len;
1: + __be32 saddr;
1: + __be32 daddr;
1: + __u8 pad;
1: + __u8 protocol;
1: + __be16 len;
1: };
1:
1: enum tcp_seq_states {
1: - TCP_SEQ_STATE_LISTENING = 0,
1: - TCP_SEQ_STATE_ESTABLISHED = 1,
1: + TCP_SEQ_STATE_LISTENING = 0,
1: + TCP_SEQ_STATE_ESTABLISHED = 1,
1: };
1:
1: struct tcp_seq_afinfo {
1: - sa_family_t family;
1: + sa_family_t family;
1: };
1:
1: struct tcp_iter_state {
1: - struct seq_net_private p;
1: - enum tcp_seq_states state;
1: - struct sock *syn_wait_sk;
1: - struct tcp_seq_afinfo *bpf_seq_afinfo;
1: - int bucket;
1: - int offset;
1: - int sbucket;
1: - int num;
1: - loff_t last_pos;
1: + struct seq_net_private p;
1: + enum tcp_seq_states state;
1: + struct sock *syn_wait_sk;
1: + struct tcp_seq_afinfo *bpf_seq_afinfo;
1: + int bucket;
1: + int offset;
1: + int sbucket;
1: + int num;
1: + loff_t last_pos;
1: };
1:
1: struct bpf_iter__tcp {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct sock_common *sk_common;
1: - };
1: - uid_t uid;
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct sock_common *sk_common;
1: + };
1: + uid_t uid;
1: };
1:
1: enum tcp_metric_index {
1: - TCP_METRIC_RTT = 0,
1: - TCP_METRIC_RTTVAR = 1,
1: - TCP_METRIC_SSTHRESH = 2,
1: - TCP_METRIC_CWND = 3,
1: - TCP_METRIC_REORDERING = 4,
1: - TCP_METRIC_RTT_US = 5,
1: - TCP_METRIC_RTTVAR_US = 6,
1: - __TCP_METRIC_MAX = 7,
1: + TCP_METRIC_RTT = 0,
1: + TCP_METRIC_RTTVAR = 1,
1: + TCP_METRIC_SSTHRESH = 2,
1: + TCP_METRIC_CWND = 3,
1: + TCP_METRIC_REORDERING = 4,
1: + TCP_METRIC_RTT_US = 5,
1: + TCP_METRIC_RTTVAR_US = 6,
1: + __TCP_METRIC_MAX = 7,
1: };
1:
1: enum {
1: - TCP_METRICS_ATTR_UNSPEC = 0,
1: - TCP_METRICS_ATTR_ADDR_IPV4 = 1,
1: - TCP_METRICS_ATTR_ADDR_IPV6 = 2,
1: - TCP_METRICS_ATTR_AGE = 3,
1: - TCP_METRICS_ATTR_TW_TSVAL = 4,
1: - TCP_METRICS_ATTR_TW_TS_STAMP = 5,
1: - TCP_METRICS_ATTR_VALS = 6,
1: - TCP_METRICS_ATTR_FOPEN_MSS = 7,
1: - TCP_METRICS_ATTR_FOPEN_SYN_DROPS = 8,
1: - TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS = 9,
1: - TCP_METRICS_ATTR_FOPEN_COOKIE = 10,
1: - TCP_METRICS_ATTR_SADDR_IPV4 = 11,
1: - TCP_METRICS_ATTR_SADDR_IPV6 = 12,
1: - TCP_METRICS_ATTR_PAD = 13,
1: - __TCP_METRICS_ATTR_MAX = 14,
1: + TCP_METRICS_ATTR_UNSPEC = 0,
1: + TCP_METRICS_ATTR_ADDR_IPV4 = 1,
1: + TCP_METRICS_ATTR_ADDR_IPV6 = 2,
1: + TCP_METRICS_ATTR_AGE = 3,
1: + TCP_METRICS_ATTR_TW_TSVAL = 4,
1: + TCP_METRICS_ATTR_TW_TS_STAMP = 5,
1: + TCP_METRICS_ATTR_VALS = 6,
1: + TCP_METRICS_ATTR_FOPEN_MSS = 7,
1: + TCP_METRICS_ATTR_FOPEN_SYN_DROPS = 8,
1: + TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS = 9,
1: + TCP_METRICS_ATTR_FOPEN_COOKIE = 10,
1: + TCP_METRICS_ATTR_SADDR_IPV4 = 11,
1: + TCP_METRICS_ATTR_SADDR_IPV6 = 12,
1: + TCP_METRICS_ATTR_PAD = 13,
1: + __TCP_METRICS_ATTR_MAX = 14,
1: };
1:
1: enum {
1: - TCP_METRICS_CMD_UNSPEC = 0,
1: - TCP_METRICS_CMD_GET = 1,
1: - TCP_METRICS_CMD_DEL = 2,
1: - __TCP_METRICS_CMD_MAX = 3,
1: + TCP_METRICS_CMD_UNSPEC = 0,
1: + TCP_METRICS_CMD_GET = 1,
1: + TCP_METRICS_CMD_DEL = 2,
1: + __TCP_METRICS_CMD_MAX = 3,
1: };
1:
1: struct tcp_fastopen_metrics {
1: - u16 mss;
1: - u16 syn_loss: 10;
1: - u16 try_exp: 2;
1: - long unsigned int last_syn_loss;
1: - struct tcp_fastopen_cookie cookie;
1: + u16 mss;
1: + u16 syn_loss : 10;
1: + u16 try_exp : 2;
1: + long unsigned int last_syn_loss;
1: + struct tcp_fastopen_cookie cookie;
1: };
1:
1: struct tcp_metrics_block {
1: - struct tcp_metrics_block *tcpm_next;
1: - possible_net_t tcpm_net;
1: - struct inetpeer_addr tcpm_saddr;
1: - struct inetpeer_addr tcpm_daddr;
1: - long unsigned int tcpm_stamp;
1: - u32 tcpm_lock;
1: - u32 tcpm_vals[5];
1: - struct tcp_fastopen_metrics tcpm_fastopen;
1: - struct callback_head callback_head;
1: + struct tcp_metrics_block *tcpm_next;
1: + possible_net_t tcpm_net;
1: + struct inetpeer_addr tcpm_saddr;
1: + struct inetpeer_addr tcpm_daddr;
1: + long unsigned int tcpm_stamp;
1: + u32 tcpm_lock;
1: + u32 tcpm_vals[5];
1: + struct tcp_fastopen_metrics tcpm_fastopen;
1: + struct callback_head callback_head;
1: };
1:
1: struct tcpm_hash_bucket {
1: - struct tcp_metrics_block *chain;
1: + struct tcp_metrics_block *chain;
1: };
1:
1: struct icmp_filter {
1: - __u32 data;
1: + __u32 data;
1: };
1:
1: struct raw_iter_state {
1: - struct seq_net_private p;
1: - int bucket;
1: + struct seq_net_private p;
1: + int bucket;
1: };
1:
1: struct raw_sock {
1: - struct inet_sock inet;
1: - struct icmp_filter filter;
1: - u32 ipmr_table;
1: + struct inet_sock inet;
1: + struct icmp_filter filter;
1: + u32 ipmr_table;
1: };
1:
1: struct raw_frag_vec {
1: - struct msghdr *msg;
1: - union {
1: - struct icmphdr icmph;
1: - char c[1];
1: - } hdr;
1: - int hlen;
1: + struct msghdr *msg;
1: + union {
1: + struct icmphdr icmph;
1: + char c[1];
1: + } hdr;
1: + int hlen;
1: };
1:
1: struct ip_tunnel_encap {
1: - u16 type;
1: - u16 flags;
1: - __be16 sport;
1: - __be16 dport;
1: + u16 type;
1: + u16 flags;
1: + __be16 sport;
1: + __be16 dport;
1: };
1:
1: struct ip_tunnel_encap_ops {
1: - size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: - int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *, struct flowi4 *);
1: - int (*err_handler)(struct sk_buff *, u32);
1: + size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: + int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *,
1: + struct flowi4 *);
1: + int (*err_handler)(struct sk_buff *, u32);
1: };
1:
1: struct udp_skb_cb {
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - } header;
1: - __u16 cscov;
1: - __u8 partial_cov;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + __u16 cscov;
1: + __u8 partial_cov;
1: };
1:
1: struct udp_dev_scratch {
1: - u32 _tsize_state;
1: - u16 len;
1: - bool is_linear;
1: - bool csum_unnecessary;
1: + u32 _tsize_state;
1: + u16 len;
1: + bool is_linear;
1: + bool csum_unnecessary;
1: };
1:
1: struct udp_seq_afinfo {
1: - sa_family_t family;
1: - struct udp_table *udp_table;
1: + sa_family_t family;
1: + struct udp_table *udp_table;
1: };
1:
1: struct udp_iter_state {
1: - struct seq_net_private p;
1: - int bucket;
1: - struct udp_seq_afinfo *bpf_seq_afinfo;
1: + struct seq_net_private p;
1: + int bucket;
1: + struct udp_seq_afinfo *bpf_seq_afinfo;
1: };
1:
1: struct bpf_iter__udp {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct udp_sock *udp_sk;
1: - };
1: - uid_t uid;
1: - int: 32;
1: - int bucket;
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct udp_sock *udp_sk;
1: + };
1: + uid_t uid;
1: + int : 32;
1: + int bucket;
1: };
1:
1: struct inet_protosw {
1: - struct list_head list;
1: - short unsigned int type;
1: - short unsigned int protocol;
1: - struct proto *prot;
1: - const struct proto_ops *ops;
1: - unsigned char flags;
1: + struct list_head list;
1: + short unsigned int type;
1: + short unsigned int protocol;
1: + struct proto *prot;
1: + const struct proto_ops *ops;
1: + unsigned char flags;
1: };
1:
1: -typedef struct sk_buff * (*gro_receive_sk_t)(struct sock *, struct list_head *, struct sk_buff *);
1: +typedef struct sk_buff *(*gro_receive_sk_t)(struct sock *, struct list_head *,
1: + struct sk_buff *);
1:
1: -typedef struct sock * (*udp_lookup_t)(struct sk_buff *, __be16, __be16);
1: +typedef struct sock *(*udp_lookup_t)(struct sk_buff *, __be16, __be16);
1:
1: struct arpreq {
1: - struct sockaddr arp_pa;
1: - struct sockaddr arp_ha;
1: - int arp_flags;
1: - struct sockaddr arp_netmask;
1: - char arp_dev[16];
1: + struct sockaddr arp_pa;
1: + struct sockaddr arp_ha;
1: + int arp_flags;
1: + struct sockaddr arp_netmask;
1: + char arp_dev[16];
1: };
1:
1: typedef struct {
1: - char ax25_call[7];
1: + char ax25_call[7];
1: } ax25_address;
1:
1: enum {
1: - AX25_VALUES_IPDEFMODE = 0,
1: - AX25_VALUES_AXDEFMODE = 1,
1: - AX25_VALUES_BACKOFF = 2,
1: - AX25_VALUES_CONMODE = 3,
1: - AX25_VALUES_WINDOW = 4,
1: - AX25_VALUES_EWINDOW = 5,
1: - AX25_VALUES_T1 = 6,
1: - AX25_VALUES_T2 = 7,
1: - AX25_VALUES_T3 = 8,
1: - AX25_VALUES_IDLE = 9,
1: - AX25_VALUES_N2 = 10,
1: - AX25_VALUES_PACLEN = 11,
1: - AX25_VALUES_PROTOCOL = 12,
1: - AX25_VALUES_DS_TIMEOUT = 13,
1: - AX25_MAX_VALUES = 14,
1: + AX25_VALUES_IPDEFMODE = 0,
1: + AX25_VALUES_AXDEFMODE = 1,
1: + AX25_VALUES_BACKOFF = 2,
1: + AX25_VALUES_CONMODE = 3,
1: + AX25_VALUES_WINDOW = 4,
1: + AX25_VALUES_EWINDOW = 5,
1: + AX25_VALUES_T1 = 6,
1: + AX25_VALUES_T2 = 7,
1: + AX25_VALUES_T3 = 8,
1: + AX25_VALUES_IDLE = 9,
1: + AX25_VALUES_N2 = 10,
1: + AX25_VALUES_PACLEN = 11,
1: + AX25_VALUES_PROTOCOL = 12,
1: + AX25_VALUES_DS_TIMEOUT = 13,
1: + AX25_MAX_VALUES = 14,
1: };
1:
1: enum ip_conntrack_status {
1: - IPS_EXPECTED_BIT = 0,
1: - IPS_EXPECTED = 1,
1: - IPS_SEEN_REPLY_BIT = 1,
1: - IPS_SEEN_REPLY = 2,
1: - IPS_ASSURED_BIT = 2,
1: - IPS_ASSURED = 4,
1: - IPS_CONFIRMED_BIT = 3,
1: - IPS_CONFIRMED = 8,
1: - IPS_SRC_NAT_BIT = 4,
1: - IPS_SRC_NAT = 16,
1: - IPS_DST_NAT_BIT = 5,
1: - IPS_DST_NAT = 32,
1: - IPS_NAT_MASK = 48,
1: - IPS_SEQ_ADJUST_BIT = 6,
1: - IPS_SEQ_ADJUST = 64,
1: - IPS_SRC_NAT_DONE_BIT = 7,
1: - IPS_SRC_NAT_DONE = 128,
1: - IPS_DST_NAT_DONE_BIT = 8,
1: - IPS_DST_NAT_DONE = 256,
1: - IPS_NAT_DONE_MASK = 384,
1: - IPS_DYING_BIT = 9,
1: - IPS_DYING = 512,
1: - IPS_FIXED_TIMEOUT_BIT = 10,
1: - IPS_FIXED_TIMEOUT = 1024,
1: - IPS_TEMPLATE_BIT = 11,
1: - IPS_TEMPLATE = 2048,
1: - IPS_UNTRACKED_BIT = 12,
1: - IPS_UNTRACKED = 4096,
1: - IPS_NAT_CLASH_BIT = 12,
1: - IPS_NAT_CLASH = 4096,
1: - IPS_HELPER_BIT = 13,
1: - IPS_HELPER = 8192,
1: - IPS_OFFLOAD_BIT = 14,
1: - IPS_OFFLOAD = 16384,
1: - IPS_HW_OFFLOAD_BIT = 15,
1: - IPS_HW_OFFLOAD = 32768,
1: - IPS_UNCHANGEABLE_MASK = 56313,
1: - __IPS_MAX_BIT = 16,
1: -};
1: -
1: -enum {
1: - XFRM_LOOKUP_ICMP = 1,
1: - XFRM_LOOKUP_QUEUE = 2,
1: - XFRM_LOOKUP_KEEP_DST_REF = 4,
1: + IPS_EXPECTED_BIT = 0,
1: + IPS_EXPECTED = 1,
1: + IPS_SEEN_REPLY_BIT = 1,
1: + IPS_SEEN_REPLY = 2,
1: + IPS_ASSURED_BIT = 2,
1: + IPS_ASSURED = 4,
1: + IPS_CONFIRMED_BIT = 3,
1: + IPS_CONFIRMED = 8,
1: + IPS_SRC_NAT_BIT = 4,
1: + IPS_SRC_NAT = 16,
1: + IPS_DST_NAT_BIT = 5,
1: + IPS_DST_NAT = 32,
1: + IPS_NAT_MASK = 48,
1: + IPS_SEQ_ADJUST_BIT = 6,
1: + IPS_SEQ_ADJUST = 64,
1: + IPS_SRC_NAT_DONE_BIT = 7,
1: + IPS_SRC_NAT_DONE = 128,
1: + IPS_DST_NAT_DONE_BIT = 8,
1: + IPS_DST_NAT_DONE = 256,
1: + IPS_NAT_DONE_MASK = 384,
1: + IPS_DYING_BIT = 9,
1: + IPS_DYING = 512,
1: + IPS_FIXED_TIMEOUT_BIT = 10,
1: + IPS_FIXED_TIMEOUT = 1024,
1: + IPS_TEMPLATE_BIT = 11,
1: + IPS_TEMPLATE = 2048,
1: + IPS_UNTRACKED_BIT = 12,
1: + IPS_UNTRACKED = 4096,
1: + IPS_NAT_CLASH_BIT = 12,
1: + IPS_NAT_CLASH = 4096,
1: + IPS_HELPER_BIT = 13,
1: + IPS_HELPER = 8192,
1: + IPS_OFFLOAD_BIT = 14,
1: + IPS_OFFLOAD = 16384,
1: + IPS_HW_OFFLOAD_BIT = 15,
1: + IPS_HW_OFFLOAD = 32768,
1: + IPS_UNCHANGEABLE_MASK = 56313,
1: + __IPS_MAX_BIT = 16,
1: +};
1: +
1: +enum {
1: + XFRM_LOOKUP_ICMP = 1,
1: + XFRM_LOOKUP_QUEUE = 2,
1: + XFRM_LOOKUP_KEEP_DST_REF = 4,
1: };
1:
1: struct icmp_ext_hdr {
1: - __u8 reserved1: 4;
1: - __u8 version: 4;
1: - __u8 reserved2;
1: - __sum16 checksum;
1: + __u8 reserved1 : 4;
1: + __u8 version : 4;
1: + __u8 reserved2;
1: + __sum16 checksum;
1: };
1:
1: struct icmp_extobj_hdr {
1: - __be16 length;
1: - __u8 class_num;
1: - __u8 class_type;
1: + __be16 length;
1: + __u8 class_num;
1: + __u8 class_type;
1: };
1:
1: struct icmp_bxm {
1: - struct sk_buff *skb;
1: - int offset;
1: - int data_len;
1: - struct {
1: - struct icmphdr icmph;
1: - __be32 times[3];
1: - } data;
1: - int head_len;
1: - struct ip_options_data replyopts;
1: + struct sk_buff *skb;
1: + int offset;
1: + int data_len;
1: + struct {
1: + struct icmphdr icmph;
1: + __be32 times[3];
1: + } data;
1: + int head_len;
1: + struct ip_options_data replyopts;
1: };
1:
1: struct icmp_control {
1: - bool (*handler)(struct sk_buff *);
1: - short int error;
1: + bool (*handler)(struct sk_buff *);
1: + short int error;
1: };
1:
1: struct ifaddrmsg {
1: - __u8 ifa_family;
1: - __u8 ifa_prefixlen;
1: - __u8 ifa_flags;
1: - __u8 ifa_scope;
1: - __u32 ifa_index;
1: + __u8 ifa_family;
1: + __u8 ifa_prefixlen;
1: + __u8 ifa_flags;
1: + __u8 ifa_scope;
1: + __u32 ifa_index;
1: };
1:
1: enum {
1: - IFA_UNSPEC = 0,
1: - IFA_ADDRESS = 1,
1: - IFA_LOCAL = 2,
1: - IFA_LABEL = 3,
1: - IFA_BROADCAST = 4,
1: - IFA_ANYCAST = 5,
1: - IFA_CACHEINFO = 6,
1: - IFA_MULTICAST = 7,
1: - IFA_FLAGS = 8,
1: - IFA_RT_PRIORITY = 9,
1: - IFA_TARGET_NETNSID = 10,
1: - __IFA_MAX = 11,
1: + IFA_UNSPEC = 0,
1: + IFA_ADDRESS = 1,
1: + IFA_LOCAL = 2,
1: + IFA_LABEL = 3,
1: + IFA_BROADCAST = 4,
1: + IFA_ANYCAST = 5,
1: + IFA_CACHEINFO = 6,
1: + IFA_MULTICAST = 7,
1: + IFA_FLAGS = 8,
1: + IFA_RT_PRIORITY = 9,
1: + IFA_TARGET_NETNSID = 10,
1: + __IFA_MAX = 11,
1: };
1:
1: struct ifa_cacheinfo {
1: - __u32 ifa_prefered;
1: - __u32 ifa_valid;
1: - __u32 cstamp;
1: - __u32 tstamp;
1: + __u32 ifa_prefered;
1: + __u32 ifa_valid;
1: + __u32 cstamp;
1: + __u32 tstamp;
1: };
1:
1: enum {
1: - IFLA_INET_UNSPEC = 0,
1: - IFLA_INET_CONF = 1,
1: - __IFLA_INET_MAX = 2,
1: + IFLA_INET_UNSPEC = 0,
1: + IFLA_INET_CONF = 1,
1: + __IFLA_INET_MAX = 2,
1: };
1:
1: struct in_validator_info {
1: - __be32 ivi_addr;
1: - struct in_device *ivi_dev;
1: - struct netlink_ext_ack *extack;
1: + __be32 ivi_addr;
1: + struct in_device *ivi_dev;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct netconfmsg {
1: - __u8 ncm_family;
1: + __u8 ncm_family;
1: };
1:
1: enum {
1: - NETCONFA_UNSPEC = 0,
1: - NETCONFA_IFINDEX = 1,
1: - NETCONFA_FORWARDING = 2,
1: - NETCONFA_RP_FILTER = 3,
1: - NETCONFA_MC_FORWARDING = 4,
1: - NETCONFA_PROXY_NEIGH = 5,
1: - NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN = 6,
1: - NETCONFA_INPUT = 7,
1: - NETCONFA_BC_FORWARDING = 8,
1: - __NETCONFA_MAX = 9,
1: + NETCONFA_UNSPEC = 0,
1: + NETCONFA_IFINDEX = 1,
1: + NETCONFA_FORWARDING = 2,
1: + NETCONFA_RP_FILTER = 3,
1: + NETCONFA_MC_FORWARDING = 4,
1: + NETCONFA_PROXY_NEIGH = 5,
1: + NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN = 6,
1: + NETCONFA_INPUT = 7,
1: + NETCONFA_BC_FORWARDING = 8,
1: + __NETCONFA_MAX = 9,
1: };
1:
1: struct inet_fill_args {
1: - u32 portid;
1: - u32 seq;
1: - int event;
1: - unsigned int flags;
1: - int netnsid;
1: - int ifindex;
1: + u32 portid;
1: + u32 seq;
1: + int event;
1: + unsigned int flags;
1: + int netnsid;
1: + int ifindex;
1: };
1:
1: struct devinet_sysctl_table {
1: - struct ctl_table_header *sysctl_header;
1: - struct ctl_table devinet_vars[33];
1: + struct ctl_table_header *sysctl_header;
1: + struct ctl_table devinet_vars[33];
1: };
1:
1: struct rtentry {
1: - long unsigned int rt_pad1;
1: - struct sockaddr rt_dst;
1: - struct sockaddr rt_gateway;
1: - struct sockaddr rt_genmask;
1: - short unsigned int rt_flags;
1: - short int rt_pad2;
1: - long unsigned int rt_pad3;
1: - void *rt_pad4;
1: - short int rt_metric;
1: - char *rt_dev;
1: - long unsigned int rt_mtu;
1: - long unsigned int rt_window;
1: - short unsigned int rt_irtt;
1: + long unsigned int rt_pad1;
1: + struct sockaddr rt_dst;
1: + struct sockaddr rt_gateway;
1: + struct sockaddr rt_genmask;
1: + short unsigned int rt_flags;
1: + short int rt_pad2;
1: + long unsigned int rt_pad3;
1: + void *rt_pad4;
1: + short int rt_metric;
1: + char *rt_dev;
1: + long unsigned int rt_mtu;
1: + long unsigned int rt_window;
1: + short unsigned int rt_irtt;
1: };
1:
1: struct pingv6_ops {
1: - int (*ipv6_recv_error)(struct sock *, struct msghdr *, int, int *);
1: - void (*ip6_datagram_recv_common_ctl)(struct sock *, struct msghdr *, struct sk_buff *);
1: - void (*ip6_datagram_recv_specific_ctl)(struct sock *, struct msghdr *, struct sk_buff *);
1: - int (*icmpv6_err_convert)(u8, u8, int *);
1: - void (*ipv6_icmp_error)(struct sock *, struct sk_buff *, int, __be16, u32, u8 *);
1: - int (*ipv6_chk_addr)(struct net *, const struct in6_addr *, const struct net_device *, int);
1: + int (*ipv6_recv_error)(struct sock *, struct msghdr *, int, int *);
1: + void (*ip6_datagram_recv_common_ctl)(struct sock *, struct msghdr *,
1: + struct sk_buff *);
1: + void (*ip6_datagram_recv_specific_ctl)(struct sock *, struct msghdr *,
1: + struct sk_buff *);
1: + int (*icmpv6_err_convert)(u8, u8, int *);
1: + void (*ipv6_icmp_error)(struct sock *, struct sk_buff *, int, __be16, u32,
1: + u8 *);
1: + int (*ipv6_chk_addr)(struct net *, const struct in6_addr *,
1: + const struct net_device *, int);
1: };
1:
1: struct compat_rtentry {
1: - u32 rt_pad1;
1: - struct sockaddr rt_dst;
1: - struct sockaddr rt_gateway;
1: - struct sockaddr rt_genmask;
1: - short unsigned int rt_flags;
1: - short int rt_pad2;
1: - u32 rt_pad3;
1: - unsigned char rt_tos;
1: - unsigned char rt_class;
1: - short int rt_pad4;
1: - short int rt_metric;
1: - compat_uptr_t rt_dev;
1: - u32 rt_mtu;
1: - u32 rt_window;
1: - short unsigned int rt_irtt;
1: + u32 rt_pad1;
1: + struct sockaddr rt_dst;
1: + struct sockaddr rt_gateway;
1: + struct sockaddr rt_genmask;
1: + short unsigned int rt_flags;
1: + short int rt_pad2;
1: + u32 rt_pad3;
1: + unsigned char rt_tos;
1: + unsigned char rt_class;
1: + short int rt_pad4;
1: + short int rt_metric;
1: + compat_uptr_t rt_dev;
1: + u32 rt_mtu;
1: + u32 rt_window;
1: + short unsigned int rt_irtt;
1: };
1:
1: struct igmphdr {
1: - __u8 type;
1: - __u8 code;
1: - __sum16 csum;
1: - __be32 group;
1: + __u8 type;
1: + __u8 code;
1: + __sum16 csum;
1: + __be32 group;
1: };
1:
1: struct igmpv3_grec {
1: - __u8 grec_type;
1: - __u8 grec_auxwords;
1: - __be16 grec_nsrcs;
1: - __be32 grec_mca;
1: - __be32 grec_src[0];
1: + __u8 grec_type;
1: + __u8 grec_auxwords;
1: + __be16 grec_nsrcs;
1: + __be32 grec_mca;
1: + __be32 grec_src[0];
1: };
1:
1: struct igmpv3_report {
1: - __u8 type;
1: - __u8 resv1;
1: - __sum16 csum;
1: - __be16 resv2;
1: - __be16 ngrec;
1: - struct igmpv3_grec grec[0];
1: + __u8 type;
1: + __u8 resv1;
1: + __sum16 csum;
1: + __be16 resv2;
1: + __be16 ngrec;
1: + struct igmpv3_grec grec[0];
1: };
1:
1: struct igmpv3_query {
1: - __u8 type;
1: - __u8 code;
1: - __sum16 csum;
1: - __be32 group;
1: - __u8 qrv: 3;
1: - __u8 suppress: 1;
1: - __u8 resv: 4;
1: - __u8 qqic;
1: - __be16 nsrcs;
1: - __be32 srcs[0];
1: + __u8 type;
1: + __u8 code;
1: + __sum16 csum;
1: + __be32 group;
1: + __u8 qrv : 3;
1: + __u8 suppress : 1;
1: + __u8 resv : 4;
1: + __u8 qqic;
1: + __be16 nsrcs;
1: + __be32 srcs[0];
1: };
1:
1: struct igmp_mc_iter_state {
1: - struct seq_net_private p;
1: - struct net_device *dev;
1: - struct in_device *in_dev;
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct in_device *in_dev;
1: };
1:
1: struct igmp_mcf_iter_state {
1: - struct seq_net_private p;
1: - struct net_device *dev;
1: - struct in_device *idev;
1: - struct ip_mc_list *im;
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct in_device *idev;
1: + struct ip_mc_list *im;
1: };
1:
1: struct fib_config {
1: - u8 fc_dst_len;
1: - u8 fc_tos;
1: - u8 fc_protocol;
1: - u8 fc_scope;
1: - u8 fc_type;
1: - u8 fc_gw_family;
1: - u32 fc_table;
1: - __be32 fc_dst;
1: - union {
1: - __be32 fc_gw4;
1: - struct in6_addr fc_gw6;
1: - };
1: - int fc_oif;
1: - u32 fc_flags;
1: - u32 fc_priority;
1: - __be32 fc_prefsrc;
1: - u32 fc_nh_id;
1: - struct nlattr *fc_mx;
1: - struct rtnexthop *fc_mp;
1: - int fc_mx_len;
1: - int fc_mp_len;
1: - u32 fc_flow;
1: - u32 fc_nlflags;
1: - struct nl_info fc_nlinfo;
1: - struct nlattr *fc_encap;
1: - u16 fc_encap_type;
1: + u8 fc_dst_len;
1: + u8 fc_tos;
1: + u8 fc_protocol;
1: + u8 fc_scope;
1: + u8 fc_type;
1: + u8 fc_gw_family;
1: + u32 fc_table;
1: + __be32 fc_dst;
1: + union {
1: + __be32 fc_gw4;
1: + struct in6_addr fc_gw6;
1: + };
1: + int fc_oif;
1: + u32 fc_flags;
1: + u32 fc_priority;
1: + __be32 fc_prefsrc;
1: + u32 fc_nh_id;
1: + struct nlattr *fc_mx;
1: + struct rtnexthop *fc_mp;
1: + int fc_mx_len;
1: + int fc_mp_len;
1: + u32 fc_flow;
1: + u32 fc_nlflags;
1: + struct nl_info fc_nlinfo;
1: + struct nlattr *fc_encap;
1: + u16 fc_encap_type;
1: };
1:
1: struct fib_result_nl {
1: - __be32 fl_addr;
1: - u32 fl_mark;
1: - unsigned char fl_tos;
1: - unsigned char fl_scope;
1: - unsigned char tb_id_in;
1: - unsigned char tb_id;
1: - unsigned char prefixlen;
1: - unsigned char nh_sel;
1: - unsigned char type;
1: - unsigned char scope;
1: - int err;
1: + __be32 fl_addr;
1: + u32 fl_mark;
1: + unsigned char fl_tos;
1: + unsigned char fl_scope;
1: + unsigned char tb_id_in;
1: + unsigned char tb_id;
1: + unsigned char prefixlen;
1: + unsigned char nh_sel;
1: + unsigned char type;
1: + unsigned char scope;
1: + int err;
1: };
1:
1: struct fib_dump_filter {
1: - u32 table_id;
1: - bool filter_set;
1: - bool dump_routes;
1: - bool dump_exceptions;
1: - unsigned char protocol;
1: - unsigned char rt_type;
1: - unsigned int flags;
1: - struct net_device *dev;
1: + u32 table_id;
1: + bool filter_set;
1: + bool dump_routes;
1: + bool dump_exceptions;
1: + unsigned char protocol;
1: + unsigned char rt_type;
1: + unsigned int flags;
1: + struct net_device *dev;
1: };
1:
1: struct fib_nh_notifier_info {
1: - struct fib_notifier_info info;
1: - struct fib_nh *fib_nh;
1: + struct fib_notifier_info info;
1: + struct fib_nh *fib_nh;
1: };
1:
1: struct fib_entry_notifier_info {
1: - struct fib_notifier_info info;
1: - u32 dst;
1: - int dst_len;
1: - struct fib_info *fi;
1: - u8 tos;
1: - u8 type;
1: - u32 tb_id;
1: + struct fib_notifier_info info;
1: + u32 dst;
1: + int dst_len;
1: + struct fib_info *fi;
1: + u8 tos;
1: + u8 type;
1: + u32 tb_id;
1: };
1:
1: typedef unsigned int t_key;
1:
1: struct key_vector {
1: - t_key key;
1: - unsigned char pos;
1: - unsigned char bits;
1: - unsigned char slen;
1: - union {
1: - struct hlist_head leaf;
1: - struct key_vector *tnode[0];
1: - };
1: + t_key key;
1: + unsigned char pos;
1: + unsigned char bits;
1: + unsigned char slen;
1: + union {
1: + struct hlist_head leaf;
1: + struct key_vector *tnode[0];
1: + };
1: };
1:
1: struct tnode {
1: - struct callback_head rcu;
1: - t_key empty_children;
1: - t_key full_children;
1: - struct key_vector *parent;
1: - struct key_vector kv[1];
1: + struct callback_head rcu;
1: + t_key empty_children;
1: + t_key full_children;
1: + struct key_vector *parent;
1: + struct key_vector kv[1];
1: };
1:
1: struct trie_use_stats {
1: - unsigned int gets;
1: - unsigned int backtrack;
1: - unsigned int semantic_match_passed;
1: - unsigned int semantic_match_miss;
1: - unsigned int null_node_hit;
1: - unsigned int resize_node_skipped;
1: + unsigned int gets;
1: + unsigned int backtrack;
1: + unsigned int semantic_match_passed;
1: + unsigned int semantic_match_miss;
1: + unsigned int null_node_hit;
1: + unsigned int resize_node_skipped;
1: };
1:
1: struct trie_stat {
1: - unsigned int totdepth;
1: - unsigned int maxdepth;
1: - unsigned int tnodes;
1: - unsigned int leaves;
1: - unsigned int nullpointers;
1: - unsigned int prefixes;
1: - unsigned int nodesizes[32];
1: + unsigned int totdepth;
1: + unsigned int maxdepth;
1: + unsigned int tnodes;
1: + unsigned int leaves;
1: + unsigned int nullpointers;
1: + unsigned int prefixes;
1: + unsigned int nodesizes[32];
1: };
1:
1: struct trie {
1: - struct key_vector kv[1];
1: - struct trie_use_stats *stats;
1: + struct key_vector kv[1];
1: + struct trie_use_stats *stats;
1: };
1:
1: struct fib_trie_iter {
1: - struct seq_net_private p;
1: - struct fib_table *tb;
1: - struct key_vector *tnode;
1: - unsigned int index;
1: - unsigned int depth;
1: + struct seq_net_private p;
1: + struct fib_table *tb;
1: + struct key_vector *tnode;
1: + unsigned int index;
1: + unsigned int depth;
1: };
1:
1: struct fib_route_iter {
1: - struct seq_net_private p;
1: - struct fib_table *main_tb;
1: - struct key_vector *tnode;
1: - loff_t pos;
1: - t_key key;
1: + struct seq_net_private p;
1: + struct fib_table *main_tb;
1: + struct key_vector *tnode;
1: + loff_t pos;
1: + t_key key;
1: };
1:
1: struct ipfrag_skb_cb {
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - };
1: - struct sk_buff *next_frag;
1: - int frag_run_len;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + };
1: + struct sk_buff *next_frag;
1: + int frag_run_len;
1: };
1:
1: struct icmpv6_echo {
1: - __be16 identifier;
1: - __be16 sequence;
1: + __be16 identifier;
1: + __be16 sequence;
1: };
1:
1: struct icmpv6_nd_advt {
1: - __u32 reserved: 5;
1: - __u32 override: 1;
1: - __u32 solicited: 1;
1: - __u32 router: 1;
1: - __u32 reserved2: 24;
1: + __u32 reserved : 5;
1: + __u32 override : 1;
1: + __u32 solicited : 1;
1: + __u32 router : 1;
1: + __u32 reserved2 : 24;
1: };
1:
1: struct icmpv6_nd_ra {
1: - __u8 hop_limit;
1: - __u8 reserved: 3;
1: - __u8 router_pref: 2;
1: - __u8 home_agent: 1;
1: - __u8 other: 1;
1: - __u8 managed: 1;
1: - __be16 rt_lifetime;
1: + __u8 hop_limit;
1: + __u8 reserved : 3;
1: + __u8 router_pref : 2;
1: + __u8 home_agent : 1;
1: + __u8 other : 1;
1: + __u8 managed : 1;
1: + __be16 rt_lifetime;
1: };
1:
1: struct icmp6hdr {
1: - __u8 icmp6_type;
1: - __u8 icmp6_code;
1: - __sum16 icmp6_cksum;
1: - union {
1: - __be32 un_data32[1];
1: - __be16 un_data16[2];
1: - __u8 un_data8[4];
1: - struct icmpv6_echo u_echo;
1: - struct icmpv6_nd_advt u_nd_advt;
1: - struct icmpv6_nd_ra u_nd_ra;
1: - } icmp6_dataun;
1: + __u8 icmp6_type;
1: + __u8 icmp6_code;
1: + __sum16 icmp6_cksum;
1: + union {
1: + __be32 un_data32[1];
1: + __be16 un_data16[2];
1: + __u8 un_data8[4];
1: + struct icmpv6_echo u_echo;
1: + struct icmpv6_nd_advt u_nd_advt;
1: + struct icmpv6_nd_ra u_nd_ra;
1: + } icmp6_dataun;
1: };
1:
1: struct ping_iter_state {
1: - struct seq_net_private p;
1: - int bucket;
1: - sa_family_t family;
1: + struct seq_net_private p;
1: + int bucket;
1: + sa_family_t family;
1: };
1:
1: struct pingfakehdr {
1: - struct icmphdr icmph;
1: - struct msghdr *msg;
1: - sa_family_t family;
1: - __wsum wcheck;
1: + struct icmphdr icmph;
1: + struct msghdr *msg;
1: + sa_family_t family;
1: + __wsum wcheck;
1: };
1:
1: struct ping_table {
1: - struct hlist_nulls_head hash[64];
1: - rwlock_t lock;
1: + struct hlist_nulls_head hash[64];
1: + rwlock_t lock;
1: };
1:
1: enum lwtunnel_ip_t {
1: - LWTUNNEL_IP_UNSPEC = 0,
1: - LWTUNNEL_IP_ID = 1,
1: - LWTUNNEL_IP_DST = 2,
1: - LWTUNNEL_IP_SRC = 3,
1: - LWTUNNEL_IP_TTL = 4,
1: - LWTUNNEL_IP_TOS = 5,
1: - LWTUNNEL_IP_FLAGS = 6,
1: - LWTUNNEL_IP_PAD = 7,
1: - LWTUNNEL_IP_OPTS = 8,
1: - __LWTUNNEL_IP_MAX = 9,
1: + LWTUNNEL_IP_UNSPEC = 0,
1: + LWTUNNEL_IP_ID = 1,
1: + LWTUNNEL_IP_DST = 2,
1: + LWTUNNEL_IP_SRC = 3,
1: + LWTUNNEL_IP_TTL = 4,
1: + LWTUNNEL_IP_TOS = 5,
1: + LWTUNNEL_IP_FLAGS = 6,
1: + LWTUNNEL_IP_PAD = 7,
1: + LWTUNNEL_IP_OPTS = 8,
1: + __LWTUNNEL_IP_MAX = 9,
1: };
1:
1: enum lwtunnel_ip6_t {
1: - LWTUNNEL_IP6_UNSPEC = 0,
1: - LWTUNNEL_IP6_ID = 1,
1: - LWTUNNEL_IP6_DST = 2,
1: - LWTUNNEL_IP6_SRC = 3,
1: - LWTUNNEL_IP6_HOPLIMIT = 4,
1: - LWTUNNEL_IP6_TC = 5,
1: - LWTUNNEL_IP6_FLAGS = 6,
1: - LWTUNNEL_IP6_PAD = 7,
1: - LWTUNNEL_IP6_OPTS = 8,
1: - __LWTUNNEL_IP6_MAX = 9,
1: + LWTUNNEL_IP6_UNSPEC = 0,
1: + LWTUNNEL_IP6_ID = 1,
1: + LWTUNNEL_IP6_DST = 2,
1: + LWTUNNEL_IP6_SRC = 3,
1: + LWTUNNEL_IP6_HOPLIMIT = 4,
1: + LWTUNNEL_IP6_TC = 5,
1: + LWTUNNEL_IP6_FLAGS = 6,
1: + LWTUNNEL_IP6_PAD = 7,
1: + LWTUNNEL_IP6_OPTS = 8,
1: + __LWTUNNEL_IP6_MAX = 9,
1: };
1:
1: enum {
1: - LWTUNNEL_IP_OPTS_UNSPEC = 0,
1: - LWTUNNEL_IP_OPTS_GENEVE = 1,
1: - LWTUNNEL_IP_OPTS_VXLAN = 2,
1: - LWTUNNEL_IP_OPTS_ERSPAN = 3,
1: - __LWTUNNEL_IP_OPTS_MAX = 4,
1: + LWTUNNEL_IP_OPTS_UNSPEC = 0,
1: + LWTUNNEL_IP_OPTS_GENEVE = 1,
1: + LWTUNNEL_IP_OPTS_VXLAN = 2,
1: + LWTUNNEL_IP_OPTS_ERSPAN = 3,
1: + __LWTUNNEL_IP_OPTS_MAX = 4,
1: };
1:
1: enum {
1: - LWTUNNEL_IP_OPT_GENEVE_UNSPEC = 0,
1: - LWTUNNEL_IP_OPT_GENEVE_CLASS = 1,
1: - LWTUNNEL_IP_OPT_GENEVE_TYPE = 2,
1: - LWTUNNEL_IP_OPT_GENEVE_DATA = 3,
1: - __LWTUNNEL_IP_OPT_GENEVE_MAX = 4,
1: + LWTUNNEL_IP_OPT_GENEVE_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_GENEVE_CLASS = 1,
1: + LWTUNNEL_IP_OPT_GENEVE_TYPE = 2,
1: + LWTUNNEL_IP_OPT_GENEVE_DATA = 3,
1: + __LWTUNNEL_IP_OPT_GENEVE_MAX = 4,
1: };
1:
1: enum {
1: - LWTUNNEL_IP_OPT_VXLAN_UNSPEC = 0,
1: - LWTUNNEL_IP_OPT_VXLAN_GBP = 1,
1: - __LWTUNNEL_IP_OPT_VXLAN_MAX = 2,
1: + LWTUNNEL_IP_OPT_VXLAN_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_VXLAN_GBP = 1,
1: + __LWTUNNEL_IP_OPT_VXLAN_MAX = 2,
1: };
1:
1: enum {
1: - LWTUNNEL_IP_OPT_ERSPAN_UNSPEC = 0,
1: - LWTUNNEL_IP_OPT_ERSPAN_VER = 1,
1: - LWTUNNEL_IP_OPT_ERSPAN_INDEX = 2,
1: - LWTUNNEL_IP_OPT_ERSPAN_DIR = 3,
1: - LWTUNNEL_IP_OPT_ERSPAN_HWID = 4,
1: - __LWTUNNEL_IP_OPT_ERSPAN_MAX = 5,
1: + LWTUNNEL_IP_OPT_ERSPAN_UNSPEC = 0,
1: + LWTUNNEL_IP_OPT_ERSPAN_VER = 1,
1: + LWTUNNEL_IP_OPT_ERSPAN_INDEX = 2,
1: + LWTUNNEL_IP_OPT_ERSPAN_DIR = 3,
1: + LWTUNNEL_IP_OPT_ERSPAN_HWID = 4,
1: + __LWTUNNEL_IP_OPT_ERSPAN_MAX = 5,
1: };
1:
1: struct ip6_tnl_encap_ops {
1: - size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: - int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *, struct flowi6 *);
1: - int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: + size_t (*encap_hlen)(struct ip_tunnel_encap *);
1: + int (*build_header)(struct sk_buff *, struct ip_tunnel_encap *, u8 *,
1: + struct flowi6 *);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int,
1: + __be32);
1: };
1:
1: struct geneve_opt {
1: - __be16 opt_class;
1: - u8 type;
1: - u8 length: 5;
1: - u8 r3: 1;
1: - u8 r2: 1;
1: - u8 r1: 1;
1: - u8 opt_data[0];
1: + __be16 opt_class;
1: + u8 type;
1: + u8 length : 5;
1: + u8 r3 : 1;
1: + u8 r2 : 1;
1: + u8 r1 : 1;
1: + u8 opt_data[0];
1: };
1:
1: struct vxlan_metadata {
1: - u32 gbp;
1: + u32 gbp;
1: };
1:
1: struct erspan_md2 {
1: - __be32 timestamp;
1: - __be16 sgt;
1: - __u8 hwid_upper: 2;
1: - __u8 ft: 5;
1: - __u8 p: 1;
1: - __u8 o: 1;
1: - __u8 gra: 2;
1: - __u8 dir: 1;
1: - __u8 hwid: 4;
1: + __be32 timestamp;
1: + __be16 sgt;
1: + __u8 hwid_upper : 2;
1: + __u8 ft : 5;
1: + __u8 p : 1;
1: + __u8 o : 1;
1: + __u8 gra : 2;
1: + __u8 dir : 1;
1: + __u8 hwid : 4;
1: };
1:
1: struct erspan_metadata {
1: - int version;
1: - union {
1: - __be32 index;
1: - struct erspan_md2 md2;
1: - } u;
1: + int version;
1: + union {
1: + __be32 index;
1: + struct erspan_md2 md2;
1: + } u;
1: };
1:
1: struct nhmsg {
1: - unsigned char nh_family;
1: - unsigned char nh_scope;
1: - unsigned char nh_protocol;
1: - unsigned char resvd;
1: - unsigned int nh_flags;
1: + unsigned char nh_family;
1: + unsigned char nh_scope;
1: + unsigned char nh_protocol;
1: + unsigned char resvd;
1: + unsigned int nh_flags;
1: };
1:
1: struct nexthop_grp {
1: - __u32 id;
1: - __u8 weight;
1: - __u8 resvd1;
1: - __u16 resvd2;
1: + __u32 id;
1: + __u8 weight;
1: + __u8 resvd1;
1: + __u16 resvd2;
1: };
1:
1: enum {
1: - NEXTHOP_GRP_TYPE_MPATH = 0,
1: - __NEXTHOP_GRP_TYPE_MAX = 1,
1: + NEXTHOP_GRP_TYPE_MPATH = 0,
1: + __NEXTHOP_GRP_TYPE_MAX = 1,
1: };
1:
1: enum {
1: - NHA_UNSPEC = 0,
1: - NHA_ID = 1,
1: - NHA_GROUP = 2,
1: - NHA_GROUP_TYPE = 3,
1: - NHA_BLACKHOLE = 4,
1: - NHA_OIF = 5,
1: - NHA_GATEWAY = 6,
1: - NHA_ENCAP_TYPE = 7,
1: - NHA_ENCAP = 8,
1: - NHA_GROUPS = 9,
1: - NHA_MASTER = 10,
1: - NHA_FDB = 11,
1: - __NHA_MAX = 12,
1: + NHA_UNSPEC = 0,
1: + NHA_ID = 1,
1: + NHA_GROUP = 2,
1: + NHA_GROUP_TYPE = 3,
1: + NHA_BLACKHOLE = 4,
1: + NHA_OIF = 5,
1: + NHA_GATEWAY = 6,
1: + NHA_ENCAP_TYPE = 7,
1: + NHA_ENCAP = 8,
1: + NHA_GROUPS = 9,
1: + NHA_MASTER = 10,
1: + NHA_FDB = 11,
1: + __NHA_MAX = 12,
1: };
1:
1: struct nh_config {
1: - u32 nh_id;
1: - u8 nh_family;
1: - u8 nh_protocol;
1: - u8 nh_blackhole;
1: - u8 nh_fdb;
1: - u32 nh_flags;
1: - int nh_ifindex;
1: - struct net_device *dev;
1: - union {
1: - __be32 ipv4;
1: - struct in6_addr ipv6;
1: - } gw;
1: - struct nlattr *nh_grp;
1: - u16 nh_grp_type;
1: - struct nlattr *nh_encap;
1: - u16 nh_encap_type;
1: - u32 nlflags;
1: - struct nl_info nlinfo;
1: + u32 nh_id;
1: + u8 nh_family;
1: + u8 nh_protocol;
1: + u8 nh_blackhole;
1: + u8 nh_fdb;
1: + u32 nh_flags;
1: + int nh_ifindex;
1: + struct net_device *dev;
1: + union {
1: + __be32 ipv4;
1: + struct in6_addr ipv6;
1: + } gw;
1: + struct nlattr *nh_grp;
1: + u16 nh_grp_type;
1: + struct nlattr *nh_encap;
1: + u16 nh_encap_type;
1: + u32 nlflags;
1: + struct nl_info nlinfo;
1: };
1:
1: enum nexthop_event_type {
1: - NEXTHOP_EVENT_DEL = 0,
1: + NEXTHOP_EVENT_DEL = 0,
1: };
1:
1: struct bpfilter_umh_ops {
1: - struct umd_info info;
1: - struct mutex lock;
1: - int (*sockopt)(struct sock *, int, sockptr_t, unsigned int, bool);
1: - int (*start)();
1: + struct umd_info info;
1: + struct mutex lock;
1: + int (*sockopt)(struct sock *, int, sockptr_t, unsigned int, bool);
1: + int (*start)();
1: };
1:
1: struct inet6_protocol {
1: - void (*early_demux)(struct sk_buff *);
1: - void (*early_demux_handler)(struct sk_buff *);
1: - int (*handler)(struct sk_buff *);
1: - int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: - unsigned int flags;
1: + void (*early_demux)(struct sk_buff *);
1: + void (*early_demux_handler)(struct sk_buff *);
1: + int (*handler)(struct sk_buff *);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int,
1: + __be32);
1: + unsigned int flags;
1: };
1:
1: struct snmp_mib {
1: - const char *name;
1: - int entry;
1: + const char *name;
1: + int entry;
1: };
1:
1: struct fib4_rule {
1: - struct fib_rule common;
1: - u8 dst_len;
1: - u8 src_len;
1: - u8 tos;
1: - __be32 src;
1: - __be32 srcmask;
1: - __be32 dst;
1: - __be32 dstmask;
1: - u32 tclassid;
1: + struct fib_rule common;
1: + u8 dst_len;
1: + u8 src_len;
1: + u8 tos;
1: + __be32 src;
1: + __be32 srcmask;
1: + __be32 dst;
1: + __be32 dstmask;
1: + u32 tclassid;
1: };
1:
1: enum {
1: - PIM_TYPE_HELLO = 0,
1: - PIM_TYPE_REGISTER = 1,
1: - PIM_TYPE_REGISTER_STOP = 2,
1: - PIM_TYPE_JOIN_PRUNE = 3,
1: - PIM_TYPE_BOOTSTRAP = 4,
1: - PIM_TYPE_ASSERT = 5,
1: - PIM_TYPE_GRAFT = 6,
1: - PIM_TYPE_GRAFT_ACK = 7,
1: - PIM_TYPE_CANDIDATE_RP_ADV = 8,
1: + PIM_TYPE_HELLO = 0,
1: + PIM_TYPE_REGISTER = 1,
1: + PIM_TYPE_REGISTER_STOP = 2,
1: + PIM_TYPE_JOIN_PRUNE = 3,
1: + PIM_TYPE_BOOTSTRAP = 4,
1: + PIM_TYPE_ASSERT = 5,
1: + PIM_TYPE_GRAFT = 6,
1: + PIM_TYPE_GRAFT_ACK = 7,
1: + PIM_TYPE_CANDIDATE_RP_ADV = 8,
1: };
1:
1: struct pimreghdr {
1: - __u8 type;
1: - __u8 reserved;
1: - __be16 csum;
1: - __be32 flags;
1: + __u8 type;
1: + __u8 reserved;
1: + __be16 csum;
1: + __be32 flags;
1: };
1:
1: typedef short unsigned int vifi_t;
1:
1: struct vifctl {
1: - vifi_t vifc_vifi;
1: - unsigned char vifc_flags;
1: - unsigned char vifc_threshold;
1: - unsigned int vifc_rate_limit;
1: - union {
1: - struct in_addr vifc_lcl_addr;
1: - int vifc_lcl_ifindex;
1: - };
1: - struct in_addr vifc_rmt_addr;
1: + vifi_t vifc_vifi;
1: + unsigned char vifc_flags;
1: + unsigned char vifc_threshold;
1: + unsigned int vifc_rate_limit;
1: + union {
1: + struct in_addr vifc_lcl_addr;
1: + int vifc_lcl_ifindex;
1: + };
1: + struct in_addr vifc_rmt_addr;
1: };
1:
1: struct mfcctl {
1: - struct in_addr mfcc_origin;
1: - struct in_addr mfcc_mcastgrp;
1: - vifi_t mfcc_parent;
1: - unsigned char mfcc_ttls[32];
1: - unsigned int mfcc_pkt_cnt;
1: - unsigned int mfcc_byte_cnt;
1: - unsigned int mfcc_wrong_if;
1: - int mfcc_expire;
1: + struct in_addr mfcc_origin;
1: + struct in_addr mfcc_mcastgrp;
1: + vifi_t mfcc_parent;
1: + unsigned char mfcc_ttls[32];
1: + unsigned int mfcc_pkt_cnt;
1: + unsigned int mfcc_byte_cnt;
1: + unsigned int mfcc_wrong_if;
1: + int mfcc_expire;
1: };
1:
1: struct sioc_sg_req {
1: - struct in_addr src;
1: - struct in_addr grp;
1: - long unsigned int pktcnt;
1: - long unsigned int bytecnt;
1: - long unsigned int wrong_if;
1: + struct in_addr src;
1: + struct in_addr grp;
1: + long unsigned int pktcnt;
1: + long unsigned int bytecnt;
1: + long unsigned int wrong_if;
1: };
1:
1: struct sioc_vif_req {
1: - vifi_t vifi;
1: - long unsigned int icount;
1: - long unsigned int ocount;
1: - long unsigned int ibytes;
1: - long unsigned int obytes;
1: + vifi_t vifi;
1: + long unsigned int icount;
1: + long unsigned int ocount;
1: + long unsigned int ibytes;
1: + long unsigned int obytes;
1: };
1:
1: struct igmpmsg {
1: - __u32 unused1;
1: - __u32 unused2;
1: - unsigned char im_msgtype;
1: - unsigned char im_mbz;
1: - unsigned char im_vif;
1: - unsigned char im_vif_hi;
1: - struct in_addr im_src;
1: - struct in_addr im_dst;
1: + __u32 unused1;
1: + __u32 unused2;
1: + unsigned char im_msgtype;
1: + unsigned char im_mbz;
1: + unsigned char im_vif;
1: + unsigned char im_vif_hi;
1: + struct in_addr im_src;
1: + struct in_addr im_dst;
1: };
1:
1: enum {
1: - IPMRA_TABLE_UNSPEC = 0,
1: - IPMRA_TABLE_ID = 1,
1: - IPMRA_TABLE_CACHE_RES_QUEUE_LEN = 2,
1: - IPMRA_TABLE_MROUTE_REG_VIF_NUM = 3,
1: - IPMRA_TABLE_MROUTE_DO_ASSERT = 4,
1: - IPMRA_TABLE_MROUTE_DO_PIM = 5,
1: - IPMRA_TABLE_VIFS = 6,
1: - IPMRA_TABLE_MROUTE_DO_WRVIFWHOLE = 7,
1: - __IPMRA_TABLE_MAX = 8,
1: + IPMRA_TABLE_UNSPEC = 0,
1: + IPMRA_TABLE_ID = 1,
1: + IPMRA_TABLE_CACHE_RES_QUEUE_LEN = 2,
1: + IPMRA_TABLE_MROUTE_REG_VIF_NUM = 3,
1: + IPMRA_TABLE_MROUTE_DO_ASSERT = 4,
1: + IPMRA_TABLE_MROUTE_DO_PIM = 5,
1: + IPMRA_TABLE_VIFS = 6,
1: + IPMRA_TABLE_MROUTE_DO_WRVIFWHOLE = 7,
1: + __IPMRA_TABLE_MAX = 8,
1: };
1:
1: enum {
1: - IPMRA_VIF_UNSPEC = 0,
1: - IPMRA_VIF = 1,
1: - __IPMRA_VIF_MAX = 2,
1: + IPMRA_VIF_UNSPEC = 0,
1: + IPMRA_VIF = 1,
1: + __IPMRA_VIF_MAX = 2,
1: };
1:
1: enum {
1: - IPMRA_VIFA_UNSPEC = 0,
1: - IPMRA_VIFA_IFINDEX = 1,
1: - IPMRA_VIFA_VIF_ID = 2,
1: - IPMRA_VIFA_FLAGS = 3,
1: - IPMRA_VIFA_BYTES_IN = 4,
1: - IPMRA_VIFA_BYTES_OUT = 5,
1: - IPMRA_VIFA_PACKETS_IN = 6,
1: - IPMRA_VIFA_PACKETS_OUT = 7,
1: - IPMRA_VIFA_LOCAL_ADDR = 8,
1: - IPMRA_VIFA_REMOTE_ADDR = 9,
1: - IPMRA_VIFA_PAD = 10,
1: - __IPMRA_VIFA_MAX = 11,
1: + IPMRA_VIFA_UNSPEC = 0,
1: + IPMRA_VIFA_IFINDEX = 1,
1: + IPMRA_VIFA_VIF_ID = 2,
1: + IPMRA_VIFA_FLAGS = 3,
1: + IPMRA_VIFA_BYTES_IN = 4,
1: + IPMRA_VIFA_BYTES_OUT = 5,
1: + IPMRA_VIFA_PACKETS_IN = 6,
1: + IPMRA_VIFA_PACKETS_OUT = 7,
1: + IPMRA_VIFA_LOCAL_ADDR = 8,
1: + IPMRA_VIFA_REMOTE_ADDR = 9,
1: + IPMRA_VIFA_PAD = 10,
1: + __IPMRA_VIFA_MAX = 11,
1: };
1:
1: enum {
1: - IPMRA_CREPORT_UNSPEC = 0,
1: - IPMRA_CREPORT_MSGTYPE = 1,
1: - IPMRA_CREPORT_VIF_ID = 2,
1: - IPMRA_CREPORT_SRC_ADDR = 3,
1: - IPMRA_CREPORT_DST_ADDR = 4,
1: - IPMRA_CREPORT_PKT = 5,
1: - IPMRA_CREPORT_TABLE = 6,
1: - __IPMRA_CREPORT_MAX = 7,
1: + IPMRA_CREPORT_UNSPEC = 0,
1: + IPMRA_CREPORT_MSGTYPE = 1,
1: + IPMRA_CREPORT_VIF_ID = 2,
1: + IPMRA_CREPORT_SRC_ADDR = 3,
1: + IPMRA_CREPORT_DST_ADDR = 4,
1: + IPMRA_CREPORT_PKT = 5,
1: + IPMRA_CREPORT_TABLE = 6,
1: + __IPMRA_CREPORT_MAX = 7,
1: };
1:
1: struct vif_device {
1: - struct net_device *dev;
1: - long unsigned int bytes_in;
1: - long unsigned int bytes_out;
1: - long unsigned int pkt_in;
1: - long unsigned int pkt_out;
1: - long unsigned int rate_limit;
1: - unsigned char threshold;
1: - short unsigned int flags;
1: - int link;
1: - struct netdev_phys_item_id dev_parent_id;
1: - __be32 local;
1: - __be32 remote;
1: + struct net_device *dev;
1: + long unsigned int bytes_in;
1: + long unsigned int bytes_out;
1: + long unsigned int pkt_in;
1: + long unsigned int pkt_out;
1: + long unsigned int rate_limit;
1: + unsigned char threshold;
1: + short unsigned int flags;
1: + int link;
1: + struct netdev_phys_item_id dev_parent_id;
1: + __be32 local;
1: + __be32 remote;
1: };
1:
1: struct vif_entry_notifier_info {
1: - struct fib_notifier_info info;
1: - struct net_device *dev;
1: - short unsigned int vif_index;
1: - short unsigned int vif_flags;
1: - u32 tb_id;
1: + struct fib_notifier_info info;
1: + struct net_device *dev;
1: + short unsigned int vif_index;
1: + short unsigned int vif_flags;
1: + u32 tb_id;
1: };
1:
1: enum {
1: - MFC_STATIC = 1,
1: - MFC_OFFLOAD = 2,
1: + MFC_STATIC = 1,
1: + MFC_OFFLOAD = 2,
1: };
1:
1: struct mr_mfc {
1: - struct rhlist_head mnode;
1: - short unsigned int mfc_parent;
1: - int mfc_flags;
1: - union {
1: - struct {
1: - long unsigned int expires;
1: - struct sk_buff_head unresolved;
1: - } unres;
1: - struct {
1: - long unsigned int last_assert;
1: - int minvif;
1: - int maxvif;
1: - long unsigned int bytes;
1: - long unsigned int pkt;
1: - long unsigned int wrong_if;
1: - long unsigned int lastuse;
1: - unsigned char ttls[32];
1: - refcount_t refcount;
1: - } res;
1: - } mfc_un;
1: - struct list_head list;
1: - struct callback_head rcu;
1: - void (*free)(struct callback_head *);
1: + struct rhlist_head mnode;
1: + short unsigned int mfc_parent;
1: + int mfc_flags;
1: + union {
1: + struct {
1: + long unsigned int expires;
1: + struct sk_buff_head unresolved;
1: + } unres;
1: + struct {
1: + long unsigned int last_assert;
1: + int minvif;
1: + int maxvif;
1: + long unsigned int bytes;
1: + long unsigned int pkt;
1: + long unsigned int wrong_if;
1: + long unsigned int lastuse;
1: + unsigned char ttls[32];
1: + refcount_t refcount;
1: + } res;
1: + } mfc_un;
1: + struct list_head list;
1: + struct callback_head rcu;
1: + void (*free)(struct callback_head *);
1: };
1:
1: struct mfc_entry_notifier_info {
1: - struct fib_notifier_info info;
1: - struct mr_mfc *mfc;
1: - u32 tb_id;
1: + struct fib_notifier_info info;
1: + struct mr_mfc *mfc;
1: + u32 tb_id;
1: };
1:
1: struct mr_table_ops {
1: - const struct rhashtable_params *rht_params;
1: - void *cmparg_any;
1: + const struct rhashtable_params *rht_params;
1: + void *cmparg_any;
1: };
1:
1: struct mr_table {
1: - struct list_head list;
1: - possible_net_t net;
1: - struct mr_table_ops ops;
1: - u32 id;
1: - struct sock *mroute_sk;
1: - struct timer_list ipmr_expire_timer;
1: - struct list_head mfc_unres_queue;
1: - struct vif_device vif_table[32];
1: - struct rhltable mfc_hash;
1: - struct list_head mfc_cache_list;
1: - int maxvif;
1: - atomic_t cache_resolve_queue_len;
1: - bool mroute_do_assert;
1: - bool mroute_do_pim;
1: - bool mroute_do_wrvifwhole;
1: - int mroute_reg_vif_num;
1: + struct list_head list;
1: + possible_net_t net;
1: + struct mr_table_ops ops;
1: + u32 id;
1: + struct sock *mroute_sk;
1: + struct timer_list ipmr_expire_timer;
1: + struct list_head mfc_unres_queue;
1: + struct vif_device vif_table[32];
1: + struct rhltable mfc_hash;
1: + struct list_head mfc_cache_list;
1: + int maxvif;
1: + atomic_t cache_resolve_queue_len;
1: + bool mroute_do_assert;
1: + bool mroute_do_pim;
1: + bool mroute_do_wrvifwhole;
1: + int mroute_reg_vif_num;
1: };
1:
1: struct mr_vif_iter {
1: - struct seq_net_private p;
1: - struct mr_table *mrt;
1: - int ct;
1: + struct seq_net_private p;
1: + struct mr_table *mrt;
1: + int ct;
1: };
1:
1: struct mr_mfc_iter {
1: - struct seq_net_private p;
1: - struct mr_table *mrt;
1: - struct list_head *cache;
1: - spinlock_t *lock;
1: + struct seq_net_private p;
1: + struct mr_table *mrt;
1: + struct list_head *cache;
1: + spinlock_t *lock;
1: };
1:
1: struct mfc_cache_cmp_arg {
1: - __be32 mfc_mcastgrp;
1: - __be32 mfc_origin;
1: + __be32 mfc_mcastgrp;
1: + __be32 mfc_origin;
1: };
1:
1: struct mfc_cache {
1: - struct mr_mfc _c;
1: - union {
1: - struct {
1: - __be32 mfc_mcastgrp;
1: - __be32 mfc_origin;
1: - };
1: - struct mfc_cache_cmp_arg cmparg;
1: - };
1: + struct mr_mfc _c;
1: + union {
1: + struct {
1: + __be32 mfc_mcastgrp;
1: + __be32 mfc_origin;
1: + };
1: + struct mfc_cache_cmp_arg cmparg;
1: + };
1: };
1:
1: struct ipmr_result {
1: - struct mr_table *mrt;
1: + struct mr_table *mrt;
1: };
1:
1: struct compat_sioc_sg_req {
1: - struct in_addr src;
1: - struct in_addr grp;
1: - compat_ulong_t pktcnt;
1: - compat_ulong_t bytecnt;
1: - compat_ulong_t wrong_if;
1: + struct in_addr src;
1: + struct in_addr grp;
1: + compat_ulong_t pktcnt;
1: + compat_ulong_t bytecnt;
1: + compat_ulong_t wrong_if;
1: };
1:
1: struct compat_sioc_vif_req {
1: - vifi_t vifi;
1: - compat_ulong_t icount;
1: - compat_ulong_t ocount;
1: - compat_ulong_t ibytes;
1: - compat_ulong_t obytes;
1: + vifi_t vifi;
1: + compat_ulong_t icount;
1: + compat_ulong_t ocount;
1: + compat_ulong_t ibytes;
1: + compat_ulong_t obytes;
1: };
1:
1: struct rta_mfc_stats {
1: - __u64 mfcs_packets;
1: - __u64 mfcs_bytes;
1: - __u64 mfcs_wrong_if;
1: + __u64 mfcs_packets;
1: + __u64 mfcs_bytes;
1: + __u64 mfcs_wrong_if;
1: };
1:
1: enum rpc_display_format_t {
1: - RPC_DISPLAY_ADDR = 0,
1: - RPC_DISPLAY_PORT = 1,
1: - RPC_DISPLAY_PROTO = 2,
1: - RPC_DISPLAY_HEX_ADDR = 3,
1: - RPC_DISPLAY_HEX_PORT = 4,
1: - RPC_DISPLAY_NETID = 5,
1: - RPC_DISPLAY_MAX = 6,
1: + RPC_DISPLAY_ADDR = 0,
1: + RPC_DISPLAY_PORT = 1,
1: + RPC_DISPLAY_PROTO = 2,
1: + RPC_DISPLAY_HEX_ADDR = 3,
1: + RPC_DISPLAY_HEX_PORT = 4,
1: + RPC_DISPLAY_NETID = 5,
1: + RPC_DISPLAY_MAX = 6,
1: };
1:
1: struct ic_device {
1: - struct ic_device *next;
1: - struct net_device *dev;
1: - short unsigned int flags;
1: - short int able;
1: - __be32 xid;
1: + struct ic_device *next;
1: + struct net_device *dev;
1: + short unsigned int flags;
1: + short int able;
1: + __be32 xid;
1: };
1:
1: struct bootp_pkt {
1: - struct iphdr iph;
1: - struct udphdr udph;
1: - u8 op;
1: - u8 htype;
1: - u8 hlen;
1: - u8 hops;
1: - __be32 xid;
1: - __be16 secs;
1: - __be16 flags;
1: - __be32 client_ip;
1: - __be32 your_ip;
1: - __be32 server_ip;
1: - __be32 relay_ip;
1: - u8 hw_addr[16];
1: - u8 serv_name[64];
1: - u8 boot_file[128];
1: - u8 exten[312];
1: + struct iphdr iph;
1: + struct udphdr udph;
1: + u8 op;
1: + u8 htype;
1: + u8 hlen;
1: + u8 hops;
1: + __be32 xid;
1: + __be16 secs;
1: + __be16 flags;
1: + __be32 client_ip;
1: + __be32 your_ip;
1: + __be32 server_ip;
1: + __be32 relay_ip;
1: + u8 hw_addr[16];
1: + u8 serv_name[64];
1: + u8 boot_file[128];
1: + u8 exten[312];
1: };
1:
1: struct bictcp {
1: - u32 cnt;
1: - u32 last_max_cwnd;
1: - u32 last_cwnd;
1: - u32 last_time;
1: - u32 bic_origin_point;
1: - u32 bic_K;
1: - u32 delay_min;
1: - u32 epoch_start;
1: - u32 ack_cnt;
1: - u32 tcp_cwnd;
1: - u16 unused;
1: - u8 sample_cnt;
1: - u8 found;
1: - u32 round_start;
1: - u32 end_seq;
1: - u32 last_ack;
1: - u32 curr_rtt;
1: + u32 cnt;
1: + u32 last_max_cwnd;
1: + u32 last_cwnd;
1: + u32 last_time;
1: + u32 bic_origin_point;
1: + u32 bic_K;
1: + u32 delay_min;
1: + u32 epoch_start;
1: + u32 ack_cnt;
1: + u32 tcp_cwnd;
1: + u16 unused;
1: + u8 sample_cnt;
1: + u8 found;
1: + u32 round_start;
1: + u32 end_seq;
1: + u32 last_ack;
1: + u32 curr_rtt;
1: };
1:
1: struct tls_rec {
1: - struct list_head list;
1: - int tx_ready;
1: - int tx_flags;
1: - struct sk_msg msg_plaintext;
1: - struct sk_msg msg_encrypted;
1: - struct scatterlist sg_aead_in[2];
1: - struct scatterlist sg_aead_out[2];
1: - char content_type;
1: - struct scatterlist sg_content_type;
1: - char aad_space[13];
1: - u8 iv_data[16];
1: - long: 24;
1: - long: 64;
1: - long: 64;
1: - struct aead_request aead_req;
1: - u8 aead_req_ctx[0];
1: + struct list_head list;
1: + int tx_ready;
1: + int tx_flags;
1: + struct sk_msg msg_plaintext;
1: + struct sk_msg msg_encrypted;
1: + struct scatterlist sg_aead_in[2];
1: + struct scatterlist sg_aead_out[2];
1: + char content_type;
1: + struct scatterlist sg_content_type;
1: + char aad_space[13];
1: + u8 iv_data[16];
1: + long : 24;
1: + long : 64;
1: + long : 64;
1: + struct aead_request aead_req;
1: + u8 aead_req_ctx[0];
1: };
1:
1: struct tx_work {
1: - struct delayed_work work;
1: - struct sock *sk;
1: + struct delayed_work work;
1: + struct sock *sk;
1: };
1:
1: struct tls_sw_context_tx {
1: - struct crypto_aead *aead_send;
1: - struct crypto_wait async_wait;
1: - struct tx_work tx_work;
1: - struct tls_rec *open_rec;
1: - struct list_head tx_list;
1: - atomic_t encrypt_pending;
1: - spinlock_t encrypt_compl_lock;
1: - int async_notify;
1: - u8 async_capable: 1;
1: - long unsigned int tx_bitmask;
1: + struct crypto_aead *aead_send;
1: + struct crypto_wait async_wait;
1: + struct tx_work tx_work;
1: + struct tls_rec *open_rec;
1: + struct list_head tx_list;
1: + atomic_t encrypt_pending;
1: + spinlock_t encrypt_compl_lock;
1: + int async_notify;
1: + u8 async_capable : 1;
1: + long unsigned int tx_bitmask;
1: };
1:
1: enum {
1: - TCP_BPF_IPV4 = 0,
1: - TCP_BPF_IPV6 = 1,
1: - TCP_BPF_NUM_PROTS = 2,
1: + TCP_BPF_IPV4 = 0,
1: + TCP_BPF_IPV6 = 1,
1: + TCP_BPF_NUM_PROTS = 2,
1: };
1:
1: enum {
1: - TCP_BPF_BASE = 0,
1: - TCP_BPF_TX = 1,
1: - TCP_BPF_NUM_CFGS = 2,
1: + TCP_BPF_BASE = 0,
1: + TCP_BPF_TX = 1,
1: + TCP_BPF_NUM_CFGS = 2,
1: };
1:
1: enum {
1: - UDP_BPF_IPV4 = 0,
1: - UDP_BPF_IPV6 = 1,
1: - UDP_BPF_NUM_PROTS = 2,
1: + UDP_BPF_IPV4 = 0,
1: + UDP_BPF_IPV6 = 1,
1: + UDP_BPF_NUM_PROTS = 2,
1: };
1:
1: struct cipso_v4_map_cache_bkt {
1: - spinlock_t lock;
1: - u32 size;
1: - struct list_head list;
1: + spinlock_t lock;
1: + u32 size;
1: + struct list_head list;
1: };
1:
1: struct cipso_v4_map_cache_entry {
1: - u32 hash;
1: - unsigned char *key;
1: - size_t key_len;
1: - struct netlbl_lsm_cache *lsm_data;
1: - u32 activity;
1: - struct list_head list;
1: + u32 hash;
1: + unsigned char *key;
1: + size_t key_len;
1: + struct netlbl_lsm_cache *lsm_data;
1: + u32 activity;
1: + struct list_head list;
1: };
1:
1: struct xfrm_policy_afinfo {
1: - struct dst_ops *dst_ops;
1: - struct dst_entry * (*dst_lookup)(struct net *, int, int, const xfrm_address_t *, const xfrm_address_t *, u32);
1: - int (*get_saddr)(struct net *, int, xfrm_address_t *, xfrm_address_t *, u32);
1: - int (*fill_dst)(struct xfrm_dst *, struct net_device *, const struct flowi *);
1: - struct dst_entry * (*blackhole_route)(struct net *, struct dst_entry *);
1: + struct dst_ops *dst_ops;
1: + struct dst_entry *(*dst_lookup)(struct net *, int, int,
1: + const xfrm_address_t *,
1: + const xfrm_address_t *, u32);
1: + int (*get_saddr)(struct net *, int, xfrm_address_t *, xfrm_address_t *, u32);
1: + int (*fill_dst)(struct xfrm_dst *, struct net_device *, const struct flowi *);
1: + struct dst_entry *(*blackhole_route)(struct net *, struct dst_entry *);
1: };
1:
1: struct xfrm_state_afinfo {
1: - u8 family;
1: - u8 proto;
1: - const struct xfrm_type_offload *type_offload_esp;
1: - const struct xfrm_type *type_esp;
1: - const struct xfrm_type *type_ipip;
1: - const struct xfrm_type *type_ipip6;
1: - const struct xfrm_type *type_comp;
1: - const struct xfrm_type *type_ah;
1: - const struct xfrm_type *type_routing;
1: - const struct xfrm_type *type_dstopts;
1: - int (*output)(struct net *, struct sock *, struct sk_buff *);
1: - int (*transport_finish)(struct sk_buff *, int);
1: - void (*local_error)(struct sk_buff *, u32);
1: + u8 family;
1: + u8 proto;
1: + const struct xfrm_type_offload *type_offload_esp;
1: + const struct xfrm_type *type_esp;
1: + const struct xfrm_type *type_ipip;
1: + const struct xfrm_type *type_ipip6;
1: + const struct xfrm_type *type_comp;
1: + const struct xfrm_type *type_ah;
1: + const struct xfrm_type *type_routing;
1: + const struct xfrm_type *type_dstopts;
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + int (*transport_finish)(struct sk_buff *, int);
1: + void (*local_error)(struct sk_buff *, u32);
1: };
1:
1: struct ip_tunnel;
1: @@ -105856,509 +107236,514 @@ struct ip_tunnel;
1: struct ip6_tnl;
1:
1: struct xfrm_tunnel_skb_cb {
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - } header;
1: - union {
1: - struct ip_tunnel *ip4;
1: - struct ip6_tnl *ip6;
1: - } tunnel;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + union {
1: + struct ip_tunnel *ip4;
1: + struct ip6_tnl *ip6;
1: + } tunnel;
1: };
1:
1: struct xfrm_mode_skb_cb {
1: - struct xfrm_tunnel_skb_cb header;
1: - __be16 id;
1: - __be16 frag_off;
1: - u8 ihl;
1: - u8 tos;
1: - u8 ttl;
1: - u8 protocol;
1: - u8 optlen;
1: - u8 flow_lbl[3];
1: + struct xfrm_tunnel_skb_cb header;
1: + __be16 id;
1: + __be16 frag_off;
1: + u8 ihl;
1: + u8 tos;
1: + u8 ttl;
1: + u8 protocol;
1: + u8 optlen;
1: + u8 flow_lbl[3];
1: };
1:
1: struct xfrm_spi_skb_cb {
1: - struct xfrm_tunnel_skb_cb header;
1: - unsigned int daddroff;
1: - unsigned int family;
1: - __be32 seq;
1: + struct xfrm_tunnel_skb_cb header;
1: + unsigned int daddroff;
1: + unsigned int family;
1: + __be32 seq;
1: };
1:
1: struct xfrm_input_afinfo {
1: - u8 family;
1: - bool is_ipip;
1: - int (*callback)(struct sk_buff *, u8, int);
1: + u8 family;
1: + bool is_ipip;
1: + int (*callback)(struct sk_buff *, u8, int);
1: };
1:
1: struct xfrm4_protocol {
1: - int (*handler)(struct sk_buff *);
1: - int (*input_handler)(struct sk_buff *, int, __be32, int);
1: - int (*cb_handler)(struct sk_buff *, int);
1: - int (*err_handler)(struct sk_buff *, u32);
1: - struct xfrm4_protocol *next;
1: - int priority;
1: + int (*handler)(struct sk_buff *);
1: + int (*input_handler)(struct sk_buff *, int, __be32, int);
1: + int (*cb_handler)(struct sk_buff *, int);
1: + int (*err_handler)(struct sk_buff *, u32);
1: + struct xfrm4_protocol *next;
1: + int priority;
1: };
1:
1: typedef u64 (*btf_bpf_tcp_send_ack)(struct tcp_sock *, u32);
1:
1: struct seqcount_mutex {
1: - seqcount_t seqcount;
1: + seqcount_t seqcount;
1: };
1:
1: typedef struct seqcount_mutex seqcount_mutex_t;
1:
1: enum {
1: - XFRM_STATE_VOID = 0,
1: - XFRM_STATE_ACQ = 1,
1: - XFRM_STATE_VALID = 2,
1: - XFRM_STATE_ERROR = 3,
1: - XFRM_STATE_EXPIRED = 4,
1: - XFRM_STATE_DEAD = 5,
1: + XFRM_STATE_VOID = 0,
1: + XFRM_STATE_ACQ = 1,
1: + XFRM_STATE_VALID = 2,
1: + XFRM_STATE_ERROR = 3,
1: + XFRM_STATE_EXPIRED = 4,
1: + XFRM_STATE_DEAD = 5,
1: };
1:
1: struct xfrm_if;
1:
1: struct xfrm_if_cb {
1: - struct xfrm_if * (*decode_session)(struct sk_buff *, short unsigned int);
1: + struct xfrm_if *(*decode_session)(struct sk_buff *, short unsigned int);
1: };
1:
1: struct xfrm_if_parms {
1: - int link;
1: - u32 if_id;
1: + int link;
1: + u32 if_id;
1: };
1:
1: struct xfrm_if {
1: - struct xfrm_if *next;
1: - struct net_device *dev;
1: - struct net *net;
1: - struct xfrm_if_parms p;
1: - struct gro_cells gro_cells;
1: + struct xfrm_if *next;
1: + struct net_device *dev;
1: + struct net *net;
1: + struct xfrm_if_parms p;
1: + struct gro_cells gro_cells;
1: };
1:
1: struct xfrm_policy_walk {
1: - struct xfrm_policy_walk_entry walk;
1: - u8 type;
1: - u32 seq;
1: + struct xfrm_policy_walk_entry walk;
1: + u8 type;
1: + u32 seq;
1: };
1:
1: struct xfrmk_spdinfo {
1: - u32 incnt;
1: - u32 outcnt;
1: - u32 fwdcnt;
1: - u32 inscnt;
1: - u32 outscnt;
1: - u32 fwdscnt;
1: - u32 spdhcnt;
1: - u32 spdhmcnt;
1: + u32 incnt;
1: + u32 outcnt;
1: + u32 fwdcnt;
1: + u32 inscnt;
1: + u32 outscnt;
1: + u32 fwdscnt;
1: + u32 spdhcnt;
1: + u32 spdhmcnt;
1: };
1:
1: struct ip6_mh {
1: - __u8 ip6mh_proto;
1: - __u8 ip6mh_hdrlen;
1: - __u8 ip6mh_type;
1: - __u8 ip6mh_reserved;
1: - __u16 ip6mh_cksum;
1: - __u8 data[0];
1: + __u8 ip6mh_proto;
1: + __u8 ip6mh_hdrlen;
1: + __u8 ip6mh_type;
1: + __u8 ip6mh_reserved;
1: + __u16 ip6mh_cksum;
1: + __u8 data[0];
1: };
1:
1: struct xfrm_flo {
1: - struct dst_entry *dst_orig;
1: - u8 flags;
1: + struct dst_entry *dst_orig;
1: + u8 flags;
1: };
1:
1: struct xfrm_pol_inexact_node {
1: - struct rb_node node;
1: - union {
1: - xfrm_address_t addr;
1: - struct callback_head rcu;
1: - };
1: - u8 prefixlen;
1: - struct rb_root root;
1: - struct hlist_head hhead;
1: + struct rb_node node;
1: + union {
1: + xfrm_address_t addr;
1: + struct callback_head rcu;
1: + };
1: + u8 prefixlen;
1: + struct rb_root root;
1: + struct hlist_head hhead;
1: };
1:
1: struct xfrm_pol_inexact_key {
1: - possible_net_t net;
1: - u32 if_id;
1: - u16 family;
1: - u8 dir;
1: - u8 type;
1: + possible_net_t net;
1: + u32 if_id;
1: + u16 family;
1: + u8 dir;
1: + u8 type;
1: };
1:
1: struct xfrm_pol_inexact_bin {
1: - struct xfrm_pol_inexact_key k;
1: - struct rhash_head head;
1: - struct hlist_head hhead;
1: - seqcount_spinlock_t count;
1: - struct rb_root root_d;
1: - struct rb_root root_s;
1: - struct list_head inexact_bins;
1: - struct callback_head rcu;
1: + struct xfrm_pol_inexact_key k;
1: + struct rhash_head head;
1: + struct hlist_head hhead;
1: + seqcount_spinlock_t count;
1: + struct rb_root root_d;
1: + struct rb_root root_s;
1: + struct list_head inexact_bins;
1: + struct callback_head rcu;
1: };
1:
1: enum xfrm_pol_inexact_candidate_type {
1: - XFRM_POL_CAND_BOTH = 0,
1: - XFRM_POL_CAND_SADDR = 1,
1: - XFRM_POL_CAND_DADDR = 2,
1: - XFRM_POL_CAND_ANY = 3,
1: - XFRM_POL_CAND_MAX = 4,
1: + XFRM_POL_CAND_BOTH = 0,
1: + XFRM_POL_CAND_SADDR = 1,
1: + XFRM_POL_CAND_DADDR = 2,
1: + XFRM_POL_CAND_ANY = 3,
1: + XFRM_POL_CAND_MAX = 4,
1: };
1:
1: struct xfrm_pol_inexact_candidates {
1: - struct hlist_head *res[4];
1: + struct hlist_head *res[4];
1: };
1:
1: enum xfrm_ae_ftype_t {
1: - XFRM_AE_UNSPEC = 0,
1: - XFRM_AE_RTHR = 1,
1: - XFRM_AE_RVAL = 2,
1: - XFRM_AE_LVAL = 4,
1: - XFRM_AE_ETHR = 8,
1: - XFRM_AE_CR = 16,
1: - XFRM_AE_CE = 32,
1: - XFRM_AE_CU = 64,
1: - __XFRM_AE_MAX = 65,
1: + XFRM_AE_UNSPEC = 0,
1: + XFRM_AE_RTHR = 1,
1: + XFRM_AE_RVAL = 2,
1: + XFRM_AE_LVAL = 4,
1: + XFRM_AE_ETHR = 8,
1: + XFRM_AE_CR = 16,
1: + XFRM_AE_CE = 32,
1: + XFRM_AE_CU = 64,
1: + __XFRM_AE_MAX = 65,
1: };
1:
1: enum xfrm_nlgroups {
1: - XFRMNLGRP_NONE = 0,
1: - XFRMNLGRP_ACQUIRE = 1,
1: - XFRMNLGRP_EXPIRE = 2,
1: - XFRMNLGRP_SA = 3,
1: - XFRMNLGRP_POLICY = 4,
1: - XFRMNLGRP_AEVENTS = 5,
1: - XFRMNLGRP_REPORT = 6,
1: - XFRMNLGRP_MIGRATE = 7,
1: - XFRMNLGRP_MAPPING = 8,
1: - __XFRMNLGRP_MAX = 9,
1: + XFRMNLGRP_NONE = 0,
1: + XFRMNLGRP_ACQUIRE = 1,
1: + XFRMNLGRP_EXPIRE = 2,
1: + XFRMNLGRP_SA = 3,
1: + XFRMNLGRP_POLICY = 4,
1: + XFRMNLGRP_AEVENTS = 5,
1: + XFRMNLGRP_REPORT = 6,
1: + XFRMNLGRP_MIGRATE = 7,
1: + XFRMNLGRP_MAPPING = 8,
1: + __XFRMNLGRP_MAX = 9,
1: };
1:
1: enum {
1: - XFRM_MODE_FLAG_TUNNEL = 1,
1: + XFRM_MODE_FLAG_TUNNEL = 1,
1: };
1:
1: struct km_event {
1: - union {
1: - u32 hard;
1: - u32 proto;
1: - u32 byid;
1: - u32 aevent;
1: - u32 type;
1: - } data;
1: - u32 seq;
1: - u32 portid;
1: - u32 event;
1: - struct net *net;
1: + union {
1: + u32 hard;
1: + u32 proto;
1: + u32 byid;
1: + u32 aevent;
1: + u32 type;
1: + } data;
1: + u32 seq;
1: + u32 portid;
1: + u32 event;
1: + struct net *net;
1: };
1:
1: struct xfrm_kmaddress {
1: - xfrm_address_t local;
1: - xfrm_address_t remote;
1: - u32 reserved;
1: - u16 family;
1: + xfrm_address_t local;
1: + xfrm_address_t remote;
1: + u32 reserved;
1: + u16 family;
1: };
1:
1: struct xfrm_migrate {
1: - xfrm_address_t old_daddr;
1: - xfrm_address_t old_saddr;
1: - xfrm_address_t new_daddr;
1: - xfrm_address_t new_saddr;
1: - u8 proto;
1: - u8 mode;
1: - u16 reserved;
1: - u32 reqid;
1: - u16 old_family;
1: - u16 new_family;
1: + xfrm_address_t old_daddr;
1: + xfrm_address_t old_saddr;
1: + xfrm_address_t new_daddr;
1: + xfrm_address_t new_saddr;
1: + u8 proto;
1: + u8 mode;
1: + u16 reserved;
1: + u32 reqid;
1: + u16 old_family;
1: + u16 new_family;
1: };
1:
1: struct xfrm_mgr {
1: - struct list_head list;
1: - int (*notify)(struct xfrm_state *, const struct km_event *);
1: - int (*acquire)(struct xfrm_state *, struct xfrm_tmpl *, struct xfrm_policy *);
1: - struct xfrm_policy * (*compile_policy)(struct sock *, int, u8 *, int, int *);
1: - int (*new_mapping)(struct xfrm_state *, xfrm_address_t *, __be16);
1: - int (*notify_policy)(struct xfrm_policy *, int, const struct km_event *);
1: - int (*report)(struct net *, u8, struct xfrm_selector *, xfrm_address_t *);
1: - int (*migrate)(const struct xfrm_selector *, u8, u8, const struct xfrm_migrate *, int, const struct xfrm_kmaddress *, const struct xfrm_encap_tmpl *);
1: - bool (*is_alive)(const struct km_event *);
1: + struct list_head list;
1: + int (*notify)(struct xfrm_state *, const struct km_event *);
1: + int (*acquire)(struct xfrm_state *, struct xfrm_tmpl *, struct xfrm_policy *);
1: + struct xfrm_policy *(*compile_policy)(struct sock *, int, u8 *, int, int *);
1: + int (*new_mapping)(struct xfrm_state *, xfrm_address_t *, __be16);
1: + int (*notify_policy)(struct xfrm_policy *, int, const struct km_event *);
1: + int (*report)(struct net *, u8, struct xfrm_selector *, xfrm_address_t *);
1: + int (*migrate)(const struct xfrm_selector *, u8, u8,
1: + const struct xfrm_migrate *, int,
1: + const struct xfrm_kmaddress *, const struct xfrm_encap_tmpl *);
1: + bool (*is_alive)(const struct km_event *);
1: };
1:
1: struct xfrmk_sadinfo {
1: - u32 sadhcnt;
1: - u32 sadhmcnt;
1: - u32 sadcnt;
1: + u32 sadhcnt;
1: + u32 sadhmcnt;
1: + u32 sadcnt;
1: };
1:
1: struct xfrm_translator {
1: - int (*alloc_compat)(struct sk_buff *, const struct nlmsghdr *);
1: - struct nlmsghdr * (*rcv_msg_compat)(const struct nlmsghdr *, int, const struct nla_policy *, struct netlink_ext_ack *);
1: - int (*xlate_user_policy_sockptr)(u8 **, int);
1: - struct module *owner;
1: + int (*alloc_compat)(struct sk_buff *, const struct nlmsghdr *);
1: + struct nlmsghdr *(*rcv_msg_compat)(const struct nlmsghdr *, int,
1: + const struct nla_policy *,
1: + struct netlink_ext_ack *);
1: + int (*xlate_user_policy_sockptr)(u8 **, int);
1: + struct module *owner;
1: };
1:
1: struct ip_beet_phdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: - __u8 padlen;
1: - __u8 reserved;
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 padlen;
1: + __u8 reserved;
1: };
1:
1: struct ip_tunnel_6rd_parm {
1: - struct in6_addr prefix;
1: - __be32 relay_prefix;
1: - u16 prefixlen;
1: - u16 relay_prefixlen;
1: + struct in6_addr prefix;
1: + __be32 relay_prefix;
1: + u16 prefixlen;
1: + u16 relay_prefixlen;
1: };
1:
1: struct ip_tunnel_prl_entry;
1:
1: struct ip_tunnel {
1: - struct ip_tunnel *next;
1: - struct hlist_node hash_node;
1: - struct net_device *dev;
1: - struct net *net;
1: - long unsigned int err_time;
1: - int err_count;
1: - u32 i_seqno;
1: - u32 o_seqno;
1: - int tun_hlen;
1: - u32 index;
1: - u8 erspan_ver;
1: - u8 dir;
1: - u16 hwid;
1: - struct dst_cache dst_cache;
1: - struct ip_tunnel_parm parms;
1: - int mlink;
1: - int encap_hlen;
1: - int hlen;
1: - struct ip_tunnel_encap encap;
1: - struct ip_tunnel_6rd_parm ip6rd;
1: - struct ip_tunnel_prl_entry *prl;
1: - unsigned int prl_count;
1: - unsigned int ip_tnl_net_id;
1: - struct gro_cells gro_cells;
1: - __u32 fwmark;
1: - bool collect_md;
1: - bool ignore_df;
1: + struct ip_tunnel *next;
1: + struct hlist_node hash_node;
1: + struct net_device *dev;
1: + struct net *net;
1: + long unsigned int err_time;
1: + int err_count;
1: + u32 i_seqno;
1: + u32 o_seqno;
1: + int tun_hlen;
1: + u32 index;
1: + u8 erspan_ver;
1: + u8 dir;
1: + u16 hwid;
1: + struct dst_cache dst_cache;
1: + struct ip_tunnel_parm parms;
1: + int mlink;
1: + int encap_hlen;
1: + int hlen;
1: + struct ip_tunnel_encap encap;
1: + struct ip_tunnel_6rd_parm ip6rd;
1: + struct ip_tunnel_prl_entry *prl;
1: + unsigned int prl_count;
1: + unsigned int ip_tnl_net_id;
1: + struct gro_cells gro_cells;
1: + __u32 fwmark;
1: + bool collect_md;
1: + bool ignore_df;
1: };
1:
1: struct __ip6_tnl_parm {
1: - char name[16];
1: - int link;
1: - __u8 proto;
1: - __u8 encap_limit;
1: - __u8 hop_limit;
1: - bool collect_md;
1: - __be32 flowinfo;
1: - __u32 flags;
1: - struct in6_addr laddr;
1: - struct in6_addr raddr;
1: - __be16 i_flags;
1: - __be16 o_flags;
1: - __be32 i_key;
1: - __be32 o_key;
1: - __u32 fwmark;
1: - __u32 index;
1: - __u8 erspan_ver;
1: - __u8 dir;
1: - __u16 hwid;
1: + char name[16];
1: + int link;
1: + __u8 proto;
1: + __u8 encap_limit;
1: + __u8 hop_limit;
1: + bool collect_md;
1: + __be32 flowinfo;
1: + __u32 flags;
1: + struct in6_addr laddr;
1: + struct in6_addr raddr;
1: + __be16 i_flags;
1: + __be16 o_flags;
1: + __be32 i_key;
1: + __be32 o_key;
1: + __u32 fwmark;
1: + __u32 index;
1: + __u8 erspan_ver;
1: + __u8 dir;
1: + __u16 hwid;
1: };
1:
1: struct ip6_tnl {
1: - struct ip6_tnl *next;
1: - struct net_device *dev;
1: - struct net *net;
1: - struct __ip6_tnl_parm parms;
1: - struct flowi fl;
1: - struct dst_cache dst_cache;
1: - struct gro_cells gro_cells;
1: - int err_count;
1: - long unsigned int err_time;
1: - __u32 i_seqno;
1: - __u32 o_seqno;
1: - int hlen;
1: - int tun_hlen;
1: - int encap_hlen;
1: - struct ip_tunnel_encap encap;
1: - int mlink;
1: + struct ip6_tnl *next;
1: + struct net_device *dev;
1: + struct net *net;
1: + struct __ip6_tnl_parm parms;
1: + struct flowi fl;
1: + struct dst_cache dst_cache;
1: + struct gro_cells gro_cells;
1: + int err_count;
1: + long unsigned int err_time;
1: + __u32 i_seqno;
1: + __u32 o_seqno;
1: + int hlen;
1: + int tun_hlen;
1: + int encap_hlen;
1: + struct ip_tunnel_encap encap;
1: + int mlink;
1: };
1:
1: struct xfrm_skb_cb {
1: - struct xfrm_tunnel_skb_cb header;
1: - union {
1: - struct {
1: - __u32 low;
1: - __u32 hi;
1: - } output;
1: - struct {
1: - __be32 low;
1: - __be32 hi;
1: - } input;
1: - } seq;
1: + struct xfrm_tunnel_skb_cb header;
1: + union {
1: + struct {
1: + __u32 low;
1: + __u32 hi;
1: + } output;
1: + struct {
1: + __be32 low;
1: + __be32 hi;
1: + } input;
1: + } seq;
1: };
1:
1: struct ip_tunnel_prl_entry {
1: - struct ip_tunnel_prl_entry *next;
1: - __be32 addr;
1: - u16 flags;
1: - struct callback_head callback_head;
1: + struct ip_tunnel_prl_entry *next;
1: + __be32 addr;
1: + u16 flags;
1: + struct callback_head callback_head;
1: };
1:
1: struct xfrm_trans_tasklet {
1: - struct tasklet_struct tasklet;
1: - struct sk_buff_head queue;
1: + struct tasklet_struct tasklet;
1: + struct sk_buff_head queue;
1: };
1:
1: struct xfrm_trans_cb {
1: - union {
1: - struct inet_skb_parm h4;
1: - struct inet6_skb_parm h6;
1: - } header;
1: - int (*finish)(struct net *, struct sock *, struct sk_buff *);
1: - struct net *net;
1: + union {
1: + struct inet_skb_parm h4;
1: + struct inet6_skb_parm h6;
1: + } header;
1: + int (*finish)(struct net *, struct sock *, struct sk_buff *);
1: + struct net *net;
1: };
1:
1: struct xfrm_user_offload {
1: - int ifindex;
1: - __u8 flags;
1: + int ifindex;
1: + __u8 flags;
1: };
1:
1: struct espintcp_msg {
1: - struct sk_buff *skb;
1: - struct sk_msg skmsg;
1: - int offset;
1: - int len;
1: + struct sk_buff *skb;
1: + struct sk_msg skmsg;
1: + int offset;
1: + int len;
1: };
1:
1: struct espintcp_ctx {
1: - struct strparser strp;
1: - struct sk_buff_head ike_queue;
1: - struct sk_buff_head out_queue;
1: - struct espintcp_msg partial;
1: - void (*saved_data_ready)(struct sock *);
1: - void (*saved_write_space)(struct sock *);
1: - void (*saved_destruct)(struct sock *);
1: - struct work_struct work;
1: - bool tx_running;
1: + struct strparser strp;
1: + struct sk_buff_head ike_queue;
1: + struct sk_buff_head out_queue;
1: + struct espintcp_msg partial;
1: + void (*saved_data_ready)(struct sock *);
1: + void (*saved_write_space)(struct sock *);
1: + void (*saved_destruct)(struct sock *);
1: + struct work_struct work;
1: + bool tx_running;
1: };
1:
1: struct unix_stream_read_state {
1: - int (*recv_actor)(struct sk_buff *, int, int, struct unix_stream_read_state *);
1: - struct socket *socket;
1: - struct msghdr *msg;
1: - struct pipe_inode_info *pipe;
1: - size_t size;
1: - int flags;
1: - unsigned int splice_flags;
1: + int (*recv_actor)(struct sk_buff *, int, int,
1: + struct unix_stream_read_state *);
1: + struct socket *socket;
1: + struct msghdr *msg;
1: + struct pipe_inode_info *pipe;
1: + size_t size;
1: + int flags;
1: + unsigned int splice_flags;
1: };
1:
1: struct ipv6_params {
1: - __s32 disable_ipv6;
1: - __s32 autoconf;
1: + __s32 disable_ipv6;
1: + __s32 autoconf;
1: };
1:
1: enum flowlabel_reflect {
1: - FLOWLABEL_REFLECT_ESTABLISHED = 1,
1: - FLOWLABEL_REFLECT_TCP_RESET = 2,
1: - FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES = 4,
1: + FLOWLABEL_REFLECT_ESTABLISHED = 1,
1: + FLOWLABEL_REFLECT_TCP_RESET = 2,
1: + FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES = 4,
1: };
1:
1: struct in6_rtmsg {
1: - struct in6_addr rtmsg_dst;
1: - struct in6_addr rtmsg_src;
1: - struct in6_addr rtmsg_gateway;
1: - __u32 rtmsg_type;
1: - __u16 rtmsg_dst_len;
1: - __u16 rtmsg_src_len;
1: - __u32 rtmsg_metric;
1: - long unsigned int rtmsg_info;
1: - __u32 rtmsg_flags;
1: - int rtmsg_ifindex;
1: + struct in6_addr rtmsg_dst;
1: + struct in6_addr rtmsg_src;
1: + struct in6_addr rtmsg_gateway;
1: + __u32 rtmsg_type;
1: + __u16 rtmsg_dst_len;
1: + __u16 rtmsg_src_len;
1: + __u32 rtmsg_metric;
1: + long unsigned int rtmsg_info;
1: + __u32 rtmsg_flags;
1: + int rtmsg_ifindex;
1: };
1:
1: struct compat_in6_rtmsg {
1: - struct in6_addr rtmsg_dst;
1: - struct in6_addr rtmsg_src;
1: - struct in6_addr rtmsg_gateway;
1: - u32 rtmsg_type;
1: - u16 rtmsg_dst_len;
1: - u16 rtmsg_src_len;
1: - u32 rtmsg_metric;
1: - u32 rtmsg_info;
1: - u32 rtmsg_flags;
1: - s32 rtmsg_ifindex;
1: + struct in6_addr rtmsg_dst;
1: + struct in6_addr rtmsg_src;
1: + struct in6_addr rtmsg_gateway;
1: + u32 rtmsg_type;
1: + u16 rtmsg_dst_len;
1: + u16 rtmsg_src_len;
1: + u32 rtmsg_metric;
1: + u32 rtmsg_info;
1: + u32 rtmsg_flags;
1: + s32 rtmsg_ifindex;
1: };
1:
1: struct ac6_iter_state {
1: - struct seq_net_private p;
1: - struct net_device *dev;
1: - struct inet6_dev *idev;
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: };
1:
1: struct ip6_fraglist_iter {
1: - struct ipv6hdr *tmp_hdr;
1: - struct sk_buff *frag;
1: - int offset;
1: - unsigned int hlen;
1: - __be32 frag_id;
1: - u8 nexthdr;
1: + struct ipv6hdr *tmp_hdr;
1: + struct sk_buff *frag;
1: + int offset;
1: + unsigned int hlen;
1: + __be32 frag_id;
1: + u8 nexthdr;
1: };
1:
1: struct ip6_frag_state {
1: - u8 *prevhdr;
1: - unsigned int hlen;
1: - unsigned int mtu;
1: - unsigned int left;
1: - int offset;
1: - int ptr;
1: - int hroom;
1: - int troom;
1: - __be32 frag_id;
1: - u8 nexthdr;
1: + u8 *prevhdr;
1: + unsigned int hlen;
1: + unsigned int mtu;
1: + unsigned int left;
1: + int offset;
1: + int ptr;
1: + int hroom;
1: + int troom;
1: + __be32 frag_id;
1: + u8 nexthdr;
1: };
1:
1: struct ip6_ra_chain {
1: - struct ip6_ra_chain *next;
1: - struct sock *sk;
1: - int sel;
1: - void (*destructor)(struct sock *);
1: + struct ip6_ra_chain *next;
1: + struct sock *sk;
1: + int sel;
1: + void (*destructor)(struct sock *);
1: };
1:
1: struct ipcm6_cookie {
1: - struct sockcm_cookie sockc;
1: - __s16 hlimit;
1: - __s16 tclass;
1: - __s8 dontfrag;
1: - struct ipv6_txoptions *opt;
1: - __u16 gso_size;
1: + struct sockcm_cookie sockc;
1: + __s16 hlimit;
1: + __s16 tclass;
1: + __s8 dontfrag;
1: + struct ipv6_txoptions *opt;
1: + __u16 gso_size;
1: };
1:
1: enum {
1: - IFLA_INET6_UNSPEC = 0,
1: - IFLA_INET6_FLAGS = 1,
1: - IFLA_INET6_CONF = 2,
1: - IFLA_INET6_STATS = 3,
1: - IFLA_INET6_MCAST = 4,
1: - IFLA_INET6_CACHEINFO = 5,
1: - IFLA_INET6_ICMP6STATS = 6,
1: - IFLA_INET6_TOKEN = 7,
1: - IFLA_INET6_ADDR_GEN_MODE = 8,
1: - __IFLA_INET6_MAX = 9,
1: + IFLA_INET6_UNSPEC = 0,
1: + IFLA_INET6_FLAGS = 1,
1: + IFLA_INET6_CONF = 2,
1: + IFLA_INET6_STATS = 3,
1: + IFLA_INET6_MCAST = 4,
1: + IFLA_INET6_CACHEINFO = 5,
1: + IFLA_INET6_ICMP6STATS = 6,
1: + IFLA_INET6_TOKEN = 7,
1: + IFLA_INET6_ADDR_GEN_MODE = 8,
1: + __IFLA_INET6_MAX = 9,
1: };
1:
1: enum in6_addr_gen_mode {
1: - IN6_ADDR_GEN_MODE_EUI64 = 0,
1: - IN6_ADDR_GEN_MODE_NONE = 1,
1: - IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2,
1: - IN6_ADDR_GEN_MODE_RANDOM = 3,
1: + IN6_ADDR_GEN_MODE_EUI64 = 0,
1: + IN6_ADDR_GEN_MODE_NONE = 1,
1: + IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2,
1: + IN6_ADDR_GEN_MODE_RANDOM = 3,
1: };
1:
1: struct ifla_cacheinfo {
1: - __u32 max_reasm_len;
1: - __u32 tstamp;
1: - __u32 reachable_time;
1: - __u32 retrans_time;
1: + __u32 max_reasm_len;
1: + __u32 tstamp;
1: + __u32 reachable_time;
1: + __u32 retrans_time;
1: };
1:
1: struct wpan_phy;
1: @@ -106366,788 +107751,794 @@ struct wpan_phy;
1: struct wpan_dev_header_ops;
1:
1: struct wpan_dev {
1: - struct wpan_phy *wpan_phy;
1: - int iftype;
1: - struct list_head list;
1: - struct net_device *netdev;
1: - const struct wpan_dev_header_ops *header_ops;
1: - struct net_device *lowpan_dev;
1: - u32 identifier;
1: - __le16 pan_id;
1: - __le16 short_addr;
1: - __le64 extended_addr;
1: - atomic_t bsn;
1: - atomic_t dsn;
1: - u8 min_be;
1: - u8 max_be;
1: - u8 csma_retries;
1: - s8 frame_retries;
1: - bool lbt;
1: - bool promiscuous_mode;
1: - bool ackreq;
1: + struct wpan_phy *wpan_phy;
1: + int iftype;
1: + struct list_head list;
1: + struct net_device *netdev;
1: + const struct wpan_dev_header_ops *header_ops;
1: + struct net_device *lowpan_dev;
1: + u32 identifier;
1: + __le16 pan_id;
1: + __le16 short_addr;
1: + __le64 extended_addr;
1: + atomic_t bsn;
1: + atomic_t dsn;
1: + u8 min_be;
1: + u8 max_be;
1: + u8 csma_retries;
1: + s8 frame_retries;
1: + bool lbt;
1: + bool promiscuous_mode;
1: + bool ackreq;
1: };
1:
1: struct prefixmsg {
1: - unsigned char prefix_family;
1: - unsigned char prefix_pad1;
1: - short unsigned int prefix_pad2;
1: - int prefix_ifindex;
1: - unsigned char prefix_type;
1: - unsigned char prefix_len;
1: - unsigned char prefix_flags;
1: - unsigned char prefix_pad3;
1: + unsigned char prefix_family;
1: + unsigned char prefix_pad1;
1: + short unsigned int prefix_pad2;
1: + int prefix_ifindex;
1: + unsigned char prefix_type;
1: + unsigned char prefix_len;
1: + unsigned char prefix_flags;
1: + unsigned char prefix_pad3;
1: };
1:
1: enum {
1: - PREFIX_UNSPEC = 0,
1: - PREFIX_ADDRESS = 1,
1: - PREFIX_CACHEINFO = 2,
1: - __PREFIX_MAX = 3,
1: + PREFIX_UNSPEC = 0,
1: + PREFIX_ADDRESS = 1,
1: + PREFIX_CACHEINFO = 2,
1: + __PREFIX_MAX = 3,
1: };
1:
1: struct prefix_cacheinfo {
1: - __u32 preferred_time;
1: - __u32 valid_time;
1: + __u32 preferred_time;
1: + __u32 valid_time;
1: };
1:
1: struct in6_ifreq {
1: - struct in6_addr ifr6_addr;
1: - __u32 ifr6_prefixlen;
1: - int ifr6_ifindex;
1: -};
1: -
1: -enum {
1: - DEVCONF_FORWARDING = 0,
1: - DEVCONF_HOPLIMIT = 1,
1: - DEVCONF_MTU6 = 2,
1: - DEVCONF_ACCEPT_RA = 3,
1: - DEVCONF_ACCEPT_REDIRECTS = 4,
1: - DEVCONF_AUTOCONF = 5,
1: - DEVCONF_DAD_TRANSMITS = 6,
1: - DEVCONF_RTR_SOLICITS = 7,
1: - DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1: - DEVCONF_RTR_SOLICIT_DELAY = 9,
1: - DEVCONF_USE_TEMPADDR = 10,
1: - DEVCONF_TEMP_VALID_LFT = 11,
1: - DEVCONF_TEMP_PREFERED_LFT = 12,
1: - DEVCONF_REGEN_MAX_RETRY = 13,
1: - DEVCONF_MAX_DESYNC_FACTOR = 14,
1: - DEVCONF_MAX_ADDRESSES = 15,
1: - DEVCONF_FORCE_MLD_VERSION = 16,
1: - DEVCONF_ACCEPT_RA_DEFRTR = 17,
1: - DEVCONF_ACCEPT_RA_PINFO = 18,
1: - DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1: - DEVCONF_RTR_PROBE_INTERVAL = 20,
1: - DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1: - DEVCONF_PROXY_NDP = 22,
1: - DEVCONF_OPTIMISTIC_DAD = 23,
1: - DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1: - DEVCONF_MC_FORWARDING = 25,
1: - DEVCONF_DISABLE_IPV6 = 26,
1: - DEVCONF_ACCEPT_DAD = 27,
1: - DEVCONF_FORCE_TLLAO = 28,
1: - DEVCONF_NDISC_NOTIFY = 29,
1: - DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1: - DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1: - DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1: - DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1: - DEVCONF_USE_OPTIMISTIC = 34,
1: - DEVCONF_ACCEPT_RA_MTU = 35,
1: - DEVCONF_STABLE_SECRET = 36,
1: - DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1: - DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1: - DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1: - DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1: - DEVCONF_DROP_UNSOLICITED_NA = 41,
1: - DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1: - DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1: - DEVCONF_SEG6_ENABLED = 44,
1: - DEVCONF_SEG6_REQUIRE_HMAC = 45,
1: - DEVCONF_ENHANCED_DAD = 46,
1: - DEVCONF_ADDR_GEN_MODE = 47,
1: - DEVCONF_DISABLE_POLICY = 48,
1: - DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1: - DEVCONF_NDISC_TCLASS = 50,
1: - DEVCONF_RPL_SEG_ENABLED = 51,
1: - DEVCONF_MAX = 52,
1: -};
1: -
1: -enum {
1: - INET6_IFADDR_STATE_PREDAD = 0,
1: - INET6_IFADDR_STATE_DAD = 1,
1: - INET6_IFADDR_STATE_POSTDAD = 2,
1: - INET6_IFADDR_STATE_ERRDAD = 3,
1: - INET6_IFADDR_STATE_DEAD = 4,
1: + struct in6_addr ifr6_addr;
1: + __u32 ifr6_prefixlen;
1: + int ifr6_ifindex;
1: +};
1: +
1: +enum {
1: + DEVCONF_FORWARDING = 0,
1: + DEVCONF_HOPLIMIT = 1,
1: + DEVCONF_MTU6 = 2,
1: + DEVCONF_ACCEPT_RA = 3,
1: + DEVCONF_ACCEPT_REDIRECTS = 4,
1: + DEVCONF_AUTOCONF = 5,
1: + DEVCONF_DAD_TRANSMITS = 6,
1: + DEVCONF_RTR_SOLICITS = 7,
1: + DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1: + DEVCONF_RTR_SOLICIT_DELAY = 9,
1: + DEVCONF_USE_TEMPADDR = 10,
1: + DEVCONF_TEMP_VALID_LFT = 11,
1: + DEVCONF_TEMP_PREFERED_LFT = 12,
1: + DEVCONF_REGEN_MAX_RETRY = 13,
1: + DEVCONF_MAX_DESYNC_FACTOR = 14,
1: + DEVCONF_MAX_ADDRESSES = 15,
1: + DEVCONF_FORCE_MLD_VERSION = 16,
1: + DEVCONF_ACCEPT_RA_DEFRTR = 17,
1: + DEVCONF_ACCEPT_RA_PINFO = 18,
1: + DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1: + DEVCONF_RTR_PROBE_INTERVAL = 20,
1: + DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1: + DEVCONF_PROXY_NDP = 22,
1: + DEVCONF_OPTIMISTIC_DAD = 23,
1: + DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1: + DEVCONF_MC_FORWARDING = 25,
1: + DEVCONF_DISABLE_IPV6 = 26,
1: + DEVCONF_ACCEPT_DAD = 27,
1: + DEVCONF_FORCE_TLLAO = 28,
1: + DEVCONF_NDISC_NOTIFY = 29,
1: + DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1: + DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1: + DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1: + DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1: + DEVCONF_USE_OPTIMISTIC = 34,
1: + DEVCONF_ACCEPT_RA_MTU = 35,
1: + DEVCONF_STABLE_SECRET = 36,
1: + DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1: + DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1: + DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1: + DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1: + DEVCONF_DROP_UNSOLICITED_NA = 41,
1: + DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1: + DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1: + DEVCONF_SEG6_ENABLED = 44,
1: + DEVCONF_SEG6_REQUIRE_HMAC = 45,
1: + DEVCONF_ENHANCED_DAD = 46,
1: + DEVCONF_ADDR_GEN_MODE = 47,
1: + DEVCONF_DISABLE_POLICY = 48,
1: + DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1: + DEVCONF_NDISC_TCLASS = 50,
1: + DEVCONF_RPL_SEG_ENABLED = 51,
1: + DEVCONF_MAX = 52,
1: +};
1: +
1: +enum {
1: + INET6_IFADDR_STATE_PREDAD = 0,
1: + INET6_IFADDR_STATE_DAD = 1,
1: + INET6_IFADDR_STATE_POSTDAD = 2,
1: + INET6_IFADDR_STATE_ERRDAD = 3,
1: + INET6_IFADDR_STATE_DEAD = 4,
1: };
1:
1: enum nl802154_cca_modes {
1: - __NL802154_CCA_INVALID = 0,
1: - NL802154_CCA_ENERGY = 1,
1: - NL802154_CCA_CARRIER = 2,
1: - NL802154_CCA_ENERGY_CARRIER = 3,
1: - NL802154_CCA_ALOHA = 4,
1: - NL802154_CCA_UWB_SHR = 5,
1: - NL802154_CCA_UWB_MULTIPLEXED = 6,
1: - __NL802154_CCA_ATTR_AFTER_LAST = 7,
1: - NL802154_CCA_ATTR_MAX = 6,
1: + __NL802154_CCA_INVALID = 0,
1: + NL802154_CCA_ENERGY = 1,
1: + NL802154_CCA_CARRIER = 2,
1: + NL802154_CCA_ENERGY_CARRIER = 3,
1: + NL802154_CCA_ALOHA = 4,
1: + NL802154_CCA_UWB_SHR = 5,
1: + NL802154_CCA_UWB_MULTIPLEXED = 6,
1: + __NL802154_CCA_ATTR_AFTER_LAST = 7,
1: + NL802154_CCA_ATTR_MAX = 6,
1: };
1:
1: enum nl802154_cca_opts {
1: - NL802154_CCA_OPT_ENERGY_CARRIER_AND = 0,
1: - NL802154_CCA_OPT_ENERGY_CARRIER_OR = 1,
1: - __NL802154_CCA_OPT_ATTR_AFTER_LAST = 2,
1: - NL802154_CCA_OPT_ATTR_MAX = 1,
1: + NL802154_CCA_OPT_ENERGY_CARRIER_AND = 0,
1: + NL802154_CCA_OPT_ENERGY_CARRIER_OR = 1,
1: + __NL802154_CCA_OPT_ATTR_AFTER_LAST = 2,
1: + NL802154_CCA_OPT_ATTR_MAX = 1,
1: };
1:
1: enum nl802154_supported_bool_states {
1: - NL802154_SUPPORTED_BOOL_FALSE = 0,
1: - NL802154_SUPPORTED_BOOL_TRUE = 1,
1: - __NL802154_SUPPORTED_BOOL_INVALD = 2,
1: - NL802154_SUPPORTED_BOOL_BOTH = 3,
1: - __NL802154_SUPPORTED_BOOL_AFTER_LAST = 4,
1: - NL802154_SUPPORTED_BOOL_MAX = 3,
1: + NL802154_SUPPORTED_BOOL_FALSE = 0,
1: + NL802154_SUPPORTED_BOOL_TRUE = 1,
1: + __NL802154_SUPPORTED_BOOL_INVALD = 2,
1: + NL802154_SUPPORTED_BOOL_BOTH = 3,
1: + __NL802154_SUPPORTED_BOOL_AFTER_LAST = 4,
1: + NL802154_SUPPORTED_BOOL_MAX = 3,
1: };
1:
1: struct wpan_phy_supported {
1: - u32 channels[32];
1: - u32 cca_modes;
1: - u32 cca_opts;
1: - u32 iftypes;
1: - enum nl802154_supported_bool_states lbt;
1: - u8 min_minbe;
1: - u8 max_minbe;
1: - u8 min_maxbe;
1: - u8 max_maxbe;
1: - u8 min_csma_backoffs;
1: - u8 max_csma_backoffs;
1: - s8 min_frame_retries;
1: - s8 max_frame_retries;
1: - size_t tx_powers_size;
1: - size_t cca_ed_levels_size;
1: - const s32 *tx_powers;
1: - const s32 *cca_ed_levels;
1: + u32 channels[32];
1: + u32 cca_modes;
1: + u32 cca_opts;
1: + u32 iftypes;
1: + enum nl802154_supported_bool_states lbt;
1: + u8 min_minbe;
1: + u8 max_minbe;
1: + u8 min_maxbe;
1: + u8 max_maxbe;
1: + u8 min_csma_backoffs;
1: + u8 max_csma_backoffs;
1: + s8 min_frame_retries;
1: + s8 max_frame_retries;
1: + size_t tx_powers_size;
1: + size_t cca_ed_levels_size;
1: + const s32 *tx_powers;
1: + const s32 *cca_ed_levels;
1: };
1:
1: struct wpan_phy_cca {
1: - enum nl802154_cca_modes mode;
1: - enum nl802154_cca_opts opt;
1: + enum nl802154_cca_modes mode;
1: + enum nl802154_cca_opts opt;
1: };
1:
1: struct wpan_phy {
1: - const void *privid;
1: - u32 flags;
1: - u8 current_channel;
1: - u8 current_page;
1: - struct wpan_phy_supported supported;
1: - s32 transmit_power;
1: - struct wpan_phy_cca cca;
1: - __le64 perm_extended_addr;
1: - s32 cca_ed_level;
1: - u8 symbol_duration;
1: - u16 lifs_period;
1: - u16 sifs_period;
1: - struct device dev;
1: - possible_net_t _net;
1: - long: 64;
1: - long: 64;
1: - char priv[0];
1: + const void *privid;
1: + u32 flags;
1: + u8 current_channel;
1: + u8 current_page;
1: + struct wpan_phy_supported supported;
1: + s32 transmit_power;
1: + struct wpan_phy_cca cca;
1: + __le64 perm_extended_addr;
1: + s32 cca_ed_level;
1: + u8 symbol_duration;
1: + u16 lifs_period;
1: + u16 sifs_period;
1: + struct device dev;
1: + possible_net_t _net;
1: + long : 64;
1: + long : 64;
1: + char priv[0];
1: };
1:
1: struct ieee802154_addr {
1: - u8 mode;
1: - __le16 pan_id;
1: - union {
1: - __le16 short_addr;
1: - __le64 extended_addr;
1: - };
1: + u8 mode;
1: + __le16 pan_id;
1: + union {
1: + __le16 short_addr;
1: + __le64 extended_addr;
1: + };
1: };
1:
1: struct wpan_dev_header_ops {
1: - int (*create)(struct sk_buff *, struct net_device *, const struct ieee802154_addr *, const struct ieee802154_addr *, unsigned int);
1: + int (*create)(struct sk_buff *, struct net_device *,
1: + const struct ieee802154_addr *, const struct ieee802154_addr *,
1: + unsigned int);
1: };
1:
1: union fwnet_hwaddr {
1: - u8 u[16];
1: - struct {
1: - __be64 uniq_id;
1: - u8 max_rec;
1: - u8 sspd;
1: - __be16 fifo_hi;
1: - __be32 fifo_lo;
1: - } uc;
1: + u8 u[16];
1: + struct {
1: + __be64 uniq_id;
1: + u8 max_rec;
1: + u8 sspd;
1: + __be16 fifo_hi;
1: + __be32 fifo_lo;
1: + } uc;
1: };
1:
1: struct in6_validator_info {
1: - struct in6_addr i6vi_addr;
1: - struct inet6_dev *i6vi_dev;
1: - struct netlink_ext_ack *extack;
1: + struct in6_addr i6vi_addr;
1: + struct inet6_dev *i6vi_dev;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct ifa6_config {
1: - const struct in6_addr *pfx;
1: - unsigned int plen;
1: - const struct in6_addr *peer_pfx;
1: - u32 rt_priority;
1: - u32 ifa_flags;
1: - u32 preferred_lft;
1: - u32 valid_lft;
1: - u16 scope;
1: + const struct in6_addr *pfx;
1: + unsigned int plen;
1: + const struct in6_addr *peer_pfx;
1: + u32 rt_priority;
1: + u32 ifa_flags;
1: + u32 preferred_lft;
1: + u32 valid_lft;
1: + u16 scope;
1: };
1:
1: enum cleanup_prefix_rt_t {
1: - CLEANUP_PREFIX_RT_NOP = 0,
1: - CLEANUP_PREFIX_RT_DEL = 1,
1: - CLEANUP_PREFIX_RT_EXPIRE = 2,
1: + CLEANUP_PREFIX_RT_NOP = 0,
1: + CLEANUP_PREFIX_RT_DEL = 1,
1: + CLEANUP_PREFIX_RT_EXPIRE = 2,
1: };
1:
1: enum {
1: - IPV6_SADDR_RULE_INIT = 0,
1: - IPV6_SADDR_RULE_LOCAL = 1,
1: - IPV6_SADDR_RULE_SCOPE = 2,
1: - IPV6_SADDR_RULE_PREFERRED = 3,
1: - IPV6_SADDR_RULE_OIF = 4,
1: - IPV6_SADDR_RULE_LABEL = 5,
1: - IPV6_SADDR_RULE_PRIVACY = 6,
1: - IPV6_SADDR_RULE_ORCHID = 7,
1: - IPV6_SADDR_RULE_PREFIX = 8,
1: - IPV6_SADDR_RULE_MAX = 9,
1: + IPV6_SADDR_RULE_INIT = 0,
1: + IPV6_SADDR_RULE_LOCAL = 1,
1: + IPV6_SADDR_RULE_SCOPE = 2,
1: + IPV6_SADDR_RULE_PREFERRED = 3,
1: + IPV6_SADDR_RULE_OIF = 4,
1: + IPV6_SADDR_RULE_LABEL = 5,
1: + IPV6_SADDR_RULE_PRIVACY = 6,
1: + IPV6_SADDR_RULE_ORCHID = 7,
1: + IPV6_SADDR_RULE_PREFIX = 8,
1: + IPV6_SADDR_RULE_MAX = 9,
1: };
1:
1: struct ipv6_saddr_score {
1: - int rule;
1: - int addr_type;
1: - struct inet6_ifaddr *ifa;
1: - long unsigned int scorebits[1];
1: - int scopedist;
1: - int matchlen;
1: + int rule;
1: + int addr_type;
1: + struct inet6_ifaddr *ifa;
1: + long unsigned int scorebits[1];
1: + int scopedist;
1: + int matchlen;
1: };
1:
1: struct ipv6_saddr_dst {
1: - const struct in6_addr *addr;
1: - int ifindex;
1: - int scope;
1: - int label;
1: - unsigned int prefs;
1: + const struct in6_addr *addr;
1: + int ifindex;
1: + int scope;
1: + int label;
1: + unsigned int prefs;
1: };
1:
1: struct if6_iter_state {
1: - struct seq_net_private p;
1: - int bucket;
1: - int offset;
1: + struct seq_net_private p;
1: + int bucket;
1: + int offset;
1: };
1:
1: enum addr_type_t {
1: - UNICAST_ADDR = 0,
1: - MULTICAST_ADDR = 1,
1: - ANYCAST_ADDR = 2,
1: + UNICAST_ADDR = 0,
1: + MULTICAST_ADDR = 1,
1: + ANYCAST_ADDR = 2,
1: };
1:
1: struct inet6_fill_args {
1: - u32 portid;
1: - u32 seq;
1: - int event;
1: - unsigned int flags;
1: - int netnsid;
1: - int ifindex;
1: - enum addr_type_t type;
1: + u32 portid;
1: + u32 seq;
1: + int event;
1: + unsigned int flags;
1: + int netnsid;
1: + int ifindex;
1: + enum addr_type_t type;
1: };
1:
1: enum {
1: - DAD_PROCESS = 0,
1: - DAD_BEGIN = 1,
1: - DAD_ABORT = 2,
1: + DAD_PROCESS = 0,
1: + DAD_BEGIN = 1,
1: + DAD_ABORT = 2,
1: };
1:
1: struct ifaddrlblmsg {
1: - __u8 ifal_family;
1: - __u8 __ifal_reserved;
1: - __u8 ifal_prefixlen;
1: - __u8 ifal_flags;
1: - __u32 ifal_index;
1: - __u32 ifal_seq;
1: + __u8 ifal_family;
1: + __u8 __ifal_reserved;
1: + __u8 ifal_prefixlen;
1: + __u8 ifal_flags;
1: + __u32 ifal_index;
1: + __u32 ifal_seq;
1: };
1:
1: enum {
1: - IFAL_ADDRESS = 1,
1: - IFAL_LABEL = 2,
1: - __IFAL_MAX = 3,
1: + IFAL_ADDRESS = 1,
1: + IFAL_LABEL = 2,
1: + __IFAL_MAX = 3,
1: };
1:
1: struct ip6addrlbl_entry {
1: - struct in6_addr prefix;
1: - int prefixlen;
1: - int ifindex;
1: - int addrtype;
1: - u32 label;
1: - struct hlist_node list;
1: - struct callback_head rcu;
1: + struct in6_addr prefix;
1: + int prefixlen;
1: + int ifindex;
1: + int addrtype;
1: + u32 label;
1: + struct hlist_node list;
1: + struct callback_head rcu;
1: };
1:
1: struct ip6addrlbl_init_table {
1: - const struct in6_addr *prefix;
1: - int prefixlen;
1: - u32 label;
1: + const struct in6_addr *prefix;
1: + int prefixlen;
1: + u32 label;
1: };
1:
1: struct rd_msg {
1: - struct icmp6hdr icmph;
1: - struct in6_addr target;
1: - struct in6_addr dest;
1: - __u8 opt[0];
1: + struct icmp6hdr icmph;
1: + struct in6_addr target;
1: + struct in6_addr dest;
1: + __u8 opt[0];
1: };
1:
1: struct fib6_gc_args {
1: - int timeout;
1: - int more;
1: + int timeout;
1: + int more;
1: };
1:
1: struct rt6_exception {
1: - struct hlist_node hlist;
1: - struct rt6_info *rt6i;
1: - long unsigned int stamp;
1: - struct callback_head rcu;
1: + struct hlist_node hlist;
1: + struct rt6_info *rt6i;
1: + long unsigned int stamp;
1: + struct callback_head rcu;
1: };
1:
1: struct route_info {
1: - __u8 type;
1: - __u8 length;
1: - __u8 prefix_len;
1: - __u8 reserved_l: 3;
1: - __u8 route_pref: 2;
1: - __u8 reserved_h: 3;
1: - __be32 lifetime;
1: - __u8 prefix[0];
1: + __u8 type;
1: + __u8 length;
1: + __u8 prefix_len;
1: + __u8 reserved_l : 3;
1: + __u8 route_pref : 2;
1: + __u8 reserved_h : 3;
1: + __be32 lifetime;
1: + __u8 prefix[0];
1: };
1:
1: struct rt6_rtnl_dump_arg {
1: - struct sk_buff *skb;
1: - struct netlink_callback *cb;
1: - struct net *net;
1: - struct fib_dump_filter filter;
1: + struct sk_buff *skb;
1: + struct netlink_callback *cb;
1: + struct net *net;
1: + struct fib_dump_filter filter;
1: };
1:
1: struct netevent_redirect {
1: - struct dst_entry *old;
1: - struct dst_entry *new;
1: - struct neighbour *neigh;
1: - const void *daddr;
1: + struct dst_entry *old;
1: + struct dst_entry *new;
1: + struct neighbour *neigh;
1: + const void *daddr;
1: };
1:
1: struct trace_event_raw_fib6_table_lookup {
1: - struct trace_entry ent;
1: - u32 tb_id;
1: - int err;
1: - int oif;
1: - int iif;
1: - __u8 tos;
1: - __u8 scope;
1: - __u8 flags;
1: - __u8 src[16];
1: - __u8 dst[16];
1: - u16 sport;
1: - u16 dport;
1: - u8 proto;
1: - u8 rt_type;
1: - u32 __data_loc_name;
1: - __u8 gw[16];
1: - char __data[0];
1: + struct trace_entry ent;
1: + u32 tb_id;
1: + int err;
1: + int oif;
1: + int iif;
1: + __u8 tos;
1: + __u8 scope;
1: + __u8 flags;
1: + __u8 src[16];
1: + __u8 dst[16];
1: + u16 sport;
1: + u16 dport;
1: + u8 proto;
1: + u8 rt_type;
1: + u32 __data_loc_name;
1: + __u8 gw[16];
1: + char __data[0];
1: };
1:
1: struct trace_event_data_offsets_fib6_table_lookup {
1: - u32 name;
1: + u32 name;
1: };
1:
1: -typedef void (*btf_trace_fib6_table_lookup)(void *, const struct net *, const struct fib6_result *, struct fib6_table *, const struct flowi6 *);
1: +typedef void (*btf_trace_fib6_table_lookup)(void *, const struct net *,
1: + const struct fib6_result *,
1: + struct fib6_table *,
1: + const struct flowi6 *);
1:
1: enum rt6_nud_state {
1: - RT6_NUD_FAIL_HARD = 4294967293,
1: - RT6_NUD_FAIL_PROBE = 4294967294,
1: - RT6_NUD_FAIL_DO_RR = 4294967295,
1: - RT6_NUD_SUCCEED = 1,
1: + RT6_NUD_FAIL_HARD = 4294967293,
1: + RT6_NUD_FAIL_PROBE = 4294967294,
1: + RT6_NUD_FAIL_DO_RR = 4294967295,
1: + RT6_NUD_SUCCEED = 1,
1: };
1:
1: struct fib6_nh_dm_arg {
1: - struct net *net;
1: - const struct in6_addr *saddr;
1: - int oif;
1: - int flags;
1: - struct fib6_nh *nh;
1: + struct net *net;
1: + const struct in6_addr *saddr;
1: + int oif;
1: + int flags;
1: + struct fib6_nh *nh;
1: };
1:
1: struct __rt6_probe_work {
1: - struct work_struct work;
1: - struct in6_addr target;
1: - struct net_device *dev;
1: + struct work_struct work;
1: + struct in6_addr target;
1: + struct net_device *dev;
1: };
1:
1: struct fib6_nh_frl_arg {
1: - u32 flags;
1: - int oif;
1: - int strict;
1: - int *mpri;
1: - bool *do_rr;
1: - struct fib6_nh *nh;
1: + u32 flags;
1: + int oif;
1: + int strict;
1: + int *mpri;
1: + bool *do_rr;
1: + struct fib6_nh *nh;
1: };
1:
1: struct fib6_nh_excptn_arg {
1: - struct rt6_info *rt;
1: - int plen;
1: + struct rt6_info *rt;
1: + int plen;
1: };
1:
1: struct fib6_nh_match_arg {
1: - const struct net_device *dev;
1: - const struct in6_addr *gw;
1: - struct fib6_nh *match;
1: + const struct net_device *dev;
1: + const struct in6_addr *gw;
1: + struct fib6_nh *match;
1: };
1:
1: struct fib6_nh_age_excptn_arg {
1: - struct fib6_gc_args *gc_args;
1: - long unsigned int now;
1: + struct fib6_gc_args *gc_args;
1: + long unsigned int now;
1: };
1:
1: struct fib6_nh_rd_arg {
1: - struct fib6_result *res;
1: - struct flowi6 *fl6;
1: - const struct in6_addr *gw;
1: - struct rt6_info **ret;
1: + struct fib6_result *res;
1: + struct flowi6 *fl6;
1: + const struct in6_addr *gw;
1: + struct rt6_info **ret;
1: };
1:
1: struct ip6rd_flowi {
1: - struct flowi6 fl6;
1: - struct in6_addr gateway;
1: + struct flowi6 fl6;
1: + struct in6_addr gateway;
1: };
1:
1: struct fib6_nh_del_cached_rt_arg {
1: - struct fib6_config *cfg;
1: - struct fib6_info *f6i;
1: + struct fib6_config *cfg;
1: + struct fib6_info *f6i;
1: };
1:
1: struct arg_dev_net_ip {
1: - struct net_device *dev;
1: - struct net *net;
1: - struct in6_addr *addr;
1: + struct net_device *dev;
1: + struct net *net;
1: + struct in6_addr *addr;
1: };
1:
1: struct arg_netdev_event {
1: - const struct net_device *dev;
1: - union {
1: - unsigned char nh_flags;
1: - long unsigned int event;
1: - };
1: + const struct net_device *dev;
1: + union {
1: + unsigned char nh_flags;
1: + long unsigned int event;
1: + };
1: };
1:
1: struct rt6_mtu_change_arg {
1: - struct net_device *dev;
1: - unsigned int mtu;
1: - struct fib6_info *f6i;
1: + struct net_device *dev;
1: + unsigned int mtu;
1: + struct fib6_info *f6i;
1: };
1:
1: struct rt6_nh {
1: - struct fib6_info *fib6_info;
1: - struct fib6_config r_cfg;
1: - struct list_head next;
1: + struct fib6_info *fib6_info;
1: + struct fib6_config r_cfg;
1: + struct list_head next;
1: };
1:
1: struct fib6_nh_exception_dump_walker {
1: - struct rt6_rtnl_dump_arg *dump;
1: - struct fib6_info *rt;
1: - unsigned int flags;
1: - unsigned int skip;
1: - unsigned int count;
1: + struct rt6_rtnl_dump_arg *dump;
1: + struct fib6_info *rt;
1: + unsigned int flags;
1: + unsigned int skip;
1: + unsigned int count;
1: };
1:
1: enum fib6_walk_state {
1: - FWS_S = 0,
1: - FWS_L = 1,
1: - FWS_R = 2,
1: - FWS_C = 3,
1: - FWS_U = 4,
1: + FWS_S = 0,
1: + FWS_L = 1,
1: + FWS_R = 2,
1: + FWS_C = 3,
1: + FWS_U = 4,
1: };
1:
1: struct fib6_walker {
1: - struct list_head lh;
1: - struct fib6_node *root;
1: - struct fib6_node *node;
1: - struct fib6_info *leaf;
1: - enum fib6_walk_state state;
1: - unsigned int skip;
1: - unsigned int count;
1: - unsigned int skip_in_node;
1: - int (*func)(struct fib6_walker *);
1: - void *args;
1: + struct list_head lh;
1: + struct fib6_node *root;
1: + struct fib6_node *node;
1: + struct fib6_info *leaf;
1: + enum fib6_walk_state state;
1: + unsigned int skip;
1: + unsigned int count;
1: + unsigned int skip_in_node;
1: + int (*func)(struct fib6_walker *);
1: + void *args;
1: };
1:
1: struct fib6_entry_notifier_info {
1: - struct fib_notifier_info info;
1: - struct fib6_info *rt;
1: - unsigned int nsiblings;
1: + struct fib_notifier_info info;
1: + struct fib6_info *rt;
1: + unsigned int nsiblings;
1: };
1:
1: struct ipv6_route_iter {
1: - struct seq_net_private p;
1: - struct fib6_walker w;
1: - loff_t skip;
1: - struct fib6_table *tbl;
1: - int sernum;
1: + struct seq_net_private p;
1: + struct fib6_walker w;
1: + loff_t skip;
1: + struct fib6_table *tbl;
1: + int sernum;
1: };
1:
1: struct bpf_iter__ipv6_route {
1: - union {
1: - struct bpf_iter_meta *meta;
1: - };
1: - union {
1: - struct fib6_info *rt;
1: - };
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct fib6_info *rt;
1: + };
1: };
1:
1: struct fib6_cleaner {
1: - struct fib6_walker w;
1: - struct net *net;
1: - int (*func)(struct fib6_info *, void *);
1: - int sernum;
1: - void *arg;
1: - bool skip_notify;
1: + struct fib6_walker w;
1: + struct net *net;
1: + int (*func)(struct fib6_info *, void *);
1: + int sernum;
1: + void *arg;
1: + bool skip_notify;
1: };
1:
1: enum {
1: - FIB6_NO_SERNUM_CHANGE = 0,
1: + FIB6_NO_SERNUM_CHANGE = 0,
1: };
1:
1: struct fib6_dump_arg {
1: - struct net *net;
1: - struct notifier_block *nb;
1: - struct netlink_ext_ack *extack;
1: + struct net *net;
1: + struct notifier_block *nb;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct fib6_nh_pcpu_arg {
1: - struct fib6_info *from;
1: - const struct fib6_table *table;
1: + struct fib6_info *from;
1: + const struct fib6_table *table;
1: };
1:
1: struct lookup_args {
1: - int offset;
1: - const struct in6_addr *addr;
1: + int offset;
1: + const struct in6_addr *addr;
1: };
1:
1: struct ipv6_mreq {
1: - struct in6_addr ipv6mr_multiaddr;
1: - int ipv6mr_ifindex;
1: + struct in6_addr ipv6mr_multiaddr;
1: + int ipv6mr_ifindex;
1: };
1:
1: struct in6_flowlabel_req {
1: - struct in6_addr flr_dst;
1: - __be32 flr_label;
1: - __u8 flr_action;
1: - __u8 flr_share;
1: - __u16 flr_flags;
1: - __u16 flr_expires;
1: - __u16 flr_linger;
1: - __u32 __flr_pad;
1: + struct in6_addr flr_dst;
1: + __be32 flr_label;
1: + __u8 flr_action;
1: + __u8 flr_share;
1: + __u16 flr_flags;
1: + __u16 flr_expires;
1: + __u16 flr_linger;
1: + __u32 __flr_pad;
1: };
1:
1: struct ip6_mtuinfo {
1: - struct sockaddr_in6 ip6m_addr;
1: - __u32 ip6m_mtu;
1: + struct sockaddr_in6 ip6m_addr;
1: + __u32 ip6m_mtu;
1: };
1:
1: struct nduseroptmsg {
1: - unsigned char nduseropt_family;
1: - unsigned char nduseropt_pad1;
1: - short unsigned int nduseropt_opts_len;
1: - int nduseropt_ifindex;
1: - __u8 nduseropt_icmp_type;
1: - __u8 nduseropt_icmp_code;
1: - short unsigned int nduseropt_pad2;
1: - unsigned int nduseropt_pad3;
1: + unsigned char nduseropt_family;
1: + unsigned char nduseropt_pad1;
1: + short unsigned int nduseropt_opts_len;
1: + int nduseropt_ifindex;
1: + __u8 nduseropt_icmp_type;
1: + __u8 nduseropt_icmp_code;
1: + short unsigned int nduseropt_pad2;
1: + unsigned int nduseropt_pad3;
1: };
1:
1: enum {
1: - NDUSEROPT_UNSPEC = 0,
1: - NDUSEROPT_SRCADDR = 1,
1: - __NDUSEROPT_MAX = 2,
1: + NDUSEROPT_UNSPEC = 0,
1: + NDUSEROPT_SRCADDR = 1,
1: + __NDUSEROPT_MAX = 2,
1: };
1:
1: struct nd_msg {
1: - struct icmp6hdr icmph;
1: - struct in6_addr target;
1: - __u8 opt[0];
1: + struct icmp6hdr icmph;
1: + struct in6_addr target;
1: + __u8 opt[0];
1: };
1:
1: struct rs_msg {
1: - struct icmp6hdr icmph;
1: - __u8 opt[0];
1: + struct icmp6hdr icmph;
1: + __u8 opt[0];
1: };
1:
1: struct ra_msg {
1: - struct icmp6hdr icmph;
1: - __be32 reachable_time;
1: - __be32 retrans_timer;
1: + struct icmp6hdr icmph;
1: + __be32 reachable_time;
1: + __be32 retrans_timer;
1: };
1:
1: struct icmp6_filter {
1: - __u32 data[8];
1: + __u32 data[8];
1: };
1:
1: struct raw6_sock {
1: - struct inet_sock inet;
1: - __u32 checksum;
1: - __u32 offset;
1: - struct icmp6_filter filter;
1: - __u32 ip6mr_table;
1: - struct ipv6_pinfo inet6;
1: + struct inet_sock inet;
1: + __u32 checksum;
1: + __u32 offset;
1: + struct icmp6_filter filter;
1: + __u32 ip6mr_table;
1: + struct ipv6_pinfo inet6;
1: };
1:
1: typedef int mh_filter_t(struct sock *, struct sk_buff *);
1:
1: struct raw6_frag_vec {
1: - struct msghdr *msg;
1: - int hlen;
1: - char c[4];
1: + struct msghdr *msg;
1: + int hlen;
1: + char c[4];
1: };
1:
1: -typedef void ip6_icmp_send_t(struct sk_buff *, u8, u8, __u32, const struct in6_addr *);
1: +typedef void ip6_icmp_send_t(struct sk_buff *, u8, u8, __u32,
1: + const struct in6_addr *);
1:
1: struct ipv6_destopt_hao {
1: - __u8 type;
1: - __u8 length;
1: - struct in6_addr addr;
1: + __u8 type;
1: + __u8 length;
1: + struct in6_addr addr;
1: } __attribute__((packed));
1:
1: struct icmpv6_msg {
1: - struct sk_buff *skb;
1: - int offset;
1: - uint8_t type;
1: + struct sk_buff *skb;
1: + int offset;
1: + uint8_t type;
1: };
1:
1: struct icmp6_err {
1: - int err;
1: - int fatal;
1: + int err;
1: + int fatal;
1: };
1:
1: struct mld_msg {
1: - struct icmp6hdr mld_hdr;
1: - struct in6_addr mld_mca;
1: + struct icmp6hdr mld_hdr;
1: + struct in6_addr mld_mca;
1: };
1:
1: struct mld2_grec {
1: - __u8 grec_type;
1: - __u8 grec_auxwords;
1: - __be16 grec_nsrcs;
1: - struct in6_addr grec_mca;
1: - struct in6_addr grec_src[0];
1: + __u8 grec_type;
1: + __u8 grec_auxwords;
1: + __be16 grec_nsrcs;
1: + struct in6_addr grec_mca;
1: + struct in6_addr grec_src[0];
1: };
1:
1: struct mld2_report {
1: - struct icmp6hdr mld2r_hdr;
1: - struct mld2_grec mld2r_grec[0];
1: + struct icmp6hdr mld2r_hdr;
1: + struct mld2_grec mld2r_grec[0];
1: };
1:
1: struct mld2_query {
1: - struct icmp6hdr mld2q_hdr;
1: - struct in6_addr mld2q_mca;
1: - __u8 mld2q_qrv: 3;
1: - __u8 mld2q_suppress: 1;
1: - __u8 mld2q_resv2: 4;
1: - __u8 mld2q_qqic;
1: - __be16 mld2q_nsrcs;
1: - struct in6_addr mld2q_srcs[0];
1: + struct icmp6hdr mld2q_hdr;
1: + struct in6_addr mld2q_mca;
1: + __u8 mld2q_qrv : 3;
1: + __u8 mld2q_suppress : 1;
1: + __u8 mld2q_resv2 : 4;
1: + __u8 mld2q_qqic;
1: + __be16 mld2q_nsrcs;
1: + struct in6_addr mld2q_srcs[0];
1: };
1:
1: struct igmp6_mc_iter_state {
1: - struct seq_net_private p;
1: - struct net_device *dev;
1: - struct inet6_dev *idev;
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: };
1:
1: struct igmp6_mcf_iter_state {
1: - struct seq_net_private p;
1: - struct net_device *dev;
1: - struct inet6_dev *idev;
1: - struct ifmcaddr6 *im;
1: + struct seq_net_private p;
1: + struct net_device *dev;
1: + struct inet6_dev *idev;
1: + struct ifmcaddr6 *im;
1: };
1:
1: enum ip6_defrag_users {
1: - IP6_DEFRAG_LOCAL_DELIVER = 0,
1: - IP6_DEFRAG_CONNTRACK_IN = 1,
1: - __IP6_DEFRAG_CONNTRACK_IN = 65536,
1: - IP6_DEFRAG_CONNTRACK_OUT = 65537,
1: - __IP6_DEFRAG_CONNTRACK_OUT = 131072,
1: - IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 131073,
1: - __IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 196608,
1: + IP6_DEFRAG_LOCAL_DELIVER = 0,
1: + IP6_DEFRAG_CONNTRACK_IN = 1,
1: + __IP6_DEFRAG_CONNTRACK_IN = 65536,
1: + IP6_DEFRAG_CONNTRACK_OUT = 65537,
1: + __IP6_DEFRAG_CONNTRACK_OUT = 131072,
1: + IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 131073,
1: + __IP6_DEFRAG_CONNTRACK_BRIDGE_IN = 196608,
1: };
1:
1: struct frag_queue {
1: - struct inet_frag_queue q;
1: - int iif;
1: - __u16 nhoffset;
1: - u8 ecn;
1: + struct inet_frag_queue q;
1: + int iif;
1: + __u16 nhoffset;
1: + u8 ecn;
1: };
1:
1: struct tcp6_pseudohdr {
1: - struct in6_addr saddr;
1: - struct in6_addr daddr;
1: - __be32 len;
1: - __be32 protocol;
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: + __be32 len;
1: + __be32 protocol;
1: };
1:
1: struct rt0_hdr {
1: - struct ipv6_rt_hdr rt_hdr;
1: - __u32 reserved;
1: - struct in6_addr addr[0];
1: + struct ipv6_rt_hdr rt_hdr;
1: + __u32 reserved;
1: + struct in6_addr addr[0];
1: };
1:
1: struct ipv6_rpl_sr_hdr {
1: - __u8 nexthdr;
1: - __u8 hdrlen;
1: - __u8 type;
1: - __u8 segments_left;
1: - __u32 cmpre: 4;
1: - __u32 cmpri: 4;
1: - __u32 reserved: 4;
1: - __u32 pad: 4;
1: - __u32 reserved1: 16;
1: - union {
1: - struct in6_addr addr[0];
1: - __u8 data[0];
1: - } segments;
1: + __u8 nexthdr;
1: + __u8 hdrlen;
1: + __u8 type;
1: + __u8 segments_left;
1: + __u32 cmpre : 4;
1: + __u32 cmpri : 4;
1: + __u32 reserved : 4;
1: + __u32 pad : 4;
1: + __u32 reserved1 : 16;
1: + union {
1: + struct in6_addr addr[0];
1: + __u8 data[0];
1: + } segments;
1: };
1:
1: struct tlvtype_proc {
1: - int type;
1: - bool (*func)(struct sk_buff *, int);
1: + int type;
1: + bool (*func)(struct sk_buff *, int);
1: };
1:
1: struct ip6fl_iter_state {
1: - struct seq_net_private p;
1: - struct pid_namespace *pid_ns;
1: - int bucket;
1: + struct seq_net_private p;
1: + struct pid_namespace *pid_ns;
1: + int bucket;
1: };
1:
1: struct sr6_tlv {
1: - __u8 type;
1: - __u8 len;
1: - __u8 data[0];
1: + __u8 type;
1: + __u8 len;
1: + __u8 data[0];
1: };
1:
1: enum {
1: - SEG6_ATTR_UNSPEC = 0,
1: - SEG6_ATTR_DST = 1,
1: - SEG6_ATTR_DSTLEN = 2,
1: - SEG6_ATTR_HMACKEYID = 3,
1: - SEG6_ATTR_SECRET = 4,
1: - SEG6_ATTR_SECRETLEN = 5,
1: - SEG6_ATTR_ALGID = 6,
1: - SEG6_ATTR_HMACINFO = 7,
1: - __SEG6_ATTR_MAX = 8,
1: + SEG6_ATTR_UNSPEC = 0,
1: + SEG6_ATTR_DST = 1,
1: + SEG6_ATTR_DSTLEN = 2,
1: + SEG6_ATTR_HMACKEYID = 3,
1: + SEG6_ATTR_SECRET = 4,
1: + SEG6_ATTR_SECRETLEN = 5,
1: + SEG6_ATTR_ALGID = 6,
1: + SEG6_ATTR_HMACINFO = 7,
1: + __SEG6_ATTR_MAX = 8,
1: };
1:
1: enum {
1: - SEG6_CMD_UNSPEC = 0,
1: - SEG6_CMD_SETHMAC = 1,
1: - SEG6_CMD_DUMPHMAC = 2,
1: - SEG6_CMD_SET_TUNSRC = 3,
1: - SEG6_CMD_GET_TUNSRC = 4,
1: - __SEG6_CMD_MAX = 5,
1: + SEG6_CMD_UNSPEC = 0,
1: + SEG6_CMD_SETHMAC = 1,
1: + SEG6_CMD_DUMPHMAC = 2,
1: + SEG6_CMD_SET_TUNSRC = 3,
1: + SEG6_CMD_GET_TUNSRC = 4,
1: + __SEG6_CMD_MAX = 5,
1: };
1:
1: typedef short unsigned int mifi_t;
1: @@ -107155,340 +108546,346 @@ typedef short unsigned int mifi_t;
1: typedef __u32 if_mask;
1:
1: struct if_set {
1: - if_mask ifs_bits[8];
1: + if_mask ifs_bits[8];
1: };
1:
1: struct mif6ctl {
1: - mifi_t mif6c_mifi;
1: - unsigned char mif6c_flags;
1: - unsigned char vifc_threshold;
1: - __u16 mif6c_pifi;
1: - unsigned int vifc_rate_limit;
1: + mifi_t mif6c_mifi;
1: + unsigned char mif6c_flags;
1: + unsigned char vifc_threshold;
1: + __u16 mif6c_pifi;
1: + unsigned int vifc_rate_limit;
1: };
1:
1: struct mf6cctl {
1: - struct sockaddr_in6 mf6cc_origin;
1: - struct sockaddr_in6 mf6cc_mcastgrp;
1: - mifi_t mf6cc_parent;
1: - struct if_set mf6cc_ifset;
1: + struct sockaddr_in6 mf6cc_origin;
1: + struct sockaddr_in6 mf6cc_mcastgrp;
1: + mifi_t mf6cc_parent;
1: + struct if_set mf6cc_ifset;
1: };
1:
1: struct sioc_sg_req6 {
1: - struct sockaddr_in6 src;
1: - struct sockaddr_in6 grp;
1: - long unsigned int pktcnt;
1: - long unsigned int bytecnt;
1: - long unsigned int wrong_if;
1: + struct sockaddr_in6 src;
1: + struct sockaddr_in6 grp;
1: + long unsigned int pktcnt;
1: + long unsigned int bytecnt;
1: + long unsigned int wrong_if;
1: };
1:
1: struct sioc_mif_req6 {
1: - mifi_t mifi;
1: - long unsigned int icount;
1: - long unsigned int ocount;
1: - long unsigned int ibytes;
1: - long unsigned int obytes;
1: + mifi_t mifi;
1: + long unsigned int icount;
1: + long unsigned int ocount;
1: + long unsigned int ibytes;
1: + long unsigned int obytes;
1: };
1:
1: struct mrt6msg {
1: - __u8 im6_mbz;
1: - __u8 im6_msgtype;
1: - __u16 im6_mif;
1: - __u32 im6_pad;
1: - struct in6_addr im6_src;
1: - struct in6_addr im6_dst;
1: + __u8 im6_mbz;
1: + __u8 im6_msgtype;
1: + __u16 im6_mif;
1: + __u32 im6_pad;
1: + struct in6_addr im6_src;
1: + struct in6_addr im6_dst;
1: };
1:
1: enum {
1: - IP6MRA_CREPORT_UNSPEC = 0,
1: - IP6MRA_CREPORT_MSGTYPE = 1,
1: - IP6MRA_CREPORT_MIF_ID = 2,
1: - IP6MRA_CREPORT_SRC_ADDR = 3,
1: - IP6MRA_CREPORT_DST_ADDR = 4,
1: - IP6MRA_CREPORT_PKT = 5,
1: - __IP6MRA_CREPORT_MAX = 6,
1: + IP6MRA_CREPORT_UNSPEC = 0,
1: + IP6MRA_CREPORT_MSGTYPE = 1,
1: + IP6MRA_CREPORT_MIF_ID = 2,
1: + IP6MRA_CREPORT_SRC_ADDR = 3,
1: + IP6MRA_CREPORT_DST_ADDR = 4,
1: + IP6MRA_CREPORT_PKT = 5,
1: + __IP6MRA_CREPORT_MAX = 6,
1: };
1:
1: struct mfc6_cache_cmp_arg {
1: - struct in6_addr mf6c_mcastgrp;
1: - struct in6_addr mf6c_origin;
1: + struct in6_addr mf6c_mcastgrp;
1: + struct in6_addr mf6c_origin;
1: };
1:
1: struct mfc6_cache {
1: - struct mr_mfc _c;
1: - union {
1: - struct {
1: - struct in6_addr mf6c_mcastgrp;
1: - struct in6_addr mf6c_origin;
1: - };
1: - struct mfc6_cache_cmp_arg cmparg;
1: - };
1: + struct mr_mfc _c;
1: + union {
1: + struct {
1: + struct in6_addr mf6c_mcastgrp;
1: + struct in6_addr mf6c_origin;
1: + };
1: + struct mfc6_cache_cmp_arg cmparg;
1: + };
1: };
1:
1: struct ip6mr_result {
1: - struct mr_table *mrt;
1: + struct mr_table *mrt;
1: };
1:
1: struct compat_sioc_sg_req6 {
1: - struct sockaddr_in6 src;
1: - struct sockaddr_in6 grp;
1: - compat_ulong_t pktcnt;
1: - compat_ulong_t bytecnt;
1: - compat_ulong_t wrong_if;
1: + struct sockaddr_in6 src;
1: + struct sockaddr_in6 grp;
1: + compat_ulong_t pktcnt;
1: + compat_ulong_t bytecnt;
1: + compat_ulong_t wrong_if;
1: };
1:
1: struct compat_sioc_mif_req6 {
1: - mifi_t mifi;
1: - compat_ulong_t icount;
1: - compat_ulong_t ocount;
1: - compat_ulong_t ibytes;
1: - compat_ulong_t obytes;
1: + mifi_t mifi;
1: + compat_ulong_t icount;
1: + compat_ulong_t ocount;
1: + compat_ulong_t ibytes;
1: + compat_ulong_t obytes;
1: };
1:
1: struct xfrm6_protocol {
1: - int (*handler)(struct sk_buff *);
1: - int (*input_handler)(struct sk_buff *, int, __be32, int);
1: - int (*cb_handler)(struct sk_buff *, int);
1: - int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int, __be32);
1: - struct xfrm6_protocol *next;
1: - int priority;
1: + int (*handler)(struct sk_buff *);
1: + int (*input_handler)(struct sk_buff *, int, __be32, int);
1: + int (*cb_handler)(struct sk_buff *, int);
1: + int (*err_handler)(struct sk_buff *, struct inet6_skb_parm *, u8, u8, int,
1: + __be32);
1: + struct xfrm6_protocol *next;
1: + int priority;
1: };
1:
1: struct br_input_skb_cb {
1: - struct net_device *brdev;
1: - u16 frag_max_size;
1: - u8 igmp;
1: - u8 mrouters_only: 1;
1: - u8 proxyarp_replied: 1;
1: - u8 src_port_isolated: 1;
1: - u8 vlan_filtered: 1;
1: - u8 br_netfilter_broute: 1;
1: - int offload_fwd_mark;
1: + struct net_device *brdev;
1: + u16 frag_max_size;
1: + u8 igmp;
1: + u8 mrouters_only : 1;
1: + u8 proxyarp_replied : 1;
1: + u8 src_port_isolated : 1;
1: + u8 vlan_filtered : 1;
1: + u8 br_netfilter_broute : 1;
1: + int offload_fwd_mark;
1: };
1:
1: struct nf_bridge_frag_data;
1:
1: -typedef struct rt6_info * (*pol_lookup_t)(struct net *, struct fib6_table *, struct flowi6 *, const struct sk_buff *, int);
1: +typedef struct rt6_info *(*pol_lookup_t)(struct net *, struct fib6_table *,
1: + struct flowi6 *,
1: + const struct sk_buff *, int);
1:
1: struct fib6_rule {
1: - struct fib_rule common;
1: - struct rt6key src;
1: - struct rt6key dst;
1: - u8 tclass;
1: + struct fib_rule common;
1: + struct rt6key src;
1: + struct rt6key dst;
1: + u8 tclass;
1: };
1:
1: struct calipso_doi;
1:
1: struct netlbl_calipso_ops {
1: - int (*doi_add)(struct calipso_doi *, struct netlbl_audit *);
1: - void (*doi_free)(struct calipso_doi *);
1: - int (*doi_remove)(u32, struct netlbl_audit *);
1: - struct calipso_doi * (*doi_getdef)(u32);
1: - void (*doi_putdef)(struct calipso_doi *);
1: - int (*doi_walk)(u32 *, int (*)(struct calipso_doi *, void *), void *);
1: - int (*sock_getattr)(struct sock *, struct netlbl_lsm_secattr *);
1: - int (*sock_setattr)(struct sock *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: - void (*sock_delattr)(struct sock *);
1: - int (*req_setattr)(struct request_sock *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: - void (*req_delattr)(struct request_sock *);
1: - int (*opt_getattr)(const unsigned char *, struct netlbl_lsm_secattr *);
1: - unsigned char * (*skbuff_optptr)(const struct sk_buff *);
1: - int (*skbuff_setattr)(struct sk_buff *, const struct calipso_doi *, const struct netlbl_lsm_secattr *);
1: - int (*skbuff_delattr)(struct sk_buff *);
1: - void (*cache_invalidate)();
1: - int (*cache_add)(const unsigned char *, const struct netlbl_lsm_secattr *);
1: + int (*doi_add)(struct calipso_doi *, struct netlbl_audit *);
1: + void (*doi_free)(struct calipso_doi *);
1: + int (*doi_remove)(u32, struct netlbl_audit *);
1: + struct calipso_doi *(*doi_getdef)(u32);
1: + void (*doi_putdef)(struct calipso_doi *);
1: + int (*doi_walk)(u32 *, int (*)(struct calipso_doi *, void *), void *);
1: + int (*sock_getattr)(struct sock *, struct netlbl_lsm_secattr *);
1: + int (*sock_setattr)(struct sock *, const struct calipso_doi *,
1: + const struct netlbl_lsm_secattr *);
1: + void (*sock_delattr)(struct sock *);
1: + int (*req_setattr)(struct request_sock *, const struct calipso_doi *,
1: + const struct netlbl_lsm_secattr *);
1: + void (*req_delattr)(struct request_sock *);
1: + int (*opt_getattr)(const unsigned char *, struct netlbl_lsm_secattr *);
1: + unsigned char *(*skbuff_optptr)(const struct sk_buff *);
1: + int (*skbuff_setattr)(struct sk_buff *, const struct calipso_doi *,
1: + const struct netlbl_lsm_secattr *);
1: + int (*skbuff_delattr)(struct sk_buff *);
1: + void (*cache_invalidate)();
1: + int (*cache_add)(const unsigned char *, const struct netlbl_lsm_secattr *);
1: };
1:
1: struct calipso_doi {
1: - u32 doi;
1: - u32 type;
1: - refcount_t refcount;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + u32 doi;
1: + u32 type;
1: + refcount_t refcount;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct calipso_map_cache_bkt {
1: - spinlock_t lock;
1: - u32 size;
1: - struct list_head list;
1: + spinlock_t lock;
1: + u32 size;
1: + struct list_head list;
1: };
1:
1: struct calipso_map_cache_entry {
1: - u32 hash;
1: - unsigned char *key;
1: - size_t key_len;
1: - struct netlbl_lsm_cache *lsm_data;
1: - u32 activity;
1: - struct list_head list;
1: + u32 hash;
1: + unsigned char *key;
1: + size_t key_len;
1: + struct netlbl_lsm_cache *lsm_data;
1: + u32 activity;
1: + struct list_head list;
1: };
1:
1: enum {
1: - SEG6_IPTUNNEL_UNSPEC = 0,
1: - SEG6_IPTUNNEL_SRH = 1,
1: - __SEG6_IPTUNNEL_MAX = 2,
1: + SEG6_IPTUNNEL_UNSPEC = 0,
1: + SEG6_IPTUNNEL_SRH = 1,
1: + __SEG6_IPTUNNEL_MAX = 2,
1: };
1:
1: struct seg6_iptunnel_encap {
1: - int mode;
1: - struct ipv6_sr_hdr srh[0];
1: + int mode;
1: + struct ipv6_sr_hdr srh[0];
1: };
1:
1: enum {
1: - SEG6_IPTUN_MODE_INLINE = 0,
1: - SEG6_IPTUN_MODE_ENCAP = 1,
1: - SEG6_IPTUN_MODE_L2ENCAP = 2,
1: + SEG6_IPTUN_MODE_INLINE = 0,
1: + SEG6_IPTUN_MODE_ENCAP = 1,
1: + SEG6_IPTUN_MODE_L2ENCAP = 2,
1: };
1:
1: struct seg6_lwt {
1: - struct dst_cache cache;
1: - struct seg6_iptunnel_encap tuninfo[0];
1: + struct dst_cache cache;
1: + struct seg6_iptunnel_encap tuninfo[0];
1: };
1:
1: enum {
1: - SEG6_LOCAL_UNSPEC = 0,
1: - SEG6_LOCAL_ACTION = 1,
1: - SEG6_LOCAL_SRH = 2,
1: - SEG6_LOCAL_TABLE = 3,
1: - SEG6_LOCAL_NH4 = 4,
1: - SEG6_LOCAL_NH6 = 5,
1: - SEG6_LOCAL_IIF = 6,
1: - SEG6_LOCAL_OIF = 7,
1: - SEG6_LOCAL_BPF = 8,
1: - __SEG6_LOCAL_MAX = 9,
1: + SEG6_LOCAL_UNSPEC = 0,
1: + SEG6_LOCAL_ACTION = 1,
1: + SEG6_LOCAL_SRH = 2,
1: + SEG6_LOCAL_TABLE = 3,
1: + SEG6_LOCAL_NH4 = 4,
1: + SEG6_LOCAL_NH6 = 5,
1: + SEG6_LOCAL_IIF = 6,
1: + SEG6_LOCAL_OIF = 7,
1: + SEG6_LOCAL_BPF = 8,
1: + __SEG6_LOCAL_MAX = 9,
1: };
1:
1: enum {
1: - SEG6_LOCAL_BPF_PROG_UNSPEC = 0,
1: - SEG6_LOCAL_BPF_PROG = 1,
1: - SEG6_LOCAL_BPF_PROG_NAME = 2,
1: - __SEG6_LOCAL_BPF_PROG_MAX = 3,
1: + SEG6_LOCAL_BPF_PROG_UNSPEC = 0,
1: + SEG6_LOCAL_BPF_PROG = 1,
1: + SEG6_LOCAL_BPF_PROG_NAME = 2,
1: + __SEG6_LOCAL_BPF_PROG_MAX = 3,
1: };
1:
1: struct seg6_local_lwt;
1:
1: struct seg6_action_desc {
1: - int action;
1: - long unsigned int attrs;
1: - int (*input)(struct sk_buff *, struct seg6_local_lwt *);
1: - int static_headroom;
1: + int action;
1: + long unsigned int attrs;
1: + int (*input)(struct sk_buff *, struct seg6_local_lwt *);
1: + int static_headroom;
1: };
1:
1: struct seg6_local_lwt {
1: - int action;
1: - struct ipv6_sr_hdr *srh;
1: - int table;
1: - struct in_addr nh4;
1: - struct in6_addr nh6;
1: - int iif;
1: - int oif;
1: - struct bpf_lwt_prog bpf;
1: - int headroom;
1: - struct seg6_action_desc *desc;
1: + int action;
1: + struct ipv6_sr_hdr *srh;
1: + int table;
1: + struct in_addr nh4;
1: + struct in6_addr nh6;
1: + int iif;
1: + int oif;
1: + struct bpf_lwt_prog bpf;
1: + int headroom;
1: + struct seg6_action_desc *desc;
1: };
1:
1: struct seg6_action_param {
1: - int (*parse)(struct nlattr **, struct seg6_local_lwt *);
1: - int (*put)(struct sk_buff *, struct seg6_local_lwt *);
1: - int (*cmp)(struct seg6_local_lwt *, struct seg6_local_lwt *);
1: + int (*parse)(struct nlattr **, struct seg6_local_lwt *);
1: + int (*put)(struct sk_buff *, struct seg6_local_lwt *);
1: + int (*cmp)(struct seg6_local_lwt *, struct seg6_local_lwt *);
1: };
1:
1: enum {
1: - RPL_IPTUNNEL_UNSPEC = 0,
1: - RPL_IPTUNNEL_SRH = 1,
1: - __RPL_IPTUNNEL_MAX = 2,
1: + RPL_IPTUNNEL_UNSPEC = 0,
1: + RPL_IPTUNNEL_SRH = 1,
1: + __RPL_IPTUNNEL_MAX = 2,
1: };
1:
1: struct rpl_iptunnel_encap {
1: - struct ipv6_rpl_sr_hdr srh[0];
1: + struct ipv6_rpl_sr_hdr srh[0];
1: };
1:
1: struct rpl_lwt {
1: - struct dst_cache cache;
1: - struct rpl_iptunnel_encap tuninfo;
1: + struct dst_cache cache;
1: + struct rpl_iptunnel_encap tuninfo;
1: };
1:
1: enum {
1: - IP6_FH_F_FRAG = 1,
1: - IP6_FH_F_AUTH = 2,
1: - IP6_FH_F_SKIP_RH = 4,
1: + IP6_FH_F_FRAG = 1,
1: + IP6_FH_F_AUTH = 2,
1: + IP6_FH_F_SKIP_RH = 4,
1: };
1:
1: struct _strp_msg {
1: - struct strp_msg strp;
1: - int accum_len;
1: + struct strp_msg strp;
1: + int accum_len;
1: };
1:
1: struct vlan_group {
1: - unsigned int nr_vlan_devs;
1: - struct hlist_node hlist;
1: - struct net_device **vlan_devices_arrays[16];
1: + unsigned int nr_vlan_devs;
1: + struct hlist_node hlist;
1: + struct net_device **vlan_devices_arrays[16];
1: };
1:
1: struct vlan_info {
1: - struct net_device *real_dev;
1: - struct vlan_group grp;
1: - struct list_head vid_list;
1: - unsigned int nr_vids;
1: - struct callback_head rcu;
1: + struct net_device *real_dev;
1: + struct vlan_group grp;
1: + struct list_head vid_list;
1: + unsigned int nr_vids;
1: + struct callback_head rcu;
1: };
1:
1: enum vlan_flags {
1: - VLAN_FLAG_REORDER_HDR = 1,
1: - VLAN_FLAG_GVRP = 2,
1: - VLAN_FLAG_LOOSE_BINDING = 4,
1: - VLAN_FLAG_MVRP = 8,
1: - VLAN_FLAG_BRIDGE_BINDING = 16,
1: + VLAN_FLAG_REORDER_HDR = 1,
1: + VLAN_FLAG_GVRP = 2,
1: + VLAN_FLAG_LOOSE_BINDING = 4,
1: + VLAN_FLAG_MVRP = 8,
1: + VLAN_FLAG_BRIDGE_BINDING = 16,
1: };
1:
1: struct vlan_priority_tci_mapping {
1: - u32 priority;
1: - u16 vlan_qos;
1: - struct vlan_priority_tci_mapping *next;
1: + u32 priority;
1: + u16 vlan_qos;
1: + struct vlan_priority_tci_mapping *next;
1: };
1:
1: struct vlan_dev_priv {
1: - unsigned int nr_ingress_mappings;
1: - u32 ingress_priority_map[8];
1: - unsigned int nr_egress_mappings;
1: - struct vlan_priority_tci_mapping *egress_priority_map[16];
1: - __be16 vlan_proto;
1: - u16 vlan_id;
1: - u16 flags;
1: - struct net_device *real_dev;
1: - unsigned char real_dev_addr[6];
1: - struct proc_dir_entry *dent;
1: - struct vlan_pcpu_stats *vlan_pcpu_stats;
1: - struct netpoll *netpoll;
1: + unsigned int nr_ingress_mappings;
1: + u32 ingress_priority_map[8];
1: + unsigned int nr_egress_mappings;
1: + struct vlan_priority_tci_mapping *egress_priority_map[16];
1: + __be16 vlan_proto;
1: + u16 vlan_id;
1: + u16 flags;
1: + struct net_device *real_dev;
1: + unsigned char real_dev_addr[6];
1: + struct proc_dir_entry *dent;
1: + struct vlan_pcpu_stats *vlan_pcpu_stats;
1: + struct netpoll *netpoll;
1: };
1:
1: enum vlan_protos {
1: - VLAN_PROTO_8021Q = 0,
1: - VLAN_PROTO_8021AD = 1,
1: - VLAN_PROTO_NUM = 2,
1: + VLAN_PROTO_8021Q = 0,
1: + VLAN_PROTO_8021AD = 1,
1: + VLAN_PROTO_NUM = 2,
1: };
1:
1: struct vlan_vid_info {
1: - struct list_head list;
1: - __be16 proto;
1: - u16 vid;
1: - int refcount;
1: + struct list_head list;
1: + __be16 proto;
1: + u16 vid;
1: + int refcount;
1: };
1:
1: enum nl80211_iftype {
1: - NL80211_IFTYPE_UNSPECIFIED = 0,
1: - NL80211_IFTYPE_ADHOC = 1,
1: - NL80211_IFTYPE_STATION = 2,
1: - NL80211_IFTYPE_AP = 3,
1: - NL80211_IFTYPE_AP_VLAN = 4,
1: - NL80211_IFTYPE_WDS = 5,
1: - NL80211_IFTYPE_MONITOR = 6,
1: - NL80211_IFTYPE_MESH_POINT = 7,
1: - NL80211_IFTYPE_P2P_CLIENT = 8,
1: - NL80211_IFTYPE_P2P_GO = 9,
1: - NL80211_IFTYPE_P2P_DEVICE = 10,
1: - NL80211_IFTYPE_OCB = 11,
1: - NL80211_IFTYPE_NAN = 12,
1: - NUM_NL80211_IFTYPES = 13,
1: - NL80211_IFTYPE_MAX = 12,
1: + NL80211_IFTYPE_UNSPECIFIED = 0,
1: + NL80211_IFTYPE_ADHOC = 1,
1: + NL80211_IFTYPE_STATION = 2,
1: + NL80211_IFTYPE_AP = 3,
1: + NL80211_IFTYPE_AP_VLAN = 4,
1: + NL80211_IFTYPE_WDS = 5,
1: + NL80211_IFTYPE_MONITOR = 6,
1: + NL80211_IFTYPE_MESH_POINT = 7,
1: + NL80211_IFTYPE_P2P_CLIENT = 8,
1: + NL80211_IFTYPE_P2P_GO = 9,
1: + NL80211_IFTYPE_P2P_DEVICE = 10,
1: + NL80211_IFTYPE_OCB = 11,
1: + NL80211_IFTYPE_NAN = 12,
1: + NUM_NL80211_IFTYPES = 13,
1: + NL80211_IFTYPE_MAX = 12,
1: };
1:
1: struct cfg80211_conn;
1: @@ -107496,226 +108893,226 @@ struct cfg80211_conn;
1: struct cfg80211_cached_keys;
1:
1: enum ieee80211_bss_type {
1: - IEEE80211_BSS_TYPE_ESS = 0,
1: - IEEE80211_BSS_TYPE_PBSS = 1,
1: - IEEE80211_BSS_TYPE_IBSS = 2,
1: - IEEE80211_BSS_TYPE_MBSS = 3,
1: - IEEE80211_BSS_TYPE_ANY = 4,
1: + IEEE80211_BSS_TYPE_ESS = 0,
1: + IEEE80211_BSS_TYPE_PBSS = 1,
1: + IEEE80211_BSS_TYPE_IBSS = 2,
1: + IEEE80211_BSS_TYPE_MBSS = 3,
1: + IEEE80211_BSS_TYPE_ANY = 4,
1: };
1:
1: struct cfg80211_internal_bss;
1:
1: enum nl80211_chan_width {
1: - NL80211_CHAN_WIDTH_20_NOHT = 0,
1: - NL80211_CHAN_WIDTH_20 = 1,
1: - NL80211_CHAN_WIDTH_40 = 2,
1: - NL80211_CHAN_WIDTH_80 = 3,
1: - NL80211_CHAN_WIDTH_80P80 = 4,
1: - NL80211_CHAN_WIDTH_160 = 5,
1: - NL80211_CHAN_WIDTH_5 = 6,
1: - NL80211_CHAN_WIDTH_10 = 7,
1: - NL80211_CHAN_WIDTH_1 = 8,
1: - NL80211_CHAN_WIDTH_2 = 9,
1: - NL80211_CHAN_WIDTH_4 = 10,
1: - NL80211_CHAN_WIDTH_8 = 11,
1: - NL80211_CHAN_WIDTH_16 = 12,
1: + NL80211_CHAN_WIDTH_20_NOHT = 0,
1: + NL80211_CHAN_WIDTH_20 = 1,
1: + NL80211_CHAN_WIDTH_40 = 2,
1: + NL80211_CHAN_WIDTH_80 = 3,
1: + NL80211_CHAN_WIDTH_80P80 = 4,
1: + NL80211_CHAN_WIDTH_160 = 5,
1: + NL80211_CHAN_WIDTH_5 = 6,
1: + NL80211_CHAN_WIDTH_10 = 7,
1: + NL80211_CHAN_WIDTH_1 = 8,
1: + NL80211_CHAN_WIDTH_2 = 9,
1: + NL80211_CHAN_WIDTH_4 = 10,
1: + NL80211_CHAN_WIDTH_8 = 11,
1: + NL80211_CHAN_WIDTH_16 = 12,
1: };
1:
1: enum ieee80211_edmg_bw_config {
1: - IEEE80211_EDMG_BW_CONFIG_4 = 4,
1: - IEEE80211_EDMG_BW_CONFIG_5 = 5,
1: - IEEE80211_EDMG_BW_CONFIG_6 = 6,
1: - IEEE80211_EDMG_BW_CONFIG_7 = 7,
1: - IEEE80211_EDMG_BW_CONFIG_8 = 8,
1: - IEEE80211_EDMG_BW_CONFIG_9 = 9,
1: - IEEE80211_EDMG_BW_CONFIG_10 = 10,
1: - IEEE80211_EDMG_BW_CONFIG_11 = 11,
1: - IEEE80211_EDMG_BW_CONFIG_12 = 12,
1: - IEEE80211_EDMG_BW_CONFIG_13 = 13,
1: - IEEE80211_EDMG_BW_CONFIG_14 = 14,
1: - IEEE80211_EDMG_BW_CONFIG_15 = 15,
1: + IEEE80211_EDMG_BW_CONFIG_4 = 4,
1: + IEEE80211_EDMG_BW_CONFIG_5 = 5,
1: + IEEE80211_EDMG_BW_CONFIG_6 = 6,
1: + IEEE80211_EDMG_BW_CONFIG_7 = 7,
1: + IEEE80211_EDMG_BW_CONFIG_8 = 8,
1: + IEEE80211_EDMG_BW_CONFIG_9 = 9,
1: + IEEE80211_EDMG_BW_CONFIG_10 = 10,
1: + IEEE80211_EDMG_BW_CONFIG_11 = 11,
1: + IEEE80211_EDMG_BW_CONFIG_12 = 12,
1: + IEEE80211_EDMG_BW_CONFIG_13 = 13,
1: + IEEE80211_EDMG_BW_CONFIG_14 = 14,
1: + IEEE80211_EDMG_BW_CONFIG_15 = 15,
1: };
1:
1: struct ieee80211_edmg {
1: - u8 channels;
1: - enum ieee80211_edmg_bw_config bw_config;
1: + u8 channels;
1: + enum ieee80211_edmg_bw_config bw_config;
1: };
1:
1: struct ieee80211_channel;
1:
1: struct cfg80211_chan_def {
1: - struct ieee80211_channel *chan;
1: - enum nl80211_chan_width width;
1: - u32 center_freq1;
1: - u32 center_freq2;
1: - struct ieee80211_edmg edmg;
1: - u16 freq1_offset;
1: + struct ieee80211_channel *chan;
1: + enum nl80211_chan_width width;
1: + u32 center_freq1;
1: + u32 center_freq2;
1: + struct ieee80211_edmg edmg;
1: + u16 freq1_offset;
1: };
1:
1: struct ieee80211_mcs_info {
1: - u8 rx_mask[10];
1: - __le16 rx_highest;
1: - u8 tx_params;
1: - u8 reserved[3];
1: + u8 rx_mask[10];
1: + __le16 rx_highest;
1: + u8 tx_params;
1: + u8 reserved[3];
1: };
1:
1: struct ieee80211_ht_cap {
1: - __le16 cap_info;
1: - u8 ampdu_params_info;
1: - struct ieee80211_mcs_info mcs;
1: - __le16 extended_ht_cap_info;
1: - __le32 tx_BF_cap_info;
1: - u8 antenna_selection_info;
1: + __le16 cap_info;
1: + u8 ampdu_params_info;
1: + struct ieee80211_mcs_info mcs;
1: + __le16 extended_ht_cap_info;
1: + __le32 tx_BF_cap_info;
1: + u8 antenna_selection_info;
1: } __attribute__((packed));
1:
1: struct key_params;
1:
1: struct cfg80211_ibss_params {
1: - const u8 *ssid;
1: - const u8 *bssid;
1: - struct cfg80211_chan_def chandef;
1: - const u8 *ie;
1: - u8 ssid_len;
1: - u8 ie_len;
1: - u16 beacon_interval;
1: - u32 basic_rates;
1: - bool channel_fixed;
1: - bool privacy;
1: - bool control_port;
1: - bool control_port_over_nl80211;
1: - bool userspace_handles_dfs;
1: - int: 24;
1: - int mcast_rate[5];
1: - struct ieee80211_ht_cap ht_capa;
1: - struct ieee80211_ht_cap ht_capa_mask;
1: - struct key_params *wep_keys;
1: - int wep_tx_key;
1: - int: 32;
1: + const u8 *ssid;
1: + const u8 *bssid;
1: + struct cfg80211_chan_def chandef;
1: + const u8 *ie;
1: + u8 ssid_len;
1: + u8 ie_len;
1: + u16 beacon_interval;
1: + u32 basic_rates;
1: + bool channel_fixed;
1: + bool privacy;
1: + bool control_port;
1: + bool control_port_over_nl80211;
1: + bool userspace_handles_dfs;
1: + int : 24;
1: + int mcast_rate[5];
1: + struct ieee80211_ht_cap ht_capa;
1: + struct ieee80211_ht_cap ht_capa_mask;
1: + struct key_params *wep_keys;
1: + int wep_tx_key;
1: + int : 32;
1: } __attribute__((packed));
1:
1: enum nl80211_auth_type {
1: - NL80211_AUTHTYPE_OPEN_SYSTEM = 0,
1: - NL80211_AUTHTYPE_SHARED_KEY = 1,
1: - NL80211_AUTHTYPE_FT = 2,
1: - NL80211_AUTHTYPE_NETWORK_EAP = 3,
1: - NL80211_AUTHTYPE_SAE = 4,
1: - NL80211_AUTHTYPE_FILS_SK = 5,
1: - NL80211_AUTHTYPE_FILS_SK_PFS = 6,
1: - NL80211_AUTHTYPE_FILS_PK = 7,
1: - __NL80211_AUTHTYPE_NUM = 8,
1: - NL80211_AUTHTYPE_MAX = 7,
1: - NL80211_AUTHTYPE_AUTOMATIC = 8,
1: + NL80211_AUTHTYPE_OPEN_SYSTEM = 0,
1: + NL80211_AUTHTYPE_SHARED_KEY = 1,
1: + NL80211_AUTHTYPE_FT = 2,
1: + NL80211_AUTHTYPE_NETWORK_EAP = 3,
1: + NL80211_AUTHTYPE_SAE = 4,
1: + NL80211_AUTHTYPE_FILS_SK = 5,
1: + NL80211_AUTHTYPE_FILS_SK_PFS = 6,
1: + NL80211_AUTHTYPE_FILS_PK = 7,
1: + __NL80211_AUTHTYPE_NUM = 8,
1: + NL80211_AUTHTYPE_MAX = 7,
1: + NL80211_AUTHTYPE_AUTOMATIC = 8,
1: };
1:
1: enum nl80211_mfp {
1: - NL80211_MFP_NO = 0,
1: - NL80211_MFP_REQUIRED = 1,
1: - NL80211_MFP_OPTIONAL = 2,
1: + NL80211_MFP_NO = 0,
1: + NL80211_MFP_REQUIRED = 1,
1: + NL80211_MFP_OPTIONAL = 2,
1: };
1:
1: struct cfg80211_crypto_settings {
1: - u32 wpa_versions;
1: - u32 cipher_group;
1: - int n_ciphers_pairwise;
1: - u32 ciphers_pairwise[5];
1: - int n_akm_suites;
1: - u32 akm_suites[2];
1: - bool control_port;
1: - __be16 control_port_ethertype;
1: - bool control_port_no_encrypt;
1: - bool control_port_over_nl80211;
1: - bool control_port_no_preauth;
1: - struct key_params *wep_keys;
1: - int wep_tx_key;
1: - const u8 *psk;
1: - const u8 *sae_pwd;
1: - u8 sae_pwd_len;
1: + u32 wpa_versions;
1: + u32 cipher_group;
1: + int n_ciphers_pairwise;
1: + u32 ciphers_pairwise[5];
1: + int n_akm_suites;
1: + u32 akm_suites[2];
1: + bool control_port;
1: + __be16 control_port_ethertype;
1: + bool control_port_no_encrypt;
1: + bool control_port_over_nl80211;
1: + bool control_port_no_preauth;
1: + struct key_params *wep_keys;
1: + int wep_tx_key;
1: + const u8 *psk;
1: + const u8 *sae_pwd;
1: + u8 sae_pwd_len;
1: };
1:
1: struct ieee80211_vht_mcs_info {
1: - __le16 rx_mcs_map;
1: - __le16 rx_highest;
1: - __le16 tx_mcs_map;
1: - __le16 tx_highest;
1: + __le16 rx_mcs_map;
1: + __le16 rx_highest;
1: + __le16 tx_mcs_map;
1: + __le16 tx_highest;
1: };
1:
1: struct ieee80211_vht_cap {
1: - __le32 vht_cap_info;
1: - struct ieee80211_vht_mcs_info supp_mcs;
1: + __le32 vht_cap_info;
1: + struct ieee80211_vht_mcs_info supp_mcs;
1: };
1:
1: enum nl80211_bss_select_attr {
1: - __NL80211_BSS_SELECT_ATTR_INVALID = 0,
1: - NL80211_BSS_SELECT_ATTR_RSSI = 1,
1: - NL80211_BSS_SELECT_ATTR_BAND_PREF = 2,
1: - NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3,
1: - __NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4,
1: - NL80211_BSS_SELECT_ATTR_MAX = 3,
1: + __NL80211_BSS_SELECT_ATTR_INVALID = 0,
1: + NL80211_BSS_SELECT_ATTR_RSSI = 1,
1: + NL80211_BSS_SELECT_ATTR_BAND_PREF = 2,
1: + NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3,
1: + __NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4,
1: + NL80211_BSS_SELECT_ATTR_MAX = 3,
1: };
1:
1: enum nl80211_band {
1: - NL80211_BAND_2GHZ = 0,
1: - NL80211_BAND_5GHZ = 1,
1: - NL80211_BAND_60GHZ = 2,
1: - NL80211_BAND_6GHZ = 3,
1: - NL80211_BAND_S1GHZ = 4,
1: - NUM_NL80211_BANDS = 5,
1: + NL80211_BAND_2GHZ = 0,
1: + NL80211_BAND_5GHZ = 1,
1: + NL80211_BAND_60GHZ = 2,
1: + NL80211_BAND_6GHZ = 3,
1: + NL80211_BAND_S1GHZ = 4,
1: + NUM_NL80211_BANDS = 5,
1: };
1:
1: struct cfg80211_bss_select_adjust {
1: - enum nl80211_band band;
1: - s8 delta;
1: + enum nl80211_band band;
1: + s8 delta;
1: };
1:
1: struct cfg80211_bss_selection {
1: - enum nl80211_bss_select_attr behaviour;
1: - union {
1: - enum nl80211_band band_pref;
1: - struct cfg80211_bss_select_adjust adjust;
1: - } param;
1: + enum nl80211_bss_select_attr behaviour;
1: + union {
1: + enum nl80211_band band_pref;
1: + struct cfg80211_bss_select_adjust adjust;
1: + } param;
1: };
1:
1: struct cfg80211_connect_params {
1: - struct ieee80211_channel *channel;
1: - struct ieee80211_channel *channel_hint;
1: - const u8 *bssid;
1: - const u8 *bssid_hint;
1: - const u8 *ssid;
1: - size_t ssid_len;
1: - enum nl80211_auth_type auth_type;
1: - int: 32;
1: - const u8 *ie;
1: - size_t ie_len;
1: - bool privacy;
1: - int: 24;
1: - enum nl80211_mfp mfp;
1: - struct cfg80211_crypto_settings crypto;
1: - const u8 *key;
1: - u8 key_len;
1: - u8 key_idx;
1: - short: 16;
1: - u32 flags;
1: - int bg_scan_period;
1: - struct ieee80211_ht_cap ht_capa;
1: - struct ieee80211_ht_cap ht_capa_mask;
1: - struct ieee80211_vht_cap vht_capa;
1: - struct ieee80211_vht_cap vht_capa_mask;
1: - bool pbss;
1: - int: 24;
1: - struct cfg80211_bss_selection bss_select;
1: - const u8 *prev_bssid;
1: - const u8 *fils_erp_username;
1: - size_t fils_erp_username_len;
1: - const u8 *fils_erp_realm;
1: - size_t fils_erp_realm_len;
1: - u16 fils_erp_next_seq_num;
1: - long: 48;
1: - const u8 *fils_erp_rrk;
1: - size_t fils_erp_rrk_len;
1: - bool want_1x;
1: - int: 24;
1: - struct ieee80211_edmg edmg;
1: - int: 32;
1: + struct ieee80211_channel *channel;
1: + struct ieee80211_channel *channel_hint;
1: + const u8 *bssid;
1: + const u8 *bssid_hint;
1: + const u8 *ssid;
1: + size_t ssid_len;
1: + enum nl80211_auth_type auth_type;
1: + int : 32;
1: + const u8 *ie;
1: + size_t ie_len;
1: + bool privacy;
1: + int : 24;
1: + enum nl80211_mfp mfp;
1: + struct cfg80211_crypto_settings crypto;
1: + const u8 *key;
1: + u8 key_len;
1: + u8 key_idx;
1: + short : 16;
1: + u32 flags;
1: + int bg_scan_period;
1: + struct ieee80211_ht_cap ht_capa;
1: + struct ieee80211_ht_cap ht_capa_mask;
1: + struct ieee80211_vht_cap vht_capa;
1: + struct ieee80211_vht_cap vht_capa_mask;
1: + bool pbss;
1: + int : 24;
1: + struct cfg80211_bss_selection bss_select;
1: + const u8 *prev_bssid;
1: + const u8 *fils_erp_username;
1: + size_t fils_erp_username_len;
1: + const u8 *fils_erp_realm;
1: + size_t fils_erp_realm_len;
1: + u16 fils_erp_next_seq_num;
1: + long : 48;
1: + const u8 *fils_erp_rrk;
1: + size_t fils_erp_rrk_len;
1: + bool want_1x;
1: + int : 24;
1: + struct ieee80211_edmg edmg;
1: + int : 32;
1: } __attribute__((packed));
1:
1: struct cfg80211_cqm_config;
1: @@ -107723,408 +109120,408 @@ struct cfg80211_cqm_config;
1: struct wiphy;
1:
1: struct wireless_dev {
1: - struct wiphy *wiphy;
1: - enum nl80211_iftype iftype;
1: - struct list_head list;
1: - struct net_device *netdev;
1: - u32 identifier;
1: - struct list_head mgmt_registrations;
1: - spinlock_t mgmt_registrations_lock;
1: - u8 mgmt_registrations_need_update: 1;
1: - struct mutex mtx;
1: - bool use_4addr;
1: - bool is_running;
1: - u8 address[6];
1: - u8 ssid[32];
1: - u8 ssid_len;
1: - u8 mesh_id_len;
1: - u8 mesh_id_up_len;
1: - struct cfg80211_conn *conn;
1: - struct cfg80211_cached_keys *connect_keys;
1: - enum ieee80211_bss_type conn_bss_type;
1: - u32 conn_owner_nlportid;
1: - struct work_struct disconnect_wk;
1: - u8 disconnect_bssid[6];
1: - struct list_head event_list;
1: - spinlock_t event_lock;
1: - struct cfg80211_internal_bss *current_bss;
1: - struct cfg80211_chan_def preset_chandef;
1: - struct cfg80211_chan_def chandef;
1: - bool ibss_fixed;
1: - bool ibss_dfs_possible;
1: - bool ps;
1: - int ps_timeout;
1: - int beacon_interval;
1: - u32 ap_unexpected_nlportid;
1: - u32 owner_nlportid;
1: - bool nl_owner_dead;
1: - bool cac_started;
1: - long unsigned int cac_start_time;
1: - unsigned int cac_time_ms;
1: - struct {
1: - struct cfg80211_ibss_params ibss;
1: - struct cfg80211_connect_params connect;
1: - struct cfg80211_cached_keys *keys;
1: - const u8 *ie;
1: - size_t ie_len;
1: - u8 bssid[6];
1: - u8 prev_bssid[6];
1: - u8 ssid[32];
1: - s8 default_key;
1: - s8 default_mgmt_key;
1: - bool prev_bssid_valid;
1: - } wext;
1: - struct cfg80211_cqm_config *cqm_config;
1: - struct list_head pmsr_list;
1: - spinlock_t pmsr_lock;
1: - struct work_struct pmsr_free_wk;
1: - long unsigned int unprot_beacon_reported;
1: + struct wiphy *wiphy;
1: + enum nl80211_iftype iftype;
1: + struct list_head list;
1: + struct net_device *netdev;
1: + u32 identifier;
1: + struct list_head mgmt_registrations;
1: + spinlock_t mgmt_registrations_lock;
1: + u8 mgmt_registrations_need_update : 1;
1: + struct mutex mtx;
1: + bool use_4addr;
1: + bool is_running;
1: + u8 address[6];
1: + u8 ssid[32];
1: + u8 ssid_len;
1: + u8 mesh_id_len;
1: + u8 mesh_id_up_len;
1: + struct cfg80211_conn *conn;
1: + struct cfg80211_cached_keys *connect_keys;
1: + enum ieee80211_bss_type conn_bss_type;
1: + u32 conn_owner_nlportid;
1: + struct work_struct disconnect_wk;
1: + u8 disconnect_bssid[6];
1: + struct list_head event_list;
1: + spinlock_t event_lock;
1: + struct cfg80211_internal_bss *current_bss;
1: + struct cfg80211_chan_def preset_chandef;
1: + struct cfg80211_chan_def chandef;
1: + bool ibss_fixed;
1: + bool ibss_dfs_possible;
1: + bool ps;
1: + int ps_timeout;
1: + int beacon_interval;
1: + u32 ap_unexpected_nlportid;
1: + u32 owner_nlportid;
1: + bool nl_owner_dead;
1: + bool cac_started;
1: + long unsigned int cac_start_time;
1: + unsigned int cac_time_ms;
1: + struct {
1: + struct cfg80211_ibss_params ibss;
1: + struct cfg80211_connect_params connect;
1: + struct cfg80211_cached_keys *keys;
1: + const u8 *ie;
1: + size_t ie_len;
1: + u8 bssid[6];
1: + u8 prev_bssid[6];
1: + u8 ssid[32];
1: + s8 default_key;
1: + s8 default_mgmt_key;
1: + bool prev_bssid_valid;
1: + } wext;
1: + struct cfg80211_cqm_config *cqm_config;
1: + struct list_head pmsr_list;
1: + spinlock_t pmsr_lock;
1: + struct work_struct pmsr_free_wk;
1: + long unsigned int unprot_beacon_reported;
1: };
1:
1: struct iw_encode_ext {
1: - __u32 ext_flags;
1: - __u8 tx_seq[8];
1: - __u8 rx_seq[8];
1: - struct sockaddr addr;
1: - __u16 alg;
1: - __u16 key_len;
1: - __u8 key[0];
1: + __u32 ext_flags;
1: + __u8 tx_seq[8];
1: + __u8 rx_seq[8];
1: + struct sockaddr addr;
1: + __u16 alg;
1: + __u16 key_len;
1: + __u8 key[0];
1: };
1:
1: struct iwreq {
1: - union {
1: - char ifrn_name[16];
1: - } ifr_ifrn;
1: - union iwreq_data u;
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union iwreq_data u;
1: };
1:
1: struct iw_event {
1: - __u16 len;
1: - __u16 cmd;
1: - union iwreq_data u;
1: + __u16 len;
1: + __u16 cmd;
1: + union iwreq_data u;
1: };
1:
1: struct compat_iw_point {
1: - compat_caddr_t pointer;
1: - __u16 length;
1: - __u16 flags;
1: + compat_caddr_t pointer;
1: + __u16 length;
1: + __u16 flags;
1: };
1:
1: struct __compat_iw_event {
1: - __u16 len;
1: - __u16 cmd;
1: - compat_caddr_t pointer;
1: + __u16 len;
1: + __u16 cmd;
1: + compat_caddr_t pointer;
1: };
1:
1: enum nl80211_reg_initiator {
1: - NL80211_REGDOM_SET_BY_CORE = 0,
1: - NL80211_REGDOM_SET_BY_USER = 1,
1: - NL80211_REGDOM_SET_BY_DRIVER = 2,
1: - NL80211_REGDOM_SET_BY_COUNTRY_IE = 3,
1: + NL80211_REGDOM_SET_BY_CORE = 0,
1: + NL80211_REGDOM_SET_BY_USER = 1,
1: + NL80211_REGDOM_SET_BY_DRIVER = 2,
1: + NL80211_REGDOM_SET_BY_COUNTRY_IE = 3,
1: };
1:
1: enum nl80211_dfs_regions {
1: - NL80211_DFS_UNSET = 0,
1: - NL80211_DFS_FCC = 1,
1: - NL80211_DFS_ETSI = 2,
1: - NL80211_DFS_JP = 3,
1: + NL80211_DFS_UNSET = 0,
1: + NL80211_DFS_FCC = 1,
1: + NL80211_DFS_ETSI = 2,
1: + NL80211_DFS_JP = 3,
1: };
1:
1: enum nl80211_user_reg_hint_type {
1: - NL80211_USER_REG_HINT_USER = 0,
1: - NL80211_USER_REG_HINT_CELL_BASE = 1,
1: - NL80211_USER_REG_HINT_INDOOR = 2,
1: + NL80211_USER_REG_HINT_USER = 0,
1: + NL80211_USER_REG_HINT_CELL_BASE = 1,
1: + NL80211_USER_REG_HINT_INDOOR = 2,
1: };
1:
1: enum nl80211_mntr_flags {
1: - __NL80211_MNTR_FLAG_INVALID = 0,
1: - NL80211_MNTR_FLAG_FCSFAIL = 1,
1: - NL80211_MNTR_FLAG_PLCPFAIL = 2,
1: - NL80211_MNTR_FLAG_CONTROL = 3,
1: - NL80211_MNTR_FLAG_OTHER_BSS = 4,
1: - NL80211_MNTR_FLAG_COOK_FRAMES = 5,
1: - NL80211_MNTR_FLAG_ACTIVE = 6,
1: - __NL80211_MNTR_FLAG_AFTER_LAST = 7,
1: - NL80211_MNTR_FLAG_MAX = 6,
1: + __NL80211_MNTR_FLAG_INVALID = 0,
1: + NL80211_MNTR_FLAG_FCSFAIL = 1,
1: + NL80211_MNTR_FLAG_PLCPFAIL = 2,
1: + NL80211_MNTR_FLAG_CONTROL = 3,
1: + NL80211_MNTR_FLAG_OTHER_BSS = 4,
1: + NL80211_MNTR_FLAG_COOK_FRAMES = 5,
1: + NL80211_MNTR_FLAG_ACTIVE = 6,
1: + __NL80211_MNTR_FLAG_AFTER_LAST = 7,
1: + NL80211_MNTR_FLAG_MAX = 6,
1: };
1:
1: enum nl80211_key_mode {
1: - NL80211_KEY_RX_TX = 0,
1: - NL80211_KEY_NO_TX = 1,
1: - NL80211_KEY_SET_TX = 2,
1: + NL80211_KEY_RX_TX = 0,
1: + NL80211_KEY_NO_TX = 1,
1: + NL80211_KEY_SET_TX = 2,
1: };
1:
1: enum nl80211_bss_scan_width {
1: - NL80211_BSS_CHAN_WIDTH_20 = 0,
1: - NL80211_BSS_CHAN_WIDTH_10 = 1,
1: - NL80211_BSS_CHAN_WIDTH_5 = 2,
1: - NL80211_BSS_CHAN_WIDTH_1 = 3,
1: - NL80211_BSS_CHAN_WIDTH_2 = 4,
1: + NL80211_BSS_CHAN_WIDTH_20 = 0,
1: + NL80211_BSS_CHAN_WIDTH_10 = 1,
1: + NL80211_BSS_CHAN_WIDTH_5 = 2,
1: + NL80211_BSS_CHAN_WIDTH_1 = 3,
1: + NL80211_BSS_CHAN_WIDTH_2 = 4,
1: };
1:
1: struct nl80211_wowlan_tcp_data_seq {
1: - __u32 start;
1: - __u32 offset;
1: - __u32 len;
1: + __u32 start;
1: + __u32 offset;
1: + __u32 len;
1: };
1:
1: struct nl80211_wowlan_tcp_data_token {
1: - __u32 offset;
1: - __u32 len;
1: - __u8 token_stream[0];
1: + __u32 offset;
1: + __u32 len;
1: + __u8 token_stream[0];
1: };
1:
1: struct nl80211_wowlan_tcp_data_token_feature {
1: - __u32 min_len;
1: - __u32 max_len;
1: - __u32 bufsize;
1: + __u32 min_len;
1: + __u32 max_len;
1: + __u32 bufsize;
1: };
1:
1: enum nl80211_ext_feature_index {
1: - NL80211_EXT_FEATURE_VHT_IBSS = 0,
1: - NL80211_EXT_FEATURE_RRM = 1,
1: - NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2,
1: - NL80211_EXT_FEATURE_SCAN_START_TIME = 3,
1: - NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4,
1: - NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5,
1: - NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6,
1: - NL80211_EXT_FEATURE_BEACON_RATE_HT = 7,
1: - NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8,
1: - NL80211_EXT_FEATURE_FILS_STA = 9,
1: - NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10,
1: - NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11,
1: - NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12,
1: - NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13,
1: - NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14,
1: - NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15,
1: - NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16,
1: - NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17,
1: - NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18,
1: - NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19,
1: - NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20,
1: - NL80211_EXT_FEATURE_MFP_OPTIONAL = 21,
1: - NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22,
1: - NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23,
1: - NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24,
1: - NL80211_EXT_FEATURE_DFS_OFFLOAD = 25,
1: - NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26,
1: - NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27,
1: - NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 27,
1: - NL80211_EXT_FEATURE_TXQS = 28,
1: - NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29,
1: - NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30,
1: - NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31,
1: - NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32,
1: - NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33,
1: - NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34,
1: - NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35,
1: - NL80211_EXT_FEATURE_EXT_KEY_ID = 36,
1: - NL80211_EXT_FEATURE_STA_TX_PWR = 37,
1: - NL80211_EXT_FEATURE_SAE_OFFLOAD = 38,
1: - NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39,
1: - NL80211_EXT_FEATURE_AQL = 40,
1: - NL80211_EXT_FEATURE_BEACON_PROTECTION = 41,
1: - NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42,
1: - NL80211_EXT_FEATURE_PROTECTED_TWT = 43,
1: - NL80211_EXT_FEATURE_DEL_IBSS_STA = 44,
1: - NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45,
1: - NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46,
1: - NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47,
1: - NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48,
1: - NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49,
1: - NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50,
1: - NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51,
1: - NL80211_EXT_FEATURE_FILS_DISCOVERY = 52,
1: - NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53,
1: - NUM_NL80211_EXT_FEATURES = 54,
1: - MAX_NL80211_EXT_FEATURES = 53,
1: + NL80211_EXT_FEATURE_VHT_IBSS = 0,
1: + NL80211_EXT_FEATURE_RRM = 1,
1: + NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2,
1: + NL80211_EXT_FEATURE_SCAN_START_TIME = 3,
1: + NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4,
1: + NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5,
1: + NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6,
1: + NL80211_EXT_FEATURE_BEACON_RATE_HT = 7,
1: + NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8,
1: + NL80211_EXT_FEATURE_FILS_STA = 9,
1: + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10,
1: + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11,
1: + NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12,
1: + NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13,
1: + NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16,
1: + NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17,
1: + NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18,
1: + NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19,
1: + NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20,
1: + NL80211_EXT_FEATURE_MFP_OPTIONAL = 21,
1: + NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22,
1: + NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23,
1: + NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24,
1: + NL80211_EXT_FEATURE_DFS_OFFLOAD = 25,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26,
1: + NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27,
1: + NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 27,
1: + NL80211_EXT_FEATURE_TXQS = 28,
1: + NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29,
1: + NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30,
1: + NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31,
1: + NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32,
1: + NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33,
1: + NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34,
1: + NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35,
1: + NL80211_EXT_FEATURE_EXT_KEY_ID = 36,
1: + NL80211_EXT_FEATURE_STA_TX_PWR = 37,
1: + NL80211_EXT_FEATURE_SAE_OFFLOAD = 38,
1: + NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39,
1: + NL80211_EXT_FEATURE_AQL = 40,
1: + NL80211_EXT_FEATURE_BEACON_PROTECTION = 41,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42,
1: + NL80211_EXT_FEATURE_PROTECTED_TWT = 43,
1: + NL80211_EXT_FEATURE_DEL_IBSS_STA = 44,
1: + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45,
1: + NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46,
1: + NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47,
1: + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48,
1: + NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49,
1: + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50,
1: + NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51,
1: + NL80211_EXT_FEATURE_FILS_DISCOVERY = 52,
1: + NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53,
1: + NUM_NL80211_EXT_FEATURES = 54,
1: + MAX_NL80211_EXT_FEATURES = 53,
1: };
1:
1: enum nl80211_dfs_state {
1: - NL80211_DFS_USABLE = 0,
1: - NL80211_DFS_UNAVAILABLE = 1,
1: - NL80211_DFS_AVAILABLE = 2,
1: + NL80211_DFS_USABLE = 0,
1: + NL80211_DFS_UNAVAILABLE = 1,
1: + NL80211_DFS_AVAILABLE = 2,
1: };
1:
1: struct nl80211_vendor_cmd_info {
1: - __u32 vendor_id;
1: - __u32 subcmd;
1: + __u32 vendor_id;
1: + __u32 subcmd;
1: };
1:
1: struct ieee80211_he_cap_elem {
1: - u8 mac_cap_info[6];
1: - u8 phy_cap_info[11];
1: + u8 mac_cap_info[6];
1: + u8 phy_cap_info[11];
1: };
1:
1: struct ieee80211_he_mcs_nss_supp {
1: - __le16 rx_mcs_80;
1: - __le16 tx_mcs_80;
1: - __le16 rx_mcs_160;
1: - __le16 tx_mcs_160;
1: - __le16 rx_mcs_80p80;
1: - __le16 tx_mcs_80p80;
1: + __le16 rx_mcs_80;
1: + __le16 tx_mcs_80;
1: + __le16 rx_mcs_160;
1: + __le16 tx_mcs_160;
1: + __le16 rx_mcs_80p80;
1: + __le16 tx_mcs_80p80;
1: };
1:
1: struct ieee80211_he_6ghz_capa {
1: - __le16 capa;
1: + __le16 capa;
1: };
1:
1: enum environment_cap {
1: - ENVIRON_ANY = 0,
1: - ENVIRON_INDOOR = 1,
1: - ENVIRON_OUTDOOR = 2,
1: + ENVIRON_ANY = 0,
1: + ENVIRON_INDOOR = 1,
1: + ENVIRON_OUTDOOR = 2,
1: };
1:
1: struct regulatory_request {
1: - struct callback_head callback_head;
1: - int wiphy_idx;
1: - enum nl80211_reg_initiator initiator;
1: - enum nl80211_user_reg_hint_type user_reg_hint_type;
1: - char alpha2[3];
1: - enum nl80211_dfs_regions dfs_region;
1: - bool intersect;
1: - bool processed;
1: - enum environment_cap country_ie_env;
1: - struct list_head list;
1: + struct callback_head callback_head;
1: + int wiphy_idx;
1: + enum nl80211_reg_initiator initiator;
1: + enum nl80211_user_reg_hint_type user_reg_hint_type;
1: + char alpha2[3];
1: + enum nl80211_dfs_regions dfs_region;
1: + bool intersect;
1: + bool processed;
1: + enum environment_cap country_ie_env;
1: + struct list_head list;
1: };
1:
1: struct ieee80211_freq_range {
1: - u32 start_freq_khz;
1: - u32 end_freq_khz;
1: - u32 max_bandwidth_khz;
1: + u32 start_freq_khz;
1: + u32 end_freq_khz;
1: + u32 max_bandwidth_khz;
1: };
1:
1: struct ieee80211_power_rule {
1: - u32 max_antenna_gain;
1: - u32 max_eirp;
1: + u32 max_antenna_gain;
1: + u32 max_eirp;
1: };
1:
1: struct ieee80211_wmm_ac {
1: - u16 cw_min;
1: - u16 cw_max;
1: - u16 cot;
1: - u8 aifsn;
1: + u16 cw_min;
1: + u16 cw_max;
1: + u16 cot;
1: + u8 aifsn;
1: };
1:
1: struct ieee80211_wmm_rule {
1: - struct ieee80211_wmm_ac client[4];
1: - struct ieee80211_wmm_ac ap[4];
1: + struct ieee80211_wmm_ac client[4];
1: + struct ieee80211_wmm_ac ap[4];
1: };
1:
1: struct ieee80211_reg_rule {
1: - struct ieee80211_freq_range freq_range;
1: - struct ieee80211_power_rule power_rule;
1: - struct ieee80211_wmm_rule wmm_rule;
1: - u32 flags;
1: - u32 dfs_cac_ms;
1: - bool has_wmm;
1: + struct ieee80211_freq_range freq_range;
1: + struct ieee80211_power_rule power_rule;
1: + struct ieee80211_wmm_rule wmm_rule;
1: + u32 flags;
1: + u32 dfs_cac_ms;
1: + bool has_wmm;
1: };
1:
1: struct ieee80211_regdomain {
1: - struct callback_head callback_head;
1: - u32 n_reg_rules;
1: - char alpha2[3];
1: - enum nl80211_dfs_regions dfs_region;
1: - struct ieee80211_reg_rule reg_rules[0];
1: + struct callback_head callback_head;
1: + u32 n_reg_rules;
1: + char alpha2[3];
1: + enum nl80211_dfs_regions dfs_region;
1: + struct ieee80211_reg_rule reg_rules[0];
1: };
1:
1: struct ieee80211_channel {
1: - enum nl80211_band band;
1: - u32 center_freq;
1: - u16 freq_offset;
1: - u16 hw_value;
1: - u32 flags;
1: - int max_antenna_gain;
1: - int max_power;
1: - int max_reg_power;
1: - bool beacon_found;
1: - u32 orig_flags;
1: - int orig_mag;
1: - int orig_mpwr;
1: - enum nl80211_dfs_state dfs_state;
1: - long unsigned int dfs_state_entered;
1: - unsigned int dfs_cac_ms;
1: + enum nl80211_band band;
1: + u32 center_freq;
1: + u16 freq_offset;
1: + u16 hw_value;
1: + u32 flags;
1: + int max_antenna_gain;
1: + int max_power;
1: + int max_reg_power;
1: + bool beacon_found;
1: + u32 orig_flags;
1: + int orig_mag;
1: + int orig_mpwr;
1: + enum nl80211_dfs_state dfs_state;
1: + long unsigned int dfs_state_entered;
1: + unsigned int dfs_cac_ms;
1: };
1:
1: struct ieee80211_rate {
1: - u32 flags;
1: - u16 bitrate;
1: - u16 hw_value;
1: - u16 hw_value_short;
1: + u32 flags;
1: + u16 bitrate;
1: + u16 hw_value;
1: + u16 hw_value_short;
1: };
1:
1: struct ieee80211_sta_ht_cap {
1: - u16 cap;
1: - bool ht_supported;
1: - u8 ampdu_factor;
1: - u8 ampdu_density;
1: - struct ieee80211_mcs_info mcs;
1: - char: 8;
1: + u16 cap;
1: + bool ht_supported;
1: + u8 ampdu_factor;
1: + u8 ampdu_density;
1: + struct ieee80211_mcs_info mcs;
1: + char : 8;
1: } __attribute__((packed));
1:
1: struct ieee80211_sta_vht_cap {
1: - bool vht_supported;
1: - u32 cap;
1: - struct ieee80211_vht_mcs_info vht_mcs;
1: + bool vht_supported;
1: + u32 cap;
1: + struct ieee80211_vht_mcs_info vht_mcs;
1: };
1:
1: struct ieee80211_sta_he_cap {
1: - bool has_he;
1: - struct ieee80211_he_cap_elem he_cap_elem;
1: - struct ieee80211_he_mcs_nss_supp he_mcs_nss_supp;
1: - u8 ppe_thres[25];
1: + bool has_he;
1: + struct ieee80211_he_cap_elem he_cap_elem;
1: + struct ieee80211_he_mcs_nss_supp he_mcs_nss_supp;
1: + u8 ppe_thres[25];
1: } __attribute__((packed));
1:
1: struct ieee80211_sband_iftype_data {
1: - u16 types_mask;
1: - struct ieee80211_sta_he_cap he_cap;
1: - struct ieee80211_he_6ghz_capa he_6ghz_capa;
1: - char: 8;
1: + u16 types_mask;
1: + struct ieee80211_sta_he_cap he_cap;
1: + struct ieee80211_he_6ghz_capa he_6ghz_capa;
1: + char : 8;
1: } __attribute__((packed));
1:
1: struct ieee80211_sta_s1g_cap {
1: - bool s1g;
1: - u8 cap[10];
1: - u8 nss_mcs[5];
1: + bool s1g;
1: + u8 cap[10];
1: + u8 nss_mcs[5];
1: };
1:
1: struct ieee80211_supported_band {
1: - struct ieee80211_channel *channels;
1: - struct ieee80211_rate *bitrates;
1: - enum nl80211_band band;
1: - int n_channels;
1: - int n_bitrates;
1: - struct ieee80211_sta_ht_cap ht_cap;
1: - struct ieee80211_sta_vht_cap vht_cap;
1: - struct ieee80211_sta_s1g_cap s1g_cap;
1: - struct ieee80211_edmg edmg_cap;
1: - u16 n_iftype_data;
1: - const struct ieee80211_sband_iftype_data *iftype_data;
1: + struct ieee80211_channel *channels;
1: + struct ieee80211_rate *bitrates;
1: + enum nl80211_band band;
1: + int n_channels;
1: + int n_bitrates;
1: + struct ieee80211_sta_ht_cap ht_cap;
1: + struct ieee80211_sta_vht_cap vht_cap;
1: + struct ieee80211_sta_s1g_cap s1g_cap;
1: + struct ieee80211_edmg edmg_cap;
1: + u16 n_iftype_data;
1: + const struct ieee80211_sband_iftype_data *iftype_data;
1: };
1:
1: struct key_params {
1: - const u8 *key;
1: - const u8 *seq;
1: - int key_len;
1: - int seq_len;
1: - u16 vlan_id;
1: - u32 cipher;
1: - enum nl80211_key_mode mode;
1: + const u8 *key;
1: + const u8 *seq;
1: + int key_len;
1: + int seq_len;
1: + u16 vlan_id;
1: + u32 cipher;
1: + enum nl80211_key_mode mode;
1: };
1:
1: struct mac_address {
1: - u8 addr[6];
1: + u8 addr[6];
1: };
1:
1: struct cfg80211_ssid {
1: - u8 ssid[32];
1: - u8 ssid_len;
1: + u8 ssid[32];
1: + u8 ssid_len;
1: };
1:
1: enum cfg80211_signal_type {
1: - CFG80211_SIGNAL_TYPE_NONE = 0,
1: - CFG80211_SIGNAL_TYPE_MBM = 1,
1: - CFG80211_SIGNAL_TYPE_UNSPEC = 2,
1: + CFG80211_SIGNAL_TYPE_NONE = 0,
1: + CFG80211_SIGNAL_TYPE_MBM = 1,
1: + CFG80211_SIGNAL_TYPE_UNSPEC = 2,
1: };
1:
1: struct ieee80211_txrx_stypes;
1: @@ -108146,2142 +109543,2146 @@ struct wiphy_vendor_command;
1: struct cfg80211_pmsr_capabilities;
1:
1: struct wiphy {
1: - u8 perm_addr[6];
1: - u8 addr_mask[6];
1: - struct mac_address *addresses;
1: - const struct ieee80211_txrx_stypes *mgmt_stypes;
1: - const struct ieee80211_iface_combination *iface_combinations;
1: - int n_iface_combinations;
1: - u16 software_iftypes;
1: - u16 n_addresses;
1: - u16 interface_modes;
1: - u16 max_acl_mac_addrs;
1: - u32 flags;
1: - u32 regulatory_flags;
1: - u32 features;
1: - u8 ext_features[7];
1: - u32 ap_sme_capa;
1: - enum cfg80211_signal_type signal_type;
1: - int bss_priv_size;
1: - u8 max_scan_ssids;
1: - u8 max_sched_scan_reqs;
1: - u8 max_sched_scan_ssids;
1: - u8 max_match_sets;
1: - u16 max_scan_ie_len;
1: - u16 max_sched_scan_ie_len;
1: - u32 max_sched_scan_plans;
1: - u32 max_sched_scan_plan_interval;
1: - u32 max_sched_scan_plan_iterations;
1: - int n_cipher_suites;
1: - const u32 *cipher_suites;
1: - int n_akm_suites;
1: - const u32 *akm_suites;
1: - const struct wiphy_iftype_akm_suites *iftype_akm_suites;
1: - unsigned int num_iftype_akm_suites;
1: - u8 retry_short;
1: - u8 retry_long;
1: - u32 frag_threshold;
1: - u32 rts_threshold;
1: - u8 coverage_class;
1: - char fw_version[32];
1: - u32 hw_version;
1: - const struct wiphy_wowlan_support *wowlan;
1: - struct cfg80211_wowlan *wowlan_config;
1: - u16 max_remain_on_channel_duration;
1: - u8 max_num_pmkids;
1: - u32 available_antennas_tx;
1: - u32 available_antennas_rx;
1: - u32 probe_resp_offload;
1: - const u8 *extended_capabilities;
1: - const u8 *extended_capabilities_mask;
1: - u8 extended_capabilities_len;
1: - const struct wiphy_iftype_ext_capab *iftype_ext_capab;
1: - unsigned int num_iftype_ext_capab;
1: - const void *privid;
1: - struct ieee80211_supported_band *bands[5];
1: - void (*reg_notifier)(struct wiphy *, struct regulatory_request *);
1: - const struct ieee80211_regdomain *regd;
1: - struct device dev;
1: - bool registered;
1: - struct dentry *debugfsdir;
1: - const struct ieee80211_ht_cap *ht_capa_mod_mask;
1: - const struct ieee80211_vht_cap *vht_capa_mod_mask;
1: - struct list_head wdev_list;
1: - possible_net_t _net;
1: - const struct iw_handler_def *wext;
1: - const struct wiphy_coalesce_support *coalesce;
1: - const struct wiphy_vendor_command *vendor_commands;
1: - const struct nl80211_vendor_cmd_info *vendor_events;
1: - int n_vendor_commands;
1: - int n_vendor_events;
1: - u16 max_ap_assoc_sta;
1: - u8 max_num_csa_counters;
1: - u32 bss_select_support;
1: - u8 nan_supported_bands;
1: - u32 txq_limit;
1: - u32 txq_memory_limit;
1: - u32 txq_quantum;
1: - long unsigned int tx_queue_len;
1: - u8 support_mbssid: 1;
1: - u8 support_only_he_mbssid: 1;
1: - const struct cfg80211_pmsr_capabilities *pmsr_capa;
1: - struct {
1: - u64 peer;
1: - u64 vif;
1: - u8 max_retry;
1: - } tid_config_support;
1: - u8 max_data_retry_count;
1: - long: 56;
1: - long: 64;
1: - char priv[0];
1: + u8 perm_addr[6];
1: + u8 addr_mask[6];
1: + struct mac_address *addresses;
1: + const struct ieee80211_txrx_stypes *mgmt_stypes;
1: + const struct ieee80211_iface_combination *iface_combinations;
1: + int n_iface_combinations;
1: + u16 software_iftypes;
1: + u16 n_addresses;
1: + u16 interface_modes;
1: + u16 max_acl_mac_addrs;
1: + u32 flags;
1: + u32 regulatory_flags;
1: + u32 features;
1: + u8 ext_features[7];
1: + u32 ap_sme_capa;
1: + enum cfg80211_signal_type signal_type;
1: + int bss_priv_size;
1: + u8 max_scan_ssids;
1: + u8 max_sched_scan_reqs;
1: + u8 max_sched_scan_ssids;
1: + u8 max_match_sets;
1: + u16 max_scan_ie_len;
1: + u16 max_sched_scan_ie_len;
1: + u32 max_sched_scan_plans;
1: + u32 max_sched_scan_plan_interval;
1: + u32 max_sched_scan_plan_iterations;
1: + int n_cipher_suites;
1: + const u32 *cipher_suites;
1: + int n_akm_suites;
1: + const u32 *akm_suites;
1: + const struct wiphy_iftype_akm_suites *iftype_akm_suites;
1: + unsigned int num_iftype_akm_suites;
1: + u8 retry_short;
1: + u8 retry_long;
1: + u32 frag_threshold;
1: + u32 rts_threshold;
1: + u8 coverage_class;
1: + char fw_version[32];
1: + u32 hw_version;
1: + const struct wiphy_wowlan_support *wowlan;
1: + struct cfg80211_wowlan *wowlan_config;
1: + u16 max_remain_on_channel_duration;
1: + u8 max_num_pmkids;
1: + u32 available_antennas_tx;
1: + u32 available_antennas_rx;
1: + u32 probe_resp_offload;
1: + const u8 *extended_capabilities;
1: + const u8 *extended_capabilities_mask;
1: + u8 extended_capabilities_len;
1: + const struct wiphy_iftype_ext_capab *iftype_ext_capab;
1: + unsigned int num_iftype_ext_capab;
1: + const void *privid;
1: + struct ieee80211_supported_band *bands[5];
1: + void (*reg_notifier)(struct wiphy *, struct regulatory_request *);
1: + const struct ieee80211_regdomain *regd;
1: + struct device dev;
1: + bool registered;
1: + struct dentry *debugfsdir;
1: + const struct ieee80211_ht_cap *ht_capa_mod_mask;
1: + const struct ieee80211_vht_cap *vht_capa_mod_mask;
1: + struct list_head wdev_list;
1: + possible_net_t _net;
1: + const struct iw_handler_def *wext;
1: + const struct wiphy_coalesce_support *coalesce;
1: + const struct wiphy_vendor_command *vendor_commands;
1: + const struct nl80211_vendor_cmd_info *vendor_events;
1: + int n_vendor_commands;
1: + int n_vendor_events;
1: + u16 max_ap_assoc_sta;
1: + u8 max_num_csa_counters;
1: + u32 bss_select_support;
1: + u8 nan_supported_bands;
1: + u32 txq_limit;
1: + u32 txq_memory_limit;
1: + u32 txq_quantum;
1: + long unsigned int tx_queue_len;
1: + u8 support_mbssid : 1;
1: + u8 support_only_he_mbssid : 1;
1: + const struct cfg80211_pmsr_capabilities *pmsr_capa;
1: + struct {
1: + u64 peer;
1: + u64 vif;
1: + u8 max_retry;
1: + } tid_config_support;
1: + u8 max_data_retry_count;
1: + long : 56;
1: + long : 64;
1: + char priv[0];
1: };
1:
1: struct cfg80211_match_set {
1: - struct cfg80211_ssid ssid;
1: - u8 bssid[6];
1: - s32 rssi_thold;
1: - s32 per_band_rssi_thold[5];
1: + struct cfg80211_ssid ssid;
1: + u8 bssid[6];
1: + s32 rssi_thold;
1: + s32 per_band_rssi_thold[5];
1: };
1:
1: struct cfg80211_sched_scan_plan {
1: - u32 interval;
1: - u32 iterations;
1: + u32 interval;
1: + u32 iterations;
1: };
1:
1: struct cfg80211_sched_scan_request {
1: - u64 reqid;
1: - struct cfg80211_ssid *ssids;
1: - int n_ssids;
1: - u32 n_channels;
1: - enum nl80211_bss_scan_width scan_width;
1: - const u8 *ie;
1: - size_t ie_len;
1: - u32 flags;
1: - struct cfg80211_match_set *match_sets;
1: - int n_match_sets;
1: - s32 min_rssi_thold;
1: - u32 delay;
1: - struct cfg80211_sched_scan_plan *scan_plans;
1: - int n_scan_plans;
1: - u8 mac_addr[6];
1: - u8 mac_addr_mask[6];
1: - bool relative_rssi_set;
1: - s8 relative_rssi;
1: - struct cfg80211_bss_select_adjust rssi_adjust;
1: - struct wiphy *wiphy;
1: - struct net_device *dev;
1: - long unsigned int scan_start;
1: - bool report_results;
1: - struct callback_head callback_head;
1: - u32 owner_nlportid;
1: - bool nl_owner_dead;
1: - struct list_head list;
1: - struct ieee80211_channel *channels[0];
1: + u64 reqid;
1: + struct cfg80211_ssid *ssids;
1: + int n_ssids;
1: + u32 n_channels;
1: + enum nl80211_bss_scan_width scan_width;
1: + const u8 *ie;
1: + size_t ie_len;
1: + u32 flags;
1: + struct cfg80211_match_set *match_sets;
1: + int n_match_sets;
1: + s32 min_rssi_thold;
1: + u32 delay;
1: + struct cfg80211_sched_scan_plan *scan_plans;
1: + int n_scan_plans;
1: + u8 mac_addr[6];
1: + u8 mac_addr_mask[6];
1: + bool relative_rssi_set;
1: + s8 relative_rssi;
1: + struct cfg80211_bss_select_adjust rssi_adjust;
1: + struct wiphy *wiphy;
1: + struct net_device *dev;
1: + long unsigned int scan_start;
1: + bool report_results;
1: + struct callback_head callback_head;
1: + u32 owner_nlportid;
1: + bool nl_owner_dead;
1: + struct list_head list;
1: + struct ieee80211_channel *channels[0];
1: };
1:
1: struct cfg80211_pkt_pattern {
1: - const u8 *mask;
1: - const u8 *pattern;
1: - int pattern_len;
1: - int pkt_offset;
1: + const u8 *mask;
1: + const u8 *pattern;
1: + int pattern_len;
1: + int pkt_offset;
1: };
1:
1: struct cfg80211_wowlan_tcp {
1: - struct socket *sock;
1: - __be32 src;
1: - __be32 dst;
1: - u16 src_port;
1: - u16 dst_port;
1: - u8 dst_mac[6];
1: - int payload_len;
1: - const u8 *payload;
1: - struct nl80211_wowlan_tcp_data_seq payload_seq;
1: - u32 data_interval;
1: - u32 wake_len;
1: - const u8 *wake_data;
1: - const u8 *wake_mask;
1: - u32 tokens_size;
1: - struct nl80211_wowlan_tcp_data_token payload_tok;
1: + struct socket *sock;
1: + __be32 src;
1: + __be32 dst;
1: + u16 src_port;
1: + u16 dst_port;
1: + u8 dst_mac[6];
1: + int payload_len;
1: + const u8 *payload;
1: + struct nl80211_wowlan_tcp_data_seq payload_seq;
1: + u32 data_interval;
1: + u32 wake_len;
1: + const u8 *wake_data;
1: + const u8 *wake_mask;
1: + u32 tokens_size;
1: + struct nl80211_wowlan_tcp_data_token payload_tok;
1: };
1:
1: struct cfg80211_wowlan {
1: - bool any;
1: - bool disconnect;
1: - bool magic_pkt;
1: - bool gtk_rekey_failure;
1: - bool eap_identity_req;
1: - bool four_way_handshake;
1: - bool rfkill_release;
1: - struct cfg80211_pkt_pattern *patterns;
1: - struct cfg80211_wowlan_tcp *tcp;
1: - int n_patterns;
1: - struct cfg80211_sched_scan_request *nd_config;
1: + bool any;
1: + bool disconnect;
1: + bool magic_pkt;
1: + bool gtk_rekey_failure;
1: + bool eap_identity_req;
1: + bool four_way_handshake;
1: + bool rfkill_release;
1: + struct cfg80211_pkt_pattern *patterns;
1: + struct cfg80211_wowlan_tcp *tcp;
1: + int n_patterns;
1: + struct cfg80211_sched_scan_request *nd_config;
1: };
1:
1: struct ieee80211_iface_limit {
1: - u16 max;
1: - u16 types;
1: + u16 max;
1: + u16 types;
1: };
1:
1: struct ieee80211_iface_combination {
1: - const struct ieee80211_iface_limit *limits;
1: - u32 num_different_channels;
1: - u16 max_interfaces;
1: - u8 n_limits;
1: - bool beacon_int_infra_match;
1: - u8 radar_detect_widths;
1: - u8 radar_detect_regions;
1: - u32 beacon_int_min_gcd;
1: + const struct ieee80211_iface_limit *limits;
1: + u32 num_different_channels;
1: + u16 max_interfaces;
1: + u8 n_limits;
1: + bool beacon_int_infra_match;
1: + u8 radar_detect_widths;
1: + u8 radar_detect_regions;
1: + u32 beacon_int_min_gcd;
1: };
1:
1: struct ieee80211_txrx_stypes {
1: - u16 tx;
1: - u16 rx;
1: + u16 tx;
1: + u16 rx;
1: };
1:
1: struct wiphy_wowlan_tcp_support {
1: - const struct nl80211_wowlan_tcp_data_token_feature *tok;
1: - u32 data_payload_max;
1: - u32 data_interval_max;
1: - u32 wake_payload_max;
1: - bool seq;
1: + const struct nl80211_wowlan_tcp_data_token_feature *tok;
1: + u32 data_payload_max;
1: + u32 data_interval_max;
1: + u32 wake_payload_max;
1: + bool seq;
1: };
1:
1: struct wiphy_wowlan_support {
1: - u32 flags;
1: - int n_patterns;
1: - int pattern_max_len;
1: - int pattern_min_len;
1: - int max_pkt_offset;
1: - int max_nd_match_sets;
1: - const struct wiphy_wowlan_tcp_support *tcp;
1: + u32 flags;
1: + int n_patterns;
1: + int pattern_max_len;
1: + int pattern_min_len;
1: + int max_pkt_offset;
1: + int max_nd_match_sets;
1: + const struct wiphy_wowlan_tcp_support *tcp;
1: };
1:
1: struct wiphy_coalesce_support {
1: - int n_rules;
1: - int max_delay;
1: - int n_patterns;
1: - int pattern_max_len;
1: - int pattern_min_len;
1: - int max_pkt_offset;
1: + int n_rules;
1: + int max_delay;
1: + int n_patterns;
1: + int pattern_max_len;
1: + int pattern_min_len;
1: + int max_pkt_offset;
1: };
1:
1: struct wiphy_vendor_command {
1: - struct nl80211_vendor_cmd_info info;
1: - u32 flags;
1: - int (*doit)(struct wiphy *, struct wireless_dev *, const void *, int);
1: - int (*dumpit)(struct wiphy *, struct wireless_dev *, struct sk_buff *, const void *, int, long unsigned int *);
1: - const struct nla_policy *policy;
1: - unsigned int maxattr;
1: + struct nl80211_vendor_cmd_info info;
1: + u32 flags;
1: + int (*doit)(struct wiphy *, struct wireless_dev *, const void *, int);
1: + int (*dumpit)(struct wiphy *, struct wireless_dev *, struct sk_buff *,
1: + const void *, int, long unsigned int *);
1: + const struct nla_policy *policy;
1: + unsigned int maxattr;
1: };
1:
1: struct wiphy_iftype_ext_capab {
1: - enum nl80211_iftype iftype;
1: - const u8 *extended_capabilities;
1: - const u8 *extended_capabilities_mask;
1: - u8 extended_capabilities_len;
1: + enum nl80211_iftype iftype;
1: + const u8 *extended_capabilities;
1: + const u8 *extended_capabilities_mask;
1: + u8 extended_capabilities_len;
1: };
1:
1: struct cfg80211_pmsr_capabilities {
1: - unsigned int max_peers;
1: - u8 report_ap_tsf: 1;
1: - u8 randomize_mac_addr: 1;
1: - struct {
1: - u32 preambles;
1: - u32 bandwidths;
1: - s8 max_bursts_exponent;
1: - u8 max_ftms_per_burst;
1: - u8 supported: 1;
1: - u8 asap: 1;
1: - u8 non_asap: 1;
1: - u8 request_lci: 1;
1: - u8 request_civicloc: 1;
1: - u8 trigger_based: 1;
1: - u8 non_trigger_based: 1;
1: - } ftm;
1: + unsigned int max_peers;
1: + u8 report_ap_tsf : 1;
1: + u8 randomize_mac_addr : 1;
1: + struct {
1: + u32 preambles;
1: + u32 bandwidths;
1: + s8 max_bursts_exponent;
1: + u8 max_ftms_per_burst;
1: + u8 supported : 1;
1: + u8 asap : 1;
1: + u8 non_asap : 1;
1: + u8 request_lci : 1;
1: + u8 request_civicloc : 1;
1: + u8 trigger_based : 1;
1: + u8 non_trigger_based : 1;
1: + } ftm;
1: };
1:
1: struct wiphy_iftype_akm_suites {
1: - u16 iftypes_mask;
1: - const u32 *akm_suites;
1: - int n_akm_suites;
1: + u16 iftypes_mask;
1: + const u32 *akm_suites;
1: + int n_akm_suites;
1: };
1:
1: struct iw_ioctl_description {
1: - __u8 header_type;
1: - __u8 token_type;
1: - __u16 token_size;
1: - __u16 min_tokens;
1: - __u16 max_tokens;
1: - __u32 flags;
1: + __u8 header_type;
1: + __u8 token_type;
1: + __u16 token_size;
1: + __u16 min_tokens;
1: + __u16 max_tokens;
1: + __u32 flags;
1: };
1:
1: -typedef int (*wext_ioctl_func)(struct net_device *, struct iwreq *, unsigned int, struct iw_request_info *, iw_handler);
1: +typedef int (*wext_ioctl_func)(struct net_device *, struct iwreq *,
1: + unsigned int, struct iw_request_info *,
1: + iw_handler);
1:
1: struct iw_thrspy {
1: - struct sockaddr addr;
1: - struct iw_quality qual;
1: - struct iw_quality low;
1: - struct iw_quality high;
1: + struct sockaddr addr;
1: + struct iw_quality qual;
1: + struct iw_quality low;
1: + struct iw_quality high;
1: };
1:
1: struct netlbl_af4list {
1: - __be32 addr;
1: - __be32 mask;
1: - u32 valid;
1: - struct list_head list;
1: + __be32 addr;
1: + __be32 mask;
1: + u32 valid;
1: + struct list_head list;
1: };
1:
1: struct netlbl_af6list {
1: - struct in6_addr addr;
1: - struct in6_addr mask;
1: - u32 valid;
1: - struct list_head list;
1: + struct in6_addr addr;
1: + struct in6_addr mask;
1: + u32 valid;
1: + struct list_head list;
1: };
1:
1: struct netlbl_domaddr_map {
1: - struct list_head list4;
1: - struct list_head list6;
1: + struct list_head list4;
1: + struct list_head list6;
1: };
1:
1: struct netlbl_dommap_def {
1: - u32 type;
1: - union {
1: - struct netlbl_domaddr_map *addrsel;
1: - struct cipso_v4_doi *cipso;
1: - struct calipso_doi *calipso;
1: - };
1: + u32 type;
1: + union {
1: + struct netlbl_domaddr_map *addrsel;
1: + struct cipso_v4_doi *cipso;
1: + struct calipso_doi *calipso;
1: + };
1: };
1:
1: struct netlbl_domaddr4_map {
1: - struct netlbl_dommap_def def;
1: - struct netlbl_af4list list;
1: + struct netlbl_dommap_def def;
1: + struct netlbl_af4list list;
1: };
1:
1: struct netlbl_domaddr6_map {
1: - struct netlbl_dommap_def def;
1: - struct netlbl_af6list list;
1: + struct netlbl_dommap_def def;
1: + struct netlbl_af6list list;
1: };
1:
1: struct netlbl_dom_map {
1: - char *domain;
1: - u16 family;
1: - struct netlbl_dommap_def def;
1: - u32 valid;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + char *domain;
1: + u16 family;
1: + struct netlbl_dommap_def def;
1: + u32 valid;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct netlbl_domhsh_tbl {
1: - struct list_head *tbl;
1: - u32 size;
1: -};
1: -
1: -enum {
1: - NLBL_MGMT_C_UNSPEC = 0,
1: - NLBL_MGMT_C_ADD = 1,
1: - NLBL_MGMT_C_REMOVE = 2,
1: - NLBL_MGMT_C_LISTALL = 3,
1: - NLBL_MGMT_C_ADDDEF = 4,
1: - NLBL_MGMT_C_REMOVEDEF = 5,
1: - NLBL_MGMT_C_LISTDEF = 6,
1: - NLBL_MGMT_C_PROTOCOLS = 7,
1: - NLBL_MGMT_C_VERSION = 8,
1: - NLBL_MGMT_C_S0_SET = 9,
1: - NLBL_MGMT_C_S0_GET = 10,
1: - __NLBL_MGMT_C_MAX = 11,
1: -};
1: -
1: -enum {
1: - NLBL_MGMT_A_UNSPEC = 0,
1: - NLBL_MGMT_A_DOMAIN = 1,
1: - NLBL_MGMT_A_PROTOCOL = 2,
1: - NLBL_MGMT_A_VERSION = 3,
1: - NLBL_MGMT_A_CV4DOI = 4,
1: - NLBL_MGMT_A_IPV6ADDR = 5,
1: - NLBL_MGMT_A_IPV6MASK = 6,
1: - NLBL_MGMT_A_IPV4ADDR = 7,
1: - NLBL_MGMT_A_IPV4MASK = 8,
1: - NLBL_MGMT_A_ADDRSELECTOR = 9,
1: - NLBL_MGMT_A_SELECTORLIST = 10,
1: - NLBL_MGMT_A_FAMILY = 11,
1: - NLBL_MGMT_A_CLPDOI = 12,
1: - NLBL_MGMT_A_S0 = 13,
1: - __NLBL_MGMT_A_MAX = 14,
1: + struct list_head *tbl;
1: + u32 size;
1: +};
1: +
1: +enum {
1: + NLBL_MGMT_C_UNSPEC = 0,
1: + NLBL_MGMT_C_ADD = 1,
1: + NLBL_MGMT_C_REMOVE = 2,
1: + NLBL_MGMT_C_LISTALL = 3,
1: + NLBL_MGMT_C_ADDDEF = 4,
1: + NLBL_MGMT_C_REMOVEDEF = 5,
1: + NLBL_MGMT_C_LISTDEF = 6,
1: + NLBL_MGMT_C_PROTOCOLS = 7,
1: + NLBL_MGMT_C_VERSION = 8,
1: + NLBL_MGMT_C_S0_SET = 9,
1: + NLBL_MGMT_C_S0_GET = 10,
1: + __NLBL_MGMT_C_MAX = 11,
1: +};
1: +
1: +enum {
1: + NLBL_MGMT_A_UNSPEC = 0,
1: + NLBL_MGMT_A_DOMAIN = 1,
1: + NLBL_MGMT_A_PROTOCOL = 2,
1: + NLBL_MGMT_A_VERSION = 3,
1: + NLBL_MGMT_A_CV4DOI = 4,
1: + NLBL_MGMT_A_IPV6ADDR = 5,
1: + NLBL_MGMT_A_IPV6MASK = 6,
1: + NLBL_MGMT_A_IPV4ADDR = 7,
1: + NLBL_MGMT_A_IPV4MASK = 8,
1: + NLBL_MGMT_A_ADDRSELECTOR = 9,
1: + NLBL_MGMT_A_SELECTORLIST = 10,
1: + NLBL_MGMT_A_FAMILY = 11,
1: + NLBL_MGMT_A_CLPDOI = 12,
1: + NLBL_MGMT_A_S0 = 13,
1: + __NLBL_MGMT_A_MAX = 14,
1: };
1:
1: struct netlbl_domhsh_walk_arg {
1: - struct netlink_callback *nl_cb;
1: - struct sk_buff *skb;
1: - u32 seq;
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: };
1:
1: enum {
1: - NLBL_UNLABEL_C_UNSPEC = 0,
1: - NLBL_UNLABEL_C_ACCEPT = 1,
1: - NLBL_UNLABEL_C_LIST = 2,
1: - NLBL_UNLABEL_C_STATICADD = 3,
1: - NLBL_UNLABEL_C_STATICREMOVE = 4,
1: - NLBL_UNLABEL_C_STATICLIST = 5,
1: - NLBL_UNLABEL_C_STATICADDDEF = 6,
1: - NLBL_UNLABEL_C_STATICREMOVEDEF = 7,
1: - NLBL_UNLABEL_C_STATICLISTDEF = 8,
1: - __NLBL_UNLABEL_C_MAX = 9,
1: + NLBL_UNLABEL_C_UNSPEC = 0,
1: + NLBL_UNLABEL_C_ACCEPT = 1,
1: + NLBL_UNLABEL_C_LIST = 2,
1: + NLBL_UNLABEL_C_STATICADD = 3,
1: + NLBL_UNLABEL_C_STATICREMOVE = 4,
1: + NLBL_UNLABEL_C_STATICLIST = 5,
1: + NLBL_UNLABEL_C_STATICADDDEF = 6,
1: + NLBL_UNLABEL_C_STATICREMOVEDEF = 7,
1: + NLBL_UNLABEL_C_STATICLISTDEF = 8,
1: + __NLBL_UNLABEL_C_MAX = 9,
1: };
1:
1: enum {
1: - NLBL_UNLABEL_A_UNSPEC = 0,
1: - NLBL_UNLABEL_A_ACPTFLG = 1,
1: - NLBL_UNLABEL_A_IPV6ADDR = 2,
1: - NLBL_UNLABEL_A_IPV6MASK = 3,
1: - NLBL_UNLABEL_A_IPV4ADDR = 4,
1: - NLBL_UNLABEL_A_IPV4MASK = 5,
1: - NLBL_UNLABEL_A_IFACE = 6,
1: - NLBL_UNLABEL_A_SECCTX = 7,
1: - __NLBL_UNLABEL_A_MAX = 8,
1: + NLBL_UNLABEL_A_UNSPEC = 0,
1: + NLBL_UNLABEL_A_ACPTFLG = 1,
1: + NLBL_UNLABEL_A_IPV6ADDR = 2,
1: + NLBL_UNLABEL_A_IPV6MASK = 3,
1: + NLBL_UNLABEL_A_IPV4ADDR = 4,
1: + NLBL_UNLABEL_A_IPV4MASK = 5,
1: + NLBL_UNLABEL_A_IFACE = 6,
1: + NLBL_UNLABEL_A_SECCTX = 7,
1: + __NLBL_UNLABEL_A_MAX = 8,
1: };
1:
1: struct netlbl_unlhsh_tbl {
1: - struct list_head *tbl;
1: - u32 size;
1: + struct list_head *tbl;
1: + u32 size;
1: };
1:
1: struct netlbl_unlhsh_addr4 {
1: - u32 secid;
1: - struct netlbl_af4list list;
1: - struct callback_head rcu;
1: + u32 secid;
1: + struct netlbl_af4list list;
1: + struct callback_head rcu;
1: };
1:
1: struct netlbl_unlhsh_addr6 {
1: - u32 secid;
1: - struct netlbl_af6list list;
1: - struct callback_head rcu;
1: + u32 secid;
1: + struct netlbl_af6list list;
1: + struct callback_head rcu;
1: };
1:
1: struct netlbl_unlhsh_iface {
1: - int ifindex;
1: - struct list_head addr4_list;
1: - struct list_head addr6_list;
1: - u32 valid;
1: - struct list_head list;
1: - struct callback_head rcu;
1: + int ifindex;
1: + struct list_head addr4_list;
1: + struct list_head addr6_list;
1: + u32 valid;
1: + struct list_head list;
1: + struct callback_head rcu;
1: };
1:
1: struct netlbl_unlhsh_walk_arg {
1: - struct netlink_callback *nl_cb;
1: - struct sk_buff *skb;
1: - u32 seq;
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: };
1:
1: enum {
1: - NLBL_CIPSOV4_C_UNSPEC = 0,
1: - NLBL_CIPSOV4_C_ADD = 1,
1: - NLBL_CIPSOV4_C_REMOVE = 2,
1: - NLBL_CIPSOV4_C_LIST = 3,
1: - NLBL_CIPSOV4_C_LISTALL = 4,
1: - __NLBL_CIPSOV4_C_MAX = 5,
1: + NLBL_CIPSOV4_C_UNSPEC = 0,
1: + NLBL_CIPSOV4_C_ADD = 1,
1: + NLBL_CIPSOV4_C_REMOVE = 2,
1: + NLBL_CIPSOV4_C_LIST = 3,
1: + NLBL_CIPSOV4_C_LISTALL = 4,
1: + __NLBL_CIPSOV4_C_MAX = 5,
1: };
1:
1: enum {
1: - NLBL_CIPSOV4_A_UNSPEC = 0,
1: - NLBL_CIPSOV4_A_DOI = 1,
1: - NLBL_CIPSOV4_A_MTYPE = 2,
1: - NLBL_CIPSOV4_A_TAG = 3,
1: - NLBL_CIPSOV4_A_TAGLST = 4,
1: - NLBL_CIPSOV4_A_MLSLVLLOC = 5,
1: - NLBL_CIPSOV4_A_MLSLVLREM = 6,
1: - NLBL_CIPSOV4_A_MLSLVL = 7,
1: - NLBL_CIPSOV4_A_MLSLVLLST = 8,
1: - NLBL_CIPSOV4_A_MLSCATLOC = 9,
1: - NLBL_CIPSOV4_A_MLSCATREM = 10,
1: - NLBL_CIPSOV4_A_MLSCAT = 11,
1: - NLBL_CIPSOV4_A_MLSCATLST = 12,
1: - __NLBL_CIPSOV4_A_MAX = 13,
1: + NLBL_CIPSOV4_A_UNSPEC = 0,
1: + NLBL_CIPSOV4_A_DOI = 1,
1: + NLBL_CIPSOV4_A_MTYPE = 2,
1: + NLBL_CIPSOV4_A_TAG = 3,
1: + NLBL_CIPSOV4_A_TAGLST = 4,
1: + NLBL_CIPSOV4_A_MLSLVLLOC = 5,
1: + NLBL_CIPSOV4_A_MLSLVLREM = 6,
1: + NLBL_CIPSOV4_A_MLSLVL = 7,
1: + NLBL_CIPSOV4_A_MLSLVLLST = 8,
1: + NLBL_CIPSOV4_A_MLSCATLOC = 9,
1: + NLBL_CIPSOV4_A_MLSCATREM = 10,
1: + NLBL_CIPSOV4_A_MLSCAT = 11,
1: + NLBL_CIPSOV4_A_MLSCATLST = 12,
1: + __NLBL_CIPSOV4_A_MAX = 13,
1: };
1:
1: struct netlbl_cipsov4_doiwalk_arg {
1: - struct netlink_callback *nl_cb;
1: - struct sk_buff *skb;
1: - u32 seq;
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: };
1:
1: struct netlbl_domhsh_walk_arg___2 {
1: - struct netlbl_audit *audit_info;
1: - u32 doi;
1: + struct netlbl_audit *audit_info;
1: + u32 doi;
1: };
1:
1: enum {
1: - NLBL_CALIPSO_C_UNSPEC = 0,
1: - NLBL_CALIPSO_C_ADD = 1,
1: - NLBL_CALIPSO_C_REMOVE = 2,
1: - NLBL_CALIPSO_C_LIST = 3,
1: - NLBL_CALIPSO_C_LISTALL = 4,
1: - __NLBL_CALIPSO_C_MAX = 5,
1: + NLBL_CALIPSO_C_UNSPEC = 0,
1: + NLBL_CALIPSO_C_ADD = 1,
1: + NLBL_CALIPSO_C_REMOVE = 2,
1: + NLBL_CALIPSO_C_LIST = 3,
1: + NLBL_CALIPSO_C_LISTALL = 4,
1: + __NLBL_CALIPSO_C_MAX = 5,
1: };
1:
1: enum {
1: - NLBL_CALIPSO_A_UNSPEC = 0,
1: - NLBL_CALIPSO_A_DOI = 1,
1: - NLBL_CALIPSO_A_MTYPE = 2,
1: - __NLBL_CALIPSO_A_MAX = 3,
1: + NLBL_CALIPSO_A_UNSPEC = 0,
1: + NLBL_CALIPSO_A_DOI = 1,
1: + NLBL_CALIPSO_A_MTYPE = 2,
1: + __NLBL_CALIPSO_A_MAX = 3,
1: };
1:
1: struct netlbl_calipso_doiwalk_arg {
1: - struct netlink_callback *nl_cb;
1: - struct sk_buff *skb;
1: - u32 seq;
1: + struct netlink_callback *nl_cb;
1: + struct sk_buff *skb;
1: + u32 seq;
1: };
1:
1: struct dcbmsg {
1: - __u8 dcb_family;
1: - __u8 cmd;
1: - __u16 dcb_pad;
1: + __u8 dcb_family;
1: + __u8 cmd;
1: + __u16 dcb_pad;
1: };
1:
1: enum dcbnl_commands {
1: - DCB_CMD_UNDEFINED = 0,
1: - DCB_CMD_GSTATE = 1,
1: - DCB_CMD_SSTATE = 2,
1: - DCB_CMD_PGTX_GCFG = 3,
1: - DCB_CMD_PGTX_SCFG = 4,
1: - DCB_CMD_PGRX_GCFG = 5,
1: - DCB_CMD_PGRX_SCFG = 6,
1: - DCB_CMD_PFC_GCFG = 7,
1: - DCB_CMD_PFC_SCFG = 8,
1: - DCB_CMD_SET_ALL = 9,
1: - DCB_CMD_GPERM_HWADDR = 10,
1: - DCB_CMD_GCAP = 11,
1: - DCB_CMD_GNUMTCS = 12,
1: - DCB_CMD_SNUMTCS = 13,
1: - DCB_CMD_PFC_GSTATE = 14,
1: - DCB_CMD_PFC_SSTATE = 15,
1: - DCB_CMD_BCN_GCFG = 16,
1: - DCB_CMD_BCN_SCFG = 17,
1: - DCB_CMD_GAPP = 18,
1: - DCB_CMD_SAPP = 19,
1: - DCB_CMD_IEEE_SET = 20,
1: - DCB_CMD_IEEE_GET = 21,
1: - DCB_CMD_GDCBX = 22,
1: - DCB_CMD_SDCBX = 23,
1: - DCB_CMD_GFEATCFG = 24,
1: - DCB_CMD_SFEATCFG = 25,
1: - DCB_CMD_CEE_GET = 26,
1: - DCB_CMD_IEEE_DEL = 27,
1: - __DCB_CMD_ENUM_MAX = 28,
1: - DCB_CMD_MAX = 27,
1: + DCB_CMD_UNDEFINED = 0,
1: + DCB_CMD_GSTATE = 1,
1: + DCB_CMD_SSTATE = 2,
1: + DCB_CMD_PGTX_GCFG = 3,
1: + DCB_CMD_PGTX_SCFG = 4,
1: + DCB_CMD_PGRX_GCFG = 5,
1: + DCB_CMD_PGRX_SCFG = 6,
1: + DCB_CMD_PFC_GCFG = 7,
1: + DCB_CMD_PFC_SCFG = 8,
1: + DCB_CMD_SET_ALL = 9,
1: + DCB_CMD_GPERM_HWADDR = 10,
1: + DCB_CMD_GCAP = 11,
1: + DCB_CMD_GNUMTCS = 12,
1: + DCB_CMD_SNUMTCS = 13,
1: + DCB_CMD_PFC_GSTATE = 14,
1: + DCB_CMD_PFC_SSTATE = 15,
1: + DCB_CMD_BCN_GCFG = 16,
1: + DCB_CMD_BCN_SCFG = 17,
1: + DCB_CMD_GAPP = 18,
1: + DCB_CMD_SAPP = 19,
1: + DCB_CMD_IEEE_SET = 20,
1: + DCB_CMD_IEEE_GET = 21,
1: + DCB_CMD_GDCBX = 22,
1: + DCB_CMD_SDCBX = 23,
1: + DCB_CMD_GFEATCFG = 24,
1: + DCB_CMD_SFEATCFG = 25,
1: + DCB_CMD_CEE_GET = 26,
1: + DCB_CMD_IEEE_DEL = 27,
1: + __DCB_CMD_ENUM_MAX = 28,
1: + DCB_CMD_MAX = 27,
1: };
1:
1: enum dcbnl_attrs {
1: - DCB_ATTR_UNDEFINED = 0,
1: - DCB_ATTR_IFNAME = 1,
1: - DCB_ATTR_STATE = 2,
1: - DCB_ATTR_PFC_STATE = 3,
1: - DCB_ATTR_PFC_CFG = 4,
1: - DCB_ATTR_NUM_TC = 5,
1: - DCB_ATTR_PG_CFG = 6,
1: - DCB_ATTR_SET_ALL = 7,
1: - DCB_ATTR_PERM_HWADDR = 8,
1: - DCB_ATTR_CAP = 9,
1: - DCB_ATTR_NUMTCS = 10,
1: - DCB_ATTR_BCN = 11,
1: - DCB_ATTR_APP = 12,
1: - DCB_ATTR_IEEE = 13,
1: - DCB_ATTR_DCBX = 14,
1: - DCB_ATTR_FEATCFG = 15,
1: - DCB_ATTR_CEE = 16,
1: - __DCB_ATTR_ENUM_MAX = 17,
1: - DCB_ATTR_MAX = 16,
1: + DCB_ATTR_UNDEFINED = 0,
1: + DCB_ATTR_IFNAME = 1,
1: + DCB_ATTR_STATE = 2,
1: + DCB_ATTR_PFC_STATE = 3,
1: + DCB_ATTR_PFC_CFG = 4,
1: + DCB_ATTR_NUM_TC = 5,
1: + DCB_ATTR_PG_CFG = 6,
1: + DCB_ATTR_SET_ALL = 7,
1: + DCB_ATTR_PERM_HWADDR = 8,
1: + DCB_ATTR_CAP = 9,
1: + DCB_ATTR_NUMTCS = 10,
1: + DCB_ATTR_BCN = 11,
1: + DCB_ATTR_APP = 12,
1: + DCB_ATTR_IEEE = 13,
1: + DCB_ATTR_DCBX = 14,
1: + DCB_ATTR_FEATCFG = 15,
1: + DCB_ATTR_CEE = 16,
1: + __DCB_ATTR_ENUM_MAX = 17,
1: + DCB_ATTR_MAX = 16,
1: };
1:
1: enum ieee_attrs {
1: - DCB_ATTR_IEEE_UNSPEC = 0,
1: - DCB_ATTR_IEEE_ETS = 1,
1: - DCB_ATTR_IEEE_PFC = 2,
1: - DCB_ATTR_IEEE_APP_TABLE = 3,
1: - DCB_ATTR_IEEE_PEER_ETS = 4,
1: - DCB_ATTR_IEEE_PEER_PFC = 5,
1: - DCB_ATTR_IEEE_PEER_APP = 6,
1: - DCB_ATTR_IEEE_MAXRATE = 7,
1: - DCB_ATTR_IEEE_QCN = 8,
1: - DCB_ATTR_IEEE_QCN_STATS = 9,
1: - DCB_ATTR_DCB_BUFFER = 10,
1: - __DCB_ATTR_IEEE_MAX = 11,
1: + DCB_ATTR_IEEE_UNSPEC = 0,
1: + DCB_ATTR_IEEE_ETS = 1,
1: + DCB_ATTR_IEEE_PFC = 2,
1: + DCB_ATTR_IEEE_APP_TABLE = 3,
1: + DCB_ATTR_IEEE_PEER_ETS = 4,
1: + DCB_ATTR_IEEE_PEER_PFC = 5,
1: + DCB_ATTR_IEEE_PEER_APP = 6,
1: + DCB_ATTR_IEEE_MAXRATE = 7,
1: + DCB_ATTR_IEEE_QCN = 8,
1: + DCB_ATTR_IEEE_QCN_STATS = 9,
1: + DCB_ATTR_DCB_BUFFER = 10,
1: + __DCB_ATTR_IEEE_MAX = 11,
1: };
1:
1: enum ieee_attrs_app {
1: - DCB_ATTR_IEEE_APP_UNSPEC = 0,
1: - DCB_ATTR_IEEE_APP = 1,
1: - __DCB_ATTR_IEEE_APP_MAX = 2,
1: + DCB_ATTR_IEEE_APP_UNSPEC = 0,
1: + DCB_ATTR_IEEE_APP = 1,
1: + __DCB_ATTR_IEEE_APP_MAX = 2,
1: };
1:
1: enum cee_attrs {
1: - DCB_ATTR_CEE_UNSPEC = 0,
1: - DCB_ATTR_CEE_PEER_PG = 1,
1: - DCB_ATTR_CEE_PEER_PFC = 2,
1: - DCB_ATTR_CEE_PEER_APP_TABLE = 3,
1: - DCB_ATTR_CEE_TX_PG = 4,
1: - DCB_ATTR_CEE_RX_PG = 5,
1: - DCB_ATTR_CEE_PFC = 6,
1: - DCB_ATTR_CEE_APP_TABLE = 7,
1: - DCB_ATTR_CEE_FEAT = 8,
1: - __DCB_ATTR_CEE_MAX = 9,
1: + DCB_ATTR_CEE_UNSPEC = 0,
1: + DCB_ATTR_CEE_PEER_PG = 1,
1: + DCB_ATTR_CEE_PEER_PFC = 2,
1: + DCB_ATTR_CEE_PEER_APP_TABLE = 3,
1: + DCB_ATTR_CEE_TX_PG = 4,
1: + DCB_ATTR_CEE_RX_PG = 5,
1: + DCB_ATTR_CEE_PFC = 6,
1: + DCB_ATTR_CEE_APP_TABLE = 7,
1: + DCB_ATTR_CEE_FEAT = 8,
1: + __DCB_ATTR_CEE_MAX = 9,
1: };
1:
1: enum peer_app_attr {
1: - DCB_ATTR_CEE_PEER_APP_UNSPEC = 0,
1: - DCB_ATTR_CEE_PEER_APP_INFO = 1,
1: - DCB_ATTR_CEE_PEER_APP = 2,
1: - __DCB_ATTR_CEE_PEER_APP_MAX = 3,
1: + DCB_ATTR_CEE_PEER_APP_UNSPEC = 0,
1: + DCB_ATTR_CEE_PEER_APP_INFO = 1,
1: + DCB_ATTR_CEE_PEER_APP = 2,
1: + __DCB_ATTR_CEE_PEER_APP_MAX = 3,
1: };
1:
1: enum dcbnl_pfc_up_attrs {
1: - DCB_PFC_UP_ATTR_UNDEFINED = 0,
1: - DCB_PFC_UP_ATTR_0 = 1,
1: - DCB_PFC_UP_ATTR_1 = 2,
1: - DCB_PFC_UP_ATTR_2 = 3,
1: - DCB_PFC_UP_ATTR_3 = 4,
1: - DCB_PFC_UP_ATTR_4 = 5,
1: - DCB_PFC_UP_ATTR_5 = 6,
1: - DCB_PFC_UP_ATTR_6 = 7,
1: - DCB_PFC_UP_ATTR_7 = 8,
1: - DCB_PFC_UP_ATTR_ALL = 9,
1: - __DCB_PFC_UP_ATTR_ENUM_MAX = 10,
1: - DCB_PFC_UP_ATTR_MAX = 9,
1: + DCB_PFC_UP_ATTR_UNDEFINED = 0,
1: + DCB_PFC_UP_ATTR_0 = 1,
1: + DCB_PFC_UP_ATTR_1 = 2,
1: + DCB_PFC_UP_ATTR_2 = 3,
1: + DCB_PFC_UP_ATTR_3 = 4,
1: + DCB_PFC_UP_ATTR_4 = 5,
1: + DCB_PFC_UP_ATTR_5 = 6,
1: + DCB_PFC_UP_ATTR_6 = 7,
1: + DCB_PFC_UP_ATTR_7 = 8,
1: + DCB_PFC_UP_ATTR_ALL = 9,
1: + __DCB_PFC_UP_ATTR_ENUM_MAX = 10,
1: + DCB_PFC_UP_ATTR_MAX = 9,
1: };
1:
1: enum dcbnl_pg_attrs {
1: - DCB_PG_ATTR_UNDEFINED = 0,
1: - DCB_PG_ATTR_TC_0 = 1,
1: - DCB_PG_ATTR_TC_1 = 2,
1: - DCB_PG_ATTR_TC_2 = 3,
1: - DCB_PG_ATTR_TC_3 = 4,
1: - DCB_PG_ATTR_TC_4 = 5,
1: - DCB_PG_ATTR_TC_5 = 6,
1: - DCB_PG_ATTR_TC_6 = 7,
1: - DCB_PG_ATTR_TC_7 = 8,
1: - DCB_PG_ATTR_TC_MAX = 9,
1: - DCB_PG_ATTR_TC_ALL = 10,
1: - DCB_PG_ATTR_BW_ID_0 = 11,
1: - DCB_PG_ATTR_BW_ID_1 = 12,
1: - DCB_PG_ATTR_BW_ID_2 = 13,
1: - DCB_PG_ATTR_BW_ID_3 = 14,
1: - DCB_PG_ATTR_BW_ID_4 = 15,
1: - DCB_PG_ATTR_BW_ID_5 = 16,
1: - DCB_PG_ATTR_BW_ID_6 = 17,
1: - DCB_PG_ATTR_BW_ID_7 = 18,
1: - DCB_PG_ATTR_BW_ID_MAX = 19,
1: - DCB_PG_ATTR_BW_ID_ALL = 20,
1: - __DCB_PG_ATTR_ENUM_MAX = 21,
1: - DCB_PG_ATTR_MAX = 20,
1: + DCB_PG_ATTR_UNDEFINED = 0,
1: + DCB_PG_ATTR_TC_0 = 1,
1: + DCB_PG_ATTR_TC_1 = 2,
1: + DCB_PG_ATTR_TC_2 = 3,
1: + DCB_PG_ATTR_TC_3 = 4,
1: + DCB_PG_ATTR_TC_4 = 5,
1: + DCB_PG_ATTR_TC_5 = 6,
1: + DCB_PG_ATTR_TC_6 = 7,
1: + DCB_PG_ATTR_TC_7 = 8,
1: + DCB_PG_ATTR_TC_MAX = 9,
1: + DCB_PG_ATTR_TC_ALL = 10,
1: + DCB_PG_ATTR_BW_ID_0 = 11,
1: + DCB_PG_ATTR_BW_ID_1 = 12,
1: + DCB_PG_ATTR_BW_ID_2 = 13,
1: + DCB_PG_ATTR_BW_ID_3 = 14,
1: + DCB_PG_ATTR_BW_ID_4 = 15,
1: + DCB_PG_ATTR_BW_ID_5 = 16,
1: + DCB_PG_ATTR_BW_ID_6 = 17,
1: + DCB_PG_ATTR_BW_ID_7 = 18,
1: + DCB_PG_ATTR_BW_ID_MAX = 19,
1: + DCB_PG_ATTR_BW_ID_ALL = 20,
1: + __DCB_PG_ATTR_ENUM_MAX = 21,
1: + DCB_PG_ATTR_MAX = 20,
1: };
1:
1: enum dcbnl_tc_attrs {
1: - DCB_TC_ATTR_PARAM_UNDEFINED = 0,
1: - DCB_TC_ATTR_PARAM_PGID = 1,
1: - DCB_TC_ATTR_PARAM_UP_MAPPING = 2,
1: - DCB_TC_ATTR_PARAM_STRICT_PRIO = 3,
1: - DCB_TC_ATTR_PARAM_BW_PCT = 4,
1: - DCB_TC_ATTR_PARAM_ALL = 5,
1: - __DCB_TC_ATTR_PARAM_ENUM_MAX = 6,
1: - DCB_TC_ATTR_PARAM_MAX = 5,
1: + DCB_TC_ATTR_PARAM_UNDEFINED = 0,
1: + DCB_TC_ATTR_PARAM_PGID = 1,
1: + DCB_TC_ATTR_PARAM_UP_MAPPING = 2,
1: + DCB_TC_ATTR_PARAM_STRICT_PRIO = 3,
1: + DCB_TC_ATTR_PARAM_BW_PCT = 4,
1: + DCB_TC_ATTR_PARAM_ALL = 5,
1: + __DCB_TC_ATTR_PARAM_ENUM_MAX = 6,
1: + DCB_TC_ATTR_PARAM_MAX = 5,
1: };
1:
1: enum dcbnl_cap_attrs {
1: - DCB_CAP_ATTR_UNDEFINED = 0,
1: - DCB_CAP_ATTR_ALL = 1,
1: - DCB_CAP_ATTR_PG = 2,
1: - DCB_CAP_ATTR_PFC = 3,
1: - DCB_CAP_ATTR_UP2TC = 4,
1: - DCB_CAP_ATTR_PG_TCS = 5,
1: - DCB_CAP_ATTR_PFC_TCS = 6,
1: - DCB_CAP_ATTR_GSP = 7,
1: - DCB_CAP_ATTR_BCN = 8,
1: - DCB_CAP_ATTR_DCBX = 9,
1: - __DCB_CAP_ATTR_ENUM_MAX = 10,
1: - DCB_CAP_ATTR_MAX = 9,
1: + DCB_CAP_ATTR_UNDEFINED = 0,
1: + DCB_CAP_ATTR_ALL = 1,
1: + DCB_CAP_ATTR_PG = 2,
1: + DCB_CAP_ATTR_PFC = 3,
1: + DCB_CAP_ATTR_UP2TC = 4,
1: + DCB_CAP_ATTR_PG_TCS = 5,
1: + DCB_CAP_ATTR_PFC_TCS = 6,
1: + DCB_CAP_ATTR_GSP = 7,
1: + DCB_CAP_ATTR_BCN = 8,
1: + DCB_CAP_ATTR_DCBX = 9,
1: + __DCB_CAP_ATTR_ENUM_MAX = 10,
1: + DCB_CAP_ATTR_MAX = 9,
1: };
1:
1: enum dcbnl_numtcs_attrs {
1: - DCB_NUMTCS_ATTR_UNDEFINED = 0,
1: - DCB_NUMTCS_ATTR_ALL = 1,
1: - DCB_NUMTCS_ATTR_PG = 2,
1: - DCB_NUMTCS_ATTR_PFC = 3,
1: - __DCB_NUMTCS_ATTR_ENUM_MAX = 4,
1: - DCB_NUMTCS_ATTR_MAX = 3,
1: + DCB_NUMTCS_ATTR_UNDEFINED = 0,
1: + DCB_NUMTCS_ATTR_ALL = 1,
1: + DCB_NUMTCS_ATTR_PG = 2,
1: + DCB_NUMTCS_ATTR_PFC = 3,
1: + __DCB_NUMTCS_ATTR_ENUM_MAX = 4,
1: + DCB_NUMTCS_ATTR_MAX = 3,
1: };
1:
1: enum dcbnl_bcn_attrs {
1: - DCB_BCN_ATTR_UNDEFINED = 0,
1: - DCB_BCN_ATTR_RP_0 = 1,
1: - DCB_BCN_ATTR_RP_1 = 2,
1: - DCB_BCN_ATTR_RP_2 = 3,
1: - DCB_BCN_ATTR_RP_3 = 4,
1: - DCB_BCN_ATTR_RP_4 = 5,
1: - DCB_BCN_ATTR_RP_5 = 6,
1: - DCB_BCN_ATTR_RP_6 = 7,
1: - DCB_BCN_ATTR_RP_7 = 8,
1: - DCB_BCN_ATTR_RP_ALL = 9,
1: - DCB_BCN_ATTR_BCNA_0 = 10,
1: - DCB_BCN_ATTR_BCNA_1 = 11,
1: - DCB_BCN_ATTR_ALPHA = 12,
1: - DCB_BCN_ATTR_BETA = 13,
1: - DCB_BCN_ATTR_GD = 14,
1: - DCB_BCN_ATTR_GI = 15,
1: - DCB_BCN_ATTR_TMAX = 16,
1: - DCB_BCN_ATTR_TD = 17,
1: - DCB_BCN_ATTR_RMIN = 18,
1: - DCB_BCN_ATTR_W = 19,
1: - DCB_BCN_ATTR_RD = 20,
1: - DCB_BCN_ATTR_RU = 21,
1: - DCB_BCN_ATTR_WRTT = 22,
1: - DCB_BCN_ATTR_RI = 23,
1: - DCB_BCN_ATTR_C = 24,
1: - DCB_BCN_ATTR_ALL = 25,
1: - __DCB_BCN_ATTR_ENUM_MAX = 26,
1: - DCB_BCN_ATTR_MAX = 25,
1: + DCB_BCN_ATTR_UNDEFINED = 0,
1: + DCB_BCN_ATTR_RP_0 = 1,
1: + DCB_BCN_ATTR_RP_1 = 2,
1: + DCB_BCN_ATTR_RP_2 = 3,
1: + DCB_BCN_ATTR_RP_3 = 4,
1: + DCB_BCN_ATTR_RP_4 = 5,
1: + DCB_BCN_ATTR_RP_5 = 6,
1: + DCB_BCN_ATTR_RP_6 = 7,
1: + DCB_BCN_ATTR_RP_7 = 8,
1: + DCB_BCN_ATTR_RP_ALL = 9,
1: + DCB_BCN_ATTR_BCNA_0 = 10,
1: + DCB_BCN_ATTR_BCNA_1 = 11,
1: + DCB_BCN_ATTR_ALPHA = 12,
1: + DCB_BCN_ATTR_BETA = 13,
1: + DCB_BCN_ATTR_GD = 14,
1: + DCB_BCN_ATTR_GI = 15,
1: + DCB_BCN_ATTR_TMAX = 16,
1: + DCB_BCN_ATTR_TD = 17,
1: + DCB_BCN_ATTR_RMIN = 18,
1: + DCB_BCN_ATTR_W = 19,
1: + DCB_BCN_ATTR_RD = 20,
1: + DCB_BCN_ATTR_RU = 21,
1: + DCB_BCN_ATTR_WRTT = 22,
1: + DCB_BCN_ATTR_RI = 23,
1: + DCB_BCN_ATTR_C = 24,
1: + DCB_BCN_ATTR_ALL = 25,
1: + __DCB_BCN_ATTR_ENUM_MAX = 26,
1: + DCB_BCN_ATTR_MAX = 25,
1: };
1:
1: enum dcb_general_attr_values {
1: - DCB_ATTR_VALUE_UNDEFINED = 255,
1: + DCB_ATTR_VALUE_UNDEFINED = 255,
1: };
1:
1: enum dcbnl_app_attrs {
1: - DCB_APP_ATTR_UNDEFINED = 0,
1: - DCB_APP_ATTR_IDTYPE = 1,
1: - DCB_APP_ATTR_ID = 2,
1: - DCB_APP_ATTR_PRIORITY = 3,
1: - __DCB_APP_ATTR_ENUM_MAX = 4,
1: - DCB_APP_ATTR_MAX = 3,
1: + DCB_APP_ATTR_UNDEFINED = 0,
1: + DCB_APP_ATTR_IDTYPE = 1,
1: + DCB_APP_ATTR_ID = 2,
1: + DCB_APP_ATTR_PRIORITY = 3,
1: + __DCB_APP_ATTR_ENUM_MAX = 4,
1: + DCB_APP_ATTR_MAX = 3,
1: };
1:
1: enum dcbnl_featcfg_attrs {
1: - DCB_FEATCFG_ATTR_UNDEFINED = 0,
1: - DCB_FEATCFG_ATTR_ALL = 1,
1: - DCB_FEATCFG_ATTR_PG = 2,
1: - DCB_FEATCFG_ATTR_PFC = 3,
1: - DCB_FEATCFG_ATTR_APP = 4,
1: - __DCB_FEATCFG_ATTR_ENUM_MAX = 5,
1: - DCB_FEATCFG_ATTR_MAX = 4,
1: + DCB_FEATCFG_ATTR_UNDEFINED = 0,
1: + DCB_FEATCFG_ATTR_ALL = 1,
1: + DCB_FEATCFG_ATTR_PG = 2,
1: + DCB_FEATCFG_ATTR_PFC = 3,
1: + DCB_FEATCFG_ATTR_APP = 4,
1: + __DCB_FEATCFG_ATTR_ENUM_MAX = 5,
1: + DCB_FEATCFG_ATTR_MAX = 4,
1: };
1:
1: struct dcb_app_type {
1: - int ifindex;
1: - struct dcb_app app;
1: - struct list_head list;
1: - u8 dcbx;
1: + int ifindex;
1: + struct dcb_app app;
1: + struct list_head list;
1: + u8 dcbx;
1: };
1:
1: struct dcb_ieee_app_prio_map {
1: - u64 map[8];
1: + u64 map[8];
1: };
1:
1: struct dcb_ieee_app_dscp_map {
1: - u8 map[64];
1: + u8 map[64];
1: };
1:
1: enum dcbevent_notif_type {
1: - DCB_APP_EVENT = 1,
1: + DCB_APP_EVENT = 1,
1: };
1:
1: struct reply_func {
1: - int type;
1: - int (*cb)(struct net_device *, struct nlmsghdr *, u32, struct nlattr **, struct sk_buff *);
1: + int type;
1: + int (*cb)(struct net_device *, struct nlmsghdr *, u32, struct nlattr **,
1: + struct sk_buff *);
1: };
1:
1: enum switchdev_attr_id {
1: - SWITCHDEV_ATTR_ID_UNDEFINED = 0,
1: - SWITCHDEV_ATTR_ID_PORT_STP_STATE = 1,
1: - SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS = 2,
1: - SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS = 3,
1: - SWITCHDEV_ATTR_ID_PORT_MROUTER = 4,
1: - SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME = 5,
1: - SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING = 6,
1: - SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED = 7,
1: - SWITCHDEV_ATTR_ID_BRIDGE_MROUTER = 8,
1: - SWITCHDEV_ATTR_ID_MRP_PORT_STATE = 9,
1: - SWITCHDEV_ATTR_ID_MRP_PORT_ROLE = 10,
1: + SWITCHDEV_ATTR_ID_UNDEFINED = 0,
1: + SWITCHDEV_ATTR_ID_PORT_STP_STATE = 1,
1: + SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS = 2,
1: + SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS = 3,
1: + SWITCHDEV_ATTR_ID_PORT_MROUTER = 4,
1: + SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME = 5,
1: + SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING = 6,
1: + SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED = 7,
1: + SWITCHDEV_ATTR_ID_BRIDGE_MROUTER = 8,
1: + SWITCHDEV_ATTR_ID_MRP_PORT_STATE = 9,
1: + SWITCHDEV_ATTR_ID_MRP_PORT_ROLE = 10,
1: };
1:
1: struct switchdev_attr {
1: - struct net_device *orig_dev;
1: - enum switchdev_attr_id id;
1: - u32 flags;
1: - void *complete_priv;
1: - void (*complete)(struct net_device *, int, void *);
1: - union {
1: - u8 stp_state;
1: - long unsigned int brport_flags;
1: - bool mrouter;
1: - clock_t ageing_time;
1: - bool vlan_filtering;
1: - bool mc_disabled;
1: - u8 mrp_port_state;
1: - u8 mrp_port_role;
1: - } u;
1: + struct net_device *orig_dev;
1: + enum switchdev_attr_id id;
1: + u32 flags;
1: + void *complete_priv;
1: + void (*complete)(struct net_device *, int, void *);
1: + union {
1: + u8 stp_state;
1: + long unsigned int brport_flags;
1: + bool mrouter;
1: + clock_t ageing_time;
1: + bool vlan_filtering;
1: + bool mc_disabled;
1: + u8 mrp_port_state;
1: + u8 mrp_port_role;
1: + } u;
1: };
1:
1: enum switchdev_notifier_type {
1: - SWITCHDEV_FDB_ADD_TO_BRIDGE = 1,
1: - SWITCHDEV_FDB_DEL_TO_BRIDGE = 2,
1: - SWITCHDEV_FDB_ADD_TO_DEVICE = 3,
1: - SWITCHDEV_FDB_DEL_TO_DEVICE = 4,
1: - SWITCHDEV_FDB_OFFLOADED = 5,
1: - SWITCHDEV_FDB_FLUSH_TO_BRIDGE = 6,
1: - SWITCHDEV_PORT_OBJ_ADD = 7,
1: - SWITCHDEV_PORT_OBJ_DEL = 8,
1: - SWITCHDEV_PORT_ATTR_SET = 9,
1: - SWITCHDEV_VXLAN_FDB_ADD_TO_BRIDGE = 10,
1: - SWITCHDEV_VXLAN_FDB_DEL_TO_BRIDGE = 11,
1: - SWITCHDEV_VXLAN_FDB_ADD_TO_DEVICE = 12,
1: - SWITCHDEV_VXLAN_FDB_DEL_TO_DEVICE = 13,
1: - SWITCHDEV_VXLAN_FDB_OFFLOADED = 14,
1: + SWITCHDEV_FDB_ADD_TO_BRIDGE = 1,
1: + SWITCHDEV_FDB_DEL_TO_BRIDGE = 2,
1: + SWITCHDEV_FDB_ADD_TO_DEVICE = 3,
1: + SWITCHDEV_FDB_DEL_TO_DEVICE = 4,
1: + SWITCHDEV_FDB_OFFLOADED = 5,
1: + SWITCHDEV_FDB_FLUSH_TO_BRIDGE = 6,
1: + SWITCHDEV_PORT_OBJ_ADD = 7,
1: + SWITCHDEV_PORT_OBJ_DEL = 8,
1: + SWITCHDEV_PORT_ATTR_SET = 9,
1: + SWITCHDEV_VXLAN_FDB_ADD_TO_BRIDGE = 10,
1: + SWITCHDEV_VXLAN_FDB_DEL_TO_BRIDGE = 11,
1: + SWITCHDEV_VXLAN_FDB_ADD_TO_DEVICE = 12,
1: + SWITCHDEV_VXLAN_FDB_DEL_TO_DEVICE = 13,
1: + SWITCHDEV_VXLAN_FDB_OFFLOADED = 14,
1: };
1:
1: struct switchdev_notifier_info {
1: - struct net_device *dev;
1: - struct netlink_ext_ack *extack;
1: + struct net_device *dev;
1: + struct netlink_ext_ack *extack;
1: };
1:
1: struct switchdev_notifier_port_obj_info {
1: - struct switchdev_notifier_info info;
1: - const struct switchdev_obj *obj;
1: - struct switchdev_trans *trans;
1: - bool handled;
1: + struct switchdev_notifier_info info;
1: + const struct switchdev_obj *obj;
1: + struct switchdev_trans *trans;
1: + bool handled;
1: };
1:
1: struct switchdev_notifier_port_attr_info {
1: - struct switchdev_notifier_info info;
1: - const struct switchdev_attr *attr;
1: - struct switchdev_trans *trans;
1: - bool handled;
1: + struct switchdev_notifier_info info;
1: + const struct switchdev_attr *attr;
1: + struct switchdev_trans *trans;
1: + bool handled;
1: };
1:
1: typedef void switchdev_deferred_func_t(struct net_device *, const void *);
1:
1: struct switchdev_deferred_item {
1: - struct list_head list;
1: - struct net_device *dev;
1: - switchdev_deferred_func_t *func;
1: - long unsigned int data[0];
1: + struct list_head list;
1: + struct net_device *dev;
1: + switchdev_deferred_func_t *func;
1: + long unsigned int data[0];
1: };
1:
1: enum l3mdev_type {
1: - L3MDEV_TYPE_UNSPEC = 0,
1: - L3MDEV_TYPE_VRF = 1,
1: - __L3MDEV_TYPE_MAX = 2,
1: + L3MDEV_TYPE_UNSPEC = 0,
1: + L3MDEV_TYPE_VRF = 1,
1: + __L3MDEV_TYPE_MAX = 2,
1: };
1:
1: typedef int (*lookup_by_table_id_t)(struct net *, u32);
1:
1: struct l3mdev_handler {
1: - lookup_by_table_id_t dev_lookup;
1: + lookup_by_table_id_t dev_lookup;
1: };
1:
1: struct ncsi_dev {
1: - int state;
1: - int link_up;
1: - struct net_device *dev;
1: - void (*handler)(struct ncsi_dev *);
1: + int state;
1: + int link_up;
1: + struct net_device *dev;
1: + void (*handler)(struct ncsi_dev *);
1: };
1:
1: enum {
1: - NCSI_CAP_BASE = 0,
1: - NCSI_CAP_GENERIC = 0,
1: - NCSI_CAP_BC = 1,
1: - NCSI_CAP_MC = 2,
1: - NCSI_CAP_BUFFER = 3,
1: - NCSI_CAP_AEN = 4,
1: - NCSI_CAP_VLAN = 5,
1: - NCSI_CAP_MAX = 6,
1: + NCSI_CAP_BASE = 0,
1: + NCSI_CAP_GENERIC = 0,
1: + NCSI_CAP_BC = 1,
1: + NCSI_CAP_MC = 2,
1: + NCSI_CAP_BUFFER = 3,
1: + NCSI_CAP_AEN = 4,
1: + NCSI_CAP_VLAN = 5,
1: + NCSI_CAP_MAX = 6,
1: };
1:
1: enum {
1: - NCSI_MODE_BASE = 0,
1: - NCSI_MODE_ENABLE = 0,
1: - NCSI_MODE_TX_ENABLE = 1,
1: - NCSI_MODE_LINK = 2,
1: - NCSI_MODE_VLAN = 3,
1: - NCSI_MODE_BC = 4,
1: - NCSI_MODE_MC = 5,
1: - NCSI_MODE_AEN = 6,
1: - NCSI_MODE_FC = 7,
1: - NCSI_MODE_MAX = 8,
1: + NCSI_MODE_BASE = 0,
1: + NCSI_MODE_ENABLE = 0,
1: + NCSI_MODE_TX_ENABLE = 1,
1: + NCSI_MODE_LINK = 2,
1: + NCSI_MODE_VLAN = 3,
1: + NCSI_MODE_BC = 4,
1: + NCSI_MODE_MC = 5,
1: + NCSI_MODE_AEN = 6,
1: + NCSI_MODE_FC = 7,
1: + NCSI_MODE_MAX = 8,
1: };
1:
1: struct ncsi_channel_version {
1: - u32 version;
1: - u32 alpha2;
1: - u8 fw_name[12];
1: - u32 fw_version;
1: - u16 pci_ids[4];
1: - u32 mf_id;
1: + u32 version;
1: + u32 alpha2;
1: + u8 fw_name[12];
1: + u32 fw_version;
1: + u16 pci_ids[4];
1: + u32 mf_id;
1: };
1:
1: struct ncsi_channel_cap {
1: - u32 index;
1: - u32 cap;
1: + u32 index;
1: + u32 cap;
1: };
1:
1: struct ncsi_channel_mode {
1: - u32 index;
1: - u32 enable;
1: - u32 size;
1: - u32 data[8];
1: + u32 index;
1: + u32 enable;
1: + u32 size;
1: + u32 data[8];
1: };
1:
1: struct ncsi_channel_mac_filter {
1: - u8 n_uc;
1: - u8 n_mc;
1: - u8 n_mixed;
1: - u64 bitmap;
1: - unsigned char *addrs;
1: + u8 n_uc;
1: + u8 n_mc;
1: + u8 n_mixed;
1: + u64 bitmap;
1: + unsigned char *addrs;
1: };
1:
1: struct ncsi_channel_vlan_filter {
1: - u8 n_vids;
1: - u64 bitmap;
1: - u16 *vids;
1: + u8 n_vids;
1: + u64 bitmap;
1: + u16 *vids;
1: };
1:
1: struct ncsi_channel_stats {
1: - u32 hnc_cnt_hi;
1: - u32 hnc_cnt_lo;
1: - u32 hnc_rx_bytes;
1: - u32 hnc_tx_bytes;
1: - u32 hnc_rx_uc_pkts;
1: - u32 hnc_rx_mc_pkts;
1: - u32 hnc_rx_bc_pkts;
1: - u32 hnc_tx_uc_pkts;
1: - u32 hnc_tx_mc_pkts;
1: - u32 hnc_tx_bc_pkts;
1: - u32 hnc_fcs_err;
1: - u32 hnc_align_err;
1: - u32 hnc_false_carrier;
1: - u32 hnc_runt_pkts;
1: - u32 hnc_jabber_pkts;
1: - u32 hnc_rx_pause_xon;
1: - u32 hnc_rx_pause_xoff;
1: - u32 hnc_tx_pause_xon;
1: - u32 hnc_tx_pause_xoff;
1: - u32 hnc_tx_s_collision;
1: - u32 hnc_tx_m_collision;
1: - u32 hnc_l_collision;
1: - u32 hnc_e_collision;
1: - u32 hnc_rx_ctl_frames;
1: - u32 hnc_rx_64_frames;
1: - u32 hnc_rx_127_frames;
1: - u32 hnc_rx_255_frames;
1: - u32 hnc_rx_511_frames;
1: - u32 hnc_rx_1023_frames;
1: - u32 hnc_rx_1522_frames;
1: - u32 hnc_rx_9022_frames;
1: - u32 hnc_tx_64_frames;
1: - u32 hnc_tx_127_frames;
1: - u32 hnc_tx_255_frames;
1: - u32 hnc_tx_511_frames;
1: - u32 hnc_tx_1023_frames;
1: - u32 hnc_tx_1522_frames;
1: - u32 hnc_tx_9022_frames;
1: - u32 hnc_rx_valid_bytes;
1: - u32 hnc_rx_runt_pkts;
1: - u32 hnc_rx_jabber_pkts;
1: - u32 ncsi_rx_cmds;
1: - u32 ncsi_dropped_cmds;
1: - u32 ncsi_cmd_type_errs;
1: - u32 ncsi_cmd_csum_errs;
1: - u32 ncsi_rx_pkts;
1: - u32 ncsi_tx_pkts;
1: - u32 ncsi_tx_aen_pkts;
1: - u32 pt_tx_pkts;
1: - u32 pt_tx_dropped;
1: - u32 pt_tx_channel_err;
1: - u32 pt_tx_us_err;
1: - u32 pt_rx_pkts;
1: - u32 pt_rx_dropped;
1: - u32 pt_rx_channel_err;
1: - u32 pt_rx_us_err;
1: - u32 pt_rx_os_err;
1: + u32 hnc_cnt_hi;
1: + u32 hnc_cnt_lo;
1: + u32 hnc_rx_bytes;
1: + u32 hnc_tx_bytes;
1: + u32 hnc_rx_uc_pkts;
1: + u32 hnc_rx_mc_pkts;
1: + u32 hnc_rx_bc_pkts;
1: + u32 hnc_tx_uc_pkts;
1: + u32 hnc_tx_mc_pkts;
1: + u32 hnc_tx_bc_pkts;
1: + u32 hnc_fcs_err;
1: + u32 hnc_align_err;
1: + u32 hnc_false_carrier;
1: + u32 hnc_runt_pkts;
1: + u32 hnc_jabber_pkts;
1: + u32 hnc_rx_pause_xon;
1: + u32 hnc_rx_pause_xoff;
1: + u32 hnc_tx_pause_xon;
1: + u32 hnc_tx_pause_xoff;
1: + u32 hnc_tx_s_collision;
1: + u32 hnc_tx_m_collision;
1: + u32 hnc_l_collision;
1: + u32 hnc_e_collision;
1: + u32 hnc_rx_ctl_frames;
1: + u32 hnc_rx_64_frames;
1: + u32 hnc_rx_127_frames;
1: + u32 hnc_rx_255_frames;
1: + u32 hnc_rx_511_frames;
1: + u32 hnc_rx_1023_frames;
1: + u32 hnc_rx_1522_frames;
1: + u32 hnc_rx_9022_frames;
1: + u32 hnc_tx_64_frames;
1: + u32 hnc_tx_127_frames;
1: + u32 hnc_tx_255_frames;
1: + u32 hnc_tx_511_frames;
1: + u32 hnc_tx_1023_frames;
1: + u32 hnc_tx_1522_frames;
1: + u32 hnc_tx_9022_frames;
1: + u32 hnc_rx_valid_bytes;
1: + u32 hnc_rx_runt_pkts;
1: + u32 hnc_rx_jabber_pkts;
1: + u32 ncsi_rx_cmds;
1: + u32 ncsi_dropped_cmds;
1: + u32 ncsi_cmd_type_errs;
1: + u32 ncsi_cmd_csum_errs;
1: + u32 ncsi_rx_pkts;
1: + u32 ncsi_tx_pkts;
1: + u32 ncsi_tx_aen_pkts;
1: + u32 pt_tx_pkts;
1: + u32 pt_tx_dropped;
1: + u32 pt_tx_channel_err;
1: + u32 pt_tx_us_err;
1: + u32 pt_rx_pkts;
1: + u32 pt_rx_dropped;
1: + u32 pt_rx_channel_err;
1: + u32 pt_rx_us_err;
1: + u32 pt_rx_os_err;
1: };
1:
1: struct ncsi_package;
1:
1: struct ncsi_channel {
1: - unsigned char id;
1: - int state;
1: - bool reconfigure_needed;
1: - spinlock_t lock;
1: - struct ncsi_package *package;
1: - struct ncsi_channel_version version;
1: - struct ncsi_channel_cap caps[6];
1: - struct ncsi_channel_mode modes[8];
1: - struct ncsi_channel_mac_filter mac_filter;
1: - struct ncsi_channel_vlan_filter vlan_filter;
1: - struct ncsi_channel_stats stats;
1: - struct {
1: - struct timer_list timer;
1: - bool enabled;
1: - unsigned int state;
1: - } monitor;
1: - struct list_head node;
1: - struct list_head link;
1: + unsigned char id;
1: + int state;
1: + bool reconfigure_needed;
1: + spinlock_t lock;
1: + struct ncsi_package *package;
1: + struct ncsi_channel_version version;
1: + struct ncsi_channel_cap caps[6];
1: + struct ncsi_channel_mode modes[8];
1: + struct ncsi_channel_mac_filter mac_filter;
1: + struct ncsi_channel_vlan_filter vlan_filter;
1: + struct ncsi_channel_stats stats;
1: + struct {
1: + struct timer_list timer;
1: + bool enabled;
1: + unsigned int state;
1: + } monitor;
1: + struct list_head node;
1: + struct list_head link;
1: };
1:
1: struct ncsi_dev_priv;
1:
1: struct ncsi_package {
1: - unsigned char id;
1: - unsigned char uuid[16];
1: - struct ncsi_dev_priv *ndp;
1: - spinlock_t lock;
1: - unsigned int channel_num;
1: - struct list_head channels;
1: - struct list_head node;
1: - bool multi_channel;
1: - u32 channel_whitelist;
1: - struct ncsi_channel *preferred_channel;
1: + unsigned char id;
1: + unsigned char uuid[16];
1: + struct ncsi_dev_priv *ndp;
1: + spinlock_t lock;
1: + unsigned int channel_num;
1: + struct list_head channels;
1: + struct list_head node;
1: + bool multi_channel;
1: + u32 channel_whitelist;
1: + struct ncsi_channel *preferred_channel;
1: };
1:
1: struct ncsi_request {
1: - unsigned char id;
1: - bool used;
1: - unsigned int flags;
1: - struct ncsi_dev_priv *ndp;
1: - struct sk_buff *cmd;
1: - struct sk_buff *rsp;
1: - struct timer_list timer;
1: - bool enabled;
1: - u32 snd_seq;
1: - u32 snd_portid;
1: - struct nlmsghdr nlhdr;
1: + unsigned char id;
1: + bool used;
1: + unsigned int flags;
1: + struct ncsi_dev_priv *ndp;
1: + struct sk_buff *cmd;
1: + struct sk_buff *rsp;
1: + struct timer_list timer;
1: + bool enabled;
1: + u32 snd_seq;
1: + u32 snd_portid;
1: + struct nlmsghdr nlhdr;
1: };
1:
1: struct ncsi_dev_priv {
1: - struct ncsi_dev ndev;
1: - unsigned int flags;
1: - unsigned int gma_flag;
1: - spinlock_t lock;
1: - unsigned int package_probe_id;
1: - unsigned int package_num;
1: - struct list_head packages;
1: - struct ncsi_channel *hot_channel;
1: - struct ncsi_request requests[256];
1: - unsigned int request_id;
1: - unsigned int pending_req_num;
1: - struct ncsi_package *active_package;
1: - struct ncsi_channel *active_channel;
1: - struct list_head channel_queue;
1: - struct work_struct work;
1: - struct packet_type ptype;
1: - struct list_head node;
1: - struct list_head vlan_vids;
1: - bool multi_package;
1: - bool mlx_multi_host;
1: - u32 package_whitelist;
1: + struct ncsi_dev ndev;
1: + unsigned int flags;
1: + unsigned int gma_flag;
1: + spinlock_t lock;
1: + unsigned int package_probe_id;
1: + unsigned int package_num;
1: + struct list_head packages;
1: + struct ncsi_channel *hot_channel;
1: + struct ncsi_request requests[256];
1: + unsigned int request_id;
1: + unsigned int pending_req_num;
1: + struct ncsi_package *active_package;
1: + struct ncsi_channel *active_channel;
1: + struct list_head channel_queue;
1: + struct work_struct work;
1: + struct packet_type ptype;
1: + struct list_head node;
1: + struct list_head vlan_vids;
1: + bool multi_package;
1: + bool mlx_multi_host;
1: + u32 package_whitelist;
1: };
1:
1: struct ncsi_cmd_arg {
1: - struct ncsi_dev_priv *ndp;
1: - unsigned char type;
1: - unsigned char id;
1: - unsigned char package;
1: - unsigned char channel;
1: - short unsigned int payload;
1: - unsigned int req_flags;
1: - union {
1: - unsigned char bytes[16];
1: - short unsigned int words[8];
1: - unsigned int dwords[4];
1: - };
1: - unsigned char *data;
1: - struct genl_info *info;
1: + struct ncsi_dev_priv *ndp;
1: + unsigned char type;
1: + unsigned char id;
1: + unsigned char package;
1: + unsigned char channel;
1: + short unsigned int payload;
1: + unsigned int req_flags;
1: + union {
1: + unsigned char bytes[16];
1: + short unsigned int words[8];
1: + unsigned int dwords[4];
1: + };
1: + unsigned char *data;
1: + struct genl_info *info;
1: };
1:
1: struct ncsi_pkt_hdr {
1: - unsigned char mc_id;
1: - unsigned char revision;
1: - unsigned char reserved;
1: - unsigned char id;
1: - unsigned char type;
1: - unsigned char channel;
1: - __be16 length;
1: - __be32 reserved1[2];
1: + unsigned char mc_id;
1: + unsigned char revision;
1: + unsigned char reserved;
1: + unsigned char id;
1: + unsigned char type;
1: + unsigned char channel;
1: + __be16 length;
1: + __be32 reserved1[2];
1: };
1:
1: struct ncsi_cmd_pkt_hdr {
1: - struct ncsi_pkt_hdr common;
1: + struct ncsi_pkt_hdr common;
1: };
1:
1: struct ncsi_cmd_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 checksum;
1: - unsigned char pad[26];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 checksum;
1: + unsigned char pad[26];
1: };
1:
1: struct ncsi_cmd_sp_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char reserved[3];
1: - unsigned char hw_arbitration;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char hw_arbitration;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_dc_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char reserved[3];
1: - unsigned char ald;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char ald;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_rc_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 reserved;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 reserved;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_ae_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char reserved[3];
1: - unsigned char mc_id;
1: - __be32 mode;
1: - __be32 checksum;
1: - unsigned char pad[18];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mc_id;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: };
1:
1: struct ncsi_cmd_sl_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 mode;
1: - __be32 oem_mode;
1: - __be32 checksum;
1: - unsigned char pad[18];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 oem_mode;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: };
1:
1: struct ncsi_cmd_svf_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be16 reserved;
1: - __be16 vlan;
1: - __be16 reserved1;
1: - unsigned char index;
1: - unsigned char enable;
1: - __be32 checksum;
1: - unsigned char pad[18];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be16 reserved;
1: + __be16 vlan;
1: + __be16 reserved1;
1: + unsigned char index;
1: + unsigned char enable;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: };
1:
1: struct ncsi_cmd_ev_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char reserved[3];
1: - unsigned char mode;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_sma_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char mac[6];
1: - unsigned char index;
1: - unsigned char at_e;
1: - __be32 checksum;
1: - unsigned char pad[18];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char mac[6];
1: + unsigned char index;
1: + unsigned char at_e;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: };
1:
1: struct ncsi_cmd_ebf_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 mode;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_egmf_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 mode;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_snfc_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - unsigned char reserved[3];
1: - unsigned char mode;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + unsigned char reserved[3];
1: + unsigned char mode;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_cmd_oem_pkt {
1: - struct ncsi_cmd_pkt_hdr cmd;
1: - __be32 mfr_id;
1: - unsigned char data[0];
1: + struct ncsi_cmd_pkt_hdr cmd;
1: + __be32 mfr_id;
1: + unsigned char data[0];
1: };
1:
1: struct ncsi_cmd_handler {
1: - unsigned char type;
1: - int payload;
1: - int (*handler)(struct sk_buff *, struct ncsi_cmd_arg *);
1: -};
1: -
1: -enum {
1: - NCSI_CAP_GENERIC_HWA = 1,
1: - NCSI_CAP_GENERIC_HDS = 2,
1: - NCSI_CAP_GENERIC_FC = 4,
1: - NCSI_CAP_GENERIC_FC1 = 8,
1: - NCSI_CAP_GENERIC_MC = 16,
1: - NCSI_CAP_GENERIC_HWA_UNKNOWN = 0,
1: - NCSI_CAP_GENERIC_HWA_SUPPORT = 32,
1: - NCSI_CAP_GENERIC_HWA_NOT_SUPPORT = 64,
1: - NCSI_CAP_GENERIC_HWA_RESERVED = 96,
1: - NCSI_CAP_GENERIC_HWA_MASK = 96,
1: - NCSI_CAP_GENERIC_MASK = 127,
1: - NCSI_CAP_BC_ARP = 1,
1: - NCSI_CAP_BC_DHCPC = 2,
1: - NCSI_CAP_BC_DHCPS = 4,
1: - NCSI_CAP_BC_NETBIOS = 8,
1: - NCSI_CAP_BC_MASK = 15,
1: - NCSI_CAP_MC_IPV6_NEIGHBOR = 1,
1: - NCSI_CAP_MC_IPV6_ROUTER = 2,
1: - NCSI_CAP_MC_DHCPV6_RELAY = 4,
1: - NCSI_CAP_MC_DHCPV6_WELL_KNOWN = 8,
1: - NCSI_CAP_MC_IPV6_MLD = 16,
1: - NCSI_CAP_MC_IPV6_NEIGHBOR_S = 32,
1: - NCSI_CAP_MC_MASK = 63,
1: - NCSI_CAP_AEN_LSC = 1,
1: - NCSI_CAP_AEN_CR = 2,
1: - NCSI_CAP_AEN_HDS = 4,
1: - NCSI_CAP_AEN_MASK = 7,
1: - NCSI_CAP_VLAN_ONLY = 1,
1: - NCSI_CAP_VLAN_NO = 2,
1: - NCSI_CAP_VLAN_ANY = 4,
1: - NCSI_CAP_VLAN_MASK = 7,
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct sk_buff *, struct ncsi_cmd_arg *);
1: +};
1: +
1: +enum {
1: + NCSI_CAP_GENERIC_HWA = 1,
1: + NCSI_CAP_GENERIC_HDS = 2,
1: + NCSI_CAP_GENERIC_FC = 4,
1: + NCSI_CAP_GENERIC_FC1 = 8,
1: + NCSI_CAP_GENERIC_MC = 16,
1: + NCSI_CAP_GENERIC_HWA_UNKNOWN = 0,
1: + NCSI_CAP_GENERIC_HWA_SUPPORT = 32,
1: + NCSI_CAP_GENERIC_HWA_NOT_SUPPORT = 64,
1: + NCSI_CAP_GENERIC_HWA_RESERVED = 96,
1: + NCSI_CAP_GENERIC_HWA_MASK = 96,
1: + NCSI_CAP_GENERIC_MASK = 127,
1: + NCSI_CAP_BC_ARP = 1,
1: + NCSI_CAP_BC_DHCPC = 2,
1: + NCSI_CAP_BC_DHCPS = 4,
1: + NCSI_CAP_BC_NETBIOS = 8,
1: + NCSI_CAP_BC_MASK = 15,
1: + NCSI_CAP_MC_IPV6_NEIGHBOR = 1,
1: + NCSI_CAP_MC_IPV6_ROUTER = 2,
1: + NCSI_CAP_MC_DHCPV6_RELAY = 4,
1: + NCSI_CAP_MC_DHCPV6_WELL_KNOWN = 8,
1: + NCSI_CAP_MC_IPV6_MLD = 16,
1: + NCSI_CAP_MC_IPV6_NEIGHBOR_S = 32,
1: + NCSI_CAP_MC_MASK = 63,
1: + NCSI_CAP_AEN_LSC = 1,
1: + NCSI_CAP_AEN_CR = 2,
1: + NCSI_CAP_AEN_HDS = 4,
1: + NCSI_CAP_AEN_MASK = 7,
1: + NCSI_CAP_VLAN_ONLY = 1,
1: + NCSI_CAP_VLAN_NO = 2,
1: + NCSI_CAP_VLAN_ANY = 4,
1: + NCSI_CAP_VLAN_MASK = 7,
1: };
1:
1: struct ncsi_rsp_pkt_hdr {
1: - struct ncsi_pkt_hdr common;
1: - __be16 code;
1: - __be16 reason;
1: + struct ncsi_pkt_hdr common;
1: + __be16 code;
1: + __be16 reason;
1: };
1:
1: struct ncsi_rsp_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 checksum;
1: - unsigned char pad[22];
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 checksum;
1: + unsigned char pad[22];
1: };
1:
1: struct ncsi_rsp_oem_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 mfr_id;
1: - unsigned char data[0];
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 mfr_id;
1: + unsigned char data[0];
1: };
1:
1: struct ncsi_rsp_oem_mlx_pkt {
1: - unsigned char cmd_rev;
1: - unsigned char cmd;
1: - unsigned char param;
1: - unsigned char optional;
1: - unsigned char data[0];
1: + unsigned char cmd_rev;
1: + unsigned char cmd;
1: + unsigned char param;
1: + unsigned char optional;
1: + unsigned char data[0];
1: };
1:
1: struct ncsi_rsp_oem_bcm_pkt {
1: - unsigned char ver;
1: - unsigned char type;
1: - __be16 len;
1: - unsigned char data[0];
1: + unsigned char ver;
1: + unsigned char type;
1: + __be16 len;
1: + unsigned char data[0];
1: };
1:
1: struct ncsi_rsp_gls_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 status;
1: - __be32 other;
1: - __be32 oem_status;
1: - __be32 checksum;
1: - unsigned char pad[10];
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 status;
1: + __be32 other;
1: + __be32 oem_status;
1: + __be32 checksum;
1: + unsigned char pad[10];
1: };
1:
1: struct ncsi_rsp_gvi_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 ncsi_version;
1: - unsigned char reserved[3];
1: - unsigned char alpha2;
1: - unsigned char fw_name[12];
1: - __be32 fw_version;
1: - __be16 pci_ids[4];
1: - __be32 mf_id;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 ncsi_version;
1: + unsigned char reserved[3];
1: + unsigned char alpha2;
1: + unsigned char fw_name[12];
1: + __be32 fw_version;
1: + __be16 pci_ids[4];
1: + __be32 mf_id;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gc_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 cap;
1: - __be32 bc_cap;
1: - __be32 mc_cap;
1: - __be32 buf_cap;
1: - __be32 aen_cap;
1: - unsigned char vlan_cnt;
1: - unsigned char mixed_cnt;
1: - unsigned char mc_cnt;
1: - unsigned char uc_cnt;
1: - unsigned char reserved[2];
1: - unsigned char vlan_mode;
1: - unsigned char channel_cnt;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 cap;
1: + __be32 bc_cap;
1: + __be32 mc_cap;
1: + __be32 buf_cap;
1: + __be32 aen_cap;
1: + unsigned char vlan_cnt;
1: + unsigned char mixed_cnt;
1: + unsigned char mc_cnt;
1: + unsigned char uc_cnt;
1: + unsigned char reserved[2];
1: + unsigned char vlan_mode;
1: + unsigned char channel_cnt;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gp_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - unsigned char mac_cnt;
1: - unsigned char reserved[2];
1: - unsigned char mac_enable;
1: - unsigned char vlan_cnt;
1: - unsigned char reserved1;
1: - __be16 vlan_enable;
1: - __be32 link_mode;
1: - __be32 bc_mode;
1: - __be32 valid_modes;
1: - unsigned char vlan_mode;
1: - unsigned char fc_mode;
1: - unsigned char reserved2[2];
1: - __be32 aen_mode;
1: - unsigned char mac[6];
1: - __be16 vlan;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + unsigned char mac_cnt;
1: + unsigned char reserved[2];
1: + unsigned char mac_enable;
1: + unsigned char vlan_cnt;
1: + unsigned char reserved1;
1: + __be16 vlan_enable;
1: + __be32 link_mode;
1: + __be32 bc_mode;
1: + __be32 valid_modes;
1: + unsigned char vlan_mode;
1: + unsigned char fc_mode;
1: + unsigned char reserved2[2];
1: + __be32 aen_mode;
1: + unsigned char mac[6];
1: + __be16 vlan;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gcps_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 cnt_hi;
1: - __be32 cnt_lo;
1: - __be32 rx_bytes;
1: - __be32 tx_bytes;
1: - __be32 rx_uc_pkts;
1: - __be32 rx_mc_pkts;
1: - __be32 rx_bc_pkts;
1: - __be32 tx_uc_pkts;
1: - __be32 tx_mc_pkts;
1: - __be32 tx_bc_pkts;
1: - __be32 fcs_err;
1: - __be32 align_err;
1: - __be32 false_carrier;
1: - __be32 runt_pkts;
1: - __be32 jabber_pkts;
1: - __be32 rx_pause_xon;
1: - __be32 rx_pause_xoff;
1: - __be32 tx_pause_xon;
1: - __be32 tx_pause_xoff;
1: - __be32 tx_s_collision;
1: - __be32 tx_m_collision;
1: - __be32 l_collision;
1: - __be32 e_collision;
1: - __be32 rx_ctl_frames;
1: - __be32 rx_64_frames;
1: - __be32 rx_127_frames;
1: - __be32 rx_255_frames;
1: - __be32 rx_511_frames;
1: - __be32 rx_1023_frames;
1: - __be32 rx_1522_frames;
1: - __be32 rx_9022_frames;
1: - __be32 tx_64_frames;
1: - __be32 tx_127_frames;
1: - __be32 tx_255_frames;
1: - __be32 tx_511_frames;
1: - __be32 tx_1023_frames;
1: - __be32 tx_1522_frames;
1: - __be32 tx_9022_frames;
1: - __be32 rx_valid_bytes;
1: - __be32 rx_runt_pkts;
1: - __be32 rx_jabber_pkts;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 cnt_hi;
1: + __be32 cnt_lo;
1: + __be32 rx_bytes;
1: + __be32 tx_bytes;
1: + __be32 rx_uc_pkts;
1: + __be32 rx_mc_pkts;
1: + __be32 rx_bc_pkts;
1: + __be32 tx_uc_pkts;
1: + __be32 tx_mc_pkts;
1: + __be32 tx_bc_pkts;
1: + __be32 fcs_err;
1: + __be32 align_err;
1: + __be32 false_carrier;
1: + __be32 runt_pkts;
1: + __be32 jabber_pkts;
1: + __be32 rx_pause_xon;
1: + __be32 rx_pause_xoff;
1: + __be32 tx_pause_xon;
1: + __be32 tx_pause_xoff;
1: + __be32 tx_s_collision;
1: + __be32 tx_m_collision;
1: + __be32 l_collision;
1: + __be32 e_collision;
1: + __be32 rx_ctl_frames;
1: + __be32 rx_64_frames;
1: + __be32 rx_127_frames;
1: + __be32 rx_255_frames;
1: + __be32 rx_511_frames;
1: + __be32 rx_1023_frames;
1: + __be32 rx_1522_frames;
1: + __be32 rx_9022_frames;
1: + __be32 tx_64_frames;
1: + __be32 tx_127_frames;
1: + __be32 tx_255_frames;
1: + __be32 tx_511_frames;
1: + __be32 tx_1023_frames;
1: + __be32 tx_1522_frames;
1: + __be32 tx_9022_frames;
1: + __be32 rx_valid_bytes;
1: + __be32 rx_runt_pkts;
1: + __be32 rx_jabber_pkts;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gns_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 rx_cmds;
1: - __be32 dropped_cmds;
1: - __be32 cmd_type_errs;
1: - __be32 cmd_csum_errs;
1: - __be32 rx_pkts;
1: - __be32 tx_pkts;
1: - __be32 tx_aen_pkts;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 rx_cmds;
1: + __be32 dropped_cmds;
1: + __be32 cmd_type_errs;
1: + __be32 cmd_csum_errs;
1: + __be32 rx_pkts;
1: + __be32 tx_pkts;
1: + __be32 tx_aen_pkts;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gnpts_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 tx_pkts;
1: - __be32 tx_dropped;
1: - __be32 tx_channel_err;
1: - __be32 tx_us_err;
1: - __be32 rx_pkts;
1: - __be32 rx_dropped;
1: - __be32 rx_channel_err;
1: - __be32 rx_us_err;
1: - __be32 rx_os_err;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 tx_pkts;
1: + __be32 tx_dropped;
1: + __be32 tx_channel_err;
1: + __be32 tx_us_err;
1: + __be32 rx_pkts;
1: + __be32 rx_dropped;
1: + __be32 rx_channel_err;
1: + __be32 rx_us_err;
1: + __be32 rx_os_err;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gps_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - __be32 status;
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + __be32 status;
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_gpuuid_pkt {
1: - struct ncsi_rsp_pkt_hdr rsp;
1: - unsigned char uuid[16];
1: - __be32 checksum;
1: + struct ncsi_rsp_pkt_hdr rsp;
1: + unsigned char uuid[16];
1: + __be32 checksum;
1: };
1:
1: struct ncsi_rsp_oem_handler {
1: - unsigned int mfr_id;
1: - int (*handler)(struct ncsi_request *);
1: + unsigned int mfr_id;
1: + int (*handler)(struct ncsi_request *);
1: };
1:
1: struct ncsi_rsp_handler {
1: - unsigned char type;
1: - int payload;
1: - int (*handler)(struct ncsi_request *);
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct ncsi_request *);
1: };
1:
1: struct ncsi_aen_pkt_hdr {
1: - struct ncsi_pkt_hdr common;
1: - unsigned char reserved2[3];
1: - unsigned char type;
1: + struct ncsi_pkt_hdr common;
1: + unsigned char reserved2[3];
1: + unsigned char type;
1: };
1:
1: struct ncsi_aen_lsc_pkt {
1: - struct ncsi_aen_pkt_hdr aen;
1: - __be32 status;
1: - __be32 oem_status;
1: - __be32 checksum;
1: - unsigned char pad[14];
1: + struct ncsi_aen_pkt_hdr aen;
1: + __be32 status;
1: + __be32 oem_status;
1: + __be32 checksum;
1: + unsigned char pad[14];
1: };
1:
1: struct ncsi_aen_hncdsc_pkt {
1: - struct ncsi_aen_pkt_hdr aen;
1: - __be32 status;
1: - __be32 checksum;
1: - unsigned char pad[18];
1: + struct ncsi_aen_pkt_hdr aen;
1: + __be32 status;
1: + __be32 checksum;
1: + unsigned char pad[18];
1: };
1:
1: struct ncsi_aen_handler {
1: - unsigned char type;
1: - int payload;
1: - int (*handler)(struct ncsi_dev_priv *, struct ncsi_aen_pkt_hdr *);
1: -};
1: -
1: -enum {
1: - ncsi_dev_state_registered = 0,
1: - ncsi_dev_state_functional = 256,
1: - ncsi_dev_state_probe = 512,
1: - ncsi_dev_state_config = 768,
1: - ncsi_dev_state_suspend = 1024,
1: -};
1: -
1: -enum {
1: - MLX_MC_RBT_SUPPORT = 1,
1: - MLX_MC_RBT_AVL = 8,
1: -};
1: -
1: -enum {
1: - ncsi_dev_state_major = 65280,
1: - ncsi_dev_state_minor = 255,
1: - ncsi_dev_state_probe_deselect = 513,
1: - ncsi_dev_state_probe_package = 514,
1: - ncsi_dev_state_probe_channel = 515,
1: - ncsi_dev_state_probe_mlx_gma = 516,
1: - ncsi_dev_state_probe_mlx_smaf = 517,
1: - ncsi_dev_state_probe_cis = 518,
1: - ncsi_dev_state_probe_gvi = 519,
1: - ncsi_dev_state_probe_gc = 520,
1: - ncsi_dev_state_probe_gls = 521,
1: - ncsi_dev_state_probe_dp = 522,
1: - ncsi_dev_state_config_sp = 769,
1: - ncsi_dev_state_config_cis = 770,
1: - ncsi_dev_state_config_oem_gma = 771,
1: - ncsi_dev_state_config_clear_vids = 772,
1: - ncsi_dev_state_config_svf = 773,
1: - ncsi_dev_state_config_ev = 774,
1: - ncsi_dev_state_config_sma = 775,
1: - ncsi_dev_state_config_ebf = 776,
1: - ncsi_dev_state_config_dgmf = 777,
1: - ncsi_dev_state_config_ecnt = 778,
1: - ncsi_dev_state_config_ec = 779,
1: - ncsi_dev_state_config_ae = 780,
1: - ncsi_dev_state_config_gls = 781,
1: - ncsi_dev_state_config_done = 782,
1: - ncsi_dev_state_suspend_select = 1025,
1: - ncsi_dev_state_suspend_gls = 1026,
1: - ncsi_dev_state_suspend_dcnt = 1027,
1: - ncsi_dev_state_suspend_dc = 1028,
1: - ncsi_dev_state_suspend_deselect = 1029,
1: - ncsi_dev_state_suspend_done = 1030,
1: + unsigned char type;
1: + int payload;
1: + int (*handler)(struct ncsi_dev_priv *, struct ncsi_aen_pkt_hdr *);
1: +};
1: +
1: +enum {
1: + ncsi_dev_state_registered = 0,
1: + ncsi_dev_state_functional = 256,
1: + ncsi_dev_state_probe = 512,
1: + ncsi_dev_state_config = 768,
1: + ncsi_dev_state_suspend = 1024,
1: +};
1: +
1: +enum {
1: + MLX_MC_RBT_SUPPORT = 1,
1: + MLX_MC_RBT_AVL = 8,
1: +};
1: +
1: +enum {
1: + ncsi_dev_state_major = 65280,
1: + ncsi_dev_state_minor = 255,
1: + ncsi_dev_state_probe_deselect = 513,
1: + ncsi_dev_state_probe_package = 514,
1: + ncsi_dev_state_probe_channel = 515,
1: + ncsi_dev_state_probe_mlx_gma = 516,
1: + ncsi_dev_state_probe_mlx_smaf = 517,
1: + ncsi_dev_state_probe_cis = 518,
1: + ncsi_dev_state_probe_gvi = 519,
1: + ncsi_dev_state_probe_gc = 520,
1: + ncsi_dev_state_probe_gls = 521,
1: + ncsi_dev_state_probe_dp = 522,
1: + ncsi_dev_state_config_sp = 769,
1: + ncsi_dev_state_config_cis = 770,
1: + ncsi_dev_state_config_oem_gma = 771,
1: + ncsi_dev_state_config_clear_vids = 772,
1: + ncsi_dev_state_config_svf = 773,
1: + ncsi_dev_state_config_ev = 774,
1: + ncsi_dev_state_config_sma = 775,
1: + ncsi_dev_state_config_ebf = 776,
1: + ncsi_dev_state_config_dgmf = 777,
1: + ncsi_dev_state_config_ecnt = 778,
1: + ncsi_dev_state_config_ec = 779,
1: + ncsi_dev_state_config_ae = 780,
1: + ncsi_dev_state_config_gls = 781,
1: + ncsi_dev_state_config_done = 782,
1: + ncsi_dev_state_suspend_select = 1025,
1: + ncsi_dev_state_suspend_gls = 1026,
1: + ncsi_dev_state_suspend_dcnt = 1027,
1: + ncsi_dev_state_suspend_dc = 1028,
1: + ncsi_dev_state_suspend_deselect = 1029,
1: + ncsi_dev_state_suspend_done = 1030,
1: };
1:
1: struct vlan_vid {
1: - struct list_head list;
1: - __be16 proto;
1: - u16 vid;
1: + struct list_head list;
1: + __be16 proto;
1: + u16 vid;
1: };
1:
1: struct ncsi_oem_gma_handler {
1: - unsigned int mfr_id;
1: - int (*handler)(struct ncsi_cmd_arg *);
1: + unsigned int mfr_id;
1: + int (*handler)(struct ncsi_cmd_arg *);
1: };
1:
1: enum ncsi_nl_commands {
1: - NCSI_CMD_UNSPEC = 0,
1: - NCSI_CMD_PKG_INFO = 1,
1: - NCSI_CMD_SET_INTERFACE = 2,
1: - NCSI_CMD_CLEAR_INTERFACE = 3,
1: - NCSI_CMD_SEND_CMD = 4,
1: - NCSI_CMD_SET_PACKAGE_MASK = 5,
1: - NCSI_CMD_SET_CHANNEL_MASK = 6,
1: - __NCSI_CMD_AFTER_LAST = 7,
1: - NCSI_CMD_MAX = 6,
1: + NCSI_CMD_UNSPEC = 0,
1: + NCSI_CMD_PKG_INFO = 1,
1: + NCSI_CMD_SET_INTERFACE = 2,
1: + NCSI_CMD_CLEAR_INTERFACE = 3,
1: + NCSI_CMD_SEND_CMD = 4,
1: + NCSI_CMD_SET_PACKAGE_MASK = 5,
1: + NCSI_CMD_SET_CHANNEL_MASK = 6,
1: + __NCSI_CMD_AFTER_LAST = 7,
1: + NCSI_CMD_MAX = 6,
1: };
1:
1: enum ncsi_nl_attrs {
1: - NCSI_ATTR_UNSPEC = 0,
1: - NCSI_ATTR_IFINDEX = 1,
1: - NCSI_ATTR_PACKAGE_LIST = 2,
1: - NCSI_ATTR_PACKAGE_ID = 3,
1: - NCSI_ATTR_CHANNEL_ID = 4,
1: - NCSI_ATTR_DATA = 5,
1: - NCSI_ATTR_MULTI_FLAG = 6,
1: - NCSI_ATTR_PACKAGE_MASK = 7,
1: - NCSI_ATTR_CHANNEL_MASK = 8,
1: - __NCSI_ATTR_AFTER_LAST = 9,
1: - NCSI_ATTR_MAX = 8,
1: + NCSI_ATTR_UNSPEC = 0,
1: + NCSI_ATTR_IFINDEX = 1,
1: + NCSI_ATTR_PACKAGE_LIST = 2,
1: + NCSI_ATTR_PACKAGE_ID = 3,
1: + NCSI_ATTR_CHANNEL_ID = 4,
1: + NCSI_ATTR_DATA = 5,
1: + NCSI_ATTR_MULTI_FLAG = 6,
1: + NCSI_ATTR_PACKAGE_MASK = 7,
1: + NCSI_ATTR_CHANNEL_MASK = 8,
1: + __NCSI_ATTR_AFTER_LAST = 9,
1: + NCSI_ATTR_MAX = 8,
1: };
1:
1: enum ncsi_nl_pkg_attrs {
1: - NCSI_PKG_ATTR_UNSPEC = 0,
1: - NCSI_PKG_ATTR = 1,
1: - NCSI_PKG_ATTR_ID = 2,
1: - NCSI_PKG_ATTR_FORCED = 3,
1: - NCSI_PKG_ATTR_CHANNEL_LIST = 4,
1: - __NCSI_PKG_ATTR_AFTER_LAST = 5,
1: - NCSI_PKG_ATTR_MAX = 4,
1: + NCSI_PKG_ATTR_UNSPEC = 0,
1: + NCSI_PKG_ATTR = 1,
1: + NCSI_PKG_ATTR_ID = 2,
1: + NCSI_PKG_ATTR_FORCED = 3,
1: + NCSI_PKG_ATTR_CHANNEL_LIST = 4,
1: + __NCSI_PKG_ATTR_AFTER_LAST = 5,
1: + NCSI_PKG_ATTR_MAX = 4,
1: };
1:
1: enum ncsi_nl_channel_attrs {
1: - NCSI_CHANNEL_ATTR_UNSPEC = 0,
1: - NCSI_CHANNEL_ATTR = 1,
1: - NCSI_CHANNEL_ATTR_ID = 2,
1: - NCSI_CHANNEL_ATTR_VERSION_MAJOR = 3,
1: - NCSI_CHANNEL_ATTR_VERSION_MINOR = 4,
1: - NCSI_CHANNEL_ATTR_VERSION_STR = 5,
1: - NCSI_CHANNEL_ATTR_LINK_STATE = 6,
1: - NCSI_CHANNEL_ATTR_ACTIVE = 7,
1: - NCSI_CHANNEL_ATTR_FORCED = 8,
1: - NCSI_CHANNEL_ATTR_VLAN_LIST = 9,
1: - NCSI_CHANNEL_ATTR_VLAN_ID = 10,
1: - __NCSI_CHANNEL_ATTR_AFTER_LAST = 11,
1: - NCSI_CHANNEL_ATTR_MAX = 10,
1: + NCSI_CHANNEL_ATTR_UNSPEC = 0,
1: + NCSI_CHANNEL_ATTR = 1,
1: + NCSI_CHANNEL_ATTR_ID = 2,
1: + NCSI_CHANNEL_ATTR_VERSION_MAJOR = 3,
1: + NCSI_CHANNEL_ATTR_VERSION_MINOR = 4,
1: + NCSI_CHANNEL_ATTR_VERSION_STR = 5,
1: + NCSI_CHANNEL_ATTR_LINK_STATE = 6,
1: + NCSI_CHANNEL_ATTR_ACTIVE = 7,
1: + NCSI_CHANNEL_ATTR_FORCED = 8,
1: + NCSI_CHANNEL_ATTR_VLAN_LIST = 9,
1: + NCSI_CHANNEL_ATTR_VLAN_ID = 10,
1: + __NCSI_CHANNEL_ATTR_AFTER_LAST = 11,
1: + NCSI_CHANNEL_ATTR_MAX = 10,
1: };
1:
1: struct sockaddr_xdp {
1: - __u16 sxdp_family;
1: - __u16 sxdp_flags;
1: - __u32 sxdp_ifindex;
1: - __u32 sxdp_queue_id;
1: - __u32 sxdp_shared_umem_fd;
1: + __u16 sxdp_family;
1: + __u16 sxdp_flags;
1: + __u32 sxdp_ifindex;
1: + __u32 sxdp_queue_id;
1: + __u32 sxdp_shared_umem_fd;
1: };
1:
1: struct xdp_ring_offset {
1: - __u64 producer;
1: - __u64 consumer;
1: - __u64 desc;
1: - __u64 flags;
1: + __u64 producer;
1: + __u64 consumer;
1: + __u64 desc;
1: + __u64 flags;
1: };
1:
1: struct xdp_mmap_offsets {
1: - struct xdp_ring_offset rx;
1: - struct xdp_ring_offset tx;
1: - struct xdp_ring_offset fr;
1: - struct xdp_ring_offset cr;
1: + struct xdp_ring_offset rx;
1: + struct xdp_ring_offset tx;
1: + struct xdp_ring_offset fr;
1: + struct xdp_ring_offset cr;
1: };
1:
1: struct xdp_umem_reg {
1: - __u64 addr;
1: - __u64 len;
1: - __u32 chunk_size;
1: - __u32 headroom;
1: - __u32 flags;
1: + __u64 addr;
1: + __u64 len;
1: + __u32 chunk_size;
1: + __u32 headroom;
1: + __u32 flags;
1: };
1:
1: struct xdp_statistics {
1: - __u64 rx_dropped;
1: - __u64 rx_invalid_descs;
1: - __u64 tx_invalid_descs;
1: - __u64 rx_ring_full;
1: - __u64 rx_fill_ring_empty_descs;
1: - __u64 tx_ring_empty_descs;
1: + __u64 rx_dropped;
1: + __u64 rx_invalid_descs;
1: + __u64 tx_invalid_descs;
1: + __u64 rx_ring_full;
1: + __u64 rx_fill_ring_empty_descs;
1: + __u64 tx_ring_empty_descs;
1: };
1:
1: struct xdp_options {
1: - __u32 flags;
1: + __u32 flags;
1: };
1:
1: struct xdp_desc {
1: - __u64 addr;
1: - __u32 len;
1: - __u32 options;
1: + __u64 addr;
1: + __u32 len;
1: + __u32 options;
1: };
1:
1: struct xdp_ring;
1:
1: struct xsk_queue {
1: - u32 ring_mask;
1: - u32 nentries;
1: - u32 cached_prod;
1: - u32 cached_cons;
1: - struct xdp_ring *ring;
1: - u64 invalid_descs;
1: - u64 queue_empty_descs;
1: + u32 ring_mask;
1: + u32 nentries;
1: + u32 cached_prod;
1: + u32 cached_cons;
1: + struct xdp_ring *ring;
1: + u64 invalid_descs;
1: + u64 queue_empty_descs;
1: };
1:
1: struct xdp_ring_offset_v1 {
1: - __u64 producer;
1: - __u64 consumer;
1: - __u64 desc;
1: + __u64 producer;
1: + __u64 consumer;
1: + __u64 desc;
1: };
1:
1: struct xdp_mmap_offsets_v1 {
1: - struct xdp_ring_offset_v1 rx;
1: - struct xdp_ring_offset_v1 tx;
1: - struct xdp_ring_offset_v1 fr;
1: - struct xdp_ring_offset_v1 cr;
1: + struct xdp_ring_offset_v1 rx;
1: + struct xdp_ring_offset_v1 tx;
1: + struct xdp_ring_offset_v1 fr;
1: + struct xdp_ring_offset_v1 cr;
1: };
1:
1: struct xsk_map_node {
1: - struct list_head node;
1: - struct xsk_map *map;
1: - struct xdp_sock **map_entry;
1: + struct list_head node;
1: + struct xsk_map *map;
1: + struct xdp_sock **map_entry;
1: };
1:
1: struct xdp_ring {
1: - u32 producer;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u32 pad;
1: - long: 32;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - u32 consumer;
1: - u32 flags;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: - long: 64;
1: + u32 producer;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u32 pad;
1: + long : 32;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + u32 consumer;
1: + u32 flags;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: + long : 64;
1: };
1:
1: struct xdp_rxtx_ring {
1: - struct xdp_ring ptrs;
1: - struct xdp_desc desc[0];
1: + struct xdp_ring ptrs;
1: + struct xdp_desc desc[0];
1: };
1:
1: struct xdp_umem_ring {
1: - struct xdp_ring ptrs;
1: - u64 desc[0];
1: + struct xdp_ring ptrs;
1: + u64 desc[0];
1: };
1:
1: struct xsk_dma_map {
1: - dma_addr_t *dma_pages;
1: - struct device *dev;
1: - struct net_device *netdev;
1: - refcount_t users;
1: - struct list_head list;
1: - u32 dma_pages_cnt;
1: - bool dma_need_sync;
1: + dma_addr_t *dma_pages;
1: + struct device *dev;
1: + struct net_device *netdev;
1: + refcount_t users;
1: + struct list_head list;
1: + u32 dma_pages_cnt;
1: + bool dma_need_sync;
1: };
1:
1: struct xdp_diag_req {
1: - __u8 sdiag_family;
1: - __u8 sdiag_protocol;
1: - __u16 pad;
1: - __u32 xdiag_ino;
1: - __u32 xdiag_show;
1: - __u32 xdiag_cookie[2];
1: + __u8 sdiag_family;
1: + __u8 sdiag_protocol;
1: + __u16 pad;
1: + __u32 xdiag_ino;
1: + __u32 xdiag_show;
1: + __u32 xdiag_cookie[2];
1: };
1:
1: struct xdp_diag_msg {
1: - __u8 xdiag_family;
1: - __u8 xdiag_type;
1: - __u16 pad;
1: - __u32 xdiag_ino;
1: - __u32 xdiag_cookie[2];
1: + __u8 xdiag_family;
1: + __u8 xdiag_type;
1: + __u16 pad;
1: + __u32 xdiag_ino;
1: + __u32 xdiag_cookie[2];
1: };
1:
1: enum {
1: - XDP_DIAG_NONE = 0,
1: - XDP_DIAG_INFO = 1,
1: - XDP_DIAG_UID = 2,
1: - XDP_DIAG_RX_RING = 3,
1: - XDP_DIAG_TX_RING = 4,
1: - XDP_DIAG_UMEM = 5,
1: - XDP_DIAG_UMEM_FILL_RING = 6,
1: - XDP_DIAG_UMEM_COMPLETION_RING = 7,
1: - XDP_DIAG_MEMINFO = 8,
1: - XDP_DIAG_STATS = 9,
1: - __XDP_DIAG_MAX = 10,
1: + XDP_DIAG_NONE = 0,
1: + XDP_DIAG_INFO = 1,
1: + XDP_DIAG_UID = 2,
1: + XDP_DIAG_RX_RING = 3,
1: + XDP_DIAG_TX_RING = 4,
1: + XDP_DIAG_UMEM = 5,
1: + XDP_DIAG_UMEM_FILL_RING = 6,
1: + XDP_DIAG_UMEM_COMPLETION_RING = 7,
1: + XDP_DIAG_MEMINFO = 8,
1: + XDP_DIAG_STATS = 9,
1: + __XDP_DIAG_MAX = 10,
1: };
1:
1: struct xdp_diag_info {
1: - __u32 ifindex;
1: - __u32 queue_id;
1: + __u32 ifindex;
1: + __u32 queue_id;
1: };
1:
1: struct xdp_diag_ring {
1: - __u32 entries;
1: + __u32 entries;
1: };
1:
1: struct xdp_diag_umem {
1: - __u64 size;
1: - __u32 id;
1: - __u32 num_pages;
1: - __u32 chunk_size;
1: - __u32 headroom;
1: - __u32 ifindex;
1: - __u32 queue_id;
1: - __u32 flags;
1: - __u32 refs;
1: + __u64 size;
1: + __u32 id;
1: + __u32 num_pages;
1: + __u32 chunk_size;
1: + __u32 headroom;
1: + __u32 ifindex;
1: + __u32 queue_id;
1: + __u32 flags;
1: + __u32 refs;
1: };
1:
1: struct xdp_diag_stats {
1: - __u64 n_rx_dropped;
1: - __u64 n_rx_invalid;
1: - __u64 n_rx_full;
1: - __u64 n_fill_ring_empty;
1: - __u64 n_tx_invalid;
1: - __u64 n_tx_ring_empty;
1: + __u64 n_rx_dropped;
1: + __u64 n_rx_invalid;
1: + __u64 n_rx_full;
1: + __u64 n_fill_ring_empty;
1: + __u64 n_tx_invalid;
1: + __u64 n_tx_ring_empty;
1: };
1:
1: struct mptcp_mib {
1: - long unsigned int mibs[23];
1: + long unsigned int mibs[23];
1: };
1:
1: struct mptcp_options_received {
1: - u64 sndr_key;
1: - u64 rcvr_key;
1: - u64 data_ack;
1: - u64 data_seq;
1: - u32 subflow_seq;
1: - u16 data_len;
1: - u16 mp_capable: 1;
1: - u16 mp_join: 1;
1: - u16 dss: 1;
1: - u16 add_addr: 1;
1: - u16 rm_addr: 1;
1: - u16 family: 4;
1: - u16 echo: 1;
1: - u16 backup: 1;
1: - u32 token;
1: - u32 nonce;
1: - u64 thmac;
1: - u8 hmac[20];
1: - u8 join_id;
1: - u8 use_map: 1;
1: - u8 dsn64: 1;
1: - u8 data_fin: 1;
1: - u8 use_ack: 1;
1: - u8 ack64: 1;
1: - u8 mpc_map: 1;
1: - u8 __unused: 2;
1: - u8 addr_id;
1: - u8 rm_id;
1: - union {
1: - struct in_addr addr;
1: - struct in6_addr addr6;
1: - };
1: - u64 ahmac;
1: - u16 port;
1: + u64 sndr_key;
1: + u64 rcvr_key;
1: + u64 data_ack;
1: + u64 data_seq;
1: + u32 subflow_seq;
1: + u16 data_len;
1: + u16 mp_capable : 1;
1: + u16 mp_join : 1;
1: + u16 dss : 1;
1: + u16 add_addr : 1;
1: + u16 rm_addr : 1;
1: + u16 family : 4;
1: + u16 echo : 1;
1: + u16 backup : 1;
1: + u32 token;
1: + u32 nonce;
1: + u64 thmac;
1: + u8 hmac[20];
1: + u8 join_id;
1: + u8 use_map : 1;
1: + u8 dsn64 : 1;
1: + u8 data_fin : 1;
1: + u8 use_ack : 1;
1: + u8 ack64 : 1;
1: + u8 mpc_map : 1;
1: + u8 __unused : 2;
1: + u8 addr_id;
1: + u8 rm_id;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: + u64 ahmac;
1: + u16 port;
1: };
1:
1: struct mptcp_addr_info {
1: - sa_family_t family;
1: - __be16 port;
1: - u8 id;
1: - u8 flags;
1: - int ifindex;
1: - union {
1: - struct in_addr addr;
1: - struct in6_addr addr6;
1: - };
1: + sa_family_t family;
1: + __be16 port;
1: + u8 id;
1: + u8 flags;
1: + int ifindex;
1: + union {
1: + struct in_addr addr;
1: + struct in6_addr addr6;
1: + };
1: };
1:
1: enum mptcp_pm_status {
1: - MPTCP_PM_ADD_ADDR_RECEIVED = 0,
1: - MPTCP_PM_RM_ADDR_RECEIVED = 1,
1: - MPTCP_PM_ESTABLISHED = 2,
1: - MPTCP_PM_SUBFLOW_ESTABLISHED = 3,
1: + MPTCP_PM_ADD_ADDR_RECEIVED = 0,
1: + MPTCP_PM_RM_ADDR_RECEIVED = 1,
1: + MPTCP_PM_ESTABLISHED = 2,
1: + MPTCP_PM_SUBFLOW_ESTABLISHED = 3,
1: };
1:
1: struct mptcp_pm_data {
1: - struct mptcp_addr_info local;
1: - struct mptcp_addr_info remote;
1: - struct list_head anno_list;
1: - spinlock_t lock;
1: - bool add_addr_signal;
1: - bool rm_addr_signal;
1: - bool server_side;
1: - bool work_pending;
1: - bool accept_addr;
1: - bool accept_subflow;
1: - bool add_addr_echo;
1: - u8 add_addr_signaled;
1: - u8 add_addr_accepted;
1: - u8 local_addr_used;
1: - u8 subflows;
1: - u8 add_addr_signal_max;
1: - u8 add_addr_accept_max;
1: - u8 local_addr_max;
1: - u8 subflows_max;
1: - u8 status;
1: - u8 rm_id;
1: + struct mptcp_addr_info local;
1: + struct mptcp_addr_info remote;
1: + struct list_head anno_list;
1: + spinlock_t lock;
1: + bool add_addr_signal;
1: + bool rm_addr_signal;
1: + bool server_side;
1: + bool work_pending;
1: + bool accept_addr;
1: + bool accept_subflow;
1: + bool add_addr_echo;
1: + u8 add_addr_signaled;
1: + u8 add_addr_accepted;
1: + u8 local_addr_used;
1: + u8 subflows;
1: + u8 add_addr_signal_max;
1: + u8 add_addr_accept_max;
1: + u8 local_addr_max;
1: + u8 subflows_max;
1: + u8 status;
1: + u8 rm_id;
1: };
1:
1: struct mptcp_data_frag {
1: - struct list_head list;
1: - u64 data_seq;
1: - int data_len;
1: - int offset;
1: - int overhead;
1: - struct page *page;
1: + struct list_head list;
1: + u64 data_seq;
1: + int data_len;
1: + int offset;
1: + int overhead;
1: + struct page *page;
1: };
1:
1: struct mptcp_sock {
1: - struct inet_connection_sock sk;
1: - u64 local_key;
1: - u64 remote_key;
1: - u64 write_seq;
1: - u64 ack_seq;
1: - u64 rcv_data_fin_seq;
1: - struct sock *last_snd;
1: - int snd_burst;
1: - atomic64_t snd_una;
1: - long unsigned int timer_ival;
1: - u32 token;
1: - long unsigned int flags;
1: - bool can_ack;
1: - bool fully_established;
1: - bool rcv_data_fin;
1: - bool snd_data_fin_enable;
1: - bool use_64bit_ack;
1: - spinlock_t join_list_lock;
1: - struct work_struct work;
1: - struct sk_buff *ooo_last_skb;
1: - struct rb_root out_of_order_queue;
1: - struct list_head conn_list;
1: - struct list_head rtx_queue;
1: - struct list_head join_list;
1: - struct skb_ext *cached_ext;
1: - struct socket *subflow;
1: - struct sock *first;
1: - struct mptcp_pm_data pm;
1: - struct {
1: - u32 space;
1: - u32 copied;
1: - u64 time;
1: - u64 rtt_us;
1: - } rcvq_space;
1: + struct inet_connection_sock sk;
1: + u64 local_key;
1: + u64 remote_key;
1: + u64 write_seq;
1: + u64 ack_seq;
1: + u64 rcv_data_fin_seq;
1: + struct sock *last_snd;
1: + int snd_burst;
1: + atomic64_t snd_una;
1: + long unsigned int timer_ival;
1: + u32 token;
1: + long unsigned int flags;
1: + bool can_ack;
1: + bool fully_established;
1: + bool rcv_data_fin;
1: + bool snd_data_fin_enable;
1: + bool use_64bit_ack;
1: + spinlock_t join_list_lock;
1: + struct work_struct work;
1: + struct sk_buff *ooo_last_skb;
1: + struct rb_root out_of_order_queue;
1: + struct list_head conn_list;
1: + struct list_head rtx_queue;
1: + struct list_head join_list;
1: + struct skb_ext *cached_ext;
1: + struct socket *subflow;
1: + struct sock *first;
1: + struct mptcp_pm_data pm;
1: + struct {
1: + u32 space;
1: + u32 copied;
1: + u64 time;
1: + u64 rtt_us;
1: + } rcvq_space;
1: };
1:
1: struct mptcp_subflow_request_sock {
1: - struct tcp_request_sock sk;
1: - u16 mp_capable: 1;
1: - u16 mp_join: 1;
1: - u16 backup: 1;
1: - u8 local_id;
1: - u8 remote_id;
1: - u64 local_key;
1: - u64 idsn;
1: - u32 token;
1: - u32 ssn_offset;
1: - u64 thmac;
1: - u32 local_nonce;
1: - u32 remote_nonce;
1: - struct mptcp_sock *msk;
1: - struct hlist_nulls_node token_node;
1: + struct tcp_request_sock sk;
1: + u16 mp_capable : 1;
1: + u16 mp_join : 1;
1: + u16 backup : 1;
1: + u8 local_id;
1: + u8 remote_id;
1: + u64 local_key;
1: + u64 idsn;
1: + u32 token;
1: + u32 ssn_offset;
1: + u64 thmac;
1: + u32 local_nonce;
1: + u32 remote_nonce;
1: + struct mptcp_sock *msk;
1: + struct hlist_nulls_node token_node;
1: };
1:
1: enum mptcp_data_avail {
1: - MPTCP_SUBFLOW_NODATA = 0,
1: - MPTCP_SUBFLOW_DATA_AVAIL = 1,
1: - MPTCP_SUBFLOW_OOO_DATA = 2,
1: + MPTCP_SUBFLOW_NODATA = 0,
1: + MPTCP_SUBFLOW_DATA_AVAIL = 1,
1: + MPTCP_SUBFLOW_OOO_DATA = 2,
1: };
1:
1: struct mptcp_subflow_context {
1: - struct list_head node;
1: - u64 local_key;
1: - u64 remote_key;
1: - u64 idsn;
1: - u64 map_seq;
1: - u32 snd_isn;
1: - u32 token;
1: - u32 rel_write_seq;
1: - u32 map_subflow_seq;
1: - u32 ssn_offset;
1: - u32 map_data_len;
1: - u32 request_mptcp: 1;
1: - u32 request_join: 1;
1: - u32 request_bkup: 1;
1: - u32 mp_capable: 1;
1: - u32 mp_join: 1;
1: - u32 fully_established: 1;
1: - u32 pm_notified: 1;
1: - u32 conn_finished: 1;
1: - u32 map_valid: 1;
1: - u32 mpc_map: 1;
1: - u32 backup: 1;
1: - u32 rx_eof: 1;
1: - u32 can_ack: 1;
1: - enum mptcp_data_avail data_avail;
1: - u32 remote_nonce;
1: - u64 thmac;
1: - u32 local_nonce;
1: - u32 remote_token;
1: - u8 hmac[20];
1: - u8 local_id;
1: - u8 remote_id;
1: - struct sock *tcp_sock;
1: - struct sock *conn;
1: - const struct inet_connection_sock_af_ops *icsk_af_ops;
1: - void (*tcp_data_ready)(struct sock *);
1: - void (*tcp_state_change)(struct sock *);
1: - void (*tcp_write_space)(struct sock *);
1: - struct callback_head rcu;
1: + struct list_head node;
1: + u64 local_key;
1: + u64 remote_key;
1: + u64 idsn;
1: + u64 map_seq;
1: + u32 snd_isn;
1: + u32 token;
1: + u32 rel_write_seq;
1: + u32 map_subflow_seq;
1: + u32 ssn_offset;
1: + u32 map_data_len;
1: + u32 request_mptcp : 1;
1: + u32 request_join : 1;
1: + u32 request_bkup : 1;
1: + u32 mp_capable : 1;
1: + u32 mp_join : 1;
1: + u32 fully_established : 1;
1: + u32 pm_notified : 1;
1: + u32 conn_finished : 1;
1: + u32 map_valid : 1;
1: + u32 mpc_map : 1;
1: + u32 backup : 1;
1: + u32 rx_eof : 1;
1: + u32 can_ack : 1;
1: + enum mptcp_data_avail data_avail;
1: + u32 remote_nonce;
1: + u64 thmac;
1: + u32 local_nonce;
1: + u32 remote_token;
1: + u8 hmac[20];
1: + u8 local_id;
1: + u8 remote_id;
1: + struct sock *tcp_sock;
1: + struct sock *conn;
1: + const struct inet_connection_sock_af_ops *icsk_af_ops;
1: + void (*tcp_data_ready)(struct sock *);
1: + void (*tcp_state_change)(struct sock *);
1: + void (*tcp_write_space)(struct sock *);
1: + struct callback_head rcu;
1: };
1:
1: enum linux_mptcp_mib_field {
1: - MPTCP_MIB_NUM = 0,
1: - MPTCP_MIB_MPCAPABLEPASSIVE = 1,
1: - MPTCP_MIB_MPCAPABLEPASSIVEACK = 2,
1: - MPTCP_MIB_MPCAPABLEPASSIVEFALLBACK = 3,
1: - MPTCP_MIB_MPCAPABLEACTIVEFALLBACK = 4,
1: - MPTCP_MIB_RETRANSSEGS = 5,
1: - MPTCP_MIB_JOINNOTOKEN = 6,
1: - MPTCP_MIB_JOINSYNRX = 7,
1: - MPTCP_MIB_JOINSYNACKRX = 8,
1: - MPTCP_MIB_JOINSYNACKMAC = 9,
1: - MPTCP_MIB_JOINACKRX = 10,
1: - MPTCP_MIB_JOINACKMAC = 11,
1: - MPTCP_MIB_DSSNOMATCH = 12,
1: - MPTCP_MIB_INFINITEMAPRX = 13,
1: - MPTCP_MIB_OFOQUEUETAIL = 14,
1: - MPTCP_MIB_OFOQUEUE = 15,
1: - MPTCP_MIB_OFOMERGE = 16,
1: - MPTCP_MIB_NODSSWINDOW = 17,
1: - MPTCP_MIB_DUPDATA = 18,
1: - MPTCP_MIB_ADDADDR = 19,
1: - MPTCP_MIB_ECHOADD = 20,
1: - MPTCP_MIB_RMADDR = 21,
1: - MPTCP_MIB_RMSUBFLOW = 22,
1: - __MPTCP_MIB_MAX = 23,
1: + MPTCP_MIB_NUM = 0,
1: + MPTCP_MIB_MPCAPABLEPASSIVE = 1,
1: + MPTCP_MIB_MPCAPABLEPASSIVEACK = 2,
1: + MPTCP_MIB_MPCAPABLEPASSIVEFALLBACK = 3,
1: + MPTCP_MIB_MPCAPABLEACTIVEFALLBACK = 4,
1: + MPTCP_MIB_RETRANSSEGS = 5,
1: + MPTCP_MIB_JOINNOTOKEN = 6,
1: + MPTCP_MIB_JOINSYNRX = 7,
1: + MPTCP_MIB_JOINSYNACKRX = 8,
1: + MPTCP_MIB_JOINSYNACKMAC = 9,
1: + MPTCP_MIB_JOINACKRX = 10,
1: + MPTCP_MIB_JOINACKMAC = 11,
1: + MPTCP_MIB_DSSNOMATCH = 12,
1: + MPTCP_MIB_INFINITEMAPRX = 13,
1: + MPTCP_MIB_OFOQUEUETAIL = 14,
1: + MPTCP_MIB_OFOQUEUE = 15,
1: + MPTCP_MIB_OFOMERGE = 16,
1: + MPTCP_MIB_NODSSWINDOW = 17,
1: + MPTCP_MIB_DUPDATA = 18,
1: + MPTCP_MIB_ADDADDR = 19,
1: + MPTCP_MIB_ECHOADD = 20,
1: + MPTCP_MIB_RMADDR = 21,
1: + MPTCP_MIB_RMSUBFLOW = 22,
1: + __MPTCP_MIB_MAX = 23,
1: };
1:
1: struct mptcp_skb_cb {
1: - u64 map_seq;
1: - u64 end_seq;
1: - u32 offset;
1: + u64 map_seq;
1: + u64 end_seq;
1: + u32 offset;
1: };
1:
1: struct subflow_send_info {
1: - struct sock *ssk;
1: - u64 ratio;
1: + struct sock *ssk;
1: + u64 ratio;
1: };
1:
1: enum mapping_status {
1: - MAPPING_OK = 0,
1: - MAPPING_INVALID = 1,
1: - MAPPING_EMPTY = 2,
1: - MAPPING_DATA_FIN = 3,
1: - MAPPING_DUMMY = 4,
1: + MAPPING_OK = 0,
1: + MAPPING_INVALID = 1,
1: + MAPPING_EMPTY = 2,
1: + MAPPING_DATA_FIN = 3,
1: + MAPPING_DUMMY = 4,
1: };
1:
1: struct token_bucket {
1: - spinlock_t lock;
1: - int chain_len;
1: - struct hlist_nulls_head req_chain;
1: - struct hlist_nulls_head msk_chain;
1: + spinlock_t lock;
1: + int chain_len;
1: + struct hlist_nulls_head req_chain;
1: + struct hlist_nulls_head msk_chain;
1: };
1:
1: struct mptcp_pernet {
1: - struct ctl_table_header *ctl_table_hdr;
1: - int mptcp_enabled;
1: + struct ctl_table_header *ctl_table_hdr;
1: + int mptcp_enabled;
1: };
1:
1: enum {
1: - INET_ULP_INFO_UNSPEC = 0,
1: - INET_ULP_INFO_NAME = 1,
1: - INET_ULP_INFO_TLS = 2,
1: - INET_ULP_INFO_MPTCP = 3,
1: - __INET_ULP_INFO_MAX = 4,
1: + INET_ULP_INFO_UNSPEC = 0,
1: + INET_ULP_INFO_NAME = 1,
1: + INET_ULP_INFO_TLS = 2,
1: + INET_ULP_INFO_MPTCP = 3,
1: + __INET_ULP_INFO_MAX = 4,
1: };
1:
1: enum {
1: - MPTCP_SUBFLOW_ATTR_UNSPEC = 0,
1: - MPTCP_SUBFLOW_ATTR_TOKEN_REM = 1,
1: - MPTCP_SUBFLOW_ATTR_TOKEN_LOC = 2,
1: - MPTCP_SUBFLOW_ATTR_RELWRITE_SEQ = 3,
1: - MPTCP_SUBFLOW_ATTR_MAP_SEQ = 4,
1: - MPTCP_SUBFLOW_ATTR_MAP_SFSEQ = 5,
1: - MPTCP_SUBFLOW_ATTR_SSN_OFFSET = 6,
1: - MPTCP_SUBFLOW_ATTR_MAP_DATALEN = 7,
1: - MPTCP_SUBFLOW_ATTR_FLAGS = 8,
1: - MPTCP_SUBFLOW_ATTR_ID_REM = 9,
1: - MPTCP_SUBFLOW_ATTR_ID_LOC = 10,
1: - MPTCP_SUBFLOW_ATTR_PAD = 11,
1: - __MPTCP_SUBFLOW_ATTR_MAX = 12,
1: + MPTCP_SUBFLOW_ATTR_UNSPEC = 0,
1: + MPTCP_SUBFLOW_ATTR_TOKEN_REM = 1,
1: + MPTCP_SUBFLOW_ATTR_TOKEN_LOC = 2,
1: + MPTCP_SUBFLOW_ATTR_RELWRITE_SEQ = 3,
1: + MPTCP_SUBFLOW_ATTR_MAP_SEQ = 4,
1: + MPTCP_SUBFLOW_ATTR_MAP_SFSEQ = 5,
1: + MPTCP_SUBFLOW_ATTR_SSN_OFFSET = 6,
1: + MPTCP_SUBFLOW_ATTR_MAP_DATALEN = 7,
1: + MPTCP_SUBFLOW_ATTR_FLAGS = 8,
1: + MPTCP_SUBFLOW_ATTR_ID_REM = 9,
1: + MPTCP_SUBFLOW_ATTR_ID_LOC = 10,
1: + MPTCP_SUBFLOW_ATTR_PAD = 11,
1: + __MPTCP_SUBFLOW_ATTR_MAX = 12,
1: };
1:
1: enum {
1: - MPTCP_PM_ATTR_UNSPEC = 0,
1: - MPTCP_PM_ATTR_ADDR = 1,
1: - MPTCP_PM_ATTR_RCV_ADD_ADDRS = 2,
1: - MPTCP_PM_ATTR_SUBFLOWS = 3,
1: - __MPTCP_PM_ATTR_MAX = 4,
1: + MPTCP_PM_ATTR_UNSPEC = 0,
1: + MPTCP_PM_ATTR_ADDR = 1,
1: + MPTCP_PM_ATTR_RCV_ADD_ADDRS = 2,
1: + MPTCP_PM_ATTR_SUBFLOWS = 3,
1: + __MPTCP_PM_ATTR_MAX = 4,
1: };
1:
1: enum {
1: - MPTCP_PM_ADDR_ATTR_UNSPEC = 0,
1: - MPTCP_PM_ADDR_ATTR_FAMILY = 1,
1: - MPTCP_PM_ADDR_ATTR_ID = 2,
1: - MPTCP_PM_ADDR_ATTR_ADDR4 = 3,
1: - MPTCP_PM_ADDR_ATTR_ADDR6 = 4,
1: - MPTCP_PM_ADDR_ATTR_PORT = 5,
1: - MPTCP_PM_ADDR_ATTR_FLAGS = 6,
1: - MPTCP_PM_ADDR_ATTR_IF_IDX = 7,
1: - __MPTCP_PM_ADDR_ATTR_MAX = 8,
1: + MPTCP_PM_ADDR_ATTR_UNSPEC = 0,
1: + MPTCP_PM_ADDR_ATTR_FAMILY = 1,
1: + MPTCP_PM_ADDR_ATTR_ID = 2,
1: + MPTCP_PM_ADDR_ATTR_ADDR4 = 3,
1: + MPTCP_PM_ADDR_ATTR_ADDR6 = 4,
1: + MPTCP_PM_ADDR_ATTR_PORT = 5,
1: + MPTCP_PM_ADDR_ATTR_FLAGS = 6,
1: + MPTCP_PM_ADDR_ATTR_IF_IDX = 7,
1: + __MPTCP_PM_ADDR_ATTR_MAX = 8,
1: };
1:
1: enum {
1: - MPTCP_PM_CMD_UNSPEC = 0,
1: - MPTCP_PM_CMD_ADD_ADDR = 1,
1: - MPTCP_PM_CMD_DEL_ADDR = 2,
1: - MPTCP_PM_CMD_GET_ADDR = 3,
1: - MPTCP_PM_CMD_FLUSH_ADDRS = 4,
1: - MPTCP_PM_CMD_SET_LIMITS = 5,
1: - MPTCP_PM_CMD_GET_LIMITS = 6,
1: - __MPTCP_PM_CMD_AFTER_LAST = 7,
1: + MPTCP_PM_CMD_UNSPEC = 0,
1: + MPTCP_PM_CMD_ADD_ADDR = 1,
1: + MPTCP_PM_CMD_DEL_ADDR = 2,
1: + MPTCP_PM_CMD_GET_ADDR = 3,
1: + MPTCP_PM_CMD_FLUSH_ADDRS = 4,
1: + MPTCP_PM_CMD_SET_LIMITS = 5,
1: + MPTCP_PM_CMD_GET_LIMITS = 6,
1: + __MPTCP_PM_CMD_AFTER_LAST = 7,
1: };
1:
1: struct mptcp_pm_addr_entry {
1: - struct list_head list;
1: - struct mptcp_addr_info addr;
1: - struct callback_head rcu;
1: + struct list_head list;
1: + struct mptcp_addr_info addr;
1: + struct callback_head rcu;
1: };
1:
1: struct mptcp_pm_add_entry {
1: - struct list_head list;
1: - struct mptcp_addr_info addr;
1: - struct timer_list add_timer;
1: - struct mptcp_sock *sock;
1: - u8 retrans_times;
1: + struct list_head list;
1: + struct mptcp_addr_info addr;
1: + struct timer_list add_timer;
1: + struct mptcp_sock *sock;
1: + u8 retrans_times;
1: };
1:
1: struct pm_nl_pernet {
1: - spinlock_t lock;
1: - struct list_head local_addr_list;
1: - unsigned int addrs;
1: - unsigned int add_addr_signal_max;
1: - unsigned int add_addr_accept_max;
1: - unsigned int local_addr_max;
1: - unsigned int subflows_max;
1: - unsigned int next_id;
1: + spinlock_t lock;
1: + struct list_head local_addr_list;
1: + unsigned int addrs;
1: + unsigned int add_addr_signal_max;
1: + unsigned int add_addr_accept_max;
1: + unsigned int local_addr_max;
1: + unsigned int subflows_max;
1: + unsigned int next_id;
1: };
1:
1: struct join_entry {
1: - u32 token;
1: - u32 remote_nonce;
1: - u32 local_nonce;
1: - u8 join_id;
1: - u8 local_id;
1: - u8 backup;
1: - u8 valid;
1: + u32 token;
1: + u32 remote_nonce;
1: + u32 local_nonce;
1: + u8 join_id;
1: + u8 local_id;
1: + u8 backup;
1: + u8 valid;
1: };
1:
1: typedef struct {
1: - u32 version;
1: - u32 length;
1: - u64 memory_protection_attribute;
1: + u32 version;
1: + u32 length;
1: + u64 memory_protection_attribute;
1: } efi_properties_table_t;
1:
1: enum efi_secureboot_mode {
1: - efi_secureboot_mode_unset = 0,
1: - efi_secureboot_mode_unknown = 1,
1: - efi_secureboot_mode_disabled = 2,
1: - efi_secureboot_mode_enabled = 3,
1: + efi_secureboot_mode_unset = 0,
1: + efi_secureboot_mode_unknown = 1,
1: + efi_secureboot_mode_disabled = 2,
1: + efi_secureboot_mode_enabled = 3,
1: };
1:
1: typedef union {
1: - struct {
1: - u32 revision;
1: - efi_handle_t parent_handle;
1: - efi_system_table_t *system_table;
1: - efi_handle_t device_handle;
1: - void *file_path;
1: - void *reserved;
1: - u32 load_options_size;
1: - void *load_options;
1: - void *image_base;
1: - __u64 image_size;
1: - unsigned int image_code_type;
1: - unsigned int image_data_type;
1: - efi_status_t (*unload)(efi_handle_t);
1: - };
1: - struct {
1: - u32 revision;
1: - u32 parent_handle;
1: - u32 system_table;
1: - u32 device_handle;
1: - u32 file_path;
1: - u32 reserved;
1: - u32 load_options_size;
1: - u32 load_options;
1: - u32 image_base;
1: - __u64 image_size;
1: - u32 image_code_type;
1: - u32 image_data_type;
1: - u32 unload;
1: - } mixed_mode;
1: + struct {
1: + u32 revision;
1: + efi_handle_t parent_handle;
1: + efi_system_table_t *system_table;
1: + efi_handle_t device_handle;
1: + void *file_path;
1: + void *reserved;
1: + u32 load_options_size;
1: + void *load_options;
1: + void *image_base;
1: + __u64 image_size;
1: + unsigned int image_code_type;
1: + unsigned int image_data_type;
1: + efi_status_t (*unload)(efi_handle_t);
1: + };
1: + struct {
1: + u32 revision;
1: + u32 parent_handle;
1: + u32 system_table;
1: + u32 device_handle;
1: + u32 file_path;
1: + u32 reserved;
1: + u32 load_options_size;
1: + u32 load_options;
1: + u32 image_base;
1: + __u64 image_size;
1: + u32 image_code_type;
1: + u32 image_data_type;
1: + u32 unload;
1: + } mixed_mode;
1: } efi_loaded_image_t;
1:
1: struct efi_boot_memmap {
1: - efi_memory_desc_t **map;
1: - long unsigned int *map_size;
1: - long unsigned int *desc_size;
1: - u32 *desc_ver;
1: - long unsigned int *key_ptr;
1: - long unsigned int *buff_size;
1: + efi_memory_desc_t **map;
1: + long unsigned int *map_size;
1: + long unsigned int *desc_size;
1: + u32 *desc_ver;
1: + long unsigned int *key_ptr;
1: + long unsigned int *buff_size;
1: };
1:
1: struct exit_boot_struct {
1: - efi_memory_desc_t *runtime_map;
1: - int *runtime_entry_count;
1: - void *new_fdt_addr;
1: + efi_memory_desc_t *runtime_map;
1: + int *runtime_entry_count;
1: + void *new_fdt_addr;
1: };
1:
1: typedef struct {
1: - u64 size;
1: - u64 file_size;
1: - u64 phys_size;
1: - efi_time_t create_time;
1: - efi_time_t last_access_time;
1: - efi_time_t modification_time;
1: - __u64 attribute;
1: - efi_char16_t filename[0];
1: + u64 size;
1: + u64 file_size;
1: + u64 phys_size;
1: + efi_time_t create_time;
1: + efi_time_t last_access_time;
1: + efi_time_t modification_time;
1: + __u64 attribute;
1: + efi_char16_t filename[0];
1: } efi_file_info_t;
1:
1: struct efi_file_protocol;
1: @@ -110289,95 +111690,103 @@ struct efi_file_protocol;
1: typedef struct efi_file_protocol efi_file_protocol_t;
1:
1: struct efi_file_protocol {
1: - u64 revision;
1: - efi_status_t (*open)(efi_file_protocol_t *, efi_file_protocol_t **, efi_char16_t *, u64, u64);
1: - efi_status_t (*close)(efi_file_protocol_t *);
1: - efi_status_t (*delete)(efi_file_protocol_t *);
1: - efi_status_t (*read)(efi_file_protocol_t *, long unsigned int *, void *);
1: - efi_status_t (*write)(efi_file_protocol_t *, long unsigned int, void *);
1: - efi_status_t (*get_position)(efi_file_protocol_t *, u64 *);
1: - efi_status_t (*set_position)(efi_file_protocol_t *, u64);
1: - efi_status_t (*get_info)(efi_file_protocol_t *, efi_guid_t *, long unsigned int *, void *);
1: - efi_status_t (*set_info)(efi_file_protocol_t *, efi_guid_t *, long unsigned int, void *);
1: - efi_status_t (*flush)(efi_file_protocol_t *);
1: + u64 revision;
1: + efi_status_t (*open)(efi_file_protocol_t *, efi_file_protocol_t **,
1: + efi_char16_t *, u64, u64);
1: + efi_status_t (*close)(efi_file_protocol_t *);
1: + efi_status_t (*delete)(efi_file_protocol_t *);
1: + efi_status_t (*read)(efi_file_protocol_t *, long unsigned int *, void *);
1: + efi_status_t (*write)(efi_file_protocol_t *, long unsigned int, void *);
1: + efi_status_t (*get_position)(efi_file_protocol_t *, u64 *);
1: + efi_status_t (*set_position)(efi_file_protocol_t *, u64);
1: + efi_status_t (*get_info)(efi_file_protocol_t *, efi_guid_t *,
1: + long unsigned int *, void *);
1: + efi_status_t (*set_info)(efi_file_protocol_t *, efi_guid_t *,
1: + long unsigned int, void *);
1: + efi_status_t (*flush)(efi_file_protocol_t *);
1: };
1:
1: struct efi_simple_file_system_protocol;
1:
1: -typedef struct efi_simple_file_system_protocol efi_simple_file_system_protocol_t;
1: +typedef struct efi_simple_file_system_protocol
1: + efi_simple_file_system_protocol_t;
1:
1: struct efi_simple_file_system_protocol {
1: - u64 revision;
1: - int (*open_volume)(efi_simple_file_system_protocol_t *, efi_file_protocol_t **);
1: + u64 revision;
1: + int (*open_volume)(efi_simple_file_system_protocol_t *,
1: + efi_file_protocol_t **);
1: };
1:
1: struct finfo {
1: - efi_file_info_t info;
1: - efi_char16_t filename[256];
1: + efi_file_info_t info;
1: + efi_char16_t filename[256];
1: };
1:
1: typedef struct {
1: - u32 red_mask;
1: - u32 green_mask;
1: - u32 blue_mask;
1: - u32 reserved_mask;
1: + u32 red_mask;
1: + u32 green_mask;
1: + u32 blue_mask;
1: + u32 reserved_mask;
1: } efi_pixel_bitmask_t;
1:
1: typedef struct {
1: - u32 version;
1: - u32 horizontal_resolution;
1: - u32 vertical_resolution;
1: - int pixel_format;
1: - efi_pixel_bitmask_t pixel_information;
1: - u32 pixels_per_scan_line;
1: + u32 version;
1: + u32 horizontal_resolution;
1: + u32 vertical_resolution;
1: + int pixel_format;
1: + efi_pixel_bitmask_t pixel_information;
1: + u32 pixels_per_scan_line;
1: } efi_graphics_output_mode_info_t;
1:
1: union efi_graphics_output_protocol_mode {
1: - struct {
1: - u32 max_mode;
1: - u32 mode;
1: - efi_graphics_output_mode_info_t *info;
1: - long unsigned int size_of_info;
1: - efi_physical_addr_t frame_buffer_base;
1: - long unsigned int frame_buffer_size;
1: - };
1: - struct {
1: - u32 max_mode;
1: - u32 mode;
1: - u32 info;
1: - u32 size_of_info;
1: - u64 frame_buffer_base;
1: - u32 frame_buffer_size;
1: - } mixed_mode;
1: -};
1: -
1: -typedef union efi_graphics_output_protocol_mode efi_graphics_output_protocol_mode_t;
1: + struct {
1: + u32 max_mode;
1: + u32 mode;
1: + efi_graphics_output_mode_info_t *info;
1: + long unsigned int size_of_info;
1: + efi_physical_addr_t frame_buffer_base;
1: + long unsigned int frame_buffer_size;
1: + };
1: + struct {
1: + u32 max_mode;
1: + u32 mode;
1: + u32 info;
1: + u32 size_of_info;
1: + u64 frame_buffer_base;
1: + u32 frame_buffer_size;
1: + } mixed_mode;
1: +};
1: +
1: +typedef union efi_graphics_output_protocol_mode
1: + efi_graphics_output_protocol_mode_t;
1:
1: union efi_graphics_output_protocol;
1:
1: typedef union efi_graphics_output_protocol efi_graphics_output_protocol_t;
1:
1: union efi_graphics_output_protocol {
1: - struct {
1: - efi_status_t (*query_mode)(efi_graphics_output_protocol_t *, u32, long unsigned int *, efi_graphics_output_mode_info_t **);
1: - efi_status_t (*set_mode)(efi_graphics_output_protocol_t *, u32);
1: - void *blt;
1: - efi_graphics_output_protocol_mode_t *mode;
1: - };
1: - struct {
1: - u32 query_mode;
1: - u32 set_mode;
1: - u32 blt;
1: - u32 mode;
1: - } mixed_mode;
1: + struct {
1: + efi_status_t (*query_mode)(efi_graphics_output_protocol_t *, u32,
1: + long unsigned int *,
1: + efi_graphics_output_mode_info_t **);
1: + efi_status_t (*set_mode)(efi_graphics_output_protocol_t *, u32);
1: + void *blt;
1: + efi_graphics_output_protocol_mode_t *mode;
1: + };
1: + struct {
1: + u32 query_mode;
1: + u32 set_mode;
1: + u32 blt;
1: + u32 mode;
1: + } mixed_mode;
1: };
1:
1: enum efi_cmdline_option {
1: - EFI_CMDLINE_NONE = 0,
1: - EFI_CMDLINE_MODE_NUM = 1,
1: - EFI_CMDLINE_RES = 2,
1: - EFI_CMDLINE_AUTO = 3,
1: - EFI_CMDLINE_LIST = 4,
1: + EFI_CMDLINE_NONE = 0,
1: + EFI_CMDLINE_MODE_NUM = 1,
1: + EFI_CMDLINE_RES = 2,
1: + EFI_CMDLINE_AUTO = 3,
1: + EFI_CMDLINE_LIST = 4,
1: };
1:
1: union efi_rng_protocol;
1: @@ -110385,45 +111794,49 @@ union efi_rng_protocol;
1: typedef union efi_rng_protocol efi_rng_protocol_t;
1:
1: union efi_rng_protocol {
1: - struct {
1: - efi_status_t (*get_info)(efi_rng_protocol_t *, long unsigned int *, efi_guid_t *);
1: - efi_status_t (*get_rng)(efi_rng_protocol_t *, efi_guid_t *, long unsigned int, u8 *);
1: - };
1: - struct {
1: - u32 get_info;
1: - u32 get_rng;
1: - } mixed_mode;
1: + struct {
1: + efi_status_t (*get_info)(efi_rng_protocol_t *, long unsigned int *,
1: + efi_guid_t *);
1: + efi_status_t (*get_rng)(efi_rng_protocol_t *, efi_guid_t *,
1: + long unsigned int, u8 *);
1: + };
1: + struct {
1: + u32 get_info;
1: + u32 get_rng;
1: + } mixed_mode;
1: };
1:
1: typedef u32 efi_tcg2_event_log_format;
1:
1: union efi_tcg2_protocol {
1: - struct {
1: - void *get_capability;
1: - efi_status_t (*get_event_log)(efi_handle_t, efi_tcg2_event_log_format, efi_physical_addr_t *, efi_physical_addr_t *, efi_bool_t *);
1: - void *hash_log_extend_event;
1: - void *submit_command;
1: - void *get_active_pcr_banks;
1: - void *set_active_pcr_banks;
1: - void *get_result_of_set_active_pcr_banks;
1: - };
1: - struct {
1: - u32 get_capability;
1: - u32 get_event_log;
1: - u32 hash_log_extend_event;
1: - u32 submit_command;
1: - u32 get_active_pcr_banks;
1: - u32 set_active_pcr_banks;
1: - u32 get_result_of_set_active_pcr_banks;
1: - } mixed_mode;
1: + struct {
1: + void *get_capability;
1: + efi_status_t (*get_event_log)(efi_handle_t, efi_tcg2_event_log_format,
1: + efi_physical_addr_t *, efi_physical_addr_t *,
1: + efi_bool_t *);
1: + void *hash_log_extend_event;
1: + void *submit_command;
1: + void *get_active_pcr_banks;
1: + void *set_active_pcr_banks;
1: + void *get_result_of_set_active_pcr_banks;
1: + };
1: + struct {
1: + u32 get_capability;
1: + u32 get_event_log;
1: + u32 hash_log_extend_event;
1: + u32 submit_command;
1: + u32 get_active_pcr_banks;
1: + u32 set_active_pcr_banks;
1: + u32 get_result_of_set_active_pcr_banks;
1: + } mixed_mode;
1: };
1:
1: typedef union efi_tcg2_protocol efi_tcg2_protocol_t;
1:
1: struct efi_vendor_dev_path {
1: - struct efi_generic_dev_path header;
1: - efi_guid_t vendorguid;
1: - u8 vendordata[0];
1: + struct efi_generic_dev_path header;
1: + efi_guid_t vendorguid;
1: + u8 vendordata[0];
1: };
1:
1: union efi_load_file_protocol;
1: @@ -110431,109 +111844,117 @@ union efi_load_file_protocol;
1: typedef union efi_load_file_protocol efi_load_file_protocol_t;
1:
1: union efi_load_file_protocol {
1: - struct {
1: - efi_status_t (*load_file)(efi_load_file_protocol_t *, efi_device_path_protocol_t *, bool, long unsigned int *, void *);
1: - };
1: - struct {
1: - u32 load_file;
1: - } mixed_mode;
1: + struct {
1: + efi_status_t (*load_file)(efi_load_file_protocol_t *,
1: + efi_device_path_protocol_t *, bool,
1: + long unsigned int *, void *);
1: + };
1: + struct {
1: + u32 load_file;
1: + } mixed_mode;
1: };
1:
1: typedef union efi_load_file_protocol efi_load_file2_protocol_t;
1:
1: typedef struct {
1: - u32 attributes;
1: - u16 file_path_list_length;
1: - u8 variable_data[0];
1: + u32 attributes;
1: + u16 file_path_list_length;
1: + u8 variable_data[0];
1: } __attribute__((packed)) efi_load_option_t;
1:
1: typedef struct {
1: - u32 attributes;
1: - u16 file_path_list_length;
1: - const efi_char16_t *description;
1: - const efi_device_path_protocol_t *file_path_list;
1: - size_t optional_data_size;
1: - const void *optional_data;
1: + u32 attributes;
1: + u16 file_path_list_length;
1: + const efi_char16_t *description;
1: + const efi_device_path_protocol_t *file_path_list;
1: + size_t optional_data_size;
1: + const void *optional_data;
1: } efi_load_option_unpacked_t;
1:
1: -typedef efi_status_t (*efi_exit_boot_map_processing)(struct efi_boot_memmap *, void *);
1: +typedef efi_status_t (*efi_exit_boot_map_processing)(struct efi_boot_memmap *,
1: + void *);
1:
1: typedef enum {
1: - EfiPciIoWidthUint8 = 0,
1: - EfiPciIoWidthUint16 = 1,
1: - EfiPciIoWidthUint32 = 2,
1: - EfiPciIoWidthUint64 = 3,
1: - EfiPciIoWidthFifoUint8 = 4,
1: - EfiPciIoWidthFifoUint16 = 5,
1: - EfiPciIoWidthFifoUint32 = 6,
1: - EfiPciIoWidthFifoUint64 = 7,
1: - EfiPciIoWidthFillUint8 = 8,
1: - EfiPciIoWidthFillUint16 = 9,
1: - EfiPciIoWidthFillUint32 = 10,
1: - EfiPciIoWidthFillUint64 = 11,
1: - EfiPciIoWidthMaximum = 12,
1: + EfiPciIoWidthUint8 = 0,
1: + EfiPciIoWidthUint16 = 1,
1: + EfiPciIoWidthUint32 = 2,
1: + EfiPciIoWidthUint64 = 3,
1: + EfiPciIoWidthFifoUint8 = 4,
1: + EfiPciIoWidthFifoUint16 = 5,
1: + EfiPciIoWidthFifoUint32 = 6,
1: + EfiPciIoWidthFifoUint64 = 7,
1: + EfiPciIoWidthFillUint8 = 8,
1: + EfiPciIoWidthFillUint16 = 9,
1: + EfiPciIoWidthFillUint32 = 10,
1: + EfiPciIoWidthFillUint64 = 11,
1: + EfiPciIoWidthMaximum = 12,
1: } EFI_PCI_IO_PROTOCOL_WIDTH;
1:
1: typedef struct {
1: - u32 read;
1: - u32 write;
1: + u32 read;
1: + u32 write;
1: } efi_pci_io_protocol_access_32_t;
1:
1: typedef struct {
1: - void *read;
1: - void *write;
1: + void *read;
1: + void *write;
1: } efi_pci_io_protocol_access_t;
1:
1: union efi_pci_io_protocol;
1:
1: typedef union efi_pci_io_protocol efi_pci_io_protocol_t;
1:
1: -typedef efi_status_t (*efi_pci_io_protocol_cfg_t)(efi_pci_io_protocol_t *, EFI_PCI_IO_PROTOCOL_WIDTH, u32, long unsigned int, void *);
1: +typedef efi_status_t (*efi_pci_io_protocol_cfg_t)(efi_pci_io_protocol_t *,
1: + EFI_PCI_IO_PROTOCOL_WIDTH,
1: + u32, long unsigned int,
1: + void *);
1:
1: typedef struct {
1: - efi_pci_io_protocol_cfg_t read;
1: - efi_pci_io_protocol_cfg_t write;
1: + efi_pci_io_protocol_cfg_t read;
1: + efi_pci_io_protocol_cfg_t write;
1: } efi_pci_io_protocol_config_access_t;
1:
1: union efi_pci_io_protocol {
1: - struct {
1: - void *poll_mem;
1: - void *poll_io;
1: - efi_pci_io_protocol_access_t mem;
1: - efi_pci_io_protocol_access_t io;
1: - efi_pci_io_protocol_config_access_t pci;
1: - void *copy_mem;
1: - void *map;
1: - void *unmap;
1: - void *allocate_buffer;
1: - void *free_buffer;
1: - void *flush;
1: - efi_status_t (*get_location)(efi_pci_io_protocol_t *, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *);
1: - void *attributes;
1: - void *get_bar_attributes;
1: - void *set_bar_attributes;
1: - uint64_t romsize;
1: - void *romimage;
1: - };
1: - struct {
1: - u32 poll_mem;
1: - u32 poll_io;
1: - efi_pci_io_protocol_access_32_t mem;
1: - efi_pci_io_protocol_access_32_t io;
1: - efi_pci_io_protocol_access_32_t pci;
1: - u32 copy_mem;
1: - u32 map;
1: - u32 unmap;
1: - u32 allocate_buffer;
1: - u32 free_buffer;
1: - u32 flush;
1: - u32 get_location;
1: - u32 attributes;
1: - u32 get_bar_attributes;
1: - u32 set_bar_attributes;
1: - u64 romsize;
1: - u32 romimage;
1: - } mixed_mode;
1: + struct {
1: + void *poll_mem;
1: + void *poll_io;
1: + efi_pci_io_protocol_access_t mem;
1: + efi_pci_io_protocol_access_t io;
1: + efi_pci_io_protocol_config_access_t pci;
1: + void *copy_mem;
1: + void *map;
1: + void *unmap;
1: + void *allocate_buffer;
1: + void *free_buffer;
1: + void *flush;
1: + efi_status_t (*get_location)(efi_pci_io_protocol_t *, long unsigned int *,
1: + long unsigned int *, long unsigned int *,
1: + long unsigned int *);
1: + void *attributes;
1: + void *get_bar_attributes;
1: + void *set_bar_attributes;
1: + uint64_t romsize;
1: + void *romimage;
1: + };
1: + struct {
1: + u32 poll_mem;
1: + u32 poll_io;
1: + efi_pci_io_protocol_access_32_t mem;
1: + efi_pci_io_protocol_access_32_t io;
1: + efi_pci_io_protocol_access_32_t pci;
1: + u32 copy_mem;
1: + u32 map;
1: + u32 unmap;
1: + u32 allocate_buffer;
1: + u32 free_buffer;
1: + u32 flush;
1: + u32 get_location;
1: + u32 attributes;
1: + u32 get_bar_attributes;
1: + u32 set_bar_attributes;
1: + u64 romsize;
1: + u32 romimage;
1: + } mixed_mode;
1: };
1:
1: #ifndef BPF_NO_PRESERVE_ACCESS_INDEX
1: diff --git a/libbpf-tools/biolatency.bpf.c b/libbpf-tools/biolatency.bpf.c
1: index fe18fd89..2fc8a045 100644
1: --- a/libbpf-tools/biolatency.bpf.c
1: +++ b/libbpf-tools/biolatency.bpf.c
1: @@ -1,9 +1,9 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "biolatency.h"
1: #include "bits.bpf.h"
1:
1: diff --git a/libbpf-tools/biopattern.bpf.c b/libbpf-tools/biopattern.bpf.c
1: index 3608d362..a3b7e45b 100644
1: --- a/libbpf-tools/biopattern.bpf.c
1: +++ b/libbpf-tools/biopattern.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "biopattern.h"
1: #include "maps.bpf.h"
1:
1: diff --git a/libbpf-tools/biosnoop.bpf.c b/libbpf-tools/biosnoop.bpf.c
1: index cd0fa0e5..fdb9af47 100644
1: --- a/libbpf-tools/biosnoop.bpf.c
1: +++ b/libbpf-tools/biosnoop.bpf.c
1: @@ -1,9 +1,9 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "biosnoop.h"
1:
1: #define MAX_ENTRIES 10240
1: diff --git a/libbpf-tools/biostacks.bpf.c b/libbpf-tools/biostacks.bpf.c
1: index 6ed0bda6..8e28d093 100644
1: --- a/libbpf-tools/biostacks.bpf.c
1: +++ b/libbpf-tools/biostacks.bpf.c
1: @@ -1,9 +1,9 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "biostacks.h"
1: #include "bits.bpf.h"
1: #include "maps.bpf.h"
1: diff --git a/libbpf-tools/bitesize.bpf.c b/libbpf-tools/bitesize.bpf.c
1: index c0492848..463bcac7 100644
1: --- a/libbpf-tools/bitesize.bpf.c
1: +++ b/libbpf-tools/bitesize.bpf.c
1: @@ -1,9 +1,9 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: +#include <bpf/bpf_core_read.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: -#include <bpf/bpf_core_read.h>
1: +#include <vmlinux.h>
1: #include "bitesize.h"
1: #include "bits.bpf.h"
1:
1: diff --git a/libbpf-tools/cpudist.bpf.c b/libbpf-tools/cpudist.bpf.c
1: index a115897f..2909fce7 100644
1: --- a/libbpf-tools/cpudist.bpf.c
1: +++ b/libbpf-tools/cpudist.bpf.c
1: @@ -1,11 +1,11 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: -#include "cpudist.h"
1: +#include <vmlinux.h>
1: #include "bits.bpf.h"
1: +#include "cpudist.h"
1:
1: #define TASK_RUNNING 0
1:
1: diff --git a/libbpf-tools/cpufreq.bpf.c b/libbpf-tools/cpufreq.bpf.c
1: index 697620ba..617f3d71 100644
1: --- a/libbpf-tools/cpufreq.bpf.c
1: +++ b/libbpf-tools/cpufreq.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "cpufreq.h"
1: #include "maps.bpf.h"
1:
1: diff --git a/libbpf-tools/drsnoop.bpf.c b/libbpf-tools/drsnoop.bpf.c
1: index c364d185..65f90591 100644
1: --- a/libbpf-tools/drsnoop.bpf.c
1: +++ b/libbpf-tools/drsnoop.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "drsnoop.h"
1:
1: const volatile pid_t targ_pid = 0;
1: diff --git a/libbpf-tools/execsnoop.bpf.c b/libbpf-tools/execsnoop.bpf.c
1: index 026066d2..91ce9d1e 100644
1: --- a/libbpf-tools/execsnoop.bpf.c
1: +++ b/libbpf-tools/execsnoop.bpf.c
1: @@ -1,7 +1,7 @@
1: // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: +#include <vmlinux.h>
1: #include "execsnoop.h"
1:
1: const volatile bool ignore_failed = true;
1: diff --git a/libbpf-tools/filelife.bpf.c b/libbpf-tools/filelife.bpf.c
1: index c2007053..fad173a1 100644
1: --- a/libbpf-tools/filelife.bpf.c
1: +++ b/libbpf-tools/filelife.bpf.c
1: @@ -1,9 +1,9 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: -#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_core_read.h>
1: +#include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "filelife.h"
1:
1: const volatile pid_t targ_tgid = 0;
1: diff --git a/libbpf-tools/hardirqs.bpf.c b/libbpf-tools/hardirqs.bpf.c
1: index f1cd7af7..914df837 100644
1: --- a/libbpf-tools/hardirqs.bpf.c
1: +++ b/libbpf-tools/hardirqs.bpf.c
1: @@ -1,10 +1,10 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: -#include "hardirqs.h"
1: +#include <vmlinux.h>
1: #include "bits.bpf.h"
1: +#include "hardirqs.h"
1: #include "maps.bpf.h"
1:
1: #define MAX_ENTRIES 256
1: diff --git a/libbpf-tools/llcstat.bpf.c b/libbpf-tools/llcstat.bpf.c
1: index fbd5b6c4..0bdf78d5 100644
1: --- a/libbpf-tools/llcstat.bpf.c
1: +++ b/libbpf-tools/llcstat.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1: #include "llcstat.h"
1:
1: #define MAX_ENTRIES 10240
1: diff --git a/libbpf-tools/numamove.bpf.c b/libbpf-tools/numamove.bpf.c
1: index 69d8d5f9..02615634 100644
1: --- a/libbpf-tools/numamove.bpf.c
1: +++ b/libbpf-tools/numamove.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2020 Wenbo Zhang
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: #include <bpf/bpf_tracing.h>
1: +#include <vmlinux.h>
1:
1: struct {
1: __uint(type, BPF_MAP_TYPE_HASH);
1: diff --git a/libbpf-tools/opensnoop.bpf.c b/libbpf-tools/opensnoop.bpf.c
1: index e378dcc2..c3a60ad8 100644
1: --- a/libbpf-tools/opensnoop.bpf.c
1: +++ b/libbpf-tools/opensnoop.bpf.c
1: @@ -1,8 +1,8 @@
1: // SPDX-License-Identifier: GPL-2.0
1: // Copyright (c) 2019 Facebook
1: // Copyright (c) 2020 Netflix
1: -#include <vmlinux.h>
1: #include <bpf/bpf_helpers.h>
1: +#include <vmlinux.h>
1: #include "opensnoop.h"
1:
1: #define TASK_RUNNING 0
1: diff --git a/libbpf-tools/powerpc/vmlinux.h b/libbpf-tools/powerpc/vmlinux.h
1: deleted file mode 120000
1: index 33125432..00000000
1: --- a/libbpf-tools/powerpc/vmlinux.h
1: +++ /dev/null
1: @@ -1 +0,0 @@
1: -vmlinux_510.h
1: \ No newline at end of file
1: diff --git a/libbpf-tools/powerpc/vmlinux.h b/libbpf-tools/powerpc/vmlinux.h
1: new file mode 100644
1: index 00000000..3b1b0127
1: --- /dev/null
1: +++ b/libbpf-tools/powerpc/vmlinux.h
1: @@ -0,0 +1,123447 @@
1: +#ifndef __VMLINUX_H__
1: +#define __VMLINUX_H__
1: +
1: +#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
1: +#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
1: +#endif
1: +
1: +typedef char *__gnuc_va_list;
1: +
1: +typedef __gnuc_va_list va_list;
1: +
1: +typedef unsigned char __u8;
1: +
1: +typedef short int __s16;
1: +
1: +typedef short unsigned int __u16;
1: +
1: +typedef int __s32;
1: +
1: +typedef unsigned int __u32;
1: +
1: +typedef long long int __s64;
1: +
1: +typedef long long unsigned int __u64;
1: +
1: +typedef __u8 u8;
1: +
1: +typedef __s16 s16;
1: +
1: +typedef __u16 u16;
1: +
1: +typedef __s32 s32;
1: +
1: +typedef __u32 u32;
1: +
1: +typedef __s64 s64;
1: +
1: +typedef __u64 u64;
1: +
1: +typedef struct {
1: + __u32 u[4];
1: +} __vector128;
1: +
1: +typedef __vector128 vector128;
1: +
1: +enum {
1: + false = 0,
1: + true = 1,
1: +};
1: +
1: +typedef long int __kernel_long_t;
1: +
1: +typedef long unsigned int __kernel_ulong_t;
1: +
1: +typedef int __kernel_pid_t;
1: +
1: +typedef unsigned int __kernel_uid32_t;
1: +
1: +typedef unsigned int __kernel_gid32_t;
1: +
1: +typedef __kernel_ulong_t __kernel_size_t;
1: +
1: +typedef __kernel_long_t __kernel_ssize_t;
1: +
1: +typedef long long int __kernel_loff_t;
1: +
1: +typedef long long int __kernel_time64_t;
1: +
1: +typedef __kernel_long_t __kernel_clock_t;
1: +
1: +typedef int __kernel_timer_t;
1: +
1: +typedef int __kernel_clockid_t;
1: +
1: +typedef __u16 __be16;
1: +
1: +typedef __u32 __be32;
1: +
1: +typedef __u64 __be64;
1: +
1: +typedef unsigned int __poll_t;
1: +
1: +typedef u32 __kernel_dev_t;
1: +
1: +typedef __kernel_dev_t dev_t;
1: +
1: +typedef short unsigned int umode_t;
1: +
1: +typedef __kernel_pid_t pid_t;
1: +
1: +typedef __kernel_clockid_t clockid_t;
1: +
1: +typedef _Bool bool;
1: +
1: +typedef __kernel_uid32_t uid_t;
1: +
1: +typedef __kernel_gid32_t gid_t;
1: +
1: +typedef __kernel_loff_t loff_t;
1: +
1: +typedef __kernel_size_t size_t;
1: +
1: +typedef __kernel_ssize_t ssize_t;
1: +
1: +typedef long unsigned int ulong;
1: +
1: +typedef s32 int32_t;
1: +
1: +typedef u32 uint32_t;
1: +
1: +typedef u64 sector_t;
1: +
1: +typedef u64 blkcnt_t;
1: +
1: +typedef u64 dma_addr_t;
1: +
1: +typedef unsigned int gfp_t;
1: +
1: +typedef unsigned int fmode_t;
1: +
1: +typedef struct {
1: + int counter;
1: +} atomic_t;
1: +
1: +typedef struct {
1: + s64 counter;
1: +} atomic64_t;
1: +
1: +struct list_head {
1: + struct list_head *next;
1: + struct list_head *prev;
1: +};
1: +
1: +struct hlist_node;
1: +
1: +struct hlist_head {
1: + struct hlist_node *first;
1: +};
1: +
1: +struct hlist_node {
1: + struct hlist_node *next;
1: + struct hlist_node **pprev;
1: +};
1: +
1: +struct callback_head {
1: + struct callback_head *next;
1: + void (*func)(struct callback_head *);
1: +};
1: +
1: +struct user_pt_regs {
1: + long unsigned int gpr[32];
1: + long unsigned int nip;
1: + long unsigned int msr;
1: + long unsigned int orig_gpr3;
1: + long unsigned int ctr;
1: + long unsigned int link;
1: + long unsigned int xer;
1: + long unsigned int ccr;
1: + long unsigned int softe;
1: + long unsigned int trap;
1: + long unsigned int dar;
1: + long unsigned int dsisr;
1: + long unsigned int result;
1: +};
1: +
1: +struct pt_regs {
1: + union {
1: + struct user_pt_regs user_regs;
1: + struct {
1: + long unsigned int gpr[32];
1: + long unsigned int nip;
1: + long unsigned int msr;
1: + long unsigned int orig_gpr3;
1: + long unsigned int ctr;
1: + long unsigned int link;
1: + long unsigned int xer;
1: + long unsigned int ccr;
1: + long unsigned int softe;
1: + long unsigned int trap;
1: + long unsigned int dar;
1: + long unsigned int dsisr;
1: + long unsigned int result;
1: + };
1: + };
1: + union {
1: + struct {
1: + long unsigned int ppr;
1: + long unsigned int kuap;
1: + };
1: + long unsigned int __pad[2];
1: + };
1: +};
1: +
1: +struct lock_class_key {};
1: +
1: +struct fs_context;
1: +
1: +struct fs_parameter_spec;
1: +
1: +struct dentry;
1: +
1: +struct super_block;
1: +
1: +struct module;
1: +
1: +struct file_system_type {
1: + const char *name;
1: + int fs_flags;
1: + int (*init_fs_context)(struct fs_context *);
1: + const struct fs_parameter_spec *parameters;
1: + struct dentry * (*mount)(struct file_system_type *, int, const char *, void *);
1: + void (*kill_sb)(struct super_block *);
1: + struct module *owner;
1: + struct file_system_type *next;
1: + struct hlist_head fs_supers;
1: + struct lock_class_key s_lock_key;
1: + struct lock_class_key s_umount_key;
1: + struct lock_class_key s_vfs_rename_key;
1: + struct lock_class_key s_writers_key[3];
1: + struct lock_class_key i_lock_key;
1: + struct lock_class_key i_mutex_key;
1: + struct lock_class_key i_mutex_dir_key;
1: +};
1: +
1: +typedef struct {
1: + volatile unsigned int slock;
1: +} arch_spinlock_t;
1: +
1: +typedef struct {
1: + volatile int lock;
1: +} arch_rwlock_t;
1: +
1: +struct raw_spinlock {
1: + arch_spinlock_t raw_lock;
1: +};
1: +
1: +typedef struct raw_spinlock raw_spinlock_t;
1: +
1: +struct spinlock {
1: + union {
1: + struct raw_spinlock rlock;
1: + };
1: +};
1: +
1: +typedef struct spinlock spinlock_t;
1: +
1: +typedef struct {
1: + arch_rwlock_t raw_lock;
1: +} rwlock_t;
1: +
1: +struct ratelimit_state {
1: + raw_spinlock_t lock;
1: + int interval;
1: + int burst;
1: + int printed;
1: + int missed;
1: + long unsigned int begin;
1: + long unsigned int flags;
1: +};
1: +
1: +typedef void *fl_owner_t;
1: +
1: +struct file;
1: +
1: +struct kiocb;
1: +
1: +struct iov_iter;
1: +
1: +struct dir_context;
1: +
1: +struct poll_table_struct;
1: +
1: +struct vm_area_struct;
1: +
1: +struct inode;
1: +
1: +struct file_lock;
1: +
1: +struct page;
1: +
1: +struct pipe_inode_info;
1: +
1: +struct seq_file;
1: +
1: +struct file_operations {
1: + struct module *owner;
1: + loff_t (*llseek)(struct file *, loff_t, int);
1: + ssize_t (*read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*write)(struct file *, const char *, size_t, loff_t *);
1: + ssize_t (*read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*write_iter)(struct kiocb *, struct iov_iter *);
1: + int (*iopoll)(struct kiocb *, bool);
1: + int (*iterate)(struct file *, struct dir_context *);
1: + int (*iterate_shared)(struct file *, struct dir_context *);
1: + __poll_t (*poll)(struct file *, struct poll_table_struct *);
1: + long int (*unlocked_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int mmap_supported_flags;
1: + int (*open)(struct inode *, struct file *);
1: + int (*flush)(struct file *, fl_owner_t);
1: + int (*release)(struct inode *, struct file *);
1: + int (*fsync)(struct file *, loff_t, loff_t, int);
1: + int (*fasync)(int, struct file *, int);
1: + int (*lock)(struct file *, int, struct file_lock *);
1: + ssize_t (*sendpage)(struct file *, struct page *, int, size_t, loff_t *, int);
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + int (*check_flags)(int);
1: + int (*flock)(struct file *, int, struct file_lock *);
1: + ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1: + ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + int (*setlease)(struct file *, long int, struct file_lock **, void **);
1: + long int (*fallocate)(struct file *, int, loff_t, loff_t);
1: + void (*show_fdinfo)(struct seq_file *, struct file *);
1: + ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int);
1: + loff_t (*remap_file_range)(struct file *, loff_t, struct file *, loff_t, loff_t, unsigned int);
1: + int (*fadvise)(struct file *, loff_t, loff_t, int);
1: +};
1: +
1: +typedef __s64 time64_t;
1: +
1: +struct __kernel_timespec {
1: + __kernel_time64_t tv_sec;
1: + long long int tv_nsec;
1: +};
1: +
1: +struct timespec64 {
1: + time64_t tv_sec;
1: + long int tv_nsec;
1: +};
1: +
1: +enum timespec_type {
1: + TT_NONE = 0,
1: + TT_NATIVE = 1,
1: + TT_COMPAT = 2,
1: +};
1: +
1: +typedef s32 old_time32_t;
1: +
1: +struct old_timespec32 {
1: + old_time32_t tv_sec;
1: + s32 tv_nsec;
1: +};
1: +
1: +struct pollfd;
1: +
1: +struct restart_block {
1: + long int (*fn)(struct restart_block *);
1: + union {
1: + struct {
1: + u32 *uaddr;
1: + u32 val;
1: + u32 flags;
1: + u32 bitset;
1: + u64 time;
1: + u32 *uaddr2;
1: + } futex;
1: + struct {
1: + clockid_t clockid;
1: + enum timespec_type type;
1: + union {
1: + struct __kernel_timespec *rmtp;
1: + struct old_timespec32 *compat_rmtp;
1: + };
1: + u64 expires;
1: + } nanosleep;
1: + struct {
1: + struct pollfd *ufds;
1: + int nfds;
1: + int has_timeout;
1: + long unsigned int tv_sec;
1: + long unsigned int tv_nsec;
1: + } poll;
1: + };
1: +};
1: +
1: +typedef struct {
1: + __be64 pte;
1: +} pte_t;
1: +
1: +typedef struct {
1: + __be64 pmd;
1: +} pmd_t;
1: +
1: +typedef struct {
1: + __be64 pud;
1: +} pud_t;
1: +
1: +typedef struct {
1: + __be64 pgd;
1: +} pgd_t;
1: +
1: +typedef struct {
1: + long unsigned int pgprot;
1: +} pgprot_t;
1: +
1: +typedef pte_t *pgtable_t;
1: +
1: +struct address_space;
1: +
1: +struct kmem_cache;
1: +
1: +struct mm_struct;
1: +
1: +struct dev_pagemap;
1: +
1: +struct mem_cgroup;
1: +
1: +struct obj_cgroup;
1: +
1: +struct page {
1: + long unsigned int flags;
1: + union {
1: + struct {
1: + struct list_head lru;
1: + struct address_space *mapping;
1: + long unsigned int index;
1: + long unsigned int private;
1: + };
1: + struct {
1: + dma_addr_t dma_addr;
1: + };
1: + struct {
1: + union {
1: + struct list_head slab_list;
1: + struct {
1: + struct page *next;
1: + int pages;
1: + int pobjects;
1: + };
1: + };
1: + struct kmem_cache *slab_cache;
1: + void *freelist;
1: + union {
1: + void *s_mem;
1: + long unsigned int counters;
1: + struct {
1: + unsigned int inuse: 16;
1: + unsigned int objects: 15;
1: + unsigned int frozen: 1;
1: + };
1: + };
1: + };
1: + struct {
1: + long unsigned int compound_head;
1: + unsigned char compound_dtor;
1: + unsigned char compound_order;
1: + atomic_t compound_mapcount;
1: + unsigned int compound_nr;
1: + };
1: + struct {
1: + long unsigned int _compound_pad_1;
1: + atomic_t hpage_pinned_refcount;
1: + struct list_head deferred_list;
1: + };
1: + struct {
1: + long unsigned int _pt_pad_1;
1: + pgtable_t pmd_huge_pte;
1: + long unsigned int _pt_pad_2;
1: + union {
1: + struct mm_struct *pt_mm;
1: + atomic_t pt_frag_refcount;
1: + };
1: + spinlock_t ptl;
1: + };
1: + struct {
1: + struct dev_pagemap *pgmap;
1: + void *zone_device_data;
1: + };
1: + struct callback_head callback_head;
1: + };
1: + union {
1: + atomic_t _mapcount;
1: + unsigned int page_type;
1: + unsigned int active;
1: + int units;
1: + };
1: + atomic_t _refcount;
1: + union {
1: + struct mem_cgroup *mem_cgroup;
1: + struct obj_cgroup **obj_cgroups;
1: + };
1: +};
1: +
1: +struct slb_entry {
1: + u64 esid;
1: + u64 vsid;
1: +};
1: +
1: +struct slice_mask {
1: + u64 low_slices;
1: + long unsigned int high_slices[64];
1: +};
1: +
1: +struct hash_mm_context {
1: + u16 user_psize;
1: + unsigned char low_slices_psize[8];
1: + unsigned char high_slices_psize[2048];
1: + long unsigned int slb_addr_limit;
1: + struct slice_mask mask_64k;
1: + struct slice_mask mask_4k;
1: + struct slice_mask mask_16m;
1: + struct slice_mask mask_16g;
1: +};
1: +
1: +typedef long unsigned int mm_context_id_t;
1: +
1: +typedef struct {
1: + union {
1: + mm_context_id_t id;
1: + mm_context_id_t extended_id[8];
1: + };
1: + atomic_t active_cpus;
1: + atomic_t copros;
1: + atomic_t vas_windows;
1: + struct hash_mm_context *hash_context;
1: + long unsigned int vdso_base;
1: + void *pte_frag;
1: + void *pmd_frag;
1: + struct list_head iommu_group_mem_list;
1: + u32 pkey_allocation_map;
1: + s16 execute_only_pkey;
1: +} mm_context_t;
1: +
1: +struct lppaca {
1: + __be32 desc;
1: + __be16 size;
1: + u8 reserved1[3];
1: + u8 __old_status;
1: + u8 reserved3[14];
1: + volatile __be32 dyn_hw_node_id;
1: + volatile __be32 dyn_hw_proc_id;
1: + u8 reserved4[56];
1: + volatile u8 vphn_assoc_counts[8];
1: + u8 reserved5[32];
1: + u8 reserved6[48];
1: + u8 cede_latency_hint;
1: + u8 ebb_regs_in_use;
1: + u8 reserved7[6];
1: + u8 dtl_enable_mask;
1: + u8 donate_dedicated_cpu;
1: + u8 fpregs_in_use;
1: + u8 pmcregs_in_use;
1: + u8 reserved8[28];
1: + __be64 wait_state_cycles;
1: + u8 reserved9[28];
1: + __be16 slb_count;
1: + u8 idle;
1: + u8 vmxregs_in_use;
1: + volatile __be32 yield_count;
1: + volatile __be32 dispersion_count;
1: + volatile __be64 cmo_faults;
1: + volatile __be64 cmo_fault_time;
1: + u8 reserved10[104];
1: + __be32 page_ins;
1: + u8 reserved11[148];
1: + volatile __be64 dtl_idx;
1: + u8 reserved12[96];
1: +};
1: +
1: +struct slb_shadow {
1: + __be32 persistent;
1: + __be32 buffer_length;
1: + __be64 reserved;
1: + struct {
1: + __be64 esid;
1: + __be64 vsid;
1: + } save_area[2];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kvmppc_vcore;
1: +
1: +struct kvm_split_mode {
1: + long unsigned int rpr;
1: + long unsigned int pmmar;
1: + long unsigned int ldbar;
1: + u8 subcore_size;
1: + u8 do_nap;
1: + u8 napped[8];
1: + struct kvmppc_vcore *vc[4];
1: + long unsigned int lpcr_req;
1: + long unsigned int lpidr_req;
1: + long unsigned int host_lpcr;
1: + u32 do_set;
1: + u32 do_restore;
1: + union {
1: + u32 allphases;
1: + u8 phase[4];
1: + } lpcr_sync;
1: +};
1: +
1: +struct kvm_vcpu;
1: +
1: +struct kvmppc_host_state {
1: + ulong host_r1;
1: + ulong host_r2;
1: + ulong host_msr;
1: + ulong vmhandler;
1: + ulong scratch0;
1: + ulong scratch1;
1: + ulong scratch2;
1: + u8 in_guest;
1: + u8 restore_hid5;
1: + u8 napping;
1: + u8 hwthread_req;
1: + u8 hwthread_state;
1: + u8 host_ipi;
1: + u8 ptid;
1: + u8 tid;
1: + u8 fake_suspend;
1: + struct kvm_vcpu *kvm_vcpu;
1: + struct kvmppc_vcore *kvm_vcore;
1: + void *xics_phys;
1: + void *xive_tima_phys;
1: + void *xive_tima_virt;
1: + u32 saved_xirr;
1: + u64 dabr;
1: + u64 host_mmcr[10];
1: + u32 host_pmc[8];
1: + u64 host_purr;
1: + u64 host_spurr;
1: + u64 host_dscr;
1: + u64 dec_expires;
1: + struct kvm_split_mode *kvm_split_mode;
1: + u64 cfar;
1: + u64 ppr;
1: + u64 host_fscr;
1: +};
1: +
1: +struct kvmppc_book3s_shadow_vcpu {
1: + bool in_use;
1: + ulong gpr[14];
1: + u32 cr;
1: + ulong xer;
1: + ulong ctr;
1: + ulong lr;
1: + ulong pc;
1: + ulong shadow_srr1;
1: + ulong fault_dar;
1: + u32 fault_dsisr;
1: + u32 last_inst;
1: + u8 slb_max;
1: + struct {
1: + u64 esid;
1: + u64 vsid;
1: + } slb[64];
1: + u64 shadow_fscr;
1: +};
1: +
1: +struct cpu_accounting_data {
1: + long unsigned int utime;
1: + long unsigned int stime;
1: + long unsigned int utime_scaled;
1: + long unsigned int stime_scaled;
1: + long unsigned int gtime;
1: + long unsigned int hardirq_time;
1: + long unsigned int softirq_time;
1: + long unsigned int steal_time;
1: + long unsigned int idle_time;
1: + long unsigned int starttime;
1: + long unsigned int starttime_user;
1: + long unsigned int startspurr;
1: + long unsigned int utime_sspurr;
1: +};
1: +
1: +struct sibling_subcore_state {
1: + long unsigned int flags;
1: + u8 in_guest[4];
1: +};
1: +
1: +struct mmiowb_state {
1: + u16 nesting_count;
1: + u16 mmiowb_pending;
1: +};
1: +
1: +struct dtl_entry;
1: +
1: +struct task_struct;
1: +
1: +struct rtas_args;
1: +
1: +struct paca_struct {
1: + struct lppaca *lppaca_ptr;
1: + u16 paca_index;
1: + u16 lock_token;
1: + u64 kernel_toc;
1: + u64 kernelbase;
1: + u64 kernel_msr;
1: + void *emergency_sp;
1: + u64 data_offset;
1: + s16 hw_cpu_id;
1: + u8 cpu_start;
1: + u8 kexec_state;
1: + struct slb_shadow *slb_shadow_ptr;
1: + struct dtl_entry *dispatch_log;
1: + struct dtl_entry *dispatch_log_end;
1: + u64 dscr_default;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u64 exgen[10];
1: + u64 exslb[10];
1: + u16 vmalloc_sllp;
1: + u8 slb_cache_ptr;
1: + u8 stab_rr;
1: + u32 slb_used_bitmap;
1: + u32 slb_kern_bitmap;
1: + u32 slb_cache[8];
1: + mm_context_id_t mm_ctx_id;
1: + unsigned char mm_ctx_low_slices_psize[8];
1: + unsigned char mm_ctx_high_slices_psize[2048];
1: + long unsigned int mm_ctx_slb_addr_limit;
1: + struct task_struct *__current;
1: + u64 kstack;
1: + u64 saved_r1;
1: + u64 saved_msr;
1: + u8 irq_soft_mask;
1: + u8 irq_happened;
1: + u8 irq_work_pending;
1: + u8 pmcregs_in_use;
1: + u64 sprg_vdso;
1: + u64 tm_scratch;
1: + long unsigned int idle_state;
1: + union {
1: + struct {
1: + u8 thread_idle_state;
1: + u8 subcore_sibling_mask;
1: + };
1: + struct {
1: + u64 requested_psscr;
1: + atomic_t dont_stop;
1: + };
1: + };
1: + u64 exnmi[10];
1: + u64 exmc[10];
1: + void *nmi_emergency_sp;
1: + void *mc_emergency_sp;
1: + u16 in_nmi;
1: + u16 in_mce;
1: + u8 hmi_event_available;
1: + u8 hmi_p9_special_emu;
1: + u32 hmi_irqs;
1: + u8 ftrace_enabled;
1: + struct cpu_accounting_data accounting;
1: + u64 dtl_ridx;
1: + struct dtl_entry *dtl_curr;
1: + struct kvmppc_book3s_shadow_vcpu shadow_vcpu;
1: + struct kvmppc_host_state kvm_hstate;
1: + struct sibling_subcore_state *sibling_subcore_state;
1: + long: 64;
1: + long: 64;
1: + u64 exrfi[10];
1: + void *rfi_flush_fallback_area;
1: + u64 l1d_flush_size;
1: + struct rtas_args *rtas_args_reentrant;
1: + u8 *mce_data_buf;
1: + struct slb_entry *mce_faulty_slbs;
1: + u16 slb_save_cache_ptr;
1: + long unsigned int canary;
1: + struct mmiowb_state mmiowb_state;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct thread_info {
1: + int preempt_count;
1: + long unsigned int local_flags;
1: + unsigned char slb_preload_nr;
1: + unsigned char slb_preload_tail;
1: + u32 slb_preload_esid[16];
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int flags;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct refcount_struct {
1: + atomic_t refs;
1: +};
1: +
1: +typedef struct refcount_struct refcount_t;
1: +
1: +struct llist_node {
1: + struct llist_node *next;
1: +};
1: +
1: +struct __call_single_node {
1: + struct llist_node llist;
1: + union {
1: + unsigned int u_flags;
1: + atomic_t a_flags;
1: + };
1: + u16 src;
1: + u16 dst;
1: +};
1: +
1: +struct load_weight {
1: + long unsigned int weight;
1: + u32 inv_weight;
1: +};
1: +
1: +struct rb_node {
1: + long unsigned int __rb_parent_color;
1: + struct rb_node *rb_right;
1: + struct rb_node *rb_left;
1: +};
1: +
1: +struct sched_statistics {
1: + u64 wait_start;
1: + u64 wait_max;
1: + u64 wait_count;
1: + u64 wait_sum;
1: + u64 iowait_count;
1: + u64 iowait_sum;
1: + u64 sleep_start;
1: + u64 sleep_max;
1: + s64 sum_sleep_runtime;
1: + u64 block_start;
1: + u64 block_max;
1: + u64 exec_max;
1: + u64 slice_max;
1: + u64 nr_migrations_cold;
1: + u64 nr_failed_migrations_affine;
1: + u64 nr_failed_migrations_running;
1: + u64 nr_failed_migrations_hot;
1: + u64 nr_forced_migrations;
1: + u64 nr_wakeups;
1: + u64 nr_wakeups_sync;
1: + u64 nr_wakeups_migrate;
1: + u64 nr_wakeups_local;
1: + u64 nr_wakeups_remote;
1: + u64 nr_wakeups_affine;
1: + u64 nr_wakeups_affine_attempts;
1: + u64 nr_wakeups_passive;
1: + u64 nr_wakeups_idle;
1: +};
1: +
1: +struct util_est {
1: + unsigned int enqueued;
1: + unsigned int ewma;
1: +};
1: +
1: +struct sched_avg {
1: + u64 last_update_time;
1: + u64 load_sum;
1: + u64 runnable_sum;
1: + u32 util_sum;
1: + u32 period_contrib;
1: + long unsigned int load_avg;
1: + long unsigned int runnable_avg;
1: + long unsigned int util_avg;
1: + struct util_est util_est;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cfs_rq;
1: +
1: +struct sched_entity {
1: + struct load_weight load;
1: + struct rb_node run_node;
1: + struct list_head group_node;
1: + unsigned int on_rq;
1: + u64 exec_start;
1: + u64 sum_exec_runtime;
1: + u64 vruntime;
1: + u64 prev_sum_exec_runtime;
1: + u64 nr_migrations;
1: + struct sched_statistics statistics;
1: + int depth;
1: + struct sched_entity *parent;
1: + struct cfs_rq *cfs_rq;
1: + struct cfs_rq *my_q;
1: + long unsigned int runnable_weight;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg;
1: +};
1: +
1: +struct sched_rt_entity {
1: + struct list_head run_list;
1: + long unsigned int timeout;
1: + long unsigned int watchdog_stamp;
1: + unsigned int time_slice;
1: + short unsigned int on_rq;
1: + short unsigned int on_list;
1: + struct sched_rt_entity *back;
1: +};
1: +
1: +typedef s64 ktime_t;
1: +
1: +struct timerqueue_node {
1: + struct rb_node node;
1: + ktime_t expires;
1: +};
1: +
1: +enum hrtimer_restart {
1: + HRTIMER_NORESTART = 0,
1: + HRTIMER_RESTART = 1,
1: +};
1: +
1: +struct hrtimer_clock_base;
1: +
1: +struct hrtimer {
1: + struct timerqueue_node node;
1: + ktime_t _softexpires;
1: + enum hrtimer_restart (*function)(struct hrtimer *);
1: + struct hrtimer_clock_base *base;
1: + u8 state;
1: + u8 is_rel;
1: + u8 is_soft;
1: + u8 is_hard;
1: +};
1: +
1: +struct sched_dl_entity {
1: + struct rb_node rb_node;
1: + u64 dl_runtime;
1: + u64 dl_deadline;
1: + u64 dl_period;
1: + u64 dl_bw;
1: + u64 dl_density;
1: + s64 runtime;
1: + u64 deadline;
1: + unsigned int flags;
1: + unsigned int dl_throttled: 1;
1: + unsigned int dl_yielded: 1;
1: + unsigned int dl_non_contending: 1;
1: + unsigned int dl_overrun: 1;
1: + struct hrtimer dl_timer;
1: + struct hrtimer inactive_timer;
1: + struct sched_dl_entity *pi_se;
1: +};
1: +
1: +struct uclamp_se {
1: + unsigned int value: 11;
1: + unsigned int bucket_id: 3;
1: + unsigned int active: 1;
1: + unsigned int user_defined: 1;
1: +};
1: +
1: +struct cpumask {
1: + long unsigned int bits[32];
1: +};
1: +
1: +typedef struct cpumask cpumask_t;
1: +
1: +union rcu_special {
1: + struct {
1: + u8 blocked;
1: + u8 need_qs;
1: + u8 exp_hint;
1: + u8 need_mb;
1: + } b;
1: + u32 s;
1: +};
1: +
1: +struct sched_info {
1: + long unsigned int pcount;
1: + long long unsigned int run_delay;
1: + long long unsigned int last_arrival;
1: + long long unsigned int last_queued;
1: +};
1: +
1: +struct plist_node {
1: + int prio;
1: + struct list_head prio_list;
1: + struct list_head node_list;
1: +};
1: +
1: +struct vmacache {
1: + u64 seqnum;
1: + struct vm_area_struct *vmas[4];
1: +};
1: +
1: +struct task_rss_stat {
1: + int events;
1: + int count[4];
1: +};
1: +
1: +struct prev_cputime {};
1: +
1: +struct rb_root {
1: + struct rb_node *rb_node;
1: +};
1: +
1: +struct rb_root_cached {
1: + struct rb_root rb_root;
1: + struct rb_node *rb_leftmost;
1: +};
1: +
1: +struct timerqueue_head {
1: + struct rb_root_cached rb_root;
1: +};
1: +
1: +struct posix_cputimer_base {
1: + u64 nextevt;
1: + struct timerqueue_head tqhead;
1: +};
1: +
1: +struct posix_cputimers {
1: + struct posix_cputimer_base bases[3];
1: + unsigned int timers_active;
1: + unsigned int expiry_active;
1: +};
1: +
1: +struct sem_undo_list;
1: +
1: +struct sysv_sem {
1: + struct sem_undo_list *undo_list;
1: +};
1: +
1: +struct sysv_shm {
1: + struct list_head shm_clist;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int sig[1];
1: +} sigset_t;
1: +
1: +struct sigpending {
1: + struct list_head list;
1: + sigset_t signal;
1: +};
1: +
1: +typedef struct {
1: + uid_t val;
1: +} kuid_t;
1: +
1: +struct seccomp_filter;
1: +
1: +struct seccomp {
1: + int mode;
1: + atomic_t filter_count;
1: + struct seccomp_filter *filter;
1: +};
1: +
1: +struct wake_q_node {
1: + struct wake_q_node *next;
1: +};
1: +
1: +struct task_io_accounting {
1: + u64 rchar;
1: + u64 wchar;
1: + u64 syscr;
1: + u64 syscw;
1: + u64 read_bytes;
1: + u64 write_bytes;
1: + u64 cancelled_write_bytes;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int bits[4];
1: +} nodemask_t;
1: +
1: +struct seqcount {
1: + unsigned int sequence;
1: +};
1: +
1: +typedef struct seqcount seqcount_t;
1: +
1: +struct seqcount_spinlock {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_spinlock seqcount_spinlock_t;
1: +
1: +typedef atomic64_t atomic_long_t;
1: +
1: +struct optimistic_spin_queue {
1: + atomic_t tail;
1: +};
1: +
1: +struct mutex {
1: + atomic_long_t owner;
1: + spinlock_t wait_lock;
1: + struct optimistic_spin_queue osq;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct tlbflush_unmap_batch {};
1: +
1: +struct page_frag {
1: + struct page *page;
1: + __u32 offset;
1: + __u32 size;
1: +};
1: +
1: +struct latency_record {
1: + long unsigned int backtrace[12];
1: + unsigned int count;
1: + long unsigned int time;
1: + long unsigned int max;
1: +};
1: +
1: +struct debug_reg {};
1: +
1: +struct thread_fp_state {
1: + u64 fpr[64];
1: + u64 fpscr;
1: + long: 64;
1: +};
1: +
1: +struct arch_hw_breakpoint {
1: + long unsigned int address;
1: + u16 type;
1: + u16 len;
1: + u16 hw_len;
1: + u8 flags;
1: +};
1: +
1: +struct thread_vr_state {
1: + vector128 vr[32];
1: + vector128 vscr;
1: +};
1: +
1: +struct perf_event;
1: +
1: +struct thread_struct {
1: + long unsigned int ksp;
1: + long unsigned int ksp_vsid;
1: + struct pt_regs *regs;
1: + struct debug_reg debug;
1: + long: 64;
1: + struct thread_fp_state fp_state;
1: + struct thread_fp_state *fp_save_area;
1: + int fpexc_mode;
1: + unsigned int align_ctl;
1: + struct perf_event *ptrace_bps[2];
1: + struct perf_event *last_hit_ubp[2];
1: + struct arch_hw_breakpoint hw_brk[2];
1: + long unsigned int trap_nr;
1: + u8 load_slb;
1: + u8 load_fp;
1: + u8 load_vec;
1: + long: 40;
1: + struct thread_vr_state vr_state;
1: + struct thread_vr_state *vr_save_area;
1: + long unsigned int vrsave;
1: + int used_vr;
1: + int used_vsr;
1: + u8 load_tm;
1: + u64 tm_tfhar;
1: + u64 tm_texasr;
1: + u64 tm_tfiar;
1: + struct pt_regs ckpt_regs;
1: + long unsigned int tm_tar;
1: + long unsigned int tm_ppr;
1: + long unsigned int tm_dscr;
1: + long unsigned int tm_amr;
1: + long: 64;
1: + struct thread_fp_state ckfp_state;
1: + struct thread_vr_state ckvr_state;
1: + long unsigned int ckvrsave;
1: + long unsigned int amr;
1: + long unsigned int iamr;
1: + long unsigned int dscr;
1: + long unsigned int fscr;
1: + int dscr_inherit;
1: + long unsigned int tidr;
1: + long unsigned int tar;
1: + long unsigned int ebbrr;
1: + long unsigned int ebbhr;
1: + long unsigned int bescr;
1: + long unsigned int siar;
1: + long unsigned int sdar;
1: + long unsigned int sier;
1: + long unsigned int mmcr2;
1: + unsigned int mmcr0;
1: + unsigned int used_ebb;
1: + long unsigned int mmcr3;
1: + long unsigned int sier2;
1: + long unsigned int sier3;
1: + long: 64;
1: +};
1: +
1: +struct sched_class;
1: +
1: +struct task_group;
1: +
1: +struct pid;
1: +
1: +struct completion;
1: +
1: +struct cred;
1: +
1: +struct key;
1: +
1: +struct nameidata;
1: +
1: +struct fs_struct;
1: +
1: +struct files_struct;
1: +
1: +struct io_uring_task;
1: +
1: +struct nsproxy;
1: +
1: +struct signal_struct;
1: +
1: +struct sighand_struct;
1: +
1: +struct audit_context;
1: +
1: +struct rt_mutex_waiter;
1: +
1: +struct bio_list;
1: +
1: +struct blk_plug;
1: +
1: +struct reclaim_state;
1: +
1: +struct backing_dev_info;
1: +
1: +struct io_context;
1: +
1: +struct capture_control;
1: +
1: +struct kernel_siginfo;
1: +
1: +typedef struct kernel_siginfo kernel_siginfo_t;
1: +
1: +struct css_set;
1: +
1: +struct robust_list_head;
1: +
1: +struct compat_robust_list_head;
1: +
1: +struct futex_pi_state;
1: +
1: +struct perf_event_context;
1: +
1: +struct mempolicy;
1: +
1: +struct numa_group;
1: +
1: +struct rseq;
1: +
1: +struct task_delay_info;
1: +
1: +struct ftrace_ret_stack;
1: +
1: +struct request_queue;
1: +
1: +struct uprobe_task;
1: +
1: +struct task_struct {
1: + struct thread_info thread_info;
1: + volatile long int state;
1: + void *stack;
1: + refcount_t usage;
1: + unsigned int flags;
1: + unsigned int ptrace;
1: + int on_cpu;
1: + struct __call_single_node wake_entry;
1: + unsigned int cpu;
1: + unsigned int wakee_flips;
1: + long unsigned int wakee_flip_decay_ts;
1: + struct task_struct *last_wakee;
1: + int recent_used_cpu;
1: + int wake_cpu;
1: + int on_rq;
1: + int prio;
1: + int static_prio;
1: + int normal_prio;
1: + unsigned int rt_priority;
1: + const struct sched_class *sched_class;
1: + long: 64;
1: + long: 64;
1: + struct sched_entity se;
1: + struct sched_rt_entity rt;
1: + struct task_group *sched_task_group;
1: + struct sched_dl_entity dl;
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: + struct hlist_head preempt_notifiers;
1: + unsigned int btrace_seq;
1: + unsigned int policy;
1: + int nr_cpus_allowed;
1: + const cpumask_t *cpus_ptr;
1: + cpumask_t cpus_mask;
1: + long unsigned int rcu_tasks_nvcsw;
1: + u8 rcu_tasks_holdout;
1: + u8 rcu_tasks_idx;
1: + int rcu_tasks_idle_cpu;
1: + struct list_head rcu_tasks_holdout_list;
1: + int trc_reader_nesting;
1: + int trc_ipi_to_cpu;
1: + union rcu_special trc_reader_special;
1: + bool trc_reader_checked;
1: + struct list_head trc_holdout_list;
1: + struct sched_info sched_info;
1: + struct list_head tasks;
1: + struct plist_node pushable_tasks;
1: + struct rb_node pushable_dl_tasks;
1: + struct mm_struct *mm;
1: + struct mm_struct *active_mm;
1: + struct vmacache vmacache;
1: + struct task_rss_stat rss_stat;
1: + int exit_state;
1: + int exit_code;
1: + int exit_signal;
1: + int pdeath_signal;
1: + long unsigned int jobctl;
1: + unsigned int personality;
1: + unsigned int sched_reset_on_fork: 1;
1: + unsigned int sched_contributes_to_load: 1;
1: + unsigned int sched_migrated: 1;
1: + unsigned int sched_psi_wake_requeue: 1;
1: + int: 28;
1: + unsigned int sched_remote_wakeup: 1;
1: + unsigned int in_execve: 1;
1: + unsigned int in_iowait: 1;
1: + unsigned int restore_sigmask: 1;
1: + unsigned int in_user_fault: 1;
1: + unsigned int no_cgroup_migration: 1;
1: + unsigned int frozen: 1;
1: + unsigned int use_memdelay: 1;
1: + unsigned int in_memstall: 1;
1: + long unsigned int atomic_flags;
1: + struct restart_block restart_block;
1: + pid_t pid;
1: + pid_t tgid;
1: + long unsigned int stack_canary;
1: + struct task_struct *real_parent;
1: + struct task_struct *parent;
1: + struct list_head children;
1: + struct list_head sibling;
1: + struct task_struct *group_leader;
1: + struct list_head ptraced;
1: + struct list_head ptrace_entry;
1: + struct pid *thread_pid;
1: + struct hlist_node pid_links[4];
1: + struct list_head thread_group;
1: + struct list_head thread_node;
1: + struct completion *vfork_done;
1: + int *set_child_tid;
1: + int *clear_child_tid;
1: + u64 utime;
1: + u64 stime;
1: + u64 utimescaled;
1: + u64 stimescaled;
1: + u64 gtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + u64 start_time;
1: + u64 start_boottime;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + struct posix_cputimers posix_cputimers;
1: + const struct cred *ptracer_cred;
1: + const struct cred *real_cred;
1: + const struct cred *cred;
1: + struct key *cached_requested_key;
1: + char comm[16];
1: + struct nameidata *nameidata;
1: + struct sysv_sem sysvsem;
1: + struct sysv_shm sysvshm;
1: + long unsigned int last_switch_count;
1: + long unsigned int last_switch_time;
1: + struct fs_struct *fs;
1: + struct files_struct *files;
1: + struct io_uring_task *io_uring;
1: + struct nsproxy *nsproxy;
1: + struct signal_struct *signal;
1: + struct sighand_struct *sighand;
1: + sigset_t blocked;
1: + sigset_t real_blocked;
1: + sigset_t saved_sigmask;
1: + struct sigpending pending;
1: + long unsigned int sas_ss_sp;
1: + size_t sas_ss_size;
1: + unsigned int sas_ss_flags;
1: + struct callback_head *task_works;
1: + struct audit_context *audit_context;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct seccomp seccomp;
1: + u64 parent_exec_id;
1: + u64 self_exec_id;
1: + spinlock_t alloc_lock;
1: + raw_spinlock_t pi_lock;
1: + struct wake_q_node wake_q;
1: + struct rb_root_cached pi_waiters;
1: + struct task_struct *pi_top_task;
1: + struct rt_mutex_waiter *pi_blocked_on;
1: + void *journal_info;
1: + struct bio_list *bio_list;
1: + struct blk_plug *plug;
1: + struct reclaim_state *reclaim_state;
1: + struct backing_dev_info *backing_dev_info;
1: + struct io_context *io_context;
1: + struct capture_control *capture_control;
1: + long unsigned int ptrace_message;
1: + kernel_siginfo_t *last_siginfo;
1: + struct task_io_accounting ioac;
1: + unsigned int psi_flags;
1: + u64 acct_rss_mem1;
1: + u64 acct_vm_mem1;
1: + u64 acct_timexpd;
1: + nodemask_t mems_allowed;
1: + seqcount_spinlock_t mems_allowed_seq;
1: + int cpuset_mem_spread_rotor;
1: + int cpuset_slab_spread_rotor;
1: + struct css_set *cgroups;
1: + struct list_head cg_list;
1: + struct robust_list_head *robust_list;
1: + struct compat_robust_list_head *compat_robust_list;
1: + struct list_head pi_state_list;
1: + struct futex_pi_state *pi_state_cache;
1: + struct mutex futex_exit_mutex;
1: + unsigned int futex_state;
1: + struct perf_event_context *perf_event_ctxp[2];
1: + struct mutex perf_event_mutex;
1: + struct list_head perf_event_list;
1: + struct mempolicy *mempolicy;
1: + short int il_prev;
1: + short int pref_node_fork;
1: + int numa_scan_seq;
1: + unsigned int numa_scan_period;
1: + unsigned int numa_scan_period_max;
1: + int numa_preferred_nid;
1: + long unsigned int numa_migrate_retry;
1: + u64 node_stamp;
1: + u64 last_task_numa_placement;
1: + u64 last_sum_exec_runtime;
1: + struct callback_head numa_work;
1: + struct numa_group *numa_group;
1: + long unsigned int *numa_faults;
1: + long unsigned int total_numa_faults;
1: + long unsigned int numa_faults_locality[3];
1: + long unsigned int numa_pages_migrated;
1: + struct rseq *rseq;
1: + u32 rseq_sig;
1: + long unsigned int rseq_event_mask;
1: + struct tlbflush_unmap_batch tlb_ubc;
1: + union {
1: + refcount_t rcu_users;
1: + struct callback_head rcu;
1: + };
1: + struct pipe_inode_info *splice_pipe;
1: + struct page_frag task_frag;
1: + struct task_delay_info *delays;
1: + int nr_dirtied;
1: + int nr_dirtied_pause;
1: + long unsigned int dirty_paused_when;
1: + int latency_record_count;
1: + struct latency_record latency_record[32];
1: + u64 timer_slack_ns;
1: + u64 default_timer_slack_ns;
1: + int curr_ret_stack;
1: + int curr_ret_depth;
1: + struct ftrace_ret_stack *ret_stack;
1: + long long unsigned int ftrace_timestamp;
1: + atomic_t trace_overrun;
1: + atomic_t tracing_graph_pause;
1: + long unsigned int trace;
1: + long unsigned int trace_recursion;
1: + struct mem_cgroup *memcg_in_oom;
1: + gfp_t memcg_oom_gfp_mask;
1: + int memcg_oom_order;
1: + unsigned int memcg_nr_pages_over_high;
1: + struct mem_cgroup *active_memcg;
1: + struct request_queue *throttle_queue;
1: + struct uprobe_task *utask;
1: + unsigned int sequential_io;
1: + unsigned int sequential_io_avg;
1: + int pagefault_disabled;
1: + struct task_struct *oom_reaper_list;
1: + refcount_t stack_refcount;
1: + void *security;
1: + struct thread_struct thread;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef __be32 rtas_arg_t;
1: +
1: +struct rtas_args {
1: + __be32 token;
1: + __be32 nargs;
1: + __be32 nret;
1: + rtas_arg_t args[16];
1: + rtas_arg_t *rets;
1: +};
1: +
1: +typedef struct {
1: + __u8 b[16];
1: +} uuid_t;
1: +
1: +enum pcpu_fc {
1: + PCPU_FC_AUTO = 0,
1: + PCPU_FC_EMBED = 1,
1: + PCPU_FC_PAGE = 2,
1: + PCPU_FC_NR = 3,
1: +};
1: +
1: +struct wait_queue_head {
1: + spinlock_t lock;
1: + struct list_head head;
1: +};
1: +
1: +typedef struct wait_queue_head wait_queue_head_t;
1: +
1: +struct seqcount_raw_spinlock {
1: + seqcount_t seqcount;
1: +};
1: +
1: +typedef struct seqcount_raw_spinlock seqcount_raw_spinlock_t;
1: +
1: +typedef struct {
1: + seqcount_spinlock_t seqcount;
1: + spinlock_t lock;
1: +} seqlock_t;
1: +
1: +enum node_states {
1: + N_POSSIBLE = 0,
1: + N_ONLINE = 1,
1: + N_NORMAL_MEMORY = 2,
1: + N_HIGH_MEMORY = 2,
1: + N_MEMORY = 3,
1: + N_CPU = 4,
1: + N_GENERIC_INITIATOR = 5,
1: + NR_NODE_STATES = 6,
1: +};
1: +
1: +struct userfaultfd_ctx;
1: +
1: +struct vm_userfaultfd_ctx {
1: + struct userfaultfd_ctx *ctx;
1: +};
1: +
1: +struct anon_vma;
1: +
1: +struct vm_operations_struct;
1: +
1: +struct vm_area_struct {
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + struct vm_area_struct *vm_next;
1: + struct vm_area_struct *vm_prev;
1: + struct rb_node vm_rb;
1: + long unsigned int rb_subtree_gap;
1: + struct mm_struct *vm_mm;
1: + pgprot_t vm_page_prot;
1: + long unsigned int vm_flags;
1: + struct {
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: + } shared;
1: + struct list_head anon_vma_chain;
1: + struct anon_vma *anon_vma;
1: + const struct vm_operations_struct *vm_ops;
1: + long unsigned int vm_pgoff;
1: + struct file *vm_file;
1: + void *vm_private_data;
1: + atomic_long_t swap_readahead_info;
1: + struct mempolicy *vm_policy;
1: + struct vm_userfaultfd_ctx vm_userfaultfd_ctx;
1: +};
1: +
1: +enum {
1: + MM_FILEPAGES = 0,
1: + MM_ANONPAGES = 1,
1: + MM_SWAPENTS = 2,
1: + MM_SHMEMPAGES = 3,
1: + NR_MM_COUNTERS = 4,
1: +};
1: +
1: +struct mm_rss_stat {
1: + atomic_long_t count[4];
1: +};
1: +
1: +struct rw_semaphore {
1: + atomic_long_t count;
1: + atomic_long_t owner;
1: + struct optimistic_spin_queue osq;
1: + raw_spinlock_t wait_lock;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct swait_queue_head {
1: + raw_spinlock_t lock;
1: + struct list_head task_list;
1: +};
1: +
1: +struct completion {
1: + unsigned int done;
1: + struct swait_queue_head wait;
1: +};
1: +
1: +struct xol_area;
1: +
1: +struct uprobes_state {
1: + struct xol_area *xol_area;
1: +};
1: +
1: +struct work_struct;
1: +
1: +typedef void (*work_func_t)(struct work_struct *);
1: +
1: +struct work_struct {
1: + atomic_long_t data;
1: + struct list_head entry;
1: + work_func_t func;
1: +};
1: +
1: +struct linux_binfmt;
1: +
1: +struct core_state;
1: +
1: +struct kioctx_table;
1: +
1: +struct user_namespace;
1: +
1: +struct mmu_notifier_subscriptions;
1: +
1: +struct mm_struct {
1: + struct {
1: + struct vm_area_struct *mmap;
1: + struct rb_root mm_rb;
1: + u64 vmacache_seqnum;
1: + long unsigned int (*get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_legacy_base;
1: + long unsigned int task_size;
1: + long unsigned int highest_vm_end;
1: + pgd_t *pgd;
1: + atomic_t membarrier_state;
1: + atomic_t mm_users;
1: + atomic_t mm_count;
1: + atomic_t has_pinned;
1: + seqcount_t write_protect_seq;
1: + atomic_long_t pgtables_bytes;
1: + int map_count;
1: + spinlock_t page_table_lock;
1: + struct rw_semaphore mmap_lock;
1: + struct list_head mmlist;
1: + long unsigned int hiwater_rss;
1: + long unsigned int hiwater_vm;
1: + long unsigned int total_vm;
1: + long unsigned int locked_vm;
1: + atomic64_t pinned_vm;
1: + long unsigned int data_vm;
1: + long unsigned int exec_vm;
1: + long unsigned int stack_vm;
1: + long unsigned int def_flags;
1: + spinlock_t arg_lock;
1: + long unsigned int start_code;
1: + long unsigned int end_code;
1: + long unsigned int start_data;
1: + long unsigned int end_data;
1: + long unsigned int start_brk;
1: + long unsigned int brk;
1: + long unsigned int start_stack;
1: + long unsigned int arg_start;
1: + long unsigned int arg_end;
1: + long unsigned int env_start;
1: + long unsigned int env_end;
1: + long unsigned int saved_auxv[70];
1: + struct mm_rss_stat rss_stat;
1: + struct linux_binfmt *binfmt;
1: + mm_context_t context;
1: + long unsigned int flags;
1: + struct core_state *core_state;
1: + spinlock_t ioctx_lock;
1: + struct kioctx_table *ioctx_table;
1: + struct task_struct *owner;
1: + struct user_namespace *user_ns;
1: + struct file *exe_file;
1: + struct mmu_notifier_subscriptions *notifier_subscriptions;
1: + long unsigned int numa_next_scan;
1: + long unsigned int numa_scan_offset;
1: + int numa_scan_seq;
1: + atomic_t tlb_flush_pending;
1: + struct uprobes_state uprobes_state;
1: + atomic_long_t hugetlb_usage;
1: + struct work_struct async_put_work;
1: + u32 pasid;
1: + };
1: + long unsigned int cpu_bitmap[0];
1: +};
1: +
1: +struct arch_uprobe_task {
1: + long unsigned int saved_trap_nr;
1: +};
1: +
1: +enum uprobe_task_state {
1: + UTASK_RUNNING = 0,
1: + UTASK_SSTEP = 1,
1: + UTASK_SSTEP_ACK = 2,
1: + UTASK_SSTEP_TRAPPED = 3,
1: +};
1: +
1: +struct uprobe;
1: +
1: +struct return_instance;
1: +
1: +struct uprobe_task {
1: + enum uprobe_task_state state;
1: + union {
1: + struct {
1: + struct arch_uprobe_task autask;
1: + long unsigned int vaddr;
1: + };
1: + struct {
1: + struct callback_head dup_xol_work;
1: + long unsigned int dup_xol_addr;
1: + };
1: + };
1: + struct uprobe *active_uprobe;
1: + long unsigned int xol_vaddr;
1: + struct return_instance *return_instances;
1: + unsigned int depth;
1: +};
1: +
1: +struct return_instance {
1: + struct uprobe *uprobe;
1: + long unsigned int func;
1: + long unsigned int stack;
1: + long unsigned int orig_ret_vaddr;
1: + bool chained;
1: + struct return_instance *next;
1: +};
1: +
1: +struct xarray {
1: + spinlock_t xa_lock;
1: + gfp_t xa_flags;
1: + void *xa_head;
1: +};
1: +
1: +typedef u32 errseq_t;
1: +
1: +struct address_space_operations;
1: +
1: +struct address_space {
1: + struct inode *host;
1: + struct xarray i_pages;
1: + gfp_t gfp_mask;
1: + atomic_t i_mmap_writable;
1: + atomic_t nr_thps;
1: + struct rb_root_cached i_mmap;
1: + struct rw_semaphore i_mmap_rwsem;
1: + long unsigned int nrpages;
1: + long unsigned int nrexceptional;
1: + long unsigned int writeback_index;
1: + const struct address_space_operations *a_ops;
1: + long unsigned int flags;
1: + errseq_t wb_err;
1: + spinlock_t private_lock;
1: + struct list_head private_list;
1: + void *private_data;
1: +};
1: +
1: +struct vmem_altmap {
1: + const long unsigned int base_pfn;
1: + const long unsigned int end_pfn;
1: + const long unsigned int reserve;
1: + long unsigned int free;
1: + long unsigned int align;
1: + long unsigned int alloc;
1: +};
1: +
1: +struct percpu_ref_data;
1: +
1: +struct percpu_ref {
1: + long unsigned int percpu_count_ptr;
1: + struct percpu_ref_data *data;
1: +};
1: +
1: +enum memory_type {
1: + MEMORY_DEVICE_PRIVATE = 1,
1: + MEMORY_DEVICE_FS_DAX = 2,
1: + MEMORY_DEVICE_GENERIC = 3,
1: + MEMORY_DEVICE_PCI_P2PDMA = 4,
1: +};
1: +
1: +struct range {
1: + u64 start;
1: + u64 end;
1: +};
1: +
1: +struct dev_pagemap_ops;
1: +
1: +struct dev_pagemap {
1: + struct vmem_altmap altmap;
1: + struct percpu_ref *ref;
1: + struct percpu_ref internal_ref;
1: + struct completion done;
1: + enum memory_type type;
1: + unsigned int flags;
1: + const struct dev_pagemap_ops *ops;
1: + void *owner;
1: + int nr_range;
1: + union {
1: + struct range range;
1: + struct range ranges[0];
1: + };
1: +};
1: +
1: +struct vfsmount;
1: +
1: +struct path {
1: + struct vfsmount *mnt;
1: + struct dentry *dentry;
1: +};
1: +
1: +enum rw_hint {
1: + WRITE_LIFE_NOT_SET = 0,
1: + WRITE_LIFE_NONE = 1,
1: + WRITE_LIFE_SHORT = 2,
1: + WRITE_LIFE_MEDIUM = 3,
1: + WRITE_LIFE_LONG = 4,
1: + WRITE_LIFE_EXTREME = 5,
1: +};
1: +
1: +enum pid_type {
1: + PIDTYPE_PID = 0,
1: + PIDTYPE_TGID = 1,
1: + PIDTYPE_PGID = 2,
1: + PIDTYPE_SID = 3,
1: + PIDTYPE_MAX = 4,
1: +};
1: +
1: +struct fown_struct {
1: + rwlock_t lock;
1: + struct pid *pid;
1: + enum pid_type pid_type;
1: + kuid_t uid;
1: + kuid_t euid;
1: + int signum;
1: +};
1: +
1: +struct file_ra_state {
1: + long unsigned int start;
1: + unsigned int size;
1: + unsigned int async_size;
1: + unsigned int ra_pages;
1: + unsigned int mmap_miss;
1: + loff_t prev_pos;
1: +};
1: +
1: +struct file {
1: + union {
1: + struct llist_node fu_llist;
1: + struct callback_head fu_rcuhead;
1: + } f_u;
1: + struct path f_path;
1: + struct inode *f_inode;
1: + const struct file_operations *f_op;
1: + spinlock_t f_lock;
1: + enum rw_hint f_write_hint;
1: + atomic_long_t f_count;
1: + unsigned int f_flags;
1: + fmode_t f_mode;
1: + struct mutex f_pos_lock;
1: + loff_t f_pos;
1: + struct fown_struct f_owner;
1: + const struct cred *f_cred;
1: + struct file_ra_state f_ra;
1: + u64 f_version;
1: + void *f_security;
1: + void *private_data;
1: + struct list_head f_ep_links;
1: + struct list_head f_tfile_llink;
1: + struct address_space *f_mapping;
1: + errseq_t f_wb_err;
1: + errseq_t f_sb_err;
1: +};
1: +
1: +typedef unsigned int vm_fault_t;
1: +
1: +enum page_entry_size {
1: + PE_SIZE_PTE = 0,
1: + PE_SIZE_PMD = 1,
1: + PE_SIZE_PUD = 2,
1: +};
1: +
1: +struct vm_fault;
1: +
1: +struct vm_operations_struct {
1: + void (*open)(struct vm_area_struct *);
1: + void (*close)(struct vm_area_struct *);
1: + int (*split)(struct vm_area_struct *, long unsigned int);
1: + int (*mremap)(struct vm_area_struct *);
1: + vm_fault_t (*fault)(struct vm_fault *);
1: + vm_fault_t (*huge_fault)(struct vm_fault *, enum page_entry_size);
1: + void (*map_pages)(struct vm_fault *, long unsigned int, long unsigned int);
1: + long unsigned int (*pagesize)(struct vm_area_struct *);
1: + vm_fault_t (*page_mkwrite)(struct vm_fault *);
1: + vm_fault_t (*pfn_mkwrite)(struct vm_fault *);
1: + int (*access)(struct vm_area_struct *, long unsigned int, void *, int, int);
1: + const char * (*name)(struct vm_area_struct *);
1: + int (*set_policy)(struct vm_area_struct *, struct mempolicy *);
1: + struct mempolicy * (*get_policy)(struct vm_area_struct *, long unsigned int);
1: + struct page * (*find_special_page)(struct vm_area_struct *, long unsigned int);
1: +};
1: +
1: +struct core_thread {
1: + struct task_struct *task;
1: + struct core_thread *next;
1: +};
1: +
1: +struct core_state {
1: + atomic_t nr_threads;
1: + struct core_thread dumper;
1: + struct completion startup;
1: +};
1: +
1: +struct vm_fault {
1: + struct vm_area_struct *vma;
1: + unsigned int flags;
1: + gfp_t gfp_mask;
1: + long unsigned int pgoff;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pud_t *pud;
1: + pte_t orig_pte;
1: + struct page *cow_page;
1: + struct page *page;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + pgtable_t prealloc_pte;
1: +};
1: +
1: +enum migratetype {
1: + MIGRATE_UNMOVABLE = 0,
1: + MIGRATE_MOVABLE = 1,
1: + MIGRATE_RECLAIMABLE = 2,
1: + MIGRATE_PCPTYPES = 3,
1: + MIGRATE_HIGHATOMIC = 3,
1: + MIGRATE_CMA = 4,
1: + MIGRATE_ISOLATE = 5,
1: + MIGRATE_TYPES = 6,
1: +};
1: +
1: +enum numa_stat_item {
1: + NUMA_HIT = 0,
1: + NUMA_MISS = 1,
1: + NUMA_FOREIGN = 2,
1: + NUMA_INTERLEAVE_HIT = 3,
1: + NUMA_LOCAL = 4,
1: + NUMA_OTHER = 5,
1: + NR_VM_NUMA_STAT_ITEMS = 6,
1: +};
1: +
1: +enum zone_stat_item {
1: + NR_FREE_PAGES = 0,
1: + NR_ZONE_LRU_BASE = 1,
1: + NR_ZONE_INACTIVE_ANON = 1,
1: + NR_ZONE_ACTIVE_ANON = 2,
1: + NR_ZONE_INACTIVE_FILE = 3,
1: + NR_ZONE_ACTIVE_FILE = 4,
1: + NR_ZONE_UNEVICTABLE = 5,
1: + NR_ZONE_WRITE_PENDING = 6,
1: + NR_MLOCK = 7,
1: + NR_PAGETABLE = 8,
1: + NR_BOUNCE = 9,
1: + NR_ZSPAGES = 10,
1: + NR_FREE_CMA_PAGES = 11,
1: + NR_VM_ZONE_STAT_ITEMS = 12,
1: +};
1: +
1: +enum node_stat_item {
1: + NR_LRU_BASE = 0,
1: + NR_INACTIVE_ANON = 0,
1: + NR_ACTIVE_ANON = 1,
1: + NR_INACTIVE_FILE = 2,
1: + NR_ACTIVE_FILE = 3,
1: + NR_UNEVICTABLE = 4,
1: + NR_SLAB_RECLAIMABLE_B = 5,
1: + NR_SLAB_UNRECLAIMABLE_B = 6,
1: + NR_ISOLATED_ANON = 7,
1: + NR_ISOLATED_FILE = 8,
1: + WORKINGSET_NODES = 9,
1: + WORKINGSET_REFAULT_BASE = 10,
1: + WORKINGSET_REFAULT_ANON = 10,
1: + WORKINGSET_REFAULT_FILE = 11,
1: + WORKINGSET_ACTIVATE_BASE = 12,
1: + WORKINGSET_ACTIVATE_ANON = 12,
1: + WORKINGSET_ACTIVATE_FILE = 13,
1: + WORKINGSET_RESTORE_BASE = 14,
1: + WORKINGSET_RESTORE_ANON = 14,
1: + WORKINGSET_RESTORE_FILE = 15,
1: + WORKINGSET_NODERECLAIM = 16,
1: + NR_ANON_MAPPED = 17,
1: + NR_FILE_MAPPED = 18,
1: + NR_FILE_PAGES = 19,
1: + NR_FILE_DIRTY = 20,
1: + NR_WRITEBACK = 21,
1: + NR_WRITEBACK_TEMP = 22,
1: + NR_SHMEM = 23,
1: + NR_SHMEM_THPS = 24,
1: + NR_SHMEM_PMDMAPPED = 25,
1: + NR_FILE_THPS = 26,
1: + NR_FILE_PMDMAPPED = 27,
1: + NR_ANON_THPS = 28,
1: + NR_VMSCAN_WRITE = 29,
1: + NR_VMSCAN_IMMEDIATE = 30,
1: + NR_DIRTIED = 31,
1: + NR_WRITTEN = 32,
1: + NR_KERNEL_MISC_RECLAIMABLE = 33,
1: + NR_FOLL_PIN_ACQUIRED = 34,
1: + NR_FOLL_PIN_RELEASED = 35,
1: + NR_KERNEL_STACK_KB = 36,
1: + NR_VM_NODE_STAT_ITEMS = 37,
1: +};
1: +
1: +enum lru_list {
1: + LRU_INACTIVE_ANON = 0,
1: + LRU_ACTIVE_ANON = 1,
1: + LRU_INACTIVE_FILE = 2,
1: + LRU_ACTIVE_FILE = 3,
1: + LRU_UNEVICTABLE = 4,
1: + NR_LRU_LISTS = 5,
1: +};
1: +
1: +typedef unsigned int isolate_mode_t;
1: +
1: +enum zone_watermarks {
1: + WMARK_MIN = 0,
1: + WMARK_LOW = 1,
1: + WMARK_HIGH = 2,
1: + NR_WMARK = 3,
1: +};
1: +
1: +enum {
1: + ZONELIST_FALLBACK = 0,
1: + ZONELIST_NOFALLBACK = 1,
1: + MAX_ZONELISTS = 2,
1: +};
1: +
1: +typedef struct {
1: + gid_t val;
1: +} kgid_t;
1: +
1: +struct seq_operations;
1: +
1: +struct seq_file {
1: + char *buf;
1: + size_t size;
1: + size_t from;
1: + size_t count;
1: + size_t pad_until;
1: + loff_t index;
1: + loff_t read_pos;
1: + struct mutex lock;
1: + const struct seq_operations *op;
1: + int poll_event;
1: + const struct file *file;
1: + void *private;
1: +};
1: +
1: +struct kstat {
1: + u32 result_mask;
1: + umode_t mode;
1: + unsigned int nlink;
1: + uint32_t blksize;
1: + u64 attributes;
1: + u64 attributes_mask;
1: + u64 ino;
1: + dev_t dev;
1: + dev_t rdev;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct timespec64 atime;
1: + struct timespec64 mtime;
1: + struct timespec64 ctime;
1: + struct timespec64 btime;
1: + u64 blocks;
1: + u64 mnt_id;
1: +};
1: +
1: +struct pid_namespace;
1: +
1: +struct upid {
1: + int nr;
1: + struct pid_namespace *ns;
1: +};
1: +
1: +struct pid {
1: + refcount_t count;
1: + unsigned int level;
1: + spinlock_t lock;
1: + struct hlist_head tasks[4];
1: + struct hlist_head inodes;
1: + wait_queue_head_t wait_pidfd;
1: + struct callback_head rcu;
1: + struct upid numbers[1];
1: +};
1: +
1: +struct hrtimer_cpu_base;
1: +
1: +struct hrtimer_clock_base {
1: + struct hrtimer_cpu_base *cpu_base;
1: + unsigned int index;
1: + clockid_t clockid;
1: + seqcount_raw_spinlock_t seq;
1: + struct hrtimer *running;
1: + struct timerqueue_head active;
1: + ktime_t (*get_time)();
1: + ktime_t offset;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct hrtimer_cpu_base {
1: + raw_spinlock_t lock;
1: + unsigned int cpu;
1: + unsigned int active_bases;
1: + unsigned int clock_was_set_seq;
1: + unsigned int hres_active: 1;
1: + unsigned int in_hrtirq: 1;
1: + unsigned int hang_detected: 1;
1: + unsigned int softirq_activated: 1;
1: + unsigned int nr_events;
1: + short unsigned int nr_retries;
1: + short unsigned int nr_hangs;
1: + unsigned int max_hang_time;
1: + ktime_t expires_next;
1: + struct hrtimer *next_timer;
1: + ktime_t softirq_expires_next;
1: + struct hrtimer *softirq_next_timer;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct hrtimer_clock_base clock_base[8];
1: +};
1: +
1: +enum hrtimer_base_type {
1: + HRTIMER_BASE_MONOTONIC = 0,
1: + HRTIMER_BASE_REALTIME = 1,
1: + HRTIMER_BASE_BOOTTIME = 2,
1: + HRTIMER_BASE_TAI = 3,
1: + HRTIMER_BASE_MONOTONIC_SOFT = 4,
1: + HRTIMER_BASE_REALTIME_SOFT = 5,
1: + HRTIMER_BASE_BOOTTIME_SOFT = 6,
1: + HRTIMER_BASE_TAI_SOFT = 7,
1: + HRTIMER_MAX_CLOCK_BASES = 8,
1: +};
1: +
1: +struct rlimit {
1: + __kernel_ulong_t rlim_cur;
1: + __kernel_ulong_t rlim_max;
1: +};
1: +
1: +typedef void __signalfn_t(int);
1: +
1: +typedef __signalfn_t *__sighandler_t;
1: +
1: +typedef void __restorefn_t();
1: +
1: +typedef __restorefn_t *__sigrestore_t;
1: +
1: +union sigval {
1: + int sival_int;
1: + void *sival_ptr;
1: +};
1: +
1: +typedef union sigval sigval_t;
1: +
1: +union __sifields {
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + __kernel_timer_t _tid;
1: + int _overrun;
1: + sigval_t _sigval;
1: + int _sys_private;
1: + } _timer;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + __kernel_pid_t _pid;
1: + __kernel_uid32_t _uid;
1: + int _status;
1: + __kernel_clock_t _utime;
1: + __kernel_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + void *_addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[8];
1: + void *_lower;
1: + void *_upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[8];
1: + __u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + long int _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + void *_call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: +};
1: +
1: +struct kernel_siginfo {
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: +};
1: +
1: +struct user_struct {
1: + refcount_t __count;
1: + atomic_t processes;
1: + atomic_t sigpending;
1: + atomic_t fanotify_listeners;
1: + atomic_long_t epoll_watches;
1: + long unsigned int mq_bytes;
1: + long unsigned int locked_shm;
1: + long unsigned int unix_inflight;
1: + atomic_long_t pipe_bufs;
1: + struct hlist_node uidhash_node;
1: + kuid_t uid;
1: + atomic_long_t locked_vm;
1: + atomic_t nr_watches;
1: + struct ratelimit_state ratelimit;
1: +};
1: +
1: +struct sigaction {
1: + __sighandler_t sa_handler;
1: + long unsigned int sa_flags;
1: + __sigrestore_t sa_restorer;
1: + sigset_t sa_mask;
1: +};
1: +
1: +struct k_sigaction {
1: + struct sigaction sa;
1: +};
1: +
1: +struct cpu_itimer {
1: + u64 expires;
1: + u64 incr;
1: +};
1: +
1: +struct task_cputime_atomic {
1: + atomic64_t utime;
1: + atomic64_t stime;
1: + atomic64_t sum_exec_runtime;
1: +};
1: +
1: +struct thread_group_cputimer {
1: + struct task_cputime_atomic cputime_atomic;
1: +};
1: +
1: +struct pacct_struct {
1: + int ac_flag;
1: + long int ac_exitcode;
1: + long unsigned int ac_mem;
1: + u64 ac_utime;
1: + u64 ac_stime;
1: + long unsigned int ac_minflt;
1: + long unsigned int ac_majflt;
1: +};
1: +
1: +struct tty_struct;
1: +
1: +struct autogroup;
1: +
1: +struct taskstats;
1: +
1: +struct tty_audit_buf;
1: +
1: +struct signal_struct {
1: + refcount_t sigcnt;
1: + atomic_t live;
1: + int nr_threads;
1: + struct list_head thread_head;
1: + wait_queue_head_t wait_chldexit;
1: + struct task_struct *curr_target;
1: + struct sigpending shared_pending;
1: + struct hlist_head multiprocess;
1: + int group_exit_code;
1: + int notify_count;
1: + struct task_struct *group_exit_task;
1: + int group_stop_count;
1: + unsigned int flags;
1: + unsigned int is_child_subreaper: 1;
1: + unsigned int has_child_subreaper: 1;
1: + int posix_timer_id;
1: + struct list_head posix_timers;
1: + struct hrtimer real_timer;
1: + ktime_t it_real_incr;
1: + struct cpu_itimer it[2];
1: + struct thread_group_cputimer cputimer;
1: + struct posix_cputimers posix_cputimers;
1: + struct pid *pids[4];
1: + struct pid *tty_old_pgrp;
1: + int leader;
1: + struct tty_struct *tty;
1: + struct autogroup *autogroup;
1: + seqlock_t stats_lock;
1: + u64 utime;
1: + u64 stime;
1: + u64 cutime;
1: + u64 cstime;
1: + u64 gtime;
1: + u64 cgtime;
1: + struct prev_cputime prev_cputime;
1: + long unsigned int nvcsw;
1: + long unsigned int nivcsw;
1: + long unsigned int cnvcsw;
1: + long unsigned int cnivcsw;
1: + long unsigned int min_flt;
1: + long unsigned int maj_flt;
1: + long unsigned int cmin_flt;
1: + long unsigned int cmaj_flt;
1: + long unsigned int inblock;
1: + long unsigned int oublock;
1: + long unsigned int cinblock;
1: + long unsigned int coublock;
1: + long unsigned int maxrss;
1: + long unsigned int cmaxrss;
1: + struct task_io_accounting ioac;
1: + long long unsigned int sum_sched_runtime;
1: + struct rlimit rlim[16];
1: + struct pacct_struct pacct;
1: + struct taskstats *stats;
1: + unsigned int audit_tty;
1: + struct tty_audit_buf *tty_audit_buf;
1: + bool oom_flag_origin;
1: + short int oom_score_adj;
1: + short int oom_score_adj_min;
1: + struct mm_struct *oom_mm;
1: + struct mutex cred_guard_mutex;
1: + struct rw_semaphore exec_update_lock;
1: +};
1: +
1: +enum rseq_cs_flags_bit {
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT_BIT = 0,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL_BIT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE_BIT = 2,
1: +};
1: +
1: +struct rseq {
1: + __u32 cpu_id_start;
1: + __u32 cpu_id;
1: + union {
1: + __u64 ptr64;
1: + __u64 ptr;
1: + } rseq_cs;
1: + __u32 flags;
1: + long: 32;
1: + long: 64;
1: +};
1: +
1: +enum uclamp_id {
1: + UCLAMP_MIN = 0,
1: + UCLAMP_MAX = 1,
1: + UCLAMP_CNT = 2,
1: +};
1: +
1: +enum perf_event_task_context {
1: + perf_invalid_context = 4294967295,
1: + perf_hw_context = 0,
1: + perf_sw_context = 1,
1: + perf_nr_task_contexts = 2,
1: +};
1: +
1: +struct rq;
1: +
1: +struct rq_flags;
1: +
1: +struct sched_class {
1: + int uclamp_enabled;
1: + void (*enqueue_task)(struct rq *, struct task_struct *, int);
1: + void (*dequeue_task)(struct rq *, struct task_struct *, int);
1: + void (*yield_task)(struct rq *);
1: + bool (*yield_to_task)(struct rq *, struct task_struct *);
1: + void (*check_preempt_curr)(struct rq *, struct task_struct *, int);
1: + struct task_struct * (*pick_next_task)(struct rq *);
1: + void (*put_prev_task)(struct rq *, struct task_struct *);
1: + void (*set_next_task)(struct rq *, struct task_struct *, bool);
1: + int (*balance)(struct rq *, struct task_struct *, struct rq_flags *);
1: + int (*select_task_rq)(struct task_struct *, int, int, int);
1: + void (*migrate_task_rq)(struct task_struct *, int);
1: + void (*task_woken)(struct rq *, struct task_struct *);
1: + void (*set_cpus_allowed)(struct task_struct *, const struct cpumask *);
1: + void (*rq_online)(struct rq *);
1: + void (*rq_offline)(struct rq *);
1: + void (*task_tick)(struct rq *, struct task_struct *, int);
1: + void (*task_fork)(struct task_struct *);
1: + void (*task_dead)(struct task_struct *);
1: + void (*switched_from)(struct rq *, struct task_struct *);
1: + void (*switched_to)(struct rq *, struct task_struct *);
1: + void (*prio_changed)(struct rq *, struct task_struct *, int);
1: + unsigned int (*get_rr_interval)(struct rq *, struct task_struct *);
1: + void (*update_curr)(struct rq *);
1: + void (*task_change_group)(struct task_struct *, int);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kernel_cap_struct {
1: + __u32 cap[2];
1: +};
1: +
1: +typedef struct kernel_cap_struct kernel_cap_t;
1: +
1: +struct group_info;
1: +
1: +struct cred {
1: + atomic_t usage;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t suid;
1: + kgid_t sgid;
1: + kuid_t euid;
1: + kgid_t egid;
1: + kuid_t fsuid;
1: + kgid_t fsgid;
1: + unsigned int securebits;
1: + kernel_cap_t cap_inheritable;
1: + kernel_cap_t cap_permitted;
1: + kernel_cap_t cap_effective;
1: + kernel_cap_t cap_bset;
1: + kernel_cap_t cap_ambient;
1: + unsigned char jit_keyring;
1: + struct key *session_keyring;
1: + struct key *process_keyring;
1: + struct key *thread_keyring;
1: + struct key *request_key_auth;
1: + void *security;
1: + struct user_struct *user;
1: + struct user_namespace *user_ns;
1: + struct group_info *group_info;
1: + union {
1: + int non_rcu;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +typedef int32_t key_serial_t;
1: +
1: +typedef uint32_t key_perm_t;
1: +
1: +struct key_type;
1: +
1: +struct key_tag;
1: +
1: +struct keyring_index_key {
1: + long unsigned int hash;
1: + union {
1: + struct {
1: + u16 desc_len;
1: + char desc[6];
1: + };
1: + long unsigned int x;
1: + };
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + const char *description;
1: +};
1: +
1: +union key_payload {
1: + void *rcu_data0;
1: + void *data[4];
1: +};
1: +
1: +struct assoc_array_ptr;
1: +
1: +struct assoc_array {
1: + struct assoc_array_ptr *root;
1: + long unsigned int nr_leaves_on_tree;
1: +};
1: +
1: +struct watch_list;
1: +
1: +struct key_user;
1: +
1: +struct key_restriction;
1: +
1: +struct key {
1: + refcount_t usage;
1: + key_serial_t serial;
1: + union {
1: + struct list_head graveyard_link;
1: + struct rb_node serial_node;
1: + };
1: + struct watch_list *watchers;
1: + struct rw_semaphore sem;
1: + struct key_user *user;
1: + void *security;
1: + union {
1: + time64_t expiry;
1: + time64_t revoked_at;
1: + };
1: + time64_t last_used_at;
1: + kuid_t uid;
1: + kgid_t gid;
1: + key_perm_t perm;
1: + short unsigned int quotalen;
1: + short unsigned int datalen;
1: + short int state;
1: + long unsigned int flags;
1: + union {
1: + struct keyring_index_key index_key;
1: + struct {
1: + long unsigned int hash;
1: + long unsigned int len_desc;
1: + struct key_type *type;
1: + struct key_tag *domain_tag;
1: + char *description;
1: + };
1: + };
1: + union {
1: + union key_payload payload;
1: + struct {
1: + struct list_head name_link;
1: + struct assoc_array keys;
1: + };
1: + };
1: + struct key_restriction *restrict_link;
1: +};
1: +
1: +struct sighand_struct {
1: + spinlock_t siglock;
1: + refcount_t count;
1: + wait_queue_head_t signalfd_wqh;
1: + struct k_sigaction action[64];
1: +};
1: +
1: +struct io_cq;
1: +
1: +struct io_context {
1: + atomic_long_t refcount;
1: + atomic_t active_ref;
1: + atomic_t nr_tasks;
1: + spinlock_t lock;
1: + short unsigned int ioprio;
1: + struct xarray icq_tree;
1: + struct io_cq *icq_hint;
1: + struct hlist_head icq_list;
1: + struct work_struct release_work;
1: +};
1: +
1: +enum rseq_event_mask_bits {
1: + RSEQ_EVENT_PREEMPT_BIT = 0,
1: + RSEQ_EVENT_SIGNAL_BIT = 1,
1: + RSEQ_EVENT_MIGRATE_BIT = 2,
1: +};
1: +
1: +enum cpu_idle_type {
1: + CPU_IDLE = 0,
1: + CPU_NOT_IDLE = 1,
1: + CPU_NEWLY_IDLE = 2,
1: + CPU_MAX_IDLE_TYPES = 3,
1: +};
1: +
1: +enum {
1: + __SD_BALANCE_NEWIDLE = 0,
1: + __SD_BALANCE_EXEC = 1,
1: + __SD_BALANCE_FORK = 2,
1: + __SD_BALANCE_WAKE = 3,
1: + __SD_WAKE_AFFINE = 4,
1: + __SD_ASYM_CPUCAPACITY = 5,
1: + __SD_SHARE_CPUCAPACITY = 6,
1: + __SD_SHARE_PKG_RESOURCES = 7,
1: + __SD_SERIALIZE = 8,
1: + __SD_ASYM_PACKING = 9,
1: + __SD_PREFER_SIBLING = 10,
1: + __SD_OVERLAP = 11,
1: + __SD_NUMA = 12,
1: + __SD_FLAG_CNT = 13,
1: +};
1: +
1: +typedef void percpu_ref_func_t(struct percpu_ref *);
1: +
1: +struct percpu_ref_data {
1: + atomic_long_t count;
1: + percpu_ref_func_t *release;
1: + percpu_ref_func_t *confirm_switch;
1: + bool force_atomic: 1;
1: + bool allow_reinit: 1;
1: + struct callback_head rcu;
1: + struct percpu_ref *ref;
1: +};
1: +
1: +struct shrink_control {
1: + gfp_t gfp_mask;
1: + int nid;
1: + long unsigned int nr_to_scan;
1: + long unsigned int nr_scanned;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct shrinker {
1: + long unsigned int (*count_objects)(struct shrinker *, struct shrink_control *);
1: + long unsigned int (*scan_objects)(struct shrinker *, struct shrink_control *);
1: + long int batch;
1: + int seeks;
1: + unsigned int flags;
1: + struct list_head list;
1: + int id;
1: + atomic_long_t *nr_deferred;
1: +};
1: +
1: +struct dev_pagemap_ops {
1: + void (*page_free)(struct page *);
1: + void (*kill)(struct dev_pagemap *);
1: + void (*cleanup)(struct dev_pagemap *);
1: + vm_fault_t (*migrate_to_ram)(struct vm_fault *);
1: +};
1: +
1: +struct hlist_bl_node;
1: +
1: +struct hlist_bl_head {
1: + struct hlist_bl_node *first;
1: +};
1: +
1: +struct hlist_bl_node {
1: + struct hlist_bl_node *next;
1: + struct hlist_bl_node **pprev;
1: +};
1: +
1: +struct lockref {
1: + union {
1: + __u64 lock_count;
1: + struct {
1: + spinlock_t lock;
1: + int count;
1: + };
1: + };
1: +};
1: +
1: +struct qstr {
1: + union {
1: + struct {
1: + u32 hash;
1: + u32 len;
1: + };
1: + u64 hash_len;
1: + };
1: + const unsigned char *name;
1: +};
1: +
1: +struct dentry_operations;
1: +
1: +struct dentry {
1: + unsigned int d_flags;
1: + seqcount_spinlock_t d_seq;
1: + struct hlist_bl_node d_hash;
1: + struct dentry *d_parent;
1: + struct qstr d_name;
1: + struct inode *d_inode;
1: + unsigned char d_iname[32];
1: + struct lockref d_lockref;
1: + const struct dentry_operations *d_op;
1: + struct super_block *d_sb;
1: + long unsigned int d_time;
1: + void *d_fsdata;
1: + union {
1: + struct list_head d_lru;
1: + wait_queue_head_t *d_wait;
1: + };
1: + struct list_head d_child;
1: + struct list_head d_subdirs;
1: + union {
1: + struct hlist_node d_alias;
1: + struct hlist_bl_node d_in_lookup_hash;
1: + struct callback_head d_rcu;
1: + } d_u;
1: +};
1: +
1: +struct posix_acl;
1: +
1: +struct inode_operations;
1: +
1: +struct bdi_writeback;
1: +
1: +struct file_lock_context;
1: +
1: +struct block_device;
1: +
1: +struct cdev;
1: +
1: +struct fsnotify_mark_connector;
1: +
1: +struct fscrypt_info;
1: +
1: +struct fsverity_info;
1: +
1: +struct inode {
1: + umode_t i_mode;
1: + short unsigned int i_opflags;
1: + kuid_t i_uid;
1: + kgid_t i_gid;
1: + unsigned int i_flags;
1: + struct posix_acl *i_acl;
1: + struct posix_acl *i_default_acl;
1: + const struct inode_operations *i_op;
1: + struct super_block *i_sb;
1: + struct address_space *i_mapping;
1: + void *i_security;
1: + long unsigned int i_ino;
1: + union {
1: + const unsigned int i_nlink;
1: + unsigned int __i_nlink;
1: + };
1: + dev_t i_rdev;
1: + loff_t i_size;
1: + struct timespec64 i_atime;
1: + struct timespec64 i_mtime;
1: + struct timespec64 i_ctime;
1: + spinlock_t i_lock;
1: + short unsigned int i_bytes;
1: + u8 i_blkbits;
1: + u8 i_write_hint;
1: + blkcnt_t i_blocks;
1: + long unsigned int i_state;
1: + struct rw_semaphore i_rwsem;
1: + long unsigned int dirtied_when;
1: + long unsigned int dirtied_time_when;
1: + struct hlist_node i_hash;
1: + struct list_head i_io_list;
1: + struct bdi_writeback *i_wb;
1: + int i_wb_frn_winner;
1: + u16 i_wb_frn_avg_time;
1: + u16 i_wb_frn_history;
1: + struct list_head i_lru;
1: + struct list_head i_sb_list;
1: + struct list_head i_wb_list;
1: + union {
1: + struct hlist_head i_dentry;
1: + struct callback_head i_rcu;
1: + };
1: + atomic64_t i_version;
1: + atomic64_t i_sequence;
1: + atomic_t i_count;
1: + atomic_t i_dio_count;
1: + atomic_t i_writecount;
1: + atomic_t i_readcount;
1: + union {
1: + const struct file_operations *i_fop;
1: + void (*free_inode)(struct inode *);
1: + };
1: + struct file_lock_context *i_flctx;
1: + struct address_space i_data;
1: + struct list_head i_devices;
1: + union {
1: + struct pipe_inode_info *i_pipe;
1: + struct block_device *i_bdev;
1: + struct cdev *i_cdev;
1: + char *i_link;
1: + unsigned int i_dir_seq;
1: + };
1: + __u32 i_generation;
1: + __u32 i_fsnotify_mask;
1: + struct fsnotify_mark_connector *i_fsnotify_marks;
1: + struct fscrypt_info *i_crypt_info;
1: + struct fsverity_info *i_verity_info;
1: + void *i_private;
1: +};
1: +
1: +struct dentry_operations {
1: + int (*d_revalidate)(struct dentry *, unsigned int);
1: + int (*d_weak_revalidate)(struct dentry *, unsigned int);
1: + int (*d_hash)(const struct dentry *, struct qstr *);
1: + int (*d_compare)(const struct dentry *, unsigned int, const char *, const struct qstr *);
1: + int (*d_delete)(const struct dentry *);
1: + int (*d_init)(struct dentry *);
1: + void (*d_release)(struct dentry *);
1: + void (*d_prune)(struct dentry *);
1: + void (*d_iput)(struct dentry *, struct inode *);
1: + char * (*d_dname)(struct dentry *, char *, int);
1: + struct vfsmount * (*d_automount)(struct path *);
1: + int (*d_manage)(const struct path *, bool);
1: + struct dentry * (*d_real)(struct dentry *, const struct inode *);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct mtd_info;
1: +
1: +typedef long long int qsize_t;
1: +
1: +struct quota_format_type;
1: +
1: +struct mem_dqinfo {
1: + struct quota_format_type *dqi_format;
1: + int dqi_fmt_id;
1: + struct list_head dqi_dirty_list;
1: + long unsigned int dqi_flags;
1: + unsigned int dqi_bgrace;
1: + unsigned int dqi_igrace;
1: + qsize_t dqi_max_spc_limit;
1: + qsize_t dqi_max_ino_limit;
1: + void *dqi_priv;
1: +};
1: +
1: +struct quota_format_ops;
1: +
1: +struct quota_info {
1: + unsigned int flags;
1: + struct rw_semaphore dqio_sem;
1: + struct inode *files[3];
1: + struct mem_dqinfo info[3];
1: + const struct quota_format_ops *ops[3];
1: +};
1: +
1: +struct rcu_sync {
1: + int gp_state;
1: + int gp_count;
1: + wait_queue_head_t gp_wait;
1: + struct callback_head cb_head;
1: +};
1: +
1: +struct rcuwait {
1: + struct task_struct *task;
1: +};
1: +
1: +struct percpu_rw_semaphore {
1: + struct rcu_sync rss;
1: + unsigned int *read_count;
1: + struct rcuwait writer;
1: + wait_queue_head_t waiters;
1: + atomic_t block;
1: +};
1: +
1: +struct sb_writers {
1: + int frozen;
1: + wait_queue_head_t wait_unfrozen;
1: + struct percpu_rw_semaphore rw_sem[3];
1: +};
1: +
1: +struct list_lru_node;
1: +
1: +struct list_lru {
1: + struct list_lru_node *node;
1: + struct list_head list;
1: + int shrinker_id;
1: + bool memcg_aware;
1: +};
1: +
1: +struct super_operations;
1: +
1: +struct dquot_operations;
1: +
1: +struct quotactl_ops;
1: +
1: +struct export_operations;
1: +
1: +struct xattr_handler;
1: +
1: +struct fscrypt_operations;
1: +
1: +struct fsverity_operations;
1: +
1: +struct unicode_map;
1: +
1: +struct workqueue_struct;
1: +
1: +struct super_block {
1: + struct list_head s_list;
1: + dev_t s_dev;
1: + unsigned char s_blocksize_bits;
1: + long unsigned int s_blocksize;
1: + loff_t s_maxbytes;
1: + struct file_system_type *s_type;
1: + const struct super_operations *s_op;
1: + const struct dquot_operations *dq_op;
1: + const struct quotactl_ops *s_qcop;
1: + const struct export_operations *s_export_op;
1: + long unsigned int s_flags;
1: + long unsigned int s_iflags;
1: + long unsigned int s_magic;
1: + struct dentry *s_root;
1: + struct rw_semaphore s_umount;
1: + int s_count;
1: + atomic_t s_active;
1: + void *s_security;
1: + const struct xattr_handler **s_xattr;
1: + const struct fscrypt_operations *s_cop;
1: + struct key *s_master_keys;
1: + const struct fsverity_operations *s_vop;
1: + struct unicode_map *s_encoding;
1: + __u16 s_encoding_flags;
1: + struct hlist_bl_head s_roots;
1: + struct list_head s_mounts;
1: + struct block_device *s_bdev;
1: + struct backing_dev_info *s_bdi;
1: + struct mtd_info *s_mtd;
1: + struct hlist_node s_instances;
1: + unsigned int s_quota_types;
1: + struct quota_info s_dquot;
1: + struct sb_writers s_writers;
1: + void *s_fs_info;
1: + u32 s_time_gran;
1: + time64_t s_time_min;
1: + time64_t s_time_max;
1: + __u32 s_fsnotify_mask;
1: + struct fsnotify_mark_connector *s_fsnotify_marks;
1: + char s_id[32];
1: + uuid_t s_uuid;
1: + unsigned int s_max_links;
1: + fmode_t s_mode;
1: + struct mutex s_vfs_rename_mutex;
1: + const char *s_subtype;
1: + const struct dentry_operations *s_d_op;
1: + int cleancache_poolid;
1: + struct shrinker s_shrink;
1: + atomic_long_t s_remove_count;
1: + atomic_long_t s_fsnotify_inode_refs;
1: + int s_readonly_remount;
1: + errseq_t s_wb_err;
1: + struct workqueue_struct *s_dio_done_wq;
1: + struct hlist_head s_pins;
1: + struct user_namespace *s_user_ns;
1: + struct list_lru s_dentry_lru;
1: + struct list_lru s_inode_lru;
1: + struct callback_head rcu;
1: + struct work_struct destroy_work;
1: + struct mutex s_sync_lock;
1: + int s_stack_depth;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t s_inode_list_lock;
1: + struct list_head s_inodes;
1: + spinlock_t s_inode_wblist_lock;
1: + struct list_head s_inodes_wb;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct list_lru_one {
1: + struct list_head list;
1: + long int nr_items;
1: +};
1: +
1: +struct list_lru_memcg {
1: + struct callback_head rcu;
1: + struct list_lru_one *lru[0];
1: +};
1: +
1: +struct list_lru_node {
1: + spinlock_t lock;
1: + struct list_lru_one lru;
1: + struct list_lru_memcg *memcg_lrus;
1: + long int nr_items;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum migrate_mode {
1: + MIGRATE_ASYNC = 0,
1: + MIGRATE_SYNC_LIGHT = 1,
1: + MIGRATE_SYNC = 2,
1: + MIGRATE_SYNC_NO_COPY = 3,
1: +};
1: +
1: +struct key_tag {
1: + struct callback_head rcu;
1: + refcount_t usage;
1: + bool removed;
1: +};
1: +
1: +typedef int (*request_key_actor_t)(struct key *, void *);
1: +
1: +struct key_preparsed_payload;
1: +
1: +struct key_match_data;
1: +
1: +struct kernel_pkey_params;
1: +
1: +struct kernel_pkey_query;
1: +
1: +struct key_type {
1: + const char *name;
1: + size_t def_datalen;
1: + unsigned int flags;
1: + int (*vet_description)(const char *);
1: + int (*preparse)(struct key_preparsed_payload *);
1: + void (*free_preparse)(struct key_preparsed_payload *);
1: + int (*instantiate)(struct key *, struct key_preparsed_payload *);
1: + int (*update)(struct key *, struct key_preparsed_payload *);
1: + int (*match_preparse)(struct key_match_data *);
1: + void (*match_free)(struct key_match_data *);
1: + void (*revoke)(struct key *);
1: + void (*destroy)(struct key *);
1: + void (*describe)(const struct key *, struct seq_file *);
1: + long int (*read)(const struct key *, char *, size_t);
1: + request_key_actor_t request_key;
1: + struct key_restriction * (*lookup_restriction)(const char *);
1: + int (*asym_query)(const struct kernel_pkey_params *, struct kernel_pkey_query *);
1: + int (*asym_eds_op)(struct kernel_pkey_params *, const void *, void *);
1: + int (*asym_verify_signature)(struct kernel_pkey_params *, const void *, const void *);
1: + struct list_head link;
1: + struct lock_class_key lock_class;
1: +};
1: +
1: +typedef int (*key_restrict_link_func_t)(struct key *, const struct key_type *, const union key_payload *, struct key *);
1: +
1: +struct key_restriction {
1: + key_restrict_link_func_t check;
1: + struct key *key;
1: + struct key_type *keytype;
1: +};
1: +
1: +struct group_info {
1: + atomic_t usage;
1: + int ngroups;
1: + kgid_t gid[0];
1: +};
1: +
1: +struct delayed_call {
1: + void (*fn)(void *);
1: + void *arg;
1: +};
1: +
1: +struct io_cq {
1: + struct request_queue *q;
1: + struct io_context *ioc;
1: + union {
1: + struct list_head q_node;
1: + struct kmem_cache *__rcu_icq_cache;
1: + };
1: + union {
1: + struct hlist_node ioc_node;
1: + struct callback_head __rcu_head;
1: + };
1: + unsigned int flags;
1: +};
1: +
1: +struct wait_page_queue;
1: +
1: +struct kiocb {
1: + struct file *ki_filp;
1: + loff_t ki_pos;
1: + void (*ki_complete)(struct kiocb *, long int, long int);
1: + void *private;
1: + int ki_flags;
1: + u16 ki_hint;
1: + u16 ki_ioprio;
1: + union {
1: + unsigned int ki_cookie;
1: + struct wait_page_queue *ki_waitq;
1: + };
1: +};
1: +
1: +struct iattr {
1: + unsigned int ia_valid;
1: + umode_t ia_mode;
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + loff_t ia_size;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct file *ia_file;
1: +};
1: +
1: +typedef __kernel_uid32_t projid_t;
1: +
1: +typedef struct {
1: + projid_t val;
1: +} kprojid_t;
1: +
1: +enum quota_type {
1: + USRQUOTA = 0,
1: + GRPQUOTA = 1,
1: + PRJQUOTA = 2,
1: +};
1: +
1: +struct kqid {
1: + union {
1: + kuid_t uid;
1: + kgid_t gid;
1: + kprojid_t projid;
1: + };
1: + enum quota_type type;
1: +};
1: +
1: +struct mem_dqblk {
1: + qsize_t dqb_bhardlimit;
1: + qsize_t dqb_bsoftlimit;
1: + qsize_t dqb_curspace;
1: + qsize_t dqb_rsvspace;
1: + qsize_t dqb_ihardlimit;
1: + qsize_t dqb_isoftlimit;
1: + qsize_t dqb_curinodes;
1: + time64_t dqb_btime;
1: + time64_t dqb_itime;
1: +};
1: +
1: +struct dquot {
1: + struct hlist_node dq_hash;
1: + struct list_head dq_inuse;
1: + struct list_head dq_free;
1: + struct list_head dq_dirty;
1: + struct mutex dq_lock;
1: + spinlock_t dq_dqb_lock;
1: + atomic_t dq_count;
1: + struct super_block *dq_sb;
1: + struct kqid dq_id;
1: + loff_t dq_off;
1: + long unsigned int dq_flags;
1: + struct mem_dqblk dq_dqb;
1: +};
1: +
1: +enum {
1: + DQF_ROOT_SQUASH_B = 0,
1: + DQF_SYS_FILE_B = 16,
1: + DQF_PRIVATE = 17,
1: +};
1: +
1: +struct quota_format_type {
1: + int qf_fmt_id;
1: + const struct quota_format_ops *qf_ops;
1: + struct module *qf_owner;
1: + struct quota_format_type *qf_next;
1: +};
1: +
1: +enum {
1: + DQST_LOOKUPS = 0,
1: + DQST_DROPS = 1,
1: + DQST_READS = 2,
1: + DQST_WRITES = 3,
1: + DQST_CACHE_HITS = 4,
1: + DQST_ALLOC_DQUOTS = 5,
1: + DQST_FREE_DQUOTS = 6,
1: + DQST_SYNCS = 7,
1: + _DQST_DQSTAT_LAST = 8,
1: +};
1: +
1: +struct quota_format_ops {
1: + int (*check_quota_file)(struct super_block *, int);
1: + int (*read_file_info)(struct super_block *, int);
1: + int (*write_file_info)(struct super_block *, int);
1: + int (*free_file_info)(struct super_block *, int);
1: + int (*read_dqblk)(struct dquot *);
1: + int (*commit_dqblk)(struct dquot *);
1: + int (*release_dqblk)(struct dquot *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: +};
1: +
1: +struct dquot_operations {
1: + int (*write_dquot)(struct dquot *);
1: + struct dquot * (*alloc_dquot)(struct super_block *, int);
1: + void (*destroy_dquot)(struct dquot *);
1: + int (*acquire_dquot)(struct dquot *);
1: + int (*release_dquot)(struct dquot *);
1: + int (*mark_dirty)(struct dquot *);
1: + int (*write_info)(struct super_block *, int);
1: + qsize_t * (*get_reserved_space)(struct inode *);
1: + int (*get_projid)(struct inode *, kprojid_t *);
1: + int (*get_inode_usage)(struct inode *, qsize_t *);
1: + int (*get_next_id)(struct super_block *, struct kqid *);
1: +};
1: +
1: +struct qc_dqblk {
1: + int d_fieldmask;
1: + u64 d_spc_hardlimit;
1: + u64 d_spc_softlimit;
1: + u64 d_ino_hardlimit;
1: + u64 d_ino_softlimit;
1: + u64 d_space;
1: + u64 d_ino_count;
1: + s64 d_ino_timer;
1: + s64 d_spc_timer;
1: + int d_ino_warns;
1: + int d_spc_warns;
1: + u64 d_rt_spc_hardlimit;
1: + u64 d_rt_spc_softlimit;
1: + u64 d_rt_space;
1: + s64 d_rt_spc_timer;
1: + int d_rt_spc_warns;
1: +};
1: +
1: +struct qc_type_state {
1: + unsigned int flags;
1: + unsigned int spc_timelimit;
1: + unsigned int ino_timelimit;
1: + unsigned int rt_spc_timelimit;
1: + unsigned int spc_warnlimit;
1: + unsigned int ino_warnlimit;
1: + unsigned int rt_spc_warnlimit;
1: + long long unsigned int ino;
1: + blkcnt_t blocks;
1: + blkcnt_t nextents;
1: +};
1: +
1: +struct qc_state {
1: + unsigned int s_incoredqs;
1: + struct qc_type_state s_state[3];
1: +};
1: +
1: +struct qc_info {
1: + int i_fieldmask;
1: + unsigned int i_flags;
1: + unsigned int i_spc_timelimit;
1: + unsigned int i_ino_timelimit;
1: + unsigned int i_rt_spc_timelimit;
1: + unsigned int i_spc_warnlimit;
1: + unsigned int i_ino_warnlimit;
1: + unsigned int i_rt_spc_warnlimit;
1: +};
1: +
1: +struct quotactl_ops {
1: + int (*quota_on)(struct super_block *, int, int, const struct path *);
1: + int (*quota_off)(struct super_block *, int);
1: + int (*quota_enable)(struct super_block *, unsigned int);
1: + int (*quota_disable)(struct super_block *, unsigned int);
1: + int (*quota_sync)(struct super_block *, int);
1: + int (*set_info)(struct super_block *, int, struct qc_info *);
1: + int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_nextdqblk)(struct super_block *, struct kqid *, struct qc_dqblk *);
1: + int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
1: + int (*get_state)(struct super_block *, struct qc_state *);
1: + int (*rm_xquota)(struct super_block *, unsigned int);
1: +};
1: +
1: +struct writeback_control;
1: +
1: +struct readahead_control;
1: +
1: +struct swap_info_struct;
1: +
1: +struct address_space_operations {
1: + int (*writepage)(struct page *, struct writeback_control *);
1: + int (*readpage)(struct file *, struct page *);
1: + int (*writepages)(struct address_space *, struct writeback_control *);
1: + int (*set_page_dirty)(struct page *);
1: + int (*readpages)(struct file *, struct address_space *, struct list_head *, unsigned int);
1: + void (*readahead)(struct readahead_control *);
1: + int (*write_begin)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page **, void **);
1: + int (*write_end)(struct file *, struct address_space *, loff_t, unsigned int, unsigned int, struct page *, void *);
1: + sector_t (*bmap)(struct address_space *, sector_t);
1: + void (*invalidatepage)(struct page *, unsigned int, unsigned int);
1: + int (*releasepage)(struct page *, gfp_t);
1: + void (*freepage)(struct page *);
1: + ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *);
1: + int (*migratepage)(struct address_space *, struct page *, struct page *, enum migrate_mode);
1: + bool (*isolate_page)(struct page *, isolate_mode_t);
1: + void (*putback_page)(struct page *);
1: + int (*launder_page)(struct page *);
1: + int (*is_partially_uptodate)(struct page *, long unsigned int, long unsigned int);
1: + void (*is_dirty_writeback)(struct page *, bool *, bool *);
1: + int (*error_remove_page)(struct address_space *, struct page *);
1: + int (*swap_activate)(struct swap_info_struct *, struct file *, sector_t *);
1: + void (*swap_deactivate)(struct file *);
1: +};
1: +
1: +struct fiemap_extent_info;
1: +
1: +struct inode_operations {
1: + struct dentry * (*lookup)(struct inode *, struct dentry *, unsigned int);
1: + const char * (*get_link)(struct dentry *, struct inode *, struct delayed_call *);
1: + int (*permission)(struct inode *, int);
1: + struct posix_acl * (*get_acl)(struct inode *, int);
1: + int (*readlink)(struct dentry *, char *, int);
1: + int (*create)(struct inode *, struct dentry *, umode_t, bool);
1: + int (*link)(struct dentry *, struct inode *, struct dentry *);
1: + int (*unlink)(struct inode *, struct dentry *);
1: + int (*symlink)(struct inode *, struct dentry *, const char *);
1: + int (*mkdir)(struct inode *, struct dentry *, umode_t);
1: + int (*rmdir)(struct inode *, struct dentry *);
1: + int (*mknod)(struct inode *, struct dentry *, umode_t, dev_t);
1: + int (*rename)(struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int);
1: + int (*setattr)(struct dentry *, struct iattr *);
1: + int (*getattr)(const struct path *, struct kstat *, u32, unsigned int);
1: + ssize_t (*listxattr)(struct dentry *, char *, size_t);
1: + int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64, u64);
1: + int (*update_time)(struct inode *, struct timespec64 *, int);
1: + int (*atomic_open)(struct inode *, struct dentry *, struct file *, unsigned int, umode_t);
1: + int (*tmpfile)(struct inode *, struct dentry *, umode_t);
1: + int (*set_acl)(struct inode *, struct posix_acl *, int);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct file_lock_context {
1: + spinlock_t flc_lock;
1: + struct list_head flc_flock;
1: + struct list_head flc_posix;
1: + struct list_head flc_lease;
1: +};
1: +
1: +struct file_lock_operations {
1: + void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1: + void (*fl_release_private)(struct file_lock *);
1: +};
1: +
1: +struct nlm_lockowner;
1: +
1: +struct nfs_lock_info {
1: + u32 state;
1: + struct nlm_lockowner *owner;
1: + struct list_head list;
1: +};
1: +
1: +struct nfs4_lock_state;
1: +
1: +struct nfs4_lock_info {
1: + struct nfs4_lock_state *owner;
1: +};
1: +
1: +struct fasync_struct;
1: +
1: +struct lock_manager_operations;
1: +
1: +struct file_lock {
1: + struct file_lock *fl_blocker;
1: + struct list_head fl_list;
1: + struct hlist_node fl_link;
1: + struct list_head fl_blocked_requests;
1: + struct list_head fl_blocked_member;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + unsigned int fl_pid;
1: + int fl_link_cpu;
1: + wait_queue_head_t fl_wait;
1: + struct file *fl_file;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + struct fasync_struct *fl_fasync;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + const struct file_lock_operations *fl_ops;
1: + const struct lock_manager_operations *fl_lmops;
1: + union {
1: + struct nfs_lock_info nfs_fl;
1: + struct nfs4_lock_info nfs4_fl;
1: + struct {
1: + struct list_head link;
1: + int state;
1: + unsigned int debug_id;
1: + } afs;
1: + } fl_u;
1: +};
1: +
1: +struct lock_manager_operations {
1: + fl_owner_t (*lm_get_owner)(fl_owner_t);
1: + void (*lm_put_owner)(fl_owner_t);
1: + void (*lm_notify)(struct file_lock *);
1: + int (*lm_grant)(struct file_lock *, int);
1: + bool (*lm_break)(struct file_lock *);
1: + int (*lm_change)(struct file_lock *, int, struct list_head *);
1: + void (*lm_setup)(struct file_lock *, void **);
1: + bool (*lm_breaker_owns_lease)(struct file_lock *);
1: +};
1: +
1: +struct fasync_struct {
1: + rwlock_t fa_lock;
1: + int magic;
1: + int fa_fd;
1: + struct fasync_struct *fa_next;
1: + struct file *fa_file;
1: + struct callback_head fa_rcu;
1: +};
1: +
1: +enum {
1: + SB_UNFROZEN = 0,
1: + SB_FREEZE_WRITE = 1,
1: + SB_FREEZE_PAGEFAULT = 2,
1: + SB_FREEZE_FS = 3,
1: + SB_FREEZE_COMPLETE = 4,
1: +};
1: +
1: +struct kstatfs;
1: +
1: +struct super_operations {
1: + struct inode * (*alloc_inode)(struct super_block *);
1: + void (*destroy_inode)(struct inode *);
1: + void (*free_inode)(struct inode *);
1: + void (*dirty_inode)(struct inode *, int);
1: + int (*write_inode)(struct inode *, struct writeback_control *);
1: + int (*drop_inode)(struct inode *);
1: + void (*evict_inode)(struct inode *);
1: + void (*put_super)(struct super_block *);
1: + int (*sync_fs)(struct super_block *, int);
1: + int (*freeze_super)(struct super_block *);
1: + int (*freeze_fs)(struct super_block *);
1: + int (*thaw_super)(struct super_block *);
1: + int (*unfreeze_fs)(struct super_block *);
1: + int (*statfs)(struct dentry *, struct kstatfs *);
1: + int (*remount_fs)(struct super_block *, int *, char *);
1: + void (*umount_begin)(struct super_block *);
1: + int (*show_options)(struct seq_file *, struct dentry *);
1: + int (*show_devname)(struct seq_file *, struct dentry *);
1: + int (*show_path)(struct seq_file *, struct dentry *);
1: + int (*show_stats)(struct seq_file *, struct dentry *);
1: + ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1: + ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
1: + struct dquot ** (*get_dquots)(struct inode *);
1: + int (*bdev_try_to_free_page)(struct super_block *, struct page *, gfp_t);
1: + long int (*nr_cached_objects)(struct super_block *, struct shrink_control *);
1: + long int (*free_cached_objects)(struct super_block *, struct shrink_control *);
1: +};
1: +
1: +struct iomap;
1: +
1: +struct fid;
1: +
1: +struct export_operations {
1: + int (*encode_fh)(struct inode *, __u32 *, int *, struct inode *);
1: + struct dentry * (*fh_to_dentry)(struct super_block *, struct fid *, int, int);
1: + struct dentry * (*fh_to_parent)(struct super_block *, struct fid *, int, int);
1: + int (*get_name)(struct dentry *, char *, struct dentry *);
1: + struct dentry * (*get_parent)(struct dentry *);
1: + int (*commit_metadata)(struct inode *);
1: + int (*get_uuid)(struct super_block *, u8 *, u32 *, u64 *);
1: + int (*map_blocks)(struct inode *, loff_t, u64, struct iomap *, bool, u32 *);
1: + int (*commit_blocks)(struct inode *, struct iomap *, int, struct iattr *);
1: +};
1: +
1: +struct xattr_handler {
1: + const char *name;
1: + const char *prefix;
1: + int flags;
1: + bool (*list)(struct dentry *);
1: + int (*get)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, void *, size_t);
1: + int (*set)(const struct xattr_handler *, struct dentry *, struct inode *, const char *, const void *, size_t, int);
1: +};
1: +
1: +union fscrypt_policy;
1: +
1: +struct fscrypt_operations {
1: + unsigned int flags;
1: + const char *key_prefix;
1: + int (*get_context)(struct inode *, void *, size_t);
1: + int (*set_context)(struct inode *, const void *, size_t, void *);
1: + const union fscrypt_policy * (*get_dummy_policy)(struct super_block *);
1: + bool (*empty_dir)(struct inode *);
1: + unsigned int max_namelen;
1: + bool (*has_stable_inodes)(struct super_block *);
1: + void (*get_ino_and_lblk_bits)(struct super_block *, int *, int *);
1: + int (*get_num_devices)(struct super_block *);
1: + void (*get_devices)(struct super_block *, struct request_queue **);
1: +};
1: +
1: +struct fsverity_operations {
1: + int (*begin_enable_verity)(struct file *);
1: + int (*end_enable_verity)(struct file *, const void *, size_t, u64);
1: + int (*get_verity_descriptor)(struct inode *, void *, size_t);
1: + struct page * (*read_merkle_tree_page)(struct inode *, long unsigned int, long unsigned int);
1: + int (*write_merkle_tree_block)(struct inode *, const void *, u64, int);
1: +};
1: +
1: +typedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64, unsigned int);
1: +
1: +struct dir_context {
1: + filldir_t actor;
1: + loff_t pos;
1: +};
1: +
1: +struct p_log;
1: +
1: +struct fs_parameter;
1: +
1: +struct fs_parse_result;
1: +
1: +typedef int fs_param_type(struct p_log *, const struct fs_parameter_spec *, struct fs_parameter *, struct fs_parse_result *);
1: +
1: +struct fs_parameter_spec {
1: + const char *name;
1: + fs_param_type *type;
1: + u8 opt;
1: + short unsigned int flags;
1: + const void *data;
1: +};
1: +
1: +enum compound_dtor_id {
1: + NULL_COMPOUND_DTOR = 0,
1: + COMPOUND_PAGE_DTOR = 1,
1: + HUGETLB_PAGE_DTOR = 2,
1: + TRANSHUGE_PAGE_DTOR = 3,
1: + NR_COMPOUND_DTORS = 4,
1: +};
1: +
1: +enum vm_event_item {
1: + PGPGIN = 0,
1: + PGPGOUT = 1,
1: + PSWPIN = 2,
1: + PSWPOUT = 3,
1: + PGALLOC_NORMAL = 4,
1: + PGALLOC_MOVABLE = 5,
1: + ALLOCSTALL_NORMAL = 6,
1: + ALLOCSTALL_MOVABLE = 7,
1: + PGSCAN_SKIP_NORMAL = 8,
1: + PGSCAN_SKIP_MOVABLE = 9,
1: + PGFREE = 10,
1: + PGACTIVATE = 11,
1: + PGDEACTIVATE = 12,
1: + PGLAZYFREE = 13,
1: + PGFAULT = 14,
1: + PGMAJFAULT = 15,
1: + PGLAZYFREED = 16,
1: + PGREFILL = 17,
1: + PGREUSE = 18,
1: + PGSTEAL_KSWAPD = 19,
1: + PGSTEAL_DIRECT = 20,
1: + PGSCAN_KSWAPD = 21,
1: + PGSCAN_DIRECT = 22,
1: + PGSCAN_DIRECT_THROTTLE = 23,
1: + PGSCAN_ANON = 24,
1: + PGSCAN_FILE = 25,
1: + PGSTEAL_ANON = 26,
1: + PGSTEAL_FILE = 27,
1: + PGSCAN_ZONE_RECLAIM_FAILED = 28,
1: + PGINODESTEAL = 29,
1: + SLABS_SCANNED = 30,
1: + KSWAPD_INODESTEAL = 31,
1: + KSWAPD_LOW_WMARK_HIT_QUICKLY = 32,
1: + KSWAPD_HIGH_WMARK_HIT_QUICKLY = 33,
1: + PAGEOUTRUN = 34,
1: + PGROTATED = 35,
1: + DROP_PAGECACHE = 36,
1: + DROP_SLAB = 37,
1: + OOM_KILL = 38,
1: + NUMA_PTE_UPDATES = 39,
1: + NUMA_HUGE_PTE_UPDATES = 40,
1: + NUMA_HINT_FAULTS = 41,
1: + NUMA_HINT_FAULTS_LOCAL = 42,
1: + NUMA_PAGE_MIGRATE = 43,
1: + PGMIGRATE_SUCCESS = 44,
1: + PGMIGRATE_FAIL = 45,
1: + THP_MIGRATION_SUCCESS = 46,
1: + THP_MIGRATION_FAIL = 47,
1: + THP_MIGRATION_SPLIT = 48,
1: + COMPACTMIGRATE_SCANNED = 49,
1: + COMPACTFREE_SCANNED = 50,
1: + COMPACTISOLATED = 51,
1: + COMPACTSTALL = 52,
1: + COMPACTFAIL = 53,
1: + COMPACTSUCCESS = 54,
1: + KCOMPACTD_WAKE = 55,
1: + KCOMPACTD_MIGRATE_SCANNED = 56,
1: + KCOMPACTD_FREE_SCANNED = 57,
1: + HTLB_BUDDY_PGALLOC = 58,
1: + HTLB_BUDDY_PGALLOC_FAIL = 59,
1: + UNEVICTABLE_PGCULLED = 60,
1: + UNEVICTABLE_PGSCANNED = 61,
1: + UNEVICTABLE_PGRESCUED = 62,
1: + UNEVICTABLE_PGMLOCKED = 63,
1: + UNEVICTABLE_PGMUNLOCKED = 64,
1: + UNEVICTABLE_PGCLEARED = 65,
1: + UNEVICTABLE_PGSTRANDED = 66,
1: + THP_FAULT_ALLOC = 67,
1: + THP_FAULT_FALLBACK = 68,
1: + THP_FAULT_FALLBACK_CHARGE = 69,
1: + THP_COLLAPSE_ALLOC = 70,
1: + THP_COLLAPSE_ALLOC_FAILED = 71,
1: + THP_FILE_ALLOC = 72,
1: + THP_FILE_FALLBACK = 73,
1: + THP_FILE_FALLBACK_CHARGE = 74,
1: + THP_FILE_MAPPED = 75,
1: + THP_SPLIT_PAGE = 76,
1: + THP_SPLIT_PAGE_FAILED = 77,
1: + THP_DEFERRED_SPLIT_PAGE = 78,
1: + THP_SPLIT_PMD = 79,
1: + THP_ZERO_PAGE_ALLOC = 80,
1: + THP_ZERO_PAGE_ALLOC_FAILED = 81,
1: + THP_SWPOUT = 82,
1: + THP_SWPOUT_FALLBACK = 83,
1: + BALLOON_INFLATE = 84,
1: + BALLOON_DEFLATE = 85,
1: + BALLOON_MIGRATE = 86,
1: + SWAP_RA = 87,
1: + SWAP_RA_HIT = 88,
1: + NR_VM_EVENT_ITEMS = 89,
1: +};
1: +
1: +enum kmalloc_cache_type {
1: + KMALLOC_NORMAL = 0,
1: + KMALLOC_RECLAIM = 1,
1: + NR_KMALLOC_TYPES = 2,
1: +};
1: +
1: +typedef u32 phandle;
1: +
1: +typedef u32 ihandle;
1: +
1: +enum {
1: + HI_SOFTIRQ = 0,
1: + TIMER_SOFTIRQ = 1,
1: + NET_TX_SOFTIRQ = 2,
1: + NET_RX_SOFTIRQ = 3,
1: + BLOCK_SOFTIRQ = 4,
1: + IRQ_POLL_SOFTIRQ = 5,
1: + TASKLET_SOFTIRQ = 6,
1: + SCHED_SOFTIRQ = 7,
1: + HRTIMER_SOFTIRQ = 8,
1: + RCU_SOFTIRQ = 9,
1: + NR_SOFTIRQS = 10,
1: +};
1: +
1: +enum {
1: + PCI_STD_RESOURCES = 0,
1: + PCI_STD_RESOURCE_END = 5,
1: + PCI_ROM_RESOURCE = 6,
1: + PCI_IOV_RESOURCES = 7,
1: + PCI_IOV_RESOURCE_END = 12,
1: + PCI_BRIDGE_RESOURCES = 13,
1: + PCI_BRIDGE_RESOURCE_END = 16,
1: + PCI_NUM_RESOURCES = 17,
1: + DEVICE_COUNT_RESOURCE = 17,
1: +};
1: +
1: +typedef unsigned int pci_channel_state_t;
1: +
1: +typedef unsigned int pcie_reset_state_t;
1: +
1: +typedef short unsigned int pci_dev_flags_t;
1: +
1: +typedef short unsigned int pci_bus_flags_t;
1: +
1: +typedef unsigned int pci_ers_result_t;
1: +
1: +struct seq_operations {
1: + void * (*start)(struct seq_file *, loff_t *);
1: + void (*stop)(struct seq_file *, void *);
1: + void * (*next)(struct seq_file *, void *, loff_t *);
1: + int (*show)(struct seq_file *, void *);
1: +};
1: +
1: +struct boot_param_header {
1: + __be32 magic;
1: + __be32 totalsize;
1: + __be32 off_dt_struct;
1: + __be32 off_dt_strings;
1: + __be32 off_mem_rsvmap;
1: + __be32 version;
1: + __be32 last_comp_version;
1: + __be32 boot_cpuid_phys;
1: + __be32 dt_strings_size;
1: + __be32 dt_struct_size;
1: +};
1: +
1: +struct linux_logo {
1: + int type;
1: + unsigned int width;
1: + unsigned int height;
1: + unsigned int clutsize;
1: + const unsigned char *clut;
1: + const unsigned char *data;
1: +};
1: +
1: +typedef u32 prom_arg_t;
1: +
1: +struct prom_args {
1: + __be32 service;
1: + __be32 nargs;
1: + __be32 nret;
1: + __be32 args[10];
1: +};
1: +
1: +struct prom_t {
1: + ihandle root;
1: + phandle chosen;
1: + int cpu;
1: + ihandle stdout;
1: + ihandle mmumap;
1: + ihandle memory;
1: +};
1: +
1: +struct mem_map_entry {
1: + __be64 base;
1: + __be64 size;
1: +};
1: +
1: +typedef __be32 cell_t;
1: +
1: +struct platform_support {
1: + bool hash_mmu;
1: + bool radix_mmu;
1: + bool radix_gtse;
1: + bool xive;
1: +};
1: +
1: +struct option_vector1 {
1: + u8 byte1;
1: + u8 arch_versions;
1: + u8 arch_versions3;
1: +};
1: +
1: +struct option_vector2 {
1: + u8 byte1;
1: + __be16 reserved;
1: + __be32 real_base;
1: + __be32 real_size;
1: + __be32 virt_base;
1: + __be32 virt_size;
1: + __be32 load_base;
1: + __be32 min_rma;
1: + __be32 min_load;
1: + u8 min_rma_percent;
1: + u8 max_pft_size;
1: +} __attribute__((packed));
1: +
1: +struct option_vector3 {
1: + u8 byte1;
1: + u8 byte2;
1: +};
1: +
1: +struct option_vector4 {
1: + u8 byte1;
1: + u8 min_vp_cap;
1: +};
1: +
1: +struct option_vector5 {
1: + u8 byte1;
1: + u8 byte2;
1: + u8 byte3;
1: + u8 cmo;
1: + u8 associativity;
1: + u8 bin_opts;
1: + u8 micro_checkpoint;
1: + u8 reserved0;
1: + __be32 max_cpus;
1: + __be16 papr_level;
1: + __be16 reserved1;
1: + u8 platform_facilities;
1: + u8 reserved2;
1: + __be16 reserved3;
1: + u8 subprocessors;
1: + u8 byte22;
1: + u8 intarch;
1: + u8 mmu;
1: + u8 hash_ext;
1: + u8 radix_ext;
1: +} __attribute__((packed));
1: +
1: +struct option_vector6 {
1: + u8 reserved;
1: + u8 secondary_pteg;
1: + u8 os_name;
1: +};
1: +
1: +struct ibm_arch_vec {
1: + struct {
1: + u32 mask;
1: + u32 val;
1: + } pvrs[14];
1: + u8 num_vectors;
1: + u8 vec1_len;
1: + struct option_vector1 vec1;
1: + u8 vec2_len;
1: + struct option_vector2 vec2;
1: + u8 vec3_len;
1: + struct option_vector3 vec3;
1: + u8 vec4_len;
1: + struct option_vector4 vec4;
1: + u8 vec5_len;
1: + struct option_vector5 vec5;
1: + u8 vec6_len;
1: + struct option_vector6 vec6;
1: +} __attribute__((packed));
1: +
1: +typedef signed char __s8;
1: +
1: +typedef __s8 s8;
1: +
1: +typedef __u32 __le32;
1: +
1: +typedef u64 phys_addr_t;
1: +
1: +typedef long unsigned int irq_hw_number_t;
1: +
1: +struct kernel_symbol {
1: + long unsigned int value;
1: + const char *name;
1: + const char *namespace;
1: +};
1: +
1: +typedef int (*initcall_t)();
1: +
1: +typedef initcall_t initcall_entry_t;
1: +
1: +struct obs_kernel_param {
1: + const char *str;
1: + int (*setup_func)(char *);
1: + int early;
1: +};
1: +
1: +struct lockdep_map {};
1: +
1: +enum system_states {
1: + SYSTEM_BOOTING = 0,
1: + SYSTEM_SCHEDULING = 1,
1: + SYSTEM_RUNNING = 2,
1: + SYSTEM_HALT = 3,
1: + SYSTEM_POWER_OFF = 4,
1: + SYSTEM_RESTART = 5,
1: + SYSTEM_SUSPEND = 6,
1: +};
1: +
1: +struct uid_gid_extent {
1: + u32 first;
1: + u32 lower_first;
1: + u32 count;
1: +};
1: +
1: +struct uid_gid_map {
1: + u32 nr_extents;
1: + union {
1: + struct uid_gid_extent extent[5];
1: + struct {
1: + struct uid_gid_extent *forward;
1: + struct uid_gid_extent *reverse;
1: + };
1: + };
1: +};
1: +
1: +struct proc_ns_operations;
1: +
1: +struct ns_common {
1: + atomic_long_t stashed;
1: + const struct proc_ns_operations *ops;
1: + unsigned int inum;
1: +};
1: +
1: +struct ctl_table;
1: +
1: +struct ctl_table_root;
1: +
1: +struct ctl_table_set;
1: +
1: +struct ctl_dir;
1: +
1: +struct ctl_node;
1: +
1: +struct ctl_table_header {
1: + union {
1: + struct {
1: + struct ctl_table *ctl_table;
1: + int used;
1: + int count;
1: + int nreg;
1: + };
1: + struct callback_head rcu;
1: + };
1: + struct completion *unregistering;
1: + struct ctl_table *ctl_table_arg;
1: + struct ctl_table_root *root;
1: + struct ctl_table_set *set;
1: + struct ctl_dir *parent;
1: + struct ctl_node *node;
1: + struct hlist_head inodes;
1: +};
1: +
1: +struct ctl_dir {
1: + struct ctl_table_header header;
1: + struct rb_root root;
1: +};
1: +
1: +struct ctl_table_set {
1: + int (*is_seen)(struct ctl_table_set *);
1: + struct ctl_dir dir;
1: +};
1: +
1: +struct ucounts;
1: +
1: +struct user_namespace {
1: + struct uid_gid_map uid_map;
1: + struct uid_gid_map gid_map;
1: + struct uid_gid_map projid_map;
1: + atomic_t count;
1: + struct user_namespace *parent;
1: + int level;
1: + kuid_t owner;
1: + kgid_t group;
1: + struct ns_common ns;
1: + long unsigned int flags;
1: + struct list_head keyring_name_list;
1: + struct key *user_keyring_register;
1: + struct rw_semaphore keyring_sem;
1: + struct key *persistent_keyring_register;
1: + struct work_struct work;
1: + struct ctl_table_set set;
1: + struct ctl_table_header *sysctls;
1: + struct ucounts *ucounts;
1: + int ucount_max[10];
1: +};
1: +
1: +struct bug_entry {
1: + long unsigned int bug_addr;
1: + const char *file;
1: + short unsigned int line;
1: + short unsigned int flags;
1: +};
1: +
1: +struct pollfd {
1: + int fd;
1: + short int events;
1: + short int revents;
1: +};
1: +
1: +typedef u64 jump_label_t;
1: +
1: +struct jump_entry {
1: + jump_label_t code;
1: + jump_label_t target;
1: + jump_label_t key;
1: +};
1: +
1: +struct static_key_mod;
1: +
1: +struct static_key {
1: + atomic_t enabled;
1: + union {
1: + long unsigned int type;
1: + struct jump_entry *entries;
1: + struct static_key_mod *next;
1: + };
1: +};
1: +
1: +struct static_key_false {
1: + struct static_key key;
1: +};
1: +
1: +struct device;
1: +
1: +struct attribute_group;
1: +
1: +struct perf_cpu_context;
1: +
1: +struct perf_output_handle;
1: +
1: +struct pmu {
1: + struct list_head entry;
1: + struct module *module;
1: + struct device *dev;
1: + const struct attribute_group **attr_groups;
1: + const struct attribute_group **attr_update;
1: + const char *name;
1: + int type;
1: + int capabilities;
1: + int *pmu_disable_count;
1: + struct perf_cpu_context *pmu_cpu_context;
1: + atomic_t exclusive_cnt;
1: + int task_ctx_nr;
1: + int hrtimer_interval_ms;
1: + unsigned int nr_addr_filters;
1: + void (*pmu_enable)(struct pmu *);
1: + void (*pmu_disable)(struct pmu *);
1: + int (*event_init)(struct perf_event *);
1: + void (*event_mapped)(struct perf_event *, struct mm_struct *);
1: + void (*event_unmapped)(struct perf_event *, struct mm_struct *);
1: + int (*add)(struct perf_event *, int);
1: + void (*del)(struct perf_event *, int);
1: + void (*start)(struct perf_event *, int);
1: + void (*stop)(struct perf_event *, int);
1: + void (*read)(struct perf_event *);
1: + void (*start_txn)(struct pmu *, unsigned int);
1: + int (*commit_txn)(struct pmu *);
1: + void (*cancel_txn)(struct pmu *);
1: + int (*event_idx)(struct perf_event *);
1: + void (*sched_task)(struct perf_event_context *, bool);
1: + struct kmem_cache *task_ctx_cache;
1: + void (*swap_task_ctx)(struct perf_event_context *, struct perf_event_context *);
1: + void * (*setup_aux)(struct perf_event *, void **, int, bool);
1: + void (*free_aux)(void *);
1: + long int (*snapshot_aux)(struct perf_event *, struct perf_output_handle *, long unsigned int);
1: + int (*addr_filters_validate)(struct list_head *);
1: + void (*addr_filters_sync)(struct perf_event *);
1: + int (*aux_output_match)(struct perf_event *);
1: + int (*filter_match)(struct perf_event *);
1: + int (*check_period)(struct perf_event *, u64);
1: +};
1: +
1: +enum perf_event_state {
1: + PERF_EVENT_STATE_DEAD = 4294967292,
1: + PERF_EVENT_STATE_EXIT = 4294967293,
1: + PERF_EVENT_STATE_ERROR = 4294967294,
1: + PERF_EVENT_STATE_OFF = 4294967295,
1: + PERF_EVENT_STATE_INACTIVE = 0,
1: + PERF_EVENT_STATE_ACTIVE = 1,
1: +};
1: +
1: +typedef struct {
1: + long int v;
1: +} local_t;
1: +
1: +typedef struct {
1: + local_t a;
1: +} local64_t;
1: +
1: +struct perf_event_attr {
1: + __u32 type;
1: + __u32 size;
1: + __u64 config;
1: + union {
1: + __u64 sample_period;
1: + __u64 sample_freq;
1: + };
1: + __u64 sample_type;
1: + __u64 read_format;
1: + __u64 disabled: 1;
1: + __u64 inherit: 1;
1: + __u64 pinned: 1;
1: + __u64 exclusive: 1;
1: + __u64 exclude_user: 1;
1: + __u64 exclude_kernel: 1;
1: + __u64 exclude_hv: 1;
1: + __u64 exclude_idle: 1;
1: + __u64 mmap: 1;
1: + __u64 comm: 1;
1: + __u64 freq: 1;
1: + __u64 inherit_stat: 1;
1: + __u64 enable_on_exec: 1;
1: + __u64 task: 1;
1: + __u64 watermark: 1;
1: + __u64 precise_ip: 2;
1: + __u64 mmap_data: 1;
1: + __u64 sample_id_all: 1;
1: + __u64 exclude_host: 1;
1: + __u64 exclude_guest: 1;
1: + __u64 exclude_callchain_kernel: 1;
1: + __u64 exclude_callchain_user: 1;
1: + __u64 mmap2: 1;
1: + __u64 comm_exec: 1;
1: + __u64 use_clockid: 1;
1: + __u64 context_switch: 1;
1: + __u64 write_backward: 1;
1: + __u64 namespaces: 1;
1: + __u64 ksymbol: 1;
1: + __u64 bpf_event: 1;
1: + __u64 aux_output: 1;
1: + __u64 cgroup: 1;
1: + __u64 text_poke: 1;
1: + __u64 __reserved_1: 30;
1: + union {
1: + __u32 wakeup_events;
1: + __u32 wakeup_watermark;
1: + };
1: + __u32 bp_type;
1: + union {
1: + __u64 bp_addr;
1: + __u64 kprobe_func;
1: + __u64 uprobe_path;
1: + __u64 config1;
1: + };
1: + union {
1: + __u64 bp_len;
1: + __u64 kprobe_addr;
1: + __u64 probe_offset;
1: + __u64 config2;
1: + };
1: + __u64 branch_sample_type;
1: + __u64 sample_regs_user;
1: + __u32 sample_stack_user;
1: + __s32 clockid;
1: + __u64 sample_regs_intr;
1: + __u32 aux_watermark;
1: + __u16 sample_max_stack;
1: + __u16 __reserved_2;
1: + __u32 aux_sample_size;
1: + __u32 __reserved_3;
1: +};
1: +
1: +struct hw_perf_event_extra {
1: + u64 config;
1: + unsigned int reg;
1: + int alloc;
1: + int idx;
1: +};
1: +
1: +struct hw_perf_event {
1: + union {
1: + struct {
1: + u64 config;
1: + u64 last_tag;
1: + long unsigned int config_base;
1: + long unsigned int event_base;
1: + int event_base_rdpmc;
1: + int idx;
1: + int last_cpu;
1: + int flags;
1: + struct hw_perf_event_extra extra_reg;
1: + struct hw_perf_event_extra branch_reg;
1: + };
1: + struct {
1: + struct hrtimer hrtimer;
1: + };
1: + struct {
1: + struct list_head tp_list;
1: + };
1: + struct {
1: + u64 pwr_acc;
1: + u64 ptsc;
1: + };
1: + struct {
1: + struct arch_hw_breakpoint info;
1: + struct list_head bp_list;
1: + };
1: + struct {
1: + u8 iommu_bank;
1: + u8 iommu_cntr;
1: + u16 padding;
1: + u64 conf;
1: + u64 conf1;
1: + };
1: + };
1: + struct task_struct *target;
1: + void *addr_filters;
1: + long unsigned int addr_filters_gen;
1: + int state;
1: + local64_t prev_count;
1: + u64 sample_period;
1: + union {
1: + struct {
1: + u64 last_period;
1: + local64_t period_left;
1: + };
1: + struct {
1: + u64 saved_metric;
1: + u64 saved_slots;
1: + };
1: + };
1: + u64 interrupts_seq;
1: + u64 interrupts;
1: + u64 freq_time_stamp;
1: + u64 freq_count_stamp;
1: +};
1: +
1: +struct irq_work {
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llnode;
1: + atomic_t flags;
1: + };
1: + };
1: + void (*func)(struct irq_work *);
1: +};
1: +
1: +struct perf_addr_filters_head {
1: + struct list_head list;
1: + raw_spinlock_t lock;
1: + unsigned int nr_file_filters;
1: +};
1: +
1: +struct perf_sample_data;
1: +
1: +typedef void (*perf_overflow_handler_t)(struct perf_event *, struct perf_sample_data *, struct pt_regs *);
1: +
1: +struct ftrace_ops;
1: +
1: +typedef void (*ftrace_func_t)(long unsigned int, long unsigned int, struct ftrace_ops *, struct pt_regs *);
1: +
1: +struct ftrace_hash;
1: +
1: +struct ftrace_ops_hash {
1: + struct ftrace_hash *notrace_hash;
1: + struct ftrace_hash *filter_hash;
1: + struct mutex regex_lock;
1: +};
1: +
1: +struct ftrace_ops {
1: + ftrace_func_t func;
1: + struct ftrace_ops *next;
1: + long unsigned int flags;
1: + void *private;
1: + ftrace_func_t saved_func;
1: + struct ftrace_ops_hash local_hash;
1: + struct ftrace_ops_hash *func_hash;
1: + struct ftrace_ops_hash old_hash;
1: + long unsigned int trampoline;
1: + long unsigned int trampoline_size;
1: + struct list_head list;
1: +};
1: +
1: +struct perf_buffer;
1: +
1: +struct perf_addr_filter_range;
1: +
1: +struct bpf_prog;
1: +
1: +struct trace_event_call;
1: +
1: +struct event_filter;
1: +
1: +struct perf_cgroup;
1: +
1: +struct perf_event {
1: + struct list_head event_entry;
1: + struct list_head sibling_list;
1: + struct list_head active_list;
1: + struct rb_node group_node;
1: + u64 group_index;
1: + struct list_head migrate_entry;
1: + struct hlist_node hlist_entry;
1: + struct list_head active_entry;
1: + int nr_siblings;
1: + int event_caps;
1: + int group_caps;
1: + struct perf_event *group_leader;
1: + struct pmu *pmu;
1: + void *pmu_private;
1: + enum perf_event_state state;
1: + unsigned int attach_state;
1: + local64_t count;
1: + atomic64_t child_count;
1: + u64 total_time_enabled;
1: + u64 total_time_running;
1: + u64 tstamp;
1: + u64 shadow_ctx_time;
1: + struct perf_event_attr attr;
1: + u16 header_size;
1: + u16 id_header_size;
1: + u16 read_size;
1: + struct hw_perf_event hw;
1: + struct perf_event_context *ctx;
1: + atomic_long_t refcount;
1: + atomic64_t child_total_time_enabled;
1: + atomic64_t child_total_time_running;
1: + struct mutex child_mutex;
1: + struct list_head child_list;
1: + struct perf_event *parent;
1: + int oncpu;
1: + int cpu;
1: + struct list_head owner_entry;
1: + struct task_struct *owner;
1: + struct mutex mmap_mutex;
1: + atomic_t mmap_count;
1: + struct perf_buffer *rb;
1: + struct list_head rb_entry;
1: + long unsigned int rcu_batches;
1: + int rcu_pending;
1: + wait_queue_head_t waitq;
1: + struct fasync_struct *fasync;
1: + int pending_wakeup;
1: + int pending_kill;
1: + int pending_disable;
1: + struct irq_work pending;
1: + atomic_t event_limit;
1: + struct perf_addr_filters_head addr_filters;
1: + struct perf_addr_filter_range *addr_filter_ranges;
1: + long unsigned int addr_filters_gen;
1: + struct perf_event *aux_event;
1: + void (*destroy)(struct perf_event *);
1: + struct callback_head callback_head;
1: + struct pid_namespace *ns;
1: + u64 id;
1: + u64 (*clock)();
1: + perf_overflow_handler_t overflow_handler;
1: + void *overflow_handler_context;
1: + perf_overflow_handler_t orig_overflow_handler;
1: + struct bpf_prog *prog;
1: + struct trace_event_call *tp_event;
1: + struct event_filter *filter;
1: + struct ftrace_ops ftrace_ops;
1: + struct perf_cgroup *cgrp;
1: + void *security;
1: + struct list_head sb_list;
1: +};
1: +
1: +typedef struct cpumask cpumask_var_t[1];
1: +
1: +typedef void (*smp_call_func_t)(void *);
1: +
1: +struct __call_single_data {
1: + union {
1: + struct __call_single_node node;
1: + struct {
1: + struct llist_node llist;
1: + unsigned int flags;
1: + u16 src;
1: + u16 dst;
1: + };
1: + };
1: + smp_call_func_t func;
1: + void *info;
1: +};
1: +
1: +enum irqreturn {
1: + IRQ_NONE = 0,
1: + IRQ_HANDLED = 1,
1: + IRQ_WAKE_THREAD = 2,
1: +};
1: +
1: +typedef enum irqreturn irqreturn_t;
1: +
1: +struct wait_queue_entry;
1: +
1: +typedef int (*wait_queue_func_t)(struct wait_queue_entry *, unsigned int, int, void *);
1: +
1: +struct wait_queue_entry {
1: + unsigned int flags;
1: + void *private;
1: + wait_queue_func_t func;
1: + struct list_head entry;
1: +};
1: +
1: +typedef struct wait_queue_entry wait_queue_entry_t;
1: +
1: +struct timer_list {
1: + struct hlist_node entry;
1: + long unsigned int expires;
1: + void (*function)(struct timer_list *);
1: + u32 flags;
1: +};
1: +
1: +struct delayed_work {
1: + struct work_struct work;
1: + struct timer_list timer;
1: + struct workqueue_struct *wq;
1: + int cpu;
1: +};
1: +
1: +struct rcu_work {
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + struct workqueue_struct *wq;
1: +};
1: +
1: +struct rcu_segcblist {
1: + struct callback_head *head;
1: + struct callback_head **tails[4];
1: + long unsigned int gp_seq[4];
1: + long int len;
1: + u8 enabled;
1: + u8 offloaded;
1: +};
1: +
1: +struct srcu_node;
1: +
1: +struct srcu_struct;
1: +
1: +struct srcu_data {
1: + long unsigned int srcu_lock_count[2];
1: + long unsigned int srcu_unlock_count[2];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t lock;
1: + struct rcu_segcblist srcu_cblist;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + bool srcu_cblist_invoking;
1: + struct timer_list delay_work;
1: + struct work_struct work;
1: + struct callback_head srcu_barrier_head;
1: + struct srcu_node *mynode;
1: + long unsigned int grpmask;
1: + int cpu;
1: + struct srcu_struct *ssp;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct srcu_node {
1: + spinlock_t lock;
1: + long unsigned int srcu_have_cbs[4];
1: + long unsigned int srcu_data_have_cbs[4];
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + struct srcu_node *srcu_parent;
1: + int grplo;
1: + int grphi;
1: +};
1: +
1: +struct srcu_struct {
1: + struct srcu_node node[131];
1: + struct srcu_node *level[4];
1: + struct mutex srcu_cb_mutex;
1: + spinlock_t lock;
1: + struct mutex srcu_gp_mutex;
1: + unsigned int srcu_idx;
1: + long unsigned int srcu_gp_seq;
1: + long unsigned int srcu_gp_seq_needed;
1: + long unsigned int srcu_gp_seq_needed_exp;
1: + long unsigned int srcu_last_gp_end;
1: + struct srcu_data *sda;
1: + long unsigned int srcu_barrier_seq;
1: + struct mutex srcu_barrier_mutex;
1: + struct completion srcu_barrier_completion;
1: + atomic_t srcu_barrier_cpu_cnt;
1: + struct delayed_work work;
1: +};
1: +
1: +struct cgroup;
1: +
1: +struct cgroup_subsys;
1: +
1: +struct cgroup_subsys_state {
1: + struct cgroup *cgroup;
1: + struct cgroup_subsys *ss;
1: + struct percpu_ref refcnt;
1: + struct list_head sibling;
1: + struct list_head children;
1: + struct list_head rstat_css_node;
1: + int id;
1: + unsigned int flags;
1: + u64 serial_nr;
1: + atomic_t online_cnt;
1: + struct work_struct destroy_work;
1: + struct rcu_work destroy_rwork;
1: + struct cgroup_subsys_state *parent;
1: +};
1: +
1: +struct mem_cgroup_id {
1: + int id;
1: + refcount_t ref;
1: +};
1: +
1: +struct page_counter {
1: + atomic_long_t usage;
1: + long unsigned int min;
1: + long unsigned int low;
1: + long unsigned int high;
1: + long unsigned int max;
1: + struct page_counter *parent;
1: + long unsigned int emin;
1: + atomic_long_t min_usage;
1: + atomic_long_t children_min_usage;
1: + long unsigned int elow;
1: + atomic_long_t low_usage;
1: + atomic_long_t children_low_usage;
1: + long unsigned int watermark;
1: + long unsigned int failcnt;
1: +};
1: +
1: +struct vmpressure {
1: + long unsigned int scanned;
1: + long unsigned int reclaimed;
1: + long unsigned int tree_scanned;
1: + long unsigned int tree_reclaimed;
1: + spinlock_t sr_lock;
1: + struct list_head events;
1: + struct mutex events_lock;
1: + struct work_struct work;
1: +};
1: +
1: +struct kernfs_node;
1: +
1: +struct cgroup_file {
1: + struct kernfs_node *kn;
1: + long unsigned int notified_at;
1: + struct timer_list notify_timer;
1: +};
1: +
1: +struct mem_cgroup_threshold_ary;
1: +
1: +struct mem_cgroup_thresholds {
1: + struct mem_cgroup_threshold_ary *primary;
1: + struct mem_cgroup_threshold_ary *spare;
1: +};
1: +
1: +struct memcg_padding {
1: + char x[0];
1: +};
1: +
1: +enum memcg_kmem_state {
1: + KMEM_NONE = 0,
1: + KMEM_ALLOCATED = 1,
1: + KMEM_ONLINE = 2,
1: +};
1: +
1: +struct percpu_counter {
1: + raw_spinlock_t lock;
1: + s64 count;
1: + struct list_head list;
1: + s32 *counters;
1: +};
1: +
1: +struct fprop_global {
1: + struct percpu_counter events;
1: + unsigned int period;
1: + seqcount_t sequence;
1: +};
1: +
1: +struct wb_domain {
1: + spinlock_t lock;
1: + struct fprop_global completions;
1: + struct timer_list period_timer;
1: + long unsigned int period_time;
1: + long unsigned int dirty_limit_tstamp;
1: + long unsigned int dirty_limit;
1: +};
1: +
1: +struct wb_completion {
1: + atomic_t cnt;
1: + wait_queue_head_t *waitq;
1: +};
1: +
1: +struct memcg_cgwb_frn {
1: + u64 bdi_id;
1: + int memcg_id;
1: + u64 at;
1: + struct wb_completion done;
1: +};
1: +
1: +struct deferred_split {
1: + spinlock_t split_queue_lock;
1: + struct list_head split_queue;
1: + long unsigned int split_queue_len;
1: +};
1: +
1: +struct memcg_vmstats_percpu;
1: +
1: +struct mem_cgroup_per_node;
1: +
1: +struct mem_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct mem_cgroup_id id;
1: + struct page_counter memory;
1: + union {
1: + struct page_counter swap;
1: + struct page_counter memsw;
1: + };
1: + struct page_counter kmem;
1: + struct page_counter tcpmem;
1: + struct work_struct high_work;
1: + long unsigned int soft_limit;
1: + struct vmpressure vmpressure;
1: + bool use_hierarchy;
1: + bool oom_group;
1: + bool oom_lock;
1: + int under_oom;
1: + int swappiness;
1: + int oom_kill_disable;
1: + struct cgroup_file events_file;
1: + struct cgroup_file events_local_file;
1: + struct cgroup_file swap_events_file;
1: + struct mutex thresholds_lock;
1: + struct mem_cgroup_thresholds thresholds;
1: + struct mem_cgroup_thresholds memsw_thresholds;
1: + struct list_head oom_notify;
1: + long unsigned int move_charge_at_immigrate;
1: + spinlock_t move_lock;
1: + long unsigned int move_lock_flags;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct memcg_padding _pad1_;
1: + atomic_long_t vmstats[40];
1: + atomic_long_t vmevents[89];
1: + atomic_long_t memory_events[8];
1: + atomic_long_t memory_events_local[8];
1: + long unsigned int socket_pressure;
1: + bool tcpmem_active;
1: + int tcpmem_pressure;
1: + int kmemcg_id;
1: + enum memcg_kmem_state kmem_state;
1: + struct obj_cgroup *objcg;
1: + struct list_head objcg_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct memcg_padding _pad2_;
1: + atomic_t moving_account;
1: + struct task_struct *move_lock_task;
1: + struct memcg_vmstats_percpu *vmstats_local;
1: + struct memcg_vmstats_percpu *vmstats_percpu;
1: + struct list_head cgwb_list;
1: + struct wb_domain cgwb_domain;
1: + struct memcg_cgwb_frn cgwb_frn[4];
1: + struct list_head event_list;
1: + spinlock_t event_list_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct mem_cgroup_per_node *nodeinfo[0];
1: +};
1: +
1: +struct obj_cgroup {
1: + struct percpu_ref refcnt;
1: + struct mem_cgroup *memcg;
1: + atomic_t nr_charged_bytes;
1: + union {
1: + struct list_head list;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct anon_vma {
1: + struct anon_vma *root;
1: + struct rw_semaphore rwsem;
1: + atomic_t refcount;
1: + unsigned int degree;
1: + struct anon_vma *parent;
1: + struct rb_root_cached rb_root;
1: +};
1: +
1: +struct mempolicy {
1: + atomic_t refcnt;
1: + short unsigned int mode;
1: + short unsigned int flags;
1: + union {
1: + short int preferred_node;
1: + nodemask_t nodes;
1: + } v;
1: + union {
1: + nodemask_t cpuset_mems_allowed;
1: + nodemask_t user_nodemask;
1: + } w;
1: +};
1: +
1: +struct linux_binprm;
1: +
1: +struct coredump_params;
1: +
1: +struct linux_binfmt {
1: + struct list_head lh;
1: + struct module *module;
1: + int (*load_binary)(struct linux_binprm *);
1: + int (*load_shlib)(struct file *);
1: + int (*core_dump)(struct coredump_params *);
1: + long unsigned int min_coredump;
1: +};
1: +
1: +struct free_area {
1: + struct list_head free_list[6];
1: + long unsigned int nr_free;
1: +};
1: +
1: +struct zone_padding {
1: + char x[0];
1: +};
1: +
1: +struct pglist_data;
1: +
1: +struct lruvec {
1: + struct list_head lists[5];
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + atomic_long_t nonresident_age;
1: + long unsigned int refaults[2];
1: + long unsigned int flags;
1: + struct pglist_data *pgdat;
1: +};
1: +
1: +struct per_cpu_pageset;
1: +
1: +struct zone {
1: + long unsigned int _watermark[3];
1: + long unsigned int watermark_boost;
1: + long unsigned int nr_reserved_highatomic;
1: + long int lowmem_reserve[2];
1: + int node;
1: + struct pglist_data *zone_pgdat;
1: + struct per_cpu_pageset *pageset;
1: + long unsigned int zone_start_pfn;
1: + atomic_long_t managed_pages;
1: + long unsigned int spanned_pages;
1: + long unsigned int present_pages;
1: + const char *name;
1: + long unsigned int nr_isolate_pageblock;
1: + seqlock_t span_seqlock;
1: + int initialized;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad1_;
1: + struct free_area free_area[9];
1: + long unsigned int flags;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad2_;
1: + long unsigned int percpu_drift_mark;
1: + long unsigned int compact_cached_free_pfn;
1: + long unsigned int compact_cached_migrate_pfn[2];
1: + long unsigned int compact_init_migrate_pfn;
1: + long unsigned int compact_init_free_pfn;
1: + unsigned int compact_considered;
1: + unsigned int compact_defer_shift;
1: + int compact_order_failed;
1: + bool compact_blockskip_flush;
1: + bool contiguous;
1: + long: 16;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad3_;
1: + atomic_long_t vm_stat[12];
1: + atomic_long_t vm_numa_stat[6];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct zoneref {
1: + struct zone *zone;
1: + int zone_idx;
1: +};
1: +
1: +struct zonelist {
1: + struct zoneref _zonerefs[513];
1: +};
1: +
1: +enum zone_type {
1: + ZONE_NORMAL = 0,
1: + ZONE_MOVABLE = 1,
1: + __MAX_NR_ZONES = 2,
1: +};
1: +
1: +struct per_cpu_nodestat;
1: +
1: +struct pglist_data {
1: + struct zone node_zones[2];
1: + struct zonelist node_zonelists[2];
1: + int nr_zones;
1: + spinlock_t node_size_lock;
1: + long unsigned int node_start_pfn;
1: + long unsigned int node_present_pages;
1: + long unsigned int node_spanned_pages;
1: + int node_id;
1: + wait_queue_head_t kswapd_wait;
1: + wait_queue_head_t pfmemalloc_wait;
1: + struct task_struct *kswapd;
1: + int kswapd_order;
1: + enum zone_type kswapd_highest_zoneidx;
1: + int kswapd_failures;
1: + int kcompactd_max_order;
1: + enum zone_type kcompactd_highest_zoneidx;
1: + wait_queue_head_t kcompactd_wait;
1: + struct task_struct *kcompactd;
1: + long unsigned int totalreserve_pages;
1: + long unsigned int min_unmapped_pages;
1: + long unsigned int min_slab_pages;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad1_;
1: + spinlock_t lru_lock;
1: + struct deferred_split deferred_split_queue;
1: + struct lruvec __lruvec;
1: + long unsigned int flags;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct zone_padding _pad2_;
1: + struct per_cpu_nodestat *per_cpu_nodestats;
1: + atomic_long_t vm_stat[37];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct per_cpu_pages {
1: + int count;
1: + int high;
1: + int batch;
1: + struct list_head lists[3];
1: +};
1: +
1: +struct per_cpu_pageset {
1: + struct per_cpu_pages pcp;
1: + s8 expire;
1: + u16 vm_numa_stat_diff[6];
1: + s8 stat_threshold;
1: + s8 vm_stat_diff[12];
1: +};
1: +
1: +struct per_cpu_nodestat {
1: + s8 stat_threshold;
1: + s8 vm_node_stat_diff[37];
1: +};
1: +
1: +typedef int proc_handler(struct ctl_table *, int, void *, size_t *, loff_t *);
1: +
1: +struct ctl_table_poll;
1: +
1: +struct ctl_table {
1: + const char *procname;
1: + void *data;
1: + int maxlen;
1: + umode_t mode;
1: + struct ctl_table *child;
1: + proc_handler *proc_handler;
1: + struct ctl_table_poll *poll;
1: + void *extra1;
1: + void *extra2;
1: +};
1: +
1: +struct ctl_table_poll {
1: + atomic_t event;
1: + wait_queue_head_t wait;
1: +};
1: +
1: +struct ctl_node {
1: + struct rb_node node;
1: + struct ctl_table_header *header;
1: +};
1: +
1: +struct ctl_table_root {
1: + struct ctl_table_set default_set;
1: + struct ctl_table_set * (*lookup)(struct ctl_table_root *);
1: + void (*set_ownership)(struct ctl_table_header *, struct ctl_table *, kuid_t *, kgid_t *);
1: + int (*permissions)(struct ctl_table_header *, struct ctl_table *);
1: +};
1: +
1: +enum umh_disable_depth {
1: + UMH_ENABLED = 0,
1: + UMH_FREEZING = 1,
1: + UMH_DISABLED = 2,
1: +};
1: +
1: +struct kref {
1: + refcount_t refcount;
1: +};
1: +
1: +struct idr {
1: + struct xarray idr_rt;
1: + unsigned int idr_base;
1: + unsigned int idr_next;
1: +};
1: +
1: +struct fs_pin;
1: +
1: +struct pid_namespace {
1: + struct kref kref;
1: + struct idr idr;
1: + struct callback_head rcu;
1: + unsigned int pid_allocated;
1: + struct task_struct *child_reaper;
1: + struct kmem_cache *pid_cachep;
1: + unsigned int level;
1: + struct pid_namespace *parent;
1: + struct fs_pin *bacct;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + int reboot;
1: + struct ns_common ns;
1: +};
1: +
1: +struct task_cputime {
1: + u64 stime;
1: + u64 utime;
1: + long long unsigned int sum_exec_runtime;
1: +};
1: +
1: +struct uts_namespace;
1: +
1: +struct ipc_namespace;
1: +
1: +struct mnt_namespace;
1: +
1: +struct net;
1: +
1: +struct time_namespace;
1: +
1: +struct cgroup_namespace;
1: +
1: +struct nsproxy {
1: + atomic_t count;
1: + struct uts_namespace *uts_ns;
1: + struct ipc_namespace *ipc_ns;
1: + struct mnt_namespace *mnt_ns;
1: + struct pid_namespace *pid_ns_for_children;
1: + struct net *net_ns;
1: + struct time_namespace *time_ns;
1: + struct time_namespace *time_ns_for_children;
1: + struct cgroup_namespace *cgroup_ns;
1: +};
1: +
1: +struct bio;
1: +
1: +struct bio_list {
1: + struct bio *head;
1: + struct bio *tail;
1: +};
1: +
1: +struct blk_plug {
1: + struct list_head mq_list;
1: + struct list_head cb_list;
1: + short unsigned int rq_count;
1: + bool multiple_queues;
1: + bool nowait;
1: +};
1: +
1: +struct reclaim_state {
1: + long unsigned int reclaimed_slab;
1: +};
1: +
1: +struct fprop_local_percpu {
1: + struct percpu_counter events;
1: + unsigned int period;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +enum wb_reason {
1: + WB_REASON_BACKGROUND = 0,
1: + WB_REASON_VMSCAN = 1,
1: + WB_REASON_SYNC = 2,
1: + WB_REASON_PERIODIC = 3,
1: + WB_REASON_LAPTOP_TIMER = 4,
1: + WB_REASON_FS_FREE_SPACE = 5,
1: + WB_REASON_FORKER_THREAD = 6,
1: + WB_REASON_FOREIGN_FLUSH = 7,
1: + WB_REASON_MAX = 8,
1: +};
1: +
1: +struct bdi_writeback {
1: + struct backing_dev_info *bdi;
1: + long unsigned int state;
1: + long unsigned int last_old_flush;
1: + struct list_head b_dirty;
1: + struct list_head b_io;
1: + struct list_head b_more_io;
1: + struct list_head b_dirty_time;
1: + spinlock_t list_lock;
1: + struct percpu_counter stat[4];
1: + long unsigned int congested;
1: + long unsigned int bw_time_stamp;
1: + long unsigned int dirtied_stamp;
1: + long unsigned int written_stamp;
1: + long unsigned int write_bandwidth;
1: + long unsigned int avg_write_bandwidth;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + struct fprop_local_percpu completions;
1: + int dirty_exceeded;
1: + enum wb_reason start_all_reason;
1: + spinlock_t work_lock;
1: + struct list_head work_list;
1: + struct delayed_work dwork;
1: + long unsigned int dirty_sleep;
1: + struct list_head bdi_node;
1: + struct percpu_ref refcnt;
1: + struct fprop_local_percpu memcg_completions;
1: + struct cgroup_subsys_state *memcg_css;
1: + struct cgroup_subsys_state *blkcg_css;
1: + struct list_head memcg_node;
1: + struct list_head blkcg_node;
1: + union {
1: + struct work_struct release_work;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct backing_dev_info {
1: + u64 id;
1: + struct rb_node rb_node;
1: + struct list_head bdi_list;
1: + long unsigned int ra_pages;
1: + long unsigned int io_pages;
1: + struct kref refcnt;
1: + unsigned int capabilities;
1: + unsigned int min_ratio;
1: + unsigned int max_ratio;
1: + unsigned int max_prop_frac;
1: + atomic_long_t tot_write_bandwidth;
1: + struct bdi_writeback wb;
1: + struct list_head wb_list;
1: + struct xarray cgwb_tree;
1: + struct mutex cgwb_release_mutex;
1: + struct rw_semaphore wb_switch_rwsem;
1: + wait_queue_head_t wb_waitq;
1: + struct device *dev;
1: + char dev_name[64];
1: + struct device *owner;
1: + struct timer_list laptop_mode_wb_timer;
1: + struct dentry *debug_dir;
1: +};
1: +
1: +struct css_set {
1: + struct cgroup_subsys_state *subsys[12];
1: + refcount_t refcount;
1: + struct css_set *dom_cset;
1: + struct cgroup *dfl_cgrp;
1: + int nr_tasks;
1: + struct list_head tasks;
1: + struct list_head mg_tasks;
1: + struct list_head dying_tasks;
1: + struct list_head task_iters;
1: + struct list_head e_cset_node[12];
1: + struct list_head threaded_csets;
1: + struct list_head threaded_csets_node;
1: + struct hlist_node hlist;
1: + struct list_head cgrp_links;
1: + struct list_head mg_preload_node;
1: + struct list_head mg_node;
1: + struct cgroup *mg_src_cgrp;
1: + struct cgroup *mg_dst_cgrp;
1: + struct css_set *mg_dst_cset;
1: + bool dead;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct perf_event_groups {
1: + struct rb_root tree;
1: + u64 index;
1: +};
1: +
1: +struct perf_event_context {
1: + struct pmu *pmu;
1: + raw_spinlock_t lock;
1: + struct mutex mutex;
1: + struct list_head active_ctx_list;
1: + struct perf_event_groups pinned_groups;
1: + struct perf_event_groups flexible_groups;
1: + struct list_head event_list;
1: + struct list_head pinned_active;
1: + struct list_head flexible_active;
1: + int nr_events;
1: + int nr_active;
1: + int is_active;
1: + int nr_stat;
1: + int nr_freq;
1: + int rotate_disable;
1: + int rotate_necessary;
1: + refcount_t refcount;
1: + struct task_struct *task;
1: + u64 time;
1: + u64 timestamp;
1: + struct perf_event_context *parent_ctx;
1: + u64 parent_gen;
1: + u64 generation;
1: + int pin_count;
1: + int nr_cgroups;
1: + void *task_ctx_data;
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct task_delay_info {
1: + raw_spinlock_t lock;
1: + unsigned int flags;
1: + u64 blkio_start;
1: + u64 blkio_delay;
1: + u64 swapin_delay;
1: + u32 blkio_count;
1: + u32 swapin_count;
1: + u64 freepages_start;
1: + u64 freepages_delay;
1: + u64 thrashing_start;
1: + u64 thrashing_delay;
1: + u32 freepages_count;
1: + u32 thrashing_count;
1: +};
1: +
1: +struct ftrace_ret_stack {
1: + long unsigned int ret;
1: + long unsigned int func;
1: + long long unsigned int calltime;
1: + long unsigned int *retp;
1: +};
1: +
1: +struct kset;
1: +
1: +struct kobj_type;
1: +
1: +struct kobject {
1: + const char *name;
1: + struct list_head entry;
1: + struct kobject *parent;
1: + struct kset *kset;
1: + struct kobj_type *ktype;
1: + struct kernfs_node *sd;
1: + struct kref kref;
1: + unsigned int state_initialized: 1;
1: + unsigned int state_in_sysfs: 1;
1: + unsigned int state_add_uevent_sent: 1;
1: + unsigned int state_remove_uevent_sent: 1;
1: + unsigned int uevent_suppress: 1;
1: +};
1: +
1: +struct blk_integrity_profile;
1: +
1: +struct blk_integrity {
1: + const struct blk_integrity_profile *profile;
1: + unsigned char flags;
1: + unsigned char tuple_size;
1: + unsigned char interval_exp;
1: + unsigned char tag_size;
1: +};
1: +
1: +enum rpm_status {
1: + RPM_ACTIVE = 0,
1: + RPM_RESUMING = 1,
1: + RPM_SUSPENDED = 2,
1: + RPM_SUSPENDING = 3,
1: +};
1: +
1: +struct blk_rq_stat {
1: + u64 mean;
1: + u64 min;
1: + u64 max;
1: + u32 nr_samples;
1: + u64 batch;
1: +};
1: +
1: +enum blk_zoned_model {
1: + BLK_ZONED_NONE = 0,
1: + BLK_ZONED_HA = 1,
1: + BLK_ZONED_HM = 2,
1: +};
1: +
1: +struct queue_limits {
1: + long unsigned int bounce_pfn;
1: + long unsigned int seg_boundary_mask;
1: + long unsigned int virt_boundary_mask;
1: + unsigned int max_hw_sectors;
1: + unsigned int max_dev_sectors;
1: + unsigned int chunk_sectors;
1: + unsigned int max_sectors;
1: + unsigned int max_segment_size;
1: + unsigned int physical_block_size;
1: + unsigned int logical_block_size;
1: + unsigned int alignment_offset;
1: + unsigned int io_min;
1: + unsigned int io_opt;
1: + unsigned int max_discard_sectors;
1: + unsigned int max_hw_discard_sectors;
1: + unsigned int max_write_same_sectors;
1: + unsigned int max_write_zeroes_sectors;
1: + unsigned int max_zone_append_sectors;
1: + unsigned int discard_granularity;
1: + unsigned int discard_alignment;
1: + short unsigned int max_segments;
1: + short unsigned int max_integrity_segments;
1: + short unsigned int max_discard_segments;
1: + unsigned char misaligned;
1: + unsigned char discard_misaligned;
1: + unsigned char raid_partial_stripes_expensive;
1: + enum blk_zoned_model zoned;
1: +};
1: +
1: +struct bsg_ops;
1: +
1: +struct bsg_class_device {
1: + struct device *class_dev;
1: + int minor;
1: + struct request_queue *queue;
1: + const struct bsg_ops *ops;
1: +};
1: +
1: +typedef void *mempool_alloc_t(gfp_t, void *);
1: +
1: +typedef void mempool_free_t(void *, void *);
1: +
1: +struct mempool_s {
1: + spinlock_t lock;
1: + int min_nr;
1: + int curr_nr;
1: + void **elements;
1: + void *pool_data;
1: + mempool_alloc_t *alloc;
1: + mempool_free_t *free;
1: + wait_queue_head_t wait;
1: +};
1: +
1: +typedef struct mempool_s mempool_t;
1: +
1: +struct bio_set {
1: + struct kmem_cache *bio_slab;
1: + unsigned int front_pad;
1: + mempool_t bio_pool;
1: + mempool_t bvec_pool;
1: + mempool_t bio_integrity_pool;
1: + mempool_t bvec_integrity_pool;
1: + spinlock_t rescue_lock;
1: + struct bio_list rescue_list;
1: + struct work_struct rescue_work;
1: + struct workqueue_struct *rescue_workqueue;
1: +};
1: +
1: +struct request;
1: +
1: +struct elevator_queue;
1: +
1: +struct blk_queue_stats;
1: +
1: +struct rq_qos;
1: +
1: +struct blk_mq_ops;
1: +
1: +struct blk_mq_ctx;
1: +
1: +struct blk_mq_hw_ctx;
1: +
1: +struct blk_keyslot_manager;
1: +
1: +struct blk_stat_callback;
1: +
1: +struct blkcg_gq;
1: +
1: +struct blk_trace;
1: +
1: +struct blk_flush_queue;
1: +
1: +struct throtl_data;
1: +
1: +struct blk_mq_tag_set;
1: +
1: +struct request_queue {
1: + struct request *last_merge;
1: + struct elevator_queue *elevator;
1: + struct percpu_ref q_usage_counter;
1: + struct blk_queue_stats *stats;
1: + struct rq_qos *rq_qos;
1: + const struct blk_mq_ops *mq_ops;
1: + struct blk_mq_ctx *queue_ctx;
1: + unsigned int queue_depth;
1: + struct blk_mq_hw_ctx **queue_hw_ctx;
1: + unsigned int nr_hw_queues;
1: + struct backing_dev_info *backing_dev_info;
1: + void *queuedata;
1: + long unsigned int queue_flags;
1: + atomic_t pm_only;
1: + int id;
1: + gfp_t bounce_gfp;
1: + spinlock_t queue_lock;
1: + struct kobject kobj;
1: + struct kobject *mq_kobj;
1: + struct blk_integrity integrity;
1: + struct device *dev;
1: + enum rpm_status rpm_status;
1: + unsigned int nr_pending;
1: + long unsigned int nr_requests;
1: + unsigned int dma_pad_mask;
1: + unsigned int dma_alignment;
1: + struct blk_keyslot_manager *ksm;
1: + unsigned int rq_timeout;
1: + int poll_nsec;
1: + struct blk_stat_callback *poll_cb;
1: + struct blk_rq_stat poll_stat[16];
1: + struct timer_list timeout;
1: + struct work_struct timeout_work;
1: + atomic_t nr_active_requests_shared_sbitmap;
1: + struct list_head icq_list;
1: + long unsigned int blkcg_pols[1];
1: + struct blkcg_gq *root_blkg;
1: + struct list_head blkg_list;
1: + struct queue_limits limits;
1: + unsigned int required_elevator_features;
1: + unsigned int nr_zones;
1: + long unsigned int *conv_zones_bitmap;
1: + long unsigned int *seq_zones_wlock;
1: + unsigned int max_open_zones;
1: + unsigned int max_active_zones;
1: + unsigned int sg_timeout;
1: + unsigned int sg_reserved_size;
1: + int node;
1: + struct mutex debugfs_mutex;
1: + struct blk_trace *blk_trace;
1: + struct blk_flush_queue *fq;
1: + struct list_head requeue_list;
1: + spinlock_t requeue_lock;
1: + struct delayed_work requeue_work;
1: + struct mutex sysfs_lock;
1: + struct mutex sysfs_dir_lock;
1: + struct list_head unused_hctx_list;
1: + spinlock_t unused_hctx_lock;
1: + int mq_freeze_depth;
1: + struct bsg_class_device bsg_dev;
1: + struct throtl_data *td;
1: + struct callback_head callback_head;
1: + wait_queue_head_t mq_freeze_wq;
1: + struct mutex mq_freeze_lock;
1: + struct blk_mq_tag_set *tag_set;
1: + struct list_head tag_set_list;
1: + struct bio_set bio_split;
1: + struct dentry *debugfs_dir;
1: + bool mq_sysfs_init_done;
1: + size_t cmd_size;
1: + u64 write_hints[5];
1: +};
1: +
1: +typedef __u64 Elf64_Addr;
1: +
1: +typedef __u16 Elf64_Half;
1: +
1: +typedef __u32 Elf64_Word;
1: +
1: +typedef __u64 Elf64_Xword;
1: +
1: +struct elf64_sym {
1: + Elf64_Word st_name;
1: + unsigned char st_info;
1: + unsigned char st_other;
1: + Elf64_Half st_shndx;
1: + Elf64_Addr st_value;
1: + Elf64_Xword st_size;
1: +};
1: +
1: +typedef struct elf64_sym Elf64_Sym;
1: +
1: +struct kernfs_root;
1: +
1: +struct kernfs_elem_dir {
1: + long unsigned int subdirs;
1: + struct rb_root children;
1: + struct kernfs_root *root;
1: +};
1: +
1: +struct kernfs_syscall_ops;
1: +
1: +struct kernfs_root {
1: + struct kernfs_node *kn;
1: + unsigned int flags;
1: + struct idr ino_idr;
1: + u32 last_id_lowbits;
1: + u32 id_highbits;
1: + struct kernfs_syscall_ops *syscall_ops;
1: + struct list_head supers;
1: + wait_queue_head_t deactivate_waitq;
1: +};
1: +
1: +struct kernfs_elem_symlink {
1: + struct kernfs_node *target_kn;
1: +};
1: +
1: +struct kernfs_ops;
1: +
1: +struct kernfs_open_node;
1: +
1: +struct kernfs_elem_attr {
1: + const struct kernfs_ops *ops;
1: + struct kernfs_open_node *open;
1: + loff_t size;
1: + struct kernfs_node *notify_next;
1: +};
1: +
1: +struct kernfs_iattrs;
1: +
1: +struct kernfs_node {
1: + atomic_t count;
1: + atomic_t active;
1: + struct kernfs_node *parent;
1: + const char *name;
1: + struct rb_node rb;
1: + const void *ns;
1: + unsigned int hash;
1: + union {
1: + struct kernfs_elem_dir dir;
1: + struct kernfs_elem_symlink symlink;
1: + struct kernfs_elem_attr attr;
1: + };
1: + void *priv;
1: + u64 id;
1: + short unsigned int flags;
1: + umode_t mode;
1: + struct kernfs_iattrs *iattr;
1: +};
1: +
1: +struct kernfs_open_file;
1: +
1: +struct kernfs_ops {
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void * (*seq_start)(struct seq_file *, loff_t *);
1: + void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + ssize_t (*read)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + size_t atomic_write_len;
1: + bool prealloc;
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: + int (*mmap)(struct kernfs_open_file *, struct vm_area_struct *);
1: +};
1: +
1: +struct kernfs_syscall_ops {
1: + int (*show_options)(struct seq_file *, struct kernfs_root *);
1: + int (*mkdir)(struct kernfs_node *, const char *, umode_t);
1: + int (*rmdir)(struct kernfs_node *);
1: + int (*rename)(struct kernfs_node *, struct kernfs_node *, const char *);
1: + int (*show_path)(struct seq_file *, struct kernfs_node *, struct kernfs_root *);
1: +};
1: +
1: +struct kernfs_open_file {
1: + struct kernfs_node *kn;
1: + struct file *file;
1: + struct seq_file *seq_file;
1: + void *priv;
1: + struct mutex mutex;
1: + struct mutex prealloc_mutex;
1: + int event;
1: + struct list_head list;
1: + char *prealloc_buf;
1: + size_t atomic_write_len;
1: + bool mmapped: 1;
1: + bool released: 1;
1: + const struct vm_operations_struct *vm_ops;
1: +};
1: +
1: +typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_table_struct *);
1: +
1: +struct poll_table_struct {
1: + poll_queue_proc _qproc;
1: + __poll_t _key;
1: +};
1: +
1: +enum kobj_ns_type {
1: + KOBJ_NS_TYPE_NONE = 0,
1: + KOBJ_NS_TYPE_NET = 1,
1: + KOBJ_NS_TYPES = 2,
1: +};
1: +
1: +struct sock;
1: +
1: +struct kobj_ns_type_operations {
1: + enum kobj_ns_type type;
1: + bool (*current_may_mount)();
1: + void * (*grab_current_ns)();
1: + const void * (*netlink_ns)(struct sock *);
1: + const void * (*initial_ns)();
1: + void (*drop_ns)(void *);
1: +};
1: +
1: +struct attribute {
1: + const char *name;
1: + umode_t mode;
1: +};
1: +
1: +struct bin_attribute;
1: +
1: +struct attribute_group {
1: + const char *name;
1: + umode_t (*is_visible)(struct kobject *, struct attribute *, int);
1: + umode_t (*is_bin_visible)(struct kobject *, struct bin_attribute *, int);
1: + struct attribute **attrs;
1: + struct bin_attribute **bin_attrs;
1: +};
1: +
1: +struct bin_attribute {
1: + struct attribute attr;
1: + size_t size;
1: + void *private;
1: + ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: + ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *, char *, loff_t, size_t);
1: + int (*mmap)(struct file *, struct kobject *, struct bin_attribute *, struct vm_area_struct *);
1: +};
1: +
1: +struct sysfs_ops {
1: + ssize_t (*show)(struct kobject *, struct attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
1: +};
1: +
1: +struct kset_uevent_ops;
1: +
1: +struct kset {
1: + struct list_head list;
1: + spinlock_t list_lock;
1: + struct kobject kobj;
1: + const struct kset_uevent_ops *uevent_ops;
1: +};
1: +
1: +struct kobj_type {
1: + void (*release)(struct kobject *);
1: + const struct sysfs_ops *sysfs_ops;
1: + struct attribute **default_attrs;
1: + const struct attribute_group **default_groups;
1: + const struct kobj_ns_type_operations * (*child_ns_type)(struct kobject *);
1: + const void * (*namespace)(struct kobject *);
1: + void (*get_ownership)(struct kobject *, kuid_t *, kgid_t *);
1: +};
1: +
1: +struct kobj_uevent_env {
1: + char *argv[3];
1: + char *envp[64];
1: + int envp_idx;
1: + char buf[2048];
1: + int buflen;
1: +};
1: +
1: +struct kset_uevent_ops {
1: + int (* const filter)(struct kset *, struct kobject *);
1: + const char * (* const name)(struct kset *, struct kobject *);
1: + int (* const uevent)(struct kset *, struct kobject *, struct kobj_uevent_env *);
1: +};
1: +
1: +struct kernel_param;
1: +
1: +struct kernel_param_ops {
1: + unsigned int flags;
1: + int (*set)(const char *, const struct kernel_param *);
1: + int (*get)(char *, const struct kernel_param *);
1: + void (*free)(void *);
1: +};
1: +
1: +struct kparam_string;
1: +
1: +struct kparam_array;
1: +
1: +struct kernel_param {
1: + const char *name;
1: + struct module *mod;
1: + const struct kernel_param_ops *ops;
1: + const u16 perm;
1: + s8 level;
1: + u8 flags;
1: + union {
1: + void *arg;
1: + const struct kparam_string *str;
1: + const struct kparam_array *arr;
1: + };
1: +};
1: +
1: +struct kparam_string {
1: + unsigned int maxlen;
1: + char *string;
1: +};
1: +
1: +struct kparam_array {
1: + unsigned int max;
1: + unsigned int elemsize;
1: + unsigned int *num;
1: + const struct kernel_param_ops *ops;
1: + void *elem;
1: +};
1: +
1: +enum module_state {
1: + MODULE_STATE_LIVE = 0,
1: + MODULE_STATE_COMING = 1,
1: + MODULE_STATE_GOING = 2,
1: + MODULE_STATE_UNFORMED = 3,
1: +};
1: +
1: +struct module_param_attrs;
1: +
1: +struct module_kobject {
1: + struct kobject kobj;
1: + struct module *mod;
1: + struct kobject *drivers_dir;
1: + struct module_param_attrs *mp;
1: + struct completion *kobj_completion;
1: +};
1: +
1: +struct latch_tree_node {
1: + struct rb_node node[2];
1: +};
1: +
1: +struct mod_tree_node {
1: + struct module *mod;
1: + struct latch_tree_node node;
1: +};
1: +
1: +struct module_layout {
1: + void *base;
1: + unsigned int size;
1: + unsigned int text_size;
1: + unsigned int ro_size;
1: + unsigned int ro_after_init_size;
1: + struct mod_tree_node mtn;
1: +};
1: +
1: +struct mod_arch_specific {
1: + unsigned int stubs_section;
1: + unsigned int toc_section;
1: + bool toc_fixed;
1: + long unsigned int start_opd;
1: + long unsigned int end_opd;
1: + long unsigned int tramp;
1: + long unsigned int tramp_regs;
1: + struct list_head bug_list;
1: + struct bug_entry *bug_table;
1: + unsigned int num_bugs;
1: +};
1: +
1: +struct mod_kallsyms {
1: + Elf64_Sym *symtab;
1: + unsigned int num_symtab;
1: + char *strtab;
1: + char *typetab;
1: +};
1: +
1: +struct module_attribute;
1: +
1: +struct exception_table_entry;
1: +
1: +struct module_sect_attrs;
1: +
1: +struct module_notes_attrs;
1: +
1: +struct tracepoint;
1: +
1: +typedef struct tracepoint * const tracepoint_ptr_t;
1: +
1: +struct bpf_raw_event_map;
1: +
1: +struct trace_eval_map;
1: +
1: +struct error_injection_entry;
1: +
1: +struct module {
1: + enum module_state state;
1: + struct list_head list;
1: + char name[56];
1: + struct module_kobject mkobj;
1: + struct module_attribute *modinfo_attrs;
1: + const char *version;
1: + const char *srcversion;
1: + struct kobject *holders_dir;
1: + const struct kernel_symbol *syms;
1: + const s32 *crcs;
1: + unsigned int num_syms;
1: + struct mutex param_lock;
1: + struct kernel_param *kp;
1: + unsigned int num_kp;
1: + unsigned int num_gpl_syms;
1: + const struct kernel_symbol *gpl_syms;
1: + const s32 *gpl_crcs;
1: + bool using_gplonly_symbols;
1: + const struct kernel_symbol *unused_syms;
1: + const s32 *unused_crcs;
1: + unsigned int num_unused_syms;
1: + unsigned int num_unused_gpl_syms;
1: + const struct kernel_symbol *unused_gpl_syms;
1: + const s32 *unused_gpl_crcs;
1: + bool sig_ok;
1: + bool async_probe_requested;
1: + const struct kernel_symbol *gpl_future_syms;
1: + const s32 *gpl_future_crcs;
1: + unsigned int num_gpl_future_syms;
1: + unsigned int num_exentries;
1: + struct exception_table_entry *extable;
1: + int (*init)();
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct module_layout core_layout;
1: + struct module_layout init_layout;
1: + struct mod_arch_specific arch;
1: + long unsigned int taints;
1: + unsigned int num_bugs;
1: + struct list_head bug_list;
1: + struct bug_entry *bug_table;
1: + struct mod_kallsyms *kallsyms;
1: + struct mod_kallsyms core_kallsyms;
1: + struct module_sect_attrs *sect_attrs;
1: + struct module_notes_attrs *notes_attrs;
1: + char *args;
1: + void *percpu;
1: + unsigned int percpu_size;
1: + void *noinstr_text_start;
1: + unsigned int noinstr_text_size;
1: + unsigned int num_tracepoints;
1: + tracepoint_ptr_t *tracepoints_ptrs;
1: + unsigned int num_srcu_structs;
1: + struct srcu_struct **srcu_struct_ptrs;
1: + unsigned int num_bpf_raw_events;
1: + struct bpf_raw_event_map *bpf_raw_events;
1: + struct jump_entry *jump_entries;
1: + unsigned int num_jump_entries;
1: + unsigned int num_trace_bprintk_fmt;
1: + const char **trace_bprintk_fmt_start;
1: + struct trace_event_call **trace_events;
1: + unsigned int num_trace_events;
1: + struct trace_eval_map **trace_evals;
1: + unsigned int num_trace_evals;
1: + unsigned int num_ftrace_callsites;
1: + long unsigned int *ftrace_callsites;
1: + void *kprobes_text_start;
1: + unsigned int kprobes_text_size;
1: + long unsigned int *kprobe_blacklist;
1: + unsigned int num_kprobe_blacklist;
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + void (*exit)();
1: + atomic_t refcnt;
1: + struct error_injection_entry *ei_funcs;
1: + unsigned int num_ei_funcs;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct error_injection_entry {
1: + long unsigned int addr;
1: + int etype;
1: +};
1: +
1: +struct tracepoint_func {
1: + void *func;
1: + void *data;
1: + int prio;
1: +};
1: +
1: +struct static_call_key;
1: +
1: +struct tracepoint {
1: + const char *name;
1: + struct static_key key;
1: + struct static_call_key *static_call_key;
1: + void *static_call_tramp;
1: + void *iterator;
1: + int (*regfunc)();
1: + void (*unregfunc)();
1: + struct tracepoint_func *funcs;
1: +};
1: +
1: +struct static_call_key {
1: + void *func;
1: +};
1: +
1: +struct bpf_raw_event_map {
1: + struct tracepoint *tp;
1: + void *bpf_func;
1: + u32 num_args;
1: + u32 writable_size;
1: + long: 64;
1: +};
1: +
1: +struct module_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct module_attribute *, struct module_kobject *, char *);
1: + ssize_t (*store)(struct module_attribute *, struct module_kobject *, const char *, size_t);
1: + void (*setup)(struct module *, const char *);
1: + int (*test)(struct module *);
1: + void (*free)(struct module *);
1: +};
1: +
1: +struct exception_table_entry {
1: + int insn;
1: + int fixup;
1: +};
1: +
1: +struct trace_event_functions;
1: +
1: +struct trace_event {
1: + struct hlist_node node;
1: + struct list_head list;
1: + int type;
1: + struct trace_event_functions *funcs;
1: +};
1: +
1: +struct trace_event_class;
1: +
1: +struct bpf_prog_array;
1: +
1: +struct trace_event_call {
1: + struct list_head list;
1: + struct trace_event_class *class;
1: + union {
1: + char *name;
1: + struct tracepoint *tp;
1: + };
1: + struct trace_event event;
1: + char *print_fmt;
1: + struct event_filter *filter;
1: + void *mod;
1: + void *data;
1: + int flags;
1: + int perf_refcount;
1: + struct hlist_head *perf_events;
1: + struct bpf_prog_array *prog_array;
1: + int (*perf_perm)(struct trace_event_call *, struct perf_event *);
1: +};
1: +
1: +struct trace_eval_map {
1: + const char *system;
1: + const char *eval_string;
1: + long unsigned int eval_value;
1: +};
1: +
1: +struct cgroup_base_stat {
1: + struct task_cputime cputime;
1: +};
1: +
1: +struct psi_group_cpu;
1: +
1: +struct psi_group {
1: + struct mutex avgs_lock;
1: + struct psi_group_cpu *pcpu;
1: + u64 avg_total[5];
1: + u64 avg_last_update;
1: + u64 avg_next_update;
1: + struct delayed_work avgs_work;
1: + u64 total[10];
1: + long unsigned int avg[15];
1: + struct task_struct *poll_task;
1: + struct timer_list poll_timer;
1: + wait_queue_head_t poll_wait;
1: + atomic_t poll_wakeup;
1: + struct mutex trigger_lock;
1: + struct list_head triggers;
1: + u32 nr_triggers[5];
1: + u32 poll_states;
1: + u64 poll_min_period;
1: + u64 polling_total[5];
1: + u64 polling_next_update;
1: + u64 polling_until;
1: +};
1: +
1: +struct cgroup_bpf {
1: + struct bpf_prog_array *effective[38];
1: + struct list_head progs[38];
1: + u32 flags[38];
1: + struct list_head storages;
1: + struct bpf_prog_array *inactive;
1: + struct percpu_ref refcnt;
1: + struct work_struct release_work;
1: +};
1: +
1: +struct cgroup_freezer_state {
1: + bool freeze;
1: + int e_freeze;
1: + int nr_frozen_descendants;
1: + int nr_frozen_tasks;
1: +};
1: +
1: +struct cgroup_root;
1: +
1: +struct cgroup_rstat_cpu;
1: +
1: +struct cgroup {
1: + struct cgroup_subsys_state self;
1: + long unsigned int flags;
1: + int level;
1: + int max_depth;
1: + int nr_descendants;
1: + int nr_dying_descendants;
1: + int max_descendants;
1: + int nr_populated_csets;
1: + int nr_populated_domain_children;
1: + int nr_populated_threaded_children;
1: + int nr_threaded_children;
1: + struct kernfs_node *kn;
1: + struct cgroup_file procs_file;
1: + struct cgroup_file events_file;
1: + u16 subtree_control;
1: + u16 subtree_ss_mask;
1: + u16 old_subtree_control;
1: + u16 old_subtree_ss_mask;
1: + struct cgroup_subsys_state *subsys[12];
1: + struct cgroup_root *root;
1: + struct list_head cset_links;
1: + struct list_head e_csets[12];
1: + struct cgroup *dom_cgrp;
1: + struct cgroup *old_dom_cgrp;
1: + struct cgroup_rstat_cpu *rstat_cpu;
1: + struct list_head rstat_css_list;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup_base_stat bstat;
1: + struct prev_cputime prev_cputime;
1: + struct list_head pidlists;
1: + struct mutex pidlist_mutex;
1: + wait_queue_head_t offline_waitq;
1: + struct work_struct release_agent_work;
1: + struct psi_group psi;
1: + struct cgroup_bpf bpf;
1: + atomic_t congestion_count;
1: + struct cgroup_freezer_state freezer;
1: + u64 ancestor_ids[0];
1: +};
1: +
1: +struct taskstats {
1: + __u16 version;
1: + __u32 ac_exitcode;
1: + __u8 ac_flag;
1: + __u8 ac_nice;
1: + __u64 cpu_count;
1: + __u64 cpu_delay_total;
1: + __u64 blkio_count;
1: + __u64 blkio_delay_total;
1: + __u64 swapin_count;
1: + __u64 swapin_delay_total;
1: + __u64 cpu_run_real_total;
1: + __u64 cpu_run_virtual_total;
1: + char ac_comm[32];
1: + __u8 ac_sched;
1: + __u8 ac_pad[3];
1: + int: 32;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u64 ac_etime;
1: + __u64 ac_utime;
1: + __u64 ac_stime;
1: + __u64 ac_minflt;
1: + __u64 ac_majflt;
1: + __u64 coremem;
1: + __u64 virtmem;
1: + __u64 hiwater_rss;
1: + __u64 hiwater_vm;
1: + __u64 read_char;
1: + __u64 write_char;
1: + __u64 read_syscalls;
1: + __u64 write_syscalls;
1: + __u64 read_bytes;
1: + __u64 write_bytes;
1: + __u64 cancelled_write_bytes;
1: + __u64 nvcsw;
1: + __u64 nivcsw;
1: + __u64 ac_utimescaled;
1: + __u64 ac_stimescaled;
1: + __u64 cpu_scaled_run_real_total;
1: + __u64 freepages_count;
1: + __u64 freepages_delay_total;
1: + __u64 thrashing_count;
1: + __u64 thrashing_delay_total;
1: + __u64 ac_btime64;
1: +};
1: +
1: +struct wait_page_queue {
1: + struct page *page;
1: + int bit_nr;
1: + wait_queue_entry_t wait;
1: +};
1: +
1: +enum writeback_sync_modes {
1: + WB_SYNC_NONE = 0,
1: + WB_SYNC_ALL = 1,
1: +};
1: +
1: +struct writeback_control {
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int for_kupdate: 1;
1: + unsigned int for_background: 1;
1: + unsigned int tagged_writepages: 1;
1: + unsigned int for_reclaim: 1;
1: + unsigned int range_cyclic: 1;
1: + unsigned int for_sync: 1;
1: + unsigned int no_cgroup_owner: 1;
1: + unsigned int punt_to_cgroup: 1;
1: + struct bdi_writeback *wb;
1: + struct inode *inode;
1: + int wb_id;
1: + int wb_lcand_id;
1: + int wb_tcand_id;
1: + size_t wb_bytes;
1: + size_t wb_lcand_bytes;
1: + size_t wb_tcand_bytes;
1: +};
1: +
1: +struct readahead_control {
1: + struct file *file;
1: + struct address_space *mapping;
1: + long unsigned int _index;
1: + unsigned int _nr_pages;
1: + unsigned int _batch_count;
1: +};
1: +
1: +struct swap_cluster_info {
1: + spinlock_t lock;
1: + unsigned int data: 24;
1: + unsigned int flags: 8;
1: +};
1: +
1: +struct swap_cluster_list {
1: + struct swap_cluster_info head;
1: + struct swap_cluster_info tail;
1: +};
1: +
1: +struct percpu_cluster;
1: +
1: +struct swap_info_struct {
1: + long unsigned int flags;
1: + short int prio;
1: + struct plist_node list;
1: + signed char type;
1: + unsigned int max;
1: + unsigned char *swap_map;
1: + struct swap_cluster_info *cluster_info;
1: + struct swap_cluster_list free_clusters;
1: + unsigned int lowest_bit;
1: + unsigned int highest_bit;
1: + unsigned int pages;
1: + unsigned int inuse_pages;
1: + unsigned int cluster_next;
1: + unsigned int cluster_nr;
1: + unsigned int *cluster_next_cpu;
1: + struct percpu_cluster *percpu_cluster;
1: + struct rb_root swap_extent_root;
1: + struct block_device *bdev;
1: + struct file *swap_file;
1: + unsigned int old_block_size;
1: + long unsigned int *frontswap_map;
1: + atomic_t frontswap_pages;
1: + spinlock_t lock;
1: + spinlock_t cont_lock;
1: + struct work_struct discard_work;
1: + struct swap_cluster_list discard_clusters;
1: + struct plist_node avail_lists[0];
1: +};
1: +
1: +struct hd_struct;
1: +
1: +struct gendisk;
1: +
1: +struct block_device {
1: + dev_t bd_dev;
1: + int bd_openers;
1: + struct inode *bd_inode;
1: + struct super_block *bd_super;
1: + struct mutex bd_mutex;
1: + void *bd_claiming;
1: + void *bd_holder;
1: + int bd_holders;
1: + bool bd_write_holder;
1: + struct list_head bd_holder_disks;
1: + struct block_device *bd_contains;
1: + u8 bd_partno;
1: + struct hd_struct *bd_part;
1: + unsigned int bd_part_count;
1: + spinlock_t bd_size_lock;
1: + struct gendisk *bd_disk;
1: + struct backing_dev_info *bd_bdi;
1: + int bd_fsfreeze_count;
1: + struct mutex bd_fsfreeze_mutex;
1: +};
1: +
1: +struct cdev {
1: + struct kobject kobj;
1: + struct module *owner;
1: + const struct file_operations *ops;
1: + struct list_head list;
1: + dev_t dev;
1: + unsigned int count;
1: +};
1: +
1: +struct fc_log;
1: +
1: +struct p_log {
1: + const char *prefix;
1: + struct fc_log *log;
1: +};
1: +
1: +enum fs_context_purpose {
1: + FS_CONTEXT_FOR_MOUNT = 0,
1: + FS_CONTEXT_FOR_SUBMOUNT = 1,
1: + FS_CONTEXT_FOR_RECONFIGURE = 2,
1: +};
1: +
1: +enum fs_context_phase {
1: + FS_CONTEXT_CREATE_PARAMS = 0,
1: + FS_CONTEXT_CREATING = 1,
1: + FS_CONTEXT_AWAITING_MOUNT = 2,
1: + FS_CONTEXT_AWAITING_RECONF = 3,
1: + FS_CONTEXT_RECONF_PARAMS = 4,
1: + FS_CONTEXT_RECONFIGURING = 5,
1: + FS_CONTEXT_FAILED = 6,
1: +};
1: +
1: +struct fs_context_operations;
1: +
1: +struct fs_context {
1: + const struct fs_context_operations *ops;
1: + struct mutex uapi_mutex;
1: + struct file_system_type *fs_type;
1: + void *fs_private;
1: + void *sget_key;
1: + struct dentry *root;
1: + struct user_namespace *user_ns;
1: + struct net *net_ns;
1: + const struct cred *cred;
1: + struct p_log log;
1: + const char *source;
1: + void *security;
1: + void *s_fs_info;
1: + unsigned int sb_flags;
1: + unsigned int sb_flags_mask;
1: + unsigned int s_iflags;
1: + unsigned int lsm_flags;
1: + enum fs_context_purpose purpose: 8;
1: + enum fs_context_phase phase: 8;
1: + bool need_free: 1;
1: + bool global: 1;
1: + bool oldapi: 1;
1: +};
1: +
1: +struct audit_names;
1: +
1: +struct filename {
1: + const char *name;
1: + const char *uptr;
1: + int refcnt;
1: + struct audit_names *aname;
1: + const char iname[0];
1: +};
1: +
1: +typedef u8 blk_status_t;
1: +
1: +struct bvec_iter {
1: + sector_t bi_sector;
1: + unsigned int bi_size;
1: + unsigned int bi_idx;
1: + unsigned int bi_bvec_done;
1: +};
1: +
1: +typedef void bio_end_io_t(struct bio *);
1: +
1: +struct bio_issue {
1: + u64 value;
1: +};
1: +
1: +struct bio_vec {
1: + struct page *bv_page;
1: + unsigned int bv_len;
1: + unsigned int bv_offset;
1: +};
1: +
1: +struct bio_crypt_ctx;
1: +
1: +struct bio_integrity_payload;
1: +
1: +struct bio {
1: + struct bio *bi_next;
1: + struct gendisk *bi_disk;
1: + unsigned int bi_opf;
1: + short unsigned int bi_flags;
1: + short unsigned int bi_ioprio;
1: + short unsigned int bi_write_hint;
1: + blk_status_t bi_status;
1: + u8 bi_partno;
1: + atomic_t __bi_remaining;
1: + struct bvec_iter bi_iter;
1: + bio_end_io_t *bi_end_io;
1: + void *bi_private;
1: + struct blkcg_gq *bi_blkg;
1: + struct bio_issue bi_issue;
1: + u64 bi_iocost_cost;
1: + struct bio_crypt_ctx *bi_crypt_context;
1: + union {
1: + struct bio_integrity_payload *bi_integrity;
1: + };
1: + short unsigned int bi_vcnt;
1: + short unsigned int bi_max_vecs;
1: + atomic_t __bi_cnt;
1: + struct bio_vec *bi_io_vec;
1: + struct bio_set *bi_pool;
1: + struct bio_vec bi_inline_vecs[0];
1: +};
1: +
1: +struct linux_binprm {
1: + struct vm_area_struct *vma;
1: + long unsigned int vma_pages;
1: + struct mm_struct *mm;
1: + long unsigned int p;
1: + long unsigned int argmin;
1: + unsigned int have_execfd: 1;
1: + unsigned int execfd_creds: 1;
1: + unsigned int secureexec: 1;
1: + unsigned int point_of_no_return: 1;
1: + struct file *executable;
1: + struct file *interpreter;
1: + struct file *file;
1: + struct cred *cred;
1: + int unsafe;
1: + unsigned int per_clear;
1: + int argc;
1: + int envc;
1: + const char *filename;
1: + const char *interp;
1: + const char *fdpath;
1: + unsigned int interp_flags;
1: + int execfd;
1: + long unsigned int loader;
1: + long unsigned int exec;
1: + struct rlimit rlim_stack;
1: + char buf[256];
1: +};
1: +
1: +struct coredump_params {
1: + const kernel_siginfo_t *siginfo;
1: + struct pt_regs *regs;
1: + struct file *file;
1: + long unsigned int limit;
1: + long unsigned int mm_flags;
1: + loff_t written;
1: + loff_t pos;
1: +};
1: +
1: +struct em_perf_state {
1: + long unsigned int frequency;
1: + long unsigned int power;
1: + long unsigned int cost;
1: +};
1: +
1: +struct em_perf_domain {
1: + struct em_perf_state *table;
1: + int nr_perf_states;
1: + long unsigned int cpus[0];
1: +};
1: +
1: +enum dl_dev_state {
1: + DL_DEV_NO_DRIVER = 0,
1: + DL_DEV_PROBING = 1,
1: + DL_DEV_DRIVER_BOUND = 2,
1: + DL_DEV_UNBINDING = 3,
1: +};
1: +
1: +struct dev_links_info {
1: + struct list_head suppliers;
1: + struct list_head consumers;
1: + struct list_head needs_suppliers;
1: + struct list_head defer_hook;
1: + bool need_for_probe;
1: + enum dl_dev_state status;
1: +};
1: +
1: +struct pm_message {
1: + int event;
1: +};
1: +
1: +typedef struct pm_message pm_message_t;
1: +
1: +enum rpm_request {
1: + RPM_REQ_NONE = 0,
1: + RPM_REQ_IDLE = 1,
1: + RPM_REQ_SUSPEND = 2,
1: + RPM_REQ_AUTOSUSPEND = 3,
1: + RPM_REQ_RESUME = 4,
1: +};
1: +
1: +struct wakeup_source;
1: +
1: +struct wake_irq;
1: +
1: +struct pm_subsys_data;
1: +
1: +struct dev_pm_qos;
1: +
1: +struct dev_pm_info {
1: + pm_message_t power_state;
1: + unsigned int can_wakeup: 1;
1: + unsigned int async_suspend: 1;
1: + bool in_dpm_list: 1;
1: + bool is_prepared: 1;
1: + bool is_suspended: 1;
1: + bool is_noirq_suspended: 1;
1: + bool is_late_suspended: 1;
1: + bool no_pm: 1;
1: + bool early_init: 1;
1: + bool direct_complete: 1;
1: + u32 driver_flags;
1: + spinlock_t lock;
1: + struct list_head entry;
1: + struct completion completion;
1: + struct wakeup_source *wakeup;
1: + bool wakeup_path: 1;
1: + bool syscore: 1;
1: + bool no_pm_callbacks: 1;
1: + unsigned int must_resume: 1;
1: + unsigned int may_skip_resume: 1;
1: + struct hrtimer suspend_timer;
1: + u64 timer_expires;
1: + struct work_struct work;
1: + wait_queue_head_t wait_queue;
1: + struct wake_irq *wakeirq;
1: + atomic_t usage_count;
1: + atomic_t child_count;
1: + unsigned int disable_depth: 3;
1: + unsigned int idle_notification: 1;
1: + unsigned int request_pending: 1;
1: + unsigned int deferred_resume: 1;
1: + unsigned int runtime_auto: 1;
1: + bool ignore_children: 1;
1: + unsigned int no_callbacks: 1;
1: + unsigned int irq_safe: 1;
1: + unsigned int use_autosuspend: 1;
1: + unsigned int timer_autosuspends: 1;
1: + unsigned int memalloc_noio: 1;
1: + unsigned int links_count;
1: + enum rpm_request request;
1: + enum rpm_status runtime_status;
1: + int runtime_error;
1: + int autosuspend_delay;
1: + u64 last_busy;
1: + u64 active_time;
1: + u64 suspended_time;
1: + u64 accounting_timestamp;
1: + struct pm_subsys_data *subsys_data;
1: + void (*set_latency_tolerance)(struct device *, s32);
1: + struct dev_pm_qos *qos;
1: +};
1: +
1: +struct iommu_table;
1: +
1: +struct pci_dn;
1: +
1: +struct eeh_dev;
1: +
1: +struct cxl_context;
1: +
1: +struct dev_archdata {
1: + dma_addr_t dma_offset;
1: + struct iommu_table *iommu_table_base;
1: + struct pci_dn *pci_data;
1: + struct eeh_dev *edev;
1: + struct cxl_context *cxl_ctx;
1: + void *iov_data;
1: +};
1: +
1: +struct device_private;
1: +
1: +struct device_type;
1: +
1: +struct bus_type;
1: +
1: +struct device_driver;
1: +
1: +struct dev_pm_domain;
1: +
1: +struct irq_domain;
1: +
1: +struct dma_map_ops;
1: +
1: +struct bus_dma_region;
1: +
1: +struct device_dma_parameters;
1: +
1: +struct dma_coherent_mem;
1: +
1: +struct device_node;
1: +
1: +struct fwnode_handle;
1: +
1: +struct class;
1: +
1: +struct iommu_group;
1: +
1: +struct dev_iommu;
1: +
1: +struct device {
1: + struct kobject kobj;
1: + struct device *parent;
1: + struct device_private *p;
1: + const char *init_name;
1: + const struct device_type *type;
1: + struct bus_type *bus;
1: + struct device_driver *driver;
1: + void *platform_data;
1: + void *driver_data;
1: + struct mutex mutex;
1: + struct dev_links_info links;
1: + struct dev_pm_info power;
1: + struct dev_pm_domain *pm_domain;
1: + struct em_perf_domain *em_pd;
1: + struct irq_domain *msi_domain;
1: + struct list_head msi_list;
1: + const struct dma_map_ops *dma_ops;
1: + u64 *dma_mask;
1: + u64 coherent_dma_mask;
1: + u64 bus_dma_limit;
1: + const struct bus_dma_region *dma_range_map;
1: + struct device_dma_parameters *dma_parms;
1: + struct list_head dma_pools;
1: + struct dma_coherent_mem *dma_mem;
1: + struct dev_archdata archdata;
1: + struct device_node *of_node;
1: + struct fwnode_handle *fwnode;
1: + int numa_node;
1: + dev_t devt;
1: + u32 id;
1: + spinlock_t devres_lock;
1: + struct list_head devres_head;
1: + struct class *class;
1: + const struct attribute_group **groups;
1: + void (*release)(struct device *);
1: + struct iommu_group *iommu_group;
1: + struct dev_iommu *iommu;
1: + bool offline_disabled: 1;
1: + bool offline: 1;
1: + bool of_node_reused: 1;
1: + bool state_synced: 1;
1: + bool dma_ops_bypass: 1;
1: +};
1: +
1: +struct dev_pm_ops {
1: + int (*prepare)(struct device *);
1: + void (*complete)(struct device *);
1: + int (*suspend)(struct device *);
1: + int (*resume)(struct device *);
1: + int (*freeze)(struct device *);
1: + int (*thaw)(struct device *);
1: + int (*poweroff)(struct device *);
1: + int (*restore)(struct device *);
1: + int (*suspend_late)(struct device *);
1: + int (*resume_early)(struct device *);
1: + int (*freeze_late)(struct device *);
1: + int (*thaw_early)(struct device *);
1: + int (*poweroff_late)(struct device *);
1: + int (*restore_early)(struct device *);
1: + int (*suspend_noirq)(struct device *);
1: + int (*resume_noirq)(struct device *);
1: + int (*freeze_noirq)(struct device *);
1: + int (*thaw_noirq)(struct device *);
1: + int (*poweroff_noirq)(struct device *);
1: + int (*restore_noirq)(struct device *);
1: + int (*runtime_suspend)(struct device *);
1: + int (*runtime_resume)(struct device *);
1: + int (*runtime_idle)(struct device *);
1: +};
1: +
1: +struct pm_domain_data;
1: +
1: +struct pm_subsys_data {
1: + spinlock_t lock;
1: + unsigned int refcount;
1: + struct list_head clock_list;
1: + struct pm_domain_data *domain_data;
1: +};
1: +
1: +struct wakeup_source {
1: + const char *name;
1: + int id;
1: + struct list_head entry;
1: + spinlock_t lock;
1: + struct wake_irq *wakeirq;
1: + struct timer_list timer;
1: + long unsigned int timer_expires;
1: + ktime_t total_time;
1: + ktime_t max_time;
1: + ktime_t last_time;
1: + ktime_t start_prevent_time;
1: + ktime_t prevent_sleep_time;
1: + long unsigned int event_count;
1: + long unsigned int active_count;
1: + long unsigned int relax_count;
1: + long unsigned int expire_count;
1: + long unsigned int wakeup_count;
1: + struct device *dev;
1: + bool active: 1;
1: + bool autosleep_enabled: 1;
1: +};
1: +
1: +struct dev_pm_domain {
1: + struct dev_pm_ops ops;
1: + int (*start)(struct device *);
1: + void (*detach)(struct device *, bool);
1: + int (*activate)(struct device *);
1: + void (*sync)(struct device *);
1: + void (*dismiss)(struct device *);
1: +};
1: +
1: +struct iommu_ops;
1: +
1: +struct subsys_private;
1: +
1: +struct bus_type {
1: + const char *name;
1: + const char *dev_name;
1: + struct device *dev_root;
1: + const struct attribute_group **bus_groups;
1: + const struct attribute_group **dev_groups;
1: + const struct attribute_group **drv_groups;
1: + int (*match)(struct device *, struct device_driver *);
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*online)(struct device *);
1: + int (*offline)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + int (*num_vf)(struct device *);
1: + int (*dma_configure)(struct device *);
1: + const struct dev_pm_ops *pm;
1: + const struct iommu_ops *iommu_ops;
1: + struct subsys_private *p;
1: + struct lock_class_key lock_key;
1: + bool need_parent_lock;
1: +};
1: +
1: +enum probe_type {
1: + PROBE_DEFAULT_STRATEGY = 0,
1: + PROBE_PREFER_ASYNCHRONOUS = 1,
1: + PROBE_FORCE_SYNCHRONOUS = 2,
1: +};
1: +
1: +struct of_device_id;
1: +
1: +struct acpi_device_id;
1: +
1: +struct driver_private;
1: +
1: +struct device_driver {
1: + const char *name;
1: + struct bus_type *bus;
1: + struct module *owner;
1: + const char *mod_name;
1: + bool suppress_bind_attrs;
1: + enum probe_type probe_type;
1: + const struct of_device_id *of_match_table;
1: + const struct acpi_device_id *acpi_match_table;
1: + int (*probe)(struct device *);
1: + void (*sync_state)(struct device *);
1: + int (*remove)(struct device *);
1: + void (*shutdown)(struct device *);
1: + int (*suspend)(struct device *, pm_message_t);
1: + int (*resume)(struct device *);
1: + const struct attribute_group **groups;
1: + const struct attribute_group **dev_groups;
1: + const struct dev_pm_ops *pm;
1: + void (*coredump)(struct device *);
1: + struct driver_private *p;
1: +};
1: +
1: +enum iommu_cap {
1: + IOMMU_CAP_CACHE_COHERENCY = 0,
1: + IOMMU_CAP_INTR_REMAP = 1,
1: + IOMMU_CAP_NOEXEC = 2,
1: +};
1: +
1: +enum iommu_attr {
1: + DOMAIN_ATTR_GEOMETRY = 0,
1: + DOMAIN_ATTR_PAGING = 1,
1: + DOMAIN_ATTR_WINDOWS = 2,
1: + DOMAIN_ATTR_FSL_PAMU_STASH = 3,
1: + DOMAIN_ATTR_FSL_PAMU_ENABLE = 4,
1: + DOMAIN_ATTR_FSL_PAMUV1 = 5,
1: + DOMAIN_ATTR_NESTING = 6,
1: + DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE = 7,
1: + DOMAIN_ATTR_MAX = 8,
1: +};
1: +
1: +enum iommu_dev_features {
1: + IOMMU_DEV_FEAT_AUX = 0,
1: + IOMMU_DEV_FEAT_SVA = 1,
1: +};
1: +
1: +struct iommu_domain;
1: +
1: +struct iommu_iotlb_gather;
1: +
1: +struct iommu_device;
1: +
1: +struct iommu_resv_region;
1: +
1: +struct of_phandle_args;
1: +
1: +struct iommu_sva;
1: +
1: +struct iommu_fault_event;
1: +
1: +struct iommu_page_response;
1: +
1: +struct iommu_cache_invalidate_info;
1: +
1: +struct iommu_gpasid_bind_data;
1: +
1: +struct iommu_ops {
1: + bool (*capable)(enum iommu_cap);
1: + struct iommu_domain * (*domain_alloc)(unsigned int);
1: + void (*domain_free)(struct iommu_domain *);
1: + int (*attach_dev)(struct iommu_domain *, struct device *);
1: + void (*detach_dev)(struct iommu_domain *, struct device *);
1: + int (*map)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int, gfp_t);
1: + size_t (*unmap)(struct iommu_domain *, long unsigned int, size_t, struct iommu_iotlb_gather *);
1: + void (*flush_iotlb_all)(struct iommu_domain *);
1: + void (*iotlb_sync_map)(struct iommu_domain *);
1: + void (*iotlb_sync)(struct iommu_domain *, struct iommu_iotlb_gather *);
1: + phys_addr_t (*iova_to_phys)(struct iommu_domain *, dma_addr_t);
1: + struct iommu_device * (*probe_device)(struct device *);
1: + void (*release_device)(struct device *);
1: + void (*probe_finalize)(struct device *);
1: + struct iommu_group * (*device_group)(struct device *);
1: + int (*domain_get_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + int (*domain_set_attr)(struct iommu_domain *, enum iommu_attr, void *);
1: + void (*get_resv_regions)(struct device *, struct list_head *);
1: + void (*put_resv_regions)(struct device *, struct list_head *);
1: + void (*apply_resv_region)(struct device *, struct iommu_domain *, struct iommu_resv_region *);
1: + int (*domain_window_enable)(struct iommu_domain *, u32, phys_addr_t, u64, int);
1: + void (*domain_window_disable)(struct iommu_domain *, u32);
1: + int (*of_xlate)(struct device *, struct of_phandle_args *);
1: + bool (*is_attach_deferred)(struct iommu_domain *, struct device *);
1: + bool (*dev_has_feat)(struct device *, enum iommu_dev_features);
1: + bool (*dev_feat_enabled)(struct device *, enum iommu_dev_features);
1: + int (*dev_enable_feat)(struct device *, enum iommu_dev_features);
1: + int (*dev_disable_feat)(struct device *, enum iommu_dev_features);
1: + int (*aux_attach_dev)(struct iommu_domain *, struct device *);
1: + void (*aux_detach_dev)(struct iommu_domain *, struct device *);
1: + int (*aux_get_pasid)(struct iommu_domain *, struct device *);
1: + struct iommu_sva * (*sva_bind)(struct device *, struct mm_struct *, void *);
1: + void (*sva_unbind)(struct iommu_sva *);
1: + u32 (*sva_get_pasid)(struct iommu_sva *);
1: + int (*page_response)(struct device *, struct iommu_fault_event *, struct iommu_page_response *);
1: + int (*cache_invalidate)(struct iommu_domain *, struct device *, struct iommu_cache_invalidate_info *);
1: + int (*sva_bind_gpasid)(struct iommu_domain *, struct device *, struct iommu_gpasid_bind_data *);
1: + int (*sva_unbind_gpasid)(struct device *, u32);
1: + int (*def_domain_type)(struct device *);
1: + long unsigned int pgsize_bitmap;
1: + struct module *owner;
1: +};
1: +
1: +struct device_type {
1: + const char *name;
1: + const struct attribute_group **groups;
1: + int (*uevent)(struct device *, struct kobj_uevent_env *);
1: + char * (*devnode)(struct device *, umode_t *, kuid_t *, kgid_t *);
1: + void (*release)(struct device *);
1: + const struct dev_pm_ops *pm;
1: +};
1: +
1: +struct class {
1: + const char *name;
1: + struct module *owner;
1: + const struct attribute_group **class_groups;
1: + const struct attribute_group **dev_groups;
1: + struct kobject *dev_kobj;
1: + int (*dev_uevent)(struct device *, struct kobj_uevent_env *);
1: + char * (*devnode)(struct device *, umode_t *);
1: + void (*class_release)(struct class *);
1: + void (*dev_release)(struct device *);
1: + int (*shutdown_pre)(struct device *);
1: + const struct kobj_ns_type_operations *ns_type;
1: + const void * (*namespace)(struct device *);
1: + void (*get_ownership)(struct device *, kuid_t *, kgid_t *);
1: + const struct dev_pm_ops *pm;
1: + struct subsys_private *p;
1: +};
1: +
1: +struct of_device_id {
1: + char name[32];
1: + char type[32];
1: + char compatible[128];
1: + const void *data;
1: +};
1: +
1: +typedef long unsigned int kernel_ulong_t;
1: +
1: +struct acpi_device_id {
1: + __u8 id[9];
1: + kernel_ulong_t driver_data;
1: + __u32 cls;
1: + __u32 cls_msk;
1: +};
1: +
1: +struct pci_controller;
1: +
1: +struct eeh_pe;
1: +
1: +struct pci_dev;
1: +
1: +struct eeh_dev {
1: + int mode;
1: + int bdfn;
1: + struct pci_controller *controller;
1: + int pe_config_addr;
1: + u32 config_space[16];
1: + int pcix_cap;
1: + int pcie_cap;
1: + int aer_cap;
1: + int af_cap;
1: + struct eeh_pe *pe;
1: + struct list_head entry;
1: + struct list_head rmv_entry;
1: + struct pci_dn *pdn;
1: + struct pci_dev *pdev;
1: + bool in_error;
1: + struct pci_dev *physfn;
1: + int vf_index;
1: +};
1: +
1: +struct device_dma_parameters {
1: + unsigned int max_segment_size;
1: + long unsigned int segment_boundary_mask;
1: +};
1: +
1: +enum irq_domain_bus_token {
1: + DOMAIN_BUS_ANY = 0,
1: + DOMAIN_BUS_WIRED = 1,
1: + DOMAIN_BUS_GENERIC_MSI = 2,
1: + DOMAIN_BUS_PCI_MSI = 3,
1: + DOMAIN_BUS_PLATFORM_MSI = 4,
1: + DOMAIN_BUS_NEXUS = 5,
1: + DOMAIN_BUS_IPI = 6,
1: + DOMAIN_BUS_FSL_MC_MSI = 7,
1: + DOMAIN_BUS_TI_SCI_INTA_MSI = 8,
1: + DOMAIN_BUS_WAKEUP = 9,
1: + DOMAIN_BUS_VMD_MSI = 10,
1: +};
1: +
1: +struct irq_domain_ops;
1: +
1: +struct irq_domain_chip_generic;
1: +
1: +struct irq_domain {
1: + struct list_head link;
1: + const char *name;
1: + const struct irq_domain_ops *ops;
1: + void *host_data;
1: + unsigned int flags;
1: + unsigned int mapcount;
1: + struct fwnode_handle *fwnode;
1: + enum irq_domain_bus_token bus_token;
1: + struct irq_domain_chip_generic *gc;
1: + struct irq_domain *parent;
1: + irq_hw_number_t hwirq_max;
1: + unsigned int revmap_direct_max_irq;
1: + unsigned int revmap_size;
1: + struct xarray revmap_tree;
1: + struct mutex revmap_tree_mutex;
1: + unsigned int linear_revmap[0];
1: +};
1: +
1: +enum dma_data_direction {
1: + DMA_BIDIRECTIONAL = 0,
1: + DMA_TO_DEVICE = 1,
1: + DMA_FROM_DEVICE = 2,
1: + DMA_NONE = 3,
1: +};
1: +
1: +struct sg_table;
1: +
1: +struct scatterlist;
1: +
1: +struct dma_map_ops {
1: + void * (*alloc)(struct device *, size_t, dma_addr_t *, gfp_t, long unsigned int);
1: + void (*free)(struct device *, size_t, void *, dma_addr_t, long unsigned int);
1: + struct page * (*alloc_pages)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: + void (*free_pages)(struct device *, size_t, struct page *, dma_addr_t, enum dma_data_direction);
1: + void * (*alloc_noncoherent)(struct device *, size_t, dma_addr_t *, enum dma_data_direction, gfp_t);
1: + void (*free_noncoherent)(struct device *, size_t, void *, dma_addr_t, enum dma_data_direction);
1: + int (*mmap)(struct device *, struct vm_area_struct *, void *, dma_addr_t, size_t, long unsigned int);
1: + int (*get_sgtable)(struct device *, struct sg_table *, void *, dma_addr_t, size_t, long unsigned int);
1: + dma_addr_t (*map_page)(struct device *, struct page *, long unsigned int, size_t, enum dma_data_direction, long unsigned int);
1: + void (*unmap_page)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + int (*map_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: + void (*unmap_sg)(struct device *, struct scatterlist *, int, enum dma_data_direction, long unsigned int);
1: + dma_addr_t (*map_resource)(struct device *, phys_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + void (*unmap_resource)(struct device *, dma_addr_t, size_t, enum dma_data_direction, long unsigned int);
1: + void (*sync_single_for_cpu)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: + void (*sync_single_for_device)(struct device *, dma_addr_t, size_t, enum dma_data_direction);
1: + void (*sync_sg_for_cpu)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: + void (*sync_sg_for_device)(struct device *, struct scatterlist *, int, enum dma_data_direction);
1: + void (*cache_sync)(struct device *, void *, size_t, enum dma_data_direction);
1: + int (*dma_supported)(struct device *, u64);
1: + u64 (*get_required_mask)(struct device *);
1: + size_t (*max_mapping_size)(struct device *);
1: + long unsigned int (*get_merge_boundary)(struct device *);
1: +};
1: +
1: +struct bus_dma_region {
1: + phys_addr_t cpu_start;
1: + dma_addr_t dma_start;
1: + u64 size;
1: + u64 offset;
1: +};
1: +
1: +struct fwnode_operations;
1: +
1: +struct fwnode_handle {
1: + struct fwnode_handle *secondary;
1: + const struct fwnode_operations *ops;
1: + struct device *dev;
1: +};
1: +
1: +struct property;
1: +
1: +struct device_node {
1: + const char *name;
1: + phandle phandle;
1: + const char *full_name;
1: + struct fwnode_handle fwnode;
1: + struct property *properties;
1: + struct property *deadprops;
1: + struct device_node *parent;
1: + struct device_node *child;
1: + struct device_node *sibling;
1: + struct kobject kobj;
1: + long unsigned int _flags;
1: + void *data;
1: +};
1: +
1: +enum cpuhp_state {
1: + CPUHP_INVALID = 4294967295,
1: + CPUHP_OFFLINE = 0,
1: + CPUHP_CREATE_THREADS = 1,
1: + CPUHP_PERF_PREPARE = 2,
1: + CPUHP_PERF_X86_PREPARE = 3,
1: + CPUHP_PERF_X86_AMD_UNCORE_PREP = 4,
1: + CPUHP_PERF_POWER = 5,
1: + CPUHP_PERF_SUPERH = 6,
1: + CPUHP_X86_HPET_DEAD = 7,
1: + CPUHP_X86_APB_DEAD = 8,
1: + CPUHP_X86_MCE_DEAD = 9,
1: + CPUHP_VIRT_NET_DEAD = 10,
1: + CPUHP_SLUB_DEAD = 11,
1: + CPUHP_DEBUG_OBJ_DEAD = 12,
1: + CPUHP_MM_WRITEBACK_DEAD = 13,
1: + CPUHP_MM_VMSTAT_DEAD = 14,
1: + CPUHP_SOFTIRQ_DEAD = 15,
1: + CPUHP_NET_MVNETA_DEAD = 16,
1: + CPUHP_CPUIDLE_DEAD = 17,
1: + CPUHP_ARM64_FPSIMD_DEAD = 18,
1: + CPUHP_ARM_OMAP_WAKE_DEAD = 19,
1: + CPUHP_IRQ_POLL_DEAD = 20,
1: + CPUHP_BLOCK_SOFTIRQ_DEAD = 21,
1: + CPUHP_ACPI_CPUDRV_DEAD = 22,
1: + CPUHP_S390_PFAULT_DEAD = 23,
1: + CPUHP_BLK_MQ_DEAD = 24,
1: + CPUHP_FS_BUFF_DEAD = 25,
1: + CPUHP_PRINTK_DEAD = 26,
1: + CPUHP_MM_MEMCQ_DEAD = 27,
1: + CPUHP_PERCPU_CNT_DEAD = 28,
1: + CPUHP_RADIX_DEAD = 29,
1: + CPUHP_PAGE_ALLOC_DEAD = 30,
1: + CPUHP_NET_DEV_DEAD = 31,
1: + CPUHP_PCI_XGENE_DEAD = 32,
1: + CPUHP_IOMMU_INTEL_DEAD = 33,
1: + CPUHP_LUSTRE_CFS_DEAD = 34,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DEAD = 35,
1: + CPUHP_PADATA_DEAD = 36,
1: + CPUHP_WORKQUEUE_PREP = 37,
1: + CPUHP_POWER_NUMA_PREPARE = 38,
1: + CPUHP_HRTIMERS_PREPARE = 39,
1: + CPUHP_PROFILE_PREPARE = 40,
1: + CPUHP_X2APIC_PREPARE = 41,
1: + CPUHP_SMPCFD_PREPARE = 42,
1: + CPUHP_RELAY_PREPARE = 43,
1: + CPUHP_SLAB_PREPARE = 44,
1: + CPUHP_MD_RAID5_PREPARE = 45,
1: + CPUHP_RCUTREE_PREP = 46,
1: + CPUHP_CPUIDLE_COUPLED_PREPARE = 47,
1: + CPUHP_POWERPC_PMAC_PREPARE = 48,
1: + CPUHP_POWERPC_MMU_CTX_PREPARE = 49,
1: + CPUHP_XEN_PREPARE = 50,
1: + CPUHP_XEN_EVTCHN_PREPARE = 51,
1: + CPUHP_ARM_SHMOBILE_SCU_PREPARE = 52,
1: + CPUHP_SH_SH3X_PREPARE = 53,
1: + CPUHP_NET_FLOW_PREPARE = 54,
1: + CPUHP_TOPOLOGY_PREPARE = 55,
1: + CPUHP_NET_IUCV_PREPARE = 56,
1: + CPUHP_ARM_BL_PREPARE = 57,
1: + CPUHP_TRACE_RB_PREPARE = 58,
1: + CPUHP_MM_ZS_PREPARE = 59,
1: + CPUHP_MM_ZSWP_MEM_PREPARE = 60,
1: + CPUHP_MM_ZSWP_POOL_PREPARE = 61,
1: + CPUHP_KVM_PPC_BOOK3S_PREPARE = 62,
1: + CPUHP_ZCOMP_PREPARE = 63,
1: + CPUHP_TIMERS_PREPARE = 64,
1: + CPUHP_MIPS_SOC_PREPARE = 65,
1: + CPUHP_BP_PREPARE_DYN = 66,
1: + CPUHP_BP_PREPARE_DYN_END = 86,
1: + CPUHP_BRINGUP_CPU = 87,
1: + CPUHP_AP_IDLE_DEAD = 88,
1: + CPUHP_AP_OFFLINE = 89,
1: + CPUHP_AP_SCHED_STARTING = 90,
1: + CPUHP_AP_RCUTREE_DYING = 91,
1: + CPUHP_AP_CPU_PM_STARTING = 92,
1: + CPUHP_AP_IRQ_GIC_STARTING = 93,
1: + CPUHP_AP_IRQ_HIP04_STARTING = 94,
1: + CPUHP_AP_IRQ_ARMADA_XP_STARTING = 95,
1: + CPUHP_AP_IRQ_BCM2836_STARTING = 96,
1: + CPUHP_AP_IRQ_MIPS_GIC_STARTING = 97,
1: + CPUHP_AP_IRQ_RISCV_STARTING = 98,
1: + CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING = 99,
1: + CPUHP_AP_ARM_MVEBU_COHERENCY = 100,
1: + CPUHP_AP_MICROCODE_LOADER = 101,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING = 102,
1: + CPUHP_AP_PERF_X86_STARTING = 103,
1: + CPUHP_AP_PERF_X86_AMD_IBS_STARTING = 104,
1: + CPUHP_AP_PERF_X86_CQM_STARTING = 105,
1: + CPUHP_AP_PERF_X86_CSTATE_STARTING = 106,
1: + CPUHP_AP_PERF_XTENSA_STARTING = 107,
1: + CPUHP_AP_MIPS_OP_LOONGSON3_STARTING = 108,
1: + CPUHP_AP_ARM_SDEI_STARTING = 109,
1: + CPUHP_AP_ARM_VFP_STARTING = 110,
1: + CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING = 111,
1: + CPUHP_AP_PERF_ARM_HW_BREAKPOINT_STARTING = 112,
1: + CPUHP_AP_PERF_ARM_ACPI_STARTING = 113,
1: + CPUHP_AP_PERF_ARM_STARTING = 114,
1: + CPUHP_AP_ARM_L2X0_STARTING = 115,
1: + CPUHP_AP_EXYNOS4_MCT_TIMER_STARTING = 116,
1: + CPUHP_AP_ARM_ARCH_TIMER_STARTING = 117,
1: + CPUHP_AP_ARM_GLOBAL_TIMER_STARTING = 118,
1: + CPUHP_AP_JCORE_TIMER_STARTING = 119,
1: + CPUHP_AP_ARM_TWD_STARTING = 120,
1: + CPUHP_AP_QCOM_TIMER_STARTING = 121,
1: + CPUHP_AP_TEGRA_TIMER_STARTING = 122,
1: + CPUHP_AP_ARMADA_TIMER_STARTING = 123,
1: + CPUHP_AP_MARCO_TIMER_STARTING = 124,
1: + CPUHP_AP_MIPS_GIC_TIMER_STARTING = 125,
1: + CPUHP_AP_ARC_TIMER_STARTING = 126,
1: + CPUHP_AP_RISCV_TIMER_STARTING = 127,
1: + CPUHP_AP_CLINT_TIMER_STARTING = 128,
1: + CPUHP_AP_CSKY_TIMER_STARTING = 129,
1: + CPUHP_AP_HYPERV_TIMER_STARTING = 130,
1: + CPUHP_AP_KVM_STARTING = 131,
1: + CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING = 132,
1: + CPUHP_AP_KVM_ARM_VGIC_STARTING = 133,
1: + CPUHP_AP_KVM_ARM_TIMER_STARTING = 134,
1: + CPUHP_AP_DUMMY_TIMER_STARTING = 135,
1: + CPUHP_AP_ARM_XEN_STARTING = 136,
1: + CPUHP_AP_ARM_CORESIGHT_STARTING = 137,
1: + CPUHP_AP_ARM_CORESIGHT_CTI_STARTING = 138,
1: + CPUHP_AP_ARM64_ISNDEP_STARTING = 139,
1: + CPUHP_AP_SMPCFD_DYING = 140,
1: + CPUHP_AP_X86_TBOOT_DYING = 141,
1: + CPUHP_AP_ARM_CACHE_B15_RAC_DYING = 142,
1: + CPUHP_AP_ONLINE = 143,
1: + CPUHP_TEARDOWN_CPU = 144,
1: + CPUHP_AP_ONLINE_IDLE = 145,
1: + CPUHP_AP_SMPBOOT_THREADS = 146,
1: + CPUHP_AP_X86_VDSO_VMA_ONLINE = 147,
1: + CPUHP_AP_IRQ_AFFINITY_ONLINE = 148,
1: + CPUHP_AP_BLK_MQ_ONLINE = 149,
1: + CPUHP_AP_ARM_MVEBU_SYNC_CLOCKS = 150,
1: + CPUHP_AP_X86_INTEL_EPB_ONLINE = 151,
1: + CPUHP_AP_PERF_ONLINE = 152,
1: + CPUHP_AP_PERF_X86_ONLINE = 153,
1: + CPUHP_AP_PERF_X86_UNCORE_ONLINE = 154,
1: + CPUHP_AP_PERF_X86_AMD_UNCORE_ONLINE = 155,
1: + CPUHP_AP_PERF_X86_AMD_POWER_ONLINE = 156,
1: + CPUHP_AP_PERF_X86_RAPL_ONLINE = 157,
1: + CPUHP_AP_PERF_X86_CQM_ONLINE = 158,
1: + CPUHP_AP_PERF_X86_CSTATE_ONLINE = 159,
1: + CPUHP_AP_PERF_S390_CF_ONLINE = 160,
1: + CPUHP_AP_PERF_S390_SF_ONLINE = 161,
1: + CPUHP_AP_PERF_ARM_CCI_ONLINE = 162,
1: + CPUHP_AP_PERF_ARM_CCN_ONLINE = 163,
1: + CPUHP_AP_PERF_ARM_HISI_DDRC_ONLINE = 164,
1: + CPUHP_AP_PERF_ARM_HISI_HHA_ONLINE = 165,
1: + CPUHP_AP_PERF_ARM_HISI_L3_ONLINE = 166,
1: + CPUHP_AP_PERF_ARM_L2X0_ONLINE = 167,
1: + CPUHP_AP_PERF_ARM_QCOM_L2_ONLINE = 168,
1: + CPUHP_AP_PERF_ARM_QCOM_L3_ONLINE = 169,
1: + CPUHP_AP_PERF_ARM_APM_XGENE_ONLINE = 170,
1: + CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE = 171,
1: + CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE = 172,
1: + CPUHP_AP_PERF_POWERPC_CORE_IMC_ONLINE = 173,
1: + CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE = 174,
1: + CPUHP_AP_PERF_POWERPC_TRACE_IMC_ONLINE = 175,
1: + CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE = 176,
1: + CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE = 177,
1: + CPUHP_AP_WATCHDOG_ONLINE = 178,
1: + CPUHP_AP_WORKQUEUE_ONLINE = 179,
1: + CPUHP_AP_RCUTREE_ONLINE = 180,
1: + CPUHP_AP_BASE_CACHEINFO_ONLINE = 181,
1: + CPUHP_AP_ONLINE_DYN = 182,
1: + CPUHP_AP_ONLINE_DYN_END = 212,
1: + CPUHP_AP_X86_HPET_ONLINE = 213,
1: + CPUHP_AP_X86_KVM_CLK_ONLINE = 214,
1: + CPUHP_AP_ACTIVE = 215,
1: + CPUHP_ONLINE = 216,
1: +};
1: +
1: +struct ring_buffer_event {
1: + u32 type_len: 5;
1: + u32 time_delta: 27;
1: + u32 array[0];
1: +};
1: +
1: +struct seq_buf {
1: + char *buffer;
1: + size_t size;
1: + size_t len;
1: + loff_t readpos;
1: +};
1: +
1: +struct trace_seq {
1: + char buffer[65536];
1: + struct seq_buf seq;
1: + int full;
1: +};
1: +
1: +struct irq_desc;
1: +
1: +typedef void (*irq_flow_handler_t)(struct irq_desc *);
1: +
1: +struct msi_desc;
1: +
1: +struct irq_common_data {
1: + unsigned int state_use_accessors;
1: + unsigned int node;
1: + void *handler_data;
1: + struct msi_desc *msi_desc;
1: + cpumask_var_t affinity;
1: +};
1: +
1: +struct irq_chip;
1: +
1: +struct irq_data {
1: + u32 mask;
1: + unsigned int irq;
1: + long unsigned int hwirq;
1: + struct irq_common_data *common;
1: + struct irq_chip *chip;
1: + struct irq_domain *domain;
1: + struct irq_data *parent_data;
1: + void *chip_data;
1: +};
1: +
1: +struct irqaction;
1: +
1: +struct irq_affinity_notify;
1: +
1: +struct proc_dir_entry;
1: +
1: +struct irq_desc {
1: + struct irq_common_data irq_common_data;
1: + struct irq_data irq_data;
1: + unsigned int *kstat_irqs;
1: + irq_flow_handler_t handle_irq;
1: + struct irqaction *action;
1: + unsigned int status_use_accessors;
1: + unsigned int core_internal_state__do_not_mess_with_it;
1: + unsigned int depth;
1: + unsigned int wake_depth;
1: + unsigned int tot_count;
1: + unsigned int irq_count;
1: + long unsigned int last_unhandled;
1: + unsigned int irqs_unhandled;
1: + atomic_t threads_handled;
1: + int threads_handled_last;
1: + raw_spinlock_t lock;
1: + struct cpumask *percpu_enabled;
1: + const struct cpumask *percpu_affinity;
1: + const struct cpumask *affinity_hint;
1: + struct irq_affinity_notify *affinity_notify;
1: + long unsigned int threads_oneshot;
1: + atomic_t threads_active;
1: + wait_queue_head_t wait_for_threads;
1: + unsigned int nr_actions;
1: + unsigned int no_suspend_depth;
1: + unsigned int cond_suspend_depth;
1: + unsigned int force_resume_depth;
1: + struct proc_dir_entry *dir;
1: + struct callback_head rcu;
1: + struct kobject kobj;
1: + struct mutex request_mutex;
1: + int parent_irq;
1: + struct module *owner;
1: + const char *name;
1: +};
1: +
1: +struct pci_bus;
1: +
1: +struct eeh_pe {
1: + int type;
1: + int state;
1: + int addr;
1: + struct pci_controller *phb;
1: + struct pci_bus *bus;
1: + int check_count;
1: + int freeze_count;
1: + time64_t tstamp;
1: + int false_positives;
1: + atomic_t pass_dev_cnt;
1: + struct eeh_pe *parent;
1: + void *data;
1: + struct list_head child_list;
1: + struct list_head child;
1: + struct list_head edevs;
1: + long unsigned int stack_trace[64];
1: + int trace_entries;
1: +};
1: +
1: +struct fwnode_reference_args;
1: +
1: +struct fwnode_endpoint;
1: +
1: +struct fwnode_operations {
1: + struct fwnode_handle * (*get)(struct fwnode_handle *);
1: + void (*put)(struct fwnode_handle *);
1: + bool (*device_is_available)(const struct fwnode_handle *);
1: + const void * (*device_get_match_data)(const struct fwnode_handle *, const struct device *);
1: + bool (*property_present)(const struct fwnode_handle *, const char *);
1: + int (*property_read_int_array)(const struct fwnode_handle *, const char *, unsigned int, void *, size_t);
1: + int (*property_read_string_array)(const struct fwnode_handle *, const char *, const char **, size_t);
1: + const char * (*get_name)(const struct fwnode_handle *);
1: + const char * (*get_name_prefix)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*get_parent)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *, struct fwnode_handle *);
1: + struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *, const char *);
1: + int (*get_reference_args)(const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *);
1: + struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *, struct fwnode_handle *);
1: + struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *);
1: + struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *);
1: + int (*graph_parse_endpoint)(const struct fwnode_handle *, struct fwnode_endpoint *);
1: + int (*add_links)(const struct fwnode_handle *, struct device *);
1: +};
1: +
1: +struct fwnode_endpoint {
1: + unsigned int port;
1: + unsigned int id;
1: + const struct fwnode_handle *local_fwnode;
1: +};
1: +
1: +struct fwnode_reference_args {
1: + struct fwnode_handle *fwnode;
1: + unsigned int nargs;
1: + u64 args[8];
1: +};
1: +
1: +struct property {
1: + char *name;
1: + int length;
1: + void *value;
1: + struct property *next;
1: + long unsigned int _flags;
1: + struct bin_attribute attr;
1: +};
1: +
1: +struct irq_fwspec {
1: + struct fwnode_handle *fwnode;
1: + int param_count;
1: + u32 param[16];
1: +};
1: +
1: +struct irq_domain_ops {
1: + int (*match)(struct irq_domain *, struct device_node *, enum irq_domain_bus_token);
1: + int (*select)(struct irq_domain *, struct irq_fwspec *, enum irq_domain_bus_token);
1: + int (*map)(struct irq_domain *, unsigned int, irq_hw_number_t);
1: + void (*unmap)(struct irq_domain *, unsigned int);
1: + int (*xlate)(struct irq_domain *, struct device_node *, const u32 *, unsigned int, long unsigned int *, unsigned int *);
1: + int (*alloc)(struct irq_domain *, unsigned int, unsigned int, void *);
1: + void (*free)(struct irq_domain *, unsigned int, unsigned int);
1: + int (*activate)(struct irq_domain *, struct irq_data *, bool);
1: + void (*deactivate)(struct irq_domain *, struct irq_data *);
1: + int (*translate)(struct irq_domain *, struct irq_fwspec *, long unsigned int *, unsigned int *);
1: +};
1: +
1: +enum irq_gc_flags {
1: + IRQ_GC_INIT_MASK_CACHE = 1,
1: + IRQ_GC_INIT_NESTED_LOCK = 2,
1: + IRQ_GC_MASK_CACHE_PER_TYPE = 4,
1: + IRQ_GC_NO_MASK = 8,
1: + IRQ_GC_BE_IO = 16,
1: +};
1: +
1: +struct irq_chip_generic;
1: +
1: +struct irq_domain_chip_generic {
1: + unsigned int irqs_per_chip;
1: + unsigned int num_chips;
1: + unsigned int irq_flags_to_clear;
1: + unsigned int irq_flags_to_set;
1: + enum irq_gc_flags gc_flags;
1: + struct irq_chip_generic *gc[0];
1: +};
1: +
1: +enum irqchip_irq_state {
1: + IRQCHIP_STATE_PENDING = 0,
1: + IRQCHIP_STATE_ACTIVE = 1,
1: + IRQCHIP_STATE_MASKED = 2,
1: + IRQCHIP_STATE_LINE_LEVEL = 3,
1: +};
1: +
1: +struct msi_msg;
1: +
1: +struct irq_chip {
1: + struct device *parent_device;
1: + const char *name;
1: + unsigned int (*irq_startup)(struct irq_data *);
1: + void (*irq_shutdown)(struct irq_data *);
1: + void (*irq_enable)(struct irq_data *);
1: + void (*irq_disable)(struct irq_data *);
1: + void (*irq_ack)(struct irq_data *);
1: + void (*irq_mask)(struct irq_data *);
1: + void (*irq_mask_ack)(struct irq_data *);
1: + void (*irq_unmask)(struct irq_data *);
1: + void (*irq_eoi)(struct irq_data *);
1: + int (*irq_set_affinity)(struct irq_data *, const struct cpumask *, bool);
1: + int (*irq_retrigger)(struct irq_data *);
1: + int (*irq_set_type)(struct irq_data *, unsigned int);
1: + int (*irq_set_wake)(struct irq_data *, unsigned int);
1: + void (*irq_bus_lock)(struct irq_data *);
1: + void (*irq_bus_sync_unlock)(struct irq_data *);
1: + void (*irq_cpu_online)(struct irq_data *);
1: + void (*irq_cpu_offline)(struct irq_data *);
1: + void (*irq_suspend)(struct irq_data *);
1: + void (*irq_resume)(struct irq_data *);
1: + void (*irq_pm_shutdown)(struct irq_data *);
1: + void (*irq_calc_mask)(struct irq_data *);
1: + void (*irq_print_chip)(struct irq_data *, struct seq_file *);
1: + int (*irq_request_resources)(struct irq_data *);
1: + void (*irq_release_resources)(struct irq_data *);
1: + void (*irq_compose_msi_msg)(struct irq_data *, struct msi_msg *);
1: + void (*irq_write_msi_msg)(struct irq_data *, struct msi_msg *);
1: + int (*irq_get_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool *);
1: + int (*irq_set_irqchip_state)(struct irq_data *, enum irqchip_irq_state, bool);
1: + int (*irq_set_vcpu_affinity)(struct irq_data *, void *);
1: + void (*ipi_send_single)(struct irq_data *, unsigned int);
1: + void (*ipi_send_mask)(struct irq_data *, const struct cpumask *);
1: + int (*irq_nmi_setup)(struct irq_data *);
1: + void (*irq_nmi_teardown)(struct irq_data *);
1: + long unsigned int flags;
1: +};
1: +
1: +typedef irqreturn_t (*irq_handler_t)(int, void *);
1: +
1: +struct irqaction {
1: + irq_handler_t handler;
1: + void *dev_id;
1: + void *percpu_dev_id;
1: + struct irqaction *next;
1: + irq_handler_t thread_fn;
1: + struct task_struct *thread;
1: + struct irqaction *secondary;
1: + unsigned int irq;
1: + unsigned int flags;
1: + long unsigned int thread_flags;
1: + long unsigned int thread_mask;
1: + const char *name;
1: + struct proc_dir_entry *dir;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct irq_affinity_notify {
1: + unsigned int irq;
1: + struct kref kref;
1: + struct work_struct work;
1: + void (*notify)(struct irq_affinity_notify *, const cpumask_t *);
1: + void (*release)(struct kref *);
1: +};
1: +
1: +struct irq_chip_regs {
1: + long unsigned int enable;
1: + long unsigned int disable;
1: + long unsigned int mask;
1: + long unsigned int ack;
1: + long unsigned int eoi;
1: + long unsigned int type;
1: + long unsigned int polarity;
1: +};
1: +
1: +struct irq_chip_type {
1: + struct irq_chip chip;
1: + struct irq_chip_regs regs;
1: + irq_flow_handler_t handler;
1: + u32 type;
1: + u32 mask_cache_priv;
1: + u32 *mask_cache;
1: +};
1: +
1: +struct irq_chip_generic {
1: + raw_spinlock_t lock;
1: + void *reg_base;
1: + u32 (*reg_readl)(void *);
1: + void (*reg_writel)(u32, void *);
1: + void (*suspend)(struct irq_chip_generic *);
1: + void (*resume)(struct irq_chip_generic *);
1: + unsigned int irq_base;
1: + unsigned int irq_cnt;
1: + u32 mask_cache;
1: + u32 type_cache;
1: + u32 polarity_cache;
1: + u32 wake_enabled;
1: + u32 wake_active;
1: + unsigned int num_ct;
1: + void *private;
1: + long unsigned int installed;
1: + long unsigned int unused;
1: + struct irq_domain *domain;
1: + struct list_head list;
1: + struct irq_chip_type chip_types[0];
1: +};
1: +
1: +enum perf_sw_ids {
1: + PERF_COUNT_SW_CPU_CLOCK = 0,
1: + PERF_COUNT_SW_TASK_CLOCK = 1,
1: + PERF_COUNT_SW_PAGE_FAULTS = 2,
1: + PERF_COUNT_SW_CONTEXT_SWITCHES = 3,
1: + PERF_COUNT_SW_CPU_MIGRATIONS = 4,
1: + PERF_COUNT_SW_PAGE_FAULTS_MIN = 5,
1: + PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6,
1: + PERF_COUNT_SW_ALIGNMENT_FAULTS = 7,
1: + PERF_COUNT_SW_EMULATION_FAULTS = 8,
1: + PERF_COUNT_SW_DUMMY = 9,
1: + PERF_COUNT_SW_BPF_OUTPUT = 10,
1: + PERF_COUNT_SW_MAX = 11,
1: +};
1: +
1: +union perf_mem_data_src {
1: + __u64 val;
1: + struct {
1: + __u64 mem_op: 5;
1: + __u64 mem_lvl: 14;
1: + __u64 mem_snoop: 5;
1: + __u64 mem_lock: 2;
1: + __u64 mem_dtlb: 7;
1: + __u64 mem_lvl_num: 4;
1: + __u64 mem_remote: 1;
1: + __u64 mem_snoopx: 2;
1: + __u64 mem_rsvd: 24;
1: + };
1: +};
1: +
1: +struct perf_branch_entry {
1: + __u64 from;
1: + __u64 to;
1: + __u64 mispred: 1;
1: + __u64 predicted: 1;
1: + __u64 in_tx: 1;
1: + __u64 abort: 1;
1: + __u64 cycles: 16;
1: + __u64 type: 4;
1: + __u64 reserved: 40;
1: +};
1: +
1: +struct new_utsname {
1: + char sysname[65];
1: + char nodename[65];
1: + char release[65];
1: + char version[65];
1: + char machine[65];
1: + char domainname[65];
1: +};
1: +
1: +struct uts_namespace {
1: + struct kref kref;
1: + struct new_utsname name;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: +};
1: +
1: +struct cgroup_namespace {
1: + refcount_t count;
1: + struct ns_common ns;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct css_set *root_cset;
1: +};
1: +
1: +struct nsset {
1: + unsigned int flags;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + const struct cred *cred;
1: +};
1: +
1: +struct proc_ns_operations {
1: + const char *name;
1: + const char *real_ns_name;
1: + int type;
1: + struct ns_common * (*get)(struct task_struct *);
1: + void (*put)(struct ns_common *);
1: + int (*install)(struct nsset *, struct ns_common *);
1: + struct user_namespace * (*owner)(struct ns_common *);
1: + struct ns_common * (*get_parent)(struct ns_common *);
1: +};
1: +
1: +struct ucounts {
1: + struct hlist_node node;
1: + struct user_namespace *ns;
1: + kuid_t uid;
1: + int count;
1: + atomic_t ucount[10];
1: +};
1: +
1: +struct perf_regs {
1: + __u64 abi;
1: + struct pt_regs *regs;
1: +};
1: +
1: +struct u64_stats_sync {};
1: +
1: +struct bpf_cgroup_storage_key {
1: + __u64 cgroup_inode_id;
1: + __u32 attach_type;
1: +};
1: +
1: +struct bpf_cgroup_storage;
1: +
1: +struct bpf_prog_array_item {
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_storage *cgroup_storage[2];
1: +};
1: +
1: +struct bpf_storage_buffer;
1: +
1: +struct bpf_cgroup_storage_map;
1: +
1: +struct bpf_cgroup_storage {
1: + union {
1: + struct bpf_storage_buffer *buf;
1: + void *percpu_buf;
1: + };
1: + struct bpf_cgroup_storage_map *map;
1: + struct bpf_cgroup_storage_key key;
1: + struct list_head list_map;
1: + struct list_head list_cg;
1: + struct rb_node node;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct bpf_prog_array {
1: + struct callback_head rcu;
1: + struct bpf_prog_array_item items[0];
1: +};
1: +
1: +struct bpf_storage_buffer {
1: + struct callback_head rcu;
1: + char data[0];
1: +};
1: +
1: +struct psi_group_cpu {
1: + seqcount_t seq;
1: + unsigned int tasks[4];
1: + u32 state_mask;
1: + u32 times[6];
1: + u64 state_start;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 times_prev[12];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cgroup_taskset;
1: +
1: +struct cftype;
1: +
1: +struct cgroup_subsys {
1: + struct cgroup_subsys_state * (*css_alloc)(struct cgroup_subsys_state *);
1: + int (*css_online)(struct cgroup_subsys_state *);
1: + void (*css_offline)(struct cgroup_subsys_state *);
1: + void (*css_released)(struct cgroup_subsys_state *);
1: + void (*css_free)(struct cgroup_subsys_state *);
1: + void (*css_reset)(struct cgroup_subsys_state *);
1: + void (*css_rstat_flush)(struct cgroup_subsys_state *, int);
1: + int (*css_extra_stat_show)(struct seq_file *, struct cgroup_subsys_state *);
1: + int (*can_attach)(struct cgroup_taskset *);
1: + void (*cancel_attach)(struct cgroup_taskset *);
1: + void (*attach)(struct cgroup_taskset *);
1: + void (*post_attach)();
1: + int (*can_fork)(struct task_struct *, struct css_set *);
1: + void (*cancel_fork)(struct task_struct *, struct css_set *);
1: + void (*fork)(struct task_struct *);
1: + void (*exit)(struct task_struct *);
1: + void (*release)(struct task_struct *);
1: + void (*bind)(struct cgroup_subsys_state *);
1: + bool early_init: 1;
1: + bool implicit_on_dfl: 1;
1: + bool threaded: 1;
1: + bool broken_hierarchy: 1;
1: + bool warned_broken_hierarchy: 1;
1: + int id;
1: + const char *name;
1: + const char *legacy_name;
1: + struct cgroup_root *root;
1: + struct idr css_idr;
1: + struct list_head cfts;
1: + struct cftype *dfl_cftypes;
1: + struct cftype *legacy_cftypes;
1: + unsigned int depends_on;
1: +};
1: +
1: +struct cgroup_rstat_cpu {
1: + struct u64_stats_sync bsync;
1: + struct cgroup_base_stat bstat;
1: + struct cgroup_base_stat last_bstat;
1: + struct cgroup *updated_children;
1: + struct cgroup *updated_next;
1: +};
1: +
1: +struct cgroup_root {
1: + struct kernfs_root *kf_root;
1: + unsigned int subsys_mask;
1: + int hierarchy_id;
1: + struct cgroup cgrp;
1: + u64 cgrp_ancestor_id_storage;
1: + atomic_t nr_cgrps;
1: + struct list_head root_list;
1: + unsigned int flags;
1: + char release_agent_path[4096];
1: + char name[64];
1: +};
1: +
1: +struct cftype {
1: + char name[64];
1: + long unsigned int private;
1: + size_t max_write_len;
1: + unsigned int flags;
1: + unsigned int file_offset;
1: + struct cgroup_subsys *ss;
1: + struct list_head node;
1: + struct kernfs_ops *kf_ops;
1: + int (*open)(struct kernfs_open_file *);
1: + void (*release)(struct kernfs_open_file *);
1: + u64 (*read_u64)(struct cgroup_subsys_state *, struct cftype *);
1: + s64 (*read_s64)(struct cgroup_subsys_state *, struct cftype *);
1: + int (*seq_show)(struct seq_file *, void *);
1: + void * (*seq_start)(struct seq_file *, loff_t *);
1: + void * (*seq_next)(struct seq_file *, void *, loff_t *);
1: + void (*seq_stop)(struct seq_file *, void *);
1: + int (*write_u64)(struct cgroup_subsys_state *, struct cftype *, u64);
1: + int (*write_s64)(struct cgroup_subsys_state *, struct cftype *, s64);
1: + ssize_t (*write)(struct kernfs_open_file *, char *, size_t, loff_t);
1: + __poll_t (*poll)(struct kernfs_open_file *, struct poll_table_struct *);
1: +};
1: +
1: +struct perf_callchain_entry {
1: + __u64 nr;
1: + __u64 ip[0];
1: +};
1: +
1: +typedef long unsigned int (*perf_copy_f)(void *, const void *, long unsigned int, long unsigned int);
1: +
1: +struct perf_raw_frag {
1: + union {
1: + struct perf_raw_frag *next;
1: + long unsigned int pad;
1: + };
1: + perf_copy_f copy;
1: + void *data;
1: + u32 size;
1: +} __attribute__((packed));
1: +
1: +struct perf_raw_record {
1: + struct perf_raw_frag frag;
1: + u32 size;
1: +};
1: +
1: +struct perf_branch_stack {
1: + __u64 nr;
1: + __u64 hw_idx;
1: + struct perf_branch_entry entries[0];
1: +};
1: +
1: +struct perf_cpu_context {
1: + struct perf_event_context ctx;
1: + struct perf_event_context *task_ctx;
1: + int active_oncpu;
1: + int exclusive;
1: + raw_spinlock_t hrtimer_lock;
1: + struct hrtimer hrtimer;
1: + ktime_t hrtimer_interval;
1: + unsigned int hrtimer_active;
1: + struct perf_cgroup *cgrp;
1: + struct list_head cgrp_cpuctx_entry;
1: + int sched_cb_usage;
1: + int online;
1: + int heap_size;
1: + struct perf_event **heap;
1: + struct perf_event *heap_default[2];
1: +};
1: +
1: +struct perf_output_handle {
1: + struct perf_event *event;
1: + struct perf_buffer *rb;
1: + long unsigned int wakeup;
1: + long unsigned int size;
1: + u64 aux_flags;
1: + union {
1: + void *addr;
1: + long unsigned int head;
1: + };
1: + int page;
1: +};
1: +
1: +struct perf_addr_filter_range {
1: + long unsigned int start;
1: + long unsigned int size;
1: +};
1: +
1: +struct perf_sample_data {
1: + u64 addr;
1: + struct perf_raw_record *raw;
1: + struct perf_branch_stack *br_stack;
1: + u64 period;
1: + u64 weight;
1: + u64 txn;
1: + union perf_mem_data_src data_src;
1: + u64 type;
1: + u64 ip;
1: + struct {
1: + u32 pid;
1: + u32 tid;
1: + } tid_entry;
1: + u64 time;
1: + u64 id;
1: + u64 stream_id;
1: + struct {
1: + u32 cpu;
1: + u32 reserved;
1: + } cpu_entry;
1: + struct perf_callchain_entry *callchain;
1: + u64 aux_size;
1: + struct perf_regs regs_user;
1: + struct perf_regs regs_intr;
1: + u64 stack_user_size;
1: + u64 phys_addr;
1: + u64 cgroup;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct perf_cgroup_info;
1: +
1: +struct perf_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct perf_cgroup_info *info;
1: +};
1: +
1: +struct perf_cgroup_info {
1: + u64 time;
1: + u64 timestamp;
1: +};
1: +
1: +struct trace_entry {
1: + short unsigned int type;
1: + unsigned char flags;
1: + unsigned char preempt_count;
1: + int pid;
1: +};
1: +
1: +struct trace_array;
1: +
1: +struct tracer;
1: +
1: +struct array_buffer;
1: +
1: +struct ring_buffer_iter;
1: +
1: +struct trace_iterator {
1: + struct trace_array *tr;
1: + struct tracer *trace;
1: + struct array_buffer *array_buffer;
1: + void *private;
1: + int cpu_file;
1: + struct mutex mutex;
1: + struct ring_buffer_iter **buffer_iter;
1: + long unsigned int iter_flags;
1: + void *temp;
1: + unsigned int temp_size;
1: + struct trace_seq tmp_seq;
1: + cpumask_var_t started;
1: + bool snapshot;
1: + struct trace_seq seq;
1: + struct trace_entry *ent;
1: + long unsigned int lost_events;
1: + int leftover;
1: + int ent_size;
1: + int cpu;
1: + u64 ts;
1: + loff_t pos;
1: + long int idx;
1: +};
1: +
1: +enum print_line_t {
1: + TRACE_TYPE_PARTIAL_LINE = 0,
1: + TRACE_TYPE_HANDLED = 1,
1: + TRACE_TYPE_UNHANDLED = 2,
1: + TRACE_TYPE_NO_CONSUME = 3,
1: +};
1: +
1: +typedef enum print_line_t (*trace_print_func)(struct trace_iterator *, int, struct trace_event *);
1: +
1: +struct trace_event_functions {
1: + trace_print_func trace;
1: + trace_print_func raw;
1: + trace_print_func hex;
1: + trace_print_func binary;
1: +};
1: +
1: +enum trace_reg {
1: + TRACE_REG_REGISTER = 0,
1: + TRACE_REG_UNREGISTER = 1,
1: + TRACE_REG_PERF_REGISTER = 2,
1: + TRACE_REG_PERF_UNREGISTER = 3,
1: + TRACE_REG_PERF_OPEN = 4,
1: + TRACE_REG_PERF_CLOSE = 5,
1: + TRACE_REG_PERF_ADD = 6,
1: + TRACE_REG_PERF_DEL = 7,
1: +};
1: +
1: +struct trace_event_fields {
1: + const char *type;
1: + union {
1: + struct {
1: + const char *name;
1: + const int size;
1: + const int align;
1: + const int is_signed;
1: + const int filter_type;
1: + };
1: + int (*define_fields)(struct trace_event_call *);
1: + };
1: +};
1: +
1: +struct trace_event_class {
1: + const char *system;
1: + void *probe;
1: + void *perf_probe;
1: + int (*reg)(struct trace_event_call *, enum trace_reg, void *);
1: + struct trace_event_fields *fields_array;
1: + struct list_head * (*get_fields)(struct trace_event_call *);
1: + struct list_head fields;
1: + int (*raw_init)(struct trace_event_call *);
1: +};
1: +
1: +struct trace_buffer;
1: +
1: +struct trace_event_file;
1: +
1: +struct trace_event_buffer {
1: + struct trace_buffer *buffer;
1: + struct ring_buffer_event *event;
1: + struct trace_event_file *trace_file;
1: + void *entry;
1: + long unsigned int flags;
1: + int pc;
1: + struct pt_regs *regs;
1: +};
1: +
1: +struct trace_subsystem_dir;
1: +
1: +struct trace_event_file {
1: + struct list_head list;
1: + struct trace_event_call *event_call;
1: + struct event_filter *filter;
1: + struct dentry *dir;
1: + struct trace_array *tr;
1: + struct trace_subsystem_dir *system;
1: + struct list_head triggers;
1: + long unsigned int flags;
1: + atomic_t sm_ref;
1: + atomic_t tm_ref;
1: +};
1: +
1: +enum {
1: + TRACE_EVENT_FL_FILTERED_BIT = 0,
1: + TRACE_EVENT_FL_CAP_ANY_BIT = 1,
1: + TRACE_EVENT_FL_NO_SET_FILTER_BIT = 2,
1: + TRACE_EVENT_FL_IGNORE_ENABLE_BIT = 3,
1: + TRACE_EVENT_FL_TRACEPOINT_BIT = 4,
1: + TRACE_EVENT_FL_KPROBE_BIT = 5,
1: + TRACE_EVENT_FL_UPROBE_BIT = 6,
1: +};
1: +
1: +enum {
1: + TRACE_EVENT_FL_FILTERED = 1,
1: + TRACE_EVENT_FL_CAP_ANY = 2,
1: + TRACE_EVENT_FL_NO_SET_FILTER = 4,
1: + TRACE_EVENT_FL_IGNORE_ENABLE = 8,
1: + TRACE_EVENT_FL_TRACEPOINT = 16,
1: + TRACE_EVENT_FL_KPROBE = 32,
1: + TRACE_EVENT_FL_UPROBE = 64,
1: +};
1: +
1: +enum {
1: + EVENT_FILE_FL_ENABLED_BIT = 0,
1: + EVENT_FILE_FL_RECORDED_CMD_BIT = 1,
1: + EVENT_FILE_FL_RECORDED_TGID_BIT = 2,
1: + EVENT_FILE_FL_FILTERED_BIT = 3,
1: + EVENT_FILE_FL_NO_SET_FILTER_BIT = 4,
1: + EVENT_FILE_FL_SOFT_MODE_BIT = 5,
1: + EVENT_FILE_FL_SOFT_DISABLED_BIT = 6,
1: + EVENT_FILE_FL_TRIGGER_MODE_BIT = 7,
1: + EVENT_FILE_FL_TRIGGER_COND_BIT = 8,
1: + EVENT_FILE_FL_PID_FILTER_BIT = 9,
1: + EVENT_FILE_FL_WAS_ENABLED_BIT = 10,
1: +};
1: +
1: +enum {
1: + EVENT_FILE_FL_ENABLED = 1,
1: + EVENT_FILE_FL_RECORDED_CMD = 2,
1: + EVENT_FILE_FL_RECORDED_TGID = 4,
1: + EVENT_FILE_FL_FILTERED = 8,
1: + EVENT_FILE_FL_NO_SET_FILTER = 16,
1: + EVENT_FILE_FL_SOFT_MODE = 32,
1: + EVENT_FILE_FL_SOFT_DISABLED = 64,
1: + EVENT_FILE_FL_TRIGGER_MODE = 128,
1: + EVENT_FILE_FL_TRIGGER_COND = 256,
1: + EVENT_FILE_FL_PID_FILTER = 512,
1: + EVENT_FILE_FL_WAS_ENABLED = 1024,
1: +};
1: +
1: +enum {
1: + FILTER_OTHER = 0,
1: + FILTER_STATIC_STRING = 1,
1: + FILTER_DYN_STRING = 2,
1: + FILTER_PTR_STRING = 3,
1: + FILTER_TRACE_FN = 4,
1: + FILTER_COMM = 5,
1: + FILTER_CPU = 6,
1: +};
1: +
1: +struct xbc_node {
1: + u16 next;
1: + u16 child;
1: + u16 parent;
1: + u16 data;
1: +};
1: +
1: +enum wb_stat_item {
1: + WB_RECLAIMABLE = 0,
1: + WB_WRITEBACK = 1,
1: + WB_DIRTIED = 2,
1: + WB_WRITTEN = 3,
1: + NR_WB_STAT_ITEMS = 4,
1: +};
1: +
1: +struct disk_stats;
1: +
1: +struct partition_meta_info;
1: +
1: +struct hd_struct {
1: + sector_t start_sect;
1: + sector_t nr_sects;
1: + long unsigned int stamp;
1: + struct disk_stats *dkstats;
1: + struct percpu_ref ref;
1: + struct device __dev;
1: + struct kobject *holder_dir;
1: + int policy;
1: + int partno;
1: + struct partition_meta_info *info;
1: + struct rcu_work rcu_work;
1: +};
1: +
1: +struct disk_part_tbl;
1: +
1: +struct block_device_operations;
1: +
1: +struct timer_rand_state;
1: +
1: +struct disk_events;
1: +
1: +struct cdrom_device_info;
1: +
1: +struct badblocks;
1: +
1: +struct gendisk {
1: + int major;
1: + int first_minor;
1: + int minors;
1: + char disk_name[32];
1: + short unsigned int events;
1: + short unsigned int event_flags;
1: + struct disk_part_tbl *part_tbl;
1: + struct hd_struct part0;
1: + const struct block_device_operations *fops;
1: + struct request_queue *queue;
1: + void *private_data;
1: + int flags;
1: + long unsigned int state;
1: + struct rw_semaphore lookup_sem;
1: + struct kobject *slave_dir;
1: + struct timer_rand_state *random;
1: + atomic_t sync_io;
1: + struct disk_events *ev;
1: + struct kobject integrity_kobj;
1: + struct cdrom_device_info *cdi;
1: + int node_id;
1: + struct badblocks *bb;
1: + struct lockdep_map lockdep_map;
1: +};
1: +
1: +struct bio_integrity_payload {
1: + struct bio *bip_bio;
1: + struct bvec_iter bip_iter;
1: + short unsigned int bip_slab;
1: + short unsigned int bip_vcnt;
1: + short unsigned int bip_max_vcnt;
1: + short unsigned int bip_flags;
1: + struct bvec_iter bio_iter;
1: + struct work_struct bip_work;
1: + struct bio_vec *bip_vec;
1: + struct bio_vec bip_inline_vecs[0];
1: +};
1: +
1: +struct blkg_iostat {
1: + u64 bytes[3];
1: + u64 ios[3];
1: +};
1: +
1: +struct blkg_iostat_set {
1: + struct u64_stats_sync sync;
1: + struct blkg_iostat cur;
1: + struct blkg_iostat last;
1: +};
1: +
1: +struct blkcg;
1: +
1: +struct blkg_policy_data;
1: +
1: +struct blkcg_gq {
1: + struct request_queue *q;
1: + struct list_head q_node;
1: + struct hlist_node blkcg_node;
1: + struct blkcg *blkcg;
1: + struct blkcg_gq *parent;
1: + struct percpu_ref refcnt;
1: + bool online;
1: + struct blkg_iostat_set *iostat_cpu;
1: + struct blkg_iostat_set iostat;
1: + struct blkg_policy_data *pd[5];
1: + spinlock_t async_bio_lock;
1: + struct bio_list async_bios;
1: + struct work_struct async_bio_work;
1: + atomic_t use_delay;
1: + atomic64_t delay_nsec;
1: + atomic64_t delay_start;
1: + u64 last_delay;
1: + int last_use;
1: + struct callback_head callback_head;
1: +};
1: +
1: +typedef unsigned int blk_qc_t;
1: +
1: +struct partition_meta_info {
1: + char uuid[37];
1: + u8 volname[64];
1: +};
1: +
1: +struct disk_part_tbl {
1: + struct callback_head callback_head;
1: + int len;
1: + struct hd_struct *last_lookup;
1: + struct hd_struct *part[0];
1: +};
1: +
1: +struct blk_integrity_iter;
1: +
1: +typedef blk_status_t integrity_processing_fn(struct blk_integrity_iter *);
1: +
1: +typedef void integrity_prepare_fn(struct request *);
1: +
1: +typedef void integrity_complete_fn(struct request *, unsigned int);
1: +
1: +struct blk_integrity_profile {
1: + integrity_processing_fn *generate_fn;
1: + integrity_processing_fn *verify_fn;
1: + integrity_prepare_fn *prepare_fn;
1: + integrity_complete_fn *complete_fn;
1: + const char *name;
1: +};
1: +
1: +struct blk_zone;
1: +
1: +typedef int (*report_zones_cb)(struct blk_zone *, unsigned int, void *);
1: +
1: +struct hd_geometry;
1: +
1: +struct pr_ops;
1: +
1: +struct block_device_operations {
1: + blk_qc_t (*submit_bio)(struct bio *);
1: + int (*open)(struct block_device *, fmode_t);
1: + void (*release)(struct gendisk *, fmode_t);
1: + int (*rw_page)(struct block_device *, sector_t, struct page *, unsigned int);
1: + int (*ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct block_device *, fmode_t, unsigned int, long unsigned int);
1: + unsigned int (*check_events)(struct gendisk *, unsigned int);
1: + void (*unlock_native_capacity)(struct gendisk *);
1: + int (*revalidate_disk)(struct gendisk *);
1: + int (*getgeo)(struct block_device *, struct hd_geometry *);
1: + void (*swap_slot_free_notify)(struct block_device *, long unsigned int);
1: + int (*report_zones)(struct gendisk *, sector_t, unsigned int, report_zones_cb, void *);
1: + char * (*devnode)(struct gendisk *, umode_t *);
1: + struct module *owner;
1: + const struct pr_ops *pr_ops;
1: +};
1: +
1: +struct sg_io_v4 {
1: + __s32 guard;
1: + __u32 protocol;
1: + __u32 subprotocol;
1: + __u32 request_len;
1: + __u64 request;
1: + __u64 request_tag;
1: + __u32 request_attr;
1: + __u32 request_priority;
1: + __u32 request_extra;
1: + __u32 max_response_len;
1: + __u64 response;
1: + __u32 dout_iovec_count;
1: + __u32 dout_xfer_len;
1: + __u32 din_iovec_count;
1: + __u32 din_xfer_len;
1: + __u64 dout_xferp;
1: + __u64 din_xferp;
1: + __u32 timeout;
1: + __u32 flags;
1: + __u64 usr_ptr;
1: + __u32 spare_in;
1: + __u32 driver_status;
1: + __u32 transport_status;
1: + __u32 device_status;
1: + __u32 retry_delay;
1: + __u32 info;
1: + __u32 duration;
1: + __u32 response_len;
1: + __s32 din_resid;
1: + __s32 dout_resid;
1: + __u64 generated_tag;
1: + __u32 spare_out;
1: + __u32 padding;
1: +};
1: +
1: +struct bsg_ops {
1: + int (*check_proto)(struct sg_io_v4 *);
1: + int (*fill_hdr)(struct request *, struct sg_io_v4 *, fmode_t);
1: + int (*complete_rq)(struct request *, struct sg_io_v4 *);
1: + void (*free_rq)(struct request *);
1: +};
1: +
1: +typedef __u32 req_flags_t;
1: +
1: +typedef void rq_end_io_fn(struct request *, blk_status_t);
1: +
1: +enum mq_rq_state {
1: + MQ_RQ_IDLE = 0,
1: + MQ_RQ_IN_FLIGHT = 1,
1: + MQ_RQ_COMPLETE = 2,
1: +};
1: +
1: +struct blk_ksm_keyslot;
1: +
1: +struct request {
1: + struct request_queue *q;
1: + struct blk_mq_ctx *mq_ctx;
1: + struct blk_mq_hw_ctx *mq_hctx;
1: + unsigned int cmd_flags;
1: + req_flags_t rq_flags;
1: + int tag;
1: + int internal_tag;
1: + unsigned int __data_len;
1: + sector_t __sector;
1: + struct bio *bio;
1: + struct bio *biotail;
1: + struct list_head queuelist;
1: + union {
1: + struct hlist_node hash;
1: + struct list_head ipi_list;
1: + };
1: + union {
1: + struct rb_node rb_node;
1: + struct bio_vec special_vec;
1: + void *completion_data;
1: + int error_count;
1: + };
1: + union {
1: + struct {
1: + struct io_cq *icq;
1: + void *priv[2];
1: + } elv;
1: + struct {
1: + unsigned int seq;
1: + struct list_head list;
1: + rq_end_io_fn *saved_end_io;
1: + } flush;
1: + };
1: + struct gendisk *rq_disk;
1: + struct hd_struct *part;
1: + u64 alloc_time_ns;
1: + u64 start_time_ns;
1: + u64 io_start_time_ns;
1: + short unsigned int wbt_flags;
1: + short unsigned int stats_sectors;
1: + short unsigned int nr_phys_segments;
1: + short unsigned int nr_integrity_segments;
1: + struct bio_crypt_ctx *crypt_ctx;
1: + struct blk_ksm_keyslot *crypt_keyslot;
1: + short unsigned int write_hint;
1: + short unsigned int ioprio;
1: + enum mq_rq_state state;
1: + refcount_t ref;
1: + unsigned int timeout;
1: + long unsigned int deadline;
1: + union {
1: + struct __call_single_data csd;
1: + u64 fifo_time;
1: + };
1: + rq_end_io_fn *end_io;
1: + void *end_io_data;
1: +};
1: +
1: +struct blk_zone {
1: + __u64 start;
1: + __u64 len;
1: + __u64 wp;
1: + __u8 type;
1: + __u8 cond;
1: + __u8 non_seq;
1: + __u8 reset;
1: + __u8 resv[4];
1: + __u64 capacity;
1: + __u8 reserved[24];
1: +};
1: +
1: +enum elv_merge {
1: + ELEVATOR_NO_MERGE = 0,
1: + ELEVATOR_FRONT_MERGE = 1,
1: + ELEVATOR_BACK_MERGE = 2,
1: + ELEVATOR_DISCARD_MERGE = 3,
1: +};
1: +
1: +struct elevator_type;
1: +
1: +struct blk_mq_alloc_data;
1: +
1: +struct elevator_mq_ops {
1: + int (*init_sched)(struct request_queue *, struct elevator_type *);
1: + void (*exit_sched)(struct elevator_queue *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + void (*depth_updated)(struct blk_mq_hw_ctx *);
1: + bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
1: + bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *, unsigned int);
1: + int (*request_merge)(struct request_queue *, struct request **, struct bio *);
1: + void (*request_merged)(struct request_queue *, struct request *, enum elv_merge);
1: + void (*requests_merged)(struct request_queue *, struct request *, struct request *);
1: + void (*limit_depth)(unsigned int, struct blk_mq_alloc_data *);
1: + void (*prepare_request)(struct request *);
1: + void (*finish_request)(struct request *);
1: + void (*insert_requests)(struct blk_mq_hw_ctx *, struct list_head *, bool);
1: + struct request * (*dispatch_request)(struct blk_mq_hw_ctx *);
1: + bool (*has_work)(struct blk_mq_hw_ctx *);
1: + void (*completed_request)(struct request *, u64);
1: + void (*requeue_request)(struct request *);
1: + struct request * (*former_request)(struct request_queue *, struct request *);
1: + struct request * (*next_request)(struct request_queue *, struct request *);
1: + void (*init_icq)(struct io_cq *);
1: + void (*exit_icq)(struct io_cq *);
1: +};
1: +
1: +struct elv_fs_entry;
1: +
1: +struct elevator_type {
1: + struct kmem_cache *icq_cache;
1: + struct elevator_mq_ops ops;
1: + size_t icq_size;
1: + size_t icq_align;
1: + struct elv_fs_entry *elevator_attrs;
1: + const char *elevator_name;
1: + const char *elevator_alias;
1: + const unsigned int elevator_features;
1: + struct module *elevator_owner;
1: + char icq_cache_name[22];
1: + struct list_head list;
1: +};
1: +
1: +struct elevator_queue {
1: + struct elevator_type *type;
1: + void *elevator_data;
1: + struct kobject kobj;
1: + struct mutex sysfs_lock;
1: + unsigned int registered: 1;
1: + struct hlist_head hash[64];
1: +};
1: +
1: +struct elv_fs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct elevator_queue *, char *);
1: + ssize_t (*store)(struct elevator_queue *, const char *, size_t);
1: +};
1: +
1: +enum blk_eh_timer_return {
1: + BLK_EH_DONE = 0,
1: + BLK_EH_RESET_TIMER = 1,
1: +};
1: +
1: +struct blk_mq_queue_data;
1: +
1: +struct blk_mq_ops {
1: + blk_status_t (*queue_rq)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *);
1: + void (*commit_rqs)(struct blk_mq_hw_ctx *);
1: + bool (*get_budget)(struct request_queue *);
1: + void (*put_budget)(struct request_queue *);
1: + enum blk_eh_timer_return (*timeout)(struct request *, bool);
1: + int (*poll)(struct blk_mq_hw_ctx *);
1: + void (*complete)(struct request *);
1: + int (*init_hctx)(struct blk_mq_hw_ctx *, void *, unsigned int);
1: + void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
1: + int (*init_request)(struct blk_mq_tag_set *, struct request *, unsigned int, unsigned int);
1: + void (*exit_request)(struct blk_mq_tag_set *, struct request *, unsigned int);
1: + void (*initialize_rq_fn)(struct request *);
1: + void (*cleanup_rq)(struct request *);
1: + bool (*busy)(struct request_queue *);
1: + int (*map_queues)(struct blk_mq_tag_set *);
1: +};
1: +
1: +struct blk_integrity_iter {
1: + void *prot_buf;
1: + void *data_buf;
1: + sector_t seed;
1: + unsigned int data_size;
1: + short unsigned int interval;
1: + const char *disk_name;
1: +};
1: +
1: +enum pr_type {
1: + PR_WRITE_EXCLUSIVE = 1,
1: + PR_EXCLUSIVE_ACCESS = 2,
1: + PR_WRITE_EXCLUSIVE_REG_ONLY = 3,
1: + PR_EXCLUSIVE_ACCESS_REG_ONLY = 4,
1: + PR_WRITE_EXCLUSIVE_ALL_REGS = 5,
1: + PR_EXCLUSIVE_ACCESS_ALL_REGS = 6,
1: +};
1: +
1: +struct pr_ops {
1: + int (*pr_register)(struct block_device *, u64, u64, u32);
1: + int (*pr_reserve)(struct block_device *, u64, enum pr_type, u32);
1: + int (*pr_release)(struct block_device *, u64, enum pr_type);
1: + int (*pr_preempt)(struct block_device *, u64, u64, enum pr_type, bool);
1: + int (*pr_clear)(struct block_device *, u64);
1: +};
1: +
1: +enum blkg_iostat_type {
1: + BLKG_IOSTAT_READ = 0,
1: + BLKG_IOSTAT_WRITE = 1,
1: + BLKG_IOSTAT_DISCARD = 2,
1: + BLKG_IOSTAT_NR = 3,
1: +};
1: +
1: +struct blkcg_policy_data;
1: +
1: +struct blkcg {
1: + struct cgroup_subsys_state css;
1: + spinlock_t lock;
1: + refcount_t online_pin;
1: + struct xarray blkg_tree;
1: + struct blkcg_gq *blkg_hint;
1: + struct hlist_head blkg_list;
1: + struct blkcg_policy_data *cpd[5];
1: + struct list_head all_blkcgs_node;
1: + struct list_head cgwb_list;
1: +};
1: +
1: +struct blkcg_policy_data {
1: + struct blkcg *blkcg;
1: + int plid;
1: +};
1: +
1: +struct blkg_policy_data {
1: + struct blkcg_gq *blkg;
1: + int plid;
1: +};
1: +
1: +enum memcg_stat_item {
1: + MEMCG_SWAP = 37,
1: + MEMCG_SOCK = 38,
1: + MEMCG_PERCPU_B = 39,
1: + MEMCG_NR_STAT = 40,
1: +};
1: +
1: +enum memcg_memory_event {
1: + MEMCG_LOW = 0,
1: + MEMCG_HIGH = 1,
1: + MEMCG_MAX = 2,
1: + MEMCG_OOM = 3,
1: + MEMCG_OOM_KILL = 4,
1: + MEMCG_SWAP_HIGH = 5,
1: + MEMCG_SWAP_MAX = 6,
1: + MEMCG_SWAP_FAIL = 7,
1: + MEMCG_NR_MEMORY_EVENTS = 8,
1: +};
1: +
1: +enum mem_cgroup_events_target {
1: + MEM_CGROUP_TARGET_THRESH = 0,
1: + MEM_CGROUP_TARGET_SOFTLIMIT = 1,
1: + MEM_CGROUP_NTARGETS = 2,
1: +};
1: +
1: +struct memcg_vmstats_percpu {
1: + long int stat[40];
1: + long unsigned int events[89];
1: + long unsigned int nr_page_events;
1: + long unsigned int targets[2];
1: +};
1: +
1: +struct mem_cgroup_reclaim_iter {
1: + struct mem_cgroup *position;
1: + unsigned int generation;
1: +};
1: +
1: +struct lruvec_stat {
1: + long int count[37];
1: +};
1: +
1: +struct memcg_shrinker_map {
1: + struct callback_head rcu;
1: + long unsigned int map[0];
1: +};
1: +
1: +struct mem_cgroup_per_node {
1: + struct lruvec lruvec;
1: + struct lruvec_stat *lruvec_stat_local;
1: + struct lruvec_stat *lruvec_stat_cpu;
1: + atomic_long_t lruvec_stat[37];
1: + long unsigned int lru_zone_size[10];
1: + struct mem_cgroup_reclaim_iter iter;
1: + struct memcg_shrinker_map *shrinker_map;
1: + struct rb_node tree_node;
1: + long unsigned int usage_in_excess;
1: + bool on_tree;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct eventfd_ctx;
1: +
1: +struct mem_cgroup_threshold {
1: + struct eventfd_ctx *eventfd;
1: + long unsigned int threshold;
1: +};
1: +
1: +struct mem_cgroup_threshold_ary {
1: + int current_threshold;
1: + unsigned int size;
1: + struct mem_cgroup_threshold entries[0];
1: +};
1: +
1: +struct percpu_cluster {
1: + struct swap_cluster_info index;
1: + unsigned int next;
1: +};
1: +
1: +enum fs_value_type {
1: + fs_value_is_undefined = 0,
1: + fs_value_is_flag = 1,
1: + fs_value_is_string = 2,
1: + fs_value_is_blob = 3,
1: + fs_value_is_filename = 4,
1: + fs_value_is_file = 5,
1: +};
1: +
1: +struct fs_parameter {
1: + const char *key;
1: + enum fs_value_type type: 8;
1: + union {
1: + char *string;
1: + void *blob;
1: + struct filename *name;
1: + struct file *file;
1: + };
1: + size_t size;
1: + int dirfd;
1: +};
1: +
1: +struct fc_log {
1: + refcount_t usage;
1: + u8 head;
1: + u8 tail;
1: + u8 need_free;
1: + struct module *owner;
1: + char *buffer[8];
1: +};
1: +
1: +struct fs_context_operations {
1: + void (*free)(struct fs_context *);
1: + int (*dup)(struct fs_context *, struct fs_context *);
1: + int (*parse_param)(struct fs_context *, struct fs_parameter *);
1: + int (*parse_monolithic)(struct fs_context *, void *);
1: + int (*get_tree)(struct fs_context *);
1: + int (*reconfigure)(struct fs_context *);
1: +};
1: +
1: +struct fs_parse_result {
1: + bool negated;
1: + union {
1: + bool boolean;
1: + int int_32;
1: + unsigned int uint_32;
1: + u64 uint_64;
1: + };
1: +};
1: +
1: +struct trace_event_raw_initcall_level {
1: + struct trace_entry ent;
1: + u32 __data_loc_level;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_initcall_start {
1: + struct trace_entry ent;
1: + initcall_t func;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_initcall_finish {
1: + struct trace_entry ent;
1: + initcall_t func;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_initcall_level {
1: + u32 level;
1: +};
1: +
1: +struct trace_event_data_offsets_initcall_start {};
1: +
1: +struct trace_event_data_offsets_initcall_finish {};
1: +
1: +typedef void (*btf_trace_initcall_level)(void *, const char *);
1: +
1: +typedef void (*btf_trace_initcall_start)(void *, initcall_t);
1: +
1: +typedef void (*btf_trace_initcall_finish)(void *, initcall_t, int);
1: +
1: +struct blacklist_entry {
1: + struct list_head next;
1: + char *buf;
1: +};
1: +
1: +typedef __u32 Elf32_Word;
1: +
1: +struct elf32_note {
1: + Elf32_Word n_namesz;
1: + Elf32_Word n_descsz;
1: + Elf32_Word n_type;
1: +};
1: +
1: +enum {
1: + PROC_ROOT_INO = 1,
1: + PROC_IPC_INIT_INO = 4026531839,
1: + PROC_UTS_INIT_INO = 4026531838,
1: + PROC_USER_INIT_INO = 4026531837,
1: + PROC_PID_INIT_INO = 4026531836,
1: + PROC_CGROUP_INIT_INO = 4026531835,
1: + PROC_TIME_INIT_INO = 4026531834,
1: +};
1: +
1: +typedef __u16 __le16;
1: +
1: +typedef __u32 __wsum;
1: +
1: +typedef unsigned int slab_flags_t;
1: +
1: +struct llist_head {
1: + struct llist_node *first;
1: +};
1: +
1: +struct notifier_block;
1: +
1: +typedef int (*notifier_fn_t)(struct notifier_block *, long unsigned int, void *);
1: +
1: +struct notifier_block {
1: + notifier_fn_t notifier_call;
1: + struct notifier_block *next;
1: + int priority;
1: +};
1: +
1: +struct blocking_notifier_head {
1: + struct rw_semaphore rwsem;
1: + struct notifier_block *head;
1: +};
1: +
1: +struct raw_notifier_head {
1: + struct notifier_block *head;
1: +};
1: +
1: +struct rhash_head {
1: + struct rhash_head *next;
1: +};
1: +
1: +struct rhashtable;
1: +
1: +struct rhashtable_compare_arg {
1: + struct rhashtable *ht;
1: + const void *key;
1: +};
1: +
1: +typedef u32 (*rht_hashfn_t)(const void *, u32, u32);
1: +
1: +typedef u32 (*rht_obj_hashfn_t)(const void *, u32, u32);
1: +
1: +typedef int (*rht_obj_cmpfn_t)(struct rhashtable_compare_arg *, const void *);
1: +
1: +struct rhashtable_params {
1: + u16 nelem_hint;
1: + u16 key_len;
1: + u16 key_offset;
1: + u16 head_offset;
1: + unsigned int max_size;
1: + u16 min_size;
1: + bool automatic_shrinking;
1: + rht_hashfn_t hashfn;
1: + rht_obj_hashfn_t obj_hashfn;
1: + rht_obj_cmpfn_t obj_cmpfn;
1: +};
1: +
1: +struct bucket_table;
1: +
1: +struct rhashtable {
1: + struct bucket_table *tbl;
1: + unsigned int key_len;
1: + unsigned int max_elems;
1: + struct rhashtable_params p;
1: + bool rhlist;
1: + struct work_struct run_work;
1: + struct mutex mutex;
1: + spinlock_t lock;
1: + atomic_t nelems;
1: +};
1: +
1: +struct fs_struct {
1: + int users;
1: + spinlock_t lock;
1: + seqcount_spinlock_t seq;
1: + int umask;
1: + int in_exec;
1: + struct path root;
1: + struct path pwd;
1: +};
1: +
1: +typedef u32 compat_uptr_t;
1: +
1: +struct compat_robust_list {
1: + compat_uptr_t next;
1: +};
1: +
1: +typedef s32 compat_long_t;
1: +
1: +struct compat_robust_list_head {
1: + struct compat_robust_list list;
1: + compat_long_t futex_offset;
1: + compat_uptr_t list_op_pending;
1: +};
1: +
1: +struct pipe_buffer;
1: +
1: +struct watch_queue;
1: +
1: +struct pipe_inode_info {
1: + struct mutex mutex;
1: + wait_queue_head_t rd_wait;
1: + wait_queue_head_t wr_wait;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int max_usage;
1: + unsigned int ring_size;
1: + bool note_loss;
1: + unsigned int nr_accounted;
1: + unsigned int readers;
1: + unsigned int writers;
1: + unsigned int files;
1: + unsigned int r_counter;
1: + unsigned int w_counter;
1: + struct page *tmp_page;
1: + struct fasync_struct *fasync_readers;
1: + struct fasync_struct *fasync_writers;
1: + struct pipe_buffer *bufs;
1: + struct user_struct *user;
1: + struct watch_queue *watch_queue;
1: +};
1: +
1: +typedef __u64 __addrpair;
1: +
1: +typedef __u32 __portpair;
1: +
1: +typedef struct {
1: + struct net *net;
1: +} possible_net_t;
1: +
1: +struct in6_addr {
1: + union {
1: + __u8 u6_addr8[16];
1: + __be16 u6_addr16[8];
1: + __be32 u6_addr32[4];
1: + } in6_u;
1: +};
1: +
1: +struct hlist_nulls_node {
1: + struct hlist_nulls_node *next;
1: + struct hlist_nulls_node **pprev;
1: +};
1: +
1: +struct proto;
1: +
1: +struct inet_timewait_death_row;
1: +
1: +struct sock_common {
1: + union {
1: + __addrpair skc_addrpair;
1: + struct {
1: + __be32 skc_daddr;
1: + __be32 skc_rcv_saddr;
1: + };
1: + };
1: + union {
1: + unsigned int skc_hash;
1: + __u16 skc_u16hashes[2];
1: + };
1: + union {
1: + __portpair skc_portpair;
1: + struct {
1: + __be16 skc_dport;
1: + __u16 skc_num;
1: + };
1: + };
1: + short unsigned int skc_family;
1: + volatile unsigned char skc_state;
1: + unsigned char skc_reuse: 4;
1: + unsigned char skc_reuseport: 1;
1: + unsigned char skc_ipv6only: 1;
1: + unsigned char skc_net_refcnt: 1;
1: + int skc_bound_dev_if;
1: + union {
1: + struct hlist_node skc_bind_node;
1: + struct hlist_node skc_portaddr_node;
1: + };
1: + struct proto *skc_prot;
1: + possible_net_t skc_net;
1: + struct in6_addr skc_v6_daddr;
1: + struct in6_addr skc_v6_rcv_saddr;
1: + atomic64_t skc_cookie;
1: + union {
1: + long unsigned int skc_flags;
1: + struct sock *skc_listener;
1: + struct inet_timewait_death_row *skc_tw_dr;
1: + };
1: + int skc_dontcopy_begin[0];
1: + union {
1: + struct hlist_node skc_node;
1: + struct hlist_nulls_node skc_nulls_node;
1: + };
1: + short unsigned int skc_tx_queue_mapping;
1: + short unsigned int skc_rx_queue_mapping;
1: + union {
1: + int skc_incoming_cpu;
1: + u32 skc_rcv_wnd;
1: + u32 skc_tw_rcv_nxt;
1: + };
1: + refcount_t skc_refcnt;
1: + int skc_dontcopy_end[0];
1: + union {
1: + u32 skc_rxhash;
1: + u32 skc_window_clamp;
1: + u32 skc_tw_snd_nxt;
1: + };
1: +};
1: +
1: +typedef struct {
1: + spinlock_t slock;
1: + int owned;
1: + wait_queue_head_t wq;
1: +} socket_lock_t;
1: +
1: +struct sk_buff;
1: +
1: +struct sk_buff_head {
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + __u32 qlen;
1: + spinlock_t lock;
1: +};
1: +
1: +typedef u64 netdev_features_t;
1: +
1: +struct sock_cgroup_data {
1: + union {
1: + struct {
1: + u8 is_data: 1;
1: + u8 no_refcnt: 1;
1: + u8 unused: 6;
1: + u8 padding;
1: + u16 prioidx;
1: + u32 classid;
1: + };
1: + u64 val;
1: + };
1: +};
1: +
1: +struct sk_filter;
1: +
1: +struct socket_wq;
1: +
1: +struct xfrm_policy;
1: +
1: +struct dst_entry;
1: +
1: +struct socket;
1: +
1: +struct net_device;
1: +
1: +struct sock_reuseport;
1: +
1: +struct bpf_local_storage;
1: +
1: +struct sock {
1: + struct sock_common __sk_common;
1: + socket_lock_t sk_lock;
1: + atomic_t sk_drops;
1: + int sk_rcvlowat;
1: + struct sk_buff_head sk_error_queue;
1: + struct sk_buff *sk_rx_skb_cache;
1: + struct sk_buff_head sk_receive_queue;
1: + struct {
1: + atomic_t rmem_alloc;
1: + int len;
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + } sk_backlog;
1: + int sk_forward_alloc;
1: + unsigned int sk_ll_usec;
1: + unsigned int sk_napi_id;
1: + int sk_rcvbuf;
1: + struct sk_filter *sk_filter;
1: + union {
1: + struct socket_wq *sk_wq;
1: + struct socket_wq *sk_wq_raw;
1: + };
1: + struct xfrm_policy *sk_policy[2];
1: + struct dst_entry *sk_rx_dst;
1: + struct dst_entry *sk_dst_cache;
1: + atomic_t sk_omem_alloc;
1: + int sk_sndbuf;
1: + int sk_wmem_queued;
1: + refcount_t sk_wmem_alloc;
1: + long unsigned int sk_tsq_flags;
1: + union {
1: + struct sk_buff *sk_send_head;
1: + struct rb_root tcp_rtx_queue;
1: + };
1: + struct sk_buff *sk_tx_skb_cache;
1: + struct sk_buff_head sk_write_queue;
1: + __s32 sk_peek_off;
1: + int sk_write_pending;
1: + __u32 sk_dst_pending_confirm;
1: + u32 sk_pacing_status;
1: + long int sk_sndtimeo;
1: + struct timer_list sk_timer;
1: + __u32 sk_priority;
1: + __u32 sk_mark;
1: + long unsigned int sk_pacing_rate;
1: + long unsigned int sk_max_pacing_rate;
1: + struct page_frag sk_frag;
1: + netdev_features_t sk_route_caps;
1: + netdev_features_t sk_route_nocaps;
1: + netdev_features_t sk_route_forced_caps;
1: + int sk_gso_type;
1: + unsigned int sk_gso_max_size;
1: + gfp_t sk_allocation;
1: + __u32 sk_txhash;
1: + u8 sk_padding: 1;
1: + u8 sk_kern_sock: 1;
1: + u8 sk_no_check_tx: 1;
1: + u8 sk_no_check_rx: 1;
1: + u8 sk_userlocks: 4;
1: + u8 sk_pacing_shift;
1: + u16 sk_type;
1: + u16 sk_protocol;
1: + u16 sk_gso_max_segs;
1: + long unsigned int sk_lingertime;
1: + struct proto *sk_prot_creator;
1: + rwlock_t sk_callback_lock;
1: + int sk_err;
1: + int sk_err_soft;
1: + u32 sk_ack_backlog;
1: + u32 sk_max_ack_backlog;
1: + kuid_t sk_uid;
1: + struct pid *sk_peer_pid;
1: + const struct cred *sk_peer_cred;
1: + long int sk_rcvtimeo;
1: + ktime_t sk_stamp;
1: + u16 sk_tsflags;
1: + u8 sk_shutdown;
1: + u32 sk_tskey;
1: + atomic_t sk_zckey;
1: + u8 sk_clockid;
1: + u8 sk_txtime_deadline_mode: 1;
1: + u8 sk_txtime_report_errors: 1;
1: + u8 sk_txtime_unused: 6;
1: + struct socket *sk_socket;
1: + void *sk_user_data;
1: + void *sk_security;
1: + struct sock_cgroup_data sk_cgrp_data;
1: + struct mem_cgroup *sk_memcg;
1: + void (*sk_state_change)(struct sock *);
1: + void (*sk_data_ready)(struct sock *);
1: + void (*sk_write_space)(struct sock *);
1: + void (*sk_error_report)(struct sock *);
1: + int (*sk_backlog_rcv)(struct sock *, struct sk_buff *);
1: + struct sk_buff * (*sk_validate_xmit_skb)(struct sock *, struct net_device *, struct sk_buff *);
1: + void (*sk_destruct)(struct sock *);
1: + struct sock_reuseport *sk_reuseport_cb;
1: + struct bpf_local_storage *sk_bpf_storage;
1: + struct callback_head sk_rcu;
1: +};
1: +
1: +struct iovec {
1: + void *iov_base;
1: + __kernel_size_t iov_len;
1: +};
1: +
1: +struct kvec {
1: + void *iov_base;
1: + size_t iov_len;
1: +};
1: +
1: +struct iov_iter {
1: + unsigned int type;
1: + size_t iov_offset;
1: + size_t count;
1: + union {
1: + const struct iovec *iov;
1: + const struct kvec *kvec;
1: + const struct bio_vec *bvec;
1: + struct pipe_inode_info *pipe;
1: + };
1: + union {
1: + long unsigned int nr_segs;
1: + struct {
1: + unsigned int head;
1: + unsigned int start_head;
1: + };
1: + };
1: +};
1: +
1: +typedef short unsigned int __kernel_sa_family_t;
1: +
1: +typedef __kernel_sa_family_t sa_family_t;
1: +
1: +struct sockaddr {
1: + sa_family_t sa_family;
1: + char sa_data[14];
1: +};
1: +
1: +struct msghdr {
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iov_iter msg_iter;
1: + union {
1: + void *msg_control;
1: + void *msg_control_user;
1: + };
1: + bool msg_control_is_user: 1;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: + struct kiocb *msg_iocb;
1: +};
1: +
1: +typedef struct {
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: +} sync_serial_settings;
1: +
1: +typedef struct {
1: + unsigned int clock_rate;
1: + unsigned int clock_type;
1: + short unsigned int loopback;
1: + unsigned int slot_map;
1: +} te1_settings;
1: +
1: +typedef struct {
1: + short unsigned int encoding;
1: + short unsigned int parity;
1: +} raw_hdlc_proto;
1: +
1: +typedef struct {
1: + unsigned int t391;
1: + unsigned int t392;
1: + unsigned int n391;
1: + unsigned int n392;
1: + unsigned int n393;
1: + short unsigned int lmi;
1: + short unsigned int dce;
1: +} fr_proto;
1: +
1: +typedef struct {
1: + unsigned int dlci;
1: +} fr_proto_pvc;
1: +
1: +typedef struct {
1: + unsigned int dlci;
1: + char master[16];
1: +} fr_proto_pvc_info;
1: +
1: +typedef struct {
1: + unsigned int interval;
1: + unsigned int timeout;
1: +} cisco_proto;
1: +
1: +typedef struct {
1: + short unsigned int dce;
1: + unsigned int modulo;
1: + unsigned int window;
1: + unsigned int t1;
1: + unsigned int t2;
1: + unsigned int n2;
1: +} x25_hdlc_proto;
1: +
1: +struct ifmap {
1: + long unsigned int mem_start;
1: + long unsigned int mem_end;
1: + short unsigned int base_addr;
1: + unsigned char irq;
1: + unsigned char dma;
1: + unsigned char port;
1: +};
1: +
1: +struct if_settings {
1: + unsigned int type;
1: + unsigned int size;
1: + union {
1: + raw_hdlc_proto *raw_hdlc;
1: + cisco_proto *cisco;
1: + fr_proto *fr;
1: + fr_proto_pvc *fr_pvc;
1: + fr_proto_pvc_info *fr_pvc_info;
1: + x25_hdlc_proto *x25;
1: + sync_serial_settings *sync;
1: + te1_settings *te1;
1: + } ifs_ifsu;
1: +};
1: +
1: +struct ifreq {
1: + union {
1: + char ifrn_name[16];
1: + } ifr_ifrn;
1: + union {
1: + struct sockaddr ifru_addr;
1: + struct sockaddr ifru_dstaddr;
1: + struct sockaddr ifru_broadaddr;
1: + struct sockaddr ifru_netmask;
1: + struct sockaddr ifru_hwaddr;
1: + short int ifru_flags;
1: + int ifru_ivalue;
1: + int ifru_mtu;
1: + struct ifmap ifru_map;
1: + char ifru_slave[16];
1: + char ifru_newname[16];
1: + void *ifru_data;
1: + struct if_settings ifru_settings;
1: + } ifr_ifru;
1: +};
1: +
1: +struct vfsmount {
1: + struct dentry *mnt_root;
1: + struct super_block *mnt_sb;
1: + int mnt_flags;
1: +};
1: +
1: +struct ld_semaphore {
1: + atomic_long_t count;
1: + raw_spinlock_t wait_lock;
1: + unsigned int wait_readers;
1: + struct list_head read_wait;
1: + struct list_head write_wait;
1: +};
1: +
1: +typedef unsigned int tcflag_t;
1: +
1: +typedef unsigned char cc_t;
1: +
1: +typedef unsigned int speed_t;
1: +
1: +struct ktermios {
1: + tcflag_t c_iflag;
1: + tcflag_t c_oflag;
1: + tcflag_t c_cflag;
1: + tcflag_t c_lflag;
1: + cc_t c_cc[19];
1: + cc_t c_line;
1: + speed_t c_ispeed;
1: + speed_t c_ospeed;
1: +};
1: +
1: +struct winsize {
1: + short unsigned int ws_row;
1: + short unsigned int ws_col;
1: + short unsigned int ws_xpixel;
1: + short unsigned int ws_ypixel;
1: +};
1: +
1: +struct tty_driver;
1: +
1: +struct tty_operations;
1: +
1: +struct tty_ldisc;
1: +
1: +struct termiox;
1: +
1: +struct tty_port;
1: +
1: +struct tty_struct {
1: + int magic;
1: + struct kref kref;
1: + struct device *dev;
1: + struct tty_driver *driver;
1: + const struct tty_operations *ops;
1: + int index;
1: + struct ld_semaphore ldisc_sem;
1: + struct tty_ldisc *ldisc;
1: + struct mutex atomic_write_lock;
1: + struct mutex legacy_mutex;
1: + struct mutex throttle_mutex;
1: + struct rw_semaphore termios_rwsem;
1: + struct mutex winsize_mutex;
1: + spinlock_t ctrl_lock;
1: + spinlock_t flow_lock;
1: + struct ktermios termios;
1: + struct ktermios termios_locked;
1: + struct termiox *termiox;
1: + char name[64];
1: + struct pid *pgrp;
1: + struct pid *session;
1: + long unsigned int flags;
1: + int count;
1: + struct winsize winsize;
1: + long unsigned int stopped: 1;
1: + long unsigned int flow_stopped: 1;
1: + int: 30;
1: + long unsigned int unused: 62;
1: + int hw_stopped;
1: + long unsigned int ctrl_status: 8;
1: + long unsigned int packet: 1;
1: + int: 23;
1: + long unsigned int unused_ctrl: 55;
1: + unsigned int receive_room;
1: + int flow_change;
1: + struct tty_struct *link;
1: + struct fasync_struct *fasync;
1: + wait_queue_head_t write_wait;
1: + wait_queue_head_t read_wait;
1: + struct work_struct hangup_work;
1: + void *disc_data;
1: + void *driver_data;
1: + spinlock_t files_lock;
1: + struct list_head tty_files;
1: + int closing;
1: + unsigned char *write_buf;
1: + int write_cnt;
1: + struct work_struct SAK_work;
1: + struct tty_port *port;
1: +};
1: +
1: +typedef struct {
1: + size_t written;
1: + size_t count;
1: + union {
1: + char *buf;
1: + void *data;
1: + } arg;
1: + int error;
1: +} read_descriptor_t;
1: +
1: +struct posix_acl_entry {
1: + short int e_tag;
1: + short unsigned int e_perm;
1: + union {
1: + kuid_t e_uid;
1: + kgid_t e_gid;
1: + };
1: +};
1: +
1: +struct posix_acl {
1: + refcount_t a_refcount;
1: + struct callback_head a_rcu;
1: + unsigned int a_count;
1: + struct posix_acl_entry a_entries[0];
1: +};
1: +
1: +struct termiox {
1: + __u16 x_hflag;
1: + __u16 x_cflag;
1: + __u16 x_rflag[5];
1: + __u16 x_sflag;
1: +};
1: +
1: +struct serial_icounter_struct;
1: +
1: +struct serial_struct;
1: +
1: +struct tty_operations {
1: + struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
1: + int (*install)(struct tty_driver *, struct tty_struct *);
1: + void (*remove)(struct tty_driver *, struct tty_struct *);
1: + int (*open)(struct tty_struct *, struct file *);
1: + void (*close)(struct tty_struct *, struct file *);
1: + void (*shutdown)(struct tty_struct *);
1: + void (*cleanup)(struct tty_struct *);
1: + int (*write)(struct tty_struct *, const unsigned char *, int);
1: + int (*put_char)(struct tty_struct *, unsigned char);
1: + void (*flush_chars)(struct tty_struct *);
1: + int (*write_room)(struct tty_struct *);
1: + int (*chars_in_buffer)(struct tty_struct *);
1: + int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: + long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + void (*throttle)(struct tty_struct *);
1: + void (*unthrottle)(struct tty_struct *);
1: + void (*stop)(struct tty_struct *);
1: + void (*start)(struct tty_struct *);
1: + void (*hangup)(struct tty_struct *);
1: + int (*break_ctl)(struct tty_struct *, int);
1: + void (*flush_buffer)(struct tty_struct *);
1: + void (*set_ldisc)(struct tty_struct *);
1: + void (*wait_until_sent)(struct tty_struct *, int);
1: + void (*send_xchar)(struct tty_struct *, char);
1: + int (*tiocmget)(struct tty_struct *);
1: + int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
1: + int (*resize)(struct tty_struct *, struct winsize *);
1: + int (*set_termiox)(struct tty_struct *, struct termiox *);
1: + int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
1: + int (*get_serial)(struct tty_struct *, struct serial_struct *);
1: + int (*set_serial)(struct tty_struct *, struct serial_struct *);
1: + void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
1: + int (*poll_init)(struct tty_driver *, int, char *);
1: + int (*poll_get_char)(struct tty_driver *, int);
1: + void (*poll_put_char)(struct tty_driver *, int, char);
1: + int (*proc_show)(struct seq_file *, void *);
1: +};
1: +
1: +struct tty_driver {
1: + int magic;
1: + struct kref kref;
1: + struct cdev **cdevs;
1: + struct module *owner;
1: + const char *driver_name;
1: + const char *name;
1: + int name_base;
1: + int major;
1: + int minor_start;
1: + unsigned int num;
1: + short int type;
1: + short int subtype;
1: + struct ktermios init_termios;
1: + long unsigned int flags;
1: + struct proc_dir_entry *proc_entry;
1: + struct tty_driver *other;
1: + struct tty_struct **ttys;
1: + struct tty_port **ports;
1: + struct ktermios **termios;
1: + void *driver_state;
1: + const struct tty_operations *ops;
1: + struct list_head tty_drivers;
1: +};
1: +
1: +struct tty_buffer {
1: + union {
1: + struct tty_buffer *next;
1: + struct llist_node free;
1: + };
1: + int used;
1: + int size;
1: + int commit;
1: + int read;
1: + int flags;
1: + long unsigned int data[0];
1: +};
1: +
1: +struct tty_bufhead {
1: + struct tty_buffer *head;
1: + struct work_struct work;
1: + struct mutex lock;
1: + atomic_t priority;
1: + struct tty_buffer sentinel;
1: + struct llist_head free;
1: + atomic_t mem_used;
1: + int mem_limit;
1: + struct tty_buffer *tail;
1: +};
1: +
1: +struct tty_port_operations;
1: +
1: +struct tty_port_client_operations;
1: +
1: +struct tty_port {
1: + struct tty_bufhead buf;
1: + struct tty_struct *tty;
1: + struct tty_struct *itty;
1: + const struct tty_port_operations *ops;
1: + const struct tty_port_client_operations *client_ops;
1: + spinlock_t lock;
1: + int blocked_open;
1: + int count;
1: + wait_queue_head_t open_wait;
1: + wait_queue_head_t delta_msr_wait;
1: + long unsigned int flags;
1: + long unsigned int iflags;
1: + unsigned char console: 1;
1: + unsigned char low_latency: 1;
1: + struct mutex mutex;
1: + struct mutex buf_mutex;
1: + unsigned char *xmit_buf;
1: + unsigned int close_delay;
1: + unsigned int closing_wait;
1: + int drain_delay;
1: + struct kref kref;
1: + void *client_data;
1: +};
1: +
1: +struct tty_ldisc_ops {
1: + int magic;
1: + char *name;
1: + int num;
1: + int flags;
1: + int (*open)(struct tty_struct *);
1: + void (*close)(struct tty_struct *);
1: + void (*flush_buffer)(struct tty_struct *);
1: + ssize_t (*read)(struct tty_struct *, struct file *, unsigned char *, size_t);
1: + ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t);
1: + int (*ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct tty_struct *, struct file *, unsigned int, long unsigned int);
1: + void (*set_termios)(struct tty_struct *, struct ktermios *);
1: + __poll_t (*poll)(struct tty_struct *, struct file *, struct poll_table_struct *);
1: + int (*hangup)(struct tty_struct *);
1: + void (*receive_buf)(struct tty_struct *, const unsigned char *, char *, int);
1: + void (*write_wakeup)(struct tty_struct *);
1: + void (*dcd_change)(struct tty_struct *, unsigned int);
1: + int (*receive_buf2)(struct tty_struct *, const unsigned char *, char *, int);
1: + struct module *owner;
1: + int refcount;
1: +};
1: +
1: +struct tty_ldisc {
1: + struct tty_ldisc_ops *ops;
1: + struct tty_struct *tty;
1: +};
1: +
1: +struct tty_port_operations {
1: + int (*carrier_raised)(struct tty_port *);
1: + void (*dtr_rts)(struct tty_port *, int);
1: + void (*shutdown)(struct tty_port *);
1: + int (*activate)(struct tty_port *, struct tty_struct *);
1: + void (*destruct)(struct tty_port *);
1: +};
1: +
1: +struct tty_port_client_operations {
1: + int (*receive_buf)(struct tty_port *, const unsigned char *, const unsigned char *, size_t);
1: + void (*write_wakeup)(struct tty_port *);
1: +};
1: +
1: +struct prot_inuse;
1: +
1: +struct netns_core {
1: + struct ctl_table_header *sysctl_hdr;
1: + int sysctl_somaxconn;
1: + int *sock_inuse;
1: + struct prot_inuse *prot_inuse;
1: +};
1: +
1: +struct tcp_mib;
1: +
1: +struct ipstats_mib;
1: +
1: +struct linux_mib;
1: +
1: +struct udp_mib;
1: +
1: +struct icmp_mib;
1: +
1: +struct icmpmsg_mib;
1: +
1: +struct icmpv6_mib;
1: +
1: +struct icmpv6msg_mib;
1: +
1: +struct linux_tls_mib;
1: +
1: +struct mptcp_mib;
1: +
1: +struct netns_mib {
1: + struct tcp_mib *tcp_statistics;
1: + struct ipstats_mib *ip_statistics;
1: + struct linux_mib *net_statistics;
1: + struct udp_mib *udp_statistics;
1: + struct udp_mib *udplite_statistics;
1: + struct icmp_mib *icmp_statistics;
1: + struct icmpmsg_mib *icmpmsg_statistics;
1: + struct proc_dir_entry *proc_net_devsnmp6;
1: + struct udp_mib *udp_stats_in6;
1: + struct udp_mib *udplite_stats_in6;
1: + struct ipstats_mib *ipv6_statistics;
1: + struct icmpv6_mib *icmpv6_statistics;
1: + struct icmpv6msg_mib *icmpv6msg_statistics;
1: + struct linux_tls_mib *tls_statistics;
1: + struct mptcp_mib *mptcp_statistics;
1: +};
1: +
1: +struct netns_packet {
1: + struct mutex sklist_lock;
1: + struct hlist_head sklist;
1: +};
1: +
1: +struct netns_unix {
1: + int sysctl_max_dgram_qlen;
1: + struct ctl_table_header *ctl;
1: +};
1: +
1: +struct netns_nexthop {
1: + struct rb_root rb_root;
1: + struct hlist_head *devhash;
1: + unsigned int seq;
1: + u32 last_id_allocated;
1: + struct blocking_notifier_head notifier_chain;
1: +};
1: +
1: +struct local_ports {
1: + seqlock_t lock;
1: + int range[2];
1: + bool warned;
1: +};
1: +
1: +struct inet_hashinfo;
1: +
1: +struct inet_timewait_death_row {
1: + atomic_t tw_count;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct inet_hashinfo *hashinfo;
1: + int sysctl_max_tw_buckets;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ping_group_range {
1: + seqlock_t lock;
1: + kgid_t range[2];
1: +};
1: +
1: +typedef struct {
1: + u64 key[2];
1: +} siphash_key_t;
1: +
1: +struct ipv4_devconf;
1: +
1: +struct ip_ra_chain;
1: +
1: +struct fib_rules_ops;
1: +
1: +struct fib_table;
1: +
1: +struct inet_peer_base;
1: +
1: +struct fqdir;
1: +
1: +struct xt_table;
1: +
1: +struct tcp_congestion_ops;
1: +
1: +struct tcp_fastopen_context;
1: +
1: +struct fib_notifier_ops;
1: +
1: +struct netns_ipv4 {
1: + struct ctl_table_header *forw_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *ipv4_hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *xfrm4_hdr;
1: + struct ipv4_devconf *devconf_all;
1: + struct ipv4_devconf *devconf_dflt;
1: + struct ip_ra_chain *ra_chain;
1: + struct mutex ra_mutex;
1: + struct fib_rules_ops *rules_ops;
1: + bool fib_has_custom_rules;
1: + unsigned int fib_rules_require_fldissect;
1: + struct fib_table *fib_main;
1: + struct fib_table *fib_default;
1: + bool fib_has_custom_local_routes;
1: + int fib_num_tclassid_users;
1: + struct hlist_head *fib_table_hash;
1: + bool fib_offload_disabled;
1: + struct sock *fibnl;
1: + struct sock **icmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct inet_peer_base *peers;
1: + struct sock **tcp_sk;
1: + struct fqdir *fqdir;
1: + struct xt_table *iptable_filter;
1: + struct xt_table *iptable_mangle;
1: + struct xt_table *iptable_raw;
1: + struct xt_table *arptable_filter;
1: + struct xt_table *iptable_security;
1: + struct xt_table *nat_table;
1: + int sysctl_icmp_echo_ignore_all;
1: + int sysctl_icmp_echo_ignore_broadcasts;
1: + int sysctl_icmp_ignore_bogus_error_responses;
1: + int sysctl_icmp_ratelimit;
1: + int sysctl_icmp_ratemask;
1: + int sysctl_icmp_errors_use_inbound_ifaddr;
1: + struct local_ports ip_local_ports;
1: + int sysctl_tcp_ecn;
1: + int sysctl_tcp_ecn_fallback;
1: + int sysctl_ip_default_ttl;
1: + int sysctl_ip_no_pmtu_disc;
1: + int sysctl_ip_fwd_use_pmtu;
1: + int sysctl_ip_fwd_update_priority;
1: + int sysctl_ip_nonlocal_bind;
1: + int sysctl_ip_autobind_reuse;
1: + int sysctl_ip_dynaddr;
1: + int sysctl_ip_early_demux;
1: + int sysctl_raw_l3mdev_accept;
1: + int sysctl_tcp_early_demux;
1: + int sysctl_udp_early_demux;
1: + int sysctl_nexthop_compat_mode;
1: + int sysctl_fwmark_reflect;
1: + int sysctl_tcp_fwmark_accept;
1: + int sysctl_tcp_l3mdev_accept;
1: + int sysctl_tcp_mtu_probing;
1: + int sysctl_tcp_mtu_probe_floor;
1: + int sysctl_tcp_base_mss;
1: + int sysctl_tcp_min_snd_mss;
1: + int sysctl_tcp_probe_threshold;
1: + u32 sysctl_tcp_probe_interval;
1: + int sysctl_tcp_keepalive_time;
1: + int sysctl_tcp_keepalive_probes;
1: + int sysctl_tcp_keepalive_intvl;
1: + int sysctl_tcp_syn_retries;
1: + int sysctl_tcp_synack_retries;
1: + int sysctl_tcp_syncookies;
1: + int sysctl_tcp_reordering;
1: + int sysctl_tcp_retries1;
1: + int sysctl_tcp_retries2;
1: + int sysctl_tcp_orphan_retries;
1: + int sysctl_tcp_fin_timeout;
1: + unsigned int sysctl_tcp_notsent_lowat;
1: + int sysctl_tcp_tw_reuse;
1: + int sysctl_tcp_sack;
1: + int sysctl_tcp_window_scaling;
1: + int sysctl_tcp_timestamps;
1: + int sysctl_tcp_early_retrans;
1: + int sysctl_tcp_recovery;
1: + int sysctl_tcp_thin_linear_timeouts;
1: + int sysctl_tcp_slow_start_after_idle;
1: + int sysctl_tcp_retrans_collapse;
1: + int sysctl_tcp_stdurg;
1: + int sysctl_tcp_rfc1337;
1: + int sysctl_tcp_abort_on_overflow;
1: + int sysctl_tcp_fack;
1: + int sysctl_tcp_max_reordering;
1: + int sysctl_tcp_dsack;
1: + int sysctl_tcp_app_win;
1: + int sysctl_tcp_adv_win_scale;
1: + int sysctl_tcp_frto;
1: + int sysctl_tcp_nometrics_save;
1: + int sysctl_tcp_no_ssthresh_metrics_save;
1: + int sysctl_tcp_moderate_rcvbuf;
1: + int sysctl_tcp_tso_win_divisor;
1: + int sysctl_tcp_workaround_signed_windows;
1: + int sysctl_tcp_limit_output_bytes;
1: + int sysctl_tcp_challenge_ack_limit;
1: + int sysctl_tcp_min_tso_segs;
1: + int sysctl_tcp_min_rtt_wlen;
1: + int sysctl_tcp_autocorking;
1: + int sysctl_tcp_invalid_ratelimit;
1: + int sysctl_tcp_pacing_ss_ratio;
1: + int sysctl_tcp_pacing_ca_ratio;
1: + int sysctl_tcp_wmem[3];
1: + int sysctl_tcp_rmem[3];
1: + int sysctl_tcp_comp_sack_nr;
1: + long unsigned int sysctl_tcp_comp_sack_delay_ns;
1: + long unsigned int sysctl_tcp_comp_sack_slack_ns;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct inet_timewait_death_row tcp_death_row;
1: + int sysctl_max_syn_backlog;
1: + int sysctl_tcp_fastopen;
1: + const struct tcp_congestion_ops *tcp_congestion_control;
1: + struct tcp_fastopen_context *tcp_fastopen_ctx;
1: + spinlock_t tcp_fastopen_ctx_lock;
1: + unsigned int sysctl_tcp_fastopen_blackhole_timeout;
1: + atomic_t tfo_active_disable_times;
1: + long unsigned int tfo_active_disable_stamp;
1: + int sysctl_tcp_reflect_tos;
1: + int sysctl_udp_wmem_min;
1: + int sysctl_udp_rmem_min;
1: + int sysctl_udp_l3mdev_accept;
1: + int sysctl_igmp_max_memberships;
1: + int sysctl_igmp_max_msf;
1: + int sysctl_igmp_llm_reports;
1: + int sysctl_igmp_qrv;
1: + struct ping_group_range ping_group_range;
1: + atomic_t dev_addr_genid;
1: + long unsigned int *sysctl_local_reserved_ports;
1: + int sysctl_ip_prot_sock;
1: + struct list_head mr_tables;
1: + struct fib_rules_ops *mr_rules_ops;
1: + int sysctl_fib_multipath_use_neigh;
1: + int sysctl_fib_multipath_hash_policy;
1: + struct fib_notifier_ops *notifier_ops;
1: + unsigned int fib_seq;
1: + struct fib_notifier_ops *ipmr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + atomic_t rt_genid;
1: + siphash_key_t ip_id_key;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct netns_sysctl_ipv6 {
1: + struct ctl_table_header *hdr;
1: + struct ctl_table_header *route_hdr;
1: + struct ctl_table_header *icmp_hdr;
1: + struct ctl_table_header *frags_hdr;
1: + struct ctl_table_header *xfrm6_hdr;
1: + int bindv6only;
1: + int flush_delay;
1: + int ip6_rt_max_size;
1: + int ip6_rt_gc_min_interval;
1: + int ip6_rt_gc_timeout;
1: + int ip6_rt_gc_interval;
1: + int ip6_rt_gc_elasticity;
1: + int ip6_rt_mtu_expires;
1: + int ip6_rt_min_advmss;
1: + int multipath_hash_policy;
1: + int flowlabel_consistency;
1: + int auto_flowlabels;
1: + int icmpv6_time;
1: + int icmpv6_echo_ignore_all;
1: + int icmpv6_echo_ignore_multicast;
1: + int icmpv6_echo_ignore_anycast;
1: + long unsigned int icmpv6_ratemask[4];
1: + long unsigned int *icmpv6_ratemask_ptr;
1: + int anycast_src_echo_reply;
1: + int ip_nonlocal_bind;
1: + int fwmark_reflect;
1: + int idgen_retries;
1: + int idgen_delay;
1: + int flowlabel_state_ranges;
1: + int flowlabel_reflect;
1: + int max_dst_opts_cnt;
1: + int max_hbh_opts_cnt;
1: + int max_dst_opts_len;
1: + int max_hbh_opts_len;
1: + int seg6_flowlabel;
1: + bool skip_notify_on_dev_down;
1: +};
1: +
1: +struct neighbour;
1: +
1: +struct dst_ops {
1: + short unsigned int family;
1: + unsigned int gc_thresh;
1: + int (*gc)(struct dst_ops *);
1: + struct dst_entry * (*check)(struct dst_entry *, __u32);
1: + unsigned int (*default_advmss)(const struct dst_entry *);
1: + unsigned int (*mtu)(const struct dst_entry *);
1: + u32 * (*cow_metrics)(struct dst_entry *, long unsigned int);
1: + void (*destroy)(struct dst_entry *);
1: + void (*ifdown)(struct dst_entry *, struct net_device *, int);
1: + struct dst_entry * (*negative_advice)(struct dst_entry *);
1: + void (*link_failure)(struct sk_buff *);
1: + void (*update_pmtu)(struct dst_entry *, struct sock *, struct sk_buff *, u32, bool);
1: + void (*redirect)(struct dst_entry *, struct sock *, struct sk_buff *);
1: + int (*local_out)(struct net *, struct sock *, struct sk_buff *);
1: + struct neighbour * (*neigh_lookup)(const struct dst_entry *, struct sk_buff *, const void *);
1: + void (*confirm_neigh)(const struct dst_entry *, const void *);
1: + struct kmem_cache *kmem_cachep;
1: + struct percpu_counter pcpuc_entries;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ipv6_devconf;
1: +
1: +struct fib6_info;
1: +
1: +struct rt6_info;
1: +
1: +struct rt6_statistics;
1: +
1: +struct fib6_table;
1: +
1: +struct seg6_pernet_data;
1: +
1: +struct netns_ipv6 {
1: + struct netns_sysctl_ipv6 sysctl;
1: + struct ipv6_devconf *devconf_all;
1: + struct ipv6_devconf *devconf_dflt;
1: + struct inet_peer_base *peers;
1: + struct fqdir *fqdir;
1: + struct xt_table *ip6table_filter;
1: + struct xt_table *ip6table_mangle;
1: + struct xt_table *ip6table_raw;
1: + struct xt_table *ip6table_security;
1: + struct xt_table *ip6table_nat;
1: + struct fib6_info *fib6_null_entry;
1: + struct rt6_info *ip6_null_entry;
1: + struct rt6_statistics *rt6_stats;
1: + struct timer_list ip6_fib_timer;
1: + struct hlist_head *fib_table_hash;
1: + struct fib6_table *fib6_main_tbl;
1: + struct list_head fib6_walkers;
1: + long: 64;
1: + long: 64;
1: + struct dst_ops ip6_dst_ops;
1: + rwlock_t fib6_walker_lock;
1: + spinlock_t fib6_gc_lock;
1: + unsigned int ip6_rt_gc_expire;
1: + long unsigned int ip6_rt_last_gc;
1: + unsigned int fib6_rules_require_fldissect;
1: + bool fib6_has_custom_rules;
1: + unsigned int fib6_routes_require_src;
1: + struct rt6_info *ip6_prohibit_entry;
1: + struct rt6_info *ip6_blk_hole_entry;
1: + struct fib6_table *fib6_local_tbl;
1: + struct fib_rules_ops *fib6_rules_ops;
1: + struct sock **icmp_sk;
1: + struct sock *ndisc_sk;
1: + struct sock *tcp_sk;
1: + struct sock *igmp_sk;
1: + struct sock *mc_autojoin_sk;
1: + struct list_head mr6_tables;
1: + struct fib_rules_ops *mr6_rules_ops;
1: + atomic_t dev_addr_genid;
1: + atomic_t fib6_sernum;
1: + struct seg6_pernet_data *seg6_data;
1: + struct fib_notifier_ops *notifier_ops;
1: + struct fib_notifier_ops *ip6mr_notifier_ops;
1: + unsigned int ipmr_seq;
1: + struct {
1: + struct hlist_head head;
1: + spinlock_t lock;
1: + u32 seq;
1: + } ip6addrlbl_table;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct netns_sysctl_lowpan {
1: + struct ctl_table_header *frags_hdr;
1: +};
1: +
1: +struct netns_ieee802154_lowpan {
1: + struct netns_sysctl_lowpan sysctl;
1: + struct fqdir *fqdir;
1: +};
1: +
1: +struct sctp_mib;
1: +
1: +struct netns_sctp {
1: + struct sctp_mib *sctp_statistics;
1: + struct proc_dir_entry *proc_net_sctp;
1: + struct ctl_table_header *sysctl_header;
1: + struct sock *ctl_sock;
1: + struct list_head local_addr_list;
1: + struct list_head addr_waitq;
1: + struct timer_list addr_wq_timer;
1: + struct list_head auto_asconf_splist;
1: + spinlock_t addr_wq_lock;
1: + spinlock_t local_addr_lock;
1: + unsigned int rto_initial;
1: + unsigned int rto_min;
1: + unsigned int rto_max;
1: + int rto_alpha;
1: + int rto_beta;
1: + int max_burst;
1: + int cookie_preserve_enable;
1: + char *sctp_hmac_alg;
1: + unsigned int valid_cookie_life;
1: + unsigned int sack_timeout;
1: + unsigned int hb_interval;
1: + int max_retrans_association;
1: + int max_retrans_path;
1: + int max_retrans_init;
1: + int pf_retrans;
1: + int ps_retrans;
1: + int pf_enable;
1: + int pf_expose;
1: + int sndbuf_policy;
1: + int rcvbuf_policy;
1: + int default_auto_asconf;
1: + int addip_enable;
1: + int addip_noauth;
1: + int prsctp_enable;
1: + int reconf_enable;
1: + int auth_enable;
1: + int intl_enable;
1: + int ecn_enable;
1: + int scope_policy;
1: + int rwnd_upd_shift;
1: + long unsigned int max_autoclose;
1: +};
1: +
1: +struct netns_dccp {
1: + struct sock *v4_ctl_sk;
1: + struct sock *v6_ctl_sk;
1: +};
1: +
1: +struct nf_queue_handler;
1: +
1: +struct nf_logger;
1: +
1: +struct nf_hook_entries;
1: +
1: +struct netns_nf {
1: + struct proc_dir_entry *proc_netfilter;
1: + const struct nf_queue_handler *queue_handler;
1: + const struct nf_logger *nf_loggers[13];
1: + struct ctl_table_header *nf_log_dir_header;
1: + struct nf_hook_entries *hooks_ipv4[5];
1: + struct nf_hook_entries *hooks_ipv6[5];
1: + struct nf_hook_entries *hooks_arp[3];
1: + struct nf_hook_entries *hooks_bridge[5];
1: + struct nf_hook_entries *hooks_decnet[7];
1: + bool defrag_ipv4;
1: + bool defrag_ipv6;
1: +};
1: +
1: +struct ebt_table;
1: +
1: +struct netns_xt {
1: + struct list_head tables[13];
1: + bool notrack_deprecated_warning;
1: + bool clusterip_deprecated_warning;
1: + struct ebt_table *broute_table;
1: + struct ebt_table *frame_filter;
1: + struct ebt_table *frame_nat;
1: +};
1: +
1: +struct nf_generic_net {
1: + unsigned int timeout;
1: +};
1: +
1: +struct nf_tcp_net {
1: + unsigned int timeouts[14];
1: + int tcp_loose;
1: + int tcp_be_liberal;
1: + int tcp_max_retrans;
1: +};
1: +
1: +struct nf_udp_net {
1: + unsigned int timeouts[2];
1: +};
1: +
1: +struct nf_icmp_net {
1: + unsigned int timeout;
1: +};
1: +
1: +struct nf_dccp_net {
1: + int dccp_loose;
1: + unsigned int dccp_timeout[10];
1: +};
1: +
1: +struct nf_sctp_net {
1: + unsigned int timeouts[10];
1: +};
1: +
1: +struct nf_gre_net {
1: + struct list_head keymap_list;
1: + unsigned int timeouts[2];
1: +};
1: +
1: +struct nf_ip_net {
1: + struct nf_generic_net generic;
1: + struct nf_tcp_net tcp;
1: + struct nf_udp_net udp;
1: + struct nf_icmp_net icmp;
1: + struct nf_icmp_net icmpv6;
1: + struct nf_dccp_net dccp;
1: + struct nf_sctp_net sctp;
1: + struct nf_gre_net gre;
1: +};
1: +
1: +struct ct_pcpu;
1: +
1: +struct ip_conntrack_stat;
1: +
1: +struct nf_ct_event_notifier;
1: +
1: +struct nf_exp_event_notifier;
1: +
1: +struct netns_ct {
1: + atomic_t count;
1: + unsigned int expect_count;
1: + struct delayed_work ecache_dwork;
1: + bool ecache_dwork_pending;
1: + bool auto_assign_helper_warned;
1: + struct ctl_table_header *sysctl_header;
1: + unsigned int sysctl_log_invalid;
1: + int sysctl_events;
1: + int sysctl_acct;
1: + int sysctl_auto_assign_helper;
1: + int sysctl_tstamp;
1: + int sysctl_checksum;
1: + struct ct_pcpu *pcpu_lists;
1: + struct ip_conntrack_stat *stat;
1: + struct nf_ct_event_notifier *nf_conntrack_event_cb;
1: + struct nf_exp_event_notifier *nf_expect_event_cb;
1: + struct nf_ip_net nf_ct_proto;
1: + unsigned int labels_used;
1: +};
1: +
1: +struct netns_nftables {
1: + struct list_head tables;
1: + struct list_head commit_list;
1: + struct list_head module_list;
1: + struct list_head notify_list;
1: + struct mutex commit_mutex;
1: + unsigned int base_seq;
1: + u8 gencursor;
1: + u8 validate_state;
1: +};
1: +
1: +struct netns_nf_frag {
1: + struct fqdir *fqdir;
1: +};
1: +
1: +struct netns_bpf {
1: + struct bpf_prog_array *run_array[2];
1: + struct bpf_prog *progs[2];
1: + struct list_head links[2];
1: +};
1: +
1: +struct xfrm_policy_hash {
1: + struct hlist_head *table;
1: + unsigned int hmask;
1: + u8 dbits4;
1: + u8 sbits4;
1: + u8 dbits6;
1: + u8 sbits6;
1: +};
1: +
1: +struct xfrm_policy_hthresh {
1: + struct work_struct work;
1: + seqlock_t lock;
1: + u8 lbits4;
1: + u8 rbits4;
1: + u8 lbits6;
1: + u8 rbits6;
1: +};
1: +
1: +struct netns_xfrm {
1: + struct list_head state_all;
1: + struct hlist_head *state_bydst;
1: + struct hlist_head *state_bysrc;
1: + struct hlist_head *state_byspi;
1: + unsigned int state_hmask;
1: + unsigned int state_num;
1: + struct work_struct state_hash_work;
1: + struct list_head policy_all;
1: + struct hlist_head *policy_byidx;
1: + unsigned int policy_idx_hmask;
1: + struct hlist_head policy_inexact[3];
1: + struct xfrm_policy_hash policy_bydst[3];
1: + unsigned int policy_count[6];
1: + struct work_struct policy_hash_work;
1: + struct xfrm_policy_hthresh policy_hthresh;
1: + struct list_head inexact_bins;
1: + struct sock *nlsk;
1: + struct sock *nlsk_stash;
1: + u32 sysctl_aevent_etime;
1: + u32 sysctl_aevent_rseqth;
1: + int sysctl_larval_drop;
1: + u32 sysctl_acq_expires;
1: + struct ctl_table_header *sysctl_hdr;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct dst_ops xfrm4_dst_ops;
1: + struct dst_ops xfrm6_dst_ops;
1: + spinlock_t xfrm_state_lock;
1: + spinlock_t xfrm_policy_lock;
1: + struct mutex xfrm_cfg_mutex;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct netns_ipvs;
1: +
1: +struct mpls_route;
1: +
1: +struct netns_mpls {
1: + int ip_ttl_propagate;
1: + int default_ttl;
1: + size_t platform_labels;
1: + struct mpls_route **platform_label;
1: + struct ctl_table_header *ctl;
1: +};
1: +
1: +struct can_dev_rcv_lists;
1: +
1: +struct can_pkg_stats;
1: +
1: +struct can_rcv_lists_stats;
1: +
1: +struct netns_can {
1: + struct proc_dir_entry *proc_dir;
1: + struct proc_dir_entry *pde_stats;
1: + struct proc_dir_entry *pde_reset_stats;
1: + struct proc_dir_entry *pde_rcvlist_all;
1: + struct proc_dir_entry *pde_rcvlist_fil;
1: + struct proc_dir_entry *pde_rcvlist_inv;
1: + struct proc_dir_entry *pde_rcvlist_sff;
1: + struct proc_dir_entry *pde_rcvlist_eff;
1: + struct proc_dir_entry *pde_rcvlist_err;
1: + struct proc_dir_entry *bcmproc_dir;
1: + struct can_dev_rcv_lists *rx_alldev_list;
1: + spinlock_t rcvlists_lock;
1: + struct timer_list stattimer;
1: + struct can_pkg_stats *pkg_stats;
1: + struct can_rcv_lists_stats *rcv_lists_stats;
1: + struct hlist_head cgw_list;
1: +};
1: +
1: +struct netns_xdp {
1: + struct mutex lock;
1: + struct hlist_head list;
1: +};
1: +
1: +struct uevent_sock;
1: +
1: +struct net_generic;
1: +
1: +struct net {
1: + refcount_t passive;
1: + refcount_t count;
1: + spinlock_t rules_mod_lock;
1: + unsigned int dev_unreg_count;
1: + unsigned int dev_base_seq;
1: + int ifindex;
1: + spinlock_t nsid_lock;
1: + atomic_t fnhe_genid;
1: + struct list_head list;
1: + struct list_head exit_list;
1: + struct llist_node cleanup_list;
1: + struct key_tag *key_domain;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct idr netns_ids;
1: + struct ns_common ns;
1: + struct list_head dev_base_head;
1: + struct proc_dir_entry *proc_net;
1: + struct proc_dir_entry *proc_net_stat;
1: + struct ctl_table_set sysctls;
1: + struct sock *rtnl;
1: + struct sock *genl_sock;
1: + struct uevent_sock *uevent_sock;
1: + struct hlist_head *dev_name_head;
1: + struct hlist_head *dev_index_head;
1: + struct raw_notifier_head netdev_chain;
1: + u32 hash_mix;
1: + struct net_device *loopback_dev;
1: + struct list_head rules_ops;
1: + struct netns_core core;
1: + struct netns_mib mib;
1: + struct netns_packet packet;
1: + struct netns_unix unx;
1: + struct netns_nexthop nexthop;
1: + long: 64;
1: + struct netns_ipv4 ipv4;
1: + struct netns_ipv6 ipv6;
1: + struct netns_ieee802154_lowpan ieee802154_lowpan;
1: + struct netns_sctp sctp;
1: + struct netns_dccp dccp;
1: + struct netns_nf nf;
1: + struct netns_xt xt;
1: + struct netns_ct ct;
1: + struct netns_nftables nft;
1: + struct netns_nf_frag nf_frag;
1: + struct ctl_table_header *nf_frag_frags_hdr;
1: + struct sock *nfnl;
1: + struct sock *nfnl_stash;
1: + struct list_head nfnl_acct_list;
1: + struct list_head nfct_timeout_list;
1: + struct sk_buff_head wext_nlevents;
1: + struct net_generic *gen;
1: + struct netns_bpf bpf;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct netns_xfrm xfrm;
1: + atomic64_t net_cookie;
1: + struct netns_ipvs *ipvs;
1: + struct netns_mpls mpls;
1: + struct netns_can can;
1: + struct netns_xdp xdp;
1: + struct sock *crypto_nlsk;
1: + struct sock *diag_nlsk;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef struct {
1: + local64_t v;
1: +} u64_stats_t;
1: +
1: +struct bpf_insn {
1: + __u8 code;
1: + __u8 dst_reg: 4;
1: + __u8 src_reg: 4;
1: + __s16 off;
1: + __s32 imm;
1: +};
1: +
1: +enum bpf_map_type {
1: + BPF_MAP_TYPE_UNSPEC = 0,
1: + BPF_MAP_TYPE_HASH = 1,
1: + BPF_MAP_TYPE_ARRAY = 2,
1: + BPF_MAP_TYPE_PROG_ARRAY = 3,
1: + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4,
1: + BPF_MAP_TYPE_PERCPU_HASH = 5,
1: + BPF_MAP_TYPE_PERCPU_ARRAY = 6,
1: + BPF_MAP_TYPE_STACK_TRACE = 7,
1: + BPF_MAP_TYPE_CGROUP_ARRAY = 8,
1: + BPF_MAP_TYPE_LRU_HASH = 9,
1: + BPF_MAP_TYPE_LRU_PERCPU_HASH = 10,
1: + BPF_MAP_TYPE_LPM_TRIE = 11,
1: + BPF_MAP_TYPE_ARRAY_OF_MAPS = 12,
1: + BPF_MAP_TYPE_HASH_OF_MAPS = 13,
1: + BPF_MAP_TYPE_DEVMAP = 14,
1: + BPF_MAP_TYPE_SOCKMAP = 15,
1: + BPF_MAP_TYPE_CPUMAP = 16,
1: + BPF_MAP_TYPE_XSKMAP = 17,
1: + BPF_MAP_TYPE_SOCKHASH = 18,
1: + BPF_MAP_TYPE_CGROUP_STORAGE = 19,
1: + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20,
1: + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21,
1: + BPF_MAP_TYPE_QUEUE = 22,
1: + BPF_MAP_TYPE_STACK = 23,
1: + BPF_MAP_TYPE_SK_STORAGE = 24,
1: + BPF_MAP_TYPE_DEVMAP_HASH = 25,
1: + BPF_MAP_TYPE_STRUCT_OPS = 26,
1: + BPF_MAP_TYPE_RINGBUF = 27,
1: + BPF_MAP_TYPE_INODE_STORAGE = 28,
1: +};
1: +
1: +enum bpf_prog_type {
1: + BPF_PROG_TYPE_UNSPEC = 0,
1: + BPF_PROG_TYPE_SOCKET_FILTER = 1,
1: + BPF_PROG_TYPE_KPROBE = 2,
1: + BPF_PROG_TYPE_SCHED_CLS = 3,
1: + BPF_PROG_TYPE_SCHED_ACT = 4,
1: + BPF_PROG_TYPE_TRACEPOINT = 5,
1: + BPF_PROG_TYPE_XDP = 6,
1: + BPF_PROG_TYPE_PERF_EVENT = 7,
1: + BPF_PROG_TYPE_CGROUP_SKB = 8,
1: + BPF_PROG_TYPE_CGROUP_SOCK = 9,
1: + BPF_PROG_TYPE_LWT_IN = 10,
1: + BPF_PROG_TYPE_LWT_OUT = 11,
1: + BPF_PROG_TYPE_LWT_XMIT = 12,
1: + BPF_PROG_TYPE_SOCK_OPS = 13,
1: + BPF_PROG_TYPE_SK_SKB = 14,
1: + BPF_PROG_TYPE_CGROUP_DEVICE = 15,
1: + BPF_PROG_TYPE_SK_MSG = 16,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT = 17,
1: + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18,
1: + BPF_PROG_TYPE_LWT_SEG6LOCAL = 19,
1: + BPF_PROG_TYPE_LIRC_MODE2 = 20,
1: + BPF_PROG_TYPE_SK_REUSEPORT = 21,
1: + BPF_PROG_TYPE_FLOW_DISSECTOR = 22,
1: + BPF_PROG_TYPE_CGROUP_SYSCTL = 23,
1: + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 24,
1: + BPF_PROG_TYPE_CGROUP_SOCKOPT = 25,
1: + BPF_PROG_TYPE_TRACING = 26,
1: + BPF_PROG_TYPE_STRUCT_OPS = 27,
1: + BPF_PROG_TYPE_EXT = 28,
1: + BPF_PROG_TYPE_LSM = 29,
1: + BPF_PROG_TYPE_SK_LOOKUP = 30,
1: +};
1: +
1: +enum bpf_attach_type {
1: + BPF_CGROUP_INET_INGRESS = 0,
1: + BPF_CGROUP_INET_EGRESS = 1,
1: + BPF_CGROUP_INET_SOCK_CREATE = 2,
1: + BPF_CGROUP_SOCK_OPS = 3,
1: + BPF_SK_SKB_STREAM_PARSER = 4,
1: + BPF_SK_SKB_STREAM_VERDICT = 5,
1: + BPF_CGROUP_DEVICE = 6,
1: + BPF_SK_MSG_VERDICT = 7,
1: + BPF_CGROUP_INET4_BIND = 8,
1: + BPF_CGROUP_INET6_BIND = 9,
1: + BPF_CGROUP_INET4_CONNECT = 10,
1: + BPF_CGROUP_INET6_CONNECT = 11,
1: + BPF_CGROUP_INET4_POST_BIND = 12,
1: + BPF_CGROUP_INET6_POST_BIND = 13,
1: + BPF_CGROUP_UDP4_SENDMSG = 14,
1: + BPF_CGROUP_UDP6_SENDMSG = 15,
1: + BPF_LIRC_MODE2 = 16,
1: + BPF_FLOW_DISSECTOR = 17,
1: + BPF_CGROUP_SYSCTL = 18,
1: + BPF_CGROUP_UDP4_RECVMSG = 19,
1: + BPF_CGROUP_UDP6_RECVMSG = 20,
1: + BPF_CGROUP_GETSOCKOPT = 21,
1: + BPF_CGROUP_SETSOCKOPT = 22,
1: + BPF_TRACE_RAW_TP = 23,
1: + BPF_TRACE_FENTRY = 24,
1: + BPF_TRACE_FEXIT = 25,
1: + BPF_MODIFY_RETURN = 26,
1: + BPF_LSM_MAC = 27,
1: + BPF_TRACE_ITER = 28,
1: + BPF_CGROUP_INET4_GETPEERNAME = 29,
1: + BPF_CGROUP_INET6_GETPEERNAME = 30,
1: + BPF_CGROUP_INET4_GETSOCKNAME = 31,
1: + BPF_CGROUP_INET6_GETSOCKNAME = 32,
1: + BPF_XDP_DEVMAP = 33,
1: + BPF_CGROUP_INET_SOCK_RELEASE = 34,
1: + BPF_XDP_CPUMAP = 35,
1: + BPF_SK_LOOKUP = 36,
1: + BPF_XDP = 37,
1: + __MAX_BPF_ATTACH_TYPE = 38,
1: +};
1: +
1: +union bpf_attr {
1: + struct {
1: + __u32 map_type;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + __u32 inner_map_fd;
1: + __u32 numa_node;
1: + char map_name[16];
1: + __u32 map_ifindex;
1: + __u32 btf_fd;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: + __u32 btf_vmlinux_value_type_id;
1: + };
1: + struct {
1: + __u32 map_fd;
1: + __u64 key;
1: + union {
1: + __u64 value;
1: + __u64 next_key;
1: + };
1: + __u64 flags;
1: + };
1: + struct {
1: + __u64 in_batch;
1: + __u64 out_batch;
1: + __u64 keys;
1: + __u64 values;
1: + __u32 count;
1: + __u32 map_fd;
1: + __u64 elem_flags;
1: + __u64 flags;
1: + } batch;
1: + struct {
1: + __u32 prog_type;
1: + __u32 insn_cnt;
1: + __u64 insns;
1: + __u64 license;
1: + __u32 log_level;
1: + __u32 log_size;
1: + __u64 log_buf;
1: + __u32 kern_version;
1: + __u32 prog_flags;
1: + char prog_name[16];
1: + __u32 prog_ifindex;
1: + __u32 expected_attach_type;
1: + __u32 prog_btf_fd;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 func_info_cnt;
1: + __u32 line_info_rec_size;
1: + __u64 line_info;
1: + __u32 line_info_cnt;
1: + __u32 attach_btf_id;
1: + __u32 attach_prog_fd;
1: + };
1: + struct {
1: + __u64 pathname;
1: + __u32 bpf_fd;
1: + __u32 file_flags;
1: + };
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_bpf_fd;
1: + __u32 attach_type;
1: + __u32 attach_flags;
1: + __u32 replace_bpf_fd;
1: + };
1: + struct {
1: + __u32 prog_fd;
1: + __u32 retval;
1: + __u32 data_size_in;
1: + __u32 data_size_out;
1: + __u64 data_in;
1: + __u64 data_out;
1: + __u32 repeat;
1: + __u32 duration;
1: + __u32 ctx_size_in;
1: + __u32 ctx_size_out;
1: + __u64 ctx_in;
1: + __u64 ctx_out;
1: + __u32 flags;
1: + __u32 cpu;
1: + } test;
1: + struct {
1: + union {
1: + __u32 start_id;
1: + __u32 prog_id;
1: + __u32 map_id;
1: + __u32 btf_id;
1: + __u32 link_id;
1: + };
1: + __u32 next_id;
1: + __u32 open_flags;
1: + };
1: + struct {
1: + __u32 bpf_fd;
1: + __u32 info_len;
1: + __u64 info;
1: + } info;
1: + struct {
1: + __u32 target_fd;
1: + __u32 attach_type;
1: + __u32 query_flags;
1: + __u32 attach_flags;
1: + __u64 prog_ids;
1: + __u32 prog_cnt;
1: + } query;
1: + struct {
1: + __u64 name;
1: + __u32 prog_fd;
1: + } raw_tracepoint;
1: + struct {
1: + __u64 btf;
1: + __u64 btf_log_buf;
1: + __u32 btf_size;
1: + __u32 btf_log_size;
1: + __u32 btf_log_level;
1: + };
1: + struct {
1: + __u32 pid;
1: + __u32 fd;
1: + __u32 flags;
1: + __u32 buf_len;
1: + __u64 buf;
1: + __u32 prog_id;
1: + __u32 fd_type;
1: + __u64 probe_offset;
1: + __u64 probe_addr;
1: + } task_fd_query;
1: + struct {
1: + __u32 prog_fd;
1: + union {
1: + __u32 target_fd;
1: + __u32 target_ifindex;
1: + };
1: + __u32 attach_type;
1: + __u32 flags;
1: + union {
1: + __u32 target_btf_id;
1: + struct {
1: + __u64 iter_info;
1: + __u32 iter_info_len;
1: + };
1: + };
1: + } link_create;
1: + struct {
1: + __u32 link_fd;
1: + __u32 new_prog_fd;
1: + __u32 flags;
1: + __u32 old_prog_fd;
1: + } link_update;
1: + struct {
1: + __u32 link_fd;
1: + } link_detach;
1: + struct {
1: + __u32 type;
1: + } enable_stats;
1: + struct {
1: + __u32 link_fd;
1: + __u32 flags;
1: + } iter_create;
1: + struct {
1: + __u32 prog_fd;
1: + __u32 map_fd;
1: + __u32 flags;
1: + } prog_bind_map;
1: +};
1: +
1: +struct bpf_func_info {
1: + __u32 insn_off;
1: + __u32 type_id;
1: +};
1: +
1: +struct bpf_line_info {
1: + __u32 insn_off;
1: + __u32 file_name_off;
1: + __u32 line_off;
1: + __u32 line_col;
1: +};
1: +
1: +struct bpf_iter_aux_info;
1: +
1: +typedef int (*bpf_iter_init_seq_priv_t)(void *, struct bpf_iter_aux_info *);
1: +
1: +struct bpf_map;
1: +
1: +struct bpf_iter_aux_info {
1: + struct bpf_map *map;
1: +};
1: +
1: +typedef void (*bpf_iter_fini_seq_priv_t)(void *);
1: +
1: +struct bpf_iter_seq_info {
1: + const struct seq_operations *seq_ops;
1: + bpf_iter_init_seq_priv_t init_seq_private;
1: + bpf_iter_fini_seq_priv_t fini_seq_private;
1: + u32 seq_priv_size;
1: +};
1: +
1: +struct btf;
1: +
1: +struct btf_type;
1: +
1: +struct bpf_prog_aux;
1: +
1: +struct bpf_local_storage_map;
1: +
1: +struct bpf_map_ops {
1: + int (*map_alloc_check)(union bpf_attr *);
1: + struct bpf_map * (*map_alloc)(union bpf_attr *);
1: + void (*map_release)(struct bpf_map *, struct file *);
1: + void (*map_free)(struct bpf_map *);
1: + int (*map_get_next_key)(struct bpf_map *, void *, void *);
1: + void (*map_release_uref)(struct bpf_map *);
1: + void * (*map_lookup_elem_sys_only)(struct bpf_map *, void *);
1: + int (*map_lookup_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_lookup_and_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_update_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + int (*map_delete_batch)(struct bpf_map *, const union bpf_attr *, union bpf_attr *);
1: + void * (*map_lookup_elem)(struct bpf_map *, void *);
1: + int (*map_update_elem)(struct bpf_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_map *, void *);
1: + int (*map_push_elem)(struct bpf_map *, void *, u64);
1: + int (*map_pop_elem)(struct bpf_map *, void *);
1: + int (*map_peek_elem)(struct bpf_map *, void *);
1: + void * (*map_fd_get_ptr)(struct bpf_map *, struct file *, int);
1: + void (*map_fd_put_ptr)(void *);
1: + int (*map_gen_lookup)(struct bpf_map *, struct bpf_insn *);
1: + u32 (*map_fd_sys_lookup_elem)(void *);
1: + void (*map_seq_show_elem)(struct bpf_map *, void *, struct seq_file *);
1: + int (*map_check_btf)(const struct bpf_map *, const struct btf *, const struct btf_type *, const struct btf_type *);
1: + int (*map_poke_track)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_untrack)(struct bpf_map *, struct bpf_prog_aux *);
1: + void (*map_poke_run)(struct bpf_map *, u32, struct bpf_prog *, struct bpf_prog *);
1: + int (*map_direct_value_addr)(const struct bpf_map *, u64 *, u32);
1: + int (*map_direct_value_meta)(const struct bpf_map *, u64, u32 *);
1: + int (*map_mmap)(struct bpf_map *, struct vm_area_struct *);
1: + __poll_t (*map_poll)(struct bpf_map *, struct file *, struct poll_table_struct *);
1: + int (*map_local_storage_charge)(struct bpf_local_storage_map *, void *, u32);
1: + void (*map_local_storage_uncharge)(struct bpf_local_storage_map *, void *, u32);
1: + struct bpf_local_storage ** (*map_owner_storage_ptr)(void *);
1: + bool (*map_meta_equal)(const struct bpf_map *, const struct bpf_map *);
1: + const char * const map_btf_name;
1: + int *map_btf_id;
1: + const struct bpf_iter_seq_info *iter_seq_info;
1: +};
1: +
1: +struct bpf_map_memory {
1: + u32 pages;
1: + struct user_struct *user;
1: +};
1: +
1: +struct bpf_map {
1: + const struct bpf_map_ops *ops;
1: + struct bpf_map *inner_map_meta;
1: + void *security;
1: + enum bpf_map_type map_type;
1: + u32 key_size;
1: + u32 value_size;
1: + u32 max_entries;
1: + u32 map_flags;
1: + int spin_lock_off;
1: + u32 id;
1: + int numa_node;
1: + u32 btf_key_type_id;
1: + u32 btf_value_type_id;
1: + struct btf *btf;
1: + struct bpf_map_memory memory;
1: + char name[16];
1: + u32 btf_vmlinux_value_type_id;
1: + bool bypass_spec_v1;
1: + bool frozen;
1: + long: 16;
1: + long: 64;
1: + long: 64;
1: + atomic64_t refcnt;
1: + atomic64_t usercnt;
1: + struct work_struct work;
1: + struct mutex freeze_mutex;
1: + u64 writecnt;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct btf_header {
1: + __u16 magic;
1: + __u8 version;
1: + __u8 flags;
1: + __u32 hdr_len;
1: + __u32 type_off;
1: + __u32 type_len;
1: + __u32 str_off;
1: + __u32 str_len;
1: +};
1: +
1: +struct btf {
1: + void *data;
1: + struct btf_type **types;
1: + u32 *resolved_ids;
1: + u32 *resolved_sizes;
1: + const char *strings;
1: + void *nohdr_data;
1: + struct btf_header hdr;
1: + u32 nr_types;
1: + u32 types_size;
1: + u32 data_size;
1: + refcount_t refcnt;
1: + u32 id;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct btf_type {
1: + __u32 name_off;
1: + __u32 info;
1: + union {
1: + __u32 size;
1: + __u32 type;
1: + };
1: +};
1: +
1: +enum bpf_tramp_prog_type {
1: + BPF_TRAMP_FENTRY = 0,
1: + BPF_TRAMP_FEXIT = 1,
1: + BPF_TRAMP_MODIFY_RETURN = 2,
1: + BPF_TRAMP_MAX = 3,
1: + BPF_TRAMP_REPLACE = 4,
1: +};
1: +
1: +struct bpf_ksym {
1: + long unsigned int start;
1: + long unsigned int end;
1: + char name[128];
1: + struct list_head lnode;
1: + struct latch_tree_node tnode;
1: + bool prog;
1: +};
1: +
1: +struct bpf_ctx_arg_aux;
1: +
1: +struct bpf_trampoline;
1: +
1: +struct bpf_jit_poke_descriptor;
1: +
1: +struct bpf_prog_ops;
1: +
1: +struct bpf_prog_offload;
1: +
1: +struct bpf_func_info_aux;
1: +
1: +struct bpf_prog_stats;
1: +
1: +struct bpf_prog_aux {
1: + atomic64_t refcnt;
1: + u32 used_map_cnt;
1: + u32 max_ctx_offset;
1: + u32 max_pkt_offset;
1: + u32 max_tp_access;
1: + u32 stack_depth;
1: + u32 id;
1: + u32 func_cnt;
1: + u32 func_idx;
1: + u32 attach_btf_id;
1: + u32 ctx_arg_info_size;
1: + u32 max_rdonly_access;
1: + u32 max_rdwr_access;
1: + const struct bpf_ctx_arg_aux *ctx_arg_info;
1: + struct mutex dst_mutex;
1: + struct bpf_prog *dst_prog;
1: + struct bpf_trampoline *dst_trampoline;
1: + enum bpf_prog_type saved_dst_prog_type;
1: + enum bpf_attach_type saved_dst_attach_type;
1: + bool verifier_zext;
1: + bool offload_requested;
1: + bool attach_btf_trace;
1: + bool func_proto_unreliable;
1: + bool sleepable;
1: + bool tail_call_reachable;
1: + enum bpf_tramp_prog_type trampoline_prog_type;
1: + struct hlist_node tramp_hlist;
1: + const struct btf_type *attach_func_proto;
1: + const char *attach_func_name;
1: + struct bpf_prog **func;
1: + void *jit_data;
1: + struct bpf_jit_poke_descriptor *poke_tab;
1: + u32 size_poke_tab;
1: + struct bpf_ksym ksym;
1: + const struct bpf_prog_ops *ops;
1: + struct bpf_map **used_maps;
1: + struct mutex used_maps_mutex;
1: + struct bpf_prog *prog;
1: + struct user_struct *user;
1: + u64 load_time;
1: + struct bpf_map *cgroup_storage[2];
1: + char name[16];
1: + void *security;
1: + struct bpf_prog_offload *offload;
1: + struct btf *btf;
1: + struct bpf_func_info *func_info;
1: + struct bpf_func_info_aux *func_info_aux;
1: + struct bpf_line_info *linfo;
1: + void **jited_linfo;
1: + u32 func_info_cnt;
1: + u32 nr_linfo;
1: + u32 linfo_idx;
1: + u32 num_exentries;
1: + struct exception_table_entry *extable;
1: + struct bpf_prog_stats *stats;
1: + union {
1: + struct work_struct work;
1: + struct callback_head rcu;
1: + };
1: +};
1: +
1: +struct sock_filter {
1: + __u16 code;
1: + __u8 jt;
1: + __u8 jf;
1: + __u32 k;
1: +};
1: +
1: +struct sock_fprog_kern;
1: +
1: +struct bpf_prog {
1: + u16 pages;
1: + u16 jited: 1;
1: + u16 jit_requested: 1;
1: + u16 gpl_compatible: 1;
1: + u16 cb_access: 1;
1: + u16 dst_needed: 1;
1: + u16 blinded: 1;
1: + u16 is_func: 1;
1: + u16 kprobe_override: 1;
1: + u16 has_callchain_buf: 1;
1: + u16 enforce_expected_attach_type: 1;
1: + u16 call_get_stack: 1;
1: + enum bpf_prog_type type;
1: + enum bpf_attach_type expected_attach_type;
1: + u32 len;
1: + u32 jited_len;
1: + u8 tag[8];
1: + struct bpf_prog_aux *aux;
1: + struct sock_fprog_kern *orig_prog;
1: + unsigned int (*bpf_func)(const void *, const struct bpf_insn *);
1: + struct sock_filter insns[0];
1: + struct bpf_insn insnsi[0];
1: +};
1: +
1: +struct bpf_offloaded_map;
1: +
1: +struct bpf_map_dev_ops {
1: + int (*map_get_next_key)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_lookup_elem)(struct bpf_offloaded_map *, void *, void *);
1: + int (*map_update_elem)(struct bpf_offloaded_map *, void *, void *, u64);
1: + int (*map_delete_elem)(struct bpf_offloaded_map *, void *);
1: +};
1: +
1: +struct bpf_offloaded_map {
1: + struct bpf_map map;
1: + struct net_device *netdev;
1: + const struct bpf_map_dev_ops *dev_ops;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct net_device_stats {
1: + long unsigned int rx_packets;
1: + long unsigned int tx_packets;
1: + long unsigned int rx_bytes;
1: + long unsigned int tx_bytes;
1: + long unsigned int rx_errors;
1: + long unsigned int tx_errors;
1: + long unsigned int rx_dropped;
1: + long unsigned int tx_dropped;
1: + long unsigned int multicast;
1: + long unsigned int collisions;
1: + long unsigned int rx_length_errors;
1: + long unsigned int rx_over_errors;
1: + long unsigned int rx_crc_errors;
1: + long unsigned int rx_frame_errors;
1: + long unsigned int rx_fifo_errors;
1: + long unsigned int rx_missed_errors;
1: + long unsigned int tx_aborted_errors;
1: + long unsigned int tx_carrier_errors;
1: + long unsigned int tx_fifo_errors;
1: + long unsigned int tx_heartbeat_errors;
1: + long unsigned int tx_window_errors;
1: + long unsigned int rx_compressed;
1: + long unsigned int tx_compressed;
1: +};
1: +
1: +struct netdev_hw_addr_list {
1: + struct list_head list;
1: + int count;
1: +};
1: +
1: +struct tipc_bearer;
1: +
1: +struct dn_dev;
1: +
1: +struct mpls_dev;
1: +
1: +enum rx_handler_result {
1: + RX_HANDLER_CONSUMED = 0,
1: + RX_HANDLER_ANOTHER = 1,
1: + RX_HANDLER_EXACT = 2,
1: + RX_HANDLER_PASS = 3,
1: +};
1: +
1: +typedef enum rx_handler_result rx_handler_result_t;
1: +
1: +typedef rx_handler_result_t rx_handler_func_t(struct sk_buff **);
1: +
1: +struct pcpu_dstats;
1: +
1: +struct garp_port;
1: +
1: +struct mrp_port;
1: +
1: +struct netdev_tc_txq {
1: + u16 count;
1: + u16 offset;
1: +};
1: +
1: +struct macsec_ops;
1: +
1: +struct udp_tunnel_nic;
1: +
1: +struct bpf_xdp_link;
1: +
1: +struct bpf_xdp_entity {
1: + struct bpf_prog *prog;
1: + struct bpf_xdp_link *link;
1: +};
1: +
1: +struct netdev_name_node;
1: +
1: +struct dev_ifalias;
1: +
1: +struct iw_handler_def;
1: +
1: +struct iw_public_data;
1: +
1: +struct net_device_ops;
1: +
1: +struct ethtool_ops;
1: +
1: +struct l3mdev_ops;
1: +
1: +struct ndisc_ops;
1: +
1: +struct xfrmdev_ops;
1: +
1: +struct tlsdev_ops;
1: +
1: +struct header_ops;
1: +
1: +struct vlan_info;
1: +
1: +struct dsa_port;
1: +
1: +struct in_device;
1: +
1: +struct inet6_dev;
1: +
1: +struct wireless_dev;
1: +
1: +struct wpan_dev;
1: +
1: +struct netdev_rx_queue;
1: +
1: +struct mini_Qdisc;
1: +
1: +struct netdev_queue;
1: +
1: +struct cpu_rmap;
1: +
1: +struct Qdisc;
1: +
1: +struct xdp_dev_bulk_queue;
1: +
1: +struct xps_dev_maps;
1: +
1: +struct netpoll_info;
1: +
1: +struct pcpu_lstats;
1: +
1: +struct pcpu_sw_netstats;
1: +
1: +struct rtnl_link_ops;
1: +
1: +struct dcbnl_rtnl_ops;
1: +
1: +struct netprio_map;
1: +
1: +struct phy_device;
1: +
1: +struct sfp_bus;
1: +
1: +struct udp_tunnel_nic_info;
1: +
1: +struct net_device {
1: + char name[16];
1: + struct netdev_name_node *name_node;
1: + struct dev_ifalias *ifalias;
1: + long unsigned int mem_end;
1: + long unsigned int mem_start;
1: + long unsigned int base_addr;
1: + int irq;
1: + long unsigned int state;
1: + struct list_head dev_list;
1: + struct list_head napi_list;
1: + struct list_head unreg_list;
1: + struct list_head close_list;
1: + struct list_head ptype_all;
1: + struct list_head ptype_specific;
1: + struct {
1: + struct list_head upper;
1: + struct list_head lower;
1: + } adj_list;
1: + netdev_features_t features;
1: + netdev_features_t hw_features;
1: + netdev_features_t wanted_features;
1: + netdev_features_t vlan_features;
1: + netdev_features_t hw_enc_features;
1: + netdev_features_t mpls_features;
1: + netdev_features_t gso_partial_features;
1: + int ifindex;
1: + int group;
1: + struct net_device_stats stats;
1: + atomic_long_t rx_dropped;
1: + atomic_long_t tx_dropped;
1: + atomic_long_t rx_nohandler;
1: + atomic_t carrier_up_count;
1: + atomic_t carrier_down_count;
1: + const struct iw_handler_def *wireless_handlers;
1: + struct iw_public_data *wireless_data;
1: + const struct net_device_ops *netdev_ops;
1: + const struct ethtool_ops *ethtool_ops;
1: + const struct l3mdev_ops *l3mdev_ops;
1: + const struct ndisc_ops *ndisc_ops;
1: + const struct xfrmdev_ops *xfrmdev_ops;
1: + const struct tlsdev_ops *tlsdev_ops;
1: + const struct header_ops *header_ops;
1: + unsigned int flags;
1: + unsigned int priv_flags;
1: + short unsigned int gflags;
1: + short unsigned int padded;
1: + unsigned char operstate;
1: + unsigned char link_mode;
1: + unsigned char if_port;
1: + unsigned char dma;
1: + unsigned int mtu;
1: + unsigned int min_mtu;
1: + unsigned int max_mtu;
1: + short unsigned int type;
1: + short unsigned int hard_header_len;
1: + unsigned char min_header_len;
1: + unsigned char name_assign_type;
1: + short unsigned int needed_headroom;
1: + short unsigned int needed_tailroom;
1: + unsigned char perm_addr[32];
1: + unsigned char addr_assign_type;
1: + unsigned char addr_len;
1: + unsigned char upper_level;
1: + unsigned char lower_level;
1: + short unsigned int neigh_priv_len;
1: + short unsigned int dev_id;
1: + short unsigned int dev_port;
1: + spinlock_t addr_list_lock;
1: + struct netdev_hw_addr_list uc;
1: + struct netdev_hw_addr_list mc;
1: + struct netdev_hw_addr_list dev_addrs;
1: + struct kset *queues_kset;
1: + unsigned int promiscuity;
1: + unsigned int allmulti;
1: + bool uc_promisc;
1: + struct vlan_info *vlan_info;
1: + struct dsa_port *dsa_ptr;
1: + struct tipc_bearer *tipc_ptr;
1: + void *atalk_ptr;
1: + struct in_device *ip_ptr;
1: + struct dn_dev *dn_ptr;
1: + struct inet6_dev *ip6_ptr;
1: + void *ax25_ptr;
1: + struct wireless_dev *ieee80211_ptr;
1: + struct wpan_dev *ieee802154_ptr;
1: + struct mpls_dev *mpls_ptr;
1: + unsigned char *dev_addr;
1: + struct netdev_rx_queue *_rx;
1: + unsigned int num_rx_queues;
1: + unsigned int real_num_rx_queues;
1: + struct bpf_prog *xdp_prog;
1: + long unsigned int gro_flush_timeout;
1: + int napi_defer_hard_irqs;
1: + rx_handler_func_t *rx_handler;
1: + void *rx_handler_data;
1: + struct mini_Qdisc *miniq_ingress;
1: + struct netdev_queue *ingress_queue;
1: + struct nf_hook_entries *nf_hooks_ingress;
1: + unsigned char broadcast[32];
1: + struct cpu_rmap *rx_cpu_rmap;
1: + struct hlist_node index_hlist;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct netdev_queue *_tx;
1: + unsigned int num_tx_queues;
1: + unsigned int real_num_tx_queues;
1: + struct Qdisc *qdisc;
1: + unsigned int tx_queue_len;
1: + spinlock_t tx_global_lock;
1: + struct xdp_dev_bulk_queue *xdp_bulkq;
1: + struct xps_dev_maps *xps_cpus_map;
1: + struct xps_dev_maps *xps_rxqs_map;
1: + struct mini_Qdisc *miniq_egress;
1: + struct hlist_head qdisc_hash[16];
1: + struct timer_list watchdog_timer;
1: + int watchdog_timeo;
1: + u32 proto_down_reason;
1: + struct list_head todo_list;
1: + int *pcpu_refcnt;
1: + struct list_head link_watch_list;
1: + enum {
1: + NETREG_UNINITIALIZED = 0,
1: + NETREG_REGISTERED = 1,
1: + NETREG_UNREGISTERING = 2,
1: + NETREG_UNREGISTERED = 3,
1: + NETREG_RELEASED = 4,
1: + NETREG_DUMMY = 5,
1: + } reg_state: 8;
1: + bool dismantle;
1: + enum {
1: + RTNL_LINK_INITIALIZED = 0,
1: + RTNL_LINK_INITIALIZING = 1,
1: + } rtnl_link_state: 16;
1: + bool needs_free_netdev;
1: + void (*priv_destructor)(struct net_device *);
1: + struct netpoll_info *npinfo;
1: + possible_net_t nd_net;
1: + union {
1: + void *ml_priv;
1: + struct pcpu_lstats *lstats;
1: + struct pcpu_sw_netstats *tstats;
1: + struct pcpu_dstats *dstats;
1: + };
1: + struct garp_port *garp_port;
1: + struct mrp_port *mrp_port;
1: + struct device dev;
1: + const struct attribute_group *sysfs_groups[4];
1: + const struct attribute_group *sysfs_rx_queue_group;
1: + const struct rtnl_link_ops *rtnl_link_ops;
1: + unsigned int gso_max_size;
1: + u16 gso_max_segs;
1: + const struct dcbnl_rtnl_ops *dcbnl_ops;
1: + s16 num_tc;
1: + struct netdev_tc_txq tc_to_txq[16];
1: + u8 prio_tc_map[16];
1: + unsigned int fcoe_ddp_xid;
1: + struct netprio_map *priomap;
1: + struct phy_device *phydev;
1: + struct sfp_bus *sfp_bus;
1: + struct lock_class_key *qdisc_tx_busylock;
1: + struct lock_class_key *qdisc_running_key;
1: + bool proto_down;
1: + unsigned int wol_enabled: 1;
1: + struct list_head net_notifier_list;
1: + const struct macsec_ops *macsec_ops;
1: + const struct udp_tunnel_nic_info *udp_tunnel_nic_info;
1: + struct udp_tunnel_nic *udp_tunnel_nic;
1: + struct bpf_xdp_entity xdp_state[3];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum bpf_reg_type {
1: + NOT_INIT = 0,
1: + SCALAR_VALUE = 1,
1: + PTR_TO_CTX = 2,
1: + CONST_PTR_TO_MAP = 3,
1: + PTR_TO_MAP_VALUE = 4,
1: + PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + PTR_TO_STACK = 6,
1: + PTR_TO_PACKET_META = 7,
1: + PTR_TO_PACKET = 8,
1: + PTR_TO_PACKET_END = 9,
1: + PTR_TO_FLOW_KEYS = 10,
1: + PTR_TO_SOCKET = 11,
1: + PTR_TO_SOCKET_OR_NULL = 12,
1: + PTR_TO_SOCK_COMMON = 13,
1: + PTR_TO_SOCK_COMMON_OR_NULL = 14,
1: + PTR_TO_TCP_SOCK = 15,
1: + PTR_TO_TCP_SOCK_OR_NULL = 16,
1: + PTR_TO_TP_BUFFER = 17,
1: + PTR_TO_XDP_SOCK = 18,
1: + PTR_TO_BTF_ID = 19,
1: + PTR_TO_BTF_ID_OR_NULL = 20,
1: + PTR_TO_MEM = 21,
1: + PTR_TO_MEM_OR_NULL = 22,
1: + PTR_TO_RDONLY_BUF = 23,
1: + PTR_TO_RDONLY_BUF_OR_NULL = 24,
1: + PTR_TO_RDWR_BUF = 25,
1: + PTR_TO_RDWR_BUF_OR_NULL = 26,
1: + PTR_TO_PERCPU_BTF_ID = 27,
1: +};
1: +
1: +struct bpf_prog_ops {
1: + int (*test_run)(struct bpf_prog *, const union bpf_attr *, union bpf_attr *);
1: +};
1: +
1: +struct bpf_offload_dev;
1: +
1: +struct bpf_prog_offload {
1: + struct bpf_prog *prog;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + void *dev_priv;
1: + struct list_head offloads;
1: + bool dev_state;
1: + bool opt_failed;
1: + void *jited_image;
1: + u32 jited_len;
1: +};
1: +
1: +struct bpf_prog_stats {
1: + u64 cnt;
1: + u64 nsecs;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct btf_func_model {
1: + u8 ret_size;
1: + u8 nr_args;
1: + u8 arg_size[12];
1: +};
1: +
1: +struct bpf_trampoline {
1: + struct hlist_node hlist;
1: + struct mutex mutex;
1: + refcount_t refcnt;
1: + u64 key;
1: + struct {
1: + struct btf_func_model model;
1: + void *addr;
1: + bool ftrace_managed;
1: + } func;
1: + struct bpf_prog *extension_prog;
1: + struct hlist_head progs_hlist[3];
1: + int progs_cnt[3];
1: + void *image;
1: + u64 selector;
1: + struct bpf_ksym ksym;
1: +};
1: +
1: +struct bpf_func_info_aux {
1: + u16 linkage;
1: + bool unreliable;
1: +};
1: +
1: +struct bpf_jit_poke_descriptor {
1: + void *tailcall_target;
1: + void *tailcall_bypass;
1: + void *bypass_addr;
1: + union {
1: + struct {
1: + struct bpf_map *map;
1: + u32 key;
1: + } tail_call;
1: + };
1: + bool tailcall_target_stable;
1: + u8 adj_off;
1: + u16 reason;
1: + u32 insn_idx;
1: +};
1: +
1: +struct bpf_ctx_arg_aux {
1: + u32 offset;
1: + enum bpf_reg_type reg_type;
1: + u32 btf_id;
1: +};
1: +
1: +typedef unsigned int sk_buff_data_t;
1: +
1: +struct skb_ext;
1: +
1: +struct sk_buff {
1: + union {
1: + struct {
1: + struct sk_buff *next;
1: + struct sk_buff *prev;
1: + union {
1: + struct net_device *dev;
1: + long unsigned int dev_scratch;
1: + };
1: + };
1: + struct rb_node rbnode;
1: + struct list_head list;
1: + };
1: + union {
1: + struct sock *sk;
1: + int ip_defrag_offset;
1: + };
1: + union {
1: + ktime_t tstamp;
1: + u64 skb_mstamp_ns;
1: + };
1: + char cb[48];
1: + union {
1: + struct {
1: + long unsigned int _skb_refdst;
1: + void (*destructor)(struct sk_buff *);
1: + };
1: + struct list_head tcp_tsorted_anchor;
1: + };
1: + long unsigned int _nfct;
1: + unsigned int len;
1: + unsigned int data_len;
1: + __u16 mac_len;
1: + __u16 hdr_len;
1: + __u16 queue_mapping;
1: + __u8 __cloned_offset[0];
1: + __u8 cloned: 1;
1: + __u8 nohdr: 1;
1: + __u8 fclone: 2;
1: + __u8 peeked: 1;
1: + __u8 head_frag: 1;
1: + __u8 pfmemalloc: 1;
1: + __u8 active_extensions;
1: + __u32 headers_start[0];
1: + __u8 __pkt_type_offset[0];
1: + __u8 pkt_type: 3;
1: + __u8 ignore_df: 1;
1: + __u8 nf_trace: 1;
1: + __u8 ip_summed: 2;
1: + __u8 ooo_okay: 1;
1: + __u8 l4_hash: 1;
1: + __u8 sw_hash: 1;
1: + __u8 wifi_acked_valid: 1;
1: + __u8 wifi_acked: 1;
1: + __u8 no_fcs: 1;
1: + __u8 encapsulation: 1;
1: + __u8 encap_hdr_csum: 1;
1: + __u8 csum_valid: 1;
1: + __u8 __pkt_vlan_present_offset[0];
1: + __u8 vlan_present: 1;
1: + __u8 csum_complete_sw: 1;
1: + __u8 csum_level: 2;
1: + __u8 csum_not_inet: 1;
1: + __u8 dst_pending_confirm: 1;
1: + __u8 ndisc_nodetype: 2;
1: + __u8 ipvs_property: 1;
1: + __u8 inner_protocol_type: 1;
1: + __u8 remcsum_offload: 1;
1: + __u8 offload_fwd_mark: 1;
1: + __u8 offload_l3_fwd_mark: 1;
1: + __u8 tc_skip_classify: 1;
1: + __u8 tc_at_ingress: 1;
1: + __u8 redirected: 1;
1: + __u8 from_ingress: 1;
1: + __u8 decrypted: 1;
1: + __u16 tc_index;
1: + union {
1: + __wsum csum;
1: + struct {
1: + __u16 csum_start;
1: + __u16 csum_offset;
1: + };
1: + };
1: + __u32 priority;
1: + int skb_iif;
1: + __u32 hash;
1: + __be16 vlan_proto;
1: + __u16 vlan_tci;
1: + union {
1: + unsigned int napi_id;
1: + unsigned int sender_cpu;
1: + };
1: + __u32 secmark;
1: + union {
1: + __u32 mark;
1: + __u32 reserved_tailroom;
1: + };
1: + union {
1: + __be16 inner_protocol;
1: + __u8 inner_ipproto;
1: + };
1: + __u16 inner_transport_header;
1: + __u16 inner_network_header;
1: + __u16 inner_mac_header;
1: + __be16 protocol;
1: + __u16 transport_header;
1: + __u16 network_header;
1: + __u16 mac_header;
1: + __u32 headers_end[0];
1: + sk_buff_data_t tail;
1: + sk_buff_data_t end;
1: + unsigned char *head;
1: + unsigned char *data;
1: + unsigned int truesize;
1: + refcount_t users;
1: + struct skb_ext *extensions;
1: +};
1: +
1: +struct scatterlist {
1: + long unsigned int page_link;
1: + unsigned int offset;
1: + unsigned int length;
1: + dma_addr_t dma_address;
1: + unsigned int dma_length;
1: +};
1: +
1: +enum {
1: + Root_NFS = 255,
1: + Root_CIFS = 254,
1: + Root_RAM0 = 1048576,
1: + Root_RAM1 = 1048577,
1: + Root_FD0 = 2097152,
1: + Root_HDA1 = 3145729,
1: + Root_HDA2 = 3145730,
1: + Root_SDA1 = 8388609,
1: + Root_SDA2 = 8388610,
1: + Root_HDC1 = 23068673,
1: + Root_SR0 = 11534336,
1: +};
1: +
1: +struct ethhdr {
1: + unsigned char h_dest[6];
1: + unsigned char h_source[6];
1: + __be16 h_proto;
1: +};
1: +
1: +struct flowi_tunnel {
1: + __be64 tun_id;
1: +};
1: +
1: +struct flowi_common {
1: + int flowic_oif;
1: + int flowic_iif;
1: + __u32 flowic_mark;
1: + __u8 flowic_tos;
1: + __u8 flowic_scope;
1: + __u8 flowic_proto;
1: + __u8 flowic_flags;
1: + __u32 flowic_secid;
1: + kuid_t flowic_uid;
1: + struct flowi_tunnel flowic_tun_key;
1: + __u32 flowic_multipath_hash;
1: +};
1: +
1: +union flowi_uli {
1: + struct {
1: + __be16 dport;
1: + __be16 sport;
1: + } ports;
1: + struct {
1: + __u8 type;
1: + __u8 code;
1: + } icmpt;
1: + struct {
1: + __le16 dport;
1: + __le16 sport;
1: + } dnports;
1: + __be32 spi;
1: + __be32 gre_key;
1: + struct {
1: + __u8 type;
1: + } mht;
1: +};
1: +
1: +struct flowi4 {
1: + struct flowi_common __fl_common;
1: + __be32 saddr;
1: + __be32 daddr;
1: + union flowi_uli uli;
1: +};
1: +
1: +struct flowi6 {
1: + struct flowi_common __fl_common;
1: + struct in6_addr daddr;
1: + struct in6_addr saddr;
1: + __be32 flowlabel;
1: + union flowi_uli uli;
1: + __u32 mp_hash;
1: +};
1: +
1: +struct flowidn {
1: + struct flowi_common __fl_common;
1: + __le16 daddr;
1: + __le16 saddr;
1: + union flowi_uli uli;
1: +};
1: +
1: +struct flowi {
1: + union {
1: + struct flowi_common __fl_common;
1: + struct flowi4 ip4;
1: + struct flowi6 ip6;
1: + struct flowidn dn;
1: + } u;
1: +};
1: +
1: +struct ipstats_mib {
1: + u64 mibs[37];
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct icmp_mib {
1: + long unsigned int mibs[28];
1: +};
1: +
1: +struct icmpmsg_mib {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct icmpv6_mib {
1: + long unsigned int mibs[6];
1: +};
1: +
1: +struct icmpv6_mib_device {
1: + atomic_long_t mibs[6];
1: +};
1: +
1: +struct icmpv6msg_mib {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct icmpv6msg_mib_device {
1: + atomic_long_t mibs[512];
1: +};
1: +
1: +struct tcp_mib {
1: + long unsigned int mibs[16];
1: +};
1: +
1: +struct udp_mib {
1: + long unsigned int mibs[9];
1: +};
1: +
1: +struct linux_mib {
1: + long unsigned int mibs[124];
1: +};
1: +
1: +struct linux_tls_mib {
1: + long unsigned int mibs[11];
1: +};
1: +
1: +struct inet_frags;
1: +
1: +struct fqdir {
1: + long int high_thresh;
1: + long int low_thresh;
1: + int timeout;
1: + int max_dist;
1: + struct inet_frags *f;
1: + struct net *net;
1: + bool dead;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct rhashtable rhashtable;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_long_t mem;
1: + struct work_struct destroy_work;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct inet_frag_queue;
1: +
1: +struct inet_frags {
1: + unsigned int qsize;
1: + void (*constructor)(struct inet_frag_queue *, const void *);
1: + void (*destructor)(struct inet_frag_queue *);
1: + void (*frag_expire)(struct timer_list *);
1: + struct kmem_cache *frags_cachep;
1: + const char *frags_cache_name;
1: + struct rhashtable_params rhash_params;
1: + refcount_t refcnt;
1: + struct completion completion;
1: +};
1: +
1: +struct frag_v4_compare_key {
1: + __be32 saddr;
1: + __be32 daddr;
1: + u32 user;
1: + u32 vif;
1: + __be16 id;
1: + u16 protocol;
1: +};
1: +
1: +struct frag_v6_compare_key {
1: + struct in6_addr saddr;
1: + struct in6_addr daddr;
1: + u32 user;
1: + __be32 id;
1: + u32 iif;
1: +};
1: +
1: +struct inet_frag_queue {
1: + struct rhash_head node;
1: + union {
1: + struct frag_v4_compare_key v4;
1: + struct frag_v6_compare_key v6;
1: + } key;
1: + struct timer_list timer;
1: + spinlock_t lock;
1: + refcount_t refcnt;
1: + struct rb_root rb_fragments;
1: + struct sk_buff *fragments_tail;
1: + struct sk_buff *last_run_head;
1: + ktime_t stamp;
1: + int len;
1: + int meat;
1: + __u8 flags;
1: + u16 max_size;
1: + struct fqdir *fqdir;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_rule;
1: +
1: +struct fib_lookup_arg;
1: +
1: +struct fib_rule_hdr;
1: +
1: +struct nlattr;
1: +
1: +struct netlink_ext_ack;
1: +
1: +struct nla_policy;
1: +
1: +struct fib_rules_ops {
1: + int family;
1: + struct list_head list;
1: + int rule_size;
1: + int addr_size;
1: + int unresolved_rules;
1: + int nr_goto_rules;
1: + unsigned int fib_rules_seq;
1: + int (*action)(struct fib_rule *, struct flowi *, int, struct fib_lookup_arg *);
1: + bool (*suppress)(struct fib_rule *, struct fib_lookup_arg *);
1: + int (*match)(struct fib_rule *, struct flowi *, int);
1: + int (*configure)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *, struct nlattr **, struct netlink_ext_ack *);
1: + int (*delete)(struct fib_rule *);
1: + int (*compare)(struct fib_rule *, struct fib_rule_hdr *, struct nlattr **);
1: + int (*fill)(struct fib_rule *, struct sk_buff *, struct fib_rule_hdr *);
1: + size_t (*nlmsg_payload)(struct fib_rule *);
1: + void (*flush_cache)(struct fib_rules_ops *);
1: + int nlgroup;
1: + const struct nla_policy *policy;
1: + struct list_head rules_list;
1: + struct module *owner;
1: + struct net *fro_net;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum tcp_ca_event {
1: + CA_EVENT_TX_START = 0,
1: + CA_EVENT_CWND_RESTART = 1,
1: + CA_EVENT_COMPLETE_CWR = 2,
1: + CA_EVENT_LOSS = 3,
1: + CA_EVENT_ECN_NO_CE = 4,
1: + CA_EVENT_ECN_IS_CE = 5,
1: +};
1: +
1: +struct ack_sample;
1: +
1: +struct rate_sample;
1: +
1: +union tcp_cc_info;
1: +
1: +struct tcp_congestion_ops {
1: + struct list_head list;
1: + u32 key;
1: + u32 flags;
1: + void (*init)(struct sock *);
1: + void (*release)(struct sock *);
1: + u32 (*ssthresh)(struct sock *);
1: + void (*cong_avoid)(struct sock *, u32, u32);
1: + void (*set_state)(struct sock *, u8);
1: + void (*cwnd_event)(struct sock *, enum tcp_ca_event);
1: + void (*in_ack_event)(struct sock *, u32);
1: + u32 (*undo_cwnd)(struct sock *);
1: + void (*pkts_acked)(struct sock *, const struct ack_sample *);
1: + u32 (*min_tso_segs)(struct sock *);
1: + u32 (*sndbuf_expand)(struct sock *);
1: + void (*cong_control)(struct sock *, const struct rate_sample *);
1: + size_t (*get_info)(struct sock *, u32, int *, union tcp_cc_info *);
1: + char name[16];
1: + struct module *owner;
1: +};
1: +
1: +struct fib_notifier_ops {
1: + int family;
1: + struct list_head list;
1: + unsigned int (*fib_seq_read)(struct net *);
1: + int (*fib_dump)(struct net *, struct notifier_block *, struct netlink_ext_ack *);
1: + struct module *owner;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct xfrm_state;
1: +
1: +struct lwtunnel_state;
1: +
1: +struct dst_entry {
1: + struct net_device *dev;
1: + struct dst_ops *ops;
1: + long unsigned int _metrics;
1: + long unsigned int expires;
1: + struct xfrm_state *xfrm;
1: + int (*input)(struct sk_buff *);
1: + int (*output)(struct net *, struct sock *, struct sk_buff *);
1: + short unsigned int flags;
1: + short int obsolete;
1: + short unsigned int header_len;
1: + short unsigned int trailer_len;
1: + atomic_t __refcnt;
1: + int __use;
1: + long unsigned int lastuse;
1: + struct lwtunnel_state *lwtstate;
1: + struct callback_head callback_head;
1: + short int error;
1: + short int __pad;
1: + __u32 tclassid;
1: +};
1: +
1: +struct hh_cache {
1: + unsigned int hh_len;
1: + seqlock_t hh_lock;
1: + long unsigned int hh_data[16];
1: +};
1: +
1: +struct neigh_table;
1: +
1: +struct neigh_parms;
1: +
1: +struct neigh_ops;
1: +
1: +struct neighbour {
1: + struct neighbour *next;
1: + struct neigh_table *tbl;
1: + struct neigh_parms *parms;
1: + long unsigned int confirmed;
1: + long unsigned int updated;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + unsigned int arp_queue_len_bytes;
1: + struct sk_buff_head arp_queue;
1: + struct timer_list timer;
1: + long unsigned int used;
1: + atomic_t probes;
1: + __u8 flags;
1: + __u8 nud_state;
1: + __u8 type;
1: + __u8 dead;
1: + u8 protocol;
1: + seqlock_t ha_lock;
1: + int: 32;
1: + unsigned char ha[32];
1: + struct hh_cache hh;
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + const struct neigh_ops *ops;
1: + struct list_head gc_list;
1: + struct callback_head rcu;
1: + struct net_device *dev;
1: + u8 primary_key[0];
1: +};
1: +
1: +struct ipv6_stable_secret {
1: + bool initialized;
1: + struct in6_addr secret;
1: +};
1: +
1: +struct ipv6_devconf {
1: + __s32 forwarding;
1: + __s32 hop_limit;
1: + __s32 mtu6;
1: + __s32 accept_ra;
1: + __s32 accept_redirects;
1: + __s32 autoconf;
1: + __s32 dad_transmits;
1: + __s32 rtr_solicits;
1: + __s32 rtr_solicit_interval;
1: + __s32 rtr_solicit_max_interval;
1: + __s32 rtr_solicit_delay;
1: + __s32 force_mld_version;
1: + __s32 mldv1_unsolicited_report_interval;
1: + __s32 mldv2_unsolicited_report_interval;
1: + __s32 use_tempaddr;
1: + __s32 temp_valid_lft;
1: + __s32 temp_prefered_lft;
1: + __s32 regen_max_retry;
1: + __s32 max_desync_factor;
1: + __s32 max_addresses;
1: + __s32 accept_ra_defrtr;
1: + __s32 accept_ra_min_hop_limit;
1: + __s32 accept_ra_pinfo;
1: + __s32 ignore_routes_with_linkdown;
1: + __s32 accept_ra_rtr_pref;
1: + __s32 rtr_probe_interval;
1: + __s32 accept_ra_rt_info_min_plen;
1: + __s32 accept_ra_rt_info_max_plen;
1: + __s32 proxy_ndp;
1: + __s32 accept_source_route;
1: + __s32 accept_ra_from_local;
1: + __s32 mc_forwarding;
1: + __s32 disable_ipv6;
1: + __s32 drop_unicast_in_l2_multicast;
1: + __s32 accept_dad;
1: + __s32 force_tllao;
1: + __s32 ndisc_notify;
1: + __s32 suppress_frag_ndisc;
1: + __s32 accept_ra_mtu;
1: + __s32 drop_unsolicited_na;
1: + struct ipv6_stable_secret stable_secret;
1: + __s32 use_oif_addrs_only;
1: + __s32 keep_addr_on_down;
1: + __s32 seg6_enabled;
1: + __u32 enhanced_dad;
1: + __u32 addr_gen_mode;
1: + __s32 disable_policy;
1: + __s32 ndisc_tclass;
1: + __s32 rpl_seg_enabled;
1: + struct ctl_table_header *sysctl_header;
1: +};
1: +
1: +struct nf_queue_entry;
1: +
1: +struct nf_queue_handler {
1: + int (*outfn)(struct nf_queue_entry *, unsigned int);
1: + void (*nf_hook_drop)(struct net *);
1: +};
1: +
1: +enum nf_log_type {
1: + NF_LOG_TYPE_LOG = 0,
1: + NF_LOG_TYPE_ULOG = 1,
1: + NF_LOG_TYPE_MAX = 2,
1: +};
1: +
1: +typedef u8 u_int8_t;
1: +
1: +struct nf_loginfo;
1: +
1: +typedef void nf_logfn(struct net *, u_int8_t, unsigned int, const struct sk_buff *, const struct net_device *, const struct net_device *, const struct nf_loginfo *, const char *);
1: +
1: +struct nf_logger {
1: + char *name;
1: + enum nf_log_type type;
1: + nf_logfn *logfn;
1: + struct module *me;
1: +};
1: +
1: +struct hlist_nulls_head {
1: + struct hlist_nulls_node *first;
1: +};
1: +
1: +struct ip_conntrack_stat {
1: + unsigned int found;
1: + unsigned int invalid;
1: + unsigned int insert;
1: + unsigned int insert_failed;
1: + unsigned int clash_resolve;
1: + unsigned int drop;
1: + unsigned int early_drop;
1: + unsigned int error;
1: + unsigned int expect_new;
1: + unsigned int expect_create;
1: + unsigned int expect_delete;
1: + unsigned int search_restart;
1: +};
1: +
1: +struct ct_pcpu {
1: + spinlock_t lock;
1: + struct hlist_nulls_head unconfirmed;
1: + struct hlist_nulls_head dying;
1: +};
1: +
1: +typedef struct {
1: + union {
1: + void *kernel;
1: + void *user;
1: + };
1: + bool is_kernel: 1;
1: +} sockptr_t;
1: +
1: +typedef enum {
1: + SS_FREE = 0,
1: + SS_UNCONNECTED = 1,
1: + SS_CONNECTING = 2,
1: + SS_CONNECTED = 3,
1: + SS_DISCONNECTING = 4,
1: +} socket_state;
1: +
1: +struct socket_wq {
1: + wait_queue_head_t wait;
1: + struct fasync_struct *fasync_list;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct proto_ops;
1: +
1: +struct socket {
1: + socket_state state;
1: + short int type;
1: + long unsigned int flags;
1: + struct file *file;
1: + struct sock *sk;
1: + const struct proto_ops *ops;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct socket_wq wq;
1: +};
1: +
1: +typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *, unsigned int, size_t);
1: +
1: +struct proto_ops {
1: + int family;
1: + unsigned int flags;
1: + struct module *owner;
1: + int (*release)(struct socket *);
1: + int (*bind)(struct socket *, struct sockaddr *, int);
1: + int (*connect)(struct socket *, struct sockaddr *, int, int);
1: + int (*socketpair)(struct socket *, struct socket *);
1: + int (*accept)(struct socket *, struct socket *, int, bool);
1: + int (*getname)(struct socket *, struct sockaddr *, int);
1: + __poll_t (*poll)(struct file *, struct socket *, struct poll_table_struct *);
1: + int (*ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*compat_ioctl)(struct socket *, unsigned int, long unsigned int);
1: + int (*gettstamp)(struct socket *, void *, bool, bool);
1: + int (*listen)(struct socket *, int);
1: + int (*shutdown)(struct socket *, int);
1: + int (*setsockopt)(struct socket *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct socket *, int, int, char *, int *);
1: + void (*show_fdinfo)(struct seq_file *, struct socket *);
1: + int (*sendmsg)(struct socket *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct socket *, struct msghdr *, size_t, int);
1: + int (*mmap)(struct file *, struct socket *, struct vm_area_struct *);
1: + ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int);
1: + ssize_t (*splice_read)(struct socket *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + int (*set_peek_off)(struct sock *, int);
1: + int (*peek_len)(struct socket *);
1: + int (*read_sock)(struct sock *, read_descriptor_t *, sk_read_actor_t);
1: + int (*sendpage_locked)(struct sock *, struct page *, int, size_t, int);
1: + int (*sendmsg_locked)(struct sock *, struct msghdr *, size_t);
1: + int (*set_rcvlowat)(struct sock *, int);
1: +};
1: +
1: +struct pipe_buf_operations;
1: +
1: +struct pipe_buffer {
1: + struct page *page;
1: + unsigned int offset;
1: + unsigned int len;
1: + const struct pipe_buf_operations *ops;
1: + unsigned int flags;
1: + long unsigned int private;
1: +};
1: +
1: +struct pipe_buf_operations {
1: + int (*confirm)(struct pipe_inode_info *, struct pipe_buffer *);
1: + void (*release)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*try_steal)(struct pipe_inode_info *, struct pipe_buffer *);
1: + bool (*get)(struct pipe_inode_info *, struct pipe_buffer *);
1: +};
1: +
1: +struct skb_ext {
1: + refcount_t refcnt;
1: + u8 offset[4];
1: + u8 chunks;
1: + long: 56;
1: + char data[0];
1: +};
1: +
1: +struct dql {
1: + unsigned int num_queued;
1: + unsigned int adj_limit;
1: + unsigned int last_obj_cnt;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + unsigned int limit;
1: + unsigned int num_completed;
1: + unsigned int prev_ovlimit;
1: + unsigned int prev_num_queued;
1: + unsigned int prev_last_obj_cnt;
1: + unsigned int lowest_slack;
1: + long unsigned int slack_start_time;
1: + unsigned int max_limit;
1: + unsigned int min_limit;
1: + unsigned int slack_hold_time;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ethtool_drvinfo {
1: + __u32 cmd;
1: + char driver[32];
1: + char version[32];
1: + char fw_version[32];
1: + char bus_info[32];
1: + char erom_version[32];
1: + char reserved2[12];
1: + __u32 n_priv_flags;
1: + __u32 n_stats;
1: + __u32 testinfo_len;
1: + __u32 eedump_len;
1: + __u32 regdump_len;
1: +};
1: +
1: +struct ethtool_wolinfo {
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 wolopts;
1: + __u8 sopass[6];
1: +};
1: +
1: +struct ethtool_tunable {
1: + __u32 cmd;
1: + __u32 id;
1: + __u32 type_id;
1: + __u32 len;
1: + void *data[0];
1: +};
1: +
1: +struct ethtool_regs {
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_eeprom {
1: + __u32 cmd;
1: + __u32 magic;
1: + __u32 offset;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_eee {
1: + __u32 cmd;
1: + __u32 supported;
1: + __u32 advertised;
1: + __u32 lp_advertised;
1: + __u32 eee_active;
1: + __u32 eee_enabled;
1: + __u32 tx_lpi_enabled;
1: + __u32 tx_lpi_timer;
1: + __u32 reserved[2];
1: +};
1: +
1: +struct ethtool_modinfo {
1: + __u32 cmd;
1: + __u32 type;
1: + __u32 eeprom_len;
1: + __u32 reserved[8];
1: +};
1: +
1: +struct ethtool_coalesce {
1: + __u32 cmd;
1: + __u32 rx_coalesce_usecs;
1: + __u32 rx_max_coalesced_frames;
1: + __u32 rx_coalesce_usecs_irq;
1: + __u32 rx_max_coalesced_frames_irq;
1: + __u32 tx_coalesce_usecs;
1: + __u32 tx_max_coalesced_frames;
1: + __u32 tx_coalesce_usecs_irq;
1: + __u32 tx_max_coalesced_frames_irq;
1: + __u32 stats_block_coalesce_usecs;
1: + __u32 use_adaptive_rx_coalesce;
1: + __u32 use_adaptive_tx_coalesce;
1: + __u32 pkt_rate_low;
1: + __u32 rx_coalesce_usecs_low;
1: + __u32 rx_max_coalesced_frames_low;
1: + __u32 tx_coalesce_usecs_low;
1: + __u32 tx_max_coalesced_frames_low;
1: + __u32 pkt_rate_high;
1: + __u32 rx_coalesce_usecs_high;
1: + __u32 rx_max_coalesced_frames_high;
1: + __u32 tx_coalesce_usecs_high;
1: + __u32 tx_max_coalesced_frames_high;
1: + __u32 rate_sample_interval;
1: +};
1: +
1: +struct ethtool_ringparam {
1: + __u32 cmd;
1: + __u32 rx_max_pending;
1: + __u32 rx_mini_max_pending;
1: + __u32 rx_jumbo_max_pending;
1: + __u32 tx_max_pending;
1: + __u32 rx_pending;
1: + __u32 rx_mini_pending;
1: + __u32 rx_jumbo_pending;
1: + __u32 tx_pending;
1: +};
1: +
1: +struct ethtool_channels {
1: + __u32 cmd;
1: + __u32 max_rx;
1: + __u32 max_tx;
1: + __u32 max_other;
1: + __u32 max_combined;
1: + __u32 rx_count;
1: + __u32 tx_count;
1: + __u32 other_count;
1: + __u32 combined_count;
1: +};
1: +
1: +struct ethtool_pauseparam {
1: + __u32 cmd;
1: + __u32 autoneg;
1: + __u32 rx_pause;
1: + __u32 tx_pause;
1: +};
1: +
1: +enum ethtool_link_ext_state {
1: + ETHTOOL_LINK_EXT_STATE_AUTONEG = 0,
1: + ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 1,
1: + ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 2,
1: + ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 3,
1: + ETHTOOL_LINK_EXT_STATE_NO_CABLE = 4,
1: + ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 5,
1: + ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 6,
1: + ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 7,
1: + ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 8,
1: + ETHTOOL_LINK_EXT_STATE_OVERHEAT = 9,
1: +};
1: +
1: +enum ethtool_link_ext_substate_autoneg {
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 5,
1: + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 6,
1: +};
1: +
1: +enum ethtool_link_ext_substate_link_training {
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 4,
1: +};
1: +
1: +enum ethtool_link_ext_substate_link_logical_mismatch {
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 2,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 3,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 4,
1: + ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 5,
1: +};
1: +
1: +enum ethtool_link_ext_substate_bad_signal_integrity {
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 2,
1: +};
1: +
1: +enum ethtool_link_ext_substate_cable_issue {
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1,
1: + ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 2,
1: +};
1: +
1: +struct ethtool_test {
1: + __u32 cmd;
1: + __u32 flags;
1: + __u32 reserved;
1: + __u32 len;
1: + __u64 data[0];
1: +};
1: +
1: +struct ethtool_stats {
1: + __u32 cmd;
1: + __u32 n_stats;
1: + __u64 data[0];
1: +};
1: +
1: +struct ethtool_tcpip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tos;
1: +};
1: +
1: +struct ethtool_ah_espip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 spi;
1: + __u8 tos;
1: +};
1: +
1: +struct ethtool_usrip4_spec {
1: + __be32 ip4src;
1: + __be32 ip4dst;
1: + __be32 l4_4_bytes;
1: + __u8 tos;
1: + __u8 ip_ver;
1: + __u8 proto;
1: +};
1: +
1: +struct ethtool_tcpip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be16 psrc;
1: + __be16 pdst;
1: + __u8 tclass;
1: +};
1: +
1: +struct ethtool_ah_espip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 spi;
1: + __u8 tclass;
1: +};
1: +
1: +struct ethtool_usrip6_spec {
1: + __be32 ip6src[4];
1: + __be32 ip6dst[4];
1: + __be32 l4_4_bytes;
1: + __u8 tclass;
1: + __u8 l4_proto;
1: +};
1: +
1: +union ethtool_flow_union {
1: + struct ethtool_tcpip4_spec tcp_ip4_spec;
1: + struct ethtool_tcpip4_spec udp_ip4_spec;
1: + struct ethtool_tcpip4_spec sctp_ip4_spec;
1: + struct ethtool_ah_espip4_spec ah_ip4_spec;
1: + struct ethtool_ah_espip4_spec esp_ip4_spec;
1: + struct ethtool_usrip4_spec usr_ip4_spec;
1: + struct ethtool_tcpip6_spec tcp_ip6_spec;
1: + struct ethtool_tcpip6_spec udp_ip6_spec;
1: + struct ethtool_tcpip6_spec sctp_ip6_spec;
1: + struct ethtool_ah_espip6_spec ah_ip6_spec;
1: + struct ethtool_ah_espip6_spec esp_ip6_spec;
1: + struct ethtool_usrip6_spec usr_ip6_spec;
1: + struct ethhdr ether_spec;
1: + __u8 hdata[52];
1: +};
1: +
1: +struct ethtool_flow_ext {
1: + __u8 padding[2];
1: + unsigned char h_dest[6];
1: + __be16 vlan_etype;
1: + __be16 vlan_tci;
1: + __be32 data[2];
1: +};
1: +
1: +struct ethtool_rx_flow_spec {
1: + __u32 flow_type;
1: + union ethtool_flow_union h_u;
1: + struct ethtool_flow_ext h_ext;
1: + union ethtool_flow_union m_u;
1: + struct ethtool_flow_ext m_ext;
1: + __u64 ring_cookie;
1: + __u32 location;
1: +};
1: +
1: +struct ethtool_rxnfc {
1: + __u32 cmd;
1: + __u32 flow_type;
1: + __u64 data;
1: + struct ethtool_rx_flow_spec fs;
1: + union {
1: + __u32 rule_cnt;
1: + __u32 rss_context;
1: + };
1: + __u32 rule_locs[0];
1: +};
1: +
1: +struct ethtool_flash {
1: + __u32 cmd;
1: + __u32 region;
1: + char data[128];
1: +};
1: +
1: +struct ethtool_dump {
1: + __u32 cmd;
1: + __u32 version;
1: + __u32 flag;
1: + __u32 len;
1: + __u8 data[0];
1: +};
1: +
1: +struct ethtool_ts_info {
1: + __u32 cmd;
1: + __u32 so_timestamping;
1: + __s32 phc_index;
1: + __u32 tx_types;
1: + __u32 tx_reserved[3];
1: + __u32 rx_filters;
1: + __u32 rx_reserved[3];
1: +};
1: +
1: +struct ethtool_fecparam {
1: + __u32 cmd;
1: + __u32 active_fec;
1: + __u32 fec;
1: + __u32 reserved;
1: +};
1: +
1: +struct ethtool_link_settings {
1: + __u32 cmd;
1: + __u32 speed;
1: + __u8 duplex;
1: + __u8 port;
1: + __u8 phy_address;
1: + __u8 autoneg;
1: + __u8 mdio_support;
1: + __u8 eth_tp_mdix;
1: + __u8 eth_tp_mdix_ctrl;
1: + __s8 link_mode_masks_nwords;
1: + __u8 transceiver;
1: + __u8 master_slave_cfg;
1: + __u8 master_slave_state;
1: + __u8 reserved1[1];
1: + __u32 reserved[7];
1: + __u32 link_mode_masks[0];
1: +};
1: +
1: +enum ethtool_phys_id_state {
1: + ETHTOOL_ID_INACTIVE = 0,
1: + ETHTOOL_ID_ACTIVE = 1,
1: + ETHTOOL_ID_ON = 2,
1: + ETHTOOL_ID_OFF = 3,
1: +};
1: +
1: +struct ethtool_link_ext_state_info {
1: + enum ethtool_link_ext_state link_ext_state;
1: + union {
1: + enum ethtool_link_ext_substate_autoneg autoneg;
1: + enum ethtool_link_ext_substate_link_training link_training;
1: + enum ethtool_link_ext_substate_link_logical_mismatch link_logical_mismatch;
1: + enum ethtool_link_ext_substate_bad_signal_integrity bad_signal_integrity;
1: + enum ethtool_link_ext_substate_cable_issue cable_issue;
1: + u8 __link_ext_substate;
1: + };
1: +};
1: +
1: +struct ethtool_link_ksettings {
1: + struct ethtool_link_settings base;
1: + struct {
1: + long unsigned int supported[2];
1: + long unsigned int advertising[2];
1: + long unsigned int lp_advertising[2];
1: + } link_modes;
1: +};
1: +
1: +struct ethtool_pause_stats {
1: + u64 tx_pause_frames;
1: + u64 rx_pause_frames;
1: +};
1: +
1: +struct ethtool_ops {
1: + u32 supported_coalesce_params;
1: + void (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);
1: + int (*get_regs_len)(struct net_device *);
1: + void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
1: + void (*get_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + int (*set_wol)(struct net_device *, struct ethtool_wolinfo *);
1: + u32 (*get_msglevel)(struct net_device *);
1: + void (*set_msglevel)(struct net_device *, u32);
1: + int (*nway_reset)(struct net_device *);
1: + u32 (*get_link)(struct net_device *);
1: + int (*get_link_ext_state)(struct net_device *, struct ethtool_link_ext_state_info *);
1: + int (*get_eeprom_len)(struct net_device *);
1: + int (*get_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *);
1: + void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + int (*set_ringparam)(struct net_device *, struct ethtool_ringparam *);
1: + void (*get_pause_stats)(struct net_device *, struct ethtool_pause_stats *);
1: + void (*get_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + int (*set_pauseparam)(struct net_device *, struct ethtool_pauseparam *);
1: + void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
1: + void (*get_strings)(struct net_device *, u32, u8 *);
1: + int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
1: + void (*get_ethtool_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: + int (*begin)(struct net_device *);
1: + void (*complete)(struct net_device *);
1: + u32 (*get_priv_flags)(struct net_device *);
1: + int (*set_priv_flags)(struct net_device *, u32);
1: + int (*get_sset_count)(struct net_device *, int);
1: + int (*get_rxnfc)(struct net_device *, struct ethtool_rxnfc *, u32 *);
1: + int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *);
1: + int (*flash_device)(struct net_device *, struct ethtool_flash *);
1: + int (*reset)(struct net_device *, u32 *);
1: + u32 (*get_rxfh_key_size)(struct net_device *);
1: + u32 (*get_rxfh_indir_size)(struct net_device *);
1: + int (*get_rxfh)(struct net_device *, u32 *, u8 *, u8 *);
1: + int (*set_rxfh)(struct net_device *, const u32 *, const u8 *, const u8);
1: + int (*get_rxfh_context)(struct net_device *, u32 *, u8 *, u8 *, u32);
1: + int (*set_rxfh_context)(struct net_device *, const u32 *, const u8 *, const u8, u32 *, bool);
1: + void (*get_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*set_channels)(struct net_device *, struct ethtool_channels *);
1: + int (*get_dump_flag)(struct net_device *, struct ethtool_dump *);
1: + int (*get_dump_data)(struct net_device *, struct ethtool_dump *, void *);
1: + int (*set_dump)(struct net_device *, struct ethtool_dump *);
1: + int (*get_ts_info)(struct net_device *, struct ethtool_ts_info *);
1: + int (*get_module_info)(struct net_device *, struct ethtool_modinfo *);
1: + int (*get_module_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *);
1: + int (*get_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*set_eee)(struct net_device *, struct ethtool_eee *);
1: + int (*get_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: + int (*set_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: + int (*get_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: + int (*set_per_queue_coalesce)(struct net_device *, u32, struct ethtool_coalesce *);
1: + int (*get_link_ksettings)(struct net_device *, struct ethtool_link_ksettings *);
1: + int (*set_link_ksettings)(struct net_device *, const struct ethtool_link_ksettings *);
1: + int (*get_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + int (*set_fecparam)(struct net_device *, struct ethtool_fecparam *);
1: + void (*get_ethtool_phy_stats)(struct net_device *, struct ethtool_stats *, u64 *);
1: + int (*get_phy_tunable)(struct net_device *, const struct ethtool_tunable *, void *);
1: + int (*set_phy_tunable)(struct net_device *, const struct ethtool_tunable *, const void *);
1: +};
1: +
1: +struct netlink_ext_ack {
1: + const char *_msg;
1: + const struct nlattr *bad_attr;
1: + const struct nla_policy *policy;
1: + u8 cookie[20];
1: + u8 cookie_len;
1: +};
1: +
1: +struct ieee_ets {
1: + __u8 willing;
1: + __u8 ets_cap;
1: + __u8 cbs;
1: + __u8 tc_tx_bw[8];
1: + __u8 tc_rx_bw[8];
1: + __u8 tc_tsa[8];
1: + __u8 prio_tc[8];
1: + __u8 tc_reco_bw[8];
1: + __u8 tc_reco_tsa[8];
1: + __u8 reco_prio_tc[8];
1: +};
1: +
1: +struct ieee_maxrate {
1: + __u64 tc_maxrate[8];
1: +};
1: +
1: +struct ieee_qcn {
1: + __u8 rpg_enable[8];
1: + __u32 rppp_max_rps[8];
1: + __u32 rpg_time_reset[8];
1: + __u32 rpg_byte_reset[8];
1: + __u32 rpg_threshold[8];
1: + __u32 rpg_max_rate[8];
1: + __u32 rpg_ai_rate[8];
1: + __u32 rpg_hai_rate[8];
1: + __u32 rpg_gd[8];
1: + __u32 rpg_min_dec_fac[8];
1: + __u32 rpg_min_rate[8];
1: + __u32 cndd_state_machine[8];
1: +};
1: +
1: +struct ieee_qcn_stats {
1: + __u64 rppp_rp_centiseconds[8];
1: + __u32 rppp_created_rps[8];
1: +};
1: +
1: +struct ieee_pfc {
1: + __u8 pfc_cap;
1: + __u8 pfc_en;
1: + __u8 mbc;
1: + __u16 delay;
1: + __u64 requests[8];
1: + __u64 indications[8];
1: +};
1: +
1: +struct dcbnl_buffer {
1: + __u8 prio2buffer[8];
1: + __u32 buffer_size[8];
1: + __u32 total_size;
1: +};
1: +
1: +struct cee_pg {
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pg_en;
1: + __u8 tcs_supported;
1: + __u8 pg_bw[8];
1: + __u8 prio_pg[8];
1: +};
1: +
1: +struct cee_pfc {
1: + __u8 willing;
1: + __u8 error;
1: + __u8 pfc_en;
1: + __u8 tcs_supported;
1: +};
1: +
1: +struct dcb_app {
1: + __u8 selector;
1: + __u8 priority;
1: + __u16 protocol;
1: +};
1: +
1: +struct dcb_peer_app_info {
1: + __u8 willing;
1: + __u8 error;
1: +};
1: +
1: +struct dcbnl_rtnl_ops {
1: + int (*ieee_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_setets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_getmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_setmaxrate)(struct net_device *, struct ieee_maxrate *);
1: + int (*ieee_getqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_setqcn)(struct net_device *, struct ieee_qcn *);
1: + int (*ieee_getqcnstats)(struct net_device *, struct ieee_qcn_stats *);
1: + int (*ieee_getpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_setpfc)(struct net_device *, struct ieee_pfc *);
1: + int (*ieee_getapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_setapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_delapp)(struct net_device *, struct dcb_app *);
1: + int (*ieee_peer_getets)(struct net_device *, struct ieee_ets *);
1: + int (*ieee_peer_getpfc)(struct net_device *, struct ieee_pfc *);
1: + u8 (*getstate)(struct net_device *);
1: + u8 (*setstate)(struct net_device *, u8);
1: + void (*getpermhwaddr)(struct net_device *, u8 *);
1: + void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgtx)(struct net_device *, int, u8);
1: + void (*setpgtccfgrx)(struct net_device *, int, u8, u8, u8, u8);
1: + void (*setpgbwgcfgrx)(struct net_device *, int, u8);
1: + void (*getpgtccfgtx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgtx)(struct net_device *, int, u8 *);
1: + void (*getpgtccfgrx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
1: + void (*getpgbwgcfgrx)(struct net_device *, int, u8 *);
1: + void (*setpfccfg)(struct net_device *, int, u8);
1: + void (*getpfccfg)(struct net_device *, int, u8 *);
1: + u8 (*setall)(struct net_device *);
1: + u8 (*getcap)(struct net_device *, int, u8 *);
1: + int (*getnumtcs)(struct net_device *, int, u8 *);
1: + int (*setnumtcs)(struct net_device *, int, u8);
1: + u8 (*getpfcstate)(struct net_device *);
1: + void (*setpfcstate)(struct net_device *, u8);
1: + void (*getbcncfg)(struct net_device *, int, u32 *);
1: + void (*setbcncfg)(struct net_device *, int, u32);
1: + void (*getbcnrp)(struct net_device *, int, u8 *);
1: + void (*setbcnrp)(struct net_device *, int, u8);
1: + int (*setapp)(struct net_device *, u8, u16, u8);
1: + int (*getapp)(struct net_device *, u8, u16);
1: + u8 (*getfeatcfg)(struct net_device *, int, u8 *);
1: + u8 (*setfeatcfg)(struct net_device *, int, u8);
1: + u8 (*getdcbx)(struct net_device *);
1: + u8 (*setdcbx)(struct net_device *, u8);
1: + int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *, u16 *);
1: + int (*peer_getapptable)(struct net_device *, struct dcb_app *);
1: + int (*cee_peer_getpg)(struct net_device *, struct cee_pg *);
1: + int (*cee_peer_getpfc)(struct net_device *, struct cee_pfc *);
1: + int (*dcbnl_getbuffer)(struct net_device *, struct dcbnl_buffer *);
1: + int (*dcbnl_setbuffer)(struct net_device *, struct dcbnl_buffer *);
1: +};
1: +
1: +struct netprio_map {
1: + struct callback_head rcu;
1: + u32 priomap_len;
1: + u32 priomap[0];
1: +};
1: +
1: +struct xdp_mem_info {
1: + u32 type;
1: + u32 id;
1: +};
1: +
1: +struct xdp_rxq_info {
1: + struct net_device *dev;
1: + u32 queue_index;
1: + u32 reg_state;
1: + struct xdp_mem_info mem;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xdp_frame {
1: + void *data;
1: + u16 len;
1: + u16 headroom;
1: + u32 metasize: 8;
1: + u32 frame_sz: 24;
1: + struct xdp_mem_info mem;
1: + struct net_device *dev_rx;
1: +};
1: +
1: +struct nlmsghdr {
1: + __u32 nlmsg_len;
1: + __u16 nlmsg_type;
1: + __u16 nlmsg_flags;
1: + __u32 nlmsg_seq;
1: + __u32 nlmsg_pid;
1: +};
1: +
1: +struct nlattr {
1: + __u16 nla_len;
1: + __u16 nla_type;
1: +};
1: +
1: +struct netlink_range_validation;
1: +
1: +struct netlink_range_validation_signed;
1: +
1: +struct nla_policy {
1: + u8 type;
1: + u8 validation_type;
1: + u16 len;
1: + union {
1: + const u32 bitfield32_valid;
1: + const u32 mask;
1: + const char *reject_message;
1: + const struct nla_policy *nested_policy;
1: + struct netlink_range_validation *range;
1: + struct netlink_range_validation_signed *range_signed;
1: + struct {
1: + s16 min;
1: + s16 max;
1: + };
1: + int (*validate)(const struct nlattr *, struct netlink_ext_ack *);
1: + u16 strict_start_type;
1: + };
1: +};
1: +
1: +struct netlink_callback {
1: + struct sk_buff *skb;
1: + const struct nlmsghdr *nlh;
1: + int (*dump)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + void *data;
1: + struct module *module;
1: + struct netlink_ext_ack *extack;
1: + u16 family;
1: + u16 answer_flags;
1: + u32 min_dump_alloc;
1: + unsigned int prev_seq;
1: + unsigned int seq;
1: + bool strict_check;
1: + union {
1: + u8 ctx[48];
1: + long int args[6];
1: + };
1: +};
1: +
1: +struct ndmsg {
1: + __u8 ndm_family;
1: + __u8 ndm_pad1;
1: + __u16 ndm_pad2;
1: + __s32 ndm_ifindex;
1: + __u16 ndm_state;
1: + __u8 ndm_flags;
1: + __u8 ndm_type;
1: +};
1: +
1: +struct rtnl_link_stats64 {
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 rx_errors;
1: + __u64 tx_errors;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: + __u64 multicast;
1: + __u64 collisions;
1: + __u64 rx_length_errors;
1: + __u64 rx_over_errors;
1: + __u64 rx_crc_errors;
1: + __u64 rx_frame_errors;
1: + __u64 rx_fifo_errors;
1: + __u64 rx_missed_errors;
1: + __u64 tx_aborted_errors;
1: + __u64 tx_carrier_errors;
1: + __u64 tx_fifo_errors;
1: + __u64 tx_heartbeat_errors;
1: + __u64 tx_window_errors;
1: + __u64 rx_compressed;
1: + __u64 tx_compressed;
1: + __u64 rx_nohandler;
1: +};
1: +
1: +struct ifla_vf_guid {
1: + __u32 vf;
1: + __u64 guid;
1: +};
1: +
1: +struct ifla_vf_stats {
1: + __u64 rx_packets;
1: + __u64 tx_packets;
1: + __u64 rx_bytes;
1: + __u64 tx_bytes;
1: + __u64 broadcast;
1: + __u64 multicast;
1: + __u64 rx_dropped;
1: + __u64 tx_dropped;
1: +};
1: +
1: +struct ifla_vf_info {
1: + __u32 vf;
1: + __u8 mac[32];
1: + __u32 vlan;
1: + __u32 qos;
1: + __u32 spoofchk;
1: + __u32 linkstate;
1: + __u32 min_tx_rate;
1: + __u32 max_tx_rate;
1: + __u32 rss_query_en;
1: + __u32 trusted;
1: + __be16 vlan_proto;
1: +};
1: +
1: +struct tc_stats {
1: + __u64 bytes;
1: + __u32 packets;
1: + __u32 drops;
1: + __u32 overlimits;
1: + __u32 bps;
1: + __u32 pps;
1: + __u32 qlen;
1: + __u32 backlog;
1: +};
1: +
1: +struct tc_sizespec {
1: + unsigned char cell_log;
1: + unsigned char size_log;
1: + short int cell_align;
1: + int overhead;
1: + unsigned int linklayer;
1: + unsigned int mpu;
1: + unsigned int mtu;
1: + unsigned int tsize;
1: +};
1: +
1: +enum netdev_tx {
1: + __NETDEV_TX_MIN = 2147483648,
1: + NETDEV_TX_OK = 0,
1: + NETDEV_TX_BUSY = 16,
1: +};
1: +
1: +typedef enum netdev_tx netdev_tx_t;
1: +
1: +struct header_ops {
1: + int (*create)(struct sk_buff *, struct net_device *, short unsigned int, const void *, const void *, unsigned int);
1: + int (*parse)(const struct sk_buff *, unsigned char *);
1: + int (*cache)(const struct neighbour *, struct hh_cache *, __be16);
1: + void (*cache_update)(struct hh_cache *, const struct net_device *, const unsigned char *);
1: + bool (*validate)(const char *, unsigned int);
1: + __be16 (*parse_protocol)(const struct sk_buff *);
1: +};
1: +
1: +struct xsk_buff_pool;
1: +
1: +struct netdev_queue {
1: + struct net_device *dev;
1: + struct Qdisc *qdisc;
1: + struct Qdisc *qdisc_sleeping;
1: + struct kobject kobj;
1: + int numa_node;
1: + long unsigned int tx_maxrate;
1: + long unsigned int trans_timeout;
1: + struct net_device *sb_dev;
1: + struct xsk_buff_pool *pool;
1: + spinlock_t _xmit_lock;
1: + int xmit_lock_owner;
1: + long unsigned int trans_start;
1: + long unsigned int state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct dql dql;
1: +};
1: +
1: +struct qdisc_skb_head {
1: + struct sk_buff *head;
1: + struct sk_buff *tail;
1: + __u32 qlen;
1: + spinlock_t lock;
1: +};
1: +
1: +struct gnet_stats_basic_packed {
1: + __u64 bytes;
1: + __u64 packets;
1: +};
1: +
1: +struct gnet_stats_queue {
1: + __u32 qlen;
1: + __u32 backlog;
1: + __u32 drops;
1: + __u32 requeues;
1: + __u32 overlimits;
1: +};
1: +
1: +struct Qdisc_ops;
1: +
1: +struct qdisc_size_table;
1: +
1: +struct net_rate_estimator;
1: +
1: +struct gnet_stats_basic_cpu;
1: +
1: +struct Qdisc {
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff * (*dequeue)(struct Qdisc *);
1: + unsigned int flags;
1: + u32 limit;
1: + const struct Qdisc_ops *ops;
1: + struct qdisc_size_table *stab;
1: + struct hlist_node hash;
1: + u32 handle;
1: + u32 parent;
1: + struct netdev_queue *dev_queue;
1: + struct net_rate_estimator *rate_est;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + int pad;
1: + refcount_t refcnt;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sk_buff_head gso_skb;
1: + struct qdisc_skb_head q;
1: + struct gnet_stats_basic_packed bstats;
1: + seqcount_t running;
1: + struct gnet_stats_queue qstats;
1: + long unsigned int state;
1: + struct Qdisc *next_sched;
1: + struct sk_buff_head skb_bad_txq;
1: + spinlock_t busylock;
1: + spinlock_t seqlock;
1: + bool empty;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long int privdata[0];
1: +};
1: +
1: +struct rps_map {
1: + unsigned int len;
1: + struct callback_head rcu;
1: + u16 cpus[0];
1: +};
1: +
1: +struct rps_dev_flow {
1: + u16 cpu;
1: + u16 filter;
1: + unsigned int last_qtail;
1: +};
1: +
1: +struct rps_dev_flow_table {
1: + unsigned int mask;
1: + struct callback_head rcu;
1: + struct rps_dev_flow flows[0];
1: +};
1: +
1: +struct netdev_rx_queue {
1: + struct rps_map *rps_map;
1: + struct rps_dev_flow_table *rps_flow_table;
1: + struct kobject kobj;
1: + struct net_device *dev;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct xdp_rxq_info xdp_rxq;
1: + struct xsk_buff_pool *pool;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct xps_map {
1: + unsigned int len;
1: + unsigned int alloc_len;
1: + struct callback_head rcu;
1: + u16 queues[0];
1: +};
1: +
1: +struct xps_dev_maps {
1: + struct callback_head rcu;
1: + struct xps_map *attr_map[0];
1: +};
1: +
1: +struct netdev_fcoe_hbainfo {
1: + char manufacturer[64];
1: + char serial_number[64];
1: + char hardware_version[64];
1: + char driver_version[64];
1: + char optionrom_version[64];
1: + char firmware_version[64];
1: + char model[256];
1: + char model_description[256];
1: +};
1: +
1: +struct netdev_phys_item_id {
1: + unsigned char id[32];
1: + unsigned char id_len;
1: +};
1: +
1: +enum tc_setup_type {
1: + TC_SETUP_QDISC_MQPRIO = 0,
1: + TC_SETUP_CLSU32 = 1,
1: + TC_SETUP_CLSFLOWER = 2,
1: + TC_SETUP_CLSMATCHALL = 3,
1: + TC_SETUP_CLSBPF = 4,
1: + TC_SETUP_BLOCK = 5,
1: + TC_SETUP_QDISC_CBS = 6,
1: + TC_SETUP_QDISC_RED = 7,
1: + TC_SETUP_QDISC_PRIO = 8,
1: + TC_SETUP_QDISC_MQ = 9,
1: + TC_SETUP_QDISC_ETF = 10,
1: + TC_SETUP_ROOT_QDISC = 11,
1: + TC_SETUP_QDISC_GRED = 12,
1: + TC_SETUP_QDISC_TAPRIO = 13,
1: + TC_SETUP_FT = 14,
1: + TC_SETUP_QDISC_ETS = 15,
1: + TC_SETUP_QDISC_TBF = 16,
1: + TC_SETUP_QDISC_FIFO = 17,
1: +};
1: +
1: +enum bpf_netdev_command {
1: + XDP_SETUP_PROG = 0,
1: + XDP_SETUP_PROG_HW = 1,
1: + BPF_OFFLOAD_MAP_ALLOC = 2,
1: + BPF_OFFLOAD_MAP_FREE = 3,
1: + XDP_SETUP_XSK_POOL = 4,
1: +};
1: +
1: +struct netdev_bpf {
1: + enum bpf_netdev_command command;
1: + union {
1: + struct {
1: + u32 flags;
1: + struct bpf_prog *prog;
1: + struct netlink_ext_ack *extack;
1: + };
1: + struct {
1: + struct bpf_offloaded_map *offmap;
1: + };
1: + struct {
1: + struct xsk_buff_pool *pool;
1: + u16 queue_id;
1: + } xsk;
1: + };
1: +};
1: +
1: +struct xfrmdev_ops {
1: + int (*xdo_dev_state_add)(struct xfrm_state *);
1: + void (*xdo_dev_state_delete)(struct xfrm_state *);
1: + void (*xdo_dev_state_free)(struct xfrm_state *);
1: + bool (*xdo_dev_offload_ok)(struct sk_buff *, struct xfrm_state *);
1: + void (*xdo_dev_state_advance_esn)(struct xfrm_state *);
1: +};
1: +
1: +struct dev_ifalias {
1: + struct callback_head rcuhead;
1: + char ifalias[0];
1: +};
1: +
1: +struct netdev_name_node {
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + struct net_device *dev;
1: + const char *name;
1: +};
1: +
1: +struct udp_tunnel_info;
1: +
1: +struct devlink_port;
1: +
1: +struct ip_tunnel_parm;
1: +
1: +struct net_device_ops {
1: + int (*ndo_init)(struct net_device *);
1: + void (*ndo_uninit)(struct net_device *);
1: + int (*ndo_open)(struct net_device *);
1: + int (*ndo_stop)(struct net_device *);
1: + netdev_tx_t (*ndo_start_xmit)(struct sk_buff *, struct net_device *);
1: + netdev_features_t (*ndo_features_check)(struct sk_buff *, struct net_device *, netdev_features_t);
1: + u16 (*ndo_select_queue)(struct net_device *, struct sk_buff *, struct net_device *);
1: + void (*ndo_change_rx_flags)(struct net_device *, int);
1: + void (*ndo_set_rx_mode)(struct net_device *);
1: + int (*ndo_set_mac_address)(struct net_device *, void *);
1: + int (*ndo_validate_addr)(struct net_device *);
1: + int (*ndo_do_ioctl)(struct net_device *, struct ifreq *, int);
1: + int (*ndo_set_config)(struct net_device *, struct ifmap *);
1: + int (*ndo_change_mtu)(struct net_device *, int);
1: + int (*ndo_neigh_setup)(struct net_device *, struct neigh_parms *);
1: + void (*ndo_tx_timeout)(struct net_device *, unsigned int);
1: + void (*ndo_get_stats64)(struct net_device *, struct rtnl_link_stats64 *);
1: + bool (*ndo_has_offload_stats)(const struct net_device *, int);
1: + int (*ndo_get_offload_stats)(int, const struct net_device *, void *);
1: + struct net_device_stats * (*ndo_get_stats)(struct net_device *);
1: + int (*ndo_vlan_rx_add_vid)(struct net_device *, __be16, u16);
1: + int (*ndo_vlan_rx_kill_vid)(struct net_device *, __be16, u16);
1: + void (*ndo_poll_controller)(struct net_device *);
1: + int (*ndo_netpoll_setup)(struct net_device *, struct netpoll_info *);
1: + void (*ndo_netpoll_cleanup)(struct net_device *);
1: + int (*ndo_set_vf_mac)(struct net_device *, int, u8 *);
1: + int (*ndo_set_vf_vlan)(struct net_device *, int, u16, u8, __be16);
1: + int (*ndo_set_vf_rate)(struct net_device *, int, int, int);
1: + int (*ndo_set_vf_spoofchk)(struct net_device *, int, bool);
1: + int (*ndo_set_vf_trust)(struct net_device *, int, bool);
1: + int (*ndo_get_vf_config)(struct net_device *, int, struct ifla_vf_info *);
1: + int (*ndo_set_vf_link_state)(struct net_device *, int, int);
1: + int (*ndo_get_vf_stats)(struct net_device *, int, struct ifla_vf_stats *);
1: + int (*ndo_set_vf_port)(struct net_device *, int, struct nlattr **);
1: + int (*ndo_get_vf_port)(struct net_device *, int, struct sk_buff *);
1: + int (*ndo_get_vf_guid)(struct net_device *, int, struct ifla_vf_guid *, struct ifla_vf_guid *);
1: + int (*ndo_set_vf_guid)(struct net_device *, int, u64, int);
1: + int (*ndo_set_vf_rss_query_en)(struct net_device *, int, bool);
1: + int (*ndo_setup_tc)(struct net_device *, enum tc_setup_type, void *);
1: + int (*ndo_fcoe_enable)(struct net_device *);
1: + int (*ndo_fcoe_disable)(struct net_device *);
1: + int (*ndo_fcoe_ddp_setup)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: + int (*ndo_fcoe_ddp_done)(struct net_device *, u16);
1: + int (*ndo_fcoe_ddp_target)(struct net_device *, u16, struct scatterlist *, unsigned int);
1: + int (*ndo_fcoe_get_hbainfo)(struct net_device *, struct netdev_fcoe_hbainfo *);
1: + int (*ndo_fcoe_get_wwn)(struct net_device *, u64 *, int);
1: + int (*ndo_rx_flow_steer)(struct net_device *, const struct sk_buff *, u16, u32);
1: + int (*ndo_add_slave)(struct net_device *, struct net_device *, struct netlink_ext_ack *);
1: + int (*ndo_del_slave)(struct net_device *, struct net_device *);
1: + struct net_device * (*ndo_get_xmit_slave)(struct net_device *, struct sk_buff *, bool);
1: + netdev_features_t (*ndo_fix_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_set_features)(struct net_device *, netdev_features_t);
1: + int (*ndo_neigh_construct)(struct net_device *, struct neighbour *);
1: + void (*ndo_neigh_destroy)(struct net_device *, struct neighbour *);
1: + int (*ndo_fdb_add)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, u16, struct netlink_ext_ack *);
1: + int (*ndo_fdb_del)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16);
1: + int (*ndo_fdb_dump)(struct sk_buff *, struct netlink_callback *, struct net_device *, struct net_device *, int *);
1: + int (*ndo_fdb_get)(struct sk_buff *, struct nlattr **, struct net_device *, const unsigned char *, u16, u32, u32, struct netlink_ext_ack *);
1: + int (*ndo_bridge_setlink)(struct net_device *, struct nlmsghdr *, u16, struct netlink_ext_ack *);
1: + int (*ndo_bridge_getlink)(struct sk_buff *, u32, u32, struct net_device *, u32, int);
1: + int (*ndo_bridge_dellink)(struct net_device *, struct nlmsghdr *, u16);
1: + int (*ndo_change_carrier)(struct net_device *, bool);
1: + int (*ndo_get_phys_port_id)(struct net_device *, struct netdev_phys_item_id *);
1: + int (*ndo_get_port_parent_id)(struct net_device *, struct netdev_phys_item_id *);
1: + int (*ndo_get_phys_port_name)(struct net_device *, char *, size_t);
1: + void (*ndo_udp_tunnel_add)(struct net_device *, struct udp_tunnel_info *);
1: + void (*ndo_udp_tunnel_del)(struct net_device *, struct udp_tunnel_info *);
1: + void * (*ndo_dfwd_add_station)(struct net_device *, struct net_device *);
1: + void (*ndo_dfwd_del_station)(struct net_device *, void *);
1: + int (*ndo_set_tx_maxrate)(struct net_device *, int, u32);
1: + int (*ndo_get_iflink)(const struct net_device *);
1: + int (*ndo_change_proto_down)(struct net_device *, bool);
1: + int (*ndo_fill_metadata_dst)(struct net_device *, struct sk_buff *);
1: + void (*ndo_set_rx_headroom)(struct net_device *, int);
1: + int (*ndo_bpf)(struct net_device *, struct netdev_bpf *);
1: + int (*ndo_xdp_xmit)(struct net_device *, int, struct xdp_frame **, u32);
1: + int (*ndo_xsk_wakeup)(struct net_device *, u32, u32);
1: + struct devlink_port * (*ndo_get_devlink_port)(struct net_device *);
1: + int (*ndo_tunnel_ctl)(struct net_device *, struct ip_tunnel_parm *, int);
1: + struct net_device * (*ndo_get_peer_dev)(struct net_device *);
1: +};
1: +
1: +struct neigh_parms {
1: + possible_net_t net;
1: + struct net_device *dev;
1: + struct list_head list;
1: + int (*neigh_setup)(struct neighbour *);
1: + struct neigh_table *tbl;
1: + void *sysctl_table;
1: + int dead;
1: + refcount_t refcnt;
1: + struct callback_head callback_head;
1: + int reachable_time;
1: + int data[13];
1: + long unsigned int data_state[1];
1: +};
1: +
1: +struct pcpu_lstats {
1: + u64_stats_t packets;
1: + u64_stats_t bytes;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct pcpu_sw_netstats {
1: + u64 rx_packets;
1: + u64 rx_bytes;
1: + u64 tx_packets;
1: + u64 tx_bytes;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct iw_request_info;
1: +
1: +union iwreq_data;
1: +
1: +typedef int (*iw_handler)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *);
1: +
1: +struct iw_priv_args;
1: +
1: +struct iw_statistics;
1: +
1: +struct iw_handler_def {
1: + const iw_handler *standard;
1: + __u16 num_standard;
1: + __u16 num_private;
1: + __u16 num_private_args;
1: + const iw_handler *private;
1: + const struct iw_priv_args *private_args;
1: + struct iw_statistics * (*get_wireless_stats)(struct net_device *);
1: +};
1: +
1: +struct l3mdev_ops {
1: + u32 (*l3mdev_fib_table)(const struct net_device *);
1: + struct sk_buff * (*l3mdev_l3_rcv)(struct net_device *, struct sk_buff *, u16);
1: + struct sk_buff * (*l3mdev_l3_out)(struct net_device *, struct sock *, struct sk_buff *, u16);
1: + struct dst_entry * (*l3mdev_link_scope_lookup)(const struct net_device *, struct flowi6 *);
1: +};
1: +
1: +struct nd_opt_hdr;
1: +
1: +struct ndisc_options;
1: +
1: +struct prefix_info;
1: +
1: +struct ndisc_ops {
1: + int (*is_useropt)(u8);
1: + int (*parse_options)(const struct net_device *, struct nd_opt_hdr *, struct ndisc_options *);
1: + void (*update)(const struct net_device *, struct neighbour *, u32, u8, const struct ndisc_options *);
1: + int (*opt_addr_space)(const struct net_device *, u8, struct neighbour *, u8 *, u8 **);
1: + void (*fill_addr_option)(const struct net_device *, struct sk_buff *, u8, const u8 *);
1: + void (*prefix_rcv_add_addr)(struct net *, struct net_device *, const struct prefix_info *, struct inet6_dev *, struct in6_addr *, int, u32, bool, bool, __u32, u32, bool);
1: +};
1: +
1: +enum tls_offload_ctx_dir {
1: + TLS_OFFLOAD_CTX_DIR_RX = 0,
1: + TLS_OFFLOAD_CTX_DIR_TX = 1,
1: +};
1: +
1: +struct tls_crypto_info;
1: +
1: +struct tls_context;
1: +
1: +struct tlsdev_ops {
1: + int (*tls_dev_add)(struct net_device *, struct sock *, enum tls_offload_ctx_dir, struct tls_crypto_info *, u32);
1: + void (*tls_dev_del)(struct net_device *, struct tls_context *, enum tls_offload_ctx_dir);
1: + int (*tls_dev_resync)(struct net_device *, struct sock *, u32, u8 *, enum tls_offload_ctx_dir);
1: +};
1: +
1: +struct ipv6_devstat {
1: + struct proc_dir_entry *proc_dir_entry;
1: + struct ipstats_mib *ipv6;
1: + struct icmpv6_mib_device *icmpv6dev;
1: + struct icmpv6msg_mib_device *icmpv6msgdev;
1: +};
1: +
1: +struct ifmcaddr6;
1: +
1: +struct ifacaddr6;
1: +
1: +struct inet6_dev {
1: + struct net_device *dev;
1: + struct list_head addr_list;
1: + struct ifmcaddr6 *mc_list;
1: + struct ifmcaddr6 *mc_tomb;
1: + spinlock_t mc_lock;
1: + unsigned char mc_qrv;
1: + unsigned char mc_gq_running;
1: + unsigned char mc_ifc_count;
1: + unsigned char mc_dad_count;
1: + long unsigned int mc_v1_seen;
1: + long unsigned int mc_qi;
1: + long unsigned int mc_qri;
1: + long unsigned int mc_maxdelay;
1: + struct timer_list mc_gq_timer;
1: + struct timer_list mc_ifc_timer;
1: + struct timer_list mc_dad_timer;
1: + struct ifacaddr6 *ac_list;
1: + rwlock_t lock;
1: + refcount_t refcnt;
1: + __u32 if_flags;
1: + int dead;
1: + u32 desync_factor;
1: + struct list_head tempaddr_list;
1: + struct in6_addr token;
1: + struct neigh_parms *nd_parms;
1: + struct ipv6_devconf cnf;
1: + struct ipv6_devstat stats;
1: + struct timer_list rs_timer;
1: + __s32 rs_interval;
1: + __u8 rs_probes;
1: + long unsigned int tstamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct tcf_proto;
1: +
1: +struct tcf_block;
1: +
1: +struct mini_Qdisc {
1: + struct tcf_proto *filter_list;
1: + struct tcf_block *block;
1: + struct gnet_stats_basic_cpu *cpu_bstats;
1: + struct gnet_stats_queue *cpu_qstats;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rtnl_link_ops {
1: + struct list_head list;
1: + const char *kind;
1: + size_t priv_size;
1: + void (*setup)(struct net_device *);
1: + unsigned int maxtype;
1: + const struct nla_policy *policy;
1: + int (*validate)(struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + int (*newlink)(struct net *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + int (*changelink)(struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + void (*dellink)(struct net_device *, struct list_head *);
1: + size_t (*get_size)(const struct net_device *);
1: + int (*fill_info)(struct sk_buff *, const struct net_device *);
1: + size_t (*get_xstats_size)(const struct net_device *);
1: + int (*fill_xstats)(struct sk_buff *, const struct net_device *);
1: + unsigned int (*get_num_tx_queues)();
1: + unsigned int (*get_num_rx_queues)();
1: + unsigned int slave_maxtype;
1: + const struct nla_policy *slave_policy;
1: + int (*slave_changelink)(struct net_device *, struct net_device *, struct nlattr **, struct nlattr **, struct netlink_ext_ack *);
1: + size_t (*get_slave_size)(const struct net_device *, const struct net_device *);
1: + int (*fill_slave_info)(struct sk_buff *, const struct net_device *, const struct net_device *);
1: + struct net * (*get_link_net)(const struct net_device *);
1: + size_t (*get_linkxstats_size)(const struct net_device *, int);
1: + int (*fill_linkxstats)(struct sk_buff *, const struct net_device *, int *, int);
1: +};
1: +
1: +struct udp_tunnel_nic_table_info {
1: + unsigned int n_entries;
1: + unsigned int tunnel_types;
1: +};
1: +
1: +struct udp_tunnel_nic_shared;
1: +
1: +struct udp_tunnel_nic_info {
1: + int (*set_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: + int (*unset_port)(struct net_device *, unsigned int, unsigned int, struct udp_tunnel_info *);
1: + int (*sync_table)(struct net_device *, unsigned int);
1: + struct udp_tunnel_nic_shared *shared;
1: + unsigned int flags;
1: + struct udp_tunnel_nic_table_info tables[4];
1: +};
1: +
1: +enum {
1: + RTAX_UNSPEC = 0,
1: + RTAX_LOCK = 1,
1: + RTAX_MTU = 2,
1: + RTAX_WINDOW = 3,
1: + RTAX_RTT = 4,
1: + RTAX_RTTVAR = 5,
1: + RTAX_SSTHRESH = 6,
1: + RTAX_CWND = 7,
1: + RTAX_ADVMSS = 8,
1: + RTAX_REORDERING = 9,
1: + RTAX_HOPLIMIT = 10,
1: + RTAX_INITCWND = 11,
1: + RTAX_FEATURES = 12,
1: + RTAX_RTO_MIN = 13,
1: + RTAX_INITRWND = 14,
1: + RTAX_QUICKACK = 15,
1: + RTAX_CC_ALGO = 16,
1: + RTAX_FASTOPEN_NO_COOKIE = 17,
1: + __RTAX_MAX = 18,
1: +};
1: +
1: +struct tcmsg {
1: + unsigned char tcm_family;
1: + unsigned char tcm__pad1;
1: + short unsigned int tcm__pad2;
1: + int tcm_ifindex;
1: + __u32 tcm_handle;
1: + __u32 tcm_parent;
1: + __u32 tcm_info;
1: +};
1: +
1: +struct gnet_stats_basic_cpu {
1: + struct gnet_stats_basic_packed bstats;
1: + struct u64_stats_sync syncp;
1: +};
1: +
1: +struct gnet_dump {
1: + spinlock_t *lock;
1: + struct sk_buff *skb;
1: + struct nlattr *tail;
1: + int compat_tc_stats;
1: + int compat_xstats;
1: + int padattr;
1: + void *xstats;
1: + int xstats_len;
1: + struct tc_stats tc_stats;
1: +};
1: +
1: +struct netlink_range_validation {
1: + u64 min;
1: + u64 max;
1: +};
1: +
1: +struct netlink_range_validation_signed {
1: + s64 min;
1: + s64 max;
1: +};
1: +
1: +enum flow_action_hw_stats_bit {
1: + FLOW_ACTION_HW_STATS_IMMEDIATE_BIT = 0,
1: + FLOW_ACTION_HW_STATS_DELAYED_BIT = 1,
1: + FLOW_ACTION_HW_STATS_DISABLED_BIT = 2,
1: + FLOW_ACTION_HW_STATS_NUM_BITS = 3,
1: +};
1: +
1: +struct flow_block {
1: + struct list_head cb_list;
1: +};
1: +
1: +typedef int flow_setup_cb_t(enum tc_setup_type, void *, void *);
1: +
1: +struct qdisc_size_table {
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct tc_sizespec szopts;
1: + int refcnt;
1: + u16 data[0];
1: +};
1: +
1: +struct Qdisc_class_ops;
1: +
1: +struct Qdisc_ops {
1: + struct Qdisc_ops *next;
1: + const struct Qdisc_class_ops *cl_ops;
1: + char id[16];
1: + int priv_size;
1: + unsigned int static_flags;
1: + int (*enqueue)(struct sk_buff *, struct Qdisc *, struct sk_buff **);
1: + struct sk_buff * (*dequeue)(struct Qdisc *);
1: + struct sk_buff * (*peek)(struct Qdisc *);
1: + int (*init)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*reset)(struct Qdisc *);
1: + void (*destroy)(struct Qdisc *);
1: + int (*change)(struct Qdisc *, struct nlattr *, struct netlink_ext_ack *);
1: + void (*attach)(struct Qdisc *);
1: + int (*change_tx_queue_len)(struct Qdisc *, unsigned int);
1: + int (*dump)(struct Qdisc *, struct sk_buff *);
1: + int (*dump_stats)(struct Qdisc *, struct gnet_dump *);
1: + void (*ingress_block_set)(struct Qdisc *, u32);
1: + void (*egress_block_set)(struct Qdisc *, u32);
1: + u32 (*ingress_block_get)(struct Qdisc *);
1: + u32 (*egress_block_get)(struct Qdisc *);
1: + struct module *owner;
1: +};
1: +
1: +struct qdisc_walker;
1: +
1: +struct Qdisc_class_ops {
1: + unsigned int flags;
1: + struct netdev_queue * (*select_queue)(struct Qdisc *, struct tcmsg *);
1: + int (*graft)(struct Qdisc *, long unsigned int, struct Qdisc *, struct Qdisc **, struct netlink_ext_ack *);
1: + struct Qdisc * (*leaf)(struct Qdisc *, long unsigned int);
1: + void (*qlen_notify)(struct Qdisc *, long unsigned int);
1: + long unsigned int (*find)(struct Qdisc *, u32);
1: + int (*change)(struct Qdisc *, u32, u32, struct nlattr **, long unsigned int *, struct netlink_ext_ack *);
1: + int (*delete)(struct Qdisc *, long unsigned int);
1: + void (*walk)(struct Qdisc *, struct qdisc_walker *);
1: + struct tcf_block * (*tcf_block)(struct Qdisc *, long unsigned int, struct netlink_ext_ack *);
1: + long unsigned int (*bind_tcf)(struct Qdisc *, long unsigned int, u32);
1: + void (*unbind_tcf)(struct Qdisc *, long unsigned int);
1: + int (*dump)(struct Qdisc *, long unsigned int, struct sk_buff *, struct tcmsg *);
1: + int (*dump_stats)(struct Qdisc *, long unsigned int, struct gnet_dump *);
1: +};
1: +
1: +struct tcf_chain;
1: +
1: +struct tcf_block {
1: + struct mutex lock;
1: + struct list_head chain_list;
1: + u32 index;
1: + u32 classid;
1: + refcount_t refcnt;
1: + struct net *net;
1: + struct Qdisc *q;
1: + struct rw_semaphore cb_lock;
1: + struct flow_block flow_block;
1: + struct list_head owner_list;
1: + bool keep_dst;
1: + atomic_t offloadcnt;
1: + unsigned int nooffloaddevcnt;
1: + unsigned int lockeddevcnt;
1: + struct {
1: + struct tcf_chain *chain;
1: + struct list_head filter_chain_list;
1: + } chain0;
1: + struct callback_head rcu;
1: + struct hlist_head proto_destroy_ht[128];
1: + struct mutex proto_destroy_lock;
1: +};
1: +
1: +struct tcf_result;
1: +
1: +struct tcf_proto_ops;
1: +
1: +struct tcf_proto {
1: + struct tcf_proto *next;
1: + void *root;
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: + __be16 protocol;
1: + u32 prio;
1: + void *data;
1: + const struct tcf_proto_ops *ops;
1: + struct tcf_chain *chain;
1: + spinlock_t lock;
1: + bool deleting;
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct hlist_node destroy_ht_node;
1: +};
1: +
1: +struct tcf_result {
1: + union {
1: + struct {
1: + long unsigned int class;
1: + u32 classid;
1: + };
1: + const struct tcf_proto *goto_tp;
1: + struct {
1: + bool ingress;
1: + struct gnet_stats_queue *qstats;
1: + };
1: + };
1: +};
1: +
1: +struct tcf_walker;
1: +
1: +struct tcf_proto_ops {
1: + struct list_head head;
1: + char kind[16];
1: + int (*classify)(struct sk_buff *, const struct tcf_proto *, struct tcf_result *);
1: + int (*init)(struct tcf_proto *);
1: + void (*destroy)(struct tcf_proto *, bool, struct netlink_ext_ack *);
1: + void * (*get)(struct tcf_proto *, u32);
1: + void (*put)(struct tcf_proto *, void *);
1: + int (*change)(struct net *, struct sk_buff *, struct tcf_proto *, long unsigned int, u32, struct nlattr **, void **, bool, bool, struct netlink_ext_ack *);
1: + int (*delete)(struct tcf_proto *, void *, bool *, bool, struct netlink_ext_ack *);
1: + bool (*delete_empty)(struct tcf_proto *);
1: + void (*walk)(struct tcf_proto *, struct tcf_walker *, bool);
1: + int (*reoffload)(struct tcf_proto *, bool, flow_setup_cb_t *, void *, struct netlink_ext_ack *);
1: + void (*hw_add)(struct tcf_proto *, void *);
1: + void (*hw_del)(struct tcf_proto *, void *);
1: + void (*bind_class)(void *, u32, long unsigned int, void *, long unsigned int);
1: + void * (*tmplt_create)(struct net *, struct tcf_chain *, struct nlattr **, struct netlink_ext_ack *);
1: + void (*tmplt_destroy)(void *);
1: + int (*dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: + int (*terse_dump)(struct net *, struct tcf_proto *, void *, struct sk_buff *, struct tcmsg *, bool);
1: + int (*tmplt_dump)(struct sk_buff *, struct net *, void *);
1: + struct module *owner;
1: + int flags;
1: +};
1: +
1: +struct tcf_chain {
1: + struct mutex filter_chain_lock;
1: + struct tcf_proto *filter_chain;
1: + struct list_head list;
1: + struct tcf_block *block;
1: + u32 index;
1: + unsigned int refcnt;
1: + unsigned int action_refcnt;
1: + bool explicitly_created;
1: + bool flushing;
1: + const struct tcf_proto_ops *tmplt_ops;
1: + void *tmplt_priv;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct sock_fprog_kern {
1: + u16 len;
1: + struct sock_filter *filter;
1: +};
1: +
1: +struct sk_filter {
1: + refcount_t refcnt;
1: + struct callback_head rcu;
1: + struct bpf_prog *prog;
1: +};
1: +
1: +enum {
1: + NEIGH_VAR_MCAST_PROBES = 0,
1: + NEIGH_VAR_UCAST_PROBES = 1,
1: + NEIGH_VAR_APP_PROBES = 2,
1: + NEIGH_VAR_MCAST_REPROBES = 3,
1: + NEIGH_VAR_RETRANS_TIME = 4,
1: + NEIGH_VAR_BASE_REACHABLE_TIME = 5,
1: + NEIGH_VAR_DELAY_PROBE_TIME = 6,
1: + NEIGH_VAR_GC_STALETIME = 7,
1: + NEIGH_VAR_QUEUE_LEN_BYTES = 8,
1: + NEIGH_VAR_PROXY_QLEN = 9,
1: + NEIGH_VAR_ANYCAST_DELAY = 10,
1: + NEIGH_VAR_PROXY_DELAY = 11,
1: + NEIGH_VAR_LOCKTIME = 12,
1: + NEIGH_VAR_QUEUE_LEN = 13,
1: + NEIGH_VAR_RETRANS_TIME_MS = 14,
1: + NEIGH_VAR_BASE_REACHABLE_TIME_MS = 15,
1: + NEIGH_VAR_GC_INTERVAL = 16,
1: + NEIGH_VAR_GC_THRESH1 = 17,
1: + NEIGH_VAR_GC_THRESH2 = 18,
1: + NEIGH_VAR_GC_THRESH3 = 19,
1: + NEIGH_VAR_MAX = 20,
1: +};
1: +
1: +struct pneigh_entry;
1: +
1: +struct neigh_statistics;
1: +
1: +struct neigh_hash_table;
1: +
1: +struct neigh_table {
1: + int family;
1: + unsigned int entry_size;
1: + unsigned int key_len;
1: + __be16 protocol;
1: + __u32 (*hash)(const void *, const struct net_device *, __u32 *);
1: + bool (*key_eq)(const struct neighbour *, const void *);
1: + int (*constructor)(struct neighbour *);
1: + int (*pconstructor)(struct pneigh_entry *);
1: + void (*pdestructor)(struct pneigh_entry *);
1: + void (*proxy_redo)(struct sk_buff *);
1: + int (*is_multicast)(const void *);
1: + bool (*allow_add)(const struct net_device *, struct netlink_ext_ack *);
1: + char *id;
1: + struct neigh_parms parms;
1: + struct list_head parms_list;
1: + int gc_interval;
1: + int gc_thresh1;
1: + int gc_thresh2;
1: + int gc_thresh3;
1: + long unsigned int last_flush;
1: + struct delayed_work gc_work;
1: + struct timer_list proxy_timer;
1: + struct sk_buff_head proxy_queue;
1: + atomic_t entries;
1: + atomic_t gc_entries;
1: + struct list_head gc_list;
1: + rwlock_t lock;
1: + long unsigned int last_rand;
1: + struct neigh_statistics *stats;
1: + struct neigh_hash_table *nht;
1: + struct pneigh_entry **phash_buckets;
1: +};
1: +
1: +struct neigh_statistics {
1: + long unsigned int allocs;
1: + long unsigned int destroys;
1: + long unsigned int hash_grows;
1: + long unsigned int res_failed;
1: + long unsigned int lookups;
1: + long unsigned int hits;
1: + long unsigned int rcv_probes_mcast;
1: + long unsigned int rcv_probes_ucast;
1: + long unsigned int periodic_gc_runs;
1: + long unsigned int forced_gc_runs;
1: + long unsigned int unres_discards;
1: + long unsigned int table_fulls;
1: +};
1: +
1: +struct neigh_ops {
1: + int family;
1: + void (*solicit)(struct neighbour *, struct sk_buff *);
1: + void (*error_report)(struct neighbour *, struct sk_buff *);
1: + int (*output)(struct neighbour *, struct sk_buff *);
1: + int (*connected_output)(struct neighbour *, struct sk_buff *);
1: +};
1: +
1: +struct pneigh_entry {
1: + struct pneigh_entry *next;
1: + possible_net_t net;
1: + struct net_device *dev;
1: + u8 flags;
1: + u8 protocol;
1: + u8 key[0];
1: +};
1: +
1: +struct neigh_hash_table {
1: + struct neighbour **hash_buckets;
1: + unsigned int hash_shift;
1: + __u32 hash_rnd[4];
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + TCP_ESTABLISHED = 1,
1: + TCP_SYN_SENT = 2,
1: + TCP_SYN_RECV = 3,
1: + TCP_FIN_WAIT1 = 4,
1: + TCP_FIN_WAIT2 = 5,
1: + TCP_TIME_WAIT = 6,
1: + TCP_CLOSE = 7,
1: + TCP_CLOSE_WAIT = 8,
1: + TCP_LAST_ACK = 9,
1: + TCP_LISTEN = 10,
1: + TCP_CLOSING = 11,
1: + TCP_NEW_SYN_RECV = 12,
1: + TCP_MAX_STATES = 13,
1: +};
1: +
1: +struct fib_rule_hdr {
1: + __u8 family;
1: + __u8 dst_len;
1: + __u8 src_len;
1: + __u8 tos;
1: + __u8 table;
1: + __u8 res1;
1: + __u8 res2;
1: + __u8 action;
1: + __u32 flags;
1: +};
1: +
1: +struct fib_rule_port_range {
1: + __u16 start;
1: + __u16 end;
1: +};
1: +
1: +struct fib_kuid_range {
1: + kuid_t start;
1: + kuid_t end;
1: +};
1: +
1: +struct fib_rule {
1: + struct list_head list;
1: + int iifindex;
1: + int oifindex;
1: + u32 mark;
1: + u32 mark_mask;
1: + u32 flags;
1: + u32 table;
1: + u8 action;
1: + u8 l3mdev;
1: + u8 proto;
1: + u8 ip_proto;
1: + u32 target;
1: + __be64 tun_id;
1: + struct fib_rule *ctarget;
1: + struct net *fr_net;
1: + refcount_t refcnt;
1: + u32 pref;
1: + int suppress_ifgroup;
1: + int suppress_prefixlen;
1: + char iifname[16];
1: + char oifname[16];
1: + struct fib_kuid_range uid_range;
1: + struct fib_rule_port_range sport_range;
1: + struct fib_rule_port_range dport_range;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_lookup_arg {
1: + void *lookup_ptr;
1: + const void *lookup_data;
1: + void *result;
1: + struct fib_rule *rule;
1: + u32 table;
1: + int flags;
1: +};
1: +
1: +struct smc_hashinfo;
1: +
1: +struct request_sock_ops;
1: +
1: +struct timewait_sock_ops;
1: +
1: +struct udp_table;
1: +
1: +struct raw_hashinfo;
1: +
1: +struct proto {
1: + void (*close)(struct sock *, long int);
1: + int (*pre_connect)(struct sock *, struct sockaddr *, int);
1: + int (*connect)(struct sock *, struct sockaddr *, int);
1: + int (*disconnect)(struct sock *, int);
1: + struct sock * (*accept)(struct sock *, int, int *, bool);
1: + int (*ioctl)(struct sock *, int, long unsigned int);
1: + int (*init)(struct sock *);
1: + void (*destroy)(struct sock *);
1: + void (*shutdown)(struct sock *, int);
1: + int (*setsockopt)(struct sock *, int, int, sockptr_t, unsigned int);
1: + int (*getsockopt)(struct sock *, int, int, char *, int *);
1: + void (*keepalive)(struct sock *, int);
1: + int (*compat_ioctl)(struct sock *, unsigned int, long unsigned int);
1: + int (*sendmsg)(struct sock *, struct msghdr *, size_t);
1: + int (*recvmsg)(struct sock *, struct msghdr *, size_t, int, int, int *);
1: + int (*sendpage)(struct sock *, struct page *, int, size_t, int);
1: + int (*bind)(struct sock *, struct sockaddr *, int);
1: + int (*bind_add)(struct sock *, struct sockaddr *, int);
1: + int (*backlog_rcv)(struct sock *, struct sk_buff *);
1: + void (*release_cb)(struct sock *);
1: + int (*hash)(struct sock *);
1: + void (*unhash)(struct sock *);
1: + void (*rehash)(struct sock *);
1: + int (*get_port)(struct sock *, short unsigned int);
1: + unsigned int inuse_idx;
1: + bool (*stream_memory_free)(const struct sock *, int);
1: + bool (*stream_memory_read)(const struct sock *);
1: + void (*enter_memory_pressure)(struct sock *);
1: + void (*leave_memory_pressure)(struct sock *);
1: + atomic_long_t *memory_allocated;
1: + struct percpu_counter *sockets_allocated;
1: + long unsigned int *memory_pressure;
1: + long int *sysctl_mem;
1: + int *sysctl_wmem;
1: + int *sysctl_rmem;
1: + u32 sysctl_wmem_offset;
1: + u32 sysctl_rmem_offset;
1: + int max_header;
1: + bool no_autobind;
1: + struct kmem_cache *slab;
1: + unsigned int obj_size;
1: + slab_flags_t slab_flags;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct percpu_counter *orphan_count;
1: + struct request_sock_ops *rsk_prot;
1: + struct timewait_sock_ops *twsk_prot;
1: + union {
1: + struct inet_hashinfo *hashinfo;
1: + struct udp_table *udp_table;
1: + struct raw_hashinfo *raw_hash;
1: + struct smc_hashinfo *smc_hash;
1: + } h;
1: + struct module *owner;
1: + char name[32];
1: + struct list_head node;
1: + int (*diag_destroy)(struct sock *, int);
1: +};
1: +
1: +struct request_sock;
1: +
1: +struct request_sock_ops {
1: + int family;
1: + unsigned int obj_size;
1: + struct kmem_cache *slab;
1: + char *slab_name;
1: + int (*rtx_syn_ack)(const struct sock *, struct request_sock *);
1: + void (*send_ack)(const struct sock *, struct sk_buff *, struct request_sock *);
1: + void (*send_reset)(const struct sock *, struct sk_buff *);
1: + void (*destructor)(struct request_sock *);
1: + void (*syn_ack_timeout)(const struct request_sock *);
1: +};
1: +
1: +struct timewait_sock_ops {
1: + struct kmem_cache *twsk_slab;
1: + char *twsk_slab_name;
1: + unsigned int twsk_obj_size;
1: + int (*twsk_unique)(struct sock *, struct sock *, void *);
1: + void (*twsk_destructor)(struct sock *);
1: +};
1: +
1: +struct saved_syn;
1: +
1: +struct request_sock {
1: + struct sock_common __req_common;
1: + struct request_sock *dl_next;
1: + u16 mss;
1: + u8 num_retrans;
1: + u8 syncookie: 1;
1: + u8 num_timeout: 7;
1: + u32 ts_recent;
1: + struct timer_list rsk_timer;
1: + const struct request_sock_ops *rsk_ops;
1: + struct sock *sk;
1: + struct saved_syn *saved_syn;
1: + u32 secid;
1: + u32 peer_secid;
1: +};
1: +
1: +struct saved_syn {
1: + u32 mac_hdrlen;
1: + u32 network_hdrlen;
1: + u32 tcp_hdrlen;
1: + u8 data[0];
1: +};
1: +
1: +enum tsq_enum {
1: + TSQ_THROTTLED = 0,
1: + TSQ_QUEUED = 1,
1: + TCP_TSQ_DEFERRED = 2,
1: + TCP_WRITE_TIMER_DEFERRED = 3,
1: + TCP_DELACK_TIMER_DEFERRED = 4,
1: + TCP_MTU_REDUCED_DEFERRED = 5,
1: +};
1: +
1: +struct ip6_sf_list {
1: + struct ip6_sf_list *sf_next;
1: + struct in6_addr sf_addr;
1: + long unsigned int sf_count[2];
1: + unsigned char sf_gsresp;
1: + unsigned char sf_oldin;
1: + unsigned char sf_crcount;
1: +};
1: +
1: +struct ifmcaddr6 {
1: + struct in6_addr mca_addr;
1: + struct inet6_dev *idev;
1: + struct ifmcaddr6 *next;
1: + struct ip6_sf_list *mca_sources;
1: + struct ip6_sf_list *mca_tomb;
1: + unsigned int mca_sfmode;
1: + unsigned char mca_crcount;
1: + long unsigned int mca_sfcount[2];
1: + struct timer_list mca_timer;
1: + unsigned int mca_flags;
1: + int mca_users;
1: + refcount_t mca_refcnt;
1: + spinlock_t mca_lock;
1: + long unsigned int mca_cstamp;
1: + long unsigned int mca_tstamp;
1: +};
1: +
1: +struct ifacaddr6 {
1: + struct in6_addr aca_addr;
1: + struct fib6_info *aca_rt;
1: + struct ifacaddr6 *aca_next;
1: + struct hlist_node aca_addr_lst;
1: + int aca_users;
1: + refcount_t aca_refcnt;
1: + long unsigned int aca_cstamp;
1: + long unsigned int aca_tstamp;
1: + struct callback_head rcu;
1: +};
1: +
1: +enum {
1: + __ND_OPT_PREFIX_INFO_END = 0,
1: + ND_OPT_SOURCE_LL_ADDR = 1,
1: + ND_OPT_TARGET_LL_ADDR = 2,
1: + ND_OPT_PREFIX_INFO = 3,
1: + ND_OPT_REDIRECT_HDR = 4,
1: + ND_OPT_MTU = 5,
1: + ND_OPT_NONCE = 14,
1: + __ND_OPT_ARRAY_MAX = 15,
1: + ND_OPT_ROUTE_INFO = 24,
1: + ND_OPT_RDNSS = 25,
1: + ND_OPT_DNSSL = 31,
1: + ND_OPT_6CO = 34,
1: + ND_OPT_CAPTIVE_PORTAL = 37,
1: + ND_OPT_PREF64 = 38,
1: + __ND_OPT_MAX = 39,
1: +};
1: +
1: +struct nd_opt_hdr {
1: + __u8 nd_opt_type;
1: + __u8 nd_opt_len;
1: +};
1: +
1: +struct ndisc_options {
1: + struct nd_opt_hdr *nd_opt_array[15];
1: + struct nd_opt_hdr *nd_opts_ri;
1: + struct nd_opt_hdr *nd_opts_ri_end;
1: + struct nd_opt_hdr *nd_useropts;
1: + struct nd_opt_hdr *nd_useropts_end;
1: + struct nd_opt_hdr *nd_802154_opt_array[3];
1: +};
1: +
1: +struct prefix_info {
1: + __u8 type;
1: + __u8 length;
1: + __u8 prefix_len;
1: + __u8 reserved: 6;
1: + __u8 autoconf: 1;
1: + __u8 onlink: 1;
1: + __be32 valid;
1: + __be32 prefered;
1: + __be32 reserved2;
1: + struct in6_addr prefix;
1: +};
1: +
1: +enum nfs_opnum4 {
1: + OP_ACCESS = 3,
1: + OP_CLOSE = 4,
1: + OP_COMMIT = 5,
1: + OP_CREATE = 6,
1: + OP_DELEGPURGE = 7,
1: + OP_DELEGRETURN = 8,
1: + OP_GETATTR = 9,
1: + OP_GETFH = 10,
1: + OP_LINK = 11,
1: + OP_LOCK = 12,
1: + OP_LOCKT = 13,
1: + OP_LOCKU = 14,
1: + OP_LOOKUP = 15,
1: + OP_LOOKUPP = 16,
1: + OP_NVERIFY = 17,
1: + OP_OPEN = 18,
1: + OP_OPENATTR = 19,
1: + OP_OPEN_CONFIRM = 20,
1: + OP_OPEN_DOWNGRADE = 21,
1: + OP_PUTFH = 22,
1: + OP_PUTPUBFH = 23,
1: + OP_PUTROOTFH = 24,
1: + OP_READ = 25,
1: + OP_READDIR = 26,
1: + OP_READLINK = 27,
1: + OP_REMOVE = 28,
1: + OP_RENAME = 29,
1: + OP_RENEW = 30,
1: + OP_RESTOREFH = 31,
1: + OP_SAVEFH = 32,
1: + OP_SECINFO = 33,
1: + OP_SETATTR = 34,
1: + OP_SETCLIENTID = 35,
1: + OP_SETCLIENTID_CONFIRM = 36,
1: + OP_VERIFY = 37,
1: + OP_WRITE = 38,
1: + OP_RELEASE_LOCKOWNER = 39,
1: + OP_BACKCHANNEL_CTL = 40,
1: + OP_BIND_CONN_TO_SESSION = 41,
1: + OP_EXCHANGE_ID = 42,
1: + OP_CREATE_SESSION = 43,
1: + OP_DESTROY_SESSION = 44,
1: + OP_FREE_STATEID = 45,
1: + OP_GET_DIR_DELEGATION = 46,
1: + OP_GETDEVICEINFO = 47,
1: + OP_GETDEVICELIST = 48,
1: + OP_LAYOUTCOMMIT = 49,
1: + OP_LAYOUTGET = 50,
1: + OP_LAYOUTRETURN = 51,
1: + OP_SECINFO_NO_NAME = 52,
1: + OP_SEQUENCE = 53,
1: + OP_SET_SSV = 54,
1: + OP_TEST_STATEID = 55,
1: + OP_WANT_DELEGATION = 56,
1: + OP_DESTROY_CLIENTID = 57,
1: + OP_RECLAIM_COMPLETE = 58,
1: + OP_ALLOCATE = 59,
1: + OP_COPY = 60,
1: + OP_COPY_NOTIFY = 61,
1: + OP_DEALLOCATE = 62,
1: + OP_IO_ADVISE = 63,
1: + OP_LAYOUTERROR = 64,
1: + OP_LAYOUTSTATS = 65,
1: + OP_OFFLOAD_CANCEL = 66,
1: + OP_OFFLOAD_STATUS = 67,
1: + OP_READ_PLUS = 68,
1: + OP_SEEK = 69,
1: + OP_WRITE_SAME = 70,
1: + OP_CLONE = 71,
1: + OP_GETXATTR = 72,
1: + OP_SETXATTR = 73,
1: + OP_LISTXATTRS = 74,
1: + OP_REMOVEXATTR = 75,
1: + OP_ILLEGAL = 10044,
1: +};
1: +
1: +enum {
1: + UNAME26 = 131072,
1: + ADDR_NO_RANDOMIZE = 262144,
1: + FDPIC_FUNCPTRS = 524288,
1: + MMAP_PAGE_ZERO = 1048576,
1: + ADDR_COMPAT_LAYOUT = 2097152,
1: + READ_IMPLIES_EXEC = 4194304,
1: + ADDR_LIMIT_32BIT = 8388608,
1: + SHORT_INODE = 16777216,
1: + WHOLE_SECONDS = 33554432,
1: + STICKY_TIMEOUTS = 67108864,
1: + ADDR_LIMIT_3GB = 134217728,
1: +};
1: +
1: +enum perf_hw_cache_id {
1: + PERF_COUNT_HW_CACHE_L1D = 0,
1: + PERF_COUNT_HW_CACHE_L1I = 1,
1: + PERF_COUNT_HW_CACHE_LL = 2,
1: + PERF_COUNT_HW_CACHE_DTLB = 3,
1: + PERF_COUNT_HW_CACHE_ITLB = 4,
1: + PERF_COUNT_HW_CACHE_BPU = 5,
1: + PERF_COUNT_HW_CACHE_NODE = 6,
1: + PERF_COUNT_HW_CACHE_MAX = 7,
1: +};
1: +
1: +enum perf_hw_cache_op_id {
1: + PERF_COUNT_HW_CACHE_OP_READ = 0,
1: + PERF_COUNT_HW_CACHE_OP_WRITE = 1,
1: + PERF_COUNT_HW_CACHE_OP_PREFETCH = 2,
1: + PERF_COUNT_HW_CACHE_OP_MAX = 3,
1: +};
1: +
1: +enum perf_hw_cache_op_result_id {
1: + PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0,
1: + PERF_COUNT_HW_CACHE_RESULT_MISS = 1,
1: + PERF_COUNT_HW_CACHE_RESULT_MAX = 2,
1: +};
1: +
1: +enum perf_branch_sample_type_shift {
1: + PERF_SAMPLE_BRANCH_USER_SHIFT = 0,
1: + PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 1,
1: + PERF_SAMPLE_BRANCH_HV_SHIFT = 2,
1: + PERF_SAMPLE_BRANCH_ANY_SHIFT = 3,
1: + PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 4,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 5,
1: + PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 6,
1: + PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 7,
1: + PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 8,
1: + PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 9,
1: + PERF_SAMPLE_BRANCH_COND_SHIFT = 10,
1: + PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 11,
1: + PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 12,
1: + PERF_SAMPLE_BRANCH_CALL_SHIFT = 13,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 14,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 15,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 16,
1: + PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 17,
1: + PERF_SAMPLE_BRANCH_MAX_SHIFT = 18,
1: +};
1: +
1: +enum {
1: + TSK_TRACE_FL_TRACE_BIT = 0,
1: + TSK_TRACE_FL_GRAPH_BIT = 1,
1: +};
1: +
1: +struct uuidcmp {
1: + const char *uuid;
1: + int len;
1: +};
1: +
1: +typedef __u64 __le64;
1: +
1: +struct minix_super_block {
1: + __u16 s_ninodes;
1: + __u16 s_nzones;
1: + __u16 s_imap_blocks;
1: + __u16 s_zmap_blocks;
1: + __u16 s_firstdatazone;
1: + __u16 s_log_zone_size;
1: + __u32 s_max_size;
1: + __u16 s_magic;
1: + __u16 s_state;
1: + __u32 s_zones;
1: +};
1: +
1: +struct romfs_super_block {
1: + __be32 word0;
1: + __be32 word1;
1: + __be32 size;
1: + __be32 checksum;
1: + char name[0];
1: +};
1: +
1: +struct cramfs_inode {
1: + __u32 mode: 16;
1: + __u32 uid: 16;
1: + __u32 size: 24;
1: + __u32 gid: 8;
1: + __u32 namelen: 6;
1: + __u32 offset: 26;
1: +};
1: +
1: +struct cramfs_info {
1: + __u32 crc;
1: + __u32 edition;
1: + __u32 blocks;
1: + __u32 files;
1: +};
1: +
1: +struct cramfs_super {
1: + __u32 magic;
1: + __u32 size;
1: + __u32 flags;
1: + __u32 future;
1: + __u8 signature[16];
1: + struct cramfs_info fsid;
1: + __u8 name[16];
1: + struct cramfs_inode root;
1: +};
1: +
1: +struct squashfs_super_block {
1: + __le32 s_magic;
1: + __le32 inodes;
1: + __le32 mkfs_time;
1: + __le32 block_size;
1: + __le32 fragments;
1: + __le16 compression;
1: + __le16 block_log;
1: + __le16 flags;
1: + __le16 no_ids;
1: + __le16 s_major;
1: + __le16 s_minor;
1: + __le64 root_inode;
1: + __le64 bytes_used;
1: + __le64 id_table_start;
1: + __le64 xattr_id_table_start;
1: + __le64 inode_table_start;
1: + __le64 directory_table_start;
1: + __le64 fragment_table_start;
1: + __le64 lookup_table_start;
1: +};
1: +
1: +typedef int (*decompress_fn)(unsigned char *, long int, long int (*)(void *, long unsigned int), long int (*)(void *, long unsigned int), unsigned char *, long int *, void (*)(char *));
1: +
1: +struct subprocess_info {
1: + struct work_struct work;
1: + struct completion *complete;
1: + const char *path;
1: + char **argv;
1: + char **envp;
1: + int wait;
1: + int retval;
1: + int (*init)(struct subprocess_info *, struct cred *);
1: + void (*cleanup)(struct subprocess_info *);
1: + void *data;
1: +};
1: +
1: +typedef phys_addr_t resource_size_t;
1: +
1: +struct resource {
1: + resource_size_t start;
1: + resource_size_t end;
1: + const char *name;
1: + long unsigned int flags;
1: + long unsigned int desc;
1: + struct resource *parent;
1: + struct resource *sibling;
1: + struct resource *child;
1: +};
1: +
1: +struct hash {
1: + int ino;
1: + int minor;
1: + int major;
1: + umode_t mode;
1: + struct hash *next;
1: + char name[4098];
1: +};
1: +
1: +struct dir_entry {
1: + struct list_head list;
1: + char *name;
1: + time64_t mtime;
1: +};
1: +
1: +enum state {
1: + Start = 0,
1: + Collect = 1,
1: + GotHeader = 2,
1: + SkipIt = 3,
1: + GotName = 4,
1: + CopyFile = 5,
1: + GotSymlink = 6,
1: + Reset = 7,
1: +};
1: +
1: +enum ucount_type {
1: + UCOUNT_USER_NAMESPACES = 0,
1: + UCOUNT_PID_NAMESPACES = 1,
1: + UCOUNT_UTS_NAMESPACES = 2,
1: + UCOUNT_IPC_NAMESPACES = 3,
1: + UCOUNT_NET_NAMESPACES = 4,
1: + UCOUNT_MNT_NAMESPACES = 5,
1: + UCOUNT_CGROUP_NAMESPACES = 6,
1: + UCOUNT_TIME_NAMESPACES = 7,
1: + UCOUNT_INOTIFY_INSTANCES = 8,
1: + UCOUNT_INOTIFY_WATCHES = 9,
1: + UCOUNT_COUNTS = 10,
1: +};
1: +
1: +enum flow_dissector_key_id {
1: + FLOW_DISSECTOR_KEY_CONTROL = 0,
1: + FLOW_DISSECTOR_KEY_BASIC = 1,
1: + FLOW_DISSECTOR_KEY_IPV4_ADDRS = 2,
1: + FLOW_DISSECTOR_KEY_IPV6_ADDRS = 3,
1: + FLOW_DISSECTOR_KEY_PORTS = 4,
1: + FLOW_DISSECTOR_KEY_PORTS_RANGE = 5,
1: + FLOW_DISSECTOR_KEY_ICMP = 6,
1: + FLOW_DISSECTOR_KEY_ETH_ADDRS = 7,
1: + FLOW_DISSECTOR_KEY_TIPC = 8,
1: + FLOW_DISSECTOR_KEY_ARP = 9,
1: + FLOW_DISSECTOR_KEY_VLAN = 10,
1: + FLOW_DISSECTOR_KEY_FLOW_LABEL = 11,
1: + FLOW_DISSECTOR_KEY_GRE_KEYID = 12,
1: + FLOW_DISSECTOR_KEY_MPLS_ENTROPY = 13,
1: + FLOW_DISSECTOR_KEY_ENC_KEYID = 14,
1: + FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS = 15,
1: + FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS = 16,
1: + FLOW_DISSECTOR_KEY_ENC_CONTROL = 17,
1: + FLOW_DISSECTOR_KEY_ENC_PORTS = 18,
1: + FLOW_DISSECTOR_KEY_MPLS = 19,
1: + FLOW_DISSECTOR_KEY_TCP = 20,
1: + FLOW_DISSECTOR_KEY_IP = 21,
1: + FLOW_DISSECTOR_KEY_CVLAN = 22,
1: + FLOW_DISSECTOR_KEY_ENC_IP = 23,
1: + FLOW_DISSECTOR_KEY_ENC_OPTS = 24,
1: + FLOW_DISSECTOR_KEY_META = 25,
1: + FLOW_DISSECTOR_KEY_CT = 26,
1: + FLOW_DISSECTOR_KEY_HASH = 27,
1: + FLOW_DISSECTOR_KEY_MAX = 28,
1: +};
1: +
1: +enum {
1: + IPSTATS_MIB_NUM = 0,
1: + IPSTATS_MIB_INPKTS = 1,
1: + IPSTATS_MIB_INOCTETS = 2,
1: + IPSTATS_MIB_INDELIVERS = 3,
1: + IPSTATS_MIB_OUTFORWDATAGRAMS = 4,
1: + IPSTATS_MIB_OUTPKTS = 5,
1: + IPSTATS_MIB_OUTOCTETS = 6,
1: + IPSTATS_MIB_INHDRERRORS = 7,
1: + IPSTATS_MIB_INTOOBIGERRORS = 8,
1: + IPSTATS_MIB_INNOROUTES = 9,
1: + IPSTATS_MIB_INADDRERRORS = 10,
1: + IPSTATS_MIB_INUNKNOWNPROTOS = 11,
1: + IPSTATS_MIB_INTRUNCATEDPKTS = 12,
1: + IPSTATS_MIB_INDISCARDS = 13,
1: + IPSTATS_MIB_OUTDISCARDS = 14,
1: + IPSTATS_MIB_OUTNOROUTES = 15,
1: + IPSTATS_MIB_REASMTIMEOUT = 16,
1: + IPSTATS_MIB_REASMREQDS = 17,
1: + IPSTATS_MIB_REASMOKS = 18,
1: + IPSTATS_MIB_REASMFAILS = 19,
1: + IPSTATS_MIB_FRAGOKS = 20,
1: + IPSTATS_MIB_FRAGFAILS = 21,
1: + IPSTATS_MIB_FRAGCREATES = 22,
1: + IPSTATS_MIB_INMCASTPKTS = 23,
1: + IPSTATS_MIB_OUTMCASTPKTS = 24,
1: + IPSTATS_MIB_INBCASTPKTS = 25,
1: + IPSTATS_MIB_OUTBCASTPKTS = 26,
1: + IPSTATS_MIB_INMCASTOCTETS = 27,
1: + IPSTATS_MIB_OUTMCASTOCTETS = 28,
1: + IPSTATS_MIB_INBCASTOCTETS = 29,
1: + IPSTATS_MIB_OUTBCASTOCTETS = 30,
1: + IPSTATS_MIB_CSUMERRORS = 31,
1: + IPSTATS_MIB_NOECTPKTS = 32,
1: + IPSTATS_MIB_ECT1PKTS = 33,
1: + IPSTATS_MIB_ECT0PKTS = 34,
1: + IPSTATS_MIB_CEPKTS = 35,
1: + IPSTATS_MIB_REASM_OVERLAPS = 36,
1: + __IPSTATS_MIB_MAX = 37,
1: +};
1: +
1: +enum {
1: + ICMP_MIB_NUM = 0,
1: + ICMP_MIB_INMSGS = 1,
1: + ICMP_MIB_INERRORS = 2,
1: + ICMP_MIB_INDESTUNREACHS = 3,
1: + ICMP_MIB_INTIMEEXCDS = 4,
1: + ICMP_MIB_INPARMPROBS = 5,
1: + ICMP_MIB_INSRCQUENCHS = 6,
1: + ICMP_MIB_INREDIRECTS = 7,
1: + ICMP_MIB_INECHOS = 8,
1: + ICMP_MIB_INECHOREPS = 9,
1: + ICMP_MIB_INTIMESTAMPS = 10,
1: + ICMP_MIB_INTIMESTAMPREPS = 11,
1: + ICMP_MIB_INADDRMASKS = 12,
1: + ICMP_MIB_INADDRMASKREPS = 13,
1: + ICMP_MIB_OUTMSGS = 14,
1: + ICMP_MIB_OUTERRORS = 15,
1: + ICMP_MIB_OUTDESTUNREACHS = 16,
1: + ICMP_MIB_OUTTIMEEXCDS = 17,
1: + ICMP_MIB_OUTPARMPROBS = 18,
1: + ICMP_MIB_OUTSRCQUENCHS = 19,
1: + ICMP_MIB_OUTREDIRECTS = 20,
1: + ICMP_MIB_OUTECHOS = 21,
1: + ICMP_MIB_OUTECHOREPS = 22,
1: + ICMP_MIB_OUTTIMESTAMPS = 23,
1: + ICMP_MIB_OUTTIMESTAMPREPS = 24,
1: + ICMP_MIB_OUTADDRMASKS = 25,
1: + ICMP_MIB_OUTADDRMASKREPS = 26,
1: + ICMP_MIB_CSUMERRORS = 27,
1: + __ICMP_MIB_MAX = 28,
1: +};
1: +
1: +enum {
1: + ICMP6_MIB_NUM = 0,
1: + ICMP6_MIB_INMSGS = 1,
1: + ICMP6_MIB_INERRORS = 2,
1: + ICMP6_MIB_OUTMSGS = 3,
1: + ICMP6_MIB_OUTERRORS = 4,
1: + ICMP6_MIB_CSUMERRORS = 5,
1: + __ICMP6_MIB_MAX = 6,
1: +};
1: +
1: +enum {
1: + TCP_MIB_NUM = 0,
1: + TCP_MIB_RTOALGORITHM = 1,
1: + TCP_MIB_RTOMIN = 2,
1: + TCP_MIB_RTOMAX = 3,
1: + TCP_MIB_MAXCONN = 4,
1: + TCP_MIB_ACTIVEOPENS = 5,
1: + TCP_MIB_PASSIVEOPENS = 6,
1: + TCP_MIB_ATTEMPTFAILS = 7,
1: + TCP_MIB_ESTABRESETS = 8,
1: + TCP_MIB_CURRESTAB = 9,
1: + TCP_MIB_INSEGS = 10,
1: + TCP_MIB_OUTSEGS = 11,
1: + TCP_MIB_RETRANSSEGS = 12,
1: + TCP_MIB_INERRS = 13,
1: + TCP_MIB_OUTRSTS = 14,
1: + TCP_MIB_CSUMERRORS = 15,
1: + __TCP_MIB_MAX = 16,
1: +};
1: +
1: +enum {
1: + UDP_MIB_NUM = 0,
1: + UDP_MIB_INDATAGRAMS = 1,
1: + UDP_MIB_NOPORTS = 2,
1: + UDP_MIB_INERRORS = 3,
1: + UDP_MIB_OUTDATAGRAMS = 4,
1: + UDP_MIB_RCVBUFERRORS = 5,
1: + UDP_MIB_SNDBUFERRORS = 6,
1: + UDP_MIB_CSUMERRORS = 7,
1: + UDP_MIB_IGNOREDMULTI = 8,
1: + __UDP_MIB_MAX = 9,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_NUM = 0,
1: + LINUX_MIB_SYNCOOKIESSENT = 1,
1: + LINUX_MIB_SYNCOOKIESRECV = 2,
1: + LINUX_MIB_SYNCOOKIESFAILED = 3,
1: + LINUX_MIB_EMBRYONICRSTS = 4,
1: + LINUX_MIB_PRUNECALLED = 5,
1: + LINUX_MIB_RCVPRUNED = 6,
1: + LINUX_MIB_OFOPRUNED = 7,
1: + LINUX_MIB_OUTOFWINDOWICMPS = 8,
1: + LINUX_MIB_LOCKDROPPEDICMPS = 9,
1: + LINUX_MIB_ARPFILTER = 10,
1: + LINUX_MIB_TIMEWAITED = 11,
1: + LINUX_MIB_TIMEWAITRECYCLED = 12,
1: + LINUX_MIB_TIMEWAITKILLED = 13,
1: + LINUX_MIB_PAWSACTIVEREJECTED = 14,
1: + LINUX_MIB_PAWSESTABREJECTED = 15,
1: + LINUX_MIB_DELAYEDACKS = 16,
1: + LINUX_MIB_DELAYEDACKLOCKED = 17,
1: + LINUX_MIB_DELAYEDACKLOST = 18,
1: + LINUX_MIB_LISTENOVERFLOWS = 19,
1: + LINUX_MIB_LISTENDROPS = 20,
1: + LINUX_MIB_TCPHPHITS = 21,
1: + LINUX_MIB_TCPPUREACKS = 22,
1: + LINUX_MIB_TCPHPACKS = 23,
1: + LINUX_MIB_TCPRENORECOVERY = 24,
1: + LINUX_MIB_TCPSACKRECOVERY = 25,
1: + LINUX_MIB_TCPSACKRENEGING = 26,
1: + LINUX_MIB_TCPSACKREORDER = 27,
1: + LINUX_MIB_TCPRENOREORDER = 28,
1: + LINUX_MIB_TCPTSREORDER = 29,
1: + LINUX_MIB_TCPFULLUNDO = 30,
1: + LINUX_MIB_TCPPARTIALUNDO = 31,
1: + LINUX_MIB_TCPDSACKUNDO = 32,
1: + LINUX_MIB_TCPLOSSUNDO = 33,
1: + LINUX_MIB_TCPLOSTRETRANSMIT = 34,
1: + LINUX_MIB_TCPRENOFAILURES = 35,
1: + LINUX_MIB_TCPSACKFAILURES = 36,
1: + LINUX_MIB_TCPLOSSFAILURES = 37,
1: + LINUX_MIB_TCPFASTRETRANS = 38,
1: + LINUX_MIB_TCPSLOWSTARTRETRANS = 39,
1: + LINUX_MIB_TCPTIMEOUTS = 40,
1: + LINUX_MIB_TCPLOSSPROBES = 41,
1: + LINUX_MIB_TCPLOSSPROBERECOVERY = 42,
1: + LINUX_MIB_TCPRENORECOVERYFAIL = 43,
1: + LINUX_MIB_TCPSACKRECOVERYFAIL = 44,
1: + LINUX_MIB_TCPRCVCOLLAPSED = 45,
1: + LINUX_MIB_TCPDSACKOLDSENT = 46,
1: + LINUX_MIB_TCPDSACKOFOSENT = 47,
1: + LINUX_MIB_TCPDSACKRECV = 48,
1: + LINUX_MIB_TCPDSACKOFORECV = 49,
1: + LINUX_MIB_TCPABORTONDATA = 50,
1: + LINUX_MIB_TCPABORTONCLOSE = 51,
1: + LINUX_MIB_TCPABORTONMEMORY = 52,
1: + LINUX_MIB_TCPABORTONTIMEOUT = 53,
1: + LINUX_MIB_TCPABORTONLINGER = 54,
1: + LINUX_MIB_TCPABORTFAILED = 55,
1: + LINUX_MIB_TCPMEMORYPRESSURES = 56,
1: + LINUX_MIB_TCPMEMORYPRESSURESCHRONO = 57,
1: + LINUX_MIB_TCPSACKDISCARD = 58,
1: + LINUX_MIB_TCPDSACKIGNOREDOLD = 59,
1: + LINUX_MIB_TCPDSACKIGNOREDNOUNDO = 60,
1: + LINUX_MIB_TCPSPURIOUSRTOS = 61,
1: + LINUX_MIB_TCPMD5NOTFOUND = 62,
1: + LINUX_MIB_TCPMD5UNEXPECTED = 63,
1: + LINUX_MIB_TCPMD5FAILURE = 64,
1: + LINUX_MIB_SACKSHIFTED = 65,
1: + LINUX_MIB_SACKMERGED = 66,
1: + LINUX_MIB_SACKSHIFTFALLBACK = 67,
1: + LINUX_MIB_TCPBACKLOGDROP = 68,
1: + LINUX_MIB_PFMEMALLOCDROP = 69,
1: + LINUX_MIB_TCPMINTTLDROP = 70,
1: + LINUX_MIB_TCPDEFERACCEPTDROP = 71,
1: + LINUX_MIB_IPRPFILTER = 72,
1: + LINUX_MIB_TCPTIMEWAITOVERFLOW = 73,
1: + LINUX_MIB_TCPREQQFULLDOCOOKIES = 74,
1: + LINUX_MIB_TCPREQQFULLDROP = 75,
1: + LINUX_MIB_TCPRETRANSFAIL = 76,
1: + LINUX_MIB_TCPRCVCOALESCE = 77,
1: + LINUX_MIB_TCPBACKLOGCOALESCE = 78,
1: + LINUX_MIB_TCPOFOQUEUE = 79,
1: + LINUX_MIB_TCPOFODROP = 80,
1: + LINUX_MIB_TCPOFOMERGE = 81,
1: + LINUX_MIB_TCPCHALLENGEACK = 82,
1: + LINUX_MIB_TCPSYNCHALLENGE = 83,
1: + LINUX_MIB_TCPFASTOPENACTIVE = 84,
1: + LINUX_MIB_TCPFASTOPENACTIVEFAIL = 85,
1: + LINUX_MIB_TCPFASTOPENPASSIVE = 86,
1: + LINUX_MIB_TCPFASTOPENPASSIVEFAIL = 87,
1: + LINUX_MIB_TCPFASTOPENLISTENOVERFLOW = 88,
1: + LINUX_MIB_TCPFASTOPENCOOKIEREQD = 89,
1: + LINUX_MIB_TCPFASTOPENBLACKHOLE = 90,
1: + LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES = 91,
1: + LINUX_MIB_BUSYPOLLRXPACKETS = 92,
1: + LINUX_MIB_TCPAUTOCORKING = 93,
1: + LINUX_MIB_TCPFROMZEROWINDOWADV = 94,
1: + LINUX_MIB_TCPTOZEROWINDOWADV = 95,
1: + LINUX_MIB_TCPWANTZEROWINDOWADV = 96,
1: + LINUX_MIB_TCPSYNRETRANS = 97,
1: + LINUX_MIB_TCPORIGDATASENT = 98,
1: + LINUX_MIB_TCPHYSTARTTRAINDETECT = 99,
1: + LINUX_MIB_TCPHYSTARTTRAINCWND = 100,
1: + LINUX_MIB_TCPHYSTARTDELAYDETECT = 101,
1: + LINUX_MIB_TCPHYSTARTDELAYCWND = 102,
1: + LINUX_MIB_TCPACKSKIPPEDSYNRECV = 103,
1: + LINUX_MIB_TCPACKSKIPPEDPAWS = 104,
1: + LINUX_MIB_TCPACKSKIPPEDSEQ = 105,
1: + LINUX_MIB_TCPACKSKIPPEDFINWAIT2 = 106,
1: + LINUX_MIB_TCPACKSKIPPEDTIMEWAIT = 107,
1: + LINUX_MIB_TCPACKSKIPPEDCHALLENGE = 108,
1: + LINUX_MIB_TCPWINPROBE = 109,
1: + LINUX_MIB_TCPKEEPALIVE = 110,
1: + LINUX_MIB_TCPMTUPFAIL = 111,
1: + LINUX_MIB_TCPMTUPSUCCESS = 112,
1: + LINUX_MIB_TCPDELIVERED = 113,
1: + LINUX_MIB_TCPDELIVEREDCE = 114,
1: + LINUX_MIB_TCPACKCOMPRESSED = 115,
1: + LINUX_MIB_TCPZEROWINDOWDROP = 116,
1: + LINUX_MIB_TCPRCVQDROP = 117,
1: + LINUX_MIB_TCPWQUEUETOOBIG = 118,
1: + LINUX_MIB_TCPFASTOPENPASSIVEALTKEY = 119,
1: + LINUX_MIB_TCPTIMEOUTREHASH = 120,
1: + LINUX_MIB_TCPDUPLICATEDATAREHASH = 121,
1: + LINUX_MIB_TCPDSACKRECVSEGS = 122,
1: + LINUX_MIB_TCPDSACKIGNOREDDUBIOUS = 123,
1: + __LINUX_MIB_MAX = 124,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_XFRMNUM = 0,
1: + LINUX_MIB_XFRMINERROR = 1,
1: + LINUX_MIB_XFRMINBUFFERERROR = 2,
1: + LINUX_MIB_XFRMINHDRERROR = 3,
1: + LINUX_MIB_XFRMINNOSTATES = 4,
1: + LINUX_MIB_XFRMINSTATEPROTOERROR = 5,
1: + LINUX_MIB_XFRMINSTATEMODEERROR = 6,
1: + LINUX_MIB_XFRMINSTATESEQERROR = 7,
1: + LINUX_MIB_XFRMINSTATEEXPIRED = 8,
1: + LINUX_MIB_XFRMINSTATEMISMATCH = 9,
1: + LINUX_MIB_XFRMINSTATEINVALID = 10,
1: + LINUX_MIB_XFRMINTMPLMISMATCH = 11,
1: + LINUX_MIB_XFRMINNOPOLS = 12,
1: + LINUX_MIB_XFRMINPOLBLOCK = 13,
1: + LINUX_MIB_XFRMINPOLERROR = 14,
1: + LINUX_MIB_XFRMOUTERROR = 15,
1: + LINUX_MIB_XFRMOUTBUNDLEGENERROR = 16,
1: + LINUX_MIB_XFRMOUTBUNDLECHECKERROR = 17,
1: + LINUX_MIB_XFRMOUTNOSTATES = 18,
1: + LINUX_MIB_XFRMOUTSTATEPROTOERROR = 19,
1: + LINUX_MIB_XFRMOUTSTATEMODEERROR = 20,
1: + LINUX_MIB_XFRMOUTSTATESEQERROR = 21,
1: + LINUX_MIB_XFRMOUTSTATEEXPIRED = 22,
1: + LINUX_MIB_XFRMOUTPOLBLOCK = 23,
1: + LINUX_MIB_XFRMOUTPOLDEAD = 24,
1: + LINUX_MIB_XFRMOUTPOLERROR = 25,
1: + LINUX_MIB_XFRMFWDHDRERROR = 26,
1: + LINUX_MIB_XFRMOUTSTATEINVALID = 27,
1: + LINUX_MIB_XFRMACQUIREERROR = 28,
1: + __LINUX_MIB_XFRMMAX = 29,
1: +};
1: +
1: +enum {
1: + LINUX_MIB_TLSNUM = 0,
1: + LINUX_MIB_TLSCURRTXSW = 1,
1: + LINUX_MIB_TLSCURRRXSW = 2,
1: + LINUX_MIB_TLSCURRTXDEVICE = 3,
1: + LINUX_MIB_TLSCURRRXDEVICE = 4,
1: + LINUX_MIB_TLSTXSW = 5,
1: + LINUX_MIB_TLSRXSW = 6,
1: + LINUX_MIB_TLSTXDEVICE = 7,
1: + LINUX_MIB_TLSRXDEVICE = 8,
1: + LINUX_MIB_TLSDECRYPTERROR = 9,
1: + LINUX_MIB_TLSRXDEVICERESYNC = 10,
1: + __LINUX_MIB_TLSMAX = 11,
1: +};
1: +
1: +enum nf_inet_hooks {
1: + NF_INET_PRE_ROUTING = 0,
1: + NF_INET_LOCAL_IN = 1,
1: + NF_INET_FORWARD = 2,
1: + NF_INET_LOCAL_OUT = 3,
1: + NF_INET_POST_ROUTING = 4,
1: + NF_INET_NUMHOOKS = 5,
1: + NF_INET_INGRESS = 5,
1: +};
1: +
1: +enum {
1: + NFPROTO_UNSPEC = 0,
1: + NFPROTO_INET = 1,
1: + NFPROTO_IPV4 = 2,
1: + NFPROTO_ARP = 3,
1: + NFPROTO_NETDEV = 5,
1: + NFPROTO_BRIDGE = 7,
1: + NFPROTO_IPV6 = 10,
1: + NFPROTO_DECNET = 12,
1: + NFPROTO_NUMPROTO = 13,
1: +};
1: +
1: +enum tcp_conntrack {
1: + TCP_CONNTRACK_NONE = 0,
1: + TCP_CONNTRACK_SYN_SENT = 1,
1: + TCP_CONNTRACK_SYN_RECV = 2,
1: + TCP_CONNTRACK_ESTABLISHED = 3,
1: + TCP_CONNTRACK_FIN_WAIT = 4,
1: + TCP_CONNTRACK_CLOSE_WAIT = 5,
1: + TCP_CONNTRACK_LAST_ACK = 6,
1: + TCP_CONNTRACK_TIME_WAIT = 7,
1: + TCP_CONNTRACK_CLOSE = 8,
1: + TCP_CONNTRACK_LISTEN = 9,
1: + TCP_CONNTRACK_MAX = 10,
1: + TCP_CONNTRACK_IGNORE = 11,
1: + TCP_CONNTRACK_RETRANS = 12,
1: + TCP_CONNTRACK_UNACK = 13,
1: + TCP_CONNTRACK_TIMEOUT_MAX = 14,
1: +};
1: +
1: +enum ct_dccp_states {
1: + CT_DCCP_NONE = 0,
1: + CT_DCCP_REQUEST = 1,
1: + CT_DCCP_RESPOND = 2,
1: + CT_DCCP_PARTOPEN = 3,
1: + CT_DCCP_OPEN = 4,
1: + CT_DCCP_CLOSEREQ = 5,
1: + CT_DCCP_CLOSING = 6,
1: + CT_DCCP_TIMEWAIT = 7,
1: + CT_DCCP_IGNORE = 8,
1: + CT_DCCP_INVALID = 9,
1: + __CT_DCCP_MAX = 10,
1: +};
1: +
1: +enum ip_conntrack_dir {
1: + IP_CT_DIR_ORIGINAL = 0,
1: + IP_CT_DIR_REPLY = 1,
1: + IP_CT_DIR_MAX = 2,
1: +};
1: +
1: +enum sctp_conntrack {
1: + SCTP_CONNTRACK_NONE = 0,
1: + SCTP_CONNTRACK_CLOSED = 1,
1: + SCTP_CONNTRACK_COOKIE_WAIT = 2,
1: + SCTP_CONNTRACK_COOKIE_ECHOED = 3,
1: + SCTP_CONNTRACK_ESTABLISHED = 4,
1: + SCTP_CONNTRACK_SHUTDOWN_SENT = 5,
1: + SCTP_CONNTRACK_SHUTDOWN_RECD = 6,
1: + SCTP_CONNTRACK_SHUTDOWN_ACK_SENT = 7,
1: + SCTP_CONNTRACK_HEARTBEAT_SENT = 8,
1: + SCTP_CONNTRACK_HEARTBEAT_ACKED = 9,
1: + SCTP_CONNTRACK_MAX = 10,
1: +};
1: +
1: +enum udp_conntrack {
1: + UDP_CT_UNREPLIED = 0,
1: + UDP_CT_REPLIED = 1,
1: + UDP_CT_MAX = 2,
1: +};
1: +
1: +enum gre_conntrack {
1: + GRE_CT_UNREPLIED = 0,
1: + GRE_CT_REPLIED = 1,
1: + GRE_CT_MAX = 2,
1: +};
1: +
1: +enum {
1: + XFRM_POLICY_IN = 0,
1: + XFRM_POLICY_OUT = 1,
1: + XFRM_POLICY_FWD = 2,
1: + XFRM_POLICY_MASK = 3,
1: + XFRM_POLICY_MAX = 3,
1: +};
1: +
1: +enum netns_bpf_attach_type {
1: + NETNS_BPF_INVALID = 4294967295,
1: + NETNS_BPF_FLOW_DISSECTOR = 0,
1: + NETNS_BPF_SK_LOOKUP = 1,
1: + MAX_NETNS_BPF_ATTACH_TYPE = 2,
1: +};
1: +
1: +enum skb_ext_id {
1: + SKB_EXT_BRIDGE_NF = 0,
1: + SKB_EXT_SEC_PATH = 1,
1: + TC_SKB_EXT = 2,
1: + SKB_EXT_MPTCP = 3,
1: + SKB_EXT_NUM = 4,
1: +};
1: +
1: +enum audit_ntp_type {
1: + AUDIT_NTP_OFFSET = 0,
1: + AUDIT_NTP_FREQ = 1,
1: + AUDIT_NTP_STATUS = 2,
1: + AUDIT_NTP_TAI = 3,
1: + AUDIT_NTP_TICK = 4,
1: + AUDIT_NTP_ADJUST = 5,
1: + AUDIT_NTP_NVALS = 6,
1: +};
1: +
1: +struct cpu_spec;
1: +
1: +typedef void (*cpu_setup_t)(long unsigned int, struct cpu_spec *);
1: +
1: +enum powerpc_pmc_type {
1: + PPC_PMC_DEFAULT = 0,
1: + PPC_PMC_IBM = 1,
1: + PPC_PMC_PA6T = 2,
1: + PPC_PMC_G4 = 3,
1: +};
1: +
1: +typedef void (*cpu_restore_t)();
1: +
1: +enum powerpc_oprofile_type {
1: + PPC_OPROFILE_INVALID = 0,
1: + PPC_OPROFILE_RS64 = 1,
1: + PPC_OPROFILE_POWER4 = 2,
1: + PPC_OPROFILE_G4 = 3,
1: + PPC_OPROFILE_FSL_EMB = 4,
1: + PPC_OPROFILE_CELL = 5,
1: + PPC_OPROFILE_PA6T = 6,
1: +};
1: +
1: +struct cpu_spec {
1: + unsigned int pvr_mask;
1: + unsigned int pvr_value;
1: + char *cpu_name;
1: + long unsigned int cpu_features;
1: + unsigned int cpu_user_features;
1: + unsigned int cpu_user_features2;
1: + unsigned int mmu_features;
1: + unsigned int icache_bsize;
1: + unsigned int dcache_bsize;
1: + void (*cpu_down_flush)();
1: + unsigned int num_pmcs;
1: + enum powerpc_pmc_type pmc_type;
1: + cpu_setup_t cpu_setup;
1: + cpu_restore_t cpu_restore;
1: + char *oprofile_cpu_type;
1: + enum powerpc_oprofile_type oprofile_type;
1: + long unsigned int oprofile_mmcra_sihv;
1: + long unsigned int oprofile_mmcra_sipr;
1: + long unsigned int oprofile_mmcra_clear;
1: + char *platform;
1: + int (*machine_check)(struct pt_regs *);
1: + long int (*machine_check_early)(struct pt_regs *);
1: +};
1: +
1: +struct static_key_true {
1: + struct static_key key;
1: +};
1: +
1: +typedef __kernel_long_t __kernel_off_t;
1: +
1: +typedef __kernel_off_t off_t;
1: +
1: +enum {
1: + FW_FEATURE_PSERIES_POSSIBLE = 3479175167,
1: + FW_FEATURE_PSERIES_ALWAYS = 0,
1: + FW_FEATURE_POWERNV_POSSIBLE = 268435456,
1: + FW_FEATURE_POWERNV_ALWAYS = 0,
1: + FW_FEATURE_PS3_POSSIBLE = 12582912,
1: + FW_FEATURE_PS3_ALWAYS = 12582912,
1: + FW_FEATURE_NATIVE_POSSIBLE = 0,
1: + FW_FEATURE_NATIVE_ALWAYS = 0,
1: + FW_FEATURE_POSSIBLE = 3747610623,
1: + FW_FEATURE_ALWAYS = 0,
1: +};
1: +
1: +enum {
1: + PER_LINUX = 0,
1: + PER_LINUX_32BIT = 8388608,
1: + PER_LINUX_FDPIC = 524288,
1: + PER_SVR4 = 68157441,
1: + PER_SVR3 = 83886082,
1: + PER_SCOSVR3 = 117440515,
1: + PER_OSR5 = 100663299,
1: + PER_WYSEV386 = 83886084,
1: + PER_ISCR4 = 67108869,
1: + PER_BSD = 6,
1: + PER_SUNOS = 67108870,
1: + PER_XENIX = 83886087,
1: + PER_LINUX32 = 8,
1: + PER_LINUX32_3GB = 134217736,
1: + PER_IRIX32 = 67108873,
1: + PER_IRIXN32 = 67108874,
1: + PER_IRIX64 = 67108875,
1: + PER_RISCOS = 12,
1: + PER_SOLARIS = 67108877,
1: + PER_UW7 = 68157454,
1: + PER_OSF4 = 15,
1: + PER_HPUX = 16,
1: + PER_MASK = 255,
1: +};
1: +
1: +enum {
1: + EI_ETYPE_NONE = 0,
1: + EI_ETYPE_NULL = 1,
1: + EI_ETYPE_ERRNO = 2,
1: + EI_ETYPE_ERRNO_NULL = 3,
1: + EI_ETYPE_TRUE = 4,
1: +};
1: +
1: +struct syscall_metadata {
1: + const char *name;
1: + int syscall_nr;
1: + int nb_args;
1: + const char **types;
1: + const char **args;
1: + struct list_head enter_fields;
1: + struct trace_event_call *enter_event;
1: + struct trace_event_call *exit_event;
1: +};
1: +
1: +struct kvm;
1: +
1: +struct kvmppc_vcore {
1: + int n_runnable;
1: + int num_threads;
1: + int entry_exit_map;
1: + int napping_threads;
1: + int first_vcpuid;
1: + u16 pcpu;
1: + u16 last_cpu;
1: + u8 vcore_state;
1: + u8 in_guest;
1: + struct kvm_vcpu *runnable_threads[8];
1: + struct list_head preempt_list;
1: + spinlock_t lock;
1: + struct rcuwait wait;
1: + spinlock_t stoltb_lock;
1: + u64 stolen_tb;
1: + u64 preempt_tb;
1: + struct kvm_vcpu *runner;
1: + struct kvm *kvm;
1: + u64 tb_offset;
1: + u64 tb_offset_applied;
1: + ulong lpcr;
1: + u32 arch_compat;
1: + ulong pcr;
1: + ulong dpdes;
1: + ulong vtb;
1: + ulong conferring_threads;
1: + unsigned int halt_poll_ns;
1: + atomic_t online_count;
1: +};
1: +
1: +struct preempt_ops;
1: +
1: +struct preempt_notifier {
1: + struct hlist_node link;
1: + struct preempt_ops *ops;
1: +};
1: +
1: +struct kvm_vcpu_stat {
1: + u64 sum_exits;
1: + u64 mmio_exits;
1: + u64 signal_exits;
1: + u64 light_exits;
1: + u64 itlb_real_miss_exits;
1: + u64 itlb_virt_miss_exits;
1: + u64 dtlb_real_miss_exits;
1: + u64 dtlb_virt_miss_exits;
1: + u64 syscall_exits;
1: + u64 isi_exits;
1: + u64 dsi_exits;
1: + u64 emulated_inst_exits;
1: + u64 dec_exits;
1: + u64 ext_intr_exits;
1: + u64 halt_poll_success_ns;
1: + u64 halt_poll_fail_ns;
1: + u64 halt_wait_ns;
1: + u64 halt_successful_poll;
1: + u64 halt_attempted_poll;
1: + u64 halt_successful_wait;
1: + u64 halt_poll_invalid;
1: + u64 halt_wakeup;
1: + u64 dbell_exits;
1: + u64 gdbell_exits;
1: + u64 ld;
1: + u64 st;
1: + u64 pf_storage;
1: + u64 pf_instruc;
1: + u64 sp_storage;
1: + u64 sp_instruc;
1: + u64 queue_intr;
1: + u64 ld_slow;
1: + u64 st_slow;
1: + u64 pthru_all;
1: + u64 pthru_host;
1: + u64 pthru_bad_aff;
1: +};
1: +
1: +typedef u64 gpa_t;
1: +
1: +struct kvm_mmio_fragment {
1: + gpa_t gpa;
1: + void *data;
1: + unsigned int len;
1: +};
1: +
1: +struct kvmppc_slb {
1: + u64 esid;
1: + u64 vsid;
1: + u64 orige;
1: + u64 origv;
1: + bool valid: 1;
1: + bool Ks: 1;
1: + bool Kp: 1;
1: + bool nx: 1;
1: + bool large: 1;
1: + bool tb: 1;
1: + bool class: 1;
1: + u8 base_page_size;
1: +};
1: +
1: +typedef long unsigned int gva_t;
1: +
1: +struct kvmppc_pte;
1: +
1: +struct kvmppc_mmu {
1: + void (*slbmte)(struct kvm_vcpu *, u64, u64);
1: + u64 (*slbmfee)(struct kvm_vcpu *, u64);
1: + u64 (*slbmfev)(struct kvm_vcpu *, u64);
1: + int (*slbfee)(struct kvm_vcpu *, gva_t, ulong *);
1: + void (*slbie)(struct kvm_vcpu *, u64);
1: + void (*slbia)(struct kvm_vcpu *);
1: + void (*mtsrin)(struct kvm_vcpu *, u32, ulong);
1: + u32 (*mfsrin)(struct kvm_vcpu *, u32);
1: + int (*xlate)(struct kvm_vcpu *, gva_t, struct kvmppc_pte *, bool, bool);
1: + void (*tlbie)(struct kvm_vcpu *, ulong, bool);
1: + int (*esid_to_vsid)(struct kvm_vcpu *, ulong, u64 *);
1: + u64 (*ea_to_vp)(struct kvm_vcpu *, gva_t, bool);
1: + bool (*is_dcbz32)(struct kvm_vcpu *);
1: +};
1: +
1: +enum MCE_Version {
1: + MCE_V1 = 1,
1: +};
1: +
1: +enum MCE_Severity {
1: + MCE_SEV_NO_ERROR = 0,
1: + MCE_SEV_WARNING = 1,
1: + MCE_SEV_SEVERE = 2,
1: + MCE_SEV_FATAL = 3,
1: +};
1: +
1: +enum MCE_Initiator {
1: + MCE_INITIATOR_UNKNOWN = 0,
1: + MCE_INITIATOR_CPU = 1,
1: + MCE_INITIATOR_PCI = 2,
1: + MCE_INITIATOR_ISA = 3,
1: + MCE_INITIATOR_MEMORY = 4,
1: + MCE_INITIATOR_POWERMGM = 5,
1: +};
1: +
1: +enum MCE_ErrorType {
1: + MCE_ERROR_TYPE_UNKNOWN = 0,
1: + MCE_ERROR_TYPE_UE = 1,
1: + MCE_ERROR_TYPE_SLB = 2,
1: + MCE_ERROR_TYPE_ERAT = 3,
1: + MCE_ERROR_TYPE_TLB = 4,
1: + MCE_ERROR_TYPE_USER = 5,
1: + MCE_ERROR_TYPE_RA = 6,
1: + MCE_ERROR_TYPE_LINK = 7,
1: + MCE_ERROR_TYPE_DCACHE = 8,
1: + MCE_ERROR_TYPE_ICACHE = 9,
1: +};
1: +
1: +enum MCE_ErrorClass {
1: + MCE_ECLASS_UNKNOWN = 0,
1: + MCE_ECLASS_HARDWARE = 1,
1: + MCE_ECLASS_HARD_INDETERMINATE = 2,
1: + MCE_ECLASS_SOFTWARE = 3,
1: + MCE_ECLASS_SOFT_INDETERMINATE = 4,
1: +};
1: +
1: +enum MCE_Disposition {
1: + MCE_DISPOSITION_RECOVERED = 0,
1: + MCE_DISPOSITION_NOT_RECOVERED = 1,
1: +};
1: +
1: +enum MCE_UeErrorType {
1: + MCE_UE_ERROR_INDETERMINATE = 0,
1: + MCE_UE_ERROR_IFETCH = 1,
1: + MCE_UE_ERROR_PAGE_TABLE_WALK_IFETCH = 2,
1: + MCE_UE_ERROR_LOAD_STORE = 3,
1: + MCE_UE_ERROR_PAGE_TABLE_WALK_LOAD_STORE = 4,
1: +};
1: +
1: +enum MCE_SlbErrorType {
1: + MCE_SLB_ERROR_INDETERMINATE = 0,
1: + MCE_SLB_ERROR_PARITY = 1,
1: + MCE_SLB_ERROR_MULTIHIT = 2,
1: +};
1: +
1: +enum MCE_EratErrorType {
1: + MCE_ERAT_ERROR_INDETERMINATE = 0,
1: + MCE_ERAT_ERROR_PARITY = 1,
1: + MCE_ERAT_ERROR_MULTIHIT = 2,
1: +};
1: +
1: +enum MCE_TlbErrorType {
1: + MCE_TLB_ERROR_INDETERMINATE = 0,
1: + MCE_TLB_ERROR_PARITY = 1,
1: + MCE_TLB_ERROR_MULTIHIT = 2,
1: +};
1: +
1: +enum MCE_UserErrorType {
1: + MCE_USER_ERROR_INDETERMINATE = 0,
1: + MCE_USER_ERROR_TLBIE = 1,
1: + MCE_USER_ERROR_SCV = 2,
1: +};
1: +
1: +enum MCE_RaErrorType {
1: + MCE_RA_ERROR_INDETERMINATE = 0,
1: + MCE_RA_ERROR_IFETCH = 1,
1: + MCE_RA_ERROR_IFETCH_FOREIGN = 2,
1: + MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH = 3,
1: + MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH_FOREIGN = 4,
1: + MCE_RA_ERROR_LOAD = 5,
1: + MCE_RA_ERROR_STORE = 6,
1: + MCE_RA_ERROR_PAGE_TABLE_WALK_LOAD_STORE = 7,
1: + MCE_RA_ERROR_PAGE_TABLE_WALK_LOAD_STORE_FOREIGN = 8,
1: + MCE_RA_ERROR_LOAD_STORE_FOREIGN = 9,
1: +};
1: +
1: +enum MCE_LinkErrorType {
1: + MCE_LINK_ERROR_INDETERMINATE = 0,
1: + MCE_LINK_ERROR_IFETCH_TIMEOUT = 1,
1: + MCE_LINK_ERROR_PAGE_TABLE_WALK_IFETCH_TIMEOUT = 2,
1: + MCE_LINK_ERROR_LOAD_TIMEOUT = 3,
1: + MCE_LINK_ERROR_STORE_TIMEOUT = 4,
1: + MCE_LINK_ERROR_PAGE_TABLE_WALK_LOAD_STORE_TIMEOUT = 5,
1: +};
1: +
1: +struct machine_check_event {
1: + enum MCE_Version version: 8;
1: + u8 in_use;
1: + enum MCE_Severity severity: 8;
1: + enum MCE_Initiator initiator: 8;
1: + enum MCE_ErrorType error_type: 8;
1: + enum MCE_ErrorClass error_class: 8;
1: + enum MCE_Disposition disposition: 8;
1: + bool sync_error;
1: + u16 cpu;
1: + u64 gpr3;
1: + u64 srr0;
1: + u64 srr1;
1: + union {
1: + struct {
1: + enum MCE_UeErrorType ue_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 physical_address_provided;
1: + u8 ignore_event;
1: + u8 reserved_1[4];
1: + u64 effective_address;
1: + u64 physical_address;
1: + u8 reserved_2[8];
1: + } ue_error;
1: + struct {
1: + enum MCE_SlbErrorType slb_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } slb_error;
1: + struct {
1: + enum MCE_EratErrorType erat_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } erat_error;
1: + struct {
1: + enum MCE_TlbErrorType tlb_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } tlb_error;
1: + struct {
1: + enum MCE_UserErrorType user_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } user_error;
1: + struct {
1: + enum MCE_RaErrorType ra_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } ra_error;
1: + struct {
1: + enum MCE_LinkErrorType link_error_type: 8;
1: + u8 effective_address_provided;
1: + u8 reserved_1[6];
1: + u64 effective_address;
1: + u8 reserved_2[16];
1: + } link_error;
1: + } u;
1: +};
1: +
1: +struct openpic;
1: +
1: +union xive_tma_w01 {
1: + struct {
1: + u8 nsr;
1: + u8 cppr;
1: + u8 ipb;
1: + u8 lsmfb;
1: + u8 ack;
1: + u8 inc;
1: + u8 age;
1: + u8 pipr;
1: + };
1: + __be64 w01;
1: +};
1: +
1: +struct kvm_vcpu_arch_shared {
1: + __u64 scratch1;
1: + __u64 scratch2;
1: + __u64 scratch3;
1: + __u64 critical;
1: + __u64 sprg0;
1: + __u64 sprg1;
1: + __u64 sprg2;
1: + __u64 sprg3;
1: + __u64 srr0;
1: + __u64 srr1;
1: + __u64 dar;
1: + __u64 msr;
1: + __u32 dsisr;
1: + __u32 int_pending;
1: + __u32 sr[16];
1: + __u32 mas0;
1: + __u32 mas1;
1: + __u64 mas7_3;
1: + __u64 mas2;
1: + __u32 mas4;
1: + __u32 mas6;
1: + __u32 esr;
1: + __u32 pir;
1: + __u64 sprg4;
1: + __u64 sprg5;
1: + __u64 sprg6;
1: + __u64 sprg7;
1: +};
1: +
1: +struct mmio_hpte_cache_entry {
1: + long unsigned int hpte_v;
1: + long unsigned int hpte_r;
1: + long unsigned int rpte;
1: + long unsigned int pte_index;
1: + long unsigned int eaddr;
1: + long unsigned int slb_v;
1: + long int mmio_update;
1: + unsigned int slb_base_pshift;
1: +};
1: +
1: +struct mmio_hpte_cache {
1: + struct mmio_hpte_cache_entry entry[4];
1: + unsigned int index;
1: +};
1: +
1: +struct kvmppc_vpa {
1: + long unsigned int gpa;
1: + void *pinned_addr;
1: + void *pinned_end;
1: + long unsigned int next_gpa;
1: + long unsigned int len;
1: + u8 update_pending;
1: + bool dirty;
1: +};
1: +
1: +struct kvmppc_vcpu_book3s;
1: +
1: +struct kvmppc_icp;
1: +
1: +struct kvmppc_xive_vcpu;
1: +
1: +struct kvm_nested_guest;
1: +
1: +struct kvm_vcpu_arch {
1: + ulong host_stack;
1: + u32 host_pid;
1: + struct kvmppc_slb slb[64];
1: + int slb_max;
1: + int slb_nr;
1: + struct kvmppc_mmu mmu;
1: + struct kvmppc_vcpu_book3s *book3s;
1: + struct pt_regs regs;
1: + long: 64;
1: + struct thread_fp_state fp;
1: + struct thread_vr_state vr;
1: + u32 qpr[32];
1: + ulong tar;
1: + ulong hflags;
1: + ulong guest_owned_ext;
1: + ulong purr;
1: + ulong spurr;
1: + ulong ic;
1: + ulong dscr;
1: + ulong amr;
1: + ulong uamor;
1: + ulong iamr;
1: + u32 ctrl;
1: + u32 dabrx;
1: + ulong dabr;
1: + ulong dawr;
1: + ulong dawrx;
1: + ulong ciabr;
1: + ulong cfar;
1: + ulong ppr;
1: + u32 pspb;
1: + ulong fscr;
1: + ulong shadow_fscr;
1: + ulong ebbhr;
1: + ulong ebbrr;
1: + ulong bescr;
1: + ulong csigr;
1: + ulong tacr;
1: + ulong tcscr;
1: + ulong acop;
1: + ulong wort;
1: + ulong tid;
1: + ulong psscr;
1: + ulong hfscr;
1: + ulong shadow_srr1;
1: + u32 vrsave;
1: + u32 mmucr;
1: + ulong shadow_msr;
1: + ulong csrr0;
1: + ulong csrr1;
1: + ulong dsrr0;
1: + ulong dsrr1;
1: + ulong mcsrr0;
1: + ulong mcsrr1;
1: + ulong mcsr;
1: + ulong dec;
1: + u64 entry_tb;
1: + u64 entry_vtb;
1: + u64 entry_ic;
1: + u32 tcr;
1: + ulong tsr;
1: + u32 ivor[64];
1: + ulong ivpr;
1: + u32 pvr;
1: + u32 shadow_pid;
1: + u32 shadow_pid1;
1: + u32 pid;
1: + u32 swap_pid;
1: + u32 ccr0;
1: + u32 ccr1;
1: + u32 dbsr;
1: + u64 mmcr[4];
1: + u64 mmcra;
1: + u64 mmcrs;
1: + u32 pmc[8];
1: + u32 spmc[2];
1: + u64 siar;
1: + u64 sdar;
1: + u64 sier[3];
1: + u64 tfhar;
1: + u64 texasr;
1: + u64 tfiar;
1: + u64 orig_texasr;
1: + u32 cr_tm;
1: + u64 xer_tm;
1: + u64 lr_tm;
1: + u64 ctr_tm;
1: + u64 amr_tm;
1: + u64 ppr_tm;
1: + u64 dscr_tm;
1: + u64 tar_tm;
1: + ulong gpr_tm[32];
1: + struct thread_fp_state fp_tm;
1: + struct thread_vr_state vr_tm;
1: + u32 vrsave_tm;
1: + ulong fault_dar;
1: + u32 fault_dsisr;
1: + long unsigned int intr_msr;
1: + ulong fault_gpa;
1: + gpa_t paddr_accessed;
1: + gva_t vaddr_accessed;
1: + pgd_t *pgdir;
1: + u16 io_gpr;
1: + u8 mmio_host_swabbed;
1: + u8 mmio_sign_extend;
1: + u8 mmio_sp64_extend;
1: + u8 mmio_vsx_copy_nums;
1: + u8 mmio_vsx_offset;
1: + u8 mmio_vmx_copy_nums;
1: + u8 mmio_vmx_offset;
1: + u8 mmio_copy_type;
1: + u8 osi_needed;
1: + u8 osi_enabled;
1: + u8 papr_enabled;
1: + u8 watchdog_enabled;
1: + u8 sane;
1: + u8 cpu_type;
1: + u8 hcall_needed;
1: + u8 epr_flags;
1: + u8 epr_needed;
1: + u8 external_oneshot;
1: + u32 cpr0_cfgaddr;
1: + struct hrtimer dec_timer;
1: + u64 dec_jiffies;
1: + u64 dec_expires;
1: + long unsigned int pending_exceptions;
1: + u8 ceded;
1: + u8 prodded;
1: + u8 doorbell_request;
1: + u8 irq_pending;
1: + u32 last_inst;
1: + struct rcuwait *waitp;
1: + struct kvmppc_vcore *vcore;
1: + int ret;
1: + int trap;
1: + int state;
1: + int ptid;
1: + int thread_cpu;
1: + int prev_cpu;
1: + bool timer_running;
1: + wait_queue_head_t cpu_run;
1: + struct machine_check_event mce_evt;
1: + struct kvm_vcpu_arch_shared *shared;
1: + bool shared_big_endian;
1: + long unsigned int magic_page_pa;
1: + long unsigned int magic_page_ea;
1: + bool disable_kernel_nx;
1: + int irq_type;
1: + int irq_cpu_id;
1: + struct openpic *mpic;
1: + struct kvmppc_icp *icp;
1: + struct kvmppc_xive_vcpu *xive_vcpu;
1: + __be32 xive_cam_word;
1: + u8 xive_pushed;
1: + u8 xive_esc_on;
1: + union xive_tma_w01 xive_saved_state;
1: + u64 xive_esc_raddr;
1: + u64 xive_esc_vaddr;
1: + struct kvm_vcpu_arch_shared shregs;
1: + struct mmio_hpte_cache mmio_cache;
1: + long unsigned int pgfault_addr;
1: + long int pgfault_index;
1: + long unsigned int pgfault_hpte[2];
1: + struct mmio_hpte_cache_entry *pgfault_cache;
1: + struct task_struct *run_task;
1: + spinlock_t vpa_update_lock;
1: + struct kvmppc_vpa vpa;
1: + struct kvmppc_vpa dtl;
1: + struct dtl_entry *dtl_ptr;
1: + long unsigned int dtl_index;
1: + u64 stolen_logged;
1: + struct kvmppc_vpa slb_shadow;
1: + spinlock_t tbacct_lock;
1: + u64 busy_stolen;
1: + u64 busy_preempt;
1: + u32 emul_inst;
1: + u32 online;
1: + struct kvm_nested_guest *nested;
1: + u32 nested_vcpu_id;
1: + gpa_t nested_io_gpr;
1: +};
1: +
1: +struct kvm_run;
1: +
1: +struct kvm_vcpu {
1: + struct kvm *kvm;
1: + struct preempt_notifier preempt_notifier;
1: + int cpu;
1: + int vcpu_id;
1: + int vcpu_idx;
1: + int srcu_idx;
1: + int mode;
1: + u64 requests;
1: + long unsigned int guest_debug;
1: + int pre_pcpu;
1: + struct list_head blocked_vcpu_list;
1: + struct mutex mutex;
1: + struct kvm_run *run;
1: + struct rcuwait wait;
1: + struct pid *pid;
1: + int sigset_active;
1: + sigset_t sigset;
1: + struct kvm_vcpu_stat stat;
1: + unsigned int halt_poll_ns;
1: + bool valid_wakeup;
1: + int mmio_needed;
1: + int mmio_read_completed;
1: + int mmio_is_write;
1: + int mmio_cur_fragment;
1: + int mmio_nr_fragments;
1: + struct kvm_mmio_fragment mmio_fragments[2];
1: + bool preempted;
1: + bool ready;
1: + struct kvm_vcpu_arch arch;
1: +};
1: +
1: +struct preempt_ops {
1: + void (*sched_in)(struct preempt_notifier *, int);
1: + void (*sched_out)(struct preempt_notifier *, struct task_struct *);
1: +};
1: +
1: +typedef int pci_power_t;
1: +
1: +struct pci_slot;
1: +
1: +struct aer_stats;
1: +
1: +struct pci_driver;
1: +
1: +struct pcie_link_state;
1: +
1: +struct pci_vpd;
1: +
1: +struct pci_sriov;
1: +
1: +struct pci_dev {
1: + struct list_head bus_list;
1: + struct pci_bus *bus;
1: + struct pci_bus *subordinate;
1: + void *sysdata;
1: + struct proc_dir_entry *procent;
1: + struct pci_slot *slot;
1: + unsigned int devfn;
1: + short unsigned int vendor;
1: + short unsigned int device;
1: + short unsigned int subsystem_vendor;
1: + short unsigned int subsystem_device;
1: + unsigned int class;
1: + u8 revision;
1: + u8 hdr_type;
1: + u16 aer_cap;
1: + struct aer_stats *aer_stats;
1: + u8 pcie_cap;
1: + u8 msi_cap;
1: + u8 msix_cap;
1: + u8 pcie_mpss: 3;
1: + u8 rom_base_reg;
1: + u8 pin;
1: + u16 pcie_flags_reg;
1: + long unsigned int *dma_alias_mask;
1: + struct pci_driver *driver;
1: + u64 dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + pci_power_t current_state;
1: + unsigned int imm_ready: 1;
1: + u8 pm_cap;
1: + unsigned int pme_support: 5;
1: + unsigned int pme_poll: 1;
1: + unsigned int d1_support: 1;
1: + unsigned int d2_support: 1;
1: + unsigned int no_d1d2: 1;
1: + unsigned int no_d3cold: 1;
1: + unsigned int bridge_d3: 1;
1: + unsigned int d3cold_allowed: 1;
1: + unsigned int mmio_always_on: 1;
1: + unsigned int wakeup_prepared: 1;
1: + unsigned int runtime_d3cold: 1;
1: + unsigned int skip_bus_pm: 1;
1: + unsigned int ignore_hotplug: 1;
1: + unsigned int hotplug_user_indicators: 1;
1: + unsigned int clear_retrain_link: 1;
1: + unsigned int d3hot_delay;
1: + unsigned int d3cold_delay;
1: + struct pcie_link_state *link_state;
1: + unsigned int ltr_path: 1;
1: + int l1ss;
1: + unsigned int eetlp_prefix_path: 1;
1: + pci_channel_state_t error_state;
1: + struct device dev;
1: + int cfg_size;
1: + unsigned int irq;
1: + struct resource resource[17];
1: + bool match_driver;
1: + unsigned int transparent: 1;
1: + unsigned int io_window: 1;
1: + unsigned int pref_window: 1;
1: + unsigned int pref_64_window: 1;
1: + unsigned int multifunction: 1;
1: + unsigned int is_busmaster: 1;
1: + unsigned int no_msi: 1;
1: + unsigned int no_64bit_msi: 1;
1: + unsigned int block_cfg_access: 1;
1: + unsigned int broken_parity_status: 1;
1: + unsigned int irq_reroute_variant: 2;
1: + unsigned int msi_enabled: 1;
1: + unsigned int msix_enabled: 1;
1: + unsigned int ari_enabled: 1;
1: + unsigned int ats_enabled: 1;
1: + unsigned int pasid_enabled: 1;
1: + unsigned int pri_enabled: 1;
1: + unsigned int is_managed: 1;
1: + unsigned int needs_freset: 1;
1: + unsigned int state_saved: 1;
1: + unsigned int is_physfn: 1;
1: + unsigned int is_virtfn: 1;
1: + unsigned int reset_fn: 1;
1: + unsigned int is_hotplug_bridge: 1;
1: + unsigned int shpc_managed: 1;
1: + unsigned int is_thunderbolt: 1;
1: + unsigned int untrusted: 1;
1: + unsigned int external_facing: 1;
1: + unsigned int broken_intx_masking: 1;
1: + unsigned int io_window_1k: 1;
1: + unsigned int irq_managed: 1;
1: + unsigned int non_compliant_bars: 1;
1: + unsigned int is_probed: 1;
1: + unsigned int link_active_reporting: 1;
1: + unsigned int no_vf_scan: 1;
1: + unsigned int no_command_memory: 1;
1: + pci_dev_flags_t dev_flags;
1: + atomic_t enable_cnt;
1: + u32 saved_config_space[16];
1: + struct hlist_head saved_cap_space;
1: + struct bin_attribute *rom_attr;
1: + int rom_attr_enabled;
1: + struct bin_attribute *res_attr[17];
1: + struct bin_attribute *res_attr_wc[17];
1: + unsigned int broken_cmd_compl: 1;
1: + unsigned int ptm_root: 1;
1: + unsigned int ptm_enabled: 1;
1: + u8 ptm_granularity;
1: + const struct attribute_group **msi_irq_groups;
1: + struct pci_vpd *vpd;
1: + u16 dpc_cap;
1: + unsigned int dpc_rp_extensions: 1;
1: + u8 dpc_rp_log_size;
1: + union {
1: + struct pci_sriov *sriov;
1: + struct pci_dev *physfn;
1: + };
1: + u16 ats_cap;
1: + u8 ats_stu;
1: + u16 pri_cap;
1: + u32 pri_reqs_alloc;
1: + unsigned int pasid_required: 1;
1: + u16 pasid_cap;
1: + u16 pasid_features;
1: + u16 acs_cap;
1: + phys_addr_t rom;
1: + size_t romlen;
1: + char *driver_override;
1: + long unsigned int priv_flags;
1: +};
1: +
1: +struct iommu_table_group;
1: +
1: +struct pci_dn {
1: + int flags;
1: + int busno;
1: + int devfn;
1: + int vendor_id;
1: + int device_id;
1: + int class_code;
1: + struct pci_dn *parent;
1: + struct pci_controller *phb;
1: + struct iommu_table_group *table_group;
1: + int pci_ext_config_space;
1: + struct eeh_dev *edev;
1: + unsigned int pe_number;
1: + u16 vfs_expanded;
1: + u16 num_vfs;
1: + unsigned int *pe_num_map;
1: + bool m64_single_mode;
1: + int (*m64_map)[6];
1: + int last_allow_rc;
1: + int mps;
1: + struct list_head child_list;
1: + struct list_head list;
1: + struct resource holes[6];
1: +};
1: +
1: +struct pci_controller_ops {
1: + void (*dma_dev_setup)(struct pci_dev *);
1: + void (*dma_bus_setup)(struct pci_bus *);
1: + bool (*iommu_bypass_supported)(struct pci_dev *, u64);
1: + int (*probe_mode)(struct pci_bus *);
1: + bool (*enable_device_hook)(struct pci_dev *);
1: + void (*disable_device)(struct pci_dev *);
1: + void (*release_device)(struct pci_dev *);
1: + resource_size_t (*window_alignment)(struct pci_bus *, long unsigned int);
1: + void (*setup_bridge)(struct pci_bus *, long unsigned int);
1: + void (*reset_secondary_bus)(struct pci_dev *);
1: + int (*setup_msi_irqs)(struct pci_dev *, int, int);
1: + void (*teardown_msi_irqs)(struct pci_dev *);
1: + void (*shutdown)(struct pci_controller *);
1: +};
1: +
1: +struct pci_ops;
1: +
1: +struct npu;
1: +
1: +struct pci_controller {
1: + struct pci_bus *bus;
1: + char is_dynamic;
1: + int node;
1: + struct device_node *dn;
1: + struct list_head list_node;
1: + struct device *parent;
1: + int first_busno;
1: + int last_busno;
1: + int self_busno;
1: + struct resource busn;
1: + void *io_base_virt;
1: + void *io_base_alloc;
1: + resource_size_t io_base_phys;
1: + resource_size_t pci_io_size;
1: + resource_size_t isa_mem_phys;
1: + resource_size_t isa_mem_size;
1: + struct pci_controller_ops controller_ops;
1: + struct pci_ops *ops;
1: + unsigned int *cfg_addr;
1: + void *cfg_data;
1: + u32 indirect_type;
1: + struct resource io_resource;
1: + struct resource mem_resources[3];
1: + resource_size_t mem_offset[3];
1: + int global_number;
1: + resource_size_t dma_window_base_cur;
1: + resource_size_t dma_window_size;
1: + long unsigned int buid;
1: + struct pci_dn *pci_data;
1: + void *private_data;
1: + struct npu *npu;
1: +};
1: +
1: +struct msi_controller;
1: +
1: +struct pci_bus {
1: + struct list_head node;
1: + struct pci_bus *parent;
1: + struct list_head children;
1: + struct list_head devices;
1: + struct pci_dev *self;
1: + struct list_head slots;
1: + struct resource *resource[4];
1: + struct list_head resources;
1: + struct resource busn_res;
1: + struct pci_ops *ops;
1: + struct msi_controller *msi;
1: + void *sysdata;
1: + struct proc_dir_entry *procdir;
1: + unsigned char number;
1: + unsigned char primary;
1: + unsigned char max_bus_speed;
1: + unsigned char cur_bus_speed;
1: + char name[48];
1: + short unsigned int bridge_ctl;
1: + pci_bus_flags_t bus_flags;
1: + struct device *bridge;
1: + struct device dev;
1: + struct bin_attribute *legacy_io;
1: + struct bin_attribute *legacy_mem;
1: + unsigned int is_added: 1;
1: +};
1: +
1: +struct pci_device_id {
1: + __u32 vendor;
1: + __u32 device;
1: + __u32 subvendor;
1: + __u32 subdevice;
1: + __u32 class;
1: + __u32 class_mask;
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +struct msi_msg {
1: + u32 address_lo;
1: + u32 address_hi;
1: + u32 data;
1: +};
1: +
1: +struct platform_msi_priv_data;
1: +
1: +struct platform_msi_desc {
1: + struct platform_msi_priv_data *msi_priv_data;
1: + u16 msi_index;
1: +};
1: +
1: +struct fsl_mc_msi_desc {
1: + u16 msi_index;
1: +};
1: +
1: +struct ti_sci_inta_msi_desc {
1: + u16 dev_index;
1: +};
1: +
1: +struct irq_affinity_desc;
1: +
1: +struct msi_desc {
1: + struct list_head list;
1: + unsigned int irq;
1: + unsigned int nvec_used;
1: + struct device *dev;
1: + struct msi_msg msg;
1: + struct irq_affinity_desc *affinity;
1: + void (*write_msi_msg)(struct msi_desc *, void *);
1: + void *write_msi_msg_data;
1: + union {
1: + struct {
1: + u32 masked;
1: + struct {
1: + u8 is_msix: 1;
1: + u8 multiple: 3;
1: + u8 multi_cap: 3;
1: + u8 maskbit: 1;
1: + u8 is_64: 1;
1: + u8 is_virtual: 1;
1: + u16 entry_nr;
1: + unsigned int default_irq;
1: + } msi_attrib;
1: + union {
1: + u8 mask_pos;
1: + void *mask_base;
1: + };
1: + };
1: + struct platform_msi_desc platform;
1: + struct fsl_mc_msi_desc fsl_mc;
1: + struct ti_sci_inta_msi_desc inta;
1: + };
1: +};
1: +
1: +typedef struct {
1: + unsigned int __softirq_pending;
1: + unsigned int timer_irqs_event;
1: + unsigned int broadcast_irqs_event;
1: + unsigned int timer_irqs_others;
1: + unsigned int pmu_irqs;
1: + unsigned int mce_exceptions;
1: + unsigned int spurious_irqs;
1: + unsigned int sreset_irqs;
1: + unsigned int soft_nmi_irqs;
1: + unsigned int doorbell_irqs;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +} irq_cpustat_t;
1: +
1: +struct irq_affinity_desc {
1: + struct cpumask mask;
1: + unsigned int is_managed: 1;
1: +};
1: +
1: +enum cpu_usage_stat {
1: + CPUTIME_USER = 0,
1: + CPUTIME_NICE = 1,
1: + CPUTIME_SYSTEM = 2,
1: + CPUTIME_SOFTIRQ = 3,
1: + CPUTIME_IRQ = 4,
1: + CPUTIME_IDLE = 5,
1: + CPUTIME_IOWAIT = 6,
1: + CPUTIME_STEAL = 7,
1: + CPUTIME_GUEST = 8,
1: + CPUTIME_GUEST_NICE = 9,
1: + NR_STATS = 10,
1: +};
1: +
1: +struct hotplug_slot;
1: +
1: +struct pci_slot {
1: + struct pci_bus *bus;
1: + struct list_head list;
1: + struct hotplug_slot *hotplug;
1: + unsigned char number;
1: + struct kobject kobj;
1: +};
1: +
1: +struct pci_dynids {
1: + spinlock_t lock;
1: + struct list_head list;
1: +};
1: +
1: +struct pci_error_handlers;
1: +
1: +struct pci_driver {
1: + struct list_head node;
1: + const char *name;
1: + const struct pci_device_id *id_table;
1: + int (*probe)(struct pci_dev *, const struct pci_device_id *);
1: + void (*remove)(struct pci_dev *);
1: + int (*suspend)(struct pci_dev *, pm_message_t);
1: + int (*resume)(struct pci_dev *);
1: + void (*shutdown)(struct pci_dev *);
1: + int (*sriov_configure)(struct pci_dev *, int);
1: + const struct pci_error_handlers *err_handler;
1: + const struct attribute_group **groups;
1: + struct device_driver driver;
1: + struct pci_dynids dynids;
1: +};
1: +
1: +struct pci_host_bridge {
1: + struct device dev;
1: + struct pci_bus *bus;
1: + struct pci_ops *ops;
1: + struct pci_ops *child_ops;
1: + void *sysdata;
1: + int busnr;
1: + struct list_head windows;
1: + struct list_head dma_ranges;
1: + u8 (*swizzle_irq)(struct pci_dev *, u8 *);
1: + int (*map_irq)(const struct pci_dev *, u8, u8);
1: + void (*release_fn)(struct pci_host_bridge *);
1: + void *release_data;
1: + struct msi_controller *msi;
1: + unsigned int ignore_reset_delay: 1;
1: + unsigned int no_ext_tags: 1;
1: + unsigned int native_aer: 1;
1: + unsigned int native_pcie_hotplug: 1;
1: + unsigned int native_shpc_hotplug: 1;
1: + unsigned int native_pme: 1;
1: + unsigned int native_ltr: 1;
1: + unsigned int native_dpc: 1;
1: + unsigned int preserve_config: 1;
1: + unsigned int size_windows: 1;
1: + resource_size_t (*align_resource)(struct pci_dev *, const struct resource *, resource_size_t, resource_size_t, resource_size_t);
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int private[0];
1: +};
1: +
1: +struct pci_ops {
1: + int (*add_bus)(struct pci_bus *);
1: + void (*remove_bus)(struct pci_bus *);
1: + void * (*map_bus)(struct pci_bus *, unsigned int, int);
1: + int (*read)(struct pci_bus *, unsigned int, int, int, u32 *);
1: + int (*write)(struct pci_bus *, unsigned int, int, int, u32);
1: +};
1: +
1: +struct msi_controller {
1: + struct module *owner;
1: + struct device *dev;
1: + struct device_node *of_node;
1: + struct list_head list;
1: + int (*setup_irq)(struct msi_controller *, struct pci_dev *, struct msi_desc *);
1: + int (*setup_irqs)(struct msi_controller *, struct pci_dev *, int, int);
1: + void (*teardown_irq)(struct msi_controller *, unsigned int);
1: +};
1: +
1: +struct pci_error_handlers {
1: + pci_ers_result_t (*error_detected)(struct pci_dev *, pci_channel_state_t);
1: + pci_ers_result_t (*mmio_enabled)(struct pci_dev *);
1: + pci_ers_result_t (*slot_reset)(struct pci_dev *);
1: + void (*reset_prepare)(struct pci_dev *);
1: + void (*reset_done)(struct pci_dev *);
1: + void (*resume)(struct pci_dev *);
1: +};
1: +
1: +struct sg_table {
1: + struct scatterlist *sgl;
1: + unsigned int nents;
1: + unsigned int orig_nents;
1: +};
1: +
1: +struct rtc_time;
1: +
1: +struct kimage;
1: +
1: +struct machdep_calls {
1: + char *name;
1: + void (*iommu_save)();
1: + void (*iommu_restore)();
1: + long unsigned int (*memory_block_size)();
1: + void (*dma_set_mask)(struct device *, u64);
1: + int (*probe)();
1: + void (*setup_arch)();
1: + void (*show_cpuinfo)(struct seq_file *);
1: + void (*show_percpuinfo)(struct seq_file *, int);
1: + long unsigned int (*get_proc_freq)(unsigned int);
1: + void (*init_IRQ)();
1: + unsigned int (*get_irq)();
1: + void (*pcibios_fixup)();
1: + void (*pci_irq_fixup)(struct pci_dev *);
1: + int (*pcibios_root_bridge_prepare)(struct pci_host_bridge *);
1: + int (*pci_setup_phb)(struct pci_controller *);
1: + void (*restart)(char *);
1: + void (*halt)();
1: + void (*panic)(char *);
1: + long int (*time_init)();
1: + int (*set_rtc_time)(struct rtc_time *);
1: + void (*get_rtc_time)(struct rtc_time *);
1: + time64_t (*get_boot_time)();
1: + unsigned char (*rtc_read_val)(int);
1: + void (*rtc_write_val)(int, unsigned char);
1: + void (*calibrate_decr)();
1: + void (*progress)(char *, short unsigned int);
1: + void (*log_error)(char *, unsigned int, int);
1: + unsigned char (*nvram_read_val)(int);
1: + void (*nvram_write_val)(int, unsigned char);
1: + ssize_t (*nvram_write)(char *, size_t, loff_t *);
1: + ssize_t (*nvram_read)(char *, size_t, loff_t *);
1: + ssize_t (*nvram_size)();
1: + void (*nvram_sync)();
1: + int (*system_reset_exception)(struct pt_regs *);
1: + int (*machine_check_exception)(struct pt_regs *);
1: + int (*handle_hmi_exception)(struct pt_regs *);
1: + int (*hmi_exception_early)(struct pt_regs *);
1: + long int (*machine_check_early)(struct pt_regs *);
1: + bool (*mce_check_early_recovery)(struct pt_regs *);
1: + long int (*feature_call)(unsigned int, ...);
1: + int (*pci_get_legacy_ide_irq)(struct pci_dev *, int);
1: + pgprot_t (*phys_mem_access_prot)(struct file *, long unsigned int, long unsigned int, pgprot_t);
1: + void (*power_save)();
1: + void (*enable_pmcs)();
1: + int (*set_dabr)(long unsigned int, long unsigned int);
1: + int (*set_dawr)(int, long unsigned int, long unsigned int);
1: + int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
1: + void (*pcibios_fixup_resources)(struct pci_dev *);
1: + void (*pcibios_fixup_bus)(struct pci_bus *);
1: + void (*pcibios_fixup_phb)(struct pci_controller *);
1: + void (*pcibios_bus_add_device)(struct pci_dev *);
1: + resource_size_t (*pcibios_default_alignment)();
1: + void (*pcibios_fixup_sriov)(struct pci_dev *);
1: + resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int);
1: + int (*pcibios_sriov_enable)(struct pci_dev *, u16);
1: + int (*pcibios_sriov_disable)(struct pci_dev *);
1: + void (*machine_shutdown)();
1: + void (*kexec_cpu_down)(int, int);
1: + int (*machine_kexec_prepare)(struct kimage *);
1: + void (*machine_kexec)(struct kimage *);
1: + void (*suspend_disable_irqs)();
1: + void (*suspend_enable_irqs)();
1: + int (*suspend_disable_cpu)();
1: + ssize_t (*cpu_probe)(const char *, size_t);
1: + ssize_t (*cpu_release)(const char *, size_t);
1: + int (*get_random_seed)(long unsigned int *);
1: +};
1: +
1: +typedef u64 gfn_t;
1: +
1: +struct kvm_arch_memory_slot {
1: + long unsigned int *rmap;
1: +};
1: +
1: +struct kvm_memory_slot {
1: + gfn_t base_gfn;
1: + long unsigned int npages;
1: + long unsigned int *dirty_bitmap;
1: + struct kvm_arch_memory_slot arch;
1: + long unsigned int userspace_addr;
1: + u32 flags;
1: + short int id;
1: + u16 as_id;
1: +};
1: +
1: +enum mmu_notifier_event {
1: + MMU_NOTIFY_UNMAP = 0,
1: + MMU_NOTIFY_CLEAR = 1,
1: + MMU_NOTIFY_PROTECTION_VMA = 2,
1: + MMU_NOTIFY_PROTECTION_PAGE = 3,
1: + MMU_NOTIFY_SOFT_DIRTY = 4,
1: + MMU_NOTIFY_RELEASE = 5,
1: + MMU_NOTIFY_MIGRATE = 6,
1: +};
1: +
1: +struct mmu_notifier;
1: +
1: +struct mmu_notifier_range;
1: +
1: +struct mmu_notifier_ops {
1: + void (*release)(struct mmu_notifier *, struct mm_struct *);
1: + int (*clear_flush_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + int (*clear_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + int (*test_young)(struct mmu_notifier *, struct mm_struct *, long unsigned int);
1: + void (*change_pte)(struct mmu_notifier *, struct mm_struct *, long unsigned int, pte_t);
1: + int (*invalidate_range_start)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: + void (*invalidate_range_end)(struct mmu_notifier *, const struct mmu_notifier_range *);
1: + void (*invalidate_range)(struct mmu_notifier *, struct mm_struct *, long unsigned int, long unsigned int);
1: + struct mmu_notifier * (*alloc_notifier)(struct mm_struct *);
1: + void (*free_notifier)(struct mmu_notifier *);
1: +};
1: +
1: +struct mmu_notifier {
1: + struct hlist_node hlist;
1: + const struct mmu_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct callback_head rcu;
1: + unsigned int users;
1: +};
1: +
1: +struct mmu_notifier_range {
1: + struct vm_area_struct *vma;
1: + struct mm_struct *mm;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int flags;
1: + enum mmu_notifier_event event;
1: + void *migrate_pgmap_owner;
1: +};
1: +
1: +struct irq_bypass_consumer;
1: +
1: +struct irq_bypass_producer {
1: + struct list_head node;
1: + void *token;
1: + int irq;
1: + int (*add_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: + void (*del_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *);
1: + void (*stop)(struct irq_bypass_producer *);
1: + void (*start)(struct irq_bypass_producer *);
1: +};
1: +
1: +struct irq_bypass_consumer {
1: + struct list_head node;
1: + void *token;
1: + int (*add_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + void (*del_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + void (*stop)(struct irq_bypass_consumer *);
1: + void (*start)(struct irq_bypass_consumer *);
1: +};
1: +
1: +struct kvm_sregs {
1: + __u32 pvr;
1: + union {
1: + struct {
1: + __u64 sdr1;
1: + struct {
1: + struct {
1: + __u64 slbe;
1: + __u64 slbv;
1: + } slb[64];
1: + } ppc64;
1: + struct {
1: + __u32 sr[16];
1: + __u64 ibat[8];
1: + __u64 dbat[8];
1: + } ppc32;
1: + } s;
1: + struct {
1: + union {
1: + struct {
1: + __u32 features;
1: + __u32 svr;
1: + __u64 mcar;
1: + __u32 hid0;
1: + __u32 pid1;
1: + __u32 pid2;
1: + } fsl;
1: + __u8 pad[256];
1: + } impl;
1: + __u32 features;
1: + __u32 impl_id;
1: + __u32 update_special;
1: + __u32 pir;
1: + __u64 sprg8;
1: + __u64 sprg9;
1: + __u64 csrr0;
1: + __u64 dsrr0;
1: + __u64 mcsrr0;
1: + __u32 csrr1;
1: + __u32 dsrr1;
1: + __u32 mcsrr1;
1: + __u32 esr;
1: + __u64 dear;
1: + __u64 ivpr;
1: + __u64 mcivpr;
1: + __u64 mcsr;
1: + __u32 tsr;
1: + __u32 tcr;
1: + __u32 decar;
1: + __u32 dec;
1: + __u64 tb;
1: + __u32 dbsr;
1: + __u32 dbcr[3];
1: + __u32 iac[4];
1: + __u32 dac[2];
1: + __u32 dvc[2];
1: + __u8 num_iac;
1: + __u8 num_dac;
1: + __u8 num_dvc;
1: + __u8 pad;
1: + __u32 epr;
1: + __u32 vrsave;
1: + __u32 epcr;
1: + __u32 mas0;
1: + __u32 mas1;
1: + __u64 mas2;
1: + __u64 mas7_3;
1: + __u32 mas4;
1: + __u32 mas6;
1: + __u32 ivor_low[16];
1: + __u32 ivor_high[18];
1: + __u32 mmucfg;
1: + __u32 eptcfg;
1: + __u32 tlbcfg[4];
1: + __u32 tlbps[4];
1: + __u32 eplc;
1: + __u32 epsc;
1: + } e;
1: + __u8 pad[1020];
1: + } u;
1: +};
1: +
1: +struct kvm_debug_exit_arch {
1: + __u64 address;
1: + __u32 status;
1: + __u32 reserved;
1: +};
1: +
1: +struct kvm_sync_regs {};
1: +
1: +struct kvm_ppc_mmuv3_cfg {
1: + __u64 flags;
1: + __u64 process_table;
1: +};
1: +
1: +struct kvm_ppc_radix_geom {
1: + __u8 page_shift;
1: + __u8 level_bits[4];
1: + __u8 pad[3];
1: +};
1: +
1: +struct kvm_ppc_rmmu_info {
1: + struct kvm_ppc_radix_geom geometries[8];
1: + __u32 ap_encodings[8];
1: +};
1: +
1: +struct kvm_userspace_memory_region {
1: + __u32 slot;
1: + __u32 flags;
1: + __u64 guest_phys_addr;
1: + __u64 memory_size;
1: + __u64 userspace_addr;
1: +};
1: +
1: +struct kvm_hyperv_exit {
1: + __u32 type;
1: + __u32 pad1;
1: + union {
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 evt_page;
1: + __u64 msg_page;
1: + } synic;
1: + struct {
1: + __u64 input;
1: + __u64 result;
1: + __u64 params[2];
1: + } hcall;
1: + struct {
1: + __u32 msr;
1: + __u32 pad2;
1: + __u64 control;
1: + __u64 status;
1: + __u64 send_page;
1: + __u64 recv_page;
1: + __u64 pending_page;
1: + } syndbg;
1: + } u;
1: +};
1: +
1: +struct kvm_run {
1: + __u8 request_interrupt_window;
1: + __u8 immediate_exit;
1: + __u8 padding1[6];
1: + __u32 exit_reason;
1: + __u8 ready_for_interrupt_injection;
1: + __u8 if_flag;
1: + __u16 flags;
1: + __u64 cr8;
1: + __u64 apic_base;
1: + union {
1: + struct {
1: + __u64 hardware_exit_reason;
1: + } hw;
1: + struct {
1: + __u64 hardware_entry_failure_reason;
1: + __u32 cpu;
1: + } fail_entry;
1: + struct {
1: + __u32 exception;
1: + __u32 error_code;
1: + } ex;
1: + struct {
1: + __u8 direction;
1: + __u8 size;
1: + __u16 port;
1: + __u32 count;
1: + __u64 data_offset;
1: + } io;
1: + struct {
1: + struct kvm_debug_exit_arch arch;
1: + } debug;
1: + struct {
1: + __u64 phys_addr;
1: + __u8 data[8];
1: + __u32 len;
1: + __u8 is_write;
1: + } mmio;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u64 ret;
1: + __u32 longmode;
1: + __u32 pad;
1: + } hypercall;
1: + struct {
1: + __u64 rip;
1: + __u32 is_write;
1: + __u32 pad;
1: + } tpr_access;
1: + struct {
1: + __u8 icptcode;
1: + __u16 ipa;
1: + __u32 ipb;
1: + } s390_sieic;
1: + __u64 s390_reset_flags;
1: + struct {
1: + __u64 trans_exc_code;
1: + __u32 pgm_code;
1: + } s390_ucontrol;
1: + struct {
1: + __u32 dcrn;
1: + __u32 data;
1: + __u8 is_write;
1: + } dcr;
1: + struct {
1: + __u32 suberror;
1: + __u32 ndata;
1: + __u64 data[16];
1: + } internal;
1: + struct {
1: + __u64 gprs[32];
1: + } osi;
1: + struct {
1: + __u64 nr;
1: + __u64 ret;
1: + __u64 args[9];
1: + } papr_hcall;
1: + struct {
1: + __u16 subchannel_id;
1: + __u16 subchannel_nr;
1: + __u32 io_int_parm;
1: + __u32 io_int_word;
1: + __u32 ipb;
1: + __u8 dequeued;
1: + } s390_tsch;
1: + struct {
1: + __u32 epr;
1: + } epr;
1: + struct {
1: + __u32 type;
1: + __u64 flags;
1: + } system_event;
1: + struct {
1: + __u64 addr;
1: + __u8 ar;
1: + __u8 reserved;
1: + __u8 fc;
1: + __u8 sel1;
1: + __u16 sel2;
1: + } s390_stsi;
1: + struct {
1: + __u8 vector;
1: + } eoi;
1: + struct kvm_hyperv_exit hyperv;
1: + struct {
1: + __u64 esr_iss;
1: + __u64 fault_ipa;
1: + } arm_nisv;
1: + struct {
1: + __u8 error;
1: + __u8 pad[7];
1: + __u32 reason;
1: + __u32 index;
1: + __u64 data;
1: + } msr;
1: + char padding[256];
1: + };
1: + __u64 kvm_valid_regs;
1: + __u64 kvm_dirty_regs;
1: + union {
1: + struct kvm_sync_regs regs;
1: + char padding[2048];
1: + } s;
1: +};
1: +
1: +struct kvm_coalesced_mmio {
1: + __u64 phys_addr;
1: + __u32 len;
1: + union {
1: + __u32 pad;
1: + __u32 pio;
1: + };
1: + __u8 data[8];
1: +};
1: +
1: +struct kvm_coalesced_mmio_ring {
1: + __u32 first;
1: + __u32 last;
1: + struct kvm_coalesced_mmio coalesced_mmio[0];
1: +};
1: +
1: +struct kvm_dirty_log {
1: + __u32 slot;
1: + __u32 padding1;
1: + union {
1: + void *dirty_bitmap;
1: + __u64 padding2;
1: + };
1: +};
1: +
1: +struct kvm_ppc_one_page_size {
1: + __u32 page_shift;
1: + __u32 pte_enc;
1: +};
1: +
1: +struct kvm_ppc_one_seg_page_size {
1: + __u32 page_shift;
1: + __u32 slb_enc;
1: + struct kvm_ppc_one_page_size enc[8];
1: +};
1: +
1: +struct kvm_ppc_smmu_info {
1: + __u64 flags;
1: + __u32 slb_size;
1: + __u16 data_keys;
1: + __u16 instr_keys;
1: + struct kvm_ppc_one_seg_page_size sps[8];
1: +};
1: +
1: +struct kvm_vm_stat {
1: + ulong remote_tlb_flush;
1: + ulong num_2M_pages;
1: + ulong num_1G_pages;
1: +};
1: +
1: +struct revmap_entry;
1: +
1: +struct kvm_hpt_info {
1: + long unsigned int virt;
1: + struct revmap_entry *rev;
1: + u32 order;
1: + int cma;
1: +};
1: +
1: +struct kvm_resize_hpt;
1: +
1: +struct kvmppc_xics;
1: +
1: +struct kvmppc_xive;
1: +
1: +struct kvmppc_passthru_irqmap;
1: +
1: +struct kvmppc_ops;
1: +
1: +struct kvm_arch {
1: + unsigned int lpid;
1: + unsigned int smt_mode;
1: + unsigned int emul_smt_mode;
1: + unsigned int tlb_sets;
1: + struct kvm_hpt_info hpt;
1: + atomic64_t mmio_update;
1: + unsigned int host_lpid;
1: + long unsigned int host_lpcr;
1: + long unsigned int sdr1;
1: + long unsigned int host_sdr1;
1: + long unsigned int lpcr;
1: + long unsigned int vrma_slb_v;
1: + int mmu_ready;
1: + atomic_t vcpus_running;
1: + u32 online_vcores;
1: + atomic_t hpte_mod_interest;
1: + cpumask_t need_tlb_flush;
1: + cpumask_t cpu_in_guest;
1: + u8 radix;
1: + u8 fwnmi_enabled;
1: + u8 secure_guest;
1: + u8 svm_enabled;
1: + bool threads_indep;
1: + bool nested_enable;
1: + pgd_t *pgtable;
1: + u64 process_table;
1: + struct dentry *debugfs_dir;
1: + struct kvm_resize_hpt *resize_hpt;
1: + struct mutex hpt_mutex;
1: + struct list_head spapr_tce_tables;
1: + struct list_head rtas_tokens;
1: + struct mutex rtas_token_lock;
1: + long unsigned int enabled_hcalls[5];
1: + struct kvmppc_xics *xics;
1: + struct kvmppc_xics *xics_device;
1: + struct kvmppc_xive *xive;
1: + struct {
1: + struct kvmppc_xive *native;
1: + struct kvmppc_xive *xics_on_xive;
1: + } xive_devices;
1: + struct kvmppc_passthru_irqmap *pimap;
1: + struct kvmppc_ops *kvm_ops;
1: + struct mutex uvmem_lock;
1: + struct list_head uvmem_pfns;
1: + struct mutex mmu_setup_lock;
1: + u64 l1_ptcr;
1: + int max_nested_lpid;
1: + struct kvm_nested_guest *nested_guests[4096];
1: + struct kvmppc_vcore *vcores[2048];
1: +};
1: +
1: +struct kvm_irq_routing_table;
1: +
1: +struct kvm_memslots;
1: +
1: +struct kvm_io_bus;
1: +
1: +struct kvm_stat_data;
1: +
1: +struct kvm {
1: + spinlock_t mmu_lock;
1: + struct mutex slots_lock;
1: + struct mm_struct *mm;
1: + struct kvm_memslots *memslots[1];
1: + struct kvm_vcpu *vcpus[2048];
1: + atomic_t online_vcpus;
1: + int created_vcpus;
1: + int last_boosted_vcpu;
1: + struct list_head vm_list;
1: + struct mutex lock;
1: + struct kvm_io_bus *buses[4];
1: + struct {
1: + spinlock_t lock;
1: + struct list_head items;
1: + struct list_head resampler_list;
1: + struct mutex resampler_lock;
1: + } irqfds;
1: + struct list_head ioeventfds;
1: + struct kvm_vm_stat stat;
1: + struct kvm_arch arch;
1: + refcount_t users_count;
1: + struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;
1: + spinlock_t ring_lock;
1: + struct list_head coalesced_zones;
1: + struct mutex irq_lock;
1: + struct kvm_irq_routing_table *irq_routing;
1: + struct hlist_head irq_ack_notifier_list;
1: + struct mmu_notifier mmu_notifier;
1: + long unsigned int mmu_notifier_seq;
1: + long int mmu_notifier_count;
1: + long int tlbs_dirty;
1: + struct list_head devices;
1: + u64 manual_dirty_log_protect;
1: + struct dentry *debugfs_dentry;
1: + struct kvm_stat_data **debugfs_stat_data;
1: + struct srcu_struct srcu;
1: + struct srcu_struct irq_srcu;
1: + pid_t userspace_pid;
1: + unsigned int max_halt_poll_ns;
1: +};
1: +
1: +struct revmap_entry {
1: + long unsigned int guest_rpte;
1: + unsigned int forw;
1: + unsigned int back;
1: +};
1: +
1: +struct kvmppc_irq_map {
1: + u32 r_hwirq;
1: + u32 v_hwirq;
1: + struct irq_desc *desc;
1: +};
1: +
1: +struct kvmppc_passthru_irqmap {
1: + int n_mapped;
1: + struct kvmppc_irq_map mapped[1024];
1: +};
1: +
1: +enum kvm_mr_change {
1: + KVM_MR_CREATE = 0,
1: + KVM_MR_DELETE = 1,
1: + KVM_MR_MOVE = 2,
1: + KVM_MR_FLAGS_ONLY = 3,
1: +};
1: +
1: +union kvmppc_one_reg;
1: +
1: +struct kvmppc_ops {
1: + struct module *owner;
1: + int (*get_sregs)(struct kvm_vcpu *, struct kvm_sregs *);
1: + int (*set_sregs)(struct kvm_vcpu *, struct kvm_sregs *);
1: + int (*get_one_reg)(struct kvm_vcpu *, u64, union kvmppc_one_reg *);
1: + int (*set_one_reg)(struct kvm_vcpu *, u64, union kvmppc_one_reg *);
1: + void (*vcpu_load)(struct kvm_vcpu *, int);
1: + void (*vcpu_put)(struct kvm_vcpu *);
1: + void (*inject_interrupt)(struct kvm_vcpu *, int, u64);
1: + void (*set_msr)(struct kvm_vcpu *, u64);
1: + int (*vcpu_run)(struct kvm_vcpu *);
1: + int (*vcpu_create)(struct kvm_vcpu *);
1: + void (*vcpu_free)(struct kvm_vcpu *);
1: + int (*check_requests)(struct kvm_vcpu *);
1: + int (*get_dirty_log)(struct kvm *, struct kvm_dirty_log *);
1: + void (*flush_memslot)(struct kvm *, struct kvm_memory_slot *);
1: + int (*prepare_memory_region)(struct kvm *, struct kvm_memory_slot *, const struct kvm_userspace_memory_region *, enum kvm_mr_change);
1: + void (*commit_memory_region)(struct kvm *, const struct kvm_userspace_memory_region *, const struct kvm_memory_slot *, const struct kvm_memory_slot *, enum kvm_mr_change);
1: + int (*unmap_hva_range)(struct kvm *, long unsigned int, long unsigned int);
1: + int (*age_hva)(struct kvm *, long unsigned int, long unsigned int);
1: + int (*test_age_hva)(struct kvm *, long unsigned int);
1: + void (*set_spte_hva)(struct kvm *, long unsigned int, pte_t);
1: + void (*free_memslot)(struct kvm_memory_slot *);
1: + int (*init_vm)(struct kvm *);
1: + void (*destroy_vm)(struct kvm *);
1: + int (*get_smmu_info)(struct kvm *, struct kvm_ppc_smmu_info *);
1: + int (*emulate_op)(struct kvm_vcpu *, unsigned int, int *);
1: + int (*emulate_mtspr)(struct kvm_vcpu *, int, ulong);
1: + int (*emulate_mfspr)(struct kvm_vcpu *, int, ulong *);
1: + void (*fast_vcpu_kick)(struct kvm_vcpu *);
1: + long int (*arch_vm_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*hcall_implemented)(long unsigned int);
1: + int (*irq_bypass_add_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + void (*irq_bypass_del_producer)(struct irq_bypass_consumer *, struct irq_bypass_producer *);
1: + int (*configure_mmu)(struct kvm *, struct kvm_ppc_mmuv3_cfg *);
1: + int (*get_rmmu_info)(struct kvm *, struct kvm_ppc_rmmu_info *);
1: + int (*set_smt_mode)(struct kvm *, long unsigned int, long unsigned int);
1: + void (*giveup_ext)(struct kvm_vcpu *, ulong);
1: + int (*enable_nested)(struct kvm *);
1: + int (*load_from_eaddr)(struct kvm_vcpu *, ulong *, void *, int);
1: + int (*store_to_eaddr)(struct kvm_vcpu *, ulong *, void *, int);
1: + int (*enable_svm)(struct kvm *);
1: + int (*svm_off)(struct kvm *);
1: +};
1: +
1: +struct kvm_nested_guest {
1: + struct kvm *l1_host;
1: + int l1_lpid;
1: + int shadow_lpid;
1: + pgd_t *shadow_pgtable;
1: + u64 l1_gr_to_hr;
1: + u64 process_table;
1: + long int refcnt;
1: + struct mutex tlb_lock;
1: + struct kvm_nested_guest *next;
1: + cpumask_t need_tlb_flush;
1: + cpumask_t cpu_in_guest;
1: + short int prev_cpu[2048];
1: + u8 radix;
1: +};
1: +
1: +struct kvmppc_pte {
1: + ulong eaddr;
1: + u64 vpage;
1: + ulong raddr;
1: + bool may_read: 1;
1: + bool may_write: 1;
1: + bool may_execute: 1;
1: + long unsigned int wimg;
1: + long unsigned int rc;
1: + u8 page_size;
1: + u8 page_shift;
1: +};
1: +
1: +struct kvmppc_sid_map {
1: + u64 guest_vsid;
1: + u64 guest_esid;
1: + u64 host_vsid;
1: + bool valid: 1;
1: +};
1: +
1: +struct kvmppc_bat {
1: + u64 raw;
1: + u32 bepi;
1: + u32 bepi_mask;
1: + u32 brpn;
1: + u8 wimg;
1: + u8 pp;
1: + bool vs: 1;
1: + bool vp: 1;
1: +};
1: +
1: +struct kvmppc_vcpu_book3s {
1: + struct kvmppc_sid_map sid_map[512];
1: + struct {
1: + u64 esid;
1: + u64 vsid;
1: + } slb_shadow[64];
1: + u8 slb_shadow_max;
1: + struct kvmppc_bat ibat[8];
1: + struct kvmppc_bat dbat[8];
1: + u64 hid[6];
1: + u64 gqr[8];
1: + u64 sdr1;
1: + u64 hior;
1: + u64 msr_mask;
1: + u64 vtb;
1: + u64 proto_vsid_first;
1: + u64 proto_vsid_max;
1: + u64 proto_vsid_next;
1: + int context_id[1];
1: + bool hior_explicit;
1: + struct hlist_head hpte_hash_pte[8192];
1: + struct hlist_head hpte_hash_pte_long[4096];
1: + struct hlist_head hpte_hash_vpte[8192];
1: + struct hlist_head hpte_hash_vpte_long[32];
1: + struct hlist_head hpte_hash_vpte_64k[2048];
1: + int hpte_cache_count;
1: + spinlock_t mmu_lock;
1: +};
1: +
1: +struct kvm_io_device;
1: +
1: +struct kvm_io_range {
1: + gpa_t addr;
1: + int len;
1: + struct kvm_io_device *dev;
1: +};
1: +
1: +struct kvm_io_bus {
1: + int dev_count;
1: + int ioeventfd_count;
1: + struct kvm_io_range range[0];
1: +};
1: +
1: +enum kvm_bus {
1: + KVM_MMIO_BUS = 0,
1: + KVM_PIO_BUS = 1,
1: + KVM_VIRTIO_CCW_NOTIFY_BUS = 2,
1: + KVM_FAST_MMIO_BUS = 3,
1: + KVM_NR_BUSES = 4,
1: +};
1: +
1: +struct kvm_memslots {
1: + u64 generation;
1: + short int id_to_index[512];
1: + atomic_t lru_slot;
1: + int used_slots;
1: + struct kvm_memory_slot memslots[0];
1: +};
1: +
1: +struct kvm_stats_debugfs_item;
1: +
1: +struct kvm_stat_data {
1: + struct kvm *kvm;
1: + struct kvm_stats_debugfs_item *dbgfs_item;
1: +};
1: +
1: +enum kvm_stat_kind {
1: + KVM_STAT_VM = 0,
1: + KVM_STAT_VCPU = 1,
1: +};
1: +
1: +struct kvm_stats_debugfs_item {
1: + const char *name;
1: + int offset;
1: + enum kvm_stat_kind kind;
1: + int mode;
1: +};
1: +
1: +enum {
1: + OPAL_P7IOC_NUM_PEST_REGS = 128,
1: + OPAL_PHB3_NUM_PEST_REGS = 256,
1: + OPAL_PHB4_NUM_PEST_REGS = 512,
1: +};
1: +
1: +union kvmppc_one_reg {
1: + u32 wval;
1: + u64 dval;
1: + vector128 vval;
1: + u64 vsxval[2];
1: + u32 vsx32val[4];
1: + u16 vsx16val[8];
1: + u8 vsx8val[16];
1: + struct {
1: + u64 addr;
1: + u64 length;
1: + } vpaval;
1: + u64 xive_timaval[2];
1: +};
1: +
1: +enum ppc_dbell {
1: + PPC_DBELL = 0,
1: + PPC_DBELL_CRIT = 1,
1: + PPC_G_DBELL = 2,
1: + PPC_G_DBELL_CRIT = 3,
1: + PPC_G_DBELL_MC = 4,
1: + PPC_DBELL_SERVER = 5,
1: +};
1: +
1: +struct trace_event_raw_ppc64_interrupt_class {
1: + struct trace_entry ent;
1: + struct pt_regs *regs;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hcall_entry {
1: + struct trace_entry ent;
1: + long unsigned int opcode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hcall_exit {
1: + struct trace_entry ent;
1: + long unsigned int opcode;
1: + long int retval;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_opal_entry {
1: + struct trace_entry ent;
1: + long unsigned int opcode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_opal_exit {
1: + struct trace_entry ent;
1: + long unsigned int opcode;
1: + long unsigned int retval;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hash_fault {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int access;
1: + long unsigned int trap;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tlbie {
1: + struct trace_entry ent;
1: + long unsigned int lpid;
1: + long unsigned int local;
1: + long unsigned int rb;
1: + long unsigned int rs;
1: + long unsigned int ric;
1: + long unsigned int prs;
1: + long unsigned int r;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tlbia {
1: + struct trace_entry ent;
1: + long unsigned int id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_ppc64_interrupt_class {};
1: +
1: +struct trace_event_data_offsets_hcall_entry {};
1: +
1: +struct trace_event_data_offsets_hcall_exit {};
1: +
1: +struct trace_event_data_offsets_opal_entry {};
1: +
1: +struct trace_event_data_offsets_opal_exit {};
1: +
1: +struct trace_event_data_offsets_hash_fault {};
1: +
1: +struct trace_event_data_offsets_tlbie {};
1: +
1: +struct trace_event_data_offsets_tlbia {};
1: +
1: +typedef void (*btf_trace_irq_entry)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_irq_exit)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_timer_interrupt_entry)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_timer_interrupt_exit)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_doorbell_entry)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_doorbell_exit)(void *, struct pt_regs *);
1: +
1: +typedef void (*btf_trace_hcall_entry)(void *, long unsigned int, long unsigned int *);
1: +
1: +typedef void (*btf_trace_hcall_exit)(void *, long unsigned int, long int, long unsigned int *);
1: +
1: +typedef void (*btf_trace_opal_entry)(void *, long unsigned int, long unsigned int *);
1: +
1: +typedef void (*btf_trace_opal_exit)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_hash_fault)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_tlbie)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_tlbia)(void *, long unsigned int);
1: +
1: +enum {
1: + MMU_FTRS_POSSIBLE = 4261477441,
1: +};
1: +
1: +struct ppc_inst {
1: + u32 val;
1: + u32 suffix;
1: +};
1: +
1: +enum instruction_type {
1: + COMPUTE = 0,
1: + LOAD = 1,
1: + LOAD_MULTI = 2,
1: + LOAD_FP = 3,
1: + LOAD_VMX = 4,
1: + LOAD_VSX = 5,
1: + STORE = 6,
1: + STORE_MULTI = 7,
1: + STORE_FP = 8,
1: + STORE_VMX = 9,
1: + STORE_VSX = 10,
1: + LARX = 11,
1: + STCX = 12,
1: + BRANCH = 13,
1: + MFSPR = 14,
1: + MTSPR = 15,
1: + CACHEOP = 16,
1: + BARRIER = 17,
1: + SYSCALL = 18,
1: + SYSCALL_VECTORED_0 = 19,
1: + MFMSR = 20,
1: + MTMSR = 21,
1: + RFI = 22,
1: + INTERRUPT = 23,
1: + UNKNOWN = 24,
1: +};
1: +
1: +struct instruction_op {
1: + int type;
1: + int reg;
1: + long unsigned int val;
1: + long unsigned int ea;
1: + int update_reg;
1: + int spr;
1: + u32 ccval;
1: + u32 xerval;
1: + u8 element_size;
1: + u8 vsx_flags;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int entry;
1: + long unsigned int toc;
1: + long unsigned int env;
1: +} func_descr_t;
1: +
1: +struct sigaltstack {
1: + void *ss_sp;
1: + int ss_flags;
1: + size_t ss_size;
1: +};
1: +
1: +typedef struct sigaltstack stack_t;
1: +
1: +struct siginfo {
1: + union {
1: + struct {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union __sifields _sifields;
1: + };
1: + int _si_pad[32];
1: + };
1: +};
1: +
1: +struct ksignal {
1: + struct k_sigaction ka;
1: + kernel_siginfo_t info;
1: + int sig;
1: +};
1: +
1: +typedef long unsigned int elf_greg_t64;
1: +
1: +typedef elf_greg_t64 elf_gregset_t64[48];
1: +
1: +typedef elf_gregset_t64 elf_gregset_t;
1: +
1: +typedef double elf_fpreg_t;
1: +
1: +typedef elf_fpreg_t elf_fpregset_t[33];
1: +
1: +typedef __vector128 elf_vrreg_t;
1: +
1: +struct sigcontext {
1: + long unsigned int _unused[4];
1: + int signal;
1: + int _pad0;
1: + long unsigned int handler;
1: + long unsigned int oldmask;
1: + struct user_pt_regs *regs;
1: + elf_gregset_t gp_regs;
1: + elf_fpregset_t fp_regs;
1: + elf_vrreg_t *v_regs;
1: + long int vmx_reserve[101];
1: +};
1: +
1: +struct ucontext {
1: + long unsigned int uc_flags;
1: + struct ucontext *uc_link;
1: + stack_t uc_stack;
1: + sigset_t uc_sigmask;
1: + sigset_t __unused[15];
1: + struct sigcontext uc_mcontext;
1: +};
1: +
1: +struct rt_sigframe {
1: + struct ucontext uc;
1: + struct ucontext uc_transact;
1: + long unsigned int _unused[2];
1: + unsigned int tramp[7];
1: + struct siginfo *pinfo;
1: + void *puc;
1: + struct siginfo info;
1: + char abigap[512];
1: +};
1: +
1: +typedef void (*perf_irq_t)(struct pt_regs *);
1: +
1: +struct ppc_cache_info {
1: + u32 size;
1: + u32 line_size;
1: + u32 block_size;
1: + u32 log_block_size;
1: + u32 blocks_per_page;
1: + u32 sets;
1: + u32 assoc;
1: +};
1: +
1: +struct ppc64_caches {
1: + struct ppc_cache_info l1d;
1: + struct ppc_cache_info l1i;
1: + struct ppc_cache_info l2;
1: + struct ppc_cache_info l3;
1: +};
1: +
1: +typedef __u32 Elf32_Addr;
1: +
1: +typedef __u16 Elf32_Half;
1: +
1: +typedef __u32 Elf32_Off;
1: +
1: +typedef __u64 Elf64_Off;
1: +
1: +struct elf32_sym {
1: + Elf32_Word st_name;
1: + Elf32_Addr st_value;
1: + Elf32_Word st_size;
1: + unsigned char st_info;
1: + unsigned char st_other;
1: + Elf32_Half st_shndx;
1: +};
1: +
1: +typedef struct elf32_sym Elf32_Sym;
1: +
1: +struct elf32_hdr {
1: + unsigned char e_ident[16];
1: + Elf32_Half e_type;
1: + Elf32_Half e_machine;
1: + Elf32_Word e_version;
1: + Elf32_Addr e_entry;
1: + Elf32_Off e_phoff;
1: + Elf32_Off e_shoff;
1: + Elf32_Word e_flags;
1: + Elf32_Half e_ehsize;
1: + Elf32_Half e_phentsize;
1: + Elf32_Half e_phnum;
1: + Elf32_Half e_shentsize;
1: + Elf32_Half e_shnum;
1: + Elf32_Half e_shstrndx;
1: +};
1: +
1: +typedef struct elf32_hdr Elf32_Ehdr;
1: +
1: +struct elf64_hdr {
1: + unsigned char e_ident[16];
1: + Elf64_Half e_type;
1: + Elf64_Half e_machine;
1: + Elf64_Word e_version;
1: + Elf64_Addr e_entry;
1: + Elf64_Off e_phoff;
1: + Elf64_Off e_shoff;
1: + Elf64_Word e_flags;
1: + Elf64_Half e_ehsize;
1: + Elf64_Half e_phentsize;
1: + Elf64_Half e_phnum;
1: + Elf64_Half e_shentsize;
1: + Elf64_Half e_shnum;
1: + Elf64_Half e_shstrndx;
1: +};
1: +
1: +typedef struct elf64_hdr Elf64_Ehdr;
1: +
1: +struct elf32_shdr {
1: + Elf32_Word sh_name;
1: + Elf32_Word sh_type;
1: + Elf32_Word sh_flags;
1: + Elf32_Addr sh_addr;
1: + Elf32_Off sh_offset;
1: + Elf32_Word sh_size;
1: + Elf32_Word sh_link;
1: + Elf32_Word sh_info;
1: + Elf32_Word sh_addralign;
1: + Elf32_Word sh_entsize;
1: +};
1: +
1: +typedef struct elf32_shdr Elf32_Shdr;
1: +
1: +struct elf64_shdr {
1: + Elf64_Word sh_name;
1: + Elf64_Word sh_type;
1: + Elf64_Xword sh_flags;
1: + Elf64_Addr sh_addr;
1: + Elf64_Off sh_offset;
1: + Elf64_Xword sh_size;
1: + Elf64_Word sh_link;
1: + Elf64_Word sh_info;
1: + Elf64_Xword sh_addralign;
1: + Elf64_Xword sh_entsize;
1: +};
1: +
1: +typedef struct elf64_shdr Elf64_Shdr;
1: +
1: +struct vdso_data {
1: + __u8 eye_catcher[16];
1: + struct {
1: + __u32 major;
1: + __u32 minor;
1: + } version;
1: + __u32 platform;
1: + __u32 processor;
1: + __u64 processorCount;
1: + __u64 physicalMemorySize;
1: + __u64 tb_orig_stamp;
1: + __u64 tb_ticks_per_sec;
1: + __u64 tb_to_xs;
1: + __u64 stamp_xsec;
1: + __u64 tb_update_count;
1: + __u32 tz_minuteswest;
1: + __u32 tz_dsttime;
1: + __u32 dcache_size;
1: + __u32 dcache_line_size;
1: + __u32 icache_size;
1: + __u32 icache_line_size;
1: + __u32 dcache_block_size;
1: + __u32 icache_block_size;
1: + __u32 dcache_log_block_size;
1: + __u32 icache_log_block_size;
1: + __u32 stamp_sec_fraction;
1: + __s32 wtom_clock_nsec;
1: + __s64 wtom_clock_sec;
1: + __s64 stamp_xtime_sec;
1: + __s64 stamp_xtime_nsec;
1: + __u32 hrtimer_res;
1: + __u32 syscall_map_64[14];
1: + __u32 syscall_map_32[14];
1: +};
1: +
1: +struct vdso_patch_def {
1: + long unsigned int ftr_mask;
1: + long unsigned int ftr_value;
1: + const char *gen_name;
1: + const char *fix_name;
1: +};
1: +
1: +struct lib32_elfinfo {
1: + Elf32_Ehdr *hdr;
1: + Elf32_Sym *dynsym;
1: + long unsigned int dynsymsize;
1: + char *dynstr;
1: + long unsigned int text;
1: +};
1: +
1: +struct lib64_elfinfo {
1: + Elf64_Ehdr *hdr;
1: + Elf64_Sym *dynsym;
1: + long unsigned int dynsymsize;
1: + char *dynstr;
1: + long unsigned int text;
1: +};
1: +
1: +typedef u8 uint8_t;
1: +
1: +typedef struct {
1: + pte_t pte;
1: + long unsigned int hidx;
1: +} real_pte_t;
1: +
1: +struct mmu_psize_def {
1: + unsigned int shift;
1: + int penc[16];
1: + unsigned int tlbiel;
1: + long unsigned int avpnm;
1: + union {
1: + long unsigned int sllp;
1: + long unsigned int ap;
1: + };
1: +};
1: +
1: +enum die_val {
1: + DIE_OOPS = 1,
1: + DIE_IABR_MATCH = 2,
1: + DIE_DABR_MATCH = 3,
1: + DIE_BPT = 4,
1: + DIE_SSTEP = 5,
1: +};
1: +
1: +enum refcount_saturation_type {
1: + REFCOUNT_ADD_NOT_ZERO_OVF = 0,
1: + REFCOUNT_ADD_OVF = 1,
1: + REFCOUNT_ADD_UAF = 2,
1: + REFCOUNT_SUB_UAF = 3,
1: + REFCOUNT_DEC_LEAK = 4,
1: +};
1: +
1: +struct ppc64_tlb_batch {
1: + int active;
1: + long unsigned int index;
1: + struct mm_struct *mm;
1: + real_pte_t pte[192];
1: + long unsigned int vpn[192];
1: + unsigned int psize;
1: + int ssize;
1: +};
1: +
1: +struct regbit {
1: + long unsigned int bit;
1: + const char *name;
1: +};
1: +
1: +enum idle_boot_override {
1: + IDLE_NO_OVERRIDE = 0,
1: + IDLE_POWERSAVE_OFF = 1,
1: +};
1: +
1: +enum {
1: + TASKSTATS_CMD_UNSPEC = 0,
1: + TASKSTATS_CMD_GET = 1,
1: + TASKSTATS_CMD_NEW = 2,
1: + __TASKSTATS_CMD_MAX = 3,
1: +};
1: +
1: +enum bpf_cgroup_storage_type {
1: + BPF_CGROUP_STORAGE_SHARED = 0,
1: + BPF_CGROUP_STORAGE_PERCPU = 1,
1: + __BPF_CGROUP_STORAGE_MAX = 2,
1: +};
1: +
1: +enum psi_task_count {
1: + NR_IOWAIT = 0,
1: + NR_MEMSTALL = 1,
1: + NR_RUNNING = 2,
1: + NR_ONCPU = 3,
1: + NR_PSI_TASK_COUNTS = 4,
1: +};
1: +
1: +enum psi_states {
1: + PSI_IO_SOME = 0,
1: + PSI_IO_FULL = 1,
1: + PSI_MEM_SOME = 2,
1: + PSI_MEM_FULL = 3,
1: + PSI_CPU_SOME = 4,
1: + PSI_NONIDLE = 5,
1: + NR_PSI_STATES = 6,
1: +};
1: +
1: +enum psi_aggregators {
1: + PSI_AVGS = 0,
1: + PSI_POLL = 1,
1: + NR_PSI_AGGREGATORS = 2,
1: +};
1: +
1: +enum cgroup_subsys_id {
1: + cpuset_cgrp_id = 0,
1: + cpu_cgrp_id = 1,
1: + cpuacct_cgrp_id = 2,
1: + io_cgrp_id = 3,
1: + memory_cgrp_id = 4,
1: + devices_cgrp_id = 5,
1: + freezer_cgrp_id = 6,
1: + net_cls_cgrp_id = 7,
1: + perf_event_cgrp_id = 8,
1: + net_prio_cgrp_id = 9,
1: + hugetlb_cgrp_id = 10,
1: + pids_cgrp_id = 11,
1: + CGROUP_SUBSYS_COUNT = 12,
1: +};
1: +
1: +struct smp_ops_t {
1: + void (*message_pass)(int, int);
1: + void (*cause_ipi)(int);
1: + int (*cause_nmi_ipi)(int);
1: + void (*probe)();
1: + int (*kick_cpu)(int);
1: + int (*prepare_cpu)(int);
1: + void (*setup_cpu)(int);
1: + void (*bringup_done)();
1: + void (*take_timebase)();
1: + void (*give_timebase)();
1: + int (*cpu_disable)();
1: + void (*cpu_die)(unsigned int);
1: + int (*cpu_bootable)(unsigned int);
1: + void (*cpu_offline_self)();
1: +};
1: +
1: +typedef struct pglist_data pg_data_t;
1: +
1: +enum meminit_context {
1: + MEMINIT_EARLY = 0,
1: + MEMINIT_HOTPLUG = 1,
1: +};
1: +
1: +struct device_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct device *, struct device_attribute *, char *);
1: + ssize_t (*store)(struct device *, struct device_attribute *, const char *, size_t);
1: +};
1: +
1: +struct node {
1: + struct device dev;
1: + struct list_head access_list;
1: + struct work_struct node_work;
1: +};
1: +
1: +struct cpu {
1: + int node_id;
1: + int hotpluggable;
1: + struct device dev;
1: +};
1: +
1: +struct kobj_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct kobject *, struct kobj_attribute *, char *);
1: + ssize_t (*store)(struct kobject *, struct kobj_attribute *, const char *, size_t);
1: +};
1: +
1: +struct cache_index_dir;
1: +
1: +struct cache_dir {
1: + struct kobject *kobj;
1: + struct cache_index_dir *index;
1: +};
1: +
1: +struct cache;
1: +
1: +struct cache_index_dir {
1: + struct kobject kobj;
1: + struct cache_index_dir *next;
1: + struct cache *cache;
1: +};
1: +
1: +struct cache {
1: + struct device_node *ofnode;
1: + struct cpumask shared_cpu_map;
1: + int type;
1: + int level;
1: + struct list_head list;
1: + struct cache *next_local;
1: +};
1: +
1: +struct cache_type_info {
1: + const char *name;
1: + const char *size_prop;
1: + const char *line_size_props[2];
1: + const char *nr_sets_prop;
1: +};
1: +
1: +typedef u64 uint64_t;
1: +
1: +struct dtl_entry {
1: + u8 dispatch_reason;
1: + u8 preempt_reason;
1: + __be16 processor_id;
1: + __be32 enqueue_to_dispatch_time;
1: + __be32 ready_to_enqueue_time;
1: + __be32 waiting_to_ready_time;
1: + __be64 timebase;
1: + __be64 fault_addr;
1: + __be64 srr0;
1: + __be64 srr1;
1: +};
1: +
1: +struct timezone {
1: + int tz_minuteswest;
1: + int tz_dsttime;
1: +};
1: +
1: +enum vdso_clock_mode {
1: + VDSO_CLOCKMODE_NONE = 0,
1: + VDSO_CLOCKMODE_MAX = 1,
1: + VDSO_CLOCKMODE_TIMENS = 2147483647,
1: +};
1: +
1: +struct clocksource {
1: + u64 (*read)(struct clocksource *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: + u64 max_idle_ns;
1: + u32 maxadj;
1: + u64 max_cycles;
1: + const char *name;
1: + struct list_head list;
1: + int rating;
1: + enum vdso_clock_mode vdso_clock_mode;
1: + long unsigned int flags;
1: + int (*enable)(struct clocksource *);
1: + void (*disable)(struct clocksource *);
1: + void (*suspend)(struct clocksource *);
1: + void (*resume)(struct clocksource *);
1: + void (*mark_unstable)(struct clocksource *);
1: + void (*tick_stable)(struct clocksource *);
1: + struct module *owner;
1: +};
1: +
1: +struct pdev_archdata {
1: + u64 dma_mask;
1: +};
1: +
1: +enum clock_event_state {
1: + CLOCK_EVT_STATE_DETACHED = 0,
1: + CLOCK_EVT_STATE_SHUTDOWN = 1,
1: + CLOCK_EVT_STATE_PERIODIC = 2,
1: + CLOCK_EVT_STATE_ONESHOT = 3,
1: + CLOCK_EVT_STATE_ONESHOT_STOPPED = 4,
1: +};
1: +
1: +struct clock_event_device {
1: + void (*event_handler)(struct clock_event_device *);
1: + int (*set_next_event)(long unsigned int, struct clock_event_device *);
1: + int (*set_next_ktime)(ktime_t, struct clock_event_device *);
1: + ktime_t next_event;
1: + u64 max_delta_ns;
1: + u64 min_delta_ns;
1: + u32 mult;
1: + u32 shift;
1: + enum clock_event_state state_use_accessors;
1: + unsigned int features;
1: + long unsigned int retries;
1: + int (*set_state_periodic)(struct clock_event_device *);
1: + int (*set_state_oneshot)(struct clock_event_device *);
1: + int (*set_state_oneshot_stopped)(struct clock_event_device *);
1: + int (*set_state_shutdown)(struct clock_event_device *);
1: + int (*tick_resume)(struct clock_event_device *);
1: + void (*broadcast)(const struct cpumask *);
1: + void (*suspend)(struct clock_event_device *);
1: + void (*resume)(struct clock_event_device *);
1: + long unsigned int min_delta_ticks;
1: + long unsigned int max_delta_ticks;
1: + const char *name;
1: + int rating;
1: + int irq;
1: + int bound_on;
1: + const struct cpumask *cpumask;
1: + struct list_head list;
1: + struct module *owner;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct div_result {
1: + u64 result_high;
1: + u64 result_low;
1: +};
1: +
1: +struct platform_device_id {
1: + char name[20];
1: + kernel_ulong_t driver_data;
1: +};
1: +
1: +enum dev_prop_type {
1: + DEV_PROP_U8 = 0,
1: + DEV_PROP_U16 = 1,
1: + DEV_PROP_U32 = 2,
1: + DEV_PROP_U64 = 3,
1: + DEV_PROP_STRING = 4,
1: + DEV_PROP_REF = 5,
1: +};
1: +
1: +struct property_entry {
1: + const char *name;
1: + size_t length;
1: + bool is_inline;
1: + enum dev_prop_type type;
1: + union {
1: + const void *pointer;
1: + union {
1: + u8 u8_data[8];
1: + u16 u16_data[4];
1: + u32 u32_data[2];
1: + u64 u64_data[1];
1: + const char *str[1];
1: + } value;
1: + };
1: +};
1: +
1: +struct kernel_cpustat {
1: + u64 cpustat[10];
1: +};
1: +
1: +struct rtc_time {
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: + int tm_isdst;
1: +};
1: +
1: +struct rtc_wkalrm {
1: + unsigned char enabled;
1: + unsigned char pending;
1: + struct rtc_time time;
1: +};
1: +
1: +struct rtc_class_ops {
1: + int (*ioctl)(struct device *, unsigned int, long unsigned int);
1: + int (*read_time)(struct device *, struct rtc_time *);
1: + int (*set_time)(struct device *, struct rtc_time *);
1: + int (*read_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*set_alarm)(struct device *, struct rtc_wkalrm *);
1: + int (*proc)(struct device *, struct seq_file *);
1: + int (*alarm_irq_enable)(struct device *, unsigned int);
1: + int (*read_offset)(struct device *, long int *);
1: + int (*set_offset)(struct device *, long int);
1: +};
1: +
1: +struct mfd_cell;
1: +
1: +struct platform_device {
1: + const char *name;
1: + int id;
1: + bool id_auto;
1: + struct device dev;
1: + u64 platform_dma_mask;
1: + struct device_dma_parameters dma_parms;
1: + u32 num_resources;
1: + struct resource *resource;
1: + const struct platform_device_id *id_entry;
1: + char *driver_override;
1: + struct mfd_cell *mfd_cell;
1: + struct pdev_archdata archdata;
1: +};
1: +
1: +struct platform_device_info {
1: + struct device *parent;
1: + struct fwnode_handle *fwnode;
1: + bool of_node_reused;
1: + const char *name;
1: + int id;
1: + const struct resource *res;
1: + unsigned int num_res;
1: + const void *data;
1: + size_t size_data;
1: + u64 dma_mask;
1: + const struct property_entry *properties;
1: +};
1: +
1: +struct tk_read_base {
1: + struct clocksource *clock;
1: + u64 mask;
1: + u64 cycle_last;
1: + u32 mult;
1: + u32 shift;
1: + u64 xtime_nsec;
1: + ktime_t base;
1: + u64 base_real;
1: +};
1: +
1: +struct timekeeper {
1: + struct tk_read_base tkr_mono;
1: + struct tk_read_base tkr_raw;
1: + u64 xtime_sec;
1: + long unsigned int ktime_sec;
1: + struct timespec64 wall_to_monotonic;
1: + ktime_t offs_real;
1: + ktime_t offs_boot;
1: + ktime_t offs_tai;
1: + s32 tai_offset;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: + ktime_t next_leap_ktime;
1: + u64 raw_sec;
1: + struct timespec64 monotonic_to_boot;
1: + u64 cycle_interval;
1: + u64 xtime_interval;
1: + s64 xtime_remainder;
1: + u64 raw_interval;
1: + u64 ntp_tick;
1: + s64 ntp_error;
1: + u32 ntp_error_shift;
1: + u32 ntp_err_mult;
1: + u32 skip_second_overflow;
1: +};
1: +
1: +struct iommu_pool {
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int hint;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct iommu_table_ops;
1: +
1: +struct iommu_table {
1: + long unsigned int it_busno;
1: + long unsigned int it_size;
1: + long unsigned int it_indirect_levels;
1: + long unsigned int it_level_size;
1: + long unsigned int it_allocated_size;
1: + long unsigned int it_offset;
1: + long unsigned int it_base;
1: + long unsigned int it_index;
1: + long unsigned int it_type;
1: + long unsigned int it_blocksize;
1: + long unsigned int poolsize;
1: + long unsigned int nr_pools;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct iommu_pool large_pool;
1: + struct iommu_pool pools[4];
1: + long unsigned int *it_map;
1: + long unsigned int it_page_shift;
1: + struct list_head it_group_list;
1: + __be64 *it_userspace;
1: + struct iommu_table_ops *it_ops;
1: + struct kref it_kref;
1: + int it_nid;
1: + long unsigned int it_reserved_start;
1: + long unsigned int it_reserved_end;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct iommu_table_group_ops;
1: +
1: +struct iommu_table_group {
1: + __u32 tce32_start;
1: + __u32 tce32_size;
1: + __u64 pgsizes;
1: + __u32 max_dynamic_windows_supported;
1: + __u32 max_levels;
1: + struct iommu_group *group;
1: + struct iommu_table *tables[2];
1: + struct iommu_table_group_ops *ops;
1: +};
1: +
1: +typedef __be32 fdt32_t;
1: +
1: +struct fdt_header {
1: + fdt32_t magic;
1: + fdt32_t totalsize;
1: + fdt32_t off_dt_struct;
1: + fdt32_t off_dt_strings;
1: + fdt32_t off_mem_rsvmap;
1: + fdt32_t version;
1: + fdt32_t last_comp_version;
1: + fdt32_t boot_cpuid_phys;
1: + fdt32_t size_dt_strings;
1: + fdt32_t size_dt_struct;
1: +};
1: +
1: +struct iommu_table_ops {
1: + int (*set)(struct iommu_table *, long int, long int, long unsigned int, enum dma_data_direction, long unsigned int);
1: + int (*xchg_no_kill)(struct iommu_table *, long int, long unsigned int *, enum dma_data_direction *, bool);
1: + void (*tce_kill)(struct iommu_table *, long unsigned int, long unsigned int, bool);
1: + __be64 * (*useraddrptr)(struct iommu_table *, long int, bool);
1: + void (*clear)(struct iommu_table *, long int, long int);
1: + long unsigned int (*get)(struct iommu_table *, long int);
1: + void (*flush)(struct iommu_table *);
1: + void (*free)(struct iommu_table *);
1: +};
1: +
1: +struct iommu_table_group_ops {
1: + long unsigned int (*get_table_size)(__u32, __u64, __u32);
1: + long int (*create_table)(struct iommu_table_group *, int, __u32, __u64, __u32, struct iommu_table **);
1: + long int (*set_window)(struct iommu_table_group *, int, struct iommu_table *);
1: + long int (*unset_window)(struct iommu_table_group *, int);
1: + void (*take_ownership)(struct iommu_table_group *);
1: + void (*release_ownership)(struct iommu_table_group *);
1: +};
1: +
1: +struct drmem_lmb {
1: + u64 base_addr;
1: + u32 drc_index;
1: + u32 aa_index;
1: + u32 flags;
1: +};
1: +
1: +struct drmem_lmb_info {
1: + struct drmem_lmb *lmbs;
1: + int n_lmbs;
1: + u64 lmb_size;
1: +};
1: +
1: +struct ibm_pa_feature {
1: + long unsigned int cpu_features;
1: + long unsigned int mmu_features;
1: + unsigned int cpu_user_ftrs;
1: + unsigned int cpu_user_ftrs2;
1: + unsigned char pabyte;
1: + unsigned char pabit;
1: + unsigned char invert;
1: +};
1: +
1: +struct feature_property {
1: + const char *name;
1: + u32 min_value;
1: + long unsigned int cpu_feature;
1: + long unsigned int cpu_user_ftr;
1: +};
1: +
1: +enum lockdep_ok {
1: + LOCKDEP_STILL_OK = 0,
1: + LOCKDEP_NOW_UNRELIABLE = 1,
1: +};
1: +
1: +enum bug_trap_type {
1: + BUG_TRAP_TYPE_NONE = 0,
1: + BUG_TRAP_TYPE_WARN = 1,
1: + BUG_TRAP_TYPE_BUG = 2,
1: +};
1: +
1: +enum ctx_state {
1: + CONTEXT_DISABLED = 4294967295,
1: + CONTEXT_KERNEL = 0,
1: + CONTEXT_USER = 1,
1: + CONTEXT_GUEST = 2,
1: +};
1: +
1: +typedef int kexec_probe_t(const char *, long unsigned int);
1: +
1: +typedef void *kexec_load_t(struct kimage *, char *, long unsigned int, char *, long unsigned int, char *, long unsigned int);
1: +
1: +typedef int kexec_cleanup_t(void *);
1: +
1: +struct kexec_file_ops {
1: + kexec_probe_t *probe;
1: + kexec_load_t *load;
1: + kexec_cleanup_t *cleanup;
1: +};
1: +
1: +struct crash_mem;
1: +
1: +struct kimage_arch {
1: + struct crash_mem *exclude_ranges;
1: + long unsigned int backup_start;
1: + void *backup_buf;
1: + long unsigned int elfcorehdr_addr;
1: + long unsigned int elf_headers_sz;
1: + void *elf_headers;
1: +};
1: +
1: +struct crash_mem_range {
1: + u64 start;
1: + u64 end;
1: +};
1: +
1: +struct crash_mem {
1: + unsigned int max_nr_ranges;
1: + unsigned int nr_ranges;
1: + struct crash_mem_range ranges[0];
1: +};
1: +
1: +typedef long unsigned int kimage_entry_t;
1: +
1: +struct kexec_segment {
1: + union {
1: + void *buf;
1: + void *kbuf;
1: + };
1: + size_t bufsz;
1: + long unsigned int mem;
1: + size_t memsz;
1: +};
1: +
1: +struct purgatory_info {
1: + const Elf64_Ehdr *ehdr;
1: + Elf64_Shdr *sechdrs;
1: + void *purgatory_buf;
1: +};
1: +
1: +struct kimage {
1: + kimage_entry_t head;
1: + kimage_entry_t *entry;
1: + kimage_entry_t *last_entry;
1: + long unsigned int start;
1: + struct page *control_code_page;
1: + struct page *swap_page;
1: + void *vmcoreinfo_data_copy;
1: + long unsigned int nr_segments;
1: + struct kexec_segment segment[16];
1: + struct list_head control_pages;
1: + struct list_head dest_pages;
1: + struct list_head unusable_pages;
1: + long unsigned int control_page;
1: + unsigned int type: 1;
1: + unsigned int preserve_context: 1;
1: + unsigned int file_mode: 1;
1: + struct kimage_arch arch;
1: + void *kernel_buf;
1: + long unsigned int kernel_buf_len;
1: + void *initrd_buf;
1: + long unsigned int initrd_buf_len;
1: + char *cmdline_buf;
1: + long unsigned int cmdline_buf_len;
1: + const struct kexec_file_ops *fops;
1: + void *image_loader_data;
1: + struct purgatory_info purgatory_info;
1: +};
1: +
1: +enum con_flush_mode {
1: + CONSOLE_FLUSH_PENDING = 0,
1: + CONSOLE_REPLAY_ALL = 1,
1: +};
1: +
1: +enum kmsg_dump_reason {
1: + KMSG_DUMP_UNDEF = 0,
1: + KMSG_DUMP_PANIC = 1,
1: + KMSG_DUMP_OOPS = 2,
1: + KMSG_DUMP_EMERG = 3,
1: + KMSG_DUMP_SHUTDOWN = 4,
1: + KMSG_DUMP_MAX = 5,
1: +};
1: +
1: +struct atomic_notifier_head {
1: + spinlock_t lock;
1: + struct notifier_block *head;
1: +};
1: +
1: +struct screen_info {
1: + __u8 orig_x;
1: + __u8 orig_y;
1: + __u16 ext_mem_k;
1: + __u16 orig_video_page;
1: + __u8 orig_video_mode;
1: + __u8 orig_video_cols;
1: + __u8 flags;
1: + __u8 unused2;
1: + __u16 orig_video_ega_bx;
1: + __u16 unused3;
1: + __u8 orig_video_lines;
1: + __u8 orig_video_isVGA;
1: + __u16 orig_video_points;
1: + __u16 lfb_width;
1: + __u16 lfb_height;
1: + __u16 lfb_depth;
1: + __u32 lfb_base;
1: + __u32 lfb_size;
1: + __u16 cl_magic;
1: + __u16 cl_offset;
1: + __u16 lfb_linelength;
1: + __u8 red_size;
1: + __u8 red_pos;
1: + __u8 green_size;
1: + __u8 green_pos;
1: + __u8 blue_size;
1: + __u8 blue_pos;
1: + __u8 rsvd_size;
1: + __u8 rsvd_pos;
1: + __u16 vesapm_seg;
1: + __u16 vesapm_off;
1: + __u16 pages;
1: + __u16 vesa_attributes;
1: + __u32 capabilities;
1: + __u32 ext_lfb_base;
1: + __u8 _reserved[2];
1: +} __attribute__((packed));
1: +
1: +struct serial_struct {
1: + int type;
1: + int line;
1: + unsigned int port;
1: + int irq;
1: + int flags;
1: + int xmit_fifo_size;
1: + int custom_divisor;
1: + int baud_base;
1: + short unsigned int close_delay;
1: + char io_type;
1: + char reserved_char[1];
1: + int hub6;
1: + short unsigned int closing_wait;
1: + short unsigned int closing_wait2;
1: + unsigned char *iomem_base;
1: + short unsigned int iomem_reg_shift;
1: + unsigned int port_high;
1: + long unsigned int iomap_base;
1: +};
1: +
1: +struct serial_icounter_struct {
1: + int cts;
1: + int dsr;
1: + int rng;
1: + int dcd;
1: + int rx;
1: + int tx;
1: + int frame;
1: + int overrun;
1: + int parity;
1: + int brk;
1: + int buf_overrun;
1: + int reserved[9];
1: +};
1: +
1: +struct console {
1: + char name[16];
1: + void (*write)(struct console *, const char *, unsigned int);
1: + int (*read)(struct console *, char *, unsigned int);
1: + struct tty_driver * (*device)(struct console *, int *);
1: + void (*unblank)();
1: + int (*setup)(struct console *, char *);
1: + int (*exit)(struct console *);
1: + int (*match)(struct console *, char *, int, char *);
1: + short int flags;
1: + short int index;
1: + int cflag;
1: + void *data;
1: + struct console *next;
1: +};
1: +
1: +struct ppc_debug_info {
1: + __u32 version;
1: + __u32 num_instruction_bps;
1: + __u32 num_data_bps;
1: + __u32 num_condition_regs;
1: + __u32 data_bp_alignment;
1: + __u32 sizeof_condition;
1: + __u64 features;
1: +};
1: +
1: +struct ppc_hw_breakpoint {
1: + __u32 version;
1: + __u32 trigger_type;
1: + __u32 addr_mode;
1: + __u32 condition_mode;
1: + __u64 addr;
1: + __u64 addr2;
1: + __u64 condition_value;
1: +};
1: +
1: +struct membuf {
1: + void *p;
1: + size_t left;
1: +};
1: +
1: +struct user_regset;
1: +
1: +typedef int user_regset_active_fn(struct task_struct *, const struct user_regset *);
1: +
1: +typedef int user_regset_get2_fn(struct task_struct *, const struct user_regset *, struct membuf);
1: +
1: +typedef int user_regset_set_fn(struct task_struct *, const struct user_regset *, unsigned int, unsigned int, const void *, const void *);
1: +
1: +typedef int user_regset_writeback_fn(struct task_struct *, const struct user_regset *, int);
1: +
1: +struct user_regset {
1: + user_regset_get2_fn *regset_get;
1: + user_regset_set_fn *set;
1: + user_regset_active_fn *active;
1: + user_regset_writeback_fn *writeback;
1: + unsigned int n;
1: + unsigned int size;
1: + unsigned int align;
1: + unsigned int bias;
1: + unsigned int core_note_type;
1: +};
1: +
1: +struct user_regset_view {
1: + const char *name;
1: + const struct user_regset *regsets;
1: + unsigned int n;
1: + u32 e_flags;
1: + u16 e_machine;
1: + u8 ei_osabi;
1: +};
1: +
1: +struct trace_event_raw_sys_enter {
1: + struct trace_entry ent;
1: + long int id;
1: + long unsigned int args[6];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sys_exit {
1: + struct trace_entry ent;
1: + long int id;
1: + long int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_sys_enter {};
1: +
1: +struct trace_event_data_offsets_sys_exit {};
1: +
1: +typedef void (*btf_trace_sys_enter)(void *, struct pt_regs *, long int);
1: +
1: +typedef void (*btf_trace_sys_exit)(void *, struct pt_regs *, long int);
1: +
1: +enum powerpc_regset {
1: + REGSET_GPR = 0,
1: + REGSET_FPR = 1,
1: + REGSET_VMX = 2,
1: + REGSET_VSX = 3,
1: + REGSET_TM_CGPR = 4,
1: + REGSET_TM_CFPR = 5,
1: + REGSET_TM_CVMX = 6,
1: + REGSET_TM_CVSX = 7,
1: + REGSET_TM_SPR = 8,
1: + REGSET_TM_CTAR = 9,
1: + REGSET_TM_CPPR = 10,
1: + REGSET_TM_CDSCR = 11,
1: + REGSET_PPR = 12,
1: + REGSET_DSCR = 13,
1: + REGSET_TAR = 14,
1: + REGSET_EBB = 15,
1: + REGSET_PMR = 16,
1: + REGSET_PKEY = 17,
1: +};
1: +
1: +struct pt_regs_offset {
1: + const char *name;
1: + int offset;
1: +};
1: +
1: +typedef u32 compat_ulong_t;
1: +
1: +enum perf_type_id {
1: + PERF_TYPE_HARDWARE = 0,
1: + PERF_TYPE_SOFTWARE = 1,
1: + PERF_TYPE_TRACEPOINT = 2,
1: + PERF_TYPE_HW_CACHE = 3,
1: + PERF_TYPE_RAW = 4,
1: + PERF_TYPE_BREAKPOINT = 5,
1: + PERF_TYPE_MAX = 6,
1: +};
1: +
1: +typedef struct {
1: + pgd_t pgd;
1: +} p4d_t;
1: +
1: +struct ppc_pci_io {
1: + u8 (*readb)(const volatile void *);
1: + u16 (*readw)(const volatile void *);
1: + u32 (*readl)(const volatile void *);
1: + u16 (*readw_be)(const volatile void *);
1: + u32 (*readl_be)(const volatile void *);
1: + void (*writeb)(u8, volatile void *);
1: + void (*writew)(u16, volatile void *);
1: + void (*writel)(u32, volatile void *);
1: + void (*writew_be)(u16, volatile void *);
1: + void (*writel_be)(u32, volatile void *);
1: + u64 (*readq)(const volatile void *);
1: + u64 (*readq_be)(const volatile void *);
1: + void (*writeq)(u64, volatile void *);
1: + void (*writeq_be)(u64, volatile void *);
1: + u8 (*inb)(long unsigned int);
1: + u16 (*inw)(long unsigned int);
1: + u32 (*inl)(long unsigned int);
1: + void (*outb)(u8, long unsigned int);
1: + void (*outw)(u16, long unsigned int);
1: + void (*outl)(u32, long unsigned int);
1: + void (*readsb)(const volatile void *, void *, long unsigned int);
1: + void (*readsw)(const volatile void *, void *, long unsigned int);
1: + void (*readsl)(const volatile void *, void *, long unsigned int);
1: + void (*writesb)(volatile void *, const void *, long unsigned int);
1: + void (*writesw)(volatile void *, const void *, long unsigned int);
1: + void (*writesl)(volatile void *, const void *, long unsigned int);
1: + void (*insb)(long unsigned int, void *, long unsigned int);
1: + void (*insw)(long unsigned int, void *, long unsigned int);
1: + void (*insl)(long unsigned int, void *, long unsigned int);
1: + void (*outsb)(long unsigned int, const void *, long unsigned int);
1: + void (*outsw)(long unsigned int, const void *, long unsigned int);
1: + void (*outsl)(long unsigned int, const void *, long unsigned int);
1: + void (*memset_io)(volatile void *, int, long unsigned int);
1: + void (*memcpy_fromio)(void *, const volatile void *, long unsigned int);
1: + void (*memcpy_toio)(volatile void *, const void *, long unsigned int);
1: +};
1: +
1: +enum l1d_flush_type {
1: + L1D_FLUSH_NONE = 1,
1: + L1D_FLUSH_FALLBACK = 2,
1: + L1D_FLUSH_ORI = 4,
1: + L1D_FLUSH_MTTRIG = 8,
1: +};
1: +
1: +enum memblock_flags {
1: + MEMBLOCK_NONE = 0,
1: + MEMBLOCK_HOTPLUG = 1,
1: + MEMBLOCK_MIRROR = 2,
1: + MEMBLOCK_NOMAP = 4,
1: +};
1: +
1: +struct memblock_region {
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + enum memblock_flags flags;
1: + int nid;
1: +};
1: +
1: +struct memblock_type {
1: + long unsigned int cnt;
1: + long unsigned int max;
1: + phys_addr_t total_size;
1: + struct memblock_region *regions;
1: + char *name;
1: +};
1: +
1: +struct memblock {
1: + bool bottom_up;
1: + phys_addr_t current_limit;
1: + struct memblock_type memory;
1: + struct memblock_type reserved;
1: +};
1: +
1: +struct semaphore {
1: + raw_spinlock_t lock;
1: + unsigned int count;
1: + struct list_head wait_list;
1: +};
1: +
1: +struct kmsg_dumper {
1: + struct list_head list;
1: + void (*dump)(struct kmsg_dumper *, enum kmsg_dump_reason);
1: + enum kmsg_dump_reason max_reason;
1: + bool active;
1: + bool registered;
1: + u32 cur_idx;
1: + u32 next_idx;
1: + u64 cur_seq;
1: + u64 next_seq;
1: +};
1: +
1: +enum pstore_type_id {
1: + PSTORE_TYPE_DMESG = 0,
1: + PSTORE_TYPE_MCE = 1,
1: + PSTORE_TYPE_CONSOLE = 2,
1: + PSTORE_TYPE_FTRACE = 3,
1: + PSTORE_TYPE_PPC_RTAS = 4,
1: + PSTORE_TYPE_PPC_OF = 5,
1: + PSTORE_TYPE_PPC_COMMON = 6,
1: + PSTORE_TYPE_PMSG = 7,
1: + PSTORE_TYPE_PPC_OPAL = 8,
1: + PSTORE_TYPE_MAX = 9,
1: +};
1: +
1: +struct pstore_info;
1: +
1: +struct pstore_record {
1: + struct pstore_info *psi;
1: + enum pstore_type_id type;
1: + u64 id;
1: + struct timespec64 time;
1: + char *buf;
1: + ssize_t size;
1: + ssize_t ecc_notice_size;
1: + int count;
1: + enum kmsg_dump_reason reason;
1: + unsigned int part;
1: + bool compressed;
1: +};
1: +
1: +struct pstore_info {
1: + struct module *owner;
1: + const char *name;
1: + struct semaphore buf_lock;
1: + char *buf;
1: + size_t bufsize;
1: + struct mutex read_mutex;
1: + int flags;
1: + int max_reason;
1: + void *data;
1: + int (*open)(struct pstore_info *);
1: + int (*close)(struct pstore_info *);
1: + ssize_t (*read)(struct pstore_record *);
1: + int (*write)(struct pstore_record *);
1: + int (*write_user)(struct pstore_record *, const char *);
1: + int (*erase)(struct pstore_record *);
1: +};
1: +
1: +typedef unsigned char Byte;
1: +
1: +typedef long unsigned int uLong;
1: +
1: +struct internal_state;
1: +
1: +struct z_stream_s {
1: + const Byte *next_in;
1: + uLong avail_in;
1: + uLong total_in;
1: + Byte *next_out;
1: + uLong avail_out;
1: + uLong total_out;
1: + char *msg;
1: + struct internal_state *state;
1: + void *workspace;
1: + int data_type;
1: + uLong adler;
1: + uLong reserved;
1: +};
1: +
1: +struct internal_state {
1: + int dummy;
1: +};
1: +
1: +struct err_log_info {
1: + __be32 error_type;
1: + __be32 seq_num;
1: +};
1: +
1: +struct nvram_os_partition {
1: + const char *name;
1: + int req_size;
1: + int min_size;
1: + long int size;
1: + long int index;
1: + bool os_partition;
1: +};
1: +
1: +struct oops_log_info {
1: + __be16 version;
1: + __be16 report_length;
1: + __be64 timestamp;
1: +} __attribute__((packed));
1: +
1: +struct nvram_header {
1: + unsigned char signature;
1: + unsigned char checksum;
1: + short unsigned int length;
1: + char name[12];
1: +};
1: +
1: +struct nvram_partition {
1: + struct list_head partition;
1: + struct nvram_header header;
1: + unsigned int index;
1: +};
1: +
1: +typedef long int (*syscall_fn)(long int, long int, long int, long int, long int, long int);
1: +
1: +typedef u32 compat_size_t;
1: +
1: +typedef s32 compat_ssize_t;
1: +
1: +typedef long unsigned int uintptr_t;
1: +
1: +typedef unsigned int elf_greg_t32;
1: +
1: +typedef elf_greg_t32 elf_gregset_t32[48];
1: +
1: +typedef elf_vrreg_t elf_vrregset_t32[33];
1: +
1: +typedef elf_fpreg_t elf_vsrreghalf_t32[32];
1: +
1: +typedef s32 compat_clock_t;
1: +
1: +typedef s32 compat_pid_t;
1: +
1: +typedef s32 compat_timer_t;
1: +
1: +typedef s32 compat_int_t;
1: +
1: +typedef u32 __compat_uid32_t;
1: +
1: +typedef u32 compat_sigset_word;
1: +
1: +struct compat_sigaltstack {
1: + compat_uptr_t ss_sp;
1: + int ss_flags;
1: + compat_size_t ss_size;
1: +};
1: +
1: +typedef struct compat_sigaltstack compat_stack_t;
1: +
1: +typedef struct {
1: + compat_sigset_word sig[2];
1: +} compat_sigset_t;
1: +
1: +union compat_sigval {
1: + compat_int_t sival_int;
1: + compat_uptr_t sival_ptr;
1: +};
1: +
1: +typedef union compat_sigval compat_sigval_t;
1: +
1: +struct compat_siginfo {
1: + int si_signo;
1: + int si_errno;
1: + int si_code;
1: + union {
1: + int _pad[29];
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + } _kill;
1: + struct {
1: + compat_timer_t _tid;
1: + int _overrun;
1: + compat_sigval_t _sigval;
1: + } _timer;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + compat_sigval_t _sigval;
1: + } _rt;
1: + struct {
1: + compat_pid_t _pid;
1: + __compat_uid32_t _uid;
1: + int _status;
1: + compat_clock_t _utime;
1: + compat_clock_t _stime;
1: + } _sigchld;
1: + struct {
1: + compat_uptr_t _addr;
1: + union {
1: + short int _addr_lsb;
1: + struct {
1: + char _dummy_bnd[4];
1: + compat_uptr_t _lower;
1: + compat_uptr_t _upper;
1: + } _addr_bnd;
1: + struct {
1: + char _dummy_pkey[4];
1: + u32 _pkey;
1: + } _addr_pkey;
1: + };
1: + } _sigfault;
1: + struct {
1: + compat_long_t _band;
1: + int _fd;
1: + } _sigpoll;
1: + struct {
1: + compat_uptr_t _call_addr;
1: + int _syscall;
1: + unsigned int _arch;
1: + } _sigsys;
1: + } _sifields;
1: +};
1: +
1: +typedef struct compat_siginfo compat_siginfo_t;
1: +
1: +struct sigcontext32 {
1: + unsigned int _unused[4];
1: + int signal;
1: + compat_uptr_t handler;
1: + unsigned int oldmask;
1: + compat_uptr_t regs;
1: +};
1: +
1: +struct mcontext32 {
1: + elf_gregset_t32 mc_gregs;
1: + elf_fpregset_t mc_fregs;
1: + unsigned int mc_pad[2];
1: + elf_vrregset_t32 mc_vregs;
1: + elf_vsrreghalf_t32 mc_vsregs;
1: +};
1: +
1: +struct ucontext32 {
1: + unsigned int uc_flags;
1: + unsigned int uc_link;
1: + compat_stack_t uc_stack;
1: + int uc_pad[7];
1: + compat_uptr_t uc_regs;
1: + compat_sigset_t uc_sigmask;
1: + int uc_maskext[30];
1: + int uc_pad2[3];
1: + struct mcontext32 uc_mcontext;
1: +};
1: +
1: +struct sigframe {
1: + struct sigcontext32 sctx;
1: + struct mcontext32 mctx;
1: + struct sigcontext32 sctx_transact;
1: + struct mcontext32 mctx_transact;
1: + int abigap[56];
1: +};
1: +
1: +struct rt_sigframe___2 {
1: + compat_siginfo_t info;
1: + struct ucontext32 uc;
1: + struct ucontext32 uc_transact;
1: + int abigap[56];
1: +};
1: +
1: +enum hrtimer_mode {
1: + HRTIMER_MODE_ABS = 0,
1: + HRTIMER_MODE_REL = 1,
1: + HRTIMER_MODE_PINNED = 2,
1: + HRTIMER_MODE_SOFT = 4,
1: + HRTIMER_MODE_HARD = 8,
1: + HRTIMER_MODE_ABS_PINNED = 2,
1: + HRTIMER_MODE_REL_PINNED = 3,
1: + HRTIMER_MODE_ABS_SOFT = 4,
1: + HRTIMER_MODE_REL_SOFT = 5,
1: + HRTIMER_MODE_ABS_PINNED_SOFT = 6,
1: + HRTIMER_MODE_REL_PINNED_SOFT = 7,
1: + HRTIMER_MODE_ABS_HARD = 8,
1: + HRTIMER_MODE_REL_HARD = 9,
1: + HRTIMER_MODE_ABS_PINNED_HARD = 10,
1: + HRTIMER_MODE_REL_PINNED_HARD = 11,
1: +};
1: +
1: +struct die_args {
1: + struct pt_regs *regs;
1: + const char *str;
1: + long int err;
1: + int trapnr;
1: + int signr;
1: +};
1: +
1: +enum {
1: + HW_BREAKPOINT_EMPTY = 0,
1: + HW_BREAKPOINT_R = 1,
1: + HW_BREAKPOINT_W = 2,
1: + HW_BREAKPOINT_RW = 3,
1: + HW_BREAKPOINT_X = 4,
1: + HW_BREAKPOINT_INVALID = 7,
1: +};
1: +
1: +enum bp_type_idx {
1: + TYPE_INST = 0,
1: + TYPE_DATA = 1,
1: + TYPE_MAX = 2,
1: +};
1: +
1: +struct breakpoint {
1: + struct list_head list;
1: + struct perf_event *bp;
1: + bool ptrace_bp;
1: +};
1: +
1: +enum {
1: + WORK_STRUCT_PENDING_BIT = 0,
1: + WORK_STRUCT_DELAYED_BIT = 1,
1: + WORK_STRUCT_PWQ_BIT = 2,
1: + WORK_STRUCT_LINKED_BIT = 3,
1: + WORK_STRUCT_COLOR_SHIFT = 4,
1: + WORK_STRUCT_COLOR_BITS = 4,
1: + WORK_STRUCT_PENDING = 1,
1: + WORK_STRUCT_DELAYED = 2,
1: + WORK_STRUCT_PWQ = 4,
1: + WORK_STRUCT_LINKED = 8,
1: + WORK_STRUCT_STATIC = 0,
1: + WORK_NR_COLORS = 15,
1: + WORK_NO_COLOR = 15,
1: + WORK_CPU_UNBOUND = 2048,
1: + WORK_STRUCT_FLAG_BITS = 8,
1: + WORK_OFFQ_FLAG_BASE = 4,
1: + __WORK_OFFQ_CANCELING = 4,
1: + WORK_OFFQ_CANCELING = 16,
1: + WORK_OFFQ_FLAG_BITS = 1,
1: + WORK_OFFQ_POOL_SHIFT = 5,
1: + WORK_OFFQ_LEFT = 59,
1: + WORK_OFFQ_POOL_BITS = 31,
1: + WORK_OFFQ_POOL_NONE = 2147483647,
1: + WORK_STRUCT_FLAG_MASK = 255,
1: + WORK_STRUCT_WQ_DATA_MASK = 4294967040,
1: + WORK_STRUCT_NO_POOL = 4294967264,
1: + WORK_BUSY_PENDING = 1,
1: + WORK_BUSY_RUNNING = 2,
1: + WORKER_DESC_LEN = 24,
1: +};
1: +
1: +struct mce_error_info {
1: + enum MCE_ErrorType error_type: 8;
1: + union {
1: + enum MCE_UeErrorType ue_error_type: 8;
1: + enum MCE_SlbErrorType slb_error_type: 8;
1: + enum MCE_EratErrorType erat_error_type: 8;
1: + enum MCE_TlbErrorType tlb_error_type: 8;
1: + enum MCE_UserErrorType user_error_type: 8;
1: + enum MCE_RaErrorType ra_error_type: 8;
1: + enum MCE_LinkErrorType link_error_type: 8;
1: + } u;
1: + enum MCE_Severity severity: 8;
1: + enum MCE_Initiator initiator: 8;
1: + enum MCE_ErrorClass error_class: 8;
1: + bool sync_error;
1: + bool ignore_event;
1: +};
1: +
1: +enum {
1: + DTRIG_UNKNOWN = 0,
1: + DTRIG_VECTOR_CI = 1,
1: + DTRIG_SUSPEND_ESCAPE = 2,
1: +};
1: +
1: +enum {
1: + TLB_INVAL_SCOPE_GLOBAL = 0,
1: + TLB_INVAL_SCOPE_LPID = 1,
1: +};
1: +
1: +struct mce_ierror_table {
1: + long unsigned int srr1_mask;
1: + long unsigned int srr1_value;
1: + bool nip_valid;
1: + unsigned int error_type;
1: + unsigned int error_subtype;
1: + unsigned int error_class;
1: + unsigned int initiator;
1: + unsigned int severity;
1: + bool sync_error;
1: +};
1: +
1: +struct mce_derror_table {
1: + long unsigned int dsisr_value;
1: + bool dar_valid;
1: + unsigned int error_type;
1: + unsigned int error_subtype;
1: + unsigned int error_class;
1: + unsigned int initiator;
1: + unsigned int severity;
1: + bool sync_error;
1: +};
1: +
1: +enum stf_barrier_type {
1: + STF_BARRIER_NONE = 1,
1: + STF_BARRIER_FALLBACK = 2,
1: + STF_BARRIER_EIEIO = 4,
1: + STF_BARRIER_SYNC_ORI = 8,
1: +};
1: +
1: +enum branch_cache_flush_type {
1: + BRANCH_CACHE_FLUSH_NONE = 1,
1: + BRANCH_CACHE_FLUSH_SW = 2,
1: + BRANCH_CACHE_FLUSH_HW = 4,
1: +};
1: +
1: +struct proc_ops {
1: + unsigned int proc_flags;
1: + int (*proc_open)(struct inode *, struct file *);
1: + ssize_t (*proc_read)(struct file *, char *, size_t, loff_t *);
1: + ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
1: + ssize_t (*proc_write)(struct file *, const char *, size_t, loff_t *);
1: + loff_t (*proc_lseek)(struct file *, loff_t, int);
1: + int (*proc_release)(struct inode *, struct file *);
1: + __poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
1: + long int (*proc_ioctl)(struct file *, unsigned int, long unsigned int);
1: + long int (*proc_compat_ioctl)(struct file *, unsigned int, long unsigned int);
1: + int (*proc_mmap)(struct file *, struct vm_area_struct *);
1: + long unsigned int (*proc_get_unmapped_area)(struct file *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +};
1: +
1: +typedef u16 uint16_t;
1: +
1: +struct rtas_t {
1: + long unsigned int entry;
1: + long unsigned int base;
1: + long unsigned int size;
1: + arch_spinlock_t lock;
1: + struct rtas_args args;
1: + struct device_node *dev;
1: +};
1: +
1: +struct rtas_suspend_me_data {
1: + atomic_t working;
1: + atomic_t done;
1: + int token;
1: + atomic_t error;
1: + struct completion *complete;
1: +};
1: +
1: +struct rtas_error_log {
1: + u8 byte0;
1: + u8 byte1;
1: + u8 byte2;
1: + u8 byte3;
1: + __be32 extended_log_length;
1: + unsigned char buffer[1];
1: +};
1: +
1: +struct rtas_ext_event_log_v6 {
1: + u8 byte0;
1: + u8 byte1;
1: + u8 byte2;
1: + u8 byte3;
1: + u8 reserved[8];
1: + __be32 company_id;
1: + u8 vendor_log[1];
1: +};
1: +
1: +struct pseries_errorlog {
1: + __be16 id;
1: + __be16 length;
1: + u8 version;
1: + u8 subtype;
1: + __be16 creator_component;
1: + u8 data[0];
1: +};
1: +
1: +struct rtas_filter {
1: + const char *name;
1: + int token;
1: + int buf_idx1;
1: + int size_idx1;
1: + int buf_idx2;
1: + int size_idx2;
1: + int fixed_size;
1: +};
1: +
1: +struct indicator_elem {
1: + __be32 token;
1: + __be32 maxindex;
1: +};
1: +
1: +typedef struct poll_table_struct poll_table;
1: +
1: +struct individual_sensor {
1: + unsigned int token;
1: + unsigned int quant;
1: +};
1: +
1: +struct rtas_sensors {
1: + struct individual_sensor sensor[17];
1: + unsigned int quant;
1: +};
1: +
1: +struct dt_cpu_feature {
1: + const char *name;
1: + uint32_t isa;
1: + uint32_t usable_privilege;
1: + uint32_t hv_support;
1: + uint32_t os_support;
1: + uint32_t hfscr_bit_nr;
1: + uint32_t fscr_bit_nr;
1: + uint32_t hwcap_bit_nr;
1: + long unsigned int node;
1: + int enabled;
1: + int disabled;
1: +};
1: +
1: +struct dt_cpu_feature_match {
1: + const char *name;
1: + int (*enable)(struct dt_cpu_feature *);
1: + u64 cpu_ftr_bit_mask;
1: +};
1: +
1: +struct iommu_fault_param;
1: +
1: +struct iommu_fwspec;
1: +
1: +struct dev_iommu {
1: + struct mutex lock;
1: + struct iommu_fault_param *fault_param;
1: + struct iommu_fwspec *fwspec;
1: + struct iommu_device *iommu_dev;
1: + void *priv;
1: +};
1: +
1: +struct eeh_ops {
1: + char *name;
1: + struct eeh_dev * (*probe)(struct pci_dev *);
1: + int (*set_option)(struct eeh_pe *, int);
1: + int (*get_state)(struct eeh_pe *, int *);
1: + int (*reset)(struct eeh_pe *, int);
1: + int (*get_log)(struct eeh_pe *, int, char *, long unsigned int);
1: + int (*configure_bridge)(struct eeh_pe *);
1: + int (*err_inject)(struct eeh_pe *, int, int, long unsigned int, long unsigned int);
1: + int (*read_config)(struct eeh_dev *, int, int, u32 *);
1: + int (*write_config)(struct eeh_dev *, int, int, u32);
1: + int (*next_error)(struct eeh_pe **);
1: + int (*restore_config)(struct eeh_dev *);
1: + int (*notify_resume)(struct eeh_dev *);
1: +};
1: +
1: +struct of_phandle_args {
1: + struct device_node *np;
1: + int args_count;
1: + uint32_t args[16];
1: +};
1: +
1: +enum pcie_reset_state {
1: + pcie_deassert_reset = 1,
1: + pcie_warm_reset = 2,
1: + pcie_hot_reset = 3,
1: +};
1: +
1: +struct iommu_fault_unrecoverable {
1: + __u32 reason;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 fetch_addr;
1: +};
1: +
1: +struct iommu_fault_page_request {
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 perm;
1: + __u64 addr;
1: + __u64 private_data[2];
1: +};
1: +
1: +struct iommu_fault {
1: + __u32 type;
1: + __u32 padding;
1: + union {
1: + struct iommu_fault_unrecoverable event;
1: + struct iommu_fault_page_request prm;
1: + __u8 padding2[56];
1: + };
1: +};
1: +
1: +struct iommu_page_response {
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 flags;
1: + __u32 pasid;
1: + __u32 grpid;
1: + __u32 code;
1: +};
1: +
1: +struct iommu_inv_addr_info {
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: + __u64 addr;
1: + __u64 granule_size;
1: + __u64 nb_granules;
1: +};
1: +
1: +struct iommu_inv_pasid_info {
1: + __u32 flags;
1: + __u32 archid;
1: + __u64 pasid;
1: +};
1: +
1: +struct iommu_cache_invalidate_info {
1: + __u32 argsz;
1: + __u32 version;
1: + __u8 cache;
1: + __u8 granularity;
1: + __u8 padding[6];
1: + union {
1: + struct iommu_inv_pasid_info pasid_info;
1: + struct iommu_inv_addr_info addr_info;
1: + } granu;
1: +};
1: +
1: +struct iommu_gpasid_bind_data_vtd {
1: + __u64 flags;
1: + __u32 pat;
1: + __u32 emt;
1: +};
1: +
1: +struct iommu_gpasid_bind_data {
1: + __u32 argsz;
1: + __u32 version;
1: + __u32 format;
1: + __u32 addr_width;
1: + __u64 flags;
1: + __u64 gpgd;
1: + __u64 hpasid;
1: + __u64 gpasid;
1: + __u8 padding[8];
1: + union {
1: + struct iommu_gpasid_bind_data_vtd vtd;
1: + } vendor;
1: +};
1: +
1: +typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, long unsigned int, int, void *);
1: +
1: +struct iommu_domain_geometry {
1: + dma_addr_t aperture_start;
1: + dma_addr_t aperture_end;
1: + bool force_aperture;
1: +};
1: +
1: +struct iommu_domain {
1: + unsigned int type;
1: + const struct iommu_ops *ops;
1: + long unsigned int pgsize_bitmap;
1: + iommu_fault_handler_t handler;
1: + void *handler_token;
1: + struct iommu_domain_geometry geometry;
1: + void *iova_cookie;
1: +};
1: +
1: +typedef int (*iommu_dev_fault_handler_t)(struct iommu_fault *, void *);
1: +
1: +enum iommu_resv_type {
1: + IOMMU_RESV_DIRECT = 0,
1: + IOMMU_RESV_DIRECT_RELAXABLE = 1,
1: + IOMMU_RESV_RESERVED = 2,
1: + IOMMU_RESV_MSI = 3,
1: + IOMMU_RESV_SW_MSI = 4,
1: +};
1: +
1: +struct iommu_resv_region {
1: + struct list_head list;
1: + phys_addr_t start;
1: + size_t length;
1: + int prot;
1: + enum iommu_resv_type type;
1: +};
1: +
1: +struct iommu_iotlb_gather {
1: + long unsigned int start;
1: + long unsigned int end;
1: + size_t pgsize;
1: +};
1: +
1: +struct iommu_device {
1: + struct list_head list;
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *fwnode;
1: + struct device *dev;
1: +};
1: +
1: +struct iommu_sva {
1: + struct device *dev;
1: +};
1: +
1: +struct iommu_fault_event {
1: + struct iommu_fault fault;
1: + struct list_head list;
1: +};
1: +
1: +struct iommu_fault_param {
1: + iommu_dev_fault_handler_t handler;
1: + void *data;
1: + struct list_head faults;
1: + struct mutex lock;
1: +};
1: +
1: +struct iommu_fwspec {
1: + const struct iommu_ops *ops;
1: + struct fwnode_handle *iommu_fwnode;
1: + u32 flags;
1: + u32 num_pasid_bits;
1: + unsigned int num_ids;
1: + u32 ids[0];
1: +};
1: +
1: +struct eeh_stats {
1: + u64 no_device;
1: + u64 no_dn;
1: + u64 no_cfg_addr;
1: + u64 ignored_check;
1: + u64 total_mmio_ffs;
1: + u64 false_positives;
1: + u64 slot_resets;
1: +};
1: +
1: +typedef void (*eeh_edev_traverse_func)(struct eeh_dev *, void *);
1: +
1: +typedef void * (*eeh_pe_traverse_func)(struct eeh_pe *, void *);
1: +
1: +enum {
1: + pci_channel_io_normal = 1,
1: + pci_channel_io_frozen = 2,
1: + pci_channel_io_perm_failure = 3,
1: +};
1: +
1: +struct pci_io_addr_range {
1: + struct rb_node rb_node;
1: + resource_size_t addr_lo;
1: + resource_size_t addr_hi;
1: + struct eeh_dev *edev;
1: + struct pci_dev *pcidev;
1: + long unsigned int flags;
1: +};
1: +
1: +struct pci_io_addr_cache {
1: + struct rb_root rb_root;
1: + spinlock_t piar_lock;
1: +};
1: +
1: +enum {
1: + EEH_NEXT_ERR_NONE = 0,
1: + EEH_NEXT_ERR_INF = 1,
1: + EEH_NEXT_ERR_FROZEN_PE = 2,
1: + EEH_NEXT_ERR_FENCED_PHB = 3,
1: + EEH_NEXT_ERR_DEAD_PHB = 4,
1: + EEH_NEXT_ERR_DEAD_IOC = 5,
1: +};
1: +
1: +enum {
1: + IRQD_TRIGGER_MASK = 15,
1: + IRQD_SETAFFINITY_PENDING = 256,
1: + IRQD_ACTIVATED = 512,
1: + IRQD_NO_BALANCING = 1024,
1: + IRQD_PER_CPU = 2048,
1: + IRQD_AFFINITY_SET = 4096,
1: + IRQD_LEVEL = 8192,
1: + IRQD_WAKEUP_STATE = 16384,
1: + IRQD_MOVE_PCNTXT = 32768,
1: + IRQD_IRQ_DISABLED = 65536,
1: + IRQD_IRQ_MASKED = 131072,
1: + IRQD_IRQ_INPROGRESS = 262144,
1: + IRQD_WAKEUP_ARMED = 524288,
1: + IRQD_FORWARDED_TO_VCPU = 1048576,
1: + IRQD_AFFINITY_MANAGED = 2097152,
1: + IRQD_IRQ_STARTED = 4194304,
1: + IRQD_MANAGED_SHUTDOWN = 8388608,
1: + IRQD_SINGLE_TARGET = 16777216,
1: + IRQD_DEFAULT_TRIGGER_SET = 33554432,
1: + IRQD_CAN_RESERVE = 67108864,
1: + IRQD_MSI_NOMASK_QUIRK = 134217728,
1: + IRQD_HANDLE_ENFORCE_IRQCTX = 268435456,
1: + IRQD_AFFINITY_ON_ACTIVATE = 536870912,
1: + IRQD_IRQ_ENABLED_ON_SUSPEND = 1073741824,
1: +};
1: +
1: +struct hotplug_slot_ops;
1: +
1: +struct hotplug_slot {
1: + const struct hotplug_slot_ops *ops;
1: + struct list_head slot_list;
1: + struct pci_slot *pci_slot;
1: + struct module *owner;
1: + const char *mod_name;
1: +};
1: +
1: +enum pci_ers_result {
1: + PCI_ERS_RESULT_NONE = 1,
1: + PCI_ERS_RESULT_CAN_RECOVER = 2,
1: + PCI_ERS_RESULT_NEED_RESET = 3,
1: + PCI_ERS_RESULT_DISCONNECT = 4,
1: + PCI_ERS_RESULT_RECOVERED = 5,
1: + PCI_ERS_RESULT_NO_AER_DRIVER = 6,
1: +};
1: +
1: +struct hotplug_slot_ops {
1: + int (*enable_slot)(struct hotplug_slot *);
1: + int (*disable_slot)(struct hotplug_slot *);
1: + int (*set_attention_status)(struct hotplug_slot *, u8);
1: + int (*hardware_test)(struct hotplug_slot *, u32);
1: + int (*get_power_status)(struct hotplug_slot *, u8 *);
1: + int (*get_attention_status)(struct hotplug_slot *, u8 *);
1: + int (*get_latch_status)(struct hotplug_slot *, u8 *);
1: + int (*get_adapter_status)(struct hotplug_slot *, u8 *);
1: + int (*reset_slot)(struct hotplug_slot *, int);
1: +};
1: +
1: +struct eeh_rmv_data {
1: + struct list_head removed_vf_list;
1: + int removed_dev_count;
1: +};
1: +
1: +typedef enum pci_ers_result (*eeh_report_fn)(struct eeh_dev *, struct pci_dev *, struct pci_driver *);
1: +
1: +struct eeh_event {
1: + struct list_head list;
1: + struct eeh_pe *pe;
1: +};
1: +
1: +typedef __s64 Elf64_Sxword;
1: +
1: +struct elf64_rela {
1: + Elf64_Addr r_offset;
1: + Elf64_Xword r_info;
1: + Elf64_Sxword r_addend;
1: +};
1: +
1: +typedef struct elf64_rela Elf64_Rela;
1: +
1: +struct modversion_info {
1: + long unsigned int crc;
1: + char name[56];
1: +};
1: +
1: +typedef long unsigned int func_desc_t;
1: +
1: +struct ppc64_stub_entry {
1: + u32 jump[7];
1: + u32 magic;
1: + func_desc_t funcdata;
1: +};
1: +
1: +enum jump_label_type {
1: + JUMP_LABEL_NOP = 0,
1: + JUMP_LABEL_JMP = 1,
1: +};
1: +
1: +enum pageflags {
1: + PG_locked = 0,
1: + PG_referenced = 1,
1: + PG_uptodate = 2,
1: + PG_dirty = 3,
1: + PG_lru = 4,
1: + PG_active = 5,
1: + PG_workingset = 6,
1: + PG_waiters = 7,
1: + PG_error = 8,
1: + PG_slab = 9,
1: + PG_owner_priv_1 = 10,
1: + PG_arch_1 = 11,
1: + PG_reserved = 12,
1: + PG_private = 13,
1: + PG_private_2 = 14,
1: + PG_writeback = 15,
1: + PG_head = 16,
1: + PG_mappedtodisk = 17,
1: + PG_reclaim = 18,
1: + PG_swapbacked = 19,
1: + PG_unevictable = 20,
1: + PG_mlocked = 21,
1: + PG_hwpoison = 22,
1: + PG_young = 23,
1: + PG_idle = 24,
1: + PG_arch_2 = 25,
1: + __NR_PAGEFLAGS = 26,
1: + PG_checked = 10,
1: + PG_swapcache = 10,
1: + PG_fscache = 14,
1: + PG_pinned = 10,
1: + PG_savepinned = 3,
1: + PG_foreign = 10,
1: + PG_xen_remapped = 10,
1: + PG_slob_free = 13,
1: + PG_double_map = 6,
1: + PG_isolated = 18,
1: + PG_reported = 2,
1: +};
1: +
1: +enum kgdb_bptype {
1: + BP_BREAKPOINT = 0,
1: + BP_HARDWARE_BREAKPOINT = 1,
1: + BP_WRITE_WATCHPOINT = 2,
1: + BP_READ_WATCHPOINT = 3,
1: + BP_ACCESS_WATCHPOINT = 4,
1: + BP_POKE_BREAKPOINT = 5,
1: +};
1: +
1: +enum kgdb_bpstate {
1: + BP_UNDEFINED = 0,
1: + BP_REMOVED = 1,
1: + BP_SET = 2,
1: + BP_ACTIVE = 3,
1: +};
1: +
1: +struct kgdb_bkpt {
1: + long unsigned int bpt_addr;
1: + unsigned char saved_instr[4];
1: + enum kgdb_bptype type;
1: + enum kgdb_bpstate state;
1: +};
1: +
1: +struct dbg_reg_def_t {
1: + char *name;
1: + int size;
1: + int offset;
1: +};
1: +
1: +struct kgdb_arch {
1: + unsigned char gdb_bpt_instr[4];
1: + long unsigned int flags;
1: + int (*set_breakpoint)(long unsigned int, char *);
1: + int (*remove_breakpoint)(long unsigned int, char *);
1: + int (*set_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + int (*remove_hw_breakpoint)(long unsigned int, int, enum kgdb_bptype);
1: + void (*disable_hw_break)(struct pt_regs *);
1: + void (*remove_all_hw_break)();
1: + void (*correct_hw_break)();
1: + void (*enable_nmi)(bool);
1: +};
1: +
1: +struct hard_trap_info {
1: + unsigned int tt;
1: + unsigned char signo;
1: +};
1: +
1: +enum {
1: + SD_BALANCE_NEWIDLE = 1,
1: + SD_BALANCE_EXEC = 2,
1: + SD_BALANCE_FORK = 4,
1: + SD_BALANCE_WAKE = 8,
1: + SD_WAKE_AFFINE = 16,
1: + SD_ASYM_CPUCAPACITY = 32,
1: + SD_SHARE_CPUCAPACITY = 64,
1: + SD_SHARE_PKG_RESOURCES = 128,
1: + SD_SERIALIZE = 256,
1: + SD_ASYM_PACKING = 512,
1: + SD_PREFER_SIBLING = 1024,
1: + SD_OVERLAP = 2048,
1: + SD_NUMA = 4096,
1: +};
1: +
1: +struct sched_domain_shared {
1: + atomic_t ref;
1: + atomic_t nr_busy_cpus;
1: + int has_idle_cores;
1: +};
1: +
1: +struct sched_group;
1: +
1: +struct sched_domain {
1: + struct sched_domain *parent;
1: + struct sched_domain *child;
1: + struct sched_group *groups;
1: + long unsigned int min_interval;
1: + long unsigned int max_interval;
1: + unsigned int busy_factor;
1: + unsigned int imbalance_pct;
1: + unsigned int cache_nice_tries;
1: + int nohz_idle;
1: + int flags;
1: + int level;
1: + long unsigned int last_balance;
1: + unsigned int balance_interval;
1: + unsigned int nr_balance_failed;
1: + u64 max_newidle_lb_cost;
1: + long unsigned int next_decay_max_lb_cost;
1: + u64 avg_scan_cost;
1: + unsigned int lb_count[3];
1: + unsigned int lb_failed[3];
1: + unsigned int lb_balanced[3];
1: + unsigned int lb_imbalance[3];
1: + unsigned int lb_gained[3];
1: + unsigned int lb_hot_gained[3];
1: + unsigned int lb_nobusyg[3];
1: + unsigned int lb_nobusyq[3];
1: + unsigned int alb_count;
1: + unsigned int alb_failed;
1: + unsigned int alb_pushed;
1: + unsigned int sbe_count;
1: + unsigned int sbe_balanced;
1: + unsigned int sbe_pushed;
1: + unsigned int sbf_count;
1: + unsigned int sbf_balanced;
1: + unsigned int sbf_pushed;
1: + unsigned int ttwu_wake_remote;
1: + unsigned int ttwu_move_affine;
1: + unsigned int ttwu_move_balance;
1: + char *name;
1: + union {
1: + void *private;
1: + struct callback_head rcu;
1: + };
1: + struct sched_domain_shared *shared;
1: + unsigned int span_weight;
1: + long unsigned int span[0];
1: +};
1: +
1: +typedef const struct cpumask * (*sched_domain_mask_f)(int);
1: +
1: +typedef int (*sched_domain_flags_f)();
1: +
1: +struct sched_group_capacity;
1: +
1: +struct sd_data {
1: + struct sched_domain **sd;
1: + struct sched_domain_shared **sds;
1: + struct sched_group **sg;
1: + struct sched_group_capacity **sgc;
1: +};
1: +
1: +struct sched_domain_topology_level {
1: + sched_domain_mask_f mask;
1: + sched_domain_flags_f sd_flags;
1: + int flags;
1: + int numa_level;
1: + struct sd_data data;
1: + char *name;
1: +};
1: +
1: +enum {
1: + smt_idx = 0,
1: + cache_idx = 1,
1: + mc_idx = 2,
1: + die_idx = 3,
1: +};
1: +
1: +struct thread_groups {
1: + unsigned int property;
1: + unsigned int nr_groups;
1: + unsigned int threads_per_group;
1: + unsigned int thread_list[8];
1: +};
1: +
1: +struct cpu_messages {
1: + long int messages;
1: +};
1: +
1: +typedef u32 ppc_opcode_t;
1: +
1: +typedef ppc_opcode_t kprobe_opcode_t;
1: +
1: +struct arch_specific_insn {
1: + kprobe_opcode_t *insn;
1: + int boostable;
1: +};
1: +
1: +struct kprobe;
1: +
1: +struct prev_kprobe {
1: + struct kprobe *kp;
1: + long unsigned int status;
1: + long unsigned int saved_msr;
1: +};
1: +
1: +typedef int (*kprobe_pre_handler_t)(struct kprobe *, struct pt_regs *);
1: +
1: +typedef void (*kprobe_post_handler_t)(struct kprobe *, struct pt_regs *, long unsigned int);
1: +
1: +typedef int (*kprobe_fault_handler_t)(struct kprobe *, struct pt_regs *, int);
1: +
1: +struct kprobe {
1: + struct hlist_node hlist;
1: + struct list_head list;
1: + long unsigned int nmissed;
1: + kprobe_opcode_t *addr;
1: + const char *symbol_name;
1: + unsigned int offset;
1: + kprobe_pre_handler_t pre_handler;
1: + kprobe_post_handler_t post_handler;
1: + kprobe_fault_handler_t fault_handler;
1: + kprobe_opcode_t opcode;
1: + struct arch_specific_insn ainsn;
1: + u32 flags;
1: +};
1: +
1: +struct kprobe_ctlblk {
1: + long unsigned int kprobe_status;
1: + long unsigned int kprobe_saved_msr;
1: + struct prev_kprobe prev_kprobe;
1: +};
1: +
1: +struct kretprobe_instance;
1: +
1: +typedef int (*kretprobe_handler_t)(struct kretprobe_instance *, struct pt_regs *);
1: +
1: +struct kretprobe;
1: +
1: +struct kretprobe_instance {
1: + union {
1: + struct hlist_node hlist;
1: + struct callback_head rcu;
1: + };
1: + struct kretprobe *rp;
1: + kprobe_opcode_t *ret_addr;
1: + struct task_struct *task;
1: + void *fp;
1: + char data[0];
1: +};
1: +
1: +struct kretprobe {
1: + struct kprobe kp;
1: + kretprobe_handler_t handler;
1: + kretprobe_handler_t entry_handler;
1: + int maxactive;
1: + int nmissed;
1: + size_t data_size;
1: + struct hlist_head free_instances;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct kretprobe_blackpoint {
1: + const char *name;
1: + void *addr;
1: +};
1: +
1: +struct kprobe_insn_cache {
1: + struct mutex mutex;
1: + void * (*alloc)();
1: + void (*free)(void *);
1: + const char *sym;
1: + struct list_head pages;
1: + size_t insn_size;
1: + int nr_garbage;
1: +};
1: +
1: +struct arch_optimized_insn {
1: + kprobe_opcode_t copied_insn[1];
1: + kprobe_opcode_t *insn;
1: +};
1: +
1: +struct optimized_kprobe {
1: + struct kprobe kp;
1: + struct list_head list;
1: + struct arch_optimized_insn optinsn;
1: +};
1: +
1: +typedef ppc_opcode_t uprobe_opcode_t;
1: +
1: +struct arch_uprobe {
1: + union {
1: + struct ppc_inst insn;
1: + struct ppc_inst ixol;
1: + };
1: +};
1: +
1: +enum rp_check {
1: + RP_CHECK_CALL = 0,
1: + RP_CHECK_CHAIN_CALL = 1,
1: + RP_CHECK_RET = 2,
1: +};
1: +
1: +struct serial_rs485 {
1: + __u32 flags;
1: + __u32 delay_rts_before_send;
1: + __u32 delay_rts_after_send;
1: + __u32 padding[5];
1: +};
1: +
1: +struct serial_iso7816 {
1: + __u32 flags;
1: + __u32 tg;
1: + __u32 sc_fi;
1: + __u32 sc_di;
1: + __u32 clk;
1: + __u32 reserved[5];
1: +};
1: +
1: +struct circ_buf {
1: + char *buf;
1: + int head;
1: + int tail;
1: +};
1: +
1: +struct uart_port;
1: +
1: +struct uart_ops {
1: + unsigned int (*tx_empty)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*stop_tx)(struct uart_port *);
1: + void (*start_tx)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + void (*send_xchar)(struct uart_port *, char);
1: + void (*stop_rx)(struct uart_port *);
1: + void (*enable_ms)(struct uart_port *);
1: + void (*break_ctl)(struct uart_port *, int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*flush_buffer)(struct uart_port *);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + const char * (*type)(struct uart_port *);
1: + void (*release_port)(struct uart_port *);
1: + int (*request_port)(struct uart_port *);
1: + void (*config_port)(struct uart_port *, int);
1: + int (*verify_port)(struct uart_port *, struct serial_struct *);
1: + int (*ioctl)(struct uart_port *, unsigned int, long unsigned int);
1: + int (*poll_init)(struct uart_port *);
1: + void (*poll_put_char)(struct uart_port *, unsigned char);
1: + int (*poll_get_char)(struct uart_port *);
1: +};
1: +
1: +struct uart_icount {
1: + __u32 cts;
1: + __u32 dsr;
1: + __u32 rng;
1: + __u32 dcd;
1: + __u32 rx;
1: + __u32 tx;
1: + __u32 frame;
1: + __u32 overrun;
1: + __u32 parity;
1: + __u32 brk;
1: + __u32 buf_overrun;
1: +};
1: +
1: +typedef unsigned int upf_t;
1: +
1: +typedef unsigned int upstat_t;
1: +
1: +struct gpio_desc;
1: +
1: +struct uart_state;
1: +
1: +struct uart_port {
1: + spinlock_t lock;
1: + long unsigned int iobase;
1: + unsigned char *membase;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + void (*set_mctrl)(struct uart_port *, unsigned int);
1: + unsigned int (*get_divisor)(struct uart_port *, unsigned int, unsigned int *);
1: + void (*set_divisor)(struct uart_port *, unsigned int, unsigned int, unsigned int);
1: + int (*startup)(struct uart_port *);
1: + void (*shutdown)(struct uart_port *);
1: + void (*throttle)(struct uart_port *);
1: + void (*unthrottle)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: + int (*rs485_config)(struct uart_port *, struct serial_rs485 *);
1: + int (*iso7816_config)(struct uart_port *, struct serial_iso7816 *);
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + unsigned int fifosize;
1: + unsigned char x_char;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char quirks;
1: + unsigned int read_status_mask;
1: + unsigned int ignore_status_mask;
1: + struct uart_state *state;
1: + struct uart_icount icount;
1: + struct console *cons;
1: + upf_t flags;
1: + upstat_t status;
1: + int hw_stopped;
1: + unsigned int mctrl;
1: + unsigned int timeout;
1: + unsigned int type;
1: + const struct uart_ops *ops;
1: + unsigned int custom_divisor;
1: + unsigned int line;
1: + unsigned int minor;
1: + resource_size_t mapbase;
1: + resource_size_t mapsize;
1: + struct device *dev;
1: + long unsigned int sysrq;
1: + unsigned int sysrq_ch;
1: + unsigned char has_sysrq;
1: + unsigned char sysrq_seq;
1: + unsigned char hub6;
1: + unsigned char suspended;
1: + unsigned char console_reinit;
1: + const char *name;
1: + struct attribute_group *attr_group;
1: + const struct attribute_group **tty_groups;
1: + struct serial_rs485 rs485;
1: + struct gpio_desc *rs485_term_gpio;
1: + struct serial_iso7816 iso7816;
1: + void *private_data;
1: +};
1: +
1: +enum uart_pm_state {
1: + UART_PM_STATE_ON = 0,
1: + UART_PM_STATE_OFF = 3,
1: + UART_PM_STATE_UNDEFINED = 4,
1: +};
1: +
1: +struct uart_state {
1: + struct tty_port port;
1: + enum uart_pm_state pm_state;
1: + struct circ_buf xmit;
1: + atomic_t refcount;
1: + wait_queue_head_t remove_wait;
1: + struct uart_port *uart_port;
1: +};
1: +
1: +struct plat_serial8250_port {
1: + long unsigned int iobase;
1: + void *membase;
1: + resource_size_t mapbase;
1: + unsigned int irq;
1: + long unsigned int irqflags;
1: + unsigned int uartclk;
1: + void *private_data;
1: + unsigned char regshift;
1: + unsigned char iotype;
1: + unsigned char hub6;
1: + unsigned char has_sysrq;
1: + upf_t flags;
1: + unsigned int type;
1: + unsigned int (*serial_in)(struct uart_port *, int);
1: + void (*serial_out)(struct uart_port *, int, int);
1: + void (*set_termios)(struct uart_port *, struct ktermios *, struct ktermios *);
1: + void (*set_ldisc)(struct uart_port *, struct ktermios *);
1: + unsigned int (*get_mctrl)(struct uart_port *);
1: + int (*handle_irq)(struct uart_port *);
1: + void (*pm)(struct uart_port *, unsigned int, unsigned int);
1: + void (*handle_break)(struct uart_port *);
1: +};
1: +
1: +enum {
1: + PLAT8250_DEV_LEGACY = 4294967295,
1: + PLAT8250_DEV_PLATFORM = 0,
1: + PLAT8250_DEV_PLATFORM1 = 1,
1: + PLAT8250_DEV_PLATFORM2 = 2,
1: + PLAT8250_DEV_FOURPORT = 3,
1: + PLAT8250_DEV_ACCENT = 4,
1: + PLAT8250_DEV_BOCA = 5,
1: + PLAT8250_DEV_EXAR_ST16C554 = 6,
1: + PLAT8250_DEV_HUB6 = 7,
1: + PLAT8250_DEV_AU1X00 = 8,
1: + PLAT8250_DEV_SM501 = 9,
1: +};
1: +
1: +struct legacy_serial_info {
1: + struct device_node *np;
1: + unsigned int speed;
1: + unsigned int clock;
1: + int irq_check_parent;
1: + phys_addr_t taddr;
1: +};
1: +
1: +struct mem_section_usage {
1: + long unsigned int subsection_map[1];
1: + long unsigned int pageblock_flags[0];
1: +};
1: +
1: +struct page_ext;
1: +
1: +struct mem_section {
1: + long unsigned int section_mem_map;
1: + struct mem_section_usage *usage;
1: + struct page_ext *page_ext;
1: + long unsigned int pad;
1: +};
1: +
1: +struct page_ext {
1: + long unsigned int flags;
1: +};
1: +
1: +struct stack_trace {
1: + unsigned int nr_entries;
1: + unsigned int max_entries;
1: + long unsigned int *entries;
1: + unsigned int skip;
1: +};
1: +
1: +enum {
1: + PCI_REASSIGN_ALL_RSRC = 1,
1: + PCI_REASSIGN_ALL_BUS = 2,
1: + PCI_PROBE_ONLY = 4,
1: + PCI_CAN_SKIP_ISA_ALIGN = 8,
1: + PCI_ENABLE_PROC_DOMAINS = 16,
1: + PCI_COMPAT_DOMAIN_0 = 32,
1: + PCI_SCAN_ALL_PCIE_DEVS = 64,
1: +};
1: +
1: +struct vm_struct {
1: + struct vm_struct *next;
1: + void *addr;
1: + long unsigned int size;
1: + long unsigned int flags;
1: + struct page **pages;
1: + unsigned int nr_pages;
1: + phys_addr_t phys_addr;
1: + const void *caller;
1: +};
1: +
1: +struct pci_fixup {
1: + u16 vendor;
1: + u16 device;
1: + u32 class;
1: + unsigned int class_shift;
1: + void (*hook)(struct pci_dev *);
1: +};
1: +
1: +struct pci_address {
1: + u32 a_hi;
1: + u32 a_mid;
1: + u32 a_lo;
1: +};
1: +
1: +struct isa_address {
1: + u32 a_hi;
1: + u32 a_lo;
1: +};
1: +
1: +struct isa_range {
1: + struct isa_address isa_addr;
1: + struct pci_address pci_addr;
1: + unsigned int size;
1: +};
1: +
1: +enum {
1: + IRQ_TYPE_NONE = 0,
1: + IRQ_TYPE_EDGE_RISING = 1,
1: + IRQ_TYPE_EDGE_FALLING = 2,
1: + IRQ_TYPE_EDGE_BOTH = 3,
1: + IRQ_TYPE_LEVEL_HIGH = 4,
1: + IRQ_TYPE_LEVEL_LOW = 8,
1: + IRQ_TYPE_LEVEL_MASK = 12,
1: + IRQ_TYPE_SENSE_MASK = 15,
1: + IRQ_TYPE_DEFAULT = 15,
1: + IRQ_TYPE_PROBE = 16,
1: + IRQ_LEVEL = 256,
1: + IRQ_PER_CPU = 512,
1: + IRQ_NOPROBE = 1024,
1: + IRQ_NOREQUEST = 2048,
1: + IRQ_NOAUTOEN = 4096,
1: + IRQ_NO_BALANCING = 8192,
1: + IRQ_MOVE_PCNTXT = 16384,
1: + IRQ_NESTED_THREAD = 32768,
1: + IRQ_NOTHREAD = 65536,
1: + IRQ_PER_CPU_DEVID = 131072,
1: + IRQ_IS_POLLED = 262144,
1: + IRQ_DISABLE_UNLAZY = 524288,
1: + IRQ_HIDDEN = 1048576,
1: +};
1: +
1: +enum pci_mmap_state {
1: + pci_mmap_io = 0,
1: + pci_mmap_mem = 1,
1: +};
1: +
1: +struct pci_sriov {
1: + int pos;
1: + int nres;
1: + u32 cap;
1: + u16 ctrl;
1: + u16 total_VFs;
1: + u16 initial_VFs;
1: + u16 num_VFs;
1: + u16 offset;
1: + u16 stride;
1: + u16 vf_device;
1: + u32 pgsz;
1: + u8 link;
1: + u8 max_VF_buses;
1: + u16 driver_max_VFs;
1: + struct pci_dev *dev;
1: + struct pci_dev *self;
1: + u32 class;
1: + u8 hdr_type;
1: + u16 subsystem_vendor;
1: + u16 subsystem_device;
1: + resource_size_t barsz[6];
1: + bool drivers_autoprobe;
1: +};
1: +
1: +typedef u64 pci_bus_addr_t;
1: +
1: +struct pci_bus_region {
1: + pci_bus_addr_t start;
1: + pci_bus_addr_t end;
1: +};
1: +
1: +struct of_bus;
1: +
1: +struct of_pci_range_parser {
1: + struct device_node *node;
1: + struct of_bus *bus;
1: + const __be32 *range;
1: + const __be32 *end;
1: + int na;
1: + int ns;
1: + int pna;
1: + bool dma;
1: +};
1: +
1: +struct of_pci_range {
1: + union {
1: + u64 pci_addr;
1: + u64 bus_addr;
1: + };
1: + u64 cpu_addr;
1: + u64 size;
1: + u32 flags;
1: +};
1: +
1: +enum pci_fixup_pass {
1: + pci_fixup_early = 0,
1: + pci_fixup_header = 1,
1: + pci_fixup_final = 2,
1: + pci_fixup_enable = 3,
1: + pci_fixup_resume = 4,
1: + pci_fixup_suspend = 5,
1: + pci_fixup_resume_early = 6,
1: + pci_fixup_suspend_late = 7,
1: +};
1: +
1: +struct dyn_arch_ftrace {
1: + struct module *mod;
1: +};
1: +
1: +enum {
1: + FTRACE_FL_ENABLED = 2147483648,
1: + FTRACE_FL_REGS = 1073741824,
1: + FTRACE_FL_REGS_EN = 536870912,
1: + FTRACE_FL_TRAMP = 268435456,
1: + FTRACE_FL_TRAMP_EN = 134217728,
1: + FTRACE_FL_IPMODIFY = 67108864,
1: + FTRACE_FL_DISABLED = 33554432,
1: + FTRACE_FL_DIRECT = 16777216,
1: + FTRACE_FL_DIRECT_EN = 8388608,
1: +};
1: +
1: +struct dyn_ftrace {
1: + long unsigned int ip;
1: + long unsigned int flags;
1: + struct dyn_arch_ftrace arch;
1: +};
1: +
1: +enum vm_fault_reason {
1: + VM_FAULT_OOM = 1,
1: + VM_FAULT_SIGBUS = 2,
1: + VM_FAULT_MAJOR = 4,
1: + VM_FAULT_WRITE = 8,
1: + VM_FAULT_HWPOISON = 16,
1: + VM_FAULT_HWPOISON_LARGE = 32,
1: + VM_FAULT_SIGSEGV = 64,
1: + VM_FAULT_NOPAGE = 256,
1: + VM_FAULT_LOCKED = 512,
1: + VM_FAULT_RETRY = 1024,
1: + VM_FAULT_FALLBACK = 2048,
1: + VM_FAULT_DONE_COW = 4096,
1: + VM_FAULT_NEEDDSYNC = 8192,
1: + VM_FAULT_HINDEX_MASK = 983040,
1: +};
1: +
1: +struct hstate {
1: + int next_nid_to_alloc;
1: + int next_nid_to_free;
1: + unsigned int order;
1: + long unsigned int mask;
1: + long unsigned int max_huge_pages;
1: + long unsigned int nr_huge_pages;
1: + long unsigned int free_huge_pages;
1: + long unsigned int resv_huge_pages;
1: + long unsigned int surplus_huge_pages;
1: + long unsigned int nr_overcommit_huge_pages;
1: + struct list_head hugepage_activelist;
1: + struct list_head hugepage_freelists[256];
1: + unsigned int nr_huge_pages_node[256];
1: + unsigned int free_huge_pages_node[256];
1: + unsigned int surplus_huge_pages_node[256];
1: + struct cftype cgroup_files_dfl[7];
1: + struct cftype cgroup_files_legacy[9];
1: + char name[32];
1: +};
1: +
1: +struct mhp_params {
1: + struct vmem_altmap *altmap;
1: + pgprot_t pgprot;
1: +};
1: +
1: +typedef struct {
1: + __be64 pdbe;
1: +} hugepd_t;
1: +
1: +struct hugepage_subpool {
1: + spinlock_t lock;
1: + long int count;
1: + long int max_hpages;
1: + long int used_hpages;
1: + struct hstate *hstate;
1: + long int min_hpages;
1: + long int rsv_hpages;
1: +};
1: +
1: +struct hugetlbfs_sb_info {
1: + long int max_inodes;
1: + long int free_inodes;
1: + spinlock_t stat_lock;
1: + struct hstate *hstate;
1: + struct hugepage_subpool *spool;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +struct vm_unmapped_area_info {
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: +};
1: +
1: +struct vmemmap_backing {
1: + struct vmemmap_backing *list;
1: + long unsigned int phys;
1: + long unsigned int virt_addr;
1: +};
1: +
1: +struct prtb_entry {
1: + __be64 prtb0;
1: + __be64 prtb1;
1: +};
1: +
1: +struct patb_entry {
1: + __be64 patb0;
1: + __be64 patb1;
1: +};
1: +
1: +enum {
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_READY = 1,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED = 2,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED_READY = 4,
1: + MEMBARRIER_STATE_GLOBAL_EXPEDITED = 8,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE_READY = 16,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ_READY = 64,
1: + MEMBARRIER_STATE_PRIVATE_EXPEDITED_RSEQ = 128,
1: +};
1: +
1: +struct of_drconf_cell_v1 {
1: + __be64 base_addr;
1: + __be32 drc_index;
1: + __be32 reserved;
1: + __be32 aa_index;
1: + __be32 flags;
1: +};
1: +
1: +struct of_drconf_cell_v2 {
1: + u32 seq_lmbs;
1: + u64 base_addr;
1: + u32 drc_index;
1: + u32 aa_index;
1: + u32 flags;
1: +} __attribute__((packed));
1: +
1: +typedef long unsigned int pte_basic_t;
1: +
1: +struct trace_event_raw_hugepage_invalidate {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int pte;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hugepage_set_pmd {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int pmd;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hugepage_update {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int pte;
1: + long unsigned int clr;
1: + long unsigned int set;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hugepage_splitting {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int pte;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_hugepage_invalidate {};
1: +
1: +struct trace_event_data_offsets_hugepage_set_pmd {};
1: +
1: +struct trace_event_data_offsets_hugepage_update {};
1: +
1: +struct trace_event_data_offsets_hugepage_splitting {};
1: +
1: +typedef void (*btf_trace_hugepage_invalidate)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_hugepage_set_pmd)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_hugepage_update)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_hugepage_splitting)(void *, long unsigned int, long unsigned int);
1: +
1: +struct mmu_hash_ops {
1: + void (*hpte_invalidate)(long unsigned int, long unsigned int, int, int, int, int);
1: + long int (*hpte_updatepp)(long unsigned int, long unsigned int, long unsigned int, int, int, int, long unsigned int);
1: + void (*hpte_updateboltedpp)(long unsigned int, long unsigned int, int, int);
1: + long int (*hpte_insert)(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int, int, int);
1: + long int (*hpte_remove)(long unsigned int);
1: + int (*hpte_removebolted)(long unsigned int, int, int);
1: + void (*flush_hash_range)(long unsigned int, int);
1: + void (*hugepage_invalidate)(long unsigned int, long unsigned int, unsigned char *, int, int, int);
1: + int (*resize_hpt)(long unsigned int);
1: + void (*hpte_clear_all)();
1: +};
1: +
1: +struct hash_pte {
1: + __be64 v;
1: + __be64 r;
1: +};
1: +
1: +enum slb_index {
1: + LINEAR_INDEX = 0,
1: + KSTACK_INDEX = 1,
1: +};
1: +
1: +typedef unsigned int xa_mark_t;
1: +
1: +enum xa_lock_type {
1: + XA_LOCK_IRQ = 1,
1: + XA_LOCK_BH = 2,
1: +};
1: +
1: +struct ida {
1: + struct xarray xa;
1: +};
1: +
1: +enum pgtable_index {
1: + PTE_INDEX = 0,
1: + PMD_INDEX = 1,
1: + PUD_INDEX = 2,
1: + PGD_INDEX = 3,
1: + HTLB_16M_INDEX = 4,
1: + HTLB_16G_INDEX = 5,
1: +};
1: +
1: +struct mmu_table_batch {
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + void *tables[0];
1: +};
1: +
1: +struct mmu_gather_batch {
1: + struct mmu_gather_batch *next;
1: + unsigned int nr;
1: + unsigned int max;
1: + struct page *pages[0];
1: +};
1: +
1: +struct mmu_gather {
1: + struct mm_struct *mm;
1: + struct mmu_table_batch *batch;
1: + long unsigned int start;
1: + long unsigned int end;
1: + unsigned int fullmm: 1;
1: + unsigned int need_flush_all: 1;
1: + unsigned int freed_tables: 1;
1: + unsigned int cleared_ptes: 1;
1: + unsigned int cleared_pmds: 1;
1: + unsigned int cleared_puds: 1;
1: + unsigned int cleared_p4ds: 1;
1: + unsigned int vma_exec: 1;
1: + unsigned int vma_huge: 1;
1: + unsigned int batch_count;
1: + struct mmu_gather_batch *active;
1: + struct mmu_gather_batch local;
1: + struct page *__pages[8];
1: + unsigned int page_size;
1: +};
1: +
1: +enum string_size_units {
1: + STRING_UNITS_10 = 0,
1: + STRING_UNITS_2 = 1,
1: +};
1: +
1: +struct tlbiel_pid {
1: + long unsigned int pid;
1: + long unsigned int ric;
1: +};
1: +
1: +struct tlbiel_va {
1: + long unsigned int pid;
1: + long unsigned int va;
1: + long unsigned int psize;
1: + long unsigned int ric;
1: +};
1: +
1: +struct tlbiel_va_range {
1: + long unsigned int pid;
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int page_size;
1: + long unsigned int psize;
1: + bool also_pwc;
1: +};
1: +
1: +enum migrate_reason {
1: + MR_COMPACTION = 0,
1: + MR_MEMORY_FAILURE = 1,
1: + MR_MEMORY_HOTPLUG = 2,
1: + MR_SYSCALL = 3,
1: + MR_MEMPOLICY_MBIND = 4,
1: + MR_NUMA_MISPLACED = 5,
1: + MR_CONTIG_RANGE = 6,
1: + MR_TYPES = 7,
1: +};
1: +
1: +struct mm_iommu_table_group_mem_t {
1: + struct list_head next;
1: + struct callback_head rcu;
1: + long unsigned int used;
1: + atomic64_t mapped;
1: + unsigned int pageshift;
1: + u64 ua;
1: + u64 entries;
1: + union {
1: + struct page **hpages;
1: + phys_addr_t *hpas;
1: + };
1: + u64 dev_hpa;
1: +};
1: +
1: +struct assoc_arrays {
1: + u32 n_arrays;
1: + u32 array_sz;
1: + const __be32 *arrays;
1: +};
1: +
1: +struct huge_bootmem_page {
1: + struct list_head list;
1: + struct hstate *hstate;
1: +};
1: +
1: +struct copro_slb {
1: + u64 esid;
1: + u64 vsid;
1: +};
1: +
1: +enum spu_utilization_state {
1: + SPU_UTIL_USER = 0,
1: + SPU_UTIL_SYSTEM = 1,
1: + SPU_UTIL_IOWAIT = 2,
1: + SPU_UTIL_IDLE_LOADED = 3,
1: + SPU_UTIL_MAX = 4,
1: +};
1: +
1: +struct fixup_entry {
1: + long unsigned int mask;
1: + long unsigned int value;
1: + long int start_off;
1: + long int end_off;
1: + long int alt_start_off;
1: + long int alt_end_off;
1: +};
1: +
1: +union vsx_reg {
1: + u8 b[16];
1: + u16 h[8];
1: + u32 w[4];
1: + long unsigned int d[2];
1: + float fp[4];
1: + double dp[2];
1: + __vector128 v;
1: +};
1: +
1: +typedef signed char unative_t[16];
1: +
1: +enum {
1: + IRQ_SET_MASK_OK = 0,
1: + IRQ_SET_MASK_OK_NOCOPY = 1,
1: + IRQ_SET_MASK_OK_DONE = 2,
1: +};
1: +
1: +enum {
1: + IRQCHIP_SET_TYPE_MASKED = 1,
1: + IRQCHIP_EOI_IF_HANDLED = 2,
1: + IRQCHIP_MASK_ON_SUSPEND = 4,
1: + IRQCHIP_ONOFFLINE_ENABLED = 8,
1: + IRQCHIP_SKIP_SET_WAKE = 16,
1: + IRQCHIP_ONESHOT_SAFE = 32,
1: + IRQCHIP_EOI_THREADED = 64,
1: + IRQCHIP_SUPPORTS_LEVEL_MSI = 128,
1: + IRQCHIP_SUPPORTS_NMI = 256,
1: + IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND = 512,
1: +};
1: +
1: +struct syscore_ops {
1: + struct list_head node;
1: + int (*suspend)();
1: + void (*resume)();
1: + void (*shutdown)();
1: +};
1: +
1: +struct msi_bitmap {
1: + struct device_node *of_node;
1: + long unsigned int *bitmap;
1: + spinlock_t lock;
1: + unsigned int irq_count;
1: + bool bitmap_from_slab;
1: +};
1: +
1: +enum mpic_reg_type {
1: + mpic_access_mmio_le = 0,
1: + mpic_access_mmio_be = 1,
1: +};
1: +
1: +struct mpic_reg_bank {
1: + u32 *base;
1: +};
1: +
1: +struct mpic_irq_save {
1: + u32 vecprio;
1: + u32 dest;
1: +};
1: +
1: +struct mpic {
1: + struct device_node *node;
1: + struct irq_domain *irqhost;
1: + struct irq_chip hc_irq;
1: + struct irq_chip hc_ipi;
1: + struct irq_chip hc_tm;
1: + struct irq_chip hc_err;
1: + const char *name;
1: + unsigned int flags;
1: + unsigned int isu_size;
1: + unsigned int isu_shift;
1: + unsigned int isu_mask;
1: + unsigned int num_sources;
1: + unsigned int ipi_vecs[4];
1: + unsigned int timer_vecs[8];
1: + unsigned int err_int_vecs[32];
1: + unsigned int spurious_vec;
1: + enum mpic_reg_type reg_type;
1: + phys_addr_t paddr;
1: + struct mpic_reg_bank thiscpuregs;
1: + struct mpic_reg_bank gregs;
1: + struct mpic_reg_bank tmregs;
1: + struct mpic_reg_bank cpuregs[32];
1: + struct mpic_reg_bank isus[32];
1: + u32 *err_regs;
1: + long unsigned int *protected;
1: + struct msi_bitmap msi_bitmap;
1: + struct mpic *next;
1: + struct mpic_irq_save *save_data;
1: +};
1: +
1: +struct icp_ops {
1: + unsigned int (*get_irq)();
1: + void (*eoi)(struct irq_data *);
1: + void (*set_priority)(unsigned char);
1: + void (*teardown_cpu)();
1: + void (*flush_ipi)();
1: + void (*cause_ipi)(int);
1: + irq_handler_t ipi_action;
1: +};
1: +
1: +struct ics {
1: + struct list_head link;
1: + int (*map)(struct ics *, unsigned int);
1: + void (*mask_unknown)(struct ics *, long unsigned int);
1: + long int (*get_server)(struct ics *, long unsigned int);
1: + int (*host_match)(struct ics *, struct device_node *);
1: + char data[0];
1: +};
1: +
1: +struct xics_cppr {
1: + unsigned char stack[3];
1: + int index;
1: +};
1: +
1: +struct icp_ipl {
1: + union {
1: + u32 word;
1: + u8 bytes[4];
1: + } xirr_poll;
1: + union {
1: + u32 word;
1: + u8 bytes[4];
1: + } xirr;
1: + u32 dummy;
1: + union {
1: + u32 word;
1: + u8 bytes[4];
1: + } qirr;
1: + u32 link_a;
1: + u32 link_b;
1: + u32 link_c;
1: +};
1: +
1: +typedef s8 int8_t;
1: +
1: +typedef s16 int16_t;
1: +
1: +typedef s64 int64_t;
1: +
1: +struct xive_irq_data {
1: + u64 flags;
1: + u64 eoi_page;
1: + void *eoi_mmio;
1: + u64 trig_page;
1: + void *trig_mmio;
1: + u32 esb_shift;
1: + int src_chip;
1: + u32 hw_irq;
1: + int target;
1: + bool saved_p;
1: + bool stale_p;
1: +};
1: +
1: +struct xive_q {
1: + __be32 *qpage;
1: + u32 msk;
1: + u32 idx;
1: + u32 toggle;
1: + u64 eoi_phys;
1: + u32 esc_irq;
1: + atomic_t count;
1: + atomic_t pending_count;
1: + u64 guest_qaddr;
1: + u32 guest_qshift;
1: +};
1: +
1: +struct xive_cpu {
1: + u32 hw_ipi;
1: + struct xive_irq_data ipi_data;
1: + int chip_id;
1: + struct xive_q queue[8];
1: + u8 pending_prio;
1: + u8 cppr;
1: +};
1: +
1: +struct xive_ops {
1: + int (*populate_irq_data)(u32, struct xive_irq_data *);
1: + int (*configure_irq)(u32, u32, u8, u32);
1: + int (*get_irq_config)(u32, u32 *, u8 *, u32 *);
1: + int (*setup_queue)(unsigned int, struct xive_cpu *, u8);
1: + void (*cleanup_queue)(unsigned int, struct xive_cpu *, u8);
1: + void (*setup_cpu)(unsigned int, struct xive_cpu *);
1: + void (*teardown_cpu)(unsigned int, struct xive_cpu *);
1: + bool (*match)(struct device_node *);
1: + void (*shutdown)();
1: + void (*update_pending)(struct xive_cpu *);
1: + void (*eoi)(u32);
1: + void (*sync_source)(u32);
1: + u64 (*esb_rw)(u32, u32, u64, bool);
1: + int (*get_ipi)(unsigned int, struct xive_cpu *);
1: + void (*put_ipi)(unsigned int, struct xive_cpu *);
1: + int (*debug_show)(struct seq_file *, void *);
1: + const char *name;
1: +};
1: +
1: +enum {
1: + OPAL_XIVE_MODE_EMU = 0,
1: + OPAL_XIVE_MODE_EXPL = 1,
1: +};
1: +
1: +enum {
1: + OPAL_XIVE_IRQ_TRIGGER_PAGE = 1,
1: + OPAL_XIVE_IRQ_STORE_EOI = 2,
1: + OPAL_XIVE_IRQ_LSI = 4,
1: + OPAL_XIVE_IRQ_SHIFT_BUG = 8,
1: + OPAL_XIVE_IRQ_MASK_VIA_FW = 16,
1: + OPAL_XIVE_IRQ_EOI_VIA_FW = 32,
1: +};
1: +
1: +enum {
1: + OPAL_XIVE_EQ_ENABLED = 1,
1: + OPAL_XIVE_EQ_ALWAYS_NOTIFY = 2,
1: + OPAL_XIVE_EQ_ESCALATE = 4,
1: +};
1: +
1: +enum {
1: + OPAL_XIVE_VP_ENABLED = 1,
1: + OPAL_XIVE_VP_SINGLE_ESCALATION = 2,
1: +};
1: +
1: +enum {
1: + XIVE_SYNC_EAS = 1,
1: + XIVE_SYNC_QUEUE = 2,
1: +};
1: +
1: +struct xive_irq_bitmap {
1: + long unsigned int *bitmap;
1: + unsigned int base;
1: + unsigned int count;
1: + spinlock_t lock;
1: + struct list_head list;
1: +};
1: +
1: +struct plist_head {
1: + struct list_head node_list;
1: +};
1: +
1: +enum pm_qos_type {
1: + PM_QOS_UNITIALIZED = 0,
1: + PM_QOS_MAX = 1,
1: + PM_QOS_MIN = 2,
1: +};
1: +
1: +struct pm_qos_constraints {
1: + struct plist_head list;
1: + s32 target_value;
1: + s32 default_value;
1: + s32 no_constraint_value;
1: + enum pm_qos_type type;
1: + struct blocking_notifier_head *notifiers;
1: +};
1: +
1: +struct freq_constraints {
1: + struct pm_qos_constraints min_freq;
1: + struct blocking_notifier_head min_freq_notifiers;
1: + struct pm_qos_constraints max_freq;
1: + struct blocking_notifier_head max_freq_notifiers;
1: +};
1: +
1: +struct pm_qos_flags {
1: + struct list_head list;
1: + s32 effective_flags;
1: +};
1: +
1: +struct dev_pm_qos_request;
1: +
1: +struct dev_pm_qos {
1: + struct pm_qos_constraints resume_latency;
1: + struct pm_qos_constraints latency_tolerance;
1: + struct freq_constraints freq;
1: + struct pm_qos_flags flags;
1: + struct dev_pm_qos_request *resume_latency_req;
1: + struct dev_pm_qos_request *latency_tolerance_req;
1: + struct dev_pm_qos_request *flags_req;
1: +};
1: +
1: +struct pm_qos_flags_request {
1: + struct list_head node;
1: + s32 flags;
1: +};
1: +
1: +enum freq_qos_req_type {
1: + FREQ_QOS_MIN = 1,
1: + FREQ_QOS_MAX = 2,
1: +};
1: +
1: +struct freq_qos_request {
1: + enum freq_qos_req_type type;
1: + struct plist_node pnode;
1: + struct freq_constraints *qos;
1: +};
1: +
1: +enum dev_pm_qos_req_type {
1: + DEV_PM_QOS_RESUME_LATENCY = 1,
1: + DEV_PM_QOS_LATENCY_TOLERANCE = 2,
1: + DEV_PM_QOS_MIN_FREQUENCY = 3,
1: + DEV_PM_QOS_MAX_FREQUENCY = 4,
1: + DEV_PM_QOS_FLAGS = 5,
1: +};
1: +
1: +struct dev_pm_qos_request {
1: + enum dev_pm_qos_req_type type;
1: + union {
1: + struct plist_node pnode;
1: + struct pm_qos_flags_request flr;
1: + struct freq_qos_request freq;
1: + } data;
1: + struct device *dev;
1: +};
1: +
1: +enum OpalThreadStatus {
1: + OPAL_THREAD_INACTIVE = 0,
1: + OPAL_THREAD_STARTED = 1,
1: + OPAL_THREAD_UNAVAILABLE = 2,
1: +};
1: +
1: +enum {
1: + OPAL_REINIT_CPUS_HILE_BE = 1,
1: + OPAL_REINIT_CPUS_HILE_LE = 2,
1: + OPAL_REINIT_CPUS_MMU_HASH = 4,
1: + OPAL_REINIT_CPUS_MMU_RADIX = 8,
1: + OPAL_REINIT_CPUS_TM_SUSPEND_DISABLED = 16,
1: +};
1: +
1: +enum {
1: + OPAL_REBOOT_NORMAL = 0,
1: + OPAL_REBOOT_PLATFORM_ERROR = 1,
1: + OPAL_REBOOT_FULL_IPL = 2,
1: + OPAL_REBOOT_MPIPL = 3,
1: + OPAL_REBOOT_FAST = 4,
1: +};
1: +
1: +enum OpalPendingState {
1: + OPAL_EVENT_OPAL_INTERNAL = 1,
1: + OPAL_EVENT_NVRAM = 2,
1: + OPAL_EVENT_RTC = 4,
1: + OPAL_EVENT_CONSOLE_OUTPUT = 8,
1: + OPAL_EVENT_CONSOLE_INPUT = 16,
1: + OPAL_EVENT_ERROR_LOG_AVAIL = 32,
1: + OPAL_EVENT_ERROR_LOG = 64,
1: + OPAL_EVENT_EPOW = 128,
1: + OPAL_EVENT_LED_STATUS = 256,
1: + OPAL_EVENT_PCI_ERROR = 512,
1: + OPAL_EVENT_DUMP_AVAIL = 1024,
1: + OPAL_EVENT_MSG_PENDING = 2048,
1: +};
1: +
1: +enum opal_msg_type {
1: + OPAL_MSG_ASYNC_COMP = 0,
1: + OPAL_MSG_MEM_ERR = 1,
1: + OPAL_MSG_EPOW = 2,
1: + OPAL_MSG_SHUTDOWN = 3,
1: + OPAL_MSG_HMI_EVT = 4,
1: + OPAL_MSG_DPO = 5,
1: + OPAL_MSG_PRD = 6,
1: + OPAL_MSG_OCC = 7,
1: + OPAL_MSG_PRD2 = 8,
1: + OPAL_MSG_TYPE_MAX = 9,
1: +};
1: +
1: +struct opal_msg {
1: + __be32 msg_type;
1: + __be32 reserved;
1: + __be64 params[8];
1: +};
1: +
1: +enum {
1: + OPAL_HMI_FLAGS_TB_RESYNC = 1,
1: + OPAL_HMI_FLAGS_DEC_LOST = 2,
1: + OPAL_HMI_FLAGS_HDEC_LOST = 4,
1: + OPAL_HMI_FLAGS_TOD_TB_FAIL = 8,
1: + OPAL_HMI_FLAGS_NEW_EVENT = 0,
1: +};
1: +
1: +struct opal_sg_entry {
1: + __be64 data;
1: + __be64 length;
1: +};
1: +
1: +struct opal_sg_list {
1: + __be64 length;
1: + __be64 next;
1: + struct opal_sg_entry entry[0];
1: +};
1: +
1: +struct opal_msg_node {
1: + struct list_head list;
1: + struct opal_msg msg;
1: +};
1: +
1: +struct opal {
1: + u64 base;
1: + u64 entry;
1: + u64 size;
1: +};
1: +
1: +struct mcheck_recoverable_range {
1: + u64 start_addr;
1: + u64 end_addr;
1: + u64 recover_addr;
1: +};
1: +
1: +enum opal_async_token_state {
1: + ASYNC_TOKEN_UNALLOCATED = 0,
1: + ASYNC_TOKEN_ALLOCATED = 1,
1: + ASYNC_TOKEN_DISPATCHED = 2,
1: + ASYNC_TOKEN_ABANDONED = 3,
1: + ASYNC_TOKEN_COMPLETED = 4,
1: +};
1: +
1: +struct opal_async_token {
1: + enum opal_async_token_state state;
1: + struct opal_msg response;
1: +};
1: +
1: +struct pnv_idle_states_t {
1: + char name[16];
1: + u32 latency_ns;
1: + u32 residency_ns;
1: + u64 psscr_val;
1: + u64 psscr_mask;
1: + u32 flags;
1: + bool valid;
1: +};
1: +
1: +struct p7_sprs {
1: + u64 tscr;
1: + u64 worc;
1: + u64 sdr1;
1: + u64 rpr;
1: + u64 lpcr;
1: + u64 hfscr;
1: + u64 fscr;
1: + u64 purr;
1: + u64 spurr;
1: + u64 dscr;
1: + u64 wort;
1: + u64 amr;
1: + u64 iamr;
1: + u64 amor;
1: + u64 uamor;
1: +};
1: +
1: +struct p9_sprs {
1: + u64 ptcr;
1: + u64 rpr;
1: + u64 tscr;
1: + u64 ldbar;
1: + u64 lpcr;
1: + u64 hfscr;
1: + u64 fscr;
1: + u64 pid;
1: + u64 purr;
1: + u64 spurr;
1: + u64 dscr;
1: + u64 wort;
1: + u64 mmcra;
1: + u32 mmcr0;
1: + u32 mmcr1;
1: + u64 mmcr2;
1: + u64 amr;
1: + u64 iamr;
1: + u64 amor;
1: + u64 uamor;
1: +};
1: +
1: +enum OpalLPCAddressType {
1: + OPAL_LPC_MEM = 0,
1: + OPAL_LPC_IO = 1,
1: + OPAL_LPC_FW = 2,
1: +};
1: +
1: +struct lpc_debugfs_entry {
1: + enum OpalLPCAddressType lpc_type;
1: +};
1: +
1: +enum {
1: + IMAGE_INVALID = 0,
1: + IMAGE_LOADING = 1,
1: + IMAGE_READY = 2,
1: +};
1: +
1: +struct image_data_t {
1: + int status;
1: + void *data;
1: + uint32_t size;
1: +};
1: +
1: +struct image_header_t {
1: + uint16_t magic;
1: + uint16_t version;
1: + uint32_t size;
1: +};
1: +
1: +struct validate_flash_t {
1: + int status;
1: + void *buf;
1: + uint32_t buf_size;
1: + uint32_t result;
1: +};
1: +
1: +struct manage_flash_t {
1: + int status;
1: +};
1: +
1: +struct update_flash_t {
1: + int status;
1: +};
1: +
1: +struct powernv_rng {
1: + void *regs;
1: + void *regs_real;
1: + long unsigned int mask;
1: +};
1: +
1: +enum kobject_action {
1: + KOBJ_ADD = 0,
1: + KOBJ_REMOVE = 1,
1: + KOBJ_CHANGE = 2,
1: + KOBJ_MOVE = 3,
1: + KOBJ_ONLINE = 4,
1: + KOBJ_OFFLINE = 5,
1: + KOBJ_BIND = 6,
1: + KOBJ_UNBIND = 7,
1: +};
1: +
1: +struct elog_obj {
1: + struct kobject kobj;
1: + struct bin_attribute raw_attr;
1: + uint64_t id;
1: + uint64_t type;
1: + size_t size;
1: + char *buffer;
1: +};
1: +
1: +struct elog_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct elog_obj *, struct elog_attribute *, char *);
1: + ssize_t (*store)(struct elog_obj *, struct elog_attribute *, const char *, size_t);
1: +};
1: +
1: +struct dump_obj {
1: + struct kobject kobj;
1: + struct bin_attribute dump_attr;
1: + uint32_t id;
1: + uint32_t type;
1: + uint32_t size;
1: + char *buffer;
1: +};
1: +
1: +struct dump_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct dump_obj *, struct dump_attribute *, char *);
1: + ssize_t (*store)(struct dump_obj *, struct dump_attribute *, const char *, size_t);
1: +};
1: +
1: +enum OpalSysparamPerm {
1: + OPAL_SYSPARAM_READ = 1,
1: + OPAL_SYSPARAM_WRITE = 2,
1: + OPAL_SYSPARAM_RW = 3,
1: +};
1: +
1: +struct param_attr {
1: + struct list_head list;
1: + u32 param_id;
1: + u32 param_size;
1: + struct kobj_attribute kobj_attr;
1: +};
1: +
1: +struct memcons {
1: + __be64 magic;
1: + __be64 obuf_phys;
1: + __be64 ibuf_phys;
1: + __be32 obuf_size;
1: + __be32 ibuf_size;
1: + __be32 out_pos;
1: + __be32 in_prod;
1: + __be32 in_cons;
1: +};
1: +
1: +enum OpalHMI_Version {
1: + OpalHMIEvt_V1 = 1,
1: + OpalHMIEvt_V2 = 2,
1: +};
1: +
1: +enum OpalHMI_Severity {
1: + OpalHMI_SEV_NO_ERROR = 0,
1: + OpalHMI_SEV_WARNING = 1,
1: + OpalHMI_SEV_ERROR_SYNC = 2,
1: + OpalHMI_SEV_FATAL = 3,
1: +};
1: +
1: +enum OpalHMI_Disposition {
1: + OpalHMI_DISPOSITION_RECOVERED = 0,
1: + OpalHMI_DISPOSITION_NOT_RECOVERED = 1,
1: +};
1: +
1: +enum OpalHMI_ErrType {
1: + OpalHMI_ERROR_MALFUNC_ALERT = 0,
1: + OpalHMI_ERROR_PROC_RECOV_DONE = 1,
1: + OpalHMI_ERROR_PROC_RECOV_DONE_AGAIN = 2,
1: + OpalHMI_ERROR_PROC_RECOV_MASKED = 3,
1: + OpalHMI_ERROR_TFAC = 4,
1: + OpalHMI_ERROR_TFMR_PARITY = 5,
1: + OpalHMI_ERROR_HA_OVERFLOW_WARN = 6,
1: + OpalHMI_ERROR_XSCOM_FAIL = 7,
1: + OpalHMI_ERROR_XSCOM_DONE = 8,
1: + OpalHMI_ERROR_SCOM_FIR = 9,
1: + OpalHMI_ERROR_DEBUG_TRIG_FIR = 10,
1: + OpalHMI_ERROR_HYP_RESOURCE = 11,
1: + OpalHMI_ERROR_CAPP_RECOVERY = 12,
1: +};
1: +
1: +enum OpalHMI_XstopType {
1: + CHECKSTOP_TYPE_UNKNOWN = 0,
1: + CHECKSTOP_TYPE_CORE = 1,
1: + CHECKSTOP_TYPE_NX = 2,
1: + CHECKSTOP_TYPE_NPU = 3,
1: +};
1: +
1: +enum OpalHMI_CoreXstopReason {
1: + CORE_CHECKSTOP_IFU_REGFILE = 1,
1: + CORE_CHECKSTOP_IFU_LOGIC = 2,
1: + CORE_CHECKSTOP_PC_DURING_RECOV = 4,
1: + CORE_CHECKSTOP_ISU_REGFILE = 8,
1: + CORE_CHECKSTOP_ISU_LOGIC = 16,
1: + CORE_CHECKSTOP_FXU_LOGIC = 32,
1: + CORE_CHECKSTOP_VSU_LOGIC = 64,
1: + CORE_CHECKSTOP_PC_RECOV_IN_MAINT_MODE = 128,
1: + CORE_CHECKSTOP_LSU_REGFILE = 256,
1: + CORE_CHECKSTOP_PC_FWD_PROGRESS = 512,
1: + CORE_CHECKSTOP_LSU_LOGIC = 1024,
1: + CORE_CHECKSTOP_PC_LOGIC = 2048,
1: + CORE_CHECKSTOP_PC_HYP_RESOURCE = 4096,
1: + CORE_CHECKSTOP_PC_HANG_RECOV_FAILED = 8192,
1: + CORE_CHECKSTOP_PC_AMBI_HANG_DETECTED = 16384,
1: + CORE_CHECKSTOP_PC_DEBUG_TRIG_ERR_INJ = 32768,
1: + CORE_CHECKSTOP_PC_SPRD_HYP_ERR_INJ = 65536,
1: +};
1: +
1: +enum OpalHMI_NestAccelXstopReason {
1: + NX_CHECKSTOP_SHM_INVAL_STATE_ERR = 1,
1: + NX_CHECKSTOP_DMA_INVAL_STATE_ERR_1 = 2,
1: + NX_CHECKSTOP_DMA_INVAL_STATE_ERR_2 = 4,
1: + NX_CHECKSTOP_DMA_CH0_INVAL_STATE_ERR = 8,
1: + NX_CHECKSTOP_DMA_CH1_INVAL_STATE_ERR = 16,
1: + NX_CHECKSTOP_DMA_CH2_INVAL_STATE_ERR = 32,
1: + NX_CHECKSTOP_DMA_CH3_INVAL_STATE_ERR = 64,
1: + NX_CHECKSTOP_DMA_CH4_INVAL_STATE_ERR = 128,
1: + NX_CHECKSTOP_DMA_CH5_INVAL_STATE_ERR = 256,
1: + NX_CHECKSTOP_DMA_CH6_INVAL_STATE_ERR = 512,
1: + NX_CHECKSTOP_DMA_CH7_INVAL_STATE_ERR = 1024,
1: + NX_CHECKSTOP_DMA_CRB_UE = 2048,
1: + NX_CHECKSTOP_DMA_CRB_SUE = 4096,
1: + NX_CHECKSTOP_PBI_ISN_UE = 8192,
1: +};
1: +
1: +struct OpalHMIEvent {
1: + uint8_t version;
1: + uint8_t severity;
1: + uint8_t type;
1: + uint8_t disposition;
1: + uint8_t reserved_1[4];
1: + __be64 hmer;
1: + __be64 tfmr;
1: + union {
1: + struct {
1: + uint8_t xstop_type;
1: + uint8_t reserved_1[3];
1: + __be32 xstop_reason;
1: + union {
1: + __be32 pir;
1: + __be32 chip_id;
1: + } u;
1: + } xstop_error;
1: + } u;
1: +};
1: +
1: +struct OpalHmiEvtNode {
1: + struct list_head list;
1: + struct OpalHMIEvent hmi_evt;
1: +};
1: +
1: +struct xstop_reason {
1: + uint32_t xstop_reason;
1: + const char *unit_failed;
1: + const char *description;
1: +};
1: +
1: +enum OpalSysEpow {
1: + OPAL_SYSEPOW_POWER = 0,
1: + OPAL_SYSEPOW_TEMP = 1,
1: + OPAL_SYSEPOW_COOLING = 2,
1: + OPAL_SYSEPOW_MAX = 3,
1: +};
1: +
1: +enum OpalSysPower {
1: + OPAL_SYSPOWER_UPS = 1,
1: + OPAL_SYSPOWER_CHNG = 2,
1: + OPAL_SYSPOWER_FAIL = 4,
1: + OPAL_SYSPOWER_INCL = 8,
1: +};
1: +
1: +struct opal_event_irqchip {
1: + struct irq_chip irqchip;
1: + struct irq_domain *domain;
1: + long unsigned int mask;
1: +};
1: +
1: +struct powercap_attr {
1: + u32 handle;
1: + struct kobj_attribute attr;
1: +};
1: +
1: +struct pcap {
1: + struct attribute_group pg;
1: + struct powercap_attr *pattrs;
1: +};
1: +
1: +struct psr_attr {
1: + u32 handle;
1: + struct kobj_attribute attr;
1: +};
1: +
1: +struct sg_attr {
1: + u32 handle;
1: + struct kobj_attribute attr;
1: +};
1: +
1: +struct sensor_group {
1: + char name[20];
1: + struct attribute_group sg;
1: + struct sg_attr *sgattrs;
1: +};
1: +
1: +struct sg_ops_info {
1: + int opal_no;
1: + const char *attr_name;
1: + ssize_t (*store)(struct kobject *, struct kobj_attribute *, const char *, size_t);
1: +};
1: +
1: +struct memcons___2;
1: +
1: +struct split_state {
1: + u8 step;
1: + u8 master;
1: +};
1: +
1: +enum OpalFreezeState {
1: + OPAL_EEH_STOPPED_NOT_FROZEN = 0,
1: + OPAL_EEH_STOPPED_MMIO_FREEZE = 1,
1: + OPAL_EEH_STOPPED_DMA_FREEZE = 2,
1: + OPAL_EEH_STOPPED_MMIO_DMA_FREEZE = 3,
1: + OPAL_EEH_STOPPED_RESET = 4,
1: + OPAL_EEH_STOPPED_TEMP_UNAVAIL = 5,
1: + OPAL_EEH_STOPPED_PERM_UNAVAIL = 6,
1: +};
1: +
1: +enum OpalEehFreezeActionToken {
1: + OPAL_EEH_ACTION_CLEAR_FREEZE_MMIO = 1,
1: + OPAL_EEH_ACTION_CLEAR_FREEZE_DMA = 2,
1: + OPAL_EEH_ACTION_CLEAR_FREEZE_ALL = 3,
1: + OPAL_EEH_ACTION_SET_FREEZE_MMIO = 1,
1: + OPAL_EEH_ACTION_SET_FREEZE_DMA = 2,
1: + OPAL_EEH_ACTION_SET_FREEZE_ALL = 3,
1: +};
1: +
1: +enum {
1: + OPAL_PHB_ERROR_DATA_TYPE_P7IOC = 1,
1: + OPAL_PHB_ERROR_DATA_TYPE_PHB3 = 2,
1: + OPAL_PHB_ERROR_DATA_TYPE_PHB4 = 3,
1: +};
1: +
1: +struct OpalIoPhbErrorCommon {
1: + __be32 version;
1: + __be32 ioType;
1: + __be32 len;
1: +};
1: +
1: +struct OpalIoP7IOCPhbErrorData {
1: + struct OpalIoPhbErrorCommon common;
1: + __be32 brdgCtl;
1: + __be32 portStatusReg;
1: + __be32 rootCmplxStatus;
1: + __be32 busAgentStatus;
1: + __be32 deviceStatus;
1: + __be32 slotStatus;
1: + __be32 linkStatus;
1: + __be32 devCmdStatus;
1: + __be32 devSecStatus;
1: + __be32 rootErrorStatus;
1: + __be32 uncorrErrorStatus;
1: + __be32 corrErrorStatus;
1: + __be32 tlpHdr1;
1: + __be32 tlpHdr2;
1: + __be32 tlpHdr3;
1: + __be32 tlpHdr4;
1: + __be32 sourceId;
1: + __be32 rsv3;
1: + __be64 errorClass;
1: + __be64 correlator;
1: + __be64 p7iocPlssr;
1: + __be64 p7iocCsr;
1: + __be64 lemFir;
1: + __be64 lemErrorMask;
1: + __be64 lemWOF;
1: + __be64 phbErrorStatus;
1: + __be64 phbFirstErrorStatus;
1: + __be64 phbErrorLog0;
1: + __be64 phbErrorLog1;
1: + __be64 mmioErrorStatus;
1: + __be64 mmioFirstErrorStatus;
1: + __be64 mmioErrorLog0;
1: + __be64 mmioErrorLog1;
1: + __be64 dma0ErrorStatus;
1: + __be64 dma0FirstErrorStatus;
1: + __be64 dma0ErrorLog0;
1: + __be64 dma0ErrorLog1;
1: + __be64 dma1ErrorStatus;
1: + __be64 dma1FirstErrorStatus;
1: + __be64 dma1ErrorLog0;
1: + __be64 dma1ErrorLog1;
1: + __be64 pestA[128];
1: + __be64 pestB[128];
1: +};
1: +
1: +struct OpalIoPhb3ErrorData {
1: + struct OpalIoPhbErrorCommon common;
1: + __be32 brdgCtl;
1: + __be32 portStatusReg;
1: + __be32 rootCmplxStatus;
1: + __be32 busAgentStatus;
1: + __be32 deviceStatus;
1: + __be32 slotStatus;
1: + __be32 linkStatus;
1: + __be32 devCmdStatus;
1: + __be32 devSecStatus;
1: + __be32 rootErrorStatus;
1: + __be32 uncorrErrorStatus;
1: + __be32 corrErrorStatus;
1: + __be32 tlpHdr1;
1: + __be32 tlpHdr2;
1: + __be32 tlpHdr3;
1: + __be32 tlpHdr4;
1: + __be32 sourceId;
1: + __be32 rsv3;
1: + __be64 errorClass;
1: + __be64 correlator;
1: + __be64 nFir;
1: + __be64 nFirMask;
1: + __be64 nFirWOF;
1: + __be64 phbPlssr;
1: + __be64 phbCsr;
1: + __be64 lemFir;
1: + __be64 lemErrorMask;
1: + __be64 lemWOF;
1: + __be64 phbErrorStatus;
1: + __be64 phbFirstErrorStatus;
1: + __be64 phbErrorLog0;
1: + __be64 phbErrorLog1;
1: + __be64 mmioErrorStatus;
1: + __be64 mmioFirstErrorStatus;
1: + __be64 mmioErrorLog0;
1: + __be64 mmioErrorLog1;
1: + __be64 dma0ErrorStatus;
1: + __be64 dma0FirstErrorStatus;
1: + __be64 dma0ErrorLog0;
1: + __be64 dma0ErrorLog1;
1: + __be64 dma1ErrorStatus;
1: + __be64 dma1FirstErrorStatus;
1: + __be64 dma1ErrorLog0;
1: + __be64 dma1ErrorLog1;
1: + __be64 pestA[256];
1: + __be64 pestB[256];
1: +};
1: +
1: +struct OpalIoPhb4ErrorData {
1: + struct OpalIoPhbErrorCommon common;
1: + __be32 brdgCtl;
1: + __be32 deviceStatus;
1: + __be32 slotStatus;
1: + __be32 linkStatus;
1: + __be32 devCmdStatus;
1: + __be32 devSecStatus;
1: + __be32 rootErrorStatus;
1: + __be32 uncorrErrorStatus;
1: + __be32 corrErrorStatus;
1: + __be32 tlpHdr1;
1: + __be32 tlpHdr2;
1: + __be32 tlpHdr3;
1: + __be32 tlpHdr4;
1: + __be32 sourceId;
1: + __be64 nFir;
1: + __be64 nFirMask;
1: + __be64 nFirWOF;
1: + __be64 phbPlssr;
1: + __be64 phbCsr;
1: + __be64 lemFir;
1: + __be64 lemErrorMask;
1: + __be64 lemWOF;
1: + __be64 phbErrorStatus;
1: + __be64 phbFirstErrorStatus;
1: + __be64 phbErrorLog0;
1: + __be64 phbErrorLog1;
1: + __be64 phbTxeErrorStatus;
1: + __be64 phbTxeFirstErrorStatus;
1: + __be64 phbTxeErrorLog0;
1: + __be64 phbTxeErrorLog1;
1: + __be64 phbRxeArbErrorStatus;
1: + __be64 phbRxeArbFirstErrorStatus;
1: + __be64 phbRxeArbErrorLog0;
1: + __be64 phbRxeArbErrorLog1;
1: + __be64 phbRxeMrgErrorStatus;
1: + __be64 phbRxeMrgFirstErrorStatus;
1: + __be64 phbRxeMrgErrorLog0;
1: + __be64 phbRxeMrgErrorLog1;
1: + __be64 phbRxeTceErrorStatus;
1: + __be64 phbRxeTceFirstErrorStatus;
1: + __be64 phbRxeTceErrorLog0;
1: + __be64 phbRxeTceErrorLog1;
1: + __be64 phbPblErrorStatus;
1: + __be64 phbPblFirstErrorStatus;
1: + __be64 phbPblErrorLog0;
1: + __be64 phbPblErrorLog1;
1: + __be64 phbPcieDlpErrorLog1;
1: + __be64 phbPcieDlpErrorLog2;
1: + __be64 phbPcieDlpErrorStatus;
1: + __be64 phbRegbErrorStatus;
1: + __be64 phbRegbFirstErrorStatus;
1: + __be64 phbRegbErrorLog0;
1: + __be64 phbRegbErrorLog1;
1: + __be64 pestA[512];
1: + __be64 pestB[512];
1: +};
1: +
1: +enum pnv_phb_type {
1: + PNV_PHB_IODA1 = 0,
1: + PNV_PHB_IODA2 = 1,
1: + PNV_PHB_NPU_NVLINK = 2,
1: + PNV_PHB_NPU_OCAPI = 3,
1: +};
1: +
1: +enum pnv_phb_model {
1: + PNV_PHB_MODEL_UNKNOWN = 0,
1: + PNV_PHB_MODEL_P7IOC = 1,
1: + PNV_PHB_MODEL_PHB3 = 2,
1: + PNV_PHB_MODEL_NPU = 3,
1: + PNV_PHB_MODEL_NPU2 = 4,
1: +};
1: +
1: +struct pnv_phb;
1: +
1: +struct npu_comp;
1: +
1: +struct pnv_ioda_pe {
1: + long unsigned int flags;
1: + struct pnv_phb *phb;
1: + int device_count;
1: + struct pci_dev *parent_dev;
1: + struct pci_dev *pdev;
1: + struct pci_bus *pbus;
1: + unsigned int rid;
1: + unsigned int pe_number;
1: + struct iommu_table_group table_group;
1: + struct npu_comp *npucomp;
1: + bool tce_bypass_enabled;
1: + uint64_t tce_bypass_base;
1: + bool dma_setup_done;
1: + int mve_number;
1: + struct pnv_ioda_pe *master;
1: + struct list_head slaves;
1: + struct list_head list;
1: +};
1: +
1: +struct pnv_phb {
1: + struct pci_controller *hose;
1: + enum pnv_phb_type type;
1: + enum pnv_phb_model model;
1: + u64 hub_id;
1: + u64 opal_id;
1: + int flags;
1: + void *regs;
1: + u64 regs_phys;
1: + int initialized;
1: + spinlock_t lock;
1: + int has_dbgfs;
1: + struct dentry *dbgfs;
1: + unsigned int msi_base;
1: + unsigned int msi32_support;
1: + struct msi_bitmap msi_bmp;
1: + int (*msi_setup)(struct pnv_phb *, struct pci_dev *, unsigned int, unsigned int, unsigned int, struct msi_msg *);
1: + int (*init_m64)(struct pnv_phb *);
1: + int (*get_pe_state)(struct pnv_phb *, int);
1: + void (*freeze_pe)(struct pnv_phb *, int);
1: + int (*unfreeze_pe)(struct pnv_phb *, int, int);
1: + struct {
1: + unsigned int total_pe_num;
1: + unsigned int reserved_pe_idx;
1: + unsigned int root_pe_idx;
1: + unsigned int m32_size;
1: + unsigned int m32_segsize;
1: + unsigned int m32_pci_base;
1: + unsigned int m64_bar_idx;
1: + long unsigned int m64_size;
1: + long unsigned int m64_segsize;
1: + long unsigned int m64_base;
1: + long unsigned int m64_bar_alloc;
1: + unsigned int io_size;
1: + unsigned int io_segsize;
1: + unsigned int io_pci_base;
1: + struct mutex pe_alloc_mutex;
1: + long unsigned int *pe_alloc;
1: + struct pnv_ioda_pe *pe_array;
1: + unsigned int *m64_segmap;
1: + unsigned int *m32_segmap;
1: + unsigned int *io_segmap;
1: + unsigned int dma32_count;
1: + unsigned int *dma32_segmap;
1: + int irq_chip_init;
1: + struct irq_chip irq_chip;
1: + struct list_head pe_list;
1: + struct mutex pe_list_mutex;
1: + unsigned int pe_rmap[65536];
1: + } ioda;
1: + unsigned int diag_data_size;
1: + u8 *diag_data;
1: +};
1: +
1: +struct va_format {
1: + const char *fmt;
1: + va_list *va;
1: +};
1: +
1: +enum OpalMmioWindowType {
1: + OPAL_M32_WINDOW_TYPE = 1,
1: + OPAL_M64_WINDOW_TYPE = 2,
1: + OPAL_IO_WINDOW_TYPE = 3,
1: +};
1: +
1: +enum OpalPciBusCompare {
1: + OpalPciBusAny = 0,
1: + OpalPciBus3Bits = 2,
1: + OpalPciBus4Bits = 3,
1: + OpalPciBus5Bits = 4,
1: + OpalPciBus6Bits = 5,
1: + OpalPciBus7Bits = 6,
1: + OpalPciBusAll = 7,
1: +};
1: +
1: +enum OpalDeviceCompare {
1: + OPAL_IGNORE_RID_DEVICE_NUMBER = 0,
1: + OPAL_COMPARE_RID_DEVICE_NUMBER = 1,
1: +};
1: +
1: +enum OpalFuncCompare {
1: + OPAL_IGNORE_RID_FUNCTION_NUMBER = 0,
1: + OPAL_COMPARE_RID_FUNCTION_NUMBER = 1,
1: +};
1: +
1: +enum OpalPeAction {
1: + OPAL_UNMAP_PE = 0,
1: + OPAL_MAP_PE = 1,
1: +};
1: +
1: +enum OpalPeltvAction {
1: + OPAL_REMOVE_PE_FROM_DOMAIN = 0,
1: + OPAL_ADD_PE_TO_DOMAIN = 1,
1: +};
1: +
1: +enum OpalMveEnableAction {
1: + OPAL_DISABLE_MVE = 0,
1: + OPAL_ENABLE_MVE = 1,
1: +};
1: +
1: +enum OpalM64Action {
1: + OPAL_DISABLE_M64 = 0,
1: + OPAL_ENABLE_M64_SPLIT = 1,
1: + OPAL_ENABLE_M64_NON_SPLIT = 2,
1: +};
1: +
1: +enum OpalPciResetScope {
1: + OPAL_RESET_PHB_COMPLETE = 1,
1: + OPAL_RESET_PCI_LINK = 2,
1: + OPAL_RESET_PHB_ERROR = 3,
1: + OPAL_RESET_PCI_HOT = 4,
1: + OPAL_RESET_PCI_FUNDAMENTAL = 5,
1: + OPAL_RESET_PCI_IODA_TABLE = 6,
1: +};
1: +
1: +enum OpalPciResetState {
1: + OPAL_DEASSERT_RESET = 0,
1: + OPAL_ASSERT_RESET = 1,
1: +};
1: +
1: +enum {
1: + OPAL_PCI_TCE_KILL_PAGES = 0,
1: + OPAL_PCI_TCE_KILL_PE = 1,
1: + OPAL_PCI_TCE_KILL_ALL = 2,
1: +};
1: +
1: +struct iommu_table_group_link {
1: + struct list_head next;
1: + struct callback_head rcu;
1: + struct iommu_table_group *table_group;
1: +};
1: +
1: +struct npu_comp {
1: + struct iommu_table_group table_group;
1: + int pe_num;
1: + struct pnv_ioda_pe *pe[16];
1: +};
1: +
1: +struct npu {
1: + int index;
1: + struct npu_comp npucomp;
1: +};
1: +
1: +typedef void (*rcu_callback_t)(struct callback_head *);
1: +
1: +struct pnv_iov_data {
1: + u16 num_vfs;
1: + struct pnv_ioda_pe *vf_pe_arr;
1: + bool m64_single_mode[6];
1: + bool need_shift;
1: + long unsigned int used_m64_bar_mask[1];
1: + struct resource holes[6];
1: +};
1: +
1: +struct cxl_irq_ranges {
1: + irq_hw_number_t offset[4];
1: + irq_hw_number_t range[4];
1: +};
1: +
1: +enum OpalPciStatusToken {
1: + OPAL_EEH_NO_ERROR = 0,
1: + OPAL_EEH_IOC_ERROR = 1,
1: + OPAL_EEH_PHB_ERROR = 2,
1: + OPAL_EEH_PE_ERROR = 3,
1: + OPAL_EEH_PE_MMIO_ERROR = 4,
1: + OPAL_EEH_PE_DMA_ERROR = 5,
1: +};
1: +
1: +enum OpalPciErrorSeverity {
1: + OPAL_EEH_SEV_NO_ERROR = 0,
1: + OPAL_EEH_SEV_IOC_DEAD = 1,
1: + OPAL_EEH_SEV_PHB_DEAD = 2,
1: + OPAL_EEH_SEV_PHB_FENCED = 3,
1: + OPAL_EEH_SEV_PE_ER = 4,
1: + OPAL_EEH_SEV_INF = 5,
1: +};
1: +
1: +enum OpalErrinjectType {
1: + OPAL_ERR_INJECT_TYPE_IOA_BUS_ERR = 0,
1: + OPAL_ERR_INJECT_TYPE_IOA_BUS_ERR64 = 1,
1: +};
1: +
1: +enum OpalErrinjectFunc {
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_MEM_ADDR = 0,
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_MEM_DATA = 1,
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_IO_ADDR = 2,
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_IO_DATA = 3,
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_CFG_ADDR = 4,
1: + OPAL_ERR_INJECT_FUNC_IOA_LD_CFG_DATA = 5,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_MEM_ADDR = 6,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_MEM_DATA = 7,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_IO_ADDR = 8,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_IO_DATA = 9,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_CFG_ADDR = 10,
1: + OPAL_ERR_INJECT_FUNC_IOA_ST_CFG_DATA = 11,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_RD_ADDR = 12,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_RD_DATA = 13,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_RD_MASTER = 14,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_RD_TARGET = 15,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_ADDR = 16,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_DATA = 17,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_MASTER = 18,
1: + OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_TARGET = 19,
1: +};
1: +
1: +enum OpalPciReinitScope {
1: + OPAL_REINIT_PCI_DEV = 1000,
1: +};
1: +
1: +enum {
1: + OPAL_P7IOC_DIAG_TYPE_NONE = 0,
1: + OPAL_P7IOC_DIAG_TYPE_RGC = 1,
1: + OPAL_P7IOC_DIAG_TYPE_BI = 2,
1: + OPAL_P7IOC_DIAG_TYPE_CI = 3,
1: + OPAL_P7IOC_DIAG_TYPE_MISC = 4,
1: + OPAL_P7IOC_DIAG_TYPE_I2C = 5,
1: + OPAL_P7IOC_DIAG_TYPE_LAST = 6,
1: +};
1: +
1: +struct OpalIoP7IOCRgcErrorData {
1: + __be64 rgcStatus;
1: + __be64 rgcLdcp;
1: +};
1: +
1: +struct OpalIoP7IOCBiErrorData {
1: + __be64 biLdcp0;
1: + __be64 biLdcp1;
1: + __be64 biLdcp2;
1: + __be64 biFenceStatus;
1: + uint8_t biDownbound;
1: +};
1: +
1: +struct OpalIoP7IOCCiErrorData {
1: + __be64 ciPortStatus;
1: + __be64 ciPortLdcp;
1: + uint8_t ciPort;
1: +};
1: +
1: +struct OpalIoP7IOCErrorData {
1: + __be16 type;
1: + __be64 gemXfir;
1: + __be64 gemRfir;
1: + __be64 gemRirqfir;
1: + __be64 gemMask;
1: + __be64 gemRwof;
1: + __be64 lemFir;
1: + __be64 lemErrMask;
1: + __be64 lemAction0;
1: + __be64 lemAction1;
1: + __be64 lemWof;
1: + union {
1: + struct OpalIoP7IOCRgcErrorData rgc;
1: + struct OpalIoP7IOCBiErrorData bi;
1: + struct OpalIoP7IOCCiErrorData ci;
1: + };
1: +};
1: +
1: +enum OpalMemErr_Version {
1: + OpalMemErr_V1 = 1,
1: +};
1: +
1: +enum OpalMemErrType {
1: + OPAL_MEM_ERR_TYPE_RESILIENCE = 0,
1: + OPAL_MEM_ERR_TYPE_DYN_DALLOC = 1,
1: +};
1: +
1: +enum OpalMemErr_ResilErrType {
1: + OPAL_MEM_RESILIENCE_CE = 0,
1: + OPAL_MEM_RESILIENCE_UE = 1,
1: + OPAL_MEM_RESILIENCE_UE_SCRUB = 2,
1: +};
1: +
1: +enum OpalMemErr_DynErrType {
1: + OPAL_MEM_DYNAMIC_DEALLOC = 0,
1: +};
1: +
1: +struct OpalMemoryErrorData {
1: + enum OpalMemErr_Version version: 8;
1: + enum OpalMemErrType type: 8;
1: + __be16 flags;
1: + uint8_t reserved_1[4];
1: + union {
1: + struct {
1: + enum OpalMemErr_ResilErrType resil_err_type: 8;
1: + uint8_t reserved_1[7];
1: + __be64 physical_address_start;
1: + __be64 physical_address_end;
1: + } resilience;
1: + struct {
1: + enum OpalMemErr_DynErrType dyn_err_type: 8;
1: + uint8_t reserved_1[7];
1: + __be64 physical_address_start;
1: + __be64 physical_address_end;
1: + } dyn_dealloc;
1: + } u;
1: +};
1: +
1: +struct OpalMsgNode {
1: + struct list_head list;
1: + struct opal_msg msg;
1: +};
1: +
1: +struct platform_driver {
1: + int (*probe)(struct platform_device *);
1: + int (*remove)(struct platform_device *);
1: + void (*shutdown)(struct platform_device *);
1: + int (*suspend)(struct platform_device *, pm_message_t);
1: + int (*resume)(struct platform_device *);
1: + struct device_driver driver;
1: + const struct platform_device_id *id_table;
1: + bool prevent_deferred_probe;
1: +};
1: +
1: +enum {
1: + OPAL_IMC_COUNTERS_NEST = 1,
1: + OPAL_IMC_COUNTERS_CORE = 2,
1: + OPAL_IMC_COUNTERS_TRACE = 3,
1: +};
1: +
1: +struct imc_mem_info {
1: + u64 *vbase;
1: + u32 id;
1: +};
1: +
1: +struct imc_events {
1: + u32 value;
1: + char *name;
1: + char *unit;
1: + char *scale;
1: +};
1: +
1: +struct imc_pmu {
1: + struct pmu pmu;
1: + struct imc_mem_info *mem_info;
1: + struct imc_events *events;
1: + const struct attribute_group *attr_groups[4];
1: + u32 counter_mem_size;
1: + int domain;
1: + bool imc_counter_mmaped;
1: +};
1: +
1: +enum {
1: + IMC_TYPE_THREAD = 1,
1: + IMC_TYPE_TRACE = 2,
1: + IMC_TYPE_CORE = 4,
1: + IMC_TYPE_CHIP = 16,
1: +};
1: +
1: +enum vas_cop_type {
1: + VAS_COP_TYPE_FAULT = 0,
1: + VAS_COP_TYPE_842 = 1,
1: + VAS_COP_TYPE_842_HIPRI = 2,
1: + VAS_COP_TYPE_GZIP = 3,
1: + VAS_COP_TYPE_GZIP_HIPRI = 4,
1: + VAS_COP_TYPE_FTW = 5,
1: + VAS_COP_TYPE_MAX = 6,
1: +};
1: +
1: +struct vas_window;
1: +
1: +struct vas_instance {
1: + int vas_id;
1: + struct ida ida;
1: + struct list_head node;
1: + struct platform_device *pdev;
1: + u64 hvwc_bar_start;
1: + u64 uwc_bar_start;
1: + u64 paste_base_addr;
1: + u64 paste_win_id_shift;
1: + u64 irq_port;
1: + int virq;
1: + int fault_crbs;
1: + int fault_fifo_size;
1: + int fifo_in_progress;
1: + spinlock_t fault_lock;
1: + void *fault_fifo;
1: + struct vas_window *fault_win;
1: + struct mutex mutex;
1: + struct vas_window *rxwin[6];
1: + struct vas_window *windows[65536];
1: + char *dbgname;
1: + struct dentry *dbgdir;
1: +};
1: +
1: +struct vas_window {
1: + struct vas_instance *vinst;
1: + int winid;
1: + bool tx_win;
1: + bool nx_win;
1: + bool user_win;
1: + void *hvwc_map;
1: + void *uwc_map;
1: + struct pid *pid;
1: + struct pid *tgid;
1: + struct mm_struct *mm;
1: + int wcreds_max;
1: + char *dbgname;
1: + struct dentry *dbgdir;
1: + void *paste_kaddr;
1: + char *paste_addr_name;
1: + struct vas_window *rxwin;
1: + enum vas_cop_type cop;
1: + atomic_t num_txwins;
1: +};
1: +
1: +struct vas_rx_win_attr {
1: + void *rx_fifo;
1: + int rx_fifo_size;
1: + int wcreds_max;
1: + bool pin_win;
1: + bool rej_no_credit;
1: + bool tx_wcred_mode;
1: + bool rx_wcred_mode;
1: + bool tx_win_ord_mode;
1: + bool rx_win_ord_mode;
1: + bool data_stamp;
1: + bool nx_win;
1: + bool fault_win;
1: + bool user_win;
1: + bool notify_disable;
1: + bool intr_disable;
1: + bool notify_early;
1: + int lnotify_lpid;
1: + int lnotify_pid;
1: + int lnotify_tid;
1: + u32 pswid;
1: + int tc_mode;
1: +};
1: +
1: +struct vas_tx_win_attr {
1: + enum vas_cop_type cop;
1: + int wcreds_max;
1: + int lpid;
1: + int pidr;
1: + int pswid;
1: + int rsvd_txbuf_count;
1: + int tc_mode;
1: + bool user_win;
1: + bool pin_win;
1: + bool rej_no_credit;
1: + bool rsvd_txbuf_enable;
1: + bool tx_wcred_mode;
1: + bool rx_wcred_mode;
1: + bool tx_win_ord_mode;
1: + bool rx_win_ord_mode;
1: +};
1: +
1: +enum vas_notify_scope {
1: + VAS_SCOPE_LOCAL = 0,
1: + VAS_SCOPE_GROUP = 1,
1: + VAS_SCOPE_VECTORED_GROUP = 2,
1: + VAS_SCOPE_UNUSED = 3,
1: +};
1: +
1: +enum vas_dma_type {
1: + VAS_DMA_TYPE_INJECT = 0,
1: + VAS_DMA_TYPE_WRITE = 1,
1: +};
1: +
1: +enum vas_notify_after_count {
1: + VAS_NOTIFY_AFTER_256 = 0,
1: + VAS_NOTIFY_NONE = 1,
1: + VAS_NOTIFY_AFTER_2 = 2,
1: +};
1: +
1: +struct vas_winctx {
1: + void *rx_fifo;
1: + int rx_fifo_size;
1: + int wcreds_max;
1: + int rsvd_txbuf_count;
1: + bool user_win;
1: + bool nx_win;
1: + bool fault_win;
1: + bool rsvd_txbuf_enable;
1: + bool pin_win;
1: + bool rej_no_credit;
1: + bool tx_wcred_mode;
1: + bool rx_wcred_mode;
1: + bool tx_word_mode;
1: + bool rx_word_mode;
1: + bool data_stamp;
1: + bool xtra_write;
1: + bool notify_disable;
1: + bool intr_disable;
1: + bool fifo_disable;
1: + bool notify_early;
1: + bool notify_os_intr_reg;
1: + int lpid;
1: + int pidr;
1: + int lnotify_lpid;
1: + int lnotify_pid;
1: + int lnotify_tid;
1: + u32 pswid;
1: + int rx_win_id;
1: + int fault_win_id;
1: + int tc_mode;
1: + u64 irq_port;
1: + enum vas_dma_type dma_type;
1: + enum vas_notify_scope min_scope;
1: + enum vas_notify_scope max_scope;
1: + enum vas_notify_after_count notify_after_count;
1: +};
1: +
1: +struct trace_event_raw_vas_rx_win_open {
1: + struct trace_entry ent;
1: + struct task_struct *tsk;
1: + int pid;
1: + int cop;
1: + int vasid;
1: + struct vas_rx_win_attr *rxattr;
1: + int lnotify_lpid;
1: + int lnotify_pid;
1: + int lnotify_tid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_vas_tx_win_open {
1: + struct trace_entry ent;
1: + struct task_struct *tsk;
1: + int pid;
1: + int cop;
1: + int vasid;
1: + struct vas_tx_win_attr *txattr;
1: + int lpid;
1: + int pidr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_vas_paste_crb {
1: + struct trace_entry ent;
1: + struct task_struct *tsk;
1: + struct vas_window *win;
1: + int pid;
1: + int vasid;
1: + int winid;
1: + long unsigned int paste_kaddr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_vas_rx_win_open {};
1: +
1: +struct trace_event_data_offsets_vas_tx_win_open {};
1: +
1: +struct trace_event_data_offsets_vas_paste_crb {};
1: +
1: +typedef void (*btf_trace_vas_rx_win_open)(void *, struct task_struct *, int, int, struct vas_rx_win_attr *);
1: +
1: +typedef void (*btf_trace_vas_tx_win_open)(void *, struct task_struct *, int, int, struct vas_tx_win_attr *);
1: +
1: +typedef void (*btf_trace_vas_paste_crb)(void *, struct task_struct *, struct vas_window *);
1: +
1: +struct coprocessor_completion_block {
1: + __be64 value;
1: + __be64 address;
1: +};
1: +
1: +struct coprocessor_status_block {
1: + u8 flags;
1: + u8 cs;
1: + u8 cc;
1: + u8 ce;
1: + __be32 count;
1: + __be64 address;
1: +};
1: +
1: +struct data_descriptor_entry {
1: + __be16 flags;
1: + u8 count;
1: + u8 index;
1: + __be32 length;
1: + __be64 address;
1: +};
1: +
1: +struct nx_fault_stamp {
1: + __be64 fault_storage_addr;
1: + __be16 reserved;
1: + __u8 flags;
1: + __u8 fault_status;
1: + __be32 pswid;
1: +};
1: +
1: +struct coprocessor_request_block {
1: + __be32 ccw;
1: + __be32 flags;
1: + __be64 csb_addr;
1: + struct data_descriptor_entry source;
1: + struct data_descriptor_entry target;
1: + struct coprocessor_completion_block ccb;
1: + union {
1: + struct nx_fault_stamp nx;
1: + u8 reserved[16];
1: + } stamp;
1: + u8 reserved[32];
1: + struct coprocessor_status_block csb;
1: +};
1: +
1: +struct vas_tx_win_open_attr {
1: + __u32 version;
1: + __s16 vas_id;
1: + __u16 reserved1;
1: + __u64 flags;
1: + __u64 reserved2[6];
1: +};
1: +
1: +struct coproc_dev {
1: + struct cdev cdev;
1: + struct device *device;
1: + char *name;
1: + dev_t devt;
1: + struct class *class;
1: + enum vas_cop_type cop_type;
1: +};
1: +
1: +struct coproc_instance {
1: + struct coproc_dev *coproc;
1: + struct vas_window *txwin;
1: +};
1: +
1: +struct actag_range {
1: + u16 start;
1: + u16 count;
1: +};
1: +
1: +struct npu_link {
1: + struct list_head list;
1: + int domain;
1: + int bus;
1: + int dev;
1: + u16 fn_desired_actags[8];
1: + struct actag_range fn_actags[8];
1: + bool assignment_done;
1: +};
1: +
1: +struct spa_data {
1: + u64 phb_opal_id;
1: + u32 bdfn;
1: +};
1: +
1: +struct hvcall_mpp_data {
1: + long unsigned int entitled_mem;
1: + long unsigned int mapped_mem;
1: + short unsigned int group_num;
1: + short unsigned int pool_num;
1: + unsigned char mem_weight;
1: + unsigned char unallocated_mem_weight;
1: + long unsigned int unallocated_entitlement;
1: + long unsigned int pool_size;
1: + long int loan_request;
1: + long unsigned int backing_mem;
1: +};
1: +
1: +struct hvcall_mpp_x_data {
1: + long unsigned int coalesced_bytes;
1: + long unsigned int pool_coalesced_bytes;
1: + long unsigned int pool_purr_cycles;
1: + long unsigned int pool_spurr_cycles;
1: + long unsigned int reserved[3];
1: +};
1: +
1: +struct dtl_worker {
1: + struct delayed_work work;
1: + int cpu;
1: +};
1: +
1: +struct vcpu_dispatch_data {
1: + int last_disp_cpu;
1: + int total_disp;
1: + int same_cpu_disp;
1: + int same_chip_disp;
1: + int diff_chip_disp;
1: + int far_chip_disp;
1: + int numa_home_disp;
1: + int numa_remote_disp;
1: + int numa_far_disp;
1: +};
1: +
1: +struct hpt_resize_state {
1: + long unsigned int shift;
1: + int commit_rc;
1: +};
1: +
1: +struct of_drc_info {
1: + char *drc_type;
1: + char *drc_name_prefix;
1: + u32 drc_index_start;
1: + u32 drc_name_suffix_start;
1: + u32 num_sequential_elems;
1: + u32 sequential_inc;
1: + u32 drc_power_domain;
1: + u32 last_drc_index;
1: +};
1: +
1: +struct h_cpu_char_result {
1: + u64 character;
1: + u64 behaviour;
1: +};
1: +
1: +struct of_reconfig_data {
1: + struct device_node *dn;
1: + struct property *prop;
1: + struct property *old_prop;
1: +};
1: +
1: +enum swiotlb_force {
1: + SWIOTLB_NORMAL = 0,
1: + SWIOTLB_FORCE = 1,
1: + SWIOTLB_NO_FORCE = 2,
1: +};
1: +
1: +enum rtas_iov_fw_value_map {
1: + NUM_RES_PROPERTY = 0,
1: + LOW_INT = 1,
1: + START_OF_ENTRIES = 2,
1: + APERTURE_PROPERTY = 2,
1: + WDW_SIZE_PROPERTY = 4,
1: + NEXT_ENTRY = 7,
1: +};
1: +
1: +enum get_iov_fw_value_index {
1: + BAR_ADDRS = 1,
1: + APERTURE_SIZE = 2,
1: + WDW_SIZE = 3,
1: +};
1: +
1: +struct memory_notify {
1: + long unsigned int start_pfn;
1: + long unsigned int nr_pages;
1: + int status_change_nid_normal;
1: + int status_change_nid_high;
1: + int status_change_nid;
1: +};
1: +
1: +enum {
1: + DDW_QUERY_PE_DMA_WIN = 0,
1: + DDW_CREATE_PE_DMA_WIN = 1,
1: + DDW_REMOVE_PE_DMA_WIN = 2,
1: + DDW_APPLICABLE_SIZE = 3,
1: +};
1: +
1: +enum {
1: + DDW_EXT_SIZE = 0,
1: + DDW_EXT_RESET_DMA_WIN = 1,
1: + DDW_EXT_QUERY_OUT_SIZE = 2,
1: +};
1: +
1: +struct dynamic_dma_window_prop {
1: + __be32 liobn;
1: + __be64 dma_base;
1: + __be32 tce_shift;
1: + __be32 window_shift;
1: +};
1: +
1: +struct direct_window {
1: + struct device_node *device;
1: + const struct dynamic_dma_window_prop *prop;
1: + struct list_head list;
1: +};
1: +
1: +struct ddw_query_response {
1: + u32 windows_available;
1: + u64 largest_available_block;
1: + u32 page_size;
1: + u32 migration_capable;
1: +};
1: +
1: +struct ddw_create_response {
1: + u32 liobn;
1: + u32 addr_hi;
1: + u32 addr_lo;
1: +};
1: +
1: +struct failed_ddw_pdn {
1: + struct device_node *pdn;
1: + struct list_head list;
1: +};
1: +
1: +struct pseries_hp_errorlog {
1: + u8 resource;
1: + u8 action;
1: + u8 id_type;
1: + u8 reserved;
1: + union {
1: + __be32 drc_index;
1: + __be32 drc_count;
1: + struct {
1: + __be32 count;
1: + __be32 index;
1: + } ic;
1: + char drc_name[1];
1: + } _drc_u;
1: +};
1: +
1: +struct pseries_mc_errorlog {
1: + __be32 fru_id;
1: + __be32 proc_id;
1: + u8 error_type;
1: + u8 sub_err_type;
1: + u8 reserved_1[6];
1: + __be64 effective_address;
1: + __be64 logical_address;
1: +};
1: +
1: +struct epow_errorlog {
1: + unsigned char sensor_value;
1: + unsigned char event_modifier;
1: + unsigned char extended_modifier;
1: + unsigned char reserved;
1: + unsigned char platform_reason;
1: +};
1: +
1: +struct hypertas_fw_feature {
1: + long unsigned int val;
1: + char *name;
1: +};
1: +
1: +struct vec5_fw_feature {
1: + long unsigned int val;
1: + unsigned int feature;
1: +};
1: +
1: +enum {
1: + WQ_UNBOUND = 2,
1: + WQ_FREEZABLE = 4,
1: + WQ_MEM_RECLAIM = 8,
1: + WQ_HIGHPRI = 16,
1: + WQ_CPU_INTENSIVE = 32,
1: + WQ_SYSFS = 64,
1: + WQ_POWER_EFFICIENT = 128,
1: + __WQ_DRAINING = 65536,
1: + __WQ_ORDERED = 131072,
1: + __WQ_LEGACY = 262144,
1: + __WQ_ORDERED_EXPLICIT = 524288,
1: + WQ_MAX_ACTIVE = 512,
1: + WQ_MAX_UNBOUND_PER_CPU = 4,
1: + WQ_DFL_ACTIVE = 256,
1: +};
1: +
1: +struct class_attribute {
1: + struct attribute attr;
1: + ssize_t (*show)(struct class *, struct class_attribute *, char *);
1: + ssize_t (*store)(struct class *, struct class_attribute *, const char *, size_t);
1: +};
1: +
1: +struct pseries_hp_work {
1: + struct work_struct work;
1: + struct pseries_hp_errorlog *errlog;
1: +};
1: +
1: +struct cc_workarea {
1: + __be32 drc_index;
1: + __be32 zero;
1: + __be32 name_offset;
1: + __be32 prop_length;
1: + __be32 prop_offset;
1: +};
1: +
1: +struct class_attribute_string {
1: + struct class_attribute attr;
1: + char *str;
1: +};
1: +
1: +struct update_props_workarea {
1: + __be32 phandle;
1: + __be32 state;
1: + __be64 reserved;
1: + __be32 nprops;
1: +} __attribute__((packed));
1: +
1: +enum pci_bus_speed {
1: + PCI_SPEED_33MHz = 0,
1: + PCI_SPEED_66MHz = 1,
1: + PCI_SPEED_66MHz_PCIX = 2,
1: + PCI_SPEED_100MHz_PCIX = 3,
1: + PCI_SPEED_133MHz_PCIX = 4,
1: + PCI_SPEED_66MHz_PCIX_ECC = 5,
1: + PCI_SPEED_100MHz_PCIX_ECC = 6,
1: + PCI_SPEED_133MHz_PCIX_ECC = 7,
1: + PCI_SPEED_66MHz_PCIX_266 = 9,
1: + PCI_SPEED_100MHz_PCIX_266 = 10,
1: + PCI_SPEED_133MHz_PCIX_266 = 11,
1: + AGP_UNKNOWN = 12,
1: + AGP_1X = 13,
1: + AGP_2X = 14,
1: + AGP_4X = 15,
1: + AGP_8X = 16,
1: + PCI_SPEED_66MHz_PCIX_533 = 17,
1: + PCI_SPEED_100MHz_PCIX_533 = 18,
1: + PCI_SPEED_133MHz_PCIX_533 = 19,
1: + PCIE_SPEED_2_5GT = 20,
1: + PCIE_SPEED_5_0GT = 21,
1: + PCIE_SPEED_8_0GT = 22,
1: + PCIE_SPEED_16_0GT = 23,
1: + PCIE_SPEED_32_0GT = 24,
1: + PCI_SPEED_UNKNOWN = 255,
1: +};
1: +
1: +struct pe_map_bar_entry {
1: + __be64 bar;
1: + __be16 rid;
1: + __be16 pe_num;
1: + __be32 reserved;
1: +};
1: +
1: +struct msi_counts {
1: + struct device_node *requestor;
1: + int num_devices;
1: + int request;
1: + int quota;
1: + int spare;
1: + int over_quota;
1: +};
1: +
1: +typedef void (*exitcall_t)();
1: +
1: +typedef int mhp_t;
1: +
1: +struct memory_block {
1: + long unsigned int start_section_nr;
1: + long unsigned int state;
1: + int online_type;
1: + int phys_device;
1: + struct device dev;
1: + int nid;
1: +};
1: +
1: +struct pseries_io_event {
1: + uint8_t event_type;
1: + uint8_t rpc_data_len;
1: + uint8_t scope;
1: + uint8_t event_subtype;
1: + uint32_t drc_index;
1: + uint8_t rpc_data[216];
1: +};
1: +
1: +struct vio_device_id {
1: + char type[32];
1: + char compat[32];
1: +};
1: +
1: +struct vio_pfo_op {
1: + u64 flags;
1: + s64 in;
1: + s64 inlen;
1: + s64 out;
1: + s64 outlen;
1: + u64 csbcpb;
1: + void *done;
1: + long unsigned int handle;
1: + unsigned int timeout;
1: + long int hcall_err;
1: +};
1: +
1: +enum vio_dev_family {
1: + VDEVICE = 0,
1: + PFO = 1,
1: +};
1: +
1: +struct vio_dev {
1: + const char *name;
1: + const char *type;
1: + uint32_t unit_address;
1: + uint32_t resource_id;
1: + unsigned int irq;
1: + struct {
1: + size_t desired;
1: + size_t entitled;
1: + size_t allocated;
1: + atomic_t allocs_failed;
1: + } cmo;
1: + enum vio_dev_family family;
1: + struct device dev;
1: +};
1: +
1: +struct vio_driver {
1: + const char *name;
1: + const struct vio_device_id *id_table;
1: + int (*probe)(struct vio_dev *, const struct vio_device_id *);
1: + int (*remove)(struct vio_dev *);
1: + long unsigned int (*get_desired_dma)(struct vio_dev *);
1: + const struct dev_pm_ops *pm;
1: + struct device_driver driver;
1: +};
1: +
1: +typedef int suspend_state_t;
1: +
1: +struct platform_suspend_ops {
1: + int (*valid)(suspend_state_t);
1: + int (*begin)(suspend_state_t);
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + int (*enter)(suspend_state_t);
1: + void (*wake)();
1: + void (*finish)();
1: + bool (*suspend_again)();
1: + void (*end)();
1: + void (*recover)();
1: +};
1: +
1: +enum {
1: + DUMP_PREFIX_NONE = 0,
1: + DUMP_PREFIX_ADDRESS = 1,
1: + DUMP_PREFIX_OFFSET = 2,
1: +};
1: +
1: +enum {
1: + BPF_REG_0 = 0,
1: + BPF_REG_1 = 1,
1: + BPF_REG_2 = 2,
1: + BPF_REG_3 = 3,
1: + BPF_REG_4 = 4,
1: + BPF_REG_5 = 5,
1: + BPF_REG_6 = 6,
1: + BPF_REG_7 = 7,
1: + BPF_REG_8 = 8,
1: + BPF_REG_9 = 9,
1: + BPF_REG_10 = 10,
1: + __MAX_BPF_REG = 11,
1: +};
1: +
1: +struct bpf_binary_header {
1: + u32 pages;
1: + int: 32;
1: + u8 image[0];
1: +};
1: +
1: +struct codegen_context {
1: + unsigned int seen;
1: + unsigned int idx;
1: + unsigned int stack_size;
1: +};
1: +
1: +struct powerpc64_jit_data {
1: + struct bpf_binary_header *header;
1: + u32 *addrs;
1: + u8 *image;
1: + u32 proglen;
1: + struct codegen_context ctx;
1: +};
1: +
1: +enum ftrace_dump_mode {
1: + DUMP_NONE = 0,
1: + DUMP_ALL = 1,
1: + DUMP_ORIG = 2,
1: +};
1: +
1: +enum tk_offsets {
1: + TK_OFFS_REAL = 0,
1: + TK_OFFS_BOOT = 1,
1: + TK_OFFS_TAI = 2,
1: + TK_OFFS_MAX = 3,
1: +};
1: +
1: +struct sysrq_key_op {
1: + void (* const handler)(int);
1: + const char * const help_msg;
1: + const char * const action_msg;
1: + const int enable_mask;
1: +};
1: +
1: +enum lockdown_reason {
1: + LOCKDOWN_NONE = 0,
1: + LOCKDOWN_MODULE_SIGNATURE = 1,
1: + LOCKDOWN_DEV_MEM = 2,
1: + LOCKDOWN_EFI_TEST = 3,
1: + LOCKDOWN_KEXEC = 4,
1: + LOCKDOWN_HIBERNATION = 5,
1: + LOCKDOWN_PCI_ACCESS = 6,
1: + LOCKDOWN_IOPORT = 7,
1: + LOCKDOWN_MSR = 8,
1: + LOCKDOWN_ACPI_TABLES = 9,
1: + LOCKDOWN_PCMCIA_CIS = 10,
1: + LOCKDOWN_TIOCSSERIAL = 11,
1: + LOCKDOWN_MODULE_PARAMETERS = 12,
1: + LOCKDOWN_MMIOTRACE = 13,
1: + LOCKDOWN_DEBUGFS = 14,
1: + LOCKDOWN_XMON_WR = 15,
1: + LOCKDOWN_INTEGRITY_MAX = 16,
1: + LOCKDOWN_KCORE = 17,
1: + LOCKDOWN_KPROBES = 18,
1: + LOCKDOWN_BPF_READ = 19,
1: + LOCKDOWN_PERF = 20,
1: + LOCKDOWN_TRACEFS = 21,
1: + LOCKDOWN_XMON_RW = 22,
1: + LOCKDOWN_CONFIDENTIALITY_MAX = 23,
1: +};
1: +
1: +enum {
1: + XIVE_DUMP_TM_HYP = 0,
1: + XIVE_DUMP_TM_POOL = 1,
1: + XIVE_DUMP_TM_OS = 2,
1: + XIVE_DUMP_TM_USER = 3,
1: + XIVE_DUMP_VP = 4,
1: + XIVE_DUMP_EMU_STATE = 5,
1: +};
1: +
1: +struct bpt {
1: + long unsigned int address;
1: + struct ppc_inst *instr;
1: + atomic_t ref_count;
1: + int enabled;
1: + long unsigned int pad;
1: +};
1: +
1: +typedef int (*instruction_dump_func)(long unsigned int, long unsigned int);
1: +
1: +typedef long unsigned int (*callfunc_t)(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef uint64_t ppc_cpu_t;
1: +
1: +struct powerpc_opcode {
1: + const char *name;
1: + long unsigned int opcode;
1: + long unsigned int mask;
1: + ppc_cpu_t flags;
1: + ppc_cpu_t deprecated;
1: + unsigned char operands[8];
1: +};
1: +
1: +struct powerpc_operand {
1: + unsigned int bitm;
1: + int shift;
1: + long unsigned int (*insert)(long unsigned int, long int, ppc_cpu_t, const char **);
1: + long int (*extract)(long unsigned int, ppc_cpu_t, int *);
1: + long unsigned int flags;
1: +};
1: +
1: +struct powerpc_macro {
1: + const char *name;
1: + unsigned int operands;
1: + ppc_cpu_t flags;
1: + const char *format;
1: +};
1: +
1: +struct kvmppc_spapr_tce_iommu_table {
1: + struct callback_head rcu;
1: + struct list_head next;
1: + struct iommu_table *tbl;
1: + struct kref kref;
1: +};
1: +
1: +struct kvmppc_spapr_tce_table {
1: + struct list_head list;
1: + struct kvm *kvm;
1: + u64 liobn;
1: + struct callback_head rcu;
1: + u32 page_shift;
1: + u64 offset;
1: + u64 size;
1: + struct list_head iommu_tables;
1: + struct mutex alloc_lock;
1: + struct page *pages[0];
1: +};
1: +
1: +struct mm_iommu_table_group_mem_t___2;
1: +
1: +struct kvm_device_attr {
1: + __u32 flags;
1: + __u32 group;
1: + __u64 attr;
1: + __u64 addr;
1: +};
1: +
1: +struct kvm_device;
1: +
1: +struct kvm_device_ops {
1: + const char *name;
1: + int (*create)(struct kvm_device *, u32);
1: + void (*init)(struct kvm_device *);
1: + void (*destroy)(struct kvm_device *);
1: + void (*release)(struct kvm_device *);
1: + int (*set_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*get_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + int (*has_attr)(struct kvm_device *, struct kvm_device_attr *);
1: + long int (*ioctl)(struct kvm_device *, unsigned int, long unsigned int);
1: + int (*mmap)(struct kvm_device *, struct vm_area_struct *);
1: +};
1: +
1: +struct kvmppc_xive_src_block;
1: +
1: +struct kvmppc_xive_ops;
1: +
1: +struct kvmppc_xive {
1: + struct kvm *kvm;
1: + struct kvm_device *dev;
1: + struct dentry *dentry;
1: + u32 vp_base;
1: + struct kvmppc_xive_src_block *src_blocks[1024];
1: + u32 max_sbid;
1: + u32 src_count;
1: + u32 saved_src_count;
1: + u32 delayed_irqs;
1: + u8 qmap;
1: + u32 q_order;
1: + u32 q_page_order;
1: + u8 single_escalation;
1: + u32 nr_servers;
1: + struct kvmppc_xive_ops *ops;
1: + struct address_space *mapping;
1: + struct mutex mapping_lock;
1: + struct mutex lock;
1: +};
1: +
1: +struct kvmppc_ics;
1: +
1: +struct kvmppc_xics {
1: + struct kvm *kvm;
1: + struct kvm_device *dev;
1: + struct dentry *dentry;
1: + u32 max_icsid;
1: + bool real_mode;
1: + bool real_mode_dbg;
1: + u32 err_noics;
1: + u32 err_noicp;
1: + struct kvmppc_ics *ics[1024];
1: +};
1: +
1: +union kvmppc_icp_state {
1: + long unsigned int raw;
1: + struct {
1: + u8 out_ee: 1;
1: + u8 need_resend: 1;
1: + u8 cppr;
1: + u8 mfrr;
1: + u8 pending_pri;
1: + u32 xisr;
1: + };
1: +};
1: +
1: +struct kvmppc_icp {
1: + struct kvm_vcpu *vcpu;
1: + long unsigned int server_num;
1: + union kvmppc_icp_state state;
1: + long unsigned int resend_map[16];
1: + u32 rm_action;
1: + struct kvm_vcpu *rm_kick_target;
1: + struct kvmppc_icp *rm_resend_icp;
1: + u32 rm_reject;
1: + u32 rm_eoied_irq;
1: + long unsigned int n_rm_kick_vcpu;
1: + long unsigned int n_rm_check_resend;
1: + long unsigned int n_rm_notify_eoi;
1: + long unsigned int n_check_resend;
1: + long unsigned int n_reject;
1: + union kvmppc_icp_state rm_dbgstate;
1: + struct kvm_vcpu *rm_dbgtgt;
1: +};
1: +
1: +struct kvmppc_xive_vcpu {
1: + struct kvmppc_xive *xive;
1: + struct kvm_vcpu *vcpu;
1: + bool valid;
1: + u32 server_num;
1: + u32 vp_id;
1: + u32 vp_chip_id;
1: + u32 vp_cam;
1: + u32 vp_ipi;
1: + struct xive_irq_data vp_ipi_data;
1: + uint8_t cppr;
1: + uint8_t hw_cppr;
1: + uint8_t mfrr;
1: + uint8_t pending;
1: + struct xive_q queues[8];
1: + u32 esc_virq[8];
1: + char *esc_virq_names[8];
1: + u32 delayed_irq;
1: + u64 stat_rm_h_xirr;
1: + u64 stat_rm_h_ipoll;
1: + u64 stat_rm_h_cppr;
1: + u64 stat_rm_h_eoi;
1: + u64 stat_rm_h_ipi;
1: + u64 stat_vm_h_xirr;
1: + u64 stat_vm_h_ipoll;
1: + u64 stat_vm_h_cppr;
1: + u64 stat_vm_h_eoi;
1: + u64 stat_vm_h_ipi;
1: +};
1: +
1: +struct kvm_device {
1: + const struct kvm_device_ops *ops;
1: + struct kvm *kvm;
1: + void *private;
1: + struct list_head vm_node;
1: +};
1: +
1: +union kvmppc_rm_state {
1: + long unsigned int raw;
1: + struct {
1: + u32 in_host;
1: + u32 rm_action;
1: + };
1: +};
1: +
1: +struct kvmppc_host_rm_core {
1: + union kvmppc_rm_state rm_state;
1: + void *rm_data;
1: + char pad[112];
1: +};
1: +
1: +struct kvmppc_host_rm_ops {
1: + struct kvmppc_host_rm_core *rm_core;
1: + void (*vcpu_kick)(struct kvm_vcpu *);
1: +};
1: +
1: +struct ics_irq_state {
1: + u32 number;
1: + u32 server;
1: + u32 pq_state;
1: + u8 priority;
1: + u8 saved_priority;
1: + u8 resend;
1: + u8 masked_pending;
1: + u8 lsi;
1: + u8 exists;
1: + int intr_cpu;
1: + u32 host_irq;
1: +};
1: +
1: +struct kvmppc_ics {
1: + arch_spinlock_t lock;
1: + u16 icsid;
1: + struct ics_irq_state irq_state[1024];
1: +};
1: +
1: +struct kvmppc_xive_irq_state {
1: + bool valid;
1: + u32 number;
1: + u32 ipi_number;
1: + struct xive_irq_data ipi_data;
1: + u32 pt_number;
1: + struct xive_irq_data *pt_data;
1: + u8 guest_priority;
1: + u8 saved_priority;
1: + u32 act_server;
1: + u8 act_priority;
1: + bool in_eoi;
1: + bool old_p;
1: + bool old_q;
1: + bool lsi;
1: + bool asserted;
1: + bool in_queue;
1: + bool saved_p;
1: + bool saved_q;
1: + u8 saved_scan_prio;
1: + u32 eisn;
1: +};
1: +
1: +struct kvmppc_xive_src_block {
1: + arch_spinlock_t lock;
1: + u16 id;
1: + struct kvmppc_xive_irq_state irq_state[1024];
1: +};
1: +
1: +struct kvmppc_xive_ops {
1: + int (*reset_mapped)(struct kvm *, long unsigned int);
1: +};
1: +
1: +struct cma;
1: +
1: +struct kernel_stat {
1: + long unsigned int irqs_sum;
1: + unsigned int softirqs[10];
1: +};
1: +
1: +enum {
1: + scan_fetch = 0,
1: + scan_poll = 1,
1: + scan_eoi = 2,
1: +};
1: +
1: +enum perf_callchain_context {
1: + PERF_CONTEXT_HV = 4294967264,
1: + PERF_CONTEXT_KERNEL = 4294967168,
1: + PERF_CONTEXT_USER = 4294966784,
1: + PERF_CONTEXT_GUEST = 4294965248,
1: + PERF_CONTEXT_GUEST_KERNEL = 4294965120,
1: + PERF_CONTEXT_GUEST_USER = 4294964736,
1: + PERF_CONTEXT_MAX = 4294963201,
1: +};
1: +
1: +struct perf_callchain_entry_ctx {
1: + struct perf_callchain_entry *entry;
1: + u32 max_stack;
1: + u32 nr;
1: + short int contexts;
1: + bool contexts_maxed;
1: +};
1: +
1: +struct signal_frame_64 {
1: + char dummy[128];
1: + struct ucontext uc;
1: + long unsigned int unused[2];
1: + unsigned int tramp[6];
1: + struct siginfo *pinfo;
1: + void *puc;
1: + struct siginfo info;
1: + char abigap[288];
1: +};
1: +
1: +enum perf_sample_regs_abi {
1: + PERF_SAMPLE_REGS_ABI_NONE = 0,
1: + PERF_SAMPLE_REGS_ABI_32 = 1,
1: + PERF_SAMPLE_REGS_ABI_64 = 2,
1: +};
1: +
1: +enum perf_event_powerpc_regs {
1: + PERF_REG_POWERPC_R0 = 0,
1: + PERF_REG_POWERPC_R1 = 1,
1: + PERF_REG_POWERPC_R2 = 2,
1: + PERF_REG_POWERPC_R3 = 3,
1: + PERF_REG_POWERPC_R4 = 4,
1: + PERF_REG_POWERPC_R5 = 5,
1: + PERF_REG_POWERPC_R6 = 6,
1: + PERF_REG_POWERPC_R7 = 7,
1: + PERF_REG_POWERPC_R8 = 8,
1: + PERF_REG_POWERPC_R9 = 9,
1: + PERF_REG_POWERPC_R10 = 10,
1: + PERF_REG_POWERPC_R11 = 11,
1: + PERF_REG_POWERPC_R12 = 12,
1: + PERF_REG_POWERPC_R13 = 13,
1: + PERF_REG_POWERPC_R14 = 14,
1: + PERF_REG_POWERPC_R15 = 15,
1: + PERF_REG_POWERPC_R16 = 16,
1: + PERF_REG_POWERPC_R17 = 17,
1: + PERF_REG_POWERPC_R18 = 18,
1: + PERF_REG_POWERPC_R19 = 19,
1: + PERF_REG_POWERPC_R20 = 20,
1: + PERF_REG_POWERPC_R21 = 21,
1: + PERF_REG_POWERPC_R22 = 22,
1: + PERF_REG_POWERPC_R23 = 23,
1: + PERF_REG_POWERPC_R24 = 24,
1: + PERF_REG_POWERPC_R25 = 25,
1: + PERF_REG_POWERPC_R26 = 26,
1: + PERF_REG_POWERPC_R27 = 27,
1: + PERF_REG_POWERPC_R28 = 28,
1: + PERF_REG_POWERPC_R29 = 29,
1: + PERF_REG_POWERPC_R30 = 30,
1: + PERF_REG_POWERPC_R31 = 31,
1: + PERF_REG_POWERPC_NIP = 32,
1: + PERF_REG_POWERPC_MSR = 33,
1: + PERF_REG_POWERPC_ORIG_R3 = 34,
1: + PERF_REG_POWERPC_CTR = 35,
1: + PERF_REG_POWERPC_LINK = 36,
1: + PERF_REG_POWERPC_XER = 37,
1: + PERF_REG_POWERPC_CCR = 38,
1: + PERF_REG_POWERPC_SOFTE = 39,
1: + PERF_REG_POWERPC_TRAP = 40,
1: + PERF_REG_POWERPC_DAR = 41,
1: + PERF_REG_POWERPC_DSISR = 42,
1: + PERF_REG_POWERPC_SIER = 43,
1: + PERF_REG_POWERPC_MMCRA = 44,
1: + PERF_REG_POWERPC_MMCR0 = 45,
1: + PERF_REG_POWERPC_MMCR1 = 46,
1: + PERF_REG_POWERPC_MMCR2 = 47,
1: + PERF_REG_POWERPC_MMCR3 = 48,
1: + PERF_REG_POWERPC_SIER2 = 49,
1: + PERF_REG_POWERPC_SIER3 = 50,
1: + PERF_REG_POWERPC_MAX = 45,
1: +};
1: +
1: +struct signal_frame_32 {
1: + char dummy[64];
1: + struct sigcontext32 sctx;
1: + struct mcontext32 mctx;
1: + int abigap[56];
1: +};
1: +
1: +struct rt_signal_frame_32 {
1: + char dummy[80];
1: + compat_siginfo_t info;
1: + struct ucontext32 uc;
1: + int abigap[56];
1: +};
1: +
1: +enum perf_event_sample_format {
1: + PERF_SAMPLE_IP = 1,
1: + PERF_SAMPLE_TID = 2,
1: + PERF_SAMPLE_TIME = 4,
1: + PERF_SAMPLE_ADDR = 8,
1: + PERF_SAMPLE_READ = 16,
1: + PERF_SAMPLE_CALLCHAIN = 32,
1: + PERF_SAMPLE_ID = 64,
1: + PERF_SAMPLE_CPU = 128,
1: + PERF_SAMPLE_PERIOD = 256,
1: + PERF_SAMPLE_STREAM_ID = 512,
1: + PERF_SAMPLE_RAW = 1024,
1: + PERF_SAMPLE_BRANCH_STACK = 2048,
1: + PERF_SAMPLE_REGS_USER = 4096,
1: + PERF_SAMPLE_STACK_USER = 8192,
1: + PERF_SAMPLE_WEIGHT = 16384,
1: + PERF_SAMPLE_DATA_SRC = 32768,
1: + PERF_SAMPLE_IDENTIFIER = 65536,
1: + PERF_SAMPLE_TRANSACTION = 131072,
1: + PERF_SAMPLE_REGS_INTR = 262144,
1: + PERF_SAMPLE_PHYS_ADDR = 524288,
1: + PERF_SAMPLE_AUX = 1048576,
1: + PERF_SAMPLE_CGROUP = 2097152,
1: + PERF_SAMPLE_MAX = 4194304,
1: + __PERF_SAMPLE_CALLCHAIN_EARLY = 0,
1: +};
1: +
1: +struct mmcr_regs {
1: + long unsigned int mmcr0;
1: + long unsigned int mmcr1;
1: + long unsigned int mmcr2;
1: + long unsigned int mmcra;
1: + long unsigned int mmcr3;
1: +};
1: +
1: +struct power_pmu {
1: + const char *name;
1: + int n_counter;
1: + int max_alternatives;
1: + long unsigned int add_fields;
1: + long unsigned int test_adder;
1: + int (*compute_mmcr)(u64 *, int, unsigned int *, struct mmcr_regs *, struct perf_event **);
1: + int (*get_constraint)(u64, long unsigned int *, long unsigned int *);
1: + int (*get_alternatives)(u64, unsigned int, u64 *);
1: + void (*get_mem_data_src)(union perf_mem_data_src *, u32, struct pt_regs *);
1: + void (*get_mem_weight)(u64 *);
1: + long unsigned int group_constraint_mask;
1: + long unsigned int group_constraint_val;
1: + u64 (*bhrb_filter_map)(u64);
1: + void (*config_bhrb)(u64);
1: + void (*disable_pmc)(unsigned int, struct mmcr_regs *);
1: + int (*limited_pmc_event)(u64);
1: + u32 flags;
1: + const struct attribute_group **attr_groups;
1: + int n_generic;
1: + int *generic_events;
1: + u64 (*cache_events)[42];
1: + int n_blacklist_ev;
1: + int *blacklist_ev;
1: + int bhrb_nr;
1: + int capabilities;
1: +};
1: +
1: +struct perf_pmu_events_attr {
1: + struct device_attribute attr;
1: + u64 id;
1: + const char *event_str;
1: +};
1: +
1: +struct cpu_hw_events {
1: + int n_events;
1: + int n_percpu;
1: + int disabled;
1: + int n_added;
1: + int n_limited;
1: + u8 pmcs_enabled;
1: + struct perf_event *event[8];
1: + u64 events[8];
1: + unsigned int flags[8];
1: + struct mmcr_regs mmcr;
1: + struct perf_event *limited_counter[2];
1: + u8 limited_hwidx[2];
1: + u64 alternatives[64];
1: + long unsigned int amasks[64];
1: + long unsigned int avalues[64];
1: + unsigned int txn_flags;
1: + int n_txn_start;
1: + u64 bhrb_filter;
1: + unsigned int bhrb_users;
1: + void *bhrb_context;
1: + struct perf_branch_stack bhrb_stack;
1: + struct perf_branch_entry bhrb_entries[32];
1: + u64 ic_init;
1: +};
1: +
1: +struct perf_event_header {
1: + __u32 type;
1: + __u16 misc;
1: + __u16 size;
1: +};
1: +
1: +enum perf_event_type {
1: + PERF_RECORD_MMAP = 1,
1: + PERF_RECORD_LOST = 2,
1: + PERF_RECORD_COMM = 3,
1: + PERF_RECORD_EXIT = 4,
1: + PERF_RECORD_THROTTLE = 5,
1: + PERF_RECORD_UNTHROTTLE = 6,
1: + PERF_RECORD_FORK = 7,
1: + PERF_RECORD_READ = 8,
1: + PERF_RECORD_SAMPLE = 9,
1: + PERF_RECORD_MMAP2 = 10,
1: + PERF_RECORD_AUX = 11,
1: + PERF_RECORD_ITRACE_START = 12,
1: + PERF_RECORD_LOST_SAMPLES = 13,
1: + PERF_RECORD_SWITCH = 14,
1: + PERF_RECORD_SWITCH_CPU_WIDE = 15,
1: + PERF_RECORD_NAMESPACES = 16,
1: + PERF_RECORD_KSYMBOL = 17,
1: + PERF_RECORD_BPF_EVENT = 18,
1: + PERF_RECORD_CGROUP = 19,
1: + PERF_RECORD_TEXT_POKE = 20,
1: + PERF_RECORD_MAX = 21,
1: +};
1: +
1: +struct trace_imc_data {
1: + u64 tb1;
1: + u64 ip;
1: + u64 val;
1: + u64 cpmc1;
1: + u64 cpmc2;
1: + u64 cpmc3;
1: + u64 cpmc4;
1: + u64 tb2;
1: +};
1: +
1: +struct imc_pmu_ref {
1: + struct mutex lock;
1: + unsigned int id;
1: + int refc;
1: +};
1: +
1: +struct dev_ext_attribute {
1: + struct device_attribute attr;
1: + void *var;
1: +};
1: +
1: +enum hv_perf_domains {
1: + HV_PERF_DOMAIN_PHYS_CHIP = 1,
1: + HV_PERF_DOMAIN_PHYS_CORE = 2,
1: + HV_PERF_DOMAIN_VCPU_HOME_CORE = 3,
1: + HV_PERF_DOMAIN_VCPU_HOME_CHIP = 4,
1: + HV_PERF_DOMAIN_VCPU_HOME_NODE = 5,
1: + HV_PERF_DOMAIN_VCPU_REMOTE_NODE = 6,
1: + HV_PERF_DOMAIN_MAX = 7,
1: +};
1: +
1: +struct hv_24x7_request {
1: + __u8 performance_domain;
1: + __u8 reserved[1];
1: + __be16 data_size;
1: + __be32 data_offset;
1: + __be16 starting_lpar_ix;
1: + __be16 max_num_lpars;
1: + __be16 starting_ix;
1: + __be16 max_ix;
1: + __u8 starting_thread_group_ix;
1: + __u8 max_num_thread_groups;
1: + __u8 reserved2[14];
1: +};
1: +
1: +struct hv_24x7_request_buffer {
1: + __u8 interface_version;
1: + __u8 num_requests;
1: + __u8 reserved[14];
1: + struct hv_24x7_request requests[0];
1: +};
1: +
1: +struct hv_24x7_result {
1: + __u8 result_ix;
1: + __u8 results_complete;
1: + __be16 num_elements_returned;
1: + __be16 result_element_data_size;
1: + __u8 reserved[2];
1: + char elements[0];
1: +};
1: +
1: +struct hv_24x7_data_result_buffer {
1: + __u8 interface_version;
1: + __u8 num_results;
1: + __u8 reserved[1];
1: + __u8 failing_request_ix;
1: + __be32 detailed_rc;
1: + __be64 cec_cfg_instance_id;
1: + __be64 catalog_version_num;
1: + __u8 reserved2[8];
1: + struct hv_24x7_result results[0];
1: +};
1: +
1: +struct hv_24x7_catalog_page_0 {
1: + __be32 magic;
1: + __be32 length;
1: + __be64 version;
1: + __u8 build_time_stamp[16];
1: + __u8 reserved2[32];
1: + __be16 schema_data_offs;
1: + __be16 schema_data_len;
1: + __be16 schema_entry_count;
1: + __u8 reserved3[2];
1: + __be16 event_data_offs;
1: + __be16 event_data_len;
1: + __be16 event_entry_count;
1: + __u8 reserved4[2];
1: + __be16 group_data_offs;
1: + __be16 group_data_len;
1: + __be16 group_entry_count;
1: + __u8 reserved5[2];
1: + __be16 formula_data_offs;
1: + __be16 formula_data_len;
1: + __be16 formula_entry_count;
1: + __u8 reserved6[2];
1: +};
1: +
1: +struct hv_24x7_event_data {
1: + __be16 length;
1: + __u8 reserved1[2];
1: + __u8 domain;
1: + __u8 reserved2[1];
1: + __be16 event_group_record_offs;
1: + __be16 event_group_record_len;
1: + __be16 event_counter_offs;
1: + __be32 flags;
1: + __be16 primary_group_ix;
1: + __be16 group_count;
1: + __be16 event_name_len;
1: + __u8 remainder[0];
1: +} __attribute__((packed));
1: +
1: +struct hv_perf_caps {
1: + u16 version;
1: + u16 collect_privileged: 1;
1: + u16 ga: 1;
1: + u16 expanded: 1;
1: + u16 lab: 1;
1: + u16 unused: 12;
1: +};
1: +
1: +struct hv_24x7_hw {
1: + struct perf_event *events[255];
1: +};
1: +
1: +struct event_uniq {
1: + struct rb_node node;
1: + const char *name;
1: + int nl;
1: + unsigned int ct;
1: + unsigned int domain;
1: +};
1: +
1: +struct hv_get_perf_counter_info_params {
1: + __be32 counter_request;
1: + __be32 starting_index;
1: + __be16 secondary_index;
1: + __be16 returned_values;
1: + __be32 detail_rc;
1: + __be16 cv_element_size;
1: + __u8 counter_info_version_in;
1: + __u8 counter_info_version_out;
1: + __u8 reserved[12];
1: + __u8 counter_value[0];
1: +};
1: +
1: +struct hv_gpci_request_buffer {
1: + struct hv_get_perf_counter_info_params params;
1: + uint8_t bytes[4064];
1: +};
1: +
1: +enum {
1: + HV_GPCI_CM_GA = 128,
1: + HV_GPCI_CM_EXPANDED = 64,
1: + HV_GPCI_CM_LAB = 32,
1: +};
1: +
1: +enum hv_gpci_requests {
1: + HV_GPCI_dispatch_timebase_by_processor = 16,
1: + HV_GPCI_entitled_capped_uncapped_donated_idle_timebase_by_partition = 32,
1: + HV_GPCI_run_instructions_run_cycles_by_partition = 48,
1: + HV_GPCI_system_performance_capabilities = 64,
1: + HV_GPCI_processor_bus_utilization_abc_links = 80,
1: + HV_GPCI_processor_bus_utilization_wxyz_links = 96,
1: + HV_GPCI_processor_bus_utilization_gx_links = 112,
1: + HV_GPCI_processor_bus_utilization_mc_links = 128,
1: + HV_GPCI_processor_core_utilization = 148,
1: + HV_GPCI_partition_hypervisor_queuing_times = 224,
1: + HV_GPCI_system_hypervisor_times = 240,
1: + HV_GPCI_system_tlbie_count_and_time = 244,
1: + HV_GPCI_partition_instruction_count_and_time = 256,
1: +};
1: +
1: +struct hv_gpci_system_performance_capabilities {
1: + __u8 perf_collect_privileged;
1: + __u8 capability_mask;
1: + __u8 reserved[14];
1: +};
1: +
1: +struct p {
1: + struct hv_get_perf_counter_info_params params;
1: + struct hv_gpci_system_performance_capabilities caps;
1: +};
1: +
1: +enum perf_hw_id {
1: + PERF_COUNT_HW_CPU_CYCLES = 0,
1: + PERF_COUNT_HW_INSTRUCTIONS = 1,
1: + PERF_COUNT_HW_CACHE_REFERENCES = 2,
1: + PERF_COUNT_HW_CACHE_MISSES = 3,
1: + PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 4,
1: + PERF_COUNT_HW_BRANCH_MISSES = 5,
1: + PERF_COUNT_HW_BUS_CYCLES = 6,
1: + PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 7,
1: + PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 8,
1: + PERF_COUNT_HW_REF_CPU_CYCLES = 9,
1: + PERF_COUNT_HW_MAX = 10,
1: +};
1: +
1: +enum {
1: + PM_IC_DEMAND_L2_BR_ALL = 18584,
1: + PM_GCT_UTIL_7_TO_10_SLOTS = 8352,
1: + PM_PMC2_SAVED = 65570,
1: + PM_CMPLU_STALL_DFU = 131132,
1: + PM_VSU0_16FLOP = 41124,
1: + PM_MRK_LSU_DERAT_MISS = 249946,
1: + PM_MRK_ST_CMPL = 65588,
1: + PM_NEST_PAIR3_ADD = 264321,
1: + PM_L2_ST_DISP = 287104,
1: + PM_L2_CASTOUT_MOD = 90496,
1: + PM_ISEG = 8356,
1: + PM_MRK_INST_TIMEO = 262196,
1: + PM_L2_RCST_DISP_FAIL_ADDR = 221826,
1: + PM_LSU1_DC_PREF_STREAM_CONFIRM = 53430,
1: + PM_IERAT_WR_64K = 16574,
1: + PM_MRK_DTLB_MISS_16M = 315486,
1: + PM_IERAT_MISS = 65782,
1: + PM_MRK_PTEG_FROM_LMEM = 315474,
1: + PM_FLOP = 65780,
1: + PM_THRD_PRIO_4_5_CYC = 16564,
1: + PM_BR_PRED_TA = 16554,
1: + PM_CMPLU_STALL_FXU = 131092,
1: + PM_EXT_INT = 131320,
1: + PM_VSU_FSQRT_FDIV = 43144,
1: + PM_MRK_LD_MISS_EXPOSED_CYC = 65598,
1: + PM_LSU1_LDF = 49286,
1: + PM_IC_WRITE_ALL = 18572,
1: + PM_LSU0_SRQ_STFWD = 49312,
1: + PM_PTEG_FROM_RL2L3_MOD = 114770,
1: + PM_MRK_DATA_FROM_L31_SHR = 118862,
1: + PM_DATA_FROM_L21_MOD = 245830,
1: + PM_VSU1_SCAL_DOUBLE_ISSUED = 45194,
1: + PM_VSU0_8FLOP = 41120,
1: + PM_POWER_EVENT1 = 65646,
1: + PM_DISP_CLB_HELD_BAL = 8338,
1: + PM_VSU1_2FLOP = 41114,
1: + PM_LWSYNC_HELD = 8346,
1: + PM_PTEG_FROM_DL2L3_SHR = 245844,
1: + PM_INST_FROM_L21_MOD = 213062,
1: + PM_IERAT_XLATE_WR_16MPLUS = 16572,
1: + PM_IC_REQ_ALL = 18568,
1: + PM_DSLB_MISS = 53392,
1: + PM_L3_MISS = 127106,
1: + PM_LSU0_L1_PREF = 53432,
1: + PM_VSU_SCALAR_SINGLE_ISSUED = 47236,
1: + PM_LSU1_DC_PREF_STREAM_CONFIRM_STRIDE = 53438,
1: + PM_L2_INST = 221312,
1: + PM_VSU0_FRSP = 41140,
1: + PM_FLUSH_DISP = 8322,
1: + PM_PTEG_FROM_L2MISS = 311384,
1: + PM_VSU1_DQ_ISSUED = 45210,
1: + PM_CMPLU_STALL_LSU = 131090,
1: + PM_MRK_DATA_FROM_DMEM = 118858,
1: + PM_LSU_FLUSH_ULD = 51376,
1: + PM_PTEG_FROM_LMEM = 311378,
1: + PM_MRK_DERAT_MISS_16M = 249948,
1: + PM_THRD_ALL_RUN_CYC = 131084,
1: + PM_MEM0_PREFETCH_DISP = 131203,
1: + PM_MRK_STALL_CMPLU_CYC_COUNT = 196671,
1: + PM_DATA_FROM_DL2L3_MOD = 245836,
1: + PM_VSU_FRSP = 43188,
1: + PM_MRK_DATA_FROM_L21_MOD = 249926,
1: + PM_PMC1_OVERFLOW = 131088,
1: + PM_VSU0_SINGLE = 41128,
1: + PM_MRK_PTEG_FROM_L3MISS = 184408,
1: + PM_MRK_PTEG_FROM_L31_SHR = 184406,
1: + PM_VSU0_VECTOR_SP_ISSUED = 45200,
1: + PM_VSU1_FEST = 41146,
1: + PM_MRK_INST_DISP = 131120,
1: + PM_VSU0_COMPLEX_ISSUED = 45206,
1: + PM_LSU1_FLUSH_UST = 49334,
1: + PM_INST_CMPL = 2,
1: + PM_FXU_IDLE = 65550,
1: + PM_LSU0_FLUSH_ULD = 49328,
1: + PM_MRK_DATA_FROM_DL2L3_MOD = 249932,
1: + PM_LSU_LMQ_SRQ_EMPTY_ALL_CYC = 196636,
1: + PM_LSU1_REJECT_LMQ_FULL = 49318,
1: + PM_INST_PTEG_FROM_L21_MOD = 254038,
1: + PM_INST_FROM_RL2L3_MOD = 81986,
1: + PM_SHL_CREATED = 20610,
1: + PM_L2_ST_HIT = 287106,
1: + PM_DATA_FROM_DMEM = 114762,
1: + PM_L3_LD_MISS = 192642,
1: + PM_FXU1_BUSY_FXU0_IDLE = 262158,
1: + PM_DISP_CLB_HELD_RES = 8340,
1: + PM_L2_SN_SX_I_DONE = 222082,
1: + PM_GRP_CMPL = 196612,
1: + PM_STCX_CMPL = 49304,
1: + PM_VSU0_2FLOP = 41112,
1: + PM_L3_PREF_MISS = 258178,
1: + PM_LSU_SRQ_SYNC_CYC = 53398,
1: + PM_LSU_REJECT_ERAT_MISS = 131172,
1: + PM_L1_ICACHE_MISS = 131324,
1: + PM_LSU1_FLUSH_SRQ = 49342,
1: + PM_LD_REF_L1_LSU0 = 49280,
1: + PM_VSU0_FEST = 41144,
1: + PM_VSU_VECTOR_SINGLE_ISSUED = 47248,
1: + PM_FREQ_UP = 262156,
1: + PM_DATA_FROM_LMEM = 245834,
1: + PM_LSU1_LDX = 49290,
1: + PM_PMC3_OVERFLOW = 262160,
1: + PM_MRK_BR_MPRED = 196662,
1: + PM_SHL_MATCH = 20614,
1: + PM_MRK_BR_TAKEN = 65590,
1: + PM_CMPLU_STALL_BRU = 262222,
1: + PM_ISLB_MISS = 53394,
1: + PM_CYC = 30,
1: + PM_DISP_HELD_THERMAL = 196614,
1: + PM_INST_PTEG_FROM_RL2L3_SHR = 188500,
1: + PM_LSU1_SRQ_STFWD = 49314,
1: + PM_GCT_NOSLOT_BR_MPRED = 262170,
1: + PM_1PLUS_PPC_CMPL = 65778,
1: + PM_PTEG_FROM_DMEM = 180306,
1: + PM_VSU_2FLOP = 43160,
1: + PM_GCT_FULL_CYC = 16518,
1: + PM_MRK_DATA_FROM_L3_CYC = 262176,
1: + PM_LSU_SRQ_S0_ALLOC = 53405,
1: + PM_MRK_DERAT_MISS_4K = 118876,
1: + PM_BR_MPRED_TA = 16558,
1: + PM_INST_PTEG_FROM_L2MISS = 319576,
1: + PM_DPU_HELD_POWER = 131078,
1: + PM_RUN_INST_CMPL = 262394,
1: + PM_MRK_VSU_FIN = 196658,
1: + PM_LSU_SRQ_S0_VALID = 53404,
1: + PM_GCT_EMPTY_CYC = 131080,
1: + PM_IOPS_DISP = 196628,
1: + PM_RUN_SPURR = 65544,
1: + PM_PTEG_FROM_L21_MOD = 245846,
1: + PM_VSU0_1FLOP = 41088,
1: + PM_SNOOP_TLBIE = 53426,
1: + PM_DATA_FROM_L3MISS = 180296,
1: + PM_VSU_SINGLE = 43176,
1: + PM_DTLB_MISS_16G = 114782,
1: + PM_CMPLU_STALL_VECTOR = 131100,
1: + PM_FLUSH = 262392,
1: + PM_L2_LD_HIT = 221570,
1: + PM_NEST_PAIR2_AND = 198787,
1: + PM_VSU1_1FLOP = 41090,
1: + PM_IC_PREF_REQ = 16522,
1: + PM_L3_LD_HIT = 192640,
1: + PM_GCT_NOSLOT_IC_MISS = 131098,
1: + PM_DISP_HELD = 65542,
1: + PM_L2_LD = 90240,
1: + PM_LSU_FLUSH_SRQ = 51388,
1: + PM_BC_PLUS_8_CONV = 16568,
1: + PM_MRK_DATA_FROM_L31_MOD_CYC = 262182,
1: + PM_CMPLU_STALL_VECTOR_LONG = 262218,
1: + PM_L2_RCST_BUSY_RC_FULL = 156290,
1: + PM_TB_BIT_TRANS = 196856,
1: + PM_THERMAL_MAX = 262150,
1: + PM_LSU1_FLUSH_ULD = 49330,
1: + PM_LSU1_REJECT_LHS = 49326,
1: + PM_LSU_LRQ_S0_ALLOC = 53407,
1: + PM_L3_CO_L31 = 323712,
1: + PM_POWER_EVENT4 = 262254,
1: + PM_DATA_FROM_L31_SHR = 114766,
1: + PM_BR_UNCOND = 16542,
1: + PM_LSU1_DC_PREF_STREAM_ALLOC = 53418,
1: + PM_PMC4_REWIND = 65568,
1: + PM_L2_RCLD_DISP = 90752,
1: + PM_THRD_PRIO_2_3_CYC = 16562,
1: + PM_MRK_PTEG_FROM_L2MISS = 315480,
1: + PM_IC_DEMAND_L2_BHT_REDIRECT = 16536,
1: + PM_LSU_DERAT_MISS = 131318,
1: + PM_IC_PREF_CANCEL_L2 = 16532,
1: + PM_MRK_FIN_STALL_CYC_COUNT = 65597,
1: + PM_BR_PRED_CCACHE = 16544,
1: + PM_GCT_UTIL_1_TO_2_SLOTS = 8348,
1: + PM_MRK_ST_CMPL_INT = 196660,
1: + PM_LSU_TWO_TABLEWALK_CYC = 53414,
1: + PM_MRK_DATA_FROM_L3MISS = 184392,
1: + PM_GCT_NOSLOT_CYC = 65784,
1: + PM_LSU_SET_MPRED = 49320,
1: + PM_FLUSH_DISP_TLBIE = 8330,
1: + PM_VSU1_FCONV = 41138,
1: + PM_DERAT_MISS_16G = 311388,
1: + PM_INST_FROM_LMEM = 213066,
1: + PM_IC_DEMAND_L2_BR_REDIRECT = 16538,
1: + PM_CMPLU_STALL_SCALAR_LONG = 131096,
1: + PM_INST_PTEG_FROM_L2 = 122960,
1: + PM_PTEG_FROM_L2 = 114768,
1: + PM_MRK_DATA_FROM_L21_SHR_CYC = 131108,
1: + PM_MRK_DTLB_MISS_4K = 184410,
1: + PM_VSU0_FPSCR = 45212,
1: + PM_VSU1_VECT_DOUBLE_ISSUED = 45186,
1: + PM_MRK_PTEG_FROM_RL2L3_MOD = 118866,
1: + PM_MEM0_RQ_DISP = 65667,
1: + PM_L2_LD_MISS = 155776,
1: + PM_VMX_RESULT_SAT_1 = 45216,
1: + PM_L1_PREF = 55480,
1: + PM_MRK_DATA_FROM_LMEM_CYC = 131116,
1: + PM_GRP_IC_MISS_NONSPEC = 65548,
1: + PM_PB_NODE_PUMP = 65665,
1: + PM_SHL_MERGED = 20612,
1: + PM_NEST_PAIR1_ADD = 133249,
1: + PM_DATA_FROM_L3 = 114760,
1: + PM_LSU_FLUSH = 8334,
1: + PM_LSU_SRQ_SYNC_COUNT = 53399,
1: + PM_PMC2_OVERFLOW = 196624,
1: + PM_LSU_LDF = 51332,
1: + PM_POWER_EVENT3 = 196718,
1: + PM_DISP_WT = 196616,
1: + PM_CMPLU_STALL_REJECT = 262166,
1: + PM_IC_BANK_CONFLICT = 16514,
1: + PM_BR_MPRED_CR_TA = 18606,
1: + PM_L2_INST_MISS = 221314,
1: + PM_CMPLU_STALL_ERAT_MISS = 262168,
1: + PM_NEST_PAIR2_ADD = 198785,
1: + PM_MRK_LSU_FLUSH = 53388,
1: + PM_L2_LDST = 92288,
1: + PM_INST_FROM_L31_SHR = 81998,
1: + PM_VSU0_FIN = 41148,
1: + PM_LARX_LSU = 51348,
1: + PM_INST_FROM_RMEM = 213058,
1: + PM_DISP_CLB_HELD_TLBIE = 8342,
1: + PM_MRK_DATA_FROM_DMEM_CYC = 131118,
1: + PM_BR_PRED_CR = 16552,
1: + PM_LSU_REJECT = 65636,
1: + PM_GCT_UTIL_3_TO_6_SLOTS = 8350,
1: + PM_CMPLU_STALL_END_GCT_NOSLOT = 65576,
1: + PM_LSU0_REJECT_LMQ_FULL = 49316,
1: + PM_VSU_FEST = 43192,
1: + PM_NEST_PAIR0_AND = 67715,
1: + PM_PTEG_FROM_L3 = 180304,
1: + PM_POWER_EVENT2 = 131182,
1: + PM_IC_PREF_CANCEL_PAGE = 16528,
1: + PM_VSU0_FSQRT_FDIV = 41096,
1: + PM_MRK_GRP_CMPL = 262192,
1: + PM_VSU0_SCAL_DOUBLE_ISSUED = 45192,
1: + PM_GRP_DISP = 196618,
1: + PM_LSU0_LDX = 49288,
1: + PM_DATA_FROM_L2 = 114752,
1: + PM_MRK_DATA_FROM_RL2L3_MOD = 118850,
1: + PM_LD_REF_L1 = 51328,
1: + PM_VSU0_VECT_DOUBLE_ISSUED = 45184,
1: + PM_VSU1_2FLOP_DOUBLE = 41102,
1: + PM_THRD_PRIO_6_7_CYC = 16566,
1: + PM_BC_PLUS_8_RSLV_TAKEN = 16570,
1: + PM_BR_MPRED_CR = 16556,
1: + PM_L3_CO_MEM = 323714,
1: + PM_LD_MISS_L1 = 262384,
1: + PM_DATA_FROM_RL2L3_MOD = 114754,
1: + PM_LSU_SRQ_FULL_CYC = 65562,
1: + PM_TABLEWALK_CYC = 65574,
1: + PM_MRK_PTEG_FROM_RMEM = 249938,
1: + PM_LSU_SRQ_STFWD = 51360,
1: + PM_INST_PTEG_FROM_RMEM = 254034,
1: + PM_FXU0_FIN = 65540,
1: + PM_LSU1_L1_SW_PREF = 49310,
1: + PM_PTEG_FROM_L31_MOD = 114772,
1: + PM_PMC5_OVERFLOW = 65572,
1: + PM_LD_REF_L1_LSU1 = 49282,
1: + PM_INST_PTEG_FROM_L21_SHR = 319574,
1: + PM_CMPLU_STALL_THRD = 65564,
1: + PM_DATA_FROM_RMEM = 245826,
1: + PM_VSU0_SCAL_SINGLE_ISSUED = 45188,
1: + PM_BR_MPRED_LSTACK = 16550,
1: + PM_MRK_DATA_FROM_RL2L3_MOD_CYC = 262184,
1: + PM_LSU0_FLUSH_UST = 49332,
1: + PM_LSU_NCST = 49296,
1: + PM_BR_TAKEN = 131076,
1: + PM_INST_PTEG_FROM_LMEM = 319570,
1: + PM_GCT_NOSLOT_BR_MPRED_IC_MISS = 262172,
1: + PM_DTLB_MISS_4K = 180314,
1: + PM_PMC4_SAVED = 196642,
1: + PM_VSU1_PERMUTE_ISSUED = 45202,
1: + PM_SLB_MISS = 55440,
1: + PM_LSU1_FLUSH_LRQ = 49338,
1: + PM_DTLB_MISS = 196860,
1: + PM_VSU1_FRSP = 41142,
1: + PM_VSU_VECTOR_DOUBLE_ISSUED = 47232,
1: + PM_L2_CASTOUT_SHR = 90498,
1: + PM_DATA_FROM_DL2L3_SHR = 245828,
1: + PM_VSU1_STF = 45198,
1: + PM_ST_FIN = 131312,
1: + PM_PTEG_FROM_L21_SHR = 311382,
1: + PM_L2_LOC_GUESS_WRONG = 156800,
1: + PM_MRK_STCX_FAIL = 53390,
1: + PM_LSU0_REJECT_LHS = 49324,
1: + PM_IC_PREF_CANCEL_HIT = 16530,
1: + PM_L3_PREF_BUSY = 323712,
1: + PM_MRK_BRU_FIN = 131130,
1: + PM_LSU1_NCLD = 49294,
1: + PM_INST_PTEG_FROM_L31_MOD = 122964,
1: + PM_LSU_NCLD = 51340,
1: + PM_LSU_LDX = 51336,
1: + PM_L2_LOC_GUESS_CORRECT = 91264,
1: + PM_THRESH_TIMEO = 65592,
1: + PM_L3_PREF_ST = 53422,
1: + PM_DISP_CLB_HELD_SYNC = 8344,
1: + PM_VSU_SIMPLE_ISSUED = 47252,
1: + PM_VSU1_SINGLE = 41130,
1: + PM_DATA_TABLEWALK_CYC = 196634,
1: + PM_L2_RC_ST_DONE = 222080,
1: + PM_MRK_PTEG_FROM_L21_MOD = 249942,
1: + PM_LARX_LSU1 = 49302,
1: + PM_MRK_DATA_FROM_RMEM = 249922,
1: + PM_DISP_CLB_HELD = 8336,
1: + PM_DERAT_MISS_4K = 114780,
1: + PM_L2_RCLD_DISP_FAIL_ADDR = 90754,
1: + PM_SEG_EXCEPTION = 10404,
1: + PM_FLUSH_DISP_SB = 8332,
1: + PM_L2_DC_INV = 156034,
1: + PM_PTEG_FROM_DL2L3_MOD = 311380,
1: + PM_DSEG = 8358,
1: + PM_BR_PRED_LSTACK = 16546,
1: + PM_VSU0_STF = 45196,
1: + PM_LSU_FX_FIN = 65638,
1: + PM_DERAT_MISS_16M = 245852,
1: + PM_MRK_PTEG_FROM_DL2L3_MOD = 315476,
1: + PM_GCT_UTIL_11_PLUS_SLOTS = 8354,
1: + PM_INST_FROM_L3 = 81992,
1: + PM_MRK_IFU_FIN = 196666,
1: + PM_ITLB_MISS = 262396,
1: + PM_VSU_STF = 47244,
1: + PM_LSU_FLUSH_UST = 51380,
1: + PM_L2_LDST_MISS = 157824,
1: + PM_FXU1_FIN = 262148,
1: + PM_SHL_DEALLOCATED = 20608,
1: + PM_L2_SN_M_WR_DONE = 287618,
1: + PM_LSU_REJECT_SET_MPRED = 51368,
1: + PM_L3_PREF_LD = 53420,
1: + PM_L2_SN_M_RD_DONE = 287616,
1: + PM_MRK_DERAT_MISS_16G = 315484,
1: + PM_VSU_FCONV = 43184,
1: + PM_ANY_THRD_RUN_CYC = 65786,
1: + PM_LSU_LMQ_FULL_CYC = 53412,
1: + PM_MRK_LSU_REJECT_LHS = 53378,
1: + PM_MRK_LD_MISS_L1_CYC = 262206,
1: + PM_MRK_DATA_FROM_L2_CYC = 131104,
1: + PM_INST_IMC_MATCH_DISP = 196630,
1: + PM_MRK_DATA_FROM_RMEM_CYC = 262188,
1: + PM_VSU0_SIMPLE_ISSUED = 45204,
1: + PM_CMPLU_STALL_DIV = 262164,
1: + PM_MRK_PTEG_FROM_RL2L3_SHR = 184404,
1: + PM_VSU_FMA_DOUBLE = 43152,
1: + PM_VSU_4FLOP = 43164,
1: + PM_VSU1_FIN = 41150,
1: + PM_NEST_PAIR1_AND = 133251,
1: + PM_INST_PTEG_FROM_RL2L3_MOD = 122962,
1: + PM_RUN_CYC = 131316,
1: + PM_PTEG_FROM_RMEM = 245842,
1: + PM_LSU_LRQ_S0_VALID = 53406,
1: + PM_LSU0_LDF = 49284,
1: + PM_FLUSH_COMPLETION = 196626,
1: + PM_ST_MISS_L1 = 196848,
1: + PM_L2_NODE_PUMP = 222336,
1: + PM_INST_FROM_DL2L3_SHR = 213060,
1: + PM_MRK_STALL_CMPLU_CYC = 196670,
1: + PM_VSU1_DENORM = 41134,
1: + PM_MRK_DATA_FROM_L31_SHR_CYC = 131110,
1: + PM_NEST_PAIR0_ADD = 67713,
1: + PM_INST_FROM_L3MISS = 147528,
1: + PM_EE_OFF_EXT_INT = 8320,
1: + PM_INST_PTEG_FROM_DMEM = 188498,
1: + PM_INST_FROM_DL2L3_MOD = 213068,
1: + PM_PMC6_OVERFLOW = 196644,
1: + PM_VSU_2FLOP_DOUBLE = 43148,
1: + PM_TLB_MISS = 131174,
1: + PM_FXU_BUSY = 131086,
1: + PM_L2_RCLD_DISP_FAIL_OTHER = 156288,
1: + PM_LSU_REJECT_LMQ_FULL = 51364,
1: + PM_IC_RELOAD_SHR = 16534,
1: + PM_GRP_MRK = 65585,
1: + PM_MRK_ST_NEST = 131124,
1: + PM_VSU1_FSQRT_FDIV = 41098,
1: + PM_LSU0_FLUSH_LRQ = 49336,
1: + PM_LARX_LSU0 = 49300,
1: + PM_IBUF_FULL_CYC = 16516,
1: + PM_MRK_DATA_FROM_DL2L3_SHR_CYC = 131114,
1: + PM_LSU_DC_PREF_STREAM_ALLOC = 55464,
1: + PM_GRP_MRK_CYC = 65584,
1: + PM_MRK_DATA_FROM_RL2L3_SHR_CYC = 131112,
1: + PM_L2_GLOB_GUESS_CORRECT = 91266,
1: + PM_LSU_REJECT_LHS = 51372,
1: + PM_MRK_DATA_FROM_LMEM = 249930,
1: + PM_INST_PTEG_FROM_L3 = 188496,
1: + PM_FREQ_DOWN = 196620,
1: + PM_PB_RETRY_NODE_PUMP = 196737,
1: + PM_INST_FROM_RL2L3_SHR = 81996,
1: + PM_MRK_INST_ISSUED = 65586,
1: + PM_PTEG_FROM_L3MISS = 180312,
1: + PM_RUN_PURR = 262388,
1: + PM_MRK_GRP_IC_MISS = 262200,
1: + PM_MRK_DATA_FROM_L3 = 118856,
1: + PM_CMPLU_STALL_DCACHE_MISS = 131094,
1: + PM_PTEG_FROM_RL2L3_SHR = 180308,
1: + PM_LSU_FLUSH_LRQ = 51384,
1: + PM_MRK_DERAT_MISS_64K = 184412,
1: + PM_INST_PTEG_FROM_DL2L3_MOD = 319572,
1: + PM_L2_ST_MISS = 155778,
1: + PM_MRK_PTEG_FROM_L21_SHR = 315478,
1: + PM_LWSYNC = 53396,
1: + PM_LSU0_DC_PREF_STREAM_CONFIRM_STRIDE = 53436,
1: + PM_MRK_LSU_FLUSH_LRQ = 53384,
1: + PM_INST_IMC_MATCH_CMPL = 65776,
1: + PM_NEST_PAIR3_AND = 264323,
1: + PM_PB_RETRY_SYS_PUMP = 262273,
1: + PM_MRK_INST_FIN = 196656,
1: + PM_MRK_PTEG_FROM_DL2L3_SHR = 249940,
1: + PM_INST_FROM_L31_MOD = 81988,
1: + PM_MRK_DTLB_MISS_64K = 249950,
1: + PM_LSU_FIN = 196710,
1: + PM_MRK_LSU_REJECT = 262244,
1: + PM_L2_CO_FAIL_BUSY = 91010,
1: + PM_MEM0_WQ_DISP = 262275,
1: + PM_DATA_FROM_L31_MOD = 114756,
1: + PM_THERMAL_WARN = 65558,
1: + PM_VSU0_4FLOP = 41116,
1: + PM_BR_MPRED_CCACHE = 16548,
1: + PM_CMPLU_STALL_IFU = 262220,
1: + PM_L1_DEMAND_WRITE = 16524,
1: + PM_FLUSH_BR_MPRED = 8324,
1: + PM_MRK_DTLB_MISS_16G = 118878,
1: + PM_MRK_PTEG_FROM_DMEM = 184402,
1: + PM_L2_RCST_DISP = 221824,
1: + PM_CMPLU_STALL = 262154,
1: + PM_LSU_PARTIAL_CDF = 49322,
1: + PM_DISP_CLB_HELD_SB = 8360,
1: + PM_VSU0_FMA_DOUBLE = 41104,
1: + PM_FXU0_BUSY_FXU1_IDLE = 196622,
1: + PM_IC_DEMAND_CYC = 65560,
1: + PM_MRK_DATA_FROM_L21_SHR = 249934,
1: + PM_MRK_LSU_FLUSH_UST = 53382,
1: + PM_INST_PTEG_FROM_L3MISS = 188504,
1: + PM_VSU_DENORM = 43180,
1: + PM_MRK_LSU_PARTIAL_CDF = 53376,
1: + PM_INST_FROM_L21_SHR = 213070,
1: + PM_IC_PREF_WRITE = 16526,
1: + PM_BR_PRED = 16540,
1: + PM_INST_FROM_DMEM = 81994,
1: + PM_IC_PREF_CANCEL_ALL = 18576,
1: + PM_LSU_DC_PREF_STREAM_CONFIRM = 55476,
1: + PM_MRK_LSU_FLUSH_SRQ = 53386,
1: + PM_MRK_FIN_STALL_CYC = 65596,
1: + PM_L2_RCST_DISP_FAIL_OTHER = 287360,
1: + PM_VSU1_DD_ISSUED = 45208,
1: + PM_PTEG_FROM_L31_SHR = 180310,
1: + PM_DATA_FROM_L21_SHR = 245838,
1: + PM_LSU0_NCLD = 49292,
1: + PM_VSU1_4FLOP = 41118,
1: + PM_VSU1_8FLOP = 41122,
1: + PM_VSU_8FLOP = 43168,
1: + PM_LSU_LMQ_SRQ_EMPTY_CYC = 131134,
1: + PM_DTLB_MISS_64K = 245854,
1: + PM_THRD_CONC_RUN_INST = 196852,
1: + PM_MRK_PTEG_FROM_L2 = 118864,
1: + PM_PB_SYS_PUMP = 131201,
1: + PM_VSU_FIN = 43196,
1: + PM_MRK_DATA_FROM_L31_MOD = 118852,
1: + PM_THRD_PRIO_0_1_CYC = 16560,
1: + PM_DERAT_MISS_64K = 180316,
1: + PM_PMC2_REWIND = 196640,
1: + PM_INST_FROM_L2 = 81984,
1: + PM_GRP_BR_MPRED_NONSPEC = 65546,
1: + PM_INST_DISP = 131314,
1: + PM_MEM0_RD_CANCEL_TOTAL = 196739,
1: + PM_LSU0_DC_PREF_STREAM_CONFIRM = 53428,
1: + PM_L1_DCACHE_RELOAD_VALID = 196854,
1: + PM_VSU_SCALAR_DOUBLE_ISSUED = 47240,
1: + PM_L3_PREF_HIT = 258176,
1: + PM_MRK_PTEG_FROM_L31_MOD = 118868,
1: + PM_CMPLU_STALL_STORE = 131146,
1: + PM_MRK_FXU_FIN = 131128,
1: + PM_PMC4_OVERFLOW = 65552,
1: + PM_MRK_PTEG_FROM_L3 = 184400,
1: + PM_LSU0_LMQ_LHR_MERGE = 53400,
1: + PM_BTAC_HIT = 20618,
1: + PM_L3_RD_BUSY = 323714,
1: + PM_LSU0_L1_SW_PREF = 49308,
1: + PM_INST_FROM_L2MISS = 278600,
1: + PM_LSU0_DC_PREF_STREAM_ALLOC = 53416,
1: + PM_L2_ST = 90242,
1: + PM_VSU0_DENORM = 41132,
1: + PM_MRK_DATA_FROM_DL2L3_SHR = 249924,
1: + PM_BR_PRED_CR_TA = 18602,
1: + PM_VSU0_FCONV = 41136,
1: + PM_MRK_LSU_FLUSH_ULD = 53380,
1: + PM_BTAC_MISS = 20616,
1: + PM_MRK_LD_MISS_EXPOSED_CYC_COUNT = 65599,
1: + PM_MRK_DATA_FROM_L2 = 118848,
1: + PM_LSU_DCACHE_RELOAD_VALID = 53410,
1: + PM_VSU_FMA = 43140,
1: + PM_LSU0_FLUSH_SRQ = 49340,
1: + PM_LSU1_L1_PREF = 53434,
1: + PM_IOPS_CMPL = 65556,
1: + PM_L2_SYS_PUMP = 222338,
1: + PM_L2_RCLD_BUSY_RC_FULL = 287362,
1: + PM_LSU_LMQ_S0_ALLOC = 53409,
1: + PM_FLUSH_DISP_SYNC = 8328,
1: + PM_MRK_DATA_FROM_DL2L3_MOD_CYC = 262186,
1: + PM_L2_IC_INV = 156032,
1: + PM_MRK_DATA_FROM_L21_MOD_CYC = 262180,
1: + PM_L3_PREF_LDST = 55468,
1: + PM_LSU_SRQ_EMPTY_CYC = 262152,
1: + PM_LSU_LMQ_S0_VALID = 53408,
1: + PM_FLUSH_PARTIAL = 8326,
1: + PM_VSU1_FMA_DOUBLE = 41106,
1: + PM_1PLUS_PPC_DISP = 262386,
1: + PM_DATA_FROM_L2MISS = 131326,
1: + PM_SUSPENDED = 0,
1: + PM_VSU0_FMA = 41092,
1: + PM_CMPLU_STALL_SCALAR = 262162,
1: + PM_STCX_FAIL = 49306,
1: + PM_VSU0_FSQRT_FDIV_DOUBLE = 41108,
1: + PM_DC_PREF_DST = 53424,
1: + PM_VSU1_SCAL_SINGLE_ISSUED = 45190,
1: + PM_L3_HIT = 127104,
1: + PM_L2_GLOB_GUESS_WRONG = 156802,
1: + PM_MRK_DFU_FIN = 131122,
1: + PM_INST_FROM_L1 = 16512,
1: + PM_BRU_FIN = 65640,
1: + PM_IC_DEMAND_REQ = 16520,
1: + PM_VSU1_FSQRT_FDIV_DOUBLE = 41110,
1: + PM_VSU1_FMA = 41094,
1: + PM_MRK_LD_MISS_L1 = 131126,
1: + PM_VSU0_2FLOP_DOUBLE = 41100,
1: + PM_LSU_DC_PREF_STRIDED_STREAM_CONFIRM = 55484,
1: + PM_INST_PTEG_FROM_L31_SHR = 188502,
1: + PM_MRK_LSU_REJECT_ERAT_MISS = 196708,
1: + PM_MRK_DATA_FROM_L2MISS = 315464,
1: + PM_DATA_FROM_RL2L3_SHR = 114764,
1: + PM_INST_FROM_PREF = 81990,
1: + PM_VSU1_SQ = 45214,
1: + PM_L2_LD_DISP = 221568,
1: + PM_L2_DISP_ALL = 286848,
1: + PM_THRD_GRP_CMPL_BOTH_CYC = 65554,
1: + PM_VSU_FSQRT_FDIV_DOUBLE = 43156,
1: + PM_BR_MPRED = 262390,
1: + PM_INST_PTEG_FROM_DL2L3_SHR = 254036,
1: + PM_VSU_1FLOP = 43136,
1: + PM_HV_CYC = 131082,
1: + PM_MRK_LSU_FIN = 262194,
1: + PM_MRK_DATA_FROM_RL2L3_SHR = 118860,
1: + PM_DTLB_MISS_16M = 311390,
1: + PM_LSU1_LMQ_LHR_MERGE = 53402,
1: + PM_IFU_FIN = 262246,
1: + PM_1THRD_CON_RUN_INSTR = 196706,
1: + PM_CMPLU_STALL_COUNT = 262155,
1: + PM_MEM0_PB_RD_CL = 196739,
1: + PM_THRD_1_RUN_CYC = 65632,
1: + PM_THRD_2_CONC_RUN_INSTR = 262242,
1: + PM_THRD_2_RUN_CYC = 131168,
1: + PM_THRD_3_CONC_RUN_INST = 65634,
1: + PM_THRD_3_RUN_CYC = 196704,
1: + PM_THRD_4_CONC_RUN_INST = 131170,
1: + PM_THRD_4_RUN_CYC = 262240,
1: +};
1: +
1: +enum perf_branch_sample_type {
1: + PERF_SAMPLE_BRANCH_USER = 1,
1: + PERF_SAMPLE_BRANCH_KERNEL = 2,
1: + PERF_SAMPLE_BRANCH_HV = 4,
1: + PERF_SAMPLE_BRANCH_ANY = 8,
1: + PERF_SAMPLE_BRANCH_ANY_CALL = 16,
1: + PERF_SAMPLE_BRANCH_ANY_RETURN = 32,
1: + PERF_SAMPLE_BRANCH_IND_CALL = 64,
1: + PERF_SAMPLE_BRANCH_ABORT_TX = 128,
1: + PERF_SAMPLE_BRANCH_IN_TX = 256,
1: + PERF_SAMPLE_BRANCH_NO_TX = 512,
1: + PERF_SAMPLE_BRANCH_COND = 1024,
1: + PERF_SAMPLE_BRANCH_CALL_STACK = 2048,
1: + PERF_SAMPLE_BRANCH_IND_JUMP = 4096,
1: + PERF_SAMPLE_BRANCH_CALL = 8192,
1: + PERF_SAMPLE_BRANCH_NO_FLAGS = 16384,
1: + PERF_SAMPLE_BRANCH_NO_CYCLES = 32768,
1: + PERF_SAMPLE_BRANCH_TYPE_SAVE = 65536,
1: + PERF_SAMPLE_BRANCH_HW_INDEX = 131072,
1: + PERF_SAMPLE_BRANCH_MAX = 262144,
1: +};
1: +
1: +enum {
1: + PM_CYC___2 = 30,
1: + PM_GCT_NOSLOT_CYC___2 = 65784,
1: + PM_CMPLU_STALL___2 = 262154,
1: + PM_INST_CMPL___2 = 2,
1: + PM_BRU_FIN___2 = 65640,
1: + PM_BR_MPRED_CMPL = 262390,
1: + PM_LD_REF_L1___2 = 65774,
1: + PM_LD_MISS_L1___2 = 254036,
1: + PM_ST_MISS_L1___2 = 196848,
1: + PM_L1_PREF___2 = 55480,
1: + PM_INST_FROM_L1___2 = 16512,
1: + PM_L1_ICACHE_MISS___2 = 131325,
1: + PM_L1_DEMAND_WRITE___2 = 16524,
1: + PM_IC_PREF_WRITE___2 = 16526,
1: + PM_DATA_FROM_L3___2 = 311362,
1: + PM_DATA_FROM_L3MISS___2 = 196862,
1: + PM_L2_ST___2 = 94336,
1: + PM_L2_ST_MISS___2 = 94338,
1: + PM_L3_PREF_ALL = 319570,
1: + PM_DTLB_MISS___2 = 196860,
1: + PM_ITLB_MISS___2 = 262396,
1: + PM_RUN_INST_CMPL___2 = 327930,
1: + PM_RUN_INST_CMPL_ALT = 262394,
1: + PM_RUN_CYC___2 = 393460,
1: + PM_RUN_CYC_ALT = 131316,
1: + PM_MRK_ST_CMPL___2 = 65844,
1: + PM_MRK_ST_CMPL_ALT = 197090,
1: + PM_BR_MRK_2PATH = 65848,
1: + PM_BR_MRK_2PATH_ALT = 262456,
1: + PM_L3_CO_MEPF = 98434,
1: + PM_L3_CO_MEPF_ALT = 254046,
1: + PM_MRK_DATA_FROM_L2MISS___2 = 119118,
1: + PM_MRK_DATA_FROM_L2MISS_ALT = 262632,
1: + PM_CMPLU_STALL_ALT = 122964,
1: + PM_BR_2PATH = 131126,
1: + PM_BR_2PATH_ALT = 262198,
1: + PM_INST_DISP___2 = 131314,
1: + PM_INST_DISP_ALT = 196850,
1: + PM_MRK_FILT_MATCH = 131388,
1: + PM_MRK_FILT_MATCH_ALT = 196910,
1: + PM_LD_MISS_L1_ALT = 262384,
1: + MEM_ACCESS = 17039840,
1: +};
1: +
1: +enum {
1: + PM_CYC___3 = 30,
1: + PM_ICT_NOSLOT_CYC = 65784,
1: + PM_CMPLU_STALL___3 = 122964,
1: + PM_INST_CMPL___3 = 2,
1: + PM_BR_CMPL = 315486,
1: + PM_BR_MPRED_CMPL___2 = 262390,
1: + PM_LD_REF_L1___3 = 65788,
1: + PM_LD_MISS_L1_FIN = 180302,
1: + PM_LD_MISS_L1___3 = 254036,
1: + PM_LD_MISS_L1_ALT___2 = 262384,
1: + PM_ST_MISS_L1___3 = 196848,
1: + PM_L1_PREF___3 = 131156,
1: + PM_INST_FROM_L1___3 = 16512,
1: + PM_L1_ICACHE_MISS___3 = 131325,
1: + PM_L1_DEMAND_WRITE___3 = 16524,
1: + PM_IC_PREF_WRITE___3 = 18572,
1: + PM_DATA_FROM_L3___3 = 311362,
1: + PM_DATA_FROM_L3MISS___3 = 196862,
1: + PM_L2_ST___3 = 92288,
1: + PM_L2_ST_MISS___3 = 157824,
1: + PM_L3_PREF_ALL___2 = 319570,
1: + PM_DTLB_MISS___3 = 196860,
1: + PM_ITLB_MISS___3 = 262396,
1: + PM_RUN_INST_CMPL___3 = 327930,
1: + PM_RUN_INST_CMPL_ALT___2 = 262394,
1: + PM_RUN_CYC___3 = 393460,
1: + PM_RUN_CYC_ALT___2 = 131316,
1: + PM_INST_DISP___3 = 131314,
1: + PM_INST_DISP_ALT___2 = 196850,
1: + PM_BR_2PATH___2 = 131126,
1: + PM_BR_2PATH_ALT___2 = 262198,
1: + PM_MRK_ST_DONE_L2 = 65844,
1: + PM_RADIX_PWC_L1_HIT = 127062,
1: + PM_FLOP_CMPL = 65780,
1: + PM_MRK_NTF_FIN = 131346,
1: + PM_RADIX_PWC_L2_HIT = 184356,
1: + PM_IFETCH_THROTTLE = 213086,
1: + PM_MRK_L2_TM_ST_ABORT_SISTER = 254300,
1: + PM_RADIX_PWC_L3_HIT = 258134,
1: + PM_RUN_CYC_SMT2_MODE = 196716,
1: + PM_TM_TX_PASS_RUN_INST = 319508,
1: + PM_DISP_HELD_SYNC_HOLD = 262204,
1: + PM_DTLB_MISS_16G___2 = 114776,
1: + PM_DERAT_MISS_2M = 114778,
1: + PM_DTLB_MISS_2M = 114780,
1: + PM_MRK_DTLB_MISS_1G = 119132,
1: + PM_DTLB_MISS_4K___2 = 180310,
1: + PM_DERAT_MISS_1G = 180314,
1: + PM_MRK_DERAT_MISS_2M = 184658,
1: + PM_MRK_DTLB_MISS_4K___2 = 184662,
1: + PM_MRK_DTLB_MISS_16G___2 = 184670,
1: + PM_DTLB_MISS_64K___2 = 245846,
1: + PM_MRK_DERAT_MISS_1G = 250194,
1: + PM_MRK_DTLB_MISS_64K___2 = 250198,
1: + PM_DTLB_MISS_16M___2 = 311382,
1: + PM_DTLB_MISS_1G = 311386,
1: + PM_MRK_DTLB_MISS_16M___2 = 311646,
1: + MEM_LOADS = 872677856,
1: + MEM_STORES = 1006895584,
1: +};
1: +
1: +enum {
1: + PM_CYC___4 = 30,
1: + PM_INST_CMPL___4 = 2,
1: +};
1: +
1: +enum {
1: + PM_RUN_CYC___4 = 393460,
1: +};
1: +
1: +enum {
1: + PM_RUN_INST_CMPL___4 = 327930,
1: +};
1: +
1: +enum {
1: + PM_BR_CMPL___2 = 315486,
1: +};
1: +
1: +enum {
1: + PM_BR_MPRED_CMPL___3 = 262390,
1: +};
1: +
1: +enum {
1: + PM_LD_REF_L1___4 = 65788,
1: +};
1: +
1: +enum {
1: + PM_LD_MISS_L1___4 = 254036,
1: +};
1: +
1: +enum {
1: + PM_ST_MISS_L1___4 = 196848,
1: +};
1: +
1: +enum {
1: + PM_LD_PREFETCH_CACHE_LINE_MISS = 65580,
1: +};
1: +
1: +enum {
1: + PM_L1_ICACHE_MISS___4 = 131324,
1: +};
1: +
1: +enum {
1: + PM_INST_FROM_L1___4 = 16512,
1: +};
1: +
1: +enum {
1: + PM_INST_FROM_L1MISS = 114752,
1: +};
1: +
1: +enum {
1: + PM_IC_PREF_REQ___2 = 16544,
1: +};
1: +
1: +enum {
1: + PM_DATA_FROM_L3___4 = 114752,
1: +};
1: +
1: +enum {
1: + PM_DATA_FROM_L3MISS___4 = 196862,
1: +};
1: +
1: +enum {
1: + PM_DTLB_MISS___4 = 196860,
1: +};
1: +
1: +enum {
1: + PM_ITLB_MISS___4 = 262396,
1: +};
1: +
1: +enum {
1: + PM_RUN_CYC_ALT___3 = 30,
1: +};
1: +
1: +enum {
1: + PM_RUN_INST_CMPL_ALT___3 = 2,
1: +};
1: +
1: +enum {
1: + MEM_LOADS___2 = 872677856,
1: +};
1: +
1: +enum {
1: + MEM_STORES___2 = 1006895584,
1: +};
1: +
1: +typedef void (*crash_shutdown_t)();
1: +
1: +union thread_union {
1: + struct task_struct task;
1: + long unsigned int stack[2048];
1: +};
1: +
1: +typedef __be64 fdt64_t;
1: +
1: +struct elf64_phdr {
1: + Elf64_Word p_type;
1: + Elf64_Word p_flags;
1: + Elf64_Off p_offset;
1: + Elf64_Addr p_vaddr;
1: + Elf64_Addr p_paddr;
1: + Elf64_Xword p_filesz;
1: + Elf64_Xword p_memsz;
1: + Elf64_Xword p_align;
1: +};
1: +
1: +typedef struct elf64_phdr Elf64_Phdr;
1: +
1: +struct kexec_buf {
1: + struct kimage *image;
1: + void *buffer;
1: + long unsigned int bufsz;
1: + long unsigned int mem;
1: + long unsigned int memsz;
1: + long unsigned int buf_align;
1: + long unsigned int buf_min;
1: + long unsigned int buf_max;
1: + bool top_down;
1: +};
1: +
1: +struct umem_info {
1: + u64 *buf;
1: + u32 size;
1: + u32 max_entries;
1: + u32 idx;
1: + unsigned int nr_ranges;
1: + const struct crash_mem_range *ranges;
1: +};
1: +
1: +struct kexec_elf_info {
1: + const char *buffer;
1: + const struct elf64_hdr *ehdr;
1: + const struct elf64_phdr *proghdrs;
1: +};
1: +
1: +struct clone_args {
1: + __u64 flags;
1: + __u64 pidfd;
1: + __u64 child_tid;
1: + __u64 parent_tid;
1: + __u64 exit_signal;
1: + __u64 stack;
1: + __u64 stack_size;
1: + __u64 tls;
1: + __u64 set_tid;
1: + __u64 set_tid_size;
1: + __u64 cgroup;
1: +};
1: +
1: +struct fdtable {
1: + unsigned int max_fds;
1: + struct file **fd;
1: + long unsigned int *close_on_exec;
1: + long unsigned int *open_fds;
1: + long unsigned int *full_fds_bits;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct files_struct {
1: + atomic_t count;
1: + bool resize_in_progress;
1: + wait_queue_head_t resize_wait;
1: + struct fdtable *fdt;
1: + struct fdtable fdtab;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t file_lock;
1: + unsigned int next_fd;
1: + long unsigned int close_on_exec_init[1];
1: + long unsigned int open_fds_init[1];
1: + long unsigned int full_fds_bits_init[1];
1: + struct file *fd_array[64];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_identity {
1: + struct files_struct *files;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *creds;
1: + struct nsproxy *nsproxy;
1: + struct fs_struct *fs;
1: + long unsigned int fsize;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + refcount_t count;
1: +};
1: +
1: +struct io_uring_task {
1: + struct xarray xa;
1: + struct wait_queue_head wait;
1: + struct file *last;
1: + struct percpu_counter inflight;
1: + struct io_identity __identity;
1: + struct io_identity *identity;
1: + atomic_t in_idle;
1: + bool sqpoll;
1: +};
1: +
1: +struct robust_list {
1: + struct robust_list *next;
1: +};
1: +
1: +struct robust_list_head {
1: + struct robust_list list;
1: + long int futex_offset;
1: + struct robust_list *list_op_pending;
1: +};
1: +
1: +struct kernel_clone_args {
1: + u64 flags;
1: + int *pidfd;
1: + int *child_tid;
1: + int *parent_tid;
1: + int exit_signal;
1: + long unsigned int stack;
1: + long unsigned int stack_size;
1: + long unsigned int tls;
1: + pid_t *set_tid;
1: + size_t set_tid_size;
1: + int cgroup;
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: +};
1: +
1: +struct multiprocess_signals {
1: + sigset_t signal;
1: + struct hlist_node node;
1: +};
1: +
1: +typedef int (*proc_visitor)(struct task_struct *, void *);
1: +
1: +enum {
1: + IOPRIO_CLASS_NONE = 0,
1: + IOPRIO_CLASS_RT = 1,
1: + IOPRIO_CLASS_BE = 2,
1: + IOPRIO_CLASS_IDLE = 3,
1: +};
1: +
1: +enum {
1: + FUTEX_STATE_OK = 0,
1: + FUTEX_STATE_EXITING = 1,
1: + FUTEX_STATE_DEAD = 2,
1: +};
1: +
1: +enum proc_hidepid {
1: + HIDEPID_OFF = 0,
1: + HIDEPID_NO_ACCESS = 1,
1: + HIDEPID_INVISIBLE = 2,
1: + HIDEPID_NOT_PTRACEABLE = 4,
1: +};
1: +
1: +enum proc_pidonly {
1: + PROC_PIDONLY_OFF = 0,
1: + PROC_PIDONLY_ON = 1,
1: +};
1: +
1: +struct proc_fs_info {
1: + struct pid_namespace *pid_ns;
1: + struct dentry *proc_self;
1: + struct dentry *proc_thread_self;
1: + kgid_t pid_gid;
1: + enum proc_hidepid hide_pid;
1: + enum proc_pidonly pidonly;
1: +};
1: +
1: +struct trace_event_raw_task_newtask {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + long unsigned int clone_flags;
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_task_rename {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char oldcomm[16];
1: + char newcomm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_task_newtask {};
1: +
1: +struct trace_event_data_offsets_task_rename {};
1: +
1: +typedef void (*btf_trace_task_newtask)(void *, struct task_struct *, long unsigned int);
1: +
1: +typedef void (*btf_trace_task_rename)(void *, struct task_struct *, const char *);
1: +
1: +struct taint_flag {
1: + char c_true;
1: + char c_false;
1: + bool module;
1: +};
1: +
1: +enum reboot_mode {
1: + REBOOT_UNDEFINED = 4294967295,
1: + REBOOT_COLD = 0,
1: + REBOOT_WARM = 1,
1: + REBOOT_HARD = 2,
1: + REBOOT_SOFT = 3,
1: + REBOOT_GPIO = 4,
1: +};
1: +
1: +struct warn_args {
1: + const char *fmt;
1: + va_list args;
1: +};
1: +
1: +enum hk_flags {
1: + HK_FLAG_TIMER = 1,
1: + HK_FLAG_RCU = 2,
1: + HK_FLAG_MISC = 4,
1: + HK_FLAG_SCHED = 8,
1: + HK_FLAG_TICK = 16,
1: + HK_FLAG_DOMAIN = 32,
1: + HK_FLAG_WQ = 64,
1: + HK_FLAG_MANAGED_IRQ = 128,
1: + HK_FLAG_KTHREAD = 256,
1: +};
1: +
1: +enum cpuhp_smt_control {
1: + CPU_SMT_ENABLED = 0,
1: + CPU_SMT_DISABLED = 1,
1: + CPU_SMT_FORCE_DISABLED = 2,
1: + CPU_SMT_NOT_SUPPORTED = 3,
1: + CPU_SMT_NOT_IMPLEMENTED = 4,
1: +};
1: +
1: +struct smp_hotplug_thread {
1: + struct task_struct **store;
1: + struct list_head list;
1: + int (*thread_should_run)(unsigned int);
1: + void (*thread_fn)(unsigned int);
1: + void (*create)(unsigned int);
1: + void (*setup)(unsigned int);
1: + void (*cleanup)(unsigned int, bool);
1: + void (*park)(unsigned int);
1: + void (*unpark)(unsigned int);
1: + bool selfparking;
1: + const char *thread_comm;
1: +};
1: +
1: +struct trace_event_raw_cpuhp_enter {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpuhp_multi_enter {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int target;
1: + int idx;
1: + void *fun;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpuhp_exit {
1: + struct trace_entry ent;
1: + unsigned int cpu;
1: + int state;
1: + int idx;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cpuhp_enter {};
1: +
1: +struct trace_event_data_offsets_cpuhp_multi_enter {};
1: +
1: +struct trace_event_data_offsets_cpuhp_exit {};
1: +
1: +typedef void (*btf_trace_cpuhp_enter)(void *, unsigned int, int, int, int (*)(unsigned int));
1: +
1: +typedef void (*btf_trace_cpuhp_multi_enter)(void *, unsigned int, int, int, int (*)(unsigned int, struct hlist_node *), struct hlist_node *);
1: +
1: +typedef void (*btf_trace_cpuhp_exit)(void *, unsigned int, int, int, int);
1: +
1: +struct cpuhp_cpu_state {
1: + enum cpuhp_state state;
1: + enum cpuhp_state target;
1: + enum cpuhp_state fail;
1: + struct task_struct *thread;
1: + bool should_run;
1: + bool rollback;
1: + bool single;
1: + bool bringup;
1: + struct hlist_node *node;
1: + struct hlist_node *last;
1: + enum cpuhp_state cb_state;
1: + int result;
1: + struct completion done_up;
1: + struct completion done_down;
1: +};
1: +
1: +struct cpuhp_step {
1: + const char *name;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } startup;
1: + union {
1: + int (*single)(unsigned int);
1: + int (*multi)(unsigned int, struct hlist_node *);
1: + } teardown;
1: + struct hlist_head list;
1: + bool cant_stop;
1: + bool multi_instance;
1: +};
1: +
1: +enum cpu_mitigations {
1: + CPU_MITIGATIONS_OFF = 0,
1: + CPU_MITIGATIONS_AUTO = 1,
1: + CPU_MITIGATIONS_AUTO_NOSMT = 2,
1: +};
1: +
1: +struct __kernel_old_timeval {
1: + __kernel_long_t tv_sec;
1: + __kernel_long_t tv_usec;
1: +};
1: +
1: +struct old_timeval32 {
1: + old_time32_t tv_sec;
1: + s32 tv_usec;
1: +};
1: +
1: +struct rusage {
1: + struct __kernel_old_timeval ru_utime;
1: + struct __kernel_old_timeval ru_stime;
1: + __kernel_long_t ru_maxrss;
1: + __kernel_long_t ru_ixrss;
1: + __kernel_long_t ru_idrss;
1: + __kernel_long_t ru_isrss;
1: + __kernel_long_t ru_minflt;
1: + __kernel_long_t ru_majflt;
1: + __kernel_long_t ru_nswap;
1: + __kernel_long_t ru_inblock;
1: + __kernel_long_t ru_oublock;
1: + __kernel_long_t ru_msgsnd;
1: + __kernel_long_t ru_msgrcv;
1: + __kernel_long_t ru_nsignals;
1: + __kernel_long_t ru_nvcsw;
1: + __kernel_long_t ru_nivcsw;
1: +};
1: +
1: +typedef struct {} mm_segment_t;
1: +
1: +typedef u32 compat_uint_t;
1: +
1: +struct compat_rusage {
1: + struct old_timeval32 ru_utime;
1: + struct old_timeval32 ru_stime;
1: + compat_long_t ru_maxrss;
1: + compat_long_t ru_ixrss;
1: + compat_long_t ru_idrss;
1: + compat_long_t ru_isrss;
1: + compat_long_t ru_minflt;
1: + compat_long_t ru_majflt;
1: + compat_long_t ru_nswap;
1: + compat_long_t ru_inblock;
1: + compat_long_t ru_oublock;
1: + compat_long_t ru_msgsnd;
1: + compat_long_t ru_msgrcv;
1: + compat_long_t ru_nsignals;
1: + compat_long_t ru_nvcsw;
1: + compat_long_t ru_nivcsw;
1: +};
1: +
1: +struct waitid_info {
1: + pid_t pid;
1: + uid_t uid;
1: + int status;
1: + int cause;
1: +};
1: +
1: +struct wait_opts {
1: + enum pid_type wo_type;
1: + int wo_flags;
1: + struct pid *wo_pid;
1: + struct waitid_info *wo_info;
1: + int wo_stat;
1: + struct rusage *wo_rusage;
1: + wait_queue_entry_t child_wait;
1: + int notask_error;
1: +};
1: +
1: +struct trace_print_flags {
1: + long unsigned int mask;
1: + const char *name;
1: +};
1: +
1: +struct softirq_action {
1: + void (*action)(struct softirq_action *);
1: +};
1: +
1: +struct tasklet_struct {
1: + struct tasklet_struct *next;
1: + long unsigned int state;
1: + atomic_t count;
1: + bool use_callback;
1: + union {
1: + void (*func)(long unsigned int);
1: + void (*callback)(struct tasklet_struct *);
1: + };
1: + long unsigned int data;
1: +};
1: +
1: +enum {
1: + TASKLET_STATE_SCHED = 0,
1: + TASKLET_STATE_RUN = 1,
1: +};
1: +
1: +struct trace_event_raw_irq_handler_entry {
1: + struct trace_entry ent;
1: + int irq;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_irq_handler_exit {
1: + struct trace_entry ent;
1: + int irq;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_softirq {
1: + struct trace_entry ent;
1: + unsigned int vec;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_irq_handler_entry {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_irq_handler_exit {};
1: +
1: +struct trace_event_data_offsets_softirq {};
1: +
1: +typedef void (*btf_trace_irq_handler_entry)(void *, int, struct irqaction *);
1: +
1: +typedef void (*btf_trace_irq_handler_exit)(void *, int, struct irqaction *, int);
1: +
1: +typedef void (*btf_trace_softirq_entry)(void *, unsigned int);
1: +
1: +typedef void (*btf_trace_softirq_exit)(void *, unsigned int);
1: +
1: +typedef void (*btf_trace_softirq_raise)(void *, unsigned int);
1: +
1: +struct tasklet_head {
1: + struct tasklet_struct *head;
1: + struct tasklet_struct **tail;
1: +};
1: +
1: +enum {
1: + IORES_DESC_NONE = 0,
1: + IORES_DESC_CRASH_KERNEL = 1,
1: + IORES_DESC_ACPI_TABLES = 2,
1: + IORES_DESC_ACPI_NV_STORAGE = 3,
1: + IORES_DESC_PERSISTENT_MEMORY = 4,
1: + IORES_DESC_PERSISTENT_MEMORY_LEGACY = 5,
1: + IORES_DESC_DEVICE_PRIVATE_MEMORY = 6,
1: + IORES_DESC_RESERVED = 7,
1: + IORES_DESC_SOFT_RESERVED = 8,
1: +};
1: +
1: +typedef void (*dr_release_t)(struct device *, void *);
1: +
1: +enum {
1: + REGION_INTERSECTS = 0,
1: + REGION_DISJOINT = 1,
1: + REGION_MIXED = 2,
1: +};
1: +
1: +struct resource_entry {
1: + struct list_head node;
1: + struct resource *res;
1: + resource_size_t offset;
1: + struct resource __res;
1: +};
1: +
1: +struct resource_constraint {
1: + resource_size_t min;
1: + resource_size_t max;
1: + resource_size_t align;
1: + resource_size_t (*alignf)(void *, const struct resource *, resource_size_t, resource_size_t);
1: + void *alignf_data;
1: +};
1: +
1: +enum {
1: + MAX_IORES_LEVEL = 5,
1: +};
1: +
1: +struct region_devres {
1: + struct resource *parent;
1: + resource_size_t start;
1: + resource_size_t n;
1: +};
1: +
1: +struct dentry_stat_t {
1: + long int nr_dentry;
1: + long int nr_unused;
1: + long int age_limit;
1: + long int want_pages;
1: + long int nr_negative;
1: + long int dummy;
1: +};
1: +
1: +struct files_stat_struct {
1: + long unsigned int nr_files;
1: + long unsigned int nr_free_files;
1: + long unsigned int max_files;
1: +};
1: +
1: +struct inodes_stat_t {
1: + long int nr_inodes;
1: + long int nr_unused;
1: + long int dummy[5];
1: +};
1: +
1: +enum sched_tunable_scaling {
1: + SCHED_TUNABLESCALING_NONE = 0,
1: + SCHED_TUNABLESCALING_LOG = 1,
1: + SCHED_TUNABLESCALING_LINEAR = 2,
1: + SCHED_TUNABLESCALING_END = 3,
1: +};
1: +
1: +enum sysctl_writes_mode {
1: + SYSCTL_WRITES_LEGACY = 4294967295,
1: + SYSCTL_WRITES_WARN = 0,
1: + SYSCTL_WRITES_STRICT = 1,
1: +};
1: +
1: +struct do_proc_dointvec_minmax_conv_param {
1: + int *min;
1: + int *max;
1: +};
1: +
1: +struct do_proc_douintvec_minmax_conv_param {
1: + unsigned int *min;
1: + unsigned int *max;
1: +};
1: +
1: +struct __user_cap_header_struct {
1: + __u32 version;
1: + int pid;
1: +};
1: +
1: +typedef struct __user_cap_header_struct *cap_user_header_t;
1: +
1: +struct __user_cap_data_struct {
1: + __u32 effective;
1: + __u32 permitted;
1: + __u32 inheritable;
1: +};
1: +
1: +typedef struct __user_cap_data_struct *cap_user_data_t;
1: +
1: +typedef struct siginfo siginfo_t;
1: +
1: +struct sigqueue {
1: + struct list_head list;
1: + int flags;
1: + kernel_siginfo_t info;
1: + struct user_struct *user;
1: +};
1: +
1: +struct ptrace_peeksiginfo_args {
1: + __u64 off;
1: + __u32 flags;
1: + __s32 nr;
1: +};
1: +
1: +struct ptrace_syscall_info {
1: + __u8 op;
1: + __u8 pad[3];
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 stack_pointer;
1: + union {
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + } entry;
1: + struct {
1: + __s64 rval;
1: + __u8 is_error;
1: + } exit;
1: + struct {
1: + __u64 nr;
1: + __u64 args[6];
1: + __u32 ret_data;
1: + } seccomp;
1: + };
1: +};
1: +
1: +struct compat_iovec {
1: + compat_uptr_t iov_base;
1: + compat_size_t iov_len;
1: +};
1: +
1: +typedef long unsigned int old_sigset_t;
1: +
1: +enum siginfo_layout {
1: + SIL_KILL = 0,
1: + SIL_TIMER = 1,
1: + SIL_POLL = 2,
1: + SIL_FAULT = 3,
1: + SIL_FAULT_MCEERR = 4,
1: + SIL_FAULT_BNDERR = 5,
1: + SIL_FAULT_PKUERR = 6,
1: + SIL_CHLD = 7,
1: + SIL_RT = 8,
1: + SIL_SYS = 9,
1: +};
1: +
1: +struct fd {
1: + struct file *file;
1: + unsigned int flags;
1: +};
1: +
1: +typedef u32 compat_old_sigset_t;
1: +
1: +struct compat_sigaction {
1: + compat_uptr_t sa_handler;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: + compat_sigset_t sa_mask;
1: +};
1: +
1: +struct compat_old_sigaction {
1: + compat_uptr_t sa_handler;
1: + compat_old_sigset_t sa_mask;
1: + compat_ulong_t sa_flags;
1: + compat_uptr_t sa_restorer;
1: +};
1: +
1: +enum {
1: + TRACE_SIGNAL_DELIVERED = 0,
1: + TRACE_SIGNAL_IGNORED = 1,
1: + TRACE_SIGNAL_ALREADY_PENDING = 2,
1: + TRACE_SIGNAL_OVERFLOW_FAIL = 3,
1: + TRACE_SIGNAL_LOSE_INFO = 4,
1: +};
1: +
1: +struct trace_event_raw_signal_generate {
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + char comm[16];
1: + pid_t pid;
1: + int group;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_signal_deliver {
1: + struct trace_entry ent;
1: + int sig;
1: + int errno;
1: + int code;
1: + long unsigned int sa_handler;
1: + long unsigned int sa_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_signal_generate {};
1: +
1: +struct trace_event_data_offsets_signal_deliver {};
1: +
1: +typedef void (*btf_trace_signal_generate)(void *, int, struct kernel_siginfo *, struct task_struct *, int, int);
1: +
1: +typedef void (*btf_trace_signal_deliver)(void *, int, struct kernel_siginfo *, struct k_sigaction *);
1: +
1: +typedef __kernel_clock_t clock_t;
1: +
1: +struct sysinfo {
1: + __kernel_long_t uptime;
1: + __kernel_ulong_t loads[3];
1: + __kernel_ulong_t totalram;
1: + __kernel_ulong_t freeram;
1: + __kernel_ulong_t sharedram;
1: + __kernel_ulong_t bufferram;
1: + __kernel_ulong_t totalswap;
1: + __kernel_ulong_t freeswap;
1: + __u16 procs;
1: + __u16 pad;
1: + __kernel_ulong_t totalhigh;
1: + __kernel_ulong_t freehigh;
1: + __u32 mem_unit;
1: + char _f[0];
1: +};
1: +
1: +struct rlimit64 {
1: + __u64 rlim_cur;
1: + __u64 rlim_max;
1: +};
1: +
1: +struct timens_offsets {
1: + struct timespec64 monotonic;
1: + struct timespec64 boottime;
1: +};
1: +
1: +struct time_namespace {
1: + struct kref kref;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct ns_common ns;
1: + struct timens_offsets offsets;
1: + struct page *vvar_page;
1: + bool frozen_offsets;
1: +};
1: +
1: +struct oldold_utsname {
1: + char sysname[9];
1: + char nodename[9];
1: + char release[9];
1: + char version[9];
1: + char machine[9];
1: +};
1: +
1: +struct old_utsname {
1: + char sysname[65];
1: + char nodename[65];
1: + char release[65];
1: + char version[65];
1: + char machine[65];
1: +};
1: +
1: +enum uts_proc {
1: + UTS_PROC_OSTYPE = 0,
1: + UTS_PROC_OSRELEASE = 1,
1: + UTS_PROC_VERSION = 2,
1: + UTS_PROC_HOSTNAME = 3,
1: + UTS_PROC_DOMAINNAME = 4,
1: +};
1: +
1: +struct prctl_mm_map {
1: + __u64 start_code;
1: + __u64 end_code;
1: + __u64 start_data;
1: + __u64 end_data;
1: + __u64 start_brk;
1: + __u64 brk;
1: + __u64 start_stack;
1: + __u64 arg_start;
1: + __u64 arg_end;
1: + __u64 env_start;
1: + __u64 env_end;
1: + __u64 *auxv;
1: + __u32 auxv_size;
1: + __u32 exe_fd;
1: +};
1: +
1: +struct tms {
1: + __kernel_clock_t tms_utime;
1: + __kernel_clock_t tms_stime;
1: + __kernel_clock_t tms_cutime;
1: + __kernel_clock_t tms_cstime;
1: +};
1: +
1: +struct getcpu_cache {
1: + long unsigned int blob[16];
1: +};
1: +
1: +struct compat_tms {
1: + compat_clock_t tms_utime;
1: + compat_clock_t tms_stime;
1: + compat_clock_t tms_cutime;
1: + compat_clock_t tms_cstime;
1: +};
1: +
1: +struct compat_rlimit {
1: + compat_ulong_t rlim_cur;
1: + compat_ulong_t rlim_max;
1: +};
1: +
1: +struct compat_sysinfo {
1: + s32 uptime;
1: + u32 loads[3];
1: + u32 totalram;
1: + u32 freeram;
1: + u32 sharedram;
1: + u32 bufferram;
1: + u32 totalswap;
1: + u32 freeswap;
1: + u16 procs;
1: + u16 pad;
1: + u32 totalhigh;
1: + u32 freehigh;
1: + u32 mem_unit;
1: + char _f[8];
1: +};
1: +
1: +struct wq_flusher;
1: +
1: +struct worker;
1: +
1: +struct workqueue_attrs;
1: +
1: +struct pool_workqueue;
1: +
1: +struct wq_device;
1: +
1: +struct workqueue_struct {
1: + struct list_head pwqs;
1: + struct list_head list;
1: + struct mutex mutex;
1: + int work_color;
1: + int flush_color;
1: + atomic_t nr_pwqs_to_flush;
1: + struct wq_flusher *first_flusher;
1: + struct list_head flusher_queue;
1: + struct list_head flusher_overflow;
1: + struct list_head maydays;
1: + struct worker *rescuer;
1: + int nr_drainers;
1: + int saved_max_active;
1: + struct workqueue_attrs *unbound_attrs;
1: + struct pool_workqueue *dfl_pwq;
1: + struct wq_device *wq_dev;
1: + char name[24];
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + unsigned int flags;
1: + struct pool_workqueue *cpu_pwqs;
1: + struct pool_workqueue *numa_pwq_tbl[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct workqueue_attrs {
1: + int nice;
1: + cpumask_var_t cpumask;
1: + bool no_numa;
1: +};
1: +
1: +struct execute_work {
1: + struct work_struct work;
1: +};
1: +
1: +struct __una_u32 {
1: + u32 x;
1: +};
1: +
1: +struct worker_pool;
1: +
1: +struct worker {
1: + union {
1: + struct list_head entry;
1: + struct hlist_node hentry;
1: + };
1: + struct work_struct *current_work;
1: + work_func_t current_func;
1: + struct pool_workqueue *current_pwq;
1: + struct list_head scheduled;
1: + struct task_struct *task;
1: + struct worker_pool *pool;
1: + struct list_head node;
1: + long unsigned int last_active;
1: + unsigned int flags;
1: + int id;
1: + int sleeping;
1: + char desc[24];
1: + struct workqueue_struct *rescue_wq;
1: + work_func_t last_func;
1: +};
1: +
1: +struct pool_workqueue {
1: + struct worker_pool *pool;
1: + struct workqueue_struct *wq;
1: + int work_color;
1: + int flush_color;
1: + int refcnt;
1: + int nr_in_flight[15];
1: + int nr_active;
1: + int max_active;
1: + struct list_head delayed_works;
1: + struct list_head pwqs_node;
1: + struct list_head mayday_node;
1: + struct work_struct unbound_release_work;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct worker_pool {
1: + raw_spinlock_t lock;
1: + int cpu;
1: + int node;
1: + int id;
1: + unsigned int flags;
1: + long unsigned int watchdog_ts;
1: + struct list_head worklist;
1: + int nr_workers;
1: + int nr_idle;
1: + struct list_head idle_list;
1: + struct timer_list idle_timer;
1: + struct timer_list mayday_timer;
1: + struct hlist_head busy_hash[64];
1: + struct worker *manager;
1: + struct list_head workers;
1: + struct completion *detach_completion;
1: + struct ida worker_ida;
1: + struct workqueue_attrs *attrs;
1: + struct hlist_node hash_node;
1: + int refcnt;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_t nr_running;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum {
1: + POOL_MANAGER_ACTIVE = 1,
1: + POOL_DISASSOCIATED = 4,
1: + WORKER_DIE = 2,
1: + WORKER_IDLE = 4,
1: + WORKER_PREP = 8,
1: + WORKER_CPU_INTENSIVE = 64,
1: + WORKER_UNBOUND = 128,
1: + WORKER_REBOUND = 256,
1: + WORKER_NOT_RUNNING = 456,
1: + NR_STD_WORKER_POOLS = 2,
1: + UNBOUND_POOL_HASH_ORDER = 6,
1: + BUSY_WORKER_HASH_ORDER = 6,
1: + MAX_IDLE_WORKERS_RATIO = 4,
1: + IDLE_WORKER_TIMEOUT = 300000,
1: + MAYDAY_INITIAL_TIMEOUT = 10,
1: + MAYDAY_INTERVAL = 100,
1: + CREATE_COOLDOWN = 1000,
1: + RESCUER_NICE_LEVEL = 4294967276,
1: + HIGHPRI_NICE_LEVEL = 4294967276,
1: + WQ_NAME_LEN = 24,
1: +};
1: +
1: +struct wq_flusher {
1: + struct list_head list;
1: + int flush_color;
1: + struct completion done;
1: +};
1: +
1: +struct wq_device {
1: + struct workqueue_struct *wq;
1: + struct device dev;
1: +};
1: +
1: +struct trace_event_raw_workqueue_queue_work {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + void *workqueue;
1: + unsigned int req_cpu;
1: + unsigned int cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_activate_work {
1: + struct trace_entry ent;
1: + void *work;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_execute_start {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_workqueue_execute_end {
1: + struct trace_entry ent;
1: + void *work;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_workqueue_queue_work {};
1: +
1: +struct trace_event_data_offsets_workqueue_activate_work {};
1: +
1: +struct trace_event_data_offsets_workqueue_execute_start {};
1: +
1: +struct trace_event_data_offsets_workqueue_execute_end {};
1: +
1: +typedef void (*btf_trace_workqueue_queue_work)(void *, unsigned int, struct pool_workqueue *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_activate_work)(void *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_execute_start)(void *, struct work_struct *);
1: +
1: +typedef void (*btf_trace_workqueue_execute_end)(void *, struct work_struct *, work_func_t);
1: +
1: +struct wq_barrier {
1: + struct work_struct work;
1: + struct completion done;
1: + struct task_struct *task;
1: +};
1: +
1: +struct cwt_wait {
1: + wait_queue_entry_t wait;
1: + struct work_struct *work;
1: +};
1: +
1: +struct apply_wqattrs_ctx {
1: + struct workqueue_struct *wq;
1: + struct workqueue_attrs *attrs;
1: + struct list_head list;
1: + struct pool_workqueue *dfl_pwq;
1: + struct pool_workqueue *pwq_tbl[0];
1: +};
1: +
1: +struct work_for_cpu {
1: + struct work_struct work;
1: + long int (*fn)(void *);
1: + void *arg;
1: + long int ret;
1: +};
1: +
1: +typedef void (*task_work_func_t)(struct callback_head *);
1: +
1: +enum task_work_notify_mode {
1: + TWA_NONE = 0,
1: + TWA_RESUME = 1,
1: + TWA_SIGNAL = 2,
1: +};
1: +
1: +enum {
1: + KERNEL_PARAM_OPS_FL_NOARG = 1,
1: +};
1: +
1: +enum {
1: + KERNEL_PARAM_FL_UNSAFE = 1,
1: + KERNEL_PARAM_FL_HWPARAM = 2,
1: +};
1: +
1: +struct param_attribute {
1: + struct module_attribute mattr;
1: + const struct kernel_param *param;
1: +};
1: +
1: +struct module_param_attrs {
1: + unsigned int num;
1: + struct attribute_group grp;
1: + struct param_attribute attrs[0];
1: +};
1: +
1: +struct module_version_attribute {
1: + struct module_attribute mattr;
1: + const char *module_name;
1: + const char *version;
1: +};
1: +
1: +struct kmalloced_param {
1: + struct list_head list;
1: + char val[0];
1: +};
1: +
1: +struct sched_param {
1: + int sched_priority;
1: +};
1: +
1: +enum {
1: + __PERCPU_REF_ATOMIC = 1,
1: + __PERCPU_REF_DEAD = 2,
1: + __PERCPU_REF_ATOMIC_DEAD = 3,
1: + __PERCPU_REF_FLAG_BITS = 2,
1: +};
1: +
1: +struct kthread_work;
1: +
1: +typedef void (*kthread_work_func_t)(struct kthread_work *);
1: +
1: +struct kthread_worker;
1: +
1: +struct kthread_work {
1: + struct list_head node;
1: + kthread_work_func_t func;
1: + struct kthread_worker *worker;
1: + int canceling;
1: +};
1: +
1: +enum {
1: + KTW_FREEZABLE = 1,
1: +};
1: +
1: +struct kthread_worker {
1: + unsigned int flags;
1: + raw_spinlock_t lock;
1: + struct list_head work_list;
1: + struct list_head delayed_work_list;
1: + struct task_struct *task;
1: + struct kthread_work *current_work;
1: +};
1: +
1: +struct kthread_delayed_work {
1: + struct kthread_work work;
1: + struct timer_list timer;
1: +};
1: +
1: +enum {
1: + CSS_NO_REF = 1,
1: + CSS_ONLINE = 2,
1: + CSS_RELEASED = 4,
1: + CSS_VISIBLE = 8,
1: + CSS_DYING = 16,
1: +};
1: +
1: +struct kthread_create_info {
1: + int (*threadfn)(void *);
1: + void *data;
1: + int node;
1: + struct task_struct *result;
1: + struct completion *done;
1: + struct list_head list;
1: +};
1: +
1: +struct kthread {
1: + long unsigned int flags;
1: + unsigned int cpu;
1: + int (*threadfn)(void *);
1: + void *data;
1: + mm_segment_t oldfs;
1: + struct completion parked;
1: + struct completion exited;
1: + struct cgroup_subsys_state *blkcg_css;
1: +};
1: +
1: +enum KTHREAD_BITS {
1: + KTHREAD_IS_PER_CPU = 0,
1: + KTHREAD_SHOULD_STOP = 1,
1: + KTHREAD_SHOULD_PARK = 2,
1: +};
1: +
1: +struct kthread_flush_work {
1: + struct kthread_work work;
1: + struct completion done;
1: +};
1: +
1: +struct ipc_ids {
1: + int in_use;
1: + short unsigned int seq;
1: + struct rw_semaphore rwsem;
1: + struct idr ipcs_idr;
1: + int max_idx;
1: + int last_idx;
1: + int next_id;
1: + struct rhashtable key_ht;
1: +};
1: +
1: +struct ipc_namespace {
1: + refcount_t count;
1: + struct ipc_ids ids[3];
1: + int sem_ctls[4];
1: + int used_sems;
1: + unsigned int msg_ctlmax;
1: + unsigned int msg_ctlmnb;
1: + unsigned int msg_ctlmni;
1: + atomic_t msg_bytes;
1: + atomic_t msg_hdrs;
1: + size_t shm_ctlmax;
1: + size_t shm_ctlall;
1: + long unsigned int shm_tot;
1: + int shm_ctlmni;
1: + int shm_rmid_forced;
1: + struct notifier_block ipcns_nb;
1: + struct vfsmount *mq_mnt;
1: + unsigned int mq_queues_count;
1: + unsigned int mq_queues_max;
1: + unsigned int mq_msg_max;
1: + unsigned int mq_msgsize_max;
1: + unsigned int mq_msg_default;
1: + unsigned int mq_msgsize_default;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + struct llist_node mnt_llist;
1: + struct ns_common ns;
1: +};
1: +
1: +struct srcu_notifier_head {
1: + struct mutex mutex;
1: + struct srcu_struct srcu;
1: + struct notifier_block *head;
1: +};
1: +
1: +enum what {
1: + PROC_EVENT_NONE = 0,
1: + PROC_EVENT_FORK = 1,
1: + PROC_EVENT_EXEC = 2,
1: + PROC_EVENT_UID = 4,
1: + PROC_EVENT_GID = 64,
1: + PROC_EVENT_SID = 128,
1: + PROC_EVENT_PTRACE = 256,
1: + PROC_EVENT_COMM = 512,
1: + PROC_EVENT_COREDUMP = 1073741824,
1: + PROC_EVENT_EXIT = 2147483648,
1: +};
1: +
1: +enum reboot_type {
1: + BOOT_TRIPLE = 116,
1: + BOOT_KBD = 107,
1: + BOOT_BIOS = 98,
1: + BOOT_ACPI = 97,
1: + BOOT_EFI = 101,
1: + BOOT_CF9_FORCE = 112,
1: + BOOT_CF9_SAFE = 113,
1: +};
1: +
1: +typedef u64 async_cookie_t;
1: +
1: +typedef void (*async_func_t)(void *, async_cookie_t);
1: +
1: +struct async_domain {
1: + struct list_head pending;
1: + unsigned int registered: 1;
1: +};
1: +
1: +struct async_entry {
1: + struct list_head domain_list;
1: + struct list_head global_list;
1: + struct work_struct work;
1: + async_cookie_t cookie;
1: + async_func_t func;
1: + void *data;
1: + struct async_domain *domain;
1: +};
1: +
1: +struct smpboot_thread_data {
1: + unsigned int cpu;
1: + unsigned int status;
1: + struct smp_hotplug_thread *ht;
1: +};
1: +
1: +enum {
1: + HP_THREAD_NONE = 0,
1: + HP_THREAD_ACTIVE = 1,
1: + HP_THREAD_PARKED = 2,
1: +};
1: +
1: +struct umd_info {
1: + const char *driver_name;
1: + struct file *pipe_to_umh;
1: + struct file *pipe_from_umh;
1: + struct path wd;
1: + struct pid *tgid;
1: +};
1: +
1: +struct pin_cookie {};
1: +
1: +enum {
1: + CSD_FLAG_LOCK = 1,
1: + IRQ_WORK_PENDING = 1,
1: + IRQ_WORK_BUSY = 2,
1: + IRQ_WORK_LAZY = 4,
1: + IRQ_WORK_HARD_IRQ = 8,
1: + IRQ_WORK_CLAIMED = 3,
1: + CSD_TYPE_ASYNC = 0,
1: + CSD_TYPE_SYNC = 16,
1: + CSD_TYPE_IRQ_WORK = 32,
1: + CSD_TYPE_TTWU = 48,
1: + CSD_FLAG_TYPE_MASK = 240,
1: +};
1: +
1: +typedef struct __call_single_data call_single_data_t;
1: +
1: +struct dl_bw {
1: + raw_spinlock_t lock;
1: + u64 bw;
1: + u64 total_bw;
1: +};
1: +
1: +struct cpudl_item;
1: +
1: +struct cpudl {
1: + raw_spinlock_t lock;
1: + int size;
1: + cpumask_var_t free_cpus;
1: + struct cpudl_item *elements;
1: +};
1: +
1: +struct cpupri_vec {
1: + atomic_t count;
1: + cpumask_var_t mask;
1: +};
1: +
1: +struct cpupri {
1: + struct cpupri_vec pri_to_cpu[102];
1: + int *cpu_to_pri;
1: +};
1: +
1: +struct perf_domain;
1: +
1: +struct root_domain {
1: + atomic_t refcount;
1: + atomic_t rto_count;
1: + struct callback_head rcu;
1: + cpumask_var_t span;
1: + cpumask_var_t online;
1: + int overload;
1: + int overutilized;
1: + cpumask_var_t dlo_mask;
1: + atomic_t dlo_count;
1: + struct dl_bw dl_bw;
1: + struct cpudl cpudl;
1: + struct irq_work rto_push_work;
1: + raw_spinlock_t rto_lock;
1: + int rto_loop;
1: + int rto_cpu;
1: + atomic_t rto_loop_next;
1: + atomic_t rto_loop_start;
1: + cpumask_var_t rto_mask;
1: + struct cpupri cpupri;
1: + long unsigned int max_cpu_capacity;
1: + struct perf_domain *pd;
1: +};
1: +
1: +struct cfs_rq {
1: + struct load_weight load;
1: + unsigned int nr_running;
1: + unsigned int h_nr_running;
1: + unsigned int idle_h_nr_running;
1: + u64 exec_clock;
1: + u64 min_vruntime;
1: + struct rb_root_cached tasks_timeline;
1: + struct sched_entity *curr;
1: + struct sched_entity *next;
1: + struct sched_entity *last;
1: + struct sched_entity *skip;
1: + unsigned int nr_spread_over;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg;
1: + struct {
1: + raw_spinlock_t lock;
1: + int nr;
1: + long unsigned int load_avg;
1: + long unsigned int util_avg;
1: + long unsigned int runnable_avg;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + } removed;
1: + long unsigned int tg_load_avg_contrib;
1: + long int propagate;
1: + long int prop_runnable_sum;
1: + long unsigned int h_load;
1: + u64 last_h_load_update;
1: + struct sched_entity *h_load_next;
1: + struct rq *rq;
1: + int on_list;
1: + struct list_head leaf_cfs_rq_list;
1: + struct task_group *tg;
1: + int runtime_enabled;
1: + s64 runtime_remaining;
1: + u64 throttled_clock;
1: + u64 throttled_clock_task;
1: + u64 throttled_clock_task_time;
1: + int throttled;
1: + int throttle_count;
1: + struct list_head throttled_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct cfs_bandwidth {
1: + raw_spinlock_t lock;
1: + ktime_t period;
1: + u64 quota;
1: + u64 runtime;
1: + s64 hierarchical_quota;
1: + u8 idle;
1: + u8 period_active;
1: + u8 slack_started;
1: + struct hrtimer period_timer;
1: + struct hrtimer slack_timer;
1: + struct list_head throttled_cfs_rq;
1: + int nr_periods;
1: + int nr_throttled;
1: + u64 throttled_time;
1: +};
1: +
1: +struct task_group {
1: + struct cgroup_subsys_state css;
1: + struct sched_entity **se;
1: + struct cfs_rq **cfs_rq;
1: + long unsigned int shares;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + atomic_long_t load_avg;
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct task_group *parent;
1: + struct list_head siblings;
1: + struct list_head children;
1: + struct autogroup *autogroup;
1: + struct cfs_bandwidth cfs_bandwidth;
1: + unsigned int uclamp_pct[2];
1: + struct uclamp_se uclamp_req[2];
1: + struct uclamp_se uclamp[2];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sched_group {
1: + struct sched_group *next;
1: + atomic_t ref;
1: + unsigned int group_weight;
1: + struct sched_group_capacity *sgc;
1: + int asym_prefer_cpu;
1: + long unsigned int cpumask[0];
1: +};
1: +
1: +struct sched_group_capacity {
1: + atomic_t ref;
1: + long unsigned int capacity;
1: + long unsigned int min_capacity;
1: + long unsigned int max_capacity;
1: + long unsigned int next_update;
1: + int imbalance;
1: + int id;
1: + long unsigned int cpumask[0];
1: +};
1: +
1: +struct autogroup {
1: + struct kref kref;
1: + struct task_group *tg;
1: + struct rw_semaphore lock;
1: + long unsigned int id;
1: + int nice;
1: +};
1: +
1: +enum {
1: + CFTYPE_ONLY_ON_ROOT = 1,
1: + CFTYPE_NOT_ON_ROOT = 2,
1: + CFTYPE_NS_DELEGATABLE = 4,
1: + CFTYPE_NO_PREFIX = 8,
1: + CFTYPE_WORLD_WRITABLE = 16,
1: + CFTYPE_DEBUG = 32,
1: + __CFTYPE_ONLY_ON_DFL = 65536,
1: + __CFTYPE_NOT_ON_DFL = 131072,
1: +};
1: +
1: +struct css_task_iter {
1: + struct cgroup_subsys *ss;
1: + unsigned int flags;
1: + struct list_head *cset_pos;
1: + struct list_head *cset_head;
1: + struct list_head *tcset_pos;
1: + struct list_head *tcset_head;
1: + struct list_head *task_pos;
1: + struct list_head *cur_tasks_head;
1: + struct css_set *cur_cset;
1: + struct css_set *cur_dcset;
1: + struct task_struct *cur_task;
1: + struct list_head iters_node;
1: +};
1: +
1: +struct trace_event_raw_sched_kthread_stop {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_kthread_stop_ret {
1: + struct trace_entry ent;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_wakeup_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int success;
1: + int target_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_switch {
1: + struct trace_entry ent;
1: + char prev_comm[16];
1: + pid_t prev_pid;
1: + int prev_prio;
1: + long int prev_state;
1: + char next_comm[16];
1: + pid_t next_pid;
1: + int next_prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_migrate_task {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + int orig_cpu;
1: + int dest_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_wait {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_fork {
1: + struct trace_entry ent;
1: + char parent_comm[16];
1: + pid_t parent_pid;
1: + char child_comm[16];
1: + pid_t child_pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_exec {
1: + struct trace_entry ent;
1: + u32 __data_loc_filename;
1: + pid_t pid;
1: + pid_t old_pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_stat_template {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 delay;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_stat_runtime {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + u64 runtime;
1: + u64 vruntime;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_pi_setprio {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + int oldprio;
1: + int newprio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_process_hang {
1: + struct trace_entry ent;
1: + char comm[16];
1: + pid_t pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_move_numa {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + pid_t tgid;
1: + pid_t ngid;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_numa_pair_template {
1: + struct trace_entry ent;
1: + pid_t src_pid;
1: + pid_t src_tgid;
1: + pid_t src_ngid;
1: + int src_cpu;
1: + int src_nid;
1: + pid_t dst_pid;
1: + pid_t dst_tgid;
1: + pid_t dst_ngid;
1: + int dst_cpu;
1: + int dst_nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_sched_wake_idle_without_ipi {
1: + struct trace_entry ent;
1: + int cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_sched_kthread_stop {};
1: +
1: +struct trace_event_data_offsets_sched_kthread_stop_ret {};
1: +
1: +struct trace_event_data_offsets_sched_wakeup_template {};
1: +
1: +struct trace_event_data_offsets_sched_switch {};
1: +
1: +struct trace_event_data_offsets_sched_migrate_task {};
1: +
1: +struct trace_event_data_offsets_sched_process_template {};
1: +
1: +struct trace_event_data_offsets_sched_process_wait {};
1: +
1: +struct trace_event_data_offsets_sched_process_fork {};
1: +
1: +struct trace_event_data_offsets_sched_process_exec {
1: + u32 filename;
1: +};
1: +
1: +struct trace_event_data_offsets_sched_stat_template {};
1: +
1: +struct trace_event_data_offsets_sched_stat_runtime {};
1: +
1: +struct trace_event_data_offsets_sched_pi_setprio {};
1: +
1: +struct trace_event_data_offsets_sched_process_hang {};
1: +
1: +struct trace_event_data_offsets_sched_move_numa {};
1: +
1: +struct trace_event_data_offsets_sched_numa_pair_template {};
1: +
1: +struct trace_event_data_offsets_sched_wake_idle_without_ipi {};
1: +
1: +typedef void (*btf_trace_sched_kthread_stop)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_kthread_stop_ret)(void *, int);
1: +
1: +typedef void (*btf_trace_sched_waking)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wakeup)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wakeup_new)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_switch)(void *, bool, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_migrate_task)(void *, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_process_free)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_exit)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_wait_task)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_wait)(void *, struct pid *);
1: +
1: +typedef void (*btf_trace_sched_process_fork)(void *, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_exec)(void *, struct task_struct *, pid_t, struct linux_binprm *);
1: +
1: +typedef void (*btf_trace_sched_stat_wait)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_sleep)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_iowait)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_blocked)(void *, struct task_struct *, u64);
1: +
1: +typedef void (*btf_trace_sched_stat_runtime)(void *, struct task_struct *, u64, u64);
1: +
1: +typedef void (*btf_trace_sched_pi_setprio)(void *, struct task_struct *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_process_hang)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_sched_move_numa)(void *, struct task_struct *, int, int);
1: +
1: +typedef void (*btf_trace_sched_stick_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_swap_numa)(void *, struct task_struct *, int, struct task_struct *, int);
1: +
1: +typedef void (*btf_trace_sched_wake_idle_without_ipi)(void *, int);
1: +
1: +struct wake_q_head {
1: + struct wake_q_node *first;
1: + struct wake_q_node **lastp;
1: +};
1: +
1: +struct sched_attr {
1: + __u32 size;
1: + __u32 sched_policy;
1: + __u64 sched_flags;
1: + __s32 sched_nice;
1: + __u32 sched_priority;
1: + __u64 sched_runtime;
1: + __u64 sched_deadline;
1: + __u64 sched_period;
1: + __u32 sched_util_min;
1: + __u32 sched_util_max;
1: +};
1: +
1: +struct cpuidle_state_usage {
1: + long long unsigned int disable;
1: + long long unsigned int usage;
1: + u64 time_ns;
1: + long long unsigned int above;
1: + long long unsigned int below;
1: + long long unsigned int rejected;
1: + long long unsigned int s2idle_usage;
1: + long long unsigned int s2idle_time;
1: +};
1: +
1: +struct cpuidle_device;
1: +
1: +struct cpuidle_driver;
1: +
1: +struct cpuidle_state {
1: + char name[16];
1: + char desc[32];
1: + u64 exit_latency_ns;
1: + u64 target_residency_ns;
1: + unsigned int flags;
1: + unsigned int exit_latency;
1: + int power_usage;
1: + unsigned int target_residency;
1: + int (*enter)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: + int (*enter_dead)(struct cpuidle_device *, int);
1: + int (*enter_s2idle)(struct cpuidle_device *, struct cpuidle_driver *, int);
1: +};
1: +
1: +struct cpuidle_driver_kobj;
1: +
1: +struct cpuidle_state_kobj;
1: +
1: +struct cpuidle_device_kobj;
1: +
1: +struct cpuidle_device {
1: + unsigned int registered: 1;
1: + unsigned int enabled: 1;
1: + unsigned int poll_time_limit: 1;
1: + unsigned int cpu;
1: + ktime_t next_hrtimer;
1: + int last_state_idx;
1: + u64 last_residency_ns;
1: + u64 poll_limit_ns;
1: + u64 forced_idle_latency_limit_ns;
1: + struct cpuidle_state_usage states_usage[10];
1: + struct cpuidle_state_kobj *kobjs[10];
1: + struct cpuidle_driver_kobj *kobj_driver;
1: + struct cpuidle_device_kobj *kobj_dev;
1: + struct list_head device_list;
1: +};
1: +
1: +struct cpuidle_driver {
1: + const char *name;
1: + struct module *owner;
1: + unsigned int bctimer: 1;
1: + struct cpuidle_state states[10];
1: + int state_count;
1: + int safe_state_index;
1: + struct cpumask *cpumask;
1: + const char *governor;
1: +};
1: +
1: +typedef int (*cpu_stop_fn_t)(void *);
1: +
1: +struct cpu_stop_done;
1: +
1: +struct cpu_stop_work {
1: + struct list_head list;
1: + cpu_stop_fn_t fn;
1: + void *arg;
1: + struct cpu_stop_done *done;
1: +};
1: +
1: +struct cpudl_item {
1: + u64 dl;
1: + int cpu;
1: + int idx;
1: +};
1: +
1: +struct rt_prio_array {
1: + long unsigned int bitmap[2];
1: + struct list_head queue[100];
1: +};
1: +
1: +struct rt_bandwidth {
1: + raw_spinlock_t rt_runtime_lock;
1: + ktime_t rt_period;
1: + u64 rt_runtime;
1: + struct hrtimer rt_period_timer;
1: + unsigned int rt_period_active;
1: +};
1: +
1: +struct dl_bandwidth {
1: + raw_spinlock_t dl_runtime_lock;
1: + u64 dl_runtime;
1: + u64 dl_period;
1: +};
1: +
1: +typedef int (*tg_visitor)(struct task_group *, void *);
1: +
1: +struct uclamp_bucket {
1: + long unsigned int value: 11;
1: + long unsigned int tasks: 53;
1: +};
1: +
1: +struct uclamp_rq {
1: + unsigned int value;
1: + struct uclamp_bucket bucket[5];
1: +};
1: +
1: +struct rt_rq {
1: + struct rt_prio_array active;
1: + unsigned int rt_nr_running;
1: + unsigned int rr_nr_running;
1: + struct {
1: + int curr;
1: + int next;
1: + } highest_prio;
1: + long unsigned int rt_nr_migratory;
1: + long unsigned int rt_nr_total;
1: + int overloaded;
1: + struct plist_head pushable_tasks;
1: + int rt_queued;
1: + int rt_throttled;
1: + u64 rt_time;
1: + u64 rt_runtime;
1: + raw_spinlock_t rt_runtime_lock;
1: +};
1: +
1: +struct dl_rq {
1: + struct rb_root_cached root;
1: + long unsigned int dl_nr_running;
1: + struct {
1: + u64 curr;
1: + u64 next;
1: + } earliest_dl;
1: + long unsigned int dl_nr_migratory;
1: + int overloaded;
1: + struct rb_root_cached pushable_dl_tasks_root;
1: + u64 running_bw;
1: + u64 this_bw;
1: + u64 extra_bw;
1: + u64 bw_ratio;
1: +};
1: +
1: +struct rq {
1: + raw_spinlock_t lock;
1: + unsigned int nr_running;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: + unsigned int numa_migrate_on;
1: + long unsigned int last_blocked_load_update_tick;
1: + unsigned int has_blocked_load;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + call_single_data_t nohz_csd;
1: + unsigned int nohz_tick_stopped;
1: + atomic_t nohz_flags;
1: + unsigned int ttwu_pending;
1: + u64 nr_switches;
1: + long: 64;
1: + struct uclamp_rq uclamp[2];
1: + unsigned int uclamp_flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct cfs_rq cfs;
1: + struct rt_rq rt;
1: + struct dl_rq dl;
1: + struct list_head leaf_cfs_rq_list;
1: + struct list_head *tmp_alone_branch;
1: + long unsigned int nr_uninterruptible;
1: + struct task_struct *curr;
1: + struct task_struct *idle;
1: + struct task_struct *stop;
1: + long unsigned int next_balance;
1: + struct mm_struct *prev_mm;
1: + unsigned int clock_update_flags;
1: + u64 clock;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u64 clock_task;
1: + u64 clock_pelt;
1: + long unsigned int lost_idle_time;
1: + atomic_t nr_iowait;
1: + int membarrier_state;
1: + struct root_domain *rd;
1: + struct sched_domain *sd;
1: + long unsigned int cpu_capacity;
1: + long unsigned int cpu_capacity_orig;
1: + struct callback_head *balance_callback;
1: + unsigned char nohz_idle_balance;
1: + unsigned char idle_balance;
1: + long unsigned int misfit_task_load;
1: + int active_balance;
1: + int push_cpu;
1: + struct cpu_stop_work active_balance_work;
1: + int cpu;
1: + int online;
1: + struct list_head cfs_tasks;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sched_avg avg_rt;
1: + struct sched_avg avg_dl;
1: + u64 idle_stamp;
1: + u64 avg_idle;
1: + u64 max_idle_balance_cost;
1: + long unsigned int calc_load_update;
1: + long int calc_load_active;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + call_single_data_t hrtick_csd;
1: + struct hrtimer hrtick_timer;
1: + struct sched_info rq_sched_info;
1: + long long unsigned int rq_cpu_time;
1: + unsigned int yld_count;
1: + unsigned int sched_count;
1: + unsigned int sched_goidle;
1: + unsigned int ttwu_count;
1: + unsigned int ttwu_local;
1: + struct cpuidle_state *idle_state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct perf_domain {
1: + struct em_perf_domain *em_pd;
1: + struct perf_domain *next;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct rq_flags {
1: + long unsigned int flags;
1: + struct pin_cookie cookie;
1: + unsigned int clock_update_flags;
1: +};
1: +
1: +enum {
1: + __SCHED_FEAT_GENTLE_FAIR_SLEEPERS = 0,
1: + __SCHED_FEAT_START_DEBIT = 1,
1: + __SCHED_FEAT_NEXT_BUDDY = 2,
1: + __SCHED_FEAT_LAST_BUDDY = 3,
1: + __SCHED_FEAT_CACHE_HOT_BUDDY = 4,
1: + __SCHED_FEAT_WAKEUP_PREEMPTION = 5,
1: + __SCHED_FEAT_HRTICK = 6,
1: + __SCHED_FEAT_DOUBLE_TICK = 7,
1: + __SCHED_FEAT_NONTASK_CAPACITY = 8,
1: + __SCHED_FEAT_TTWU_QUEUE = 9,
1: + __SCHED_FEAT_SIS_AVG_CPU = 10,
1: + __SCHED_FEAT_SIS_PROP = 11,
1: + __SCHED_FEAT_WARN_DOUBLE_CLOCK = 12,
1: + __SCHED_FEAT_RT_PUSH_IPI = 13,
1: + __SCHED_FEAT_RT_RUNTIME_SHARE = 14,
1: + __SCHED_FEAT_LB_MIN = 15,
1: + __SCHED_FEAT_ATTACH_AGE_LOAD = 16,
1: + __SCHED_FEAT_WA_IDLE = 17,
1: + __SCHED_FEAT_WA_WEIGHT = 18,
1: + __SCHED_FEAT_WA_BIAS = 19,
1: + __SCHED_FEAT_UTIL_EST = 20,
1: + __SCHED_FEAT_UTIL_EST_FASTUP = 21,
1: + __SCHED_FEAT_NR = 22,
1: +};
1: +
1: +struct migration_arg {
1: + struct task_struct *task;
1: + int dest_cpu;
1: +};
1: +
1: +struct migration_swap_arg {
1: + struct task_struct *src_task;
1: + struct task_struct *dst_task;
1: + int src_cpu;
1: + int dst_cpu;
1: +};
1: +
1: +struct uclamp_request {
1: + s64 percent;
1: + u64 util;
1: + int ret;
1: +};
1: +
1: +struct cfs_schedulable_data {
1: + struct task_group *tg;
1: + u64 period;
1: + u64 quota;
1: +};
1: +
1: +enum {
1: + cpuset = 0,
1: + possible = 1,
1: + fail = 2,
1: +};
1: +
1: +enum s2idle_states {
1: + S2IDLE_STATE_NONE = 0,
1: + S2IDLE_STATE_ENTER = 1,
1: + S2IDLE_STATE_WAKE = 2,
1: +};
1: +
1: +struct idle_timer {
1: + struct hrtimer timer;
1: + int done;
1: +};
1: +
1: +struct numa_group {
1: + refcount_t refcount;
1: + spinlock_t lock;
1: + int nr_tasks;
1: + pid_t gid;
1: + int active_nodes;
1: + struct callback_head rcu;
1: + long unsigned int total_faults;
1: + long unsigned int max_faults_cpu;
1: + long unsigned int *faults_cpu;
1: + long unsigned int faults[0];
1: +};
1: +
1: +struct update_util_data {
1: + void (*func)(struct update_util_data *, u64, unsigned int);
1: +};
1: +
1: +enum numa_topology_type {
1: + NUMA_DIRECT = 0,
1: + NUMA_GLUELESS_MESH = 1,
1: + NUMA_BACKPLANE = 2,
1: +};
1: +
1: +enum numa_faults_stats {
1: + NUMA_MEM = 0,
1: + NUMA_CPU = 1,
1: + NUMA_MEMBUF = 2,
1: + NUMA_CPUBUF = 3,
1: +};
1: +
1: +enum schedutil_type {
1: + FREQUENCY_UTIL = 0,
1: + ENERGY_UTIL = 1,
1: +};
1: +
1: +enum numa_type {
1: + node_has_spare = 0,
1: + node_fully_busy = 1,
1: + node_overloaded = 2,
1: +};
1: +
1: +struct numa_stats {
1: + long unsigned int load;
1: + long unsigned int runnable;
1: + long unsigned int util;
1: + long unsigned int compute_capacity;
1: + unsigned int nr_running;
1: + unsigned int weight;
1: + enum numa_type node_type;
1: + int idle_cpu;
1: +};
1: +
1: +struct task_numa_env {
1: + struct task_struct *p;
1: + int src_cpu;
1: + int src_nid;
1: + int dst_cpu;
1: + int dst_nid;
1: + struct numa_stats src_stats;
1: + struct numa_stats dst_stats;
1: + int imbalance_pct;
1: + int dist;
1: + struct task_struct *best_task;
1: + long int best_imp;
1: + int best_cpu;
1: +};
1: +
1: +enum fbq_type {
1: + regular = 0,
1: + remote = 1,
1: + all = 2,
1: +};
1: +
1: +enum group_type {
1: + group_has_spare = 0,
1: + group_fully_busy = 1,
1: + group_misfit_task = 2,
1: + group_asym_packing = 3,
1: + group_imbalanced = 4,
1: + group_overloaded = 5,
1: +};
1: +
1: +enum migration_type {
1: + migrate_load = 0,
1: + migrate_util = 1,
1: + migrate_task = 2,
1: + migrate_misfit = 3,
1: +};
1: +
1: +struct lb_env {
1: + struct sched_domain *sd;
1: + struct rq *src_rq;
1: + int src_cpu;
1: + int dst_cpu;
1: + struct rq *dst_rq;
1: + struct cpumask *dst_grpmask;
1: + int new_dst_cpu;
1: + enum cpu_idle_type idle;
1: + long int imbalance;
1: + struct cpumask *cpus;
1: + unsigned int flags;
1: + unsigned int loop;
1: + unsigned int loop_break;
1: + unsigned int loop_max;
1: + enum fbq_type fbq_type;
1: + enum migration_type migration_type;
1: + struct list_head tasks;
1: +};
1: +
1: +struct sg_lb_stats {
1: + long unsigned int avg_load;
1: + long unsigned int group_load;
1: + long unsigned int group_capacity;
1: + long unsigned int group_util;
1: + long unsigned int group_runnable;
1: + unsigned int sum_nr_running;
1: + unsigned int sum_h_nr_running;
1: + unsigned int idle_cpus;
1: + unsigned int group_weight;
1: + enum group_type group_type;
1: + unsigned int group_asym_packing;
1: + long unsigned int group_misfit_task_load;
1: + unsigned int nr_numa_running;
1: + unsigned int nr_preferred_running;
1: +};
1: +
1: +struct sd_lb_stats {
1: + struct sched_group *busiest;
1: + struct sched_group *local;
1: + long unsigned int total_load;
1: + long unsigned int total_capacity;
1: + long unsigned int avg_load;
1: + unsigned int prefer_sibling;
1: + struct sg_lb_stats busiest_stat;
1: + struct sg_lb_stats local_stat;
1: +};
1: +
1: +typedef struct rt_rq *rt_rq_iter_t;
1: +
1: +struct wait_bit_key {
1: + void *flags;
1: + int bit_nr;
1: + long unsigned int timeout;
1: +};
1: +
1: +struct wait_bit_queue_entry {
1: + struct wait_bit_key key;
1: + struct wait_queue_entry wq_entry;
1: +};
1: +
1: +typedef int wait_bit_action_f(struct wait_bit_key *, int);
1: +
1: +struct swait_queue {
1: + struct task_struct *task;
1: + struct list_head task_list;
1: +};
1: +
1: +struct sd_flag_debug {
1: + unsigned int meta_flags;
1: + char *name;
1: +};
1: +
1: +struct sched_domain_attr {
1: + int relax_domain_level;
1: +};
1: +
1: +enum cpufreq_table_sorting {
1: + CPUFREQ_TABLE_UNSORTED = 0,
1: + CPUFREQ_TABLE_SORTED_ASCENDING = 1,
1: + CPUFREQ_TABLE_SORTED_DESCENDING = 2,
1: +};
1: +
1: +struct cpufreq_cpuinfo {
1: + unsigned int max_freq;
1: + unsigned int min_freq;
1: + unsigned int transition_latency;
1: +};
1: +
1: +struct clk;
1: +
1: +struct cpufreq_governor;
1: +
1: +struct cpufreq_frequency_table;
1: +
1: +struct cpufreq_stats;
1: +
1: +struct thermal_cooling_device;
1: +
1: +struct cpufreq_policy {
1: + cpumask_var_t cpus;
1: + cpumask_var_t related_cpus;
1: + cpumask_var_t real_cpus;
1: + unsigned int shared_type;
1: + unsigned int cpu;
1: + struct clk *clk;
1: + struct cpufreq_cpuinfo cpuinfo;
1: + unsigned int min;
1: + unsigned int max;
1: + unsigned int cur;
1: + unsigned int restore_freq;
1: + unsigned int suspend_freq;
1: + unsigned int policy;
1: + unsigned int last_policy;
1: + struct cpufreq_governor *governor;
1: + void *governor_data;
1: + char last_governor[16];
1: + struct work_struct update;
1: + struct freq_constraints constraints;
1: + struct freq_qos_request *min_freq_req;
1: + struct freq_qos_request *max_freq_req;
1: + struct cpufreq_frequency_table *freq_table;
1: + enum cpufreq_table_sorting freq_table_sorted;
1: + struct list_head policy_list;
1: + struct kobject kobj;
1: + struct completion kobj_unregister;
1: + struct rw_semaphore rwsem;
1: + bool fast_switch_possible;
1: + bool fast_switch_enabled;
1: + bool strict_target;
1: + unsigned int transition_delay_us;
1: + bool dvfs_possible_from_any_cpu;
1: + unsigned int cached_target_freq;
1: + unsigned int cached_resolved_idx;
1: + bool transition_ongoing;
1: + spinlock_t transition_lock;
1: + wait_queue_head_t transition_wait;
1: + struct task_struct *transition_task;
1: + struct cpufreq_stats *stats;
1: + void *driver_data;
1: + struct thermal_cooling_device *cdev;
1: + struct notifier_block nb_min;
1: + struct notifier_block nb_max;
1: +};
1: +
1: +struct cpufreq_governor {
1: + char name[16];
1: + int (*init)(struct cpufreq_policy *);
1: + void (*exit)(struct cpufreq_policy *);
1: + int (*start)(struct cpufreq_policy *);
1: + void (*stop)(struct cpufreq_policy *);
1: + void (*limits)(struct cpufreq_policy *);
1: + ssize_t (*show_setspeed)(struct cpufreq_policy *, char *);
1: + int (*store_setspeed)(struct cpufreq_policy *, unsigned int);
1: + struct list_head governor_list;
1: + struct module *owner;
1: + u8 flags;
1: +};
1: +
1: +struct cpufreq_frequency_table {
1: + unsigned int flags;
1: + unsigned int driver_data;
1: + unsigned int frequency;
1: +};
1: +
1: +struct s_data {
1: + struct sched_domain **sd;
1: + struct root_domain *rd;
1: +};
1: +
1: +enum s_alloc {
1: + sa_rootdomain = 0,
1: + sa_sd = 1,
1: + sa_sd_storage = 2,
1: + sa_none = 3,
1: +};
1: +
1: +enum cpuacct_stat_index {
1: + CPUACCT_STAT_USER = 0,
1: + CPUACCT_STAT_SYSTEM = 1,
1: + CPUACCT_STAT_NSTATS = 2,
1: +};
1: +
1: +struct cpuacct_usage {
1: + u64 usages[2];
1: +};
1: +
1: +struct cpuacct {
1: + struct cgroup_subsys_state css;
1: + struct cpuacct_usage *cpuusage;
1: + struct kernel_cpustat *cpustat;
1: +};
1: +
1: +struct gov_attr_set {
1: + struct kobject kobj;
1: + struct list_head policy_list;
1: + struct mutex update_lock;
1: + int usage_count;
1: +};
1: +
1: +struct governor_attr {
1: + struct attribute attr;
1: + ssize_t (*show)(struct gov_attr_set *, char *);
1: + ssize_t (*store)(struct gov_attr_set *, const char *, size_t);
1: +};
1: +
1: +struct sugov_tunables {
1: + struct gov_attr_set attr_set;
1: + unsigned int rate_limit_us;
1: +};
1: +
1: +struct sugov_policy {
1: + struct cpufreq_policy *policy;
1: + struct sugov_tunables *tunables;
1: + struct list_head tunables_hook;
1: + raw_spinlock_t update_lock;
1: + u64 last_freq_update_time;
1: + s64 freq_update_delay_ns;
1: + unsigned int next_freq;
1: + unsigned int cached_raw_freq;
1: + struct irq_work irq_work;
1: + struct kthread_work work;
1: + struct mutex work_lock;
1: + struct kthread_worker worker;
1: + struct task_struct *thread;
1: + bool work_in_progress;
1: + bool limits_changed;
1: + bool need_freq_update;
1: +};
1: +
1: +struct sugov_cpu {
1: + struct update_util_data update_util;
1: + struct sugov_policy *sg_policy;
1: + unsigned int cpu;
1: + bool iowait_boost_pending;
1: + unsigned int iowait_boost;
1: + u64 last_update;
1: + long unsigned int bw_dl;
1: + long unsigned int max;
1: + long unsigned int saved_idle_calls;
1: +};
1: +
1: +enum {
1: + MEMBARRIER_FLAG_SYNC_CORE = 1,
1: + MEMBARRIER_FLAG_RSEQ = 2,
1: +};
1: +
1: +enum membarrier_cmd {
1: + MEMBARRIER_CMD_QUERY = 0,
1: + MEMBARRIER_CMD_GLOBAL = 1,
1: + MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2,
1: + MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64,
1: + MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128,
1: + MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256,
1: + MEMBARRIER_CMD_SHARED = 1,
1: +};
1: +
1: +enum membarrier_cmd_flag {
1: + MEMBARRIER_CMD_FLAG_CPU = 1,
1: +};
1: +
1: +enum psi_res {
1: + PSI_IO = 0,
1: + PSI_MEM = 1,
1: + PSI_CPU = 2,
1: + NR_PSI_RESOURCES = 3,
1: +};
1: +
1: +struct psi_window {
1: + u64 size;
1: + u64 start_time;
1: + u64 start_value;
1: + u64 prev_growth;
1: +};
1: +
1: +struct psi_trigger {
1: + enum psi_states state;
1: + u64 threshold;
1: + struct list_head node;
1: + struct psi_group *group;
1: + wait_queue_head_t event_wait;
1: + int event;
1: + struct psi_window win;
1: + u64 last_event_time;
1: + struct kref refcount;
1: +};
1: +
1: +struct ww_acquire_ctx;
1: +
1: +struct ww_mutex {
1: + struct mutex base;
1: + struct ww_acquire_ctx *ctx;
1: +};
1: +
1: +struct ww_acquire_ctx {
1: + struct task_struct *task;
1: + long unsigned int stamp;
1: + unsigned int acquired;
1: + short unsigned int wounded;
1: + short unsigned int is_wait_die;
1: +};
1: +
1: +struct mutex_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + struct ww_acquire_ctx *ww_ctx;
1: +};
1: +
1: +enum mutex_trylock_recursive_enum {
1: + MUTEX_TRYLOCK_FAILED = 0,
1: + MUTEX_TRYLOCK_SUCCESS = 1,
1: + MUTEX_TRYLOCK_RECURSIVE = 2,
1: +};
1: +
1: +struct semaphore_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + bool up;
1: +};
1: +
1: +enum rwsem_waiter_type {
1: + RWSEM_WAITING_FOR_WRITE = 0,
1: + RWSEM_WAITING_FOR_READ = 1,
1: +};
1: +
1: +struct rwsem_waiter {
1: + struct list_head list;
1: + struct task_struct *task;
1: + enum rwsem_waiter_type type;
1: + long unsigned int timeout;
1: + long unsigned int last_rowner;
1: +};
1: +
1: +enum rwsem_wake_type {
1: + RWSEM_WAKE_ANY = 0,
1: + RWSEM_WAKE_READERS = 1,
1: + RWSEM_WAKE_READ_OWNED = 2,
1: +};
1: +
1: +enum writer_wait_state {
1: + WRITER_NOT_FIRST = 0,
1: + WRITER_FIRST = 1,
1: + WRITER_HANDOFF = 2,
1: +};
1: +
1: +enum owner_state {
1: + OWNER_NULL = 1,
1: + OWNER_WRITER = 2,
1: + OWNER_READER = 4,
1: + OWNER_NONSPINNABLE = 8,
1: +};
1: +
1: +struct optimistic_spin_node {
1: + struct optimistic_spin_node *next;
1: + struct optimistic_spin_node *prev;
1: + int locked;
1: + int cpu;
1: +};
1: +
1: +struct hrtimer_sleeper {
1: + struct hrtimer timer;
1: + struct task_struct *task;
1: +};
1: +
1: +struct rt_mutex;
1: +
1: +struct rt_mutex_waiter {
1: + struct rb_node tree_entry;
1: + struct rb_node pi_tree_entry;
1: + struct task_struct *task;
1: + struct rt_mutex *lock;
1: + int prio;
1: + u64 deadline;
1: +};
1: +
1: +struct rt_mutex {
1: + raw_spinlock_t wait_lock;
1: + struct rb_root_cached waiters;
1: + struct task_struct *owner;
1: +};
1: +
1: +enum rtmutex_chainwalk {
1: + RT_MUTEX_MIN_CHAINWALK = 0,
1: + RT_MUTEX_FULL_CHAINWALK = 1,
1: +};
1: +
1: +struct pm_qos_request {
1: + struct plist_node node;
1: + struct pm_qos_constraints *qos;
1: +};
1: +
1: +enum pm_qos_req_action {
1: + PM_QOS_ADD_REQ = 0,
1: + PM_QOS_UPDATE_REQ = 1,
1: + PM_QOS_REMOVE_REQ = 2,
1: +};
1: +
1: +struct miscdevice {
1: + int minor;
1: + const char *name;
1: + const struct file_operations *fops;
1: + struct list_head list;
1: + struct device *parent;
1: + struct device *this_device;
1: + const struct attribute_group **groups;
1: + const char *nodename;
1: + umode_t mode;
1: +};
1: +
1: +enum suspend_stat_step {
1: + SUSPEND_FREEZE = 1,
1: + SUSPEND_PREPARE = 2,
1: + SUSPEND_SUSPEND = 3,
1: + SUSPEND_SUSPEND_LATE = 4,
1: + SUSPEND_SUSPEND_NOIRQ = 5,
1: + SUSPEND_RESUME_NOIRQ = 6,
1: + SUSPEND_RESUME_EARLY = 7,
1: + SUSPEND_RESUME = 8,
1: +};
1: +
1: +struct suspend_stats {
1: + int success;
1: + int fail;
1: + int failed_freeze;
1: + int failed_prepare;
1: + int failed_suspend;
1: + int failed_suspend_late;
1: + int failed_suspend_noirq;
1: + int failed_resume;
1: + int failed_resume_early;
1: + int failed_resume_noirq;
1: + int last_failed_dev;
1: + char failed_devs[80];
1: + int last_failed_errno;
1: + int errno[2];
1: + int last_failed_step;
1: + enum suspend_stat_step failed_steps[2];
1: +};
1: +
1: +enum {
1: + TEST_NONE = 0,
1: + TEST_CORE = 1,
1: + TEST_CPUS = 2,
1: + TEST_PLATFORM = 3,
1: + TEST_DEVICES = 4,
1: + TEST_FREEZER = 5,
1: + __TEST_AFTER_LAST = 6,
1: +};
1: +
1: +struct pm_vt_switch {
1: + struct list_head head;
1: + struct device *dev;
1: + bool required;
1: +};
1: +
1: +struct platform_s2idle_ops {
1: + int (*begin)();
1: + int (*prepare)();
1: + int (*prepare_late)();
1: + bool (*wake)();
1: + void (*restore_early)();
1: + void (*restore)();
1: + void (*end)();
1: +};
1: +
1: +struct platform_hibernation_ops {
1: + int (*begin)(pm_message_t);
1: + void (*end)();
1: + int (*pre_snapshot)();
1: + void (*finish)();
1: + int (*prepare)();
1: + int (*enter)();
1: + void (*leave)();
1: + int (*pre_restore)();
1: + void (*restore_cleanup)();
1: + void (*recover)();
1: +};
1: +
1: +enum {
1: + HIBERNATION_INVALID = 0,
1: + HIBERNATION_PLATFORM = 1,
1: + HIBERNATION_SHUTDOWN = 2,
1: + HIBERNATION_REBOOT = 3,
1: + HIBERNATION_SUSPEND = 4,
1: + HIBERNATION_TEST_RESUME = 5,
1: + __HIBERNATION_AFTER_LAST = 6,
1: +};
1: +
1: +struct pbe {
1: + void *address;
1: + void *orig_address;
1: + struct pbe *next;
1: +};
1: +
1: +struct swsusp_info {
1: + struct new_utsname uts;
1: + u32 version_code;
1: + long unsigned int num_physpages;
1: + int cpus;
1: + long unsigned int image_pages;
1: + long unsigned int pages;
1: + long unsigned int size;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct snapshot_handle {
1: + unsigned int cur;
1: + void *buffer;
1: + int sync_read;
1: +};
1: +
1: +struct linked_page {
1: + struct linked_page *next;
1: + char data[65528];
1: +};
1: +
1: +struct chain_allocator {
1: + struct linked_page *chain;
1: + unsigned int used_space;
1: + gfp_t gfp_mask;
1: + int safe_needed;
1: +};
1: +
1: +struct rtree_node {
1: + struct list_head list;
1: + long unsigned int *data;
1: +};
1: +
1: +struct mem_zone_bm_rtree {
1: + struct list_head list;
1: + struct list_head nodes;
1: + struct list_head leaves;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + struct rtree_node *rtree;
1: + int levels;
1: + unsigned int blocks;
1: +};
1: +
1: +struct bm_position {
1: + struct mem_zone_bm_rtree *zone;
1: + struct rtree_node *node;
1: + long unsigned int node_pfn;
1: + int node_bit;
1: +};
1: +
1: +struct memory_bitmap {
1: + struct list_head zones;
1: + struct linked_page *p_list;
1: + struct bm_position cur;
1: +};
1: +
1: +struct mem_extent {
1: + struct list_head hook;
1: + long unsigned int start;
1: + long unsigned int end;
1: +};
1: +
1: +struct nosave_region {
1: + struct list_head list;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int val;
1: +} swp_entry_t;
1: +
1: +enum {
1: + BIO_NO_PAGE_REF = 0,
1: + BIO_CLONED = 1,
1: + BIO_BOUNCED = 2,
1: + BIO_WORKINGSET = 3,
1: + BIO_QUIET = 4,
1: + BIO_CHAIN = 5,
1: + BIO_REFFED = 6,
1: + BIO_THROTTLED = 7,
1: + BIO_TRACE_COMPLETION = 8,
1: + BIO_CGROUP_ACCT = 9,
1: + BIO_TRACKED = 10,
1: + BIO_FLAG_LAST = 11,
1: +};
1: +
1: +enum req_opf {
1: + REQ_OP_READ = 0,
1: + REQ_OP_WRITE = 1,
1: + REQ_OP_FLUSH = 2,
1: + REQ_OP_DISCARD = 3,
1: + REQ_OP_SECURE_ERASE = 5,
1: + REQ_OP_WRITE_SAME = 7,
1: + REQ_OP_WRITE_ZEROES = 9,
1: + REQ_OP_ZONE_OPEN = 10,
1: + REQ_OP_ZONE_CLOSE = 11,
1: + REQ_OP_ZONE_FINISH = 12,
1: + REQ_OP_ZONE_APPEND = 13,
1: + REQ_OP_ZONE_RESET = 15,
1: + REQ_OP_ZONE_RESET_ALL = 17,
1: + REQ_OP_SCSI_IN = 32,
1: + REQ_OP_SCSI_OUT = 33,
1: + REQ_OP_DRV_IN = 34,
1: + REQ_OP_DRV_OUT = 35,
1: + REQ_OP_LAST = 36,
1: +};
1: +
1: +enum req_flag_bits {
1: + __REQ_FAILFAST_DEV = 8,
1: + __REQ_FAILFAST_TRANSPORT = 9,
1: + __REQ_FAILFAST_DRIVER = 10,
1: + __REQ_SYNC = 11,
1: + __REQ_META = 12,
1: + __REQ_PRIO = 13,
1: + __REQ_NOMERGE = 14,
1: + __REQ_IDLE = 15,
1: + __REQ_INTEGRITY = 16,
1: + __REQ_FUA = 17,
1: + __REQ_PREFLUSH = 18,
1: + __REQ_RAHEAD = 19,
1: + __REQ_BACKGROUND = 20,
1: + __REQ_NOWAIT = 21,
1: + __REQ_CGROUP_PUNT = 22,
1: + __REQ_NOUNMAP = 23,
1: + __REQ_HIPRI = 24,
1: + __REQ_DRV = 25,
1: + __REQ_SWAP = 26,
1: + __REQ_NR_BITS = 27,
1: +};
1: +
1: +struct swap_map_page {
1: + sector_t entries[8191];
1: + sector_t next_swap;
1: +};
1: +
1: +struct swap_map_page_list {
1: + struct swap_map_page *map;
1: + struct swap_map_page_list *next;
1: +};
1: +
1: +struct swap_map_handle {
1: + struct swap_map_page *cur;
1: + struct swap_map_page_list *maps;
1: + sector_t cur_swap;
1: + sector_t first_sector;
1: + unsigned int k;
1: + long unsigned int reqd_free_pages;
1: + u32 crc32;
1: +};
1: +
1: +struct swsusp_header {
1: + char reserved[65500];
1: + u32 crc32;
1: + sector_t image;
1: + unsigned int flags;
1: + char orig_sig[10];
1: + char sig[10];
1: +};
1: +
1: +struct swsusp_extent {
1: + struct rb_node node;
1: + long unsigned int start;
1: + long unsigned int end;
1: +};
1: +
1: +struct hib_bio_batch {
1: + atomic_t count;
1: + wait_queue_head_t wait;
1: + blk_status_t error;
1: + struct blk_plug plug;
1: +};
1: +
1: +struct crc_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + unsigned int run_threads;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + u32 *crc32;
1: + size_t *unc_len[3];
1: + unsigned char *unc[3];
1: +};
1: +
1: +struct cmp_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[2097152];
1: + unsigned char cmp[2293760];
1: + unsigned char wrk[16384];
1: +};
1: +
1: +struct dec_data {
1: + struct task_struct *thr;
1: + atomic_t ready;
1: + atomic_t stop;
1: + int ret;
1: + wait_queue_head_t go;
1: + wait_queue_head_t done;
1: + size_t unc_len;
1: + size_t cmp_len;
1: + unsigned char unc[2097152];
1: + unsigned char cmp[2293760];
1: +};
1: +
1: +typedef s64 compat_loff_t;
1: +
1: +struct resume_swap_area {
1: + __kernel_loff_t offset;
1: + __u32 dev;
1: +} __attribute__((packed));
1: +
1: +struct snapshot_data {
1: + struct snapshot_handle handle;
1: + int swap;
1: + int mode;
1: + bool frozen;
1: + bool ready;
1: + bool platform_support;
1: + bool free_bitmaps;
1: + dev_t dev;
1: +};
1: +
1: +struct compat_resume_swap_area {
1: + compat_loff_t offset;
1: + u32 dev;
1: +} __attribute__((packed));
1: +
1: +struct em_data_callback {
1: + int (*active_power)(long unsigned int *, long unsigned int *, struct device *);
1: +};
1: +
1: +struct dev_printk_info {
1: + char subsystem[16];
1: + char device[48];
1: +};
1: +
1: +struct trace_event_raw_console {
1: + struct trace_entry ent;
1: + u32 __data_loc_msg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_console {
1: + u32 msg;
1: +};
1: +
1: +typedef void (*btf_trace_console)(void *, const char *, size_t);
1: +
1: +struct printk_info {
1: + u64 seq;
1: + u64 ts_nsec;
1: + u16 text_len;
1: + u8 facility;
1: + u8 flags: 5;
1: + u8 level: 3;
1: + u32 caller_id;
1: + struct dev_printk_info dev_info;
1: +};
1: +
1: +struct printk_record {
1: + struct printk_info *info;
1: + char *text_buf;
1: + unsigned int text_buf_size;
1: +};
1: +
1: +struct prb_data_blk_lpos {
1: + long unsigned int begin;
1: + long unsigned int next;
1: +};
1: +
1: +struct prb_desc {
1: + atomic_long_t state_var;
1: + struct prb_data_blk_lpos text_blk_lpos;
1: +};
1: +
1: +struct prb_data_ring {
1: + unsigned int size_bits;
1: + char *data;
1: + atomic_long_t head_lpos;
1: + atomic_long_t tail_lpos;
1: +};
1: +
1: +struct prb_desc_ring {
1: + unsigned int count_bits;
1: + struct prb_desc *descs;
1: + struct printk_info *infos;
1: + atomic_long_t head_id;
1: + atomic_long_t tail_id;
1: +};
1: +
1: +struct printk_ringbuffer {
1: + struct prb_desc_ring desc_ring;
1: + struct prb_data_ring text_data_ring;
1: + atomic_long_t fail;
1: +};
1: +
1: +struct prb_reserved_entry {
1: + struct printk_ringbuffer *rb;
1: + long unsigned int irqflags;
1: + long unsigned int id;
1: + unsigned int text_space;
1: +};
1: +
1: +enum desc_state {
1: + desc_miss = 4294967295,
1: + desc_reserved = 0,
1: + desc_committed = 1,
1: + desc_finalized = 2,
1: + desc_reusable = 3,
1: +};
1: +
1: +struct console_cmdline {
1: + char name[16];
1: + int index;
1: + bool user_specified;
1: + char *options;
1: + char *brl_options;
1: +};
1: +
1: +enum devkmsg_log_bits {
1: + __DEVKMSG_LOG_BIT_ON = 0,
1: + __DEVKMSG_LOG_BIT_OFF = 1,
1: + __DEVKMSG_LOG_BIT_LOCK = 2,
1: +};
1: +
1: +enum devkmsg_log_masks {
1: + DEVKMSG_LOG_MASK_ON = 1,
1: + DEVKMSG_LOG_MASK_OFF = 2,
1: + DEVKMSG_LOG_MASK_LOCK = 4,
1: +};
1: +
1: +enum con_msg_format_flags {
1: + MSG_FORMAT_DEFAULT = 0,
1: + MSG_FORMAT_SYSLOG = 1,
1: +};
1: +
1: +enum log_flags {
1: + LOG_NEWLINE = 2,
1: + LOG_CONT = 8,
1: +};
1: +
1: +struct devkmsg_user {
1: + u64 seq;
1: + struct ratelimit_state rs;
1: + struct mutex lock;
1: + char buf[8192];
1: + struct printk_info info;
1: + char text_buf[8192];
1: + struct printk_record record;
1: +};
1: +
1: +struct printk_safe_seq_buf {
1: + atomic_t len;
1: + atomic_t message_lost;
1: + struct irq_work work;
1: + unsigned char buffer[8160];
1: +};
1: +
1: +struct prb_data_block {
1: + long unsigned int id;
1: + char data[0];
1: +};
1: +
1: +enum {
1: + IRQS_AUTODETECT = 1,
1: + IRQS_SPURIOUS_DISABLED = 2,
1: + IRQS_POLL_INPROGRESS = 8,
1: + IRQS_ONESHOT = 32,
1: + IRQS_REPLAY = 64,
1: + IRQS_WAITING = 128,
1: + IRQS_PENDING = 512,
1: + IRQS_SUSPENDED = 2048,
1: + IRQS_TIMINGS = 4096,
1: + IRQS_NMI = 8192,
1: +};
1: +
1: +enum {
1: + _IRQ_DEFAULT_INIT_FLAGS = 2048,
1: + _IRQ_PER_CPU = 512,
1: + _IRQ_LEVEL = 256,
1: + _IRQ_NOPROBE = 1024,
1: + _IRQ_NOREQUEST = 2048,
1: + _IRQ_NOTHREAD = 65536,
1: + _IRQ_NOAUTOEN = 4096,
1: + _IRQ_MOVE_PCNTXT = 16384,
1: + _IRQ_NO_BALANCING = 8192,
1: + _IRQ_NESTED_THREAD = 32768,
1: + _IRQ_PER_CPU_DEVID = 131072,
1: + _IRQ_IS_POLLED = 262144,
1: + _IRQ_DISABLE_UNLAZY = 524288,
1: + _IRQ_HIDDEN = 1048576,
1: + _IRQF_MODIFY_MASK = 2096911,
1: +};
1: +
1: +enum {
1: + IRQTF_RUNTHREAD = 0,
1: + IRQTF_WARNED = 1,
1: + IRQTF_AFFINITY = 2,
1: + IRQTF_FORCED_THREAD = 3,
1: +};
1: +
1: +enum {
1: + IRQC_IS_HARDIRQ = 0,
1: + IRQC_IS_NESTED = 1,
1: +};
1: +
1: +enum {
1: + IRQ_STARTUP_NORMAL = 0,
1: + IRQ_STARTUP_MANAGED = 1,
1: + IRQ_STARTUP_ABORT = 2,
1: +};
1: +
1: +struct irq_devres {
1: + unsigned int irq;
1: + void *dev_id;
1: +};
1: +
1: +struct irq_desc_devres {
1: + unsigned int from;
1: + unsigned int cnt;
1: +};
1: +
1: +enum {
1: + IRQ_DOMAIN_FLAG_HIERARCHY = 1,
1: + IRQ_DOMAIN_NAME_ALLOCATED = 2,
1: + IRQ_DOMAIN_FLAG_IPI_PER_CPU = 4,
1: + IRQ_DOMAIN_FLAG_IPI_SINGLE = 8,
1: + IRQ_DOMAIN_FLAG_MSI = 16,
1: + IRQ_DOMAIN_FLAG_MSI_REMAP = 32,
1: + IRQ_DOMAIN_MSI_NOMASK_QUIRK = 64,
1: + IRQ_DOMAIN_FLAG_NONCORE = 65536,
1: +};
1: +
1: +enum {
1: + IRQCHIP_FWNODE_REAL = 0,
1: + IRQCHIP_FWNODE_NAMED = 1,
1: + IRQCHIP_FWNODE_NAMED_ID = 2,
1: +};
1: +
1: +struct irqchip_fwid {
1: + struct fwnode_handle fwnode;
1: + unsigned int type;
1: + char *name;
1: + phys_addr_t *pa;
1: +};
1: +
1: +enum {
1: + AFFINITY = 0,
1: + AFFINITY_LIST = 1,
1: + EFFECTIVE = 2,
1: + EFFECTIVE_LIST = 3,
1: +};
1: +
1: +struct msi_alloc_info {
1: + struct msi_desc *desc;
1: + irq_hw_number_t hwirq;
1: + union {
1: + long unsigned int ul;
1: + void *ptr;
1: + } scratchpad[2];
1: +};
1: +
1: +typedef struct msi_alloc_info msi_alloc_info_t;
1: +
1: +struct msi_domain_info;
1: +
1: +struct msi_domain_ops {
1: + irq_hw_number_t (*get_hwirq)(struct msi_domain_info *, msi_alloc_info_t *);
1: + int (*msi_init)(struct irq_domain *, struct msi_domain_info *, unsigned int, irq_hw_number_t, msi_alloc_info_t *);
1: + void (*msi_free)(struct irq_domain *, struct msi_domain_info *, unsigned int);
1: + int (*msi_check)(struct irq_domain *, struct msi_domain_info *, struct device *);
1: + int (*msi_prepare)(struct irq_domain *, struct device *, int, msi_alloc_info_t *);
1: + void (*msi_finish)(msi_alloc_info_t *, int);
1: + void (*set_desc)(msi_alloc_info_t *, struct msi_desc *);
1: + int (*handle_error)(struct irq_domain *, struct msi_desc *, int);
1: + int (*domain_alloc_irqs)(struct irq_domain *, struct device *, int);
1: + void (*domain_free_irqs)(struct irq_domain *, struct device *);
1: +};
1: +
1: +struct msi_domain_info {
1: + u32 flags;
1: + struct msi_domain_ops *ops;
1: + struct irq_chip *chip;
1: + void *chip_data;
1: + irq_flow_handler_t handler;
1: + void *handler_data;
1: + const char *handler_name;
1: + void *data;
1: +};
1: +
1: +enum {
1: + MSI_FLAG_USE_DEF_DOM_OPS = 1,
1: + MSI_FLAG_USE_DEF_CHIP_OPS = 2,
1: + MSI_FLAG_MULTI_PCI_MSI = 4,
1: + MSI_FLAG_PCI_MSIX = 8,
1: + MSI_FLAG_ACTIVATE_EARLY = 16,
1: + MSI_FLAG_MUST_REACTIVATE = 32,
1: + MSI_FLAG_LEVEL_CAPABLE = 64,
1: +};
1: +
1: +struct irq_affinity {
1: + unsigned int pre_vectors;
1: + unsigned int post_vectors;
1: + unsigned int nr_sets;
1: + unsigned int set_size[4];
1: + void (*calc_sets)(struct irq_affinity *, unsigned int);
1: + void *priv;
1: +};
1: +
1: +struct node_vectors {
1: + unsigned int id;
1: + union {
1: + unsigned int nvectors;
1: + unsigned int ncpus;
1: + };
1: +};
1: +
1: +typedef void (*call_rcu_func_t)(struct callback_head *, rcu_callback_t);
1: +
1: +struct rcu_synchronize {
1: + struct callback_head head;
1: + struct completion completion;
1: +};
1: +
1: +struct trace_event_raw_rcu_utilization {
1: + struct trace_entry ent;
1: + const char *s;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rcu_utilization {};
1: +
1: +typedef void (*btf_trace_rcu_utilization)(void *, const char *);
1: +
1: +struct rcu_tasks;
1: +
1: +typedef void (*rcu_tasks_gp_func_t)(struct rcu_tasks *);
1: +
1: +typedef void (*pregp_func_t)();
1: +
1: +typedef void (*pertask_func_t)(struct task_struct *, struct list_head *);
1: +
1: +typedef void (*postscan_func_t)(struct list_head *);
1: +
1: +typedef void (*holdouts_func_t)(struct list_head *, bool, bool *);
1: +
1: +typedef void (*postgp_func_t)(struct rcu_tasks *);
1: +
1: +struct rcu_tasks {
1: + struct callback_head *cbs_head;
1: + struct callback_head **cbs_tail;
1: + struct wait_queue_head cbs_wq;
1: + raw_spinlock_t cbs_lock;
1: + int gp_state;
1: + int gp_sleep;
1: + int init_fract;
1: + long unsigned int gp_jiffies;
1: + long unsigned int gp_start;
1: + long unsigned int n_gps;
1: + long unsigned int n_ipis;
1: + long unsigned int n_ipis_fails;
1: + struct task_struct *kthread_ptr;
1: + rcu_tasks_gp_func_t gp_func;
1: + pregp_func_t pregp_func;
1: + pertask_func_t pertask_func;
1: + postscan_func_t postscan_func;
1: + holdouts_func_t holdouts_func;
1: + postgp_func_t postgp_func;
1: + call_rcu_func_t call_func;
1: + char *name;
1: + char *kname;
1: +};
1: +
1: +enum {
1: + GP_IDLE = 0,
1: + GP_ENTER = 1,
1: + GP_PASSED = 2,
1: + GP_EXIT = 3,
1: + GP_REPLAY = 4,
1: +};
1: +
1: +struct rcu_cblist {
1: + struct callback_head *head;
1: + struct callback_head **tail;
1: + long int len;
1: +};
1: +
1: +enum rcutorture_type {
1: + RCU_FLAVOR = 0,
1: + RCU_TASKS_FLAVOR = 1,
1: + RCU_TASKS_RUDE_FLAVOR = 2,
1: + RCU_TASKS_TRACING_FLAVOR = 3,
1: + RCU_TRIVIAL_FLAVOR = 4,
1: + SRCU_FLAVOR = 5,
1: + INVALID_RCU_FLAVOR = 6,
1: +};
1: +
1: +enum tick_dep_bits {
1: + TICK_DEP_BIT_POSIX_TIMER = 0,
1: + TICK_DEP_BIT_PERF_EVENTS = 1,
1: + TICK_DEP_BIT_SCHED = 2,
1: + TICK_DEP_BIT_CLOCK_UNSTABLE = 3,
1: + TICK_DEP_BIT_RCU = 4,
1: + TICK_DEP_BIT_RCU_EXP = 5,
1: +};
1: +
1: +struct rcu_exp_work {
1: + long unsigned int rew_s;
1: + struct work_struct rew_work;
1: +};
1: +
1: +struct rcu_node {
1: + raw_spinlock_t lock;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + long unsigned int completedqs;
1: + long unsigned int qsmask;
1: + long unsigned int rcu_gp_init_mask;
1: + long unsigned int qsmaskinit;
1: + long unsigned int qsmaskinitnext;
1: + long unsigned int expmask;
1: + long unsigned int expmaskinit;
1: + long unsigned int expmaskinitnext;
1: + long unsigned int cbovldmask;
1: + long unsigned int ffmask;
1: + long unsigned int grpmask;
1: + int grplo;
1: + int grphi;
1: + u8 grpnum;
1: + u8 level;
1: + bool wait_blkd_tasks;
1: + struct rcu_node *parent;
1: + struct list_head blkd_tasks;
1: + struct list_head *gp_tasks;
1: + struct list_head *exp_tasks;
1: + struct list_head *boost_tasks;
1: + struct rt_mutex boost_mtx;
1: + long unsigned int boost_time;
1: + struct task_struct *boost_kthread_task;
1: + unsigned int boost_kthread_status;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + raw_spinlock_t fqslock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t exp_lock;
1: + long unsigned int exp_seq_rq;
1: + wait_queue_head_t exp_wq[4];
1: + struct rcu_exp_work rew;
1: + bool exp_need_flush;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +union rcu_noqs {
1: + struct {
1: + u8 norm;
1: + u8 exp;
1: + } b;
1: + u16 s;
1: +};
1: +
1: +struct rcu_data {
1: + long unsigned int gp_seq;
1: + long unsigned int gp_seq_needed;
1: + union rcu_noqs cpu_no_qs;
1: + bool core_needs_qs;
1: + bool beenonline;
1: + bool gpwrap;
1: + bool exp_deferred_qs;
1: + bool cpu_started;
1: + struct rcu_node *mynode;
1: + long unsigned int grpmask;
1: + long unsigned int ticks_this_gp;
1: + struct irq_work defer_qs_iw;
1: + bool defer_qs_iw_pending;
1: + struct work_struct strict_work;
1: + struct rcu_segcblist cblist;
1: + long int qlen_last_fqs_check;
1: + long unsigned int n_cbs_invoked;
1: + long unsigned int n_force_qs_snap;
1: + long int blimit;
1: + int dynticks_snap;
1: + long int dynticks_nesting;
1: + long int dynticks_nmi_nesting;
1: + atomic_t dynticks;
1: + bool rcu_need_heavy_qs;
1: + bool rcu_urgent_qs;
1: + bool rcu_forced_tick;
1: + bool rcu_forced_tick_exp;
1: + struct callback_head barrier_head;
1: + int exp_dynticks_snap;
1: + struct task_struct *rcu_cpu_kthread_task;
1: + unsigned int rcu_cpu_kthread_status;
1: + char rcu_cpu_has_work;
1: + unsigned int softirq_snap;
1: + struct irq_work rcu_iw;
1: + bool rcu_iw_pending;
1: + long unsigned int rcu_iw_gp_seq;
1: + long unsigned int rcu_ofl_gp_seq;
1: + short int rcu_ofl_gp_flags;
1: + long unsigned int rcu_onl_gp_seq;
1: + short int rcu_onl_gp_flags;
1: + long unsigned int last_fqs_resched;
1: + int cpu;
1: +};
1: +
1: +struct rcu_state {
1: + struct rcu_node node[131];
1: + struct rcu_node *level[4];
1: + int ncpus;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u8 boost;
1: + long unsigned int gp_seq;
1: + long unsigned int gp_max;
1: + struct task_struct *gp_kthread;
1: + struct swait_queue_head gp_wq;
1: + short int gp_flags;
1: + short int gp_state;
1: + long unsigned int gp_wake_time;
1: + long unsigned int gp_wake_seq;
1: + struct mutex barrier_mutex;
1: + atomic_t barrier_cpu_count;
1: + struct completion barrier_completion;
1: + long unsigned int barrier_sequence;
1: + struct mutex exp_mutex;
1: + struct mutex exp_wake_mutex;
1: + long unsigned int expedited_sequence;
1: + atomic_t expedited_need_qs;
1: + struct swait_queue_head expedited_wq;
1: + int ncpus_snap;
1: + u8 cbovld;
1: + u8 cbovldnext;
1: + long unsigned int jiffies_force_qs;
1: + long unsigned int jiffies_kick_kthreads;
1: + long unsigned int n_force_qs;
1: + long unsigned int gp_start;
1: + long unsigned int gp_end;
1: + long unsigned int gp_activity;
1: + long unsigned int gp_req_activity;
1: + long unsigned int jiffies_stall;
1: + long unsigned int jiffies_resched;
1: + long unsigned int n_force_qs_gpstart;
1: + const char *name;
1: + char abbr;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + raw_spinlock_t ofl_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kvfree_rcu_bulk_data {
1: + long unsigned int nr_records;
1: + struct kvfree_rcu_bulk_data *next;
1: + void *records[0];
1: +};
1: +
1: +struct kfree_rcu_cpu;
1: +
1: +struct kfree_rcu_cpu_work {
1: + struct rcu_work rcu_work;
1: + struct callback_head *head_free;
1: + struct kvfree_rcu_bulk_data *bkvhead_free[2];
1: + struct kfree_rcu_cpu *krcp;
1: +};
1: +
1: +struct kfree_rcu_cpu {
1: + struct callback_head *head;
1: + struct kvfree_rcu_bulk_data *bkvhead[2];
1: + struct kfree_rcu_cpu_work krw_arr[2];
1: + raw_spinlock_t lock;
1: + struct delayed_work monitor_work;
1: + bool monitor_todo;
1: + bool initialized;
1: + int count;
1: + struct work_struct page_cache_work;
1: + atomic_t work_in_progress;
1: + struct hrtimer hrtimer;
1: + struct llist_head bkvcache;
1: + int nr_bkv_objs;
1: +};
1: +
1: +enum dma_sync_target {
1: + SYNC_FOR_CPU = 0,
1: + SYNC_FOR_DEVICE = 1,
1: +};
1: +
1: +struct dma_devres {
1: + size_t size;
1: + void *vaddr;
1: + dma_addr_t dma_handle;
1: + long unsigned int attrs;
1: +};
1: +
1: +struct dma_coherent_mem {
1: + void *virt_base;
1: + dma_addr_t device_base;
1: + long unsigned int pfn_base;
1: + int size;
1: + long unsigned int *bitmap;
1: + spinlock_t spinlock;
1: + bool use_dev_dma_pfn_offset;
1: +};
1: +
1: +enum {
1: + MEMREMAP_WB = 1,
1: + MEMREMAP_WT = 2,
1: + MEMREMAP_WC = 4,
1: + MEMREMAP_ENC = 8,
1: + MEMREMAP_DEC = 16,
1: +};
1: +
1: +struct reserved_mem_ops;
1: +
1: +struct reserved_mem {
1: + const char *name;
1: + long unsigned int fdt_node;
1: + long unsigned int phandle;
1: + const struct reserved_mem_ops *ops;
1: + phys_addr_t base;
1: + phys_addr_t size;
1: + void *priv;
1: +};
1: +
1: +struct reserved_mem_ops {
1: + int (*device_init)(struct reserved_mem *, struct device *);
1: + void (*device_release)(struct reserved_mem *, struct device *);
1: +};
1: +
1: +typedef int (*reservedmem_of_init_fn)(struct reserved_mem *);
1: +
1: +struct trace_event_raw_swiotlb_bounced {
1: + struct trace_entry ent;
1: + u32 __data_loc_dev_name;
1: + u64 dma_mask;
1: + dma_addr_t dev_addr;
1: + size_t size;
1: + enum swiotlb_force swiotlb_force;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_swiotlb_bounced {
1: + u32 dev_name;
1: +};
1: +
1: +typedef void (*btf_trace_swiotlb_bounced)(void *, struct device *, dma_addr_t, size_t, enum swiotlb_force);
1: +
1: +enum kcmp_type {
1: + KCMP_FILE = 0,
1: + KCMP_VM = 1,
1: + KCMP_FILES = 2,
1: + KCMP_FS = 3,
1: + KCMP_SIGHAND = 4,
1: + KCMP_IO = 5,
1: + KCMP_SYSVSEM = 6,
1: + KCMP_EPOLL_TFD = 7,
1: + KCMP_TYPES = 8,
1: +};
1: +
1: +struct kcmp_epoll_slot {
1: + __u32 efd;
1: + __u32 tfd;
1: + __u32 toff;
1: +};
1: +
1: +enum profile_type {
1: + PROFILE_TASK_EXIT = 0,
1: + PROFILE_MUNMAP = 1,
1: +};
1: +
1: +struct profile_hit {
1: + u32 pc;
1: + u32 hits;
1: +};
1: +
1: +typedef __kernel_long_t __kernel_suseconds_t;
1: +
1: +typedef __kernel_long_t __kernel_old_time_t;
1: +
1: +typedef __kernel_suseconds_t suseconds_t;
1: +
1: +typedef __u64 timeu64_t;
1: +
1: +struct __kernel_itimerspec {
1: + struct __kernel_timespec it_interval;
1: + struct __kernel_timespec it_value;
1: +};
1: +
1: +struct itimerspec64 {
1: + struct timespec64 it_interval;
1: + struct timespec64 it_value;
1: +};
1: +
1: +struct old_itimerspec32 {
1: + struct old_timespec32 it_interval;
1: + struct old_timespec32 it_value;
1: +};
1: +
1: +struct old_timex32 {
1: + u32 modes;
1: + s32 offset;
1: + s32 freq;
1: + s32 maxerror;
1: + s32 esterror;
1: + s32 status;
1: + s32 constant;
1: + s32 precision;
1: + s32 tolerance;
1: + struct old_timeval32 time;
1: + s32 tick;
1: + s32 ppsfreq;
1: + s32 jitter;
1: + s32 shift;
1: + s32 stabil;
1: + s32 jitcnt;
1: + s32 calcnt;
1: + s32 errcnt;
1: + s32 stbcnt;
1: + s32 tai;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct __kernel_timex_timeval {
1: + __kernel_time64_t tv_sec;
1: + long long int tv_usec;
1: +};
1: +
1: +struct __kernel_timex {
1: + unsigned int modes;
1: + long long int offset;
1: + long long int freq;
1: + long long int maxerror;
1: + long long int esterror;
1: + int status;
1: + long long int constant;
1: + long long int precision;
1: + long long int tolerance;
1: + struct __kernel_timex_timeval time;
1: + long long int tick;
1: + long long int ppsfreq;
1: + long long int jitter;
1: + int shift;
1: + long long int stabil;
1: + long long int jitcnt;
1: + long long int calcnt;
1: + long long int errcnt;
1: + long long int stbcnt;
1: + int tai;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct trace_event_raw_timer_class {
1: + struct trace_entry ent;
1: + void *timer;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_timer_start {
1: + struct trace_entry ent;
1: + void *timer;
1: + void *function;
1: + long unsigned int expires;
1: + long unsigned int now;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_timer_expire_entry {
1: + struct trace_entry ent;
1: + void *timer;
1: + long unsigned int now;
1: + void *function;
1: + long unsigned int baseclk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_init {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + clockid_t clockid;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_start {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + void *function;
1: + s64 expires;
1: + s64 softexpires;
1: + enum hrtimer_mode mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_expire_entry {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + s64 now;
1: + void *function;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_hrtimer_class {
1: + struct trace_entry ent;
1: + void *hrtimer;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_itimer_state {
1: + struct trace_entry ent;
1: + int which;
1: + long long unsigned int expires;
1: + long int value_sec;
1: + long int value_nsec;
1: + long int interval_sec;
1: + long int interval_nsec;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_itimer_expire {
1: + struct trace_entry ent;
1: + int which;
1: + pid_t pid;
1: + long long unsigned int now;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_tick_stop {
1: + struct trace_entry ent;
1: + int success;
1: + int dependency;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_timer_class {};
1: +
1: +struct trace_event_data_offsets_timer_start {};
1: +
1: +struct trace_event_data_offsets_timer_expire_entry {};
1: +
1: +struct trace_event_data_offsets_hrtimer_init {};
1: +
1: +struct trace_event_data_offsets_hrtimer_start {};
1: +
1: +struct trace_event_data_offsets_hrtimer_expire_entry {};
1: +
1: +struct trace_event_data_offsets_hrtimer_class {};
1: +
1: +struct trace_event_data_offsets_itimer_state {};
1: +
1: +struct trace_event_data_offsets_itimer_expire {};
1: +
1: +struct trace_event_data_offsets_tick_stop {};
1: +
1: +typedef void (*btf_trace_timer_init)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_timer_start)(void *, struct timer_list *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_timer_expire_entry)(void *, struct timer_list *, long unsigned int);
1: +
1: +typedef void (*btf_trace_timer_expire_exit)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_timer_cancel)(void *, struct timer_list *);
1: +
1: +typedef void (*btf_trace_hrtimer_init)(void *, struct hrtimer *, clockid_t, enum hrtimer_mode);
1: +
1: +typedef void (*btf_trace_hrtimer_start)(void *, struct hrtimer *, enum hrtimer_mode);
1: +
1: +typedef void (*btf_trace_hrtimer_expire_entry)(void *, struct hrtimer *, ktime_t *);
1: +
1: +typedef void (*btf_trace_hrtimer_expire_exit)(void *, struct hrtimer *);
1: +
1: +typedef void (*btf_trace_hrtimer_cancel)(void *, struct hrtimer *);
1: +
1: +typedef void (*btf_trace_itimer_state)(void *, int, const struct itimerspec64 * const, long long unsigned int);
1: +
1: +typedef void (*btf_trace_itimer_expire)(void *, int, struct pid *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_tick_stop)(void *, int, int);
1: +
1: +struct timer_base {
1: + raw_spinlock_t lock;
1: + struct timer_list *running_timer;
1: + long unsigned int clk;
1: + long unsigned int next_expiry;
1: + unsigned int cpu;
1: + bool next_expiry_recalc;
1: + bool is_idle;
1: + long unsigned int pending_map[9];
1: + struct hlist_head vectors[576];
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct process_timer {
1: + struct timer_list timer;
1: + struct task_struct *task;
1: +};
1: +
1: +enum tick_device_mode {
1: + TICKDEV_MODE_PERIODIC = 0,
1: + TICKDEV_MODE_ONESHOT = 1,
1: +};
1: +
1: +struct tick_device {
1: + struct clock_event_device *evtdev;
1: + enum tick_device_mode mode;
1: +};
1: +
1: +struct ktime_timestamps {
1: + u64 mono;
1: + u64 boot;
1: + u64 real;
1: +};
1: +
1: +struct system_time_snapshot {
1: + u64 cycles;
1: + ktime_t real;
1: + ktime_t raw;
1: + unsigned int clock_was_set_seq;
1: + u8 cs_was_changed_seq;
1: +};
1: +
1: +struct system_device_crosststamp {
1: + ktime_t device;
1: + ktime_t sys_realtime;
1: + ktime_t sys_monoraw;
1: +};
1: +
1: +struct system_counterval_t {
1: + u64 cycles;
1: + struct clocksource *cs;
1: +};
1: +
1: +typedef struct {
1: + seqcount_t seqcount;
1: +} seqcount_latch_t;
1: +
1: +struct audit_ntp_val {
1: + long long int oldval;
1: + long long int newval;
1: +};
1: +
1: +struct audit_ntp_data {
1: + struct audit_ntp_val vals[6];
1: +};
1: +
1: +enum timekeeping_adv_mode {
1: + TK_ADV_TICK = 0,
1: + TK_ADV_FREQ = 1,
1: +};
1: +
1: +struct tk_fast {
1: + seqcount_latch_t seq;
1: + struct tk_read_base base[2];
1: +};
1: +
1: +enum tick_nohz_mode {
1: + NOHZ_MODE_INACTIVE = 0,
1: + NOHZ_MODE_LOWRES = 1,
1: + NOHZ_MODE_HIGHRES = 2,
1: +};
1: +
1: +struct tick_sched {
1: + struct hrtimer sched_timer;
1: + long unsigned int check_clocks;
1: + enum tick_nohz_mode nohz_mode;
1: + unsigned int inidle: 1;
1: + unsigned int tick_stopped: 1;
1: + unsigned int idle_active: 1;
1: + unsigned int do_timer_last: 1;
1: + unsigned int got_idle_tick: 1;
1: + ktime_t last_tick;
1: + ktime_t next_tick;
1: + long unsigned int idle_jiffies;
1: + long unsigned int idle_calls;
1: + long unsigned int idle_sleeps;
1: + ktime_t idle_entrytime;
1: + ktime_t idle_waketime;
1: + ktime_t idle_exittime;
1: + ktime_t idle_sleeptime;
1: + ktime_t iowait_sleeptime;
1: + long unsigned int last_jiffies;
1: + u64 timer_expires;
1: + u64 timer_expires_base;
1: + u64 next_timer;
1: + ktime_t idle_expires;
1: + atomic_t tick_dep_mask;
1: +};
1: +
1: +struct timer_list_iter {
1: + int cpu;
1: + bool second_pass;
1: + u64 now;
1: +};
1: +
1: +struct tm {
1: + int tm_sec;
1: + int tm_min;
1: + int tm_hour;
1: + int tm_mday;
1: + int tm_mon;
1: + long int tm_year;
1: + int tm_wday;
1: + int tm_yday;
1: +};
1: +
1: +struct cyclecounter {
1: + u64 (*read)(const struct cyclecounter *);
1: + u64 mask;
1: + u32 mult;
1: + u32 shift;
1: +};
1: +
1: +struct timecounter {
1: + const struct cyclecounter *cc;
1: + u64 cycle_last;
1: + u64 nsec;
1: + u64 mask;
1: + u64 frac;
1: +};
1: +
1: +typedef __kernel_timer_t timer_t;
1: +
1: +enum alarmtimer_type {
1: + ALARM_REALTIME = 0,
1: + ALARM_BOOTTIME = 1,
1: + ALARM_NUMTYPE = 2,
1: + ALARM_REALTIME_FREEZER = 3,
1: + ALARM_BOOTTIME_FREEZER = 4,
1: +};
1: +
1: +enum alarmtimer_restart {
1: + ALARMTIMER_NORESTART = 0,
1: + ALARMTIMER_RESTART = 1,
1: +};
1: +
1: +struct alarm {
1: + struct timerqueue_node node;
1: + struct hrtimer timer;
1: + enum alarmtimer_restart (*function)(struct alarm *, ktime_t);
1: + enum alarmtimer_type type;
1: + int state;
1: + void *data;
1: +};
1: +
1: +struct cpu_timer {
1: + struct timerqueue_node node;
1: + struct timerqueue_head *head;
1: + struct pid *pid;
1: + struct list_head elist;
1: + int firing;
1: +};
1: +
1: +struct k_clock;
1: +
1: +struct k_itimer {
1: + struct list_head list;
1: + struct hlist_node t_hash;
1: + spinlock_t it_lock;
1: + const struct k_clock *kclock;
1: + clockid_t it_clock;
1: + timer_t it_id;
1: + int it_active;
1: + s64 it_overrun;
1: + s64 it_overrun_last;
1: + int it_requeue_pending;
1: + int it_sigev_notify;
1: + ktime_t it_interval;
1: + struct signal_struct *it_signal;
1: + union {
1: + struct pid *it_pid;
1: + struct task_struct *it_process;
1: + };
1: + struct sigqueue *sigq;
1: + union {
1: + struct {
1: + struct hrtimer timer;
1: + } real;
1: + struct cpu_timer cpu;
1: + struct {
1: + struct alarm alarmtimer;
1: + } alarm;
1: + } it;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct k_clock {
1: + int (*clock_getres)(const clockid_t, struct timespec64 *);
1: + int (*clock_set)(const clockid_t, const struct timespec64 *);
1: + int (*clock_get_timespec)(const clockid_t, struct timespec64 *);
1: + ktime_t (*clock_get_ktime)(const clockid_t);
1: + int (*clock_adj)(const clockid_t, struct __kernel_timex *);
1: + int (*timer_create)(struct k_itimer *);
1: + int (*nsleep)(const clockid_t, int, const struct timespec64 *);
1: + int (*timer_set)(struct k_itimer *, int, struct itimerspec64 *, struct itimerspec64 *);
1: + int (*timer_del)(struct k_itimer *);
1: + void (*timer_get)(struct k_itimer *, struct itimerspec64 *);
1: + void (*timer_rearm)(struct k_itimer *);
1: + s64 (*timer_forward)(struct k_itimer *, ktime_t);
1: + ktime_t (*timer_remaining)(struct k_itimer *, ktime_t);
1: + int (*timer_try_to_cancel)(struct k_itimer *);
1: + void (*timer_arm)(struct k_itimer *, ktime_t, bool, bool);
1: + void (*timer_wait_running)(struct k_itimer *);
1: +};
1: +
1: +struct class_interface {
1: + struct list_head node;
1: + struct class *class;
1: + int (*add_dev)(struct device *, struct class_interface *);
1: + void (*remove_dev)(struct device *, struct class_interface *);
1: +};
1: +
1: +struct rtc_device;
1: +
1: +struct rtc_timer {
1: + struct timerqueue_node node;
1: + ktime_t period;
1: + void (*func)(struct rtc_device *);
1: + struct rtc_device *rtc;
1: + int enabled;
1: +};
1: +
1: +struct rtc_device {
1: + struct device dev;
1: + struct module *owner;
1: + int id;
1: + const struct rtc_class_ops *ops;
1: + struct mutex ops_lock;
1: + struct cdev char_dev;
1: + long unsigned int flags;
1: + long unsigned int irq_data;
1: + spinlock_t irq_lock;
1: + wait_queue_head_t irq_queue;
1: + struct fasync_struct *async_queue;
1: + int irq_freq;
1: + int max_user_freq;
1: + struct timerqueue_head timerqueue;
1: + struct rtc_timer aie_timer;
1: + struct rtc_timer uie_rtctimer;
1: + struct hrtimer pie_timer;
1: + int pie_enabled;
1: + struct work_struct irqwork;
1: + int uie_unsupported;
1: + long int set_offset_nsec;
1: + bool registered;
1: + bool nvram_old_abi;
1: + struct bin_attribute *nvram;
1: + time64_t range_min;
1: + timeu64_t range_max;
1: + time64_t start_secs;
1: + time64_t offset_secs;
1: + bool set_start_time;
1: + struct work_struct uie_task;
1: + struct timer_list uie_timer;
1: + unsigned int oldsecs;
1: + unsigned int uie_irq_active: 1;
1: + unsigned int stop_uie_polling: 1;
1: + unsigned int uie_task_active: 1;
1: + unsigned int uie_timer_active: 1;
1: +};
1: +
1: +struct trace_event_raw_alarmtimer_suspend {
1: + struct trace_entry ent;
1: + s64 expires;
1: + unsigned char alarm_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_alarm_class {
1: + struct trace_entry ent;
1: + void *alarm;
1: + unsigned char alarm_type;
1: + s64 expires;
1: + s64 now;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_alarmtimer_suspend {};
1: +
1: +struct trace_event_data_offsets_alarm_class {};
1: +
1: +typedef void (*btf_trace_alarmtimer_suspend)(void *, ktime_t, int);
1: +
1: +typedef void (*btf_trace_alarmtimer_fired)(void *, struct alarm *, ktime_t);
1: +
1: +typedef void (*btf_trace_alarmtimer_start)(void *, struct alarm *, ktime_t);
1: +
1: +typedef void (*btf_trace_alarmtimer_cancel)(void *, struct alarm *, ktime_t);
1: +
1: +struct alarm_base {
1: + spinlock_t lock;
1: + struct timerqueue_head timerqueue;
1: + ktime_t (*get_ktime)();
1: + void (*get_timespec)(struct timespec64 *);
1: + clockid_t base_clockid;
1: +};
1: +
1: +struct sigevent {
1: + sigval_t sigev_value;
1: + int sigev_signo;
1: + int sigev_notify;
1: + union {
1: + int _pad[12];
1: + int _tid;
1: + struct {
1: + void (*_function)(sigval_t);
1: + void *_attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: +};
1: +
1: +typedef struct sigevent sigevent_t;
1: +
1: +struct compat_sigevent {
1: + compat_sigval_t sigev_value;
1: + compat_int_t sigev_signo;
1: + compat_int_t sigev_notify;
1: + union {
1: + compat_int_t _pad[13];
1: + compat_int_t _tid;
1: + struct {
1: + compat_uptr_t _function;
1: + compat_uptr_t _attribute;
1: + } _sigev_thread;
1: + } _sigev_un;
1: +};
1: +
1: +typedef unsigned int uint;
1: +
1: +struct posix_clock;
1: +
1: +struct posix_clock_operations {
1: + struct module *owner;
1: + int (*clock_adjtime)(struct posix_clock *, struct __kernel_timex *);
1: + int (*clock_gettime)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_getres)(struct posix_clock *, struct timespec64 *);
1: + int (*clock_settime)(struct posix_clock *, const struct timespec64 *);
1: + long int (*ioctl)(struct posix_clock *, unsigned int, long unsigned int);
1: + int (*open)(struct posix_clock *, fmode_t);
1: + __poll_t (*poll)(struct posix_clock *, struct file *, poll_table *);
1: + int (*release)(struct posix_clock *);
1: + ssize_t (*read)(struct posix_clock *, uint, char *, size_t);
1: +};
1: +
1: +struct posix_clock {
1: + struct posix_clock_operations ops;
1: + struct cdev cdev;
1: + struct device *dev;
1: + struct rw_semaphore rwsem;
1: + bool zombie;
1: +};
1: +
1: +struct posix_clock_desc {
1: + struct file *fp;
1: + struct posix_clock *clk;
1: +};
1: +
1: +struct __kernel_old_itimerval {
1: + struct __kernel_old_timeval it_interval;
1: + struct __kernel_old_timeval it_value;
1: +};
1: +
1: +struct old_itimerval32 {
1: + struct old_timeval32 it_interval;
1: + struct old_timeval32 it_value;
1: +};
1: +
1: +struct ce_unbind {
1: + struct clock_event_device *ce;
1: + int res;
1: +};
1: +
1: +enum tick_broadcast_state {
1: + TICK_BROADCAST_EXIT = 0,
1: + TICK_BROADCAST_ENTER = 1,
1: +};
1: +
1: +enum tick_broadcast_mode {
1: + TICK_BROADCAST_OFF = 0,
1: + TICK_BROADCAST_ON = 1,
1: + TICK_BROADCAST_FORCE = 2,
1: +};
1: +
1: +union futex_key {
1: + struct {
1: + u64 i_seq;
1: + long unsigned int pgoff;
1: + unsigned int offset;
1: + } shared;
1: + struct {
1: + union {
1: + struct mm_struct *mm;
1: + u64 __tmp;
1: + };
1: + long unsigned int address;
1: + unsigned int offset;
1: + } private;
1: + struct {
1: + u64 ptr;
1: + long unsigned int word;
1: + unsigned int offset;
1: + } both;
1: +};
1: +
1: +struct futex_pi_state {
1: + struct list_head list;
1: + struct rt_mutex pi_mutex;
1: + struct task_struct *owner;
1: + refcount_t refcount;
1: + union futex_key key;
1: +};
1: +
1: +struct futex_q {
1: + struct plist_node list;
1: + struct task_struct *task;
1: + spinlock_t *lock_ptr;
1: + union futex_key key;
1: + struct futex_pi_state *pi_state;
1: + struct rt_mutex_waiter *rt_waiter;
1: + union futex_key *requeue_pi_key;
1: + u32 bitset;
1: +};
1: +
1: +struct futex_hash_bucket {
1: + atomic_t waiters;
1: + spinlock_t lock;
1: + struct plist_head chain;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum futex_access {
1: + FUTEX_READ = 0,
1: + FUTEX_WRITE = 1,
1: +};
1: +
1: +struct dma_chan {
1: + int lock;
1: + const char *device_id;
1: +};
1: +
1: +typedef bool (*smp_cond_func_t)(int, void *);
1: +
1: +struct call_function_data {
1: + call_single_data_t *csd;
1: + cpumask_var_t cpumask;
1: + cpumask_var_t cpumask_ipi;
1: +};
1: +
1: +struct smp_call_on_cpu_struct {
1: + struct work_struct work;
1: + struct completion done;
1: + int (*func)(void *);
1: + void *data;
1: + int ret;
1: + int cpu;
1: +};
1: +
1: +struct latch_tree_root {
1: + seqcount_latch_t seq;
1: + struct rb_root tree[2];
1: +};
1: +
1: +struct latch_tree_ops {
1: + bool (*less)(struct latch_tree_node *, struct latch_tree_node *);
1: + int (*comp)(void *, struct latch_tree_node *);
1: +};
1: +
1: +struct module_use {
1: + struct list_head source_list;
1: + struct list_head target_list;
1: + struct module *source;
1: + struct module *target;
1: +};
1: +
1: +struct module_sect_attr {
1: + struct bin_attribute battr;
1: + long unsigned int address;
1: +};
1: +
1: +struct module_sect_attrs {
1: + struct attribute_group grp;
1: + unsigned int nsections;
1: + struct module_sect_attr attrs[0];
1: +};
1: +
1: +struct module_notes_attrs {
1: + struct kobject *dir;
1: + unsigned int notes;
1: + struct bin_attribute attrs[0];
1: +};
1: +
1: +enum mod_license {
1: + NOT_GPL_ONLY = 0,
1: + GPL_ONLY = 1,
1: + WILL_BE_GPL_ONLY = 2,
1: +};
1: +
1: +struct symsearch {
1: + const struct kernel_symbol *start;
1: + const struct kernel_symbol *stop;
1: + const s32 *crcs;
1: + enum mod_license license;
1: + bool unused;
1: +};
1: +
1: +enum kernel_read_file_id {
1: + READING_UNKNOWN = 0,
1: + READING_FIRMWARE = 1,
1: + READING_MODULE = 2,
1: + READING_KEXEC_IMAGE = 3,
1: + READING_KEXEC_INITRAMFS = 4,
1: + READING_POLICY = 5,
1: + READING_X509_CERTIFICATE = 6,
1: + READING_MAX_ID = 7,
1: +};
1: +
1: +enum kernel_load_data_id {
1: + LOADING_UNKNOWN = 0,
1: + LOADING_FIRMWARE = 1,
1: + LOADING_MODULE = 2,
1: + LOADING_KEXEC_IMAGE = 3,
1: + LOADING_KEXEC_INITRAMFS = 4,
1: + LOADING_POLICY = 5,
1: + LOADING_X509_CERTIFICATE = 6,
1: + LOADING_MAX_ID = 7,
1: +};
1: +
1: +enum {
1: + PROC_ENTRY_PERMANENT = 1,
1: +};
1: +
1: +struct _ddebug {
1: + const char *modname;
1: + const char *function;
1: + const char *filename;
1: + const char *format;
1: + unsigned int lineno: 18;
1: + unsigned int flags: 8;
1: + union {
1: + struct static_key_true dd_key_true;
1: + struct static_key_false dd_key_false;
1: + } key;
1: +};
1: +
1: +struct load_info {
1: + const char *name;
1: + struct module *mod;
1: + Elf64_Ehdr *hdr;
1: + long unsigned int len;
1: + Elf64_Shdr *sechdrs;
1: + char *secstrings;
1: + char *strtab;
1: + long unsigned int symoffs;
1: + long unsigned int stroffs;
1: + long unsigned int init_typeoffs;
1: + long unsigned int core_typeoffs;
1: + struct _ddebug *debug;
1: + unsigned int num_debug;
1: + bool sig_ok;
1: + long unsigned int mod_kallsyms_init_off;
1: + struct {
1: + unsigned int sym;
1: + unsigned int str;
1: + unsigned int mod;
1: + unsigned int vers;
1: + unsigned int info;
1: + unsigned int pcpu;
1: + } index;
1: +};
1: +
1: +struct trace_event_raw_module_load {
1: + struct trace_entry ent;
1: + unsigned int taints;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_free {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_refcnt {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + int refcnt;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_module_request {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + bool wait;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_module_load {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_free {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_refcnt {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_module_request {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_module_load)(void *, struct module *);
1: +
1: +typedef void (*btf_trace_module_free)(void *, struct module *);
1: +
1: +typedef void (*btf_trace_module_get)(void *, struct module *, long unsigned int);
1: +
1: +typedef void (*btf_trace_module_put)(void *, struct module *, long unsigned int);
1: +
1: +typedef void (*btf_trace_module_request)(void *, char *, bool, long unsigned int);
1: +
1: +struct mod_tree_root {
1: + struct latch_tree_root root;
1: + long unsigned int addr_min;
1: + long unsigned int addr_max;
1: +};
1: +
1: +struct find_symbol_arg {
1: + const char *name;
1: + bool gplok;
1: + bool warn;
1: + struct module *owner;
1: + const s32 *crc;
1: + const struct kernel_symbol *sym;
1: + enum mod_license license;
1: +};
1: +
1: +struct mod_initfree {
1: + struct llist_node node;
1: + void *module_init;
1: +};
1: +
1: +struct module_signature {
1: + u8 algo;
1: + u8 hash;
1: + u8 id_type;
1: + u8 signer_len;
1: + u8 key_id_len;
1: + u8 __pad[3];
1: + __be32 sig_len;
1: +};
1: +
1: +enum key_being_used_for {
1: + VERIFYING_MODULE_SIGNATURE = 0,
1: + VERIFYING_FIRMWARE_SIGNATURE = 1,
1: + VERIFYING_KEXEC_PE_SIGNATURE = 2,
1: + VERIFYING_KEY_SIGNATURE = 3,
1: + VERIFYING_KEY_SELF_SIGNATURE = 4,
1: + VERIFYING_UNSPECIFIED_SIGNATURE = 5,
1: + NR__KEY_BEING_USED_FOR = 6,
1: +};
1: +
1: +enum pkey_id_type {
1: + PKEY_ID_PGP = 0,
1: + PKEY_ID_X509 = 1,
1: + PKEY_ID_PKCS7 = 2,
1: +};
1: +
1: +struct kallsym_iter {
1: + loff_t pos;
1: + loff_t pos_arch_end;
1: + loff_t pos_mod_end;
1: + loff_t pos_ftrace_mod_end;
1: + loff_t pos_bpf_end;
1: + long unsigned int value;
1: + unsigned int nameoff;
1: + char type;
1: + char name[128];
1: + char module_name[56];
1: + int exported;
1: + int show_value;
1: +};
1: +
1: +typedef struct {
1: + int val[2];
1: +} __kernel_fsid_t;
1: +
1: +struct kstatfs {
1: + long int f_type;
1: + long int f_bsize;
1: + u64 f_blocks;
1: + u64 f_bfree;
1: + u64 f_bavail;
1: + u64 f_files;
1: + u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + long int f_namelen;
1: + long int f_frsize;
1: + long int f_flags;
1: + long int f_spare[4];
1: +};
1: +
1: +typedef __u16 comp_t;
1: +
1: +struct acct_v3 {
1: + char ac_flag;
1: + char ac_version;
1: + __u16 ac_tty;
1: + __u32 ac_exitcode;
1: + __u32 ac_uid;
1: + __u32 ac_gid;
1: + __u32 ac_pid;
1: + __u32 ac_ppid;
1: + __u32 ac_btime;
1: + __u32 ac_etime;
1: + comp_t ac_utime;
1: + comp_t ac_stime;
1: + comp_t ac_mem;
1: + comp_t ac_io;
1: + comp_t ac_rw;
1: + comp_t ac_minflt;
1: + comp_t ac_majflt;
1: + comp_t ac_swaps;
1: + char ac_comm[16];
1: +};
1: +
1: +typedef struct acct_v3 acct_t;
1: +
1: +struct fs_pin {
1: + wait_queue_head_t wait;
1: + int done;
1: + struct hlist_node s_list;
1: + struct hlist_node m_list;
1: + void (*kill)(struct fs_pin *);
1: +};
1: +
1: +struct bsd_acct_struct {
1: + struct fs_pin pin;
1: + atomic_long_t count;
1: + struct callback_head rcu;
1: + struct mutex lock;
1: + int active;
1: + long unsigned int needcheck;
1: + struct file *file;
1: + struct pid_namespace *ns;
1: + struct work_struct work;
1: + struct completion done;
1: +};
1: +
1: +struct elf64_note {
1: + Elf64_Word n_namesz;
1: + Elf64_Word n_descsz;
1: + Elf64_Word n_type;
1: +};
1: +
1: +struct elf_note_section {
1: + struct elf64_note n_hdr;
1: + u8 n_data[0];
1: +};
1: +
1: +struct elf_siginfo {
1: + int si_signo;
1: + int si_code;
1: + int si_errno;
1: +};
1: +
1: +struct elf_prstatus {
1: + struct elf_siginfo pr_info;
1: + short int pr_cursig;
1: + long unsigned int pr_sigpend;
1: + long unsigned int pr_sighold;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + struct __kernel_old_timeval pr_utime;
1: + struct __kernel_old_timeval pr_stime;
1: + struct __kernel_old_timeval pr_cutime;
1: + struct __kernel_old_timeval pr_cstime;
1: + elf_gregset_t pr_reg;
1: + int pr_fpvalid;
1: +};
1: +
1: +typedef u32 note_buf_t[134];
1: +
1: +struct compat_kexec_segment {
1: + compat_uptr_t buf;
1: + compat_size_t bufsz;
1: + compat_ulong_t mem;
1: + compat_size_t memsz;
1: +};
1: +
1: +struct crypto_alg;
1: +
1: +struct crypto_tfm {
1: + u32 crt_flags;
1: + int node;
1: + void (*exit)(struct crypto_tfm *);
1: + struct crypto_alg *__crt_alg;
1: + void *__crt_ctx[0];
1: +};
1: +
1: +struct cipher_alg {
1: + unsigned int cia_min_keysize;
1: + unsigned int cia_max_keysize;
1: + int (*cia_setkey)(struct crypto_tfm *, const u8 *, unsigned int);
1: + void (*cia_encrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: + void (*cia_decrypt)(struct crypto_tfm *, u8 *, const u8 *);
1: +};
1: +
1: +struct compress_alg {
1: + int (*coa_compress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: + int (*coa_decompress)(struct crypto_tfm *, const u8 *, unsigned int, u8 *, unsigned int *);
1: +};
1: +
1: +struct crypto_type;
1: +
1: +struct crypto_alg {
1: + struct list_head cra_list;
1: + struct list_head cra_users;
1: + u32 cra_flags;
1: + unsigned int cra_blocksize;
1: + unsigned int cra_ctxsize;
1: + unsigned int cra_alignmask;
1: + int cra_priority;
1: + refcount_t cra_refcnt;
1: + char cra_name[128];
1: + char cra_driver_name[128];
1: + const struct crypto_type *cra_type;
1: + union {
1: + struct cipher_alg cipher;
1: + struct compress_alg compress;
1: + } cra_u;
1: + int (*cra_init)(struct crypto_tfm *);
1: + void (*cra_exit)(struct crypto_tfm *);
1: + void (*cra_destroy)(struct crypto_alg *);
1: + struct module *cra_module;
1: +};
1: +
1: +struct crypto_instance;
1: +
1: +struct crypto_type {
1: + unsigned int (*ctxsize)(struct crypto_alg *, u32, u32);
1: + unsigned int (*extsize)(struct crypto_alg *);
1: + int (*init)(struct crypto_tfm *, u32, u32);
1: + int (*init_tfm)(struct crypto_tfm *);
1: + void (*show)(struct seq_file *, struct crypto_alg *);
1: + int (*report)(struct sk_buff *, struct crypto_alg *);
1: + void (*free)(struct crypto_instance *);
1: + unsigned int type;
1: + unsigned int maskclear;
1: + unsigned int maskset;
1: + unsigned int tfmsize;
1: +};
1: +
1: +struct crypto_shash;
1: +
1: +struct shash_desc {
1: + struct crypto_shash *tfm;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_shash {
1: + unsigned int descsize;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct shash_alg {
1: + int (*init)(struct shash_desc *);
1: + int (*update)(struct shash_desc *, const u8 *, unsigned int);
1: + int (*final)(struct shash_desc *, u8 *);
1: + int (*finup)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*digest)(struct shash_desc *, const u8 *, unsigned int, u8 *);
1: + int (*export)(struct shash_desc *, void *);
1: + int (*import)(struct shash_desc *, const void *);
1: + int (*setkey)(struct crypto_shash *, const u8 *, unsigned int);
1: + int (*init_tfm)(struct crypto_shash *);
1: + void (*exit_tfm)(struct crypto_shash *);
1: + unsigned int descsize;
1: + int: 32;
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct kexec_sha_region {
1: + long unsigned int start;
1: + long unsigned int len;
1: +};
1: +
1: +typedef __kernel_ulong_t __kernel_ino_t;
1: +
1: +typedef __kernel_ino_t ino_t;
1: +
1: +enum kernfs_node_type {
1: + KERNFS_DIR = 1,
1: + KERNFS_FILE = 2,
1: + KERNFS_LINK = 4,
1: +};
1: +
1: +enum kernfs_root_flag {
1: + KERNFS_ROOT_CREATE_DEACTIVATED = 1,
1: + KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK = 2,
1: + KERNFS_ROOT_SUPPORT_EXPORTOP = 4,
1: + KERNFS_ROOT_SUPPORT_USER_XATTR = 8,
1: +};
1: +
1: +struct kernfs_fs_context {
1: + struct kernfs_root *root;
1: + void *ns_tag;
1: + long unsigned int magic;
1: + bool new_sb_created;
1: +};
1: +
1: +enum bpf_link_type {
1: + BPF_LINK_TYPE_UNSPEC = 0,
1: + BPF_LINK_TYPE_RAW_TRACEPOINT = 1,
1: + BPF_LINK_TYPE_TRACING = 2,
1: + BPF_LINK_TYPE_CGROUP = 3,
1: + BPF_LINK_TYPE_ITER = 4,
1: + BPF_LINK_TYPE_NETNS = 5,
1: + BPF_LINK_TYPE_XDP = 6,
1: + MAX_BPF_LINK_TYPE = 7,
1: +};
1: +
1: +struct bpf_link_info {
1: + __u32 type;
1: + __u32 id;
1: + __u32 prog_id;
1: + union {
1: + struct {
1: + __u64 tp_name;
1: + __u32 tp_name_len;
1: + } raw_tracepoint;
1: + struct {
1: + __u32 attach_type;
1: + } tracing;
1: + struct {
1: + __u64 cgroup_id;
1: + __u32 attach_type;
1: + } cgroup;
1: + struct {
1: + __u64 target_name;
1: + __u32 target_name_len;
1: + union {
1: + struct {
1: + __u32 map_id;
1: + } map;
1: + };
1: + } iter;
1: + struct {
1: + __u32 netns_ino;
1: + __u32 attach_type;
1: + } netns;
1: + struct {
1: + __u32 ifindex;
1: + } xdp;
1: + };
1: +};
1: +
1: +struct bpf_link_ops;
1: +
1: +struct bpf_link {
1: + atomic64_t refcnt;
1: + u32 id;
1: + enum bpf_link_type type;
1: + const struct bpf_link_ops *ops;
1: + struct bpf_prog *prog;
1: + struct work_struct work;
1: +};
1: +
1: +struct bpf_link_ops {
1: + void (*release)(struct bpf_link *);
1: + void (*dealloc)(struct bpf_link *);
1: + int (*detach)(struct bpf_link *);
1: + int (*update_prog)(struct bpf_link *, struct bpf_prog *, struct bpf_prog *);
1: + void (*show_fdinfo)(const struct bpf_link *, struct seq_file *);
1: + int (*fill_link_info)(const struct bpf_link *, struct bpf_link_info *);
1: +};
1: +
1: +struct bpf_cgroup_link {
1: + struct bpf_link link;
1: + struct cgroup *cgroup;
1: + enum bpf_attach_type type;
1: +};
1: +
1: +enum {
1: + CGRP_NOTIFY_ON_RELEASE = 0,
1: + CGRP_CPUSET_CLONE_CHILDREN = 1,
1: + CGRP_FREEZE = 2,
1: + CGRP_FROZEN = 3,
1: +};
1: +
1: +enum {
1: + CGRP_ROOT_NOPREFIX = 2,
1: + CGRP_ROOT_XATTR = 4,
1: + CGRP_ROOT_NS_DELEGATE = 8,
1: + CGRP_ROOT_CPUSET_V2_MODE = 16,
1: + CGRP_ROOT_MEMORY_LOCAL_EVENTS = 32,
1: + CGRP_ROOT_MEMORY_RECURSIVE_PROT = 64,
1: +};
1: +
1: +struct cgroup_taskset {
1: + struct list_head src_csets;
1: + struct list_head dst_csets;
1: + int nr_tasks;
1: + int ssid;
1: + struct list_head *csets;
1: + struct css_set *cur_cset;
1: + struct task_struct *cur_task;
1: +};
1: +
1: +struct cgroup_fs_context {
1: + struct kernfs_fs_context kfc;
1: + struct cgroup_root *root;
1: + struct cgroup_namespace *ns;
1: + unsigned int flags;
1: + bool cpuset_clone_children;
1: + bool none;
1: + bool all_ss;
1: + u16 subsys_mask;
1: + char *name;
1: + char *release_agent;
1: +};
1: +
1: +struct cgrp_cset_link {
1: + struct cgroup *cgrp;
1: + struct css_set *cset;
1: + struct list_head cset_link;
1: + struct list_head cgrp_link;
1: +};
1: +
1: +struct cgroup_mgctx {
1: + struct list_head preloaded_src_csets;
1: + struct list_head preloaded_dst_csets;
1: + struct cgroup_taskset tset;
1: + u16 ss_mask;
1: +};
1: +
1: +struct trace_event_raw_cgroup_root {
1: + struct trace_entry ent;
1: + int root;
1: + u16 ss_mask;
1: + u32 __data_loc_name;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup {
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup_migrate {
1: + struct trace_entry ent;
1: + int dst_root;
1: + int dst_id;
1: + int dst_level;
1: + int pid;
1: + u32 __data_loc_dst_path;
1: + u32 __data_loc_comm;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cgroup_event {
1: + struct trace_entry ent;
1: + int root;
1: + int id;
1: + int level;
1: + u32 __data_loc_path;
1: + int val;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_root {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup {
1: + u32 path;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_migrate {
1: + u32 dst_path;
1: + u32 comm;
1: +};
1: +
1: +struct trace_event_data_offsets_cgroup_event {
1: + u32 path;
1: +};
1: +
1: +typedef void (*btf_trace_cgroup_setup_root)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_destroy_root)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_remount)(void *, struct cgroup_root *);
1: +
1: +typedef void (*btf_trace_cgroup_mkdir)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_rmdir)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_release)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_rename)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_freeze)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_unfreeze)(void *, struct cgroup *, const char *);
1: +
1: +typedef void (*btf_trace_cgroup_attach_task)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +
1: +typedef void (*btf_trace_cgroup_transfer_tasks)(void *, struct cgroup *, const char *, struct task_struct *, bool);
1: +
1: +typedef void (*btf_trace_cgroup_notify_populated)(void *, struct cgroup *, const char *, int);
1: +
1: +typedef void (*btf_trace_cgroup_notify_frozen)(void *, struct cgroup *, const char *, int);
1: +
1: +enum cgroup2_param {
1: + Opt_nsdelegate = 0,
1: + Opt_memory_localevents = 1,
1: + Opt_memory_recursiveprot = 2,
1: + nr__cgroup2_params = 3,
1: +};
1: +
1: +struct cgroupstats {
1: + __u64 nr_sleeping;
1: + __u64 nr_running;
1: + __u64 nr_stopped;
1: + __u64 nr_uninterruptible;
1: + __u64 nr_io_wait;
1: +};
1: +
1: +enum cgroup_filetype {
1: + CGROUP_FILE_PROCS = 0,
1: + CGROUP_FILE_TASKS = 1,
1: +};
1: +
1: +struct cgroup_pidlist {
1: + struct {
1: + enum cgroup_filetype type;
1: + struct pid_namespace *ns;
1: + } key;
1: + pid_t *list;
1: + int length;
1: + struct list_head links;
1: + struct cgroup *owner;
1: + struct delayed_work destroy_dwork;
1: +};
1: +
1: +enum cgroup1_param {
1: + Opt_all = 0,
1: + Opt_clone_children = 1,
1: + Opt_cpuset_v2_mode = 2,
1: + Opt_name = 3,
1: + Opt_none = 4,
1: + Opt_noprefix = 5,
1: + Opt_release_agent = 6,
1: + Opt_xattr = 7,
1: +};
1: +
1: +enum freezer_state_flags {
1: + CGROUP_FREEZER_ONLINE = 1,
1: + CGROUP_FREEZING_SELF = 2,
1: + CGROUP_FREEZING_PARENT = 4,
1: + CGROUP_FROZEN = 8,
1: + CGROUP_FREEZING = 6,
1: +};
1: +
1: +struct freezer {
1: + struct cgroup_subsys_state css;
1: + unsigned int state;
1: +};
1: +
1: +struct pids_cgroup {
1: + struct cgroup_subsys_state css;
1: + atomic64_t counter;
1: + atomic64_t limit;
1: + struct cgroup_file events_file;
1: + atomic64_t events_limit;
1: +};
1: +
1: +struct root_domain___2;
1: +
1: +struct fmeter {
1: + int cnt;
1: + int val;
1: + time64_t time;
1: + spinlock_t lock;
1: +};
1: +
1: +struct cpuset {
1: + struct cgroup_subsys_state css;
1: + long unsigned int flags;
1: + cpumask_var_t cpus_allowed;
1: + nodemask_t mems_allowed;
1: + cpumask_var_t effective_cpus;
1: + nodemask_t effective_mems;
1: + cpumask_var_t subparts_cpus;
1: + nodemask_t old_mems_allowed;
1: + struct fmeter fmeter;
1: + int attach_in_progress;
1: + int pn;
1: + int relax_domain_level;
1: + int nr_subparts_cpus;
1: + int partition_root_state;
1: + int use_parent_ecpus;
1: + int child_ecpus_count;
1: +};
1: +
1: +struct tmpmasks {
1: + cpumask_var_t addmask;
1: + cpumask_var_t delmask;
1: + cpumask_var_t new_cpus;
1: +};
1: +
1: +typedef enum {
1: + CS_ONLINE = 0,
1: + CS_CPU_EXCLUSIVE = 1,
1: + CS_MEM_EXCLUSIVE = 2,
1: + CS_MEM_HARDWALL = 3,
1: + CS_MEMORY_MIGRATE = 4,
1: + CS_SCHED_LOAD_BALANCE = 5,
1: + CS_SPREAD_PAGE = 6,
1: + CS_SPREAD_SLAB = 7,
1: +} cpuset_flagbits_t;
1: +
1: +enum subparts_cmd {
1: + partcmd_enable = 0,
1: + partcmd_disable = 1,
1: + partcmd_update = 2,
1: +};
1: +
1: +struct cpuset_migrate_mm_work {
1: + struct work_struct work;
1: + struct mm_struct *mm;
1: + nodemask_t from;
1: + nodemask_t to;
1: +};
1: +
1: +typedef enum {
1: + FILE_MEMORY_MIGRATE = 0,
1: + FILE_CPULIST = 1,
1: + FILE_MEMLIST = 2,
1: + FILE_EFFECTIVE_CPULIST = 3,
1: + FILE_EFFECTIVE_MEMLIST = 4,
1: + FILE_SUBPARTS_CPULIST = 5,
1: + FILE_CPU_EXCLUSIVE = 6,
1: + FILE_MEM_EXCLUSIVE = 7,
1: + FILE_MEM_HARDWALL = 8,
1: + FILE_SCHED_LOAD_BALANCE = 9,
1: + FILE_PARTITION_ROOT = 10,
1: + FILE_SCHED_RELAX_DOMAIN_LEVEL = 11,
1: + FILE_MEMORY_PRESSURE_ENABLED = 12,
1: + FILE_MEMORY_PRESSURE = 13,
1: + FILE_SPREAD_PAGE = 14,
1: + FILE_SPREAD_SLAB = 15,
1: +} cpuset_filetype_t;
1: +
1: +struct kernel_pkey_query {
1: + __u32 supported_ops;
1: + __u32 key_size;
1: + __u16 max_data_size;
1: + __u16 max_sig_size;
1: + __u16 max_enc_size;
1: + __u16 max_dec_size;
1: +};
1: +
1: +enum kernel_pkey_operation {
1: + kernel_pkey_encrypt = 0,
1: + kernel_pkey_decrypt = 1,
1: + kernel_pkey_sign = 2,
1: + kernel_pkey_verify = 3,
1: +};
1: +
1: +struct kernel_pkey_params {
1: + struct key *key;
1: + const char *encoding;
1: + const char *hash_algo;
1: + char *info;
1: + __u32 in_len;
1: + union {
1: + __u32 out_len;
1: + __u32 in2_len;
1: + };
1: + enum kernel_pkey_operation op: 8;
1: +};
1: +
1: +struct key_preparsed_payload {
1: + char *description;
1: + union key_payload payload;
1: + const void *data;
1: + size_t datalen;
1: + size_t quotalen;
1: + time64_t expiry;
1: +};
1: +
1: +struct key_match_data {
1: + bool (*cmp)(const struct key *, const struct key_match_data *);
1: + const void *raw_data;
1: + void *preparsed;
1: + unsigned int lookup_type;
1: +};
1: +
1: +struct idmap_key {
1: + bool map_up;
1: + u32 id;
1: + u32 count;
1: +};
1: +
1: +struct ctl_path {
1: + const char *procname;
1: +};
1: +
1: +struct cpu_stop_done {
1: + atomic_t nr_todo;
1: + int ret;
1: + struct completion completion;
1: +};
1: +
1: +struct cpu_stopper {
1: + struct task_struct *thread;
1: + raw_spinlock_t lock;
1: + bool enabled;
1: + struct list_head works;
1: + struct cpu_stop_work stop_work;
1: +};
1: +
1: +enum multi_stop_state {
1: + MULTI_STOP_NONE = 0,
1: + MULTI_STOP_PREPARE = 1,
1: + MULTI_STOP_DISABLE_IRQ = 2,
1: + MULTI_STOP_RUN = 3,
1: + MULTI_STOP_EXIT = 4,
1: +};
1: +
1: +struct multi_stop_data {
1: + cpu_stop_fn_t fn;
1: + void *data;
1: + unsigned int num_threads;
1: + const struct cpumask *active_cpus;
1: + enum multi_stop_state state;
1: + atomic_t thread_ack;
1: +};
1: +
1: +typedef int __kernel_mqd_t;
1: +
1: +typedef __kernel_mqd_t mqd_t;
1: +
1: +enum audit_state {
1: + AUDIT_DISABLED = 0,
1: + AUDIT_BUILD_CONTEXT = 1,
1: + AUDIT_RECORD_CONTEXT = 2,
1: +};
1: +
1: +struct audit_cap_data {
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + union {
1: + unsigned int fE;
1: + kernel_cap_t effective;
1: + };
1: + kernel_cap_t ambient;
1: + kuid_t rootid;
1: +};
1: +
1: +struct audit_names {
1: + struct list_head list;
1: + struct filename *name;
1: + int name_len;
1: + bool hidden;
1: + long unsigned int ino;
1: + dev_t dev;
1: + umode_t mode;
1: + kuid_t uid;
1: + kgid_t gid;
1: + dev_t rdev;
1: + u32 osid;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + unsigned char type;
1: + bool should_free;
1: +};
1: +
1: +struct mq_attr {
1: + __kernel_long_t mq_flags;
1: + __kernel_long_t mq_maxmsg;
1: + __kernel_long_t mq_msgsize;
1: + __kernel_long_t mq_curmsgs;
1: + __kernel_long_t __reserved[4];
1: +};
1: +
1: +struct audit_proctitle {
1: + int len;
1: + char *value;
1: +};
1: +
1: +struct audit_aux_data;
1: +
1: +struct __kernel_sockaddr_storage;
1: +
1: +struct audit_tree_refs;
1: +
1: +struct audit_context {
1: + int dummy;
1: + int in_syscall;
1: + enum audit_state state;
1: + enum audit_state current_state;
1: + unsigned int serial;
1: + int major;
1: + struct timespec64 ctime;
1: + long unsigned int argv[4];
1: + long int return_code;
1: + u64 prio;
1: + int return_valid;
1: + struct audit_names preallocated_names[5];
1: + int name_count;
1: + struct list_head names_list;
1: + char *filterkey;
1: + struct path pwd;
1: + struct audit_aux_data *aux;
1: + struct audit_aux_data *aux_pids;
1: + struct __kernel_sockaddr_storage *sockaddr;
1: + size_t sockaddr_len;
1: + pid_t pid;
1: + pid_t ppid;
1: + kuid_t uid;
1: + kuid_t euid;
1: + kuid_t suid;
1: + kuid_t fsuid;
1: + kgid_t gid;
1: + kgid_t egid;
1: + kgid_t sgid;
1: + kgid_t fsgid;
1: + long unsigned int personality;
1: + int arch;
1: + pid_t target_pid;
1: + kuid_t target_auid;
1: + kuid_t target_uid;
1: + unsigned int target_sessionid;
1: + u32 target_sid;
1: + char target_comm[16];
1: + struct audit_tree_refs *trees;
1: + struct audit_tree_refs *first_trees;
1: + struct list_head killed_trees;
1: + int tree_count;
1: + int type;
1: + union {
1: + struct {
1: + int nargs;
1: + long int args[6];
1: + } socketcall;
1: + struct {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + u32 osid;
1: + int has_perm;
1: + uid_t perm_uid;
1: + gid_t perm_gid;
1: + umode_t perm_mode;
1: + long unsigned int qbytes;
1: + } ipc;
1: + struct {
1: + mqd_t mqdes;
1: + struct mq_attr mqstat;
1: + } mq_getsetattr;
1: + struct {
1: + mqd_t mqdes;
1: + int sigev_signo;
1: + } mq_notify;
1: + struct {
1: + mqd_t mqdes;
1: + size_t msg_len;
1: + unsigned int msg_prio;
1: + struct timespec64 abs_timeout;
1: + } mq_sendrecv;
1: + struct {
1: + int oflag;
1: + umode_t mode;
1: + struct mq_attr attr;
1: + } mq_open;
1: + struct {
1: + pid_t pid;
1: + struct audit_cap_data cap;
1: + } capset;
1: + struct {
1: + int fd;
1: + int flags;
1: + } mmap;
1: + struct {
1: + int argc;
1: + } execve;
1: + struct {
1: + char *name;
1: + } module;
1: + };
1: + int fds[2];
1: + struct audit_proctitle proctitle;
1: +};
1: +
1: +enum audit_nlgrps {
1: + AUDIT_NLGRP_NONE = 0,
1: + AUDIT_NLGRP_READLOG = 1,
1: + __AUDIT_NLGRP_MAX = 2,
1: +};
1: +
1: +struct audit_status {
1: + __u32 mask;
1: + __u32 enabled;
1: + __u32 failure;
1: + __u32 pid;
1: + __u32 rate_limit;
1: + __u32 backlog_limit;
1: + __u32 lost;
1: + __u32 backlog;
1: + union {
1: + __u32 version;
1: + __u32 feature_bitmap;
1: + };
1: + __u32 backlog_wait_time;
1: + __u32 backlog_wait_time_actual;
1: +};
1: +
1: +struct audit_features {
1: + __u32 vers;
1: + __u32 mask;
1: + __u32 features;
1: + __u32 lock;
1: +};
1: +
1: +struct audit_tty_status {
1: + __u32 enabled;
1: + __u32 log_passwd;
1: +};
1: +
1: +struct audit_sig_info {
1: + uid_t uid;
1: + pid_t pid;
1: + char ctx[0];
1: +};
1: +
1: +struct __kernel_sockaddr_storage {
1: + union {
1: + struct {
1: + __kernel_sa_family_t ss_family;
1: + char __data[126];
1: + };
1: + void *__align;
1: + };
1: +};
1: +
1: +struct net_generic {
1: + union {
1: + struct {
1: + unsigned int len;
1: + struct callback_head rcu;
1: + } s;
1: + void *ptr[0];
1: + };
1: +};
1: +
1: +struct pernet_operations {
1: + struct list_head list;
1: + int (*init)(struct net *);
1: + void (*pre_exit)(struct net *);
1: + void (*exit)(struct net *);
1: + void (*exit_batch)(struct list_head *);
1: + unsigned int *id;
1: + size_t size;
1: +};
1: +
1: +struct scm_creds {
1: + u32 pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: +};
1: +
1: +struct netlink_skb_parms {
1: + struct scm_creds creds;
1: + __u32 portid;
1: + __u32 dst_group;
1: + __u32 flags;
1: + struct sock *sk;
1: + bool nsid_is_set;
1: + int nsid;
1: +};
1: +
1: +struct netlink_kernel_cfg {
1: + unsigned int groups;
1: + unsigned int flags;
1: + void (*input)(struct sk_buff *);
1: + struct mutex *cb_mutex;
1: + int (*bind)(struct net *, int);
1: + void (*unbind)(struct net *, int);
1: + bool (*compare)(struct net *, struct sock *);
1: +};
1: +
1: +struct audit_netlink_list {
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff_head q;
1: +};
1: +
1: +struct audit_net {
1: + struct sock *sk;
1: +};
1: +
1: +struct auditd_connection {
1: + struct pid *pid;
1: + u32 portid;
1: + struct net *net;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct audit_ctl_mutex {
1: + struct mutex lock;
1: + void *owner;
1: +};
1: +
1: +struct audit_buffer {
1: + struct sk_buff *skb;
1: + struct audit_context *ctx;
1: + gfp_t gfp_mask;
1: +};
1: +
1: +struct audit_reply {
1: + __u32 portid;
1: + struct net *net;
1: + struct sk_buff *skb;
1: +};
1: +
1: +enum {
1: + Audit_equal = 0,
1: + Audit_not_equal = 1,
1: + Audit_bitmask = 2,
1: + Audit_bittest = 3,
1: + Audit_lt = 4,
1: + Audit_gt = 5,
1: + Audit_le = 6,
1: + Audit_ge = 7,
1: + Audit_bad = 8,
1: +};
1: +
1: +struct audit_rule_data {
1: + __u32 flags;
1: + __u32 action;
1: + __u32 field_count;
1: + __u32 mask[64];
1: + __u32 fields[64];
1: + __u32 values[64];
1: + __u32 fieldflags[64];
1: + __u32 buflen;
1: + char buf[0];
1: +};
1: +
1: +struct audit_field;
1: +
1: +struct audit_watch;
1: +
1: +struct audit_tree;
1: +
1: +struct audit_fsnotify_mark;
1: +
1: +struct audit_krule {
1: + u32 pflags;
1: + u32 flags;
1: + u32 listnr;
1: + u32 action;
1: + u32 mask[64];
1: + u32 buflen;
1: + u32 field_count;
1: + char *filterkey;
1: + struct audit_field *fields;
1: + struct audit_field *arch_f;
1: + struct audit_field *inode_f;
1: + struct audit_watch *watch;
1: + struct audit_tree *tree;
1: + struct audit_fsnotify_mark *exe;
1: + struct list_head rlist;
1: + struct list_head list;
1: + u64 prio;
1: +};
1: +
1: +struct audit_field {
1: + u32 type;
1: + union {
1: + u32 val;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct {
1: + char *lsm_str;
1: + void *lsm_rule;
1: + };
1: + };
1: + u32 op;
1: +};
1: +
1: +struct audit_entry {
1: + struct list_head list;
1: + struct callback_head rcu;
1: + struct audit_krule rule;
1: +};
1: +
1: +struct audit_buffer___2;
1: +
1: +typedef int __kernel_key_t;
1: +
1: +typedef __kernel_key_t key_t;
1: +
1: +struct cpu_vfs_cap_data {
1: + __u32 magic_etc;
1: + kernel_cap_t permitted;
1: + kernel_cap_t inheritable;
1: + kuid_t rootid;
1: +};
1: +
1: +struct kern_ipc_perm {
1: + spinlock_t lock;
1: + bool deleted;
1: + int id;
1: + key_t key;
1: + kuid_t uid;
1: + kgid_t gid;
1: + kuid_t cuid;
1: + kgid_t cgid;
1: + umode_t mode;
1: + long unsigned int seq;
1: + void *security;
1: + struct rhash_head khtnode;
1: + struct callback_head rcu;
1: + refcount_t refcount;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef struct fsnotify_mark_connector *fsnotify_connp_t;
1: +
1: +struct fsnotify_mark_connector {
1: + spinlock_t lock;
1: + short unsigned int type;
1: + short unsigned int flags;
1: + __kernel_fsid_t fsid;
1: + union {
1: + fsnotify_connp_t *obj;
1: + struct fsnotify_mark_connector *destroy_next;
1: + };
1: + struct hlist_head list;
1: +};
1: +
1: +enum audit_nfcfgop {
1: + AUDIT_XT_OP_REGISTER = 0,
1: + AUDIT_XT_OP_REPLACE = 1,
1: + AUDIT_XT_OP_UNREGISTER = 2,
1: + AUDIT_NFT_OP_TABLE_REGISTER = 3,
1: + AUDIT_NFT_OP_TABLE_UNREGISTER = 4,
1: + AUDIT_NFT_OP_CHAIN_REGISTER = 5,
1: + AUDIT_NFT_OP_CHAIN_UNREGISTER = 6,
1: + AUDIT_NFT_OP_RULE_REGISTER = 7,
1: + AUDIT_NFT_OP_RULE_UNREGISTER = 8,
1: + AUDIT_NFT_OP_SET_REGISTER = 9,
1: + AUDIT_NFT_OP_SET_UNREGISTER = 10,
1: + AUDIT_NFT_OP_SETELEM_REGISTER = 11,
1: + AUDIT_NFT_OP_SETELEM_UNREGISTER = 12,
1: + AUDIT_NFT_OP_GEN_REGISTER = 13,
1: + AUDIT_NFT_OP_OBJ_REGISTER = 14,
1: + AUDIT_NFT_OP_OBJ_UNREGISTER = 15,
1: + AUDIT_NFT_OP_OBJ_RESET = 16,
1: + AUDIT_NFT_OP_FLOWTABLE_REGISTER = 17,
1: + AUDIT_NFT_OP_FLOWTABLE_UNREGISTER = 18,
1: + AUDIT_NFT_OP_INVALID = 19,
1: +};
1: +
1: +enum fsnotify_obj_type {
1: + FSNOTIFY_OBJ_TYPE_INODE = 0,
1: + FSNOTIFY_OBJ_TYPE_PARENT = 1,
1: + FSNOTIFY_OBJ_TYPE_VFSMOUNT = 2,
1: + FSNOTIFY_OBJ_TYPE_SB = 3,
1: + FSNOTIFY_OBJ_TYPE_COUNT = 4,
1: + FSNOTIFY_OBJ_TYPE_DETACHED = 4,
1: +};
1: +
1: +struct audit_aux_data {
1: + struct audit_aux_data *next;
1: + int type;
1: +};
1: +
1: +struct audit_chunk;
1: +
1: +struct audit_tree_refs {
1: + struct audit_tree_refs *next;
1: + struct audit_chunk *c[31];
1: +};
1: +
1: +struct audit_aux_data_pids {
1: + struct audit_aux_data d;
1: + pid_t target_pid[16];
1: + kuid_t target_auid[16];
1: + kuid_t target_uid[16];
1: + unsigned int target_sessionid[16];
1: + u32 target_sid[16];
1: + char target_comm[256];
1: + int pid_count;
1: +};
1: +
1: +struct audit_aux_data_bprm_fcaps {
1: + struct audit_aux_data d;
1: + struct audit_cap_data fcap;
1: + unsigned int fcap_ver;
1: + struct audit_cap_data old_pcap;
1: + struct audit_cap_data new_pcap;
1: +};
1: +
1: +struct audit_nfcfgop_tab {
1: + enum audit_nfcfgop op;
1: + const char *s;
1: +};
1: +
1: +struct audit_parent;
1: +
1: +struct audit_watch {
1: + refcount_t count;
1: + dev_t dev;
1: + char *path;
1: + long unsigned int ino;
1: + struct audit_parent *parent;
1: + struct list_head wlist;
1: + struct list_head rules;
1: +};
1: +
1: +struct fsnotify_group;
1: +
1: +struct fsnotify_iter_info;
1: +
1: +struct fsnotify_mark;
1: +
1: +struct fsnotify_event;
1: +
1: +struct fsnotify_ops {
1: + int (*handle_event)(struct fsnotify_group *, u32, const void *, int, struct inode *, const struct qstr *, u32, struct fsnotify_iter_info *);
1: + int (*handle_inode_event)(struct fsnotify_mark *, u32, struct inode *, struct inode *, const struct qstr *, u32);
1: + void (*free_group_priv)(struct fsnotify_group *);
1: + void (*freeing_mark)(struct fsnotify_mark *, struct fsnotify_group *);
1: + void (*free_event)(struct fsnotify_event *);
1: + void (*free_mark)(struct fsnotify_mark *);
1: +};
1: +
1: +struct inotify_group_private_data {
1: + spinlock_t idr_lock;
1: + struct idr idr;
1: + struct ucounts *ucounts;
1: +};
1: +
1: +struct fanotify_group_private_data {
1: + struct list_head access_list;
1: + wait_queue_head_t access_waitq;
1: + int flags;
1: + int f_flags;
1: + unsigned int max_marks;
1: + struct user_struct *user;
1: +};
1: +
1: +struct fsnotify_group {
1: + const struct fsnotify_ops *ops;
1: + refcount_t refcnt;
1: + spinlock_t notification_lock;
1: + struct list_head notification_list;
1: + wait_queue_head_t notification_waitq;
1: + unsigned int q_len;
1: + unsigned int max_events;
1: + unsigned int priority;
1: + bool shutdown;
1: + struct mutex mark_mutex;
1: + atomic_t num_marks;
1: + atomic_t user_waits;
1: + struct list_head marks_list;
1: + struct fasync_struct *fsn_fa;
1: + struct fsnotify_event *overflow_event;
1: + struct mem_cgroup *memcg;
1: + union {
1: + void *private;
1: + struct inotify_group_private_data inotify_data;
1: + struct fanotify_group_private_data fanotify_data;
1: + };
1: +};
1: +
1: +struct fsnotify_iter_info {
1: + struct fsnotify_mark *marks[4];
1: + unsigned int report_mask;
1: + int srcu_idx;
1: +};
1: +
1: +struct fsnotify_mark {
1: + __u32 mask;
1: + refcount_t refcnt;
1: + struct fsnotify_group *group;
1: + struct list_head g_list;
1: + spinlock_t lock;
1: + struct hlist_node obj_list;
1: + struct fsnotify_mark_connector *connector;
1: + __u32 ignored_mask;
1: + unsigned int flags;
1: +};
1: +
1: +struct fsnotify_event {
1: + struct list_head list;
1: + long unsigned int objectid;
1: +};
1: +
1: +struct audit_parent {
1: + struct list_head watches;
1: + struct fsnotify_mark mark;
1: +};
1: +
1: +struct audit_fsnotify_mark {
1: + dev_t dev;
1: + long unsigned int ino;
1: + char *path;
1: + struct fsnotify_mark mark;
1: + struct audit_krule *rule;
1: +};
1: +
1: +struct audit_chunk___2;
1: +
1: +struct audit_tree {
1: + refcount_t count;
1: + int goner;
1: + struct audit_chunk___2 *root;
1: + struct list_head chunks;
1: + struct list_head rules;
1: + struct list_head list;
1: + struct list_head same_root;
1: + struct callback_head head;
1: + char pathname[0];
1: +};
1: +
1: +struct node___2 {
1: + struct list_head list;
1: + struct audit_tree *owner;
1: + unsigned int index;
1: +};
1: +
1: +struct audit_chunk___2 {
1: + struct list_head hash;
1: + long unsigned int key;
1: + struct fsnotify_mark *mark;
1: + struct list_head trees;
1: + int count;
1: + atomic_long_t refs;
1: + struct callback_head head;
1: + struct node___2 owners[0];
1: +};
1: +
1: +struct audit_tree_mark {
1: + struct fsnotify_mark mark;
1: + struct audit_chunk___2 *chunk;
1: +};
1: +
1: +enum {
1: + HASH_SIZE = 128,
1: +};
1: +
1: +enum {
1: + FTRACE_OPS_FL_ENABLED = 1,
1: + FTRACE_OPS_FL_DYNAMIC = 2,
1: + FTRACE_OPS_FL_SAVE_REGS = 4,
1: + FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 8,
1: + FTRACE_OPS_FL_RECURSION_SAFE = 16,
1: + FTRACE_OPS_FL_STUB = 32,
1: + FTRACE_OPS_FL_INITIALIZED = 64,
1: + FTRACE_OPS_FL_DELETED = 128,
1: + FTRACE_OPS_FL_ADDING = 256,
1: + FTRACE_OPS_FL_REMOVING = 512,
1: + FTRACE_OPS_FL_MODIFYING = 1024,
1: + FTRACE_OPS_FL_ALLOC_TRAMP = 2048,
1: + FTRACE_OPS_FL_IPMODIFY = 4096,
1: + FTRACE_OPS_FL_PID = 8192,
1: + FTRACE_OPS_FL_RCU = 16384,
1: + FTRACE_OPS_FL_TRACE_ARRAY = 32768,
1: + FTRACE_OPS_FL_PERMANENT = 65536,
1: + FTRACE_OPS_FL_DIRECT = 131072,
1: +};
1: +
1: +struct kprobe_blacklist_entry {
1: + struct list_head list;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: +};
1: +
1: +enum perf_record_ksymbol_type {
1: + PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,
1: + PERF_RECORD_KSYMBOL_TYPE_BPF = 1,
1: + PERF_RECORD_KSYMBOL_TYPE_OOL = 2,
1: + PERF_RECORD_KSYMBOL_TYPE_MAX = 3,
1: +};
1: +
1: +struct kprobe_insn_page {
1: + struct list_head list;
1: + kprobe_opcode_t *insns;
1: + struct kprobe_insn_cache *cache;
1: + int nused;
1: + int ngarbage;
1: + char slot_used[0];
1: +};
1: +
1: +enum kprobe_slot_state {
1: + SLOT_CLEAN = 0,
1: + SLOT_DIRTY = 1,
1: + SLOT_USED = 2,
1: +};
1: +
1: +struct kgdb_io {
1: + const char *name;
1: + int (*read_char)();
1: + void (*write_char)(u8);
1: + void (*flush)();
1: + int (*init)();
1: + void (*deinit)();
1: + void (*pre_exception)();
1: + void (*post_exception)();
1: + struct console *cons;
1: +};
1: +
1: +enum {
1: + KDB_NOT_INITIALIZED = 0,
1: + KDB_INIT_EARLY = 1,
1: + KDB_INIT_FULL = 2,
1: +};
1: +
1: +struct kgdb_state {
1: + int ex_vector;
1: + int signo;
1: + int err_code;
1: + int cpu;
1: + int pass_exception;
1: + long unsigned int thr_query;
1: + long unsigned int threadid;
1: + long int kgdb_usethreadid;
1: + struct pt_regs *linux_regs;
1: + atomic_t *send_ready;
1: +};
1: +
1: +struct debuggerinfo_struct {
1: + void *debuggerinfo;
1: + struct task_struct *task;
1: + int exception_state;
1: + int ret_state;
1: + int irq_depth;
1: + int enter_kgdb;
1: + bool rounding_up;
1: +};
1: +
1: +struct seccomp_data {
1: + int nr;
1: + __u32 arch;
1: + __u64 instruction_pointer;
1: + __u64 args[6];
1: +};
1: +
1: +struct seccomp_notif_sizes {
1: + __u16 seccomp_notif;
1: + __u16 seccomp_notif_resp;
1: + __u16 seccomp_data;
1: +};
1: +
1: +struct seccomp_notif {
1: + __u64 id;
1: + __u32 pid;
1: + __u32 flags;
1: + struct seccomp_data data;
1: +};
1: +
1: +struct seccomp_notif_resp {
1: + __u64 id;
1: + __s64 val;
1: + __s32 error;
1: + __u32 flags;
1: +};
1: +
1: +struct seccomp_notif_addfd {
1: + __u64 id;
1: + __u32 flags;
1: + __u32 srcfd;
1: + __u32 newfd;
1: + __u32 newfd_flags;
1: +};
1: +
1: +struct notification;
1: +
1: +struct seccomp_filter {
1: + refcount_t refs;
1: + refcount_t users;
1: + bool log;
1: + struct seccomp_filter *prev;
1: + struct bpf_prog *prog;
1: + struct notification *notif;
1: + struct mutex notify_lock;
1: + wait_queue_head_t wqh;
1: +};
1: +
1: +struct seccomp_metadata {
1: + __u64 filter_off;
1: + __u64 flags;
1: +};
1: +
1: +struct sock_fprog {
1: + short unsigned int len;
1: + struct sock_filter *filter;
1: +};
1: +
1: +struct compat_sock_fprog {
1: + u16 len;
1: + compat_uptr_t filter;
1: +};
1: +
1: +enum notify_state {
1: + SECCOMP_NOTIFY_INIT = 0,
1: + SECCOMP_NOTIFY_SENT = 1,
1: + SECCOMP_NOTIFY_REPLIED = 2,
1: +};
1: +
1: +struct seccomp_knotif {
1: + struct task_struct *task;
1: + u64 id;
1: + const struct seccomp_data *data;
1: + enum notify_state state;
1: + int error;
1: + long int val;
1: + u32 flags;
1: + struct completion ready;
1: + struct list_head list;
1: + struct list_head addfd;
1: +};
1: +
1: +struct seccomp_kaddfd {
1: + struct file *file;
1: + int fd;
1: + unsigned int flags;
1: + int ret;
1: + struct completion completion;
1: + struct list_head list;
1: +};
1: +
1: +struct notification {
1: + struct semaphore request;
1: + u64 next_id;
1: + struct list_head notifications;
1: +};
1: +
1: +struct seccomp_log_name {
1: + u32 log;
1: + const char *name;
1: +};
1: +
1: +struct rchan;
1: +
1: +struct rchan_buf {
1: + void *start;
1: + void *data;
1: + size_t offset;
1: + size_t subbufs_produced;
1: + size_t subbufs_consumed;
1: + struct rchan *chan;
1: + wait_queue_head_t read_wait;
1: + struct irq_work wakeup_work;
1: + struct dentry *dentry;
1: + struct kref kref;
1: + struct page **page_array;
1: + unsigned int page_count;
1: + unsigned int finalized;
1: + size_t *padding;
1: + size_t prev_padding;
1: + size_t bytes_consumed;
1: + size_t early_bytes;
1: + unsigned int cpu;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct rchan_callbacks;
1: +
1: +struct rchan {
1: + u32 version;
1: + size_t subbuf_size;
1: + size_t n_subbufs;
1: + size_t alloc_size;
1: + struct rchan_callbacks *cb;
1: + struct kref kref;
1: + void *private_data;
1: + size_t last_toobig;
1: + struct rchan_buf **buf;
1: + int is_global;
1: + struct list_head list;
1: + struct dentry *parent;
1: + int has_base_filename;
1: + char base_filename[255];
1: +};
1: +
1: +struct rchan_callbacks {
1: + int (*subbuf_start)(struct rchan_buf *, void *, void *, size_t);
1: + void (*buf_mapped)(struct rchan_buf *, struct file *);
1: + void (*buf_unmapped)(struct rchan_buf *, struct file *);
1: + struct dentry * (*create_buf_file)(const char *, struct dentry *, umode_t, struct rchan_buf *, int *);
1: + int (*remove_buf_file)(struct dentry *);
1: +};
1: +
1: +struct partial_page {
1: + unsigned int offset;
1: + unsigned int len;
1: + long unsigned int private;
1: +};
1: +
1: +struct splice_pipe_desc {
1: + struct page **pages;
1: + struct partial_page *partial;
1: + int nr_pages;
1: + unsigned int nr_pages_max;
1: + const struct pipe_buf_operations *ops;
1: + void (*spd_release)(struct splice_pipe_desc *, unsigned int);
1: +};
1: +
1: +struct rchan_percpu_buf_dispatcher {
1: + struct rchan_buf *buf;
1: + struct dentry *dentry;
1: +};
1: +
1: +enum {
1: + TASKSTATS_TYPE_UNSPEC = 0,
1: + TASKSTATS_TYPE_PID = 1,
1: + TASKSTATS_TYPE_TGID = 2,
1: + TASKSTATS_TYPE_STATS = 3,
1: + TASKSTATS_TYPE_AGGR_PID = 4,
1: + TASKSTATS_TYPE_AGGR_TGID = 5,
1: + TASKSTATS_TYPE_NULL = 6,
1: + __TASKSTATS_TYPE_MAX = 7,
1: +};
1: +
1: +enum {
1: + TASKSTATS_CMD_ATTR_UNSPEC = 0,
1: + TASKSTATS_CMD_ATTR_PID = 1,
1: + TASKSTATS_CMD_ATTR_TGID = 2,
1: + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 3,
1: + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 4,
1: + __TASKSTATS_CMD_ATTR_MAX = 5,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_CMD_UNSPEC = 3,
1: + CGROUPSTATS_CMD_GET = 4,
1: + CGROUPSTATS_CMD_NEW = 5,
1: + __CGROUPSTATS_CMD_MAX = 6,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_TYPE_UNSPEC = 0,
1: + CGROUPSTATS_TYPE_CGROUP_STATS = 1,
1: + __CGROUPSTATS_TYPE_MAX = 2,
1: +};
1: +
1: +enum {
1: + CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
1: + CGROUPSTATS_CMD_ATTR_FD = 1,
1: + __CGROUPSTATS_CMD_ATTR_MAX = 2,
1: +};
1: +
1: +struct genlmsghdr {
1: + __u8 cmd;
1: + __u8 version;
1: + __u16 reserved;
1: +};
1: +
1: +enum {
1: + NLA_UNSPEC = 0,
1: + NLA_U8 = 1,
1: + NLA_U16 = 2,
1: + NLA_U32 = 3,
1: + NLA_U64 = 4,
1: + NLA_STRING = 5,
1: + NLA_FLAG = 6,
1: + NLA_MSECS = 7,
1: + NLA_NESTED = 8,
1: + NLA_NESTED_ARRAY = 9,
1: + NLA_NUL_STRING = 10,
1: + NLA_BINARY = 11,
1: + NLA_S8 = 12,
1: + NLA_S16 = 13,
1: + NLA_S32 = 14,
1: + NLA_S64 = 15,
1: + NLA_BITFIELD32 = 16,
1: + NLA_REJECT = 17,
1: + __NLA_TYPE_MAX = 18,
1: +};
1: +
1: +struct genl_multicast_group {
1: + char name[16];
1: +};
1: +
1: +struct genl_ops;
1: +
1: +struct genl_info;
1: +
1: +struct genl_small_ops;
1: +
1: +struct genl_family {
1: + int id;
1: + unsigned int hdrsize;
1: + char name[16];
1: + unsigned int version;
1: + unsigned int maxattr;
1: + unsigned int mcgrp_offset;
1: + u8 netnsok: 1;
1: + u8 parallel_ops: 1;
1: + u8 n_ops;
1: + u8 n_small_ops;
1: + u8 n_mcgrps;
1: + const struct nla_policy *policy;
1: + int (*pre_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: + void (*post_doit)(const struct genl_ops *, struct sk_buff *, struct genl_info *);
1: + const struct genl_ops *ops;
1: + const struct genl_small_ops *small_ops;
1: + const struct genl_multicast_group *mcgrps;
1: + struct module *module;
1: +};
1: +
1: +struct genl_ops {
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*start)(struct netlink_callback *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + int (*done)(struct netlink_callback *);
1: + const struct nla_policy *policy;
1: + unsigned int maxattr;
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: +};
1: +
1: +struct genl_info {
1: + u32 snd_seq;
1: + u32 snd_portid;
1: + struct nlmsghdr *nlhdr;
1: + struct genlmsghdr *genlhdr;
1: + void *userhdr;
1: + struct nlattr **attrs;
1: + possible_net_t _net;
1: + void *user_ptr[2];
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct genl_small_ops {
1: + int (*doit)(struct sk_buff *, struct genl_info *);
1: + int (*dumpit)(struct sk_buff *, struct netlink_callback *);
1: + u8 cmd;
1: + u8 internal_flags;
1: + u8 flags;
1: + u8 validate;
1: +};
1: +
1: +enum genl_validate_flags {
1: + GENL_DONT_VALIDATE_STRICT = 1,
1: + GENL_DONT_VALIDATE_DUMP = 2,
1: + GENL_DONT_VALIDATE_DUMP_STRICT = 4,
1: +};
1: +
1: +struct listener {
1: + struct list_head list;
1: + pid_t pid;
1: + char valid;
1: +};
1: +
1: +struct listener_list {
1: + struct rw_semaphore sem;
1: + struct list_head list;
1: +};
1: +
1: +enum actions {
1: + REGISTER = 0,
1: + DEREGISTER = 1,
1: + CPU_DONT_CARE = 2,
1: +};
1: +
1: +struct tp_module {
1: + struct list_head list;
1: + struct module *mod;
1: +};
1: +
1: +struct tp_probes {
1: + struct callback_head rcu;
1: + struct tracepoint_func probes[0];
1: +};
1: +
1: +struct ftrace_hash {
1: + long unsigned int size_bits;
1: + struct hlist_head *buckets;
1: + long unsigned int count;
1: + long unsigned int flags;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ftrace_func_entry {
1: + struct hlist_node hlist;
1: + long unsigned int ip;
1: + long unsigned int direct;
1: +};
1: +
1: +enum ftrace_bug_type {
1: + FTRACE_BUG_UNKNOWN = 0,
1: + FTRACE_BUG_INIT = 1,
1: + FTRACE_BUG_NOP = 2,
1: + FTRACE_BUG_CALL = 3,
1: + FTRACE_BUG_UPDATE = 4,
1: +};
1: +
1: +enum {
1: + FTRACE_UPDATE_CALLS = 1,
1: + FTRACE_DISABLE_CALLS = 2,
1: + FTRACE_UPDATE_TRACE_FUNC = 4,
1: + FTRACE_START_FUNC_RET = 8,
1: + FTRACE_STOP_FUNC_RET = 16,
1: + FTRACE_MAY_SLEEP = 32,
1: +};
1: +
1: +enum {
1: + FTRACE_UPDATE_IGNORE = 0,
1: + FTRACE_UPDATE_MAKE_CALL = 1,
1: + FTRACE_UPDATE_MODIFY_CALL = 2,
1: + FTRACE_UPDATE_MAKE_NOP = 3,
1: +};
1: +
1: +enum {
1: + FTRACE_ITER_FILTER = 1,
1: + FTRACE_ITER_NOTRACE = 2,
1: + FTRACE_ITER_PRINTALL = 4,
1: + FTRACE_ITER_DO_PROBES = 8,
1: + FTRACE_ITER_PROBE = 16,
1: + FTRACE_ITER_MOD = 32,
1: + FTRACE_ITER_ENABLED = 64,
1: +};
1: +
1: +struct prog_entry;
1: +
1: +struct event_filter {
1: + struct prog_entry *prog;
1: + char *filter_string;
1: +};
1: +
1: +struct trace_array_cpu;
1: +
1: +struct array_buffer {
1: + struct trace_array *tr;
1: + struct trace_buffer *buffer;
1: + struct trace_array_cpu *data;
1: + u64 time_start;
1: + int cpu;
1: +};
1: +
1: +struct trace_pid_list;
1: +
1: +struct trace_options;
1: +
1: +struct trace_array {
1: + struct list_head list;
1: + char *name;
1: + struct array_buffer array_buffer;
1: + struct trace_pid_list *filtered_pids;
1: + struct trace_pid_list *filtered_no_pids;
1: + arch_spinlock_t max_lock;
1: + int buffer_disabled;
1: + int sys_refcount_enter;
1: + int sys_refcount_exit;
1: + struct trace_event_file *enter_syscall_files[441];
1: + struct trace_event_file *exit_syscall_files[441];
1: + int stop_count;
1: + int clock_id;
1: + int nr_topts;
1: + bool clear_trace;
1: + int buffer_percent;
1: + unsigned int n_err_log_entries;
1: + struct tracer *current_trace;
1: + unsigned int trace_flags;
1: + unsigned char trace_flags_index[32];
1: + unsigned int flags;
1: + raw_spinlock_t start_lock;
1: + struct list_head err_log;
1: + struct dentry *dir;
1: + struct dentry *options;
1: + struct dentry *percpu_dir;
1: + struct dentry *event_dir;
1: + struct trace_options *topts;
1: + struct list_head systems;
1: + struct list_head events;
1: + struct trace_event_file *trace_marker_file;
1: + cpumask_var_t tracing_cpumask;
1: + int ref;
1: + int trace_ref;
1: + struct ftrace_ops *ops;
1: + struct trace_pid_list *function_pids;
1: + struct trace_pid_list *function_no_pids;
1: + struct list_head func_probes;
1: + struct list_head mod_trace;
1: + struct list_head mod_notrace;
1: + int function_enabled;
1: + int time_stamp_abs_ref;
1: + struct list_head hist_vars;
1: +};
1: +
1: +struct tracer_flags;
1: +
1: +struct tracer {
1: + const char *name;
1: + int (*init)(struct trace_array *);
1: + void (*reset)(struct trace_array *);
1: + void (*start)(struct trace_array *);
1: + void (*stop)(struct trace_array *);
1: + int (*update_thresh)(struct trace_array *);
1: + void (*open)(struct trace_iterator *);
1: + void (*pipe_open)(struct trace_iterator *);
1: + void (*close)(struct trace_iterator *);
1: + void (*pipe_close)(struct trace_iterator *);
1: + ssize_t (*read)(struct trace_iterator *, struct file *, char *, size_t, loff_t *);
1: + ssize_t (*splice_read)(struct trace_iterator *, struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1: + void (*print_header)(struct seq_file *);
1: + enum print_line_t (*print_line)(struct trace_iterator *);
1: + int (*set_flag)(struct trace_array *, u32, u32, int);
1: + int (*flag_changed)(struct trace_array *, u32, int);
1: + struct tracer *next;
1: + struct tracer_flags *flags;
1: + int enabled;
1: + bool print_max;
1: + bool allow_instances;
1: + bool noboot;
1: +};
1: +
1: +struct event_subsystem;
1: +
1: +struct trace_subsystem_dir {
1: + struct list_head list;
1: + struct event_subsystem *subsystem;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: + int ref_count;
1: + int nr_events;
1: +};
1: +
1: +struct trace_array_cpu {
1: + atomic_t disabled;
1: + void *buffer_page;
1: + long unsigned int entries;
1: + long unsigned int saved_latency;
1: + long unsigned int critical_start;
1: + long unsigned int critical_end;
1: + long unsigned int critical_sequence;
1: + long unsigned int nice;
1: + long unsigned int policy;
1: + long unsigned int rt_priority;
1: + long unsigned int skipped_entries;
1: + u64 preempt_timestamp;
1: + pid_t pid;
1: + kuid_t uid;
1: + char comm[16];
1: + int ftrace_ignore_pid;
1: + bool ignore_pid;
1: +};
1: +
1: +struct trace_option_dentry;
1: +
1: +struct trace_options {
1: + struct tracer *tracer;
1: + struct trace_option_dentry *topts;
1: +};
1: +
1: +struct tracer_opt;
1: +
1: +struct trace_option_dentry {
1: + struct tracer_opt *opt;
1: + struct tracer_flags *flags;
1: + struct trace_array *tr;
1: + struct dentry *entry;
1: +};
1: +
1: +struct trace_pid_list {
1: + int pid_max;
1: + long unsigned int *pids;
1: +};
1: +
1: +enum {
1: + TRACE_PIDS = 1,
1: + TRACE_NO_PIDS = 2,
1: +};
1: +
1: +enum {
1: + TRACE_ARRAY_FL_GLOBAL = 1,
1: +};
1: +
1: +struct tracer_opt {
1: + const char *name;
1: + u32 bit;
1: +};
1: +
1: +struct tracer_flags {
1: + u32 val;
1: + struct tracer_opt *opts;
1: + struct tracer *trace;
1: +};
1: +
1: +enum {
1: + TRACE_FTRACE_BIT = 0,
1: + TRACE_FTRACE_NMI_BIT = 1,
1: + TRACE_FTRACE_IRQ_BIT = 2,
1: + TRACE_FTRACE_SIRQ_BIT = 3,
1: + TRACE_INTERNAL_BIT = 4,
1: + TRACE_INTERNAL_NMI_BIT = 5,
1: + TRACE_INTERNAL_IRQ_BIT = 6,
1: + TRACE_INTERNAL_SIRQ_BIT = 7,
1: + TRACE_BRANCH_BIT = 8,
1: + TRACE_IRQ_BIT = 9,
1: + TRACE_GRAPH_BIT = 10,
1: + TRACE_GRAPH_DEPTH_START_BIT = 11,
1: + TRACE_GRAPH_DEPTH_END_BIT = 12,
1: + TRACE_GRAPH_NOTRACE_BIT = 13,
1: + TRACE_TRANSITION_BIT = 14,
1: +};
1: +
1: +struct ftrace_mod_load {
1: + struct list_head list;
1: + char *func;
1: + char *module;
1: + int enable;
1: +};
1: +
1: +enum {
1: + FTRACE_HASH_FL_MOD = 1,
1: +};
1: +
1: +struct ftrace_func_command {
1: + struct list_head list;
1: + char *name;
1: + int (*func)(struct trace_array *, struct ftrace_hash *, char *, char *, char *, int);
1: +};
1: +
1: +struct ftrace_probe_ops {
1: + void (*func)(long unsigned int, long unsigned int, struct trace_array *, struct ftrace_probe_ops *, void *);
1: + int (*init)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *, void **);
1: + void (*free)(struct ftrace_probe_ops *, struct trace_array *, long unsigned int, void *);
1: + int (*print)(struct seq_file *, long unsigned int, struct ftrace_probe_ops *, void *);
1: +};
1: +
1: +typedef int (*ftrace_mapper_func)(void *);
1: +
1: +struct trace_parser {
1: + bool cont;
1: + char *buffer;
1: + unsigned int idx;
1: + unsigned int size;
1: +};
1: +
1: +enum trace_iterator_bits {
1: + TRACE_ITER_PRINT_PARENT_BIT = 0,
1: + TRACE_ITER_SYM_OFFSET_BIT = 1,
1: + TRACE_ITER_SYM_ADDR_BIT = 2,
1: + TRACE_ITER_VERBOSE_BIT = 3,
1: + TRACE_ITER_RAW_BIT = 4,
1: + TRACE_ITER_HEX_BIT = 5,
1: + TRACE_ITER_BIN_BIT = 6,
1: + TRACE_ITER_BLOCK_BIT = 7,
1: + TRACE_ITER_PRINTK_BIT = 8,
1: + TRACE_ITER_ANNOTATE_BIT = 9,
1: + TRACE_ITER_USERSTACKTRACE_BIT = 10,
1: + TRACE_ITER_SYM_USEROBJ_BIT = 11,
1: + TRACE_ITER_PRINTK_MSGONLY_BIT = 12,
1: + TRACE_ITER_CONTEXT_INFO_BIT = 13,
1: + TRACE_ITER_LATENCY_FMT_BIT = 14,
1: + TRACE_ITER_RECORD_CMD_BIT = 15,
1: + TRACE_ITER_RECORD_TGID_BIT = 16,
1: + TRACE_ITER_OVERWRITE_BIT = 17,
1: + TRACE_ITER_STOP_ON_FREE_BIT = 18,
1: + TRACE_ITER_IRQ_INFO_BIT = 19,
1: + TRACE_ITER_MARKERS_BIT = 20,
1: + TRACE_ITER_EVENT_FORK_BIT = 21,
1: + TRACE_ITER_PAUSE_ON_TRACE_BIT = 22,
1: + TRACE_ITER_FUNCTION_BIT = 23,
1: + TRACE_ITER_FUNC_FORK_BIT = 24,
1: + TRACE_ITER_DISPLAY_GRAPH_BIT = 25,
1: + TRACE_ITER_STACKTRACE_BIT = 26,
1: + TRACE_ITER_LAST_BIT = 27,
1: +};
1: +
1: +struct event_subsystem {
1: + struct list_head list;
1: + const char *name;
1: + struct event_filter *filter;
1: + int ref_count;
1: +};
1: +
1: +enum regex_type {
1: + MATCH_FULL = 0,
1: + MATCH_FRONT_ONLY = 1,
1: + MATCH_MIDDLE_ONLY = 2,
1: + MATCH_END_ONLY = 3,
1: + MATCH_GLOB = 4,
1: + MATCH_INDEX = 5,
1: +};
1: +
1: +enum {
1: + FTRACE_MODIFY_ENABLE_FL = 1,
1: + FTRACE_MODIFY_MAY_SLEEP_FL = 2,
1: +};
1: +
1: +struct ftrace_func_probe {
1: + struct ftrace_probe_ops *probe_ops;
1: + struct ftrace_ops ops;
1: + struct trace_array *tr;
1: + struct list_head list;
1: + void *data;
1: + int ref;
1: +};
1: +
1: +struct ftrace_page {
1: + struct ftrace_page *next;
1: + struct dyn_ftrace *records;
1: + int index;
1: + int size;
1: +};
1: +
1: +struct ftrace_rec_iter {
1: + struct ftrace_page *pg;
1: + int index;
1: +};
1: +
1: +struct ftrace_iterator {
1: + loff_t pos;
1: + loff_t func_pos;
1: + loff_t mod_pos;
1: + struct ftrace_page *pg;
1: + struct dyn_ftrace *func;
1: + struct ftrace_func_probe *probe;
1: + struct ftrace_func_entry *probe_entry;
1: + struct trace_parser parser;
1: + struct ftrace_hash *hash;
1: + struct ftrace_ops *ops;
1: + struct trace_array *tr;
1: + struct list_head *mod_list;
1: + int pidx;
1: + int idx;
1: + unsigned int flags;
1: +};
1: +
1: +struct ftrace_glob {
1: + char *search;
1: + unsigned int len;
1: + int type;
1: +};
1: +
1: +struct ftrace_func_map {
1: + struct ftrace_func_entry entry;
1: + void *data;
1: +};
1: +
1: +struct ftrace_func_mapper {
1: + struct ftrace_hash hash;
1: +};
1: +
1: +enum graph_filter_type {
1: + GRAPH_FILTER_NOTRACE = 0,
1: + GRAPH_FILTER_FUNCTION = 1,
1: +};
1: +
1: +struct ftrace_graph_data {
1: + struct ftrace_hash *hash;
1: + struct ftrace_func_entry *entry;
1: + int idx;
1: + enum graph_filter_type type;
1: + struct ftrace_hash *new_hash;
1: + const struct seq_operations *seq_ops;
1: + struct trace_parser parser;
1: +};
1: +
1: +struct ftrace_mod_func {
1: + struct list_head list;
1: + char *name;
1: + long unsigned int ip;
1: + unsigned int size;
1: +};
1: +
1: +struct ftrace_mod_map {
1: + struct callback_head rcu;
1: + struct list_head list;
1: + struct module *mod;
1: + long unsigned int start_addr;
1: + long unsigned int end_addr;
1: + struct list_head funcs;
1: + unsigned int num_funcs;
1: +};
1: +
1: +struct ftrace_init_func {
1: + struct list_head list;
1: + long unsigned int ip;
1: +};
1: +
1: +enum ring_buffer_type {
1: + RINGBUF_TYPE_DATA_TYPE_LEN_MAX = 28,
1: + RINGBUF_TYPE_PADDING = 29,
1: + RINGBUF_TYPE_TIME_EXTEND = 30,
1: + RINGBUF_TYPE_TIME_STAMP = 31,
1: +};
1: +
1: +enum ring_buffer_flags {
1: + RB_FL_OVERWRITE = 1,
1: +};
1: +
1: +struct ring_buffer_per_cpu;
1: +
1: +struct buffer_page;
1: +
1: +struct ring_buffer_iter {
1: + struct ring_buffer_per_cpu *cpu_buffer;
1: + long unsigned int head;
1: + long unsigned int next_event;
1: + struct buffer_page *head_page;
1: + struct buffer_page *cache_reader_page;
1: + long unsigned int cache_read;
1: + u64 read_stamp;
1: + u64 page_stamp;
1: + struct ring_buffer_event *event;
1: + int missed_events;
1: +};
1: +
1: +struct rb_irq_work {
1: + struct irq_work work;
1: + wait_queue_head_t waiters;
1: + wait_queue_head_t full_waiters;
1: + bool waiters_pending;
1: + bool full_waiters_pending;
1: + bool wakeup_full;
1: +};
1: +
1: +struct trace_buffer___2 {
1: + unsigned int flags;
1: + int cpus;
1: + atomic_t record_disabled;
1: + cpumask_var_t cpumask;
1: + struct lock_class_key *reader_lock_key;
1: + struct mutex mutex;
1: + struct ring_buffer_per_cpu **buffers;
1: + struct hlist_node node;
1: + u64 (*clock)();
1: + struct rb_irq_work irq_work;
1: + bool time_stamp_abs;
1: +};
1: +
1: +enum {
1: + RB_LEN_TIME_EXTEND = 8,
1: + RB_LEN_TIME_STAMP = 8,
1: +};
1: +
1: +struct buffer_data_page {
1: + u64 time_stamp;
1: + local_t commit;
1: + unsigned char data[0];
1: +};
1: +
1: +struct buffer_page {
1: + struct list_head list;
1: + local_t write;
1: + unsigned int read;
1: + local_t entries;
1: + long unsigned int real_end;
1: + struct buffer_data_page *page;
1: +};
1: +
1: +struct rb_event_info {
1: + u64 ts;
1: + u64 delta;
1: + u64 before;
1: + u64 after;
1: + long unsigned int length;
1: + struct buffer_page *tail_page;
1: + int add_timestamp;
1: +};
1: +
1: +enum {
1: + RB_ADD_STAMP_NONE = 0,
1: + RB_ADD_STAMP_EXTEND = 2,
1: + RB_ADD_STAMP_ABSOLUTE = 4,
1: + RB_ADD_STAMP_FORCE = 8,
1: +};
1: +
1: +enum {
1: + RB_CTX_TRANSITION = 0,
1: + RB_CTX_NMI = 1,
1: + RB_CTX_IRQ = 2,
1: + RB_CTX_SOFTIRQ = 3,
1: + RB_CTX_NORMAL = 4,
1: + RB_CTX_MAX = 5,
1: +};
1: +
1: +struct rb_time_struct {
1: + local64_t time;
1: +};
1: +
1: +typedef struct rb_time_struct rb_time_t;
1: +
1: +struct ring_buffer_per_cpu {
1: + int cpu;
1: + atomic_t record_disabled;
1: + atomic_t resize_disabled;
1: + struct trace_buffer___2 *buffer;
1: + raw_spinlock_t reader_lock;
1: + arch_spinlock_t lock;
1: + struct lock_class_key lock_key;
1: + struct buffer_data_page *free_page;
1: + long unsigned int nr_pages;
1: + unsigned int current_context;
1: + struct list_head *pages;
1: + struct buffer_page *head_page;
1: + struct buffer_page *tail_page;
1: + struct buffer_page *commit_page;
1: + struct buffer_page *reader_page;
1: + long unsigned int lost_events;
1: + long unsigned int last_overrun;
1: + long unsigned int nest;
1: + local_t entries_bytes;
1: + local_t entries;
1: + local_t overrun;
1: + local_t commit_overrun;
1: + local_t dropped_events;
1: + local_t committing;
1: + local_t commits;
1: + local_t pages_touched;
1: + local_t pages_read;
1: + long int last_pages_touch;
1: + size_t shortest_full;
1: + long unsigned int read;
1: + long unsigned int read_bytes;
1: + rb_time_t write_stamp;
1: + rb_time_t before_stamp;
1: + u64 read_stamp;
1: + long int nr_pages_to_update;
1: + struct list_head new_pages;
1: + struct work_struct update_pages_work;
1: + struct completion update_done;
1: + struct rb_irq_work irq_work;
1: +};
1: +
1: +struct trace_export {
1: + struct trace_export *next;
1: + void (*write)(struct trace_export *, const void *, unsigned int);
1: + int flags;
1: +};
1: +
1: +enum trace_iter_flags {
1: + TRACE_FILE_LAT_FMT = 1,
1: + TRACE_FILE_ANNOTATE = 2,
1: + TRACE_FILE_TIME_IN_NS = 4,
1: +};
1: +
1: +enum event_trigger_type {
1: + ETT_NONE = 0,
1: + ETT_TRACE_ONOFF = 1,
1: + ETT_SNAPSHOT = 2,
1: + ETT_STACKTRACE = 4,
1: + ETT_EVENT_ENABLE = 8,
1: + ETT_EVENT_HIST = 16,
1: + ETT_HIST_ENABLE = 32,
1: +};
1: +
1: +enum trace_type {
1: + __TRACE_FIRST_TYPE = 0,
1: + TRACE_FN = 1,
1: + TRACE_CTX = 2,
1: + TRACE_WAKE = 3,
1: + TRACE_STACK = 4,
1: + TRACE_PRINT = 5,
1: + TRACE_BPRINT = 6,
1: + TRACE_MMIO_RW = 7,
1: + TRACE_MMIO_MAP = 8,
1: + TRACE_BRANCH = 9,
1: + TRACE_GRAPH_RET = 10,
1: + TRACE_GRAPH_ENT = 11,
1: + TRACE_USER_STACK = 12,
1: + TRACE_BLK = 13,
1: + TRACE_BPUTS = 14,
1: + TRACE_HWLAT = 15,
1: + TRACE_RAW_DATA = 16,
1: + __TRACE_LAST_TYPE = 17,
1: +};
1: +
1: +struct ftrace_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: +};
1: +
1: +struct stack_entry {
1: + struct trace_entry ent;
1: + int size;
1: + long unsigned int caller[8];
1: +};
1: +
1: +struct bprint_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *fmt;
1: + u32 buf[0];
1: +};
1: +
1: +struct print_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + char buf[0];
1: +};
1: +
1: +struct raw_data_entry {
1: + struct trace_entry ent;
1: + unsigned int id;
1: + char buf[0];
1: +};
1: +
1: +struct bputs_entry {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: + const char *str;
1: +};
1: +
1: +enum trace_flag_type {
1: + TRACE_FLAG_IRQS_OFF = 1,
1: + TRACE_FLAG_IRQS_NOSUPPORT = 2,
1: + TRACE_FLAG_NEED_RESCHED = 4,
1: + TRACE_FLAG_HARDIRQ = 8,
1: + TRACE_FLAG_SOFTIRQ = 16,
1: + TRACE_FLAG_PREEMPT_RESCHED = 32,
1: + TRACE_FLAG_NMI = 64,
1: +};
1: +
1: +typedef bool (*cond_update_fn_t)(struct trace_array *, void *);
1: +
1: +enum trace_iterator_flags {
1: + TRACE_ITER_PRINT_PARENT = 1,
1: + TRACE_ITER_SYM_OFFSET = 2,
1: + TRACE_ITER_SYM_ADDR = 4,
1: + TRACE_ITER_VERBOSE = 8,
1: + TRACE_ITER_RAW = 16,
1: + TRACE_ITER_HEX = 32,
1: + TRACE_ITER_BIN = 64,
1: + TRACE_ITER_BLOCK = 128,
1: + TRACE_ITER_PRINTK = 256,
1: + TRACE_ITER_ANNOTATE = 512,
1: + TRACE_ITER_USERSTACKTRACE = 1024,
1: + TRACE_ITER_SYM_USEROBJ = 2048,
1: + TRACE_ITER_PRINTK_MSGONLY = 4096,
1: + TRACE_ITER_CONTEXT_INFO = 8192,
1: + TRACE_ITER_LATENCY_FMT = 16384,
1: + TRACE_ITER_RECORD_CMD = 32768,
1: + TRACE_ITER_RECORD_TGID = 65536,
1: + TRACE_ITER_OVERWRITE = 131072,
1: + TRACE_ITER_STOP_ON_FREE = 262144,
1: + TRACE_ITER_IRQ_INFO = 524288,
1: + TRACE_ITER_MARKERS = 1048576,
1: + TRACE_ITER_EVENT_FORK = 2097152,
1: + TRACE_ITER_PAUSE_ON_TRACE = 4194304,
1: + TRACE_ITER_FUNCTION = 8388608,
1: + TRACE_ITER_FUNC_FORK = 16777216,
1: + TRACE_ITER_DISPLAY_GRAPH = 33554432,
1: + TRACE_ITER_STACKTRACE = 67108864,
1: +};
1: +
1: +struct saved_cmdlines_buffer {
1: + unsigned int map_pid_to_cmdline[32769];
1: + unsigned int *map_cmdline_to_pid;
1: + unsigned int cmdline_num;
1: + int cmdline_idx;
1: + char *saved_cmdlines;
1: +};
1: +
1: +struct ftrace_stack {
1: + long unsigned int calls[16384];
1: +};
1: +
1: +struct ftrace_stacks {
1: + struct ftrace_stack stacks[4];
1: +};
1: +
1: +struct trace_buffer_struct {
1: + int nesting;
1: + char buffer[4096];
1: +};
1: +
1: +struct ftrace_buffer_info {
1: + struct trace_iterator iter;
1: + void *spare;
1: + unsigned int spare_cpu;
1: + unsigned int read;
1: +};
1: +
1: +struct err_info {
1: + const char **errs;
1: + u8 type;
1: + u8 pos;
1: + u64 ts;
1: +};
1: +
1: +struct tracing_log_err {
1: + struct list_head list;
1: + struct err_info info;
1: + char loc[128];
1: + char cmd[256];
1: +};
1: +
1: +struct buffer_ref {
1: + struct trace_buffer *buffer;
1: + void *page;
1: + int cpu;
1: + refcount_t refcount;
1: +};
1: +
1: +struct ctx_switch_entry {
1: + struct trace_entry ent;
1: + unsigned int prev_pid;
1: + unsigned int next_pid;
1: + unsigned int next_cpu;
1: + unsigned char prev_prio;
1: + unsigned char prev_state;
1: + unsigned char next_prio;
1: + unsigned char next_state;
1: +};
1: +
1: +struct userstack_entry {
1: + struct trace_entry ent;
1: + unsigned int tgid;
1: + long unsigned int caller[8];
1: +};
1: +
1: +struct hwlat_entry {
1: + struct trace_entry ent;
1: + u64 duration;
1: + u64 outer_duration;
1: + u64 nmi_total_ts;
1: + struct timespec64 timestamp;
1: + unsigned int nmi_count;
1: + unsigned int seqnum;
1: + unsigned int count;
1: +};
1: +
1: +struct trace_mark {
1: + long long unsigned int val;
1: + char sym;
1: +};
1: +
1: +typedef int (*cmp_func_t)(const void *, const void *);
1: +
1: +struct tracer_stat {
1: + const char *name;
1: + void * (*stat_start)(struct tracer_stat *);
1: + void * (*stat_next)(void *, int);
1: + cmp_func_t stat_cmp;
1: + int (*stat_show)(struct seq_file *, void *);
1: + void (*stat_release)(void *);
1: + int (*stat_headers)(struct seq_file *);
1: +};
1: +
1: +struct stat_node {
1: + struct rb_node node;
1: + void *stat;
1: +};
1: +
1: +struct stat_session {
1: + struct list_head session_list;
1: + struct tracer_stat *ts;
1: + struct rb_root stat_root;
1: + struct mutex stat_mutex;
1: + struct dentry *file;
1: +};
1: +
1: +struct trace_bprintk_fmt {
1: + struct list_head list;
1: + const char *fmt;
1: +};
1: +
1: +enum {
1: + TRACE_FUNC_OPT_STACK = 1,
1: +};
1: +
1: +struct ftrace_func_mapper___2;
1: +
1: +enum {
1: + TRACE_NOP_OPT_ACCEPT = 1,
1: + TRACE_NOP_OPT_REFUSE = 2,
1: +};
1: +
1: +struct ftrace_graph_ent {
1: + long unsigned int func;
1: + int depth;
1: +} __attribute__((packed));
1: +
1: +struct ftrace_graph_ret {
1: + long unsigned int func;
1: + long unsigned int overrun;
1: + long long unsigned int calltime;
1: + long long unsigned int rettime;
1: + int depth;
1: +} __attribute__((packed));
1: +
1: +typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *);
1: +
1: +typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *);
1: +
1: +struct fgraph_ops {
1: + trace_func_graph_ent_t entryfunc;
1: + trace_func_graph_ret_t retfunc;
1: +};
1: +
1: +struct ftrace_graph_ent_entry {
1: + struct trace_entry ent;
1: + struct ftrace_graph_ent graph_ent;
1: +} __attribute__((packed));
1: +
1: +struct ftrace_graph_ret_entry {
1: + struct trace_entry ent;
1: + struct ftrace_graph_ret ret;
1: +} __attribute__((packed));
1: +
1: +struct fgraph_cpu_data {
1: + pid_t last_pid;
1: + int depth;
1: + int depth_irq;
1: + int ignore;
1: + long unsigned int enter_funcs[50];
1: +};
1: +
1: +struct fgraph_data {
1: + struct fgraph_cpu_data *cpu_data;
1: + struct ftrace_graph_ent_entry ent;
1: + struct ftrace_graph_ret_entry ret;
1: + int failed;
1: + int cpu;
1: +} __attribute__((packed));
1: +
1: +enum {
1: + FLAGS_FILL_FULL = 268435456,
1: + FLAGS_FILL_START = 536870912,
1: + FLAGS_FILL_END = 805306368,
1: +};
1: +
1: +struct blk_crypto_key;
1: +
1: +struct bio_crypt_ctx {
1: + const struct blk_crypto_key *bc_key;
1: + u64 bc_dun[4];
1: +};
1: +
1: +typedef __u32 blk_mq_req_flags_t;
1: +
1: +struct disk_stats {
1: + u64 nsecs[4];
1: + long unsigned int sectors[4];
1: + long unsigned int ios[4];
1: + long unsigned int merges[4];
1: + long unsigned int io_ticks;
1: + local_t in_flight[2];
1: +};
1: +
1: +struct blk_mq_ctxs;
1: +
1: +struct blk_mq_ctx {
1: + struct {
1: + spinlock_t lock;
1: + struct list_head rq_lists[3];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + unsigned int cpu;
1: + short unsigned int index_hw[3];
1: + struct blk_mq_hw_ctx *hctxs[3];
1: + long unsigned int rq_dispatched[2];
1: + long unsigned int rq_merged;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int rq_completed[2];
1: + struct request_queue *queue;
1: + struct blk_mq_ctxs *ctxs;
1: + struct kobject kobj;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sbitmap_word;
1: +
1: +struct sbitmap {
1: + unsigned int depth;
1: + unsigned int shift;
1: + unsigned int map_nr;
1: + struct sbitmap_word *map;
1: +};
1: +
1: +struct blk_mq_tags;
1: +
1: +struct blk_mq_hw_ctx {
1: + struct {
1: + spinlock_t lock;
1: + struct list_head dispatch;
1: + long unsigned int state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct delayed_work run_work;
1: + cpumask_var_t cpumask;
1: + int next_cpu;
1: + int next_cpu_batch;
1: + long unsigned int flags;
1: + void *sched_data;
1: + struct request_queue *queue;
1: + struct blk_flush_queue *fq;
1: + void *driver_data;
1: + struct sbitmap ctx_map;
1: + struct blk_mq_ctx *dispatch_from;
1: + unsigned int dispatch_busy;
1: + short unsigned int type;
1: + short unsigned int nr_ctx;
1: + struct blk_mq_ctx **ctxs;
1: + spinlock_t dispatch_wait_lock;
1: + wait_queue_entry_t dispatch_wait;
1: + atomic_t wait_index;
1: + struct blk_mq_tags *tags;
1: + struct blk_mq_tags *sched_tags;
1: + long unsigned int queued;
1: + long unsigned int run;
1: + long unsigned int dispatched[7];
1: + unsigned int numa_node;
1: + unsigned int queue_num;
1: + atomic_t nr_active;
1: + atomic_t elevator_queued;
1: + struct hlist_node cpuhp_online;
1: + struct hlist_node cpuhp_dead;
1: + struct kobject kobj;
1: + long unsigned int poll_considered;
1: + long unsigned int poll_invoked;
1: + long unsigned int poll_success;
1: + struct list_head hctx_list;
1: + struct srcu_struct srcu[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blk_mq_alloc_data {
1: + struct request_queue *q;
1: + blk_mq_req_flags_t flags;
1: + unsigned int shallow_depth;
1: + unsigned int cmd_flags;
1: + struct blk_mq_ctx *ctx;
1: + struct blk_mq_hw_ctx *hctx;
1: +};
1: +
1: +struct blk_stat_callback {
1: + struct list_head list;
1: + struct timer_list timer;
1: + struct blk_rq_stat *cpu_stat;
1: + int (*bucket_fn)(const struct request *);
1: + unsigned int buckets;
1: + struct blk_rq_stat *stat;
1: + void (*timer_fn)(struct blk_stat_callback *);
1: + void *data;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct blk_trace {
1: + int trace_state;
1: + struct rchan *rchan;
1: + long unsigned int *sequence;
1: + unsigned char *msg_data;
1: + u16 act_mask;
1: + u64 start_lba;
1: + u64 end_lba;
1: + u32 pid;
1: + u32 dev;
1: + struct dentry *dir;
1: + struct dentry *dropped_file;
1: + struct dentry *msg_file;
1: + struct list_head running_list;
1: + atomic_t dropped;
1: +};
1: +
1: +struct blk_flush_queue {
1: + unsigned int flush_pending_idx: 1;
1: + unsigned int flush_running_idx: 1;
1: + blk_status_t rq_status;
1: + long unsigned int flush_pending_since;
1: + struct list_head flush_queue[2];
1: + struct list_head flush_data_in_flight;
1: + struct request *flush_rq;
1: + struct lock_class_key key;
1: + spinlock_t mq_flush_lock;
1: +};
1: +
1: +struct blk_mq_queue_map {
1: + unsigned int *mq_map;
1: + unsigned int nr_queues;
1: + unsigned int queue_offset;
1: +};
1: +
1: +struct sbq_wait_state;
1: +
1: +struct sbitmap_queue {
1: + struct sbitmap sb;
1: + unsigned int *alloc_hint;
1: + unsigned int wake_batch;
1: + atomic_t wake_index;
1: + struct sbq_wait_state *ws;
1: + atomic_t ws_active;
1: + bool round_robin;
1: + unsigned int min_shallow_depth;
1: +};
1: +
1: +struct blk_mq_tag_set {
1: + struct blk_mq_queue_map map[3];
1: + unsigned int nr_maps;
1: + const struct blk_mq_ops *ops;
1: + unsigned int nr_hw_queues;
1: + unsigned int queue_depth;
1: + unsigned int reserved_tags;
1: + unsigned int cmd_size;
1: + int numa_node;
1: + unsigned int timeout;
1: + unsigned int flags;
1: + void *driver_data;
1: + atomic_t active_queues_shared_sbitmap;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct blk_mq_tags **tags;
1: + struct mutex tag_list_lock;
1: + struct list_head tag_list;
1: +};
1: +
1: +enum blktrace_cat {
1: + BLK_TC_READ = 1,
1: + BLK_TC_WRITE = 2,
1: + BLK_TC_FLUSH = 4,
1: + BLK_TC_SYNC = 8,
1: + BLK_TC_SYNCIO = 8,
1: + BLK_TC_QUEUE = 16,
1: + BLK_TC_REQUEUE = 32,
1: + BLK_TC_ISSUE = 64,
1: + BLK_TC_COMPLETE = 128,
1: + BLK_TC_FS = 256,
1: + BLK_TC_PC = 512,
1: + BLK_TC_NOTIFY = 1024,
1: + BLK_TC_AHEAD = 2048,
1: + BLK_TC_META = 4096,
1: + BLK_TC_DISCARD = 8192,
1: + BLK_TC_DRV_DATA = 16384,
1: + BLK_TC_FUA = 32768,
1: + BLK_TC_END = 32768,
1: +};
1: +
1: +enum blktrace_act {
1: + __BLK_TA_QUEUE = 1,
1: + __BLK_TA_BACKMERGE = 2,
1: + __BLK_TA_FRONTMERGE = 3,
1: + __BLK_TA_GETRQ = 4,
1: + __BLK_TA_SLEEPRQ = 5,
1: + __BLK_TA_REQUEUE = 6,
1: + __BLK_TA_ISSUE = 7,
1: + __BLK_TA_COMPLETE = 8,
1: + __BLK_TA_PLUG = 9,
1: + __BLK_TA_UNPLUG_IO = 10,
1: + __BLK_TA_UNPLUG_TIMER = 11,
1: + __BLK_TA_INSERT = 12,
1: + __BLK_TA_SPLIT = 13,
1: + __BLK_TA_BOUNCE = 14,
1: + __BLK_TA_REMAP = 15,
1: + __BLK_TA_ABORT = 16,
1: + __BLK_TA_DRV_DATA = 17,
1: + __BLK_TA_CGROUP = 256,
1: +};
1: +
1: +enum blktrace_notify {
1: + __BLK_TN_PROCESS = 0,
1: + __BLK_TN_TIMESTAMP = 1,
1: + __BLK_TN_MESSAGE = 2,
1: + __BLK_TN_CGROUP = 256,
1: +};
1: +
1: +struct blk_io_trace {
1: + __u32 magic;
1: + __u32 sequence;
1: + __u64 time;
1: + __u64 sector;
1: + __u32 bytes;
1: + __u32 action;
1: + __u32 pid;
1: + __u32 device;
1: + __u32 cpu;
1: + __u16 error;
1: + __u16 pdu_len;
1: +};
1: +
1: +struct blk_io_trace_remap {
1: + __be32 device_from;
1: + __be32 device_to;
1: + __be64 sector_from;
1: +};
1: +
1: +enum {
1: + Blktrace_setup = 1,
1: + Blktrace_running = 2,
1: + Blktrace_stopped = 3,
1: +};
1: +
1: +struct blk_user_trace_setup {
1: + char name[32];
1: + __u16 act_mask;
1: + __u32 buf_size;
1: + __u32 buf_nr;
1: + __u64 start_lba;
1: + __u64 end_lba;
1: + __u32 pid;
1: +};
1: +
1: +struct sbitmap_word {
1: + long unsigned int depth;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int word;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int cleared;
1: + spinlock_t swap_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sbq_wait_state {
1: + atomic_t wait_cnt;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blk_mq_tags {
1: + unsigned int nr_tags;
1: + unsigned int nr_reserved_tags;
1: + atomic_t active_queues;
1: + struct sbitmap_queue *bitmap_tags;
1: + struct sbitmap_queue *breserved_tags;
1: + struct sbitmap_queue __bitmap_tags;
1: + struct sbitmap_queue __breserved_tags;
1: + struct request **rqs;
1: + struct request **static_rqs;
1: + struct list_head page_list;
1: +};
1: +
1: +struct blk_mq_queue_data {
1: + struct request *rq;
1: + bool last;
1: +};
1: +
1: +enum blk_crypto_mode_num {
1: + BLK_ENCRYPTION_MODE_INVALID = 0,
1: + BLK_ENCRYPTION_MODE_AES_256_XTS = 1,
1: + BLK_ENCRYPTION_MODE_AES_128_CBC_ESSIV = 2,
1: + BLK_ENCRYPTION_MODE_ADIANTUM = 3,
1: + BLK_ENCRYPTION_MODE_MAX = 4,
1: +};
1: +
1: +struct blk_crypto_config {
1: + enum blk_crypto_mode_num crypto_mode;
1: + unsigned int data_unit_size;
1: + unsigned int dun_bytes;
1: +};
1: +
1: +struct blk_crypto_key {
1: + struct blk_crypto_config crypto_cfg;
1: + unsigned int data_unit_size_bits;
1: + unsigned int size;
1: + u8 raw[64];
1: +};
1: +
1: +struct blk_mq_ctxs {
1: + struct kobject kobj;
1: + struct blk_mq_ctx *queue_ctx;
1: +};
1: +
1: +typedef void blk_log_action_t(struct trace_iterator *, const char *, bool);
1: +
1: +struct ftrace_event_field {
1: + struct list_head link;
1: + const char *name;
1: + const char *type;
1: + int filter_type;
1: + int offset;
1: + int size;
1: + int is_signed;
1: +};
1: +
1: +enum {
1: + FORMAT_HEADER = 1,
1: + FORMAT_FIELD_SEPERATOR = 2,
1: + FORMAT_PRINTFMT = 3,
1: +};
1: +
1: +struct event_probe_data {
1: + struct trace_event_file *file;
1: + long unsigned int count;
1: + int ref;
1: + bool enable;
1: +};
1: +
1: +struct syscall_trace_enter {
1: + struct trace_entry ent;
1: + int nr;
1: + long unsigned int args[0];
1: +};
1: +
1: +struct syscall_trace_exit {
1: + struct trace_entry ent;
1: + int nr;
1: + long int ret;
1: +};
1: +
1: +struct syscall_tp_t {
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int ret;
1: +};
1: +
1: +struct syscall_tp_t___2 {
1: + long long unsigned int regs;
1: + long unsigned int syscall_nr;
1: + long unsigned int args[6];
1: +};
1: +
1: +typedef long unsigned int perf_trace_t[256];
1: +
1: +struct filter_pred;
1: +
1: +struct prog_entry {
1: + int target;
1: + int when_to_branch;
1: + struct filter_pred *pred;
1: +};
1: +
1: +typedef int (*filter_pred_fn_t)(struct filter_pred *, void *);
1: +
1: +struct regex;
1: +
1: +typedef int (*regex_match_func)(char *, struct regex *, int);
1: +
1: +struct regex {
1: + char pattern[256];
1: + int len;
1: + int field_len;
1: + regex_match_func match;
1: +};
1: +
1: +struct filter_pred {
1: + filter_pred_fn_t fn;
1: + u64 val;
1: + struct regex regex;
1: + short unsigned int *ops;
1: + struct ftrace_event_field *field;
1: + int offset;
1: + int not;
1: + int op;
1: +};
1: +
1: +enum filter_op_ids {
1: + OP_GLOB = 0,
1: + OP_NE = 1,
1: + OP_EQ = 2,
1: + OP_LE = 3,
1: + OP_LT = 4,
1: + OP_GE = 5,
1: + OP_GT = 6,
1: + OP_BAND = 7,
1: + OP_MAX = 8,
1: +};
1: +
1: +enum {
1: + FILT_ERR_NONE = 0,
1: + FILT_ERR_INVALID_OP = 1,
1: + FILT_ERR_TOO_MANY_OPEN = 2,
1: + FILT_ERR_TOO_MANY_CLOSE = 3,
1: + FILT_ERR_MISSING_QUOTE = 4,
1: + FILT_ERR_OPERAND_TOO_LONG = 5,
1: + FILT_ERR_EXPECT_STRING = 6,
1: + FILT_ERR_EXPECT_DIGIT = 7,
1: + FILT_ERR_ILLEGAL_FIELD_OP = 8,
1: + FILT_ERR_FIELD_NOT_FOUND = 9,
1: + FILT_ERR_ILLEGAL_INTVAL = 10,
1: + FILT_ERR_BAD_SUBSYS_FILTER = 11,
1: + FILT_ERR_TOO_MANY_PREDS = 12,
1: + FILT_ERR_INVALID_FILTER = 13,
1: + FILT_ERR_IP_FIELD_ONLY = 14,
1: + FILT_ERR_INVALID_VALUE = 15,
1: + FILT_ERR_ERRNO = 16,
1: + FILT_ERR_NO_FILTER = 17,
1: +};
1: +
1: +struct filter_parse_error {
1: + int lasterr;
1: + int lasterr_pos;
1: +};
1: +
1: +typedef int (*parse_pred_fn)(const char *, void *, int, struct filter_parse_error *, struct filter_pred **);
1: +
1: +enum {
1: + INVERT = 1,
1: + PROCESS_AND = 2,
1: + PROCESS_OR = 4,
1: +};
1: +
1: +enum {
1: + TOO_MANY_CLOSE = 4294967295,
1: + TOO_MANY_OPEN = 4294967294,
1: + MISSING_QUOTE = 4294967293,
1: +};
1: +
1: +struct filter_list {
1: + struct list_head list;
1: + struct event_filter *filter;
1: +};
1: +
1: +struct function_filter_data {
1: + struct ftrace_ops *ops;
1: + int first_filter;
1: + int first_notrace;
1: +};
1: +
1: +struct event_trigger_ops;
1: +
1: +struct event_command;
1: +
1: +struct event_trigger_data {
1: + long unsigned int count;
1: + int ref;
1: + struct event_trigger_ops *ops;
1: + struct event_command *cmd_ops;
1: + struct event_filter *filter;
1: + char *filter_str;
1: + void *private_data;
1: + bool paused;
1: + bool paused_tmp;
1: + struct list_head list;
1: + char *name;
1: + struct list_head named_list;
1: + struct event_trigger_data *named_data;
1: +};
1: +
1: +struct event_trigger_ops {
1: + void (*func)(struct event_trigger_data *, void *, struct ring_buffer_event *);
1: + int (*init)(struct event_trigger_ops *, struct event_trigger_data *);
1: + void (*free)(struct event_trigger_ops *, struct event_trigger_data *);
1: + int (*print)(struct seq_file *, struct event_trigger_ops *, struct event_trigger_data *);
1: +};
1: +
1: +struct event_command {
1: + struct list_head list;
1: + char *name;
1: + enum event_trigger_type trigger_type;
1: + int flags;
1: + int (*func)(struct event_command *, struct trace_event_file *, char *, char *, char *);
1: + int (*reg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: + void (*unreg)(char *, struct event_trigger_ops *, struct event_trigger_data *, struct trace_event_file *);
1: + void (*unreg_all)(struct trace_event_file *);
1: + int (*set_filter)(char *, struct event_trigger_data *, struct trace_event_file *);
1: + struct event_trigger_ops * (*get_trigger_ops)(char *, char *);
1: +};
1: +
1: +struct enable_trigger_data {
1: + struct trace_event_file *file;
1: + bool enable;
1: + bool hist;
1: +};
1: +
1: +enum event_command_flags {
1: + EVENT_CMD_FL_POST_TRIGGER = 1,
1: + EVENT_CMD_FL_NEEDS_REC = 2,
1: +};
1: +
1: +enum bpf_func_id {
1: + BPF_FUNC_unspec = 0,
1: + BPF_FUNC_map_lookup_elem = 1,
1: + BPF_FUNC_map_update_elem = 2,
1: + BPF_FUNC_map_delete_elem = 3,
1: + BPF_FUNC_probe_read = 4,
1: + BPF_FUNC_ktime_get_ns = 5,
1: + BPF_FUNC_trace_printk = 6,
1: + BPF_FUNC_get_prandom_u32 = 7,
1: + BPF_FUNC_get_smp_processor_id = 8,
1: + BPF_FUNC_skb_store_bytes = 9,
1: + BPF_FUNC_l3_csum_replace = 10,
1: + BPF_FUNC_l4_csum_replace = 11,
1: + BPF_FUNC_tail_call = 12,
1: + BPF_FUNC_clone_redirect = 13,
1: + BPF_FUNC_get_current_pid_tgid = 14,
1: + BPF_FUNC_get_current_uid_gid = 15,
1: + BPF_FUNC_get_current_comm = 16,
1: + BPF_FUNC_get_cgroup_classid = 17,
1: + BPF_FUNC_skb_vlan_push = 18,
1: + BPF_FUNC_skb_vlan_pop = 19,
1: + BPF_FUNC_skb_get_tunnel_key = 20,
1: + BPF_FUNC_skb_set_tunnel_key = 21,
1: + BPF_FUNC_perf_event_read = 22,
1: + BPF_FUNC_redirect = 23,
1: + BPF_FUNC_get_route_realm = 24,
1: + BPF_FUNC_perf_event_output = 25,
1: + BPF_FUNC_skb_load_bytes = 26,
1: + BPF_FUNC_get_stackid = 27,
1: + BPF_FUNC_csum_diff = 28,
1: + BPF_FUNC_skb_get_tunnel_opt = 29,
1: + BPF_FUNC_skb_set_tunnel_opt = 30,
1: + BPF_FUNC_skb_change_proto = 31,
1: + BPF_FUNC_skb_change_type = 32,
1: + BPF_FUNC_skb_under_cgroup = 33,
1: + BPF_FUNC_get_hash_recalc = 34,
1: + BPF_FUNC_get_current_task = 35,
1: + BPF_FUNC_probe_write_user = 36,
1: + BPF_FUNC_current_task_under_cgroup = 37,
1: + BPF_FUNC_skb_change_tail = 38,
1: + BPF_FUNC_skb_pull_data = 39,
1: + BPF_FUNC_csum_update = 40,
1: + BPF_FUNC_set_hash_invalid = 41,
1: + BPF_FUNC_get_numa_node_id = 42,
1: + BPF_FUNC_skb_change_head = 43,
1: + BPF_FUNC_xdp_adjust_head = 44,
1: + BPF_FUNC_probe_read_str = 45,
1: + BPF_FUNC_get_socket_cookie = 46,
1: + BPF_FUNC_get_socket_uid = 47,
1: + BPF_FUNC_set_hash = 48,
1: + BPF_FUNC_setsockopt = 49,
1: + BPF_FUNC_skb_adjust_room = 50,
1: + BPF_FUNC_redirect_map = 51,
1: + BPF_FUNC_sk_redirect_map = 52,
1: + BPF_FUNC_sock_map_update = 53,
1: + BPF_FUNC_xdp_adjust_meta = 54,
1: + BPF_FUNC_perf_event_read_value = 55,
1: + BPF_FUNC_perf_prog_read_value = 56,
1: + BPF_FUNC_getsockopt = 57,
1: + BPF_FUNC_override_return = 58,
1: + BPF_FUNC_sock_ops_cb_flags_set = 59,
1: + BPF_FUNC_msg_redirect_map = 60,
1: + BPF_FUNC_msg_apply_bytes = 61,
1: + BPF_FUNC_msg_cork_bytes = 62,
1: + BPF_FUNC_msg_pull_data = 63,
1: + BPF_FUNC_bind = 64,
1: + BPF_FUNC_xdp_adjust_tail = 65,
1: + BPF_FUNC_skb_get_xfrm_state = 66,
1: + BPF_FUNC_get_stack = 67,
1: + BPF_FUNC_skb_load_bytes_relative = 68,
1: + BPF_FUNC_fib_lookup = 69,
1: + BPF_FUNC_sock_hash_update = 70,
1: + BPF_FUNC_msg_redirect_hash = 71,
1: + BPF_FUNC_sk_redirect_hash = 72,
1: + BPF_FUNC_lwt_push_encap = 73,
1: + BPF_FUNC_lwt_seg6_store_bytes = 74,
1: + BPF_FUNC_lwt_seg6_adjust_srh = 75,
1: + BPF_FUNC_lwt_seg6_action = 76,
1: + BPF_FUNC_rc_repeat = 77,
1: + BPF_FUNC_rc_keydown = 78,
1: + BPF_FUNC_skb_cgroup_id = 79,
1: + BPF_FUNC_get_current_cgroup_id = 80,
1: + BPF_FUNC_get_local_storage = 81,
1: + BPF_FUNC_sk_select_reuseport = 82,
1: + BPF_FUNC_skb_ancestor_cgroup_id = 83,
1: + BPF_FUNC_sk_lookup_tcp = 84,
1: + BPF_FUNC_sk_lookup_udp = 85,
1: + BPF_FUNC_sk_release = 86,
1: + BPF_FUNC_map_push_elem = 87,
1: + BPF_FUNC_map_pop_elem = 88,
1: + BPF_FUNC_map_peek_elem = 89,
1: + BPF_FUNC_msg_push_data = 90,
1: + BPF_FUNC_msg_pop_data = 91,
1: + BPF_FUNC_rc_pointer_rel = 92,
1: + BPF_FUNC_spin_lock = 93,
1: + BPF_FUNC_spin_unlock = 94,
1: + BPF_FUNC_sk_fullsock = 95,
1: + BPF_FUNC_tcp_sock = 96,
1: + BPF_FUNC_skb_ecn_set_ce = 97,
1: + BPF_FUNC_get_listener_sock = 98,
1: + BPF_FUNC_skc_lookup_tcp = 99,
1: + BPF_FUNC_tcp_check_syncookie = 100,
1: + BPF_FUNC_sysctl_get_name = 101,
1: + BPF_FUNC_sysctl_get_current_value = 102,
1: + BPF_FUNC_sysctl_get_new_value = 103,
1: + BPF_FUNC_sysctl_set_new_value = 104,
1: + BPF_FUNC_strtol = 105,
1: + BPF_FUNC_strtoul = 106,
1: + BPF_FUNC_sk_storage_get = 107,
1: + BPF_FUNC_sk_storage_delete = 108,
1: + BPF_FUNC_send_signal = 109,
1: + BPF_FUNC_tcp_gen_syncookie = 110,
1: + BPF_FUNC_skb_output = 111,
1: + BPF_FUNC_probe_read_user = 112,
1: + BPF_FUNC_probe_read_kernel = 113,
1: + BPF_FUNC_probe_read_user_str = 114,
1: + BPF_FUNC_probe_read_kernel_str = 115,
1: + BPF_FUNC_tcp_send_ack = 116,
1: + BPF_FUNC_send_signal_thread = 117,
1: + BPF_FUNC_jiffies64 = 118,
1: + BPF_FUNC_read_branch_records = 119,
1: + BPF_FUNC_get_ns_current_pid_tgid = 120,
1: + BPF_FUNC_xdp_output = 121,
1: + BPF_FUNC_get_netns_cookie = 122,
1: + BPF_FUNC_get_current_ancestor_cgroup_id = 123,
1: + BPF_FUNC_sk_assign = 124,
1: + BPF_FUNC_ktime_get_boot_ns = 125,
1: + BPF_FUNC_seq_printf = 126,
1: + BPF_FUNC_seq_write = 127,
1: + BPF_FUNC_sk_cgroup_id = 128,
1: + BPF_FUNC_sk_ancestor_cgroup_id = 129,
1: + BPF_FUNC_ringbuf_output = 130,
1: + BPF_FUNC_ringbuf_reserve = 131,
1: + BPF_FUNC_ringbuf_submit = 132,
1: + BPF_FUNC_ringbuf_discard = 133,
1: + BPF_FUNC_ringbuf_query = 134,
1: + BPF_FUNC_csum_level = 135,
1: + BPF_FUNC_skc_to_tcp6_sock = 136,
1: + BPF_FUNC_skc_to_tcp_sock = 137,
1: + BPF_FUNC_skc_to_tcp_timewait_sock = 138,
1: + BPF_FUNC_skc_to_tcp_request_sock = 139,
1: + BPF_FUNC_skc_to_udp6_sock = 140,
1: + BPF_FUNC_get_task_stack = 141,
1: + BPF_FUNC_load_hdr_opt = 142,
1: + BPF_FUNC_store_hdr_opt = 143,
1: + BPF_FUNC_reserve_hdr_opt = 144,
1: + BPF_FUNC_inode_storage_get = 145,
1: + BPF_FUNC_inode_storage_delete = 146,
1: + BPF_FUNC_d_path = 147,
1: + BPF_FUNC_copy_from_user = 148,
1: + BPF_FUNC_snprintf_btf = 149,
1: + BPF_FUNC_seq_printf_btf = 150,
1: + BPF_FUNC_skb_cgroup_classid = 151,
1: + BPF_FUNC_redirect_neigh = 152,
1: + BPF_FUNC_per_cpu_ptr = 153,
1: + BPF_FUNC_this_cpu_ptr = 154,
1: + BPF_FUNC_redirect_peer = 155,
1: + __BPF_FUNC_MAX_ID = 156,
1: +};
1: +
1: +enum {
1: + BPF_F_INDEX_MASK = 4294967295,
1: + BPF_F_CURRENT_CPU = 4294967295,
1: + BPF_F_CTXLEN_MASK = 0,
1: +};
1: +
1: +struct bpf_perf_event_value {
1: + __u64 counter;
1: + __u64 enabled;
1: + __u64 running;
1: +};
1: +
1: +struct bpf_raw_tracepoint_args {
1: + __u64 args[0];
1: +};
1: +
1: +enum bpf_task_fd_type {
1: + BPF_FD_TYPE_RAW_TRACEPOINT = 0,
1: + BPF_FD_TYPE_TRACEPOINT = 1,
1: + BPF_FD_TYPE_KPROBE = 2,
1: + BPF_FD_TYPE_KRETPROBE = 3,
1: + BPF_FD_TYPE_UPROBE = 4,
1: + BPF_FD_TYPE_URETPROBE = 5,
1: +};
1: +
1: +struct btf_ptr {
1: + void *ptr;
1: + __u32 type_id;
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + BTF_F_COMPACT = 1,
1: + BTF_F_NONAME = 2,
1: + BTF_F_PTR_RAW = 4,
1: + BTF_F_ZERO = 8,
1: +};
1: +
1: +enum bpf_arg_type {
1: + ARG_DONTCARE = 0,
1: + ARG_CONST_MAP_PTR = 1,
1: + ARG_PTR_TO_MAP_KEY = 2,
1: + ARG_PTR_TO_MAP_VALUE = 3,
1: + ARG_PTR_TO_UNINIT_MAP_VALUE = 4,
1: + ARG_PTR_TO_MAP_VALUE_OR_NULL = 5,
1: + ARG_PTR_TO_MEM = 6,
1: + ARG_PTR_TO_MEM_OR_NULL = 7,
1: + ARG_PTR_TO_UNINIT_MEM = 8,
1: + ARG_CONST_SIZE = 9,
1: + ARG_CONST_SIZE_OR_ZERO = 10,
1: + ARG_PTR_TO_CTX = 11,
1: + ARG_PTR_TO_CTX_OR_NULL = 12,
1: + ARG_ANYTHING = 13,
1: + ARG_PTR_TO_SPIN_LOCK = 14,
1: + ARG_PTR_TO_SOCK_COMMON = 15,
1: + ARG_PTR_TO_INT = 16,
1: + ARG_PTR_TO_LONG = 17,
1: + ARG_PTR_TO_SOCKET = 18,
1: + ARG_PTR_TO_SOCKET_OR_NULL = 19,
1: + ARG_PTR_TO_BTF_ID = 20,
1: + ARG_PTR_TO_ALLOC_MEM = 21,
1: + ARG_PTR_TO_ALLOC_MEM_OR_NULL = 22,
1: + ARG_CONST_ALLOC_SIZE_OR_ZERO = 23,
1: + ARG_PTR_TO_BTF_ID_SOCK_COMMON = 24,
1: + ARG_PTR_TO_PERCPU_BTF_ID = 25,
1: + __BPF_ARG_TYPE_MAX = 26,
1: +};
1: +
1: +enum bpf_return_type {
1: + RET_INTEGER = 0,
1: + RET_VOID = 1,
1: + RET_PTR_TO_MAP_VALUE = 2,
1: + RET_PTR_TO_MAP_VALUE_OR_NULL = 3,
1: + RET_PTR_TO_SOCKET_OR_NULL = 4,
1: + RET_PTR_TO_TCP_SOCK_OR_NULL = 5,
1: + RET_PTR_TO_SOCK_COMMON_OR_NULL = 6,
1: + RET_PTR_TO_ALLOC_MEM_OR_NULL = 7,
1: + RET_PTR_TO_BTF_ID_OR_NULL = 8,
1: + RET_PTR_TO_MEM_OR_BTF_ID_OR_NULL = 9,
1: + RET_PTR_TO_MEM_OR_BTF_ID = 10,
1: +};
1: +
1: +struct bpf_func_proto {
1: + u64 (*func)(u64, u64, u64, u64, u64);
1: + bool gpl_only;
1: + bool pkt_access;
1: + enum bpf_return_type ret_type;
1: + union {
1: + struct {
1: + enum bpf_arg_type arg1_type;
1: + enum bpf_arg_type arg2_type;
1: + enum bpf_arg_type arg3_type;
1: + enum bpf_arg_type arg4_type;
1: + enum bpf_arg_type arg5_type;
1: + };
1: + enum bpf_arg_type arg_type[5];
1: + };
1: + union {
1: + struct {
1: + u32 *arg1_btf_id;
1: + u32 *arg2_btf_id;
1: + u32 *arg3_btf_id;
1: + u32 *arg4_btf_id;
1: + u32 *arg5_btf_id;
1: + };
1: + u32 *arg_btf_id[5];
1: + };
1: + int *ret_btf_id;
1: + bool (*allowed)(const struct bpf_prog *);
1: +};
1: +
1: +enum bpf_access_type {
1: + BPF_READ = 1,
1: + BPF_WRITE = 2,
1: +};
1: +
1: +struct bpf_verifier_log;
1: +
1: +struct bpf_insn_access_aux {
1: + enum bpf_reg_type reg_type;
1: + union {
1: + int ctx_field_size;
1: + u32 btf_id;
1: + };
1: + struct bpf_verifier_log *log;
1: +};
1: +
1: +struct bpf_verifier_ops {
1: + const struct bpf_func_proto * (*get_func_proto)(enum bpf_func_id, const struct bpf_prog *);
1: + bool (*is_valid_access)(int, int, enum bpf_access_type, const struct bpf_prog *, struct bpf_insn_access_aux *);
1: + int (*gen_prologue)(struct bpf_insn *, bool, const struct bpf_prog *);
1: + int (*gen_ld_abs)(const struct bpf_insn *, struct bpf_insn *);
1: + u32 (*convert_ctx_access)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: + int (*btf_struct_access)(struct bpf_verifier_log *, const struct btf_type *, int, int, enum bpf_access_type, u32 *);
1: +};
1: +
1: +struct bpf_array_aux {
1: + enum bpf_prog_type type;
1: + bool jited;
1: + struct list_head poke_progs;
1: + struct bpf_map *map;
1: + struct mutex poke_mutex;
1: + struct work_struct work;
1: +};
1: +
1: +struct bpf_array {
1: + struct bpf_map map;
1: + u32 elem_size;
1: + u32 index_mask;
1: + struct bpf_array_aux *aux;
1: + union {
1: + char value[0];
1: + void *ptrs[0];
1: + void *pptrs[0];
1: + };
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_event_entry {
1: + struct perf_event *event;
1: + struct file *perf_file;
1: + struct file *map_file;
1: + struct callback_head rcu;
1: +};
1: +
1: +typedef long unsigned int (*bpf_ctx_copy_t)(void *, const void *, long unsigned int, long unsigned int);
1: +
1: +typedef struct user_pt_regs bpf_user_pt_regs_t;
1: +
1: +struct bpf_perf_event_data {
1: + bpf_user_pt_regs_t regs;
1: + __u64 sample_period;
1: + __u64 addr;
1: +};
1: +
1: +struct perf_event_query_bpf {
1: + __u32 ids_len;
1: + __u32 prog_cnt;
1: + __u32 ids[0];
1: +};
1: +
1: +struct bpf_perf_event_data_kern {
1: + bpf_user_pt_regs_t *regs;
1: + struct perf_sample_data *data;
1: + struct perf_event *event;
1: +};
1: +
1: +struct btf_id_set {
1: + u32 cnt;
1: + u32 ids[0];
1: +};
1: +
1: +struct trace_event_raw_bpf_trace_printk {
1: + struct trace_entry ent;
1: + u32 __data_loc_bpf_string;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_bpf_trace_printk {
1: + u32 bpf_string;
1: +};
1: +
1: +typedef void (*btf_trace_bpf_trace_printk)(void *, const char *);
1: +
1: +struct bpf_trace_module {
1: + struct module *module;
1: + struct list_head list;
1: +};
1: +
1: +typedef u64 (*btf_bpf_override_return)(struct pt_regs *, long unsigned int);
1: +
1: +typedef u64 (*btf_bpf_probe_read_user)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_user_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_kernel)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_kernel_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_compat)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_read_compat_str)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_probe_write_user)(void *, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_trace_printk)(char *, u32, u64, u64, u64);
1: +
1: +struct bpf_seq_printf_buf {
1: + char buf[768];
1: +};
1: +
1: +typedef u64 (*btf_bpf_seq_printf)(struct seq_file *, char *, u32, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_seq_write)(struct seq_file *, const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_seq_printf_btf)(struct seq_file *, struct btf_ptr *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_read)(struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_read_value)(struct bpf_map *, u64, struct bpf_perf_event_value *, u32);
1: +
1: +struct bpf_trace_sample_data {
1: + struct perf_sample_data sds[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_perf_event_output)(struct pt_regs *, struct bpf_map *, u64, void *, u64);
1: +
1: +struct bpf_nested_pt_regs {
1: + struct pt_regs regs[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_get_current_task)();
1: +
1: +typedef u64 (*btf_bpf_current_task_under_cgroup)(struct bpf_map *, u32);
1: +
1: +struct send_signal_irq_work {
1: + struct irq_work irq_work;
1: + struct task_struct *task;
1: + u32 sig;
1: + enum pid_type type;
1: +};
1: +
1: +typedef u64 (*btf_bpf_send_signal)(u32);
1: +
1: +typedef u64 (*btf_bpf_send_signal_thread)(u32);
1: +
1: +typedef u64 (*btf_bpf_d_path)(struct path *, char *, u32);
1: +
1: +typedef u64 (*btf_bpf_snprintf_btf)(char *, u32, struct btf_ptr *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_event_output_tp)(void *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_tp)(void *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_tp)(void *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_perf_prog_read_value)(struct bpf_perf_event_data_kern *, struct bpf_perf_event_value *, u32);
1: +
1: +typedef u64 (*btf_bpf_read_branch_records)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +
1: +struct bpf_raw_tp_regs {
1: + struct pt_regs regs[3];
1: +};
1: +
1: +typedef u64 (*btf_bpf_perf_event_output_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_raw_tp)(struct bpf_raw_tracepoint_args *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_raw_tp)(struct bpf_raw_tracepoint_args *, void *, u32, u64);
1: +
1: +enum dynevent_type {
1: + DYNEVENT_TYPE_SYNTH = 1,
1: + DYNEVENT_TYPE_KPROBE = 2,
1: + DYNEVENT_TYPE_NONE = 3,
1: +};
1: +
1: +struct dynevent_cmd;
1: +
1: +typedef int (*dynevent_create_fn_t)(struct dynevent_cmd *);
1: +
1: +struct dynevent_cmd {
1: + struct seq_buf seq;
1: + const char *event_name;
1: + unsigned int n_fields;
1: + enum dynevent_type type;
1: + dynevent_create_fn_t run_command;
1: + void *private_data;
1: +};
1: +
1: +struct kprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int ip;
1: +};
1: +
1: +struct kretprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int func;
1: + long unsigned int ret_ip;
1: +};
1: +
1: +struct dyn_event;
1: +
1: +struct dyn_event_operations {
1: + struct list_head list;
1: + int (*create)(int, const char **);
1: + int (*show)(struct seq_file *, struct dyn_event *);
1: + bool (*is_busy)(struct dyn_event *);
1: + int (*free)(struct dyn_event *);
1: + bool (*match)(const char *, const char *, int, const char **, struct dyn_event *);
1: +};
1: +
1: +struct dyn_event {
1: + struct list_head list;
1: + struct dyn_event_operations *ops;
1: +};
1: +
1: +struct dynevent_arg {
1: + const char *str;
1: + char separator;
1: +};
1: +
1: +typedef int (*print_type_func_t)(struct trace_seq *, void *, void *);
1: +
1: +enum fetch_op {
1: + FETCH_OP_NOP = 0,
1: + FETCH_OP_REG = 1,
1: + FETCH_OP_STACK = 2,
1: + FETCH_OP_STACKP = 3,
1: + FETCH_OP_RETVAL = 4,
1: + FETCH_OP_IMM = 5,
1: + FETCH_OP_COMM = 6,
1: + FETCH_OP_ARG = 7,
1: + FETCH_OP_FOFFS = 8,
1: + FETCH_OP_DATA = 9,
1: + FETCH_OP_DEREF = 10,
1: + FETCH_OP_UDEREF = 11,
1: + FETCH_OP_ST_RAW = 12,
1: + FETCH_OP_ST_MEM = 13,
1: + FETCH_OP_ST_UMEM = 14,
1: + FETCH_OP_ST_STRING = 15,
1: + FETCH_OP_ST_USTRING = 16,
1: + FETCH_OP_MOD_BF = 17,
1: + FETCH_OP_LP_ARRAY = 18,
1: + FETCH_OP_END = 19,
1: + FETCH_NOP_SYMBOL = 20,
1: +};
1: +
1: +struct fetch_insn {
1: + enum fetch_op op;
1: + union {
1: + unsigned int param;
1: + struct {
1: + unsigned int size;
1: + int offset;
1: + };
1: + struct {
1: + unsigned char basesize;
1: + unsigned char lshift;
1: + unsigned char rshift;
1: + };
1: + long unsigned int immediate;
1: + void *data;
1: + };
1: +};
1: +
1: +struct fetch_type {
1: + const char *name;
1: + size_t size;
1: + int is_signed;
1: + print_type_func_t print;
1: + const char *fmt;
1: + const char *fmttype;
1: +};
1: +
1: +struct probe_arg {
1: + struct fetch_insn *code;
1: + bool dynamic;
1: + unsigned int offset;
1: + unsigned int count;
1: + const char *name;
1: + const char *comm;
1: + char *fmt;
1: + const struct fetch_type *type;
1: +};
1: +
1: +struct trace_uprobe_filter {
1: + rwlock_t rwlock;
1: + int nr_systemwide;
1: + struct list_head perf_events;
1: +};
1: +
1: +struct trace_probe_event {
1: + unsigned int flags;
1: + struct trace_event_class class;
1: + struct trace_event_call call;
1: + struct list_head files;
1: + struct list_head probes;
1: + struct trace_uprobe_filter filter[0];
1: +};
1: +
1: +struct trace_probe {
1: + struct list_head list;
1: + struct trace_probe_event *event;
1: + ssize_t size;
1: + unsigned int nr_args;
1: + struct probe_arg args[0];
1: +};
1: +
1: +struct event_file_link {
1: + struct trace_event_file *file;
1: + struct list_head list;
1: +};
1: +
1: +enum {
1: + TP_ERR_FILE_NOT_FOUND = 0,
1: + TP_ERR_NO_REGULAR_FILE = 1,
1: + TP_ERR_BAD_REFCNT = 2,
1: + TP_ERR_REFCNT_OPEN_BRACE = 3,
1: + TP_ERR_BAD_REFCNT_SUFFIX = 4,
1: + TP_ERR_BAD_UPROBE_OFFS = 5,
1: + TP_ERR_MAXACT_NO_KPROBE = 6,
1: + TP_ERR_BAD_MAXACT = 7,
1: + TP_ERR_MAXACT_TOO_BIG = 8,
1: + TP_ERR_BAD_PROBE_ADDR = 9,
1: + TP_ERR_BAD_RETPROBE = 10,
1: + TP_ERR_BAD_ADDR_SUFFIX = 11,
1: + TP_ERR_NO_GROUP_NAME = 12,
1: + TP_ERR_GROUP_TOO_LONG = 13,
1: + TP_ERR_BAD_GROUP_NAME = 14,
1: + TP_ERR_NO_EVENT_NAME = 15,
1: + TP_ERR_EVENT_TOO_LONG = 16,
1: + TP_ERR_BAD_EVENT_NAME = 17,
1: + TP_ERR_RETVAL_ON_PROBE = 18,
1: + TP_ERR_BAD_STACK_NUM = 19,
1: + TP_ERR_BAD_ARG_NUM = 20,
1: + TP_ERR_BAD_VAR = 21,
1: + TP_ERR_BAD_REG_NAME = 22,
1: + TP_ERR_BAD_MEM_ADDR = 23,
1: + TP_ERR_BAD_IMM = 24,
1: + TP_ERR_IMMSTR_NO_CLOSE = 25,
1: + TP_ERR_FILE_ON_KPROBE = 26,
1: + TP_ERR_BAD_FILE_OFFS = 27,
1: + TP_ERR_SYM_ON_UPROBE = 28,
1: + TP_ERR_TOO_MANY_OPS = 29,
1: + TP_ERR_DEREF_NEED_BRACE = 30,
1: + TP_ERR_BAD_DEREF_OFFS = 31,
1: + TP_ERR_DEREF_OPEN_BRACE = 32,
1: + TP_ERR_COMM_CANT_DEREF = 33,
1: + TP_ERR_BAD_FETCH_ARG = 34,
1: + TP_ERR_ARRAY_NO_CLOSE = 35,
1: + TP_ERR_BAD_ARRAY_SUFFIX = 36,
1: + TP_ERR_BAD_ARRAY_NUM = 37,
1: + TP_ERR_ARRAY_TOO_BIG = 38,
1: + TP_ERR_BAD_TYPE = 39,
1: + TP_ERR_BAD_STRING = 40,
1: + TP_ERR_BAD_BITFIELD = 41,
1: + TP_ERR_ARG_NAME_TOO_LONG = 42,
1: + TP_ERR_NO_ARG_NAME = 43,
1: + TP_ERR_BAD_ARG_NAME = 44,
1: + TP_ERR_USED_ARG_NAME = 45,
1: + TP_ERR_ARG_TOO_LONG = 46,
1: + TP_ERR_NO_ARG_BODY = 47,
1: + TP_ERR_BAD_INSN_BNDRY = 48,
1: + TP_ERR_FAIL_REG_PROBE = 49,
1: + TP_ERR_DIFF_PROBE_TYPE = 50,
1: + TP_ERR_DIFF_ARG_TYPE = 51,
1: + TP_ERR_SAME_PROBE = 52,
1: +};
1: +
1: +struct trace_kprobe {
1: + struct dyn_event devent;
1: + struct kretprobe rp;
1: + long unsigned int *nhit;
1: + const char *symbol;
1: + struct trace_probe tp;
1: +};
1: +
1: +struct trace_event_raw_cpu {
1: + struct trace_entry ent;
1: + u32 state;
1: + u32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_powernv_throttle {
1: + struct trace_entry ent;
1: + int chip_id;
1: + u32 __data_loc_reason;
1: + int pmax;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_pstate_sample {
1: + struct trace_entry ent;
1: + u32 core_busy;
1: + u32 scaled_busy;
1: + u32 from;
1: + u32 to;
1: + u64 mperf;
1: + u64 aperf;
1: + u64 tsc;
1: + u32 freq;
1: + u32 io_boost;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpu_frequency_limits {
1: + struct trace_entry ent;
1: + u32 min_freq;
1: + u32 max_freq;
1: + u32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_device_pm_callback_start {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + u32 __data_loc_parent;
1: + u32 __data_loc_pm_ops;
1: + int event;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_device_pm_callback_end {
1: + struct trace_entry ent;
1: + u32 __data_loc_device;
1: + u32 __data_loc_driver;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_suspend_resume {
1: + struct trace_entry ent;
1: + const char *action;
1: + int val;
1: + bool start;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wakeup_source {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_clock {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_power_domain {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + u64 state;
1: + u64 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cpu_latency_qos_request {
1: + struct trace_entry ent;
1: + s32 value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_pm_qos_update {
1: + struct trace_entry ent;
1: + enum pm_qos_req_action action;
1: + int prev_value;
1: + int curr_value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dev_pm_qos_request {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + enum dev_pm_qos_req_type type;
1: + s32 new_value;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cpu {};
1: +
1: +struct trace_event_data_offsets_powernv_throttle {
1: + u32 reason;
1: +};
1: +
1: +struct trace_event_data_offsets_pstate_sample {};
1: +
1: +struct trace_event_data_offsets_cpu_frequency_limits {};
1: +
1: +struct trace_event_data_offsets_device_pm_callback_start {
1: + u32 device;
1: + u32 driver;
1: + u32 parent;
1: + u32 pm_ops;
1: +};
1: +
1: +struct trace_event_data_offsets_device_pm_callback_end {
1: + u32 device;
1: + u32 driver;
1: +};
1: +
1: +struct trace_event_data_offsets_suspend_resume {};
1: +
1: +struct trace_event_data_offsets_wakeup_source {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_clock {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_power_domain {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_cpu_latency_qos_request {};
1: +
1: +struct trace_event_data_offsets_pm_qos_update {};
1: +
1: +struct trace_event_data_offsets_dev_pm_qos_request {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_cpu_idle)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_powernv_throttle)(void *, int, const char *, int);
1: +
1: +typedef void (*btf_trace_pstate_sample)(void *, u32, u32, u32, u32, u64, u64, u64, u32, u32);
1: +
1: +typedef void (*btf_trace_cpu_frequency)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_cpu_frequency_limits)(void *, struct cpufreq_policy *);
1: +
1: +typedef void (*btf_trace_device_pm_callback_start)(void *, struct device *, const char *, int);
1: +
1: +typedef void (*btf_trace_device_pm_callback_end)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_suspend_resume)(void *, const char *, int, bool);
1: +
1: +typedef void (*btf_trace_wakeup_source_activate)(void *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_wakeup_source_deactivate)(void *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_enable)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_disable)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_clock_set_rate)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_power_domain_target)(void *, const char *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_pm_qos_add_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_update_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_remove_request)(void *, s32);
1: +
1: +typedef void (*btf_trace_pm_qos_update_target)(void *, enum pm_qos_req_action, int, int);
1: +
1: +typedef void (*btf_trace_pm_qos_update_flags)(void *, enum pm_qos_req_action, int, int);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_add_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_update_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +typedef void (*btf_trace_dev_pm_qos_remove_request)(void *, const char *, enum dev_pm_qos_req_type, s32);
1: +
1: +struct trace_event_raw_rpm_internal {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + int flags;
1: + int usage_count;
1: + int disable_depth;
1: + int runtime_auto;
1: + int request_pending;
1: + int irq_safe;
1: + int child_count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rpm_return_int {
1: + struct trace_entry ent;
1: + u32 __data_loc_name;
1: + long unsigned int ip;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rpm_internal {
1: + u32 name;
1: +};
1: +
1: +struct trace_event_data_offsets_rpm_return_int {
1: + u32 name;
1: +};
1: +
1: +typedef void (*btf_trace_rpm_suspend)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_resume)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_idle)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_usage)(void *, struct device *, int);
1: +
1: +typedef void (*btf_trace_rpm_return_int)(void *, struct device *, long unsigned int, int);
1: +
1: +typedef int (*dynevent_check_arg_fn_t)(void *);
1: +
1: +struct dynevent_arg_pair {
1: + const char *lhs;
1: + const char *rhs;
1: + char operator;
1: + char separator;
1: +};
1: +
1: +struct trace_probe_log {
1: + const char *subsystem;
1: + const char **argv;
1: + int argc;
1: + int index;
1: +};
1: +
1: +enum uprobe_filter_ctx {
1: + UPROBE_FILTER_REGISTER = 0,
1: + UPROBE_FILTER_UNREGISTER = 1,
1: + UPROBE_FILTER_MMAP = 2,
1: +};
1: +
1: +struct uprobe_consumer {
1: + int (*handler)(struct uprobe_consumer *, struct pt_regs *);
1: + int (*ret_handler)(struct uprobe_consumer *, long unsigned int, struct pt_regs *);
1: + bool (*filter)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: + struct uprobe_consumer *next;
1: +};
1: +
1: +struct uprobe_trace_entry_head {
1: + struct trace_entry ent;
1: + long unsigned int vaddr[0];
1: +};
1: +
1: +struct trace_uprobe {
1: + struct dyn_event devent;
1: + struct uprobe_consumer consumer;
1: + struct path path;
1: + struct inode *inode;
1: + char *filename;
1: + long unsigned int offset;
1: + long unsigned int ref_ctr_offset;
1: + long unsigned int nhit;
1: + struct trace_probe tp;
1: +};
1: +
1: +struct uprobe_dispatch_data {
1: + struct trace_uprobe *tu;
1: + long unsigned int bp_addr;
1: +};
1: +
1: +struct uprobe_cpu_buffer {
1: + struct mutex mutex;
1: + void *buf;
1: +};
1: +
1: +typedef bool (*filter_func_t)(struct uprobe_consumer *, enum uprobe_filter_ctx, struct mm_struct *);
1: +
1: +struct rhash_lock_head;
1: +
1: +struct bucket_table {
1: + unsigned int size;
1: + unsigned int nest;
1: + u32 hash_rnd;
1: + struct list_head walkers;
1: + struct callback_head rcu;
1: + struct bucket_table *future_tbl;
1: + struct lockdep_map dep_map;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct rhash_lock_head *buckets[0];
1: +};
1: +
1: +struct rnd_state {
1: + __u32 s1;
1: + __u32 s2;
1: + __u32 s3;
1: + __u32 s4;
1: +};
1: +
1: +enum xdp_action {
1: + XDP_ABORTED = 0,
1: + XDP_DROP = 1,
1: + XDP_PASS = 2,
1: + XDP_TX = 3,
1: + XDP_REDIRECT = 4,
1: +};
1: +
1: +enum bpf_jit_poke_reason {
1: + BPF_POKE_REASON_TAIL_CALL = 0,
1: +};
1: +
1: +enum bpf_text_poke_type {
1: + BPF_MOD_CALL = 0,
1: + BPF_MOD_JUMP = 1,
1: +};
1: +
1: +enum xdp_mem_type {
1: + MEM_TYPE_PAGE_SHARED = 0,
1: + MEM_TYPE_PAGE_ORDER0 = 1,
1: + MEM_TYPE_PAGE_POOL = 2,
1: + MEM_TYPE_XSK_BUFF_POOL = 3,
1: + MEM_TYPE_MAX = 4,
1: +};
1: +
1: +struct xdp_cpumap_stats {
1: + unsigned int redirect;
1: + unsigned int pass;
1: + unsigned int drop;
1: +};
1: +
1: +typedef void (*bpf_jit_fill_hole_t)(void *, unsigned int);
1: +
1: +struct bpf_prog_dummy {
1: + struct bpf_prog prog;
1: +};
1: +
1: +typedef u64 (*btf_bpf_user_rnd_u32)();
1: +
1: +typedef u64 (*btf_bpf_get_raw_cpu_id)();
1: +
1: +struct _bpf_dtab_netdev {
1: + struct net_device *dev;
1: +};
1: +
1: +struct rhash_lock_head {};
1: +
1: +struct zero_copy_allocator;
1: +
1: +struct page_pool;
1: +
1: +struct xdp_mem_allocator {
1: + struct xdp_mem_info mem;
1: + union {
1: + void *allocator;
1: + struct page_pool *page_pool;
1: + struct zero_copy_allocator *zc_alloc;
1: + };
1: + struct rhash_head node;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct trace_event_raw_xdp_exception {
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_bulk_tx {
1: + struct trace_entry ent;
1: + int ifindex;
1: + u32 act;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_redirect_template {
1: + struct trace_entry ent;
1: + int prog_id;
1: + u32 act;
1: + int ifindex;
1: + int err;
1: + int to_ifindex;
1: + u32 map_id;
1: + int map_index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_cpumap_kthread {
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int sched;
1: + unsigned int xdp_pass;
1: + unsigned int xdp_drop;
1: + unsigned int xdp_redirect;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_cpumap_enqueue {
1: + struct trace_entry ent;
1: + int map_id;
1: + u32 act;
1: + int cpu;
1: + unsigned int drops;
1: + unsigned int processed;
1: + int to_cpu;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_xdp_devmap_xmit {
1: + struct trace_entry ent;
1: + int from_ifindex;
1: + u32 act;
1: + int to_ifindex;
1: + int drops;
1: + int sent;
1: + int err;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_disconnect {
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_connect {
1: + struct trace_entry ent;
1: + const struct xdp_mem_allocator *xa;
1: + u32 mem_id;
1: + u32 mem_type;
1: + const void *allocator;
1: + const struct xdp_rxq_info *rxq;
1: + int ifindex;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mem_return_failed {
1: + struct trace_entry ent;
1: + const struct page *page;
1: + u32 mem_id;
1: + u32 mem_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_xdp_exception {};
1: +
1: +struct trace_event_data_offsets_xdp_bulk_tx {};
1: +
1: +struct trace_event_data_offsets_xdp_redirect_template {};
1: +
1: +struct trace_event_data_offsets_xdp_cpumap_kthread {};
1: +
1: +struct trace_event_data_offsets_xdp_cpumap_enqueue {};
1: +
1: +struct trace_event_data_offsets_xdp_devmap_xmit {};
1: +
1: +struct trace_event_data_offsets_mem_disconnect {};
1: +
1: +struct trace_event_data_offsets_mem_connect {};
1: +
1: +struct trace_event_data_offsets_mem_return_failed {};
1: +
1: +typedef void (*btf_trace_xdp_exception)(void *, const struct net_device *, const struct bpf_prog *, u32);
1: +
1: +typedef void (*btf_trace_xdp_bulk_tx)(void *, const struct net_device *, int, int, int);
1: +
1: +typedef void (*btf_trace_xdp_redirect)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_map)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_redirect_map_err)(void *, const struct net_device *, const struct bpf_prog *, const void *, int, const struct bpf_map *, u32);
1: +
1: +typedef void (*btf_trace_xdp_cpumap_kthread)(void *, int, unsigned int, unsigned int, int, struct xdp_cpumap_stats *);
1: +
1: +typedef void (*btf_trace_xdp_cpumap_enqueue)(void *, int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_xdp_devmap_xmit)(void *, const struct net_device *, const struct net_device *, int, int, int);
1: +
1: +typedef void (*btf_trace_mem_disconnect)(void *, const struct xdp_mem_allocator *);
1: +
1: +typedef void (*btf_trace_mem_connect)(void *, const struct xdp_mem_allocator *, const struct xdp_rxq_info *);
1: +
1: +typedef void (*btf_trace_mem_return_failed)(void *, const struct xdp_mem_info *, const struct page *);
1: +
1: +enum bpf_cmd {
1: + BPF_MAP_CREATE = 0,
1: + BPF_MAP_LOOKUP_ELEM = 1,
1: + BPF_MAP_UPDATE_ELEM = 2,
1: + BPF_MAP_DELETE_ELEM = 3,
1: + BPF_MAP_GET_NEXT_KEY = 4,
1: + BPF_PROG_LOAD = 5,
1: + BPF_OBJ_PIN = 6,
1: + BPF_OBJ_GET = 7,
1: + BPF_PROG_ATTACH = 8,
1: + BPF_PROG_DETACH = 9,
1: + BPF_PROG_TEST_RUN = 10,
1: + BPF_PROG_GET_NEXT_ID = 11,
1: + BPF_MAP_GET_NEXT_ID = 12,
1: + BPF_PROG_GET_FD_BY_ID = 13,
1: + BPF_MAP_GET_FD_BY_ID = 14,
1: + BPF_OBJ_GET_INFO_BY_FD = 15,
1: + BPF_PROG_QUERY = 16,
1: + BPF_RAW_TRACEPOINT_OPEN = 17,
1: + BPF_BTF_LOAD = 18,
1: + BPF_BTF_GET_FD_BY_ID = 19,
1: + BPF_TASK_FD_QUERY = 20,
1: + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21,
1: + BPF_MAP_FREEZE = 22,
1: + BPF_BTF_GET_NEXT_ID = 23,
1: + BPF_MAP_LOOKUP_BATCH = 24,
1: + BPF_MAP_LOOKUP_AND_DELETE_BATCH = 25,
1: + BPF_MAP_UPDATE_BATCH = 26,
1: + BPF_MAP_DELETE_BATCH = 27,
1: + BPF_LINK_CREATE = 28,
1: + BPF_LINK_UPDATE = 29,
1: + BPF_LINK_GET_FD_BY_ID = 30,
1: + BPF_LINK_GET_NEXT_ID = 31,
1: + BPF_ENABLE_STATS = 32,
1: + BPF_ITER_CREATE = 33,
1: + BPF_LINK_DETACH = 34,
1: + BPF_PROG_BIND_MAP = 35,
1: +};
1: +
1: +enum {
1: + BPF_ANY = 0,
1: + BPF_NOEXIST = 1,
1: + BPF_EXIST = 2,
1: + BPF_F_LOCK = 4,
1: +};
1: +
1: +enum {
1: + BPF_F_NO_PREALLOC = 1,
1: + BPF_F_NO_COMMON_LRU = 2,
1: + BPF_F_NUMA_NODE = 4,
1: + BPF_F_RDONLY = 8,
1: + BPF_F_WRONLY = 16,
1: + BPF_F_STACK_BUILD_ID = 32,
1: + BPF_F_ZERO_SEED = 64,
1: + BPF_F_RDONLY_PROG = 128,
1: + BPF_F_WRONLY_PROG = 256,
1: + BPF_F_CLONE = 512,
1: + BPF_F_MMAPABLE = 1024,
1: + BPF_F_PRESERVE_ELEMS = 2048,
1: + BPF_F_INNER_MAP = 4096,
1: +};
1: +
1: +enum bpf_stats_type {
1: + BPF_STATS_RUN_TIME = 0,
1: +};
1: +
1: +struct bpf_prog_info {
1: + __u32 type;
1: + __u32 id;
1: + __u8 tag[8];
1: + __u32 jited_prog_len;
1: + __u32 xlated_prog_len;
1: + __u64 jited_prog_insns;
1: + __u64 xlated_prog_insns;
1: + __u64 load_time;
1: + __u32 created_by_uid;
1: + __u32 nr_map_ids;
1: + __u64 map_ids;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 gpl_compatible: 1;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 nr_jited_ksyms;
1: + __u32 nr_jited_func_lens;
1: + __u64 jited_ksyms;
1: + __u64 jited_func_lens;
1: + __u32 btf_id;
1: + __u32 func_info_rec_size;
1: + __u64 func_info;
1: + __u32 nr_func_info;
1: + __u32 nr_line_info;
1: + __u64 line_info;
1: + __u64 jited_line_info;
1: + __u32 nr_jited_line_info;
1: + __u32 line_info_rec_size;
1: + __u32 jited_line_info_rec_size;
1: + __u32 nr_prog_tags;
1: + __u64 prog_tags;
1: + __u64 run_time_ns;
1: + __u64 run_cnt;
1: +};
1: +
1: +struct bpf_map_info {
1: + __u32 type;
1: + __u32 id;
1: + __u32 key_size;
1: + __u32 value_size;
1: + __u32 max_entries;
1: + __u32 map_flags;
1: + char name[16];
1: + __u32 ifindex;
1: + __u32 btf_vmlinux_value_type_id;
1: + __u64 netns_dev;
1: + __u64 netns_ino;
1: + __u32 btf_id;
1: + __u32 btf_key_type_id;
1: + __u32 btf_value_type_id;
1: +};
1: +
1: +struct bpf_btf_info {
1: + __u64 btf;
1: + __u32 btf_size;
1: + __u32 id;
1: +};
1: +
1: +struct bpf_spin_lock {
1: + __u32 val;
1: +};
1: +
1: +struct bpf_attach_target_info {
1: + struct btf_func_model fmodel;
1: + long int tgt_addr;
1: + const char *tgt_name;
1: + const struct btf_type *tgt_type;
1: +};
1: +
1: +struct bpf_link_primer {
1: + struct bpf_link *link;
1: + struct file *file;
1: + int fd;
1: + u32 id;
1: +};
1: +
1: +enum perf_bpf_event_type {
1: + PERF_BPF_EVENT_UNKNOWN = 0,
1: + PERF_BPF_EVENT_PROG_LOAD = 1,
1: + PERF_BPF_EVENT_PROG_UNLOAD = 2,
1: + PERF_BPF_EVENT_MAX = 3,
1: +};
1: +
1: +enum bpf_audit {
1: + BPF_AUDIT_LOAD = 0,
1: + BPF_AUDIT_UNLOAD = 1,
1: + BPF_AUDIT_MAX = 2,
1: +};
1: +
1: +struct bpf_tracing_link {
1: + struct bpf_link link;
1: + enum bpf_attach_type attach_type;
1: + struct bpf_trampoline *trampoline;
1: + struct bpf_prog *tgt_prog;
1: +};
1: +
1: +struct bpf_raw_tp_link {
1: + struct bpf_link link;
1: + struct bpf_raw_event_map *btp;
1: +};
1: +
1: +struct btf_member {
1: + __u32 name_off;
1: + __u32 type;
1: + __u32 offset;
1: +};
1: +
1: +enum btf_func_linkage {
1: + BTF_FUNC_STATIC = 0,
1: + BTF_FUNC_GLOBAL = 1,
1: + BTF_FUNC_EXTERN = 2,
1: +};
1: +
1: +struct btf_var_secinfo {
1: + __u32 type;
1: + __u32 offset;
1: + __u32 size;
1: +};
1: +
1: +enum sk_action {
1: + SK_DROP = 0,
1: + SK_PASS = 1,
1: +};
1: +
1: +struct bpf_verifier_log {
1: + u32 level;
1: + char kbuf[1024];
1: + char *ubuf;
1: + u32 len_used;
1: + u32 len_total;
1: +};
1: +
1: +struct bpf_subprog_info {
1: + u32 start;
1: + u32 linfo_idx;
1: + u16 stack_depth;
1: + bool has_tail_call;
1: + bool tail_call_reachable;
1: + bool has_ld_abs;
1: +};
1: +
1: +struct bpf_verifier_stack_elem;
1: +
1: +struct bpf_verifier_state;
1: +
1: +struct bpf_verifier_state_list;
1: +
1: +struct bpf_insn_aux_data;
1: +
1: +struct bpf_verifier_env {
1: + u32 insn_idx;
1: + u32 prev_insn_idx;
1: + struct bpf_prog *prog;
1: + const struct bpf_verifier_ops *ops;
1: + struct bpf_verifier_stack_elem *head;
1: + int stack_size;
1: + bool strict_alignment;
1: + bool test_state_freq;
1: + struct bpf_verifier_state *cur_state;
1: + struct bpf_verifier_state_list **explored_states;
1: + struct bpf_verifier_state_list *free_list;
1: + struct bpf_map *used_maps[64];
1: + u32 used_map_cnt;
1: + u32 id_gen;
1: + bool allow_ptr_leaks;
1: + bool allow_ptr_to_map_access;
1: + bool bpf_capable;
1: + bool bypass_spec_v1;
1: + bool bypass_spec_v4;
1: + bool seen_direct_write;
1: + struct bpf_insn_aux_data *insn_aux_data;
1: + const struct bpf_line_info *prev_linfo;
1: + struct bpf_verifier_log log;
1: + struct bpf_subprog_info subprog_info[257];
1: + struct {
1: + int *insn_state;
1: + int *insn_stack;
1: + int cur_stack;
1: + } cfg;
1: + u32 pass_cnt;
1: + u32 subprog_cnt;
1: + u32 prev_insn_processed;
1: + u32 insn_processed;
1: + u32 prev_jmps_processed;
1: + u32 jmps_processed;
1: + u64 verification_time;
1: + u32 max_states_per_insn;
1: + u32 total_states;
1: + u32 peak_states;
1: + u32 longest_mark_read_walk;
1: +};
1: +
1: +struct bpf_struct_ops {
1: + const struct bpf_verifier_ops *verifier_ops;
1: + int (*init)(struct btf *);
1: + int (*check_member)(const struct btf_type *, const struct btf_member *);
1: + int (*init_member)(const struct btf_type *, const struct btf_member *, void *, const void *);
1: + int (*reg)(void *);
1: + void (*unreg)(void *);
1: + const struct btf_type *type;
1: + const struct btf_type *value_type;
1: + const char *name;
1: + struct btf_func_model func_models[64];
1: + u32 type_id;
1: + u32 value_id;
1: +};
1: +
1: +typedef u32 (*bpf_convert_ctx_access_t)(enum bpf_access_type, const struct bpf_insn *, struct bpf_insn *, struct bpf_prog *, u32 *);
1: +
1: +struct tnum {
1: + u64 value;
1: + u64 mask;
1: +};
1: +
1: +enum bpf_reg_liveness {
1: + REG_LIVE_NONE = 0,
1: + REG_LIVE_READ32 = 1,
1: + REG_LIVE_READ64 = 2,
1: + REG_LIVE_READ = 3,
1: + REG_LIVE_WRITTEN = 4,
1: + REG_LIVE_DONE = 8,
1: +};
1: +
1: +struct bpf_reg_state {
1: + enum bpf_reg_type type;
1: + union {
1: + u16 range;
1: + struct bpf_map *map_ptr;
1: + u32 btf_id;
1: + u32 mem_size;
1: + long unsigned int raw;
1: + };
1: + s32 off;
1: + u32 id;
1: + u32 ref_obj_id;
1: + struct tnum var_off;
1: + s64 smin_value;
1: + s64 smax_value;
1: + u64 umin_value;
1: + u64 umax_value;
1: + s32 s32_min_value;
1: + s32 s32_max_value;
1: + u32 u32_min_value;
1: + u32 u32_max_value;
1: + struct bpf_reg_state *parent;
1: + u32 frameno;
1: + s32 subreg_def;
1: + enum bpf_reg_liveness live;
1: + bool precise;
1: +};
1: +
1: +enum bpf_stack_slot_type {
1: + STACK_INVALID = 0,
1: + STACK_SPILL = 1,
1: + STACK_MISC = 2,
1: + STACK_ZERO = 3,
1: +};
1: +
1: +struct bpf_stack_state {
1: + struct bpf_reg_state spilled_ptr;
1: + u8 slot_type[8];
1: +};
1: +
1: +struct bpf_reference_state {
1: + int id;
1: + int insn_idx;
1: +};
1: +
1: +struct bpf_func_state {
1: + struct bpf_reg_state regs[11];
1: + int callsite;
1: + u32 frameno;
1: + u32 subprogno;
1: + int acquired_refs;
1: + struct bpf_reference_state *refs;
1: + int allocated_stack;
1: + struct bpf_stack_state *stack;
1: +};
1: +
1: +struct bpf_idx_pair {
1: + u32 prev_idx;
1: + u32 idx;
1: +};
1: +
1: +struct bpf_verifier_state {
1: + struct bpf_func_state *frame[8];
1: + struct bpf_verifier_state *parent;
1: + u32 branches;
1: + u32 insn_idx;
1: + u32 curframe;
1: + u32 active_spin_lock;
1: + bool speculative;
1: + u32 first_insn_idx;
1: + u32 last_insn_idx;
1: + struct bpf_idx_pair *jmp_history;
1: + u32 jmp_history_cnt;
1: +};
1: +
1: +struct bpf_verifier_state_list {
1: + struct bpf_verifier_state state;
1: + struct bpf_verifier_state_list *next;
1: + int miss_cnt;
1: + int hit_cnt;
1: +};
1: +
1: +struct bpf_insn_aux_data {
1: + union {
1: + enum bpf_reg_type ptr_type;
1: + long unsigned int map_ptr_state;
1: + s32 call_imm;
1: + u32 alu_limit;
1: + struct {
1: + u32 map_index;
1: + u32 map_off;
1: + };
1: + struct {
1: + enum bpf_reg_type reg_type;
1: + union {
1: + u32 btf_id;
1: + u32 mem_size;
1: + };
1: + } btf_var;
1: + };
1: + u64 map_key_state;
1: + int ctx_field_size;
1: + int sanitize_stack_off;
1: + u32 seen;
1: + bool zext_dst;
1: + u8 alu_state;
1: + unsigned int orig_idx;
1: + bool prune_point;
1: +};
1: +
1: +struct bpf_verifier_stack_elem {
1: + struct bpf_verifier_state st;
1: + int insn_idx;
1: + int prev_insn_idx;
1: + struct bpf_verifier_stack_elem *next;
1: + u32 log_pos;
1: +};
1: +
1: +enum {
1: + BTF_SOCK_TYPE_INET = 0,
1: + BTF_SOCK_TYPE_INET_CONN = 1,
1: + BTF_SOCK_TYPE_INET_REQ = 2,
1: + BTF_SOCK_TYPE_INET_TW = 3,
1: + BTF_SOCK_TYPE_REQ = 4,
1: + BTF_SOCK_TYPE_SOCK = 5,
1: + BTF_SOCK_TYPE_SOCK_COMMON = 6,
1: + BTF_SOCK_TYPE_TCP = 7,
1: + BTF_SOCK_TYPE_TCP_REQ = 8,
1: + BTF_SOCK_TYPE_TCP_TW = 9,
1: + BTF_SOCK_TYPE_TCP6 = 10,
1: + BTF_SOCK_TYPE_UDP = 11,
1: + BTF_SOCK_TYPE_UDP6 = 12,
1: + MAX_BTF_SOCK_TYPE = 13,
1: +};
1: +
1: +typedef void (*bpf_insn_print_t)(void *, const char *, ...);
1: +
1: +typedef const char * (*bpf_insn_revmap_call_t)(void *, const struct bpf_insn *);
1: +
1: +typedef const char * (*bpf_insn_print_imm_t)(void *, const struct bpf_insn *, __u64);
1: +
1: +struct bpf_insn_cbs {
1: + bpf_insn_print_t cb_print;
1: + bpf_insn_revmap_call_t cb_call;
1: + bpf_insn_print_imm_t cb_imm;
1: + void *private_data;
1: +};
1: +
1: +struct bpf_call_arg_meta {
1: + struct bpf_map *map_ptr;
1: + bool raw_mode;
1: + bool pkt_access;
1: + int regno;
1: + int access_size;
1: + int mem_size;
1: + u64 msize_max_value;
1: + int ref_obj_id;
1: + int func_id;
1: + u32 btf_id;
1: + u32 ret_btf_id;
1: +};
1: +
1: +enum reg_arg_type {
1: + SRC_OP = 0,
1: + DST_OP = 1,
1: + DST_OP_NO_MARK = 2,
1: +};
1: +
1: +struct bpf_reg_types {
1: + const enum bpf_reg_type types[10];
1: + u32 *btf_id;
1: +};
1: +
1: +enum {
1: + DISCOVERED = 16,
1: + EXPLORED = 32,
1: + FALLTHROUGH = 1,
1: + BRANCH___2 = 2,
1: +};
1: +
1: +struct idpair {
1: + u32 old;
1: + u32 cur;
1: +};
1: +
1: +struct tree_descr {
1: + const char *name;
1: + const struct file_operations *ops;
1: + int mode;
1: +};
1: +
1: +struct bpf_preload_info {
1: + char link_name[16];
1: + int link_id;
1: +};
1: +
1: +struct bpf_preload_ops {
1: + struct umd_info info;
1: + int (*preload)(struct bpf_preload_info *);
1: + int (*finish)();
1: + struct module *owner;
1: +};
1: +
1: +enum bpf_type {
1: + BPF_TYPE_UNSPEC = 0,
1: + BPF_TYPE_PROG = 1,
1: + BPF_TYPE_MAP = 2,
1: + BPF_TYPE_LINK = 3,
1: +};
1: +
1: +struct map_iter {
1: + void *key;
1: + bool done;
1: +};
1: +
1: +enum {
1: + OPT_MODE = 0,
1: +};
1: +
1: +struct bpf_mount_opts {
1: + umode_t mode;
1: +};
1: +
1: +struct bpf_pidns_info {
1: + __u32 pid;
1: + __u32 tgid;
1: +};
1: +
1: +typedef u64 (*btf_bpf_map_lookup_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_update_elem)(struct bpf_map *, void *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_map_delete_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_push_elem)(struct bpf_map *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_map_pop_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_map_peek_elem)(struct bpf_map *, void *);
1: +
1: +typedef u64 (*btf_bpf_get_smp_processor_id)();
1: +
1: +typedef u64 (*btf_bpf_get_numa_node_id)();
1: +
1: +typedef u64 (*btf_bpf_ktime_get_ns)();
1: +
1: +typedef u64 (*btf_bpf_ktime_get_boot_ns)();
1: +
1: +typedef u64 (*btf_bpf_get_current_pid_tgid)();
1: +
1: +typedef u64 (*btf_bpf_get_current_uid_gid)();
1: +
1: +typedef u64 (*btf_bpf_get_current_comm)(char *, u32);
1: +
1: +typedef u64 (*btf_bpf_spin_lock)(struct bpf_spin_lock *);
1: +
1: +typedef u64 (*btf_bpf_spin_unlock)(struct bpf_spin_lock *);
1: +
1: +typedef u64 (*btf_bpf_jiffies64)();
1: +
1: +typedef u64 (*btf_bpf_get_current_cgroup_id)();
1: +
1: +typedef u64 (*btf_bpf_get_current_ancestor_cgroup_id)(int);
1: +
1: +typedef u64 (*btf_bpf_get_local_storage)(struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_strtol)(const char *, size_t, u64, long int *);
1: +
1: +typedef u64 (*btf_bpf_strtoul)(const char *, size_t, u64, long unsigned int *);
1: +
1: +typedef u64 (*btf_bpf_get_ns_current_pid_tgid)(u64, u64, struct bpf_pidns_info *, u32);
1: +
1: +typedef u64 (*btf_bpf_event_output_data)(void *, struct bpf_map *, u64, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_copy_from_user)(void *, u32, const void *);
1: +
1: +typedef u64 (*btf_bpf_per_cpu_ptr)(const void *, u32);
1: +
1: +typedef u64 (*btf_bpf_this_cpu_ptr)(const void *);
1: +
1: +union bpf_iter_link_info {
1: + struct {
1: + __u32 map_fd;
1: + } map;
1: +};
1: +
1: +typedef int (*bpf_iter_attach_target_t)(struct bpf_prog *, union bpf_iter_link_info *, struct bpf_iter_aux_info *);
1: +
1: +typedef void (*bpf_iter_detach_target_t)(struct bpf_iter_aux_info *);
1: +
1: +typedef void (*bpf_iter_show_fdinfo_t)(const struct bpf_iter_aux_info *, struct seq_file *);
1: +
1: +typedef int (*bpf_iter_fill_link_info_t)(const struct bpf_iter_aux_info *, struct bpf_link_info *);
1: +
1: +struct bpf_iter_reg {
1: + const char *target;
1: + bpf_iter_attach_target_t attach_target;
1: + bpf_iter_detach_target_t detach_target;
1: + bpf_iter_show_fdinfo_t show_fdinfo;
1: + bpf_iter_fill_link_info_t fill_link_info;
1: + u32 ctx_arg_info_size;
1: + struct bpf_ctx_arg_aux ctx_arg_info[2];
1: + const struct bpf_iter_seq_info *seq_info;
1: +};
1: +
1: +struct bpf_iter_meta {
1: + union {
1: + struct seq_file *seq;
1: + };
1: + u64 session_id;
1: + u64 seq_num;
1: +};
1: +
1: +struct bpf_iter_target_info {
1: + struct list_head list;
1: + const struct bpf_iter_reg *reg_info;
1: + u32 btf_id;
1: +};
1: +
1: +struct bpf_iter_link {
1: + struct bpf_link link;
1: + struct bpf_iter_aux_info aux;
1: + struct bpf_iter_target_info *tinfo;
1: +};
1: +
1: +struct bpf_iter_priv_data {
1: + struct bpf_iter_target_info *tinfo;
1: + const struct bpf_iter_seq_info *seq_info;
1: + struct bpf_prog *prog;
1: + u64 session_id;
1: + u64 seq_num;
1: + bool done_stop;
1: + long: 56;
1: + u8 target_private[0];
1: +};
1: +
1: +struct bpf_iter_seq_map_info {
1: + u32 map_id;
1: +};
1: +
1: +struct bpf_iter__bpf_map {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_task_common {
1: + struct pid_namespace *ns;
1: +};
1: +
1: +struct bpf_iter_seq_task_info {
1: + struct bpf_iter_seq_task_common common;
1: + u32 tid;
1: +};
1: +
1: +struct bpf_iter__task {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_task_file_info {
1: + struct bpf_iter_seq_task_common common;
1: + struct task_struct *task;
1: + struct files_struct *files;
1: + u32 tid;
1: + u32 fd;
1: +};
1: +
1: +struct bpf_iter__task_file {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct task_struct *task;
1: + };
1: + u32 fd;
1: + union {
1: + struct file *file;
1: + };
1: +};
1: +
1: +struct bpf_iter_seq_prog_info {
1: + u32 prog_id;
1: +};
1: +
1: +struct bpf_iter__bpf_prog {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_prog *prog;
1: + };
1: +};
1: +
1: +struct bpf_iter__bpf_map_elem {
1: + union {
1: + struct bpf_iter_meta *meta;
1: + };
1: + union {
1: + struct bpf_map *map;
1: + };
1: + union {
1: + void *key;
1: + };
1: + union {
1: + void *value;
1: + };
1: +};
1: +
1: +struct pcpu_freelist_node;
1: +
1: +struct pcpu_freelist_head {
1: + struct pcpu_freelist_node *first;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct pcpu_freelist_node {
1: + struct pcpu_freelist_node *next;
1: +};
1: +
1: +struct pcpu_freelist {
1: + struct pcpu_freelist_head *freelist;
1: + struct pcpu_freelist_head extralist;
1: +};
1: +
1: +struct bpf_lru_node {
1: + struct list_head list;
1: + u16 cpu;
1: + u8 type;
1: + u8 ref;
1: +};
1: +
1: +struct bpf_lru_list {
1: + struct list_head lists[3];
1: + unsigned int counts[2];
1: + struct list_head *next_inactive_rotation;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + raw_spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_lru_locallist {
1: + struct list_head lists[2];
1: + u16 next_steal;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_common_lru {
1: + struct bpf_lru_list lru_list;
1: + struct bpf_lru_locallist *local_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +typedef bool (*del_from_htab_func)(void *, struct bpf_lru_node *);
1: +
1: +struct bpf_lru {
1: + union {
1: + struct bpf_common_lru common_lru;
1: + struct bpf_lru_list *percpu_lru;
1: + };
1: + del_from_htab_func del_from_htab;
1: + void *del_arg;
1: + unsigned int hash_offset;
1: + unsigned int nr_scans;
1: + bool percpu;
1: + long: 56;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bucket {
1: + struct hlist_nulls_head head;
1: + union {
1: + raw_spinlock_t raw_lock;
1: + spinlock_t lock;
1: + };
1: +};
1: +
1: +struct htab_elem;
1: +
1: +struct bpf_htab {
1: + struct bpf_map map;
1: + struct bucket *buckets;
1: + void *elems;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + union {
1: + struct pcpu_freelist freelist;
1: + struct bpf_lru lru;
1: + };
1: + struct htab_elem **extra_elems;
1: + atomic_t count;
1: + u32 n_buckets;
1: + u32 elem_size;
1: + u32 hashrnd;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct htab_elem {
1: + union {
1: + struct hlist_nulls_node hash_node;
1: + struct {
1: + void *padding;
1: + union {
1: + struct bpf_htab *htab;
1: + struct pcpu_freelist_node fnode;
1: + struct htab_elem *batch_flink;
1: + };
1: + };
1: + };
1: + union {
1: + struct callback_head rcu;
1: + struct bpf_lru_node lru_node;
1: + };
1: + u32 hash;
1: + int: 32;
1: + char key[0];
1: +};
1: +
1: +struct bpf_iter_seq_hash_map_info {
1: + struct bpf_map *map;
1: + struct bpf_htab *htab;
1: + void *percpu_value_buf;
1: + u32 bucket_id;
1: + u32 skip_elems;
1: +};
1: +
1: +struct bpf_iter_seq_array_map_info {
1: + struct bpf_map *map;
1: + void *percpu_value_buf;
1: + u32 index;
1: +};
1: +
1: +struct prog_poke_elem {
1: + struct list_head list;
1: + struct bpf_prog_aux *aux;
1: +};
1: +
1: +enum bpf_lru_list_type {
1: + BPF_LRU_LIST_T_ACTIVE = 0,
1: + BPF_LRU_LIST_T_INACTIVE = 1,
1: + BPF_LRU_LIST_T_FREE = 2,
1: + BPF_LRU_LOCAL_LIST_T_FREE = 3,
1: + BPF_LRU_LOCAL_LIST_T_PENDING = 4,
1: +};
1: +
1: +struct bpf_lpm_trie_key {
1: + __u32 prefixlen;
1: + __u8 data[0];
1: +};
1: +
1: +struct lpm_trie_node {
1: + struct callback_head rcu;
1: + struct lpm_trie_node *child[2];
1: + u32 prefixlen;
1: + u32 flags;
1: + u8 data[0];
1: +};
1: +
1: +struct lpm_trie {
1: + struct bpf_map map;
1: + struct lpm_trie_node *root;
1: + size_t n_entries;
1: + size_t max_prefixlen;
1: + size_t data_size;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cgroup_storage_map {
1: + struct bpf_map map;
1: + spinlock_t lock;
1: + struct rb_root root;
1: + struct list_head list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_queue_stack {
1: + struct bpf_map map;
1: + raw_spinlock_t lock;
1: + u32 head;
1: + u32 tail;
1: + u32 size;
1: + char elements[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum {
1: + BPF_RB_NO_WAKEUP = 1,
1: + BPF_RB_FORCE_WAKEUP = 2,
1: +};
1: +
1: +enum {
1: + BPF_RB_AVAIL_DATA = 0,
1: + BPF_RB_RING_SIZE = 1,
1: + BPF_RB_CONS_POS = 2,
1: + BPF_RB_PROD_POS = 3,
1: +};
1: +
1: +enum {
1: + BPF_RINGBUF_BUSY_BIT = 2147483648,
1: + BPF_RINGBUF_DISCARD_BIT = 1073741824,
1: + BPF_RINGBUF_HDR_SZ = 8,
1: +};
1: +
1: +struct bpf_ringbuf {
1: + wait_queue_head_t waitq;
1: + struct irq_work work;
1: + u64 mask;
1: + struct page **pages;
1: + int nr_pages;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t spinlock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int consumer_pos;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long unsigned int producer_pos;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + char data[0];
1: +};
1: +
1: +struct bpf_ringbuf_map {
1: + struct bpf_map map;
1: + struct bpf_map_memory memory;
1: + struct bpf_ringbuf *rb;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_ringbuf_hdr {
1: + u32 len;
1: + u32 pg_off;
1: +};
1: +
1: +typedef u64 (*btf_bpf_ringbuf_reserve)(struct bpf_map *, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_submit)(void *, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_discard)(void *, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_output)(struct bpf_map *, void *, u64, u64);
1: +
1: +typedef u64 (*btf_bpf_ringbuf_query)(struct bpf_map *, u64);
1: +
1: +enum {
1: + BPF_LOCAL_STORAGE_GET_F_CREATE = 1,
1: + BPF_SK_STORAGE_GET_F_CREATE = 1,
1: +};
1: +
1: +struct bpf_local_storage_map_bucket;
1: +
1: +struct bpf_local_storage_map {
1: + struct bpf_map map;
1: + struct bpf_local_storage_map_bucket *buckets;
1: + u32 bucket_log;
1: + u16 elem_size;
1: + u16 cache_idx;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_local_storage_data;
1: +
1: +struct bpf_local_storage {
1: + struct bpf_local_storage_data *cache[16];
1: + struct hlist_head list;
1: + void *owner;
1: + struct callback_head rcu;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_local_storage_map_bucket {
1: + struct hlist_head list;
1: + raw_spinlock_t lock;
1: +};
1: +
1: +struct bpf_local_storage_data {
1: + struct bpf_local_storage_map *smap;
1: + u8 data[0];
1: +};
1: +
1: +struct bpf_local_storage_elem {
1: + struct hlist_node map_node;
1: + struct hlist_node snode;
1: + struct bpf_local_storage *local_storage;
1: + struct callback_head rcu;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct bpf_local_storage_data sdata;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_local_storage_cache {
1: + spinlock_t idx_lock;
1: + u64 idx_usage_counts[16];
1: +};
1: +
1: +struct lsm_blob_sizes {
1: + int lbs_cred;
1: + int lbs_file;
1: + int lbs_inode;
1: + int lbs_ipc;
1: + int lbs_msg_msg;
1: + int lbs_task;
1: +};
1: +
1: +struct bpf_storage_blob {
1: + struct bpf_local_storage *storage;
1: +};
1: +
1: +typedef u64 (*btf_bpf_inode_storage_get)(struct bpf_map *, struct inode *, void *, u64);
1: +
1: +typedef u64 (*btf_bpf_inode_storage_delete)(struct bpf_map *, struct inode *);
1: +
1: +struct bpf_tramp_progs {
1: + struct bpf_prog *progs[40];
1: + int nr_progs;
1: +};
1: +
1: +struct btf_enum {
1: + __u32 name_off;
1: + __s32 val;
1: +};
1: +
1: +struct btf_array {
1: + __u32 type;
1: + __u32 index_type;
1: + __u32 nelems;
1: +};
1: +
1: +struct btf_param {
1: + __u32 name_off;
1: + __u32 type;
1: +};
1: +
1: +enum {
1: + BTF_VAR_STATIC = 0,
1: + BTF_VAR_GLOBAL_ALLOCATED = 1,
1: + BTF_VAR_GLOBAL_EXTERN = 2,
1: +};
1: +
1: +struct btf_var {
1: + __u32 linkage;
1: +};
1: +
1: +struct bpf_flow_keys {
1: + __u16 nhoff;
1: + __u16 thoff;
1: + __u16 addr_proto;
1: + __u8 is_frag;
1: + __u8 is_first_frag;
1: + __u8 is_encap;
1: + __u8 ip_proto;
1: + __be16 n_proto;
1: + __be16 sport;
1: + __be16 dport;
1: + union {
1: + struct {
1: + __be32 ipv4_src;
1: + __be32 ipv4_dst;
1: + };
1: + struct {
1: + __u32 ipv6_src[4];
1: + __u32 ipv6_dst[4];
1: + };
1: + };
1: + __u32 flags;
1: + __be32 flow_label;
1: +};
1: +
1: +struct bpf_sock {
1: + __u32 bound_dev_if;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 mark;
1: + __u32 priority;
1: + __u32 src_ip4;
1: + __u32 src_ip6[4];
1: + __u32 src_port;
1: + __u32 dst_port;
1: + __u32 dst_ip4;
1: + __u32 dst_ip6[4];
1: + __u32 state;
1: + __s32 rx_queue_mapping;
1: +};
1: +
1: +struct __sk_buff {
1: + __u32 len;
1: + __u32 pkt_type;
1: + __u32 mark;
1: + __u32 queue_mapping;
1: + __u32 protocol;
1: + __u32 vlan_present;
1: + __u32 vlan_tci;
1: + __u32 vlan_proto;
1: + __u32 priority;
1: + __u32 ingress_ifindex;
1: + __u32 ifindex;
1: + __u32 tc_index;
1: + __u32 cb[5];
1: + __u32 hash;
1: + __u32 tc_classid;
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 napi_id;
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 data_meta;
1: + union {
1: + struct bpf_flow_keys *flow_keys;
1: + };
1: + __u64 tstamp;
1: + __u32 wire_len;
1: + __u32 gso_segs;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 gso_size;
1: +};
1: +
1: +struct xdp_md {
1: + __u32 data;
1: + __u32 data_end;
1: + __u32 data_meta;
1: + __u32 ingress_ifindex;
1: + __u32 rx_queue_index;
1: + __u32 egress_ifindex;
1: +};
1: +
1: +struct sk_msg_md {
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 size;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: +};
1: +
1: +struct sk_reuseport_md {
1: + union {
1: + void *data;
1: + };
1: + union {
1: + void *data_end;
1: + };
1: + __u32 len;
1: + __u32 eth_protocol;
1: + __u32 ip_protocol;
1: + __u32 bind_inany;
1: + __u32 hash;
1: +};
1: +
1: +struct bpf_sock_addr {
1: + __u32 user_family;
1: + __u32 user_ip4;
1: + __u32 user_ip6[4];
1: + __u32 user_port;
1: + __u32 family;
1: + __u32 type;
1: + __u32 protocol;
1: + __u32 msg_src_ip4;
1: + __u32 msg_src_ip6[4];
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: +};
1: +
1: +struct bpf_sock_ops {
1: + __u32 op;
1: + union {
1: + __u32 args[4];
1: + __u32 reply;
1: + __u32 replylong[4];
1: + };
1: + __u32 family;
1: + __u32 remote_ip4;
1: + __u32 local_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 local_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_port;
1: + __u32 is_fullsock;
1: + __u32 snd_cwnd;
1: + __u32 srtt_us;
1: + __u32 bpf_sock_ops_cb_flags;
1: + __u32 state;
1: + __u32 rtt_min;
1: + __u32 snd_ssthresh;
1: + __u32 rcv_nxt;
1: + __u32 snd_nxt;
1: + __u32 snd_una;
1: + __u32 mss_cache;
1: + __u32 ecn_flags;
1: + __u32 rate_delivered;
1: + __u32 rate_interval_us;
1: + __u32 packets_out;
1: + __u32 retrans_out;
1: + __u32 total_retrans;
1: + __u32 segs_in;
1: + __u32 data_segs_in;
1: + __u32 segs_out;
1: + __u32 data_segs_out;
1: + __u32 lost_out;
1: + __u32 sacked_out;
1: + __u32 sk_txhash;
1: + __u64 bytes_received;
1: + __u64 bytes_acked;
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *skb_data;
1: + };
1: + union {
1: + void *skb_data_end;
1: + };
1: + __u32 skb_len;
1: + __u32 skb_tcp_flags;
1: +};
1: +
1: +struct bpf_cgroup_dev_ctx {
1: + __u32 access_type;
1: + __u32 major;
1: + __u32 minor;
1: +};
1: +
1: +struct bpf_sysctl {
1: + __u32 write;
1: + __u32 file_pos;
1: +};
1: +
1: +struct bpf_sockopt {
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + union {
1: + void *optval;
1: + };
1: + union {
1: + void *optval_end;
1: + };
1: + __s32 level;
1: + __s32 optname;
1: + __s32 optlen;
1: + __s32 retval;
1: +};
1: +
1: +struct bpf_sk_lookup {
1: + union {
1: + struct bpf_sock *sk;
1: + };
1: + __u32 family;
1: + __u32 protocol;
1: + __u32 remote_ip4;
1: + __u32 remote_ip6[4];
1: + __u32 remote_port;
1: + __u32 local_ip4;
1: + __u32 local_ip6[4];
1: + __u32 local_port;
1: +};
1: +
1: +struct sk_reuseport_kern {
1: + struct sk_buff *skb;
1: + struct sock *sk;
1: + struct sock *selected_sk;
1: + void *data_end;
1: + u32 hash;
1: + u32 reuseport_id;
1: + bool bind_inany;
1: +};
1: +
1: +struct bpf_flow_dissector {
1: + struct bpf_flow_keys *flow_keys;
1: + const struct sk_buff *skb;
1: + void *data;
1: + void *data_end;
1: +};
1: +
1: +struct inet_listen_hashbucket {
1: + spinlock_t lock;
1: + unsigned int count;
1: + union {
1: + struct hlist_head head;
1: + struct hlist_nulls_head nulls_head;
1: + };
1: +};
1: +
1: +struct inet_ehash_bucket;
1: +
1: +struct inet_bind_hashbucket;
1: +
1: +struct inet_hashinfo {
1: + struct inet_ehash_bucket *ehash;
1: + spinlock_t *ehash_locks;
1: + unsigned int ehash_mask;
1: + unsigned int ehash_locks_mask;
1: + struct kmem_cache *bind_bucket_cachep;
1: + struct inet_bind_hashbucket *bhash;
1: + unsigned int bhash_size;
1: + unsigned int lhash2_mask;
1: + struct inet_listen_hashbucket *lhash2;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct inet_listen_hashbucket listening_hash[32];
1: +};
1: +
1: +struct ip_ra_chain {
1: + struct ip_ra_chain *next;
1: + struct sock *sk;
1: + union {
1: + void (*destructor)(struct sock *);
1: + struct sock *saved_sk;
1: + };
1: + struct callback_head rcu;
1: +};
1: +
1: +struct fib_table {
1: + struct hlist_node tb_hlist;
1: + u32 tb_id;
1: + int tb_num_default;
1: + struct callback_head rcu;
1: + long unsigned int *tb_data;
1: + long unsigned int __data[0];
1: +};
1: +
1: +struct inet_peer_base {
1: + struct rb_root rb_root;
1: + seqlock_t lock;
1: + int total;
1: +};
1: +
1: +struct tcp_fastopen_context {
1: + siphash_key_t key[2];
1: + int num;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct xdp_txq_info {
1: + struct net_device *dev;
1: +};
1: +
1: +struct xdp_buff {
1: + void *data;
1: + void *data_end;
1: + void *data_meta;
1: + void *data_hard_start;
1: + struct xdp_rxq_info *rxq;
1: + struct xdp_txq_info *txq;
1: + u32 frame_sz;
1: +};
1: +
1: +struct bpf_sock_addr_kern {
1: + struct sock *sk;
1: + struct sockaddr *uaddr;
1: + u64 tmp_reg;
1: + void *t_ctx;
1: +};
1: +
1: +struct bpf_sock_ops_kern {
1: + struct sock *sk;
1: + union {
1: + u32 args[4];
1: + u32 reply;
1: + u32 replylong[4];
1: + };
1: + struct sk_buff *syn_skb;
1: + struct sk_buff *skb;
1: + void *skb_data_end;
1: + u8 op;
1: + u8 is_fullsock;
1: + u8 remaining_opt_len;
1: + u64 temp;
1: +};
1: +
1: +struct bpf_sysctl_kern {
1: + struct ctl_table_header *head;
1: + struct ctl_table *table;
1: + void *cur_val;
1: + size_t cur_len;
1: + void *new_val;
1: + size_t new_len;
1: + int new_updated;
1: + int write;
1: + loff_t *ppos;
1: + u64 tmp_reg;
1: +};
1: +
1: +struct bpf_sockopt_kern {
1: + struct sock *sk;
1: + u8 *optval;
1: + u8 *optval_end;
1: + s32 level;
1: + s32 optname;
1: + s32 optlen;
1: + s32 retval;
1: +};
1: +
1: +struct bpf_sk_lookup_kern {
1: + u16 family;
1: + u16 protocol;
1: + __be16 sport;
1: + u16 dport;
1: + struct {
1: + __be32 saddr;
1: + __be32 daddr;
1: + } v4;
1: + struct {
1: + const struct in6_addr *saddr;
1: + const struct in6_addr *daddr;
1: + } v6;
1: + struct sock *selected_sk;
1: + bool no_reuseport;
1: +};
1: +
1: +struct sock_reuseport {
1: + struct callback_head rcu;
1: + u16 max_socks;
1: + u16 num_socks;
1: + unsigned int synq_overflow_ts;
1: + unsigned int reuseport_id;
1: + unsigned int bind_inany: 1;
1: + unsigned int has_conns: 1;
1: + struct bpf_prog *prog;
1: + struct sock *socks[0];
1: +};
1: +
1: +struct inet_ehash_bucket {
1: + struct hlist_nulls_head chain;
1: +};
1: +
1: +struct inet_bind_hashbucket {
1: + spinlock_t lock;
1: + struct hlist_head chain;
1: +};
1: +
1: +struct ack_sample {
1: + u32 pkts_acked;
1: + s32 rtt_us;
1: + u32 in_flight;
1: +};
1: +
1: +struct rate_sample {
1: + u64 prior_mstamp;
1: + u32 prior_delivered;
1: + s32 delivered;
1: + long int interval_us;
1: + u32 snd_interval_us;
1: + u32 rcv_interval_us;
1: + long int rtt_us;
1: + int losses;
1: + u32 acked_sacked;
1: + u32 prior_in_flight;
1: + bool is_app_limited;
1: + bool is_retrans;
1: + bool is_ack_delayed;
1: +};
1: +
1: +struct sk_msg_sg {
1: + u32 start;
1: + u32 curr;
1: + u32 end;
1: + u32 size;
1: + u32 copybreak;
1: + long unsigned int copy;
1: + struct scatterlist data[18];
1: +};
1: +
1: +struct sk_msg {
1: + struct sk_msg_sg sg;
1: + void *data;
1: + void *data_end;
1: + u32 apply_bytes;
1: + u32 cork_bytes;
1: + u32 flags;
1: + struct sk_buff *skb;
1: + struct sock *sk_redir;
1: + struct sock *sk;
1: + struct list_head list;
1: +};
1: +
1: +enum verifier_phase {
1: + CHECK_META = 0,
1: + CHECK_TYPE = 1,
1: +};
1: +
1: +struct resolve_vertex {
1: + const struct btf_type *t;
1: + u32 type_id;
1: + u16 next_member;
1: +};
1: +
1: +enum visit_state {
1: + NOT_VISITED = 0,
1: + VISITED = 1,
1: + RESOLVED = 2,
1: +};
1: +
1: +enum resolve_mode {
1: + RESOLVE_TBD = 0,
1: + RESOLVE_PTR = 1,
1: + RESOLVE_STRUCT_OR_ARRAY = 2,
1: +};
1: +
1: +struct btf_sec_info {
1: + u32 off;
1: + u32 len;
1: +};
1: +
1: +struct btf_verifier_env {
1: + struct btf *btf;
1: + u8 *visit_states;
1: + struct resolve_vertex stack[32];
1: + struct bpf_verifier_log log;
1: + u32 log_type_id;
1: + u32 top_stack;
1: + enum verifier_phase phase;
1: + enum resolve_mode resolve_mode;
1: +};
1: +
1: +struct btf_show {
1: + u64 flags;
1: + void *target;
1: + void (*showfn)(struct btf_show *, const char *, va_list);
1: + const struct btf *btf;
1: + struct {
1: + u8 depth;
1: + u8 depth_to_show;
1: + u8 depth_check;
1: + u8 array_member: 1;
1: + u8 array_terminated: 1;
1: + u16 array_encoding;
1: + u32 type_id;
1: + int status;
1: + const struct btf_type *type;
1: + const struct btf_member *member;
1: + char name[80];
1: + } state;
1: + struct {
1: + u32 size;
1: + void *head;
1: + void *data;
1: + u8 safe[32];
1: + } obj;
1: +};
1: +
1: +struct btf_kind_operations {
1: + s32 (*check_meta)(struct btf_verifier_env *, const struct btf_type *, u32);
1: + int (*resolve)(struct btf_verifier_env *, const struct resolve_vertex *);
1: + int (*check_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: + int (*check_kflag_member)(struct btf_verifier_env *, const struct btf_type *, const struct btf_member *, const struct btf_type *);
1: + void (*log_details)(struct btf_verifier_env *, const struct btf_type *);
1: + void (*show)(const struct btf *, const struct btf_type *, u32, void *, u8, struct btf_show *);
1: +};
1: +
1: +struct bpf_ctx_convert {
1: + struct __sk_buff BPF_PROG_TYPE_SOCKET_FILTER_prog;
1: + struct sk_buff BPF_PROG_TYPE_SOCKET_FILTER_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_CLS_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_CLS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SCHED_ACT_prog;
1: + struct sk_buff BPF_PROG_TYPE_SCHED_ACT_kern;
1: + struct xdp_md BPF_PROG_TYPE_XDP_prog;
1: + struct xdp_buff BPF_PROG_TYPE_XDP_kern;
1: + struct __sk_buff BPF_PROG_TYPE_CGROUP_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_CGROUP_SKB_kern;
1: + struct bpf_sock BPF_PROG_TYPE_CGROUP_SOCK_prog;
1: + struct sock BPF_PROG_TYPE_CGROUP_SOCK_kern;
1: + struct bpf_sock_addr BPF_PROG_TYPE_CGROUP_SOCK_ADDR_prog;
1: + struct bpf_sock_addr_kern BPF_PROG_TYPE_CGROUP_SOCK_ADDR_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_IN_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_IN_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_OUT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_OUT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_XMIT_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_XMIT_kern;
1: + struct __sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_prog;
1: + struct sk_buff BPF_PROG_TYPE_LWT_SEG6LOCAL_kern;
1: + struct bpf_sock_ops BPF_PROG_TYPE_SOCK_OPS_prog;
1: + struct bpf_sock_ops_kern BPF_PROG_TYPE_SOCK_OPS_kern;
1: + struct __sk_buff BPF_PROG_TYPE_SK_SKB_prog;
1: + struct sk_buff BPF_PROG_TYPE_SK_SKB_kern;
1: + struct sk_msg_md BPF_PROG_TYPE_SK_MSG_prog;
1: + struct sk_msg BPF_PROG_TYPE_SK_MSG_kern;
1: + struct __sk_buff BPF_PROG_TYPE_FLOW_DISSECTOR_prog;
1: + struct bpf_flow_dissector BPF_PROG_TYPE_FLOW_DISSECTOR_kern;
1: + bpf_user_pt_regs_t BPF_PROG_TYPE_KPROBE_prog;
1: + struct pt_regs BPF_PROG_TYPE_KPROBE_kern;
1: + __u64 BPF_PROG_TYPE_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_TRACEPOINT_kern;
1: + struct bpf_perf_event_data BPF_PROG_TYPE_PERF_EVENT_prog;
1: + struct bpf_perf_event_data_kern BPF_PROG_TYPE_PERF_EVENT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_kern;
1: + struct bpf_raw_tracepoint_args BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_prog;
1: + u64 BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE_kern;
1: + void *BPF_PROG_TYPE_TRACING_prog;
1: + void *BPF_PROG_TYPE_TRACING_kern;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_prog;
1: + struct bpf_cgroup_dev_ctx BPF_PROG_TYPE_CGROUP_DEVICE_kern;
1: + struct bpf_sysctl BPF_PROG_TYPE_CGROUP_SYSCTL_prog;
1: + struct bpf_sysctl_kern BPF_PROG_TYPE_CGROUP_SYSCTL_kern;
1: + struct bpf_sockopt BPF_PROG_TYPE_CGROUP_SOCKOPT_prog;
1: + struct bpf_sockopt_kern BPF_PROG_TYPE_CGROUP_SOCKOPT_kern;
1: + struct sk_reuseport_md BPF_PROG_TYPE_SK_REUSEPORT_prog;
1: + struct sk_reuseport_kern BPF_PROG_TYPE_SK_REUSEPORT_kern;
1: + struct bpf_sk_lookup BPF_PROG_TYPE_SK_LOOKUP_prog;
1: + struct bpf_sk_lookup_kern BPF_PROG_TYPE_SK_LOOKUP_kern;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_prog;
1: + void *BPF_PROG_TYPE_STRUCT_OPS_kern;
1: + void *BPF_PROG_TYPE_EXT_prog;
1: + void *BPF_PROG_TYPE_EXT_kern;
1: + void *BPF_PROG_TYPE_LSM_prog;
1: + void *BPF_PROG_TYPE_LSM_kern;
1: +};
1: +
1: +enum {
1: + __ctx_convertBPF_PROG_TYPE_SOCKET_FILTER = 0,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_CLS = 1,
1: + __ctx_convertBPF_PROG_TYPE_SCHED_ACT = 2,
1: + __ctx_convertBPF_PROG_TYPE_XDP = 3,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SKB = 4,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK = 5,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCK_ADDR = 6,
1: + __ctx_convertBPF_PROG_TYPE_LWT_IN = 7,
1: + __ctx_convertBPF_PROG_TYPE_LWT_OUT = 8,
1: + __ctx_convertBPF_PROG_TYPE_LWT_XMIT = 9,
1: + __ctx_convertBPF_PROG_TYPE_LWT_SEG6LOCAL = 10,
1: + __ctx_convertBPF_PROG_TYPE_SOCK_OPS = 11,
1: + __ctx_convertBPF_PROG_TYPE_SK_SKB = 12,
1: + __ctx_convertBPF_PROG_TYPE_SK_MSG = 13,
1: + __ctx_convertBPF_PROG_TYPE_FLOW_DISSECTOR = 14,
1: + __ctx_convertBPF_PROG_TYPE_KPROBE = 15,
1: + __ctx_convertBPF_PROG_TYPE_TRACEPOINT = 16,
1: + __ctx_convertBPF_PROG_TYPE_PERF_EVENT = 17,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT = 18,
1: + __ctx_convertBPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 19,
1: + __ctx_convertBPF_PROG_TYPE_TRACING = 20,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_DEVICE = 21,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SYSCTL = 22,
1: + __ctx_convertBPF_PROG_TYPE_CGROUP_SOCKOPT = 23,
1: + __ctx_convertBPF_PROG_TYPE_SK_REUSEPORT = 24,
1: + __ctx_convertBPF_PROG_TYPE_SK_LOOKUP = 25,
1: + __ctx_convertBPF_PROG_TYPE_STRUCT_OPS = 26,
1: + __ctx_convertBPF_PROG_TYPE_EXT = 27,
1: + __ctx_convertBPF_PROG_TYPE_LSM = 28,
1: + __ctx_convert_unused = 29,
1: +};
1: +
1: +enum bpf_struct_walk_result {
1: + WALK_SCALAR = 0,
1: + WALK_PTR = 1,
1: + WALK_STRUCT = 2,
1: +};
1: +
1: +struct btf_show_snprintf {
1: + struct btf_show show;
1: + int len_left;
1: + int len;
1: +};
1: +
1: +struct bpf_dispatcher_prog {
1: + struct bpf_prog *prog;
1: + refcount_t users;
1: +};
1: +
1: +struct bpf_dispatcher {
1: + struct mutex mutex;
1: + void *func;
1: + struct bpf_dispatcher_prog progs[48];
1: + int num_progs;
1: + void *image;
1: + u32 image_off;
1: + struct bpf_ksym ksym;
1: +};
1: +
1: +struct bpf_devmap_val {
1: + __u32 ifindex;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: +};
1: +
1: +enum net_device_flags {
1: + IFF_UP = 1,
1: + IFF_BROADCAST = 2,
1: + IFF_DEBUG = 4,
1: + IFF_LOOPBACK = 8,
1: + IFF_POINTOPOINT = 16,
1: + IFF_NOTRAILERS = 32,
1: + IFF_RUNNING = 64,
1: + IFF_NOARP = 128,
1: + IFF_PROMISC = 256,
1: + IFF_ALLMULTI = 512,
1: + IFF_MASTER = 1024,
1: + IFF_SLAVE = 2048,
1: + IFF_MULTICAST = 4096,
1: + IFF_PORTSEL = 8192,
1: + IFF_AUTOMEDIA = 16384,
1: + IFF_DYNAMIC = 32768,
1: + IFF_LOWER_UP = 65536,
1: + IFF_DORMANT = 131072,
1: + IFF_ECHO = 262144,
1: +};
1: +
1: +struct xdp_dev_bulk_queue {
1: + struct xdp_frame *q[16];
1: + struct list_head flush_node;
1: + struct net_device *dev;
1: + struct net_device *dev_rx;
1: + unsigned int count;
1: +};
1: +
1: +enum netdev_cmd {
1: + NETDEV_UP = 1,
1: + NETDEV_DOWN = 2,
1: + NETDEV_REBOOT = 3,
1: + NETDEV_CHANGE = 4,
1: + NETDEV_REGISTER = 5,
1: + NETDEV_UNREGISTER = 6,
1: + NETDEV_CHANGEMTU = 7,
1: + NETDEV_CHANGEADDR = 8,
1: + NETDEV_PRE_CHANGEADDR = 9,
1: + NETDEV_GOING_DOWN = 10,
1: + NETDEV_CHANGENAME = 11,
1: + NETDEV_FEAT_CHANGE = 12,
1: + NETDEV_BONDING_FAILOVER = 13,
1: + NETDEV_PRE_UP = 14,
1: + NETDEV_PRE_TYPE_CHANGE = 15,
1: + NETDEV_POST_TYPE_CHANGE = 16,
1: + NETDEV_POST_INIT = 17,
1: + NETDEV_RELEASE = 18,
1: + NETDEV_NOTIFY_PEERS = 19,
1: + NETDEV_JOIN = 20,
1: + NETDEV_CHANGEUPPER = 21,
1: + NETDEV_RESEND_IGMP = 22,
1: + NETDEV_PRECHANGEMTU = 23,
1: + NETDEV_CHANGEINFODATA = 24,
1: + NETDEV_BONDING_INFO = 25,
1: + NETDEV_PRECHANGEUPPER = 26,
1: + NETDEV_CHANGELOWERSTATE = 27,
1: + NETDEV_UDP_TUNNEL_PUSH_INFO = 28,
1: + NETDEV_UDP_TUNNEL_DROP_INFO = 29,
1: + NETDEV_CHANGE_TX_QUEUE_LEN = 30,
1: + NETDEV_CVLAN_FILTER_PUSH_INFO = 31,
1: + NETDEV_CVLAN_FILTER_DROP_INFO = 32,
1: + NETDEV_SVLAN_FILTER_PUSH_INFO = 33,
1: + NETDEV_SVLAN_FILTER_DROP_INFO = 34,
1: +};
1: +
1: +struct netdev_notifier_info {
1: + struct net_device *dev;
1: + struct netlink_ext_ack *extack;
1: +};
1: +
1: +struct bpf_dtab;
1: +
1: +struct bpf_dtab_netdev {
1: + struct net_device *dev;
1: + struct hlist_node index_hlist;
1: + struct bpf_dtab *dtab;
1: + struct bpf_prog *xdp_prog;
1: + struct callback_head rcu;
1: + unsigned int idx;
1: + struct bpf_devmap_val val;
1: +};
1: +
1: +struct bpf_dtab {
1: + struct bpf_map map;
1: + struct bpf_dtab_netdev **netdev_map;
1: + struct list_head list;
1: + struct hlist_head *dev_index_head;
1: + spinlock_t index_lock;
1: + unsigned int items;
1: + u32 n_buckets;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cpumap_val {
1: + __u32 qsize;
1: + union {
1: + int fd;
1: + __u32 id;
1: + } bpf_prog;
1: +};
1: +
1: +typedef struct bio_vec skb_frag_t;
1: +
1: +struct skb_shared_hwtstamps {
1: + ktime_t hwtstamp;
1: +};
1: +
1: +struct skb_shared_info {
1: + __u8 __unused;
1: + __u8 meta_len;
1: + __u8 nr_frags;
1: + __u8 tx_flags;
1: + short unsigned int gso_size;
1: + short unsigned int gso_segs;
1: + struct sk_buff *frag_list;
1: + struct skb_shared_hwtstamps hwtstamps;
1: + unsigned int gso_type;
1: + u32 tskey;
1: + atomic_t dataref;
1: + void *destructor_arg;
1: + skb_frag_t frags[16];
1: +};
1: +
1: +struct bpf_nh_params {
1: + u32 nh_family;
1: + union {
1: + u32 ipv4_nh;
1: + struct in6_addr ipv6_nh;
1: + };
1: +};
1: +
1: +struct bpf_redirect_info {
1: + u32 flags;
1: + u32 tgt_index;
1: + void *tgt_value;
1: + struct bpf_map *map;
1: + u32 kern_flags;
1: + struct bpf_nh_params nh;
1: +};
1: +
1: +struct ptr_ring {
1: + int producer;
1: + spinlock_t producer_lock;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + int consumer_head;
1: + int consumer_tail;
1: + spinlock_t consumer_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + int size;
1: + int batch;
1: + void **queue;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct bpf_cpu_map_entry;
1: +
1: +struct xdp_bulk_queue {
1: + void *q[8];
1: + struct list_head flush_node;
1: + struct bpf_cpu_map_entry *obj;
1: + unsigned int count;
1: +};
1: +
1: +struct bpf_cpu_map;
1: +
1: +struct bpf_cpu_map_entry {
1: + u32 cpu;
1: + int map_id;
1: + struct xdp_bulk_queue *bulkq;
1: + struct bpf_cpu_map *cmap;
1: + struct ptr_ring *queue;
1: + struct task_struct *kthread;
1: + struct bpf_cpumap_val value;
1: + struct bpf_prog *prog;
1: + atomic_t refcnt;
1: + struct callback_head rcu;
1: + struct work_struct kthread_stop_wq;
1: +};
1: +
1: +struct bpf_cpu_map {
1: + struct bpf_map map;
1: + struct bpf_cpu_map_entry **cpu_map;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct rhlist_head {
1: + struct rhash_head rhead;
1: + struct rhlist_head *next;
1: +};
1: +
1: +struct bpf_prog_offload_ops {
1: + int (*insn_hook)(struct bpf_verifier_env *, int, int);
1: + int (*finalize)(struct bpf_verifier_env *);
1: + int (*replace_insn)(struct bpf_verifier_env *, u32, struct bpf_insn *);
1: + int (*remove_insns)(struct bpf_verifier_env *, u32, u32);
1: + int (*prepare)(struct bpf_prog *);
1: + int (*translate)(struct bpf_prog *);
1: + void (*destroy)(struct bpf_prog *);
1: +};
1: +
1: +struct bpf_offload_dev {
1: + const struct bpf_prog_offload_ops *ops;
1: + struct list_head netdevs;
1: + void *priv;
1: +};
1: +
1: +struct bpf_offload_netdev {
1: + struct rhash_head l;
1: + struct net_device *netdev;
1: + struct bpf_offload_dev *offdev;
1: + struct list_head progs;
1: + struct list_head maps;
1: + struct list_head offdev_netdevs;
1: +};
1: +
1: +struct ns_get_path_bpf_prog_args {
1: + struct bpf_prog *prog;
1: + struct bpf_prog_info *info;
1: +};
1: +
1: +struct ns_get_path_bpf_map_args {
1: + struct bpf_offloaded_map *offmap;
1: + struct bpf_map_info *info;
1: +};
1: +
1: +struct bpf_netns_link {
1: + struct bpf_link link;
1: + enum bpf_attach_type type;
1: + enum netns_bpf_attach_type netns_type;
1: + struct net *net;
1: + struct list_head node;
1: +};
1: +
1: +enum bpf_stack_build_id_status {
1: + BPF_STACK_BUILD_ID_EMPTY = 0,
1: + BPF_STACK_BUILD_ID_VALID = 1,
1: + BPF_STACK_BUILD_ID_IP = 2,
1: +};
1: +
1: +struct bpf_stack_build_id {
1: + __s32 status;
1: + unsigned char build_id[20];
1: + union {
1: + __u64 offset;
1: + __u64 ip;
1: + };
1: +};
1: +
1: +enum {
1: + BPF_F_SKIP_FIELD_MASK = 255,
1: + BPF_F_USER_STACK = 256,
1: + BPF_F_FAST_STACK_CMP = 512,
1: + BPF_F_REUSE_STACKID = 1024,
1: + BPF_F_USER_BUILD_ID = 2048,
1: +};
1: +
1: +struct elf32_phdr {
1: + Elf32_Word p_type;
1: + Elf32_Off p_offset;
1: + Elf32_Addr p_vaddr;
1: + Elf32_Addr p_paddr;
1: + Elf32_Word p_filesz;
1: + Elf32_Word p_memsz;
1: + Elf32_Word p_flags;
1: + Elf32_Word p_align;
1: +};
1: +
1: +typedef struct elf32_phdr Elf32_Phdr;
1: +
1: +typedef struct elf32_note Elf32_Nhdr;
1: +
1: +struct stack_map_bucket {
1: + struct pcpu_freelist_node fnode;
1: + u32 hash;
1: + u32 nr;
1: + u64 data[0];
1: +};
1: +
1: +struct bpf_stack_map {
1: + struct bpf_map map;
1: + void *elems;
1: + struct pcpu_freelist freelist;
1: + u32 n_buckets;
1: + struct stack_map_bucket *buckets[0];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct stack_map_irq_work {
1: + struct irq_work irq_work;
1: + struct mm_struct *mm;
1: +};
1: +
1: +typedef u64 (*btf_bpf_get_stackid)(struct pt_regs *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stackid_pe)(struct bpf_perf_event_data_kern *, struct bpf_map *, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack)(struct pt_regs *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_get_task_stack)(struct task_struct *, void *, u32, u64);
1: +
1: +typedef u64 (*btf_bpf_get_stack_pe)(struct bpf_perf_event_data_kern *, void *, u32, u64);
1: +
1: +enum {
1: + BPF_F_SYSCTL_BASE_NAME = 1,
1: +};
1: +
1: +struct bpf_prog_list {
1: + struct list_head node;
1: + struct bpf_prog *prog;
1: + struct bpf_cgroup_link *link;
1: + struct bpf_cgroup_storage *storage[2];
1: +};
1: +
1: +struct qdisc_skb_cb {
1: + struct {
1: + unsigned int pkt_len;
1: + u16 slave_dev_queue_mapping;
1: + u16 tc_classid;
1: + };
1: + unsigned char data[20];
1: + u16 mru;
1: +};
1: +
1: +struct bpf_skb_data_end {
1: + struct qdisc_skb_cb qdisc_cb;
1: + void *data_meta;
1: + void *data_end;
1: +};
1: +
1: +enum {
1: + TCPF_ESTABLISHED = 2,
1: + TCPF_SYN_SENT = 4,
1: + TCPF_SYN_RECV = 8,
1: + TCPF_FIN_WAIT1 = 16,
1: + TCPF_FIN_WAIT2 = 32,
1: + TCPF_TIME_WAIT = 64,
1: + TCPF_CLOSE = 128,
1: + TCPF_CLOSE_WAIT = 256,
1: + TCPF_LAST_ACK = 512,
1: + TCPF_LISTEN = 1024,
1: + TCPF_CLOSING = 2048,
1: + TCPF_NEW_SYN_RECV = 4096,
1: +};
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_name)(struct bpf_sysctl_kern *, char *, size_t, u64);
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_current_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +
1: +typedef u64 (*btf_bpf_sysctl_get_new_value)(struct bpf_sysctl_kern *, char *, size_t);
1: +
1: +typedef u64 (*btf_bpf_sysctl_set_new_value)(struct bpf_sysctl_kern *, const char *, size_t);
1: +
1: +enum sock_type {
1: + SOCK_STREAM = 1,
1: + SOCK_DGRAM = 2,
1: + SOCK_RAW = 3,
1: + SOCK_RDM = 4,
1: + SOCK_SEQPACKET = 5,
1: + SOCK_DCCP = 6,
1: + SOCK_PACKET = 10,
1: +};
1: +
1: +enum {
1: + IPPROTO_IP = 0,
1: + IPPROTO_ICMP = 1,
1: + IPPROTO_IGMP = 2,
1: + IPPROTO_IPIP = 4,
1: + IPPROTO_TCP = 6,
1: + IPPROTO_EGP = 8,
1: + IPPROTO_PUP = 12,
1: + IPPROTO_UDP = 17,
1: + IPPROTO_IDP = 22,
1: + IPPROTO_TP = 29,
1: + IPPROTO_DCCP = 33,
1: + IPPROTO_IPV6 = 41,
1: + IPPROTO_RSVP = 46,
1: + IPPROTO_GRE = 47,
1: + IPPROTO_ESP = 50,
1: + IPPROTO_AH = 51,
1: + IPPROTO_MTP = 92,
1: + IPPROTO_BEETPH = 94,
1: + IPPROTO_ENCAP = 98,
1: + IPPROTO_PIM = 103,
1: + IPPROTO_COMP = 108,
1: + IPPROTO_SCTP = 132,
1: + IPPROTO_UDPLITE = 136,
1: + IPPROTO_MPLS = 137,
1: + IPPROTO_ETHERNET = 143,
1: + IPPROTO_RAW = 255,
1: + IPPROTO_MPTCP = 262,
1: + IPPROTO_MAX = 263,
1: +};
1: +
1: +enum sock_flags {
1: + SOCK_DEAD = 0,
1: + SOCK_DONE = 1,
1: + SOCK_URGINLINE = 2,
1: + SOCK_KEEPOPEN = 3,
1: + SOCK_LINGER = 4,
1: + SOCK_DESTROY = 5,
1: + SOCK_BROADCAST = 6,
1: + SOCK_TIMESTAMP = 7,
1: + SOCK_ZAPPED = 8,
1: + SOCK_USE_WRITE_QUEUE = 9,
1: + SOCK_DBG = 10,
1: + SOCK_RCVTSTAMP = 11,
1: + SOCK_RCVTSTAMPNS = 12,
1: + SOCK_LOCALROUTE = 13,
1: + SOCK_MEMALLOC = 14,
1: + SOCK_TIMESTAMPING_RX_SOFTWARE = 15,
1: + SOCK_FASYNC = 16,
1: + SOCK_RXQ_OVFL = 17,
1: + SOCK_ZEROCOPY = 18,
1: + SOCK_WIFI_STATUS = 19,
1: + SOCK_NOFCS = 20,
1: + SOCK_FILTER_LOCKED = 21,
1: + SOCK_SELECT_ERR_QUEUE = 22,
1: + SOCK_RCU_FREE = 23,
1: + SOCK_TXTIME = 24,
1: + SOCK_XDP = 25,
1: + SOCK_TSTAMP_NEW = 26,
1: +};
1: +
1: +struct reuseport_array {
1: + struct bpf_map map;
1: + struct sock *ptrs[0];
1: +};
1: +
1: +enum bpf_struct_ops_state {
1: + BPF_STRUCT_OPS_STATE_INIT = 0,
1: + BPF_STRUCT_OPS_STATE_INUSE = 1,
1: + BPF_STRUCT_OPS_STATE_TOBEFREE = 2,
1: +};
1: +
1: +struct bpf_struct_ops_value {
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + char data[0];
1: +};
1: +
1: +struct bpf_struct_ops_map {
1: + struct bpf_map map;
1: + const struct bpf_struct_ops *st_ops;
1: + struct mutex lock;
1: + struct bpf_prog **progs;
1: + void *image;
1: + struct bpf_struct_ops_value *uvalue;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct bpf_struct_ops_value kvalue;
1: +};
1: +
1: +struct bpf_struct_ops_tcp_congestion_ops {
1: + refcount_t refcnt;
1: + enum bpf_struct_ops_state state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct tcp_congestion_ops data;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sembuf {
1: + short unsigned int sem_num;
1: + short int sem_op;
1: + short int sem_flg;
1: +};
1: +
1: +enum key_need_perm {
1: + KEY_NEED_UNSPECIFIED = 0,
1: + KEY_NEED_VIEW = 1,
1: + KEY_NEED_READ = 2,
1: + KEY_NEED_WRITE = 3,
1: + KEY_NEED_SEARCH = 4,
1: + KEY_NEED_LINK = 5,
1: + KEY_NEED_SETATTR = 6,
1: + KEY_NEED_UNLINK = 7,
1: + KEY_SYSADMIN_OVERRIDE = 8,
1: + KEY_AUTHTOKEN_OVERRIDE = 9,
1: + KEY_DEFER_PERM_CHECK = 10,
1: +};
1: +
1: +struct __key_reference_with_attributes;
1: +
1: +typedef struct __key_reference_with_attributes *key_ref_t;
1: +
1: +struct xfrm_sec_ctx {
1: + __u8 ctx_doi;
1: + __u8 ctx_alg;
1: + __u16 ctx_len;
1: + __u32 ctx_sid;
1: + char ctx_str[0];
1: +};
1: +
1: +struct xfrm_user_sec_ctx {
1: + __u16 len;
1: + __u16 exttype;
1: + __u8 ctx_alg;
1: + __u8 ctx_doi;
1: + __u16 ctx_len;
1: +};
1: +
1: +enum perf_event_read_format {
1: + PERF_FORMAT_TOTAL_TIME_ENABLED = 1,
1: + PERF_FORMAT_TOTAL_TIME_RUNNING = 2,
1: + PERF_FORMAT_ID = 4,
1: + PERF_FORMAT_GROUP = 8,
1: + PERF_FORMAT_MAX = 16,
1: +};
1: +
1: +enum perf_event_ioc_flags {
1: + PERF_IOC_FLAG_GROUP = 1,
1: +};
1: +
1: +struct perf_event_mmap_page {
1: + __u32 version;
1: + __u32 compat_version;
1: + __u32 lock;
1: + __u32 index;
1: + __s64 offset;
1: + __u64 time_enabled;
1: + __u64 time_running;
1: + union {
1: + __u64 capabilities;
1: + struct {
1: + __u64 cap_bit0: 1;
1: + __u64 cap_bit0_is_deprecated: 1;
1: + __u64 cap_user_rdpmc: 1;
1: + __u64 cap_user_time: 1;
1: + __u64 cap_user_time_zero: 1;
1: + __u64 cap_user_time_short: 1;
1: + __u64 cap_____res: 58;
1: + };
1: + };
1: + __u16 pmc_width;
1: + __u16 time_shift;
1: + __u32 time_mult;
1: + __u64 time_offset;
1: + __u64 time_zero;
1: + __u32 size;
1: + __u32 __reserved_1;
1: + __u64 time_cycles;
1: + __u64 time_mask;
1: + __u8 __reserved[928];
1: + __u64 data_head;
1: + __u64 data_tail;
1: + __u64 data_offset;
1: + __u64 data_size;
1: + __u64 aux_head;
1: + __u64 aux_tail;
1: + __u64 aux_offset;
1: + __u64 aux_size;
1: +};
1: +
1: +struct perf_ns_link_info {
1: + __u64 dev;
1: + __u64 ino;
1: +};
1: +
1: +enum {
1: + NET_NS_INDEX = 0,
1: + UTS_NS_INDEX = 1,
1: + IPC_NS_INDEX = 2,
1: + PID_NS_INDEX = 3,
1: + USER_NS_INDEX = 4,
1: + MNT_NS_INDEX = 5,
1: + CGROUP_NS_INDEX = 6,
1: + NR_NAMESPACES = 7,
1: +};
1: +
1: +struct perf_guest_info_callbacks {
1: + int (*is_in_guest)();
1: + int (*is_user_mode)();
1: + long unsigned int (*get_guest_ip)();
1: + void (*handle_intel_pt_intr)();
1: +};
1: +
1: +enum perf_addr_filter_action_t {
1: + PERF_ADDR_FILTER_ACTION_STOP = 0,
1: + PERF_ADDR_FILTER_ACTION_START = 1,
1: + PERF_ADDR_FILTER_ACTION_FILTER = 2,
1: +};
1: +
1: +struct perf_addr_filter {
1: + struct list_head entry;
1: + struct path path;
1: + long unsigned int offset;
1: + long unsigned int size;
1: + enum perf_addr_filter_action_t action;
1: +};
1: +
1: +struct swevent_hlist {
1: + struct hlist_head heads[256];
1: + struct callback_head callback_head;
1: +};
1: +
1: +struct pmu_event_list {
1: + raw_spinlock_t lock;
1: + struct list_head list;
1: +};
1: +
1: +struct perf_buffer {
1: + refcount_t refcount;
1: + struct callback_head callback_head;
1: + int nr_pages;
1: + int overwrite;
1: + int paused;
1: + atomic_t poll;
1: + local_t head;
1: + unsigned int nest;
1: + local_t events;
1: + local_t wakeup;
1: + local_t lost;
1: + long int watermark;
1: + long int aux_watermark;
1: + spinlock_t event_lock;
1: + struct list_head event_list;
1: + atomic_t mmap_count;
1: + long unsigned int mmap_locked;
1: + struct user_struct *mmap_user;
1: + long int aux_head;
1: + unsigned int aux_nest;
1: + long int aux_wakeup;
1: + long unsigned int aux_pgoff;
1: + int aux_nr_pages;
1: + int aux_overwrite;
1: + atomic_t aux_mmap_count;
1: + long unsigned int aux_mmap_locked;
1: + void (*free_aux)(void *);
1: + refcount_t aux_refcount;
1: + int aux_in_sampling;
1: + void **aux_pages;
1: + void *aux_priv;
1: + struct perf_event_mmap_page *user_page;
1: + void *data_pages[0];
1: +};
1: +
1: +struct match_token {
1: + int token;
1: + const char *pattern;
1: +};
1: +
1: +enum {
1: + MAX_OPT_ARGS = 3,
1: +};
1: +
1: +typedef struct {
1: + char *from;
1: + char *to;
1: +} substring_t;
1: +
1: +struct min_heap {
1: + void *data;
1: + int nr;
1: + int size;
1: +};
1: +
1: +struct min_heap_callbacks {
1: + int elem_size;
1: + bool (*less)(const void *, const void *);
1: + void (*swp)(void *, void *);
1: +};
1: +
1: +typedef int (*remote_function_f)(void *);
1: +
1: +struct remote_function_call {
1: + struct task_struct *p;
1: + remote_function_f func;
1: + void *info;
1: + int ret;
1: +};
1: +
1: +typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *, struct perf_event_context *, void *);
1: +
1: +struct event_function_struct {
1: + struct perf_event *event;
1: + event_f func;
1: + void *data;
1: +};
1: +
1: +enum event_type_t {
1: + EVENT_FLEXIBLE = 1,
1: + EVENT_PINNED = 2,
1: + EVENT_TIME = 4,
1: + EVENT_CPU = 8,
1: + EVENT_ALL = 3,
1: +};
1: +
1: +struct stop_event_data {
1: + struct perf_event *event;
1: + unsigned int restart;
1: +};
1: +
1: +struct perf_read_data {
1: + struct perf_event *event;
1: + bool group;
1: + int ret;
1: +};
1: +
1: +struct perf_read_event {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: +};
1: +
1: +typedef void perf_iterate_f(struct perf_event *, void *);
1: +
1: +struct remote_output {
1: + struct perf_buffer *rb;
1: + int err;
1: +};
1: +
1: +struct perf_task_event {
1: + struct task_struct *task;
1: + struct perf_event_context *task_ctx;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 ppid;
1: + u32 tid;
1: + u32 ptid;
1: + u64 time;
1: + } event_id;
1: +};
1: +
1: +struct perf_comm_event {
1: + struct task_struct *task;
1: + char *comm;
1: + int comm_size;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + } event_id;
1: +};
1: +
1: +struct perf_namespaces_event {
1: + struct task_struct *task;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 nr_namespaces;
1: + struct perf_ns_link_info link_info[7];
1: + } event_id;
1: +};
1: +
1: +struct perf_cgroup_event {
1: + char *path;
1: + int path_size;
1: + struct {
1: + struct perf_event_header header;
1: + u64 id;
1: + char path[0];
1: + } event_id;
1: +};
1: +
1: +struct perf_mmap_event {
1: + struct vm_area_struct *vma;
1: + const char *file_name;
1: + int file_size;
1: + int maj;
1: + int min;
1: + u64 ino;
1: + u64 ino_generation;
1: + u32 prot;
1: + u32 flags;
1: + struct {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: + u64 start;
1: + u64 len;
1: + u64 pgoff;
1: + } event_id;
1: +};
1: +
1: +struct perf_switch_event {
1: + struct task_struct *task;
1: + struct task_struct *next_prev;
1: + struct {
1: + struct perf_event_header header;
1: + u32 next_prev_pid;
1: + u32 next_prev_tid;
1: + } event_id;
1: +};
1: +
1: +struct perf_ksymbol_event {
1: + const char *name;
1: + int name_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + u32 len;
1: + u16 ksym_type;
1: + u16 flags;
1: + } event_id;
1: +};
1: +
1: +struct perf_bpf_event {
1: + struct bpf_prog *prog;
1: + struct {
1: + struct perf_event_header header;
1: + u16 type;
1: + u16 flags;
1: + u32 id;
1: + u8 tag[8];
1: + } event_id;
1: +};
1: +
1: +struct perf_text_poke_event {
1: + const void *old_bytes;
1: + const void *new_bytes;
1: + size_t pad;
1: + u16 old_len;
1: + u16 new_len;
1: + struct {
1: + struct perf_event_header header;
1: + u64 addr;
1: + } event_id;
1: +};
1: +
1: +struct swevent_htable {
1: + struct swevent_hlist *swevent_hlist;
1: + struct mutex hlist_mutex;
1: + int hlist_refcount;
1: + int recursion[4];
1: +};
1: +
1: +enum perf_probe_config {
1: + PERF_PROBE_CONFIG_IS_RETPROBE = 1,
1: + PERF_UPROBE_REF_CTR_OFFSET_BITS = 32,
1: + PERF_UPROBE_REF_CTR_OFFSET_SHIFT = 32,
1: +};
1: +
1: +enum {
1: + IF_ACT_NONE = 4294967295,
1: + IF_ACT_FILTER = 0,
1: + IF_ACT_START = 1,
1: + IF_ACT_STOP = 2,
1: + IF_SRC_FILE = 3,
1: + IF_SRC_KERNEL = 4,
1: + IF_SRC_FILEADDR = 5,
1: + IF_SRC_KERNELADDR = 6,
1: +};
1: +
1: +enum {
1: + IF_STATE_ACTION = 0,
1: + IF_STATE_SOURCE = 1,
1: + IF_STATE_END = 2,
1: +};
1: +
1: +struct perf_aux_event {
1: + struct perf_event_header header;
1: + u32 pid;
1: + u32 tid;
1: +};
1: +
1: +struct perf_aux_event___2 {
1: + struct perf_event_header header;
1: + u64 offset;
1: + u64 size;
1: + u64 flags;
1: +};
1: +
1: +struct callchain_cpus_entries {
1: + struct callback_head callback_head;
1: + struct perf_callchain_entry *cpu_entries[0];
1: +};
1: +
1: +struct bp_cpuinfo {
1: + unsigned int cpu_pinned;
1: + unsigned int *tsk_pinned;
1: + unsigned int flexible;
1: +};
1: +
1: +struct bp_busy_slots {
1: + unsigned int pinned;
1: + unsigned int flexible;
1: +};
1: +
1: +struct uprobe {
1: + struct rb_node rb_node;
1: + refcount_t ref;
1: + struct rw_semaphore register_rwsem;
1: + struct rw_semaphore consumer_rwsem;
1: + struct list_head pending_list;
1: + struct uprobe_consumer *consumers;
1: + struct inode *inode;
1: + loff_t offset;
1: + loff_t ref_ctr_offset;
1: + long unsigned int flags;
1: + struct arch_uprobe arch;
1: +};
1: +
1: +struct vm_special_mapping {
1: + const char *name;
1: + struct page **pages;
1: + vm_fault_t (*fault)(const struct vm_special_mapping *, struct vm_area_struct *, struct vm_fault *);
1: + int (*mremap)(const struct vm_special_mapping *, struct vm_area_struct *);
1: +};
1: +
1: +struct xol_area {
1: + wait_queue_head_t wq;
1: + atomic_t slot_count;
1: + long unsigned int *bitmap;
1: + struct vm_special_mapping xol_mapping;
1: + struct page *pages[2];
1: + long unsigned int vaddr;
1: +};
1: +
1: +typedef long unsigned int vm_flags_t;
1: +
1: +struct compact_control;
1: +
1: +struct capture_control {
1: + struct compact_control *cc;
1: + struct page *page;
1: +};
1: +
1: +struct page_vma_mapped_walk {
1: + struct page *page;
1: + struct vm_area_struct *vma;
1: + long unsigned int address;
1: + pmd_t *pmd;
1: + pte_t *pte;
1: + spinlock_t *ptl;
1: + unsigned int flags;
1: +};
1: +
1: +struct compact_control {
1: + struct list_head freepages;
1: + struct list_head migratepages;
1: + unsigned int nr_freepages;
1: + unsigned int nr_migratepages;
1: + long unsigned int free_pfn;
1: + long unsigned int migrate_pfn;
1: + long unsigned int fast_start_pfn;
1: + struct zone *zone;
1: + long unsigned int total_migrate_scanned;
1: + long unsigned int total_free_scanned;
1: + short unsigned int fast_search_fail;
1: + short int search_order;
1: + const gfp_t gfp_mask;
1: + int order;
1: + int migratetype;
1: + const unsigned int alloc_flags;
1: + const int highest_zoneidx;
1: + enum migrate_mode mode;
1: + bool ignore_skip_hint;
1: + bool no_set_skip_hint;
1: + bool ignore_block_suitable;
1: + bool direct_compaction;
1: + bool proactive_compaction;
1: + bool whole_zone;
1: + bool contended;
1: + bool rescan;
1: + bool alloc_contig;
1: +};
1: +
1: +struct delayed_uprobe {
1: + struct list_head list;
1: + struct uprobe *uprobe;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct map_info {
1: + struct map_info *next;
1: + struct mm_struct *mm;
1: + long unsigned int vaddr;
1: +};
1: +
1: +struct parallel_data;
1: +
1: +struct padata_priv {
1: + struct list_head list;
1: + struct parallel_data *pd;
1: + int cb_cpu;
1: + unsigned int seq_nr;
1: + int info;
1: + void (*parallel)(struct padata_priv *);
1: + void (*serial)(struct padata_priv *);
1: +};
1: +
1: +struct padata_cpumask {
1: + cpumask_var_t pcpu;
1: + cpumask_var_t cbcpu;
1: +};
1: +
1: +struct padata_shell;
1: +
1: +struct padata_list;
1: +
1: +struct padata_serial_queue;
1: +
1: +struct parallel_data {
1: + struct padata_shell *ps;
1: + struct padata_list *reorder_list;
1: + struct padata_serial_queue *squeue;
1: + atomic_t refcnt;
1: + unsigned int seq_nr;
1: + unsigned int processed;
1: + int cpu;
1: + struct padata_cpumask cpumask;
1: + struct work_struct reorder_work;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct padata_list {
1: + struct list_head list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct padata_serial_queue {
1: + struct padata_list serial;
1: + struct work_struct work;
1: + struct parallel_data *pd;
1: +};
1: +
1: +struct padata_instance;
1: +
1: +struct padata_shell {
1: + struct padata_instance *pinst;
1: + struct parallel_data *pd;
1: + struct parallel_data *opd;
1: + struct list_head list;
1: +};
1: +
1: +struct padata_instance {
1: + struct hlist_node cpu_online_node;
1: + struct hlist_node cpu_dead_node;
1: + struct workqueue_struct *parallel_wq;
1: + struct workqueue_struct *serial_wq;
1: + struct list_head pslist;
1: + struct padata_cpumask cpumask;
1: + struct kobject kobj;
1: + struct mutex lock;
1: + u8 flags;
1: +};
1: +
1: +struct padata_mt_job {
1: + void (*thread_fn)(long unsigned int, long unsigned int, void *);
1: + void *fn_arg;
1: + long unsigned int start;
1: + long unsigned int size;
1: + long unsigned int align;
1: + long unsigned int min_chunk;
1: + int max_threads;
1: +};
1: +
1: +struct padata_work {
1: + struct work_struct pw_work;
1: + struct list_head pw_list;
1: + void *pw_data;
1: +};
1: +
1: +struct padata_mt_job_state {
1: + spinlock_t lock;
1: + struct completion completion;
1: + struct padata_mt_job *job;
1: + int nworks;
1: + int nworks_fini;
1: + long unsigned int chunk_size;
1: +};
1: +
1: +struct padata_sysfs_entry {
1: + struct attribute attr;
1: + ssize_t (*show)(struct padata_instance *, struct attribute *, char *);
1: + ssize_t (*store)(struct padata_instance *, struct attribute *, const char *, size_t);
1: +};
1: +
1: +struct static_key_mod {
1: + struct static_key_mod *next;
1: + struct jump_entry *entries;
1: + struct module *mod;
1: +};
1: +
1: +struct static_key_deferred {
1: + struct static_key key;
1: + long unsigned int timeout;
1: + struct delayed_work work;
1: +};
1: +
1: +enum rseq_cpu_id_state {
1: + RSEQ_CPU_ID_UNINITIALIZED = 4294967295,
1: + RSEQ_CPU_ID_REGISTRATION_FAILED = 4294967294,
1: +};
1: +
1: +enum rseq_flags {
1: + RSEQ_FLAG_UNREGISTER = 1,
1: +};
1: +
1: +enum rseq_cs_flags {
1: + RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT = 1,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2,
1: + RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE = 4,
1: +};
1: +
1: +struct rseq_cs {
1: + __u32 version;
1: + __u32 flags;
1: + __u64 start_ip;
1: + __u64 post_commit_offset;
1: + __u64 abort_ip;
1: +};
1: +
1: +struct trace_event_raw_rseq_update {
1: + struct trace_entry ent;
1: + s32 cpu_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rseq_ip_fixup {
1: + struct trace_entry ent;
1: + long unsigned int regs_ip;
1: + long unsigned int start_ip;
1: + long unsigned int post_commit_offset;
1: + long unsigned int abort_ip;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_rseq_update {};
1: +
1: +struct trace_event_data_offsets_rseq_ip_fixup {};
1: +
1: +typedef void (*btf_trace_rseq_update)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_rseq_ip_fixup)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +struct watch;
1: +
1: +struct watch_list {
1: + struct callback_head rcu;
1: + struct hlist_head watchers;
1: + void (*release_watch)(struct watch *);
1: + spinlock_t lock;
1: +};
1: +
1: +enum watch_notification_type {
1: + WATCH_TYPE_META = 0,
1: + WATCH_TYPE_KEY_NOTIFY = 1,
1: + WATCH_TYPE__NR = 2,
1: +};
1: +
1: +enum watch_meta_notification_subtype {
1: + WATCH_META_REMOVAL_NOTIFICATION = 0,
1: + WATCH_META_LOSS_NOTIFICATION = 1,
1: +};
1: +
1: +struct watch_notification {
1: + __u32 type: 24;
1: + __u32 subtype: 8;
1: + __u32 info;
1: +};
1: +
1: +struct watch_notification_type_filter {
1: + __u32 type;
1: + __u32 info_filter;
1: + __u32 info_mask;
1: + __u32 subtype_filter[8];
1: +};
1: +
1: +struct watch_notification_filter {
1: + __u32 nr_filters;
1: + __u32 __reserved;
1: + struct watch_notification_type_filter filters[0];
1: +};
1: +
1: +struct watch_notification_removal {
1: + struct watch_notification watch;
1: + __u64 id;
1: +};
1: +
1: +struct watch_type_filter {
1: + enum watch_notification_type type;
1: + __u32 subtype_filter[1];
1: + __u32 info_filter;
1: + __u32 info_mask;
1: +};
1: +
1: +struct watch_filter {
1: + union {
1: + struct callback_head rcu;
1: + long unsigned int type_filter[2];
1: + };
1: + u32 nr_filters;
1: + struct watch_type_filter filters[0];
1: +};
1: +
1: +struct watch_queue {
1: + struct callback_head rcu;
1: + struct watch_filter *filter;
1: + struct pipe_inode_info *pipe;
1: + struct hlist_head watches;
1: + struct page **notes;
1: + long unsigned int *notes_bitmap;
1: + struct kref usage;
1: + spinlock_t lock;
1: + unsigned int nr_notes;
1: + unsigned int nr_pages;
1: + bool defunct;
1: +};
1: +
1: +struct watch {
1: + union {
1: + struct callback_head rcu;
1: + u32 info_id;
1: + };
1: + struct watch_queue *queue;
1: + struct hlist_node queue_node;
1: + struct watch_list *watch_list;
1: + struct hlist_node list_node;
1: + const struct cred *cred;
1: + void *private;
1: + u64 id;
1: + struct kref usage;
1: +};
1: +
1: +struct pkcs7_message;
1: +
1: +struct xa_node {
1: + unsigned char shift;
1: + unsigned char offset;
1: + unsigned char count;
1: + unsigned char nr_values;
1: + struct xa_node *parent;
1: + struct xarray *array;
1: + union {
1: + struct list_head private_list;
1: + struct callback_head callback_head;
1: + };
1: + void *slots[64];
1: + union {
1: + long unsigned int tags[3];
1: + long unsigned int marks[3];
1: + };
1: +};
1: +
1: +typedef void (*xa_update_node_t)(struct xa_node *);
1: +
1: +struct xa_state {
1: + struct xarray *xa;
1: + long unsigned int xa_index;
1: + unsigned char xa_shift;
1: + unsigned char xa_sibs;
1: + unsigned char xa_offset;
1: + unsigned char xa_pad;
1: + struct xa_node *xa_node;
1: + struct xa_node *xa_alloc;
1: + xa_update_node_t xa_update;
1: +};
1: +
1: +typedef int __kernel_rwf_t;
1: +
1: +enum positive_aop_returns {
1: + AOP_WRITEPAGE_ACTIVATE = 524288,
1: + AOP_TRUNCATED_PAGE = 524289,
1: +};
1: +
1: +struct vm_event_state {
1: + long unsigned int event[89];
1: +};
1: +
1: +enum mapping_flags {
1: + AS_EIO = 0,
1: + AS_ENOSPC = 1,
1: + AS_MM_ALL_LOCKS = 2,
1: + AS_UNEVICTABLE = 3,
1: + AS_EXITING = 4,
1: + AS_NO_WRITEBACK_TAGS = 5,
1: + AS_THP_SUPPORT = 6,
1: +};
1: +
1: +struct wait_page_key {
1: + struct page *page;
1: + int bit_nr;
1: + int page_match;
1: +};
1: +
1: +enum iter_type {
1: + ITER_IOVEC = 4,
1: + ITER_KVEC = 8,
1: + ITER_BVEC = 16,
1: + ITER_PIPE = 32,
1: + ITER_DISCARD = 64,
1: +};
1: +
1: +struct pagevec {
1: + unsigned char nr;
1: + bool percpu_pvec_drained;
1: + struct page *pages[15];
1: +};
1: +
1: +struct fid {
1: + union {
1: + struct {
1: + u32 ino;
1: + u32 gen;
1: + u32 parent_ino;
1: + u32 parent_gen;
1: + } i32;
1: + struct {
1: + u32 block;
1: + u16 partref;
1: + u16 parent_partref;
1: + u32 generation;
1: + u32 parent_block;
1: + u32 parent_generation;
1: + } udf;
1: + __u32 raw[0];
1: + };
1: +};
1: +
1: +struct trace_event_raw_mm_filemap_op_page_cache {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + long unsigned int i_ino;
1: + long unsigned int index;
1: + dev_t s_dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filemap_set_wb_err {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t errseq;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_file_check_and_advance_wb_err {
1: + struct trace_entry ent;
1: + struct file *file;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + errseq_t old;
1: + errseq_t new;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_filemap_op_page_cache {};
1: +
1: +struct trace_event_data_offsets_filemap_set_wb_err {};
1: +
1: +struct trace_event_data_offsets_file_check_and_advance_wb_err {};
1: +
1: +typedef void (*btf_trace_mm_filemap_delete_from_page_cache)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_filemap_add_to_page_cache)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_filemap_set_wb_err)(void *, struct address_space *, errseq_t);
1: +
1: +typedef void (*btf_trace_file_check_and_advance_wb_err)(void *, struct file *, errseq_t);
1: +
1: +enum behavior {
1: + EXCLUSIVE = 0,
1: + SHARED = 1,
1: + DROP = 2,
1: +};
1: +
1: +struct reciprocal_value {
1: + u32 m;
1: + u8 sh1;
1: + u8 sh2;
1: +};
1: +
1: +struct array_cache;
1: +
1: +struct kmem_cache_node;
1: +
1: +struct kmem_cache {
1: + struct array_cache *cpu_cache;
1: + unsigned int batchcount;
1: + unsigned int limit;
1: + unsigned int shared;
1: + unsigned int size;
1: + struct reciprocal_value reciprocal_buffer_size;
1: + slab_flags_t flags;
1: + unsigned int num;
1: + unsigned int gfporder;
1: + gfp_t allocflags;
1: + size_t colour;
1: + unsigned int colour_off;
1: + struct kmem_cache *freelist_cache;
1: + unsigned int freelist_size;
1: + void (*ctor)(void *);
1: + const char *name;
1: + struct list_head list;
1: + int refcount;
1: + int object_size;
1: + int align;
1: + unsigned int useroffset;
1: + unsigned int usersize;
1: + struct kmem_cache_node *node[256];
1: +};
1: +
1: +struct alien_cache;
1: +
1: +struct kmem_cache_node {
1: + spinlock_t list_lock;
1: + struct list_head slabs_partial;
1: + struct list_head slabs_full;
1: + struct list_head slabs_free;
1: + long unsigned int total_slabs;
1: + long unsigned int free_slabs;
1: + long unsigned int free_objects;
1: + unsigned int free_limit;
1: + unsigned int colour_next;
1: + struct array_cache *shared;
1: + struct alien_cache **alien;
1: + long unsigned int next_reap;
1: + int free_touched;
1: +};
1: +
1: +enum oom_constraint {
1: + CONSTRAINT_NONE = 0,
1: + CONSTRAINT_CPUSET = 1,
1: + CONSTRAINT_MEMORY_POLICY = 2,
1: + CONSTRAINT_MEMCG = 3,
1: +};
1: +
1: +struct oom_control {
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *memcg;
1: + const gfp_t gfp_mask;
1: + const int order;
1: + long unsigned int totalpages;
1: + struct task_struct *chosen;
1: + long int chosen_points;
1: + enum oom_constraint constraint;
1: +};
1: +
1: +enum compact_priority {
1: + COMPACT_PRIO_SYNC_FULL = 0,
1: + MIN_COMPACT_PRIORITY = 0,
1: + COMPACT_PRIO_SYNC_LIGHT = 1,
1: + MIN_COMPACT_COSTLY_PRIORITY = 1,
1: + DEF_COMPACT_PRIORITY = 1,
1: + COMPACT_PRIO_ASYNC = 2,
1: + INIT_COMPACT_PRIORITY = 2,
1: +};
1: +
1: +enum compact_result {
1: + COMPACT_NOT_SUITABLE_ZONE = 0,
1: + COMPACT_SKIPPED = 1,
1: + COMPACT_DEFERRED = 2,
1: + COMPACT_NO_SUITABLE_PAGE = 3,
1: + COMPACT_CONTINUE = 4,
1: + COMPACT_COMPLETE = 5,
1: + COMPACT_PARTIAL_SKIPPED = 6,
1: + COMPACT_CONTENDED = 7,
1: + COMPACT_SUCCESS = 8,
1: +};
1: +
1: +struct trace_event_raw_oom_score_adj_update {
1: + struct trace_entry ent;
1: + pid_t pid;
1: + char comm[16];
1: + short int oom_score_adj;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_reclaim_retry_zone {
1: + struct trace_entry ent;
1: + int node;
1: + int zone_idx;
1: + int order;
1: + long unsigned int reclaimable;
1: + long unsigned int available;
1: + long unsigned int min_wmark;
1: + int no_progress_loops;
1: + bool wmark_check;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mark_victim {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wake_reaper {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_start_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_finish_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_skip_task_reaping {
1: + struct trace_entry ent;
1: + int pid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_compact_retry {
1: + struct trace_entry ent;
1: + int order;
1: + int priority;
1: + int result;
1: + int retries;
1: + int max_retries;
1: + bool ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_oom_score_adj_update {};
1: +
1: +struct trace_event_data_offsets_reclaim_retry_zone {};
1: +
1: +struct trace_event_data_offsets_mark_victim {};
1: +
1: +struct trace_event_data_offsets_wake_reaper {};
1: +
1: +struct trace_event_data_offsets_start_task_reaping {};
1: +
1: +struct trace_event_data_offsets_finish_task_reaping {};
1: +
1: +struct trace_event_data_offsets_skip_task_reaping {};
1: +
1: +struct trace_event_data_offsets_compact_retry {};
1: +
1: +typedef void (*btf_trace_oom_score_adj_update)(void *, struct task_struct *);
1: +
1: +typedef void (*btf_trace_reclaim_retry_zone)(void *, struct zoneref *, int, long unsigned int, long unsigned int, long unsigned int, int, bool);
1: +
1: +typedef void (*btf_trace_mark_victim)(void *, int);
1: +
1: +typedef void (*btf_trace_wake_reaper)(void *, int);
1: +
1: +typedef void (*btf_trace_start_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_finish_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_skip_task_reaping)(void *, int);
1: +
1: +typedef void (*btf_trace_compact_retry)(void *, int, enum compact_priority, enum compact_result, int, int, bool);
1: +
1: +enum wb_congested_state {
1: + WB_async_congested = 0,
1: + WB_sync_congested = 1,
1: +};
1: +
1: +enum {
1: + XA_CHECK_SCHED = 4096,
1: +};
1: +
1: +enum wb_state {
1: + WB_registered = 0,
1: + WB_writeback_running = 1,
1: + WB_has_dirty_io = 2,
1: + WB_start_all = 3,
1: +};
1: +
1: +enum {
1: + BLK_RW_ASYNC = 0,
1: + BLK_RW_SYNC = 1,
1: +};
1: +
1: +struct wb_lock_cookie {
1: + bool locked;
1: + long unsigned int flags;
1: +};
1: +
1: +typedef int (*writepage_t)(struct page *, struct writeback_control *, void *);
1: +
1: +struct dirty_throttle_control {
1: + struct wb_domain *dom;
1: + struct dirty_throttle_control *gdtc;
1: + struct bdi_writeback *wb;
1: + struct fprop_local_percpu *wb_completions;
1: + long unsigned int avail;
1: + long unsigned int dirty;
1: + long unsigned int thresh;
1: + long unsigned int bg_thresh;
1: + long unsigned int wb_dirty;
1: + long unsigned int wb_thresh;
1: + long unsigned int wb_bg_thresh;
1: + long unsigned int pos_ratio;
1: +};
1: +
1: +typedef void compound_page_dtor(struct page *);
1: +
1: +typedef struct {} local_lock_t;
1: +
1: +struct trace_event_raw_mm_lru_insertion {
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + int lru;
1: + long unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_lru_activate {
1: + struct trace_entry ent;
1: + struct page *page;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_lru_insertion {};
1: +
1: +struct trace_event_data_offsets_mm_lru_activate {};
1: +
1: +typedef void (*btf_trace_mm_lru_insertion)(void *, struct page *, int);
1: +
1: +typedef void (*btf_trace_mm_lru_activate)(void *, struct page *);
1: +
1: +struct lru_rotate {
1: + local_lock_t lock;
1: + struct pagevec pvec;
1: +};
1: +
1: +struct lru_pvecs {
1: + local_lock_t lock;
1: + struct pagevec lru_add;
1: + struct pagevec lru_deactivate_file;
1: + struct pagevec lru_deactivate;
1: + struct pagevec lru_lazyfree;
1: + struct pagevec activate_page;
1: +};
1: +
1: +enum lruvec_flags {
1: + LRUVEC_CONGESTED = 0,
1: +};
1: +
1: +enum pgdat_flags {
1: + PGDAT_DIRTY = 0,
1: + PGDAT_WRITEBACK = 1,
1: + PGDAT_RECLAIM_LOCKED = 2,
1: +};
1: +
1: +struct reclaim_stat {
1: + unsigned int nr_dirty;
1: + unsigned int nr_unqueued_dirty;
1: + unsigned int nr_congested;
1: + unsigned int nr_writeback;
1: + unsigned int nr_immediate;
1: + unsigned int nr_pageout;
1: + unsigned int nr_activate[2];
1: + unsigned int nr_ref_keep;
1: + unsigned int nr_unmap_fail;
1: + unsigned int nr_lazyfree_fail;
1: +};
1: +
1: +enum ttu_flags {
1: + TTU_MIGRATION = 1,
1: + TTU_MUNLOCK = 2,
1: + TTU_SPLIT_HUGE_PMD = 4,
1: + TTU_IGNORE_MLOCK = 8,
1: + TTU_IGNORE_HWPOISON = 32,
1: + TTU_BATCH_FLUSH = 64,
1: + TTU_RMAP_LOCKED = 128,
1: + TTU_SPLIT_FREEZE = 256,
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_kswapd_sleep {
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_kswapd_wake {
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_wakeup_kswapd {
1: + struct trace_entry ent;
1: + int nid;
1: + int zid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_direct_reclaim_begin_template {
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_direct_reclaim_end_template {
1: + struct trace_entry ent;
1: + long unsigned int nr_reclaimed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_shrink_slab_start {
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + void *shrink;
1: + int nid;
1: + long int nr_objects_to_shrink;
1: + gfp_t gfp_flags;
1: + long unsigned int cache_items;
1: + long long unsigned int delta;
1: + long unsigned int total_scan;
1: + int priority;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_shrink_slab_end {
1: + struct trace_entry ent;
1: + struct shrinker *shr;
1: + int nid;
1: + void *shrink;
1: + long int unused_scan;
1: + long int new_scan;
1: + int retval;
1: + long int total_scan;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_isolate {
1: + struct trace_entry ent;
1: + int highest_zoneidx;
1: + int order;
1: + long unsigned int nr_requested;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_skipped;
1: + long unsigned int nr_taken;
1: + isolate_mode_t isolate_mode;
1: + int lru;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_writepage {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_shrink_inactive {
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int nr_congested;
1: + long unsigned int nr_immediate;
1: + unsigned int nr_activate0;
1: + unsigned int nr_activate1;
1: + long unsigned int nr_ref_keep;
1: + long unsigned int nr_unmap_fail;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_lru_shrink_active {
1: + struct trace_entry ent;
1: + int nid;
1: + long unsigned int nr_taken;
1: + long unsigned int nr_active;
1: + long unsigned int nr_deactivated;
1: + long unsigned int nr_referenced;
1: + int priority;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_inactive_list_is_low {
1: + struct trace_entry ent;
1: + int nid;
1: + int reclaim_idx;
1: + long unsigned int total_inactive;
1: + long unsigned int inactive;
1: + long unsigned int total_active;
1: + long unsigned int active;
1: + long unsigned int ratio;
1: + int reclaim_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_vmscan_node_reclaim_begin {
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_kswapd_sleep {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_kswapd_wake {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_wakeup_kswapd {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_direct_reclaim_begin_template {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_direct_reclaim_end_template {};
1: +
1: +struct trace_event_data_offsets_mm_shrink_slab_start {};
1: +
1: +struct trace_event_data_offsets_mm_shrink_slab_end {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_isolate {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_writepage {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_shrink_inactive {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_lru_shrink_active {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_inactive_list_is_low {};
1: +
1: +struct trace_event_data_offsets_mm_vmscan_node_reclaim_begin {};
1: +
1: +typedef void (*btf_trace_mm_vmscan_kswapd_sleep)(void *, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_kswapd_wake)(void *, int, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_wakeup_kswapd)(void *, int, int, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_direct_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_begin)(void *, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_direct_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_memcg_softlimit_reclaim_end)(void *, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_shrink_slab_start)(void *, struct shrinker *, struct shrink_control *, long int, long unsigned int, long long unsigned int, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_shrink_slab_end)(void *, struct shrinker *, int, int, long int, long int, long int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_isolate)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, isolate_mode_t, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_writepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_inactive)(void *, int, long unsigned int, long unsigned int, struct reclaim_stat *, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_lru_shrink_active)(void *, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_inactive_list_is_low)(void *, int, int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_vmscan_node_reclaim_begin)(void *, int, int, gfp_t);
1: +
1: +typedef void (*btf_trace_mm_vmscan_node_reclaim_end)(void *, long unsigned int);
1: +
1: +struct scan_control {
1: + long unsigned int nr_to_reclaim;
1: + nodemask_t *nodemask;
1: + struct mem_cgroup *target_mem_cgroup;
1: + long unsigned int anon_cost;
1: + long unsigned int file_cost;
1: + unsigned int may_deactivate: 2;
1: + unsigned int force_deactivate: 1;
1: + unsigned int skipped_deactivate: 1;
1: + unsigned int may_writepage: 1;
1: + unsigned int may_unmap: 1;
1: + unsigned int may_swap: 1;
1: + unsigned int memcg_low_reclaim: 1;
1: + unsigned int memcg_low_skipped: 1;
1: + unsigned int hibernation_mode: 1;
1: + unsigned int compaction_ready: 1;
1: + unsigned int cache_trim_mode: 1;
1: + unsigned int file_is_tiny: 1;
1: + s8 order;
1: + s8 priority;
1: + s8 reclaim_idx;
1: + gfp_t gfp_mask;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_reclaimed;
1: + struct {
1: + unsigned int dirty;
1: + unsigned int unqueued_dirty;
1: + unsigned int congested;
1: + unsigned int writeback;
1: + unsigned int immediate;
1: + unsigned int file_taken;
1: + unsigned int taken;
1: + } nr;
1: + struct reclaim_state reclaim_state;
1: +};
1: +
1: +typedef enum {
1: + PAGE_KEEP = 0,
1: + PAGE_ACTIVATE = 1,
1: + PAGE_SUCCESS = 2,
1: + PAGE_CLEAN = 3,
1: +} pageout_t;
1: +
1: +enum page_references {
1: + PAGEREF_RECLAIM = 0,
1: + PAGEREF_RECLAIM_CLEAN = 1,
1: + PAGEREF_KEEP = 2,
1: + PAGEREF_ACTIVATE = 3,
1: +};
1: +
1: +enum scan_balance {
1: + SCAN_EQUAL = 0,
1: + SCAN_FRACT = 1,
1: + SCAN_ANON = 2,
1: + SCAN_FILE = 3,
1: +};
1: +
1: +enum transparent_hugepage_flag {
1: + TRANSPARENT_HUGEPAGE_FLAG = 0,
1: + TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG = 1,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG = 2,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG = 3,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG = 4,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG = 5,
1: + TRANSPARENT_HUGEPAGE_DEFRAG_KHUGEPAGED_FLAG = 6,
1: + TRANSPARENT_HUGEPAGE_USE_ZERO_PAGE_FLAG = 7,
1: +};
1: +
1: +struct xattr {
1: + const char *name;
1: + void *value;
1: + size_t value_len;
1: +};
1: +
1: +struct constant_table {
1: + const char *name;
1: + int value;
1: +};
1: +
1: +enum {
1: + MPOL_DEFAULT = 0,
1: + MPOL_PREFERRED = 1,
1: + MPOL_BIND = 2,
1: + MPOL_INTERLEAVE = 3,
1: + MPOL_LOCAL = 4,
1: + MPOL_MAX = 5,
1: +};
1: +
1: +struct shared_policy {
1: + struct rb_root root;
1: + rwlock_t lock;
1: +};
1: +
1: +struct simple_xattrs {
1: + struct list_head head;
1: + spinlock_t lock;
1: +};
1: +
1: +struct simple_xattr {
1: + struct list_head list;
1: + char *name;
1: + size_t size;
1: + char value[0];
1: +};
1: +
1: +enum fid_type {
1: + FILEID_ROOT = 0,
1: + FILEID_INO32_GEN = 1,
1: + FILEID_INO32_GEN_PARENT = 2,
1: + FILEID_BTRFS_WITHOUT_PARENT = 77,
1: + FILEID_BTRFS_WITH_PARENT = 78,
1: + FILEID_BTRFS_WITH_PARENT_ROOT = 79,
1: + FILEID_UDF_WITHOUT_PARENT = 81,
1: + FILEID_UDF_WITH_PARENT = 82,
1: + FILEID_NILFS_WITHOUT_PARENT = 97,
1: + FILEID_NILFS_WITH_PARENT = 98,
1: + FILEID_FAT_WITHOUT_PARENT = 113,
1: + FILEID_FAT_WITH_PARENT = 114,
1: + FILEID_LUSTRE = 151,
1: + FILEID_KERNFS = 254,
1: + FILEID_INVALID = 255,
1: +};
1: +
1: +struct shmem_inode_info {
1: + spinlock_t lock;
1: + unsigned int seals;
1: + long unsigned int flags;
1: + long unsigned int alloced;
1: + long unsigned int swapped;
1: + struct list_head shrinklist;
1: + struct list_head swaplist;
1: + struct shared_policy policy;
1: + struct simple_xattrs xattrs;
1: + atomic_t stop_eviction;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct shmem_sb_info {
1: + long unsigned int max_blocks;
1: + struct percpu_counter used_blocks;
1: + long unsigned int max_inodes;
1: + long unsigned int free_inodes;
1: + spinlock_t stat_lock;
1: + umode_t mode;
1: + unsigned char huge;
1: + kuid_t uid;
1: + kgid_t gid;
1: + bool full_inums;
1: + ino_t next_ino;
1: + ino_t *ino_batch;
1: + struct mempolicy *mpol;
1: + spinlock_t shrinklist_lock;
1: + struct list_head shrinklist;
1: + long unsigned int shrinklist_len;
1: +};
1: +
1: +enum sgp_type {
1: + SGP_READ = 0,
1: + SGP_CACHE = 1,
1: + SGP_NOHUGE = 2,
1: + SGP_HUGE = 3,
1: + SGP_WRITE = 4,
1: + SGP_FALLOC = 5,
1: +};
1: +
1: +struct shmem_falloc {
1: + wait_queue_head_t *waitq;
1: + long unsigned int start;
1: + long unsigned int next;
1: + long unsigned int nr_falloced;
1: + long unsigned int nr_unswapped;
1: +};
1: +
1: +struct shmem_options {
1: + long long unsigned int blocks;
1: + long long unsigned int inodes;
1: + struct mempolicy *mpol;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + bool full_inums;
1: + int huge;
1: + int seen;
1: +};
1: +
1: +enum shmem_param {
1: + Opt_gid = 0,
1: + Opt_huge = 1,
1: + Opt_mode = 2,
1: + Opt_mpol = 3,
1: + Opt_nr_blocks = 4,
1: + Opt_nr_inodes = 5,
1: + Opt_size = 6,
1: + Opt_uid = 7,
1: + Opt_inode32 = 8,
1: + Opt_inode64 = 9,
1: +};
1: +
1: +enum writeback_stat_item {
1: + NR_DIRTY_THRESHOLD = 0,
1: + NR_DIRTY_BG_THRESHOLD = 1,
1: + NR_VM_WRITEBACK_STAT_ITEMS = 2,
1: +};
1: +
1: +struct contig_page_info {
1: + long unsigned int free_pages;
1: + long unsigned int free_blocks_total;
1: + long unsigned int free_blocks_suitable;
1: +};
1: +
1: +struct radix_tree_iter {
1: + long unsigned int index;
1: + long unsigned int next_index;
1: + long unsigned int tags;
1: + struct xa_node *node;
1: +};
1: +
1: +enum {
1: + RADIX_TREE_ITER_TAG_MASK = 15,
1: + RADIX_TREE_ITER_TAGGED = 16,
1: + RADIX_TREE_ITER_CONTIG = 32,
1: +};
1: +
1: +enum mminit_level {
1: + MMINIT_WARNING = 0,
1: + MMINIT_VERIFY = 1,
1: + MMINIT_TRACE = 2,
1: +};
1: +
1: +struct pcpu_group_info {
1: + int nr_units;
1: + long unsigned int base_offset;
1: + unsigned int *cpu_map;
1: +};
1: +
1: +struct pcpu_alloc_info {
1: + size_t static_size;
1: + size_t reserved_size;
1: + size_t dyn_size;
1: + size_t unit_size;
1: + size_t atom_size;
1: + size_t alloc_size;
1: + size_t __ai_size;
1: + int nr_groups;
1: + struct pcpu_group_info groups[0];
1: +};
1: +
1: +typedef void * (*pcpu_fc_alloc_fn_t)(unsigned int, size_t, size_t);
1: +
1: +typedef void (*pcpu_fc_free_fn_t)(void *, size_t);
1: +
1: +typedef void (*pcpu_fc_populate_pte_fn_t)(long unsigned int);
1: +
1: +typedef int pcpu_fc_cpu_distance_fn_t(unsigned int, unsigned int);
1: +
1: +struct trace_event_raw_percpu_alloc_percpu {
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_free_percpu {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + int off;
1: + void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_alloc_percpu_fail {
1: + struct trace_entry ent;
1: + bool reserved;
1: + bool is_atomic;
1: + size_t size;
1: + size_t align;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_create_chunk {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_percpu_destroy_chunk {
1: + struct trace_entry ent;
1: + void *base_addr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_percpu_alloc_percpu {};
1: +
1: +struct trace_event_data_offsets_percpu_free_percpu {};
1: +
1: +struct trace_event_data_offsets_percpu_alloc_percpu_fail {};
1: +
1: +struct trace_event_data_offsets_percpu_create_chunk {};
1: +
1: +struct trace_event_data_offsets_percpu_destroy_chunk {};
1: +
1: +typedef void (*btf_trace_percpu_alloc_percpu)(void *, bool, bool, size_t, size_t, void *, int, void *);
1: +
1: +typedef void (*btf_trace_percpu_free_percpu)(void *, void *, int, void *);
1: +
1: +typedef void (*btf_trace_percpu_alloc_percpu_fail)(void *, bool, bool, size_t, size_t);
1: +
1: +typedef void (*btf_trace_percpu_create_chunk)(void *, void *);
1: +
1: +typedef void (*btf_trace_percpu_destroy_chunk)(void *, void *);
1: +
1: +enum pcpu_chunk_type {
1: + PCPU_CHUNK_ROOT = 0,
1: + PCPU_CHUNK_MEMCG = 1,
1: + PCPU_NR_CHUNK_TYPES = 2,
1: + PCPU_FAIL_ALLOC = 2,
1: +};
1: +
1: +struct pcpu_block_md {
1: + int scan_hint;
1: + int scan_hint_start;
1: + int contig_hint;
1: + int contig_hint_start;
1: + int left_free;
1: + int right_free;
1: + int first_free;
1: + int nr_bits;
1: +};
1: +
1: +struct pcpu_chunk {
1: + struct list_head list;
1: + int free_bytes;
1: + struct pcpu_block_md chunk_md;
1: + void *base_addr;
1: + long unsigned int *alloc_map;
1: + long unsigned int *bound_map;
1: + struct pcpu_block_md *md_blocks;
1: + void *data;
1: + bool immutable;
1: + int start_offset;
1: + int end_offset;
1: + struct obj_cgroup **obj_cgroups;
1: + int nr_pages;
1: + int nr_populated;
1: + int nr_empty_pop_pages;
1: + long unsigned int populated[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_alloc {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_alloc_node {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + size_t bytes_req;
1: + size_t bytes_alloc;
1: + gfp_t gfp_flags;
1: + int node;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kmem_free {
1: + struct trace_entry ent;
1: + long unsigned int call_site;
1: + const void *ptr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_free {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_free_batched {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_alloc {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + gfp_t gfp_flags;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_pcpu_drain {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + unsigned int order;
1: + int migratetype;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_page_alloc_extfrag {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int alloc_order;
1: + int fallback_order;
1: + int alloc_migratetype;
1: + int fallback_migratetype;
1: + int change_ownership;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_rss_stat {
1: + struct trace_entry ent;
1: + unsigned int mm_id;
1: + unsigned int curr;
1: + int member;
1: + long int size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_kmem_alloc {};
1: +
1: +struct trace_event_data_offsets_kmem_alloc_node {};
1: +
1: +struct trace_event_data_offsets_kmem_free {};
1: +
1: +struct trace_event_data_offsets_mm_page_free {};
1: +
1: +struct trace_event_data_offsets_mm_page_free_batched {};
1: +
1: +struct trace_event_data_offsets_mm_page_alloc {};
1: +
1: +struct trace_event_data_offsets_mm_page {};
1: +
1: +struct trace_event_data_offsets_mm_page_pcpu_drain {};
1: +
1: +struct trace_event_data_offsets_mm_page_alloc_extfrag {};
1: +
1: +struct trace_event_data_offsets_rss_stat {};
1: +
1: +typedef void (*btf_trace_kmalloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +
1: +typedef void (*btf_trace_kmem_cache_alloc)(void *, long unsigned int, const void *, size_t, size_t, gfp_t);
1: +
1: +typedef void (*btf_trace_kmalloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +
1: +typedef void (*btf_trace_kmem_cache_alloc_node)(void *, long unsigned int, const void *, size_t, size_t, gfp_t, int);
1: +
1: +typedef void (*btf_trace_kfree)(void *, long unsigned int, const void *);
1: +
1: +typedef void (*btf_trace_kmem_cache_free)(void *, long unsigned int, const void *);
1: +
1: +typedef void (*btf_trace_mm_page_free)(void *, struct page *, unsigned int);
1: +
1: +typedef void (*btf_trace_mm_page_free_batched)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_mm_page_alloc)(void *, struct page *, unsigned int, gfp_t, int);
1: +
1: +typedef void (*btf_trace_mm_page_alloc_zone_locked)(void *, struct page *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_page_pcpu_drain)(void *, struct page *, unsigned int, int);
1: +
1: +typedef void (*btf_trace_mm_page_alloc_extfrag)(void *, struct page *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_rss_stat)(void *, struct mm_struct *, int, long int);
1: +
1: +enum slab_state {
1: + DOWN = 0,
1: + PARTIAL = 1,
1: + PARTIAL_NODE = 2,
1: + UP = 3,
1: + FULL = 4,
1: +};
1: +
1: +struct kmalloc_info_struct {
1: + const char *name[2];
1: + unsigned int size;
1: +};
1: +
1: +struct slabinfo {
1: + long unsigned int active_objs;
1: + long unsigned int num_objs;
1: + long unsigned int active_slabs;
1: + long unsigned int num_slabs;
1: + long unsigned int shared_avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int shared;
1: + unsigned int objects_per_slab;
1: + unsigned int cache_order;
1: +};
1: +
1: +enum pageblock_bits {
1: + PB_migrate = 0,
1: + PB_migrate_end = 2,
1: + PB_migrate_skip = 3,
1: + NR_PAGEBLOCK_BITS = 4,
1: +};
1: +
1: +struct alloc_context {
1: + struct zonelist *zonelist;
1: + nodemask_t *nodemask;
1: + struct zoneref *preferred_zoneref;
1: + int migratetype;
1: + enum zone_type highest_zoneidx;
1: + bool spread_dirty_pages;
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_isolate_template {
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int nr_scanned;
1: + long unsigned int nr_taken;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_migratepages {
1: + struct trace_entry ent;
1: + long unsigned int nr_migrated;
1: + long unsigned int nr_failed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_begin {
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_end {
1: + struct trace_entry ent;
1: + long unsigned int zone_start;
1: + long unsigned int migrate_pfn;
1: + long unsigned int free_pfn;
1: + long unsigned int zone_end;
1: + bool sync;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_try_to_compact_pages {
1: + struct trace_entry ent;
1: + int order;
1: + gfp_t gfp_mask;
1: + int prio;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_suitable_template {
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_defer_template {
1: + struct trace_entry ent;
1: + int nid;
1: + enum zone_type idx;
1: + int order;
1: + unsigned int considered;
1: + unsigned int defer_shift;
1: + int order_failed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_compaction_kcompactd_sleep {
1: + struct trace_entry ent;
1: + int nid;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_kcompactd_wake_template {
1: + struct trace_entry ent;
1: + int nid;
1: + int order;
1: + enum zone_type highest_zoneidx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_compaction_isolate_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_migratepages {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_begin {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_end {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_try_to_compact_pages {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_suitable_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_defer_template {};
1: +
1: +struct trace_event_data_offsets_mm_compaction_kcompactd_sleep {};
1: +
1: +struct trace_event_data_offsets_kcompactd_wake_template {};
1: +
1: +typedef void (*btf_trace_mm_compaction_isolate_migratepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_compaction_isolate_freepages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_mm_compaction_migratepages)(void *, long unsigned int, int, struct list_head *);
1: +
1: +typedef void (*btf_trace_mm_compaction_begin)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_mm_compaction_end)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, bool, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_try_to_compact_pages)(void *, int, gfp_t, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_finished)(void *, struct zone *, int, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_suitable)(void *, struct zone *, int, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_deferred)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_defer_compaction)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_defer_reset)(void *, struct zone *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_kcompactd_sleep)(void *, int);
1: +
1: +typedef void (*btf_trace_mm_compaction_wakeup_kcompactd)(void *, int, int, enum zone_type);
1: +
1: +typedef void (*btf_trace_mm_compaction_kcompactd_wake)(void *, int, int, enum zone_type);
1: +
1: +typedef enum {
1: + ISOLATE_ABORT = 0,
1: + ISOLATE_NONE = 1,
1: + ISOLATE_SUCCESS = 2,
1: +} isolate_migrate_t;
1: +
1: +struct anon_vma_chain {
1: + struct vm_area_struct *vma;
1: + struct anon_vma *anon_vma;
1: + struct list_head same_vma;
1: + struct rb_node rb;
1: + long unsigned int rb_subtree_last;
1: +};
1: +
1: +struct rb_augment_callbacks {
1: + void (*propagate)(struct rb_node *, struct rb_node *);
1: + void (*copy)(struct rb_node *, struct rb_node *);
1: + void (*rotate)(struct rb_node *, struct rb_node *);
1: +};
1: +
1: +enum lru_status {
1: + LRU_REMOVED = 0,
1: + LRU_REMOVED_RETRY = 1,
1: + LRU_ROTATE = 2,
1: + LRU_SKIP = 3,
1: + LRU_RETRY = 4,
1: +};
1: +
1: +typedef enum lru_status (*list_lru_walk_cb)(struct list_head *, struct list_lru_one *, spinlock_t *, void *);
1: +
1: +struct migration_target_control {
1: + int nid;
1: + nodemask_t *nmask;
1: + gfp_t gfp_mask;
1: +};
1: +
1: +struct follow_page_context {
1: + struct dev_pagemap *pgmap;
1: + unsigned int page_mask;
1: +};
1: +
1: +typedef struct {
1: + u64 val;
1: +} pfn_t;
1: +
1: +typedef unsigned int pgtbl_mod_mask;
1: +
1: +struct zap_details {
1: + struct address_space *check_mapping;
1: + long unsigned int first_index;
1: + long unsigned int last_index;
1: +};
1: +
1: +typedef int (*pte_fn_t)(pte_t *, long unsigned int, void *);
1: +
1: +enum {
1: + SWP_USED = 1,
1: + SWP_WRITEOK = 2,
1: + SWP_DISCARDABLE = 4,
1: + SWP_DISCARDING = 8,
1: + SWP_SOLIDSTATE = 16,
1: + SWP_CONTINUED = 32,
1: + SWP_BLKDEV = 64,
1: + SWP_ACTIVATED = 128,
1: + SWP_FS_OPS = 256,
1: + SWP_AREA_DISCARD = 512,
1: + SWP_PAGE_DISCARD = 1024,
1: + SWP_STABLE_WRITES = 2048,
1: + SWP_SYNCHRONOUS_IO = 4096,
1: + SWP_VALID = 8192,
1: + SWP_SCANNING = 16384,
1: +};
1: +
1: +struct copy_subpage_arg {
1: + struct page *dst;
1: + struct page *src;
1: + struct vm_area_struct *vma;
1: +};
1: +
1: +struct mm_walk;
1: +
1: +struct mm_walk_ops {
1: + int (*pgd_entry)(pgd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*p4d_entry)(p4d_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pud_entry)(pud_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pmd_entry)(pmd_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pte_entry)(pte_t *, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pte_hole)(long unsigned int, long unsigned int, int, struct mm_walk *);
1: + int (*hugetlb_entry)(pte_t *, long unsigned int, long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*test_walk)(long unsigned int, long unsigned int, struct mm_walk *);
1: + int (*pre_vma)(long unsigned int, long unsigned int, struct mm_walk *);
1: + void (*post_vma)(struct mm_walk *);
1: +};
1: +
1: +enum page_walk_action {
1: + ACTION_SUBTREE = 0,
1: + ACTION_CONTINUE = 1,
1: + ACTION_AGAIN = 2,
1: +};
1: +
1: +struct mm_walk {
1: + const struct mm_walk_ops *ops;
1: + struct mm_struct *mm;
1: + pgd_t *pgd;
1: + struct vm_area_struct *vma;
1: + enum page_walk_action action;
1: + bool no_vma;
1: + void *private;
1: +};
1: +
1: +enum {
1: + HUGETLB_SHMFS_INODE = 1,
1: + HUGETLB_ANONHUGE_INODE = 2,
1: +};
1: +
1: +struct trace_event_raw_vm_unmapped_area {
1: + struct trace_entry ent;
1: + long unsigned int addr;
1: + long unsigned int total_vm;
1: + long unsigned int flags;
1: + long unsigned int length;
1: + long unsigned int low_limit;
1: + long unsigned int high_limit;
1: + long unsigned int align_mask;
1: + long unsigned int align_offset;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_vm_unmapped_area {};
1: +
1: +typedef void (*btf_trace_vm_unmapped_area)(void *, long unsigned int, struct vm_unmapped_area_info *);
1: +
1: +struct rmap_walk_control {
1: + void *arg;
1: + bool (*rmap_one)(struct page *, struct vm_area_struct *, long unsigned int, void *);
1: + int (*done)(struct page *);
1: + struct anon_vma * (*anon_lock)(struct page *);
1: + bool (*invalid_vma)(struct vm_area_struct *, void *);
1: +};
1: +
1: +struct page_referenced_arg {
1: + int mapcount;
1: + int referenced;
1: + long unsigned int vm_flags;
1: + struct mem_cgroup *memcg;
1: +};
1: +
1: +struct vmap_area {
1: + long unsigned int va_start;
1: + long unsigned int va_end;
1: + struct rb_node rb_node;
1: + struct list_head list;
1: + union {
1: + long unsigned int subtree_max_size;
1: + struct vm_struct *vm;
1: + struct llist_node purge_list;
1: + };
1: +};
1: +
1: +struct vfree_deferred {
1: + struct llist_head list;
1: + struct work_struct wq;
1: +};
1: +
1: +enum fit_type {
1: + NOTHING_FIT = 0,
1: + FL_FIT_TYPE = 1,
1: + LE_FIT_TYPE = 2,
1: + RE_FIT_TYPE = 3,
1: + NE_FIT_TYPE = 4,
1: +};
1: +
1: +struct vmap_block_queue {
1: + spinlock_t lock;
1: + struct list_head free;
1: +};
1: +
1: +struct vmap_block {
1: + spinlock_t lock;
1: + struct vmap_area *va;
1: + long unsigned int free;
1: + long unsigned int dirty;
1: + long unsigned int dirty_min;
1: + long unsigned int dirty_max;
1: + struct list_head free_list;
1: + struct callback_head callback_head;
1: + struct list_head purge;
1: +};
1: +
1: +struct page_frag_cache {
1: + void *va;
1: + __u32 offset;
1: + unsigned int pagecnt_bias;
1: + bool pfmemalloc;
1: +};
1: +
1: +enum zone_flags {
1: + ZONE_BOOSTED_WATERMARK = 0,
1: +};
1: +
1: +struct mminit_pfnnid_cache {
1: + long unsigned int last_start;
1: + long unsigned int last_end;
1: + int last_nid;
1: +};
1: +
1: +typedef int fpi_t;
1: +
1: +struct pcpu_drain {
1: + struct zone *zone;
1: + struct work_struct work;
1: +};
1: +
1: +enum mf_flags {
1: + MF_COUNT_INCREASED = 1,
1: + MF_ACTION_REQUIRED = 2,
1: + MF_MUST_KILL = 4,
1: + MF_SOFT_OFFLINE = 8,
1: +};
1: +
1: +struct madvise_walk_private {
1: + struct mmu_gather *tlb;
1: + bool pageout;
1: +};
1: +
1: +struct vma_swap_readahead {
1: + short unsigned int win;
1: + short unsigned int offset;
1: + short unsigned int nr_pte;
1: + pte_t *ptes;
1: +};
1: +
1: +union swap_header {
1: + struct {
1: + char reserved[65526];
1: + char magic[10];
1: + } magic;
1: + struct {
1: + char bootbits[1024];
1: + __u32 version;
1: + __u32 last_page;
1: + __u32 nr_badpages;
1: + unsigned char sws_uuid[16];
1: + unsigned char sws_volume[16];
1: + __u32 padding[117];
1: + __u32 badpages[1];
1: + } info;
1: +};
1: +
1: +struct swap_extent {
1: + struct rb_node rb_node;
1: + long unsigned int start_page;
1: + long unsigned int nr_pages;
1: + sector_t start_block;
1: +};
1: +
1: +struct swap_slots_cache {
1: + bool lock_initialized;
1: + struct mutex alloc_lock;
1: + swp_entry_t *slots;
1: + int nr;
1: + int cur;
1: + spinlock_t free_lock;
1: + swp_entry_t *slots_ret;
1: + int n_ret;
1: +};
1: +
1: +struct frontswap_ops {
1: + void (*init)(unsigned int);
1: + int (*store)(unsigned int, long unsigned int, struct page *);
1: + int (*load)(unsigned int, long unsigned int, struct page *);
1: + void (*invalidate_page)(unsigned int, long unsigned int);
1: + void (*invalidate_area)(unsigned int);
1: + struct frontswap_ops *next;
1: +};
1: +
1: +struct crypto_comp {
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct zpool;
1: +
1: +struct zpool_ops {
1: + int (*evict)(struct zpool *, long unsigned int);
1: +};
1: +
1: +enum zpool_mapmode {
1: + ZPOOL_MM_RW = 0,
1: + ZPOOL_MM_RO = 1,
1: + ZPOOL_MM_WO = 2,
1: + ZPOOL_MM_DEFAULT = 0,
1: +};
1: +
1: +struct zswap_pool {
1: + struct zpool *zpool;
1: + struct crypto_comp **tfm;
1: + struct kref kref;
1: + struct list_head list;
1: + struct work_struct release_work;
1: + struct work_struct shrink_work;
1: + struct hlist_node node;
1: + char tfm_name[128];
1: +};
1: +
1: +struct zswap_entry {
1: + struct rb_node rbnode;
1: + long unsigned int offset;
1: + int refcount;
1: + unsigned int length;
1: + struct zswap_pool *pool;
1: + union {
1: + long unsigned int handle;
1: + long unsigned int value;
1: + };
1: +};
1: +
1: +struct zswap_header {
1: + swp_entry_t swpentry;
1: +};
1: +
1: +struct zswap_tree {
1: + struct rb_root rbroot;
1: + spinlock_t lock;
1: +};
1: +
1: +enum zswap_get_swap_ret {
1: + ZSWAP_SWAPCACHE_NEW = 0,
1: + ZSWAP_SWAPCACHE_EXIST = 1,
1: + ZSWAP_SWAPCACHE_FAIL = 2,
1: +};
1: +
1: +struct dma_pool {
1: + struct list_head page_list;
1: + spinlock_t lock;
1: + size_t size;
1: + struct device *dev;
1: + size_t allocation;
1: + size_t boundary;
1: + char name[32];
1: + struct list_head pools;
1: +};
1: +
1: +struct dma_page {
1: + struct list_head page_list;
1: + void *vaddr;
1: + dma_addr_t dma;
1: + unsigned int in_use;
1: + unsigned int offset;
1: +};
1: +
1: +struct resv_map {
1: + struct kref refs;
1: + spinlock_t lock;
1: + struct list_head regions;
1: + long int adds_in_progress;
1: + struct list_head region_cache;
1: + long int region_cache_count;
1: + struct page_counter *reservation_counter;
1: + long unsigned int pages_per_hpage;
1: + struct cgroup_subsys_state *css;
1: +};
1: +
1: +struct file_region {
1: + struct list_head link;
1: + long int from;
1: + long int to;
1: + struct page_counter *reservation_counter;
1: + struct cgroup_subsys_state *css;
1: +};
1: +
1: +enum hugetlb_memory_event {
1: + HUGETLB_MAX = 0,
1: + HUGETLB_NR_MEMORY_EVENTS = 1,
1: +};
1: +
1: +struct hugetlb_cgroup {
1: + struct cgroup_subsys_state css;
1: + struct page_counter hugepage[15];
1: + struct page_counter rsvd_hugepage[15];
1: + atomic_long_t events[15];
1: + atomic_long_t events_local[15];
1: + struct cgroup_file events_file[15];
1: + struct cgroup_file events_local_file[15];
1: +};
1: +
1: +enum vma_resv_mode {
1: + VMA_NEEDS_RESV = 0,
1: + VMA_COMMIT_RESV = 1,
1: + VMA_END_RESV = 2,
1: + VMA_ADD_RESV = 3,
1: +};
1: +
1: +struct node_hstate {
1: + struct kobject *hugepages_kobj;
1: + struct kobject *hstate_kobjs[15];
1: +};
1: +
1: +struct nodemask_scratch {
1: + nodemask_t mask1;
1: + nodemask_t mask2;
1: +};
1: +
1: +struct sp_node {
1: + struct rb_node nd;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct mempolicy *policy;
1: +};
1: +
1: +struct mempolicy_operations {
1: + int (*create)(struct mempolicy *, const nodemask_t *);
1: + void (*rebind)(struct mempolicy *, const nodemask_t *);
1: +};
1: +
1: +struct queue_pages {
1: + struct list_head *pagelist;
1: + long unsigned int flags;
1: + nodemask_t *nmask;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct vm_area_struct *first;
1: +};
1: +
1: +struct mmu_notifier_subscriptions {
1: + struct hlist_head list;
1: + bool has_itree;
1: + spinlock_t lock;
1: + long unsigned int invalidate_seq;
1: + long unsigned int active_invalidate_ranges;
1: + struct rb_root_cached itree;
1: + wait_queue_head_t wq;
1: + struct hlist_head deferred_list;
1: +};
1: +
1: +struct interval_tree_node {
1: + struct rb_node rb;
1: + long unsigned int start;
1: + long unsigned int last;
1: + long unsigned int __subtree_last;
1: +};
1: +
1: +struct mmu_interval_notifier;
1: +
1: +struct mmu_interval_notifier_ops {
1: + bool (*invalidate)(struct mmu_interval_notifier *, const struct mmu_notifier_range *, long unsigned int);
1: +};
1: +
1: +struct mmu_interval_notifier {
1: + struct interval_tree_node interval_tree;
1: + const struct mmu_interval_notifier_ops *ops;
1: + struct mm_struct *mm;
1: + struct hlist_node deferred_item;
1: + long unsigned int invalidate_seq;
1: +};
1: +
1: +struct rmap_item;
1: +
1: +struct mm_slot {
1: + struct hlist_node link;
1: + struct list_head mm_list;
1: + struct rmap_item *rmap_list;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct stable_node;
1: +
1: +struct rmap_item {
1: + struct rmap_item *rmap_list;
1: + union {
1: + struct anon_vma *anon_vma;
1: + int nid;
1: + };
1: + struct mm_struct *mm;
1: + long unsigned int address;
1: + unsigned int oldchecksum;
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct stable_node *head;
1: + struct hlist_node hlist;
1: + };
1: + };
1: +};
1: +
1: +struct ksm_scan {
1: + struct mm_slot *mm_slot;
1: + long unsigned int address;
1: + struct rmap_item **rmap_list;
1: + long unsigned int seqnr;
1: +};
1: +
1: +struct stable_node {
1: + union {
1: + struct rb_node node;
1: + struct {
1: + struct list_head *head;
1: + struct {
1: + struct hlist_node hlist_dup;
1: + struct list_head list;
1: + };
1: + };
1: + };
1: + struct hlist_head hlist;
1: + union {
1: + long unsigned int kpfn;
1: + long unsigned int chain_prune_time;
1: + };
1: + int rmap_hlist_len;
1: + int nid;
1: +};
1: +
1: +enum get_ksm_page_flags {
1: + GET_KSM_PAGE_NOLOCK = 0,
1: + GET_KSM_PAGE_LOCK = 1,
1: + GET_KSM_PAGE_TRYLOCK = 2,
1: +};
1: +
1: +struct array_cache {
1: + unsigned int avail;
1: + unsigned int limit;
1: + unsigned int batchcount;
1: + unsigned int touched;
1: + void *entry[0];
1: +};
1: +
1: +struct alien_cache {
1: + spinlock_t lock;
1: + struct array_cache ac;
1: +};
1: +
1: +typedef short unsigned int freelist_idx_t;
1: +
1: +enum {
1: + MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE = 12,
1: + SECTION_INFO = 12,
1: + MIX_SECTION_INFO = 13,
1: + NODE_INFO = 14,
1: + MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE = 14,
1: +};
1: +
1: +enum {
1: + MMOP_OFFLINE = 0,
1: + MMOP_ONLINE = 1,
1: + MMOP_ONLINE_KERNEL = 2,
1: + MMOP_ONLINE_MOVABLE = 3,
1: +};
1: +
1: +typedef void (*online_page_callback_t)(struct page *, unsigned int);
1: +
1: +struct buffer_head;
1: +
1: +typedef void bh_end_io_t(struct buffer_head *, int);
1: +
1: +struct buffer_head {
1: + long unsigned int b_state;
1: + struct buffer_head *b_this_page;
1: + struct page *b_page;
1: + sector_t b_blocknr;
1: + size_t b_size;
1: + char *b_data;
1: + struct block_device *b_bdev;
1: + bh_end_io_t *b_end_io;
1: + void *b_private;
1: + struct list_head b_assoc_buffers;
1: + struct address_space *b_assoc_map;
1: + atomic_t b_count;
1: + spinlock_t b_uptodate_lock;
1: +};
1: +
1: +typedef struct page *new_page_t(struct page *, long unsigned int);
1: +
1: +typedef void free_page_t(struct page *, long unsigned int);
1: +
1: +enum bh_state_bits {
1: + BH_Uptodate = 0,
1: + BH_Dirty = 1,
1: + BH_Lock = 2,
1: + BH_Req = 3,
1: + BH_Mapped = 4,
1: + BH_New = 5,
1: + BH_Async_Read = 6,
1: + BH_Async_Write = 7,
1: + BH_Delay = 8,
1: + BH_Boundary = 9,
1: + BH_Write_EIO = 10,
1: + BH_Unwritten = 11,
1: + BH_Quiet = 12,
1: + BH_Meta = 13,
1: + BH_Prio = 14,
1: + BH_Defer_Completion = 15,
1: + BH_PrivateStart = 16,
1: +};
1: +
1: +struct trace_event_raw_mm_migrate_pages {
1: + struct trace_entry ent;
1: + long unsigned int succeeded;
1: + long unsigned int failed;
1: + long unsigned int thp_succeeded;
1: + long unsigned int thp_failed;
1: + long unsigned int thp_split;
1: + enum migrate_mode mode;
1: + int reason;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_migrate_pages {};
1: +
1: +typedef void (*btf_trace_mm_migrate_pages)(void *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, enum migrate_mode, int);
1: +
1: +enum scan_result {
1: + SCAN_FAIL = 0,
1: + SCAN_SUCCEED = 1,
1: + SCAN_PMD_NULL = 2,
1: + SCAN_EXCEED_NONE_PTE = 3,
1: + SCAN_EXCEED_SWAP_PTE = 4,
1: + SCAN_EXCEED_SHARED_PTE = 5,
1: + SCAN_PTE_NON_PRESENT = 6,
1: + SCAN_PTE_UFFD_WP = 7,
1: + SCAN_PAGE_RO = 8,
1: + SCAN_LACK_REFERENCED_PAGE = 9,
1: + SCAN_PAGE_NULL = 10,
1: + SCAN_SCAN_ABORT = 11,
1: + SCAN_PAGE_COUNT = 12,
1: + SCAN_PAGE_LRU = 13,
1: + SCAN_PAGE_LOCK = 14,
1: + SCAN_PAGE_ANON = 15,
1: + SCAN_PAGE_COMPOUND = 16,
1: + SCAN_ANY_PROCESS = 17,
1: + SCAN_VMA_NULL = 18,
1: + SCAN_VMA_CHECK = 19,
1: + SCAN_ADDRESS_RANGE = 20,
1: + SCAN_SWAP_CACHE_PAGE = 21,
1: + SCAN_DEL_PAGE_LRU = 22,
1: + SCAN_ALLOC_HUGE_PAGE_FAIL = 23,
1: + SCAN_CGROUP_CHARGE_FAIL = 24,
1: + SCAN_TRUNCATED = 25,
1: + SCAN_PAGE_HAS_PRIVATE = 26,
1: +};
1: +
1: +struct trace_event_raw_mm_khugepaged_scan_pmd {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + long unsigned int pfn;
1: + bool writable;
1: + int referenced;
1: + int none_or_zero;
1: + int status;
1: + int unmapped;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int isolated;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page_isolate {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + int none_or_zero;
1: + int referenced;
1: + bool writable;
1: + int status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_mm_collapse_huge_page_swapin {
1: + struct trace_entry ent;
1: + struct mm_struct *mm;
1: + int swapped_in;
1: + int referenced;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_mm_khugepaged_scan_pmd {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page_isolate {};
1: +
1: +struct trace_event_data_offsets_mm_collapse_huge_page_swapin {};
1: +
1: +typedef void (*btf_trace_mm_khugepaged_scan_pmd)(void *, struct mm_struct *, struct page *, bool, int, int, int, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page)(void *, struct mm_struct *, int, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page_isolate)(void *, struct page *, int, int, bool, int);
1: +
1: +typedef void (*btf_trace_mm_collapse_huge_page_swapin)(void *, struct mm_struct *, int, int, int);
1: +
1: +struct mm_slot___2 {
1: + struct hlist_node hash;
1: + struct list_head mm_node;
1: + struct mm_struct *mm;
1: + int nr_pte_mapped_thp;
1: + long unsigned int pte_mapped_thp[8];
1: +};
1: +
1: +struct khugepaged_scan {
1: + struct list_head mm_head;
1: + struct mm_slot___2 *mm_slot;
1: + long unsigned int address;
1: +};
1: +
1: +struct mem_cgroup_reclaim_cookie {
1: + pg_data_t *pgdat;
1: + unsigned int generation;
1: +};
1: +
1: +struct mem_cgroup_tree_per_node {
1: + struct rb_root rb_root;
1: + struct rb_node *rb_rightmost;
1: + spinlock_t lock;
1: +};
1: +
1: +struct mem_cgroup_tree {
1: + struct mem_cgroup_tree_per_node *rb_tree_per_node[256];
1: +};
1: +
1: +struct mem_cgroup_eventfd_list {
1: + struct list_head list;
1: + struct eventfd_ctx *eventfd;
1: +};
1: +
1: +struct mem_cgroup_event {
1: + struct mem_cgroup *memcg;
1: + struct eventfd_ctx *eventfd;
1: + struct list_head list;
1: + int (*register_event)(struct mem_cgroup *, struct eventfd_ctx *, const char *);
1: + void (*unregister_event)(struct mem_cgroup *, struct eventfd_ctx *);
1: + poll_table pt;
1: + wait_queue_head_t *wqh;
1: + wait_queue_entry_t wait;
1: + struct work_struct remove;
1: +};
1: +
1: +struct move_charge_struct {
1: + spinlock_t lock;
1: + struct mm_struct *mm;
1: + struct mem_cgroup *from;
1: + struct mem_cgroup *to;
1: + long unsigned int flags;
1: + long unsigned int precharge;
1: + long unsigned int moved_charge;
1: + long unsigned int moved_swap;
1: + struct task_struct *moving_task;
1: + wait_queue_head_t waitq;
1: +};
1: +
1: +enum res_type {
1: + _MEM = 0,
1: + _MEMSWAP = 1,
1: + _OOM_TYPE = 2,
1: + _KMEM = 3,
1: + _TCP = 4,
1: +};
1: +
1: +struct memory_stat {
1: + const char *name;
1: + unsigned int ratio;
1: + unsigned int idx;
1: +};
1: +
1: +struct oom_wait_info {
1: + struct mem_cgroup *memcg;
1: + wait_queue_entry_t wait;
1: +};
1: +
1: +enum oom_status {
1: + OOM_SUCCESS = 0,
1: + OOM_FAILED = 1,
1: + OOM_ASYNC = 2,
1: + OOM_SKIPPED = 3,
1: +};
1: +
1: +struct memcg_stock_pcp {
1: + struct mem_cgroup *cached;
1: + unsigned int nr_pages;
1: + struct obj_cgroup *cached_objcg;
1: + unsigned int nr_bytes;
1: + struct work_struct work;
1: + long unsigned int flags;
1: +};
1: +
1: +enum {
1: + RES_USAGE = 0,
1: + RES_LIMIT = 1,
1: + RES_MAX_USAGE = 2,
1: + RES_FAILCNT = 3,
1: + RES_SOFT_LIMIT = 4,
1: +};
1: +
1: +union mc_target {
1: + struct page *page;
1: + swp_entry_t ent;
1: +};
1: +
1: +enum mc_target_type {
1: + MC_TARGET_NONE = 0,
1: + MC_TARGET_PAGE = 1,
1: + MC_TARGET_SWAP = 2,
1: + MC_TARGET_DEVICE = 3,
1: +};
1: +
1: +struct uncharge_gather {
1: + struct mem_cgroup *memcg;
1: + long unsigned int nr_pages;
1: + long unsigned int pgpgout;
1: + long unsigned int nr_kmem;
1: + struct page *dummy_page;
1: +};
1: +
1: +struct numa_stat {
1: + const char *name;
1: + unsigned int lru_mask;
1: +};
1: +
1: +enum vmpressure_levels {
1: + VMPRESSURE_LOW = 0,
1: + VMPRESSURE_MEDIUM = 1,
1: + VMPRESSURE_CRITICAL = 2,
1: + VMPRESSURE_NUM_LEVELS = 3,
1: +};
1: +
1: +enum vmpressure_modes {
1: + VMPRESSURE_NO_PASSTHROUGH = 0,
1: + VMPRESSURE_HIERARCHY = 1,
1: + VMPRESSURE_LOCAL = 2,
1: + VMPRESSURE_NUM_MODES = 3,
1: +};
1: +
1: +struct vmpressure_event {
1: + struct eventfd_ctx *efd;
1: + enum vmpressure_levels level;
1: + enum vmpressure_modes mode;
1: + struct list_head node;
1: +};
1: +
1: +struct swap_cgroup_ctrl {
1: + struct page **map;
1: + long unsigned int length;
1: + spinlock_t lock;
1: +};
1: +
1: +struct swap_cgroup {
1: + short unsigned int id;
1: +};
1: +
1: +enum {
1: + RES_USAGE___2 = 0,
1: + RES_RSVD_USAGE = 1,
1: + RES_LIMIT___2 = 2,
1: + RES_RSVD_LIMIT = 3,
1: + RES_MAX_USAGE___2 = 4,
1: + RES_RSVD_MAX_USAGE = 5,
1: + RES_FAILCNT___2 = 6,
1: + RES_RSVD_FAILCNT = 7,
1: +};
1: +
1: +enum mf_result {
1: + MF_IGNORED = 0,
1: + MF_FAILED = 1,
1: + MF_DELAYED = 2,
1: + MF_RECOVERED = 3,
1: +};
1: +
1: +enum mf_action_page_type {
1: + MF_MSG_KERNEL = 0,
1: + MF_MSG_KERNEL_HIGH_ORDER = 1,
1: + MF_MSG_SLAB = 2,
1: + MF_MSG_DIFFERENT_COMPOUND = 3,
1: + MF_MSG_POISONED_HUGE = 4,
1: + MF_MSG_HUGE = 5,
1: + MF_MSG_FREE_HUGE = 6,
1: + MF_MSG_NON_PMD_HUGE = 7,
1: + MF_MSG_UNMAP_FAILED = 8,
1: + MF_MSG_DIRTY_SWAPCACHE = 9,
1: + MF_MSG_CLEAN_SWAPCACHE = 10,
1: + MF_MSG_DIRTY_MLOCKED_LRU = 11,
1: + MF_MSG_CLEAN_MLOCKED_LRU = 12,
1: + MF_MSG_DIRTY_UNEVICTABLE_LRU = 13,
1: + MF_MSG_CLEAN_UNEVICTABLE_LRU = 14,
1: + MF_MSG_DIRTY_LRU = 15,
1: + MF_MSG_CLEAN_LRU = 16,
1: + MF_MSG_TRUNCATED_LRU = 17,
1: + MF_MSG_BUDDY = 18,
1: + MF_MSG_BUDDY_2ND = 19,
1: + MF_MSG_DAX = 20,
1: + MF_MSG_UNSPLIT_THP = 21,
1: + MF_MSG_UNKNOWN = 22,
1: +};
1: +
1: +typedef long unsigned int dax_entry_t;
1: +
1: +struct __kfifo {
1: + unsigned int in;
1: + unsigned int out;
1: + unsigned int mask;
1: + unsigned int esize;
1: + void *data;
1: +};
1: +
1: +struct to_kill {
1: + struct list_head nd;
1: + struct task_struct *tsk;
1: + long unsigned int addr;
1: + short int size_shift;
1: +};
1: +
1: +struct page_state {
1: + long unsigned int mask;
1: + long unsigned int res;
1: + enum mf_action_page_type type;
1: + int (*action)(struct page *, long unsigned int);
1: +};
1: +
1: +struct memory_failure_entry {
1: + long unsigned int pfn;
1: + int flags;
1: +};
1: +
1: +struct memory_failure_cpu {
1: + struct {
1: + union {
1: + struct __kfifo kfifo;
1: + struct memory_failure_entry *type;
1: + const struct memory_failure_entry *const_type;
1: + char (*rectype)[0];
1: + struct memory_failure_entry *ptr;
1: + const struct memory_failure_entry *ptr_const;
1: + };
1: + struct memory_failure_entry buf[16];
1: + } fifo;
1: + spinlock_t lock;
1: + struct work_struct work;
1: +};
1: +
1: +struct cleancache_filekey {
1: + union {
1: + ino_t ino;
1: + __u32 fh[6];
1: + u32 key[6];
1: + } u;
1: +};
1: +
1: +struct cleancache_ops {
1: + int (*init_fs)(size_t);
1: + int (*init_shared_fs)(uuid_t *, size_t);
1: + int (*get_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: + void (*put_page)(int, struct cleancache_filekey, long unsigned int, struct page *);
1: + void (*invalidate_page)(int, struct cleancache_filekey, long unsigned int);
1: + void (*invalidate_inode)(int, struct cleancache_filekey);
1: + void (*invalidate_fs)(int);
1: +};
1: +
1: +struct trace_event_raw_test_pages_isolated {
1: + struct trace_entry ent;
1: + long unsigned int start_pfn;
1: + long unsigned int end_pfn;
1: + long unsigned int fin_pfn;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_test_pages_isolated {};
1: +
1: +typedef void (*btf_trace_test_pages_isolated)(void *, long unsigned int, long unsigned int, long unsigned int);
1: +
1: +struct zpool_driver;
1: +
1: +struct zpool {
1: + struct zpool_driver *driver;
1: + void *pool;
1: + const struct zpool_ops *ops;
1: + bool evictable;
1: + struct list_head list;
1: +};
1: +
1: +struct zpool_driver {
1: + char *type;
1: + struct module *owner;
1: + atomic_t refcount;
1: + struct list_head list;
1: + void * (*create)(const char *, gfp_t, const struct zpool_ops *, struct zpool *);
1: + void (*destroy)(void *);
1: + bool malloc_support_movable;
1: + int (*malloc)(void *, size_t, gfp_t, long unsigned int *);
1: + void (*free)(void *, long unsigned int);
1: + int (*shrink)(void *, unsigned int, unsigned int *);
1: + void * (*map)(void *, long unsigned int, enum zpool_mapmode);
1: + void (*unmap)(void *, long unsigned int);
1: + u64 (*total_size)(void *);
1: +};
1: +
1: +struct zbud_pool;
1: +
1: +struct zbud_ops {
1: + int (*evict)(struct zbud_pool *, long unsigned int);
1: +};
1: +
1: +struct zbud_pool {
1: + spinlock_t lock;
1: + struct list_head unbuddied[63];
1: + struct list_head buddied;
1: + struct list_head lru;
1: + u64 pages_nr;
1: + const struct zbud_ops *ops;
1: + struct zpool *zpool;
1: + const struct zpool_ops *zpool_ops;
1: +};
1: +
1: +struct zbud_header {
1: + struct list_head buddy;
1: + struct list_head lru;
1: + unsigned int first_chunks;
1: + unsigned int last_chunks;
1: + bool under_reclaim;
1: +};
1: +
1: +enum buddy {
1: + FIRST = 0,
1: + LAST = 1,
1: +};
1: +
1: +enum zs_mapmode {
1: + ZS_MM_RW = 0,
1: + ZS_MM_RO = 1,
1: + ZS_MM_WO = 2,
1: +};
1: +
1: +struct zs_pool_stats {
1: + long unsigned int pages_compacted;
1: +};
1: +
1: +enum fullness_group {
1: + ZS_EMPTY = 0,
1: + ZS_ALMOST_EMPTY = 1,
1: + ZS_ALMOST_FULL = 2,
1: + ZS_FULL = 3,
1: + NR_ZS_FULLNESS = 4,
1: +};
1: +
1: +enum zs_stat_type {
1: + CLASS_EMPTY = 0,
1: + CLASS_ALMOST_EMPTY = 1,
1: + CLASS_ALMOST_FULL = 2,
1: + CLASS_FULL = 3,
1: + OBJ_ALLOCATED = 4,
1: + OBJ_USED = 5,
1: + NR_ZS_STAT_TYPE = 6,
1: +};
1: +
1: +struct zs_size_stat {
1: + long unsigned int objs[6];
1: +};
1: +
1: +struct size_class {
1: + spinlock_t lock;
1: + struct list_head fullness_list[4];
1: + int size;
1: + int objs_per_zspage;
1: + int pages_per_zspage;
1: + unsigned int index;
1: + struct zs_size_stat stats;
1: +};
1: +
1: +struct link_free {
1: + union {
1: + long unsigned int next;
1: + long unsigned int handle;
1: + };
1: +};
1: +
1: +struct zs_pool {
1: + const char *name;
1: + struct size_class *size_class[257];
1: + struct kmem_cache *handle_cachep;
1: + struct kmem_cache *zspage_cachep;
1: + atomic_long_t pages_allocated;
1: + struct zs_pool_stats stats;
1: + struct shrinker shrinker;
1: + struct inode *inode;
1: + struct work_struct free_work;
1: + struct wait_queue_head migration_wait;
1: + atomic_long_t isolated_pages;
1: + bool destroying;
1: +};
1: +
1: +struct zspage {
1: + struct {
1: + unsigned int fullness: 2;
1: + unsigned int class: 9;
1: + unsigned int isolated: 3;
1: + unsigned int magic: 8;
1: + };
1: + unsigned int inuse;
1: + unsigned int freeobj;
1: + struct page *first_page;
1: + struct list_head list;
1: + rwlock_t lock;
1: +};
1: +
1: +struct mapping_area {
1: + char *vm_buf;
1: + char *vm_addr;
1: + enum zs_mapmode vm_mm;
1: +};
1: +
1: +struct zs_compact_control {
1: + struct page *s_page;
1: + struct page *d_page;
1: + int obj_idx;
1: +};
1: +
1: +enum fixed_addresses {
1: + FIX_HOLE = 0,
1: + FIX_EARLY_DEBUG_TOP = 0,
1: + FIX_EARLY_DEBUG_BASE = 1,
1: + __end_of_permanent_fixed_addresses = 2,
1: + FIX_BTMAP_END = 2,
1: + FIX_BTMAP_BEGIN = 65,
1: + __end_of_fixed_addresses = 66,
1: +};
1: +
1: +struct trace_event_raw_cma_alloc {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + unsigned int align;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_cma_release {
1: + struct trace_entry ent;
1: + long unsigned int pfn;
1: + const struct page *page;
1: + unsigned int count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_cma_alloc {};
1: +
1: +struct trace_event_data_offsets_cma_release {};
1: +
1: +typedef void (*btf_trace_cma_alloc)(void *, long unsigned int, const struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_cma_release)(void *, long unsigned int, const struct page *, unsigned int);
1: +
1: +struct cma___2 {
1: + long unsigned int base_pfn;
1: + long unsigned int count;
1: + long unsigned int *bitmap;
1: + unsigned int order_per_bit;
1: + struct mutex lock;
1: + char name[64];
1: +};
1: +
1: +struct balloon_dev_info {
1: + long unsigned int isolated_pages;
1: + spinlock_t pages_lock;
1: + struct list_head pages;
1: + int (*migratepage)(struct balloon_dev_info *, struct page *, struct page *, enum migrate_mode);
1: + struct inode *inode;
1: +};
1: +
1: +struct page_ext_operations {
1: + size_t offset;
1: + size_t size;
1: + bool (*need)();
1: + void (*init)();
1: +};
1: +
1: +struct frame_vector {
1: + unsigned int nr_allocated;
1: + unsigned int nr_frames;
1: + bool got_ref;
1: + bool is_pfns;
1: + void *ptrs[0];
1: +};
1: +
1: +enum {
1: + BAD_STACK = 4294967295,
1: + NOT_STACK = 0,
1: + GOOD_FRAME = 1,
1: + GOOD_STACK = 2,
1: +};
1: +
1: +enum hmm_pfn_flags {
1: + HMM_PFN_VALID = 0,
1: + HMM_PFN_WRITE = 0,
1: + HMM_PFN_ERROR = 0,
1: + HMM_PFN_ORDER_SHIFT = 56,
1: + HMM_PFN_REQ_FAULT = 0,
1: + HMM_PFN_REQ_WRITE = 0,
1: + HMM_PFN_FLAGS = 0,
1: +};
1: +
1: +struct hmm_range {
1: + struct mmu_interval_notifier *notifier;
1: + long unsigned int notifier_seq;
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int *hmm_pfns;
1: + long unsigned int default_flags;
1: + long unsigned int pfn_flags_mask;
1: + void *dev_private_owner;
1: +};
1: +
1: +struct hmm_vma_walk {
1: + struct hmm_range *range;
1: + long unsigned int last;
1: +};
1: +
1: +enum {
1: + HMM_NEED_FAULT = 1,
1: + HMM_NEED_WRITE_FAULT = 2,
1: + HMM_NEED_ALL_BITS = 3,
1: +};
1: +
1: +struct hugetlbfs_inode_info {
1: + struct shared_policy policy;
1: + struct inode vfs_inode;
1: + unsigned int seals;
1: +};
1: +
1: +struct page_reporting_dev_info {
1: + int (*report)(struct page_reporting_dev_info *, struct scatterlist *, unsigned int);
1: + struct delayed_work work;
1: + atomic_t state;
1: +};
1: +
1: +enum {
1: + PAGE_REPORTING_IDLE = 0,
1: + PAGE_REPORTING_REQUESTED = 1,
1: + PAGE_REPORTING_ACTIVE = 2,
1: +};
1: +
1: +struct open_how {
1: + __u64 flags;
1: + __u64 mode;
1: + __u64 resolve;
1: +};
1: +
1: +enum fsnotify_data_type {
1: + FSNOTIFY_EVENT_NONE = 0,
1: + FSNOTIFY_EVENT_PATH = 1,
1: + FSNOTIFY_EVENT_INODE = 2,
1: +};
1: +
1: +typedef s32 compat_off_t;
1: +
1: +struct open_flags {
1: + int open_flag;
1: + umode_t mode;
1: + int acc_mode;
1: + int intent;
1: + int lookup_flags;
1: +};
1: +
1: +typedef __kernel_rwf_t rwf_t;
1: +
1: +struct fscrypt_policy_v1 {
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 master_key_descriptor[8];
1: +};
1: +
1: +struct fscrypt_policy_v2 {
1: + __u8 version;
1: + __u8 contents_encryption_mode;
1: + __u8 filenames_encryption_mode;
1: + __u8 flags;
1: + __u8 __reserved[4];
1: + __u8 master_key_identifier[16];
1: +};
1: +
1: +union fscrypt_policy {
1: + u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: +};
1: +
1: +enum vfs_get_super_keying {
1: + vfs_get_single_super = 0,
1: + vfs_get_single_reconf_super = 1,
1: + vfs_get_keyed_super = 2,
1: + vfs_get_independent_super = 3,
1: +};
1: +
1: +struct kobj_map;
1: +
1: +struct char_device_struct {
1: + struct char_device_struct *next;
1: + unsigned int major;
1: + unsigned int baseminor;
1: + int minorct;
1: + char name[64];
1: + struct cdev *cdev;
1: +};
1: +
1: +typedef unsigned int __kernel_mode_t;
1: +
1: +typedef __kernel_mode_t mode_t;
1: +
1: +struct stat {
1: + long unsigned int st_dev;
1: + ino_t st_ino;
1: + long unsigned int st_nlink;
1: + mode_t st_mode;
1: + uid_t st_uid;
1: + gid_t st_gid;
1: + long unsigned int st_rdev;
1: + long int st_size;
1: + long unsigned int st_blksize;
1: + long unsigned int st_blocks;
1: + long unsigned int st_atime;
1: + long unsigned int st_atime_nsec;
1: + long unsigned int st_mtime;
1: + long unsigned int st_mtime_nsec;
1: + long unsigned int st_ctime;
1: + long unsigned int st_ctime_nsec;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: + long unsigned int __unused6;
1: +};
1: +
1: +struct stat64 {
1: + long long unsigned int st_dev;
1: + long long unsigned int st_ino;
1: + unsigned int st_mode;
1: + unsigned int st_nlink;
1: + unsigned int st_uid;
1: + unsigned int st_gid;
1: + long long unsigned int st_rdev;
1: + short unsigned int __pad2;
1: + long long int st_size;
1: + int st_blksize;
1: + long long int st_blocks;
1: + int st_atime;
1: + unsigned int st_atime_nsec;
1: + int st_mtime;
1: + unsigned int st_mtime_nsec;
1: + int st_ctime;
1: + unsigned int st_ctime_nsec;
1: + unsigned int __unused4;
1: + unsigned int __unused5;
1: +};
1: +
1: +struct statx_timestamp {
1: + __s64 tv_sec;
1: + __u32 tv_nsec;
1: + __s32 __reserved;
1: +};
1: +
1: +struct statx {
1: + __u32 stx_mask;
1: + __u32 stx_blksize;
1: + __u64 stx_attributes;
1: + __u32 stx_nlink;
1: + __u32 stx_uid;
1: + __u32 stx_gid;
1: + __u16 stx_mode;
1: + __u16 __spare0[1];
1: + __u64 stx_ino;
1: + __u64 stx_size;
1: + __u64 stx_blocks;
1: + __u64 stx_attributes_mask;
1: + struct statx_timestamp stx_atime;
1: + struct statx_timestamp stx_btime;
1: + struct statx_timestamp stx_ctime;
1: + struct statx_timestamp stx_mtime;
1: + __u32 stx_rdev_major;
1: + __u32 stx_rdev_minor;
1: + __u32 stx_dev_major;
1: + __u32 stx_dev_minor;
1: + __u64 stx_mnt_id;
1: + __u64 __spare2;
1: + __u64 __spare3[12];
1: +};
1: +
1: +struct mount;
1: +
1: +struct mnt_namespace {
1: + atomic_t count;
1: + struct ns_common ns;
1: + struct mount *root;
1: + struct list_head list;
1: + spinlock_t ns_lock;
1: + struct user_namespace *user_ns;
1: + struct ucounts *ucounts;
1: + u64 seq;
1: + wait_queue_head_t poll;
1: + u64 event;
1: + unsigned int mounts;
1: + unsigned int pending_mounts;
1: +};
1: +
1: +typedef u32 compat_ino_t;
1: +
1: +typedef u32 __compat_gid32_t;
1: +
1: +typedef u32 compat_mode_t;
1: +
1: +typedef u32 compat_dev_t;
1: +
1: +typedef s16 compat_nlink_t;
1: +
1: +struct compat_stat {
1: + compat_dev_t st_dev;
1: + compat_ino_t st_ino;
1: + compat_mode_t st_mode;
1: + compat_nlink_t st_nlink;
1: + __compat_uid32_t st_uid;
1: + __compat_gid32_t st_gid;
1: + compat_dev_t st_rdev;
1: + compat_off_t st_size;
1: + compat_off_t st_blksize;
1: + compat_off_t st_blocks;
1: + old_time32_t st_atime;
1: + u32 st_atime_nsec;
1: + old_time32_t st_mtime;
1: + u32 st_mtime_nsec;
1: + old_time32_t st_ctime;
1: + u32 st_ctime_nsec;
1: + u32 __unused4[2];
1: +};
1: +
1: +struct mnt_pcp;
1: +
1: +struct mountpoint;
1: +
1: +struct mount {
1: + struct hlist_node mnt_hash;
1: + struct mount *mnt_parent;
1: + struct dentry *mnt_mountpoint;
1: + struct vfsmount mnt;
1: + union {
1: + struct callback_head mnt_rcu;
1: + struct llist_node mnt_llist;
1: + };
1: + struct mnt_pcp *mnt_pcp;
1: + struct list_head mnt_mounts;
1: + struct list_head mnt_child;
1: + struct list_head mnt_instance;
1: + const char *mnt_devname;
1: + struct list_head mnt_list;
1: + struct list_head mnt_expire;
1: + struct list_head mnt_share;
1: + struct list_head mnt_slave_list;
1: + struct list_head mnt_slave;
1: + struct mount *mnt_master;
1: + struct mnt_namespace *mnt_ns;
1: + struct mountpoint *mnt_mp;
1: + union {
1: + struct hlist_node mnt_mp_list;
1: + struct hlist_node mnt_umount;
1: + };
1: + struct list_head mnt_umounting;
1: + struct fsnotify_mark_connector *mnt_fsnotify_marks;
1: + __u32 mnt_fsnotify_mask;
1: + int mnt_id;
1: + int mnt_group_id;
1: + int mnt_expiry_mark;
1: + struct hlist_head mnt_pins;
1: + struct hlist_head mnt_stuck_children;
1: +};
1: +
1: +struct mnt_pcp {
1: + int mnt_count;
1: + int mnt_writers;
1: +};
1: +
1: +struct mountpoint {
1: + struct hlist_node m_hash;
1: + struct dentry *m_dentry;
1: + struct hlist_head m_list;
1: + int m_count;
1: +};
1: +
1: +typedef short unsigned int ushort;
1: +
1: +struct user_arg_ptr {
1: + bool is_compat;
1: + union {
1: + const char * const *native;
1: + const compat_uptr_t *compat;
1: + } ptr;
1: +};
1: +
1: +enum inode_i_mutex_lock_class {
1: + I_MUTEX_NORMAL = 0,
1: + I_MUTEX_PARENT = 1,
1: + I_MUTEX_CHILD = 2,
1: + I_MUTEX_XATTR = 3,
1: + I_MUTEX_NONDIR2 = 4,
1: + I_MUTEX_PARENT2 = 5,
1: +};
1: +
1: +struct pseudo_fs_context {
1: + const struct super_operations *ops;
1: + const struct xattr_handler **xattr;
1: + const struct dentry_operations *dops;
1: + long unsigned int magic;
1: +};
1: +
1: +struct name_snapshot {
1: + struct qstr name;
1: + unsigned char inline_name[32];
1: +};
1: +
1: +struct saved {
1: + struct path link;
1: + struct delayed_call done;
1: + const char *name;
1: + unsigned int seq;
1: +};
1: +
1: +struct nameidata {
1: + struct path path;
1: + struct qstr last;
1: + struct path root;
1: + struct inode *inode;
1: + unsigned int flags;
1: + unsigned int seq;
1: + unsigned int m_seq;
1: + unsigned int r_seq;
1: + int last_type;
1: + unsigned int depth;
1: + int total_link_count;
1: + struct saved *stack;
1: + struct saved internal[2];
1: + struct filename *name;
1: + struct nameidata *saved;
1: + unsigned int root_seq;
1: + int dfd;
1: + kuid_t dir_uid;
1: + umode_t dir_mode;
1: +};
1: +
1: +enum {
1: + LAST_NORM = 0,
1: + LAST_ROOT = 1,
1: + LAST_DOT = 2,
1: + LAST_DOTDOT = 3,
1: +};
1: +
1: +enum {
1: + WALK_TRAILING = 1,
1: + WALK_MORE = 2,
1: + WALK_NOFOLLOW = 4,
1: +};
1: +
1: +struct word_at_a_time {};
1: +
1: +struct f_owner_ex {
1: + int type;
1: + __kernel_pid_t pid;
1: +};
1: +
1: +struct flock {
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_off_t l_start;
1: + __kernel_off_t l_len;
1: + __kernel_pid_t l_pid;
1: +};
1: +
1: +struct compat_flock {
1: + short int l_type;
1: + short int l_whence;
1: + compat_off_t l_start;
1: + compat_off_t l_len;
1: + compat_pid_t l_pid;
1: +};
1: +
1: +struct compat_flock64 {
1: + short int l_type;
1: + short int l_whence;
1: + compat_loff_t l_start;
1: + compat_loff_t l_len;
1: + compat_pid_t l_pid;
1: +};
1: +
1: +struct file_clone_range {
1: + __s64 src_fd;
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u64 dest_offset;
1: +};
1: +
1: +struct file_dedupe_range_info {
1: + __s64 dest_fd;
1: + __u64 dest_offset;
1: + __u64 bytes_deduped;
1: + __s32 status;
1: + __u32 reserved;
1: +};
1: +
1: +struct file_dedupe_range {
1: + __u64 src_offset;
1: + __u64 src_length;
1: + __u16 dest_count;
1: + __u16 reserved1;
1: + __u32 reserved2;
1: + struct file_dedupe_range_info info[0];
1: +};
1: +
1: +typedef int get_block_t(struct inode *, sector_t, struct buffer_head *, int);
1: +
1: +struct fiemap_extent;
1: +
1: +struct fiemap_extent_info {
1: + unsigned int fi_flags;
1: + unsigned int fi_extents_mapped;
1: + unsigned int fi_extents_max;
1: + struct fiemap_extent *fi_extents_start;
1: +};
1: +
1: +struct space_resv {
1: + __s16 l_type;
1: + __s16 l_whence;
1: + __s64 l_start;
1: + __s64 l_len;
1: + __s32 l_sysid;
1: + __u32 l_pid;
1: + __s32 l_pad[4];
1: +};
1: +
1: +struct fiemap_extent {
1: + __u64 fe_logical;
1: + __u64 fe_physical;
1: + __u64 fe_length;
1: + __u64 fe_reserved64[2];
1: + __u32 fe_flags;
1: + __u32 fe_reserved[3];
1: +};
1: +
1: +struct fiemap {
1: + __u64 fm_start;
1: + __u64 fm_length;
1: + __u32 fm_flags;
1: + __u32 fm_mapped_extents;
1: + __u32 fm_extent_count;
1: + __u32 fm_reserved;
1: + struct fiemap_extent fm_extents[0];
1: +};
1: +
1: +struct linux_dirent64 {
1: + u64 d_ino;
1: + s64 d_off;
1: + short unsigned int d_reclen;
1: + unsigned char d_type;
1: + char d_name[0];
1: +};
1: +
1: +struct old_linux_dirent {
1: + long unsigned int d_ino;
1: + long unsigned int d_offset;
1: + short unsigned int d_namlen;
1: + char d_name[1];
1: +};
1: +
1: +struct readdir_callback {
1: + struct dir_context ctx;
1: + struct old_linux_dirent *dirent;
1: + int result;
1: +};
1: +
1: +struct linux_dirent {
1: + long unsigned int d_ino;
1: + long unsigned int d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: +};
1: +
1: +struct getdents_callback {
1: + struct dir_context ctx;
1: + struct linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +struct getdents_callback64 {
1: + struct dir_context ctx;
1: + struct linux_dirent64 *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +struct compat_old_linux_dirent {
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_offset;
1: + short unsigned int d_namlen;
1: + char d_name[1];
1: +};
1: +
1: +struct compat_readdir_callback {
1: + struct dir_context ctx;
1: + struct compat_old_linux_dirent *dirent;
1: + int result;
1: +};
1: +
1: +struct compat_linux_dirent {
1: + compat_ulong_t d_ino;
1: + compat_ulong_t d_off;
1: + short unsigned int d_reclen;
1: + char d_name[1];
1: +};
1: +
1: +struct compat_getdents_callback {
1: + struct dir_context ctx;
1: + struct compat_linux_dirent *current_dir;
1: + int prev_reclen;
1: + int count;
1: + int error;
1: +};
1: +
1: +typedef struct {
1: + long unsigned int fds_bits[16];
1: +} __kernel_fd_set;
1: +
1: +typedef __kernel_fd_set fd_set;
1: +
1: +struct poll_table_entry {
1: + struct file *filp;
1: + __poll_t key;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *wait_address;
1: +};
1: +
1: +struct poll_table_page;
1: +
1: +struct poll_wqueues {
1: + poll_table pt;
1: + struct poll_table_page *table;
1: + struct task_struct *polling_task;
1: + int triggered;
1: + int error;
1: + int inline_index;
1: + struct poll_table_entry inline_entries[9];
1: +};
1: +
1: +struct poll_table_page {
1: + struct poll_table_page *next;
1: + struct poll_table_entry *entry;
1: + struct poll_table_entry entries[0];
1: +};
1: +
1: +enum poll_time_type {
1: + PT_TIMEVAL = 0,
1: + PT_OLD_TIMEVAL = 1,
1: + PT_TIMESPEC = 2,
1: + PT_OLD_TIMESPEC = 3,
1: +};
1: +
1: +typedef struct {
1: + long unsigned int *in;
1: + long unsigned int *out;
1: + long unsigned int *ex;
1: + long unsigned int *res_in;
1: + long unsigned int *res_out;
1: + long unsigned int *res_ex;
1: +} fd_set_bits;
1: +
1: +struct sigset_argpack {
1: + sigset_t *p;
1: + size_t size;
1: +};
1: +
1: +struct poll_list {
1: + struct poll_list *next;
1: + int len;
1: + struct pollfd entries[0];
1: +};
1: +
1: +struct compat_sel_arg_struct {
1: + compat_ulong_t n;
1: + compat_uptr_t inp;
1: + compat_uptr_t outp;
1: + compat_uptr_t exp;
1: + compat_uptr_t tvp;
1: +};
1: +
1: +struct compat_sigset_argpack {
1: + compat_uptr_t p;
1: + compat_size_t size;
1: +};
1: +
1: +enum dentry_d_lock_class {
1: + DENTRY_D_LOCK_NORMAL = 0,
1: + DENTRY_D_LOCK_NESTED = 1,
1: +};
1: +
1: +struct external_name {
1: + union {
1: + atomic_t count;
1: + struct callback_head head;
1: + } u;
1: + unsigned char name[0];
1: +};
1: +
1: +enum d_walk_ret {
1: + D_WALK_CONTINUE = 0,
1: + D_WALK_QUIT = 1,
1: + D_WALK_NORETRY = 2,
1: + D_WALK_SKIP = 3,
1: +};
1: +
1: +struct check_mount {
1: + struct vfsmount *mnt;
1: + unsigned int mounted;
1: +};
1: +
1: +struct select_data {
1: + struct dentry *start;
1: + union {
1: + long int found;
1: + struct dentry *victim;
1: + };
1: + struct list_head dispose;
1: +};
1: +
1: +struct fsxattr {
1: + __u32 fsx_xflags;
1: + __u32 fsx_extsize;
1: + __u32 fsx_nextents;
1: + __u32 fsx_projid;
1: + __u32 fsx_cowextsize;
1: + unsigned char fsx_pad[8];
1: +};
1: +
1: +enum file_time_flags {
1: + S_ATIME = 1,
1: + S_MTIME = 2,
1: + S_CTIME = 4,
1: + S_VERSION = 8,
1: +};
1: +
1: +struct proc_mounts {
1: + struct mnt_namespace *ns;
1: + struct path root;
1: + int (*show)(struct seq_file *, struct vfsmount *);
1: + struct mount cursor;
1: +};
1: +
1: +enum umount_tree_flags {
1: + UMOUNT_SYNC = 1,
1: + UMOUNT_PROPAGATE = 2,
1: + UMOUNT_CONNECTED = 4,
1: +};
1: +
1: +struct unicode_map {
1: + const char *charset;
1: + int version;
1: +};
1: +
1: +struct simple_transaction_argresp {
1: + ssize_t size;
1: + char data[0];
1: +};
1: +
1: +struct simple_attr {
1: + int (*get)(void *, u64 *);
1: + int (*set)(void *, u64);
1: + char get_buf[24];
1: + char set_buf[24];
1: + void *data;
1: + const char *fmt;
1: + struct mutex mutex;
1: +};
1: +
1: +struct wb_writeback_work {
1: + long int nr_pages;
1: + struct super_block *sb;
1: + enum writeback_sync_modes sync_mode;
1: + unsigned int tagged_writepages: 1;
1: + unsigned int for_kupdate: 1;
1: + unsigned int range_cyclic: 1;
1: + unsigned int for_background: 1;
1: + unsigned int for_sync: 1;
1: + unsigned int auto_free: 1;
1: + enum wb_reason reason;
1: + struct list_head list;
1: + struct wb_completion *done;
1: +};
1: +
1: +struct trace_event_raw_writeback_page_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_dirty_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_inode_foreign_history {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t cgroup_ino;
1: + unsigned int history;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_inode_switch_wbs {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + ino_t old_cgroup_ino;
1: + ino_t new_cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_track_foreign_dirty {
1: + struct trace_entry ent;
1: + char name[32];
1: + u64 bdi_id;
1: + ino_t ino;
1: + unsigned int memcg_id;
1: + ino_t cgroup_ino;
1: + ino_t page_cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_flush_foreign {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + unsigned int frn_bdi_id;
1: + unsigned int frn_memcg_id;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_write_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + int sync_mode;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_work_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_pages;
1: + dev_t sb_dev;
1: + int sync_mode;
1: + int for_kupdate;
1: + int range_cyclic;
1: + int for_background;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_pages_written {
1: + struct trace_entry ent;
1: + long int pages;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_bdi_register {
1: + struct trace_entry ent;
1: + char name[32];
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_wbc_class {
1: + struct trace_entry ent;
1: + char name[32];
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + int sync_mode;
1: + int for_kupdate;
1: + int for_background;
1: + int for_reclaim;
1: + int range_cyclic;
1: + long int range_start;
1: + long int range_end;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_queue_io {
1: + struct trace_entry ent;
1: + char name[32];
1: + long unsigned int older;
1: + long int age;
1: + int moved;
1: + int reason;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_global_dirty_state {
1: + struct trace_entry ent;
1: + long unsigned int nr_dirty;
1: + long unsigned int nr_writeback;
1: + long unsigned int background_thresh;
1: + long unsigned int dirty_thresh;
1: + long unsigned int dirty_limit;
1: + long unsigned int nr_dirtied;
1: + long unsigned int nr_written;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_bdi_dirty_ratelimit {
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int write_bw;
1: + long unsigned int avg_write_bw;
1: + long unsigned int dirty_rate;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + long unsigned int balanced_dirty_ratelimit;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_balance_dirty_pages {
1: + struct trace_entry ent;
1: + char bdi[32];
1: + long unsigned int limit;
1: + long unsigned int setpoint;
1: + long unsigned int dirty;
1: + long unsigned int bdi_setpoint;
1: + long unsigned int bdi_dirty;
1: + long unsigned int dirty_ratelimit;
1: + long unsigned int task_ratelimit;
1: + unsigned int dirtied;
1: + unsigned int dirtied_pause;
1: + long unsigned int paused;
1: + long int pause;
1: + long unsigned int period;
1: + long int think;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_sb_inodes_requeue {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_congest_waited_template {
1: + struct trace_entry ent;
1: + unsigned int usec_timeout;
1: + unsigned int usec_delayed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_single_inode_template {
1: + struct trace_entry ent;
1: + char name[32];
1: + ino_t ino;
1: + long unsigned int state;
1: + long unsigned int dirtied_when;
1: + long unsigned int writeback_index;
1: + long int nr_to_write;
1: + long unsigned int wrote;
1: + ino_t cgroup_ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_writeback_inode_template {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int state;
1: + __u16 mode;
1: + long unsigned int dirtied_when;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_writeback_page_template {};
1: +
1: +struct trace_event_data_offsets_writeback_dirty_inode_template {};
1: +
1: +struct trace_event_data_offsets_inode_foreign_history {};
1: +
1: +struct trace_event_data_offsets_inode_switch_wbs {};
1: +
1: +struct trace_event_data_offsets_track_foreign_dirty {};
1: +
1: +struct trace_event_data_offsets_flush_foreign {};
1: +
1: +struct trace_event_data_offsets_writeback_write_inode_template {};
1: +
1: +struct trace_event_data_offsets_writeback_work_class {};
1: +
1: +struct trace_event_data_offsets_writeback_pages_written {};
1: +
1: +struct trace_event_data_offsets_writeback_class {};
1: +
1: +struct trace_event_data_offsets_writeback_bdi_register {};
1: +
1: +struct trace_event_data_offsets_wbc_class {};
1: +
1: +struct trace_event_data_offsets_writeback_queue_io {};
1: +
1: +struct trace_event_data_offsets_global_dirty_state {};
1: +
1: +struct trace_event_data_offsets_bdi_dirty_ratelimit {};
1: +
1: +struct trace_event_data_offsets_balance_dirty_pages {};
1: +
1: +struct trace_event_data_offsets_writeback_sb_inodes_requeue {};
1: +
1: +struct trace_event_data_offsets_writeback_congest_waited_template {};
1: +
1: +struct trace_event_data_offsets_writeback_single_inode_template {};
1: +
1: +struct trace_event_data_offsets_writeback_inode_template {};
1: +
1: +typedef void (*btf_trace_writeback_dirty_page)(void *, struct page *, struct address_space *);
1: +
1: +typedef void (*btf_trace_wait_on_page_writeback)(void *, struct page *, struct address_space *);
1: +
1: +typedef void (*btf_trace_writeback_mark_inode_dirty)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode_start)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_inode_foreign_history)(void *, struct inode *, struct writeback_control *, unsigned int);
1: +
1: +typedef void (*btf_trace_inode_switch_wbs)(void *, struct inode *, struct bdi_writeback *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_track_foreign_dirty)(void *, struct page *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_flush_foreign)(void *, struct bdi_writeback *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_write_inode_start)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_writeback_write_inode)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_writeback_queue)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_exec)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_start)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_written)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_wait)(void *, struct bdi_writeback *, struct wb_writeback_work *);
1: +
1: +typedef void (*btf_trace_writeback_pages_written)(void *, long int);
1: +
1: +typedef void (*btf_trace_writeback_wake_background)(void *, struct bdi_writeback *);
1: +
1: +typedef void (*btf_trace_writeback_bdi_register)(void *, struct backing_dev_info *);
1: +
1: +typedef void (*btf_trace_wbc_writepage)(void *, struct writeback_control *, struct backing_dev_info *);
1: +
1: +typedef void (*btf_trace_writeback_queue_io)(void *, struct bdi_writeback *, struct wb_writeback_work *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_global_dirty_state)(void *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_bdi_dirty_ratelimit)(void *, struct bdi_writeback *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_balance_dirty_pages)(void *, struct bdi_writeback *, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long int, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_sb_inodes_requeue)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_congestion_wait)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_wait_iff_congested)(void *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_single_inode_start)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_single_inode)(void *, struct inode *, struct writeback_control *, long unsigned int);
1: +
1: +typedef void (*btf_trace_writeback_lazytime)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_lazytime_iput)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_writeback_dirty_inode_enqueue)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_sb_mark_inode_writeback)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_sb_clear_inode_writeback)(void *, struct inode *);
1: +
1: +struct inode_switch_wbs_context {
1: + struct inode *inode;
1: + struct bdi_writeback *new_wb;
1: + struct callback_head callback_head;
1: + struct work_struct work;
1: +};
1: +
1: +struct splice_desc {
1: + size_t total_len;
1: + unsigned int len;
1: + unsigned int flags;
1: + union {
1: + void *userptr;
1: + struct file *file;
1: + void *data;
1: + } u;
1: + loff_t pos;
1: + loff_t *opos;
1: + size_t num_spliced;
1: + bool need_wakeup;
1: +};
1: +
1: +typedef int splice_actor(struct pipe_inode_info *, struct pipe_buffer *, struct splice_desc *);
1: +
1: +typedef int splice_direct_actor(struct pipe_inode_info *, struct splice_desc *);
1: +
1: +struct old_utimbuf32 {
1: + old_time32_t actime;
1: + old_time32_t modtime;
1: +};
1: +
1: +struct utimbuf {
1: + __kernel_old_time_t actime;
1: + __kernel_old_time_t modtime;
1: +};
1: +
1: +typedef int __kernel_daddr_t;
1: +
1: +struct ustat {
1: + __kernel_daddr_t f_tfree;
1: + __kernel_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: +};
1: +
1: +struct statfs {
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __kernel_long_t f_blocks;
1: + __kernel_long_t f_bfree;
1: + __kernel_long_t f_bavail;
1: + __kernel_long_t f_files;
1: + __kernel_long_t f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: +};
1: +
1: +struct statfs64 {
1: + __kernel_long_t f_type;
1: + __kernel_long_t f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __kernel_long_t f_namelen;
1: + __kernel_long_t f_frsize;
1: + __kernel_long_t f_flags;
1: + __kernel_long_t f_spare[4];
1: +};
1: +
1: +struct compat_statfs64 {
1: + __u32 f_type;
1: + __u32 f_bsize;
1: + __u64 f_blocks;
1: + __u64 f_bfree;
1: + __u64 f_bavail;
1: + __u64 f_files;
1: + __u64 f_ffree;
1: + __kernel_fsid_t f_fsid;
1: + __u32 f_namelen;
1: + __u32 f_frsize;
1: + __u32 f_flags;
1: + __u32 f_spare[4];
1: +};
1: +
1: +typedef s32 compat_daddr_t;
1: +
1: +typedef __kernel_fsid_t compat_fsid_t;
1: +
1: +struct compat_statfs {
1: + int f_type;
1: + int f_bsize;
1: + int f_blocks;
1: + int f_bfree;
1: + int f_bavail;
1: + int f_files;
1: + int f_ffree;
1: + compat_fsid_t f_fsid;
1: + int f_namelen;
1: + int f_frsize;
1: + int f_flags;
1: + int f_spare[4];
1: +};
1: +
1: +struct compat_ustat {
1: + compat_daddr_t f_tfree;
1: + compat_ino_t f_tinode;
1: + char f_fname[6];
1: + char f_fpack[6];
1: +};
1: +
1: +typedef struct ns_common *ns_get_path_helper_t(void *);
1: +
1: +struct ns_get_path_task_args {
1: + const struct proc_ns_operations *ns_ops;
1: + struct task_struct *task;
1: +};
1: +
1: +enum legacy_fs_param {
1: + LEGACY_FS_UNSET_PARAMS = 0,
1: + LEGACY_FS_MONOLITHIC_PARAMS = 1,
1: + LEGACY_FS_INDIVIDUAL_PARAMS = 2,
1: +};
1: +
1: +struct legacy_fs_context {
1: + char *legacy_data;
1: + size_t data_size;
1: + enum legacy_fs_param param_type;
1: +};
1: +
1: +enum fsconfig_command {
1: + FSCONFIG_SET_FLAG = 0,
1: + FSCONFIG_SET_STRING = 1,
1: + FSCONFIG_SET_BINARY = 2,
1: + FSCONFIG_SET_PATH = 3,
1: + FSCONFIG_SET_PATH_EMPTY = 4,
1: + FSCONFIG_SET_FD = 5,
1: + FSCONFIG_CMD_CREATE = 6,
1: + FSCONFIG_CMD_RECONFIGURE = 7,
1: +};
1: +
1: +struct dax_device;
1: +
1: +struct iomap_page_ops;
1: +
1: +struct iomap___2 {
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + struct block_device *bdev;
1: + struct dax_device *dax_dev;
1: + void *inline_data;
1: + void *private;
1: + const struct iomap_page_ops *page_ops;
1: +};
1: +
1: +struct iomap_page_ops {
1: + int (*page_prepare)(struct inode *, loff_t, unsigned int, struct iomap___2 *);
1: + void (*page_done)(struct inode *, loff_t, unsigned int, struct page *, struct iomap___2 *);
1: +};
1: +
1: +struct decrypt_bh_ctx {
1: + struct work_struct work;
1: + struct buffer_head *bh;
1: +};
1: +
1: +struct bh_lru {
1: + struct buffer_head *bhs[16];
1: +};
1: +
1: +struct bh_accounting {
1: + int nr;
1: + int ratelimit;
1: +};
1: +
1: +enum {
1: + DISK_EVENT_MEDIA_CHANGE = 1,
1: + DISK_EVENT_EJECT_REQUEST = 2,
1: +};
1: +
1: +enum {
1: + BIOSET_NEED_BVECS = 1,
1: + BIOSET_NEED_RESCUER = 2,
1: +};
1: +
1: +struct bdev_inode {
1: + struct block_device bdev;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct blkdev_dio {
1: + union {
1: + struct kiocb *iocb;
1: + struct task_struct *waiter;
1: + };
1: + size_t size;
1: + atomic_t ref;
1: + bool multi_bio: 1;
1: + bool should_dirty: 1;
1: + bool is_sync: 1;
1: + struct bio bio;
1: +};
1: +
1: +struct bd_holder_disk {
1: + struct list_head list;
1: + struct gendisk *disk;
1: + int refcnt;
1: +};
1: +
1: +typedef int dio_iodone_t(struct kiocb *, loff_t, ssize_t, void *);
1: +
1: +typedef void dio_submit_t(struct bio *, struct inode *, loff_t);
1: +
1: +enum {
1: + DIO_LOCKING = 1,
1: + DIO_SKIP_HOLES = 2,
1: +};
1: +
1: +struct dio_submit {
1: + struct bio *bio;
1: + unsigned int blkbits;
1: + unsigned int blkfactor;
1: + unsigned int start_zero_done;
1: + int pages_in_io;
1: + sector_t block_in_file;
1: + unsigned int blocks_available;
1: + int reap_counter;
1: + sector_t final_block_in_request;
1: + int boundary;
1: + get_block_t *get_block;
1: + dio_submit_t *submit_io;
1: + loff_t logical_offset_in_bio;
1: + sector_t final_block_in_bio;
1: + sector_t next_block_for_io;
1: + struct page *cur_page;
1: + unsigned int cur_page_offset;
1: + unsigned int cur_page_len;
1: + sector_t cur_page_block;
1: + loff_t cur_page_fs_offset;
1: + struct iov_iter *iter;
1: + unsigned int head;
1: + unsigned int tail;
1: + size_t from;
1: + size_t to;
1: +};
1: +
1: +struct dio {
1: + int flags;
1: + int op;
1: + int op_flags;
1: + blk_qc_t bio_cookie;
1: + struct gendisk *bio_disk;
1: + struct inode *inode;
1: + loff_t i_size;
1: + dio_iodone_t *end_io;
1: + void *private;
1: + spinlock_t bio_lock;
1: + int page_errors;
1: + int is_async;
1: + bool defer_completion;
1: + bool should_dirty;
1: + int io_error;
1: + long unsigned int refcount;
1: + struct bio *bio_list;
1: + struct task_struct *waiter;
1: + struct kiocb *iocb;
1: + ssize_t result;
1: + union {
1: + struct page *pages[64];
1: + struct work_struct complete_work;
1: + };
1: + long: 64;
1: +};
1: +
1: +struct bvec_iter_all {
1: + struct bio_vec bv;
1: + int idx;
1: + unsigned int done;
1: +};
1: +
1: +struct mpage_readpage_args {
1: + struct bio *bio;
1: + struct page *page;
1: + unsigned int nr_pages;
1: + bool is_readahead;
1: + sector_t last_block_in_bio;
1: + struct buffer_head map_bh;
1: + long unsigned int first_logical_block;
1: + get_block_t *get_block;
1: +};
1: +
1: +struct mpage_data {
1: + struct bio *bio;
1: + sector_t last_block_in_bio;
1: + get_block_t *get_block;
1: + unsigned int use_writepage;
1: +};
1: +
1: +typedef u32 nlink_t;
1: +
1: +typedef int (*proc_write_t)(struct file *, char *, size_t);
1: +
1: +struct proc_dir_entry {
1: + atomic_t in_use;
1: + refcount_t refcnt;
1: + struct list_head pde_openers;
1: + spinlock_t pde_unload_lock;
1: + struct completion *pde_unload_completion;
1: + const struct inode_operations *proc_iops;
1: + union {
1: + const struct proc_ops *proc_ops;
1: + const struct file_operations *proc_dir_ops;
1: + };
1: + const struct dentry_operations *proc_dops;
1: + union {
1: + const struct seq_operations *seq_ops;
1: + int (*single_show)(struct seq_file *, void *);
1: + };
1: + proc_write_t write;
1: + void *data;
1: + unsigned int state_size;
1: + unsigned int low_ino;
1: + nlink_t nlink;
1: + kuid_t uid;
1: + kgid_t gid;
1: + loff_t size;
1: + struct proc_dir_entry *parent;
1: + struct rb_root subdir;
1: + struct rb_node subdir_node;
1: + char *name;
1: + umode_t mode;
1: + u8 flags;
1: + u8 namelen;
1: + char inline_name[0];
1: +};
1: +
1: +union proc_op {
1: + int (*proc_get_link)(struct dentry *, struct path *);
1: + int (*proc_show)(struct seq_file *, struct pid_namespace *, struct pid *, struct task_struct *);
1: + const char *lsm;
1: +};
1: +
1: +struct proc_inode {
1: + struct pid *pid;
1: + unsigned int fd;
1: + union proc_op op;
1: + struct proc_dir_entry *pde;
1: + struct ctl_table_header *sysctl;
1: + struct ctl_table *sysctl_entry;
1: + struct hlist_node sibling_inodes;
1: + const struct proc_ns_operations *ns_ops;
1: + struct inode vfs_inode;
1: +};
1: +
1: +struct proc_fs_opts {
1: + int flag;
1: + const char *str;
1: +};
1: +
1: +struct file_handle {
1: + __u32 handle_bytes;
1: + int handle_type;
1: + unsigned char f_handle[0];
1: +};
1: +
1: +struct inotify_inode_mark {
1: + struct fsnotify_mark fsn_mark;
1: + int wd;
1: +};
1: +
1: +struct dnotify_struct {
1: + struct dnotify_struct *dn_next;
1: + __u32 dn_mask;
1: + int dn_fd;
1: + struct file *dn_filp;
1: + fl_owner_t dn_owner;
1: +};
1: +
1: +struct dnotify_mark {
1: + struct fsnotify_mark fsn_mark;
1: + struct dnotify_struct *dn;
1: +};
1: +
1: +struct inotify_event_info {
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + int wd;
1: + u32 sync_cookie;
1: + int name_len;
1: + char name[0];
1: +};
1: +
1: +struct inotify_event {
1: + __s32 wd;
1: + __u32 mask;
1: + __u32 cookie;
1: + __u32 len;
1: + char name[0];
1: +};
1: +
1: +enum {
1: + FAN_EVENT_INIT = 0,
1: + FAN_EVENT_REPORTED = 1,
1: + FAN_EVENT_ANSWERED = 2,
1: + FAN_EVENT_CANCELED = 3,
1: +};
1: +
1: +struct fanotify_fh {
1: + u8 type;
1: + u8 len;
1: + u8 flags;
1: + u8 pad;
1: + unsigned char buf[0];
1: +};
1: +
1: +struct fanotify_info {
1: + u8 dir_fh_totlen;
1: + u8 file_fh_totlen;
1: + u8 name_len;
1: + u8 pad;
1: + unsigned char buf[0];
1: +};
1: +
1: +enum fanotify_event_type {
1: + FANOTIFY_EVENT_TYPE_FID = 0,
1: + FANOTIFY_EVENT_TYPE_FID_NAME = 1,
1: + FANOTIFY_EVENT_TYPE_PATH = 2,
1: + FANOTIFY_EVENT_TYPE_PATH_PERM = 3,
1: + FANOTIFY_EVENT_TYPE_OVERFLOW = 4,
1: +};
1: +
1: +struct fanotify_event {
1: + struct fsnotify_event fse;
1: + u32 mask;
1: + enum fanotify_event_type type;
1: + struct pid *pid;
1: +};
1: +
1: +struct fanotify_fid_event {
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_fh object_fh;
1: + unsigned char _inline_fh_buf[12];
1: +};
1: +
1: +struct fanotify_name_event {
1: + struct fanotify_event fae;
1: + __kernel_fsid_t fsid;
1: + struct fanotify_info info;
1: +};
1: +
1: +struct fanotify_path_event {
1: + struct fanotify_event fae;
1: + struct path path;
1: +};
1: +
1: +struct fanotify_perm_event {
1: + struct fanotify_event fae;
1: + struct path path;
1: + short unsigned int response;
1: + short unsigned int state;
1: + int fd;
1: +};
1: +
1: +struct fanotify_event_metadata {
1: + __u32 event_len;
1: + __u8 vers;
1: + __u8 reserved;
1: + __u16 metadata_len;
1: + __u64 mask;
1: + __s32 fd;
1: + __s32 pid;
1: +};
1: +
1: +struct fanotify_event_info_header {
1: + __u8 info_type;
1: + __u8 pad;
1: + __u16 len;
1: +};
1: +
1: +struct fanotify_event_info_fid {
1: + struct fanotify_event_info_header hdr;
1: + __kernel_fsid_t fsid;
1: + unsigned char handle[0];
1: +};
1: +
1: +struct fanotify_response {
1: + __s32 fd;
1: + __u32 response;
1: +};
1: +
1: +struct epoll_event {
1: + __poll_t events;
1: + __u64 data;
1: +};
1: +
1: +struct epoll_filefd {
1: + struct file *file;
1: + int fd;
1: +} __attribute__((packed));
1: +
1: +struct nested_call_node {
1: + struct list_head llink;
1: + void *cookie;
1: + void *ctx;
1: +};
1: +
1: +struct nested_calls {
1: + struct list_head tasks_call_list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct eventpoll;
1: +
1: +struct epitem {
1: + union {
1: + struct rb_node rbn;
1: + struct callback_head rcu;
1: + };
1: + struct list_head rdllink;
1: + struct epitem *next;
1: + struct epoll_filefd ffd;
1: + int nwait;
1: + struct list_head pwqlist;
1: + struct eventpoll *ep;
1: + struct list_head fllink;
1: + struct wakeup_source *ws;
1: + struct epoll_event event;
1: +};
1: +
1: +struct eventpoll {
1: + struct mutex mtx;
1: + wait_queue_head_t wq;
1: + wait_queue_head_t poll_wait;
1: + struct list_head rdllist;
1: + rwlock_t lock;
1: + struct rb_root_cached rbr;
1: + struct epitem *ovflist;
1: + struct wakeup_source *ws;
1: + struct user_struct *user;
1: + struct file *file;
1: + u64 gen;
1: + unsigned int napi_id;
1: +};
1: +
1: +struct eppoll_entry {
1: + struct list_head llink;
1: + struct epitem *base;
1: + wait_queue_entry_t wait;
1: + wait_queue_head_t *whead;
1: +};
1: +
1: +struct ep_pqueue {
1: + poll_table pt;
1: + struct epitem *epi;
1: +};
1: +
1: +struct ep_send_events_data {
1: + int maxevents;
1: + struct epoll_event *events;
1: + int res;
1: +};
1: +
1: +struct signalfd_siginfo {
1: + __u32 ssi_signo;
1: + __s32 ssi_errno;
1: + __s32 ssi_code;
1: + __u32 ssi_pid;
1: + __u32 ssi_uid;
1: + __s32 ssi_fd;
1: + __u32 ssi_tid;
1: + __u32 ssi_band;
1: + __u32 ssi_overrun;
1: + __u32 ssi_trapno;
1: + __s32 ssi_status;
1: + __s32 ssi_int;
1: + __u64 ssi_ptr;
1: + __u64 ssi_utime;
1: + __u64 ssi_stime;
1: + __u64 ssi_addr;
1: + __u16 ssi_addr_lsb;
1: + __u16 __pad2;
1: + __s32 ssi_syscall;
1: + __u64 ssi_call_addr;
1: + __u32 ssi_arch;
1: + __u8 __pad[28];
1: +};
1: +
1: +struct signalfd_ctx {
1: + sigset_t sigmask;
1: +};
1: +
1: +struct timerfd_ctx {
1: + union {
1: + struct hrtimer tmr;
1: + struct alarm alarm;
1: + } t;
1: + ktime_t tintv;
1: + ktime_t moffs;
1: + wait_queue_head_t wqh;
1: + u64 ticks;
1: + int clockid;
1: + short unsigned int expired;
1: + short unsigned int settime_flags;
1: + struct callback_head rcu;
1: + struct list_head clist;
1: + spinlock_t cancel_lock;
1: + bool might_cancel;
1: +};
1: +
1: +struct eventfd_ctx___2 {
1: + struct kref kref;
1: + wait_queue_head_t wqh;
1: + __u64 count;
1: + unsigned int flags;
1: + int id;
1: +};
1: +
1: +enum userfaultfd_state {
1: + UFFD_STATE_WAIT_API = 0,
1: + UFFD_STATE_RUNNING = 1,
1: +};
1: +
1: +struct userfaultfd_ctx {
1: + wait_queue_head_t fault_pending_wqh;
1: + wait_queue_head_t fault_wqh;
1: + wait_queue_head_t fd_wqh;
1: + wait_queue_head_t event_wqh;
1: + seqcount_spinlock_t refile_seq;
1: + refcount_t refcount;
1: + unsigned int flags;
1: + unsigned int features;
1: + enum userfaultfd_state state;
1: + bool released;
1: + bool mmap_changing;
1: + struct mm_struct *mm;
1: +};
1: +
1: +struct uffd_msg {
1: + __u8 event;
1: + __u8 reserved1;
1: + __u16 reserved2;
1: + __u32 reserved3;
1: + union {
1: + struct {
1: + __u64 flags;
1: + __u64 address;
1: + union {
1: + __u32 ptid;
1: + } feat;
1: + } pagefault;
1: + struct {
1: + __u32 ufd;
1: + } fork;
1: + struct {
1: + __u64 from;
1: + __u64 to;
1: + __u64 len;
1: + } remap;
1: + struct {
1: + __u64 start;
1: + __u64 end;
1: + } remove;
1: + struct {
1: + __u64 reserved1;
1: + __u64 reserved2;
1: + __u64 reserved3;
1: + } reserved;
1: + } arg;
1: +};
1: +
1: +struct uffdio_api {
1: + __u64 api;
1: + __u64 features;
1: + __u64 ioctls;
1: +};
1: +
1: +struct uffdio_range {
1: + __u64 start;
1: + __u64 len;
1: +};
1: +
1: +struct uffdio_register {
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __u64 ioctls;
1: +};
1: +
1: +struct uffdio_copy {
1: + __u64 dst;
1: + __u64 src;
1: + __u64 len;
1: + __u64 mode;
1: + __s64 copy;
1: +};
1: +
1: +struct uffdio_zeropage {
1: + struct uffdio_range range;
1: + __u64 mode;
1: + __s64 zeropage;
1: +};
1: +
1: +struct uffdio_writeprotect {
1: + struct uffdio_range range;
1: + __u64 mode;
1: +};
1: +
1: +struct userfaultfd_fork_ctx {
1: + struct userfaultfd_ctx *orig;
1: + struct userfaultfd_ctx *new;
1: + struct list_head list;
1: +};
1: +
1: +struct userfaultfd_unmap_ctx {
1: + struct userfaultfd_ctx *ctx;
1: + long unsigned int start;
1: + long unsigned int end;
1: + struct list_head list;
1: +};
1: +
1: +struct userfaultfd_wait_queue {
1: + struct uffd_msg msg;
1: + wait_queue_entry_t wq;
1: + struct userfaultfd_ctx *ctx;
1: + bool waken;
1: +};
1: +
1: +struct userfaultfd_wake_range {
1: + long unsigned int start;
1: + long unsigned int len;
1: +};
1: +
1: +struct kioctx;
1: +
1: +struct kioctx_table {
1: + struct callback_head rcu;
1: + unsigned int nr;
1: + struct kioctx *table[0];
1: +};
1: +
1: +typedef __kernel_ulong_t aio_context_t;
1: +
1: +enum {
1: + IOCB_CMD_PREAD = 0,
1: + IOCB_CMD_PWRITE = 1,
1: + IOCB_CMD_FSYNC = 2,
1: + IOCB_CMD_FDSYNC = 3,
1: + IOCB_CMD_POLL = 5,
1: + IOCB_CMD_NOOP = 6,
1: + IOCB_CMD_PREADV = 7,
1: + IOCB_CMD_PWRITEV = 8,
1: +};
1: +
1: +struct io_event {
1: + __u64 data;
1: + __u64 obj;
1: + __s64 res;
1: + __s64 res2;
1: +};
1: +
1: +struct iocb {
1: + __u64 aio_data;
1: + __u32 aio_key;
1: + __kernel_rwf_t aio_rw_flags;
1: + __u16 aio_lio_opcode;
1: + __s16 aio_reqprio;
1: + __u32 aio_fildes;
1: + __u64 aio_buf;
1: + __u64 aio_nbytes;
1: + __s64 aio_offset;
1: + __u64 aio_reserved2;
1: + __u32 aio_flags;
1: + __u32 aio_resfd;
1: +};
1: +
1: +typedef int kiocb_cancel_fn(struct kiocb *);
1: +
1: +typedef u32 compat_aio_context_t;
1: +
1: +struct aio_ring {
1: + unsigned int id;
1: + unsigned int nr;
1: + unsigned int head;
1: + unsigned int tail;
1: + unsigned int magic;
1: + unsigned int compat_features;
1: + unsigned int incompat_features;
1: + unsigned int header_length;
1: + struct io_event io_events[0];
1: +};
1: +
1: +struct kioctx_cpu;
1: +
1: +struct ctx_rq_wait;
1: +
1: +struct kioctx {
1: + struct percpu_ref users;
1: + atomic_t dead;
1: + struct percpu_ref reqs;
1: + long unsigned int user_id;
1: + struct kioctx_cpu *cpu;
1: + unsigned int req_batch;
1: + unsigned int max_reqs;
1: + unsigned int nr_events;
1: + long unsigned int mmap_base;
1: + long unsigned int mmap_size;
1: + struct page **ring_pages;
1: + long int nr_pages;
1: + struct rcu_work free_rwork;
1: + struct ctx_rq_wait *rq_wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct {
1: + atomic_t reqs_available;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + spinlock_t ctx_lock;
1: + struct list_head active_reqs;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + struct mutex ring_lock;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + unsigned int tail;
1: + unsigned int completed_events;
1: + spinlock_t completion_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct page *internal_pages[8];
1: + struct file *aio_ring_file;
1: + unsigned int id;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct kioctx_cpu {
1: + unsigned int reqs_available;
1: +};
1: +
1: +struct ctx_rq_wait {
1: + struct completion comp;
1: + atomic_t count;
1: +};
1: +
1: +struct fsync_iocb {
1: + struct file *file;
1: + struct work_struct work;
1: + bool datasync;
1: + struct cred *creds;
1: +};
1: +
1: +struct poll_iocb {
1: + struct file *file;
1: + struct wait_queue_head *head;
1: + __poll_t events;
1: + bool done;
1: + bool cancelled;
1: + struct wait_queue_entry wait;
1: + struct work_struct work;
1: +};
1: +
1: +struct aio_kiocb {
1: + union {
1: + struct file *ki_filp;
1: + struct kiocb rw;
1: + struct fsync_iocb fsync;
1: + struct poll_iocb poll;
1: + };
1: + struct kioctx *ki_ctx;
1: + kiocb_cancel_fn *ki_cancel;
1: + struct io_event ki_res;
1: + struct list_head ki_list;
1: + refcount_t ki_refcnt;
1: + struct eventfd_ctx *ki_eventfd;
1: +};
1: +
1: +struct aio_poll_table {
1: + struct poll_table_struct pt;
1: + struct aio_kiocb *iocb;
1: + int error;
1: +};
1: +
1: +struct __aio_sigset {
1: + const sigset_t *sigmask;
1: + size_t sigsetsize;
1: +};
1: +
1: +struct __compat_aio_sigset {
1: + compat_uptr_t sigmask;
1: + compat_size_t sigsetsize;
1: +};
1: +
1: +enum {
1: + PERCPU_REF_INIT_ATOMIC = 1,
1: + PERCPU_REF_INIT_DEAD = 2,
1: + PERCPU_REF_ALLOW_REINIT = 4,
1: +};
1: +
1: +struct user_msghdr {
1: + void *msg_name;
1: + int msg_namelen;
1: + struct iovec *msg_iov;
1: + __kernel_size_t msg_iovlen;
1: + void *msg_control;
1: + __kernel_size_t msg_controllen;
1: + unsigned int msg_flags;
1: +};
1: +
1: +struct compat_msghdr {
1: + compat_uptr_t msg_name;
1: + compat_int_t msg_namelen;
1: + compat_uptr_t msg_iov;
1: + compat_size_t msg_iovlen;
1: + compat_uptr_t msg_control;
1: + compat_size_t msg_controllen;
1: + compat_uint_t msg_flags;
1: +};
1: +
1: +struct scm_fp_list {
1: + short int count;
1: + short int max;
1: + struct user_struct *user;
1: + struct file *fp[253];
1: +};
1: +
1: +struct unix_skb_parms {
1: + struct pid *pid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + struct scm_fp_list *fp;
1: + u32 secid;
1: + u32 consumed;
1: +};
1: +
1: +struct trace_event_raw_io_uring_create {
1: + struct trace_entry ent;
1: + int fd;
1: + void *ctx;
1: + u32 sq_entries;
1: + u32 cq_entries;
1: + u32 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_register {
1: + struct trace_entry ent;
1: + void *ctx;
1: + unsigned int opcode;
1: + unsigned int nr_files;
1: + unsigned int nr_bufs;
1: + bool eventfd;
1: + long int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_file_get {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int fd;
1: + char __data[0];
1: +};
1: +
1: +struct io_wq_work;
1: +
1: +struct trace_event_raw_io_uring_queue_async_work {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int rw;
1: + void *req;
1: + struct io_wq_work *work;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct io_wq_work_node {
1: + struct io_wq_work_node *next;
1: +};
1: +
1: +struct io_wq_work {
1: + struct io_wq_work_node list;
1: + struct io_identity *identity;
1: + unsigned int flags;
1: +};
1: +
1: +struct trace_event_raw_io_uring_defer {
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + long long unsigned int data;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_link {
1: + struct trace_entry ent;
1: + void *ctx;
1: + void *req;
1: + void *target_req;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_cqring_wait {
1: + struct trace_entry ent;
1: + void *ctx;
1: + int min_events;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_fail_link {
1: + struct trace_entry ent;
1: + void *req;
1: + void *link;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_complete {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u64 user_data;
1: + long int res;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_submit_sqe {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + bool force_nonblock;
1: + bool sq_thread;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_poll_arm {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + int events;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_poll_wake {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_task_add {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + int mask;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_io_uring_task_run {
1: + struct trace_entry ent;
1: + void *ctx;
1: + u8 opcode;
1: + u64 user_data;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_io_uring_create {};
1: +
1: +struct trace_event_data_offsets_io_uring_register {};
1: +
1: +struct trace_event_data_offsets_io_uring_file_get {};
1: +
1: +struct trace_event_data_offsets_io_uring_queue_async_work {};
1: +
1: +struct trace_event_data_offsets_io_uring_defer {};
1: +
1: +struct trace_event_data_offsets_io_uring_link {};
1: +
1: +struct trace_event_data_offsets_io_uring_cqring_wait {};
1: +
1: +struct trace_event_data_offsets_io_uring_fail_link {};
1: +
1: +struct trace_event_data_offsets_io_uring_complete {};
1: +
1: +struct trace_event_data_offsets_io_uring_submit_sqe {};
1: +
1: +struct trace_event_data_offsets_io_uring_poll_arm {};
1: +
1: +struct trace_event_data_offsets_io_uring_poll_wake {};
1: +
1: +struct trace_event_data_offsets_io_uring_task_add {};
1: +
1: +struct trace_event_data_offsets_io_uring_task_run {};
1: +
1: +typedef void (*btf_trace_io_uring_create)(void *, int, void *, u32, u32, u32);
1: +
1: +typedef void (*btf_trace_io_uring_register)(void *, void *, unsigned int, unsigned int, unsigned int, bool, long int);
1: +
1: +typedef void (*btf_trace_io_uring_file_get)(void *, void *, int);
1: +
1: +typedef void (*btf_trace_io_uring_queue_async_work)(void *, void *, int, void *, struct io_wq_work *, unsigned int);
1: +
1: +typedef void (*btf_trace_io_uring_defer)(void *, void *, void *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_io_uring_link)(void *, void *, void *, void *);
1: +
1: +typedef void (*btf_trace_io_uring_cqring_wait)(void *, void *, int);
1: +
1: +typedef void (*btf_trace_io_uring_fail_link)(void *, void *, void *);
1: +
1: +typedef void (*btf_trace_io_uring_complete)(void *, void *, u64, long int);
1: +
1: +typedef void (*btf_trace_io_uring_submit_sqe)(void *, void *, u8, u64, bool, bool);
1: +
1: +typedef void (*btf_trace_io_uring_poll_arm)(void *, void *, u8, u64, int, int);
1: +
1: +typedef void (*btf_trace_io_uring_poll_wake)(void *, void *, u8, u64, int);
1: +
1: +typedef void (*btf_trace_io_uring_task_add)(void *, void *, u8, u64, int);
1: +
1: +typedef void (*btf_trace_io_uring_task_run)(void *, void *, u8, u64);
1: +
1: +struct io_uring_sqe {
1: + __u8 opcode;
1: + __u8 flags;
1: + __u16 ioprio;
1: + __s32 fd;
1: + union {
1: + __u64 off;
1: + __u64 addr2;
1: + };
1: + union {
1: + __u64 addr;
1: + __u64 splice_off_in;
1: + };
1: + __u32 len;
1: + union {
1: + __kernel_rwf_t rw_flags;
1: + __u32 fsync_flags;
1: + __u16 poll_events;
1: + __u32 poll32_events;
1: + __u32 sync_range_flags;
1: + __u32 msg_flags;
1: + __u32 timeout_flags;
1: + __u32 accept_flags;
1: + __u32 cancel_flags;
1: + __u32 open_flags;
1: + __u32 statx_flags;
1: + __u32 fadvise_advice;
1: + __u32 splice_flags;
1: + };
1: + __u64 user_data;
1: + union {
1: + struct {
1: + union {
1: + __u16 buf_index;
1: + __u16 buf_group;
1: + };
1: + __u16 personality;
1: + __s32 splice_fd_in;
1: + };
1: + __u64 __pad2[3];
1: + };
1: +};
1: +
1: +enum {
1: + IOSQE_FIXED_FILE_BIT = 0,
1: + IOSQE_IO_DRAIN_BIT = 1,
1: + IOSQE_IO_LINK_BIT = 2,
1: + IOSQE_IO_HARDLINK_BIT = 3,
1: + IOSQE_ASYNC_BIT = 4,
1: + IOSQE_BUFFER_SELECT_BIT = 5,
1: +};
1: +
1: +enum {
1: + IORING_OP_NOP = 0,
1: + IORING_OP_READV = 1,
1: + IORING_OP_WRITEV = 2,
1: + IORING_OP_FSYNC = 3,
1: + IORING_OP_READ_FIXED = 4,
1: + IORING_OP_WRITE_FIXED = 5,
1: + IORING_OP_POLL_ADD = 6,
1: + IORING_OP_POLL_REMOVE = 7,
1: + IORING_OP_SYNC_FILE_RANGE = 8,
1: + IORING_OP_SENDMSG = 9,
1: + IORING_OP_RECVMSG = 10,
1: + IORING_OP_TIMEOUT = 11,
1: + IORING_OP_TIMEOUT_REMOVE = 12,
1: + IORING_OP_ACCEPT = 13,
1: + IORING_OP_ASYNC_CANCEL = 14,
1: + IORING_OP_LINK_TIMEOUT = 15,
1: + IORING_OP_CONNECT = 16,
1: + IORING_OP_FALLOCATE = 17,
1: + IORING_OP_OPENAT = 18,
1: + IORING_OP_CLOSE = 19,
1: + IORING_OP_FILES_UPDATE = 20,
1: + IORING_OP_STATX = 21,
1: + IORING_OP_READ = 22,
1: + IORING_OP_WRITE = 23,
1: + IORING_OP_FADVISE = 24,
1: + IORING_OP_MADVISE = 25,
1: + IORING_OP_SEND = 26,
1: + IORING_OP_RECV = 27,
1: + IORING_OP_OPENAT2 = 28,
1: + IORING_OP_EPOLL_CTL = 29,
1: + IORING_OP_SPLICE = 30,
1: + IORING_OP_PROVIDE_BUFFERS = 31,
1: + IORING_OP_REMOVE_BUFFERS = 32,
1: + IORING_OP_TEE = 33,
1: + IORING_OP_LAST = 34,
1: +};
1: +
1: +struct io_uring_cqe {
1: + __u64 user_data;
1: + __s32 res;
1: + __u32 flags;
1: +};
1: +
1: +enum {
1: + IORING_CQE_BUFFER_SHIFT = 16,
1: +};
1: +
1: +struct io_sqring_offsets {
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 flags;
1: + __u32 dropped;
1: + __u32 array;
1: + __u32 resv1;
1: + __u64 resv2;
1: +};
1: +
1: +struct io_cqring_offsets {
1: + __u32 head;
1: + __u32 tail;
1: + __u32 ring_mask;
1: + __u32 ring_entries;
1: + __u32 overflow;
1: + __u32 cqes;
1: + __u32 flags;
1: + __u32 resv1;
1: + __u64 resv2;
1: +};
1: +
1: +struct io_uring_params {
1: + __u32 sq_entries;
1: + __u32 cq_entries;
1: + __u32 flags;
1: + __u32 sq_thread_cpu;
1: + __u32 sq_thread_idle;
1: + __u32 features;
1: + __u32 wq_fd;
1: + __u32 resv[3];
1: + struct io_sqring_offsets sq_off;
1: + struct io_cqring_offsets cq_off;
1: +};
1: +
1: +enum {
1: + IORING_REGISTER_BUFFERS = 0,
1: + IORING_UNREGISTER_BUFFERS = 1,
1: + IORING_REGISTER_FILES = 2,
1: + IORING_UNREGISTER_FILES = 3,
1: + IORING_REGISTER_EVENTFD = 4,
1: + IORING_UNREGISTER_EVENTFD = 5,
1: + IORING_REGISTER_FILES_UPDATE = 6,
1: + IORING_REGISTER_EVENTFD_ASYNC = 7,
1: + IORING_REGISTER_PROBE = 8,
1: + IORING_REGISTER_PERSONALITY = 9,
1: + IORING_UNREGISTER_PERSONALITY = 10,
1: + IORING_REGISTER_RESTRICTIONS = 11,
1: + IORING_REGISTER_ENABLE_RINGS = 12,
1: + IORING_REGISTER_LAST = 13,
1: +};
1: +
1: +struct io_uring_files_update {
1: + __u32 offset;
1: + __u32 resv;
1: + __u64 fds;
1: +};
1: +
1: +struct io_uring_probe_op {
1: + __u8 op;
1: + __u8 resv;
1: + __u16 flags;
1: + __u32 resv2;
1: +};
1: +
1: +struct io_uring_probe {
1: + __u8 last_op;
1: + __u8 ops_len;
1: + __u16 resv;
1: + __u32 resv2[3];
1: + struct io_uring_probe_op ops[0];
1: +};
1: +
1: +struct io_uring_restriction {
1: + __u16 opcode;
1: + union {
1: + __u8 register_op;
1: + __u8 sqe_op;
1: + __u8 sqe_flags;
1: + };
1: + __u8 resv;
1: + __u32 resv2[3];
1: +};
1: +
1: +enum {
1: + IORING_RESTRICTION_REGISTER_OP = 0,
1: + IORING_RESTRICTION_SQE_OP = 1,
1: + IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2,
1: + IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3,
1: + IORING_RESTRICTION_LAST = 4,
1: +};
1: +
1: +enum {
1: + IO_WQ_WORK_CANCEL = 1,
1: + IO_WQ_WORK_HASHED = 2,
1: + IO_WQ_WORK_UNBOUND = 4,
1: + IO_WQ_WORK_NO_CANCEL = 8,
1: + IO_WQ_WORK_CONCURRENT = 16,
1: + IO_WQ_WORK_FILES = 32,
1: + IO_WQ_WORK_FS = 64,
1: + IO_WQ_WORK_MM = 128,
1: + IO_WQ_WORK_CREDS = 256,
1: + IO_WQ_WORK_BLKCG = 512,
1: + IO_WQ_WORK_FSIZE = 1024,
1: + IO_WQ_HASH_SHIFT = 24,
1: +};
1: +
1: +enum io_wq_cancel {
1: + IO_WQ_CANCEL_OK = 0,
1: + IO_WQ_CANCEL_RUNNING = 1,
1: + IO_WQ_CANCEL_NOTFOUND = 2,
1: +};
1: +
1: +typedef void free_work_fn(struct io_wq_work *);
1: +
1: +typedef struct io_wq_work *io_wq_work_fn(struct io_wq_work *);
1: +
1: +struct io_wq_data {
1: + struct user_struct *user;
1: + io_wq_work_fn *do_work;
1: + free_work_fn *free_work;
1: +};
1: +
1: +struct io_uring {
1: + u32 head;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + u32 tail;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_rings {
1: + struct io_uring sq;
1: + struct io_uring cq;
1: + u32 sq_ring_mask;
1: + u32 cq_ring_mask;
1: + u32 sq_ring_entries;
1: + u32 cq_ring_entries;
1: + u32 sq_dropped;
1: + u32 sq_flags;
1: + u32 cq_flags;
1: + u32 cq_overflow;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct io_uring_cqe cqes[0];
1: +};
1: +
1: +struct io_mapped_ubuf {
1: + u64 ubuf;
1: + size_t len;
1: + struct bio_vec *bvec;
1: + unsigned int nr_bvecs;
1: + long unsigned int acct_pages;
1: +};
1: +
1: +struct fixed_file_table {
1: + struct file **files;
1: +};
1: +
1: +struct fixed_file_data;
1: +
1: +struct fixed_file_ref_node {
1: + struct percpu_ref refs;
1: + struct list_head node;
1: + struct list_head file_list;
1: + struct fixed_file_data *file_data;
1: + struct llist_node llist;
1: + bool done;
1: +};
1: +
1: +struct io_ring_ctx;
1: +
1: +struct fixed_file_data {
1: + struct fixed_file_table *table;
1: + struct io_ring_ctx *ctx;
1: + struct fixed_file_ref_node *node;
1: + struct percpu_ref refs;
1: + struct completion done;
1: + struct list_head ref_list;
1: + spinlock_t lock;
1: +};
1: +
1: +struct io_wq;
1: +
1: +struct io_restriction {
1: + long unsigned int register_op[1];
1: + long unsigned int sqe_op[1];
1: + u8 sqe_flags_allowed;
1: + u8 sqe_flags_required;
1: + bool registered;
1: +};
1: +
1: +struct io_sq_data;
1: +
1: +struct io_kiocb;
1: +
1: +struct io_ring_ctx {
1: + struct {
1: + struct percpu_ref refs;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + unsigned int flags;
1: + unsigned int compat: 1;
1: + unsigned int limit_mem: 1;
1: + unsigned int cq_overflow_flushed: 1;
1: + unsigned int drain_next: 1;
1: + unsigned int eventfd_async: 1;
1: + unsigned int restricted: 1;
1: + unsigned int sqo_dead: 1;
1: + u32 *sq_array;
1: + unsigned int cached_sq_head;
1: + unsigned int sq_entries;
1: + unsigned int sq_mask;
1: + unsigned int sq_thread_idle;
1: + unsigned int cached_sq_dropped;
1: + unsigned int cached_cq_overflow;
1: + long unsigned int sq_check_overflow;
1: + struct list_head defer_list;
1: + struct list_head timeout_list;
1: + struct list_head cq_overflow_list;
1: + wait_queue_head_t inflight_wait;
1: + struct io_uring_sqe *sq_sqes;
1: + };
1: + struct io_rings *rings;
1: + struct io_wq *io_wq;
1: + struct task_struct *sqo_task;
1: + struct mm_struct *mm_account;
1: + struct cgroup_subsys_state *sqo_blkcg_css;
1: + struct io_sq_data *sq_data;
1: + struct wait_queue_head sqo_sq_wait;
1: + struct wait_queue_entry sqo_wait_entry;
1: + struct list_head sqd_list;
1: + struct fixed_file_data *file_data;
1: + unsigned int nr_user_files;
1: + unsigned int nr_user_bufs;
1: + struct io_mapped_ubuf *user_bufs;
1: + struct user_struct *user;
1: + const struct cred *creds;
1: + kuid_t loginuid;
1: + unsigned int sessionid;
1: + struct completion ref_comp;
1: + struct completion sq_thread_comp;
1: + struct io_kiocb *fallback_req;
1: + struct socket *ring_sock;
1: + struct idr io_buffer_idr;
1: + struct idr personality_idr;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct {
1: + unsigned int cached_cq_tail;
1: + unsigned int cq_entries;
1: + unsigned int cq_mask;
1: + atomic_t cq_timeouts;
1: + unsigned int cq_last_tm_flush;
1: + long unsigned int cq_check_overflow;
1: + struct wait_queue_head cq_wait;
1: + struct fasync_struct *cq_fasync;
1: + struct eventfd_ctx *cq_ev_fd;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + struct mutex uring_lock;
1: + wait_queue_head_t wait;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct {
1: + spinlock_t completion_lock;
1: + struct list_head iopoll_list;
1: + struct hlist_head *cancel_hash;
1: + unsigned int cancel_hash_bits;
1: + bool poll_multi_file;
1: + spinlock_t inflight_lock;
1: + struct list_head inflight_list;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + struct delayed_work file_put_work;
1: + struct llist_head file_put_llist;
1: + struct work_struct exit_work;
1: + struct io_restriction restrictions;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct io_buffer {
1: + struct list_head list;
1: + __u64 addr;
1: + __s32 len;
1: + __u16 bid;
1: +};
1: +
1: +struct io_sq_data {
1: + refcount_t refs;
1: + struct mutex lock;
1: + struct list_head ctx_list;
1: + struct list_head ctx_new_list;
1: + struct mutex ctx_lock;
1: + struct task_struct *thread;
1: + struct wait_queue_head wait;
1: +};
1: +
1: +struct io_rw {
1: + struct kiocb kiocb;
1: + u64 addr;
1: + u64 len;
1: +};
1: +
1: +struct io_poll_iocb {
1: + struct file *file;
1: + union {
1: + struct wait_queue_head *head;
1: + u64 addr;
1: + };
1: + __poll_t events;
1: + bool done;
1: + bool canceled;
1: + struct wait_queue_entry wait;
1: +};
1: +
1: +struct io_accept {
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int *addr_len;
1: + int flags;
1: + long unsigned int nofile;
1: +};
1: +
1: +struct io_sync {
1: + struct file *file;
1: + loff_t len;
1: + loff_t off;
1: + int flags;
1: + int mode;
1: +};
1: +
1: +struct io_cancel {
1: + struct file *file;
1: + u64 addr;
1: +};
1: +
1: +struct io_timeout {
1: + struct file *file;
1: + u32 off;
1: + u32 target_seq;
1: + struct list_head list;
1: +};
1: +
1: +struct io_timeout_rem {
1: + struct file *file;
1: + u64 addr;
1: +};
1: +
1: +struct io_connect {
1: + struct file *file;
1: + struct sockaddr *addr;
1: + int addr_len;
1: +};
1: +
1: +struct io_sr_msg {
1: + struct file *file;
1: + union {
1: + struct user_msghdr *umsg;
1: + void *buf;
1: + };
1: + int msg_flags;
1: + int bgid;
1: + size_t len;
1: + struct io_buffer *kbuf;
1: +};
1: +
1: +struct io_open {
1: + struct file *file;
1: + int dfd;
1: + bool ignore_nonblock;
1: + struct filename *filename;
1: + struct open_how how;
1: + long unsigned int nofile;
1: +};
1: +
1: +struct io_close {
1: + struct file *file;
1: + struct file *put_file;
1: + int fd;
1: +};
1: +
1: +struct io_files_update {
1: + struct file *file;
1: + u64 arg;
1: + u32 nr_args;
1: + u32 offset;
1: +};
1: +
1: +struct io_fadvise {
1: + struct file *file;
1: + u64 offset;
1: + u32 len;
1: + u32 advice;
1: +};
1: +
1: +struct io_madvise {
1: + struct file *file;
1: + u64 addr;
1: + u32 len;
1: + u32 advice;
1: +};
1: +
1: +struct io_epoll {
1: + struct file *file;
1: + int epfd;
1: + int op;
1: + int fd;
1: + struct epoll_event event;
1: +};
1: +
1: +struct io_splice {
1: + struct file *file_out;
1: + struct file *file_in;
1: + loff_t off_out;
1: + loff_t off_in;
1: + u64 len;
1: + unsigned int flags;
1: +};
1: +
1: +struct io_provide_buf {
1: + struct file *file;
1: + __u64 addr;
1: + __s32 len;
1: + __u32 bgid;
1: + __u16 nbufs;
1: + __u16 bid;
1: +};
1: +
1: +struct io_statx {
1: + struct file *file;
1: + int dfd;
1: + unsigned int mask;
1: + unsigned int flags;
1: + const char *filename;
1: + struct statx *buffer;
1: +};
1: +
1: +struct io_completion {
1: + struct file *file;
1: + struct list_head list;
1: + int cflags;
1: +};
1: +
1: +struct async_poll;
1: +
1: +struct io_kiocb {
1: + union {
1: + struct file *file;
1: + struct io_rw rw;
1: + struct io_poll_iocb poll;
1: + struct io_accept accept;
1: + struct io_sync sync;
1: + struct io_cancel cancel;
1: + struct io_timeout timeout;
1: + struct io_timeout_rem timeout_rem;
1: + struct io_connect connect;
1: + struct io_sr_msg sr_msg;
1: + struct io_open open;
1: + struct io_close close;
1: + struct io_files_update files_update;
1: + struct io_fadvise fadvise;
1: + struct io_madvise madvise;
1: + struct io_epoll epoll;
1: + struct io_splice splice;
1: + struct io_provide_buf pbuf;
1: + struct io_statx statx;
1: + struct io_completion compl;
1: + };
1: + void *async_data;
1: + u8 opcode;
1: + u8 iopoll_completed;
1: + u16 buf_index;
1: + u32 result;
1: + struct io_ring_ctx *ctx;
1: + unsigned int flags;
1: + refcount_t refs;
1: + struct task_struct *task;
1: + u64 user_data;
1: + struct list_head link_list;
1: + struct list_head inflight_entry;
1: + struct percpu_ref *fixed_file_refs;
1: + struct callback_head task_work;
1: + struct hlist_node hash_node;
1: + struct async_poll *apoll;
1: + struct io_wq_work work;
1: +};
1: +
1: +struct io_timeout_data {
1: + struct io_kiocb *req;
1: + struct hrtimer timer;
1: + struct timespec64 ts;
1: + enum hrtimer_mode mode;
1: +};
1: +
1: +struct io_async_connect {
1: + struct __kernel_sockaddr_storage address;
1: +};
1: +
1: +struct io_async_msghdr {
1: + struct iovec fast_iov[8];
1: + struct iovec *iov;
1: + struct sockaddr *uaddr;
1: + struct msghdr msg;
1: + struct __kernel_sockaddr_storage addr;
1: +};
1: +
1: +struct io_async_rw {
1: + struct iovec fast_iov[8];
1: + const struct iovec *free_iovec;
1: + struct iov_iter iter;
1: + size_t bytes_done;
1: + struct wait_page_queue wpq;
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE_BIT = 0,
1: + REQ_F_IO_DRAIN_BIT = 1,
1: + REQ_F_LINK_BIT = 2,
1: + REQ_F_HARDLINK_BIT = 3,
1: + REQ_F_FORCE_ASYNC_BIT = 4,
1: + REQ_F_BUFFER_SELECT_BIT = 5,
1: + REQ_F_LINK_HEAD_BIT = 6,
1: + REQ_F_FAIL_LINK_BIT = 7,
1: + REQ_F_INFLIGHT_BIT = 8,
1: + REQ_F_CUR_POS_BIT = 9,
1: + REQ_F_NOWAIT_BIT = 10,
1: + REQ_F_LINK_TIMEOUT_BIT = 11,
1: + REQ_F_ISREG_BIT = 12,
1: + REQ_F_NEED_CLEANUP_BIT = 13,
1: + REQ_F_POLLED_BIT = 14,
1: + REQ_F_BUFFER_SELECTED_BIT = 15,
1: + REQ_F_NO_FILE_TABLE_BIT = 16,
1: + REQ_F_WORK_INITIALIZED_BIT = 17,
1: + REQ_F_LTIMEOUT_ACTIVE_BIT = 18,
1: + __REQ_F_LAST_BIT = 19,
1: +};
1: +
1: +enum {
1: + REQ_F_FIXED_FILE = 1,
1: + REQ_F_IO_DRAIN = 2,
1: + REQ_F_LINK = 4,
1: + REQ_F_HARDLINK = 8,
1: + REQ_F_FORCE_ASYNC = 16,
1: + REQ_F_BUFFER_SELECT = 32,
1: + REQ_F_LINK_HEAD = 64,
1: + REQ_F_FAIL_LINK = 128,
1: + REQ_F_INFLIGHT = 256,
1: + REQ_F_CUR_POS = 512,
1: + REQ_F_NOWAIT = 1024,
1: + REQ_F_LINK_TIMEOUT = 2048,
1: + REQ_F_ISREG = 4096,
1: + REQ_F_NEED_CLEANUP = 8192,
1: + REQ_F_POLLED = 16384,
1: + REQ_F_BUFFER_SELECTED = 32768,
1: + REQ_F_NO_FILE_TABLE = 65536,
1: + REQ_F_WORK_INITIALIZED = 131072,
1: + REQ_F_LTIMEOUT_ACTIVE = 262144,
1: +};
1: +
1: +struct async_poll {
1: + struct io_poll_iocb poll;
1: + struct io_poll_iocb *double_poll;
1: +};
1: +
1: +struct io_defer_entry {
1: + struct list_head list;
1: + struct io_kiocb *req;
1: + u32 seq;
1: +};
1: +
1: +struct io_comp_state {
1: + unsigned int nr;
1: + struct list_head list;
1: + struct io_ring_ctx *ctx;
1: +};
1: +
1: +struct io_submit_state {
1: + struct blk_plug plug;
1: + void *reqs[8];
1: + unsigned int free_reqs;
1: + struct io_comp_state comp;
1: + struct file *file;
1: + unsigned int fd;
1: + unsigned int has_refs;
1: + unsigned int ios_left;
1: +};
1: +
1: +struct io_op_def {
1: + unsigned int needs_file: 1;
1: + unsigned int needs_file_no_error: 1;
1: + unsigned int hash_reg_file: 1;
1: + unsigned int unbound_nonreg_file: 1;
1: + unsigned int not_supported: 1;
1: + unsigned int pollin: 1;
1: + unsigned int pollout: 1;
1: + unsigned int buffer_select: 1;
1: + unsigned int needs_async_data: 1;
1: + short unsigned int async_size;
1: + unsigned int work_flags;
1: +};
1: +
1: +enum io_mem_account {
1: + ACCT_LOCKED = 0,
1: + ACCT_PINNED = 1,
1: +};
1: +
1: +struct req_batch {
1: + void *reqs[8];
1: + int to_free;
1: + struct task_struct *task;
1: + int task_refs;
1: +};
1: +
1: +struct io_poll_table {
1: + struct poll_table_struct pt;
1: + struct io_kiocb *req;
1: + int error;
1: +};
1: +
1: +enum sq_ret {
1: + SQT_IDLE = 1,
1: + SQT_SPIN = 2,
1: + SQT_DID_WORK = 4,
1: +};
1: +
1: +struct io_wait_queue {
1: + struct wait_queue_entry wq;
1: + struct io_ring_ctx *ctx;
1: + unsigned int to_wait;
1: + unsigned int nr_timeouts;
1: +};
1: +
1: +struct io_file_put {
1: + struct list_head list;
1: + struct file *file;
1: +};
1: +
1: +struct io_wq_work_list {
1: + struct io_wq_work_node *first;
1: + struct io_wq_work_node *last;
1: +};
1: +
1: +typedef bool work_cancel_fn(struct io_wq_work *, void *);
1: +
1: +enum {
1: + IO_WORKER_F_UP = 1,
1: + IO_WORKER_F_RUNNING = 2,
1: + IO_WORKER_F_FREE = 4,
1: + IO_WORKER_F_FIXED = 8,
1: + IO_WORKER_F_BOUND = 16,
1: +};
1: +
1: +enum {
1: + IO_WQ_BIT_EXIT = 0,
1: + IO_WQ_BIT_CANCEL = 1,
1: + IO_WQ_BIT_ERROR = 2,
1: +};
1: +
1: +enum {
1: + IO_WQE_FLAG_STALLED = 1,
1: +};
1: +
1: +struct io_wqe;
1: +
1: +struct io_worker {
1: + refcount_t ref;
1: + unsigned int flags;
1: + struct hlist_nulls_node nulls_node;
1: + struct list_head all_list;
1: + struct task_struct *task;
1: + struct io_wqe *wqe;
1: + struct io_wq_work *cur_work;
1: + spinlock_t lock;
1: + struct callback_head rcu;
1: + struct mm_struct *mm;
1: + struct cgroup_subsys_state *blkcg_css;
1: + const struct cred *cur_creds;
1: + const struct cred *saved_creds;
1: + struct files_struct *restore_files;
1: + struct nsproxy *restore_nsproxy;
1: + struct fs_struct *restore_fs;
1: +};
1: +
1: +struct io_wqe_acct {
1: + unsigned int nr_workers;
1: + unsigned int max_workers;
1: + atomic_t nr_running;
1: +};
1: +
1: +struct io_wq___2;
1: +
1: +struct io_wqe {
1: + struct {
1: + raw_spinlock_t lock;
1: + struct io_wq_work_list work_list;
1: + long unsigned int hash_map;
1: + unsigned int flags;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + };
1: + int node;
1: + struct io_wqe_acct acct[2];
1: + struct hlist_nulls_head free_list;
1: + struct list_head all_list;
1: + struct io_wq___2 *wq;
1: + struct io_wq_work *hash_tail[64];
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +enum {
1: + IO_WQ_ACCT_BOUND = 0,
1: + IO_WQ_ACCT_UNBOUND = 1,
1: +};
1: +
1: +struct io_wq___2 {
1: + struct io_wqe **wqes;
1: + long unsigned int state;
1: + free_work_fn *free_work;
1: + io_wq_work_fn *do_work;
1: + struct task_struct *manager;
1: + struct user_struct *user;
1: + refcount_t refs;
1: + struct completion done;
1: + struct hlist_node cpuhp_node;
1: + refcount_t use_refs;
1: +};
1: +
1: +struct io_cb_cancel_data {
1: + work_cancel_fn *fn;
1: + void *data;
1: + int nr_running;
1: + int nr_pending;
1: + bool cancel_all;
1: +};
1: +
1: +struct iomap_ops {
1: + int (*iomap_begin)(struct inode *, loff_t, loff_t, unsigned int, struct iomap___2 *, struct iomap___2 *);
1: + int (*iomap_end)(struct inode *, loff_t, loff_t, ssize_t, unsigned int, struct iomap___2 *);
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_fault_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_start;
1: + long unsigned int vm_end;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + long unsigned int max_pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_load_hole_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + struct page *zero_page;
1: + void *radix_entry;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pmd_insert_mapping_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long int length;
1: + u64 pfn_val;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_pte_fault_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + long unsigned int pgoff;
1: + dev_t dev;
1: + unsigned int flags;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_insert_mapping {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int vm_flags;
1: + long unsigned int address;
1: + void *radix_entry;
1: + dev_t dev;
1: + int write;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_writeback_range_class {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int start_index;
1: + long unsigned int end_index;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_dax_writeback_one {
1: + struct trace_entry ent;
1: + long unsigned int ino;
1: + long unsigned int pgoff;
1: + long unsigned int pglen;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_dax_pmd_fault_class {};
1: +
1: +struct trace_event_data_offsets_dax_pmd_load_hole_class {};
1: +
1: +struct trace_event_data_offsets_dax_pmd_insert_mapping_class {};
1: +
1: +struct trace_event_data_offsets_dax_pte_fault_class {};
1: +
1: +struct trace_event_data_offsets_dax_insert_mapping {};
1: +
1: +struct trace_event_data_offsets_dax_writeback_range_class {};
1: +
1: +struct trace_event_data_offsets_dax_writeback_one {};
1: +
1: +typedef void (*btf_trace_dax_pmd_fault)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_dax_pmd_fault_done)(void *, struct inode *, struct vm_fault *, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_dax_pmd_load_hole)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +
1: +typedef void (*btf_trace_dax_pmd_load_hole_fallback)(void *, struct inode *, struct vm_fault *, struct page *, void *);
1: +
1: +typedef void (*btf_trace_dax_pmd_insert_mapping)(void *, struct inode *, struct vm_fault *, long int, pfn_t, void *);
1: +
1: +typedef void (*btf_trace_dax_pte_fault)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_pte_fault_done)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_load_hole)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite_no_entry)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_pfn_mkwrite)(void *, struct inode *, struct vm_fault *, int);
1: +
1: +typedef void (*btf_trace_dax_insert_mapping)(void *, struct inode *, struct vm_fault *, void *);
1: +
1: +typedef void (*btf_trace_dax_writeback_range)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_dax_writeback_range_done)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_dax_writeback_one)(void *, struct inode *, long unsigned int, long unsigned int);
1: +
1: +struct exceptional_entry_key {
1: + struct xarray *xa;
1: + long unsigned int entry_start;
1: +};
1: +
1: +struct wait_exceptional_entry_queue {
1: + wait_queue_entry_t wait;
1: + struct exceptional_entry_key key;
1: +};
1: +
1: +struct crypto_skcipher;
1: +
1: +struct fscrypt_blk_crypto_key;
1: +
1: +struct fscrypt_prepared_key {
1: + struct crypto_skcipher *tfm;
1: + struct fscrypt_blk_crypto_key *blk_key;
1: +};
1: +
1: +struct fscrypt_mode;
1: +
1: +struct fscrypt_direct_key;
1: +
1: +struct fscrypt_info {
1: + struct fscrypt_prepared_key ci_enc_key;
1: + bool ci_owns_key;
1: + bool ci_inlinecrypt;
1: + struct fscrypt_mode *ci_mode;
1: + struct inode *ci_inode;
1: + struct key *ci_master_key;
1: + struct list_head ci_master_key_link;
1: + struct fscrypt_direct_key *ci_direct_key;
1: + siphash_key_t ci_dirhash_key;
1: + bool ci_dirhash_key_initialized;
1: + union fscrypt_policy ci_policy;
1: + u8 ci_nonce[16];
1: + u32 ci_hashed_ino;
1: +};
1: +
1: +struct crypto_async_request;
1: +
1: +typedef void (*crypto_completion_t)(struct crypto_async_request *, int);
1: +
1: +struct crypto_async_request {
1: + struct list_head list;
1: + crypto_completion_t complete;
1: + void *data;
1: + struct crypto_tfm *tfm;
1: + u32 flags;
1: +};
1: +
1: +struct crypto_wait {
1: + struct completion completion;
1: + int err;
1: +};
1: +
1: +struct skcipher_request {
1: + unsigned int cryptlen;
1: + u8 *iv;
1: + struct scatterlist *src;
1: + struct scatterlist *dst;
1: + struct crypto_async_request base;
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_skcipher {
1: + unsigned int reqsize;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct fscrypt_mode {
1: + const char *friendly_name;
1: + const char *cipher_str;
1: + int keysize;
1: + int ivsize;
1: + int logged_impl_name;
1: + enum blk_crypto_mode_num blk_crypto_mode;
1: +};
1: +
1: +typedef enum {
1: + FS_DECRYPT = 0,
1: + FS_ENCRYPT = 1,
1: +} fscrypt_direction_t;
1: +
1: +union fscrypt_iv {
1: + struct {
1: + __le64 lblk_num;
1: + u8 nonce[16];
1: + };
1: + u8 raw[32];
1: + __le64 dun[4];
1: +};
1: +
1: +struct fscrypt_str {
1: + unsigned char *name;
1: + u32 len;
1: +};
1: +
1: +struct fscrypt_name {
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + u32 hash;
1: + u32 minor_hash;
1: + struct fscrypt_str crypto_buf;
1: + bool is_nokey_name;
1: +};
1: +
1: +struct fscrypt_nokey_name {
1: + u32 dirhash[2];
1: + u8 bytes[149];
1: + u8 sha256[32];
1: +};
1: +
1: +struct fscrypt_hkdf {
1: + struct crypto_shash *hmac_tfm;
1: +};
1: +
1: +struct fscrypt_key_specifier {
1: + __u32 type;
1: + __u32 __reserved;
1: + union {
1: + __u8 __reserved[32];
1: + __u8 descriptor[8];
1: + __u8 identifier[16];
1: + } u;
1: +};
1: +
1: +struct fscrypt_symlink_data {
1: + __le16 len;
1: + char encrypted_path[1];
1: +} __attribute__((packed));
1: +
1: +struct fscrypt_master_key_secret {
1: + struct fscrypt_hkdf hkdf;
1: + u32 size;
1: + u8 raw[64];
1: +};
1: +
1: +struct fscrypt_master_key {
1: + struct fscrypt_master_key_secret mk_secret;
1: + struct rw_semaphore mk_secret_sem;
1: + struct fscrypt_key_specifier mk_spec;
1: + struct key *mk_users;
1: + refcount_t mk_refcount;
1: + struct list_head mk_decrypted_inodes;
1: + spinlock_t mk_decrypted_inodes_lock;
1: + struct fscrypt_prepared_key mk_direct_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_64_keys[10];
1: + struct fscrypt_prepared_key mk_iv_ino_lblk_32_keys[10];
1: + siphash_key_t mk_ino_hash_key;
1: + bool mk_ino_hash_key_initialized;
1: +};
1: +
1: +enum key_state {
1: + KEY_IS_UNINSTANTIATED = 0,
1: + KEY_IS_POSITIVE = 1,
1: +};
1: +
1: +struct fscrypt_provisioning_key_payload {
1: + __u32 type;
1: + __u32 __reserved;
1: + __u8 raw[0];
1: +};
1: +
1: +struct fscrypt_add_key_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 raw_size;
1: + __u32 key_id;
1: + __u32 __reserved[8];
1: + __u8 raw[0];
1: +};
1: +
1: +struct fscrypt_remove_key_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 removal_status_flags;
1: + __u32 __reserved[5];
1: +};
1: +
1: +struct fscrypt_get_key_status_arg {
1: + struct fscrypt_key_specifier key_spec;
1: + __u32 __reserved[6];
1: + __u32 status;
1: + __u32 status_flags;
1: + __u32 user_count;
1: + __u32 __out_reserved[13];
1: +};
1: +
1: +struct skcipher_alg {
1: + int (*setkey)(struct crypto_skcipher *, const u8 *, unsigned int);
1: + int (*encrypt)(struct skcipher_request *);
1: + int (*decrypt)(struct skcipher_request *);
1: + int (*init)(struct crypto_skcipher *);
1: + void (*exit)(struct crypto_skcipher *);
1: + unsigned int min_keysize;
1: + unsigned int max_keysize;
1: + unsigned int ivsize;
1: + unsigned int chunksize;
1: + unsigned int walksize;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct fscrypt_context_v1 {
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 master_key_descriptor[8];
1: + u8 nonce[16];
1: +};
1: +
1: +struct fscrypt_context_v2 {
1: + u8 version;
1: + u8 contents_encryption_mode;
1: + u8 filenames_encryption_mode;
1: + u8 flags;
1: + u8 __reserved[4];
1: + u8 master_key_identifier[16];
1: + u8 nonce[16];
1: +};
1: +
1: +union fscrypt_context {
1: + u8 version;
1: + struct fscrypt_context_v1 v1;
1: + struct fscrypt_context_v2 v2;
1: +};
1: +
1: +struct crypto_template;
1: +
1: +struct crypto_spawn;
1: +
1: +struct crypto_instance {
1: + struct crypto_alg alg;
1: + struct crypto_template *tmpl;
1: + union {
1: + struct hlist_node list;
1: + struct crypto_spawn *spawns;
1: + };
1: + void *__ctx[0];
1: +};
1: +
1: +struct crypto_spawn {
1: + struct list_head list;
1: + struct crypto_alg *alg;
1: + union {
1: + struct crypto_instance *inst;
1: + struct crypto_spawn *next;
1: + };
1: + const struct crypto_type *frontend;
1: + u32 mask;
1: + bool dead;
1: + bool registered;
1: +};
1: +
1: +struct rtattr;
1: +
1: +struct crypto_template {
1: + struct list_head list;
1: + struct hlist_head instances;
1: + struct module *module;
1: + int (*create)(struct crypto_template *, struct rtattr **);
1: + char name[128];
1: +};
1: +
1: +struct user_key_payload {
1: + struct callback_head rcu;
1: + short unsigned int datalen;
1: + long: 48;
1: + char data[0];
1: +};
1: +
1: +struct fscrypt_key {
1: + __u32 mode;
1: + __u8 raw[64];
1: + __u32 size;
1: +};
1: +
1: +struct fscrypt_direct_key {
1: + struct hlist_node dk_node;
1: + refcount_t dk_refcount;
1: + const struct fscrypt_mode *dk_mode;
1: + struct fscrypt_prepared_key dk_key;
1: + u8 dk_descriptor[8];
1: + u8 dk_raw[64];
1: +};
1: +
1: +struct fscrypt_get_policy_ex_arg {
1: + __u64 policy_size;
1: + union {
1: + __u8 version;
1: + struct fscrypt_policy_v1 v1;
1: + struct fscrypt_policy_v2 v2;
1: + } policy;
1: +};
1: +
1: +struct fscrypt_dummy_policy {
1: + const union fscrypt_policy *policy;
1: +};
1: +
1: +struct fscrypt_blk_crypto_key {
1: + struct blk_crypto_key base;
1: + int num_devs;
1: + struct request_queue *devs[0];
1: +};
1: +
1: +struct fsverity_hash_alg;
1: +
1: +struct merkle_tree_params {
1: + struct fsverity_hash_alg *hash_alg;
1: + const u8 *hashstate;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + unsigned int hashes_per_block;
1: + unsigned int log_blocksize;
1: + unsigned int log_arity;
1: + unsigned int num_levels;
1: + u64 tree_size;
1: + long unsigned int level0_blocks;
1: + u64 level_start[8];
1: +};
1: +
1: +struct fsverity_info {
1: + struct merkle_tree_params tree_params;
1: + u8 root_hash[64];
1: + u8 measurement[64];
1: + const struct inode *inode;
1: +};
1: +
1: +struct fsverity_enable_arg {
1: + __u32 version;
1: + __u32 hash_algorithm;
1: + __u32 block_size;
1: + __u32 salt_size;
1: + __u64 salt_ptr;
1: + __u32 sig_size;
1: + __u32 __reserved1;
1: + __u64 sig_ptr;
1: + __u64 __reserved2[11];
1: +};
1: +
1: +struct crypto_ahash;
1: +
1: +struct fsverity_hash_alg {
1: + struct crypto_ahash *tfm;
1: + const char *name;
1: + unsigned int digest_size;
1: + unsigned int block_size;
1: + mempool_t req_pool;
1: +};
1: +
1: +struct ahash_request;
1: +
1: +struct crypto_ahash {
1: + int (*init)(struct ahash_request *);
1: + int (*update)(struct ahash_request *);
1: + int (*final)(struct ahash_request *);
1: + int (*finup)(struct ahash_request *);
1: + int (*digest)(struct ahash_request *);
1: + int (*export)(struct ahash_request *, void *);
1: + int (*import)(struct ahash_request *, const void *);
1: + int (*setkey)(struct crypto_ahash *, const u8 *, unsigned int);
1: + unsigned int reqsize;
1: + struct crypto_tfm base;
1: +};
1: +
1: +struct fsverity_descriptor {
1: + __u8 version;
1: + __u8 hash_algorithm;
1: + __u8 log_blocksize;
1: + __u8 salt_size;
1: + __le32 sig_size;
1: + __le64 data_size;
1: + __u8 root_hash[64];
1: + __u8 salt[32];
1: + __u8 __reserved[144];
1: + __u8 signature[0];
1: +};
1: +
1: +struct ahash_request {
1: + struct crypto_async_request base;
1: + unsigned int nbytes;
1: + struct scatterlist *src;
1: + u8 *result;
1: + void *priv;
1: + void *__ctx[0];
1: +};
1: +
1: +struct hash_alg_common {
1: + unsigned int digestsize;
1: + unsigned int statesize;
1: + struct crypto_alg base;
1: +};
1: +
1: +struct fsverity_digest {
1: + __u16 digest_algorithm;
1: + __u16 digest_size;
1: + __u8 digest[0];
1: +};
1: +
1: +struct flock64 {
1: + short int l_type;
1: + short int l_whence;
1: + __kernel_loff_t l_start;
1: + __kernel_loff_t l_len;
1: + __kernel_pid_t l_pid;
1: +};
1: +
1: +struct trace_event_raw_locks_get_lock_context {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + unsigned char type;
1: + struct file_lock_context *ctx;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filelock_lock {
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_pid;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + loff_t fl_start;
1: + loff_t fl_end;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_filelock_lease {
1: + struct trace_entry ent;
1: + struct file_lock *fl;
1: + long unsigned int i_ino;
1: + dev_t s_dev;
1: + struct file_lock *fl_blocker;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + long unsigned int fl_break_time;
1: + long unsigned int fl_downgrade_time;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_generic_add_lease {
1: + struct trace_entry ent;
1: + long unsigned int i_ino;
1: + int wcount;
1: + int rcount;
1: + int icount;
1: + dev_t s_dev;
1: + fl_owner_t fl_owner;
1: + unsigned int fl_flags;
1: + unsigned char fl_type;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_leases_conflict {
1: + struct trace_entry ent;
1: + void *lease;
1: + void *breaker;
1: + unsigned int l_fl_flags;
1: + unsigned int b_fl_flags;
1: + unsigned char l_fl_type;
1: + unsigned char b_fl_type;
1: + bool conflict;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_locks_get_lock_context {};
1: +
1: +struct trace_event_data_offsets_filelock_lock {};
1: +
1: +struct trace_event_data_offsets_filelock_lease {};
1: +
1: +struct trace_event_data_offsets_generic_add_lease {};
1: +
1: +struct trace_event_data_offsets_leases_conflict {};
1: +
1: +typedef void (*btf_trace_locks_get_lock_context)(void *, struct inode *, int, struct file_lock_context *);
1: +
1: +typedef void (*btf_trace_posix_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_fcntl_setlk)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_locks_remove_posix)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_flock_lock_inode)(void *, struct inode *, struct file_lock *, int);
1: +
1: +typedef void (*btf_trace_break_lease_noblock)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_break_lease_block)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_break_lease_unblock)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_generic_delete_lease)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_time_out_leases)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_generic_add_lease)(void *, struct inode *, struct file_lock *);
1: +
1: +typedef void (*btf_trace_leases_conflict)(void *, bool, struct file_lock *, struct file_lock *);
1: +
1: +struct file_lock_list_struct {
1: + spinlock_t lock;
1: + struct hlist_head hlist;
1: +};
1: +
1: +struct locks_iterator {
1: + int li_cpu;
1: + loff_t li_pos;
1: +};
1: +
1: +typedef unsigned int __kernel_uid_t;
1: +
1: +typedef unsigned int __kernel_gid_t;
1: +
1: +struct elf_prpsinfo {
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + long unsigned int pr_flag;
1: + __kernel_uid_t pr_uid;
1: + __kernel_gid_t pr_gid;
1: + pid_t pr_pid;
1: + pid_t pr_ppid;
1: + pid_t pr_pgrp;
1: + pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: +};
1: +
1: +struct core_vma_metadata {
1: + long unsigned int start;
1: + long unsigned int end;
1: + long unsigned int flags;
1: + long unsigned int dump_size;
1: +};
1: +
1: +struct arch_elf_state {};
1: +
1: +struct memelfnote {
1: + const char *name;
1: + int type;
1: + unsigned int datasz;
1: + void *data;
1: +};
1: +
1: +struct elf_thread_core_info {
1: + struct elf_thread_core_info *next;
1: + struct task_struct *task;
1: + struct elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: +};
1: +
1: +struct elf_note_info {
1: + struct elf_thread_core_info *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: +};
1: +
1: +typedef elf_gregset_t32 compat_elf_gregset_t;
1: +
1: +typedef u32 __compat_uid_t;
1: +
1: +typedef u32 __compat_gid_t;
1: +
1: +struct compat_elf_siginfo {
1: + compat_int_t si_signo;
1: + compat_int_t si_code;
1: + compat_int_t si_errno;
1: +};
1: +
1: +struct compat_elf_prstatus {
1: + struct compat_elf_siginfo pr_info;
1: + short int pr_cursig;
1: + compat_ulong_t pr_sigpend;
1: + compat_ulong_t pr_sighold;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + struct old_timeval32 pr_utime;
1: + struct old_timeval32 pr_stime;
1: + struct old_timeval32 pr_cutime;
1: + struct old_timeval32 pr_cstime;
1: + compat_elf_gregset_t pr_reg;
1: + compat_int_t pr_fpvalid;
1: +};
1: +
1: +struct compat_elf_prpsinfo {
1: + char pr_state;
1: + char pr_sname;
1: + char pr_zomb;
1: + char pr_nice;
1: + compat_ulong_t pr_flag;
1: + __compat_uid_t pr_uid;
1: + __compat_gid_t pr_gid;
1: + compat_pid_t pr_pid;
1: + compat_pid_t pr_ppid;
1: + compat_pid_t pr_pgrp;
1: + compat_pid_t pr_sid;
1: + char pr_fname[16];
1: + char pr_psargs[80];
1: +};
1: +
1: +struct elf_thread_core_info___2 {
1: + struct elf_thread_core_info___2 *next;
1: + struct task_struct *task;
1: + struct compat_elf_prstatus prstatus;
1: + struct memelfnote notes[0];
1: +};
1: +
1: +struct elf_note_info___2 {
1: + struct elf_thread_core_info___2 *thread;
1: + struct memelfnote psinfo;
1: + struct memelfnote signote;
1: + struct memelfnote auxv;
1: + struct memelfnote files;
1: + compat_siginfo_t csigdata;
1: + size_t size;
1: + int thread_notes;
1: +};
1: +
1: +struct mb_cache_entry {
1: + struct list_head e_list;
1: + struct hlist_bl_node e_hash_list;
1: + atomic_t e_refcnt;
1: + u32 e_key;
1: + u32 e_referenced: 1;
1: + u32 e_reusable: 1;
1: + u64 e_value;
1: +};
1: +
1: +struct mb_cache {
1: + struct hlist_bl_head *c_hash;
1: + int c_bucket_bits;
1: + long unsigned int c_max_entries;
1: + spinlock_t c_list_lock;
1: + struct list_head c_list;
1: + long unsigned int c_entry_count;
1: + struct shrinker c_shrink;
1: + struct work_struct c_shrink_work;
1: +};
1: +
1: +struct posix_acl_xattr_entry {
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: +};
1: +
1: +struct posix_acl_xattr_header {
1: + __le32 a_version;
1: +};
1: +
1: +struct core_name {
1: + char *corename;
1: + int used;
1: + int size;
1: +};
1: +
1: +struct trace_event_raw_iomap_readpage_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + int nr_pages;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_range_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t size;
1: + long unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + u64 addr;
1: + loff_t offset;
1: + u64 length;
1: + u16 type;
1: + u16 flags;
1: + dev_t bdev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_iomap_apply {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + u64 ino;
1: + loff_t pos;
1: + loff_t length;
1: + unsigned int flags;
1: + const void *ops;
1: + void *actor;
1: + long unsigned int caller;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_iomap_readpage_class {};
1: +
1: +struct trace_event_data_offsets_iomap_range_class {};
1: +
1: +struct trace_event_data_offsets_iomap_class {};
1: +
1: +struct trace_event_data_offsets_iomap_apply {};
1: +
1: +typedef void (*btf_trace_iomap_readpage)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_iomap_readahead)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_iomap_writepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_releasepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_invalidatepage)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_dio_invalidate_fail)(void *, struct inode *, long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_iomap_apply_dstmap)(void *, struct inode *, struct iomap___2 *);
1: +
1: +typedef void (*btf_trace_iomap_apply_srcmap)(void *, struct inode *, struct iomap___2 *);
1: +
1: +typedef void (*btf_trace_iomap_apply)(void *, struct inode *, loff_t, loff_t, unsigned int, const void *, void *, long unsigned int);
1: +
1: +typedef loff_t (*iomap_actor_t)(struct inode *, loff_t, loff_t, void *, struct iomap___2 *, struct iomap___2 *);
1: +
1: +struct iomap_ioend {
1: + struct list_head io_list;
1: + u16 io_type;
1: + u16 io_flags;
1: + struct inode *io_inode;
1: + size_t io_size;
1: + loff_t io_offset;
1: + void *io_private;
1: + struct bio *io_bio;
1: + struct bio io_inline_bio;
1: +};
1: +
1: +struct iomap_writepage_ctx;
1: +
1: +struct iomap_writeback_ops {
1: + int (*map_blocks)(struct iomap_writepage_ctx *, struct inode *, loff_t);
1: + int (*prepare_ioend)(struct iomap_ioend *, int);
1: + void (*discard_page)(struct page *, loff_t);
1: +};
1: +
1: +struct iomap_writepage_ctx {
1: + struct iomap___2 iomap;
1: + struct iomap_ioend *ioend;
1: + const struct iomap_writeback_ops *ops;
1: +};
1: +
1: +struct iomap_page {
1: + atomic_t read_bytes_pending;
1: + atomic_t write_bytes_pending;
1: + spinlock_t uptodate_lock;
1: + long unsigned int uptodate[0];
1: +};
1: +
1: +struct iomap_readpage_ctx {
1: + struct page *cur_page;
1: + bool cur_page_in_bio;
1: + struct bio *bio;
1: + struct readahead_control *rac;
1: +};
1: +
1: +enum {
1: + IOMAP_WRITE_F_UNSHARE = 1,
1: +};
1: +
1: +struct iomap_dio_ops {
1: + int (*end_io)(struct kiocb *, ssize_t, int, unsigned int);
1: + blk_qc_t (*submit_io)(struct inode *, struct iomap___2 *, struct bio *, loff_t);
1: +};
1: +
1: +struct iomap_dio {
1: + struct kiocb *iocb;
1: + const struct iomap_dio_ops *dops;
1: + loff_t i_size;
1: + loff_t size;
1: + atomic_t ref;
1: + unsigned int flags;
1: + int error;
1: + bool wait_for_completion;
1: + union {
1: + struct {
1: + struct iov_iter *iter;
1: + struct task_struct *waiter;
1: + struct request_queue *last_queue;
1: + blk_qc_t cookie;
1: + } submit;
1: + struct {
1: + struct work_struct work;
1: + } aio;
1: + };
1: +};
1: +
1: +struct fiemap_ctx {
1: + struct fiemap_extent_info *fi;
1: + struct iomap___2 prev;
1: +};
1: +
1: +struct iomap_swapfile_info {
1: + struct iomap___2 iomap;
1: + struct swap_info_struct *sis;
1: + uint64_t lowest_ppage;
1: + uint64_t highest_ppage;
1: + long unsigned int nr_pages;
1: + int nr_extents;
1: +};
1: +
1: +enum {
1: + QIF_BLIMITS_B = 0,
1: + QIF_SPACE_B = 1,
1: + QIF_ILIMITS_B = 2,
1: + QIF_INODES_B = 3,
1: + QIF_BTIME_B = 4,
1: + QIF_ITIME_B = 5,
1: +};
1: +
1: +typedef __kernel_uid32_t qid_t;
1: +
1: +enum {
1: + DQF_INFO_DIRTY_B = 17,
1: +};
1: +
1: +struct dqstats {
1: + long unsigned int stat[8];
1: + struct percpu_counter counter[8];
1: +};
1: +
1: +enum {
1: + _DQUOT_USAGE_ENABLED = 0,
1: + _DQUOT_LIMITS_ENABLED = 1,
1: + _DQUOT_SUSPENDED = 2,
1: + _DQUOT_STATE_FLAGS = 3,
1: +};
1: +
1: +struct quota_module_name {
1: + int qm_fmt_id;
1: + char *qm_mod_name;
1: +};
1: +
1: +struct dquot_warn {
1: + struct super_block *w_sb;
1: + struct kqid w_dq_id;
1: + short int w_type;
1: +};
1: +
1: +struct fs_disk_quota {
1: + __s8 d_version;
1: + __s8 d_flags;
1: + __u16 d_fieldmask;
1: + __u32 d_id;
1: + __u64 d_blk_hardlimit;
1: + __u64 d_blk_softlimit;
1: + __u64 d_ino_hardlimit;
1: + __u64 d_ino_softlimit;
1: + __u64 d_bcount;
1: + __u64 d_icount;
1: + __s32 d_itimer;
1: + __s32 d_btimer;
1: + __u16 d_iwarns;
1: + __u16 d_bwarns;
1: + __s8 d_itimer_hi;
1: + __s8 d_btimer_hi;
1: + __s8 d_rtbtimer_hi;
1: + __s8 d_padding2;
1: + __u64 d_rtb_hardlimit;
1: + __u64 d_rtb_softlimit;
1: + __u64 d_rtbcount;
1: + __s32 d_rtbtimer;
1: + __u16 d_rtbwarns;
1: + __s16 d_padding3;
1: + char d_padding4[8];
1: +};
1: +
1: +struct fs_qfilestat {
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: +};
1: +
1: +typedef struct fs_qfilestat fs_qfilestat_t;
1: +
1: +struct fs_quota_stat {
1: + __s8 qs_version;
1: + __u16 qs_flags;
1: + __s8 qs_pad;
1: + fs_qfilestat_t qs_uquota;
1: + fs_qfilestat_t qs_gquota;
1: + __u32 qs_incoredqs;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: +};
1: +
1: +struct fs_qfilestatv {
1: + __u64 qfs_ino;
1: + __u64 qfs_nblks;
1: + __u32 qfs_nextents;
1: + __u32 qfs_pad;
1: +};
1: +
1: +struct fs_quota_statv {
1: + __s8 qs_version;
1: + __u8 qs_pad1;
1: + __u16 qs_flags;
1: + __u32 qs_incoredqs;
1: + struct fs_qfilestatv qs_uquota;
1: + struct fs_qfilestatv qs_gquota;
1: + struct fs_qfilestatv qs_pquota;
1: + __s32 qs_btimelimit;
1: + __s32 qs_itimelimit;
1: + __s32 qs_rtbtimelimit;
1: + __u16 qs_bwarnlimit;
1: + __u16 qs_iwarnlimit;
1: + __u64 qs_pad2[8];
1: +};
1: +
1: +struct if_dqblk {
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: +};
1: +
1: +struct if_nextdqblk {
1: + __u64 dqb_bhardlimit;
1: + __u64 dqb_bsoftlimit;
1: + __u64 dqb_curspace;
1: + __u64 dqb_ihardlimit;
1: + __u64 dqb_isoftlimit;
1: + __u64 dqb_curinodes;
1: + __u64 dqb_btime;
1: + __u64 dqb_itime;
1: + __u32 dqb_valid;
1: + __u32 dqb_id;
1: +};
1: +
1: +struct if_dqinfo {
1: + __u64 dqi_bgrace;
1: + __u64 dqi_igrace;
1: + __u32 dqi_flags;
1: + __u32 dqi_valid;
1: +};
1: +
1: +typedef u64 compat_u64;
1: +
1: +struct compat_if_dqblk {
1: + compat_u64 dqb_bhardlimit;
1: + compat_u64 dqb_bsoftlimit;
1: + compat_u64 dqb_curspace;
1: + compat_u64 dqb_ihardlimit;
1: + compat_u64 dqb_isoftlimit;
1: + compat_u64 dqb_curinodes;
1: + compat_u64 dqb_btime;
1: + compat_u64 dqb_itime;
1: + compat_uint_t dqb_valid;
1: +};
1: +
1: +enum {
1: + QUOTA_NL_C_UNSPEC = 0,
1: + QUOTA_NL_C_WARNING = 1,
1: + __QUOTA_NL_C_MAX = 2,
1: +};
1: +
1: +enum {
1: + QUOTA_NL_A_UNSPEC = 0,
1: + QUOTA_NL_A_QTYPE = 1,
1: + QUOTA_NL_A_EXCESS_ID = 2,
1: + QUOTA_NL_A_WARNING = 3,
1: + QUOTA_NL_A_DEV_MAJOR = 4,
1: + QUOTA_NL_A_DEV_MINOR = 5,
1: + QUOTA_NL_A_CAUSED_ID = 6,
1: + QUOTA_NL_A_PAD = 7,
1: + __QUOTA_NL_A_MAX = 8,
1: +};
1: +
1: +struct proc_maps_private {
1: + struct inode *inode;
1: + struct task_struct *task;
1: + struct mm_struct *mm;
1: + struct vm_area_struct *tail_vma;
1: + struct mempolicy *task_mempolicy;
1: +};
1: +
1: +struct mem_size_stats {
1: + long unsigned int resident;
1: + long unsigned int shared_clean;
1: + long unsigned int shared_dirty;
1: + long unsigned int private_clean;
1: + long unsigned int private_dirty;
1: + long unsigned int referenced;
1: + long unsigned int anonymous;
1: + long unsigned int lazyfree;
1: + long unsigned int anonymous_thp;
1: + long unsigned int shmem_thp;
1: + long unsigned int file_thp;
1: + long unsigned int swap;
1: + long unsigned int shared_hugetlb;
1: + long unsigned int private_hugetlb;
1: + u64 pss;
1: + u64 pss_anon;
1: + u64 pss_file;
1: + u64 pss_shmem;
1: + u64 pss_locked;
1: + u64 swap_pss;
1: + bool check_shmem_swap;
1: +};
1: +
1: +enum clear_refs_types {
1: + CLEAR_REFS_ALL = 1,
1: + CLEAR_REFS_ANON = 2,
1: + CLEAR_REFS_MAPPED = 3,
1: + CLEAR_REFS_SOFT_DIRTY = 4,
1: + CLEAR_REFS_MM_HIWATER_RSS = 5,
1: + CLEAR_REFS_LAST = 6,
1: +};
1: +
1: +struct clear_refs_private {
1: + enum clear_refs_types type;
1: +};
1: +
1: +typedef struct {
1: + u64 pme;
1: +} pagemap_entry_t;
1: +
1: +struct pagemapread {
1: + int pos;
1: + int len;
1: + pagemap_entry_t *buffer;
1: + bool show_pfn;
1: +};
1: +
1: +struct numa_maps {
1: + long unsigned int pages;
1: + long unsigned int anon;
1: + long unsigned int active;
1: + long unsigned int writeback;
1: + long unsigned int mapcount_max;
1: + long unsigned int dirty;
1: + long unsigned int swapcache;
1: + long unsigned int node[256];
1: +};
1: +
1: +struct numa_maps_private {
1: + struct proc_maps_private proc_maps;
1: + struct numa_maps md;
1: +};
1: +
1: +struct pde_opener {
1: + struct list_head lh;
1: + struct file *file;
1: + bool closing;
1: + struct completion *c;
1: +};
1: +
1: +enum {
1: + BIAS = 2147483648,
1: +};
1: +
1: +struct proc_fs_context {
1: + struct pid_namespace *pid_ns;
1: + unsigned int mask;
1: + enum proc_hidepid hidepid;
1: + int gid;
1: + enum proc_pidonly pidonly;
1: +};
1: +
1: +enum proc_param {
1: + Opt_gid___2 = 0,
1: + Opt_hidepid = 1,
1: + Opt_subset = 2,
1: +};
1: +
1: +struct genradix_root;
1: +
1: +struct __genradix {
1: + struct genradix_root *root;
1: +};
1: +
1: +struct syscall_info {
1: + __u64 sp;
1: + struct seccomp_data data;
1: +};
1: +
1: +typedef struct dentry *instantiate_t(struct dentry *, struct task_struct *, const void *);
1: +
1: +struct pid_entry {
1: + const char *name;
1: + unsigned int len;
1: + umode_t mode;
1: + const struct inode_operations *iop;
1: + const struct file_operations *fop;
1: + union proc_op op;
1: +};
1: +
1: +struct limit_names {
1: + const char *name;
1: + const char *unit;
1: +};
1: +
1: +struct map_files_info {
1: + long unsigned int start;
1: + long unsigned int end;
1: + fmode_t mode;
1: +};
1: +
1: +struct timers_private {
1: + struct pid *pid;
1: + struct task_struct *task;
1: + struct sighand_struct *sighand;
1: + struct pid_namespace *ns;
1: + long unsigned int flags;
1: +};
1: +
1: +struct tgid_iter {
1: + unsigned int tgid;
1: + struct task_struct *task;
1: +};
1: +
1: +struct fd_data {
1: + fmode_t mode;
1: + unsigned int fd;
1: +};
1: +
1: +struct sysctl_alias {
1: + const char *kernel_param;
1: + const char *sysctl_param;
1: +};
1: +
1: +struct seq_net_private {
1: + struct net *net;
1: +};
1: +
1: +struct bpf_iter_aux_info___2;
1: +
1: +enum kcore_type {
1: + KCORE_TEXT = 0,
1: + KCORE_VMALLOC = 1,
1: + KCORE_RAM = 2,
1: + KCORE_VMEMMAP = 3,
1: + KCORE_USER = 4,
1: + KCORE_OTHER = 5,
1: + KCORE_REMAP = 6,
1: +};
1: +
1: +struct kcore_list {
1: + struct list_head list;
1: + long unsigned int addr;
1: + long unsigned int vaddr;
1: + size_t size;
1: + int type;
1: +};
1: +
1: +struct kernfs_iattrs {
1: + kuid_t ia_uid;
1: + kgid_t ia_gid;
1: + struct timespec64 ia_atime;
1: + struct timespec64 ia_mtime;
1: + struct timespec64 ia_ctime;
1: + struct simple_xattrs xattrs;
1: + atomic_t nr_user_xattrs;
1: + atomic_t user_xattr_size;
1: +};
1: +
1: +struct kernfs_super_info {
1: + struct super_block *sb;
1: + struct kernfs_root *root;
1: + const void *ns;
1: + struct list_head node;
1: +};
1: +
1: +enum kernfs_node_flag {
1: + KERNFS_ACTIVATED = 16,
1: + KERNFS_NS = 32,
1: + KERNFS_HAS_SEQ_SHOW = 64,
1: + KERNFS_HAS_MMAP = 128,
1: + KERNFS_LOCKDEP = 256,
1: + KERNFS_SUICIDAL = 1024,
1: + KERNFS_SUICIDED = 2048,
1: + KERNFS_EMPTY_DIR = 4096,
1: + KERNFS_HAS_RELEASE = 8192,
1: +};
1: +
1: +struct kernfs_open_node {
1: + atomic_t refcnt;
1: + atomic_t event;
1: + wait_queue_head_t poll;
1: + struct list_head files;
1: +};
1: +
1: +struct config_group;
1: +
1: +struct config_item_type;
1: +
1: +struct config_item {
1: + char *ci_name;
1: + char ci_namebuf[20];
1: + struct kref ci_kref;
1: + struct list_head ci_entry;
1: + struct config_item *ci_parent;
1: + struct config_group *ci_group;
1: + const struct config_item_type *ci_type;
1: + struct dentry *ci_dentry;
1: +};
1: +
1: +struct configfs_subsystem;
1: +
1: +struct config_group {
1: + struct config_item cg_item;
1: + struct list_head cg_children;
1: + struct configfs_subsystem *cg_subsys;
1: + struct list_head default_groups;
1: + struct list_head group_entry;
1: +};
1: +
1: +struct configfs_item_operations;
1: +
1: +struct configfs_group_operations;
1: +
1: +struct configfs_attribute;
1: +
1: +struct configfs_bin_attribute;
1: +
1: +struct config_item_type {
1: + struct module *ct_owner;
1: + struct configfs_item_operations *ct_item_ops;
1: + struct configfs_group_operations *ct_group_ops;
1: + struct configfs_attribute **ct_attrs;
1: + struct configfs_bin_attribute **ct_bin_attrs;
1: +};
1: +
1: +struct configfs_item_operations {
1: + void (*release)(struct config_item *);
1: + int (*allow_link)(struct config_item *, struct config_item *);
1: + void (*drop_link)(struct config_item *, struct config_item *);
1: +};
1: +
1: +struct configfs_group_operations {
1: + struct config_item * (*make_item)(struct config_group *, const char *);
1: + struct config_group * (*make_group)(struct config_group *, const char *);
1: + int (*commit_item)(struct config_item *);
1: + void (*disconnect_notify)(struct config_group *, struct config_item *);
1: + void (*drop_item)(struct config_group *, struct config_item *);
1: +};
1: +
1: +struct configfs_attribute {
1: + const char *ca_name;
1: + struct module *ca_owner;
1: + umode_t ca_mode;
1: + ssize_t (*show)(struct config_item *, char *);
1: + ssize_t (*store)(struct config_item *, const char *, size_t);
1: +};
1: +
1: +struct configfs_bin_attribute {
1: + struct configfs_attribute cb_attr;
1: + void *cb_private;
1: + size_t cb_max_size;
1: + ssize_t (*read)(struct config_item *, void *, size_t);
1: + ssize_t (*write)(struct config_item *, const void *, size_t);
1: +};
1: +
1: +struct configfs_subsystem {
1: + struct config_group su_group;
1: + struct mutex su_mutex;
1: +};
1: +
1: +struct configfs_fragment {
1: + atomic_t frag_count;
1: + struct rw_semaphore frag_sem;
1: + bool frag_dead;
1: +};
1: +
1: +struct configfs_dirent {
1: + atomic_t s_count;
1: + int s_dependent_count;
1: + struct list_head s_sibling;
1: + struct list_head s_children;
1: + int s_links;
1: + void *s_element;
1: + int s_type;
1: + umode_t s_mode;
1: + struct dentry *s_dentry;
1: + struct iattr *s_iattr;
1: + struct configfs_fragment *s_frag;
1: +};
1: +
1: +struct configfs_buffer {
1: + size_t count;
1: + loff_t pos;
1: + char *page;
1: + struct configfs_item_operations *ops;
1: + struct mutex mutex;
1: + int needs_read_fill;
1: + bool read_in_progress;
1: + bool write_in_progress;
1: + char *bin_buffer;
1: + int bin_buffer_size;
1: + int cb_max_size;
1: + struct config_item *item;
1: + struct module *owner;
1: + union {
1: + struct configfs_attribute *attr;
1: + struct configfs_bin_attribute *bin_attr;
1: + };
1: +};
1: +
1: +struct pts_mount_opts {
1: + int setuid;
1: + int setgid;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: + umode_t ptmxmode;
1: + int reserve;
1: + int max;
1: +};
1: +
1: +enum {
1: + Opt_uid___2 = 0,
1: + Opt_gid___3 = 1,
1: + Opt_mode___2 = 2,
1: + Opt_ptmxmode = 3,
1: + Opt_newinstance = 4,
1: + Opt_max = 5,
1: + Opt_err = 6,
1: +};
1: +
1: +struct pts_fs_info {
1: + struct ida allocated_ptys;
1: + struct pts_mount_opts mount_opts;
1: + struct super_block *sb;
1: + struct dentry *ptmx_dentry;
1: +};
1: +
1: +struct dcookie_struct {
1: + struct path path;
1: + struct list_head hash_list;
1: +};
1: +
1: +struct dcookie_user {
1: + struct list_head next;
1: +};
1: +
1: +typedef unsigned int tid_t;
1: +
1: +struct transaction_chp_stats_s {
1: + long unsigned int cs_chp_time;
1: + __u32 cs_forced_to_close;
1: + __u32 cs_written;
1: + __u32 cs_dropped;
1: +};
1: +
1: +struct journal_s;
1: +
1: +typedef struct journal_s journal_t;
1: +
1: +struct journal_head;
1: +
1: +struct transaction_s;
1: +
1: +typedef struct transaction_s transaction_t;
1: +
1: +struct transaction_s {
1: + journal_t *t_journal;
1: + tid_t t_tid;
1: + enum {
1: + T_RUNNING = 0,
1: + T_LOCKED = 1,
1: + T_SWITCH = 2,
1: + T_FLUSH = 3,
1: + T_COMMIT = 4,
1: + T_COMMIT_DFLUSH = 5,
1: + T_COMMIT_JFLUSH = 6,
1: + T_COMMIT_CALLBACK = 7,
1: + T_FINISHED = 8,
1: + } t_state;
1: + long unsigned int t_log_start;
1: + int t_nr_buffers;
1: + struct journal_head *t_reserved_list;
1: + struct journal_head *t_buffers;
1: + struct journal_head *t_forget;
1: + struct journal_head *t_checkpoint_list;
1: + struct journal_head *t_checkpoint_io_list;
1: + struct journal_head *t_shadow_list;
1: + struct list_head t_inode_list;
1: + spinlock_t t_handle_lock;
1: + long unsigned int t_max_wait;
1: + long unsigned int t_start;
1: + long unsigned int t_requested;
1: + struct transaction_chp_stats_s t_chp_stats;
1: + atomic_t t_updates;
1: + atomic_t t_outstanding_credits;
1: + atomic_t t_outstanding_revokes;
1: + atomic_t t_handle_count;
1: + transaction_t *t_cpnext;
1: + transaction_t *t_cpprev;
1: + long unsigned int t_expires;
1: + ktime_t t_start_time;
1: + unsigned int t_synchronous_commit: 1;
1: + int t_need_data_flush;
1: + struct list_head t_private_list;
1: +};
1: +
1: +struct jbd2_buffer_trigger_type;
1: +
1: +struct journal_head {
1: + struct buffer_head *b_bh;
1: + spinlock_t b_state_lock;
1: + int b_jcount;
1: + unsigned int b_jlist;
1: + unsigned int b_modified;
1: + char *b_frozen_data;
1: + char *b_committed_data;
1: + transaction_t *b_transaction;
1: + transaction_t *b_next_transaction;
1: + struct journal_head *b_tnext;
1: + struct journal_head *b_tprev;
1: + transaction_t *b_cp_transaction;
1: + struct journal_head *b_cpnext;
1: + struct journal_head *b_cpprev;
1: + struct jbd2_buffer_trigger_type *b_triggers;
1: + struct jbd2_buffer_trigger_type *b_frozen_triggers;
1: +};
1: +
1: +struct jbd2_buffer_trigger_type {
1: + void (*t_frozen)(struct jbd2_buffer_trigger_type *, struct buffer_head *, void *, size_t);
1: + void (*t_abort)(struct jbd2_buffer_trigger_type *, struct buffer_head *);
1: +};
1: +
1: +struct jbd2_journal_handle;
1: +
1: +typedef struct jbd2_journal_handle handle_t;
1: +
1: +struct jbd2_journal_handle {
1: + union {
1: + transaction_t *h_transaction;
1: + journal_t *h_journal;
1: + };
1: + handle_t *h_rsv_handle;
1: + int h_total_credits;
1: + int h_revoke_credits;
1: + int h_revoke_credits_requested;
1: + int h_ref;
1: + int h_err;
1: + unsigned int h_sync: 1;
1: + unsigned int h_jdata: 1;
1: + unsigned int h_reserved: 1;
1: + unsigned int h_aborted: 1;
1: + unsigned int h_type: 8;
1: + unsigned int h_line_no: 16;
1: + long unsigned int h_start_jiffies;
1: + unsigned int h_requested_credits;
1: + unsigned int saved_alloc_context;
1: +};
1: +
1: +struct transaction_run_stats_s {
1: + long unsigned int rs_wait;
1: + long unsigned int rs_request_delay;
1: + long unsigned int rs_running;
1: + long unsigned int rs_locked;
1: + long unsigned int rs_flushing;
1: + long unsigned int rs_logging;
1: + __u32 rs_handle_count;
1: + __u32 rs_blocks;
1: + __u32 rs_blocks_logged;
1: +};
1: +
1: +struct transaction_stats_s {
1: + long unsigned int ts_tid;
1: + long unsigned int ts_requested;
1: + struct transaction_run_stats_s run;
1: +};
1: +
1: +enum passtype {
1: + PASS_SCAN = 0,
1: + PASS_REVOKE = 1,
1: + PASS_REPLAY = 2,
1: +};
1: +
1: +struct journal_superblock_s;
1: +
1: +typedef struct journal_superblock_s journal_superblock_t;
1: +
1: +struct jbd2_revoke_table_s;
1: +
1: +struct jbd2_inode;
1: +
1: +struct journal_s {
1: + long unsigned int j_flags;
1: + int j_errno;
1: + struct mutex j_abort_mutex;
1: + struct buffer_head *j_sb_buffer;
1: + journal_superblock_t *j_superblock;
1: + int j_format_version;
1: + rwlock_t j_state_lock;
1: + int j_barrier_count;
1: + struct mutex j_barrier;
1: + transaction_t *j_running_transaction;
1: + transaction_t *j_committing_transaction;
1: + transaction_t *j_checkpoint_transactions;
1: + wait_queue_head_t j_wait_transaction_locked;
1: + wait_queue_head_t j_wait_done_commit;
1: + wait_queue_head_t j_wait_commit;
1: + wait_queue_head_t j_wait_updates;
1: + wait_queue_head_t j_wait_reserved;
1: + wait_queue_head_t j_fc_wait;
1: + struct mutex j_checkpoint_mutex;
1: + struct buffer_head *j_chkpt_bhs[64];
1: + long unsigned int j_head;
1: + long unsigned int j_tail;
1: + long unsigned int j_free;
1: + long unsigned int j_first;
1: + long unsigned int j_last;
1: + long unsigned int j_fc_first;
1: + long unsigned int j_fc_off;
1: + long unsigned int j_fc_last;
1: + struct block_device *j_dev;
1: + int j_blocksize;
1: + long long unsigned int j_blk_offset;
1: + char j_devname[56];
1: + struct block_device *j_fs_dev;
1: + unsigned int j_total_len;
1: + atomic_t j_reserved_credits;
1: + spinlock_t j_list_lock;
1: + struct inode *j_inode;
1: + tid_t j_tail_sequence;
1: + tid_t j_transaction_sequence;
1: + tid_t j_commit_sequence;
1: + tid_t j_commit_request;
1: + __u8 j_uuid[16];
1: + struct task_struct *j_task;
1: + int j_max_transaction_buffers;
1: + int j_revoke_records_per_block;
1: + long unsigned int j_commit_interval;
1: + struct timer_list j_commit_timer;
1: + spinlock_t j_revoke_lock;
1: + struct jbd2_revoke_table_s *j_revoke;
1: + struct jbd2_revoke_table_s *j_revoke_table[2];
1: + struct buffer_head **j_wbuf;
1: + struct buffer_head **j_fc_wbuf;
1: + int j_wbufsize;
1: + int j_fc_wbufsize;
1: + pid_t j_last_sync_writer;
1: + u64 j_average_commit_time;
1: + u32 j_min_batch_time;
1: + u32 j_max_batch_time;
1: + void (*j_commit_callback)(journal_t *, transaction_t *);
1: + int (*j_submit_inode_data_buffers)(struct jbd2_inode *);
1: + int (*j_finish_inode_data_buffers)(struct jbd2_inode *);
1: + spinlock_t j_history_lock;
1: + struct proc_dir_entry *j_proc_entry;
1: + struct transaction_stats_s j_stats;
1: + unsigned int j_failed_commit;
1: + void *j_private;
1: + struct crypto_shash *j_chksum_driver;
1: + __u32 j_csum_seed;
1: + void (*j_fc_cleanup_callback)(struct journal_s *, int);
1: + int (*j_fc_replay_callback)(struct journal_s *, struct buffer_head *, enum passtype, int, tid_t);
1: +};
1: +
1: +struct journal_header_s {
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: +};
1: +
1: +typedef struct journal_header_s journal_header_t;
1: +
1: +struct journal_superblock_s {
1: + journal_header_t s_header;
1: + __be32 s_blocksize;
1: + __be32 s_maxlen;
1: + __be32 s_first;
1: + __be32 s_sequence;
1: + __be32 s_start;
1: + __be32 s_errno;
1: + __be32 s_feature_compat;
1: + __be32 s_feature_incompat;
1: + __be32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + __be32 s_nr_users;
1: + __be32 s_dynsuper;
1: + __be32 s_max_transaction;
1: + __be32 s_max_trans_data;
1: + __u8 s_checksum_type;
1: + __u8 s_padding2[3];
1: + __be32 s_num_fc_blks;
1: + __u32 s_padding[41];
1: + __be32 s_checksum;
1: + __u8 s_users[768];
1: +};
1: +
1: +enum jbd_state_bits {
1: + BH_JBD = 16,
1: + BH_JWrite = 17,
1: + BH_Freed = 18,
1: + BH_Revoked = 19,
1: + BH_RevokeValid = 20,
1: + BH_JBDDirty = 21,
1: + BH_JournalHead = 22,
1: + BH_Shadow = 23,
1: + BH_Verified = 24,
1: + BH_JBDPrivateStart = 25,
1: +};
1: +
1: +struct jbd2_inode {
1: + transaction_t *i_transaction;
1: + transaction_t *i_next_transaction;
1: + struct list_head i_list;
1: + struct inode *i_vfs_inode;
1: + long unsigned int i_flags;
1: + loff_t i_dirty_start;
1: + loff_t i_dirty_end;
1: +};
1: +
1: +struct bgl_lock {
1: + spinlock_t lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct blockgroup_lock {
1: + struct bgl_lock locks[128];
1: +};
1: +
1: +typedef int ext4_grpblk_t;
1: +
1: +typedef long long unsigned int ext4_fsblk_t;
1: +
1: +typedef __u32 ext4_lblk_t;
1: +
1: +typedef unsigned int ext4_group_t;
1: +
1: +struct ext4_allocation_request {
1: + struct inode *inode;
1: + unsigned int len;
1: + ext4_lblk_t logical;
1: + ext4_lblk_t lleft;
1: + ext4_lblk_t lright;
1: + ext4_fsblk_t goal;
1: + ext4_fsblk_t pleft;
1: + ext4_fsblk_t pright;
1: + unsigned int flags;
1: +};
1: +
1: +struct ext4_system_blocks {
1: + struct rb_root root;
1: + struct callback_head rcu;
1: +};
1: +
1: +struct ext4_group_desc {
1: + __le32 bg_block_bitmap_lo;
1: + __le32 bg_inode_bitmap_lo;
1: + __le32 bg_inode_table_lo;
1: + __le16 bg_free_blocks_count_lo;
1: + __le16 bg_free_inodes_count_lo;
1: + __le16 bg_used_dirs_count_lo;
1: + __le16 bg_flags;
1: + __le32 bg_exclude_bitmap_lo;
1: + __le16 bg_block_bitmap_csum_lo;
1: + __le16 bg_inode_bitmap_csum_lo;
1: + __le16 bg_itable_unused_lo;
1: + __le16 bg_checksum;
1: + __le32 bg_block_bitmap_hi;
1: + __le32 bg_inode_bitmap_hi;
1: + __le32 bg_inode_table_hi;
1: + __le16 bg_free_blocks_count_hi;
1: + __le16 bg_free_inodes_count_hi;
1: + __le16 bg_used_dirs_count_hi;
1: + __le16 bg_itable_unused_hi;
1: + __le32 bg_exclude_bitmap_hi;
1: + __le16 bg_block_bitmap_csum_hi;
1: + __le16 bg_inode_bitmap_csum_hi;
1: + __u32 bg_reserved;
1: +};
1: +
1: +struct flex_groups {
1: + atomic64_t free_clusters;
1: + atomic_t free_inodes;
1: + atomic_t used_dirs;
1: +};
1: +
1: +struct extent_status {
1: + struct rb_node rb_node;
1: + ext4_lblk_t es_lblk;
1: + ext4_lblk_t es_len;
1: + ext4_fsblk_t es_pblk;
1: +};
1: +
1: +struct ext4_es_tree {
1: + struct rb_root root;
1: + struct extent_status *cache_es;
1: +};
1: +
1: +struct ext4_es_stats {
1: + long unsigned int es_stats_shrunk;
1: + struct percpu_counter es_stats_cache_hits;
1: + struct percpu_counter es_stats_cache_misses;
1: + u64 es_stats_scan_time;
1: + u64 es_stats_max_scan_time;
1: + struct percpu_counter es_stats_all_cnt;
1: + struct percpu_counter es_stats_shk_cnt;
1: +};
1: +
1: +struct ext4_pending_tree {
1: + struct rb_root root;
1: +};
1: +
1: +struct ext4_fc_stats {
1: + unsigned int fc_ineligible_reason_count[10];
1: + long unsigned int fc_num_commits;
1: + long unsigned int fc_ineligible_commits;
1: + long unsigned int fc_numblks;
1: +};
1: +
1: +struct ext4_fc_alloc_region {
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + int ino;
1: + int len;
1: +};
1: +
1: +struct ext4_fc_replay_state {
1: + int fc_replay_num_tags;
1: + int fc_replay_expected_off;
1: + int fc_current_pass;
1: + int fc_cur_tag;
1: + int fc_crc;
1: + struct ext4_fc_alloc_region *fc_regions;
1: + int fc_regions_size;
1: + int fc_regions_used;
1: + int fc_regions_valid;
1: + int *fc_modified_inodes;
1: + int fc_modified_inodes_used;
1: + int fc_modified_inodes_size;
1: +};
1: +
1: +struct ext4_inode_info {
1: + __le32 i_data[15];
1: + __u32 i_dtime;
1: + ext4_fsblk_t i_file_acl;
1: + ext4_group_t i_block_group;
1: + ext4_lblk_t i_dir_start_lookup;
1: + long unsigned int i_flags;
1: + struct rw_semaphore xattr_sem;
1: + struct list_head i_orphan;
1: + struct list_head i_fc_list;
1: + ext4_lblk_t i_fc_lblk_start;
1: + ext4_lblk_t i_fc_lblk_len;
1: + atomic_t i_fc_updates;
1: + wait_queue_head_t i_fc_wait;
1: + struct mutex i_fc_lock;
1: + loff_t i_disksize;
1: + struct rw_semaphore i_data_sem;
1: + struct rw_semaphore i_mmap_sem;
1: + struct inode vfs_inode;
1: + struct jbd2_inode *jinode;
1: + spinlock_t i_raw_lock;
1: + struct timespec64 i_crtime;
1: + atomic_t i_prealloc_active;
1: + struct list_head i_prealloc_list;
1: + spinlock_t i_prealloc_lock;
1: + struct ext4_es_tree i_es_tree;
1: + rwlock_t i_es_lock;
1: + struct list_head i_es_list;
1: + unsigned int i_es_all_nr;
1: + unsigned int i_es_shk_nr;
1: + ext4_lblk_t i_es_shrink_lblk;
1: + ext4_group_t i_last_alloc_group;
1: + unsigned int i_reserved_data_blocks;
1: + struct ext4_pending_tree i_pending_tree;
1: + __u16 i_extra_isize;
1: + u16 i_inline_off;
1: + u16 i_inline_size;
1: + qsize_t i_reserved_quota;
1: + spinlock_t i_completed_io_lock;
1: + struct list_head i_rsv_conversion_list;
1: + struct work_struct i_rsv_conversion_work;
1: + atomic_t i_unwritten;
1: + spinlock_t i_block_reservation_lock;
1: + tid_t i_sync_tid;
1: + tid_t i_datasync_tid;
1: + struct dquot *i_dquot[3];
1: + __u32 i_csum_seed;
1: + kprojid_t i_projid;
1: +};
1: +
1: +struct ext4_super_block {
1: + __le32 s_inodes_count;
1: + __le32 s_blocks_count_lo;
1: + __le32 s_r_blocks_count_lo;
1: + __le32 s_free_blocks_count_lo;
1: + __le32 s_free_inodes_count;
1: + __le32 s_first_data_block;
1: + __le32 s_log_block_size;
1: + __le32 s_log_cluster_size;
1: + __le32 s_blocks_per_group;
1: + __le32 s_clusters_per_group;
1: + __le32 s_inodes_per_group;
1: + __le32 s_mtime;
1: + __le32 s_wtime;
1: + __le16 s_mnt_count;
1: + __le16 s_max_mnt_count;
1: + __le16 s_magic;
1: + __le16 s_state;
1: + __le16 s_errors;
1: + __le16 s_minor_rev_level;
1: + __le32 s_lastcheck;
1: + __le32 s_checkinterval;
1: + __le32 s_creator_os;
1: + __le32 s_rev_level;
1: + __le16 s_def_resuid;
1: + __le16 s_def_resgid;
1: + __le32 s_first_ino;
1: + __le16 s_inode_size;
1: + __le16 s_block_group_nr;
1: + __le32 s_feature_compat;
1: + __le32 s_feature_incompat;
1: + __le32 s_feature_ro_compat;
1: + __u8 s_uuid[16];
1: + char s_volume_name[16];
1: + char s_last_mounted[64];
1: + __le32 s_algorithm_usage_bitmap;
1: + __u8 s_prealloc_blocks;
1: + __u8 s_prealloc_dir_blocks;
1: + __le16 s_reserved_gdt_blocks;
1: + __u8 s_journal_uuid[16];
1: + __le32 s_journal_inum;
1: + __le32 s_journal_dev;
1: + __le32 s_last_orphan;
1: + __le32 s_hash_seed[4];
1: + __u8 s_def_hash_version;
1: + __u8 s_jnl_backup_type;
1: + __le16 s_desc_size;
1: + __le32 s_default_mount_opts;
1: + __le32 s_first_meta_bg;
1: + __le32 s_mkfs_time;
1: + __le32 s_jnl_blocks[17];
1: + __le32 s_blocks_count_hi;
1: + __le32 s_r_blocks_count_hi;
1: + __le32 s_free_blocks_count_hi;
1: + __le16 s_min_extra_isize;
1: + __le16 s_want_extra_isize;
1: + __le32 s_flags;
1: + __le16 s_raid_stride;
1: + __le16 s_mmp_update_interval;
1: + __le64 s_mmp_block;
1: + __le32 s_raid_stripe_width;
1: + __u8 s_log_groups_per_flex;
1: + __u8 s_checksum_type;
1: + __u8 s_encryption_level;
1: + __u8 s_reserved_pad;
1: + __le64 s_kbytes_written;
1: + __le32 s_snapshot_inum;
1: + __le32 s_snapshot_id;
1: + __le64 s_snapshot_r_blocks_count;
1: + __le32 s_snapshot_list;
1: + __le32 s_error_count;
1: + __le32 s_first_error_time;
1: + __le32 s_first_error_ino;
1: + __le64 s_first_error_block;
1: + __u8 s_first_error_func[32];
1: + __le32 s_first_error_line;
1: + __le32 s_last_error_time;
1: + __le32 s_last_error_ino;
1: + __le32 s_last_error_line;
1: + __le64 s_last_error_block;
1: + __u8 s_last_error_func[32];
1: + __u8 s_mount_opts[64];
1: + __le32 s_usr_quota_inum;
1: + __le32 s_grp_quota_inum;
1: + __le32 s_overhead_clusters;
1: + __le32 s_backup_bgs[2];
1: + __u8 s_encrypt_algos[4];
1: + __u8 s_encrypt_pw_salt[16];
1: + __le32 s_lpf_ino;
1: + __le32 s_prj_quota_inum;
1: + __le32 s_checksum_seed;
1: + __u8 s_wtime_hi;
1: + __u8 s_mtime_hi;
1: + __u8 s_mkfs_time_hi;
1: + __u8 s_lastcheck_hi;
1: + __u8 s_first_error_time_hi;
1: + __u8 s_last_error_time_hi;
1: + __u8 s_first_error_errcode;
1: + __u8 s_last_error_errcode;
1: + __le16 s_encoding;
1: + __le16 s_encoding_flags;
1: + __le32 s_reserved[95];
1: + __le32 s_checksum;
1: +};
1: +
1: +struct mb_cache___2;
1: +
1: +struct ext4_group_info;
1: +
1: +struct ext4_locality_group;
1: +
1: +struct ext4_li_request;
1: +
1: +struct ext4_sb_info {
1: + long unsigned int s_desc_size;
1: + long unsigned int s_inodes_per_block;
1: + long unsigned int s_blocks_per_group;
1: + long unsigned int s_clusters_per_group;
1: + long unsigned int s_inodes_per_group;
1: + long unsigned int s_itb_per_group;
1: + long unsigned int s_gdb_count;
1: + long unsigned int s_desc_per_block;
1: + ext4_group_t s_groups_count;
1: + ext4_group_t s_blockfile_groups;
1: + long unsigned int s_overhead;
1: + unsigned int s_cluster_ratio;
1: + unsigned int s_cluster_bits;
1: + loff_t s_bitmap_maxbytes;
1: + struct buffer_head *s_sbh;
1: + struct ext4_super_block *s_es;
1: + struct buffer_head **s_group_desc;
1: + unsigned int s_mount_opt;
1: + unsigned int s_mount_opt2;
1: + long unsigned int s_mount_flags;
1: + unsigned int s_def_mount_opt;
1: + ext4_fsblk_t s_sb_block;
1: + atomic64_t s_resv_clusters;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + short unsigned int s_mount_state;
1: + short unsigned int s_pad;
1: + int s_addr_per_block_bits;
1: + int s_desc_per_block_bits;
1: + int s_inode_size;
1: + int s_first_ino;
1: + unsigned int s_inode_readahead_blks;
1: + unsigned int s_inode_goal;
1: + u32 s_hash_seed[4];
1: + int s_def_hash_version;
1: + int s_hash_unsigned;
1: + struct percpu_counter s_freeclusters_counter;
1: + struct percpu_counter s_freeinodes_counter;
1: + struct percpu_counter s_dirs_counter;
1: + struct percpu_counter s_dirtyclusters_counter;
1: + struct blockgroup_lock *s_blockgroup_lock;
1: + struct proc_dir_entry *s_proc;
1: + struct kobject s_kobj;
1: + struct completion s_kobj_unregister;
1: + struct super_block *s_sb;
1: + struct journal_s *s_journal;
1: + struct list_head s_orphan;
1: + struct mutex s_orphan_lock;
1: + long unsigned int s_ext4_flags;
1: + long unsigned int s_commit_interval;
1: + u32 s_max_batch_time;
1: + u32 s_min_batch_time;
1: + struct block_device *s_journal_bdev;
1: + char *s_qf_names[3];
1: + int s_jquota_fmt;
1: + unsigned int s_want_extra_isize;
1: + struct ext4_system_blocks *s_system_blks;
1: + struct ext4_group_info ***s_group_info;
1: + struct inode *s_buddy_cache;
1: + spinlock_t s_md_lock;
1: + short unsigned int *s_mb_offsets;
1: + unsigned int *s_mb_maxs;
1: + unsigned int s_group_info_size;
1: + unsigned int s_mb_free_pending;
1: + struct list_head s_freed_data_list;
1: + long unsigned int s_stripe;
1: + unsigned int s_mb_stream_request;
1: + unsigned int s_mb_max_to_scan;
1: + unsigned int s_mb_min_to_scan;
1: + unsigned int s_mb_stats;
1: + unsigned int s_mb_order2_reqs;
1: + unsigned int s_mb_group_prealloc;
1: + unsigned int s_mb_max_inode_prealloc;
1: + unsigned int s_max_dir_size_kb;
1: + long unsigned int s_mb_last_group;
1: + long unsigned int s_mb_last_start;
1: + unsigned int s_mb_prefetch;
1: + unsigned int s_mb_prefetch_limit;
1: + atomic_t s_bal_reqs;
1: + atomic_t s_bal_success;
1: + atomic_t s_bal_allocated;
1: + atomic_t s_bal_ex_scanned;
1: + atomic_t s_bal_goals;
1: + atomic_t s_bal_breaks;
1: + atomic_t s_bal_2orders;
1: + spinlock_t s_bal_lock;
1: + long unsigned int s_mb_buddies_generated;
1: + long long unsigned int s_mb_generation_time;
1: + atomic_t s_mb_lost_chunks;
1: + atomic_t s_mb_preallocated;
1: + atomic_t s_mb_discarded;
1: + atomic_t s_lock_busy;
1: + struct ext4_locality_group *s_locality_groups;
1: + long unsigned int s_sectors_written_start;
1: + u64 s_kbytes_written;
1: + unsigned int s_extent_max_zeroout_kb;
1: + unsigned int s_log_groups_per_flex;
1: + struct flex_groups **s_flex_groups;
1: + ext4_group_t s_flex_groups_allocated;
1: + struct workqueue_struct *rsv_conversion_wq;
1: + struct timer_list s_err_report;
1: + struct ext4_li_request *s_li_request;
1: + unsigned int s_li_wait_mult;
1: + struct task_struct *s_mmp_tsk;
1: + atomic_t s_last_trim_minblks;
1: + struct crypto_shash *s_chksum_driver;
1: + __u32 s_csum_seed;
1: + struct shrinker s_es_shrinker;
1: + struct list_head s_es_list;
1: + long int s_es_nr_inode;
1: + struct ext4_es_stats s_es_stats;
1: + struct mb_cache___2 *s_ea_block_cache;
1: + struct mb_cache___2 *s_ea_inode_cache;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + spinlock_t s_es_lock;
1: + struct ratelimit_state s_err_ratelimit_state;
1: + struct ratelimit_state s_warning_ratelimit_state;
1: + struct ratelimit_state s_msg_ratelimit_state;
1: + atomic_t s_warning_count;
1: + atomic_t s_msg_count;
1: + struct fscrypt_dummy_policy s_dummy_enc_policy;
1: + struct percpu_rw_semaphore s_writepages_rwsem;
1: + struct dax_device *s_daxdev;
1: + errseq_t s_bdev_wb_err;
1: + spinlock_t s_bdev_wb_lock;
1: + atomic_t s_fc_subtid;
1: + atomic_t s_fc_ineligible_updates;
1: + struct list_head s_fc_q[2];
1: + struct list_head s_fc_dentry_q[2];
1: + unsigned int s_fc_bytes;
1: + spinlock_t s_fc_lock;
1: + struct buffer_head *s_fc_bh;
1: + struct ext4_fc_stats s_fc_stats;
1: + u64 s_fc_avg_commit_time;
1: + struct ext4_fc_replay_state s_fc_replay_state;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct ext4_group_info {
1: + long unsigned int bb_state;
1: + struct rb_root bb_free_root;
1: + ext4_grpblk_t bb_first_free;
1: + ext4_grpblk_t bb_free;
1: + ext4_grpblk_t bb_fragments;
1: + ext4_grpblk_t bb_largest_free_order;
1: + struct list_head bb_prealloc_list;
1: + struct rw_semaphore alloc_sem;
1: + ext4_grpblk_t bb_counters[0];
1: +};
1: +
1: +struct ext4_locality_group {
1: + struct mutex lg_mutex;
1: + struct list_head lg_prealloc_list[10];
1: + spinlock_t lg_prealloc_lock;
1: +};
1: +
1: +enum ext4_li_mode {
1: + EXT4_LI_MODE_PREFETCH_BBITMAP = 0,
1: + EXT4_LI_MODE_ITABLE = 1,
1: +};
1: +
1: +struct ext4_li_request {
1: + struct super_block *lr_super;
1: + enum ext4_li_mode lr_mode;
1: + ext4_group_t lr_first_not_zeroed;
1: + ext4_group_t lr_next_group;
1: + struct list_head lr_request;
1: + long unsigned int lr_next_sched;
1: + long unsigned int lr_timeout;
1: +};
1: +
1: +struct ext4_map_blocks {
1: + ext4_fsblk_t m_pblk;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + unsigned int m_flags;
1: +};
1: +
1: +struct ext4_system_zone {
1: + struct rb_node node;
1: + ext4_fsblk_t start_blk;
1: + unsigned int count;
1: + u32 ino;
1: +};
1: +
1: +enum {
1: + EXT4_INODE_SECRM = 0,
1: + EXT4_INODE_UNRM = 1,
1: + EXT4_INODE_COMPR = 2,
1: + EXT4_INODE_SYNC = 3,
1: + EXT4_INODE_IMMUTABLE = 4,
1: + EXT4_INODE_APPEND = 5,
1: + EXT4_INODE_NODUMP = 6,
1: + EXT4_INODE_NOATIME = 7,
1: + EXT4_INODE_DIRTY = 8,
1: + EXT4_INODE_COMPRBLK = 9,
1: + EXT4_INODE_NOCOMPR = 10,
1: + EXT4_INODE_ENCRYPT = 11,
1: + EXT4_INODE_INDEX = 12,
1: + EXT4_INODE_IMAGIC = 13,
1: + EXT4_INODE_JOURNAL_DATA = 14,
1: + EXT4_INODE_NOTAIL = 15,
1: + EXT4_INODE_DIRSYNC = 16,
1: + EXT4_INODE_TOPDIR = 17,
1: + EXT4_INODE_HUGE_FILE = 18,
1: + EXT4_INODE_EXTENTS = 19,
1: + EXT4_INODE_VERITY = 20,
1: + EXT4_INODE_EA_INODE = 21,
1: + EXT4_INODE_DAX = 25,
1: + EXT4_INODE_INLINE_DATA = 28,
1: + EXT4_INODE_PROJINHERIT = 29,
1: + EXT4_INODE_CASEFOLD = 30,
1: + EXT4_INODE_RESERVED = 31,
1: +};
1: +
1: +enum {
1: + EXT4_FC_REASON_OK = 0,
1: + EXT4_FC_REASON_INELIGIBLE = 1,
1: + EXT4_FC_REASON_ALREADY_COMMITTED = 2,
1: + EXT4_FC_REASON_FC_START_FAILED = 3,
1: + EXT4_FC_REASON_FC_FAILED = 4,
1: + EXT4_FC_REASON_XATTR = 0,
1: + EXT4_FC_REASON_CROSS_RENAME = 1,
1: + EXT4_FC_REASON_JOURNAL_FLAG_CHANGE = 2,
1: + EXT4_FC_REASON_NOMEM = 3,
1: + EXT4_FC_REASON_SWAP_BOOT = 4,
1: + EXT4_FC_REASON_RESIZE = 5,
1: + EXT4_FC_REASON_RENAME_DIR = 6,
1: + EXT4_FC_REASON_FALLOC_RANGE = 7,
1: + EXT4_FC_REASON_INODE_JOURNAL_DATA = 8,
1: + EXT4_FC_COMMIT_FAILED = 9,
1: + EXT4_FC_REASON_MAX = 10,
1: +};
1: +
1: +struct ext4_dir_entry_2 {
1: + __le32 inode;
1: + __le16 rec_len;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[255];
1: +};
1: +
1: +struct fname;
1: +
1: +struct dir_private_info {
1: + struct rb_root root;
1: + struct rb_node *curr_node;
1: + struct fname *extra_fname;
1: + loff_t last_pos;
1: + __u32 curr_hash;
1: + __u32 curr_minor_hash;
1: + __u32 next_hash;
1: +};
1: +
1: +struct fname {
1: + __u32 hash;
1: + __u32 minor_hash;
1: + struct rb_node rb_hash;
1: + struct fname *next;
1: + __u32 inode;
1: + __u8 name_len;
1: + __u8 file_type;
1: + char name[0];
1: +};
1: +
1: +enum SHIFT_DIRECTION {
1: + SHIFT_LEFT = 0,
1: + SHIFT_RIGHT = 1,
1: +};
1: +
1: +struct ext4_io_end_vec {
1: + struct list_head list;
1: + loff_t offset;
1: + ssize_t size;
1: +};
1: +
1: +struct ext4_io_end {
1: + struct list_head list;
1: + handle_t *handle;
1: + struct inode *inode;
1: + struct bio *bio;
1: + unsigned int flag;
1: + atomic_t count;
1: + struct list_head list_vec;
1: +};
1: +
1: +typedef struct ext4_io_end ext4_io_end_t;
1: +
1: +enum {
1: + ES_WRITTEN_B = 0,
1: + ES_UNWRITTEN_B = 1,
1: + ES_DELAYED_B = 2,
1: + ES_HOLE_B = 3,
1: + ES_REFERENCED_B = 4,
1: + ES_FLAGS = 5,
1: +};
1: +
1: +enum {
1: + EXT4_STATE_JDATA = 0,
1: + EXT4_STATE_NEW = 1,
1: + EXT4_STATE_XATTR = 2,
1: + EXT4_STATE_NO_EXPAND = 3,
1: + EXT4_STATE_DA_ALLOC_CLOSE = 4,
1: + EXT4_STATE_EXT_MIGRATE = 5,
1: + EXT4_STATE_NEWENTRY = 6,
1: + EXT4_STATE_MAY_INLINE_DATA = 7,
1: + EXT4_STATE_EXT_PRECACHED = 8,
1: + EXT4_STATE_LUSTRE_EA_INODE = 9,
1: + EXT4_STATE_VERITY_IN_PROGRESS = 10,
1: + EXT4_STATE_FC_COMMITTING = 11,
1: +};
1: +
1: +struct ext4_iloc {
1: + struct buffer_head *bh;
1: + long unsigned int offset;
1: + ext4_group_t block_group;
1: +};
1: +
1: +struct ext4_extent_tail {
1: + __le32 et_checksum;
1: +};
1: +
1: +struct ext4_extent {
1: + __le32 ee_block;
1: + __le16 ee_len;
1: + __le16 ee_start_hi;
1: + __le32 ee_start_lo;
1: +};
1: +
1: +struct ext4_extent_idx {
1: + __le32 ei_block;
1: + __le32 ei_leaf_lo;
1: + __le16 ei_leaf_hi;
1: + __u16 ei_unused;
1: +};
1: +
1: +struct ext4_extent_header {
1: + __le16 eh_magic;
1: + __le16 eh_entries;
1: + __le16 eh_max;
1: + __le16 eh_depth;
1: + __le32 eh_generation;
1: +};
1: +
1: +struct ext4_ext_path {
1: + ext4_fsblk_t p_block;
1: + __u16 p_depth;
1: + __u16 p_maxdepth;
1: + struct ext4_extent *p_ext;
1: + struct ext4_extent_idx *p_idx;
1: + struct ext4_extent_header *p_hdr;
1: + struct buffer_head *p_bh;
1: +};
1: +
1: +struct partial_cluster {
1: + ext4_fsblk_t pclu;
1: + ext4_lblk_t lblk;
1: + enum {
1: + initial = 0,
1: + tofree = 1,
1: + nofree = 2,
1: + } state;
1: +};
1: +
1: +struct pending_reservation {
1: + struct rb_node rb_node;
1: + ext4_lblk_t lclu;
1: +};
1: +
1: +struct rsvd_count {
1: + int ndelonly;
1: + bool first_do_lblk_found;
1: + ext4_lblk_t first_do_lblk;
1: + ext4_lblk_t last_do_lblk;
1: + struct extent_status *left_es;
1: + bool partial;
1: + ext4_lblk_t lclu;
1: +};
1: +
1: +enum {
1: + EXT4_MF_MNTDIR_SAMPLED = 0,
1: + EXT4_MF_FS_ABORTED = 1,
1: + EXT4_MF_FC_INELIGIBLE = 2,
1: + EXT4_MF_FC_COMMITTING = 3,
1: +};
1: +
1: +struct fsmap {
1: + __u32 fmr_device;
1: + __u32 fmr_flags;
1: + __u64 fmr_physical;
1: + __u64 fmr_owner;
1: + __u64 fmr_offset;
1: + __u64 fmr_length;
1: + __u64 fmr_reserved[3];
1: +};
1: +
1: +struct ext4_fsmap {
1: + struct list_head fmr_list;
1: + dev_t fmr_device;
1: + uint32_t fmr_flags;
1: + uint64_t fmr_physical;
1: + uint64_t fmr_owner;
1: + uint64_t fmr_length;
1: +};
1: +
1: +struct ext4_fsmap_head {
1: + uint32_t fmh_iflags;
1: + uint32_t fmh_oflags;
1: + unsigned int fmh_count;
1: + unsigned int fmh_entries;
1: + struct ext4_fsmap fmh_keys[2];
1: +};
1: +
1: +typedef int (*ext4_fsmap_format_t)(struct ext4_fsmap *, void *);
1: +
1: +struct ext4_getfsmap_info {
1: + struct ext4_fsmap_head *gfi_head;
1: + ext4_fsmap_format_t gfi_formatter;
1: + void *gfi_format_arg;
1: + ext4_fsblk_t gfi_next_fsblk;
1: + u32 gfi_dev;
1: + ext4_group_t gfi_agno;
1: + struct ext4_fsmap gfi_low;
1: + struct ext4_fsmap gfi_high;
1: + struct ext4_fsmap gfi_lastfree;
1: + struct list_head gfi_meta_list;
1: + bool gfi_last;
1: +};
1: +
1: +struct ext4_getfsmap_dev {
1: + int (*gfd_fn)(struct super_block *, struct ext4_fsmap *, struct ext4_getfsmap_info *);
1: + u32 gfd_dev;
1: +};
1: +
1: +struct dx_hash_info {
1: + u32 hash;
1: + u32 minor_hash;
1: + int hash_version;
1: + u32 *seed;
1: +};
1: +
1: +struct ext4_inode {
1: + __le16 i_mode;
1: + __le16 i_uid;
1: + __le32 i_size_lo;
1: + __le32 i_atime;
1: + __le32 i_ctime;
1: + __le32 i_mtime;
1: + __le32 i_dtime;
1: + __le16 i_gid;
1: + __le16 i_links_count;
1: + __le32 i_blocks_lo;
1: + __le32 i_flags;
1: + union {
1: + struct {
1: + __le32 l_i_version;
1: + } linux1;
1: + struct {
1: + __u32 h_i_translator;
1: + } hurd1;
1: + struct {
1: + __u32 m_i_reserved1;
1: + } masix1;
1: + } osd1;
1: + __le32 i_block[15];
1: + __le32 i_generation;
1: + __le32 i_file_acl_lo;
1: + __le32 i_size_high;
1: + __le32 i_obso_faddr;
1: + union {
1: + struct {
1: + __le16 l_i_blocks_high;
1: + __le16 l_i_file_acl_high;
1: + __le16 l_i_uid_high;
1: + __le16 l_i_gid_high;
1: + __le16 l_i_checksum_lo;
1: + __le16 l_i_reserved;
1: + } linux2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __u16 h_i_mode_high;
1: + __u16 h_i_uid_high;
1: + __u16 h_i_gid_high;
1: + __u32 h_i_author;
1: + } hurd2;
1: + struct {
1: + __le16 h_i_reserved1;
1: + __le16 m_i_file_acl_high;
1: + __u32 m_i_reserved2[2];
1: + } masix2;
1: + } osd2;
1: + __le16 i_extra_isize;
1: + __le16 i_checksum_hi;
1: + __le32 i_ctime_extra;
1: + __le32 i_mtime_extra;
1: + __le32 i_atime_extra;
1: + __le32 i_crtime;
1: + __le32 i_crtime_extra;
1: + __le32 i_version_hi;
1: + __le32 i_projid;
1: +};
1: +
1: +struct orlov_stats {
1: + __u64 free_clusters;
1: + __u32 free_inodes;
1: + __u32 used_dirs;
1: +};
1: +
1: +typedef struct {
1: + __le32 *p;
1: + __le32 key;
1: + struct buffer_head *bh;
1: +} Indirect;
1: +
1: +struct ext4_filename {
1: + const struct qstr *usr_fname;
1: + struct fscrypt_str disk_name;
1: + struct dx_hash_info hinfo;
1: + struct fscrypt_str crypto_buf;
1: + struct fscrypt_str cf_name;
1: +};
1: +
1: +struct ext4_xattr_ibody_header {
1: + __le32 h_magic;
1: +};
1: +
1: +struct ext4_xattr_entry {
1: + __u8 e_name_len;
1: + __u8 e_name_index;
1: + __le16 e_value_offs;
1: + __le32 e_value_inum;
1: + __le32 e_value_size;
1: + __le32 e_hash;
1: + char e_name[0];
1: +};
1: +
1: +struct ext4_xattr_info {
1: + const char *name;
1: + const void *value;
1: + size_t value_len;
1: + int name_index;
1: + int in_inode;
1: +};
1: +
1: +struct ext4_xattr_search {
1: + struct ext4_xattr_entry *first;
1: + void *base;
1: + void *end;
1: + struct ext4_xattr_entry *here;
1: + int not_found;
1: +};
1: +
1: +struct ext4_xattr_ibody_find {
1: + struct ext4_xattr_search s;
1: + struct ext4_iloc iloc;
1: +};
1: +
1: +typedef short unsigned int __kernel_uid16_t;
1: +
1: +typedef short unsigned int __kernel_gid16_t;
1: +
1: +typedef __kernel_uid16_t uid16_t;
1: +
1: +typedef __kernel_gid16_t gid16_t;
1: +
1: +struct ext4_io_submit {
1: + struct writeback_control *io_wbc;
1: + struct bio *io_bio;
1: + ext4_io_end_t *io_end;
1: + sector_t io_next_block;
1: +};
1: +
1: +typedef enum {
1: + EXT4_IGET_NORMAL = 0,
1: + EXT4_IGET_SPECIAL = 1,
1: + EXT4_IGET_HANDLE = 2,
1: +} ext4_iget_flags;
1: +
1: +struct ext4_xattr_inode_array {
1: + unsigned int count;
1: + struct inode *inodes[0];
1: +};
1: +
1: +struct mpage_da_data {
1: + struct inode *inode;
1: + struct writeback_control *wbc;
1: + long unsigned int first_page;
1: + long unsigned int next_page;
1: + long unsigned int last_page;
1: + struct ext4_map_blocks map;
1: + struct ext4_io_submit io_submit;
1: + unsigned int do_map: 1;
1: + unsigned int scanned_until_end: 1;
1: +};
1: +
1: +struct fstrim_range {
1: + __u64 start;
1: + __u64 len;
1: + __u64 minlen;
1: +};
1: +
1: +struct ext4_new_group_input {
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 unused;
1: +};
1: +
1: +struct compat_ext4_new_group_input {
1: + u32 group;
1: + compat_u64 block_bitmap;
1: + compat_u64 inode_bitmap;
1: + compat_u64 inode_table;
1: + u32 blocks_count;
1: + u16 reserved_blocks;
1: + u16 unused;
1: +};
1: +
1: +struct ext4_new_group_data {
1: + __u32 group;
1: + __u64 block_bitmap;
1: + __u64 inode_bitmap;
1: + __u64 inode_table;
1: + __u32 blocks_count;
1: + __u16 reserved_blocks;
1: + __u16 mdata_blocks;
1: + __u32 free_clusters_count;
1: +};
1: +
1: +struct move_extent {
1: + __u32 reserved;
1: + __u32 donor_fd;
1: + __u64 orig_start;
1: + __u64 donor_start;
1: + __u64 len;
1: + __u64 moved_len;
1: +};
1: +
1: +struct fsmap_head {
1: + __u32 fmh_iflags;
1: + __u32 fmh_oflags;
1: + __u32 fmh_count;
1: + __u32 fmh_entries;
1: + __u64 fmh_reserved[6];
1: + struct fsmap fmh_keys[2];
1: + struct fsmap fmh_recs[0];
1: +};
1: +
1: +struct getfsmap_info {
1: + struct super_block *gi_sb;
1: + struct fsmap_head *gi_data;
1: + unsigned int gi_idx;
1: + __u32 gi_last_flags;
1: +};
1: +
1: +typedef long unsigned int cycles_t;
1: +
1: +enum blk_default_limits {
1: + BLK_MAX_SEGMENTS = 128,
1: + BLK_SAFE_MAX_SECTORS = 255,
1: + BLK_DEF_MAX_SECTORS = 2560,
1: + BLK_MAX_SEGMENT_SIZE = 65536,
1: + BLK_SEG_BOUNDARY_MASK = 4294967295,
1: +};
1: +
1: +struct ext4_free_data {
1: + struct list_head efd_list;
1: + struct rb_node efd_node;
1: + ext4_group_t efd_group;
1: + ext4_grpblk_t efd_start_cluster;
1: + ext4_grpblk_t efd_count;
1: + tid_t efd_tid;
1: +};
1: +
1: +struct ext4_prealloc_space {
1: + struct list_head pa_inode_list;
1: + struct list_head pa_group_list;
1: + union {
1: + struct list_head pa_tmp_list;
1: + struct callback_head pa_rcu;
1: + } u;
1: + spinlock_t pa_lock;
1: + atomic_t pa_count;
1: + unsigned int pa_deleted;
1: + ext4_fsblk_t pa_pstart;
1: + ext4_lblk_t pa_lstart;
1: + ext4_grpblk_t pa_len;
1: + ext4_grpblk_t pa_free;
1: + short unsigned int pa_type;
1: + spinlock_t *pa_obj_lock;
1: + struct inode *pa_inode;
1: +};
1: +
1: +enum {
1: + MB_INODE_PA = 0,
1: + MB_GROUP_PA = 1,
1: +};
1: +
1: +struct ext4_free_extent {
1: + ext4_lblk_t fe_logical;
1: + ext4_grpblk_t fe_start;
1: + ext4_group_t fe_group;
1: + ext4_grpblk_t fe_len;
1: +};
1: +
1: +struct ext4_allocation_context {
1: + struct inode *ac_inode;
1: + struct super_block *ac_sb;
1: + struct ext4_free_extent ac_o_ex;
1: + struct ext4_free_extent ac_g_ex;
1: + struct ext4_free_extent ac_b_ex;
1: + struct ext4_free_extent ac_f_ex;
1: + __u16 ac_groups_scanned;
1: + __u16 ac_found;
1: + __u16 ac_tail;
1: + __u16 ac_buddy;
1: + __u16 ac_flags;
1: + __u8 ac_status;
1: + __u8 ac_criteria;
1: + __u8 ac_2order;
1: + __u8 ac_op;
1: + struct page *ac_bitmap_page;
1: + struct page *ac_buddy_page;
1: + struct ext4_prealloc_space *ac_pa;
1: + struct ext4_locality_group *ac_lg;
1: +};
1: +
1: +struct ext4_buddy {
1: + struct page *bd_buddy_page;
1: + void *bd_buddy;
1: + struct page *bd_bitmap_page;
1: + void *bd_bitmap;
1: + struct ext4_group_info *bd_info;
1: + struct super_block *bd_sb;
1: + __u16 bd_blkbits;
1: + ext4_group_t bd_group;
1: +};
1: +
1: +typedef int (*ext4_mballoc_query_range_fn)(struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t, void *);
1: +
1: +struct sg {
1: + struct ext4_group_info info;
1: + ext4_grpblk_t counters[18];
1: +};
1: +
1: +struct migrate_struct {
1: + ext4_lblk_t first_block;
1: + ext4_lblk_t last_block;
1: + ext4_lblk_t curr_block;
1: + ext4_fsblk_t first_pblock;
1: + ext4_fsblk_t last_pblock;
1: +};
1: +
1: +struct mmp_struct {
1: + __le32 mmp_magic;
1: + __le32 mmp_seq;
1: + __le64 mmp_time;
1: + char mmp_nodename[64];
1: + char mmp_bdevname[32];
1: + __le16 mmp_check_interval;
1: + __le16 mmp_pad1;
1: + __le32 mmp_pad2[226];
1: + __le32 mmp_checksum;
1: +};
1: +
1: +struct mmpd_data {
1: + struct buffer_head *bh;
1: + struct super_block *sb;
1: +};
1: +
1: +struct ext4_dir_entry {
1: + __le32 inode;
1: + __le16 rec_len;
1: + __le16 name_len;
1: + char name[255];
1: +};
1: +
1: +struct ext4_dir_entry_tail {
1: + __le32 det_reserved_zero1;
1: + __le16 det_rec_len;
1: + __u8 det_reserved_zero2;
1: + __u8 det_reserved_ft;
1: + __le32 det_checksum;
1: +};
1: +
1: +typedef enum {
1: + EITHER = 0,
1: + INDEX = 1,
1: + DIRENT = 2,
1: + DIRENT_HTREE = 3,
1: +} dirblock_type_t;
1: +
1: +struct fake_dirent {
1: + __le32 inode;
1: + __le16 rec_len;
1: + u8 name_len;
1: + u8 file_type;
1: +};
1: +
1: +struct dx_countlimit {
1: + __le16 limit;
1: + __le16 count;
1: +};
1: +
1: +struct dx_entry {
1: + __le32 hash;
1: + __le32 block;
1: +};
1: +
1: +struct dx_root_info {
1: + __le32 reserved_zero;
1: + u8 hash_version;
1: + u8 info_length;
1: + u8 indirect_levels;
1: + u8 unused_flags;
1: +};
1: +
1: +struct dx_root {
1: + struct fake_dirent dot;
1: + char dot_name[4];
1: + struct fake_dirent dotdot;
1: + char dotdot_name[4];
1: + struct dx_root_info info;
1: + struct dx_entry entries[0];
1: +};
1: +
1: +struct dx_node {
1: + struct fake_dirent fake;
1: + struct dx_entry entries[0];
1: +};
1: +
1: +struct dx_frame {
1: + struct buffer_head *bh;
1: + struct dx_entry *entries;
1: + struct dx_entry *at;
1: +};
1: +
1: +struct dx_map_entry {
1: + u32 hash;
1: + u16 offs;
1: + u16 size;
1: +};
1: +
1: +struct dx_tail {
1: + u32 dt_reserved;
1: + __le32 dt_checksum;
1: +};
1: +
1: +struct ext4_renament {
1: + struct inode *dir;
1: + struct dentry *dentry;
1: + struct inode *inode;
1: + bool is_dir;
1: + int dir_nlink_delta;
1: + struct buffer_head *bh;
1: + struct ext4_dir_entry_2 *de;
1: + int inlined;
1: + struct buffer_head *dir_bh;
1: + struct ext4_dir_entry_2 *parent_de;
1: + int dir_inlined;
1: +};
1: +
1: +enum bio_post_read_step {
1: + STEP_INITIAL = 0,
1: + STEP_DECRYPT = 1,
1: + STEP_VERITY = 2,
1: + STEP_MAX = 3,
1: +};
1: +
1: +struct bio_post_read_ctx {
1: + struct bio *bio;
1: + struct work_struct work;
1: + unsigned int cur_step;
1: + unsigned int enabled_steps;
1: +};
1: +
1: +enum {
1: + BLOCK_BITMAP = 0,
1: + INODE_BITMAP = 1,
1: + INODE_TABLE = 2,
1: + GROUP_TABLE_COUNT = 3,
1: +};
1: +
1: +struct ext4_rcu_ptr {
1: + struct callback_head rcu;
1: + void *ptr;
1: +};
1: +
1: +struct ext4_new_flex_group_data {
1: + struct ext4_new_group_data *groups;
1: + __u16 *bg_flags;
1: + ext4_group_t count;
1: +};
1: +
1: +enum stat_group {
1: + STAT_READ = 0,
1: + STAT_WRITE = 1,
1: + STAT_DISCARD = 2,
1: + STAT_FLUSH = 3,
1: + NR_STAT_GROUPS = 4,
1: +};
1: +
1: +enum {
1: + I_DATA_SEM_NORMAL = 0,
1: + I_DATA_SEM_OTHER = 1,
1: + I_DATA_SEM_QUOTA = 2,
1: +};
1: +
1: +struct ext4_lazy_init {
1: + long unsigned int li_state;
1: + struct list_head li_request_list;
1: + struct mutex li_list_mtx;
1: +};
1: +
1: +struct ext4_journal_cb_entry {
1: + struct list_head jce_list;
1: + void (*jce_func)(struct super_block *, struct ext4_journal_cb_entry *, int);
1: +};
1: +
1: +struct trace_event_raw_ext4_other_inode_update_time {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t orig_ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_free_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + uid_t uid;
1: + gid_t gid;
1: + __u64 blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_request_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_allocate_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t dir;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_evict_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int nlink;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_drop_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int drop;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_nfs_commit_metadata {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mark_inode_dirty {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int ip;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_begin_ordered_truncate {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t new_size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__write_begin {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__write_end {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int len;
1: + unsigned int copied;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_writepages {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long int nr_to_write;
1: + long int pages_skipped;
1: + loff_t range_start;
1: + loff_t range_end;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char for_kupdate;
1: + char range_cyclic;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_write_pages {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int first_page;
1: + long int nr_to_write;
1: + int sync_mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_write_pages_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 lblk;
1: + __u32 len;
1: + __u32 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_writepages_result {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + int pages_written;
1: + long int pages_skipped;
1: + long unsigned int writeback_index;
1: + int sync_mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__page_op {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_invalidatepage_op {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + long unsigned int index;
1: + unsigned int offset;
1: + unsigned int length;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_discard_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 blk;
1: + __u64 count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__mb_new_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 pa_pstart;
1: + __u64 pa_lstart;
1: + __u32 pa_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_release_inode_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + __u32 count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_release_group_pa {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u64 pa_pstart;
1: + __u32 pa_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_discard_preallocations {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + unsigned int needed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mb_discard_preallocations {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int needed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_request_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_allocate_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + unsigned int len;
1: + __u32 logical;
1: + __u32 lleft;
1: + __u32 lright;
1: + __u64 goal;
1: + __u64 pleft;
1: + __u64 pright;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_free_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + long unsigned int count;
1: + int flags;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_file_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + int datasync;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_file_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_sync_fs {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int wait;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_alloc_da_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int data_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mballoc_alloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 goal_logical;
1: + int goal_start;
1: + __u32 goal_group;
1: + int goal_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + __u16 found;
1: + __u16 groups;
1: + __u16 buddy;
1: + __u16 flags;
1: + __u16 tail;
1: + __u8 cr;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_mballoc_prealloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u32 orig_logical;
1: + int orig_start;
1: + __u32 orig_group;
1: + int orig_len;
1: + __u32 result_logical;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__mballoc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int result_start;
1: + __u32 result_group;
1: + int result_len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_forget {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 block;
1: + int is_metadata;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_update_reserve_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int used_blocks;
1: + int reserved_data_blocks;
1: + int quota_claim;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_reserve_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_da_release_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 i_blocks;
1: + int freed_blocks;
1: + int reserved_data_blocks;
1: + __u16 mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__bitmap_load {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_read_block_bitmap_load {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + bool prefetch;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_direct_IO_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_direct_IO_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + long unsigned int len;
1: + int rw;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__fallocate_mode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + int mode;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fallocate_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t pos;
1: + unsigned int blocks;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_unlink_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ino_t parent;
1: + loff_t size;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_unlink_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__truncate {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + __u64 blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_convert_to_initialized_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_convert_to_initialized_fastpath {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t m_lblk;
1: + unsigned int m_len;
1: + ext4_lblk_t u_lblk;
1: + unsigned int u_len;
1: + ext4_fsblk_t u_pblk;
1: + ext4_lblk_t i_lblk;
1: + unsigned int i_len;
1: + ext4_fsblk_t i_pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__map_blocks_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__map_blocks_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + unsigned int flags;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + unsigned int mflags;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_load_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_load_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_journal_start {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + int rsv_blocks;
1: + int revoke_creds;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_journal_start_reserved {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int ip;
1: + int blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__trim {
1: + struct trace_entry ent;
1: + int dev_major;
1: + int dev_minor;
1: + __u32 group;
1: + int start;
1: + int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_handle_unwritten_extents {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + unsigned int allocated;
1: + ext4_fsblk_t newblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_get_implied_cluster_alloc_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + ext4_lblk_t lblk;
1: + ext4_fsblk_t pblk;
1: + unsigned int len;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_put_in_cache {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + ext4_fsblk_t start;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_in_cache {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + int ret;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_find_delalloc_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + int reverse;
1: + int found;
1: + ext4_lblk_t found_blk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_get_reserved_cluster_alloc {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + unsigned int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_show_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + ext4_lblk_t lblk;
1: + short unsigned int len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_remove_blocks {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t from;
1: + ext4_lblk_t to;
1: + ext4_fsblk_t ee_pblk;
1: + ext4_lblk_t ee_lblk;
1: + short unsigned int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_rm_leaf {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t ee_lblk;
1: + ext4_fsblk_t ee_pblk;
1: + short int ee_len;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_rm_idx {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_fsblk_t pblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_remove_space {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_ext_remove_space_done {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: + int depth;
1: + ext4_fsblk_t pc_pclu;
1: + ext4_lblk_t pc_lblk;
1: + int pc_state;
1: + short unsigned int eh_entries;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__es_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_remove_extent {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t lblk;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_find_extent_range_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_find_extent_range_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_lookup_extent_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_lookup_extent_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + int found;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4__es_shrink_enter {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_to_scan;
1: + int cache_cnt;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_shrink_scan_exit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + int cache_cnt;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_collapse_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_insert_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + loff_t offset;
1: + loff_t len;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_shrink {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nr_shrunk;
1: + long long unsigned int scan_time;
1: + int nr_skipped;
1: + int retried;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_es_insert_delayed_block {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + ext4_lblk_t lblk;
1: + ext4_lblk_t len;
1: + ext4_fsblk_t pblk;
1: + char status;
1: + bool allocated;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fsmap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u32 agno;
1: + u64 bno;
1: + u64 len;
1: + u64 owner;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_getfsmap_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + dev_t keydev;
1: + u64 block;
1: + u64 len;
1: + u64 owner;
1: + u64 flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_shutdown {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + unsigned int flags;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_error {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + const char *function;
1: + unsigned int line;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_prefetch_bitmaps {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + __u32 next;
1: + __u32 ios;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_lazy_itable_init {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + __u32 group;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_replay_scan {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int error;
1: + int off;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_replay {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int tag;
1: + int ino;
1: + int priv1;
1: + int priv2;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_commit_start {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_commit_stop {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int nblks;
1: + int reason;
1: + int num_fc;
1: + int num_fc_ineligible;
1: + int nblks_agg;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + struct ext4_sb_info *sbi;
1: + int count;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_create {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_link {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_unlink {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_inode {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_ext4_fc_track_range {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int ino;
1: + long int start;
1: + long int end;
1: + int error;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_ext4_other_inode_update_time {};
1: +
1: +struct trace_event_data_offsets_ext4_free_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_request_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_allocate_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_evict_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_drop_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_nfs_commit_metadata {};
1: +
1: +struct trace_event_data_offsets_ext4_mark_inode_dirty {};
1: +
1: +struct trace_event_data_offsets_ext4_begin_ordered_truncate {};
1: +
1: +struct trace_event_data_offsets_ext4__write_begin {};
1: +
1: +struct trace_event_data_offsets_ext4__write_end {};
1: +
1: +struct trace_event_data_offsets_ext4_writepages {};
1: +
1: +struct trace_event_data_offsets_ext4_da_write_pages {};
1: +
1: +struct trace_event_data_offsets_ext4_da_write_pages_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_writepages_result {};
1: +
1: +struct trace_event_data_offsets_ext4__page_op {};
1: +
1: +struct trace_event_data_offsets_ext4_invalidatepage_op {};
1: +
1: +struct trace_event_data_offsets_ext4_discard_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4__mb_new_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_release_inode_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_release_group_pa {};
1: +
1: +struct trace_event_data_offsets_ext4_discard_preallocations {};
1: +
1: +struct trace_event_data_offsets_ext4_mb_discard_preallocations {};
1: +
1: +struct trace_event_data_offsets_ext4_request_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_allocate_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_free_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_file_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_file_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_sync_fs {};
1: +
1: +struct trace_event_data_offsets_ext4_alloc_da_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_mballoc_alloc {};
1: +
1: +struct trace_event_data_offsets_ext4_mballoc_prealloc {};
1: +
1: +struct trace_event_data_offsets_ext4__mballoc {};
1: +
1: +struct trace_event_data_offsets_ext4_forget {};
1: +
1: +struct trace_event_data_offsets_ext4_da_update_reserve_space {};
1: +
1: +struct trace_event_data_offsets_ext4_da_reserve_space {};
1: +
1: +struct trace_event_data_offsets_ext4_da_release_space {};
1: +
1: +struct trace_event_data_offsets_ext4__bitmap_load {};
1: +
1: +struct trace_event_data_offsets_ext4_read_block_bitmap_load {};
1: +
1: +struct trace_event_data_offsets_ext4_direct_IO_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_direct_IO_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__fallocate_mode {};
1: +
1: +struct trace_event_data_offsets_ext4_fallocate_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_unlink_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_unlink_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__truncate {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_convert_to_initialized_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_convert_to_initialized_fastpath {};
1: +
1: +struct trace_event_data_offsets_ext4__map_blocks_enter {};
1: +
1: +struct trace_event_data_offsets_ext4__map_blocks_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_load_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_load_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_journal_start {};
1: +
1: +struct trace_event_data_offsets_ext4_journal_start_reserved {};
1: +
1: +struct trace_event_data_offsets_ext4__trim {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_handle_unwritten_extents {};
1: +
1: +struct trace_event_data_offsets_ext4_get_implied_cluster_alloc_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_put_in_cache {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_in_cache {};
1: +
1: +struct trace_event_data_offsets_ext4_find_delalloc_range {};
1: +
1: +struct trace_event_data_offsets_ext4_get_reserved_cluster_alloc {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_show_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_remove_blocks {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_rm_leaf {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_rm_idx {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_remove_space {};
1: +
1: +struct trace_event_data_offsets_ext4_ext_remove_space_done {};
1: +
1: +struct trace_event_data_offsets_ext4__es_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_es_remove_extent {};
1: +
1: +struct trace_event_data_offsets_ext4_es_find_extent_range_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_find_extent_range_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_es_lookup_extent_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_lookup_extent_exit {};
1: +
1: +struct trace_event_data_offsets_ext4__es_shrink_enter {};
1: +
1: +struct trace_event_data_offsets_ext4_es_shrink_scan_exit {};
1: +
1: +struct trace_event_data_offsets_ext4_collapse_range {};
1: +
1: +struct trace_event_data_offsets_ext4_insert_range {};
1: +
1: +struct trace_event_data_offsets_ext4_es_shrink {};
1: +
1: +struct trace_event_data_offsets_ext4_es_insert_delayed_block {};
1: +
1: +struct trace_event_data_offsets_ext4_fsmap_class {};
1: +
1: +struct trace_event_data_offsets_ext4_getfsmap_class {};
1: +
1: +struct trace_event_data_offsets_ext4_shutdown {};
1: +
1: +struct trace_event_data_offsets_ext4_error {};
1: +
1: +struct trace_event_data_offsets_ext4_prefetch_bitmaps {};
1: +
1: +struct trace_event_data_offsets_ext4_lazy_itable_init {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_replay_scan {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_replay {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_commit_start {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_commit_stop {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_stats {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_create {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_link {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_unlink {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_inode {};
1: +
1: +struct trace_event_data_offsets_ext4_fc_track_range {};
1: +
1: +typedef void (*btf_trace_ext4_other_inode_update_time)(void *, struct inode *, ino_t);
1: +
1: +typedef void (*btf_trace_ext4_free_inode)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_request_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_allocate_inode)(void *, struct inode *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_evict_inode)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_drop_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_nfs_commit_metadata)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_mark_inode_dirty)(void *, struct inode *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_begin_ordered_truncate)(void *, struct inode *, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_da_write_begin)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journalled_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_da_write_end)(void *, struct inode *, loff_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_writepages)(void *, struct inode *, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_ext4_da_write_pages)(void *, struct inode *, long unsigned int, struct writeback_control *);
1: +
1: +typedef void (*btf_trace_ext4_da_write_pages_extent)(void *, struct inode *, struct ext4_map_blocks *);
1: +
1: +typedef void (*btf_trace_ext4_writepages_result)(void *, struct inode *, struct writeback_control *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_writepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_readpage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_releasepage)(void *, struct page *);
1: +
1: +typedef void (*btf_trace_ext4_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journalled_invalidatepage)(void *, struct page *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_discard_blocks)(void *, struct super_block *, long long unsigned int, long long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_new_inode_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_mb_new_group_pa)(void *, struct ext4_allocation_context *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_mb_release_inode_pa)(void *, struct ext4_prealloc_space *, long long unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_release_group_pa)(void *, struct super_block *, struct ext4_prealloc_space *);
1: +
1: +typedef void (*btf_trace_ext4_discard_preallocations)(void *, struct inode *, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_discard_preallocations)(void *, struct super_block *, int);
1: +
1: +typedef void (*btf_trace_ext4_request_blocks)(void *, struct ext4_allocation_request *);
1: +
1: +typedef void (*btf_trace_ext4_allocate_blocks)(void *, struct ext4_allocation_request *, long long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_free_blocks)(void *, struct inode *, __u64, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_file_enter)(void *, struct file *, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_file_exit)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_sync_fs)(void *, struct super_block *, int);
1: +
1: +typedef void (*btf_trace_ext4_alloc_da_blocks)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_alloc)(void *, struct ext4_allocation_context *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_prealloc)(void *, struct ext4_allocation_context *);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_discard)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_mballoc_free)(void *, struct super_block *, struct inode *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_forget)(void *, struct inode *, int, __u64);
1: +
1: +typedef void (*btf_trace_ext4_da_update_reserve_space)(void *, struct inode *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_da_reserve_space)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_da_release_space)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_mb_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_mb_buddy_bitmap_load)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_load_inode_bitmap)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_read_block_bitmap_load)(void *, struct super_block *, long unsigned int, bool);
1: +
1: +typedef void (*btf_trace_ext4_direct_IO_enter)(void *, struct inode *, loff_t, long unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_direct_IO_exit)(void *, struct inode *, loff_t, long unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fallocate_enter)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_punch_hole)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_zero_range)(void *, struct inode *, loff_t, loff_t, int);
1: +
1: +typedef void (*btf_trace_ext4_fallocate_exit)(void *, struct inode *, loff_t, unsigned int, int);
1: +
1: +typedef void (*btf_trace_ext4_unlink_enter)(void *, struct inode *, struct dentry *);
1: +
1: +typedef void (*btf_trace_ext4_unlink_exit)(void *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_truncate_enter)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_truncate_exit)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_enter)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *);
1: +
1: +typedef void (*btf_trace_ext4_ext_convert_to_initialized_fastpath)(void *, struct inode *, struct ext4_map_blocks *, struct ext4_extent *, struct ext4_extent *);
1: +
1: +typedef void (*btf_trace_ext4_ext_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ind_map_blocks_enter)(void *, struct inode *, ext4_lblk_t, unsigned int, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ext_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ind_map_blocks_exit)(void *, struct inode *, unsigned int, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_load_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_load_inode)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journal_start)(void *, struct super_block *, int, int, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_journal_start_reserved)(void *, struct super_block *, int, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_trim_extent)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_trim_all_free)(void *, struct super_block *, ext4_group_t, ext4_grpblk_t, ext4_grpblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_handle_unwritten_extents)(void *, struct inode *, struct ext4_map_blocks *, int, unsigned int, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_get_implied_cluster_alloc_exit)(void *, struct super_block *, struct ext4_map_blocks *, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_put_in_cache)(void *, struct inode *, ext4_lblk_t, unsigned int, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_in_cache)(void *, struct inode *, ext4_lblk_t, int);
1: +
1: +typedef void (*btf_trace_ext4_find_delalloc_range)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, int, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_get_reserved_cluster_alloc)(void *, struct inode *, ext4_lblk_t, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_ext_show_extent)(void *, struct inode *, ext4_lblk_t, ext4_fsblk_t, short unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_remove_blocks)(void *, struct inode *, struct ext4_extent *, ext4_lblk_t, ext4_fsblk_t, struct partial_cluster *);
1: +
1: +typedef void (*btf_trace_ext4_ext_rm_leaf)(void *, struct inode *, ext4_lblk_t, struct ext4_extent *, struct partial_cluster *);
1: +
1: +typedef void (*btf_trace_ext4_ext_rm_idx)(void *, struct inode *, ext4_fsblk_t);
1: +
1: +typedef void (*btf_trace_ext4_ext_remove_space)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int);
1: +
1: +typedef void (*btf_trace_ext4_ext_remove_space_done)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t, int, struct partial_cluster *, __le16);
1: +
1: +typedef void (*btf_trace_ext4_es_insert_extent)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_cache_extent)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_remove_extent)(void *, struct inode *, ext4_lblk_t, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_find_extent_range_enter)(void *, struct inode *, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_find_extent_range_exit)(void *, struct inode *, struct extent_status *);
1: +
1: +typedef void (*btf_trace_ext4_es_lookup_extent_enter)(void *, struct inode *, ext4_lblk_t);
1: +
1: +typedef void (*btf_trace_ext4_es_lookup_extent_exit)(void *, struct inode *, struct extent_status *, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_count)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_scan_enter)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink_scan_exit)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_collapse_range)(void *, struct inode *, loff_t, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_insert_range)(void *, struct inode *, loff_t, loff_t);
1: +
1: +typedef void (*btf_trace_ext4_es_shrink)(void *, struct super_block *, int, u64, int, int);
1: +
1: +typedef void (*btf_trace_ext4_es_insert_delayed_block)(void *, struct inode *, struct extent_status *, bool);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_low_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_high_key)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_fsmap_mapping)(void *, struct super_block *, u32, u32, u64, u64, u64);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_low_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_high_key)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_getfsmap_mapping)(void *, struct super_block *, struct ext4_fsmap *);
1: +
1: +typedef void (*btf_trace_ext4_shutdown)(void *, struct super_block *, long unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_error)(void *, struct super_block *, const char *, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_prefetch_bitmaps)(void *, struct super_block *, ext4_group_t, ext4_group_t, unsigned int);
1: +
1: +typedef void (*btf_trace_ext4_lazy_itable_init)(void *, struct super_block *, ext4_group_t);
1: +
1: +typedef void (*btf_trace_ext4_fc_replay_scan)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_replay)(void *, struct super_block *, int, int, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_commit_start)(void *, struct super_block *);
1: +
1: +typedef void (*btf_trace_ext4_fc_commit_stop)(void *, struct super_block *, int, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_stats)(void *, struct super_block *);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_create)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_link)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_unlink)(void *, struct inode *, struct dentry *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_inode)(void *, struct inode *, int);
1: +
1: +typedef void (*btf_trace_ext4_fc_track_range)(void *, struct inode *, long int, long int, int);
1: +
1: +enum {
1: + Opt_bsd_df = 0,
1: + Opt_minix_df = 1,
1: + Opt_grpid = 2,
1: + Opt_nogrpid = 3,
1: + Opt_resgid = 4,
1: + Opt_resuid = 5,
1: + Opt_sb = 6,
1: + Opt_err_cont = 7,
1: + Opt_err_panic = 8,
1: + Opt_err_ro = 9,
1: + Opt_nouid32 = 10,
1: + Opt_debug = 11,
1: + Opt_removed = 12,
1: + Opt_user_xattr = 13,
1: + Opt_nouser_xattr = 14,
1: + Opt_acl = 15,
1: + Opt_noacl = 16,
1: + Opt_auto_da_alloc = 17,
1: + Opt_noauto_da_alloc = 18,
1: + Opt_noload = 19,
1: + Opt_commit = 20,
1: + Opt_min_batch_time = 21,
1: + Opt_max_batch_time = 22,
1: + Opt_journal_dev = 23,
1: + Opt_journal_path = 24,
1: + Opt_journal_checksum = 25,
1: + Opt_journal_async_commit = 26,
1: + Opt_abort = 27,
1: + Opt_data_journal = 28,
1: + Opt_data_ordered = 29,
1: + Opt_data_writeback = 30,
1: + Opt_data_err_abort = 31,
1: + Opt_data_err_ignore = 32,
1: + Opt_test_dummy_encryption = 33,
1: + Opt_inlinecrypt = 34,
1: + Opt_usrjquota = 35,
1: + Opt_grpjquota = 36,
1: + Opt_offusrjquota = 37,
1: + Opt_offgrpjquota = 38,
1: + Opt_jqfmt_vfsold = 39,
1: + Opt_jqfmt_vfsv0 = 40,
1: + Opt_jqfmt_vfsv1 = 41,
1: + Opt_quota = 42,
1: + Opt_noquota = 43,
1: + Opt_barrier = 44,
1: + Opt_nobarrier = 45,
1: + Opt_err___2 = 46,
1: + Opt_usrquota = 47,
1: + Opt_grpquota = 48,
1: + Opt_prjquota = 49,
1: + Opt_i_version = 50,
1: + Opt_dax = 51,
1: + Opt_dax_always = 52,
1: + Opt_dax_inode = 53,
1: + Opt_dax_never = 54,
1: + Opt_stripe = 55,
1: + Opt_delalloc = 56,
1: + Opt_nodelalloc = 57,
1: + Opt_warn_on_error = 58,
1: + Opt_nowarn_on_error = 59,
1: + Opt_mblk_io_submit = 60,
1: + Opt_lazytime = 61,
1: + Opt_nolazytime = 62,
1: + Opt_debug_want_extra_isize = 63,
1: + Opt_nomblk_io_submit = 64,
1: + Opt_block_validity = 65,
1: + Opt_noblock_validity = 66,
1: + Opt_inode_readahead_blks = 67,
1: + Opt_journal_ioprio = 68,
1: + Opt_dioread_nolock = 69,
1: + Opt_dioread_lock = 70,
1: + Opt_discard = 71,
1: + Opt_nodiscard = 72,
1: + Opt_init_itable = 73,
1: + Opt_noinit_itable = 74,
1: + Opt_max_dir_size_kb = 75,
1: + Opt_nojournal_checksum = 76,
1: + Opt_nombcache = 77,
1: + Opt_prefetch_block_bitmaps = 78,
1: +};
1: +
1: +struct mount_opts {
1: + int token;
1: + int mount_opt;
1: + int flags;
1: +};
1: +
1: +struct ext4_sb_encodings {
1: + __u16 magic;
1: + char *name;
1: + char *version;
1: +};
1: +
1: +struct ext4_mount_options {
1: + long unsigned int s_mount_opt;
1: + long unsigned int s_mount_opt2;
1: + kuid_t s_resuid;
1: + kgid_t s_resgid;
1: + long unsigned int s_commit_interval;
1: + u32 s_min_batch_time;
1: + u32 s_max_batch_time;
1: + int s_jquota_fmt;
1: + char *s_qf_names[3];
1: +};
1: +
1: +enum {
1: + attr_noop = 0,
1: + attr_delayed_allocation_blocks = 1,
1: + attr_session_write_kbytes = 2,
1: + attr_lifetime_write_kbytes = 3,
1: + attr_reserved_clusters = 4,
1: + attr_inode_readahead = 5,
1: + attr_trigger_test_error = 6,
1: + attr_first_error_time = 7,
1: + attr_last_error_time = 8,
1: + attr_feature = 9,
1: + attr_pointer_ui = 10,
1: + attr_pointer_ul = 11,
1: + attr_pointer_u64 = 12,
1: + attr_pointer_u8 = 13,
1: + attr_pointer_string = 14,
1: + attr_pointer_atomic = 15,
1: + attr_journal_task = 16,
1: +};
1: +
1: +enum {
1: + ptr_explicit = 0,
1: + ptr_ext4_sb_info_offset = 1,
1: + ptr_ext4_super_block_offset = 2,
1: +};
1: +
1: +struct ext4_attr {
1: + struct attribute attr;
1: + short int attr_id;
1: + short int attr_ptr;
1: + short unsigned int attr_size;
1: + union {
1: + int offset;
1: + void *explicit_ptr;
1: + } u;
1: +};
1: +
1: +struct ext4_xattr_header {
1: + __le32 h_magic;
1: + __le32 h_refcount;
1: + __le32 h_blocks;
1: + __le32 h_hash;
1: + __le32 h_checksum;
1: + __u32 h_reserved[3];
1: +};
1: +
1: +struct ext4_xattr_block_find {
1: + struct ext4_xattr_search s;
1: + struct buffer_head *bh;
1: +};
1: +
1: +struct ext4_fc_tl {
1: + __le16 fc_tag;
1: + __le16 fc_len;
1: +};
1: +
1: +struct ext4_fc_head {
1: + __le32 fc_features;
1: + __le32 fc_tid;
1: +};
1: +
1: +struct ext4_fc_add_range {
1: + __le32 fc_ino;
1: + __u8 fc_ex[12];
1: +};
1: +
1: +struct ext4_fc_del_range {
1: + __le32 fc_ino;
1: + __le32 fc_lblk;
1: + __le32 fc_len;
1: +};
1: +
1: +struct ext4_fc_dentry_info {
1: + __le32 fc_parent_ino;
1: + __le32 fc_ino;
1: + u8 fc_dname[0];
1: +};
1: +
1: +struct ext4_fc_inode {
1: + __le32 fc_ino;
1: + __u8 fc_raw_inode[0];
1: +};
1: +
1: +struct ext4_fc_tail {
1: + __le32 fc_tid;
1: + __le32 fc_crc;
1: +};
1: +
1: +struct ext4_fc_dentry_update {
1: + int fcd_op;
1: + int fcd_parent;
1: + int fcd_ino;
1: + struct qstr fcd_name;
1: + unsigned char fcd_iname[32];
1: + struct list_head fcd_list;
1: +};
1: +
1: +struct __track_dentry_update_args {
1: + struct dentry *dentry;
1: + int op;
1: +};
1: +
1: +struct __track_range_args {
1: + ext4_lblk_t start;
1: + ext4_lblk_t end;
1: +};
1: +
1: +struct dentry_info_args {
1: + int parent_ino;
1: + int dname_len;
1: + int ino;
1: + int inode_len;
1: + char *dname;
1: +};
1: +
1: +typedef struct {
1: + __le16 e_tag;
1: + __le16 e_perm;
1: + __le32 e_id;
1: +} ext4_acl_entry;
1: +
1: +typedef struct {
1: + __le32 a_version;
1: +} ext4_acl_header;
1: +
1: +struct commit_header {
1: + __be32 h_magic;
1: + __be32 h_blocktype;
1: + __be32 h_sequence;
1: + unsigned char h_chksum_type;
1: + unsigned char h_chksum_size;
1: + unsigned char h_padding[2];
1: + __be32 h_chksum[8];
1: + __be64 h_commit_sec;
1: + __be32 h_commit_nsec;
1: +};
1: +
1: +struct journal_block_tag3_s {
1: + __be32 t_blocknr;
1: + __be32 t_flags;
1: + __be32 t_blocknr_high;
1: + __be32 t_checksum;
1: +};
1: +
1: +typedef struct journal_block_tag3_s journal_block_tag3_t;
1: +
1: +struct journal_block_tag_s {
1: + __be32 t_blocknr;
1: + __be16 t_checksum;
1: + __be16 t_flags;
1: + __be32 t_blocknr_high;
1: +};
1: +
1: +typedef struct journal_block_tag_s journal_block_tag_t;
1: +
1: +struct jbd2_journal_block_tail {
1: + __be32 t_checksum;
1: +};
1: +
1: +struct jbd2_journal_revoke_header_s {
1: + journal_header_t r_header;
1: + __be32 r_count;
1: +};
1: +
1: +typedef struct jbd2_journal_revoke_header_s jbd2_journal_revoke_header_t;
1: +
1: +struct recovery_info {
1: + tid_t start_transaction;
1: + tid_t end_transaction;
1: + int nr_replays;
1: + int nr_revokes;
1: + int nr_revoke_hits;
1: +};
1: +
1: +struct jbd2_revoke_table_s {
1: + int hash_size;
1: + int hash_shift;
1: + struct list_head *hash_table;
1: +};
1: +
1: +struct jbd2_revoke_record_s {
1: + struct list_head hash;
1: + tid_t sequence;
1: + long long unsigned int blocknr;
1: +};
1: +
1: +struct trace_event_raw_jbd2_checkpoint {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int result;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_commit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_end_commit {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + char sync_commit;
1: + int transaction;
1: + int head;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_submit_inode_data {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + ino_t ino;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_start_class {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int requested_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_extend {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int buffer_credits;
1: + int requested_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_handle_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + unsigned int type;
1: + unsigned int line_no;
1: + int interval;
1: + int sync;
1: + int requested_blocks;
1: + int dirtied_blocks;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_run_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int wait;
1: + long unsigned int request_delay;
1: + long unsigned int running;
1: + long unsigned int locked;
1: + long unsigned int flushing;
1: + long unsigned int logging;
1: + __u32 handle_count;
1: + __u32 blocks;
1: + __u32 blocks_logged;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_checkpoint_stats {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int tid;
1: + long unsigned int chp_time;
1: + __u32 forced_to_close;
1: + __u32 written;
1: + __u32 dropped;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_update_log_tail {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + tid_t tail_sequence;
1: + tid_t first_tid;
1: + long unsigned int block_nr;
1: + long unsigned int freed;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_write_superblock {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + int write_op;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_raw_jbd2_lock_buffer_stall {
1: + struct trace_entry ent;
1: + dev_t dev;
1: + long unsigned int stall_ms;
1: + char __data[0];
1: +};
1: +
1: +struct trace_event_data_offsets_jbd2_checkpoint {};
1: +
1: +struct trace_event_data_offsets_jbd2_commit {};
1: +
1: +struct trace_event_data_offsets_jbd2_end_commit {};
1: +
1: +struct trace_event_data_offsets_jbd2_submit_inode_data {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_start_class {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_extend {};
1: +
1: +struct trace_event_data_offsets_jbd2_handle_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_run_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_checkpoint_stats {};
1: +
1: +struct trace_event_data_offsets_jbd2_update_log_tail {};
1: +
1: +struct trace_event_data_offsets_jbd2_write_superblock {};
1: +
1: +struct trace_event_data_offsets_jbd2_lock_buffer_stall {};
1: +
1: +typedef void (*btf_trace_jbd2_checkpoint)(void *, journal_t *, int);
1: +
1: +typedef void (*btf_trace_jbd2_start_commit)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_locking)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_flushing)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_commit_logging)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_drop_transaction)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_end_commit)(void *, journal_t *, transaction_t *);
1: +
1: +typedef void (*btf_trace_jbd2_submit_inode_data)(void *, struct inode *);
1: +
1: +typedef void (*btf_trace_jbd2_handle_start)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_restart)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_extend)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int);
1: +
1: +typedef void (*btf_trace_jbd2_handle_stats)(void *, dev_t, long unsigned int, unsigned int, unsigned int, int, int, int, int);
1: +
1: +typedef void (*btf_trace_jbd2_run_stats)(void *, dev_t, long unsigned int, struct transaction_run_stats_s *);
1: +
1: +typedef void (*btf_trace_jbd2_checkpoint_stats)(void *, dev_t, long unsigned int, struct transaction_chp_stats_s *);
1: +
1: +typedef void (*btf_trace_jbd2_update_log_tail)(void *, journal_t *, tid_t, long unsigned int, long unsigned int);
1: +
1: +typedef void (*btf_trace_jbd2_write_superblock)(void *, journal_t *, int);
1: +
1: +typedef void (*btf_trace_jbd2_lock_buffer_stall)(void *, dev_t, long unsigned int);
1: +
1: +struct jbd2_stats_proc_session {
1: + journal_t *journal;
1: + struct transaction_stats_s *stats;
1: + int start;
1: + int max;
1: +};
1: +
1: +struct ramfs_mount_opts {
1: + umode_t mode;
1: +};
1: +
1: +struct ramfs_fs_info {
1: + struct ramfs_mount_opts mount_opts;
1: +};
1: +
1: +enum ramfs_param {
1: + Opt_mode___3 = 0,
1: +};
1: +
1: +enum hugetlbfs_size_type {
1: + NO_SIZE = 0,
1: + SIZE_STD = 1,
1: + SIZE_PERCENT = 2,
1: +};
1: +
1: +struct hugetlbfs_fs_context {
1: + struct hstate *hstate;
1: + long long unsigned int max_size_opt;
1: + long long unsigned int min_size_opt;
1: + long int max_hpages;
1: + long int nr_inodes;
1: + long int min_hpages;
1: + enum hugetlbfs_size_type max_val_type;
1: + enum hugetlbfs_size_type min_val_type;
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +enum hugetlb_param {
1: + Opt_gid___4 = 0,
1: + Opt_min_size = 1,
1: + Opt_mode___4 = 2,
1: + Opt_nr_inodes___2 = 3,
1: + Opt_pagesize = 4,
1: + Opt_size___2 = 5,
1: + Opt_uid___3 = 6,
1: +};
1: +
1: +struct getdents_callback___2 {
1: + struct dir_context ctx;
1: + char *name;
1: + u64 ino;
1: + int found;
1: + int sequence;
1: +};
1: +
1: +typedef u16 wchar_t;
1: +
1: +typedef u32 unicode_t;
1: +
1: +struct nls_table {
1: + const char *charset;
1: + const char *alias;
1: + int (*uni2char)(wchar_t, unsigned char *, int);
1: + int (*char2uni)(const unsigned char *, int, wchar_t *);
1: + const unsigned char *charset2lower;
1: + const unsigned char *charset2upper;
1: + struct module *owner;
1: + struct nls_table *next;
1: +};
1: +
1: +enum utf16_endian {
1: + UTF16_HOST_ENDIAN = 0,
1: + UTF16_LITTLE_ENDIAN = 1,
1: + UTF16_BIG_ENDIAN = 2,
1: +};
1: +
1: +struct utf8_table {
1: + int cmask;
1: + int cval;
1: + int shift;
1: + long int lmask;
1: + long int lval;
1: +};
1: +
1: +struct utf8data;
1: +
1: +struct utf8cursor {
1: + const struct utf8data *data;
1: + const char *s;
1: + const char *p;
1: + const char *ss;
1: + const char *sp;
1: + unsigned int len;
1: + unsigned int slen;
1: + short int ccc;
1: + short int nccc;
1: + unsigned char hangul[12];
1: +};
1: +
1: +struct utf8data {
1: + unsigned int maxage;
1: + unsigned int offset;
1: +};
1: +
1: +typedef const unsigned char utf8trie_t;
1: +
1: +typedef const unsigned char utf8leaf_t;
1: +
1: +typedef struct vfsmount * (*debugfs_automount_t)(struct dentry *, void *);
1: +
1: +struct debugfs_fsdata {
1: + const struct file_operations *real_fops;
1: + refcount_t active_users;
1: + struct completion active_users_drained;
1: +};
1: +
1: +struct debugfs_mount_opts {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +enum {
1: + Opt_uid___4 = 0,
1: + Opt_gid___5 = 1,
1: + Opt_mode___5 = 2,
1: + Opt_err___3 = 3,
1: +};
1: +
1: +struct debugfs_fs_info {
1: + struct debugfs_mount_opts mount_opts;
1: +};
1: +
1: +struct debugfs_blob_wrapper {
1: + void *data;
1: + long unsigned int size;
1: +};
1: +
1: +struct debugfs_reg32 {
1: + char *name;
1: + long unsigned int offset;
1: +};
1: +
1: +struct debugfs_regset32 {
1: + const struct debugfs_reg32 *regs;
1: + int nregs;
1: + void *base;
1: + struct device *dev;
1: +};
1: +
1: +struct debugfs_u32_array {
1: + u32 *array;
1: + u32 n_elements;
1: +};
1: +
1: +struct debugfs_devm_entry {
1: + int (*read)(struct seq_file *, void *);
1: + struct device *dev;
1: +};
1: +
1: +struct tracefs_dir_ops {
1: + int (*mkdir)(const char *);
1: + int (*rmdir)(const char *);
1: +};
1: +
1: +struct tracefs_mount_opts {
1: + kuid_t uid;
1: + kgid_t gid;
1: + umode_t mode;
1: +};
1: +
1: +struct tracefs_fs_info {
1: + struct tracefs_mount_opts mount_opts;
1: +};
1: +
1: +struct pstore_ftrace_record {
1: + long unsigned int ip;
1: + long unsigned int parent_ip;
1: + u64 ts;
1: +};
1: +
1: +struct pstore_private {
1: + struct list_head list;
1: + struct dentry *dentry;
1: + struct pstore_record *record;
1: + size_t total_size;
1: +};
1: +
1: +struct pstore_ftrace_seq_data {
1: + const void *ptr;
1: + size_t off;
1: + size_t size;
1: +};
1: +
1: +enum {
1: + Opt_kmsg_bytes = 0,
1: + Opt_err___4 = 1,
1: +};
1: +
1: +struct pstore_zbackend {
1: + int (*zbufsize)(size_t);
1: + const char *name;
1: +};
1: +
1: +struct ipc64_perm {
1: + __kernel_key_t key;
1: + __kernel_uid_t uid;
1: + __kernel_gid_t gid;
1: + __kernel_uid_t cuid;
1: + __kernel_gid_t cgid;
1: + __kernel_mode_t mode;
1: + unsigned int seq;
1: + unsigned int __pad1;
1: + long long unsigned int __unused1;
1: + long long unsigned int __unused2;
1: +};
1: +
1: +typedef s32 compat_key_t;
1: +
1: +struct compat_ipc64_perm {
1: + compat_key_t key;
1: + __compat_uid_t uid;
1: + __compat_gid_t gid;
1: + __compat_uid_t cuid;
1: + __compat_gid_t cgid;
1: + compat_mode_t mode;
1: + unsigned int seq;
1: + unsigned int __pad2;
1: + long unsigned int __unused1;
1: + long unsigned int __unused2;
1: +};
1: +
1: +struct compat_ipc_perm {
1: + key_t key;
1: + __compat_uid_t uid;
1: + __compat_gid_t gid;
1: + __compat_uid_t cuid;
1: + __compat_gid_t cgid;
1: + compat_mode_t mode;
1: + short unsigned int seq;
1: +};
1: +
1: +struct ipc_perm {
1: + __kernel_key_t key;
1: + __kernel_uid_t uid;
1: + __kernel_gid_t gid;
1: + __kernel_uid_t cuid;
1: + __kernel_gid_t cgid;
1: + __kernel_mode_t mode;
1: + short unsigned int seq;
1: +};
1: +
1: +struct ipc_params {
1: + key_t key;
1: + int flg;
1: + union {
1: + size_t size;
1: + int nsems;
1: + } u;
1: +};
1: +
1: +struct ipc_ops {
1: + int (*getnew)(struct ipc_namespace *, struct ipc_params *);
1: + int (*associate)(struct kern_ipc_perm *, int);
1: + int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *);
1: +};
1: +
1: +struct ipc_proc_iface {
1: + const char *path;
1: + const char *header;
1: + int ids;
1: + int (*show)(struct seq_file *, void *);
1: +};
1: +
1: +struct ipc_proc_iter {
1: + struct ipc_namespace *ns;
1: + struct pid_namespace *pid_ns;
1: + struct ipc_proc_iface *iface;
1: +};
1: +
1: +struct msg_msgseg;
1: +
1: +struct msg_msg {
1: + struct list_head m_list;
1: + long int m_type;
1: + size_t m_ts;
1: + struct msg_msgseg *next;
1: + void *security;
1: +};
1: +
1: +struct msg_msgseg {
1: + struct msg_msgseg *next;
1: +};
1: +
1: +typedef int __kernel_ipc_pid_t;
1: +
1: +struct msgbuf {
1: + __kernel_long_t mtype;
1: + char mtext[1];
1: +};
1: +
1: +struct msg;
1: +
1: +struct msqid_ds {
1: + struct ipc_perm msg_perm;
1: + struct msg *msg_first;
1: + struct msg *msg_last;
1: + __kernel_old_time_t msg_stime;
1: + __kernel_old_time_t msg_rtime;
1: + __kernel_old_time_t msg_ctime;
1: + long unsigned int msg_lcbytes;
1: + long unsigned int msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + __kernel_ipc_pid_t msg_lspid;
1: + __kernel_ipc_pid_t msg_lrpid;
1: +};
1: +
1: +struct msqid64_ds {
1: + struct ipc64_perm msg_perm;
1: + long int msg_stime;
1: + long int msg_rtime;
1: + long int msg_ctime;
1: + long unsigned int msg_cbytes;
1: + long unsigned int msg_qnum;
1: + long unsigned int msg_qbytes;
1: + __kernel_pid_t msg_lspid;
1: + __kernel_pid_t msg_lrpid;
1: + long unsigned int __unused4;
1: + long unsigned int __unused5;
1: +};
1: +
1: +struct msginfo {
1: + int msgpool;
1: + int msgmap;
1: + int msgmax;
1: + int msgmnb;
1: + int msgmni;
1: + int msgssz;
1: + int msgtql;
1: + short unsigned int msgseg;
1: +};
1: +
1: +typedef u16 compat_ipc_pid_t;
1: +
1: +struct compat_msqid64_ds {
1: + struct compat_ipc64_perm msg_perm;
1: + unsigned int msg_stime_high;
1: + unsigned int msg_stime;
1: + unsigned int msg_rtime_high;
1: + unsigned int msg_rtime;
1: + unsigned int msg_ctime_high;
1: + unsigned int msg_ctime;
1: + compat_ulong_t msg_cbytes;
1: + compat_ulong_t msg_qnum;
1: + compat_ulong_t msg_qbytes;
1: + compat_pid_t msg_lspid;
1: + compat_pid_t msg_lrpid;
1: + compat_ulong_t __unused4;
1: + compat_ulong_t __unused5;
1: +};
1: +
1: +struct msg_queue {
1: + struct kern_ipc_perm q_perm;
1: + time64_t q_stime;
1: + time64_t q_rtime;
1: + time64_t q_ctime;
1: + long unsigned int q_cbytes;
1: + long unsigned int q_qnum;
1: + long unsigned int q_qbytes;
1: + struct pid *q_lspid;
1: + struct pid *q_lrpid;
1: + struct list_head q_messages;
1: + struct list_head q_receivers;
1: + struct list_head q_senders;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct msg_receiver {
1: + struct list_head r_list;
1: + struct task_struct *r_tsk;
1: + int r_mode;
1: + long int r_msgtype;
1: + long int r_maxsize;
1: + struct msg_msg *r_msg;
1: +};
1: +
1: +struct msg_sender {
1: + struct list_head list;
1: + struct task_struct *tsk;
1: + size_t msgsz;
1: +};
1: +
1: +struct compat_msqid_ds {
1: + struct compat_ipc_perm msg_perm;
1: + compat_uptr_t msg_first;
1: + compat_uptr_t msg_last;
1: + old_time32_t msg_stime;
1: + old_time32_t msg_rtime;
1: + old_time32_t msg_ctime;
1: + compat_ulong_t msg_lcbytes;
1: + compat_ulong_t msg_lqbytes;
1: + short unsigned int msg_cbytes;
1: + short unsigned int msg_qnum;
1: + short unsigned int msg_qbytes;
1: + compat_ipc_pid_t msg_lspid;
1: + compat_ipc_pid_t msg_lrpid;
1: +};
1: +
1: +struct compat_msgbuf {
1: + compat_long_t mtype;
1: + char mtext[1];
1: +};
1: +
1: +struct sem;
1: +
1: +struct sem_queue;
1: +
1: +struct sem_undo;
1: +
1: +struct semid_ds {
1: + struct ipc_perm sem_perm;
1: + __kernel_old_time_t sem_otime;
1: + __kernel_old_time_t sem_ctime;
1: + struct sem *sem_base;
1: + struct sem_queue *sem_pending;
1: + struct sem_queue **sem_pending_last;
1: + struct sem_undo *undo;
1: + short unsigned int sem_nsems;
1: +};
1: +
1: +struct sem {
1: + int semval;
1: + struct pid *sempid;
1: + spinlock_t lock;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + time64_t sem_otime;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct sem_queue {
1: + struct list_head list;
1: + struct task_struct *sleeper;
1: + struct sem_undo *undo;
1: + struct pid *pid;
1: + int status;
1: + struct sembuf *sops;
1: + struct sembuf *blocking;
1: + int nsops;
1: + bool alter;
1: + bool dupsop;
1: +};
1: +
1: +struct sem_undo {
1: + struct list_head list_proc;
1: + struct callback_head rcu;
1: + struct sem_undo_list *ulp;
1: + struct list_head list_id;
1: + int semid;
1: + short int *semadj;
1: +};
1: +
1: +struct semid64_ds {
1: + struct ipc64_perm sem_perm;
1: + long int sem_otime;
1: + long int sem_ctime;
1: + long unsigned int sem_nsems;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: +};
1: +
1: +struct seminfo {
1: + int semmap;
1: + int semmni;
1: + int semmns;
1: + int semmnu;
1: + int semmsl;
1: + int semopm;
1: + int semume;
1: + int semusz;
1: + int semvmx;
1: + int semaem;
1: +};
1: +
1: +struct sem_undo_list {
1: + refcount_t refcnt;
1: + spinlock_t lock;
1: + struct list_head list_proc;
1: +};
1: +
1: +struct compat_semid64_ds {
1: + struct compat_ipc64_perm sem_perm;
1: + unsigned int sem_otime_high;
1: + unsigned int sem_otime;
1: + unsigned int sem_ctime_high;
1: + unsigned int sem_ctime;
1: + compat_ulong_t sem_nsems;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: +};
1: +
1: +struct sem_array {
1: + struct kern_ipc_perm sem_perm;
1: + time64_t sem_ctime;
1: + struct list_head pending_alter;
1: + struct list_head pending_const;
1: + struct list_head list_id;
1: + int sem_nsems;
1: + int complex_count;
1: + unsigned int use_global_lock;
1: + long: 32;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + struct sem sems[0];
1: +};
1: +
1: +struct compat_semid_ds {
1: + struct compat_ipc_perm sem_perm;
1: + old_time32_t sem_otime;
1: + old_time32_t sem_ctime;
1: + compat_uptr_t sem_base;
1: + compat_uptr_t sem_pending;
1: + compat_uptr_t sem_pending_last;
1: + compat_uptr_t undo;
1: + short unsigned int sem_nsems;
1: +};
1: +
1: +struct shmid_ds {
1: + struct ipc_perm shm_perm;
1: + int shm_segsz;
1: + __kernel_old_time_t shm_atime;
1: + __kernel_old_time_t shm_dtime;
1: + __kernel_old_time_t shm_ctime;
1: + __kernel_ipc_pid_t shm_cpid;
1: + __kernel_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + void *shm_unused2;
1: + void *shm_unused3;
1: +};
1: +
1: +struct shmid64_ds {
1: + struct ipc64_perm shm_perm;
1: + long int shm_atime;
1: + long int shm_dtime;
1: + long int shm_ctime;
1: + size_t shm_segsz;
1: + __kernel_pid_t shm_cpid;
1: + __kernel_pid_t shm_lpid;
1: + long unsigned int shm_nattch;
1: + long unsigned int __unused5;
1: + long unsigned int __unused6;
1: +};
1: +
1: +struct shminfo64 {
1: + long unsigned int shmmax;
1: + long unsigned int shmmin;
1: + long unsigned int shmmni;
1: + long unsigned int shmseg;
1: + long unsigned int shmall;
1: + long unsigned int __unused1;
1: + long unsigned int __unused2;
1: + long unsigned int __unused3;
1: + long unsigned int __unused4;
1: +};
1: +
1: +struct shminfo {
1: + int shmmax;
1: + int shmmin;
1: + int shmmni;
1: + int shmseg;
1: + int shmall;
1: +};
1: +
1: +struct shm_info {
1: + int used_ids;
1: + __kernel_ulong_t shm_tot;
1: + __kernel_ulong_t shm_rss;
1: + __kernel_ulong_t shm_swp;
1: + __kernel_ulong_t swap_attempts;
1: + __kernel_ulong_t swap_successes;
1: +};
1: +
1: +struct compat_shmid64_ds {
1: + struct compat_ipc64_perm shm_perm;
1: + unsigned int shm_atime_high;
1: + unsigned int shm_atime;
1: + unsigned int shm_dtime_high;
1: + unsigned int shm_dtime;
1: + unsigned int shm_ctime_high;
1: + unsigned int shm_ctime;
1: + unsigned int __unused4;
1: + compat_size_t shm_segsz;
1: + compat_pid_t shm_cpid;
1: + compat_pid_t shm_lpid;
1: + compat_ulong_t shm_nattch;
1: + compat_ulong_t __unused5;
1: + compat_ulong_t __unused6;
1: +};
1: +
1: +struct shmid_kernel {
1: + struct kern_ipc_perm shm_perm;
1: + struct file *shm_file;
1: + long unsigned int shm_nattch;
1: + long unsigned int shm_segsz;
1: + time64_t shm_atim;
1: + time64_t shm_dtim;
1: + time64_t shm_ctim;
1: + struct pid *shm_cprid;
1: + struct pid *shm_lprid;
1: + struct user_struct *mlock_user;
1: + struct task_struct *shm_creator;
1: + struct list_head shm_clist;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: + long: 64;
1: +};
1: +
1: +struct shm_file_data {
1: + int id;
1: + struct ipc_namespace *ns;
1: + struct file *file;
1: + const struct vm_operations_struct *vm_ops;
1: +};
1: +
1: +struct compat_shmid_ds {
1: + struct compat_ipc_perm shm_perm;
1: + int shm_segsz;
1: + old_time32_t shm_atime;
1: + old_time32_t shm_dtime;
1: + old_time32_t shm_ctime;
1: + compat_ipc_pid_t shm_cpid;
1: + compat_ipc_pid_t shm_lpid;
1: + short unsigned int shm_nattch;
1: + short unsigned int shm_unused;
1: + compat_uptr_t shm_unused2;
1: + compat_uptr_t shm_unused3;
1: +};
1: +
1: +struct compat_shminfo64 {
1: + compat_ulong_t shmmax;
1: + compat_ulong_t shmmin;
1: + compat_ulong_t shmmni;
1: + compat_ulong_t shmseg;
1: + compat_ulong_t shmall;
1: + compat_ulong_t __unused1;
1: + compat_ulong_t __unused2;
1: + compat_ulong_t __unused3;
1: + compat_ulong_t __unused4;
1: +};
1: +
1: +struct compat_shm_info {
1: + compat_int_t used_ids;
1: + compat_ulong_t shm_tot;
1: + compat_ulong_t shm_rss;
1: + compat_ulong_t shm_swp;
1: + compat_ulong_t swap_attempts;
1: + compat_ulong_t swap_successes;
1: +};
1: +
1: +struct msgbuf___2;
1: +
1: +struct ipc_kludge {
1: + struct msgbuf___2 *msgp;
1: + long int msgtyp;
1: +};
1: +
1: +struct compat_ipc_kludge {
1: + compat_uptr_t msgp;
1: + compat_long_t msgtyp;
1: +};
1: +
1: +struct mqueue_fs_context {
1: + struct ipc_namespace *ipc_ns;
1: +};
1: +
1: +struct posix_msg_tree_node {
1: + struct rb_node rb_node;
1: + struct list_head msg_list;
1: + int priority;
1: +};
1: +
1: +struct ext_wait_queue {
1: + struct task_struct *task;
1: + struct list_head list;
1: + struct msg_msg *msg;
1: + int state;
1: +};
1: +
1: +struct mqueue_inode_info {
1: + spinlock_t lock;
1: + struct inode vfs_inode;
1: + wait_queue_head_t wait_q;
1: + struct rb_root msg_tree;
1: + struct rb_node *msg_tree_rightmost;
1: + struct posix_msg_tree_node *node_cache;
1: + struct mq_attr attr;
1: + struct sigevent notify;
1: + struct pid *notify_owner;
1: + u32 notify_self_exec_id;
1: + struct user_namespace *notify_user_ns;
1: + struct user_struct *user;
1: + struct sock *notify_sock;
1: + struct sk_buff *notify_cookie;
1: + struct ext_wait_queue e_wait_q[2];
1: + long unsigned int qsize;
1: +};
1: +
1: +struct compat_mq_attr {
1: + compat_long_t mq_flags;
1: + compat_long_t mq_maxmsg;
1: + compat_long_t mq_msgsize;
1: + compat_long_t mq_curmsgs;
1: + compat_long_t __reserved[4];
1: +};
1: +
1